diff --git a/.github/labeler-issue-triage.yml b/.github/labeler-issue-triage.yml index fd8d38ae89d5..ba97f5f93250 100644 --- a/.github/labeler-issue-triage.yml +++ b/.github/labeler-issue-triage.yml @@ -27,7 +27,7 @@ service/app-configuration: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_app_configuration((.|\n)*)###' service/app-service: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(app_service_environment_v3\W+|app_service_environment_v3\W+|app_service_source_control\W+|app_service_source_control_slot\W+|function_app_active_slot\W+|function_app_function\W+|function_app_hybrid_connection\W+|linux_function_app\W+|linux_function_app\W+|linux_function_app_slot\W+|linux_web_app\W+|linux_web_app\W+|linux_web_app_slot\W+|service_plan|source_control_token|static_web_app|web_app_|windows_function_app\W+|windows_function_app\W+|windows_function_app_slot\W+|windows_web_app\W+|windows_web_app\W+|windows_web_app_slot\W+)((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(app_service_environment_v3\W+|app_service_environment_v3\W+|app_service_source_control\W+|app_service_source_control_slot\W+|arc_kubernetes_cluster_extension\W+|arc_kubernetes_flux_configuration\W+|function_app_active_slot\W+|function_app_function\W+|function_app_hybrid_connection\W+|linux_function_app\W+|linux_function_app\W+|linux_function_app_slot\W+|linux_web_app\W+|linux_web_app\W+|linux_web_app_slot\W+|service_plan|source_control_token|static_web_app|web_app_|windows_function_app\W+|windows_function_app\W+|windows_function_app_slot\W+|windows_web_app\W+|windows_web_app\W+|windows_web_app_slot\W+)((.|\n)*)###' service/application-insights: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_application_insights((.|\n)*)###' @@ -69,7 +69,7 @@ service/cognitive-services: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(ai_services|cognitive_)((.|\n)*)###' service/communication: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(communication_service|email_communication_service)((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(communication_service|email_communication_service|gallery_application|orchestrated_virtual_machine_scale_set\W+|restore_point_collection|virtual_machine_gallery_application_assignment\W+|virtual_machine_implicit_data_disk_from_source\W+|virtual_machine_restore_point\W+|virtual_machine_restore_point_collection\W+|virtual_machine_run_command\W+)((.|\n)*)###' service/connections: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(api_connection|managed_api)((.|\n)*)###' @@ -128,6 +128,9 @@ service/dns: service/domain-services: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_active_directory_domain_service((.|\n)*)###' +service/dynatrace: + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_dynatrace_monitor((.|\n)*)###' + service/elastic: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_elastic_cloud_elasticsearch((.|\n)*)###' @@ -218,6 +221,9 @@ service/mixed-reality: service/mobile-network: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_mobile_network((.|\n)*)###' +service/mongo-cluster: + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_mongo_cluster((.|\n)*)###' + service/monitor: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_monitor_((.|\n)*)###' @@ -234,13 +240,13 @@ service/netapp: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_netapp_((.|\n)*)###' service/network: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(application_gateway\W+|application_security_group\W+|bastion_host|custom_ip_prefix|express_route_|ip_group|local_network_gateway|nat_gateway|network_connection_monitor\W+|network_ddos_protection_plan\W+|network_interface\W+|network_interface_application_gateway_backend_address_pool_association\W+|network_interface_application_security_group_association\W+|network_interface_backend_address_pool_association\W+|network_interface_nat_rule_association\W+|network_interface_security_group_association\W+|network_manager\W+|network_manager\W+|network_manager_admin_rule\W+|network_manager_admin_rule_collection\W+|network_manager_connectivity_configuration\W+|network_manager_connectivity_configuration\W+|network_manager_deployment\W+|network_manager_management_group_connection\W+|network_manager_network_group\W+|network_manager_network_group\W+|network_manager_scope_connection\W+|network_manager_security_admin_configuration\W+|network_manager_static_member\W+|network_manager_subscription_connection\W+|network_packet_capture\W+|network_profile\W+|network_security_group\W+|network_security_rule\W+|network_service_tags\W+|network_watcher\W+|network_watcher_flow_log\W+|point_to_site_vpn_gateway|private_endpoint\W+|private_endpoint_application_security_group_association\W+|private_endpoint_connection\W+|private_link_service\W+|private_link_service_endpoint_connections\W+|public_ip|route|subnet|virtual_hub\W+|virtual_hub_bgp_connection\W+|virtual_hub_connection\W+|virtual_hub_ip\W+|virtual_hub_route_table\W+|virtual_hub_route_table_route\W+|virtual_hub_routing_intent\W+|virtual_hub_security_partner_provider\W+|virtual_machine_packet_capture\W+|virtual_machine_scale_set_packet_capture\W+|virtual_network\W+|virtual_network_dns_servers\W+|virtual_network_gateway\W+|virtual_network_gateway_connection\W+|virtual_network_gateway_nat_rule\W+|virtual_network_peering\W+|virtual_wan\W+|vpn_|web_application_firewall_policy)((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(application_gateway\W+|application_security_group\W+|bastion_host|custom_ip_prefix|express_route_|ip_group|local_network_gateway|nat_gateway|network_|point_to_site_vpn_gateway|private_endpoint\W+|private_endpoint_application_security_group_association\W+|private_endpoint_connection\W+|private_link_service\W+|private_link_service_endpoint_connections\W+|public_ip|route|subnet|virtual_hub\W+|virtual_hub_bgp_connection\W+|virtual_hub_connection\W+|virtual_hub_ip\W+|virtual_hub_route_table\W+|virtual_hub_route_table_route\W+|virtual_hub_routing_intent\W+|virtual_hub_security_partner_provider\W+|virtual_machine_packet_capture\W+|virtual_machine_scale_set_packet_capture\W+|virtual_network\W+|virtual_network_dns_servers\W+|virtual_network_gateway\W+|virtual_network_gateway_connection\W+|virtual_network_gateway_nat_rule\W+|virtual_network_peering\W+|virtual_network_peering\W+|virtual_wan\W+|vpn_|web_application_firewall_policy)((.|\n)*)###' service/network-function: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_network_function_((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(network_function_azure_traffic_collector\W+|network_function_collector_policy\W+|new_relic_monitor\W+|new_relic_tag_rule\W+)((.|\n)*)###' service/nginx: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_nginx_((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(nginx_|oracle_)((.|\n)*)###' service/notifications: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_notification_hub((.|\n)*)###' @@ -276,7 +282,7 @@ service/redhatopenshift: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_redhat_openshift_cluster((.|\n)*)###' service/redis: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_redis_((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(redis_cache\W+|redis_cache_access_policy\W+|redis_cache_access_policy_assignment\W+|redis_enterprise_cluster\W+|redis_enterprise_database\W+|redis_firewall_rule\W+|redis_linked_server\W+|resource_deployment_script_azure_cli\W+|resource_deployment_script_azure_power_shell\W+|resource_management_private_link\W+|resource_management_private_link_association\W+|resource_provider_registration\W+)((.|\n)*)###' service/relay: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_relay_((.|\n)*)###' @@ -312,7 +318,7 @@ service/spring: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(spring_cloud_accelerator\W+|spring_cloud_active_deployment\W+|spring_cloud_api_portal\W+|spring_cloud_api_portal_custom_domain\W+|spring_cloud_app\W+|spring_cloud_app_cosmosdb_association\W+|spring_cloud_app_dynamics_application_performance_monitoring\W+|spring_cloud_app_mysql_association\W+|spring_cloud_app_redis_association\W+|spring_cloud_application_insights_application_performance_monitoring\W+|spring_cloud_application_live_view\W+|spring_cloud_build_deployment\W+|spring_cloud_build_pack_binding\W+|spring_cloud_builder\W+|spring_cloud_certificate\W+|spring_cloud_configuration_service\W+|spring_cloud_container_deployment\W+|spring_cloud_custom_domain\W+|spring_cloud_customized_accelerator\W+|spring_cloud_dev_tool_portal\W+|spring_cloud_dynatrace_application_performance_monitoring\W+|spring_cloud_elastic_application_performance_monitoring\W+|spring_cloud_gateway\W+|spring_cloud_gateway_custom_domain\W+|spring_cloud_gateway_route_config\W+|spring_cloud_java_deployment\W+|spring_cloud_new_relic_application_performance_monitoring\W+|spring_cloud_service\W+|spring_cloud_storage\W+)((.|\n)*)###' service/storage: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(storage_account\W+|storage_account_blob_container_sas\W+|storage_account_customer_managed_key\W+|storage_account_local_user\W+|storage_account_network_rules\W+|storage_account_sas\W+|storage_blob\W+|storage_blob_inventory_policy\W+|storage_container\W+|storage_container_immutability_policy\W+|storage_containers\W+|storage_data_lake_gen2_filesystem\W+|storage_data_lake_gen2_path\W+|storage_encryption_scope\W+|storage_management_policy\W+|storage_object_replication\W+|storage_queue\W+|storage_share\W+|storage_share_directory\W+|storage_share_file\W+|storage_sync\W+|storage_sync_cloud_endpoint\W+|storage_sync_group\W+|storage_sync_server_endpoint\W+|storage_table\W+|storage_table\W+|storage_table_entities\W+|storage_table_entity\W+)((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(managed_lustre_file_system|storage_account\W+|storage_account_blob_container_sas\W+|storage_account_customer_managed_key\W+|storage_account_local_user\W+|storage_account_network_rules\W+|storage_account_queue_properties\W+|storage_account_sas\W+|storage_account_static_website\W+|storage_blob\W+|storage_blob_inventory_policy\W+|storage_container\W+|storage_container_immutability_policy\W+|storage_containers\W+|storage_data_lake_gen2_filesystem\W+|storage_data_lake_gen2_path\W+|storage_encryption_scope\W+|storage_management_policy\W+|storage_object_replication\W+|storage_queue\W+|storage_share\W+|storage_share_directory\W+|storage_share_file\W+|storage_sync\W+|storage_sync_cloud_endpoint\W+|storage_sync_group\W+|storage_sync_server_endpoint\W+|storage_table\W+|storage_table\W+|storage_table_entities\W+|storage_table_entity\W+)((.|\n)*)###' service/storagemover: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_storage_mover((.|\n)*)###' @@ -332,6 +338,9 @@ service/systemcentervirtualmachinemanager: service/traffic-manager: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_traffic_manager_((.|\n)*)###' +service/trustedsigning: + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_trusted_signing_account((.|\n)*)###' + service/video-indexer: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_video_indexer_account((.|\n)*)###' @@ -339,7 +348,7 @@ service/virtual-desktops: - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_virtual_desktop_((.|\n)*)###' service/vmware: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_vmware_((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(vmware_cluster\W+|vmware_express_route_authorization\W+|vmware_netapp_volume_attachment\W+|vmware_private_cloud\W+|voice_services_communications_gateway\W+|voice_services_communications_gateway_test_line\W+)((.|\n)*)###' service/workloads: - - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_workloads_sap_((.|\n)*)###' + - '### (|New or )Affected Resource\(s\)\/Data Source\(s\)((.|\n)*)azurerm_(chaos_studio_|container_connected_registry\W+|container_registry_cache_rule\W+|container_registry_cache_rule\W+|container_registry_task\W+|container_registry_task_schedule_run_now\W+|container_registry_token_password\W+|kubernetes_cluster_extension\W+|kubernetes_cluster_trusted_access_role_binding\W+|kubernetes_fleet_manager\W+|kubernetes_fleet_member\W+|kubernetes_fleet_update_run\W+|kubernetes_fleet_update_strategy\W+|kubernetes_flux_configuration\W+|kubernetes_node_pool_snapshot\W+|workloads_sap_)((.|\n)*)###' diff --git a/.github/labeler-pull-request-triage-type.yml b/.github/labeler-pull-request-triage-type.yml new file mode 100644 index 000000000000..14700f9f22cd --- /dev/null +++ b/.github/labeler-pull-request-triage-type.yml @@ -0,0 +1,8 @@ +bug: + - '- \[\s?(x|X)\s?\] Bug Fix' + +enhancement: + - '- \[\s?(x|X)\s?\] Enhancement' + +breaking-change: + - '- \[\s?(x|X)\s?\] Breaking Change' \ No newline at end of file diff --git a/.github/labeler-pull-request-triage.yml b/.github/labeler-pull-request-triage.yml index 18d6b28fb62d..154f12cb7ac8 100644 --- a/.github/labeler-pull-request-triage.yml +++ b/.github/labeler-pull-request-triage.yml @@ -7,15 +7,15 @@ dependencies: - vendor/**/* documentation: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - website/**/* tooling: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - internal/tools/**/* state-migration: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - internal/services/**/migration/**/* service/aadb2c: - changed-files: @@ -214,6 +214,11 @@ service/domain-services: - any-glob-to-any-file: - internal/services/domainservices/**/* +service/dynatrace: +- changed-files: + - any-glob-to-any-file: + - internal/services/dynatrace/**/* + service/elastic: - changed-files: - any-glob-to-any-file: @@ -364,6 +369,11 @@ service/mobile-network: - any-glob-to-any-file: - internal/services/mobilenetwork/**/* +service/mongo-cluster: +- changed-files: + - any-glob-to-any-file: + - internal/services/mongocluster/**/* + service/monitor: - changed-files: - any-glob-to-any-file: @@ -555,6 +565,11 @@ service/traffic-manager: - any-glob-to-any-file: - internal/services/trafficmanager/**/* +service/trustedsigning: +- changed-files: + - any-glob-to-any-file: + - internal/services/codesigning/**/* + service/video-indexer: - changed-files: - any-glob-to-any-file: diff --git a/.github/workflows/automation-open-pull-request-go-sdk.yaml b/.github/workflows/automation-open-pull-request-go-sdk.yaml index fab3194ec285..9de98d375d2d 100644 --- a/.github/workflows/automation-open-pull-request-go-sdk.yaml +++ b/.github/workflows/automation-open-pull-request-go-sdk.yaml @@ -12,7 +12,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: "open a pull request" id: open-pr diff --git a/.github/workflows/automation-open-pull-request-pandora.yaml b/.github/workflows/automation-open-pull-request-pandora.yaml index f6010856c3b3..23d5670f3c4a 100644 --- a/.github/workflows/automation-open-pull-request-pandora.yaml +++ b/.github/workflows/automation-open-pull-request-pandora.yaml @@ -13,7 +13,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: "open a pull request" id: open-pr diff --git a/.github/workflows/breaking-change-detection.yaml b/.github/workflows/breaking-change-detection.yaml index 46ee87588dd8..1952c0a07a9e 100644 --- a/.github/workflows/breaking-change-detection.yaml +++ b/.github/workflows/breaking-change-detection.yaml @@ -22,8 +22,8 @@ jobs: detect: runs-on: custom-linux-small steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash ./scripts/run-breaking-change-detection.sh diff --git a/.github/workflows/depscheck.yaml b/.github/workflows/depscheck.yaml index bf42b73e1b64..1529337f05ac 100644 --- a/.github/workflows/depscheck.yaml +++ b/.github/workflows/depscheck.yaml @@ -16,8 +16,8 @@ jobs: depscheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash scripts/gogetcookie.sh diff --git a/.github/workflows/document-lint.yaml b/.github/workflows/document-lint.yaml index bd17884dae9c..4779b3d848c2 100644 --- a/.github/workflows/document-lint.yaml +++ b/.github/workflows/document-lint.yaml @@ -18,8 +18,8 @@ jobs: document-lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash scripts/gogetcookie.sh diff --git a/.github/workflows/gencheck.yaml b/.github/workflows/gencheck.yaml index 681ab6aca5b4..c05283a1408b 100644 --- a/.github/workflows/gencheck.yaml +++ b/.github/workflows/gencheck.yaml @@ -19,8 +19,8 @@ jobs: gencheck: runs-on: custom-linux-large steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash scripts/gogetcookie.sh diff --git a/.github/workflows/golint.yaml b/.github/workflows/golint.yaml index 9731fe3bf64c..e31903312753 100644 --- a/.github/workflows/golint.yaml +++ b/.github/workflows/golint.yaml @@ -20,13 +20,13 @@ jobs: golint: runs-on: custom-linux-large steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 with: - version: 'v1.55.1' + version: 'v1.61.0' args: -v ./internal/... save-artifacts-on-fail: if: ${{ needs.golint.result }} == 'failure' diff --git a/.github/workflows/gradually-deprecated.yaml b/.github/workflows/gradually-deprecated.yaml index a28fd819c89d..06d6f5b118c9 100644 --- a/.github/workflows/gradually-deprecated.yaml +++ b/.github/workflows/gradually-deprecated.yaml @@ -16,10 +16,10 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash ./scripts/run-gradually-deprecated.sh diff --git a/.github/workflows/increment-milestone.yaml b/.github/workflows/increment-milestone.yaml index 52b0a35a1d3c..e641b0b66d62 100644 --- a/.github/workflows/increment-milestone.yaml +++ b/.github/workflows/increment-milestone.yaml @@ -14,7 +14,7 @@ jobs: increment-milestone: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - name: "Increment Milestone" diff --git a/.github/workflows/issue-opened.yaml b/.github/workflows/issue-opened.yaml index 681cfe3acb61..f48dc263a8ab 100644 --- a/.github/workflows/issue-opened.yaml +++ b/.github/workflows/issue-opened.yaml @@ -12,7 +12,7 @@ jobs: issue_triage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/link-milestone.yaml b/.github/workflows/link-milestone.yaml index e79a639da4bb..bc528fdb9809 100644 --- a/.github/workflows/link-milestone.yaml +++ b/.github/workflows/link-milestone.yaml @@ -15,7 +15,7 @@ jobs: pull-requests: write issues: write steps: - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: # we cannot use go-version-file here because no repositories are checked out so there is no file to reference go-version: '1.22.7' diff --git a/.github/workflows/mkdocs.yaml b/.github/workflows/mkdocs.yaml index 0f6b45246b63..da0f0513d002 100644 --- a/.github/workflows/mkdocs.yaml +++ b/.github/workflows/mkdocs.yaml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Publish uses: mhausenblas/mkdocs-deploy-gh-pages@d77dd03172e96abbcdb081d8c948224762033653 # 1.26 diff --git a/.github/workflows/provider-test.yaml b/.github/workflows/provider-test.yaml index c8c3c0a9e520..9d2ff5ebd2f7 100644 --- a/.github/workflows/provider-test.yaml +++ b/.github/workflows/provider-test.yaml @@ -36,10 +36,10 @@ jobs: if: needs.secrets-check.outputs.available == 'true' steps: - name: Checkout - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Install Go - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version diff --git a/.github/workflows/pull-request-type.yaml b/.github/workflows/pull-request-type.yaml new file mode 100644 index 000000000000..6442e8614628 --- /dev/null +++ b/.github/workflows/pull-request-type.yaml @@ -0,0 +1,20 @@ +--- +name: Pull Request Type + +permissions: + pull-requests: write + +on: + pull_request_target: + types: [opened, edited] + +jobs: + pr_triage_label_type: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4 + continue-on-error: true + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/labeler-pull-request-triage-type.yml + enable-versioned-regex: 0 \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4895cd999571..f7c2228e7bb8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,13 +15,13 @@ jobs: outputs: version: ${{ steps.go-version.outputs.version }} steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - id: go-version run: echo "version=$(cat ./.go-version)" >>${GITHUB_OUTPUT} release-notes: runs-on: custom-linux-xl steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - name: Generate Release Notes diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index 1d06c073ecc9..c8a01ca09476 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -21,8 +21,8 @@ jobs: detect: runs-on: custom-linux-small steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash ./scripts/run-static-analysis.sh diff --git a/.github/workflows/teamcity-test.yaml b/.github/workflows/teamcity-test.yaml index 2cc97f70dfb0..d451061a943b 100644 --- a/.github/workflows/teamcity-test.yaml +++ b/.github/workflows/teamcity-test.yaml @@ -21,13 +21,13 @@ jobs: teamcity-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: distribution: zulu java-version: 17 java-package: jdk - - uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 + - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/tflint.yaml b/.github/workflows/tflint.yaml index 633625ae3106..43ffc0a4f55c 100644 --- a/.github/workflows/tflint.yaml +++ b/.github/workflows/tflint.yaml @@ -20,8 +20,8 @@ jobs: tflint: runs-on: custom-linux-medium steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash scripts/gogetcookie.sh diff --git a/.github/workflows/thirty-two-bit.yaml b/.github/workflows/thirty-two-bit.yaml index 1f004c3ab946..e1042b3914e8 100644 --- a/.github/workflows/thirty-two-bit.yaml +++ b/.github/workflows/thirty-two-bit.yaml @@ -21,8 +21,8 @@ jobs: compatibility-32bit-test: runs-on: custom-linux-small steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash scripts/gogetcookie.sh diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index b8122f19bda8..712b9e685e49 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -21,8 +21,8 @@ jobs: test: runs-on: custom-linux-large steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash scripts/gogetcookie.sh diff --git a/.github/workflows/validate-examples.yaml b/.github/workflows/validate-examples.yaml index 9d7d9e924d45..0ec7aaaab158 100644 --- a/.github/workflows/validate-examples.yaml +++ b/.github/workflows/validate-examples.yaml @@ -20,8 +20,8 @@ jobs: website-lint: runs-on: custom-linux-small steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash scripts/gogetcookie.sh diff --git a/.github/workflows/website-lint.yaml b/.github/workflows/website-lint.yaml index fa9b13046102..52277f2edf9f 100644 --- a/.github/workflows/website-lint.yaml +++ b/.github/workflows/website-lint.yaml @@ -16,8 +16,8 @@ jobs: website-lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: go-version-file: ./.go-version - run: bash scripts/gogetcookie.sh diff --git a/.golangci.yml b/.golangci.yml index e984b510d608..aef536177b4a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,7 +3,7 @@ run: timeout: 60m - go: 1.21 + go: 1.22 modules-download-mode: vendor skip-dirs: - /sdk/ # Excluding sdk folders as these are externally generated @@ -17,29 +17,64 @@ issues: linters: disable-all: true enable: - - asciicheck - - bidichk - - errcheck - - gocritic - - gofmt - - goimports - - gosimple - - govet - - ineffassign - #- nakedret - - misspell - #- nolintlint - #- nlreturn - - reassign - - staticcheck - - typecheck - - unused - - unconvert - - unparam - - vet - - vetshadow - # - wastedassign # disabled because of generics - # - whitespace # Disabled for performance reasons - Ignores cache and takes 12+ minutes to run on the repo for _any_ change + - asasalint # check for pass []any as any in variadic func(...any) + - asciicheck # ensure code does not contain non-ASCII identifiers + - bidichk # checks for dangerous unicode character sequences + - decorder # check declaration order and count of types, constants, variables and functions. + - durationcheck # check for common mistakes when working with time.Duration + - dupword # check for duplicated words in comments + - errcheck # checking for unchecked errors + - gocritic # linter for Go source code that specializes in simplifying code + - gofmt # checks whether code was gofmt-ed + - gofumpt # checks whether code was gofumpt-ed, a stricter gofmt + - goimports # check import statements are formatted according to the 'goimport' command + - gosimple # linter for Go source code that specializes in simplifying code. + - govet # reports suspicious constructs. It is roughly the same as 'go vet' (replaced vet and vetshadow) + - ineffassign # detects when assignments to existing variables are not used + - misspell # finds commonly misspelled English words. + #- nilerr # Finds the code that returns nil even if it checks that the error is not nil. + #- nlreturn # Nlreturn checks for a new line before return and branch statements to increase code clarity. + - prealloc # finds slice declarations that could potentially be pre-allocated. + - predeclared # find code that shadows one of Go's predeclared identifiers. + - reassign # checks that package variables are not reassigned. + #- revive #Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint. + - tagalign # checks struct tags that do not align with the specified column in struct definitions. + - staticcheck # checks rules from staticcheck. It's not the same thing as the staticcheck binary. + - unused # checks Go code for unused constants, variables, functions and types. + - unconvert # checks for unnecessary type conversions. + - unparam # reports unused function parameters. + - wastedassign # finds wasted assignment statements + - whitespace # checks for unnecessary newlines at the start and end of functions, if, for, etc. ( + #- wsl # add or remove empty lines. + + ##### need to confirm these are valid and not false positives ##### + #- paralleltest # detects missing usage of t.Parallel() method in your Go test. + #- tparallel # Tparallel detects inappropriate usage of t.Parallel() method in your Go test codes. + + ###### DISABLED because : integer overflow conversion int -> int32 + # - gosec # Gosec is a security linter for Go source code + + ##### DISABLED as i was fixing them with other linters, and not realizing how many there are - disabling for now even thou it is valid + #- perfsprint # Checks that fmt.Sprintf can be replaced with a faster alternative. + + #### VALID but DISABLED as we have a lot of these in the codebase to switch over + #- nakedret # Checks that functions with naked returns are not longer than a maximum size + + #### DISABLED TO DO IN ITS OWN PR - should be enabled and done ##### + #- tenv #detects using os.Setenv instead of t.Setenv since Go1.17. + + #### bunch of hits, need to confirm if errors or not ##### + #- copyloopvar #Detects range loop variables that are overwritten in the loop body + + #### DISABLED till %+v -> %w ##### + #- err113 #Go linter to check the errors handling expressions. - disabled as it suggests (correctly?) to use %w in fmt.Errorf instead of %+v (1000s of usages in the codebase) + #- errorlint #### DISABLED till %+v -> %w ##### #Errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme used in the github.com/pkg/errors package. + + # disabled as it may be useful but there are a lot of switch statements in the codebase with unhandled inputs + #- exhaustive #Check for missing cases in select statements + + ###### DISABLED because golang will put the space back into `//nolint: linter` -> `// nolint: linter` ###### + #- nolintlint #Reports ill-formed or insufficient nolint directives. linters-settings: errcheck: @@ -49,4 +84,17 @@ linters-settings: - hdinsight - exportfs nakedret: - max-func-lines: 40 + max-func-lines: 30 + tagalign: + sort: true + order: + - json + - tfschema + - computed + predeclared: + ignore: new,min,max # should we use newer, minimum, and maximum instead? + revive: + rules: + - name: var-naming + disabled: true + diff --git a/.release/provider-schema.json b/.release/provider-schema.json index 1f6d25912ba2..381f9aad7eec 100644 --- a/.release/provider-schema.json +++ b/.release/provider-schema.json @@ -1 +1 @@ -{"providerName":"azurerm","schemaVersion":"1","providerSchema":{"schema":{"auxiliary_tenant_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":3},"client_certificate":{"type":"TypeString","optional":true,"description":"Base64 encoded PKCS#12 certificate bundle to use when authenticating as a Service Principal using a Client Certificate"},"client_certificate_password":{"type":"TypeString","optional":true,"description":"The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate"},"client_certificate_path":{"type":"TypeString","optional":true,"description":"The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate."},"client_id":{"type":"TypeString","optional":true,"description":"The Client ID which should be used."},"client_id_file_path":{"type":"TypeString","optional":true,"description":"The path to a file containing the Client ID which should be used."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret."},"client_secret_file_path":{"type":"TypeString","optional":true,"description":"The path to a file containing the Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret."},"disable_correlation_request_id":{"type":"TypeBool","optional":true,"description":"This will disable the x-ms-correlation-request-id header."},"disable_terraform_partner_id":{"type":"TypeBool","optional":true,"description":"This will disable the Terraform Partner ID which is used if a custom `partner_id` isn't specified."},"environment":{"type":"TypeString","optional":true,"description":"The Cloud Environment which should be used. Possible values are public, usgovernment, and china. Defaults to public. Not used and should not be specified when `metadata_host` is specified."},"features":{"type":"TypeList","required":true,"elem":{"schema":{"api_management":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_delete_on_destroy":{"type":"TypeBool","optional":true,"default":true},"recover_soft_deleted":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"app_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_delete_on_destroy":{"type":"TypeBool","optional":true,"default":true},"recover_soft_deleted":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"application_insights":{"type":"TypeList","optional":true,"elem":{"schema":{"disable_generated_rule":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"cognitive_account":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_delete_on_destroy":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_delete_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_certificates_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_certificate` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_hardware_security_module_keys_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_managed_hardware_security_module_key` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_hardware_security_modules_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_managed_hardware_security_module` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_keys_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_key` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_secrets_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_secret` resources will be permanently deleted (e.g purged), when destroyed"},"recover_soft_deleted_certificates":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_certificate` resources will be restored, instead of creating new ones"},"recover_soft_deleted_hardware_security_module_keys":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_managed_hardware_security_module_key` resources will be restored, instead of creating new ones"},"recover_soft_deleted_key_vaults":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault` resources will be restored, instead of creating new ones"},"recover_soft_deleted_keys":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_key` resources will be restored, instead of creating new ones"},"recover_soft_deleted_secrets":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_secret` resources will be restored, instead of creating new ones"}}},"maxItems":1},"log_analytics_workspace":{"type":"TypeList","optional":true,"elem":{"schema":{"permanently_delete_on_destroy":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"machine_learning":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_deleted_workspace_on_destroy":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"managed_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"expand_without_downtime":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"postgresql_flexible_server":{"type":"TypeList","optional":true,"elem":{"schema":{"restart_server_on_configuration_value_change":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"recovery_service":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_protected_items_from_vault_on_destroy":{"type":"TypeBool","optional":true,"default":false},"vm_backup_stop_protection_and_retain_data_on_destroy":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"recovery_services_vaults":{"type":"TypeList","optional":true,"elem":{"schema":{"recover_soft_deleted_backup_protected_vm":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"resource_group":{"type":"TypeList","optional":true,"elem":{"schema":{"prevent_deletion_if_contains_resources":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"subscription":{"type":"TypeList","optional":true,"elem":{"schema":{"prevent_cancellation_on_destroy":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"template_deployment":{"type":"TypeList","optional":true,"elem":{"schema":{"delete_nested_items_during_deletion":{"type":"TypeBool","required":true}}},"maxItems":1},"virtual_machine":{"type":"TypeList","optional":true,"elem":{"schema":{"delete_os_disk_on_deletion":{"type":"TypeBool","optional":true,"default":false},"detach_implicit_data_disk_on_deletion":{"type":"TypeBool","optional":true,"default":false},"graceful_shutdown":{"type":"TypeBool","optional":true,"default":false},"skip_shutdown_and_force_delete":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"virtual_machine_scale_set":{"type":"TypeList","optional":true,"elem":{"schema":{"force_delete":{"type":"TypeBool","optional":true,"default":false},"reimage_on_manual_upgrade":{"type":"TypeBool","optional":true,"default":true},"roll_instances_when_required":{"type":"TypeBool","optional":true,"default":true},"scale_to_zero_before_deletion":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}}},"maxItems":1,"minItems":1},"metadata_host":{"type":"TypeString","optional":true,"description":"The Hostname which should be used for the Azure Metadata Service."},"msi_endpoint":{"type":"TypeString","optional":true,"description":"The path to a custom endpoint for Managed Service Identity - in most circumstances this should be detected automatically. "},"oidc_request_token":{"type":"TypeString","optional":true,"description":"The bearer token for the request to the OIDC provider. For use when authenticating as a Service Principal using OpenID Connect."},"oidc_request_url":{"type":"TypeString","optional":true,"description":"The URL for the OIDC provider from which to request an ID token. For use when authenticating as a Service Principal using OpenID Connect."},"oidc_token":{"type":"TypeString","optional":true,"description":"The OIDC ID token for use when authenticating as a Service Principal using OpenID Connect."},"oidc_token_file_path":{"type":"TypeString","optional":true,"description":"The path to a file containing an OIDC ID token for use when authenticating as a Service Principal using OpenID Connect."},"partner_id":{"type":"TypeString","optional":true,"description":"A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution."},"resource_provider_registrations":{"type":"TypeString","optional":true,"description":"The set of Resource Providers which should be automatically registered for the subscription."},"resource_providers_to_register":{"type":"TypeList","optional":true,"description":"A list of Resource Providers to explicitly register for the subscription, in addition to those specified by the `resource_provider_registrations` property.","elem":{"type":"TypeString"}},"skip_provider_registration":{"type":"TypeBool","optional":true,"description":"Should the AzureRM Provider skip registering all of the Resource Providers that it supports, if they're not already registered?"},"storage_use_azuread":{"type":"TypeBool","optional":true,"description":"Should the AzureRM Provider use Azure AD Authentication when accessing the Storage Data Plane APIs?"},"subscription_id":{"type":"TypeString","optional":true,"description":"The Subscription ID which should be used."},"tenant_id":{"type":"TypeString","optional":true,"description":"The Tenant ID which should be used."},"use_aks_workload_identity":{"type":"TypeBool","optional":true,"description":"Allow Azure AKS Workload Identity to be used for Authentication."},"use_cli":{"type":"TypeBool","optional":true,"default":true,"description":"Allow Azure CLI to be used for Authentication."},"use_msi":{"type":"TypeBool","optional":true,"description":"Allow Managed Service Identity to be used for Authentication."},"use_oidc":{"type":"TypeBool","optional":true,"description":"Allow OpenID Connect to be used for authentication"}},"resources":{"azurerm_aadb2c_directory":{"schema":{"billing_type":{"type":"TypeString","description":"The type of billing for the B2C tenant. Possible values include: `MAU` or `Auths`.","computed":true},"country_code":{"type":"TypeString","optional":true,"description":"Country code of the B2C tenant. See https://aka.ms/B2CDataResidency for valid country codes.","computed":true,"forceNew":true},"data_residency_location":{"type":"TypeString","required":true,"description":"Location in which the B2C tenant is hosted and data resides. See https://aka.ms/B2CDataResidency for more information.","forceNew":true},"display_name":{"type":"TypeString","optional":true,"description":"The initial display name of the B2C tenant.","computed":true,"forceNew":true},"domain_name":{"type":"TypeString","required":true,"description":"Domain name of the B2C tenant, including onmicrosoft.com suffix.","forceNew":true},"effective_start_date":{"type":"TypeString","description":"The date from which the billing type took effect. May not be populated until after the first billing cycle.","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"description":"Billing SKU for the B2C tenant. See https://aka.ms/b2cBilling for more information."},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","description":"The Tenant ID for the B2C tenant.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_active_directory_domain_service":{"schema":{"deployment_id":{"type":"TypeString","computed":true},"domain_configuration_type":{"type":"TypeString","optional":true,"forceNew":true},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"filtered_sync_enabled":{"type":"TypeBool","optional":true,"default":false},"initial_replica_set":{"type":"TypeList","required":true,"elem":{"schema":{"domain_controller_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"external_access_ip_address":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"service_status":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notifications":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"notify_dc_admins":{"type":"TypeBool","optional":true,"default":false},"notify_global_admins":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","computed":true},"secure_ldap":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"certificate_expiry":{"type":"TypeString","computed":true},"certificate_thumbprint":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","required":true},"external_access_enabled":{"type":"TypeBool","optional":true,"default":false},"pfx_certificate":{"type":"TypeString","required":true},"pfx_certificate_password":{"type":"TypeString","required":true},"public_certificate":{"type":"TypeString","computed":true}}},"maxItems":1},"security":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"kerberos_armoring_enabled":{"type":"TypeBool","optional":true,"default":false},"kerberos_rc4_encryption_enabled":{"type":"TypeBool","optional":true,"default":false},"ntlm_v1_enabled":{"type":"TypeBool","optional":true,"default":false},"sync_kerberos_passwords":{"type":"TypeBool","optional":true,"default":false},"sync_ntlm_passwords":{"type":"TypeBool","optional":true,"default":false},"sync_on_prem_passwords":{"type":"TypeBool","optional":true,"default":false},"tls_v1_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"sku":{"type":"TypeString","required":true},"sync_owner":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true},"version":{"type":"TypeInt","computed":true}},"timeouts":{"create":180,"read":5,"delete":60,"update":120}},"azurerm_active_directory_domain_service_replica_set":{"schema":{"domain_controller_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"domain_service_id":{"type":"TypeString","required":true,"forceNew":true},"external_access_ip_address":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"service_status":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":180,"read":5,"delete":60}},"azurerm_active_directory_domain_service_trust":{"schema":{"domain_service_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"trusted_domain_dns_ips":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":2},"trusted_domain_fqdn":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_advanced_threat_protection":{"schema":{"enabled":{"type":"TypeBool","required":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_advisor_suppression":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recommendation_id":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","required":true,"forceNew":true},"suppression_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_ai_services":{"schema":{"custom_subdomain_name":{"type":"TypeString","optional":true,"forceNew":true},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"managed_hsm_key_id":{"type":"TypeString","optional":true}}},"maxItems":1},"endpoint":{"type":"TypeString","computed":true},"fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acls":{"type":"TypeList","optional":true,"elem":{"schema":{"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"virtual_network_rules":{"type":"TypeSet","optional":true,"elem":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false},"subnet_id":{"type":"TypeString","required":true}}}}}},"maxItems":1},"outbound_network_access_restricted":{"type":"TypeBool","optional":true,"default":false},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access":{"type":"TypeString","optional":true,"default":"Enabled"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true},"storage":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_analysis_services_server":{"schema":{"admin_users":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"backup_blob_container_uri":{"type":"TypeString","optional":true},"ipv4_firewall_rule":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"range_end":{"type":"TypeString","required":true},"range_start":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"power_bi_service_enabled":{"type":"TypeBool","optional":true},"querypool_connection_mode":{"type":"TypeString","optional":true,"default":"All"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_full_name":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_connection":{"schema":{"display_name":{"type":"TypeString","optional":true,"default":"Service Bus","forceNew":true},"managed_api_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameter_values":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management":{"schema":{"additional_location":{"type":"TypeList","optional":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true,"computed":true},"gateway_disabled":{"type":"TypeBool","optional":true,"default":false},"gateway_regional_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_id":{"type":"TypeString","optional":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_network_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","required":true}}},"maxItems":1},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_password":{"type":"TypeString","optional":true},"encoded_certificate":{"type":"TypeString","required":true},"expiry":{"type":"TypeString","computed":true},"store_name":{"type":"TypeString","required":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}},"maxItems":10},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"delegation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"subscriptions_enabled":{"type":"TypeBool","optional":true,"default":false},"url":{"type":"TypeString","optional":true},"user_registration_enabled":{"type":"TypeBool","optional":true,"default":false},"validation_key":{"type":"TypeString","optional":true}}},"maxItems":1},"developer_portal_url":{"type":"TypeString","computed":true},"gateway_disabled":{"type":"TypeBool","optional":true,"default":false},"gateway_regional_url":{"type":"TypeString","computed":true},"gateway_url":{"type":"TypeString","computed":true},"hostname_configuration":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"developer_portal":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"management":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"portal":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"default_ssl_binding":{"type":"TypeBool","optional":true,"computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"scm":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"management_api_url":{"type":"TypeString","computed":true},"min_api_version":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification_sender_email":{"type":"TypeString","optional":true,"computed":true},"portal_url":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"protocols":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enable_http2":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"public_ip_address_id":{"type":"TypeString","optional":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"publisher_email":{"type":"TypeString","required":true},"publisher_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scm_url":{"type":"TypeString","computed":true},"security":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enable_backend_ssl30":{"type":"TypeBool","optional":true,"default":false},"enable_backend_tls10":{"type":"TypeBool","optional":true,"default":false},"enable_backend_tls11":{"type":"TypeBool","optional":true,"default":false},"enable_frontend_ssl30":{"type":"TypeBool","optional":true,"default":false},"enable_frontend_tls10":{"type":"TypeBool","optional":true,"default":false},"enable_frontend_tls11":{"type":"TypeBool","optional":true,"default":false},"tls_ecdhe_ecdsa_with_aes128_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_ecdhe_ecdsa_with_aes256_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_ecdhe_rsa_with_aes128_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_ecdhe_rsa_with_aes256_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes128_cbc_sha256_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes128_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes128_gcm_sha256_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes256_cbc_sha256_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes256_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes256_gcm_sha384_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"triple_des_ciphers_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"sign_in":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"sign_up":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"terms_of_service":{"type":"TypeList","required":true,"elem":{"schema":{"consent_required":{"type":"TypeBool","required":true},"enabled":{"type":"TypeBool","required":true},"text":{"type":"TypeString","optional":true}}},"maxItems":1}}},"maxItems":1},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_access":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"primary_key":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}},"maxItems":1},"virtual_network_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","required":true}}},"maxItems":1},"virtual_network_type":{"type":"TypeString","optional":true,"default":"None"},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_api_management_api":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_type":{"type":"TypeString","optional":true,"computed":true},"contact":{"type":"TypeList","optional":true,"elem":{"schema":{"email":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"url":{"type":"TypeString","optional":true}}},"maxItems":1,"minItems":1},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"import":{"type":"TypeList","optional":true,"elem":{"schema":{"content_format":{"type":"TypeString","required":true},"content_value":{"type":"TypeString","required":true},"wsdl_selector":{"type":"TypeList","optional":true,"elem":{"schema":{"endpoint_name":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"is_current":{"type":"TypeBool","computed":true},"is_online":{"type":"TypeBool","computed":true},"license":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"url":{"type":"TypeString","optional":true}}},"maxItems":1,"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"oauth2_authorization":{"type":"TypeList","optional":true,"elem":{"schema":{"authorization_server_name":{"type":"TypeString","required":true},"scope":{"type":"TypeString","optional":true}}},"maxItems":1},"openid_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"bearer_token_sending_methods":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"openid_provider_name":{"type":"TypeString","required":true}}},"maxItems":1},"path":{"type":"TypeString","optional":true,"computed":true},"protocols":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"revision":{"type":"TypeString","required":true,"forceNew":true},"revision_description":{"type":"TypeString","optional":true},"service_url":{"type":"TypeString","optional":true,"computed":true},"source_api_id":{"type":"TypeString","optional":true},"subscription_key_parameter_names":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"header":{"type":"TypeString","required":true},"query":{"type":"TypeString","required":true}}},"maxItems":1},"subscription_required":{"type":"TypeBool","optional":true,"default":true},"terms_of_service_url":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true,"computed":true},"version_description":{"type":"TypeString","optional":true},"version_set_id":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_diagnostic":{"schema":{"always_log_errors":{"type":"TypeBool","optional":true,"computed":true},"api_management_logger_id":{"type":"TypeString","required":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"backend_request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"backend_response":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"frontend_request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"frontend_response":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"http_correlation_protocol":{"type":"TypeString","optional":true,"computed":true},"identifier":{"type":"TypeString","required":true,"forceNew":true},"log_client_ip":{"type":"TypeBool","optional":true,"computed":true},"operation_name_format":{"type":"TypeString","optional":true,"default":"Name"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sampling_percentage":{"type":"TypeFloat","optional":true,"computed":true},"verbosity":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_operation":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"method":{"type":"TypeString","required":true},"operation_id":{"type":"TypeString","required":true,"forceNew":true},"request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"query_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"representation":{"type":"TypeList","optional":true,"elem":{"schema":{"content_type":{"type":"TypeString","required":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"form_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"schema_id":{"type":"TypeString","optional":true},"type_name":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"response":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"representation":{"type":"TypeList","optional":true,"elem":{"schema":{"content_type":{"type":"TypeString","required":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"form_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"schema_id":{"type":"TypeString","optional":true},"type_name":{"type":"TypeString","optional":true}}}},"status_code":{"type":"TypeInt","required":true}}}},"template_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"url_template":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_operation_policy":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"operation_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"xml_content":{"type":"TypeString","optional":true,"computed":true},"xml_link":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_operation_tag":{"schema":{"api_operation_id":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_policy":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"xml_content":{"type":"TypeString","optional":true,"computed":true},"xml_link":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_release":{"schema":{"api_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_schema":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"components":{"type":"TypeString","optional":true},"content_type":{"type":"TypeString","required":true},"definitions":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schema_id":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_tag":{"schema":{"api_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_api_tag_description":{"schema":{"api_tag_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"external_documentation_description":{"type":"TypeString","optional":true},"external_documentation_url":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_version_set":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"version_header_name":{"type":"TypeString","optional":true},"version_query_name":{"type":"TypeString","optional":true},"versioning_scheme":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_authorization_server":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"authorization_endpoint":{"type":"TypeString","required":true},"authorization_methods":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"bearer_token_sending_methods":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"client_authentication_method":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_registration_endpoint":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true},"default_scope":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"grant_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_owner_password":{"type":"TypeString","optional":true},"resource_owner_username":{"type":"TypeString","optional":true},"support_state":{"type":"TypeBool","optional":true},"token_body_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"token_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_backend":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"credentials":{"type":"TypeList","optional":true,"elem":{"schema":{"authorization":{"type":"TypeList","optional":true,"elem":{"schema":{"parameter":{"type":"TypeString","optional":true},"scheme":{"type":"TypeString","optional":true}}},"maxItems":1},"certificate":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"header":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"query":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protocol":{"type":"TypeString","required":true},"proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true},"url":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","optional":true},"service_fabric_cluster":{"type":"TypeList","optional":true,"elem":{"schema":{"client_certificate_id":{"type":"TypeString","optional":true,"computed":true},"client_certificate_thumbprint":{"type":"TypeString","optional":true,"computed":true},"management_endpoints":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"max_partition_resolution_retries":{"type":"TypeInt","required":true},"server_certificate_thumbprints":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"server_x509_name":{"type":"TypeSet","optional":true,"elem":{"schema":{"issuer_certificate_thumbprint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"title":{"type":"TypeString","optional":true},"tls":{"type":"TypeList","optional":true,"elem":{"schema":{"validate_certificate_chain":{"type":"TypeBool","optional":true},"validate_certificate_name":{"type":"TypeBool","optional":true}}},"maxItems":1},"url":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_certificate":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"data":{"type":"TypeString","optional":true},"expiration":{"type":"TypeString","computed":true},"key_vault_identity_client_id":{"type":"TypeString","optional":true},"key_vault_secret_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_custom_domain":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"developer_portal":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"gateway":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"default_ssl_binding":{"type":"TypeBool","optional":true,"computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"management":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"portal":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"scm":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_api_management_diagnostic":{"schema":{"always_log_errors":{"type":"TypeBool","optional":true,"computed":true},"api_management_logger_id":{"type":"TypeString","required":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"backend_request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"backend_response":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"frontend_request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"frontend_response":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"http_correlation_protocol":{"type":"TypeString","optional":true,"computed":true},"identifier":{"type":"TypeString","required":true,"forceNew":true},"log_client_ip":{"type":"TypeBool","optional":true,"computed":true},"operation_name_format":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sampling_percentage":{"type":"TypeFloat","optional":true,"computed":true},"verbosity":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_email_template":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"body":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subject":{"type":"TypeString","required":true},"template_name":{"type":"TypeString","required":true,"forceNew":true},"title":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_gateway":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"location_data":{"type":"TypeList","required":true,"elem":{"schema":{"city":{"type":"TypeString","optional":true},"district":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"region":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_gateway_api":{"schema":{"api_id":{"type":"TypeString","required":true,"forceNew":true},"gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_gateway_certificate_authority":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"certificate_name":{"type":"TypeString","required":true,"forceNew":true},"gateway_name":{"type":"TypeString","required":true,"forceNew":true},"is_trusted":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_gateway_host_name_configuration":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"certificate_id":{"type":"TypeString","required":true},"gateway_name":{"type":"TypeString","required":true,"forceNew":true},"host_name":{"type":"TypeString","required":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"request_client_certificate_enabled":{"type":"TypeBool","optional":true},"tls10_enabled":{"type":"TypeBool","optional":true},"tls11_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_global_schema":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schema_id":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_group":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"external_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","optional":true,"default":"custom","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_group_user":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"user_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_identity_provider_aad":{"schema":{"allowed_tenants":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_library":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"signin_tenant":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_aadb2c":{"schema":{"allowed_tenant":{"type":"TypeString","required":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"authority":{"type":"TypeString","required":true},"client_id":{"type":"TypeString","required":true},"client_library":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","required":true},"password_reset_policy":{"type":"TypeString","optional":true},"profile_editing_policy":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"signin_policy":{"type":"TypeString","required":true},"signin_tenant":{"type":"TypeString","required":true},"signup_policy":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_facebook":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_google":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_microsoft":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_twitter":{"schema":{"api_key":{"type":"TypeString","required":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_secret_key":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_logger":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"application_insights":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"connection_string":{"type":"TypeString","optional":true},"instrumentation_key":{"type":"TypeString","optional":true}}},"maxItems":1},"buffered":{"type":"TypeBool","optional":true,"default":true},"description":{"type":"TypeString","optional":true},"eventhub":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"connection_string":{"type":"TypeString","optional":true},"endpoint_uri":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"user_assigned_identity_client_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_named_value":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secret":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","optional":true},"value_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"secret_id":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_notification_recipient_email":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"email":{"type":"TypeString","required":true,"forceNew":true},"notification_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_notification_recipient_user":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"notification_type":{"type":"TypeString","required":true,"forceNew":true},"user_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_openid_connect_provider":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"metadata_endpoint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_policy":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"xml_content":{"type":"TypeString","optional":true,"computed":true},"xml_link":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_policy_fragment":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true,"default":"xml"},"name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_product":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"approval_required":{"type":"TypeBool","optional":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"product_id":{"type":"TypeString","required":true,"forceNew":true},"published":{"type":"TypeBool","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_required":{"type":"TypeBool","optional":true,"default":true},"subscriptions_limit":{"type":"TypeInt","optional":true},"terms":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_product_api":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"product_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_product_group":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"group_name":{"type":"TypeString","required":true,"forceNew":true},"product_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_product_policy":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"product_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"xml_content":{"type":"TypeString","optional":true,"computed":true},"xml_link":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_product_tag":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_management_product_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_redis_cache":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"cache_location":{"type":"TypeString","optional":true,"default":"default"},"connection_string":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"redis_cache_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_subscription":{"schema":{"allow_tracing":{"type":"TypeBool","optional":true,"default":true},"api_id":{"type":"TypeString","optional":true,"forceNew":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","optional":true,"computed":true},"product_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_key":{"type":"TypeString","optional":true,"computed":true},"state":{"type":"TypeString","optional":true,"default":"submitted"},"subscription_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"user_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_tag":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_user":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"confirmation":{"type":"TypeString","optional":true,"forceNew":true},"email":{"type":"TypeString","required":true},"first_name":{"type":"TypeString","required":true},"last_name":{"type":"TypeString","required":true},"note":{"type":"TypeString","optional":true},"password":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"state":{"type":"TypeString","optional":true,"computed":true},"user_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":45,"read":5,"delete":45,"update":45}},"azurerm_app_configuration":{"schema":{"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"key_vault_key_identifier":{"type":"TypeString","optional":true}}},"maxItems":1},"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_read_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"primary_write_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"public_network_access":{"type":"TypeString","optional":true},"purge_protection_enabled":{"type":"TypeBool","optional":true,"default":false},"replica":{"type":"TypeSet","optional":true,"elem":{"schema":{"endpoint":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_read_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"secondary_write_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"sku":{"type":"TypeString","optional":true,"default":"free"},"soft_delete_retention_days":{"type":"TypeInt","optional":true,"default":7,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_app_configuration_feature":{"schema":{"configuration_store_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true},"etag":{"type":"TypeString","optional":true,"computed":true},"key":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"label":{"type":"TypeString","optional":true,"forceNew":true},"locked":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"percentage_filter_value":{"type":"TypeFloat","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"targeting_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_rollout_percentage":{"type":"TypeInt","required":true},"groups":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"rollout_percentage":{"type":"TypeInt","required":true}}}},"users":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"timewindow_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"end":{"type":"TypeString","optional":true},"start":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":45,"read":5,"delete":30,"update":30}},"azurerm_app_configuration_key":{"schema":{"configuration_store_id":{"type":"TypeString","required":true,"forceNew":true},"content_type":{"type":"TypeString","optional":true,"computed":true},"etag":{"type":"TypeString","optional":true,"computed":true},"key":{"type":"TypeString","required":true,"forceNew":true},"label":{"type":"TypeString","optional":true,"forceNew":true},"locked":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","optional":true,"default":"kv"},"value":{"type":"TypeString","optional":true},"vault_key_reference":{"type":"TypeString","optional":true}},"timeouts":{"create":45,"read":5,"delete":30,"update":30}},"azurerm_app_service":{"schema":{"app_service_plan_id":{"type":"TypeString","required":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true}}},"maxItems":1},"additional_login_params":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true},"consumer_secret":{"type":"TypeString","required":true}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true},"frequency_unit":{"type":"TypeString","required":true},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false},"retention_period_in_days":{"type":"TypeInt","optional":true,"default":30},"start_time":{"type":"TypeString","optional":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_cert_enabled":{"type":"TypeBool","optional":true,"default":false},"client_cert_mode":{"type":"TypeString","optional":true,"computed":true},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_site_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","optional":true,"default":"Off"}}},"maxItems":1},"detailed_error_messages_enabled":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing_enabled":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"acr_use_managed_identity_credentials":{"type":"TypeBool","optional":true,"default":false},"acr_user_managed_identity_client_id":{"type":"TypeString","optional":true},"always_on":{"type":"TypeBool","optional":true,"default":false},"app_command_line":{"type":"TypeString","optional":true},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"java_container":{"type":"TypeString","optional":true},"java_container_version":{"type":"TypeString","optional":true},"java_version":{"type":"TypeString","optional":true},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"local_mysql_enabled":{"type":"TypeBool","optional":true,"computed":true},"managed_pipeline_mode":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"number_of_workers":{"type":"TypeInt","optional":true,"computed":true},"php_version":{"type":"TypeString","optional":true},"python_version":{"type":"TypeString","optional":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"computed":true},"windows_fx_version":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"source_control":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"branch":{"type":"TypeString","optional":true,"computed":true},"manual_integration":{"type":"TypeBool","optional":true,"computed":true},"repo_url":{"type":"TypeString","optional":true,"computed":true},"rollback_enabled":{"type":"TypeBool","optional":true,"computed":true},"use_mercurial":{"type":"TypeBool","optional":true,"computed":true}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_active_slot":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"app_service_slot_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_certificate":{"schema":{"app_service_plan_id":{"type":"TypeString","optional":true,"forceNew":true},"expiration_date":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"host_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"hosting_environment_profile_id":{"type":"TypeString","computed":true},"issue_date":{"type":"TypeString","computed":true},"issuer":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","optional":true,"forceNew":true},"key_vault_secret_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true,"forceNew":true},"pfx_blob":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subject_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_certificate_binding":{"schema":{"app_service_name":{"type":"TypeString","computed":true},"certificate_id":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","computed":true},"hostname_binding_id":{"type":"TypeString","required":true,"forceNew":true},"ssl_state":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_certificate_order":{"schema":{"app_service_certificate_not_renewable_reasons":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"auto_renew":{"type":"TypeBool","optional":true,"default":true},"certificates":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"key_vault_secret_name":{"type":"TypeString","computed":true},"provisioning_state":{"type":"TypeString","computed":true}}}},"csr":{"type":"TypeString","optional":true,"computed":true},"distinguished_name":{"type":"TypeString","optional":true,"computed":true},"domain_verification_token":{"type":"TypeString","computed":true},"expiration_time":{"type":"TypeString","computed":true},"intermediate_thumbprint":{"type":"TypeString","computed":true},"is_private_key_external":{"type":"TypeBool","computed":true},"key_size":{"type":"TypeInt","optional":true,"default":2048},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"product_type":{"type":"TypeString","optional":true,"default":"Standard"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"root_thumbprint":{"type":"TypeString","computed":true},"signed_certificate_thumbprint":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"validity_in_years":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_connection":{"schema":{"app_service_id":{"type":"TypeString","required":true,"forceNew":true},"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","optional":true},"secret":{"type":"TypeString","optional":true},"subscription_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"client_type":{"type":"TypeString","optional":true,"default":"none"},"name":{"type":"TypeString","required":true,"forceNew":true},"secret_store":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"vnet_solution":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_custom_hostname_binding":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"ssl_state":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"virtual_ip":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_environment_v3":{"schema":{"allow_new_private_endpoint_connections":{"type":"TypeBool","optional":true,"default":true},"cluster_setting":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"dedicated_host_count":{"type":"TypeInt","optional":true,"forceNew":true},"dns_suffix":{"type":"TypeString","computed":true},"external_inbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"inbound_network_dependencies":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ports":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"internal_inbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"internal_load_balancing_mode":{"type":"TypeString","optional":true,"default":"None","forceNew":true},"ip_ssl_address_count":{"type":"TypeInt","computed":true},"linux_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"pricing_tier":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"windows_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":360,"read":5,"delete":360,"update":360}},"azurerm_app_service_hybrid_connection":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","required":true},"relay_id":{"type":"TypeString","required":true,"forceNew":true},"relay_name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"send_key_name":{"type":"TypeString","optional":true,"default":"RootManageSharedAccessKey"},"send_key_value":{"type":"TypeString","computed":true},"service_bus_namespace":{"type":"TypeString","computed":true},"service_bus_suffix":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_managed_certificate":{"schema":{"canonical_name":{"type":"TypeString","computed":true},"custom_hostname_binding_id":{"type":"TypeString","required":true,"forceNew":true},"expiration_date":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"host_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"issue_date":{"type":"TypeString","computed":true},"issuer":{"type":"TypeString","computed":true},"subject_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_plan":{"schema":{"app_service_environment_id":{"type":"TypeString","optional":true,"forceNew":true},"is_xenon":{"type":"TypeBool","optional":true},"kind":{"type":"TypeString","optional":true,"default":"Windows","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_elastic_worker_count":{"type":"TypeInt","optional":true,"computed":true},"maximum_number_of_workers":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"per_site_scaling":{"type":"TypeBool","optional":true},"reserved":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true,"computed":true},"size":{"type":"TypeString","required":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_app_service_public_certificate":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"blob":{"type":"TypeString","required":true,"forceNew":true},"certificate_location":{"type":"TypeString","required":true,"forceNew":true},"certificate_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_slot":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"app_service_plan_id":{"type":"TypeString","required":true,"forceNew":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true}}},"maxItems":1},"additional_login_params":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true},"consumer_secret":{"type":"TypeString","required":true}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"computed":true},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"default_site_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","optional":true,"default":"Off"}}},"maxItems":1},"detailed_error_messages_enabled":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing_enabled":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"acr_use_managed_identity_credentials":{"type":"TypeBool","optional":true,"default":false},"acr_user_managed_identity_client_id":{"type":"TypeString","optional":true},"always_on":{"type":"TypeBool","optional":true,"default":false},"app_command_line":{"type":"TypeString","optional":true},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"java_container":{"type":"TypeString","optional":true},"java_container_version":{"type":"TypeString","optional":true},"java_version":{"type":"TypeString","optional":true},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"local_mysql_enabled":{"type":"TypeBool","optional":true,"computed":true},"managed_pipeline_mode":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"number_of_workers":{"type":"TypeInt","optional":true,"computed":true},"php_version":{"type":"TypeString","optional":true},"python_version":{"type":"TypeString","optional":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"computed":true},"windows_fx_version":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_slot_custom_hostname_binding":{"schema":{"app_service_slot_id":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","required":true,"forceNew":true},"ssl_state":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"virtual_ip":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_slot_virtual_network_swift_connection":{"schema":{"app_service_id":{"type":"TypeString","required":true,"forceNew":true},"slot_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_source_control":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The ID of the Windows or Linux Web App.","forceNew":true},"branch":{"type":"TypeString","optional":true,"description":"The branch name to use for deployments.","computed":true,"forceNew":true},"github_action_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"code_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"runtime_stack":{"type":"TypeString","required":true,"description":"The value to use for the Runtime Stack in the workflow file content for code base apps.","forceNew":true},"runtime_version":{"type":"TypeString","required":true,"description":"The value to use for the Runtime Version in the workflow file content for code base apps.","forceNew":true}}},"maxItems":1},"container_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"image_name":{"type":"TypeString","required":true,"description":"The image name for the build.","forceNew":true},"registry_password":{"type":"TypeString","optional":true,"description":"The password used to upload the image to the container registry.","forceNew":true},"registry_url":{"type":"TypeString","required":true,"description":"The server URL for the container registry where the build will be hosted.","forceNew":true},"registry_username":{"type":"TypeString","optional":true,"description":"The username used to upload the image to the container registry.","forceNew":true}}},"maxItems":1},"generate_workflow_file":{"type":"TypeBool","optional":true,"default":true,"description":"Should the service generate the GitHub Action Workflow file. Defaults to `true`","forceNew":true},"linux_action":{"type":"TypeBool","description":"Denotes this action uses a Linux base image.","computed":true}}},"maxItems":1},"repo_url":{"type":"TypeString","optional":true,"description":"The URL for the repository.","computed":true,"forceNew":true},"rollback_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Deployment Rollback be enabled? Defaults to `false`.","forceNew":true},"scm_type":{"type":"TypeString","description":"The SCM Type in use. This value is decoded by the service from the repository information supplied.","computed":true},"use_local_git":{"type":"TypeBool","optional":true,"default":false,"description":"Should the App use local Git configuration.","forceNew":true},"use_manual_integration":{"type":"TypeBool","optional":true,"default":false,"description":"Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`.","forceNew":true},"use_mercurial":{"type":"TypeBool","optional":true,"default":false,"description":"The repository specified is Mercurial. Defaults to `false`.","forceNew":true},"uses_github_action":{"type":"TypeBool","description":"Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_source_control_slot":{"schema":{"branch":{"type":"TypeString","optional":true,"description":"The URL for the repository","computed":true,"forceNew":true},"github_action_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"code_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"runtime_stack":{"type":"TypeString","required":true,"description":"The value to use for the Runtime Stack in the workflow file content for code base apps.","forceNew":true},"runtime_version":{"type":"TypeString","required":true,"description":"The value to use for the Runtime Version in the workflow file content for code base apps.","forceNew":true}}},"maxItems":1},"container_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"image_name":{"type":"TypeString","required":true,"description":"The image name for the build.","forceNew":true},"registry_password":{"type":"TypeString","optional":true,"description":"The password used to upload the image to the container registry.","forceNew":true},"registry_url":{"type":"TypeString","required":true,"description":"The server URL for the container registry where the build will be hosted.","forceNew":true},"registry_username":{"type":"TypeString","optional":true,"description":"The username used to upload the image to the container registry.","forceNew":true}}},"maxItems":1},"generate_workflow_file":{"type":"TypeBool","optional":true,"default":true,"description":"Should the service generate the GitHub Action Workflow file. Defaults to `true`","forceNew":true},"linux_action":{"type":"TypeBool","description":"Denotes this action uses a Linux base image.","computed":true}}},"maxItems":1},"repo_url":{"type":"TypeString","optional":true,"description":"The branch name to use for deployments.","computed":true,"forceNew":true},"rollback_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Deployment Rollback be enabled? Defaults to `false`","forceNew":true},"scm_type":{"type":"TypeString","description":"The SCM Type in use. This value is decoded by the service from the repository information supplied.","computed":true},"slot_id":{"type":"TypeString","required":true,"description":"The ID of the Linux or Windows Web App Slot.","forceNew":true},"use_local_git":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Slot use local Git configuration.","forceNew":true},"use_manual_integration":{"type":"TypeBool","optional":true,"default":false,"description":"Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`","forceNew":true},"use_mercurial":{"type":"TypeBool","optional":true,"default":false,"description":"The repository specified is Mercurial. Defaults to `false`.","forceNew":true},"uses_github_action":{"type":"TypeBool","description":"Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_source_control_token":{"schema":{"token":{"type":"TypeString","required":true},"token_secret":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_virtual_network_swift_connection":{"schema":{"app_service_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_gateway":{"schema":{"authentication_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"data":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true}}}},"autoscale_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"max_capacity":{"type":"TypeInt","optional":true},"min_capacity":{"type":"TypeInt","required":true}}},"maxItems":1},"backend_address_pool":{"type":"TypeSet","required":true,"elem":{"schema":{"fqdns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}}},"backend_http_settings":{"type":"TypeSet","required":true,"elem":{"schema":{"affinity_cookie_name":{"type":"TypeString","optional":true},"authentication_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true}}}},"connection_draining":{"type":"TypeList","optional":true,"elem":{"schema":{"drain_timeout_sec":{"type":"TypeInt","required":true},"enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"cookie_based_affinity":{"type":"TypeString","required":true},"host_name":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"pick_host_name_from_backend_address":{"type":"TypeBool","optional":true,"default":false},"port":{"type":"TypeInt","required":true},"probe_id":{"type":"TypeString","computed":true},"probe_name":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true},"request_timeout":{"type":"TypeInt","optional":true,"default":30},"trusted_root_certificate_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1},"custom_error_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_error_page_url":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"status_code":{"type":"TypeString","required":true}}}},"enable_http2":{"type":"TypeBool","optional":true},"fips_enabled":{"type":"TypeBool","optional":true},"firewall_policy_id":{"type":"TypeString","optional":true},"force_firewall_policy_association":{"type":"TypeBool","optional":true},"frontend_ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_allocation":{"type":"TypeString","optional":true,"default":"Dynamic"},"private_link_configuration_id":{"type":"TypeString","computed":true},"private_link_configuration_name":{"type":"TypeString","optional":true},"public_ip_address_id":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"minItems":1},"frontend_port":{"type":"TypeSet","required":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"port":{"type":"TypeInt","required":true}}}},"gateway_ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":2},"global":{"type":"TypeList","optional":true,"elem":{"schema":{"request_buffering_enabled":{"type":"TypeBool","required":true},"response_buffering_enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"http_listener":{"type":"TypeSet","required":true,"elem":{"schema":{"custom_error_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_error_page_url":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"status_code":{"type":"TypeString","required":true}}}},"firewall_policy_id":{"type":"TypeString","optional":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","required":true},"frontend_port_id":{"type":"TypeString","computed":true},"frontend_port_name":{"type":"TypeString","required":true},"host_name":{"type":"TypeString","optional":true},"host_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true},"require_sni":{"type":"TypeBool","optional":true},"ssl_certificate_id":{"type":"TypeString","computed":true},"ssl_certificate_name":{"type":"TypeString","optional":true},"ssl_profile_id":{"type":"TypeString","computed":true},"ssl_profile_name":{"type":"TypeString","optional":true}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_connection":{"type":"TypeSet","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"private_link_configuration":{"type":"TypeSet","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","required":true},"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_allocation":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}}},"probe":{"type":"TypeSet","optional":true,"elem":{"schema":{"host":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"interval":{"type":"TypeInt","required":true},"match":{"type":"TypeList","optional":true,"elem":{"schema":{"body":{"type":"TypeString","optional":true},"status_code":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"minimum_servers":{"type":"TypeInt","optional":true,"default":0},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"pick_host_name_from_backend_http_settings":{"type":"TypeBool","optional":true,"default":false},"port":{"type":"TypeInt","optional":true},"protocol":{"type":"TypeString","required":true},"timeout":{"type":"TypeInt","required":true},"unhealthy_threshold":{"type":"TypeInt","required":true}}}},"redirect_configuration":{"type":"TypeSet","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"include_path":{"type":"TypeBool","optional":true,"default":false},"include_query_string":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"redirect_type":{"type":"TypeString","required":true},"target_listener_id":{"type":"TypeString","computed":true},"target_listener_name":{"type":"TypeString","optional":true},"target_url":{"type":"TypeString","optional":true}}}},"request_routing_rule":{"type":"TypeSet","required":true,"elem":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_address_pool_name":{"type":"TypeString","optional":true},"backend_http_settings_id":{"type":"TypeString","computed":true},"backend_http_settings_name":{"type":"TypeString","optional":true},"http_listener_id":{"type":"TypeString","computed":true},"http_listener_name":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","optional":true},"redirect_configuration_id":{"type":"TypeString","computed":true},"redirect_configuration_name":{"type":"TypeString","optional":true},"rewrite_rule_set_id":{"type":"TypeString","computed":true},"rewrite_rule_set_name":{"type":"TypeString","optional":true},"rule_type":{"type":"TypeString","required":true},"url_path_map_id":{"type":"TypeString","computed":true},"url_path_map_name":{"type":"TypeString","optional":true}}},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rewrite_rule_set":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"rewrite_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"condition":{"type":"TypeList","optional":true,"elem":{"schema":{"ignore_case":{"type":"TypeBool","optional":true,"default":false},"negate":{"type":"TypeBool","optional":true,"default":false},"pattern":{"type":"TypeString","required":true},"variable":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true},"request_header_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"header_value":{"type":"TypeString","required":true}}}},"response_header_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"header_value":{"type":"TypeString","required":true}}}},"rule_sequence":{"type":"TypeInt","required":true},"url":{"type":"TypeList","optional":true,"elem":{"schema":{"components":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true},"query_string":{"type":"TypeString","optional":true},"reroute":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}}}}}}},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"ssl_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"data":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"password":{"type":"TypeString","optional":true},"public_cert_data":{"type":"TypeString","computed":true}}}},"ssl_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cipher_suites":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"disabled_protocols":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"min_protocol_version":{"type":"TypeString","optional":true},"policy_name":{"type":"TypeString","optional":true},"policy_type":{"type":"TypeString","optional":true}}},"maxItems":1},"ssl_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"ssl_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"cipher_suites":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"disabled_protocols":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"min_protocol_version":{"type":"TypeString","optional":true},"policy_name":{"type":"TypeString","optional":true},"policy_type":{"type":"TypeString","optional":true}}},"maxItems":1},"trusted_client_certificate_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"verify_client_cert_issuer_dn":{"type":"TypeBool","optional":true,"default":false},"verify_client_certificate_revocation":{"type":"TypeString","optional":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trusted_client_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"data":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true}}}},"trusted_root_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"data":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true}}}},"url_path_map":{"type":"TypeList","optional":true,"elem":{"schema":{"default_backend_address_pool_id":{"type":"TypeString","computed":true},"default_backend_address_pool_name":{"type":"TypeString","optional":true},"default_backend_http_settings_id":{"type":"TypeString","computed":true},"default_backend_http_settings_name":{"type":"TypeString","optional":true},"default_redirect_configuration_id":{"type":"TypeString","computed":true},"default_redirect_configuration_name":{"type":"TypeString","optional":true},"default_rewrite_rule_set_id":{"type":"TypeString","computed":true},"default_rewrite_rule_set_name":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"path_rule":{"type":"TypeList","required":true,"elem":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_address_pool_name":{"type":"TypeString","optional":true},"backend_http_settings_id":{"type":"TypeString","computed":true},"backend_http_settings_name":{"type":"TypeString","optional":true},"firewall_policy_id":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"paths":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"redirect_configuration_id":{"type":"TypeString","computed":true},"redirect_configuration_name":{"type":"TypeString","optional":true},"rewrite_rule_set_id":{"type":"TypeString","computed":true},"rewrite_rule_set_name":{"type":"TypeString","optional":true}}}}}}},"waf_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"disabled_rule_group":{"type":"TypeList","optional":true,"elem":{"schema":{"rule_group_name":{"type":"TypeString","required":true},"rules":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}}}}},"enabled":{"type":"TypeBool","required":true},"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true},"selector_match_operator":{"type":"TypeString","optional":true}}}},"file_upload_limit_mb":{"type":"TypeInt","optional":true,"default":100},"firewall_mode":{"type":"TypeString","required":true},"max_request_body_size_kb":{"type":"TypeInt","optional":true,"default":128},"request_body_check":{"type":"TypeBool","optional":true,"default":true},"rule_set_type":{"type":"TypeString","optional":true,"default":"OWASP"},"rule_set_version":{"type":"TypeString","required":true}}},"maxItems":1},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_application_insights":{"schema":{"app_id":{"type":"TypeString","computed":true},"application_type":{"type":"TypeString","required":true,"forceNew":true},"connection_string":{"type":"TypeString","computed":true},"daily_data_cap_in_gb":{"type":"TypeFloat","optional":true,"default":100},"daily_data_cap_notifications_disabled":{"type":"TypeBool","optional":true},"disable_ip_masking":{"type":"TypeBool","optional":true,"default":false},"force_customer_storage_for_profiler":{"type":"TypeBool","optional":true,"default":false},"instrumentation_key":{"type":"TypeString","computed":true},"internet_ingestion_enabled":{"type":"TypeBool","optional":true,"default":true},"internet_query_enabled":{"type":"TypeBool","optional":true,"default":true},"local_authentication_disabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":90},"sampling_percentage":{"type":"TypeFloat","optional":true,"default":100},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":30,"update":30}},"azurerm_application_insights_analytics_item":{"schema":{"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"content":{"type":"TypeString","required":true},"function_alias":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true},"time_created":{"type":"TypeString","computed":true},"time_modified":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_api_key":{"schema":{"api_key":{"type":"TypeString","computed":true},"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"read_permissions":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"write_permissions":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_application_insights_smart_detection_rule":{"schema":{"additional_email_recipients":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"send_emails_to_subscription_owners":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_standard_web_test":{"schema":{"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true},"frequency":{"type":"TypeInt","optional":true,"default":300},"geo_locations":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"request":{"type":"TypeList","required":true,"elem":{"schema":{"body":{"type":"TypeString","optional":true},"follow_redirects_enabled":{"type":"TypeBool","optional":true,"default":true},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"http_verb":{"type":"TypeString","optional":true,"default":"GET"},"parse_dependent_requests_enabled":{"type":"TypeBool","optional":true,"default":true},"url":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retry_enabled":{"type":"TypeBool","optional":true},"synthetic_monitor_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout":{"type":"TypeInt","optional":true,"default":30},"validation_rules":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeList","optional":true,"elem":{"schema":{"content_match":{"type":"TypeString","required":true},"ignore_case":{"type":"TypeBool","optional":true,"default":false},"pass_if_text_found":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"expected_status_code":{"type":"TypeInt","optional":true,"default":200},"ssl_cert_remaining_lifetime":{"type":"TypeInt","optional":true},"ssl_check_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_web_test":{"schema":{"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"configuration":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true},"frequency":{"type":"TypeInt","optional":true,"default":300},"geo_locations":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"kind":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retry_enabled":{"type":"TypeBool","optional":true},"synthetic_monitor_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout":{"type":"TypeInt","optional":true,"default":30}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_workbook":{"schema":{"category":{"type":"TypeString","optional":true,"default":"workbook"},"data_json":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_id":{"type":"TypeString","optional":true,"default":"azure monitor"},"storage_container_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_workbook_template":{"schema":{"author":{"type":"TypeString","optional":true},"galleries":{"type":"TypeList","required":true,"elem":{"schema":{"category":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"order":{"type":"TypeInt","optional":true,"default":0},"resource_type":{"type":"TypeString","optional":true,"default":"Azure Monitor"},"type":{"type":"TypeString","optional":true,"default":"workbook"}}},"minItems":1},"localized":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"default":0},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_data":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_load_balancer":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_configuration_endpoint":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_load_balancer_frontend":{"schema":{"application_load_balancer_id":{"type":"TypeString","required":true,"forceNew":true},"fully_qualified_domain_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_load_balancer_subnet_association":{"schema":{"application_load_balancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_security_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_kubernetes_cluster":{"schema":{"agent_public_key_certificate":{"type":"TypeString","required":true,"forceNew":true},"agent_version":{"type":"TypeString","computed":true},"distribution":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"infrastructure":{"type":"TypeString","computed":true},"kubernetes_version":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"offering":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"total_core_count":{"type":"TypeInt","computed":true},"total_node_count":{"type":"TypeInt","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_kubernetes_cluster_extension":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"configuration_protected_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"configuration_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"current_version":{"type":"TypeString","computed":true},"extension_type":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"release_namespace":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"release_train":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"target_namespace":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_kubernetes_flux_configuration":{"schema":{"blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","optional":true},"container_id":{"type":"TypeString","required":true},"local_auth_reference":{"type":"TypeString","optional":true},"sas_token":{"type":"TypeString","optional":true},"service_principal":{"type":"TypeList","optional":true,"elem":{"schema":{"client_certificate_base64":{"type":"TypeString","optional":true},"client_certificate_password":{"type":"TypeString","optional":true},"client_certificate_send_chain":{"type":"TypeBool","optional":true,"default":false},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600}}},"maxItems":1},"bucket":{"type":"TypeList","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","optional":true},"bucket_name":{"type":"TypeString","required":true},"local_auth_reference":{"type":"TypeString","optional":true},"secret_key_base64":{"type":"TypeString","optional":true},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600},"tls_enabled":{"type":"TypeBool","optional":true,"default":true},"url":{"type":"TypeString","required":true}}},"maxItems":1},"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"continuous_reconciliation_enabled":{"type":"TypeBool","optional":true,"default":true},"git_repository":{"type":"TypeList","optional":true,"elem":{"schema":{"https_ca_cert_base64":{"type":"TypeString","optional":true},"https_key_base64":{"type":"TypeString","optional":true},"https_user":{"type":"TypeString","optional":true},"local_auth_reference":{"type":"TypeString","optional":true},"reference_type":{"type":"TypeString","required":true},"reference_value":{"type":"TypeString","required":true},"ssh_known_hosts_base64":{"type":"TypeString","optional":true},"ssh_private_key_base64":{"type":"TypeString","optional":true},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600},"url":{"type":"TypeString","required":true}}},"maxItems":1},"kustomizations":{"type":"TypeSet","required":true,"elem":{"schema":{"depends_on":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"garbage_collection_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"recreating_enabled":{"type":"TypeBool","optional":true,"default":false},"retry_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","optional":true,"default":"namespace","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_machine":{"schema":{"kind":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_arc_machine_automanage_configuration_assignment":{"schema":{"arc_machine_id":{"type":"TypeString","required":true,"forceNew":true},"configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_arc_machine_extension":{"schema":{"arc_machine_id":{"type":"TypeString","required":true,"forceNew":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":true},"force_update_tag":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protected_settings":{"type":"TypeString","optional":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true},"type_handler_version":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_private_link_scope":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_resource_bridge_appliance":{"schema":{"distro":{"type":"TypeString","required":true},"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"infrastructure_provider":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_key_base64":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":30,"update":30}},"azurerm_attestation_provider":{"schema":{"attestation_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"open_enclave_policy_base64":{"type":"TypeString","optional":true},"policy_signing_certificate_data":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sev_snp_policy_base64":{"type":"TypeString","optional":true},"sgx_enclave_policy_base64":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tpm_policy_base64":{"type":"TypeString","optional":true},"trust_model":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automanage_configuration":{"schema":{"antimalware":{"type":"TypeList","optional":true,"elem":{"schema":{"exclusions":{"type":"TypeList","optional":true,"elem":{"schema":{"extensions":{"type":"TypeString","optional":true},"paths":{"type":"TypeString","optional":true},"processes":{"type":"TypeString","optional":true}}},"maxItems":1},"real_time_protection_enabled":{"type":"TypeBool","optional":true,"default":false},"scheduled_scan_day":{"type":"TypeInt","optional":true,"default":8},"scheduled_scan_enabled":{"type":"TypeBool","optional":true,"default":false},"scheduled_scan_time_in_minutes":{"type":"TypeInt","optional":true,"default":0},"scheduled_scan_type":{"type":"TypeString","optional":true,"default":"Quick"}}},"maxItems":1},"automation_account_enabled":{"type":"TypeBool","optional":true,"default":false},"azure_security_baseline":{"type":"TypeList","optional":true,"elem":{"schema":{"assignment_type":{"type":"TypeString","optional":true,"default":"ApplyAndAutoCorrect"}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"instant_rp_retention_range_in_days":{"type":"TypeInt","optional":true,"default":5},"policy_name":{"type":"TypeString","optional":true},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"daily_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_duration":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","optional":true},"duration_type":{"type":"TypeString","optional":true,"default":"Days"}}},"maxItems":1},"retention_times":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_policy_type":{"type":"TypeString","optional":true,"default":"LongTermRetentionPolicy"},"weekly_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_duration":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","optional":true},"duration_type":{"type":"TypeString","optional":true,"default":"Weeks"}}},"maxItems":1},"retention_times":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"schedule_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule_policy_type":{"type":"TypeString","optional":true,"default":"SimpleSchedulePolicy"},"schedule_run_days":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"schedule_run_frequency":{"type":"TypeString","optional":true,"default":"Daily"},"schedule_run_times":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"time_zone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"boot_diagnostics_enabled":{"type":"TypeBool","optional":true,"default":false},"defender_for_cloud_enabled":{"type":"TypeBool","optional":true,"default":false},"guest_configuration_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"log_analytics_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"status_change_alert_enabled":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_account":{"schema":{"dsc_primary_access_key":{"type":"TypeString","computed":true},"dsc_secondary_access_key":{"type":"TypeString","computed":true},"dsc_server_endpoint":{"type":"TypeString","computed":true},"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"key_source":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}}},"hybrid_service_url":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_connection":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_certificate":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"base64":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"exportable":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true},"values":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection_certificate":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"automation_certificate_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection_classic_certificate":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"certificate_asset_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true},"subscription_name":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection_service_principal":{"schema":{"application_id":{"type":"TypeString","required":true},"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"certificate_thumbprint":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection_type":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"field":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"is_encrypted":{"type":"TypeBool","optional":true},"is_optional":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"is_global":{"type":"TypeBool","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10}},"azurerm_automation_credential":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_dsc_configuration":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"content_embedded":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"log_verbose":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"state":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_dsc_nodeconfiguration":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"configuration_name":{"type":"TypeString","computed":true},"content_embedded":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_hybrid_runbook_worker":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"ip":{"type":"TypeString","computed":true},"last_seen_date_time":{"type":"TypeString","computed":true},"registration_date_time":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"vm_resource_id":{"type":"TypeString","required":true,"forceNew":true},"worker_group_name":{"type":"TypeString","required":true,"forceNew":true},"worker_id":{"type":"TypeString","required":true,"forceNew":true},"worker_name":{"type":"TypeString","computed":true},"worker_type":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":10}},"azurerm_automation_hybrid_runbook_worker_group":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"credential_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_automation_job_schedule":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"job_schedule_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_manager_id":{"type":"TypeString","computed":true},"run_on":{"type":"TypeString","optional":true,"forceNew":true},"runbook_name":{"type":"TypeString","required":true,"forceNew":true},"schedule_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_automation_module":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"module_link":{"type":"TypeList","required":true,"elem":{"schema":{"hash":{"type":"TypeList","optional":true,"elem":{"schema":{"algorithm":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_powershell72_module":{"schema":{"automation_account_id":{"type":"TypeString","required":true,"forceNew":true},"module_link":{"type":"TypeList","required":true,"elem":{"schema":{"hash":{"type":"TypeList","optional":true,"elem":{"schema":{"algorithm":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_python3_package":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"content_uri":{"type":"TypeString","required":true,"forceNew":true},"content_version":{"type":"TypeString","optional":true,"forceNew":true},"hash_algorithm":{"type":"TypeString","optional":true,"forceNew":true},"hash_value":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_automation_runbook":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"content":{"type":"TypeString","optional":true,"computed":true},"description":{"type":"TypeString","optional":true},"draft":{"type":"TypeList","optional":true,"elem":{"schema":{"content_link":{"type":"TypeList","optional":true,"elem":{"schema":{"hash":{"type":"TypeList","optional":true,"elem":{"schema":{"algorithm":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"creation_time":{"type":"TypeString","computed":true},"edit_mode_enabled":{"type":"TypeBool","optional":true},"last_modified_time":{"type":"TypeString","computed":true},"output_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"parameters":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"key":{"type":"TypeString","required":true},"mandatory":{"type":"TypeBool","optional":true,"default":false},"position":{"type":"TypeInt","optional":true},"type":{"type":"TypeString","required":true}}}}}},"maxItems":1},"job_schedule":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"job_schedule_id":{"type":"TypeString","computed":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"run_on":{"type":"TypeString","optional":true},"schedule_name":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"log_activity_trace_level":{"type":"TypeInt","optional":true},"log_progress":{"type":"TypeBool","required":true},"log_verbose":{"type":"TypeBool","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"publish_content_link":{"type":"TypeList","optional":true,"elem":{"schema":{"hash":{"type":"TypeList","optional":true,"elem":{"schema":{"algorithm":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"runbook_type":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_schedule":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"expiry_time":{"type":"TypeString","optional":true,"computed":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","optional":true,"computed":true},"month_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"monthly_occurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"day":{"type":"TypeString","required":true},"occurrence":{"type":"TypeInt","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"start_time":{"type":"TypeString","optional":true,"computed":true},"timezone":{"type":"TypeString","optional":true,"default":"Etc/UTC"},"week_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_software_update_configuration":{"schema":{"automation_account_id":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","optional":true,"default":"PT2H"},"error_code":{"type":"TypeString","computed":true},"error_message":{"type":"TypeString","computed":true},"linux":{"type":"TypeList","optional":true,"elem":{"schema":{"classifications_included":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"excluded_packages":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"included_packages":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"reboot":{"type":"TypeString","optional":true,"default":"IfRequired"}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"non_azure_computer_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"post_task":{"type":"TypeList","optional":true,"elem":{"schema":{"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"source":{"type":"TypeString","optional":true}}},"maxItems":1},"pre_task":{"type":"TypeList","optional":true,"elem":{"schema":{"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"source":{"type":"TypeString","optional":true}}},"maxItems":1},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"advanced_month_days":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}},"advanced_week_days":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"creation_time":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"expiry_time":{"type":"TypeString","optional":true,"computed":true},"expiry_time_offset_minutes":{"type":"TypeFloat","optional":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","optional":true},"is_enabled":{"type":"TypeBool","optional":true,"default":true},"last_modified_time":{"type":"TypeString","computed":true},"monthly_occurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"day":{"type":"TypeString","required":true},"occurrence":{"type":"TypeInt","required":true}}},"maxItems":1},"next_run":{"type":"TypeString","optional":true,"computed":true},"next_run_offset_minutes":{"type":"TypeFloat","optional":true},"start_time":{"type":"TypeString","optional":true,"computed":true},"start_time_offset_minutes":{"type":"TypeFloat","optional":true},"time_zone":{"type":"TypeString","optional":true,"default":"Etc/UTC"}}},"maxItems":1},"target":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_query":{"type":"TypeList","optional":true,"elem":{"schema":{"locations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"scope":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tag_filter":{"type":"TypeString","optional":true},"tags":{"type":"TypeList","optional":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}}},"non_azure_query":{"type":"TypeList","optional":true,"elem":{"schema":{"function_alias":{"type":"TypeString","optional":true},"workspace_id":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"virtual_machine_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"windows":{"type":"TypeList","optional":true,"elem":{"schema":{"classifications_included":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"excluded_knowledge_base_numbers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"included_knowledge_base_numbers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"reboot":{"type":"TypeString","optional":true,"default":"IfRequired"}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":10,"update":30}},"azurerm_automation_source_control":{"schema":{"automatic_sync":{"type":"TypeBool","optional":true,"default":false},"automation_account_id":{"type":"TypeString","required":true,"forceNew":true},"branch":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"folder_path":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"publish_runbook_enabled":{"type":"TypeBool","optional":true,"default":true},"repository_url":{"type":"TypeString","required":true},"security":{"type":"TypeList","required":true,"elem":{"schema":{"refresh_token":{"type":"TypeString","optional":true},"token":{"type":"TypeString","required":true},"token_type":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"source_control_type":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_automation_variable_bool":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_variable_datetime":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_variable_int":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeInt","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_variable_object":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_variable_string":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_watcher":{"schema":{"automation_account_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"etag":{"type":"TypeString","optional":true},"execution_frequency_in_seconds":{"type":"TypeInt","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"script_name":{"type":"TypeString","required":true,"forceNew":true},"script_parameters":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"script_run_on":{"type":"TypeString","required":true},"status":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_automation_webhook":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"expiry_time":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"run_on_worker_group":{"type":"TypeString","optional":true},"runbook_name":{"type":"TypeString","required":true},"uri":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_availability_set":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"managed":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform_fault_domain_count":{"type":"TypeInt","optional":true,"default":3,"forceNew":true},"platform_update_domain_count":{"type":"TypeInt","optional":true,"default":5,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_backup_container_storage_account":{"schema":{"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_backup_policy_file_share":{"schema":{"backup":{"type":"TypeList","required":true,"elem":{"schema":{"frequency":{"type":"TypeString","required":true},"hourly":{"type":"TypeList","optional":true,"elem":{"schema":{"interval":{"type":"TypeInt","required":true},"start_time":{"type":"TypeString","required":true},"window_duration":{"type":"TypeInt","required":true}}},"maxItems":1},"time":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_daily":{"type":"TypeList","required":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true}}},"maxItems":1},"retention_monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_last_days":{"type":"TypeBool","optional":true,"default":false},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"weekdays":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_yearly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_last_days":{"type":"TypeBool","optional":true,"default":false},"months":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"timezone":{"type":"TypeString","optional":true,"default":"UTC"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_backup_policy_vm":{"schema":{"backup":{"type":"TypeList","required":true,"elem":{"schema":{"frequency":{"type":"TypeString","required":true},"hour_duration":{"type":"TypeInt","optional":true},"hour_interval":{"type":"TypeInt","optional":true},"time":{"type":"TypeString","required":true},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"instant_restore_resource_group":{"type":"TypeList","optional":true,"elem":{"schema":{"prefix":{"type":"TypeString","required":true},"suffix":{"type":"TypeString","optional":true}}},"maxItems":1},"instant_restore_retention_days":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_type":{"type":"TypeString","optional":true,"default":"V1","forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_daily":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true}}},"maxItems":1},"retention_monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_last_days":{"type":"TypeBool","optional":true,"default":false},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"weekdays":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_yearly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_last_days":{"type":"TypeBool","optional":true,"default":false},"months":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"tiering_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"archived_restore_point":{"type":"TypeList","required":true,"elem":{"schema":{"duration":{"type":"TypeInt","optional":true},"duration_type":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"timezone":{"type":"TypeString","optional":true,"default":"UTC"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_backup_policy_vm_workload":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"protection_policy":{"type":"TypeSet","required":true,"elem":{"schema":{"backup":{"type":"TypeList","required":true,"elem":{"schema":{"frequency":{"type":"TypeString","optional":true},"frequency_in_minutes":{"type":"TypeInt","optional":true},"time":{"type":"TypeString","optional":true},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"policy_type":{"type":"TypeString","required":true},"retention_daily":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true}}},"maxItems":1},"retention_monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"format_type":{"type":"TypeString","required":true},"monthdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"weekdays":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_yearly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"format_type":{"type":"TypeString","required":true},"monthdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"months":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"simple_retention":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true}}},"maxItems":1}}}},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeList","required":true,"elem":{"schema":{"compression_enabled":{"type":"TypeBool","optional":true,"default":false},"time_zone":{"type":"TypeString","required":true}}},"maxItems":1},"workload_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_backup_protected_file_share":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_file_share_name":{"type":"TypeString","required":true,"forceNew":true},"source_storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":80,"read":5,"delete":80,"update":80}},"azurerm_backup_protected_vm":{"schema":{"backup_policy_id":{"type":"TypeString","optional":true},"exclude_disk_luns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_disk_luns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"protection_state":{"type":"TypeString","optional":true,"computed":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_vm_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":120,"read":5,"delete":80,"update":120}},"azurerm_bastion_host":{"schema":{"copy_paste_enabled":{"type":"TypeBool","optional":true,"default":true},"dns_name":{"type":"TypeString","computed":true},"file_copy_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ip_connect_enabled":{"type":"TypeBool","optional":true,"default":false},"kerberos_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scale_units":{"type":"TypeInt","optional":true,"default":2},"session_recording_enabled":{"type":"TypeBool","optional":true,"default":false},"shareable_link_enabled":{"type":"TypeBool","optional":true,"default":false},"sku":{"type":"TypeString","optional":true,"default":"Basic"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tunneling_enabled":{"type":"TypeBool","optional":true,"default":false},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_batch_account":{"schema":{"account_endpoint":{"type":"TypeString","computed":true},"allowed_authentication_modes":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"encryption":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"account_access":{"type":"TypeList","optional":true,"elem":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_range":{"type":"TypeString","required":true}}}}}},"maxItems":1},"node_management_access":{"type":"TypeList","optional":true,"elem":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_range":{"type":"TypeString","required":true}}}}}},"maxItems":1}}},"maxItems":1},"pool_allocation_mode":{"type":"TypeString","optional":true,"default":"BatchService"},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"storage_account_authentication_mode":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_account_node_identity":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_batch_application":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"allow_updates":{"type":"TypeBool","optional":true,"default":true},"default_version":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_batch_certificate":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"certificate":{"type":"TypeString","required":true},"format":{"type":"TypeString","required":true},"name":{"type":"TypeString","computed":true},"password":{"type":"TypeString","optional":true},"public_data":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","required":true,"forceNew":true},"thumbprint_algorithm":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_batch_job":{"schema":{"batch_pool_id":{"type":"TypeString","required":true,"forceNew":true},"common_environment_properties":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"default":0},"task_retry_maximum":{"type":"TypeInt","optional":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_batch_pool":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"auto_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"evaluation_interval":{"type":"TypeString","optional":true,"default":"PT15M"},"formula":{"type":"TypeString","required":true}}},"maxItems":1},"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"store_location":{"type":"TypeString","required":true},"store_name":{"type":"TypeString","optional":true},"visibility":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"container_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"container_image_names":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"container_registries":{"type":"TypeList","configMode":"Auto","optional":true,"forceNew":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"registry_server":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Container Registry access.","forceNew":true},"user_name":{"type":"TypeString","optional":true,"forceNew":true}}}},"type":{"type":"TypeString","optional":true}}},"maxItems":1,"minItems":1},"data_disks":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"default":"ReadOnly"},"disk_size_gb":{"type":"TypeInt","required":true},"lun":{"type":"TypeInt","required":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"Standard_LRS"}}}},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_encryption_target":{"type":"TypeString","required":true}}}},"display_name":{"type":"TypeString","optional":true,"forceNew":true},"extensions":{"type":"TypeList","optional":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"provision_after_extensions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true},"settings_json":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","optional":true}}}},"fixed_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"node_deallocation_method":{"type":"TypeString","optional":true},"resize_timeout":{"type":"TypeString","optional":true,"default":"PT15M"},"target_dedicated_nodes":{"type":"TypeInt","optional":true,"default":1},"target_low_priority_nodes":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"inter_node_communication":{"type":"TypeString","optional":true,"default":"Enabled"},"license_type":{"type":"TypeString","optional":true},"max_tasks_per_node":{"type":"TypeInt","optional":true,"default":1,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"mount":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","optional":true},"account_name":{"type":"TypeString","required":true},"blobfuse_options":{"type":"TypeString","optional":true},"container_name":{"type":"TypeString","required":true},"identity_id":{"type":"TypeString","optional":true},"relative_mount_path":{"type":"TypeString","required":true},"sas_key":{"type":"TypeString","optional":true}}},"maxItems":1},"azure_file_share":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"azure_file_url":{"type":"TypeString","required":true},"mount_options":{"type":"TypeString","optional":true},"relative_mount_path":{"type":"TypeString","required":true}}}},"cifs_mount":{"type":"TypeList","optional":true,"elem":{"schema":{"mount_options":{"type":"TypeString","optional":true},"password":{"type":"TypeString","required":true},"relative_mount_path":{"type":"TypeString","required":true},"source":{"type":"TypeString","required":true},"user_name":{"type":"TypeString","required":true}}}},"nfs_mount":{"type":"TypeList","optional":true,"elem":{"schema":{"mount_options":{"type":"TypeString","optional":true},"relative_mount_path":{"type":"TypeString","required":true},"source":{"type":"TypeString","required":true}}}}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"dynamic_vnet_assignment_scope":{"type":"TypeString","optional":true,"default":"none","forceNew":true},"endpoint_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","required":true,"forceNew":true},"frontend_port_range":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_rules":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"access":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true},"source_address_prefix":{"type":"TypeString","required":true,"forceNew":true},"source_port_ranges":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString","default":"*"}}}}},"protocol":{"type":"TypeString","required":true,"forceNew":true}}}},"public_address_provisioning_type":{"type":"TypeString","optional":true},"public_ips":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"node_agent_sku_id":{"type":"TypeString","required":true,"forceNew":true},"node_placement":{"type":"TypeList","optional":true,"elem":{"schema":{"policy":{"type":"TypeString","optional":true,"default":"Regional"}}}},"os_disk_placement":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"start_task":{"type":"TypeList","optional":true,"elem":{"schema":{"command_line":{"type":"TypeString","required":true},"common_environment_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"container":{"type":"TypeList","optional":true,"elem":{"schema":{"image_name":{"type":"TypeString","required":true},"registry":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"registry_server":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Container Registry access.","forceNew":true},"user_name":{"type":"TypeString","optional":true,"forceNew":true}}}},"run_options":{"type":"TypeString","optional":true},"working_directory":{"type":"TypeString","optional":true}}}},"resource_file":{"type":"TypeList","optional":true,"elem":{"schema":{"auto_storage_container_name":{"type":"TypeString","optional":true},"blob_prefix":{"type":"TypeString","optional":true},"file_mode":{"type":"TypeString","optional":true},"file_path":{"type":"TypeString","optional":true},"http_url":{"type":"TypeString","optional":true},"storage_container_url":{"type":"TypeString","optional":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}}},"task_retry_maximum":{"type":"TypeInt","optional":true},"user_identity":{"type":"TypeList","required":true,"elem":{"schema":{"auto_user":{"type":"TypeList","optional":true,"elem":{"schema":{"elevation_level":{"type":"TypeString","optional":true,"default":"NonAdmin"},"scope":{"type":"TypeString","optional":true,"default":"Task"}}},"maxItems":1},"user_name":{"type":"TypeString","optional":true}}},"maxItems":1},"wait_for_success":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"stop_pending_resize_operation":{"type":"TypeBool","optional":true,"default":false},"storage_image_reference":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true,"forceNew":true},"offer":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","optional":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"target_node_communication_mode":{"type":"TypeString","optional":true},"task_scheduling_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"node_fill_type":{"type":"TypeString","optional":true,"computed":true}}}},"user_accounts":{"type":"TypeList","optional":true,"elem":{"schema":{"elevation_level":{"type":"TypeString","required":true},"linux_user_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"gid":{"type":"TypeInt","optional":true},"ssh_private_key":{"type":"TypeString","optional":true},"uid":{"type":"TypeInt","optional":true}}}},"name":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true},"windows_user_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"login_mode":{"type":"TypeString","required":true}}}}}}},"vm_size":{"type":"TypeString","required":true,"forceNew":true},"windows":{"type":"TypeList","optional":true,"elem":{"schema":{"enable_automatic_updates":{"type":"TypeBool","optional":true,"default":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_billing_account_cost_management_export":{"schema":{"active":{"type":"TypeBool","optional":true,"default":true},"billing_account_id":{"type":"TypeString","required":true,"forceNew":true},"export_data_options":{"type":"TypeList","required":true,"elem":{"schema":{"time_frame":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"export_data_storage_location":{"type":"TypeList","required":true,"elem":{"schema":{"container_id":{"type":"TypeString","required":true,"forceNew":true},"root_folder_path":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recurrence_period_end_date":{"type":"TypeString","required":true},"recurrence_period_start_date":{"type":"TypeString","required":true},"recurrence_type":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_blueprint_assignment":{"schema":{"blueprint_name":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"lock_exclude_actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":200},"lock_exclude_principals":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":5},"lock_mode":{"type":"TypeString","optional":true,"default":"None"},"name":{"type":"TypeString","required":true,"forceNew":true},"parameter_values":{"type":"TypeString","optional":true},"resource_groups":{"type":"TypeString","optional":true},"target_subscription_id":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","computed":true},"version_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_bot_channel_alexa":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"skill_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_direct_line_speech":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"cognitive_account_id":{"type":"TypeString","optional":true},"cognitive_service_access_key":{"type":"TypeString","required":true},"cognitive_service_location":{"type":"TypeString","required":true},"custom_speech_model_id":{"type":"TypeString","optional":true},"custom_voice_deployment_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_directline":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site":{"type":"TypeSet","required":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"endpoint_parameters_enabled":{"type":"TypeBool","optional":true},"enhanced_authentication_enabled":{"type":"TypeBool","optional":true,"default":false},"id":{"type":"TypeString","computed":true},"key":{"type":"TypeString","computed":true},"key2":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"storage_enabled":{"type":"TypeBool","optional":true,"default":true},"trusted_origins":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"user_upload_enabled":{"type":"TypeBool","optional":true,"default":true},"v1_allowed":{"type":"TypeBool","optional":true,"default":true},"v3_allowed":{"type":"TypeBool","optional":true,"default":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_email":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"email_address":{"type":"TypeString","required":true},"email_password":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"magic_code":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_facebook":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"facebook_application_id":{"type":"TypeString","required":true},"facebook_application_secret":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"page":{"type":"TypeSet","required":true,"elem":{"schema":{"access_token":{"type":"TypeString","required":true},"id":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_line":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"line_channel":{"type":"TypeSet","required":true,"elem":{"schema":{"access_token":{"type":"TypeString","required":true},"secret":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_ms_teams":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"calling_web_hook":{"type":"TypeString","optional":true,"computed":true},"deployment_environment":{"type":"TypeString","optional":true,"default":"CommercialDeployment"},"enable_calling":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_slack":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"landing_page_url":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"signing_secret":{"type":"TypeString","optional":true},"verification_token":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_sms":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"phone_number":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sms_channel_account_security_id":{"type":"TypeString","required":true},"sms_channel_auth_token":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_web_chat":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site":{"type":"TypeSet","optional":true,"elem":{"schema":{"endpoint_parameters_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"storage_enabled":{"type":"TypeBool","optional":true,"default":true},"user_upload_enabled":{"type":"TypeBool","optional":true,"default":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channels_registration":{"schema":{"cmk_key_vault_url":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"developer_app_insights_api_key":{"type":"TypeString","optional":true},"developer_app_insights_application_id":{"type":"TypeString","optional":true},"developer_app_insights_key":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"endpoint":{"type":"TypeString","optional":true},"icon_url":{"type":"TypeString","optional":true,"default":"https://docs.botframework.com/static/devportal/client/images/bot-framework-default.png"},"location":{"type":"TypeString","required":true,"forceNew":true},"microsoft_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"streaming_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_connection":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeString","optional":true},"service_provider_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_service_azure_bot":{"schema":{"cmk_key_vault_key_url":{"type":"TypeString","optional":true},"developer_app_insights_api_key":{"type":"TypeString","optional":true},"developer_app_insights_application_id":{"type":"TypeString","optional":true},"developer_app_insights_key":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"endpoint":{"type":"TypeString","optional":true},"icon_url":{"type":"TypeString","optional":true,"default":"https://docs.botframework.com/static/devportal/client/images/bot-framework-default.png"},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"luis_app_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"luis_key":{"type":"TypeString","optional":true},"microsoft_app_id":{"type":"TypeString","required":true,"forceNew":true},"microsoft_app_msi_id":{"type":"TypeString","optional":true,"forceNew":true},"microsoft_app_tenant_id":{"type":"TypeString","optional":true,"forceNew":true},"microsoft_app_type":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"streaming_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_web_app":{"schema":{"developer_app_insights_api_key":{"type":"TypeString","optional":true},"developer_app_insights_application_id":{"type":"TypeString","optional":true},"developer_app_insights_key":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"endpoint":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"luis_app_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"luis_key":{"type":"TypeString","optional":true},"microsoft_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_capacity_reservation":{"schema":{"capacity_reservation_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_capacity_reservation_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_endpoint":{"schema":{"content_types_to_compress":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"delivery_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"cache_expiration_action":{"type":"TypeList","optional":true,"elem":{"schema":{"behavior":{"type":"TypeString","required":true},"duration":{"type":"TypeString","optional":true}}},"maxItems":1},"cache_key_query_string_action":{"type":"TypeList","optional":true,"elem":{"schema":{"behavior":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true}}},"maxItems":1},"cookies_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"device_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}},"maxItems":1},"http_version_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"modify_request_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"modify_response_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"order":{"type":"TypeInt","required":true},"post_arg_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"query_string_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"remote_address_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true}}}},"request_body_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"request_header_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"request_method_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}},"maxItems":1},"request_scheme_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}},"maxItems":1},"request_uri_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"url_file_extension_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"url_file_name_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"url_path_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"url_redirect_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fragment":{"type":"TypeString","optional":true},"hostname":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","optional":true,"default":"MatchRequest"},"query_string":{"type":"TypeString","optional":true},"redirect_type":{"type":"TypeString","required":true}}},"maxItems":1},"url_rewrite_action":{"type":"TypeList","optional":true,"elem":{"schema":{"destination":{"type":"TypeString","required":true},"preserve_unmatched_path":{"type":"TypeBool","optional":true,"default":true},"source_pattern":{"type":"TypeString","required":true}}},"maxItems":1}}}},"fqdn":{"type":"TypeString","computed":true},"geo_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"country_codes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"relative_path":{"type":"TypeString","required":true}}}},"global_delivery_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"cache_expiration_action":{"type":"TypeList","optional":true,"elem":{"schema":{"behavior":{"type":"TypeString","required":true},"duration":{"type":"TypeString","optional":true}}},"maxItems":1},"cache_key_query_string_action":{"type":"TypeList","optional":true,"elem":{"schema":{"behavior":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true}}},"maxItems":1},"modify_request_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"modify_response_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"url_redirect_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fragment":{"type":"TypeString","optional":true},"hostname":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","optional":true,"default":"MatchRequest"},"query_string":{"type":"TypeString","optional":true},"redirect_type":{"type":"TypeString","required":true}}},"maxItems":1},"url_rewrite_action":{"type":"TypeList","optional":true,"elem":{"schema":{"destination":{"type":"TypeString","required":true},"preserve_unmatched_path":{"type":"TypeBool","optional":true,"default":true},"source_pattern":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"is_compression_enabled":{"type":"TypeBool","optional":true},"is_http_allowed":{"type":"TypeBool","optional":true,"default":true},"is_https_allowed":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"optimization_type":{"type":"TypeString","optional":true},"origin":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"schema":{"host_name":{"type":"TypeString","required":true,"forceNew":true},"http_port":{"type":"TypeInt","optional":true,"default":80,"forceNew":true},"https_port":{"type":"TypeInt","optional":true,"default":443,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"origin_host_header":{"type":"TypeString","optional":true},"origin_path":{"type":"TypeString","optional":true},"probe_path":{"type":"TypeString","optional":true},"profile_name":{"type":"TypeString","required":true,"forceNew":true},"querystring_caching_behaviour":{"type":"TypeString","optional":true,"default":"IgnoreQueryString"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_endpoint_custom_domain":{"schema":{"cdn_endpoint_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_managed_https":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_type":{"type":"TypeString","required":true},"protocol_type":{"type":"TypeString","required":true},"tls_version":{"type":"TypeString","optional":true,"default":"TLS12"}}},"maxItems":1,"minItems":1},"host_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"user_managed_https":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_secret_id":{"type":"TypeString","required":true},"tls_version":{"type":"TypeString","optional":true,"default":"TLS12"}}},"maxItems":1,"minItems":1}},"timeouts":{"create":720,"read":5,"delete":720,"update":1440}},"azurerm_cdn_frontdoor_custom_domain":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"dns_zone_id":{"type":"TypeString","optional":true},"expiration_date":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tls":{"type":"TypeList","required":true,"elem":{"schema":{"cdn_frontdoor_secret_id":{"type":"TypeString","optional":true,"computed":true},"certificate_type":{"type":"TypeString","optional":true,"default":"ManagedCertificate"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"TLS12"}}},"maxItems":1},"validation_token":{"type":"TypeString","computed":true}},"timeouts":{"create":720,"read":5,"delete":720,"update":1440}},"azurerm_cdn_frontdoor_custom_domain_association":{"schema":{"cdn_frontdoor_custom_domain_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_frontdoor_route_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_endpoint":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_firewall_policy":{"schema":{"custom_block_response_body":{"type":"TypeString","optional":true},"custom_block_response_status_code":{"type":"TypeInt","optional":true},"custom_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"match_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":600},"match_variable":{"type":"TypeString","required":true},"negation_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":5}}},"maxItems":10},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","optional":true,"default":1},"rate_limit_duration_in_minutes":{"type":"TypeInt","optional":true,"default":1},"rate_limit_threshold":{"type":"TypeInt","optional":true,"default":10},"type":{"type":"TypeString","required":true}}},"maxItems":100},"enabled":{"type":"TypeBool","optional":true,"default":true},"frontend_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"managed_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"override":{"type":"TypeList","optional":true,"elem":{"schema":{"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":false},"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"rule_id":{"type":"TypeString","required":true}}},"maxItems":1000},"rule_group_name":{"type":"TypeString","required":true}}},"maxItems":100},"type":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":100},"mode":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"redirect_url":{"type":"TypeString","optional":true},"request_body_check_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_origin":{"schema":{"cdn_frontdoor_origin_group_id":{"type":"TypeString","required":true,"forceNew":true},"certificate_name_check_enabled":{"type":"TypeBool","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"host_name":{"type":"TypeString","required":true},"http_port":{"type":"TypeInt","optional":true,"default":80},"https_port":{"type":"TypeInt","optional":true,"default":443},"name":{"type":"TypeString","required":true,"forceNew":true},"origin_host_header":{"type":"TypeString","optional":true},"priority":{"type":"TypeInt","optional":true,"default":1},"private_link":{"type":"TypeList","optional":true,"elem":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"private_link_target_id":{"type":"TypeString","required":true},"request_message":{"type":"TypeString","optional":true,"default":"Access request for CDN FrontDoor Private Link Origin"},"target_type":{"type":"TypeString","optional":true}}},"maxItems":1},"weight":{"type":"TypeInt","optional":true,"default":500}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_origin_group":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"health_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"interval_in_seconds":{"type":"TypeInt","required":true},"path":{"type":"TypeString","optional":true,"default":"/"},"protocol":{"type":"TypeString","required":true},"request_type":{"type":"TypeString","optional":true,"default":"HEAD"}}},"maxItems":1},"load_balancing":{"type":"TypeList","required":true,"elem":{"schema":{"additional_latency_in_milliseconds":{"type":"TypeInt","optional":true,"default":50},"sample_size":{"type":"TypeInt","optional":true,"default":4},"successful_samples_required":{"type":"TypeInt","optional":true,"default":3}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"restore_traffic_time_to_healed_or_new_endpoint_in_minutes":{"type":"TypeInt","optional":true,"default":10},"session_affinity_enabled":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_profile":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_guid":{"type":"TypeString","computed":true},"response_timeout_seconds":{"type":"TypeInt","optional":true,"default":120},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_route":{"schema":{"cache":{"type":"TypeList","optional":true,"elem":{"schema":{"compression_enabled":{"type":"TypeBool","optional":true,"default":false},"content_types_to_compress":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"query_string_caching_behavior":{"type":"TypeString","optional":true,"default":"IgnoreQueryString"},"query_strings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"cdn_frontdoor_custom_domain_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"cdn_frontdoor_endpoint_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_frontdoor_origin_group_id":{"type":"TypeString","required":true},"cdn_frontdoor_origin_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"cdn_frontdoor_origin_path":{"type":"TypeString","optional":true},"cdn_frontdoor_rule_set_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"forwarding_protocol":{"type":"TypeString","optional":true,"default":"MatchRequest"},"https_redirect_enabled":{"type":"TypeBool","optional":true,"default":true},"link_to_default_domain":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"patterns_to_match":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"supported_protocols":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":2}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_rule":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"schema":{"request_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"header_action":{"type":"TypeString","required":true},"header_name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"response_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"header_action":{"type":"TypeString","required":true},"header_name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"route_configuration_override_action":{"type":"TypeList","optional":true,"elem":{"schema":{"cache_behavior":{"type":"TypeString","optional":true},"cache_duration":{"type":"TypeString","optional":true},"cdn_frontdoor_origin_group_id":{"type":"TypeString","optional":true},"compression_enabled":{"type":"TypeBool","optional":true},"forwarding_protocol":{"type":"TypeString","optional":true},"query_string_caching_behavior":{"type":"TypeString","optional":true},"query_string_parameters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":100}}},"maxItems":1},"url_redirect_action":{"type":"TypeList","optional":true,"elem":{"schema":{"destination_fragment":{"type":"TypeString","optional":true,"default":""},"destination_hostname":{"type":"TypeString","required":true},"destination_path":{"type":"TypeString","optional":true,"default":""},"query_string":{"type":"TypeString","optional":true,"default":""},"redirect_protocol":{"type":"TypeString","optional":true,"default":"MatchRequest"},"redirect_type":{"type":"TypeString","required":true}}},"maxItems":1},"url_rewrite_action":{"type":"TypeList","optional":true,"elem":{"schema":{"destination":{"type":"TypeString","required":true},"preserve_unmatched_path":{"type":"TypeBool","optional":true,"default":false},"source_pattern":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"behavior_on_match":{"type":"TypeString","optional":true,"default":"Continue"},"cdn_frontdoor_rule_set_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_frontdoor_rule_set_name":{"type":"TypeString","computed":true},"conditions":{"type":"TypeList","optional":true,"elem":{"schema":{"client_port_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true}}}},"cookies_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"cookie_name":{"type":"TypeString","required":true},"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"host_name_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"http_version_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":4},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"is_device_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"post_args_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"post_args_name":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"query_string_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"remote_address_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"IPMatch"}}}},"request_body_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"request_header_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"request_method_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":7},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"request_scheme_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString","default":"HTTP"},"maxItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"request_uri_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"server_port_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":2},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true}}}},"socket_address_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"IPMatch"}}}},"ssl_protocol_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":3},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"url_file_extension_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"url_filename_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"url_path_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"order":{"type":"TypeInt","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_rule_set":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cdn_frontdoor_secret":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_frontdoor_profile_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"secret":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"customer_certificate":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"key_vault_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"subject_alternative_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cdn_frontdoor_security_policy":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"security_policies":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"firewall":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"association":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"domain":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"active":{"type":"TypeBool","computed":true},"cdn_frontdoor_domain_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":500},"patterns_to_match":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1}}},"maxItems":1},"cdn_frontdoor_firewall_policy_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cdn_profile":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_chaos_studio_capability":{"schema":{"capability_type":{"type":"TypeString","required":true,"forceNew":true},"chaos_studio_target_id":{"type":"TypeString","required":true,"forceNew":true},"urn":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_chaos_studio_experiment":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"chaos_studio_target_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}},"minItems":1},"steps":{"type":"TypeList","required":true,"elem":{"schema":{"branch":{"type":"TypeList","required":true,"elem":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"duration":{"type":"TypeString","optional":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"selector_name":{"type":"TypeString","optional":true},"urn":{"type":"TypeString","optional":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_chaos_studio_target":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"target_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cognitive_account":{"schema":{"custom_question_answering_search_service_id":{"type":"TypeString","optional":true},"custom_question_answering_search_service_key":{"type":"TypeString","optional":true},"custom_subdomain_name":{"type":"TypeString","optional":true,"forceNew":true},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true}}},"maxItems":1},"dynamic_throttling_enabled":{"type":"TypeBool","optional":true},"endpoint":{"type":"TypeString","computed":true},"fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","required":true,"forceNew":true},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metrics_advisor_aad_client_id":{"type":"TypeString","optional":true,"forceNew":true},"metrics_advisor_aad_tenant_id":{"type":"TypeString","optional":true,"forceNew":true},"metrics_advisor_super_user_name":{"type":"TypeString","optional":true,"forceNew":true},"metrics_advisor_website_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acls":{"type":"TypeList","optional":true,"elem":{"schema":{"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"virtual_network_rules":{"type":"TypeSet","optional":true,"elem":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false},"subnet_id":{"type":"TypeString","required":true}}}}}},"maxItems":1},"outbound_network_access_restricted":{"type":"TypeBool","optional":true,"default":false},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"qna_runtime_endpoint":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true},"storage":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cognitive_account_customer_managed_key":{"schema":{"cognitive_account_id":{"type":"TypeString","required":true,"forceNew":true},"identity_client_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cognitive_deployment":{"schema":{"cognitive_account_id":{"type":"TypeString","required":true,"forceNew":true},"model":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"format":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"rai_policy_name":{"type":"TypeString","optional":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true,"default":1},"family":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"size":{"type":"TypeString","optional":true,"forceNew":true},"tier":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"version_upgrade_option":{"type":"TypeString","optional":true,"default":"OnceNewDefaultVersionAvailable"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_communication_service":{"schema":{"data_location":{"type":"TypeString","optional":true,"default":"United States","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_communication_service_email_domain_association":{"schema":{"communication_service_id":{"type":"TypeString","required":true,"forceNew":true},"email_service_domain_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5}},"azurerm_confidential_ledger":{"schema":{"azuread_based_service_principal":{"type":"TypeList","required":true,"elem":{"schema":{"ledger_role_name":{"type":"TypeString","required":true},"principal_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}}},"minItems":1},"certificate_based_security_principal":{"type":"TypeList","optional":true,"elem":{"schema":{"ledger_role_name":{"type":"TypeString","required":true},"pem_public_key":{"type":"TypeString","required":true}}}},"identity_service_endpoint":{"type":"TypeString","computed":true},"ledger_endpoint":{"type":"TypeString","computed":true},"ledger_type":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_consumption_budget_management_group":{"schema":{"amount":{"type":"TypeFloat","required":true},"etag":{"type":"TypeString","optional":true,"computed":true},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"dimension":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"tag":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeSet","required":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeInt","required":true},"threshold_type":{"type":"TypeString","optional":true,"default":"Actual","forceNew":true}}},"maxItems":5,"minItems":1},"time_grain":{"type":"TypeString","optional":true,"default":"Monthly","forceNew":true},"time_period":{"type":"TypeList","required":true,"elem":{"schema":{"end_date":{"type":"TypeString","optional":true,"computed":true},"start_date":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_consumption_budget_resource_group":{"schema":{"amount":{"type":"TypeFloat","required":true},"etag":{"type":"TypeString","optional":true,"computed":true},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"dimension":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"tag":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeSet","required":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"contact_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"contact_roles":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeInt","required":true},"threshold_type":{"type":"TypeString","optional":true,"default":"Actual","forceNew":true}}},"maxItems":5,"minItems":1},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true},"time_grain":{"type":"TypeString","optional":true,"default":"Monthly","forceNew":true},"time_period":{"type":"TypeList","required":true,"elem":{"schema":{"end_date":{"type":"TypeString","optional":true,"computed":true},"start_date":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_consumption_budget_subscription":{"schema":{"amount":{"type":"TypeFloat","required":true},"etag":{"type":"TypeString","optional":true,"computed":true},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"dimension":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"tag":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeSet","required":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"contact_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"contact_roles":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeInt","required":true},"threshold_type":{"type":"TypeString","optional":true,"default":"Actual","forceNew":true}}},"maxItems":5,"minItems":1},"subscription_id":{"type":"TypeString","required":true,"forceNew":true},"time_grain":{"type":"TypeString","optional":true,"default":"Monthly","forceNew":true},"time_period":{"type":"TypeList","required":true,"elem":{"schema":{"end_date":{"type":"TypeString","optional":true,"computed":true},"start_date":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app":{"schema":{"container_app_environment_id":{"type":"TypeString","required":true,"description":"The ID of the Container App Environment to host this Container App.","forceNew":true},"custom_domain_verification_id":{"type":"TypeString","description":"The ID of the Custom Domain Verification for this Container App.","computed":true},"dapr":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The Dapr Application Identifier."},"app_port":{"type":"TypeInt","optional":true,"description":"The port which the application is listening on. This is the same as the `ingress` port."},"app_protocol":{"type":"TypeString","optional":true,"default":"http","description":"The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`."}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ingress":{"type":"TypeList","optional":true,"elem":{"schema":{"allow_insecure_connections":{"type":"TypeBool","optional":true,"default":false,"description":"Should this ingress allow insecure connections?"},"custom_domain":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_binding_type":{"type":"TypeString","description":"The Binding type. Possible values include `Disabled` and `SniEnabled`. Defaults to `Disabled`","computed":true},"certificate_id":{"type":"TypeString","description":"The ID of the Certificate.","computed":true},"name":{"type":"TypeString","description":"The hostname of the Certificate. Must be the CN or a named SAN in the certificate.","computed":true}}}},"exposed_port":{"type":"TypeInt","optional":true,"description":"The exposed port on the container for the Ingress traffic."},"external_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is this an external Ingress."},"fqdn":{"type":"TypeString","description":"The FQDN of the ingress.","computed":true},"ip_security_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true,"description":"The action. Allow or Deny."},"description":{"type":"TypeString","optional":true,"description":"Describe the IP restriction rule that is being sent to the container-app."},"ip_address_range":{"type":"TypeString","required":true,"description":"The incoming IP address or range of IP addresses (in CIDR notation)."},"name":{"type":"TypeString","required":true,"description":"Name for the IP restriction rule."}}}},"target_port":{"type":"TypeInt","required":true,"description":"The target port on the container for the Ingress traffic."},"traffic_weight":{"type":"TypeList","required":true,"elem":{"schema":{"label":{"type":"TypeString","optional":true,"description":"The label to apply to the revision as a name prefix for routing traffic."},"latest_revision":{"type":"TypeBool","optional":true,"default":false,"description":"This traffic Weight relates to the latest stable Container Revision."},"percentage":{"type":"TypeInt","required":true,"description":"The percentage of traffic to send to this revision."},"revision_suffix":{"type":"TypeString","optional":true,"description":"The suffix string to append to the revision. This must be unique for the Container App's lifetime. A default hash created by the service will be used if this value is omitted."}}}},"transport":{"type":"TypeString","optional":true,"default":"auto","description":"The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`, `tcp`. Defaults to `auto`"}}},"maxItems":1},"latest_revision_fqdn":{"type":"TypeString","description":"The FQDN of the Latest Revision of the Container App.","computed":true},"latest_revision_name":{"type":"TypeString","description":"The name of the latest Container Revision.","computed":true},"location":{"type":"TypeString","computed":true},"max_inactive_revisions":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"description":"The name for this Container App.","forceNew":true},"outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"registry":{"type":"TypeList","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"ID of the System or User Managed Identity used to pull images from the Container Registry"},"password_secret_name":{"type":"TypeString","optional":true,"description":"The name of the Secret Reference containing the password value for this user on the Container Registry."},"server":{"type":"TypeString","required":true,"description":"The hostname for the Container Registry."},"username":{"type":"TypeString","optional":true,"description":"The username to use for this Container Registry."}}},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"revision_mode":{"type":"TypeString","required":true},"secret":{"type":"TypeSet","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"The identity to use for accessing key vault reference."},"key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID. Could be either one of `id` or `versionless_id`."},"name":{"type":"TypeString","required":true,"description":"The secret name."},"value":{"type":"TypeString","optional":true,"description":"The value for this secret."}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template":{"type":"TypeList","required":true,"elem":{"schema":{"azure_queue_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true},"queue_length":{"type":"TypeInt","required":true},"queue_name":{"type":"TypeString","required":true}}}},"container":{"type":"TypeList","required":true,"elem":{"schema":{"args":{"type":"TypeList","optional":true,"description":"A list of args to pass to the container.","elem":{"type":"TypeString"}},"command":{"type":"TypeList","optional":true,"description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","required":true,"description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`. When there's a workload profile specified, there's no such constraint."},"env":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the environment variable for the container."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of the secret that contains the value for this environment variable."},"value":{"type":"TypeString","optional":true,"description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used"}}},"minItems":1},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","required":true,"description":"The image to use to create the container."},"liveness_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"initial_delay":{"type":"TypeInt","optional":true,"default":1,"description":"The time in seconds to wait after the container has started before the probe is started."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"memory":{"type":"TypeString","required":true,"description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`. When there's a workload profile specified, there's no such constraint."},"name":{"type":"TypeString","required":true,"description":"The name of the container."},"readiness_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"success_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive successful responses required to consider this probe as successful. Possible values are between `1` and `10`. Defaults to `3`."},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"startup_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"volume_mounts":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Volume to be mounted in the container."},"path":{"type":"TypeString","required":true,"description":"The path in the container at which to mount this volume."}}}}}},"minItems":1},"custom_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","required":true}}},"minItems":1},"custom_rule_type":{"type":"TypeString","required":true},"metadata":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}}},"http_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","optional":true}}},"minItems":1},"concurrent_requests":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"init_container":{"type":"TypeList","optional":true,"elem":{"schema":{"args":{"type":"TypeList","optional":true,"description":"A list of args to pass to the container.","elem":{"type":"TypeString"}},"command":{"type":"TypeList","optional":true,"description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","optional":true,"description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`. When there's a workload profile specified, there's no such constraint."},"env":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the environment variable for the container."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of the secret that contains the value for this environment variable."},"value":{"type":"TypeString","optional":true,"description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used"}}},"minItems":1},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","required":true,"description":"The image to use to create the container."},"memory":{"type":"TypeString","optional":true,"description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`. When there's a workload profile specified, there's no such constraint."},"name":{"type":"TypeString","required":true,"description":"The name of the container."},"volume_mounts":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Volume to be mounted in the container."},"path":{"type":"TypeString","required":true,"description":"The path in the container at which to mount this volume."}}}}}},"minItems":1},"max_replicas":{"type":"TypeInt","optional":true,"default":10,"description":"The maximum number of replicas for this container."},"min_replicas":{"type":"TypeInt","optional":true,"default":0,"description":"The minimum number of replicas for this container."},"revision_suffix":{"type":"TypeString","optional":true,"description":"The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.","computed":true},"tcp_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","optional":true}}},"minItems":1},"concurrent_requests":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"volume":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the volume."},"storage_name":{"type":"TypeString","optional":true,"description":"The name of the `AzureFile` storage. Required when `storage_type` is `AzureFile`"},"storage_type":{"type":"TypeString","optional":true,"default":"EmptyDir","description":"The type of storage volume. Possible values include `AzureFile` and `EmptyDir`. Defaults to `EmptyDir`."}}},"minItems":1}}},"maxItems":1},"workload_profile_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_custom_domain":{"schema":{"certificate_binding_type":{"type":"TypeString","optional":true,"description":"The Binding type. Possible values include `Disabled` and `SniEnabled`.","forceNew":true},"container_app_environment_certificate_id":{"type":"TypeString","optional":true,"forceNew":true},"container_app_environment_managed_certificate_id":{"type":"TypeString","computed":true},"container_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"description":"The hostname of the Certificate. Must be the CN or a named SAN in the certificate.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_container_app_environment":{"schema":{"custom_domain_verification_id":{"type":"TypeString","description":"The ID of the Custom Domain Verification for this Container App Environment.","computed":true},"dapr_application_insights_connection_string":{"type":"TypeString","optional":true,"description":"Application Insights connection string used by Dapr to export Service to Service communication telemetry.","forceNew":true},"default_domain":{"type":"TypeString","description":"The default publicly resolvable name of this Container App Environment","computed":true},"docker_bridge_cidr":{"type":"TypeString","description":"The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.","computed":true},"infrastructure_resource_group_name":{"type":"TypeString","optional":true,"description":"Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. **Note:** Only valid if a `workload_profile` is specified. If `infrastructure_subnet_id` is specified, this resource group will be created in the same subscription as `infrastructure_subnet_id`.","forceNew":true},"infrastructure_subnet_id":{"type":"TypeString","optional":true,"description":"The existing Subnet to use for the Container Apps Control Plane. **NOTE:** The Subnet must have a `/21` or larger address space.","forceNew":true},"internal_load_balancer_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Container Environment operate in Internal Load Balancing Mode? Defaults to `false`. **Note:** can only be set to `true` if `infrastructure_subnet_id` is specified.","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"log_analytics_workspace_id":{"type":"TypeString","optional":true,"description":"The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to.","forceNew":true},"mutual_tls_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should mutual transport layer security (mTLS) be enabled? Defaults to `false`. **Note:** This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios."},"name":{"type":"TypeString","required":true,"description":"The name of the Container Apps Managed Environment.","forceNew":true},"platform_reserved_cidr":{"type":"TypeString","description":"The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.","computed":true},"platform_reserved_dns_ip_address":{"type":"TypeString","description":"The IP address from the IP range defined by `platform_reserved_cidr` that is reserved for the internal DNS server.","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"static_ip_address":{"type":"TypeString","description":"The Static IP Address of the Environment.","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workload_profile":{"type":"TypeSet","optional":true,"elem":{"schema":{"maximum_count":{"type":"TypeInt","optional":true},"minimum_count":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true},"workload_profile_type":{"type":"TypeString","required":true}}}},"zone_redundancy_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_environment_certificate":{"schema":{"certificate_blob_base64":{"type":"TypeString","required":true,"description":"The Certificate Private Key as a base64 encoded PFX or PEM.","forceNew":true},"certificate_password":{"type":"TypeString","required":true,"description":"The password for the Certificate.","forceNew":true},"container_app_environment_id":{"type":"TypeString","required":true,"description":"The Container App Managed Environment ID to configure this Certificate on.","forceNew":true},"expiration_date":{"type":"TypeString","description":"The expiration date for the Certificate.","computed":true},"issue_date":{"type":"TypeString","description":"The date of issue for the Certificate.","computed":true},"issuer":{"type":"TypeString","description":"The Certificate Issuer.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Container Apps Environment Certificate.","forceNew":true},"subject_name":{"type":"TypeString","description":"The Subject Name for the Certificate.","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","description":"The Thumbprint of the Certificate.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_environment_custom_domain":{"schema":{"certificate_blob_base64":{"type":"TypeString","required":true,"description":"The Custom Domain Certificate Private Key as a base64 encoded PFX or PEM."},"certificate_password":{"type":"TypeString","required":true,"description":"The Custom Domain Certificate password."},"container_app_environment_id":{"type":"TypeString","required":true,"description":"The Container App Managed Environment ID to configure this Custom Domain on.","forceNew":true},"dns_suffix":{"type":"TypeString","required":true,"description":"The Custom Domain DNS suffix for this Container App Environment."}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_environment_dapr_component":{"schema":{"component_type":{"type":"TypeString","required":true,"description":"The Dapr Component Type. For example `state.azure.blobstorage`.","forceNew":true},"container_app_environment_id":{"type":"TypeString","required":true,"description":"The Container App Managed Environment ID to configure this Dapr component on.","forceNew":true},"ignore_errors":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false`"},"init_timeout":{"type":"TypeString","optional":true,"default":"5s","description":"The component initialisation timeout in ISO8601 format. e.g. `5s`, `2h`, `1m`. Defaults to `5s`."},"metadata":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Metadata configuration item."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item."},"value":{"type":"TypeString","optional":true,"description":"The value for this metadata configuration item."}}},"minItems":1},"name":{"type":"TypeString","required":true,"description":"The name for this Dapr Component.","forceNew":true},"scopes":{"type":"TypeList","optional":true,"description":"A list of scopes to which this component applies. e.g. a Container App's `dapr.app_id` value.","elem":{"type":"TypeString"},"minItems":1},"secret":{"type":"TypeSet","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"The identity to use for accessing key vault reference."},"key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID. Could be either one of `id` or `versionless_id`."},"name":{"type":"TypeString","required":true,"description":"The secret name."},"value":{"type":"TypeString","optional":true,"description":"The value for this secret."}}}},"version":{"type":"TypeString","required":true,"description":"The version of the component."}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_environment_storage":{"schema":{"access_key":{"type":"TypeString","required":true,"description":"The Storage Account Access Key."},"access_mode":{"type":"TypeString","required":true,"description":"The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`.","forceNew":true},"account_name":{"type":"TypeString","required":true,"description":"The Azure Storage Account in which the Share to be used is located.","forceNew":true},"container_app_environment_id":{"type":"TypeString","required":true,"description":"The ID of the Container App Environment to which this storage belongs.","forceNew":true},"name":{"type":"TypeString","required":true,"description":"The name for this Storage.","forceNew":true},"share_name":{"type":"TypeString","required":true,"description":"The name of the Azure Storage Share to use.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_job":{"schema":{"container_app_environment_id":{"type":"TypeString","required":true,"forceNew":true},"event_stream_endpoint":{"type":"TypeString","computed":true},"event_trigger_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"parallelism":{"type":"TypeInt","optional":true,"default":1},"replica_completion_count":{"type":"TypeInt","optional":true,"default":1},"scale":{"type":"TypeList","optional":true,"elem":{"schema":{"max_executions":{"type":"TypeInt","optional":true,"default":100},"min_executions":{"type":"TypeInt","optional":true,"default":0},"polling_interval_in_seconds":{"type":"TypeInt","optional":true,"default":30},"rules":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","required":true}}},"minItems":1},"custom_rule_type":{"type":"TypeString","required":true},"metadata":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}}}}}}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"manual_trigger_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"parallelism":{"type":"TypeInt","optional":true,"default":1},"replica_completion_count":{"type":"TypeInt","optional":true,"default":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"registry":{"type":"TypeList","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"ID of the System or User Managed Identity used to pull images from the Container Registry"},"password_secret_name":{"type":"TypeString","optional":true,"description":"The name of the Secret Reference containing the password value for this user on the Container Registry."},"server":{"type":"TypeString","required":true,"description":"The hostname for the Container Registry."},"username":{"type":"TypeString","optional":true,"description":"The username to use for this Container Registry."}}},"minItems":1},"replica_retry_limit":{"type":"TypeInt","optional":true},"replica_timeout_in_seconds":{"type":"TypeInt","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schedule_trigger_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cron_expression":{"type":"TypeString","required":true},"parallelism":{"type":"TypeInt","optional":true,"default":1},"replica_completion_count":{"type":"TypeInt","optional":true,"default":1}}},"maxItems":1},"secret":{"type":"TypeSet","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"The identity to use for accessing key vault reference."},"key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID. Could be either one of `id` or `versionless_id`."},"name":{"type":"TypeString","required":true,"description":"The secret name."},"value":{"type":"TypeString","optional":true,"description":"The value for this secret."}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template":{"type":"TypeList","required":true,"elem":{"schema":{"container":{"type":"TypeList","required":true,"elem":{"schema":{"args":{"type":"TypeList","optional":true,"description":"A list of args to pass to the container.","elem":{"type":"TypeString"}},"command":{"type":"TypeList","optional":true,"description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","required":true,"description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`. When there's a workload profile specified, there's no such constraint."},"env":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the environment variable for the container."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of the secret that contains the value for this environment variable."},"value":{"type":"TypeString","optional":true,"description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used"}}},"minItems":1},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","required":true,"description":"The image to use to create the container."},"liveness_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"initial_delay":{"type":"TypeInt","optional":true,"default":1,"description":"The time in seconds to wait after the container has started before the probe is started."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"memory":{"type":"TypeString","required":true,"description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`. When there's a workload profile specified, there's no such constraint."},"name":{"type":"TypeString","required":true,"description":"The name of the container."},"readiness_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"success_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive successful responses required to consider this probe as successful. Possible values are between `1` and `10`. Defaults to `3`."},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"startup_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"volume_mounts":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Volume to be mounted in the container."},"path":{"type":"TypeString","required":true,"description":"The path in the container at which to mount this volume."}}}}}},"minItems":1},"init_container":{"type":"TypeList","optional":true,"elem":{"schema":{"args":{"type":"TypeList","optional":true,"description":"A list of args to pass to the container.","elem":{"type":"TypeString"}},"command":{"type":"TypeList","optional":true,"description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","optional":true,"description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`. When there's a workload profile specified, there's no such constraint."},"env":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the environment variable for the container."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of the secret that contains the value for this environment variable."},"value":{"type":"TypeString","optional":true,"description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used"}}},"minItems":1},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","required":true,"description":"The image to use to create the container."},"memory":{"type":"TypeString","optional":true,"description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`. When there's a workload profile specified, there's no such constraint."},"name":{"type":"TypeString","required":true,"description":"The name of the container."},"volume_mounts":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Volume to be mounted in the container."},"path":{"type":"TypeString","required":true,"description":"The path in the container at which to mount this volume."}}}}}},"minItems":1},"volume":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the volume."},"storage_name":{"type":"TypeString","optional":true,"description":"The name of the `AzureFile` storage. Required when `storage_type` is `AzureFile`"},"storage_type":{"type":"TypeString","optional":true,"default":"EmptyDir","description":"The type of storage volume. Possible values include `AzureFile` and `EmptyDir`. Defaults to `EmptyDir`."}}},"minItems":1}}},"maxItems":1},"workload_profile_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_connected_registry":{"schema":{"audit_log_enabled":{"type":"TypeBool","optional":true,"default":false},"client_token_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"container_registry_id":{"type":"TypeString","required":true,"forceNew":true},"log_level":{"type":"TypeString","optional":true,"default":"None"},"mode":{"type":"TypeString","optional":true,"default":"ReadWrite","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"digest":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"tag":{"type":"TypeString","optional":true}}}},"parent_registry_id":{"type":"TypeString","optional":true,"forceNew":true},"sync_message_ttl":{"type":"TypeString","optional":true,"default":"P1D"},"sync_schedule":{"type":"TypeString","optional":true,"default":"* * * * *"},"sync_token_id":{"type":"TypeString","required":true,"forceNew":true},"sync_window":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_group":{"schema":{"container":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"commands":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","required":true,"forceNew":true},"cpu_limit":{"type":"TypeFloat","optional":true},"environment_variables":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"image":{"type":"TypeString","required":true,"forceNew":true},"liveness_probe":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"exec":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"failure_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"http_get":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"http_headers":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"path":{"type":"TypeString","optional":true,"forceNew":true},"port":{"type":"TypeInt","optional":true,"forceNew":true},"scheme":{"type":"TypeString","optional":true,"forceNew":true}}}},"initial_delay_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"period_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"success_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"timeout_seconds":{"type":"TypeInt","optional":true,"forceNew":true}}},"maxItems":1},"memory":{"type":"TypeFloat","required":true,"forceNew":true},"memory_limit":{"type":"TypeFloat","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"ports":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"port":{"type":"TypeInt","optional":true,"forceNew":true},"protocol":{"type":"TypeString","optional":true,"default":"TCP","forceNew":true}}}},"readiness_probe":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"exec":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"failure_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"http_get":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"http_headers":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"path":{"type":"TypeString","optional":true,"forceNew":true},"port":{"type":"TypeInt","optional":true,"forceNew":true},"scheme":{"type":"TypeString","optional":true,"forceNew":true}}}},"initial_delay_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"period_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"success_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"timeout_seconds":{"type":"TypeInt","optional":true,"forceNew":true}}},"maxItems":1},"secure_environment_variables":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"security":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"privilege_enabled":{"type":"TypeBool","required":true,"forceNew":true}}}},"volume":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"empty_dir":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"git_repo":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"directory":{"type":"TypeString","optional":true,"forceNew":true},"revision":{"type":"TypeString","optional":true,"forceNew":true},"url":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"mount_path":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"read_only":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"secret":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"share_name":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_key":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}}},"diagnostics":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"log_analytics":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"log_type":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true},"workspace_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"dns_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"nameservers":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"options":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"search_domains":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"dns_name_label":{"type":"TypeString","optional":true,"forceNew":true},"dns_name_label_reuse_policy":{"type":"TypeString","optional":true,"default":"Unsecure"},"exposed_port":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"port":{"type":"TypeInt","optional":true,"forceNew":true},"protocol":{"type":"TypeString","optional":true,"default":"TCP","forceNew":true}}}},"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"image_registry_credential":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Container Registry access.","forceNew":true},"username":{"type":"TypeString","optional":true,"forceNew":true}}}},"init_container":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"commands":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"environment_variables":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"image":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"secure_environment_variables":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"security":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"privilege_enabled":{"type":"TypeBool","required":true,"forceNew":true}}}},"volume":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"empty_dir":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"git_repo":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"directory":{"type":"TypeString","optional":true,"forceNew":true},"revision":{"type":"TypeString","optional":true,"forceNew":true},"url":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"mount_path":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"read_only":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"secret":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"share_name":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_key":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}}},"ip_address":{"type":"TypeString","computed":true},"ip_address_type":{"type":"TypeString","optional":true,"default":"Public","forceNew":true},"key_vault_key_id":{"type":"TypeString","optional":true,"forceNew":true},"key_vault_user_assigned_identity_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile_id":{"type":"TypeString","optional":true,"computed":true},"os_type":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"restart_policy":{"type":"TypeString","optional":true,"default":"Always","forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"subnet_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":30,"update":30}},"azurerm_container_registry":{"schema":{"admin_enabled":{"type":"TypeBool","optional":true,"default":false},"admin_password":{"type":"TypeString","computed":true},"admin_username":{"type":"TypeString","computed":true},"anonymous_pull_enabled":{"type":"TypeBool","optional":true},"data_endpoint_enabled":{"type":"TypeBool","optional":true},"encryption":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","required":true},"key_vault_key_id":{"type":"TypeString","required":true}}},"maxItems":1},"export_policy_enabled":{"type":"TypeBool","optional":true,"default":true},"georeplications":{"type":"TypeList","optional":true,"elem":{"schema":{"location":{"type":"TypeString","required":true},"regional_endpoint_enabled":{"type":"TypeBool","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_redundancy_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"login_server":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rule_bypass_option":{"type":"TypeString","optional":true,"default":"AzureServices"},"network_rule_set":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_rule":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"ip_range":{"type":"TypeString","required":true}}}}}},"maxItems":1},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"quarantine_policy_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_policy_in_days":{"type":"TypeInt","optional":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trust_policy_enabled":{"type":"TypeBool","optional":true,"default":false},"zone_redundancy_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_agent_pool":{"schema":{"container_registry_name":{"type":"TypeString","required":true,"forceNew":true},"instance_count":{"type":"TypeInt","optional":true,"default":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","optional":true,"default":"S1","forceNew":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_cache_rule":{"schema":{"container_registry_id":{"type":"TypeString","required":true,"forceNew":true},"credential_set_id":{"type":"TypeString","optional":true,"description":"The ARM resource ID of the credential store which is associated with the cache rule."},"name":{"type":"TypeString","required":true,"description":"The name of the cache rule.","forceNew":true},"source_repo":{"type":"TypeString","required":true,"description":"The full source repository path such as 'docker.io/library/ubuntu'.","forceNew":true},"target_repo":{"type":"TypeString","required":true,"description":"The target repository namespace such as 'ubuntu'.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_scope_map":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"container_registry_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_task":{"schema":{"agent_pool_name":{"type":"TypeString","optional":true},"agent_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"cpu":{"type":"TypeInt","required":true}}},"maxItems":1},"base_image_trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"update_trigger_endpoint":{"type":"TypeString","optional":true},"update_trigger_payload_type":{"type":"TypeString","optional":true}}},"maxItems":1},"container_registry_id":{"type":"TypeString","required":true,"forceNew":true},"docker_step":{"type":"TypeList","optional":true,"elem":{"schema":{"arguments":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"cache_enabled":{"type":"TypeBool","optional":true,"default":true},"context_access_token":{"type":"TypeString","required":true},"context_path":{"type":"TypeString","required":true},"dockerfile_path":{"type":"TypeString","required":true},"image_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"push_enabled":{"type":"TypeBool","optional":true,"default":true},"secret_arguments":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target":{"type":"TypeString","optional":true}}},"maxItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"encoded_step":{"type":"TypeList","optional":true,"elem":{"schema":{"context_access_token":{"type":"TypeString","optional":true},"context_path":{"type":"TypeString","optional":true},"secret_values":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"task_content":{"type":"TypeString","required":true},"value_content":{"type":"TypeString","optional":true},"values":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"file_step":{"type":"TypeList","optional":true,"elem":{"schema":{"context_access_token":{"type":"TypeString","optional":true},"context_path":{"type":"TypeString","optional":true},"secret_values":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"task_file_path":{"type":"TypeString","required":true},"value_file_path":{"type":"TypeString","optional":true},"values":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"is_system_task":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"log_template":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform":{"type":"TypeList","optional":true,"elem":{"schema":{"architecture":{"type":"TypeString","optional":true},"os":{"type":"TypeString","required":true},"variant":{"type":"TypeString","optional":true}}},"maxItems":1},"registry_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"custom":{"type":"TypeSet","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true},"login_server":{"type":"TypeString","required":true},"password":{"type":"TypeString","optional":true},"username":{"type":"TypeString","optional":true}}}},"source":{"type":"TypeList","optional":true,"elem":{"schema":{"login_mode":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"source_trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"expire_in_seconds":{"type":"TypeInt","optional":true},"refresh_token":{"type":"TypeString","optional":true},"scope":{"type":"TypeString","optional":true},"token":{"type":"TypeString","required":true},"token_type":{"type":"TypeString","required":true}}},"maxItems":1},"branch":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"events":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"repository_url":{"type":"TypeString","required":true},"source_type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":3600},"timer_trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"schedule":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_task_schedule_run_now":{"schema":{"container_registry_task_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_container_registry_token":{"schema":{"container_registry_name":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope_map_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_token_password":{"schema":{"container_registry_token_id":{"type":"TypeString","required":true,"forceNew":true},"password1":{"type":"TypeList","required":true,"elem":{"schema":{"expiry":{"type":"TypeString","optional":true,"forceNew":true},"value":{"type":"TypeString","computed":true}}},"maxItems":1},"password2":{"type":"TypeList","optional":true,"elem":{"schema":{"expiry":{"type":"TypeString","optional":true,"forceNew":true},"value":{"type":"TypeString","computed":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_webhook":{"schema":{"actions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"custom_headers":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"registry_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","optional":true,"default":""},"service_uri":{"type":"TypeString","required":true},"status":{"type":"TypeString","optional":true,"default":"enabled"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_account":{"schema":{"access_key_metadata_writes_enabled":{"type":"TypeBool","optional":true,"default":true},"analytical_storage":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"schema_type":{"type":"TypeString","required":true}}},"maxItems":1},"analytical_storage_enabled":{"type":"TypeBool","optional":true,"default":false},"automatic_failover_enabled":{"type":"TypeBool","optional":true,"default":false},"backup":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"interval_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"retention_in_hours":{"type":"TypeInt","optional":true,"computed":true},"storage_redundancy":{"type":"TypeString","optional":true,"computed":true},"tier":{"type":"TypeString","optional":true,"computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"burst_capacity_enabled":{"type":"TypeBool","optional":true,"default":false},"capabilities":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}}},"capacity":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"total_throughput_limit":{"type":"TypeInt","required":true}}},"maxItems":1},"consistency_policy":{"type":"TypeList","required":true,"elem":{"schema":{"consistency_level":{"type":"TypeString","required":true},"max_interval_in_seconds":{"type":"TypeInt","optional":true,"default":5},"max_staleness_prefix":{"type":"TypeInt","optional":true,"default":100}}},"maxItems":1},"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"max_age_in_seconds":{"type":"TypeInt","optional":true}}},"maxItems":1},"create_mode":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"default_identity_type":{"type":"TypeString","optional":true,"default":"FirstPartyIdentity"},"endpoint":{"type":"TypeString","computed":true},"free_tier_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"geo_location":{"type":"TypeSet","required":true,"elem":{"schema":{"failover_priority":{"type":"TypeInt","required":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"zone_redundant":{"type":"TypeBool","optional":true,"default":false}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ip_range_filter":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"is_virtual_network_filter_enabled":{"type":"TypeBool","optional":true,"default":false},"key_vault_key_id":{"type":"TypeString","optional":true,"forceNew":true},"kind":{"type":"TypeString","optional":true,"default":"GlobalDocumentDB","forceNew":true},"local_authentication_disabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"minimal_tls_version":{"type":"TypeString","optional":true,"default":"Tls12"},"mongo_server_version":{"type":"TypeString","optional":true,"computed":true},"multiple_write_locations_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acl_bypass_for_azure_services":{"type":"TypeBool","optional":true,"default":false},"network_acl_bypass_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"offer_type":{"type":"TypeString","required":true},"partition_merge_enabled":{"type":"TypeBool","optional":true,"default":false},"primary_key":{"type":"TypeString","computed":true},"primary_mongodb_connection_string":{"type":"TypeString","computed":true},"primary_readonly_key":{"type":"TypeString","computed":true},"primary_readonly_mongodb_connection_string":{"type":"TypeString","computed":true},"primary_readonly_sql_connection_string":{"type":"TypeString","computed":true},"primary_sql_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"read_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"restore":{"type":"TypeList","optional":true,"elem":{"schema":{"database":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"collection_names":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"gremlin_database":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"graph_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"restore_timestamp_in_utc":{"type":"TypeString","required":true,"forceNew":true},"source_cosmosdb_account_id":{"type":"TypeString","required":true,"forceNew":true},"tables_to_restore":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"secondary_key":{"type":"TypeString","computed":true},"secondary_mongodb_connection_string":{"type":"TypeString","computed":true},"secondary_readonly_key":{"type":"TypeString","computed":true},"secondary_readonly_mongodb_connection_string":{"type":"TypeString","computed":true},"secondary_readonly_sql_connection_string":{"type":"TypeString","computed":true},"secondary_sql_connection_string":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_rule":{"type":"TypeSet","optional":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false}}}},"write_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_cosmosdb_cassandra_cluster":{"schema":{"authentication_method":{"type":"TypeString","optional":true,"default":"Cassandra"},"client_certificate_pems":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_admin_password":{"type":"TypeString","required":true,"forceNew":true},"delegated_management_subnet_id":{"type":"TypeString","required":true,"forceNew":true},"external_gossip_certificate_pems":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"external_seed_node_ip_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"hours_between_backups":{"type":"TypeInt","optional":true,"default":24},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"repair_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"default":"3.11","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_cassandra_datacenter":{"schema":{"availability_zones_enabled":{"type":"TypeBool","optional":true,"default":true},"backup_storage_customer_key_uri":{"type":"TypeString","optional":true},"base64_encoded_yaml_fragment":{"type":"TypeString","optional":true},"cassandra_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"delegated_management_subnet_id":{"type":"TypeString","required":true,"forceNew":true},"disk_count":{"type":"TypeInt","optional":true},"disk_sku":{"type":"TypeString","optional":true,"default":"P30"},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_disk_customer_key_uri":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_count":{"type":"TypeInt","optional":true,"default":3},"seed_node_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"sku_name":{"type":"TypeString","optional":true,"default":"Standard_E16s_v5"}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_cosmosdb_cassandra_keyspace":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_cassandra_table":{"schema":{"analytical_storage_ttl":{"type":"TypeInt","optional":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"cassandra_keyspace_id":{"type":"TypeString","required":true,"forceNew":true},"default_ttl":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"schema":{"type":"TypeList","required":true,"elem":{"schema":{"cluster_key":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"order_by":{"type":"TypeString","required":true}}}},"column":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"minItems":1},"partition_key":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_gremlin_database":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_gremlin_graph":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"analytical_storage_ttl":{"type":"TypeInt","optional":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"conflict_resolution_policy":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"conflict_resolution_path":{"type":"TypeString","optional":true},"conflict_resolution_procedure":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1},"database_name":{"type":"TypeString","required":true,"forceNew":true},"default_ttl":{"type":"TypeInt","optional":true},"index_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"automatic":{"type":"TypeBool","optional":true,"default":true},"composite_index":{"type":"TypeList","optional":true,"elem":{"schema":{"index":{"type":"TypeList","required":true,"elem":{"schema":{"order":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}},"minItems":1}}}},"excluded_paths":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"included_paths":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"indexing_mode":{"type":"TypeString","required":true},"spatial_index":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","required":true},"types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key_path":{"type":"TypeString","required":true,"forceNew":true},"partition_key_version":{"type":"TypeInt","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true},"unique_key":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"paths":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_mongo_collection":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"analytical_storage_ttl":{"type":"TypeInt","optional":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"database_name":{"type":"TypeString","required":true,"forceNew":true},"default_ttl_seconds":{"type":"TypeInt","optional":true},"index":{"type":"TypeSet","optional":true,"elem":{"schema":{"keys":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"unique":{"type":"TypeBool","optional":true,"default":false}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"shard_key":{"type":"TypeString","optional":true,"forceNew":true},"system_indexes":{"type":"TypeList","computed":true,"elem":{"schema":{"keys":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"unique":{"type":"TypeBool","computed":true}}}},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_mongo_database":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_mongo_role_definition":{"schema":{"cosmos_mongo_database_id":{"type":"TypeString","required":true,"forceNew":true},"inherited_role_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"privilege":{"type":"TypeList","optional":true,"elem":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"resource":{"type":"TypeList","required":true,"elem":{"schema":{"collection_name":{"type":"TypeString","optional":true},"db_name":{"type":"TypeString","optional":true}}},"maxItems":1}}}},"role_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_mongo_user_definition":{"schema":{"cosmos_mongo_database_id":{"type":"TypeString","required":true,"forceNew":true},"inherited_role_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_postgresql_cluster":{"schema":{"administrator_login_password":{"type":"TypeString","optional":true},"citus_version":{"type":"TypeString","optional":true,"computed":true},"coordinator_public_ip_access_enabled":{"type":"TypeBool","optional":true,"default":true},"coordinator_server_edition":{"type":"TypeString","optional":true,"default":"GeneralPurpose"},"coordinator_storage_quota_in_mb":{"type":"TypeInt","optional":true},"coordinator_vcore_count":{"type":"TypeInt","optional":true},"earliest_restore_time":{"type":"TypeString","computed":true},"ha_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeInt","optional":true,"default":0},"start_hour":{"type":"TypeInt","optional":true,"default":0},"start_minute":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"node_count":{"type":"TypeInt","required":true},"node_public_ip_access_enabled":{"type":"TypeBool","optional":true,"default":false},"node_server_edition":{"type":"TypeString","optional":true,"default":"MemoryOptimized"},"node_storage_quota_in_mb":{"type":"TypeInt","optional":true,"computed":true},"node_vcores":{"type":"TypeInt","optional":true,"computed":true},"point_in_time_in_utc":{"type":"TypeString","optional":true,"forceNew":true},"preferred_primary_zone":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"servers":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"shards_on_coordinator_enabled":{"type":"TypeBool","optional":true,"computed":true},"source_location":{"type":"TypeString","optional":true,"forceNew":true},"source_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"sql_version":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_cosmosdb_postgresql_coordinator_configuration":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_postgresql_firewall_rule":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_postgresql_node_configuration":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_postgresql_role":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cosmosdb_sql_container":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"analytical_storage_ttl":{"type":"TypeInt","optional":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"conflict_resolution_policy":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"conflict_resolution_path":{"type":"TypeString","optional":true},"conflict_resolution_procedure":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1},"database_name":{"type":"TypeString","required":true,"forceNew":true},"default_ttl":{"type":"TypeInt","optional":true},"indexing_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"composite_index":{"type":"TypeList","optional":true,"elem":{"schema":{"index":{"type":"TypeList","required":true,"elem":{"schema":{"order":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}},"minItems":1}}}},"excluded_path":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","required":true}}}},"included_path":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","required":true}}}},"indexing_mode":{"type":"TypeString","optional":true,"default":"consistent"},"spatial_index":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","required":true},"types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key_kind":{"type":"TypeString","optional":true,"default":"Hash","forceNew":true},"partition_key_paths":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"partition_key_version":{"type":"TypeInt","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true},"unique_key":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"paths":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_database":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_dedicated_gateway":{"schema":{"cosmosdb_account_id":{"type":"TypeString","required":true,"forceNew":true},"instance_count":{"type":"TypeInt","required":true},"instance_size":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_function":{"schema":{"body":{"type":"TypeString","required":true},"container_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_role_assignment":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role_definition_id":{"type":"TypeString","required":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_role_definition":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"assignable_scopes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"permissions":{"type":"TypeSet","required":true,"elem":{"schema":{"data_actions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role_definition_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"type":{"type":"TypeString","optional":true,"default":"CustomRole","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_stored_procedure":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"body":{"type":"TypeString","required":true},"container_name":{"type":"TypeString","required":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_trigger":{"schema":{"body":{"type":"TypeString","required":true},"container_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"operation":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_table":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cost_anomaly_alert":{"schema":{"display_name":{"type":"TypeString","required":true},"email_addresses":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"email_subject":{"type":"TypeString","required":true},"message":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cost_management_scheduled_action":{"schema":{"day_of_month":{"type":"TypeInt","optional":true},"days_of_week":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"display_name":{"type":"TypeString","required":true},"email_address_sender":{"type":"TypeString","required":true},"email_addresses":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":20,"minItems":1},"email_subject":{"type":"TypeString","required":true},"end_date":{"type":"TypeString","required":true},"frequency":{"type":"TypeString","required":true},"hour_of_day":{"type":"TypeInt","optional":true},"message":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"start_date":{"type":"TypeString","required":true},"view_id":{"type":"TypeString","required":true,"forceNew":true},"weeks_of_month":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_custom_ip_prefix":{"schema":{"cidr":{"type":"TypeString","required":true,"forceNew":true},"commissioning_enabled":{"type":"TypeBool","optional":true,"default":false},"internet_advertising_disabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parent_custom_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roa_validity_end_date":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"wan_validation_signed_message":{"type":"TypeString","optional":true,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":540,"read":5,"delete":1020,"update":1020}},"azurerm_custom_provider":{"schema":{"action":{"type":"TypeSet","optional":true,"elem":{"schema":{"endpoint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_type":{"type":"TypeSet","optional":true,"elem":{"schema":{"endpoint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"routing_type":{"type":"TypeString","optional":true,"default":"Proxy"}}}},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"validation":{"type":"TypeSet","optional":true,"elem":{"schema":{"specification":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dashboard_grafana":{"schema":{"api_key_enabled":{"type":"TypeBool","optional":true,"default":false},"auto_generated_domain_name_label_scope":{"type":"TypeString","optional":true,"default":"TenantReuse"},"azure_monitor_workspace_integrations":{"type":"TypeList","optional":true,"elem":{"schema":{"resource_id":{"type":"TypeString","required":true}}}},"deterministic_outbound_ip_enabled":{"type":"TypeBool","optional":true,"default":false},"endpoint":{"type":"TypeString","computed":true},"grafana_major_version":{"type":"TypeString","required":true,"forceNew":true},"grafana_version":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"smtp":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":false},"from_address":{"type":"TypeString","required":true},"from_name":{"type":"TypeString","optional":true,"default":"Azure Managed Grafana Notification"},"host":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true},"start_tls_policy":{"type":"TypeString","required":true},"user":{"type":"TypeString","required":true},"verification_skip_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_redundancy_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory":{"schema":{"customer_managed_key_id":{"type":"TypeString","optional":true},"customer_managed_key_identity_id":{"type":"TypeString","optional":true},"github_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"account_name":{"type":"TypeString","required":true},"branch_name":{"type":"TypeString","required":true},"git_url":{"type":"TypeString","optional":true},"publishing_enabled":{"type":"TypeBool","optional":true,"default":true},"repository_name":{"type":"TypeString","required":true},"root_folder":{"type":"TypeString","required":true}}},"maxItems":1},"global_parameter":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_virtual_network_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_enabled":{"type":"TypeBool","optional":true,"default":true},"purview_id":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vsts_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"account_name":{"type":"TypeString","required":true},"branch_name":{"type":"TypeString","required":true},"project_name":{"type":"TypeString","required":true},"publishing_enabled":{"type":"TypeBool","optional":true,"default":true},"repository_name":{"type":"TypeString","required":true},"root_folder":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_credential_service_principal":{"schema":{"annotations":{"type":"TypeList","optional":true,"description":"(Optional) List of string annotations.","elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"description":"The resource ID of the parent Data Factory","forceNew":true},"description":{"type":"TypeString","optional":true,"description":"(Optional) Short text description"},"name":{"type":"TypeString","required":true,"description":"The desired name of the credential resource","forceNew":true},"service_principal_id":{"type":"TypeString","required":true,"description":"The Client ID of the Service Principal"},"service_principal_key":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true},"secret_version":{"type":"TypeString","optional":true}}},"maxItems":1},"tenant_id":{"type":"TypeString","required":true,"description":"The Tenant ID of the Service Principal"}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_data_factory_credential_user_managed_identity":{"schema":{"annotations":{"type":"TypeList","optional":true,"description":"(Optional) List of string annotations.","elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"description":"The resource ID of the parent Data Factory","forceNew":true},"description":{"type":"TypeString","optional":true,"description":"(Optional) Short text description"},"identity_id":{"type":"TypeString","required":true,"description":"The resource ID of the User Assigned Managed Identity","forceNew":true},"name":{"type":"TypeString","required":true,"description":"The desired name of the credential resource","forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_data_factory_custom_dataset":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_json":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true},"type_properties_json":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_data_flow":{"schema":{"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"script":{"type":"TypeString","optional":true},"script_lines":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"sink":{"type":"TypeList","required":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true},"rejected_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"schema_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"source":{"type":"TypeList","required":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true},"rejected_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"schema_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"transformation":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_azure_blob":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"path":{"type":"TypeString","optional":true},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_azure_sql_table":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema":{"type":"TypeString","optional":true},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}},"table":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_binary":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_blob_storage_location":{"type":"TypeList","optional":true,"elem":{"schema":{"container":{"type":"TypeString","required":true},"dynamic_container_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"compression":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"http_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"relative_url":{"type":"TypeString","required":true}}},"maxItems":1},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"sftp_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_cosmosdb_sqlapi":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"collection_name":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_delimited_text":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_blob_fs_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_file_system_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"file_system":{"type":"TypeString","optional":true},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"azure_blob_storage_location":{"type":"TypeList","optional":true,"elem":{"schema":{"container":{"type":"TypeString","required":true},"dynamic_container_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"column_delimiter":{"type":"TypeString","optional":true,"default":","},"compression_codec":{"type":"TypeString","optional":true},"compression_level":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encoding":{"type":"TypeString","optional":true},"escape_character":{"type":"TypeString","optional":true,"default":"\\"},"first_row_as_header":{"type":"TypeBool","optional":true,"default":false},"folder":{"type":"TypeString","optional":true},"http_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"relative_url":{"type":"TypeString","required":true}}},"maxItems":1},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"null_value":{"type":"TypeString","optional":true,"default":""},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"quote_character":{"type":"TypeString","optional":true,"default":"\""},"row_delimiter":{"type":"TypeString","optional":true},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_http":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"relative_url":{"type":"TypeString","optional":true},"request_body":{"type":"TypeString","optional":true},"request_method":{"type":"TypeString","optional":true},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_json":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_blob_storage_location":{"type":"TypeList","optional":true,"elem":{"schema":{"container":{"type":"TypeString","required":true},"dynamic_container_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}},"maxItems":1},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encoding":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"http_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"relative_url":{"type":"TypeString","required":true}}},"maxItems":1},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_mysql":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_parquet":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_blob_fs_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_file_system_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"file_system":{"type":"TypeString","optional":true},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"azure_blob_storage_location":{"type":"TypeList","optional":true,"elem":{"schema":{"container":{"type":"TypeString","required":true},"dynamic_container_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"compression_codec":{"type":"TypeString","optional":true},"compression_level":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"http_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"relative_url":{"type":"TypeString","required":true}}},"maxItems":1},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_postgresql":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_snowflake":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"precision":{"type":"TypeInt","optional":true},"scale":{"type":"TypeInt","optional":true},"type":{"type":"TypeString","optional":true}}}},"schema_name":{"type":"TypeString","optional":true},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_sql_server_table":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_flowlet_data_flow":{"schema":{"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"script":{"type":"TypeString","optional":true},"script_lines":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"sink":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true},"rejected_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"schema_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"source":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true},"rejected_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"schema_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"transformation":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_integration_runtime_azure":{"schema":{"cleanup_enabled":{"type":"TypeBool","optional":true,"default":true},"compute_type":{"type":"TypeString","optional":true,"default":"General"},"core_count":{"type":"TypeInt","optional":true,"default":8},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"time_to_live_min":{"type":"TypeInt","optional":true,"default":0},"virtual_network_enabled":{"type":"TypeBool","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_integration_runtime_azure_ssis":{"schema":{"catalog_info":{"type":"TypeList","optional":true,"elem":{"schema":{"administrator_login":{"type":"TypeString","optional":true},"administrator_password":{"type":"TypeString","optional":true},"dual_standby_pair_name":{"type":"TypeString","optional":true},"elastic_pool_name":{"type":"TypeString","optional":true},"pricing_tier":{"type":"TypeString","optional":true},"server_endpoint":{"type":"TypeString","required":true}}},"maxItems":1},"copy_compute_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"data_integration_unit":{"type":"TypeInt","optional":true},"time_to_live":{"type":"TypeInt","optional":true}}},"maxItems":1},"credential_name":{"type":"TypeString","optional":true},"custom_setup_script":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_container_uri":{"type":"TypeString","required":true},"sas_token":{"type":"TypeString","required":true}}},"maxItems":1},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"edition":{"type":"TypeString","optional":true,"default":"Standard"},"express_custom_setup":{"type":"TypeList","optional":true,"elem":{"schema":{"command_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"secret_name":{"type":"TypeString","required":true},"secret_version":{"type":"TypeString","optional":true}}},"maxItems":1},"password":{"type":"TypeString","optional":true},"target_name":{"type":"TypeString","required":true},"user_name":{"type":"TypeString","required":true}}}},"component":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_license":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"secret_name":{"type":"TypeString","required":true},"secret_version":{"type":"TypeString","optional":true}}},"maxItems":1},"license":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true}}}},"environment":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"powershell_version":{"type":"TypeString","optional":true}}},"maxItems":1},"express_vnet_integration":{"type":"TypeList","optional":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true,"default":"LicenseIncluded"},"location":{"type":"TypeString","required":true,"forceNew":true},"max_parallel_executions_per_node":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"node_size":{"type":"TypeString","required":true},"number_of_nodes":{"type":"TypeInt","optional":true,"default":1},"package_store":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"pipeline_external_compute_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"number_of_external_nodes":{"type":"TypeInt","optional":true},"number_of_pipeline_nodes":{"type":"TypeInt","optional":true},"time_to_live":{"type":"TypeInt","optional":true}}},"maxItems":1},"proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","optional":true},"self_hosted_integration_runtime_name":{"type":"TypeString","required":true},"staging_storage_linked_service_name":{"type":"TypeString","required":true}}},"maxItems":1},"vnet_integration":{"type":"TypeList","optional":true,"elem":{"schema":{"public_ips":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2,"minItems":2},"subnet_id":{"type":"TypeString","optional":true},"subnet_name":{"type":"TypeString","optional":true},"vnet_id":{"type":"TypeString","optional":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_integration_runtime_self_hosted":{"schema":{"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_authorization_key":{"type":"TypeString","computed":true},"rbac_authorization":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"resource_id":{"type":"TypeString","required":true}}}},"secondary_authorization_key":{"type":"TypeString","computed":true},"self_contained_interactive_authoring_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_custom_service":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true},"type_properties_json":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_blob_storage":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"connection_string_insecure":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_sas_token":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"sas_uri":{"type":"TypeString","optional":true},"service_endpoint":{"type":"TypeString","optional":true},"service_principal_id":{"type":"TypeString","optional":true},"service_principal_key":{"type":"TypeString","optional":true},"service_principal_linked_key_vault_key":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"storage_kind":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","optional":true},"use_managed_identity":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_databricks":{"schema":{"access_token":{"type":"TypeString","optional":true},"adb_domain":{"type":"TypeString","required":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"existing_cluster_id":{"type":"TypeString","optional":true},"instance_pool":{"type":"TypeList","optional":true,"elem":{"schema":{"cluster_version":{"type":"TypeString","required":true},"instance_pool_id":{"type":"TypeString","required":true},"max_number_of_workers":{"type":"TypeInt","optional":true},"min_number_of_workers":{"type":"TypeInt","optional":true,"default":1}}},"maxItems":1},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"msi_work_space_resource_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"new_cluster_config":{"type":"TypeList","optional":true,"elem":{"schema":{"cluster_version":{"type":"TypeString","required":true},"custom_tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"driver_node_type":{"type":"TypeString","optional":true},"init_scripts":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"log_destination":{"type":"TypeString","optional":true},"max_number_of_workers":{"type":"TypeInt","optional":true},"min_number_of_workers":{"type":"TypeInt","optional":true,"default":"1"},"node_type":{"type":"TypeString","required":true},"spark_config":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"spark_environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_file_storage":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"file_share":{"type":"TypeString","optional":true},"host":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"password":{"type":"TypeString","optional":true},"user_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_function":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key":{"type":"TypeString","optional":true},"key_vault_key":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"url":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_search":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted_credential":{"type":"TypeString","computed":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"search_service_key":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_sql_database":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_connection_string":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"service_principal_id":{"type":"TypeString","optional":true},"service_principal_key":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","optional":true},"use_managed_identity":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_table_storage":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_cosmosdb":{"schema":{"account_endpoint":{"type":"TypeString","optional":true},"account_key":{"type":"TypeString","optional":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"database":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_cosmosdb_mongoapi":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"database":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"server_version_is_32_or_higher":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_data_lake_storage_gen2":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"service_principal_id":{"type":"TypeString","optional":true},"service_principal_key":{"type":"TypeString","optional":true},"storage_account_key":{"type":"TypeString","optional":true},"tenant":{"type":"TypeString","optional":true},"url":{"type":"TypeString","required":true},"use_managed_identity":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_key_vault":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_kusto":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"kusto_database_name":{"type":"TypeString","required":true},"kusto_endpoint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"service_principal_id":{"type":"TypeString","optional":true},"service_principal_key":{"type":"TypeString","optional":true},"tenant":{"type":"TypeString","optional":true},"use_managed_identity":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_mysql":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_odata":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"basic_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"url":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_odbc":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"basic_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_postgresql":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_sftp":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"authentication_type":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"host":{"type":"TypeString","required":true},"host_key_fingerprint":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"password":{"type":"TypeString","required":true},"port":{"type":"TypeInt","required":true},"skip_host_key_validation":{"type":"TypeBool","optional":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_snowflake":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_sql_server":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_connection_string":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_synapse":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_web":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"authentication_type":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"password":{"type":"TypeString","optional":true},"url":{"type":"TypeString","required":true},"username":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_managed_private_endpoint":{"schema":{"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"fqdns":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"subresource_name":{"type":"TypeString","optional":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_factory_pipeline":{"schema":{"activities_json":{"type":"TypeString","optional":true},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"concurrency":{"type":"TypeInt","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"moniter_metrics_after_duration":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_trigger_blob_event":{"schema":{"activated":{"type":"TypeBool","optional":true,"default":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"blob_path_begins_with":{"type":"TypeString","optional":true},"blob_path_ends_with":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"events":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"ignore_empty_blobs":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"pipeline":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_trigger_custom_event":{"schema":{"activated":{"type":"TypeBool","optional":true,"default":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"eventgrid_topic_id":{"type":"TypeString","required":true,"forceNew":true},"events":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"pipeline":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"subject_begins_with":{"type":"TypeString","optional":true},"subject_ends_with":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_trigger_schedule":{"schema":{"activated":{"type":"TypeBool","optional":true,"default":true},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"end_time":{"type":"TypeString","optional":true},"frequency":{"type":"TypeString","optional":true,"default":"Minute"},"interval":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"pipeline":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"pipeline_name":{"type":"TypeString","optional":true,"computed":true},"pipeline_parameters":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_month":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}},"days_of_week":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":7},"hours":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}},"minutes":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}},"monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"week":{"type":"TypeInt","optional":true},"weekday":{"type":"TypeString","required":true}}},"minItems":1}}},"maxItems":1,"minItems":1},"start_time":{"type":"TypeString","optional":true,"computed":true},"time_zone":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_trigger_tumbling_window":{"schema":{"activated":{"type":"TypeBool","optional":true,"default":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"delay":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"end_time":{"type":"TypeString","optional":true},"frequency":{"type":"TypeString","required":true,"forceNew":true},"interval":{"type":"TypeInt","required":true,"forceNew":true},"max_concurrency":{"type":"TypeInt","optional":true,"default":50},"name":{"type":"TypeString","required":true,"forceNew":true},"pipeline":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retry":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeInt","optional":true,"default":30}}},"maxItems":1},"start_time":{"type":"TypeString","required":true,"forceNew":true},"trigger_dependency":{"type":"TypeSet","optional":true,"elem":{"schema":{"offset":{"type":"TypeString","optional":true},"size":{"type":"TypeString","optional":true},"trigger_name":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_backup_instance_blob_storage":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_container_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_backup_instance_disk":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"disk_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"snapshot_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_backup_instance_kubernetes_cluster":{"schema":{"backup_datasource_parameters":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cluster_scoped_resources_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"excluded_namespaces":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"excluded_resource_types":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"included_namespaces":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"included_resource_types":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"label_selectors":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_snapshot_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"backup_policy_id":{"type":"TypeString","required":true,"forceNew":true},"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"snapshot_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_instance_postgresql":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"database_credential_key_vault_secret_id":{"type":"TypeString","optional":true},"database_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_backup_instance_postgresql_flexible_server":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_data_protection_backup_policy_blob_storage":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"operational_default_retention_duration":{"type":"TypeString","optional":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeInt"},"minItems":1},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_default_retention_duration":{"type":"TypeString","optional":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_disk":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_duration":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"duration":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_kubernetes_cluster":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_rule":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_mysql_flexible_server":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_rule":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_postgresql":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_duration":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"duration":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_postgresql_flexible_server":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_rule":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_vault":{"schema":{"cross_region_restore_enabled":{"type":"TypeBool","optional":true},"datastore_type":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"redundancy":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_duration_in_days":{"type":"TypeFloat","optional":true,"default":14},"soft_delete":{"type":"TypeString","optional":true,"default":"On"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_resource_guard":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vault_critical_operation_exclusion_list":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_share":{"schema":{"account_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"snapshot_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"recurrence":{"type":"TypeString","required":true},"start_time":{"type":"TypeString","required":true}}},"maxItems":1},"terms":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_share_account":{"schema":{"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_share_dataset_blob_storage":{"schema":{"container_name":{"type":"TypeString","required":true,"forceNew":true},"data_share_id":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","optional":true,"forceNew":true},"folder_path":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_share_dataset_data_lake_gen2":{"schema":{"display_name":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","optional":true,"forceNew":true},"file_system_name":{"type":"TypeString","required":true,"forceNew":true},"folder_path":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"share_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_share_dataset_kusto_cluster":{"schema":{"display_name":{"type":"TypeString","computed":true},"kusto_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"kusto_cluster_location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"share_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_share_dataset_kusto_database":{"schema":{"display_name":{"type":"TypeString","computed":true},"kusto_cluster_location":{"type":"TypeString","computed":true},"kusto_database_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"share_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_database_migration_project":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_name":{"type":"TypeString","required":true,"forceNew":true},"source_platform":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_platform":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_database_migration_service":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databox_edge_device":{"schema":{"device_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"configured_role_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"culture":{"type":"TypeString","computed":true},"hcs_version":{"type":"TypeString","computed":true},"model":{"type":"TypeString","computed":true},"node_count":{"type":"TypeInt","computed":true},"serial_number":{"type":"TypeString","computed":true},"software_version":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_access_connector":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_virtual_network_peering":{"schema":{"address_space_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allow_forwarded_traffic":{"type":"TypeBool","optional":true,"default":false},"allow_gateway_transit":{"type":"TypeBool","optional":true,"default":false},"allow_virtual_network_access":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"remote_address_space_prefixes":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"remote_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"use_remote_gateways":{"type":"TypeBool","optional":true,"default":false},"virtual_network_id":{"type":"TypeString","computed":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_workspace":{"schema":{"access_connector_id":{"type":"TypeString","optional":true},"custom_parameters":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"machine_learning_workspace_id":{"type":"TypeString","optional":true,"forceNew":true},"nat_gateway_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"no_public_ip":{"type":"TypeBool","optional":true,"default":true},"private_subnet_name":{"type":"TypeString","optional":true,"forceNew":true},"private_subnet_network_security_group_association_id":{"type":"TypeString","optional":true},"public_ip_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"public_subnet_name":{"type":"TypeString","optional":true,"forceNew":true},"public_subnet_network_security_group_association_id":{"type":"TypeString","optional":true},"storage_account_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"storage_account_sku_name":{"type":"TypeString","optional":true,"computed":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vnet_address_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}}},"maxItems":1},"customer_managed_key_enabled":{"type":"TypeBool","optional":true,"default":false},"default_storage_firewall_enabled":{"type":"TypeBool","optional":true},"disk_encryption_set_id":{"type":"TypeString","computed":true},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"load_balancer_backend_address_pool_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_disk_cmk_key_vault_id":{"type":"TypeString","optional":true},"managed_disk_cmk_key_vault_key_id":{"type":"TypeString","optional":true},"managed_disk_cmk_rotation_to_latest_version_enabled":{"type":"TypeBool","optional":true},"managed_disk_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"managed_resource_group_id":{"type":"TypeString","computed":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managed_services_cmk_key_vault_id":{"type":"TypeString","optional":true},"managed_services_cmk_key_vault_key_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_rules_required":{"type":"TypeString","optional":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"storage_account_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true},"workspace_url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_workspace_customer_managed_key":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_workspace_root_dbfs_customer_managed_key":{"schema":{"key_vault_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_datadog_monitor":{"schema":{"datadog_organization":{"type":"TypeList","required":true,"elem":{"schema":{"api_key":{"type":"TypeString","required":true,"forceNew":true},"application_key":{"type":"TypeString","required":true,"forceNew":true},"enterprise_app_id":{"type":"TypeString","optional":true,"forceNew":true},"id":{"type":"TypeString","computed":true},"linking_auth_code":{"type":"TypeString","optional":true,"forceNew":true},"linking_client_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","computed":true},"redirect_uri":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"marketplace_subscription_status":{"type":"TypeString","computed":true},"monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user":{"type":"TypeList","required":true,"elem":{"schema":{"email":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"phone_number":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_datadog_monitor_sso_configuration":{"schema":{"datadog_monitor_id":{"type":"TypeString","required":true,"forceNew":true},"enterprise_application_id":{"type":"TypeString","required":true},"login_url":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"default":"default"},"single_sign_on_enabled":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_datadog_monitor_tag_rule":{"schema":{"datadog_monitor_id":{"type":"TypeString","required":true,"forceNew":true},"log":{"type":"TypeList","optional":true,"elem":{"schema":{"aad_log_enabled":{"type":"TypeBool","optional":true},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"resource_log_enabled":{"type":"TypeBool","optional":true},"subscription_log_enabled":{"type":"TypeBool","optional":true}}}},"metric":{"type":"TypeList","optional":true,"elem":{"schema":{"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}}},"name":{"type":"TypeString","optional":true,"default":"default"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dedicated_hardware_security_module":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"management_network_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"network_interface_private_ip_addresses":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"network_interface_private_ip_addresses":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"stamp_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dedicated_host":{"schema":{"auto_replace_on_failure":{"type":"TypeBool","optional":true,"default":true},"dedicated_host_group_id":{"type":"TypeString","required":true,"forceNew":true},"license_type":{"type":"TypeString","optional":true,"default":"None"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform_fault_domain":{"type":"TypeInt","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dedicated_host_group":{"schema":{"automatic_placement_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform_fault_domain_count":{"type":"TypeInt","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center":{"schema":{"dev_center_uri":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_attached_network":{"schema":{"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_connection_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_dev_center_catalog":{"schema":{"catalog_adogit":{"type":"TypeList","optional":true,"elem":{"schema":{"branch":{"type":"TypeString","required":true},"key_vault_key_url":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"catalog_github":{"type":"TypeList","optional":true,"elem":{"schema":{"branch":{"type":"TypeString","required":true},"key_vault_key_url":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_dev_box_definition":{"schema":{"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"image_reference_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_environment_type":{"schema":{"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_gallery":{"schema":{"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"shared_gallery_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_dev_center_network_connection":{"schema":{"domain_join_type":{"type":"TypeString","required":true,"forceNew":true},"domain_name":{"type":"TypeString","optional":true},"domain_password":{"type":"TypeString","optional":true},"domain_username":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"organization_unit":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_project":{"schema":{"description":{"type":"TypeString","optional":true,"forceNew":true},"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"dev_center_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_dev_boxes_per_user":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_project_environment_type":{"schema":{"creator_role_assignment_roles":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"deployment_target_id":{"type":"TypeString","required":true},"dev_center_project_id":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_role_assignment":{"type":"TypeSet","optional":true,"elem":{"schema":{"roles":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"user_id":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_global_vm_shutdown_schedule":{"schema":{"daily_recurrence_time":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"notification_settings":{"type":"TypeList","required":true,"elem":{"schema":{"email":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"time_in_minutes":{"type":"TypeInt","optional":true,"default":30},"webhook_url":{"type":"TypeString","optional":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timezone":{"type":"TypeString","required":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_lab":{"schema":{"artifacts_storage_account_id":{"type":"TypeString","computed":true},"default_premium_storage_account_id":{"type":"TypeString","computed":true},"default_storage_account_id":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"premium_data_disk_storage_account_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_linux_virtual_machine":{"schema":{"allow_claim":{"type":"TypeBool","optional":true,"default":true},"disallow_public_ip_address":{"type":"TypeBool","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"gallery_image_reference":{"type":"TypeList","required":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"inbound_nat_rule":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","required":true,"forceNew":true},"frontend_port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","required":true}}}},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"lab_subnet_name":{"type":"TypeString","required":true,"forceNew":true},"lab_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true},"password":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"size":{"type":"TypeString","required":true,"forceNew":true},"ssh_key":{"type":"TypeString","optional":true,"forceNew":true},"storage_type":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true},"username":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_policy":{"schema":{"description":{"type":"TypeString","optional":true},"evaluator_type":{"type":"TypeString","required":true,"forceNew":true},"fact_data":{"type":"TypeString","optional":true},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_set_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threshold":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_schedule":{"schema":{"daily_recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"time":{"type":"TypeString","required":true}}},"maxItems":1},"hourly_recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"minute":{"type":"TypeInt","required":true}}},"maxItems":1},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification_settings":{"type":"TypeList","required":true,"elem":{"schema":{"status":{"type":"TypeString","optional":true,"default":"Disabled"},"time_in_minutes":{"type":"TypeInt","optional":true},"webhook_url":{"type":"TypeString","optional":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Disabled"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"task_type":{"type":"TypeString","required":true},"time_zone_id":{"type":"TypeString","required":true},"weekly_recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"time":{"type":"TypeString","required":true},"week_days":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_virtual_network":{"schema":{"description":{"type":"TypeString","optional":true},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"shared_public_ip_address":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_ports":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","optional":true},"transport_protocol":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"use_in_virtual_machine_creation":{"type":"TypeString","optional":true,"default":"Allow"},"use_public_ip_address":{"type":"TypeString","optional":true,"default":"Allow"}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_windows_virtual_machine":{"schema":{"allow_claim":{"type":"TypeBool","optional":true,"default":true},"disallow_public_ip_address":{"type":"TypeBool","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"gallery_image_reference":{"type":"TypeList","required":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"inbound_nat_rule":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","required":true,"forceNew":true},"frontend_port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","required":true}}}},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"lab_subnet_name":{"type":"TypeString","required":true,"forceNew":true},"lab_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true},"password":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"size":{"type":"TypeString","required":true,"forceNew":true},"storage_type":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true},"username":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_endpoint_eventgrid":{"schema":{"dead_letter_storage_secret":{"type":"TypeString","optional":true},"digital_twins_id":{"type":"TypeString","required":true,"forceNew":true},"eventgrid_topic_endpoint":{"type":"TypeString","required":true},"eventgrid_topic_primary_access_key":{"type":"TypeString","required":true},"eventgrid_topic_secondary_access_key":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_endpoint_eventhub":{"schema":{"dead_letter_storage_secret":{"type":"TypeString","optional":true},"digital_twins_id":{"type":"TypeString","required":true,"forceNew":true},"eventhub_primary_connection_string":{"type":"TypeString","required":true},"eventhub_secondary_connection_string":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_endpoint_servicebus":{"schema":{"dead_letter_storage_secret":{"type":"TypeString","optional":true},"digital_twins_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"servicebus_primary_connection_string":{"type":"TypeString","required":true},"servicebus_secondary_connection_string":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_instance":{"schema":{"host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_time_series_database_connection":{"schema":{"digital_twins_id":{"type":"TypeString","required":true,"forceNew":true},"eventhub_consumer_group_name":{"type":"TypeString","optional":true,"default":"$Default","forceNew":true},"eventhub_name":{"type":"TypeString","required":true,"forceNew":true},"eventhub_namespace_endpoint_uri":{"type":"TypeString","required":true,"forceNew":true},"eventhub_namespace_id":{"type":"TypeString","required":true,"forceNew":true},"kusto_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"kusto_cluster_uri":{"type":"TypeString","required":true,"forceNew":true},"kusto_database_name":{"type":"TypeString","required":true,"forceNew":true},"kusto_table_name":{"type":"TypeString","optional":true,"default":"AdtPropertyEvents","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_disk_access":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_disk_encryption_set":{"schema":{"auto_key_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"encryption_type":{"type":"TypeString","optional":true,"default":"EncryptionAtRestWithCustomerKey","forceNew":true},"federated_client_id":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_key_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_hsm_key_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_dns_a_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","optional":true},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_aaaa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","optional":true},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_caa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"flags":{"type":"TypeInt","required":true},"tag":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_cname_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","optional":true},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_mx_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"default":"@","forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"exchange":{"type":"TypeString","required":true},"preference":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_ns_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_ptr_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_srv_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"priority":{"type":"TypeInt","required":true},"target":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_txt_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"value":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_zone":{"schema":{"max_number_of_record_sets":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"name_servers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"number_of_record_sets":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"soa_record":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email":{"type":"TypeString","required":true},"expire_time":{"type":"TypeInt","optional":true,"default":2419200},"fqdn":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"minimum_ttl":{"type":"TypeInt","optional":true,"default":300},"refresh_time":{"type":"TypeInt","optional":true,"default":3600},"retry_time":{"type":"TypeInt","optional":true,"default":300},"serial_number":{"type":"TypeInt","optional":true,"default":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","optional":true,"default":3600}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_elastic_cloud_elasticsearch":{"schema":{"elastic_cloud_deployment_id":{"type":"TypeString","computed":true},"elastic_cloud_email_address":{"type":"TypeString","required":true,"forceNew":true},"elastic_cloud_sso_default_url":{"type":"TypeString","computed":true},"elastic_cloud_user_id":{"type":"TypeString","computed":true},"elasticsearch_service_url":{"type":"TypeString","computed":true},"kibana_service_url":{"type":"TypeString","computed":true},"kibana_sso_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"filtering_tag":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"send_activity_logs":{"type":"TypeBool","optional":true,"default":false},"send_azuread_logs":{"type":"TypeBool","optional":true,"default":false},"send_subscription_logs":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"monitoring_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_elastic_san":{"schema":{"base_size_in_tib":{"type":"TypeInt","required":true},"extended_size_in_tib":{"type":"TypeInt","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"tier":{"type":"TypeString","optional":true,"default":"Premium"}}},"maxItems":1,"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"total_iops":{"type":"TypeInt","computed":true},"total_mbps":{"type":"TypeInt","computed":true},"total_size_in_tib":{"type":"TypeInt","computed":true},"total_volume_size_in_gib":{"type":"TypeInt","computed":true},"volume_group_count":{"type":"TypeInt","computed":true},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_elastic_san_volume":{"schema":{"create_source":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"source_id":{"type":"TypeString","required":true,"forceNew":true},"source_type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"size_in_gib":{"type":"TypeInt","required":true},"target_iqn":{"type":"TypeString","computed":true},"target_portal_hostname":{"type":"TypeString","computed":true},"target_portal_port":{"type":"TypeInt","computed":true},"volume_group_id":{"type":"TypeString","required":true,"forceNew":true},"volume_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_elastic_san_volume_group":{"schema":{"elastic_san_id":{"type":"TypeString","required":true,"forceNew":true},"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"current_versioned_key_expiration_timestamp":{"type":"TypeString","computed":true},"current_versioned_key_id":{"type":"TypeString","computed":true},"key_vault_key_id":{"type":"TypeString","required":true},"last_key_rotation_timestamp":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"encryption_type":{"type":"TypeString","optional":true,"default":"EncryptionAtRestWithPlatformKey"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"subnet_id":{"type":"TypeString","required":true}}},"minItems":1},"protocol_type":{"type":"TypeString","optional":true,"default":"Iscsi"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_email_communication_service":{"schema":{"data_location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_email_communication_service_domain":{"schema":{"domain_management":{"type":"TypeString","required":true,"forceNew":true},"email_service_id":{"type":"TypeString","required":true,"forceNew":true},"from_sender_domain":{"type":"TypeString","computed":true},"mail_from_sender_domain":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_engagement_tracking_enabled":{"type":"TypeBool","optional":true},"verification_records":{"type":"TypeList","computed":true,"elem":{"schema":{"dkim":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"dkim2":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"dmarc":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"domain":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"spf":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_domain":{"schema":{"auto_create_topic_with_first_subscription":{"type":"TypeBool","optional":true,"default":true},"auto_delete_topic_with_last_subscription":{"type":"TypeBool","optional":true,"default":true},"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"inbound_ip_rule":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true}}},"maxItems":128},"input_mapping_default_values":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_version":{"type":"TypeString","optional":true,"forceNew":true},"event_type":{"type":"TypeString","optional":true,"forceNew":true},"subject":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"input_mapping_fields":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_version":{"type":"TypeString","optional":true,"forceNew":true},"event_time":{"type":"TypeString","optional":true,"forceNew":true},"event_type":{"type":"TypeString","optional":true,"forceNew":true},"id":{"type":"TypeString","optional":true,"forceNew":true},"subject":{"type":"TypeString","optional":true,"forceNew":true},"topic":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"input_schema":{"type":"TypeString","optional":true,"default":"EventGridSchema","forceNew":true},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_domain_topic":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_eventgrid_event_subscription":{"schema":{"advanced_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"bool_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeBool","required":true}}}},"is_not_null":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true}}}},"is_null_or_undefined":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true}}}},"number_greater_than":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_greater_than_or_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeFloat"},"maxItems":25}}}},"number_in_range":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeList","elem":{"type":"TypeFloat"},"maxItems":2,"minItems":2},"maxItems":25}}}},"number_less_than":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_less_than_or_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_not_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeFloat"},"maxItems":25}}}},"number_not_in_range":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeList","elem":{"type":"TypeFloat"},"maxItems":2,"minItems":2},"maxItems":25}}}},"string_begins_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_contains":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_ends_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_begins_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_contains":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_ends_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}}}},"maxItems":1},"advanced_filtering_on_arrays_enabled":{"type":"TypeBool","optional":true,"default":false},"azure_function_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"function_id":{"type":"TypeString","required":true},"max_events_per_batch":{"type":"TypeInt","optional":true},"preferred_batch_size_in_kilobytes":{"type":"TypeInt","optional":true}}},"maxItems":1},"dead_letter_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true},"user_assigned_identity":{"type":"TypeString","optional":true}}},"maxItems":1},"delivery_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true},"user_assigned_identity":{"type":"TypeString","optional":true}}},"maxItems":1},"delivery_property":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"secret":{"type":"TypeBool","optional":true},"source_field":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"event_delivery_schema":{"type":"TypeString","optional":true,"default":"EventGridSchema","forceNew":true},"eventhub_endpoint_id":{"type":"TypeString","optional":true,"computed":true},"expiration_time_utc":{"type":"TypeString","optional":true},"hybrid_connection_endpoint_id":{"type":"TypeString","optional":true,"computed":true},"included_event_types":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"labels":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"retry_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"event_time_to_live":{"type":"TypeInt","required":true},"max_delivery_attempts":{"type":"TypeInt","required":true}}},"maxItems":1},"scope":{"type":"TypeString","required":true,"forceNew":true},"service_bus_queue_endpoint_id":{"type":"TypeString","optional":true},"service_bus_topic_endpoint_id":{"type":"TypeString","optional":true},"storage_blob_dead_letter_destination":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_id":{"type":"TypeString","required":true},"storage_blob_container_name":{"type":"TypeString","required":true}}},"maxItems":1},"storage_queue_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"queue_message_time_to_live_in_seconds":{"type":"TypeInt","optional":true},"queue_name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}},"maxItems":1},"subject_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"case_sensitive":{"type":"TypeBool","optional":true},"subject_begins_with":{"type":"TypeString","optional":true},"subject_ends_with":{"type":"TypeString","optional":true}}},"maxItems":1},"webhook_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_app_id_or_uri":{"type":"TypeString","optional":true},"active_directory_tenant_id":{"type":"TypeString","optional":true},"base_url":{"type":"TypeString","computed":true},"max_events_per_batch":{"type":"TypeInt","optional":true},"preferred_batch_size_in_kilobytes":{"type":"TypeInt","optional":true},"url":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_system_topic":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"metric_arm_resource_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_arm_resource_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"topic_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_system_topic_event_subscription":{"schema":{"advanced_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"bool_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeBool","required":true}}}},"is_not_null":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true}}}},"is_null_or_undefined":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true}}}},"number_greater_than":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_greater_than_or_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeFloat"},"maxItems":25}}}},"number_in_range":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeList","elem":{"type":"TypeFloat"},"maxItems":2,"minItems":2},"maxItems":25}}}},"number_less_than":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_less_than_or_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_not_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeFloat"},"maxItems":25}}}},"number_not_in_range":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeList","elem":{"type":"TypeFloat"},"maxItems":2,"minItems":2},"maxItems":25}}}},"string_begins_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_contains":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_ends_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_begins_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_contains":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_ends_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}}}},"maxItems":1},"advanced_filtering_on_arrays_enabled":{"type":"TypeBool","optional":true,"default":false},"azure_function_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"function_id":{"type":"TypeString","required":true},"max_events_per_batch":{"type":"TypeInt","optional":true},"preferred_batch_size_in_kilobytes":{"type":"TypeInt","optional":true}}},"maxItems":1},"dead_letter_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true},"user_assigned_identity":{"type":"TypeString","optional":true}}},"maxItems":1},"delivery_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true},"user_assigned_identity":{"type":"TypeString","optional":true}}},"maxItems":1},"delivery_property":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"secret":{"type":"TypeBool","optional":true},"source_field":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"event_delivery_schema":{"type":"TypeString","optional":true,"default":"EventGridSchema","forceNew":true},"eventhub_endpoint_id":{"type":"TypeString","optional":true,"computed":true},"expiration_time_utc":{"type":"TypeString","optional":true},"hybrid_connection_endpoint_id":{"type":"TypeString","optional":true,"computed":true},"included_event_types":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"labels":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retry_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"event_time_to_live":{"type":"TypeInt","required":true},"max_delivery_attempts":{"type":"TypeInt","required":true}}},"maxItems":1},"service_bus_queue_endpoint_id":{"type":"TypeString","optional":true},"service_bus_topic_endpoint_id":{"type":"TypeString","optional":true},"storage_blob_dead_letter_destination":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_id":{"type":"TypeString","required":true},"storage_blob_container_name":{"type":"TypeString","required":true}}},"maxItems":1},"storage_queue_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"queue_message_time_to_live_in_seconds":{"type":"TypeInt","optional":true},"queue_name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}},"maxItems":1},"subject_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"case_sensitive":{"type":"TypeBool","optional":true},"subject_begins_with":{"type":"TypeString","optional":true},"subject_ends_with":{"type":"TypeString","optional":true}}},"maxItems":1},"system_topic":{"type":"TypeString","required":true,"forceNew":true},"webhook_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_app_id_or_uri":{"type":"TypeString","optional":true},"active_directory_tenant_id":{"type":"TypeString","optional":true},"base_url":{"type":"TypeString","computed":true},"max_events_per_batch":{"type":"TypeInt","optional":true},"preferred_batch_size_in_kilobytes":{"type":"TypeInt","optional":true},"url":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_topic":{"schema":{"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"inbound_ip_rule":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true}}},"maxItems":128},"input_mapping_default_values":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_version":{"type":"TypeString","optional":true,"forceNew":true},"event_type":{"type":"TypeString","optional":true,"forceNew":true},"subject":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"input_mapping_fields":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_version":{"type":"TypeString","optional":true,"forceNew":true},"event_time":{"type":"TypeString","optional":true,"forceNew":true},"event_type":{"type":"TypeString","optional":true,"forceNew":true},"id":{"type":"TypeString","optional":true,"forceNew":true},"subject":{"type":"TypeString","optional":true,"forceNew":true},"topic":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"input_schema":{"type":"TypeString","optional":true,"default":"EventGridSchema","forceNew":true},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub":{"schema":{"capture_description":{"type":"TypeList","optional":true,"elem":{"schema":{"destination":{"type":"TypeList","required":true,"elem":{"schema":{"archive_name_format":{"type":"TypeString","required":true},"blob_container_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}},"maxItems":1},"enabled":{"type":"TypeBool","required":true},"encoding":{"type":"TypeString","required":true},"interval_in_seconds":{"type":"TypeInt","optional":true,"default":300},"size_limit_in_bytes":{"type":"TypeInt","optional":true,"default":314572800},"skip_empty_archives":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"message_retention":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"partition_count":{"type":"TypeInt","required":true},"partition_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Active"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_authorization_rule":{"schema":{"eventhub_name":{"type":"TypeString","required":true,"forceNew":true},"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_cluster":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":300,"update":30}},"azurerm_eventhub_consumer_group":{"schema":{"eventhub_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"user_metadata":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace":{"schema":{"auto_inflate_enabled":{"type":"TypeBool","optional":true,"default":false},"capacity":{"type":"TypeInt","optional":true,"default":1},"dedicated_cluster_id":{"type":"TypeString","optional":true,"forceNew":true},"default_primary_connection_string":{"type":"TypeString","computed":true},"default_primary_connection_string_alias":{"type":"TypeString","computed":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_connection_string":{"type":"TypeString","computed":true},"default_secondary_connection_string_alias":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_throughput_units":{"type":"TypeInt","optional":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rulesets":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"default_action":{"type":"TypeString","required":true},"ip_rule":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true}}},"maxItems":128},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"trusted_service_access_enabled":{"type":"TypeBool","optional":true},"virtual_network_rule":{"type":"TypeSet","configMode":"Auto","optional":true,"elem":{"schema":{"ignore_missing_virtual_network_service_endpoint":{"type":"TypeBool","optional":true},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":128}}},"maxItems":1},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace_customer_managed_key":{"schema":{"eventhub_namespace_id":{"type":"TypeString","required":true,"forceNew":true},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"key_vault_key_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"user_assigned_identity_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace_disaster_recovery_config":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"partner_namespace_id":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace_schema_group":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_id":{"type":"TypeString","required":true,"forceNew":true},"schema_compatibility":{"type":"TypeString","required":true,"forceNew":true},"schema_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_express_route_circuit":{"schema":{"allow_classic_operations":{"type":"TypeBool","optional":true,"default":false},"authorization_key":{"type":"TypeString","optional":true},"bandwidth_in_gbps":{"type":"TypeFloat","optional":true},"bandwidth_in_mbps":{"type":"TypeInt","optional":true},"express_route_port_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"peering_location":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_key":{"type":"TypeString","computed":true},"service_provider_name":{"type":"TypeString","optional":true,"forceNew":true},"service_provider_provisioning_state":{"type":"TypeString","computed":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"family":{"type":"TypeString","required":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_circuit_authorization":{"schema":{"authorization_key":{"type":"TypeString","computed":true},"authorization_use_status":{"type":"TypeString","computed":true},"express_route_circuit_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_express_route_circuit_connection":{"schema":{"address_prefix_ipv4":{"type":"TypeString","required":true,"forceNew":true},"address_prefix_ipv6":{"type":"TypeString","optional":true},"authorization_key":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"peer_peering_id":{"type":"TypeString","required":true,"forceNew":true},"peering_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_circuit_peering":{"schema":{"azure_asn":{"type":"TypeInt","computed":true},"express_route_circuit_name":{"type":"TypeString","required":true,"forceNew":true},"gateway_manager_etag":{"type":"TypeString","computed":true},"ipv4_enabled":{"type":"TypeBool","optional":true,"default":true},"ipv6":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"microsoft_peering":{"type":"TypeList","optional":true,"elem":{"schema":{"advertised_communities":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"advertised_public_prefixes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"customer_asn":{"type":"TypeInt","optional":true,"default":0},"routing_registry_name":{"type":"TypeString","optional":true,"default":"NONE"}}},"maxItems":1},"primary_peer_address_prefix":{"type":"TypeString","required":true},"route_filter_id":{"type":"TypeString","optional":true},"secondary_peer_address_prefix":{"type":"TypeString","required":true}}},"maxItems":1},"microsoft_peering_config":{"type":"TypeList","optional":true,"elem":{"schema":{"advertised_communities":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"advertised_public_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"customer_asn":{"type":"TypeInt","optional":true,"default":0},"routing_registry_name":{"type":"TypeString","optional":true,"default":"NONE"}}},"maxItems":1},"peer_asn":{"type":"TypeInt","optional":true,"computed":true},"peering_type":{"type":"TypeString","required":true},"primary_azure_port":{"type":"TypeString","computed":true},"primary_peer_address_prefix":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route_filter_id":{"type":"TypeString","optional":true},"secondary_azure_port":{"type":"TypeString","computed":true},"secondary_peer_address_prefix":{"type":"TypeString","optional":true},"shared_key":{"type":"TypeString","optional":true},"vlan_id":{"type":"TypeInt","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_connection":{"schema":{"authorization_key":{"type":"TypeString","optional":true},"enable_internet_security":{"type":"TypeBool","optional":true},"express_route_circuit_peering_id":{"type":"TypeString","required":true,"forceNew":true},"express_route_gateway_bypass_enabled":{"type":"TypeBool","optional":true,"default":false},"express_route_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_link_fast_path_enabled":{"type":"TypeBool","optional":true},"routing":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"associated_route_table_id":{"type":"TypeString","optional":true,"computed":true},"inbound_route_map_id":{"type":"TypeString","optional":true},"outbound_route_map_id":{"type":"TypeString","optional":true},"propagated_route_table":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"labels":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"route_table_ids":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"routing_weight":{"type":"TypeInt","optional":true,"default":0}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_gateway":{"schema":{"allow_non_virtual_wan_traffic":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scale_units":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_express_route_port":{"schema":{"bandwidth_in_gbps":{"type":"TypeInt","required":true,"forceNew":true},"billing_type":{"type":"TypeString","optional":true,"default":"MeteredData"},"encapsulation":{"type":"TypeString","required":true,"forceNew":true},"ethertype":{"type":"TypeString","computed":true},"guid":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"link1":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"admin_enabled":{"type":"TypeBool","optional":true,"default":false},"connector_type":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"interface_name":{"type":"TypeString","computed":true},"macsec_cak_keyvault_secret_id":{"type":"TypeString","optional":true},"macsec_cipher":{"type":"TypeString","optional":true,"default":"GcmAes128"},"macsec_ckn_keyvault_secret_id":{"type":"TypeString","optional":true},"macsec_sci_enabled":{"type":"TypeBool","optional":true,"default":false},"patch_panel_id":{"type":"TypeString","computed":true},"rack_id":{"type":"TypeString","computed":true},"router_name":{"type":"TypeString","computed":true}}},"maxItems":1,"minItems":1},"link2":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"admin_enabled":{"type":"TypeBool","optional":true,"default":false},"connector_type":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"interface_name":{"type":"TypeString","computed":true},"macsec_cak_keyvault_secret_id":{"type":"TypeString","optional":true},"macsec_cipher":{"type":"TypeString","optional":true,"default":"GcmAes128"},"macsec_ckn_keyvault_secret_id":{"type":"TypeString","optional":true},"macsec_sci_enabled":{"type":"TypeBool","optional":true,"default":false},"patch_panel_id":{"type":"TypeString","computed":true},"rack_id":{"type":"TypeString","computed":true},"router_name":{"type":"TypeString","computed":true}}},"maxItems":1,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"mtu":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"peering_location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_port_authorization":{"schema":{"authorization_key":{"type":"TypeString","computed":true},"authorization_use_status":{"type":"TypeString","computed":true},"express_route_port_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_extended_custom_location":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","optional":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"cluster_extension_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","optional":true,"forceNew":true},"host_resource_id":{"type":"TypeString","required":true,"forceNew":true},"host_type":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_federated_identity_credential":{"schema":{"audience":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":1},"issuer":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parent_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subject":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall":{"schema":{"dns_proxy_enabled":{"type":"TypeBool","optional":true,"computed":true},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"firewall_policy_id":{"type":"TypeString","optional":true},"ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"private_ip_address":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"management_ip_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"private_ip_address":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"sku_tier":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threat_intel_mode":{"type":"TypeString","optional":true,"computed":true},"virtual_hub":{"type":"TypeList","optional":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_count":{"type":"TypeInt","optional":true,"default":1},"virtual_hub_id":{"type":"TypeString","required":true}}},"maxItems":1},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_firewall_application_rule_collection":{"schema":{"action":{"type":"TypeString","required":true},"azure_firewall_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"fqdn_tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"type":{"type":"TypeString","required":true}}},"minItems":1},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"target_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall_nat_rule_collection":{"schema":{"action":{"type":"TypeString","required":true},"azure_firewall_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"destination_ports":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"translated_address":{"type":"TypeString","required":true},"translated_port":{"type":"TypeString","required":true}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall_network_rule_collection":{"schema":{"action":{"type":"TypeString","required":true},"azure_firewall_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_ports":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall_policy":{"schema":{"auto_learn_private_ranges_enabled":{"type":"TypeBool","optional":true},"base_policy_id":{"type":"TypeString","optional":true},"child_policies":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns":{"type":"TypeList","optional":true,"elem":{"schema":{"proxy_enabled":{"type":"TypeBool","optional":true,"default":false},"servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"explicit_proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"enable_pac_file":{"type":"TypeBool","optional":true},"enabled":{"type":"TypeBool","optional":true},"http_port":{"type":"TypeInt","optional":true},"https_port":{"type":"TypeInt","optional":true},"pac_file":{"type":"TypeString","optional":true},"pac_file_port":{"type":"TypeInt","optional":true}}},"maxItems":1},"firewalls":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"insights":{"type":"TypeList","optional":true,"elem":{"schema":{"default_log_analytics_workspace_id":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","required":true},"log_analytics_workspace":{"type":"TypeList","optional":true,"elem":{"schema":{"firewall_location":{"type":"TypeString","required":true},"id":{"type":"TypeString","required":true}}}},"retention_in_days":{"type":"TypeInt","optional":true}}},"maxItems":1},"intrusion_detection":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","optional":true},"private_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"signature_overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"state":{"type":"TypeString","optional":true}}}},"traffic_bypass":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_ip_groups":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_ports":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true},"source_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule_collection_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"sql_redirect_allowed":{"type":"TypeBool","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threat_intelligence_allowlist":{"type":"TypeList","optional":true,"elem":{"schema":{"fqdns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"ip_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"threat_intelligence_mode":{"type":"TypeString","optional":true,"default":"Alert"},"tls_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_secret_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall_policy_rule_collection_group":{"schema":{"application_rule_collection":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_fqdn_tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"http_headers":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"type":{"type":"TypeString","required":true}}}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"terminate_tls":{"type":"TypeBool","optional":true},"web_categories":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}}},"minItems":1},"firewall_policy_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"nat_rule_collection":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_address":{"type":"TypeString","optional":true},"destination_ports":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"translated_address":{"type":"TypeString","optional":true},"translated_fqdn":{"type":"TypeString","optional":true},"translated_port":{"type":"TypeInt","required":true}}},"minItems":1}}},"minItems":1},"network_rule_collection":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_ports":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}}},"minItems":1},"priority":{"type":"TypeInt","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_fluid_relay_server":{"schema":{"customer_managed_key":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","required":true}}},"maxItems":1},"frs_tenant_id":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"orderer_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_key":{"type":"TypeString","computed":true},"service_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"storage_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"storage_sku":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_frontdoor":{"schema":{"backend_pool":{"type":"TypeList","required":true,"elem":{"schema":{"backend":{"type":"TypeList","required":true,"elem":{"schema":{"address":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"host_header":{"type":"TypeString","required":true},"http_port":{"type":"TypeInt","required":true},"https_port":{"type":"TypeInt","required":true},"priority":{"type":"TypeInt","optional":true,"default":1},"weight":{"type":"TypeInt","optional":true,"default":50}}},"maxItems":500},"health_probe_name":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"load_balancing_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"backend_pool_health_probe":{"type":"TypeList","required":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"id":{"type":"TypeString","computed":true},"interval_in_seconds":{"type":"TypeInt","optional":true,"default":120},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true,"default":"/"},"probe_method":{"type":"TypeString","optional":true,"default":"GET"},"protocol":{"type":"TypeString","optional":true,"default":"Http"}}},"maxItems":5000},"backend_pool_health_probes":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"backend_pool_load_balancing":{"type":"TypeList","required":true,"elem":{"schema":{"additional_latency_milliseconds":{"type":"TypeInt","optional":true,"default":0},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"sample_size":{"type":"TypeInt","optional":true,"default":4},"successful_samples_required":{"type":"TypeInt","optional":true,"default":2}}},"maxItems":5000},"backend_pool_load_balancing_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"backend_pool_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_pools_send_receive_timeout_seconds":{"type":"TypeInt","optional":true,"default":60},"enforce_backend_pools_certificate_name_check":{"type":"TypeBool","required":true}}}},"backend_pools":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"cname":{"type":"TypeString","computed":true},"explicit_resource_order":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_pool_health_probe_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"backend_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"backend_pool_load_balancing_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"frontend_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"routing_rule_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"friendly_name":{"type":"TypeString","optional":true},"frontend_endpoint":{"type":"TypeList","required":true,"elem":{"schema":{"host_name":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"session_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"session_affinity_ttl_seconds":{"type":"TypeInt","optional":true,"default":0},"web_application_firewall_policy_link_id":{"type":"TypeString","optional":true}}},"maxItems":500},"frontend_endpoints":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"header_frontdoor_id":{"type":"TypeString","computed":true},"load_balancer_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_rule":{"type":"TypeList","required":true,"elem":{"schema":{"accepted_protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":2},"enabled":{"type":"TypeBool","optional":true,"default":true},"forwarding_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_pool_name":{"type":"TypeString","required":true},"cache_duration":{"type":"TypeString","optional":true},"cache_enabled":{"type":"TypeBool","optional":true,"default":false},"cache_query_parameter_strip_directive":{"type":"TypeString","optional":true,"default":"StripAll"},"cache_query_parameters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"cache_use_dynamic_compression":{"type":"TypeBool","optional":true,"default":false},"custom_forwarding_path":{"type":"TypeString","optional":true},"forwarding_protocol":{"type":"TypeString","optional":true,"default":"HttpsOnly"}}},"maxItems":1},"frontend_endpoints":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":500},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"patterns_to_match":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25},"redirect_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_fragment":{"type":"TypeString","optional":true},"custom_host":{"type":"TypeString","optional":true},"custom_path":{"type":"TypeString","optional":true},"custom_query_string":{"type":"TypeString","optional":true},"redirect_protocol":{"type":"TypeString","required":true},"redirect_type":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":500},"routing_rules":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":360,"read":5,"delete":360,"update":360}},"azurerm_frontdoor_custom_https_configuration":{"schema":{"custom_https_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_key_vault_certificate_secret_name":{"type":"TypeString","optional":true},"azure_key_vault_certificate_secret_version":{"type":"TypeString","optional":true},"azure_key_vault_certificate_vault_id":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","optional":true,"default":"FrontDoor"},"minimum_tls_version":{"type":"TypeString","computed":true},"provisioning_state":{"type":"TypeString","computed":true},"provisioning_substate":{"type":"TypeString","computed":true}}},"maxItems":1},"custom_https_provisioning_enabled":{"type":"TypeBool","required":true},"frontend_endpoint_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":360,"read":5,"delete":360,"update":360}},"azurerm_frontdoor_firewall_policy":{"schema":{"custom_block_response_body":{"type":"TypeString","optional":true},"custom_block_response_status_code":{"type":"TypeInt","optional":true},"custom_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"match_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":600},"match_variable":{"type":"TypeString","required":true},"negation_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":5}}},"maxItems":10},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","optional":true,"default":1},"rate_limit_duration_in_minutes":{"type":"TypeInt","optional":true,"default":1},"rate_limit_threshold":{"type":"TypeInt","optional":true,"default":10},"type":{"type":"TypeString","required":true}}},"maxItems":100},"enabled":{"type":"TypeBool","optional":true,"default":true},"frontend_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"managed_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"override":{"type":"TypeList","optional":true,"elem":{"schema":{"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":false},"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"rule_id":{"type":"TypeString","required":true}}},"maxItems":1000},"rule_group_name":{"type":"TypeString","required":true}}},"maxItems":100},"type":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":100},"mode":{"type":"TypeString","optional":true,"default":"Prevention"},"name":{"type":"TypeString","required":true,"forceNew":true},"redirect_url":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_frontdoor_rules_engine":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"frontdoor_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"request_header":{"type":"TypeList","optional":true,"elem":{"schema":{"header_action_type":{"type":"TypeString","optional":true},"header_name":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}},"maxItems":100},"response_header":{"type":"TypeList","optional":true,"elem":{"schema":{"header_action_type":{"type":"TypeString","optional":true},"header_name":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}},"maxItems":100}}},"maxItems":1},"match_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true},"transform":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":6},"value":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"variable":{"type":"TypeString","optional":true}}},"maxItems":100},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true}}},"maxItems":100}},"timeouts":{"create":360,"read":5,"delete":360,"update":360}},"azurerm_function_app":{"schema":{"app_service_plan_id":{"type":"TypeString","required":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true}}},"maxItems":1},"additional_login_params":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true},"consumer_secret":{"type":"TypeString","required":true}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true}}},"maxItems":1},"client_cert_mode":{"type":"TypeString","optional":true},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true},"default_hostname":{"type":"TypeString","computed":true},"enable_builtin_logging":{"type":"TypeBool","optional":true,"default":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","optional":true,"default":"","forceNew":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":false},"app_scale_limit":{"type":"TypeInt","optional":true,"computed":true},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"computed":true},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"java_version":{"type":"TypeString","optional":true},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"default":false},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"source_control":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"branch":{"type":"TypeString","optional":true,"computed":true},"manual_integration":{"type":"TypeBool","optional":true,"computed":true},"repo_url":{"type":"TypeString","optional":true,"computed":true},"rollback_enabled":{"type":"TypeBool","optional":true,"computed":true},"use_mercurial":{"type":"TypeBool","optional":true,"computed":true}}},"maxItems":1},"storage_account_access_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"default":"~1"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_function_app_active_slot":{"schema":{"last_successful_swap":{"type":"TypeString","description":"The timestamp of the last successful swap with `Production`","computed":true},"overwrite_network_config":{"type":"TypeBool","optional":true,"default":true,"description":"The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`.","forceNew":true},"slot_id":{"type":"TypeString","required":true,"description":"The ID of the Slot to swap with `Production`."}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_function_app_connection":{"schema":{"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","optional":true},"secret":{"type":"TypeString","optional":true},"subscription_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"client_type":{"type":"TypeString","optional":true,"default":"none"},"function_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"secret_store":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"vnet_solution":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_function_app_function":{"schema":{"config_json":{"type":"TypeString","required":true,"description":"The config for this Function in JSON format."},"config_url":{"type":"TypeString","description":"The URL of the configuration JSON.","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this function be enabled. Defaults to `true`."},"file":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"content":{"type":"TypeString","required":true,"description":"The content of the file.","forceNew":true},"name":{"type":"TypeString","required":true,"description":"The filename of the file to be uploaded.","forceNew":true}}},"minItems":1},"function_app_id":{"type":"TypeString","required":true,"description":"The ID of the Function App in which this function should reside.","forceNew":true},"invocation_url":{"type":"TypeString","description":"The invocation URL.","computed":true},"language":{"type":"TypeString","optional":true,"description":"The language the Function is written in."},"name":{"type":"TypeString","required":true,"description":"The name of the function.","forceNew":true},"script_root_path_url":{"type":"TypeString","description":"The Script root path URL.","computed":true},"script_url":{"type":"TypeString","description":"The script URL.","computed":true},"secrets_file_url":{"type":"TypeString","description":"The URL for the Secrets File.","computed":true},"test_data":{"type":"TypeString","optional":true,"description":"The test data for the function."},"test_data_url":{"type":"TypeString","description":"The Test data URL.","computed":true},"url":{"type":"TypeString","description":"The function URL.","computed":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_function_app_hybrid_connection":{"schema":{"function_app_id":{"type":"TypeString","required":true,"description":"The ID of the Function App for this Hybrid Connection.","forceNew":true},"hostname":{"type":"TypeString","required":true,"description":"The hostname of the endpoint."},"namespace_name":{"type":"TypeString","description":"The name of the Relay Namespace.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port to use for the endpoint"},"relay_id":{"type":"TypeString","required":true,"description":"The ID of the Relay Hybrid Connection to use.","forceNew":true},"relay_name":{"type":"TypeString","description":"The name of the Relay in use.","computed":true},"send_key_name":{"type":"TypeString","optional":true,"default":"RootManageSharedAccessKey","description":"The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey`"},"send_key_value":{"type":"TypeString","description":"The Primary Access Key for the `send_key_name`","computed":true},"service_bus_namespace":{"type":"TypeString","description":"The Service Bus Namespace.","computed":true},"service_bus_suffix":{"type":"TypeString","description":"The suffix for the endpoint.","computed":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_function_app_slot":{"schema":{"app_service_plan_id":{"type":"TypeString","required":true,"forceNew":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true}}},"maxItems":1},"additional_login_params":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true},"consumer_secret":{"type":"TypeString","required":true}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true}}},"maxItems":1},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"daily_memory_time_quota":{"type":"TypeInt","optional":true},"default_hostname":{"type":"TypeString","computed":true},"enable_builtin_logging":{"type":"TypeBool","optional":true,"default":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"function_app_name":{"type":"TypeString","required":true,"forceNew":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","optional":true,"forceNew":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":false},"app_scale_limit":{"type":"TypeInt","optional":true,"computed":true},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"computed":true},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"java_version":{"type":"TypeString","optional":true},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"default":false},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"storage_account_access_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"default":"~1"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_gallery_application":{"schema":{"description":{"type":"TypeString","optional":true},"end_of_life_date":{"type":"TypeString","optional":true},"eula":{"type":"TypeString","optional":true},"gallery_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"privacy_statement_uri":{"type":"TypeString","optional":true},"release_note_uri":{"type":"TypeString","optional":true},"supported_os_type":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_gallery_application_version":{"schema":{"config_file":{"type":"TypeString","optional":true,"forceNew":true},"enable_health_check":{"type":"TypeBool","optional":true,"default":false},"end_of_life_date":{"type":"TypeString","optional":true},"exclude_from_latest":{"type":"TypeBool","optional":true,"default":false},"gallery_application_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"manage_action":{"type":"TypeList","required":true,"elem":{"schema":{"install":{"type":"TypeString","required":true,"forceNew":true},"remove":{"type":"TypeString","required":true,"forceNew":true},"update":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"package_file":{"type":"TypeString","optional":true,"forceNew":true},"source":{"type":"TypeList","required":true,"elem":{"schema":{"default_configuration_link":{"type":"TypeString","optional":true,"forceNew":true},"media_link":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_region":{"type":"TypeList","required":true,"elem":{"schema":{"exclude_from_latest":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"regional_replica_count":{"type":"TypeInt","required":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"Standard_LRS"}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_graph_services_account":{"schema":{"application_id":{"type":"TypeString","required":true,"forceNew":true},"billing_plan_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hdinsight_hadoop_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"hadoop":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"edge_node":{"type":"TypeList","optional":true,"elem":{"schema":{"https_endpoints":{"type":"TypeList","optional":true,"elem":{"schema":{"access_modes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_port":{"type":"TypeInt","optional":true},"disable_gateway_auth":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"sub_domain_suffix":{"type":"TypeString","optional":true}}}},"install_script_action":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"target_instance_count":{"type":"TypeInt","required":true},"uninstall_script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"vm_size":{"type":"TypeString","required":true}}},"maxItems":1},"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"autoscale":{"type":"TypeList","optional":true,"elem":{"schema":{"capacity":{"type":"TypeList","optional":true,"elem":{"schema":{"max_instance_count":{"type":"TypeInt","required":true},"min_instance_count":{"type":"TypeInt","required":true}}},"maxItems":1},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"target_instance_count":{"type":"TypeInt","required":true},"time":{"type":"TypeString","required":true}}},"minItems":1},"timezone":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hdinsight_hbase_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"hbase":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"autoscale":{"type":"TypeList","optional":true,"elem":{"schema":{"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"target_instance_count":{"type":"TypeInt","required":true},"time":{"type":"TypeString","required":true}}},"minItems":1},"timezone":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hdinsight_interactive_query_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"interactive_hive":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"encryption_in_transit_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"autoscale":{"type":"TypeList","optional":true,"elem":{"schema":{"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"target_instance_count":{"type":"TypeInt","required":true},"time":{"type":"TypeString","required":true}}},"minItems":1},"timezone":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hdinsight_kafka_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"kafka":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"encryption_in_transit_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"kafka_rest_proxy_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rest_proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"security_group_id":{"type":"TypeString","required":true,"forceNew":true},"security_group_name":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"kafka_management_node":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","computed":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"number_of_disks_per_node":{"type":"TypeInt","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hdinsight_spark_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"spark":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"encryption_in_transit_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"autoscale":{"type":"TypeList","optional":true,"elem":{"schema":{"capacity":{"type":"TypeList","optional":true,"elem":{"schema":{"max_instance_count":{"type":"TypeInt","required":true},"min_instance_count":{"type":"TypeInt","required":true}}},"maxItems":1},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"target_instance_count":{"type":"TypeInt","required":true},"time":{"type":"TypeString","required":true}}},"minItems":1},"timezone":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_healthbot":{"schema":{"bot_management_portal_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_healthcare_dicom_service":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"authority":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint":{"type":"TypeSet","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_url":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":30,"update":90}},"azurerm_healthcare_fhir_service":{"schema":{"access_policy_object_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"audience":{"type":"TypeString","required":true},"authority":{"type":"TypeString","required":true},"smart_proxy_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"configuration_export_storage_account_name":{"type":"TypeString","optional":true},"container_registry_login_server_url":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_methods":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":64},"credentials_allowed":{"type":"TypeBool","optional":true,"default":false},"max_age_in_seconds":{"type":"TypeInt","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","optional":true,"default":"fhir-R4","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"oci_artifact":{"type":"TypeList","optional":true,"elem":{"schema":{"digest":{"type":"TypeString","optional":true},"image_name":{"type":"TypeString","optional":true},"login_server":{"type":"TypeString","required":true}}}},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":30,"update":90}},"azurerm_healthcare_medtech_service":{"schema":{"device_mapping_json":{"type":"TypeString","required":true},"eventhub_consumer_group_name":{"type":"TypeString","required":true},"eventhub_name":{"type":"TypeString","required":true},"eventhub_namespace_name":{"type":"TypeString","required":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_healthcare_medtech_service_fhir_destination":{"schema":{"destination_fhir_mapping_json":{"type":"TypeString","required":true},"destination_fhir_service_id":{"type":"TypeString","required":true},"destination_identity_resolution_type":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"medtech_service_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_healthcare_service":{"schema":{"access_policy_object_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"authentication_configuration":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"audience":{"type":"TypeString","optional":true},"authority":{"type":"TypeString","optional":true},"smart_proxy_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"configuration_export_storage_account_name":{"type":"TypeString","optional":true},"cors_configuration":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allow_credentials":{"type":"TypeBool","optional":true},"allowed_headers":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_methods":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":64},"max_age_in_seconds":{"type":"TypeInt","optional":true}}},"maxItems":1},"cosmosdb_key_vault_key_versionless_id":{"type":"TypeString","optional":true,"forceNew":true},"cosmosdb_throughput":{"type":"TypeInt","optional":true,"default":1000},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","optional":true,"default":"fhir"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_healthcare_workspace":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_connection":{"type":"TypeSet","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hpc_cache":{"schema":{"automatically_rotate_key_to_latest_enabled":{"type":"TypeBool","optional":true},"cache_size_in_gb":{"type":"TypeInt","required":true,"forceNew":true},"default_access_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"access_rule":{"type":"TypeSet","required":true,"elem":{"schema":{"access":{"type":"TypeString","required":true},"anonymous_gid":{"type":"TypeInt","optional":true},"anonymous_uid":{"type":"TypeInt","optional":true},"filter":{"type":"TypeString","optional":true},"root_squash_enabled":{"type":"TypeBool","optional":true},"scope":{"type":"TypeString","required":true},"submount_access_enabled":{"type":"TypeBool","optional":true},"suid_enabled":{"type":"TypeBool","optional":true}}},"maxItems":3,"minItems":1}}},"maxItems":1,"minItems":1},"directory_active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"cache_netbios_name":{"type":"TypeString","required":true},"dns_primary_ip":{"type":"TypeString","required":true},"dns_secondary_ip":{"type":"TypeString","optional":true},"domain_name":{"type":"TypeString","required":true},"domain_netbios_name":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"directory_flat_file":{"type":"TypeList","optional":true,"elem":{"schema":{"group_file_uri":{"type":"TypeString","required":true},"password_file_uri":{"type":"TypeString","required":true}}},"maxItems":1},"directory_ldap":{"type":"TypeList","optional":true,"elem":{"schema":{"base_dn":{"type":"TypeString","required":true},"bind":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"dn":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true}}},"maxItems":1},"certificate_validation_uri":{"type":"TypeString","optional":true},"download_certificate_automatically":{"type":"TypeBool","optional":true},"encrypted":{"type":"TypeBool","optional":true},"server":{"type":"TypeString","required":true}}},"maxItems":1},"dns":{"type":"TypeList","optional":true,"elem":{"schema":{"search_domain":{"type":"TypeString","optional":true},"servers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":3}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"key_vault_key_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mount_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"mtu":{"type":"TypeInt","optional":true,"default":1500},"name":{"type":"TypeString","required":true,"forceNew":true},"ntp_server":{"type":"TypeString","optional":true,"default":"time.windows.com"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hpc_cache_access_policy":{"schema":{"access_rule":{"type":"TypeSet","required":true,"elem":{"schema":{"access":{"type":"TypeString","required":true},"anonymous_gid":{"type":"TypeInt","optional":true},"anonymous_uid":{"type":"TypeInt","optional":true},"filter":{"type":"TypeString","optional":true},"root_squash_enabled":{"type":"TypeBool","optional":true},"scope":{"type":"TypeString","required":true},"submount_access_enabled":{"type":"TypeBool","optional":true},"suid_enabled":{"type":"TypeBool","optional":true}}},"maxItems":3,"minItems":1},"hpc_cache_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hpc_cache_blob_nfs_target":{"schema":{"access_policy_name":{"type":"TypeString","optional":true,"default":"default"},"cache_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_path":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"usage_model":{"type":"TypeString","required":true},"verification_timer_in_seconds":{"type":"TypeInt","optional":true},"write_back_timer_in_seconds":{"type":"TypeInt","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hpc_cache_blob_target":{"schema":{"access_policy_name":{"type":"TypeString","optional":true,"default":"default"},"cache_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_path":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hpc_cache_nfs_target":{"schema":{"cache_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_junction":{"type":"TypeSet","required":true,"elem":{"schema":{"access_policy_name":{"type":"TypeString","optional":true,"default":"default"},"namespace_path":{"type":"TypeString","required":true},"nfs_export":{"type":"TypeString","required":true},"target_path":{"type":"TypeString","optional":true,"default":""}}},"maxItems":10,"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"target_host_name":{"type":"TypeString","required":true,"forceNew":true},"usage_model":{"type":"TypeString","required":true},"verification_timer_in_seconds":{"type":"TypeInt","optional":true},"write_back_timer_in_seconds":{"type":"TypeInt","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_image":{"schema":{"data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","optional":true,"computed":true},"caching":{"type":"TypeString","optional":true,"default":"None"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"lun":{"type":"TypeInt","optional":true},"managed_disk_id":{"type":"TypeString","optional":true,"forceNew":true},"size_gb":{"type":"TypeInt","optional":true,"computed":true},"storage_type":{"type":"TypeString","required":true,"description":"The type of storage disk","forceNew":true}}}},"hyper_v_generation":{"type":"TypeString","optional":true,"default":"V1","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_disk":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"caching":{"type":"TypeString","optional":true,"default":"None"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"managed_disk_id":{"type":"TypeString","optional":true,"computed":true},"os_state":{"type":"TypeString","optional":true},"os_type":{"type":"TypeString","optional":true},"size_gb":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"storage_type":{"type":"TypeString","required":true,"description":"The type of storage disk","forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_virtual_machine_id":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_resilient":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_iot_security_device_group":{"schema":{"allow_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_from_ips_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"connection_to_ips_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"local_users_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"processes_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"range_rule":{"type":"TypeSet","optional":true,"elem":{"schema":{"duration":{"type":"TypeString","required":true},"max":{"type":"TypeInt","required":true},"min":{"type":"TypeInt","required":true},"type":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iot_security_solution":{"schema":{"additional_workspace":{"type":"TypeSet","optional":true,"elem":{"schema":{"data_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true}}}},"disabled_data_sources":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"events_to_export":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"iothub_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"log_analytics_workspace_id":{"type":"TypeString","optional":true},"log_unmasked_ips_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"query_for_resources":{"type":"TypeString","optional":true,"computed":true},"query_subscription_ids":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"recommendations_enabled":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"acr_authentication":{"type":"TypeBool","optional":true,"default":true},"agent_send_unutilized_msg":{"type":"TypeBool","optional":true,"default":true},"baseline":{"type":"TypeBool","optional":true,"default":true},"edge_hub_mem_optimize":{"type":"TypeBool","optional":true,"default":true},"edge_logging_option":{"type":"TypeBool","optional":true,"default":true},"inconsistent_module_settings":{"type":"TypeBool","optional":true,"default":true},"install_agent":{"type":"TypeBool","optional":true,"default":true},"ip_filter_deny_all":{"type":"TypeBool","optional":true,"default":true},"ip_filter_permissive_rule":{"type":"TypeBool","optional":true,"default":true},"open_ports":{"type":"TypeBool","optional":true,"default":true},"permissive_firewall_policy":{"type":"TypeBool","optional":true,"default":true},"permissive_input_firewall_rules":{"type":"TypeBool","optional":true,"default":true},"permissive_output_firewall_rules":{"type":"TypeBool","optional":true,"default":true},"privileged_docker_options":{"type":"TypeBool","optional":true,"default":true},"shared_credentials":{"type":"TypeBool","optional":true,"default":true},"vulnerable_tls_cipher_suite":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iotcentral_application":{"schema":{"display_name":{"type":"TypeString","optional":true,"computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"ST1"},"sub_domain":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template":{"type":"TypeString","optional":true,"default":"iotc-pnp-preview@1.0.0","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iotcentral_application_network_rule_set":{"schema":{"apply_to_device":{"type":"TypeBool","optional":true,"default":true},"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"iotcentral_application_id":{"type":"TypeString","required":true,"forceNew":true},"ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"ip_mask":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iotcentral_organization":{"schema":{"display_name":{"type":"TypeString","required":true},"iotcentral_application_id":{"type":"TypeString","required":true,"forceNew":true},"organization_id":{"type":"TypeString","required":true,"forceNew":true},"parent_organization_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub":{"schema":{"cloud_to_device":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"default_ttl":{"type":"TypeString","optional":true,"default":"PT1H"},"feedback":{"type":"TypeList","optional":true,"elem":{"schema":{"lock_duration":{"type":"TypeString","optional":true,"default":"PT60S"},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10},"time_to_live":{"type":"TypeString","optional":true,"default":"PT1H"}}}},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10}}},"maxItems":1},"endpoint":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"batch_frequency_in_seconds":{"type":"TypeInt","optional":true,"default":300},"connection_string":{"type":"TypeString","optional":true},"container_name":{"type":"TypeString","optional":true},"encoding":{"type":"TypeString","optional":true,"default":"Avro","forceNew":true},"endpoint_uri":{"type":"TypeString","optional":true},"entity_path":{"type":"TypeString","optional":true},"file_name_format":{"type":"TypeString","optional":true,"default":"{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}"},"identity_id":{"type":"TypeString","optional":true},"max_chunk_size_in_bytes":{"type":"TypeInt","optional":true,"default":314572800},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"enrichment":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"key":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":10},"event_hub_events_endpoint":{"type":"TypeString","computed":true},"event_hub_events_namespace":{"type":"TypeString","computed":true},"event_hub_events_path":{"type":"TypeString","computed":true},"event_hub_operations_endpoint":{"type":"TypeString","computed":true},"event_hub_operations_path":{"type":"TypeString","computed":true},"event_hub_partition_count":{"type":"TypeInt","optional":true,"default":4},"event_hub_retention_in_days":{"type":"TypeInt","optional":true,"default":1},"fallback_route":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"condition":{"type":"TypeString","optional":true,"default":"true"},"enabled":{"type":"TypeBool","optional":true,"default":true},"endpoint_names":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"source":{"type":"TypeString","optional":true,"default":"DeviceMessages"}}},"maxItems":1},"file_upload":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","required":true},"container_name":{"type":"TypeString","required":true},"default_ttl":{"type":"TypeString","optional":true,"default":"PT1H"},"identity_id":{"type":"TypeString","optional":true},"lock_duration":{"type":"TypeString","optional":true,"default":"PT1M"},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10},"notifications":{"type":"TypeBool","optional":true,"default":false},"sas_ttl":{"type":"TypeString","optional":true,"default":"PT1H"}}},"maxItems":1},"hostname":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"min_tls_version":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rule_set":{"type":"TypeList","optional":true,"elem":{"schema":{"apply_to_builtin_eventhub_endpoint":{"type":"TypeBool","optional":true,"default":false},"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}}}},"public_network_access_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"condition":{"type":"TypeString","optional":true,"default":"true"},"enabled":{"type":"TypeBool","required":true},"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"source":{"type":"TypeString","required":true}}}},"shared_access_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"key_name":{"type":"TypeString","computed":true},"permissions":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true}}}},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_certificate":{"schema":{"certificate_content":{"type":"TypeString","required":true},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"is_verified":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_consumer_group":{"schema":{"eventhub_endpoint_name":{"type":"TypeString","required":true,"forceNew":true},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_iothub_device_update_account":{"schema":{"host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_device_update_instance":{"schema":{"device_update_account_id":{"type":"TypeString","required":true,"forceNew":true},"diagnostic_enabled":{"type":"TypeBool","optional":true,"default":false},"diagnostic_storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_string":{"type":"TypeString","required":true},"id":{"type":"TypeString","required":true}}},"maxItems":1},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_dps":{"schema":{"allocation_policy":{"type":"TypeString","optional":true,"default":"Hashed"},"data_residency_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"device_provisioning_host_name":{"type":"TypeString","computed":true},"id_scope":{"type":"TypeString","computed":true},"ip_filter_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"ip_mask":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"target":{"type":"TypeString","optional":true}}}},"linked_hub":{"type":"TypeList","optional":true,"elem":{"schema":{"allocation_weight":{"type":"TypeInt","optional":true,"default":1},"apply_allocation_policy":{"type":"TypeBool","optional":true,"default":true},"connection_string":{"type":"TypeString","required":true},"hostname":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_operations_host_name":{"type":"TypeString","computed":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_dps_certificate":{"schema":{"certificate_content":{"type":"TypeString","required":true},"iot_dps_name":{"type":"TypeString","required":true,"forceNew":true},"is_verified":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_dps_shared_access_policy":{"schema":{"enrollment_read":{"type":"TypeBool","optional":true,"default":false},"enrollment_write":{"type":"TypeBool","optional":true,"default":false},"iothub_dps_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"registration_read":{"type":"TypeBool","optional":true,"default":false},"registration_write":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"service_config":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_cosmosdb_account":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"container_name":{"type":"TypeString","required":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"endpoint_uri":{"type":"TypeString","required":true,"forceNew":true},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key_name":{"type":"TypeString","optional":true},"partition_key_template":{"type":"TypeString","optional":true},"primary_key":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_key":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_eventhub":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","optional":true},"endpoint_uri":{"type":"TypeString","optional":true},"entity_path":{"type":"TypeString","optional":true},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_servicebus_queue":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","optional":true},"endpoint_uri":{"type":"TypeString","optional":true},"entity_path":{"type":"TypeString","optional":true},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_servicebus_topic":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","optional":true},"endpoint_uri":{"type":"TypeString","optional":true},"entity_path":{"type":"TypeString","optional":true},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_storage_container":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"batch_frequency_in_seconds":{"type":"TypeInt","optional":true,"default":300},"connection_string":{"type":"TypeString","optional":true},"container_name":{"type":"TypeString","required":true},"encoding":{"type":"TypeString","optional":true,"default":"Avro","forceNew":true},"endpoint_uri":{"type":"TypeString","optional":true},"file_name_format":{"type":"TypeString","optional":true,"default":"{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}"},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"max_chunk_size_in_bytes":{"type":"TypeInt","optional":true,"default":314572800},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_enrichment":{"schema":{"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":100},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"key":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_fallback_route":{"schema":{"condition":{"type":"TypeString","optional":true,"default":"true"},"enabled":{"type":"TypeBool","required":true},"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":1},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeString","optional":true,"default":"DeviceMessages"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_file_upload":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","required":true},"container_name":{"type":"TypeString","required":true},"default_ttl":{"type":"TypeString","optional":true,"default":"PT1H"},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"lock_duration":{"type":"TypeString","optional":true,"default":"PT1M"},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10},"notifications_enabled":{"type":"TypeBool","optional":true,"default":false},"sas_ttl":{"type":"TypeString","optional":true,"default":"PT1H"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_route":{"schema":{"condition":{"type":"TypeString","optional":true,"default":"true"},"enabled":{"type":"TypeBool","required":true},"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":1},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_shared_access_policy":{"schema":{"device_connect":{"type":"TypeBool","optional":true,"default":false},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"registry_read":{"type":"TypeBool","optional":true,"default":false},"registry_write":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"service_connect":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_ip_group":{"schema":{"cidrs":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"firewall_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"firewall_policy_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_ip_group_cidr":{"schema":{"cidr":{"type":"TypeString","required":true,"forceNew":true},"ip_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_key_vault":{"schema":{"access_policy":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"application_id":{"type":"TypeString","optional":true},"certificate_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"key_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"object_id":{"type":"TypeString","required":true},"secret_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"storage_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1024},"contact":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"email":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true},"phone":{"type":"TypeString","optional":true}}}},"enable_rbac_authorization":{"type":"TypeBool","optional":true},"enabled_for_deployment":{"type":"TypeBool","optional":true},"enabled_for_disk_encryption":{"type":"TypeBool","optional":true},"enabled_for_template_deployment":{"type":"TypeBool","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acls":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"bypass":{"type":"TypeString","required":true},"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"purge_protection_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"soft_delete_retention_days":{"type":"TypeInt","optional":true,"default":90},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","required":true},"vault_uri":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_access_policy":{"schema":{"application_id":{"type":"TypeString","optional":true,"forceNew":true},"certificate_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"key_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"object_id":{"type":"TypeString","required":true,"forceNew":true},"secret_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"storage_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_certificate":{"schema":{"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"contents":{"type":"TypeString","required":true},"password":{"type":"TypeString","optional":true}}},"maxItems":1},"certificate_attribute":{"type":"TypeList","computed":true,"elem":{"schema":{"created":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"expires":{"type":"TypeString","computed":true},"not_before":{"type":"TypeString","computed":true},"recovery_level":{"type":"TypeString","computed":true},"updated":{"type":"TypeString","computed":true}}}},"certificate_data":{"type":"TypeString","computed":true},"certificate_data_base64":{"type":"TypeString","computed":true},"certificate_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"issuer_parameters":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}},"maxItems":1},"key_properties":{"type":"TypeList","required":true,"elem":{"schema":{"curve":{"type":"TypeString","optional":true,"computed":true},"exportable":{"type":"TypeBool","required":true},"key_size":{"type":"TypeInt","optional":true,"computed":true},"key_type":{"type":"TypeString","required":true},"reuse_key":{"type":"TypeBool","required":true}}},"maxItems":1},"lifetime_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true}}},"maxItems":1},"trigger":{"type":"TypeList","required":true,"elem":{"schema":{"days_before_expiry":{"type":"TypeInt","optional":true},"lifetime_percentage":{"type":"TypeInt","optional":true}}},"maxItems":1}}}},"secret_properties":{"type":"TypeList","required":true,"elem":{"schema":{"content_type":{"type":"TypeString","required":true}}},"maxItems":1},"x509_certificate_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"extended_key_usage":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"key_usage":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"subject":{"type":"TypeString","required":true},"subject_alternative_names":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"dns_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"emails":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"upns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"validity_in_months":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_manager_id":{"type":"TypeString","computed":true},"resource_manager_versionless_id":{"type":"TypeString","computed":true},"secret_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true},"versionless_id":{"type":"TypeString","computed":true},"versionless_secret_id":{"type":"TypeString","computed":true}},"timeouts":{"create":60,"read":30,"delete":30,"update":30}},"azurerm_key_vault_certificate_contacts":{"schema":{"contact":{"type":"TypeSet","optional":true,"elem":{"schema":{"email":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true},"phone":{"type":"TypeString","optional":true}}}},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_certificate_issuer":{"schema":{"account_id":{"type":"TypeString","optional":true},"admin":{"type":"TypeList","optional":true,"elem":{"schema":{"email_address":{"type":"TypeString","required":true},"first_name":{"type":"TypeString","optional":true},"last_name":{"type":"TypeString","optional":true},"phone":{"type":"TypeString","optional":true}}}},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"org_id":{"type":"TypeString","optional":true},"password":{"type":"TypeString","optional":true},"provider_name":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_key":{"schema":{"curve":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"e":{"type":"TypeString","computed":true},"expiration_date":{"type":"TypeString","optional":true},"key_opts":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"key_size":{"type":"TypeInt","optional":true,"forceNew":true},"key_type":{"type":"TypeString","required":true,"forceNew":true},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"n":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"not_before_date":{"type":"TypeString","optional":true},"public_key_openssh":{"type":"TypeString","computed":true},"public_key_pem":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"resource_versionless_id":{"type":"TypeString","computed":true},"rotation_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"automatic":{"type":"TypeList","optional":true,"elem":{"schema":{"time_after_creation":{"type":"TypeString","optional":true},"time_before_expiry":{"type":"TypeString","optional":true}}},"maxItems":1},"expire_after":{"type":"TypeString","optional":true},"notify_before_expiry":{"type":"TypeString","optional":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true},"versionless_id":{"type":"TypeString","computed":true},"x":{"type":"TypeString","computed":true},"y":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":30,"delete":30,"update":30}},"azurerm_key_vault_managed_hardware_security_module":{"schema":{"admin_object_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"hsm_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acls":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"bypass":{"type":"TypeString","required":true},"default_action":{"type":"TypeString","required":true}}},"maxItems":1},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"purge_protection_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"security_domain_encrypted_data":{"type":"TypeString","computed":true},"security_domain_key_vault_certificate_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":10,"minItems":3},"security_domain_quorum":{"type":"TypeInt","optional":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"soft_delete_retention_days":{"type":"TypeInt","optional":true,"default":90,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":30}},"azurerm_key_vault_managed_hardware_security_module_key":{"schema":{"curve":{"type":"TypeString","optional":true,"forceNew":true},"expiration_date":{"type":"TypeString","optional":true},"key_opts":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"key_size":{"type":"TypeInt","optional":true,"forceNew":true},"key_type":{"type":"TypeString","required":true,"forceNew":true},"managed_hsm_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"not_before_date":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"versioned_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_managed_hardware_security_module_key_rotation_policy":{"schema":{"expire_after":{"type":"TypeString","required":true},"managed_hsm_key_id":{"type":"TypeString","required":true,"forceNew":true},"time_after_creation":{"type":"TypeString","optional":true},"time_before_expiry":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_managed_hardware_security_module_role_assignment":{"schema":{"managed_hsm_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","computed":true},"role_definition_id":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10}},"azurerm_key_vault_managed_hardware_security_module_role_definition":{"schema":{"description":{"type":"TypeString","optional":true},"managed_hsm_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"permission":{"type":"TypeList","optional":true,"elem":{"schema":{"actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"not_actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"not_data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"resource_manager_id":{"type":"TypeString","computed":true},"role_name":{"type":"TypeString","optional":true},"role_type":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_key_vault_managed_storage_account":{"schema":{"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"regenerate_key_automatically":{"type":"TypeBool","optional":true,"default":false},"regeneration_period":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true},"storage_account_key":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_managed_storage_account_sas_token_definition":{"schema":{"managed_storage_account_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"sas_template_uri":{"type":"TypeString","required":true},"sas_type":{"type":"TypeString","required":true},"secret_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"validity_period":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_secret":{"schema":{"content_type":{"type":"TypeString","optional":true},"expiration_date":{"type":"TypeString","optional":true},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"not_before_date":{"type":"TypeString","optional":true},"resource_id":{"type":"TypeString","computed":true},"resource_versionless_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","required":true},"version":{"type":"TypeString","computed":true},"versionless_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":30,"delete":30,"update":30}},"azurerm_kubernetes_cluster":{"schema":{"aci_connector_linux":{"type":"TypeList","optional":true,"elem":{"schema":{"connector_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"subnet_name":{"type":"TypeString","required":true}}},"maxItems":1},"api_server_access_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"authorized_ip_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auto_scaler_profile":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"balance_similar_node_groups":{"type":"TypeBool","optional":true,"default":false},"empty_bulk_delete_max":{"type":"TypeString","optional":true,"computed":true},"expander":{"type":"TypeString","optional":true,"default":"random"},"max_graceful_termination_sec":{"type":"TypeString","optional":true,"computed":true},"max_node_provisioning_time":{"type":"TypeString","optional":true,"default":"15m"},"max_unready_nodes":{"type":"TypeInt","optional":true,"default":3},"max_unready_percentage":{"type":"TypeFloat","optional":true,"default":45},"new_pod_scale_up_delay":{"type":"TypeString","optional":true,"computed":true},"scale_down_delay_after_add":{"type":"TypeString","optional":true,"computed":true},"scale_down_delay_after_delete":{"type":"TypeString","optional":true,"computed":true},"scale_down_delay_after_failure":{"type":"TypeString","optional":true,"computed":true},"scale_down_unneeded":{"type":"TypeString","optional":true,"computed":true},"scale_down_unready":{"type":"TypeString","optional":true,"computed":true},"scale_down_utilization_threshold":{"type":"TypeString","optional":true,"computed":true},"scan_interval":{"type":"TypeString","optional":true,"computed":true},"skip_nodes_with_local_storage":{"type":"TypeBool","optional":true,"default":false},"skip_nodes_with_system_pods":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"automatic_upgrade_channel":{"type":"TypeString","optional":true},"azure_active_directory_role_based_access_control":{"type":"TypeList","optional":true,"elem":{"schema":{"admin_group_object_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_rbac_enabled":{"type":"TypeBool","optional":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"azure_policy_enabled":{"type":"TypeBool","optional":true},"confidential_computing":{"type":"TypeList","optional":true,"elem":{"schema":{"sgx_quote_helper_enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"cost_analysis_enabled":{"type":"TypeBool","optional":true},"current_kubernetes_version":{"type":"TypeString","computed":true},"default_node_pool":{"type":"TypeList","required":true,"elem":{"schema":{"auto_scaling_enabled":{"type":"TypeBool","optional":true},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"fips_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"gpu_instance":{"type":"TypeString","optional":true,"forceNew":true},"host_encryption_enabled":{"type":"TypeBool","optional":true},"host_group_id":{"type":"TypeString","optional":true,"forceNew":true},"kubelet_config":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_unsafe_sysctls":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"container_log_max_line":{"type":"TypeInt","optional":true},"container_log_max_size_mb":{"type":"TypeInt","optional":true},"cpu_cfs_quota_enabled":{"type":"TypeBool","optional":true,"default":true},"cpu_cfs_quota_period":{"type":"TypeString","optional":true},"cpu_manager_policy":{"type":"TypeString","optional":true},"image_gc_high_threshold":{"type":"TypeInt","optional":true},"image_gc_low_threshold":{"type":"TypeInt","optional":true},"pod_max_pid":{"type":"TypeInt","optional":true},"topology_manager_policy":{"type":"TypeString","optional":true}}},"maxItems":1},"kubelet_disk_type":{"type":"TypeString","optional":true,"computed":true},"linux_os_config":{"type":"TypeList","optional":true,"elem":{"schema":{"swap_file_size_mb":{"type":"TypeInt","optional":true},"sysctl_config":{"type":"TypeList","optional":true,"elem":{"schema":{"fs_aio_max_nr":{"type":"TypeInt","optional":true},"fs_file_max":{"type":"TypeInt","optional":true},"fs_inotify_max_user_watches":{"type":"TypeInt","optional":true},"fs_nr_open":{"type":"TypeInt","optional":true},"kernel_threads_max":{"type":"TypeInt","optional":true},"net_core_netdev_max_backlog":{"type":"TypeInt","optional":true},"net_core_optmem_max":{"type":"TypeInt","optional":true},"net_core_rmem_default":{"type":"TypeInt","optional":true},"net_core_rmem_max":{"type":"TypeInt","optional":true},"net_core_somaxconn":{"type":"TypeInt","optional":true},"net_core_wmem_default":{"type":"TypeInt","optional":true},"net_core_wmem_max":{"type":"TypeInt","optional":true},"net_ipv4_ip_local_port_range_max":{"type":"TypeInt","optional":true},"net_ipv4_ip_local_port_range_min":{"type":"TypeInt","optional":true},"net_ipv4_neigh_default_gc_thresh1":{"type":"TypeInt","optional":true},"net_ipv4_neigh_default_gc_thresh2":{"type":"TypeInt","optional":true},"net_ipv4_neigh_default_gc_thresh3":{"type":"TypeInt","optional":true},"net_ipv4_tcp_fin_timeout":{"type":"TypeInt","optional":true},"net_ipv4_tcp_keepalive_intvl":{"type":"TypeInt","optional":true},"net_ipv4_tcp_keepalive_probes":{"type":"TypeInt","optional":true},"net_ipv4_tcp_keepalive_time":{"type":"TypeInt","optional":true},"net_ipv4_tcp_max_syn_backlog":{"type":"TypeInt","optional":true},"net_ipv4_tcp_max_tw_buckets":{"type":"TypeInt","optional":true},"net_ipv4_tcp_tw_reuse":{"type":"TypeBool","optional":true},"net_netfilter_nf_conntrack_buckets":{"type":"TypeInt","optional":true},"net_netfilter_nf_conntrack_max":{"type":"TypeInt","optional":true},"vm_max_map_count":{"type":"TypeInt","optional":true},"vm_swappiness":{"type":"TypeInt","optional":true},"vm_vfs_cache_pressure":{"type":"TypeInt","optional":true}}},"maxItems":1},"transparent_huge_page_defrag":{"type":"TypeString","optional":true},"transparent_huge_page_enabled":{"type":"TypeString","optional":true}}},"maxItems":1},"max_count":{"type":"TypeInt","optional":true},"max_pods":{"type":"TypeInt","optional":true,"computed":true},"min_count":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true},"node_count":{"type":"TypeInt","optional":true,"computed":true},"node_labels":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"node_network_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_host_ports":{"type":"TypeList","optional":true,"elem":{"schema":{"port_end":{"type":"TypeInt","optional":true},"port_start":{"type":"TypeInt","optional":true},"protocol":{"type":"TypeString","optional":true}}}},"application_security_group_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"node_public_ip_tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"node_public_ip_enabled":{"type":"TypeBool","optional":true},"node_public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"only_critical_addons_enabled":{"type":"TypeBool","optional":true},"orchestrator_version":{"type":"TypeString","optional":true,"computed":true},"os_disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"os_disk_type":{"type":"TypeString","optional":true,"default":"Managed"},"os_sku":{"type":"TypeString","optional":true,"computed":true},"pod_subnet_id":{"type":"TypeString","optional":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"scale_down_mode":{"type":"TypeString","optional":true,"default":"Delete"},"snapshot_id":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"temporary_name_for_rotation":{"type":"TypeString","optional":true},"type":{"type":"TypeString","optional":true,"default":"VirtualMachineScaleSets","forceNew":true},"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false},"upgrade_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"drain_timeout_in_minutes":{"type":"TypeInt","optional":true},"max_surge":{"type":"TypeString","required":true},"node_soak_duration_in_minutes":{"type":"TypeInt","optional":true}}},"maxItems":1},"vm_size":{"type":"TypeString","required":true},"vnet_subnet_id":{"type":"TypeString","optional":true},"workload_runtime":{"type":"TypeString","optional":true,"computed":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"dns_prefix":{"type":"TypeString","optional":true,"forceNew":true},"dns_prefix_private_cluster":{"type":"TypeString","optional":true,"forceNew":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"http_application_routing_enabled":{"type":"TypeBool","optional":true},"http_application_routing_zone_name":{"type":"TypeString","computed":true},"http_proxy_config":{"type":"TypeList","optional":true,"elem":{"schema":{"http_proxy":{"type":"TypeString","optional":true},"https_proxy":{"type":"TypeString","optional":true},"no_proxy":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"trusted_ca":{"type":"TypeString","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"image_cleaner_enabled":{"type":"TypeBool","optional":true},"image_cleaner_interval_hours":{"type":"TypeInt","optional":true},"ingress_application_gateway":{"type":"TypeList","optional":true,"elem":{"schema":{"effective_gateway_id":{"type":"TypeString","computed":true},"gateway_id":{"type":"TypeString","optional":true},"gateway_name":{"type":"TypeString","optional":true},"ingress_application_gateway_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"subnet_cidr":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"key_management_service":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"key_vault_network_access":{"type":"TypeString","optional":true,"default":"Public"}}},"maxItems":1},"key_vault_secrets_provider":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"secret_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"secret_rotation_interval":{"type":"TypeString","optional":true,"default":"2m"}}},"maxItems":1},"kube_admin_config":{"type":"TypeList","computed":true,"elem":{"schema":{"client_certificate":{"type":"TypeString","computed":true},"client_key":{"type":"TypeString","computed":true},"cluster_ca_certificate":{"type":"TypeString","computed":true},"host":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"kube_admin_config_raw":{"type":"TypeString","computed":true},"kube_config":{"type":"TypeList","computed":true,"elem":{"schema":{"client_certificate":{"type":"TypeString","computed":true},"client_key":{"type":"TypeString","computed":true},"cluster_ca_certificate":{"type":"TypeString","computed":true},"host":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"kube_config_raw":{"type":"TypeString","computed":true},"kubelet_identity":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"object_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}}},"maxItems":1},"kubernetes_version":{"type":"TypeString","optional":true,"computed":true},"linux_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_key":{"type":"TypeList","required":true,"elem":{"schema":{"key_data":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"local_account_disabled":{"type":"TypeBool","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed":{"type":"TypeSet","optional":true,"elem":{"schema":{"day":{"type":"TypeString","required":true},"hours":{"type":"TypeSet","required":true,"elem":{"type":"TypeInt"},"minItems":1}}}},"not_allowed":{"type":"TypeSet","optional":true,"elem":{"schema":{"end":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true}}}}}},"maxItems":1},"maintenance_window_auto_upgrade":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_month":{"type":"TypeInt","optional":true},"day_of_week":{"type":"TypeString","optional":true},"duration":{"type":"TypeInt","required":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","required":true},"not_allowed":{"type":"TypeSet","optional":true,"elem":{"schema":{"end":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true}}}},"start_date":{"type":"TypeString","optional":true,"computed":true},"start_time":{"type":"TypeString","optional":true},"utc_offset":{"type":"TypeString","optional":true},"week_index":{"type":"TypeString","optional":true}}},"maxItems":1},"maintenance_window_node_os":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_month":{"type":"TypeInt","optional":true},"day_of_week":{"type":"TypeString","optional":true},"duration":{"type":"TypeInt","required":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","required":true},"not_allowed":{"type":"TypeSet","optional":true,"elem":{"schema":{"end":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true}}}},"start_date":{"type":"TypeString","optional":true,"computed":true},"start_time":{"type":"TypeString","optional":true},"utc_offset":{"type":"TypeString","optional":true},"week_index":{"type":"TypeString","optional":true}}},"maxItems":1},"microsoft_defender":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true}}},"maxItems":1},"monitor_metrics":{"type":"TypeList","optional":true,"elem":{"schema":{"annotations_allowed":{"type":"TypeString","optional":true},"labels_allowed":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"dns_service_ip":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"ip_versions":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"load_balancer_profile":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"effective_outbound_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":30},"managed_outbound_ip_count":{"type":"TypeInt","optional":true,"computed":true},"managed_outbound_ipv6_count":{"type":"TypeInt","optional":true,"computed":true},"outbound_ip_address_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"outbound_ip_prefix_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"outbound_ports_allocated":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"load_balancer_sku":{"type":"TypeString","optional":true,"default":"standard","forceNew":true},"nat_gateway_profile":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"effective_outbound_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"managed_outbound_ip_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"network_data_plane":{"type":"TypeString","optional":true,"default":"azure"},"network_mode":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"network_plugin":{"type":"TypeString","required":true,"forceNew":true},"network_plugin_mode":{"type":"TypeString","optional":true},"network_policy":{"type":"TypeString","optional":true,"computed":true},"outbound_type":{"type":"TypeString","optional":true,"default":"loadBalancer"},"pod_cidr":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"pod_cidrs":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"service_cidr":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"service_cidrs":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"node_os_upgrade_channel":{"type":"TypeString","optional":true,"default":"NodeImage"},"node_resource_group":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"node_resource_group_id":{"type":"TypeString","computed":true},"oidc_issuer_enabled":{"type":"TypeBool","optional":true},"oidc_issuer_url":{"type":"TypeString","computed":true},"oms_agent":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"msi_auth_for_monitoring_enabled":{"type":"TypeBool","optional":true},"oms_agent_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}}}},"maxItems":1},"open_service_mesh_enabled":{"type":"TypeBool","optional":true},"portal_fqdn":{"type":"TypeString","computed":true},"private_cluster_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"private_cluster_public_fqdn_enabled":{"type":"TypeBool","optional":true,"default":false},"private_dns_zone_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"private_fqdn":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role_based_access_control_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"run_command_enabled":{"type":"TypeBool","optional":true,"default":true},"service_mesh_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_authority":{"type":"TypeList","optional":true,"elem":{"schema":{"cert_chain_object_name":{"type":"TypeString","required":true},"cert_object_name":{"type":"TypeString","required":true},"key_object_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","required":true},"root_cert_object_name":{"type":"TypeString","required":true}}},"maxItems":1},"external_ingress_gateway_enabled":{"type":"TypeBool","optional":true},"internal_ingress_gateway_enabled":{"type":"TypeBool","optional":true},"mode":{"type":"TypeString","required":true},"revisions":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":2,"minItems":1}}},"maxItems":1},"service_principal":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true}}},"maxItems":1},"sku_tier":{"type":"TypeString","optional":true,"default":"Free"},"storage_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_driver_enabled":{"type":"TypeBool","optional":true,"default":false},"disk_driver_enabled":{"type":"TypeBool","optional":true,"default":true},"file_driver_enabled":{"type":"TypeBool","optional":true,"default":true},"snapshot_controller_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"support_plan":{"type":"TypeString","optional":true,"default":"KubernetesOfficial"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"web_app_routing":{"type":"TypeList","optional":true,"elem":{"schema":{"dns_zone_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"web_app_routing_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}}}},"maxItems":1},"windows_profile":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"admin_password":{"type":"TypeString","required":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"gmsa":{"type":"TypeList","optional":true,"elem":{"schema":{"dns_server":{"type":"TypeString","required":true},"root_domain":{"type":"TypeString","required":true}}},"maxItems":1},"license":{"type":"TypeString","optional":true}}},"maxItems":1},"workload_autoscaler_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"keda_enabled":{"type":"TypeBool","optional":true,"default":false},"vertical_pod_autoscaler_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"workload_identity_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_kubernetes_cluster_extension":{"schema":{"aks_assigned_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"configuration_protected_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"configuration_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"current_version":{"type":"TypeString","computed":true},"extension_type":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"promotion_code":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"release_namespace":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"release_train":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"target_namespace":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_cluster_node_pool":{"schema":{"auto_scaling_enabled":{"type":"TypeBool","optional":true},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"fips_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"gpu_instance":{"type":"TypeString","optional":true,"forceNew":true},"host_encryption_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"host_group_id":{"type":"TypeString","optional":true,"forceNew":true},"kubelet_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"allowed_unsafe_sysctls":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"container_log_max_line":{"type":"TypeInt","optional":true,"forceNew":true},"container_log_max_size_mb":{"type":"TypeInt","optional":true,"forceNew":true},"cpu_cfs_quota_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"cpu_cfs_quota_period":{"type":"TypeString","optional":true,"forceNew":true},"cpu_manager_policy":{"type":"TypeString","optional":true,"forceNew":true},"image_gc_high_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"image_gc_low_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"pod_max_pid":{"type":"TypeInt","optional":true,"forceNew":true},"topology_manager_policy":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"kubelet_disk_type":{"type":"TypeString","optional":true,"computed":true},"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"linux_os_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"swap_file_size_mb":{"type":"TypeInt","optional":true,"forceNew":true},"sysctl_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"fs_aio_max_nr":{"type":"TypeInt","optional":true,"forceNew":true},"fs_file_max":{"type":"TypeInt","optional":true,"forceNew":true},"fs_inotify_max_user_watches":{"type":"TypeInt","optional":true,"forceNew":true},"fs_nr_open":{"type":"TypeInt","optional":true,"forceNew":true},"kernel_threads_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_netdev_max_backlog":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_optmem_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_rmem_default":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_rmem_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_somaxconn":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_wmem_default":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_wmem_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_ip_local_port_range_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_ip_local_port_range_min":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_neigh_default_gc_thresh1":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_neigh_default_gc_thresh2":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_neigh_default_gc_thresh3":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_fin_timeout":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_keepalive_intvl":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_keepalive_probes":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_keepalive_time":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_max_syn_backlog":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_max_tw_buckets":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_tw_reuse":{"type":"TypeBool","optional":true,"forceNew":true},"net_netfilter_nf_conntrack_buckets":{"type":"TypeInt","optional":true,"forceNew":true},"net_netfilter_nf_conntrack_max":{"type":"TypeInt","optional":true,"forceNew":true},"vm_max_map_count":{"type":"TypeInt","optional":true,"forceNew":true},"vm_swappiness":{"type":"TypeInt","optional":true,"forceNew":true},"vm_vfs_cache_pressure":{"type":"TypeInt","optional":true,"forceNew":true}}},"maxItems":1},"transparent_huge_page_defrag":{"type":"TypeString","optional":true,"forceNew":true},"transparent_huge_page_enabled":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"max_count":{"type":"TypeInt","optional":true},"max_pods":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"min_count":{"type":"TypeInt","optional":true},"mode":{"type":"TypeString","optional":true,"default":"User"},"name":{"type":"TypeString","required":true,"forceNew":true},"node_count":{"type":"TypeInt","optional":true,"computed":true},"node_labels":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"node_network_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_host_ports":{"type":"TypeList","optional":true,"elem":{"schema":{"port_end":{"type":"TypeInt","optional":true},"port_start":{"type":"TypeInt","optional":true},"protocol":{"type":"TypeString","optional":true}}}},"application_security_group_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"node_public_ip_tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"node_public_ip_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"node_public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"node_taints":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"orchestrator_version":{"type":"TypeString","optional":true,"computed":true},"os_disk_size_gb":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"os_disk_type":{"type":"TypeString","optional":true,"default":"Managed","forceNew":true},"os_sku":{"type":"TypeString","optional":true,"computed":true},"os_type":{"type":"TypeString","optional":true,"default":"Linux","forceNew":true},"pod_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"scale_down_mode":{"type":"TypeString","optional":true,"default":"Delete"},"snapshot_id":{"type":"TypeString","optional":true,"forceNew":true},"spot_max_price":{"type":"TypeFloat","optional":true,"default":-1,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"upgrade_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"drain_timeout_in_minutes":{"type":"TypeInt","optional":true},"max_surge":{"type":"TypeString","required":true},"node_soak_duration_in_minutes":{"type":"TypeInt","optional":true}}},"maxItems":1},"vm_size":{"type":"TypeString","required":true,"forceNew":true},"vnet_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"windows_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"outbound_nat_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true}}},"maxItems":1},"workload_runtime":{"type":"TypeString","optional":true},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kubernetes_cluster_trusted_access_role_binding":{"schema":{"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_fleet_manager":{"schema":{"hub_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"dns_prefix":{"type":"TypeString","required":true},"fqdn":{"type":"TypeString","computed":true},"kubernetes_version":{"type":"TypeString","computed":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_fleet_member":{"schema":{"group":{"type":"TypeString","optional":true},"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"kubernetes_fleet_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_fleet_update_run":{"schema":{"fleet_update_strategy_id":{"type":"TypeString","optional":true},"kubernetes_fleet_manager_id":{"type":"TypeString","required":true,"forceNew":true},"managed_cluster_update":{"type":"TypeList","required":true,"elem":{"schema":{"node_image_selection":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}},"maxItems":1},"upgrade":{"type":"TypeList","required":true,"elem":{"schema":{"kubernetes_version":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"stage":{"type":"TypeList","optional":true,"elem":{"schema":{"after_stage_wait_in_seconds":{"type":"TypeInt","optional":true},"group":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_fleet_update_strategy":{"schema":{"kubernetes_fleet_manager_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"stage":{"type":"TypeList","required":true,"elem":{"schema":{"after_stage_wait_in_seconds":{"type":"TypeInt","optional":true},"group":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_flux_configuration":{"schema":{"blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","optional":true},"container_id":{"type":"TypeString","required":true},"local_auth_reference":{"type":"TypeString","optional":true},"managed_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true}}},"maxItems":1},"sas_token":{"type":"TypeString","optional":true},"service_principal":{"type":"TypeList","optional":true,"elem":{"schema":{"client_certificate_base64":{"type":"TypeString","optional":true},"client_certificate_password":{"type":"TypeString","optional":true},"client_certificate_send_chain":{"type":"TypeBool","optional":true,"default":false},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600}}},"maxItems":1},"bucket":{"type":"TypeList","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","optional":true},"bucket_name":{"type":"TypeString","required":true},"local_auth_reference":{"type":"TypeString","optional":true},"secret_key_base64":{"type":"TypeString","optional":true},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600},"tls_enabled":{"type":"TypeBool","optional":true,"default":true},"url":{"type":"TypeString","required":true}}},"maxItems":1},"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"continuous_reconciliation_enabled":{"type":"TypeBool","optional":true,"default":true},"git_repository":{"type":"TypeList","optional":true,"elem":{"schema":{"https_ca_cert_base64":{"type":"TypeString","optional":true},"https_key_base64":{"type":"TypeString","optional":true},"https_user":{"type":"TypeString","optional":true},"local_auth_reference":{"type":"TypeString","optional":true},"reference_type":{"type":"TypeString","required":true},"reference_value":{"type":"TypeString","required":true},"ssh_known_hosts_base64":{"type":"TypeString","optional":true},"ssh_private_key_base64":{"type":"TypeString","optional":true},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600},"url":{"type":"TypeString","required":true}}},"maxItems":1},"kustomizations":{"type":"TypeSet","required":true,"elem":{"schema":{"depends_on":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"garbage_collection_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"recreating_enabled":{"type":"TypeBool","optional":true,"default":false},"retry_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","optional":true,"default":"namespace","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kusto_attached_database_configuration":{"schema":{"attached_database_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"cluster_resource_id":{"type":"TypeString","required":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"default_principal_modification_kind":{"type":"TypeString","optional":true,"default":"None"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sharing":{"type":"TypeList","optional":true,"elem":{"schema":{"external_tables_to_exclude":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"external_tables_to_include":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"materialized_views_to_exclude":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"materialized_views_to_include":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"tables_to_exclude":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"tables_to_include":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_cluster":{"schema":{"allowed_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"allowed_ip_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"auto_stop_enabled":{"type":"TypeBool","optional":true,"default":true},"data_ingestion_uri":{"type":"TypeString","computed":true},"disk_encryption_enabled":{"type":"TypeBool","optional":true,"default":false},"double_encryption_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"language_extensions":{"type":"TypeList","optional":true,"elem":{"schema":{"image":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"optimized_auto_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"maximum_instances":{"type":"TypeInt","required":true},"minimum_instances":{"type":"TypeInt","required":true}}},"maxItems":1},"outbound_network_access_restricted":{"type":"TypeBool","optional":true,"default":false},"public_ip_type":{"type":"TypeString","optional":true,"default":"IPv4"},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"purge_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"streaming_ingestion_enabled":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trusted_external_tenants":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"type":"TypeString"}},"uri":{"type":"TypeString","computed":true},"virtual_network_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"data_management_public_ip_id":{"type":"TypeString","required":true,"forceNew":true},"engine_public_ip_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_cluster_customer_managed_key":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"key_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","required":true},"key_version":{"type":"TypeString","optional":true},"user_identity":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kusto_cluster_managed_private_endpoint":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_link_resource_id":{"type":"TypeString","required":true,"forceNew":true},"private_link_resource_region":{"type":"TypeString","optional":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_cluster_principal_assignment":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_name":{"type":"TypeString","computed":true},"principal_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true,"forceNew":true},"tenant_name":{"type":"TypeString","computed":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_kusto_cosmosdb_data_connection":{"schema":{"cosmosdb_container_id":{"type":"TypeString","required":true,"forceNew":true},"kusto_database_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_identity_id":{"type":"TypeString","required":true,"forceNew":true},"mapping_rule_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"retrieval_start_date":{"type":"TypeString","optional":true,"forceNew":true},"table_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_kusto_database":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"hot_cache_period":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"size":{"type":"TypeFloat","computed":true},"soft_delete_period":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_database_principal_assignment":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_name":{"type":"TypeString","computed":true},"principal_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true,"forceNew":true},"tenant_name":{"type":"TypeString","computed":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_kusto_eventgrid_data_connection":{"schema":{"blob_storage_event_type":{"type":"TypeString","optional":true,"default":"Microsoft.Storage.BlobCreated"},"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"data_format":{"type":"TypeString","optional":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"database_routing_type":{"type":"TypeString","optional":true,"default":"Single","forceNew":true},"eventgrid_resource_id":{"type":"TypeString","optional":true},"eventhub_consumer_group_name":{"type":"TypeString","required":true,"forceNew":true},"eventhub_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","optional":true},"mapping_rule_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"skip_first_record":{"type":"TypeBool","optional":true,"default":false},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_eventhub_data_connection":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"compression":{"type":"TypeString","optional":true,"default":"None","forceNew":true},"consumer_group":{"type":"TypeString","required":true,"forceNew":true},"data_format":{"type":"TypeString","optional":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"database_routing_type":{"type":"TypeString","optional":true,"default":"Single","forceNew":true},"event_system_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"eventhub_id":{"type":"TypeString","required":true,"forceNew":true},"identity_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mapping_rule_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_iothub_data_connection":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"consumer_group":{"type":"TypeString","required":true,"forceNew":true},"data_format":{"type":"TypeString","optional":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"database_routing_type":{"type":"TypeString","optional":true,"default":"Single","forceNew":true},"event_system_properties":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mapping_rule_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"shared_access_policy_name":{"type":"TypeString","required":true,"forceNew":true},"table_name":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_kusto_script":{"schema":{"continue_on_errors_enabled":{"type":"TypeBool","optional":true,"default":false},"database_id":{"type":"TypeString","required":true,"forceNew":true},"force_an_update_when_value_changed":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sas_token":{"type":"TypeString","optional":true,"forceNew":true},"script_content":{"type":"TypeString","optional":true,"forceNew":true},"url":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb":{"schema":{"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"frontend_ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"gateway_load_balancer_frontend_ip_configuration_id":{"type":"TypeString","optional":true,"computed":true},"id":{"type":"TypeString","computed":true},"inbound_nat_rules":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"load_balancer_rules":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"outbound_rules":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_allocation":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_version":{"type":"TypeString","optional":true,"computed":true},"public_ip_address_id":{"type":"TypeString","optional":true,"computed":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"computed":true},"subnet_id":{"type":"TypeString","optional":true,"computed":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"sku_tier":{"type":"TypeString","optional":true,"default":"Regional","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_backend_address_pool":{"schema":{"backend_ip_configurations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"inbound_nat_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancing_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"synchronous_mode":{"type":"TypeString","optional":true,"forceNew":true},"tunnel_interface":{"type":"TypeList","optional":true,"elem":{"schema":{"identifier":{"type":"TypeInt","required":true},"port":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"minItems":1},"virtual_network_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_backend_address_pool_address":{"schema":{"backend_address_ip_configuration_id":{"type":"TypeString","optional":true,"description":"For global load balancer, user needs to specify the `backend_address_ip_configuration_id` of the added regional load balancers"},"backend_address_pool_id":{"type":"TypeString","required":true,"forceNew":true},"inbound_nat_rule_port_mapping":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","computed":true},"frontend_port":{"type":"TypeInt","computed":true},"inbound_nat_rule_name":{"type":"TypeString","computed":true}}}},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_nat_pool":{"schema":{"backend_port":{"type":"TypeInt","required":true},"floating_ip_enabled":{"type":"TypeBool","optional":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","required":true},"frontend_port_end":{"type":"TypeInt","required":true},"frontend_port_start":{"type":"TypeInt","required":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protocol":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tcp_reset_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_nat_rule":{"schema":{"backend_address_pool_id":{"type":"TypeString","optional":true},"backend_ip_configuration_id":{"type":"TypeString","computed":true},"backend_port":{"type":"TypeInt","required":true},"enable_floating_ip":{"type":"TypeBool","optional":true,"computed":true},"enable_tcp_reset":{"type":"TypeBool","optional":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","required":true},"frontend_port":{"type":"TypeInt","optional":true},"frontend_port_end":{"type":"TypeInt","optional":true},"frontend_port_start":{"type":"TypeInt","optional":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protocol":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_outbound_rule":{"schema":{"allocated_outbound_ports":{"type":"TypeInt","optional":true,"default":1024},"backend_address_pool_id":{"type":"TypeString","required":true},"enable_tcp_reset":{"type":"TypeBool","optional":true,"default":false},"frontend_ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true}}},"minItems":1},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protocol":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_probe":{"schema":{"interval_in_seconds":{"type":"TypeInt","optional":true,"default":15},"load_balancer_rules":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"number_of_probes":{"type":"TypeInt","optional":true,"default":2},"port":{"type":"TypeInt","required":true},"probe_threshold":{"type":"TypeInt","optional":true,"default":1},"protocol":{"type":"TypeString","optional":true,"default":"Tcp"},"request_path":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_rule":{"schema":{"backend_address_pool_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2,"minItems":1},"backend_port":{"type":"TypeInt","required":true},"disable_outbound_snat":{"type":"TypeBool","optional":true,"default":false},"enable_floating_ip":{"type":"TypeBool","optional":true,"default":false},"enable_tcp_reset":{"type":"TypeBool","optional":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","required":true},"frontend_port":{"type":"TypeInt","required":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"load_distribution":{"type":"TypeString","optional":true,"default":"Default"},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"probe_id":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lighthouse_assignment":{"schema":{"lighthouse_definition_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_lighthouse_definition":{"schema":{"authorization":{"type":"TypeSet","required":true,"elem":{"schema":{"delegated_role_definition_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_display_name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","required":true},"role_definition_id":{"type":"TypeString","required":true}}},"minItems":1},"description":{"type":"TypeString","optional":true},"eligible_authorization":{"type":"TypeSet","optional":true,"elem":{"schema":{"just_in_time_access_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"approver":{"type":"TypeSet","optional":true,"elem":{"schema":{"principal_display_name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","required":true}}}},"maximum_activation_duration":{"type":"TypeString","optional":true,"default":"PT8H"},"multi_factor_auth_provider":{"type":"TypeString","optional":true}}},"maxItems":1},"principal_display_name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","required":true},"role_definition_id":{"type":"TypeString","required":true}}}},"lighthouse_definition_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managing_tenant_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"product":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_linux_function_app":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.","elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"builtin_logging_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting"},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the function app use Client Certificates"},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Optional","description":"The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser` "},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"content_share_force_disabled":{"type":"TypeBool","optional":true,"default":false,"description":"Force disable the content share settings."},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans."},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Is the Linux Function App enabled."},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"functions_extension_version":{"type":"TypeString","optional":true,"default":"~4","description":"The runtime version associated with the Function App."},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false,"description":"Can the Function App only be accessed via HTTPS?"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Key Vault access.","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"description":"Specifies the name of the Function App.","forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_plan_id":{"type":"TypeString","required":true,"description":"The ID of the App Service Plan within which to create this Function App"},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"description":"If this Linux Web App is Always On enabled. Defaults to `false`.","computed":true},"api_definition_url":{"type":"TypeString","optional":true,"description":"The URL of the API definition that describes this Linux Function App."},"api_management_api_id":{"type":"TypeString","optional":true,"description":"The ID of the API Management API for this Linux Function App."},"app_command_line":{"type":"TypeString","optional":true,"description":"The program and any arguments used to launch this app via the command line. (Example `node myapp.js`)."},"app_scale_limit":{"type":"TypeInt","optional":true,"description":"The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.","computed":true},"app_service_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","optional":true,"default":35,"description":"The amount of disk space to use for logs. Valid values are between `25` and `100`."},"retention_period_days":{"type":"TypeInt","optional":true,"description":"The retention period for logs in days. Valid values are between `0` and `99999`. Defaults to `0` (never delete)."}}},"maxItems":1},"application_insights_connection_string":{"type":"TypeString","optional":true,"description":"The Connection String for linking the Linux Function App to Application Insights."},"application_insights_key":{"type":"TypeString","optional":true,"description":"The Instrumentation Key for connecting the Linux Function App to Application Insights."},"application_stack":{"type":"TypeList","optional":true,"elem":{"schema":{"docker":{"type":"TypeList","optional":true,"description":"A docker block","elem":{"schema":{"image_name":{"type":"TypeString","required":true,"description":"The name of the Docker image to use."},"image_tag":{"type":"TypeString","required":true,"description":"The image tag of the image to use."},"registry_password":{"type":"TypeString","optional":true,"description":"The password for the account to use to connect to the registry."},"registry_url":{"type":"TypeString","required":true,"description":"The URL of the docker registry."},"registry_username":{"type":"TypeString","optional":true,"description":"The username to use for connections to the registry."}}}},"dotnet_version":{"type":"TypeString","optional":true,"description":"The version of .Net. Possible values are `3.1`, `6.0` and `7.0`"},"java_version":{"type":"TypeString","optional":true,"description":"The version of Java to use. Possible values are `8`, `11`, and `17`"},"node_version":{"type":"TypeString","optional":true,"description":"The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20`"},"powershell_core_version":{"type":"TypeString","optional":true,"description":"The version of PowerShell Core to use. Possibles values are `7`, `7.2`, and `7.4`"},"python_version":{"type":"TypeString","optional":true,"description":"The version of Python to use. Possible values include `3.12`, `3.11`, `3.10`, `3.9`, `3.8`, and `3.7`."},"use_custom_runtime":{"type":"TypeBool","optional":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","optional":true,"default":false,"description":"Should the DotNet process use an isolated runtime. Defaults to `false`."}}},"maxItems":1},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true,"description":"The Client ID of the Managed Service Identity to use for connections to the Azure Container Registry."},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should connections for Azure Container Registry use Managed Identity."},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"description":"Specifies a list of Default Documents for the Linux Web App.","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","description":"Is detailed error logging enabled","computed":true},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"description":"The number of minimum instances for this Linux Function App. Only affects apps on Elastic Premium plans.","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled","description":"State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`."},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true,"description":"The path to be checked for this function app health."},"http2_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies if the http2 protocol should be enabled. Defaults to `false`."},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","description":"The Linux FX Version","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests","description":"The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted."},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated","description":"The Managed Pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`."},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"description":"The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Remote Debugging be enabled. Defaults to `false`."},"remote_debugging_version":{"type":"TypeString","optional":true,"description":"The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022``","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"description":"Should Functions Runtime Scale Monitoring be enabled."},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"scm_type":{"type":"TypeString","description":"The SCM Type in use by the Linux Function App.","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Linux Function App `ip_restriction` configuration be used for the SCM also."},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Linux Web App use a 32-bit worker."},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Web Sockets be enabled. Defaults to `false`."},"worker_count":{"type":"TypeInt","optional":true,"description":"The number of Workers for this Linux Function App.","computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"connection_string_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"storage_account_access_key":{"type":"TypeString","optional":true,"description":"The access key which will be used to access the storage account for the Function App."},"storage_account_name":{"type":"TypeString","optional":true,"description":"The backend storage account name which will be used by this Function App."},"storage_key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App."},"storage_uses_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App use its Managed Identity to access storage?"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"vnet_image_pull_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is container image pull over virtual network enabled? Defaults to `false`."},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Linux Function App. **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_linux_function_app_slot":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.","elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"builtin_logging_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting."},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App Slot use Client Certificates."},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Optional","description":"The mode of the Function App Slot's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`."},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"content_share_force_disabled":{"type":"TypeBool","optional":true,"default":false,"description":"Force disable the content share settings."},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans."},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Is the Linux Function App Slot enabled."},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"function_app_id":{"type":"TypeString","required":true,"description":"The ID of the Linux Function App this Slot is a member of.","forceNew":true},"functions_extension_version":{"type":"TypeString","optional":true,"default":"~4","description":"The runtime version associated with the Function App Slot."},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false,"description":"Can the Function App Slot only be accessed via HTTPS?"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Key Vault access.","computed":true},"kind":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"description":"Specifies the name of the Function App Slot.","forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_plan_id":{"type":"TypeString","optional":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"description":"If this Linux Web App is Always On enabled. Defaults to `false`.","computed":true},"api_definition_url":{"type":"TypeString","optional":true,"description":"The URL of the API definition that describes this Linux Function App."},"api_management_api_id":{"type":"TypeString","optional":true,"description":"The ID of the API Management API for this Linux Function App."},"app_command_line":{"type":"TypeString","optional":true,"description":"The program and any arguments used to launch this app via the command line. (Example `node myapp.js`)."},"app_scale_limit":{"type":"TypeInt","optional":true,"description":"The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.","computed":true},"app_service_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","optional":true,"default":35,"description":"The amount of disk space to use for logs. Valid values are between `25` and `100`."},"retention_period_days":{"type":"TypeInt","optional":true,"description":"The retention period for logs in days. Valid values are between `0` and `99999`. Defaults to `0` (never delete)."}}},"maxItems":1},"application_insights_connection_string":{"type":"TypeString","optional":true,"description":"The Connection String for linking the Linux Function App to Application Insights."},"application_insights_key":{"type":"TypeString","optional":true,"description":"The Instrumentation Key for connecting the Linux Function App to Application Insights."},"application_stack":{"type":"TypeList","optional":true,"elem":{"schema":{"docker":{"type":"TypeList","optional":true,"description":"A docker block","elem":{"schema":{"image_name":{"type":"TypeString","required":true,"description":"The name of the Docker image to use."},"image_tag":{"type":"TypeString","required":true,"description":"The image tag of the image to use."},"registry_password":{"type":"TypeString","optional":true,"description":"The password for the account to use to connect to the registry."},"registry_url":{"type":"TypeString","required":true,"description":"The URL of the docker registry."},"registry_username":{"type":"TypeString","optional":true,"description":"The username to use for connections to the registry."}}}},"dotnet_version":{"type":"TypeString","optional":true,"description":"The version of .Net. Possible values are `3.1`, `6.0` and `7.0`"},"java_version":{"type":"TypeString","optional":true,"description":"The version of Java to use. Possible values are `8`, `11`, and `17`"},"node_version":{"type":"TypeString","optional":true,"description":"The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20`"},"powershell_core_version":{"type":"TypeString","optional":true,"description":"The version of PowerShell Core to use. Possibles values are `7`, `7.2`, and `7.4`"},"python_version":{"type":"TypeString","optional":true,"description":"The version of Python to use. Possible values include `3.12`, `3.11`, `3.10`, `3.9`, `3.8`, and `3.7`."},"use_custom_runtime":{"type":"TypeBool","optional":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","optional":true,"default":false,"description":"Should the DotNet process use an isolated runtime. Defaults to `false`."}}},"maxItems":1},"auto_swap_slot_name":{"type":"TypeString","optional":true},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true,"description":"The Client ID of the Managed Service Identity to use for connections to the Azure Container Registry."},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should connections for Azure Container Registry use Managed Identity."},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"description":"Specifies a list of Default Documents for the Linux Web App.","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","description":"Is detailed error logging enabled","computed":true},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"description":"The number of minimum instances for this Linux Function App. Only affects apps on Elastic Premium plans.","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled","description":"State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`."},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Defaults to `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true,"description":"The path to be checked for this function app health."},"http2_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies if the http2 protocol should be enabled. Defaults to `false`."},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","description":"The Linux FX Version","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests","description":"The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted."},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated","description":"The Managed Pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`."},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"description":"The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Remote Debugging be enabled. Defaults to `false`."},"remote_debugging_version":{"type":"TypeString","optional":true,"description":"The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"description":"Should Functions Runtime Scale Monitoring be enabled."},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"scm_type":{"type":"TypeString","description":"The SCM Type in use by the Linux Function App.","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Linux Function App `ip_restriction` configuration be used for the SCM also."},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Linux Web App use a 32-bit worker."},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Web Sockets be enabled. Defaults to `false`."},"worker_count":{"type":"TypeInt","optional":true,"description":"The number of Workers for this Linux Function App.","computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"storage_account_access_key":{"type":"TypeString","optional":true,"description":"The access key which will be used to access the storage account for the Function App Slot."},"storage_account_name":{"type":"TypeString","optional":true,"description":"The backend storage account name which will be used by this Function App Slot."},"storage_key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App."},"storage_uses_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App Slot use its Managed Identity to access storage?"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"vnet_image_pull_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is container image pull over virtual network enabled? Defaults to `false`."},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_linux_virtual_machine":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"hibernation_enabled":{"type":"TypeBool","optional":true,"default":false},"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"admin_password":{"type":"TypeString","optional":true,"forceNew":true},"admin_ssh_key":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"public_key":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}}},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"allow_extension_operations":{"type":"TypeBool","optional":true,"default":true},"availability_set_id":{"type":"TypeString","optional":true,"forceNew":true},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"bypass_platform_safety_checks_on_user_schedule_enabled":{"type":"TypeBool","optional":true,"default":false},"capacity_reservation_group_id":{"type":"TypeString","optional":true},"computer_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true,"forceNew":true},"dedicated_host_group_id":{"type":"TypeString","optional":true},"dedicated_host_id":{"type":"TypeString","optional":true},"disable_password_authentication":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"disk_controller_type":{"type":"TypeString","optional":true,"computed":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"gallery_application":{"type":"TypeList","optional":true,"elem":{"schema":{"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":false},"configuration_blob_uri":{"type":"TypeString","optional":true},"order":{"type":"TypeInt","optional":true,"default":0},"tag":{"type":"TypeString","optional":true},"treat_failure_as_deployment_failure_enabled":{"type":"TypeBool","optional":true,"default":false},"version_id":{"type":"TypeString","required":true}}},"maxItems":100},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_encryption_type":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"os_image_notification":{"type":"TypeList","optional":true,"elem":{"schema":{"timeout":{"type":"TypeString","optional":true,"default":"PT15M"}}},"maxItems":1},"patch_assessment_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"patch_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain":{"type":"TypeInt","optional":true,"default":-1,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true},"public_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"reboot_setting":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"secure_boot_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"size":{"type":"TypeString","required":true},"source_image_id":{"type":"TypeString","optional":true,"forceNew":true},"source_image_reference":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"user_data":{"type":"TypeString","optional":true},"virtual_machine_id":{"type":"TypeString","computed":true},"virtual_machine_scale_set_id":{"type":"TypeString","optional":true},"vm_agent_platform_updates_enabled":{"type":"TypeBool","optional":true,"default":false},"vtpm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":45,"read":5,"delete":45,"update":45}},"azurerm_linux_virtual_machine_scale_set":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"admin_password":{"type":"TypeString","optional":true,"forceNew":true},"admin_ssh_key":{"type":"TypeSet","optional":true,"elem":{"schema":{"public_key":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}}},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"automatic_instance_repair":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","required":true},"grace_period":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"automatic_os_upgrade_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"disable_automatic_rollback":{"type":"TypeBool","required":true},"enable_automatic_os_upgrade":{"type":"TypeBool","required":true}}},"maxItems":1},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"computer_name_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true},"data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"create_option":{"type":"TypeString","optional":true,"default":"Empty"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","required":true},"lun":{"type":"TypeInt","required":true},"name":{"type":"TypeString","optional":true},"storage_account_type":{"type":"TypeString","required":true},"ultra_ssd_disk_iops_read_write":{"type":"TypeInt","optional":true,"computed":true},"ultra_ssd_disk_mbps_read_write":{"type":"TypeInt","optional":true,"computed":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"disable_password_authentication":{"type":"TypeBool","optional":true,"default":true},"do_not_run_extensions_on_overprovisioned_machines":{"type":"TypeBool","optional":true,"default":false},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extension":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true,"default":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":false},"force_update_tag":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"provision_after_extensions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true}}}},"extension_operations_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"gallery_application":{"type":"TypeList","optional":true,"elem":{"schema":{"configuration_blob_uri":{"type":"TypeString","optional":true,"forceNew":true},"order":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"tag":{"type":"TypeString","optional":true,"forceNew":true},"version_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":100},"health_probe_id":{"type":"TypeString","optional":true},"host_group_id":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"instances":{"type":"TypeInt","optional":true,"default":0},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","required":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enable_accelerated_networking":{"type":"TypeBool","optional":true,"default":false},"enable_ip_forwarding":{"type":"TypeBool","optional":true,"default":false},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":20},"load_balancer_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true,"default":false},"public_ip_address":{"type":"TypeList","optional":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","optional":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"ip_tag":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true}}}},"subnet_id":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true,"default":"IPv4"}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","optional":true},"primary":{"type":"TypeBool","optional":true,"default":false}}}},"os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_encryption_type":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"overprovision":{"type":"TypeBool","optional":true,"default":true},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain_count":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rolling_upgrade_policy":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cross_zone_upgrades_enabled":{"type":"TypeBool","optional":true},"max_batch_instance_percent":{"type":"TypeInt","required":true},"max_unhealthy_instance_percent":{"type":"TypeInt","required":true},"max_unhealthy_upgraded_instance_percent":{"type":"TypeInt","required":true},"maximum_surge_instances_enabled":{"type":"TypeBool","optional":true},"pause_time_between_batches":{"type":"TypeString","required":true},"prioritize_unhealthy_instances_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"scale_in":{"type":"TypeList","optional":true,"elem":{"schema":{"force_deletion_enabled":{"type":"TypeBool","optional":true,"default":false},"rule":{"type":"TypeString","optional":true,"default":"Default"}}},"maxItems":1},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"secure_boot_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"single_placement_group":{"type":"TypeBool","optional":true,"default":true},"sku":{"type":"TypeString","required":true},"source_image_id":{"type":"TypeString","optional":true},"source_image_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"spot_restore":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"timeout":{"type":"TypeString","optional":true,"default":"PT1H","forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"unique_id":{"type":"TypeString","computed":true},"upgrade_mode":{"type":"TypeString","optional":true,"default":"Manual","forceNew":true},"user_data":{"type":"TypeString","optional":true},"vtpm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"zone_balance":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_linux_web_app":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Required"},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","required":true}}},"maxItems":1},"detailed_error_messages":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_plan_id":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":true},"api_definition_url":{"type":"TypeString","optional":true},"api_management_api_id":{"type":"TypeString","optional":true},"app_command_line":{"type":"TypeString","optional":true},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"docker_image_name":{"type":"TypeString","optional":true},"docker_registry_password":{"type":"TypeString","optional":true},"docker_registry_url":{"type":"TypeString","optional":true},"docker_registry_username":{"type":"TypeString","optional":true},"dotnet_version":{"type":"TypeString","optional":true},"go_version":{"type":"TypeString","optional":true},"java_server":{"type":"TypeString","optional":true},"java_server_version":{"type":"TypeString","optional":true},"java_version":{"type":"TypeString","optional":true},"node_version":{"type":"TypeString","optional":true},"php_version":{"type":"TypeString","optional":true},"python_version":{"type":"TypeString","optional":true},"ruby_version":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_heal_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"minimum_process_execution_time":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"requests":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"time_taken":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request_with_path":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"time_taken":{"type":"TypeString","required":true}}}},"status_code":{"type":"TypeSet","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"status_code_range":{"type":"TypeString","required":true},"sub_status":{"type":"TypeInt","optional":true},"win32_status_code":{"type":"TypeInt","optional":true}}}}}},"maxItems":1}}},"maxItems":1},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled"},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests"},"local_mysql_enabled":{"type":"TypeBool","optional":true,"default":false},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false},"worker_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"connection_string_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Linux Web App. **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_linux_web_app_slot":{"schema":{"app_metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"app_service_id":{"type":"TypeString","required":true},"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Required"},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","required":true}}},"maxItems":1},"detailed_error_messages":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_plan_id":{"type":"TypeString","optional":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":true},"api_definition_url":{"type":"TypeString","optional":true},"api_management_api_id":{"type":"TypeString","optional":true},"app_command_line":{"type":"TypeString","optional":true},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"docker_image_name":{"type":"TypeString","optional":true},"docker_registry_password":{"type":"TypeString","optional":true},"docker_registry_url":{"type":"TypeString","optional":true},"docker_registry_username":{"type":"TypeString","optional":true},"dotnet_version":{"type":"TypeString","optional":true},"go_version":{"type":"TypeString","optional":true},"java_server":{"type":"TypeString","optional":true},"java_server_version":{"type":"TypeString","optional":true},"java_version":{"type":"TypeString","optional":true},"node_version":{"type":"TypeString","optional":true},"php_version":{"type":"TypeString","optional":true},"python_version":{"type":"TypeString","optional":true},"ruby_version":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_heal_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"minimum_process_execution_time":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"requests":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"time_taken":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request_with_path":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"time_taken":{"type":"TypeString","required":true}}}},"status_code":{"type":"TypeSet","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"status_code_range":{"type":"TypeString","required":true},"sub_status":{"type":"TypeInt","optional":true},"win32_status_code":{"type":"TypeInt","optional":true}}}}}},"maxItems":1}}},"maxItems":1},"auto_swap_slot_name":{"type":"TypeString","optional":true},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled"},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests"},"local_mysql_enabled":{"type":"TypeBool","optional":true,"default":false},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false},"worker_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Windows Web App. **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_load_test":{"schema":{"data_plane_uri":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"encryption":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"identity_id":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"key_url":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_local_network_gateway":{"schema":{"address_space":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"bgp_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"asn":{"type":"TypeInt","required":true},"bgp_peering_address":{"type":"TypeString","required":true},"peer_weight":{"type":"TypeInt","optional":true}}},"maxItems":1},"gateway_address":{"type":"TypeString","optional":true},"gateway_fqdn":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_cluster":{"schema":{"cluster_id":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"size_gb":{"type":"TypeInt","optional":true,"default":100},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":360,"read":5,"delete":30,"update":360}},"azurerm_log_analytics_cluster_customer_managed_key":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"log_analytics_cluster_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":360,"read":5,"delete":30,"update":360}},"azurerm_log_analytics_data_export_rule":{"schema":{"destination_resource_id":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":false},"export_rule_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"table_names":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"workspace_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_datasource_windows_event":{"schema":{"event_log_name":{"type":"TypeString","required":true},"event_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"workspace_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_datasource_windows_performance_counter":{"schema":{"counter_name":{"type":"TypeString","required":true},"instance_name":{"type":"TypeString","required":true},"interval_seconds":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"object_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"workspace_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_linked_service":{"schema":{"name":{"type":"TypeString","computed":true},"read_access_id":{"type":"TypeString","optional":true,"computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"workspace_id":{"type":"TypeString","required":true},"write_access_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_linked_storage_account":{"schema":{"data_source_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"workspace_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_query_pack":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_query_pack_query":{"schema":{"additional_settings_json":{"type":"TypeString","optional":true},"body":{"type":"TypeString","required":true},"categories":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"query_pack_id":{"type":"TypeString","required":true,"forceNew":true},"resource_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"solutions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_saved_search":{"schema":{"category":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true,"forceNew":true},"function_alias":{"type":"TypeString","optional":true,"forceNew":true},"function_parameters":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_log_analytics_solution":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"product":{"type":"TypeString","required":true,"forceNew":true},"promotion_code":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"solution_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_name":{"type":"TypeString","required":true,"forceNew":true},"workspace_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_storage_insights":{"schema":{"blob_container_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true},"storage_account_key":{"type":"TypeString","required":true},"table_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_workspace":{"schema":{"allow_resource_only_permissions":{"type":"TypeBool","optional":true,"default":true},"cmk_for_query_forced":{"type":"TypeBool","optional":true},"daily_quota_gb":{"type":"TypeFloat","optional":true,"default":-1},"data_collection_rule_id":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"immediate_data_purge_on_30_days_enabled":{"type":"TypeBool","optional":true},"internet_ingestion_enabled":{"type":"TypeBool","optional":true,"default":true},"internet_query_enabled":{"type":"TypeBool","optional":true,"default":true},"local_authentication_disabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_shared_key":{"type":"TypeString","computed":true},"reservation_capacity_in_gb_per_day":{"type":"TypeInt","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_in_days":{"type":"TypeInt","optional":true,"computed":true},"secondary_shared_key":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_workspace_table":{"schema":{"name":{"type":"TypeString","required":true},"plan":{"type":"TypeString","optional":true,"default":"Analytics"},"retention_in_days":{"type":"TypeInt","optional":true},"total_retention_in_days":{"type":"TypeInt","optional":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":5,"read":5,"delete":30,"update":5}},"azurerm_logic_app_action_custom":{"schema":{"body":{"type":"TypeString","required":true},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_action_http":{"schema":{"body":{"type":"TypeString","optional":true},"headers":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"method":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"queries":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"run_after":{"type":"TypeSet","optional":true,"elem":{"schema":{"action_name":{"type":"TypeString","required":true},"action_result":{"type":"TypeString","required":true}}},"minItems":1},"uri":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account":{"schema":{"integration_service_environment_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_agreement":{"schema":{"agreement_type":{"type":"TypeString","required":true},"content":{"type":"TypeString","required":true},"guest_identity":{"type":"TypeList","required":true,"elem":{"schema":{"qualifier":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"guest_partner_name":{"type":"TypeString","required":true},"host_identity":{"type":"TypeList","required":true,"elem":{"schema":{"qualifier":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"host_partner_name":{"type":"TypeString","required":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_assembly":{"schema":{"assembly_name":{"type":"TypeString","required":true},"assembly_version":{"type":"TypeString","optional":true,"default":"0.0.0.0"},"content":{"type":"TypeString","optional":true},"content_link_uri":{"type":"TypeString","optional":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_batch_configuration":{"schema":{"batch_group_name":{"type":"TypeString","required":true,"forceNew":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"release_criteria":{"type":"TypeList","required":true,"elem":{"schema":{"batch_size":{"type":"TypeInt","optional":true},"message_count":{"type":"TypeInt","optional":true},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"end_time":{"type":"TypeString","optional":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","required":true},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"hours":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"minutes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"month_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"monthly":{"type":"TypeSet","optional":true,"elem":{"schema":{"week":{"type":"TypeInt","required":true},"weekday":{"type":"TypeString","required":true}}}},"week_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"start_time":{"type":"TypeString","optional":true},"time_zone":{"type":"TypeString","optional":true}}},"maxItems":1}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_certificate":{"schema":{"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"key_vault_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","required":true},"key_version":{"type":"TypeString","optional":true}}},"maxItems":1},"metadata":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_certificate":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_map":{"schema":{"content":{"type":"TypeString","required":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"map_type":{"type":"TypeString","required":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_partner":{"schema":{"business_identity":{"type":"TypeSet","required":true,"elem":{"schema":{"qualifier":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_schema":{"schema":{"content":{"type":"TypeString","required":true},"file_name":{"type":"TypeString","optional":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_session":{"schema":{"content":{"type":"TypeString","required":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_standard":{"schema":{"app_service_plan_id":{"type":"TypeString","required":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"bundle_version":{"type":"TypeString","optional":true,"default":"[1.*, 2.0.0)"},"client_affinity_enabled":{"type":"TypeBool","optional":true,"computed":true},"client_certificate_mode":{"type":"TypeString","optional":true},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":false},"app_scale_limit":{"type":"TypeInt","optional":true,"computed":true},"auto_swap_slot_name":{"type":"TypeString","computed":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"computed":true},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"default":false},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_min_tls_version":{"type":"TypeString","optional":true,"computed":true},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"storage_account_access_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_share_name":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"use_extension_bundle":{"type":"TypeBool","optional":true,"default":true},"version":{"type":"TypeString","optional":true,"default":"~4"},"virtual_network_subnet_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_trigger_custom":{"schema":{"body":{"type":"TypeString","required":true},"callback_url":{"type":"TypeString","computed":true},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_trigger_http_request":{"schema":{"callback_url":{"type":"TypeString","computed":true},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"method":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"relative_path":{"type":"TypeString","optional":true},"schema":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_trigger_recurrence":{"schema":{"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","required":true},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"at_these_hours":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"at_these_minutes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"on_these_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"start_time":{"type":"TypeString","optional":true},"time_zone":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_workflow":{"schema":{"access_control":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_caller_ip_address_range":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"content":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_caller_ip_address_range":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_caller_ip_address_range":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"open_authentication_policy":{"type":"TypeSet","optional":true,"elem":{"schema":{"claim":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"workflow_management":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_caller_ip_address_range":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"access_endpoint":{"type":"TypeString","computed":true},"connector_endpoint_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connector_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"integration_service_environment_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logic_app_integration_account_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workflow_endpoint_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"workflow_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"workflow_parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workflow_schema":{"type":"TypeString","optional":true,"default":"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#","forceNew":true},"workflow_version":{"type":"TypeString","optional":true,"default":"1.0.0.0","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_compute_cluster":{"schema":{"description":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"machine_learning_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_public_ip_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"scale_settings":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"max_node_count":{"type":"TypeInt","required":true,"forceNew":true},"min_node_count":{"type":"TypeInt","required":true,"forceNew":true},"scale_down_nodes_after_idle_duration":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"admin_password":{"type":"TypeString","optional":true,"forceNew":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"key_value":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"ssh_public_access_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"subnet_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"vm_priority":{"type":"TypeString","required":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_compute_instance":{"schema":{"assign_to_user":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"object_id":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","optional":true}}},"maxItems":1},"authorization_type":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"machine_learning_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_public_ip_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"ssh":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"port":{"type":"TypeInt","computed":true},"public_key":{"type":"TypeString","required":true},"username":{"type":"TypeString","computed":true}}},"maxItems":1},"subnet_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_machine_learning_datastore_blobstorage":{"schema":{"account_key":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"is_default":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"service_data_auth_identity":{"type":"TypeString","optional":true,"default":"None"},"shared_access_signature":{"type":"TypeString","optional":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_datastore_datalake_gen2":{"schema":{"authority_url":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"is_default":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"service_data_identity":{"type":"TypeString","optional":true,"default":"None"},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","optional":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_datastore_fileshare":{"schema":{"account_key":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"is_default":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"service_data_identity":{"type":"TypeString","optional":true,"default":"None"},"shared_access_signature":{"type":"TypeString","optional":true},"storage_fileshare_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_inference_cluster":{"schema":{"cluster_purpose":{"type":"TypeString","optional":true,"default":"FastProd","forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"machine_learning_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"ssl":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cert":{"type":"TypeString","optional":true,"default":"","forceNew":true},"cname":{"type":"TypeString","optional":true,"default":"","forceNew":true},"key":{"type":"TypeString","optional":true,"default":"","forceNew":true},"leaf_domain_label":{"type":"TypeString","optional":true,"default":"","forceNew":true},"overwrite_existing_domain":{"type":"TypeBool","optional":true,"default":"","forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_machine_learning_synapse_spark":{"schema":{"description":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"machine_learning_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"synapse_spark_pool_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_machine_learning_workspace":{"schema":{"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"container_registry_id":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"discovery_url":{"type":"TypeString","computed":true},"encryption":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"key_id":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"feature_store":{"type":"TypeList","optional":true,"elem":{"schema":{"computer_spark_runtime_version":{"type":"TypeString","optional":true},"offline_connection_name":{"type":"TypeString","optional":true},"online_connection_name":{"type":"TypeString","optional":true}}},"maxItems":1},"friendly_name":{"type":"TypeString","optional":true},"high_business_impact":{"type":"TypeBool","optional":true,"forceNew":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"image_build_compute_name":{"type":"TypeString","optional":true},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"kind":{"type":"TypeString","optional":true,"default":"Default"},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_network":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"isolation_mode":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_user_assigned_identity":{"type":"TypeString","optional":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serverless_compute":{"type":"TypeList","optional":true,"elem":{"schema":{"public_ip_enabled":{"type":"TypeBool","optional":true,"default":false},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"sku_name":{"type":"TypeString","optional":true,"default":"Basic"},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"v1_legacy_mode_enabled":{"type":"TypeBool","optional":true,"default":false},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_maintenance_assignment_dedicated_host":{"schema":{"dedicated_host_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_maintenance_assignment_dynamic_scope":{"schema":{"filter":{"type":"TypeList","required":true,"elem":{"schema":{"locations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"os_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tag_filter":{"type":"TypeString","optional":true,"default":"Any"},"tags":{"type":"TypeList","optional":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"maintenance_configuration_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":30}},"azurerm_maintenance_assignment_virtual_machine":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_maintenance_assignment_virtual_machine_scale_set":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_scale_set_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_maintenance_configuration":{"schema":{"in_guest_user_patch_mode":{"type":"TypeString","optional":true},"install_patches":{"type":"TypeList","optional":true,"elem":{"schema":{"linux":{"type":"TypeList","optional":true,"elem":{"schema":{"classifications_to_include":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"package_names_mask_to_exclude":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"package_names_mask_to_include":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1},"reboot":{"type":"TypeString","optional":true},"windows":{"type":"TypeList","optional":true,"elem":{"schema":{"classifications_to_include":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kb_numbers_to_exclude":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kb_numbers_to_include":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}}},"maxItems":1,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"visibility":{"type":"TypeString","optional":true,"default":"Custom"},"window":{"type":"TypeList","optional":true,"elem":{"schema":{"duration":{"type":"TypeString","optional":true},"expiration_date_time":{"type":"TypeString","optional":true},"recur_every":{"type":"TypeString","optional":true},"start_date_time":{"type":"TypeString","required":true},"time_zone":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_managed_application":{"schema":{"application_definition_id":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outputs":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"parameter_values":{"type":"TypeString","optional":true,"computed":true},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"promotion_code":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_managed_application_definition":{"schema":{"authorization":{"type":"TypeSet","optional":true,"elem":{"schema":{"role_definition_id":{"type":"TypeString","required":true},"service_principal_id":{"type":"TypeString","required":true}}},"minItems":1},"create_ui_definition":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"lock_level":{"type":"TypeString","required":true,"forceNew":true},"main_template":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"package_enabled":{"type":"TypeBool","optional":true,"default":true},"package_file_uri":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_managed_disk":{"schema":{"create_option":{"type":"TypeString","required":true,"forceNew":true},"disk_access_id":{"type":"TypeString","optional":true},"disk_encryption_set_id":{"type":"TypeString","optional":true},"disk_iops_read_only":{"type":"TypeInt","optional":true,"computed":true},"disk_iops_read_write":{"type":"TypeInt","optional":true,"computed":true},"disk_mbps_read_only":{"type":"TypeInt","optional":true,"computed":true},"disk_mbps_read_write":{"type":"TypeInt","optional":true,"computed":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"encryption_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","required":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"key_encryption_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"gallery_image_reference_id":{"type":"TypeString","optional":true,"forceNew":true},"hyper_v_generation":{"type":"TypeString","optional":true,"forceNew":true},"image_reference_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logical_sector_size":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"max_shares":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_access_policy":{"type":"TypeString","optional":true},"on_demand_bursting_enabled":{"type":"TypeBool","optional":true},"optimized_frequent_attach_enabled":{"type":"TypeBool","optional":true,"default":false},"os_type":{"type":"TypeString","optional":true},"performance_plus_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_type":{"type":"TypeString","optional":true,"forceNew":true},"source_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"source_uri":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","optional":true,"computed":true},"trusted_launch_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"upload_size_bytes":{"type":"TypeInt","optional":true,"forceNew":true},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_managed_disk_sas_token":{"schema":{"access_level":{"type":"TypeString","required":true,"forceNew":true},"duration_in_seconds":{"type":"TypeInt","required":true,"forceNew":true},"managed_disk_id":{"type":"TypeString","required":true,"forceNew":true},"sas_url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_managed_lustre_file_system":{"schema":{"encryption_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"hsm_setting":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"container_id":{"type":"TypeString","required":true,"forceNew":true},"import_prefix":{"type":"TypeString","optional":true,"forceNew":true},"logging_container_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","required":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"time_of_day_in_utc":{"type":"TypeString","required":true}}},"maxItems":1},"mgs_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"storage_capacity_in_tb":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group":{"schema":{"display_name":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"parent_management_group_id":{"type":"TypeString","optional":true,"computed":true},"subscription_ids":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"tenant_scoped_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group_policy_assignment":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enforce":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","optional":true,"forceNew":true},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true}}}},"not_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","computed":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"value":{"type":"TypeString","required":true}}}},"parameters":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true,"forceNew":true},"resource_selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","required":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group_policy_exemption":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"exemption_category":{"type":"TypeString","required":true},"expires_on":{"type":"TypeString","optional":true},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group_policy_remediation":{"schema":{"failure_percentage":{"type":"TypeFloat","optional":true},"location_filters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parallel_deployments":{"type":"TypeInt","optional":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true},"resource_count":{"type":"TypeInt","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group_subscription_association":{"schema":{"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5}},"azurerm_management_group_template_deployment":{"schema":{"debug_level":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_content":{"type":"TypeString","computed":true},"parameters_content":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_content":{"type":"TypeString","optional":true,"computed":true},"template_spec_version_id":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_management_lock":{"schema":{"lock_level":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_maps_account":{"schema":{"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"data_store":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_id":{"type":"TypeString","optional":true},"unique_name":{"type":"TypeString","required":true}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"x_ms_client_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_maps_creator":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"maps_account_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_units":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_marketplace_agreement":{"schema":{"license_text_link":{"type":"TypeString","computed":true},"offer":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeString","required":true,"forceNew":true},"privacy_policy_link":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_marketplace_role_assignment":{"schema":{"condition":{"type":"TypeString","optional":true,"forceNew":true},"condition_version":{"type":"TypeString","optional":true,"forceNew":true},"delegated_managed_identity_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_type":{"type":"TypeString","computed":true},"role_definition_id":{"type":"TypeString","optional":true,"forceNew":true},"role_definition_name":{"type":"TypeString","optional":true,"forceNew":true},"skip_service_principal_aad_check":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_mobile_network":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_country_code":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_code":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_attached_data_network":{"schema":{"dns_addresses":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_data_network_name":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_packet_core_data_plane_id":{"type":"TypeString","required":true,"forceNew":true},"network_address_port_translation":{"type":"TypeList","optional":true,"elem":{"schema":{"icmp_pinhole_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":180},"pinhole_maximum_number":{"type":"TypeInt","optional":true,"default":65536},"port_range":{"type":"TypeList","optional":true,"elem":{"schema":{"maximum":{"type":"TypeInt","optional":true,"default":49999},"minimum":{"type":"TypeInt","optional":true,"default":1024}}},"maxItems":1},"tcp_pinhole_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":180},"tcp_port_reuse_minimum_hold_time_in_seconds":{"type":"TypeInt","optional":true,"default":120},"udp_pinhole_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":180},"udp_port_reuse_minimum_hold_time_in_seconds":{"type":"TypeInt","optional":true,"default":60}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_equipment_address_pool_prefixes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"user_equipment_static_address_pool_prefixes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"user_plane_access_ipv4_address":{"type":"TypeString","optional":true},"user_plane_access_ipv4_gateway":{"type":"TypeString","optional":true},"user_plane_access_ipv4_subnet":{"type":"TypeString","optional":true},"user_plane_access_name":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_data_network":{"schema":{"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":30}},"azurerm_mobile_network_packet_core_control_plane":{"schema":{"control_plane_access_ipv4_address":{"type":"TypeString","optional":true},"control_plane_access_ipv4_gateway":{"type":"TypeString","optional":true},"control_plane_access_ipv4_subnet":{"type":"TypeString","optional":true},"control_plane_access_name":{"type":"TypeString","optional":true},"core_network_technology":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"interoperability_settings_json":{"type":"TypeString","optional":true},"local_diagnostics_access":{"type":"TypeList","required":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","required":true},"https_server_certificate_url":{"type":"TypeString","optional":true}}},"maxItems":1,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform":{"type":"TypeList","optional":true,"elem":{"schema":{"arc_kubernetes_cluster_id":{"type":"TypeString","optional":true},"custom_location_id":{"type":"TypeString","optional":true},"edge_device_id":{"type":"TypeString","optional":true},"stack_hci_cluster_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"sku":{"type":"TypeString","required":true},"software_version":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_equipment_mtu_in_bytes":{"type":"TypeInt","optional":true,"default":1440}},"timeouts":{"create":180,"read":5,"delete":180,"update":30}},"azurerm_mobile_network_packet_core_data_plane":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_packet_core_control_plane_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_plane_access_ipv4_address":{"type":"TypeString","optional":true},"user_plane_access_ipv4_gateway":{"type":"TypeString","optional":true},"user_plane_access_ipv4_subnet":{"type":"TypeString","optional":true},"user_plane_access_name":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_service":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"pcc_rule":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"precedence":{"type":"TypeInt","required":true},"qos_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"allocation_and_retention_priority_level":{"type":"TypeInt","optional":true},"guaranteed_bit_rate":{"type":"TypeList","optional":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1},"maximum_bit_rate":{"type":"TypeList","required":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1},"preemption_capability":{"type":"TypeString","optional":true,"default":"NotPreempt"},"preemption_vulnerability":{"type":"TypeString","optional":true,"default":"Preemptable"},"qos_indicator":{"type":"TypeInt","required":true}}},"maxItems":1},"service_data_flow_template":{"type":"TypeList","required":true,"elem":{"schema":{"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"ports":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"protocol":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"remote_ip_list":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"traffic_control_enabled":{"type":"TypeBool","optional":true,"default":true}}}},"service_precedence":{"type":"TypeInt","required":true},"service_qos_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"allocation_and_retention_priority_level":{"type":"TypeInt","optional":true,"default":9},"maximum_bit_rate":{"type":"TypeList","required":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1},"preemption_capability":{"type":"TypeString","optional":true},"preemption_vulnerability":{"type":"TypeString","optional":true},"qos_indicator":{"type":"TypeInt","optional":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_sim":{"schema":{"authentication_key":{"type":"TypeString","required":true},"device_type":{"type":"TypeString","optional":true},"integrated_circuit_card_identifier":{"type":"TypeString","required":true,"forceNew":true},"international_mobile_subscriber_identity":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_sim_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"operator_key_code":{"type":"TypeString","required":true},"sim_policy_id":{"type":"TypeString","optional":true},"sim_state":{"type":"TypeString","computed":true},"static_ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"attached_data_network_id":{"type":"TypeString","required":true},"slice_id":{"type":"TypeString","required":true},"static_ipv4_address":{"type":"TypeString","optional":true}}},"minItems":1},"vendor_key_fingerprint":{"type":"TypeString","computed":true},"vendor_name":{"type":"TypeString","computed":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_mobile_network_sim_group":{"schema":{"encryption_key_url":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_sim_policy":{"schema":{"default_slice_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"rat_frequency_selection_priority_index":{"type":"TypeInt","optional":true},"registration_timer_in_seconds":{"type":"TypeInt","optional":true,"default":3240},"slice":{"type":"TypeList","required":true,"elem":{"schema":{"data_network":{"type":"TypeList","required":true,"elem":{"schema":{"additional_allowed_session_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"allocation_and_retention_priority_level":{"type":"TypeInt","optional":true,"default":0},"allowed_services_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"data_network_id":{"type":"TypeString","required":true},"default_session_type":{"type":"TypeString","optional":true,"default":"IPv4"},"max_buffered_packets":{"type":"TypeInt","optional":true,"default":10},"preemption_capability":{"type":"TypeString","optional":true,"default":"NotPreempt"},"preemption_vulnerability":{"type":"TypeString","optional":true,"default":"NotPreemptable"},"qos_indicator":{"type":"TypeInt","required":true},"session_aggregate_maximum_bit_rate":{"type":"TypeList","required":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1}}}},"default_data_network_id":{"type":"TypeString","required":true},"slice_id":{"type":"TypeString","required":true}}},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_equipment_aggregate_maximum_bit_rate":{"type":"TypeList","required":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":180,"read":5,"delete":180,"update":60}},"azurerm_mobile_network_site":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_function_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_slice":{"schema":{"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"single_network_slice_selection_assistance_information":{"type":"TypeList","required":true,"elem":{"schema":{"slice_differentiator":{"type":"TypeString","optional":true},"slice_service_type":{"type":"TypeInt","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_monitor_aad_diagnostic_setting":{"schema":{"enabled_log":{"type":"TypeSet","optional":true,"elem":{"schema":{"category":{"type":"TypeString","required":true},"retention_policy":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true,"default":0},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}}}},"eventhub_authorization_rule_id":{"type":"TypeString","optional":true,"forceNew":true},"eventhub_name":{"type":"TypeString","optional":true,"forceNew":true},"log_analytics_workspace_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_monitor_action_group":{"schema":{"arm_role_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"role_id":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"automation_runbook_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"automation_account_id":{"type":"TypeString","required":true},"is_global_runbook":{"type":"TypeBool","required":true},"name":{"type":"TypeString","required":true},"runbook_name":{"type":"TypeString","required":true},"service_uri":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true,"default":false},"webhook_resource_id":{"type":"TypeString","required":true}}}},"azure_app_push_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"email_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"azure_function_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"function_app_resource_id":{"type":"TypeString","required":true},"function_name":{"type":"TypeString","required":true},"http_trigger_url":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"email_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"email_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"enabled":{"type":"TypeBool","optional":true,"default":true},"event_hub_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_name":{"type":"TypeString","required":true},"event_hub_namespace":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"itsm_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"region":{"type":"TypeString","required":true},"ticket_configuration":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","optional":true,"default":"global","forceNew":true},"logic_app_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"callback_url":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"resource_id":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"short_name":{"type":"TypeString","required":true},"sms_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"country_code":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"phone_number":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"voice_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"country_code":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"phone_number":{"type":"TypeString","required":true}}}},"webhook_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"aad_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"identifier_uri":{"type":"TypeString","optional":true,"computed":true},"object_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"service_uri":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_activity_log_alert":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_group_id":{"type":"TypeString","required":true},"webhook_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"criteria":{"type":"TypeList","required":true,"elem":{"schema":{"caller":{"type":"TypeString","optional":true},"category":{"type":"TypeString","required":true},"level":{"type":"TypeString","optional":true},"levels":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"operation_name":{"type":"TypeString","optional":true},"recommendation_category":{"type":"TypeString","optional":true},"recommendation_impact":{"type":"TypeString","optional":true},"recommendation_type":{"type":"TypeString","optional":true},"resource_group":{"type":"TypeString","optional":true},"resource_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_health":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"current":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"previous":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"reason":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"resource_id":{"type":"TypeString","optional":true},"resource_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_provider":{"type":"TypeString","optional":true},"resource_providers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_type":{"type":"TypeString","optional":true},"resource_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"service_health":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"events":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"locations":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"services":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"status":{"type":"TypeString","optional":true},"statuses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"sub_status":{"type":"TypeString","optional":true},"sub_statuses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_alert_processing_rule_action_group":{"schema":{"add_action_group_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"condition":{"type":"TypeList","optional":true,"elem":{"schema":{"alert_context":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"alert_rule_id":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"alert_rule_name":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"monitor_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"monitor_service":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"severity":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"signal_type":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource_group":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource_type":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"effective_from":{"type":"TypeString","optional":true},"effective_until":{"type":"TypeString","optional":true},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"daily":{"type":"TypeList","optional":true,"elem":{"schema":{"end_time":{"type":"TypeString","required":true},"start_time":{"type":"TypeString","required":true}}}},"monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_month":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"},"minItems":1},"end_time":{"type":"TypeString","optional":true},"start_time":{"type":"TypeString","optional":true}}}},"weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_week":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"end_time":{"type":"TypeString","optional":true},"start_time":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"time_zone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"scopes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_alert_processing_rule_suppression":{"schema":{"condition":{"type":"TypeList","optional":true,"elem":{"schema":{"alert_context":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"alert_rule_id":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"alert_rule_name":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"monitor_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"monitor_service":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"severity":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"signal_type":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource_group":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource_type":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"effective_from":{"type":"TypeString","optional":true},"effective_until":{"type":"TypeString","optional":true},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"daily":{"type":"TypeList","optional":true,"elem":{"schema":{"end_time":{"type":"TypeString","required":true},"start_time":{"type":"TypeString","required":true}}}},"monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_month":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"},"minItems":1},"end_time":{"type":"TypeString","optional":true},"start_time":{"type":"TypeString","optional":true}}}},"weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_week":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"end_time":{"type":"TypeString","optional":true},"start_time":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"time_zone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"scopes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_alert_prometheus_rule_group":{"schema":{"cluster_name":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"interval":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_group_id":{"type":"TypeString","required":true},"action_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":5},"alert":{"type":"TypeString","optional":true},"alert_resolution":{"type":"TypeList","optional":true,"elem":{"schema":{"auto_resolved":{"type":"TypeBool","optional":true},"time_to_resolve":{"type":"TypeString","optional":true}}},"maxItems":1},"annotations":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true},"expression":{"type":"TypeString","required":true},"for":{"type":"TypeString","optional":true},"labels":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"record":{"type":"TypeString","optional":true},"severity":{"type":"TypeInt","optional":true}}}},"rule_group_enabled":{"type":"TypeBool","optional":true},"scopes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_autoscale_setting":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeList","optional":true,"elem":{"schema":{"email":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"send_to_subscription_administrator":{"type":"TypeBool","optional":true,"default":false},"send_to_subscription_co_administrator":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"webhook":{"type":"TypeList","optional":true,"elem":{"schema":{"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"service_uri":{"type":"TypeString","required":true}}}}}},"maxItems":1},"predictive":{"type":"TypeList","optional":true,"elem":{"schema":{"look_ahead_time":{"type":"TypeString","optional":true},"scale_mode":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"profile":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeList","required":true,"elem":{"schema":{"default":{"type":"TypeInt","required":true},"maximum":{"type":"TypeInt","required":true},"minimum":{"type":"TypeInt","required":true}}},"maxItems":1},"fixed_date":{"type":"TypeList","optional":true,"elem":{"schema":{"end":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true},"timezone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"name":{"type":"TypeString","required":true},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"hours":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"},"maxItems":1},"minutes":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"},"maxItems":1},"timezone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"metric_trigger":{"type":"TypeList","required":true,"elem":{"schema":{"dimensions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"divide_by_instance_count":{"type":"TypeBool","optional":true},"metric_name":{"type":"TypeString","required":true},"metric_namespace":{"type":"TypeString","optional":true},"metric_resource_id":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"statistic":{"type":"TypeString","required":true},"threshold":{"type":"TypeFloat","required":true},"time_aggregation":{"type":"TypeString","required":true},"time_grain":{"type":"TypeString","required":true},"time_window":{"type":"TypeString","required":true}}},"maxItems":1},"scale_action":{"type":"TypeList","required":true,"elem":{"schema":{"cooldown":{"type":"TypeString","required":true},"direction":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":10}}},"maxItems":20},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_data_collection_endpoint":{"schema":{"configuration_access_endpoint":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"immutable_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs_ingestion_endpoint":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_data_collection_rule":{"schema":{"data_collection_endpoint_id":{"type":"TypeString","optional":true},"data_flow":{"type":"TypeList","required":true,"elem":{"schema":{"built_in_transform":{"type":"TypeString","optional":true},"destinations":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"output_stream":{"type":"TypeString","optional":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"transform_kql":{"type":"TypeString","optional":true}}},"minItems":1},"data_sources":{"type":"TypeList","optional":true,"elem":{"schema":{"data_import":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_data_source":{"type":"TypeList","required":true,"elem":{"schema":{"consumer_group":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"stream":{"type":"TypeString","required":true}}}}}},"maxItems":1},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"extension_json":{"type":"TypeString","optional":true},"extension_name":{"type":"TypeString","required":true},"input_data_sources":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"iis_log":{"type":"TypeList","optional":true,"elem":{"schema":{"log_directories":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"log_file":{"type":"TypeList","optional":true,"elem":{"schema":{"file_patterns":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"settings":{"type":"TypeList","optional":true,"elem":{"schema":{"text":{"type":"TypeList","required":true,"elem":{"schema":{"record_start_timestamp_format":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"performance_counter":{"type":"TypeList","optional":true,"elem":{"schema":{"counter_specifiers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"sampling_frequency_in_seconds":{"type":"TypeInt","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"platform_telemetry":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"prometheus_forwarder":{"type":"TypeList","optional":true,"elem":{"schema":{"label_include_filter":{"type":"TypeSet","optional":true,"elem":{"schema":{"label":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"syslog":{"type":"TypeList","optional":true,"elem":{"schema":{"facility_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"log_levels":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"windows_event_log":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"x_path_queries":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"windows_firewall_log":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"destinations":{"type":"TypeList","required":true,"elem":{"schema":{"azure_monitor_metrics":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}},"maxItems":1},"event_hub":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"event_hub_direct":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"log_analytics":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"workspace_resource_id":{"type":"TypeString","required":true}}}},"monitor_account":{"type":"TypeList","optional":true,"elem":{"schema":{"monitor_account_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"storage_blob":{"type":"TypeList","optional":true,"elem":{"schema":{"container_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}}},"storage_blob_direct":{"type":"TypeList","optional":true,"elem":{"schema":{"container_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}}},"storage_table_direct":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true},"table_name":{"type":"TypeString","required":true}}}}}},"maxItems":1,"minItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"immutable_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"stream_declaration":{"type":"TypeSet","optional":true,"elem":{"schema":{"column":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"stream_name":{"type":"TypeString","required":true}}},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_data_collection_rule_association":{"schema":{"data_collection_endpoint_id":{"type":"TypeString","optional":true},"data_collection_rule_id":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"default":"configurationAccessEndpoint","forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_diagnostic_setting":{"schema":{"enabled_log":{"type":"TypeSet","optional":true,"elem":{"schema":{"category":{"type":"TypeString","optional":true},"category_group":{"type":"TypeString","optional":true},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true},"enabled":{"type":"TypeBool","required":true}}},"maxItems":1}}}},"eventhub_authorization_rule_id":{"type":"TypeString","optional":true},"eventhub_name":{"type":"TypeString","optional":true},"log_analytics_destination_type":{"type":"TypeString","optional":true,"computed":true},"log_analytics_workspace_id":{"type":"TypeString","optional":true},"metric":{"type":"TypeSet","optional":true,"elem":{"schema":{"category":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true},"enabled":{"type":"TypeBool","required":true}}},"maxItems":1}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"partner_solution_id":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":60,"update":30}},"azurerm_monitor_metric_alert":{"schema":{"action":{"type":"TypeSet","optional":true,"elem":{"schema":{"action_group_id":{"type":"TypeString","required":true},"webhook_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"application_insights_web_test_location_availability_criteria":{"type":"TypeList","optional":true,"elem":{"schema":{"component_id":{"type":"TypeString","required":true},"failed_location_count":{"type":"TypeInt","required":true},"web_test_id":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"auto_mitigate":{"type":"TypeBool","optional":true,"default":true},"criteria":{"type":"TypeList","optional":true,"elem":{"schema":{"aggregation":{"type":"TypeString","required":true},"dimension":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"metric_name":{"type":"TypeString","required":true},"metric_namespace":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"skip_metric_validation":{"type":"TypeBool","optional":true,"default":false},"threshold":{"type":"TypeFloat","required":true}}},"minItems":1},"description":{"type":"TypeString","optional":true},"dynamic_criteria":{"type":"TypeList","optional":true,"elem":{"schema":{"aggregation":{"type":"TypeString","required":true},"alert_sensitivity":{"type":"TypeString","required":true},"dimension":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"evaluation_failure_count":{"type":"TypeInt","optional":true,"default":4},"evaluation_total_count":{"type":"TypeInt","optional":true,"default":4},"ignore_data_before":{"type":"TypeString","optional":true},"metric_name":{"type":"TypeString","required":true},"metric_namespace":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"skip_metric_validation":{"type":"TypeBool","optional":true}}},"maxItems":1,"minItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"frequency":{"type":"TypeString","optional":true,"default":"PT1M"},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"severity":{"type":"TypeInt","optional":true,"default":3},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_location":{"type":"TypeString","optional":true,"description":"The location of the target pluginsdk. Required when using subscription, resource group scope or multiple scopes.","computed":true},"target_resource_type":{"type":"TypeString","optional":true,"description":"The resource type (e.g. Microsoft.Compute/virtualMachines) of the target pluginsdk. Required when using subscription, resource group scope or multiple scopes.","computed":true},"window_size":{"type":"TypeString","optional":true,"default":"PT5M"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_private_link_scope":{"schema":{"ingestion_access_mode":{"type":"TypeString","optional":true,"default":"Open"},"name":{"type":"TypeString","required":true,"forceNew":true},"query_access_mode":{"type":"TypeString","optional":true,"default":"Open"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_private_link_scoped_service":{"schema":{"linked_resource_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_monitor_scheduled_query_rules_alert":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"action_group":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"custom_webhook_payload":{"type":"TypeString","optional":true},"email_subject":{"type":"TypeString","optional":true}}},"maxItems":1},"authorized_resource_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":100},"auto_mitigation_enabled":{"type":"TypeBool","optional":true,"default":false},"data_source_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"frequency":{"type":"TypeInt","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query":{"type":"TypeString","required":true},"query_type":{"type":"TypeString","optional":true,"default":"ResultCount"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"severity":{"type":"TypeInt","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"throttling":{"type":"TypeInt","optional":true},"time_window":{"type":"TypeInt","required":true},"trigger":{"type":"TypeList","required":true,"elem":{"schema":{"metric_trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"metric_column":{"type":"TypeString","optional":true},"metric_trigger_type":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeFloat","required":true}}},"maxItems":1},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeFloat","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_scheduled_query_rules_alert_v2":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"custom_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auto_mitigation_enabled":{"type":"TypeBool","optional":true,"default":false},"created_with_api_version":{"type":"TypeString","computed":true},"criteria":{"type":"TypeList","required":true,"elem":{"schema":{"dimension":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"failing_periods":{"type":"TypeList","optional":true,"elem":{"schema":{"minimum_failing_periods_to_trigger_alert":{"type":"TypeInt","required":true},"number_of_evaluation_periods":{"type":"TypeInt","required":true}}},"maxItems":1},"metric_measure_column":{"type":"TypeString","optional":true},"operator":{"type":"TypeString","required":true},"query":{"type":"TypeString","required":true},"resource_id_column":{"type":"TypeString","optional":true},"threshold":{"type":"TypeFloat","required":true},"time_aggregation_method":{"type":"TypeString","required":true}}},"minItems":1},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"evaluation_frequency":{"type":"TypeString","required":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"is_a_legacy_log_analytics_rule":{"type":"TypeBool","computed":true},"is_workspace_alerts_storage_configured":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mute_actions_after_alert_duration":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query_time_range_override":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1,"minItems":1},"severity":{"type":"TypeInt","required":true},"skip_query_validation":{"type":"TypeBool","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"window_duration":{"type":"TypeString","required":true},"workspace_alerts_storage_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_scheduled_query_rules_log":{"schema":{"authorized_resource_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"criteria":{"type":"TypeList","required":true,"elem":{"schema":{"dimension":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"Include"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"metric_name":{"type":"TypeString","required":true}}},"maxItems":1},"data_source_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_smart_detector_alert_rule":{"schema":{"action_group":{"type":"TypeList","required":true,"elem":{"schema":{"email_subject":{"type":"TypeString","optional":true},"ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"webhook_payload":{"type":"TypeString","optional":true}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"detector_type":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"frequency":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope_resource_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"severity":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"throttling_duration":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_workspace":{"schema":{"default_data_collection_endpoint_id":{"type":"TypeString","computed":true},"default_data_collection_rule_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"query_endpoint":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_database":{"schema":{"auto_pause_delay_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"collation":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"create_mode":{"type":"TypeString","optional":true,"default":"Default","forceNew":true},"creation_source_database_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"elastic_pool_id":{"type":"TypeString","optional":true},"enclave_type":{"type":"TypeString","optional":true,"computed":true},"geo_backup_enabled":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"import":{"type":"TypeList","optional":true,"elem":{"schema":{"administrator_login":{"type":"TypeString","required":true},"administrator_login_password":{"type":"TypeString","required":true},"authentication_type":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_key":{"type":"TypeString","required":true},"storage_key_type":{"type":"TypeString","required":true},"storage_uri":{"type":"TypeString","required":true}}},"maxItems":1},"ledger_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"license_type":{"type":"TypeString","optional":true,"computed":true},"long_term_retention_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"monthly_retention":{"type":"TypeString","optional":true,"computed":true},"week_of_year":{"type":"TypeInt","optional":true,"computed":true},"weekly_retention":{"type":"TypeString","optional":true,"computed":true},"yearly_retention":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"maintenance_configuration_name":{"type":"TypeString","optional":true,"computed":true},"max_size_gb":{"type":"TypeInt","optional":true,"computed":true},"min_capacity":{"type":"TypeFloat","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"read_replica_count":{"type":"TypeInt","optional":true,"computed":true},"read_scale":{"type":"TypeBool","optional":true,"computed":true},"recover_database_id":{"type":"TypeString","optional":true},"recovery_point_id":{"type":"TypeString","optional":true},"restore_dropped_database_id":{"type":"TypeString","optional":true},"restore_long_term_retention_backup_id":{"type":"TypeString","optional":true},"restore_point_in_time":{"type":"TypeString","optional":true,"computed":true},"sample_name":{"type":"TypeString","optional":true,"computed":true},"secondary_type":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"short_term_retention_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"backup_interval_in_hours":{"type":"TypeInt","optional":true,"computed":true},"retention_days":{"type":"TypeInt","required":true}}},"maxItems":1},"sku_name":{"type":"TypeString","optional":true,"computed":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"Geo"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threat_detection_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins":{"type":"TypeString","optional":true,"default":"Disabled"},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"retention_days":{"type":"TypeInt","optional":true},"state":{"type":"TypeString","optional":true,"default":"Disabled"},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}}},"maxItems":1},"transparent_data_encryption_enabled":{"type":"TypeBool","optional":true,"default":true},"transparent_data_encryption_key_automatic_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"transparent_data_encryption_key_vault_key_id":{"type":"TypeString","optional":true},"zone_redundant":{"type":"TypeBool","optional":true,"computed":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_database_extended_auditing_policy":{"schema":{"database_id":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_access_key_is_secondary":{"type":"TypeBool","optional":true,"default":false},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_database_vulnerability_assessment_rule_baseline":{"schema":{"baseline_name":{"type":"TypeString","optional":true,"default":"default","forceNew":true},"baseline_result":{"type":"TypeSet","required":true,"elem":{"schema":{"result":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"database_name":{"type":"TypeString","required":true,"forceNew":true},"rule_id":{"type":"TypeString","required":true,"forceNew":true},"server_vulnerability_assessment_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_elasticpool":{"schema":{"enclave_type":{"type":"TypeString","optional":true,"computed":true},"license_type":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_name":{"type":"TypeString","optional":true,"default":"SQL_Default"},"max_size_bytes":{"type":"TypeInt","optional":true,"computed":true},"max_size_gb":{"type":"TypeFloat","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"per_database_settings":{"type":"TypeList","required":true,"elem":{"schema":{"max_capacity":{"type":"TypeFloat","required":true},"min_capacity":{"type":"TypeFloat","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"family":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_failover_group":{"schema":{"databases":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"partner_server":{"type":"TypeList","required":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"role":{"type":"TypeString","computed":true}}},"minItems":1},"read_write_endpoint_failover_policy":{"type":"TypeList","required":true,"elem":{"schema":{"grace_minutes":{"type":"TypeInt","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1},"readonly_endpoint_failover_policy_enabled":{"type":"TypeBool","optional":true,"computed":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_job_agent":{"schema":{"database_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_job_credential":{"schema":{"job_agent_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_managed_database":{"schema":{"long_term_retention_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"monthly_retention":{"type":"TypeString","optional":true,"computed":true},"week_of_year":{"type":"TypeInt","optional":true,"computed":true},"weekly_retention":{"type":"TypeString","optional":true,"computed":true},"yearly_retention":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"point_in_time_restore":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"restore_point_in_time":{"type":"TypeString","required":true,"forceNew":true},"source_database_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"short_term_retention_days":{"type":"TypeInt","optional":true,"default":7}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_managed_instance":{"schema":{"administrator_login":{"type":"TypeString","required":true,"forceNew":true},"administrator_login_password":{"type":"TypeString","required":true},"collation":{"type":"TypeString","optional":true,"default":"SQL_Latin1_General_CP1_CI_AS","forceNew":true},"dns_zone":{"type":"TypeString","computed":true},"dns_zone_partner_id":{"type":"TypeString","optional":true},"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_name":{"type":"TypeString","optional":true,"default":"SQL_Default"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"proxy_override":{"type":"TypeString","optional":true,"default":"Default"},"public_data_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_principal_type":{"type":"TypeString","optional":true},"sku_name":{"type":"TypeString","required":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"GRS","forceNew":true},"storage_size_in_gb":{"type":"TypeInt","required":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timezone_id":{"type":"TypeString","optional":true,"default":"UTC","forceNew":true},"vcores":{"type":"TypeInt","required":true},"zone_redundant_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":1440,"read":5,"delete":1440,"update":1440}},"azurerm_mssql_managed_instance_active_directory_administrator":{"schema":{"azuread_authentication_only":{"type":"TypeBool","optional":true},"login_username":{"type":"TypeString","required":true},"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"object_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":180,"update":30}},"azurerm_mssql_managed_instance_failover_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partner_managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"partner_region":{"type":"TypeList","computed":true,"elem":{"schema":{"location":{"type":"TypeString","computed":true},"role":{"type":"TypeString","computed":true}}}},"read_write_endpoint_failover_policy":{"type":"TypeList","required":true,"elem":{"schema":{"grace_minutes":{"type":"TypeInt","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1},"readonly_endpoint_failover_policy_enabled":{"type":"TypeBool","optional":true,"default":true},"role":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_managed_instance_security_alert_policy":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins_enabled":{"type":"TypeBool","optional":true,"default":false},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true},"managed_instance_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_days":{"type":"TypeInt","optional":true,"default":0},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_managed_instance_transparent_data_encryption":{"schema":{"auto_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"key_vault_key_id":{"type":"TypeString","optional":true},"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_managed_instance_vulnerability_assessment":{"schema":{"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"recurring_scans":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email_subscription_admins":{"type":"TypeBool","optional":true,"default":true},"emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_container_path":{"type":"TypeString","required":true},"storage_container_sas_key":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_outbound_firewall_rule":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_mssql_server":{"schema":{"administrator_login":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"administrator_login_password":{"type":"TypeString","optional":true},"azuread_administrator":{"type":"TypeList","optional":true,"elem":{"schema":{"azuread_authentication_only":{"type":"TypeBool","optional":true,"computed":true},"login_username":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1,"minItems":1},"connection_policy":{"type":"TypeString","optional":true,"default":"Default"},"fully_qualified_domain_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_network_restriction_enabled":{"type":"TypeBool","optional":true,"default":false},"primary_user_assigned_identity_id":{"type":"TypeString","optional":true,"computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"restorable_dropped_database_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"transparent_data_encryption_key_vault_key_id":{"type":"TypeString","optional":true},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_server_dns_alias":{"schema":{"dns_record":{"type":"TypeString","computed":true},"mssql_server_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10}},"azurerm_mssql_server_extended_auditing_policy":{"schema":{"audit_actions_and_groups":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"predicate_expression":{"type":"TypeString","optional":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"server_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_access_key_is_secondary":{"type":"TypeBool","optional":true,"default":false},"storage_account_subscription_id":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_server_microsoft_support_auditing_policy":{"schema":{"blob_storage_endpoint":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_subscription_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_server_security_alert_policy":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins":{"type":"TypeBool","optional":true,"default":false},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_days":{"type":"TypeInt","optional":true,"default":0},"server_name":{"type":"TypeString","required":true,"forceNew":true},"state":{"type":"TypeString","required":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_server_transparent_data_encryption":{"schema":{"auto_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"key_vault_key_id":{"type":"TypeString","optional":true},"managed_hsm_key_id":{"type":"TypeString","optional":true},"server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_server_vulnerability_assessment":{"schema":{"recurring_scans":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email_subscription_admins":{"type":"TypeBool","optional":true,"default":false},"emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"server_security_alert_policy_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_container_path":{"type":"TypeString","required":true},"storage_container_sas_key":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_virtual_machine":{"schema":{"assessment":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"run_immediately":{"type":"TypeBool","optional":true,"default":false},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"monthly_occurrence":{"type":"TypeInt","optional":true},"start_time":{"type":"TypeString","required":true},"weekly_interval":{"type":"TypeInt","optional":true}}},"maxItems":1}}},"maxItems":1},"auto_backup":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_enabled":{"type":"TypeBool","optional":true,"default":false},"encryption_password":{"type":"TypeString","optional":true},"manual_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_week":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"full_backup_frequency":{"type":"TypeString","required":true},"full_backup_start_hour":{"type":"TypeInt","required":true},"full_backup_window_in_hours":{"type":"TypeInt","required":true},"log_backup_frequency_in_minutes":{"type":"TypeInt","required":true}}},"maxItems":1},"retention_period_in_days":{"type":"TypeInt","required":true},"storage_account_access_key":{"type":"TypeString","required":true},"storage_blob_endpoint":{"type":"TypeString","required":true},"system_databases_backup_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"auto_patching":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"maintenance_window_duration_in_minutes":{"type":"TypeInt","required":true},"maintenance_window_starting_hour":{"type":"TypeInt","required":true}}},"maxItems":1},"key_vault_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_url":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true},"service_principal_name":{"type":"TypeString","required":true,"forceNew":true},"service_principal_secret":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"r_services_enabled":{"type":"TypeBool","optional":true},"sql_connectivity_port":{"type":"TypeInt","optional":true,"default":1433},"sql_connectivity_type":{"type":"TypeString","optional":true,"default":"PRIVATE"},"sql_connectivity_update_password":{"type":"TypeString","optional":true},"sql_connectivity_update_username":{"type":"TypeString","optional":true},"sql_instance":{"type":"TypeList","optional":true,"elem":{"schema":{"adhoc_workloads_optimization_enabled":{"type":"TypeBool","optional":true,"default":false},"collation":{"type":"TypeString","optional":true,"default":"SQL_Latin1_General_CP1_CI_AS","forceNew":true},"instant_file_initialization_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"lock_pages_in_memory_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"max_dop":{"type":"TypeInt","optional":true,"default":0},"max_server_memory_mb":{"type":"TypeInt","optional":true,"default":2147483647},"min_server_memory_mb":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"sql_license_type":{"type":"TypeString","optional":true,"forceNew":true},"sql_virtual_machine_group_id":{"type":"TypeString","optional":true},"storage_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"data_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"default_file_path":{"type":"TypeString","required":true},"luns":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"}}}},"maxItems":1},"disk_type":{"type":"TypeString","required":true},"log_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"default_file_path":{"type":"TypeString","required":true},"luns":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"}}}},"maxItems":1},"storage_workload_type":{"type":"TypeString","required":true},"system_db_on_data_disk_enabled":{"type":"TypeBool","optional":true,"default":false},"temp_db_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"data_file_count":{"type":"TypeInt","optional":true,"default":8},"data_file_growth_in_mb":{"type":"TypeInt","optional":true,"default":512},"data_file_size_mb":{"type":"TypeInt","optional":true,"default":256},"default_file_path":{"type":"TypeString","required":true},"log_file_growth_mb":{"type":"TypeInt","optional":true,"default":512},"log_file_size_mb":{"type":"TypeInt","optional":true,"default":256},"luns":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"}}}},"maxItems":1}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"wsfc_domain_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"cluster_bootstrap_account_password":{"type":"TypeString","required":true},"cluster_operator_account_password":{"type":"TypeString","required":true},"sql_service_account_password":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_virtual_machine_availability_group_listener":{"schema":{"availability_group_name":{"type":"TypeString","optional":true,"forceNew":true},"load_balancer_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"load_balancer_id":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","required":true,"forceNew":true},"probe_port":{"type":"TypeInt","required":true,"forceNew":true},"sql_virtual_machine_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"multi_subnet_ip_configuration":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","required":true,"forceNew":true},"sql_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"port":{"type":"TypeInt","optional":true,"forceNew":true},"replica":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"schema":{"commit":{"type":"TypeString","required":true,"forceNew":true},"failover_mode":{"type":"TypeString","required":true,"forceNew":true},"readable_secondary":{"type":"TypeString","required":true,"forceNew":true},"role":{"type":"TypeString","required":true,"forceNew":true},"sql_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}}}},"sql_virtual_machine_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_mssql_virtual_machine_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sql_image_offer":{"type":"TypeString","required":true,"forceNew":true},"sql_image_sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"wsfc_domain_profile":{"type":"TypeList","required":true,"elem":{"schema":{"cluster_bootstrap_account_name":{"type":"TypeString","optional":true,"forceNew":true},"cluster_operator_account_name":{"type":"TypeString","optional":true,"forceNew":true},"cluster_subnet_type":{"type":"TypeString","required":true,"forceNew":true},"fqdn":{"type":"TypeString","required":true,"forceNew":true},"organizational_unit_path":{"type":"TypeString","optional":true,"forceNew":true},"sql_service_account_name":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_primary_key":{"type":"TypeString","optional":true},"storage_account_url":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_virtual_network_rule":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mysql_flexible_database":{"schema":{"charset":{"type":"TypeString","required":true,"forceNew":true},"collation":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_mysql_flexible_server":{"schema":{"administrator_login":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"administrator_password":{"type":"TypeString","optional":true},"backup_retention_days":{"type":"TypeInt","optional":true,"default":7},"create_mode":{"type":"TypeString","optional":true,"forceNew":true},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"geo_backup_key_vault_key_id":{"type":"TypeString","optional":true},"geo_backup_user_assigned_identity_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"primary_user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"delegated_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"geo_redundant_backup_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"high_availability":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"standby_availability_zone":{"type":"TypeString","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeInt","optional":true,"default":0},"start_hour":{"type":"TypeInt","optional":true,"default":0},"start_minute":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"point_in_time_restore_time_in_utc":{"type":"TypeString","optional":true,"forceNew":true},"private_dns_zone_id":{"type":"TypeString","optional":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"replica_capacity":{"type":"TypeInt","computed":true},"replication_role":{"type":"TypeString","optional":true,"computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","optional":true,"computed":true},"source_server_id":{"type":"TypeString","optional":true,"forceNew":true},"storage":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"auto_grow_enabled":{"type":"TypeBool","optional":true,"default":true},"io_scaling_enabled":{"type":"TypeBool","optional":true,"default":false},"iops":{"type":"TypeInt","optional":true,"computed":true},"size_gb":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"zone":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mysql_flexible_server_active_directory_administrator":{"schema":{"identity_id":{"type":"TypeString","required":true},"login":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mysql_flexible_server_configuration":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mysql_flexible_server_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_nat_gateway":{"schema":{"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_guid":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","optional":true,"default":"Standard"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_nat_gateway_public_ip_association":{"schema":{"nat_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_nat_gateway_public_ip_prefix_association":{"schema":{"nat_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"public_ip_prefix_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_netapp_account":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"aes_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"If enabled, AES encryption will be enabled for SMB communication."},"dns_servers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"domain":{"type":"TypeString","required":true},"kerberos_ad_name":{"type":"TypeString","optional":true,"description":"Name of the active directory machine. This optional parameter is used only while creating kerberos volume."},"kerberos_kdc_ip":{"type":"TypeString","optional":true,"description":"IP address of the KDC server (usually same the DC). This optional parameter is used only while creating kerberos volume."},"ldap_over_tls_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies whether or not the LDAP traffic needs to be secured via TLS."},"ldap_signing_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies whether or not the LDAP traffic needs to be signed."},"local_nfs_users_with_ldap_allowed":{"type":"TypeBool","optional":true,"default":false,"description":"If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes."},"organizational_unit":{"type":"TypeString","optional":true,"default":"CN=Computers","description":"The Organizational Unit (OU) within the Windows Active Directory where machines will be created. If blank, defaults to 'CN=Computers'"},"password":{"type":"TypeString","required":true},"server_root_ca_certificate":{"type":"TypeString","optional":true,"description":"When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is used only for dual protocol with LDAP user-mapping volumes."},"site_name":{"type":"TypeString","optional":true,"default":"Default-First-Site-Name","description":"The Active Directory site the service will limit Domain Controller discovery to. If blank, defaults to 'Default-First-Site-Name'"},"smb_server_name":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_netapp_account_encryption":{"schema":{"encryption_key":{"type":"TypeString","required":true,"description":"The versionless encryption key url."},"netapp_account_id":{"type":"TypeString","required":true,"description":"The ID of the NetApp Account where encryption will be set."},"system_assigned_identity_principal_id":{"type":"TypeString","optional":true,"description":"The Principal ID of the System Assigned Identity to use for encryption."},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The resource ID of the User Assigned Identity to use for encryption."}},"timeouts":{"create":90,"read":5,"delete":120,"update":120}},"azurerm_netapp_pool":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"encryption_type":{"type":"TypeString","optional":true,"default":"Single","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"qos_type":{"type":"TypeString","optional":true,"default":"Auto"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_level":{"type":"TypeString","required":true,"forceNew":true},"size_in_tb":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_netapp_snapshot":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"pool_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"volume_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_netapp_snapshot_policy":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"daily_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"hour":{"type":"TypeInt","required":true},"minute":{"type":"TypeInt","required":true},"snapshots_to_keep":{"type":"TypeInt","required":true}}},"maxItems":1},"enabled":{"type":"TypeBool","required":true},"hourly_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"minute":{"type":"TypeInt","required":true},"snapshots_to_keep":{"type":"TypeInt","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"monthly_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_month":{"type":"TypeSet","required":true,"elem":{"type":"TypeInt"},"maxItems":30},"hour":{"type":"TypeInt","required":true},"minute":{"type":"TypeInt","required":true},"snapshots_to_keep":{"type":"TypeInt","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"weekly_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_week":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":7},"hour":{"type":"TypeInt","required":true},"minute":{"type":"TypeInt","required":true},"snapshots_to_keep":{"type":"TypeInt","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_netapp_volume":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"azure_vmware_data_store_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"create_from_snapshot_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"data_protection_replication":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"endpoint_type":{"type":"TypeString","optional":true,"default":"dst"},"remote_volume_location":{"type":"TypeString","required":true,"forceNew":true},"remote_volume_resource_id":{"type":"TypeString","required":true},"replication_frequency":{"type":"TypeString","required":true}}},"maxItems":1},"data_protection_snapshot_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"snapshot_policy_id":{"type":"TypeString","required":true}}},"maxItems":1},"encryption_key_source":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"export_policy_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_clients":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"kerberos_5_read_only_enabled":{"type":"TypeBool","optional":true},"kerberos_5_read_write_enabled":{"type":"TypeBool","optional":true},"kerberos_5i_read_only_enabled":{"type":"TypeBool","optional":true},"kerberos_5i_read_write_enabled":{"type":"TypeBool","optional":true},"kerberos_5p_read_only_enabled":{"type":"TypeBool","optional":true},"kerberos_5p_read_write_enabled":{"type":"TypeBool","optional":true},"protocols_enabled":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1,"minItems":1},"root_access_enabled":{"type":"TypeBool","optional":true},"rule_index":{"type":"TypeInt","required":true},"unix_read_only":{"type":"TypeBool","optional":true},"unix_read_write":{"type":"TypeBool","optional":true}}},"maxItems":5},"kerberos_enabled":{"type":"TypeBool","optional":true,"description":"Enable to allow Kerberos secured volumes. Requires appropriate export rules as well as the parent `azurerm_netapp_account` having a defined AD connection.","forceNew":true},"key_vault_private_endpoint_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mount_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_features":{"type":"TypeString","optional":true,"default":"Basic"},"pool_name":{"type":"TypeString","required":true,"forceNew":true},"protocols":{"type":"TypeSet","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":2},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"security_style":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"service_level":{"type":"TypeString","required":true,"forceNew":true},"smb3_protocol_encryption_enabled":{"type":"TypeBool","optional":true,"description":"SMB3 encryption option should be used only for SMB/DualProtocol volumes. Using it for any other workloads is not supported.","forceNew":true},"smb_access_based_enumeration_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Enable access based enumeration setting for SMB/Dual Protocol volume. When enabled, users who do not have permission to access a shared folder or file underneath it, do not see that shared resource displayed in their environment."},"smb_continuous_availability_enabled":{"type":"TypeBool","optional":true,"description":"Continuous availability option should be used only for SQL and FSLogix workloads. Using it for any other SMB workloads is not supported.","forceNew":true},"smb_non_browsable_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Enable non browsable share setting for SMB/Dual Protocol volume. When enabled, it restricts windows clients to browse the share"},"snapshot_directory_visible":{"type":"TypeBool","optional":true,"computed":true},"storage_quota_in_gb":{"type":"TypeInt","required":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"throughput_in_mibps":{"type":"TypeFloat","optional":true,"computed":true},"volume_path":{"type":"TypeString","required":true,"forceNew":true},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_netapp_volume_group_sap_hana":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"application_identifier":{"type":"TypeString","required":true,"forceNew":true},"group_description":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"volume":{"type":"TypeList","required":true,"elem":{"schema":{"capacity_pool_id":{"type":"TypeString","required":true,"forceNew":true},"data_protection_replication":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"endpoint_type":{"type":"TypeString","optional":true,"default":"dst"},"remote_volume_location":{"type":"TypeString","required":true},"remote_volume_resource_id":{"type":"TypeString","required":true},"replication_frequency":{"type":"TypeString","required":true}}},"maxItems":1},"data_protection_snapshot_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"snapshot_policy_id":{"type":"TypeString","required":true}}},"maxItems":1},"export_policy_rule":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_clients":{"type":"TypeString","required":true},"nfsv3_enabled":{"type":"TypeBool","required":true},"nfsv41_enabled":{"type":"TypeBool","required":true},"root_access_enabled":{"type":"TypeBool","optional":true,"default":true},"rule_index":{"type":"TypeInt","required":true},"unix_read_only":{"type":"TypeBool","optional":true,"default":false},"unix_read_write":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":5,"minItems":1},"id":{"type":"TypeString","computed":true},"mount_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"protocols":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1,"minItems":1},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"security_style":{"type":"TypeString","required":true,"forceNew":true},"service_level":{"type":"TypeString","required":true,"forceNew":true},"snapshot_directory_visible":{"type":"TypeBool","required":true,"forceNew":true},"storage_quota_in_gb":{"type":"TypeInt","required":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"throughput_in_mibps":{"type":"TypeFloat","required":true},"volume_path":{"type":"TypeString","required":true,"forceNew":true},"volume_spec_name":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":5,"minItems":2}},"timeouts":{"create":90,"read":5,"delete":120,"update":120}},"azurerm_netapp_volume_quota_rule":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"quota_size_in_kib":{"type":"TypeInt","required":true},"quota_target":{"type":"TypeString","optional":true,"forceNew":true},"quota_type":{"type":"TypeString","required":true,"forceNew":true},"volume_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":120,"update":120}},"azurerm_network_connection_monitor":{"schema":{"endpoint":{"type":"TypeSet","required":true,"elem":{"schema":{"address":{"type":"TypeString","optional":true},"coverage_level":{"type":"TypeString","optional":true},"excluded_ip_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"item":{"type":"TypeSet","optional":true,"elem":{"schema":{"address":{"type":"TypeString","optional":true},"type":{"type":"TypeString","optional":true,"default":"AgentAddress"}}}},"type":{"type":"TypeString","optional":true,"default":"Include"}}},"maxItems":1},"included_ip_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"target_resource_id":{"type":"TypeString","optional":true},"target_resource_type":{"type":"TypeString","optional":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_id":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true},"output_workspace_resource_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"test_configuration":{"type":"TypeSet","required":true,"elem":{"schema":{"http_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"method":{"type":"TypeString","optional":true,"default":"Get"},"path":{"type":"TypeString","optional":true},"port":{"type":"TypeInt","optional":true},"prefer_https":{"type":"TypeBool","optional":true,"default":false},"request_header":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"valid_status_code_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"icmp_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"trace_route_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"preferred_ip_version":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true},"success_threshold":{"type":"TypeList","optional":true,"elem":{"schema":{"checks_failed_percent":{"type":"TypeInt","optional":true},"round_trip_time_ms":{"type":"TypeFloat","optional":true}}},"maxItems":1},"tcp_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"destination_port_behavior":{"type":"TypeString","optional":true},"port":{"type":"TypeInt","required":true},"trace_route_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"test_frequency_in_seconds":{"type":"TypeInt","optional":true,"default":60}}}},"test_group":{"type":"TypeSet","required":true,"elem":{"schema":{"destination_endpoints":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"source_endpoints":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"test_configuration_names":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_ddos_protection_plan":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_function_azure_traffic_collector":{"schema":{"collector_policy_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_function_collector_policy":{"schema":{"ipfx_emission":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"destination_types":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1}}},"maxItems":1},"ipfx_ingestion":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"source_resource_ids":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_collector_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_interface":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","optional":true},"applied_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"auxiliary_mode":{"type":"TypeString","optional":true},"auxiliary_sku":{"type":"TypeString","optional":true},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"internal_dns_name_label":{"type":"TypeString","optional":true},"internal_domain_name_suffix":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"gateway_load_balancer_frontend_ip_configuration_id":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true,"computed":true},"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_allocation":{"type":"TypeString","required":true},"private_ip_address_version":{"type":"TypeString","optional":true,"default":"IPv4"},"public_ip_address_id":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}}},"ip_forwarding_enabled":{"type":"TypeBool","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mac_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_interface_application_gateway_backend_address_pool_association":{"schema":{"backend_address_pool_id":{"type":"TypeString","required":true,"forceNew":true},"ip_configuration_name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_interface_application_security_group_association":{"schema":{"application_security_group_id":{"type":"TypeString","required":true,"forceNew":true},"network_interface_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_interface_backend_address_pool_association":{"schema":{"backend_address_pool_id":{"type":"TypeString","required":true,"forceNew":true},"ip_configuration_name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_interface_nat_rule_association":{"schema":{"ip_configuration_name":{"type":"TypeString","required":true,"forceNew":true},"nat_rule_id":{"type":"TypeString","required":true,"forceNew":true},"network_interface_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_interface_security_group_association":{"schema":{"network_interface_id":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_manager":{"schema":{"cross_tenant_scopes":{"type":"TypeList","computed":true,"elem":{"schema":{"management_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"subscriptions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}}}},"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeList","required":true,"elem":{"schema":{"management_group_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"subscription_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"scope_accesses":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_admin_rule":{"schema":{"action":{"type":"TypeString","required":true},"admin_rule_collection_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"destination":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","required":true},"address_prefix_type":{"type":"TypeString","required":true}}}},"destination_port_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"source":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","required":true},"address_prefix_type":{"type":"TypeString","required":true}}}},"source_port_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_admin_rule_collection":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_group_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"security_admin_configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_connectivity_configuration":{"schema":{"applies_to_group":{"type":"TypeList","required":true,"elem":{"schema":{"global_mesh_enabled":{"type":"TypeBool","optional":true},"group_connectivity":{"type":"TypeString","required":true},"network_group_id":{"type":"TypeString","required":true},"use_hub_gateway":{"type":"TypeBool","optional":true}}}},"connectivity_topology":{"type":"TypeString","required":true},"delete_existing_peering_enabled":{"type":"TypeBool","optional":true},"description":{"type":"TypeString","optional":true},"global_mesh_enabled":{"type":"TypeBool","optional":true},"hub":{"type":"TypeList","optional":true,"elem":{"schema":{"resource_id":{"type":"TypeString","required":true},"resource_type":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_deployment":{"schema":{"configuration_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true},"scope_access":{"type":"TypeString","required":true,"forceNew":true},"triggers":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":1440,"read":5,"delete":1440,"update":1440}},"azurerm_network_manager_management_group_connection":{"schema":{"connection_state":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_network_group":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_scope_connection":{"schema":{"connection_state":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true},"target_scope_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_security_admin_configuration":{"schema":{"apply_on_network_intent_policy_based_services":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_static_member":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"network_group_id":{"type":"TypeString","required":true,"forceNew":true},"region":{"type":"TypeString","computed":true},"target_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_manager_subscription_connection":{"schema":{"connection_state":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_packet_capture":{"schema":{"filter":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"local_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"local_port":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true},"remote_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"remote_port":{"type":"TypeString","optional":true,"forceNew":true}}}},"maximum_bytes_per_packet":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"maximum_bytes_per_session":{"type":"TypeInt","optional":true,"default":1073741824,"forceNew":true},"maximum_capture_duration":{"type":"TypeInt","optional":true,"default":18000,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_location":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"file_path":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_path":{"type":"TypeString","computed":true}}},"maxItems":1},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_profile":{"schema":{"container_network_interface":{"type":"TypeList","required":true,"elem":{"schema":{"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true}}},"maxItems":1},"container_network_interface_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_security_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"security_rule":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"access":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"destination_address_prefix":{"type":"TypeString","optional":true},"destination_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_port_range":{"type":"TypeString","optional":true},"destination_port_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"source_address_prefix":{"type":"TypeString","optional":true},"source_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_port_range":{"type":"TypeString","optional":true},"source_port_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_security_rule":{"schema":{"access":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"destination_address_prefix":{"type":"TypeString","optional":true},"destination_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":10},"destination_port_range":{"type":"TypeString","optional":true},"destination_port_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_address_prefix":{"type":"TypeString","optional":true},"source_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":10},"source_port_range":{"type":"TypeString","optional":true},"source_port_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_watcher":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_watcher_flow_log":{"schema":{"enabled":{"type":"TypeBool","required":true},"location":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_policy":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeInt","required":true},"enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"storage_account_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_analytics":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"interval_in_minutes":{"type":"TypeInt","optional":true,"default":60},"workspace_id":{"type":"TypeString","required":true},"workspace_region":{"type":"TypeString","required":true},"workspace_resource_id":{"type":"TypeString","required":true}}},"maxItems":1},"version":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_new_relic_monitor":{"schema":{"account_creation_source":{"type":"TypeString","optional":true,"default":"LIFTR","forceNew":true},"account_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ingestion_key":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"org_creation_source":{"type":"TypeString","optional":true,"default":"LIFTR","forceNew":true},"organization_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"plan":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"billing_cycle":{"type":"TypeString","optional":true,"default":"MONTHLY","forceNew":true},"effective_date":{"type":"TypeString","required":true,"forceNew":true},"plan_id":{"type":"TypeString","optional":true,"default":"newrelic-pay-as-you-go-free-live","forceNew":true},"usage_type":{"type":"TypeString","optional":true,"default":"PAYG","forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"user":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"email":{"type":"TypeString","required":true,"forceNew":true},"first_name":{"type":"TypeString","required":true,"forceNew":true},"last_name":{"type":"TypeString","required":true,"forceNew":true},"phone_number":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"user_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_new_relic_tag_rule":{"schema":{"activity_log_enabled":{"type":"TypeBool","optional":true,"default":false},"azure_active_directory_log_enabled":{"type":"TypeBool","optional":true,"default":false},"log_tag_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"metric_enabled":{"type":"TypeBool","optional":true,"default":false},"metric_tag_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"monitor_id":{"type":"TypeString","required":true,"forceNew":true},"subscription_log_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_nginx_certificate":{"schema":{"certificate_virtual_path":{"type":"TypeString","required":true},"key_vault_secret_id":{"type":"TypeString","required":true},"key_virtual_path":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"nginx_deployment_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":30}},"azurerm_nginx_configuration":{"schema":{"config_file":{"type":"TypeSet","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"virtual_path":{"type":"TypeString","required":true}}}},"nginx_deployment_id":{"type":"TypeString","required":true,"forceNew":true},"package_data":{"type":"TypeString","optional":true},"protected_file":{"type":"TypeSet","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"virtual_path":{"type":"TypeString","required":true}}}},"root_file":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_nginx_deployment":{"schema":{"auto_scale_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"max_capacity":{"type":"TypeInt","required":true},"min_capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}}},"automatic_upgrade_channel":{"type":"TypeString","optional":true,"default":"stable"},"capacity":{"type":"TypeInt","optional":true},"diagnose_support_enabled":{"type":"TypeBool","optional":true},"email":{"type":"TypeString","optional":true},"frontend_private":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"allocation_method":{"type":"TypeString","required":true,"forceNew":true},"ip_address":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}}},"frontend_public":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"ip_address":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logging_storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"container_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true}}}},"managed_resource_group":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}}},"nginx_version":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_notification_hub":{"schema":{"apns_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"application_mode":{"type":"TypeString","required":true},"bundle_id":{"type":"TypeString","required":true},"key_id":{"type":"TypeString","required":true},"team_id":{"type":"TypeString","required":true},"token":{"type":"TypeString","required":true}}},"maxItems":1},"browser_credential":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"subject":{"type":"TypeString","required":true},"vapid_private_key":{"type":"TypeString","required":true},"vapid_public_key":{"type":"TypeString","required":true}}},"maxItems":1},"gcm_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"api_key":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_notification_hub_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"notification_hub_name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_notification_hub_namespace":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"servicebus_endpoint":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_oracle_cloud_vm_cluster":{"schema":{"backup_subnet_cidr":{"type":"TypeString","optional":true,"forceNew":true},"cloud_exadata_infrastructure_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"cpu_core_count":{"type":"TypeInt","required":true,"forceNew":true},"data_collection_options":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"diagnostics_events_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"health_monitoring_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"incident_logs_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true}}},"maxItems":1,"minItems":1},"data_storage_percentage":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"data_storage_size_in_tbs":{"type":"TypeFloat","optional":true,"computed":true,"forceNew":true},"db_node_storage_size_in_gbs":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"db_servers":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","required":true,"forceNew":true},"gi_version":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","required":true,"forceNew":true},"hostname_actual":{"type":"TypeString","computed":true},"license_model":{"type":"TypeString","required":true,"forceNew":true},"local_backup_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"memory_size_in_gbs":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sparse_diskgroup_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"ssh_public_keys":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"time_zone":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":1440,"read":5,"delete":30,"update":30}},"azurerm_oracle_exadata_infrastructure":{"schema":{"compute_count":{"type":"TypeInt","required":true,"forceNew":true},"customer_contacts":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"days_of_week":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"hours_of_day":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeInt"}},"lead_time_in_weeks":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"months":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"patching_mode":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"preference":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"weeks_of_month":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeInt"}}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"shape":{"type":"TypeString","required":true,"forceNew":true},"storage_count":{"type":"TypeInt","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":120,"read":5,"delete":60,"update":30}},"azurerm_orbital_contact":{"schema":{"contact_profile_id":{"type":"TypeString","required":true,"forceNew":true},"ground_station_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"reservation_end_time":{"type":"TypeString","required":true,"forceNew":true},"reservation_start_time":{"type":"TypeString","required":true,"forceNew":true},"spacecraft_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_orbital_contact_profile":{"schema":{"auto_tracking":{"type":"TypeString","required":true},"event_hub_uri":{"type":"TypeString","optional":true},"links":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"channels":{"type":"TypeList","required":true,"elem":{"schema":{"bandwidth_mhz":{"type":"TypeFloat","required":true},"center_frequency_mhz":{"type":"TypeFloat","required":true},"demodulation_configuration":{"type":"TypeString","optional":true},"end_point":{"type":"TypeSet","required":true,"elem":{"schema":{"end_point_name":{"type":"TypeString","required":true},"ip_address":{"type":"TypeString","optional":true},"port":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"modulation_configuration":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true}}},"minItems":1},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"polarization":{"type":"TypeString","required":true}}},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_elevation_degrees":{"type":"TypeFloat","optional":true},"minimum_variable_contact_duration":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_configuration_subnet_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_orbital_spacecraft":{"schema":{"links":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"bandwidth_mhz":{"type":"TypeFloat","required":true},"center_frequency_mhz":{"type":"TypeFloat","required":true},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"polarization":{"type":"TypeString","required":true}}},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"norad_id":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"title_line":{"type":"TypeString","required":true},"two_line_elements":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":2,"minItems":2}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_orchestrated_virtual_machine_scale_set":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"automatic_instance_repair":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","required":true},"grace_period":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"create_option":{"type":"TypeString","optional":true,"default":"Empty"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"lun":{"type":"TypeInt","optional":true,"computed":true},"storage_account_type":{"type":"TypeString","required":true},"ultra_ssd_disk_iops_read_write":{"type":"TypeInt","optional":true,"computed":true},"ultra_ssd_disk_mbps_read_write":{"type":"TypeInt","optional":true,"computed":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extension":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"auto_upgrade_minor_version_enabled":{"type":"TypeBool","optional":true,"default":true},"extensions_to_provision_after_vm_creation":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"failure_suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"force_extension_execution_on_change":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"publisher":{"type":"TypeString","required":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true}}}},"extension_operations_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"instances":{"type":"TypeInt","optional":true,"computed":true},"license_type":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","optional":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enable_accelerated_networking":{"type":"TypeBool","optional":true,"default":false},"enable_ip_forwarding":{"type":"TypeBool","optional":true,"default":false},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":20},"load_balancer_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true,"default":false},"public_ip_address":{"type":"TypeList","optional":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","optional":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"ip_tag":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"sku_name":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true}}}},"subnet_id":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true,"default":"IPv4"}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","optional":true},"primary":{"type":"TypeBool","optional":true,"default":false}}}},"os_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"os_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_data":{"type":"TypeString","optional":true},"linux_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"admin_password":{"type":"TypeString","optional":true,"forceNew":true},"admin_ssh_key":{"type":"TypeSet","optional":true,"elem":{"schema":{"public_key":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}}},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"computer_name_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"disable_password_authentication":{"type":"TypeBool","optional":true,"default":true},"patch_assessment_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"patch_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}}}},"maxItems":1},"windows_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"additional_unattend_content":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"content":{"type":"TypeString","required":true,"forceNew":true},"setting":{"type":"TypeString","required":true,"forceNew":true}}}},"admin_password":{"type":"TypeString","required":true,"forceNew":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"computer_name_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"enable_automatic_updates":{"type":"TypeBool","optional":true,"default":true},"hotpatching_enabled":{"type":"TypeBool","optional":true,"default":false},"patch_assessment_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"patch_mode":{"type":"TypeString","optional":true,"default":"AutomaticByOS"},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"store":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"timezone":{"type":"TypeString","optional":true},"winrm_listener":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true}}}}}},"maxItems":1}}},"maxItems":1},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain_count":{"type":"TypeInt","required":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"priority_mix":{"type":"TypeList","optional":true,"elem":{"schema":{"base_regular_count":{"type":"TypeInt","optional":true,"default":0},"regular_percentage_above_base":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"single_placement_group":{"type":"TypeBool","optional":true,"computed":true},"sku_name":{"type":"TypeString","optional":true},"source_image_id":{"type":"TypeString","optional":true},"source_image_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"unique_id":{"type":"TypeString","computed":true},"user_data_base64":{"type":"TypeString","optional":true},"zone_balance":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_palo_alto_local_rulestack":{"schema":{"anti_spyware_profile":{"type":"TypeString","optional":true},"anti_virus_profile":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"dns_subscription":{"type":"TypeString","optional":true},"file_blocking_profile":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"url_filtering_profile":{"type":"TypeString","optional":true},"vulnerability_profile":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_local_rulestack_certificate":{"schema":{"audit_comment":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"key_vault_certificate_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true},"rulestack_id":{"type":"TypeString","required":true,"forceNew":true},"self_signed":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_local_rulestack_fqdn_list":{"schema":{"audit_comment":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"fully_qualified_domain_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"rulestack_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_local_rulestack_outbound_trust_certificate_association":{"schema":{"certificate_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_palo_alto_local_rulestack_outbound_untrust_certificate_association":{"schema":{"certificate_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_palo_alto_local_rulestack_prefix_list":{"schema":{"audit_comment":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"prefix_list":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"rulestack_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_local_rulestack_rule":{"schema":{"action":{"type":"TypeString","required":true},"applications":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"audit_comment":{"type":"TypeString","optional":true},"category":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_urls":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"feeds":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1,"minItems":1},"decryption_rule_type":{"type":"TypeString","optional":true,"default":"None"},"description":{"type":"TypeString","optional":true},"destination":{"type":"TypeList","required":true,"elem":{"schema":{"cidrs":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"countries":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"feeds":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"local_rulestack_fqdn_list_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"local_rulestack_prefix_list_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"inspection_certificate_id":{"type":"TypeString","optional":true},"logging_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"negate_destination":{"type":"TypeBool","optional":true,"default":false},"negate_source":{"type":"TypeBool","optional":true,"default":false},"priority":{"type":"TypeInt","required":true,"forceNew":true},"protocol":{"type":"TypeString","optional":true},"protocol_ports":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"rulestack_id":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeList","required":true,"elem":{"schema":{"cidrs":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"countries":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"feeds":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"local_rulestack_prefix_list_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_next_generation_firewall_virtual_hub_local_rulestack":{"schema":{"destination_nat":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address":{"type":"TypeString","required":true}}},"maxItems":1},"frontend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address_id":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2},"use_azure_dns":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"egress_nat_ip_address_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"egress_nat_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_of_trust_for_user_defined_routes":{"type":"TypeString","computed":true},"network_virtual_appliance_id":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trusted_address_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"trusted_subnet_id":{"type":"TypeString","computed":true},"untrusted_subnet_id":{"type":"TypeString","computed":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rulestack_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":120,"update":180}},"azurerm_palo_alto_next_generation_firewall_virtual_hub_panorama":{"schema":{"destination_nat":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address":{"type":"TypeString","required":true}}},"maxItems":1},"frontend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address_id":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2},"use_azure_dns":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"egress_nat_ip_address_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"egress_nat_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_of_trust_for_user_defined_routes":{"type":"TypeString","computed":true},"network_virtual_appliance_id":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trusted_address_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"trusted_subnet_id":{"type":"TypeString","computed":true},"untrusted_subnet_id":{"type":"TypeString","computed":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"panorama":{"type":"TypeList","computed":true,"elem":{"schema":{"device_group_name":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"panorama_server_1":{"type":"TypeString","computed":true},"panorama_server_2":{"type":"TypeString","computed":true},"template_name":{"type":"TypeString","computed":true},"virtual_machine_ssh_key":{"type":"TypeString","computed":true}}}},"panorama_base64_config":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":120,"read":5,"delete":120,"update":120}},"azurerm_palo_alto_next_generation_firewall_virtual_network_local_rulestack":{"schema":{"destination_nat":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address":{"type":"TypeString","required":true}}},"maxItems":1},"frontend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address_id":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2},"use_azure_dns":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"egress_nat_ip_address_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"egress_nat_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trusted_address_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"vnet_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"ip_of_trust_for_user_defined_routes":{"type":"TypeString","computed":true},"trusted_subnet_id":{"type":"TypeString","optional":true},"untrusted_subnet_id":{"type":"TypeString","optional":true},"virtual_network_id":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rulestack_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":120,"update":180}},"azurerm_palo_alto_next_generation_firewall_virtual_network_panorama":{"schema":{"destination_nat":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address":{"type":"TypeString","required":true}}},"maxItems":1},"frontend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address_id":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2},"use_azure_dns":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"egress_nat_ip_address_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"egress_nat_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trusted_address_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"vnet_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"ip_of_trust_for_user_defined_routes":{"type":"TypeString","computed":true},"trusted_subnet_id":{"type":"TypeString","optional":true},"untrusted_subnet_id":{"type":"TypeString","optional":true},"virtual_network_id":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"panorama":{"type":"TypeList","computed":true,"elem":{"schema":{"device_group_name":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"panorama_server_1":{"type":"TypeString","computed":true},"panorama_server_2":{"type":"TypeString","computed":true},"template_name":{"type":"TypeString","computed":true},"virtual_machine_ssh_key":{"type":"TypeString","computed":true}}}},"panorama_base64_config":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_palo_alto_virtual_network_appliance":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_pim_active_role_assignment":{"schema":{"justification":{"type":"TypeString","optional":true,"description":"The justification for this role assignment","computed":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"description":"Object ID of the principal for this role assignment","forceNew":true},"principal_type":{"type":"TypeString","description":"Type of principal to which the role will be assigned","computed":true},"role_definition_id":{"type":"TypeString","required":true,"description":"Role definition ID for this role assignment","forceNew":true},"schedule":{"type":"TypeList","optional":true,"description":"The schedule details for this role assignment","computed":true,"forceNew":true,"elem":{"schema":{"expiration":{"type":"TypeList","optional":true,"elem":{"schema":{"duration_days":{"type":"TypeInt","optional":true,"description":"The duration of the role assignment in days","computed":true,"forceNew":true},"duration_hours":{"type":"TypeInt","optional":true,"description":"The duration of the role assignment in hours","computed":true,"forceNew":true},"end_date_time":{"type":"TypeString","optional":true,"description":"The end date/time of the role assignment","computed":true,"forceNew":true}}},"maxItems":1},"start_date_time":{"type":"TypeString","optional":true,"description":"The start date/time of the role assignment","computed":true,"forceNew":true}}},"maxItems":1},"scope":{"type":"TypeString","required":true,"description":"Scope for this role assignment, should be a valid resource ID","forceNew":true},"ticket":{"type":"TypeList","optional":true,"description":"Ticket details relating to the assignment","computed":true,"forceNew":true,"elem":{"schema":{"number":{"type":"TypeString","optional":true,"description":"User-supplied ticket number to be included with the request","forceNew":true},"system":{"type":"TypeString","optional":true,"description":"User-supplied ticket system name to be included with the request","forceNew":true}}},"maxItems":1}},"timeouts":{"create":10,"read":5,"delete":10}},"azurerm_pim_eligible_role_assignment":{"schema":{"justification":{"type":"TypeString","optional":true,"description":"The justification for this eligible role assignment","computed":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"description":"Object ID of the principal for this eligible role assignment","forceNew":true},"principal_type":{"type":"TypeString","description":"Type of principal to which the role will be assigned","computed":true},"role_definition_id":{"type":"TypeString","required":true,"description":"Role definition ID for this eligible role assignment","forceNew":true},"schedule":{"type":"TypeList","optional":true,"description":"The schedule details for this eligible role assignment","computed":true,"forceNew":true,"elem":{"schema":{"expiration":{"type":"TypeList","optional":true,"elem":{"schema":{"duration_days":{"type":"TypeInt","optional":true,"description":"The duration of the eligible role assignment in days","computed":true,"forceNew":true},"duration_hours":{"type":"TypeInt","optional":true,"description":"The duration of the eligible role assignment in hours","computed":true,"forceNew":true},"end_date_time":{"type":"TypeString","optional":true,"description":"The end date/time of the eligible role assignment","computed":true,"forceNew":true}}},"maxItems":1},"start_date_time":{"type":"TypeString","optional":true,"description":"The start date/time","computed":true,"forceNew":true}}},"maxItems":1},"scope":{"type":"TypeString","required":true,"description":"Scope for this eligible role assignment, should be a valid resource ID","forceNew":true},"ticket":{"type":"TypeList","optional":true,"description":"Ticket details relating to the eligible assignment","computed":true,"forceNew":true,"elem":{"schema":{"number":{"type":"TypeString","optional":true,"description":"User-supplied ticket number to be included with the request","forceNew":true},"system":{"type":"TypeString","optional":true,"description":"User-supplied ticket system name to be included with the request","forceNew":true}}},"maxItems":1}},"timeouts":{"create":10,"read":5,"delete":10}},"azurerm_point_to_site_vpn_gateway":{"schema":{"connection_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"internet_security_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"name":{"type":"TypeString","required":true},"route":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"associated_route_table_id":{"type":"TypeString","required":true},"inbound_route_map_id":{"type":"TypeString","optional":true},"outbound_route_map_id":{"type":"TypeString","optional":true},"propagated_route_table":{"type":"TypeList","optional":true,"elem":{"schema":{"ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"labels":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"vpn_client_address_pool":{"type":"TypeList","required":true,"elem":{"schema":{"address_prefixes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_preference_internet_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"scale_unit":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true},"vpn_server_configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_policy_definition":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"management_group_id":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"mode":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeString","optional":true},"policy_rule":{"type":"TypeString","optional":true},"policy_type":{"type":"TypeString","required":true,"forceNew":true},"role_definition_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_policy_set_definition":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"management_group_id":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeString","optional":true},"policy_definition_group":{"type":"TypeSet","optional":true,"elem":{"schema":{"additional_metadata_resource_id":{"type":"TypeString","optional":true},"category":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true}}}},"policy_definition_reference":{"type":"TypeList","required":true,"elem":{"schema":{"parameter_values":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true},"policy_group_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"reference_id":{"type":"TypeString","optional":true,"computed":true}}}},"policy_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_policy_virtual_machine_configuration_assignment":{"schema":{"configuration":{"type":"TypeList","required":true,"elem":{"schema":{"assignment_type":{"type":"TypeString","optional":true},"content_hash":{"type":"TypeString","optional":true,"computed":true},"content_uri":{"type":"TypeString","optional":true,"computed":true},"parameter":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_portal_dashboard":{"schema":{"dashboard_properties":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_portal_tenant_configuration":{"schema":{"private_markdown_storage_enforced":{"type":"TypeBool","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_postgresql_active_directory_administrator":{"schema":{"login":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_postgresql_configuration":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_postgresql_database":{"schema":{"charset":{"type":"TypeString","required":true,"forceNew":true},"collation":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_postgresql_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_postgresql_flexible_server":{"schema":{"administrator_login":{"type":"TypeString","optional":true,"computed":true},"administrator_password":{"type":"TypeString","optional":true},"authentication":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory_auth_enabled":{"type":"TypeBool","optional":true,"default":false},"password_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"tenant_id":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_grow_enabled":{"type":"TypeBool","optional":true,"default":false},"backup_retention_days":{"type":"TypeInt","optional":true,"computed":true},"create_mode":{"type":"TypeString","optional":true},"customer_managed_key":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"geo_backup_key_vault_key_id":{"type":"TypeString","optional":true},"geo_backup_user_assigned_identity_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true},"primary_user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"delegated_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"geo_redundant_backup_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"high_availability":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"standby_availability_zone":{"type":"TypeString","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeInt","optional":true,"default":0},"start_hour":{"type":"TypeInt","optional":true,"default":0},"start_minute":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"point_in_time_restore_time_in_utc":{"type":"TypeString","optional":true,"forceNew":true},"private_dns_zone_id":{"type":"TypeString","optional":true,"computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"replication_role":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","optional":true,"computed":true},"source_server_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_mb":{"type":"TypeInt","optional":true,"computed":true},"storage_tier":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"computed":true},"zone":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_postgresql_flexible_server_active_directory_administrator":{"schema":{"object_id":{"type":"TypeString","required":true,"forceNew":true},"principal_name":{"type":"TypeString","required":true,"forceNew":true},"principal_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_postgresql_flexible_server_configuration":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_postgresql_flexible_server_database":{"schema":{"charset":{"type":"TypeString","optional":true,"default":"UTF8","forceNew":true},"collation":{"type":"TypeString","optional":true,"default":"en_US.utf8","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_postgresql_flexible_server_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_postgresql_flexible_server_virtual_endpoint":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Virtual Endpoint","forceNew":true},"replica_server_id":{"type":"TypeString","required":true,"description":"The Resource ID of the *Replica* Postgres Flexible Server this should be associated with"},"source_server_id":{"type":"TypeString","required":true,"description":"The Resource ID of the *Source* Postgres Flexible Server this should be associated with","forceNew":true},"type":{"type":"TypeString","required":true,"description":"The type of Virtual Endpoint","forceNew":true}},"timeouts":{"create":10,"read":5,"delete":5,"update":5}},"azurerm_postgresql_server":{"schema":{"administrator_login":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"administrator_login_password":{"type":"TypeString","optional":true},"auto_grow_enabled":{"type":"TypeBool","optional":true,"default":true},"backup_retention_days":{"type":"TypeInt","optional":true,"computed":true},"create_mode":{"type":"TypeString","optional":true,"default":"Default"},"creation_source_server_id":{"type":"TypeString","optional":true},"fqdn":{"type":"TypeString","computed":true},"geo_redundant_backup_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"restore_point_in_time":{"type":"TypeString","optional":true},"sku_name":{"type":"TypeString","required":true},"ssl_enforcement_enabled":{"type":"TypeBool","required":true},"ssl_minimal_tls_version_enforced":{"type":"TypeString","optional":true,"default":"TLS1_2"},"storage_mb":{"type":"TypeInt","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threat_detection_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins":{"type":"TypeBool","optional":true},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true},"retention_days":{"type":"TypeInt","optional":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}}},"maxItems":1},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_postgresql_server_key":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_postgresql_virtual_network_rule":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_powerbi_embedded":{"schema":{"administrators":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"mode":{"type":"TypeString","optional":true,"default":"Gen1","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_a_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":20},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_aaaa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_cname_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_mx_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"default":"@","forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"exchange":{"type":"TypeString","required":true},"preference":{"type":"TypeInt","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_ptr_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_dns_forwarding_ruleset":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_dns_resolver_outbound_endpoint_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_forwarding_rule":{"schema":{"dns_forwarding_ruleset_id":{"type":"TypeString","required":true,"forceNew":true},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"target_dns_servers":{"type":"TypeList","required":true,"elem":{"schema":{"ip_address":{"type":"TypeString","required":true},"port":{"type":"TypeInt","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_inbound_endpoint":{"schema":{"ip_configurations":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_allocation_method":{"type":"TypeString","optional":true,"default":"Dynamic"},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_dns_resolver_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_outbound_endpoint":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_dns_resolver_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_virtual_network_link":{"schema":{"dns_forwarding_ruleset_id":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_srv_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"priority":{"type":"TypeInt","required":true},"target":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_txt_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"value":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_zone":{"schema":{"max_number_of_record_sets":{"type":"TypeInt","computed":true},"max_number_of_virtual_network_links":{"type":"TypeInt","computed":true},"max_number_of_virtual_network_links_with_registration":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"number_of_record_sets":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"soa_record":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"email":{"type":"TypeString","required":true},"expire_time":{"type":"TypeInt","optional":true,"default":2419200},"fqdn":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"minimum_ttl":{"type":"TypeInt","optional":true,"default":10},"refresh_time":{"type":"TypeInt","optional":true,"default":3600},"retry_time":{"type":"TypeInt","optional":true,"default":300},"serial_number":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","optional":true,"default":3600}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_zone_virtual_network_link":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"private_dns_zone_name":{"type":"TypeString","required":true,"forceNew":true},"registration_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_endpoint":{"schema":{"custom_dns_configs":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdn":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"custom_network_interface_name":{"type":"TypeString","optional":true,"forceNew":true},"ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"member_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","required":true,"forceNew":true},"subresource_name":{"type":"TypeString","optional":true,"forceNew":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"private_dns_zone_configs":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"private_dns_zone_id":{"type":"TypeString","computed":true},"record_sets":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdn":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true}}}}}}},"private_dns_zone_group":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_dns_zone_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"private_service_connection":{"type":"TypeList","required":true,"elem":{"schema":{"is_manual_connection":{"type":"TypeBool","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_connection_resource_alias":{"type":"TypeString","optional":true,"forceNew":true},"private_connection_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"request_message":{"type":"TypeString","optional":true},"subresource_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_private_endpoint_application_security_group_association":{"schema":{"application_security_group_id":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_private_link_service":{"schema":{"alias":{"type":"TypeString","computed":true},"auto_approval_subscription_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enable_proxy_protocol":{"type":"TypeBool","optional":true},"fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"load_balancer_frontend_ip_configuration_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"nat_ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"primary":{"type":"TypeBool","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_address_version":{"type":"TypeString","optional":true,"default":"IPv4"},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":8},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"visibility_subscription_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_proximity_placement_group":{"schema":{"allowed_vm_sizes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_public_ip":{"schema":{"allocation_method":{"type":"TypeString","required":true},"ddos_protection_mode":{"type":"TypeString","optional":true,"default":"VirtualNetworkInherited"},"ddos_protection_plan_id":{"type":"TypeString","optional":true},"domain_name_label":{"type":"TypeString","optional":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"ip_address":{"type":"TypeString","computed":true},"ip_tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"ip_version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"reverse_fqdn":{"type":"TypeString","optional":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"sku_tier":{"type":"TypeString","optional":true,"default":"Regional","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_public_ip_prefix":{"schema":{"ip_prefix":{"type":"TypeString","computed":true},"ip_version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"prefix_length":{"type":"TypeInt","optional":true,"default":28,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_purview_account":{"schema":{"atlas_kafka_endpoint_primary_connection_string":{"type":"TypeString","computed":true},"atlas_kafka_endpoint_secondary_connection_string":{"type":"TypeString","computed":true},"catalog_endpoint":{"type":"TypeString","computed":true},"guardian_endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managed_resources":{"type":"TypeList","computed":true,"elem":{"schema":{"event_hub_namespace_id":{"type":"TypeString","computed":true},"resource_group_id":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scan_endpoint":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_recovery_services_vault":{"schema":{"classic_vmware_replication_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"cross_region_restore_enabled":{"type":"TypeBool","optional":true,"default":false},"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"infrastructure_encryption_enabled":{"type":"TypeBool","required":true},"key_id":{"type":"TypeString","required":true},"use_system_assigned_identity":{"type":"TypeBool","optional":true,"default":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"immutability":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"monitoring":{"type":"TypeList","optional":true,"elem":{"schema":{"alerts_for_all_job_failures_enabled":{"type":"TypeBool","optional":true,"default":true},"alerts_for_critical_operation_failures_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"soft_delete_enabled":{"type":"TypeBool","optional":true,"default":true},"storage_mode_type":{"type":"TypeString","optional":true,"default":"GeoRedundant"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":120,"read":5,"delete":30,"update":60}},"azurerm_recovery_services_vault_resource_guard_association":{"schema":{"resource_guard_id":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_redhat_openshift_cluster":{"schema":{"api_server_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"ip_address":{"type":"TypeString","computed":true},"url":{"type":"TypeString","computed":true},"visibility":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"cluster_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"domain":{"type":"TypeString","required":true,"forceNew":true},"fips_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"forceNew":true},"pull_secret":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"console_url":{"type":"TypeString","computed":true},"ingress_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"visibility":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"main_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"outbound_type":{"type":"TypeString","optional":true,"default":"Loadbalancer","forceNew":true},"pod_cidr":{"type":"TypeString","required":true,"forceNew":true},"preconfigured_network_security_group_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"service_cidr":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_principal":{"type":"TypeList","required":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"worker_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","required":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"node_count":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_redis_cache":{"schema":{"access_keys_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"capacity":{"type":"TypeInt","required":true},"family":{"type":"TypeString","required":true},"hostname":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"non_ssl_port_enabled":{"type":"TypeBool","optional":true,"default":false},"patch_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"maintenance_window":{"type":"TypeString","optional":true,"default":"PT5H"},"start_hour_utc":{"type":"TypeInt","optional":true}}}},"port":{"type":"TypeInt","computed":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"private_static_ip_address":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"redis_configuration":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory_authentication_enabled":{"type":"TypeBool","optional":true},"aof_backup_enabled":{"type":"TypeBool","optional":true},"aof_storage_connection_string_0":{"type":"TypeString","optional":true},"aof_storage_connection_string_1":{"type":"TypeString","optional":true},"authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"data_persistence_authentication_method":{"type":"TypeString","optional":true},"maxclients":{"type":"TypeInt","computed":true},"maxfragmentationmemory_reserved":{"type":"TypeInt","optional":true,"computed":true},"maxmemory_delta":{"type":"TypeInt","optional":true,"computed":true},"maxmemory_policy":{"type":"TypeString","optional":true,"default":"volatile-lru"},"maxmemory_reserved":{"type":"TypeInt","optional":true,"computed":true},"notify_keyspace_events":{"type":"TypeString","optional":true},"rdb_backup_enabled":{"type":"TypeBool","optional":true},"rdb_backup_frequency":{"type":"TypeInt","optional":true},"rdb_backup_max_snapshot_count":{"type":"TypeInt","optional":true},"rdb_storage_connection_string":{"type":"TypeString","optional":true},"storage_account_subscription_id":{"type":"TypeString","optional":true}}},"maxItems":1},"redis_version":{"type":"TypeString","optional":true,"default":6},"replicas_per_master":{"type":"TypeInt","optional":true,"computed":true},"replicas_per_primary":{"type":"TypeInt","optional":true,"computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"shard_count":{"type":"TypeInt","optional":true},"sku_name":{"type":"TypeString","required":true},"ssl_port":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_redis_cache_access_policy":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"permissions":{"type":"TypeString","required":true},"redis_cache_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_redis_cache_access_policy_assignment":{"schema":{"access_policy_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"object_id":{"type":"TypeString","required":true,"forceNew":true},"object_id_alias":{"type":"TypeString","required":true,"forceNew":true},"redis_cache_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5}},"azurerm_redis_enterprise_cluster":{"schema":{"hostname":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_redis_enterprise_database":{"schema":{"client_protocol":{"type":"TypeString","optional":true,"default":"Encrypted","forceNew":true},"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"clustering_policy":{"type":"TypeString","optional":true,"default":"OSSCluster","forceNew":true},"eviction_policy":{"type":"TypeString","optional":true,"default":"VolatileLRU","forceNew":true},"linked_database_group_nickname":{"type":"TypeString","optional":true,"forceNew":true},"linked_database_id":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":5},"module":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"args":{"type":"TypeString","optional":true,"default":"","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","computed":true}}},"maxItems":4},"name":{"type":"TypeString","optional":true,"default":"default","forceNew":true},"port":{"type":"TypeInt","optional":true,"default":10000,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"secondary_access_key":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_redis_firewall_rule":{"schema":{"end_ip":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"redis_cache_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"start_ip":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_redis_linked_server":{"schema":{"geo_replicated_primary_host_name":{"type":"TypeString","computed":true},"linked_redis_cache_id":{"type":"TypeString","required":true,"forceNew":true},"linked_redis_cache_location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_role":{"type":"TypeString","required":true,"forceNew":true},"target_redis_cache_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_relay_hybrid_connection":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"relay_namespace_name":{"type":"TypeString","required":true,"forceNew":true},"requires_client_authorization":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"user_metadata":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_relay_hybrid_connection_authorization_rule":{"schema":{"hybrid_connection_name":{"type":"TypeString","required":true,"forceNew":true},"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_relay_namespace":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"metric_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":60,"update":30}},"azurerm_relay_namespace_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_deployment_script_azure_cli":{"schema":{"cleanup_preference":{"type":"TypeString","optional":true,"default":"Always","forceNew":true},"command_line":{"type":"TypeString","optional":true,"forceNew":true},"container":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"container_group_name":{"type":"TypeString","optional":true}}},"maxItems":1},"environment_variable":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"secure_value":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"force_update_tag":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outputs":{"type":"TypeString","computed":true},"primary_script_uri":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_interval":{"type":"TypeString","required":true,"forceNew":true},"script_content":{"type":"TypeString","optional":true,"forceNew":true},"storage_account":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"supporting_script_uris":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout":{"type":"TypeString","optional":true,"default":"P1D","forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_deployment_script_azure_power_shell":{"schema":{"cleanup_preference":{"type":"TypeString","optional":true,"default":"Always","forceNew":true},"command_line":{"type":"TypeString","optional":true,"forceNew":true},"container":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"container_group_name":{"type":"TypeString","optional":true}}},"maxItems":1},"environment_variable":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"secure_value":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"force_update_tag":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outputs":{"type":"TypeString","computed":true},"primary_script_uri":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_interval":{"type":"TypeString","required":true,"forceNew":true},"script_content":{"type":"TypeString","optional":true,"forceNew":true},"storage_account":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"supporting_script_uris":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout":{"type":"TypeString","optional":true,"default":"P1D","forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"managed_by":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_resource_group_cost_management_export":{"schema":{"active":{"type":"TypeBool","optional":true,"default":true},"export_data_options":{"type":"TypeList","required":true,"elem":{"schema":{"time_frame":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"export_data_storage_location":{"type":"TypeList","required":true,"elem":{"schema":{"container_id":{"type":"TypeString","required":true,"forceNew":true},"root_folder_path":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recurrence_period_end_date":{"type":"TypeString","required":true},"recurrence_period_start_date":{"type":"TypeString","required":true},"recurrence_type":{"type":"TypeString","required":true},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_cost_management_view":{"schema":{"accumulated":{"type":"TypeBool","required":true,"forceNew":true},"chart_type":{"type":"TypeString","required":true},"dataset":{"type":"TypeList","required":true,"elem":{"schema":{"aggregation":{"type":"TypeSet","required":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"granularity":{"type":"TypeString","required":true},"grouping":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"sorting":{"type":"TypeList","optional":true,"elem":{"schema":{"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"display_name":{"type":"TypeString","required":true},"kpi":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"pivot":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"report_type":{"type":"TypeString","required":true},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true},"timeframe":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_policy_assignment":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enforce":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true}}}},"not_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","computed":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"value":{"type":"TypeString","required":true}}}},"parameters":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true},"resource_selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","required":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_policy_exemption":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"exemption_category":{"type":"TypeString","required":true},"expires_on":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_assignment_id":{"type":"TypeString","required":true,"forceNew":true},"policy_definition_reference_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_policy_remediation":{"schema":{"failure_percentage":{"type":"TypeFloat","optional":true},"location_filters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"parallel_deployments":{"type":"TypeInt","optional":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true},"resource_count":{"type":"TypeInt","optional":true},"resource_discovery_mode":{"type":"TypeString","optional":true,"default":"ExistingNonCompliant"},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_template_deployment":{"schema":{"debug_level":{"type":"TypeString","optional":true},"deployment_mode":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_content":{"type":"TypeString","computed":true},"parameters_content":{"type":"TypeString","optional":true,"computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_content":{"type":"TypeString","optional":true,"computed":true},"template_spec_version_id":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_resource_management_private_link":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_resource_management_private_link_association":{"schema":{"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","required":true,"forceNew":true},"resource_management_private_link_id":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_resource_policy_assignment":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enforce":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true}}}},"not_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","computed":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"value":{"type":"TypeString","required":true}}}},"parameters":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","required":true,"forceNew":true},"resource_selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","required":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_policy_exemption":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"exemption_category":{"type":"TypeString","required":true},"expires_on":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_assignment_id":{"type":"TypeString","required":true,"forceNew":true},"policy_definition_reference_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_policy_remediation":{"schema":{"failure_percentage":{"type":"TypeFloat","optional":true},"location_filters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"parallel_deployments":{"type":"TypeInt","optional":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true},"resource_count":{"type":"TypeInt","optional":true},"resource_discovery_mode":{"type":"TypeString","optional":true,"default":"ExistingNonCompliant"},"resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_provider_registration":{"schema":{"feature":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"registered":{"type":"TypeBool","required":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":120,"read":5,"delete":30,"update":120}},"azurerm_restore_point_collection":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_role_assignment":{"schema":{"condition":{"type":"TypeString","optional":true,"forceNew":true},"condition_version":{"type":"TypeString","optional":true,"forceNew":true},"delegated_managed_identity_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_type":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"role_definition_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"role_definition_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true},"skip_service_principal_aad_check":{"type":"TypeBool","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_role_definition":{"schema":{"assignable_scopes":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"permissions":{"type":"TypeList","optional":true,"elem":{"schema":{"actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"not_actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"not_data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"role_definition_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"role_definition_resource_id":{"type":"TypeString","computed":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":60}},"azurerm_role_management_policy":{"schema":{"activation_rules":{"type":"TypeList","optional":true,"description":"The activation rules of the policy","computed":true,"elem":{"schema":{"approval_stage":{"type":"TypeList","optional":true,"description":"The approval stages for the activation","elem":{"schema":{"primary_approver":{"type":"TypeSet","required":true,"description":"The IDs of the users or groups who can approve the activation","elem":{"schema":{"object_id":{"type":"TypeString","required":true,"description":"The ID of the object to act as an approver"},"type":{"type":"TypeString","required":true,"description":"The type of object acting as an approver"}}},"minItems":1}}},"maxItems":1},"maximum_duration":{"type":"TypeString","optional":true,"description":"The time after which the an activation can be valid for","computed":true},"require_approval":{"type":"TypeBool","optional":true,"description":"Whether an approval is required for activation","computed":true},"require_justification":{"type":"TypeBool","optional":true,"description":"Whether a justification is required during activation","computed":true},"require_multifactor_authentication":{"type":"TypeBool","optional":true,"description":"Whether multi-factor authentication is required during activation","computed":true},"require_ticket_info":{"type":"TypeBool","optional":true,"description":"Whether ticket information is required during activation","computed":true},"required_conditional_access_authentication_context":{"type":"TypeString","optional":true,"description":"Whether a conditional access context is required during activation","computed":true}}},"maxItems":1},"active_assignment_rules":{"type":"TypeList","optional":true,"description":"The rules for active assignment of the policy","computed":true,"elem":{"schema":{"expiration_required":{"type":"TypeBool","optional":true,"description":"Must the assignment have an expiry date","computed":true},"expire_after":{"type":"TypeString","optional":true,"description":"The duration after which assignments expire","computed":true},"require_justification":{"type":"TypeBool","optional":true,"description":"Whether a justification is required to make an assignment","computed":true},"require_multifactor_authentication":{"type":"TypeBool","optional":true,"description":"Whether multi-factor authentication is required to make an assignment","computed":true},"require_ticket_info":{"type":"TypeBool","optional":true,"description":"Whether ticket information is required to make an assignment","computed":true}}},"maxItems":1},"description":{"type":"TypeString","description":"The Description of the policy","computed":true},"eligible_assignment_rules":{"type":"TypeList","optional":true,"description":"The rules for eligible assignment of the policy","computed":true,"elem":{"schema":{"expiration_required":{"type":"TypeBool","optional":true,"description":"Must the assignment have an expiry date","computed":true},"expire_after":{"type":"TypeString","optional":true,"description":"The duration after which assignments expire","computed":true}}},"maxItems":1},"name":{"type":"TypeString","description":"The name of the policy","computed":true},"notification_rules":{"type":"TypeList","optional":true,"description":"The notification rules of the policy","computed":true,"elem":{"schema":{"active_assignments":{"type":"TypeList","optional":true,"description":"Notifications about active assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","optional":true,"description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"approver_notifications":{"type":"TypeList","optional":true,"description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"assignee_notifications":{"type":"TypeList","optional":true,"description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1}}},"maxItems":1},"eligible_activations":{"type":"TypeList","optional":true,"description":"Notifications about activations of eligible assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","optional":true,"description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"approver_notifications":{"type":"TypeList","optional":true,"description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"assignee_notifications":{"type":"TypeList","optional":true,"description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1}}},"maxItems":1},"eligible_assignments":{"type":"TypeList","optional":true,"description":"Notifications about eligible assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","optional":true,"description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"approver_notifications":{"type":"TypeList","optional":true,"description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"assignee_notifications":{"type":"TypeList","optional":true,"description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"role_definition_id":{"type":"TypeString","required":true,"description":"ID of the Azure Role to which this policy is assigned","forceNew":true},"scope":{"type":"TypeString","required":true,"description":"The scope of the role to which this policy will apply","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_route":{"schema":{"address_prefix":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"next_hop_in_ip_address":{"type":"TypeString","optional":true},"next_hop_type":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route_table_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_route_filter":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"access":{"type":"TypeString","required":true},"communities":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"rule_type":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_route_map":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"as_path":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"community":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"route_prefix":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"type":{"type":"TypeString","required":true}}}},"match_criterion":{"type":"TypeList","optional":true,"elem":{"schema":{"as_path":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"community":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"match_condition":{"type":"TypeString","required":true},"route_prefix":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","required":true},"next_step_if_matched":{"type":"TypeString","optional":true,"default":"Unknown"}}}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_route_server":{"schema":{"branch_to_branch_traffic_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_state":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_router_asn":{"type":"TypeInt","computed":true},"virtual_router_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_route_server_bgp_connection":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"peer_asn":{"type":"TypeInt","required":true,"forceNew":true},"peer_ip":{"type":"TypeString","required":true,"forceNew":true},"route_server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_route_table":{"schema":{"bgp_route_propagation_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"next_hop_in_ip_address":{"type":"TypeString","optional":true},"next_hop_type":{"type":"TypeString","required":true}}}},"subnets":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_search_service":{"schema":{"allowed_ips":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"authentication_failure_mode":{"type":"TypeString","optional":true},"customer_managed_key_enforcement_enabled":{"type":"TypeBool","optional":true,"default":false},"hosting_mode":{"type":"TypeString","optional":true,"default":"default","forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_count":{"type":"TypeInt","optional":true,"default":1},"primary_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"query_keys":{"type":"TypeList","computed":true,"elem":{"schema":{"key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"replica_count":{"type":"TypeInt","optional":true,"default":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_key":{"type":"TypeString","computed":true},"semantic_search_sku":{"type":"TypeString","optional":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_search_shared_private_link_service":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"search_service_id":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeString","computed":true},"subresource_name":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_security_center_assessment":{"schema":{"additional_data":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"assessment_policy_id":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeList","required":true,"elem":{"schema":{"cause":{"type":"TypeString","optional":true},"code":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true}}},"maxItems":1},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_security_center_assessment_policy":{"schema":{"categories":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","required":true},"display_name":{"type":"TypeString","required":true},"implementation_effort":{"type":"TypeString","optional":true},"name":{"type":"TypeString","computed":true},"remediation_description":{"type":"TypeString","optional":true},"severity":{"type":"TypeString","optional":true,"default":"Medium"},"threats":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"user_impact":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_security_center_auto_provisioning":{"schema":{"auto_provision":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_security_center_automation":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"connection_string":{"type":"TypeString","optional":true},"resource_id":{"type":"TypeString","required":true},"trigger_url":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"minItems":1},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"source":{"type":"TypeList","required":true,"elem":{"schema":{"event_source":{"type":"TypeString","required":true},"rule_set":{"type":"TypeList","optional":true,"elem":{"schema":{"rule":{"type":"TypeList","required":true,"elem":{"schema":{"expected_value":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"property_path":{"type":"TypeString","required":true},"property_type":{"type":"TypeString","required":true}}}}}}}}},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_security_center_contact":{"schema":{"alert_notifications":{"type":"TypeBool","required":true},"alerts_to_admins":{"type":"TypeBool","required":true},"email":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"phone":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_security_center_server_vulnerability_assessment_virtual_machine":{"schema":{"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":10}},"azurerm_security_center_server_vulnerability_assessments_setting":{"schema":{"vulnerability_assessment_provider":{"type":"TypeString","required":true}},"timeouts":{"create":10,"read":5,"delete":10,"update":10}},"azurerm_security_center_setting":{"schema":{"enabled":{"type":"TypeBool","required":true},"setting_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":10,"read":5,"delete":10,"update":10}},"azurerm_security_center_storage_defender":{"schema":{"malware_scanning_on_upload_cap_gb_per_month":{"type":"TypeInt","optional":true,"default":-1},"malware_scanning_on_upload_enabled":{"type":"TypeBool","optional":true,"default":false},"override_subscription_settings_enabled":{"type":"TypeBool","optional":true,"default":false},"scan_results_event_grid_topic_id":{"type":"TypeString","optional":true},"sensitive_data_discovery_enabled":{"type":"TypeBool","optional":true,"default":false},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_security_center_subscription_pricing":{"schema":{"extension":{"type":"TypeSet","optional":true,"elem":{"schema":{"additional_extension_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}}},"resource_type":{"type":"TypeString","optional":true,"default":"VirtualMachines"},"subplan":{"type":"TypeString","optional":true},"tier":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_security_center_workspace":{"schema":{"scope":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_sentinel_alert_rule_anomaly_built_in":{"schema":{"anomaly_settings_version":{"type":"TypeInt","computed":true},"anomaly_version":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","required":true},"frequency":{"type":"TypeString","computed":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"mode":{"type":"TypeString","required":true},"multi_select_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","optional":true,"computed":true},"prioritized_exclude_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"exclude":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"prioritize":{"type":"TypeString","computed":true}}}},"required_data_connector":{"type":"TypeList","computed":true,"elem":{"schema":{"connector_id":{"type":"TypeString","computed":true},"data_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"settings_definition_id":{"type":"TypeString","computed":true},"single_select_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","computed":true}}}},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"threshold_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"max":{"type":"TypeString","computed":true},"min":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_sentinel_alert_rule_anomaly_duplicate":{"schema":{"anomaly_settings_version":{"type":"TypeInt","computed":true},"anomaly_version":{"type":"TypeString","computed":true},"built_in_rule_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","required":true},"frequency":{"type":"TypeString","computed":true},"is_default_settings":{"type":"TypeBool","computed":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"mode":{"type":"TypeString","required":true},"multi_select_observation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","computed":true},"prioritized_exclude_observation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"exclude":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"prioritize":{"type":"TypeString","optional":true}}}},"required_data_connector":{"type":"TypeList","computed":true,"elem":{"schema":{"connector_id":{"type":"TypeString","computed":true},"data_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"settings_definition_id":{"type":"TypeString","computed":true},"single_select_observation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","required":true}}}},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"threshold_observation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"max":{"type":"TypeString","computed":true},"min":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_sentinel_alert_rule_fusion":{"schema":{"alert_rule_template_guid":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"sub_type":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"severities_allowed":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_machine_learning_behavior_analytics":{"schema":{"alert_rule_template_guid":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_ms_security_incident":{"schema":{"alert_rule_template_guid":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"display_name_exclude_filter":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"display_name_filter":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"product_filter":{"type":"TypeString","required":true},"severity_filter":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_nrt":{"schema":{"alert_details_override":{"type":"TypeList","optional":true,"elem":{"schema":{"description_format":{"type":"TypeString","optional":true},"display_name_format":{"type":"TypeString","optional":true},"dynamic_property":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"severity_column_name":{"type":"TypeString","optional":true},"tactics_column_name":{"type":"TypeString","optional":true}}}},"alert_rule_template_guid":{"type":"TypeString","optional":true,"forceNew":true},"alert_rule_template_version":{"type":"TypeString","optional":true,"forceNew":true},"custom_details":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"entity_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"entity_type":{"type":"TypeString","required":true},"field_mapping":{"type":"TypeList","required":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true},"identifier":{"type":"TypeString","required":true}}},"maxItems":3}}},"maxItems":5},"event_grouping":{"type":"TypeList","required":true,"elem":{"schema":{"aggregation_method":{"type":"TypeString","required":true}}},"maxItems":1},"incident":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"create_incident_enabled":{"type":"TypeBool","required":true},"grouping":{"type":"TypeList","required":true,"elem":{"schema":{"by_alert_details":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"by_custom_details":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"by_entities":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"entity_matching_method":{"type":"TypeString","optional":true,"default":"AnyAlert"},"lookback_duration":{"type":"TypeString","optional":true,"default":"PT5M"},"reopen_closed_incidents":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1,"minItems":1}}},"maxItems":1,"minItems":1},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query":{"type":"TypeString","required":true},"sentinel_entity_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true}}},"maxItems":5},"severity":{"type":"TypeString","required":true},"suppression_duration":{"type":"TypeString","optional":true,"default":"PT5H"},"suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"tactics":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_scheduled":{"schema":{"alert_details_override":{"type":"TypeList","optional":true,"elem":{"schema":{"description_format":{"type":"TypeString","optional":true},"display_name_format":{"type":"TypeString","optional":true},"dynamic_property":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"severity_column_name":{"type":"TypeString","optional":true},"tactics_column_name":{"type":"TypeString","optional":true}}}},"alert_rule_template_guid":{"type":"TypeString","optional":true,"forceNew":true},"alert_rule_template_version":{"type":"TypeString","optional":true},"custom_details":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"entity_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"entity_type":{"type":"TypeString","required":true},"field_mapping":{"type":"TypeList","required":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true},"identifier":{"type":"TypeString","required":true}}},"maxItems":3}}},"maxItems":5},"event_grouping":{"type":"TypeList","optional":true,"elem":{"schema":{"aggregation_method":{"type":"TypeString","required":true}}},"maxItems":1},"incident":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"create_incident_enabled":{"type":"TypeBool","required":true},"grouping":{"type":"TypeList","required":true,"elem":{"schema":{"by_alert_details":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"by_custom_details":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"by_entities":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"entity_matching_method":{"type":"TypeString","optional":true,"default":"AnyAlert"},"lookback_duration":{"type":"TypeString","optional":true,"default":"PT5M"},"reopen_closed_incidents":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1,"minItems":1}}},"maxItems":1,"minItems":1},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query":{"type":"TypeString","required":true},"query_frequency":{"type":"TypeString","optional":true,"default":"PT5H"},"query_period":{"type":"TypeString","optional":true,"default":"PT5H"},"sentinel_entity_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true}}},"maxItems":5},"severity":{"type":"TypeString","required":true},"suppression_duration":{"type":"TypeString","optional":true,"default":"PT5H"},"suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"tactics":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"trigger_operator":{"type":"TypeString","optional":true,"default":"GreaterThan"},"trigger_threshold":{"type":"TypeInt","optional":true,"default":0}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_threat_intelligence":{"schema":{"alert_rule_template_guid":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_automation_rule":{"schema":{"action_incident":{"type":"TypeList","optional":true,"elem":{"schema":{"classification":{"type":"TypeString","optional":true},"classification_comment":{"type":"TypeString","optional":true},"labels":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"order":{"type":"TypeInt","required":true},"owner_id":{"type":"TypeString","optional":true},"severity":{"type":"TypeString","optional":true},"status":{"type":"TypeString","optional":true}}}},"action_playbook":{"type":"TypeList","optional":true,"elem":{"schema":{"logic_app_id":{"type":"TypeString","required":true},"order":{"type":"TypeInt","required":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}}},"condition_json":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"expiration":{"type":"TypeString","optional":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"order":{"type":"TypeInt","required":true},"triggers_on":{"type":"TypeString","optional":true,"default":"Incidents"},"triggers_when":{"type":"TypeString","optional":true,"default":"Created"}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_sentinel_data_connector_aws_cloud_trail":{"schema":{"aws_role_arn":{"type":"TypeString","required":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_data_connector_aws_s3":{"schema":{"aws_role_arn":{"type":"TypeString","required":true},"destination_table":{"type":"TypeString","required":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sqs_urls":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_data_connector_azure_active_directory":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_azure_advanced_threat_protection":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_azure_security_center":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_dynamics_365":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_iot":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_microsoft_cloud_app_security":{"schema":{"alerts_enabled":{"type":"TypeBool","optional":true,"default":true},"discovery_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_data_connector_microsoft_defender_advanced_threat_protection":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_microsoft_threat_intelligence":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"microsoft_emerging_threat_feed_lookback_date":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_microsoft_threat_protection":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_office_365":{"schema":{"exchange_enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sharepoint_enabled":{"type":"TypeBool","optional":true,"default":true},"teams_enabled":{"type":"TypeBool","optional":true,"default":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_data_connector_office_365_project":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_office_atp":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_office_irm":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_office_power_bi":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_threat_intelligence":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"lookback_date":{"type":"TypeString","optional":true,"default":"1970-01-01T00:00:00Z","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_threat_intelligence_taxii":{"schema":{"api_root_url":{"type":"TypeString","required":true},"collection_id":{"type":"TypeString","required":true},"display_name":{"type":"TypeString","required":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"lookback_date":{"type":"TypeString","optional":true,"default":"1970-01-01T00:00:00Z"},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true},"polling_frequency":{"type":"TypeString","optional":true,"default":"OnceAnHour"},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"user_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_log_analytics_workspace_onboarding":{"schema":{"customer_managed_key_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_metadata":{"schema":{"author":{"type":"TypeList","optional":true,"elem":{"schema":{"email":{"type":"TypeString","optional":true},"link":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true}}},"maxItems":1},"category":{"type":"TypeList","optional":true,"elem":{"schema":{"domains":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"verticals":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"content_id":{"type":"TypeString","required":true},"content_schema_version":{"type":"TypeString","optional":true,"default":"2.0"},"custom_version":{"type":"TypeString","optional":true},"dependency":{"type":"TypeString","optional":true},"first_publish_date":{"type":"TypeString","optional":true},"icon_id":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","required":true},"last_publish_date":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parent_id":{"type":"TypeString","required":true},"preview_images":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"preview_images_dark":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"providers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true}}},"maxItems":1},"support":{"type":"TypeList","optional":true,"elem":{"schema":{"email":{"type":"TypeString","optional":true},"link":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"threat_analysis_tactics":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"threat_analysis_techniques":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_threat_intelligence_indicator":{"schema":{"confidence":{"type":"TypeInt","optional":true,"default":-1},"created_by":{"type":"TypeString","optional":true},"created_on":{"type":"TypeString","computed":true},"defanged":{"type":"TypeBool","computed":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"extension":{"type":"TypeString","optional":true,"computed":true},"external_id":{"type":"TypeString","computed":true},"external_last_updated_time_utc":{"type":"TypeString","computed":true},"external_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"hashes":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"source_name":{"type":"TypeString","optional":true},"url":{"type":"TypeString","optional":true}}}},"granular_marking":{"type":"TypeList","optional":true,"elem":{"schema":{"language":{"type":"TypeString","optional":true},"marking_ref":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"guid":{"type":"TypeString","computed":true},"indicator_type":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"kill_chain_phase":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true}}}},"language":{"type":"TypeString","optional":true},"last_updated_time_utc":{"type":"TypeString","computed":true},"object_marking_refs":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"parsed_pattern":{"type":"TypeList","computed":true,"elem":{"schema":{"pattern_type_key":{"type":"TypeString","computed":true},"pattern_type_values":{"type":"TypeList","computed":true,"elem":{"schema":{"value":{"type":"TypeString","computed":true},"value_type":{"type":"TypeString","computed":true}}}}}}},"pattern":{"type":"TypeString","required":true},"pattern_type":{"type":"TypeString","required":true},"pattern_version":{"type":"TypeString","optional":true},"revoked":{"type":"TypeBool","optional":true,"default":false},"source":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"threat_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"validate_from_utc":{"type":"TypeString","required":true},"validate_until_utc":{"type":"TypeString","optional":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_watchlist":{"schema":{"default_duration":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"display_name":{"type":"TypeString","required":true,"forceNew":true},"item_search_key":{"type":"TypeString","required":true,"forceNew":true},"labels":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_watchlist_item":{"schema":{"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"properties":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}},"watchlist_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_service_fabric_cluster":{"schema":{"add_on_features":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"azure_active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"client_application_id":{"type":"TypeString","required":true},"cluster_application_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1},"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"thumbprint":{"type":"TypeString","required":true},"thumbprint_secondary":{"type":"TypeString","optional":true},"x509_store_name":{"type":"TypeString","required":true}}},"maxItems":1},"certificate_common_names":{"type":"TypeList","optional":true,"elem":{"schema":{"common_names":{"type":"TypeSet","required":true,"elem":{"schema":{"certificate_common_name":{"type":"TypeString","required":true},"certificate_issuer_thumbprint":{"type":"TypeString","optional":true}}},"minItems":1},"x509_store_name":{"type":"TypeString","required":true}}},"maxItems":1},"client_certificate_common_name":{"type":"TypeList","optional":true,"elem":{"schema":{"common_name":{"type":"TypeString","required":true},"is_admin":{"type":"TypeBool","required":true},"issuer_thumbprint":{"type":"TypeString","optional":true}}}},"client_certificate_thumbprint":{"type":"TypeList","optional":true,"elem":{"schema":{"is_admin":{"type":"TypeBool","required":true},"thumbprint":{"type":"TypeString","required":true}}}},"cluster_code_version":{"type":"TypeString","optional":true,"computed":true},"cluster_endpoint":{"type":"TypeString","computed":true},"diagnostics_config":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_endpoint":{"type":"TypeString","required":true},"protected_account_key_name":{"type":"TypeString","required":true},"queue_endpoint":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true},"table_endpoint":{"type":"TypeString","required":true}}},"maxItems":1},"fabric_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"management_endpoint":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_type":{"type":"TypeList","required":true,"elem":{"schema":{"application_ports":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"end_port":{"type":"TypeInt","required":true},"start_port":{"type":"TypeInt","required":true}}},"maxItems":1},"capacities":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"client_endpoint_port":{"type":"TypeInt","required":true},"durability_level":{"type":"TypeString","optional":true,"default":"Bronze"},"ephemeral_ports":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"end_port":{"type":"TypeInt","required":true},"start_port":{"type":"TypeInt","required":true}}},"maxItems":1},"http_endpoint_port":{"type":"TypeInt","required":true},"instance_count":{"type":"TypeInt","required":true},"is_primary":{"type":"TypeBool","required":true},"is_stateless":{"type":"TypeBool","optional":true},"multiple_availability_zones":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"placement_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"reverse_proxy_endpoint_port":{"type":"TypeInt","optional":true}}}},"reliability_level":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"reverse_proxy_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"thumbprint":{"type":"TypeString","required":true},"thumbprint_secondary":{"type":"TypeString","optional":true},"x509_store_name":{"type":"TypeString","required":true}}},"maxItems":1},"reverse_proxy_certificate_common_names":{"type":"TypeList","optional":true,"elem":{"schema":{"common_names":{"type":"TypeSet","required":true,"elem":{"schema":{"certificate_common_name":{"type":"TypeString","required":true},"certificate_issuer_thumbprint":{"type":"TypeString","optional":true}}},"minItems":1},"x509_store_name":{"type":"TypeString","required":true}}},"maxItems":1},"service_fabric_zonal_upgrade_mode":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"upgrade_mode":{"type":"TypeString","required":true},"upgrade_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"delta_health_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"max_delta_unhealthy_applications_percent":{"type":"TypeInt","optional":true,"default":0},"max_delta_unhealthy_nodes_percent":{"type":"TypeInt","optional":true,"default":0},"max_upgrade_domain_delta_unhealthy_nodes_percent":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"force_restart_enabled":{"type":"TypeBool","optional":true},"health_check_retry_timeout":{"type":"TypeString","optional":true,"default":"00:45:00"},"health_check_stable_duration":{"type":"TypeString","optional":true,"default":"00:01:00"},"health_check_wait_duration":{"type":"TypeString","optional":true,"default":"00:00:30"},"health_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"max_unhealthy_applications_percent":{"type":"TypeInt","optional":true,"default":0},"max_unhealthy_nodes_percent":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"upgrade_domain_timeout":{"type":"TypeString","optional":true,"default":"02:00:00"},"upgrade_replica_set_check_timeout":{"type":"TypeString","optional":true,"default":"10675199.02:48:05.4775807"},"upgrade_timeout":{"type":"TypeString","optional":true,"default":"12:00:00"}}},"maxItems":1},"vm_image":{"type":"TypeString","required":true,"forceNew":true},"vmss_zonal_upgrade_mode":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_service_fabric_managed_cluster":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"client_application_id":{"type":"TypeString","required":true},"cluster_application_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1},"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"common_name":{"type":"TypeString","optional":true},"thumbprint":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}}}},"maxItems":1},"backup_service_enabled":{"type":"TypeBool","optional":true},"client_connection_port":{"type":"TypeInt","required":true},"custom_fabric_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"parameter":{"type":"TypeString","required":true},"section":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"dns_name":{"type":"TypeString","optional":true,"computed":true},"dns_service_enabled":{"type":"TypeBool","optional":true},"http_gateway_port":{"type":"TypeInt","required":true},"lb_rule":{"type":"TypeList","required":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","required":true},"frontend_port":{"type":"TypeInt","required":true},"probe_protocol":{"type":"TypeString","required":true},"probe_request_path":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_type":{"type":"TypeList","optional":true,"elem":{"schema":{"application_port_range":{"type":"TypeString","required":true},"capacities":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"data_disk_size_gb":{"type":"TypeInt","required":true},"data_disk_type":{"type":"TypeString","optional":true,"default":"Standard_LRS"},"ephemeral_port_range":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"multiple_placement_groups_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"placement_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"primary":{"type":"TypeBool","optional":true},"stateless":{"type":"TypeBool","optional":true},"vm_image_offer":{"type":"TypeString","required":true},"vm_image_publisher":{"type":"TypeString","required":true},"vm_image_sku":{"type":"TypeString","required":true},"vm_image_version":{"type":"TypeString","required":true},"vm_instance_count":{"type":"TypeInt","required":true},"vm_secrets":{"type":"TypeList","optional":true,"elem":{"schema":{"certificates":{"type":"TypeList","required":true,"elem":{"schema":{"store":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}}},"vault_id":{"type":"TypeString","required":true}}}},"vm_size":{"type":"TypeString","required":true}}}},"password":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Basic","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"upgrade_wave":{"type":"TypeString","optional":true,"default":"Wave0"},"username":{"type":"TypeString","optional":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_service_plan":{"schema":{"app_service_environment_id":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_elastic_worker_count":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","required":true,"forceNew":true},"per_site_scaling_enabled":{"type":"TypeBool","optional":true,"default":false},"reserved":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"worker_count":{"type":"TypeInt","optional":true,"computed":true},"zone_balancing_enabled":{"type":"TypeBool","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_servicebus_namespace":{"schema":{"capacity":{"type":"TypeInt","optional":true,"default":0},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_id":{"type":"TypeString","required":true},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"key_vault_key_id":{"type":"TypeString","required":true}}},"maxItems":1},"default_primary_connection_string":{"type":"TypeString","computed":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_connection_string":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rule_set":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"network_rules":{"type":"TypeSet","optional":true,"elem":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false},"subnet_id":{"type":"TypeString","required":true}}}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"trusted_services_allowed":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"premium_messaging_partitions":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_namespace_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_id":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_namespace_disaster_recovery_config":{"schema":{"alias_authorization_rule_id":{"type":"TypeString","optional":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partner_namespace_id":{"type":"TypeString","required":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_namespace_id":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_queue":{"schema":{"auto_delete_on_idle":{"type":"TypeString","optional":true,"computed":true},"batched_operations_enabled":{"type":"TypeBool","optional":true,"default":true},"dead_lettering_on_message_expiration":{"type":"TypeBool","optional":true,"default":false},"default_message_ttl":{"type":"TypeString","optional":true,"computed":true},"duplicate_detection_history_time_window":{"type":"TypeString","optional":true,"default":"PT10M"},"express_enabled":{"type":"TypeBool","optional":true,"default":false},"forward_dead_lettered_messages_to":{"type":"TypeString","optional":true},"forward_to":{"type":"TypeString","optional":true},"lock_duration":{"type":"TypeString","optional":true,"default":"PT1M"},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10},"max_message_size_in_kilobytes":{"type":"TypeInt","optional":true,"computed":true},"max_size_in_megabytes":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_id":{"type":"TypeString","required":true,"forceNew":true},"partitioning_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"requires_duplicate_detection":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"requires_session":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Active"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_queue_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"queue_id":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_subscription":{"schema":{"auto_delete_on_idle":{"type":"TypeString","optional":true,"default":"P10675199DT2H48M5.4775807S"},"batched_operations_enabled":{"type":"TypeBool","optional":true},"client_scoped_subscription":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true,"forceNew":true},"is_client_scoped_subscription_durable":{"type":"TypeBool","computed":true},"is_client_scoped_subscription_shareable":{"type":"TypeBool","optional":true,"default":true,"forceNew":true}}},"maxItems":1},"client_scoped_subscription_enabled":{"type":"TypeBool","optional":true,"default":false},"dead_lettering_on_filter_evaluation_error":{"type":"TypeBool","optional":true,"default":true},"dead_lettering_on_message_expiration":{"type":"TypeBool","optional":true},"default_message_ttl":{"type":"TypeString","optional":true,"default":"P10675199DT2H48M5.4775807S"},"forward_dead_lettered_messages_to":{"type":"TypeString","optional":true},"forward_to":{"type":"TypeString","optional":true},"lock_duration":{"type":"TypeString","optional":true,"default":"PT1M"},"max_delivery_count":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"requires_session":{"type":"TypeBool","optional":true,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Active"},"topic_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_subscription_rule":{"schema":{"action":{"type":"TypeString","optional":true},"correlation_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"content_type":{"type":"TypeString","optional":true},"correlation_id":{"type":"TypeString","optional":true},"label":{"type":"TypeString","optional":true},"message_id":{"type":"TypeString","optional":true},"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"reply_to":{"type":"TypeString","optional":true},"reply_to_session_id":{"type":"TypeString","optional":true},"session_id":{"type":"TypeString","optional":true},"to":{"type":"TypeString","optional":true}}},"maxItems":1},"filter_type":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sql_filter":{"type":"TypeString","optional":true},"sql_filter_compatibility_level":{"type":"TypeInt","computed":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_topic":{"schema":{"auto_delete_on_idle":{"type":"TypeString","optional":true,"default":"P10675199DT2H48M5.4775807S"},"batched_operations_enabled":{"type":"TypeBool","optional":true},"default_message_ttl":{"type":"TypeString","optional":true,"default":"P10675199DT2H48M5.4775807S"},"duplicate_detection_history_time_window":{"type":"TypeString","optional":true,"default":"PT10M"},"express_enabled":{"type":"TypeBool","optional":true},"max_message_size_in_kilobytes":{"type":"TypeInt","optional":true,"computed":true},"max_size_in_megabytes":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_id":{"type":"TypeString","required":true,"forceNew":true},"partitioning_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"requires_duplicate_detection":{"type":"TypeBool","optional":true,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Active"},"support_ordering":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_topic_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false},"topic_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_shared_image":{"schema":{"accelerated_network_support_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"architecture":{"type":"TypeString","optional":true,"default":"x64","forceNew":true},"confidential_vm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"confidential_vm_supported":{"type":"TypeBool","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"disk_controller_type_nvme_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"disk_types_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"end_of_life_date":{"type":"TypeString","optional":true},"eula":{"type":"TypeString","optional":true,"forceNew":true},"gallery_name":{"type":"TypeString","required":true,"forceNew":true},"hibernation_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"hyper_v_generation":{"type":"TypeString","optional":true,"default":"V1","forceNew":true},"identifier":{"type":"TypeList","required":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"max_recommended_memory_in_gb":{"type":"TypeInt","optional":true},"max_recommended_vcpu_count":{"type":"TypeInt","optional":true},"min_recommended_memory_in_gb":{"type":"TypeInt","optional":true},"min_recommended_vcpu_count":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","required":true,"forceNew":true},"privacy_statement_uri":{"type":"TypeString","optional":true,"forceNew":true},"purchase_plan":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"release_note_uri":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"specialized":{"type":"TypeBool","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trusted_launch_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"trusted_launch_supported":{"type":"TypeBool","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_shared_image_gallery":{"schema":{"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sharing":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"community_gallery":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"eula":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","computed":true},"prefix":{"type":"TypeString","required":true,"forceNew":true},"publisher_email":{"type":"TypeString","required":true,"forceNew":true},"publisher_uri":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"permission":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_name":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_shared_image_version":{"schema":{"blob_uri":{"type":"TypeString","optional":true,"forceNew":true},"deletion_of_replicated_locations_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"end_of_life_date":{"type":"TypeString","optional":true},"exclude_from_latest":{"type":"TypeBool","optional":true,"default":false},"gallery_name":{"type":"TypeString","required":true,"forceNew":true},"image_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_image_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_disk_snapshot_id":{"type":"TypeString","optional":true,"forceNew":true},"replication_mode":{"type":"TypeString","optional":true,"default":"Full","forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_region":{"type":"TypeList","required":true,"elem":{"schema":{"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"exclude_from_latest_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"regional_replica_count":{"type":"TypeInt","required":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"Standard_LRS"}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_signalr_service":{"schema":{"aad_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"connectivity_logs_enabled":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}},"hostname":{"type":"TypeString","computed":true},"http_request_logs_enabled":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"live_trace":{"type":"TypeList","optional":true,"elem":{"schema":{"connectivity_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"http_request_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"messaging_logs_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"live_trace_enabled":{"type":"TypeBool","optional":true,"default":false},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"messaging_logs_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"public_port":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"server_port":{"type":"TypeInt","computed":true},"serverless_connection_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":30},"service_mode":{"type":"TypeString","optional":true,"default":"Default"},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tls_client_cert_enabled":{"type":"TypeBool","optional":true,"default":false},"upstream_endpoint":{"type":"TypeSet","optional":true,"elem":{"schema":{"category_pattern":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"event_pattern":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"hub_pattern":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"url_template":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_signalr_service_custom_certificate":{"schema":{"certificate_version":{"type":"TypeString","computed":true},"custom_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"signalr_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_signalr_service_custom_domain":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"signalr_custom_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"signalr_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_signalr_service_network_acl":{"schema":{"default_action":{"type":"TypeString","required":true},"private_endpoint":{"type":"TypeSet","optional":true,"elem":{"schema":{"allowed_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"denied_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","required":true}}}},"public_network":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"denied_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"signalr_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_signalr_shared_private_link_resource":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"signalr_service_id":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeString","computed":true},"sub_resource_name":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_fabric":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_site_recovery_hyperv_network_mapping":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true},"source_network_name":{"type":"TypeString","required":true,"forceNew":true},"source_system_center_virtual_machine_manager_name":{"type":"TypeString","required":true,"forceNew":true},"target_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_site_recovery_hyperv_replication_policy":{"schema":{"application_consistent_snapshot_frequency_in_hours":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_point_retention_in_hours":{"type":"TypeInt","required":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true},"replication_interval_in_seconds":{"type":"TypeInt","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_hyperv_replication_policy_association":{"schema":{"hyperv_site_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_site_recovery_network_mapping":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_network_id":{"type":"TypeString","required":true,"forceNew":true},"source_recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true},"target_network_id":{"type":"TypeString","required":true,"forceNew":true},"target_recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_site_recovery_protection_container":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_site_recovery_protection_container_mapping":{"schema":{"automatic_update":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"SystemAssignedIdentity"},"automation_account_id":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1,"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true},"recovery_replication_policy_id":{"type":"TypeString","required":true,"forceNew":true},"recovery_source_protection_container_name":{"type":"TypeString","required":true,"forceNew":true},"recovery_target_protection_container_id":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_replicated_vm":{"schema":{"managed_disk":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"disk_id":{"type":"TypeString","required":true,"forceNew":true},"staging_storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"target_disk_encryption":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","configMode":"Auto","required":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"key_encryption_key":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"key_url":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"target_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"target_disk_type":{"type":"TypeString","required":true,"forceNew":true},"target_replica_disk_type":{"type":"TypeString","required":true,"forceNew":true},"target_resource_group_id":{"type":"TypeString","required":true,"forceNew":true}}}},"multi_vm_group_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"failover_test_public_ip_address_id":{"type":"TypeString","optional":true,"computed":true},"failover_test_static_ip":{"type":"TypeString","optional":true,"computed":true},"failover_test_subnet_name":{"type":"TypeString","optional":true,"computed":true},"recovery_public_ip_address_id":{"type":"TypeString","optional":true},"source_network_interface_id":{"type":"TypeString","optional":true,"computed":true},"target_static_ip":{"type":"TypeString","optional":true},"target_subnet_name":{"type":"TypeString","optional":true}}}},"recovery_replication_policy_id":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true},"source_recovery_protection_container_name":{"type":"TypeString","required":true,"forceNew":true},"source_vm_id":{"type":"TypeString","required":true,"forceNew":true},"target_availability_set_id":{"type":"TypeString","optional":true},"target_boot_diagnostic_storage_account_id":{"type":"TypeString","optional":true},"target_capacity_reservation_group_id":{"type":"TypeString","optional":true},"target_edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"target_network_id":{"type":"TypeString","optional":true,"computed":true},"target_proximity_placement_group_id":{"type":"TypeString","optional":true},"target_recovery_fabric_id":{"type":"TypeString","required":true,"forceNew":true},"target_recovery_protection_container_id":{"type":"TypeString","required":true,"forceNew":true},"target_resource_group_id":{"type":"TypeString","required":true,"forceNew":true},"target_virtual_machine_scale_set_id":{"type":"TypeString","optional":true},"target_virtual_machine_size":{"type":"TypeString","optional":true,"computed":true},"target_zone":{"type":"TypeString","optional":true,"forceNew":true},"test_network_id":{"type":"TypeString","optional":true,"computed":true},"unmanaged_disk":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"disk_uri":{"type":"TypeString","required":true,"forceNew":true},"staging_storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"target_storage_account_id":{"type":"TypeString","required":true,"forceNew":true}}}}},"timeouts":{"create":180,"read":5,"delete":80,"update":80}},"azurerm_site_recovery_replication_policy":{"schema":{"application_consistent_snapshot_frequency_in_minutes":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_point_retention_in_minutes":{"type":"TypeInt","required":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_replication_recovery_plan":{"schema":{"azure_to_azure_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"primary_edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"primary_zone":{"type":"TypeString","optional":true,"forceNew":true},"recovery_edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"recovery_zone":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"boot_recovery_group":{"type":"TypeList","required":true,"elem":{"schema":{"post_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"pre_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"replicated_protected_items":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1},"failover_recovery_group":{"type":"TypeList","required":true,"elem":{"schema":{"post_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"pre_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}}}},"maxItems":1,"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true},"shutdown_recovery_group":{"type":"TypeList","required":true,"elem":{"schema":{"post_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"pre_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}}}},"maxItems":1,"minItems":1},"source_recovery_fabric_id":{"type":"TypeString","required":true,"forceNew":true},"target_recovery_fabric_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_services_vault_hyperv_site":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":180}},"azurerm_site_recovery_vmware_replicated_vm":{"schema":{"appliance_name":{"type":"TypeString","required":true,"forceNew":true},"default_log_storage_account_id":{"type":"TypeString","optional":true},"default_recovery_disk_type":{"type":"TypeString","optional":true},"default_target_disk_encryption_set_id":{"type":"TypeString","optional":true},"license_type":{"type":"TypeString","optional":true,"default":"NotSpecified"},"managed_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_id":{"type":"TypeString","required":true},"log_storage_account_id":{"type":"TypeString","optional":true},"target_disk_encryption_set_id":{"type":"TypeString","optional":true},"target_disk_type":{"type":"TypeString","required":true}}}},"multi_vm_group_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","optional":true,"elem":{"schema":{"is_primary":{"type":"TypeBool","required":true},"source_mac_address":{"type":"TypeString","required":true},"target_static_ip":{"type":"TypeString","optional":true},"target_subnet_name":{"type":"TypeString","optional":true},"test_subnet_name":{"type":"TypeString","optional":true}}}},"physical_server_credential_name":{"type":"TypeString","required":true,"forceNew":true},"recovery_replication_policy_id":{"type":"TypeString","required":true},"recovery_vault_id":{"type":"TypeString","required":true},"source_vm_name":{"type":"TypeString","required":true,"forceNew":true},"target_availability_set_id":{"type":"TypeString","optional":true},"target_boot_diagnostics_storage_account_id":{"type":"TypeString","optional":true},"target_network_id":{"type":"TypeString","optional":true},"target_proximity_placement_group_id":{"type":"TypeString","optional":true},"target_resource_group_id":{"type":"TypeString","required":true},"target_vm_name":{"type":"TypeString","required":true,"forceNew":true},"target_vm_size":{"type":"TypeString","optional":true},"target_zone":{"type":"TypeString","optional":true},"test_network_id":{"type":"TypeString","optional":true}},"timeouts":{"create":120,"read":5,"delete":90,"update":90}},"azurerm_site_recovery_vmware_replication_policy":{"schema":{"application_consistent_snapshot_frequency_in_minutes":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_point_retention_in_minutes":{"type":"TypeInt","required":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_vmware_replication_policy_association":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"policy_id":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_snapshot":{"schema":{"create_option":{"type":"TypeString","required":true},"disk_access_id":{"type":"TypeString","optional":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"encryption_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","required":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"key_encryption_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"incremental_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_access_policy":{"type":"TypeString","optional":true,"default":"AllowAll"},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"source_uri":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trusted_launch_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_source_control_token":{"schema":{"token":{"type":"TypeString","required":true},"token_secret":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_spatial_anchors_account":{"schema":{"account_domain":{"type":"TypeString","computed":true},"account_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_accelerator":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_spring_cloud_active_deployment":{"schema":{"deployment_name":{"type":"TypeString","required":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_api_portal":{"schema":{"api_try_out_enabled":{"type":"TypeBool","optional":true},"gateway_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"https_only_enabled":{"type":"TypeBool","optional":true},"instance_count":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"sso":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","optional":true},"issuer_uri":{"type":"TypeString","optional":true},"scope":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_api_portal_custom_domain":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_api_portal_id":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app":{"schema":{"addon_json":{"type":"TypeString","optional":true,"computed":true},"custom_persistent_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"mount_options":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"mount_path":{"type":"TypeString","required":true},"read_only_enabled":{"type":"TypeBool","optional":true,"default":false},"share_name":{"type":"TypeString","required":true},"storage_name":{"type":"TypeString","required":true}}},"minItems":1},"fqdn":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ingress_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"backend_protocol":{"type":"TypeString","optional":true,"default":"Default"},"read_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":300},"send_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":60},"session_affinity":{"type":"TypeString","optional":true,"default":"None"},"session_cookie_max_age":{"type":"TypeInt","optional":true}}},"maxItems":1},"is_public":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"persistent_disk":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"mount_path":{"type":"TypeString","optional":true,"default":"/persistent"},"size_in_gb":{"type":"TypeInt","required":true}}},"maxItems":1},"public_endpoint_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_name":{"type":"TypeString","required":true,"forceNew":true},"tls_enabled":{"type":"TypeBool","optional":true,"default":false},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app_cosmosdb_association":{"schema":{"api_type":{"type":"TypeString","required":true,"forceNew":true},"cosmosdb_access_key":{"type":"TypeString","required":true},"cosmosdb_account_id":{"type":"TypeString","required":true,"forceNew":true},"cosmosdb_cassandra_keyspace_name":{"type":"TypeString","optional":true},"cosmosdb_gremlin_database_name":{"type":"TypeString","optional":true},"cosmosdb_gremlin_graph_name":{"type":"TypeString","optional":true},"cosmosdb_mongo_database_name":{"type":"TypeString","optional":true},"cosmosdb_sql_database_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app_dynamics_application_performance_monitoring":{"schema":{"agent_account_access_key":{"type":"TypeString","required":true},"agent_account_name":{"type":"TypeString","required":true},"agent_application_name":{"type":"TypeString","optional":true},"agent_node_name":{"type":"TypeString","optional":true},"agent_tier_name":{"type":"TypeString","optional":true},"agent_unique_host_id":{"type":"TypeString","optional":true},"controller_host_name":{"type":"TypeString","required":true},"controller_port":{"type":"TypeInt","optional":true},"controller_ssl_enabled":{"type":"TypeBool","optional":true},"globally_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app_mysql_association":{"schema":{"database_name":{"type":"TypeString","required":true},"mysql_server_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app_redis_association":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"redis_access_key":{"type":"TypeString","required":true},"redis_cache_id":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true},"ssl_enabled":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_application_insights_application_performance_monitoring":{"schema":{"connection_string":{"type":"TypeString","optional":true},"globally_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"role_instance":{"type":"TypeString","optional":true},"role_name":{"type":"TypeString","optional":true},"sampling_percentage":{"type":"TypeInt","optional":true},"sampling_requests_per_second":{"type":"TypeInt","optional":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_application_live_view":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_spring_cloud_build_deployment":{"schema":{"addon_json":{"type":"TypeString","optional":true,"computed":true},"application_performance_monitoring_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"build_result_id":{"type":"TypeString","required":true},"environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"instance_count":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"quota":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cpu":{"type":"TypeString","optional":true,"computed":true},"memory":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_build_pack_binding":{"schema":{"binding_type":{"type":"TypeString","optional":true},"launch":{"type":"TypeList","optional":true,"elem":{"schema":{"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"secrets":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_builder_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_builder":{"schema":{"build_pack_group":{"type":"TypeSet","required":true,"elem":{"schema":{"build_pack_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"stack":{"type":"TypeList","required":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_certificate":{"schema":{"certificate_content":{"type":"TypeString","optional":true,"forceNew":true},"exclude_private_key":{"type":"TypeBool","optional":true,"forceNew":true},"key_vault_certificate_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_name":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_spring_cloud_configuration_service":{"schema":{"generation":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"refresh_interval_in_seconds":{"type":"TypeInt","optional":true},"repository":{"type":"TypeList","optional":true,"elem":{"schema":{"ca_certificate_id":{"type":"TypeString","optional":true},"host_key":{"type":"TypeString","optional":true},"host_key_algorithm":{"type":"TypeString","optional":true},"label":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"password":{"type":"TypeString","optional":true},"patterns":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"private_key":{"type":"TypeString","optional":true},"search_paths":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"strict_host_key_checking":{"type":"TypeBool","optional":true},"uri":{"type":"TypeString","required":true},"username":{"type":"TypeString","optional":true}}}},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_connection":{"schema":{"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","optional":true},"secret":{"type":"TypeString","optional":true},"subscription_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"client_type":{"type":"TypeString","optional":true,"default":"none"},"name":{"type":"TypeString","required":true,"forceNew":true},"secret_store":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"spring_cloud_id":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"vnet_solution":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_container_deployment":{"schema":{"addon_json":{"type":"TypeString","optional":true,"computed":true},"application_performance_monitoring_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"arguments":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"commands":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"image":{"type":"TypeString","required":true},"instance_count":{"type":"TypeInt","optional":true,"default":1},"language_framework":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"quota":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cpu":{"type":"TypeString","optional":true,"computed":true},"memory":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"server":{"type":"TypeString","required":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_custom_domain":{"schema":{"certificate_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_customized_accelerator":{"schema":{"accelerator_tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"accelerator_type":{"type":"TypeString","optional":true,"default":"Accelerator"},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"git_repository":{"type":"TypeList","required":true,"elem":{"schema":{"basic_auth":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"branch":{"type":"TypeString","optional":true},"ca_certificate_id":{"type":"TypeString","optional":true},"commit":{"type":"TypeString","optional":true},"git_tag":{"type":"TypeString","optional":true},"interval_in_seconds":{"type":"TypeInt","optional":true},"path":{"type":"TypeString","optional":true},"ssh_auth":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"host_key":{"type":"TypeString","optional":true},"host_key_algorithm":{"type":"TypeString","optional":true},"private_key":{"type":"TypeString","required":true}}},"maxItems":1},"url":{"type":"TypeString","required":true}}},"maxItems":1},"icon_url":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_accelerator_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_dev_tool_portal":{"schema":{"application_accelerator_enabled":{"type":"TypeBool","optional":true,"computed":true},"application_live_view_enabled":{"type":"TypeBool","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"sso":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","optional":true},"metadata_url":{"type":"TypeString","optional":true},"scope":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_dynatrace_application_performance_monitoring":{"schema":{"api_token":{"type":"TypeString","optional":true},"api_url":{"type":"TypeString","optional":true},"connection_point":{"type":"TypeString","required":true},"environment_id":{"type":"TypeString","optional":true},"globally_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"tenant":{"type":"TypeString","required":true},"tenant_token":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_elastic_application_performance_monitoring":{"schema":{"application_packages":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"globally_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"server_url":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","required":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_gateway":{"schema":{"api_metadata":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"documentation_url":{"type":"TypeString","optional":true},"server_url":{"type":"TypeString","optional":true},"title":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"application_performance_monitoring_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"application_performance_monitoring_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_authorization":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"verification_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"allowed_methods":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"allowed_origin_patterns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"allowed_origins":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"credentials_allowed":{"type":"TypeBool","optional":true},"exposed_headers":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"max_age_seconds":{"type":"TypeInt","optional":true}}},"maxItems":1},"environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"https_only":{"type":"TypeBool","optional":true},"instance_count":{"type":"TypeInt","optional":true,"default":1},"local_response_cache_per_instance":{"type":"TypeList","optional":true,"elem":{"schema":{"size":{"type":"TypeString","optional":true},"time_to_live":{"type":"TypeString","optional":true}}},"maxItems":1},"local_response_cache_per_route":{"type":"TypeList","optional":true,"elem":{"schema":{"size":{"type":"TypeString","optional":true},"time_to_live":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true},"quota":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cpu":{"type":"TypeString","optional":true,"default":"1"},"memory":{"type":"TypeString","optional":true,"default":"2Gi"}}},"maxItems":1},"sensitive_environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"sso":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","optional":true},"issuer_uri":{"type":"TypeString","optional":true},"scope":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_gateway_custom_domain":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_gateway_route_config":{"schema":{"filters":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"open_api":{"type":"TypeList","optional":true,"elem":{"schema":{"uri":{"type":"TypeString","optional":true}}},"maxItems":1},"predicates":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"protocol":{"type":"TypeString","required":true},"route":{"type":"TypeSet","optional":true,"elem":{"schema":{"classification_tags":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"filters":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"order":{"type":"TypeInt","required":true},"predicates":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"sso_validation_enabled":{"type":"TypeBool","optional":true},"title":{"type":"TypeString","optional":true},"token_relay":{"type":"TypeBool","optional":true},"uri":{"type":"TypeString","optional":true}}}},"spring_cloud_app_id":{"type":"TypeString","optional":true},"spring_cloud_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"sso_validation_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_java_deployment":{"schema":{"environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"instance_count":{"type":"TypeInt","optional":true,"default":1},"jvm_options":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"quota":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cpu":{"type":"TypeString","optional":true,"computed":true},"memory":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"default":"Java_8"},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_new_relic_application_performance_monitoring":{"schema":{"agent_enabled":{"type":"TypeBool","optional":true,"default":true},"app_name":{"type":"TypeString","required":true},"app_server_port":{"type":"TypeInt","optional":true},"audit_mode_enabled":{"type":"TypeBool","optional":true},"auto_app_naming_enabled":{"type":"TypeBool","optional":true},"auto_transaction_naming_enabled":{"type":"TypeBool","optional":true,"default":true},"custom_tracing_enabled":{"type":"TypeBool","optional":true,"default":true},"globally_enabled":{"type":"TypeBool","optional":true},"labels":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"license_key":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_service":{"schema":{"build_agent_pool_size":{"type":"TypeString","optional":true},"config_server_git_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"http_basic_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"label":{"type":"TypeString","optional":true},"repository":{"type":"TypeList","optional":true,"elem":{"schema":{"http_basic_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"label":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"pattern":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"search_paths":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"ssh_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"host_key":{"type":"TypeString","optional":true},"host_key_algorithm":{"type":"TypeString","optional":true},"private_key":{"type":"TypeString","required":true},"strict_host_key_checking_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true}}}},"search_paths":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"ssh_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"host_key":{"type":"TypeString","optional":true},"host_key_algorithm":{"type":"TypeString","optional":true},"private_key":{"type":"TypeString","required":true},"strict_host_key_checking_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"container_registry":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true},"server":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}}},"default_build_service":{"type":"TypeList","optional":true,"elem":{"schema":{"container_registry_name":{"type":"TypeString","optional":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"log_stream_public_endpoint_enabled":{"type":"TypeBool","optional":true},"managed_environment_id":{"type":"TypeString","optional":true},"marketplace":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"plan":{"type":"TypeString","required":true},"product":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"app_network_resource_group":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"app_subnet_id":{"type":"TypeString","required":true,"forceNew":true},"cidr_ranges":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":3},"outbound_type":{"type":"TypeString","optional":true,"default":"loadBalancer","forceNew":true},"read_timeout_seconds":{"type":"TypeInt","optional":true},"service_runtime_network_resource_group":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"service_runtime_subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"outbound_public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"required_network_traffic_rules":{"type":"TypeList","computed":true,"elem":{"schema":{"direction":{"type":"TypeString","computed":true},"fqdns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_registry_enabled":{"type":"TypeBool","optional":true},"service_registry_id":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","optional":true,"default":"S0","forceNew":true},"sku_tier":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trace":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_string":{"type":"TypeString","optional":true},"sample_rate":{"type":"TypeFloat","optional":true,"default":10}}},"maxItems":1},"zone_redundant":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":60,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_storage":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_ssh_public_key":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_key":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":45,"read":5,"delete":45,"update":45}},"azurerm_stack_hci_cluster":{"schema":{"automanage_configuration_id":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true,"forceNew":true},"cloud_id":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_provider_object_id":{"type":"TypeString","computed":true},"service_endpoint":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stack_hci_deployment_setting":{"schema":{"arc_resource_ids":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"scale_unit":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"active_directory_organizational_unit_path":{"type":"TypeString","required":true,"forceNew":true},"bitlocker_boot_volume_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"bitlocker_data_volume_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"cluster":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"azure_service_endpoint":{"type":"TypeString","required":true,"forceNew":true},"cloud_account_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"witness_path":{"type":"TypeString","required":true,"forceNew":true},"witness_type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"credential_guard_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"domain_fqdn":{"type":"TypeString","required":true,"forceNew":true},"drift_control_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"drtm_protection_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"episodic_data_upload_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"eu_location_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"host_network":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"intent":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"adapter":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"adapter_property_override":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"jumbo_packet":{"type":"TypeString","optional":true,"forceNew":true},"network_direct":{"type":"TypeString","optional":true,"forceNew":true},"network_direct_technology":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"adapter_property_override_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"qos_policy_override":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"bandwidth_percentage_smb":{"type":"TypeString","optional":true,"forceNew":true},"priority_value8021_action_cluster":{"type":"TypeString","optional":true,"forceNew":true},"priority_value8021_action_smb":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"qos_policy_override_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"traffic_type":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"virtual_switch_configuration_override":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"enable_iov":{"type":"TypeString","optional":true,"forceNew":true},"load_balancing_algorithm":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"virtual_switch_configuration_override_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"minItems":1},"storage_auto_ip_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"storage_connectivity_switchless_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"storage_network":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"network_adapter_name":{"type":"TypeString","required":true,"forceNew":true},"vlan_id":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1}}},"maxItems":1},"hvci_protection_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"infrastructure_network":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"dhcp_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"dns_server":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"gateway":{"type":"TypeString","required":true,"forceNew":true},"ip_pool":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"ending_address":{"type":"TypeString","required":true,"forceNew":true},"starting_address":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1},"subnet_mask":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1},"name_prefix":{"type":"TypeString","required":true,"forceNew":true},"optional_service":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"custom_location":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"physical_node":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"ipv4_address":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1},"secrets_location":{"type":"TypeString","required":true,"forceNew":true},"side_channel_mitigation_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"smb_cluster_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"smb_signing_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"storage":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"configuration_mode":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"streaming_data_client_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"wdac_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true}}},"minItems":1},"stack_hci_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":360,"read":5,"delete":60}},"azurerm_stack_hci_logical_network":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"dns_servers":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","optional":true,"forceNew":true},"ip_allocation_method":{"type":"TypeString","required":true,"forceNew":true},"ip_pool":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"end":{"type":"TypeString","required":true,"forceNew":true},"start":{"type":"TypeString","required":true,"forceNew":true}}}},"route":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"forceNew":true},"next_hop_ip_address":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"vlan_id":{"type":"TypeInt","optional":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_switch_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stack_hci_storage_path":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stack_hci_virtual_hard_disk":{"schema":{"block_size_in_bytes":{"type":"TypeInt","optional":true,"forceNew":true},"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"disk_file_format":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_in_gb":{"type":"TypeInt","required":true,"forceNew":true},"dynamic_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"hyperv_generation":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logical_sector_in_bytes":{"type":"TypeInt","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"physical_sector_in_bytes":{"type":"TypeInt","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_path_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_static_site":{"schema":{"api_key":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"default_host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_size":{"type":"TypeString","optional":true,"default":"Free"},"sku_tier":{"type":"TypeString","optional":true,"default":"Free"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_static_site_custom_domain":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"static_site_id":{"type":"TypeString","required":true,"forceNew":true},"validation_token":{"type":"TypeString","computed":true},"validation_type":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_static_web_app":{"schema":{"api_key":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"basic_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"environments":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true}}},"maxItems":1},"configuration_file_changes_enabled":{"type":"TypeBool","optional":true,"default":true},"default_host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"preview_environments_enabled":{"type":"TypeBool","optional":true,"default":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_size":{"type":"TypeString","optional":true,"default":"Free"},"sku_tier":{"type":"TypeString","optional":true,"default":"Free"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_static_web_app_custom_domain":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"static_web_app_id":{"type":"TypeString","required":true,"forceNew":true},"validation_token":{"type":"TypeString","computed":true},"validation_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_static_web_app_function_app_registration":{"schema":{"function_app_id":{"type":"TypeString","required":true,"forceNew":true},"static_web_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_storage_account":{"schema":{"access_tier":{"type":"TypeString","optional":true,"computed":true},"account_kind":{"type":"TypeString","optional":true,"default":"StorageV2"},"account_replication_type":{"type":"TypeString","required":true},"account_tier":{"type":"TypeString","required":true,"forceNew":true},"allow_nested_items_to_be_public":{"type":"TypeBool","optional":true,"default":true},"allowed_copy_scope":{"type":"TypeString","optional":true},"azure_files_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"domain_guid":{"type":"TypeString","required":true},"domain_name":{"type":"TypeString","required":true},"domain_sid":{"type":"TypeString","optional":true},"forest_name":{"type":"TypeString","optional":true},"netbios_domain_name":{"type":"TypeString","optional":true},"storage_sid":{"type":"TypeString","optional":true}}},"maxItems":1},"default_share_level_permission":{"type":"TypeString","optional":true,"default":"None"},"directory_type":{"type":"TypeString","required":true}}},"maxItems":1},"blob_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"change_feed_enabled":{"type":"TypeBool","optional":true,"default":false},"change_feed_retention_in_days":{"type":"TypeInt","optional":true},"container_delete_retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true,"default":7}}},"maxItems":1},"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"max_age_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":5},"default_service_version":{"type":"TypeString","optional":true,"computed":true},"delete_retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true,"default":7},"permanent_delete_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"last_access_time_enabled":{"type":"TypeBool","optional":true,"default":false},"restore_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","required":true}}},"maxItems":1},"versioning_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"cross_tenant_replication_enabled":{"type":"TypeBool","optional":true,"default":false},"custom_domain":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"use_subdomain":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","optional":true},"managed_hsm_key_id":{"type":"TypeString","optional":true},"user_assigned_identity_id":{"type":"TypeString","required":true}}},"maxItems":1},"default_to_oauth_authentication":{"type":"TypeBool","optional":true,"default":false},"dns_endpoint_type":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"https_traffic_only_enabled":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"immutability_policy":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"allow_protected_append_writes":{"type":"TypeBool","required":true},"period_since_creation_in_days":{"type":"TypeInt","required":true},"state":{"type":"TypeString","required":true}}},"maxItems":1},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"is_hns_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"large_file_share_enabled":{"type":"TypeBool","optional":true,"computed":true},"local_user_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"min_tls_version":{"type":"TypeString","optional":true,"default":"TLS1_2"},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rules":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"bypass":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"private_link_access":{"type":"TypeList","optional":true,"elem":{"schema":{"endpoint_resource_id":{"type":"TypeString","required":true},"endpoint_tenant_id":{"type":"TypeString","optional":true,"computed":true}}}},"virtual_network_subnet_ids":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"nfsv3_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_blob_connection_string":{"type":"TypeString","computed":true},"primary_blob_endpoint":{"type":"TypeString","computed":true},"primary_blob_host":{"type":"TypeString","computed":true},"primary_blob_internet_endpoint":{"type":"TypeString","computed":true},"primary_blob_internet_host":{"type":"TypeString","computed":true},"primary_blob_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_blob_microsoft_host":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_dfs_endpoint":{"type":"TypeString","computed":true},"primary_dfs_host":{"type":"TypeString","computed":true},"primary_dfs_internet_endpoint":{"type":"TypeString","computed":true},"primary_dfs_internet_host":{"type":"TypeString","computed":true},"primary_dfs_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_dfs_microsoft_host":{"type":"TypeString","computed":true},"primary_file_endpoint":{"type":"TypeString","computed":true},"primary_file_host":{"type":"TypeString","computed":true},"primary_file_internet_endpoint":{"type":"TypeString","computed":true},"primary_file_internet_host":{"type":"TypeString","computed":true},"primary_file_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_file_microsoft_host":{"type":"TypeString","computed":true},"primary_location":{"type":"TypeString","computed":true},"primary_queue_endpoint":{"type":"TypeString","computed":true},"primary_queue_host":{"type":"TypeString","computed":true},"primary_queue_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_queue_microsoft_host":{"type":"TypeString","computed":true},"primary_table_endpoint":{"type":"TypeString","computed":true},"primary_table_host":{"type":"TypeString","computed":true},"primary_table_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_table_microsoft_host":{"type":"TypeString","computed":true},"primary_web_endpoint":{"type":"TypeString","computed":true},"primary_web_host":{"type":"TypeString","computed":true},"primary_web_internet_endpoint":{"type":"TypeString","computed":true},"primary_web_internet_host":{"type":"TypeString","computed":true},"primary_web_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_web_microsoft_host":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"queue_encryption_key_type":{"type":"TypeString","optional":true,"default":"Service","forceNew":true},"queue_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"max_age_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":5},"hour_metrics":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"include_apis":{"type":"TypeBool","optional":true},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"logging":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"delete":{"type":"TypeBool","required":true},"read":{"type":"TypeBool","required":true},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true},"write":{"type":"TypeBool","required":true}}},"maxItems":1},"minute_metrics":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"include_apis":{"type":"TypeBool","optional":true},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"choice":{"type":"TypeString","optional":true,"default":"MicrosoftRouting"},"publish_internet_endpoints":{"type":"TypeBool","optional":true,"default":false},"publish_microsoft_endpoints":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"sas_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"expiration_action":{"type":"TypeString","optional":true,"default":"Log"},"expiration_period":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_blob_connection_string":{"type":"TypeString","computed":true},"secondary_blob_endpoint":{"type":"TypeString","computed":true},"secondary_blob_host":{"type":"TypeString","computed":true},"secondary_blob_internet_endpoint":{"type":"TypeString","computed":true},"secondary_blob_internet_host":{"type":"TypeString","computed":true},"secondary_blob_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_blob_microsoft_host":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_dfs_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_host":{"type":"TypeString","computed":true},"secondary_dfs_internet_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_internet_host":{"type":"TypeString","computed":true},"secondary_dfs_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_microsoft_host":{"type":"TypeString","computed":true},"secondary_file_endpoint":{"type":"TypeString","computed":true},"secondary_file_host":{"type":"TypeString","computed":true},"secondary_file_internet_endpoint":{"type":"TypeString","computed":true},"secondary_file_internet_host":{"type":"TypeString","computed":true},"secondary_file_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_file_microsoft_host":{"type":"TypeString","computed":true},"secondary_location":{"type":"TypeString","computed":true},"secondary_queue_endpoint":{"type":"TypeString","computed":true},"secondary_queue_host":{"type":"TypeString","computed":true},"secondary_queue_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_queue_microsoft_host":{"type":"TypeString","computed":true},"secondary_table_endpoint":{"type":"TypeString","computed":true},"secondary_table_host":{"type":"TypeString","computed":true},"secondary_table_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_table_microsoft_host":{"type":"TypeString","computed":true},"secondary_web_endpoint":{"type":"TypeString","computed":true},"secondary_web_host":{"type":"TypeString","computed":true},"secondary_web_internet_endpoint":{"type":"TypeString","computed":true},"secondary_web_internet_host":{"type":"TypeString","computed":true},"secondary_web_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_web_microsoft_host":{"type":"TypeString","computed":true},"sftp_enabled":{"type":"TypeBool","optional":true,"default":false},"share_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"max_age_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":5},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true,"default":7}}},"maxItems":1},"smb":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"channel_encryption_type":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"kerberos_ticket_encryption_type":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"multichannel_enabled":{"type":"TypeBool","optional":true,"default":false},"versions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"shared_access_key_enabled":{"type":"TypeBool","optional":true,"default":true},"static_website":{"type":"TypeList","optional":true,"elem":{"schema":{"error_404_document":{"type":"TypeString","optional":true},"index_document":{"type":"TypeString","optional":true}}},"maxItems":1},"table_encryption_key_type":{"type":"TypeString","optional":true,"default":"Service","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_storage_account_customer_managed_key":{"schema":{"federated_identity_client_id":{"type":"TypeString","optional":true},"key_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"key_vault_uri":{"type":"TypeString","optional":true,"computed":true},"key_version":{"type":"TypeString","optional":true},"managed_hsm_key_id":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_account_local_user":{"schema":{"home_directory":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","computed":true},"permission_scope":{"type":"TypeList","optional":true,"elem":{"schema":{"permissions":{"type":"TypeList","required":true,"elem":{"schema":{"create":{"type":"TypeBool","optional":true,"default":false},"delete":{"type":"TypeBool","optional":true,"default":false},"list":{"type":"TypeBool","optional":true,"default":false},"read":{"type":"TypeBool","optional":true,"default":false},"write":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"resource_name":{"type":"TypeString","required":true},"service":{"type":"TypeString","required":true}}}},"sid":{"type":"TypeString","computed":true},"ssh_authorized_key":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"key":{"type":"TypeString","required":true}}}},"ssh_key_enabled":{"type":"TypeBool","optional":true,"default":false},"ssh_password_enabled":{"type":"TypeBool","optional":true,"default":false},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_account_network_rules":{"schema":{"bypass":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"private_link_access":{"type":"TypeList","optional":true,"elem":{"schema":{"endpoint_resource_id":{"type":"TypeString","required":true},"endpoint_tenant_id":{"type":"TypeString","optional":true,"computed":true}}}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_subnet_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_storage_blob":{"schema":{"access_tier":{"type":"TypeString","optional":true,"computed":true},"cache_control":{"type":"TypeString","optional":true},"content_md5":{"type":"TypeString","optional":true,"forceNew":true},"content_type":{"type":"TypeString","optional":true,"default":"application/octet-stream"},"encryption_scope":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"parallelism":{"type":"TypeInt","optional":true,"default":8,"forceNew":true},"size":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"source":{"type":"TypeString","optional":true,"forceNew":true},"source_content":{"type":"TypeString","optional":true,"forceNew":true},"source_uri":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"storage_container_name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_blob_inventory_policy":{"schema":{"rules":{"type":"TypeSet","required":true,"elem":{"schema":{"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"exclude_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":10},"include_blob_versions":{"type":"TypeBool","optional":true,"default":false},"include_deleted":{"type":"TypeBool","optional":true,"default":false},"include_snapshots":{"type":"TypeBool","optional":true,"default":false},"prefix_match":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":10}}},"maxItems":1},"format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"schedule":{"type":"TypeString","required":true},"schema_fields":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"scope":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true}}}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_container":{"schema":{"container_access_type":{"type":"TypeString","optional":true,"default":"private"},"default_encryption_scope":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"encryption_scope_override_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"has_immutability_policy":{"type":"TypeBool","computed":true},"has_legal_hold":{"type":"TypeBool","computed":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_container_immutability_policy":{"schema":{"immutability_period_in_days":{"type":"TypeInt","required":true},"locked":{"type":"TypeBool","optional":true,"default":false},"protected_append_writes_all_enabled":{"type":"TypeBool","optional":true,"default":false},"protected_append_writes_enabled":{"type":"TypeBool","optional":true,"default":false},"storage_container_resource_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":10,"read":5,"delete":10,"update":10}},"azurerm_storage_data_lake_gen2_filesystem":{"schema":{"ace":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"permissions":{"type":"TypeString","required":true},"scope":{"type":"TypeString","optional":true,"default":"access"},"type":{"type":"TypeString","required":true}}}},"default_encryption_scope":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"group":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"owner":{"type":"TypeString","optional":true,"computed":true},"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_data_lake_gen2_path":{"schema":{"ace":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"permissions":{"type":"TypeString","required":true},"scope":{"type":"TypeString","optional":true,"default":"access"},"type":{"type":"TypeString","required":true}}}},"filesystem_name":{"type":"TypeString","required":true,"forceNew":true},"group":{"type":"TypeString","optional":true,"computed":true},"owner":{"type":"TypeString","optional":true,"computed":true},"path":{"type":"TypeString","required":true,"forceNew":true},"resource":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_encryption_scope":{"schema":{"infrastructure_encryption_required":{"type":"TypeBool","optional":true,"forceNew":true},"key_vault_key_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_management_policy":{"schema":{"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"schema":{"base_blob":{"type":"TypeList","optional":true,"elem":{"schema":{"auto_tier_to_hot_from_cool_enabled":{"type":"TypeBool","optional":true},"delete_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"delete_after_days_since_last_access_time_greater_than":{"type":"TypeInt","optional":true,"default":-1},"delete_after_days_since_modification_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_last_access_time_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_modification_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_last_access_time_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_modification_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cool_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cool_after_days_since_last_access_time_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cool_after_days_since_modification_greater_than":{"type":"TypeInt","optional":true,"default":-1}}},"maxItems":1},"snapshot":{"type":"TypeList","optional":true,"elem":{"schema":{"change_tier_to_archive_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"change_tier_to_cool_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"delete_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1}}},"maxItems":1},"version":{"type":"TypeList","optional":true,"elem":{"schema":{"change_tier_to_archive_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"change_tier_to_cool_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"delete_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1}}},"maxItems":1}}},"maxItems":1},"enabled":{"type":"TypeBool","required":true},"filters":{"type":"TypeList","required":true,"elem":{"schema":{"blob_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"match_blob_index_tag":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operation":{"type":"TypeString","optional":true,"default":"=="},"value":{"type":"TypeString","required":true}}}},"prefix_match":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"minItems":1},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover":{"schema":{"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_agent":{"schema":{"arc_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"arc_virtual_machine_uuid":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_mover_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_job_definition":{"schema":{"agent_name":{"type":"TypeString","optional":true},"copy_mode":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"source_name":{"type":"TypeString","required":true,"forceNew":true},"source_sub_path":{"type":"TypeString","optional":true,"forceNew":true},"storage_mover_project_id":{"type":"TypeString","required":true,"forceNew":true},"target_name":{"type":"TypeString","required":true,"forceNew":true},"target_sub_path":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_project":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_mover_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_source_endpoint":{"schema":{"description":{"type":"TypeString","optional":true},"export":{"type":"TypeString","optional":true,"forceNew":true},"host":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"nfs_version":{"type":"TypeString","optional":true,"default":"NFSauto","forceNew":true},"storage_mover_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_target_endpoint":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"storage_container_name":{"type":"TypeString","required":true,"forceNew":true},"storage_mover_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_object_replication":{"schema":{"destination_object_replication_id":{"type":"TypeString","computed":true},"destination_storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"rules":{"type":"TypeSet","required":true,"elem":{"schema":{"copy_blobs_created_after":{"type":"TypeString","optional":true,"default":"OnlyNewObjects"},"destination_container_name":{"type":"TypeString","required":true},"filter_out_blobs_with_prefix":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"source_container_name":{"type":"TypeString","required":true}}}},"source_object_replication_id":{"type":"TypeString","computed":true},"source_storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_queue":{"schema":{"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_share":{"schema":{"access_tier":{"type":"TypeString","optional":true,"computed":true},"acl":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"expiry":{"type":"TypeString","optional":true},"permissions":{"type":"TypeString","required":true},"start":{"type":"TypeString","optional":true}}}},"id":{"type":"TypeString","required":true}}}},"enabled_protocol":{"type":"TypeString","optional":true,"default":"SMB","forceNew":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"quota":{"type":"TypeInt","required":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_share_directory":{"schema":{"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_share_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_share_file":{"schema":{"content_disposition":{"type":"TypeString","optional":true},"content_encoding":{"type":"TypeString","optional":true},"content_length":{"type":"TypeInt","computed":true},"content_md5":{"type":"TypeString","optional":true,"forceNew":true},"content_type":{"type":"TypeString","optional":true,"default":"application/octet-stream"},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"path":{"type":"TypeString","optional":true,"default":"","forceNew":true},"source":{"type":"TypeString","optional":true,"forceNew":true},"storage_share_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_sync":{"schema":{"incoming_traffic_policy":{"type":"TypeString","optional":true,"default":"AllowAllTraffic"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"registered_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_sync_cloud_endpoint":{"schema":{"file_share_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"storage_sync_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":45,"read":5,"delete":45}},"azurerm_storage_sync_group":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"storage_sync_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_storage_sync_server_endpoint":{"schema":{"cloud_tiering_enabled":{"type":"TypeBool","optional":true,"default":false},"initial_download_policy":{"type":"TypeString","optional":true,"default":"NamespaceThenModifiedFiles","forceNew":true},"local_cache_mode":{"type":"TypeString","optional":true,"default":"UpdateLocallyCachedFiles"},"name":{"type":"TypeString","required":true,"forceNew":true},"registered_server_id":{"type":"TypeString","required":true,"forceNew":true},"server_local_path":{"type":"TypeString","required":true,"forceNew":true},"storage_sync_group_id":{"type":"TypeString","required":true,"forceNew":true},"tier_files_older_than_days":{"type":"TypeInt","optional":true},"volume_free_space_percent":{"type":"TypeInt","optional":true,"default":20}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_table":{"schema":{"acl":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"expiry":{"type":"TypeString","required":true},"permissions":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true}}}},"id":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_table_entity":{"schema":{"entity":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}},"partition_key":{"type":"TypeString","required":true,"forceNew":true},"row_key":{"type":"TypeString","required":true,"forceNew":true},"storage_table_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_cluster":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"streaming_capacity":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_stream_analytics_function_javascript_uda":{"schema":{"input":{"type":"TypeList","required":true,"elem":{"schema":{"configuration_parameter":{"type":"TypeBool","optional":true,"default":false},"type":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"output":{"type":"TypeList","required":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}},"maxItems":1},"script":{"type":"TypeString","required":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_function_javascript_udf":{"schema":{"input":{"type":"TypeList","required":true,"elem":{"schema":{"configuration_parameter":{"type":"TypeBool","optional":true,"default":false},"type":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"output":{"type":"TypeList","required":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"script":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_job":{"schema":{"compatibility_level":{"type":"TypeString","optional":true,"computed":true},"content_storage_policy":{"type":"TypeString","optional":true,"default":"SystemAccount"},"data_locale":{"type":"TypeString","optional":true,"default":"en-US"},"events_late_arrival_max_delay_in_seconds":{"type":"TypeInt","optional":true,"default":5},"events_out_of_order_max_delay_in_seconds":{"type":"TypeInt","optional":true,"default":0},"events_out_of_order_policy":{"type":"TypeString","optional":true,"default":"Adjust"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"job_id":{"type":"TypeString","computed":true},"job_storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_error_policy":{"type":"TypeString","optional":true,"default":"Drop"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","optional":true,"default":"Standard"},"stream_analytics_cluster_id":{"type":"TypeString","optional":true},"streaming_units":{"type":"TypeInt","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"transformation_query":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true,"default":"Cloud","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_job_schedule":{"schema":{"last_output_time":{"type":"TypeString","computed":true},"start_mode":{"type":"TypeString","required":true},"start_time":{"type":"TypeString","optional":true,"computed":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_managed_private_endpoint":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_cluster_name":{"type":"TypeString","required":true,"forceNew":true},"subresource_name":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":5}},"azurerm_stream_analytics_output_blob":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"batch_max_wait_time":{"type":"TypeString","optional":true},"batch_min_rows":{"type":"TypeInt","optional":true},"blob_write_mode":{"type":"TypeString","optional":true,"default":"Append"},"date_format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path_pattern":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"storage_account_key":{"type":"TypeString","optional":true},"storage_account_name":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"time_format":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_cosmosdb":{"schema":{"container_name":{"type":"TypeString","required":true},"cosmosdb_account_key":{"type":"TypeString","required":true},"cosmosdb_sql_database_id":{"type":"TypeString","required":true},"document_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","optional":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_eventhub":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"eventhub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","optional":true},"property_columns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_function":{"schema":{"api_key":{"type":"TypeString","required":true},"batch_max_count":{"type":"TypeInt","optional":true,"default":100},"batch_max_in_bytes":{"type":"TypeInt","optional":true,"default":262144},"function_app":{"type":"TypeString","required":true},"function_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_mssql":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"database":{"type":"TypeString","required":true,"forceNew":true},"max_batch_count":{"type":"TypeFloat","optional":true,"default":10000},"max_writer_count":{"type":"TypeFloat","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","required":true,"forceNew":true},"user":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_powerbi":{"schema":{"dataset":{"type":"TypeString","required":true},"group_id":{"type":"TypeString","required":true},"group_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","required":true},"token_user_display_name":{"type":"TypeString","optional":true},"token_user_principal_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_servicebus_queue":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"name":{"type":"TypeString","required":true,"forceNew":true},"property_columns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"queue_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"system_property_columns":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_servicebus_topic":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"name":{"type":"TypeString","required":true,"forceNew":true},"property_columns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"system_property_columns":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"topic_name":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_synapse":{"schema":{"database":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","required":true,"forceNew":true},"user":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_table":{"schema":{"batch_size":{"type":"TypeInt","required":true},"columns_to_remove":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"row_key":{"type":"TypeString","required":true},"storage_account_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_reference_input_blob":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"date_format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path_pattern":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"storage_account_key":{"type":"TypeString","optional":true},"storage_account_name":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"time_format":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_reference_input_mssql":{"schema":{"database":{"type":"TypeString","required":true},"delta_snapshot_query":{"type":"TypeString","optional":true},"full_snapshot_query":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"refresh_interval_duration":{"type":"TypeString","optional":true},"refresh_type":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","optional":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_stream_input_blob":{"schema":{"date_format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path_pattern":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"storage_account_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"time_format":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_stream_input_eventhub":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"eventhub_consumer_group_name":{"type":"TypeString","optional":true},"eventhub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_stream_input_eventhub_v2":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"eventhub_consumer_group_name":{"type":"TypeString","optional":true},"eventhub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","optional":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_stream_input_iothub":{"schema":{"endpoint":{"type":"TypeString","required":true},"eventhub_consumer_group_name":{"type":"TypeString","required":true},"iothub_namespace":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"shared_access_policy_key":{"type":"TypeString","required":true,"forceNew":true},"shared_access_policy_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subnet":{"schema":{"address_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"default_outbound_access_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"delegation":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"service_delegation":{"type":"TypeList","required":true,"elem":{"schema":{"actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}},"maxItems":1}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_network_policies":{"type":"TypeString","optional":true,"default":"Disabled"},"private_link_service_network_policies_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_endpoint_policy_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"service_endpoints":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"virtual_network_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subnet_nat_gateway_association":{"schema":{"nat_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_subnet_network_security_group_association":{"schema":{"network_security_group_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_subnet_route_table_association":{"schema":{"route_table_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_subnet_service_endpoint_storage_policy":{"schema":{"definition":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"service":{"type":"TypeString","optional":true,"default":"Microsoft.Storage"},"service_resources":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":2,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription":{"schema":{"alias":{"type":"TypeString","optional":true,"description":"The Alias Name of the subscription. If omitted a new UUID will be generated for this property.","computed":true,"forceNew":true},"billing_scope_id":{"type":"TypeString","optional":true},"subscription_id":{"type":"TypeString","optional":true,"description":"The GUID of the Subscription.","computed":true,"forceNew":true},"subscription_name":{"type":"TypeString","required":true,"description":"The Display Name for the Subscription."},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","description":"The Tenant ID to which the subscription belongs","computed":true},"workload":{"type":"TypeString","optional":true,"description":"The workload type for the Subscription. Possible values are `Production` (default) and `DevTest`.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_cost_management_export":{"schema":{"active":{"type":"TypeBool","optional":true,"default":true},"export_data_options":{"type":"TypeList","required":true,"elem":{"schema":{"time_frame":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"export_data_storage_location":{"type":"TypeList","required":true,"elem":{"schema":{"container_id":{"type":"TypeString","required":true,"forceNew":true},"root_folder_path":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recurrence_period_end_date":{"type":"TypeString","required":true},"recurrence_period_start_date":{"type":"TypeString","required":true},"recurrence_type":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_cost_management_view":{"schema":{"accumulated":{"type":"TypeBool","required":true,"forceNew":true},"chart_type":{"type":"TypeString","required":true},"dataset":{"type":"TypeList","required":true,"elem":{"schema":{"aggregation":{"type":"TypeSet","required":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"granularity":{"type":"TypeString","required":true},"grouping":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"sorting":{"type":"TypeList","optional":true,"elem":{"schema":{"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"display_name":{"type":"TypeString","required":true},"kpi":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"pivot":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"report_type":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true},"timeframe":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_policy_assignment":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enforce":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true}}}},"not_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","computed":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"value":{"type":"TypeString","required":true}}}},"parameters":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true,"forceNew":true},"resource_selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","required":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}}}}},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_policy_exemption":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"exemption_category":{"type":"TypeString","required":true},"expires_on":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_assignment_id":{"type":"TypeString","required":true,"forceNew":true},"policy_definition_reference_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_policy_remediation":{"schema":{"failure_percentage":{"type":"TypeFloat","optional":true},"location_filters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"parallel_deployments":{"type":"TypeInt","optional":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true},"resource_count":{"type":"TypeInt","optional":true},"resource_discovery_mode":{"type":"TypeString","optional":true,"default":"ExistingNonCompliant"},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_template_deployment":{"schema":{"debug_level":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_content":{"type":"TypeString","computed":true},"parameters_content":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_content":{"type":"TypeString","optional":true,"computed":true},"template_spec_version_id":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_synapse_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_integration_runtime_azure":{"schema":{"compute_type":{"type":"TypeString","optional":true,"default":"General"},"core_count":{"type":"TypeInt","optional":true,"default":8},"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"time_to_live_min":{"type":"TypeInt","optional":true,"default":0}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_integration_runtime_self_hosted":{"schema":{"authorization_key_primary":{"type":"TypeString","computed":true},"authorization_key_secondary":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_linked_service":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"integration_runtime":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true},"type_properties_json":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_managed_private_endpoint":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"subresource_name":{"type":"TypeString","required":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_synapse_private_link_hub":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_role_assignment":{"schema":{"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_type":{"type":"TypeString","optional":true,"forceNew":true},"role_name":{"type":"TypeString","required":true,"forceNew":true},"synapse_spark_pool_id":{"type":"TypeString","optional":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_synapse_spark_pool":{"schema":{"auto_pause":{"type":"TypeList","optional":true,"elem":{"schema":{"delay_in_minutes":{"type":"TypeInt","required":true}}},"maxItems":1},"auto_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"max_node_count":{"type":"TypeInt","required":true},"min_node_count":{"type":"TypeInt","required":true}}},"maxItems":1},"cache_size":{"type":"TypeInt","optional":true},"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_executor_allocation_enabled":{"type":"TypeBool","optional":true,"default":false},"library_requirement":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"filename":{"type":"TypeString","required":true}}},"maxItems":1},"max_executors":{"type":"TypeInt","optional":true},"min_executors":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_count":{"type":"TypeInt","optional":true,"computed":true},"node_size":{"type":"TypeString","required":true},"node_size_family":{"type":"TypeString","required":true},"session_level_packages_enabled":{"type":"TypeBool","optional":true,"default":false},"spark_config":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"filename":{"type":"TypeString","required":true}}},"maxItems":1},"spark_events_folder":{"type":"TypeString","optional":true,"default":"/events"},"spark_log_folder":{"type":"TypeString","optional":true,"default":"/logs"},"spark_version":{"type":"TypeString","required":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool":{"schema":{"collation":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"create_mode":{"type":"TypeString","optional":true,"default":"Default","forceNew":true},"data_encrypted":{"type":"TypeBool","optional":true},"geo_backup_policy_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_database_id":{"type":"TypeString","optional":true,"forceNew":true},"restore":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"point_in_time":{"type":"TypeString","required":true,"forceNew":true},"source_database_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"sku_name":{"type":"TypeString","required":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_extended_auditing_policy":{"schema":{"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sql_pool_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_access_key_is_secondary":{"type":"TypeBool","optional":true,"default":false},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_security_alert_policy":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins_enabled":{"type":"TypeBool","optional":true,"default":false},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"policy_state":{"type":"TypeString","required":true},"retention_days":{"type":"TypeInt","optional":true,"default":0},"sql_pool_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_vulnerability_assessment":{"schema":{"recurring_scans":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email_subscription_admins_enabled":{"type":"TypeBool","optional":true,"default":true},"emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"sql_pool_security_alert_policy_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_container_path":{"type":"TypeString","required":true},"storage_container_sas_key":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_vulnerability_assessment_baseline":{"schema":{"baseline":{"type":"TypeList","optional":true,"elem":{"schema":{"result":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","required":true},"rule_name":{"type":"TypeString","required":true},"sql_pool_vulnerability_assessment_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_workload_classifier":{"schema":{"context":{"type":"TypeString","optional":true},"end_time":{"type":"TypeString","optional":true},"importance":{"type":"TypeString","optional":true},"label":{"type":"TypeString","optional":true},"member_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"start_time":{"type":"TypeString","optional":true},"workload_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_workload_group":{"schema":{"importance":{"type":"TypeString","optional":true,"default":"normal"},"max_resource_percent":{"type":"TypeInt","required":true},"max_resource_percent_per_request":{"type":"TypeFloat","optional":true,"default":3},"min_resource_percent":{"type":"TypeInt","required":true},"min_resource_percent_per_request":{"type":"TypeFloat","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query_execution_timeout_in_seconds":{"type":"TypeInt","optional":true},"sql_pool_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace":{"schema":{"azure_devops_repo":{"type":"TypeList","optional":true,"elem":{"schema":{"account_name":{"type":"TypeString","required":true},"branch_name":{"type":"TypeString","required":true},"last_commit_id":{"type":"TypeString","optional":true},"project_name":{"type":"TypeString","required":true},"repository_name":{"type":"TypeString","required":true},"root_folder":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"azuread_authentication_only":{"type":"TypeBool","optional":true,"default":false},"compute_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"connectivity_endpoints":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_name":{"type":"TypeString","optional":true,"default":"cmk"},"key_versionless_id":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"data_exfiltration_protection_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"github_repo":{"type":"TypeList","optional":true,"elem":{"schema":{"account_name":{"type":"TypeString","required":true},"branch_name":{"type":"TypeString","required":true},"git_url":{"type":"TypeString","optional":true},"last_commit_id":{"type":"TypeString","optional":true},"repository_name":{"type":"TypeString","required":true},"root_folder":{"type":"TypeString","required":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"linking_allowed_for_aad_tenant_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managed_virtual_network_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"purview_id":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sql_administrator_login":{"type":"TypeString","optional":true,"forceNew":true},"sql_administrator_login_password":{"type":"TypeString","optional":true},"sql_identity_control_enabled":{"type":"TypeBool","optional":true},"storage_data_lake_gen2_filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_aad_admin":{"schema":{"login":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"synapse_workspace_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_extended_auditing_policy":{"schema":{"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_access_key_is_secondary":{"type":"TypeBool","optional":true,"default":false},"storage_endpoint":{"type":"TypeString","optional":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_key":{"schema":{"active":{"type":"TypeBool","required":true},"customer_managed_key_name":{"type":"TypeString","required":true},"customer_managed_key_versionless_id":{"type":"TypeString","optional":true},"synapse_workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_security_alert_policy":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins_enabled":{"type":"TypeBool","optional":true,"default":false},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"policy_state":{"type":"TypeString","required":true},"retention_days":{"type":"TypeInt","optional":true,"default":0},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_sql_aad_admin":{"schema":{"login":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"synapse_workspace_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_vulnerability_assessment":{"schema":{"recurring_scans":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email_subscription_admins_enabled":{"type":"TypeBool","optional":true,"default":true},"emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_container_path":{"type":"TypeString","required":true},"storage_container_sas_key":{"type":"TypeString","optional":true},"workspace_security_alert_policy_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_system_center_virtual_machine_manager_availability_set":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"system_center_virtual_machine_manager_server_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_system_center_virtual_machine_manager_cloud":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"system_center_virtual_machine_manager_server_inventory_item_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_system_center_virtual_machine_manager_server":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"fqdn":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"port":{"type":"TypeInt","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"username":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_system_center_virtual_machine_manager_virtual_machine_template":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"system_center_virtual_machine_manager_server_inventory_item_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_system_center_virtual_machine_manager_virtual_network":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"system_center_virtual_machine_manager_server_inventory_item_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_tenant_template_deployment":{"schema":{"debug_level":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_content":{"type":"TypeString","computed":true},"parameters_content":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_content":{"type":"TypeString","optional":true,"computed":true},"template_spec_version_id":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_traffic_manager_azure_endpoint":{"schema":{"always_serve_enabled":{"type":"TypeBool","optional":true,"default":false},"custom_header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"enabled":{"type":"TypeBool","optional":true,"default":true},"geo_mappings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"default":1},"profile_id":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"first":{"type":"TypeString","required":true},"last":{"type":"TypeString","optional":true},"scope":{"type":"TypeInt","optional":true}}}},"target_resource_id":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_traffic_manager_external_endpoint":{"schema":{"always_serve_enabled":{"type":"TypeBool","optional":true,"default":false},"custom_header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"enabled":{"type":"TypeBool","optional":true,"default":true},"endpoint_location":{"type":"TypeString","optional":true,"computed":true},"geo_mappings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"default":1},"profile_id":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"first":{"type":"TypeString","required":true},"last":{"type":"TypeString","optional":true},"scope":{"type":"TypeInt","optional":true}}}},"target":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_traffic_manager_nested_endpoint":{"schema":{"custom_header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"enabled":{"type":"TypeBool","optional":true,"default":true},"endpoint_location":{"type":"TypeString","optional":true,"computed":true},"geo_mappings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"minimum_child_endpoints":{"type":"TypeInt","required":true},"minimum_required_child_endpoints_ipv4":{"type":"TypeInt","optional":true},"minimum_required_child_endpoints_ipv6":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"default":1},"profile_id":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"first":{"type":"TypeString","required":true},"last":{"type":"TypeString","optional":true},"scope":{"type":"TypeInt","optional":true}}}},"target_resource_id":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_traffic_manager_profile":{"schema":{"dns_config":{"type":"TypeList","required":true,"elem":{"schema":{"relative_name":{"type":"TypeString","required":true,"forceNew":true},"ttl":{"type":"TypeInt","required":true}}},"maxItems":1},"fqdn":{"type":"TypeString","computed":true},"max_return":{"type":"TypeInt","optional":true},"monitor_config":{"type":"TypeList","required":true,"elem":{"schema":{"custom_header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"expected_status_code_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"interval_in_seconds":{"type":"TypeInt","optional":true,"default":30},"path":{"type":"TypeString","optional":true},"port":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":10},"tolerated_number_of_failures":{"type":"TypeInt","optional":true,"default":3}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"profile_status":{"type":"TypeString","optional":true,"default":"Enabled"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_routing_method":{"type":"TypeString","required":true},"traffic_view_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_user_assigned_identity":{"schema":{"client_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"principal_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_desktop_application":{"schema":{"application_group_id":{"type":"TypeString","required":true,"forceNew":true},"command_line_argument_policy":{"type":"TypeString","required":true},"command_line_arguments":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true,"computed":true},"icon_index":{"type":"TypeInt","optional":true},"icon_path":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path":{"type":"TypeString","required":true},"show_in_portal":{"type":"TypeBool","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_application_group":{"schema":{"default_desktop_display_name":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true},"host_pool_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_host_pool":{"schema":{"custom_rdp_properties":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true},"load_balancer_type":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_sessions_allowed":{"type":"TypeInt","optional":true,"default":999999},"name":{"type":"TypeString","required":true,"forceNew":true},"personal_desktop_assignment_type":{"type":"TypeString","optional":true,"forceNew":true},"preferred_app_group_type":{"type":"TypeString","optional":true,"default":"Desktop","description":"Preferred App Group type to display"},"public_network_access":{"type":"TypeString","optional":true,"default":"Enabled"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scheduled_agent_updates":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":false},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"hour_of_day":{"type":"TypeInt","required":true}}},"maxItems":2},"timezone":{"type":"TypeString","optional":true,"default":"UTC"},"use_session_host_timezone":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"start_vm_on_connect":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true},"validate_environment":{"type":"TypeBool","optional":true,"default":false},"vm_template":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_host_pool_registration_info":{"schema":{"expiration_date":{"type":"TypeString","required":true},"hostpool_id":{"type":"TypeString","required":true,"forceNew":true},"token":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_desktop_scaling_plan":{"schema":{"description":{"type":"TypeString","optional":true},"exclusion_tag":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true},"host_pool":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"hostpool_id":{"type":"TypeString","required":true},"scaling_plan_enabled":{"type":"TypeBool","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days_of_week":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"off_peak_load_balancing_algorithm":{"type":"TypeString","required":true},"off_peak_start_time":{"type":"TypeString","required":true},"peak_load_balancing_algorithm":{"type":"TypeString","required":true},"peak_start_time":{"type":"TypeString","required":true},"ramp_down_capacity_threshold_percent":{"type":"TypeInt","required":true},"ramp_down_force_logoff_users":{"type":"TypeBool","required":true},"ramp_down_load_balancing_algorithm":{"type":"TypeString","required":true},"ramp_down_minimum_hosts_percent":{"type":"TypeInt","required":true},"ramp_down_notification_message":{"type":"TypeString","required":true},"ramp_down_start_time":{"type":"TypeString","required":true},"ramp_down_stop_hosts_when":{"type":"TypeString","required":true},"ramp_down_wait_time_minutes":{"type":"TypeInt","required":true},"ramp_up_capacity_threshold_percent":{"type":"TypeInt","optional":true},"ramp_up_load_balancing_algorithm":{"type":"TypeString","required":true},"ramp_up_minimum_hosts_percent":{"type":"TypeInt","optional":true},"ramp_up_start_time":{"type":"TypeString","required":true}}},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"time_zone":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_scaling_plan_host_pool_association":{"schema":{"enabled":{"type":"TypeBool","required":true},"host_pool_id":{"type":"TypeString","required":true,"forceNew":true},"scaling_plan_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_workspace":{"schema":{"description":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_workspace_application_group_association":{"schema":{"application_group_id":{"type":"TypeString","required":true,"forceNew":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_virtual_hub":{"schema":{"address_prefix":{"type":"TypeString","optional":true,"forceNew":true},"default_route_table_id":{"type":"TypeString","computed":true},"hub_routing_preference":{"type":"TypeString","optional":true,"default":"ExpressRoute"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route":{"type":"TypeSet","optional":true,"elem":{"schema":{"address_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"next_hop_ip_address":{"type":"TypeString","required":true}}}},"sku":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_router_asn":{"type":"TypeInt","computed":true},"virtual_router_auto_scale_min_capacity":{"type":"TypeInt","optional":true,"default":2},"virtual_router_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_wan_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_hub_bgp_connection":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"peer_asn":{"type":"TypeInt","required":true,"forceNew":true},"peer_ip":{"type":"TypeString","required":true,"forceNew":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_connection_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_hub_connection":{"schema":{"internet_security_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"remote_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"routing":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"associated_route_table_id":{"type":"TypeString","optional":true,"computed":true},"inbound_route_map_id":{"type":"TypeString","optional":true},"outbound_route_map_id":{"type":"TypeString","optional":true},"propagated_route_table":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"labels":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"route_table_ids":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"static_vnet_local_route_override_criteria":{"type":"TypeString","optional":true,"default":"Contains","forceNew":true},"static_vnet_route":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","optional":true},"next_hop_ip_address":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_hub_ip":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true,"default":"Dynamic"},"public_ip_address_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_hub_route_table":{"schema":{"labels":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"route":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"destinations":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"destinations_type":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"next_hop":{"type":"TypeString","required":true},"next_hop_type":{"type":"TypeString","optional":true,"default":"ResourceId"}}}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_hub_route_table_route":{"schema":{"destinations":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"destinations_type":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"next_hop":{"type":"TypeString","required":true},"next_hop_type":{"type":"TypeString","optional":true,"default":"ResourceId"},"route_table_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_hub_routing_intent":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"routing_policy":{"type":"TypeList","required":true,"elem":{"schema":{"destinations":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"next_hop":{"type":"TypeString","required":true}}}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_hub_security_partner_provider":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"security_provider_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"ultra_ssd_enabled":{"type":"TypeBool","required":true,"forceNew":true}}},"maxItems":1},"availability_set_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"storage_uri":{"type":"TypeString","required":true}}},"maxItems":1},"delete_data_disks_on_termination":{"type":"TypeBool","optional":true,"default":false},"delete_os_disk_on_termination":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"os_profile":{"type":"TypeSet","optional":true,"elem":{"schema":{"admin_password":{"type":"TypeString","optional":true},"admin_username":{"type":"TypeString","required":true},"computer_name":{"type":"TypeString","required":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}}},"maxItems":1},"os_profile_linux_config":{"type":"TypeSet","optional":true,"elem":{"schema":{"disable_password_authentication":{"type":"TypeBool","required":true},"ssh_keys":{"type":"TypeList","optional":true,"elem":{"schema":{"key_data":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}}}}},"maxItems":1},"os_profile_secrets":{"type":"TypeList","optional":true,"elem":{"schema":{"source_vault_id":{"type":"TypeString","required":true},"vault_certificates":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_store":{"type":"TypeString","optional":true},"certificate_url":{"type":"TypeString","required":true}}}}}}},"os_profile_windows_config":{"type":"TypeSet","optional":true,"elem":{"schema":{"additional_unattend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"component":{"type":"TypeString","required":true},"content":{"type":"TypeString","required":true},"pass":{"type":"TypeString","required":true},"setting_name":{"type":"TypeString","required":true}}}},"enable_automatic_upgrades":{"type":"TypeBool","optional":true,"default":false},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":false},"timezone":{"type":"TypeString","optional":true,"forceNew":true},"winrm":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true}}}}}},"maxItems":1},"plan":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"product":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true}}},"maxItems":1},"primary_network_interface_id":{"type":"TypeString","optional":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_data_disk":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"computed":true},"create_option":{"type":"TypeString","required":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"lun":{"type":"TypeInt","required":true},"managed_disk_id":{"type":"TypeString","optional":true,"computed":true},"managed_disk_type":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true},"vhd_uri":{"type":"TypeString","optional":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"storage_image_reference":{"type":"TypeSet","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true,"forceNew":true},"offer":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","optional":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}}},"maxItems":1},"storage_os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"computed":true},"create_option":{"type":"TypeString","required":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"image_uri":{"type":"TypeString","optional":true},"managed_disk_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managed_disk_type":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","optional":true,"computed":true},"vhd_uri":{"type":"TypeString","optional":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vm_size":{"type":"TypeString","required":true},"zones":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_machine_automanage_configuration_assignment":{"schema":{"configuration_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_virtual_machine_data_disk_attachment":{"schema":{"caching":{"type":"TypeString","required":true},"create_option":{"type":"TypeString","optional":true,"default":"Attach","forceNew":true},"lun":{"type":"TypeInt","required":true,"forceNew":true},"managed_disk_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_extension":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true},"failure_suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"provision_after_extensions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_gallery_application_assignment":{"schema":{"configuration_blob_uri":{"type":"TypeString","optional":true,"forceNew":true},"gallery_application_version_id":{"type":"TypeString","required":true,"forceNew":true},"order":{"type":"TypeInt","optional":true,"default":0},"tag":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_implicit_data_disk_from_source":{"schema":{"caching":{"type":"TypeString","optional":true},"create_option":{"type":"TypeString","required":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","required":true,"forceNew":true},"lun":{"type":"TypeInt","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"source_resource_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_packet_capture":{"schema":{"filter":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"local_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"local_port":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true},"remote_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"remote_port":{"type":"TypeString","optional":true,"forceNew":true}}}},"maximum_bytes_per_packet":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"maximum_bytes_per_session":{"type":"TypeInt","optional":true,"default":1073741824,"forceNew":true},"maximum_capture_duration_in_seconds":{"type":"TypeInt","optional":true,"default":18000,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_id":{"type":"TypeString","required":true,"forceNew":true},"storage_location":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"file_path":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_path":{"type":"TypeString","computed":true}}},"maxItems":1},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_virtual_machine_restore_point":{"schema":{"crash_consistency_mode_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"excluded_disks":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_restore_point_collection_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_virtual_machine_restore_point_collection":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_run_command":{"schema":{"error_blob_managed_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"object_id":{"type":"TypeString","optional":true}}},"maxItems":1},"error_blob_uri":{"type":"TypeString","optional":true},"instance_view":{"type":"TypeList","computed":true,"elem":{"schema":{"end_time":{"type":"TypeString","computed":true},"error_message":{"type":"TypeString","computed":true},"execution_message":{"type":"TypeString","computed":true},"execution_state":{"type":"TypeString","computed":true},"exit_code":{"type":"TypeInt","computed":true},"output":{"type":"TypeString","computed":true},"start_time":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_blob_managed_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"object_id":{"type":"TypeString","optional":true}}},"maxItems":1},"output_blob_uri":{"type":"TypeString","optional":true},"parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"protected_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"run_as_password":{"type":"TypeString","optional":true},"run_as_user":{"type":"TypeString","optional":true},"source":{"type":"TypeList","required":true,"elem":{"schema":{"command_id":{"type":"TypeString","optional":true},"script":{"type":"TypeString","optional":true},"script_uri":{"type":"TypeString","optional":true},"script_uri_managed_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"object_id":{"type":"TypeString","optional":true}}},"maxItems":1}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_scale_set":{"schema":{"automatic_os_upgrade":{"type":"TypeBool","optional":true,"default":false},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"storage_uri":{"type":"TypeString","required":true}}},"maxItems":1},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extension":{"type":"TypeSet","optional":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"provision_after_extensions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true}}}},"health_probe_id":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeSet","required":true,"elem":{"schema":{"accelerated_networking":{"type":"TypeBool","optional":true},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":20},"load_balancer_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","required":true},"public_ip_address_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","required":true},"idle_timeout":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"subnet_id":{"type":"TypeString","required":true}}}},"ip_forwarding":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"network_security_group_id":{"type":"TypeString","optional":true},"primary":{"type":"TypeBool","required":true}}}},"os_profile":{"type":"TypeList","required":true,"elem":{"schema":{"admin_password":{"type":"TypeString","optional":true},"admin_username":{"type":"TypeString","required":true},"computer_name_prefix":{"type":"TypeString","required":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true}}},"maxItems":1},"os_profile_linux_config":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"disable_password_authentication":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"ssh_keys":{"type":"TypeList","optional":true,"elem":{"schema":{"key_data":{"type":"TypeString","optional":true},"path":{"type":"TypeString","required":true}}}}}},"maxItems":1},"os_profile_secrets":{"type":"TypeSet","optional":true,"elem":{"schema":{"source_vault_id":{"type":"TypeString","required":true},"vault_certificates":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_store":{"type":"TypeString","optional":true},"certificate_url":{"type":"TypeString","required":true}}}}}}},"os_profile_windows_config":{"type":"TypeSet","optional":true,"elem":{"schema":{"additional_unattend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"component":{"type":"TypeString","required":true},"content":{"type":"TypeString","required":true},"pass":{"type":"TypeString","required":true},"setting_name":{"type":"TypeString","required":true}}}},"enable_automatic_upgrades":{"type":"TypeBool","optional":true},"provision_vm_agent":{"type":"TypeBool","optional":true},"winrm":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true}}}}}},"maxItems":1},"overprovision":{"type":"TypeBool","optional":true,"default":true},"plan":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"product":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true}}},"maxItems":1},"priority":{"type":"TypeString","optional":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rolling_upgrade_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"max_batch_instance_percent":{"type":"TypeInt","optional":true,"default":20},"max_unhealthy_instance_percent":{"type":"TypeInt","optional":true,"default":20},"max_unhealthy_upgraded_instance_percent":{"type":"TypeInt","optional":true,"default":20},"pause_time_between_batches":{"type":"TypeString","optional":true,"default":"PT0S"}}},"maxItems":1},"single_placement_group":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true},"tier":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"storage_profile_data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"computed":true},"create_option":{"type":"TypeString","required":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"lun":{"type":"TypeInt","required":true},"managed_disk_type":{"type":"TypeString","optional":true,"computed":true}}}},"storage_profile_image_reference":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"offer":{"type":"TypeString","optional":true},"publisher":{"type":"TypeString","optional":true},"sku":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"storage_profile_os_disk":{"type":"TypeSet","required":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"computed":true},"create_option":{"type":"TypeString","required":true},"image":{"type":"TypeString","optional":true},"managed_disk_type":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","optional":true},"os_type":{"type":"TypeString","optional":true},"vhd_containers":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"upgrade_policy_mode":{"type":"TypeString","required":true},"zones":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_machine_scale_set_extension":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true,"default":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true},"failure_suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"force_update_tag":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"provision_after_extensions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true},"type_handler_version":{"type":"TypeString","required":true},"virtual_machine_scale_set_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_scale_set_packet_capture":{"schema":{"filter":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"local_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"local_port":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true},"remote_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"remote_port":{"type":"TypeString","optional":true,"forceNew":true}}}},"machine_scope":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"exclude_instance_ids":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"include_instance_ids":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"maximum_bytes_per_packet":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"maximum_bytes_per_session":{"type":"TypeInt","optional":true,"default":1073741824,"forceNew":true},"maximum_capture_duration_in_seconds":{"type":"TypeInt","optional":true,"default":18000,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_id":{"type":"TypeString","required":true,"forceNew":true},"storage_location":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"file_path":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_path":{"type":"TypeString","computed":true}}},"maxItems":1},"virtual_machine_scale_set_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_virtual_network":{"schema":{"address_space":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"bgp_community":{"type":"TypeString","optional":true},"ddos_protection_plan":{"type":"TypeList","optional":true,"elem":{"schema":{"enable":{"type":"TypeBool","required":true},"id":{"type":"TypeString","required":true}}},"maxItems":1},"dns_servers":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"enforcement":{"type":"TypeString","required":true}}},"maxItems":1},"flow_timeout_in_minutes":{"type":"TypeInt","optional":true},"guid":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"address_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"default_outbound_access_enabled":{"type":"TypeBool","optional":true,"default":true},"delegation":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"service_delegation":{"type":"TypeList","configMode":"Auto","required":true,"elem":{"schema":{"actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_endpoint_network_policies":{"type":"TypeString","optional":true,"default":"Disabled"},"private_link_service_network_policies_enabled":{"type":"TypeBool","optional":true,"default":true},"route_table_id":{"type":"TypeString","optional":true},"security_group":{"type":"TypeString","optional":true},"service_endpoint_policy_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"service_endpoints":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_network_dns_servers":{"schema":{"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_network_gateway":{"schema":{"active_active":{"type":"TypeBool","optional":true,"computed":true},"bgp_route_translation_for_nat_enabled":{"type":"TypeBool","optional":true,"default":false},"bgp_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","optional":true},"peer_weight":{"type":"TypeInt","optional":true},"peering_addresses":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"apipa_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"default_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_name":{"type":"TypeString","optional":true,"computed":true},"tunnel_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":2,"minItems":1}}},"maxItems":1},"custom_route":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"default_local_network_gateway_id":{"type":"TypeString","optional":true},"dns_forwarding_enabled":{"type":"TypeBool","optional":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"enable_bgp":{"type":"TypeBool","optional":true,"computed":true},"generation":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true,"default":"vnetGatewayConfig"},"private_ip_address_allocation":{"type":"TypeString","optional":true,"default":"Dynamic"},"public_ip_address_id":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":3},"ip_sec_replay_protection_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_group":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"policy_member":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"priority":{"type":"TypeInt","optional":true,"default":0}}}},"private_ip_address_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"remote_vnet_traffic_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true},"virtual_wan_traffic_enabled":{"type":"TypeBool","optional":true,"default":false},"vpn_client_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"aad_audience":{"type":"TypeString","optional":true},"aad_issuer":{"type":"TypeString","optional":true},"aad_tenant":{"type":"TypeString","optional":true},"address_space":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"ipsec_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"dh_group":{"type":"TypeString","required":true},"ike_encryption":{"type":"TypeString","required":true},"ike_integrity":{"type":"TypeString","required":true},"ipsec_encryption":{"type":"TypeString","required":true},"ipsec_integrity":{"type":"TypeString","required":true},"pfs_group":{"type":"TypeString","required":true},"sa_data_size_in_kilobytes":{"type":"TypeInt","required":true},"sa_lifetime_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":1},"radius_server":{"type":"TypeList","optional":true,"elem":{"schema":{"address":{"type":"TypeString","required":true},"score":{"type":"TypeInt","required":true},"secret":{"type":"TypeString","required":true}}}},"radius_server_address":{"type":"TypeString","optional":true},"radius_server_secret":{"type":"TypeString","optional":true},"revoked_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"thumbprint":{"type":"TypeString","required":true}}}},"root_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"public_cert_data":{"type":"TypeString","required":true}}}},"virtual_network_gateway_client_connection":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"policy_group_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"vpn_auth_types":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"},"maxItems":3},"vpn_client_protocols":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"vpn_type":{"type":"TypeString","optional":true,"default":"RouteBased","forceNew":true}},"timeouts":{"create":90,"read":5,"delete":60,"update":60}},"azurerm_virtual_network_gateway_connection":{"schema":{"authorization_key":{"type":"TypeString","optional":true},"connection_mode":{"type":"TypeString","optional":true,"default":"Default","forceNew":true},"connection_protocol":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_bgp_addresses":{"type":"TypeList","optional":true,"elem":{"schema":{"primary":{"type":"TypeString","required":true},"secondary":{"type":"TypeString","optional":true}}},"maxItems":1},"dpd_timeout_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"egress_nat_rule_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enable_bgp":{"type":"TypeBool","optional":true,"computed":true},"express_route_circuit_id":{"type":"TypeString","optional":true,"forceNew":true},"express_route_gateway_bypass":{"type":"TypeBool","optional":true,"computed":true},"ingress_nat_rule_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"ipsec_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"dh_group":{"type":"TypeString","required":true},"ike_encryption":{"type":"TypeString","required":true},"ike_integrity":{"type":"TypeString","required":true},"ipsec_encryption":{"type":"TypeString","required":true},"ipsec_integrity":{"type":"TypeString","required":true},"pfs_group":{"type":"TypeString","required":true},"sa_datasize":{"type":"TypeInt","optional":true,"computed":true},"sa_lifetime":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"local_azure_ip_address_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"local_network_gateway_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"peer_virtual_network_gateway_id":{"type":"TypeString","optional":true,"forceNew":true},"private_link_fast_path_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_weight":{"type":"TypeInt","optional":true,"computed":true},"shared_key":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_selector_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"local_address_cidrs":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"remote_address_cidrs":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"type":{"type":"TypeString","required":true,"forceNew":true},"use_policy_based_traffic_selectors":{"type":"TypeBool","optional":true,"computed":true},"virtual_network_gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_network_gateway_nat_rule":{"schema":{"external_mapping":{"type":"TypeList","required":true,"elem":{"schema":{"address_space":{"type":"TypeString","required":true},"port_range":{"type":"TypeString","optional":true}}}},"internal_mapping":{"type":"TypeList","required":true,"elem":{"schema":{"address_space":{"type":"TypeString","required":true},"port_range":{"type":"TypeString","optional":true}}}},"ip_configuration_id":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","optional":true,"default":"EgressSnat","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","optional":true,"default":"Static","forceNew":true},"virtual_network_gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_network_peering":{"schema":{"allow_forwarded_traffic":{"type":"TypeBool","optional":true,"default":false},"allow_gateway_transit":{"type":"TypeBool","optional":true,"default":false},"allow_virtual_network_access":{"type":"TypeBool","optional":true,"default":true},"local_subnet_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"only_ipv6_peering_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"peer_complete_virtual_networks_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"remote_subnet_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"remote_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"triggers":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"use_remote_gateways":{"type":"TypeBool","optional":true,"default":false},"virtual_network_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_wan":{"schema":{"allow_branch_to_branch_traffic":{"type":"TypeBool","optional":true,"default":true},"disable_vpn_encryption":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"office365_local_breakout_category":{"type":"TypeString","optional":true,"default":"None"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","optional":true,"default":"Standard"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vmware_cluster":{"schema":{"cluster_node_count":{"type":"TypeInt","required":true},"cluster_number":{"type":"TypeInt","computed":true},"hosts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"vmware_cloud_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":300,"read":5,"delete":300,"update":300}},"azurerm_vmware_express_route_authorization":{"schema":{"express_route_authorization_id":{"type":"TypeString","computed":true},"express_route_authorization_key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_cloud_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_vmware_netapp_volume_attachment":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"netapp_volume_id":{"type":"TypeString","required":true,"forceNew":true},"vmware_cluster_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_vmware_private_cloud":{"schema":{"circuit":{"type":"TypeList","computed":true,"elem":{"schema":{"express_route_id":{"type":"TypeString","computed":true},"express_route_private_peering_id":{"type":"TypeString","computed":true},"primary_subnet_cidr":{"type":"TypeString","computed":true},"secondary_subnet_cidr":{"type":"TypeString","computed":true}}}},"hcx_cloud_manager_endpoint":{"type":"TypeString","computed":true},"internet_connection_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"management_cluster":{"type":"TypeList","required":true,"elem":{"schema":{"hosts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeInt","computed":true},"size":{"type":"TypeInt","required":true}}},"maxItems":1},"management_subnet_cidr":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_subnet_cidr":{"type":"TypeString","required":true,"forceNew":true},"nsxt_certificate_thumbprint":{"type":"TypeString","computed":true},"nsxt_manager_endpoint":{"type":"TypeString","computed":true},"nsxt_password":{"type":"TypeString","optional":true,"forceNew":true},"provisioning_subnet_cidr":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vcenter_certificate_thumbprint":{"type":"TypeString","computed":true},"vcenter_password":{"type":"TypeString","optional":true,"forceNew":true},"vcsa_endpoint":{"type":"TypeString","computed":true},"vmotion_subnet_cidr":{"type":"TypeString","computed":true}},"timeouts":{"create":600,"read":5,"delete":600,"update":600}},"azurerm_voice_services_communications_gateway":{"schema":{"api_bridge":{"type":"TypeString","optional":true},"auto_generated_domain_name_label_scope":{"type":"TypeString","optional":true,"default":"TenantReuse","forceNew":true},"codecs":{"type":"TypeString","required":true},"connectivity":{"type":"TypeString","required":true,"forceNew":true},"e911_type":{"type":"TypeString","required":true},"emergency_dial_strings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"microsoft_teams_voicemail_pilot_number":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"on_prem_mcp_enabled":{"type":"TypeBool","optional":true},"platforms":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_location":{"type":"TypeSet","required":true,"elem":{"schema":{"allowed_media_source_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"allowed_signaling_source_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"esrp_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true},"operator_addresses":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_voice_services_communications_gateway_test_line":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"phone_number":{"type":"TypeString","required":true},"purpose":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"voice_services_communications_gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vpn_gateway":{"schema":{"bgp_route_translation_for_nat_enabled":{"type":"TypeBool","optional":true,"default":false},"bgp_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","required":true,"forceNew":true},"bgp_peering_address":{"type":"TypeString","computed":true},"instance_0_bgp_peering_address":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"custom_ips":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"default_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_id":{"type":"TypeString","computed":true},"tunnel_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"instance_1_bgp_peering_address":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"custom_ips":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"default_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_id":{"type":"TypeString","computed":true},"tunnel_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"peer_weight":{"type":"TypeInt","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_preference":{"type":"TypeString","optional":true,"default":"Microsoft Network","forceNew":true},"scale_unit":{"type":"TypeInt","optional":true,"default":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_vpn_gateway_connection":{"schema":{"internet_security_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"remote_vpn_site_id":{"type":"TypeString","required":true,"forceNew":true},"routing":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"associated_route_table":{"type":"TypeString","required":true},"inbound_route_map_id":{"type":"TypeString","optional":true},"outbound_route_map_id":{"type":"TypeString","optional":true},"propagated_route_table":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"labels":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"route_table_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"traffic_selector_policy":{"type":"TypeSet","optional":true,"elem":{"schema":{"local_address_ranges":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"remote_address_ranges":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}},"vpn_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"vpn_link":{"type":"TypeList","required":true,"elem":{"schema":{"bandwidth_mbps":{"type":"TypeInt","optional":true,"default":10},"bgp_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"connection_mode":{"type":"TypeString","optional":true,"default":"Default"},"custom_bgp_address":{"type":"TypeSet","optional":true,"elem":{"schema":{"ip_address":{"type":"TypeString","required":true},"ip_configuration_id":{"type":"TypeString","required":true}}}},"egress_nat_rule_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"ingress_nat_rule_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"ipsec_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"dh_group":{"type":"TypeString","required":true},"encryption_algorithm":{"type":"TypeString","required":true},"ike_encryption_algorithm":{"type":"TypeString","required":true},"ike_integrity_algorithm":{"type":"TypeString","required":true},"integrity_algorithm":{"type":"TypeString","required":true},"pfs_group":{"type":"TypeString","required":true},"sa_data_size_kb":{"type":"TypeInt","required":true},"sa_lifetime_sec":{"type":"TypeInt","required":true}}},"minItems":1},"local_azure_ip_address_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"policy_based_traffic_selector_enabled":{"type":"TypeBool","optional":true,"default":false},"protocol":{"type":"TypeString","optional":true,"default":"IKEv2"},"ratelimit_enabled":{"type":"TypeBool","optional":true,"default":false},"route_weight":{"type":"TypeInt","optional":true,"default":0},"shared_key":{"type":"TypeString","optional":true},"vpn_site_link_id":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vpn_gateway_nat_rule":{"schema":{"external_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"address_space":{"type":"TypeString","required":true},"port_range":{"type":"TypeString","optional":true}}}},"internal_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"address_space":{"type":"TypeString","required":true},"port_range":{"type":"TypeString","optional":true}}}},"ip_configuration_id":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","optional":true,"default":"EgressSnat","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","optional":true,"default":"Static","forceNew":true},"vpn_gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vpn_server_configuration":{"schema":{"azure_active_directory_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"audience":{"type":"TypeString","required":true},"issuer":{"type":"TypeString","required":true},"tenant":{"type":"TypeString","required":true}}},"minItems":1},"client_revoked_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"thumbprint":{"type":"TypeString","required":true}}}},"client_root_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"public_cert_data":{"type":"TypeString","required":true}}}},"ipsec_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"dh_group":{"type":"TypeString","required":true},"ike_encryption":{"type":"TypeString","required":true},"ike_integrity":{"type":"TypeString","required":true},"ipsec_encryption":{"type":"TypeString","required":true},"ipsec_integrity":{"type":"TypeString","required":true},"pfs_group":{"type":"TypeString","required":true},"sa_data_size_kilobytes":{"type":"TypeInt","required":true},"sa_lifetime_seconds":{"type":"TypeInt","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"radius":{"type":"TypeList","optional":true,"elem":{"schema":{"client_root_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"thumbprint":{"type":"TypeString","required":true}}}},"server":{"type":"TypeList","optional":true,"elem":{"schema":{"address":{"type":"TypeString","required":true},"score":{"type":"TypeInt","required":true},"secret":{"type":"TypeString","required":true}}}},"server_root_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"public_cert_data":{"type":"TypeString","required":true}}}}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vpn_authentication_types":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"vpn_protocols":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_vpn_server_configuration_policy_group":{"schema":{"is_default":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"priority":{"type":"TypeInt","optional":true,"default":0},"vpn_server_configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vpn_site":{"schema":{"address_cidrs":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"device_model":{"type":"TypeString","optional":true},"device_vendor":{"type":"TypeString","optional":true},"link":{"type":"TypeList","optional":true,"elem":{"schema":{"bgp":{"type":"TypeList","optional":true,"elem":{"schema":{"asn":{"type":"TypeInt","required":true},"peering_address":{"type":"TypeString","required":true}}},"maxItems":1},"fqdn":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"provider_name":{"type":"TypeString","optional":true},"speed_in_mbps":{"type":"TypeInt","optional":true,"default":0}}},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"o365_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"traffic_category":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allow_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"default_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"optimize_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_wan_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_app_active_slot":{"schema":{"last_successful_swap":{"type":"TypeString","description":"The timestamp of the last successful swap with `Production`","computed":true},"overwrite_network_config":{"type":"TypeBool","optional":true,"default":true,"description":"The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`.","forceNew":true},"slot_id":{"type":"TypeString","required":true,"description":"The ID of the Slot to swap with `Production`."}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_web_app_hybrid_connection":{"schema":{"hostname":{"type":"TypeString","required":true,"description":"The hostname of the endpoint."},"namespace_name":{"type":"TypeString","description":"The name of the Relay Namespace.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port to use for the endpoint"},"relay_id":{"type":"TypeString","required":true,"description":"The ID of the Relay Hybrid Connection to use.","forceNew":true},"relay_name":{"type":"TypeString","description":"The name of the Relay in use.","computed":true},"send_key_name":{"type":"TypeString","optional":true,"default":"RootManageSharedAccessKey","description":"The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey`"},"send_key_value":{"type":"TypeString","description":"The Primary Access Key for the `send_key_name`","computed":true},"service_bus_namespace":{"type":"TypeString","description":"The Service Bus Namespace.","computed":true},"service_bus_suffix":{"type":"TypeString","description":"The suffix for the endpoint.","computed":true},"web_app_id":{"type":"TypeString","required":true,"description":"The ID of the Web App for this Hybrid Connection.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_web_application_firewall_policy":{"schema":{"custom_rules":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"group_rate_limit_by":{"type":"TypeString","optional":true},"match_conditions":{"type":"TypeList","required":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"match_variables":{"type":"TypeList","required":true,"elem":{"schema":{"selector":{"type":"TypeString","optional":true},"variable_name":{"type":"TypeString","required":true}}}},"negation_condition":{"type":"TypeBool","optional":true},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","optional":true},"priority":{"type":"TypeInt","required":true},"rate_limit_duration":{"type":"TypeString","optional":true},"rate_limit_threshold":{"type":"TypeInt","optional":true},"rule_type":{"type":"TypeString","required":true}}}},"http_listener_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_rules":{"type":"TypeList","required":true,"elem":{"schema":{"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"excluded_rule_set":{"type":"TypeList","optional":true,"elem":{"schema":{"rule_group":{"type":"TypeList","optional":true,"elem":{"schema":{"excluded_rules":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"rule_group_name":{"type":"TypeString","required":true}}}},"type":{"type":"TypeString","optional":true,"default":"OWASP"},"version":{"type":"TypeString","optional":true,"default":"3.2"}}},"maxItems":1},"match_variable":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true},"selector_match_operator":{"type":"TypeString","required":true}}}},"managed_rule_set":{"type":"TypeList","required":true,"elem":{"schema":{"rule_group_override":{"type":"TypeList","optional":true,"elem":{"schema":{"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":false},"id":{"type":"TypeString","required":true}}}},"rule_group_name":{"type":"TypeString","required":true}}}},"type":{"type":"TypeString","optional":true,"default":"OWASP"},"version":{"type":"TypeString","required":true}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"path_based_rule_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"policy_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"file_upload_limit_in_mb":{"type":"TypeInt","optional":true,"default":100},"js_challenge_cookie_expiration_in_minutes":{"type":"TypeInt","optional":true,"default":30},"log_scrubbing":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"match_variable":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true,"description":"When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to."},"selector_match_operator":{"type":"TypeString","optional":true,"default":"Equals"}}}}}},"maxItems":1},"max_request_body_size_in_kb":{"type":"TypeInt","optional":true,"default":128},"mode":{"type":"TypeString","optional":true,"default":"Prevention"},"request_body_check":{"type":"TypeBool","optional":true,"default":true},"request_body_enforcement":{"type":"TypeBool","optional":true,"default":true},"request_body_inspect_limit_in_kb":{"type":"TypeInt","optional":true,"default":128}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_pubsub":{"schema":{"aad_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"capacity":{"type":"TypeInt","optional":true,"default":1},"external_ip":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"live_trace":{"type":"TypeList","optional":true,"elem":{"schema":{"connectivity_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"http_request_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"messaging_logs_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"public_port":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"server_port":{"type":"TypeInt","computed":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tls_client_cert_enabled":{"type":"TypeBool","optional":true,"default":false},"version":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_pubsub_custom_certificate":{"schema":{"certificate_version":{"type":"TypeString","computed":true},"custom_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_web_pubsub_custom_domain":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_custom_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_web_pubsub_hub":{"schema":{"anonymous_connections_enabled":{"type":"TypeBool","optional":true,"default":false},"event_handler":{"type":"TypeList","optional":true,"elem":{"schema":{"auth":{"type":"TypeList","optional":true,"elem":{"schema":{"managed_identity_id":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"system_events":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"url_template":{"type":"TypeString","required":true},"user_event_pattern":{"type":"TypeString","optional":true}}}},"event_listener":{"type":"TypeList","optional":true,"elem":{"schema":{"eventhub_name":{"type":"TypeString","required":true},"eventhub_namespace_name":{"type":"TypeString","required":true},"system_event_name_filter":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"user_event_name_filter":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_pubsub_network_acl":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"private_endpoint":{"type":"TypeSet","optional":true,"elem":{"schema":{"allowed_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"denied_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","required":true}}}},"public_network":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"denied_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_pubsub_shared_private_link_resource":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"status":{"type":"TypeString","computed":true},"subresource_name":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_windows_function_app":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.","elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"builtin_logging_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting"},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the function app use Client Certificates"},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Optional","description":"The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser` "},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"content_share_force_disabled":{"type":"TypeBool","optional":true,"default":false,"description":"Force disable the content share settings."},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans."},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Is the Windows Function App enabled."},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"functions_extension_version":{"type":"TypeString","optional":true,"default":"~4","description":"The runtime version associated with the Function App."},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"description":"Can the Function App only be accessed via HTTPS?","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Key Vault access.","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"description":"Specifies the name of the Function App.","forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_plan_id":{"type":"TypeString","required":true,"description":"The ID of the App Service Plan within which to create this Function App"},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"description":"If this Windows Web App is Always On enabled. Defaults to `false`.","computed":true},"api_definition_url":{"type":"TypeString","optional":true,"description":"The URL of the API definition that describes this Windows Function App."},"api_management_api_id":{"type":"TypeString","optional":true,"description":"The ID of the API Management API for this Windows Function App."},"app_command_line":{"type":"TypeString","optional":true,"description":"The program and any arguments used to launch this app via the command line. (Example `node myapp.js`)."},"app_scale_limit":{"type":"TypeInt","optional":true,"description":"The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.","computed":true},"app_service_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","optional":true,"default":35,"description":"The amount of disk space to use for logs. Valid values are between `25` and `100`."},"retention_period_days":{"type":"TypeInt","optional":true,"description":"The retention period for logs in days. Valid values are between `0` and `99999`. Defaults to `0` (never delete)."}}},"maxItems":1},"application_insights_connection_string":{"type":"TypeString","optional":true,"description":"The Connection String for linking the Windows Function App to Application Insights."},"application_insights_key":{"type":"TypeString","optional":true,"description":"The Instrumentation Key for connecting the Windows Function App to Application Insights."},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"dotnet_version":{"type":"TypeString","optional":true,"default":"v4.0","description":"The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0` and `v7.0`"},"java_version":{"type":"TypeString","optional":true,"description":"The version of Java to use. Possible values are `1.8`, `11` and `17`"},"node_version":{"type":"TypeString","optional":true,"description":"The version of Node to use. Possible values include `12`, `14`, `16` and `18`"},"powershell_core_version":{"type":"TypeString","optional":true,"description":"The PowerShell Core version to use. Possible values are `7`, `7.2`, and `7.4`"},"use_custom_runtime":{"type":"TypeBool","optional":true,"description":"Does the Function App use a custom Application Stack?","computed":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","optional":true,"description":"Should the DotNet process use an isolated runtime. Defaults to `false`.","computed":true}}},"maxItems":1},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"description":"Specifies a list of Default Documents for the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","description":"Is detailed error logging enabled","computed":true},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"description":"The number of minimum instances for this Windows Function App. Only affects apps on Elastic Premium plans.","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled","description":"State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`."},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true,"description":"The path to be checked for this function app health."},"http2_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies if the http2 protocol should be enabled. Defaults to `false`."},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests","description":"The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted."},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated","description":"The Managed Pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`."},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"description":"The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Remote Debugging be enabled. Defaults to `false`."},"remote_debugging_version":{"type":"TypeString","optional":true,"description":"The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"description":"Should Functions Runtime Scale Monitoring be enabled."},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"scm_type":{"type":"TypeString","description":"The SCM Type in use by the Windows Function App.","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Function App `ip_restriction` configuration be used for the SCM also."},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true,"description":"Should the Windows Web App use a 32-bit worker."},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Web Sockets be enabled. Defaults to `false`."},"windows_fx_version":{"type":"TypeString","description":"The Windows FX Version string.","computed":true},"worker_count":{"type":"TypeInt","optional":true,"description":"The number of Workers for this Windows Function App.","computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"connection_string_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"storage_account_access_key":{"type":"TypeString","optional":true,"description":"The access key which will be used to access the storage account for the Function App."},"storage_account_name":{"type":"TypeString","optional":true,"description":"The backend storage account name which will be used by this Function App."},"storage_key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App."},"storage_uses_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App use its Managed Identity to access storage?"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"vnet_image_pull_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is container image pull over virtual network enabled? Defaults to `false`."},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Windows Function App. **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_windows_function_app_slot":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.","elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"builtin_logging_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting."},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App Slot use Client Certificates."},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Optional","description":"The mode of the Function App Slot's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`."},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"content_share_force_disabled":{"type":"TypeBool","optional":true,"default":false,"description":"Force disable the content share settings."},"custom_domain_verification_id":{"type":"TypeString","description":"The identifier used by App Service to perform domain ownership verification via DNS TXT record.","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans."},"default_hostname":{"type":"TypeString","description":"The default hostname of the Windows Function App Slot.","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Is the Windows Function App Slot enabled."},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"function_app_id":{"type":"TypeString","required":true,"description":"The ID of the Windows Function App this Slot is a member of.","forceNew":true},"functions_extension_version":{"type":"TypeString","optional":true,"default":"~4","description":"The runtime version associated with the Function App Slot."},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false,"description":"Can the Function App Slot only be accessed via HTTPS?"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Key Vault access.","computed":true},"kind":{"type":"TypeString","description":"The Kind value for this Windows Function App Slot.","computed":true},"name":{"type":"TypeString","required":true,"description":"Specifies the name of the Windows Function App Slot.","forceNew":true},"outbound_ip_address_list":{"type":"TypeList","description":"A list of outbound IP addresses. For example `[\"52.23.25.3\", \"52.143.43.12\"]`.","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","description":"A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`.","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","description":"A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outbound_ip_address_list`. For example `[\"52.23.25.3\", \"52.143.43.12\"]`.","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","description":"A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outbound_ip_addresses`. For example `[\"52.23.25.3\", \"52.143.43.12\",\"52.143.43.17\"]`.","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_plan_id":{"type":"TypeString","optional":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"description":"If this Windows Web App is Always On enabled. Defaults to `false`.","computed":true},"api_definition_url":{"type":"TypeString","optional":true,"description":"The URL of the API definition that describes this Windows Function App."},"api_management_api_id":{"type":"TypeString","optional":true,"description":"The ID of the API Management API for this Windows Function App."},"app_command_line":{"type":"TypeString","optional":true,"description":"The program and any arguments used to launch this app via the command line. (Example `node myapp.js`)."},"app_scale_limit":{"type":"TypeInt","optional":true,"description":"The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.","computed":true},"app_service_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","optional":true,"default":35,"description":"The amount of disk space to use for logs. Valid values are between `25` and `100`."},"retention_period_days":{"type":"TypeInt","optional":true,"description":"The retention period for logs in days. Valid values are between `0` and `99999`. Defaults to `0` (never delete)."}}},"maxItems":1},"application_insights_connection_string":{"type":"TypeString","optional":true,"description":"The Connection String for linking the Windows Function App to Application Insights."},"application_insights_key":{"type":"TypeString","optional":true,"description":"The Instrumentation Key for connecting the Windows Function App to Application Insights."},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"dotnet_version":{"type":"TypeString","optional":true,"default":"v4.0","description":"The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0` and `v7.0`"},"java_version":{"type":"TypeString","optional":true,"description":"The version of Java to use. Possible values are `1.8`, `11` and `17`"},"node_version":{"type":"TypeString","optional":true,"description":"The version of Node to use. Possible values include `12`, `14`, `16` and `18`"},"powershell_core_version":{"type":"TypeString","optional":true,"description":"The PowerShell Core version to use. Possible values are `7`, `7.2`, and `7.4`"},"use_custom_runtime":{"type":"TypeBool","optional":true,"description":"Does the Function App use a custom Application Stack?","computed":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","optional":true,"description":"Should the DotNet process use an isolated runtime. Defaults to `false`.","computed":true}}},"maxItems":1},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"description":"Specifies a list of Default Documents for the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","description":"Is detailed error logging enabled","computed":true},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"description":"The number of minimum instances for this Windows Function App. Only affects apps on Elastic Premium plans.","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled","description":"State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`."},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Defaults to `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true,"description":"The path to be checked for this function app health."},"http2_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies if the http2 protocol should be enabled. Defaults to `false`."},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests","description":"The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted."},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated","description":"The Managed Pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`."},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"description":"The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Remote Debugging be enabled. Defaults to `false`."},"remote_debugging_version":{"type":"TypeString","optional":true,"description":"The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"description":"Should Functions Runtime Scale Monitoring be enabled."},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"scm_type":{"type":"TypeString","description":"The SCM Type in use by the Windows Function App.","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Function App `ip_restriction` configuration be used for the SCM also."},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true,"description":"Should the Windows Function App use a 32-bit worker."},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Web Sockets be enabled. Defaults to `false`."},"windows_fx_version":{"type":"TypeString","description":"The Windows FX Version string.","computed":true},"worker_count":{"type":"TypeInt","optional":true,"description":"The number of Workers for this Windows Function App.","computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"storage_account_access_key":{"type":"TypeString","optional":true,"description":"The access key which will be used to access the storage account for the Function App Slot."},"storage_account_name":{"type":"TypeString","optional":true,"description":"The backend storage account name which will be used by this Function App Slot."},"storage_key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App."},"storage_uses_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App Slot use its Managed Identity to access storage?"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"vnet_image_pull_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is container image pull over virtual network enabled? Defaults to `false`."},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_windows_virtual_machine":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"hibernation_enabled":{"type":"TypeBool","optional":true,"default":false},"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"additional_unattend_content":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"content":{"type":"TypeString","required":true,"forceNew":true},"setting":{"type":"TypeString","required":true,"forceNew":true}}}},"admin_password":{"type":"TypeString","required":true,"forceNew":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"allow_extension_operations":{"type":"TypeBool","optional":true,"default":true},"availability_set_id":{"type":"TypeString","optional":true,"forceNew":true},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"bypass_platform_safety_checks_on_user_schedule_enabled":{"type":"TypeBool","optional":true,"default":false},"capacity_reservation_group_id":{"type":"TypeString","optional":true},"computer_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true,"forceNew":true},"dedicated_host_group_id":{"type":"TypeString","optional":true},"dedicated_host_id":{"type":"TypeString","optional":true},"disk_controller_type":{"type":"TypeString","optional":true,"computed":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"enable_automatic_updates":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"gallery_application":{"type":"TypeList","optional":true,"elem":{"schema":{"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":false},"configuration_blob_uri":{"type":"TypeString","optional":true},"order":{"type":"TypeInt","optional":true,"default":0},"tag":{"type":"TypeString","optional":true},"treat_failure_as_deployment_failure_enabled":{"type":"TypeBool","optional":true,"default":false},"version_id":{"type":"TypeString","required":true}}},"maxItems":100},"hotpatching_enabled":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_encryption_type":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"os_image_notification":{"type":"TypeList","optional":true,"elem":{"schema":{"timeout":{"type":"TypeString","optional":true,"default":"PT15M"}}},"maxItems":1},"patch_assessment_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"patch_mode":{"type":"TypeString","optional":true,"default":"AutomaticByOS"},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain":{"type":"TypeInt","optional":true,"default":-1,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true},"public_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"reboot_setting":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"store":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"secure_boot_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"size":{"type":"TypeString","required":true},"source_image_id":{"type":"TypeString","optional":true,"forceNew":true},"source_image_reference":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"timezone":{"type":"TypeString","optional":true,"forceNew":true},"user_data":{"type":"TypeString","optional":true},"virtual_machine_id":{"type":"TypeString","computed":true},"virtual_machine_scale_set_id":{"type":"TypeString","optional":true},"vm_agent_platform_updates_enabled":{"type":"TypeBool","optional":true,"default":false},"vtpm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"winrm_listener":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true}}}},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":45,"read":5,"delete":45,"update":45}},"azurerm_windows_virtual_machine_scale_set":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"additional_unattend_content":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"content":{"type":"TypeString","required":true,"forceNew":true},"setting":{"type":"TypeString","required":true,"forceNew":true}}}},"admin_password":{"type":"TypeString","required":true,"forceNew":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"automatic_instance_repair":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","required":true},"grace_period":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"automatic_os_upgrade_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"disable_automatic_rollback":{"type":"TypeBool","required":true},"enable_automatic_os_upgrade":{"type":"TypeBool","required":true}}},"maxItems":1},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"computer_name_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true},"data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"create_option":{"type":"TypeString","optional":true,"default":"Empty"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","required":true},"lun":{"type":"TypeInt","required":true},"name":{"type":"TypeString","optional":true},"storage_account_type":{"type":"TypeString","required":true},"ultra_ssd_disk_iops_read_write":{"type":"TypeInt","optional":true,"computed":true},"ultra_ssd_disk_mbps_read_write":{"type":"TypeInt","optional":true,"computed":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"do_not_run_extensions_on_overprovisioned_machines":{"type":"TypeBool","optional":true,"default":false},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"enable_automatic_updates":{"type":"TypeBool","optional":true,"default":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extension":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true,"default":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":false},"force_update_tag":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"provision_after_extensions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true}}}},"extension_operations_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"gallery_application":{"type":"TypeList","optional":true,"elem":{"schema":{"configuration_blob_uri":{"type":"TypeString","optional":true,"forceNew":true},"order":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"tag":{"type":"TypeString","optional":true,"forceNew":true},"version_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":100},"health_probe_id":{"type":"TypeString","optional":true},"host_group_id":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"instances":{"type":"TypeInt","required":true},"license_type":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","required":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enable_accelerated_networking":{"type":"TypeBool","optional":true,"default":false},"enable_ip_forwarding":{"type":"TypeBool","optional":true,"default":false},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":20},"load_balancer_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true,"default":false},"public_ip_address":{"type":"TypeList","optional":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","optional":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"ip_tag":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true}}}},"subnet_id":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true,"default":"IPv4"}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","optional":true},"primary":{"type":"TypeBool","optional":true,"default":false}}}},"os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_encryption_type":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"overprovision":{"type":"TypeBool","optional":true,"default":true},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain_count":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rolling_upgrade_policy":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cross_zone_upgrades_enabled":{"type":"TypeBool","optional":true},"max_batch_instance_percent":{"type":"TypeInt","required":true},"max_unhealthy_instance_percent":{"type":"TypeInt","required":true},"max_unhealthy_upgraded_instance_percent":{"type":"TypeInt","required":true},"maximum_surge_instances_enabled":{"type":"TypeBool","optional":true},"pause_time_between_batches":{"type":"TypeString","required":true},"prioritize_unhealthy_instances_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"scale_in":{"type":"TypeList","optional":true,"elem":{"schema":{"force_deletion_enabled":{"type":"TypeBool","optional":true,"default":false},"rule":{"type":"TypeString","optional":true,"default":"Default"}}},"maxItems":1},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"store":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"secure_boot_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"single_placement_group":{"type":"TypeBool","optional":true,"default":true},"sku":{"type":"TypeString","required":true},"source_image_id":{"type":"TypeString","optional":true},"source_image_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"spot_restore":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"timeout":{"type":"TypeString","optional":true,"default":"PT1H","forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"timezone":{"type":"TypeString","optional":true},"unique_id":{"type":"TypeString","computed":true},"upgrade_mode":{"type":"TypeString","optional":true,"default":"Manual","forceNew":true},"user_data":{"type":"TypeString","optional":true},"vtpm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"winrm_listener":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true}}}},"zone_balance":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_windows_web_app":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Required"},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","required":true}}},"maxItems":1},"detailed_error_messages":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_plan_id":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":true},"api_definition_url":{"type":"TypeString","optional":true},"api_management_api_id":{"type":"TypeString","optional":true},"app_command_line":{"type":"TypeString","optional":true},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"current_stack":{"type":"TypeString","optional":true,"computed":true},"docker_image_name":{"type":"TypeString","optional":true},"docker_registry_password":{"type":"TypeString","optional":true},"docker_registry_url":{"type":"TypeString","optional":true},"docker_registry_username":{"type":"TypeString","optional":true},"dotnet_core_version":{"type":"TypeString","optional":true,"description":"The version of DotNetCore to use."},"dotnet_version":{"type":"TypeString","optional":true,"computed":true},"java_container":{"type":"TypeString","optional":true},"java_container_version":{"type":"TypeString","optional":true},"java_embedded_server_enabled":{"type":"TypeBool","optional":true,"description":"Should the application use the embedded web server for the version of Java in use.","computed":true},"java_version":{"type":"TypeString","optional":true},"node_version":{"type":"TypeString","optional":true},"php_version":{"type":"TypeString","optional":true,"computed":true},"python":{"type":"TypeBool","optional":true,"default":false},"tomcat_version":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_heal_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"custom_action":{"type":"TypeList","optional":true,"elem":{"schema":{"executable":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true}}},"maxItems":1},"minimum_process_execution_time":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"trigger":{"type":"TypeList","required":true,"elem":{"schema":{"private_memory_kb":{"type":"TypeInt","optional":true},"requests":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"time_taken":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request_with_path":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"time_taken":{"type":"TypeString","required":true}}}},"status_code":{"type":"TypeSet","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"status_code_range":{"type":"TypeString","required":true},"sub_status":{"type":"TypeInt","optional":true},"win32_status_code":{"type":"TypeInt","optional":true}}}}}},"maxItems":1}}},"maxItems":1},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled"},"handler_mapping":{"type":"TypeSet","optional":true,"elem":{"schema":{"arguments":{"type":"TypeString","optional":true},"extension":{"type":"TypeString","required":true},"script_processor_path":{"type":"TypeString","required":true}}}},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests"},"local_mysql_enabled":{"type":"TypeBool","optional":true,"default":false},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true},"virtual_application":{"type":"TypeSet","optional":true,"elem":{"schema":{"physical_path":{"type":"TypeString","required":true},"preload":{"type":"TypeBool","required":true},"virtual_directory":{"type":"TypeSet","optional":true,"elem":{"schema":{"physical_path":{"type":"TypeString","optional":true},"virtual_path":{"type":"TypeString","optional":true}}}},"virtual_path":{"type":"TypeString","required":true}}}},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false},"windows_fx_version":{"type":"TypeString","computed":true},"worker_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"connection_string_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Windows Web App. **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_windows_web_app_slot":{"schema":{"app_service_id":{"type":"TypeString","required":true,"forceNew":true},"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Required"},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","required":true}}},"maxItems":1},"detailed_error_messages":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_plan_id":{"type":"TypeString","optional":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":true},"api_definition_url":{"type":"TypeString","optional":true},"api_management_api_id":{"type":"TypeString","optional":true},"app_command_line":{"type":"TypeString","optional":true},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"current_stack":{"type":"TypeString","optional":true,"computed":true},"docker_image_name":{"type":"TypeString","optional":true},"docker_registry_password":{"type":"TypeString","optional":true},"docker_registry_url":{"type":"TypeString","optional":true},"docker_registry_username":{"type":"TypeString","optional":true},"dotnet_core_version":{"type":"TypeString","optional":true,"description":"The version of DotNetCore to use."},"dotnet_version":{"type":"TypeString","optional":true,"computed":true},"java_container":{"type":"TypeString","optional":true},"java_container_version":{"type":"TypeString","optional":true},"java_embedded_server_enabled":{"type":"TypeBool","optional":true,"description":"Should the application use the embedded web server for the version of Java in use.","computed":true},"java_version":{"type":"TypeString","optional":true},"node_version":{"type":"TypeString","optional":true},"php_version":{"type":"TypeString","optional":true,"computed":true},"python":{"type":"TypeBool","optional":true,"default":false},"tomcat_version":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_heal_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"custom_action":{"type":"TypeList","optional":true,"elem":{"schema":{"executable":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true}}},"maxItems":1},"minimum_process_execution_time":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"trigger":{"type":"TypeList","required":true,"elem":{"schema":{"private_memory_kb":{"type":"TypeInt","optional":true},"requests":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"time_taken":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request_with_path":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"time_taken":{"type":"TypeString","required":true}}}},"status_code":{"type":"TypeSet","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"status_code_range":{"type":"TypeString","required":true},"sub_status":{"type":"TypeInt","optional":true},"win32_status_code":{"type":"TypeInt","optional":true}}}}}},"maxItems":1}}},"maxItems":1},"auto_swap_slot_name":{"type":"TypeString","optional":true},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled"},"handler_mapping":{"type":"TypeSet","optional":true,"elem":{"schema":{"arguments":{"type":"TypeString","optional":true},"extension":{"type":"TypeString","required":true},"script_processor_path":{"type":"TypeString","required":true}}}},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests"},"local_mysql_enabled":{"type":"TypeBool","optional":true,"default":false},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker":{"type":"TypeBool","optional":true,"computed":true},"virtual_application":{"type":"TypeSet","optional":true,"elem":{"schema":{"physical_path":{"type":"TypeString","required":true},"preload":{"type":"TypeBool","required":true},"virtual_directory":{"type":"TypeSet","optional":true,"elem":{"schema":{"physical_path":{"type":"TypeString","optional":true},"virtual_path":{"type":"TypeString","optional":true}}}},"virtual_path":{"type":"TypeString","required":true}}}},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false},"windows_fx_version":{"type":"TypeString","computed":true},"worker_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Windows Web App. **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_workloads_sap_discovery_virtual_instance":{"schema":{"central_server_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"environment":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"forceNew":true},"managed_storage_account_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sap_product":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_workloads_sap_single_node_virtual_instance":{"schema":{"app_location":{"type":"TypeString","required":true,"forceNew":true},"environment":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sap_fqdn":{"type":"TypeString","required":true,"forceNew":true},"sap_product":{"type":"TypeString","required":true,"forceNew":true},"single_server_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"app_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"database_type":{"type":"TypeString","optional":true,"forceNew":true},"disk_volume_configuration":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"number_of_disks":{"type":"TypeInt","required":true,"forceNew":true},"size_in_gb":{"type":"TypeInt","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"secondary_ip_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"image":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"os_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_private_key":{"type":"TypeString","required":true,"forceNew":true},"ssh_public_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_resource_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_disk":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"names":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"host_name":{"type":"TypeString","optional":true,"forceNew":true},"network_interface_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"os_disk_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_workloads_sap_three_tier_virtual_instance":{"schema":{"app_location":{"type":"TypeString","required":true,"forceNew":true},"environment":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sap_fqdn":{"type":"TypeString","required":true,"forceNew":true},"sap_product":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"three_tier_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"app_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"application_server_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"instance_count":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"image":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"os_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_private_key":{"type":"TypeString","required":true,"forceNew":true},"ssh_public_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"central_server_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"instance_count":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"image":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"os_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_private_key":{"type":"TypeString","required":true,"forceNew":true},"ssh_public_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"database_server_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"database_type":{"type":"TypeString","optional":true,"forceNew":true},"disk_volume_configuration":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"number_of_disks":{"type":"TypeInt","required":true,"forceNew":true},"size_in_gb":{"type":"TypeInt","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"instance_count":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"image":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"os_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_private_key":{"type":"TypeString","required":true,"forceNew":true},"ssh_public_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"high_availability_type":{"type":"TypeString","optional":true,"forceNew":true},"resource_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"application_server":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"availability_set_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_disk":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"names":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"host_name":{"type":"TypeString","optional":true,"forceNew":true},"network_interface_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"os_disk_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}},"maxItems":1},"central_server":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"availability_set_name":{"type":"TypeString","optional":true,"forceNew":true},"load_balancer":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"backend_pool_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"frontend_ip_configuration_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"health_probe_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"virtual_machine":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_disk":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"names":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"host_name":{"type":"TypeString","optional":true,"forceNew":true},"network_interface_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"os_disk_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}},"maxItems":1},"database_server":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"availability_set_name":{"type":"TypeString","optional":true,"forceNew":true},"load_balancer":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"backend_pool_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"frontend_ip_configuration_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"health_probe_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"virtual_machine":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_disk":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"names":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"host_name":{"type":"TypeString","optional":true,"forceNew":true},"network_interface_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"os_disk_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}},"maxItems":1},"shared_storage":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"account_name":{"type":"TypeString","optional":true,"forceNew":true},"private_endpoint_name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"secondary_ip_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"transport_create_and_mount":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"resource_group_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}}},"dataSources":{"azurerm_aadb2c_directory":{"schema":{"billing_type":{"type":"TypeString","description":"The type of billing for the B2C tenant. Possible values include: `MAU` or `Auths`.","computed":true},"data_residency_location":{"type":"TypeString","description":"Location in which the B2C tenant is hosted and data resides.","computed":true},"domain_name":{"type":"TypeString","required":true,"description":"Domain name of the B2C tenant, including onmicrosoft.com suffix."},"effective_start_date":{"type":"TypeString","description":"The date from which the billing type took effect. May not be populated until after the first billing cycle.","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","description":"Billing SKU for the B2C tenant.","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","description":"The Tenant ID for the B2C tenant.","computed":true}},"timeouts":{"read":5}},"azurerm_active_directory_domain_service":{"schema":{"deployment_id":{"type":"TypeString","computed":true},"domain_configuration_type":{"type":"TypeString","computed":true},"domain_name":{"type":"TypeString","computed":true},"filtered_sync_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"notifications":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"notify_dc_admins":{"type":"TypeBool","computed":true},"notify_global_admins":{"type":"TypeBool","computed":true}}}},"replica_sets":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_controller_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"external_access_ip_address":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"service_status":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"resource_id":{"type":"TypeString","computed":true},"secure_ldap":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_expiry":{"type":"TypeString","computed":true},"certificate_thumbprint":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"external_access_enabled":{"type":"TypeBool","computed":true},"public_certificate":{"type":"TypeString","computed":true}}}},"security":{"type":"TypeList","computed":true,"elem":{"schema":{"kerberos_armoring_enabled":{"type":"TypeBool","computed":true},"kerberos_rc4_encryption_enabled":{"type":"TypeBool","computed":true},"ntlm_v1_enabled":{"type":"TypeBool","computed":true},"sync_kerberos_passwords":{"type":"TypeBool","computed":true},"sync_ntlm_passwords":{"type":"TypeBool","computed":true},"sync_on_prem_passwords":{"type":"TypeBool","computed":true},"tls_v1_enabled":{"type":"TypeBool","computed":true}}}},"sku":{"type":"TypeString","computed":true},"sync_owner":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true},"version":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_advisor_recommendations":{"schema":{"filter_by_category":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"filter_by_resource_groups":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"recommendations":{"type":"TypeList","computed":true,"elem":{"schema":{"category":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"impact":{"type":"TypeString","computed":true},"recommendation_name":{"type":"TypeString","computed":true},"recommendation_type_id":{"type":"TypeString","computed":true},"resource_name":{"type":"TypeString","computed":true},"resource_type":{"type":"TypeString","computed":true},"suppression_names":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"updated_time":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":10}},"azurerm_api_management":{"schema":{"additional_location":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"gateway_regional_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_id":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"developer_portal_url":{"type":"TypeString","computed":true},"gateway_regional_url":{"type":"TypeString","computed":true},"gateway_url":{"type":"TypeString","computed":true},"hostname_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"developer_portal":{"type":"TypeList","computed":true,"elem":{"schema":{"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}},"management":{"type":"TypeList","computed":true,"elem":{"schema":{"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}},"portal":{"type":"TypeList","computed":true,"elem":{"schema":{"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}},"proxy":{"type":"TypeList","computed":true,"elem":{"schema":{"default_ssl_binding":{"type":"TypeBool","computed":true},"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}},"scm":{"type":"TypeList","computed":true,"elem":{"schema":{"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"management_api_url":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"notification_sender_email":{"type":"TypeString","computed":true},"portal_url":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_id":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"publisher_email":{"type":"TypeString","computed":true},"publisher_name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"scm_url":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_access":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"primary_key":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_api_management_api":{"schema":{"api_management_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"is_current":{"type":"TypeBool","computed":true},"is_online":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","computed":true},"protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"revision":{"type":"TypeString","required":true},"service_url":{"type":"TypeString","computed":true},"soap_pass_through":{"type":"TypeBool","computed":true},"subscription_key_parameter_names":{"type":"TypeList","computed":true,"elem":{"schema":{"header":{"type":"TypeString","computed":true},"query":{"type":"TypeString","computed":true}}}},"subscription_required":{"type":"TypeBool","computed":true},"version":{"type":"TypeString","computed":true},"version_set_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_api_version_set":{"schema":{"api_management_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"version_header_name":{"type":"TypeString","computed":true},"version_query_name":{"type":"TypeString","computed":true},"versioning_scheme":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_gateway":{"schema":{"api_management_id":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"location_data":{"type":"TypeList","computed":true,"elem":{"schema":{"city":{"type":"TypeString","computed":true},"district":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"region":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_api_management_gateway_host_name_configuration":{"schema":{"api_management_id":{"type":"TypeString","required":true},"certificate_id":{"type":"TypeString","computed":true},"gateway_name":{"type":"TypeString","required":true},"host_name":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"request_client_certificate_enabled":{"type":"TypeBool","computed":true},"tls10_enabled":{"type":"TypeBool","computed":true},"tls11_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_group":{"schema":{"api_management_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"external_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_product":{"schema":{"api_management_name":{"type":"TypeString","required":true},"approval_required":{"type":"TypeBool","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"product_id":{"type":"TypeString","required":true},"published":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_required":{"type":"TypeBool","computed":true},"subscriptions_limit":{"type":"TypeInt","computed":true},"terms":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_user":{"schema":{"api_management_name":{"type":"TypeString","required":true},"email":{"type":"TypeString","computed":true},"first_name":{"type":"TypeString","computed":true},"last_name":{"type":"TypeString","computed":true},"note":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"state":{"type":"TypeString","computed":true},"user_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_app_configuration":{"schema":{"encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","computed":true},"key_vault_key_identifier":{"type":"TypeString","computed":true}}}},"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"local_auth_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_read_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"primary_write_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"public_network_access":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"purge_protection_enabled":{"type":"TypeBool","computed":true},"replica":{"type":"TypeList","computed":true,"elem":{"schema":{"endpoint":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"secondary_read_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"secondary_write_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"sku":{"type":"TypeString","computed":true},"soft_delete_retention_days":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_app_configuration_key":{"schema":{"configuration_store_id":{"type":"TypeString","required":true},"content_type":{"type":"TypeString","computed":true},"etag":{"type":"TypeString","computed":true},"key":{"type":"TypeString","required":true},"label":{"type":"TypeString","optional":true,"default":""},"locked":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true},"vault_key_reference":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_app_configuration_keys":{"schema":{"configuration_store_id":{"type":"TypeString","required":true},"items":{"type":"TypeList","computed":true,"elem":{"schema":{"content_type":{"type":"TypeString","computed":true},"etag":{"type":"TypeString","computed":true},"key":{"type":"TypeString","computed":true},"label":{"type":"TypeString","computed":true},"locked":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true},"vault_key_reference":{"type":"TypeString","computed":true}}}},"key":{"type":"TypeString","optional":true,"default":""},"label":{"type":"TypeString","optional":true,"default":""}},"timeouts":{"read":5}},"azurerm_app_service":{"schema":{"app_service_plan_id":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"client_affinity_enabled":{"type":"TypeBool","computed":true},"client_cert_enabled":{"type":"TypeBool","computed":true},"connection_string":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_site_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"https_only":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"acr_use_managed_identity_credentials":{"type":"TypeBool","computed":true},"acr_user_managed_identity_client_id":{"type":"TypeString","computed":true},"always_on":{"type":"TypeBool","computed":true},"app_command_line":{"type":"TypeString","computed":true},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dotnet_framework_version":{"type":"TypeString","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"service_tag":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}}}},"java_container":{"type":"TypeString","computed":true},"java_container_version":{"type":"TypeString","computed":true},"java_version":{"type":"TypeString","computed":true},"linux_fx_version":{"type":"TypeString","computed":true},"local_mysql_enabled":{"type":"TypeBool","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"min_tls_version":{"type":"TypeString","computed":true},"number_of_workers":{"type":"TypeInt","computed":true},"php_version":{"type":"TypeString","computed":true},"python_version":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"scm_ip_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"service_tag":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}}}},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker_process":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"windows_fx_version":{"type":"TypeString","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"source_control":{"type":"TypeList","computed":true,"elem":{"schema":{"branch":{"type":"TypeString","computed":true},"manual_integration":{"type":"TypeBool","computed":true},"repo_url":{"type":"TypeString","computed":true},"rollback_enabled":{"type":"TypeBool","computed":true},"use_mercurial":{"type":"TypeBool","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_app_service_certificate":{"schema":{"expiration_date":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"host_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"issue_date":{"type":"TypeString","computed":true},"issuer":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"subject_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_app_service_certificate_order":{"schema":{"app_service_certificate_not_renewable_reasons":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"auto_renew":{"type":"TypeBool","computed":true},"certificates":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"key_vault_secret_name":{"type":"TypeString","computed":true},"provisioning_state":{"type":"TypeString","computed":true}}}},"csr":{"type":"TypeString","computed":true},"distinguished_name":{"type":"TypeString","computed":true},"domain_verification_token":{"type":"TypeString","computed":true},"expiration_time":{"type":"TypeString","computed":true},"intermediate_thumbprint":{"type":"TypeString","computed":true},"is_private_key_external":{"type":"TypeBool","computed":true},"key_size":{"type":"TypeInt","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"product_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"root_thumbprint":{"type":"TypeString","computed":true},"signed_certificate_thumbprint":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"validity_in_years":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_app_service_environment_v3":{"schema":{"allow_new_private_endpoint_connections":{"type":"TypeBool","computed":true},"cluster_setting":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"dedicated_host_count":{"type":"TypeInt","computed":true},"dns_suffix":{"type":"TypeString","computed":true},"external_inbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"inbound_network_dependencies":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ports":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"internal_inbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"internal_load_balancing_mode":{"type":"TypeString","computed":true},"ip_ssl_address_count":{"type":"TypeInt","computed":true},"linux_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"pricing_tier":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"windows_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_app_service_plan":{"schema":{"app_service_environment_id":{"type":"TypeString","computed":true},"is_xenon":{"type":"TypeBool","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maximum_elastic_worker_count":{"type":"TypeInt","computed":true},"maximum_number_of_workers":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"per_site_scaling":{"type":"TypeBool","computed":true},"reserved":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"size":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_application_gateway":{"schema":{"authentication_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"autoscale_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"max_capacity":{"type":"TypeInt","computed":true},"min_capacity":{"type":"TypeInt","computed":true}}}},"backend_address_pool":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true}}}},"backend_http_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"affinity_cookie_name":{"type":"TypeString","computed":true},"authentication_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"connection_draining":{"type":"TypeList","computed":true,"elem":{"schema":{"drain_timeout_sec":{"type":"TypeInt","computed":true},"enabled":{"type":"TypeBool","computed":true}}}},"cookie_based_affinity":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"pick_host_name_from_backend_address":{"type":"TypeBool","computed":true},"port":{"type":"TypeInt","computed":true},"probe_id":{"type":"TypeString","computed":true},"probe_name":{"type":"TypeString","computed":true},"protocol":{"type":"TypeString","computed":true},"request_timeout":{"type":"TypeInt","computed":true},"trusted_root_certificate_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"custom_error_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_error_page_url":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"status_code":{"type":"TypeString","computed":true}}}},"fips_enabled":{"type":"TypeBool","computed":true},"firewall_policy_id":{"type":"TypeString","computed":true},"force_firewall_policy_association":{"type":"TypeBool","computed":true},"frontend_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"private_link_configuration_id":{"type":"TypeString","computed":true},"private_link_configuration_name":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"frontend_port":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","computed":true}}}},"gateway_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"global":{"type":"TypeList","computed":true,"elem":{"schema":{"request_buffering_enabled":{"type":"TypeBool","computed":true},"response_buffering_enabled":{"type":"TypeBool","computed":true}}}},"http2_enabled":{"type":"TypeBool","computed":true},"http_listener":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_error_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_error_page_url":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"status_code":{"type":"TypeString","computed":true}}}},"firewall_policy_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","computed":true},"frontend_port_id":{"type":"TypeString","computed":true},"frontend_port_name":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"host_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"protocol":{"type":"TypeString","computed":true},"require_sni":{"type":"TypeBool","computed":true},"ssl_certificate_id":{"type":"TypeString","computed":true},"ssl_certificate_name":{"type":"TypeString","computed":true},"ssl_profile_id":{"type":"TypeString","computed":true},"ssl_profile_name":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_endpoint_connection":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"private_link_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true}}}},"probe":{"type":"TypeList","computed":true,"elem":{"schema":{"host":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"interval":{"type":"TypeInt","computed":true},"match":{"type":"TypeList","computed":true,"elem":{"schema":{"body":{"type":"TypeString","computed":true},"status_code":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"minimum_servers":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"pick_host_name_from_backend_http_settings":{"type":"TypeBool","computed":true},"port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true},"timeout":{"type":"TypeInt","computed":true},"unhealthy_threshold":{"type":"TypeInt","computed":true}}}},"redirect_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"include_path":{"type":"TypeBool","computed":true},"include_query_string":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"redirect_type":{"type":"TypeString","computed":true},"target_listener_id":{"type":"TypeString","computed":true},"target_listener_name":{"type":"TypeString","computed":true},"target_url":{"type":"TypeString","computed":true}}}},"request_routing_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_address_pool_name":{"type":"TypeString","computed":true},"backend_http_settings_id":{"type":"TypeString","computed":true},"backend_http_settings_name":{"type":"TypeString","computed":true},"http_listener_id":{"type":"TypeString","computed":true},"http_listener_name":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"redirect_configuration_id":{"type":"TypeString","computed":true},"redirect_configuration_name":{"type":"TypeString","computed":true},"rewrite_rule_set_id":{"type":"TypeString","computed":true},"rewrite_rule_set_name":{"type":"TypeString","computed":true},"rule_type":{"type":"TypeString","computed":true},"url_path_map_id":{"type":"TypeString","computed":true},"url_path_map_name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"rewrite_rule_set":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"rewrite_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"condition":{"type":"TypeList","computed":true,"elem":{"schema":{"ignore_case":{"type":"TypeBool","computed":true},"negate":{"type":"TypeBool","computed":true},"pattern":{"type":"TypeString","computed":true},"variable":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"request_header_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"header_name":{"type":"TypeString","computed":true},"header_value":{"type":"TypeString","computed":true}}}},"response_header_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"header_name":{"type":"TypeString","computed":true},"header_value":{"type":"TypeString","computed":true}}}},"rule_sequence":{"type":"TypeInt","computed":true},"url":{"type":"TypeList","computed":true,"elem":{"schema":{"components":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"query_string":{"type":"TypeString","computed":true},"reroute":{"type":"TypeBool","computed":true}}}}}}}}}},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}},"ssl_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"public_cert_data":{"type":"TypeString","computed":true}}}},"ssl_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"cipher_suites":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"disabled_protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"min_protocol_version":{"type":"TypeString","computed":true},"policy_name":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true}}}},"ssl_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"ssl_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"cipher_suites":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"disabled_protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"min_protocol_version":{"type":"TypeString","computed":true},"policy_name":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true}}}},"trusted_client_certificate_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"verify_client_certificate_issuer_dn":{"type":"TypeBool","computed":true},"verify_client_certificate_revocation":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"trusted_client_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"data":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"trusted_root_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"url_path_map":{"type":"TypeList","computed":true,"elem":{"schema":{"default_backend_address_pool_id":{"type":"TypeString","computed":true},"default_backend_address_pool_name":{"type":"TypeString","computed":true},"default_backend_http_settings_id":{"type":"TypeString","computed":true},"default_backend_http_settings_name":{"type":"TypeString","computed":true},"default_redirect_configuration_id":{"type":"TypeString","computed":true},"default_redirect_configuration_name":{"type":"TypeString","computed":true},"default_rewrite_rule_set_id":{"type":"TypeString","computed":true},"default_rewrite_rule_set_name":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"path_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_address_pool_name":{"type":"TypeString","computed":true},"backend_http_settings_id":{"type":"TypeString","computed":true},"backend_http_settings_name":{"type":"TypeString","computed":true},"firewall_policy_id":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"paths":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"redirect_configuration_id":{"type":"TypeString","computed":true},"redirect_configuration_name":{"type":"TypeString","computed":true},"rewrite_rule_set_id":{"type":"TypeString","computed":true},"rewrite_rule_set_name":{"type":"TypeString","computed":true}}}}}}},"waf_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"disabled_rule_group":{"type":"TypeList","computed":true,"elem":{"schema":{"rule_group_name":{"type":"TypeString","computed":true},"rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}}}}},"enabled":{"type":"TypeBool","computed":true},"exclusion":{"type":"TypeList","computed":true,"elem":{"schema":{"match_variable":{"type":"TypeString","computed":true},"selector":{"type":"TypeString","computed":true},"selector_match_operator":{"type":"TypeString","computed":true}}}},"file_upload_limit_mb":{"type":"TypeInt","computed":true},"firewall_mode":{"type":"TypeString","computed":true},"max_request_body_size_kb":{"type":"TypeInt","computed":true},"request_body_check":{"type":"TypeBool","computed":true},"rule_set_type":{"type":"TypeString","computed":true},"rule_set_version":{"type":"TypeString","computed":true}}}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_application_insights":{"schema":{"app_id":{"type":"TypeString","computed":true},"application_type":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeString","computed":true},"instrumentation_key":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_application_security_group":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_arc_machine":{"schema":{"active_directory_fqdn":{"type":"TypeString","computed":true},"agent":{"type":"TypeList","computed":true,"elem":{"schema":{"extensions_allow_list":{"type":"TypeList","computed":true,"elem":{"schema":{"publisher":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"extensions_block_list":{"type":"TypeList","computed":true,"elem":{"schema":{"publisher":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"extensions_enabled":{"type":"TypeBool","computed":true},"guest_configuration_enabled":{"type":"TypeBool","computed":true},"incoming_connections_ports":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"proxy_bypass":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"proxy_url":{"type":"TypeString","computed":true}}}},"agent_version":{"type":"TypeString","computed":true},"client_public_key":{"type":"TypeString","computed":true},"cloud_metadata":{"type":"TypeList","computed":true,"elem":{"schema":{"provider":{"type":"TypeString","computed":true}}}},"detected_properties":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","computed":true},"dns_fqdn":{"type":"TypeString","computed":true},"domain_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"last_status_change_time":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"location_data":{"type":"TypeList","computed":true,"elem":{"schema":{"city":{"type":"TypeString","computed":true},"country_or_region":{"type":"TypeString","computed":true},"district":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"machine_fqdn":{"type":"TypeString","computed":true},"mssql_discovered":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"os_name":{"type":"TypeString","computed":true},"os_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"computer_name":{"type":"TypeString","computed":true},"linux":{"type":"TypeList","computed":true,"elem":{"schema":{"patch":{"type":"TypeList","computed":true,"elem":{"schema":{"assessment_mode":{"type":"TypeString","computed":true},"patch_mode":{"type":"TypeString","computed":true}}}}}}},"windows":{"type":"TypeList","computed":true,"elem":{"schema":{"patch":{"type":"TypeList","computed":true,"elem":{"schema":{"assessment_mode":{"type":"TypeString","computed":true},"patch_mode":{"type":"TypeString","computed":true}}}}}}}}}},"os_sku":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"os_version":{"type":"TypeString","computed":true},"parent_cluster_resource_id":{"type":"TypeString","computed":true},"private_link_scope_resource_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_status":{"type":"TypeList","computed":true,"elem":{"schema":{"extension_service":{"type":"TypeList","computed":true,"elem":{"schema":{"startup_type":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true}}}},"guest_configuration_service":{"type":"TypeList","computed":true,"elem":{"schema":{"startup_type":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true}}}}}}},"status":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vm_id":{"type":"TypeString","computed":true},"vm_uuid":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_arc_resource_bridge_appliance":{"schema":{"distro":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"infrastructure_provider":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_key_base64":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_attestation_provider":{"schema":{"attestation_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"trust_model":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_account":{"schema":{"endpoint":{"type":"TypeString","computed":true},"hybrid_service_url":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","computed":true},"private_endpoint_connection":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"secondary_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_runbook":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"content":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"log_activity_trace_level":{"type":"TypeInt","computed":true},"log_progress":{"type":"TypeBool","computed":true},"log_verbose":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"runbook_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_automation_variable_bool":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variable_datetime":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variable_int":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variable_object":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variable_string":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variables":{"schema":{"automation_account_id":{"type":"TypeString","required":true},"bool":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeBool","computed":true}}}},"datetime":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"encrypted":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"int":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeInt","computed":true}}}},"null":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"object":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"string":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_availability_set":{"schema":{"location":{"type":"TypeString","computed":true},"managed":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"platform_fault_domain_count":{"type":"TypeInt","computed":true},"platform_update_domain_count":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_backup_policy_file_share":{"schema":{"name":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_backup_policy_vm":{"schema":{"name":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_bastion_host":{"schema":{"copy_paste_enabled":{"type":"TypeBool","computed":true},"dns_name":{"type":"TypeString","computed":true},"file_copy_enabled":{"type":"TypeBool","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"ip_connect_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"scale_units":{"type":"TypeInt","computed":true},"session_recording_enabled":{"type":"TypeBool","computed":true},"shareable_link_enabled":{"type":"TypeBool","computed":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tunneling_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_batch_account":{"schema":{"account_endpoint":{"type":"TypeString","computed":true},"encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","computed":true}}}},"key_vault_reference":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"url":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"pool_allocation_mode":{"type":"TypeString","computed":true},"primary_access_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_batch_application":{"schema":{"account_name":{"type":"TypeString","required":true},"allow_updates":{"type":"TypeBool","computed":true},"default_version":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_batch_certificate":{"schema":{"account_name":{"type":"TypeString","required":true},"format":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_data":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"thumbprint":{"type":"TypeString","computed":true},"thumbprint_algorithm":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_batch_pool":{"schema":{"account_name":{"type":"TypeString","required":true},"auto_scale":{"type":"TypeList","computed":true,"elem":{"schema":{"evaluation_interval":{"type":"TypeString","computed":true},"formula":{"type":"TypeString","computed":true}}}},"certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"store_location":{"type":"TypeString","computed":true},"store_name":{"type":"TypeString","computed":true},"visibility":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"container_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"container_image_names":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"container_registries":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"registry_server":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true},"user_name":{"type":"TypeString","computed":true}}}},"type":{"type":"TypeString","computed":true}}}},"data_disks":{"type":"TypeList","computed":true,"elem":{"schema":{"caching":{"type":"TypeString","computed":true},"disk_size_gb":{"type":"TypeInt","computed":true},"lun":{"type":"TypeInt","computed":true},"storage_account_type":{"type":"TypeString","computed":true}}}},"disk_encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_encryption_target":{"type":"TypeString","computed":true}}}},"display_name":{"type":"TypeString","computed":true},"extensions":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"protected_settings":{"type":"TypeString","computed":true},"provision_after_extensions":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","computed":true},"settings_json":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"type_handler_version":{"type":"TypeString","computed":true}}}},"fixed_scale":{"type":"TypeList","computed":true,"elem":{"schema":{"resize_timeout":{"type":"TypeString","computed":true},"target_dedicated_nodes":{"type":"TypeInt","computed":true},"target_low_priority_nodes":{"type":"TypeInt","computed":true}}}},"inter_node_communication":{"type":"TypeString","computed":true},"license_type":{"type":"TypeString","computed":true},"max_tasks_per_node":{"type":"TypeInt","computed":true},"metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"mount":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","computed":true},"account_name":{"type":"TypeString","computed":true},"blobfuse_options":{"type":"TypeString","computed":true},"container_name":{"type":"TypeString","computed":true},"identity_id":{"type":"TypeString","computed":true},"relative_mount_path":{"type":"TypeString","computed":true},"sas_key":{"type":"TypeString","computed":true}}}},"azure_file_share":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","computed":true},"account_name":{"type":"TypeString","computed":true},"azure_file_url":{"type":"TypeString","computed":true},"mount_options":{"type":"TypeString","computed":true},"relative_mount_path":{"type":"TypeString","computed":true}}}},"cifs_mount":{"type":"TypeList","computed":true,"elem":{"schema":{"mount_options":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"relative_mount_path":{"type":"TypeString","computed":true},"source":{"type":"TypeString","computed":true},"user_name":{"type":"TypeString","computed":true}}}},"nfs_mount":{"type":"TypeList","computed":true,"elem":{"schema":{"mount_options":{"type":"TypeString","computed":true},"relative_mount_path":{"type":"TypeString","computed":true},"source":{"type":"TypeString","computed":true}}}}}}},"name":{"type":"TypeString","required":true},"network_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","computed":true},"dynamic_vnet_assignment_scope":{"type":"TypeString","computed":true},"endpoint_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","computed":true},"frontend_port_range":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"network_security_group_rules":{"type":"TypeList","computed":true,"elem":{"schema":{"access":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"source_address_prefix":{"type":"TypeString","computed":true},"source_port_ranges":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"protocol":{"type":"TypeString","computed":true}}}},"public_address_provisioning_type":{"type":"TypeString","computed":true},"public_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","computed":true}}}},"node_agent_sku_id":{"type":"TypeString","computed":true},"node_placement":{"type":"TypeList","computed":true,"elem":{"schema":{"policy":{"type":"TypeString","computed":true}}}},"os_disk_placement":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"start_task":{"type":"TypeList","computed":true,"elem":{"schema":{"command_line":{"type":"TypeString","computed":true},"common_environment_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"container":{"type":"TypeList","computed":true,"elem":{"schema":{"image_name":{"type":"TypeString","computed":true},"registry":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"registry_server":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true},"user_name":{"type":"TypeString","computed":true}}}},"run_options":{"type":"TypeString","computed":true},"working_directory":{"type":"TypeString","computed":true}}}},"resource_file":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_storage_container_name":{"type":"TypeString","computed":true},"blob_prefix":{"type":"TypeString","computed":true},"file_mode":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","computed":true},"http_url":{"type":"TypeString","computed":true},"storage_container_url":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"task_retry_maximum":{"type":"TypeInt","computed":true},"user_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_user":{"type":"TypeList","computed":true,"elem":{"schema":{"elevation_level":{"type":"TypeString","computed":true},"scope":{"type":"TypeString","computed":true}}}},"user_name":{"type":"TypeString","computed":true}}}},"wait_for_success":{"type":"TypeBool","computed":true}}}},"storage_image_reference":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"offer":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"task_scheduling_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"node_fill_type":{"type":"TypeString","computed":true}}}},"user_accounts":{"type":"TypeList","computed":true,"elem":{"schema":{"elevation_level":{"type":"TypeString","computed":true},"linux_user_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"gid":{"type":"TypeInt","computed":true},"ssh_private_key":{"type":"TypeString","computed":true},"uid":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"windows_user_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"login_mode":{"type":"TypeString","computed":true}}}}}}},"vm_size":{"type":"TypeString","computed":true},"windows":{"type":"TypeList","computed":true,"elem":{"schema":{"enable_automatic_updates":{"type":"TypeBool","computed":true}}}}},"timeouts":{"read":5}},"azurerm_billing_enrollment_account_scope":{"schema":{"billing_account_name":{"type":"TypeString","required":true},"enrollment_account_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_billing_mca_account_scope":{"schema":{"billing_account_name":{"type":"TypeString","required":true},"billing_profile_name":{"type":"TypeString","required":true},"invoice_section_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_billing_mpa_account_scope":{"schema":{"billing_account_name":{"type":"TypeString","required":true},"customer_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_blueprint_definition":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"last_modified":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"scope_id":{"type":"TypeString","required":true},"target_scope":{"type":"TypeString","computed":true},"time_created":{"type":"TypeString","computed":true},"versions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_blueprint_published_version":{"schema":{"blueprint_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"last_modified":{"type":"TypeString","computed":true},"scope_id":{"type":"TypeString","required":true},"target_scope":{"type":"TypeString","computed":true},"time_created":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"version":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_custom_domain":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","computed":true},"dns_zone_id":{"type":"TypeString","computed":true},"expiration_date":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tls":{"type":"TypeList","computed":true,"elem":{"schema":{"cdn_frontdoor_secret_id":{"type":"TypeString","computed":true},"certificate_type":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true}}}},"validation_token":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_endpoint":{"schema":{"enabled":{"type":"TypeBool","computed":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_firewall_policy":{"schema":{"enabled":{"type":"TypeBool","computed":true},"frontend_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"mode":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"redirect_url":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_origin_group":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","computed":true},"health_probe":{"type":"TypeList","computed":true,"elem":{"schema":{"interval_in_seconds":{"type":"TypeInt","computed":true},"path":{"type":"TypeString","computed":true},"protocol":{"type":"TypeString","computed":true},"request_type":{"type":"TypeString","computed":true}}}},"load_balancing":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_latency_in_milliseconds":{"type":"TypeInt","computed":true},"sample_size":{"type":"TypeInt","computed":true},"successful_samples_required":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"restore_traffic_time_to_healed_or_new_endpoint_in_minutes":{"type":"TypeInt","computed":true},"session_affinity_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_profile":{"schema":{"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"resource_guid":{"type":"TypeString","computed":true},"response_timeout_seconds":{"type":"TypeInt","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_rule_set":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_secret":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"secret":{"type":"TypeList","computed":true,"elem":{"schema":{"customer_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"expiration_date":{"type":"TypeString","computed":true},"key_vault_certificate_id":{"type":"TypeString","computed":true},"subject_alternative_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}}},"timeouts":{"read":5}},"azurerm_cdn_profile":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_client_config":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"subscription_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_cognitive_account":{"schema":{"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"qna_runtime_endpoint":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_communication_service":{"schema":{"data_location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_confidential_ledger":{"schema":{"azuread_based_service_principal":{"type":"TypeList","computed":true,"elem":{"schema":{"ledger_role_name":{"type":"TypeString","computed":true},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}},"certificate_based_security_principal":{"type":"TypeList","computed":true,"elem":{"schema":{"ledger_role_name":{"type":"TypeString","computed":true},"pem_public_key":{"type":"TypeString","computed":true}}}},"identity_service_endpoint":{"type":"TypeString","computed":true},"ledger_endpoint":{"type":"TypeString","computed":true},"ledger_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_consumption_budget_resource_group":{"schema":{"amount":{"type":"TypeFloat","computed":true},"filter":{"type":"TypeList","computed":true,"elem":{"schema":{"dimension":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"not":{"type":"TypeList","computed":true,"elem":{"schema":{"dimension":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"name":{"type":"TypeString","required":true},"notification":{"type":"TypeList","computed":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"contact_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"contact_roles":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","computed":true},"operator":{"type":"TypeString","computed":true},"threshold":{"type":"TypeInt","computed":true},"threshold_type":{"type":"TypeString","computed":true}}}},"resource_group_id":{"type":"TypeString","required":true},"time_grain":{"type":"TypeString","computed":true},"time_period":{"type":"TypeList","computed":true,"elem":{"schema":{"end_date":{"type":"TypeString","computed":true},"start_date":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_consumption_budget_subscription":{"schema":{"amount":{"type":"TypeFloat","computed":true},"filter":{"type":"TypeList","computed":true,"elem":{"schema":{"dimension":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"not":{"type":"TypeList","computed":true,"elem":{"schema":{"dimension":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"name":{"type":"TypeString","required":true},"notification":{"type":"TypeList","computed":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"contact_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"contact_roles":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","computed":true},"operator":{"type":"TypeString","computed":true},"threshold":{"type":"TypeInt","computed":true},"threshold_type":{"type":"TypeString","computed":true}}}},"subscription_id":{"type":"TypeString","required":true},"time_grain":{"type":"TypeString","computed":true},"time_period":{"type":"TypeList","computed":true,"elem":{"schema":{"end_date":{"type":"TypeString","computed":true},"start_date":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_container_app":{"schema":{"container_app_environment_id":{"type":"TypeString","computed":true},"custom_domain_verification_id":{"type":"TypeString","description":"The ID of the Custom Domain Verification for this Container App.","computed":true},"dapr":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The Dapr Application Identifier.","computed":true},"app_port":{"type":"TypeInt","description":"The port which the application is listening on. This is the same as the `ingress` port.","computed":true},"app_protocol":{"type":"TypeString","description":"The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`.","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"ingress":{"type":"TypeList","computed":true,"elem":{"schema":{"allow_insecure_connections":{"type":"TypeBool","description":"Should this ingress allow insecure connections?","computed":true},"custom_domain":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_binding_type":{"type":"TypeString","description":"The Binding type. Possible values include `Disabled` and `SniEnabled`. Defaults to `Disabled`","computed":true},"certificate_id":{"type":"TypeString","description":"The ID of the Certificate.","computed":true},"name":{"type":"TypeString","description":"The hostname of the Certificate. Must be the CN or a named SAN in the certificate.","computed":true}}}},"exposed_port":{"type":"TypeInt","description":"The exposed port on the container for the Ingress traffic.","computed":true},"external_enabled":{"type":"TypeBool","description":"Is this an external Ingress.","computed":true},"fqdn":{"type":"TypeString","description":"The FQDN of the ingress.","computed":true},"ip_security_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action. Allow or Deny.","computed":true},"description":{"type":"TypeString","description":"Describe the IP restriction rule that is being sent to the container-app.","computed":true},"ip_address_range":{"type":"TypeString","description":"CIDR notation to match incoming IP address.","computed":true},"name":{"type":"TypeString","description":"Name for the IP restriction rule.","computed":true}}}},"target_port":{"type":"TypeInt","description":"The target port on the container for the Ingress traffic.","computed":true},"traffic_weight":{"type":"TypeList","computed":true,"elem":{"schema":{"label":{"type":"TypeString","description":"The label to apply to the revision as a name prefix for routing traffic.","computed":true},"latest_revision":{"type":"TypeBool","description":"This traffic Weight relates to the latest stable Container Revision.","computed":true},"percentage":{"type":"TypeInt","description":"The percentage of traffic to send to this revision.","computed":true},"revision_suffix":{"type":"TypeString","description":"The suffix string to append to the revision. This must be unique for the Container App's lifetime. A default hash created by the service will be used if this value is omitted.","computed":true}}}},"transport":{"type":"TypeString","description":"The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`, `tcp`. Defaults to `auto`","computed":true}}}},"latest_revision_fqdn":{"type":"TypeString","description":"The fully qualified domain name of the latest Container App.","computed":true},"latest_revision_name":{"type":"TypeString","description":"The name of the latest Container Revision.","computed":true},"location":{"type":"TypeString","computed":true},"max_inactive_revisions":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"registry":{"type":"TypeList","computed":true,"elem":{"schema":{"identity":{"type":"TypeString","description":"ID of the System or User Managed Identity used to pull images from the Container Registry","computed":true},"password_secret_name":{"type":"TypeString","description":"The name of the Secret Reference containing the password value for this user on the Container Registry.","computed":true},"server":{"type":"TypeString","description":"The hostname for the Container Registry.","computed":true},"username":{"type":"TypeString","description":"The username to use for this Container Registry.","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"revision_mode":{"type":"TypeString","computed":true},"secret":{"type":"TypeSet","computed":true,"elem":{"schema":{"identity":{"type":"TypeString","description":"The identity to use for accessing key vault reference.","computed":true},"key_vault_secret_id":{"type":"TypeString","description":"The id of the key vault secret.","computed":true},"name":{"type":"TypeString","description":"The secret name.","computed":true},"value":{"type":"TypeString","description":"The value for this secret.","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"template":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_queue_scale_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_name":{"type":"TypeString","computed":true},"trigger_parameter":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"queue_length":{"type":"TypeInt","computed":true},"queue_name":{"type":"TypeString","computed":true}}}},"container":{"type":"TypeList","computed":true,"elem":{"schema":{"args":{"type":"TypeList","description":"A list of args to pass to the container.","computed":true,"elem":{"type":"TypeString"}},"command":{"type":"TypeList","description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","computed":true,"elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`","computed":true},"env":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of the environment variable for the container.","computed":true},"secret_name":{"type":"TypeString","description":"The name of the secret that contains the value for this environment variable.","computed":true},"value":{"type":"TypeString","description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used","computed":true}}}},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","description":"The image to use to create the container.","computed":true},"liveness_probe":{"type":"TypeList","computed":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.","computed":true},"header":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The HTTP Header Name.","computed":true},"value":{"type":"TypeString","description":"The HTTP Header value.","computed":true}}}},"host":{"type":"TypeString","description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes.","computed":true},"initial_delay":{"type":"TypeInt","description":"The time in seconds to wait after the container has started before the probe is started.","computed":true},"interval_seconds":{"type":"TypeInt","description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`","computed":true},"path":{"type":"TypeString","description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","description":"The port number on which to connect. Possible values are between `1` and `65535`.","computed":true},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`.","computed":true},"transport":{"type":"TypeString","description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`.","computed":true}}}},"memory":{"type":"TypeString","description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`","computed":true},"name":{"type":"TypeString","description":"The name of the container.","computed":true},"readiness_probe":{"type":"TypeList","computed":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.","computed":true},"header":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The HTTP Header Name.","computed":true},"value":{"type":"TypeString","description":"The HTTP Header value.","computed":true}}}},"host":{"type":"TypeString","description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes.","computed":true},"interval_seconds":{"type":"TypeInt","description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`","computed":true},"path":{"type":"TypeString","description":"The URI to use for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","description":"The port number on which to connect. Possible values are between `1` and `65535`.","computed":true},"success_count_threshold":{"type":"TypeInt","description":"The number of consecutive successful responses required to consider this probe as successful. Possible values are between `1` and `10`. Defaults to `3`.","computed":true},"timeout":{"type":"TypeInt","description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`.","computed":true},"transport":{"type":"TypeString","description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`.","computed":true}}}},"startup_probe":{"type":"TypeList","computed":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.","computed":true},"header":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The HTTP Header Name.","computed":true},"value":{"type":"TypeString","description":"The HTTP Header value.","computed":true}}}},"host":{"type":"TypeString","computed":true},"interval_seconds":{"type":"TypeInt","description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`","computed":true},"path":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","computed":true},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`.","computed":true},"transport":{"type":"TypeString","computed":true}}}},"volume_mounts":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of the Volume to be mounted in the container.","computed":true},"path":{"type":"TypeString","description":"The path in the container at which to mount this volume.","computed":true}}}}}}},"custom_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_name":{"type":"TypeString","computed":true},"trigger_parameter":{"type":"TypeString","computed":true}}}},"custom_rule_type":{"type":"TypeString","computed":true},"metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true}}}},"http_scale_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_name":{"type":"TypeString","computed":true},"trigger_parameter":{"type":"TypeString","computed":true}}}},"concurrent_requests":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"init_container":{"type":"TypeList","computed":true,"elem":{"schema":{"args":{"type":"TypeList","description":"A list of args to pass to the container.","computed":true,"elem":{"type":"TypeString"}},"command":{"type":"TypeList","description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","computed":true,"elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`","computed":true},"env":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of the environment variable for the container.","computed":true},"secret_name":{"type":"TypeString","description":"The name of the secret that contains the value for this environment variable.","computed":true},"value":{"type":"TypeString","description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used","computed":true}}}},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","description":"The image to use to create the container.","computed":true},"memory":{"type":"TypeString","description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`","computed":true},"name":{"type":"TypeString","description":"The name of the container.","computed":true},"volume_mounts":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of the Volume to be mounted in the container.","computed":true},"path":{"type":"TypeString","description":"The path in the container at which to mount this volume.","computed":true}}}}}}},"max_replicas":{"type":"TypeInt","description":"The maximum number of replicas for this container.","computed":true},"min_replicas":{"type":"TypeInt","description":"The minimum number of replicas for this container.","computed":true},"revision_suffix":{"type":"TypeString","computed":true},"tcp_scale_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_name":{"type":"TypeString","computed":true},"trigger_parameter":{"type":"TypeString","computed":true}}}},"concurrent_requests":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"volume":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"storage_name":{"type":"TypeString","computed":true},"storage_type":{"type":"TypeString","computed":true}}}}}}},"workload_profile_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_container_app_environment":{"schema":{"custom_domain_verification_id":{"type":"TypeString","description":"The ID of the Custom Domain Verification for this Container App Environment.","computed":true},"default_domain":{"type":"TypeString","description":"The default publicly resolvable name of this Container App Environment","computed":true},"docker_bridge_cidr":{"type":"TypeString","description":"The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.","computed":true},"infrastructure_subnet_id":{"type":"TypeString","description":"The existing Subnet in use by the Container Apps Control Plane.","computed":true},"internal_load_balancer_enabled":{"type":"TypeBool","description":"Does the Container Environment operate in Internal Load Balancing Mode?","computed":true},"location":{"type":"TypeString","computed":true},"log_analytics_workspace_name":{"type":"TypeString","description":"The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Container Apps Managed Environment."},"platform_reserved_cidr":{"type":"TypeString","description":"The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.","computed":true},"platform_reserved_dns_ip_address":{"type":"TypeString","description":"The IP address from the IP range defined by `platform_reserved_cidr` that is reserved for the internal DNS server.","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"static_ip_address":{"type":"TypeString","description":"The Static IP Address of the Environment.","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_container_app_environment_certificate":{"schema":{"container_app_environment_id":{"type":"TypeString","required":true,"description":"The Container App Managed Environment ID to configure this Certificate on.","forceNew":true},"expiration_date":{"type":"TypeString","description":"The expiration date for the Certificate.","computed":true},"issue_date":{"type":"TypeString","description":"The date of issue for the Certificate.","computed":true},"issuer":{"type":"TypeString","description":"The Certificate Issuer.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Container Apps Certificate.","forceNew":true},"subject_name":{"type":"TypeString","description":"The Subject Name for the Certificate.","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","description":"The Thumbprint of the Certificate.","computed":true}},"timeouts":{"read":5}},"azurerm_container_group":{"schema":{"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"ip_address":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"subnet_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_container_registry":{"schema":{"admin_enabled":{"type":"TypeBool","computed":true},"admin_password":{"type":"TypeString","computed":true},"admin_username":{"type":"TypeString","computed":true},"data_endpoint_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"login_server":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_container_registry_cache_rule":{"schema":{"container_registry_id":{"type":"TypeString","required":true},"credential_set_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"source_repo":{"type":"TypeString","computed":true},"target_repo":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_container_registry_scope_map":{"schema":{"actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"container_registry_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_container_registry_token":{"schema":{"container_registry_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"scope_map_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_cosmosdb_account":{"schema":{"automatic_failover_enabled":{"type":"TypeBool","computed":true},"capabilities":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"consistency_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"consistency_level":{"type":"TypeString","computed":true},"max_interval_in_seconds":{"type":"TypeInt","computed":true},"max_staleness_prefix":{"type":"TypeInt","computed":true}}}},"endpoint":{"type":"TypeString","computed":true},"free_tier_enabled":{"type":"TypeBool","computed":true},"geo_location":{"type":"TypeList","computed":true,"elem":{"schema":{"failover_priority":{"type":"TypeInt","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true}}}},"ip_range_filter":{"type":"TypeString","computed":true},"is_virtual_network_filter_enabled":{"type":"TypeBool","computed":true},"key_vault_key_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"multiple_write_locations_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"offer_type":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"primary_mongodb_connection_string":{"type":"TypeString","computed":true},"primary_readonly_key":{"type":"TypeString","computed":true},"primary_readonly_mongodb_connection_string":{"type":"TypeString","computed":true},"primary_readonly_sql_connection_string":{"type":"TypeString","computed":true},"primary_sql_connection_string":{"type":"TypeString","computed":true},"read_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"secondary_key":{"type":"TypeString","computed":true},"secondary_mongodb_connection_string":{"type":"TypeString","computed":true},"secondary_readonly_key":{"type":"TypeString","computed":true},"secondary_readonly_mongodb_connection_string":{"type":"TypeString","computed":true},"secondary_readonly_sql_connection_string":{"type":"TypeString","computed":true},"secondary_sql_connection_string":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true}}}},"write_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_cosmosdb_mongo_database":{"schema":{"account_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_cosmosdb_restorable_database_accounts":{"schema":{"accounts":{"type":"TypeList","computed":true,"elem":{"schema":{"api_type":{"type":"TypeString","computed":true},"creation_time":{"type":"TypeString","computed":true},"deletion_time":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"restorable_locations":{"type":"TypeList","computed":true,"elem":{"schema":{"creation_time":{"type":"TypeString","computed":true},"deletion_time":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"regional_database_account_instance_id":{"type":"TypeString","computed":true}}}}}}},"location":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_cosmosdb_sql_database":{"schema":{"account_name":{"type":"TypeString","required":true},"autoscale_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_cosmosdb_sql_role_definition":{"schema":{"account_name":{"type":"TypeString","required":true},"assignable_scopes":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"permissions":{"type":"TypeSet","computed":true,"elem":{"schema":{"data_actions":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role_definition_id":{"type":"TypeString","required":true},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_dashboard_grafana":{"schema":{"api_key_enabled":{"type":"TypeBool","computed":true},"auto_generated_domain_name_label_scope":{"type":"TypeString","computed":true},"azure_monitor_workspace_integrations":{"type":"TypeList","computed":true,"elem":{"schema":{"resource_id":{"type":"TypeString","computed":true}}}},"deterministic_outbound_ip_enabled":{"type":"TypeBool","computed":true},"endpoint":{"type":"TypeString","computed":true},"grafana_major_version":{"type":"TypeString","computed":true},"grafana_version":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_redundancy_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_data_factory":{"schema":{"github_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"account_name":{"type":"TypeString","computed":true},"branch_name":{"type":"TypeString","computed":true},"git_url":{"type":"TypeString","computed":true},"repository_name":{"type":"TypeString","computed":true},"root_folder":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vsts_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"account_name":{"type":"TypeString","computed":true},"branch_name":{"type":"TypeString","computed":true},"project_name":{"type":"TypeString","computed":true},"repository_name":{"type":"TypeString","computed":true},"root_folder":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_data_factory_trigger_schedule":{"schema":{"activated":{"type":"TypeBool","computed":true},"annotations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"end_time":{"type":"TypeString","computed":true},"frequency":{"type":"TypeString","computed":true},"interval":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"pipeline_name":{"type":"TypeString","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"days_of_month":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"days_of_week":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"hours":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"minutes":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"monthly":{"type":"TypeList","computed":true,"elem":{"schema":{"week":{"type":"TypeInt","computed":true},"weekday":{"type":"TypeString","computed":true}}}}}}},"start_time":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_data_factory_trigger_schedules":{"schema":{"data_factory_id":{"type":"TypeString","required":true},"items":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_data_protection_backup_vault":{"schema":{"datastore_type":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"redundancy":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_data_share":{"schema":{"account_id":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"snapshot_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"recurrence":{"type":"TypeString","computed":true},"start_time":{"type":"TypeString","computed":true}}}},"terms":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_data_share_account":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_data_share_dataset_blob_storage":{"schema":{"container_name":{"type":"TypeString","computed":true},"data_share_id":{"type":"TypeString","required":true},"display_name":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","computed":true},"folder_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"storage_account":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","computed":true},"subscription_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_data_share_dataset_data_lake_gen2":{"schema":{"display_name":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","computed":true},"file_system_name":{"type":"TypeString","computed":true},"folder_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"share_id":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_data_share_dataset_kusto_cluster":{"schema":{"display_name":{"type":"TypeString","computed":true},"kusto_cluster_id":{"type":"TypeString","computed":true},"kusto_cluster_location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"share_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_data_share_dataset_kusto_database":{"schema":{"display_name":{"type":"TypeString","computed":true},"kusto_cluster_location":{"type":"TypeString","computed":true},"kusto_database_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"share_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_database_migration_project":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","required":true},"source_platform":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_platform":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_database_migration_service":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_databox_edge_device":{"schema":{"device_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"configured_role_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"culture":{"type":"TypeString","computed":true},"hcs_version":{"type":"TypeString","computed":true},"model":{"type":"TypeString","computed":true},"node_count":{"type":"TypeInt","computed":true},"serial_number":{"type":"TypeString","computed":true},"software_version":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_databricks_access_connector":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_databricks_workspace":{"schema":{"location":{"type":"TypeString","computed":true},"managed_disk_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"storage_account_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true},"workspace_url":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_databricks_workspace_private_endpoint_connection":{"schema":{"connections":{"type":"TypeList","computed":true,"elem":{"schema":{"action_required":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"workspace_private_endpoint_id":{"type":"TypeString","computed":true}}}},"private_endpoint_id":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dedicated_host":{"schema":{"dedicated_host_group_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_dedicated_host_group":{"schema":{"automatic_placement_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"platform_fault_domain_count":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_dev_test_lab":{"schema":{"artifacts_storage_account_id":{"type":"TypeString","computed":true},"default_premium_storage_account_id":{"type":"TypeString","computed":true},"default_storage_account_id":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"premium_data_disk_storage_account_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"storage_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_dev_test_virtual_network":{"schema":{"allowed_subnets":{"type":"TypeList","computed":true,"elem":{"schema":{"allow_public_ip":{"type":"TypeString","computed":true},"lab_subnet_name":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true}}}},"lab_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"subnet_overrides":{"type":"TypeList","computed":true,"elem":{"schema":{"lab_subnet_name":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"use_in_vm_creation_permission":{"type":"TypeString","computed":true},"use_public_ip_address_permission":{"type":"TypeString","computed":true},"virtual_network_pool_name":{"type":"TypeString","computed":true}}}},"unique_identifier":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_digital_twins_instance":{"schema":{"host_name":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_disk_access":{"schema":{"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_disk_encryption_set":{"schema":{"auto_key_rotation_enabled":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"key_vault_key_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_dns_a_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_aaaa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_caa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"flags":{"type":"TypeInt","computed":true},"tag":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_cname_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_mx_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"exchange":{"type":"TypeString","computed":true},"preference":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_ns_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_ptr_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_soa_record":{"schema":{"email":{"type":"TypeString","computed":true},"expire_time":{"type":"TypeInt","computed":true},"fqdn":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"minimum_ttl":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","optional":true,"default":"@"},"refresh_time":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"retry_time":{"type":"TypeInt","computed":true},"serial_number":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_srv_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"port":{"type":"TypeInt","computed":true},"priority":{"type":"TypeInt","computed":true},"target":{"type":"TypeString","computed":true},"weight":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_txt_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"value":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_zone":{"schema":{"max_number_of_record_sets":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"name_servers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"number_of_record_sets":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_elastic_cloud_elasticsearch":{"schema":{"elastic_cloud_deployment_id":{"type":"TypeString","computed":true},"elastic_cloud_email_address":{"type":"TypeString","computed":true},"elastic_cloud_sso_default_url":{"type":"TypeString","computed":true},"elastic_cloud_user_id":{"type":"TypeString","computed":true},"elasticsearch_service_url":{"type":"TypeString","computed":true},"kibana_service_url":{"type":"TypeString","computed":true},"kibana_sso_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"filtering_tag":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"send_activity_logs":{"type":"TypeBool","computed":true},"send_azuread_logs":{"type":"TypeBool","computed":true},"send_subscription_logs":{"type":"TypeBool","computed":true}}}},"monitoring_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_elastic_san":{"schema":{"base_size_in_tib":{"type":"TypeInt","computed":true},"extended_size_in_tib":{"type":"TypeInt","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"total_iops":{"type":"TypeInt","computed":true},"total_mbps":{"type":"TypeInt","computed":true},"total_size_in_tib":{"type":"TypeInt","computed":true},"total_volume_size_in_gib":{"type":"TypeInt","computed":true},"volume_group_count":{"type":"TypeInt","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_elastic_san_volume_group":{"schema":{"elastic_san_id":{"type":"TypeString","required":true},"encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"current_versioned_key_expiration_timestamp":{"type":"TypeString","computed":true},"current_versioned_key_id":{"type":"TypeString","computed":true},"key_vault_key_id":{"type":"TypeString","computed":true},"last_key_rotation_timestamp":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"encryption_type":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"network_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"protocol_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_elastic_san_volume_snapshot":{"schema":{"name":{"type":"TypeString","required":true},"source_id":{"type":"TypeString","computed":true},"source_volume_size_in_gib":{"type":"TypeInt","computed":true},"volume_group_id":{"type":"TypeString","required":true,"forceNew":true},"volume_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_eventgrid_domain":{"schema":{"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"inbound_ip_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"ip_mask":{"type":"TypeString","computed":true}}}},"input_mapping_default_values":{"type":"TypeList","computed":true,"elem":{"schema":{"data_version":{"type":"TypeString","computed":true},"event_type":{"type":"TypeString","computed":true},"subject":{"type":"TypeString","computed":true}}}},"input_mapping_fields":{"type":"TypeList","computed":true,"elem":{"schema":{"data_version":{"type":"TypeString","computed":true},"event_time":{"type":"TypeString","computed":true},"event_type":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"subject":{"type":"TypeString","computed":true},"topic":{"type":"TypeString","computed":true}}}},"input_schema":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_eventgrid_domain_topic":{"schema":{"domain_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_eventgrid_system_topic":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"metric_arm_resource_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"source_arm_resource_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"topic_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_eventgrid_topic":{"schema":{"endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_eventhub":{"schema":{"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"partition_count":{"type":"TypeInt","computed":true},"partition_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_eventhub_authorization_rule":{"schema":{"eventhub_name":{"type":"TypeString","required":true},"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"read":5}},"azurerm_eventhub_cluster":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_eventhub_consumer_group":{"schema":{"eventhub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"user_metadata":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_eventhub_namespace":{"schema":{"auto_inflate_enabled":{"type":"TypeBool","computed":true},"capacity":{"type":"TypeInt","computed":true},"dedicated_cluster_id":{"type":"TypeString","computed":true},"default_primary_connection_string":{"type":"TypeString","computed":true},"default_primary_connection_string_alias":{"type":"TypeString","computed":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_connection_string":{"type":"TypeString","computed":true},"default_secondary_connection_string_alias":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"kafka_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"maximum_throughput_units":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_eventhub_namespace_authorization_rule":{"schema":{"listen":{"type":"TypeBool","computed":true},"manage":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_eventhub_sas":{"schema":{"connection_string":{"type":"TypeString","required":true},"expiry":{"type":"TypeString","required":true},"sas":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_express_route_circuit":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"peerings":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_asn":{"type":"TypeInt","computed":true},"peer_asn":{"type":"TypeInt","computed":true},"peering_type":{"type":"TypeString","computed":true},"primary_peer_address_prefix":{"type":"TypeString","computed":true},"secondary_peer_address_prefix":{"type":"TypeString","computed":true},"shared_key":{"type":"TypeString","computed":true},"vlan_id":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"service_key":{"type":"TypeString","computed":true},"service_provider_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"bandwidth_in_mbps":{"type":"TypeInt","computed":true},"peering_location":{"type":"TypeString","computed":true},"service_provider_name":{"type":"TypeString","computed":true}}}},"service_provider_provisioning_state":{"type":"TypeString","computed":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"family":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_express_route_circuit_peering":{"schema":{"azure_asn":{"type":"TypeInt","computed":true},"express_route_circuit_name":{"type":"TypeString","required":true},"gateway_manager_etag":{"type":"TypeString","computed":true},"ipv4_enabled":{"type":"TypeBool","computed":true},"peer_asn":{"type":"TypeInt","computed":true},"peering_type":{"type":"TypeString","required":true},"primary_azure_port":{"type":"TypeString","computed":true},"primary_peer_address_prefix":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"route_filter_id":{"type":"TypeString","computed":true},"secondary_azure_port":{"type":"TypeString","computed":true},"secondary_peer_address_prefix":{"type":"TypeString","computed":true},"shared_key":{"type":"TypeString","computed":true},"vlan_id":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_extended_locations":{"schema":{"extended_locations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_firewall":{"schema":{"dns_proxy_enabled":{"type":"TypeBool","optional":true,"computed":true},"dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"firewall_policy_id":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"management_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"sku_tier":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"threat_intel_mode":{"type":"TypeString","computed":true},"virtual_hub":{"type":"TypeList","computed":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_count":{"type":"TypeInt","computed":true},"virtual_hub_id":{"type":"TypeString","computed":true}}}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_firewall_policy":{"schema":{"base_policy_id":{"type":"TypeString","computed":true},"child_policies":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns":{"type":"TypeList","computed":true,"elem":{"schema":{"network_rule_fqdn_enabled":{"type":"TypeBool","computed":true},"proxy_enabled":{"type":"TypeBool","computed":true},"servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"firewalls":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"rule_collection_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"threat_intelligence_allowlist":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"threat_intelligence_mode":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_function_app":{"schema":{"app_service_plan_id":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"client_cert_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","computed":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"app_scale_limit":{"type":"TypeInt","computed":true},"auto_swap_slot_name":{"type":"TypeString","computed":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","computed":true},"elastic_instance_minimum":{"type":"TypeInt","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"service_tag":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}}}},"java_version":{"type":"TypeString","computed":true},"linux_fx_version":{"type":"TypeString","computed":true},"min_tls_version":{"type":"TypeString","computed":true},"pre_warmed_instance_count":{"type":"TypeInt","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","computed":true},"scm_ip_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"service_tag":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}}}},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker_process":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"source_control":{"type":"TypeList","computed":true,"elem":{"schema":{"branch":{"type":"TypeString","computed":true},"manual_integration":{"type":"TypeBool","computed":true},"repo_url":{"type":"TypeString","computed":true},"rollback_enabled":{"type":"TypeBool","computed":true},"use_mercurial":{"type":"TypeBool","computed":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_function_app_host_keys":{"schema":{"blobs_extension_key":{"type":"TypeString","computed":true},"default_function_key":{"type":"TypeString","computed":true},"durabletask_extension_key":{"type":"TypeString","computed":true},"event_grid_extension_config_key":{"type":"TypeString","computed":true},"event_grid_extension_key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"signalr_extension_key":{"type":"TypeString","computed":true},"webpubsub_extension_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_hdinsight_cluster":{"schema":{"cluster_id":{"type":"TypeString","computed":true},"cluster_version":{"type":"TypeString","computed":true},"component_versions":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"edge_ssh_endpoint":{"type":"TypeString","computed":true},"gateway":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"https_endpoint":{"type":"TypeString","computed":true},"kafka_rest_proxy_endpoint":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"ssh_endpoint":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","computed":true},"tls_min_version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_healthcare_dicom_service":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"authority":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_endpoint":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"service_url":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_healthcare_fhir_service":{"schema":{"access_policy_object_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeString","computed":true},"authority":{"type":"TypeString","computed":true},"smart_proxy_enabled":{"type":"TypeBool","computed":true}}}},"configuration_export_storage_account_name":{"type":"TypeString","computed":true},"container_registry_login_server_url":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_methods":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_origins":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"credentials_allowed":{"type":"TypeBool","computed":true},"max_age_in_seconds":{"type":"TypeInt","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_healthcare_medtech_service":{"schema":{"device_mapping_json":{"type":"TypeString","computed":true},"eventhub_consumer_group_name":{"type":"TypeString","computed":true},"eventhub_name":{"type":"TypeString","computed":true},"eventhub_namespace_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_healthcare_service":{"schema":{"access_policy_object_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"authentication_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeString","computed":true},"authority":{"type":"TypeString","computed":true},"smart_proxy_enabled":{"type":"TypeBool","computed":true}}}},"cors_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"allow_credentials":{"type":"TypeBool","computed":true},"allowed_headers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"allowed_methods":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_origins":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"max_age_in_seconds":{"type":"TypeInt","computed":true}}}},"cosmosdb_key_vault_key_versionless_id":{"type":"TypeString","computed":true},"cosmosdb_throughput":{"type":"TypeInt","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_healthcare_workspace":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_image":{"schema":{"data_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","computed":true},"caching":{"type":"TypeString","computed":true},"lun":{"type":"TypeInt","computed":true},"managed_disk_id":{"type":"TypeString","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true},"name_regex":{"type":"TypeString","optional":true},"os_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","computed":true},"caching":{"type":"TypeString","computed":true},"managed_disk_id":{"type":"TypeString","computed":true},"os_state":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"sort_descending":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_resilient":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_images":{"schema":{"images":{"type":"TypeList","computed":true,"elem":{"schema":{"data_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","computed":true},"caching":{"type":"TypeString","computed":true},"lun":{"type":"TypeInt","computed":true},"managed_disk_id":{"type":"TypeString","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"os_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","computed":true},"caching":{"type":"TypeString","computed":true},"disk_encryption_set_id":{"type":"TypeString","computed":true},"managed_disk_id":{"type":"TypeString","computed":true},"os_state":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_resilient":{"type":"TypeBool","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags_filter":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_iothub":{"schema":{"hostname":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_iothub_dps":{"schema":{"allocation_policy":{"type":"TypeString","computed":true},"device_provisioning_host_name":{"type":"TypeString","computed":true},"id_scope":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"service_operations_host_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_iothub_dps_shared_access_policy":{"schema":{"iothub_dps_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_iothub_shared_access_policy":{"schema":{"iothub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_ip_group":{"schema":{"cidrs":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_ip_groups":{"schema":{"ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":10}},"azurerm_key_vault":{"schema":{"access_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"application_id":{"type":"TypeString","computed":true},"certificate_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"object_id":{"type":"TypeString","computed":true},"secret_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"storage_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}}}},"enable_rbac_authorization":{"type":"TypeBool","computed":true},"enabled_for_deployment":{"type":"TypeBool","computed":true},"enabled_for_disk_encryption":{"type":"TypeBool","computed":true},"enabled_for_template_deployment":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_acls":{"type":"TypeList","computed":true,"elem":{"schema":{"bypass":{"type":"TypeString","computed":true},"default_action":{"type":"TypeString","computed":true},"ip_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"public_network_access_enabled":{"type":"TypeBool","computed":true},"purge_protection_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true},"vault_uri":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_access_policy":{"schema":{"certificate_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"secret_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_key_vault_certificate":{"schema":{"certificate_data":{"type":"TypeString","computed":true},"certificate_data_base64":{"type":"TypeString","computed":true},"certificate_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"issuer_parameters":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"key_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"curve":{"type":"TypeString","computed":true},"exportable":{"type":"TypeBool","computed":true},"key_size":{"type":"TypeInt","computed":true},"key_type":{"type":"TypeString","computed":true},"reuse_key":{"type":"TypeBool","computed":true}}}},"lifetime_action":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeList","computed":true,"elem":{"schema":{"action_type":{"type":"TypeString","computed":true}}}},"trigger":{"type":"TypeList","computed":true,"elem":{"schema":{"days_before_expiry":{"type":"TypeInt","computed":true},"lifetime_percentage":{"type":"TypeInt","computed":true}}}}}}},"secret_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"content_type":{"type":"TypeString","computed":true}}}},"x509_certificate_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"extended_key_usage":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_usage":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"subject":{"type":"TypeString","computed":true},"subject_alternative_names":{"type":"TypeList","computed":true,"elem":{"schema":{"dns_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"emails":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"upns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"validity_in_months":{"type":"TypeInt","computed":true}}}}}}},"expires":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"not_before":{"type":"TypeString","computed":true},"resource_manager_id":{"type":"TypeString","computed":true},"resource_manager_versionless_id":{"type":"TypeString","computed":true},"secret_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true},"version":{"type":"TypeString","optional":true,"computed":true},"versionless_id":{"type":"TypeString","computed":true},"versionless_secret_id":{"type":"TypeString","computed":true}},"timeouts":{"read":30}},"azurerm_key_vault_certificate_data":{"schema":{"certificates_count":{"type":"TypeInt","computed":true},"expires":{"type":"TypeString","computed":true},"hex":{"type":"TypeString","computed":true},"key":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"not_before":{"type":"TypeString","computed":true},"pem":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_certificate_issuer":{"schema":{"account_id":{"type":"TypeString","computed":true},"admin":{"type":"TypeList","computed":true,"elem":{"schema":{"email_address":{"type":"TypeString","computed":true},"first_name":{"type":"TypeString","computed":true},"last_name":{"type":"TypeString","computed":true},"phone":{"type":"TypeString","computed":true}}}},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"org_id":{"type":"TypeString","computed":true},"provider_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_certificates":{"schema":{"certificates":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}}}},"include_pending":{"type":"TypeBool","optional":true,"default":true},"key_vault_id":{"type":"TypeString","required":true},"names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_key_vault_encrypted_value":{"schema":{"algorithm":{"type":"TypeString","required":true},"decoded_plain_text_value":{"type":"TypeString","computed":true},"encrypted_data":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true},"plain_text_value":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_key_vault_key":{"schema":{"curve":{"type":"TypeString","computed":true},"e":{"type":"TypeString","computed":true},"key_opts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_size":{"type":"TypeInt","computed":true},"key_type":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","required":true},"n":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_key_openssh":{"type":"TypeString","computed":true},"public_key_pem":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"resource_versionless_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true},"versionless_id":{"type":"TypeString","computed":true},"x":{"type":"TypeString","computed":true},"y":{"type":"TypeString","computed":true}},"timeouts":{"read":30}},"azurerm_key_vault_managed_hardware_security_module":{"schema":{"admin_object_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"hsm_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"purge_protection_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"soft_delete_retention_days":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_managed_hardware_security_module_role_definition":{"schema":{"assignable_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","computed":true},"managed_hsm_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"permission":{"type":"TypeList","computed":true,"elem":{"schema":{"actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"data_actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"not_actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"not_data_actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"resource_manager_id":{"type":"TypeString","computed":true},"role_name":{"type":"TypeString","computed":true},"role_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_secret":{"schema":{"content_type":{"type":"TypeString","computed":true},"expiration_date":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"not_before_date":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"resource_versionless_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","computed":true},"version":{"type":"TypeString","optional":true},"versionless_id":{"type":"TypeString","computed":true}},"timeouts":{"read":30}},"azurerm_key_vault_secrets":{"schema":{"key_vault_id":{"type":"TypeString","required":true},"names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"secrets":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}}}}},"timeouts":{"read":5}},"azurerm_kubernetes_cluster":{"schema":{"aci_connector_linux":{"type":"TypeList","computed":true,"elem":{"schema":{"subnet_name":{"type":"TypeString","computed":true}}}},"agent_pool_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_scaling_enabled":{"type":"TypeBool","computed":true},"count":{"type":"TypeInt","computed":true},"max_count":{"type":"TypeInt","computed":true},"max_pods":{"type":"TypeInt","computed":true},"min_count":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","computed":true},"node_labels":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"node_public_ip_enabled":{"type":"TypeBool","computed":true},"node_public_ip_prefix_id":{"type":"TypeString","computed":true},"node_taints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"orchestrator_version":{"type":"TypeString","computed":true},"os_disk_size_gb":{"type":"TypeInt","computed":true},"os_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"upgrade_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"drain_timeout_in_minutes":{"type":"TypeInt","computed":true},"max_surge":{"type":"TypeString","computed":true},"node_soak_duration_in_minutes":{"type":"TypeInt","computed":true}}}},"vm_size":{"type":"TypeString","computed":true},"vnet_subnet_id":{"type":"TypeString","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"api_server_authorized_ip_ranges":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"azure_active_directory_role_based_access_control":{"type":"TypeList","computed":true,"elem":{"schema":{"admin_group_object_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"azure_rbac_enabled":{"type":"TypeBool","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}},"azure_policy_enabled":{"type":"TypeBool","computed":true},"current_kubernetes_version":{"type":"TypeString","computed":true},"disk_encryption_set_id":{"type":"TypeString","computed":true},"dns_prefix":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"http_application_routing_enabled":{"type":"TypeBool","computed":true},"http_application_routing_zone_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"ingress_application_gateway":{"type":"TypeList","computed":true,"elem":{"schema":{"effective_gateway_id":{"type":"TypeString","computed":true},"gateway_id":{"type":"TypeString","computed":true},"gateway_name":{"type":"TypeString","computed":true},"ingress_application_gateway_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"subnet_cidr":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"key_management_service":{"type":"TypeList","computed":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","computed":true},"key_vault_network_access":{"type":"TypeString","computed":true}}}},"key_vault_secrets_provider":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"secret_rotation_enabled":{"type":"TypeBool","computed":true},"secret_rotation_interval":{"type":"TypeString","computed":true}}}},"kube_admin_config":{"type":"TypeList","computed":true,"elem":{"schema":{"client_certificate":{"type":"TypeString","computed":true},"client_key":{"type":"TypeString","computed":true},"cluster_ca_certificate":{"type":"TypeString","computed":true},"host":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"kube_admin_config_raw":{"type":"TypeString","computed":true},"kube_config":{"type":"TypeList","computed":true,"elem":{"schema":{"client_certificate":{"type":"TypeString","computed":true},"client_key":{"type":"TypeString","computed":true},"cluster_ca_certificate":{"type":"TypeString","computed":true},"host":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"kube_config_raw":{"type":"TypeString","computed":true},"kubelet_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"kubernetes_version":{"type":"TypeString","computed":true},"linux_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"admin_username":{"type":"TypeString","computed":true},"ssh_key":{"type":"TypeList","computed":true,"elem":{"schema":{"key_data":{"type":"TypeString","computed":true}}}}}}},"location":{"type":"TypeString","computed":true},"microsoft_defender":{"type":"TypeList","computed":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"network_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"dns_service_ip":{"type":"TypeString","computed":true},"docker_bridge_cidr":{"type":"TypeString","computed":true},"load_balancer_sku":{"type":"TypeString","computed":true},"network_plugin":{"type":"TypeString","computed":true},"network_policy":{"type":"TypeString","computed":true},"pod_cidr":{"type":"TypeString","computed":true},"service_cidr":{"type":"TypeString","computed":true}}}},"node_resource_group":{"type":"TypeString","computed":true},"node_resource_group_id":{"type":"TypeString","computed":true},"oidc_issuer_enabled":{"type":"TypeBool","computed":true},"oidc_issuer_url":{"type":"TypeString","computed":true},"oms_agent":{"type":"TypeList","computed":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","computed":true},"msi_auth_for_monitoring_enabled":{"type":"TypeBool","computed":true},"oms_agent_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}}}}},"open_service_mesh_enabled":{"type":"TypeBool","computed":true},"private_cluster_enabled":{"type":"TypeBool","computed":true},"private_fqdn":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"role_based_access_control_enabled":{"type":"TypeBool","computed":true},"service_mesh_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_authority":{"type":"TypeList","computed":true,"elem":{"schema":{"cert_chain_object_name":{"type":"TypeString","computed":true},"cert_object_name":{"type":"TypeString","computed":true},"key_object_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"root_cert_object_name":{"type":"TypeString","computed":true}}}},"external_ingress_gateway_enabled":{"type":"TypeBool","computed":true},"internal_ingress_gateway_enabled":{"type":"TypeBool","computed":true},"mode":{"type":"TypeString","computed":true},"revisions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"service_principal":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true}}}},"storage_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_driver_enabled":{"type":"TypeBool","computed":true},"disk_driver_enabled":{"type":"TypeBool","computed":true},"file_driver_enabled":{"type":"TypeBool","computed":true},"snapshot_controller_enabled":{"type":"TypeBool","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"windows_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"admin_username":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_kubernetes_cluster_node_pool":{"schema":{"auto_scaling_enabled":{"type":"TypeBool","computed":true},"eviction_policy":{"type":"TypeString","computed":true},"kubernetes_cluster_name":{"type":"TypeString","required":true},"max_count":{"type":"TypeInt","computed":true},"max_pods":{"type":"TypeInt","computed":true},"min_count":{"type":"TypeInt","computed":true},"mode":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"node_count":{"type":"TypeInt","computed":true},"node_labels":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"node_public_ip_enabled":{"type":"TypeBool","computed":true},"node_public_ip_prefix_id":{"type":"TypeString","computed":true},"node_taints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"orchestrator_version":{"type":"TypeString","computed":true},"os_disk_size_gb":{"type":"TypeInt","computed":true},"os_disk_type":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"priority":{"type":"TypeString","computed":true},"proximity_placement_group_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"spot_max_price":{"type":"TypeFloat","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"upgrade_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"drain_timeout_in_minutes":{"type":"TypeInt","computed":true},"max_surge":{"type":"TypeString","computed":true},"node_soak_duration_in_minutes":{"type":"TypeInt","computed":true}}}},"vm_size":{"type":"TypeString","computed":true},"vnet_subnet_id":{"type":"TypeString","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_kubernetes_node_pool_snapshot":{"schema":{"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"source_node_pool_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_kubernetes_service_versions":{"schema":{"default_version":{"type":"TypeString","computed":true},"include_preview":{"type":"TypeBool","optional":true,"default":true},"latest_version":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"version_prefix":{"type":"TypeString","optional":true},"versions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_kusto_cluster":{"schema":{"data_ingestion_uri":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"uri":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_kusto_database":{"schema":{"cluster_name":{"type":"TypeString","required":true},"hot_cache_period":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"size":{"type":"TypeFloat","computed":true},"soft_delete_period":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_lb":{"schema":{"frontend_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"private_ip_address_version":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_lb_backend_address_pool":{"schema":{"backend_address":{"type":"TypeList","computed":true,"elem":{"schema":{"inbound_nat_rule_port_mapping":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","computed":true},"frontend_port":{"type":"TypeInt","computed":true},"inbound_nat_rule_name":{"type":"TypeString","computed":true}}}},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"virtual_network_id":{"type":"TypeString","computed":true}}}},"backend_ip_configurations":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true}}}},"inbound_nat_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancing_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"loadbalancer_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"outbound_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_lb_outbound_rule":{"schema":{"allocated_outbound_ports":{"type":"TypeInt","computed":true},"backend_address_pool_id":{"type":"TypeString","computed":true},"frontend_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"loadbalancer_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","computed":true},"tcp_reset_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_lb_rule":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_port":{"type":"TypeInt","computed":true},"disable_outbound_snat":{"type":"TypeBool","computed":true},"enable_floating_ip":{"type":"TypeBool","computed":true},"enable_tcp_reset":{"type":"TypeBool","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","computed":true},"frontend_port":{"type":"TypeInt","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"load_distribution":{"type":"TypeString","computed":true},"loadbalancer_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"probe_id":{"type":"TypeString","computed":true},"protocol":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_linux_function_app":{"schema":{"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"The list of Allowed audience values considered when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret for the Client ID.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true}}}},"additional_login_parameters":{"type":"TypeMap","description":"The map of Login Parameters sent to the OpenID Connect authorization endpoint when a user logs in.","computed":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","description":"The default authentication provider used when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","description":"Is the Authentication / Authorization feature enabled?","computed":true},"facebook":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret":{"type":"TypeString","description":"The App Secret of the Facebook app used for Facebook Login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"github":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret of the GitHub app used for GitHub Login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret":{"type":"TypeString","description":"The client secret associated with the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes that requested as part of Google Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"issuer":{"type":"TypeString","description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens.","computed":true},"microsoft":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret":{"type":"TypeString","description":"The OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"runtime_version":{"type":"TypeString","description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Are platform-specific security tokens that are obtained during login flows durably stored?","computed":true},"twitter":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret":{"type":"TypeString","description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_client_action":{"type":"TypeString","description":"The action taken when an unauthenticated client attempts to access the app.","computed":true}}}},"auth_settings_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret_certificate_thumbprint":{"type":"TypeString","description":"The thumbprint of the certificate used for signing purposes.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true},"jwt_allowed_client_applications":{"type":"TypeList","description":"A list of Allowed Client Applications in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","description":"A list of Allowed Groups in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","description":"The Azure Tenant URI for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`","computed":true},"www_authentication_disabled":{"type":"TypeBool","description":"Is the www-authenticate provider omitted from the request?","computed":true}}}},"apple_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Apple web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Apple Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Apple Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"auth_enabled":{"type":"TypeBool","description":"Is the AuthV2 Settings be enabled.","computed":true},"azure_static_web_app_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with Azure Static Web App Authentication.","computed":true}}}},"config_file_path":{"type":"TypeString","description":"The path to the App Auth settings.","computed":true},"custom_oidc_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`","computed":true},"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with this Custom OIDC.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","description":"The name of the Custom OIDC Authentication Provider.","computed":true},"name_claim_type":{"type":"TypeString","description":"The name of the claim that contains the users name.","computed":true},"openid_configuration_endpoint":{"type":"TypeString","description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider.","computed":true},"scopes":{"type":"TypeList","description":"The list of the scopes that should be requested while authenticating.","computed":true,"elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","description":"The Default Authentication Provider used when the `unauthenticated_action` is set to `RedirectToLoginPage`.","computed":true},"excluded_paths":{"type":"TypeList","description":"The paths which are excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","computed":true,"elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"graph_api_version":{"type":"TypeString","description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"forward_proxy_convention":{"type":"TypeString","description":"The convention used to determine the url of the request made.","computed":true},"forward_proxy_custom_host_header_name":{"type":"TypeString","description":"The name of the header containing the host of the request.","computed":true},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","description":"The name of the header containing the scheme of the request.","computed":true},"github_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"http_route_api_prefix":{"type":"TypeString","description":"The prefix that precedes all the authentication and authorisation paths.","computed":true},"login":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","computed":true,"elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","computed":true},"cookie_expiration_time":{"type":"TypeString","description":"The time after the request is made when the session cookie will expire.","computed":true},"logout_endpoint":{"type":"TypeString","description":"The endpoint to which logout requests are made.","computed":true},"nonce_expiration_time":{"type":"TypeString","description":"The time after the request is made when the nonce will expire.","computed":true},"preserve_url_fragments_for_logins":{"type":"TypeBool","description":"Are the fragments from the request be preserved after the login request is made.","computed":true},"token_refresh_extension_time":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Is the Token Store configuration Enabled.","computed":true},"token_store_path":{"type":"TypeString","description":"The directory path in the App Filesystem in which the tokens are stored.","computed":true},"token_store_sas_setting_name":{"type":"TypeString","description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens.","computed":true},"validate_nonce":{"type":"TypeBool","description":"Is the nonce be validated while completing the login flow.","computed":true}}}},"microsoft_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"require_authentication":{"type":"TypeBool","description":"Is the authentication flow used for all requests.","computed":true},"require_https":{"type":"TypeBool","description":"Is HTTPS required on connections?","computed":true},"runtime_version":{"type":"TypeString","description":"The Runtime Version of the Authentication and Authorisation feature of this App.","computed":true},"twitter_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_action":{"type":"TypeString","computed":true}}}},"availability":{"type":"TypeString","computed":true},"backup":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","description":"Is this backup job enabled?","computed":true},"name":{"type":"TypeString","description":"The name of this Backup.","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","description":"How often the backup should is executed in multiples of the `frequency_unit`.","computed":true},"frequency_unit":{"type":"TypeString","description":"The unit of time for how often the backup takes place.","computed":true},"keep_at_least_one_backup":{"type":"TypeBool","description":"Does the service keep at least one backup, regardless of age of backup.","computed":true},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","description":"After how many days are backups deleted.","computed":true},"start_time":{"type":"TypeString","description":"When the schedule should start working in RFC-3339 format.","computed":true}}}},"storage_account_url":{"type":"TypeString","description":"The SAS URL to the container.","computed":true}}}},"builtin_logging_enabled":{"type":"TypeBool","computed":true},"client_certificate_enabled":{"type":"TypeBool","computed":true},"client_certificate_exclusion_paths":{"type":"TypeString","description":"Paths to exclude when using client certificates, separated by ;","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of this Connection.","computed":true},"type":{"type":"TypeString","description":"The type of database.","computed":true},"value":{"type":"TypeString","description":"The connection string value.","computed":true}}}},"content_share_force_disabled":{"type":"TypeBool","computed":true},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true},"functions_extension_version":{"type":"TypeString","computed":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_plan_id":{"type":"TypeString","computed":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"api_definition_url":{"type":"TypeString","computed":true},"api_management_api_id":{"type":"TypeString","computed":true},"app_command_line":{"type":"TypeString","computed":true},"app_scale_limit":{"type":"TypeInt","computed":true},"app_service_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","computed":true},"retention_period_days":{"type":"TypeInt","computed":true}}}},"application_insights_connection_string":{"type":"TypeString","computed":true},"application_insights_key":{"type":"TypeString","computed":true},"application_stack":{"type":"TypeList","computed":true,"elem":{"schema":{"docker":{"type":"TypeList","computed":true,"elem":{"schema":{"image_name":{"type":"TypeString","computed":true},"image_tag":{"type":"TypeString","computed":true},"registry_password":{"type":"TypeString","computed":true},"registry_url":{"type":"TypeString","computed":true},"registry_username":{"type":"TypeString","computed":true}}}},"dotnet_version":{"type":"TypeString","computed":true},"java_version":{"type":"TypeString","computed":true},"node_version":{"type":"TypeString","computed":true},"powershell_core_version":{"type":"TypeString","computed":true},"python_version":{"type":"TypeString","computed":true},"use_custom_runtime":{"type":"TypeBool","computed":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","computed":true}}}},"container_registry_managed_identity_client_id":{"type":"TypeString","computed":true},"container_registry_use_managed_identity":{"type":"TypeBool","computed":true},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","description":"The list of origins that are allowed to make cross-origin calls.","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","description":"Are credentials allowed in CORS requests?","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"elastic_instance_minimum":{"type":"TypeInt","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_eviction_time_in_min":{"type":"TypeInt","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"ip_restriction_default_action":{"type":"TypeString","computed":true},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"pre_warmed_instance_count":{"type":"TypeInt","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","computed":true},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"worker_count":{"type":"TypeInt","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connection_string_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"storage_account_access_key":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","computed":true},"storage_key_vault_secret_id":{"type":"TypeString","description":"The Key Vault Secret ID, including version, that contains the Connection String used to connect to the storage account for this Function App.","computed":true},"storage_uses_managed_identity":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"usage":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":25}},"azurerm_linux_web_app":{"schema":{"app_metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"The list of Allowed audience values considered when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret for the Client ID.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true}}}},"additional_login_parameters":{"type":"TypeMap","description":"The map of Login Parameters sent to the OpenID Connect authorization endpoint when a user logs in.","computed":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","description":"The default authentication provider used when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","description":"Is the Authentication / Authorization feature enabled?","computed":true},"facebook":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret":{"type":"TypeString","description":"The App Secret of the Facebook app used for Facebook Login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"github":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret of the GitHub app used for GitHub Login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret":{"type":"TypeString","description":"The client secret associated with the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes that requested as part of Google Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"issuer":{"type":"TypeString","description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens.","computed":true},"microsoft":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret":{"type":"TypeString","description":"The OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"runtime_version":{"type":"TypeString","description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Are platform-specific security tokens that are obtained during login flows durably stored?","computed":true},"twitter":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret":{"type":"TypeString","description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_client_action":{"type":"TypeString","description":"The action taken when an unauthenticated client attempts to access the app.","computed":true}}}},"auth_settings_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret_certificate_thumbprint":{"type":"TypeString","description":"The thumbprint of the certificate used for signing purposes.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true},"jwt_allowed_client_applications":{"type":"TypeList","description":"A list of Allowed Client Applications in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","description":"A list of Allowed Groups in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","description":"The Azure Tenant URI for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`","computed":true},"www_authentication_disabled":{"type":"TypeBool","description":"Is the www-authenticate provider omitted from the request?","computed":true}}}},"apple_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Apple web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Apple Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Apple Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"auth_enabled":{"type":"TypeBool","description":"Is the AuthV2 Settings be enabled.","computed":true},"azure_static_web_app_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with Azure Static Web App Authentication.","computed":true}}}},"config_file_path":{"type":"TypeString","description":"The path to the App Auth settings.","computed":true},"custom_oidc_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`","computed":true},"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with this Custom OIDC.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","description":"The name of the Custom OIDC Authentication Provider.","computed":true},"name_claim_type":{"type":"TypeString","description":"The name of the claim that contains the users name.","computed":true},"openid_configuration_endpoint":{"type":"TypeString","description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider.","computed":true},"scopes":{"type":"TypeList","description":"The list of the scopes that should be requested while authenticating.","computed":true,"elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","description":"The Default Authentication Provider used when the `unauthenticated_action` is set to `RedirectToLoginPage`.","computed":true},"excluded_paths":{"type":"TypeList","description":"The paths which are excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","computed":true,"elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"graph_api_version":{"type":"TypeString","description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"forward_proxy_convention":{"type":"TypeString","description":"The convention used to determine the url of the request made.","computed":true},"forward_proxy_custom_host_header_name":{"type":"TypeString","description":"The name of the header containing the host of the request.","computed":true},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","description":"The name of the header containing the scheme of the request.","computed":true},"github_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"http_route_api_prefix":{"type":"TypeString","description":"The prefix that precedes all the authentication and authorisation paths.","computed":true},"login":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","computed":true,"elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","computed":true},"cookie_expiration_time":{"type":"TypeString","description":"The time after the request is made when the session cookie will expire.","computed":true},"logout_endpoint":{"type":"TypeString","description":"The endpoint to which logout requests are made.","computed":true},"nonce_expiration_time":{"type":"TypeString","description":"The time after the request is made when the nonce will expire.","computed":true},"preserve_url_fragments_for_logins":{"type":"TypeBool","description":"Are the fragments from the request be preserved after the login request is made.","computed":true},"token_refresh_extension_time":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Is the Token Store configuration Enabled.","computed":true},"token_store_path":{"type":"TypeString","description":"The directory path in the App Filesystem in which the tokens are stored.","computed":true},"token_store_sas_setting_name":{"type":"TypeString","description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens.","computed":true},"validate_nonce":{"type":"TypeBool","description":"Is the nonce be validated while completing the login flow.","computed":true}}}},"microsoft_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"require_authentication":{"type":"TypeBool","description":"Is the authentication flow used for all requests.","computed":true},"require_https":{"type":"TypeBool","description":"Is HTTPS required on connections?","computed":true},"runtime_version":{"type":"TypeString","description":"The Runtime Version of the Authentication and Authorisation feature of this App.","computed":true},"twitter_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_action":{"type":"TypeString","computed":true}}}},"availability":{"type":"TypeString","computed":true},"backup":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","description":"Is this backup job enabled?","computed":true},"name":{"type":"TypeString","description":"The name of this Backup.","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","description":"How often the backup should is executed in multiples of the `frequency_unit`.","computed":true},"frequency_unit":{"type":"TypeString","description":"The unit of time for how often the backup takes place.","computed":true},"keep_at_least_one_backup":{"type":"TypeBool","description":"Does the service keep at least one backup, regardless of age of backup.","computed":true},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","description":"After how many days are backups deleted.","computed":true},"start_time":{"type":"TypeString","description":"When the schedule should start working in RFC-3339 format.","computed":true}}}},"storage_account_url":{"type":"TypeString","description":"The SAS URL to the container.","computed":true}}}},"client_affinity_enabled":{"type":"TypeBool","computed":true},"client_certificate_enabled":{"type":"TypeBool","computed":true},"client_certificate_exclusion_paths":{"type":"TypeString","description":"Paths to exclude when using client certificates, separated by ;","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of this Connection.","computed":true},"type":{"type":"TypeString","description":"The type of database.","computed":true},"value":{"type":"TypeString","description":"The connection string value.","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"key_vault_reference_identity_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","computed":true,"elem":{"schema":{"application_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","computed":true,"elem":{"schema":{"level":{"type":"TypeString","computed":true},"retention_in_days":{"type":"TypeInt","computed":true},"sas_url":{"type":"TypeString","computed":true}}}},"file_system_level":{"type":"TypeString","computed":true}}}},"detailed_error_messages":{"type":"TypeBool","computed":true},"failed_request_tracing":{"type":"TypeBool","computed":true},"http_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","computed":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","computed":true},"sas_url":{"type":"TypeString","computed":true}}}},"file_system":{"type":"TypeList","computed":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","computed":true},"retention_in_mb":{"type":"TypeInt","computed":true}}}}}}}}}},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_plan_id":{"type":"TypeString","computed":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"api_definition_url":{"type":"TypeString","computed":true},"api_management_api_id":{"type":"TypeString","computed":true},"app_command_line":{"type":"TypeString","computed":true},"application_stack":{"type":"TypeList","computed":true,"elem":{"schema":{"docker_image_name":{"type":"TypeString","computed":true},"docker_registry_password":{"type":"TypeString","computed":true},"docker_registry_url":{"type":"TypeString","computed":true},"docker_registry_username":{"type":"TypeString","computed":true},"dotnet_version":{"type":"TypeString","computed":true},"go_version":{"type":"TypeString","computed":true},"java_server":{"type":"TypeString","computed":true},"java_server_version":{"type":"TypeString","computed":true},"java_version":{"type":"TypeString","computed":true},"node_version":{"type":"TypeString","computed":true},"php_version":{"type":"TypeString","computed":true},"python_version":{"type":"TypeString","computed":true},"ruby_version":{"type":"TypeString","computed":true}}}},"auto_heal_setting":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeList","computed":true,"elem":{"schema":{"action_type":{"type":"TypeString","computed":true},"minimum_process_execution_time":{"type":"TypeString","computed":true}}}},"trigger":{"type":"TypeList","computed":true,"elem":{"schema":{"requests":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true}}}},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"time_taken":{"type":"TypeString","computed":true}}}},"slow_request_with_path":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"time_taken":{"type":"TypeString","computed":true}}}},"status_code":{"type":"TypeSet","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"status_code_range":{"type":"TypeString","computed":true},"sub_status":{"type":"TypeInt","computed":true},"win32_status_code":{"type":"TypeInt","computed":true}}}}}}}}}},"container_registry_managed_identity_client_id":{"type":"TypeString","computed":true},"container_registry_use_managed_identity":{"type":"TypeBool","computed":true},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","description":"The list of origins that are allowed to make cross-origin calls.","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","description":"Are credentials allowed in CORS requests?","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_eviction_time_in_min":{"type":"TypeInt","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"ip_restriction_default_action":{"type":"TypeString","computed":true},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","computed":true},"local_mysql_enabled":{"type":"TypeBool","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"scm_ip_restriction_default_action":{"type":"TypeString","computed":true},"scm_minimum_tls_version":{"type":"TypeString","computed":true},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"worker_count":{"type":"TypeInt","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connection_string_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"storage_account":{"type":"TypeList","computed":true,"elem":{"schema":{"access_key":{"type":"TypeString","computed":true},"account_name":{"type":"TypeString","computed":true},"mount_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"share_name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"usage":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_load_test":{"schema":{"data_plane_uri":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"key_url":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_local_network_gateway":{"schema":{"address_space":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"bgp_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","required":true},"bgp_peering_address":{"type":"TypeString","required":true},"peer_weight":{"type":"TypeInt","computed":true}}}},"gateway_address":{"type":"TypeString","computed":true},"gateway_fqdn":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_location":{"schema":{"display_name":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"zone_mappings":{"type":"TypeList","computed":true,"elem":{"schema":{"logical_zone":{"type":"TypeString","computed":true},"physical_zone":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_log_analytics_workspace":{"schema":{"daily_quota_gb":{"type":"TypeFloat","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_shared_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","computed":true},"secondary_shared_key":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_logic_app_integration_account":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_logic_app_standard":{"schema":{"app_service_plan_id":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"bundle_version":{"type":"TypeString","computed":true},"client_affinity_enabled":{"type":"TypeBool","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":false},"app_scale_limit":{"type":"TypeInt","optional":true,"computed":true},"auto_swap_slot_name":{"type":"TypeString","computed":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"computed":true},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"default":false},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_min_tls_version":{"type":"TypeString","optional":true,"computed":true},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"storage_account_access_key":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","computed":true},"storage_account_share_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"use_extension_bundle":{"type":"TypeBool","computed":true},"version":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_logic_app_workflow":{"schema":{"access_endpoint":{"type":"TypeString","computed":true},"connector_endpoint_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connector_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"logic_app_integration_account_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"workflow_endpoint_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"workflow_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"workflow_schema":{"type":"TypeString","computed":true},"workflow_version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_machine_learning_workspace":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_maintenance_configuration":{"schema":{"in_guest_user_patch_mode":{"type":"TypeString","computed":true},"install_patches":{"type":"TypeList","computed":true,"elem":{"schema":{"linux":{"type":"TypeList","computed":true,"elem":{"schema":{"classifications_to_include":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"package_names_mask_to_exclude":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"package_names_mask_to_include":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"reboot":{"type":"TypeString","computed":true},"windows":{"type":"TypeList","computed":true,"elem":{"schema":{"classifications_to_include":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"kb_numbers_to_exclude":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"kb_numbers_to_include":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"properties":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"scope":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"visibility":{"type":"TypeString","computed":true},"window":{"type":"TypeList","computed":true,"elem":{"schema":{"duration":{"type":"TypeString","computed":true},"expiration_date_time":{"type":"TypeString","computed":true},"recur_every":{"type":"TypeString","computed":true},"start_date_time":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_managed_api":{"schema":{"location":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_managed_application_definition":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_managed_disk":{"schema":{"create_option":{"type":"TypeString","computed":true},"disk_access_id":{"type":"TypeString","computed":true},"disk_encryption_set_id":{"type":"TypeString","computed":true},"disk_iops_read_write":{"type":"TypeInt","computed":true},"disk_mbps_read_write":{"type":"TypeInt","computed":true},"disk_size_gb":{"type":"TypeInt","computed":true},"encryption_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_url":{"type":"TypeString","computed":true},"source_vault_id":{"type":"TypeString","computed":true}}}},"enabled":{"type":"TypeBool","computed":true},"key_encryption_key":{"type":"TypeList","computed":true,"elem":{"schema":{"key_url":{"type":"TypeString","computed":true},"source_vault_id":{"type":"TypeString","computed":true}}}}}}},"image_reference_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_access_policy":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"source_resource_id":{"type":"TypeString","computed":true},"source_uri":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true},"storage_account_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_management_group":{"schema":{"all_management_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"all_subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","optional":true,"computed":true},"management_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","optional":true,"computed":true},"parent_management_group_id":{"type":"TypeString","computed":true},"subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tenant_scoped_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_management_group_template_deployment":{"schema":{"management_group_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"output_content":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_maps_account":{"schema":{"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"x_ms_client_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_marketplace_agreement":{"schema":{"license_text_link":{"type":"TypeString","computed":true},"offer":{"type":"TypeString","required":true},"plan":{"type":"TypeString","required":true},"privacy_policy_link":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_mobile_network":{"schema":{"location":{"type":"TypeString","computed":true},"mobile_country_code":{"type":"TypeString","computed":true},"mobile_network_code":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_attached_data_network":{"schema":{"dns_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"mobile_network_data_network_name":{"type":"TypeString","required":true},"mobile_network_packet_core_data_plane_id":{"type":"TypeString","required":true},"network_address_port_translation":{"type":"TypeList","computed":true,"elem":{"schema":{"icmp_pinhole_timeout_in_seconds":{"type":"TypeInt","computed":true},"pinhole_maximum_number":{"type":"TypeInt","optional":true},"port_range":{"type":"TypeList","computed":true,"elem":{"schema":{"maximum":{"type":"TypeInt","computed":true},"minimum":{"type":"TypeInt","computed":true}}}},"tcp_pinhole_timeout_in_seconds":{"type":"TypeInt","computed":true},"tcp_port_reuse_minimum_hold_time_in_seconds":{"type":"TypeInt","computed":true},"udp_pinhole_timeout_in_seconds":{"type":"TypeInt","computed":true},"udp_port_reuse_minimum_hold_time_in_seconds":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"user_equipment_address_pool_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"user_equipment_static_address_pool_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"user_plane_access_ipv4_address":{"type":"TypeString","computed":true},"user_plane_access_ipv4_gateway":{"type":"TypeString","computed":true},"user_plane_access_ipv4_subnet":{"type":"TypeString","computed":true},"user_plane_access_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_mobile_network_data_network":{"schema":{"description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_packet_core_control_plane":{"schema":{"control_plane_access_ipv4_address":{"type":"TypeString","computed":true},"control_plane_access_ipv4_gateway":{"type":"TypeString","computed":true},"control_plane_access_ipv4_subnet":{"type":"TypeString","computed":true},"control_plane_access_name":{"type":"TypeString","computed":true},"core_network_technology":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}}}},"interoperability_settings_json":{"type":"TypeString","computed":true},"local_diagnostics_access":{"type":"TypeList","computed":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","computed":true},"https_server_certificate_url":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"platform":{"type":"TypeList","computed":true,"elem":{"schema":{"arc_kubernetes_cluster_id":{"type":"TypeString","computed":true},"custom_location_id":{"type":"TypeString","computed":true},"edge_device_id":{"type":"TypeString","computed":true},"stack_hci_cluster_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"sku":{"type":"TypeString","computed":true},"software_version":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"user_equipment_mtu_in_bytes":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_mobile_network_packet_core_data_plane":{"schema":{"location":{"type":"TypeString","computed":true},"mobile_network_packet_core_control_plane_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"user_plane_access_ipv4_address":{"type":"TypeString","computed":true},"user_plane_access_ipv4_gateway":{"type":"TypeString","computed":true},"user_plane_access_ipv4_subnet":{"type":"TypeString","computed":true},"user_plane_access_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_mobile_network_service":{"schema":{"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"pcc_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"precedence":{"type":"TypeInt","computed":true},"qos_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"allocation_and_retention_priority_level":{"type":"TypeInt","computed":true},"guaranteed_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}},"maximum_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}},"preemption_capability":{"type":"TypeString","computed":true},"preemption_vulnerability":{"type":"TypeString","computed":true},"qos_indicator":{"type":"TypeInt","computed":true}}}},"service_data_flow_template":{"type":"TypeList","computed":true,"elem":{"schema":{"direction":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"ports":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"protocol":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"remote_ip_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"traffic_control_enabled":{"type":"TypeBool","computed":true}}}},"service_precedence":{"type":"TypeInt","computed":true},"service_qos_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"allocation_and_retention_priority_level":{"type":"TypeInt","computed":true},"maximum_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}},"preemption_capability":{"type":"TypeString","computed":true},"preemption_vulnerability":{"type":"TypeString","computed":true},"qos_indicator":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_sim":{"schema":{"device_type":{"type":"TypeString","computed":true},"integrated_circuit_card_identifier":{"type":"TypeString","computed":true},"international_mobile_subscriber_identity":{"type":"TypeString","computed":true},"mobile_network_sim_group_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"sim_policy_id":{"type":"TypeString","computed":true},"sim_state":{"type":"TypeString","computed":true},"static_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"attached_data_network_id":{"type":"TypeString","computed":true},"slice_id":{"type":"TypeString","computed":true},"static_ipv4_address":{"type":"TypeString","computed":true}}}},"vendor_key_fingerprint":{"type":"TypeString","computed":true},"vendor_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_mobile_network_sim_group":{"schema":{"encryption_key_url":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_sim_policy":{"schema":{"default_slice_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"rat_frequency_selection_priority_index":{"type":"TypeInt","computed":true},"registration_timer_in_seconds":{"type":"TypeInt","computed":true},"slice":{"type":"TypeList","computed":true,"elem":{"schema":{"data_network":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_allowed_session_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allocation_and_retention_priority_level":{"type":"TypeInt","computed":true},"allowed_services_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"data_network_id":{"type":"TypeString","computed":true},"default_session_type":{"type":"TypeString","computed":true},"max_buffered_packets":{"type":"TypeInt","computed":true},"preemption_capability":{"type":"TypeString","computed":true},"preemption_vulnerability":{"type":"TypeString","computed":true},"qos_indicator":{"type":"TypeInt","computed":true},"session_aggregate_maximum_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}}}}},"default_data_network_id":{"type":"TypeString","computed":true},"slice_id":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"user_equipment_aggregate_maximum_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_mobile_network_site":{"schema":{"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"network_function_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_slice":{"schema":{"description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"single_network_slice_selection_assistance_information":{"type":"TypeList","computed":true,"elem":{"schema":{"slice_differentiator":{"type":"TypeString","computed":true},"slice_service_type":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_monitor_action_group":{"schema":{"arm_role_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"role_id":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}},"automation_runbook_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"automation_account_id":{"type":"TypeString","computed":true},"is_global_runbook":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"runbook_name":{"type":"TypeString","computed":true},"service_uri":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true},"webhook_resource_id":{"type":"TypeString","computed":true}}}},"azure_app_push_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"email_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"azure_function_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"function_app_resource_id":{"type":"TypeString","computed":true},"function_name":{"type":"TypeString","computed":true},"http_trigger_url":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}},"email_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"email_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}},"enabled":{"type":"TypeBool","computed":true},"event_hub_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"event_hub_name":{"type":"TypeString","required":true},"event_hub_namespace":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"itsm_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"region":{"type":"TypeString","computed":true},"ticket_configuration":{"type":"TypeString","computed":true},"workspace_id":{"type":"TypeString","computed":true}}}},"logic_app_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"callback_url":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"short_name":{"type":"TypeString","computed":true},"sms_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"country_code":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"phone_number":{"type":"TypeString","computed":true}}}},"voice_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"country_code":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"phone_number":{"type":"TypeString","computed":true}}}},"webhook_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"aad_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"identifier_uri":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"service_uri":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}}},"timeouts":{"read":5}},"azurerm_monitor_data_collection_endpoint":{"schema":{"configuration_access_endpoint":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"immutable_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logs_ingestion_endpoint":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_monitor_data_collection_rule":{"schema":{"data_collection_endpoint_id":{"type":"TypeString","computed":true},"data_flow":{"type":"TypeList","computed":true,"elem":{"schema":{"built_in_transform":{"type":"TypeString","computed":true},"destinations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"output_stream":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"transform_kql":{"type":"TypeString","computed":true}}}},"data_sources":{"type":"TypeList","computed":true,"elem":{"schema":{"data_import":{"type":"TypeList","computed":true,"elem":{"schema":{"event_hub_data_source":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_group":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"stream":{"type":"TypeString","computed":true}}}}}}},"extension":{"type":"TypeList","computed":true,"elem":{"schema":{"extension_json":{"type":"TypeString","computed":true},"extension_name":{"type":"TypeString","computed":true},"input_data_sources":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"iis_log":{"type":"TypeList","computed":true,"elem":{"schema":{"log_directories":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"log_file":{"type":"TypeList","optional":true,"elem":{"schema":{"file_patterns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"format":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"settings":{"type":"TypeList","computed":true,"elem":{"schema":{"text":{"type":"TypeList","computed":true,"elem":{"schema":{"record_start_timestamp_format":{"type":"TypeString","computed":true}}}}}}},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"performance_counter":{"type":"TypeList","computed":true,"elem":{"schema":{"counter_specifiers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"sampling_frequency_in_seconds":{"type":"TypeInt","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"platform_telemetry":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"prometheus_forwarder":{"type":"TypeList","computed":true,"elem":{"schema":{"label_include_filter":{"type":"TypeList","computed":true,"elem":{"schema":{"label":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"syslog":{"type":"TypeList","computed":true,"elem":{"schema":{"facility_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"log_levels":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"windows_event_log":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"x_path_queries":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"windows_firewall_log":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"description":{"type":"TypeString","computed":true},"destinations":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_monitor_metrics":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"event_hub":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}},"maxItems":1},"event_hub_direct":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}},"maxItems":1},"log_analytics":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"workspace_resource_id":{"type":"TypeString","computed":true}}}},"monitor_account":{"type":"TypeList","computed":true,"elem":{"schema":{"monitor_account_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"storage_blob":{"type":"TypeList","computed":true,"elem":{"schema":{"container_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true}}}},"storage_blob_direct":{"type":"TypeList","computed":true,"elem":{"schema":{"container_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true}}}},"storage_table_direct":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true},"table_name":{"type":"TypeString","computed":true}}}}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"immutable_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"stream_declaration":{"type":"TypeList","computed":true,"elem":{"schema":{"column":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"stream_name":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_monitor_diagnostic_categories":{"schema":{"log_category_groups":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"log_category_types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"metrics":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_monitor_scheduled_query_rules_alert":{"schema":{"action":{"type":"TypeSet","computed":true,"elem":{"schema":{"action_group":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"custom_webhook_payload":{"type":"TypeString","computed":true},"email_subject":{"type":"TypeString","computed":true}}}},"authorized_resource_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"data_source_id":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"frequency":{"type":"TypeInt","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"query":{"type":"TypeString","computed":true},"query_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"severity":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"throttling":{"type":"TypeInt","computed":true},"time_window":{"type":"TypeInt","computed":true},"trigger":{"type":"TypeSet","computed":true,"elem":{"schema":{"metric_trigger":{"type":"TypeSet","computed":true,"elem":{"schema":{"metric_column":{"type":"TypeString","computed":true},"metric_trigger_type":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"threshold":{"type":"TypeFloat","computed":true}}}},"operator":{"type":"TypeString","computed":true},"threshold":{"type":"TypeFloat","computed":true}}}}},"timeouts":{"read":5}},"azurerm_monitor_scheduled_query_rules_log":{"schema":{"authorized_resource_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"criteria":{"type":"TypeSet","computed":true,"elem":{"schema":{"dimension":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"metric_name":{"type":"TypeString","computed":true}}}},"data_source_id":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_monitor_workspace":{"schema":{"default_data_collection_endpoint_id":{"type":"TypeString","computed":true},"default_data_collection_rule_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"query_endpoint":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mssql_database":{"schema":{"collation":{"type":"TypeString","computed":true},"elastic_pool_id":{"type":"TypeString","computed":true},"enclave_type":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}}}},"license_type":{"type":"TypeString","computed":true},"max_size_gb":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"read_replica_count":{"type":"TypeInt","computed":true},"read_scale":{"type":"TypeBool","computed":true},"server_id":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"storage_account_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"transparent_data_encryption_enabled":{"type":"TypeBool","computed":true},"transparent_data_encryption_key_automatic_rotation_enabled":{"type":"TypeBool","computed":true},"transparent_data_encryption_key_vault_key_id":{"type":"TypeString","computed":true},"zone_redundant":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_mssql_elasticpool":{"schema":{"enclave_type":{"type":"TypeString","computed":true},"license_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"max_size_bytes":{"type":"TypeInt","computed":true},"max_size_gb":{"type":"TypeFloat","computed":true},"name":{"type":"TypeString","required":true},"per_db_max_capacity":{"type":"TypeInt","computed":true},"per_db_min_capacity":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"server_name":{"type":"TypeString","required":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"family":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_mssql_managed_instance":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"collation":{"type":"TypeString","computed":true},"customer_managed_key_id":{"type":"TypeString","computed":true},"dns_zone":{"type":"TypeString","computed":true},"dns_zone_partner_id":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"license_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"proxy_override":{"type":"TypeString","computed":true},"public_data_endpoint_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"storage_account_type":{"type":"TypeString","computed":true},"storage_size_in_gb":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"timezone_id":{"type":"TypeString","computed":true},"vcores":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_mssql_server":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"fully_qualified_domain_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"restorable_dropped_database_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"transparent_data_encryption_key_vault_key_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_mysql_flexible_server":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"backup_retention_days":{"type":"TypeInt","computed":true},"delegated_subnet_id":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"geo_redundant_backup_enabled":{"type":"TypeBool","computed":true},"high_availability":{"type":"TypeList","computed":true,"elem":{"schema":{"mode":{"type":"TypeString","computed":true},"standby_availability_zone":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"maintenance_window":{"type":"TypeList","computed":true,"elem":{"schema":{"day_of_week":{"type":"TypeInt","computed":true},"start_hour":{"type":"TypeInt","computed":true},"start_minute":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"private_dns_zone_id":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"replica_capacity":{"type":"TypeInt","computed":true},"replication_role":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"restore_point_in_time":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"storage":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_grow_enabled":{"type":"TypeBool","computed":true},"io_scaling_enabled":{"type":"TypeBool","computed":true},"iops":{"type":"TypeInt","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true},"zone":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_nat_gateway":{"schema":{"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_ip_address_ids":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"public_ip_prefix_ids":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"resource_guid":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_netapp_account":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_netapp_account_encryption":{"schema":{"encryption_key":{"type":"TypeString","optional":true,"description":"The versionless encryption key url."},"netapp_account_id":{"type":"TypeString","required":true,"description":"The ID of the NetApp Account where encryption will be set."},"system_assigned_identity_principal_id":{"type":"TypeString","optional":true,"description":"The Principal ID of the System Assigned Identity to use for encryption."},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The resource ID of the User Assigned Identity to use for encryption."}},"timeouts":{"read":5}},"azurerm_netapp_pool":{"schema":{"account_name":{"type":"TypeString","required":true},"encryption_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"service_level":{"type":"TypeString","computed":true},"size_in_tb":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_netapp_snapshot":{"schema":{"account_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"pool_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"volume_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_netapp_snapshot_policy":{"schema":{"account_name":{"type":"TypeString","required":true},"daily_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"hour":{"type":"TypeInt","computed":true},"minute":{"type":"TypeInt","computed":true},"snapshots_to_keep":{"type":"TypeInt","computed":true}}}},"enabled":{"type":"TypeBool","computed":true},"hourly_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"minute":{"type":"TypeInt","computed":true},"snapshots_to_keep":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"monthly_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"days_of_month":{"type":"TypeSet","computed":true,"elem":{"type":"TypeInt"}},"hour":{"type":"TypeInt","computed":true},"minute":{"type":"TypeInt","computed":true},"snapshots_to_keep":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"weekly_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"days_of_week":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"hour":{"type":"TypeInt","computed":true},"minute":{"type":"TypeInt","computed":true},"snapshots_to_keep":{"type":"TypeInt","computed":true}}}}},"timeouts":{"read":5}},"azurerm_netapp_volume":{"schema":{"account_name":{"type":"TypeString","required":true},"data_protection_replication":{"type":"TypeList","computed":true,"elem":{"schema":{"endpoint_type":{"type":"TypeString","computed":true},"remote_volume_location":{"type":"TypeString","computed":true},"remote_volume_resource_id":{"type":"TypeString","computed":true},"replication_frequency":{"type":"TypeString","computed":true}}}},"encryption_key_source":{"type":"TypeString","computed":true},"key_vault_private_endpoint_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"mount_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"network_features":{"type":"TypeString","computed":true},"pool_name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"security_style":{"type":"TypeString","optional":true},"service_level":{"type":"TypeString","computed":true},"smb_access_based_enumeration_enabled":{"type":"TypeBool","computed":true},"smb_non_browsable_enabled":{"type":"TypeBool","computed":true},"storage_quota_in_gb":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"volume_path":{"type":"TypeString","computed":true},"zone":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_netapp_volume_group_sap_hana":{"schema":{"account_name":{"type":"TypeString","required":true},"application_identifier":{"type":"TypeString","computed":true},"group_description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"volume":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity_pool_id":{"type":"TypeString","computed":true},"data_protection_replication":{"type":"TypeList","computed":true,"elem":{"schema":{"endpoint_type":{"type":"TypeString","computed":true},"remote_volume_location":{"type":"TypeString","computed":true},"remote_volume_resource_id":{"type":"TypeString","computed":true},"replication_frequency":{"type":"TypeString","computed":true}}}},"data_protection_snapshot_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"snapshot_policy_id":{"type":"TypeString","computed":true}}}},"export_policy_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_clients":{"type":"TypeString","computed":true},"nfsv3_enabled":{"type":"TypeBool","computed":true},"nfsv41_enabled":{"type":"TypeBool","computed":true},"root_access_enabled":{"type":"TypeBool","computed":true},"rule_index":{"type":"TypeInt","computed":true},"unix_read_only":{"type":"TypeBool","computed":true},"unix_read_write":{"type":"TypeBool","computed":true}}}},"id":{"type":"TypeString","computed":true},"mount_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"proximity_placement_group_id":{"type":"TypeString","computed":true},"security_style":{"type":"TypeString","computed":true},"service_level":{"type":"TypeString","computed":true},"snapshot_directory_visible":{"type":"TypeBool","computed":true},"storage_quota_in_gb":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"throughput_in_mibps":{"type":"TypeFloat","required":true},"volume_path":{"type":"TypeString","computed":true},"volume_spec_name":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_netapp_volume_quota_rule":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"quota_size_in_kib":{"type":"TypeInt","computed":true},"quota_target":{"type":"TypeString","computed":true},"quota_type":{"type":"TypeString","computed":true},"volume_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"read":5}},"azurerm_network_ddos_protection_plan":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_network_interface":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","computed":true},"applied_dns_servers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"internal_dns_name_label":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"application_gateway_backend_address_pools_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"gateway_load_balancer_frontend_ip_configuration_id":{"type":"TypeString","computed":true},"load_balancer_backend_address_pools_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"private_ip_address_version":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"ip_forwarding_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"mac_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_security_group_id":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_network_manager":{"schema":{"cross_tenant_scopes":{"type":"TypeList","computed":true,"elem":{"schema":{"management_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"subscriptions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}}}},"description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"scope":{"type":"TypeList","computed":true,"elem":{"schema":{"management_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"scope_accesses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_network_manager_connectivity_configuration":{"schema":{"applies_to_group":{"type":"TypeList","computed":true,"elem":{"schema":{"global_mesh_enabled":{"type":"TypeBool","computed":true},"group_connectivity":{"type":"TypeString","computed":true},"network_group_id":{"type":"TypeString","computed":true},"use_hub_gateway":{"type":"TypeBool","computed":true}}}},"connectivity_topology":{"type":"TypeString","computed":true},"delete_existing_peering_enabled":{"type":"TypeBool","computed":true},"description":{"type":"TypeString","computed":true},"global_mesh_enabled":{"type":"TypeBool","computed":true},"hub":{"type":"TypeList","computed":true,"elem":{"schema":{"resource_id":{"type":"TypeString","computed":true},"resource_type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"network_manager_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_network_manager_network_group":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_manager_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_network_security_group":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"security_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"access":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"destination_address_prefix":{"type":"TypeString","computed":true},"destination_address_prefixes":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"destination_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_port_range":{"type":"TypeString","computed":true},"destination_port_ranges":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"direction":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true},"source_address_prefix":{"type":"TypeString","computed":true},"source_address_prefixes":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"source_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_port_range":{"type":"TypeString","computed":true},"source_port_ranges":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_network_service_tags":{"schema":{"address_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ipv4_cidrs":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ipv6_cidrs":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"location_filter":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","computed":true},"service":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_network_watcher":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_nginx_certificate":{"schema":{"certificate_virtual_path":{"type":"TypeString","computed":true},"error_code":{"type":"TypeString","computed":true},"error_message":{"type":"TypeString","computed":true},"key_vault_secret_creation_date":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","computed":true},"key_vault_secret_version":{"type":"TypeString","computed":true},"key_virtual_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"nginx_deployment_id":{"type":"TypeString","required":true},"sha1_thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_nginx_configuration":{"schema":{"config_file":{"type":"TypeSet","computed":true,"elem":{"schema":{"content":{"type":"TypeString","computed":true},"virtual_path":{"type":"TypeString","computed":true}}}},"nginx_deployment_id":{"type":"TypeString","required":true},"package_data":{"type":"TypeString","computed":true},"protected_file":{"type":"TypeSet","computed":true,"elem":{"schema":{"content":{"type":"TypeString","computed":true},"virtual_path":{"type":"TypeString","computed":true}}}},"root_file":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_nginx_deployment":{"schema":{"auto_scale_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"max_capacity":{"type":"TypeInt","computed":true},"min_capacity":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","computed":true}}}},"automatic_upgrade_channel":{"type":"TypeString","computed":true},"capacity":{"type":"TypeInt","computed":true},"diagnose_support_enabled":{"type":"TypeBool","computed":true},"email":{"type":"TypeString","computed":true},"frontend_private":{"type":"TypeList","computed":true,"elem":{"schema":{"allocation_method":{"type":"TypeString","computed":true},"ip_address":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"frontend_public":{"type":"TypeList","computed":true,"elem":{"schema":{"ip_address":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"ip_address":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logging_storage_account":{"type":"TypeList","computed":true,"elem":{"schema":{"container_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"managed_resource_group":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","computed":true}}}},"nginx_version":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_notification_hub":{"schema":{"apns_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"application_mode":{"type":"TypeString","computed":true},"bundle_id":{"type":"TypeString","computed":true},"key_id":{"type":"TypeString","computed":true},"team_id":{"type":"TypeString","computed":true},"token":{"type":"TypeString","computed":true}}}},"gcm_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"api_key":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_notification_hub_namespace":{"schema":{"enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"namespace_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"servicebus_endpoint":{"type":"TypeString","computed":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_oracle_cloud_vm_cluster":{"schema":{"backup_subnet_cidr":{"type":"TypeString","computed":true},"cloud_exadata_infrastructure_id":{"type":"TypeString","computed":true},"cluster_name":{"type":"TypeString","computed":true},"compartment_id":{"type":"TypeString","computed":true},"compute_nodes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"cpu_core_count":{"type":"TypeInt","computed":true},"data_collection_options":{"type":"TypeList","computed":true,"elem":{"schema":{"diagnostics_events_enabled":{"type":"TypeBool","computed":true},"health_monitoring_enabled":{"type":"TypeBool","computed":true},"incident_logs_enabled":{"type":"TypeBool","computed":true}}}},"data_storage_percentage":{"type":"TypeInt","computed":true},"data_storage_size_in_tbs":{"type":"TypeFloat","computed":true},"db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"db_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"disk_redundancy":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"domain":{"type":"TypeString","computed":true},"gi_version":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"hostname_actual":{"type":"TypeString","computed":true},"iorm_config_cache":{"type":"TypeList","computed":true,"elem":{"schema":{"db_plans":{"type":"TypeList","computed":true,"elem":{"schema":{"db_name":{"type":"TypeString","computed":true},"flash_cache_limit":{"type":"TypeString","computed":true},"share":{"type":"TypeInt","computed":true}}}},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"objective":{"type":"TypeString","computed":true}}}},"last_update_history_entry_id":{"type":"TypeString","computed":true},"license_model":{"type":"TypeString","computed":true},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"listener_port":{"type":"TypeInt","computed":true},"local_backup_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"memory_size_in_gbs":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"node_count":{"type":"TypeInt","computed":true},"nsg_url":{"type":"TypeString","computed":true},"oci_url":{"type":"TypeString","computed":true},"ocid":{"type":"TypeString","computed":true},"ocpu_count":{"type":"TypeFloat","computed":true},"resource_group_name":{"type":"TypeString","required":true},"scan_dns_name":{"type":"TypeString","computed":true},"scan_dns_record_id":{"type":"TypeString","computed":true},"scan_ip_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"scan_listener_port_tcp":{"type":"TypeInt","computed":true},"scan_listener_port_tcp_ssl":{"type":"TypeInt","computed":true},"shape":{"type":"TypeString","computed":true},"sparse_diskgroup_enabled":{"type":"TypeBool","computed":true},"ssh_public_keys":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"storage_size_in_gbs":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"subnet_ocid":{"type":"TypeString","computed":true},"system_version":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"time_created":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true},"vip_ods":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","computed":true},"zone_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_oracle_db_servers":{"schema":{"cloud_exadata_infrastructure_name":{"type":"TypeString","required":true},"db_servers":{"type":"TypeList","computed":true,"elem":{"schema":{"autonomous_virtual_machine_ds":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"autonomous_vm_cluster_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"compartment_id":{"type":"TypeString","computed":true},"cpu_core_count":{"type":"TypeInt","computed":true},"db_node_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"display_name":{"type":"TypeString","computed":true},"exadata_infrastructure_id":{"type":"TypeString","computed":true},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"max_cpu_count":{"type":"TypeInt","computed":true},"max_db_node_storage_in_gbs":{"type":"TypeInt","computed":true},"max_memory_in_gbs":{"type":"TypeInt","computed":true},"memory_size_in_gbs":{"type":"TypeInt","computed":true},"ocid":{"type":"TypeString","computed":true},"provisioning_state":{"type":"TypeString","computed":true},"shape":{"type":"TypeString","computed":true},"time_created":{"type":"TypeString","computed":true},"vm_cluster_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_oracle_exadata_infrastructure":{"schema":{"activated_storage_count":{"type":"TypeInt","computed":true},"additional_storage_count":{"type":"TypeInt","computed":true},"available_storage_size_in_gbs":{"type":"TypeInt","computed":true},"compute_count":{"type":"TypeInt","computed":true},"cpu_count":{"type":"TypeInt","computed":true},"customer_contacts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"data_storage_size_in_tbs":{"type":"TypeFloat","computed":true},"db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"db_server_version":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"estimated_patching_time":{"type":"TypeList","computed":true,"elem":{"schema":{"estimated_db_server_patching_time":{"type":"TypeInt","computed":true},"estimated_network_switches_patching_time":{"type":"TypeInt","computed":true},"estimated_storage_server_patching_time":{"type":"TypeInt","computed":true},"total_estimated_patching_time":{"type":"TypeInt","computed":true}}}},"last_maintenance_run_id":{"type":"TypeString","computed":true},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maintenance_window":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_action_timeout_enabled":{"type":"TypeBool","computed":true},"custom_action_timeout_in_mins":{"type":"TypeInt","computed":true},"days_of_week":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"hours_of_day":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"lead_time_in_weeks":{"type":"TypeInt","computed":true},"monthly_patching_enabled":{"type":"TypeBool","computed":true},"months":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"patching_mode":{"type":"TypeString","computed":true},"preference":{"type":"TypeString","computed":true},"weeks_of_month":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}}}}},"max_cpu_count":{"type":"TypeInt","computed":true},"max_data_storage_in_tbs":{"type":"TypeFloat","computed":true},"max_db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"max_memory_in_gbs":{"type":"TypeInt","computed":true},"memory_size_in_gbs":{"type":"TypeInt","computed":true},"monthly_db_server_version":{"type":"TypeString","computed":true},"monthly_storage_server_version":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"next_maintenance_run_id":{"type":"TypeString","computed":true},"oci_url":{"type":"TypeString","computed":true},"ocid":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"shape":{"type":"TypeString","computed":true},"storage_count":{"type":"TypeInt","computed":true},"storage_server_version":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"time_created":{"type":"TypeString","computed":true},"total_storage_size_in_gbs":{"type":"TypeInt","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_orchestrated_virtual_machine_scale_set":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","computed":true},"dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancer_backend_address_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"public_ip_address":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"ip_tag":{"type":"TypeList","computed":true,"elem":{"schema":{"tag":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"public_ip_prefix_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"subnet_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"ip_forwarding_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"network_security_group_id":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_palo_alto_local_rulestack":{"schema":{"anti_spyware_profile":{"type":"TypeString","computed":true},"anti_virus_profile":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"dns_subscription":{"type":"TypeString","computed":true},"file_blocking_profile":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_trust_certificate":{"type":"TypeString","computed":true},"outbound_untrust_certificate":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"url_filtering_profile":{"type":"TypeString","computed":true},"vulnerability_profile":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_platform_image":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"offer":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true},"sku":{"type":"TypeString","required":true},"version":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"read":5}},"azurerm_policy_assignment":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"enforce":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"metadata":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","computed":true,"elem":{"schema":{"content":{"type":"TypeString","computed":true},"policy_definition_reference_id":{"type":"TypeString","computed":true}}}},"not_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"parameters":{"type":"TypeString","computed":true},"policy_definition_id":{"type":"TypeString","computed":true},"scope_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"read":5}},"azurerm_policy_definition":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"management_group_name":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","computed":true},"mode":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"computed":true},"parameters":{"type":"TypeString","computed":true},"policy_rule":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true},"role_definition_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_policy_definition_built_in":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"management_group_name":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","computed":true},"mode":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"computed":true},"parameters":{"type":"TypeString","computed":true},"policy_rule":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true},"role_definition_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_policy_set_definition":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"management_group_name":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"computed":true},"parameters":{"type":"TypeString","computed":true},"policy_definition_group":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_metadata_resource_id":{"type":"TypeString","computed":true},"category":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"policy_definition_reference":{"type":"TypeList","computed":true,"elem":{"schema":{"parameter_values":{"type":"TypeString","computed":true},"parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"policy_definition_id":{"type":"TypeString","computed":true},"policy_group_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"reference_id":{"type":"TypeString","computed":true}}}},"policy_definitions":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_policy_virtual_machine_configuration_assignment":{"schema":{"assignment_hash":{"type":"TypeString","computed":true},"compliance_status":{"type":"TypeString","computed":true},"content_hash":{"type":"TypeString","computed":true},"content_uri":{"type":"TypeString","computed":true},"last_compliance_status_checked":{"type":"TypeString","computed":true},"latest_report_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"virtual_machine_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_portal_dashboard":{"schema":{"dashboard_properties":{"type":"TypeString","optional":true,"computed":true},"display_name":{"type":"TypeString","optional":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_postgresql_flexible_server":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"auto_grow_enabled":{"type":"TypeBool","computed":true},"backup_retention_days":{"type":"TypeInt","computed":true},"delegated_subnet_id":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"storage_mb":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_postgresql_server":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true}},"timeouts":{"read":10}},"azurerm_private_dns_a_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_aaaa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_cname_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_mx_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"exchange":{"type":"TypeString","computed":true},"preference":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_ptr_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_resolver":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_dns_forwarding_ruleset":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_dns_resolver_outbound_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_forwarding_rule":{"schema":{"dns_forwarding_ruleset_id":{"type":"TypeString","required":true},"domain_name":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"target_dns_servers":{"type":"TypeList","computed":true,"elem":{"schema":{"ip_address":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","computed":true}}}}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_inbound_endpoint":{"schema":{"ip_configurations":{"type":"TypeList","computed":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","computed":true},"private_ip_allocation_method":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_dns_resolver_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_outbound_endpoint":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_dns_resolver_id":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_virtual_network_link":{"schema":{"dns_forwarding_ruleset_id":{"type":"TypeString","required":true},"metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"virtual_network_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_private_dns_soa_record":{"schema":{"email":{"type":"TypeString","computed":true},"expire_time":{"type":"TypeInt","computed":true},"fqdn":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"minimum_ttl":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","optional":true,"default":"@"},"refresh_time":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"retry_time":{"type":"TypeInt","computed":true},"serial_number":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_srv_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"port":{"type":"TypeInt","computed":true},"priority":{"type":"TypeInt","computed":true},"target":{"type":"TypeString","computed":true},"weight":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_txt_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"value":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_zone":{"schema":{"max_number_of_record_sets":{"type":"TypeInt","computed":true},"max_number_of_virtual_network_links":{"type":"TypeInt","computed":true},"max_number_of_virtual_network_links_with_registration":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"number_of_record_sets":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_dns_zone_virtual_network_link":{"schema":{"name":{"type":"TypeString","required":true},"private_dns_zone_name":{"type":"TypeString","required":true},"registration_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_private_endpoint_connection":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"private_service_connection":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"request_response":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_link_service":{"schema":{"alias":{"type":"TypeString","computed":true},"auto_approval_subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enable_proxy_protocol":{"type":"TypeBool","computed":true},"load_balancer_frontend_ip_configuration_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"nat_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_version":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"visibility_subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_link_service_endpoint_connections":{"schema":{"location":{"type":"TypeString","computed":true},"private_endpoint_connections":{"type":"TypeList","computed":true,"elem":{"schema":{"action_required":{"type":"TypeString","computed":true},"connection_id":{"type":"TypeString","computed":true},"connection_name":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"private_endpoint_id":{"type":"TypeString","computed":true},"private_endpoint_name":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"service_id":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_proximity_placement_group":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_public_ip":{"schema":{"allocation_method":{"type":"TypeString","computed":true},"ddos_protection_mode":{"type":"TypeString","computed":true},"ddos_protection_plan_id":{"type":"TypeString","computed":true},"domain_name_label":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"ip_address":{"type":"TypeString","computed":true},"ip_tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ip_version":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"reverse_fqdn":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_public_ip_prefix":{"schema":{"ip_prefix":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"prefix_length":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_public_ips":{"schema":{"allocation_type":{"type":"TypeString","optional":true},"attachment_status":{"type":"TypeString","optional":true},"name_prefix":{"type":"TypeString","optional":true},"public_ips":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_public_maintenance_configurations":{"schema":{"configs":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"duration":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maintenance_scope":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"recur_every":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","optional":true},"recur_every":{"type":"TypeString","optional":true},"scope":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_recovery_services_vault":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_redis_cache":{"schema":{"access_keys_authentication_enabled":{"type":"TypeBool","computed":true},"capacity":{"type":"TypeInt","computed":true},"family":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"non_ssl_port_enabled":{"type":"TypeBool","computed":true},"patch_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","computed":true},"maintenance_window":{"type":"TypeString","computed":true},"start_hour_utc":{"type":"TypeInt","computed":true}}}},"port":{"type":"TypeInt","computed":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"private_static_ip_address":{"type":"TypeString","computed":true},"redis_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_authentication_enabled":{"type":"TypeBool","computed":true},"aof_backup_enabled":{"type":"TypeBool","computed":true},"aof_storage_connection_string_0":{"type":"TypeString","computed":true},"aof_storage_connection_string_1":{"type":"TypeString","computed":true},"authentication_enabled":{"type":"TypeBool","computed":true},"data_persistence_authentication_method":{"type":"TypeString","computed":true},"maxclients":{"type":"TypeInt","computed":true},"maxfragmentationmemory_reserved":{"type":"TypeInt","computed":true},"maxmemory_delta":{"type":"TypeInt","computed":true},"maxmemory_policy":{"type":"TypeString","computed":true},"maxmemory_reserved":{"type":"TypeInt","computed":true},"notify_keyspace_events":{"type":"TypeString","computed":true},"rdb_backup_enabled":{"type":"TypeBool","computed":true},"rdb_backup_frequency":{"type":"TypeInt","computed":true},"rdb_backup_max_snapshot_count":{"type":"TypeInt","computed":true},"rdb_storage_connection_string":{"type":"TypeString","computed":true},"storage_account_subscription_id":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"shard_count":{"type":"TypeInt","computed":true},"sku_name":{"type":"TypeString","computed":true},"ssl_port":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_redis_enterprise_database":{"schema":{"cluster_id":{"type":"TypeString","required":true},"linked_database_group_nickname":{"type":"TypeString","computed":true},"linked_database_id":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"secondary_access_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_resource_group":{"schema":{"location":{"type":"TypeString","computed":true},"managed_by":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_resource_group_template_deployment":{"schema":{"name":{"type":"TypeString","required":true},"output_content":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_resources":{"schema":{"name":{"type":"TypeString","optional":true,"computed":true},"required_tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","optional":true,"computed":true},"resources":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}}}},"type":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"read":5}},"azurerm_role_definition":{"schema":{"assignable_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"computed":true},"permissions":{"type":"TypeList","computed":true,"elem":{"schema":{"actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"condition":{"type":"TypeString","computed":true},"condition_version":{"type":"TypeString","computed":true},"data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"not_actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"not_data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"role_definition_id":{"type":"TypeString","optional":true,"computed":true},"scope":{"type":"TypeString","optional":true},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_role_management_policy":{"schema":{"activation_rules":{"type":"TypeList","description":"The activation rules of the policy","computed":true,"elem":{"schema":{"approval_stage":{"type":"TypeList","description":"The approval stages for the activation","computed":true,"elem":{"schema":{"primary_approver":{"type":"TypeSet","description":"The IDs of the users or groups who can approve the activation","computed":true,"elem":{"schema":{"object_id":{"type":"TypeString","description":"The ID of the object to act as an approver","computed":true},"type":{"type":"TypeString","description":"The type of object acting as an approver","computed":true}}}}}}},"maximum_duration":{"type":"TypeString","description":"The time after which the an activation can be valid for","computed":true},"require_approval":{"type":"TypeBool","description":"Whether an approval is required for activation","computed":true},"require_justification":{"type":"TypeBool","description":"Whether a justification is required during activation","computed":true},"require_multifactor_authentication":{"type":"TypeBool","description":"Whether multi-factor authentication is required during activation","computed":true},"require_ticket_info":{"type":"TypeBool","description":"Whether ticket information is required during activation","computed":true},"required_conditional_access_authentication_context":{"type":"TypeString","description":"Whether a conditional access context is required during activation","computed":true}}}},"active_assignment_rules":{"type":"TypeList","description":"The rules for active assignment of the policy","computed":true,"elem":{"schema":{"expiration_required":{"type":"TypeBool","description":"Must the assignment have an expiry date","computed":true},"expire_after":{"type":"TypeString","description":"The duration after which assignments expire","computed":true},"require_justification":{"type":"TypeBool","description":"Whether a justification is required to make an assignment","computed":true},"require_multifactor_authentication":{"type":"TypeBool","description":"Whether multi-factor authentication is required to make an assignment","computed":true},"require_ticket_info":{"type":"TypeBool","description":"Whether ticket information is required to make an assignment","computed":true}}}},"description":{"type":"TypeString","description":"The Description of the policy","computed":true},"eligible_assignment_rules":{"type":"TypeList","description":"The rules for eligible assignment of the policy","computed":true,"elem":{"schema":{"expiration_required":{"type":"TypeBool","description":"Must the assignment have an expiry date","computed":true},"expire_after":{"type":"TypeString","description":"The duration after which assignments expire","computed":true}}}},"name":{"type":"TypeString","description":"The name of the policy","computed":true},"notification_rules":{"type":"TypeList","description":"The notification rules of the policy","computed":true,"elem":{"schema":{"active_assignments":{"type":"TypeList","description":"Notifications about active assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"approver_notifications":{"type":"TypeList","description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"assignee_notifications":{"type":"TypeList","description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}}}}},"eligible_activations":{"type":"TypeList","description":"Notifications about activations of eligible assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"approver_notifications":{"type":"TypeList","description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"assignee_notifications":{"type":"TypeList","description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}}}}},"eligible_assignments":{"type":"TypeList","description":"Notifications about eligible assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"approver_notifications":{"type":"TypeList","description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"assignee_notifications":{"type":"TypeList","description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}}}}}}}},"role_definition_id":{"type":"TypeString","required":true,"description":"ID of the Azure Role to which this policy is assigned"},"scope":{"type":"TypeString","required":true,"description":"The scope of the role to which this policy will apply"}},"timeouts":{"read":5}},"azurerm_route_filter":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"rule":{"type":"TypeList","computed":true,"elem":{"schema":{"access":{"type":"TypeString","computed":true},"communities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"rule_type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_route_table":{"schema":{"bgp_route_propagation_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"route":{"type":"TypeList","computed":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"next_hop_in_ip_address":{"type":"TypeString","computed":true},"next_hop_type":{"type":"TypeString","computed":true}}}},"subnets":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_search_service":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"partition_count":{"type":"TypeInt","computed":true},"primary_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"query_keys":{"type":"TypeList","computed":true,"elem":{"schema":{"key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"replica_count":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_sentinel_alert_rule":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_sentinel_alert_rule_anomaly":{"schema":{"anomaly_settings_version":{"type":"TypeInt","computed":true},"anomaly_version":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","computed":true},"frequency":{"type":"TypeString","computed":true},"log_analytics_workspace_id":{"type":"TypeString","required":true},"mode":{"type":"TypeString","computed":true},"multi_select_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","optional":true,"computed":true},"prioritized_exclude_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"exclude":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"prioritize":{"type":"TypeString","computed":true}}}},"required_data_connector":{"type":"TypeList","computed":true,"elem":{"schema":{"connector_id":{"type":"TypeString","computed":true},"data_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"settings_definition_id":{"type":"TypeString","computed":true},"single_select_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","computed":true}}}},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"threshold_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"max":{"type":"TypeString","computed":true},"min":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_sentinel_alert_rule_template":{"schema":{"display_name":{"type":"TypeString","optional":true,"computed":true},"log_analytics_workspace_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true,"computed":true},"nrt_template":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"query":{"type":"TypeString","computed":true},"severity":{"type":"TypeString","computed":true},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"scheduled_template":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"query":{"type":"TypeString","computed":true},"query_frequency":{"type":"TypeString","computed":true},"query_period":{"type":"TypeString","computed":true},"severity":{"type":"TypeString","computed":true},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trigger_operator":{"type":"TypeString","computed":true},"trigger_threshold":{"type":"TypeInt","computed":true}}}},"security_incident_template":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"product_filter":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_service_plan":{"schema":{"app_service_environment_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maximum_elastic_worker_count":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","computed":true},"per_site_scaling_enabled":{"type":"TypeBool","computed":true},"reserved":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"worker_count":{"type":"TypeInt","computed":true},"zone_balancing_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_namespace":{"schema":{"capacity":{"type":"TypeInt","computed":true},"default_primary_connection_string":{"type":"TypeString","computed":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_connection_string":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"premium_messaging_partitions":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_servicebus_namespace_authorization_rule":{"schema":{"name":{"type":"TypeString","required":true},"namespace_id":{"type":"TypeString","optional":true},"namespace_name":{"type":"TypeString","optional":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_namespace_disaster_recovery_config":{"schema":{"alias_authorization_rule_id":{"type":"TypeString","optional":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"namespace_id":{"type":"TypeString","optional":true},"namespace_name":{"type":"TypeString","optional":true},"partner_namespace_id":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_queue":{"schema":{"auto_delete_on_idle":{"type":"TypeString","computed":true},"dead_lettering_on_message_expiration":{"type":"TypeBool","computed":true},"default_message_ttl":{"type":"TypeString","computed":true},"duplicate_detection_history_time_window":{"type":"TypeString","computed":true},"enable_batched_operations":{"type":"TypeBool","computed":true},"enable_express":{"type":"TypeBool","computed":true},"enable_partitioning":{"type":"TypeBool","computed":true},"forward_dead_lettered_messages_to":{"type":"TypeString","computed":true},"forward_to":{"type":"TypeString","computed":true},"lock_duration":{"type":"TypeString","computed":true},"max_delivery_count":{"type":"TypeInt","computed":true},"max_size_in_megabytes":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"namespace_id":{"type":"TypeString","optional":true},"namespace_name":{"type":"TypeString","optional":true},"requires_duplicate_detection":{"type":"TypeBool","computed":true},"requires_session":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"status":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_queue_authorization_rule":{"schema":{"listen":{"type":"TypeBool","computed":true},"manage":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","optional":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"queue_id":{"type":"TypeString","optional":true},"queue_name":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","optional":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_subscription":{"schema":{"auto_delete_on_idle":{"type":"TypeString","computed":true},"dead_lettering_on_filter_evaluation_error":{"type":"TypeBool","computed":true},"dead_lettering_on_message_expiration":{"type":"TypeBool","computed":true},"default_message_ttl":{"type":"TypeString","computed":true},"enable_batched_operations":{"type":"TypeBool","computed":true},"forward_dead_lettered_messages_to":{"type":"TypeString","computed":true},"forward_to":{"type":"TypeString","computed":true},"lock_duration":{"type":"TypeString","computed":true},"max_delivery_count":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","optional":true},"requires_session":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"topic_id":{"type":"TypeString","optional":true},"topic_name":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_servicebus_topic":{"schema":{"auto_delete_on_idle":{"type":"TypeString","computed":true},"default_message_ttl":{"type":"TypeString","computed":true},"duplicate_detection_history_time_window":{"type":"TypeString","computed":true},"enable_batched_operations":{"type":"TypeBool","computed":true},"enable_express":{"type":"TypeBool","computed":true},"enable_partitioning":{"type":"TypeBool","computed":true},"max_size_in_megabytes":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"namespace_id":{"type":"TypeString","optional":true},"namespace_name":{"type":"TypeString","optional":true},"requires_duplicate_detection":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"status":{"type":"TypeString","computed":true},"support_ordering":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_topic_authorization_rule":{"schema":{"listen":{"type":"TypeBool","computed":true},"manage":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","optional":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"queue_name":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","optional":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","computed":true},"topic_id":{"type":"TypeString","optional":true},"topic_name":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_shared_image":{"schema":{"accelerated_network_support_enabled":{"type":"TypeBool","computed":true},"architecture":{"type":"TypeString","computed":true},"confidential_vm_enabled":{"type":"TypeBool","computed":true},"confidential_vm_supported":{"type":"TypeBool","computed":true},"description":{"type":"TypeString","computed":true},"eula":{"type":"TypeString","computed":true},"gallery_name":{"type":"TypeString","required":true},"hibernation_enabled":{"type":"TypeBool","computed":true},"hyper_v_generation":{"type":"TypeString","computed":true},"identifier":{"type":"TypeList","computed":true,"elem":{"schema":{"offer":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","computed":true},"privacy_statement_uri":{"type":"TypeString","computed":true},"purchase_plan":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"product":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","computed":true}}}},"release_note_uri":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"specialized":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"trusted_launch_enabled":{"type":"TypeBool","computed":true},"trusted_launch_supported":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_shared_image_gallery":{"schema":{"description":{"type":"TypeString","computed":true},"image_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"unique_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_shared_image_version":{"schema":{"exclude_from_latest":{"type":"TypeBool","computed":true},"gallery_name":{"type":"TypeString","required":true},"image_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"managed_image_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"os_disk_image_size_gb":{"type":"TypeInt","computed":true},"os_disk_snapshot_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sort_versions_by_semver":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_region":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"regional_replica_count":{"type":"TypeInt","computed":true},"storage_account_type":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_shared_image_versions":{"schema":{"gallery_name":{"type":"TypeString","required":true},"image_name":{"type":"TypeString","required":true},"images":{"type":"TypeList","computed":true,"elem":{"schema":{"exclude_from_latest":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"managed_image_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_region":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"regional_replica_count":{"type":"TypeInt","computed":true},"storage_account_type":{"type":"TypeString","computed":true}}}}}}},"resource_group_name":{"type":"TypeString","required":true},"tags_filter":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_signalr_service":{"schema":{"aad_auth_enabled":{"type":"TypeBool","computed":true},"hostname":{"type":"TypeString","computed":true},"ip_address":{"type":"TypeString","computed":true},"local_auth_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"public_port":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"server_port":{"type":"TypeInt","computed":true},"serverless_connection_timeout_in_seconds":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tls_client_cert_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_site_recovery_fabric":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_site_recovery_protection_container":{"schema":{"name":{"type":"TypeString","required":true},"recovery_fabric_name":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_site_recovery_replication_policy":{"schema":{"application_consistent_snapshot_frequency_in_minutes":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"recovery_point_retention_in_minutes":{"type":"TypeInt","computed":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_site_recovery_replication_recovery_plan":{"schema":{"azure_to_azure_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"primary_edge_zone":{"type":"TypeString","computed":true},"primary_zone":{"type":"TypeString","computed":true},"recovery_edge_zone":{"type":"TypeString","computed":true},"recovery_zone":{"type":"TypeString","computed":true}}}},"failover_deployment_model":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"recovery_group":{"type":"TypeSet","computed":true,"elem":{"schema":{"post_action":{"type":"TypeSet","computed":true,"elem":{"type":"TypeList","elem":{"schema":{"fabric_location":{"type":"TypeString","computed":true},"fail_over_directions":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"runbook_id":{"type":"TypeString","computed":true},"script_path":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}}},"pre_action":{"type":"TypeSet","computed":true,"elem":{"type":"TypeList","elem":{"schema":{"fabric_location":{"type":"TypeString","computed":true},"fail_over_directions":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"runbook_id":{"type":"TypeString","computed":true},"script_path":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}}},"replicated_protected_items":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}}}},"recovery_vault_id":{"type":"TypeString","required":true},"source_recovery_fabric_id":{"type":"TypeString","computed":true},"target_recovery_fabric_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_snapshot":{"schema":{"creation_option":{"type":"TypeString","computed":true},"disk_size_gb":{"type":"TypeInt","computed":true},"encryption_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_url":{"type":"TypeString","computed":true},"source_vault_id":{"type":"TypeString","computed":true}}}},"enabled":{"type":"TypeBool","computed":true},"key_encryption_key":{"type":"TypeList","computed":true,"elem":{"schema":{"key_url":{"type":"TypeString","computed":true},"source_vault_id":{"type":"TypeString","computed":true}}}}}}},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"source_resource_id":{"type":"TypeString","computed":true},"source_uri":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true},"time_created":{"type":"TypeString","computed":true},"trusted_launch_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_source_control_token":{"schema":{"token":{"type":"TypeString","computed":true},"token_secret":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_spatial_anchors_account":{"schema":{"account_domain":{"type":"TypeString","computed":true},"account_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_spring_cloud_app":{"schema":{"fqdn":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"is_public":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"persistent_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"mount_path":{"type":"TypeString","computed":true},"size_in_gb":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","required":true},"tls_enabled":{"type":"TypeBool","computed":true},"url":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_spring_cloud_service":{"schema":{"config_server_git_setting":{"type":"TypeList","computed":true,"elem":{"schema":{"http_basic_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"label":{"type":"TypeString","computed":true},"repository":{"type":"TypeList","computed":true,"elem":{"schema":{"http_basic_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"label":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"pattern":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"search_paths":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ssh_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"host_key":{"type":"TypeString","computed":true},"host_key_algorithm":{"type":"TypeString","computed":true},"private_key":{"type":"TypeString","computed":true},"strict_host_key_checking_enabled":{"type":"TypeBool","computed":true}}}},"uri":{"type":"TypeString","computed":true}}}},"search_paths":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ssh_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"host_key":{"type":"TypeString","computed":true},"host_key_algorithm":{"type":"TypeString","computed":true},"private_key":{"type":"TypeString","computed":true},"strict_host_key_checking_enabled":{"type":"TypeBool","computed":true}}}},"uri":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"required_network_traffic_rules":{"type":"TypeList","computed":true,"elem":{"schema":{"direction":{"type":"TypeString","computed":true},"fqdns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_ssh_public_key":{"schema":{"name":{"type":"TypeString","required":true},"public_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_stack_hci_cluster":{"schema":{"automanage_configuration_id":{"type":"TypeString","computed":true},"client_id":{"type":"TypeString","computed":true},"cloud_id":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_provider_object_id":{"type":"TypeString","computed":true},"service_endpoint":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_static_web_app":{"schema":{"api_key":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"basic_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"environments":{"type":"TypeString","computed":true}}}},"configuration_file_changes_enabled":{"type":"TypeBool","computed":true},"default_host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"preview_environments_enabled":{"type":"TypeBool","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_size":{"type":"TypeString","computed":true},"sku_tier":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_storage_account":{"schema":{"access_tier":{"type":"TypeString","computed":true},"account_kind":{"type":"TypeString","computed":true},"account_replication_type":{"type":"TypeString","computed":true},"account_tier":{"type":"TypeString","computed":true},"allow_nested_items_to_be_public":{"type":"TypeBool","computed":true},"azure_files_authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_guid":{"type":"TypeString","computed":true},"domain_name":{"type":"TypeString","computed":true},"domain_sid":{"type":"TypeString","computed":true},"forest_name":{"type":"TypeString","computed":true},"netbios_domain_name":{"type":"TypeString","computed":true},"storage_sid":{"type":"TypeString","computed":true}}}},"default_share_level_permission":{"type":"TypeString","computed":true},"directory_type":{"type":"TypeString","computed":true}}}},"custom_domain":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"dns_endpoint_type":{"type":"TypeString","computed":true},"https_traffic_only_enabled":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"infrastructure_encryption_enabled":{"type":"TypeBool","computed":true},"is_hns_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"min_tls_version":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"nfsv3_enabled":{"type":"TypeBool","computed":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_blob_connection_string":{"type":"TypeString","computed":true},"primary_blob_endpoint":{"type":"TypeString","computed":true},"primary_blob_host":{"type":"TypeString","computed":true},"primary_blob_internet_endpoint":{"type":"TypeString","computed":true},"primary_blob_internet_host":{"type":"TypeString","computed":true},"primary_blob_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_blob_microsoft_host":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_dfs_endpoint":{"type":"TypeString","computed":true},"primary_dfs_host":{"type":"TypeString","computed":true},"primary_dfs_internet_endpoint":{"type":"TypeString","computed":true},"primary_dfs_internet_host":{"type":"TypeString","computed":true},"primary_dfs_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_dfs_microsoft_host":{"type":"TypeString","computed":true},"primary_file_endpoint":{"type":"TypeString","computed":true},"primary_file_host":{"type":"TypeString","computed":true},"primary_file_internet_endpoint":{"type":"TypeString","computed":true},"primary_file_internet_host":{"type":"TypeString","computed":true},"primary_file_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_file_microsoft_host":{"type":"TypeString","computed":true},"primary_location":{"type":"TypeString","computed":true},"primary_queue_endpoint":{"type":"TypeString","computed":true},"primary_queue_host":{"type":"TypeString","computed":true},"primary_queue_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_queue_microsoft_host":{"type":"TypeString","computed":true},"primary_table_endpoint":{"type":"TypeString","computed":true},"primary_table_host":{"type":"TypeString","computed":true},"primary_table_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_table_microsoft_host":{"type":"TypeString","computed":true},"primary_web_endpoint":{"type":"TypeString","computed":true},"primary_web_host":{"type":"TypeString","computed":true},"primary_web_internet_endpoint":{"type":"TypeString","computed":true},"primary_web_internet_host":{"type":"TypeString","computed":true},"primary_web_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_web_microsoft_host":{"type":"TypeString","computed":true},"queue_encryption_key_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_blob_connection_string":{"type":"TypeString","computed":true},"secondary_blob_endpoint":{"type":"TypeString","computed":true},"secondary_blob_host":{"type":"TypeString","computed":true},"secondary_blob_internet_endpoint":{"type":"TypeString","computed":true},"secondary_blob_internet_host":{"type":"TypeString","computed":true},"secondary_blob_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_blob_microsoft_host":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_dfs_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_host":{"type":"TypeString","computed":true},"secondary_dfs_internet_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_internet_host":{"type":"TypeString","computed":true},"secondary_dfs_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_microsoft_host":{"type":"TypeString","computed":true},"secondary_file_endpoint":{"type":"TypeString","computed":true},"secondary_file_host":{"type":"TypeString","computed":true},"secondary_file_internet_endpoint":{"type":"TypeString","computed":true},"secondary_file_internet_host":{"type":"TypeString","computed":true},"secondary_file_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_file_microsoft_host":{"type":"TypeString","computed":true},"secondary_location":{"type":"TypeString","computed":true},"secondary_queue_endpoint":{"type":"TypeString","computed":true},"secondary_queue_host":{"type":"TypeString","computed":true},"secondary_queue_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_queue_microsoft_host":{"type":"TypeString","computed":true},"secondary_table_endpoint":{"type":"TypeString","computed":true},"secondary_table_host":{"type":"TypeString","computed":true},"secondary_table_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_table_microsoft_host":{"type":"TypeString","computed":true},"secondary_web_endpoint":{"type":"TypeString","computed":true},"secondary_web_host":{"type":"TypeString","computed":true},"secondary_web_internet_endpoint":{"type":"TypeString","computed":true},"secondary_web_internet_host":{"type":"TypeString","computed":true},"secondary_web_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_web_microsoft_host":{"type":"TypeString","computed":true},"table_encryption_key_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_storage_account_blob_container_sas":{"schema":{"cache_control":{"type":"TypeString","optional":true},"connection_string":{"type":"TypeString","required":true},"container_name":{"type":"TypeString","required":true},"content_disposition":{"type":"TypeString","optional":true},"content_encoding":{"type":"TypeString","optional":true},"content_language":{"type":"TypeString","optional":true},"content_type":{"type":"TypeString","optional":true},"expiry":{"type":"TypeString","required":true},"https_only":{"type":"TypeBool","optional":true,"default":true},"ip_address":{"type":"TypeString","optional":true},"permissions":{"type":"TypeList","required":true,"elem":{"schema":{"add":{"type":"TypeBool","required":true},"create":{"type":"TypeBool","required":true},"delete":{"type":"TypeBool","required":true},"list":{"type":"TypeBool","required":true},"read":{"type":"TypeBool","required":true},"write":{"type":"TypeBool","required":true}}},"maxItems":1},"sas":{"type":"TypeString","computed":true},"start":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_account_sas":{"schema":{"connection_string":{"type":"TypeString","required":true},"expiry":{"type":"TypeString","required":true},"https_only":{"type":"TypeBool","optional":true,"default":true},"ip_addresses":{"type":"TypeString","optional":true},"permissions":{"type":"TypeList","required":true,"elem":{"schema":{"add":{"type":"TypeBool","required":true},"create":{"type":"TypeBool","required":true},"delete":{"type":"TypeBool","required":true},"filter":{"type":"TypeBool","required":true},"list":{"type":"TypeBool","required":true},"process":{"type":"TypeBool","required":true},"read":{"type":"TypeBool","required":true},"tag":{"type":"TypeBool","required":true},"update":{"type":"TypeBool","required":true},"write":{"type":"TypeBool","required":true}}},"maxItems":1},"resource_types":{"type":"TypeList","required":true,"elem":{"schema":{"container":{"type":"TypeBool","required":true},"object":{"type":"TypeBool","required":true},"service":{"type":"TypeBool","required":true}}},"maxItems":1},"sas":{"type":"TypeString","computed":true},"services":{"type":"TypeList","required":true,"elem":{"schema":{"blob":{"type":"TypeBool","required":true},"file":{"type":"TypeBool","required":true},"queue":{"type":"TypeBool","required":true},"table":{"type":"TypeBool","required":true}}},"maxItems":1},"signed_version":{"type":"TypeString","optional":true,"default":"2022-11-02"},"start":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_blob":{"schema":{"access_tier":{"type":"TypeString","computed":true},"content_md5":{"type":"TypeString","computed":true},"content_type":{"type":"TypeString","computed":true},"encryption_scope":{"type":"TypeString","computed":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","computed":true},"url":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_storage_container":{"schema":{"container_access_type":{"type":"TypeString","computed":true},"default_encryption_scope":{"type":"TypeString","computed":true},"encryption_scope_override_enabled":{"type":"TypeBool","computed":true},"has_immutability_policy":{"type":"TypeBool","computed":true},"has_legal_hold":{"type":"TypeBool","computed":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_containers":{"schema":{"containers":{"type":"TypeList","computed":true,"elem":{"schema":{"data_plane_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"resource_manager_id":{"type":"TypeString","computed":true}}}},"name_prefix":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_encryption_scope":{"schema":{"key_vault_key_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"source":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_management_policy":{"schema":{"rule":{"type":"TypeList","computed":true,"elem":{"schema":{"actions":{"type":"TypeList","computed":true,"elem":{"schema":{"base_blob":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_tier_to_hot_from_cool_enabled":{"type":"TypeBool","computed":true},"delete_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"delete_after_days_since_last_access_time_greater_than":{"type":"TypeInt","computed":true},"delete_after_days_since_modification_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_last_access_time_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_modification_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_last_access_time_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_modification_greater_than":{"type":"TypeInt","computed":true},"tier_to_cool_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"tier_to_cool_after_days_since_last_access_time_greater_than":{"type":"TypeInt","computed":true},"tier_to_cool_after_days_since_modification_greater_than":{"type":"TypeInt","computed":true}}}},"snapshot":{"type":"TypeList","computed":true,"elem":{"schema":{"change_tier_to_archive_after_days_since_creation":{"type":"TypeInt","computed":true},"change_tier_to_cool_after_days_since_creation":{"type":"TypeInt","computed":true},"delete_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true}}}},"version":{"type":"TypeList","computed":true,"elem":{"schema":{"change_tier_to_archive_after_days_since_creation":{"type":"TypeInt","computed":true},"change_tier_to_cool_after_days_since_creation":{"type":"TypeInt","computed":true},"delete_after_days_since_creation":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true}}}}}}},"enabled":{"type":"TypeBool","computed":true},"filters":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"match_blob_index_tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operation":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"prefix_match":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","computed":true}}}},"storage_account_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_queue":{"schema":{"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_share":{"schema":{"acl":{"type":"TypeList","optional":true,"elem":{"schema":{"access_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"expiry":{"type":"TypeString","computed":true},"permissions":{"type":"TypeString","computed":true},"start":{"type":"TypeString","computed":true}}}},"id":{"type":"TypeString","computed":true}}}},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"quota":{"type":"TypeInt","computed":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_sync":{"schema":{"incoming_traffic_policy":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_storage_sync_group":{"schema":{"name":{"type":"TypeString","required":true},"storage_sync_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_table":{"schema":{"acl":{"type":"TypeSet","computed":true,"elem":{"schema":{"access_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"expiry":{"type":"TypeString","computed":true},"permissions":{"type":"TypeString","computed":true},"start":{"type":"TypeString","computed":true}}}},"id":{"type":"TypeString","computed":true}}}},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_table_entities":{"schema":{"filter":{"type":"TypeString","required":true},"items":{"type":"TypeList","computed":true,"elem":{"schema":{"partition_key":{"type":"TypeString","computed":true},"properties":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"row_key":{"type":"TypeString","computed":true}}}},"select":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"storage_table_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_table_entity":{"schema":{"entity":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"partition_key":{"type":"TypeString","required":true},"row_key":{"type":"TypeString","required":true},"storage_table_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_stream_analytics_job":{"schema":{"compatibility_level":{"type":"TypeString","computed":true},"data_locale":{"type":"TypeString","computed":true},"events_late_arrival_max_delay_in_seconds":{"type":"TypeInt","computed":true},"events_out_of_order_max_delay_in_seconds":{"type":"TypeInt","computed":true},"events_out_of_order_policy":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"job_id":{"type":"TypeString","computed":true},"last_output_time":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"output_error_policy":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"start_mode":{"type":"TypeString","computed":true},"start_time":{"type":"TypeString","computed":true},"streaming_units":{"type":"TypeInt","computed":true},"transformation_query":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_subnet":{"schema":{"address_prefix":{"type":"TypeString","computed":true},"address_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"default_outbound_access_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"network_security_group_id":{"type":"TypeString","computed":true},"private_endpoint_network_policies":{"type":"TypeString","computed":true},"private_link_service_network_policies_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"route_table_id":{"type":"TypeString","computed":true},"service_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_network_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_subscription":{"schema":{"display_name":{"type":"TypeString","computed":true},"location_placement_id":{"type":"TypeString","computed":true},"quota_id":{"type":"TypeString","computed":true},"spending_limit":{"type":"TypeString","computed":true},"state":{"type":"TypeString","computed":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_subscription_template_deployment":{"schema":{"name":{"type":"TypeString","required":true},"output_content":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_subscriptions":{"schema":{"display_name_contains":{"type":"TypeString","optional":true},"display_name_prefix":{"type":"TypeString","optional":true},"subscriptions":{"type":"TypeList","computed":true,"elem":{"schema":{"display_name":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location_placement_id":{"type":"TypeString","computed":true},"quota_id":{"type":"TypeString","computed":true},"spending_limit":{"type":"TypeString","computed":true},"state":{"type":"TypeString","computed":true},"subscription_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_synapse_workspace":{"schema":{"connectivity_endpoints":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_system_center_virtual_machine_manager_inventory_items":{"schema":{"inventory_items":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"uuid":{"type":"TypeString","computed":true}}}},"inventory_type":{"type":"TypeString","required":true},"system_center_virtual_machine_manager_server_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_template_spec_version":{"schema":{"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"template_body":{"type":"TypeString","computed":true},"version":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_tenant_template_deployment":{"schema":{"name":{"type":"TypeString","required":true},"output_content":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_traffic_manager_geographical_location":{"schema":{"name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_traffic_manager_profile":{"schema":{"dns_config":{"type":"TypeList","computed":true,"elem":{"schema":{"relative_name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true}}}},"fqdn":{"type":"TypeString","computed":true},"monitor_config":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_header":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"expected_status_code_ranges":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"interval_in_seconds":{"type":"TypeInt","computed":true},"path":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true},"timeout_in_seconds":{"type":"TypeInt","computed":true},"tolerated_number_of_failures":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"profile_status":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_routing_method":{"type":"TypeString","computed":true},"traffic_view_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"read":5}},"azurerm_user_assigned_identity":{"schema":{"client_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"principal_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_desktop_application_group":{"schema":{"description":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"host_pool_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_desktop_host_pool":{"schema":{"custom_rdp_properties":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"load_balancer_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maximum_sessions_allowed":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"personal_desktop_assignment_type":{"type":"TypeString","computed":true},"preferred_app_group_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"scheduled_agent_updates":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","computed":true},"hour_of_day":{"type":"TypeInt","computed":true}}}},"timezone":{"type":"TypeString","computed":true},"use_session_host_timezone":{"type":"TypeBool","computed":true}}}},"start_vm_on_connect":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"validate_environment":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_desktop_workspace":{"schema":{"description":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_virtual_hub":{"schema":{"address_prefix":{"type":"TypeString","computed":true},"default_route_table_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_router_asn":{"type":"TypeInt","computed":true},"virtual_router_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_wan_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_hub_connection":{"schema":{"internet_security_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"remote_virtual_network_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"routing":{"type":"TypeList","computed":true,"elem":{"schema":{"associated_route_table_id":{"type":"TypeString","computed":true},"inbound_route_map_id":{"type":"TypeString","computed":true},"outbound_route_map_id":{"type":"TypeString","computed":true},"propagated_route_table":{"type":"TypeList","computed":true,"elem":{"schema":{"labels":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"route_table_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"static_vnet_local_route_override_criteria":{"type":"TypeString","computed":true},"static_vnet_route":{"type":"TypeList","computed":true,"elem":{"schema":{"address_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"next_hop_ip_address":{"type":"TypeString","computed":true}}}}}}},"virtual_hub_id":{"type":"TypeString","computed":true},"virtual_hub_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_hub_route_table":{"schema":{"labels":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"route":{"type":"TypeList","computed":true,"elem":{"schema":{"destinations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"destinations_type":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"next_hop":{"type":"TypeString","computed":true},"next_hop_type":{"type":"TypeString","computed":true}}}},"virtual_hub_id":{"type":"TypeString","computed":true},"virtual_hub_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_machine":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"power_state":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_machine_scale_set":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"instances":{"type":"TypeList","computed":true,"elem":{"schema":{"computer_name":{"type":"TypeString","computed":true},"instance_id":{"type":"TypeString","computed":true},"latest_model_applied":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"power_state":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","computed":true},"zone":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enable_accelerated_networking":{"type":"TypeBool","computed":true},"enable_ip_forwarding":{"type":"TypeBool","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancer_backend_address_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"public_ip_address":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"ip_tag":{"type":"TypeList","computed":true,"elem":{"schema":{"tag":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"public_ip_prefix_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"subnet_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"network_security_group_id":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_network":{"schema":{"address_space":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"guid":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"subnets":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vnet_peerings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vnet_peerings_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_virtual_network_gateway":{"schema":{"active_active":{"type":"TypeBool","computed":true},"bgp_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","computed":true},"peer_weight":{"type":"TypeInt","computed":true},"peering_address":{"type":"TypeString","computed":true}}}},"custom_route":{"type":"TypeList","computed":true,"elem":{"schema":{"address_prefixes":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"default_local_network_gateway_id":{"type":"TypeString","computed":true},"enable_bgp":{"type":"TypeBool","computed":true},"generation":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_ip_address_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"vpn_client_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"aad_audience":{"type":"TypeString","computed":true},"aad_issuer":{"type":"TypeString","computed":true},"aad_tenant":{"type":"TypeString","computed":true},"address_space":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"radius_server_address":{"type":"TypeString","computed":true},"radius_server_secret":{"type":"TypeString","computed":true},"revoked_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"root_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"public_cert_data":{"type":"TypeString","computed":true}}}},"vpn_client_protocols":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"vpn_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_network_gateway_connection":{"schema":{"authorization_key":{"type":"TypeString","computed":true},"connection_protocol":{"type":"TypeString","computed":true},"dpd_timeout_seconds":{"type":"TypeInt","computed":true},"egress_bytes_transferred":{"type":"TypeInt","computed":true},"enable_bgp":{"type":"TypeBool","computed":true},"express_route_circuit_id":{"type":"TypeString","computed":true},"express_route_gateway_bypass":{"type":"TypeBool","computed":true},"ingress_bytes_transferred":{"type":"TypeInt","computed":true},"ipsec_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"dh_group":{"type":"TypeString","computed":true},"ike_encryption":{"type":"TypeString","computed":true},"ike_integrity":{"type":"TypeString","computed":true},"ipsec_encryption":{"type":"TypeString","computed":true},"ipsec_integrity":{"type":"TypeString","computed":true},"pfs_group":{"type":"TypeString","computed":true},"sa_datasize":{"type":"TypeInt","computed":true},"sa_lifetime":{"type":"TypeInt","computed":true}}}},"local_azure_ip_address_enabled":{"type":"TypeBool","computed":true},"local_network_gateway_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"peer_virtual_network_gateway_id":{"type":"TypeString","computed":true},"private_link_fast_path_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"resource_guid":{"type":"TypeString","computed":true},"routing_weight":{"type":"TypeInt","computed":true},"shared_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"traffic_selector_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"local_address_cidrs":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"remote_address_cidrs":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"type":{"type":"TypeString","computed":true},"use_policy_based_traffic_selectors":{"type":"TypeBool","computed":true},"virtual_network_gateway_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_wan":{"schema":{"allow_branch_to_branch_traffic":{"type":"TypeBool","computed":true},"disable_vpn_encryption":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"office365_local_breakout_category":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_hub_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"vpn_site_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_vmware_private_cloud":{"schema":{"circuit":{"type":"TypeList","computed":true,"elem":{"schema":{"express_route_id":{"type":"TypeString","computed":true},"express_route_private_peering_id":{"type":"TypeString","computed":true},"primary_subnet_cidr":{"type":"TypeString","computed":true},"secondary_subnet_cidr":{"type":"TypeString","computed":true}}}},"hcx_cloud_manager_endpoint":{"type":"TypeString","computed":true},"internet_connection_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"management_cluster":{"type":"TypeList","computed":true,"elem":{"schema":{"hosts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeInt","computed":true},"size":{"type":"TypeInt","computed":true}}}},"management_subnet_cidr":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_subnet_cidr":{"type":"TypeString","computed":true},"nsxt_certificate_thumbprint":{"type":"TypeString","computed":true},"nsxt_manager_endpoint":{"type":"TypeString","computed":true},"provisioning_subnet_cidr":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vcenter_certificate_thumbprint":{"type":"TypeString","computed":true},"vcsa_endpoint":{"type":"TypeString","computed":true},"vmotion_subnet_cidr":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_vpn_gateway":{"schema":{"bgp_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","computed":true},"bgp_peering_address":{"type":"TypeString","computed":true},"instance_0_bgp_peering_address":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"default_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_id":{"type":"TypeString","computed":true},"tunnel_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"instance_1_bgp_peering_address":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"default_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_id":{"type":"TypeString","computed":true},"tunnel_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"peer_weight":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"scale_unit":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_vpn_server_configuration":{"schema":{"azure_active_directory_authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeString","computed":true},"issuer":{"type":"TypeString","computed":true},"tenant":{"type":"TypeString","computed":true}}}},"client_revoked_certificate":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"client_root_certificate":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"public_cert_data":{"type":"TypeString","computed":true}}}},"ipsec_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"dh_group":{"type":"TypeString","computed":true},"ike_encryption":{"type":"TypeString","computed":true},"ike_integrity":{"type":"TypeString","computed":true},"ipsec_encryption":{"type":"TypeString","computed":true},"ipsec_integrity":{"type":"TypeString","computed":true},"pfs_group":{"type":"TypeString","computed":true},"sa_data_size_kilobytes":{"type":"TypeInt","computed":true},"sa_lifetime_seconds":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"radius":{"type":"TypeList","computed":true,"elem":{"schema":{"client_root_certificate":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"server":{"type":"TypeList","computed":true,"elem":{"schema":{"address":{"type":"TypeString","computed":true},"score":{"type":"TypeInt","computed":true},"secret":{"type":"TypeString","computed":true}}}},"server_root_certificate":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"public_cert_data":{"type":"TypeString","computed":true}}}}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vpn_authentication_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"vpn_protocols":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_web_application_firewall_policy":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_web_pubsub":{"schema":{"aad_auth_enabled":{"type":"TypeBool","computed":true},"capacity":{"type":"TypeInt","computed":true},"external_ip":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"local_auth_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"public_port":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"server_port":{"type":"TypeInt","computed":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tls_client_cert_enabled":{"type":"TypeBool","computed":true},"version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_web_pubsub_private_link_resource":{"schema":{"shared_private_link_resource_types":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"subresource_name":{"type":"TypeString","computed":true}}}},"web_pubsub_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_windows_function_app":{"schema":{"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"The list of Allowed audience values considered when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret for the Client ID.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true}}}},"additional_login_parameters":{"type":"TypeMap","description":"The map of Login Parameters sent to the OpenID Connect authorization endpoint when a user logs in.","computed":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","description":"The default authentication provider used when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","description":"Is the Authentication / Authorization feature enabled?","computed":true},"facebook":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret":{"type":"TypeString","description":"The App Secret of the Facebook app used for Facebook Login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"github":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret of the GitHub app used for GitHub Login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret":{"type":"TypeString","description":"The client secret associated with the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes that requested as part of Google Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"issuer":{"type":"TypeString","description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens.","computed":true},"microsoft":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret":{"type":"TypeString","description":"The OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"runtime_version":{"type":"TypeString","description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Are platform-specific security tokens that are obtained during login flows durably stored?","computed":true},"twitter":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret":{"type":"TypeString","description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_client_action":{"type":"TypeString","description":"The action taken when an unauthenticated client attempts to access the app.","computed":true}}}},"auth_settings_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret_certificate_thumbprint":{"type":"TypeString","description":"The thumbprint of the certificate used for signing purposes.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true},"jwt_allowed_client_applications":{"type":"TypeList","description":"A list of Allowed Client Applications in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","description":"A list of Allowed Groups in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","description":"The Azure Tenant URI for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`","computed":true},"www_authentication_disabled":{"type":"TypeBool","description":"Is the www-authenticate provider omitted from the request?","computed":true}}}},"apple_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Apple web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Apple Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Apple Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"auth_enabled":{"type":"TypeBool","description":"Is the AuthV2 Settings be enabled.","computed":true},"azure_static_web_app_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with Azure Static Web App Authentication.","computed":true}}}},"config_file_path":{"type":"TypeString","description":"The path to the App Auth settings.","computed":true},"custom_oidc_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`","computed":true},"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with this Custom OIDC.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","description":"The name of the Custom OIDC Authentication Provider.","computed":true},"name_claim_type":{"type":"TypeString","description":"The name of the claim that contains the users name.","computed":true},"openid_configuration_endpoint":{"type":"TypeString","description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider.","computed":true},"scopes":{"type":"TypeList","description":"The list of the scopes that should be requested while authenticating.","computed":true,"elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","description":"The Default Authentication Provider used when the `unauthenticated_action` is set to `RedirectToLoginPage`.","computed":true},"excluded_paths":{"type":"TypeList","description":"The paths which are excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","computed":true,"elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"graph_api_version":{"type":"TypeString","description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"forward_proxy_convention":{"type":"TypeString","description":"The convention used to determine the url of the request made.","computed":true},"forward_proxy_custom_host_header_name":{"type":"TypeString","description":"The name of the header containing the host of the request.","computed":true},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","description":"The name of the header containing the scheme of the request.","computed":true},"github_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"http_route_api_prefix":{"type":"TypeString","description":"The prefix that precedes all the authentication and authorisation paths.","computed":true},"login":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","computed":true,"elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","computed":true},"cookie_expiration_time":{"type":"TypeString","description":"The time after the request is made when the session cookie will expire.","computed":true},"logout_endpoint":{"type":"TypeString","description":"The endpoint to which logout requests are made.","computed":true},"nonce_expiration_time":{"type":"TypeString","description":"The time after the request is made when the nonce will expire.","computed":true},"preserve_url_fragments_for_logins":{"type":"TypeBool","description":"Are the fragments from the request be preserved after the login request is made.","computed":true},"token_refresh_extension_time":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Is the Token Store configuration Enabled.","computed":true},"token_store_path":{"type":"TypeString","description":"The directory path in the App Filesystem in which the tokens are stored.","computed":true},"token_store_sas_setting_name":{"type":"TypeString","description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens.","computed":true},"validate_nonce":{"type":"TypeBool","description":"Is the nonce be validated while completing the login flow.","computed":true}}}},"microsoft_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"require_authentication":{"type":"TypeBool","description":"Is the authentication flow used for all requests.","computed":true},"require_https":{"type":"TypeBool","description":"Is HTTPS required on connections?","computed":true},"runtime_version":{"type":"TypeString","description":"The Runtime Version of the Authentication and Authorisation feature of this App.","computed":true},"twitter_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_action":{"type":"TypeString","computed":true}}}},"backup":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","description":"Is this backup job enabled?","computed":true},"name":{"type":"TypeString","description":"The name of this Backup.","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","description":"How often the backup should is executed in multiples of the `frequency_unit`.","computed":true},"frequency_unit":{"type":"TypeString","description":"The unit of time for how often the backup takes place.","computed":true},"keep_at_least_one_backup":{"type":"TypeBool","description":"Does the service keep at least one backup, regardless of age of backup.","computed":true},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","description":"After how many days are backups deleted.","computed":true},"start_time":{"type":"TypeString","description":"When the schedule should start working in RFC-3339 format.","computed":true}}}},"storage_account_url":{"type":"TypeString","description":"The SAS URL to the container.","computed":true}}}},"builtin_logging_enabled":{"type":"TypeBool","computed":true},"client_certificate_enabled":{"type":"TypeBool","computed":true},"client_certificate_exclusion_paths":{"type":"TypeString","description":"Paths to exclude when using client certificates, separated by ;","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of this Connection.","computed":true},"type":{"type":"TypeString","description":"The type of database.","computed":true},"value":{"type":"TypeString","description":"The connection string value.","computed":true}}}},"content_share_force_disabled":{"type":"TypeBool","computed":true},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true},"functions_extension_version":{"type":"TypeString","computed":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_plan_id":{"type":"TypeString","computed":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"api_definition_url":{"type":"TypeString","computed":true},"api_management_api_id":{"type":"TypeString","computed":true},"app_command_line":{"type":"TypeString","computed":true},"app_scale_limit":{"type":"TypeInt","computed":true},"app_service_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","computed":true},"retention_period_days":{"type":"TypeInt","computed":true}}}},"application_insights_connection_string":{"type":"TypeString","computed":true},"application_insights_key":{"type":"TypeString","computed":true},"application_stack":{"type":"TypeList","computed":true,"elem":{"schema":{"dotnet_version":{"type":"TypeString","computed":true},"java_version":{"type":"TypeString","computed":true},"node_version":{"type":"TypeString","computed":true},"powershell_core_version":{"type":"TypeString","computed":true},"use_custom_runtime":{"type":"TypeBool","computed":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","computed":true}}}},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","description":"The list of origins that are allowed to make cross-origin calls.","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","description":"Are credentials allowed in CORS requests?","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"elastic_instance_minimum":{"type":"TypeInt","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_eviction_time_in_min":{"type":"TypeInt","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"ip_restriction_default_action":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"pre_warmed_instance_count":{"type":"TypeInt","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"scm_ip_restriction_default_action":{"type":"TypeString","computed":true},"scm_minimum_tls_version":{"type":"TypeString","computed":true},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"windows_fx_version":{"type":"TypeString","computed":true},"worker_count":{"type":"TypeInt","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connection_string_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"storage_account_access_key":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","computed":true},"storage_key_vault_secret_id":{"type":"TypeString","description":"The Key Vault Secret ID, including version, that contains the Connection String used to connect to the storage account for this Function App.","computed":true},"storage_uses_managed_identity":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","computed":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":10}},"azurerm_windows_web_app":{"schema":{"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"The list of Allowed audience values considered when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret for the Client ID.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true}}}},"additional_login_parameters":{"type":"TypeMap","description":"The map of Login Parameters sent to the OpenID Connect authorization endpoint when a user logs in.","computed":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","description":"The default authentication provider used when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","description":"Is the Authentication / Authorization feature enabled?","computed":true},"facebook":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret":{"type":"TypeString","description":"The App Secret of the Facebook app used for Facebook Login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"github":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret of the GitHub app used for GitHub Login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret":{"type":"TypeString","description":"The client secret associated with the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes that requested as part of Google Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"issuer":{"type":"TypeString","description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens.","computed":true},"microsoft":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret":{"type":"TypeString","description":"The OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"runtime_version":{"type":"TypeString","description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Are platform-specific security tokens that are obtained during login flows durably stored?","computed":true},"twitter":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret":{"type":"TypeString","description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_client_action":{"type":"TypeString","description":"The action taken when an unauthenticated client attempts to access the app.","computed":true}}}},"auth_settings_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret_certificate_thumbprint":{"type":"TypeString","description":"The thumbprint of the certificate used for signing purposes.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true},"jwt_allowed_client_applications":{"type":"TypeList","description":"A list of Allowed Client Applications in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","description":"A list of Allowed Groups in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","description":"The Azure Tenant URI for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`","computed":true},"www_authentication_disabled":{"type":"TypeBool","description":"Is the www-authenticate provider omitted from the request?","computed":true}}}},"apple_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Apple web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Apple Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Apple Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"auth_enabled":{"type":"TypeBool","description":"Is the AuthV2 Settings be enabled.","computed":true},"azure_static_web_app_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with Azure Static Web App Authentication.","computed":true}}}},"config_file_path":{"type":"TypeString","description":"The path to the App Auth settings.","computed":true},"custom_oidc_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`","computed":true},"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with this Custom OIDC.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","description":"The name of the Custom OIDC Authentication Provider.","computed":true},"name_claim_type":{"type":"TypeString","description":"The name of the claim that contains the users name.","computed":true},"openid_configuration_endpoint":{"type":"TypeString","description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider.","computed":true},"scopes":{"type":"TypeList","description":"The list of the scopes that should be requested while authenticating.","computed":true,"elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","description":"The Default Authentication Provider used when the `unauthenticated_action` is set to `RedirectToLoginPage`.","computed":true},"excluded_paths":{"type":"TypeList","description":"The paths which are excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","computed":true,"elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"graph_api_version":{"type":"TypeString","description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"forward_proxy_convention":{"type":"TypeString","description":"The convention used to determine the url of the request made.","computed":true},"forward_proxy_custom_host_header_name":{"type":"TypeString","description":"The name of the header containing the host of the request.","computed":true},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","description":"The name of the header containing the scheme of the request.","computed":true},"github_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"http_route_api_prefix":{"type":"TypeString","description":"The prefix that precedes all the authentication and authorisation paths.","computed":true},"login":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","computed":true,"elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","computed":true},"cookie_expiration_time":{"type":"TypeString","description":"The time after the request is made when the session cookie will expire.","computed":true},"logout_endpoint":{"type":"TypeString","description":"The endpoint to which logout requests are made.","computed":true},"nonce_expiration_time":{"type":"TypeString","description":"The time after the request is made when the nonce will expire.","computed":true},"preserve_url_fragments_for_logins":{"type":"TypeBool","description":"Are the fragments from the request be preserved after the login request is made.","computed":true},"token_refresh_extension_time":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Is the Token Store configuration Enabled.","computed":true},"token_store_path":{"type":"TypeString","description":"The directory path in the App Filesystem in which the tokens are stored.","computed":true},"token_store_sas_setting_name":{"type":"TypeString","description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens.","computed":true},"validate_nonce":{"type":"TypeBool","description":"Is the nonce be validated while completing the login flow.","computed":true}}}},"microsoft_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"require_authentication":{"type":"TypeBool","description":"Is the authentication flow used for all requests.","computed":true},"require_https":{"type":"TypeBool","description":"Is HTTPS required on connections?","computed":true},"runtime_version":{"type":"TypeString","description":"The Runtime Version of the Authentication and Authorisation feature of this App.","computed":true},"twitter_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_action":{"type":"TypeString","computed":true}}}},"backup":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","description":"Is this backup job enabled?","computed":true},"name":{"type":"TypeString","description":"The name of this Backup.","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","description":"How often the backup should is executed in multiples of the `frequency_unit`.","computed":true},"frequency_unit":{"type":"TypeString","description":"The unit of time for how often the backup takes place.","computed":true},"keep_at_least_one_backup":{"type":"TypeBool","description":"Does the service keep at least one backup, regardless of age of backup.","computed":true},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","description":"After how many days are backups deleted.","computed":true},"start_time":{"type":"TypeString","description":"When the schedule should start working in RFC-3339 format.","computed":true}}}},"storage_account_url":{"type":"TypeString","description":"The SAS URL to the container.","computed":true}}}},"client_affinity_enabled":{"type":"TypeBool","computed":true},"client_certificate_enabled":{"type":"TypeBool","computed":true},"client_certificate_exclusion_paths":{"type":"TypeString","description":"Paths to exclude when using client certificates, separated by ;","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of this Connection.","computed":true},"type":{"type":"TypeString","description":"The type of database.","computed":true},"value":{"type":"TypeString","description":"The connection string value.","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","computed":true,"elem":{"schema":{"application_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","computed":true,"elem":{"schema":{"level":{"type":"TypeString","computed":true},"retention_in_days":{"type":"TypeInt","computed":true},"sas_url":{"type":"TypeString","computed":true}}}},"file_system_level":{"type":"TypeString","computed":true}}}},"detailed_error_messages":{"type":"TypeBool","computed":true},"failed_request_tracing":{"type":"TypeBool","computed":true},"http_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","computed":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","computed":true},"sas_url":{"type":"TypeString","computed":true}}}},"file_system":{"type":"TypeList","computed":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","computed":true},"retention_in_mb":{"type":"TypeInt","computed":true}}}}}}}}}},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_plan_id":{"type":"TypeString","computed":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"api_definition_url":{"type":"TypeString","computed":true},"api_management_api_id":{"type":"TypeString","computed":true},"app_command_line":{"type":"TypeString","computed":true},"application_stack":{"type":"TypeList","computed":true,"elem":{"schema":{"current_stack":{"type":"TypeString","computed":true},"docker_image_name":{"type":"TypeString","computed":true},"docker_registry_password":{"type":"TypeString","computed":true},"docker_registry_url":{"type":"TypeString","computed":true},"docker_registry_username":{"type":"TypeString","computed":true},"dotnet_core_version":{"type":"TypeString","computed":true},"dotnet_version":{"type":"TypeString","computed":true},"java_container":{"type":"TypeString","computed":true},"java_container_version":{"type":"TypeString","computed":true},"java_embedded_server_enabled":{"type":"TypeBool","computed":true},"java_version":{"type":"TypeString","computed":true},"node_version":{"type":"TypeString","computed":true},"php_version":{"type":"TypeString","computed":true},"python":{"type":"TypeBool","computed":true},"python_version":{"type":"TypeString","computed":true},"tomcat_version":{"type":"TypeString","computed":true}}}},"auto_heal_setting":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeList","computed":true,"elem":{"schema":{"action_type":{"type":"TypeString","computed":true},"custom_action":{"type":"TypeList","computed":true,"elem":{"schema":{"executable":{"type":"TypeString","computed":true},"parameters":{"type":"TypeString","computed":true}}}},"minimum_process_execution_time":{"type":"TypeString","computed":true}}}},"trigger":{"type":"TypeList","computed":true,"elem":{"schema":{"private_memory_kb":{"type":"TypeInt","computed":true},"requests":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true}}}},"slow_request":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"time_taken":{"type":"TypeString","computed":true}}}},"slow_request_with_path":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"time_taken":{"type":"TypeString","computed":true}}}},"status_code":{"type":"TypeSet","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"status_code_range":{"type":"TypeString","computed":true},"sub_status":{"type":"TypeInt","computed":true},"win32_status_code":{"type":"TypeInt","computed":true}}}}}}}}}},"container_registry_managed_identity_client_id":{"type":"TypeString","computed":true},"container_registry_use_managed_identity":{"type":"TypeBool","computed":true},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","description":"The list of origins that are allowed to make cross-origin calls.","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","description":"Are credentials allowed in CORS requests?","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","computed":true},"handler_mapping":{"type":"TypeSet","computed":true,"elem":{"schema":{"arguments":{"type":"TypeString","computed":true},"extension":{"type":"TypeString","computed":true},"script_processor_path":{"type":"TypeString","computed":true}}}},"health_check_eviction_time_in_min":{"type":"TypeInt","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"ip_restriction_default_action":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","computed":true},"local_mysql_enabled":{"type":"TypeBool","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"scm_ip_restriction_default_action":{"type":"TypeString","computed":true},"scm_minimum_tls_version":{"type":"TypeString","computed":true},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker":{"type":"TypeBool","computed":true},"virtual_application":{"type":"TypeList","computed":true,"elem":{"schema":{"physical_path":{"type":"TypeString","computed":true},"preload":{"type":"TypeBool","computed":true},"virtual_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"physical_path":{"type":"TypeString","computed":true},"virtual_path":{"type":"TypeString","computed":true}}}},"virtual_path":{"type":"TypeString","computed":true}}}},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"windows_fx_version":{"type":"TypeString","computed":true},"worker_count":{"type":"TypeInt","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connection_string_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"storage_account":{"type":"TypeList","computed":true,"elem":{"schema":{"access_key":{"type":"TypeString","computed":true},"account_name":{"type":"TypeString","computed":true},"mount_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"share_name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","computed":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":10}}}}} +{"providerName":"azurerm","schemaVersion":"1","providerSchema":{"schema":{"auxiliary_tenant_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":3},"client_certificate":{"type":"TypeString","optional":true,"description":"Base64 encoded PKCS#12 certificate bundle to use when authenticating as a Service Principal using a Client Certificate"},"client_certificate_password":{"type":"TypeString","optional":true,"description":"The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate"},"client_certificate_path":{"type":"TypeString","optional":true,"description":"The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate."},"client_id":{"type":"TypeString","optional":true,"description":"The Client ID which should be used."},"client_id_file_path":{"type":"TypeString","optional":true,"description":"The path to a file containing the Client ID which should be used."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret."},"client_secret_file_path":{"type":"TypeString","optional":true,"description":"The path to a file containing the Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret."},"disable_correlation_request_id":{"type":"TypeBool","optional":true,"description":"This will disable the x-ms-correlation-request-id header."},"disable_terraform_partner_id":{"type":"TypeBool","optional":true,"description":"This will disable the Terraform Partner ID which is used if a custom `partner_id` isn't specified."},"environment":{"type":"TypeString","optional":true,"description":"The Cloud Environment which should be used. Possible values are public, usgovernment, and china. Defaults to public. Not used and should not be specified when `metadata_host` is specified."},"features":{"type":"TypeList","required":true,"elem":{"schema":{"api_management":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_delete_on_destroy":{"type":"TypeBool","optional":true,"default":true},"recover_soft_deleted":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"app_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_delete_on_destroy":{"type":"TypeBool","optional":true,"default":true},"recover_soft_deleted":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"application_insights":{"type":"TypeList","optional":true,"elem":{"schema":{"disable_generated_rule":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"cognitive_account":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_delete_on_destroy":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_delete_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_certificates_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_certificate` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_hardware_security_module_keys_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_managed_hardware_security_module_key` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_hardware_security_modules_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_managed_hardware_security_module` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_keys_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_key` resources will be permanently deleted (e.g purged), when destroyed"},"purge_soft_deleted_secrets_on_destroy":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_secret` resources will be permanently deleted (e.g purged), when destroyed"},"recover_soft_deleted_certificates":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_certificate` resources will be restored, instead of creating new ones"},"recover_soft_deleted_hardware_security_module_keys":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_managed_hardware_security_module_key` resources will be restored, instead of creating new ones"},"recover_soft_deleted_key_vaults":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault` resources will be restored, instead of creating new ones"},"recover_soft_deleted_keys":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_key` resources will be restored, instead of creating new ones"},"recover_soft_deleted_secrets":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled soft-deleted `azurerm_key_vault_secret` resources will be restored, instead of creating new ones"}}},"maxItems":1},"log_analytics_workspace":{"type":"TypeList","optional":true,"elem":{"schema":{"permanently_delete_on_destroy":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"machine_learning":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_soft_deleted_workspace_on_destroy":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"managed_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"expand_without_downtime":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"netapp":{"type":"TypeList","optional":true,"elem":{"schema":{"delete_backups_on_backup_vault_destroy":{"type":"TypeBool","optional":true,"default":false,"description":"When enabled, backups will be deleted when the `azurerm_netapp_backup_vault` resource is destroyed"},"prevent_volume_destruction":{"type":"TypeBool","optional":true,"default":true,"description":"When enabled, the volume will not be destroyed, safeguarding from severe data loss"}}},"maxItems":1},"postgresql_flexible_server":{"type":"TypeList","optional":true,"elem":{"schema":{"restart_server_on_configuration_value_change":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"recovery_service":{"type":"TypeList","optional":true,"elem":{"schema":{"purge_protected_items_from_vault_on_destroy":{"type":"TypeBool","optional":true,"default":false},"vm_backup_stop_protection_and_retain_data_on_destroy":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"recovery_services_vaults":{"type":"TypeList","optional":true,"elem":{"schema":{"recover_soft_deleted_backup_protected_vm":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"resource_group":{"type":"TypeList","optional":true,"elem":{"schema":{"prevent_deletion_if_contains_resources":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"storage":{"type":"TypeList","optional":true,"elem":{"schema":{"data_plane_available":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"subscription":{"type":"TypeList","optional":true,"elem":{"schema":{"prevent_cancellation_on_destroy":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"template_deployment":{"type":"TypeList","optional":true,"elem":{"schema":{"delete_nested_items_during_deletion":{"type":"TypeBool","required":true}}},"maxItems":1},"virtual_machine":{"type":"TypeList","optional":true,"elem":{"schema":{"delete_os_disk_on_deletion":{"type":"TypeBool","optional":true,"default":false},"detach_implicit_data_disk_on_deletion":{"type":"TypeBool","optional":true,"default":false},"graceful_shutdown":{"type":"TypeBool","optional":true,"default":false},"skip_shutdown_and_force_delete":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"virtual_machine_scale_set":{"type":"TypeList","optional":true,"elem":{"schema":{"force_delete":{"type":"TypeBool","optional":true,"default":false},"reimage_on_manual_upgrade":{"type":"TypeBool","optional":true,"default":true},"roll_instances_when_required":{"type":"TypeBool","optional":true,"default":true},"scale_to_zero_before_deletion":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}}},"maxItems":1,"minItems":1},"metadata_host":{"type":"TypeString","optional":true,"description":"The Hostname which should be used for the Azure Metadata Service."},"msi_endpoint":{"type":"TypeString","optional":true,"description":"The path to a custom endpoint for Managed Service Identity - in most circumstances this should be detected automatically. "},"oidc_request_token":{"type":"TypeString","optional":true,"description":"The bearer token for the request to the OIDC provider. For use when authenticating as a Service Principal using OpenID Connect."},"oidc_request_url":{"type":"TypeString","optional":true,"description":"The URL for the OIDC provider from which to request an ID token. For use when authenticating as a Service Principal using OpenID Connect."},"oidc_token":{"type":"TypeString","optional":true,"description":"The OIDC ID token for use when authenticating as a Service Principal using OpenID Connect."},"oidc_token_file_path":{"type":"TypeString","optional":true,"description":"The path to a file containing an OIDC ID token for use when authenticating as a Service Principal using OpenID Connect."},"partner_id":{"type":"TypeString","optional":true,"description":"A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution."},"resource_provider_registrations":{"type":"TypeString","optional":true,"description":"The set of Resource Providers which should be automatically registered for the subscription."},"resource_providers_to_register":{"type":"TypeList","optional":true,"description":"A list of Resource Providers to explicitly register for the subscription, in addition to those specified by the `resource_provider_registrations` property.","elem":{"type":"TypeString"}},"skip_provider_registration":{"type":"TypeBool","optional":true,"description":"Should the AzureRM Provider skip registering all of the Resource Providers that it supports, if they're not already registered?"},"storage_use_azuread":{"type":"TypeBool","optional":true,"description":"Should the AzureRM Provider use Azure AD Authentication when accessing the Storage Data Plane APIs?"},"subscription_id":{"type":"TypeString","optional":true,"description":"The Subscription ID which should be used."},"tenant_id":{"type":"TypeString","optional":true,"description":"The Tenant ID which should be used."},"use_aks_workload_identity":{"type":"TypeBool","optional":true,"description":"Allow Azure AKS Workload Identity to be used for Authentication."},"use_cli":{"type":"TypeBool","optional":true,"default":true,"description":"Allow Azure CLI to be used for Authentication."},"use_msi":{"type":"TypeBool","optional":true,"description":"Allow Managed Service Identity to be used for Authentication."},"use_oidc":{"type":"TypeBool","optional":true,"description":"Allow OpenID Connect to be used for authentication"}},"resources":{"azurerm_aadb2c_directory":{"schema":{"billing_type":{"type":"TypeString","description":"The type of billing for the B2C tenant. Possible values include: `MAU` or `Auths`.","computed":true},"country_code":{"type":"TypeString","optional":true,"description":"Country code of the B2C tenant. See https://aka.ms/B2CDataResidency for valid country codes.","computed":true,"forceNew":true},"data_residency_location":{"type":"TypeString","required":true,"description":"Location in which the B2C tenant is hosted and data resides. See https://aka.ms/B2CDataResidency for more information.","forceNew":true},"display_name":{"type":"TypeString","optional":true,"description":"The initial display name of the B2C tenant.","computed":true,"forceNew":true},"domain_name":{"type":"TypeString","required":true,"description":"Domain name of the B2C tenant, including onmicrosoft.com suffix.","forceNew":true},"effective_start_date":{"type":"TypeString","description":"The date from which the billing type took effect. May not be populated until after the first billing cycle.","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"description":"Billing SKU for the B2C tenant. See https://aka.ms/b2cBilling for more information."},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","description":"The Tenant ID for the B2C tenant.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_active_directory_domain_service":{"schema":{"deployment_id":{"type":"TypeString","computed":true},"domain_configuration_type":{"type":"TypeString","optional":true,"forceNew":true},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"filtered_sync_enabled":{"type":"TypeBool","optional":true,"default":false},"initial_replica_set":{"type":"TypeList","required":true,"elem":{"schema":{"domain_controller_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"external_access_ip_address":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"service_status":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notifications":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"notify_dc_admins":{"type":"TypeBool","optional":true,"default":false},"notify_global_admins":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","computed":true},"secure_ldap":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"certificate_expiry":{"type":"TypeString","computed":true},"certificate_thumbprint":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","required":true},"external_access_enabled":{"type":"TypeBool","optional":true,"default":false},"pfx_certificate":{"type":"TypeString","required":true},"pfx_certificate_password":{"type":"TypeString","required":true},"public_certificate":{"type":"TypeString","computed":true}}},"maxItems":1},"security":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"kerberos_armoring_enabled":{"type":"TypeBool","optional":true,"default":false},"kerberos_rc4_encryption_enabled":{"type":"TypeBool","optional":true,"default":false},"ntlm_v1_enabled":{"type":"TypeBool","optional":true,"default":false},"sync_kerberos_passwords":{"type":"TypeBool","optional":true,"default":false},"sync_ntlm_passwords":{"type":"TypeBool","optional":true,"default":false},"sync_on_prem_passwords":{"type":"TypeBool","optional":true,"default":false},"tls_v1_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"sku":{"type":"TypeString","required":true},"sync_owner":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true},"version":{"type":"TypeInt","computed":true}},"timeouts":{"create":180,"read":5,"delete":60,"update":120}},"azurerm_active_directory_domain_service_replica_set":{"schema":{"domain_controller_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"domain_service_id":{"type":"TypeString","required":true,"forceNew":true},"external_access_ip_address":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"service_status":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":180,"read":5,"delete":60}},"azurerm_active_directory_domain_service_trust":{"schema":{"domain_service_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"trusted_domain_dns_ips":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":2},"trusted_domain_fqdn":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_advanced_threat_protection":{"schema":{"enabled":{"type":"TypeBool","required":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_advisor_suppression":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recommendation_id":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","required":true,"forceNew":true},"suppression_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_ai_services":{"schema":{"custom_subdomain_name":{"type":"TypeString","optional":true,"forceNew":true},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"managed_hsm_key_id":{"type":"TypeString","optional":true}}},"maxItems":1},"endpoint":{"type":"TypeString","computed":true},"fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acls":{"type":"TypeList","optional":true,"elem":{"schema":{"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"virtual_network_rules":{"type":"TypeSet","optional":true,"elem":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false},"subnet_id":{"type":"TypeString","required":true}}}}}},"maxItems":1},"outbound_network_access_restricted":{"type":"TypeBool","optional":true,"default":false},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access":{"type":"TypeString","optional":true,"default":"Enabled"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true},"storage":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_analysis_services_server":{"schema":{"admin_users":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"backup_blob_container_uri":{"type":"TypeString","optional":true},"ipv4_firewall_rule":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"range_end":{"type":"TypeString","required":true},"range_start":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"power_bi_service_enabled":{"type":"TypeBool","optional":true},"querypool_connection_mode":{"type":"TypeString","optional":true,"default":"All"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_full_name":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_connection":{"schema":{"display_name":{"type":"TypeString","optional":true,"default":"Service Bus","forceNew":true},"managed_api_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameter_values":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management":{"schema":{"additional_location":{"type":"TypeList","optional":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true,"computed":true},"gateway_disabled":{"type":"TypeBool","optional":true,"default":false},"gateway_regional_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_id":{"type":"TypeString","optional":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_network_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","required":true}}},"maxItems":1},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_password":{"type":"TypeString","optional":true},"encoded_certificate":{"type":"TypeString","required":true},"expiry":{"type":"TypeString","computed":true},"store_name":{"type":"TypeString","required":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}},"maxItems":10},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"delegation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"subscriptions_enabled":{"type":"TypeBool","optional":true,"default":false},"url":{"type":"TypeString","optional":true},"user_registration_enabled":{"type":"TypeBool","optional":true,"default":false},"validation_key":{"type":"TypeString","optional":true}}},"maxItems":1},"developer_portal_url":{"type":"TypeString","computed":true},"gateway_disabled":{"type":"TypeBool","optional":true,"default":false},"gateway_regional_url":{"type":"TypeString","computed":true},"gateway_url":{"type":"TypeString","computed":true},"hostname_configuration":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"developer_portal":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"management":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"portal":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"default_ssl_binding":{"type":"TypeBool","optional":true,"computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"scm":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"management_api_url":{"type":"TypeString","computed":true},"min_api_version":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification_sender_email":{"type":"TypeString","optional":true,"computed":true},"portal_url":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"protocols":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enable_http2":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"public_ip_address_id":{"type":"TypeString","optional":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"publisher_email":{"type":"TypeString","required":true},"publisher_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scm_url":{"type":"TypeString","computed":true},"security":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enable_backend_ssl30":{"type":"TypeBool","optional":true,"default":false},"enable_backend_tls10":{"type":"TypeBool","optional":true,"default":false},"enable_backend_tls11":{"type":"TypeBool","optional":true,"default":false},"enable_frontend_ssl30":{"type":"TypeBool","optional":true,"default":false},"enable_frontend_tls10":{"type":"TypeBool","optional":true,"default":false},"enable_frontend_tls11":{"type":"TypeBool","optional":true,"default":false},"tls_ecdhe_ecdsa_with_aes128_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_ecdhe_ecdsa_with_aes256_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_ecdhe_rsa_with_aes128_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_ecdhe_rsa_with_aes256_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes128_cbc_sha256_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes128_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes128_gcm_sha256_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes256_cbc_sha256_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes256_cbc_sha_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"tls_rsa_with_aes256_gcm_sha384_ciphers_enabled":{"type":"TypeBool","optional":true,"default":false},"triple_des_ciphers_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"sign_in":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"sign_up":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"terms_of_service":{"type":"TypeList","required":true,"elem":{"schema":{"consent_required":{"type":"TypeBool","required":true},"enabled":{"type":"TypeBool","required":true},"text":{"type":"TypeString","optional":true}}},"maxItems":1}}},"maxItems":1},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_access":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"primary_key":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}},"maxItems":1},"virtual_network_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","required":true}}},"maxItems":1},"virtual_network_type":{"type":"TypeString","optional":true,"default":"None"},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_api_management_api":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_type":{"type":"TypeString","optional":true,"computed":true},"contact":{"type":"TypeList","optional":true,"elem":{"schema":{"email":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"url":{"type":"TypeString","optional":true}}},"maxItems":1,"minItems":1},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"import":{"type":"TypeList","optional":true,"elem":{"schema":{"content_format":{"type":"TypeString","required":true},"content_value":{"type":"TypeString","required":true},"wsdl_selector":{"type":"TypeList","optional":true,"elem":{"schema":{"endpoint_name":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"is_current":{"type":"TypeBool","computed":true},"is_online":{"type":"TypeBool","computed":true},"license":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"url":{"type":"TypeString","optional":true}}},"maxItems":1,"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"oauth2_authorization":{"type":"TypeList","optional":true,"elem":{"schema":{"authorization_server_name":{"type":"TypeString","required":true},"scope":{"type":"TypeString","optional":true}}},"maxItems":1},"openid_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"bearer_token_sending_methods":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"openid_provider_name":{"type":"TypeString","required":true}}},"maxItems":1},"path":{"type":"TypeString","optional":true,"computed":true},"protocols":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"revision":{"type":"TypeString","required":true,"forceNew":true},"revision_description":{"type":"TypeString","optional":true},"service_url":{"type":"TypeString","optional":true,"computed":true},"source_api_id":{"type":"TypeString","optional":true},"subscription_key_parameter_names":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"header":{"type":"TypeString","required":true},"query":{"type":"TypeString","required":true}}},"maxItems":1},"subscription_required":{"type":"TypeBool","optional":true,"default":true},"terms_of_service_url":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true,"computed":true},"version_description":{"type":"TypeString","optional":true},"version_set_id":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_diagnostic":{"schema":{"always_log_errors":{"type":"TypeBool","optional":true,"computed":true},"api_management_logger_id":{"type":"TypeString","required":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"backend_request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"backend_response":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"frontend_request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"frontend_response":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"http_correlation_protocol":{"type":"TypeString","optional":true,"computed":true},"identifier":{"type":"TypeString","required":true,"forceNew":true},"log_client_ip":{"type":"TypeBool","optional":true,"computed":true},"operation_name_format":{"type":"TypeString","optional":true,"default":"Name"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sampling_percentage":{"type":"TypeFloat","optional":true,"computed":true},"verbosity":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_operation":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"method":{"type":"TypeString","required":true},"operation_id":{"type":"TypeString","required":true,"forceNew":true},"request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"query_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"representation":{"type":"TypeList","optional":true,"elem":{"schema":{"content_type":{"type":"TypeString","required":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"form_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"schema_id":{"type":"TypeString","optional":true},"type_name":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"response":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"representation":{"type":"TypeList","optional":true,"elem":{"schema":{"content_type":{"type":"TypeString","required":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"form_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"schema_id":{"type":"TypeString","optional":true},"type_name":{"type":"TypeString","optional":true}}}},"status_code":{"type":"TypeInt","required":true}}}},"template_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"example":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"external_value":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"summary":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"required":{"type":"TypeBool","required":true},"schema_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_name":{"type":"TypeString","optional":true},"values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"url_template":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_operation_policy":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"operation_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"xml_content":{"type":"TypeString","optional":true,"computed":true},"xml_link":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_operation_tag":{"schema":{"api_operation_id":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_policy":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"xml_content":{"type":"TypeString","optional":true,"computed":true},"xml_link":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_release":{"schema":{"api_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_schema":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"components":{"type":"TypeString","optional":true},"content_type":{"type":"TypeString","required":true},"definitions":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schema_id":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_tag":{"schema":{"api_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_api_tag_description":{"schema":{"api_tag_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"external_documentation_description":{"type":"TypeString","optional":true},"external_documentation_url":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_api_version_set":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"version_header_name":{"type":"TypeString","optional":true},"version_query_name":{"type":"TypeString","optional":true},"versioning_scheme":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_authorization_server":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"authorization_endpoint":{"type":"TypeString","required":true},"authorization_methods":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"bearer_token_sending_methods":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"client_authentication_method":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_registration_endpoint":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true},"default_scope":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"grant_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_owner_password":{"type":"TypeString","optional":true},"resource_owner_username":{"type":"TypeString","optional":true},"support_state":{"type":"TypeBool","optional":true},"token_body_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"token_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_backend":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"credentials":{"type":"TypeList","optional":true,"elem":{"schema":{"authorization":{"type":"TypeList","optional":true,"elem":{"schema":{"parameter":{"type":"TypeString","optional":true},"scheme":{"type":"TypeString","optional":true}}},"maxItems":1},"certificate":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"header":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"query":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protocol":{"type":"TypeString","required":true},"proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true},"url":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","optional":true},"service_fabric_cluster":{"type":"TypeList","optional":true,"elem":{"schema":{"client_certificate_id":{"type":"TypeString","optional":true,"computed":true},"client_certificate_thumbprint":{"type":"TypeString","optional":true,"computed":true},"management_endpoints":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"max_partition_resolution_retries":{"type":"TypeInt","required":true},"server_certificate_thumbprints":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"server_x509_name":{"type":"TypeSet","optional":true,"elem":{"schema":{"issuer_certificate_thumbprint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"title":{"type":"TypeString","optional":true},"tls":{"type":"TypeList","optional":true,"elem":{"schema":{"validate_certificate_chain":{"type":"TypeBool","optional":true},"validate_certificate_name":{"type":"TypeBool","optional":true}}},"maxItems":1},"url":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_certificate":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"data":{"type":"TypeString","optional":true},"expiration":{"type":"TypeString","computed":true},"key_vault_identity_client_id":{"type":"TypeString","optional":true},"key_vault_secret_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_custom_domain":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"developer_portal":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"gateway":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"default_ssl_binding":{"type":"TypeBool","optional":true,"computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"management":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"portal":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"scm":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"certificate_password":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","computed":true},"certificate_status":{"type":"TypeString","computed":true},"expiry":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"negotiate_client_certificate":{"type":"TypeBool","optional":true,"default":false},"ssl_keyvault_identity_client_id":{"type":"TypeString","optional":true},"subject":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_api_management_diagnostic":{"schema":{"always_log_errors":{"type":"TypeBool","optional":true,"computed":true},"api_management_logger_id":{"type":"TypeString","required":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"backend_request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"backend_response":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"frontend_request":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"frontend_response":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"body_bytes":{"type":"TypeInt","optional":true},"data_masking":{"type":"TypeList","optional":true,"elem":{"schema":{"headers":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"query_params":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}},"maxItems":1},"headers_to_log":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"http_correlation_protocol":{"type":"TypeString","optional":true,"computed":true},"identifier":{"type":"TypeString","required":true,"forceNew":true},"log_client_ip":{"type":"TypeBool","optional":true,"computed":true},"operation_name_format":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sampling_percentage":{"type":"TypeFloat","optional":true,"computed":true},"verbosity":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_email_template":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"body":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subject":{"type":"TypeString","required":true},"template_name":{"type":"TypeString","required":true,"forceNew":true},"title":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_gateway":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"location_data":{"type":"TypeList","required":true,"elem":{"schema":{"city":{"type":"TypeString","optional":true},"district":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"region":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_gateway_api":{"schema":{"api_id":{"type":"TypeString","required":true,"forceNew":true},"gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_gateway_certificate_authority":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"certificate_name":{"type":"TypeString","required":true,"forceNew":true},"gateway_name":{"type":"TypeString","required":true,"forceNew":true},"is_trusted":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_gateway_host_name_configuration":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"certificate_id":{"type":"TypeString","required":true},"gateway_name":{"type":"TypeString","required":true,"forceNew":true},"host_name":{"type":"TypeString","required":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"request_client_certificate_enabled":{"type":"TypeBool","optional":true},"tls10_enabled":{"type":"TypeBool","optional":true},"tls11_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_global_schema":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schema_id":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_group":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"external_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","optional":true,"default":"custom","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_group_user":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"user_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_identity_provider_aad":{"schema":{"allowed_tenants":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_library":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"signin_tenant":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_aadb2c":{"schema":{"allowed_tenant":{"type":"TypeString","required":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"authority":{"type":"TypeString","required":true},"client_id":{"type":"TypeString","required":true},"client_library":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","required":true},"password_reset_policy":{"type":"TypeString","optional":true},"profile_editing_policy":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"signin_policy":{"type":"TypeString","required":true},"signin_tenant":{"type":"TypeString","required":true},"signup_policy":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_facebook":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_google":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_microsoft":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_identity_provider_twitter":{"schema":{"api_key":{"type":"TypeString","required":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_secret_key":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_logger":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"application_insights":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"connection_string":{"type":"TypeString","optional":true},"instrumentation_key":{"type":"TypeString","optional":true}}},"maxItems":1},"buffered":{"type":"TypeBool","optional":true,"default":true},"description":{"type":"TypeString","optional":true},"eventhub":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"connection_string":{"type":"TypeString","optional":true},"endpoint_uri":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"user_assigned_identity_client_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_named_value":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secret":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","optional":true},"value_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"secret_id":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_notification_recipient_email":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"email":{"type":"TypeString","required":true,"forceNew":true},"notification_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_notification_recipient_user":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"notification_type":{"type":"TypeString","required":true,"forceNew":true},"user_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_openid_connect_provider":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"metadata_endpoint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_policy":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"xml_content":{"type":"TypeString","optional":true,"computed":true},"xml_link":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_policy_fragment":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true,"default":"xml"},"name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_product":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"approval_required":{"type":"TypeBool","optional":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"product_id":{"type":"TypeString","required":true,"forceNew":true},"published":{"type":"TypeBool","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_required":{"type":"TypeBool","optional":true,"default":true},"subscriptions_limit":{"type":"TypeInt","optional":true},"terms":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_product_api":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_name":{"type":"TypeString","required":true,"forceNew":true},"product_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_product_group":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"group_name":{"type":"TypeString","required":true,"forceNew":true},"product_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_product_policy":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"product_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"xml_content":{"type":"TypeString","optional":true,"computed":true},"xml_link":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_product_tag":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"api_management_product_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_api_management_redis_cache":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"cache_location":{"type":"TypeString","optional":true,"default":"default"},"connection_string":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"redis_cache_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_subscription":{"schema":{"allow_tracing":{"type":"TypeBool","optional":true,"default":true},"api_id":{"type":"TypeString","optional":true,"forceNew":true},"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","optional":true,"computed":true},"product_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_key":{"type":"TypeString","optional":true,"computed":true},"state":{"type":"TypeString","optional":true,"default":"submitted"},"subscription_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"user_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_tag":{"schema":{"api_management_id":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_api_management_user":{"schema":{"api_management_name":{"type":"TypeString","required":true,"forceNew":true},"confirmation":{"type":"TypeString","optional":true,"forceNew":true},"email":{"type":"TypeString","required":true},"first_name":{"type":"TypeString","required":true},"last_name":{"type":"TypeString","required":true},"note":{"type":"TypeString","optional":true},"password":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"state":{"type":"TypeString","optional":true,"computed":true},"user_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":45,"read":5,"delete":45,"update":45}},"azurerm_app_configuration":{"schema":{"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"key_vault_key_identifier":{"type":"TypeString","optional":true}}},"maxItems":1},"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_read_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"primary_write_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"public_network_access":{"type":"TypeString","optional":true},"purge_protection_enabled":{"type":"TypeBool","optional":true,"default":false},"replica":{"type":"TypeSet","optional":true,"elem":{"schema":{"endpoint":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_read_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"secondary_write_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"sku":{"type":"TypeString","optional":true,"default":"free"},"soft_delete_retention_days":{"type":"TypeInt","optional":true,"default":7,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_app_configuration_feature":{"schema":{"configuration_store_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true},"etag":{"type":"TypeString","optional":true,"computed":true},"key":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"label":{"type":"TypeString","optional":true,"forceNew":true},"locked":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"percentage_filter_value":{"type":"TypeFloat","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"targeting_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"default_rollout_percentage":{"type":"TypeInt","required":true},"groups":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"rollout_percentage":{"type":"TypeInt","required":true}}}},"users":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"timewindow_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"end":{"type":"TypeString","optional":true},"start":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":45,"read":5,"delete":30,"update":30}},"azurerm_app_configuration_key":{"schema":{"configuration_store_id":{"type":"TypeString","required":true,"forceNew":true},"content_type":{"type":"TypeString","optional":true,"computed":true},"etag":{"type":"TypeString","optional":true,"computed":true},"key":{"type":"TypeString","required":true,"forceNew":true},"label":{"type":"TypeString","optional":true,"forceNew":true},"locked":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","optional":true,"default":"kv"},"value":{"type":"TypeString","optional":true},"vault_key_reference":{"type":"TypeString","optional":true}},"timeouts":{"create":45,"read":5,"delete":30,"update":30}},"azurerm_app_service":{"schema":{"app_service_plan_id":{"type":"TypeString","required":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true}}},"maxItems":1},"additional_login_params":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true},"consumer_secret":{"type":"TypeString","required":true}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true},"frequency_unit":{"type":"TypeString","required":true},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false},"retention_period_in_days":{"type":"TypeInt","optional":true,"default":30},"start_time":{"type":"TypeString","optional":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_cert_enabled":{"type":"TypeBool","optional":true,"default":false},"client_cert_mode":{"type":"TypeString","optional":true,"computed":true},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_site_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","optional":true,"default":"Off"}}},"maxItems":1},"detailed_error_messages_enabled":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing_enabled":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"acr_use_managed_identity_credentials":{"type":"TypeBool","optional":true,"default":false},"acr_user_managed_identity_client_id":{"type":"TypeString","optional":true},"always_on":{"type":"TypeBool","optional":true,"default":false},"app_command_line":{"type":"TypeString","optional":true},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"java_container":{"type":"TypeString","optional":true},"java_container_version":{"type":"TypeString","optional":true},"java_version":{"type":"TypeString","optional":true},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"local_mysql_enabled":{"type":"TypeBool","optional":true,"computed":true},"managed_pipeline_mode":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"number_of_workers":{"type":"TypeInt","optional":true,"computed":true},"php_version":{"type":"TypeString","optional":true},"python_version":{"type":"TypeString","optional":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"computed":true},"windows_fx_version":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"source_control":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"branch":{"type":"TypeString","optional":true,"computed":true},"manual_integration":{"type":"TypeBool","optional":true,"computed":true},"repo_url":{"type":"TypeString","optional":true,"computed":true},"rollback_enabled":{"type":"TypeBool","optional":true,"computed":true},"use_mercurial":{"type":"TypeBool","optional":true,"computed":true}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_active_slot":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"app_service_slot_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_certificate":{"schema":{"app_service_plan_id":{"type":"TypeString","optional":true,"forceNew":true},"expiration_date":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"host_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"hosting_environment_profile_id":{"type":"TypeString","computed":true},"issue_date":{"type":"TypeString","computed":true},"issuer":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","optional":true,"forceNew":true},"key_vault_secret_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true,"forceNew":true},"pfx_blob":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subject_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_certificate_binding":{"schema":{"app_service_name":{"type":"TypeString","computed":true},"certificate_id":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","computed":true},"hostname_binding_id":{"type":"TypeString","required":true,"forceNew":true},"ssl_state":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_certificate_order":{"schema":{"app_service_certificate_not_renewable_reasons":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"auto_renew":{"type":"TypeBool","optional":true,"default":true},"certificates":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"key_vault_secret_name":{"type":"TypeString","computed":true},"provisioning_state":{"type":"TypeString","computed":true}}}},"csr":{"type":"TypeString","optional":true,"computed":true},"distinguished_name":{"type":"TypeString","optional":true,"computed":true},"domain_verification_token":{"type":"TypeString","computed":true},"expiration_time":{"type":"TypeString","computed":true},"intermediate_thumbprint":{"type":"TypeString","computed":true},"is_private_key_external":{"type":"TypeBool","computed":true},"key_size":{"type":"TypeInt","optional":true,"default":2048},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"product_type":{"type":"TypeString","optional":true,"default":"Standard"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"root_thumbprint":{"type":"TypeString","computed":true},"signed_certificate_thumbprint":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"validity_in_years":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_connection":{"schema":{"app_service_id":{"type":"TypeString","required":true,"forceNew":true},"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","optional":true},"secret":{"type":"TypeString","optional":true},"subscription_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"client_type":{"type":"TypeString","optional":true,"default":"none"},"name":{"type":"TypeString","required":true,"forceNew":true},"secret_store":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"vnet_solution":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_custom_hostname_binding":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"ssl_state":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"virtual_ip":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_environment_v3":{"schema":{"allow_new_private_endpoint_connections":{"type":"TypeBool","optional":true,"default":true},"cluster_setting":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"dedicated_host_count":{"type":"TypeInt","optional":true,"forceNew":true},"dns_suffix":{"type":"TypeString","computed":true},"external_inbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"inbound_network_dependencies":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ports":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"internal_inbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"internal_load_balancing_mode":{"type":"TypeString","optional":true,"default":"None","forceNew":true},"ip_ssl_address_count":{"type":"TypeInt","computed":true},"linux_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"pricing_tier":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"windows_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":360,"read":5,"delete":360,"update":360}},"azurerm_app_service_hybrid_connection":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","required":true},"relay_id":{"type":"TypeString","required":true,"forceNew":true},"relay_name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"send_key_name":{"type":"TypeString","optional":true,"default":"RootManageSharedAccessKey"},"send_key_value":{"type":"TypeString","computed":true},"service_bus_namespace":{"type":"TypeString","computed":true},"service_bus_suffix":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_managed_certificate":{"schema":{"canonical_name":{"type":"TypeString","computed":true},"custom_hostname_binding_id":{"type":"TypeString","required":true,"forceNew":true},"expiration_date":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"host_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"issue_date":{"type":"TypeString","computed":true},"issuer":{"type":"TypeString","computed":true},"subject_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_plan":{"schema":{"app_service_environment_id":{"type":"TypeString","optional":true,"forceNew":true},"is_xenon":{"type":"TypeBool","optional":true},"kind":{"type":"TypeString","optional":true,"default":"Windows","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_elastic_worker_count":{"type":"TypeInt","optional":true,"computed":true},"maximum_number_of_workers":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"per_site_scaling":{"type":"TypeBool","optional":true},"reserved":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true,"computed":true},"size":{"type":"TypeString","required":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_app_service_public_certificate":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"blob":{"type":"TypeString","required":true,"forceNew":true},"certificate_location":{"type":"TypeString","required":true,"forceNew":true},"certificate_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_slot":{"schema":{"app_service_name":{"type":"TypeString","required":true,"forceNew":true},"app_service_plan_id":{"type":"TypeString","required":true,"forceNew":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true}}},"maxItems":1},"additional_login_params":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true},"consumer_secret":{"type":"TypeString","required":true}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"computed":true},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"default_site_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","optional":true,"default":"Off"}}},"maxItems":1},"detailed_error_messages_enabled":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing_enabled":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"acr_use_managed_identity_credentials":{"type":"TypeBool","optional":true,"default":false},"acr_user_managed_identity_client_id":{"type":"TypeString","optional":true},"always_on":{"type":"TypeBool","optional":true,"default":false},"app_command_line":{"type":"TypeString","optional":true},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"java_container":{"type":"TypeString","optional":true},"java_container_version":{"type":"TypeString","optional":true},"java_version":{"type":"TypeString","optional":true},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"local_mysql_enabled":{"type":"TypeBool","optional":true,"computed":true},"managed_pipeline_mode":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"number_of_workers":{"type":"TypeInt","optional":true,"computed":true},"php_version":{"type":"TypeString","optional":true},"python_version":{"type":"TypeString","optional":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"computed":true},"windows_fx_version":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_slot_custom_hostname_binding":{"schema":{"app_service_slot_id":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","required":true,"forceNew":true},"ssl_state":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"virtual_ip":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_slot_virtual_network_swift_connection":{"schema":{"app_service_id":{"type":"TypeString","required":true,"forceNew":true},"slot_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_source_control":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The ID of the Windows or Linux Web App.","forceNew":true},"branch":{"type":"TypeString","optional":true,"description":"The branch name to use for deployments.","computed":true,"forceNew":true},"github_action_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"code_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"runtime_stack":{"type":"TypeString","required":true,"description":"The value to use for the Runtime Stack in the workflow file content for code base apps.","forceNew":true},"runtime_version":{"type":"TypeString","required":true,"description":"The value to use for the Runtime Version in the workflow file content for code base apps.","forceNew":true}}},"maxItems":1},"container_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"image_name":{"type":"TypeString","required":true,"description":"The image name for the build.","forceNew":true},"registry_password":{"type":"TypeString","optional":true,"description":"The password used to upload the image to the container registry.","forceNew":true},"registry_url":{"type":"TypeString","required":true,"description":"The server URL for the container registry where the build will be hosted.","forceNew":true},"registry_username":{"type":"TypeString","optional":true,"description":"The username used to upload the image to the container registry.","forceNew":true}}},"maxItems":1},"generate_workflow_file":{"type":"TypeBool","optional":true,"default":true,"description":"Should the service generate the GitHub Action Workflow file. Defaults to `true`","forceNew":true},"linux_action":{"type":"TypeBool","description":"Denotes this action uses a Linux base image.","computed":true}}},"maxItems":1},"repo_url":{"type":"TypeString","optional":true,"description":"The URL for the repository.","computed":true,"forceNew":true},"rollback_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Deployment Rollback be enabled? Defaults to `false`.","forceNew":true},"scm_type":{"type":"TypeString","description":"The SCM Type in use. This value is decoded by the service from the repository information supplied.","computed":true},"use_local_git":{"type":"TypeBool","optional":true,"default":false,"description":"Should the App use local Git configuration.","forceNew":true},"use_manual_integration":{"type":"TypeBool","optional":true,"default":false,"description":"Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`.","forceNew":true},"use_mercurial":{"type":"TypeBool","optional":true,"default":false,"description":"The repository specified is Mercurial. Defaults to `false`.","forceNew":true},"uses_github_action":{"type":"TypeBool","description":"Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_source_control_slot":{"schema":{"branch":{"type":"TypeString","optional":true,"description":"The URL for the repository","computed":true,"forceNew":true},"github_action_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"code_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"runtime_stack":{"type":"TypeString","required":true,"description":"The value to use for the Runtime Stack in the workflow file content for code base apps.","forceNew":true},"runtime_version":{"type":"TypeString","required":true,"description":"The value to use for the Runtime Version in the workflow file content for code base apps.","forceNew":true}}},"maxItems":1},"container_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"image_name":{"type":"TypeString","required":true,"description":"The image name for the build.","forceNew":true},"registry_password":{"type":"TypeString","optional":true,"description":"The password used to upload the image to the container registry.","forceNew":true},"registry_url":{"type":"TypeString","required":true,"description":"The server URL for the container registry where the build will be hosted.","forceNew":true},"registry_username":{"type":"TypeString","optional":true,"description":"The username used to upload the image to the container registry.","forceNew":true}}},"maxItems":1},"generate_workflow_file":{"type":"TypeBool","optional":true,"default":true,"description":"Should the service generate the GitHub Action Workflow file. Defaults to `true`","forceNew":true},"linux_action":{"type":"TypeBool","description":"Denotes this action uses a Linux base image.","computed":true}}},"maxItems":1},"repo_url":{"type":"TypeString","optional":true,"description":"The branch name to use for deployments.","computed":true,"forceNew":true},"rollback_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Deployment Rollback be enabled? Defaults to `false`","forceNew":true},"scm_type":{"type":"TypeString","description":"The SCM Type in use. This value is decoded by the service from the repository information supplied.","computed":true},"slot_id":{"type":"TypeString","required":true,"description":"The ID of the Linux or Windows Web App Slot.","forceNew":true},"use_local_git":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Slot use local Git configuration.","forceNew":true},"use_manual_integration":{"type":"TypeBool","optional":true,"default":false,"description":"Should code be deployed manually. Set to `true` to disable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`","forceNew":true},"use_mercurial":{"type":"TypeBool","optional":true,"default":false,"description":"The repository specified is Mercurial. Defaults to `false`.","forceNew":true},"uses_github_action":{"type":"TypeBool","description":"Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_app_service_source_control_token":{"schema":{"token":{"type":"TypeString","required":true},"token_secret":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_app_service_virtual_network_swift_connection":{"schema":{"app_service_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_gateway":{"schema":{"authentication_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"data":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true}}}},"autoscale_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"max_capacity":{"type":"TypeInt","optional":true},"min_capacity":{"type":"TypeInt","required":true}}},"maxItems":1},"backend_address_pool":{"type":"TypeSet","required":true,"elem":{"schema":{"fqdns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}}},"backend_http_settings":{"type":"TypeSet","required":true,"elem":{"schema":{"affinity_cookie_name":{"type":"TypeString","optional":true},"authentication_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true}}}},"connection_draining":{"type":"TypeList","optional":true,"elem":{"schema":{"drain_timeout_sec":{"type":"TypeInt","required":true},"enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"cookie_based_affinity":{"type":"TypeString","required":true},"host_name":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"pick_host_name_from_backend_address":{"type":"TypeBool","optional":true,"default":false},"port":{"type":"TypeInt","required":true},"probe_id":{"type":"TypeString","computed":true},"probe_name":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true},"request_timeout":{"type":"TypeInt","optional":true,"default":30},"trusted_root_certificate_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1},"custom_error_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_error_page_url":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"status_code":{"type":"TypeString","required":true}}}},"enable_http2":{"type":"TypeBool","optional":true},"fips_enabled":{"type":"TypeBool","optional":true},"firewall_policy_id":{"type":"TypeString","optional":true},"force_firewall_policy_association":{"type":"TypeBool","optional":true},"frontend_ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_allocation":{"type":"TypeString","optional":true,"default":"Dynamic"},"private_link_configuration_id":{"type":"TypeString","computed":true},"private_link_configuration_name":{"type":"TypeString","optional":true},"public_ip_address_id":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"minItems":1},"frontend_port":{"type":"TypeSet","required":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"port":{"type":"TypeInt","required":true}}}},"gateway_ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":2},"global":{"type":"TypeList","optional":true,"elem":{"schema":{"request_buffering_enabled":{"type":"TypeBool","required":true},"response_buffering_enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"http_listener":{"type":"TypeSet","required":true,"elem":{"schema":{"custom_error_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_error_page_url":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"status_code":{"type":"TypeString","required":true}}}},"firewall_policy_id":{"type":"TypeString","optional":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","required":true},"frontend_port_id":{"type":"TypeString","computed":true},"frontend_port_name":{"type":"TypeString","required":true},"host_name":{"type":"TypeString","optional":true},"host_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true},"require_sni":{"type":"TypeBool","optional":true},"ssl_certificate_id":{"type":"TypeString","computed":true},"ssl_certificate_name":{"type":"TypeString","optional":true},"ssl_profile_id":{"type":"TypeString","computed":true},"ssl_profile_name":{"type":"TypeString","optional":true}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_connection":{"type":"TypeSet","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"private_link_configuration":{"type":"TypeSet","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","required":true},"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_allocation":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}}},"probe":{"type":"TypeSet","optional":true,"elem":{"schema":{"host":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"interval":{"type":"TypeInt","required":true},"match":{"type":"TypeList","optional":true,"elem":{"schema":{"body":{"type":"TypeString","optional":true},"status_code":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"minimum_servers":{"type":"TypeInt","optional":true,"default":0},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"pick_host_name_from_backend_http_settings":{"type":"TypeBool","optional":true,"default":false},"port":{"type":"TypeInt","optional":true},"protocol":{"type":"TypeString","required":true},"timeout":{"type":"TypeInt","required":true},"unhealthy_threshold":{"type":"TypeInt","required":true}}}},"redirect_configuration":{"type":"TypeSet","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"include_path":{"type":"TypeBool","optional":true,"default":false},"include_query_string":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"redirect_type":{"type":"TypeString","required":true},"target_listener_id":{"type":"TypeString","computed":true},"target_listener_name":{"type":"TypeString","optional":true},"target_url":{"type":"TypeString","optional":true}}}},"request_routing_rule":{"type":"TypeSet","required":true,"elem":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_address_pool_name":{"type":"TypeString","optional":true},"backend_http_settings_id":{"type":"TypeString","computed":true},"backend_http_settings_name":{"type":"TypeString","optional":true},"http_listener_id":{"type":"TypeString","computed":true},"http_listener_name":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","optional":true},"redirect_configuration_id":{"type":"TypeString","computed":true},"redirect_configuration_name":{"type":"TypeString","optional":true},"rewrite_rule_set_id":{"type":"TypeString","computed":true},"rewrite_rule_set_name":{"type":"TypeString","optional":true},"rule_type":{"type":"TypeString","required":true},"url_path_map_id":{"type":"TypeString","computed":true},"url_path_map_name":{"type":"TypeString","optional":true}}},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rewrite_rule_set":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"rewrite_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"condition":{"type":"TypeList","optional":true,"elem":{"schema":{"ignore_case":{"type":"TypeBool","optional":true,"default":false},"negate":{"type":"TypeBool","optional":true,"default":false},"pattern":{"type":"TypeString","required":true},"variable":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true},"request_header_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"header_value":{"type":"TypeString","required":true}}}},"response_header_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"header_value":{"type":"TypeString","required":true}}}},"rule_sequence":{"type":"TypeInt","required":true},"url":{"type":"TypeList","optional":true,"elem":{"schema":{"components":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true},"query_string":{"type":"TypeString","optional":true},"reroute":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}}}}}}},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"ssl_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"data":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"password":{"type":"TypeString","optional":true},"public_cert_data":{"type":"TypeString","computed":true}}}},"ssl_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cipher_suites":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"disabled_protocols":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"min_protocol_version":{"type":"TypeString","optional":true},"policy_name":{"type":"TypeString","optional":true},"policy_type":{"type":"TypeString","optional":true}}},"maxItems":1},"ssl_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"ssl_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"cipher_suites":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"disabled_protocols":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"min_protocol_version":{"type":"TypeString","optional":true},"policy_name":{"type":"TypeString","optional":true},"policy_type":{"type":"TypeString","optional":true}}},"maxItems":1},"trusted_client_certificate_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"verify_client_cert_issuer_dn":{"type":"TypeBool","optional":true,"default":false},"verify_client_certificate_revocation":{"type":"TypeString","optional":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trusted_client_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"data":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true}}}},"trusted_root_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"data":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true}}}},"url_path_map":{"type":"TypeList","optional":true,"elem":{"schema":{"default_backend_address_pool_id":{"type":"TypeString","computed":true},"default_backend_address_pool_name":{"type":"TypeString","optional":true},"default_backend_http_settings_id":{"type":"TypeString","computed":true},"default_backend_http_settings_name":{"type":"TypeString","optional":true},"default_redirect_configuration_id":{"type":"TypeString","computed":true},"default_redirect_configuration_name":{"type":"TypeString","optional":true},"default_rewrite_rule_set_id":{"type":"TypeString","computed":true},"default_rewrite_rule_set_name":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"path_rule":{"type":"TypeList","required":true,"elem":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_address_pool_name":{"type":"TypeString","optional":true},"backend_http_settings_id":{"type":"TypeString","computed":true},"backend_http_settings_name":{"type":"TypeString","optional":true},"firewall_policy_id":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"paths":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"redirect_configuration_id":{"type":"TypeString","computed":true},"redirect_configuration_name":{"type":"TypeString","optional":true},"rewrite_rule_set_id":{"type":"TypeString","computed":true},"rewrite_rule_set_name":{"type":"TypeString","optional":true}}}}}}},"waf_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"disabled_rule_group":{"type":"TypeList","optional":true,"elem":{"schema":{"rule_group_name":{"type":"TypeString","required":true},"rules":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}}}}},"enabled":{"type":"TypeBool","required":true},"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true},"selector_match_operator":{"type":"TypeString","optional":true}}}},"file_upload_limit_mb":{"type":"TypeInt","optional":true,"default":100},"firewall_mode":{"type":"TypeString","required":true},"max_request_body_size_kb":{"type":"TypeInt","optional":true,"default":128},"request_body_check":{"type":"TypeBool","optional":true,"default":true},"rule_set_type":{"type":"TypeString","optional":true,"default":"OWASP"},"rule_set_version":{"type":"TypeString","required":true}}},"maxItems":1},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_application_insights":{"schema":{"app_id":{"type":"TypeString","computed":true},"application_type":{"type":"TypeString","required":true,"forceNew":true},"connection_string":{"type":"TypeString","computed":true},"daily_data_cap_in_gb":{"type":"TypeFloat","optional":true,"default":100},"daily_data_cap_notifications_disabled":{"type":"TypeBool","optional":true},"disable_ip_masking":{"type":"TypeBool","optional":true,"default":false},"force_customer_storage_for_profiler":{"type":"TypeBool","optional":true,"default":false},"instrumentation_key":{"type":"TypeString","computed":true},"internet_ingestion_enabled":{"type":"TypeBool","optional":true,"default":true},"internet_query_enabled":{"type":"TypeBool","optional":true,"default":true},"local_authentication_disabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":90},"sampling_percentage":{"type":"TypeFloat","optional":true,"default":100},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":30,"update":30}},"azurerm_application_insights_analytics_item":{"schema":{"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"content":{"type":"TypeString","required":true},"function_alias":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true},"time_created":{"type":"TypeString","computed":true},"time_modified":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_api_key":{"schema":{"api_key":{"type":"TypeString","computed":true},"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"read_permissions":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"write_permissions":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_application_insights_smart_detection_rule":{"schema":{"additional_email_recipients":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"send_emails_to_subscription_owners":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_standard_web_test":{"schema":{"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true},"frequency":{"type":"TypeInt","optional":true,"default":300},"geo_locations":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"request":{"type":"TypeList","required":true,"elem":{"schema":{"body":{"type":"TypeString","optional":true},"follow_redirects_enabled":{"type":"TypeBool","optional":true,"default":true},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"http_verb":{"type":"TypeString","optional":true,"default":"GET"},"parse_dependent_requests_enabled":{"type":"TypeBool","optional":true,"default":true},"url":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retry_enabled":{"type":"TypeBool","optional":true},"synthetic_monitor_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout":{"type":"TypeInt","optional":true,"default":30},"validation_rules":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeList","optional":true,"elem":{"schema":{"content_match":{"type":"TypeString","required":true},"ignore_case":{"type":"TypeBool","optional":true,"default":false},"pass_if_text_found":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"expected_status_code":{"type":"TypeInt","optional":true,"default":200},"ssl_cert_remaining_lifetime":{"type":"TypeInt","optional":true},"ssl_check_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_web_test":{"schema":{"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"configuration":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true},"frequency":{"type":"TypeInt","optional":true,"default":300},"geo_locations":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"kind":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retry_enabled":{"type":"TypeBool","optional":true},"synthetic_monitor_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout":{"type":"TypeInt","optional":true,"default":30}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_workbook":{"schema":{"category":{"type":"TypeString","optional":true,"default":"workbook"},"data_json":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_id":{"type":"TypeString","optional":true,"default":"azure monitor"},"storage_container_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_insights_workbook_template":{"schema":{"author":{"type":"TypeString","optional":true},"galleries":{"type":"TypeList","required":true,"elem":{"schema":{"category":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"order":{"type":"TypeInt","optional":true,"default":0},"resource_type":{"type":"TypeString","optional":true,"default":"Azure Monitor"},"type":{"type":"TypeString","optional":true,"default":"workbook"}}},"minItems":1},"localized":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"default":0},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_data":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_load_balancer":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_configuration_endpoint":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_load_balancer_frontend":{"schema":{"application_load_balancer_id":{"type":"TypeString","required":true,"forceNew":true},"fully_qualified_domain_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_load_balancer_subnet_association":{"schema":{"application_load_balancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_application_security_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_kubernetes_cluster":{"schema":{"agent_public_key_certificate":{"type":"TypeString","required":true,"forceNew":true},"agent_version":{"type":"TypeString","computed":true},"distribution":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"infrastructure":{"type":"TypeString","computed":true},"kubernetes_version":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"offering":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"total_core_count":{"type":"TypeInt","computed":true},"total_node_count":{"type":"TypeInt","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_kubernetes_cluster_extension":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"configuration_protected_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"configuration_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"current_version":{"type":"TypeString","computed":true},"extension_type":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"release_namespace":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"release_train":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"target_namespace":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_kubernetes_flux_configuration":{"schema":{"blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","optional":true},"container_id":{"type":"TypeString","required":true},"local_auth_reference":{"type":"TypeString","optional":true},"sas_token":{"type":"TypeString","optional":true},"service_principal":{"type":"TypeList","optional":true,"elem":{"schema":{"client_certificate_base64":{"type":"TypeString","optional":true},"client_certificate_password":{"type":"TypeString","optional":true},"client_certificate_send_chain":{"type":"TypeBool","optional":true,"default":false},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600}}},"maxItems":1},"bucket":{"type":"TypeList","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","optional":true},"bucket_name":{"type":"TypeString","required":true},"local_auth_reference":{"type":"TypeString","optional":true},"secret_key_base64":{"type":"TypeString","optional":true},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600},"tls_enabled":{"type":"TypeBool","optional":true,"default":true},"url":{"type":"TypeString","required":true}}},"maxItems":1},"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"continuous_reconciliation_enabled":{"type":"TypeBool","optional":true,"default":true},"git_repository":{"type":"TypeList","optional":true,"elem":{"schema":{"https_ca_cert_base64":{"type":"TypeString","optional":true},"https_key_base64":{"type":"TypeString","optional":true},"https_user":{"type":"TypeString","optional":true},"local_auth_reference":{"type":"TypeString","optional":true},"reference_type":{"type":"TypeString","required":true},"reference_value":{"type":"TypeString","required":true},"ssh_known_hosts_base64":{"type":"TypeString","optional":true},"ssh_private_key_base64":{"type":"TypeString","optional":true},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600},"url":{"type":"TypeString","required":true}}},"maxItems":1},"kustomizations":{"type":"TypeSet","required":true,"elem":{"schema":{"depends_on":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"garbage_collection_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"recreating_enabled":{"type":"TypeBool","optional":true,"default":false},"retry_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","optional":true,"default":"namespace","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_machine":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_machine_automanage_configuration_assignment":{"schema":{"arc_machine_id":{"type":"TypeString","required":true,"forceNew":true},"configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_arc_machine_extension":{"schema":{"arc_machine_id":{"type":"TypeString","required":true,"forceNew":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":true},"force_update_tag":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protected_settings":{"type":"TypeString","optional":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true},"type_handler_version":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_private_link_scope":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_arc_resource_bridge_appliance":{"schema":{"distro":{"type":"TypeString","required":true},"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"infrastructure_provider":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_key_base64":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":30,"update":30}},"azurerm_attestation_provider":{"schema":{"attestation_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"open_enclave_policy_base64":{"type":"TypeString","optional":true},"policy_signing_certificate_data":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sev_snp_policy_base64":{"type":"TypeString","optional":true},"sgx_enclave_policy_base64":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tpm_policy_base64":{"type":"TypeString","optional":true},"trust_model":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automanage_configuration":{"schema":{"antimalware":{"type":"TypeList","optional":true,"elem":{"schema":{"exclusions":{"type":"TypeList","optional":true,"elem":{"schema":{"extensions":{"type":"TypeString","optional":true},"paths":{"type":"TypeString","optional":true},"processes":{"type":"TypeString","optional":true}}},"maxItems":1},"real_time_protection_enabled":{"type":"TypeBool","optional":true,"default":false},"scheduled_scan_day":{"type":"TypeInt","optional":true,"default":8},"scheduled_scan_enabled":{"type":"TypeBool","optional":true,"default":false},"scheduled_scan_time_in_minutes":{"type":"TypeInt","optional":true,"default":0},"scheduled_scan_type":{"type":"TypeString","optional":true,"default":"Quick"}}},"maxItems":1},"automation_account_enabled":{"type":"TypeBool","optional":true,"default":false},"azure_security_baseline":{"type":"TypeList","optional":true,"elem":{"schema":{"assignment_type":{"type":"TypeString","optional":true,"default":"ApplyAndAutoCorrect"}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"instant_rp_retention_range_in_days":{"type":"TypeInt","optional":true,"default":5},"policy_name":{"type":"TypeString","optional":true},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"daily_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_duration":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","optional":true},"duration_type":{"type":"TypeString","optional":true,"default":"Days"}}},"maxItems":1},"retention_times":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_policy_type":{"type":"TypeString","optional":true,"default":"LongTermRetentionPolicy"},"weekly_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_duration":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","optional":true},"duration_type":{"type":"TypeString","optional":true,"default":"Weeks"}}},"maxItems":1},"retention_times":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"schedule_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule_policy_type":{"type":"TypeString","optional":true,"default":"SimpleSchedulePolicy"},"schedule_run_days":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"schedule_run_frequency":{"type":"TypeString","optional":true,"default":"Daily"},"schedule_run_times":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"time_zone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"boot_diagnostics_enabled":{"type":"TypeBool","optional":true,"default":false},"defender_for_cloud_enabled":{"type":"TypeBool","optional":true,"default":false},"guest_configuration_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"log_analytics_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"status_change_alert_enabled":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_account":{"schema":{"dsc_primary_access_key":{"type":"TypeString","computed":true},"dsc_secondary_access_key":{"type":"TypeString","computed":true},"dsc_server_endpoint":{"type":"TypeString","computed":true},"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"key_source":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}}},"hybrid_service_url":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_connection":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_certificate":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"base64":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"exportable":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true},"values":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection_certificate":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"automation_certificate_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection_classic_certificate":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"certificate_asset_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true},"subscription_name":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection_service_principal":{"schema":{"application_id":{"type":"TypeString","required":true},"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"certificate_thumbprint":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_connection_type":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"field":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"is_encrypted":{"type":"TypeBool","optional":true},"is_optional":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"is_global":{"type":"TypeBool","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10}},"azurerm_automation_credential":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_dsc_configuration":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"content_embedded":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"log_verbose":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"state":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_dsc_nodeconfiguration":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"configuration_name":{"type":"TypeString","computed":true},"content_embedded":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_hybrid_runbook_worker":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"ip":{"type":"TypeString","computed":true},"last_seen_date_time":{"type":"TypeString","computed":true},"registration_date_time":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"vm_resource_id":{"type":"TypeString","required":true,"forceNew":true},"worker_group_name":{"type":"TypeString","required":true,"forceNew":true},"worker_id":{"type":"TypeString","required":true,"forceNew":true},"worker_name":{"type":"TypeString","computed":true},"worker_type":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":10}},"azurerm_automation_hybrid_runbook_worker_group":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"credential_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_automation_job_schedule":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"job_schedule_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_manager_id":{"type":"TypeString","computed":true},"run_on":{"type":"TypeString","optional":true,"forceNew":true},"runbook_name":{"type":"TypeString","required":true,"forceNew":true},"schedule_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_automation_module":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"module_link":{"type":"TypeList","required":true,"elem":{"schema":{"hash":{"type":"TypeList","optional":true,"elem":{"schema":{"algorithm":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_powershell72_module":{"schema":{"automation_account_id":{"type":"TypeString","required":true,"forceNew":true},"module_link":{"type":"TypeList","required":true,"elem":{"schema":{"hash":{"type":"TypeList","optional":true,"elem":{"schema":{"algorithm":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_python3_package":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"content_uri":{"type":"TypeString","required":true,"forceNew":true},"content_version":{"type":"TypeString","optional":true,"forceNew":true},"hash_algorithm":{"type":"TypeString","optional":true,"forceNew":true},"hash_value":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_automation_runbook":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"content":{"type":"TypeString","optional":true,"computed":true},"description":{"type":"TypeString","optional":true},"draft":{"type":"TypeList","optional":true,"elem":{"schema":{"content_link":{"type":"TypeList","optional":true,"elem":{"schema":{"hash":{"type":"TypeList","optional":true,"elem":{"schema":{"algorithm":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"creation_time":{"type":"TypeString","computed":true},"edit_mode_enabled":{"type":"TypeBool","optional":true},"last_modified_time":{"type":"TypeString","computed":true},"output_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"parameters":{"type":"TypeList","optional":true,"elem":{"schema":{"default_value":{"type":"TypeString","optional":true},"key":{"type":"TypeString","required":true},"mandatory":{"type":"TypeBool","optional":true,"default":false},"position":{"type":"TypeInt","optional":true},"type":{"type":"TypeString","required":true}}}}}},"maxItems":1},"job_schedule":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"job_schedule_id":{"type":"TypeString","computed":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"run_on":{"type":"TypeString","optional":true},"schedule_name":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"log_activity_trace_level":{"type":"TypeInt","optional":true},"log_progress":{"type":"TypeBool","required":true},"log_verbose":{"type":"TypeBool","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"publish_content_link":{"type":"TypeList","optional":true,"elem":{"schema":{"hash":{"type":"TypeList","optional":true,"elem":{"schema":{"algorithm":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"runbook_type":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_schedule":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"expiry_time":{"type":"TypeString","optional":true,"computed":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","optional":true,"computed":true},"month_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"monthly_occurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"day":{"type":"TypeString","required":true},"occurrence":{"type":"TypeInt","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"start_time":{"type":"TypeString","optional":true,"computed":true},"timezone":{"type":"TypeString","optional":true,"default":"Etc/UTC"},"week_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_software_update_configuration":{"schema":{"automation_account_id":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","optional":true,"default":"PT2H"},"error_code":{"type":"TypeString","computed":true},"error_message":{"type":"TypeString","computed":true},"linux":{"type":"TypeList","optional":true,"elem":{"schema":{"classifications_included":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"excluded_packages":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"included_packages":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"reboot":{"type":"TypeString","optional":true,"default":"IfRequired"}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"non_azure_computer_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"post_task":{"type":"TypeList","optional":true,"elem":{"schema":{"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"source":{"type":"TypeString","optional":true}}},"maxItems":1},"pre_task":{"type":"TypeList","optional":true,"elem":{"schema":{"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"source":{"type":"TypeString","optional":true}}},"maxItems":1},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"advanced_month_days":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}},"advanced_week_days":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"creation_time":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"expiry_time":{"type":"TypeString","optional":true,"computed":true},"expiry_time_offset_minutes":{"type":"TypeFloat","optional":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","optional":true},"is_enabled":{"type":"TypeBool","optional":true,"default":true},"last_modified_time":{"type":"TypeString","computed":true},"monthly_occurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"day":{"type":"TypeString","required":true},"occurrence":{"type":"TypeInt","required":true}}},"maxItems":1},"next_run":{"type":"TypeString","optional":true,"computed":true},"next_run_offset_minutes":{"type":"TypeFloat","optional":true},"start_time":{"type":"TypeString","optional":true,"computed":true},"start_time_offset_minutes":{"type":"TypeFloat","optional":true},"time_zone":{"type":"TypeString","optional":true,"default":"Etc/UTC"}}},"maxItems":1},"target":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_query":{"type":"TypeList","optional":true,"elem":{"schema":{"locations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"scope":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tag_filter":{"type":"TypeString","optional":true},"tags":{"type":"TypeList","optional":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}}},"non_azure_query":{"type":"TypeList","optional":true,"elem":{"schema":{"function_alias":{"type":"TypeString","optional":true},"workspace_id":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"virtual_machine_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"windows":{"type":"TypeList","optional":true,"elem":{"schema":{"classifications_included":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"excluded_knowledge_base_numbers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"included_knowledge_base_numbers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"reboot":{"type":"TypeString","optional":true,"default":"IfRequired"}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":10,"update":30}},"azurerm_automation_source_control":{"schema":{"automatic_sync":{"type":"TypeBool","optional":true,"default":false},"automation_account_id":{"type":"TypeString","required":true,"forceNew":true},"branch":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"folder_path":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"publish_runbook_enabled":{"type":"TypeBool","optional":true,"default":true},"repository_url":{"type":"TypeString","required":true},"security":{"type":"TypeList","required":true,"elem":{"schema":{"refresh_token":{"type":"TypeString","optional":true},"token":{"type":"TypeString","required":true},"token_type":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"source_control_type":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_automation_variable_bool":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_variable_datetime":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_variable_int":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeInt","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_variable_object":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_variable_string":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_automation_watcher":{"schema":{"automation_account_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"etag":{"type":"TypeString","optional":true},"execution_frequency_in_seconds":{"type":"TypeInt","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"script_name":{"type":"TypeString","required":true,"forceNew":true},"script_parameters":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"script_run_on":{"type":"TypeString","required":true},"status":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_automation_webhook":{"schema":{"automation_account_name":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"expiry_time":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"run_on_worker_group":{"type":"TypeString","optional":true},"runbook_name":{"type":"TypeString","required":true},"uri":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_availability_set":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"managed":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform_fault_domain_count":{"type":"TypeInt","optional":true,"default":3,"forceNew":true},"platform_update_domain_count":{"type":"TypeInt","optional":true,"default":5,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_backup_container_storage_account":{"schema":{"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_backup_policy_file_share":{"schema":{"backup":{"type":"TypeList","required":true,"elem":{"schema":{"frequency":{"type":"TypeString","required":true},"hourly":{"type":"TypeList","optional":true,"elem":{"schema":{"interval":{"type":"TypeInt","required":true},"start_time":{"type":"TypeString","required":true},"window_duration":{"type":"TypeInt","required":true}}},"maxItems":1},"time":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_daily":{"type":"TypeList","required":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true}}},"maxItems":1},"retention_monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_last_days":{"type":"TypeBool","optional":true,"default":false},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"weekdays":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_yearly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_last_days":{"type":"TypeBool","optional":true,"default":false},"months":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"timezone":{"type":"TypeString","optional":true,"default":"UTC"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_backup_policy_vm":{"schema":{"backup":{"type":"TypeList","required":true,"elem":{"schema":{"frequency":{"type":"TypeString","required":true},"hour_duration":{"type":"TypeInt","optional":true},"hour_interval":{"type":"TypeInt","optional":true},"time":{"type":"TypeString","required":true},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"instant_restore_resource_group":{"type":"TypeList","optional":true,"elem":{"schema":{"prefix":{"type":"TypeString","required":true},"suffix":{"type":"TypeString","optional":true}}},"maxItems":1},"instant_restore_retention_days":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_type":{"type":"TypeString","optional":true,"default":"V1","forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_daily":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true}}},"maxItems":1},"retention_monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_last_days":{"type":"TypeBool","optional":true,"default":false},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"weekdays":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_yearly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_last_days":{"type":"TypeBool","optional":true,"default":false},"months":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"tiering_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"archived_restore_point":{"type":"TypeList","required":true,"elem":{"schema":{"duration":{"type":"TypeInt","optional":true},"duration_type":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"timezone":{"type":"TypeString","optional":true,"default":"UTC"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_backup_policy_vm_workload":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"protection_policy":{"type":"TypeSet","required":true,"elem":{"schema":{"backup":{"type":"TypeList","required":true,"elem":{"schema":{"frequency":{"type":"TypeString","optional":true},"frequency_in_minutes":{"type":"TypeInt","optional":true},"time":{"type":"TypeString","optional":true},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"policy_type":{"type":"TypeString","required":true},"retention_daily":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true}}},"maxItems":1},"retention_monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"format_type":{"type":"TypeString","required":true},"monthdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"weekdays":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retention_yearly":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"format_type":{"type":"TypeString","required":true},"monthdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"months":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"weekdays":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"weeks":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"simple_retention":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true}}},"maxItems":1}}}},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeList","required":true,"elem":{"schema":{"compression_enabled":{"type":"TypeBool","optional":true,"default":false},"time_zone":{"type":"TypeString","required":true}}},"maxItems":1},"workload_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_backup_protected_file_share":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_file_share_name":{"type":"TypeString","required":true,"forceNew":true},"source_storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":80,"read":5,"delete":80,"update":80}},"azurerm_backup_protected_vm":{"schema":{"backup_policy_id":{"type":"TypeString","optional":true},"exclude_disk_luns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"include_disk_luns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"protection_state":{"type":"TypeString","optional":true,"computed":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_vm_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":120,"read":5,"delete":80,"update":120}},"azurerm_bastion_host":{"schema":{"copy_paste_enabled":{"type":"TypeBool","optional":true,"default":true},"dns_name":{"type":"TypeString","computed":true},"file_copy_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ip_connect_enabled":{"type":"TypeBool","optional":true,"default":false},"kerberos_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scale_units":{"type":"TypeInt","optional":true,"default":2},"session_recording_enabled":{"type":"TypeBool","optional":true,"default":false},"shareable_link_enabled":{"type":"TypeBool","optional":true,"default":false},"sku":{"type":"TypeString","optional":true,"default":"Basic"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tunneling_enabled":{"type":"TypeBool","optional":true,"default":false},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_batch_account":{"schema":{"account_endpoint":{"type":"TypeString","computed":true},"allowed_authentication_modes":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"encryption":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"account_access":{"type":"TypeList","optional":true,"elem":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_range":{"type":"TypeString","required":true}}}}}},"maxItems":1},"node_management_access":{"type":"TypeList","optional":true,"elem":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_range":{"type":"TypeString","required":true}}}}}},"maxItems":1}}},"maxItems":1},"pool_allocation_mode":{"type":"TypeString","optional":true,"default":"BatchService"},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"storage_account_authentication_mode":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_account_node_identity":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_batch_application":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"allow_updates":{"type":"TypeBool","optional":true,"default":true},"default_version":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_batch_certificate":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"certificate":{"type":"TypeString","required":true},"format":{"type":"TypeString","required":true},"name":{"type":"TypeString","computed":true},"password":{"type":"TypeString","optional":true},"public_data":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","required":true,"forceNew":true},"thumbprint_algorithm":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_batch_job":{"schema":{"batch_pool_id":{"type":"TypeString","required":true,"forceNew":true},"common_environment_properties":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"default":0},"task_retry_maximum":{"type":"TypeInt","optional":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_batch_pool":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"auto_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"evaluation_interval":{"type":"TypeString","optional":true,"default":"PT15M"},"formula":{"type":"TypeString","required":true}}},"maxItems":1},"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"store_location":{"type":"TypeString","required":true},"store_name":{"type":"TypeString","optional":true},"visibility":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"container_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"container_image_names":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"container_registries":{"type":"TypeList","configMode":"Auto","optional":true,"forceNew":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"registry_server":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Container Registry access.","forceNew":true},"user_name":{"type":"TypeString","optional":true,"forceNew":true}}}},"type":{"type":"TypeString","optional":true}}},"maxItems":1,"minItems":1},"data_disks":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"default":"ReadOnly"},"disk_size_gb":{"type":"TypeInt","required":true},"lun":{"type":"TypeInt","required":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"Standard_LRS"}}}},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_encryption_target":{"type":"TypeString","required":true}}}},"display_name":{"type":"TypeString","optional":true,"forceNew":true},"extensions":{"type":"TypeList","optional":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"provision_after_extensions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true},"settings_json":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","optional":true}}}},"fixed_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"node_deallocation_method":{"type":"TypeString","optional":true},"resize_timeout":{"type":"TypeString","optional":true,"default":"PT15M"},"target_dedicated_nodes":{"type":"TypeInt","optional":true,"default":1},"target_low_priority_nodes":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"inter_node_communication":{"type":"TypeString","optional":true,"default":"Enabled"},"license_type":{"type":"TypeString","optional":true},"max_tasks_per_node":{"type":"TypeInt","optional":true,"default":1,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"mount":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","optional":true},"account_name":{"type":"TypeString","required":true},"blobfuse_options":{"type":"TypeString","optional":true},"container_name":{"type":"TypeString","required":true},"identity_id":{"type":"TypeString","optional":true},"relative_mount_path":{"type":"TypeString","required":true},"sas_key":{"type":"TypeString","optional":true}}},"maxItems":1},"azure_file_share":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"azure_file_url":{"type":"TypeString","required":true},"mount_options":{"type":"TypeString","optional":true},"relative_mount_path":{"type":"TypeString","required":true}}}},"cifs_mount":{"type":"TypeList","optional":true,"elem":{"schema":{"mount_options":{"type":"TypeString","optional":true},"password":{"type":"TypeString","required":true},"relative_mount_path":{"type":"TypeString","required":true},"source":{"type":"TypeString","required":true},"user_name":{"type":"TypeString","required":true}}}},"nfs_mount":{"type":"TypeList","optional":true,"elem":{"schema":{"mount_options":{"type":"TypeString","optional":true},"relative_mount_path":{"type":"TypeString","required":true},"source":{"type":"TypeString","required":true}}}}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"dynamic_vnet_assignment_scope":{"type":"TypeString","optional":true,"default":"none","forceNew":true},"endpoint_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","required":true,"forceNew":true},"frontend_port_range":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_rules":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"access":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true},"source_address_prefix":{"type":"TypeString","required":true,"forceNew":true},"source_port_ranges":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString","default":"*"}}}}},"protocol":{"type":"TypeString","required":true,"forceNew":true}}}},"public_address_provisioning_type":{"type":"TypeString","optional":true},"public_ips":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"node_agent_sku_id":{"type":"TypeString","required":true,"forceNew":true},"node_placement":{"type":"TypeList","optional":true,"elem":{"schema":{"policy":{"type":"TypeString","optional":true,"default":"Regional"}}}},"os_disk_placement":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"start_task":{"type":"TypeList","optional":true,"elem":{"schema":{"command_line":{"type":"TypeString","required":true},"common_environment_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"container":{"type":"TypeList","optional":true,"elem":{"schema":{"image_name":{"type":"TypeString","required":true},"registry":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"registry_server":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Container Registry access.","forceNew":true},"user_name":{"type":"TypeString","optional":true,"forceNew":true}}}},"run_options":{"type":"TypeString","optional":true},"working_directory":{"type":"TypeString","optional":true}}}},"resource_file":{"type":"TypeList","optional":true,"elem":{"schema":{"auto_storage_container_name":{"type":"TypeString","optional":true},"blob_prefix":{"type":"TypeString","optional":true},"file_mode":{"type":"TypeString","optional":true},"file_path":{"type":"TypeString","optional":true},"http_url":{"type":"TypeString","optional":true},"storage_container_url":{"type":"TypeString","optional":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}}},"task_retry_maximum":{"type":"TypeInt","optional":true},"user_identity":{"type":"TypeList","required":true,"elem":{"schema":{"auto_user":{"type":"TypeList","optional":true,"elem":{"schema":{"elevation_level":{"type":"TypeString","optional":true,"default":"NonAdmin"},"scope":{"type":"TypeString","optional":true,"default":"Task"}}},"maxItems":1},"user_name":{"type":"TypeString","optional":true}}},"maxItems":1},"wait_for_success":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"stop_pending_resize_operation":{"type":"TypeBool","optional":true,"default":false},"storage_image_reference":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true,"forceNew":true},"offer":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","optional":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"target_node_communication_mode":{"type":"TypeString","optional":true},"task_scheduling_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"node_fill_type":{"type":"TypeString","optional":true,"computed":true}}}},"user_accounts":{"type":"TypeList","optional":true,"elem":{"schema":{"elevation_level":{"type":"TypeString","required":true},"linux_user_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"gid":{"type":"TypeInt","optional":true},"ssh_private_key":{"type":"TypeString","optional":true},"uid":{"type":"TypeInt","optional":true}}}},"name":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true},"windows_user_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"login_mode":{"type":"TypeString","required":true}}}}}}},"vm_size":{"type":"TypeString","required":true,"forceNew":true},"windows":{"type":"TypeList","optional":true,"elem":{"schema":{"enable_automatic_updates":{"type":"TypeBool","optional":true,"default":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_billing_account_cost_management_export":{"schema":{"active":{"type":"TypeBool","optional":true,"default":true},"billing_account_id":{"type":"TypeString","required":true,"forceNew":true},"export_data_options":{"type":"TypeList","required":true,"elem":{"schema":{"time_frame":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"export_data_storage_location":{"type":"TypeList","required":true,"elem":{"schema":{"container_id":{"type":"TypeString","required":true,"forceNew":true},"root_folder_path":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recurrence_period_end_date":{"type":"TypeString","required":true},"recurrence_period_start_date":{"type":"TypeString","required":true},"recurrence_type":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_blueprint_assignment":{"schema":{"blueprint_name":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"lock_exclude_actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":200},"lock_exclude_principals":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":5},"lock_mode":{"type":"TypeString","optional":true,"default":"None"},"name":{"type":"TypeString","required":true,"forceNew":true},"parameter_values":{"type":"TypeString","optional":true},"resource_groups":{"type":"TypeString","optional":true},"target_subscription_id":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","computed":true},"version_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_bot_channel_alexa":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"skill_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_direct_line_speech":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"cognitive_account_id":{"type":"TypeString","optional":true},"cognitive_service_access_key":{"type":"TypeString","required":true},"cognitive_service_location":{"type":"TypeString","required":true},"custom_speech_model_id":{"type":"TypeString","optional":true},"custom_voice_deployment_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_directline":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site":{"type":"TypeSet","required":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"endpoint_parameters_enabled":{"type":"TypeBool","optional":true},"enhanced_authentication_enabled":{"type":"TypeBool","optional":true,"default":false},"id":{"type":"TypeString","computed":true},"key":{"type":"TypeString","computed":true},"key2":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"storage_enabled":{"type":"TypeBool","optional":true,"default":true},"trusted_origins":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"user_upload_enabled":{"type":"TypeBool","optional":true,"default":true},"v1_allowed":{"type":"TypeBool","optional":true,"default":true},"v3_allowed":{"type":"TypeBool","optional":true,"default":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_email":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"email_address":{"type":"TypeString","required":true},"email_password":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"magic_code":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_facebook":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"facebook_application_id":{"type":"TypeString","required":true},"facebook_application_secret":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"page":{"type":"TypeSet","required":true,"elem":{"schema":{"access_token":{"type":"TypeString","required":true},"id":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_line":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"line_channel":{"type":"TypeSet","required":true,"elem":{"schema":{"access_token":{"type":"TypeString","required":true},"secret":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_ms_teams":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"calling_web_hook":{"type":"TypeString","optional":true,"computed":true},"deployment_environment":{"type":"TypeString","optional":true,"default":"CommercialDeployment"},"enable_calling":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_slack":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"landing_page_url":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"signing_secret":{"type":"TypeString","optional":true},"verification_token":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_sms":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"phone_number":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sms_channel_account_security_id":{"type":"TypeString","required":true},"sms_channel_auth_token":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channel_web_chat":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site":{"type":"TypeSet","optional":true,"elem":{"schema":{"endpoint_parameters_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"storage_enabled":{"type":"TypeBool","optional":true,"default":true},"user_upload_enabled":{"type":"TypeBool","optional":true,"default":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_channels_registration":{"schema":{"cmk_key_vault_url":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"developer_app_insights_api_key":{"type":"TypeString","optional":true},"developer_app_insights_application_id":{"type":"TypeString","optional":true},"developer_app_insights_key":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"endpoint":{"type":"TypeString","optional":true},"icon_url":{"type":"TypeString","optional":true,"default":"https://docs.botframework.com/static/devportal/client/images/bot-framework-default.png"},"location":{"type":"TypeString","required":true,"forceNew":true},"microsoft_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"streaming_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_connection":{"schema":{"bot_name":{"type":"TypeString","required":true,"forceNew":true},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeString","optional":true},"service_provider_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_service_azure_bot":{"schema":{"cmk_key_vault_key_url":{"type":"TypeString","optional":true},"developer_app_insights_api_key":{"type":"TypeString","optional":true},"developer_app_insights_application_id":{"type":"TypeString","optional":true},"developer_app_insights_key":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"endpoint":{"type":"TypeString","optional":true},"icon_url":{"type":"TypeString","optional":true,"default":"https://docs.botframework.com/static/devportal/client/images/bot-framework-default.png"},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"luis_app_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"luis_key":{"type":"TypeString","optional":true},"microsoft_app_id":{"type":"TypeString","required":true,"forceNew":true},"microsoft_app_msi_id":{"type":"TypeString","optional":true,"forceNew":true},"microsoft_app_tenant_id":{"type":"TypeString","optional":true,"forceNew":true},"microsoft_app_type":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"streaming_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_bot_web_app":{"schema":{"developer_app_insights_api_key":{"type":"TypeString","optional":true},"developer_app_insights_application_id":{"type":"TypeString","optional":true},"developer_app_insights_key":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"endpoint":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"luis_app_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"luis_key":{"type":"TypeString","optional":true},"microsoft_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_capacity_reservation":{"schema":{"capacity_reservation_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_capacity_reservation_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_endpoint":{"schema":{"content_types_to_compress":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"delivery_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"cache_expiration_action":{"type":"TypeList","optional":true,"elem":{"schema":{"behavior":{"type":"TypeString","required":true},"duration":{"type":"TypeString","optional":true}}},"maxItems":1},"cache_key_query_string_action":{"type":"TypeList","optional":true,"elem":{"schema":{"behavior":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true}}},"maxItems":1},"cookies_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"device_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}},"maxItems":1},"http_version_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"modify_request_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"modify_response_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"name":{"type":"TypeString","required":true},"order":{"type":"TypeInt","required":true},"post_arg_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"query_string_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"remote_address_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true}}}},"request_body_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"request_header_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"request_method_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}},"maxItems":1},"request_scheme_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}},"maxItems":1},"request_uri_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"url_file_extension_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"url_file_name_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"url_path_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"url_redirect_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fragment":{"type":"TypeString","optional":true},"hostname":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","optional":true,"default":"MatchRequest"},"query_string":{"type":"TypeString","optional":true},"redirect_type":{"type":"TypeString","required":true}}},"maxItems":1},"url_rewrite_action":{"type":"TypeList","optional":true,"elem":{"schema":{"destination":{"type":"TypeString","required":true},"preserve_unmatched_path":{"type":"TypeBool","optional":true,"default":true},"source_pattern":{"type":"TypeString","required":true}}},"maxItems":1}}}},"fqdn":{"type":"TypeString","computed":true},"geo_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"country_codes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"relative_path":{"type":"TypeString","required":true}}}},"global_delivery_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"cache_expiration_action":{"type":"TypeList","optional":true,"elem":{"schema":{"behavior":{"type":"TypeString","required":true},"duration":{"type":"TypeString","optional":true}}},"maxItems":1},"cache_key_query_string_action":{"type":"TypeList","optional":true,"elem":{"schema":{"behavior":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true}}},"maxItems":1},"modify_request_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"modify_response_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"url_redirect_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fragment":{"type":"TypeString","optional":true},"hostname":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","optional":true,"default":"MatchRequest"},"query_string":{"type":"TypeString","optional":true},"redirect_type":{"type":"TypeString","required":true}}},"maxItems":1},"url_rewrite_action":{"type":"TypeList","optional":true,"elem":{"schema":{"destination":{"type":"TypeString","required":true},"preserve_unmatched_path":{"type":"TypeBool","optional":true,"default":true},"source_pattern":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"is_compression_enabled":{"type":"TypeBool","optional":true},"is_http_allowed":{"type":"TypeBool","optional":true,"default":true},"is_https_allowed":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"optimization_type":{"type":"TypeString","optional":true},"origin":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"schema":{"host_name":{"type":"TypeString","required":true,"forceNew":true},"http_port":{"type":"TypeInt","optional":true,"default":80,"forceNew":true},"https_port":{"type":"TypeInt","optional":true,"default":443,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"origin_host_header":{"type":"TypeString","optional":true},"origin_path":{"type":"TypeString","optional":true},"probe_path":{"type":"TypeString","optional":true},"profile_name":{"type":"TypeString","required":true,"forceNew":true},"querystring_caching_behaviour":{"type":"TypeString","optional":true,"default":"IgnoreQueryString"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_endpoint_custom_domain":{"schema":{"cdn_endpoint_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_managed_https":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_type":{"type":"TypeString","required":true},"protocol_type":{"type":"TypeString","required":true},"tls_version":{"type":"TypeString","optional":true,"default":"TLS12"}}},"maxItems":1,"minItems":1},"host_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"user_managed_https":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_secret_id":{"type":"TypeString","required":true},"tls_version":{"type":"TypeString","optional":true,"default":"TLS12"}}},"maxItems":1,"minItems":1}},"timeouts":{"create":720,"read":5,"delete":720,"update":1440}},"azurerm_cdn_frontdoor_custom_domain":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"dns_zone_id":{"type":"TypeString","optional":true},"expiration_date":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tls":{"type":"TypeList","required":true,"elem":{"schema":{"cdn_frontdoor_secret_id":{"type":"TypeString","optional":true,"computed":true},"certificate_type":{"type":"TypeString","optional":true,"default":"ManagedCertificate"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"TLS12"}}},"maxItems":1},"validation_token":{"type":"TypeString","computed":true}},"timeouts":{"create":720,"read":5,"delete":720,"update":1440}},"azurerm_cdn_frontdoor_custom_domain_association":{"schema":{"cdn_frontdoor_custom_domain_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_frontdoor_route_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_endpoint":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_firewall_policy":{"schema":{"custom_block_response_body":{"type":"TypeString","optional":true},"custom_block_response_status_code":{"type":"TypeInt","optional":true},"custom_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"match_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":600},"match_variable":{"type":"TypeString","required":true},"negation_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":5}}},"maxItems":10},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","optional":true,"default":1},"rate_limit_duration_in_minutes":{"type":"TypeInt","optional":true,"default":1},"rate_limit_threshold":{"type":"TypeInt","optional":true,"default":10},"type":{"type":"TypeString","required":true}}},"maxItems":100},"enabled":{"type":"TypeBool","optional":true,"default":true},"frontend_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"managed_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"override":{"type":"TypeList","optional":true,"elem":{"schema":{"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":false},"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"rule_id":{"type":"TypeString","required":true}}},"maxItems":1000},"rule_group_name":{"type":"TypeString","required":true}}},"maxItems":100},"type":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":100},"mode":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"redirect_url":{"type":"TypeString","optional":true},"request_body_check_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_origin":{"schema":{"cdn_frontdoor_origin_group_id":{"type":"TypeString","required":true,"forceNew":true},"certificate_name_check_enabled":{"type":"TypeBool","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"host_name":{"type":"TypeString","required":true},"http_port":{"type":"TypeInt","optional":true,"default":80},"https_port":{"type":"TypeInt","optional":true,"default":443},"name":{"type":"TypeString","required":true,"forceNew":true},"origin_host_header":{"type":"TypeString","optional":true},"priority":{"type":"TypeInt","optional":true,"default":1},"private_link":{"type":"TypeList","optional":true,"elem":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"private_link_target_id":{"type":"TypeString","required":true},"request_message":{"type":"TypeString","optional":true,"default":"Access request for CDN FrontDoor Private Link Origin"},"target_type":{"type":"TypeString","optional":true}}},"maxItems":1},"weight":{"type":"TypeInt","optional":true,"default":500}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_origin_group":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"health_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"interval_in_seconds":{"type":"TypeInt","required":true},"path":{"type":"TypeString","optional":true,"default":"/"},"protocol":{"type":"TypeString","required":true},"request_type":{"type":"TypeString","optional":true,"default":"HEAD"}}},"maxItems":1},"load_balancing":{"type":"TypeList","required":true,"elem":{"schema":{"additional_latency_in_milliseconds":{"type":"TypeInt","optional":true,"default":50},"sample_size":{"type":"TypeInt","optional":true,"default":4},"successful_samples_required":{"type":"TypeInt","optional":true,"default":3}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"restore_traffic_time_to_healed_or_new_endpoint_in_minutes":{"type":"TypeInt","optional":true,"default":10},"session_affinity_enabled":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_profile":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_guid":{"type":"TypeString","computed":true},"response_timeout_seconds":{"type":"TypeInt","optional":true,"default":120},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_route":{"schema":{"cache":{"type":"TypeList","optional":true,"elem":{"schema":{"compression_enabled":{"type":"TypeBool","optional":true,"default":false},"content_types_to_compress":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"query_string_caching_behavior":{"type":"TypeString","optional":true,"default":"IgnoreQueryString"},"query_strings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"cdn_frontdoor_custom_domain_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"cdn_frontdoor_endpoint_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_frontdoor_origin_group_id":{"type":"TypeString","required":true},"cdn_frontdoor_origin_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"cdn_frontdoor_origin_path":{"type":"TypeString","optional":true},"cdn_frontdoor_rule_set_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"forwarding_protocol":{"type":"TypeString","optional":true,"default":"MatchRequest"},"https_redirect_enabled":{"type":"TypeBool","optional":true,"default":true},"link_to_default_domain":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"patterns_to_match":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"supported_protocols":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":2}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_rule":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"schema":{"request_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"header_action":{"type":"TypeString","required":true},"header_name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"response_header_action":{"type":"TypeList","optional":true,"elem":{"schema":{"header_action":{"type":"TypeString","required":true},"header_name":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"route_configuration_override_action":{"type":"TypeList","optional":true,"elem":{"schema":{"cache_behavior":{"type":"TypeString","optional":true},"cache_duration":{"type":"TypeString","optional":true},"cdn_frontdoor_origin_group_id":{"type":"TypeString","optional":true},"compression_enabled":{"type":"TypeBool","optional":true},"forwarding_protocol":{"type":"TypeString","optional":true},"query_string_caching_behavior":{"type":"TypeString","optional":true},"query_string_parameters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":100}}},"maxItems":1},"url_redirect_action":{"type":"TypeList","optional":true,"elem":{"schema":{"destination_fragment":{"type":"TypeString","optional":true,"default":""},"destination_hostname":{"type":"TypeString","required":true},"destination_path":{"type":"TypeString","optional":true,"default":""},"query_string":{"type":"TypeString","optional":true,"default":""},"redirect_protocol":{"type":"TypeString","optional":true,"default":"MatchRequest"},"redirect_type":{"type":"TypeString","required":true}}},"maxItems":1},"url_rewrite_action":{"type":"TypeList","optional":true,"elem":{"schema":{"destination":{"type":"TypeString","required":true},"preserve_unmatched_path":{"type":"TypeBool","optional":true,"default":false},"source_pattern":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"behavior_on_match":{"type":"TypeString","optional":true,"default":"Continue"},"cdn_frontdoor_rule_set_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_frontdoor_rule_set_name":{"type":"TypeString","computed":true},"conditions":{"type":"TypeList","optional":true,"elem":{"schema":{"client_port_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true}}}},"cookies_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"cookie_name":{"type":"TypeString","required":true},"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"host_name_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"http_version_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":4},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"is_device_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"post_args_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"post_args_name":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"query_string_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"remote_address_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"IPMatch"}}}},"request_body_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"request_header_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"request_method_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":7},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"request_scheme_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString","default":"HTTP"},"maxItems":1},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"request_uri_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"server_port_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":2},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true}}}},"socket_address_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"IPMatch"}}}},"ssl_protocol_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":3},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","optional":true,"default":"Equal"}}}},"url_file_extension_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"url_filename_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}},"url_path_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":4}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"order":{"type":"TypeInt","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cdn_frontdoor_rule_set":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cdn_frontdoor_secret":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"cdn_frontdoor_profile_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"secret":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"customer_certificate":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"key_vault_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"subject_alternative_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cdn_frontdoor_security_policy":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"security_policies":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"firewall":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"association":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"domain":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"active":{"type":"TypeBool","computed":true},"cdn_frontdoor_domain_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":500},"patterns_to_match":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1}}},"maxItems":1},"cdn_frontdoor_firewall_policy_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cdn_profile":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_chaos_studio_capability":{"schema":{"capability_type":{"type":"TypeString","required":true,"forceNew":true},"chaos_studio_target_id":{"type":"TypeString","required":true,"forceNew":true},"urn":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_chaos_studio_experiment":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"chaos_studio_target_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}},"minItems":1},"steps":{"type":"TypeList","required":true,"elem":{"schema":{"branch":{"type":"TypeList","required":true,"elem":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"duration":{"type":"TypeString","optional":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"selector_name":{"type":"TypeString","optional":true},"urn":{"type":"TypeString","optional":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_chaos_studio_target":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"target_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cognitive_account":{"schema":{"custom_question_answering_search_service_id":{"type":"TypeString","optional":true},"custom_question_answering_search_service_key":{"type":"TypeString","optional":true},"custom_subdomain_name":{"type":"TypeString","optional":true,"forceNew":true},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true}}},"maxItems":1},"dynamic_throttling_enabled":{"type":"TypeBool","optional":true},"endpoint":{"type":"TypeString","computed":true},"fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","required":true,"forceNew":true},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metrics_advisor_aad_client_id":{"type":"TypeString","optional":true,"forceNew":true},"metrics_advisor_aad_tenant_id":{"type":"TypeString","optional":true,"forceNew":true},"metrics_advisor_super_user_name":{"type":"TypeString","optional":true,"forceNew":true},"metrics_advisor_website_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acls":{"type":"TypeList","optional":true,"elem":{"schema":{"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"virtual_network_rules":{"type":"TypeSet","optional":true,"elem":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false},"subnet_id":{"type":"TypeString","required":true}}}}}},"maxItems":1},"outbound_network_access_restricted":{"type":"TypeBool","optional":true,"default":false},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"qna_runtime_endpoint":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true},"storage":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cognitive_account_customer_managed_key":{"schema":{"cognitive_account_id":{"type":"TypeString","required":true,"forceNew":true},"identity_client_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cognitive_deployment":{"schema":{"cognitive_account_id":{"type":"TypeString","required":true,"forceNew":true},"model":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"format":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"rai_policy_name":{"type":"TypeString","optional":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true,"default":1},"family":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"size":{"type":"TypeString","optional":true,"forceNew":true},"tier":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"version_upgrade_option":{"type":"TypeString","optional":true,"default":"OnceNewDefaultVersionAvailable"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_communication_service":{"schema":{"data_location":{"type":"TypeString","optional":true,"default":"United States","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_communication_service_email_domain_association":{"schema":{"communication_service_id":{"type":"TypeString","required":true,"forceNew":true},"email_service_domain_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5}},"azurerm_confidential_ledger":{"schema":{"azuread_based_service_principal":{"type":"TypeList","required":true,"elem":{"schema":{"ledger_role_name":{"type":"TypeString","required":true},"principal_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}}},"minItems":1},"certificate_based_security_principal":{"type":"TypeList","optional":true,"elem":{"schema":{"ledger_role_name":{"type":"TypeString","required":true},"pem_public_key":{"type":"TypeString","required":true}}}},"identity_service_endpoint":{"type":"TypeString","computed":true},"ledger_endpoint":{"type":"TypeString","computed":true},"ledger_type":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_consumption_budget_management_group":{"schema":{"amount":{"type":"TypeFloat","required":true},"etag":{"type":"TypeString","optional":true,"computed":true},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"dimension":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"tag":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeSet","required":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeInt","required":true},"threshold_type":{"type":"TypeString","optional":true,"default":"Actual"}}},"maxItems":5,"minItems":1},"time_grain":{"type":"TypeString","optional":true,"default":"Monthly","forceNew":true},"time_period":{"type":"TypeList","required":true,"elem":{"schema":{"end_date":{"type":"TypeString","optional":true,"computed":true},"start_date":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_consumption_budget_resource_group":{"schema":{"amount":{"type":"TypeFloat","required":true},"etag":{"type":"TypeString","optional":true,"computed":true},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"dimension":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"tag":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeSet","required":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"contact_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"contact_roles":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeInt","required":true},"threshold_type":{"type":"TypeString","optional":true,"default":"Actual"}}},"maxItems":5,"minItems":1},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true},"time_grain":{"type":"TypeString","optional":true,"default":"Monthly","forceNew":true},"time_period":{"type":"TypeList","required":true,"elem":{"schema":{"end_date":{"type":"TypeString","optional":true,"computed":true},"start_date":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_consumption_budget_subscription":{"schema":{"amount":{"type":"TypeFloat","required":true},"etag":{"type":"TypeString","optional":true,"computed":true},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"dimension":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"tag":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"In"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeSet","required":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"contact_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"contact_roles":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeInt","required":true},"threshold_type":{"type":"TypeString","optional":true,"default":"Actual"}}},"maxItems":5,"minItems":1},"subscription_id":{"type":"TypeString","required":true,"forceNew":true},"time_grain":{"type":"TypeString","optional":true,"default":"Monthly","forceNew":true},"time_period":{"type":"TypeList","required":true,"elem":{"schema":{"end_date":{"type":"TypeString","optional":true,"computed":true},"start_date":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app":{"schema":{"container_app_environment_id":{"type":"TypeString","required":true,"description":"The ID of the Container App Environment to host this Container App.","forceNew":true},"custom_domain_verification_id":{"type":"TypeString","description":"The ID of the Custom Domain Verification for this Container App.","computed":true},"dapr":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The Dapr Application Identifier."},"app_port":{"type":"TypeInt","optional":true,"description":"The port which the application is listening on. This is the same as the `ingress` port."},"app_protocol":{"type":"TypeString","optional":true,"default":"http","description":"The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`."}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ingress":{"type":"TypeList","optional":true,"elem":{"schema":{"allow_insecure_connections":{"type":"TypeBool","optional":true,"default":false,"description":"Should this ingress allow insecure connections?"},"custom_domain":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_binding_type":{"type":"TypeString","description":"The Binding type. Possible values include `Disabled` and `SniEnabled`. Defaults to `Disabled`","computed":true},"certificate_id":{"type":"TypeString","description":"The ID of the Certificate.","computed":true},"name":{"type":"TypeString","description":"The hostname of the Certificate. Must be the CN or a named SAN in the certificate.","computed":true}}}},"exposed_port":{"type":"TypeInt","optional":true,"description":"The exposed port on the container for the Ingress traffic."},"external_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is this an external Ingress."},"fqdn":{"type":"TypeString","description":"The FQDN of the ingress.","computed":true},"ip_security_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true,"description":"The action. Allow or Deny."},"description":{"type":"TypeString","optional":true,"description":"Describe the IP restriction rule that is being sent to the container-app."},"ip_address_range":{"type":"TypeString","required":true,"description":"The incoming IP address or range of IP addresses (in CIDR notation)."},"name":{"type":"TypeString","required":true,"description":"Name for the IP restriction rule."}}}},"target_port":{"type":"TypeInt","required":true,"description":"The target port on the container for the Ingress traffic."},"traffic_weight":{"type":"TypeList","required":true,"elem":{"schema":{"label":{"type":"TypeString","optional":true,"description":"The label to apply to the revision as a name prefix for routing traffic."},"latest_revision":{"type":"TypeBool","optional":true,"default":false,"description":"This traffic Weight relates to the latest stable Container Revision."},"percentage":{"type":"TypeInt","required":true,"description":"The percentage of traffic to send to this revision."},"revision_suffix":{"type":"TypeString","optional":true,"description":"The suffix string to append to the revision. This must be unique for the Container App's lifetime. A default hash created by the service will be used if this value is omitted."}}}},"transport":{"type":"TypeString","optional":true,"default":"auto","description":"The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`, `tcp`. Defaults to `auto`"}}},"maxItems":1},"latest_revision_fqdn":{"type":"TypeString","description":"The FQDN of the Latest Revision of the Container App.","computed":true},"latest_revision_name":{"type":"TypeString","description":"The name of the latest Container Revision.","computed":true},"location":{"type":"TypeString","computed":true},"max_inactive_revisions":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"description":"The name for this Container App.","forceNew":true},"outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"registry":{"type":"TypeList","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"ID of the System or User Managed Identity used to pull images from the Container Registry"},"password_secret_name":{"type":"TypeString","optional":true,"description":"The name of the Secret Reference containing the password value for this user on the Container Registry."},"server":{"type":"TypeString","required":true,"description":"The hostname for the Container Registry."},"username":{"type":"TypeString","optional":true,"description":"The username to use for this Container Registry."}}},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"revision_mode":{"type":"TypeString","required":true},"secret":{"type":"TypeSet","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"The identity to use for accessing key vault reference."},"key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID. Could be either one of `id` or `versionless_id`."},"name":{"type":"TypeString","required":true,"description":"The secret name."},"value":{"type":"TypeString","optional":true,"description":"The value for this secret."}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template":{"type":"TypeList","required":true,"elem":{"schema":{"azure_queue_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true},"queue_length":{"type":"TypeInt","required":true},"queue_name":{"type":"TypeString","required":true}}}},"container":{"type":"TypeList","required":true,"elem":{"schema":{"args":{"type":"TypeList","optional":true,"description":"A list of args to pass to the container.","elem":{"type":"TypeString"}},"command":{"type":"TypeList","optional":true,"description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","required":true,"description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`. When there's a workload profile specified, there's no such constraint."},"env":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the environment variable for the container."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of the secret that contains the value for this environment variable."},"value":{"type":"TypeString","optional":true,"description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used"}}},"minItems":1},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","required":true,"description":"The image to use to create the container."},"liveness_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"initial_delay":{"type":"TypeInt","optional":true,"default":1,"description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `1` seconds."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"memory":{"type":"TypeString","required":true,"description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`. When there's a workload profile specified, there's no such constraint."},"name":{"type":"TypeString","required":true,"description":"The name of the container."},"readiness_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"initial_delay":{"type":"TypeInt","optional":true,"default":0,"description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"success_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive successful responses required to consider this probe as successful. Possible values are between `1` and `10`. Defaults to `3`."},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"startup_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"initial_delay":{"type":"TypeInt","optional":true,"default":0,"description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"volume_mounts":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Volume to be mounted in the container."},"path":{"type":"TypeString","required":true,"description":"The path in the container at which to mount this volume."}}}}}},"minItems":1},"custom_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","required":true}}},"minItems":1},"custom_rule_type":{"type":"TypeString","required":true},"metadata":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}}},"http_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","optional":true}}},"minItems":1},"concurrent_requests":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"init_container":{"type":"TypeList","optional":true,"elem":{"schema":{"args":{"type":"TypeList","optional":true,"description":"A list of args to pass to the container.","elem":{"type":"TypeString"}},"command":{"type":"TypeList","optional":true,"description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","optional":true,"description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`. When there's a workload profile specified, there's no such constraint."},"env":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the environment variable for the container."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of the secret that contains the value for this environment variable."},"value":{"type":"TypeString","optional":true,"description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used"}}},"minItems":1},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","required":true,"description":"The image to use to create the container."},"memory":{"type":"TypeString","optional":true,"description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`. When there's a workload profile specified, there's no such constraint."},"name":{"type":"TypeString","required":true,"description":"The name of the container."},"volume_mounts":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Volume to be mounted in the container."},"path":{"type":"TypeString","required":true,"description":"The path in the container at which to mount this volume."}}}}}},"minItems":1},"max_replicas":{"type":"TypeInt","optional":true,"default":10,"description":"The maximum number of replicas for this container."},"min_replicas":{"type":"TypeInt","optional":true,"default":0,"description":"The minimum number of replicas for this container."},"revision_suffix":{"type":"TypeString","optional":true,"description":"The suffix for the revision. This value must be unique for the lifetime of the Resource. If omitted the service will use a hash function to create one.","computed":true},"tcp_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","optional":true}}},"minItems":1},"concurrent_requests":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"volume":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the volume."},"storage_name":{"type":"TypeString","optional":true,"description":"The name of the `AzureFile` storage. Required when `storage_type` is `AzureFile`"},"storage_type":{"type":"TypeString","optional":true,"default":"EmptyDir","description":"The type of storage volume. Possible values include `AzureFile` and `EmptyDir`. Defaults to `EmptyDir`."}}},"minItems":1}}},"maxItems":1},"workload_profile_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_custom_domain":{"schema":{"certificate_binding_type":{"type":"TypeString","optional":true,"description":"The Binding type. Possible values include `Disabled` and `SniEnabled`.","forceNew":true},"container_app_environment_certificate_id":{"type":"TypeString","optional":true,"forceNew":true},"container_app_environment_managed_certificate_id":{"type":"TypeString","computed":true},"container_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"description":"The hostname of the Certificate. Must be the CN or a named SAN in the certificate.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_container_app_environment":{"schema":{"custom_domain_verification_id":{"type":"TypeString","description":"The ID of the Custom Domain Verification for this Container App Environment.","computed":true},"dapr_application_insights_connection_string":{"type":"TypeString","optional":true,"description":"Application Insights connection string used by Dapr to export Service to Service communication telemetry.","forceNew":true},"default_domain":{"type":"TypeString","description":"The default publicly resolvable name of this Container App Environment","computed":true},"docker_bridge_cidr":{"type":"TypeString","description":"The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.","computed":true},"infrastructure_resource_group_name":{"type":"TypeString","optional":true,"description":"Name of the platform-managed resource group created for the Managed Environment to host infrastructure resources. **Note:** Only valid if a `workload_profile` is specified. If `infrastructure_subnet_id` is specified, this resource group will be created in the same subscription as `infrastructure_subnet_id`.","forceNew":true},"infrastructure_subnet_id":{"type":"TypeString","optional":true,"description":"The existing Subnet to use for the Container Apps Control Plane. **NOTE:** The Subnet must have a `/21` or larger address space.","forceNew":true},"internal_load_balancer_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Container Environment operate in Internal Load Balancing Mode? Defaults to `false`. **Note:** can only be set to `true` if `infrastructure_subnet_id` is specified.","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"log_analytics_workspace_id":{"type":"TypeString","optional":true,"description":"The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to."},"mutual_tls_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should mutual transport layer security (mTLS) be enabled? Defaults to `false`. **Note:** This feature is in public preview. Enabling mTLS for your applications may increase response latency and reduce maximum throughput in high-load scenarios."},"name":{"type":"TypeString","required":true,"description":"The name of the Container Apps Managed Environment.","forceNew":true},"platform_reserved_cidr":{"type":"TypeString","description":"The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.","computed":true},"platform_reserved_dns_ip_address":{"type":"TypeString","description":"The IP address from the IP range defined by `platform_reserved_cidr` that is reserved for the internal DNS server.","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"static_ip_address":{"type":"TypeString","description":"The Static IP Address of the Environment.","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workload_profile":{"type":"TypeSet","optional":true,"elem":{"schema":{"maximum_count":{"type":"TypeInt","optional":true},"minimum_count":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true},"workload_profile_type":{"type":"TypeString","required":true}}}},"zone_redundancy_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_environment_certificate":{"schema":{"certificate_blob_base64":{"type":"TypeString","required":true,"description":"The Certificate Private Key as a base64 encoded PFX or PEM.","forceNew":true},"certificate_password":{"type":"TypeString","required":true,"description":"The password for the Certificate.","forceNew":true},"container_app_environment_id":{"type":"TypeString","required":true,"description":"The Container App Managed Environment ID to configure this Certificate on.","forceNew":true},"expiration_date":{"type":"TypeString","description":"The expiration date for the Certificate.","computed":true},"issue_date":{"type":"TypeString","description":"The date of issue for the Certificate.","computed":true},"issuer":{"type":"TypeString","description":"The Certificate Issuer.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Container Apps Environment Certificate.","forceNew":true},"subject_name":{"type":"TypeString","description":"The Subject Name for the Certificate.","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","description":"The Thumbprint of the Certificate.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_environment_custom_domain":{"schema":{"certificate_blob_base64":{"type":"TypeString","required":true,"description":"The Custom Domain Certificate Private Key as a base64 encoded PFX or PEM."},"certificate_password":{"type":"TypeString","required":true,"description":"The Custom Domain Certificate password."},"container_app_environment_id":{"type":"TypeString","required":true,"description":"The Container App Managed Environment ID to configure this Custom Domain on.","forceNew":true},"dns_suffix":{"type":"TypeString","required":true,"description":"The Custom Domain DNS suffix for this Container App Environment."}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_environment_dapr_component":{"schema":{"component_type":{"type":"TypeString","required":true,"description":"The Dapr Component Type. For example `state.azure.blobstorage`.","forceNew":true},"container_app_environment_id":{"type":"TypeString","required":true,"description":"The Container App Managed Environment ID to configure this Dapr component on.","forceNew":true},"ignore_errors":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to `false`"},"init_timeout":{"type":"TypeString","optional":true,"default":"5s","description":"The component initialisation timeout in ISO8601 format. e.g. `5s`, `2h`, `1m`. Defaults to `5s`."},"metadata":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Metadata configuration item."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of a secret specified in the `secrets` block that contains the value for this metadata configuration item."},"value":{"type":"TypeString","optional":true,"description":"The value for this metadata configuration item."}}},"minItems":1},"name":{"type":"TypeString","required":true,"description":"The name for this Dapr Component.","forceNew":true},"scopes":{"type":"TypeList","optional":true,"description":"A list of scopes to which this component applies. e.g. a Container App's `dapr.app_id` value.","elem":{"type":"TypeString"},"minItems":1},"secret":{"type":"TypeSet","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"The identity to use for accessing key vault reference."},"key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID. Could be either one of `id` or `versionless_id`."},"name":{"type":"TypeString","required":true,"description":"The secret name."},"value":{"type":"TypeString","optional":true,"description":"The value for this secret."}}}},"version":{"type":"TypeString","required":true,"description":"The version of the component."}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_environment_storage":{"schema":{"access_key":{"type":"TypeString","required":true,"description":"The Storage Account Access Key."},"access_mode":{"type":"TypeString","required":true,"description":"The access mode to connect this storage to the Container App. Possible values include `ReadOnly` and `ReadWrite`.","forceNew":true},"account_name":{"type":"TypeString","required":true,"description":"The Azure Storage Account in which the Share to be used is located.","forceNew":true},"container_app_environment_id":{"type":"TypeString","required":true,"description":"The ID of the Container App Environment to which this storage belongs.","forceNew":true},"name":{"type":"TypeString","required":true,"description":"The name for this Storage.","forceNew":true},"share_name":{"type":"TypeString","required":true,"description":"The name of the Azure Storage Share to use.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_app_job":{"schema":{"container_app_environment_id":{"type":"TypeString","required":true,"forceNew":true},"event_stream_endpoint":{"type":"TypeString","computed":true},"event_trigger_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"parallelism":{"type":"TypeInt","optional":true,"default":1},"replica_completion_count":{"type":"TypeInt","optional":true,"default":1},"scale":{"type":"TypeList","optional":true,"elem":{"schema":{"max_executions":{"type":"TypeInt","optional":true,"default":100},"min_executions":{"type":"TypeInt","optional":true,"default":0},"polling_interval_in_seconds":{"type":"TypeInt","optional":true,"default":30},"rules":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_name":{"type":"TypeString","required":true},"trigger_parameter":{"type":"TypeString","required":true}}},"minItems":1},"custom_rule_type":{"type":"TypeString","required":true},"metadata":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}}}}}}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"manual_trigger_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"parallelism":{"type":"TypeInt","optional":true,"default":1},"replica_completion_count":{"type":"TypeInt","optional":true,"default":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"registry":{"type":"TypeList","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"ID of the System or User Managed Identity used to pull images from the Container Registry"},"password_secret_name":{"type":"TypeString","optional":true,"description":"The name of the Secret Reference containing the password value for this user on the Container Registry."},"server":{"type":"TypeString","required":true,"description":"The hostname for the Container Registry."},"username":{"type":"TypeString","optional":true,"description":"The username to use for this Container Registry."}}},"minItems":1},"replica_retry_limit":{"type":"TypeInt","optional":true},"replica_timeout_in_seconds":{"type":"TypeInt","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schedule_trigger_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cron_expression":{"type":"TypeString","required":true},"parallelism":{"type":"TypeInt","optional":true,"default":1},"replica_completion_count":{"type":"TypeInt","optional":true,"default":1}}},"maxItems":1},"secret":{"type":"TypeSet","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true,"description":"The identity to use for accessing key vault reference."},"key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID. Could be either one of `id` or `versionless_id`."},"name":{"type":"TypeString","required":true,"description":"The secret name."},"value":{"type":"TypeString","optional":true,"description":"The value for this secret."}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template":{"type":"TypeList","required":true,"elem":{"schema":{"container":{"type":"TypeList","required":true,"elem":{"schema":{"args":{"type":"TypeList","optional":true,"description":"A list of args to pass to the container.","elem":{"type":"TypeString"}},"command":{"type":"TypeList","optional":true,"description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","required":true,"description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`. When there's a workload profile specified, there's no such constraint."},"env":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the environment variable for the container."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of the secret that contains the value for this environment variable."},"value":{"type":"TypeString","optional":true,"description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used"}}},"minItems":1},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","required":true,"description":"The image to use to create the container."},"liveness_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"initial_delay":{"type":"TypeInt","optional":true,"default":1,"description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `1` seconds."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"memory":{"type":"TypeString","required":true,"description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`. When there's a workload profile specified, there's no such constraint."},"name":{"type":"TypeString","required":true,"description":"The name of the container."},"readiness_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"initial_delay":{"type":"TypeInt","optional":true,"default":0,"description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"success_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive successful responses required to consider this probe as successful. Possible values are between `1` and `10`. Defaults to `3`."},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"startup_probe":{"type":"TypeList","optional":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","optional":true,"default":3,"description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`."},"header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The HTTP Header Name."},"value":{"type":"TypeString","required":true,"description":"The HTTP Header value."}}}},"host":{"type":"TypeString","optional":true,"description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes."},"initial_delay":{"type":"TypeInt","optional":true,"default":0,"description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds."},"interval_seconds":{"type":"TypeInt","optional":true,"default":10,"description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`"},"path":{"type":"TypeString","optional":true,"description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port number on which to connect. Possible values are between `1` and `65535`."},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","optional":true,"default":1,"description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`."},"transport":{"type":"TypeString","required":true,"description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`."}}},"minItems":1},"volume_mounts":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Volume to be mounted in the container."},"path":{"type":"TypeString","required":true,"description":"The path in the container at which to mount this volume."}}}}}},"minItems":1},"init_container":{"type":"TypeList","optional":true,"elem":{"schema":{"args":{"type":"TypeList","optional":true,"description":"A list of args to pass to the container.","elem":{"type":"TypeString"}},"command":{"type":"TypeList","optional":true,"description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","optional":true,"description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`. When there's a workload profile specified, there's no such constraint."},"env":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the environment variable for the container."},"secret_name":{"type":"TypeString","optional":true,"description":"The name of the secret that contains the value for this environment variable."},"value":{"type":"TypeString","optional":true,"description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used"}}},"minItems":1},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","required":true,"description":"The image to use to create the container."},"memory":{"type":"TypeString","optional":true,"description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`. When there's a workload profile specified, there's no such constraint."},"name":{"type":"TypeString","required":true,"description":"The name of the container."},"volume_mounts":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Volume to be mounted in the container."},"path":{"type":"TypeString","required":true,"description":"The path in the container at which to mount this volume."}}}}}},"minItems":1},"volume":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the volume."},"storage_name":{"type":"TypeString","optional":true,"description":"The name of the `AzureFile` storage. Required when `storage_type` is `AzureFile`"},"storage_type":{"type":"TypeString","optional":true,"default":"EmptyDir","description":"The type of storage volume. Possible values include `AzureFile` and `EmptyDir`. Defaults to `EmptyDir`."}}},"minItems":1}}},"maxItems":1},"workload_profile_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_connected_registry":{"schema":{"audit_log_enabled":{"type":"TypeBool","optional":true,"default":false},"client_token_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"container_registry_id":{"type":"TypeString","required":true,"forceNew":true},"log_level":{"type":"TypeString","optional":true,"default":"None"},"mode":{"type":"TypeString","optional":true,"default":"ReadWrite","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"digest":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"tag":{"type":"TypeString","optional":true}}}},"parent_registry_id":{"type":"TypeString","optional":true,"forceNew":true},"sync_message_ttl":{"type":"TypeString","optional":true,"default":"P1D"},"sync_schedule":{"type":"TypeString","optional":true,"default":"* * * * *"},"sync_token_id":{"type":"TypeString","required":true,"forceNew":true},"sync_window":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_group":{"schema":{"container":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"commands":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","required":true,"forceNew":true},"cpu_limit":{"type":"TypeFloat","optional":true},"environment_variables":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"image":{"type":"TypeString","required":true,"forceNew":true},"liveness_probe":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"exec":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"failure_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"http_get":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"http_headers":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"path":{"type":"TypeString","optional":true,"forceNew":true},"port":{"type":"TypeInt","optional":true,"forceNew":true},"scheme":{"type":"TypeString","optional":true,"forceNew":true}}}},"initial_delay_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"period_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"success_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"timeout_seconds":{"type":"TypeInt","optional":true,"forceNew":true}}},"maxItems":1},"memory":{"type":"TypeFloat","required":true,"forceNew":true},"memory_limit":{"type":"TypeFloat","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"ports":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"port":{"type":"TypeInt","optional":true,"forceNew":true},"protocol":{"type":"TypeString","optional":true,"default":"TCP","forceNew":true}}}},"readiness_probe":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"exec":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"failure_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"http_get":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"http_headers":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"path":{"type":"TypeString","optional":true,"forceNew":true},"port":{"type":"TypeInt","optional":true,"forceNew":true},"scheme":{"type":"TypeString","optional":true,"forceNew":true}}}},"initial_delay_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"period_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"success_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"timeout_seconds":{"type":"TypeInt","optional":true,"forceNew":true}}},"maxItems":1},"secure_environment_variables":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"security":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"privilege_enabled":{"type":"TypeBool","required":true,"forceNew":true}}}},"volume":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"empty_dir":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"git_repo":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"directory":{"type":"TypeString","optional":true,"forceNew":true},"revision":{"type":"TypeString","optional":true,"forceNew":true},"url":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"mount_path":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"read_only":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"secret":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"share_name":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_key":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}}},"diagnostics":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"log_analytics":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"log_type":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true},"workspace_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"dns_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"nameservers":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"options":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"search_domains":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"dns_name_label":{"type":"TypeString","optional":true,"forceNew":true},"dns_name_label_reuse_policy":{"type":"TypeString","optional":true,"default":"Unsecure"},"exposed_port":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"port":{"type":"TypeInt","optional":true,"forceNew":true},"protocol":{"type":"TypeString","optional":true,"default":"TCP","forceNew":true}}}},"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"image_registry_credential":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Container Registry access.","forceNew":true},"username":{"type":"TypeString","optional":true,"forceNew":true}}}},"init_container":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"commands":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"environment_variables":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"image":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"secure_environment_variables":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"security":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"privilege_enabled":{"type":"TypeBool","required":true,"forceNew":true}}}},"volume":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"empty_dir":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"git_repo":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"directory":{"type":"TypeString","optional":true,"forceNew":true},"revision":{"type":"TypeString","optional":true,"forceNew":true},"url":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"mount_path":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"read_only":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"secret":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"share_name":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_key":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}}},"ip_address":{"type":"TypeString","computed":true},"ip_address_type":{"type":"TypeString","optional":true,"default":"Public","forceNew":true},"key_vault_key_id":{"type":"TypeString","optional":true,"forceNew":true},"key_vault_user_assigned_identity_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile_id":{"type":"TypeString","optional":true,"computed":true},"os_type":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"restart_policy":{"type":"TypeString","optional":true,"default":"Always","forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"subnet_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":30,"update":30}},"azurerm_container_registry":{"schema":{"admin_enabled":{"type":"TypeBool","optional":true,"default":false},"admin_password":{"type":"TypeString","computed":true},"admin_username":{"type":"TypeString","computed":true},"anonymous_pull_enabled":{"type":"TypeBool","optional":true},"data_endpoint_enabled":{"type":"TypeBool","optional":true},"encryption":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","required":true},"key_vault_key_id":{"type":"TypeString","required":true}}},"maxItems":1},"export_policy_enabled":{"type":"TypeBool","optional":true,"default":true},"georeplications":{"type":"TypeList","optional":true,"elem":{"schema":{"location":{"type":"TypeString","required":true},"regional_endpoint_enabled":{"type":"TypeBool","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_redundancy_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"login_server":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rule_bypass_option":{"type":"TypeString","optional":true,"default":"AzureServices"},"network_rule_set":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_rule":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"ip_range":{"type":"TypeString","required":true}}}}}},"maxItems":1},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"quarantine_policy_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_policy_in_days":{"type":"TypeInt","optional":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trust_policy_enabled":{"type":"TypeBool","optional":true,"default":false},"zone_redundancy_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_agent_pool":{"schema":{"container_registry_name":{"type":"TypeString","required":true,"forceNew":true},"instance_count":{"type":"TypeInt","optional":true,"default":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","optional":true,"default":"S1","forceNew":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_cache_rule":{"schema":{"container_registry_id":{"type":"TypeString","required":true,"forceNew":true},"credential_set_id":{"type":"TypeString","optional":true,"description":"The ARM resource ID of the credential store which is associated with the cache rule."},"name":{"type":"TypeString","required":true,"description":"The name of the cache rule.","forceNew":true},"source_repo":{"type":"TypeString","required":true,"description":"The full source repository path such as 'docker.io/library/ubuntu'.","forceNew":true},"target_repo":{"type":"TypeString","required":true,"description":"The target repository namespace such as 'ubuntu'.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_scope_map":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"container_registry_name":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_task":{"schema":{"agent_pool_name":{"type":"TypeString","optional":true},"agent_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"cpu":{"type":"TypeInt","required":true}}},"maxItems":1},"base_image_trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"update_trigger_endpoint":{"type":"TypeString","optional":true},"update_trigger_payload_type":{"type":"TypeString","optional":true}}},"maxItems":1},"container_registry_id":{"type":"TypeString","required":true,"forceNew":true},"docker_step":{"type":"TypeList","optional":true,"elem":{"schema":{"arguments":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"cache_enabled":{"type":"TypeBool","optional":true,"default":true},"context_access_token":{"type":"TypeString","required":true},"context_path":{"type":"TypeString","required":true},"dockerfile_path":{"type":"TypeString","required":true},"image_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"push_enabled":{"type":"TypeBool","optional":true,"default":true},"secret_arguments":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target":{"type":"TypeString","optional":true}}},"maxItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"encoded_step":{"type":"TypeList","optional":true,"elem":{"schema":{"context_access_token":{"type":"TypeString","optional":true},"context_path":{"type":"TypeString","optional":true},"secret_values":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"task_content":{"type":"TypeString","required":true},"value_content":{"type":"TypeString","optional":true},"values":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"file_step":{"type":"TypeList","optional":true,"elem":{"schema":{"context_access_token":{"type":"TypeString","optional":true},"context_path":{"type":"TypeString","optional":true},"secret_values":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"task_file_path":{"type":"TypeString","required":true},"value_file_path":{"type":"TypeString","optional":true},"values":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"is_system_task":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"log_template":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform":{"type":"TypeList","optional":true,"elem":{"schema":{"architecture":{"type":"TypeString","optional":true},"os":{"type":"TypeString","required":true},"variant":{"type":"TypeString","optional":true}}},"maxItems":1},"registry_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"custom":{"type":"TypeSet","optional":true,"elem":{"schema":{"identity":{"type":"TypeString","optional":true},"login_server":{"type":"TypeString","required":true},"password":{"type":"TypeString","optional":true},"username":{"type":"TypeString","optional":true}}}},"source":{"type":"TypeList","optional":true,"elem":{"schema":{"login_mode":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"source_trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"expire_in_seconds":{"type":"TypeInt","optional":true},"refresh_token":{"type":"TypeString","optional":true},"scope":{"type":"TypeString","optional":true},"token":{"type":"TypeString","required":true},"token_type":{"type":"TypeString","required":true}}},"maxItems":1},"branch":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"events":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"repository_url":{"type":"TypeString","required":true},"source_type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":3600},"timer_trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"schedule":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_task_schedule_run_now":{"schema":{"container_registry_task_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_container_registry_token":{"schema":{"container_registry_name":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope_map_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_token_password":{"schema":{"container_registry_token_id":{"type":"TypeString","required":true,"forceNew":true},"password1":{"type":"TypeList","required":true,"elem":{"schema":{"expiry":{"type":"TypeString","optional":true,"forceNew":true},"value":{"type":"TypeString","computed":true}}},"maxItems":1},"password2":{"type":"TypeList","optional":true,"elem":{"schema":{"expiry":{"type":"TypeString","optional":true,"forceNew":true},"value":{"type":"TypeString","computed":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_container_registry_webhook":{"schema":{"actions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"custom_headers":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"registry_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","optional":true,"default":""},"service_uri":{"type":"TypeString","required":true},"status":{"type":"TypeString","optional":true,"default":"enabled"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_account":{"schema":{"access_key_metadata_writes_enabled":{"type":"TypeBool","optional":true,"default":true},"analytical_storage":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"schema_type":{"type":"TypeString","required":true}}},"maxItems":1},"analytical_storage_enabled":{"type":"TypeBool","optional":true,"default":false},"automatic_failover_enabled":{"type":"TypeBool","optional":true,"default":false},"backup":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"interval_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"retention_in_hours":{"type":"TypeInt","optional":true,"computed":true},"storage_redundancy":{"type":"TypeString","optional":true,"computed":true},"tier":{"type":"TypeString","optional":true,"computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"burst_capacity_enabled":{"type":"TypeBool","optional":true,"default":false},"capabilities":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}}},"capacity":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"total_throughput_limit":{"type":"TypeInt","required":true}}},"maxItems":1},"consistency_policy":{"type":"TypeList","required":true,"elem":{"schema":{"consistency_level":{"type":"TypeString","required":true},"max_interval_in_seconds":{"type":"TypeInt","optional":true,"default":5},"max_staleness_prefix":{"type":"TypeInt","optional":true,"default":100}}},"maxItems":1},"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"max_age_in_seconds":{"type":"TypeInt","optional":true}}},"maxItems":1},"create_mode":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"default_identity_type":{"type":"TypeString","optional":true,"default":"FirstPartyIdentity"},"endpoint":{"type":"TypeString","computed":true},"free_tier_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"geo_location":{"type":"TypeSet","required":true,"elem":{"schema":{"failover_priority":{"type":"TypeInt","required":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"zone_redundant":{"type":"TypeBool","optional":true,"default":false}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ip_range_filter":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"is_virtual_network_filter_enabled":{"type":"TypeBool","optional":true,"default":false},"key_vault_key_id":{"type":"TypeString","optional":true,"forceNew":true},"kind":{"type":"TypeString","optional":true,"default":"GlobalDocumentDB","forceNew":true},"local_authentication_disabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_hsm_key_id":{"type":"TypeString","optional":true,"forceNew":true},"minimal_tls_version":{"type":"TypeString","optional":true,"default":"Tls12"},"mongo_server_version":{"type":"TypeString","optional":true,"computed":true},"multiple_write_locations_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acl_bypass_for_azure_services":{"type":"TypeBool","optional":true,"default":false},"network_acl_bypass_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"offer_type":{"type":"TypeString","required":true},"partition_merge_enabled":{"type":"TypeBool","optional":true,"default":false},"primary_key":{"type":"TypeString","computed":true},"primary_mongodb_connection_string":{"type":"TypeString","computed":true},"primary_readonly_key":{"type":"TypeString","computed":true},"primary_readonly_mongodb_connection_string":{"type":"TypeString","computed":true},"primary_readonly_sql_connection_string":{"type":"TypeString","computed":true},"primary_sql_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"read_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"restore":{"type":"TypeList","optional":true,"elem":{"schema":{"database":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"collection_names":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"gremlin_database":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"graph_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"restore_timestamp_in_utc":{"type":"TypeString","required":true,"forceNew":true},"source_cosmosdb_account_id":{"type":"TypeString","required":true,"forceNew":true},"tables_to_restore":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"secondary_key":{"type":"TypeString","computed":true},"secondary_mongodb_connection_string":{"type":"TypeString","computed":true},"secondary_readonly_key":{"type":"TypeString","computed":true},"secondary_readonly_mongodb_connection_string":{"type":"TypeString","computed":true},"secondary_readonly_sql_connection_string":{"type":"TypeString","computed":true},"secondary_sql_connection_string":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_rule":{"type":"TypeSet","optional":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false}}}},"write_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_cosmosdb_cassandra_cluster":{"schema":{"authentication_method":{"type":"TypeString","optional":true,"default":"Cassandra"},"client_certificate_pems":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_admin_password":{"type":"TypeString","required":true,"forceNew":true},"delegated_management_subnet_id":{"type":"TypeString","required":true,"forceNew":true},"external_gossip_certificate_pems":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"external_seed_node_ip_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"hours_between_backups":{"type":"TypeInt","optional":true,"default":24},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"repair_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"default":"3.11","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_cassandra_datacenter":{"schema":{"availability_zones_enabled":{"type":"TypeBool","optional":true,"default":true},"backup_storage_customer_key_uri":{"type":"TypeString","optional":true},"base64_encoded_yaml_fragment":{"type":"TypeString","optional":true},"cassandra_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"delegated_management_subnet_id":{"type":"TypeString","required":true,"forceNew":true},"disk_count":{"type":"TypeInt","optional":true},"disk_sku":{"type":"TypeString","optional":true,"default":"P30"},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_disk_customer_key_uri":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_count":{"type":"TypeInt","optional":true,"default":3},"seed_node_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"sku_name":{"type":"TypeString","optional":true,"default":"Standard_E16s_v5"}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_cosmosdb_cassandra_keyspace":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_cassandra_table":{"schema":{"analytical_storage_ttl":{"type":"TypeInt","optional":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"cassandra_keyspace_id":{"type":"TypeString","required":true,"forceNew":true},"default_ttl":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"schema":{"type":"TypeList","required":true,"elem":{"schema":{"cluster_key":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"order_by":{"type":"TypeString","required":true}}}},"column":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"minItems":1},"partition_key":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_gremlin_database":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_gremlin_graph":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"analytical_storage_ttl":{"type":"TypeInt","optional":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"conflict_resolution_policy":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"conflict_resolution_path":{"type":"TypeString","optional":true},"conflict_resolution_procedure":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1},"database_name":{"type":"TypeString","required":true,"forceNew":true},"default_ttl":{"type":"TypeInt","optional":true},"index_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"automatic":{"type":"TypeBool","optional":true,"default":true},"composite_index":{"type":"TypeList","optional":true,"elem":{"schema":{"index":{"type":"TypeList","required":true,"elem":{"schema":{"order":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}},"minItems":1}}}},"excluded_paths":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"included_paths":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"indexing_mode":{"type":"TypeString","required":true},"spatial_index":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","required":true},"types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key_path":{"type":"TypeString","required":true,"forceNew":true},"partition_key_version":{"type":"TypeInt","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true},"unique_key":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"paths":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_mongo_collection":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"analytical_storage_ttl":{"type":"TypeInt","optional":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"database_name":{"type":"TypeString","required":true,"forceNew":true},"default_ttl_seconds":{"type":"TypeInt","optional":true},"index":{"type":"TypeSet","optional":true,"elem":{"schema":{"keys":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"unique":{"type":"TypeBool","optional":true,"default":false}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"shard_key":{"type":"TypeString","optional":true,"forceNew":true},"system_indexes":{"type":"TypeList","computed":true,"elem":{"schema":{"keys":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"unique":{"type":"TypeBool","computed":true}}}},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_mongo_database":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_mongo_role_definition":{"schema":{"cosmos_mongo_database_id":{"type":"TypeString","required":true,"forceNew":true},"inherited_role_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"privilege":{"type":"TypeList","optional":true,"elem":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"resource":{"type":"TypeList","required":true,"elem":{"schema":{"collection_name":{"type":"TypeString","optional":true},"db_name":{"type":"TypeString","optional":true}}},"maxItems":1}}}},"role_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_mongo_user_definition":{"schema":{"cosmos_mongo_database_id":{"type":"TypeString","required":true,"forceNew":true},"inherited_role_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_postgresql_cluster":{"schema":{"administrator_login_password":{"type":"TypeString","optional":true},"citus_version":{"type":"TypeString","optional":true,"computed":true},"coordinator_public_ip_access_enabled":{"type":"TypeBool","optional":true,"default":true},"coordinator_server_edition":{"type":"TypeString","optional":true,"default":"GeneralPurpose"},"coordinator_storage_quota_in_mb":{"type":"TypeInt","optional":true},"coordinator_vcore_count":{"type":"TypeInt","optional":true},"earliest_restore_time":{"type":"TypeString","computed":true},"ha_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeInt","optional":true,"default":0},"start_hour":{"type":"TypeInt","optional":true,"default":0},"start_minute":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"node_count":{"type":"TypeInt","required":true},"node_public_ip_access_enabled":{"type":"TypeBool","optional":true,"default":false},"node_server_edition":{"type":"TypeString","optional":true,"default":"MemoryOptimized"},"node_storage_quota_in_mb":{"type":"TypeInt","optional":true,"computed":true},"node_vcores":{"type":"TypeInt","optional":true,"computed":true},"point_in_time_in_utc":{"type":"TypeString","optional":true,"forceNew":true},"preferred_primary_zone":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"servers":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"shards_on_coordinator_enabled":{"type":"TypeBool","optional":true,"computed":true},"source_location":{"type":"TypeString","optional":true,"forceNew":true},"source_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"sql_version":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_cosmosdb_postgresql_coordinator_configuration":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_postgresql_firewall_rule":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_postgresql_node_configuration":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_postgresql_role":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_cosmosdb_sql_container":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"analytical_storage_ttl":{"type":"TypeInt","optional":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"conflict_resolution_policy":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"conflict_resolution_path":{"type":"TypeString","optional":true},"conflict_resolution_procedure":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1},"database_name":{"type":"TypeString","required":true,"forceNew":true},"default_ttl":{"type":"TypeInt","optional":true},"indexing_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"composite_index":{"type":"TypeList","optional":true,"elem":{"schema":{"index":{"type":"TypeList","required":true,"elem":{"schema":{"order":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}},"minItems":1}}}},"excluded_path":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","required":true}}}},"included_path":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","required":true}}}},"indexing_mode":{"type":"TypeString","optional":true,"default":"consistent"},"spatial_index":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","required":true},"types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key_kind":{"type":"TypeString","optional":true,"default":"Hash","forceNew":true},"partition_key_paths":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"partition_key_version":{"type":"TypeInt","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true},"unique_key":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"paths":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_database":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_dedicated_gateway":{"schema":{"cosmosdb_account_id":{"type":"TypeString","required":true,"forceNew":true},"instance_count":{"type":"TypeInt","required":true},"instance_size":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_function":{"schema":{"body":{"type":"TypeString","required":true},"container_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_role_assignment":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role_definition_id":{"type":"TypeString","required":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_role_definition":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"assignable_scopes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"permissions":{"type":"TypeSet","required":true,"elem":{"schema":{"data_actions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role_definition_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"type":{"type":"TypeString","optional":true,"default":"CustomRole","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_stored_procedure":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"body":{"type":"TypeString","required":true},"container_name":{"type":"TypeString","required":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_sql_trigger":{"schema":{"body":{"type":"TypeString","required":true},"container_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"operation":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cosmosdb_table":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"autoscale_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cost_anomaly_alert":{"schema":{"display_name":{"type":"TypeString","required":true},"email_addresses":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"email_subject":{"type":"TypeString","required":true},"message":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_cost_management_scheduled_action":{"schema":{"day_of_month":{"type":"TypeInt","optional":true},"days_of_week":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"display_name":{"type":"TypeString","required":true},"email_address_sender":{"type":"TypeString","required":true},"email_addresses":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":20,"minItems":1},"email_subject":{"type":"TypeString","required":true},"end_date":{"type":"TypeString","required":true},"frequency":{"type":"TypeString","required":true},"hour_of_day":{"type":"TypeInt","optional":true},"message":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"start_date":{"type":"TypeString","required":true},"view_id":{"type":"TypeString","required":true,"forceNew":true},"weeks_of_month":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_custom_ip_prefix":{"schema":{"cidr":{"type":"TypeString","required":true,"forceNew":true},"commissioning_enabled":{"type":"TypeBool","optional":true,"default":false},"internet_advertising_disabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parent_custom_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roa_validity_end_date":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"wan_validation_signed_message":{"type":"TypeString","optional":true,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":540,"read":5,"delete":1020,"update":1020}},"azurerm_custom_provider":{"schema":{"action":{"type":"TypeSet","optional":true,"elem":{"schema":{"endpoint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_type":{"type":"TypeSet","optional":true,"elem":{"schema":{"endpoint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"routing_type":{"type":"TypeString","optional":true,"default":"Proxy"}}}},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"validation":{"type":"TypeSet","optional":true,"elem":{"schema":{"specification":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dashboard_grafana":{"schema":{"api_key_enabled":{"type":"TypeBool","optional":true,"default":false},"auto_generated_domain_name_label_scope":{"type":"TypeString","optional":true,"default":"TenantReuse"},"azure_monitor_workspace_integrations":{"type":"TypeList","optional":true,"elem":{"schema":{"resource_id":{"type":"TypeString","required":true}}}},"deterministic_outbound_ip_enabled":{"type":"TypeBool","optional":true,"default":false},"endpoint":{"type":"TypeString","computed":true},"grafana_major_version":{"type":"TypeString","required":true,"forceNew":true},"grafana_version":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"smtp":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":false},"from_address":{"type":"TypeString","required":true},"from_name":{"type":"TypeString","optional":true,"default":"Azure Managed Grafana Notification"},"host":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true},"start_tls_policy":{"type":"TypeString","required":true},"user":{"type":"TypeString","required":true},"verification_skip_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_redundancy_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dashboard_grafana_managed_private_endpoint":{"schema":{"grafana_id":{"type":"TypeString","required":true,"forceNew":true},"group_ids":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_link_resource_id":{"type":"TypeString","required":true,"forceNew":true},"private_link_resource_region":{"type":"TypeString","optional":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_data_factory":{"schema":{"customer_managed_key_id":{"type":"TypeString","optional":true},"customer_managed_key_identity_id":{"type":"TypeString","optional":true},"github_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"account_name":{"type":"TypeString","required":true},"branch_name":{"type":"TypeString","required":true},"git_url":{"type":"TypeString","optional":true},"publishing_enabled":{"type":"TypeBool","optional":true,"default":true},"repository_name":{"type":"TypeString","required":true},"root_folder":{"type":"TypeString","required":true}}},"maxItems":1},"global_parameter":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_virtual_network_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_enabled":{"type":"TypeBool","optional":true,"default":true},"purview_id":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vsts_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"account_name":{"type":"TypeString","required":true},"branch_name":{"type":"TypeString","required":true},"project_name":{"type":"TypeString","required":true},"publishing_enabled":{"type":"TypeBool","optional":true,"default":true},"repository_name":{"type":"TypeString","required":true},"root_folder":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_credential_service_principal":{"schema":{"annotations":{"type":"TypeList","optional":true,"description":"(Optional) List of string annotations.","elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"description":"The resource ID of the parent Data Factory","forceNew":true},"description":{"type":"TypeString","optional":true,"description":"(Optional) Short text description"},"name":{"type":"TypeString","required":true,"description":"The desired name of the credential resource","forceNew":true},"service_principal_id":{"type":"TypeString","required":true,"description":"The Client ID of the Service Principal"},"service_principal_key":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true},"secret_version":{"type":"TypeString","optional":true}}},"maxItems":1},"tenant_id":{"type":"TypeString","required":true,"description":"The Tenant ID of the Service Principal"}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_data_factory_credential_user_managed_identity":{"schema":{"annotations":{"type":"TypeList","optional":true,"description":"(Optional) List of string annotations.","elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"description":"The resource ID of the parent Data Factory","forceNew":true},"description":{"type":"TypeString","optional":true,"description":"(Optional) Short text description"},"identity_id":{"type":"TypeString","required":true,"description":"The resource ID of the User Assigned Managed Identity","forceNew":true},"name":{"type":"TypeString","required":true,"description":"The desired name of the credential resource","forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_data_factory_custom_dataset":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_json":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true},"type_properties_json":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_data_flow":{"schema":{"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"script":{"type":"TypeString","optional":true},"script_lines":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"sink":{"type":"TypeList","required":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true},"rejected_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"schema_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"source":{"type":"TypeList","required":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true},"rejected_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"schema_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"transformation":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_azure_blob":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"path":{"type":"TypeString","optional":true},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_azure_sql_table":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema":{"type":"TypeString","optional":true},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}},"table":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_binary":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_blob_storage_location":{"type":"TypeList","optional":true,"elem":{"schema":{"container":{"type":"TypeString","required":true},"dynamic_container_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"compression":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"http_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"relative_url":{"type":"TypeString","required":true}}},"maxItems":1},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"sftp_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_cosmosdb_sqlapi":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"collection_name":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_delimited_text":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_blob_fs_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_file_system_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"file_system":{"type":"TypeString","optional":true},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"azure_blob_storage_location":{"type":"TypeList","optional":true,"elem":{"schema":{"container":{"type":"TypeString","required":true},"dynamic_container_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"column_delimiter":{"type":"TypeString","optional":true,"default":","},"compression_codec":{"type":"TypeString","optional":true},"compression_level":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encoding":{"type":"TypeString","optional":true},"escape_character":{"type":"TypeString","optional":true,"default":"\\"},"first_row_as_header":{"type":"TypeBool","optional":true,"default":false},"folder":{"type":"TypeString","optional":true},"http_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"relative_url":{"type":"TypeString","required":true}}},"maxItems":1},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"null_value":{"type":"TypeString","optional":true,"default":""},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"quote_character":{"type":"TypeString","optional":true,"default":"\""},"row_delimiter":{"type":"TypeString","optional":true},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_http":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"relative_url":{"type":"TypeString","optional":true},"request_body":{"type":"TypeString","optional":true},"request_method":{"type":"TypeString","optional":true},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_json":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_blob_storage_location":{"type":"TypeList","optional":true,"elem":{"schema":{"container":{"type":"TypeString","required":true},"dynamic_container_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}},"maxItems":1},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encoding":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"http_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"relative_url":{"type":"TypeString","required":true}}},"maxItems":1},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_mysql":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_parquet":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_blob_fs_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_file_system_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"file_system":{"type":"TypeString","optional":true},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"azure_blob_storage_location":{"type":"TypeList","optional":true,"elem":{"schema":{"container":{"type":"TypeString","required":true},"dynamic_container_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","optional":true},"path":{"type":"TypeString","optional":true}}},"maxItems":1},"compression_codec":{"type":"TypeString","optional":true},"compression_level":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"http_server_location":{"type":"TypeList","optional":true,"elem":{"schema":{"dynamic_filename_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_path_enabled":{"type":"TypeBool","optional":true,"default":false},"filename":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"relative_url":{"type":"TypeString","required":true}}},"maxItems":1},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_postgresql":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_snowflake":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"precision":{"type":"TypeInt","optional":true},"scale":{"type":"TypeInt","optional":true},"type":{"type":"TypeString","optional":true}}}},"schema_name":{"type":"TypeString","optional":true},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_dataset_sql_server_table":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"schema_column":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true}}}},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_flowlet_data_flow":{"schema":{"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"script":{"type":"TypeString","optional":true},"script_lines":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"sink":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true},"rejected_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"schema_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"source":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true},"rejected_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"schema_linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"transformation":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"flowlet":{"type":"TypeList","optional":true,"elem":{"schema":{"dataset_parameters":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"linked_service":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_integration_runtime_azure":{"schema":{"cleanup_enabled":{"type":"TypeBool","optional":true,"default":true},"compute_type":{"type":"TypeString","optional":true,"default":"General"},"core_count":{"type":"TypeInt","optional":true,"default":8},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"time_to_live_min":{"type":"TypeInt","optional":true,"default":0},"virtual_network_enabled":{"type":"TypeBool","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_integration_runtime_azure_ssis":{"schema":{"catalog_info":{"type":"TypeList","optional":true,"elem":{"schema":{"administrator_login":{"type":"TypeString","optional":true},"administrator_password":{"type":"TypeString","optional":true},"dual_standby_pair_name":{"type":"TypeString","optional":true},"elastic_pool_name":{"type":"TypeString","optional":true},"pricing_tier":{"type":"TypeString","optional":true},"server_endpoint":{"type":"TypeString","required":true}}},"maxItems":1},"copy_compute_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"data_integration_unit":{"type":"TypeInt","optional":true},"time_to_live":{"type":"TypeInt","optional":true}}},"maxItems":1},"credential_name":{"type":"TypeString","optional":true},"custom_setup_script":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_container_uri":{"type":"TypeString","required":true},"sas_token":{"type":"TypeString","required":true}}},"maxItems":1},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"edition":{"type":"TypeString","optional":true,"default":"Standard"},"express_custom_setup":{"type":"TypeList","optional":true,"elem":{"schema":{"command_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"secret_name":{"type":"TypeString","required":true},"secret_version":{"type":"TypeString","optional":true}}},"maxItems":1},"password":{"type":"TypeString","optional":true},"target_name":{"type":"TypeString","required":true},"user_name":{"type":"TypeString","required":true}}}},"component":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_license":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"secret_name":{"type":"TypeString","required":true},"secret_version":{"type":"TypeString","optional":true}}},"maxItems":1},"license":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true}}}},"environment":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"powershell_version":{"type":"TypeString","optional":true}}},"maxItems":1},"express_vnet_integration":{"type":"TypeList","optional":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true,"default":"LicenseIncluded"},"location":{"type":"TypeString","required":true,"forceNew":true},"max_parallel_executions_per_node":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"node_size":{"type":"TypeString","required":true},"number_of_nodes":{"type":"TypeInt","optional":true,"default":1},"package_store":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"pipeline_external_compute_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"number_of_external_nodes":{"type":"TypeInt","optional":true},"number_of_pipeline_nodes":{"type":"TypeInt","optional":true},"time_to_live":{"type":"TypeInt","optional":true}}},"maxItems":1},"proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"path":{"type":"TypeString","optional":true},"self_hosted_integration_runtime_name":{"type":"TypeString","required":true},"staging_storage_linked_service_name":{"type":"TypeString","required":true}}},"maxItems":1},"vnet_integration":{"type":"TypeList","optional":true,"elem":{"schema":{"public_ips":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2,"minItems":2},"subnet_id":{"type":"TypeString","optional":true},"subnet_name":{"type":"TypeString","optional":true},"vnet_id":{"type":"TypeString","optional":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_integration_runtime_self_hosted":{"schema":{"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_authorization_key":{"type":"TypeString","computed":true},"rbac_authorization":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"resource_id":{"type":"TypeString","required":true}}}},"secondary_authorization_key":{"type":"TypeString","computed":true},"self_contained_interactive_authoring_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_custom_service":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true},"type_properties_json":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_blob_storage":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"connection_string_insecure":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_sas_token":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"sas_uri":{"type":"TypeString","optional":true},"service_endpoint":{"type":"TypeString","optional":true},"service_principal_id":{"type":"TypeString","optional":true},"service_principal_key":{"type":"TypeString","optional":true},"service_principal_linked_key_vault_key":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"storage_kind":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","optional":true},"use_managed_identity":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_databricks":{"schema":{"access_token":{"type":"TypeString","optional":true},"adb_domain":{"type":"TypeString","required":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"existing_cluster_id":{"type":"TypeString","optional":true},"instance_pool":{"type":"TypeList","optional":true,"elem":{"schema":{"cluster_version":{"type":"TypeString","required":true},"instance_pool_id":{"type":"TypeString","required":true},"max_number_of_workers":{"type":"TypeInt","optional":true},"min_number_of_workers":{"type":"TypeInt","optional":true,"default":1}}},"maxItems":1},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"msi_work_space_resource_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"new_cluster_config":{"type":"TypeList","optional":true,"elem":{"schema":{"cluster_version":{"type":"TypeString","required":true},"custom_tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"driver_node_type":{"type":"TypeString","optional":true},"init_scripts":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"log_destination":{"type":"TypeString","optional":true},"max_number_of_workers":{"type":"TypeInt","optional":true},"min_number_of_workers":{"type":"TypeInt","optional":true,"default":"1"},"node_type":{"type":"TypeString","required":true},"spark_config":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"spark_environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_file_storage":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"file_share":{"type":"TypeString","optional":true},"host":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"password":{"type":"TypeString","optional":true},"user_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_function":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key":{"type":"TypeString","optional":true},"key_vault_key":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"url":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_search":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"encrypted_credential":{"type":"TypeString","computed":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"search_service_key":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_sql_database":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"credential_name":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_connection_string":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"service_principal_id":{"type":"TypeString","optional":true},"service_principal_key":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","optional":true},"use_managed_identity":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_azure_table_storage":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_cosmosdb":{"schema":{"account_endpoint":{"type":"TypeString","optional":true},"account_key":{"type":"TypeString","optional":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"database":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_cosmosdb_mongoapi":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"database":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"server_version_is_32_or_higher":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_data_lake_storage_gen2":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"service_principal_id":{"type":"TypeString","optional":true},"service_principal_key":{"type":"TypeString","optional":true},"storage_account_key":{"type":"TypeString","optional":true},"tenant":{"type":"TypeString","optional":true},"url":{"type":"TypeString","required":true},"use_managed_identity":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_key_vault":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_kusto":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"kusto_database_name":{"type":"TypeString","required":true},"kusto_endpoint":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"service_principal_id":{"type":"TypeString","optional":true},"service_principal_key":{"type":"TypeString","optional":true},"tenant":{"type":"TypeString","optional":true},"use_managed_identity":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_mysql":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_odata":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"basic_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"url":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_odbc":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"basic_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_postgresql":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_sftp":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"authentication_type":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"host":{"type":"TypeString","required":true},"host_key_fingerprint":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"password":{"type":"TypeString","required":true},"port":{"type":"TypeInt","required":true},"skip_host_key_validation":{"type":"TypeBool","optional":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_snowflake":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_sql_server":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_connection_string":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_synapse":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"connection_string":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"key_vault_password":{"type":"TypeList","optional":true,"elem":{"schema":{"linked_service_name":{"type":"TypeString","required":true},"secret_name":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_linked_service_web":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"authentication_type":{"type":"TypeString","required":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"integration_runtime_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"password":{"type":"TypeString","optional":true},"url":{"type":"TypeString","required":true},"username":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_managed_private_endpoint":{"schema":{"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"fqdns":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"subresource_name":{"type":"TypeString","optional":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_factory_pipeline":{"schema":{"activities_json":{"type":"TypeString","optional":true},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"concurrency":{"type":"TypeInt","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"folder":{"type":"TypeString","optional":true},"moniter_metrics_after_duration":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_trigger_blob_event":{"schema":{"activated":{"type":"TypeBool","optional":true,"default":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"blob_path_begins_with":{"type":"TypeString","optional":true},"blob_path_ends_with":{"type":"TypeString","optional":true},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"events":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"ignore_empty_blobs":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"pipeline":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_trigger_custom_event":{"schema":{"activated":{"type":"TypeBool","optional":true,"default":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"eventgrid_topic_id":{"type":"TypeString","required":true,"forceNew":true},"events":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"pipeline":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"subject_begins_with":{"type":"TypeString","optional":true},"subject_ends_with":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_trigger_schedule":{"schema":{"activated":{"type":"TypeBool","optional":true,"default":true},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"end_time":{"type":"TypeString","optional":true},"frequency":{"type":"TypeString","optional":true,"default":"Minute"},"interval":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"pipeline":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"pipeline_name":{"type":"TypeString","optional":true,"computed":true},"pipeline_parameters":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_month":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}},"days_of_week":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":7},"hours":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}},"minutes":{"type":"TypeList","optional":true,"elem":{"type":"TypeInt"}},"monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"week":{"type":"TypeInt","optional":true},"weekday":{"type":"TypeString","required":true}}},"minItems":1}}},"maxItems":1,"minItems":1},"start_time":{"type":"TypeString","optional":true,"computed":true},"time_zone":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_factory_trigger_tumbling_window":{"schema":{"activated":{"type":"TypeBool","optional":true,"default":true},"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true,"forceNew":true},"delay":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"end_time":{"type":"TypeString","optional":true},"frequency":{"type":"TypeString","required":true,"forceNew":true},"interval":{"type":"TypeInt","required":true,"forceNew":true},"max_concurrency":{"type":"TypeInt","optional":true,"default":50},"name":{"type":"TypeString","required":true,"forceNew":true},"pipeline":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"retry":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeInt","optional":true,"default":30}}},"maxItems":1},"start_time":{"type":"TypeString","required":true,"forceNew":true},"trigger_dependency":{"type":"TypeSet","optional":true,"elem":{"schema":{"offset":{"type":"TypeString","optional":true},"size":{"type":"TypeString","optional":true},"trigger_name":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_backup_instance_blob_storage":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_container_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_backup_instance_disk":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"disk_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"snapshot_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_backup_instance_kubernetes_cluster":{"schema":{"backup_datasource_parameters":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cluster_scoped_resources_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"excluded_namespaces":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"excluded_resource_types":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"included_namespaces":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"included_resource_types":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"label_selectors":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_snapshot_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"backup_policy_id":{"type":"TypeString","required":true,"forceNew":true},"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"snapshot_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_instance_mysql_flexible_server":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_data_protection_backup_instance_postgresql":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"database_credential_key_vault_secret_id":{"type":"TypeString","optional":true},"database_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_backup_instance_postgresql_flexible_server":{"schema":{"backup_policy_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_data_protection_backup_policy_blob_storage":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"operational_default_retention_duration":{"type":"TypeString","optional":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeInt"},"minItems":1},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_default_retention_duration":{"type":"TypeString","optional":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_disk":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_duration":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"duration":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_kubernetes_cluster":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_rule":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_mysql_flexible_server":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_rule":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_postgresql":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_duration":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"duration":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_policy_postgresql_flexible_server":{"schema":{"backup_repeating_time_intervals":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"default_retention_rule":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"retention_rule":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"criteria":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"absolute_criteria":{"type":"TypeString","optional":true,"forceNew":true},"days_of_week":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"months_of_year":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"scheduled_backup_times":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"weeks_of_month":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"life_cycle":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"data_store_type":{"type":"TypeString","required":true,"forceNew":true},"duration":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true,"forceNew":true}}}},"time_zone":{"type":"TypeString","optional":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_protection_backup_vault":{"schema":{"cross_region_restore_enabled":{"type":"TypeBool","optional":true},"datastore_type":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"redundancy":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_duration_in_days":{"type":"TypeFloat","optional":true,"default":14},"soft_delete":{"type":"TypeString","optional":true,"default":"On"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_protection_resource_guard":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vault_critical_operation_exclusion_list":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_share":{"schema":{"account_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"snapshot_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"recurrence":{"type":"TypeString","required":true},"start_time":{"type":"TypeString","required":true}}},"maxItems":1},"terms":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_share_account":{"schema":{"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_data_share_dataset_blob_storage":{"schema":{"container_name":{"type":"TypeString","required":true,"forceNew":true},"data_share_id":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","optional":true,"forceNew":true},"folder_path":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_share_dataset_data_lake_gen2":{"schema":{"display_name":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","optional":true,"forceNew":true},"file_system_name":{"type":"TypeString","required":true,"forceNew":true},"folder_path":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"share_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_share_dataset_kusto_cluster":{"schema":{"display_name":{"type":"TypeString","computed":true},"kusto_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"kusto_cluster_location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"share_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_data_share_dataset_kusto_database":{"schema":{"display_name":{"type":"TypeString","computed":true},"kusto_cluster_location":{"type":"TypeString","computed":true},"kusto_database_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"share_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_database_migration_project":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_name":{"type":"TypeString","required":true,"forceNew":true},"source_platform":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_platform":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_database_migration_service":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databox_edge_device":{"schema":{"device_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"configured_role_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"culture":{"type":"TypeString","computed":true},"hcs_version":{"type":"TypeString","computed":true},"model":{"type":"TypeString","computed":true},"node_count":{"type":"TypeInt","computed":true},"serial_number":{"type":"TypeString","computed":true},"software_version":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_access_connector":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_virtual_network_peering":{"schema":{"address_space_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allow_forwarded_traffic":{"type":"TypeBool","optional":true,"default":false},"allow_gateway_transit":{"type":"TypeBool","optional":true,"default":false},"allow_virtual_network_access":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"remote_address_space_prefixes":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"remote_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"use_remote_gateways":{"type":"TypeBool","optional":true,"default":false},"virtual_network_id":{"type":"TypeString","computed":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_workspace":{"schema":{"access_connector_id":{"type":"TypeString","optional":true},"custom_parameters":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"machine_learning_workspace_id":{"type":"TypeString","optional":true,"forceNew":true},"nat_gateway_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"no_public_ip":{"type":"TypeBool","optional":true,"default":true},"private_subnet_name":{"type":"TypeString","optional":true,"forceNew":true},"private_subnet_network_security_group_association_id":{"type":"TypeString","optional":true},"public_ip_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"public_subnet_name":{"type":"TypeString","optional":true,"forceNew":true},"public_subnet_network_security_group_association_id":{"type":"TypeString","optional":true},"storage_account_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"storage_account_sku_name":{"type":"TypeString","optional":true,"computed":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vnet_address_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}}},"maxItems":1},"customer_managed_key_enabled":{"type":"TypeBool","optional":true,"default":false},"default_storage_firewall_enabled":{"type":"TypeBool","optional":true},"disk_encryption_set_id":{"type":"TypeString","computed":true},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"load_balancer_backend_address_pool_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_disk_cmk_key_vault_id":{"type":"TypeString","optional":true},"managed_disk_cmk_key_vault_key_id":{"type":"TypeString","optional":true},"managed_disk_cmk_rotation_to_latest_version_enabled":{"type":"TypeBool","optional":true},"managed_disk_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"managed_resource_group_id":{"type":"TypeString","computed":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managed_services_cmk_key_vault_id":{"type":"TypeString","optional":true},"managed_services_cmk_key_vault_key_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_rules_required":{"type":"TypeString","optional":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"storage_account_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true},"workspace_url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_workspace_customer_managed_key":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_databricks_workspace_root_dbfs_customer_managed_key":{"schema":{"key_vault_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_datadog_monitor":{"schema":{"datadog_organization":{"type":"TypeList","required":true,"elem":{"schema":{"api_key":{"type":"TypeString","required":true,"forceNew":true},"application_key":{"type":"TypeString","required":true,"forceNew":true},"enterprise_app_id":{"type":"TypeString","optional":true,"forceNew":true},"id":{"type":"TypeString","computed":true},"linking_auth_code":{"type":"TypeString","optional":true,"forceNew":true},"linking_client_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","computed":true},"redirect_uri":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"marketplace_subscription_status":{"type":"TypeString","computed":true},"monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user":{"type":"TypeList","required":true,"elem":{"schema":{"email":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"phone_number":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_datadog_monitor_sso_configuration":{"schema":{"datadog_monitor_id":{"type":"TypeString","required":true,"forceNew":true},"enterprise_application_id":{"type":"TypeString","required":true},"login_url":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"default":"default"},"single_sign_on_enabled":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_datadog_monitor_tag_rule":{"schema":{"datadog_monitor_id":{"type":"TypeString","required":true,"forceNew":true},"log":{"type":"TypeList","optional":true,"elem":{"schema":{"aad_log_enabled":{"type":"TypeBool","optional":true},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"resource_log_enabled":{"type":"TypeBool","optional":true},"subscription_log_enabled":{"type":"TypeBool","optional":true}}}},"metric":{"type":"TypeList","optional":true,"elem":{"schema":{"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}}},"name":{"type":"TypeString","optional":true,"default":"default"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dedicated_hardware_security_module":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"management_network_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"network_interface_private_ip_addresses":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"network_interface_private_ip_addresses":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"stamp_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dedicated_host":{"schema":{"auto_replace_on_failure":{"type":"TypeBool","optional":true,"default":true},"dedicated_host_group_id":{"type":"TypeString","required":true,"forceNew":true},"license_type":{"type":"TypeString","optional":true,"default":"None"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform_fault_domain":{"type":"TypeInt","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dedicated_host_group":{"schema":{"automatic_placement_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform_fault_domain_count":{"type":"TypeInt","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center":{"schema":{"dev_center_uri":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_attached_network":{"schema":{"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_connection_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_dev_center_catalog":{"schema":{"catalog_adogit":{"type":"TypeList","optional":true,"elem":{"schema":{"branch":{"type":"TypeString","required":true},"key_vault_key_url":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"catalog_github":{"type":"TypeList","optional":true,"elem":{"schema":{"branch":{"type":"TypeString","required":true},"key_vault_key_url":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_dev_box_definition":{"schema":{"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"image_reference_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_environment_type":{"schema":{"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_gallery":{"schema":{"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"shared_gallery_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_dev_center_network_connection":{"schema":{"domain_join_type":{"type":"TypeString","required":true,"forceNew":true},"domain_name":{"type":"TypeString","optional":true},"domain_password":{"type":"TypeString","optional":true},"domain_username":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"organization_unit":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_project":{"schema":{"description":{"type":"TypeString","optional":true,"forceNew":true},"dev_center_id":{"type":"TypeString","required":true,"forceNew":true},"dev_center_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_dev_boxes_per_user":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_project_environment_type":{"schema":{"creator_role_assignment_roles":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"deployment_target_id":{"type":"TypeString","required":true},"dev_center_project_id":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_role_assignment":{"type":"TypeSet","optional":true,"elem":{"schema":{"roles":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"user_id":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_center_project_pool":{"schema":{"dev_box_definition_name":{"type":"TypeString","required":true},"dev_center_attached_network_name":{"type":"TypeString","required":true},"dev_center_project_id":{"type":"TypeString","required":true,"forceNew":true},"local_administrator_enabled":{"type":"TypeBool","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"stop_on_disconnect_grace_period_minutes":{"type":"TypeInt","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_global_vm_shutdown_schedule":{"schema":{"daily_recurrence_time":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"notification_settings":{"type":"TypeList","required":true,"elem":{"schema":{"email":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"time_in_minutes":{"type":"TypeInt","optional":true,"default":30},"webhook_url":{"type":"TypeString","optional":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timezone":{"type":"TypeString","required":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_lab":{"schema":{"artifacts_storage_account_id":{"type":"TypeString","computed":true},"default_premium_storage_account_id":{"type":"TypeString","computed":true},"default_storage_account_id":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"premium_data_disk_storage_account_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_linux_virtual_machine":{"schema":{"allow_claim":{"type":"TypeBool","optional":true,"default":true},"disallow_public_ip_address":{"type":"TypeBool","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"gallery_image_reference":{"type":"TypeList","required":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"inbound_nat_rule":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","required":true,"forceNew":true},"frontend_port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","required":true}}}},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"lab_subnet_name":{"type":"TypeString","required":true,"forceNew":true},"lab_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true},"password":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"size":{"type":"TypeString","required":true,"forceNew":true},"ssh_key":{"type":"TypeString","optional":true,"forceNew":true},"storage_type":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true},"username":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_policy":{"schema":{"description":{"type":"TypeString","optional":true},"evaluator_type":{"type":"TypeString","required":true,"forceNew":true},"fact_data":{"type":"TypeString","optional":true},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_set_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threshold":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_schedule":{"schema":{"daily_recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"time":{"type":"TypeString","required":true}}},"maxItems":1},"hourly_recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"minute":{"type":"TypeInt","required":true}}},"maxItems":1},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification_settings":{"type":"TypeList","required":true,"elem":{"schema":{"status":{"type":"TypeString","optional":true,"default":"Disabled"},"time_in_minutes":{"type":"TypeInt","optional":true},"webhook_url":{"type":"TypeString","optional":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Disabled"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"task_type":{"type":"TypeString","required":true},"time_zone_id":{"type":"TypeString","required":true},"weekly_recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"time":{"type":"TypeString","required":true},"week_days":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_virtual_network":{"schema":{"description":{"type":"TypeString","optional":true},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"shared_public_ip_address":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_ports":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","optional":true},"transport_protocol":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"use_in_virtual_machine_creation":{"type":"TypeString","optional":true,"default":"Allow"},"use_public_ip_address":{"type":"TypeString","optional":true,"default":"Allow"}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dev_test_windows_virtual_machine":{"schema":{"allow_claim":{"type":"TypeBool","optional":true,"default":true},"disallow_public_ip_address":{"type":"TypeBool","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"gallery_image_reference":{"type":"TypeList","required":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"inbound_nat_rule":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","required":true,"forceNew":true},"frontend_port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","required":true}}}},"lab_name":{"type":"TypeString","required":true,"forceNew":true},"lab_subnet_name":{"type":"TypeString","required":true,"forceNew":true},"lab_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true},"password":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"size":{"type":"TypeString","required":true,"forceNew":true},"storage_type":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true},"username":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_endpoint_eventgrid":{"schema":{"dead_letter_storage_secret":{"type":"TypeString","optional":true},"digital_twins_id":{"type":"TypeString","required":true,"forceNew":true},"eventgrid_topic_endpoint":{"type":"TypeString","required":true},"eventgrid_topic_primary_access_key":{"type":"TypeString","required":true},"eventgrid_topic_secondary_access_key":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_endpoint_eventhub":{"schema":{"dead_letter_storage_secret":{"type":"TypeString","optional":true},"digital_twins_id":{"type":"TypeString","required":true,"forceNew":true},"eventhub_primary_connection_string":{"type":"TypeString","required":true},"eventhub_secondary_connection_string":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_endpoint_servicebus":{"schema":{"dead_letter_storage_secret":{"type":"TypeString","optional":true},"digital_twins_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"servicebus_primary_connection_string":{"type":"TypeString","required":true},"servicebus_secondary_connection_string":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_instance":{"schema":{"host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_digital_twins_time_series_database_connection":{"schema":{"digital_twins_id":{"type":"TypeString","required":true,"forceNew":true},"eventhub_consumer_group_name":{"type":"TypeString","optional":true,"default":"$Default","forceNew":true},"eventhub_name":{"type":"TypeString","required":true,"forceNew":true},"eventhub_namespace_endpoint_uri":{"type":"TypeString","required":true,"forceNew":true},"eventhub_namespace_id":{"type":"TypeString","required":true,"forceNew":true},"kusto_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"kusto_cluster_uri":{"type":"TypeString","required":true,"forceNew":true},"kusto_database_name":{"type":"TypeString","required":true,"forceNew":true},"kusto_table_name":{"type":"TypeString","optional":true,"default":"AdtPropertyEvents","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_disk_access":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_disk_encryption_set":{"schema":{"auto_key_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"encryption_type":{"type":"TypeString","optional":true,"default":"EncryptionAtRestWithCustomerKey","forceNew":true},"federated_client_id":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_key_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_hsm_key_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_dns_a_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","optional":true},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_aaaa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","optional":true},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_caa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"flags":{"type":"TypeInt","required":true},"tag":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_cname_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","optional":true},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_mx_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"default":"@","forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"exchange":{"type":"TypeString","required":true},"preference":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_ns_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_ptr_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_srv_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"priority":{"type":"TypeInt","required":true},"target":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_txt_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"value":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dns_zone":{"schema":{"max_number_of_record_sets":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"name_servers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"number_of_record_sets":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"soa_record":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email":{"type":"TypeString","required":true},"expire_time":{"type":"TypeInt","optional":true,"default":2419200},"fqdn":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"minimum_ttl":{"type":"TypeInt","optional":true,"default":300},"refresh_time":{"type":"TypeInt","optional":true,"default":3600},"retry_time":{"type":"TypeInt","optional":true,"default":300},"serial_number":{"type":"TypeInt","optional":true,"default":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","optional":true,"default":3600}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_dynatrace_monitor":{"schema":{"identity":{"type":"TypeList","required":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"marketplace_subscription":{"type":"TypeString","required":true,"forceNew":true},"monitoring_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"billing_cycle":{"type":"TypeString","optional":true},"effective_date":{"type":"TypeString","computed":true},"plan":{"type":"TypeString","required":true},"usage_type":{"type":"TypeString","optional":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"country":{"type":"TypeString","required":true},"email":{"type":"TypeString","required":true},"first_name":{"type":"TypeString","required":true},"last_name":{"type":"TypeString","required":true},"phone_number":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_elastic_cloud_elasticsearch":{"schema":{"elastic_cloud_deployment_id":{"type":"TypeString","computed":true},"elastic_cloud_email_address":{"type":"TypeString","required":true,"forceNew":true},"elastic_cloud_sso_default_url":{"type":"TypeString","computed":true},"elastic_cloud_user_id":{"type":"TypeString","computed":true},"elasticsearch_service_url":{"type":"TypeString","computed":true},"kibana_service_url":{"type":"TypeString","computed":true},"kibana_sso_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"filtering_tag":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"send_activity_logs":{"type":"TypeBool","optional":true,"default":false},"send_azuread_logs":{"type":"TypeBool","optional":true,"default":false},"send_subscription_logs":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"monitoring_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_elastic_san":{"schema":{"base_size_in_tib":{"type":"TypeInt","required":true},"extended_size_in_tib":{"type":"TypeInt","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"tier":{"type":"TypeString","optional":true,"default":"Premium"}}},"maxItems":1,"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"total_iops":{"type":"TypeInt","computed":true},"total_mbps":{"type":"TypeInt","computed":true},"total_size_in_tib":{"type":"TypeInt","computed":true},"total_volume_size_in_gib":{"type":"TypeInt","computed":true},"volume_group_count":{"type":"TypeInt","computed":true},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_elastic_san_volume":{"schema":{"create_source":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"source_id":{"type":"TypeString","required":true,"forceNew":true},"source_type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"size_in_gib":{"type":"TypeInt","required":true},"target_iqn":{"type":"TypeString","computed":true},"target_portal_hostname":{"type":"TypeString","computed":true},"target_portal_port":{"type":"TypeInt","computed":true},"volume_group_id":{"type":"TypeString","required":true,"forceNew":true},"volume_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_elastic_san_volume_group":{"schema":{"elastic_san_id":{"type":"TypeString","required":true,"forceNew":true},"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"current_versioned_key_expiration_timestamp":{"type":"TypeString","computed":true},"current_versioned_key_id":{"type":"TypeString","computed":true},"key_vault_key_id":{"type":"TypeString","required":true},"last_key_rotation_timestamp":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"encryption_type":{"type":"TypeString","optional":true,"default":"EncryptionAtRestWithPlatformKey"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"subnet_id":{"type":"TypeString","required":true}}},"minItems":1},"protocol_type":{"type":"TypeString","optional":true,"default":"Iscsi"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_email_communication_service":{"schema":{"data_location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_email_communication_service_domain":{"schema":{"domain_management":{"type":"TypeString","required":true,"forceNew":true},"email_service_id":{"type":"TypeString","required":true,"forceNew":true},"from_sender_domain":{"type":"TypeString","computed":true},"mail_from_sender_domain":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_engagement_tracking_enabled":{"type":"TypeBool","optional":true},"verification_records":{"type":"TypeList","computed":true,"elem":{"schema":{"dkim":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"dkim2":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"dmarc":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"domain":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"spf":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_domain":{"schema":{"auto_create_topic_with_first_subscription":{"type":"TypeBool","optional":true,"default":true},"auto_delete_topic_with_last_subscription":{"type":"TypeBool","optional":true,"default":true},"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"inbound_ip_rule":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true}}},"maxItems":128},"input_mapping_default_values":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_version":{"type":"TypeString","optional":true,"forceNew":true},"event_type":{"type":"TypeString","optional":true,"forceNew":true},"subject":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"input_mapping_fields":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_version":{"type":"TypeString","optional":true,"forceNew":true},"event_time":{"type":"TypeString","optional":true,"forceNew":true},"event_type":{"type":"TypeString","optional":true,"forceNew":true},"id":{"type":"TypeString","optional":true,"forceNew":true},"subject":{"type":"TypeString","optional":true,"forceNew":true},"topic":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"input_schema":{"type":"TypeString","optional":true,"default":"EventGridSchema","forceNew":true},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_domain_topic":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_eventgrid_event_subscription":{"schema":{"advanced_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"bool_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeBool","required":true}}}},"is_not_null":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true}}}},"is_null_or_undefined":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true}}}},"number_greater_than":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_greater_than_or_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeFloat"},"maxItems":25}}}},"number_in_range":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeList","elem":{"type":"TypeFloat"},"maxItems":2,"minItems":2},"maxItems":25}}}},"number_less_than":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_less_than_or_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_not_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeFloat"},"maxItems":25}}}},"number_not_in_range":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeList","elem":{"type":"TypeFloat"},"maxItems":2,"minItems":2},"maxItems":25}}}},"string_begins_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_contains":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_ends_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_begins_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_contains":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_ends_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}}}},"maxItems":1},"advanced_filtering_on_arrays_enabled":{"type":"TypeBool","optional":true,"default":false},"azure_function_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"function_id":{"type":"TypeString","required":true},"max_events_per_batch":{"type":"TypeInt","optional":true},"preferred_batch_size_in_kilobytes":{"type":"TypeInt","optional":true}}},"maxItems":1},"dead_letter_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true},"user_assigned_identity":{"type":"TypeString","optional":true}}},"maxItems":1},"delivery_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true},"user_assigned_identity":{"type":"TypeString","optional":true}}},"maxItems":1},"delivery_property":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"secret":{"type":"TypeBool","optional":true},"source_field":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"event_delivery_schema":{"type":"TypeString","optional":true,"default":"EventGridSchema","forceNew":true},"eventhub_endpoint_id":{"type":"TypeString","optional":true,"computed":true},"expiration_time_utc":{"type":"TypeString","optional":true},"hybrid_connection_endpoint_id":{"type":"TypeString","optional":true,"computed":true},"included_event_types":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"labels":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"retry_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"event_time_to_live":{"type":"TypeInt","required":true},"max_delivery_attempts":{"type":"TypeInt","required":true}}},"maxItems":1},"scope":{"type":"TypeString","required":true,"forceNew":true},"service_bus_queue_endpoint_id":{"type":"TypeString","optional":true},"service_bus_topic_endpoint_id":{"type":"TypeString","optional":true},"storage_blob_dead_letter_destination":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_id":{"type":"TypeString","required":true},"storage_blob_container_name":{"type":"TypeString","required":true}}},"maxItems":1},"storage_queue_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"queue_message_time_to_live_in_seconds":{"type":"TypeInt","optional":true},"queue_name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}},"maxItems":1},"subject_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"case_sensitive":{"type":"TypeBool","optional":true},"subject_begins_with":{"type":"TypeString","optional":true},"subject_ends_with":{"type":"TypeString","optional":true}}},"maxItems":1},"webhook_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_app_id_or_uri":{"type":"TypeString","optional":true},"active_directory_tenant_id":{"type":"TypeString","optional":true},"base_url":{"type":"TypeString","computed":true},"max_events_per_batch":{"type":"TypeInt","optional":true},"preferred_batch_size_in_kilobytes":{"type":"TypeInt","optional":true},"url":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_namespace":{"schema":{"capacity":{"type":"TypeInt","optional":true,"default":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"inbound_ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true}}},"maxItems":128},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access":{"type":"TypeString","optional":true,"default":"Enabled"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"topic_spaces_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"alternative_authentication_name_source":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"dynamic_routing_enrichment":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"maximum_client_sessions_per_authentication_name":{"type":"TypeInt","optional":true,"default":1},"maximum_session_expiry_in_hours":{"type":"TypeInt","optional":true,"default":1},"route_topic_id":{"type":"TypeString","optional":true},"static_routing_enrichment":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_system_topic":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"metric_arm_resource_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_arm_resource_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"topic_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_system_topic_event_subscription":{"schema":{"advanced_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"bool_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeBool","required":true}}}},"is_not_null":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true}}}},"is_null_or_undefined":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true}}}},"number_greater_than":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_greater_than_or_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeFloat"},"maxItems":25}}}},"number_in_range":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeList","elem":{"type":"TypeFloat"},"maxItems":2,"minItems":2},"maxItems":25}}}},"number_less_than":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_less_than_or_equals":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"value":{"type":"TypeFloat","required":true}}}},"number_not_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeFloat"},"maxItems":25}}}},"number_not_in_range":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeList","elem":{"type":"TypeFloat"},"maxItems":2,"minItems":2},"maxItems":25}}}},"string_begins_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_contains":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_ends_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_begins_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_contains":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_ends_with":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}},"string_not_in":{"type":"TypeList","optional":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25}}}}}},"maxItems":1},"advanced_filtering_on_arrays_enabled":{"type":"TypeBool","optional":true,"default":false},"azure_function_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"function_id":{"type":"TypeString","required":true},"max_events_per_batch":{"type":"TypeInt","optional":true},"preferred_batch_size_in_kilobytes":{"type":"TypeInt","optional":true}}},"maxItems":1},"dead_letter_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true},"user_assigned_identity":{"type":"TypeString","optional":true}}},"maxItems":1},"delivery_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true},"user_assigned_identity":{"type":"TypeString","optional":true}}},"maxItems":1},"delivery_property":{"type":"TypeList","optional":true,"elem":{"schema":{"header_name":{"type":"TypeString","required":true},"secret":{"type":"TypeBool","optional":true},"source_field":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","optional":true}}}},"event_delivery_schema":{"type":"TypeString","optional":true,"default":"EventGridSchema","forceNew":true},"eventhub_endpoint_id":{"type":"TypeString","optional":true,"computed":true},"expiration_time_utc":{"type":"TypeString","optional":true},"hybrid_connection_endpoint_id":{"type":"TypeString","optional":true,"computed":true},"included_event_types":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"labels":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retry_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"event_time_to_live":{"type":"TypeInt","required":true},"max_delivery_attempts":{"type":"TypeInt","required":true}}},"maxItems":1},"service_bus_queue_endpoint_id":{"type":"TypeString","optional":true},"service_bus_topic_endpoint_id":{"type":"TypeString","optional":true},"storage_blob_dead_letter_destination":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_id":{"type":"TypeString","required":true},"storage_blob_container_name":{"type":"TypeString","required":true}}},"maxItems":1},"storage_queue_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"queue_message_time_to_live_in_seconds":{"type":"TypeInt","optional":true},"queue_name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}},"maxItems":1},"subject_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"case_sensitive":{"type":"TypeBool","optional":true},"subject_begins_with":{"type":"TypeString","optional":true},"subject_ends_with":{"type":"TypeString","optional":true}}},"maxItems":1},"system_topic":{"type":"TypeString","required":true,"forceNew":true},"webhook_endpoint":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_app_id_or_uri":{"type":"TypeString","optional":true},"active_directory_tenant_id":{"type":"TypeString","optional":true},"base_url":{"type":"TypeString","computed":true},"max_events_per_batch":{"type":"TypeInt","optional":true},"preferred_batch_size_in_kilobytes":{"type":"TypeInt","optional":true},"url":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventgrid_topic":{"schema":{"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"inbound_ip_rule":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true}}},"maxItems":128},"input_mapping_default_values":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_version":{"type":"TypeString","optional":true,"forceNew":true},"event_type":{"type":"TypeString","optional":true,"forceNew":true},"subject":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"input_mapping_fields":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_version":{"type":"TypeString","optional":true,"forceNew":true},"event_time":{"type":"TypeString","optional":true,"forceNew":true},"event_type":{"type":"TypeString","optional":true,"forceNew":true},"id":{"type":"TypeString","optional":true,"forceNew":true},"subject":{"type":"TypeString","optional":true,"forceNew":true},"topic":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"input_schema":{"type":"TypeString","optional":true,"default":"EventGridSchema","forceNew":true},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub":{"schema":{"capture_description":{"type":"TypeList","optional":true,"elem":{"schema":{"destination":{"type":"TypeList","required":true,"elem":{"schema":{"archive_name_format":{"type":"TypeString","required":true},"blob_container_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}},"maxItems":1},"enabled":{"type":"TypeBool","required":true},"encoding":{"type":"TypeString","required":true},"interval_in_seconds":{"type":"TypeInt","optional":true,"default":300},"size_limit_in_bytes":{"type":"TypeInt","optional":true,"default":314572800},"skip_empty_archives":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"message_retention":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"partition_count":{"type":"TypeInt","required":true},"partition_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Active"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_authorization_rule":{"schema":{"eventhub_name":{"type":"TypeString","required":true,"forceNew":true},"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_cluster":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":300,"update":30}},"azurerm_eventhub_consumer_group":{"schema":{"eventhub_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"user_metadata":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace":{"schema":{"auto_inflate_enabled":{"type":"TypeBool","optional":true,"default":false},"capacity":{"type":"TypeInt","optional":true,"default":1},"dedicated_cluster_id":{"type":"TypeString","optional":true,"forceNew":true},"default_primary_connection_string":{"type":"TypeString","computed":true},"default_primary_connection_string_alias":{"type":"TypeString","computed":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_connection_string":{"type":"TypeString","computed":true},"default_secondary_connection_string_alias":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_throughput_units":{"type":"TypeInt","optional":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rulesets":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"default_action":{"type":"TypeString","required":true},"ip_rule":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true}}},"maxItems":128},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"trusted_service_access_enabled":{"type":"TypeBool","optional":true},"virtual_network_rule":{"type":"TypeSet","configMode":"Auto","optional":true,"elem":{"schema":{"ignore_missing_virtual_network_service_endpoint":{"type":"TypeBool","optional":true},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":128}}},"maxItems":1},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace_customer_managed_key":{"schema":{"eventhub_namespace_id":{"type":"TypeString","required":true,"forceNew":true},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"key_vault_key_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"user_assigned_identity_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace_disaster_recovery_config":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"partner_namespace_id":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_eventhub_namespace_schema_group":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_id":{"type":"TypeString","required":true,"forceNew":true},"schema_compatibility":{"type":"TypeString","required":true,"forceNew":true},"schema_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_express_route_circuit":{"schema":{"allow_classic_operations":{"type":"TypeBool","optional":true,"default":false},"authorization_key":{"type":"TypeString","optional":true},"bandwidth_in_gbps":{"type":"TypeFloat","optional":true},"bandwidth_in_mbps":{"type":"TypeInt","optional":true},"express_route_port_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"peering_location":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_key":{"type":"TypeString","computed":true},"service_provider_name":{"type":"TypeString","optional":true,"forceNew":true},"service_provider_provisioning_state":{"type":"TypeString","computed":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"family":{"type":"TypeString","required":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_circuit_authorization":{"schema":{"authorization_key":{"type":"TypeString","computed":true},"authorization_use_status":{"type":"TypeString","computed":true},"express_route_circuit_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_express_route_circuit_connection":{"schema":{"address_prefix_ipv4":{"type":"TypeString","required":true,"forceNew":true},"address_prefix_ipv6":{"type":"TypeString","optional":true},"authorization_key":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"peer_peering_id":{"type":"TypeString","required":true,"forceNew":true},"peering_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_circuit_peering":{"schema":{"azure_asn":{"type":"TypeInt","computed":true},"express_route_circuit_name":{"type":"TypeString","required":true,"forceNew":true},"gateway_manager_etag":{"type":"TypeString","computed":true},"ipv4_enabled":{"type":"TypeBool","optional":true,"default":true},"ipv6":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"microsoft_peering":{"type":"TypeList","optional":true,"elem":{"schema":{"advertised_communities":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"advertised_public_prefixes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"customer_asn":{"type":"TypeInt","optional":true,"default":0},"routing_registry_name":{"type":"TypeString","optional":true,"default":"NONE"}}},"maxItems":1},"primary_peer_address_prefix":{"type":"TypeString","required":true},"route_filter_id":{"type":"TypeString","optional":true},"secondary_peer_address_prefix":{"type":"TypeString","required":true}}},"maxItems":1},"microsoft_peering_config":{"type":"TypeList","optional":true,"elem":{"schema":{"advertised_communities":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"advertised_public_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"customer_asn":{"type":"TypeInt","optional":true,"default":0},"routing_registry_name":{"type":"TypeString","optional":true,"default":"NONE"}}},"maxItems":1},"peer_asn":{"type":"TypeInt","optional":true,"computed":true},"peering_type":{"type":"TypeString","required":true},"primary_azure_port":{"type":"TypeString","computed":true},"primary_peer_address_prefix":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route_filter_id":{"type":"TypeString","optional":true},"secondary_azure_port":{"type":"TypeString","computed":true},"secondary_peer_address_prefix":{"type":"TypeString","optional":true},"shared_key":{"type":"TypeString","optional":true},"vlan_id":{"type":"TypeInt","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_connection":{"schema":{"authorization_key":{"type":"TypeString","optional":true},"enable_internet_security":{"type":"TypeBool","optional":true},"express_route_circuit_peering_id":{"type":"TypeString","required":true,"forceNew":true},"express_route_gateway_bypass_enabled":{"type":"TypeBool","optional":true,"default":false},"express_route_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_link_fast_path_enabled":{"type":"TypeBool","optional":true},"routing":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"associated_route_table_id":{"type":"TypeString","optional":true,"computed":true},"inbound_route_map_id":{"type":"TypeString","optional":true},"outbound_route_map_id":{"type":"TypeString","optional":true},"propagated_route_table":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"labels":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"route_table_ids":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"routing_weight":{"type":"TypeInt","optional":true,"default":0}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_gateway":{"schema":{"allow_non_virtual_wan_traffic":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scale_units":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_express_route_port":{"schema":{"bandwidth_in_gbps":{"type":"TypeInt","required":true,"forceNew":true},"billing_type":{"type":"TypeString","optional":true,"default":"MeteredData"},"encapsulation":{"type":"TypeString","required":true,"forceNew":true},"ethertype":{"type":"TypeString","computed":true},"guid":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"link1":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"admin_enabled":{"type":"TypeBool","optional":true,"default":false},"connector_type":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"interface_name":{"type":"TypeString","computed":true},"macsec_cak_keyvault_secret_id":{"type":"TypeString","optional":true},"macsec_cipher":{"type":"TypeString","optional":true,"default":"GcmAes128"},"macsec_ckn_keyvault_secret_id":{"type":"TypeString","optional":true},"macsec_sci_enabled":{"type":"TypeBool","optional":true,"default":false},"patch_panel_id":{"type":"TypeString","computed":true},"rack_id":{"type":"TypeString","computed":true},"router_name":{"type":"TypeString","computed":true}}},"maxItems":1,"minItems":1},"link2":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"admin_enabled":{"type":"TypeBool","optional":true,"default":false},"connector_type":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"interface_name":{"type":"TypeString","computed":true},"macsec_cak_keyvault_secret_id":{"type":"TypeString","optional":true},"macsec_cipher":{"type":"TypeString","optional":true,"default":"GcmAes128"},"macsec_ckn_keyvault_secret_id":{"type":"TypeString","optional":true},"macsec_sci_enabled":{"type":"TypeBool","optional":true,"default":false},"patch_panel_id":{"type":"TypeString","computed":true},"rack_id":{"type":"TypeString","computed":true},"router_name":{"type":"TypeString","computed":true}}},"maxItems":1,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"mtu":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"peering_location":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_express_route_port_authorization":{"schema":{"authorization_key":{"type":"TypeString","computed":true},"authorization_use_status":{"type":"TypeString","computed":true},"express_route_port_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_extended_custom_location":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","optional":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"cluster_extension_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","optional":true,"forceNew":true},"host_resource_id":{"type":"TypeString","required":true,"forceNew":true},"host_type":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_federated_identity_credential":{"schema":{"audience":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":1},"issuer":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parent_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subject":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall":{"schema":{"dns_proxy_enabled":{"type":"TypeBool","optional":true,"computed":true},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"firewall_policy_id":{"type":"TypeString","optional":true},"ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"private_ip_address":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"management_ip_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"private_ip_address":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"sku_tier":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threat_intel_mode":{"type":"TypeString","optional":true,"computed":true},"virtual_hub":{"type":"TypeList","optional":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_count":{"type":"TypeInt","optional":true,"default":1},"virtual_hub_id":{"type":"TypeString","required":true}}},"maxItems":1},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_firewall_application_rule_collection":{"schema":{"action":{"type":"TypeString","required":true},"azure_firewall_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"fqdn_tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"type":{"type":"TypeString","required":true}}},"minItems":1},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"target_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall_nat_rule_collection":{"schema":{"action":{"type":"TypeString","required":true},"azure_firewall_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"destination_ports":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"translated_address":{"type":"TypeString","required":true},"translated_port":{"type":"TypeString","required":true}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall_network_rule_collection":{"schema":{"action":{"type":"TypeString","required":true},"azure_firewall_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_ports":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall_policy":{"schema":{"auto_learn_private_ranges_enabled":{"type":"TypeBool","optional":true},"base_policy_id":{"type":"TypeString","optional":true},"child_policies":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns":{"type":"TypeList","optional":true,"elem":{"schema":{"proxy_enabled":{"type":"TypeBool","optional":true,"default":false},"servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"explicit_proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"enable_pac_file":{"type":"TypeBool","optional":true},"enabled":{"type":"TypeBool","optional":true},"http_port":{"type":"TypeInt","optional":true},"https_port":{"type":"TypeInt","optional":true},"pac_file":{"type":"TypeString","optional":true},"pac_file_port":{"type":"TypeInt","optional":true}}},"maxItems":1},"firewalls":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"insights":{"type":"TypeList","optional":true,"elem":{"schema":{"default_log_analytics_workspace_id":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","required":true},"log_analytics_workspace":{"type":"TypeList","optional":true,"elem":{"schema":{"firewall_location":{"type":"TypeString","required":true},"id":{"type":"TypeString","required":true}}}},"retention_in_days":{"type":"TypeInt","optional":true}}},"maxItems":1},"intrusion_detection":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","optional":true},"private_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"signature_overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"state":{"type":"TypeString","optional":true}}}},"traffic_bypass":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_ip_groups":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_ports":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true},"source_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule_collection_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"sql_redirect_allowed":{"type":"TypeBool","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threat_intelligence_allowlist":{"type":"TypeList","optional":true,"elem":{"schema":{"fqdns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"ip_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"threat_intelligence_mode":{"type":"TypeString","optional":true,"default":"Alert"},"tls_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_secret_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_firewall_policy_rule_collection_group":{"schema":{"application_rule_collection":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_fqdn_tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"http_headers":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"type":{"type":"TypeString","required":true}}}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"terminate_tls":{"type":"TypeBool","optional":true},"web_categories":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}}},"minItems":1},"firewall_policy_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"nat_rule_collection":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_address":{"type":"TypeString","optional":true},"destination_ports":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"translated_address":{"type":"TypeString","optional":true},"translated_fqdn":{"type":"TypeString","optional":true},"translated_port":{"type":"TypeInt","required":true}}},"minItems":1}}},"minItems":1},"network_rule_collection":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"destination_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_ports":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source_ip_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}}},"minItems":1},"priority":{"type":"TypeInt","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_fluid_relay_server":{"schema":{"customer_managed_key":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","required":true}}},"maxItems":1},"frs_tenant_id":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"orderer_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_key":{"type":"TypeString","computed":true},"service_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"storage_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"storage_sku":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_frontdoor":{"schema":{"backend_pool":{"type":"TypeList","required":true,"elem":{"schema":{"backend":{"type":"TypeList","required":true,"elem":{"schema":{"address":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"host_header":{"type":"TypeString","required":true},"http_port":{"type":"TypeInt","required":true},"https_port":{"type":"TypeInt","required":true},"priority":{"type":"TypeInt","optional":true,"default":1},"weight":{"type":"TypeInt","optional":true,"default":50}}},"maxItems":500},"health_probe_name":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"load_balancing_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"backend_pool_health_probe":{"type":"TypeList","required":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"id":{"type":"TypeString","computed":true},"interval_in_seconds":{"type":"TypeInt","optional":true,"default":120},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true,"default":"/"},"probe_method":{"type":"TypeString","optional":true,"default":"GET"},"protocol":{"type":"TypeString","optional":true,"default":"Http"}}},"maxItems":5000},"backend_pool_health_probes":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"backend_pool_load_balancing":{"type":"TypeList","required":true,"elem":{"schema":{"additional_latency_milliseconds":{"type":"TypeInt","optional":true,"default":0},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"sample_size":{"type":"TypeInt","optional":true,"default":4},"successful_samples_required":{"type":"TypeInt","optional":true,"default":2}}},"maxItems":5000},"backend_pool_load_balancing_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"backend_pool_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_pools_send_receive_timeout_seconds":{"type":"TypeInt","optional":true,"default":60},"enforce_backend_pools_certificate_name_check":{"type":"TypeBool","required":true}}}},"backend_pools":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"cname":{"type":"TypeString","computed":true},"explicit_resource_order":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_pool_health_probe_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"backend_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"backend_pool_load_balancing_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"frontend_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"routing_rule_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"friendly_name":{"type":"TypeString","optional":true},"frontend_endpoint":{"type":"TypeList","required":true,"elem":{"schema":{"host_name":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"session_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"session_affinity_ttl_seconds":{"type":"TypeInt","optional":true,"default":0},"web_application_firewall_policy_link_id":{"type":"TypeString","optional":true}}},"maxItems":500},"frontend_endpoints":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"header_frontdoor_id":{"type":"TypeString","computed":true},"load_balancer_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_rule":{"type":"TypeList","required":true,"elem":{"schema":{"accepted_protocols":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":2},"enabled":{"type":"TypeBool","optional":true,"default":true},"forwarding_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_pool_name":{"type":"TypeString","required":true},"cache_duration":{"type":"TypeString","optional":true},"cache_enabled":{"type":"TypeBool","optional":true,"default":false},"cache_query_parameter_strip_directive":{"type":"TypeString","optional":true,"default":"StripAll"},"cache_query_parameters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"cache_use_dynamic_compression":{"type":"TypeBool","optional":true,"default":false},"custom_forwarding_path":{"type":"TypeString","optional":true},"forwarding_protocol":{"type":"TypeString","optional":true,"default":"HttpsOnly"}}},"maxItems":1},"frontend_endpoints":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":500},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"patterns_to_match":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":25},"redirect_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_fragment":{"type":"TypeString","optional":true},"custom_host":{"type":"TypeString","optional":true},"custom_path":{"type":"TypeString","optional":true},"custom_query_string":{"type":"TypeString","optional":true},"redirect_protocol":{"type":"TypeString","required":true},"redirect_type":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":500},"routing_rules":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":360,"read":5,"delete":360,"update":360}},"azurerm_frontdoor_custom_https_configuration":{"schema":{"custom_https_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_key_vault_certificate_secret_name":{"type":"TypeString","optional":true},"azure_key_vault_certificate_secret_version":{"type":"TypeString","optional":true},"azure_key_vault_certificate_vault_id":{"type":"TypeString","optional":true},"certificate_source":{"type":"TypeString","optional":true,"default":"FrontDoor"},"minimum_tls_version":{"type":"TypeString","computed":true},"provisioning_state":{"type":"TypeString","computed":true},"provisioning_substate":{"type":"TypeString","computed":true}}},"maxItems":1},"custom_https_provisioning_enabled":{"type":"TypeBool","required":true},"frontend_endpoint_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":360,"read":5,"delete":360,"update":360}},"azurerm_frontdoor_firewall_policy":{"schema":{"custom_block_response_body":{"type":"TypeString","optional":true},"custom_block_response_status_code":{"type":"TypeInt","optional":true},"custom_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"match_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"match_values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":600},"match_variable":{"type":"TypeString","required":true},"negation_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true},"transforms":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":5}}},"maxItems":10},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","optional":true,"default":1},"rate_limit_duration_in_minutes":{"type":"TypeInt","optional":true,"default":1},"rate_limit_threshold":{"type":"TypeInt","optional":true,"default":10},"type":{"type":"TypeString","required":true}}},"maxItems":100},"enabled":{"type":"TypeBool","optional":true,"default":true},"frontend_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"managed_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"override":{"type":"TypeList","optional":true,"elem":{"schema":{"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":false},"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"match_variable":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true}}},"maxItems":100},"rule_id":{"type":"TypeString","required":true}}},"maxItems":1000},"rule_group_name":{"type":"TypeString","required":true}}},"maxItems":100},"type":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":100},"mode":{"type":"TypeString","optional":true,"default":"Prevention"},"name":{"type":"TypeString","required":true,"forceNew":true},"redirect_url":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_frontdoor_rules_engine":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"frontdoor_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"request_header":{"type":"TypeList","optional":true,"elem":{"schema":{"header_action_type":{"type":"TypeString","optional":true},"header_name":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}},"maxItems":100},"response_header":{"type":"TypeList","optional":true,"elem":{"schema":{"header_action_type":{"type":"TypeString","optional":true},"header_name":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}},"maxItems":100}}},"maxItems":1},"match_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"negate_condition":{"type":"TypeBool","optional":true,"default":false},"operator":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true},"transform":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":6},"value":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":25},"variable":{"type":"TypeString","optional":true}}},"maxItems":100},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true}}},"maxItems":100}},"timeouts":{"create":360,"read":5,"delete":360,"update":360}},"azurerm_function_app":{"schema":{"app_service_plan_id":{"type":"TypeString","required":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true}}},"maxItems":1},"additional_login_params":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true},"consumer_secret":{"type":"TypeString","required":true}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true}}},"maxItems":1},"client_cert_mode":{"type":"TypeString","optional":true},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true},"default_hostname":{"type":"TypeString","computed":true},"enable_builtin_logging":{"type":"TypeBool","optional":true,"default":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","optional":true,"default":"","forceNew":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":false},"app_scale_limit":{"type":"TypeInt","optional":true,"computed":true},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"computed":true},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"java_version":{"type":"TypeString","optional":true},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"default":false},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"source_control":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"branch":{"type":"TypeString","optional":true,"computed":true},"manual_integration":{"type":"TypeBool","optional":true,"computed":true},"repo_url":{"type":"TypeString","optional":true,"computed":true},"rollback_enabled":{"type":"TypeBool","optional":true,"computed":true},"use_mercurial":{"type":"TypeBool","optional":true,"computed":true}}},"maxItems":1},"storage_account_access_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"default":"~1"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_function_app_active_slot":{"schema":{"last_successful_swap":{"type":"TypeString","description":"The timestamp of the last successful swap with `Production`","computed":true},"overwrite_network_config":{"type":"TypeBool","optional":true,"default":true,"description":"The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`.","forceNew":true},"slot_id":{"type":"TypeString","required":true,"description":"The ID of the Slot to swap with `Production`."}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_function_app_connection":{"schema":{"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","optional":true},"secret":{"type":"TypeString","optional":true},"subscription_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"client_type":{"type":"TypeString","optional":true,"default":"none"},"function_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"secret_store":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"vnet_solution":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_function_app_function":{"schema":{"config_json":{"type":"TypeString","required":true,"description":"The config for this Function in JSON format."},"config_url":{"type":"TypeString","description":"The URL of the configuration JSON.","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this function be enabled. Defaults to `true`."},"file":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"content":{"type":"TypeString","required":true,"description":"The content of the file.","forceNew":true},"name":{"type":"TypeString","required":true,"description":"The filename of the file to be uploaded.","forceNew":true}}},"minItems":1},"function_app_id":{"type":"TypeString","required":true,"description":"The ID of the Function App in which this function should reside.","forceNew":true},"invocation_url":{"type":"TypeString","description":"The invocation URL.","computed":true},"language":{"type":"TypeString","optional":true,"description":"The language the Function is written in."},"name":{"type":"TypeString","required":true,"description":"The name of the function.","forceNew":true},"script_root_path_url":{"type":"TypeString","description":"The Script root path URL.","computed":true},"script_url":{"type":"TypeString","description":"The script URL.","computed":true},"secrets_file_url":{"type":"TypeString","description":"The URL for the Secrets File.","computed":true},"test_data":{"type":"TypeString","optional":true,"description":"The test data for the function."},"test_data_url":{"type":"TypeString","description":"The Test data URL.","computed":true},"url":{"type":"TypeString","description":"The function URL.","computed":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_function_app_hybrid_connection":{"schema":{"function_app_id":{"type":"TypeString","required":true,"description":"The ID of the Function App for this Hybrid Connection.","forceNew":true},"hostname":{"type":"TypeString","required":true,"description":"The hostname of the endpoint."},"namespace_name":{"type":"TypeString","description":"The name of the Relay Namespace.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port to use for the endpoint"},"relay_id":{"type":"TypeString","required":true,"description":"The ID of the Relay Hybrid Connection to use.","forceNew":true},"relay_name":{"type":"TypeString","description":"The name of the Relay in use.","computed":true},"send_key_name":{"type":"TypeString","optional":true,"default":"RootManageSharedAccessKey","description":"The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey`"},"send_key_value":{"type":"TypeString","description":"The Primary Access Key for the `send_key_name`","computed":true},"service_bus_namespace":{"type":"TypeString","description":"The Service Bus Namespace.","computed":true},"service_bus_suffix":{"type":"TypeString","description":"The suffix for the endpoint.","computed":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_function_app_slot":{"schema":{"app_service_plan_id":{"type":"TypeString","required":true,"forceNew":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true}}},"maxItems":1},"additional_login_params":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","required":true},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true},"app_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true},"oauth_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true},"consumer_secret":{"type":"TypeString","required":true}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true}}},"maxItems":1},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"daily_memory_time_quota":{"type":"TypeInt","optional":true},"default_hostname":{"type":"TypeString","computed":true},"enable_builtin_logging":{"type":"TypeBool","optional":true,"default":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"function_app_name":{"type":"TypeString","required":true,"forceNew":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","optional":true,"forceNew":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":false},"app_scale_limit":{"type":"TypeInt","optional":true,"computed":true},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"computed":true},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"java_version":{"type":"TypeString","optional":true},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"default":false},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"storage_account_access_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"default":"~1"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_gallery_application":{"schema":{"description":{"type":"TypeString","optional":true},"end_of_life_date":{"type":"TypeString","optional":true},"eula":{"type":"TypeString","optional":true},"gallery_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"privacy_statement_uri":{"type":"TypeString","optional":true},"release_note_uri":{"type":"TypeString","optional":true},"supported_os_type":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_gallery_application_version":{"schema":{"config_file":{"type":"TypeString","optional":true,"forceNew":true},"enable_health_check":{"type":"TypeBool","optional":true,"default":false},"end_of_life_date":{"type":"TypeString","optional":true},"exclude_from_latest":{"type":"TypeBool","optional":true,"default":false},"gallery_application_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"manage_action":{"type":"TypeList","required":true,"elem":{"schema":{"install":{"type":"TypeString","required":true,"forceNew":true},"remove":{"type":"TypeString","required":true,"forceNew":true},"update":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"package_file":{"type":"TypeString","optional":true,"forceNew":true},"source":{"type":"TypeList","required":true,"elem":{"schema":{"default_configuration_link":{"type":"TypeString","optional":true,"forceNew":true},"media_link":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_region":{"type":"TypeList","required":true,"elem":{"schema":{"exclude_from_latest":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"regional_replica_count":{"type":"TypeInt","required":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"Standard_LRS"}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_graph_services_account":{"schema":{"application_id":{"type":"TypeString","required":true,"forceNew":true},"billing_plan_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hdinsight_hadoop_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"hadoop":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"edge_node":{"type":"TypeList","optional":true,"elem":{"schema":{"https_endpoints":{"type":"TypeList","optional":true,"elem":{"schema":{"access_modes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"destination_port":{"type":"TypeInt","optional":true},"disable_gateway_auth":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"sub_domain_suffix":{"type":"TypeString","optional":true}}}},"install_script_action":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"target_instance_count":{"type":"TypeInt","required":true},"uninstall_script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"vm_size":{"type":"TypeString","required":true}}},"maxItems":1},"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"autoscale":{"type":"TypeList","optional":true,"elem":{"schema":{"capacity":{"type":"TypeList","optional":true,"elem":{"schema":{"max_instance_count":{"type":"TypeInt","required":true},"min_instance_count":{"type":"TypeInt","required":true}}},"maxItems":1},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"target_instance_count":{"type":"TypeInt","required":true},"time":{"type":"TypeString","required":true}}},"minItems":1},"timezone":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hdinsight_hbase_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"hbase":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"autoscale":{"type":"TypeList","optional":true,"elem":{"schema":{"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"target_instance_count":{"type":"TypeInt","required":true},"time":{"type":"TypeString","required":true}}},"minItems":1},"timezone":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hdinsight_interactive_query_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"interactive_hive":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"encryption_in_transit_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"autoscale":{"type":"TypeList","optional":true,"elem":{"schema":{"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"target_instance_count":{"type":"TypeInt","required":true},"time":{"type":"TypeString","required":true}}},"minItems":1},"timezone":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hdinsight_kafka_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"kafka":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"encryption_in_transit_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"kafka_rest_proxy_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rest_proxy":{"type":"TypeList","optional":true,"elem":{"schema":{"security_group_id":{"type":"TypeString","required":true,"forceNew":true},"security_group_name":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"kafka_management_node":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","computed":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"number_of_disks_per_node":{"type":"TypeInt","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hdinsight_spark_cluster":{"schema":{"cluster_version":{"type":"TypeString","required":true,"forceNew":true},"component_version":{"type":"TypeList","required":true,"elem":{"schema":{"spark":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"compute_isolation":{"type":"TypeList","optional":true,"elem":{"schema":{"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"host_sku":{"type":"TypeString","optional":true}}},"maxItems":1},"disk_encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_algorithm":{"type":"TypeString","optional":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"key_vault_managed_identity_id":{"type":"TypeString","optional":true}}}},"encryption_in_transit_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"gateway":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"https_endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"metastores":{"type":"TypeList","optional":true,"elem":{"schema":{"ambari":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"hive":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"oozie":{"type":"TypeList","optional":true,"elem":{"schema":{"database_name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"monitor":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_direction":{"type":"TypeString","optional":true,"default":"Inbound","forceNew":true},"private_link_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"private_link_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"group_id":{"type":"TypeString","required":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"schema":{"head_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"worker_node":{"type":"TypeList","required":true,"elem":{"schema":{"autoscale":{"type":"TypeList","optional":true,"elem":{"schema":{"capacity":{"type":"TypeList","optional":true,"elem":{"schema":{"max_instance_count":{"type":"TypeInt","required":true},"min_instance_count":{"type":"TypeInt","required":true}}},"maxItems":1},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"target_instance_count":{"type":"TypeInt","required":true},"time":{"type":"TypeString","required":true}}},"minItems":1},"timezone":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"target_instance_count":{"type":"TypeInt","required":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zookeeper_node":{"type":"TypeList","required":true,"elem":{"schema":{"password":{"type":"TypeString","optional":true,"forceNew":true},"script_actions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true},"uri":{"type":"TypeString","required":true}}},"minItems":1},"ssh_keys":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"security_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"aadds_resource_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_users_group_dns":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"domain_user_password":{"type":"TypeString","required":true,"forceNew":true},"domain_username":{"type":"TypeString","required":true,"forceNew":true},"ldaps_urls":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"msi_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh_endpoint":{"type":"TypeString","computed":true},"storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","optional":true,"forceNew":true}}}},"storage_account_gen2":{"type":"TypeList","optional":true,"elem":{"schema":{"filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"is_default":{"type":"TypeBool","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","required":true,"forceNew":true},"storage_resource_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","required":true,"forceNew":true},"tls_min_version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_healthbot":{"schema":{"bot_management_portal_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_healthcare_dicom_service":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"authority":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint":{"type":"TypeSet","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_url":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":30,"update":90}},"azurerm_healthcare_fhir_service":{"schema":{"access_policy_object_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"audience":{"type":"TypeString","required":true},"authority":{"type":"TypeString","required":true},"smart_proxy_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"configuration_export_storage_account_name":{"type":"TypeString","optional":true},"container_registry_login_server_url":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_methods":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":64},"credentials_allowed":{"type":"TypeBool","optional":true,"default":false},"max_age_in_seconds":{"type":"TypeInt","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","optional":true,"default":"fhir-R4","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"oci_artifact":{"type":"TypeList","optional":true,"elem":{"schema":{"digest":{"type":"TypeString","optional":true},"image_name":{"type":"TypeString","optional":true},"login_server":{"type":"TypeString","required":true}}}},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":30,"update":90}},"azurerm_healthcare_medtech_service":{"schema":{"device_mapping_json":{"type":"TypeString","required":true},"eventhub_consumer_group_name":{"type":"TypeString","required":true},"eventhub_name":{"type":"TypeString","required":true},"eventhub_namespace_name":{"type":"TypeString","required":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_healthcare_medtech_service_fhir_destination":{"schema":{"destination_fhir_mapping_json":{"type":"TypeString","required":true},"destination_fhir_service_id":{"type":"TypeString","required":true},"destination_identity_resolution_type":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"medtech_service_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_healthcare_service":{"schema":{"access_policy_object_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"authentication_configuration":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"audience":{"type":"TypeString","optional":true},"authority":{"type":"TypeString","optional":true},"smart_proxy_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"configuration_export_storage_account_name":{"type":"TypeString","optional":true},"cors_configuration":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allow_credentials":{"type":"TypeBool","optional":true},"allowed_headers":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_methods":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":64},"max_age_in_seconds":{"type":"TypeInt","optional":true}}},"maxItems":1},"cosmosdb_key_vault_key_versionless_id":{"type":"TypeString","optional":true,"forceNew":true},"cosmosdb_throughput":{"type":"TypeInt","optional":true,"default":1000},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","optional":true,"default":"fhir"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_healthcare_workspace":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_connection":{"type":"TypeSet","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hpc_cache":{"schema":{"automatically_rotate_key_to_latest_enabled":{"type":"TypeBool","optional":true},"cache_size_in_gb":{"type":"TypeInt","required":true,"forceNew":true},"default_access_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"access_rule":{"type":"TypeSet","required":true,"elem":{"schema":{"access":{"type":"TypeString","required":true},"anonymous_gid":{"type":"TypeInt","optional":true},"anonymous_uid":{"type":"TypeInt","optional":true},"filter":{"type":"TypeString","optional":true},"root_squash_enabled":{"type":"TypeBool","optional":true},"scope":{"type":"TypeString","required":true},"submount_access_enabled":{"type":"TypeBool","optional":true},"suid_enabled":{"type":"TypeBool","optional":true}}},"maxItems":3,"minItems":1}}},"maxItems":1,"minItems":1},"directory_active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"cache_netbios_name":{"type":"TypeString","required":true},"dns_primary_ip":{"type":"TypeString","required":true},"dns_secondary_ip":{"type":"TypeString","optional":true},"domain_name":{"type":"TypeString","required":true},"domain_netbios_name":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"directory_flat_file":{"type":"TypeList","optional":true,"elem":{"schema":{"group_file_uri":{"type":"TypeString","required":true},"password_file_uri":{"type":"TypeString","required":true}}},"maxItems":1},"directory_ldap":{"type":"TypeList","optional":true,"elem":{"schema":{"base_dn":{"type":"TypeString","required":true},"bind":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"dn":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true}}},"maxItems":1},"certificate_validation_uri":{"type":"TypeString","optional":true},"download_certificate_automatically":{"type":"TypeBool","optional":true},"encrypted":{"type":"TypeBool","optional":true},"server":{"type":"TypeString","required":true}}},"maxItems":1},"dns":{"type":"TypeList","optional":true,"elem":{"schema":{"search_domain":{"type":"TypeString","optional":true},"servers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":3}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"key_vault_key_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mount_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"mtu":{"type":"TypeInt","optional":true,"default":1500},"name":{"type":"TypeString","required":true,"forceNew":true},"ntp_server":{"type":"TypeString","optional":true,"default":"time.windows.com"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_hpc_cache_access_policy":{"schema":{"access_rule":{"type":"TypeSet","required":true,"elem":{"schema":{"access":{"type":"TypeString","required":true},"anonymous_gid":{"type":"TypeInt","optional":true},"anonymous_uid":{"type":"TypeInt","optional":true},"filter":{"type":"TypeString","optional":true},"root_squash_enabled":{"type":"TypeBool","optional":true},"scope":{"type":"TypeString","required":true},"submount_access_enabled":{"type":"TypeBool","optional":true},"suid_enabled":{"type":"TypeBool","optional":true}}},"maxItems":3,"minItems":1},"hpc_cache_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hpc_cache_blob_nfs_target":{"schema":{"access_policy_name":{"type":"TypeString","optional":true,"default":"default"},"cache_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_path":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"usage_model":{"type":"TypeString","required":true},"verification_timer_in_seconds":{"type":"TypeInt","optional":true},"write_back_timer_in_seconds":{"type":"TypeInt","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hpc_cache_blob_target":{"schema":{"access_policy_name":{"type":"TypeString","optional":true,"default":"default"},"cache_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_path":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_hpc_cache_nfs_target":{"schema":{"cache_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_junction":{"type":"TypeSet","required":true,"elem":{"schema":{"access_policy_name":{"type":"TypeString","optional":true,"default":"default"},"namespace_path":{"type":"TypeString","required":true},"nfs_export":{"type":"TypeString","required":true},"target_path":{"type":"TypeString","optional":true,"default":""}}},"maxItems":10,"minItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"target_host_name":{"type":"TypeString","required":true,"forceNew":true},"usage_model":{"type":"TypeString","required":true},"verification_timer_in_seconds":{"type":"TypeInt","optional":true},"write_back_timer_in_seconds":{"type":"TypeInt","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_image":{"schema":{"data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","optional":true,"computed":true},"caching":{"type":"TypeString","optional":true,"default":"None"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"lun":{"type":"TypeInt","optional":true},"managed_disk_id":{"type":"TypeString","optional":true,"forceNew":true},"size_gb":{"type":"TypeInt","optional":true,"computed":true},"storage_type":{"type":"TypeString","required":true,"description":"The type of storage disk","forceNew":true}}}},"hyper_v_generation":{"type":"TypeString","optional":true,"default":"V1","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_disk":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"caching":{"type":"TypeString","optional":true,"default":"None"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"managed_disk_id":{"type":"TypeString","optional":true,"computed":true},"os_state":{"type":"TypeString","optional":true},"os_type":{"type":"TypeString","optional":true},"size_gb":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"storage_type":{"type":"TypeString","required":true,"description":"The type of storage disk","forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_virtual_machine_id":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_resilient":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_iot_security_device_group":{"schema":{"allow_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_from_ips_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"connection_to_ips_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"local_users_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"processes_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"range_rule":{"type":"TypeSet","optional":true,"elem":{"schema":{"duration":{"type":"TypeString","required":true},"max":{"type":"TypeInt","required":true},"min":{"type":"TypeInt","required":true},"type":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iot_security_solution":{"schema":{"additional_workspace":{"type":"TypeSet","optional":true,"elem":{"schema":{"data_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true}}}},"disabled_data_sources":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"events_to_export":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"iothub_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"log_analytics_workspace_id":{"type":"TypeString","optional":true},"log_unmasked_ips_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"query_for_resources":{"type":"TypeString","optional":true,"computed":true},"query_subscription_ids":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"recommendations_enabled":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"acr_authentication":{"type":"TypeBool","optional":true,"default":true},"agent_send_unutilized_msg":{"type":"TypeBool","optional":true,"default":true},"baseline":{"type":"TypeBool","optional":true,"default":true},"edge_hub_mem_optimize":{"type":"TypeBool","optional":true,"default":true},"edge_logging_option":{"type":"TypeBool","optional":true,"default":true},"inconsistent_module_settings":{"type":"TypeBool","optional":true,"default":true},"install_agent":{"type":"TypeBool","optional":true,"default":true},"ip_filter_deny_all":{"type":"TypeBool","optional":true,"default":true},"ip_filter_permissive_rule":{"type":"TypeBool","optional":true,"default":true},"open_ports":{"type":"TypeBool","optional":true,"default":true},"permissive_firewall_policy":{"type":"TypeBool","optional":true,"default":true},"permissive_input_firewall_rules":{"type":"TypeBool","optional":true,"default":true},"permissive_output_firewall_rules":{"type":"TypeBool","optional":true,"default":true},"privileged_docker_options":{"type":"TypeBool","optional":true,"default":true},"shared_credentials":{"type":"TypeBool","optional":true,"default":true},"vulnerable_tls_cipher_suite":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iotcentral_application":{"schema":{"display_name":{"type":"TypeString","optional":true,"computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"ST1"},"sub_domain":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template":{"type":"TypeString","optional":true,"default":"iotc-pnp-preview@1.0.0","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iotcentral_application_network_rule_set":{"schema":{"apply_to_device":{"type":"TypeBool","optional":true,"default":true},"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"iotcentral_application_id":{"type":"TypeString","required":true,"forceNew":true},"ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"ip_mask":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iotcentral_organization":{"schema":{"display_name":{"type":"TypeString","required":true},"iotcentral_application_id":{"type":"TypeString","required":true,"forceNew":true},"organization_id":{"type":"TypeString","required":true,"forceNew":true},"parent_organization_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub":{"schema":{"cloud_to_device":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"default_ttl":{"type":"TypeString","optional":true,"default":"PT1H"},"feedback":{"type":"TypeList","optional":true,"elem":{"schema":{"lock_duration":{"type":"TypeString","optional":true,"default":"PT60S"},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10},"time_to_live":{"type":"TypeString","optional":true,"default":"PT1H"}}}},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10}}},"maxItems":1},"endpoint":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"batch_frequency_in_seconds":{"type":"TypeInt","optional":true,"default":300},"connection_string":{"type":"TypeString","optional":true},"container_name":{"type":"TypeString","optional":true},"encoding":{"type":"TypeString","optional":true,"default":"Avro","forceNew":true},"endpoint_uri":{"type":"TypeString","optional":true},"entity_path":{"type":"TypeString","optional":true},"file_name_format":{"type":"TypeString","optional":true,"default":"{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}"},"identity_id":{"type":"TypeString","optional":true},"max_chunk_size_in_bytes":{"type":"TypeInt","optional":true,"default":314572800},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"enrichment":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"key":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":10},"event_hub_events_endpoint":{"type":"TypeString","computed":true},"event_hub_events_namespace":{"type":"TypeString","computed":true},"event_hub_events_path":{"type":"TypeString","computed":true},"event_hub_operations_endpoint":{"type":"TypeString","computed":true},"event_hub_operations_path":{"type":"TypeString","computed":true},"event_hub_partition_count":{"type":"TypeInt","optional":true,"default":4},"event_hub_retention_in_days":{"type":"TypeInt","optional":true,"default":1},"fallback_route":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"condition":{"type":"TypeString","optional":true,"default":"true"},"enabled":{"type":"TypeBool","optional":true,"default":true},"endpoint_names":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"source":{"type":"TypeString","optional":true,"default":"DeviceMessages"}}},"maxItems":1},"file_upload":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","required":true},"container_name":{"type":"TypeString","required":true},"default_ttl":{"type":"TypeString","optional":true,"default":"PT1H"},"identity_id":{"type":"TypeString","optional":true},"lock_duration":{"type":"TypeString","optional":true,"default":"PT1M"},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10},"notifications":{"type":"TypeBool","optional":true,"default":false},"sas_ttl":{"type":"TypeString","optional":true,"default":"PT1H"}}},"maxItems":1},"hostname":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"min_tls_version":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rule_set":{"type":"TypeList","optional":true,"elem":{"schema":{"apply_to_builtin_eventhub_endpoint":{"type":"TypeBool","optional":true,"default":false},"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"ip_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_mask":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}}}},"public_network_access_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"condition":{"type":"TypeString","optional":true,"default":"true"},"enabled":{"type":"TypeBool","required":true},"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"source":{"type":"TypeString","required":true}}}},"shared_access_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"key_name":{"type":"TypeString","computed":true},"permissions":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true}}}},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_certificate":{"schema":{"certificate_content":{"type":"TypeString","required":true},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"is_verified":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_consumer_group":{"schema":{"eventhub_endpoint_name":{"type":"TypeString","required":true,"forceNew":true},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_iothub_device_update_account":{"schema":{"host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_device_update_instance":{"schema":{"device_update_account_id":{"type":"TypeString","required":true,"forceNew":true},"diagnostic_enabled":{"type":"TypeBool","optional":true,"default":false},"diagnostic_storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_string":{"type":"TypeString","required":true},"id":{"type":"TypeString","required":true}}},"maxItems":1},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_dps":{"schema":{"allocation_policy":{"type":"TypeString","optional":true,"default":"Hashed"},"data_residency_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"device_provisioning_host_name":{"type":"TypeString","computed":true},"id_scope":{"type":"TypeString","computed":true},"ip_filter_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"ip_mask":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"target":{"type":"TypeString","optional":true}}}},"linked_hub":{"type":"TypeList","optional":true,"elem":{"schema":{"allocation_weight":{"type":"TypeInt","optional":true,"default":1},"apply_allocation_policy":{"type":"TypeBool","optional":true,"default":true},"connection_string":{"type":"TypeString","required":true},"hostname":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_operations_host_name":{"type":"TypeString","computed":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_dps_certificate":{"schema":{"certificate_content":{"type":"TypeString","required":true},"iot_dps_name":{"type":"TypeString","required":true,"forceNew":true},"is_verified":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_dps_shared_access_policy":{"schema":{"enrollment_read":{"type":"TypeBool","optional":true,"default":false},"enrollment_write":{"type":"TypeBool","optional":true,"default":false},"iothub_dps_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"registration_read":{"type":"TypeBool","optional":true,"default":false},"registration_write":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"service_config":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_cosmosdb_account":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"container_name":{"type":"TypeString","required":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"endpoint_uri":{"type":"TypeString","required":true,"forceNew":true},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key_name":{"type":"TypeString","optional":true},"partition_key_template":{"type":"TypeString","optional":true},"primary_key":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_key":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_eventhub":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","optional":true},"endpoint_uri":{"type":"TypeString","optional":true},"entity_path":{"type":"TypeString","optional":true},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_servicebus_queue":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","optional":true},"endpoint_uri":{"type":"TypeString","optional":true},"entity_path":{"type":"TypeString","optional":true},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_servicebus_topic":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","optional":true},"endpoint_uri":{"type":"TypeString","optional":true},"entity_path":{"type":"TypeString","optional":true},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_endpoint_storage_container":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"batch_frequency_in_seconds":{"type":"TypeInt","optional":true,"default":300},"connection_string":{"type":"TypeString","optional":true},"container_name":{"type":"TypeString","required":true},"encoding":{"type":"TypeString","optional":true,"default":"Avro","forceNew":true},"endpoint_uri":{"type":"TypeString","optional":true},"file_name_format":{"type":"TypeString","optional":true,"default":"{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}"},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"max_chunk_size_in_bytes":{"type":"TypeInt","optional":true,"default":314572800},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_enrichment":{"schema":{"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":100},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"key":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_fallback_route":{"schema":{"condition":{"type":"TypeString","optional":true,"default":"true"},"enabled":{"type":"TypeBool","required":true},"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":1},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeString","optional":true,"default":"DeviceMessages"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_file_upload":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"keyBased"},"connection_string":{"type":"TypeString","required":true},"container_name":{"type":"TypeString","required":true},"default_ttl":{"type":"TypeString","optional":true,"default":"PT1H"},"identity_id":{"type":"TypeString","optional":true},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"lock_duration":{"type":"TypeString","optional":true,"default":"PT1M"},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10},"notifications_enabled":{"type":"TypeBool","optional":true,"default":false},"sas_ttl":{"type":"TypeString","optional":true,"default":"PT1H"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_route":{"schema":{"condition":{"type":"TypeString","optional":true,"default":"true"},"enabled":{"type":"TypeBool","required":true},"endpoint_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":1},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_iothub_shared_access_policy":{"schema":{"device_connect":{"type":"TypeBool","optional":true,"default":false},"iothub_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"registry_read":{"type":"TypeBool","optional":true,"default":false},"registry_write":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"service_connect":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_ip_group":{"schema":{"cidrs":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"firewall_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"firewall_policy_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_ip_group_cidr":{"schema":{"cidr":{"type":"TypeString","required":true,"forceNew":true},"ip_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_key_vault":{"schema":{"access_policy":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"application_id":{"type":"TypeString","optional":true},"certificate_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"key_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"object_id":{"type":"TypeString","required":true},"secret_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"storage_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1024},"contact":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"email":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true},"phone":{"type":"TypeString","optional":true}}}},"enable_rbac_authorization":{"type":"TypeBool","optional":true},"enabled_for_deployment":{"type":"TypeBool","optional":true},"enabled_for_disk_encryption":{"type":"TypeBool","optional":true},"enabled_for_template_deployment":{"type":"TypeBool","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acls":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"bypass":{"type":"TypeString","required":true},"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"purge_protection_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"soft_delete_retention_days":{"type":"TypeInt","optional":true,"default":90},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","required":true},"vault_uri":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_access_policy":{"schema":{"application_id":{"type":"TypeString","optional":true,"forceNew":true},"certificate_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"key_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"object_id":{"type":"TypeString","required":true,"forceNew":true},"secret_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"storage_permissions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_certificate":{"schema":{"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"contents":{"type":"TypeString","required":true},"password":{"type":"TypeString","optional":true}}},"maxItems":1},"certificate_attribute":{"type":"TypeList","computed":true,"elem":{"schema":{"created":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"expires":{"type":"TypeString","computed":true},"not_before":{"type":"TypeString","computed":true},"recovery_level":{"type":"TypeString","computed":true},"updated":{"type":"TypeString","computed":true}}}},"certificate_data":{"type":"TypeString","computed":true},"certificate_data_base64":{"type":"TypeString","computed":true},"certificate_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"issuer_parameters":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}},"maxItems":1},"key_properties":{"type":"TypeList","required":true,"elem":{"schema":{"curve":{"type":"TypeString","optional":true,"computed":true},"exportable":{"type":"TypeBool","required":true},"key_size":{"type":"TypeInt","optional":true,"computed":true},"key_type":{"type":"TypeString","required":true},"reuse_key":{"type":"TypeBool","required":true}}},"maxItems":1},"lifetime_action":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true}}},"maxItems":1},"trigger":{"type":"TypeList","required":true,"elem":{"schema":{"days_before_expiry":{"type":"TypeInt","optional":true},"lifetime_percentage":{"type":"TypeInt","optional":true}}},"maxItems":1}}}},"secret_properties":{"type":"TypeList","required":true,"elem":{"schema":{"content_type":{"type":"TypeString","required":true}}},"maxItems":1},"x509_certificate_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"extended_key_usage":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"key_usage":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"subject":{"type":"TypeString","required":true},"subject_alternative_names":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"dns_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"emails":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"upns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"validity_in_months":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_manager_id":{"type":"TypeString","computed":true},"resource_manager_versionless_id":{"type":"TypeString","computed":true},"secret_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true},"versionless_id":{"type":"TypeString","computed":true},"versionless_secret_id":{"type":"TypeString","computed":true}},"timeouts":{"create":60,"read":30,"delete":30,"update":30}},"azurerm_key_vault_certificate_contacts":{"schema":{"contact":{"type":"TypeSet","optional":true,"elem":{"schema":{"email":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true},"phone":{"type":"TypeString","optional":true}}}},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_certificate_issuer":{"schema":{"account_id":{"type":"TypeString","optional":true},"admin":{"type":"TypeList","optional":true,"elem":{"schema":{"email_address":{"type":"TypeString","required":true},"first_name":{"type":"TypeString","optional":true},"last_name":{"type":"TypeString","optional":true},"phone":{"type":"TypeString","optional":true}}}},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"org_id":{"type":"TypeString","optional":true},"password":{"type":"TypeString","optional":true},"provider_name":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_key":{"schema":{"curve":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"e":{"type":"TypeString","computed":true},"expiration_date":{"type":"TypeString","optional":true},"key_opts":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"key_size":{"type":"TypeInt","optional":true,"forceNew":true},"key_type":{"type":"TypeString","required":true,"forceNew":true},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"n":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"not_before_date":{"type":"TypeString","optional":true},"public_key_openssh":{"type":"TypeString","computed":true},"public_key_pem":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"resource_versionless_id":{"type":"TypeString","computed":true},"rotation_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"automatic":{"type":"TypeList","optional":true,"elem":{"schema":{"time_after_creation":{"type":"TypeString","optional":true},"time_before_expiry":{"type":"TypeString","optional":true}}},"maxItems":1},"expire_after":{"type":"TypeString","optional":true},"notify_before_expiry":{"type":"TypeString","optional":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true},"versionless_id":{"type":"TypeString","computed":true},"x":{"type":"TypeString","computed":true},"y":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":30,"delete":30,"update":30}},"azurerm_key_vault_managed_hardware_security_module":{"schema":{"admin_object_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"hsm_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_acls":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"bypass":{"type":"TypeString","required":true},"default_action":{"type":"TypeString","required":true}}},"maxItems":1},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"purge_protection_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"security_domain_encrypted_data":{"type":"TypeString","computed":true},"security_domain_key_vault_certificate_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":10,"minItems":3},"security_domain_quorum":{"type":"TypeInt","optional":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"soft_delete_retention_days":{"type":"TypeInt","optional":true,"default":90,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":30}},"azurerm_key_vault_managed_hardware_security_module_key":{"schema":{"curve":{"type":"TypeString","optional":true,"forceNew":true},"expiration_date":{"type":"TypeString","optional":true},"key_opts":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"key_size":{"type":"TypeInt","optional":true,"forceNew":true},"key_type":{"type":"TypeString","required":true,"forceNew":true},"managed_hsm_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"not_before_date":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"versioned_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_managed_hardware_security_module_key_rotation_policy":{"schema":{"expire_after":{"type":"TypeString","required":true},"managed_hsm_key_id":{"type":"TypeString","required":true,"forceNew":true},"time_after_creation":{"type":"TypeString","optional":true},"time_before_expiry":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_managed_hardware_security_module_role_assignment":{"schema":{"managed_hsm_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","computed":true},"role_definition_id":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10}},"azurerm_key_vault_managed_hardware_security_module_role_definition":{"schema":{"description":{"type":"TypeString","optional":true},"managed_hsm_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"permission":{"type":"TypeList","optional":true,"elem":{"schema":{"actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"not_actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"not_data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"resource_manager_id":{"type":"TypeString","computed":true},"role_name":{"type":"TypeString","optional":true},"role_type":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_key_vault_managed_storage_account":{"schema":{"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"regenerate_key_automatically":{"type":"TypeBool","optional":true,"default":false},"regeneration_period":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true},"storage_account_key":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_managed_storage_account_sas_token_definition":{"schema":{"managed_storage_account_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"sas_template_uri":{"type":"TypeString","required":true},"sas_type":{"type":"TypeString","required":true},"secret_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"validity_period":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_key_vault_secret":{"schema":{"content_type":{"type":"TypeString","optional":true},"expiration_date":{"type":"TypeString","optional":true},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"not_before_date":{"type":"TypeString","optional":true},"resource_id":{"type":"TypeString","computed":true},"resource_versionless_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","required":true},"version":{"type":"TypeString","computed":true},"versionless_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":30,"delete":30,"update":30}},"azurerm_kubernetes_cluster":{"schema":{"aci_connector_linux":{"type":"TypeList","optional":true,"elem":{"schema":{"connector_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"subnet_name":{"type":"TypeString","required":true}}},"maxItems":1},"api_server_access_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"authorized_ip_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auto_scaler_profile":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"balance_similar_node_groups":{"type":"TypeBool","optional":true,"default":false},"daemonset_eviction_for_empty_nodes_enabled":{"type":"TypeBool","optional":true,"default":false},"daemonset_eviction_for_occupied_nodes_enabled":{"type":"TypeBool","optional":true,"default":true},"empty_bulk_delete_max":{"type":"TypeString","optional":true,"computed":true},"expander":{"type":"TypeString","optional":true,"default":"random"},"ignore_daemonsets_utilization_enabled":{"type":"TypeBool","optional":true,"default":false},"max_graceful_termination_sec":{"type":"TypeString","optional":true,"computed":true},"max_node_provisioning_time":{"type":"TypeString","optional":true,"default":"15m"},"max_unready_nodes":{"type":"TypeInt","optional":true,"default":3},"max_unready_percentage":{"type":"TypeFloat","optional":true,"default":45},"new_pod_scale_up_delay":{"type":"TypeString","optional":true,"computed":true},"scale_down_delay_after_add":{"type":"TypeString","optional":true,"computed":true},"scale_down_delay_after_delete":{"type":"TypeString","optional":true,"computed":true},"scale_down_delay_after_failure":{"type":"TypeString","optional":true,"computed":true},"scale_down_unneeded":{"type":"TypeString","optional":true,"computed":true},"scale_down_unready":{"type":"TypeString","optional":true,"computed":true},"scale_down_utilization_threshold":{"type":"TypeString","optional":true,"computed":true},"scan_interval":{"type":"TypeString","optional":true,"computed":true},"skip_nodes_with_local_storage":{"type":"TypeBool","optional":true},"skip_nodes_with_system_pods":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"automatic_upgrade_channel":{"type":"TypeString","optional":true},"azure_active_directory_role_based_access_control":{"type":"TypeList","optional":true,"elem":{"schema":{"admin_group_object_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"azure_rbac_enabled":{"type":"TypeBool","optional":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"azure_policy_enabled":{"type":"TypeBool","optional":true},"confidential_computing":{"type":"TypeList","optional":true,"elem":{"schema":{"sgx_quote_helper_enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"cost_analysis_enabled":{"type":"TypeBool","optional":true},"current_kubernetes_version":{"type":"TypeString","computed":true},"default_node_pool":{"type":"TypeList","required":true,"elem":{"schema":{"auto_scaling_enabled":{"type":"TypeBool","optional":true},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"fips_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"gpu_instance":{"type":"TypeString","optional":true,"forceNew":true},"host_encryption_enabled":{"type":"TypeBool","optional":true},"host_group_id":{"type":"TypeString","optional":true,"forceNew":true},"kubelet_config":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_unsafe_sysctls":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"container_log_max_line":{"type":"TypeInt","optional":true},"container_log_max_size_mb":{"type":"TypeInt","optional":true},"cpu_cfs_quota_enabled":{"type":"TypeBool","optional":true,"default":true},"cpu_cfs_quota_period":{"type":"TypeString","optional":true},"cpu_manager_policy":{"type":"TypeString","optional":true},"image_gc_high_threshold":{"type":"TypeInt","optional":true},"image_gc_low_threshold":{"type":"TypeInt","optional":true},"pod_max_pid":{"type":"TypeInt","optional":true},"topology_manager_policy":{"type":"TypeString","optional":true}}},"maxItems":1},"kubelet_disk_type":{"type":"TypeString","optional":true,"computed":true},"linux_os_config":{"type":"TypeList","optional":true,"elem":{"schema":{"swap_file_size_mb":{"type":"TypeInt","optional":true},"sysctl_config":{"type":"TypeList","optional":true,"elem":{"schema":{"fs_aio_max_nr":{"type":"TypeInt","optional":true},"fs_file_max":{"type":"TypeInt","optional":true},"fs_inotify_max_user_watches":{"type":"TypeInt","optional":true},"fs_nr_open":{"type":"TypeInt","optional":true},"kernel_threads_max":{"type":"TypeInt","optional":true},"net_core_netdev_max_backlog":{"type":"TypeInt","optional":true},"net_core_optmem_max":{"type":"TypeInt","optional":true},"net_core_rmem_default":{"type":"TypeInt","optional":true},"net_core_rmem_max":{"type":"TypeInt","optional":true},"net_core_somaxconn":{"type":"TypeInt","optional":true},"net_core_wmem_default":{"type":"TypeInt","optional":true},"net_core_wmem_max":{"type":"TypeInt","optional":true},"net_ipv4_ip_local_port_range_max":{"type":"TypeInt","optional":true},"net_ipv4_ip_local_port_range_min":{"type":"TypeInt","optional":true},"net_ipv4_neigh_default_gc_thresh1":{"type":"TypeInt","optional":true},"net_ipv4_neigh_default_gc_thresh2":{"type":"TypeInt","optional":true},"net_ipv4_neigh_default_gc_thresh3":{"type":"TypeInt","optional":true},"net_ipv4_tcp_fin_timeout":{"type":"TypeInt","optional":true},"net_ipv4_tcp_keepalive_intvl":{"type":"TypeInt","optional":true},"net_ipv4_tcp_keepalive_probes":{"type":"TypeInt","optional":true},"net_ipv4_tcp_keepalive_time":{"type":"TypeInt","optional":true},"net_ipv4_tcp_max_syn_backlog":{"type":"TypeInt","optional":true},"net_ipv4_tcp_max_tw_buckets":{"type":"TypeInt","optional":true},"net_ipv4_tcp_tw_reuse":{"type":"TypeBool","optional":true},"net_netfilter_nf_conntrack_buckets":{"type":"TypeInt","optional":true},"net_netfilter_nf_conntrack_max":{"type":"TypeInt","optional":true},"vm_max_map_count":{"type":"TypeInt","optional":true},"vm_swappiness":{"type":"TypeInt","optional":true},"vm_vfs_cache_pressure":{"type":"TypeInt","optional":true}}},"maxItems":1},"transparent_huge_page_defrag":{"type":"TypeString","optional":true},"transparent_huge_page_enabled":{"type":"TypeString","optional":true}}},"maxItems":1},"max_count":{"type":"TypeInt","optional":true},"max_pods":{"type":"TypeInt","optional":true,"computed":true},"min_count":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true},"node_count":{"type":"TypeInt","optional":true,"computed":true},"node_labels":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"node_network_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_host_ports":{"type":"TypeList","optional":true,"elem":{"schema":{"port_end":{"type":"TypeInt","optional":true},"port_start":{"type":"TypeInt","optional":true},"protocol":{"type":"TypeString","optional":true}}}},"application_security_group_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"node_public_ip_tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"node_public_ip_enabled":{"type":"TypeBool","optional":true},"node_public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"only_critical_addons_enabled":{"type":"TypeBool","optional":true},"orchestrator_version":{"type":"TypeString","optional":true,"computed":true},"os_disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"os_disk_type":{"type":"TypeString","optional":true,"default":"Managed"},"os_sku":{"type":"TypeString","optional":true,"computed":true},"pod_subnet_id":{"type":"TypeString","optional":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"scale_down_mode":{"type":"TypeString","optional":true,"default":"Delete"},"snapshot_id":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"temporary_name_for_rotation":{"type":"TypeString","optional":true},"type":{"type":"TypeString","optional":true,"default":"VirtualMachineScaleSets","forceNew":true},"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false},"upgrade_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"drain_timeout_in_minutes":{"type":"TypeInt","optional":true},"max_surge":{"type":"TypeString","required":true},"node_soak_duration_in_minutes":{"type":"TypeInt","optional":true}}},"maxItems":1},"vm_size":{"type":"TypeString","required":true},"vnet_subnet_id":{"type":"TypeString","optional":true},"workload_runtime":{"type":"TypeString","optional":true,"computed":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"dns_prefix":{"type":"TypeString","optional":true,"forceNew":true},"dns_prefix_private_cluster":{"type":"TypeString","optional":true,"forceNew":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"http_application_routing_enabled":{"type":"TypeBool","optional":true},"http_application_routing_zone_name":{"type":"TypeString","computed":true},"http_proxy_config":{"type":"TypeList","optional":true,"elem":{"schema":{"http_proxy":{"type":"TypeString","optional":true},"https_proxy":{"type":"TypeString","optional":true},"no_proxy":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"trusted_ca":{"type":"TypeString","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"image_cleaner_enabled":{"type":"TypeBool","optional":true},"image_cleaner_interval_hours":{"type":"TypeInt","optional":true},"ingress_application_gateway":{"type":"TypeList","optional":true,"elem":{"schema":{"effective_gateway_id":{"type":"TypeString","computed":true},"gateway_id":{"type":"TypeString","optional":true},"gateway_name":{"type":"TypeString","optional":true},"ingress_application_gateway_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"subnet_cidr":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"key_management_service":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"key_vault_network_access":{"type":"TypeString","optional":true,"default":"Public"}}},"maxItems":1},"key_vault_secrets_provider":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"secret_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"secret_rotation_interval":{"type":"TypeString","optional":true,"default":"2m"}}},"maxItems":1},"kube_admin_config":{"type":"TypeList","computed":true,"elem":{"schema":{"client_certificate":{"type":"TypeString","computed":true},"client_key":{"type":"TypeString","computed":true},"cluster_ca_certificate":{"type":"TypeString","computed":true},"host":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"kube_admin_config_raw":{"type":"TypeString","computed":true},"kube_config":{"type":"TypeList","computed":true,"elem":{"schema":{"client_certificate":{"type":"TypeString","computed":true},"client_key":{"type":"TypeString","computed":true},"cluster_ca_certificate":{"type":"TypeString","computed":true},"host":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"kube_config_raw":{"type":"TypeString","computed":true},"kubelet_identity":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"object_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}}},"maxItems":1},"kubernetes_version":{"type":"TypeString","optional":true,"computed":true},"linux_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_key":{"type":"TypeList","required":true,"elem":{"schema":{"key_data":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"local_account_disabled":{"type":"TypeBool","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed":{"type":"TypeSet","optional":true,"elem":{"schema":{"day":{"type":"TypeString","required":true},"hours":{"type":"TypeSet","required":true,"elem":{"type":"TypeInt"},"minItems":1}}}},"not_allowed":{"type":"TypeSet","optional":true,"elem":{"schema":{"end":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true}}}}}},"maxItems":1},"maintenance_window_auto_upgrade":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_month":{"type":"TypeInt","optional":true},"day_of_week":{"type":"TypeString","optional":true},"duration":{"type":"TypeInt","required":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","required":true},"not_allowed":{"type":"TypeSet","optional":true,"elem":{"schema":{"end":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true}}}},"start_date":{"type":"TypeString","optional":true,"computed":true},"start_time":{"type":"TypeString","optional":true},"utc_offset":{"type":"TypeString","optional":true},"week_index":{"type":"TypeString","optional":true}}},"maxItems":1},"maintenance_window_node_os":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_month":{"type":"TypeInt","optional":true},"day_of_week":{"type":"TypeString","optional":true},"duration":{"type":"TypeInt","required":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","required":true},"not_allowed":{"type":"TypeSet","optional":true,"elem":{"schema":{"end":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true}}}},"start_date":{"type":"TypeString","optional":true,"computed":true},"start_time":{"type":"TypeString","optional":true},"utc_offset":{"type":"TypeString","optional":true},"week_index":{"type":"TypeString","optional":true}}},"maxItems":1},"microsoft_defender":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true}}},"maxItems":1},"monitor_metrics":{"type":"TypeList","optional":true,"elem":{"schema":{"annotations_allowed":{"type":"TypeString","optional":true},"labels_allowed":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"dns_service_ip":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"ip_versions":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"load_balancer_profile":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"backend_pool_type":{"type":"TypeString","optional":true,"default":"NodeIPConfiguration"},"effective_outbound_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":30},"managed_outbound_ip_count":{"type":"TypeInt","optional":true,"computed":true},"managed_outbound_ipv6_count":{"type":"TypeInt","optional":true,"computed":true},"outbound_ip_address_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"outbound_ip_prefix_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"outbound_ports_allocated":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"load_balancer_sku":{"type":"TypeString","optional":true,"default":"standard","forceNew":true},"nat_gateway_profile":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"effective_outbound_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"managed_outbound_ip_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"network_data_plane":{"type":"TypeString","optional":true,"default":"azure"},"network_mode":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"network_plugin":{"type":"TypeString","required":true,"forceNew":true},"network_plugin_mode":{"type":"TypeString","optional":true},"network_policy":{"type":"TypeString","optional":true,"computed":true},"outbound_type":{"type":"TypeString","optional":true,"default":"loadBalancer"},"pod_cidr":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"pod_cidrs":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"service_cidr":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"service_cidrs":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"node_os_upgrade_channel":{"type":"TypeString","optional":true,"default":"NodeImage"},"node_resource_group":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"node_resource_group_id":{"type":"TypeString","computed":true},"oidc_issuer_enabled":{"type":"TypeBool","optional":true},"oidc_issuer_url":{"type":"TypeString","computed":true},"oms_agent":{"type":"TypeList","optional":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"msi_auth_for_monitoring_enabled":{"type":"TypeBool","optional":true},"oms_agent_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}}}},"maxItems":1},"open_service_mesh_enabled":{"type":"TypeBool","optional":true},"portal_fqdn":{"type":"TypeString","computed":true},"private_cluster_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"private_cluster_public_fqdn_enabled":{"type":"TypeBool","optional":true,"default":false},"private_dns_zone_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"private_fqdn":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role_based_access_control_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"run_command_enabled":{"type":"TypeBool","optional":true,"default":true},"service_mesh_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_authority":{"type":"TypeList","optional":true,"elem":{"schema":{"cert_chain_object_name":{"type":"TypeString","required":true},"cert_object_name":{"type":"TypeString","required":true},"key_object_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","required":true},"root_cert_object_name":{"type":"TypeString","required":true}}},"maxItems":1},"external_ingress_gateway_enabled":{"type":"TypeBool","optional":true},"internal_ingress_gateway_enabled":{"type":"TypeBool","optional":true},"mode":{"type":"TypeString","required":true},"revisions":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":2,"minItems":1}}},"maxItems":1},"service_principal":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true}}},"maxItems":1},"sku_tier":{"type":"TypeString","optional":true,"default":"Free"},"storage_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_driver_enabled":{"type":"TypeBool","optional":true,"default":false},"disk_driver_enabled":{"type":"TypeBool","optional":true,"default":true},"file_driver_enabled":{"type":"TypeBool","optional":true,"default":true},"snapshot_controller_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"support_plan":{"type":"TypeString","optional":true,"default":"KubernetesOfficial"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"web_app_routing":{"type":"TypeList","optional":true,"elem":{"schema":{"dns_zone_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"web_app_routing_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}}}},"maxItems":1},"windows_profile":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"admin_password":{"type":"TypeString","required":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"gmsa":{"type":"TypeList","optional":true,"elem":{"schema":{"dns_server":{"type":"TypeString","required":true},"root_domain":{"type":"TypeString","required":true}}},"maxItems":1},"license":{"type":"TypeString","optional":true}}},"maxItems":1},"workload_autoscaler_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"keda_enabled":{"type":"TypeBool","optional":true,"default":false},"vertical_pod_autoscaler_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"workload_identity_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_kubernetes_cluster_extension":{"schema":{"aks_assigned_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"configuration_protected_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"configuration_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"current_version":{"type":"TypeString","computed":true},"extension_type":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"promotion_code":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"release_namespace":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"release_train":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"target_namespace":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_cluster_node_pool":{"schema":{"auto_scaling_enabled":{"type":"TypeBool","optional":true},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"fips_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"gpu_instance":{"type":"TypeString","optional":true,"forceNew":true},"host_encryption_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"host_group_id":{"type":"TypeString","optional":true,"forceNew":true},"kubelet_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"allowed_unsafe_sysctls":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"container_log_max_line":{"type":"TypeInt","optional":true,"forceNew":true},"container_log_max_size_mb":{"type":"TypeInt","optional":true,"forceNew":true},"cpu_cfs_quota_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"cpu_cfs_quota_period":{"type":"TypeString","optional":true,"forceNew":true},"cpu_manager_policy":{"type":"TypeString","optional":true,"forceNew":true},"image_gc_high_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"image_gc_low_threshold":{"type":"TypeInt","optional":true,"forceNew":true},"pod_max_pid":{"type":"TypeInt","optional":true,"forceNew":true},"topology_manager_policy":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"kubelet_disk_type":{"type":"TypeString","optional":true,"computed":true},"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"linux_os_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"swap_file_size_mb":{"type":"TypeInt","optional":true,"forceNew":true},"sysctl_config":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"fs_aio_max_nr":{"type":"TypeInt","optional":true,"forceNew":true},"fs_file_max":{"type":"TypeInt","optional":true,"forceNew":true},"fs_inotify_max_user_watches":{"type":"TypeInt","optional":true,"forceNew":true},"fs_nr_open":{"type":"TypeInt","optional":true,"forceNew":true},"kernel_threads_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_netdev_max_backlog":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_optmem_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_rmem_default":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_rmem_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_somaxconn":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_wmem_default":{"type":"TypeInt","optional":true,"forceNew":true},"net_core_wmem_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_ip_local_port_range_max":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_ip_local_port_range_min":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_neigh_default_gc_thresh1":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_neigh_default_gc_thresh2":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_neigh_default_gc_thresh3":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_fin_timeout":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_keepalive_intvl":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_keepalive_probes":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_keepalive_time":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_max_syn_backlog":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_max_tw_buckets":{"type":"TypeInt","optional":true,"forceNew":true},"net_ipv4_tcp_tw_reuse":{"type":"TypeBool","optional":true,"forceNew":true},"net_netfilter_nf_conntrack_buckets":{"type":"TypeInt","optional":true,"forceNew":true},"net_netfilter_nf_conntrack_max":{"type":"TypeInt","optional":true,"forceNew":true},"vm_max_map_count":{"type":"TypeInt","optional":true,"forceNew":true},"vm_swappiness":{"type":"TypeInt","optional":true,"forceNew":true},"vm_vfs_cache_pressure":{"type":"TypeInt","optional":true,"forceNew":true}}},"maxItems":1},"transparent_huge_page_defrag":{"type":"TypeString","optional":true,"forceNew":true},"transparent_huge_page_enabled":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"max_count":{"type":"TypeInt","optional":true},"max_pods":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"min_count":{"type":"TypeInt","optional":true},"mode":{"type":"TypeString","optional":true,"default":"User"},"name":{"type":"TypeString","required":true,"forceNew":true},"node_count":{"type":"TypeInt","optional":true,"computed":true},"node_labels":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"node_network_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_host_ports":{"type":"TypeList","optional":true,"elem":{"schema":{"port_end":{"type":"TypeInt","optional":true},"port_start":{"type":"TypeInt","optional":true},"protocol":{"type":"TypeString","optional":true}}}},"application_security_group_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"node_public_ip_tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"node_public_ip_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"node_public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"node_taints":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"orchestrator_version":{"type":"TypeString","optional":true,"computed":true},"os_disk_size_gb":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"os_disk_type":{"type":"TypeString","optional":true,"default":"Managed","forceNew":true},"os_sku":{"type":"TypeString","optional":true,"computed":true},"os_type":{"type":"TypeString","optional":true,"default":"Linux","forceNew":true},"pod_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"scale_down_mode":{"type":"TypeString","optional":true,"default":"Delete"},"snapshot_id":{"type":"TypeString","optional":true,"forceNew":true},"spot_max_price":{"type":"TypeFloat","optional":true,"default":-1,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"upgrade_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"drain_timeout_in_minutes":{"type":"TypeInt","optional":true},"max_surge":{"type":"TypeString","required":true},"node_soak_duration_in_minutes":{"type":"TypeInt","optional":true}}},"maxItems":1},"vm_size":{"type":"TypeString","required":true,"forceNew":true},"vnet_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"windows_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"outbound_nat_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true}}},"maxItems":1},"workload_runtime":{"type":"TypeString","optional":true},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kubernetes_cluster_trusted_access_role_binding":{"schema":{"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"roles":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"source_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_fleet_manager":{"schema":{"hub_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"dns_prefix":{"type":"TypeString","required":true},"fqdn":{"type":"TypeString","computed":true},"kubernetes_version":{"type":"TypeString","computed":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_fleet_member":{"schema":{"group":{"type":"TypeString","optional":true},"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"kubernetes_fleet_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_fleet_update_run":{"schema":{"fleet_update_strategy_id":{"type":"TypeString","optional":true},"kubernetes_fleet_manager_id":{"type":"TypeString","required":true,"forceNew":true},"managed_cluster_update":{"type":"TypeList","required":true,"elem":{"schema":{"node_image_selection":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}},"maxItems":1},"upgrade":{"type":"TypeList","required":true,"elem":{"schema":{"kubernetes_version":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"stage":{"type":"TypeList","optional":true,"elem":{"schema":{"after_stage_wait_in_seconds":{"type":"TypeInt","optional":true},"group":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_fleet_update_strategy":{"schema":{"kubernetes_fleet_manager_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"stage":{"type":"TypeList","required":true,"elem":{"schema":{"after_stage_wait_in_seconds":{"type":"TypeInt","optional":true},"group":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kubernetes_flux_configuration":{"schema":{"blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","optional":true},"container_id":{"type":"TypeString","required":true},"local_auth_reference":{"type":"TypeString","optional":true},"managed_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true}}},"maxItems":1},"sas_token":{"type":"TypeString","optional":true},"service_principal":{"type":"TypeList","optional":true,"elem":{"schema":{"client_certificate_base64":{"type":"TypeString","optional":true},"client_certificate_password":{"type":"TypeString","optional":true},"client_certificate_send_chain":{"type":"TypeBool","optional":true,"default":false},"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600}}},"maxItems":1},"bucket":{"type":"TypeList","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","optional":true},"bucket_name":{"type":"TypeString","required":true},"local_auth_reference":{"type":"TypeString","optional":true},"secret_key_base64":{"type":"TypeString","optional":true},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600},"tls_enabled":{"type":"TypeBool","optional":true,"default":true},"url":{"type":"TypeString","required":true}}},"maxItems":1},"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"continuous_reconciliation_enabled":{"type":"TypeBool","optional":true,"default":true},"git_repository":{"type":"TypeList","optional":true,"elem":{"schema":{"https_ca_cert_base64":{"type":"TypeString","optional":true},"https_key_base64":{"type":"TypeString","optional":true},"https_user":{"type":"TypeString","optional":true},"local_auth_reference":{"type":"TypeString","optional":true},"reference_type":{"type":"TypeString","required":true},"reference_value":{"type":"TypeString","required":true},"ssh_known_hosts_base64":{"type":"TypeString","optional":true},"ssh_private_key_base64":{"type":"TypeString","optional":true},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600},"url":{"type":"TypeString","required":true}}},"maxItems":1},"kustomizations":{"type":"TypeSet","required":true,"elem":{"schema":{"depends_on":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"garbage_collection_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"recreating_enabled":{"type":"TypeBool","optional":true,"default":false},"retry_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"sync_interval_in_seconds":{"type":"TypeInt","optional":true,"default":600},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":600}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","optional":true,"default":"namespace","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kusto_attached_database_configuration":{"schema":{"attached_database_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"cluster_resource_id":{"type":"TypeString","required":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"default_principal_modification_kind":{"type":"TypeString","optional":true,"default":"None"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sharing":{"type":"TypeList","optional":true,"elem":{"schema":{"external_tables_to_exclude":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"external_tables_to_include":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"materialized_views_to_exclude":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"materialized_views_to_include":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"tables_to_exclude":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"tables_to_include":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_cluster":{"schema":{"allowed_fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"allowed_ip_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"auto_stop_enabled":{"type":"TypeBool","optional":true,"default":true},"data_ingestion_uri":{"type":"TypeString","computed":true},"disk_encryption_enabled":{"type":"TypeBool","optional":true,"default":false},"double_encryption_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"language_extensions":{"type":"TypeList","optional":true,"elem":{"schema":{"image":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"optimized_auto_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"maximum_instances":{"type":"TypeInt","required":true},"minimum_instances":{"type":"TypeInt","required":true}}},"maxItems":1},"outbound_network_access_restricted":{"type":"TypeBool","optional":true,"default":false},"public_ip_type":{"type":"TypeString","optional":true,"default":"IPv4"},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"purge_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"streaming_ingestion_enabled":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trusted_external_tenants":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"type":"TypeString"}},"uri":{"type":"TypeString","computed":true},"virtual_network_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"data_management_public_ip_id":{"type":"TypeString","required":true,"forceNew":true},"engine_public_ip_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_cluster_customer_managed_key":{"schema":{"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"key_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","required":true},"key_version":{"type":"TypeString","optional":true},"user_identity":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_kusto_cluster_managed_private_endpoint":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_link_resource_id":{"type":"TypeString","required":true,"forceNew":true},"private_link_resource_region":{"type":"TypeString","optional":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_cluster_principal_assignment":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_name":{"type":"TypeString","computed":true},"principal_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true,"forceNew":true},"tenant_name":{"type":"TypeString","computed":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_kusto_cosmosdb_data_connection":{"schema":{"cosmosdb_container_id":{"type":"TypeString","required":true,"forceNew":true},"kusto_database_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_identity_id":{"type":"TypeString","required":true,"forceNew":true},"mapping_rule_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"retrieval_start_date":{"type":"TypeString","optional":true,"forceNew":true},"table_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_kusto_database":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"hot_cache_period":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"size":{"type":"TypeFloat","computed":true},"soft_delete_period":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_database_principal_assignment":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_name":{"type":"TypeString","computed":true},"principal_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true,"forceNew":true},"tenant_name":{"type":"TypeString","computed":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_kusto_eventgrid_data_connection":{"schema":{"blob_storage_event_type":{"type":"TypeString","optional":true,"default":"Microsoft.Storage.BlobCreated"},"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"data_format":{"type":"TypeString","optional":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"database_routing_type":{"type":"TypeString","optional":true,"default":"Single","forceNew":true},"eventgrid_resource_id":{"type":"TypeString","optional":true},"eventhub_consumer_group_name":{"type":"TypeString","required":true,"forceNew":true},"eventhub_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_identity_resource_id":{"type":"TypeString","optional":true},"mapping_rule_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"skip_first_record":{"type":"TypeBool","optional":true,"default":false},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_eventhub_data_connection":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"compression":{"type":"TypeString","optional":true,"default":"None","forceNew":true},"consumer_group":{"type":"TypeString","required":true,"forceNew":true},"data_format":{"type":"TypeString","optional":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"database_routing_type":{"type":"TypeString","optional":true,"default":"Single","forceNew":true},"event_system_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"eventhub_id":{"type":"TypeString","required":true,"forceNew":true},"identity_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mapping_rule_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"table_name":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_kusto_iothub_data_connection":{"schema":{"cluster_name":{"type":"TypeString","required":true,"forceNew":true},"consumer_group":{"type":"TypeString","required":true,"forceNew":true},"data_format":{"type":"TypeString","optional":true,"forceNew":true},"database_name":{"type":"TypeString","required":true,"forceNew":true},"database_routing_type":{"type":"TypeString","optional":true,"default":"Single","forceNew":true},"event_system_properties":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"iothub_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mapping_rule_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"shared_access_policy_name":{"type":"TypeString","required":true,"forceNew":true},"table_name":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_kusto_script":{"schema":{"continue_on_errors_enabled":{"type":"TypeBool","optional":true,"default":false},"database_id":{"type":"TypeString","required":true,"forceNew":true},"force_an_update_when_value_changed":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sas_token":{"type":"TypeString","optional":true,"forceNew":true},"script_content":{"type":"TypeString","optional":true,"forceNew":true},"url":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb":{"schema":{"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"frontend_ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"gateway_load_balancer_frontend_ip_configuration_id":{"type":"TypeString","optional":true,"computed":true},"id":{"type":"TypeString","computed":true},"inbound_nat_rules":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"load_balancer_rules":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"outbound_rules":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_allocation":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_version":{"type":"TypeString","optional":true,"computed":true},"public_ip_address_id":{"type":"TypeString","optional":true,"computed":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"computed":true},"subnet_id":{"type":"TypeString","optional":true,"computed":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"sku_tier":{"type":"TypeString","optional":true,"default":"Regional","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_backend_address_pool":{"schema":{"backend_ip_configurations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"inbound_nat_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancing_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"synchronous_mode":{"type":"TypeString","optional":true,"forceNew":true},"tunnel_interface":{"type":"TypeList","optional":true,"elem":{"schema":{"identifier":{"type":"TypeInt","required":true},"port":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"minItems":1},"virtual_network_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_backend_address_pool_address":{"schema":{"backend_address_ip_configuration_id":{"type":"TypeString","optional":true,"description":"For global load balancer, user needs to specify the `backend_address_ip_configuration_id` of the added regional load balancers"},"backend_address_pool_id":{"type":"TypeString","required":true,"forceNew":true},"inbound_nat_rule_port_mapping":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","computed":true},"frontend_port":{"type":"TypeInt","computed":true},"inbound_nat_rule_name":{"type":"TypeString","computed":true}}}},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_nat_pool":{"schema":{"backend_port":{"type":"TypeInt","required":true},"floating_ip_enabled":{"type":"TypeBool","optional":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","required":true},"frontend_port_end":{"type":"TypeInt","required":true},"frontend_port_start":{"type":"TypeInt","required":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protocol":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tcp_reset_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_nat_rule":{"schema":{"backend_address_pool_id":{"type":"TypeString","optional":true},"backend_ip_configuration_id":{"type":"TypeString","computed":true},"backend_port":{"type":"TypeInt","required":true},"enable_floating_ip":{"type":"TypeBool","optional":true,"computed":true},"enable_tcp_reset":{"type":"TypeBool","optional":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","required":true},"frontend_port":{"type":"TypeInt","optional":true},"frontend_port_end":{"type":"TypeInt","optional":true},"frontend_port_start":{"type":"TypeInt","optional":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protocol":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_outbound_rule":{"schema":{"allocated_outbound_ports":{"type":"TypeInt","optional":true,"default":1024},"backend_address_pool_id":{"type":"TypeString","required":true},"enable_tcp_reset":{"type":"TypeBool","optional":true,"default":false},"frontend_ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true}}},"minItems":1},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protocol":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_probe":{"schema":{"interval_in_seconds":{"type":"TypeInt","optional":true,"default":15},"load_balancer_rules":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"number_of_probes":{"type":"TypeInt","optional":true,"default":2},"port":{"type":"TypeInt","required":true},"probe_threshold":{"type":"TypeInt","optional":true,"default":1},"protocol":{"type":"TypeString","optional":true,"default":"Tcp"},"request_path":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lb_rule":{"schema":{"backend_address_pool_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2,"minItems":1},"backend_port":{"type":"TypeInt","required":true},"disable_outbound_snat":{"type":"TypeBool","optional":true,"default":false},"enable_floating_ip":{"type":"TypeBool","optional":true,"default":false},"enable_tcp_reset":{"type":"TypeBool","optional":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","required":true},"frontend_port":{"type":"TypeInt","required":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"load_distribution":{"type":"TypeString","optional":true,"default":"Default"},"loadbalancer_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"probe_id":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_lighthouse_assignment":{"schema":{"lighthouse_definition_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_lighthouse_definition":{"schema":{"authorization":{"type":"TypeSet","required":true,"elem":{"schema":{"delegated_role_definition_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_display_name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","required":true},"role_definition_id":{"type":"TypeString","required":true}}},"minItems":1},"description":{"type":"TypeString","optional":true},"eligible_authorization":{"type":"TypeSet","optional":true,"elem":{"schema":{"just_in_time_access_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"approver":{"type":"TypeSet","optional":true,"elem":{"schema":{"principal_display_name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","required":true}}}},"maximum_activation_duration":{"type":"TypeString","optional":true,"default":"PT8H"},"multi_factor_auth_provider":{"type":"TypeString","optional":true}}},"maxItems":1},"principal_display_name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","required":true},"role_definition_id":{"type":"TypeString","required":true}}}},"lighthouse_definition_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managing_tenant_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"product":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_linux_function_app":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.","elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"builtin_logging_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting"},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the function app use Client Certificates"},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Optional","description":"The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser` "},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"content_share_force_disabled":{"type":"TypeBool","optional":true,"default":false,"description":"Force disable the content share settings."},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans."},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Is the Linux Function App enabled."},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"functions_extension_version":{"type":"TypeString","optional":true,"default":"~4","description":"The runtime version associated with the Function App."},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false,"description":"Can the Function App only be accessed via HTTPS?"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Key Vault access.","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"description":"Specifies the name of the Function App.","forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_plan_id":{"type":"TypeString","required":true,"description":"The ID of the App Service Plan within which to create this Function App"},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"description":"If this Linux Web App is Always On enabled. Defaults to `false`.","computed":true},"api_definition_url":{"type":"TypeString","optional":true,"description":"The URL of the API definition that describes this Linux Function App."},"api_management_api_id":{"type":"TypeString","optional":true,"description":"The ID of the API Management API for this Linux Function App."},"app_command_line":{"type":"TypeString","optional":true,"description":"The program and any arguments used to launch this app via the command line. (Example `node myapp.js`)."},"app_scale_limit":{"type":"TypeInt","optional":true,"description":"The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.","computed":true},"app_service_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","optional":true,"default":35,"description":"The amount of disk space to use for logs. Valid values are between `25` and `100`."},"retention_period_days":{"type":"TypeInt","optional":true,"description":"The retention period for logs in days. Valid values are between `0` and `99999`. Defaults to `0` (never delete)."}}},"maxItems":1},"application_insights_connection_string":{"type":"TypeString","optional":true,"description":"The Connection String for linking the Linux Function App to Application Insights."},"application_insights_key":{"type":"TypeString","optional":true,"description":"The Instrumentation Key for connecting the Linux Function App to Application Insights."},"application_stack":{"type":"TypeList","optional":true,"elem":{"schema":{"docker":{"type":"TypeList","optional":true,"description":"A docker block","elem":{"schema":{"image_name":{"type":"TypeString","required":true,"description":"The name of the Docker image to use."},"image_tag":{"type":"TypeString","required":true,"description":"The image tag of the image to use."},"registry_password":{"type":"TypeString","optional":true,"description":"The password for the account to use to connect to the registry."},"registry_url":{"type":"TypeString","required":true,"description":"The URL of the docker registry."},"registry_username":{"type":"TypeString","optional":true,"description":"The username to use for connections to the registry."}}}},"dotnet_version":{"type":"TypeString","optional":true,"description":"The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`"},"java_version":{"type":"TypeString","optional":true,"description":"The version of Java to use. Possible values are `8`, `11`, and `17`"},"node_version":{"type":"TypeString","optional":true,"description":"The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20`"},"powershell_core_version":{"type":"TypeString","optional":true,"description":"The version of PowerShell Core to use. Possibles values are `7`, `7.2`, and `7.4`"},"python_version":{"type":"TypeString","optional":true,"description":"The version of Python to use. Possible values include `3.12`, `3.11`, `3.10`, `3.9`, `3.8`, and `3.7`."},"use_custom_runtime":{"type":"TypeBool","optional":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","optional":true,"default":false,"description":"Should the DotNet process use an isolated runtime. Defaults to `false`."}}},"maxItems":1},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true,"description":"The Client ID of the Managed Service Identity to use for connections to the Azure Container Registry."},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should connections for Azure Container Registry use Managed Identity."},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"description":"Specifies a list of Default Documents for the Linux Web App.","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","description":"Is detailed error logging enabled","computed":true},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"description":"The number of minimum instances for this Linux Function App. Only affects apps on Elastic Premium plans.","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled","description":"State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`."},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true,"description":"The path to be checked for this function app health."},"http2_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies if the http2 protocol should be enabled. Defaults to `false`."},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","description":"The Linux FX Version","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests","description":"The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted."},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated","description":"The Managed Pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`."},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"description":"The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Remote Debugging be enabled. Defaults to `false`."},"remote_debugging_version":{"type":"TypeString","optional":true,"description":"The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022``","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"description":"Should Functions Runtime Scale Monitoring be enabled."},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"scm_type":{"type":"TypeString","description":"The SCM Type in use by the Linux Function App.","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Linux Function App `ip_restriction` configuration be used for the SCM also."},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Linux Web App use a 32-bit worker."},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Web Sockets be enabled. Defaults to `false`."},"worker_count":{"type":"TypeInt","optional":true,"description":"The number of Workers for this Linux Function App.","computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"connection_string_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"storage_account_access_key":{"type":"TypeString","optional":true,"description":"The access key which will be used to access the storage account for the Function App."},"storage_account_name":{"type":"TypeString","optional":true,"description":"The backend storage account name which will be used by this Function App."},"storage_key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App."},"storage_uses_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App use its Managed Identity to access storage?"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"vnet_image_pull_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is container image pull over virtual network enabled? Defaults to `false`."},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Linux Function App. **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_linux_function_app_slot":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.","elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"builtin_logging_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting."},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App Slot use Client Certificates."},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Optional","description":"The mode of the Function App Slot's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`."},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"content_share_force_disabled":{"type":"TypeBool","optional":true,"default":false,"description":"Force disable the content share settings."},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans."},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Is the Linux Function App Slot enabled."},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"function_app_id":{"type":"TypeString","required":true,"description":"The ID of the Linux Function App this Slot is a member of.","forceNew":true},"functions_extension_version":{"type":"TypeString","optional":true,"default":"~4","description":"The runtime version associated with the Function App Slot."},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false,"description":"Can the Function App Slot only be accessed via HTTPS?"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Key Vault access.","computed":true},"kind":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"description":"Specifies the name of the Function App Slot.","forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_plan_id":{"type":"TypeString","optional":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"description":"If this Linux Web App is Always On enabled. Defaults to `false`.","computed":true},"api_definition_url":{"type":"TypeString","optional":true,"description":"The URL of the API definition that describes this Linux Function App."},"api_management_api_id":{"type":"TypeString","optional":true,"description":"The ID of the API Management API for this Linux Function App."},"app_command_line":{"type":"TypeString","optional":true,"description":"The program and any arguments used to launch this app via the command line. (Example `node myapp.js`)."},"app_scale_limit":{"type":"TypeInt","optional":true,"description":"The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.","computed":true},"app_service_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","optional":true,"default":35,"description":"The amount of disk space to use for logs. Valid values are between `25` and `100`."},"retention_period_days":{"type":"TypeInt","optional":true,"description":"The retention period for logs in days. Valid values are between `0` and `99999`. Defaults to `0` (never delete)."}}},"maxItems":1},"application_insights_connection_string":{"type":"TypeString","optional":true,"description":"The Connection String for linking the Linux Function App to Application Insights."},"application_insights_key":{"type":"TypeString","optional":true,"description":"The Instrumentation Key for connecting the Linux Function App to Application Insights."},"application_stack":{"type":"TypeList","optional":true,"elem":{"schema":{"docker":{"type":"TypeList","optional":true,"description":"A docker block","elem":{"schema":{"image_name":{"type":"TypeString","required":true,"description":"The name of the Docker image to use."},"image_tag":{"type":"TypeString","required":true,"description":"The image tag of the image to use."},"registry_password":{"type":"TypeString","optional":true,"description":"The password for the account to use to connect to the registry."},"registry_url":{"type":"TypeString","required":true,"description":"The URL of the docker registry."},"registry_username":{"type":"TypeString","optional":true,"description":"The username to use for connections to the registry."}}}},"dotnet_version":{"type":"TypeString","optional":true,"description":"The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`"},"java_version":{"type":"TypeString","optional":true,"description":"The version of Java to use. Possible values are `8`, `11`, and `17`"},"node_version":{"type":"TypeString","optional":true,"description":"The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20`"},"powershell_core_version":{"type":"TypeString","optional":true,"description":"The version of PowerShell Core to use. Possibles values are `7`, `7.2`, and `7.4`"},"python_version":{"type":"TypeString","optional":true,"description":"The version of Python to use. Possible values include `3.12`, `3.11`, `3.10`, `3.9`, `3.8`, and `3.7`."},"use_custom_runtime":{"type":"TypeBool","optional":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","optional":true,"default":false,"description":"Should the DotNet process use an isolated runtime. Defaults to `false`."}}},"maxItems":1},"auto_swap_slot_name":{"type":"TypeString","optional":true},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true,"description":"The Client ID of the Managed Service Identity to use for connections to the Azure Container Registry."},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should connections for Azure Container Registry use Managed Identity."},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"description":"Specifies a list of Default Documents for the Linux Web App.","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","description":"Is detailed error logging enabled","computed":true},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"description":"The number of minimum instances for this Linux Function App. Only affects apps on Elastic Premium plans.","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled","description":"State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`."},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Defaults to `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true,"description":"The path to be checked for this function app health."},"http2_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies if the http2 protocol should be enabled. Defaults to `false`."},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","description":"The Linux FX Version","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests","description":"The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted."},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated","description":"The Managed Pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`."},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"description":"The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Remote Debugging be enabled. Defaults to `false`."},"remote_debugging_version":{"type":"TypeString","optional":true,"description":"The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"description":"Should Functions Runtime Scale Monitoring be enabled."},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"scm_type":{"type":"TypeString","description":"The SCM Type in use by the Linux Function App.","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Linux Function App `ip_restriction` configuration be used for the SCM also."},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Linux Web App use a 32-bit worker."},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Web Sockets be enabled. Defaults to `false`."},"worker_count":{"type":"TypeInt","optional":true,"description":"The number of Workers for this Linux Function App.","computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"storage_account_access_key":{"type":"TypeString","optional":true,"description":"The access key which will be used to access the storage account for the Function App Slot."},"storage_account_name":{"type":"TypeString","optional":true,"description":"The backend storage account name which will be used by this Function App Slot."},"storage_key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App."},"storage_uses_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App Slot use its Managed Identity to access storage?"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"vnet_image_pull_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is container image pull over virtual network enabled? Defaults to `false`."},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_linux_virtual_machine":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"hibernation_enabled":{"type":"TypeBool","optional":true,"default":false},"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"admin_password":{"type":"TypeString","optional":true,"forceNew":true},"admin_ssh_key":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"public_key":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true,"forceNew":true}}}},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"allow_extension_operations":{"type":"TypeBool","optional":true,"default":true},"availability_set_id":{"type":"TypeString","optional":true,"forceNew":true},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"bypass_platform_safety_checks_on_user_schedule_enabled":{"type":"TypeBool","optional":true,"default":false},"capacity_reservation_group_id":{"type":"TypeString","optional":true},"computer_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true,"forceNew":true},"dedicated_host_group_id":{"type":"TypeString","optional":true},"dedicated_host_id":{"type":"TypeString","optional":true},"disable_password_authentication":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"disk_controller_type":{"type":"TypeString","optional":true,"computed":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"gallery_application":{"type":"TypeList","optional":true,"elem":{"schema":{"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":false},"configuration_blob_uri":{"type":"TypeString","optional":true},"order":{"type":"TypeInt","optional":true,"default":0},"tag":{"type":"TypeString","optional":true},"treat_failure_as_deployment_failure_enabled":{"type":"TypeBool","optional":true,"default":false},"version_id":{"type":"TypeString","required":true}}},"maxItems":100},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_encryption_type":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"os_image_notification":{"type":"TypeList","optional":true,"elem":{"schema":{"timeout":{"type":"TypeString","optional":true,"default":"PT15M"}}},"maxItems":1},"patch_assessment_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"patch_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain":{"type":"TypeInt","optional":true,"default":-1,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true},"public_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"reboot_setting":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"secure_boot_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"size":{"type":"TypeString","required":true},"source_image_id":{"type":"TypeString","optional":true,"forceNew":true},"source_image_reference":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"user_data":{"type":"TypeString","optional":true},"virtual_machine_id":{"type":"TypeString","computed":true},"virtual_machine_scale_set_id":{"type":"TypeString","optional":true},"vm_agent_platform_updates_enabled":{"type":"TypeBool","optional":true,"default":false},"vtpm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":45,"read":5,"delete":45,"update":45}},"azurerm_linux_virtual_machine_scale_set":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"admin_password":{"type":"TypeString","optional":true,"forceNew":true},"admin_ssh_key":{"type":"TypeSet","optional":true,"elem":{"schema":{"public_key":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}}},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"automatic_instance_repair":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","required":true},"grace_period":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"automatic_os_upgrade_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"disable_automatic_rollback":{"type":"TypeBool","required":true},"enable_automatic_os_upgrade":{"type":"TypeBool","required":true}}},"maxItems":1},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"computer_name_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true},"data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"create_option":{"type":"TypeString","optional":true,"default":"Empty"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","required":true},"lun":{"type":"TypeInt","required":true},"name":{"type":"TypeString","optional":true},"storage_account_type":{"type":"TypeString","required":true},"ultra_ssd_disk_iops_read_write":{"type":"TypeInt","optional":true,"computed":true},"ultra_ssd_disk_mbps_read_write":{"type":"TypeInt","optional":true,"computed":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"disable_password_authentication":{"type":"TypeBool","optional":true,"default":true},"do_not_run_extensions_on_overprovisioned_machines":{"type":"TypeBool","optional":true,"default":false},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extension":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true,"default":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":false},"force_update_tag":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"provision_after_extensions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true}}}},"extension_operations_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"gallery_application":{"type":"TypeList","optional":true,"elem":{"schema":{"configuration_blob_uri":{"type":"TypeString","optional":true,"forceNew":true},"order":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"tag":{"type":"TypeString","optional":true,"forceNew":true},"version_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":100},"health_probe_id":{"type":"TypeString","optional":true},"host_group_id":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"instances":{"type":"TypeInt","optional":true,"default":0},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","required":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enable_accelerated_networking":{"type":"TypeBool","optional":true,"default":false},"enable_ip_forwarding":{"type":"TypeBool","optional":true,"default":false},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":20},"load_balancer_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true,"default":false},"public_ip_address":{"type":"TypeList","optional":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","optional":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"ip_tag":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true}}}},"subnet_id":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true,"default":"IPv4"}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","optional":true},"primary":{"type":"TypeBool","optional":true,"default":false}}}},"os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_encryption_type":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"overprovision":{"type":"TypeBool","optional":true,"default":true},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain_count":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rolling_upgrade_policy":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cross_zone_upgrades_enabled":{"type":"TypeBool","optional":true},"max_batch_instance_percent":{"type":"TypeInt","required":true},"max_unhealthy_instance_percent":{"type":"TypeInt","required":true},"max_unhealthy_upgraded_instance_percent":{"type":"TypeInt","required":true},"maximum_surge_instances_enabled":{"type":"TypeBool","optional":true},"pause_time_between_batches":{"type":"TypeString","required":true},"prioritize_unhealthy_instances_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"scale_in":{"type":"TypeList","optional":true,"elem":{"schema":{"force_deletion_enabled":{"type":"TypeBool","optional":true,"default":false},"rule":{"type":"TypeString","optional":true,"default":"Default"}}},"maxItems":1},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"secure_boot_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"single_placement_group":{"type":"TypeBool","optional":true,"default":true},"sku":{"type":"TypeString","required":true},"source_image_id":{"type":"TypeString","optional":true},"source_image_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"spot_restore":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"timeout":{"type":"TypeString","optional":true,"default":"PT1H","forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"unique_id":{"type":"TypeString","computed":true},"upgrade_mode":{"type":"TypeString","optional":true,"default":"Manual","forceNew":true},"user_data":{"type":"TypeString","optional":true},"vtpm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"zone_balance":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_linux_web_app":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Required"},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","required":true}}},"maxItems":1},"detailed_error_messages":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_plan_id":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":true},"api_definition_url":{"type":"TypeString","optional":true},"api_management_api_id":{"type":"TypeString","optional":true},"app_command_line":{"type":"TypeString","optional":true},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"docker_image_name":{"type":"TypeString","optional":true},"docker_registry_password":{"type":"TypeString","optional":true},"docker_registry_url":{"type":"TypeString","optional":true},"docker_registry_username":{"type":"TypeString","optional":true},"dotnet_version":{"type":"TypeString","optional":true},"go_version":{"type":"TypeString","optional":true},"java_server":{"type":"TypeString","optional":true},"java_server_version":{"type":"TypeString","optional":true},"java_version":{"type":"TypeString","optional":true},"node_version":{"type":"TypeString","optional":true},"php_version":{"type":"TypeString","optional":true},"python_version":{"type":"TypeString","optional":true},"ruby_version":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_heal_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"minimum_process_execution_time":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"requests":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"time_taken":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request_with_path":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"time_taken":{"type":"TypeString","required":true}}}},"status_code":{"type":"TypeSet","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"status_code_range":{"type":"TypeString","required":true},"sub_status":{"type":"TypeInt","optional":true},"win32_status_code":{"type":"TypeInt","optional":true}}}}}},"maxItems":1}}},"maxItems":1},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled"},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests"},"local_mysql_enabled":{"type":"TypeBool","optional":true,"default":false},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false},"worker_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"connection_string_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Linux Web App. **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_linux_web_app_slot":{"schema":{"app_metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"app_service_id":{"type":"TypeString","required":true},"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Required"},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","required":true}}},"maxItems":1},"detailed_error_messages":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_plan_id":{"type":"TypeString","optional":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":true},"api_definition_url":{"type":"TypeString","optional":true},"api_management_api_id":{"type":"TypeString","optional":true},"app_command_line":{"type":"TypeString","optional":true},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"docker_image_name":{"type":"TypeString","optional":true},"docker_registry_password":{"type":"TypeString","optional":true},"docker_registry_url":{"type":"TypeString","optional":true},"docker_registry_username":{"type":"TypeString","optional":true},"dotnet_version":{"type":"TypeString","optional":true},"go_version":{"type":"TypeString","optional":true},"java_server":{"type":"TypeString","optional":true},"java_server_version":{"type":"TypeString","optional":true},"java_version":{"type":"TypeString","optional":true},"node_version":{"type":"TypeString","optional":true},"php_version":{"type":"TypeString","optional":true},"python_version":{"type":"TypeString","optional":true},"ruby_version":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_heal_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"minimum_process_execution_time":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"requests":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"time_taken":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request_with_path":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"time_taken":{"type":"TypeString","required":true}}}},"status_code":{"type":"TypeSet","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"status_code_range":{"type":"TypeString","required":true},"sub_status":{"type":"TypeInt","optional":true},"win32_status_code":{"type":"TypeInt","optional":true}}}}}},"maxItems":1}}},"maxItems":1},"auto_swap_slot_name":{"type":"TypeString","optional":true},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled"},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests"},"local_mysql_enabled":{"type":"TypeBool","optional":true,"default":false},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false},"worker_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Windows Web App. **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_load_test":{"schema":{"data_plane_uri":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"encryption":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"identity_id":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"key_url":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_local_network_gateway":{"schema":{"address_space":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"bgp_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"asn":{"type":"TypeInt","required":true},"bgp_peering_address":{"type":"TypeString","required":true},"peer_weight":{"type":"TypeInt","optional":true}}},"maxItems":1},"gateway_address":{"type":"TypeString","optional":true},"gateway_fqdn":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_cluster":{"schema":{"cluster_id":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"size_gb":{"type":"TypeInt","optional":true,"default":100},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":360,"read":5,"delete":30,"update":360}},"azurerm_log_analytics_cluster_customer_managed_key":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"log_analytics_cluster_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":360,"read":5,"delete":30,"update":360}},"azurerm_log_analytics_data_export_rule":{"schema":{"destination_resource_id":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":false},"export_rule_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"table_names":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"workspace_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_datasource_windows_event":{"schema":{"event_log_name":{"type":"TypeString","required":true},"event_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"workspace_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_datasource_windows_performance_counter":{"schema":{"counter_name":{"type":"TypeString","required":true},"instance_name":{"type":"TypeString","required":true},"interval_seconds":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"object_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"workspace_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_linked_service":{"schema":{"name":{"type":"TypeString","computed":true},"read_access_id":{"type":"TypeString","optional":true,"computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"workspace_id":{"type":"TypeString","required":true},"write_access_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_linked_storage_account":{"schema":{"data_source_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"workspace_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_query_pack":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_query_pack_query":{"schema":{"additional_settings_json":{"type":"TypeString","optional":true},"body":{"type":"TypeString","required":true},"categories":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"query_pack_id":{"type":"TypeString","required":true,"forceNew":true},"resource_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"solutions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_saved_search":{"schema":{"category":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true,"forceNew":true},"function_alias":{"type":"TypeString","optional":true,"forceNew":true},"function_parameters":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_log_analytics_solution":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"product":{"type":"TypeString","required":true,"forceNew":true},"promotion_code":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"solution_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_name":{"type":"TypeString","required":true,"forceNew":true},"workspace_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_storage_insights":{"schema":{"blob_container_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true},"storage_account_key":{"type":"TypeString","required":true},"table_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_workspace":{"schema":{"allow_resource_only_permissions":{"type":"TypeBool","optional":true,"default":true},"cmk_for_query_forced":{"type":"TypeBool","optional":true},"daily_quota_gb":{"type":"TypeFloat","optional":true,"default":-1},"data_collection_rule_id":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"immediate_data_purge_on_30_days_enabled":{"type":"TypeBool","optional":true},"internet_ingestion_enabled":{"type":"TypeBool","optional":true,"default":true},"internet_query_enabled":{"type":"TypeBool","optional":true,"default":true},"local_authentication_disabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_shared_key":{"type":"TypeString","computed":true},"reservation_capacity_in_gb_per_day":{"type":"TypeInt","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_in_days":{"type":"TypeInt","optional":true,"computed":true},"secondary_shared_key":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_log_analytics_workspace_table":{"schema":{"name":{"type":"TypeString","required":true},"plan":{"type":"TypeString","optional":true,"default":"Analytics"},"retention_in_days":{"type":"TypeInt","optional":true},"total_retention_in_days":{"type":"TypeInt","optional":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":5,"read":5,"delete":30,"update":5}},"azurerm_logic_app_action_custom":{"schema":{"body":{"type":"TypeString","required":true},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_action_http":{"schema":{"body":{"type":"TypeString","optional":true},"headers":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"method":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"queries":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"run_after":{"type":"TypeSet","optional":true,"elem":{"schema":{"action_name":{"type":"TypeString","required":true},"action_result":{"type":"TypeString","required":true}}},"minItems":1},"uri":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account":{"schema":{"integration_service_environment_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_agreement":{"schema":{"agreement_type":{"type":"TypeString","required":true},"content":{"type":"TypeString","required":true},"guest_identity":{"type":"TypeList","required":true,"elem":{"schema":{"qualifier":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"guest_partner_name":{"type":"TypeString","required":true},"host_identity":{"type":"TypeList","required":true,"elem":{"schema":{"qualifier":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}},"maxItems":1},"host_partner_name":{"type":"TypeString","required":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_assembly":{"schema":{"assembly_name":{"type":"TypeString","required":true},"assembly_version":{"type":"TypeString","optional":true,"default":"0.0.0.0"},"content":{"type":"TypeString","optional":true},"content_link_uri":{"type":"TypeString","optional":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_batch_configuration":{"schema":{"batch_group_name":{"type":"TypeString","required":true,"forceNew":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"release_criteria":{"type":"TypeList","required":true,"elem":{"schema":{"batch_size":{"type":"TypeInt","optional":true},"message_count":{"type":"TypeInt","optional":true},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"end_time":{"type":"TypeString","optional":true},"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","required":true},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"hours":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"minutes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"month_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"monthly":{"type":"TypeSet","optional":true,"elem":{"schema":{"week":{"type":"TypeInt","required":true},"weekday":{"type":"TypeString","required":true}}}},"week_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"start_time":{"type":"TypeString","optional":true},"time_zone":{"type":"TypeString","optional":true}}},"maxItems":1}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_certificate":{"schema":{"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"key_vault_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","required":true},"key_version":{"type":"TypeString","optional":true}}},"maxItems":1},"metadata":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_certificate":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_map":{"schema":{"content":{"type":"TypeString","required":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"map_type":{"type":"TypeString","required":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_partner":{"schema":{"business_identity":{"type":"TypeSet","required":true,"elem":{"schema":{"qualifier":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_schema":{"schema":{"content":{"type":"TypeString","required":true},"file_name":{"type":"TypeString","optional":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_integration_account_session":{"schema":{"content":{"type":"TypeString","required":true},"integration_account_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_standard":{"schema":{"app_service_plan_id":{"type":"TypeString","required":true},"app_settings":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"bundle_version":{"type":"TypeString","optional":true,"default":"[1.*, 2.0.0)"},"client_affinity_enabled":{"type":"TypeBool","optional":true,"computed":true},"client_certificate_mode":{"type":"TypeString","optional":true},"connection_string":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":false},"app_scale_limit":{"type":"TypeInt","optional":true,"computed":true},"auto_swap_slot_name":{"type":"TypeString","computed":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"computed":true},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"default":false},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_min_tls_version":{"type":"TypeString","optional":true,"computed":true},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"storage_account_access_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_share_name":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"use_extension_bundle":{"type":"TypeBool","optional":true,"default":true},"version":{"type":"TypeString","optional":true,"default":"~4"},"virtual_network_subnet_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_trigger_custom":{"schema":{"body":{"type":"TypeString","required":true},"callback_url":{"type":"TypeString","computed":true},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_trigger_http_request":{"schema":{"callback_url":{"type":"TypeString","computed":true},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"method":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"relative_path":{"type":"TypeString","optional":true},"schema":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_trigger_recurrence":{"schema":{"frequency":{"type":"TypeString","required":true},"interval":{"type":"TypeInt","required":true},"logic_app_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"at_these_hours":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"at_these_minutes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeInt"}},"on_these_days":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"start_time":{"type":"TypeString","optional":true},"time_zone":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_logic_app_workflow":{"schema":{"access_control":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_caller_ip_address_range":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"content":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_caller_ip_address_range":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_caller_ip_address_range":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"open_authentication_policy":{"type":"TypeSet","optional":true,"elem":{"schema":{"claim":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"workflow_management":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_caller_ip_address_range":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"access_endpoint":{"type":"TypeString","computed":true},"connector_endpoint_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connector_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"integration_service_environment_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logic_app_integration_account_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workflow_endpoint_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"workflow_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"workflow_parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workflow_schema":{"type":"TypeString","optional":true,"default":"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#","forceNew":true},"workflow_version":{"type":"TypeString","optional":true,"default":"1.0.0.0","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_compute_cluster":{"schema":{"description":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"machine_learning_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_public_ip_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"scale_settings":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"max_node_count":{"type":"TypeInt","required":true,"forceNew":true},"min_node_count":{"type":"TypeInt","required":true,"forceNew":true},"scale_down_nodes_after_idle_duration":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ssh":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"admin_password":{"type":"TypeString","optional":true,"forceNew":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"key_value":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"ssh_public_access_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"subnet_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"vm_priority":{"type":"TypeString","required":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_compute_instance":{"schema":{"assign_to_user":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"object_id":{"type":"TypeString","optional":true},"tenant_id":{"type":"TypeString","optional":true}}},"maxItems":1},"authorization_type":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"machine_learning_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_public_ip_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"ssh":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"port":{"type":"TypeInt","computed":true},"public_key":{"type":"TypeString","required":true},"username":{"type":"TypeString","computed":true}}},"maxItems":1},"subnet_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_machine_learning_datastore_blobstorage":{"schema":{"account_key":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"is_default":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"service_data_auth_identity":{"type":"TypeString","optional":true,"default":"None"},"shared_access_signature":{"type":"TypeString","optional":true},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_datastore_datalake_gen2":{"schema":{"authority_url":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"is_default":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"service_data_identity":{"type":"TypeString","optional":true,"default":"None"},"storage_container_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","optional":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_datastore_fileshare":{"schema":{"account_key":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"is_default":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"service_data_identity":{"type":"TypeString","optional":true,"default":"None"},"shared_access_signature":{"type":"TypeString","optional":true},"storage_fileshare_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_inference_cluster":{"schema":{"cluster_purpose":{"type":"TypeString","optional":true,"default":"FastProd","forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"kubernetes_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"machine_learning_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"ssl":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cert":{"type":"TypeString","optional":true,"default":"","forceNew":true},"cname":{"type":"TypeString","optional":true,"default":"","forceNew":true},"key":{"type":"TypeString","optional":true,"default":"","forceNew":true},"leaf_domain_label":{"type":"TypeString","optional":true,"default":"","forceNew":true},"overwrite_existing_domain":{"type":"TypeBool","optional":true,"default":"","forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_machine_learning_synapse_spark":{"schema":{"description":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"machine_learning_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"synapse_spark_pool_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_machine_learning_workspace":{"schema":{"application_insights_id":{"type":"TypeString","required":true,"forceNew":true},"container_registry_id":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"discovery_url":{"type":"TypeString","computed":true},"encryption":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"key_id":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"feature_store":{"type":"TypeList","optional":true,"elem":{"schema":{"computer_spark_runtime_version":{"type":"TypeString","optional":true},"offline_connection_name":{"type":"TypeString","optional":true},"online_connection_name":{"type":"TypeString","optional":true}}},"maxItems":1},"friendly_name":{"type":"TypeString","optional":true},"high_business_impact":{"type":"TypeBool","optional":true,"forceNew":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"image_build_compute_name":{"type":"TypeString","optional":true},"key_vault_id":{"type":"TypeString","required":true,"forceNew":true},"kind":{"type":"TypeString","optional":true,"default":"Default"},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_network":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"isolation_mode":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_user_assigned_identity":{"type":"TypeString","optional":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serverless_compute":{"type":"TypeList","optional":true,"elem":{"schema":{"public_ip_enabled":{"type":"TypeBool","optional":true,"default":false},"subnet_id":{"type":"TypeString","optional":true}}},"maxItems":1},"sku_name":{"type":"TypeString","optional":true,"default":"Basic"},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"v1_legacy_mode_enabled":{"type":"TypeBool","optional":true,"default":false},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_machine_learning_workspace_network_outbound_rule_fqdn":{"schema":{"destination_fqdn":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_maintenance_assignment_dedicated_host":{"schema":{"dedicated_host_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_maintenance_assignment_dynamic_scope":{"schema":{"filter":{"type":"TypeList","required":true,"elem":{"schema":{"locations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"os_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"tag_filter":{"type":"TypeString","optional":true,"default":"Any"},"tags":{"type":"TypeList","optional":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}}}},"maxItems":1},"maintenance_configuration_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":30}},"azurerm_maintenance_assignment_virtual_machine":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_maintenance_assignment_virtual_machine_scale_set":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_scale_set_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_maintenance_configuration":{"schema":{"in_guest_user_patch_mode":{"type":"TypeString","optional":true},"install_patches":{"type":"TypeList","optional":true,"elem":{"schema":{"linux":{"type":"TypeList","optional":true,"elem":{"schema":{"classifications_to_include":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"package_names_mask_to_exclude":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"package_names_mask_to_include":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1},"reboot":{"type":"TypeString","optional":true},"windows":{"type":"TypeList","optional":true,"elem":{"schema":{"classifications_to_include":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kb_numbers_to_exclude":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kb_numbers_to_include":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1}}},"maxItems":1,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"visibility":{"type":"TypeString","optional":true,"default":"Custom"},"window":{"type":"TypeList","optional":true,"elem":{"schema":{"duration":{"type":"TypeString","optional":true},"expiration_date_time":{"type":"TypeString","optional":true},"recur_every":{"type":"TypeString","optional":true},"start_date_time":{"type":"TypeString","required":true},"time_zone":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_managed_application":{"schema":{"application_definition_id":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outputs":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"parameter_values":{"type":"TypeString","optional":true,"computed":true},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"promotion_code":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_managed_application_definition":{"schema":{"authorization":{"type":"TypeSet","optional":true,"elem":{"schema":{"role_definition_id":{"type":"TypeString","required":true},"service_principal_id":{"type":"TypeString","required":true}}},"minItems":1},"create_ui_definition":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"lock_level":{"type":"TypeString","required":true,"forceNew":true},"main_template":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"package_enabled":{"type":"TypeBool","optional":true,"default":true},"package_file_uri":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_managed_disk":{"schema":{"create_option":{"type":"TypeString","required":true,"forceNew":true},"disk_access_id":{"type":"TypeString","optional":true},"disk_encryption_set_id":{"type":"TypeString","optional":true},"disk_iops_read_only":{"type":"TypeInt","optional":true,"computed":true},"disk_iops_read_write":{"type":"TypeInt","optional":true,"computed":true},"disk_mbps_read_only":{"type":"TypeInt","optional":true,"computed":true},"disk_mbps_read_write":{"type":"TypeInt","optional":true,"computed":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"encryption_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","required":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"key_encryption_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"gallery_image_reference_id":{"type":"TypeString","optional":true,"forceNew":true},"hyper_v_generation":{"type":"TypeString","optional":true,"forceNew":true},"image_reference_id":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logical_sector_size":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"max_shares":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_access_policy":{"type":"TypeString","optional":true},"on_demand_bursting_enabled":{"type":"TypeBool","optional":true},"optimized_frequent_attach_enabled":{"type":"TypeBool","optional":true,"default":false},"os_type":{"type":"TypeString","optional":true},"performance_plus_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_type":{"type":"TypeString","optional":true,"forceNew":true},"source_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"source_uri":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","optional":true,"computed":true},"trusted_launch_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"upload_size_bytes":{"type":"TypeInt","optional":true,"forceNew":true},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_managed_disk_sas_token":{"schema":{"access_level":{"type":"TypeString","required":true,"forceNew":true},"duration_in_seconds":{"type":"TypeInt","required":true,"forceNew":true},"managed_disk_id":{"type":"TypeString","required":true,"forceNew":true},"sas_url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_managed_lustre_file_system":{"schema":{"encryption_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"hsm_setting":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"container_id":{"type":"TypeString","required":true,"forceNew":true},"import_prefix":{"type":"TypeString","optional":true,"forceNew":true},"logging_container_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","required":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"time_of_day_in_utc":{"type":"TypeString","required":true}}},"maxItems":1},"mgs_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"storage_capacity_in_tb":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group":{"schema":{"display_name":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"parent_management_group_id":{"type":"TypeString","optional":true,"computed":true},"subscription_ids":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"tenant_scoped_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group_policy_assignment":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enforce":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","optional":true,"forceNew":true},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true}}}},"not_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","computed":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"value":{"type":"TypeString","required":true}}}},"parameters":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true,"forceNew":true},"resource_selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","required":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group_policy_exemption":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"exemption_category":{"type":"TypeString","required":true},"expires_on":{"type":"TypeString","optional":true},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group_policy_remediation":{"schema":{"failure_percentage":{"type":"TypeFloat","optional":true},"location_filters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parallel_deployments":{"type":"TypeInt","optional":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true},"resource_count":{"type":"TypeInt","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_management_group_subscription_association":{"schema":{"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5}},"azurerm_management_group_template_deployment":{"schema":{"debug_level":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_content":{"type":"TypeString","computed":true},"parameters_content":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_content":{"type":"TypeString","optional":true,"computed":true},"template_spec_version_id":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_management_lock":{"schema":{"lock_level":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_maps_account":{"schema":{"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"data_store":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_id":{"type":"TypeString","optional":true},"unique_name":{"type":"TypeString","required":true}}}},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"x_ms_client_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_maps_creator":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"maps_account_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_units":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_marketplace_agreement":{"schema":{"license_text_link":{"type":"TypeString","computed":true},"offer":{"type":"TypeString","required":true,"forceNew":true},"plan":{"type":"TypeString","required":true,"forceNew":true},"privacy_policy_link":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_marketplace_role_assignment":{"schema":{"condition":{"type":"TypeString","optional":true,"forceNew":true},"condition_version":{"type":"TypeString","optional":true,"forceNew":true},"delegated_managed_identity_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_type":{"type":"TypeString","computed":true},"role_definition_id":{"type":"TypeString","optional":true,"forceNew":true},"role_definition_name":{"type":"TypeString","optional":true,"forceNew":true},"skip_service_principal_aad_check":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_mobile_network":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_country_code":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_code":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_attached_data_network":{"schema":{"dns_addresses":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_data_network_name":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_packet_core_data_plane_id":{"type":"TypeString","required":true,"forceNew":true},"network_address_port_translation":{"type":"TypeList","optional":true,"elem":{"schema":{"icmp_pinhole_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":180},"pinhole_maximum_number":{"type":"TypeInt","optional":true,"default":65536},"port_range":{"type":"TypeList","optional":true,"elem":{"schema":{"maximum":{"type":"TypeInt","optional":true,"default":49999},"minimum":{"type":"TypeInt","optional":true,"default":1024}}},"maxItems":1},"tcp_pinhole_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":180},"tcp_port_reuse_minimum_hold_time_in_seconds":{"type":"TypeInt","optional":true,"default":120},"udp_pinhole_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":180},"udp_port_reuse_minimum_hold_time_in_seconds":{"type":"TypeInt","optional":true,"default":60}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_equipment_address_pool_prefixes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"user_equipment_static_address_pool_prefixes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"user_plane_access_ipv4_address":{"type":"TypeString","optional":true},"user_plane_access_ipv4_gateway":{"type":"TypeString","optional":true},"user_plane_access_ipv4_subnet":{"type":"TypeString","optional":true},"user_plane_access_name":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_data_network":{"schema":{"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":30}},"azurerm_mobile_network_packet_core_control_plane":{"schema":{"control_plane_access_ipv4_address":{"type":"TypeString","optional":true},"control_plane_access_ipv4_gateway":{"type":"TypeString","optional":true},"control_plane_access_ipv4_subnet":{"type":"TypeString","optional":true},"control_plane_access_name":{"type":"TypeString","optional":true},"core_network_technology":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"interoperability_settings_json":{"type":"TypeString","optional":true},"local_diagnostics_access":{"type":"TypeList","required":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","required":true},"https_server_certificate_url":{"type":"TypeString","optional":true}}},"maxItems":1,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"platform":{"type":"TypeList","optional":true,"elem":{"schema":{"arc_kubernetes_cluster_id":{"type":"TypeString","optional":true},"custom_location_id":{"type":"TypeString","optional":true},"edge_device_id":{"type":"TypeString","optional":true},"stack_hci_cluster_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"sku":{"type":"TypeString","required":true},"software_version":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_equipment_mtu_in_bytes":{"type":"TypeInt","optional":true,"default":1440}},"timeouts":{"create":180,"read":5,"delete":180,"update":30}},"azurerm_mobile_network_packet_core_data_plane":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_packet_core_control_plane_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_plane_access_ipv4_address":{"type":"TypeString","optional":true},"user_plane_access_ipv4_gateway":{"type":"TypeString","optional":true},"user_plane_access_ipv4_subnet":{"type":"TypeString","optional":true},"user_plane_access_name":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_service":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"pcc_rule":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"precedence":{"type":"TypeInt","required":true},"qos_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"allocation_and_retention_priority_level":{"type":"TypeInt","optional":true},"guaranteed_bit_rate":{"type":"TypeList","optional":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1},"maximum_bit_rate":{"type":"TypeList","required":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1},"preemption_capability":{"type":"TypeString","optional":true,"default":"NotPreempt"},"preemption_vulnerability":{"type":"TypeString","optional":true,"default":"Preemptable"},"qos_indicator":{"type":"TypeInt","required":true}}},"maxItems":1},"service_data_flow_template":{"type":"TypeList","required":true,"elem":{"schema":{"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"ports":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"protocol":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"remote_ip_list":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"traffic_control_enabled":{"type":"TypeBool","optional":true,"default":true}}}},"service_precedence":{"type":"TypeInt","required":true},"service_qos_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"allocation_and_retention_priority_level":{"type":"TypeInt","optional":true,"default":9},"maximum_bit_rate":{"type":"TypeList","required":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1},"preemption_capability":{"type":"TypeString","optional":true},"preemption_vulnerability":{"type":"TypeString","optional":true},"qos_indicator":{"type":"TypeInt","optional":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_sim":{"schema":{"authentication_key":{"type":"TypeString","required":true},"device_type":{"type":"TypeString","optional":true},"integrated_circuit_card_identifier":{"type":"TypeString","required":true,"forceNew":true},"international_mobile_subscriber_identity":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_sim_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"operator_key_code":{"type":"TypeString","required":true},"sim_policy_id":{"type":"TypeString","optional":true},"sim_state":{"type":"TypeString","computed":true},"static_ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"attached_data_network_id":{"type":"TypeString","required":true},"slice_id":{"type":"TypeString","required":true},"static_ipv4_address":{"type":"TypeString","optional":true}}},"minItems":1},"vendor_key_fingerprint":{"type":"TypeString","computed":true},"vendor_name":{"type":"TypeString","computed":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_mobile_network_sim_group":{"schema":{"encryption_key_url":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_sim_policy":{"schema":{"default_slice_id":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"rat_frequency_selection_priority_index":{"type":"TypeInt","optional":true},"registration_timer_in_seconds":{"type":"TypeInt","optional":true,"default":3240},"slice":{"type":"TypeList","required":true,"elem":{"schema":{"data_network":{"type":"TypeList","required":true,"elem":{"schema":{"additional_allowed_session_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"allocation_and_retention_priority_level":{"type":"TypeInt","optional":true,"default":0},"allowed_services_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"data_network_id":{"type":"TypeString","required":true},"default_session_type":{"type":"TypeString","optional":true,"default":"IPv4"},"max_buffered_packets":{"type":"TypeInt","optional":true,"default":10},"preemption_capability":{"type":"TypeString","optional":true,"default":"NotPreempt"},"preemption_vulnerability":{"type":"TypeString","optional":true,"default":"NotPreemptable"},"qos_indicator":{"type":"TypeInt","required":true},"session_aggregate_maximum_bit_rate":{"type":"TypeList","required":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1}}}},"default_data_network_id":{"type":"TypeString","required":true},"slice_id":{"type":"TypeString","required":true}}},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"user_equipment_aggregate_maximum_bit_rate":{"type":"TypeList","required":true,"elem":{"schema":{"downlink":{"type":"TypeString","required":true},"uplink":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":180,"read":5,"delete":180,"update":60}},"azurerm_mobile_network_site":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_function_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mobile_network_slice":{"schema":{"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mobile_network_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"single_network_slice_selection_assistance_information":{"type":"TypeList","required":true,"elem":{"schema":{"slice_differentiator":{"type":"TypeString","optional":true},"slice_service_type":{"type":"TypeInt","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_mongo_cluster":{"schema":{"administrator_password":{"type":"TypeString","optional":true},"administrator_username":{"type":"TypeString","optional":true,"forceNew":true},"compute_tier":{"type":"TypeString","optional":true},"create_mode":{"type":"TypeString","optional":true,"default":"Default","forceNew":true},"high_availability_mode":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"preview_features":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"public_network_access":{"type":"TypeString","optional":true,"default":"Enabled"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"shard_count":{"type":"TypeInt","optional":true,"forceNew":true},"source_location":{"type":"TypeString","optional":true,"forceNew":true},"source_server_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_size_in_gb":{"type":"TypeInt","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_aad_diagnostic_setting":{"schema":{"enabled_log":{"type":"TypeSet","optional":true,"elem":{"schema":{"category":{"type":"TypeString","required":true},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true,"default":0},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}}}},"eventhub_authorization_rule_id":{"type":"TypeString","optional":true,"forceNew":true},"eventhub_name":{"type":"TypeString","optional":true,"forceNew":true},"log_analytics_workspace_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_monitor_action_group":{"schema":{"arm_role_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"role_id":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"automation_runbook_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"automation_account_id":{"type":"TypeString","required":true},"is_global_runbook":{"type":"TypeBool","required":true},"name":{"type":"TypeString","required":true},"runbook_name":{"type":"TypeString","required":true},"service_uri":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true,"default":false},"webhook_resource_id":{"type":"TypeString","required":true}}}},"azure_app_push_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"email_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"azure_function_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"function_app_resource_id":{"type":"TypeString","required":true},"function_name":{"type":"TypeString","required":true},"http_trigger_url":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"email_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"email_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"enabled":{"type":"TypeBool","optional":true,"default":true},"event_hub_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_name":{"type":"TypeString","required":true},"event_hub_namespace":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"itsm_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"region":{"type":"TypeString","required":true},"ticket_configuration":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","optional":true,"default":"global","forceNew":true},"logic_app_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"callback_url":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"resource_id":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"short_name":{"type":"TypeString","required":true},"sms_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"country_code":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"phone_number":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"voice_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"country_code":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"phone_number":{"type":"TypeString","required":true}}}},"webhook_receiver":{"type":"TypeList","optional":true,"elem":{"schema":{"aad_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"identifier_uri":{"type":"TypeString","optional":true,"computed":true},"object_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"service_uri":{"type":"TypeString","required":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_activity_log_alert":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_group_id":{"type":"TypeString","required":true},"webhook_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"criteria":{"type":"TypeList","required":true,"elem":{"schema":{"caller":{"type":"TypeString","optional":true},"category":{"type":"TypeString","required":true},"level":{"type":"TypeString","optional":true},"levels":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"operation_name":{"type":"TypeString","optional":true},"recommendation_category":{"type":"TypeString","optional":true},"recommendation_impact":{"type":"TypeString","optional":true},"recommendation_type":{"type":"TypeString","optional":true},"resource_group":{"type":"TypeString","optional":true},"resource_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_health":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"current":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"previous":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"reason":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"resource_id":{"type":"TypeString","optional":true},"resource_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_provider":{"type":"TypeString","optional":true},"resource_providers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_type":{"type":"TypeString","optional":true},"resource_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"service_health":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"events":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"locations":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"services":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"status":{"type":"TypeString","optional":true},"statuses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"sub_status":{"type":"TypeString","optional":true},"sub_statuses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_alert_processing_rule_action_group":{"schema":{"add_action_group_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"condition":{"type":"TypeList","optional":true,"elem":{"schema":{"alert_context":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"alert_rule_id":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"alert_rule_name":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"monitor_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"monitor_service":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"severity":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"signal_type":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource_group":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource_type":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"effective_from":{"type":"TypeString","optional":true},"effective_until":{"type":"TypeString","optional":true},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"daily":{"type":"TypeList","optional":true,"elem":{"schema":{"end_time":{"type":"TypeString","required":true},"start_time":{"type":"TypeString","required":true}}}},"monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_month":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"},"minItems":1},"end_time":{"type":"TypeString","optional":true},"start_time":{"type":"TypeString","optional":true}}}},"weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_week":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"end_time":{"type":"TypeString","optional":true},"start_time":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"time_zone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"scopes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_alert_processing_rule_suppression":{"schema":{"condition":{"type":"TypeList","optional":true,"elem":{"schema":{"alert_context":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"alert_rule_id":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"alert_rule_name":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"description":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"monitor_condition":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"monitor_service":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"severity":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"signal_type":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource_group":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"target_resource_type":{"type":"TypeList","optional":true,"elem":{"schema":{"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"effective_from":{"type":"TypeString","optional":true},"effective_until":{"type":"TypeString","optional":true},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"daily":{"type":"TypeList","optional":true,"elem":{"schema":{"end_time":{"type":"TypeString","required":true},"start_time":{"type":"TypeString","required":true}}}},"monthly":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_month":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"},"minItems":1},"end_time":{"type":"TypeString","optional":true},"start_time":{"type":"TypeString","optional":true}}}},"weekly":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_week":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"end_time":{"type":"TypeString","optional":true},"start_time":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"time_zone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"scopes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_alert_prometheus_rule_group":{"schema":{"cluster_name":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"interval":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","required":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_group_id":{"type":"TypeString","required":true},"action_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":5},"alert":{"type":"TypeString","optional":true},"alert_resolution":{"type":"TypeList","optional":true,"elem":{"schema":{"auto_resolved":{"type":"TypeBool","optional":true},"time_to_resolve":{"type":"TypeString","optional":true}}},"maxItems":1},"annotations":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true},"expression":{"type":"TypeString","required":true},"for":{"type":"TypeString","optional":true},"labels":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"record":{"type":"TypeString","optional":true},"severity":{"type":"TypeInt","optional":true}}}},"rule_group_enabled":{"type":"TypeBool","optional":true},"scopes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_autoscale_setting":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"notification":{"type":"TypeList","optional":true,"elem":{"schema":{"email":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"send_to_subscription_administrator":{"type":"TypeBool","optional":true,"default":false},"send_to_subscription_co_administrator":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"webhook":{"type":"TypeList","optional":true,"elem":{"schema":{"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"service_uri":{"type":"TypeString","required":true}}}}}},"maxItems":1},"predictive":{"type":"TypeList","optional":true,"elem":{"schema":{"look_ahead_time":{"type":"TypeString","optional":true},"scale_mode":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"profile":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeList","required":true,"elem":{"schema":{"default":{"type":"TypeInt","required":true},"maximum":{"type":"TypeInt","required":true},"minimum":{"type":"TypeInt","required":true}}},"maxItems":1},"fixed_date":{"type":"TypeList","optional":true,"elem":{"schema":{"end":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true},"timezone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"name":{"type":"TypeString","required":true},"recurrence":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"hours":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"},"maxItems":1},"minutes":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"},"maxItems":1},"timezone":{"type":"TypeString","optional":true,"default":"UTC"}}},"maxItems":1},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"metric_trigger":{"type":"TypeList","required":true,"elem":{"schema":{"dimensions":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"divide_by_instance_count":{"type":"TypeBool","optional":true},"metric_name":{"type":"TypeString","required":true},"metric_namespace":{"type":"TypeString","optional":true},"metric_resource_id":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"statistic":{"type":"TypeString","required":true},"threshold":{"type":"TypeFloat","required":true},"time_aggregation":{"type":"TypeString","required":true},"time_grain":{"type":"TypeString","required":true},"time_window":{"type":"TypeString","required":true}}},"maxItems":1},"scale_action":{"type":"TypeList","required":true,"elem":{"schema":{"cooldown":{"type":"TypeString","required":true},"direction":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":10}}},"maxItems":20},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_data_collection_endpoint":{"schema":{"configuration_access_endpoint":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"immutable_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs_ingestion_endpoint":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_data_collection_rule":{"schema":{"data_collection_endpoint_id":{"type":"TypeString","optional":true},"data_flow":{"type":"TypeList","required":true,"elem":{"schema":{"built_in_transform":{"type":"TypeString","optional":true},"destinations":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"output_stream":{"type":"TypeString","optional":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"transform_kql":{"type":"TypeString","optional":true}}},"minItems":1},"data_sources":{"type":"TypeList","optional":true,"elem":{"schema":{"data_import":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_data_source":{"type":"TypeList","required":true,"elem":{"schema":{"consumer_group":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"stream":{"type":"TypeString","required":true}}}}}},"maxItems":1},"extension":{"type":"TypeList","optional":true,"elem":{"schema":{"extension_json":{"type":"TypeString","optional":true},"extension_name":{"type":"TypeString","required":true},"input_data_sources":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"iis_log":{"type":"TypeList","optional":true,"elem":{"schema":{"log_directories":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"log_file":{"type":"TypeList","optional":true,"elem":{"schema":{"file_patterns":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"settings":{"type":"TypeList","optional":true,"elem":{"schema":{"text":{"type":"TypeList","required":true,"elem":{"schema":{"record_start_timestamp_format":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"performance_counter":{"type":"TypeList","optional":true,"elem":{"schema":{"counter_specifiers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"sampling_frequency_in_seconds":{"type":"TypeInt","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"platform_telemetry":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"prometheus_forwarder":{"type":"TypeList","optional":true,"elem":{"schema":{"label_include_filter":{"type":"TypeSet","optional":true,"elem":{"schema":{"label":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"syslog":{"type":"TypeList","optional":true,"elem":{"schema":{"facility_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"log_levels":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"windows_event_log":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"x_path_queries":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"windows_firewall_log":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"streams":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"destinations":{"type":"TypeList","required":true,"elem":{"schema":{"azure_monitor_metrics":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true}}},"maxItems":1},"event_hub":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"event_hub_direct":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"log_analytics":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"workspace_resource_id":{"type":"TypeString","required":true}}}},"monitor_account":{"type":"TypeList","optional":true,"elem":{"schema":{"monitor_account_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}},"storage_blob":{"type":"TypeList","optional":true,"elem":{"schema":{"container_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}}},"storage_blob_direct":{"type":"TypeList","optional":true,"elem":{"schema":{"container_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true}}}},"storage_table_direct":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true},"table_name":{"type":"TypeString","required":true}}}}}},"maxItems":1,"minItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"immutable_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"stream_declaration":{"type":"TypeSet","optional":true,"elem":{"schema":{"column":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"stream_name":{"type":"TypeString","required":true}}},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_data_collection_rule_association":{"schema":{"data_collection_endpoint_id":{"type":"TypeString","optional":true},"data_collection_rule_id":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"default":"configurationAccessEndpoint","forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_diagnostic_setting":{"schema":{"enabled_log":{"type":"TypeSet","optional":true,"elem":{"schema":{"category":{"type":"TypeString","optional":true},"category_group":{"type":"TypeString","optional":true},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true},"enabled":{"type":"TypeBool","required":true}}},"maxItems":1}}}},"eventhub_authorization_rule_id":{"type":"TypeString","optional":true},"eventhub_name":{"type":"TypeString","optional":true},"log_analytics_destination_type":{"type":"TypeString","optional":true,"computed":true},"log_analytics_workspace_id":{"type":"TypeString","optional":true},"metric":{"type":"TypeSet","optional":true,"elem":{"schema":{"category":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true},"enabled":{"type":"TypeBool","required":true}}},"maxItems":1}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"partner_solution_id":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":60,"update":30}},"azurerm_monitor_metric_alert":{"schema":{"action":{"type":"TypeSet","optional":true,"elem":{"schema":{"action_group_id":{"type":"TypeString","required":true},"webhook_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"application_insights_web_test_location_availability_criteria":{"type":"TypeList","optional":true,"elem":{"schema":{"component_id":{"type":"TypeString","required":true},"failed_location_count":{"type":"TypeInt","required":true},"web_test_id":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"auto_mitigate":{"type":"TypeBool","optional":true,"default":true},"criteria":{"type":"TypeList","optional":true,"elem":{"schema":{"aggregation":{"type":"TypeString","required":true},"dimension":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"metric_name":{"type":"TypeString","required":true},"metric_namespace":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"skip_metric_validation":{"type":"TypeBool","optional":true,"default":false},"threshold":{"type":"TypeFloat","required":true}}},"minItems":1},"description":{"type":"TypeString","optional":true},"dynamic_criteria":{"type":"TypeList","optional":true,"elem":{"schema":{"aggregation":{"type":"TypeString","required":true},"alert_sensitivity":{"type":"TypeString","required":true},"dimension":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1}}}},"evaluation_failure_count":{"type":"TypeInt","optional":true,"default":4},"evaluation_total_count":{"type":"TypeInt","optional":true,"default":4},"ignore_data_before":{"type":"TypeString","optional":true},"metric_name":{"type":"TypeString","required":true},"metric_namespace":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"skip_metric_validation":{"type":"TypeBool","optional":true}}},"maxItems":1,"minItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"frequency":{"type":"TypeString","optional":true,"default":"PT1M"},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"severity":{"type":"TypeInt","optional":true,"default":3},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_location":{"type":"TypeString","optional":true,"description":"The location of the target pluginsdk. Required when using subscription, resource group scope or multiple scopes.","computed":true},"target_resource_type":{"type":"TypeString","optional":true,"description":"The resource type (e.g. Microsoft.Compute/virtualMachines) of the target pluginsdk. Required when using subscription, resource group scope or multiple scopes.","computed":true},"window_size":{"type":"TypeString","optional":true,"default":"PT5M"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_private_link_scope":{"schema":{"ingestion_access_mode":{"type":"TypeString","optional":true,"default":"Open"},"name":{"type":"TypeString","required":true,"forceNew":true},"query_access_mode":{"type":"TypeString","optional":true,"default":"Open"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_private_link_scoped_service":{"schema":{"linked_resource_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_monitor_scheduled_query_rules_alert":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"action_group":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"custom_webhook_payload":{"type":"TypeString","optional":true},"email_subject":{"type":"TypeString","optional":true}}},"maxItems":1},"authorized_resource_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":100},"auto_mitigation_enabled":{"type":"TypeBool","optional":true,"default":false},"data_source_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"frequency":{"type":"TypeInt","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query":{"type":"TypeString","required":true},"query_type":{"type":"TypeString","optional":true,"default":"ResultCount"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"severity":{"type":"TypeInt","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"throttling":{"type":"TypeInt","optional":true},"time_window":{"type":"TypeInt","required":true},"trigger":{"type":"TypeList","required":true,"elem":{"schema":{"metric_trigger":{"type":"TypeList","optional":true,"elem":{"schema":{"metric_column":{"type":"TypeString","optional":true},"metric_trigger_type":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeFloat","required":true}}},"maxItems":1},"operator":{"type":"TypeString","required":true},"threshold":{"type":"TypeFloat","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_scheduled_query_rules_alert_v2":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"action_groups":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"custom_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auto_mitigation_enabled":{"type":"TypeBool","optional":true,"default":false},"created_with_api_version":{"type":"TypeString","computed":true},"criteria":{"type":"TypeList","required":true,"elem":{"schema":{"dimension":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"failing_periods":{"type":"TypeList","optional":true,"elem":{"schema":{"minimum_failing_periods_to_trigger_alert":{"type":"TypeInt","required":true},"number_of_evaluation_periods":{"type":"TypeInt","required":true}}},"maxItems":1},"metric_measure_column":{"type":"TypeString","optional":true},"operator":{"type":"TypeString","required":true},"query":{"type":"TypeString","required":true},"resource_id_column":{"type":"TypeString","optional":true},"threshold":{"type":"TypeFloat","required":true},"time_aggregation_method":{"type":"TypeString","required":true}}},"minItems":1},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"evaluation_frequency":{"type":"TypeString","required":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"is_a_legacy_log_analytics_rule":{"type":"TypeBool","computed":true},"is_workspace_alerts_storage_configured":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mute_actions_after_alert_duration":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query_time_range_override":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1,"minItems":1},"severity":{"type":"TypeInt","required":true},"skip_query_validation":{"type":"TypeBool","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"window_duration":{"type":"TypeString","required":true},"workspace_alerts_storage_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_scheduled_query_rules_log":{"schema":{"authorized_resource_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"criteria":{"type":"TypeList","required":true,"elem":{"schema":{"dimension":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operator":{"type":"TypeString","optional":true,"default":"Include"},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"metric_name":{"type":"TypeString","required":true}}},"maxItems":1},"data_source_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_smart_detector_alert_rule":{"schema":{"action_group":{"type":"TypeList","required":true,"elem":{"schema":{"email_subject":{"type":"TypeString","optional":true},"ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"webhook_payload":{"type":"TypeString","optional":true}}},"maxItems":1},"description":{"type":"TypeString","optional":true},"detector_type":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"frequency":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope_resource_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"severity":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"throttling_duration":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_monitor_workspace":{"schema":{"default_data_collection_endpoint_id":{"type":"TypeString","computed":true},"default_data_collection_rule_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"query_endpoint":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_database":{"schema":{"auto_pause_delay_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"collation":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"create_mode":{"type":"TypeString","optional":true,"default":"Default","forceNew":true},"creation_source_database_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"elastic_pool_id":{"type":"TypeString","optional":true},"enclave_type":{"type":"TypeString","optional":true,"computed":true},"geo_backup_enabled":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"import":{"type":"TypeList","optional":true,"elem":{"schema":{"administrator_login":{"type":"TypeString","required":true},"administrator_login_password":{"type":"TypeString","required":true},"authentication_type":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_key":{"type":"TypeString","required":true},"storage_key_type":{"type":"TypeString","required":true},"storage_uri":{"type":"TypeString","required":true}}},"maxItems":1},"ledger_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"license_type":{"type":"TypeString","optional":true,"computed":true},"long_term_retention_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"immutable_backups_enabled":{"type":"TypeBool","optional":true,"default":false},"monthly_retention":{"type":"TypeString","optional":true,"computed":true},"week_of_year":{"type":"TypeInt","optional":true,"computed":true},"weekly_retention":{"type":"TypeString","optional":true,"computed":true},"yearly_retention":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"maintenance_configuration_name":{"type":"TypeString","optional":true,"computed":true},"max_size_gb":{"type":"TypeInt","optional":true,"computed":true},"min_capacity":{"type":"TypeFloat","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"read_replica_count":{"type":"TypeInt","optional":true,"computed":true},"read_scale":{"type":"TypeBool","optional":true,"computed":true},"recover_database_id":{"type":"TypeString","optional":true},"recovery_point_id":{"type":"TypeString","optional":true},"restore_dropped_database_id":{"type":"TypeString","optional":true},"restore_long_term_retention_backup_id":{"type":"TypeString","optional":true},"restore_point_in_time":{"type":"TypeString","optional":true,"computed":true},"sample_name":{"type":"TypeString","optional":true,"computed":true},"secondary_type":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"short_term_retention_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"backup_interval_in_hours":{"type":"TypeInt","optional":true,"computed":true},"retention_days":{"type":"TypeInt","required":true}}},"maxItems":1},"sku_name":{"type":"TypeString","optional":true,"computed":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"Geo"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threat_detection_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins":{"type":"TypeString","optional":true,"default":"Disabled"},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"retention_days":{"type":"TypeInt","optional":true},"state":{"type":"TypeString","optional":true,"default":"Disabled"},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}}},"maxItems":1},"transparent_data_encryption_enabled":{"type":"TypeBool","optional":true,"default":true},"transparent_data_encryption_key_automatic_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"transparent_data_encryption_key_vault_key_id":{"type":"TypeString","optional":true},"zone_redundant":{"type":"TypeBool","optional":true,"computed":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_database_extended_auditing_policy":{"schema":{"database_id":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_access_key_is_secondary":{"type":"TypeBool","optional":true,"default":false},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_database_vulnerability_assessment_rule_baseline":{"schema":{"baseline_name":{"type":"TypeString","optional":true,"default":"default","forceNew":true},"baseline_result":{"type":"TypeSet","required":true,"elem":{"schema":{"result":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"database_name":{"type":"TypeString","required":true,"forceNew":true},"rule_id":{"type":"TypeString","required":true,"forceNew":true},"server_vulnerability_assessment_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_elasticpool":{"schema":{"enclave_type":{"type":"TypeString","optional":true,"computed":true},"license_type":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_name":{"type":"TypeString","optional":true,"default":"SQL_Default"},"max_size_bytes":{"type":"TypeInt","optional":true,"computed":true},"max_size_gb":{"type":"TypeFloat","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"per_database_settings":{"type":"TypeList","required":true,"elem":{"schema":{"max_capacity":{"type":"TypeFloat","required":true},"min_capacity":{"type":"TypeFloat","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"family":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_failover_group":{"schema":{"databases":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"partner_server":{"type":"TypeList","required":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"role":{"type":"TypeString","computed":true}}},"minItems":1},"read_write_endpoint_failover_policy":{"type":"TypeList","required":true,"elem":{"schema":{"grace_minutes":{"type":"TypeInt","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1},"readonly_endpoint_failover_policy_enabled":{"type":"TypeBool","optional":true,"computed":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_job_agent":{"schema":{"database_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_job_credential":{"schema":{"job_agent_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_managed_database":{"schema":{"long_term_retention_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"immutable_backups_enabled":{"type":"TypeBool","optional":true,"default":false},"monthly_retention":{"type":"TypeString","optional":true,"computed":true},"week_of_year":{"type":"TypeInt","optional":true,"computed":true},"weekly_retention":{"type":"TypeString","optional":true,"computed":true},"yearly_retention":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"point_in_time_restore":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"restore_point_in_time":{"type":"TypeString","required":true,"forceNew":true},"source_database_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"short_term_retention_days":{"type":"TypeInt","optional":true,"default":7},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_managed_instance":{"schema":{"administrator_login":{"type":"TypeString","required":true,"forceNew":true},"administrator_login_password":{"type":"TypeString","required":true},"collation":{"type":"TypeString","optional":true,"default":"SQL_Latin1_General_CP1_CI_AS","forceNew":true},"dns_zone":{"type":"TypeString","computed":true},"dns_zone_partner_id":{"type":"TypeString","optional":true},"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_configuration_name":{"type":"TypeString","optional":true,"default":"SQL_Default"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"proxy_override":{"type":"TypeString","optional":true,"default":"Default"},"public_data_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_principal_type":{"type":"TypeString","optional":true},"sku_name":{"type":"TypeString","required":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"GRS"},"storage_size_in_gb":{"type":"TypeInt","required":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timezone_id":{"type":"TypeString","optional":true,"default":"UTC","forceNew":true},"vcores":{"type":"TypeInt","required":true},"zone_redundant_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":1440,"read":5,"delete":1440,"update":1440}},"azurerm_mssql_managed_instance_active_directory_administrator":{"schema":{"azuread_authentication_only":{"type":"TypeBool","optional":true},"login_username":{"type":"TypeString","required":true},"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"object_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":180,"update":30}},"azurerm_mssql_managed_instance_failover_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partner_managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"partner_region":{"type":"TypeList","computed":true,"elem":{"schema":{"location":{"type":"TypeString","computed":true},"role":{"type":"TypeString","computed":true}}}},"read_write_endpoint_failover_policy":{"type":"TypeList","required":true,"elem":{"schema":{"grace_minutes":{"type":"TypeInt","optional":true},"mode":{"type":"TypeString","required":true}}},"maxItems":1},"readonly_endpoint_failover_policy_enabled":{"type":"TypeBool","optional":true,"default":true},"role":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_managed_instance_security_alert_policy":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins_enabled":{"type":"TypeBool","optional":true,"default":false},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true},"managed_instance_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_days":{"type":"TypeInt","optional":true,"default":0},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_managed_instance_transparent_data_encryption":{"schema":{"auto_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"key_vault_key_id":{"type":"TypeString","optional":true},"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_managed_instance_vulnerability_assessment":{"schema":{"managed_instance_id":{"type":"TypeString","required":true,"forceNew":true},"recurring_scans":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email_subscription_admins":{"type":"TypeBool","optional":true,"default":true},"emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_container_path":{"type":"TypeString","required":true},"storage_container_sas_key":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_outbound_firewall_rule":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_mssql_server":{"schema":{"administrator_login":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"administrator_login_password":{"type":"TypeString","optional":true},"azuread_administrator":{"type":"TypeList","optional":true,"elem":{"schema":{"azuread_authentication_only":{"type":"TypeBool","optional":true,"computed":true},"login_username":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1,"minItems":1},"connection_policy":{"type":"TypeString","optional":true,"default":"Default"},"fully_qualified_domain_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_network_restriction_enabled":{"type":"TypeBool","optional":true,"default":false},"primary_user_assigned_identity_id":{"type":"TypeString","optional":true,"computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"restorable_dropped_database_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"transparent_data_encryption_key_vault_key_id":{"type":"TypeString","optional":true},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_server_dns_alias":{"schema":{"dns_record":{"type":"TypeString","computed":true},"mssql_server_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10}},"azurerm_mssql_server_extended_auditing_policy":{"schema":{"audit_actions_and_groups":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"predicate_expression":{"type":"TypeString","optional":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"server_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_access_key_is_secondary":{"type":"TypeBool","optional":true,"default":false},"storage_account_subscription_id":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_server_microsoft_support_auditing_policy":{"schema":{"blob_storage_endpoint":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_subscription_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_server_security_alert_policy":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins":{"type":"TypeBool","optional":true,"default":false},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_days":{"type":"TypeInt","optional":true,"default":0},"server_name":{"type":"TypeString","required":true,"forceNew":true},"state":{"type":"TypeString","required":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_server_transparent_data_encryption":{"schema":{"auto_rotation_enabled":{"type":"TypeBool","optional":true,"default":false},"key_vault_key_id":{"type":"TypeString","optional":true},"managed_hsm_key_id":{"type":"TypeString","optional":true},"server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_server_vulnerability_assessment":{"schema":{"recurring_scans":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email_subscription_admins":{"type":"TypeBool","optional":true,"default":false},"emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"server_security_alert_policy_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_container_path":{"type":"TypeString","required":true},"storage_container_sas_key":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_virtual_machine":{"schema":{"assessment":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"run_immediately":{"type":"TypeBool","optional":true,"default":false},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"monthly_occurrence":{"type":"TypeInt","optional":true},"start_time":{"type":"TypeString","required":true},"weekly_interval":{"type":"TypeInt","optional":true}}},"maxItems":1}}},"maxItems":1},"auto_backup":{"type":"TypeList","optional":true,"elem":{"schema":{"encryption_enabled":{"type":"TypeBool","optional":true,"default":false},"encryption_password":{"type":"TypeString","optional":true},"manual_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_week":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"full_backup_frequency":{"type":"TypeString","required":true},"full_backup_start_hour":{"type":"TypeInt","required":true},"full_backup_window_in_hours":{"type":"TypeInt","required":true},"log_backup_frequency_in_minutes":{"type":"TypeInt","required":true}}},"maxItems":1},"retention_period_in_days":{"type":"TypeInt","required":true},"storage_account_access_key":{"type":"TypeString","required":true},"storage_blob_endpoint":{"type":"TypeString","required":true},"system_databases_backup_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"auto_patching":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"maintenance_window_duration_in_minutes":{"type":"TypeInt","required":true},"maintenance_window_starting_hour":{"type":"TypeInt","required":true}}},"maxItems":1},"key_vault_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_url":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true},"service_principal_name":{"type":"TypeString","required":true,"forceNew":true},"service_principal_secret":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"r_services_enabled":{"type":"TypeBool","optional":true},"sql_connectivity_port":{"type":"TypeInt","optional":true,"default":1433},"sql_connectivity_type":{"type":"TypeString","optional":true,"default":"PRIVATE"},"sql_connectivity_update_password":{"type":"TypeString","optional":true},"sql_connectivity_update_username":{"type":"TypeString","optional":true},"sql_instance":{"type":"TypeList","optional":true,"elem":{"schema":{"adhoc_workloads_optimization_enabled":{"type":"TypeBool","optional":true,"default":false},"collation":{"type":"TypeString","optional":true,"default":"SQL_Latin1_General_CP1_CI_AS","forceNew":true},"instant_file_initialization_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"lock_pages_in_memory_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"max_dop":{"type":"TypeInt","optional":true,"default":0},"max_server_memory_mb":{"type":"TypeInt","optional":true,"default":2147483647},"min_server_memory_mb":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"sql_license_type":{"type":"TypeString","optional":true,"forceNew":true},"sql_virtual_machine_group_id":{"type":"TypeString","optional":true},"storage_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"data_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"default_file_path":{"type":"TypeString","required":true},"luns":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"}}}},"maxItems":1},"disk_type":{"type":"TypeString","required":true},"log_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"default_file_path":{"type":"TypeString","required":true},"luns":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"}}}},"maxItems":1},"storage_workload_type":{"type":"TypeString","required":true},"system_db_on_data_disk_enabled":{"type":"TypeBool","optional":true,"default":false},"temp_db_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"data_file_count":{"type":"TypeInt","optional":true,"default":8},"data_file_growth_in_mb":{"type":"TypeInt","optional":true,"default":512},"data_file_size_mb":{"type":"TypeInt","optional":true,"default":256},"default_file_path":{"type":"TypeString","required":true},"log_file_growth_mb":{"type":"TypeInt","optional":true,"default":512},"log_file_size_mb":{"type":"TypeInt","optional":true,"default":256},"luns":{"type":"TypeList","required":true,"elem":{"type":"TypeInt"}}}},"maxItems":1}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"wsfc_domain_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"cluster_bootstrap_account_password":{"type":"TypeString","required":true},"cluster_operator_account_password":{"type":"TypeString","required":true},"sql_service_account_password":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mssql_virtual_machine_availability_group_listener":{"schema":{"availability_group_name":{"type":"TypeString","optional":true,"forceNew":true},"load_balancer_configuration":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"load_balancer_id":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","required":true,"forceNew":true},"probe_port":{"type":"TypeInt","required":true,"forceNew":true},"sql_virtual_machine_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"multi_subnet_ip_configuration":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","required":true,"forceNew":true},"sql_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"port":{"type":"TypeInt","optional":true,"forceNew":true},"replica":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"schema":{"commit":{"type":"TypeString","required":true,"forceNew":true},"failover_mode":{"type":"TypeString","required":true,"forceNew":true},"readable_secondary":{"type":"TypeString","required":true,"forceNew":true},"role":{"type":"TypeString","required":true,"forceNew":true},"sql_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}}}},"sql_virtual_machine_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_mssql_virtual_machine_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sql_image_offer":{"type":"TypeString","required":true,"forceNew":true},"sql_image_sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"wsfc_domain_profile":{"type":"TypeList","required":true,"elem":{"schema":{"cluster_bootstrap_account_name":{"type":"TypeString","optional":true,"forceNew":true},"cluster_operator_account_name":{"type":"TypeString","optional":true,"forceNew":true},"cluster_subnet_type":{"type":"TypeString","required":true,"forceNew":true},"fqdn":{"type":"TypeString","required":true,"forceNew":true},"organizational_unit_path":{"type":"TypeString","optional":true,"forceNew":true},"sql_service_account_name":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_primary_key":{"type":"TypeString","optional":true},"storage_account_url":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mssql_virtual_network_rule":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mysql_flexible_database":{"schema":{"charset":{"type":"TypeString","required":true,"forceNew":true},"collation":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_mysql_flexible_server":{"schema":{"administrator_login":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"administrator_password":{"type":"TypeString","optional":true},"backup_retention_days":{"type":"TypeInt","optional":true,"default":7},"create_mode":{"type":"TypeString","optional":true,"forceNew":true},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"geo_backup_key_vault_key_id":{"type":"TypeString","optional":true},"geo_backup_user_assigned_identity_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","optional":true},"primary_user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"delegated_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"geo_redundant_backup_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"high_availability":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"standby_availability_zone":{"type":"TypeString","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeInt","optional":true,"default":0},"start_hour":{"type":"TypeInt","optional":true,"default":0},"start_minute":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"point_in_time_restore_time_in_utc":{"type":"TypeString","optional":true,"forceNew":true},"private_dns_zone_id":{"type":"TypeString","optional":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"replica_capacity":{"type":"TypeInt","computed":true},"replication_role":{"type":"TypeString","optional":true,"computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","optional":true,"computed":true},"source_server_id":{"type":"TypeString","optional":true,"forceNew":true},"storage":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"auto_grow_enabled":{"type":"TypeBool","optional":true,"default":true},"io_scaling_enabled":{"type":"TypeBool","optional":true,"default":false},"iops":{"type":"TypeInt","optional":true,"computed":true},"size_gb":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"zone":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_mysql_flexible_server_active_directory_administrator":{"schema":{"identity_id":{"type":"TypeString","required":true},"login":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mysql_flexible_server_configuration":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_mysql_flexible_server_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_nat_gateway":{"schema":{"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_guid":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","optional":true,"default":"Standard"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_nat_gateway_public_ip_association":{"schema":{"nat_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_nat_gateway_public_ip_prefix_association":{"schema":{"nat_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"public_ip_prefix_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_netapp_account":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"aes_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"If enabled, AES encryption will be enabled for SMB communication."},"dns_servers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"domain":{"type":"TypeString","required":true},"kerberos_ad_name":{"type":"TypeString","optional":true,"description":"Name of the active directory machine. This optional parameter is used only while creating kerberos volume."},"kerberos_kdc_ip":{"type":"TypeString","optional":true,"description":"IP address of the KDC server (usually same the DC). This optional parameter is used only while creating kerberos volume."},"ldap_over_tls_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies whether or not the LDAP traffic needs to be secured via TLS."},"ldap_signing_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies whether or not the LDAP traffic needs to be signed."},"local_nfs_users_with_ldap_allowed":{"type":"TypeBool","optional":true,"default":false,"description":"If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes."},"organizational_unit":{"type":"TypeString","optional":true,"default":"CN=Computers","description":"The Organizational Unit (OU) within the Windows Active Directory where machines will be created. If blank, defaults to 'CN=Computers'"},"password":{"type":"TypeString","required":true},"server_root_ca_certificate":{"type":"TypeString","optional":true,"description":"When LDAP over SSL/TLS is enabled, the LDAP client is required to have base64 encoded Active Directory Certificate Service's self-signed root CA certificate, this optional parameter is used only for dual protocol with LDAP user-mapping volumes."},"site_name":{"type":"TypeString","optional":true,"default":"Default-First-Site-Name","description":"The Active Directory site the service will limit Domain Controller discovery to. If blank, defaults to 'Default-First-Site-Name'"},"smb_server_name":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_netapp_account_encryption":{"schema":{"encryption_key":{"type":"TypeString","required":true,"description":"The versionless encryption key url."},"netapp_account_id":{"type":"TypeString","required":true,"description":"The ID of the NetApp Account where encryption will be set."},"system_assigned_identity_principal_id":{"type":"TypeString","optional":true,"description":"The Principal ID of the System Assigned Identity to use for encryption."},"user_assigned_identity_id":{"type":"TypeString","optional":true,"description":"The resource ID of the User Assigned Identity to use for encryption."}},"timeouts":{"create":90,"read":5,"delete":120,"update":120}},"azurerm_netapp_backup_policy":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"daily_backups_to_keep":{"type":"TypeInt","optional":true,"default":2},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"monthly_backups_to_keep":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"weekly_backups_to_keep":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":90,"read":5,"delete":120,"update":120}},"azurerm_netapp_backup_vault":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":120,"update":120}},"azurerm_netapp_pool":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"encryption_type":{"type":"TypeString","optional":true,"default":"Single","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"qos_type":{"type":"TypeString","optional":true,"default":"Auto"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_level":{"type":"TypeString","required":true,"forceNew":true},"size_in_tb":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_netapp_snapshot":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"pool_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"volume_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_netapp_snapshot_policy":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"daily_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"hour":{"type":"TypeInt","required":true},"minute":{"type":"TypeInt","required":true},"snapshots_to_keep":{"type":"TypeInt","required":true}}},"maxItems":1},"enabled":{"type":"TypeBool","required":true},"hourly_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"minute":{"type":"TypeInt","required":true},"snapshots_to_keep":{"type":"TypeInt","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"monthly_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_month":{"type":"TypeSet","required":true,"elem":{"type":"TypeInt"},"maxItems":30},"hour":{"type":"TypeInt","required":true},"minute":{"type":"TypeInt","required":true},"snapshots_to_keep":{"type":"TypeInt","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"weekly_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"days_of_week":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":7},"hour":{"type":"TypeInt","required":true},"minute":{"type":"TypeInt","required":true},"snapshots_to_keep":{"type":"TypeInt","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_netapp_volume":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"azure_vmware_data_store_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"create_from_snapshot_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"data_protection_backup_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"backup_policy_id":{"type":"TypeString","required":true,"description":"The ID of the backup policy to associate with this volume."},"backup_vault_id":{"type":"TypeString","required":true,"description":"The ID of the backup vault to associate with this volume."},"policy_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"If set to false, the backup policy will not be enabled on this volume, thus disabling scheduled backups."}}},"maxItems":1},"data_protection_replication":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"endpoint_type":{"type":"TypeString","optional":true,"default":"dst"},"remote_volume_location":{"type":"TypeString","required":true,"forceNew":true},"remote_volume_resource_id":{"type":"TypeString","required":true},"replication_frequency":{"type":"TypeString","required":true}}},"maxItems":1},"data_protection_snapshot_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"snapshot_policy_id":{"type":"TypeString","required":true}}},"maxItems":1},"encryption_key_source":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"export_policy_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_clients":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"kerberos_5_read_only_enabled":{"type":"TypeBool","optional":true},"kerberos_5_read_write_enabled":{"type":"TypeBool","optional":true},"kerberos_5i_read_only_enabled":{"type":"TypeBool","optional":true},"kerberos_5i_read_write_enabled":{"type":"TypeBool","optional":true},"kerberos_5p_read_only_enabled":{"type":"TypeBool","optional":true},"kerberos_5p_read_write_enabled":{"type":"TypeBool","optional":true},"protocols_enabled":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1,"minItems":1},"root_access_enabled":{"type":"TypeBool","optional":true},"rule_index":{"type":"TypeInt","required":true},"unix_read_only":{"type":"TypeBool","optional":true},"unix_read_write":{"type":"TypeBool","optional":true}}},"maxItems":5},"kerberos_enabled":{"type":"TypeBool","optional":true,"description":"Enable to allow Kerberos secured volumes. Requires appropriate export rules as well as the parent `azurerm_netapp_account` having a defined AD connection.","forceNew":true},"key_vault_private_endpoint_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mount_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_features":{"type":"TypeString","optional":true,"default":"Basic"},"pool_name":{"type":"TypeString","required":true,"forceNew":true},"protocols":{"type":"TypeSet","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":2},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"security_style":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"service_level":{"type":"TypeString","required":true,"forceNew":true},"smb3_protocol_encryption_enabled":{"type":"TypeBool","optional":true,"description":"SMB3 encryption option should be used only for SMB/DualProtocol volumes. Using it for any other workloads is not supported.","forceNew":true},"smb_access_based_enumeration_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Enable access based enumeration setting for SMB/Dual Protocol volume. When enabled, users who do not have permission to access a shared folder or file underneath it, do not see that shared resource displayed in their environment."},"smb_continuous_availability_enabled":{"type":"TypeBool","optional":true,"description":"Continuous availability option should be used only for SQL and FSLogix workloads. Using it for any other SMB workloads is not supported.","forceNew":true},"smb_non_browsable_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Enable non browsable share setting for SMB/Dual Protocol volume. When enabled, it restricts windows clients to browse the share"},"snapshot_directory_visible":{"type":"TypeBool","optional":true,"default":true},"storage_quota_in_gb":{"type":"TypeInt","required":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"throughput_in_mibps":{"type":"TypeFloat","optional":true,"computed":true},"volume_path":{"type":"TypeString","required":true,"forceNew":true},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_netapp_volume_group_sap_hana":{"schema":{"account_name":{"type":"TypeString","required":true,"forceNew":true},"application_identifier":{"type":"TypeString","required":true,"forceNew":true},"group_description":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"volume":{"type":"TypeList","required":true,"elem":{"schema":{"capacity_pool_id":{"type":"TypeString","required":true,"forceNew":true},"data_protection_replication":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"endpoint_type":{"type":"TypeString","optional":true,"default":"dst"},"remote_volume_location":{"type":"TypeString","required":true},"remote_volume_resource_id":{"type":"TypeString","required":true},"replication_frequency":{"type":"TypeString","required":true}}},"maxItems":1},"data_protection_snapshot_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"snapshot_policy_id":{"type":"TypeString","required":true}}},"maxItems":1},"export_policy_rule":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_clients":{"type":"TypeString","required":true},"nfsv3_enabled":{"type":"TypeBool","required":true},"nfsv41_enabled":{"type":"TypeBool","required":true},"root_access_enabled":{"type":"TypeBool","optional":true,"default":true},"rule_index":{"type":"TypeInt","required":true},"unix_read_only":{"type":"TypeBool","optional":true,"default":false},"unix_read_write":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":5,"minItems":1},"id":{"type":"TypeString","computed":true},"mount_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"protocols":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1,"minItems":1},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"security_style":{"type":"TypeString","required":true,"forceNew":true},"service_level":{"type":"TypeString","required":true,"forceNew":true},"snapshot_directory_visible":{"type":"TypeBool","required":true,"forceNew":true},"storage_quota_in_gb":{"type":"TypeInt","required":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"throughput_in_mibps":{"type":"TypeFloat","required":true},"volume_path":{"type":"TypeString","required":true,"forceNew":true},"volume_spec_name":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":5,"minItems":2}},"timeouts":{"create":90,"read":5,"delete":120,"update":120}},"azurerm_netapp_volume_quota_rule":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"quota_size_in_kib":{"type":"TypeInt","required":true},"quota_target":{"type":"TypeString","optional":true,"forceNew":true},"quota_type":{"type":"TypeString","required":true,"forceNew":true},"volume_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":120,"update":120}},"azurerm_network_connection_monitor":{"schema":{"endpoint":{"type":"TypeSet","required":true,"elem":{"schema":{"address":{"type":"TypeString","optional":true},"coverage_level":{"type":"TypeString","optional":true},"excluded_ip_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"item":{"type":"TypeSet","optional":true,"elem":{"schema":{"address":{"type":"TypeString","optional":true},"type":{"type":"TypeString","optional":true,"default":"AgentAddress"}}}},"type":{"type":"TypeString","optional":true,"default":"Include"}}},"maxItems":1},"included_ip_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"target_resource_id":{"type":"TypeString","optional":true},"target_resource_type":{"type":"TypeString","optional":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_id":{"type":"TypeString","required":true,"forceNew":true},"notes":{"type":"TypeString","optional":true},"output_workspace_resource_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"test_configuration":{"type":"TypeSet","required":true,"elem":{"schema":{"http_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"method":{"type":"TypeString","optional":true,"default":"Get"},"path":{"type":"TypeString","optional":true},"port":{"type":"TypeInt","optional":true},"prefer_https":{"type":"TypeBool","optional":true,"default":false},"request_header":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"valid_status_code_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"icmp_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"trace_route_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"preferred_ip_version":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true},"success_threshold":{"type":"TypeList","optional":true,"elem":{"schema":{"checks_failed_percent":{"type":"TypeInt","optional":true},"round_trip_time_ms":{"type":"TypeFloat","optional":true}}},"maxItems":1},"tcp_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"destination_port_behavior":{"type":"TypeString","optional":true},"port":{"type":"TypeInt","required":true},"trace_route_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"test_frequency_in_seconds":{"type":"TypeInt","optional":true,"default":60}}}},"test_group":{"type":"TypeSet","required":true,"elem":{"schema":{"destination_endpoints":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"source_endpoints":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"test_configuration_names":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_ddos_protection_plan":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_function_azure_traffic_collector":{"schema":{"collector_policy_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_function_collector_policy":{"schema":{"ipfx_emission":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"destination_types":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1}}},"maxItems":1},"ipfx_ingestion":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"source_resource_ids":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_collector_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_interface":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","optional":true},"applied_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"auxiliary_mode":{"type":"TypeString","optional":true},"auxiliary_sku":{"type":"TypeString","optional":true},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"internal_dns_name_label":{"type":"TypeString","optional":true},"internal_domain_name_suffix":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"gateway_load_balancer_frontend_ip_configuration_id":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true,"computed":true},"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_address_allocation":{"type":"TypeString","required":true},"private_ip_address_version":{"type":"TypeString","optional":true,"default":"IPv4"},"public_ip_address_id":{"type":"TypeString","optional":true},"subnet_id":{"type":"TypeString","optional":true}}}},"ip_forwarding_enabled":{"type":"TypeBool","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mac_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_interface_application_gateway_backend_address_pool_association":{"schema":{"backend_address_pool_id":{"type":"TypeString","required":true,"forceNew":true},"ip_configuration_name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_interface_application_security_group_association":{"schema":{"application_security_group_id":{"type":"TypeString","required":true,"forceNew":true},"network_interface_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_interface_backend_address_pool_association":{"schema":{"backend_address_pool_id":{"type":"TypeString","required":true,"forceNew":true},"ip_configuration_name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_interface_nat_rule_association":{"schema":{"ip_configuration_name":{"type":"TypeString","required":true,"forceNew":true},"nat_rule_id":{"type":"TypeString","required":true,"forceNew":true},"network_interface_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_interface_security_group_association":{"schema":{"network_interface_id":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_manager":{"schema":{"cross_tenant_scopes":{"type":"TypeList","computed":true,"elem":{"schema":{"management_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"subscriptions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}}}},"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scope":{"type":"TypeList","required":true,"elem":{"schema":{"management_group_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"subscription_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"scope_accesses":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_admin_rule":{"schema":{"action":{"type":"TypeString","required":true},"admin_rule_collection_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"destination":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","required":true},"address_prefix_type":{"type":"TypeString","required":true}}}},"destination_port_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"source":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","required":true},"address_prefix_type":{"type":"TypeString","required":true}}}},"source_port_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_admin_rule_collection":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_group_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"security_admin_configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_connectivity_configuration":{"schema":{"applies_to_group":{"type":"TypeList","required":true,"elem":{"schema":{"global_mesh_enabled":{"type":"TypeBool","optional":true},"group_connectivity":{"type":"TypeString","required":true},"network_group_id":{"type":"TypeString","required":true},"use_hub_gateway":{"type":"TypeBool","optional":true}}}},"connectivity_topology":{"type":"TypeString","required":true},"delete_existing_peering_enabled":{"type":"TypeBool","optional":true},"description":{"type":"TypeString","optional":true},"global_mesh_enabled":{"type":"TypeBool","optional":true},"hub":{"type":"TypeList","optional":true,"elem":{"schema":{"resource_id":{"type":"TypeString","required":true},"resource_type":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_deployment":{"schema":{"configuration_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true},"scope_access":{"type":"TypeString","required":true,"forceNew":true},"triggers":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":1440,"read":5,"delete":1440,"update":1440}},"azurerm_network_manager_management_group_connection":{"schema":{"connection_state":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_network_group":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_scope_connection":{"schema":{"connection_state":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true},"target_scope_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_security_admin_configuration":{"schema":{"apply_on_network_intent_policy_based_services":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_manager_static_member":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"network_group_id":{"type":"TypeString","required":true,"forceNew":true},"region":{"type":"TypeString","computed":true},"target_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_manager_subscription_connection":{"schema":{"connection_state":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_manager_id":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_packet_capture":{"schema":{"filter":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"local_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"local_port":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true},"remote_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"remote_port":{"type":"TypeString","optional":true,"forceNew":true}}}},"maximum_bytes_per_packet":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"maximum_bytes_per_session":{"type":"TypeInt","optional":true,"default":1073741824,"forceNew":true},"maximum_capture_duration":{"type":"TypeInt","optional":true,"default":18000,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_location":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"file_path":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_path":{"type":"TypeString","computed":true}}},"maxItems":1},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_network_profile":{"schema":{"container_network_interface":{"type":"TypeList","required":true,"elem":{"schema":{"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true}}},"maxItems":1},"container_network_interface_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_security_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"security_rule":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"access":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"destination_address_prefix":{"type":"TypeString","optional":true},"destination_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_port_range":{"type":"TypeString","optional":true},"destination_port_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"priority":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"source_address_prefix":{"type":"TypeString","optional":true},"source_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_port_range":{"type":"TypeString","optional":true},"source_port_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_security_rule":{"schema":{"access":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"destination_address_prefix":{"type":"TypeString","optional":true},"destination_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":10},"destination_port_range":{"type":"TypeString","optional":true},"destination_port_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_address_prefix":{"type":"TypeString","optional":true},"source_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":10},"source_port_range":{"type":"TypeString","optional":true},"source_port_ranges":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_watcher":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_network_watcher_flow_log":{"schema":{"enabled":{"type":"TypeBool","required":true},"location":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","optional":true,"computed":true},"network_watcher_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_policy":{"type":"TypeList","required":true,"elem":{"schema":{"days":{"type":"TypeInt","required":true},"enabled":{"type":"TypeBool","required":true}}},"maxItems":1},"storage_account_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","optional":true,"computed":true},"traffic_analytics":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"interval_in_minutes":{"type":"TypeInt","optional":true,"default":60},"workspace_id":{"type":"TypeString","required":true},"workspace_region":{"type":"TypeString","required":true},"workspace_resource_id":{"type":"TypeString","required":true}}},"maxItems":1},"version":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_new_relic_monitor":{"schema":{"account_creation_source":{"type":"TypeString","optional":true,"default":"LIFTR","forceNew":true},"account_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"ingestion_key":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"org_creation_source":{"type":"TypeString","optional":true,"default":"LIFTR","forceNew":true},"organization_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"plan":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"billing_cycle":{"type":"TypeString","optional":true,"default":"MONTHLY","forceNew":true},"effective_date":{"type":"TypeString","required":true,"forceNew":true},"plan_id":{"type":"TypeString","optional":true,"default":"newrelic-pay-as-you-go-free-live","forceNew":true},"usage_type":{"type":"TypeString","optional":true,"default":"PAYG","forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"user":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"email":{"type":"TypeString","required":true,"forceNew":true},"first_name":{"type":"TypeString","required":true,"forceNew":true},"last_name":{"type":"TypeString","required":true,"forceNew":true},"phone_number":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"user_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_new_relic_tag_rule":{"schema":{"activity_log_enabled":{"type":"TypeBool","optional":true,"default":false},"azure_active_directory_log_enabled":{"type":"TypeBool","optional":true,"default":false},"log_tag_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"metric_enabled":{"type":"TypeBool","optional":true,"default":false},"metric_tag_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"monitor_id":{"type":"TypeString","required":true,"forceNew":true},"subscription_log_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_nginx_certificate":{"schema":{"certificate_virtual_path":{"type":"TypeString","required":true},"key_vault_secret_id":{"type":"TypeString","required":true},"key_virtual_path":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"nginx_deployment_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":30}},"azurerm_nginx_configuration":{"schema":{"config_file":{"type":"TypeSet","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"virtual_path":{"type":"TypeString","required":true}}}},"nginx_deployment_id":{"type":"TypeString","required":true,"forceNew":true},"package_data":{"type":"TypeString","optional":true},"protected_file":{"type":"TypeSet","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"virtual_path":{"type":"TypeString","required":true}}}},"root_file":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_nginx_deployment":{"schema":{"auto_scale_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"max_capacity":{"type":"TypeInt","required":true},"min_capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}}},"automatic_upgrade_channel":{"type":"TypeString","optional":true,"default":"stable"},"capacity":{"type":"TypeInt","optional":true},"diagnose_support_enabled":{"type":"TypeBool","optional":true},"email":{"type":"TypeString","optional":true},"frontend_private":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"allocation_method":{"type":"TypeString","required":true,"forceNew":true},"ip_address":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}}},"frontend_public":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"ip_address":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logging_storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"container_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true}}}},"managed_resource_group":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}}},"nginx_version":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_notification_hub":{"schema":{"apns_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"application_mode":{"type":"TypeString","required":true},"bundle_id":{"type":"TypeString","required":true},"key_id":{"type":"TypeString","required":true},"team_id":{"type":"TypeString","required":true},"token":{"type":"TypeString","required":true}}},"maxItems":1},"browser_credential":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"subject":{"type":"TypeString","required":true},"vapid_private_key":{"type":"TypeString","required":true},"vapid_public_key":{"type":"TypeString","required":true}}},"maxItems":1},"gcm_credential":{"type":"TypeList","optional":true,"elem":{"schema":{"api_key":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_notification_hub_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"notification_hub_name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_notification_hub_namespace":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"servicebus_endpoint":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_oracle_autonomous_database":{"schema":{"admin_password":{"type":"TypeString","required":true,"forceNew":true},"auto_scaling_enabled":{"type":"TypeBool","required":true},"auto_scaling_for_storage_enabled":{"type":"TypeBool","required":true},"backup_retention_period_in_days":{"type":"TypeInt","required":true,"forceNew":true},"character_set":{"type":"TypeString","required":true,"forceNew":true},"compute_count":{"type":"TypeFloat","required":true},"compute_model":{"type":"TypeString","required":true,"forceNew":true},"customer_contacts":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"data_storage_size_in_tbs":{"type":"TypeInt","required":true},"db_version":{"type":"TypeString","required":true,"forceNew":true},"db_workload":{"type":"TypeString","required":true,"forceNew":true},"display_name":{"type":"TypeString","required":true,"forceNew":true},"license_model":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"mtls_connection_required":{"type":"TypeBool","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"national_character_set":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":120,"read":5,"delete":30,"update":30}},"azurerm_oracle_cloud_vm_cluster":{"schema":{"backup_subnet_cidr":{"type":"TypeString","optional":true,"forceNew":true},"cloud_exadata_infrastructure_id":{"type":"TypeString","required":true,"forceNew":true},"cluster_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"cpu_core_count":{"type":"TypeInt","required":true,"forceNew":true},"data_collection_options":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"diagnostics_events_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"health_monitoring_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"incident_logs_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true}}},"maxItems":1,"minItems":1},"data_storage_percentage":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"data_storage_size_in_tbs":{"type":"TypeFloat","optional":true,"computed":true,"forceNew":true},"db_node_storage_size_in_gbs":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"db_servers":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","required":true,"forceNew":true},"domain":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"gi_version":{"type":"TypeString","required":true,"forceNew":true},"hostname":{"type":"TypeString","required":true,"forceNew":true},"hostname_actual":{"type":"TypeString","computed":true},"license_model":{"type":"TypeString","required":true,"forceNew":true},"local_backup_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"memory_size_in_gbs":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"ocid":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scan_listener_port_tcp":{"type":"TypeInt","optional":true,"default":1521,"forceNew":true},"scan_listener_port_tcp_ssl":{"type":"TypeInt","optional":true,"default":2484,"forceNew":true},"sparse_diskgroup_enabled":{"type":"TypeBool","optional":true,"computed":true,"forceNew":true},"ssh_public_keys":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"time_zone":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"zone_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":1440,"read":5,"delete":30,"update":30}},"azurerm_oracle_exadata_infrastructure":{"schema":{"compute_count":{"type":"TypeInt","required":true,"forceNew":true},"customer_contacts":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"days_of_week":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"hours_of_day":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeInt"}},"lead_time_in_weeks":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"months":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeString"}},"patching_mode":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"preference":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"weeks_of_month":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"type":"TypeInt"}}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"shape":{"type":"TypeString","required":true,"forceNew":true},"storage_count":{"type":"TypeInt","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":120,"read":5,"delete":60,"update":30}},"azurerm_orbital_contact":{"schema":{"contact_profile_id":{"type":"TypeString","required":true,"forceNew":true},"ground_station_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"reservation_end_time":{"type":"TypeString","required":true,"forceNew":true},"reservation_start_time":{"type":"TypeString","required":true,"forceNew":true},"spacecraft_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_orbital_contact_profile":{"schema":{"auto_tracking":{"type":"TypeString","required":true},"event_hub_uri":{"type":"TypeString","optional":true},"links":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"channels":{"type":"TypeList","required":true,"elem":{"schema":{"bandwidth_mhz":{"type":"TypeFloat","required":true},"center_frequency_mhz":{"type":"TypeFloat","required":true},"demodulation_configuration":{"type":"TypeString","optional":true},"end_point":{"type":"TypeSet","required":true,"elem":{"schema":{"end_point_name":{"type":"TypeString","required":true},"ip_address":{"type":"TypeString","optional":true},"port":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"modulation_configuration":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true}}},"minItems":1},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"polarization":{"type":"TypeString","required":true}}},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_elevation_degrees":{"type":"TypeFloat","optional":true},"minimum_variable_contact_duration":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_configuration_subnet_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_orbital_spacecraft":{"schema":{"links":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"bandwidth_mhz":{"type":"TypeFloat","required":true},"center_frequency_mhz":{"type":"TypeFloat","required":true},"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"polarization":{"type":"TypeString","required":true}}},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"norad_id":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"title_line":{"type":"TypeString","required":true},"two_line_elements":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":2,"minItems":2}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_orchestrated_virtual_machine_scale_set":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"automatic_instance_repair":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","required":true},"grace_period":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"create_option":{"type":"TypeString","optional":true,"default":"Empty"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"lun":{"type":"TypeInt","optional":true,"computed":true},"storage_account_type":{"type":"TypeString","required":true},"ultra_ssd_disk_iops_read_write":{"type":"TypeInt","optional":true,"computed":true},"ultra_ssd_disk_mbps_read_write":{"type":"TypeInt","optional":true,"computed":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extension":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"auto_upgrade_minor_version_enabled":{"type":"TypeBool","optional":true,"default":true},"extensions_to_provision_after_vm_creation":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"failure_suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"force_extension_execution_on_change":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"publisher":{"type":"TypeString","required":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true}}}},"extension_operations_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"instances":{"type":"TypeInt","optional":true,"computed":true},"license_type":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","optional":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enable_accelerated_networking":{"type":"TypeBool","optional":true,"default":false},"enable_ip_forwarding":{"type":"TypeBool","optional":true,"default":false},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":20},"load_balancer_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true,"default":false},"public_ip_address":{"type":"TypeList","optional":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","optional":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"ip_tag":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"sku_name":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true}}}},"subnet_id":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true,"default":"IPv4"}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","optional":true},"primary":{"type":"TypeBool","optional":true,"default":false}}}},"os_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"os_profile":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_data":{"type":"TypeString","optional":true},"linux_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"admin_password":{"type":"TypeString","optional":true,"forceNew":true},"admin_ssh_key":{"type":"TypeSet","optional":true,"elem":{"schema":{"public_key":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}}},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"computer_name_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"disable_password_authentication":{"type":"TypeBool","optional":true,"default":true},"patch_assessment_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"patch_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}}}},"maxItems":1},"windows_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"additional_unattend_content":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"content":{"type":"TypeString","required":true,"forceNew":true},"setting":{"type":"TypeString","required":true,"forceNew":true}}}},"admin_password":{"type":"TypeString","required":true,"forceNew":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"computer_name_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"enable_automatic_updates":{"type":"TypeBool","optional":true,"default":true},"hotpatching_enabled":{"type":"TypeBool","optional":true,"default":false},"patch_assessment_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"patch_mode":{"type":"TypeString","optional":true,"default":"AutomaticByOS"},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"store":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"timezone":{"type":"TypeString","optional":true},"winrm_listener":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true}}}}}},"maxItems":1}}},"maxItems":1},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain_count":{"type":"TypeInt","required":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"priority_mix":{"type":"TypeList","optional":true,"elem":{"schema":{"base_regular_count":{"type":"TypeInt","optional":true,"default":0},"regular_percentage_above_base":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"single_placement_group":{"type":"TypeBool","optional":true,"computed":true},"sku_name":{"type":"TypeString","optional":true},"sku_profile":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"allocation_strategy":{"type":"TypeString","required":true},"vm_sizes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"source_image_id":{"type":"TypeString","optional":true},"source_image_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"unique_id":{"type":"TypeString","computed":true},"user_data_base64":{"type":"TypeString","optional":true},"zone_balance":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_palo_alto_local_rulestack":{"schema":{"anti_spyware_profile":{"type":"TypeString","optional":true},"anti_virus_profile":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"dns_subscription":{"type":"TypeString","optional":true},"file_blocking_profile":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"url_filtering_profile":{"type":"TypeString","optional":true},"vulnerability_profile":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_local_rulestack_certificate":{"schema":{"audit_comment":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"key_vault_certificate_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true},"rulestack_id":{"type":"TypeString","required":true,"forceNew":true},"self_signed":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_local_rulestack_fqdn_list":{"schema":{"audit_comment":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"fully_qualified_domain_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"rulestack_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_local_rulestack_outbound_trust_certificate_association":{"schema":{"certificate_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_palo_alto_local_rulestack_outbound_untrust_certificate_association":{"schema":{"certificate_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_palo_alto_local_rulestack_prefix_list":{"schema":{"audit_comment":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"prefix_list":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"rulestack_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_local_rulestack_rule":{"schema":{"action":{"type":"TypeString","required":true},"applications":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"audit_comment":{"type":"TypeString","optional":true},"category":{"type":"TypeList","optional":true,"elem":{"schema":{"custom_urls":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"feeds":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1,"minItems":1},"decryption_rule_type":{"type":"TypeString","optional":true,"default":"None"},"description":{"type":"TypeString","optional":true},"destination":{"type":"TypeList","required":true,"elem":{"schema":{"cidrs":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"countries":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"feeds":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"local_rulestack_fqdn_list_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"local_rulestack_prefix_list_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"inspection_certificate_id":{"type":"TypeString","optional":true},"logging_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"negate_destination":{"type":"TypeBool","optional":true,"default":false},"negate_source":{"type":"TypeBool","optional":true,"default":false},"priority":{"type":"TypeInt","required":true,"forceNew":true},"protocol":{"type":"TypeString","optional":true},"protocol_ports":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"rulestack_id":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeList","required":true,"elem":{"schema":{"cidrs":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"countries":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"feeds":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"local_rulestack_prefix_list_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1,"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_palo_alto_next_generation_firewall_virtual_hub_local_rulestack":{"schema":{"destination_nat":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address":{"type":"TypeString","required":true}}},"maxItems":1},"frontend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address_id":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2},"use_azure_dns":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"egress_nat_ip_address_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"egress_nat_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_of_trust_for_user_defined_routes":{"type":"TypeString","computed":true},"network_virtual_appliance_id":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trusted_address_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"trusted_subnet_id":{"type":"TypeString","computed":true},"untrusted_subnet_id":{"type":"TypeString","computed":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rulestack_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":120,"update":180}},"azurerm_palo_alto_next_generation_firewall_virtual_hub_panorama":{"schema":{"destination_nat":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address":{"type":"TypeString","required":true}}},"maxItems":1},"frontend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address_id":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2},"use_azure_dns":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"egress_nat_ip_address_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"egress_nat_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_of_trust_for_user_defined_routes":{"type":"TypeString","computed":true},"network_virtual_appliance_id":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trusted_address_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"trusted_subnet_id":{"type":"TypeString","computed":true},"untrusted_subnet_id":{"type":"TypeString","computed":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"panorama":{"type":"TypeList","computed":true,"elem":{"schema":{"device_group_name":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"panorama_server_1":{"type":"TypeString","computed":true},"panorama_server_2":{"type":"TypeString","computed":true},"template_name":{"type":"TypeString","computed":true},"virtual_machine_ssh_key":{"type":"TypeString","computed":true}}}},"panorama_base64_config":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":120,"read":5,"delete":120,"update":120}},"azurerm_palo_alto_next_generation_firewall_virtual_network_local_rulestack":{"schema":{"destination_nat":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address":{"type":"TypeString","required":true}}},"maxItems":1},"frontend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address_id":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2},"use_azure_dns":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"egress_nat_ip_address_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"egress_nat_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trusted_address_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"vnet_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"ip_of_trust_for_user_defined_routes":{"type":"TypeString","computed":true},"trusted_subnet_id":{"type":"TypeString","optional":true},"untrusted_subnet_id":{"type":"TypeString","optional":true},"virtual_network_id":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rulestack_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":120,"update":180}},"azurerm_palo_alto_next_generation_firewall_virtual_network_panorama":{"schema":{"destination_nat":{"type":"TypeList","optional":true,"elem":{"schema":{"backend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address":{"type":"TypeString","required":true}}},"maxItems":1},"frontend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"public_ip_address_id":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","required":true}}}},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":2},"use_azure_dns":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"elem":{"schema":{"egress_nat_ip_address_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"egress_nat_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trusted_address_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"vnet_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"ip_of_trust_for_user_defined_routes":{"type":"TypeString","computed":true},"trusted_subnet_id":{"type":"TypeString","optional":true},"untrusted_subnet_id":{"type":"TypeString","optional":true},"virtual_network_id":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"panorama":{"type":"TypeList","computed":true,"elem":{"schema":{"device_group_name":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"panorama_server_1":{"type":"TypeString","computed":true},"panorama_server_2":{"type":"TypeString","computed":true},"template_name":{"type":"TypeString","computed":true},"virtual_machine_ssh_key":{"type":"TypeString","computed":true}}}},"panorama_base64_config":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_palo_alto_virtual_network_appliance":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_pim_active_role_assignment":{"schema":{"justification":{"type":"TypeString","optional":true,"description":"The justification for this role assignment","computed":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"description":"Object ID of the principal for this role assignment","forceNew":true},"principal_type":{"type":"TypeString","description":"Type of principal to which the role will be assigned","computed":true},"role_definition_id":{"type":"TypeString","required":true,"description":"Role definition ID for this role assignment","forceNew":true},"schedule":{"type":"TypeList","optional":true,"description":"The schedule details for this role assignment","computed":true,"forceNew":true,"elem":{"schema":{"expiration":{"type":"TypeList","optional":true,"elem":{"schema":{"duration_days":{"type":"TypeInt","optional":true,"description":"The duration of the role assignment in days","computed":true,"forceNew":true},"duration_hours":{"type":"TypeInt","optional":true,"description":"The duration of the role assignment in hours","computed":true,"forceNew":true},"end_date_time":{"type":"TypeString","optional":true,"description":"The end date/time of the role assignment","computed":true,"forceNew":true}}},"maxItems":1},"start_date_time":{"type":"TypeString","optional":true,"description":"The start date/time of the role assignment","computed":true,"forceNew":true}}},"maxItems":1},"scope":{"type":"TypeString","required":true,"description":"Scope for this role assignment, should be a valid resource ID","forceNew":true},"ticket":{"type":"TypeList","optional":true,"description":"Ticket details relating to the assignment","computed":true,"forceNew":true,"elem":{"schema":{"number":{"type":"TypeString","optional":true,"description":"User-supplied ticket number to be included with the request","forceNew":true},"system":{"type":"TypeString","optional":true,"description":"User-supplied ticket system name to be included with the request","forceNew":true}}},"maxItems":1}},"timeouts":{"create":10,"read":5,"delete":10}},"azurerm_pim_eligible_role_assignment":{"schema":{"justification":{"type":"TypeString","optional":true,"description":"The justification for this eligible role assignment","computed":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"description":"Object ID of the principal for this eligible role assignment","forceNew":true},"principal_type":{"type":"TypeString","description":"Type of principal to which the role will be assigned","computed":true},"role_definition_id":{"type":"TypeString","required":true,"description":"Role definition ID for this eligible role assignment","forceNew":true},"schedule":{"type":"TypeList","optional":true,"description":"The schedule details for this eligible role assignment","computed":true,"forceNew":true,"elem":{"schema":{"expiration":{"type":"TypeList","optional":true,"elem":{"schema":{"duration_days":{"type":"TypeInt","optional":true,"description":"The duration of the eligible role assignment in days","computed":true,"forceNew":true},"duration_hours":{"type":"TypeInt","optional":true,"description":"The duration of the eligible role assignment in hours","computed":true,"forceNew":true},"end_date_time":{"type":"TypeString","optional":true,"description":"The end date/time of the eligible role assignment","computed":true,"forceNew":true}}},"maxItems":1},"start_date_time":{"type":"TypeString","optional":true,"description":"The start date/time","computed":true,"forceNew":true}}},"maxItems":1},"scope":{"type":"TypeString","required":true,"description":"Scope for this eligible role assignment, should be a valid resource ID","forceNew":true},"ticket":{"type":"TypeList","optional":true,"description":"Ticket details relating to the eligible assignment","computed":true,"forceNew":true,"elem":{"schema":{"number":{"type":"TypeString","optional":true,"description":"User-supplied ticket number to be included with the request","forceNew":true},"system":{"type":"TypeString","optional":true,"description":"User-supplied ticket system name to be included with the request","forceNew":true}}},"maxItems":1}},"timeouts":{"create":10,"read":5,"delete":10}},"azurerm_point_to_site_vpn_gateway":{"schema":{"connection_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"internet_security_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"name":{"type":"TypeString","required":true},"route":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"associated_route_table_id":{"type":"TypeString","required":true},"inbound_route_map_id":{"type":"TypeString","optional":true},"outbound_route_map_id":{"type":"TypeString","optional":true},"propagated_route_table":{"type":"TypeList","optional":true,"elem":{"schema":{"ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"labels":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"vpn_client_address_pool":{"type":"TypeList","required":true,"elem":{"schema":{"address_prefixes":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}}},"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_preference_internet_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"scale_unit":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true},"vpn_server_configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_policy_definition":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"management_group_id":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"mode":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeString","optional":true},"policy_rule":{"type":"TypeString","optional":true},"policy_type":{"type":"TypeString","required":true,"forceNew":true},"role_definition_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_policy_set_definition":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"management_group_id":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeString","optional":true},"policy_definition_group":{"type":"TypeSet","optional":true,"elem":{"schema":{"additional_metadata_resource_id":{"type":"TypeString","optional":true},"category":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true}}}},"policy_definition_reference":{"type":"TypeList","required":true,"elem":{"schema":{"parameter_values":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true},"policy_group_names":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"reference_id":{"type":"TypeString","optional":true,"computed":true}}}},"policy_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_policy_virtual_machine_configuration_assignment":{"schema":{"configuration":{"type":"TypeList","required":true,"elem":{"schema":{"assignment_type":{"type":"TypeString","optional":true},"content_hash":{"type":"TypeString","optional":true,"computed":true},"content_uri":{"type":"TypeString","optional":true,"computed":true},"parameter":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_portal_dashboard":{"schema":{"dashboard_properties":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_portal_tenant_configuration":{"schema":{"private_markdown_storage_enforced":{"type":"TypeBool","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_postgresql_active_directory_administrator":{"schema":{"login":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_postgresql_configuration":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_postgresql_database":{"schema":{"charset":{"type":"TypeString","required":true,"forceNew":true},"collation":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_postgresql_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_postgresql_flexible_server":{"schema":{"administrator_login":{"type":"TypeString","optional":true,"computed":true},"administrator_password":{"type":"TypeString","optional":true},"authentication":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory_auth_enabled":{"type":"TypeBool","optional":true,"default":false},"password_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"tenant_id":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_grow_enabled":{"type":"TypeBool","optional":true,"default":false},"backup_retention_days":{"type":"TypeInt","optional":true,"computed":true},"create_mode":{"type":"TypeString","optional":true},"customer_managed_key":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"geo_backup_key_vault_key_id":{"type":"TypeString","optional":true},"geo_backup_user_assigned_identity_id":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true},"primary_user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"delegated_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"geo_redundant_backup_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"high_availability":{"type":"TypeList","optional":true,"elem":{"schema":{"mode":{"type":"TypeString","required":true},"standby_availability_zone":{"type":"TypeString","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"maintenance_window":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeInt","optional":true,"default":0},"start_hour":{"type":"TypeInt","optional":true,"default":0},"start_minute":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"point_in_time_restore_time_in_utc":{"type":"TypeString","optional":true,"forceNew":true},"private_dns_zone_id":{"type":"TypeString","optional":true,"computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"replication_role":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","optional":true,"computed":true},"source_server_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_mb":{"type":"TypeInt","optional":true,"computed":true},"storage_tier":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"computed":true},"zone":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_postgresql_flexible_server_active_directory_administrator":{"schema":{"object_id":{"type":"TypeString","required":true,"forceNew":true},"principal_name":{"type":"TypeString","required":true,"forceNew":true},"principal_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_postgresql_flexible_server_configuration":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_postgresql_flexible_server_database":{"schema":{"charset":{"type":"TypeString","optional":true,"default":"UTF8","forceNew":true},"collation":{"type":"TypeString","optional":true,"default":"en_US.utf8","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_postgresql_flexible_server_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"server_id":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_postgresql_flexible_server_virtual_endpoint":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name of the Virtual Endpoint","forceNew":true},"replica_server_id":{"type":"TypeString","required":true,"description":"The Resource ID of the *Replica* Postgres Flexible Server this should be associated with"},"source_server_id":{"type":"TypeString","required":true,"description":"The Resource ID of the *Source* Postgres Flexible Server this should be associated with","forceNew":true},"type":{"type":"TypeString","required":true,"description":"The type of Virtual Endpoint","forceNew":true}},"timeouts":{"create":10,"read":5,"delete":5,"update":5}},"azurerm_postgresql_server":{"schema":{"administrator_login":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"administrator_login_password":{"type":"TypeString","optional":true},"auto_grow_enabled":{"type":"TypeBool","optional":true,"default":true},"backup_retention_days":{"type":"TypeInt","optional":true,"computed":true},"create_mode":{"type":"TypeString","optional":true,"default":"Default"},"creation_source_server_id":{"type":"TypeString","optional":true},"fqdn":{"type":"TypeString","computed":true},"geo_redundant_backup_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"restore_point_in_time":{"type":"TypeString","optional":true},"sku_name":{"type":"TypeString","required":true},"ssl_enforcement_enabled":{"type":"TypeBool","required":true},"ssl_minimal_tls_version_enforced":{"type":"TypeString","optional":true,"default":"TLS1_2"},"storage_mb":{"type":"TypeInt","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"threat_detection_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins":{"type":"TypeBool","optional":true},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true},"retention_days":{"type":"TypeInt","optional":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}}},"maxItems":1},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_postgresql_server_key":{"schema":{"key_vault_key_id":{"type":"TypeString","required":true},"server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_postgresql_virtual_network_rule":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_powerbi_embedded":{"schema":{"administrators":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"mode":{"type":"TypeString","optional":true,"default":"Gen1","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_a_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"maxItems":20},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_aaaa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_cname_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_mx_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"default":"@","forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"exchange":{"type":"TypeString","required":true},"preference":{"type":"TypeInt","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_ptr_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"records":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_dns_forwarding_ruleset":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_dns_resolver_outbound_endpoint_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_forwarding_rule":{"schema":{"dns_forwarding_ruleset_id":{"type":"TypeString","required":true,"forceNew":true},"domain_name":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"target_dns_servers":{"type":"TypeList","required":true,"elem":{"schema":{"ip_address":{"type":"TypeString","required":true},"port":{"type":"TypeInt","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_inbound_endpoint":{"schema":{"ip_configurations":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","optional":true,"computed":true},"private_ip_allocation_method":{"type":"TypeString","optional":true,"default":"Dynamic"},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_dns_resolver_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_outbound_endpoint":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_dns_resolver_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_resolver_virtual_network_link":{"schema":{"dns_forwarding_ruleset_id":{"type":"TypeString","required":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_srv_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"port":{"type":"TypeInt","required":true},"priority":{"type":"TypeInt","required":true},"target":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_txt_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"record":{"type":"TypeSet","required":true,"elem":{"schema":{"value":{"type":"TypeString","required":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","required":true},"zone_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_zone":{"schema":{"max_number_of_record_sets":{"type":"TypeInt","computed":true},"max_number_of_virtual_network_links":{"type":"TypeInt","computed":true},"max_number_of_virtual_network_links_with_registration":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"number_of_record_sets":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"soa_record":{"type":"TypeList","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"email":{"type":"TypeString","required":true},"expire_time":{"type":"TypeInt","optional":true,"default":2419200},"fqdn":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"minimum_ttl":{"type":"TypeInt","optional":true,"default":10},"refresh_time":{"type":"TypeInt","optional":true,"default":3600},"retry_time":{"type":"TypeInt","optional":true,"default":300},"serial_number":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","optional":true,"default":3600}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_dns_zone_virtual_network_link":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"private_dns_zone_name":{"type":"TypeString","required":true,"forceNew":true},"registration_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_private_endpoint":{"schema":{"custom_dns_configs":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdn":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"custom_network_interface_name":{"type":"TypeString","optional":true,"forceNew":true},"ip_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"member_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","required":true,"forceNew":true},"subresource_name":{"type":"TypeString","optional":true,"forceNew":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"private_dns_zone_configs":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"private_dns_zone_id":{"type":"TypeString","computed":true},"record_sets":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdn":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"type":{"type":"TypeString","computed":true}}}}}}},"private_dns_zone_group":{"type":"TypeList","optional":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_dns_zone_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"private_service_connection":{"type":"TypeList","required":true,"elem":{"schema":{"is_manual_connection":{"type":"TypeBool","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_connection_resource_alias":{"type":"TypeString","optional":true,"forceNew":true},"private_connection_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"request_message":{"type":"TypeString","optional":true},"subresource_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_private_endpoint_application_security_group_association":{"schema":{"application_security_group_id":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_private_link_service":{"schema":{"alias":{"type":"TypeString","computed":true},"auto_approval_subscription_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enable_proxy_protocol":{"type":"TypeBool","optional":true},"fqdns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"load_balancer_frontend_ip_configuration_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"nat_ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"primary":{"type":"TypeBool","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_address_version":{"type":"TypeString","optional":true,"default":"IPv4"},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":8},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"visibility_subscription_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_proximity_placement_group":{"schema":{"allowed_vm_sizes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_public_ip":{"schema":{"allocation_method":{"type":"TypeString","required":true},"ddos_protection_mode":{"type":"TypeString","optional":true,"default":"VirtualNetworkInherited"},"ddos_protection_plan_id":{"type":"TypeString","optional":true},"domain_name_label":{"type":"TypeString","optional":true},"domain_name_label_scope":{"type":"TypeString","optional":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"fqdn":{"type":"TypeString","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"default":4},"ip_address":{"type":"TypeString","computed":true},"ip_tags":{"type":"TypeMap","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"ip_version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"reverse_fqdn":{"type":"TypeString","optional":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"sku_tier":{"type":"TypeString","optional":true,"default":"Regional","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_public_ip_prefix":{"schema":{"ip_prefix":{"type":"TypeString","computed":true},"ip_version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"prefix_length":{"type":"TypeInt","optional":true,"default":28,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"sku_tier":{"type":"TypeString","optional":true,"default":"Regional","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_purview_account":{"schema":{"atlas_kafka_endpoint_primary_connection_string":{"type":"TypeString","computed":true},"atlas_kafka_endpoint_secondary_connection_string":{"type":"TypeString","computed":true},"catalog_endpoint":{"type":"TypeString","computed":true},"guardian_endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managed_resources":{"type":"TypeList","computed":true,"elem":{"schema":{"event_hub_namespace_id":{"type":"TypeString","computed":true},"resource_group_id":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scan_endpoint":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_recovery_services_vault":{"schema":{"classic_vmware_replication_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"cross_region_restore_enabled":{"type":"TypeBool","optional":true,"default":false},"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"infrastructure_encryption_enabled":{"type":"TypeBool","required":true},"key_id":{"type":"TypeString","required":true},"use_system_assigned_identity":{"type":"TypeBool","optional":true,"default":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"immutability":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"monitoring":{"type":"TypeList","optional":true,"elem":{"schema":{"alerts_for_all_job_failures_enabled":{"type":"TypeBool","optional":true,"default":true},"alerts_for_critical_operation_failures_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"soft_delete_enabled":{"type":"TypeBool","optional":true,"default":true},"storage_mode_type":{"type":"TypeString","optional":true,"default":"GeoRedundant"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":120,"read":5,"delete":30,"update":60}},"azurerm_recovery_services_vault_resource_guard_association":{"schema":{"resource_guard_id":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_redhat_openshift_cluster":{"schema":{"api_server_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"ip_address":{"type":"TypeString","computed":true},"url":{"type":"TypeString","computed":true},"visibility":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"cluster_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"domain":{"type":"TypeString","required":true,"forceNew":true},"fips_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"forceNew":true},"pull_secret":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"console_url":{"type":"TypeString","computed":true},"ingress_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"visibility":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"main_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"outbound_type":{"type":"TypeString","optional":true,"default":"Loadbalancer","forceNew":true},"pod_cidr":{"type":"TypeString","required":true,"forceNew":true},"preconfigured_network_security_group_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"service_cidr":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_principal":{"type":"TypeList","required":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true},"client_secret":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"worker_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","required":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"node_count":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"vm_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_redis_cache":{"schema":{"access_keys_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"capacity":{"type":"TypeInt","required":true},"family":{"type":"TypeString","required":true},"hostname":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"non_ssl_port_enabled":{"type":"TypeBool","optional":true,"default":false},"patch_schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"maintenance_window":{"type":"TypeString","optional":true,"default":"PT5H"},"start_hour_utc":{"type":"TypeInt","optional":true}}}},"port":{"type":"TypeInt","computed":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"private_static_ip_address":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"redis_configuration":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"active_directory_authentication_enabled":{"type":"TypeBool","optional":true},"aof_backup_enabled":{"type":"TypeBool","optional":true},"aof_storage_connection_string_0":{"type":"TypeString","optional":true},"aof_storage_connection_string_1":{"type":"TypeString","optional":true},"authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"data_persistence_authentication_method":{"type":"TypeString","optional":true},"maxclients":{"type":"TypeInt","computed":true},"maxfragmentationmemory_reserved":{"type":"TypeInt","optional":true,"computed":true},"maxmemory_delta":{"type":"TypeInt","optional":true,"computed":true},"maxmemory_policy":{"type":"TypeString","optional":true,"default":"volatile-lru"},"maxmemory_reserved":{"type":"TypeInt","optional":true,"computed":true},"notify_keyspace_events":{"type":"TypeString","optional":true},"rdb_backup_enabled":{"type":"TypeBool","optional":true},"rdb_backup_frequency":{"type":"TypeInt","optional":true},"rdb_backup_max_snapshot_count":{"type":"TypeInt","optional":true},"rdb_storage_connection_string":{"type":"TypeString","optional":true},"storage_account_subscription_id":{"type":"TypeString","optional":true}}},"maxItems":1},"redis_version":{"type":"TypeString","optional":true,"default":6},"replicas_per_master":{"type":"TypeInt","optional":true,"computed":true},"replicas_per_primary":{"type":"TypeInt","optional":true,"computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"shard_count":{"type":"TypeInt","optional":true},"sku_name":{"type":"TypeString","required":true},"ssl_port":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_redis_cache_access_policy":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"permissions":{"type":"TypeString","required":true},"redis_cache_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_redis_cache_access_policy_assignment":{"schema":{"access_policy_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"object_id":{"type":"TypeString","required":true,"forceNew":true},"object_id_alias":{"type":"TypeString","required":true,"forceNew":true},"redis_cache_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":5}},"azurerm_redis_enterprise_cluster":{"schema":{"hostname":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_redis_enterprise_database":{"schema":{"client_protocol":{"type":"TypeString","optional":true,"default":"Encrypted","forceNew":true},"cluster_id":{"type":"TypeString","required":true,"forceNew":true},"clustering_policy":{"type":"TypeString","optional":true,"default":"OSSCluster","forceNew":true},"eviction_policy":{"type":"TypeString","optional":true,"default":"VolatileLRU","forceNew":true},"linked_database_group_nickname":{"type":"TypeString","optional":true,"forceNew":true},"linked_database_id":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":5},"module":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"args":{"type":"TypeString","optional":true,"default":"","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","computed":true}}},"maxItems":4},"name":{"type":"TypeString","optional":true,"default":"default","forceNew":true},"port":{"type":"TypeInt","optional":true,"default":10000,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"secondary_access_key":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_redis_firewall_rule":{"schema":{"end_ip":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"redis_cache_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"start_ip":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_redis_linked_server":{"schema":{"geo_replicated_primary_host_name":{"type":"TypeString","computed":true},"linked_redis_cache_id":{"type":"TypeString","required":true,"forceNew":true},"linked_redis_cache_location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server_role":{"type":"TypeString","required":true,"forceNew":true},"target_redis_cache_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_relay_hybrid_connection":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"relay_namespace_name":{"type":"TypeString","required":true,"forceNew":true},"requires_client_authorization":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"user_metadata":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_relay_hybrid_connection_authorization_rule":{"schema":{"hybrid_connection_name":{"type":"TypeString","required":true,"forceNew":true},"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_relay_namespace":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"metric_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":60,"update":30}},"azurerm_relay_namespace_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_deployment_script_azure_cli":{"schema":{"cleanup_preference":{"type":"TypeString","optional":true,"default":"Always","forceNew":true},"command_line":{"type":"TypeString","optional":true,"forceNew":true},"container":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"container_group_name":{"type":"TypeString","optional":true}}},"maxItems":1},"environment_variable":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"secure_value":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"force_update_tag":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outputs":{"type":"TypeString","computed":true},"primary_script_uri":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_interval":{"type":"TypeString","required":true,"forceNew":true},"script_content":{"type":"TypeString","optional":true,"forceNew":true},"storage_account":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"supporting_script_uris":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout":{"type":"TypeString","optional":true,"default":"P1D","forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_deployment_script_azure_power_shell":{"schema":{"cleanup_preference":{"type":"TypeString","optional":true,"default":"Always","forceNew":true},"command_line":{"type":"TypeString","optional":true,"forceNew":true},"container":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"container_group_name":{"type":"TypeString","optional":true}}},"maxItems":1},"environment_variable":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"secure_value":{"type":"TypeString","optional":true},"value":{"type":"TypeString","optional":true}}}},"force_update_tag":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"outputs":{"type":"TypeString","computed":true},"primary_script_uri":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"retention_interval":{"type":"TypeString","required":true,"forceNew":true},"script_content":{"type":"TypeString","optional":true,"forceNew":true},"storage_account":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"key":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"supporting_script_uris":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"timeout":{"type":"TypeString","optional":true,"default":"P1D","forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"managed_by":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_resource_group_cost_management_export":{"schema":{"active":{"type":"TypeBool","optional":true,"default":true},"export_data_options":{"type":"TypeList","required":true,"elem":{"schema":{"time_frame":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"export_data_storage_location":{"type":"TypeList","required":true,"elem":{"schema":{"container_id":{"type":"TypeString","required":true,"forceNew":true},"root_folder_path":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recurrence_period_end_date":{"type":"TypeString","required":true},"recurrence_period_start_date":{"type":"TypeString","required":true},"recurrence_type":{"type":"TypeString","required":true},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_cost_management_view":{"schema":{"accumulated":{"type":"TypeBool","required":true,"forceNew":true},"chart_type":{"type":"TypeString","required":true},"dataset":{"type":"TypeList","required":true,"elem":{"schema":{"aggregation":{"type":"TypeSet","required":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"granularity":{"type":"TypeString","required":true},"grouping":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"sorting":{"type":"TypeList","optional":true,"elem":{"schema":{"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"display_name":{"type":"TypeString","required":true},"kpi":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"pivot":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"report_type":{"type":"TypeString","required":true},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true},"timeframe":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_policy_assignment":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enforce":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true}}}},"not_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","computed":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"value":{"type":"TypeString","required":true}}}},"parameters":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true},"resource_selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","required":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_policy_exemption":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"exemption_category":{"type":"TypeString","required":true},"expires_on":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_assignment_id":{"type":"TypeString","required":true,"forceNew":true},"policy_definition_reference_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_policy_remediation":{"schema":{"failure_percentage":{"type":"TypeFloat","optional":true},"location_filters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"parallel_deployments":{"type":"TypeInt","optional":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true},"resource_count":{"type":"TypeInt","optional":true},"resource_discovery_mode":{"type":"TypeString","optional":true,"default":"ExistingNonCompliant"},"resource_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_group_template_deployment":{"schema":{"debug_level":{"type":"TypeString","optional":true},"deployment_mode":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_content":{"type":"TypeString","computed":true},"parameters_content":{"type":"TypeString","optional":true,"computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_content":{"type":"TypeString","optional":true,"computed":true},"template_spec_version_id":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_resource_management_private_link":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_resource_management_private_link_association":{"schema":{"management_group_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","required":true,"forceNew":true},"resource_management_private_link_id":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_resource_policy_assignment":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enforce":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true}}}},"not_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","computed":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"value":{"type":"TypeString","required":true}}}},"parameters":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true,"forceNew":true},"resource_id":{"type":"TypeString","required":true,"forceNew":true},"resource_selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","required":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_policy_exemption":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"exemption_category":{"type":"TypeString","required":true},"expires_on":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_assignment_id":{"type":"TypeString","required":true,"forceNew":true},"policy_definition_reference_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_policy_remediation":{"schema":{"failure_percentage":{"type":"TypeFloat","optional":true},"location_filters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"parallel_deployments":{"type":"TypeInt","optional":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true},"resource_count":{"type":"TypeInt","optional":true},"resource_discovery_mode":{"type":"TypeString","optional":true,"default":"ExistingNonCompliant"},"resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_resource_provider_registration":{"schema":{"feature":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"registered":{"type":"TypeBool","required":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":120,"read":5,"delete":30,"update":120}},"azurerm_restore_point_collection":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_role_assignment":{"schema":{"condition":{"type":"TypeString","optional":true,"forceNew":true},"condition_version":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"delegated_managed_identity_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_type":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"role_definition_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"role_definition_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"scope":{"type":"TypeString","required":true,"forceNew":true},"skip_service_principal_aad_check":{"type":"TypeBool","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_role_definition":{"schema":{"assignable_scopes":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"permissions":{"type":"TypeList","optional":true,"elem":{"schema":{"actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"not_actions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"not_data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"role_definition_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"role_definition_resource_id":{"type":"TypeString","computed":true},"scope":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":60}},"azurerm_role_management_policy":{"schema":{"activation_rules":{"type":"TypeList","optional":true,"description":"The activation rules of the policy","computed":true,"elem":{"schema":{"approval_stage":{"type":"TypeList","optional":true,"description":"The approval stages for the activation","elem":{"schema":{"primary_approver":{"type":"TypeSet","required":true,"description":"The IDs of the users or groups who can approve the activation","elem":{"schema":{"object_id":{"type":"TypeString","required":true,"description":"The ID of the object to act as an approver"},"type":{"type":"TypeString","required":true,"description":"The type of object acting as an approver"}}},"minItems":1}}},"maxItems":1},"maximum_duration":{"type":"TypeString","optional":true,"description":"The time after which the an activation can be valid for","computed":true},"require_approval":{"type":"TypeBool","optional":true,"description":"Whether an approval is required for activation","computed":true},"require_justification":{"type":"TypeBool","optional":true,"description":"Whether a justification is required during activation","computed":true},"require_multifactor_authentication":{"type":"TypeBool","optional":true,"description":"Whether multi-factor authentication is required during activation","computed":true},"require_ticket_info":{"type":"TypeBool","optional":true,"description":"Whether ticket information is required during activation","computed":true},"required_conditional_access_authentication_context":{"type":"TypeString","optional":true,"description":"Whether a conditional access context is required during activation","computed":true}}},"maxItems":1},"active_assignment_rules":{"type":"TypeList","optional":true,"description":"The rules for active assignment of the policy","computed":true,"elem":{"schema":{"expiration_required":{"type":"TypeBool","optional":true,"description":"Must the assignment have an expiry date","computed":true},"expire_after":{"type":"TypeString","optional":true,"description":"The duration after which assignments expire","computed":true},"require_justification":{"type":"TypeBool","optional":true,"description":"Whether a justification is required to make an assignment","computed":true},"require_multifactor_authentication":{"type":"TypeBool","optional":true,"description":"Whether multi-factor authentication is required to make an assignment","computed":true},"require_ticket_info":{"type":"TypeBool","optional":true,"description":"Whether ticket information is required to make an assignment","computed":true}}},"maxItems":1},"description":{"type":"TypeString","description":"The Description of the policy","computed":true},"eligible_assignment_rules":{"type":"TypeList","optional":true,"description":"The rules for eligible assignment of the policy","computed":true,"elem":{"schema":{"expiration_required":{"type":"TypeBool","optional":true,"description":"Must the assignment have an expiry date","computed":true},"expire_after":{"type":"TypeString","optional":true,"description":"The duration after which assignments expire","computed":true}}},"maxItems":1},"name":{"type":"TypeString","description":"The name of the policy","computed":true},"notification_rules":{"type":"TypeList","optional":true,"description":"The notification rules of the policy","computed":true,"elem":{"schema":{"active_assignments":{"type":"TypeList","optional":true,"description":"Notifications about active assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","optional":true,"description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"approver_notifications":{"type":"TypeList","optional":true,"description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"assignee_notifications":{"type":"TypeList","optional":true,"description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1}}},"maxItems":1},"eligible_activations":{"type":"TypeList","optional":true,"description":"Notifications about activations of eligible assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","optional":true,"description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"approver_notifications":{"type":"TypeList","optional":true,"description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"assignee_notifications":{"type":"TypeList","optional":true,"description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1}}},"maxItems":1},"eligible_assignments":{"type":"TypeList","optional":true,"description":"Notifications about eligible assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","optional":true,"description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"approver_notifications":{"type":"TypeList","optional":true,"description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1},"assignee_notifications":{"type":"TypeList","optional":true,"description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","optional":true,"description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","required":true,"description":"Whether the default recipients are notified"},"notification_level":{"type":"TypeString","required":true,"description":"What level of notifications are sent"}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"role_definition_id":{"type":"TypeString","required":true,"description":"ID of the Azure Role to which this policy is assigned","forceNew":true},"scope":{"type":"TypeString","required":true,"description":"The scope of the role to which this policy will apply","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_route":{"schema":{"address_prefix":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"next_hop_in_ip_address":{"type":"TypeString","optional":true},"next_hop_type":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route_table_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_route_filter":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"access":{"type":"TypeString","required":true},"communities":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true},"rule_type":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_route_map":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","optional":true,"elem":{"schema":{"parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"as_path":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"community":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"route_prefix":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"type":{"type":"TypeString","required":true}}}},"match_criterion":{"type":"TypeList","optional":true,"elem":{"schema":{"as_path":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"community":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"match_condition":{"type":"TypeString","required":true},"route_prefix":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","required":true},"next_step_if_matched":{"type":"TypeString","optional":true,"default":"Unknown"}}}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_route_server":{"schema":{"branch_to_branch_traffic_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_ip_address_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_state":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_router_asn":{"type":"TypeInt","computed":true},"virtual_router_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_route_server_bgp_connection":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"peer_asn":{"type":"TypeInt","required":true,"forceNew":true},"peer_ip":{"type":"TypeString","required":true,"forceNew":true},"route_server_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_route_table":{"schema":{"bgp_route_propagation_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"next_hop_in_ip_address":{"type":"TypeString","optional":true},"next_hop_type":{"type":"TypeString","required":true}}}},"subnets":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_search_service":{"schema":{"allowed_ips":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"authentication_failure_mode":{"type":"TypeString","optional":true},"customer_managed_key_enforcement_enabled":{"type":"TypeBool","optional":true,"default":false},"hosting_mode":{"type":"TypeString","optional":true,"default":"default","forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_count":{"type":"TypeInt","optional":true,"default":1},"primary_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"query_keys":{"type":"TypeList","computed":true,"elem":{"schema":{"key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"replica_count":{"type":"TypeInt","optional":true,"default":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_key":{"type":"TypeString","computed":true},"semantic_search_sku":{"type":"TypeString","optional":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_search_shared_private_link_service":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"search_service_id":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeString","computed":true},"subresource_name":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_security_center_assessment":{"schema":{"additional_data":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"assessment_policy_id":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeList","required":true,"elem":{"schema":{"cause":{"type":"TypeString","optional":true},"code":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true}}},"maxItems":1},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_security_center_assessment_policy":{"schema":{"categories":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","required":true},"display_name":{"type":"TypeString","required":true},"implementation_effort":{"type":"TypeString","optional":true},"name":{"type":"TypeString","computed":true},"remediation_description":{"type":"TypeString","optional":true},"severity":{"type":"TypeString","optional":true,"default":"Medium"},"threats":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"user_impact":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_security_center_auto_provisioning":{"schema":{"auto_provision":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_security_center_automation":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"connection_string":{"type":"TypeString","optional":true},"resource_id":{"type":"TypeString","required":true},"trigger_url":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"minItems":1},"description":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scopes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"source":{"type":"TypeList","required":true,"elem":{"schema":{"event_source":{"type":"TypeString","required":true},"rule_set":{"type":"TypeList","optional":true,"elem":{"schema":{"rule":{"type":"TypeList","required":true,"elem":{"schema":{"expected_value":{"type":"TypeString","required":true},"operator":{"type":"TypeString","required":true},"property_path":{"type":"TypeString","required":true},"property_type":{"type":"TypeString","required":true}}}}}}}}},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_security_center_contact":{"schema":{"alert_notifications":{"type":"TypeBool","required":true},"alerts_to_admins":{"type":"TypeBool","required":true},"email":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"phone":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_security_center_server_vulnerability_assessment_virtual_machine":{"schema":{"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":5,"read":5,"delete":10}},"azurerm_security_center_server_vulnerability_assessments_setting":{"schema":{"vulnerability_assessment_provider":{"type":"TypeString","required":true}},"timeouts":{"create":10,"read":5,"delete":10,"update":10}},"azurerm_security_center_setting":{"schema":{"enabled":{"type":"TypeBool","required":true},"setting_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":10,"read":5,"delete":10,"update":10}},"azurerm_security_center_storage_defender":{"schema":{"malware_scanning_on_upload_cap_gb_per_month":{"type":"TypeInt","optional":true,"default":-1},"malware_scanning_on_upload_enabled":{"type":"TypeBool","optional":true,"default":false},"override_subscription_settings_enabled":{"type":"TypeBool","optional":true,"default":false},"scan_results_event_grid_topic_id":{"type":"TypeString","optional":true},"sensitive_data_discovery_enabled":{"type":"TypeBool","optional":true,"default":false},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_security_center_subscription_pricing":{"schema":{"extension":{"type":"TypeSet","optional":true,"elem":{"schema":{"additional_extension_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}}},"resource_type":{"type":"TypeString","optional":true,"default":"VirtualMachines"},"subplan":{"type":"TypeString","optional":true},"tier":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_security_center_workspace":{"schema":{"scope":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_sentinel_alert_rule_anomaly_built_in":{"schema":{"anomaly_settings_version":{"type":"TypeInt","computed":true},"anomaly_version":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","required":true},"frequency":{"type":"TypeString","computed":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"mode":{"type":"TypeString","required":true},"multi_select_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","optional":true,"computed":true},"prioritized_exclude_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"exclude":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"prioritize":{"type":"TypeString","computed":true}}}},"required_data_connector":{"type":"TypeList","computed":true,"elem":{"schema":{"connector_id":{"type":"TypeString","computed":true},"data_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"settings_definition_id":{"type":"TypeString","computed":true},"single_select_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","computed":true}}}},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"threshold_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"max":{"type":"TypeString","computed":true},"min":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_sentinel_alert_rule_anomaly_duplicate":{"schema":{"anomaly_settings_version":{"type":"TypeInt","computed":true},"anomaly_version":{"type":"TypeString","computed":true},"built_in_rule_id":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","required":true},"frequency":{"type":"TypeString","computed":true},"is_default_settings":{"type":"TypeBool","computed":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"mode":{"type":"TypeString","required":true},"multi_select_observation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"values":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","computed":true},"prioritized_exclude_observation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"exclude":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"prioritize":{"type":"TypeString","optional":true}}}},"required_data_connector":{"type":"TypeList","computed":true,"elem":{"schema":{"connector_id":{"type":"TypeString","computed":true},"data_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"settings_definition_id":{"type":"TypeString","computed":true},"single_select_observation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","required":true}}}},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"threshold_observation":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"max":{"type":"TypeString","computed":true},"min":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_sentinel_alert_rule_fusion":{"schema":{"alert_rule_template_guid":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"default":"BuiltInFusion","forceNew":true},"source":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"sub_type":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true},"severities_allowed":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1}}}}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_machine_learning_behavior_analytics":{"schema":{"alert_rule_template_guid":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_ms_security_incident":{"schema":{"alert_rule_template_guid":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"display_name_exclude_filter":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"display_name_filter":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"minItems":1},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"product_filter":{"type":"TypeString","required":true},"severity_filter":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_nrt":{"schema":{"alert_details_override":{"type":"TypeList","optional":true,"elem":{"schema":{"description_format":{"type":"TypeString","optional":true},"display_name_format":{"type":"TypeString","optional":true},"dynamic_property":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"severity_column_name":{"type":"TypeString","optional":true},"tactics_column_name":{"type":"TypeString","optional":true}}}},"alert_rule_template_guid":{"type":"TypeString","optional":true,"forceNew":true},"alert_rule_template_version":{"type":"TypeString","optional":true,"forceNew":true},"custom_details":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"entity_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"entity_type":{"type":"TypeString","required":true},"field_mapping":{"type":"TypeList","required":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true},"identifier":{"type":"TypeString","required":true}}},"maxItems":3}}},"maxItems":5},"event_grouping":{"type":"TypeList","required":true,"elem":{"schema":{"aggregation_method":{"type":"TypeString","required":true}}},"maxItems":1},"incident":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"create_incident_enabled":{"type":"TypeBool","required":true},"grouping":{"type":"TypeList","required":true,"elem":{"schema":{"by_alert_details":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"by_custom_details":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"by_entities":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"entity_matching_method":{"type":"TypeString","optional":true,"default":"AnyAlert"},"lookback_duration":{"type":"TypeString","optional":true,"default":"PT5M"},"reopen_closed_incidents":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1,"minItems":1}}},"maxItems":1,"minItems":1},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query":{"type":"TypeString","required":true},"sentinel_entity_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true}}},"maxItems":5},"severity":{"type":"TypeString","required":true},"suppression_duration":{"type":"TypeString","optional":true,"default":"PT5H"},"suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"tactics":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_scheduled":{"schema":{"alert_details_override":{"type":"TypeList","optional":true,"elem":{"schema":{"description_format":{"type":"TypeString","optional":true},"display_name_format":{"type":"TypeString","optional":true},"dynamic_property":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"severity_column_name":{"type":"TypeString","optional":true},"tactics_column_name":{"type":"TypeString","optional":true}}}},"alert_rule_template_guid":{"type":"TypeString","optional":true,"forceNew":true},"alert_rule_template_version":{"type":"TypeString","optional":true},"custom_details":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"entity_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"entity_type":{"type":"TypeString","required":true},"field_mapping":{"type":"TypeList","required":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true},"identifier":{"type":"TypeString","required":true}}},"maxItems":3}}},"maxItems":5},"event_grouping":{"type":"TypeList","optional":true,"elem":{"schema":{"aggregation_method":{"type":"TypeString","required":true}}},"maxItems":1},"incident":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"create_incident_enabled":{"type":"TypeBool","required":true},"grouping":{"type":"TypeList","required":true,"elem":{"schema":{"by_alert_details":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"by_custom_details":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"by_entities":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":true},"entity_matching_method":{"type":"TypeString","optional":true,"default":"AnyAlert"},"lookback_duration":{"type":"TypeString","optional":true,"default":"PT5M"},"reopen_closed_incidents":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1,"minItems":1}}},"maxItems":1,"minItems":1},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query":{"type":"TypeString","required":true},"query_frequency":{"type":"TypeString","optional":true,"default":"PT5H"},"query_period":{"type":"TypeString","optional":true,"default":"PT5H"},"sentinel_entity_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true}}},"maxItems":5},"severity":{"type":"TypeString","required":true},"suppression_duration":{"type":"TypeString","optional":true,"default":"PT5H"},"suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"tactics":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"trigger_operator":{"type":"TypeString","optional":true,"default":"GreaterThan"},"trigger_threshold":{"type":"TypeInt","optional":true,"default":0}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_alert_rule_threat_intelligence":{"schema":{"alert_rule_template_guid":{"type":"TypeString","required":true,"forceNew":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_automation_rule":{"schema":{"action_incident":{"type":"TypeList","optional":true,"elem":{"schema":{"classification":{"type":"TypeString","optional":true},"classification_comment":{"type":"TypeString","optional":true},"labels":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"order":{"type":"TypeInt","required":true},"owner_id":{"type":"TypeString","optional":true},"severity":{"type":"TypeString","optional":true},"status":{"type":"TypeString","optional":true}}}},"action_playbook":{"type":"TypeList","optional":true,"elem":{"schema":{"logic_app_id":{"type":"TypeString","required":true},"order":{"type":"TypeInt","required":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}}},"condition_json":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"expiration":{"type":"TypeString","optional":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"order":{"type":"TypeInt","required":true},"triggers_on":{"type":"TypeString","optional":true,"default":"Incidents"},"triggers_when":{"type":"TypeString","optional":true,"default":"Created"}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_sentinel_data_connector_aws_cloud_trail":{"schema":{"aws_role_arn":{"type":"TypeString","required":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_data_connector_aws_s3":{"schema":{"aws_role_arn":{"type":"TypeString","required":true},"destination_table":{"type":"TypeString","required":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sqs_urls":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_data_connector_azure_active_directory":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_azure_advanced_threat_protection":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_azure_security_center":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_dynamics_365":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_iot":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_microsoft_cloud_app_security":{"schema":{"alerts_enabled":{"type":"TypeBool","optional":true,"default":true},"discovery_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_data_connector_microsoft_defender_advanced_threat_protection":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_microsoft_threat_intelligence":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"microsoft_emerging_threat_feed_lookback_date":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_microsoft_threat_protection":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_office_365":{"schema":{"exchange_enabled":{"type":"TypeBool","optional":true,"default":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sharepoint_enabled":{"type":"TypeBool","optional":true,"default":true},"teams_enabled":{"type":"TypeBool","optional":true,"default":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_data_connector_office_365_project":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_office_atp":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_office_irm":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_office_power_bi":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_threat_intelligence":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"lookback_date":{"type":"TypeString","optional":true,"default":"1970-01-01T00:00:00Z","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_data_connector_threat_intelligence_taxii":{"schema":{"api_root_url":{"type":"TypeString","required":true},"collection_id":{"type":"TypeString","required":true},"display_name":{"type":"TypeString","required":true},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"lookback_date":{"type":"TypeString","optional":true,"default":"1970-01-01T00:00:00Z"},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true},"polling_frequency":{"type":"TypeString","optional":true,"default":"OnceAnHour"},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"user_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_log_analytics_workspace_onboarding":{"schema":{"customer_managed_key_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_metadata":{"schema":{"author":{"type":"TypeList","optional":true,"elem":{"schema":{"email":{"type":"TypeString","optional":true},"link":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true}}},"maxItems":1},"category":{"type":"TypeList","optional":true,"elem":{"schema":{"domains":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"verticals":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"content_id":{"type":"TypeString","required":true},"content_schema_version":{"type":"TypeString","optional":true,"default":"2.0"},"custom_version":{"type":"TypeString","optional":true},"dependency":{"type":"TypeString","optional":true},"first_publish_date":{"type":"TypeString","optional":true},"icon_id":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","required":true},"last_publish_date":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"parent_id":{"type":"TypeString","required":true},"preview_images":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"preview_images_dark":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"providers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"source":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true}}},"maxItems":1},"support":{"type":"TypeList","optional":true,"elem":{"schema":{"email":{"type":"TypeString","optional":true},"link":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"tier":{"type":"TypeString","required":true}}},"maxItems":1},"threat_analysis_tactics":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"threat_analysis_techniques":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_threat_intelligence_indicator":{"schema":{"confidence":{"type":"TypeInt","optional":true,"default":-1},"created_by":{"type":"TypeString","optional":true},"created_on":{"type":"TypeString","computed":true},"defanged":{"type":"TypeBool","computed":true},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","required":true},"extension":{"type":"TypeString","optional":true,"computed":true},"external_id":{"type":"TypeString","computed":true},"external_last_updated_time_utc":{"type":"TypeString","computed":true},"external_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"hashes":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"source_name":{"type":"TypeString","optional":true},"url":{"type":"TypeString","optional":true}}}},"granular_marking":{"type":"TypeList","optional":true,"elem":{"schema":{"language":{"type":"TypeString","optional":true},"marking_ref":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"guid":{"type":"TypeString","computed":true},"indicator_type":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"kill_chain_phase":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true}}}},"language":{"type":"TypeString","optional":true},"last_updated_time_utc":{"type":"TypeString","computed":true},"object_marking_refs":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"parsed_pattern":{"type":"TypeList","computed":true,"elem":{"schema":{"pattern_type_key":{"type":"TypeString","computed":true},"pattern_type_values":{"type":"TypeList","computed":true,"elem":{"schema":{"value":{"type":"TypeString","computed":true},"value_type":{"type":"TypeString","computed":true}}}}}}},"pattern":{"type":"TypeString","required":true},"pattern_type":{"type":"TypeString","required":true},"pattern_version":{"type":"TypeString","optional":true},"revoked":{"type":"TypeBool","optional":true,"default":false},"source":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"threat_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"validate_from_utc":{"type":"TypeString","required":true},"validate_until_utc":{"type":"TypeString","optional":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_sentinel_watchlist":{"schema":{"default_duration":{"type":"TypeString","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true,"forceNew":true},"display_name":{"type":"TypeString","required":true,"forceNew":true},"item_search_key":{"type":"TypeString","required":true,"forceNew":true},"labels":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"log_analytics_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_sentinel_watchlist_item":{"schema":{"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"properties":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}},"watchlist_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_service_fabric_cluster":{"schema":{"add_on_features":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"azure_active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"client_application_id":{"type":"TypeString","required":true},"cluster_application_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1},"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"thumbprint":{"type":"TypeString","required":true},"thumbprint_secondary":{"type":"TypeString","optional":true},"x509_store_name":{"type":"TypeString","required":true}}},"maxItems":1},"certificate_common_names":{"type":"TypeList","optional":true,"elem":{"schema":{"common_names":{"type":"TypeSet","required":true,"elem":{"schema":{"certificate_common_name":{"type":"TypeString","required":true},"certificate_issuer_thumbprint":{"type":"TypeString","optional":true}}},"minItems":1},"x509_store_name":{"type":"TypeString","required":true}}},"maxItems":1},"client_certificate_common_name":{"type":"TypeList","optional":true,"elem":{"schema":{"common_name":{"type":"TypeString","required":true},"is_admin":{"type":"TypeBool","required":true},"issuer_thumbprint":{"type":"TypeString","optional":true}}}},"client_certificate_thumbprint":{"type":"TypeList","optional":true,"elem":{"schema":{"is_admin":{"type":"TypeBool","required":true},"thumbprint":{"type":"TypeString","required":true}}}},"cluster_code_version":{"type":"TypeString","optional":true,"computed":true},"cluster_endpoint":{"type":"TypeString","computed":true},"diagnostics_config":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_endpoint":{"type":"TypeString","required":true},"protected_account_key_name":{"type":"TypeString","required":true},"queue_endpoint":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true},"table_endpoint":{"type":"TypeString","required":true}}},"maxItems":1},"fabric_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"management_endpoint":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_type":{"type":"TypeList","required":true,"elem":{"schema":{"application_ports":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"end_port":{"type":"TypeInt","required":true},"start_port":{"type":"TypeInt","required":true}}},"maxItems":1},"capacities":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"client_endpoint_port":{"type":"TypeInt","required":true},"durability_level":{"type":"TypeString","optional":true,"default":"Bronze"},"ephemeral_ports":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"end_port":{"type":"TypeInt","required":true},"start_port":{"type":"TypeInt","required":true}}},"maxItems":1},"http_endpoint_port":{"type":"TypeInt","required":true},"instance_count":{"type":"TypeInt","required":true},"is_primary":{"type":"TypeBool","required":true},"is_stateless":{"type":"TypeBool","optional":true},"multiple_availability_zones":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"placement_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"reverse_proxy_endpoint_port":{"type":"TypeInt","optional":true}}}},"reliability_level":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"reverse_proxy_certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"thumbprint":{"type":"TypeString","required":true},"thumbprint_secondary":{"type":"TypeString","optional":true},"x509_store_name":{"type":"TypeString","required":true}}},"maxItems":1},"reverse_proxy_certificate_common_names":{"type":"TypeList","optional":true,"elem":{"schema":{"common_names":{"type":"TypeSet","required":true,"elem":{"schema":{"certificate_common_name":{"type":"TypeString","required":true},"certificate_issuer_thumbprint":{"type":"TypeString","optional":true}}},"minItems":1},"x509_store_name":{"type":"TypeString","required":true}}},"maxItems":1},"service_fabric_zonal_upgrade_mode":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"upgrade_mode":{"type":"TypeString","required":true},"upgrade_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"delta_health_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"max_delta_unhealthy_applications_percent":{"type":"TypeInt","optional":true,"default":0},"max_delta_unhealthy_nodes_percent":{"type":"TypeInt","optional":true,"default":0},"max_upgrade_domain_delta_unhealthy_nodes_percent":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"force_restart_enabled":{"type":"TypeBool","optional":true},"health_check_retry_timeout":{"type":"TypeString","optional":true,"default":"00:45:00"},"health_check_stable_duration":{"type":"TypeString","optional":true,"default":"00:01:00"},"health_check_wait_duration":{"type":"TypeString","optional":true,"default":"00:00:30"},"health_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"max_unhealthy_applications_percent":{"type":"TypeInt","optional":true,"default":0},"max_unhealthy_nodes_percent":{"type":"TypeInt","optional":true,"default":0}}},"maxItems":1},"upgrade_domain_timeout":{"type":"TypeString","optional":true,"default":"02:00:00"},"upgrade_replica_set_check_timeout":{"type":"TypeString","optional":true,"default":"10675199.02:48:05.4775807"},"upgrade_timeout":{"type":"TypeString","optional":true,"default":"12:00:00"}}},"maxItems":1},"vm_image":{"type":"TypeString","required":true,"forceNew":true},"vmss_zonal_upgrade_mode":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_service_fabric_managed_cluster":{"schema":{"authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"client_application_id":{"type":"TypeString","required":true},"cluster_application_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}}},"maxItems":1},"certificate":{"type":"TypeList","optional":true,"elem":{"schema":{"common_name":{"type":"TypeString","optional":true},"thumbprint":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}}}},"maxItems":1},"backup_service_enabled":{"type":"TypeBool","optional":true},"client_connection_port":{"type":"TypeInt","required":true},"custom_fabric_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"parameter":{"type":"TypeString","required":true},"section":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"dns_name":{"type":"TypeString","optional":true,"computed":true},"dns_service_enabled":{"type":"TypeBool","optional":true},"http_gateway_port":{"type":"TypeInt","required":true},"lb_rule":{"type":"TypeList","required":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","required":true},"frontend_port":{"type":"TypeInt","required":true},"probe_protocol":{"type":"TypeString","required":true},"probe_request_path":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_type":{"type":"TypeList","optional":true,"elem":{"schema":{"application_port_range":{"type":"TypeString","required":true},"capacities":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"data_disk_size_gb":{"type":"TypeInt","required":true},"data_disk_type":{"type":"TypeString","optional":true,"default":"Standard_LRS"},"ephemeral_port_range":{"type":"TypeString","required":true},"id":{"type":"TypeString","computed":true},"multiple_placement_groups_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"placement_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"primary":{"type":"TypeBool","optional":true},"stateless":{"type":"TypeBool","optional":true},"vm_image_offer":{"type":"TypeString","required":true},"vm_image_publisher":{"type":"TypeString","required":true},"vm_image_sku":{"type":"TypeString","required":true},"vm_image_version":{"type":"TypeString","required":true},"vm_instance_count":{"type":"TypeInt","required":true},"vm_secrets":{"type":"TypeList","optional":true,"elem":{"schema":{"certificates":{"type":"TypeList","required":true,"elem":{"schema":{"store":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}}},"vault_id":{"type":"TypeString","required":true}}}},"vm_size":{"type":"TypeString","required":true}}}},"password":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"default":"Basic","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"upgrade_wave":{"type":"TypeString","optional":true,"default":"Wave0"},"username":{"type":"TypeString","optional":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_service_plan":{"schema":{"app_service_environment_id":{"type":"TypeString","optional":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_elastic_worker_count":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","required":true,"forceNew":true},"per_site_scaling_enabled":{"type":"TypeBool","optional":true,"default":false},"reserved":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"worker_count":{"type":"TypeInt","optional":true,"computed":true},"zone_balancing_enabled":{"type":"TypeBool","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_servicebus_namespace":{"schema":{"capacity":{"type":"TypeInt","optional":true,"default":0},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_id":{"type":"TypeString","required":true},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"key_vault_key_id":{"type":"TypeString","required":true}}},"maxItems":1},"default_primary_connection_string":{"type":"TypeString","computed":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_connection_string":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rule_set":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Allow"},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"network_rules":{"type":"TypeSet","optional":true,"elem":{"schema":{"ignore_missing_vnet_service_endpoint":{"type":"TypeBool","optional":true,"default":false},"subnet_id":{"type":"TypeString","required":true}}}},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"trusted_services_allowed":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"premium_messaging_partitions":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_namespace_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_id":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_namespace_disaster_recovery_config":{"schema":{"alias_authorization_rule_id":{"type":"TypeString","optional":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partner_namespace_id":{"type":"TypeString","required":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_namespace_id":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_queue":{"schema":{"auto_delete_on_idle":{"type":"TypeString","optional":true,"computed":true},"batched_operations_enabled":{"type":"TypeBool","optional":true,"default":true},"dead_lettering_on_message_expiration":{"type":"TypeBool","optional":true,"default":false},"default_message_ttl":{"type":"TypeString","optional":true,"computed":true},"duplicate_detection_history_time_window":{"type":"TypeString","optional":true,"default":"PT10M"},"express_enabled":{"type":"TypeBool","optional":true,"default":false},"forward_dead_lettered_messages_to":{"type":"TypeString","optional":true},"forward_to":{"type":"TypeString","optional":true},"lock_duration":{"type":"TypeString","optional":true,"default":"PT1M"},"max_delivery_count":{"type":"TypeInt","optional":true,"default":10},"max_message_size_in_kilobytes":{"type":"TypeInt","optional":true,"computed":true},"max_size_in_megabytes":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_id":{"type":"TypeString","required":true,"forceNew":true},"partitioning_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"requires_duplicate_detection":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"requires_session":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Active"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_queue_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"queue_id":{"type":"TypeString","required":true,"forceNew":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_subscription":{"schema":{"auto_delete_on_idle":{"type":"TypeString","optional":true,"default":"P10675199DT2H48M5.4775807S"},"batched_operations_enabled":{"type":"TypeBool","optional":true},"client_scoped_subscription":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true,"forceNew":true},"is_client_scoped_subscription_durable":{"type":"TypeBool","computed":true},"is_client_scoped_subscription_shareable":{"type":"TypeBool","optional":true,"default":true,"forceNew":true}}},"maxItems":1},"client_scoped_subscription_enabled":{"type":"TypeBool","optional":true,"default":false},"dead_lettering_on_filter_evaluation_error":{"type":"TypeBool","optional":true,"default":true},"dead_lettering_on_message_expiration":{"type":"TypeBool","optional":true},"default_message_ttl":{"type":"TypeString","optional":true,"default":"P10675199DT2H48M5.4775807S"},"forward_dead_lettered_messages_to":{"type":"TypeString","optional":true},"forward_to":{"type":"TypeString","optional":true},"lock_duration":{"type":"TypeString","optional":true,"default":"PT1M"},"max_delivery_count":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"requires_session":{"type":"TypeBool","optional":true,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Active"},"topic_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_subscription_rule":{"schema":{"action":{"type":"TypeString","optional":true},"correlation_filter":{"type":"TypeList","optional":true,"elem":{"schema":{"content_type":{"type":"TypeString","optional":true},"correlation_id":{"type":"TypeString","optional":true},"label":{"type":"TypeString","optional":true},"message_id":{"type":"TypeString","optional":true},"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"reply_to":{"type":"TypeString","optional":true},"reply_to_session_id":{"type":"TypeString","optional":true},"session_id":{"type":"TypeString","optional":true},"to":{"type":"TypeString","optional":true}}},"maxItems":1},"filter_type":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"sql_filter":{"type":"TypeString","optional":true},"sql_filter_compatibility_level":{"type":"TypeInt","computed":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_topic":{"schema":{"auto_delete_on_idle":{"type":"TypeString","optional":true,"default":"P10675199DT2H48M5.4775807S"},"batched_operations_enabled":{"type":"TypeBool","optional":true},"default_message_ttl":{"type":"TypeString","optional":true,"default":"P10675199DT2H48M5.4775807S"},"duplicate_detection_history_time_window":{"type":"TypeString","optional":true,"default":"PT10M"},"express_enabled":{"type":"TypeBool","optional":true},"max_message_size_in_kilobytes":{"type":"TypeInt","optional":true,"computed":true},"max_size_in_megabytes":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"namespace_id":{"type":"TypeString","required":true,"forceNew":true},"partitioning_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"requires_duplicate_detection":{"type":"TypeBool","optional":true,"forceNew":true},"status":{"type":"TypeString","optional":true,"default":"Active"},"support_ordering":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_servicebus_topic_authorization_rule":{"schema":{"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false},"topic_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_shared_image":{"schema":{"accelerated_network_support_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"architecture":{"type":"TypeString","optional":true,"default":"x64","forceNew":true},"confidential_vm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"confidential_vm_supported":{"type":"TypeBool","optional":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"disk_controller_type_nvme_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"disk_types_not_allowed":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"end_of_life_date":{"type":"TypeString","optional":true},"eula":{"type":"TypeString","optional":true,"forceNew":true},"gallery_name":{"type":"TypeString","required":true,"forceNew":true},"hibernation_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"hyper_v_generation":{"type":"TypeString","optional":true,"default":"V1","forceNew":true},"identifier":{"type":"TypeList","required":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"max_recommended_memory_in_gb":{"type":"TypeInt","optional":true},"max_recommended_vcpu_count":{"type":"TypeInt","optional":true},"min_recommended_memory_in_gb":{"type":"TypeInt","optional":true},"min_recommended_vcpu_count":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","required":true,"forceNew":true},"privacy_statement_uri":{"type":"TypeString","optional":true,"forceNew":true},"purchase_plan":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"release_note_uri":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"specialized":{"type":"TypeBool","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trusted_launch_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"trusted_launch_supported":{"type":"TypeBool","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_shared_image_gallery":{"schema":{"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sharing":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"community_gallery":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"eula":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","computed":true},"prefix":{"type":"TypeString","required":true,"forceNew":true},"publisher_email":{"type":"TypeString","required":true,"forceNew":true},"publisher_uri":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"permission":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"unique_name":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_shared_image_version":{"schema":{"blob_uri":{"type":"TypeString","optional":true,"forceNew":true},"deletion_of_replicated_locations_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"end_of_life_date":{"type":"TypeString","optional":true},"exclude_from_latest":{"type":"TypeBool","optional":true,"default":false},"gallery_name":{"type":"TypeString","required":true,"forceNew":true},"image_name":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_image_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_disk_snapshot_id":{"type":"TypeString","optional":true,"forceNew":true},"replication_mode":{"type":"TypeString","optional":true,"default":"Full","forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_region":{"type":"TypeList","required":true,"elem":{"schema":{"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"exclude_from_latest_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"regional_replica_count":{"type":"TypeInt","required":true},"storage_account_type":{"type":"TypeString","optional":true,"default":"Standard_LRS"}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_signalr_service":{"schema":{"aad_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"connectivity_logs_enabled":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}},"hostname":{"type":"TypeString","computed":true},"http_request_logs_enabled":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"live_trace":{"type":"TypeList","optional":true,"elem":{"schema":{"connectivity_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"http_request_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"messaging_logs_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"live_trace_enabled":{"type":"TypeBool","optional":true,"default":false},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"messaging_logs_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"public_port":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"server_port":{"type":"TypeInt","computed":true},"serverless_connection_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":30},"service_mode":{"type":"TypeString","optional":true,"default":"Default"},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tls_client_cert_enabled":{"type":"TypeBool","optional":true,"default":false},"upstream_endpoint":{"type":"TypeSet","optional":true,"elem":{"schema":{"category_pattern":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"event_pattern":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"hub_pattern":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"url_template":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_signalr_service_custom_certificate":{"schema":{"certificate_version":{"type":"TypeString","computed":true},"custom_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"signalr_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_signalr_service_custom_domain":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"signalr_custom_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"signalr_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_signalr_service_network_acl":{"schema":{"default_action":{"type":"TypeString","required":true},"private_endpoint":{"type":"TypeSet","optional":true,"elem":{"schema":{"allowed_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"denied_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","required":true}}}},"public_network":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"denied_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"signalr_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_signalr_shared_private_link_resource":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"signalr_service_id":{"type":"TypeString","required":true,"forceNew":true},"status":{"type":"TypeString","computed":true},"sub_resource_name":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_fabric":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_site_recovery_hyperv_network_mapping":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true},"source_network_name":{"type":"TypeString","required":true,"forceNew":true},"source_system_center_virtual_machine_manager_name":{"type":"TypeString","required":true,"forceNew":true},"target_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_site_recovery_hyperv_replication_policy":{"schema":{"application_consistent_snapshot_frequency_in_hours":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_point_retention_in_hours":{"type":"TypeInt","required":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true},"replication_interval_in_seconds":{"type":"TypeInt","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_hyperv_replication_policy_association":{"schema":{"hyperv_site_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_site_recovery_network_mapping":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_network_id":{"type":"TypeString","required":true,"forceNew":true},"source_recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true},"target_network_id":{"type":"TypeString","required":true,"forceNew":true},"target_recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_site_recovery_protection_container":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_site_recovery_protection_container_mapping":{"schema":{"automatic_update":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","optional":true,"default":"SystemAssignedIdentity"},"automation_account_id":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1,"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true},"recovery_replication_policy_id":{"type":"TypeString","required":true,"forceNew":true},"recovery_source_protection_container_name":{"type":"TypeString","required":true,"forceNew":true},"recovery_target_protection_container_id":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_replicated_vm":{"schema":{"managed_disk":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"disk_id":{"type":"TypeString","required":true,"forceNew":true},"staging_storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"target_disk_encryption":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","configMode":"Auto","required":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"key_encryption_key":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"key_url":{"type":"TypeString","required":true,"forceNew":true},"vault_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"target_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"target_disk_type":{"type":"TypeString","required":true,"forceNew":true},"target_replica_disk_type":{"type":"TypeString","required":true,"forceNew":true},"target_resource_group_id":{"type":"TypeString","required":true,"forceNew":true}}}},"multi_vm_group_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"failover_test_public_ip_address_id":{"type":"TypeString","optional":true,"computed":true},"failover_test_static_ip":{"type":"TypeString","optional":true,"computed":true},"failover_test_subnet_name":{"type":"TypeString","optional":true,"computed":true},"recovery_public_ip_address_id":{"type":"TypeString","optional":true},"source_network_interface_id":{"type":"TypeString","optional":true,"computed":true},"target_static_ip":{"type":"TypeString","optional":true},"target_subnet_name":{"type":"TypeString","optional":true}}}},"recovery_replication_policy_id":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_recovery_fabric_name":{"type":"TypeString","required":true,"forceNew":true},"source_recovery_protection_container_name":{"type":"TypeString","required":true,"forceNew":true},"source_vm_id":{"type":"TypeString","required":true,"forceNew":true},"target_availability_set_id":{"type":"TypeString","optional":true},"target_boot_diagnostic_storage_account_id":{"type":"TypeString","optional":true},"target_capacity_reservation_group_id":{"type":"TypeString","optional":true},"target_edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"target_network_id":{"type":"TypeString","optional":true,"computed":true},"target_proximity_placement_group_id":{"type":"TypeString","optional":true},"target_recovery_fabric_id":{"type":"TypeString","required":true,"forceNew":true},"target_recovery_protection_container_id":{"type":"TypeString","required":true,"forceNew":true},"target_resource_group_id":{"type":"TypeString","required":true,"forceNew":true},"target_virtual_machine_scale_set_id":{"type":"TypeString","optional":true},"target_virtual_machine_size":{"type":"TypeString","optional":true,"computed":true},"target_zone":{"type":"TypeString","optional":true,"forceNew":true},"test_network_id":{"type":"TypeString","optional":true,"computed":true},"unmanaged_disk":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"disk_uri":{"type":"TypeString","required":true,"forceNew":true},"staging_storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"target_storage_account_id":{"type":"TypeString","required":true,"forceNew":true}}}}},"timeouts":{"create":180,"read":5,"delete":80,"update":80}},"azurerm_site_recovery_replication_policy":{"schema":{"application_consistent_snapshot_frequency_in_minutes":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_point_retention_in_minutes":{"type":"TypeInt","required":true},"recovery_vault_name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_replication_recovery_plan":{"schema":{"azure_to_azure_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"primary_edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"primary_zone":{"type":"TypeString","optional":true,"forceNew":true},"recovery_edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"recovery_zone":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"boot_recovery_group":{"type":"TypeList","required":true,"elem":{"schema":{"post_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"pre_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"replicated_protected_items":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}},"minItems":1},"failover_recovery_group":{"type":"TypeList","required":true,"elem":{"schema":{"post_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"pre_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}}}},"maxItems":1,"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true},"shutdown_recovery_group":{"type":"TypeList","required":true,"elem":{"schema":{"post_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}},"pre_action":{"type":"TypeList","optional":true,"elem":{"schema":{"fabric_location":{"type":"TypeString","optional":true},"fail_over_directions":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"runbook_id":{"type":"TypeString","optional":true},"script_path":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}}}}},"maxItems":1,"minItems":1},"source_recovery_fabric_id":{"type":"TypeString","required":true,"forceNew":true},"target_recovery_fabric_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_services_vault_hyperv_site":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":180}},"azurerm_site_recovery_vmware_replicated_vm":{"schema":{"appliance_name":{"type":"TypeString","required":true,"forceNew":true},"default_log_storage_account_id":{"type":"TypeString","optional":true},"default_recovery_disk_type":{"type":"TypeString","optional":true},"default_target_disk_encryption_set_id":{"type":"TypeString","optional":true},"license_type":{"type":"TypeString","optional":true,"default":"NotSpecified"},"managed_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_id":{"type":"TypeString","required":true},"log_storage_account_id":{"type":"TypeString","optional":true},"target_disk_encryption_set_id":{"type":"TypeString","optional":true},"target_disk_type":{"type":"TypeString","required":true}}}},"multi_vm_group_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","optional":true,"elem":{"schema":{"is_primary":{"type":"TypeBool","required":true},"source_mac_address":{"type":"TypeString","required":true},"target_static_ip":{"type":"TypeString","optional":true},"target_subnet_name":{"type":"TypeString","optional":true},"test_subnet_name":{"type":"TypeString","optional":true}}}},"physical_server_credential_name":{"type":"TypeString","required":true,"forceNew":true},"recovery_replication_policy_id":{"type":"TypeString","required":true},"recovery_vault_id":{"type":"TypeString","required":true},"source_vm_name":{"type":"TypeString","required":true,"forceNew":true},"target_availability_set_id":{"type":"TypeString","optional":true},"target_boot_diagnostics_storage_account_id":{"type":"TypeString","optional":true},"target_network_id":{"type":"TypeString","optional":true},"target_proximity_placement_group_id":{"type":"TypeString","optional":true},"target_resource_group_id":{"type":"TypeString","required":true},"target_vm_name":{"type":"TypeString","required":true,"forceNew":true},"target_vm_size":{"type":"TypeString","optional":true},"target_zone":{"type":"TypeString","optional":true},"test_network_id":{"type":"TypeString","optional":true}},"timeouts":{"create":120,"read":5,"delete":90,"update":90}},"azurerm_site_recovery_vmware_replication_policy":{"schema":{"application_consistent_snapshot_frequency_in_minutes":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_point_retention_in_minutes":{"type":"TypeInt","required":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_site_recovery_vmware_replication_policy_association":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"policy_id":{"type":"TypeString","required":true,"forceNew":true},"recovery_vault_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_snapshot":{"schema":{"create_option":{"type":"TypeString","required":true},"disk_access_id":{"type":"TypeString","optional":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"encryption_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","required":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"key_encryption_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"incremental_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_access_policy":{"type":"TypeString","optional":true,"default":"AllowAll"},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_resource_id":{"type":"TypeString","optional":true,"forceNew":true},"source_uri":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trusted_launch_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_source_control_token":{"schema":{"token":{"type":"TypeString","required":true},"token_secret":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}},"timeouts":{"create":5,"read":5,"delete":5,"update":5}},"azurerm_spatial_anchors_account":{"schema":{"account_domain":{"type":"TypeString","computed":true},"account_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_accelerator":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_spring_cloud_active_deployment":{"schema":{"deployment_name":{"type":"TypeString","required":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_api_portal":{"schema":{"api_try_out_enabled":{"type":"TypeBool","optional":true},"gateway_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"https_only_enabled":{"type":"TypeBool","optional":true},"instance_count":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"sso":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","optional":true},"issuer_uri":{"type":"TypeString","optional":true},"scope":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_api_portal_custom_domain":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_api_portal_id":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app":{"schema":{"addon_json":{"type":"TypeString","optional":true,"computed":true},"custom_persistent_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"mount_options":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"mount_path":{"type":"TypeString","required":true},"read_only_enabled":{"type":"TypeBool","optional":true,"default":false},"share_name":{"type":"TypeString","required":true},"storage_name":{"type":"TypeString","required":true}}},"minItems":1},"fqdn":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"ingress_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"backend_protocol":{"type":"TypeString","optional":true,"default":"Default"},"read_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":300},"send_timeout_in_seconds":{"type":"TypeInt","optional":true,"default":60},"session_affinity":{"type":"TypeString","optional":true,"default":"None"},"session_cookie_max_age":{"type":"TypeInt","optional":true}}},"maxItems":1},"is_public":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"persistent_disk":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"mount_path":{"type":"TypeString","optional":true,"default":"/persistent"},"size_in_gb":{"type":"TypeInt","required":true}}},"maxItems":1},"public_endpoint_enabled":{"type":"TypeBool","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_name":{"type":"TypeString","required":true,"forceNew":true},"tls_enabled":{"type":"TypeBool","optional":true,"default":false},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app_cosmosdb_association":{"schema":{"api_type":{"type":"TypeString","required":true,"forceNew":true},"cosmosdb_access_key":{"type":"TypeString","required":true},"cosmosdb_account_id":{"type":"TypeString","required":true,"forceNew":true},"cosmosdb_cassandra_keyspace_name":{"type":"TypeString","optional":true},"cosmosdb_gremlin_database_name":{"type":"TypeString","optional":true},"cosmosdb_gremlin_graph_name":{"type":"TypeString","optional":true},"cosmosdb_mongo_database_name":{"type":"TypeString","optional":true},"cosmosdb_sql_database_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app_dynamics_application_performance_monitoring":{"schema":{"agent_account_access_key":{"type":"TypeString","required":true},"agent_account_name":{"type":"TypeString","required":true},"agent_application_name":{"type":"TypeString","optional":true},"agent_node_name":{"type":"TypeString","optional":true},"agent_tier_name":{"type":"TypeString","optional":true},"agent_unique_host_id":{"type":"TypeString","optional":true},"controller_host_name":{"type":"TypeString","required":true},"controller_port":{"type":"TypeInt","optional":true},"controller_ssl_enabled":{"type":"TypeBool","optional":true},"globally_enabled":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app_mysql_association":{"schema":{"database_name":{"type":"TypeString","required":true},"mysql_server_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_app_redis_association":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"redis_access_key":{"type":"TypeString","required":true},"redis_cache_id":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true},"ssl_enabled":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_application_insights_application_performance_monitoring":{"schema":{"connection_string":{"type":"TypeString","optional":true},"globally_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"role_instance":{"type":"TypeString","optional":true},"role_name":{"type":"TypeString","optional":true},"sampling_percentage":{"type":"TypeInt","optional":true},"sampling_requests_per_second":{"type":"TypeInt","optional":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_application_live_view":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_spring_cloud_build_deployment":{"schema":{"addon_json":{"type":"TypeString","optional":true,"computed":true},"application_performance_monitoring_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"build_result_id":{"type":"TypeString","required":true},"environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"instance_count":{"type":"TypeInt","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"quota":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cpu":{"type":"TypeString","optional":true,"computed":true},"memory":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_build_pack_binding":{"schema":{"binding_type":{"type":"TypeString","optional":true},"launch":{"type":"TypeList","optional":true,"elem":{"schema":{"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"secrets":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_builder_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_builder":{"schema":{"build_pack_group":{"type":"TypeSet","required":true,"elem":{"schema":{"build_pack_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"name":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"stack":{"type":"TypeList","required":true,"elem":{"schema":{"id":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_certificate":{"schema":{"certificate_content":{"type":"TypeString","optional":true,"forceNew":true},"exclude_private_key":{"type":"TypeBool","optional":true,"forceNew":true},"key_vault_certificate_id":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_name":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_spring_cloud_configuration_service":{"schema":{"generation":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"refresh_interval_in_seconds":{"type":"TypeInt","optional":true},"repository":{"type":"TypeList","optional":true,"elem":{"schema":{"ca_certificate_id":{"type":"TypeString","optional":true},"host_key":{"type":"TypeString","optional":true},"host_key_algorithm":{"type":"TypeString","optional":true},"label":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"password":{"type":"TypeString","optional":true},"patterns":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"private_key":{"type":"TypeString","optional":true},"search_paths":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"strict_host_key_checking":{"type":"TypeBool","optional":true},"uri":{"type":"TypeString","required":true},"username":{"type":"TypeString","optional":true}}}},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_connection":{"schema":{"authentication":{"type":"TypeList","required":true,"elem":{"schema":{"certificate":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true},"principal_id":{"type":"TypeString","optional":true},"secret":{"type":"TypeString","optional":true},"subscription_id":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"client_type":{"type":"TypeString","optional":true,"default":"none"},"name":{"type":"TypeString","required":true,"forceNew":true},"secret_store":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"spring_cloud_id":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"vnet_solution":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_container_deployment":{"schema":{"addon_json":{"type":"TypeString","optional":true,"computed":true},"application_performance_monitoring_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"arguments":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"commands":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"image":{"type":"TypeString","required":true},"instance_count":{"type":"TypeInt","optional":true,"default":1},"language_framework":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"quota":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cpu":{"type":"TypeString","optional":true,"computed":true},"memory":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"server":{"type":"TypeString","required":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_custom_domain":{"schema":{"certificate_name":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_customized_accelerator":{"schema":{"accelerator_tags":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"accelerator_type":{"type":"TypeString","optional":true,"default":"Accelerator"},"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"git_repository":{"type":"TypeList","required":true,"elem":{"schema":{"basic_auth":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"branch":{"type":"TypeString","optional":true},"ca_certificate_id":{"type":"TypeString","optional":true},"commit":{"type":"TypeString","optional":true},"git_tag":{"type":"TypeString","optional":true},"interval_in_seconds":{"type":"TypeInt","optional":true},"path":{"type":"TypeString","optional":true},"ssh_auth":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"host_key":{"type":"TypeString","optional":true},"host_key_algorithm":{"type":"TypeString","optional":true},"private_key":{"type":"TypeString","required":true}}},"maxItems":1},"url":{"type":"TypeString","required":true}}},"maxItems":1},"icon_url":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_accelerator_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_dev_tool_portal":{"schema":{"application_accelerator_enabled":{"type":"TypeBool","optional":true,"computed":true},"application_live_view_enabled":{"type":"TypeBool","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"sso":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","optional":true},"metadata_url":{"type":"TypeString","optional":true},"scope":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_dynatrace_application_performance_monitoring":{"schema":{"api_token":{"type":"TypeString","optional":true},"api_url":{"type":"TypeString","optional":true},"connection_point":{"type":"TypeString","required":true},"environment_id":{"type":"TypeString","optional":true},"globally_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"tenant":{"type":"TypeString","required":true},"tenant_token":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_elastic_application_performance_monitoring":{"schema":{"application_packages":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"globally_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"server_url":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","required":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_gateway":{"schema":{"api_metadata":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"documentation_url":{"type":"TypeString","optional":true},"server_url":{"type":"TypeString","optional":true},"title":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"application_performance_monitoring_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"application_performance_monitoring_types":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"client_authorization":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"verification_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"allowed_methods":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"allowed_origin_patterns":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"allowed_origins":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"credentials_allowed":{"type":"TypeBool","optional":true},"exposed_headers":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"max_age_seconds":{"type":"TypeInt","optional":true}}},"maxItems":1},"environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"https_only":{"type":"TypeBool","optional":true},"instance_count":{"type":"TypeInt","optional":true,"default":1},"local_response_cache_per_instance":{"type":"TypeList","optional":true,"elem":{"schema":{"size":{"type":"TypeString","optional":true},"time_to_live":{"type":"TypeString","optional":true}}},"maxItems":1},"local_response_cache_per_route":{"type":"TypeList","optional":true,"elem":{"schema":{"size":{"type":"TypeString","optional":true},"time_to_live":{"type":"TypeString","optional":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true},"quota":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cpu":{"type":"TypeString","optional":true,"default":"1"},"memory":{"type":"TypeString","optional":true,"default":"2Gi"}}},"maxItems":1},"sensitive_environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"sso":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"client_secret":{"type":"TypeString","optional":true},"issuer_uri":{"type":"TypeString","optional":true},"scope":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_gateway_custom_domain":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"thumbprint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_gateway_route_config":{"schema":{"filters":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"open_api":{"type":"TypeList","optional":true,"elem":{"schema":{"uri":{"type":"TypeString","optional":true}}},"maxItems":1},"predicates":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"protocol":{"type":"TypeString","required":true},"route":{"type":"TypeSet","optional":true,"elem":{"schema":{"classification_tags":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"filters":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"order":{"type":"TypeInt","required":true},"predicates":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"sso_validation_enabled":{"type":"TypeBool","optional":true},"title":{"type":"TypeString","optional":true},"token_relay":{"type":"TypeBool","optional":true},"uri":{"type":"TypeString","optional":true}}}},"spring_cloud_app_id":{"type":"TypeString","optional":true},"spring_cloud_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"sso_validation_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_java_deployment":{"schema":{"environment_variables":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"instance_count":{"type":"TypeInt","optional":true,"default":1},"jvm_options":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"quota":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cpu":{"type":"TypeString","optional":true,"computed":true},"memory":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"default":"Java_8"},"spring_cloud_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_new_relic_application_performance_monitoring":{"schema":{"agent_enabled":{"type":"TypeBool","optional":true,"default":true},"app_name":{"type":"TypeString","required":true},"app_server_port":{"type":"TypeInt","optional":true},"audit_mode_enabled":{"type":"TypeBool","optional":true},"auto_app_naming_enabled":{"type":"TypeBool","optional":true},"auto_transaction_naming_enabled":{"type":"TypeBool","optional":true,"default":true},"custom_tracing_enabled":{"type":"TypeBool","optional":true,"default":true},"globally_enabled":{"type":"TypeBool","optional":true},"labels":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"license_key":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_service":{"schema":{"build_agent_pool_size":{"type":"TypeString","optional":true},"config_server_git_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"http_basic_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"label":{"type":"TypeString","optional":true},"repository":{"type":"TypeList","optional":true,"elem":{"schema":{"http_basic_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"password":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}},"maxItems":1},"label":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"pattern":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"search_paths":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"ssh_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"host_key":{"type":"TypeString","optional":true},"host_key_algorithm":{"type":"TypeString","optional":true},"private_key":{"type":"TypeString","required":true},"strict_host_key_checking_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true}}}},"search_paths":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"ssh_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"host_key":{"type":"TypeString","optional":true},"host_key_algorithm":{"type":"TypeString","optional":true},"private_key":{"type":"TypeString","required":true},"strict_host_key_checking_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"uri":{"type":"TypeString","required":true}}},"maxItems":1},"container_registry":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true},"server":{"type":"TypeString","required":true},"username":{"type":"TypeString","required":true}}}},"default_build_service":{"type":"TypeList","optional":true,"elem":{"schema":{"container_registry_name":{"type":"TypeString","optional":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"log_stream_public_endpoint_enabled":{"type":"TypeBool","optional":true},"managed_environment_id":{"type":"TypeString","optional":true},"marketplace":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"plan":{"type":"TypeString","required":true},"product":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"network":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"app_network_resource_group":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"app_subnet_id":{"type":"TypeString","required":true,"forceNew":true},"cidr_ranges":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":3},"outbound_type":{"type":"TypeString","optional":true,"default":"loadBalancer","forceNew":true},"read_timeout_seconds":{"type":"TypeInt","optional":true},"service_runtime_network_resource_group":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"service_runtime_subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"outbound_public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"required_network_traffic_rules":{"type":"TypeList","computed":true,"elem":{"schema":{"direction":{"type":"TypeString","computed":true},"fqdns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_registry_enabled":{"type":"TypeBool","optional":true},"service_registry_id":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","optional":true,"default":"S0","forceNew":true},"sku_tier":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"trace":{"type":"TypeList","optional":true,"elem":{"schema":{"connection_string":{"type":"TypeString","optional":true},"sample_rate":{"type":"TypeFloat","optional":true,"default":10}}},"maxItems":1},"zone_redundant":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":60,"read":5,"delete":30,"update":30}},"azurerm_spring_cloud_storage":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"spring_cloud_service_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_ssh_public_key":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_key":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":45,"read":5,"delete":45,"update":45}},"azurerm_stack_hci_cluster":{"schema":{"automanage_configuration_id":{"type":"TypeString","optional":true},"client_id":{"type":"TypeString","optional":true,"forceNew":true},"cloud_id":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_provider_object_id":{"type":"TypeString","computed":true},"service_endpoint":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stack_hci_deployment_setting":{"schema":{"arc_resource_ids":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"scale_unit":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"active_directory_organizational_unit_path":{"type":"TypeString","required":true,"forceNew":true},"bitlocker_boot_volume_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"bitlocker_data_volume_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"cluster":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"azure_service_endpoint":{"type":"TypeString","required":true,"forceNew":true},"cloud_account_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"witness_path":{"type":"TypeString","required":true,"forceNew":true},"witness_type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"credential_guard_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"domain_fqdn":{"type":"TypeString","required":true,"forceNew":true},"drift_control_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"drtm_protection_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"episodic_data_upload_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"eu_location_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"host_network":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"intent":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"adapter":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"adapter_property_override":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"jumbo_packet":{"type":"TypeString","optional":true,"forceNew":true},"network_direct":{"type":"TypeString","optional":true,"forceNew":true},"network_direct_technology":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"adapter_property_override_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"qos_policy_override":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"bandwidth_percentage_smb":{"type":"TypeString","optional":true,"forceNew":true},"priority_value8021_action_cluster":{"type":"TypeString","optional":true,"forceNew":true},"priority_value8021_action_smb":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"qos_policy_override_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"traffic_type":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"virtual_switch_configuration_override":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"enable_iov":{"type":"TypeString","optional":true,"forceNew":true},"load_balancing_algorithm":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"virtual_switch_configuration_override_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"minItems":1},"storage_auto_ip_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"storage_connectivity_switchless_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"storage_network":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"network_adapter_name":{"type":"TypeString","required":true,"forceNew":true},"vlan_id":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1}}},"maxItems":1},"hvci_protection_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"infrastructure_network":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"dhcp_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"dns_server":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"gateway":{"type":"TypeString","required":true,"forceNew":true},"ip_pool":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"ending_address":{"type":"TypeString","required":true,"forceNew":true},"starting_address":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1},"subnet_mask":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1},"name_prefix":{"type":"TypeString","required":true,"forceNew":true},"optional_service":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"custom_location":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"physical_node":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"ipv4_address":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1},"secrets_location":{"type":"TypeString","required":true,"forceNew":true},"side_channel_mitigation_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"smb_cluster_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"smb_signing_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"storage":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"configuration_mode":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"streaming_data_client_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"wdac_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true}}},"minItems":1},"stack_hci_cluster_id":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":360,"read":5,"delete":60}},"azurerm_stack_hci_extension":{"schema":{"arc_setting_id":{"type":"TypeString","required":true,"forceNew":true},"auto_upgrade_minor_version_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protected_settings":{"type":"TypeString","optional":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true},"type_handler_version":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stack_hci_logical_network":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"dns_servers":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","optional":true,"forceNew":true},"ip_allocation_method":{"type":"TypeString","required":true,"forceNew":true},"ip_pool":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"end":{"type":"TypeString","required":true,"forceNew":true},"start":{"type":"TypeString","required":true,"forceNew":true}}}},"route":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","optional":true,"forceNew":true},"next_hop_ip_address":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"vlan_id":{"type":"TypeInt","optional":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_switch_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stack_hci_marketplace_gallery_image":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"hyperv_generation":{"type":"TypeString","required":true,"forceNew":true},"identifier":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"os_type":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_path_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":180,"read":5,"delete":60,"update":30}},"azurerm_stack_hci_network_interface":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"dns_servers":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"minItems":1},"ip_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"gateway":{"type":"TypeString","computed":true},"prefix_length":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"mac_address":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stack_hci_storage_path":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stack_hci_virtual_hard_disk":{"schema":{"block_size_in_bytes":{"type":"TypeInt","optional":true,"forceNew":true},"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"disk_file_format":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_in_gb":{"type":"TypeInt","required":true,"forceNew":true},"dynamic_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"hyperv_generation":{"type":"TypeString","optional":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logical_sector_in_bytes":{"type":"TypeInt","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"physical_sector_in_bytes":{"type":"TypeInt","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_path_id":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_static_site":{"schema":{"api_key":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"default_host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_size":{"type":"TypeString","optional":true,"default":"Free"},"sku_tier":{"type":"TypeString","optional":true,"default":"Free"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_static_site_custom_domain":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"static_site_id":{"type":"TypeString","required":true,"forceNew":true},"validation_token":{"type":"TypeString","computed":true},"validation_type":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_static_web_app":{"schema":{"api_key":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"basic_auth":{"type":"TypeList","optional":true,"elem":{"schema":{"environments":{"type":"TypeString","required":true},"password":{"type":"TypeString","required":true}}},"maxItems":1},"configuration_file_changes_enabled":{"type":"TypeBool","optional":true,"default":true},"default_host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"preview_environments_enabled":{"type":"TypeBool","optional":true,"default":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_size":{"type":"TypeString","optional":true,"default":"Free"},"sku_tier":{"type":"TypeString","optional":true,"default":"Free"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_static_web_app_custom_domain":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"static_web_app_id":{"type":"TypeString","required":true,"forceNew":true},"validation_token":{"type":"TypeString","computed":true},"validation_type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_static_web_app_function_app_registration":{"schema":{"function_app_id":{"type":"TypeString","required":true,"forceNew":true},"static_web_app_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_storage_account":{"schema":{"access_tier":{"type":"TypeString","optional":true,"computed":true},"account_kind":{"type":"TypeString","optional":true,"default":"StorageV2"},"account_replication_type":{"type":"TypeString","required":true},"account_tier":{"type":"TypeString","required":true,"forceNew":true},"allow_nested_items_to_be_public":{"type":"TypeBool","optional":true,"default":true},"allowed_copy_scope":{"type":"TypeString","optional":true},"azure_files_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"domain_guid":{"type":"TypeString","required":true},"domain_name":{"type":"TypeString","required":true},"domain_sid":{"type":"TypeString","optional":true},"forest_name":{"type":"TypeString","optional":true},"netbios_domain_name":{"type":"TypeString","optional":true},"storage_sid":{"type":"TypeString","optional":true}}},"maxItems":1},"default_share_level_permission":{"type":"TypeString","optional":true,"default":"None"},"directory_type":{"type":"TypeString","required":true}}},"maxItems":1},"blob_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"change_feed_enabled":{"type":"TypeBool","optional":true,"default":false},"change_feed_retention_in_days":{"type":"TypeInt","optional":true},"container_delete_retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true,"default":7}}},"maxItems":1},"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"max_age_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":5},"default_service_version":{"type":"TypeString","optional":true,"computed":true},"delete_retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true,"default":7},"permanent_delete_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"last_access_time_enabled":{"type":"TypeBool","optional":true,"default":false},"restore_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","required":true}}},"maxItems":1},"versioning_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"cross_tenant_replication_enabled":{"type":"TypeBool","optional":true,"default":false},"custom_domain":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"use_subdomain":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","optional":true},"managed_hsm_key_id":{"type":"TypeString","optional":true},"user_assigned_identity_id":{"type":"TypeString","required":true}}},"maxItems":1},"default_to_oauth_authentication":{"type":"TypeBool","optional":true,"default":false},"dns_endpoint_type":{"type":"TypeString","optional":true,"default":"Standard","forceNew":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"https_traffic_only_enabled":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"immutability_policy":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"allow_protected_append_writes":{"type":"TypeBool","required":true},"period_since_creation_in_days":{"type":"TypeInt","required":true},"state":{"type":"TypeString","required":true}}},"maxItems":1},"infrastructure_encryption_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"is_hns_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"large_file_share_enabled":{"type":"TypeBool","optional":true,"computed":true},"local_user_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"min_tls_version":{"type":"TypeString","optional":true,"default":"TLS1_2"},"name":{"type":"TypeString","required":true,"forceNew":true},"network_rules":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"bypass":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"private_link_access":{"type":"TypeList","optional":true,"elem":{"schema":{"endpoint_resource_id":{"type":"TypeString","required":true},"endpoint_tenant_id":{"type":"TypeString","optional":true,"computed":true}}}},"virtual_network_subnet_ids":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"nfsv3_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_blob_connection_string":{"type":"TypeString","computed":true},"primary_blob_endpoint":{"type":"TypeString","computed":true},"primary_blob_host":{"type":"TypeString","computed":true},"primary_blob_internet_endpoint":{"type":"TypeString","computed":true},"primary_blob_internet_host":{"type":"TypeString","computed":true},"primary_blob_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_blob_microsoft_host":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_dfs_endpoint":{"type":"TypeString","computed":true},"primary_dfs_host":{"type":"TypeString","computed":true},"primary_dfs_internet_endpoint":{"type":"TypeString","computed":true},"primary_dfs_internet_host":{"type":"TypeString","computed":true},"primary_dfs_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_dfs_microsoft_host":{"type":"TypeString","computed":true},"primary_file_endpoint":{"type":"TypeString","computed":true},"primary_file_host":{"type":"TypeString","computed":true},"primary_file_internet_endpoint":{"type":"TypeString","computed":true},"primary_file_internet_host":{"type":"TypeString","computed":true},"primary_file_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_file_microsoft_host":{"type":"TypeString","computed":true},"primary_location":{"type":"TypeString","computed":true},"primary_queue_endpoint":{"type":"TypeString","computed":true},"primary_queue_host":{"type":"TypeString","computed":true},"primary_queue_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_queue_microsoft_host":{"type":"TypeString","computed":true},"primary_table_endpoint":{"type":"TypeString","computed":true},"primary_table_host":{"type":"TypeString","computed":true},"primary_table_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_table_microsoft_host":{"type":"TypeString","computed":true},"primary_web_endpoint":{"type":"TypeString","computed":true},"primary_web_host":{"type":"TypeString","computed":true},"primary_web_internet_endpoint":{"type":"TypeString","computed":true},"primary_web_internet_host":{"type":"TypeString","computed":true},"primary_web_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_web_microsoft_host":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"queue_encryption_key_type":{"type":"TypeString","optional":true,"default":"Service","forceNew":true},"queue_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"max_age_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":5},"hour_metrics":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"include_apis":{"type":"TypeBool","optional":true},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"logging":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"delete":{"type":"TypeBool","required":true},"read":{"type":"TypeBool","required":true},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true},"write":{"type":"TypeBool","required":true}}},"maxItems":1},"minute_metrics":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"include_apis":{"type":"TypeBool","optional":true},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"choice":{"type":"TypeString","optional":true,"default":"MicrosoftRouting"},"publish_internet_endpoints":{"type":"TypeBool","optional":true,"default":false},"publish_microsoft_endpoints":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"sas_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"expiration_action":{"type":"TypeString","optional":true,"default":"Log"},"expiration_period":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_blob_connection_string":{"type":"TypeString","computed":true},"secondary_blob_endpoint":{"type":"TypeString","computed":true},"secondary_blob_host":{"type":"TypeString","computed":true},"secondary_blob_internet_endpoint":{"type":"TypeString","computed":true},"secondary_blob_internet_host":{"type":"TypeString","computed":true},"secondary_blob_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_blob_microsoft_host":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_dfs_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_host":{"type":"TypeString","computed":true},"secondary_dfs_internet_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_internet_host":{"type":"TypeString","computed":true},"secondary_dfs_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_microsoft_host":{"type":"TypeString","computed":true},"secondary_file_endpoint":{"type":"TypeString","computed":true},"secondary_file_host":{"type":"TypeString","computed":true},"secondary_file_internet_endpoint":{"type":"TypeString","computed":true},"secondary_file_internet_host":{"type":"TypeString","computed":true},"secondary_file_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_file_microsoft_host":{"type":"TypeString","computed":true},"secondary_location":{"type":"TypeString","computed":true},"secondary_queue_endpoint":{"type":"TypeString","computed":true},"secondary_queue_host":{"type":"TypeString","computed":true},"secondary_queue_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_queue_microsoft_host":{"type":"TypeString","computed":true},"secondary_table_endpoint":{"type":"TypeString","computed":true},"secondary_table_host":{"type":"TypeString","computed":true},"secondary_table_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_table_microsoft_host":{"type":"TypeString","computed":true},"secondary_web_endpoint":{"type":"TypeString","computed":true},"secondary_web_host":{"type":"TypeString","computed":true},"secondary_web_internet_endpoint":{"type":"TypeString","computed":true},"secondary_web_internet_host":{"type":"TypeString","computed":true},"secondary_web_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_web_microsoft_host":{"type":"TypeString","computed":true},"sftp_enabled":{"type":"TypeBool","optional":true,"default":false},"share_properties":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"max_age_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":5},"retention_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"days":{"type":"TypeInt","optional":true,"default":7}}},"maxItems":1},"smb":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"channel_encryption_type":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"kerberos_ticket_encryption_type":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"multichannel_enabled":{"type":"TypeBool","optional":true,"default":false},"versions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"shared_access_key_enabled":{"type":"TypeBool","optional":true,"default":true},"static_website":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"error_404_document":{"type":"TypeString","optional":true},"index_document":{"type":"TypeString","optional":true}}},"maxItems":1},"table_encryption_key_type":{"type":"TypeString","optional":true,"default":"Service","forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_storage_account_customer_managed_key":{"schema":{"federated_identity_client_id":{"type":"TypeString","optional":true},"key_name":{"type":"TypeString","required":true},"key_vault_id":{"type":"TypeString","optional":true},"key_vault_uri":{"type":"TypeString","optional":true,"computed":true},"key_version":{"type":"TypeString","optional":true},"managed_hsm_key_id":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_account_local_user":{"schema":{"home_directory":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","computed":true},"permission_scope":{"type":"TypeList","optional":true,"elem":{"schema":{"permissions":{"type":"TypeList","required":true,"elem":{"schema":{"create":{"type":"TypeBool","optional":true,"default":false},"delete":{"type":"TypeBool","optional":true,"default":false},"list":{"type":"TypeBool","optional":true,"default":false},"read":{"type":"TypeBool","optional":true,"default":false},"write":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"resource_name":{"type":"TypeString","required":true},"service":{"type":"TypeString","required":true}}}},"sid":{"type":"TypeString","computed":true},"ssh_authorized_key":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"key":{"type":"TypeString","required":true}}}},"ssh_key_enabled":{"type":"TypeBool","optional":true,"default":false},"ssh_password_enabled":{"type":"TypeBool","optional":true,"default":false},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_account_network_rules":{"schema":{"bypass":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"default_action":{"type":"TypeString","required":true},"ip_rules":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"private_link_access":{"type":"TypeList","optional":true,"elem":{"schema":{"endpoint_resource_id":{"type":"TypeString","required":true},"endpoint_tenant_id":{"type":"TypeString","optional":true,"computed":true}}}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_subnet_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_storage_account_queue_properties":{"schema":{"cors_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"allowed_methods":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"allowed_origins":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64},"exposed_headers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"maxItems":64,"minItems":1},"max_age_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":5},"hour_metrics":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"include_apis":{"type":"TypeBool","optional":true,"default":false},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"logging":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"delete":{"type":"TypeBool","required":true},"read":{"type":"TypeBool","required":true},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true},"write":{"type":"TypeBool","required":true}}},"maxItems":1},"minute_metrics":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"include_apis":{"type":"TypeBool","optional":true,"default":false},"retention_policy_days":{"type":"TypeInt","optional":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_account_static_website":{"schema":{"error_404_document":{"type":"TypeString","optional":true},"index_document":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_blob":{"schema":{"access_tier":{"type":"TypeString","optional":true,"computed":true},"cache_control":{"type":"TypeString","optional":true},"content_md5":{"type":"TypeString","optional":true,"forceNew":true},"content_type":{"type":"TypeString","optional":true,"default":"application/octet-stream"},"encryption_scope":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"parallelism":{"type":"TypeInt","optional":true,"default":8,"forceNew":true},"size":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"source":{"type":"TypeString","optional":true,"forceNew":true},"source_content":{"type":"TypeString","optional":true,"forceNew":true},"source_uri":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true},"storage_container_name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_blob_inventory_policy":{"schema":{"rules":{"type":"TypeSet","required":true,"elem":{"schema":{"filter":{"type":"TypeList","optional":true,"elem":{"schema":{"blob_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"exclude_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":10},"include_blob_versions":{"type":"TypeBool","optional":true,"default":false},"include_deleted":{"type":"TypeBool","optional":true,"default":false},"include_snapshots":{"type":"TypeBool","optional":true,"default":false},"prefix_match":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":10}}},"maxItems":1},"format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"schedule":{"type":"TypeString","required":true},"schema_fields":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"scope":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true}}}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_container":{"schema":{"container_access_type":{"type":"TypeString","optional":true,"default":"private"},"default_encryption_scope":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"encryption_scope_override_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"has_immutability_policy":{"type":"TypeBool","computed":true},"has_legal_hold":{"type":"TypeBool","computed":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_container_immutability_policy":{"schema":{"immutability_period_in_days":{"type":"TypeInt","required":true},"locked":{"type":"TypeBool","optional":true,"default":false},"protected_append_writes_all_enabled":{"type":"TypeBool","optional":true,"default":false},"protected_append_writes_enabled":{"type":"TypeBool","optional":true,"default":false},"storage_container_resource_manager_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":10,"read":5,"delete":10,"update":10}},"azurerm_storage_data_lake_gen2_filesystem":{"schema":{"ace":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"permissions":{"type":"TypeString","required":true},"scope":{"type":"TypeString","optional":true,"default":"access"},"type":{"type":"TypeString","required":true}}}},"default_encryption_scope":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"group":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"owner":{"type":"TypeString","optional":true,"computed":true},"properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_data_lake_gen2_path":{"schema":{"ace":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"permissions":{"type":"TypeString","required":true},"scope":{"type":"TypeString","optional":true,"default":"access"},"type":{"type":"TypeString","required":true}}}},"filesystem_name":{"type":"TypeString","required":true,"forceNew":true},"group":{"type":"TypeString","optional":true,"computed":true},"owner":{"type":"TypeString","optional":true,"computed":true},"path":{"type":"TypeString","required":true,"forceNew":true},"resource":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_encryption_scope":{"schema":{"infrastructure_encryption_required":{"type":"TypeBool","optional":true,"forceNew":true},"key_vault_key_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"source":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_management_policy":{"schema":{"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"actions":{"type":"TypeList","required":true,"elem":{"schema":{"base_blob":{"type":"TypeList","optional":true,"elem":{"schema":{"auto_tier_to_hot_from_cool_enabled":{"type":"TypeBool","optional":true},"delete_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"delete_after_days_since_last_access_time_greater_than":{"type":"TypeInt","optional":true,"default":-1},"delete_after_days_since_modification_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_last_access_time_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_modification_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_last_access_time_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_modification_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cool_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cool_after_days_since_last_access_time_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cool_after_days_since_modification_greater_than":{"type":"TypeInt","optional":true,"default":-1}}},"maxItems":1},"snapshot":{"type":"TypeList","optional":true,"elem":{"schema":{"change_tier_to_archive_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"change_tier_to_cool_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"delete_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1}}},"maxItems":1},"version":{"type":"TypeList","optional":true,"elem":{"schema":{"change_tier_to_archive_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"change_tier_to_cool_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"delete_after_days_since_creation":{"type":"TypeInt","optional":true,"default":-1},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","optional":true,"default":-1},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","optional":true,"default":-1}}},"maxItems":1}}},"maxItems":1},"enabled":{"type":"TypeBool","required":true},"filters":{"type":"TypeList","required":true,"elem":{"schema":{"blob_types":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"match_blob_index_tag":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"operation":{"type":"TypeString","optional":true,"default":"=="},"value":{"type":"TypeString","required":true}}}},"prefix_match":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true}}},"minItems":1},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover":{"schema":{"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_agent":{"schema":{"arc_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"arc_virtual_machine_uuid":{"type":"TypeString","required":true,"forceNew":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_mover_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_job_definition":{"schema":{"agent_name":{"type":"TypeString","optional":true},"copy_mode":{"type":"TypeString","required":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"source_name":{"type":"TypeString","required":true,"forceNew":true},"source_sub_path":{"type":"TypeString","optional":true,"forceNew":true},"storage_mover_project_id":{"type":"TypeString","required":true,"forceNew":true},"target_name":{"type":"TypeString","required":true,"forceNew":true},"target_sub_path":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_project":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_mover_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_source_endpoint":{"schema":{"description":{"type":"TypeString","optional":true},"export":{"type":"TypeString","optional":true,"forceNew":true},"host":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"nfs_version":{"type":"TypeString","optional":true,"default":"NFSauto","forceNew":true},"storage_mover_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_mover_target_endpoint":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"storage_container_name":{"type":"TypeString","required":true,"forceNew":true},"storage_mover_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_object_replication":{"schema":{"destination_object_replication_id":{"type":"TypeString","computed":true},"destination_storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"rules":{"type":"TypeSet","required":true,"elem":{"schema":{"copy_blobs_created_after":{"type":"TypeString","optional":true,"default":"OnlyNewObjects"},"destination_container_name":{"type":"TypeString","required":true},"filter_out_blobs_with_prefix":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"source_container_name":{"type":"TypeString","required":true}}}},"source_object_replication_id":{"type":"TypeString","computed":true},"source_storage_account_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_queue":{"schema":{"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_share":{"schema":{"access_tier":{"type":"TypeString","optional":true,"computed":true},"acl":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"expiry":{"type":"TypeString","optional":true},"permissions":{"type":"TypeString","required":true},"start":{"type":"TypeString","optional":true}}}},"id":{"type":"TypeString","required":true}}}},"enabled_protocol":{"type":"TypeString","optional":true,"default":"SMB","forceNew":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"quota":{"type":"TypeInt","required":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","optional":true,"forceNew":true},"url":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_share_directory":{"schema":{"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_share_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_share_file":{"schema":{"content_disposition":{"type":"TypeString","optional":true},"content_encoding":{"type":"TypeString","optional":true},"content_length":{"type":"TypeInt","computed":true},"content_md5":{"type":"TypeString","optional":true,"forceNew":true},"content_type":{"type":"TypeString","optional":true,"default":"application/octet-stream"},"metadata":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"path":{"type":"TypeString","optional":true,"default":"","forceNew":true},"source":{"type":"TypeString","optional":true,"forceNew":true},"storage_share_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_sync":{"schema":{"incoming_traffic_policy":{"type":"TypeString","optional":true,"default":"AllowAllTraffic"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"registered_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_sync_cloud_endpoint":{"schema":{"file_share_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_tenant_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"storage_sync_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":45,"read":5,"delete":45}},"azurerm_storage_sync_group":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"storage_sync_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_storage_sync_server_endpoint":{"schema":{"cloud_tiering_enabled":{"type":"TypeBool","optional":true,"default":false},"initial_download_policy":{"type":"TypeString","optional":true,"default":"NamespaceThenModifiedFiles","forceNew":true},"local_cache_mode":{"type":"TypeString","optional":true,"default":"UpdateLocallyCachedFiles"},"name":{"type":"TypeString","required":true,"forceNew":true},"registered_server_id":{"type":"TypeString","required":true,"forceNew":true},"server_local_path":{"type":"TypeString","required":true,"forceNew":true},"storage_sync_group_id":{"type":"TypeString","required":true,"forceNew":true},"tier_files_older_than_days":{"type":"TypeInt","optional":true},"volume_free_space_percent":{"type":"TypeInt","optional":true,"default":20}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_table":{"schema":{"acl":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"expiry":{"type":"TypeString","required":true},"permissions":{"type":"TypeString","required":true},"start":{"type":"TypeString","required":true}}}},"id":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"storage_account_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_storage_table_entity":{"schema":{"entity":{"type":"TypeMap","required":true,"elem":{"type":"TypeString"}},"partition_key":{"type":"TypeString","required":true,"forceNew":true},"row_key":{"type":"TypeString","required":true,"forceNew":true},"storage_table_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_cluster":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"streaming_capacity":{"type":"TypeInt","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_stream_analytics_function_javascript_uda":{"schema":{"input":{"type":"TypeList","required":true,"elem":{"schema":{"configuration_parameter":{"type":"TypeBool","optional":true,"default":false},"type":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"output":{"type":"TypeList","required":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}},"maxItems":1},"script":{"type":"TypeString","required":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_function_javascript_udf":{"schema":{"input":{"type":"TypeList","required":true,"elem":{"schema":{"configuration_parameter":{"type":"TypeBool","optional":true,"default":false},"type":{"type":"TypeString","required":true}}},"minItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"output":{"type":"TypeList","required":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"script":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_job":{"schema":{"compatibility_level":{"type":"TypeString","optional":true,"computed":true},"content_storage_policy":{"type":"TypeString","optional":true,"default":"SystemAccount"},"data_locale":{"type":"TypeString","optional":true,"default":"en-US"},"events_late_arrival_max_delay_in_seconds":{"type":"TypeInt","optional":true,"default":5},"events_out_of_order_max_delay_in_seconds":{"type":"TypeInt","optional":true,"default":0},"events_out_of_order_policy":{"type":"TypeString","optional":true,"default":"Adjust"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"job_id":{"type":"TypeString","computed":true},"job_storage_account":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_error_policy":{"type":"TypeString","optional":true,"default":"Drop"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","optional":true,"default":"Standard"},"stream_analytics_cluster_id":{"type":"TypeString","optional":true},"streaming_units":{"type":"TypeInt","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"transformation_query":{"type":"TypeString","required":true},"type":{"type":"TypeString","optional":true,"default":"Cloud","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_job_schedule":{"schema":{"last_output_time":{"type":"TypeString","computed":true},"start_mode":{"type":"TypeString","required":true},"start_time":{"type":"TypeString","optional":true,"computed":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_managed_private_endpoint":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_cluster_name":{"type":"TypeString","required":true,"forceNew":true},"subresource_name":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":5}},"azurerm_stream_analytics_output_blob":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"batch_max_wait_time":{"type":"TypeString","optional":true},"batch_min_rows":{"type":"TypeInt","optional":true},"blob_write_mode":{"type":"TypeString","optional":true,"default":"Append"},"date_format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path_pattern":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"storage_account_key":{"type":"TypeString","optional":true},"storage_account_name":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"time_format":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_cosmosdb":{"schema":{"container_name":{"type":"TypeString","required":true},"cosmosdb_account_key":{"type":"TypeString","required":true},"cosmosdb_sql_database_id":{"type":"TypeString","required":true},"document_id":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","optional":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_eventhub":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"eventhub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","optional":true},"property_columns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_function":{"schema":{"api_key":{"type":"TypeString","required":true},"batch_max_count":{"type":"TypeInt","optional":true,"default":100},"batch_max_in_bytes":{"type":"TypeInt","optional":true,"default":262144},"function_app":{"type":"TypeString","required":true},"function_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_mssql":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"database":{"type":"TypeString","required":true,"forceNew":true},"max_batch_count":{"type":"TypeFloat","optional":true,"default":10000},"max_writer_count":{"type":"TypeFloat","optional":true,"default":1},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","required":true,"forceNew":true},"user":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_powerbi":{"schema":{"dataset":{"type":"TypeString","required":true},"group_id":{"type":"TypeString","required":true},"group_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","required":true},"token_user_display_name":{"type":"TypeString","optional":true},"token_user_principal_name":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_servicebus_queue":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"name":{"type":"TypeString","required":true,"forceNew":true},"property_columns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"queue_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"system_property_columns":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_servicebus_topic":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"name":{"type":"TypeString","required":true,"forceNew":true},"property_columns":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"format":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"system_property_columns":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"topic_name":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_synapse":{"schema":{"database":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true,"forceNew":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","required":true,"forceNew":true},"user":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_output_table":{"schema":{"batch_size":{"type":"TypeInt","required":true},"columns_to_remove":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"row_key":{"type":"TypeString","required":true},"storage_account_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_reference_input_blob":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"date_format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path_pattern":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"storage_account_key":{"type":"TypeString","optional":true},"storage_account_name":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"time_format":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_reference_input_mssql":{"schema":{"database":{"type":"TypeString","required":true},"delta_snapshot_query":{"type":"TypeString","optional":true},"full_snapshot_query":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true},"refresh_interval_duration":{"type":"TypeString","optional":true},"refresh_type":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"server":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"table":{"type":"TypeString","optional":true},"username":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_stream_input_blob":{"schema":{"date_format":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path_pattern":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"storage_account_key":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true},"time_format":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_stream_input_eventhub":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"eventhub_consumer_group_name":{"type":"TypeString","optional":true},"eventhub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_stream_input_eventhub_v2":{"schema":{"authentication_mode":{"type":"TypeString","optional":true,"default":"ConnectionString"},"eventhub_consumer_group_name":{"type":"TypeString","optional":true},"eventhub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"partition_key":{"type":"TypeString","optional":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"servicebus_namespace":{"type":"TypeString","required":true},"shared_access_policy_key":{"type":"TypeString","optional":true},"shared_access_policy_name":{"type":"TypeString","optional":true},"stream_analytics_job_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_stream_analytics_stream_input_iothub":{"schema":{"endpoint":{"type":"TypeString","required":true},"eventhub_consumer_group_name":{"type":"TypeString","required":true},"iothub_namespace":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"serialization":{"type":"TypeList","required":true,"elem":{"schema":{"encoding":{"type":"TypeString","optional":true},"field_delimiter":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"shared_access_policy_key":{"type":"TypeString","required":true,"forceNew":true},"shared_access_policy_name":{"type":"TypeString","required":true},"stream_analytics_job_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subnet":{"schema":{"address_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"default_outbound_access_enabled":{"type":"TypeBool","optional":true,"default":true},"delegation":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"service_delegation":{"type":"TypeList","required":true,"elem":{"schema":{"actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}},"maxItems":1}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"private_endpoint_network_policies":{"type":"TypeString","optional":true,"default":"Disabled"},"private_link_service_network_policies_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_endpoint_policy_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"service_endpoints":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"virtual_network_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subnet_nat_gateway_association":{"schema":{"nat_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_subnet_network_security_group_association":{"schema":{"network_security_group_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_subnet_route_table_association":{"schema":{"route_table_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_subnet_service_endpoint_storage_policy":{"schema":{"definition":{"type":"TypeList","optional":true,"elem":{"schema":{"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"service":{"type":"TypeString","optional":true,"default":"Microsoft.Storage"},"service_resources":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}},"maxItems":2,"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription":{"schema":{"alias":{"type":"TypeString","optional":true,"description":"The Alias Name of the subscription. If omitted a new UUID will be generated for this property.","computed":true,"forceNew":true},"billing_scope_id":{"type":"TypeString","optional":true},"subscription_id":{"type":"TypeString","optional":true,"description":"The GUID of the Subscription.","computed":true,"forceNew":true},"subscription_name":{"type":"TypeString","required":true,"description":"The Display Name for the Subscription."},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","description":"The Tenant ID to which the subscription belongs","computed":true},"workload":{"type":"TypeString","optional":true,"description":"The workload type for the Subscription. Possible values are `Production` (default) and `DevTest`.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_cost_management_export":{"schema":{"active":{"type":"TypeBool","optional":true,"default":true},"export_data_options":{"type":"TypeList","required":true,"elem":{"schema":{"time_frame":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"export_data_storage_location":{"type":"TypeList","required":true,"elem":{"schema":{"container_id":{"type":"TypeString","required":true,"forceNew":true},"root_folder_path":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"recurrence_period_end_date":{"type":"TypeString","required":true},"recurrence_period_start_date":{"type":"TypeString","required":true},"recurrence_type":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_cost_management_view":{"schema":{"accumulated":{"type":"TypeBool","required":true,"forceNew":true},"chart_type":{"type":"TypeString","required":true},"dataset":{"type":"TypeList","required":true,"elem":{"schema":{"aggregation":{"type":"TypeSet","required":true,"elem":{"schema":{"column_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true}}}},"granularity":{"type":"TypeString","required":true},"grouping":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"sorting":{"type":"TypeList","optional":true,"elem":{"schema":{"direction":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}}}}}},"maxItems":1},"display_name":{"type":"TypeString","required":true},"kpi":{"type":"TypeList","optional":true,"elem":{"schema":{"type":{"type":"TypeString","required":true}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"pivot":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"report_type":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","required":true,"forceNew":true},"timeframe":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_policy_assignment":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"enforce":{"type":"TypeBool","optional":true,"default":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","optional":true,"forceNew":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true}}}},"not_scopes":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"overrides":{"type":"TypeList","optional":true,"elem":{"schema":{"selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","computed":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"value":{"type":"TypeString","required":true}}}},"parameters":{"type":"TypeString","optional":true},"policy_definition_id":{"type":"TypeString","required":true,"forceNew":true},"resource_selectors":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true},"selectors":{"type":"TypeList","required":true,"elem":{"schema":{"in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"kind":{"type":"TypeString","required":true},"not_in":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}}}}},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_policy_exemption":{"schema":{"description":{"type":"TypeString","optional":true},"display_name":{"type":"TypeString","optional":true},"exemption_category":{"type":"TypeString","required":true},"expires_on":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_assignment_id":{"type":"TypeString","required":true,"forceNew":true},"policy_definition_reference_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_policy_remediation":{"schema":{"failure_percentage":{"type":"TypeFloat","optional":true},"location_filters":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"parallel_deployments":{"type":"TypeInt","optional":true},"policy_assignment_id":{"type":"TypeString","required":true},"policy_definition_reference_id":{"type":"TypeString","optional":true},"resource_count":{"type":"TypeInt","optional":true},"resource_discovery_mode":{"type":"TypeString","optional":true,"default":"ExistingNonCompliant"},"subscription_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_subscription_template_deployment":{"schema":{"debug_level":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_content":{"type":"TypeString","computed":true},"parameters_content":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_content":{"type":"TypeString","optional":true,"computed":true},"template_spec_version_id":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_synapse_firewall_rule":{"schema":{"end_ip_address":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"start_ip_address":{"type":"TypeString","required":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_integration_runtime_azure":{"schema":{"compute_type":{"type":"TypeString","optional":true,"default":"General"},"core_count":{"type":"TypeInt","optional":true,"default":8},"description":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"time_to_live_min":{"type":"TypeInt","optional":true,"default":0}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_integration_runtime_self_hosted":{"schema":{"authorization_key_primary":{"type":"TypeString","computed":true},"authorization_key_secondary":{"type":"TypeString","computed":true},"description":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_linked_service":{"schema":{"additional_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"annotations":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","optional":true},"integration_runtime":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"parameters":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true},"type_properties_json":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_managed_private_endpoint":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"subresource_name":{"type":"TypeString","required":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_synapse_private_link_hub":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_role_assignment":{"schema":{"principal_id":{"type":"TypeString","required":true,"forceNew":true},"principal_type":{"type":"TypeString","optional":true,"forceNew":true},"role_name":{"type":"TypeString","required":true,"forceNew":true},"synapse_spark_pool_id":{"type":"TypeString","optional":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_synapse_spark_pool":{"schema":{"auto_pause":{"type":"TypeList","optional":true,"elem":{"schema":{"delay_in_minutes":{"type":"TypeInt","required":true}}},"maxItems":1},"auto_scale":{"type":"TypeList","optional":true,"elem":{"schema":{"max_node_count":{"type":"TypeInt","required":true},"min_node_count":{"type":"TypeInt","required":true}}},"maxItems":1},"cache_size":{"type":"TypeInt","optional":true},"compute_isolation_enabled":{"type":"TypeBool","optional":true,"default":false},"dynamic_executor_allocation_enabled":{"type":"TypeBool","optional":true,"default":false},"library_requirement":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"filename":{"type":"TypeString","required":true}}},"maxItems":1},"max_executors":{"type":"TypeInt","optional":true},"min_executors":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"node_count":{"type":"TypeInt","optional":true,"computed":true},"node_size":{"type":"TypeString","required":true},"node_size_family":{"type":"TypeString","required":true},"session_level_packages_enabled":{"type":"TypeBool","optional":true,"default":false},"spark_config":{"type":"TypeList","optional":true,"elem":{"schema":{"content":{"type":"TypeString","required":true},"filename":{"type":"TypeString","required":true}}},"maxItems":1},"spark_events_folder":{"type":"TypeString","optional":true,"default":"/events"},"spark_log_folder":{"type":"TypeString","optional":true,"default":"/logs"},"spark_version":{"type":"TypeString","required":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool":{"schema":{"collation":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"create_mode":{"type":"TypeString","optional":true,"default":"Default","forceNew":true},"data_encrypted":{"type":"TypeBool","optional":true},"geo_backup_policy_enabled":{"type":"TypeBool","optional":true,"default":true},"name":{"type":"TypeString","required":true,"forceNew":true},"recovery_database_id":{"type":"TypeString","optional":true,"forceNew":true},"restore":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"point_in_time":{"type":"TypeString","required":true,"forceNew":true},"source_database_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"sku_name":{"type":"TypeString","required":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_extended_auditing_policy":{"schema":{"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sql_pool_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_access_key_is_secondary":{"type":"TypeBool","optional":true,"default":false},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_security_alert_policy":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins_enabled":{"type":"TypeBool","optional":true,"default":false},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"policy_state":{"type":"TypeString","required":true},"retention_days":{"type":"TypeInt","optional":true,"default":0},"sql_pool_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_vulnerability_assessment":{"schema":{"recurring_scans":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email_subscription_admins_enabled":{"type":"TypeBool","optional":true,"default":true},"emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"sql_pool_security_alert_policy_id":{"type":"TypeString","required":true,"forceNew":true},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_container_path":{"type":"TypeString","required":true},"storage_container_sas_key":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_vulnerability_assessment_baseline":{"schema":{"baseline":{"type":"TypeList","optional":true,"elem":{"schema":{"result":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","required":true},"rule_name":{"type":"TypeString","required":true},"sql_pool_vulnerability_assessment_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_workload_classifier":{"schema":{"context":{"type":"TypeString","optional":true},"end_time":{"type":"TypeString","optional":true},"importance":{"type":"TypeString","optional":true},"label":{"type":"TypeString","optional":true},"member_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"start_time":{"type":"TypeString","optional":true},"workload_group_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_sql_pool_workload_group":{"schema":{"importance":{"type":"TypeString","optional":true,"default":"normal"},"max_resource_percent":{"type":"TypeInt","required":true},"max_resource_percent_per_request":{"type":"TypeFloat","optional":true,"default":3},"min_resource_percent":{"type":"TypeInt","required":true},"min_resource_percent_per_request":{"type":"TypeFloat","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"query_execution_timeout_in_seconds":{"type":"TypeInt","optional":true},"sql_pool_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace":{"schema":{"azure_devops_repo":{"type":"TypeList","optional":true,"elem":{"schema":{"account_name":{"type":"TypeString","required":true},"branch_name":{"type":"TypeString","required":true},"last_commit_id":{"type":"TypeString","optional":true},"project_name":{"type":"TypeString","required":true},"repository_name":{"type":"TypeString","required":true},"root_folder":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"azuread_authentication_only":{"type":"TypeBool","optional":true,"default":false},"compute_subnet_id":{"type":"TypeString","optional":true,"forceNew":true},"connectivity_endpoints":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"customer_managed_key":{"type":"TypeList","optional":true,"elem":{"schema":{"key_name":{"type":"TypeString","optional":true,"default":"cmk"},"key_versionless_id":{"type":"TypeString","required":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"data_exfiltration_protection_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"github_repo":{"type":"TypeList","optional":true,"elem":{"schema":{"account_name":{"type":"TypeString","required":true},"branch_name":{"type":"TypeString","required":true},"git_url":{"type":"TypeString","optional":true},"last_commit_id":{"type":"TypeString","optional":true},"repository_name":{"type":"TypeString","required":true},"root_folder":{"type":"TypeString","required":true}}},"maxItems":1},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"linking_allowed_for_aad_tenant_ids":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managed_virtual_network_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"purview_id":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sql_administrator_login":{"type":"TypeString","optional":true,"forceNew":true},"sql_administrator_login_password":{"type":"TypeString","optional":true},"sql_identity_control_enabled":{"type":"TypeBool","optional":true},"storage_data_lake_gen2_filesystem_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_aad_admin":{"schema":{"login":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"synapse_workspace_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_extended_auditing_policy":{"schema":{"log_monitoring_enabled":{"type":"TypeBool","optional":true,"default":true},"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_account_access_key_is_secondary":{"type":"TypeBool","optional":true,"default":false},"storage_endpoint":{"type":"TypeString","optional":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_key":{"schema":{"active":{"type":"TypeBool","required":true},"customer_managed_key_name":{"type":"TypeString","required":true},"customer_managed_key_versionless_id":{"type":"TypeString","optional":true},"synapse_workspace_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_security_alert_policy":{"schema":{"disabled_alerts":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"email_account_admins_enabled":{"type":"TypeBool","optional":true,"default":false},"email_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"policy_state":{"type":"TypeString","required":true},"retention_days":{"type":"TypeInt","optional":true,"default":0},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_endpoint":{"type":"TypeString","optional":true},"synapse_workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_sql_aad_admin":{"schema":{"login":{"type":"TypeString","required":true},"object_id":{"type":"TypeString","required":true},"synapse_workspace_id":{"type":"TypeString","required":true},"tenant_id":{"type":"TypeString","required":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_synapse_workspace_vulnerability_assessment":{"schema":{"recurring_scans":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"email_subscription_admins_enabled":{"type":"TypeBool","optional":true,"default":true},"emails":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"storage_account_access_key":{"type":"TypeString","optional":true},"storage_container_path":{"type":"TypeString","required":true},"storage_container_sas_key":{"type":"TypeString","optional":true},"workspace_security_alert_policy_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_system_center_virtual_machine_manager_availability_set":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"system_center_virtual_machine_manager_server_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_system_center_virtual_machine_manager_cloud":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"system_center_virtual_machine_manager_server_inventory_item_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_system_center_virtual_machine_manager_server":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"fqdn":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"password":{"type":"TypeString","required":true,"forceNew":true},"port":{"type":"TypeInt","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"username":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_system_center_virtual_machine_manager_virtual_machine_template":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"system_center_virtual_machine_manager_server_inventory_item_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_system_center_virtual_machine_manager_virtual_network":{"schema":{"custom_location_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"system_center_virtual_machine_manager_server_inventory_item_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_tenant_template_deployment":{"schema":{"debug_level":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_content":{"type":"TypeString","computed":true},"parameters_content":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"template_content":{"type":"TypeString","optional":true,"computed":true},"template_spec_version_id":{"type":"TypeString","optional":true}},"timeouts":{"create":180,"read":5,"delete":180,"update":180}},"azurerm_traffic_manager_azure_endpoint":{"schema":{"always_serve_enabled":{"type":"TypeBool","optional":true,"default":false},"custom_header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"enabled":{"type":"TypeBool","optional":true,"default":true},"geo_mappings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"computed":true},"profile_id":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"first":{"type":"TypeString","required":true},"last":{"type":"TypeString","optional":true},"scope":{"type":"TypeInt","optional":true}}}},"target_resource_id":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_traffic_manager_external_endpoint":{"schema":{"always_serve_enabled":{"type":"TypeBool","optional":true,"default":false},"custom_header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"enabled":{"type":"TypeBool","optional":true,"default":true},"endpoint_location":{"type":"TypeString","optional":true,"computed":true},"geo_mappings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"computed":true},"profile_id":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"first":{"type":"TypeString","required":true},"last":{"type":"TypeString","optional":true},"scope":{"type":"TypeInt","optional":true}}}},"target":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_traffic_manager_nested_endpoint":{"schema":{"custom_header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"enabled":{"type":"TypeBool","optional":true,"default":true},"endpoint_location":{"type":"TypeString","optional":true,"computed":true},"geo_mappings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"minimum_child_endpoints":{"type":"TypeInt","required":true},"minimum_required_child_endpoints_ipv4":{"type":"TypeInt","optional":true},"minimum_required_child_endpoints_ipv6":{"type":"TypeInt","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"priority":{"type":"TypeInt","optional":true,"default":1},"profile_id":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"first":{"type":"TypeString","required":true},"last":{"type":"TypeString","optional":true},"scope":{"type":"TypeInt","optional":true}}}},"target_resource_id":{"type":"TypeString","required":true},"weight":{"type":"TypeInt","optional":true,"default":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_traffic_manager_profile":{"schema":{"dns_config":{"type":"TypeList","required":true,"elem":{"schema":{"relative_name":{"type":"TypeString","required":true,"forceNew":true},"ttl":{"type":"TypeInt","required":true}}},"maxItems":1},"fqdn":{"type":"TypeString","computed":true},"max_return":{"type":"TypeInt","optional":true},"monitor_config":{"type":"TypeList","required":true,"elem":{"schema":{"custom_header":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"expected_status_code_ranges":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"interval_in_seconds":{"type":"TypeInt","optional":true,"default":30},"path":{"type":"TypeString","optional":true},"port":{"type":"TypeInt","required":true},"protocol":{"type":"TypeString","required":true},"timeout_in_seconds":{"type":"TypeInt","optional":true,"default":10},"tolerated_number_of_failures":{"type":"TypeInt","optional":true,"default":3}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"profile_status":{"type":"TypeString","optional":true,"default":"Enabled"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_routing_method":{"type":"TypeString","required":true},"traffic_view_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_trusted_signing_account":{"schema":{"account_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":10,"update":10}},"azurerm_user_assigned_identity":{"schema":{"client_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"principal_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_video_indexer_account":{"schema":{"identity":{"type":"TypeList","required":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage":{"type":"TypeList","required":true,"elem":{"schema":{"storage_account_id":{"type":"TypeString","required":true,"forceNew":true},"user_assigned_identity_id":{"type":"TypeString","optional":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_application":{"schema":{"application_group_id":{"type":"TypeString","required":true,"forceNew":true},"command_line_argument_policy":{"type":"TypeString","required":true},"command_line_arguments":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true,"computed":true},"icon_index":{"type":"TypeInt","optional":true},"icon_path":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"path":{"type":"TypeString","required":true},"show_in_portal":{"type":"TypeBool","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_application_group":{"schema":{"default_desktop_display_name":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true},"host_pool_id":{"type":"TypeString","required":true,"forceNew":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_host_pool":{"schema":{"custom_rdp_properties":{"type":"TypeString","optional":true},"description":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true},"load_balancer_type":{"type":"TypeString","required":true},"location":{"type":"TypeString","required":true,"forceNew":true},"maximum_sessions_allowed":{"type":"TypeInt","optional":true,"default":999999},"name":{"type":"TypeString","required":true,"forceNew":true},"personal_desktop_assignment_type":{"type":"TypeString","optional":true,"forceNew":true},"preferred_app_group_type":{"type":"TypeString","optional":true,"default":"Desktop","description":"Preferred App Group type to display"},"public_network_access":{"type":"TypeString","optional":true,"default":"Enabled"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"scheduled_agent_updates":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":false},"schedule":{"type":"TypeList","optional":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","required":true},"hour_of_day":{"type":"TypeInt","required":true}}},"maxItems":2},"timezone":{"type":"TypeString","optional":true,"default":"UTC"},"use_session_host_timezone":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"start_vm_on_connect":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true},"validate_environment":{"type":"TypeBool","optional":true,"default":false},"vm_template":{"type":"TypeString","optional":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_host_pool_registration_info":{"schema":{"expiration_date":{"type":"TypeString","required":true},"hostpool_id":{"type":"TypeString","required":true,"forceNew":true},"token":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_desktop_scaling_plan":{"schema":{"description":{"type":"TypeString","optional":true},"exclusion_tag":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true},"host_pool":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"hostpool_id":{"type":"TypeString","required":true},"scaling_plan_enabled":{"type":"TypeBool","required":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"days_of_week":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"off_peak_load_balancing_algorithm":{"type":"TypeString","required":true},"off_peak_start_time":{"type":"TypeString","required":true},"peak_load_balancing_algorithm":{"type":"TypeString","required":true},"peak_start_time":{"type":"TypeString","required":true},"ramp_down_capacity_threshold_percent":{"type":"TypeInt","required":true},"ramp_down_force_logoff_users":{"type":"TypeBool","required":true},"ramp_down_load_balancing_algorithm":{"type":"TypeString","required":true},"ramp_down_minimum_hosts_percent":{"type":"TypeInt","required":true},"ramp_down_notification_message":{"type":"TypeString","required":true},"ramp_down_start_time":{"type":"TypeString","required":true},"ramp_down_stop_hosts_when":{"type":"TypeString","required":true},"ramp_down_wait_time_minutes":{"type":"TypeInt","required":true},"ramp_up_capacity_threshold_percent":{"type":"TypeInt","optional":true},"ramp_up_load_balancing_algorithm":{"type":"TypeString","required":true},"ramp_up_minimum_hosts_percent":{"type":"TypeInt","optional":true},"ramp_up_start_time":{"type":"TypeString","required":true}}},"minItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"time_zone":{"type":"TypeString","required":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_scaling_plan_host_pool_association":{"schema":{"enabled":{"type":"TypeBool","required":true},"host_pool_id":{"type":"TypeString","required":true,"forceNew":true},"scaling_plan_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_workspace":{"schema":{"description":{"type":"TypeString","optional":true},"friendly_name":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_desktop_workspace_application_group_association":{"schema":{"application_group_id":{"type":"TypeString","required":true,"forceNew":true},"workspace_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60}},"azurerm_virtual_hub":{"schema":{"address_prefix":{"type":"TypeString","optional":true,"forceNew":true},"default_route_table_id":{"type":"TypeString","computed":true},"hub_routing_preference":{"type":"TypeString","optional":true,"default":"ExpressRoute"},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"route":{"type":"TypeSet","optional":true,"elem":{"schema":{"address_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"next_hop_ip_address":{"type":"TypeString","required":true}}}},"sku":{"type":"TypeString","optional":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_router_asn":{"type":"TypeInt","computed":true},"virtual_router_auto_scale_min_capacity":{"type":"TypeInt","optional":true,"default":2},"virtual_router_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_wan_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_hub_bgp_connection":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"peer_asn":{"type":"TypeInt","required":true,"forceNew":true},"peer_ip":{"type":"TypeString","required":true,"forceNew":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_network_connection_id":{"type":"TypeString","optional":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_hub_connection":{"schema":{"internet_security_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"remote_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"routing":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"associated_route_table_id":{"type":"TypeString","optional":true,"computed":true},"inbound_route_map_id":{"type":"TypeString","optional":true},"outbound_route_map_id":{"type":"TypeString","optional":true},"propagated_route_table":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"labels":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"route_table_ids":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"static_vnet_local_route_override_criteria":{"type":"TypeString","optional":true,"default":"Contains","forceNew":true},"static_vnet_route":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","optional":true},"next_hop_ip_address":{"type":"TypeString","optional":true}}}}}},"maxItems":1},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_hub_ip":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"private_ip_address":{"type":"TypeString","optional":true},"private_ip_allocation_method":{"type":"TypeString","optional":true,"default":"Dynamic"},"public_ip_address_id":{"type":"TypeString","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_hub_route_table":{"schema":{"labels":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"route":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"destinations":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"destinations_type":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"next_hop":{"type":"TypeString","required":true},"next_hop_type":{"type":"TypeString","optional":true,"default":"ResourceId"}}}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_hub_route_table_route":{"schema":{"destinations":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"destinations_type":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true,"forceNew":true},"next_hop":{"type":"TypeString","required":true},"next_hop_type":{"type":"TypeString","optional":true,"default":"ResourceId"},"route_table_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_hub_routing_intent":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"routing_policy":{"type":"TypeList","required":true,"elem":{"schema":{"destinations":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"next_hop":{"type":"TypeString","required":true}}}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_hub_security_partner_provider":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"security_provider_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"ultra_ssd_enabled":{"type":"TypeBool","required":true,"forceNew":true}}},"maxItems":1},"availability_set_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"storage_uri":{"type":"TypeString","required":true}}},"maxItems":1},"delete_data_disks_on_termination":{"type":"TypeBool","optional":true,"default":false},"delete_os_disk_on_termination":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"os_profile":{"type":"TypeSet","optional":true,"elem":{"schema":{"admin_password":{"type":"TypeString","optional":true},"admin_username":{"type":"TypeString","required":true},"computer_name":{"type":"TypeString","required":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}}},"maxItems":1},"os_profile_linux_config":{"type":"TypeSet","optional":true,"elem":{"schema":{"disable_password_authentication":{"type":"TypeBool","required":true},"ssh_keys":{"type":"TypeList","optional":true,"elem":{"schema":{"key_data":{"type":"TypeString","required":true},"path":{"type":"TypeString","required":true}}}}}},"maxItems":1},"os_profile_secrets":{"type":"TypeList","optional":true,"elem":{"schema":{"source_vault_id":{"type":"TypeString","required":true},"vault_certificates":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_store":{"type":"TypeString","optional":true},"certificate_url":{"type":"TypeString","required":true}}}}}}},"os_profile_windows_config":{"type":"TypeSet","optional":true,"elem":{"schema":{"additional_unattend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"component":{"type":"TypeString","required":true},"content":{"type":"TypeString","required":true},"pass":{"type":"TypeString","required":true},"setting_name":{"type":"TypeString","required":true}}}},"enable_automatic_upgrades":{"type":"TypeBool","optional":true,"default":false},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":false},"timezone":{"type":"TypeString","optional":true,"forceNew":true},"winrm":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true}}}}}},"maxItems":1},"plan":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"product":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true}}},"maxItems":1},"primary_network_interface_id":{"type":"TypeString","optional":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"storage_data_disk":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"computed":true},"create_option":{"type":"TypeString","required":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"lun":{"type":"TypeInt","required":true},"managed_disk_id":{"type":"TypeString","optional":true,"computed":true},"managed_disk_type":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true},"vhd_uri":{"type":"TypeString","optional":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"storage_image_reference":{"type":"TypeSet","optional":true,"computed":true,"forceNew":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true,"forceNew":true},"offer":{"type":"TypeString","optional":true,"forceNew":true},"publisher":{"type":"TypeString","optional":true,"forceNew":true},"sku":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"computed":true,"forceNew":true}}},"maxItems":1},"storage_os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"computed":true},"create_option":{"type":"TypeString","required":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"image_uri":{"type":"TypeString","optional":true},"managed_disk_id":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"managed_disk_type":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","optional":true,"computed":true},"vhd_uri":{"type":"TypeString","optional":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vm_size":{"type":"TypeString","required":true},"zones":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"},"maxItems":1}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_machine_automanage_configuration_assignment":{"schema":{"configuration_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_virtual_machine_data_disk_attachment":{"schema":{"caching":{"type":"TypeString","required":true},"create_option":{"type":"TypeString","optional":true,"default":"Attach","forceNew":true},"lun":{"type":"TypeInt","required":true,"forceNew":true},"managed_disk_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_extension":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true},"failure_suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"provision_after_extensions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeString","optional":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_gallery_application_assignment":{"schema":{"configuration_blob_uri":{"type":"TypeString","optional":true,"forceNew":true},"gallery_application_version_id":{"type":"TypeString","required":true,"forceNew":true},"order":{"type":"TypeInt","optional":true,"default":0},"tag":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_implicit_data_disk_from_source":{"schema":{"caching":{"type":"TypeString","optional":true},"create_option":{"type":"TypeString","required":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","required":true,"forceNew":true},"lun":{"type":"TypeInt","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"source_resource_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_packet_capture":{"schema":{"filter":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"local_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"local_port":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true},"remote_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"remote_port":{"type":"TypeString","optional":true,"forceNew":true}}}},"maximum_bytes_per_packet":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"maximum_bytes_per_session":{"type":"TypeInt","optional":true,"default":1073741824,"forceNew":true},"maximum_capture_duration_in_seconds":{"type":"TypeInt","optional":true,"default":18000,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_id":{"type":"TypeString","required":true,"forceNew":true},"storage_location":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"file_path":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_path":{"type":"TypeString","computed":true}}},"maxItems":1},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_virtual_machine_restore_point":{"schema":{"crash_consistency_mode_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"excluded_disks":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_restore_point_collection_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_virtual_machine_restore_point_collection":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"source_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_run_command":{"schema":{"error_blob_managed_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"object_id":{"type":"TypeString","optional":true}}},"maxItems":1},"error_blob_uri":{"type":"TypeString","optional":true},"instance_view":{"type":"TypeList","computed":true,"elem":{"schema":{"end_time":{"type":"TypeString","computed":true},"error_message":{"type":"TypeString","computed":true},"execution_message":{"type":"TypeString","computed":true},"execution_state":{"type":"TypeString","computed":true},"exit_code":{"type":"TypeInt","computed":true},"output":{"type":"TypeString","computed":true},"start_time":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"output_blob_managed_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"object_id":{"type":"TypeString","optional":true}}},"maxItems":1},"output_blob_uri":{"type":"TypeString","optional":true},"parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"protected_parameter":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"run_as_password":{"type":"TypeString","optional":true},"run_as_user":{"type":"TypeString","optional":true},"source":{"type":"TypeList","required":true,"elem":{"schema":{"command_id":{"type":"TypeString","optional":true},"script":{"type":"TypeString","optional":true},"script_uri":{"type":"TypeString","optional":true},"script_uri_managed_identity":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","optional":true},"object_id":{"type":"TypeString","optional":true}}},"maxItems":1}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_scale_set":{"schema":{"automatic_os_upgrade":{"type":"TypeBool","optional":true,"default":false},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"storage_uri":{"type":"TypeString","required":true}}},"maxItems":1},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extension":{"type":"TypeSet","optional":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"provision_after_extensions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true}}}},"health_probe_id":{"type":"TypeString","optional":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true,"computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_profile":{"type":"TypeSet","required":true,"elem":{"schema":{"accelerated_networking":{"type":"TypeBool","optional":true},"dns_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":20},"load_balancer_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","required":true},"public_ip_address_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","required":true},"idle_timeout":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true}}},"maxItems":1},"subnet_id":{"type":"TypeString","required":true}}}},"ip_forwarding":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"network_security_group_id":{"type":"TypeString","optional":true},"primary":{"type":"TypeBool","required":true}}}},"os_profile":{"type":"TypeList","required":true,"elem":{"schema":{"admin_password":{"type":"TypeString","optional":true},"admin_username":{"type":"TypeString","required":true},"computer_name_prefix":{"type":"TypeString","required":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true}}},"maxItems":1},"os_profile_linux_config":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"disable_password_authentication":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"ssh_keys":{"type":"TypeList","optional":true,"elem":{"schema":{"key_data":{"type":"TypeString","optional":true},"path":{"type":"TypeString","required":true}}}}}},"maxItems":1},"os_profile_secrets":{"type":"TypeSet","optional":true,"elem":{"schema":{"source_vault_id":{"type":"TypeString","required":true},"vault_certificates":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_store":{"type":"TypeString","optional":true},"certificate_url":{"type":"TypeString","required":true}}}}}}},"os_profile_windows_config":{"type":"TypeSet","optional":true,"elem":{"schema":{"additional_unattend_config":{"type":"TypeList","optional":true,"elem":{"schema":{"component":{"type":"TypeString","required":true},"content":{"type":"TypeString","required":true},"pass":{"type":"TypeString","required":true},"setting_name":{"type":"TypeString","required":true}}}},"enable_automatic_upgrades":{"type":"TypeBool","optional":true},"provision_vm_agent":{"type":"TypeBool","optional":true},"winrm":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true},"protocol":{"type":"TypeString","required":true}}}}}},"maxItems":1},"overprovision":{"type":"TypeBool","optional":true,"default":true},"plan":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"product":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true}}},"maxItems":1},"priority":{"type":"TypeString","optional":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rolling_upgrade_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"max_batch_instance_percent":{"type":"TypeInt","optional":true,"default":20},"max_unhealthy_instance_percent":{"type":"TypeInt","optional":true,"default":20},"max_unhealthy_upgraded_instance_percent":{"type":"TypeInt","optional":true,"default":20},"pause_time_between_batches":{"type":"TypeString","optional":true,"default":"PT0S"}}},"maxItems":1},"single_placement_group":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"sku":{"type":"TypeList","required":true,"elem":{"schema":{"capacity":{"type":"TypeInt","required":true},"name":{"type":"TypeString","required":true},"tier":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"storage_profile_data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"computed":true},"create_option":{"type":"TypeString","required":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"lun":{"type":"TypeInt","required":true},"managed_disk_type":{"type":"TypeString","optional":true,"computed":true}}}},"storage_profile_image_reference":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"id":{"type":"TypeString","optional":true},"offer":{"type":"TypeString","optional":true},"publisher":{"type":"TypeString","optional":true},"sku":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true}}},"maxItems":1},"storage_profile_os_disk":{"type":"TypeSet","required":true,"elem":{"schema":{"caching":{"type":"TypeString","optional":true,"computed":true},"create_option":{"type":"TypeString","required":true},"image":{"type":"TypeString","optional":true},"managed_disk_type":{"type":"TypeString","optional":true,"computed":true},"name":{"type":"TypeString","optional":true},"os_type":{"type":"TypeString","optional":true},"vhd_containers":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"upgrade_policy_mode":{"type":"TypeString","required":true},"zones":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_virtual_machine_scale_set_extension":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true,"default":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true},"failure_suppression_enabled":{"type":"TypeBool","optional":true,"default":false},"force_update_tag":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"provision_after_extensions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true,"forceNew":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true,"forceNew":true},"type_handler_version":{"type":"TypeString","required":true},"virtual_machine_scale_set_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_machine_scale_set_packet_capture":{"schema":{"filter":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"local_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"local_port":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true},"remote_ip_address":{"type":"TypeString","optional":true,"forceNew":true},"remote_port":{"type":"TypeString","optional":true,"forceNew":true}}}},"machine_scope":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"exclude_instance_ids":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"include_instance_ids":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"maximum_bytes_per_packet":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"maximum_bytes_per_session":{"type":"TypeInt","optional":true,"default":1073741824,"forceNew":true},"maximum_capture_duration_in_seconds":{"type":"TypeInt","optional":true,"default":18000,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_watcher_id":{"type":"TypeString","required":true,"forceNew":true},"storage_location":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"file_path":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_path":{"type":"TypeString","computed":true}}},"maxItems":1},"virtual_machine_scale_set_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_virtual_network":{"schema":{"address_space":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"},"minItems":1},"bgp_community":{"type":"TypeString","optional":true},"ddos_protection_plan":{"type":"TypeList","optional":true,"elem":{"schema":{"enable":{"type":"TypeBool","required":true},"id":{"type":"TypeString","required":true}}},"maxItems":1},"dns_servers":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"encryption":{"type":"TypeList","optional":true,"elem":{"schema":{"enforcement":{"type":"TypeString","required":true}}},"maxItems":1},"flow_timeout_in_minutes":{"type":"TypeInt","optional":true},"guid":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subnet":{"type":"TypeSet","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"address_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"default_outbound_access_enabled":{"type":"TypeBool","optional":true,"default":true},"delegation":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"service_delegation":{"type":"TypeList","configMode":"Auto","required":true,"elem":{"schema":{"actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true}}},"maxItems":1}}},"maxItems":1},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_endpoint_network_policies":{"type":"TypeString","optional":true,"default":"Disabled"},"private_link_service_network_policies_enabled":{"type":"TypeBool","optional":true,"default":true},"route_table_id":{"type":"TypeString","optional":true},"security_group":{"type":"TypeString","optional":true},"service_endpoint_policy_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"service_endpoints":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_network_dns_servers":{"schema":{"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_network_gateway":{"schema":{"active_active":{"type":"TypeBool","optional":true,"computed":true},"bgp_route_translation_for_nat_enabled":{"type":"TypeBool","optional":true,"default":false},"bgp_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","optional":true},"peer_weight":{"type":"TypeInt","optional":true},"peering_addresses":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"apipa_addresses":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"default_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_name":{"type":"TypeString","optional":true,"computed":true},"tunnel_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":2,"minItems":1}}},"maxItems":1},"custom_route":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"default_local_network_gateway_id":{"type":"TypeString","optional":true},"dns_forwarding_enabled":{"type":"TypeBool","optional":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"enable_bgp":{"type":"TypeBool","optional":true,"computed":true},"generation":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"ip_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","optional":true,"default":"vnetGatewayConfig"},"private_ip_address_allocation":{"type":"TypeString","optional":true,"default":"Dynamic"},"public_ip_address_id":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","required":true}}},"maxItems":3},"ip_sec_replay_protection_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy_group":{"type":"TypeList","optional":true,"elem":{"schema":{"is_default":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"policy_member":{"type":"TypeList","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"priority":{"type":"TypeInt","optional":true,"default":0}}}},"private_ip_address_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"remote_vnet_traffic_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true,"forceNew":true},"virtual_wan_traffic_enabled":{"type":"TypeBool","optional":true,"default":false},"vpn_client_configuration":{"type":"TypeList","optional":true,"elem":{"schema":{"aad_audience":{"type":"TypeString","optional":true},"aad_issuer":{"type":"TypeString","optional":true},"aad_tenant":{"type":"TypeString","optional":true},"address_space":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"ipsec_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"dh_group":{"type":"TypeString","required":true},"ike_encryption":{"type":"TypeString","required":true},"ike_integrity":{"type":"TypeString","required":true},"ipsec_encryption":{"type":"TypeString","required":true},"ipsec_integrity":{"type":"TypeString","required":true},"pfs_group":{"type":"TypeString","required":true},"sa_data_size_in_kilobytes":{"type":"TypeInt","required":true},"sa_lifetime_in_seconds":{"type":"TypeInt","required":true}}},"maxItems":1},"radius_server":{"type":"TypeList","optional":true,"elem":{"schema":{"address":{"type":"TypeString","required":true},"score":{"type":"TypeInt","required":true},"secret":{"type":"TypeString","required":true}}}},"radius_server_address":{"type":"TypeString","optional":true},"radius_server_secret":{"type":"TypeString","optional":true},"revoked_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"thumbprint":{"type":"TypeString","required":true}}}},"root_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"public_cert_data":{"type":"TypeString","required":true}}}},"virtual_network_gateway_client_connection":{"type":"TypeList","optional":true,"elem":{"schema":{"address_prefixes":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"policy_group_names":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"vpn_auth_types":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"},"maxItems":3},"vpn_client_protocols":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"vpn_type":{"type":"TypeString","optional":true,"default":"RouteBased","forceNew":true}},"timeouts":{"create":90,"read":5,"delete":60,"update":60}},"azurerm_virtual_network_gateway_connection":{"schema":{"authorization_key":{"type":"TypeString","optional":true},"connection_mode":{"type":"TypeString","optional":true,"default":"Default","forceNew":true},"connection_protocol":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_bgp_addresses":{"type":"TypeList","optional":true,"elem":{"schema":{"primary":{"type":"TypeString","required":true},"secondary":{"type":"TypeString","optional":true}}},"maxItems":1},"dpd_timeout_seconds":{"type":"TypeInt","optional":true,"forceNew":true},"egress_nat_rule_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"enable_bgp":{"type":"TypeBool","optional":true,"computed":true},"express_route_circuit_id":{"type":"TypeString","optional":true,"forceNew":true},"express_route_gateway_bypass":{"type":"TypeBool","optional":true,"computed":true},"ingress_nat_rule_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"ipsec_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"dh_group":{"type":"TypeString","required":true},"ike_encryption":{"type":"TypeString","required":true},"ike_integrity":{"type":"TypeString","required":true},"ipsec_encryption":{"type":"TypeString","required":true},"ipsec_integrity":{"type":"TypeString","required":true},"pfs_group":{"type":"TypeString","required":true},"sa_datasize":{"type":"TypeInt","optional":true,"computed":true},"sa_lifetime":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"local_azure_ip_address_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"local_network_gateway_id":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"peer_virtual_network_gateway_id":{"type":"TypeString","optional":true,"forceNew":true},"private_link_fast_path_enabled":{"type":"TypeBool","optional":true,"default":false},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_weight":{"type":"TypeInt","optional":true,"computed":true},"shared_key":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_selector_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"local_address_cidrs":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"remote_address_cidrs":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}}},"type":{"type":"TypeString","required":true,"forceNew":true},"use_policy_based_traffic_selectors":{"type":"TypeBool","optional":true,"computed":true},"virtual_network_gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_network_gateway_nat_rule":{"schema":{"external_mapping":{"type":"TypeList","required":true,"elem":{"schema":{"address_space":{"type":"TypeString","required":true},"port_range":{"type":"TypeString","optional":true}}}},"internal_mapping":{"type":"TypeList","required":true,"elem":{"schema":{"address_space":{"type":"TypeString","required":true},"port_range":{"type":"TypeString","optional":true}}}},"ip_configuration_id":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","optional":true,"default":"EgressSnat","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","optional":true,"default":"Static","forceNew":true},"virtual_network_gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_network_peering":{"schema":{"allow_forwarded_traffic":{"type":"TypeBool","optional":true,"default":false},"allow_gateway_transit":{"type":"TypeBool","optional":true,"default":false},"allow_virtual_network_access":{"type":"TypeBool","optional":true,"default":true},"local_subnet_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"only_ipv6_peering_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"peer_complete_virtual_networks_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"remote_subnet_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"remote_virtual_network_id":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"triggers":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"use_remote_gateways":{"type":"TypeBool","optional":true,"default":false},"virtual_network_name":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_virtual_wan":{"schema":{"allow_branch_to_branch_traffic":{"type":"TypeBool","optional":true,"default":true},"disable_vpn_encryption":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"office365_local_breakout_category":{"type":"TypeString","optional":true,"default":"None"},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","optional":true,"default":"Standard"}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vmware_cluster":{"schema":{"cluster_node_count":{"type":"TypeInt","required":true},"cluster_number":{"type":"TypeInt","computed":true},"hosts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"vmware_cloud_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":300,"read":5,"delete":300,"update":300}},"azurerm_vmware_express_route_authorization":{"schema":{"express_route_authorization_id":{"type":"TypeString","computed":true},"express_route_authorization_key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"private_cloud_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_vmware_netapp_volume_attachment":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"netapp_volume_id":{"type":"TypeString","required":true,"forceNew":true},"vmware_cluster_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_vmware_private_cloud":{"schema":{"circuit":{"type":"TypeList","computed":true,"elem":{"schema":{"express_route_id":{"type":"TypeString","computed":true},"express_route_private_peering_id":{"type":"TypeString","computed":true},"primary_subnet_cidr":{"type":"TypeString","computed":true},"secondary_subnet_cidr":{"type":"TypeString","computed":true}}}},"hcx_cloud_manager_endpoint":{"type":"TypeString","computed":true},"internet_connection_enabled":{"type":"TypeBool","optional":true,"default":false},"location":{"type":"TypeString","required":true,"forceNew":true},"management_cluster":{"type":"TypeList","required":true,"elem":{"schema":{"hosts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeInt","computed":true},"size":{"type":"TypeInt","required":true}}},"maxItems":1},"management_subnet_cidr":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"network_subnet_cidr":{"type":"TypeString","required":true,"forceNew":true},"nsxt_certificate_thumbprint":{"type":"TypeString","computed":true},"nsxt_manager_endpoint":{"type":"TypeString","computed":true},"nsxt_password":{"type":"TypeString","optional":true,"forceNew":true},"provisioning_subnet_cidr":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vcenter_certificate_thumbprint":{"type":"TypeString","computed":true},"vcenter_password":{"type":"TypeString","optional":true,"forceNew":true},"vcsa_endpoint":{"type":"TypeString","computed":true},"vmotion_subnet_cidr":{"type":"TypeString","computed":true}},"timeouts":{"create":600,"read":5,"delete":600,"update":600}},"azurerm_voice_services_communications_gateway":{"schema":{"api_bridge":{"type":"TypeString","optional":true},"auto_generated_domain_name_label_scope":{"type":"TypeString","optional":true,"default":"TenantReuse","forceNew":true},"codecs":{"type":"TypeString","required":true},"connectivity":{"type":"TypeString","required":true,"forceNew":true},"e911_type":{"type":"TypeString","required":true},"emergency_dial_strings":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"microsoft_teams_voicemail_pilot_number":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true,"forceNew":true},"on_prem_mcp_enabled":{"type":"TypeBool","optional":true},"platforms":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_location":{"type":"TypeSet","required":true,"elem":{"schema":{"allowed_media_source_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"allowed_signaling_source_address_prefixes":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"esrp_addresses":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true},"operator_addresses":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_voice_services_communications_gateway_test_line":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"phone_number":{"type":"TypeString","required":true},"purpose":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"voice_services_communications_gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vpn_gateway":{"schema":{"bgp_route_translation_for_nat_enabled":{"type":"TypeBool","optional":true,"default":false},"bgp_settings":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","required":true,"forceNew":true},"bgp_peering_address":{"type":"TypeString","computed":true},"instance_0_bgp_peering_address":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"custom_ips":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"default_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_id":{"type":"TypeString","computed":true},"tunnel_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"instance_1_bgp_peering_address":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"custom_ips":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"default_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_id":{"type":"TypeString","computed":true},"tunnel_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"peer_weight":{"type":"TypeInt","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"routing_preference":{"type":"TypeString","optional":true,"default":"Microsoft Network","forceNew":true},"scale_unit":{"type":"TypeInt","optional":true,"default":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_vpn_gateway_connection":{"schema":{"internet_security_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true,"forceNew":true},"remote_vpn_site_id":{"type":"TypeString","required":true,"forceNew":true},"routing":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"associated_route_table":{"type":"TypeString","required":true},"inbound_route_map_id":{"type":"TypeString","optional":true},"outbound_route_map_id":{"type":"TypeString","optional":true},"propagated_route_table":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"labels":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"route_table_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}}}},"maxItems":1}}},"maxItems":1},"traffic_selector_policy":{"type":"TypeSet","optional":true,"elem":{"schema":{"local_address_ranges":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"remote_address_ranges":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}}}}},"vpn_gateway_id":{"type":"TypeString","required":true,"forceNew":true},"vpn_link":{"type":"TypeList","required":true,"elem":{"schema":{"bandwidth_mbps":{"type":"TypeInt","optional":true,"default":10},"bgp_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"connection_mode":{"type":"TypeString","optional":true,"default":"Default"},"custom_bgp_address":{"type":"TypeSet","optional":true,"elem":{"schema":{"ip_address":{"type":"TypeString","required":true},"ip_configuration_id":{"type":"TypeString","required":true}}}},"egress_nat_rule_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"ingress_nat_rule_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"ipsec_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"dh_group":{"type":"TypeString","required":true},"encryption_algorithm":{"type":"TypeString","required":true},"ike_encryption_algorithm":{"type":"TypeString","required":true},"ike_integrity_algorithm":{"type":"TypeString","required":true},"integrity_algorithm":{"type":"TypeString","required":true},"pfs_group":{"type":"TypeString","required":true},"sa_data_size_kb":{"type":"TypeInt","required":true},"sa_lifetime_sec":{"type":"TypeInt","required":true}}},"minItems":1},"local_azure_ip_address_enabled":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"policy_based_traffic_selector_enabled":{"type":"TypeBool","optional":true,"default":false},"protocol":{"type":"TypeString","optional":true,"default":"IKEv2"},"ratelimit_enabled":{"type":"TypeBool","optional":true,"default":false},"route_weight":{"type":"TypeInt","optional":true,"default":0},"shared_key":{"type":"TypeString","optional":true},"vpn_site_link_id":{"type":"TypeString","required":true,"forceNew":true}}},"minItems":1}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vpn_gateway_nat_rule":{"schema":{"external_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"address_space":{"type":"TypeString","required":true},"port_range":{"type":"TypeString","optional":true}}}},"internal_mapping":{"type":"TypeList","optional":true,"elem":{"schema":{"address_space":{"type":"TypeString","required":true},"port_range":{"type":"TypeString","optional":true}}}},"ip_configuration_id":{"type":"TypeString","optional":true},"mode":{"type":"TypeString","optional":true,"default":"EgressSnat","forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","optional":true,"default":"Static","forceNew":true},"vpn_gateway_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vpn_server_configuration":{"schema":{"azure_active_directory_authentication":{"type":"TypeList","optional":true,"elem":{"schema":{"audience":{"type":"TypeString","required":true},"issuer":{"type":"TypeString","required":true},"tenant":{"type":"TypeString","required":true}}},"minItems":1},"client_revoked_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"thumbprint":{"type":"TypeString","required":true}}}},"client_root_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"public_cert_data":{"type":"TypeString","required":true}}}},"ipsec_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"dh_group":{"type":"TypeString","required":true},"ike_encryption":{"type":"TypeString","required":true},"ike_integrity":{"type":"TypeString","required":true},"ipsec_encryption":{"type":"TypeString","required":true},"ipsec_integrity":{"type":"TypeString","required":true},"pfs_group":{"type":"TypeString","required":true},"sa_data_size_kilobytes":{"type":"TypeInt","required":true},"sa_lifetime_seconds":{"type":"TypeInt","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"radius":{"type":"TypeList","optional":true,"elem":{"schema":{"client_root_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"thumbprint":{"type":"TypeString","required":true}}}},"server":{"type":"TypeList","optional":true,"elem":{"schema":{"address":{"type":"TypeString","required":true},"score":{"type":"TypeInt","required":true},"secret":{"type":"TypeString","required":true}}}},"server_root_certificate":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"public_cert_data":{"type":"TypeString","required":true}}}}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"vpn_authentication_types":{"type":"TypeList","required":true,"elem":{"type":"TypeString"}},"vpn_protocols":{"type":"TypeSet","optional":true,"computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":90,"read":5,"delete":90,"update":90}},"azurerm_vpn_server_configuration_policy_group":{"schema":{"is_default":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"policy":{"type":"TypeSet","required":true,"elem":{"schema":{"name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true},"value":{"type":"TypeString","required":true}}}},"priority":{"type":"TypeInt","optional":true,"default":0},"vpn_server_configuration_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_vpn_site":{"schema":{"address_cidrs":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"device_model":{"type":"TypeString","optional":true},"device_vendor":{"type":"TypeString","optional":true},"link":{"type":"TypeList","optional":true,"elem":{"schema":{"bgp":{"type":"TypeList","optional":true,"elem":{"schema":{"asn":{"type":"TypeInt","required":true},"peering_address":{"type":"TypeString","required":true}}},"maxItems":1},"fqdn":{"type":"TypeString","optional":true},"id":{"type":"TypeString","computed":true},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"provider_name":{"type":"TypeString","optional":true},"speed_in_mbps":{"type":"TypeInt","optional":true,"default":0}}},"minItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"o365_policy":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"traffic_category":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allow_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"default_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false},"optimize_endpoint_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_wan_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_app_active_slot":{"schema":{"last_successful_swap":{"type":"TypeString","description":"The timestamp of the last successful swap with `Production`","computed":true},"overwrite_network_config":{"type":"TypeBool","optional":true,"default":true,"description":"The swap action should overwrite the Production slot's network configuration with the configuration from this slot. Defaults to `true`.","forceNew":true},"slot_id":{"type":"TypeString","required":true,"description":"The ID of the Slot to swap with `Production`."}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_web_app_hybrid_connection":{"schema":{"hostname":{"type":"TypeString","required":true,"description":"The hostname of the endpoint."},"namespace_name":{"type":"TypeString","description":"The name of the Relay Namespace.","computed":true},"port":{"type":"TypeInt","required":true,"description":"The port to use for the endpoint"},"relay_id":{"type":"TypeString","required":true,"description":"The ID of the Relay Hybrid Connection to use.","forceNew":true},"relay_name":{"type":"TypeString","description":"The name of the Relay in use.","computed":true},"send_key_name":{"type":"TypeString","optional":true,"default":"RootManageSharedAccessKey","description":"The name of the Relay key with `Send` permission to use. Defaults to `RootManageSharedAccessKey`"},"send_key_value":{"type":"TypeString","description":"The Primary Access Key for the `send_key_name`","computed":true},"service_bus_namespace":{"type":"TypeString","description":"The Service Bus Namespace.","computed":true},"service_bus_suffix":{"type":"TypeString","description":"The suffix for the endpoint.","computed":true},"web_app_id":{"type":"TypeString","required":true,"description":"The ID of the Web App for this Hybrid Connection.","forceNew":true}},"timeouts":{"create":30,"read":5,"delete":5,"update":30}},"azurerm_web_application_firewall_policy":{"schema":{"custom_rules":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"group_rate_limit_by":{"type":"TypeString","optional":true},"match_conditions":{"type":"TypeList","required":true,"elem":{"schema":{"match_values":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"match_variables":{"type":"TypeList","required":true,"elem":{"schema":{"selector":{"type":"TypeString","optional":true},"variable_name":{"type":"TypeString","required":true}}}},"negation_condition":{"type":"TypeBool","optional":true},"operator":{"type":"TypeString","required":true},"transforms":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","optional":true},"priority":{"type":"TypeInt","required":true},"rate_limit_duration":{"type":"TypeString","optional":true},"rate_limit_threshold":{"type":"TypeInt","optional":true},"rule_type":{"type":"TypeString","required":true}}}},"http_listener_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_rules":{"type":"TypeList","required":true,"elem":{"schema":{"exclusion":{"type":"TypeList","optional":true,"elem":{"schema":{"excluded_rule_set":{"type":"TypeList","optional":true,"elem":{"schema":{"rule_group":{"type":"TypeList","optional":true,"elem":{"schema":{"excluded_rules":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"rule_group_name":{"type":"TypeString","required":true}}}},"type":{"type":"TypeString","optional":true,"default":"OWASP"},"version":{"type":"TypeString","optional":true,"default":"3.2"}}},"maxItems":1},"match_variable":{"type":"TypeString","required":true},"selector":{"type":"TypeString","required":true},"selector_match_operator":{"type":"TypeString","required":true}}}},"managed_rule_set":{"type":"TypeList","required":true,"elem":{"schema":{"rule_group_override":{"type":"TypeList","optional":true,"elem":{"schema":{"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true},"enabled":{"type":"TypeBool","optional":true,"default":false},"id":{"type":"TypeString","required":true}}}},"rule_group_name":{"type":"TypeString","required":true}}}},"type":{"type":"TypeString","optional":true,"default":"OWASP"},"version":{"type":"TypeString","required":true}}}}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"path_based_rule_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"policy_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"file_upload_enforcement":{"type":"TypeBool","optional":true,"computed":true},"file_upload_limit_in_mb":{"type":"TypeInt","optional":true,"default":100},"js_challenge_cookie_expiration_in_minutes":{"type":"TypeInt","optional":true,"default":30},"log_scrubbing":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"rule":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true},"match_variable":{"type":"TypeString","required":true},"selector":{"type":"TypeString","optional":true,"description":"When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to."},"selector_match_operator":{"type":"TypeString","optional":true,"default":"Equals"}}}}}},"maxItems":1},"max_request_body_size_in_kb":{"type":"TypeInt","optional":true,"default":128},"mode":{"type":"TypeString","optional":true,"default":"Prevention"},"request_body_check":{"type":"TypeBool","optional":true,"default":true},"request_body_enforcement":{"type":"TypeBool","optional":true,"default":true},"request_body_inspect_limit_in_kb":{"type":"TypeInt","optional":true,"default":128}}},"maxItems":1},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_pubsub":{"schema":{"aad_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"capacity":{"type":"TypeInt","optional":true,"default":1},"external_ip":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"live_trace":{"type":"TypeList","optional":true,"elem":{"schema":{"connectivity_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"http_request_logs_enabled":{"type":"TypeBool","optional":true,"default":true},"messaging_logs_enabled":{"type":"TypeBool","optional":true,"default":true}}},"maxItems":1},"local_auth_enabled":{"type":"TypeBool","optional":true,"default":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"public_port":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"server_port":{"type":"TypeInt","computed":true},"sku":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tls_client_cert_enabled":{"type":"TypeBool","optional":true,"default":false},"version":{"type":"TypeString","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_pubsub_custom_certificate":{"schema":{"certificate_version":{"type":"TypeString","computed":true},"custom_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_web_pubsub_custom_domain":{"schema":{"domain_name":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_custom_certificate_id":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30}},"azurerm_web_pubsub_hub":{"schema":{"anonymous_connections_enabled":{"type":"TypeBool","optional":true,"default":false},"event_handler":{"type":"TypeList","optional":true,"elem":{"schema":{"auth":{"type":"TypeList","optional":true,"elem":{"schema":{"managed_identity_id":{"type":"TypeString","required":true}}},"maxItems":1,"minItems":1},"system_events":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"url_template":{"type":"TypeString","required":true},"user_event_pattern":{"type":"TypeString","optional":true}}}},"event_listener":{"type":"TypeList","optional":true,"elem":{"schema":{"eventhub_name":{"type":"TypeString","required":true},"eventhub_namespace_name":{"type":"TypeString","required":true},"system_event_name_filter":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"user_event_name_filter":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_pubsub_network_acl":{"schema":{"default_action":{"type":"TypeString","optional":true,"default":"Deny"},"private_endpoint":{"type":"TypeSet","optional":true,"elem":{"schema":{"allowed_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"denied_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","required":true}}}},"public_network":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"denied_request_types":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_web_pubsub_shared_private_link_resource":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"request_message":{"type":"TypeString","optional":true},"status":{"type":"TypeString","computed":true},"subresource_name":{"type":"TypeString","required":true,"forceNew":true},"target_resource_id":{"type":"TypeString","required":true,"forceNew":true},"web_pubsub_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_windows_function_app":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.","elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"builtin_logging_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting"},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the function app use Client Certificates"},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Optional","description":"The mode of the Function App's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser` "},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"content_share_force_disabled":{"type":"TypeBool","optional":true,"default":false,"description":"Force disable the content share settings."},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans."},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Is the Windows Function App enabled."},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"functions_extension_version":{"type":"TypeString","optional":true,"default":"~4","description":"The runtime version associated with the Function App."},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"description":"Can the Function App only be accessed via HTTPS?","computed":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Key Vault access.","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"description":"Specifies the name of the Function App.","forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_plan_id":{"type":"TypeString","required":true,"description":"The ID of the App Service Plan within which to create this Function App"},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"description":"If this Windows Web App is Always On enabled. Defaults to `false`.","computed":true},"api_definition_url":{"type":"TypeString","optional":true,"description":"The URL of the API definition that describes this Windows Function App."},"api_management_api_id":{"type":"TypeString","optional":true,"description":"The ID of the API Management API for this Windows Function App."},"app_command_line":{"type":"TypeString","optional":true,"description":"The program and any arguments used to launch this app via the command line. (Example `node myapp.js`)."},"app_scale_limit":{"type":"TypeInt","optional":true,"description":"The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.","computed":true},"app_service_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","optional":true,"default":35,"description":"The amount of disk space to use for logs. Valid values are between `25` and `100`."},"retention_period_days":{"type":"TypeInt","optional":true,"description":"The retention period for logs in days. Valid values are between `0` and `99999`. Defaults to `0` (never delete)."}}},"maxItems":1},"application_insights_connection_string":{"type":"TypeString","optional":true,"description":"The Connection String for linking the Windows Function App to Application Insights."},"application_insights_key":{"type":"TypeString","optional":true,"description":"The Instrumentation Key for connecting the Windows Function App to Application Insights."},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"dotnet_version":{"type":"TypeString","optional":true,"default":"v4.0","description":"The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`"},"java_version":{"type":"TypeString","optional":true,"description":"The version of Java to use. Possible values are `1.8`, `11` and `17`"},"node_version":{"type":"TypeString","optional":true,"description":"The version of Node to use. Possible values include `12`, `14`, `16` and `18`"},"powershell_core_version":{"type":"TypeString","optional":true,"description":"The PowerShell Core version to use. Possible values are `7`, `7.2`, and `7.4`"},"use_custom_runtime":{"type":"TypeBool","optional":true,"description":"Does the Function App use a custom Application Stack?","computed":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","optional":true,"description":"Should the DotNet process use an isolated runtime. Defaults to `false`.","computed":true}}},"maxItems":1},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"description":"Specifies a list of Default Documents for the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","description":"Is detailed error logging enabled","computed":true},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"description":"The number of minimum instances for this Windows Function App. Only affects apps on Elastic Premium plans.","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled","description":"State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`."},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true,"description":"The path to be checked for this function app health."},"http2_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies if the http2 protocol should be enabled. Defaults to `false`."},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests","description":"The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted."},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated","description":"The Managed Pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`."},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"description":"The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Remote Debugging be enabled. Defaults to `false`."},"remote_debugging_version":{"type":"TypeString","optional":true,"description":"The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"description":"Should Functions Runtime Scale Monitoring be enabled."},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"scm_type":{"type":"TypeString","description":"The SCM Type in use by the Windows Function App.","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Function App `ip_restriction` configuration be used for the SCM also."},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true,"description":"Should the Windows Web App use a 32-bit worker."},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Web Sockets be enabled. Defaults to `false`."},"windows_fx_version":{"type":"TypeString","description":"The Windows FX Version string.","computed":true},"worker_count":{"type":"TypeInt","optional":true,"description":"The number of Workers for this Windows Function App.","computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"connection_string_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"storage_account_access_key":{"type":"TypeString","optional":true,"description":"The access key which will be used to access the storage account for the Function App."},"storage_account_name":{"type":"TypeString","optional":true,"description":"The backend storage account name which will be used by this Function App."},"storage_key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App."},"storage_uses_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App use its Managed Identity to access storage?"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"vnet_image_pull_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is container image pull over virtual network enabled? Defaults to `false`."},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Windows Function App. **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` to be set on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_windows_function_app_slot":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs for [App Settings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings) and custom values.","elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"builtin_logging_enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should built in logging be enabled. Configures `AzureWebJobsDashboard` app setting based on the configured storage setting."},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App Slot use Client Certificates."},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Optional","description":"The mode of the Function App Slot's client certificates requirement for incoming requests. Possible values are `Required`, `Optional`, and `OptionalInteractiveUser`."},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"content_share_force_disabled":{"type":"TypeBool","optional":true,"default":false,"description":"Force disable the content share settings."},"custom_domain_verification_id":{"type":"TypeString","description":"The identifier used by App Service to perform domain ownership verification via DNS TXT record.","computed":true},"daily_memory_time_quota":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps in Consumption Plans."},"default_hostname":{"type":"TypeString","description":"The default hostname of the Windows Function App Slot.","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Is the Windows Function App Slot enabled."},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"function_app_id":{"type":"TypeString","required":true,"description":"The ID of the Windows Function App this Slot is a member of.","forceNew":true},"functions_extension_version":{"type":"TypeString","optional":true,"default":"~4","description":"The runtime version associated with the Function App Slot."},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false,"description":"Can the Function App Slot only be accessed via HTTPS?"},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"description":"The User Assigned Identity to use for Key Vault access.","computed":true},"kind":{"type":"TypeString","description":"The Kind value for this Windows Function App Slot.","computed":true},"name":{"type":"TypeString","required":true,"description":"Specifies the name of the Windows Function App Slot.","forceNew":true},"outbound_ip_address_list":{"type":"TypeList","description":"A list of outbound IP addresses. For example `[\"52.23.25.3\", \"52.143.43.12\"]`.","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","description":"A comma separated list of outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12`.","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","description":"A list of possible outbound IP addresses, not all of which are necessarily in use. This is a superset of `outbound_ip_address_list`. For example `[\"52.23.25.3\", \"52.143.43.12\"]`.","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","description":"A comma separated list of possible outbound IP addresses as a string. For example `52.23.25.3,52.143.43.12,52.143.43.17`. This is a superset of `outbound_ip_addresses`. For example `[\"52.23.25.3\", \"52.143.43.12\",\"52.143.43.17\"]`.","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_plan_id":{"type":"TypeString","optional":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"description":"If this Windows Web App is Always On enabled. Defaults to `false`.","computed":true},"api_definition_url":{"type":"TypeString","optional":true,"description":"The URL of the API definition that describes this Windows Function App."},"api_management_api_id":{"type":"TypeString","optional":true,"description":"The ID of the API Management API for this Windows Function App."},"app_command_line":{"type":"TypeString","optional":true,"description":"The program and any arguments used to launch this app via the command line. (Example `node myapp.js`)."},"app_scale_limit":{"type":"TypeInt","optional":true,"description":"The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.","computed":true},"app_service_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","optional":true,"default":35,"description":"The amount of disk space to use for logs. Valid values are between `25` and `100`."},"retention_period_days":{"type":"TypeInt","optional":true,"description":"The retention period for logs in days. Valid values are between `0` and `99999`. Defaults to `0` (never delete)."}}},"maxItems":1},"application_insights_connection_string":{"type":"TypeString","optional":true,"description":"The Connection String for linking the Windows Function App to Application Insights."},"application_insights_key":{"type":"TypeString","optional":true,"description":"The Instrumentation Key for connecting the Windows Function App to Application Insights."},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"dotnet_version":{"type":"TypeString","optional":true,"default":"v4.0","description":"The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`"},"java_version":{"type":"TypeString","optional":true,"description":"The version of Java to use. Possible values are `1.8`, `11` and `17`"},"node_version":{"type":"TypeString","optional":true,"description":"The version of Node to use. Possible values include `12`, `14`, `16` and `18`"},"powershell_core_version":{"type":"TypeString","optional":true,"description":"The PowerShell Core version to use. Possible values are `7`, `7.2`, and `7.4`"},"use_custom_runtime":{"type":"TypeBool","optional":true,"description":"Does the Function App use a custom Application Stack?","computed":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","optional":true,"description":"Should the DotNet process use an isolated runtime. Defaults to `false`.","computed":true}}},"maxItems":1},"auto_swap_slot_name":{"type":"TypeString","optional":true},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"description":"Specifies a list of Default Documents for the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","description":"Is detailed error logging enabled","computed":true},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"description":"The number of minimum instances for this Windows Function App. Only affects apps on Elastic Premium plans.","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled","description":"State of FTP / FTPS service for this function app. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `Disabled`."},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"default":0,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Defaults to `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true,"description":"The path to be checked for this function app health."},"http2_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Specifies if the http2 protocol should be enabled. Defaults to `false`."},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests","description":"The Site load balancing mode. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted."},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated","description":"The Managed Pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`."},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"description":"The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan.","computed":true},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Remote Debugging be enabled. Defaults to `false`."},"remote_debugging_version":{"type":"TypeString","optional":true,"description":"The Remote Debugging Version. Possible values include `VS2017`, `VS2019`, and `VS2022`","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"description":"Should Functions Runtime Scale Monitoring be enabled."},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2","description":"Configures the minimum version of TLS required for SSL requests to the SCM site Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`."},"scm_type":{"type":"TypeString","description":"The SCM Type in use by the Windows Function App.","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Function App `ip_restriction` configuration be used for the SCM also."},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true,"description":"Should the Windows Function App use a 32-bit worker."},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should Web Sockets be enabled. Defaults to `false`."},"windows_fx_version":{"type":"TypeString","description":"The Windows FX Version string.","computed":true},"worker_count":{"type":"TypeInt","optional":true,"description":"The number of Workers for this Windows Function App.","computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"storage_account_access_key":{"type":"TypeString","optional":true,"description":"The access key which will be used to access the storage account for the Function App Slot."},"storage_account_name":{"type":"TypeString","optional":true,"description":"The backend storage account name which will be used by this Function App Slot."},"storage_key_vault_secret_id":{"type":"TypeString","optional":true,"description":"The Key Vault Secret ID, including version, that contains the Connection String to connect to the storage account for this Function App."},"storage_uses_managed_identity":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Function App Slot use its Managed Identity to access storage?"},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"vnet_image_pull_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Is container image pull over virtual network enabled? Defaults to `false`."},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_windows_virtual_machine":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"hibernation_enabled":{"type":"TypeBool","optional":true,"default":false},"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"additional_unattend_content":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"content":{"type":"TypeString","required":true,"forceNew":true},"setting":{"type":"TypeString","required":true,"forceNew":true}}}},"admin_password":{"type":"TypeString","required":true,"forceNew":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"allow_extension_operations":{"type":"TypeBool","optional":true,"default":true},"availability_set_id":{"type":"TypeString","optional":true,"forceNew":true},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"bypass_platform_safety_checks_on_user_schedule_enabled":{"type":"TypeBool","optional":true,"default":false},"capacity_reservation_group_id":{"type":"TypeString","optional":true},"computer_name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true,"forceNew":true},"dedicated_host_group_id":{"type":"TypeString","optional":true},"dedicated_host_id":{"type":"TypeString","optional":true},"disk_controller_type":{"type":"TypeString","optional":true,"computed":true},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"enable_automatic_updates":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"gallery_application":{"type":"TypeList","optional":true,"elem":{"schema":{"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":false},"configuration_blob_uri":{"type":"TypeString","optional":true},"order":{"type":"TypeInt","optional":true,"default":0},"tag":{"type":"TypeString","optional":true},"treat_failure_as_deployment_failure_enabled":{"type":"TypeBool","optional":true,"default":false},"version_id":{"type":"TypeString","required":true}}},"maxItems":100},"hotpatching_enabled":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"license_type":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface_ids":{"type":"TypeList","required":true,"elem":{"type":"TypeString"},"minItems":1},"os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"name":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_encryption_type":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"os_image_notification":{"type":"TypeList","optional":true,"elem":{"schema":{"timeout":{"type":"TypeString","optional":true,"default":"PT15M"}}},"maxItems":1},"patch_assessment_mode":{"type":"TypeString","optional":true,"default":"ImageDefault"},"patch_mode":{"type":"TypeString","optional":true,"default":"AutomaticByOS"},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain":{"type":"TypeInt","optional":true,"default":-1,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true},"public_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"reboot_setting":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"store":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"secure_boot_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"size":{"type":"TypeString","required":true},"source_image_id":{"type":"TypeString","optional":true,"forceNew":true},"source_image_reference":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"timezone":{"type":"TypeString","optional":true,"forceNew":true},"user_data":{"type":"TypeString","optional":true},"virtual_machine_id":{"type":"TypeString","computed":true},"virtual_machine_scale_set_id":{"type":"TypeString","optional":true},"vm_agent_platform_updates_enabled":{"type":"TypeBool","optional":true,"default":false},"vtpm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"winrm_listener":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true}}}},"zone":{"type":"TypeString","optional":true,"forceNew":true}},"timeouts":{"create":45,"read":5,"delete":45,"update":45}},"azurerm_windows_virtual_machine_scale_set":{"schema":{"additional_capabilities":{"type":"TypeList","optional":true,"elem":{"schema":{"ultra_ssd_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true}}},"maxItems":1},"additional_unattend_content":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"content":{"type":"TypeString","required":true,"forceNew":true},"setting":{"type":"TypeString","required":true,"forceNew":true}}}},"admin_password":{"type":"TypeString","required":true,"forceNew":true},"admin_username":{"type":"TypeString","required":true,"forceNew":true},"automatic_instance_repair":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","required":true},"grace_period":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"automatic_os_upgrade_policy":{"type":"TypeList","optional":true,"elem":{"schema":{"disable_automatic_rollback":{"type":"TypeBool","required":true},"enable_automatic_os_upgrade":{"type":"TypeBool","required":true}}},"maxItems":1},"boot_diagnostics":{"type":"TypeList","optional":true,"elem":{"schema":{"storage_account_uri":{"type":"TypeString","optional":true}}},"maxItems":1},"capacity_reservation_group_id":{"type":"TypeString","optional":true,"forceNew":true},"computer_name_prefix":{"type":"TypeString","optional":true,"computed":true,"forceNew":true},"custom_data":{"type":"TypeString","optional":true},"data_disk":{"type":"TypeList","optional":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"create_option":{"type":"TypeString","optional":true,"default":"Empty"},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","required":true},"lun":{"type":"TypeInt","required":true},"name":{"type":"TypeString","optional":true},"storage_account_type":{"type":"TypeString","required":true},"ultra_ssd_disk_iops_read_write":{"type":"TypeInt","optional":true,"computed":true},"ultra_ssd_disk_mbps_read_write":{"type":"TypeInt","optional":true,"computed":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}}},"do_not_run_extensions_on_overprovisioned_machines":{"type":"TypeBool","optional":true,"default":false},"edge_zone":{"type":"TypeString","optional":true,"forceNew":true},"enable_automatic_updates":{"type":"TypeBool","optional":true,"default":true},"encryption_at_host_enabled":{"type":"TypeBool","optional":true},"eviction_policy":{"type":"TypeString","optional":true,"forceNew":true},"extension":{"type":"TypeSet","optional":true,"computed":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","optional":true,"default":true},"automatic_upgrade_enabled":{"type":"TypeBool","optional":true,"default":false},"force_update_tag":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"protected_settings":{"type":"TypeString","optional":true},"protected_settings_from_key_vault":{"type":"TypeList","optional":true,"elem":{"schema":{"secret_url":{"type":"TypeString","required":true},"source_vault_id":{"type":"TypeString","required":true}}},"maxItems":1},"provision_after_extensions":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","required":true},"settings":{"type":"TypeString","optional":true},"type":{"type":"TypeString","required":true},"type_handler_version":{"type":"TypeString","required":true}}}},"extension_operations_enabled":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"extensions_time_budget":{"type":"TypeString","optional":true,"default":"PT1H30M"},"gallery_application":{"type":"TypeList","optional":true,"elem":{"schema":{"configuration_blob_uri":{"type":"TypeString","optional":true,"forceNew":true},"order":{"type":"TypeInt","optional":true,"default":0,"forceNew":true},"tag":{"type":"TypeString","optional":true,"forceNew":true},"version_id":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":100},"health_probe_id":{"type":"TypeString","optional":true},"host_group_id":{"type":"TypeString","optional":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"instances":{"type":"TypeInt","required":true},"license_type":{"type":"TypeString","optional":true},"location":{"type":"TypeString","required":true,"forceNew":true},"max_bid_price":{"type":"TypeFloat","optional":true,"default":-1},"name":{"type":"TypeString","required":true,"forceNew":true},"network_interface":{"type":"TypeList","required":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"enable_accelerated_networking":{"type":"TypeBool","optional":true,"default":false},"enable_ip_forwarding":{"type":"TypeBool","optional":true,"default":false},"ip_configuration":{"type":"TypeList","required":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":20},"load_balancer_backend_address_pool_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary":{"type":"TypeBool","optional":true,"default":false},"public_ip_address":{"type":"TypeList","optional":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","optional":true},"idle_timeout_in_minutes":{"type":"TypeInt","optional":true,"computed":true},"ip_tag":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"tag":{"type":"TypeString","required":true,"forceNew":true},"type":{"type":"TypeString","required":true,"forceNew":true}}}},"name":{"type":"TypeString","required":true},"public_ip_prefix_id":{"type":"TypeString","optional":true,"forceNew":true},"version":{"type":"TypeString","optional":true,"default":"IPv4","forceNew":true}}}},"subnet_id":{"type":"TypeString","optional":true},"version":{"type":"TypeString","optional":true,"default":"IPv4"}}}},"name":{"type":"TypeString","required":true,"forceNew":true},"network_security_group_id":{"type":"TypeString","optional":true},"primary":{"type":"TypeBool","optional":true,"default":false}}}},"os_disk":{"type":"TypeList","required":true,"elem":{"schema":{"caching":{"type":"TypeString","required":true},"diff_disk_settings":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"option":{"type":"TypeString","required":true,"forceNew":true},"placement":{"type":"TypeString","optional":true,"default":"CacheDisk","forceNew":true}}},"maxItems":1},"disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"disk_size_gb":{"type":"TypeInt","optional":true,"computed":true},"secure_vm_disk_encryption_set_id":{"type":"TypeString","optional":true,"forceNew":true},"security_encryption_type":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_type":{"type":"TypeString","required":true,"forceNew":true},"write_accelerator_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"overprovision":{"type":"TypeBool","optional":true,"default":true},"plan":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"forceNew":true},"product":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"platform_fault_domain_count":{"type":"TypeInt","optional":true,"computed":true,"forceNew":true},"priority":{"type":"TypeString","optional":true,"default":"Regular","forceNew":true},"provision_vm_agent":{"type":"TypeBool","optional":true,"default":true,"forceNew":true},"proximity_placement_group_id":{"type":"TypeString","optional":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"rolling_upgrade_policy":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"cross_zone_upgrades_enabled":{"type":"TypeBool","optional":true},"max_batch_instance_percent":{"type":"TypeInt","required":true},"max_unhealthy_instance_percent":{"type":"TypeInt","required":true},"max_unhealthy_upgraded_instance_percent":{"type":"TypeInt","required":true},"maximum_surge_instances_enabled":{"type":"TypeBool","optional":true},"pause_time_between_batches":{"type":"TypeString","required":true},"prioritize_unhealthy_instances_enabled":{"type":"TypeBool","optional":true}}},"maxItems":1},"scale_in":{"type":"TypeList","optional":true,"elem":{"schema":{"force_deletion_enabled":{"type":"TypeBool","optional":true,"default":false},"rule":{"type":"TypeString","optional":true,"default":"Default"}}},"maxItems":1},"secret":{"type":"TypeList","optional":true,"elem":{"schema":{"certificate":{"type":"TypeSet","required":true,"elem":{"schema":{"store":{"type":"TypeString","required":true},"url":{"type":"TypeString","required":true}}},"minItems":1},"key_vault_id":{"type":"TypeString","required":true}}}},"secure_boot_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"single_placement_group":{"type":"TypeBool","optional":true,"default":true},"sku":{"type":"TypeString","required":true},"source_image_id":{"type":"TypeString","optional":true},"source_image_reference":{"type":"TypeList","optional":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true},"version":{"type":"TypeString","required":true}}},"maxItems":1},"spot_restore":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"timeout":{"type":"TypeString","optional":true,"default":"PT1H","forceNew":true}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"termination_notification":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","required":true},"timeout":{"type":"TypeString","optional":true,"default":"PT5M"}}},"maxItems":1},"timezone":{"type":"TypeString","optional":true},"unique_id":{"type":"TypeString","computed":true},"upgrade_mode":{"type":"TypeString","optional":true,"default":"Manual","forceNew":true},"user_data":{"type":"TypeString","optional":true},"vtpm_enabled":{"type":"TypeBool","optional":true,"forceNew":true},"winrm_listener":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"certificate_url":{"type":"TypeString","optional":true,"forceNew":true},"protocol":{"type":"TypeString","required":true,"forceNew":true}}}},"zone_balance":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"zones":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_windows_web_app":{"schema":{"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Required"},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","required":true}}},"maxItems":1},"detailed_error_messages":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_plan_id":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":true},"api_definition_url":{"type":"TypeString","optional":true},"api_management_api_id":{"type":"TypeString","optional":true},"app_command_line":{"type":"TypeString","optional":true},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"current_stack":{"type":"TypeString","optional":true,"computed":true},"docker_image_name":{"type":"TypeString","optional":true},"docker_registry_password":{"type":"TypeString","optional":true},"docker_registry_url":{"type":"TypeString","optional":true},"docker_registry_username":{"type":"TypeString","optional":true},"dotnet_core_version":{"type":"TypeString","optional":true,"description":"The version of DotNetCore to use."},"dotnet_version":{"type":"TypeString","optional":true,"computed":true},"java_container":{"type":"TypeString","optional":true},"java_container_version":{"type":"TypeString","optional":true},"java_embedded_server_enabled":{"type":"TypeBool","optional":true,"description":"Should the application use the embedded web server for the version of Java in use.","computed":true},"java_version":{"type":"TypeString","optional":true},"node_version":{"type":"TypeString","optional":true},"php_version":{"type":"TypeString","optional":true,"computed":true},"python":{"type":"TypeBool","optional":true,"default":false},"tomcat_version":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_heal_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"custom_action":{"type":"TypeList","optional":true,"elem":{"schema":{"executable":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true}}},"maxItems":1},"minimum_process_execution_time":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"trigger":{"type":"TypeList","required":true,"elem":{"schema":{"private_memory_kb":{"type":"TypeInt","optional":true},"requests":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"time_taken":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request_with_path":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"time_taken":{"type":"TypeString","required":true}}}},"status_code":{"type":"TypeSet","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"status_code_range":{"type":"TypeString","required":true},"sub_status":{"type":"TypeInt","optional":true},"win32_status_code":{"type":"TypeInt","optional":true}}}}}},"maxItems":1}}},"maxItems":1},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled"},"handler_mapping":{"type":"TypeSet","optional":true,"elem":{"schema":{"arguments":{"type":"TypeString","optional":true},"extension":{"type":"TypeString","required":true},"script_processor_path":{"type":"TypeString","required":true}}}},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests"},"local_mysql_enabled":{"type":"TypeBool","optional":true,"default":false},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker":{"type":"TypeBool","optional":true,"default":true},"virtual_application":{"type":"TypeSet","optional":true,"elem":{"schema":{"physical_path":{"type":"TypeString","required":true},"preload":{"type":"TypeBool","required":true},"virtual_directory":{"type":"TypeSet","optional":true,"elem":{"schema":{"physical_path":{"type":"TypeString","optional":true},"virtual_path":{"type":"TypeString","optional":true}}}},"virtual_path":{"type":"TypeString","required":true}}}},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false},"windows_fx_version":{"type":"TypeString","computed":true},"worker_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1},"connection_string_names":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"minItems":1}}},"maxItems":1},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Windows Web App. **Note:** Using this value requires either `WEBSITE_RUN_FROM_PACKAGE=1` or `SCM_DO_BUILD_DURING_DEPLOYMENT=true` to be set on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_windows_web_app_slot":{"schema":{"app_service_id":{"type":"TypeString","required":true,"forceNew":true},"app_settings":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`."}}},"maxItems":1},"additional_login_parameters":{"type":"TypeMap","optional":true,"description":"Specifies a map of Login Parameters to send to the OpenID Connect authorization endpoint when a user logs in.","elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","optional":true,"description":"The default authentication provider to use when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","required":true,"description":"Should the Authentication / Authorization feature be enabled?"},"facebook":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret":{"type":"TypeString","optional":true,"description":"The App Secret of the Facebook app used for Facebook Login. Cannot be specified with `app_secret_setting_name`."},"app_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login. Cannot be specified with `app_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"github":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret":{"type":"TypeString","optional":true,"description":"The Client Secret of the GitHub app used for GitHub Login. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret":{"type":"TypeString","optional":true,"description":"The client secret associated with the Google web application. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the `client_secret` value used for Google Login. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","elem":{"type":"TypeString"}}}},"maxItems":1},"issuer":{"type":"TypeString","optional":true,"description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens."},"microsoft":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret":{"type":"TypeString","optional":true,"description":"The OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret_setting_name`."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication. Cannot be specified with `client_secret`."},"oauth_scopes":{"type":"TypeList","optional":true,"description":"The list of OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. If not specified, `wl.basic` is used as the default scope.","elem":{"type":"TypeString"}}}},"maxItems":1},"runtime_version":{"type":"TypeString","optional":true,"description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Windows Web App durably store platform-specific security tokens that are obtained during login flows? Defaults to `false`."},"twitter":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret":{"type":"TypeString","optional":true,"description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret_setting_name`."},"consumer_secret_setting_name":{"type":"TypeString","optional":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in. Cannot be specified with `consumer_secret`."}}},"maxItems":1},"unauthenticated_client_action":{"type":"TypeString","optional":true,"description":"The action to take when an unauthenticated client attempts to access the app. Possible values include: `RedirectToLoginPage`, `AllowAnonymous`.","computed":true}}},"maxItems":1},"auth_settings_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","optional":true,"description":"The list of allowed Applications for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","optional":true,"description":"The list of allowed Group Names for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","optional":true,"description":"The list of allowed Identities for the Default Authorisation Policy.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Active Directory."},"client_secret_certificate_thumbprint":{"type":"TypeString","optional":true,"description":"The thumbprint of the certificate used for signing purposes."},"client_secret_setting_name":{"type":"TypeString","optional":true,"description":"The App Setting name that contains the client secret of the Client."},"jwt_allowed_client_applications":{"type":"TypeList","optional":true,"description":"A list of Allowed Client Applications in the JWT Claim.","elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","optional":true,"description":"A list of Allowed Groups in the JWT Claim.","elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","optional":true,"description":"A map of key-value pairs to send to the Authorisation Endpoint when a user logs in.","elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","required":true,"description":"The Azure Tenant Endpoint for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`."},"www_authentication_disabled":{"type":"TypeBool","optional":true,"description":"Should the www-authenticate provider should be omitted from the request? Defaults to `false`"}}},"maxItems":1},"apple_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Apple web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Apple Login."},"login_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"auth_enabled":{"type":"TypeBool","optional":true,"description":"Should the AuthV2 Settings be enabled. Defaults to `false`"},"azure_static_web_app_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with Azure Static Web App Authentication."}}},"maxItems":1},"config_file_path":{"type":"TypeString","optional":true,"description":"The path to the App Auth settings. **Note:** Relative Paths are evaluated from the Site Root directory."},"custom_oidc_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`.","computed":true},"client_id":{"type":"TypeString","required":true,"description":"The ID of the Client to use to authenticate with this Custom OIDC."},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Custom OIDC Authentication Provider."},"name_claim_type":{"type":"TypeString","optional":true,"description":"The name of the claim that contains the users name."},"openid_configuration_endpoint":{"type":"TypeString","required":true,"description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider."},"scopes":{"type":"TypeList","optional":true,"description":"The list of the scopes that should be requested while authenticating.","elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","optional":true,"description":"The Default Authentication Provider to use when the `unauthenticated_action` is set to `RedirectToLoginPage`. Possible values include: `apple`, `azureactivedirectory`, `facebook`, `github`, `google`, `twitter` and the `name` of your `custom_oidc_v2` provider."},"excluded_paths":{"type":"TypeList","optional":true,"description":"The paths which should be excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"app_id":{"type":"TypeString","required":true,"description":"The App ID of the Facebook app used for login."},"app_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `app_secret` value used for Facebook Login."},"graph_api_version":{"type":"TypeString","optional":true,"description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of scopes to be requested as part of Facebook Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"forward_proxy_convention":{"type":"TypeString","optional":true,"default":"NoProxy","description":"The convention used to determine the url of the request made. Possible values include `ForwardProxyConventionNoProxy`, `ForwardProxyConventionStandard`, `ForwardProxyConventionCustom`. Defaults to `ForwardProxyConventionNoProxy`"},"forward_proxy_custom_host_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the host of the request."},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","optional":true,"description":"The name of the header containing the scheme of the request."},"github_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"client_id":{"type":"TypeString","required":true,"description":"The ID of the GitHub app used for login."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for GitHub Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"google_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OpenID Connect Client ID for the Google web application."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the `client_secret` value used for Google Login."},"login_scopes":{"type":"TypeList","optional":true,"description":"Specifies a list of Login scopes that will be requested as part of Google Sign-In authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"http_route_api_prefix":{"type":"TypeString","optional":true,"default":"/.auth","description":"The prefix that should precede all the authentication and authorisation paths. Defaults to `/.auth`"},"login":{"type":"TypeList","required":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","optional":true,"description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","optional":true,"default":"FixedTime","description":"The method by which cookies expire. Possible values include: `FixedTime`, and `IdentityProviderDerived`. Defaults to `FixedTime`."},"cookie_expiration_time":{"type":"TypeString","optional":true,"default":"08:00:00","description":"The time after the request is made when the session cookie should expire. Defaults to `08:00:00`."},"logout_endpoint":{"type":"TypeString","optional":true,"description":"The endpoint to which logout requests should be made."},"nonce_expiration_time":{"type":"TypeString","optional":true,"default":"00:05:00","description":"The time after the request is made when the nonce should expire. Defaults to `00:05:00`."},"preserve_url_fragments_for_logins":{"type":"TypeBool","optional":true,"default":false,"description":"Should the fragments from the request be preserved after the login request is made. Defaults to `false`."},"token_refresh_extension_time":{"type":"TypeFloat","optional":true,"default":72,"description":"The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to `72` hours."},"token_store_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should the Token Store configuration Enabled. Defaults to `false`"},"token_store_path":{"type":"TypeString","optional":true,"description":"The directory path in the App Filesystem in which the tokens will be stored."},"token_store_sas_setting_name":{"type":"TypeString","optional":true,"description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens."},"validate_nonce":{"type":"TypeBool","optional":true,"default":true,"description":"Should the nonce be validated while completing the login flow. Defaults to `true`."}}},"maxItems":1},"microsoft_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","optional":true,"description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","required":true,"description":"The OAuth 2.0 client ID that was created for the app used for authentication."},"client_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication."},"login_scopes":{"type":"TypeList","optional":true,"description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","elem":{"type":"TypeString"}}}},"maxItems":1},"require_authentication":{"type":"TypeBool","optional":true,"description":"Should the authentication flow be used for all requests."},"require_https":{"type":"TypeBool","optional":true,"default":true,"description":"Should HTTPS be required on connections? Defaults to true."},"runtime_version":{"type":"TypeString","optional":true,"default":"~1","description":"The Runtime Version of the Authentication and Authorisation feature of this App. Defaults to `~1`"},"twitter_v2":{"type":"TypeList","optional":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","required":true,"description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in."},"consumer_secret_setting_name":{"type":"TypeString","required":true,"description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in."}}},"maxItems":1},"unauthenticated_action":{"type":"TypeString","optional":true,"default":"RedirectToLoginPage","description":"The action to take for requests made without authentication. Possible values include `RedirectToLoginPage`, `AllowAnonymous`, `Return401`, and `Return403`. Defaults to `RedirectToLoginPage`."}}},"maxItems":1},"backup":{"type":"TypeList","optional":true,"elem":{"schema":{"enabled":{"type":"TypeBool","optional":true,"default":true,"description":"Should this backup job be enabled?"},"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Backup."},"schedule":{"type":"TypeList","required":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","required":true,"description":"How often the backup should be executed (e.g. for weekly backup, this should be set to `7` and `frequency_unit` should be set to `Day`)."},"frequency_unit":{"type":"TypeString","required":true,"description":"The unit of time for how often the backup should take place. Possible values include: `Day` and `Hour`."},"keep_at_least_one_backup":{"type":"TypeBool","optional":true,"default":false,"description":"Should the service keep at least one backup, regardless of age of backup. Defaults to `false`."},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","optional":true,"default":30,"description":"After how many days backups should be deleted."},"start_time":{"type":"TypeString","optional":true,"description":"When the schedule should start working in RFC-3339 format.","computed":true}}},"maxItems":1},"storage_account_url":{"type":"TypeString","required":true,"description":"The SAS URL to the container."}}},"maxItems":1},"client_affinity_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_enabled":{"type":"TypeBool","optional":true,"default":false},"client_certificate_exclusion_paths":{"type":"TypeString","optional":true,"description":"Paths to exclude when using client certificates, separated by ;"},"client_certificate_mode":{"type":"TypeString","optional":true,"default":"Required"},"connection_string":{"type":"TypeSet","optional":true,"elem":{"schema":{"name":{"type":"TypeString","required":true,"description":"The name which should be used for this Connection."},"type":{"type":"TypeString","required":true,"description":"Type of database. Possible values include: `MySQL`, `SQLServer`, `SQLAzure`, `Custom`, `NotificationHub`, `ServiceBus`, `EventHub`, `APIHub`, `DocDb`, `RedisCache`, and `PostgreSQL`."},"value":{"type":"TypeString","required":true,"description":"The connection string value."}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","optional":true,"default":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","optional":true,"default":false},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"key_vault_reference_identity_id":{"type":"TypeString","optional":true,"computed":true},"kind":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","optional":true,"elem":{"schema":{"application_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"level":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","required":true},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system_level":{"type":"TypeString","required":true}}},"maxItems":1},"detailed_error_messages":{"type":"TypeBool","optional":true,"default":false},"failed_request_tracing":{"type":"TypeBool","optional":true,"default":false},"http_logs":{"type":"TypeList","optional":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","optional":true,"default":0},"sas_url":{"type":"TypeString","required":true}}},"maxItems":1},"file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","required":true},"retention_in_mb":{"type":"TypeInt","required":true}}},"maxItems":1}}},"maxItems":1}}},"maxItems":1},"name":{"type":"TypeString","required":true,"forceNew":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"service_plan_id":{"type":"TypeString","optional":true},"site_config":{"type":"TypeList","required":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":true},"api_definition_url":{"type":"TypeString","optional":true},"api_management_api_id":{"type":"TypeString","optional":true},"app_command_line":{"type":"TypeString","optional":true},"application_stack":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"current_stack":{"type":"TypeString","optional":true,"computed":true},"docker_image_name":{"type":"TypeString","optional":true},"docker_registry_password":{"type":"TypeString","optional":true},"docker_registry_url":{"type":"TypeString","optional":true},"docker_registry_username":{"type":"TypeString","optional":true},"dotnet_core_version":{"type":"TypeString","optional":true,"description":"The version of DotNetCore to use."},"dotnet_version":{"type":"TypeString","optional":true,"computed":true},"java_container":{"type":"TypeString","optional":true},"java_container_version":{"type":"TypeString","optional":true},"java_embedded_server_enabled":{"type":"TypeBool","optional":true,"description":"Should the application use the embedded web server for the version of Java in use.","computed":true},"java_version":{"type":"TypeString","optional":true},"node_version":{"type":"TypeString","optional":true},"php_version":{"type":"TypeString","optional":true,"computed":true},"python":{"type":"TypeBool","optional":true,"default":false},"tomcat_version":{"type":"TypeString","optional":true}}},"maxItems":1},"auto_heal_setting":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeList","required":true,"elem":{"schema":{"action_type":{"type":"TypeString","required":true},"custom_action":{"type":"TypeList","optional":true,"elem":{"schema":{"executable":{"type":"TypeString","required":true},"parameters":{"type":"TypeString","optional":true}}},"maxItems":1},"minimum_process_execution_time":{"type":"TypeString","optional":true,"computed":true}}},"maxItems":1},"trigger":{"type":"TypeList","required":true,"elem":{"schema":{"private_memory_kb":{"type":"TypeInt","optional":true},"requests":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"time_taken":{"type":"TypeString","required":true}}},"maxItems":1},"slow_request_with_path":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"time_taken":{"type":"TypeString","required":true}}}},"status_code":{"type":"TypeSet","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","required":true},"interval":{"type":"TypeString","required":true},"path":{"type":"TypeString","optional":true},"status_code_range":{"type":"TypeString","required":true},"sub_status":{"type":"TypeInt","optional":true},"win32_status_code":{"type":"TypeInt","optional":true}}}}}},"maxItems":1}}},"maxItems":1},"auto_swap_slot_name":{"type":"TypeString","optional":true},"container_registry_managed_identity_client_id":{"type":"TypeString","optional":true},"container_registry_use_managed_identity":{"type":"TypeBool","optional":true,"default":false},"cors":{"type":"TypeList","optional":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","optional":true,"description":"Specifies a list of origins that should be allowed to make cross-origin calls.","elem":{"type":"TypeString"},"minItems":1},"support_credentials":{"type":"TypeBool","optional":true,"default":false,"description":"Are credentials allowed in CORS requests? Defaults to `false`."}}},"maxItems":1},"default_documents":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","optional":true,"default":"Disabled"},"handler_mapping":{"type":"TypeSet","optional":true,"elem":{"schema":{"arguments":{"type":"TypeString","optional":true},"extension":{"type":"TypeString","required":true},"script_processor_path":{"type":"TypeString","required":true}}}},"health_check_eviction_time_in_min":{"type":"TypeInt","optional":true,"description":"The amount of time in minutes that a node is unhealthy before being removed from the load balancer. Possible values are between `2` and `10`. Only valid in conjunction with `health_check_path`"},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"load_balancing_mode":{"type":"TypeString","optional":true,"default":"LeastRequests"},"local_mysql_enabled":{"type":"TypeBool","optional":true,"default":false},"managed_pipeline_mode":{"type":"TypeString","optional":true,"default":"Integrated"},"minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"remote_debugging_enabled":{"type":"TypeBool","optional":true,"default":false},"remote_debugging_version":{"type":"TypeString","optional":true,"computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow","description":"The action to take. Possible values are `Allow` or `Deny`."},"description":{"type":"TypeString","optional":true,"description":"The description of the IP restriction rule."},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","optional":true,"description":"Specifies a list of Azure Front Door IDs.","elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeList","optional":true,"description":"Specifies a list of addresses for which matching should be applied. Omitting this value means allow any.","elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeList","optional":true,"description":"Specifies a list of Hosts for which matching should be applied.","elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true,"description":"The CIDR notation of the IP or IP Range to match. For example: `10.0.0.0/24` or `192.168.10.1/32` or `fe80::/64` or `13.107.6.152/31,13.107.128.0/22`"},"name":{"type":"TypeString","optional":true,"description":"The name which should be used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000,"description":"The priority value of this `ip_restriction`."},"service_tag":{"type":"TypeString","optional":true,"description":"The Service Tag used for this IP Restriction."},"virtual_network_subnet_id":{"type":"TypeString","optional":true,"description":"The Virtual Network Subnet ID used for this IP Restriction."}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","optional":true,"default":"1.2"},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker":{"type":"TypeBool","optional":true,"computed":true},"virtual_application":{"type":"TypeSet","optional":true,"elem":{"schema":{"physical_path":{"type":"TypeString","required":true},"preload":{"type":"TypeBool","required":true},"virtual_directory":{"type":"TypeSet","optional":true,"elem":{"schema":{"physical_path":{"type":"TypeString","optional":true},"virtual_path":{"type":"TypeString","optional":true}}}},"virtual_path":{"type":"TypeString","required":true}}}},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"default":false,"description":"Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied? Defaults to `false`."},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false},"windows_fx_version":{"type":"TypeString","computed":true},"worker_count":{"type":"TypeInt","optional":true,"computed":true}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"storage_account":{"type":"TypeSet","optional":true,"elem":{"schema":{"access_key":{"type":"TypeString","required":true},"account_name":{"type":"TypeString","required":true},"mount_path":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"share_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","required":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","optional":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","optional":true,"default":true},"zip_deploy_file":{"type":"TypeString","optional":true,"description":"The local path and filename of the Zip packaged application to deploy to this Windows Web App. **Note:** Using this value requires `WEBSITE_RUN_FROM_PACKAGE=1` on the App in `app_settings`.","computed":true}},"timeouts":{"create":30,"read":5,"delete":30,"update":30}},"azurerm_workloads_sap_discovery_virtual_instance":{"schema":{"central_server_virtual_machine_id":{"type":"TypeString","required":true,"forceNew":true},"environment":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"forceNew":true},"managed_storage_account_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sap_product":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_workloads_sap_single_node_virtual_instance":{"schema":{"app_location":{"type":"TypeString","required":true,"forceNew":true},"environment":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sap_fqdn":{"type":"TypeString","required":true,"forceNew":true},"sap_product":{"type":"TypeString","required":true,"forceNew":true},"single_server_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"app_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"database_type":{"type":"TypeString","optional":true,"forceNew":true},"disk_volume_configuration":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"number_of_disks":{"type":"TypeInt","required":true,"forceNew":true},"size_in_gb":{"type":"TypeInt","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"secondary_ip_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"image":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"os_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_private_key":{"type":"TypeString","required":true,"forceNew":true},"ssh_public_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_resource_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_disk":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"names":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"host_name":{"type":"TypeString","optional":true,"forceNew":true},"network_interface_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"os_disk_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}},"azurerm_workloads_sap_three_tier_virtual_instance":{"schema":{"app_location":{"type":"TypeString","required":true,"forceNew":true},"environment":{"type":"TypeString","required":true,"forceNew":true},"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","required":true,"forceNew":true},"managed_resource_group_name":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sap_fqdn":{"type":"TypeString","required":true,"forceNew":true},"sap_product":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"three_tier_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"app_resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"application_server_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"instance_count":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"image":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"os_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_private_key":{"type":"TypeString","required":true,"forceNew":true},"ssh_public_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"central_server_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"instance_count":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"image":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"os_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_private_key":{"type":"TypeString","required":true,"forceNew":true},"ssh_public_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"database_server_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"database_type":{"type":"TypeString","optional":true,"forceNew":true},"disk_volume_configuration":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"number_of_disks":{"type":"TypeInt","required":true,"forceNew":true},"size_in_gb":{"type":"TypeInt","required":true,"forceNew":true},"sku_name":{"type":"TypeString","required":true,"forceNew":true},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"instance_count":{"type":"TypeInt","required":true,"forceNew":true},"subnet_id":{"type":"TypeString","required":true,"forceNew":true},"virtual_machine_configuration":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"image":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"offer":{"type":"TypeString","required":true,"forceNew":true},"publisher":{"type":"TypeString","required":true,"forceNew":true},"sku":{"type":"TypeString","required":true,"forceNew":true},"version":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"os_profile":{"type":"TypeList","required":true,"forceNew":true,"elem":{"schema":{"admin_username":{"type":"TypeString","required":true,"forceNew":true},"ssh_private_key":{"type":"TypeString","required":true,"forceNew":true},"ssh_public_key":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"virtual_machine_size":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"high_availability_type":{"type":"TypeString","optional":true,"forceNew":true},"resource_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"application_server":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"availability_set_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_disk":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"names":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"host_name":{"type":"TypeString","optional":true,"forceNew":true},"network_interface_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"os_disk_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}},"maxItems":1},"central_server":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"availability_set_name":{"type":"TypeString","optional":true,"forceNew":true},"load_balancer":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"backend_pool_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"frontend_ip_configuration_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"health_probe_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"virtual_machine":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_disk":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"names":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"host_name":{"type":"TypeString","optional":true,"forceNew":true},"network_interface_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"os_disk_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}},"maxItems":1},"database_server":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"availability_set_name":{"type":"TypeString","optional":true,"forceNew":true},"load_balancer":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"backend_pool_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"frontend_ip_configuration_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"health_probe_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1},"virtual_machine":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"data_disk":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"schema":{"names":{"type":"TypeList","required":true,"forceNew":true,"elem":{"type":"TypeString"}},"volume_name":{"type":"TypeString","required":true,"forceNew":true}}}},"host_name":{"type":"TypeString","optional":true,"forceNew":true},"network_interface_names":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"os_disk_name":{"type":"TypeString","optional":true,"forceNew":true},"virtual_machine_name":{"type":"TypeString","optional":true,"forceNew":true}}}}}},"maxItems":1},"shared_storage":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"account_name":{"type":"TypeString","optional":true,"forceNew":true},"private_endpoint_name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1},"secondary_ip_enabled":{"type":"TypeBool","optional":true,"default":false,"forceNew":true},"transport_create_and_mount":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"resource_group_id":{"type":"TypeString","optional":true,"forceNew":true},"storage_account_name":{"type":"TypeString","optional":true,"forceNew":true}}},"maxItems":1}}},"maxItems":1}},"timeouts":{"create":60,"read":5,"delete":60,"update":60}}},"dataSources":{"azurerm_aadb2c_directory":{"schema":{"billing_type":{"type":"TypeString","description":"The type of billing for the B2C tenant. Possible values include: `MAU` or `Auths`.","computed":true},"data_residency_location":{"type":"TypeString","description":"Location in which the B2C tenant is hosted and data resides.","computed":true},"domain_name":{"type":"TypeString","required":true,"description":"Domain name of the B2C tenant, including onmicrosoft.com suffix."},"effective_start_date":{"type":"TypeString","description":"The date from which the billing type took effect. May not be populated until after the first billing cycle.","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","description":"Billing SKU for the B2C tenant.","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","description":"The Tenant ID for the B2C tenant.","computed":true}},"timeouts":{"read":5}},"azurerm_active_directory_domain_service":{"schema":{"deployment_id":{"type":"TypeString","computed":true},"domain_configuration_type":{"type":"TypeString","computed":true},"domain_name":{"type":"TypeString","computed":true},"filtered_sync_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"notifications":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"notify_dc_admins":{"type":"TypeBool","computed":true},"notify_global_admins":{"type":"TypeBool","computed":true}}}},"replica_sets":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_controller_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"external_access_ip_address":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"service_status":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"resource_id":{"type":"TypeString","computed":true},"secure_ldap":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_expiry":{"type":"TypeString","computed":true},"certificate_thumbprint":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"external_access_enabled":{"type":"TypeBool","computed":true},"public_certificate":{"type":"TypeString","computed":true}}}},"security":{"type":"TypeList","computed":true,"elem":{"schema":{"kerberos_armoring_enabled":{"type":"TypeBool","computed":true},"kerberos_rc4_encryption_enabled":{"type":"TypeBool","computed":true},"ntlm_v1_enabled":{"type":"TypeBool","computed":true},"sync_kerberos_passwords":{"type":"TypeBool","computed":true},"sync_ntlm_passwords":{"type":"TypeBool","computed":true},"sync_on_prem_passwords":{"type":"TypeBool","computed":true},"tls_v1_enabled":{"type":"TypeBool","computed":true}}}},"sku":{"type":"TypeString","computed":true},"sync_owner":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true},"version":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_advisor_recommendations":{"schema":{"filter_by_category":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"filter_by_resource_groups":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"recommendations":{"type":"TypeList","computed":true,"elem":{"schema":{"category":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"impact":{"type":"TypeString","computed":true},"recommendation_name":{"type":"TypeString","computed":true},"recommendation_type_id":{"type":"TypeString","computed":true},"resource_name":{"type":"TypeString","computed":true},"resource_type":{"type":"TypeString","computed":true},"suppression_names":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"updated_time":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":10}},"azurerm_api_management":{"schema":{"additional_location":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"gateway_regional_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_id":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"developer_portal_url":{"type":"TypeString","computed":true},"gateway_regional_url":{"type":"TypeString","computed":true},"gateway_url":{"type":"TypeString","computed":true},"hostname_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"developer_portal":{"type":"TypeList","computed":true,"elem":{"schema":{"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}},"management":{"type":"TypeList","computed":true,"elem":{"schema":{"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}},"portal":{"type":"TypeList","computed":true,"elem":{"schema":{"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}},"proxy":{"type":"TypeList","computed":true,"elem":{"schema":{"default_ssl_binding":{"type":"TypeBool","computed":true},"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}},"scm":{"type":"TypeList","computed":true,"elem":{"schema":{"host_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"negotiate_client_certificate":{"type":"TypeBool","computed":true}}}}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"management_api_url":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"notification_sender_email":{"type":"TypeString","computed":true},"portal_url":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address_id":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"publisher_email":{"type":"TypeString","computed":true},"publisher_name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"scm_url":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"tenant_access":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"primary_key":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_api_management_api":{"schema":{"api_management_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"is_current":{"type":"TypeBool","computed":true},"is_online":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"path":{"type":"TypeString","computed":true},"protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"revision":{"type":"TypeString","required":true},"service_url":{"type":"TypeString","computed":true},"soap_pass_through":{"type":"TypeBool","computed":true},"subscription_key_parameter_names":{"type":"TypeList","computed":true,"elem":{"schema":{"header":{"type":"TypeString","computed":true},"query":{"type":"TypeString","computed":true}}}},"subscription_required":{"type":"TypeBool","computed":true},"version":{"type":"TypeString","computed":true},"version_set_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_api_version_set":{"schema":{"api_management_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"version_header_name":{"type":"TypeString","computed":true},"version_query_name":{"type":"TypeString","computed":true},"versioning_scheme":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_gateway":{"schema":{"api_management_id":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"location_data":{"type":"TypeList","computed":true,"elem":{"schema":{"city":{"type":"TypeString","computed":true},"district":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"region":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_api_management_gateway_host_name_configuration":{"schema":{"api_management_id":{"type":"TypeString","required":true},"certificate_id":{"type":"TypeString","computed":true},"gateway_name":{"type":"TypeString","required":true},"host_name":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"request_client_certificate_enabled":{"type":"TypeBool","computed":true},"tls10_enabled":{"type":"TypeBool","computed":true},"tls11_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_group":{"schema":{"api_management_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"external_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_product":{"schema":{"api_management_name":{"type":"TypeString","required":true},"approval_required":{"type":"TypeBool","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"product_id":{"type":"TypeString","required":true},"published":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"subscription_required":{"type":"TypeBool","computed":true},"subscriptions_limit":{"type":"TypeInt","computed":true},"terms":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_api_management_user":{"schema":{"api_management_name":{"type":"TypeString","required":true},"email":{"type":"TypeString","computed":true},"first_name":{"type":"TypeString","computed":true},"last_name":{"type":"TypeString","computed":true},"note":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"state":{"type":"TypeString","computed":true},"user_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_app_configuration":{"schema":{"encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_client_id":{"type":"TypeString","computed":true},"key_vault_key_identifier":{"type":"TypeString","computed":true}}}},"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"local_auth_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_read_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"primary_write_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"public_network_access":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"purge_protection_enabled":{"type":"TypeBool","computed":true},"replica":{"type":"TypeList","computed":true,"elem":{"schema":{"endpoint":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"secondary_read_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"secondary_write_key":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_string":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"secret":{"type":"TypeString","computed":true}}}},"sku":{"type":"TypeString","computed":true},"soft_delete_retention_days":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_app_configuration_key":{"schema":{"configuration_store_id":{"type":"TypeString","required":true},"content_type":{"type":"TypeString","computed":true},"etag":{"type":"TypeString","computed":true},"key":{"type":"TypeString","required":true},"label":{"type":"TypeString","optional":true,"default":""},"locked":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true},"vault_key_reference":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_app_configuration_keys":{"schema":{"configuration_store_id":{"type":"TypeString","required":true},"items":{"type":"TypeList","computed":true,"elem":{"schema":{"content_type":{"type":"TypeString","computed":true},"etag":{"type":"TypeString","computed":true},"key":{"type":"TypeString","computed":true},"label":{"type":"TypeString","computed":true},"locked":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true},"vault_key_reference":{"type":"TypeString","computed":true}}}},"key":{"type":"TypeString","optional":true,"default":""},"label":{"type":"TypeString","optional":true,"default":""}},"timeouts":{"read":5}},"azurerm_app_service":{"schema":{"app_service_plan_id":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"client_affinity_enabled":{"type":"TypeBool","computed":true},"client_cert_enabled":{"type":"TypeBool","computed":true},"connection_string":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_site_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"https_only":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"acr_use_managed_identity_credentials":{"type":"TypeBool","computed":true},"acr_user_managed_identity_client_id":{"type":"TypeString","computed":true},"always_on":{"type":"TypeBool","computed":true},"app_command_line":{"type":"TypeString","computed":true},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dotnet_framework_version":{"type":"TypeString","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"service_tag":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}}}},"java_container":{"type":"TypeString","computed":true},"java_container_version":{"type":"TypeString","computed":true},"java_version":{"type":"TypeString","computed":true},"linux_fx_version":{"type":"TypeString","computed":true},"local_mysql_enabled":{"type":"TypeBool","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"min_tls_version":{"type":"TypeString","computed":true},"number_of_workers":{"type":"TypeInt","computed":true},"php_version":{"type":"TypeString","computed":true},"python_version":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"scm_ip_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"service_tag":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}}}},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker_process":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"windows_fx_version":{"type":"TypeString","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"source_control":{"type":"TypeList","computed":true,"elem":{"schema":{"branch":{"type":"TypeString","computed":true},"manual_integration":{"type":"TypeBool","computed":true},"repo_url":{"type":"TypeString","computed":true},"rollback_enabled":{"type":"TypeBool","computed":true},"use_mercurial":{"type":"TypeBool","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_app_service_certificate":{"schema":{"expiration_date":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"host_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"issue_date":{"type":"TypeString","computed":true},"issuer":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"subject_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_app_service_certificate_order":{"schema":{"app_service_certificate_not_renewable_reasons":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"auto_renew":{"type":"TypeBool","computed":true},"certificates":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"key_vault_secret_name":{"type":"TypeString","computed":true},"provisioning_state":{"type":"TypeString","computed":true}}}},"csr":{"type":"TypeString","computed":true},"distinguished_name":{"type":"TypeString","computed":true},"domain_verification_token":{"type":"TypeString","computed":true},"expiration_time":{"type":"TypeString","computed":true},"intermediate_thumbprint":{"type":"TypeString","computed":true},"is_private_key_external":{"type":"TypeBool","computed":true},"key_size":{"type":"TypeInt","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"product_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"root_thumbprint":{"type":"TypeString","computed":true},"signed_certificate_thumbprint":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"validity_in_years":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_app_service_environment_v3":{"schema":{"allow_new_private_endpoint_connections":{"type":"TypeBool","computed":true},"cluster_setting":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"dedicated_host_count":{"type":"TypeInt","computed":true},"dns_suffix":{"type":"TypeString","computed":true},"external_inbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"inbound_network_dependencies":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ports":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"internal_inbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"internal_load_balancing_mode":{"type":"TypeString","computed":true},"ip_ssl_address_count":{"type":"TypeInt","computed":true},"linux_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"pricing_tier":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"windows_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_app_service_plan":{"schema":{"app_service_environment_id":{"type":"TypeString","computed":true},"is_xenon":{"type":"TypeBool","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maximum_elastic_worker_count":{"type":"TypeInt","computed":true},"maximum_number_of_workers":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"per_site_scaling":{"type":"TypeBool","computed":true},"reserved":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"size":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_application_gateway":{"schema":{"authentication_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"autoscale_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"max_capacity":{"type":"TypeInt","computed":true},"min_capacity":{"type":"TypeInt","computed":true}}}},"backend_address_pool":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true}}}},"backend_http_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"affinity_cookie_name":{"type":"TypeString","computed":true},"authentication_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"connection_draining":{"type":"TypeList","computed":true,"elem":{"schema":{"drain_timeout_sec":{"type":"TypeInt","computed":true},"enabled":{"type":"TypeBool","computed":true}}}},"cookie_based_affinity":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"pick_host_name_from_backend_address":{"type":"TypeBool","computed":true},"port":{"type":"TypeInt","computed":true},"probe_id":{"type":"TypeString","computed":true},"probe_name":{"type":"TypeString","computed":true},"protocol":{"type":"TypeString","computed":true},"request_timeout":{"type":"TypeInt","computed":true},"trusted_root_certificate_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"custom_error_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_error_page_url":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"status_code":{"type":"TypeString","computed":true}}}},"fips_enabled":{"type":"TypeBool","computed":true},"firewall_policy_id":{"type":"TypeString","computed":true},"force_firewall_policy_association":{"type":"TypeBool","computed":true},"frontend_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"private_link_configuration_id":{"type":"TypeString","computed":true},"private_link_configuration_name":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"frontend_port":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","computed":true}}}},"gateway_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"global":{"type":"TypeList","computed":true,"elem":{"schema":{"request_buffering_enabled":{"type":"TypeBool","computed":true},"response_buffering_enabled":{"type":"TypeBool","computed":true}}}},"http2_enabled":{"type":"TypeBool","computed":true},"http_listener":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_error_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_error_page_url":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"status_code":{"type":"TypeString","computed":true}}}},"firewall_policy_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_id":{"type":"TypeString","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","computed":true},"frontend_port_id":{"type":"TypeString","computed":true},"frontend_port_name":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"host_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"protocol":{"type":"TypeString","computed":true},"require_sni":{"type":"TypeBool","computed":true},"ssl_certificate_id":{"type":"TypeString","computed":true},"ssl_certificate_name":{"type":"TypeString","computed":true},"ssl_profile_id":{"type":"TypeString","computed":true},"ssl_profile_name":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_endpoint_connection":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"private_link_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true}}}},"probe":{"type":"TypeList","computed":true,"elem":{"schema":{"host":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"interval":{"type":"TypeInt","computed":true},"match":{"type":"TypeList","computed":true,"elem":{"schema":{"body":{"type":"TypeString","computed":true},"status_code":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"minimum_servers":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"pick_host_name_from_backend_http_settings":{"type":"TypeBool","computed":true},"port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true},"timeout":{"type":"TypeInt","computed":true},"unhealthy_threshold":{"type":"TypeInt","computed":true}}}},"redirect_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"include_path":{"type":"TypeBool","computed":true},"include_query_string":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"redirect_type":{"type":"TypeString","computed":true},"target_listener_id":{"type":"TypeString","computed":true},"target_listener_name":{"type":"TypeString","computed":true},"target_url":{"type":"TypeString","computed":true}}}},"request_routing_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_address_pool_name":{"type":"TypeString","computed":true},"backend_http_settings_id":{"type":"TypeString","computed":true},"backend_http_settings_name":{"type":"TypeString","computed":true},"http_listener_id":{"type":"TypeString","computed":true},"http_listener_name":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"redirect_configuration_id":{"type":"TypeString","computed":true},"redirect_configuration_name":{"type":"TypeString","computed":true},"rewrite_rule_set_id":{"type":"TypeString","computed":true},"rewrite_rule_set_name":{"type":"TypeString","computed":true},"rule_type":{"type":"TypeString","computed":true},"url_path_map_id":{"type":"TypeString","computed":true},"url_path_map_name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"rewrite_rule_set":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"rewrite_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"condition":{"type":"TypeList","computed":true,"elem":{"schema":{"ignore_case":{"type":"TypeBool","computed":true},"negate":{"type":"TypeBool","computed":true},"pattern":{"type":"TypeString","computed":true},"variable":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"request_header_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"header_name":{"type":"TypeString","computed":true},"header_value":{"type":"TypeString","computed":true}}}},"response_header_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"header_name":{"type":"TypeString","computed":true},"header_value":{"type":"TypeString","computed":true}}}},"rule_sequence":{"type":"TypeInt","computed":true},"url":{"type":"TypeList","computed":true,"elem":{"schema":{"components":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"query_string":{"type":"TypeString","computed":true},"reroute":{"type":"TypeBool","computed":true}}}}}}}}}},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}},"ssl_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"public_cert_data":{"type":"TypeString","computed":true}}}},"ssl_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"cipher_suites":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"disabled_protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"min_protocol_version":{"type":"TypeString","computed":true},"policy_name":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true}}}},"ssl_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"ssl_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"cipher_suites":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"disabled_protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"min_protocol_version":{"type":"TypeString","computed":true},"policy_name":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true}}}},"trusted_client_certificate_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"verify_client_certificate_issuer_dn":{"type":"TypeBool","computed":true},"verify_client_certificate_revocation":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"trusted_client_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"data":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"trusted_root_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"url_path_map":{"type":"TypeList","computed":true,"elem":{"schema":{"default_backend_address_pool_id":{"type":"TypeString","computed":true},"default_backend_address_pool_name":{"type":"TypeString","computed":true},"default_backend_http_settings_id":{"type":"TypeString","computed":true},"default_backend_http_settings_name":{"type":"TypeString","computed":true},"default_redirect_configuration_id":{"type":"TypeString","computed":true},"default_redirect_configuration_name":{"type":"TypeString","computed":true},"default_rewrite_rule_set_id":{"type":"TypeString","computed":true},"default_rewrite_rule_set_name":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"path_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_address_pool_name":{"type":"TypeString","computed":true},"backend_http_settings_id":{"type":"TypeString","computed":true},"backend_http_settings_name":{"type":"TypeString","computed":true},"firewall_policy_id":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"paths":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"redirect_configuration_id":{"type":"TypeString","computed":true},"redirect_configuration_name":{"type":"TypeString","computed":true},"rewrite_rule_set_id":{"type":"TypeString","computed":true},"rewrite_rule_set_name":{"type":"TypeString","computed":true}}}}}}},"waf_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"disabled_rule_group":{"type":"TypeList","computed":true,"elem":{"schema":{"rule_group_name":{"type":"TypeString","computed":true},"rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}}}}},"enabled":{"type":"TypeBool","computed":true},"exclusion":{"type":"TypeList","computed":true,"elem":{"schema":{"match_variable":{"type":"TypeString","computed":true},"selector":{"type":"TypeString","computed":true},"selector_match_operator":{"type":"TypeString","computed":true}}}},"file_upload_limit_mb":{"type":"TypeInt","computed":true},"firewall_mode":{"type":"TypeString","computed":true},"max_request_body_size_kb":{"type":"TypeInt","computed":true},"request_body_check":{"type":"TypeBool","computed":true},"rule_set_type":{"type":"TypeString","computed":true},"rule_set_version":{"type":"TypeString","computed":true}}}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_application_insights":{"schema":{"app_id":{"type":"TypeString","computed":true},"application_type":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeString","computed":true},"instrumentation_key":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_application_security_group":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_arc_machine":{"schema":{"active_directory_fqdn":{"type":"TypeString","computed":true},"agent":{"type":"TypeList","computed":true,"elem":{"schema":{"extensions_allow_list":{"type":"TypeList","computed":true,"elem":{"schema":{"publisher":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"extensions_block_list":{"type":"TypeList","computed":true,"elem":{"schema":{"publisher":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"extensions_enabled":{"type":"TypeBool","computed":true},"guest_configuration_enabled":{"type":"TypeBool","computed":true},"incoming_connections_ports":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"proxy_bypass":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"proxy_url":{"type":"TypeString","computed":true}}}},"agent_version":{"type":"TypeString","computed":true},"client_public_key":{"type":"TypeString","computed":true},"cloud_metadata":{"type":"TypeList","computed":true,"elem":{"schema":{"provider":{"type":"TypeString","computed":true}}}},"detected_properties":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","computed":true},"dns_fqdn":{"type":"TypeString","computed":true},"domain_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"last_status_change_time":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"location_data":{"type":"TypeList","computed":true,"elem":{"schema":{"city":{"type":"TypeString","computed":true},"country_or_region":{"type":"TypeString","computed":true},"district":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"machine_fqdn":{"type":"TypeString","computed":true},"mssql_discovered":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"os_name":{"type":"TypeString","computed":true},"os_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"computer_name":{"type":"TypeString","computed":true},"linux":{"type":"TypeList","computed":true,"elem":{"schema":{"patch":{"type":"TypeList","computed":true,"elem":{"schema":{"assessment_mode":{"type":"TypeString","computed":true},"patch_mode":{"type":"TypeString","computed":true}}}}}}},"windows":{"type":"TypeList","computed":true,"elem":{"schema":{"patch":{"type":"TypeList","computed":true,"elem":{"schema":{"assessment_mode":{"type":"TypeString","computed":true},"patch_mode":{"type":"TypeString","computed":true}}}}}}}}}},"os_sku":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"os_version":{"type":"TypeString","computed":true},"parent_cluster_resource_id":{"type":"TypeString","computed":true},"private_link_scope_resource_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_status":{"type":"TypeList","computed":true,"elem":{"schema":{"extension_service":{"type":"TypeList","computed":true,"elem":{"schema":{"startup_type":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true}}}},"guest_configuration_service":{"type":"TypeList","computed":true,"elem":{"schema":{"startup_type":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true}}}}}}},"status":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vm_id":{"type":"TypeString","computed":true},"vm_uuid":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_arc_resource_bridge_appliance":{"schema":{"distro":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"infrastructure_provider":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_key_base64":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_attestation_provider":{"schema":{"attestation_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"trust_model":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_account":{"schema":{"endpoint":{"type":"TypeString","computed":true},"hybrid_service_url":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","computed":true},"private_endpoint_connection":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"secondary_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_runbook":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"content":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"log_activity_trace_level":{"type":"TypeInt","computed":true},"log_progress":{"type":"TypeBool","computed":true},"log_verbose":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"runbook_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_automation_variable_bool":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variable_datetime":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variable_int":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variable_object":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variable_string":{"schema":{"automation_account_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"value":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_automation_variables":{"schema":{"automation_account_id":{"type":"TypeString","required":true},"bool":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeBool","computed":true}}}},"datetime":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"encrypted":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"int":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeInt","computed":true}}}},"null":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"object":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"string":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"encrypted":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_availability_set":{"schema":{"location":{"type":"TypeString","computed":true},"managed":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"platform_fault_domain_count":{"type":"TypeInt","computed":true},"platform_update_domain_count":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_backup_policy_file_share":{"schema":{"name":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_backup_policy_vm":{"schema":{"name":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_bastion_host":{"schema":{"copy_paste_enabled":{"type":"TypeBool","computed":true},"dns_name":{"type":"TypeString","computed":true},"file_copy_enabled":{"type":"TypeBool","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"ip_connect_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"scale_units":{"type":"TypeInt","computed":true},"session_recording_enabled":{"type":"TypeBool","computed":true},"shareable_link_enabled":{"type":"TypeBool","computed":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tunneling_enabled":{"type":"TypeBool","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_batch_account":{"schema":{"account_endpoint":{"type":"TypeString","computed":true},"encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","computed":true}}}},"key_vault_reference":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"url":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"pool_allocation_mode":{"type":"TypeString","computed":true},"primary_access_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_batch_application":{"schema":{"account_name":{"type":"TypeString","required":true},"allow_updates":{"type":"TypeBool","computed":true},"default_version":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_batch_certificate":{"schema":{"account_name":{"type":"TypeString","required":true},"format":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_data":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"thumbprint":{"type":"TypeString","computed":true},"thumbprint_algorithm":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_batch_pool":{"schema":{"account_name":{"type":"TypeString","required":true},"auto_scale":{"type":"TypeList","computed":true,"elem":{"schema":{"evaluation_interval":{"type":"TypeString","computed":true},"formula":{"type":"TypeString","computed":true}}}},"certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"store_location":{"type":"TypeString","computed":true},"store_name":{"type":"TypeString","computed":true},"visibility":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"container_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"container_image_names":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"container_registries":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"registry_server":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true},"user_name":{"type":"TypeString","computed":true}}}},"type":{"type":"TypeString","computed":true}}}},"data_disks":{"type":"TypeList","computed":true,"elem":{"schema":{"caching":{"type":"TypeString","computed":true},"disk_size_gb":{"type":"TypeInt","computed":true},"lun":{"type":"TypeInt","computed":true},"storage_account_type":{"type":"TypeString","computed":true}}}},"disk_encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_encryption_target":{"type":"TypeString","computed":true}}}},"display_name":{"type":"TypeString","computed":true},"extensions":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_upgrade_minor_version":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"protected_settings":{"type":"TypeString","computed":true},"provision_after_extensions":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"publisher":{"type":"TypeString","computed":true},"settings_json":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"type_handler_version":{"type":"TypeString","computed":true}}}},"fixed_scale":{"type":"TypeList","computed":true,"elem":{"schema":{"resize_timeout":{"type":"TypeString","computed":true},"target_dedicated_nodes":{"type":"TypeInt","computed":true},"target_low_priority_nodes":{"type":"TypeInt","computed":true}}}},"inter_node_communication":{"type":"TypeString","computed":true},"license_type":{"type":"TypeString","computed":true},"max_tasks_per_node":{"type":"TypeInt","computed":true},"metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"mount":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_file_system":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","computed":true},"account_name":{"type":"TypeString","computed":true},"blobfuse_options":{"type":"TypeString","computed":true},"container_name":{"type":"TypeString","computed":true},"identity_id":{"type":"TypeString","computed":true},"relative_mount_path":{"type":"TypeString","computed":true},"sas_key":{"type":"TypeString","computed":true}}}},"azure_file_share":{"type":"TypeList","optional":true,"elem":{"schema":{"account_key":{"type":"TypeString","computed":true},"account_name":{"type":"TypeString","computed":true},"azure_file_url":{"type":"TypeString","computed":true},"mount_options":{"type":"TypeString","computed":true},"relative_mount_path":{"type":"TypeString","computed":true}}}},"cifs_mount":{"type":"TypeList","computed":true,"elem":{"schema":{"mount_options":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"relative_mount_path":{"type":"TypeString","computed":true},"source":{"type":"TypeString","computed":true},"user_name":{"type":"TypeString","computed":true}}}},"nfs_mount":{"type":"TypeList","computed":true,"elem":{"schema":{"mount_options":{"type":"TypeString","computed":true},"relative_mount_path":{"type":"TypeString","computed":true},"source":{"type":"TypeString","computed":true}}}}}}},"name":{"type":"TypeString","required":true},"network_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","computed":true},"dynamic_vnet_assignment_scope":{"type":"TypeString","computed":true},"endpoint_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","computed":true},"frontend_port_range":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"network_security_group_rules":{"type":"TypeList","computed":true,"elem":{"schema":{"access":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"source_address_prefix":{"type":"TypeString","computed":true},"source_port_ranges":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"protocol":{"type":"TypeString","computed":true}}}},"public_address_provisioning_type":{"type":"TypeString","computed":true},"public_ips":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"subnet_id":{"type":"TypeString","computed":true}}}},"node_agent_sku_id":{"type":"TypeString","computed":true},"node_placement":{"type":"TypeList","computed":true,"elem":{"schema":{"policy":{"type":"TypeString","computed":true}}}},"os_disk_placement":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"start_task":{"type":"TypeList","computed":true,"elem":{"schema":{"command_line":{"type":"TypeString","computed":true},"common_environment_properties":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"container":{"type":"TypeList","computed":true,"elem":{"schema":{"image_name":{"type":"TypeString","computed":true},"registry":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"registry_server":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true},"user_name":{"type":"TypeString","computed":true}}}},"run_options":{"type":"TypeString","computed":true},"working_directory":{"type":"TypeString","computed":true}}}},"resource_file":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_storage_container_name":{"type":"TypeString","computed":true},"blob_prefix":{"type":"TypeString","computed":true},"file_mode":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","computed":true},"http_url":{"type":"TypeString","computed":true},"storage_container_url":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"task_retry_maximum":{"type":"TypeInt","computed":true},"user_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_user":{"type":"TypeList","computed":true,"elem":{"schema":{"elevation_level":{"type":"TypeString","computed":true},"scope":{"type":"TypeString","computed":true}}}},"user_name":{"type":"TypeString","computed":true}}}},"wait_for_success":{"type":"TypeBool","computed":true}}}},"storage_image_reference":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"offer":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"task_scheduling_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"node_fill_type":{"type":"TypeString","computed":true}}}},"user_accounts":{"type":"TypeList","computed":true,"elem":{"schema":{"elevation_level":{"type":"TypeString","computed":true},"linux_user_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"gid":{"type":"TypeInt","computed":true},"ssh_private_key":{"type":"TypeString","computed":true},"uid":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"windows_user_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"login_mode":{"type":"TypeString","computed":true}}}}}}},"vm_size":{"type":"TypeString","computed":true},"windows":{"type":"TypeList","computed":true,"elem":{"schema":{"enable_automatic_updates":{"type":"TypeBool","computed":true}}}}},"timeouts":{"read":5}},"azurerm_billing_enrollment_account_scope":{"schema":{"billing_account_name":{"type":"TypeString","required":true},"enrollment_account_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_billing_mca_account_scope":{"schema":{"billing_account_name":{"type":"TypeString","required":true},"billing_profile_name":{"type":"TypeString","required":true},"invoice_section_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_billing_mpa_account_scope":{"schema":{"billing_account_name":{"type":"TypeString","required":true},"customer_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_blueprint_definition":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"last_modified":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"scope_id":{"type":"TypeString","required":true},"target_scope":{"type":"TypeString","computed":true},"time_created":{"type":"TypeString","computed":true},"versions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_blueprint_published_version":{"schema":{"blueprint_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"last_modified":{"type":"TypeString","computed":true},"scope_id":{"type":"TypeString","required":true},"target_scope":{"type":"TypeString","computed":true},"time_created":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"version":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_custom_domain":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","computed":true},"dns_zone_id":{"type":"TypeString","computed":true},"expiration_date":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tls":{"type":"TypeList","computed":true,"elem":{"schema":{"cdn_frontdoor_secret_id":{"type":"TypeString","computed":true},"certificate_type":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true}}}},"validation_token":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_endpoint":{"schema":{"enabled":{"type":"TypeBool","computed":true},"host_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_firewall_policy":{"schema":{"enabled":{"type":"TypeBool","computed":true},"frontend_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"mode":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"redirect_url":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_origin_group":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","computed":true},"health_probe":{"type":"TypeList","computed":true,"elem":{"schema":{"interval_in_seconds":{"type":"TypeInt","computed":true},"path":{"type":"TypeString","computed":true},"protocol":{"type":"TypeString","computed":true},"request_type":{"type":"TypeString","computed":true}}}},"load_balancing":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_latency_in_milliseconds":{"type":"TypeInt","computed":true},"sample_size":{"type":"TypeInt","computed":true},"successful_samples_required":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"restore_traffic_time_to_healed_or_new_endpoint_in_minutes":{"type":"TypeInt","computed":true},"session_affinity_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_profile":{"schema":{"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"resource_guid":{"type":"TypeString","computed":true},"response_timeout_seconds":{"type":"TypeInt","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_rule_set":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_cdn_frontdoor_secret":{"schema":{"cdn_frontdoor_profile_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"profile_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"secret":{"type":"TypeList","computed":true,"elem":{"schema":{"customer_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"expiration_date":{"type":"TypeString","computed":true},"key_vault_certificate_id":{"type":"TypeString","computed":true},"subject_alternative_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}}},"timeouts":{"read":5}},"azurerm_cdn_profile":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_client_config":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"subscription_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_cognitive_account":{"schema":{"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"local_auth_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"qna_runtime_endpoint":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_communication_service":{"schema":{"data_location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_confidential_ledger":{"schema":{"azuread_based_service_principal":{"type":"TypeList","computed":true,"elem":{"schema":{"ledger_role_name":{"type":"TypeString","computed":true},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}},"certificate_based_security_principal":{"type":"TypeList","computed":true,"elem":{"schema":{"ledger_role_name":{"type":"TypeString","computed":true},"pem_public_key":{"type":"TypeString","computed":true}}}},"identity_service_endpoint":{"type":"TypeString","computed":true},"ledger_endpoint":{"type":"TypeString","computed":true},"ledger_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_consumption_budget_resource_group":{"schema":{"amount":{"type":"TypeFloat","computed":true},"filter":{"type":"TypeList","computed":true,"elem":{"schema":{"dimension":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"not":{"type":"TypeList","computed":true,"elem":{"schema":{"dimension":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"name":{"type":"TypeString","required":true},"notification":{"type":"TypeList","computed":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"contact_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"contact_roles":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","computed":true},"operator":{"type":"TypeString","computed":true},"threshold":{"type":"TypeInt","computed":true},"threshold_type":{"type":"TypeString","computed":true}}}},"resource_group_id":{"type":"TypeString","required":true},"time_grain":{"type":"TypeString","computed":true},"time_period":{"type":"TypeList","computed":true,"elem":{"schema":{"end_date":{"type":"TypeString","computed":true},"start_date":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_consumption_budget_subscription":{"schema":{"amount":{"type":"TypeFloat","computed":true},"filter":{"type":"TypeList","computed":true,"elem":{"schema":{"dimension":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"not":{"type":"TypeList","computed":true,"elem":{"schema":{"dimension":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"name":{"type":"TypeString","required":true},"notification":{"type":"TypeList","computed":true,"elem":{"schema":{"contact_emails":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"contact_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"contact_roles":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enabled":{"type":"TypeBool","computed":true},"operator":{"type":"TypeString","computed":true},"threshold":{"type":"TypeInt","computed":true},"threshold_type":{"type":"TypeString","computed":true}}}},"subscription_id":{"type":"TypeString","required":true},"time_grain":{"type":"TypeString","computed":true},"time_period":{"type":"TypeList","computed":true,"elem":{"schema":{"end_date":{"type":"TypeString","computed":true},"start_date":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_container_app":{"schema":{"container_app_environment_id":{"type":"TypeString","computed":true},"custom_domain_verification_id":{"type":"TypeString","description":"The ID of the Custom Domain Verification for this Container App.","computed":true},"dapr":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The Dapr Application Identifier.","computed":true},"app_port":{"type":"TypeInt","description":"The port which the application is listening on. This is the same as the `ingress` port.","computed":true},"app_protocol":{"type":"TypeString","description":"The protocol for the app. Possible values include `http` and `grpc`. Defaults to `http`.","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"ingress":{"type":"TypeList","computed":true,"elem":{"schema":{"allow_insecure_connections":{"type":"TypeBool","description":"Should this ingress allow insecure connections?","computed":true},"custom_domain":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_binding_type":{"type":"TypeString","description":"The Binding type. Possible values include `Disabled` and `SniEnabled`. Defaults to `Disabled`","computed":true},"certificate_id":{"type":"TypeString","description":"The ID of the Certificate.","computed":true},"name":{"type":"TypeString","description":"The hostname of the Certificate. Must be the CN or a named SAN in the certificate.","computed":true}}}},"exposed_port":{"type":"TypeInt","description":"The exposed port on the container for the Ingress traffic.","computed":true},"external_enabled":{"type":"TypeBool","description":"Is this an external Ingress.","computed":true},"fqdn":{"type":"TypeString","description":"The FQDN of the ingress.","computed":true},"ip_security_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action. Allow or Deny.","computed":true},"description":{"type":"TypeString","description":"Describe the IP restriction rule that is being sent to the container-app.","computed":true},"ip_address_range":{"type":"TypeString","description":"CIDR notation to match incoming IP address.","computed":true},"name":{"type":"TypeString","description":"Name for the IP restriction rule.","computed":true}}}},"target_port":{"type":"TypeInt","description":"The target port on the container for the Ingress traffic.","computed":true},"traffic_weight":{"type":"TypeList","computed":true,"elem":{"schema":{"label":{"type":"TypeString","description":"The label to apply to the revision as a name prefix for routing traffic.","computed":true},"latest_revision":{"type":"TypeBool","description":"This traffic Weight relates to the latest stable Container Revision.","computed":true},"percentage":{"type":"TypeInt","description":"The percentage of traffic to send to this revision.","computed":true},"revision_suffix":{"type":"TypeString","description":"The suffix string to append to the revision. This must be unique for the Container App's lifetime. A default hash created by the service will be used if this value is omitted.","computed":true}}}},"transport":{"type":"TypeString","description":"The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`, `tcp`. Defaults to `auto`","computed":true}}}},"latest_revision_fqdn":{"type":"TypeString","description":"The fully qualified domain name of the latest Container App.","computed":true},"latest_revision_name":{"type":"TypeString","description":"The name of the latest Container Revision.","computed":true},"location":{"type":"TypeString","computed":true},"max_inactive_revisions":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"registry":{"type":"TypeList","computed":true,"elem":{"schema":{"identity":{"type":"TypeString","description":"ID of the System or User Managed Identity used to pull images from the Container Registry","computed":true},"password_secret_name":{"type":"TypeString","description":"The name of the Secret Reference containing the password value for this user on the Container Registry.","computed":true},"server":{"type":"TypeString","description":"The hostname for the Container Registry.","computed":true},"username":{"type":"TypeString","description":"The username to use for this Container Registry.","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"revision_mode":{"type":"TypeString","computed":true},"secret":{"type":"TypeSet","computed":true,"elem":{"schema":{"identity":{"type":"TypeString","description":"The identity to use for accessing key vault reference.","computed":true},"key_vault_secret_id":{"type":"TypeString","description":"The id of the key vault secret.","computed":true},"name":{"type":"TypeString","description":"The secret name.","computed":true},"value":{"type":"TypeString","description":"The value for this secret.","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"template":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_queue_scale_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_name":{"type":"TypeString","computed":true},"trigger_parameter":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"queue_length":{"type":"TypeInt","computed":true},"queue_name":{"type":"TypeString","computed":true}}}},"container":{"type":"TypeList","computed":true,"elem":{"schema":{"args":{"type":"TypeList","description":"A list of args to pass to the container.","computed":true,"elem":{"type":"TypeString"}},"command":{"type":"TypeList","description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","computed":true,"elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`","computed":true},"env":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of the environment variable for the container.","computed":true},"secret_name":{"type":"TypeString","description":"The name of the secret that contains the value for this environment variable.","computed":true},"value":{"type":"TypeString","description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used","computed":true}}}},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","description":"The image to use to create the container.","computed":true},"liveness_probe":{"type":"TypeList","computed":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.","computed":true},"header":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The HTTP Header Name.","computed":true},"value":{"type":"TypeString","description":"The HTTP Header value.","computed":true}}}},"host":{"type":"TypeString","description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes.","computed":true},"initial_delay":{"type":"TypeInt","description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `1` seconds.","computed":true},"interval_seconds":{"type":"TypeInt","description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`","computed":true},"path":{"type":"TypeString","description":"The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","description":"The port number on which to connect. Possible values are between `1` and `65535`.","computed":true},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`.","computed":true},"transport":{"type":"TypeString","description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`.","computed":true}}}},"memory":{"type":"TypeString","description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`","computed":true},"name":{"type":"TypeString","description":"The name of the container.","computed":true},"readiness_probe":{"type":"TypeList","computed":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.","computed":true},"header":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The HTTP Header Name.","computed":true},"value":{"type":"TypeString","description":"The HTTP Header value.","computed":true}}}},"host":{"type":"TypeString","description":"The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `http` and `https` type probes.","computed":true},"initial_delay":{"type":"TypeInt","description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds.","computed":true},"interval_seconds":{"type":"TypeInt","description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`","computed":true},"path":{"type":"TypeString","description":"The URI to use for http type probes. Not valid for `TCP` type probes. Defaults to `/`.","computed":true},"port":{"type":"TypeInt","description":"The port number on which to connect. Possible values are between `1` and `65535`.","computed":true},"success_count_threshold":{"type":"TypeInt","description":"The number of consecutive successful responses required to consider this probe as successful. Possible values are between `1` and `10`. Defaults to `3`.","computed":true},"timeout":{"type":"TypeInt","description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`.","computed":true},"transport":{"type":"TypeString","description":"Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`.","computed":true}}}},"startup_probe":{"type":"TypeList","computed":true,"elem":{"schema":{"failure_count_threshold":{"type":"TypeInt","description":"The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.","computed":true},"header":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The HTTP Header Name.","computed":true},"value":{"type":"TypeString","description":"The HTTP Header value.","computed":true}}}},"host":{"type":"TypeString","computed":true},"initial_delay":{"type":"TypeInt","description":"The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds.","computed":true},"interval_seconds":{"type":"TypeInt","description":"How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10`","computed":true},"path":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","computed":true},"termination_grace_period_seconds":{"type":"TypeInt","description":"The time in seconds after the container is sent the termination signal before the process if forcibly killed.","computed":true},"timeout":{"type":"TypeInt","description":"Time in seconds after which the probe times out. Possible values are between `1` an `240`. Defaults to `1`.","computed":true},"transport":{"type":"TypeString","computed":true}}}},"volume_mounts":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of the Volume to be mounted in the container.","computed":true},"path":{"type":"TypeString","description":"The path in the container at which to mount this volume.","computed":true}}}}}}},"custom_scale_rule":{"type":"TypeList","optional":true,"elem":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_name":{"type":"TypeString","computed":true},"trigger_parameter":{"type":"TypeString","computed":true}}}},"custom_rule_type":{"type":"TypeString","computed":true},"metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true}}}},"http_scale_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_name":{"type":"TypeString","computed":true},"trigger_parameter":{"type":"TypeString","computed":true}}}},"concurrent_requests":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"init_container":{"type":"TypeList","computed":true,"elem":{"schema":{"args":{"type":"TypeList","description":"A list of args to pass to the container.","computed":true,"elem":{"type":"TypeString"}},"command":{"type":"TypeList","description":"A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.","computed":true,"elem":{"type":"TypeString"}},"cpu":{"type":"TypeFloat","description":"The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`","computed":true},"env":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of the environment variable for the container.","computed":true},"secret_name":{"type":"TypeString","description":"The name of the secret that contains the value for this environment variable.","computed":true},"value":{"type":"TypeString","description":"The value for this environment variable. **NOTE:** This value is ignored if `secret_name` is used","computed":true}}}},"ephemeral_storage":{"type":"TypeString","description":"The amount of ephemeral storage available to the Container App.","computed":true},"image":{"type":"TypeString","description":"The image to use to create the container.","computed":true},"memory":{"type":"TypeString","description":"The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1.0Gi`, `1.5Gi`, `2.0Gi`, `2.5Gi`, `3.0Gi`, `3.5Gi`, and `4.0Gi`. **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`","computed":true},"name":{"type":"TypeString","description":"The name of the container.","computed":true},"volume_mounts":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of the Volume to be mounted in the container.","computed":true},"path":{"type":"TypeString","description":"The path in the container at which to mount this volume.","computed":true}}}}}}},"max_replicas":{"type":"TypeInt","description":"The maximum number of replicas for this container.","computed":true},"min_replicas":{"type":"TypeInt","description":"The minimum number of replicas for this container.","computed":true},"revision_suffix":{"type":"TypeString","computed":true},"tcp_scale_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_name":{"type":"TypeString","computed":true},"trigger_parameter":{"type":"TypeString","computed":true}}}},"concurrent_requests":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"volume":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"storage_name":{"type":"TypeString","computed":true},"storage_type":{"type":"TypeString","computed":true}}}}}}},"workload_profile_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_container_app_environment":{"schema":{"custom_domain_verification_id":{"type":"TypeString","description":"The ID of the Custom Domain Verification for this Container App Environment.","computed":true},"default_domain":{"type":"TypeString","description":"The default publicly resolvable name of this Container App Environment","computed":true},"docker_bridge_cidr":{"type":"TypeString","description":"The network addressing in which the Container Apps in this Container App Environment will reside in CIDR notation.","computed":true},"infrastructure_subnet_id":{"type":"TypeString","description":"The existing Subnet in use by the Container Apps Control Plane.","computed":true},"internal_load_balancer_enabled":{"type":"TypeBool","description":"Does the Container Environment operate in Internal Load Balancing Mode?","computed":true},"location":{"type":"TypeString","computed":true},"log_analytics_workspace_name":{"type":"TypeString","description":"The name of the Log Analytics Workspace this Container Apps Managed Environment is linked to.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Container Apps Managed Environment."},"platform_reserved_cidr":{"type":"TypeString","description":"The IP range, in CIDR notation, that is reserved for environment infrastructure IP addresses.","computed":true},"platform_reserved_dns_ip_address":{"type":"TypeString","description":"The IP address from the IP range defined by `platform_reserved_cidr` that is reserved for the internal DNS server.","computed":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"static_ip_address":{"type":"TypeString","description":"The Static IP Address of the Environment.","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_container_app_environment_certificate":{"schema":{"container_app_environment_id":{"type":"TypeString","required":true,"description":"The Container App Managed Environment ID to configure this Certificate on.","forceNew":true},"expiration_date":{"type":"TypeString","description":"The expiration date for the Certificate.","computed":true},"issue_date":{"type":"TypeString","description":"The date of issue for the Certificate.","computed":true},"issuer":{"type":"TypeString","description":"The Certificate Issuer.","computed":true},"name":{"type":"TypeString","required":true,"description":"The name of the Container Apps Certificate.","forceNew":true},"subject_name":{"type":"TypeString","description":"The Subject Name for the Certificate.","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","description":"The Thumbprint of the Certificate.","computed":true}},"timeouts":{"read":5}},"azurerm_container_group":{"schema":{"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"ip_address":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"subnet_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_container_registry":{"schema":{"admin_enabled":{"type":"TypeBool","computed":true},"admin_password":{"type":"TypeString","computed":true},"admin_username":{"type":"TypeString","computed":true},"data_endpoint_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"login_server":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_container_registry_cache_rule":{"schema":{"container_registry_id":{"type":"TypeString","required":true},"credential_set_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"source_repo":{"type":"TypeString","computed":true},"target_repo":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_container_registry_scope_map":{"schema":{"actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"container_registry_name":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_container_registry_token":{"schema":{"container_registry_name":{"type":"TypeString","required":true},"enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"scope_map_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_cosmosdb_account":{"schema":{"automatic_failover_enabled":{"type":"TypeBool","computed":true},"capabilities":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"consistency_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"consistency_level":{"type":"TypeString","computed":true},"max_interval_in_seconds":{"type":"TypeInt","computed":true},"max_staleness_prefix":{"type":"TypeInt","computed":true}}}},"endpoint":{"type":"TypeString","computed":true},"free_tier_enabled":{"type":"TypeBool","computed":true},"geo_location":{"type":"TypeList","computed":true,"elem":{"schema":{"failover_priority":{"type":"TypeInt","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true}}}},"ip_range_filter":{"type":"TypeString","computed":true},"is_virtual_network_filter_enabled":{"type":"TypeBool","computed":true},"key_vault_key_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"multiple_write_locations_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"offer_type":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"primary_mongodb_connection_string":{"type":"TypeString","computed":true},"primary_readonly_key":{"type":"TypeString","computed":true},"primary_readonly_mongodb_connection_string":{"type":"TypeString","computed":true},"primary_readonly_sql_connection_string":{"type":"TypeString","computed":true},"primary_sql_connection_string":{"type":"TypeString","computed":true},"read_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"secondary_key":{"type":"TypeString","computed":true},"secondary_mongodb_connection_string":{"type":"TypeString","computed":true},"secondary_readonly_key":{"type":"TypeString","computed":true},"secondary_readonly_mongodb_connection_string":{"type":"TypeString","computed":true},"secondary_readonly_sql_connection_string":{"type":"TypeString","computed":true},"secondary_sql_connection_string":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true}}}},"write_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_cosmosdb_mongo_database":{"schema":{"account_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_cosmosdb_restorable_database_accounts":{"schema":{"accounts":{"type":"TypeList","computed":true,"elem":{"schema":{"api_type":{"type":"TypeString","computed":true},"creation_time":{"type":"TypeString","computed":true},"deletion_time":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"restorable_locations":{"type":"TypeList","computed":true,"elem":{"schema":{"creation_time":{"type":"TypeString","computed":true},"deletion_time":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"regional_database_account_instance_id":{"type":"TypeString","computed":true}}}}}}},"location":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_cosmosdb_sql_database":{"schema":{"account_name":{"type":"TypeString","required":true},"autoscale_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"max_throughput":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"throughput":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_cosmosdb_sql_role_definition":{"schema":{"account_name":{"type":"TypeString","required":true},"assignable_scopes":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"permissions":{"type":"TypeSet","computed":true,"elem":{"schema":{"data_actions":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"role_definition_id":{"type":"TypeString","required":true},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_dashboard_grafana":{"schema":{"api_key_enabled":{"type":"TypeBool","computed":true},"auto_generated_domain_name_label_scope":{"type":"TypeString","computed":true},"azure_monitor_workspace_integrations":{"type":"TypeList","computed":true,"elem":{"schema":{"resource_id":{"type":"TypeString","computed":true}}}},"deterministic_outbound_ip_enabled":{"type":"TypeBool","computed":true},"endpoint":{"type":"TypeString","computed":true},"grafana_major_version":{"type":"TypeString","computed":true},"grafana_version":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","optional":true,"forceNew":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"forceNew":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true,"forceNew":true}}},"maxItems":1},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_redundancy_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_data_factory":{"schema":{"github_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"account_name":{"type":"TypeString","computed":true},"branch_name":{"type":"TypeString","computed":true},"git_url":{"type":"TypeString","computed":true},"repository_name":{"type":"TypeString","computed":true},"root_folder":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vsts_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"account_name":{"type":"TypeString","computed":true},"branch_name":{"type":"TypeString","computed":true},"project_name":{"type":"TypeString","computed":true},"repository_name":{"type":"TypeString","computed":true},"root_folder":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_data_factory_trigger_schedule":{"schema":{"activated":{"type":"TypeBool","computed":true},"annotations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"data_factory_id":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"end_time":{"type":"TypeString","computed":true},"frequency":{"type":"TypeString","computed":true},"interval":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"pipeline_name":{"type":"TypeString","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"days_of_month":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"days_of_week":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"hours":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"minutes":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"monthly":{"type":"TypeList","computed":true,"elem":{"schema":{"week":{"type":"TypeInt","computed":true},"weekday":{"type":"TypeString","computed":true}}}}}}},"start_time":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_data_factory_trigger_schedules":{"schema":{"data_factory_id":{"type":"TypeString","required":true},"items":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_data_protection_backup_vault":{"schema":{"datastore_type":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"redundancy":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_data_share":{"schema":{"account_id":{"type":"TypeString","required":true},"description":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"snapshot_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"recurrence":{"type":"TypeString","computed":true},"start_time":{"type":"TypeString","computed":true}}}},"terms":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_data_share_account":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_data_share_dataset_blob_storage":{"schema":{"container_name":{"type":"TypeString","computed":true},"data_share_id":{"type":"TypeString","required":true},"display_name":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","computed":true},"folder_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"storage_account":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","computed":true},"subscription_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_data_share_dataset_data_lake_gen2":{"schema":{"display_name":{"type":"TypeString","computed":true},"file_path":{"type":"TypeString","computed":true},"file_system_name":{"type":"TypeString","computed":true},"folder_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"share_id":{"type":"TypeString","required":true},"storage_account_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_data_share_dataset_kusto_cluster":{"schema":{"display_name":{"type":"TypeString","computed":true},"kusto_cluster_id":{"type":"TypeString","computed":true},"kusto_cluster_location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"share_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_data_share_dataset_kusto_database":{"schema":{"display_name":{"type":"TypeString","computed":true},"kusto_cluster_location":{"type":"TypeString","computed":true},"kusto_database_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"share_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_database_migration_project":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","required":true},"source_platform":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_platform":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_database_migration_service":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_databox_edge_device":{"schema":{"device_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"configured_role_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"culture":{"type":"TypeString","computed":true},"hcs_version":{"type":"TypeString","computed":true},"model":{"type":"TypeString","computed":true},"node_count":{"type":"TypeInt","computed":true},"serial_number":{"type":"TypeString","computed":true},"software_version":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_databricks_access_connector":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_databricks_workspace":{"schema":{"location":{"type":"TypeString","computed":true},"managed_disk_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"storage_account_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true},"workspace_url":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_databricks_workspace_private_endpoint_connection":{"schema":{"connections":{"type":"TypeList","computed":true,"elem":{"schema":{"action_required":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true},"workspace_private_endpoint_id":{"type":"TypeString","computed":true}}}},"private_endpoint_id":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dedicated_host":{"schema":{"dedicated_host_group_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_dedicated_host_group":{"schema":{"automatic_placement_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"platform_fault_domain_count":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_dev_test_lab":{"schema":{"artifacts_storage_account_id":{"type":"TypeString","computed":true},"default_premium_storage_account_id":{"type":"TypeString","computed":true},"default_storage_account_id":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"premium_data_disk_storage_account_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"storage_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"unique_identifier":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_dev_test_virtual_network":{"schema":{"allowed_subnets":{"type":"TypeList","computed":true,"elem":{"schema":{"allow_public_ip":{"type":"TypeString","computed":true},"lab_subnet_name":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true}}}},"lab_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"subnet_overrides":{"type":"TypeList","computed":true,"elem":{"schema":{"lab_subnet_name":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"use_in_vm_creation_permission":{"type":"TypeString","computed":true},"use_public_ip_address_permission":{"type":"TypeString","computed":true},"virtual_network_pool_name":{"type":"TypeString","computed":true}}}},"unique_identifier":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_digital_twins_instance":{"schema":{"host_name":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_disk_access":{"schema":{"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_disk_encryption_set":{"schema":{"auto_key_rotation_enabled":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"key_vault_key_url":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_dns_a_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_aaaa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_caa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"flags":{"type":"TypeInt","computed":true},"tag":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_cname_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_mx_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"exchange":{"type":"TypeString","computed":true},"preference":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_ns_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_ptr_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_soa_record":{"schema":{"email":{"type":"TypeString","computed":true},"expire_time":{"type":"TypeInt","computed":true},"fqdn":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"minimum_ttl":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","optional":true,"default":"@"},"refresh_time":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"retry_time":{"type":"TypeInt","computed":true},"serial_number":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_srv_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"port":{"type":"TypeInt","computed":true},"priority":{"type":"TypeInt","computed":true},"target":{"type":"TypeString","computed":true},"weight":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_txt_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"value":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_dns_zone":{"schema":{"max_number_of_record_sets":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"name_servers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"number_of_record_sets":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_elastic_cloud_elasticsearch":{"schema":{"elastic_cloud_deployment_id":{"type":"TypeString","computed":true},"elastic_cloud_email_address":{"type":"TypeString","computed":true},"elastic_cloud_sso_default_url":{"type":"TypeString","computed":true},"elastic_cloud_user_id":{"type":"TypeString","computed":true},"elasticsearch_service_url":{"type":"TypeString","computed":true},"kibana_service_url":{"type":"TypeString","computed":true},"kibana_sso_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"filtering_tag":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"send_activity_logs":{"type":"TypeBool","computed":true},"send_azuread_logs":{"type":"TypeBool","computed":true},"send_subscription_logs":{"type":"TypeBool","computed":true}}}},"monitoring_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_elastic_san":{"schema":{"base_size_in_tib":{"type":"TypeInt","computed":true},"extended_size_in_tib":{"type":"TypeInt","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"total_iops":{"type":"TypeInt","computed":true},"total_mbps":{"type":"TypeInt","computed":true},"total_size_in_tib":{"type":"TypeInt","computed":true},"total_volume_size_in_gib":{"type":"TypeInt","computed":true},"volume_group_count":{"type":"TypeInt","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_elastic_san_volume_group":{"schema":{"elastic_san_id":{"type":"TypeString","required":true},"encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"current_versioned_key_expiration_timestamp":{"type":"TypeString","computed":true},"current_versioned_key_id":{"type":"TypeString","computed":true},"key_vault_key_id":{"type":"TypeString","computed":true},"last_key_rotation_timestamp":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"encryption_type":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"network_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"protocol_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_elastic_san_volume_snapshot":{"schema":{"name":{"type":"TypeString","required":true},"source_id":{"type":"TypeString","computed":true},"source_volume_size_in_gib":{"type":"TypeInt","computed":true},"volume_group_id":{"type":"TypeString","required":true,"forceNew":true},"volume_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_eventgrid_domain":{"schema":{"endpoint":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"inbound_ip_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"ip_mask":{"type":"TypeString","computed":true}}}},"input_mapping_default_values":{"type":"TypeList","computed":true,"elem":{"schema":{"data_version":{"type":"TypeString","computed":true},"event_type":{"type":"TypeString","computed":true},"subject":{"type":"TypeString","computed":true}}}},"input_mapping_fields":{"type":"TypeList","computed":true,"elem":{"schema":{"data_version":{"type":"TypeString","computed":true},"event_time":{"type":"TypeString","computed":true},"event_type":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"subject":{"type":"TypeString","computed":true},"topic":{"type":"TypeString","computed":true}}}},"input_schema":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_eventgrid_domain_topic":{"schema":{"domain_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_eventgrid_system_topic":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"metric_arm_resource_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"source_arm_resource_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"topic_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_eventgrid_topic":{"schema":{"endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_eventhub":{"schema":{"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"partition_count":{"type":"TypeInt","computed":true},"partition_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_eventhub_authorization_rule":{"schema":{"eventhub_name":{"type":"TypeString","required":true},"listen":{"type":"TypeBool","optional":true,"default":false},"manage":{"type":"TypeBool","optional":true,"default":false},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","optional":true,"default":false}},"timeouts":{"read":5}},"azurerm_eventhub_cluster":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_eventhub_consumer_group":{"schema":{"eventhub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"user_metadata":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_eventhub_namespace":{"schema":{"auto_inflate_enabled":{"type":"TypeBool","computed":true},"capacity":{"type":"TypeInt","computed":true},"dedicated_cluster_id":{"type":"TypeString","computed":true},"default_primary_connection_string":{"type":"TypeString","computed":true},"default_primary_connection_string_alias":{"type":"TypeString","computed":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_connection_string":{"type":"TypeString","computed":true},"default_secondary_connection_string_alias":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"kafka_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"maximum_throughput_units":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_eventhub_namespace_authorization_rule":{"schema":{"listen":{"type":"TypeBool","computed":true},"manage":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_eventhub_sas":{"schema":{"connection_string":{"type":"TypeString","required":true},"expiry":{"type":"TypeString","required":true},"sas":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_express_route_circuit":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"peerings":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_asn":{"type":"TypeInt","computed":true},"peer_asn":{"type":"TypeInt","computed":true},"peering_type":{"type":"TypeString","computed":true},"primary_peer_address_prefix":{"type":"TypeString","computed":true},"secondary_peer_address_prefix":{"type":"TypeString","computed":true},"shared_key":{"type":"TypeString","computed":true},"vlan_id":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"service_key":{"type":"TypeString","computed":true},"service_provider_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"bandwidth_in_mbps":{"type":"TypeInt","computed":true},"peering_location":{"type":"TypeString","computed":true},"service_provider_name":{"type":"TypeString","computed":true}}}},"service_provider_provisioning_state":{"type":"TypeString","computed":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"family":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_express_route_circuit_peering":{"schema":{"azure_asn":{"type":"TypeInt","computed":true},"express_route_circuit_name":{"type":"TypeString","required":true},"gateway_manager_etag":{"type":"TypeString","computed":true},"ipv4_enabled":{"type":"TypeBool","computed":true},"peer_asn":{"type":"TypeInt","computed":true},"peering_type":{"type":"TypeString","required":true},"primary_azure_port":{"type":"TypeString","computed":true},"primary_peer_address_prefix":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"route_filter_id":{"type":"TypeString","computed":true},"secondary_azure_port":{"type":"TypeString","computed":true},"secondary_peer_address_prefix":{"type":"TypeString","computed":true},"shared_key":{"type":"TypeString","computed":true},"vlan_id":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_extended_locations":{"schema":{"extended_locations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_firewall":{"schema":{"dns_proxy_enabled":{"type":"TypeBool","optional":true,"computed":true},"dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"firewall_policy_id":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"management_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"sku_tier":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"threat_intel_mode":{"type":"TypeString","computed":true},"virtual_hub":{"type":"TypeList","computed":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_count":{"type":"TypeInt","computed":true},"virtual_hub_id":{"type":"TypeString","computed":true}}}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_firewall_policy":{"schema":{"base_policy_id":{"type":"TypeString","computed":true},"child_policies":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns":{"type":"TypeList","computed":true,"elem":{"schema":{"network_rule_fqdn_enabled":{"type":"TypeBool","computed":true},"proxy_enabled":{"type":"TypeBool","computed":true},"servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"firewalls":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"rule_collection_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"threat_intelligence_allowlist":{"type":"TypeList","computed":true,"elem":{"schema":{"fqdns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"threat_intelligence_mode":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_function_app":{"schema":{"app_service_plan_id":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"client_cert_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","computed":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"app_scale_limit":{"type":"TypeInt","computed":true},"auto_swap_slot_name":{"type":"TypeString","computed":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","computed":true},"elastic_instance_minimum":{"type":"TypeInt","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"service_tag":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}}}},"java_version":{"type":"TypeString","computed":true},"linux_fx_version":{"type":"TypeString","computed":true},"min_tls_version":{"type":"TypeString","computed":true},"pre_warmed_instance_count":{"type":"TypeInt","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","computed":true},"scm_ip_restriction":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeString","computed":true},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}},"maxItems":1},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"service_tag":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}}}},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker_process":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"source_control":{"type":"TypeList","computed":true,"elem":{"schema":{"branch":{"type":"TypeString","computed":true},"manual_integration":{"type":"TypeBool","computed":true},"repo_url":{"type":"TypeString","computed":true},"rollback_enabled":{"type":"TypeBool","computed":true},"use_mercurial":{"type":"TypeBool","computed":true}}}},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_function_app_host_keys":{"schema":{"blobs_extension_key":{"type":"TypeString","computed":true},"default_function_key":{"type":"TypeString","computed":true},"durabletask_extension_key":{"type":"TypeString","computed":true},"event_grid_extension_config_key":{"type":"TypeString","computed":true},"event_grid_extension_key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"signalr_extension_key":{"type":"TypeString","computed":true},"webpubsub_extension_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_hdinsight_cluster":{"schema":{"cluster_id":{"type":"TypeString","computed":true},"cluster_version":{"type":"TypeString","computed":true},"component_versions":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"edge_ssh_endpoint":{"type":"TypeString","computed":true},"gateway":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"https_endpoint":{"type":"TypeString","computed":true},"kafka_rest_proxy_endpoint":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"ssh_endpoint":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tier":{"type":"TypeString","computed":true},"tls_min_version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_healthcare_dicom_service":{"schema":{"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"authority":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_endpoint":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"service_url":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_healthcare_fhir_service":{"schema":{"access_policy_object_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeString","computed":true},"authority":{"type":"TypeString","computed":true},"smart_proxy_enabled":{"type":"TypeBool","computed":true}}}},"configuration_export_storage_account_name":{"type":"TypeString","computed":true},"container_registry_login_server_url":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_headers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_methods":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_origins":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"credentials_allowed":{"type":"TypeBool","computed":true},"max_age_in_seconds":{"type":"TypeInt","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_healthcare_medtech_service":{"schema":{"device_mapping_json":{"type":"TypeString","computed":true},"eventhub_consumer_group_name":{"type":"TypeString","computed":true},"eventhub_name":{"type":"TypeString","computed":true},"eventhub_namespace_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"workspace_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_healthcare_service":{"schema":{"access_policy_object_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"authentication_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeString","computed":true},"authority":{"type":"TypeString","computed":true},"smart_proxy_enabled":{"type":"TypeBool","computed":true}}}},"cors_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"allow_credentials":{"type":"TypeBool","computed":true},"allowed_headers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"allowed_methods":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_origins":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"max_age_in_seconds":{"type":"TypeInt","computed":true}}}},"cosmosdb_key_vault_key_versionless_id":{"type":"TypeString","computed":true},"cosmosdb_throughput":{"type":"TypeInt","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_healthcare_workspace":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_image":{"schema":{"data_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","computed":true},"caching":{"type":"TypeString","computed":true},"lun":{"type":"TypeInt","computed":true},"managed_disk_id":{"type":"TypeString","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true},"name_regex":{"type":"TypeString","optional":true},"os_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","computed":true},"caching":{"type":"TypeString","computed":true},"managed_disk_id":{"type":"TypeString","computed":true},"os_state":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"sort_descending":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_resilient":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_images":{"schema":{"images":{"type":"TypeList","computed":true,"elem":{"schema":{"data_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","computed":true},"caching":{"type":"TypeString","computed":true},"lun":{"type":"TypeInt","computed":true},"managed_disk_id":{"type":"TypeString","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"os_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_uri":{"type":"TypeString","computed":true},"caching":{"type":"TypeString","computed":true},"disk_encryption_set_id":{"type":"TypeString","computed":true},"managed_disk_id":{"type":"TypeString","computed":true},"os_state":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_resilient":{"type":"TypeBool","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags_filter":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_iothub":{"schema":{"hostname":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_iothub_dps":{"schema":{"allocation_policy":{"type":"TypeString","computed":true},"device_provisioning_host_name":{"type":"TypeString","computed":true},"id_scope":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"service_operations_host_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_iothub_dps_shared_access_policy":{"schema":{"iothub_dps_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_iothub_shared_access_policy":{"schema":{"iothub_name":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_ip_group":{"schema":{"cidrs":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_ip_groups":{"schema":{"ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":10}},"azurerm_key_vault":{"schema":{"access_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"application_id":{"type":"TypeString","computed":true},"certificate_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"object_id":{"type":"TypeString","computed":true},"secret_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"storage_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}}}},"enable_rbac_authorization":{"type":"TypeBool","computed":true},"enabled_for_deployment":{"type":"TypeBool","computed":true},"enabled_for_disk_encryption":{"type":"TypeBool","computed":true},"enabled_for_template_deployment":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_acls":{"type":"TypeList","computed":true,"elem":{"schema":{"bypass":{"type":"TypeString","computed":true},"default_action":{"type":"TypeString","computed":true},"ip_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"public_network_access_enabled":{"type":"TypeBool","computed":true},"purge_protection_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true},"vault_uri":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_access_policy":{"schema":{"certificate_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"secret_permissions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_key_vault_certificate":{"schema":{"certificate_data":{"type":"TypeString","computed":true},"certificate_data_base64":{"type":"TypeString","computed":true},"certificate_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"issuer_parameters":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"key_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"curve":{"type":"TypeString","computed":true},"exportable":{"type":"TypeBool","computed":true},"key_size":{"type":"TypeInt","computed":true},"key_type":{"type":"TypeString","computed":true},"reuse_key":{"type":"TypeBool","computed":true}}}},"lifetime_action":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeList","computed":true,"elem":{"schema":{"action_type":{"type":"TypeString","computed":true}}}},"trigger":{"type":"TypeList","computed":true,"elem":{"schema":{"days_before_expiry":{"type":"TypeInt","computed":true},"lifetime_percentage":{"type":"TypeInt","computed":true}}}}}}},"secret_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"content_type":{"type":"TypeString","computed":true}}}},"x509_certificate_properties":{"type":"TypeList","computed":true,"elem":{"schema":{"extended_key_usage":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_usage":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"subject":{"type":"TypeString","computed":true},"subject_alternative_names":{"type":"TypeList","computed":true,"elem":{"schema":{"dns_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"emails":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"upns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"validity_in_months":{"type":"TypeInt","computed":true}}}}}}},"expires":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"not_before":{"type":"TypeString","computed":true},"resource_manager_id":{"type":"TypeString","computed":true},"resource_manager_versionless_id":{"type":"TypeString","computed":true},"secret_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"thumbprint":{"type":"TypeString","computed":true},"version":{"type":"TypeString","optional":true,"computed":true},"versionless_id":{"type":"TypeString","computed":true},"versionless_secret_id":{"type":"TypeString","computed":true}},"timeouts":{"read":30}},"azurerm_key_vault_certificate_data":{"schema":{"certificates_count":{"type":"TypeInt","computed":true},"expires":{"type":"TypeString","computed":true},"hex":{"type":"TypeString","computed":true},"key":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"not_before":{"type":"TypeString","computed":true},"pem":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_certificate_issuer":{"schema":{"account_id":{"type":"TypeString","computed":true},"admin":{"type":"TypeList","computed":true,"elem":{"schema":{"email_address":{"type":"TypeString","computed":true},"first_name":{"type":"TypeString","computed":true},"last_name":{"type":"TypeString","computed":true},"phone":{"type":"TypeString","computed":true}}}},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"org_id":{"type":"TypeString","computed":true},"provider_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_certificates":{"schema":{"certificates":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}}}},"include_pending":{"type":"TypeBool","optional":true,"default":true},"key_vault_id":{"type":"TypeString","required":true},"names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_key_vault_encrypted_value":{"schema":{"algorithm":{"type":"TypeString","required":true},"decoded_plain_text_value":{"type":"TypeString","computed":true},"encrypted_data":{"type":"TypeString","optional":true},"key_vault_key_id":{"type":"TypeString","required":true},"plain_text_value":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_key_vault_key":{"schema":{"curve":{"type":"TypeString","computed":true},"e":{"type":"TypeString","computed":true},"key_opts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_size":{"type":"TypeInt","computed":true},"key_type":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","required":true},"n":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_key_openssh":{"type":"TypeString","computed":true},"public_key_pem":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"resource_versionless_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true},"versionless_id":{"type":"TypeString","computed":true},"x":{"type":"TypeString","computed":true},"y":{"type":"TypeString","computed":true}},"timeouts":{"read":30}},"azurerm_key_vault_managed_hardware_security_module":{"schema":{"admin_object_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"hsm_uri":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"purge_protection_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"soft_delete_retention_days":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_managed_hardware_security_module_key":{"schema":{"curve":{"type":"TypeString","computed":true},"expiration_date":{"type":"TypeString","computed":true},"key_opts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"key_size":{"type":"TypeInt","computed":true},"key_type":{"type":"TypeString","computed":true},"managed_hsm_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"not_before_date":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true},"versioned_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_managed_hardware_security_module_role_definition":{"schema":{"assignable_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","computed":true},"managed_hsm_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"permission":{"type":"TypeList","computed":true,"elem":{"schema":{"actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"data_actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"not_actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"not_data_actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"resource_manager_id":{"type":"TypeString","computed":true},"role_name":{"type":"TypeString","computed":true},"role_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_key_vault_secret":{"schema":{"content_type":{"type":"TypeString","computed":true},"expiration_date":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"not_before_date":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"resource_versionless_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","computed":true},"version":{"type":"TypeString","optional":true},"versionless_id":{"type":"TypeString","computed":true}},"timeouts":{"read":30}},"azurerm_key_vault_secrets":{"schema":{"key_vault_id":{"type":"TypeString","required":true},"names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"secrets":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}}}}},"timeouts":{"read":5}},"azurerm_kubernetes_cluster":{"schema":{"aci_connector_linux":{"type":"TypeList","computed":true,"elem":{"schema":{"subnet_name":{"type":"TypeString","computed":true}}}},"agent_pool_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_scaling_enabled":{"type":"TypeBool","computed":true},"count":{"type":"TypeInt","computed":true},"max_count":{"type":"TypeInt","computed":true},"max_pods":{"type":"TypeInt","computed":true},"min_count":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","computed":true},"node_labels":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"node_public_ip_enabled":{"type":"TypeBool","computed":true},"node_public_ip_prefix_id":{"type":"TypeString","computed":true},"node_taints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"orchestrator_version":{"type":"TypeString","computed":true},"os_disk_size_gb":{"type":"TypeInt","computed":true},"os_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"upgrade_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"drain_timeout_in_minutes":{"type":"TypeInt","computed":true},"max_surge":{"type":"TypeString","computed":true},"node_soak_duration_in_minutes":{"type":"TypeInt","computed":true}}}},"vm_size":{"type":"TypeString","computed":true},"vnet_subnet_id":{"type":"TypeString","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"api_server_authorized_ip_ranges":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"azure_active_directory_role_based_access_control":{"type":"TypeList","computed":true,"elem":{"schema":{"admin_group_object_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"azure_rbac_enabled":{"type":"TypeBool","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}},"azure_policy_enabled":{"type":"TypeBool","computed":true},"current_kubernetes_version":{"type":"TypeString","computed":true},"disk_encryption_set_id":{"type":"TypeString","computed":true},"dns_prefix":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"http_application_routing_enabled":{"type":"TypeBool","computed":true},"http_application_routing_zone_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"ingress_application_gateway":{"type":"TypeList","computed":true,"elem":{"schema":{"effective_gateway_id":{"type":"TypeString","computed":true},"gateway_id":{"type":"TypeString","computed":true},"gateway_name":{"type":"TypeString","computed":true},"ingress_application_gateway_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"subnet_cidr":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"key_management_service":{"type":"TypeList","computed":true,"elem":{"schema":{"key_vault_key_id":{"type":"TypeString","computed":true},"key_vault_network_access":{"type":"TypeString","computed":true}}}},"key_vault_secrets_provider":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"secret_rotation_enabled":{"type":"TypeBool","computed":true},"secret_rotation_interval":{"type":"TypeString","computed":true}}}},"kube_admin_config":{"type":"TypeList","computed":true,"elem":{"schema":{"client_certificate":{"type":"TypeString","computed":true},"client_key":{"type":"TypeString","computed":true},"cluster_ca_certificate":{"type":"TypeString","computed":true},"host":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"kube_admin_config_raw":{"type":"TypeString","computed":true},"kube_config":{"type":"TypeList","computed":true,"elem":{"schema":{"client_certificate":{"type":"TypeString","computed":true},"client_key":{"type":"TypeString","computed":true},"cluster_ca_certificate":{"type":"TypeString","computed":true},"host":{"type":"TypeString","computed":true},"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"kube_config_raw":{"type":"TypeString","computed":true},"kubelet_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}},"kubernetes_version":{"type":"TypeString","computed":true},"linux_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"admin_username":{"type":"TypeString","computed":true},"ssh_key":{"type":"TypeList","computed":true,"elem":{"schema":{"key_data":{"type":"TypeString","computed":true}}}}}}},"location":{"type":"TypeString","computed":true},"microsoft_defender":{"type":"TypeList","computed":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"network_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"dns_service_ip":{"type":"TypeString","computed":true},"docker_bridge_cidr":{"type":"TypeString","computed":true},"load_balancer_sku":{"type":"TypeString","computed":true},"network_plugin":{"type":"TypeString","computed":true},"network_policy":{"type":"TypeString","computed":true},"pod_cidr":{"type":"TypeString","computed":true},"service_cidr":{"type":"TypeString","computed":true}}}},"node_resource_group":{"type":"TypeString","computed":true},"node_resource_group_id":{"type":"TypeString","computed":true},"oidc_issuer_enabled":{"type":"TypeBool","computed":true},"oidc_issuer_url":{"type":"TypeString","computed":true},"oms_agent":{"type":"TypeList","computed":true,"elem":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","computed":true},"msi_auth_for_monitoring_enabled":{"type":"TypeBool","computed":true},"oms_agent_identity":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}}}}}}},"open_service_mesh_enabled":{"type":"TypeBool","computed":true},"private_cluster_enabled":{"type":"TypeBool","computed":true},"private_fqdn":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"role_based_access_control_enabled":{"type":"TypeBool","computed":true},"service_mesh_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"certificate_authority":{"type":"TypeList","computed":true,"elem":{"schema":{"cert_chain_object_name":{"type":"TypeString","computed":true},"cert_object_name":{"type":"TypeString","computed":true},"key_object_name":{"type":"TypeString","computed":true},"key_vault_id":{"type":"TypeString","computed":true},"root_cert_object_name":{"type":"TypeString","computed":true}}}},"external_ingress_gateway_enabled":{"type":"TypeBool","computed":true},"internal_ingress_gateway_enabled":{"type":"TypeBool","computed":true},"mode":{"type":"TypeString","computed":true},"revisions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"service_principal":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","computed":true}}}},"storage_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_driver_enabled":{"type":"TypeBool","computed":true},"disk_driver_enabled":{"type":"TypeBool","computed":true},"file_driver_enabled":{"type":"TypeBool","computed":true},"snapshot_controller_enabled":{"type":"TypeBool","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"windows_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"admin_username":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_kubernetes_cluster_node_pool":{"schema":{"auto_scaling_enabled":{"type":"TypeBool","computed":true},"eviction_policy":{"type":"TypeString","computed":true},"kubernetes_cluster_name":{"type":"TypeString","required":true},"max_count":{"type":"TypeInt","computed":true},"max_pods":{"type":"TypeInt","computed":true},"min_count":{"type":"TypeInt","computed":true},"mode":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"node_count":{"type":"TypeInt","computed":true},"node_labels":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"node_public_ip_enabled":{"type":"TypeBool","computed":true},"node_public_ip_prefix_id":{"type":"TypeString","computed":true},"node_taints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"orchestrator_version":{"type":"TypeString","computed":true},"os_disk_size_gb":{"type":"TypeInt","computed":true},"os_disk_type":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"priority":{"type":"TypeString","computed":true},"proximity_placement_group_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"spot_max_price":{"type":"TypeFloat","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"upgrade_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"drain_timeout_in_minutes":{"type":"TypeInt","computed":true},"max_surge":{"type":"TypeString","computed":true},"node_soak_duration_in_minutes":{"type":"TypeInt","computed":true}}}},"vm_size":{"type":"TypeString","computed":true},"vnet_subnet_id":{"type":"TypeString","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_kubernetes_node_pool_snapshot":{"schema":{"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"source_node_pool_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_kubernetes_service_versions":{"schema":{"default_version":{"type":"TypeString","computed":true},"include_preview":{"type":"TypeBool","optional":true,"default":true},"latest_version":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true,"forceNew":true},"version_prefix":{"type":"TypeString","optional":true},"versions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_kusto_cluster":{"schema":{"data_ingestion_uri":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"uri":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_kusto_database":{"schema":{"cluster_name":{"type":"TypeString","required":true},"hot_cache_period":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"size":{"type":"TypeFloat","computed":true},"soft_delete_period":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_lb":{"schema":{"frontend_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"private_ip_address_version":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_lb_backend_address_pool":{"schema":{"backend_address":{"type":"TypeList","computed":true,"elem":{"schema":{"inbound_nat_rule_port_mapping":{"type":"TypeList","computed":true,"elem":{"schema":{"backend_port":{"type":"TypeInt","computed":true},"frontend_port":{"type":"TypeInt","computed":true},"inbound_nat_rule_name":{"type":"TypeString","computed":true}}}},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"virtual_network_id":{"type":"TypeString","computed":true}}}},"backend_ip_configurations":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true}}}},"inbound_nat_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancing_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"loadbalancer_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"outbound_rules":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_lb_outbound_rule":{"schema":{"allocated_outbound_ports":{"type":"TypeInt","computed":true},"backend_address_pool_id":{"type":"TypeString","computed":true},"frontend_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"loadbalancer_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"protocol":{"type":"TypeString","computed":true},"tcp_reset_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_lb_rule":{"schema":{"backend_address_pool_id":{"type":"TypeString","computed":true},"backend_port":{"type":"TypeInt","computed":true},"disable_outbound_snat":{"type":"TypeBool","computed":true},"enable_floating_ip":{"type":"TypeBool","computed":true},"enable_tcp_reset":{"type":"TypeBool","computed":true},"frontend_ip_configuration_name":{"type":"TypeString","computed":true},"frontend_port":{"type":"TypeInt","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"load_distribution":{"type":"TypeString","computed":true},"loadbalancer_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"probe_id":{"type":"TypeString","computed":true},"protocol":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_linux_function_app":{"schema":{"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"The list of Allowed audience values considered when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret for the Client ID.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true}}}},"additional_login_parameters":{"type":"TypeMap","description":"The map of Login Parameters sent to the OpenID Connect authorization endpoint when a user logs in.","computed":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","description":"The default authentication provider used when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","description":"Is the Authentication / Authorization feature enabled?","computed":true},"facebook":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret":{"type":"TypeString","description":"The App Secret of the Facebook app used for Facebook Login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"github":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret of the GitHub app used for GitHub Login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret":{"type":"TypeString","description":"The client secret associated with the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes that requested as part of Google Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"issuer":{"type":"TypeString","description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens.","computed":true},"microsoft":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret":{"type":"TypeString","description":"The OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"runtime_version":{"type":"TypeString","description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Are platform-specific security tokens that are obtained during login flows durably stored?","computed":true},"twitter":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret":{"type":"TypeString","description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_client_action":{"type":"TypeString","description":"The action taken when an unauthenticated client attempts to access the app.","computed":true}}}},"auth_settings_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret_certificate_thumbprint":{"type":"TypeString","description":"The thumbprint of the certificate used for signing purposes.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true},"jwt_allowed_client_applications":{"type":"TypeList","description":"A list of Allowed Client Applications in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","description":"A list of Allowed Groups in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","description":"The Azure Tenant URI for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`","computed":true},"www_authentication_disabled":{"type":"TypeBool","description":"Is the www-authenticate provider omitted from the request?","computed":true}}}},"apple_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Apple web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Apple Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Apple Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"auth_enabled":{"type":"TypeBool","description":"Is the AuthV2 Settings be enabled.","computed":true},"azure_static_web_app_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with Azure Static Web App Authentication.","computed":true}}}},"config_file_path":{"type":"TypeString","description":"The path to the App Auth settings.","computed":true},"custom_oidc_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`","computed":true},"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with this Custom OIDC.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","description":"The name of the Custom OIDC Authentication Provider.","computed":true},"name_claim_type":{"type":"TypeString","description":"The name of the claim that contains the users name.","computed":true},"openid_configuration_endpoint":{"type":"TypeString","description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider.","computed":true},"scopes":{"type":"TypeList","description":"The list of the scopes that should be requested while authenticating.","computed":true,"elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","description":"The Default Authentication Provider used when the `unauthenticated_action` is set to `RedirectToLoginPage`.","computed":true},"excluded_paths":{"type":"TypeList","description":"The paths which are excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","computed":true,"elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"graph_api_version":{"type":"TypeString","description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"forward_proxy_convention":{"type":"TypeString","description":"The convention used to determine the url of the request made.","computed":true},"forward_proxy_custom_host_header_name":{"type":"TypeString","description":"The name of the header containing the host of the request.","computed":true},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","description":"The name of the header containing the scheme of the request.","computed":true},"github_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"http_route_api_prefix":{"type":"TypeString","description":"The prefix that precedes all the authentication and authorisation paths.","computed":true},"login":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","computed":true,"elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","computed":true},"cookie_expiration_time":{"type":"TypeString","description":"The time after the request is made when the session cookie will expire.","computed":true},"logout_endpoint":{"type":"TypeString","description":"The endpoint to which logout requests are made.","computed":true},"nonce_expiration_time":{"type":"TypeString","description":"The time after the request is made when the nonce will expire.","computed":true},"preserve_url_fragments_for_logins":{"type":"TypeBool","description":"Are the fragments from the request be preserved after the login request is made.","computed":true},"token_refresh_extension_time":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Is the Token Store configuration Enabled.","computed":true},"token_store_path":{"type":"TypeString","description":"The directory path in the App Filesystem in which the tokens are stored.","computed":true},"token_store_sas_setting_name":{"type":"TypeString","description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens.","computed":true},"validate_nonce":{"type":"TypeBool","description":"Is the nonce be validated while completing the login flow.","computed":true}}}},"microsoft_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"require_authentication":{"type":"TypeBool","description":"Is the authentication flow used for all requests.","computed":true},"require_https":{"type":"TypeBool","description":"Is HTTPS required on connections?","computed":true},"runtime_version":{"type":"TypeString","description":"The Runtime Version of the Authentication and Authorisation feature of this App.","computed":true},"twitter_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_action":{"type":"TypeString","computed":true}}}},"availability":{"type":"TypeString","computed":true},"backup":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","description":"Is this backup job enabled?","computed":true},"name":{"type":"TypeString","description":"The name of this Backup.","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","description":"How often the backup should is executed in multiples of the `frequency_unit`.","computed":true},"frequency_unit":{"type":"TypeString","description":"The unit of time for how often the backup takes place.","computed":true},"keep_at_least_one_backup":{"type":"TypeBool","description":"Does the service keep at least one backup, regardless of age of backup.","computed":true},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","description":"After how many days are backups deleted.","computed":true},"start_time":{"type":"TypeString","description":"When the schedule should start working in RFC-3339 format.","computed":true}}}},"storage_account_url":{"type":"TypeString","description":"The SAS URL to the container.","computed":true}}}},"builtin_logging_enabled":{"type":"TypeBool","computed":true},"client_certificate_enabled":{"type":"TypeBool","computed":true},"client_certificate_exclusion_paths":{"type":"TypeString","description":"Paths to exclude when using client certificates, separated by ;","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of this Connection.","computed":true},"type":{"type":"TypeString","description":"The type of database.","computed":true},"value":{"type":"TypeString","description":"The connection string value.","computed":true}}}},"content_share_force_disabled":{"type":"TypeBool","computed":true},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true},"functions_extension_version":{"type":"TypeString","computed":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_plan_id":{"type":"TypeString","computed":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"api_definition_url":{"type":"TypeString","computed":true},"api_management_api_id":{"type":"TypeString","computed":true},"app_command_line":{"type":"TypeString","computed":true},"app_scale_limit":{"type":"TypeInt","computed":true},"app_service_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","computed":true},"retention_period_days":{"type":"TypeInt","computed":true}}}},"application_insights_connection_string":{"type":"TypeString","computed":true},"application_insights_key":{"type":"TypeString","computed":true},"application_stack":{"type":"TypeList","computed":true,"elem":{"schema":{"docker":{"type":"TypeList","computed":true,"elem":{"schema":{"image_name":{"type":"TypeString","computed":true},"image_tag":{"type":"TypeString","computed":true},"registry_password":{"type":"TypeString","computed":true},"registry_url":{"type":"TypeString","computed":true},"registry_username":{"type":"TypeString","computed":true}}}},"dotnet_version":{"type":"TypeString","computed":true},"java_version":{"type":"TypeString","computed":true},"node_version":{"type":"TypeString","computed":true},"powershell_core_version":{"type":"TypeString","computed":true},"python_version":{"type":"TypeString","computed":true},"use_custom_runtime":{"type":"TypeBool","computed":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","computed":true}}}},"container_registry_managed_identity_client_id":{"type":"TypeString","computed":true},"container_registry_use_managed_identity":{"type":"TypeBool","computed":true},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","description":"The list of origins that are allowed to make cross-origin calls.","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","description":"Are credentials allowed in CORS requests?","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"elastic_instance_minimum":{"type":"TypeInt","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_eviction_time_in_min":{"type":"TypeInt","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"ip_restriction_default_action":{"type":"TypeString","computed":true},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"pre_warmed_instance_count":{"type":"TypeInt","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"scm_ip_restriction_default_action":{"type":"TypeString","optional":true,"default":"Allow"},"scm_minimum_tls_version":{"type":"TypeString","computed":true},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"worker_count":{"type":"TypeInt","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connection_string_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"storage_account_access_key":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","computed":true},"storage_key_vault_secret_id":{"type":"TypeString","description":"The Key Vault Secret ID, including version, that contains the Connection String used to connect to the storage account for this Function App.","computed":true},"storage_uses_managed_identity":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"usage":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":25}},"azurerm_linux_web_app":{"schema":{"app_metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"The list of Allowed audience values considered when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret for the Client ID.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true}}}},"additional_login_parameters":{"type":"TypeMap","description":"The map of Login Parameters sent to the OpenID Connect authorization endpoint when a user logs in.","computed":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","description":"The default authentication provider used when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","description":"Is the Authentication / Authorization feature enabled?","computed":true},"facebook":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret":{"type":"TypeString","description":"The App Secret of the Facebook app used for Facebook Login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"github":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret of the GitHub app used for GitHub Login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret":{"type":"TypeString","description":"The client secret associated with the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes that requested as part of Google Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"issuer":{"type":"TypeString","description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens.","computed":true},"microsoft":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret":{"type":"TypeString","description":"The OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"runtime_version":{"type":"TypeString","description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Are platform-specific security tokens that are obtained during login flows durably stored?","computed":true},"twitter":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret":{"type":"TypeString","description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_client_action":{"type":"TypeString","description":"The action taken when an unauthenticated client attempts to access the app.","computed":true}}}},"auth_settings_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret_certificate_thumbprint":{"type":"TypeString","description":"The thumbprint of the certificate used for signing purposes.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true},"jwt_allowed_client_applications":{"type":"TypeList","description":"A list of Allowed Client Applications in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","description":"A list of Allowed Groups in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","description":"The Azure Tenant URI for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`","computed":true},"www_authentication_disabled":{"type":"TypeBool","description":"Is the www-authenticate provider omitted from the request?","computed":true}}}},"apple_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Apple web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Apple Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Apple Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"auth_enabled":{"type":"TypeBool","description":"Is the AuthV2 Settings be enabled.","computed":true},"azure_static_web_app_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with Azure Static Web App Authentication.","computed":true}}}},"config_file_path":{"type":"TypeString","description":"The path to the App Auth settings.","computed":true},"custom_oidc_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`","computed":true},"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with this Custom OIDC.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","description":"The name of the Custom OIDC Authentication Provider.","computed":true},"name_claim_type":{"type":"TypeString","description":"The name of the claim that contains the users name.","computed":true},"openid_configuration_endpoint":{"type":"TypeString","description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider.","computed":true},"scopes":{"type":"TypeList","description":"The list of the scopes that should be requested while authenticating.","computed":true,"elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","description":"The Default Authentication Provider used when the `unauthenticated_action` is set to `RedirectToLoginPage`.","computed":true},"excluded_paths":{"type":"TypeList","description":"The paths which are excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","computed":true,"elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"graph_api_version":{"type":"TypeString","description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"forward_proxy_convention":{"type":"TypeString","description":"The convention used to determine the url of the request made.","computed":true},"forward_proxy_custom_host_header_name":{"type":"TypeString","description":"The name of the header containing the host of the request.","computed":true},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","description":"The name of the header containing the scheme of the request.","computed":true},"github_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"http_route_api_prefix":{"type":"TypeString","description":"The prefix that precedes all the authentication and authorisation paths.","computed":true},"login":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","computed":true,"elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","computed":true},"cookie_expiration_time":{"type":"TypeString","description":"The time after the request is made when the session cookie will expire.","computed":true},"logout_endpoint":{"type":"TypeString","description":"The endpoint to which logout requests are made.","computed":true},"nonce_expiration_time":{"type":"TypeString","description":"The time after the request is made when the nonce will expire.","computed":true},"preserve_url_fragments_for_logins":{"type":"TypeBool","description":"Are the fragments from the request be preserved after the login request is made.","computed":true},"token_refresh_extension_time":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Is the Token Store configuration Enabled.","computed":true},"token_store_path":{"type":"TypeString","description":"The directory path in the App Filesystem in which the tokens are stored.","computed":true},"token_store_sas_setting_name":{"type":"TypeString","description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens.","computed":true},"validate_nonce":{"type":"TypeBool","description":"Is the nonce be validated while completing the login flow.","computed":true}}}},"microsoft_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"require_authentication":{"type":"TypeBool","description":"Is the authentication flow used for all requests.","computed":true},"require_https":{"type":"TypeBool","description":"Is HTTPS required on connections?","computed":true},"runtime_version":{"type":"TypeString","description":"The Runtime Version of the Authentication and Authorisation feature of this App.","computed":true},"twitter_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_action":{"type":"TypeString","computed":true}}}},"availability":{"type":"TypeString","computed":true},"backup":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","description":"Is this backup job enabled?","computed":true},"name":{"type":"TypeString","description":"The name of this Backup.","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","description":"How often the backup should is executed in multiples of the `frequency_unit`.","computed":true},"frequency_unit":{"type":"TypeString","description":"The unit of time for how often the backup takes place.","computed":true},"keep_at_least_one_backup":{"type":"TypeBool","description":"Does the service keep at least one backup, regardless of age of backup.","computed":true},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","description":"After how many days are backups deleted.","computed":true},"start_time":{"type":"TypeString","description":"When the schedule should start working in RFC-3339 format.","computed":true}}}},"storage_account_url":{"type":"TypeString","description":"The SAS URL to the container.","computed":true}}}},"client_affinity_enabled":{"type":"TypeBool","computed":true},"client_certificate_enabled":{"type":"TypeBool","computed":true},"client_certificate_exclusion_paths":{"type":"TypeString","description":"Paths to exclude when using client certificates, separated by ;","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of this Connection.","computed":true},"type":{"type":"TypeString","description":"The type of database.","computed":true},"value":{"type":"TypeString","description":"The connection string value.","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"key_vault_reference_identity_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","computed":true,"elem":{"schema":{"application_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","computed":true,"elem":{"schema":{"level":{"type":"TypeString","computed":true},"retention_in_days":{"type":"TypeInt","computed":true},"sas_url":{"type":"TypeString","computed":true}}}},"file_system_level":{"type":"TypeString","computed":true}}}},"detailed_error_messages":{"type":"TypeBool","computed":true},"failed_request_tracing":{"type":"TypeBool","computed":true},"http_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","computed":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","computed":true},"sas_url":{"type":"TypeString","computed":true}}}},"file_system":{"type":"TypeList","computed":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","computed":true},"retention_in_mb":{"type":"TypeInt","computed":true}}}}}}}}}},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_plan_id":{"type":"TypeString","computed":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"api_definition_url":{"type":"TypeString","computed":true},"api_management_api_id":{"type":"TypeString","computed":true},"app_command_line":{"type":"TypeString","computed":true},"application_stack":{"type":"TypeList","computed":true,"elem":{"schema":{"docker_image_name":{"type":"TypeString","computed":true},"docker_registry_password":{"type":"TypeString","computed":true},"docker_registry_url":{"type":"TypeString","computed":true},"docker_registry_username":{"type":"TypeString","computed":true},"dotnet_version":{"type":"TypeString","computed":true},"go_version":{"type":"TypeString","computed":true},"java_server":{"type":"TypeString","computed":true},"java_server_version":{"type":"TypeString","computed":true},"java_version":{"type":"TypeString","computed":true},"node_version":{"type":"TypeString","computed":true},"php_version":{"type":"TypeString","computed":true},"python_version":{"type":"TypeString","computed":true},"ruby_version":{"type":"TypeString","computed":true}}}},"auto_heal_setting":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeList","computed":true,"elem":{"schema":{"action_type":{"type":"TypeString","computed":true},"minimum_process_execution_time":{"type":"TypeString","computed":true}}}},"trigger":{"type":"TypeList","computed":true,"elem":{"schema":{"requests":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true}}}},"slow_request":{"type":"TypeList","optional":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"time_taken":{"type":"TypeString","computed":true}}}},"slow_request_with_path":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"time_taken":{"type":"TypeString","computed":true}}}},"status_code":{"type":"TypeSet","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"status_code_range":{"type":"TypeString","computed":true},"sub_status":{"type":"TypeInt","computed":true},"win32_status_code":{"type":"TypeInt","computed":true}}}}}}}}}},"container_registry_managed_identity_client_id":{"type":"TypeString","computed":true},"container_registry_use_managed_identity":{"type":"TypeBool","computed":true},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","description":"The list of origins that are allowed to make cross-origin calls.","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","description":"Are credentials allowed in CORS requests?","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_eviction_time_in_min":{"type":"TypeInt","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"ip_restriction_default_action":{"type":"TypeString","computed":true},"linux_fx_version":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","computed":true},"local_mysql_enabled":{"type":"TypeBool","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"scm_ip_restriction_default_action":{"type":"TypeString","computed":true},"scm_minimum_tls_version":{"type":"TypeString","computed":true},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"worker_count":{"type":"TypeInt","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connection_string_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"storage_account":{"type":"TypeList","computed":true,"elem":{"schema":{"access_key":{"type":"TypeString","computed":true},"account_name":{"type":"TypeString","computed":true},"mount_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"share_name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"usage":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_load_test":{"schema":{"data_plane_uri":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"encryption":{"type":"TypeList","computed":true,"elem":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"key_url":{"type":"TypeString","computed":true}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_local_network_gateway":{"schema":{"address_space":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"bgp_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","required":true},"bgp_peering_address":{"type":"TypeString","required":true},"peer_weight":{"type":"TypeInt","computed":true}}}},"gateway_address":{"type":"TypeString","computed":true},"gateway_fqdn":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_location":{"schema":{"display_name":{"type":"TypeString","computed":true},"location":{"type":"TypeString","required":true},"zone_mappings":{"type":"TypeList","computed":true,"elem":{"schema":{"logical_zone":{"type":"TypeString","computed":true},"physical_zone":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_log_analytics_workspace":{"schema":{"daily_quota_gb":{"type":"TypeFloat","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_shared_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"retention_in_days":{"type":"TypeInt","computed":true},"secondary_shared_key":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_logic_app_integration_account":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_logic_app_standard":{"schema":{"app_service_plan_id":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"bundle_version":{"type":"TypeString","computed":true},"client_affinity_enabled":{"type":"TypeBool","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"site_config":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","optional":true,"default":false},"app_scale_limit":{"type":"TypeInt","optional":true,"computed":true},"auto_swap_slot_name":{"type":"TypeString","computed":true},"cors":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeSet","required":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"dotnet_framework_version":{"type":"TypeString","optional":true,"default":"v4.0"},"elastic_instance_minimum":{"type":"TypeInt","optional":true,"computed":true},"ftps_state":{"type":"TypeString","optional":true,"computed":true},"health_check_path":{"type":"TypeString","optional":true},"http2_enabled":{"type":"TypeBool","optional":true,"default":false},"ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"linux_fx_version":{"type":"TypeString","optional":true,"computed":true},"min_tls_version":{"type":"TypeString","optional":true,"computed":true},"pre_warmed_instance_count":{"type":"TypeInt","optional":true,"computed":true},"public_network_access_enabled":{"type":"TypeBool","optional":true,"default":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","optional":true,"default":false},"scm_ip_restriction":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","optional":true,"default":"Allow"},"headers":{"type":"TypeList","configMode":"Auto","optional":true,"computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_fd_health_probe":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":1},"x_forwarded_for":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8},"x_forwarded_host":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"},"maxItems":8}}},"maxItems":1},"ip_address":{"type":"TypeString","optional":true},"name":{"type":"TypeString","optional":true,"computed":true},"priority":{"type":"TypeInt","optional":true,"default":65000},"service_tag":{"type":"TypeString","optional":true},"virtual_network_subnet_id":{"type":"TypeString","optional":true}}}},"scm_min_tls_version":{"type":"TypeString","optional":true,"computed":true},"scm_type":{"type":"TypeString","optional":true,"computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","optional":true,"default":false},"use_32_bit_worker_process":{"type":"TypeBool","optional":true,"default":true},"vnet_route_all_enabled":{"type":"TypeBool","optional":true,"computed":true},"websockets_enabled":{"type":"TypeBool","optional":true,"default":false}}},"maxItems":1},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"storage_account_access_key":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","computed":true},"storage_account_share_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"use_extension_bundle":{"type":"TypeBool","computed":true},"version":{"type":"TypeString","computed":true},"virtual_network_subnet_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_logic_app_workflow":{"schema":{"access_endpoint":{"type":"TypeString","computed":true},"connector_endpoint_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connector_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"logic_app_integration_account_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"workflow_endpoint_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"workflow_outbound_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"workflow_schema":{"type":"TypeString","computed":true},"workflow_version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_machine_learning_workspace":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_maintenance_configuration":{"schema":{"in_guest_user_patch_mode":{"type":"TypeString","computed":true},"install_patches":{"type":"TypeList","computed":true,"elem":{"schema":{"linux":{"type":"TypeList","computed":true,"elem":{"schema":{"classifications_to_include":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"package_names_mask_to_exclude":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"package_names_mask_to_include":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"reboot":{"type":"TypeString","computed":true},"windows":{"type":"TypeList","computed":true,"elem":{"schema":{"classifications_to_include":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"kb_numbers_to_exclude":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"kb_numbers_to_include":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"properties":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"scope":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"visibility":{"type":"TypeString","computed":true},"window":{"type":"TypeList","computed":true,"elem":{"schema":{"duration":{"type":"TypeString","computed":true},"expiration_date_time":{"type":"TypeString","computed":true},"recur_every":{"type":"TypeString","computed":true},"start_date_time":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_managed_api":{"schema":{"location":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_managed_application_definition":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_managed_disk":{"schema":{"create_option":{"type":"TypeString","computed":true},"disk_access_id":{"type":"TypeString","computed":true},"disk_encryption_set_id":{"type":"TypeString","computed":true},"disk_iops_read_write":{"type":"TypeInt","computed":true},"disk_mbps_read_write":{"type":"TypeInt","computed":true},"disk_size_gb":{"type":"TypeInt","computed":true},"encryption_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_url":{"type":"TypeString","computed":true},"source_vault_id":{"type":"TypeString","computed":true}}}},"enabled":{"type":"TypeBool","computed":true},"key_encryption_key":{"type":"TypeList","computed":true,"elem":{"schema":{"key_url":{"type":"TypeString","computed":true},"source_vault_id":{"type":"TypeString","computed":true}}}}}}},"image_reference_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_access_policy":{"type":"TypeString","computed":true},"os_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"source_resource_id":{"type":"TypeString","computed":true},"source_uri":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true},"storage_account_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_management_group":{"schema":{"all_management_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"all_subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"display_name":{"type":"TypeString","optional":true,"computed":true},"management_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","optional":true,"computed":true},"parent_management_group_id":{"type":"TypeString","computed":true},"subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tenant_scoped_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_management_group_template_deployment":{"schema":{"management_group_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"output_content":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_maps_account":{"schema":{"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"x_ms_client_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_marketplace_agreement":{"schema":{"license_text_link":{"type":"TypeString","computed":true},"offer":{"type":"TypeString","required":true},"plan":{"type":"TypeString","required":true},"privacy_policy_link":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_mobile_network":{"schema":{"location":{"type":"TypeString","computed":true},"mobile_country_code":{"type":"TypeString","computed":true},"mobile_network_code":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"service_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_attached_data_network":{"schema":{"dns_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"mobile_network_data_network_name":{"type":"TypeString","required":true},"mobile_network_packet_core_data_plane_id":{"type":"TypeString","required":true},"network_address_port_translation":{"type":"TypeList","computed":true,"elem":{"schema":{"icmp_pinhole_timeout_in_seconds":{"type":"TypeInt","computed":true},"pinhole_maximum_number":{"type":"TypeInt","optional":true},"port_range":{"type":"TypeList","computed":true,"elem":{"schema":{"maximum":{"type":"TypeInt","computed":true},"minimum":{"type":"TypeInt","computed":true}}}},"tcp_pinhole_timeout_in_seconds":{"type":"TypeInt","computed":true},"tcp_port_reuse_minimum_hold_time_in_seconds":{"type":"TypeInt","computed":true},"udp_pinhole_timeout_in_seconds":{"type":"TypeInt","computed":true},"udp_port_reuse_minimum_hold_time_in_seconds":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"user_equipment_address_pool_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"user_equipment_static_address_pool_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"user_plane_access_ipv4_address":{"type":"TypeString","computed":true},"user_plane_access_ipv4_gateway":{"type":"TypeString","computed":true},"user_plane_access_ipv4_subnet":{"type":"TypeString","computed":true},"user_plane_access_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_mobile_network_data_network":{"schema":{"description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_packet_core_control_plane":{"schema":{"control_plane_access_ipv4_address":{"type":"TypeString","computed":true},"control_plane_access_ipv4_gateway":{"type":"TypeString","computed":true},"control_plane_access_ipv4_subnet":{"type":"TypeString","computed":true},"control_plane_access_name":{"type":"TypeString","computed":true},"core_network_technology":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}}}},"interoperability_settings_json":{"type":"TypeString","computed":true},"local_diagnostics_access":{"type":"TypeList","computed":true,"elem":{"schema":{"authentication_type":{"type":"TypeString","computed":true},"https_server_certificate_url":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"platform":{"type":"TypeList","computed":true,"elem":{"schema":{"arc_kubernetes_cluster_id":{"type":"TypeString","computed":true},"custom_location_id":{"type":"TypeString","computed":true},"edge_device_id":{"type":"TypeString","computed":true},"stack_hci_cluster_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"site_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"sku":{"type":"TypeString","computed":true},"software_version":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"user_equipment_mtu_in_bytes":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_mobile_network_packet_core_data_plane":{"schema":{"location":{"type":"TypeString","computed":true},"mobile_network_packet_core_control_plane_id":{"type":"TypeString","required":true,"forceNew":true},"name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"user_plane_access_ipv4_address":{"type":"TypeString","computed":true},"user_plane_access_ipv4_gateway":{"type":"TypeString","computed":true},"user_plane_access_ipv4_subnet":{"type":"TypeString","computed":true},"user_plane_access_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_mobile_network_service":{"schema":{"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"pcc_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"precedence":{"type":"TypeInt","computed":true},"qos_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"allocation_and_retention_priority_level":{"type":"TypeInt","computed":true},"guaranteed_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}},"maximum_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}},"preemption_capability":{"type":"TypeString","computed":true},"preemption_vulnerability":{"type":"TypeString","computed":true},"qos_indicator":{"type":"TypeInt","computed":true}}}},"service_data_flow_template":{"type":"TypeList","computed":true,"elem":{"schema":{"direction":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"ports":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"protocol":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"remote_ip_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"traffic_control_enabled":{"type":"TypeBool","computed":true}}}},"service_precedence":{"type":"TypeInt","computed":true},"service_qos_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"allocation_and_retention_priority_level":{"type":"TypeInt","computed":true},"maximum_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}},"preemption_capability":{"type":"TypeString","computed":true},"preemption_vulnerability":{"type":"TypeString","computed":true},"qos_indicator":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_sim":{"schema":{"device_type":{"type":"TypeString","computed":true},"integrated_circuit_card_identifier":{"type":"TypeString","computed":true},"international_mobile_subscriber_identity":{"type":"TypeString","computed":true},"mobile_network_sim_group_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"sim_policy_id":{"type":"TypeString","computed":true},"sim_state":{"type":"TypeString","computed":true},"static_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"attached_data_network_id":{"type":"TypeString","computed":true},"slice_id":{"type":"TypeString","computed":true},"static_ipv4_address":{"type":"TypeString","computed":true}}}},"vendor_key_fingerprint":{"type":"TypeString","computed":true},"vendor_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_mobile_network_sim_group":{"schema":{"encryption_key_url":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_sim_policy":{"schema":{"default_slice_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"rat_frequency_selection_priority_index":{"type":"TypeInt","computed":true},"registration_timer_in_seconds":{"type":"TypeInt","computed":true},"slice":{"type":"TypeList","computed":true,"elem":{"schema":{"data_network":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_allowed_session_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allocation_and_retention_priority_level":{"type":"TypeInt","computed":true},"allowed_services_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"data_network_id":{"type":"TypeString","computed":true},"default_session_type":{"type":"TypeString","computed":true},"max_buffered_packets":{"type":"TypeInt","computed":true},"preemption_capability":{"type":"TypeString","computed":true},"preemption_vulnerability":{"type":"TypeString","computed":true},"qos_indicator":{"type":"TypeInt","computed":true},"session_aggregate_maximum_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}}}}},"default_data_network_id":{"type":"TypeString","computed":true},"slice_id":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"user_equipment_aggregate_maximum_bit_rate":{"type":"TypeList","computed":true,"elem":{"schema":{"downlink":{"type":"TypeString","computed":true},"uplink":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_mobile_network_site":{"schema":{"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"network_function_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mobile_network_slice":{"schema":{"description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"mobile_network_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"single_network_slice_selection_assistance_information":{"type":"TypeList","computed":true,"elem":{"schema":{"slice_differentiator":{"type":"TypeString","computed":true},"slice_service_type":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_monitor_action_group":{"schema":{"arm_role_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"role_id":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}},"automation_runbook_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"automation_account_id":{"type":"TypeString","computed":true},"is_global_runbook":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"runbook_name":{"type":"TypeString","computed":true},"service_uri":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true},"webhook_resource_id":{"type":"TypeString","computed":true}}}},"azure_app_push_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"email_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"azure_function_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"function_app_resource_id":{"type":"TypeString","computed":true},"function_name":{"type":"TypeString","computed":true},"http_trigger_url":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}},"email_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"email_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}},"enabled":{"type":"TypeBool","computed":true},"event_hub_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"event_hub_name":{"type":"TypeString","required":true},"event_hub_namespace":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true},"tenant_id":{"type":"TypeString","optional":true,"computed":true},"use_common_alert_schema":{"type":"TypeBool","optional":true}}}},"itsm_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"connection_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"region":{"type":"TypeString","computed":true},"ticket_configuration":{"type":"TypeString","computed":true},"workspace_id":{"type":"TypeString","computed":true}}}},"logic_app_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"callback_url":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"resource_id":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"short_name":{"type":"TypeString","computed":true},"sms_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"country_code":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"phone_number":{"type":"TypeString","computed":true}}}},"voice_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"country_code":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"phone_number":{"type":"TypeString","computed":true}}}},"webhook_receiver":{"type":"TypeList","computed":true,"elem":{"schema":{"aad_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"identifier_uri":{"type":"TypeString","computed":true},"object_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"service_uri":{"type":"TypeString","computed":true},"use_common_alert_schema":{"type":"TypeBool","computed":true}}}}},"timeouts":{"read":5}},"azurerm_monitor_data_collection_endpoint":{"schema":{"configuration_access_endpoint":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"immutable_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logs_ingestion_endpoint":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_monitor_data_collection_rule":{"schema":{"data_collection_endpoint_id":{"type":"TypeString","computed":true},"data_flow":{"type":"TypeList","computed":true,"elem":{"schema":{"built_in_transform":{"type":"TypeString","computed":true},"destinations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"output_stream":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"transform_kql":{"type":"TypeString","computed":true}}}},"data_sources":{"type":"TypeList","computed":true,"elem":{"schema":{"data_import":{"type":"TypeList","computed":true,"elem":{"schema":{"event_hub_data_source":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_group":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"stream":{"type":"TypeString","computed":true}}}}}}},"extension":{"type":"TypeList","computed":true,"elem":{"schema":{"extension_json":{"type":"TypeString","computed":true},"extension_name":{"type":"TypeString","computed":true},"input_data_sources":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"iis_log":{"type":"TypeList","computed":true,"elem":{"schema":{"log_directories":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"log_file":{"type":"TypeList","optional":true,"elem":{"schema":{"file_patterns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"format":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"settings":{"type":"TypeList","computed":true,"elem":{"schema":{"text":{"type":"TypeList","computed":true,"elem":{"schema":{"record_start_timestamp_format":{"type":"TypeString","computed":true}}}}}}},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"performance_counter":{"type":"TypeList","computed":true,"elem":{"schema":{"counter_specifiers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"sampling_frequency_in_seconds":{"type":"TypeInt","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"platform_telemetry":{"type":"TypeList","optional":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"prometheus_forwarder":{"type":"TypeList","computed":true,"elem":{"schema":{"label_include_filter":{"type":"TypeList","computed":true,"elem":{"schema":{"label":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"syslog":{"type":"TypeList","computed":true,"elem":{"schema":{"facility_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"log_levels":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"windows_event_log":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"x_path_queries":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"windows_firewall_log":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"streams":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}}}}},"description":{"type":"TypeString","computed":true},"destinations":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_monitor_metrics":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"event_hub":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}},"maxItems":1},"event_hub_direct":{"type":"TypeList","optional":true,"elem":{"schema":{"event_hub_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}},"maxItems":1},"log_analytics":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"workspace_resource_id":{"type":"TypeString","computed":true}}}},"monitor_account":{"type":"TypeList","computed":true,"elem":{"schema":{"monitor_account_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"storage_blob":{"type":"TypeList","computed":true,"elem":{"schema":{"container_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true}}}},"storage_blob_direct":{"type":"TypeList","computed":true,"elem":{"schema":{"container_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true}}}},"storage_table_direct":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true},"table_name":{"type":"TypeString","computed":true}}}}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"immutable_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"stream_declaration":{"type":"TypeList","computed":true,"elem":{"schema":{"column":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"stream_name":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_monitor_diagnostic_categories":{"schema":{"log_category_groups":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"log_category_types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"metrics":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_monitor_scheduled_query_rules_alert":{"schema":{"action":{"type":"TypeSet","computed":true,"elem":{"schema":{"action_group":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"custom_webhook_payload":{"type":"TypeString","computed":true},"email_subject":{"type":"TypeString","computed":true}}}},"authorized_resource_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"data_source_id":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"frequency":{"type":"TypeInt","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"query":{"type":"TypeString","computed":true},"query_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"severity":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"throttling":{"type":"TypeInt","computed":true},"time_window":{"type":"TypeInt","computed":true},"trigger":{"type":"TypeSet","computed":true,"elem":{"schema":{"metric_trigger":{"type":"TypeSet","computed":true,"elem":{"schema":{"metric_column":{"type":"TypeString","computed":true},"metric_trigger_type":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"threshold":{"type":"TypeFloat","computed":true}}}},"operator":{"type":"TypeString","computed":true},"threshold":{"type":"TypeFloat","computed":true}}}}},"timeouts":{"read":5}},"azurerm_monitor_scheduled_query_rules_log":{"schema":{"authorized_resource_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"criteria":{"type":"TypeSet","computed":true,"elem":{"schema":{"dimension":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operator":{"type":"TypeString","computed":true},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"metric_name":{"type":"TypeString","computed":true}}}},"data_source_id":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_monitor_workspace":{"schema":{"default_data_collection_endpoint_id":{"type":"TypeString","computed":true},"default_data_collection_rule_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"query_endpoint":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_mssql_database":{"schema":{"collation":{"type":"TypeString","computed":true},"elastic_pool_id":{"type":"TypeString","computed":true},"enclave_type":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}}}},"license_type":{"type":"TypeString","computed":true},"max_size_gb":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"read_replica_count":{"type":"TypeInt","computed":true},"read_scale":{"type":"TypeBool","computed":true},"server_id":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"storage_account_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"transparent_data_encryption_enabled":{"type":"TypeBool","computed":true},"transparent_data_encryption_key_automatic_rotation_enabled":{"type":"TypeBool","computed":true},"transparent_data_encryption_key_vault_key_id":{"type":"TypeString","computed":true},"zone_redundant":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_mssql_elasticpool":{"schema":{"enclave_type":{"type":"TypeString","computed":true},"license_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"max_size_bytes":{"type":"TypeInt","computed":true},"max_size_gb":{"type":"TypeFloat","computed":true},"name":{"type":"TypeString","required":true},"per_db_max_capacity":{"type":"TypeInt","computed":true},"per_db_min_capacity":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"server_name":{"type":"TypeString","required":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity":{"type":"TypeInt","computed":true},"family":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"tier":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zone_redundant":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_mssql_managed_instance":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"collation":{"type":"TypeString","computed":true},"customer_managed_key_id":{"type":"TypeString","computed":true},"dns_zone":{"type":"TypeString","computed":true},"dns_zone_partner_id":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"license_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"proxy_override":{"type":"TypeString","computed":true},"public_data_endpoint_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"storage_account_type":{"type":"TypeString","computed":true},"storage_size_in_gb":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"timezone_id":{"type":"TypeString","computed":true},"vcores":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_mssql_server":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"fully_qualified_domain_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"restorable_dropped_database_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"transparent_data_encryption_key_vault_key_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_mysql_flexible_server":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"backup_retention_days":{"type":"TypeInt","computed":true},"delegated_subnet_id":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"geo_redundant_backup_enabled":{"type":"TypeBool","computed":true},"high_availability":{"type":"TypeList","computed":true,"elem":{"schema":{"mode":{"type":"TypeString","computed":true},"standby_availability_zone":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"maintenance_window":{"type":"TypeList","computed":true,"elem":{"schema":{"day_of_week":{"type":"TypeInt","computed":true},"start_hour":{"type":"TypeInt","computed":true},"start_minute":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"private_dns_zone_id":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"replica_capacity":{"type":"TypeInt","computed":true},"replication_role":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"restore_point_in_time":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"storage":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_grow_enabled":{"type":"TypeBool","computed":true},"io_scaling_enabled":{"type":"TypeBool","computed":true},"iops":{"type":"TypeInt","computed":true},"size_gb":{"type":"TypeInt","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true},"zone":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_nat_gateway":{"schema":{"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_ip_address_ids":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"public_ip_prefix_ids":{"type":"TypeList","optional":true,"computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"resource_guid":{"type":"TypeString","computed":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_netapp_account":{"schema":{"identity":{"type":"TypeList","optional":true,"elem":{"schema":{"identity_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}}},"maxItems":1},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_netapp_account_encryption":{"schema":{"encryption_key":{"type":"TypeString","computed":true},"netapp_account_id":{"type":"TypeString","required":true,"description":"The ID of the NetApp Account where encryption will be set."},"system_assigned_identity_principal_id":{"type":"TypeString","computed":true},"user_assigned_identity_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_netapp_backup_policy":{"schema":{"account_name":{"type":"TypeString","required":true},"daily_backups_to_keep":{"type":"TypeInt","computed":true},"enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"monthly_backups_to_keep":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"weekly_backups_to_keep":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_netapp_backup_vault":{"schema":{"account_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_netapp_pool":{"schema":{"account_name":{"type":"TypeString","required":true},"encryption_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"service_level":{"type":"TypeString","computed":true},"size_in_tb":{"type":"TypeInt","computed":true}},"timeouts":{"read":5}},"azurerm_netapp_snapshot":{"schema":{"account_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"pool_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"volume_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_netapp_snapshot_policy":{"schema":{"account_name":{"type":"TypeString","required":true},"daily_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"hour":{"type":"TypeInt","computed":true},"minute":{"type":"TypeInt","computed":true},"snapshots_to_keep":{"type":"TypeInt","computed":true}}}},"enabled":{"type":"TypeBool","computed":true},"hourly_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"minute":{"type":"TypeInt","computed":true},"snapshots_to_keep":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"monthly_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"days_of_month":{"type":"TypeSet","computed":true,"elem":{"type":"TypeInt"}},"hour":{"type":"TypeInt","computed":true},"minute":{"type":"TypeInt","computed":true},"snapshots_to_keep":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"weekly_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"days_of_week":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"hour":{"type":"TypeInt","computed":true},"minute":{"type":"TypeInt","computed":true},"snapshots_to_keep":{"type":"TypeInt","computed":true}}}}},"timeouts":{"read":5}},"azurerm_netapp_volume":{"schema":{"account_name":{"type":"TypeString","required":true},"data_protection_backup_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"backup_policy_id":{"type":"TypeString","computed":true},"backup_vault_id":{"type":"TypeString","computed":true},"policy_enabled":{"type":"TypeBool","computed":true}}}},"data_protection_replication":{"type":"TypeList","computed":true,"elem":{"schema":{"endpoint_type":{"type":"TypeString","computed":true},"remote_volume_location":{"type":"TypeString","computed":true},"remote_volume_resource_id":{"type":"TypeString","computed":true},"replication_frequency":{"type":"TypeString","computed":true}}}},"encryption_key_source":{"type":"TypeString","computed":true},"key_vault_private_endpoint_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"mount_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"network_features":{"type":"TypeString","computed":true},"pool_name":{"type":"TypeString","required":true},"protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"security_style":{"type":"TypeString","optional":true},"service_level":{"type":"TypeString","computed":true},"smb_access_based_enumeration_enabled":{"type":"TypeBool","computed":true},"smb_non_browsable_enabled":{"type":"TypeBool","computed":true},"storage_quota_in_gb":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"volume_path":{"type":"TypeString","computed":true},"zone":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_netapp_volume_group_sap_hana":{"schema":{"account_name":{"type":"TypeString","required":true},"application_identifier":{"type":"TypeString","computed":true},"group_description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"volume":{"type":"TypeList","computed":true,"elem":{"schema":{"capacity_pool_id":{"type":"TypeString","computed":true},"data_protection_replication":{"type":"TypeList","computed":true,"elem":{"schema":{"endpoint_type":{"type":"TypeString","computed":true},"remote_volume_location":{"type":"TypeString","computed":true},"remote_volume_resource_id":{"type":"TypeString","computed":true},"replication_frequency":{"type":"TypeString","computed":true}}}},"data_protection_snapshot_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"snapshot_policy_id":{"type":"TypeString","computed":true}}}},"export_policy_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_clients":{"type":"TypeString","computed":true},"nfsv3_enabled":{"type":"TypeBool","computed":true},"nfsv41_enabled":{"type":"TypeBool","computed":true},"root_access_enabled":{"type":"TypeBool","computed":true},"rule_index":{"type":"TypeInt","computed":true},"unix_read_only":{"type":"TypeBool","computed":true},"unix_read_write":{"type":"TypeBool","computed":true}}}},"id":{"type":"TypeString","computed":true},"mount_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"protocols":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"proximity_placement_group_id":{"type":"TypeString","computed":true},"security_style":{"type":"TypeString","computed":true},"service_level":{"type":"TypeString","computed":true},"snapshot_directory_visible":{"type":"TypeBool","computed":true},"storage_quota_in_gb":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"throughput_in_mibps":{"type":"TypeFloat","required":true},"volume_path":{"type":"TypeString","computed":true},"volume_spec_name":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_netapp_volume_quota_rule":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"quota_size_in_kib":{"type":"TypeInt","computed":true},"quota_target":{"type":"TypeString","computed":true},"quota_type":{"type":"TypeString","computed":true},"volume_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"read":5}},"azurerm_network_ddos_protection_plan":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_network_interface":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","computed":true},"applied_dns_servers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"internal_dns_name_label":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"application_gateway_backend_address_pools_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"gateway_load_balancer_frontend_ip_configuration_id":{"type":"TypeString","computed":true},"load_balancer_backend_address_pools_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"private_ip_address_version":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"ip_forwarding_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"mac_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_security_group_id":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_network_manager":{"schema":{"cross_tenant_scopes":{"type":"TypeList","computed":true,"elem":{"schema":{"management_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"subscriptions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}}}},"description":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"scope":{"type":"TypeList","computed":true,"elem":{"schema":{"management_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"scope_accesses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_network_manager_connectivity_configuration":{"schema":{"applies_to_group":{"type":"TypeList","computed":true,"elem":{"schema":{"global_mesh_enabled":{"type":"TypeBool","computed":true},"group_connectivity":{"type":"TypeString","computed":true},"network_group_id":{"type":"TypeString","computed":true},"use_hub_gateway":{"type":"TypeBool","computed":true}}}},"connectivity_topology":{"type":"TypeString","computed":true},"delete_existing_peering_enabled":{"type":"TypeBool","computed":true},"description":{"type":"TypeString","computed":true},"global_mesh_enabled":{"type":"TypeBool","computed":true},"hub":{"type":"TypeList","computed":true,"elem":{"schema":{"resource_id":{"type":"TypeString","computed":true},"resource_type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"network_manager_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_network_manager_network_group":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_manager_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_network_security_group":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"security_rule":{"type":"TypeList","computed":true,"elem":{"schema":{"access":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"destination_address_prefix":{"type":"TypeString","computed":true},"destination_address_prefixes":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"destination_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"destination_port_range":{"type":"TypeString","computed":true},"destination_port_ranges":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"direction":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"priority":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true},"source_address_prefix":{"type":"TypeString","computed":true},"source_address_prefixes":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"source_application_security_group_ids":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"source_port_range":{"type":"TypeString","computed":true},"source_port_ranges":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_network_service_tags":{"schema":{"address_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ipv4_cidrs":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ipv6_cidrs":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","required":true,"forceNew":true},"location_filter":{"type":"TypeString","optional":true,"forceNew":true},"name":{"type":"TypeString","computed":true},"service":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_network_watcher":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_nginx_certificate":{"schema":{"certificate_virtual_path":{"type":"TypeString","computed":true},"error_code":{"type":"TypeString","computed":true},"error_message":{"type":"TypeString","computed":true},"key_vault_secret_creation_date":{"type":"TypeString","computed":true},"key_vault_secret_id":{"type":"TypeString","computed":true},"key_vault_secret_version":{"type":"TypeString","computed":true},"key_virtual_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"nginx_deployment_id":{"type":"TypeString","required":true},"sha1_thumbprint":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_nginx_configuration":{"schema":{"config_file":{"type":"TypeSet","computed":true,"elem":{"schema":{"content":{"type":"TypeString","computed":true},"virtual_path":{"type":"TypeString","computed":true}}}},"nginx_deployment_id":{"type":"TypeString","required":true},"package_data":{"type":"TypeString","computed":true},"protected_file":{"type":"TypeSet","computed":true,"elem":{"schema":{"content":{"type":"TypeString","computed":true},"virtual_path":{"type":"TypeString","computed":true}}}},"root_file":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_nginx_deployment":{"schema":{"auto_scale_profile":{"type":"TypeList","computed":true,"elem":{"schema":{"max_capacity":{"type":"TypeInt","computed":true},"min_capacity":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","computed":true}}}},"automatic_upgrade_channel":{"type":"TypeString","computed":true},"capacity":{"type":"TypeInt","computed":true},"diagnose_support_enabled":{"type":"TypeBool","computed":true},"email":{"type":"TypeString","computed":true},"frontend_private":{"type":"TypeList","computed":true,"elem":{"schema":{"allocation_method":{"type":"TypeString","computed":true},"ip_address":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"frontend_public":{"type":"TypeList","computed":true,"elem":{"schema":{"ip_address":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"ip_address":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logging_storage_account":{"type":"TypeList","computed":true,"elem":{"schema":{"container_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"managed_resource_group":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"subnet_id":{"type":"TypeString","computed":true}}}},"nginx_version":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_notification_hub":{"schema":{"apns_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"application_mode":{"type":"TypeString","computed":true},"bundle_id":{"type":"TypeString","computed":true},"key_id":{"type":"TypeString","computed":true},"team_id":{"type":"TypeString","computed":true},"token":{"type":"TypeString","computed":true}}}},"gcm_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"api_key":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_notification_hub_namespace":{"schema":{"enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"namespace_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"servicebus_endpoint":{"type":"TypeString","computed":true},"sku":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_oracle_adbs_character_sets":{"schema":{"character_sets":{"type":"TypeList","computed":true,"elem":{"schema":{"character_set":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"read":5}},"azurerm_oracle_adbs_national_character_sets":{"schema":{"character_sets":{"type":"TypeList","computed":true,"elem":{"schema":{"character_set":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"read":5}},"azurerm_oracle_autonomous_database":{"schema":{"actual_used_data_storage_size_in_tbs":{"type":"TypeFloat","computed":true},"allocated_storage_size_in_tbs":{"type":"TypeFloat","computed":true},"allowed_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"auto_scaling_enabled":{"type":"TypeBool","computed":true},"auto_scaling_for_storage_enabled":{"type":"TypeBool","computed":true},"autonomous_database_id":{"type":"TypeString","computed":true},"available_upgrade_versions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"backup_retention_period_in_days":{"type":"TypeInt","computed":true},"character_set":{"type":"TypeString","computed":true},"compute_count":{"type":"TypeFloat","computed":true},"cpu_core_count":{"type":"TypeInt","computed":true},"data_storage_size_in_gbs":{"type":"TypeInt","computed":true},"data_storage_size_in_tbs":{"type":"TypeInt","computed":true},"db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"db_version":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"failed_data_recovery_in_seconds":{"type":"TypeInt","computed":true},"in_memory_area_in_gbs":{"type":"TypeInt","computed":true},"lifecycle_details":{"type":"TypeString","computed":true},"local_adg_auto_failover_max_data_loss_limit":{"type":"TypeInt","computed":true},"local_data_guard_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"memory_per_oracle_compute_unit_in_gbs":{"type":"TypeInt","computed":true},"mtls_connection_required":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"national_character_set":{"type":"TypeString","computed":true},"next_long_term_backup_time_stamp":{"type":"TypeString","computed":true},"oci_url":{"type":"TypeString","computed":true},"ocid":{"type":"TypeString","computed":true},"peer_db_id":{"type":"TypeString","computed":true},"peer_db_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"preview":{"type":"TypeBool","computed":true},"preview_version_with_service_terms_accepted":{"type":"TypeBool","computed":true},"private_endpoint":{"type":"TypeString","computed":true},"private_endpoint_ip":{"type":"TypeString","computed":true},"private_endpoint_label":{"type":"TypeString","computed":true},"provisionable_cpus":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"remote_data_guard_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_console_url":{"type":"TypeString","computed":true},"sql_web_developer_url":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true},"supported_regions_to_clone_to":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"time_created":{"type":"TypeString","computed":true},"time_data_guard_role_changed":{"type":"TypeString","computed":true},"time_deletion_of_free_autonomous_database":{"type":"TypeString","computed":true},"time_local_data_guard_enabled_on":{"type":"TypeString","computed":true},"time_maintenance_begin":{"type":"TypeString","computed":true},"time_maintenance_end":{"type":"TypeString","computed":true},"time_of_last_failover":{"type":"TypeString","computed":true},"time_of_last_refresh":{"type":"TypeString","computed":true},"time_of_last_refresh_point":{"type":"TypeString","computed":true},"time_of_last_switchover":{"type":"TypeString","computed":true},"time_reclamation_of_free_autonomous_database":{"type":"TypeString","computed":true},"used_data_storage_size_in_gbs":{"type":"TypeInt","computed":true},"used_data_storage_size_in_tbs":{"type":"TypeInt","computed":true},"virtual_network_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_oracle_cloud_vm_cluster":{"schema":{"backup_subnet_cidr":{"type":"TypeString","computed":true},"cloud_exadata_infrastructure_id":{"type":"TypeString","computed":true},"cluster_name":{"type":"TypeString","computed":true},"compartment_id":{"type":"TypeString","computed":true},"compute_nodes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"cpu_core_count":{"type":"TypeInt","computed":true},"data_collection_options":{"type":"TypeList","computed":true,"elem":{"schema":{"diagnostics_events_enabled":{"type":"TypeBool","computed":true},"health_monitoring_enabled":{"type":"TypeBool","computed":true},"incident_logs_enabled":{"type":"TypeBool","computed":true}}}},"data_storage_percentage":{"type":"TypeInt","computed":true},"data_storage_size_in_tbs":{"type":"TypeFloat","computed":true},"db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"db_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"disk_redundancy":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"domain":{"type":"TypeString","computed":true},"gi_version":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"hostname_actual":{"type":"TypeString","computed":true},"iorm_config_cache":{"type":"TypeList","computed":true,"elem":{"schema":{"db_plans":{"type":"TypeList","computed":true,"elem":{"schema":{"db_name":{"type":"TypeString","computed":true},"flash_cache_limit":{"type":"TypeString","computed":true},"share":{"type":"TypeInt","computed":true}}}},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"objective":{"type":"TypeString","computed":true}}}},"last_update_history_entry_id":{"type":"TypeString","computed":true},"license_model":{"type":"TypeString","computed":true},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"listener_port":{"type":"TypeInt","computed":true},"local_backup_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"memory_size_in_gbs":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"node_count":{"type":"TypeInt","computed":true},"nsg_url":{"type":"TypeString","computed":true},"oci_url":{"type":"TypeString","computed":true},"ocid":{"type":"TypeString","computed":true},"ocpu_count":{"type":"TypeFloat","computed":true},"resource_group_name":{"type":"TypeString","required":true},"scan_dns_name":{"type":"TypeString","computed":true},"scan_dns_record_id":{"type":"TypeString","computed":true},"scan_ip_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"scan_listener_port_tcp":{"type":"TypeInt","computed":true},"scan_listener_port_tcp_ssl":{"type":"TypeInt","computed":true},"shape":{"type":"TypeString","computed":true},"sparse_diskgroup_enabled":{"type":"TypeBool","computed":true},"ssh_public_keys":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"storage_size_in_gbs":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"subnet_ocid":{"type":"TypeString","computed":true},"system_version":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"time_created":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true},"vip_ods":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","computed":true},"zone_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_oracle_db_nodes":{"schema":{"cloud_vm_cluster_id":{"type":"TypeString","required":true},"db_nodes":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_details":{"type":"TypeString","computed":true},"backup_ip_id":{"type":"TypeString","computed":true},"backup_vnic_2_id":{"type":"TypeString","computed":true},"backup_vnic_id":{"type":"TypeString","computed":true},"cpu_core_count":{"type":"TypeInt","computed":true},"db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"db_server_id":{"type":"TypeString","computed":true},"db_system_id":{"type":"TypeString","computed":true},"fault_domain":{"type":"TypeString","computed":true},"host_ip_id":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"maintenance_type":{"type":"TypeString","computed":true},"memory_size_in_gbs":{"type":"TypeInt","computed":true},"ocid":{"type":"TypeString","computed":true},"software_storage_size_in_gb":{"type":"TypeInt","computed":true},"time_created":{"type":"TypeString","computed":true},"time_maintenance_window_end":{"type":"TypeString","computed":true},"time_maintenance_window_start":{"type":"TypeString","computed":true},"vnic_2_id":{"type":"TypeString","computed":true},"vnic_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_oracle_db_servers":{"schema":{"cloud_exadata_infrastructure_name":{"type":"TypeString","required":true},"db_servers":{"type":"TypeList","computed":true,"elem":{"schema":{"autonomous_virtual_machine_ds":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"autonomous_vm_cluster_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"compartment_id":{"type":"TypeString","computed":true},"cpu_core_count":{"type":"TypeInt","computed":true},"db_node_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"display_name":{"type":"TypeString","computed":true},"exadata_infrastructure_id":{"type":"TypeString","computed":true},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"max_cpu_count":{"type":"TypeInt","computed":true},"max_db_node_storage_in_gbs":{"type":"TypeInt","computed":true},"max_memory_in_gbs":{"type":"TypeInt","computed":true},"memory_size_in_gbs":{"type":"TypeInt","computed":true},"ocid":{"type":"TypeString","computed":true},"shape":{"type":"TypeString","computed":true},"time_created":{"type":"TypeString","computed":true},"vm_cluster_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_oracle_db_system_shapes":{"schema":{"db_system_shapes":{"type":"TypeList","computed":true,"elem":{"schema":{"available_core_count":{"type":"TypeInt","computed":true},"available_core_count_per_node":{"type":"TypeInt","computed":true},"available_data_storage_in_tbs":{"type":"TypeInt","computed":true},"available_data_storage_per_server_in_tbs":{"type":"TypeInt","computed":true},"available_db_node_per_node_in_gbs":{"type":"TypeInt","computed":true},"available_db_node_storage_in_gbs":{"type":"TypeInt","computed":true},"available_memory_in_gbs":{"type":"TypeInt","computed":true},"available_memory_per_node_in_gbs":{"type":"TypeInt","computed":true},"core_count_increment":{"type":"TypeInt","computed":true},"maximum_node_count":{"type":"TypeInt","computed":true},"maximum_storage_count":{"type":"TypeInt","computed":true},"minimum_core_count":{"type":"TypeInt","computed":true},"minimum_core_count_per_node":{"type":"TypeInt","computed":true},"minimum_data_storage_in_tbs":{"type":"TypeInt","computed":true},"minimum_db_node_storage_per_node_in_gbs":{"type":"TypeInt","computed":true},"minimum_memory_per_node_in_gbs":{"type":"TypeInt","computed":true},"minimum_node_count":{"type":"TypeInt","computed":true},"minimum_storage_count":{"type":"TypeInt","computed":true},"runtime_minimum_core_count":{"type":"TypeInt","computed":true},"shape_family":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"read":5}},"azurerm_oracle_exadata_infrastructure":{"schema":{"activated_storage_count":{"type":"TypeInt","computed":true},"additional_storage_count":{"type":"TypeInt","computed":true},"available_storage_size_in_gbs":{"type":"TypeInt","computed":true},"compute_count":{"type":"TypeInt","computed":true},"cpu_count":{"type":"TypeInt","computed":true},"customer_contacts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"data_storage_size_in_tbs":{"type":"TypeFloat","computed":true},"db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"db_server_version":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"estimated_patching_time":{"type":"TypeList","computed":true,"elem":{"schema":{"estimated_db_server_patching_time":{"type":"TypeInt","computed":true},"estimated_network_switches_patching_time":{"type":"TypeInt","computed":true},"estimated_storage_server_patching_time":{"type":"TypeInt","computed":true},"total_estimated_patching_time":{"type":"TypeInt","computed":true}}}},"last_maintenance_run_id":{"type":"TypeString","computed":true},"lifecycle_details":{"type":"TypeString","computed":true},"lifecycle_state":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maintenance_window":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_action_timeout_enabled":{"type":"TypeBool","computed":true},"custom_action_timeout_in_mins":{"type":"TypeInt","computed":true},"days_of_week":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"hours_of_day":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}},"lead_time_in_weeks":{"type":"TypeInt","computed":true},"monthly_patching_enabled":{"type":"TypeBool","computed":true},"months":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"patching_mode":{"type":"TypeString","computed":true},"preference":{"type":"TypeString","computed":true},"weeks_of_month":{"type":"TypeList","computed":true,"elem":{"type":"TypeInt"}}}}},"max_cpu_count":{"type":"TypeInt","computed":true},"max_data_storage_in_tbs":{"type":"TypeFloat","computed":true},"max_db_node_storage_size_in_gbs":{"type":"TypeInt","computed":true},"max_memory_in_gbs":{"type":"TypeInt","computed":true},"memory_size_in_gbs":{"type":"TypeInt","computed":true},"monthly_db_server_version":{"type":"TypeString","computed":true},"monthly_storage_server_version":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"next_maintenance_run_id":{"type":"TypeString","computed":true},"oci_url":{"type":"TypeString","computed":true},"ocid":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"shape":{"type":"TypeString","computed":true},"storage_count":{"type":"TypeInt","computed":true},"storage_server_version":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"time_created":{"type":"TypeString","computed":true},"total_storage_size_in_gbs":{"type":"TypeInt","computed":true},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_oracle_gi_versions":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"versions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_orchestrated_virtual_machine_scale_set":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"accelerated_networking_enabled":{"type":"TypeBool","computed":true},"dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancer_backend_address_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"public_ip_address":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"ip_tag":{"type":"TypeList","computed":true,"elem":{"schema":{"tag":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"public_ip_prefix_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"subnet_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"ip_forwarding_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"network_security_group_id":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_palo_alto_local_rulestack":{"schema":{"anti_spyware_profile":{"type":"TypeString","computed":true},"anti_virus_profile":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"dns_subscription":{"type":"TypeString","computed":true},"file_blocking_profile":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_trust_certificate":{"type":"TypeString","computed":true},"outbound_untrust_certificate":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"url_filtering_profile":{"type":"TypeString","computed":true},"vulnerability_profile":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_platform_image":{"schema":{"location":{"type":"TypeString","required":true,"forceNew":true},"offer":{"type":"TypeString","required":true},"publisher":{"type":"TypeString","required":true},"sku":{"type":"TypeString","required":true},"version":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"read":5}},"azurerm_policy_assignment":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"enforce":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"metadata":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"non_compliance_message":{"type":"TypeList","computed":true,"elem":{"schema":{"content":{"type":"TypeString","computed":true},"policy_definition_reference_id":{"type":"TypeString","computed":true}}}},"not_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"parameters":{"type":"TypeString","computed":true},"policy_definition_id":{"type":"TypeString","computed":true},"scope_id":{"type":"TypeString","required":true,"forceNew":true}},"timeouts":{"read":5}},"azurerm_policy_definition":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"management_group_name":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","computed":true},"mode":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"computed":true},"parameters":{"type":"TypeString","computed":true},"policy_rule":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true},"role_definition_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_policy_definition_built_in":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"management_group_name":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","computed":true},"mode":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"computed":true},"parameters":{"type":"TypeString","computed":true},"policy_rule":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true},"role_definition_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_policy_set_definition":{"schema":{"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"management_group_name":{"type":"TypeString","optional":true},"metadata":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"computed":true},"parameters":{"type":"TypeString","computed":true},"policy_definition_group":{"type":"TypeList","computed":true,"elem":{"schema":{"additional_metadata_resource_id":{"type":"TypeString","computed":true},"category":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"policy_definition_reference":{"type":"TypeList","computed":true,"elem":{"schema":{"parameter_values":{"type":"TypeString","computed":true},"parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"policy_definition_id":{"type":"TypeString","computed":true},"policy_group_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"reference_id":{"type":"TypeString","computed":true}}}},"policy_definitions":{"type":"TypeString","computed":true},"policy_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_policy_virtual_machine_configuration_assignment":{"schema":{"assignment_hash":{"type":"TypeString","computed":true},"compliance_status":{"type":"TypeString","computed":true},"content_hash":{"type":"TypeString","computed":true},"content_uri":{"type":"TypeString","computed":true},"last_compliance_status_checked":{"type":"TypeString","computed":true},"latest_report_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"virtual_machine_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_portal_dashboard":{"schema":{"dashboard_properties":{"type":"TypeString","optional":true,"computed":true},"display_name":{"type":"TypeString","optional":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_postgresql_flexible_server":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"auto_grow_enabled":{"type":"TypeBool","computed":true},"backup_retention_days":{"type":"TypeInt","computed":true},"delegated_subnet_id":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"storage_mb":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_postgresql_server":{"schema":{"administrator_login":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"version":{"type":"TypeString","computed":true}},"timeouts":{"read":10}},"azurerm_private_dns_a_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_aaaa_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_cname_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_resource_id":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_mx_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"exchange":{"type":"TypeString","computed":true},"preference":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_ptr_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"records":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_resolver":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_dns_forwarding_ruleset":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_dns_resolver_outbound_endpoint_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_forwarding_rule":{"schema":{"dns_forwarding_ruleset_id":{"type":"TypeString","required":true},"domain_name":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"target_dns_servers":{"type":"TypeList","computed":true,"elem":{"schema":{"ip_address":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","computed":true}}}}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_inbound_endpoint":{"schema":{"ip_configurations":{"type":"TypeList","computed":true,"elem":{"schema":{"private_ip_address":{"type":"TypeString","computed":true},"private_ip_allocation_method":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_dns_resolver_id":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_outbound_endpoint":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_dns_resolver_id":{"type":"TypeString","required":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_dns_resolver_virtual_network_link":{"schema":{"dns_forwarding_ruleset_id":{"type":"TypeString","required":true},"metadata":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"virtual_network_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_private_dns_soa_record":{"schema":{"email":{"type":"TypeString","computed":true},"expire_time":{"type":"TypeInt","computed":true},"fqdn":{"type":"TypeString","computed":true},"host_name":{"type":"TypeString","computed":true},"minimum_ttl":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","optional":true,"default":"@"},"refresh_time":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"retry_time":{"type":"TypeInt","computed":true},"serial_number":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_srv_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"port":{"type":"TypeInt","computed":true},"priority":{"type":"TypeInt","computed":true},"target":{"type":"TypeString","computed":true},"weight":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_txt_record":{"schema":{"fqdn":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"record":{"type":"TypeSet","computed":true,"elem":{"schema":{"value":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ttl":{"type":"TypeInt","computed":true},"zone_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_dns_zone":{"schema":{"max_number_of_record_sets":{"type":"TypeInt","computed":true},"max_number_of_virtual_network_links":{"type":"TypeInt","computed":true},"max_number_of_virtual_network_links_with_registration":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"number_of_record_sets":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_dns_zone_virtual_network_link":{"schema":{"name":{"type":"TypeString","required":true},"private_dns_zone_name":{"type":"TypeString","required":true},"registration_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_private_endpoint_connection":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"private_service_connection":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"request_response":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_private_link_service":{"schema":{"alias":{"type":"TypeString","computed":true},"auto_approval_subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enable_proxy_protocol":{"type":"TypeBool","computed":true},"load_balancer_frontend_ip_configuration_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"nat_ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_version":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"visibility_subscription_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_private_link_service_endpoint_connections":{"schema":{"location":{"type":"TypeString","computed":true},"private_endpoint_connections":{"type":"TypeList","computed":true,"elem":{"schema":{"action_required":{"type":"TypeString","computed":true},"connection_id":{"type":"TypeString","computed":true},"connection_name":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"private_endpoint_id":{"type":"TypeString","computed":true},"private_endpoint_name":{"type":"TypeString","computed":true},"status":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"service_id":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_proximity_placement_group":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_public_ip":{"schema":{"allocation_method":{"type":"TypeString","computed":true},"ddos_protection_mode":{"type":"TypeString","computed":true},"ddos_protection_plan_id":{"type":"TypeString","computed":true},"domain_name_label":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"ip_address":{"type":"TypeString","computed":true},"ip_tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"ip_version":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"reverse_fqdn":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_public_ip_prefix":{"schema":{"ip_prefix":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"prefix_length":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"sku_tier":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_public_ips":{"schema":{"allocation_type":{"type":"TypeString","optional":true},"attachment_status":{"type":"TypeString","optional":true},"name_prefix":{"type":"TypeString","optional":true},"public_ips":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","computed":true},"fqdn":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"ip_address":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_public_maintenance_configurations":{"schema":{"configs":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"duration":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maintenance_scope":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"recur_every":{"type":"TypeString","computed":true},"time_zone":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","optional":true},"recur_every":{"type":"TypeString","optional":true},"scope":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_recovery_services_vault":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_redis_cache":{"schema":{"access_keys_authentication_enabled":{"type":"TypeBool","computed":true},"capacity":{"type":"TypeInt","computed":true},"family":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"non_ssl_port_enabled":{"type":"TypeBool","computed":true},"patch_schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","computed":true},"maintenance_window":{"type":"TypeString","computed":true},"start_hour_utc":{"type":"TypeInt","computed":true}}}},"port":{"type":"TypeInt","computed":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"private_static_ip_address":{"type":"TypeString","computed":true},"redis_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_authentication_enabled":{"type":"TypeBool","computed":true},"aof_backup_enabled":{"type":"TypeBool","computed":true},"aof_storage_connection_string_0":{"type":"TypeString","computed":true},"aof_storage_connection_string_1":{"type":"TypeString","computed":true},"authentication_enabled":{"type":"TypeBool","computed":true},"data_persistence_authentication_method":{"type":"TypeString","computed":true},"maxclients":{"type":"TypeInt","computed":true},"maxfragmentationmemory_reserved":{"type":"TypeInt","computed":true},"maxmemory_delta":{"type":"TypeInt","computed":true},"maxmemory_policy":{"type":"TypeString","computed":true},"maxmemory_reserved":{"type":"TypeInt","computed":true},"notify_keyspace_events":{"type":"TypeString","computed":true},"rdb_backup_enabled":{"type":"TypeBool","computed":true},"rdb_backup_frequency":{"type":"TypeInt","computed":true},"rdb_backup_max_snapshot_count":{"type":"TypeInt","computed":true},"rdb_storage_connection_string":{"type":"TypeString","computed":true},"storage_account_subscription_id":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"shard_count":{"type":"TypeInt","computed":true},"sku_name":{"type":"TypeString","computed":true},"ssl_port":{"type":"TypeInt","computed":true},"subnet_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"zones":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_redis_enterprise_database":{"schema":{"cluster_id":{"type":"TypeString","required":true},"linked_database_group_nickname":{"type":"TypeString","computed":true},"linked_database_id":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"secondary_access_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_resource_group":{"schema":{"location":{"type":"TypeString","computed":true},"managed_by":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_resource_group_template_deployment":{"schema":{"name":{"type":"TypeString","required":true},"output_content":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_resources":{"schema":{"name":{"type":"TypeString","optional":true,"computed":true},"required_tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","optional":true,"computed":true},"resources":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}}}},"type":{"type":"TypeString","optional":true,"computed":true}},"timeouts":{"read":5}},"azurerm_role_definition":{"schema":{"assignable_scopes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","optional":true,"computed":true},"permissions":{"type":"TypeList","computed":true,"elem":{"schema":{"actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"condition":{"type":"TypeString","computed":true},"condition_version":{"type":"TypeString","computed":true},"data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}},"not_actions":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"not_data_actions":{"type":"TypeSet","optional":true,"elem":{"type":"TypeString"}}}}},"role_definition_id":{"type":"TypeString","optional":true,"computed":true},"scope":{"type":"TypeString","optional":true},"type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_role_management_policy":{"schema":{"activation_rules":{"type":"TypeList","description":"The activation rules of the policy","computed":true,"elem":{"schema":{"approval_stage":{"type":"TypeList","description":"The approval stages for the activation","computed":true,"elem":{"schema":{"primary_approver":{"type":"TypeSet","description":"The IDs of the users or groups who can approve the activation","computed":true,"elem":{"schema":{"object_id":{"type":"TypeString","description":"The ID of the object to act as an approver","computed":true},"type":{"type":"TypeString","description":"The type of object acting as an approver","computed":true}}}}}}},"maximum_duration":{"type":"TypeString","description":"The time after which the an activation can be valid for","computed":true},"require_approval":{"type":"TypeBool","description":"Whether an approval is required for activation","computed":true},"require_justification":{"type":"TypeBool","description":"Whether a justification is required during activation","computed":true},"require_multifactor_authentication":{"type":"TypeBool","description":"Whether multi-factor authentication is required during activation","computed":true},"require_ticket_info":{"type":"TypeBool","description":"Whether ticket information is required during activation","computed":true},"required_conditional_access_authentication_context":{"type":"TypeString","description":"Whether a conditional access context is required during activation","computed":true}}}},"active_assignment_rules":{"type":"TypeList","description":"The rules for active assignment of the policy","computed":true,"elem":{"schema":{"expiration_required":{"type":"TypeBool","description":"Must the assignment have an expiry date","computed":true},"expire_after":{"type":"TypeString","description":"The duration after which assignments expire","computed":true},"require_justification":{"type":"TypeBool","description":"Whether a justification is required to make an assignment","computed":true},"require_multifactor_authentication":{"type":"TypeBool","description":"Whether multi-factor authentication is required to make an assignment","computed":true},"require_ticket_info":{"type":"TypeBool","description":"Whether ticket information is required to make an assignment","computed":true}}}},"description":{"type":"TypeString","description":"The Description of the policy","computed":true},"eligible_assignment_rules":{"type":"TypeList","description":"The rules for eligible assignment of the policy","computed":true,"elem":{"schema":{"expiration_required":{"type":"TypeBool","description":"Must the assignment have an expiry date","computed":true},"expire_after":{"type":"TypeString","description":"The duration after which assignments expire","computed":true}}}},"name":{"type":"TypeString","description":"The name of the policy","computed":true},"notification_rules":{"type":"TypeList","description":"The notification rules of the policy","computed":true,"elem":{"schema":{"active_assignments":{"type":"TypeList","description":"Notifications about active assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"approver_notifications":{"type":"TypeList","description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"assignee_notifications":{"type":"TypeList","description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}}}}},"eligible_activations":{"type":"TypeList","description":"Notifications about activations of eligible assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"approver_notifications":{"type":"TypeList","description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"assignee_notifications":{"type":"TypeList","description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}}}}},"eligible_assignments":{"type":"TypeList","description":"Notifications about eligible assignments","computed":true,"elem":{"schema":{"admin_notifications":{"type":"TypeList","description":"Admin notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"approver_notifications":{"type":"TypeList","description":"Approver notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}},"assignee_notifications":{"type":"TypeList","description":"Assignee notification settings","computed":true,"elem":{"schema":{"additional_recipients":{"type":"TypeSet","description":"The additional recipients to notify","computed":true,"elem":{"type":"TypeString"}},"default_recipients":{"type":"TypeBool","description":"Whether the default recipients are notified","computed":true},"notification_level":{"type":"TypeString","description":"What level of notifications are sent","computed":true}}}}}}}}}},"role_definition_id":{"type":"TypeString","required":true,"description":"ID of the Azure Role to which this policy is assigned"},"scope":{"type":"TypeString","required":true,"description":"The scope of the role to which this policy will apply"}},"timeouts":{"read":5}},"azurerm_route_filter":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"rule":{"type":"TypeList","computed":true,"elem":{"schema":{"access":{"type":"TypeString","computed":true},"communities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"rule_type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_route_table":{"schema":{"bgp_route_propagation_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"route":{"type":"TypeList","computed":true,"elem":{"schema":{"address_prefix":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"next_hop_in_ip_address":{"type":"TypeString","computed":true},"next_hop_type":{"type":"TypeString","computed":true}}}},"subnets":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_search_service":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","required":true},"partition_count":{"type":"TypeInt","computed":true},"primary_key":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"query_keys":{"type":"TypeList","computed":true,"elem":{"schema":{"key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true}}}},"replica_count":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_sentinel_alert_rule":{"schema":{"log_analytics_workspace_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_sentinel_alert_rule_anomaly":{"schema":{"anomaly_settings_version":{"type":"TypeInt","computed":true},"anomaly_version":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"display_name":{"type":"TypeString","optional":true,"computed":true},"enabled":{"type":"TypeBool","computed":true},"frequency":{"type":"TypeString","computed":true},"log_analytics_workspace_id":{"type":"TypeString","required":true},"mode":{"type":"TypeString","computed":true},"multi_select_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","optional":true,"computed":true},"prioritized_exclude_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"exclude":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"prioritize":{"type":"TypeString","computed":true}}}},"required_data_connector":{"type":"TypeList","computed":true,"elem":{"schema":{"connector_id":{"type":"TypeString","computed":true},"data_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"settings_definition_id":{"type":"TypeString","computed":true},"single_select_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"supported_values":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"value":{"type":"TypeString","computed":true}}}},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"techniques":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"threshold_observation":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"max":{"type":"TypeString","computed":true},"min":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_sentinel_alert_rule_template":{"schema":{"display_name":{"type":"TypeString","optional":true,"computed":true},"log_analytics_workspace_id":{"type":"TypeString","required":true},"name":{"type":"TypeString","optional":true,"computed":true},"nrt_template":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"query":{"type":"TypeString","computed":true},"severity":{"type":"TypeString","computed":true},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"scheduled_template":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"query":{"type":"TypeString","computed":true},"query_frequency":{"type":"TypeString","computed":true},"query_period":{"type":"TypeString","computed":true},"severity":{"type":"TypeString","computed":true},"tactics":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"trigger_operator":{"type":"TypeString","computed":true},"trigger_threshold":{"type":"TypeInt","computed":true}}}},"security_incident_template":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"product_filter":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_service_plan":{"schema":{"app_service_environment_id":{"type":"TypeString","computed":true},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maximum_elastic_worker_count":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","computed":true},"per_site_scaling_enabled":{"type":"TypeBool","computed":true},"reserved":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"worker_count":{"type":"TypeInt","computed":true},"zone_balancing_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_namespace":{"schema":{"capacity":{"type":"TypeInt","computed":true},"default_primary_connection_string":{"type":"TypeString","computed":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_connection_string":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"endpoint":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"premium_messaging_partitions":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_servicebus_namespace_authorization_rule":{"schema":{"name":{"type":"TypeString","required":true},"namespace_id":{"type":"TypeString","optional":true},"namespace_name":{"type":"TypeString","optional":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_namespace_disaster_recovery_config":{"schema":{"alias_authorization_rule_id":{"type":"TypeString","optional":true},"default_primary_key":{"type":"TypeString","computed":true},"default_secondary_key":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"namespace_id":{"type":"TypeString","optional":true},"namespace_name":{"type":"TypeString","optional":true},"partner_namespace_id":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_queue":{"schema":{"auto_delete_on_idle":{"type":"TypeString","computed":true},"dead_lettering_on_message_expiration":{"type":"TypeBool","computed":true},"default_message_ttl":{"type":"TypeString","computed":true},"duplicate_detection_history_time_window":{"type":"TypeString","computed":true},"enable_batched_operations":{"type":"TypeBool","computed":true},"enable_express":{"type":"TypeBool","computed":true},"enable_partitioning":{"type":"TypeBool","computed":true},"forward_dead_lettered_messages_to":{"type":"TypeString","computed":true},"forward_to":{"type":"TypeString","computed":true},"lock_duration":{"type":"TypeString","computed":true},"max_delivery_count":{"type":"TypeInt","computed":true},"max_size_in_megabytes":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"namespace_id":{"type":"TypeString","optional":true},"namespace_name":{"type":"TypeString","optional":true},"requires_duplicate_detection":{"type":"TypeBool","computed":true},"requires_session":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"status":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_queue_authorization_rule":{"schema":{"listen":{"type":"TypeBool","computed":true},"manage":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","optional":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"queue_id":{"type":"TypeString","optional":true},"queue_name":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","optional":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_subscription":{"schema":{"auto_delete_on_idle":{"type":"TypeString","computed":true},"dead_lettering_on_filter_evaluation_error":{"type":"TypeBool","computed":true},"dead_lettering_on_message_expiration":{"type":"TypeBool","computed":true},"default_message_ttl":{"type":"TypeString","computed":true},"enable_batched_operations":{"type":"TypeBool","computed":true},"forward_dead_lettered_messages_to":{"type":"TypeString","computed":true},"forward_to":{"type":"TypeString","computed":true},"lock_duration":{"type":"TypeString","computed":true},"max_delivery_count":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","optional":true},"requires_session":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"topic_id":{"type":"TypeString","optional":true},"topic_name":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_servicebus_topic":{"schema":{"auto_delete_on_idle":{"type":"TypeString","computed":true},"default_message_ttl":{"type":"TypeString","computed":true},"duplicate_detection_history_time_window":{"type":"TypeString","computed":true},"enable_batched_operations":{"type":"TypeBool","computed":true},"enable_express":{"type":"TypeBool","computed":true},"enable_partitioning":{"type":"TypeBool","computed":true},"max_size_in_megabytes":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"namespace_id":{"type":"TypeString","optional":true},"namespace_name":{"type":"TypeString","optional":true},"requires_duplicate_detection":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","optional":true},"status":{"type":"TypeString","computed":true},"support_ordering":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_servicebus_topic_authorization_rule":{"schema":{"listen":{"type":"TypeBool","computed":true},"manage":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"namespace_name":{"type":"TypeString","optional":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_connection_string_alias":{"type":"TypeString","computed":true},"primary_key":{"type":"TypeString","computed":true},"queue_name":{"type":"TypeString","optional":true},"resource_group_name":{"type":"TypeString","optional":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_connection_string_alias":{"type":"TypeString","computed":true},"secondary_key":{"type":"TypeString","computed":true},"send":{"type":"TypeBool","computed":true},"topic_id":{"type":"TypeString","optional":true},"topic_name":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_shared_image":{"schema":{"accelerated_network_support_enabled":{"type":"TypeBool","computed":true},"architecture":{"type":"TypeString","computed":true},"confidential_vm_enabled":{"type":"TypeBool","computed":true},"confidential_vm_supported":{"type":"TypeBool","computed":true},"description":{"type":"TypeString","computed":true},"eula":{"type":"TypeString","computed":true},"gallery_name":{"type":"TypeString","required":true},"hibernation_enabled":{"type":"TypeBool","computed":true},"hyper_v_generation":{"type":"TypeString","computed":true},"identifier":{"type":"TypeList","computed":true,"elem":{"schema":{"offer":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","computed":true},"sku":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","computed":true},"privacy_statement_uri":{"type":"TypeString","computed":true},"purchase_plan":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"product":{"type":"TypeString","computed":true},"publisher":{"type":"TypeString","computed":true}}}},"release_note_uri":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"specialized":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"trusted_launch_enabled":{"type":"TypeBool","computed":true},"trusted_launch_supported":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_shared_image_gallery":{"schema":{"description":{"type":"TypeString","computed":true},"image_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"unique_name":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_shared_image_version":{"schema":{"exclude_from_latest":{"type":"TypeBool","computed":true},"gallery_name":{"type":"TypeString","required":true},"image_name":{"type":"TypeString","required":true},"location":{"type":"TypeString","computed":true},"managed_image_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"os_disk_image_size_gb":{"type":"TypeInt","computed":true},"os_disk_snapshot_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sort_versions_by_semver":{"type":"TypeBool","optional":true,"default":false},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"target_region":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"regional_replica_count":{"type":"TypeInt","computed":true},"storage_account_type":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_shared_image_versions":{"schema":{"gallery_name":{"type":"TypeString","required":true},"image_name":{"type":"TypeString","required":true},"images":{"type":"TypeList","computed":true,"elem":{"schema":{"exclude_from_latest":{"type":"TypeBool","computed":true},"id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"managed_image_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"target_region":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"regional_replica_count":{"type":"TypeInt","computed":true},"storage_account_type":{"type":"TypeString","computed":true}}}}}}},"resource_group_name":{"type":"TypeString","required":true},"tags_filter":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_signalr_service":{"schema":{"aad_auth_enabled":{"type":"TypeBool","computed":true},"hostname":{"type":"TypeString","computed":true},"ip_address":{"type":"TypeString","computed":true},"local_auth_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"public_port":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"server_port":{"type":"TypeInt","computed":true},"serverless_connection_timeout_in_seconds":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tls_client_cert_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_site_recovery_fabric":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_site_recovery_protection_container":{"schema":{"name":{"type":"TypeString","required":true},"recovery_fabric_name":{"type":"TypeString","required":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_site_recovery_replication_policy":{"schema":{"application_consistent_snapshot_frequency_in_minutes":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"recovery_point_retention_in_minutes":{"type":"TypeInt","computed":true},"recovery_vault_name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_site_recovery_replication_recovery_plan":{"schema":{"azure_to_azure_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"primary_edge_zone":{"type":"TypeString","computed":true},"primary_zone":{"type":"TypeString","computed":true},"recovery_edge_zone":{"type":"TypeString","computed":true},"recovery_zone":{"type":"TypeString","computed":true}}}},"failover_deployment_model":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"recovery_group":{"type":"TypeSet","computed":true,"elem":{"schema":{"post_action":{"type":"TypeSet","computed":true,"elem":{"type":"TypeList","elem":{"schema":{"fabric_location":{"type":"TypeString","computed":true},"fail_over_directions":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"runbook_id":{"type":"TypeString","computed":true},"script_path":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}}},"pre_action":{"type":"TypeSet","computed":true,"elem":{"type":"TypeList","elem":{"schema":{"fabric_location":{"type":"TypeString","computed":true},"fail_over_directions":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"fail_over_types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"manual_action_instruction":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"runbook_id":{"type":"TypeString","computed":true},"script_path":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}}},"replicated_protected_items":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true}}}},"recovery_vault_id":{"type":"TypeString","required":true},"source_recovery_fabric_id":{"type":"TypeString","computed":true},"target_recovery_fabric_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_snapshot":{"schema":{"creation_option":{"type":"TypeString","computed":true},"disk_size_gb":{"type":"TypeInt","computed":true},"encryption_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_encryption_key":{"type":"TypeList","computed":true,"elem":{"schema":{"secret_url":{"type":"TypeString","computed":true},"source_vault_id":{"type":"TypeString","computed":true}}}},"enabled":{"type":"TypeBool","computed":true},"key_encryption_key":{"type":"TypeList","computed":true,"elem":{"schema":{"key_url":{"type":"TypeString","computed":true},"source_vault_id":{"type":"TypeString","computed":true}}}}}}},"name":{"type":"TypeString","required":true},"os_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"source_resource_id":{"type":"TypeString","computed":true},"source_uri":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","computed":true},"time_created":{"type":"TypeString","computed":true},"trusted_launch_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_source_control_token":{"schema":{"token":{"type":"TypeString","computed":true},"token_secret":{"type":"TypeString","computed":true},"type":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_spatial_anchors_account":{"schema":{"account_domain":{"type":"TypeString","computed":true},"account_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_spring_cloud_app":{"schema":{"fqdn":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"is_public":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"persistent_disk":{"type":"TypeList","computed":true,"elem":{"schema":{"mount_path":{"type":"TypeString","computed":true},"size_in_gb":{"type":"TypeInt","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"service_name":{"type":"TypeString","required":true},"tls_enabled":{"type":"TypeBool","computed":true},"url":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_spring_cloud_service":{"schema":{"config_server_git_setting":{"type":"TypeList","computed":true,"elem":{"schema":{"http_basic_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"label":{"type":"TypeString","computed":true},"repository":{"type":"TypeList","computed":true,"elem":{"schema":{"http_basic_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"password":{"type":"TypeString","computed":true},"username":{"type":"TypeString","computed":true}}}},"label":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"pattern":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"search_paths":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ssh_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"host_key":{"type":"TypeString","computed":true},"host_key_algorithm":{"type":"TypeString","computed":true},"private_key":{"type":"TypeString","computed":true},"strict_host_key_checking_enabled":{"type":"TypeBool","computed":true}}}},"uri":{"type":"TypeString","computed":true}}}},"search_paths":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ssh_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"host_key":{"type":"TypeString","computed":true},"host_key_algorithm":{"type":"TypeString","computed":true},"private_key":{"type":"TypeString","computed":true},"strict_host_key_checking_enabled":{"type":"TypeBool","computed":true}}}},"uri":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"required_network_traffic_rules":{"type":"TypeList","computed":true,"elem":{"schema":{"direction":{"type":"TypeString","computed":true},"fqdns":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_ssh_public_key":{"schema":{"name":{"type":"TypeString","required":true},"public_key":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_stack_hci_cluster":{"schema":{"automanage_configuration_id":{"type":"TypeString","computed":true},"client_id":{"type":"TypeString","computed":true},"cloud_id":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true,"forceNew":true},"resource_provider_object_id":{"type":"TypeString","computed":true},"service_endpoint":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_static_web_app":{"schema":{"api_key":{"type":"TypeString","computed":true},"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"basic_auth":{"type":"TypeList","computed":true,"elem":{"schema":{"environments":{"type":"TypeString","computed":true}}}},"configuration_file_changes_enabled":{"type":"TypeBool","computed":true},"default_host_name":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true,"forceNew":true},"preview_environments_enabled":{"type":"TypeBool","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_size":{"type":"TypeString","computed":true},"sku_tier":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_storage_account":{"schema":{"access_tier":{"type":"TypeString","computed":true},"account_kind":{"type":"TypeString","computed":true},"account_replication_type":{"type":"TypeString","computed":true},"account_tier":{"type":"TypeString","computed":true},"allow_nested_items_to_be_public":{"type":"TypeBool","computed":true},"azure_files_authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_guid":{"type":"TypeString","computed":true},"domain_name":{"type":"TypeString","computed":true},"domain_sid":{"type":"TypeString","computed":true},"forest_name":{"type":"TypeString","computed":true},"netbios_domain_name":{"type":"TypeString","computed":true},"storage_sid":{"type":"TypeString","computed":true}}}},"default_share_level_permission":{"type":"TypeString","computed":true},"directory_type":{"type":"TypeString","computed":true}}}},"custom_domain":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true}}}},"dns_endpoint_type":{"type":"TypeString","computed":true},"https_traffic_only_enabled":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"infrastructure_encryption_enabled":{"type":"TypeBool","computed":true},"is_hns_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"min_tls_version":{"type":"TypeString","optional":true},"name":{"type":"TypeString","required":true},"nfsv3_enabled":{"type":"TypeBool","computed":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_blob_connection_string":{"type":"TypeString","computed":true},"primary_blob_endpoint":{"type":"TypeString","computed":true},"primary_blob_host":{"type":"TypeString","computed":true},"primary_blob_internet_endpoint":{"type":"TypeString","computed":true},"primary_blob_internet_host":{"type":"TypeString","computed":true},"primary_blob_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_blob_microsoft_host":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"primary_dfs_endpoint":{"type":"TypeString","computed":true},"primary_dfs_host":{"type":"TypeString","computed":true},"primary_dfs_internet_endpoint":{"type":"TypeString","computed":true},"primary_dfs_internet_host":{"type":"TypeString","computed":true},"primary_dfs_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_dfs_microsoft_host":{"type":"TypeString","computed":true},"primary_file_endpoint":{"type":"TypeString","computed":true},"primary_file_host":{"type":"TypeString","computed":true},"primary_file_internet_endpoint":{"type":"TypeString","computed":true},"primary_file_internet_host":{"type":"TypeString","computed":true},"primary_file_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_file_microsoft_host":{"type":"TypeString","computed":true},"primary_location":{"type":"TypeString","computed":true},"primary_queue_endpoint":{"type":"TypeString","computed":true},"primary_queue_host":{"type":"TypeString","computed":true},"primary_queue_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_queue_microsoft_host":{"type":"TypeString","computed":true},"primary_table_endpoint":{"type":"TypeString","computed":true},"primary_table_host":{"type":"TypeString","computed":true},"primary_table_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_table_microsoft_host":{"type":"TypeString","computed":true},"primary_web_endpoint":{"type":"TypeString","computed":true},"primary_web_host":{"type":"TypeString","computed":true},"primary_web_internet_endpoint":{"type":"TypeString","computed":true},"primary_web_internet_host":{"type":"TypeString","computed":true},"primary_web_microsoft_endpoint":{"type":"TypeString","computed":true},"primary_web_microsoft_host":{"type":"TypeString","computed":true},"queue_encryption_key_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_blob_connection_string":{"type":"TypeString","computed":true},"secondary_blob_endpoint":{"type":"TypeString","computed":true},"secondary_blob_host":{"type":"TypeString","computed":true},"secondary_blob_internet_endpoint":{"type":"TypeString","computed":true},"secondary_blob_internet_host":{"type":"TypeString","computed":true},"secondary_blob_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_blob_microsoft_host":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"secondary_dfs_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_host":{"type":"TypeString","computed":true},"secondary_dfs_internet_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_internet_host":{"type":"TypeString","computed":true},"secondary_dfs_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_dfs_microsoft_host":{"type":"TypeString","computed":true},"secondary_file_endpoint":{"type":"TypeString","computed":true},"secondary_file_host":{"type":"TypeString","computed":true},"secondary_file_internet_endpoint":{"type":"TypeString","computed":true},"secondary_file_internet_host":{"type":"TypeString","computed":true},"secondary_file_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_file_microsoft_host":{"type":"TypeString","computed":true},"secondary_location":{"type":"TypeString","computed":true},"secondary_queue_endpoint":{"type":"TypeString","computed":true},"secondary_queue_host":{"type":"TypeString","computed":true},"secondary_queue_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_queue_microsoft_host":{"type":"TypeString","computed":true},"secondary_table_endpoint":{"type":"TypeString","computed":true},"secondary_table_host":{"type":"TypeString","computed":true},"secondary_table_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_table_microsoft_host":{"type":"TypeString","computed":true},"secondary_web_endpoint":{"type":"TypeString","computed":true},"secondary_web_host":{"type":"TypeString","computed":true},"secondary_web_internet_endpoint":{"type":"TypeString","computed":true},"secondary_web_internet_host":{"type":"TypeString","computed":true},"secondary_web_microsoft_endpoint":{"type":"TypeString","computed":true},"secondary_web_microsoft_host":{"type":"TypeString","computed":true},"table_encryption_key_type":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_storage_account_blob_container_sas":{"schema":{"cache_control":{"type":"TypeString","optional":true},"connection_string":{"type":"TypeString","required":true},"container_name":{"type":"TypeString","required":true},"content_disposition":{"type":"TypeString","optional":true},"content_encoding":{"type":"TypeString","optional":true},"content_language":{"type":"TypeString","optional":true},"content_type":{"type":"TypeString","optional":true},"expiry":{"type":"TypeString","required":true},"https_only":{"type":"TypeBool","optional":true,"default":true},"ip_address":{"type":"TypeString","optional":true},"permissions":{"type":"TypeList","required":true,"elem":{"schema":{"add":{"type":"TypeBool","required":true},"create":{"type":"TypeBool","required":true},"delete":{"type":"TypeBool","required":true},"list":{"type":"TypeBool","required":true},"read":{"type":"TypeBool","required":true},"write":{"type":"TypeBool","required":true}}},"maxItems":1},"sas":{"type":"TypeString","computed":true},"start":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_account_sas":{"schema":{"connection_string":{"type":"TypeString","required":true},"expiry":{"type":"TypeString","required":true},"https_only":{"type":"TypeBool","optional":true,"default":true},"ip_addresses":{"type":"TypeString","optional":true},"permissions":{"type":"TypeList","required":true,"elem":{"schema":{"add":{"type":"TypeBool","required":true},"create":{"type":"TypeBool","required":true},"delete":{"type":"TypeBool","required":true},"filter":{"type":"TypeBool","required":true},"list":{"type":"TypeBool","required":true},"process":{"type":"TypeBool","required":true},"read":{"type":"TypeBool","required":true},"tag":{"type":"TypeBool","required":true},"update":{"type":"TypeBool","required":true},"write":{"type":"TypeBool","required":true}}},"maxItems":1},"resource_types":{"type":"TypeList","required":true,"elem":{"schema":{"container":{"type":"TypeBool","required":true},"object":{"type":"TypeBool","required":true},"service":{"type":"TypeBool","required":true}}},"maxItems":1},"sas":{"type":"TypeString","computed":true},"services":{"type":"TypeList","required":true,"elem":{"schema":{"blob":{"type":"TypeBool","required":true},"file":{"type":"TypeBool","required":true},"queue":{"type":"TypeBool","required":true},"table":{"type":"TypeBool","required":true}}},"maxItems":1},"signed_version":{"type":"TypeString","optional":true,"default":"2022-11-02"},"start":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_blob":{"schema":{"access_tier":{"type":"TypeString","computed":true},"content_md5":{"type":"TypeString","computed":true},"content_type":{"type":"TypeString","computed":true},"encryption_scope":{"type":"TypeString","computed":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"storage_account_name":{"type":"TypeString","required":true},"storage_container_name":{"type":"TypeString","required":true},"type":{"type":"TypeString","computed":true},"url":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_storage_container":{"schema":{"container_access_type":{"type":"TypeString","computed":true},"default_encryption_scope":{"type":"TypeString","computed":true},"encryption_scope_override_enabled":{"type":"TypeBool","computed":true},"has_immutability_policy":{"type":"TypeBool","computed":true},"has_legal_hold":{"type":"TypeBool","computed":true},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_account_name":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_storage_containers":{"schema":{"containers":{"type":"TypeList","computed":true,"elem":{"schema":{"data_plane_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"resource_manager_id":{"type":"TypeString","computed":true}}}},"name_prefix":{"type":"TypeString","optional":true},"storage_account_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_encryption_scope":{"schema":{"key_vault_key_id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"source":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_management_policy":{"schema":{"rule":{"type":"TypeList","computed":true,"elem":{"schema":{"actions":{"type":"TypeList","computed":true,"elem":{"schema":{"base_blob":{"type":"TypeList","computed":true,"elem":{"schema":{"auto_tier_to_hot_from_cool_enabled":{"type":"TypeBool","computed":true},"delete_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"delete_after_days_since_last_access_time_greater_than":{"type":"TypeInt","computed":true},"delete_after_days_since_modification_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_last_access_time_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_modification_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_last_access_time_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_modification_greater_than":{"type":"TypeInt","computed":true},"tier_to_cool_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"tier_to_cool_after_days_since_last_access_time_greater_than":{"type":"TypeInt","computed":true},"tier_to_cool_after_days_since_modification_greater_than":{"type":"TypeInt","computed":true}}}},"snapshot":{"type":"TypeList","computed":true,"elem":{"schema":{"change_tier_to_archive_after_days_since_creation":{"type":"TypeInt","computed":true},"change_tier_to_cool_after_days_since_creation":{"type":"TypeInt","computed":true},"delete_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true}}}},"version":{"type":"TypeList","computed":true,"elem":{"schema":{"change_tier_to_archive_after_days_since_creation":{"type":"TypeInt","computed":true},"change_tier_to_cool_after_days_since_creation":{"type":"TypeInt","computed":true},"delete_after_days_since_creation":{"type":"TypeInt","computed":true},"tier_to_archive_after_days_since_last_tier_change_greater_than":{"type":"TypeInt","computed":true},"tier_to_cold_after_days_since_creation_greater_than":{"type":"TypeInt","computed":true}}}}}}},"enabled":{"type":"TypeBool","computed":true},"filters":{"type":"TypeList","computed":true,"elem":{"schema":{"blob_types":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"match_blob_index_tag":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"operation":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"prefix_match":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"name":{"type":"TypeString","computed":true}}}},"storage_account_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_queue":{"schema":{"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_share":{"schema":{"acl":{"type":"TypeList","optional":true,"elem":{"schema":{"access_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"expiry":{"type":"TypeString","computed":true},"permissions":{"type":"TypeString","computed":true},"start":{"type":"TypeString","computed":true}}}},"id":{"type":"TypeString","computed":true}}}},"metadata":{"type":"TypeMap","optional":true,"computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"quota":{"type":"TypeInt","computed":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_id":{"type":"TypeString","optional":true},"storage_account_name":{"type":"TypeString","optional":true}},"timeouts":{"read":5}},"azurerm_storage_sync":{"schema":{"incoming_traffic_policy":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_storage_sync_group":{"schema":{"name":{"type":"TypeString","required":true},"storage_sync_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_table":{"schema":{"acl":{"type":"TypeSet","computed":true,"elem":{"schema":{"access_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"expiry":{"type":"TypeString","computed":true},"permissions":{"type":"TypeString","computed":true},"start":{"type":"TypeString","computed":true}}}},"id":{"type":"TypeString","computed":true}}}},"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_manager_id":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_table_entities":{"schema":{"filter":{"type":"TypeString","required":true},"items":{"type":"TypeList","computed":true,"elem":{"schema":{"partition_key":{"type":"TypeString","computed":true},"properties":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"row_key":{"type":"TypeString","computed":true}}}},"select":{"type":"TypeList","optional":true,"elem":{"type":"TypeString"}},"storage_table_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_storage_table_entity":{"schema":{"entity":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"partition_key":{"type":"TypeString","required":true},"row_key":{"type":"TypeString","required":true},"storage_table_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_stream_analytics_job":{"schema":{"compatibility_level":{"type":"TypeString","computed":true},"data_locale":{"type":"TypeString","computed":true},"events_late_arrival_max_delay_in_seconds":{"type":"TypeInt","computed":true},"events_out_of_order_max_delay_in_seconds":{"type":"TypeInt","computed":true},"events_out_of_order_policy":{"type":"TypeString","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"job_id":{"type":"TypeString","computed":true},"last_output_time":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"output_error_policy":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"start_mode":{"type":"TypeString","computed":true},"start_time":{"type":"TypeString","computed":true},"streaming_units":{"type":"TypeInt","computed":true},"transformation_query":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_subnet":{"schema":{"address_prefix":{"type":"TypeString","computed":true},"address_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"default_outbound_access_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"network_security_group_id":{"type":"TypeString","computed":true},"private_endpoint_network_policies":{"type":"TypeString","computed":true},"private_link_service_network_policies_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"route_table_id":{"type":"TypeString","computed":true},"service_endpoints":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_network_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_subscription":{"schema":{"display_name":{"type":"TypeString","computed":true},"location_placement_id":{"type":"TypeString","computed":true},"quota_id":{"type":"TypeString","computed":true},"spending_limit":{"type":"TypeString","computed":true},"state":{"type":"TypeString","computed":true},"subscription_id":{"type":"TypeString","optional":true,"computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_subscription_template_deployment":{"schema":{"name":{"type":"TypeString","required":true},"output_content":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_subscriptions":{"schema":{"display_name_contains":{"type":"TypeString","optional":true},"display_name_prefix":{"type":"TypeString","optional":true},"subscriptions":{"type":"TypeList","computed":true,"elem":{"schema":{"display_name":{"type":"TypeString","computed":true},"id":{"type":"TypeString","computed":true},"location_placement_id":{"type":"TypeString","computed":true},"quota_id":{"type":"TypeString","computed":true},"spending_limit":{"type":"TypeString","computed":true},"state":{"type":"TypeString","computed":true},"subscription_id":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}}}}},"timeouts":{"read":5}},"azurerm_synapse_workspace":{"schema":{"connectivity_endpoints":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_system_center_virtual_machine_manager_inventory_items":{"schema":{"inventory_items":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"uuid":{"type":"TypeString","computed":true}}}},"inventory_type":{"type":"TypeString","required":true},"system_center_virtual_machine_manager_server_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_template_spec_version":{"schema":{"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"template_body":{"type":"TypeString","computed":true},"version":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_tenant_template_deployment":{"schema":{"name":{"type":"TypeString","required":true},"output_content":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_traffic_manager_geographical_location":{"schema":{"name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_traffic_manager_profile":{"schema":{"dns_config":{"type":"TypeList","computed":true,"elem":{"schema":{"relative_name":{"type":"TypeString","computed":true},"ttl":{"type":"TypeInt","computed":true}}}},"fqdn":{"type":"TypeString","computed":true},"monitor_config":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_header":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"value":{"type":"TypeString","computed":true}}}},"expected_status_code_ranges":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"interval_in_seconds":{"type":"TypeInt","computed":true},"path":{"type":"TypeString","computed":true},"port":{"type":"TypeInt","computed":true},"protocol":{"type":"TypeString","computed":true},"timeout_in_seconds":{"type":"TypeInt","computed":true},"tolerated_number_of_failures":{"type":"TypeInt","computed":true}}}},"name":{"type":"TypeString","required":true},"profile_status":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}},"traffic_routing_method":{"type":"TypeString","computed":true},"traffic_view_enabled":{"type":"TypeBool","optional":true}},"timeouts":{"read":5}},"azurerm_user_assigned_identity":{"schema":{"client_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"principal_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_desktop_application_group":{"schema":{"description":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"host_pool_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"workspace_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_desktop_host_pool":{"schema":{"custom_rdp_properties":{"type":"TypeString","computed":true},"description":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"load_balancer_type":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"maximum_sessions_allowed":{"type":"TypeInt","computed":true},"name":{"type":"TypeString","required":true},"personal_desktop_assignment_type":{"type":"TypeString","computed":true},"preferred_app_group_type":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"scheduled_agent_updates":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"day_of_week":{"type":"TypeString","computed":true},"hour_of_day":{"type":"TypeInt","computed":true}}}},"timezone":{"type":"TypeString","computed":true},"use_session_host_timezone":{"type":"TypeBool","computed":true}}}},"start_vm_on_connect":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"validate_environment":{"type":"TypeBool","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_desktop_workspace":{"schema":{"description":{"type":"TypeString","computed":true},"friendly_name":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_virtual_hub":{"schema":{"address_prefix":{"type":"TypeString","computed":true},"default_route_table_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_router_asn":{"type":"TypeInt","computed":true},"virtual_router_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_wan_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_hub_connection":{"schema":{"internet_security_enabled":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"remote_virtual_network_id":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"routing":{"type":"TypeList","computed":true,"elem":{"schema":{"associated_route_table_id":{"type":"TypeString","computed":true},"inbound_route_map_id":{"type":"TypeString","computed":true},"outbound_route_map_id":{"type":"TypeString","computed":true},"propagated_route_table":{"type":"TypeList","computed":true,"elem":{"schema":{"labels":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"route_table_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"static_vnet_local_route_override_criteria":{"type":"TypeString","computed":true},"static_vnet_route":{"type":"TypeList","computed":true,"elem":{"schema":{"address_prefixes":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"next_hop_ip_address":{"type":"TypeString","computed":true}}}}}}},"virtual_hub_id":{"type":"TypeString","computed":true},"virtual_hub_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_hub_route_table":{"schema":{"labels":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"route":{"type":"TypeList","computed":true,"elem":{"schema":{"destinations":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"destinations_type":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"next_hop":{"type":"TypeString","computed":true},"next_hop_type":{"type":"TypeString","computed":true}}}},"virtual_hub_id":{"type":"TypeString","computed":true},"virtual_hub_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_machine":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"power_state":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_machine_scale_set":{"schema":{"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"instances":{"type":"TypeList","computed":true,"elem":{"schema":{"computer_name":{"type":"TypeString","computed":true},"instance_id":{"type":"TypeString","computed":true},"latest_model_applied":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","computed":true},"power_state":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"public_ip_address":{"type":"TypeString","computed":true},"public_ip_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"virtual_machine_id":{"type":"TypeString","computed":true},"zone":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_interface":{"type":"TypeList","computed":true,"elem":{"schema":{"dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"enable_accelerated_networking":{"type":"TypeBool","computed":true},"enable_ip_forwarding":{"type":"TypeBool","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"application_gateway_backend_address_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"application_security_group_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancer_backend_address_pool_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"load_balancer_inbound_nat_rules_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"name":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true},"public_ip_address":{"type":"TypeList","computed":true,"elem":{"schema":{"domain_name_label":{"type":"TypeString","computed":true},"idle_timeout_in_minutes":{"type":"TypeInt","computed":true},"ip_tag":{"type":"TypeList","computed":true,"elem":{"schema":{"tag":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"public_ip_prefix_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"subnet_id":{"type":"TypeString","computed":true},"version":{"type":"TypeString","computed":true}}}},"name":{"type":"TypeString","computed":true},"network_security_group_id":{"type":"TypeString","computed":true},"primary":{"type":"TypeBool","computed":true}}}},"resource_group_name":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_network":{"schema":{"address_space":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"dns_servers":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"guid":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"subnets":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vnet_peerings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vnet_peerings_addresses":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_virtual_network_gateway":{"schema":{"active_active":{"type":"TypeBool","computed":true},"bgp_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","computed":true},"peer_weight":{"type":"TypeInt","computed":true},"peering_address":{"type":"TypeString","computed":true}}}},"custom_route":{"type":"TypeList","computed":true,"elem":{"schema":{"address_prefixes":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"default_local_network_gateway_id":{"type":"TypeString","computed":true},"enable_bgp":{"type":"TypeBool","computed":true},"generation":{"type":"TypeString","computed":true},"ip_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"id":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"private_ip_address":{"type":"TypeString","computed":true},"private_ip_address_allocation":{"type":"TypeString","computed":true},"public_ip_address_id":{"type":"TypeString","computed":true},"subnet_id":{"type":"TypeString","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"private_ip_address_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"type":{"type":"TypeString","computed":true},"vpn_client_configuration":{"type":"TypeList","computed":true,"elem":{"schema":{"aad_audience":{"type":"TypeString","computed":true},"aad_issuer":{"type":"TypeString","computed":true},"aad_tenant":{"type":"TypeString","computed":true},"address_space":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"radius_server_address":{"type":"TypeString","computed":true},"radius_server_secret":{"type":"TypeString","computed":true},"revoked_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"root_certificate":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"public_cert_data":{"type":"TypeString","computed":true}}}},"vpn_client_protocols":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}}}},"vpn_type":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_network_gateway_connection":{"schema":{"authorization_key":{"type":"TypeString","computed":true},"connection_protocol":{"type":"TypeString","computed":true},"dpd_timeout_seconds":{"type":"TypeInt","computed":true},"egress_bytes_transferred":{"type":"TypeInt","computed":true},"enable_bgp":{"type":"TypeBool","computed":true},"express_route_circuit_id":{"type":"TypeString","computed":true},"express_route_gateway_bypass":{"type":"TypeBool","computed":true},"ingress_bytes_transferred":{"type":"TypeInt","computed":true},"ipsec_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"dh_group":{"type":"TypeString","computed":true},"ike_encryption":{"type":"TypeString","computed":true},"ike_integrity":{"type":"TypeString","computed":true},"ipsec_encryption":{"type":"TypeString","computed":true},"ipsec_integrity":{"type":"TypeString","computed":true},"pfs_group":{"type":"TypeString","computed":true},"sa_datasize":{"type":"TypeInt","computed":true},"sa_lifetime":{"type":"TypeInt","computed":true}}}},"local_azure_ip_address_enabled":{"type":"TypeBool","computed":true},"local_network_gateway_id":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"peer_virtual_network_gateway_id":{"type":"TypeString","computed":true},"private_link_fast_path_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"resource_guid":{"type":"TypeString","computed":true},"routing_weight":{"type":"TypeInt","computed":true},"shared_key":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"traffic_selector_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"local_address_cidrs":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"remote_address_cidrs":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"type":{"type":"TypeString","computed":true},"use_policy_based_traffic_selectors":{"type":"TypeBool","computed":true},"virtual_network_gateway_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_virtual_network_peering":{"schema":{"allow_forwarded_traffic":{"type":"TypeBool","computed":true},"allow_gateway_transit":{"type":"TypeBool","computed":true},"allow_virtual_network_access":{"type":"TypeBool","computed":true},"name":{"type":"TypeString","required":true},"only_ipv6_peering_enabled":{"type":"TypeBool","computed":true},"peer_complete_virtual_networks_enabled":{"type":"TypeBool","computed":true},"remote_virtual_network_id":{"type":"TypeString","computed":true},"use_remote_gateways":{"type":"TypeBool","computed":true},"virtual_network_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_virtual_wan":{"schema":{"allow_branch_to_branch_traffic":{"type":"TypeBool","computed":true},"disable_vpn_encryption":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"office365_local_breakout_category":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_hub_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"vpn_site_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_vmware_private_cloud":{"schema":{"circuit":{"type":"TypeList","computed":true,"elem":{"schema":{"express_route_id":{"type":"TypeString","computed":true},"express_route_private_peering_id":{"type":"TypeString","computed":true},"primary_subnet_cidr":{"type":"TypeString","computed":true},"secondary_subnet_cidr":{"type":"TypeString","computed":true}}}},"hcx_cloud_manager_endpoint":{"type":"TypeString","computed":true},"internet_connection_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"management_cluster":{"type":"TypeList","computed":true,"elem":{"schema":{"hosts":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"id":{"type":"TypeInt","computed":true},"size":{"type":"TypeInt","computed":true}}}},"management_subnet_cidr":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"network_subnet_cidr":{"type":"TypeString","computed":true},"nsxt_certificate_thumbprint":{"type":"TypeString","computed":true},"nsxt_manager_endpoint":{"type":"TypeString","computed":true},"provisioning_subnet_cidr":{"type":"TypeString","computed":true},"resource_group_name":{"type":"TypeString","required":true},"sku_name":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vcenter_certificate_thumbprint":{"type":"TypeString","computed":true},"vcsa_endpoint":{"type":"TypeString","computed":true},"vmotion_subnet_cidr":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_vpn_gateway":{"schema":{"bgp_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"asn":{"type":"TypeInt","computed":true},"bgp_peering_address":{"type":"TypeString","computed":true},"instance_0_bgp_peering_address":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"default_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_id":{"type":"TypeString","computed":true},"tunnel_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"instance_1_bgp_peering_address":{"type":"TypeList","computed":true,"elem":{"schema":{"custom_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"default_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"ip_configuration_id":{"type":"TypeString","computed":true},"tunnel_ips":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"peer_weight":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"scale_unit":{"type":"TypeInt","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_hub_id":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_vpn_server_configuration":{"schema":{"azure_active_directory_authentication":{"type":"TypeList","computed":true,"elem":{"schema":{"audience":{"type":"TypeString","computed":true},"issuer":{"type":"TypeString","computed":true},"tenant":{"type":"TypeString","computed":true}}}},"client_revoked_certificate":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"client_root_certificate":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"public_cert_data":{"type":"TypeString","computed":true}}}},"ipsec_policy":{"type":"TypeList","computed":true,"elem":{"schema":{"dh_group":{"type":"TypeString","computed":true},"ike_encryption":{"type":"TypeString","computed":true},"ike_integrity":{"type":"TypeString","computed":true},"ipsec_encryption":{"type":"TypeString","computed":true},"ipsec_integrity":{"type":"TypeString","computed":true},"pfs_group":{"type":"TypeString","computed":true},"sa_data_size_kilobytes":{"type":"TypeInt","computed":true},"sa_lifetime_seconds":{"type":"TypeInt","computed":true}}}},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"radius":{"type":"TypeList","computed":true,"elem":{"schema":{"client_root_certificate":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"thumbprint":{"type":"TypeString","computed":true}}}},"server":{"type":"TypeList","computed":true,"elem":{"schema":{"address":{"type":"TypeString","computed":true},"score":{"type":"TypeInt","computed":true},"secret":{"type":"TypeString","computed":true}}}},"server_root_certificate":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","computed":true},"public_cert_data":{"type":"TypeString","computed":true}}}}}}},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"vpn_authentication_types":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"vpn_protocols":{"type":"TypeSet","computed":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_web_application_firewall_policy":{"schema":{"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"resource_group_name":{"type":"TypeString","required":true},"tags":{"type":"TypeMap","optional":true,"elem":{"type":"TypeString"}}},"timeouts":{"read":5}},"azurerm_web_pubsub":{"schema":{"aad_auth_enabled":{"type":"TypeBool","computed":true},"capacity":{"type":"TypeInt","computed":true},"external_ip":{"type":"TypeString","computed":true},"hostname":{"type":"TypeString","computed":true},"local_auth_enabled":{"type":"TypeBool","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"primary_access_key":{"type":"TypeString","computed":true},"primary_connection_string":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"public_port":{"type":"TypeInt","computed":true},"resource_group_name":{"type":"TypeString","required":true},"secondary_access_key":{"type":"TypeString","computed":true},"secondary_connection_string":{"type":"TypeString","computed":true},"server_port":{"type":"TypeInt","computed":true},"sku":{"type":"TypeString","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tls_client_cert_enabled":{"type":"TypeBool","computed":true},"version":{"type":"TypeString","computed":true}},"timeouts":{"read":5}},"azurerm_web_pubsub_private_link_resource":{"schema":{"shared_private_link_resource_types":{"type":"TypeList","computed":true,"elem":{"schema":{"description":{"type":"TypeString","computed":true},"subresource_name":{"type":"TypeString","computed":true}}}},"web_pubsub_id":{"type":"TypeString","required":true}},"timeouts":{"read":5}},"azurerm_windows_function_app":{"schema":{"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"The list of Allowed audience values considered when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret for the Client ID.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true}}}},"additional_login_parameters":{"type":"TypeMap","description":"The map of Login Parameters sent to the OpenID Connect authorization endpoint when a user logs in.","computed":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","description":"The default authentication provider used when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","description":"Is the Authentication / Authorization feature enabled?","computed":true},"facebook":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret":{"type":"TypeString","description":"The App Secret of the Facebook app used for Facebook Login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"github":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret of the GitHub app used for GitHub Login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret":{"type":"TypeString","description":"The client secret associated with the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes that requested as part of Google Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"issuer":{"type":"TypeString","description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens.","computed":true},"microsoft":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret":{"type":"TypeString","description":"The OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"runtime_version":{"type":"TypeString","description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Are platform-specific security tokens that are obtained during login flows durably stored?","computed":true},"twitter":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret":{"type":"TypeString","description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_client_action":{"type":"TypeString","description":"The action taken when an unauthenticated client attempts to access the app.","computed":true}}}},"auth_settings_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret_certificate_thumbprint":{"type":"TypeString","description":"The thumbprint of the certificate used for signing purposes.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true},"jwt_allowed_client_applications":{"type":"TypeList","description":"A list of Allowed Client Applications in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","description":"A list of Allowed Groups in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","description":"The Azure Tenant URI for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`","computed":true},"www_authentication_disabled":{"type":"TypeBool","description":"Is the www-authenticate provider omitted from the request?","computed":true}}}},"apple_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Apple web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Apple Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Apple Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"auth_enabled":{"type":"TypeBool","description":"Is the AuthV2 Settings be enabled.","computed":true},"azure_static_web_app_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with Azure Static Web App Authentication.","computed":true}}}},"config_file_path":{"type":"TypeString","description":"The path to the App Auth settings.","computed":true},"custom_oidc_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`","computed":true},"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with this Custom OIDC.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","description":"The name of the Custom OIDC Authentication Provider.","computed":true},"name_claim_type":{"type":"TypeString","description":"The name of the claim that contains the users name.","computed":true},"openid_configuration_endpoint":{"type":"TypeString","description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider.","computed":true},"scopes":{"type":"TypeList","description":"The list of the scopes that should be requested while authenticating.","computed":true,"elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","description":"The Default Authentication Provider used when the `unauthenticated_action` is set to `RedirectToLoginPage`.","computed":true},"excluded_paths":{"type":"TypeList","description":"The paths which are excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","computed":true,"elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"graph_api_version":{"type":"TypeString","description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"forward_proxy_convention":{"type":"TypeString","description":"The convention used to determine the url of the request made.","computed":true},"forward_proxy_custom_host_header_name":{"type":"TypeString","description":"The name of the header containing the host of the request.","computed":true},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","description":"The name of the header containing the scheme of the request.","computed":true},"github_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"http_route_api_prefix":{"type":"TypeString","description":"The prefix that precedes all the authentication and authorisation paths.","computed":true},"login":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","computed":true,"elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","computed":true},"cookie_expiration_time":{"type":"TypeString","description":"The time after the request is made when the session cookie will expire.","computed":true},"logout_endpoint":{"type":"TypeString","description":"The endpoint to which logout requests are made.","computed":true},"nonce_expiration_time":{"type":"TypeString","description":"The time after the request is made when the nonce will expire.","computed":true},"preserve_url_fragments_for_logins":{"type":"TypeBool","description":"Are the fragments from the request be preserved after the login request is made.","computed":true},"token_refresh_extension_time":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Is the Token Store configuration Enabled.","computed":true},"token_store_path":{"type":"TypeString","description":"The directory path in the App Filesystem in which the tokens are stored.","computed":true},"token_store_sas_setting_name":{"type":"TypeString","description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens.","computed":true},"validate_nonce":{"type":"TypeBool","description":"Is the nonce be validated while completing the login flow.","computed":true}}}},"microsoft_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"require_authentication":{"type":"TypeBool","description":"Is the authentication flow used for all requests.","computed":true},"require_https":{"type":"TypeBool","description":"Is HTTPS required on connections?","computed":true},"runtime_version":{"type":"TypeString","description":"The Runtime Version of the Authentication and Authorisation feature of this App.","computed":true},"twitter_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_action":{"type":"TypeString","computed":true}}}},"backup":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","description":"Is this backup job enabled?","computed":true},"name":{"type":"TypeString","description":"The name of this Backup.","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","description":"How often the backup should is executed in multiples of the `frequency_unit`.","computed":true},"frequency_unit":{"type":"TypeString","description":"The unit of time for how often the backup takes place.","computed":true},"keep_at_least_one_backup":{"type":"TypeBool","description":"Does the service keep at least one backup, regardless of age of backup.","computed":true},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","description":"After how many days are backups deleted.","computed":true},"start_time":{"type":"TypeString","description":"When the schedule should start working in RFC-3339 format.","computed":true}}}},"storage_account_url":{"type":"TypeString","description":"The SAS URL to the container.","computed":true}}}},"builtin_logging_enabled":{"type":"TypeBool","computed":true},"client_certificate_enabled":{"type":"TypeBool","computed":true},"client_certificate_exclusion_paths":{"type":"TypeString","description":"Paths to exclude when using client certificates, separated by ;","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of this Connection.","computed":true},"type":{"type":"TypeString","description":"The type of database.","computed":true},"value":{"type":"TypeString","description":"The connection string value.","computed":true}}}},"content_share_force_disabled":{"type":"TypeBool","computed":true},"custom_domain_verification_id":{"type":"TypeString","computed":true},"daily_memory_time_quota":{"type":"TypeInt","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true},"functions_extension_version":{"type":"TypeString","computed":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_plan_id":{"type":"TypeString","computed":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"api_definition_url":{"type":"TypeString","computed":true},"api_management_api_id":{"type":"TypeString","computed":true},"app_command_line":{"type":"TypeString","computed":true},"app_scale_limit":{"type":"TypeInt","computed":true},"app_service_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"disk_quota_mb":{"type":"TypeInt","computed":true},"retention_period_days":{"type":"TypeInt","computed":true}}}},"application_insights_connection_string":{"type":"TypeString","computed":true},"application_insights_key":{"type":"TypeString","computed":true},"application_stack":{"type":"TypeList","computed":true,"elem":{"schema":{"dotnet_version":{"type":"TypeString","computed":true},"java_version":{"type":"TypeString","computed":true},"node_version":{"type":"TypeString","computed":true},"powershell_core_version":{"type":"TypeString","computed":true},"use_custom_runtime":{"type":"TypeBool","computed":true},"use_dotnet_isolated_runtime":{"type":"TypeBool","computed":true}}}},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","description":"The list of origins that are allowed to make cross-origin calls.","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","description":"Are credentials allowed in CORS requests?","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"elastic_instance_minimum":{"type":"TypeInt","computed":true},"ftps_state":{"type":"TypeString","computed":true},"health_check_eviction_time_in_min":{"type":"TypeInt","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"ip_restriction_default_action":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"pre_warmed_instance_count":{"type":"TypeInt","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"runtime_scale_monitoring_enabled":{"type":"TypeBool","computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"scm_ip_restriction_default_action":{"type":"TypeString","computed":true},"scm_minimum_tls_version":{"type":"TypeString","computed":true},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker":{"type":"TypeBool","computed":true},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"windows_fx_version":{"type":"TypeString","computed":true},"worker_count":{"type":"TypeInt","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connection_string_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"storage_account_access_key":{"type":"TypeString","computed":true},"storage_account_name":{"type":"TypeString","computed":true},"storage_key_vault_secret_id":{"type":"TypeString","description":"The Key Vault Secret ID, including version, that contains the Connection String used to connect to the storage account for this Function App.","computed":true},"storage_uses_managed_identity":{"type":"TypeBool","computed":true},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","computed":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":10}},"azurerm_windows_web_app":{"schema":{"app_settings":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"auth_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"The list of Allowed audience values considered when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret for the Client ID.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true}}}},"additional_login_parameters":{"type":"TypeMap","description":"The map of Login Parameters sent to the OpenID Connect authorization endpoint when a user logs in.","computed":true,"elem":{"type":"TypeString"}},"allowed_external_redirect_urls":{"type":"TypeList","description":"Specifies a list of External URLs that can be redirected to as part of logging in or logging out of the Windows Web App.","computed":true,"elem":{"type":"TypeString"}},"default_provider":{"type":"TypeString","description":"The default authentication provider used when multiple providers are configured. Possible values include: `AzureActiveDirectory`, `Facebook`, `Google`, `MicrosoftAccount`, `Twitter`, `Github`.","computed":true},"enabled":{"type":"TypeBool","description":"Is the Authentication / Authorization feature enabled?","computed":true},"facebook":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret":{"type":"TypeString","description":"The App Secret of the Facebook app used for Facebook Login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"github":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret":{"type":"TypeString","description":"The Client Secret of the GitHub app used for GitHub Login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret":{"type":"TypeString","description":"The client secret associated with the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes that requested as part of Google Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"issuer":{"type":"TypeString","description":"The OpenID Connect Issuer URI that represents the entity which issues access tokens.","computed":true},"microsoft":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret":{"type":"TypeString","description":"The OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"oauth_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"runtime_version":{"type":"TypeString","description":"The RuntimeVersion of the Authentication / Authorization feature in use.","computed":true},"token_refresh_extension_hours":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Are platform-specific security tokens that are obtained during login flows durably stored?","computed":true},"twitter":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret":{"type":"TypeString","description":"The OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_client_action":{"type":"TypeString","description":"The action taken when an unauthenticated client attempts to access the app.","computed":true}}}},"auth_settings_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"active_directory_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_applications":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.","computed":true,"elem":{"type":"TypeString"}},"allowed_groups":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"allowed_identities":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The ID of the Client to use to authenticate with Azure Active Directory.","computed":true},"client_secret_certificate_thumbprint":{"type":"TypeString","description":"The thumbprint of the certificate used for signing purposes.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the client secret of the Client.","computed":true},"jwt_allowed_client_applications":{"type":"TypeList","description":"A list of Allowed Client Applications in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"jwt_allowed_groups":{"type":"TypeList","description":"A list of Allowed Groups in the JWT Claim.","computed":true,"elem":{"type":"TypeString"}},"login_parameters":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"tenant_auth_endpoint":{"type":"TypeString","description":"The Azure Tenant URI for the Authenticating Tenant. e.g. `https://login.microsoftonline.com/v2.0/{tenant-guid}/`","computed":true},"www_authentication_disabled":{"type":"TypeBool","description":"Is the www-authenticate provider omitted from the request?","computed":true}}}},"apple_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Apple web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Apple Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of Apple Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"auth_enabled":{"type":"TypeBool","description":"Is the AuthV2 Settings be enabled.","computed":true},"azure_static_web_app_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with Azure Static Web App Authentication.","computed":true}}}},"config_file_path":{"type":"TypeString","description":"The path to the App Auth settings.","computed":true},"custom_oidc_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"authorisation_endpoint":{"type":"TypeString","description":"The endpoint to make the Authorisation Request.","computed":true},"certification_uri":{"type":"TypeString","description":"The endpoint that provides the keys necessary to validate the token.","computed":true},"client_credential_method":{"type":"TypeString","description":"The Client Credential Method used. Currently the only supported value is `ClientSecretPost`","computed":true},"client_id":{"type":"TypeString","description":"The ID of the Client used to authenticate with this Custom OIDC.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The App Setting name that contains the secret for this Custom OIDC Client.","computed":true},"issuer_endpoint":{"type":"TypeString","description":"The endpoint that issued the Token.","computed":true},"name":{"type":"TypeString","description":"The name of the Custom OIDC Authentication Provider.","computed":true},"name_claim_type":{"type":"TypeString","description":"The name of the claim that contains the users name.","computed":true},"openid_configuration_endpoint":{"type":"TypeString","description":"The endpoint that contains all the configuration endpoints for this Custom OIDC provider.","computed":true},"scopes":{"type":"TypeList","description":"The list of the scopes that should be requested while authenticating.","computed":true,"elem":{"type":"TypeString"}},"token_endpoint":{"type":"TypeString","description":"The endpoint used to request a Token.","computed":true}}}},"default_provider":{"type":"TypeString","description":"The Default Authentication Provider used when the `unauthenticated_action` is set to `RedirectToLoginPage`.","computed":true},"excluded_paths":{"type":"TypeList","description":"The paths which are excluded from the `unauthenticated_action` when it is set to `RedirectToLoginPage`.","computed":true,"elem":{"type":"TypeString"}},"facebook_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"app_id":{"type":"TypeString","description":"The App ID of the Facebook app used for login.","computed":true},"app_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `app_secret` value used for Facebook Login.","computed":true},"graph_api_version":{"type":"TypeString","description":"The version of the Facebook API to be used while logging in.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes to be requested as part of Facebook Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"forward_proxy_convention":{"type":"TypeString","description":"The convention used to determine the url of the request made.","computed":true},"forward_proxy_custom_host_header_name":{"type":"TypeString","description":"The name of the header containing the host of the request.","computed":true},"forward_proxy_custom_scheme_header_name":{"type":"TypeString","description":"The name of the header containing the scheme of the request.","computed":true},"github_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"client_id":{"type":"TypeString","description":"The ID of the GitHub app used for login.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for GitHub Login.","computed":true},"login_scopes":{"type":"TypeList","description":"Specifies a list of OAuth 2.0 scopes that will be requested as part of GitHub Login authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"google_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OpenID Connect Client ID for the Google web application.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the `client_secret` value used for Google Login.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of OAuth 2.0 scopes requested as part of Google Sign-In authentication. If not specified, \"openid\", \"profile\", and \"email\" are used as default scopes.","computed":true,"elem":{"type":"TypeString"}}}}},"http_route_api_prefix":{"type":"TypeString","description":"The prefix that precedes all the authentication and authorisation paths.","computed":true},"login":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_external_redirect_urls":{"type":"TypeList","description":"External URLs that can be redirected to as part of logging in or logging out of the app. This is an advanced setting typically only needed by Windows Store application backends. **Note:** URLs within the current domain are always implicitly allowed.","computed":true,"elem":{"type":"TypeString"}},"cookie_expiration_convention":{"type":"TypeString","computed":true},"cookie_expiration_time":{"type":"TypeString","description":"The time after the request is made when the session cookie will expire.","computed":true},"logout_endpoint":{"type":"TypeString","description":"The endpoint to which logout requests are made.","computed":true},"nonce_expiration_time":{"type":"TypeString","description":"The time after the request is made when the nonce will expire.","computed":true},"preserve_url_fragments_for_logins":{"type":"TypeBool","description":"Are the fragments from the request be preserved after the login request is made.","computed":true},"token_refresh_extension_time":{"type":"TypeFloat","description":"The number of hours after session token expiration that a session token can be used to call the token refresh API.","computed":true},"token_store_enabled":{"type":"TypeBool","description":"Is the Token Store configuration Enabled.","computed":true},"token_store_path":{"type":"TypeString","description":"The directory path in the App Filesystem in which the tokens are stored.","computed":true},"token_store_sas_setting_name":{"type":"TypeString","description":"The name of the app setting which contains the SAS URL of the blob storage containing the tokens.","computed":true},"validate_nonce":{"type":"TypeBool","description":"Is the nonce be validated while completing the login flow.","computed":true}}}},"microsoft_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_audiences":{"type":"TypeList","description":"Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.","computed":true,"elem":{"type":"TypeString"}},"client_id":{"type":"TypeString","description":"The OAuth 2.0 client ID that was created for the app used for authentication.","computed":true},"client_secret_setting_name":{"type":"TypeString","description":"The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.","computed":true},"login_scopes":{"type":"TypeList","description":"The list of Login scopes that will be requested as part of Microsoft Account authentication.","computed":true,"elem":{"type":"TypeString"}}}}},"require_authentication":{"type":"TypeBool","description":"Is the authentication flow used for all requests.","computed":true},"require_https":{"type":"TypeBool","description":"Is HTTPS required on connections?","computed":true},"runtime_version":{"type":"TypeString","description":"The Runtime Version of the Authentication and Authorisation feature of this App.","computed":true},"twitter_v2":{"type":"TypeList","computed":true,"elem":{"schema":{"consumer_key":{"type":"TypeString","description":"The OAuth 1.0a consumer key of the Twitter application used for sign-in.","computed":true},"consumer_secret_setting_name":{"type":"TypeString","description":"The app setting name that contains the OAuth 1.0a consumer secret of the Twitter application used for sign-in.","computed":true}}}},"unauthenticated_action":{"type":"TypeString","computed":true}}}},"backup":{"type":"TypeList","computed":true,"elem":{"schema":{"enabled":{"type":"TypeBool","description":"Is this backup job enabled?","computed":true},"name":{"type":"TypeString","description":"The name of this Backup.","computed":true},"schedule":{"type":"TypeList","computed":true,"elem":{"schema":{"frequency_interval":{"type":"TypeInt","description":"How often the backup should is executed in multiples of the `frequency_unit`.","computed":true},"frequency_unit":{"type":"TypeString","description":"The unit of time for how often the backup takes place.","computed":true},"keep_at_least_one_backup":{"type":"TypeBool","description":"Does the service keep at least one backup, regardless of age of backup.","computed":true},"last_execution_time":{"type":"TypeString","description":"The time the backup was last attempted.","computed":true},"retention_period_days":{"type":"TypeInt","description":"After how many days are backups deleted.","computed":true},"start_time":{"type":"TypeString","description":"When the schedule should start working in RFC-3339 format.","computed":true}}}},"storage_account_url":{"type":"TypeString","description":"The SAS URL to the container.","computed":true}}}},"client_affinity_enabled":{"type":"TypeBool","computed":true},"client_certificate_enabled":{"type":"TypeBool","computed":true},"client_certificate_exclusion_paths":{"type":"TypeString","description":"Paths to exclude when using client certificates, separated by ;","computed":true},"client_certificate_mode":{"type":"TypeString","computed":true},"connection_string":{"type":"TypeSet","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The name of this Connection.","computed":true},"type":{"type":"TypeString","description":"The type of database.","computed":true},"value":{"type":"TypeString","description":"The connection string value.","computed":true}}}},"custom_domain_verification_id":{"type":"TypeString","computed":true},"default_hostname":{"type":"TypeString","computed":true},"enabled":{"type":"TypeBool","computed":true},"ftp_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true},"hosting_environment_id":{"type":"TypeString","computed":true},"https_only":{"type":"TypeBool","computed":true},"identity":{"type":"TypeList","computed":true,"elem":{"schema":{"identity_ids":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"principal_id":{"type":"TypeString","computed":true},"tenant_id":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"kind":{"type":"TypeString","computed":true},"location":{"type":"TypeString","computed":true},"logs":{"type":"TypeList","computed":true,"elem":{"schema":{"application_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","computed":true,"elem":{"schema":{"level":{"type":"TypeString","computed":true},"retention_in_days":{"type":"TypeInt","computed":true},"sas_url":{"type":"TypeString","computed":true}}}},"file_system_level":{"type":"TypeString","computed":true}}}},"detailed_error_messages":{"type":"TypeBool","computed":true},"failed_request_tracing":{"type":"TypeBool","computed":true},"http_logs":{"type":"TypeList","computed":true,"elem":{"schema":{"azure_blob_storage":{"type":"TypeList","computed":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","computed":true},"sas_url":{"type":"TypeString","computed":true}}}},"file_system":{"type":"TypeList","computed":true,"elem":{"schema":{"retention_in_days":{"type":"TypeInt","computed":true},"retention_in_mb":{"type":"TypeInt","computed":true}}}}}}}}}},"name":{"type":"TypeString","required":true},"outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"outbound_ip_addresses":{"type":"TypeString","computed":true},"possible_outbound_ip_address_list":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"possible_outbound_ip_addresses":{"type":"TypeString","computed":true},"public_network_access_enabled":{"type":"TypeBool","computed":true},"resource_group_name":{"type":"TypeString","required":true},"service_plan_id":{"type":"TypeString","computed":true},"site_config":{"type":"TypeList","computed":true,"elem":{"schema":{"always_on":{"type":"TypeBool","computed":true},"api_definition_url":{"type":"TypeString","computed":true},"api_management_api_id":{"type":"TypeString","computed":true},"app_command_line":{"type":"TypeString","computed":true},"application_stack":{"type":"TypeList","computed":true,"elem":{"schema":{"current_stack":{"type":"TypeString","computed":true},"docker_image_name":{"type":"TypeString","computed":true},"docker_registry_password":{"type":"TypeString","computed":true},"docker_registry_url":{"type":"TypeString","computed":true},"docker_registry_username":{"type":"TypeString","computed":true},"dotnet_core_version":{"type":"TypeString","computed":true},"dotnet_version":{"type":"TypeString","computed":true},"java_container":{"type":"TypeString","computed":true},"java_container_version":{"type":"TypeString","computed":true},"java_embedded_server_enabled":{"type":"TypeBool","computed":true},"java_version":{"type":"TypeString","computed":true},"node_version":{"type":"TypeString","computed":true},"php_version":{"type":"TypeString","computed":true},"python":{"type":"TypeBool","computed":true},"python_version":{"type":"TypeString","computed":true},"tomcat_version":{"type":"TypeString","computed":true}}}},"auto_heal_setting":{"type":"TypeList","computed":true,"elem":{"schema":{"action":{"type":"TypeList","computed":true,"elem":{"schema":{"action_type":{"type":"TypeString","computed":true},"custom_action":{"type":"TypeList","computed":true,"elem":{"schema":{"executable":{"type":"TypeString","computed":true},"parameters":{"type":"TypeString","computed":true}}}},"minimum_process_execution_time":{"type":"TypeString","computed":true}}}},"trigger":{"type":"TypeList","computed":true,"elem":{"schema":{"private_memory_kb":{"type":"TypeInt","computed":true},"requests":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true}}}},"slow_request":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"time_taken":{"type":"TypeString","computed":true}}}},"slow_request_with_path":{"type":"TypeList","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"time_taken":{"type":"TypeString","computed":true}}}},"status_code":{"type":"TypeSet","computed":true,"elem":{"schema":{"count":{"type":"TypeInt","computed":true},"interval":{"type":"TypeString","computed":true},"path":{"type":"TypeString","computed":true},"status_code_range":{"type":"TypeString","computed":true},"sub_status":{"type":"TypeInt","computed":true},"win32_status_code":{"type":"TypeInt","computed":true}}}}}}}}}},"container_registry_managed_identity_client_id":{"type":"TypeString","computed":true},"container_registry_use_managed_identity":{"type":"TypeBool","computed":true},"cors":{"type":"TypeList","computed":true,"elem":{"schema":{"allowed_origins":{"type":"TypeList","description":"The list of origins that are allowed to make cross-origin calls.","computed":true,"elem":{"type":"TypeString"}},"support_credentials":{"type":"TypeBool","description":"Are credentials allowed in CORS requests?","computed":true}}}},"default_documents":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"detailed_error_logging_enabled":{"type":"TypeBool","computed":true},"ftps_state":{"type":"TypeString","computed":true},"handler_mapping":{"type":"TypeSet","computed":true,"elem":{"schema":{"arguments":{"type":"TypeString","computed":true},"extension":{"type":"TypeString","computed":true},"script_processor_path":{"type":"TypeString","computed":true}}}},"health_check_eviction_time_in_min":{"type":"TypeInt","computed":true},"health_check_path":{"type":"TypeString","computed":true},"http2_enabled":{"type":"TypeBool","computed":true},"ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"ip_restriction_default_action":{"type":"TypeString","computed":true},"load_balancing_mode":{"type":"TypeString","computed":true},"local_mysql_enabled":{"type":"TypeBool","computed":true},"managed_pipeline_mode":{"type":"TypeString","computed":true},"minimum_tls_version":{"type":"TypeString","computed":true},"remote_debugging_enabled":{"type":"TypeBool","computed":true},"remote_debugging_version":{"type":"TypeString","computed":true},"scm_ip_restriction":{"type":"TypeList","optional":true,"computed":true,"elem":{"schema":{"action":{"type":"TypeString","description":"The action to take.","computed":true},"description":{"type":"TypeString","description":"The description of the ip restriction rule.","computed":true},"headers":{"type":"TypeList","computed":true,"elem":{"schema":{"x_azure_fdid":{"type":"TypeList","description":"The list of Azure Front Door IDs.","computed":true,"elem":{"type":"TypeString"}},"x_fd_health_probe":{"type":"TypeList","description":"Specifies if a Front Door Health Probe is expected.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_for":{"type":"TypeList","description":"The list of addresses for which matching is applied.","computed":true,"elem":{"type":"TypeString"}},"x_forwarded_host":{"type":"TypeList","description":"The list of Hosts for which matching will be applied.","computed":true,"elem":{"type":"TypeString"}}}}},"ip_address":{"type":"TypeString","description":"The CIDR notation of the IP or IP Range to match.","computed":true},"name":{"type":"TypeString","description":"The name used for this `ip_restriction`.","computed":true},"priority":{"type":"TypeInt","description":"The priority value of this `ip_restriction`.","computed":true},"service_tag":{"type":"TypeString","description":"The Service Tag used for this IP Restriction.","computed":true},"virtual_network_subnet_id":{"type":"TypeString","description":"The Virtual Network Subnet ID used for this IP Restriction.","computed":true}}}},"scm_ip_restriction_default_action":{"type":"TypeString","computed":true},"scm_minimum_tls_version":{"type":"TypeString","computed":true},"scm_type":{"type":"TypeString","computed":true},"scm_use_main_ip_restriction":{"type":"TypeBool","computed":true},"use_32_bit_worker":{"type":"TypeBool","computed":true},"virtual_application":{"type":"TypeList","computed":true,"elem":{"schema":{"physical_path":{"type":"TypeString","computed":true},"preload":{"type":"TypeBool","computed":true},"virtual_directory":{"type":"TypeList","computed":true,"elem":{"schema":{"physical_path":{"type":"TypeString","computed":true},"virtual_path":{"type":"TypeString","computed":true}}}},"virtual_path":{"type":"TypeString","computed":true}}}},"vnet_route_all_enabled":{"type":"TypeBool","computed":true},"websockets_enabled":{"type":"TypeBool","computed":true},"windows_fx_version":{"type":"TypeString","computed":true},"worker_count":{"type":"TypeInt","computed":true}}}},"site_credential":{"type":"TypeList","computed":true,"elem":{"schema":{"name":{"type":"TypeString","description":"The Site Credentials Username used for publishing.","computed":true},"password":{"type":"TypeString","description":"The Site Credentials Password used for publishing.","computed":true}}}},"sticky_settings":{"type":"TypeList","computed":true,"elem":{"schema":{"app_setting_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}},"connection_string_names":{"type":"TypeList","computed":true,"elem":{"type":"TypeString"}}}}},"storage_account":{"type":"TypeList","computed":true,"elem":{"schema":{"access_key":{"type":"TypeString","computed":true},"account_name":{"type":"TypeString","computed":true},"mount_path":{"type":"TypeString","computed":true},"name":{"type":"TypeString","computed":true},"share_name":{"type":"TypeString","computed":true},"type":{"type":"TypeString","computed":true}}}},"tags":{"type":"TypeMap","computed":true,"elem":{"type":"TypeString"}},"virtual_network_subnet_id":{"type":"TypeString","computed":true},"webdeploy_publish_basic_authentication_enabled":{"type":"TypeBool","computed":true}},"timeouts":{"read":10}}}}} diff --git a/.teamcity/components/generated/services.kt b/.teamcity/components/generated/services.kt index 948ed378b7d4..e6d7678a75f5 100644 --- a/.teamcity/components/generated/services.kt +++ b/.teamcity/components/generated/services.kt @@ -48,6 +48,7 @@ var services = mapOf( "devtestlabs" to "Dev Test", "digitaltwins" to "Digital Twins", "domainservices" to "DomainServices", + "dynatrace" to "Dynatrace", "elastic" to "Elastic", "elasticsan" to "ElasticSan", "eventgrid" to "EventGrid", @@ -82,6 +83,7 @@ var services = mapOf( "mssqlmanagedinstance" to "Microsoft SQL Server Managed Instances", "mixedreality" to "Mixed Reality", "mobilenetwork" to "Mobile Network", + "mongocluster" to "Mongo Cluster", "monitor" to "Monitor", "mysql" to "MySQL", "netapp" to "NetApp", @@ -124,6 +126,7 @@ var services = mapOf( "synapse" to "Synapse", "systemcentervirtualmachinemanager" to "System Center Virtual Machine Manager", "trafficmanager" to "Traffic Manager", + "codesigning" to "Trusted Signing", "vmware" to "VMware", "videoindexer" to "VideoIndexer", "voiceservices" to "Voice Services", diff --git a/.teamcity/components/settings.kt b/.teamcity/components/settings.kt index bde44a845c6f..54ee3c4e52ff 100644 --- a/.teamcity/components/settings.kt +++ b/.teamcity/components/settings.kt @@ -125,6 +125,9 @@ var serviceTestConfigurationOverrides = mapOf( // MobileNetwork is only available in certain locations "mobilenetwork" to testConfiguration(locationOverride = LocationConfiguration("eastus", "westeurope", "centraluseuap", false)), + // Mongocluster free tier is currently only available in southindia + "mongocluster" to testConfiguration(locationOverride = LocationConfiguration("westeurope", "eastus2", "southindia", false)), + // MSSQl uses app service which is only available in certain locations "mssql" to testConfiguration(locationOverride = LocationConfiguration("westeurope", "francecentral", "eastus2", false)), diff --git a/CHANGELOG.md b/CHANGELOG.md index 0648b835c509..b5affb525fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,191 @@ -## 4.7.0 (Unreleased) +## 4.12.0 (Unreleased) + +BUG FIXES: + +* `azurerm_application_insights_api_key` - fix condition that nil checks the list of available API keys to prevent an indefinate loop when keys created outside of Terraform are present [GH-28037] +* `azurerm_virtual_network_gateway` - fix crash issue when specifying `root_certificate ` or `revoked_certificate` [GH-28099] + +ENHANCEMENTS: + +* Data Source: `azurerm_logic_app_standard` - add support for the `public_network_access` property [GH-27913] +* Data Source: `azurerm_search_service` - add support for the `customer_managed_key_encryption_compliance_status` property [GH-27478] +* `azurerm_eventhub` - deprecate `namespace_name` and `resource_group_name` in favour of `namespace_id` [GH-28055] +* `azurerm_logic_app_standard` - add support for the `public_network_access` property [GH-27913] +* `azurerm_search_service` - add support for the `customer_managed_key_encryption_compliance_status` property [GH-27478] + +## 4.11.0 (November 22, 2024) + +NOTES: +* New [ephemeral resources](https://developer.hashicorp.com/terraform/language/v1.10.x/resources/ephemeral) `azurerm_key_vault_certificate` and `azurerm_key_vault_secret` now support [ephemeral values](https://developer.hashicorp.com/terraform/language/v1.10.x/values/variables#exclude-values-from-state) + +FEATURES: + +* **New Ephemeral Resource**: `azurerm_key_vault_certificate` ([#28083](https://github.com/hashicorp/terraform-provider-azurerm/issues/28083)) +* **New Ephemeral Resource**: `azurerm_key_vault_secret` ([#28083](https://github.com/hashicorp/terraform-provider-azurerm/issues/28083)) +* **New Resource**: `azurerm_eventgrid_namespace` ([#27682](https://github.com/hashicorp/terraform-provider-azurerm/issues/27682)) + +ENHANCEMENTS: + +* dependencies: update `hashicorp/go-azure-sdk` to `v0.20241118.1115603` ([#28075](https://github.com/hashicorp/terraform-provider-azurerm/issues/28075)) +* `batch` - upgrade api version to `2024-07-01` ([#27982](https://github.com/hashicorp/terraform-provider-azurerm/issues/27982)) +* `containerregistry` - upgrade api version to `2023-11-01-preview` ([#27983](https://github.com/hashicorp/terraform-provider-azurerm/issues/27983)) +* `azurerm_application_gateway` - `1.1` is now accepted as a valid `rule_set_version` in the `waf_configuration` block ([#28039](https://github.com/hashicorp/terraform-provider-azurerm/issues/28039)) +* `azurerm_arc_machine` - add support for the `identity` and `tags` properties ([#27987](https://github.com/hashicorp/terraform-provider-azurerm/issues/27987)) +* `azurerm_container_app` - `secret.name` now accepts up to 253 characters and `.` ([#27935](https://github.com/hashicorp/terraform-provider-azurerm/issues/27935)) +* `azurerm_network_manager` - `scope_accesses` now accepts `Routing` ([#28033](https://github.com/hashicorp/terraform-provider-azurerm/issues/28033)) +* `azurerm_network_watcher_flow_log` - add support for the `target_resource_id` property ([#26015](https://github.com/hashicorp/terraform-provider-azurerm/issues/26015)) +* `azurerm_role_assignment` - `condition_version` will be defaulted to `2.0` when `condition` has been set ([#27189](https://github.com/hashicorp/terraform-provider-azurerm/issues/27189)) +* `azurerm_subnet` - `Informatica.DataManagement/organizations` is a valid `service_delegation` ([#27993](https://github.com/hashicorp/terraform-provider-azurerm/issues/27993)) +* `azurerm_virtual_network` - `Informatica.DataManagement/organizations` is a valid `service_delegation` ([#27993](https://github.com/hashicorp/terraform-provider-azurerm/issues/27993)) +* `azurerm_web_application_firewall_policy` - `1.1` is now accepted as a valid `version` for `Microsoft_BotManagerRuleSet` rule types ([#28039](https://github.com/hashicorp/terraform-provider-azurerm/issues/28039)) + +BUG FIXES: + +* `azurerm_api_management` - `public_ip_address_id` is no longer required when `zone` has been set ([#27976](https://github.com/hashicorp/terraform-provider-azurerm/issues/27976)) +* `azurerm_api_management_diagnostic` - raise and error when `operation_name_format` is used with and `identity` that is not `applicationinsights` ([#27630](https://github.com/hashicorp/terraform-provider-azurerm/issues/27630)) +* `azurerm_api_management_api_diagnostic` - raise and error when `operation_name_format` is used with and `identity` that is not `applicationinsights` ([#27630](https://github.com/hashicorp/terraform-provider-azurerm/issues/27630)) +* `azurerm_application_gateway` - `rewrite_rule_set` can be supplied when using `Basic` sku ([#28011](https://github.com/hashicorp/terraform-provider-azurerm/issues/28011)) +* `azurerm_container_registry_token_password` - correctly mark as gone if container registry token doesn't exist ([#27232](https://github.com/hashicorp/terraform-provider-azurerm/issues/27232)) +* `azurerm_kusto_cluster` - `allowed_fqdn` and `allowed_ip_ranges` can now be set to empty lists ([#27529](https://github.com/hashicorp/terraform-provider-azurerm/issues/27529)) +* `azurerm_linux_function_app_slot` - create content settings when using a consumpton plan ([#25412](https://github.com/hashicorp/terraform-provider-azurerm/issues/25412)) +* `azurerm_virtual_network_gatway` - updating `ip_configuration` now recreates the resource ([#27828](https://github.com/hashicorp/terraform-provider-azurerm/issues/27828)) + + +## 4.10.0 (November 14, 2024) + +BREAKING CHANGES: + +* dependencies - update `cognitive` to `2024-10-01`, due to a behavioural change in this version of the API, the `primary_access_key` and `secondary_access_key` can not be retrieved if `local_authentication_enabled` has been set to `false`. These properties that may have had values previously will now be empty. This has affected the `azurerm_ai_services` and `azurerm_cognitive_account` resources as well as the `azurerm_cognitive_account` data source ([#27851](https://github.com/hashicorp/terraform-provider-azurerm/issues/27851)) + +FEATURES: + +* **New Data Source**: `azurerm_key_vault_managed_hardware_security_module_key` ([#27827](https://github.com/hashicorp/terraform-provider-azurerm/issues/27827)) +* **New Resource**: `azurerm_netapp_backup_vault` ([#27188](https://github.com/hashicorp/terraform-provider-azurerm/issues/27188)) +* **New Resource**: `azurerm_netapp_backup_policy` ([#27188](https://github.com/hashicorp/terraform-provider-azurerm/issues/27188)) + +ENHANCEMENTS: + +* dependencies: update `terraform-plugin-framework` to version `v1.13.0` ([#27936](https://github.com/hashicorp/terraform-provider-azurerm/issues/27936)) +* dependencies: update `terraform-plugin-framework-validators` to version `v0.14.0` ([#27936](https://github.com/hashicorp/terraform-provider-azurerm/issues/27936)) +* dependencies: update `terraform-plugin-go` to version `v0.25.0` ([#27936](https://github.com/hashicorp/terraform-provider-azurerm/issues/27936)) +* dependencies: update `terraform-plugin-mux` to version `v0.17.0` ([#27936](https://github.com/hashicorp/terraform-provider-azurerm/issues/27936)) +* dependencies: update `terraform-plugin-sdk/v2` to version `v2.35.0` ([#27936](https://github.com/hashicorp/terraform-provider-azurerm/issues/27936)) +* Data Source: `azurerm_bastion_host` - add support for the `zones` property ([#27909](https://github.com/hashicorp/terraform-provider-azurerm/issues/27909)) +* `azurerm_application_gateway` - support more values for the `status_code` property ([#27535](https://github.com/hashicorp/terraform-provider-azurerm/issues/27535)) +* `azurerm_bastion_host` - support for the `zones` property ([#27909](https://github.com/hashicorp/terraform-provider-azurerm/issues/27909)) +* `azurerm_communication_service` - support for `usgov` region ([#27919](https://github.com/hashicorp/terraform-provider-azurerm/issues/27919)) +* `azurerm_email_communication_service` - support for `usgov` region added ([#27919](https://github.com/hashicorp/terraform-provider-azurerm/issues/27919)) +* `azurerm_linux_function_app` - support for .NET 9 ([#27879](https://github.com/hashicorp/terraform-provider-azurerm/issues/27879)) +* `azurerm_linux_function_app_slot` - support for .NET 9 ([#27879](https://github.com/hashicorp/terraform-provider-azurerm/issues/27879)) +* `azurerm_linux_web_app` - support for .NET 9 ([#27879](https://github.com/hashicorp/terraform-provider-azurerm/issues/27879)) +* `azurerm_linux_web_app_slot` - support for .NET 9 ([#27879](https://github.com/hashicorp/terraform-provider-azurerm/issues/27879)) +* `azurerm_windows_web_app` - support for .NET 9 ([#27879](https://github.com/hashicorp/terraform-provider-azurerm/issues/27879)) +* `azurerm_windows_web_app_slot` - support for .NET 9 ([#27879](https://github.com/hashicorp/terraform-provider-azurerm/issues/27879)) +* `azurerm_windows_function_app` - support for .NET 9 ([#27879](https://github.com/hashicorp/terraform-provider-azurerm/issues/27879)) +* `azurerm_windows_function_app_slot` - support for .NET 9 ([#27879](https://github.com/hashicorp/terraform-provider-azurerm/issues/27879)) + +BUG FIXES: + +* `azurerm_log_analytics_workspace_table` - use the subscription from workspace ID ([#27590](https://github.com/hashicorp/terraform-provider-azurerm/issues/27590)) +* `azurerm_traffic_manager_external_endpoint` - the value for `priority` will be dynamically assigned by the API ([#27966](https://github.com/hashicorp/terraform-provider-azurerm/issues/27966)) +* `azurerm_traffic_manager_azure_endpoint` - the value for `priority` will be dynamically assigned by the API ([#27966](https://github.com/hashicorp/terraform-provider-azurerm/issues/27966)) + + +## 4.9.0 (November 08, 2024) + +FEATURES: + +* **New Resource**: `azurerm_dynatrace_monitor` ([#27432](https://github.com/hashicorp/terraform-provider-azurerm/issues/27432)) +* **New Resource**: `azurerm_dashboard_grafana_managed_private_endpoint` ([#27781](https://github.com/hashicorp/terraform-provider-azurerm/issues/27781)) +* **New Resource**: `azurerm_data_protection_backup_instance_mysql_flexible_server` ([#27464](https://github.com/hashicorp/terraform-provider-azurerm/issues/27464)) +* **New Resource**: `azurerm_mongo_cluster` ([#27636](https://github.com/hashicorp/terraform-provider-azurerm/issues/27636)) +* **New Resource**: `azurerm_stack_hci_network_interface` ([#26888](https://github.com/hashicorp/terraform-provider-azurerm/issues/26888)) + +ENHANCEMENTS: + +* dependencies - update `go-azure-sdk` to `v0.20241104.1140654` ([#27896](https://github.com/hashicorp/terraform-provider-azurerm/issues/27896)) +* dependencies - update `go-azure-helpers` to `v0.71.0` ([#27897](https://github.com/hashicorp/terraform-provider-azurerm/issues/27897)) +* dependencies - update `golang-jwt` to `v4.5.1` ([#27938](https://github.com/hashicorp/terraform-provider-azurerm/issues/27938)) +* `storage` - allow `azurerm_storage_account` to be used in Data Plane restrictive environments ([#27818](https://github.com/hashicorp/terraform-provider-azurerm/issues/27818)) +* `azurerm_cognitive_deployment` - `sku.0.name` now supports `DataZoneStandard` ([#27926](https://github.com/hashicorp/terraform-provider-azurerm/issues/27926)) +* `azurerm_mssql_managed_database` - support for the `tags` property ([#27857](https://github.com/hashicorp/terraform-provider-azurerm/issues/27857)) +* `azurerm_oracle_cloud_vm_cluster` - support for the `domain`, `scan_listener_port_tcp`, `scan_listener_port_tcp_ssl` and `zone_id` properties ([#27808](https://github.com/hashicorp/terraform-provider-azurerm/issues/27808)) +* `azurerm_public_ip_prefix` - support for the `sku_tier` property ([#27882](https://github.com/hashicorp/terraform-provider-azurerm/issues/27882)) +* `azurerm_public_ip` - support for the `domain_name_label_scope` property ([#27748](https://github.com/hashicorp/terraform-provider-azurerm/issues/27748)) +* `azurerm_subnet` - `default_outbound_access_enabled` can now be updated ([#27858](https://github.com/hashicorp/terraform-provider-azurerm/issues/27858)) +* `azurerm_storage_container` - support for the `storage_account_id` property ([#27733](https://github.com/hashicorp/terraform-provider-azurerm/issues/27733)) +* `azurerm_storage_share` - support for the `storage_account_id` property ([#27733](https://github.com/hashicorp/terraform-provider-azurerm/issues/27733)) + +## 4.8.0 (October 31, 2024) + +FEATURES: + +* **New Data Source**: `azurerm_virtual_network_peering` ([#27530](https://github.com/hashicorp/terraform-provider-azurerm/issues/27530)) +* **New Resource**: `azurerm_machine_learning_workspace_network_outbound_rule_fqdn` ([#27384](https://github.com/hashicorp/terraform-provider-azurerm/issues/27384)) +* **New Resource**: `azurerm_stack_hci_extension` ([#26929](https://github.com/hashicorp/terraform-provider-azurerm/issues/26929)) +* **New Resource**: `azurerm_stack_hci_marketplace_gallery_image` ([#27532](https://github.com/hashicorp/terraform-provider-azurerm/issues/27532)) +* **New Resource**: `azurerm_trusted_signing_account` ([#27720](https://github.com/hashicorp/terraform-provider-azurerm/issues/27720)) + +ENHANCEMENTS: + +* `mysql` - upgrade api version to `2023-12-30` ([#27767](https://github.com/hashicorp/terraform-provider-azurerm/issues/27767)) +* `network` - upgrade api version to `2024-03-01 ` ([#27746](https://github.com/hashicorp/terraform-provider-azurerm/issues/27746)) +* `azurerm_cosmosdb_account`: support for CMK through `managed_hsm_key_id` property ([#26521](https://github.com/hashicorp/terraform-provider-azurerm/issues/26521)) +* `azurerm_cosmosdb_account` - support further versions for `mongo_server_version` ([#27763](https://github.com/hashicorp/terraform-provider-azurerm/issues/27763)) +* `azurerm_container_app_environment` - changing the `log_analytics_workspace_id` property no longer creates a new resource ([#27794](https://github.com/hashicorp/terraform-provider-azurerm/issues/27794)) +* `azurerm_data_factory_linked_service_azure_sql_database` - add support for the `credential_name` property ([#27629](https://github.com/hashicorp/terraform-provider-azurerm/issues/27629)) +* `azurerm_key_vault_key` - `expiration_date` only recreates the resource when it is removed from the config file ([#27813](https://github.com/hashicorp/terraform-provider-azurerm/issues/27813)) +* `azurerm_kubernetes_cluster` - fix issue where`maintenance_window_auto_upgrade`/`maintenance_window_auto_upgrade`/`maintenance_window_node_os ` might not be read into state ([#26915](https://github.com/hashicorp/terraform-provider-azurerm/issues/26915)) +* `azurerm_kubernetes_cluster` - support for the `backend_pool_type` property ([#27596](https://github.com/hashicorp/terraform-provider-azurerm/issues/27596)) +* `azurerm_kubernetes_cluster` - support for the `daemonset_eviction_for_empty_nodes_enabled`, `daemonset_eviction_for_occupied_nodes_enabled`, and `ignore_daemonsets_utilization_enabled` properties ([#27588](https://github.com/hashicorp/terraform-provider-azurerm/issues/27588)) +* `azurerm_load_test` - `description` can now be updated ([#27800](https://github.com/hashicorp/terraform-provider-azurerm/issues/27800)) +* `azurerm_oracle_cloud_vm_cluster` - export the `ocid` property ([#27785](https://github.com/hashicorp/terraform-provider-azurerm/issues/27785)) +* `azurerm_orchestrated_virtual_machine_scale_set` - add support for `sku_profile` block ([#27599](https://github.com/hashicorp/terraform-provider-azurerm/issues/27599)) +* `azurerm_web_application_firewall_policy` - add support for `policy_settings.0.file_upload_enforcement` ([#27774](https://github.com/hashicorp/terraform-provider-azurerm/issues/27774)) + +BUG FIXES: + +* `azurerm_automation_hybrid_runbook_worker_group` - correctly mark resource as gone if it's absent when reading it ([#27797](https://github.com/hashicorp/terraform-provider-azurerm/issues/27797)) +* `azurerm_automation_hybrid_runbook_worker` - correctly mark resource as gone if it's absent when reading it ([#27797](https://github.com/hashicorp/terraform-provider-azurerm/issues/27797)) +* `azurerm_automation_python3_package` - correctly mark resource as gone if it's absent when reading it ([#27797](https://github.com/hashicorp/terraform-provider-azurerm/issues/27797)) +* `azurerm_data_protection_backup_vault` - prevent panic when checking value of `cross_region_restore_enabled` ([#27762](https://github.com/hashicorp/terraform-provider-azurerm/issues/27762)) +* `azurerm_role_management_policy` - fix panic when unmarshalling the policy into a specific type ([#27731](https://github.com/hashicorp/terraform-provider-azurerm/issues/27731)) +* `azurerm_security_center_subscription_pricing` - correctly type assert the `additional_extension_properties` property when building the payload ([#27721](https://github.com/hashicorp/terraform-provider-azurerm/issues/27721)) +* `azurerm_synapse_workspace_aad_admin` - will no correctly delete when using `azurerm_synapse_workspace_aad_admin` with `azurerm_synapse_workspace` ([#27606](https://github.com/hashicorp/terraform-provider-azurerm/issues/27606)) +* `azurerm_windows_function_app_slot` - fixed panic in state migration ([#27700](https://github.com/hashicorp/terraform-provider-azurerm/issues/27700)) + +## 4.7.0 (October 24, 2024) FEATURES: -* **New Data Source**: `azurerm_oracle_autonomous_database` [GH-27696] -* **New Resource**: `azurerm_oracle_autonomous_database` [GH-27696] -* **New Resource**: `azurerm_video_indexer_account` [GH-27632] +* **New Data Source**: `azurerm_oracle_adbs_character_sets` ([#27698](https://github.com/hashicorp/terraform-provider-azurerm/issues/27698)) +* **New Data Source**: `azurerm_oracle_adbs_national_character_sets` ([#27698](https://github.com/hashicorp/terraform-provider-azurerm/issues/27698)) +* **New Data Source**: `azurerm_oracle_autonomous_database` ([#27696](https://github.com/hashicorp/terraform-provider-azurerm/issues/27696)) +* **New Data Source**: `azurerm_oracle_db_nodes` ([#27698](https://github.com/hashicorp/terraform-provider-azurerm/issues/27698)) +* **New Data Source**: `azurerm_oracle_db_system_shapes` ([#27698](https://github.com/hashicorp/terraform-provider-azurerm/issues/27698)) +* **New Data Source**: `azurerm_oracle_gi_versions` ([#27698](https://github.com/hashicorp/terraform-provider-azurerm/issues/27698)) +* **New Resource**: `azurerm_dev_center_project_pool` ([#27706](https://github.com/hashicorp/terraform-provider-azurerm/issues/27706)) +* **New Resource**: `azurerm_oracle_autonomous_database` ([#27696](https://github.com/hashicorp/terraform-provider-azurerm/issues/27696)) +* **New Resource**: `azurerm_video_indexer_account` ([#27632](https://github.com/hashicorp/terraform-provider-azurerm/issues/27632)) ENHANCEMENTS: -* Dependencies - update `go-azure-sdk` to `v0.20241021.1074254` [GH-27713] -* `newrelic` - upgrade api version to `2024-03-01` [GH-27135] -* `cosmosdb` - upgrade api version to `2024-08-15` [GH-27659] +* dependencies - update `go-azure-sdk` to `v0.20241021.1074254` ([#27713](https://github.com/hashicorp/terraform-provider-azurerm/issues/27713)) +* `newrelic` - upgrade api version to `2024-03-01` ([#27135](https://github.com/hashicorp/terraform-provider-azurerm/issues/27135)) +* `cosmosdb` - upgrade api version to `2024-08-15` ([#27659](https://github.com/hashicorp/terraform-provider-azurerm/issues/27659)) +* `azurerm_application_gateway` - support for the new `Basic` SKU value ([#27440](https://github.com/hashicorp/terraform-provider-azurerm/issues/27440)) +* `azurerm_consumption_budget_management_group` - the property `notification.threshold_type` can now be updated ([#27511](https://github.com/hashicorp/terraform-provider-azurerm/issues/27511)) +* `azurerm_consumption_budget_resource_group` - the property `notification.threshold_type` can now be updated ([#27511](https://github.com/hashicorp/terraform-provider-azurerm/issues/27511)) +* `azurerm_container_app` - add support for the `template.container.readiness_probe.initial_delay` and `template.container.startup_probe.initial_delay` properties ([#27551](https://github.com/hashicorp/terraform-provider-azurerm/issues/27551)) +* `azurerm_mssql_managed_instance` - the `storage_account_type` property can now be updated ([#27737](https://github.com/hashicorp/terraform-provider-azurerm/issues/27737)) BUG FIXES: -* `azurerm_automation_software_update_configuration` - correct validation to not allow `5` and allow `-1` [GH-25574] -* `azurerm_mssql_database` - updating short term retention policy now works as expected [GH-27714] +* `azurerm_automation_software_update_configuration` - correct validation to not allow `5` and allow `-1` ([#25574](https://github.com/hashicorp/terraform-provider-azurerm/issues/25574)) +* `azurerm_cosmosdb_sql_container` - fix recreation logic for `partition_key_version` ([#27692](https://github.com/hashicorp/terraform-provider-azurerm/issues/27692)) +* `azurerm_mssql_database` - updating short term retention policy now works as expected ([#27714](https://github.com/hashicorp/terraform-provider-azurerm/issues/27714)) +* `azurerm_network_watcher_flow_log` - fix issue where `tags` were not being updated ([#27389](https://github.com/hashicorp/terraform-provider-azurerm/issues/27389)) +* `azurerm_postgresql_flexible_server_virtual_endpoint` - retrieve and parse `replica_server_id` for cross-region scenarios as well as remove custom poller for the delete operation ([#27509](https://github.com/hashicorp/terraform-provider-azurerm/issues/27509)) ## 4.6.0 (October 18, 2024) diff --git a/CODEOWNERS b/CODEOWNERS index 5e7e03d3b861..aa9fe086b7e1 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @katbyte @hashicorp/terraform-azure \ No newline at end of file +* @hashicorp/terraform-azure diff --git a/GNUmakefile b/GNUmakefile index 66c3fb85195a..b9915e1e0f6a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -12,7 +12,7 @@ tools: @sh "$(CURDIR)/scripts/gogetcookie.sh" go install github.com/client9/misspell/cmd/misspell@latest go install github.com/bflad/tfproviderlint/cmd/tfproviderlint@latest - go install github.com/bflad/tfproviderdocs@latest + go install github.com/YakDriver/tfproviderdocs@latest go install github.com/katbyte/terrafmt@latest go install golang.org/x/tools/cmd/goimports@latest go install mvdan.cc/gofumpt@latest @@ -80,6 +80,10 @@ whitespace: @echo "==> Fixing source code with whitespace linter..." golangci-lint run ./... --no-config --disable-all --enable=whitespace --fix +golangci-fix: + @echo "==> Fixing source code with all golangci linters..." + golangci-lint run ./... --fix + test: fmtcheck @TEST=$(TEST) ./scripts/run-gradually-deprecated.sh @TEST=$(TEST) ./scripts/run-test.sh diff --git a/contributing/topics/guide-new-data-source.md b/contributing/topics/guide-new-data-source.md index 0a11dcd54f08..120b3ae090bd 100755 --- a/contributing/topics/guide-new-data-source.md +++ b/contributing/topics/guide-new-data-source.md @@ -118,33 +118,37 @@ To go through these in turn: * `Arguments` returns a list of schema fields which are user-specifiable - either Required or Optional. * `Attributes` returns a list of schema fields which are Computed (read-only). -* `ModelObject` returns a reference to a Go struct which is used as the Model for this Data Source (this can also return `nil` if there's no model). +* `ModelObject` returns a reference to a Go struct which is used as the Model for this Data Source. * `ResourceType` returns the name of this resource within the Provider (for example `azurerm_resource_group_example`). * `Read` returns a function defining both the Timeout and the Read function (which retrieves information from the Azure API) for this Data Source. ```go +type ResourceGroupExampleDataSourceModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + Tags map[string]string `tfschema:"tags"` +} + func (ResourceGroupExampleDataSource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "name": { - Type: pluginsdk.TypeString, - Required: true, + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, }, } } func (ResourceGroupExampleDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "location": { - Type: pluginsdk.TypeString, - Computed: true, - }, + "location": commonschema.LocationComputed(), "tags": commonschema.TagsDataSource(), } } func (ResourceGroupExampleDataSource) ModelObject() interface{} { - return nil + return &ResourceGroupExampleDataSourceModel } func (ResourceGroupExampleDataSource) ResourceType() string { @@ -154,7 +158,7 @@ func (ResourceGroupExampleDataSource) ResourceType() string { > In this case we're using the resource type `azurerm_resource_group_example` as [an existing Data Source for `azurerm_resource_group` exists](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/resource_group) and the names need to be unique. -These functions define a Data Source called `azurerm_resource_group_example`, which has one Required argument called `name` and two Computed arguments called `location` and `tags`. We'll come back to `ModelObject` later. +These functions define a Data Source called `azurerm_resource_group_example`, which has one Required argument called `name` and two Computed arguments called `location` and `tags`. --- @@ -171,33 +175,41 @@ func (ResourceGroupExampleDataSource) Read() sdk.ResourceFunc { // the Func returns a function which retrieves the current state of the Resource Group into the state Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Resource.GroupsClient + client := metadata.Client.Resource.GroupsClient // retrieve the Name for this Resource Group from the Terraform Config // and then create a Resource ID for this Resource Group - // using the Subscription ID & name - subscriptionId := metadata.Client.Account.SubscriptionId - name := metadata.ResourceData.Get("name").(string) - id := resources.NewResourceGroupExampleID(subscriptionId, name) + // using the Subscription ID & name + subscriptionId := metadata.Client.Account.SubscriptionId + + // declare a variable called state which we use to decode and encode values into + // this simultaneously gets values that have been set in the config for us + // and also allows us to set values into state + var state ResourceGroupExampleDataSourceModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } - // then retrieve the Resource Group by it's ID - resp, err := client.Get(ctx, id) - if err != nil { + id := resources.NewResourceGroupExampleID(subscriptionId, state.Name) + + // then retrieve the Resource Group by it's ID + resp, err := client.Get(ctx, id) + if err != nil { // if the Resource Group doesn't exist (e.g. we get a 404 Not Found) - // since this is a Data Source we must return an error if it's Not Found - if response.WasNotFound(resp.HttpResponse) { - return fmt.Errorf("%s was not found", id) - } + // since this is a Data Source we must return an error if it's Not Found + if response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("%s was not found", id) + } - // otherwise it's a genuine error (auth/api error etc) so raise it + // otherwise it's a genuine error (auth/api error etc) so raise it // there should be enough context for the user to interpret the error - // or raise a bug report if there's something we should handle - return fmt.Errorf("retrieving %s: %+v", id, err) - } + // or raise a bug report if there's something we should handle + return fmt.Errorf("retrieving %s: %+v", id, err) + } // now we know the Resource Group exists, set the Resource ID for this Data Source - // this means that Terraform will track this as existing - metadata.SetID(id) + // this means that Terraform will track this as existing + metadata.SetID(id) // at this point we can set information about this Resource Group into the State // whilst traditionally we would do this via `metadata.ResourceData.Set("foo", "somevalue") @@ -212,17 +224,14 @@ func (ResourceGroupExampleDataSource) Read() sdk.ResourceFunc { // lower-cased singular word with no spaces (e.g. "westeurope") so this is consistent // for users if model := resp.Model; model != nil { - metadata.ResourceData.Set("location", location.NormalizeNilable(model.Location)) - + state.Location = location.NormalizeNilable(model.Location) + state.Tags = pointer.From(model.Tags) props := model.Properties; props != nil { // If the data source exposes additional properties that live within the Properties - // model of the response they would be set into state here. - } - // (as above) Tags are a little different, so we have a dedicated helper function - // to flatten these consistently across the Provider - return tags.FlattenAndSet(metadata.ResourceData, model.Tags) - } - return nil + // model of the response they would be set into state here. + } + } + return metadata.Encode(&state) }, } } @@ -249,23 +258,28 @@ import ( type ResourceGroupExampleDataSource struct{} +type ResourceGroupExampleDataSourceModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + Tags map[string]string `tfschema:"tags"` +} + + func (d ResourceGroupExampleDataSource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "name": { - Type: pluginsdk.TypeString, - Required: true, + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, }, } } func (d ResourceGroupExampleDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "location": { - Type: pluginsdk.TypeString, - Computed: true, - }, + "location": commonschema.LocationComputed(), + "tags": commonschema.TagsDataSource(), - } } @@ -283,8 +297,13 @@ func (d ResourceGroupExampleDataSource) Read() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Resource.GroupsClient subscriptionId := metadata.Client.Account.SubscriptionId - - id := resources.NewResourceGroupExampleID(subscriptionId, metadata.ResourceData.Get("name").(string)) + + var state ResourceGroupExampleDataSourceModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id := resources.NewResourceGroupExampleID(subscriptionId, state.Name) resp, err := client.Get(ctx, id) if err != nil { @@ -297,10 +316,10 @@ func (d ResourceGroupExampleDataSource) Read() sdk.ResourceFunc { metadata.SetID(id) if model := resp.Model; model != nil { - metadata.ResourceData.Set("location", location.NormalizeNilable(model.Location)) - return tags.FlattenAndSet(metadata.ResourceData, model.Tags) + state.Location = location.NormalizeNilable(model.Location) + state.Tags = pointer.From(model.Tags) } - return nil + return metadata.Encode(&state) }, } } diff --git a/contributing/topics/guide-new-resource-vs-inline.md b/contributing/topics/guide-new-resource-vs-inline.md index ab28f0fc9283..87f26f767fb1 100755 --- a/contributing/topics/guide-new-resource-vs-inline.md +++ b/contributing/topics/guide-new-resource-vs-inline.md @@ -1,11 +1,11 @@ # Guide: When to inline new functionality (as either a block or property) versus a new resource -Sometimes when implementing new functionality it can be a bit unclear whether it is necessary to create a new resource versus to add a new property or block to an existing resource. +Sometimes when implementing new functionality it can be a bit unclear whether it is necessary to create a new resource versus to add a new property or block to an existing resource. -To get a bit of insight in how a decision can be made, this are some rules of thumb to decide. In case it is unclear, please contact one of the HashiCorp Maintainers. +To get a bit of insight in how a decision can be made, these are some rules of thumb to decide. In case it is unclear, please contact one of the HashiCorp Maintainers. ## Inline -Most additional functionality will end up inline an existing resource. +Most additional functionality will end up inline an existing resource. APIs to enable or disable functionality, define the resource functionality or configure details on a resource are most of the time inlined. Relations between resources with clearly separate concern (i.e. which VNet a K8s cluster will land in) are most of the time inlined. diff --git a/contributing/topics/guide-new-resource.md b/contributing/topics/guide-new-resource.md index af450071ed54..9844fbee91b7 100755 --- a/contributing/topics/guide-new-resource.md +++ b/contributing/topics/guide-new-resource.md @@ -42,7 +42,7 @@ package client import ( "fmt" - + "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/resources" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) @@ -129,13 +129,20 @@ To go through these in turn: * `IDValidationFunc` returns a function which validates the Resource ID provided during `terraform import` to ensure it matches what we expect for this Resource. ```go +type ResourceGroupExampleResourceModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + Tags map[string]string `tfschema:"tags"` +} + func (ResourceGroupExampleResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "name": { - Type: pluginsdk.TypeString, - Required: true, + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, }, - + "location": commonschema.Location(), "tags": tags.Schema(), @@ -147,7 +154,7 @@ func (ResourceGroupExampleResource) Attributes() map[string]*pluginsdk.Schema { } func (ResourceGroupExampleResource) ModelObject() interface{} { - return nil + return &ResourceGroupExampleResourceModel{} } func (ResourceGroupExampleResource) ResourceType() string { @@ -177,10 +184,15 @@ func (r ResourceGroupExampleResource) Create() sdk.ResourceFunc { // retrieve the Name for this Resource Group from the Terraform Config // and then create a Resource ID for this Resource Group - // using the Subscription ID & name + // using the Subscription ID & name subscriptionId := metadata.Client.Account.SubscriptionId - id := resources.NewResourceGroupID(subscriptionId, metadata.ResourceData.Get("name").(string)) - + + var config ResourceGroupExampleResourceModel + if err := metadata.Decode(&config); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + id := resources.NewResourceGroupID(subscriptionId, config.Name) + // then we want to check for the presence of an existing resource with the resource's ID // this is because the Azure API uses the `name` as a unique idenfitier and Upserts // so we don't want to unintentionally adopt this resource by using the same name @@ -191,11 +203,11 @@ func (r ResourceGroupExampleResource) Create() sdk.ResourceFunc { if !response.WasNotFound(existing.HttpResponse) { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - + // create the Resource Group param := resources.Group{ - Location: pointer.To(location.Normalize(metadata.ResourceData.Get("location").(string))), - Tags: tags.Expand(metadata.ResourceData.Get("tags").(map[string]interface{})), + Location: pointer.To(location.Normalize(config.Location)), + Tags: pointer.To(config.Tags), } if _, err := client.CreateOrUpdate(ctx, id, param); err != nil { return fmt.Errorf("creating %s: %+v", id, err) @@ -229,7 +241,11 @@ func (r ResourceGroupExampleResource) Update() sdk.ResourceFunc { if err != nil { return err } - + + var config ResourceGroupExampleResourceModel + if err := metadata.Decode(&config); err != nil { + return fmt.Errorf("decoding: %+v", err) + } // update the Resource Group // NOTE: for a more complex resource we'd recommend retrieving the existing Resource from the // API and then conditionally updating it when fields in the config have been updated, which @@ -240,7 +256,7 @@ func (r ResourceGroupExampleResource) Update() sdk.ResourceFunc { // return fmt.Errorf("retrieving %s: %+v", id, err) // } // - // Although the SDK will catch and error in cases where Model is nil we should still check for + // Although the SDK will catch and error in cases where Model is nil we should still check for // a non-nil Model and nested Properties object to prevent panics // if existing.Model == nil { // return fmt.Errorf("retrieving %s: `model` was nil", id) @@ -258,13 +274,13 @@ func (r ResourceGroupExampleResource) Update() sdk.ResourceFunc { // However since a Resource Group only has one field which is updatable (tags) so in this case we'll only // enter the update function if `tags` has been updated. param := resources.Group{ - Location: pointer.To(location.Normalize(metadata.ResourceData.Get("location").(string))), - Tags: tags.Expand(metadata.ResourceData.Get("tags").(map[string]interface{})), + Location: pointer.To(location.Normalize(config.Location)), + Tags: pointer.To(config.Tags), } if _, err := client.CreateOrUpdate(ctx, *id, param); err != nil { return fmt.Errorf("updating %s: %+v", id, err) } - + return nil }, } @@ -283,67 +299,63 @@ func (ResourceGroupExampleResource) Read() sdk.ResourceFunc { // whilst 5 minutes may initially seem excessive, we set this as a default to account for rate // limiting - but having this here means that users can override this in their config as necessary Timeout: 5 * time.Minute, - + // the Func returns a function which looks up the state of the Resource Group and sets it into the state Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Resource.GroupsClient + client := metadata.Client.Resource.GroupsClient // parse the Resource Group ID from the `id` field - id, err := resources.ParseResourceGroupID(metadata.ResourceData.Id()) + id, err := resources.ParseResourceGroupID(metadata.ResourceData.Id()) if err != nil { return err } - + // then retrieve the Resource Group by its ID - resp, err := client.Get(ctx, *id) - if err != nil { + resp, err := client.Get(ctx, *id) + if err != nil { // if the Resource Group doesn't exist (e.g. we get a 404 Not Found) // since this is a Resource (e.g. we created it/it was imported into the state) // it previously existed - so we must mark this as "gone" for Terraform - if response.WasNotFound(resp.HttpResponse) { - return metadata.MarkAsGone(id) - } - - // otherwise it's a genuine error (auth/api error etc) so raise it + if response.WasNotFound(resp.HttpResponse) { + return metadata.MarkAsGone(id) + } + + // otherwise it's a genuine error (auth/api error etc) so raise it // there should be enough context for the user to interpret the error // or raise a bug report if there's something we should handle - return fmt.Errorf("retrieving %s: %+v", id, err) - } - + return fmt.Errorf("retrieving %s: %+v", id, err) + } + // at this point we can set information about this Resource Group into the State // identifier fields such as the name, resource group name to name a few need to be sourced // from the Resource ID instead of the API response - metadata.ResourceData.Set("name", id.ResourceGroupName) - + state := ResourceGroupExampleResourceModel{ + Name: id.ResourceGroupName, + } + // the SDK will return a Model as well as a nested Properties object for the resource // for readability and consistency we assign the Model to a variable and nil check as shown below. // since the SDK accounts for responses where the Model is nil we do not need to throw an error if // the Model is nil since this will be caught earlier on. We still nil check to prevent the provider from // crashing. if model := resp.Model; model != nil { - // the Location and Tags fields are a little different - and we have a couple of normalization - // functions for these. - - // whilst this may seem like a weird thing to call out in an example, because these two fields - // are present on the majority of resources, we hope it explains why they're a little different - - // in this case the Location can be returned in various different forms, for example - // "West Europe", "WestEurope" or "westeurope" - as such we normalize these into a - // lower-cased singular word with no spaces (e.g. "westeurope") so this is consistent - // for users - metadata.ResourceData.Set("location", location.NormalizeNilable(model.Location)) - - if props := model.Properties; props != nil { - // if there are properties to set into state do that here - } - - // (as above) Tags are a little different, so we have a dedicated helper function - // to flatten these consistently across the Provider - if err := tags.FlattenAndSet(metadata.ResourceData, model.Tags); err != nil { - return fmt.Errorf("setting `tags`: %+v", err) - } - } - return nil + // the Location field is a little different - and we have a normalization + // function for this. + + // whilst this may seem like a weird thing to call out in an example, because these two fields + // are present on the majority of resources, we hope it explains why they're a little different + + // in this case the Location can be returned in various different forms, for example + // "West Europe", "WestEurope" or "westeurope" - as such we normalize these into a + // lower-cased singular word with no spaces (e.g. "westeurope") so this is consistent + // for users + state.Location = location.NormalizeNilable(model.Location) + state.Tags = pointer.From(model.Tags) + if props := model.Properties; props != nil { + // if there are properties to set into state do that here + } + } + return metadata.Encode(&state) }, } } @@ -369,13 +381,13 @@ func (ResourceGroupExampleResource) Delete() sdk.ResourceFunc { if err != nil { return err } - + // trigger the deletion of the Resource Group // Delete calls that require request options can be populated by the `DefaultDeleteOperationOptions()` // method in the SDK if err := client.DeleteThenPoll(ctx, *id, resources.DefaultDeleteOperationOptions()); err != nil { return fmt.Errorf("deleting %s: %+v", *id, err) - } + } return nil }, } @@ -416,11 +428,18 @@ var _ sdk.Resource = ResourceGroupExampleResource{} type ResourceGroupExampleResource struct{} +type ResourceGroupExampleResourceModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + Tags map[string]string `tfschema:"tags"` +} + func (ResourceGroupExampleResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "name": { - Type: pluginsdk.TypeString, - Required: true, + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, }, "location": commonschema.Location(), @@ -434,7 +453,7 @@ func (ResourceGroupExampleResource) Attributes() map[string]*pluginsdk.Schema { } func (ResourceGroupExampleResource) ModelObject() interface{} { - return nil + return &ResourceGroupExampleResourceModel } func (ResourceGroupExampleResource) ResourceType() string { @@ -447,9 +466,13 @@ func (r ResourceGroupExampleResource) Create() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Resource.GroupsClient subscriptionId := metadata.Client.Account.SubscriptionId - - id := resources.NewResourceGroupID(subscriptionId, metadata.ResourceData.Get("name").(string)) - + + var config ResourceGroupExampleResourceModel + if err := metadata.Decode(&config); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + id := resources.NewResourceGroupID(subscriptionId, config.Name) + existing, err := client.Get(ctx, id) if err != nil && !response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("checking for presence of existing %s: %+v", id, err) @@ -457,15 +480,15 @@ func (r ResourceGroupExampleResource) Create() sdk.ResourceFunc { if !response.WasNotFound(existing.HttpResponse) { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - + param := resources.Group{ - Location: pointer.To(location.Normalize(metadata.ResourceData.Get("location").(string))), - Tags: tags.Expand(metadata.ResourceData.Get("tags").(map[string]interface{})), + Location: pointer.To(location.Normalize(config.Location)), + Tags: pointer.To(config.Tags), } if _, err := client.CreateOrUpdate(ctx, id, param); err != nil { return fmt.Errorf("creating %s: %+v", id, err) } - + metadata.SetID(id) return nil }, @@ -477,15 +500,20 @@ func (r ResourceGroupExampleResource) Update() sdk.ResourceFunc { Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Resource.GroupsClient - + id, err := resources.ParseResourceGroupID(metadata.ResourceData.Get("id").(string)) if err != nil { return err } - + + var config ResourceGroupExampleResourceModel + if err := metadata.Decode(&config); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + param := resources.Group{ - Location: pointer.To(location.Normalize(metadata.ResourceData.Get("location").(string))), - Tags: tags.Expand(metadata.ResourceData.Get("tags").(map[string]interface{})), + Location: pointer.To(location.Normalize(config.Location)), + Tags: pointer.To(config.Tags), } if _, err := client.CreateOrUpdate(ctx, *id, param); err != nil { return fmt.Errorf("updating %s: %+v", id, err) @@ -500,12 +528,12 @@ func (ResourceGroupExampleResource) Read() sdk.ResourceFunc { Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Resource.GroupsClient - + id, err := resources.ParseResourceGroupID(metadata.ResourceData.Id()) if err != nil { return err } - + resp, err := client.Get(ctx, *id) if err != nil { if response.WasNotFound(resp.HttpResponse) { @@ -516,16 +544,18 @@ func (ResourceGroupExampleResource) Read() sdk.ResourceFunc { } - metadata.ResourceData.Set("name", id.ResourceGroupName) - + state := ResourceGroupExampleResourceModel{ + Name: id.ResourceGroupName, + } + if model := resp.Model; model != nil { - metadata.ResourceData.Set("location", location.NormalizeNilable(model.Location)) + state.Location = location.NormalizeNilable(model.Location) + state.Tags = pointer.From(model.Tags) if props := model.Properties; props != nil { // if there are properties to set into state do that here } - return tags.FlattenAndSet(metadata.ResourceData, resp.Tags) } - return nil + return metadata.Encode(&state) }, } } @@ -617,7 +647,7 @@ To register the Resource we need to add an instance of the struct used for the R // Resources returns a list of Resources supported by this Service func (Registration) Resources() []sdk.Resource { return []sdk.Resource{ - ResourceGroupExampleResource{}, + ResourceGroupExampleResource{}, } } ``` @@ -654,7 +684,7 @@ import ( "context" "fmt" "testing" - + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/resource/parse" diff --git a/contributing/topics/guide-state-migrations.md b/contributing/topics/guide-state-migrations.md index eaefdc69cab1..a53003cdc483 100644 --- a/contributing/topics/guide-state-migrations.md +++ b/contributing/topics/guide-state-migrations.md @@ -73,7 +73,7 @@ func (CapybaraV0ToV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { Other caveats to look out for when copying the schema over are: * in-lining any schema elements which are returned by functions - * removing any if/else logic within the Schema, in most cases this will be feature flags e.g. `features.FourPointOh()` + * removing any if/else logic within the Schema, in most cases this will be feature flags e.g. `features.FivePointOh()` 4. Fill out the UpgradeFunc to update the Terraform State for this resource. Typically this involves parsing the old Resource ID case-insensitively and then setting the correct casing for the `id` field (which is what this example assumes) - however note that State Migrations aren't limited to the `id` field. The file should now look like this: ```go diff --git a/contributing/topics/schema-design-considerations.md b/contributing/topics/schema-design-considerations.md index ef09b9edc208..3bbec16dd71d 100755 --- a/contributing/topics/schema-design-considerations.md +++ b/contributing/topics/schema-design-considerations.md @@ -24,9 +24,9 @@ type ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler struct { } ``` -Although there are still resources within the provider where this property is exposed in the Terraform schema, the provider is moving away from this and instead translates this behaviour in one of two ways. +This is handled in the provider one of two ways depending on if the `Enabled` field is by its self or with other fields in the object. -In cases where `Enabled` is the only field required to turn a feature on and off we opt to flatten the block into a single top level property (or higher level property if already nested inside a block). So in the case of Example A, this would become: +In the cases where `Enabled` is the only field within the object we opt to flatten the block into a single top level property (or higher level property if already nested inside a block). So in the case of Example A, this would become: ```go "storage_blob_driver_enabled": { @@ -36,7 +36,7 @@ In cases where `Enabled` is the only field required to turn a feature on and off }, ``` -For features that can accept or require configuration, i.e. the object contains additional properties other than `Enabled` like in Example B, the behaviour should be such that when the block is present the feature is enabled, and when it is absent it is disabled. The corresponding Terraform schema would be as follows: +However when there are multiple fields in addtion to the `Enabled` one and they are all required for the object/feature like in Example B, a terraform block is created with all the fields including `Enabled`. The corresponding Terraform schema would be as follows: ```go "vertical_pod_autoscaler": { @@ -45,6 +45,11 @@ For features that can accept or require configuration, i.e. the object contains MaxItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, "update_mode": { Type: pluginsdk.TypeString, Required: true, @@ -67,7 +72,7 @@ For features that can accept or require configuration, i.e. the object contains }, ``` -There are instances where configuration properties for a feature is optional, as shown below. +Finally there are instances where the addtional fields/properties for a object/feature are optional or few in number, as shown below. Example C. ```go @@ -77,7 +82,7 @@ type ManagedClusterStorageProfileDiskCSIDriver struct { } ``` -In cases like these one option is to flatten the block into two top level properties. +In cases like these one option is to flatten the block into two top level properties: ```go "storage_disk_driver_enabled": { @@ -97,27 +102,7 @@ In cases like these one option is to flatten the block into two top level proper }, ``` -Depending on the behaviour of the Azure API and the default set by it, a worthwhile alternative is to set the property as required in the Terraform schema, to avoid having to set empty blocks to enable features. - -```go -"storage_disk_driver": { - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "version": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice([]string{ - "V1", - "V2", - }, false), - }, - }, - }, -}, -``` +A judgement call should be made based off the behaviour of the API and expectations of a user. ## The `None` value or similar diff --git a/examples/netapp/nfsv3_volume_with_backup_policy/README.md b/examples/netapp/nfsv3_volume_with_backup_policy/README.md new file mode 100644 index 000000000000..c49e1248d227 --- /dev/null +++ b/examples/netapp/nfsv3_volume_with_backup_policy/README.md @@ -0,0 +1,5 @@ +## Example: Azure NetApp Files Volume with Backup Policy enabled + +This example shows how to create an Azure NetApp volume with Backup policy enabled. + +For more information, please refer to [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction). diff --git a/examples/netapp/nfsv3_volume_with_backup_policy/main.tf b/examples/netapp/nfsv3_volume_with_backup_policy/main.tf new file mode 100755 index 000000000000..bff4aadd06f3 --- /dev/null +++ b/examples/netapp/nfsv3_volume_with_backup_policy/main.tf @@ -0,0 +1,103 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + +provider "azurerm" { + features { + netapp { + prevent_volume_destruction = false + delete_backups_on_backup_vault_destroy = true + } + } +} + +resource "azurerm_resource_group" "example" { + name = "${var.prefix}-resources" + location = var.location +} + +resource "azurerm_virtual_network" "example" { + name = "${var.prefix}-virtualnetwork" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + address_space = ["10.0.0.0/16"] +} + +resource "azurerm_subnet" "example" { + name = "${var.prefix}-subnet" + resource_group_name = azurerm_resource_group.example.name + virtual_network_name = azurerm_virtual_network.example.name + address_prefixes = ["10.0.2.0/24"] + + delegation { + name = "testdelegation" + + service_delegation { + name = "Microsoft.Netapp/volumes" + actions = ["Microsoft.Network/networkinterfaces/*", "Microsoft.Network/virtualNetworks/subnets/join/action"] + } + } +} + +resource "azurerm_netapp_account" "example" { + name = "${var.prefix}-netappaccount" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name +} + +resource "azurerm_netapp_backup_vault" "example" { + name = "${var.prefix}-netappbackupvault" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + account_name = azurerm_netapp_account.example.name +} + +resource "azurerm_netapp_backup_policy" "example" { + name = "${var.prefix}-netappbackuppolicy" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + account_name = azurerm_netapp_account.example.name + daily_backups_to_keep = 2 + weekly_backups_to_keep = 2 + monthly_backups_to_keep = 2 + enabled = true +} + +resource "azurerm_netapp_pool" "example" { + name = "${var.prefix}-netapppool" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + account_name = azurerm_netapp_account.example.name + service_level = "Standard" + size_in_tb = 4 +} + +resource "azurerm_netapp_volume" "example" { + lifecycle { + prevent_destroy = true + } + + name = "${var.prefix}-netappvolume" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + account_name = azurerm_netapp_account.example.name + pool_name = azurerm_netapp_pool.example.name + volume_path = "${var.prefix}-netappvolume" + service_level = "Standard" + protocols = ["NFSv3"] + network_features = "Basic" + subnet_id = azurerm_subnet.example.id + storage_quota_in_gb = 100 + + data_protection_backup_policy { + backup_vault_id = azurerm_netapp_backup_vault.example.id + backup_policy_id = azurerm_netapp_backup_policy.example.id + policy_enabled = true + } + + export_policy_rule { + rule_index = 1 + allowed_clients = ["0.0.0.0/0"] + protocols_enabled = ["NFSv3"] + unix_read_write = true + } +} diff --git a/examples/netapp/nfsv3_volume_with_backup_policy/variables.tf b/examples/netapp/nfsv3_volume_with_backup_policy/variables.tf new file mode 100755 index 000000000000..575eba58547c --- /dev/null +++ b/examples/netapp/nfsv3_volume_with_backup_policy/variables.tf @@ -0,0 +1,10 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + +variable "location" { + description = "The Azure location where all resources in this example should be created." +} + +variable "prefix" { + description = "The prefix used for all resources used by this example" +} diff --git a/examples/virtual-machines/linux/load-balanced/main.tf b/examples/virtual-machines/linux/load-balanced/main.tf index 1ab032897d3c..1c3fee24455b 100644 --- a/examples/virtual-machines/linux/load-balanced/main.tf +++ b/examples/virtual-machines/linux/load-balanced/main.tf @@ -92,7 +92,6 @@ resource "azurerm_lb" "example" { } resource "azurerm_lb_backend_address_pool" "example" { - resource_group_name = azurerm_resource_group.main.name loadbalancer_id = azurerm_lb.example.id name = "BackEndAddressPool" } diff --git a/examples/virtual-machines/virtual_machine/2-vms-loadbalancer-lbrules/main.tf b/examples/virtual-machines/virtual_machine/2-vms-loadbalancer-lbrules/main.tf index 2b8cb48170a9..d44521e75e13 100644 --- a/examples/virtual-machines/virtual_machine/2-vms-loadbalancer-lbrules/main.tf +++ b/examples/virtual-machines/virtual_machine/2-vms-loadbalancer-lbrules/main.tf @@ -61,7 +61,6 @@ resource "azurerm_lb" "lb" { } resource "azurerm_lb_backend_address_pool" "backend_pool" { - resource_group_name = azurerm_resource_group.rg.name loadbalancer_id = azurerm_lb.lb.id name = "BackendPool1" } diff --git a/examples/virtual-machines/virtual_machine/openshift-origin/main.tf b/examples/virtual-machines/virtual_machine/openshift-origin/main.tf index f8eb5a5377c3..095ac890ad98 100644 --- a/examples/virtual-machines/virtual_machine/openshift-origin/main.tf +++ b/examples/virtual-machines/virtual_machine/openshift-origin/main.tf @@ -296,7 +296,6 @@ resource "azurerm_lb" "primary_lb" { } resource "azurerm_lb_backend_address_pool" "primary_lb" { - resource_group_name = azurerm_resource_group.rg.name name = "loadBalancerBackEnd" loadbalancer_id = azurerm_lb.primary_lb.id depends_on = ["azurerm_lb.primary_lb"] @@ -356,7 +355,6 @@ resource "azurerm_lb" "infra_lb" { } resource "azurerm_lb_backend_address_pool" "infra_lb" { - resource_group_name = azurerm_resource_group.rg.name name = "loadBalancerBackEnd" loadbalancer_id = azurerm_lb.infra_lb.id depends_on = ["azurerm_lb.infra_lb"] diff --git a/examples/vm-scale-set/linux/rolling-upgrade-policy/main.tf b/examples/vm-scale-set/linux/rolling-upgrade-policy/main.tf index 118399460824..ae01c76307ce 100644 --- a/examples/vm-scale-set/linux/rolling-upgrade-policy/main.tf +++ b/examples/vm-scale-set/linux/rolling-upgrade-policy/main.tf @@ -45,7 +45,6 @@ resource "azurerm_lb" "main" { resource "azurerm_lb_backend_address_pool" "main" { name = "backend-pool" - resource_group_name = azurerm_resource_group.main.name loadbalancer_id = azurerm_lb.main.id } diff --git a/examples/vm-scale-set/virtual_machine_scale_set/automatic-rolling-updates/main.tf b/examples/vm-scale-set/virtual_machine_scale_set/automatic-rolling-updates/main.tf index b17d0971f483..230a847d9181 100644 --- a/examples/vm-scale-set/virtual_machine_scale_set/automatic-rolling-updates/main.tf +++ b/examples/vm-scale-set/virtual_machine_scale_set/automatic-rolling-updates/main.tf @@ -48,7 +48,6 @@ resource "azurerm_lb" "example" { resource "azurerm_lb_backend_address_pool" "example" { name = "backend" - resource_group_name = azurerm_resource_group.example.name loadbalancer_id = azurerm_lb.example.id } diff --git a/examples/vm-scale-set/windows/rolling-upgrade-policy/main.tf b/examples/vm-scale-set/windows/rolling-upgrade-policy/main.tf index 2ef574eb2c75..e82219bfc95c 100644 --- a/examples/vm-scale-set/windows/rolling-upgrade-policy/main.tf +++ b/examples/vm-scale-set/windows/rolling-upgrade-policy/main.tf @@ -45,7 +45,6 @@ resource "azurerm_lb" "main" { resource "azurerm_lb_backend_address_pool" "main" { name = "backend-pool" location = azurerm_resource_group.main.location - resource_group_name = azurerm_resource_group.main.name loadbalancer_id = azurerm_lb.main.id } diff --git a/go.mod b/go.mod index c8f1d562ff35..2a3fa762e6a5 100644 --- a/go.mod +++ b/go.mod @@ -13,22 +13,22 @@ require ( github.com/davecgh/go-spew v1.1.1 github.com/fatih/color v1.16.0 github.com/gofrs/uuid v4.4.0+incompatible - github.com/golang-jwt/jwt/v4 v4.5.0 + github.com/golang-jwt/jwt/v4 v4.5.1 github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 - github.com/hashicorp/go-azure-helpers v0.70.1 - github.com/hashicorp/go-azure-sdk/resource-manager v0.20241021.1074254 - github.com/hashicorp/go-azure-sdk/sdk v0.20241021.1074254 + github.com/hashicorp/go-azure-helpers v0.71.0 + github.com/hashicorp/go-azure-sdk/resource-manager v0.20241118.1115603 + github.com/hashicorp/go-azure-sdk/sdk v0.20241118.1115603 github.com/hashicorp/go-hclog v1.6.3 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 - github.com/hashicorp/go-version v1.6.0 - github.com/hashicorp/terraform-plugin-framework v1.8.0 - github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 - github.com/hashicorp/terraform-plugin-go v0.23.0 - github.com/hashicorp/terraform-plugin-mux v0.15.0 - github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 - github.com/hashicorp/terraform-plugin-testing v1.8.0 + github.com/hashicorp/go-version v1.7.0 + github.com/hashicorp/terraform-plugin-framework v1.13.0 + github.com/hashicorp/terraform-plugin-framework-validators v0.14.0 + github.com/hashicorp/terraform-plugin-go v0.25.0 + github.com/hashicorp/terraform-plugin-mux v0.17.0 + github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 + github.com/hashicorp/terraform-plugin-testing v1.11.0 github.com/jackofallops/kermit v0.20241010.1180132 github.com/magodo/terraform-provider-azurerm-example-gen v0.0.0-20220407025246-3a3ee0ab24a8 github.com/mitchellh/mapstructure v1.5.0 @@ -36,8 +36,8 @@ require ( github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 github.com/tombuildsstuff/giovanni v0.27.0 github.com/tombuildsstuff/kermit v0.20240122.1123108 - golang.org/x/crypto v0.23.0 - golang.org/x/tools v0.19.0 + golang.org/x/crypto v0.29.0 + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d gopkg.in/yaml.v3 v3.0.1 ) @@ -55,14 +55,14 @@ require ( github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/go-plugin v1.6.0 // indirect + github.com/hashicorp/go-plugin v1.6.2 // indirect github.com/hashicorp/go-retryablehttp v0.7.7 // indirect - github.com/hashicorp/hc-install v0.6.4 // indirect - github.com/hashicorp/hcl/v2 v2.20.1 // indirect + github.com/hashicorp/hc-install v0.9.0 // indirect + github.com/hashicorp/hcl/v2 v2.23.0 // indirect github.com/hashicorp/hcl2 v0.0.0-20191002203319-fb75b3253c80 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.21.0 // indirect - github.com/hashicorp/terraform-json v0.22.1 // indirect + github.com/hashicorp/terraform-json v0.23.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect @@ -80,18 +80,21 @@ require ( github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/zclconf/go-cty v1.14.4 // indirect - golang.org/x/mod v0.16.0 // indirect - golang.org/x/net v0.23.0 // indirect - golang.org/x/oauth2 v0.17.0 // indirect - golang.org/x/sys v0.20.0 // indirect - golang.org/x/text v0.15.0 // indirect + github.com/zclconf/go-cty v1.15.0 // indirect + golang.org/x/mod v0.21.0 // indirect + golang.org/x/net v0.28.0 // indirect + golang.org/x/oauth2 v0.22.0 // indirect + golang.org/x/sync v0.9.0 // indirect + golang.org/x/sys v0.27.0 // indirect + golang.org/x/text v0.20.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.34.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect + google.golang.org/grpc v1.67.1 // indirect + google.golang.org/protobuf v1.35.1 // indirect gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect software.sslmate.com/src/go-pkcs12 v0.4.0 // indirect ) -go 1.22 +go 1.22.0 + +toolchain go1.22.7 diff --git a/go.sum b/go.sum index 42eaa051a6ad..f95b0d5cc376 100644 --- a/go.sum +++ b/go.sum @@ -69,8 +69,9 @@ github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3a github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA= github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= -github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= +github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -91,12 +92,12 @@ github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357/go.mod h1:YH+1FK 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= -github.com/hashicorp/go-azure-helpers v0.70.1 h1:7hlnRrZobMZxpOzdlNEsayzAayj/KRG4wpDS1jgo4GM= -github.com/hashicorp/go-azure-helpers v0.70.1/go.mod h1:BmbF4JDYXK5sEmFeU5hcn8Br21uElcqLfdQxjatwQKw= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20241021.1074254 h1:HkfUWlUIfivTGMoTH3j4KsuKN3HGBv58zhuVDizTeUQ= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20241021.1074254/go.mod h1:JILPz8H5GILFudutdlFv4BxmwK+k53/91jnd7KtPxbc= -github.com/hashicorp/go-azure-sdk/sdk v0.20241021.1074254 h1:u9xvP60m/rlIv5p4b+sewB98UOT9CGTHoOY7BkiX27Y= -github.com/hashicorp/go-azure-sdk/sdk v0.20241021.1074254/go.mod h1:dMKF6bXrgGmy1d3pLzkmBpG2JIHgSAV2/OMSCEgyMwE= +github.com/hashicorp/go-azure-helpers v0.71.0 h1:ra3aIRzg01g6MLKQ+yABcb6WJtrqRUDDgyuPLmyZ9lY= +github.com/hashicorp/go-azure-helpers v0.71.0/go.mod h1:BmbF4JDYXK5sEmFeU5hcn8Br21uElcqLfdQxjatwQKw= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20241118.1115603 h1:YmPg9BwqWZdrNtaezgwt3rRLJipDrAEFQw/EJ54yFVs= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20241118.1115603/go.mod h1:7mzEbFWcjAAO2xomo9oB8B3HbjLRIaS2gMulSfuOmvY= +github.com/hashicorp/go-azure-sdk/sdk v0.20241118.1115603 h1:7Nmi7O/vl4aTSGFARHb1QXxRNI1GlZ6wKD8046/bGBo= +github.com/hashicorp/go-azure-sdk/sdk v0.20241118.1115603/go.mod h1:dMKF6bXrgGmy1d3pLzkmBpG2JIHgSAV2/OMSCEgyMwE= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= @@ -109,41 +110,41 @@ github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVH github.com/hashicorp/go-multierror v0.0.0-20180717150148-3d5d8f294aa0/go.mod h1:JMRHfdO9jKNzS/+BTlxCjKNQHg/jZAft8U7LloJvN7I= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.6.0 h1:wgd4KxHJTVGGqWBq4QPB1i5BZNEx9BR8+OFmHDmTk8A= -github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= +github.com/hashicorp/go-plugin v1.6.2 h1:zdGAEd0V1lCaU0u+MxWQhtSDQmahpkwOun8U8EiRVog= +github.com/hashicorp/go-plugin v1.6.2/go.mod h1:CkgLQ5CZqNmdL9U9JzM532t8ZiYQ35+pj3b1FD37R0Q= github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= -github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/hc-install v0.6.4 h1:QLqlM56/+SIIGvGcfFiwMY3z5WGXT066suo/v9Km8e0= -github.com/hashicorp/hc-install v0.6.4/go.mod h1:05LWLy8TD842OtgcfBbOT0WMoInBMUSHjmDx10zuBIA= -github.com/hashicorp/hcl/v2 v2.20.1 h1:M6hgdyz7HYt1UN9e61j+qKJBqR3orTWbI1HKBJEdxtc= -github.com/hashicorp/hcl/v2 v2.20.1/go.mod h1:TZDqQ4kNKCbh1iJp99FdPiUaVDDUPivbqxZulxDYqL4= +github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= +github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/hc-install v0.9.0 h1:2dIk8LcvANwtv3QZLckxcjyF5w8KVtiMxu6G6eLhghE= +github.com/hashicorp/hc-install v0.9.0/go.mod h1:+6vOP+mf3tuGgMApVYtmsnDoKWMDcFXeTxCACYZ8SFg= +github.com/hashicorp/hcl/v2 v2.23.0 h1:Fphj1/gCylPxHutVSEOf2fBOh1VE4AuLV7+kbJf3qos= +github.com/hashicorp/hcl/v2 v2.23.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA= github.com/hashicorp/hcl2 v0.0.0-20191002203319-fb75b3253c80 h1:PFfGModn55JA0oBsvFghhj0v93me+Ctr3uHC/UmFAls= github.com/hashicorp/hcl2 v0.0.0-20191002203319-fb75b3253c80/go.mod h1:Cxv+IJLuBiEhQ7pBYGEuORa0nr4U994pE8mYLuFd7v0= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVWkd/RG0D2XQ= github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf4fYUmB923Wzbq1ICg= -github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= -github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= -github.com/hashicorp/terraform-plugin-framework v1.8.0 h1:P07qy8RKLcoBkCrY2RHJer5AEvJnDuXomBgou6fD8kI= -github.com/hashicorp/terraform-plugin-framework v1.8.0/go.mod h1:/CpTukO88PcL/62noU7cuyaSJ4Rsim+A/pa+3rUVufY= -github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= -github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= -github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= -github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= +github.com/hashicorp/terraform-json v0.23.0 h1:sniCkExU4iKtTADReHzACkk8fnpQXrdD2xoR+lppBkI= +github.com/hashicorp/terraform-json v0.23.0/go.mod h1:MHdXbBAbSg0GvzuWazEGKAn/cyNfIB7mN6y7KJN6y2c= +github.com/hashicorp/terraform-plugin-framework v1.13.0 h1:8OTG4+oZUfKgnfTdPTJwZ532Bh2BobF4H+yBiYJ/scw= +github.com/hashicorp/terraform-plugin-framework v1.13.0/go.mod h1:j64rwMGpgM3NYXTKuxrCnyubQb/4VKldEKlcG8cvmjU= +github.com/hashicorp/terraform-plugin-framework-validators v0.14.0 h1:3PCn9iyzdVOgHYOBmncpSSOxjQhCTYmc+PGvbdlqSaI= +github.com/hashicorp/terraform-plugin-framework-validators v0.14.0/go.mod h1:LwDKNdzxrDY/mHBrlC6aYfE2fQ3Dk3gaJD64vNiXvo4= +github.com/hashicorp/terraform-plugin-go v0.25.0 h1:oi13cx7xXA6QciMcpcFi/rwA974rdTxjqEhXJjbAyks= +github.com/hashicorp/terraform-plugin-go v0.25.0/go.mod h1:+SYagMYadJP86Kvn+TGeV+ofr/R3g4/If0O5sO96MVw= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= -github.com/hashicorp/terraform-plugin-mux v0.15.0 h1:+/+lDx0WUsIOpkAmdwBIoFU8UP9o2eZASoOnLsWbKME= -github.com/hashicorp/terraform-plugin-mux v0.15.0/go.mod h1:9ezplb1Dyq394zQ+ldB0nvy/qbNAz3mMoHHseMTMaKo= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh3R4yp6pKksKHcqZx5G8= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0/go.mod h1:H+8tjs9TjV2w57QFVSMBQacf8k/E1XwLXGCARgViC6A= -github.com/hashicorp/terraform-plugin-testing v1.8.0 h1:wdYIgwDk4iO933gC4S8KbKdnMQShu6BXuZQPScmHvpk= -github.com/hashicorp/terraform-plugin-testing v1.8.0/go.mod h1:o2kOgf18ADUaZGhtOl0YCkfIxg01MAiMATT2EtIHlZk= +github.com/hashicorp/terraform-plugin-mux v0.17.0 h1:/J3vv3Ps2ISkbLPiZOLspFcIZ0v5ycUXCEQScudGCCw= +github.com/hashicorp/terraform-plugin-mux v0.17.0/go.mod h1:yWuM9U1Jg8DryNfvCp+lH70WcYv6D8aooQxxxIzFDsE= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 h1:wyKCCtn6pBBL46c1uIIBNUOWlNfYXfXpVo16iDyLp8Y= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0/go.mod h1:B0Al8NyYVr8Mp/KLwssKXG1RqnTk7FySqSn4fRuLNgw= +github.com/hashicorp/terraform-plugin-testing v1.11.0 h1:MeDT5W3YHbONJt2aPQyaBsgQeAIckwPX41EUHXEn29A= +github.com/hashicorp/terraform-plugin-testing v1.11.0/go.mod h1:WNAHQ3DcgV/0J+B15WTE6hDvxcUdkPPpnB1FR3M910U= github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI= github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= @@ -168,9 +169,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4= github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/magodo/terraform-provider-azurerm-example-gen v0.0.0-20220407025246-3a3ee0ab24a8 h1:HHSqLmPZaa8U66U7N2Gtx3gYptSHrUB/rB5t+6fZTkQ= github.com/magodo/terraform-provider-azurerm-example-gen v0.0.0-20220407025246-3a3ee0ab24a8/go.mod h1:iMzpAzVr2v/NUVie/apAYtZlFZYFndPcp6/E0VLxgAM= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= @@ -248,22 +248,22 @@ github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= -github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= -github.com/zclconf/go-cty v1.14.4/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b h1:FosyBZYxY34Wul7O/MSKey3txpPYyCqVO5ZyceuQJEI= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= +github.com/zclconf/go-cty v1.15.0 h1:tTCRWxsexYUmtt/wVxgDClUe+uQusuI443uL6e+5sXQ= +github.com/zclconf/go-cty v1.15.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= -golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= -golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= +golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= +golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic= -golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= +golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -275,16 +275,16 @@ golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= -golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= -golang.org/x/oauth2 v0.17.0 h1:6m3ZPmLEFdVxKKWnKq4VqZ60gutO35zm+zrAHVmHyDQ= -golang.org/x/oauth2 v0.17.0/go.mod h1:OzPDGQiuQMguemayvdylqddI7qcD9lnSDb+1FiwQ5HA= +golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= +golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= +golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= 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-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ= +golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -303,13 +303,13 @@ 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.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= -golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= +golang.org/x/sys v0.27.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.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.20.0 h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw= -golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= +golang.org/x/term v0.26.0 h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU= +golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -317,15 +317,15 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= -golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug= +golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.19.0 h1:tfGCXNR1OsFG+sVdLAitlpjAvD/I6dHDKnYrpEZUHkw= -golang.org/x/tools v0.19.0/go.mod h1:qoJWxmGSIBmAeriMx19ogtrEPrGtDbPK634QFIcLAhc= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -333,14 +333,14 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de h1:cZGRis4/ot9uVm639a+rHCUaG0JJHEsdyzSQTMX+suY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 h1:e7S5W7MGGLaSu8j3YjdezkZ+m1/Nm0uRVRMEMGk26Xs= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= +google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.34.0 h1:Qo/qEd2RZPCf2nKuorzksSknv0d3ERwp1vFG38gSmH4= -google.golang.org/protobuf v1.34.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/internal/acceptance/check/that.go b/internal/acceptance/check/that.go index ed83b0dcf1d6..cb9bcde7066c 100644 --- a/internal/acceptance/check/that.go +++ b/internal/acceptance/check/that.go @@ -139,7 +139,7 @@ func (t thatWithKeyType) IsSet() pluginsdk.TestCheckFunc { // IsUUID returns a TestCheckFunc which validates that the value for the specified key // is a UUID. func (t thatWithKeyType) IsUUID() pluginsdk.TestCheckFunc { - var uuidRegex = regexp.MustCompile("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$") + uuidRegex := regexp.MustCompile("^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$") return resource.TestMatchResourceAttr(t.resourceName, t.key, uuidRegex) } diff --git a/internal/acceptance/data.go b/internal/acceptance/data.go index f2e4bc32b486..0c5ca55ffcdb 100644 --- a/internal/acceptance/data.go +++ b/internal/acceptance/data.go @@ -89,41 +89,41 @@ func BuildTestData(t *testing.T, resourceType string, resourceLabel string) Test } // RandomIntOfLength is a random 8 to 18 digit integer which is unique to this test case -func (td *TestData) RandomIntOfLength(len int) int { - // len should not be +func (td *TestData) RandomIntOfLength(length int) int { + // length should not be // - greater then 18, longest a int can represent // - less then 8, as that gives us YYMMDDRR - if 8 > len || len > 18 { - panic("Invalid Test: RandomIntOfLength: len is not between 8 or 18 inclusive") + if 8 > length || length > 18 { + panic("Invalid Test: RandomIntOfLength: length is not between 8 or 18 inclusive") } // 18 - just return the int - if len >= 18 { + if length >= 18 { return td.RandomInteger } // 16-17 just strip off the last 1-2 digits - if len >= 16 { - return td.RandomInteger / int(math.Pow10(18-len)) + if length >= 16 { + return td.RandomInteger / int(math.Pow10(18-length)) } - // 8-15 keep len - 2 digits and add 2 characters of randomness on + // 8-15 keep length - 2 digits and add 2 characters of randomness on s := strconv.Itoa(td.RandomInteger) r := s[16:18] - v := s[0 : len-2] + v := s[0 : length-2] i, _ := strconv.Atoi(v + r) return i } // RandomStringOfLength is a random 1 to 1024 character string which is unique to this test case -func (td *TestData) RandomStringOfLength(len int) string { +func (td *TestData) RandomStringOfLength(length int) string { // len should not be less then 1 or greater than 1024 - if 1 > len || len > 1024 { + if 1 > length || length > 1024 { panic("Invalid Test: RandomStringOfLength: length argument must be between 1 and 1024 characters") } - return randString(len) + return randString(length) } // randString generates a random alphanumeric string of the length specified diff --git a/internal/acceptance/helpers/is_not_resource_action.go b/internal/acceptance/helpers/is_not_resource_action.go index 6ee32b9a2f23..5a51bd9ca95e 100644 --- a/internal/acceptance/helpers/is_not_resource_action.go +++ b/internal/acceptance/helpers/is_not_resource_action.go @@ -64,7 +64,7 @@ func (e isNotResourceAction) CheckPlan(ctx context.Context, req plancheck.CheckP } case plancheck.ResourceActionReplace: if rc.Change.Actions.Replace() { - resp.Error = fmt.Errorf("'%s' - expected action to not be %s, path: %v", rc.Address, e.actionType, rc.Change.ReplacePaths) + resp.Error = fmt.Errorf("'%s' - expected action to not be %s, path: %v tried to update a value that is ForceNew", rc.Address, e.actionType, rc.Change.ReplacePaths) return } default: diff --git a/internal/acceptance/testcase.go b/internal/acceptance/testcase.go index b6e8ef66f974..e9e218687ad1 100644 --- a/internal/acceptance/testcase.go +++ b/internal/acceptance/testcase.go @@ -4,24 +4,24 @@ package acceptance import ( + "context" "fmt" "testing" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/plancheck" "github.com/hashicorp/terraform-plugin-testing/terraform" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/helpers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/testclient" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/types" - "github.com/hashicorp/terraform-provider-azurerm/internal/provider" + "github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework" ) func (td TestData) DataSourceTest(t *testing.T, steps []TestStep) { // DataSources don't need a check destroy - however since this is a wrapper function // and not matching the ignore pattern `XXX_data_source_test.go`, this needs to be explicitly opted out - //lintignore:AT001 + // lintignore:AT001 testCase := resource.TestCase{ PreCheck: func() { PreCheck(t) }, Steps: steps, @@ -33,7 +33,7 @@ func (td TestData) DataSourceTestInSequence(t *testing.T, steps []TestStep) { // DataSources don't need a check destroy - however since this is a wrapper function // and not matching the ignore pattern `XXX_data_source_test.go`, this needs to be explicitly opted out - //lintignore:AT001 + // lintignore:AT001 testCase := resource.TestCase{ PreCheck: func() { PreCheck(t) }, Steps: steps, @@ -45,7 +45,7 @@ func (td TestData) DataSourceTestInSequence(t *testing.T, steps []TestStep) { func (td TestData) ResourceTest(t *testing.T, testResource types.TestResource, steps []TestStep) { // Testing framework as of 1.6.0 no longer auto-refreshes state, so adding it back in here for all steps that update // the config rather than having to modify 1000's of tests individually to add a refresh-only step - var refreshStep = TestStep{ + refreshStep := TestStep{ RefreshState: true, } @@ -87,7 +87,7 @@ func (td TestData) ResourceTest(t *testing.T, testResource types.TestResource, s func (td TestData) ResourceTestIgnoreRecreate(t *testing.T, testResource types.TestResource, steps []TestStep) { // Testing framework as of 1.6.0 no longer auto-refreshes state, so adding it back in here for all steps that update // the config rather than having to modify 1000's of tests individually to add a refresh-only step - var refreshStep = TestStep{ + refreshStep := TestStep{ RefreshState: true, } @@ -119,7 +119,7 @@ func (td TestData) ResourceTestIgnoreRecreate(t *testing.T, testResource types.T // ResourceTestIgnoreCheckDestroyed skips the check to confirm the resource test has been destroyed. // This is done because certain resources can't actually be deleted. func (td TestData) ResourceTestSkipCheckDestroyed(t *testing.T, steps []TestStep) { - //lintignore:AT001 + // lintignore:AT001 testCase := resource.TestCase{ PreCheck: func() { PreCheck(t) }, Steps: steps, @@ -128,7 +128,7 @@ func (td TestData) ResourceTestSkipCheckDestroyed(t *testing.T, steps []TestStep } func (td TestData) ResourceSequentialTestSkipCheckDestroyed(t *testing.T, steps []TestStep) { - //lintignore:AT001 + // lintignore:AT001 testCase := resource.TestCase{ PreCheck: func() { PreCheck(t) }, Steps: steps, @@ -168,31 +168,18 @@ func RunTestsInSequence(t *testing.T, tests map[string]map[string]func(t *testin func (td TestData) runAcceptanceTest(t *testing.T, testCase resource.TestCase) { testCase.ExternalProviders = td.externalProviders() - testCase.ProviderFactories = td.providers() + testCase.ProtoV5ProviderFactories = framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm", "azurerm-alt") resource.ParallelTest(t, testCase) } func (td TestData) runAcceptanceSequentialTest(t *testing.T, testCase resource.TestCase) { testCase.ExternalProviders = td.externalProviders() - testCase.ProviderFactories = td.providers() + testCase.ProtoV5ProviderFactories = framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm") resource.Test(t, testCase) } -func (td TestData) providers() map[string]func() (*schema.Provider, error) { - return map[string]func() (*schema.Provider, error){ - "azurerm": func() (*schema.Provider, error) { //nolint:unparam - azurerm := provider.TestAzureProvider() - return azurerm, nil - }, - "azurerm-alt": func() (*schema.Provider, error) { //nolint:unparam - azurerm := provider.TestAzureProvider() - return azurerm, nil - }, - } -} - func (td TestData) externalProviders() map[string]resource.ExternalProvider { return map[string]resource.ExternalProvider{ "azuread": { diff --git a/internal/clients/auth.go b/internal/clients/auth.go index 75983e5db338..fb3db4d8da8d 100644 --- a/internal/clients/auth.go +++ b/internal/clients/auth.go @@ -5,6 +5,7 @@ package clients import ( "context" + "errors" "fmt" "log" "net/http" @@ -14,7 +15,6 @@ import ( "github.com/hashicorp/go-azure-sdk/sdk/claims" "github.com/hashicorp/go-azure-sdk/sdk/environments" "github.com/hashicorp/terraform-provider-azurerm/internal/clients/graph" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/resourceproviders" ) @@ -94,25 +94,12 @@ func NewResourceManagerAccount(ctx context.Context, config auth.Credentials, sub // Use the tenant ID from Azure CLI when otherwise unknown if tenantId == "" { if cli.TenantID == "" { - return nil, fmt.Errorf("azure-cli could not determine tenant ID to use") + return nil, errors.New("azure-cli could not determine tenant ID to use") } tenantId = cli.TenantID log.Printf("[DEBUG] Using tenant ID from Azure CLI: %q", tenantId) } - // TODO: remove this in v4.0 - if !features.FourPointOhBeta() { - // Use the subscription ID from Azure CLI when otherwise unknown - if subscriptionId == "" { - if cli.DefaultSubscriptionID == "" { - return nil, fmt.Errorf("azure-cli could not determine subscription ID to use and no subscription was specified") - } - - subscriptionId = cli.DefaultSubscriptionID - log.Printf("[DEBUG] Using default subscription ID from Azure CLI: %q", subscriptionId) - } - } - // Use the Azure CLI client ID if id, ok := config.Environment.MicrosoftAzureCli.AppId(); ok { clientId = *id @@ -122,10 +109,10 @@ func NewResourceManagerAccount(ctx context.Context, config auth.Credentials, sub // We'll permit the provider to proceed with an unknown client ID since it only affects a small number of use cases when authenticating as a user if tenantId == "" { - return nil, fmt.Errorf("unable to configure ResourceManagerAccount: tenant ID could not be determined and was not specified") + return nil, errors.New("unable to configure ResourceManagerAccount: tenant ID could not be determined and was not specified") } if subscriptionId == "" { - return nil, fmt.Errorf("unable to configure ResourceManagerAccount: subscription ID could not be determined and was not specified") + return nil, errors.New("unable to configure ResourceManagerAccount: subscription ID could not be determined and was not specified") } account := ResourceManagerAccount{ diff --git a/internal/clients/builder.go b/internal/clients/builder.go index 318e49b60fef..16c15ffd0132 100644 --- a/internal/clients/builder.go +++ b/internal/clients/builder.go @@ -5,6 +5,7 @@ package clients import ( "context" + "errors" "fmt" "log" "time" @@ -48,7 +49,7 @@ func Build(ctx context.Context, builder ClientBuilder) (*Client, error) { // point folks towards the separate Azure Stack Provider when using Azure Stack if builder.AuthConfig.Environment.IsAzureStack() { - return nil, fmt.Errorf(azureStackEnvironmentError) + return nil, errors.New(azureStackEnvironmentError) } var resourceManagerAuth, storageAuth, synapseAuth, batchManagementAuth, keyVaultAuth auth.Authorizer @@ -113,7 +114,7 @@ func Build(ctx context.Context, builder ClientBuilder) (*Client, error) { resourceManagerEndpoint, ok := builder.AuthConfig.Environment.ResourceManager.Endpoint() if !ok { - return nil, fmt.Errorf("unable to determine resource manager endpoint for the current environment") + return nil, errors.New("unable to determine resource manager endpoint for the current environment") } client := Client{ diff --git a/internal/clients/client.go b/internal/clients/client.go index f74485529fff..69d254488c8c 100644 --- a/internal/clients/client.go +++ b/internal/clients/client.go @@ -14,7 +14,6 @@ import ( azurestackhci_v2024_01_01 "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01" datadog_v2021_03_01 "github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01" dns_v2018_05_01 "github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01" - eventgrid_v2022_06_15 "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15" fluidrelay_2022_05_26 "github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26" hdinsight_v2021_06_01 "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01" nginx_2024_06_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview" @@ -43,6 +42,7 @@ import ( blueprints "github.com/hashicorp/terraform-provider-azurerm/internal/services/blueprints/client" bot "github.com/hashicorp/terraform-provider-azurerm/internal/services/bot/client" cdn "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/client" + codesigning "github.com/hashicorp/terraform-provider-azurerm/internal/services/codesigning/client" cognitiveServices "github.com/hashicorp/terraform-provider-azurerm/internal/services/cognitive/client" communication "github.com/hashicorp/terraform-provider-azurerm/internal/services/communication/client" compute "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/client" @@ -67,6 +67,7 @@ import ( digitaltwins "github.com/hashicorp/terraform-provider-azurerm/internal/services/digitaltwins/client" dns "github.com/hashicorp/terraform-provider-azurerm/internal/services/dns/client" domainservices "github.com/hashicorp/terraform-provider-azurerm/internal/services/domainservices/client" + dynatrace "github.com/hashicorp/terraform-provider-azurerm/internal/services/dynatrace/client" elastic "github.com/hashicorp/terraform-provider-azurerm/internal/services/elastic/client" elasticsan "github.com/hashicorp/terraform-provider-azurerm/internal/services/elasticsan/client" eventgrid "github.com/hashicorp/terraform-provider-azurerm/internal/services/eventgrid/client" @@ -96,6 +97,7 @@ import ( maps "github.com/hashicorp/terraform-provider-azurerm/internal/services/maps/client" mixedreality "github.com/hashicorp/terraform-provider-azurerm/internal/services/mixedreality/client" mobilenetwork "github.com/hashicorp/terraform-provider-azurerm/internal/services/mobilenetwork/client" + mongocluster "github.com/hashicorp/terraform-provider-azurerm/internal/services/mongocluster/client" monitor "github.com/hashicorp/terraform-provider-azurerm/internal/services/monitor/client" mssql "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssql/client" mssqlmanagedinstance "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssqlmanagedinstance/client" @@ -175,6 +177,7 @@ type Client struct { Blueprints *blueprints.Client Bot *bot.Client Cdn *cdn.Client + CodeSigning *codesigning.Client Cognitive *cognitiveServices.Client Communication *communication.Client Compute *compute.Client @@ -199,9 +202,10 @@ type Client struct { DigitalTwins *digitaltwins.Client Dns *dns_v2018_05_01.Client DomainServices *domainservices.Client + Dynatrace *dynatrace.Client Elastic *elastic.Client ElasticSan *elasticsan.Client - EventGrid *eventgrid_v2022_06_15.Client + EventGrid *eventgrid.Client Eventhub *eventhub.Client ExtendedLocation *extendedlocation.Client FluidRelay *fluidrelay_2022_05_26.Client @@ -229,6 +233,7 @@ type Client struct { MixedReality *mixedreality.Client Monitor *monitor.Client MobileNetwork *mobilenetwork.Client + MongoCluster *mongocluster.Client MSSQL *mssql.Client MSSQLManagedInstance *mssqlmanagedinstance.Client MySQL *mysql.Client @@ -349,6 +354,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error return fmt.Errorf("building clients for Bot: %+v", err) } client.Cdn = cdn.NewClient(o) + if client.CodeSigning, err = codesigning.NewClient(o); err != nil { + return fmt.Errorf("building clients for Code Signing: %+v", err) + } if client.Cognitive, err = cognitiveServices.NewClient(o); err != nil { return fmt.Errorf("building clients for Cognitive: %+v", err) } @@ -430,6 +438,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error if client.EventGrid, err = eventgrid.NewClient(o); err != nil { return fmt.Errorf("building clients for EventGrid: %+v", err) } + if client.Dynatrace, err = dynatrace.NewClient(o); err != nil { + return fmt.Errorf("building clients for Dynatrace: %+v", err) + } if client.Eventhub, err = eventhub.NewClient(o); err != nil { return fmt.Errorf("building clients for Eventhub: %+v", err) } @@ -509,6 +520,9 @@ func (client *Client) Build(ctx context.Context, o *common.ClientOptions) error if client.MobileNetwork, err = mobilenetwork.NewClient(o); err != nil { return fmt.Errorf("building clients for Mobile Network: %+v", err) } + if client.MongoCluster, err = mongocluster.NewClient(o); err != nil { + return fmt.Errorf("building clients for Mongo Cluster: %+v", err) + } if client.MSSQL, err = mssql.NewClient(o); err != nil { return fmt.Errorf("building clients for MSSQL: %+v", err) } diff --git a/internal/clients/client_gen.go b/internal/clients/client_gen.go index e5b1b50ad94d..d744304ea359 100644 --- a/internal/clients/client_gen.go +++ b/internal/clients/client_gen.go @@ -20,7 +20,6 @@ type autoClient struct { } func buildAutoClients(client *autoClient, o *common.ClientOptions) (err error) { - if client.ChaosStudio, err = chaosstudio.NewClient(o); err != nil { return fmt.Errorf("building client for ChaosStudio: %+v", err) } diff --git a/internal/clients/graph/client.go b/internal/clients/graph/client.go index d70ee4597a66..8c75740722a5 100644 --- a/internal/clients/graph/client.go +++ b/internal/clients/graph/client.go @@ -5,6 +5,7 @@ package graph import ( "context" + "errors" "fmt" "net/http" "time" @@ -100,7 +101,7 @@ func ServicePrincipalObjectID(ctx context.Context, authorizer auth.Authorizer, e id := model.ServicePrincipals[0].ID if id == nil { - return nil, fmt.Errorf("returned object ID was nil") + return nil, errors.New("returned object ID was nil") } return id, nil diff --git a/internal/common/client_options.go b/internal/common/client_options.go index 2495f52a4e7c..99352e4d62e1 100644 --- a/internal/common/client_options.go +++ b/internal/common/client_options.go @@ -98,8 +98,8 @@ func userAgent(userAgent, tfVersion, partnerID string, disableTerraformPartnerID tfUserAgent := fmt.Sprintf("HashiCorp Terraform/%s (+https://www.terraform.io)", tfVersion) providerUserAgent := fmt.Sprintf("%s terraform-provider-azurerm/%s", tfUserAgent, version.ProviderVersion) - if features.FourPointOhBeta() { - providerUserAgent = fmt.Sprintf("%s terraform-provider-azurerm/%s+4.0-beta", tfUserAgent, version.ProviderVersion) + if features.FivePointOhBeta() { + providerUserAgent = fmt.Sprintf("%s terraform-provider-azurerm/%s+5.0-beta", tfUserAgent, version.ProviderVersion) } userAgent = strings.TrimSpace(fmt.Sprintf("%s %s", userAgent, providerUserAgent)) diff --git a/internal/customermanagedkeys/key_vault_or_managed_hsm_key.go b/internal/customermanagedkeys/key_vault_or_managed_hsm_key.go new file mode 100644 index 000000000000..2131964f73f3 --- /dev/null +++ b/internal/customermanagedkeys/key_vault_or_managed_hsm_key.go @@ -0,0 +1,199 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package customermanagedkeys + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/environments" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" + hsmParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/parse" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type VersionType int + +const ( + VersionTypeAny VersionType = iota + VersionTypeVersioned + VersionTypeVersionless +) + +type KeyVaultOrManagedHSMKey struct { + KeyVaultKeyId *parse.NestedItemId + ManagedHSMKeyId *hsmParse.ManagedHSMDataPlaneVersionedKeyId + ManagedHSMKeyVersionlessId *hsmParse.ManagedHSMDataPlaneVersionlessKeyId +} + +func (k *KeyVaultOrManagedHSMKey) IsSet() bool { + return k != nil && (k.KeyVaultKeyId != nil || k.ManagedHSMKeyId != nil || k.ManagedHSMKeyVersionlessId != nil) +} + +func (k *KeyVaultOrManagedHSMKey) ID() string { + if k == nil { + return "" + } + + if k.KeyVaultKeyId != nil { + return k.KeyVaultKeyId.ID() + } + + if k.ManagedHSMKeyId != nil { + return k.ManagedHSMKeyId.ID() + } + + if k.ManagedHSMKeyVersionlessId != nil { + return k.ManagedHSMKeyVersionlessId.ID() + } + + return "" +} + +func (k *KeyVaultOrManagedHSMKey) KeyVaultKeyID() string { + if k != nil && k.KeyVaultKeyId != nil { + return k.KeyVaultKeyId.ID() + } + return "" +} + +func (k *KeyVaultOrManagedHSMKey) ManagedHSMKeyID() string { + if k != nil && k.ManagedHSMKeyId != nil { + return k.ManagedHSMKeyId.ID() + } + + if k != nil && k.ManagedHSMKeyVersionlessId != nil { + return k.ManagedHSMKeyVersionlessId.ID() + } + + return "" +} + +func (k *KeyVaultOrManagedHSMKey) BaseUri() string { + if k.KeyVaultKeyId != nil { + return k.KeyVaultKeyId.KeyVaultBaseUrl + } + + if k.ManagedHSMKeyId != nil { + return k.ManagedHSMKeyId.BaseUri() + } + + if k.ManagedHSMKeyVersionlessId != nil { + return k.ManagedHSMKeyVersionlessId.BaseUri() + } + + return "" +} + +func parseKeyvaultID(keyRaw string, requireVersion VersionType, _ environments.Api) (*parse.NestedItemId, error) { + keyID, err := parse.ParseOptionallyVersionedNestedKeyID(keyRaw) + if err != nil { + return nil, err + } + + if requireVersion == VersionTypeVersioned && keyID.Version == "" { + return nil, fmt.Errorf("expected a key vault versioned ID but no version information was found in: %q", keyRaw) + } + + if requireVersion == VersionTypeVersionless && keyID.Version != "" { + return nil, fmt.Errorf("expected a key vault versionless ID but version information was found in: %q", keyRaw) + } + + return keyID, nil +} + +func parseManagedHSMKey(keyRaw string, requireVersion VersionType, hsmEnv environments.Api) ( + versioned *hsmParse.ManagedHSMDataPlaneVersionedKeyId, versionless *hsmParse.ManagedHSMDataPlaneVersionlessKeyId, err error, +) { + // if specified with hasVersion == True, then it has to be parsed as versionedKeyID + var domainSuffix *string + if hsmEnv != nil { + domainSuffix, _ = hsmEnv.DomainSuffix() + } + + switch requireVersion { + case VersionTypeAny: + if versioned, err = hsmParse.ManagedHSMDataPlaneVersionedKeyID(keyRaw, domainSuffix); err != nil { + if versionless, err = hsmParse.ManagedHSMDataPlaneVersionlessKeyID(keyRaw, domainSuffix); err != nil { + return nil, nil, fmt.Errorf("parse Managed HSM both versionedID and versionlessID err for %s", keyRaw) + } + } + case VersionTypeVersioned: + versioned, err = hsmParse.ManagedHSMDataPlaneVersionedKeyID(keyRaw, domainSuffix) + case VersionTypeVersionless: + versionless, err = hsmParse.ManagedHSMDataPlaneVersionlessKeyID(keyRaw, domainSuffix) + } + + return versioned, versionless, err +} + +func ExpandKeyVaultOrManagedHSMKey(d interface{}, requireVersion VersionType, keyVaultEnv, hsmEnv environments.Api) (*KeyVaultOrManagedHSMKey, error) { + return ExpandKeyVaultOrManagedHSMKeyWithCustomFieldKey(d, requireVersion, "key_vault_key_id", "managed_hsm_key_id", keyVaultEnv, hsmEnv) +} + +// ExpandKeyVaultOrManagedHSMKeyWithCustomFieldKey +// d: should be one of *pluginsdk.ResourceData or map[string]interface{} +// if return nil, nil - it means no key_vault_key_id or managed_hsm_key_id is specified //nolint:dupword +func ExpandKeyVaultOrManagedHSMKeyWithCustomFieldKey(d interface{}, requireVersion VersionType, keyVaultFieldName, hsmFieldName string, keyVaultEnv, hsmEnv environments.Api) (*KeyVaultOrManagedHSMKey, error) { + key := &KeyVaultOrManagedHSMKey{} + var err error + var vaultKeyStr, hsmKeyStr string + if rd, ok := d.(*pluginsdk.ResourceData); ok { + if keyRaw, ok := rd.GetOk(keyVaultFieldName); ok { + vaultKeyStr = keyRaw.(string) + } else if keyRaw, ok = rd.GetOk(hsmFieldName); ok { + hsmKeyStr = keyRaw.(string) + } + } else if obj, ok := d.(map[string]interface{}); ok { + if keyRaw, ok := obj[keyVaultFieldName]; ok { + vaultKeyStr, _ = keyRaw.(string) + } + if keyRaw, ok := obj[hsmFieldName]; ok { + hsmKeyStr, _ = keyRaw.(string) + } + } else { + return nil, fmt.Errorf("not supported data type to parse CMK: %T", d) + } + + switch { + case vaultKeyStr != "": + if key.KeyVaultKeyId, err = parseKeyvaultID(vaultKeyStr, requireVersion, keyVaultEnv); err != nil { + return nil, err + } + case hsmKeyStr != "": + if key.ManagedHSMKeyId, key.ManagedHSMKeyVersionlessId, err = parseManagedHSMKey(hsmKeyStr, requireVersion, hsmEnv); err != nil { + return nil, err + } + default: + return nil, nil + } + return key, err +} + +// FlattenKeyVaultOrManagedHSMID uses `KeyVaultOrManagedHSMKey.SetState()` to save the state, which this function is designed not to do. +func FlattenKeyVaultOrManagedHSMID(id string, hsmEnv environments.Api) (*KeyVaultOrManagedHSMKey, error) { + if id == "" { + return nil, nil + } + + key := &KeyVaultOrManagedHSMKey{} + var err error + key.KeyVaultKeyId, err = parse.ParseOptionallyVersionedNestedKeyID(id) + if err == nil { + return key, nil + } + + var domainSuffix *string + if hsmEnv != nil { + domainSuffix, _ = hsmEnv.DomainSuffix() + } + if key.ManagedHSMKeyId, err = hsmParse.ManagedHSMDataPlaneVersionedKeyID(id, domainSuffix); err == nil { + return key, nil + } + + if key.ManagedHSMKeyVersionlessId, err = hsmParse.ManagedHSMDataPlaneVersionlessKeyID(id, domainSuffix); err == nil { + return key, nil + } + + return nil, fmt.Errorf("cannot parse given id to key vault key nor managed hsm key: %s", id) +} diff --git a/internal/customermanagedkeys/key_vault_or_managed_hsm_key_test.go b/internal/customermanagedkeys/key_vault_or_managed_hsm_key_test.go new file mode 100644 index 000000000000..77955f881700 --- /dev/null +++ b/internal/customermanagedkeys/key_vault_or_managed_hsm_key_test.go @@ -0,0 +1,136 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package customermanagedkeys_test + +import ( + "reflect" + "testing" + + "github.com/hashicorp/go-azure-sdk/sdk/environments" + "github.com/hashicorp/terraform-provider-azurerm/internal/customermanagedkeys" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" + hsmParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/parse" +) + +func buildData(keyVaultKey, keyVualtValue, hsmKey, hsmValue string) interface{} { + data := map[string]interface{}{} + if keyVaultKey != "" { + data[keyVaultKey] = keyVualtValue + } + + if hsmKey != "" { + data[hsmKey] = hsmValue + } + + return data +} + +func buildKeyVaultData(key, value string) interface{} { + return buildData(key, value, "", "") +} + +func buildHSMData(key, value string) interface{} { + return buildData("", "", key, value) +} + +func TestExpandKeyVaultOrManagedHSMKeyKey(t *testing.T) { + type args struct { + d interface{} + hasVersion customermanagedkeys.VersionType + keyVaultFieldName string + hsmFieldName string + hsmEnv environments.Api + } + tests := []struct { + name string + args args + want *customermanagedkeys.KeyVaultOrManagedHSMKey + wantErr bool + }{ + { + name: "success with key_vault_key_id", + args: args{ + d: buildKeyVaultData("key_vault_key_id", "https://test.keyvault.azure.net/keys/test-key-name"), + keyVaultFieldName: "key_vault_key_id", + }, + want: &customermanagedkeys.KeyVaultOrManagedHSMKey{ + KeyVaultKeyId: &parse.NestedItemId{ + KeyVaultBaseUrl: "https://test.keyvault.azure.net/", + NestedItemType: "keys", + Name: "test-key-name", + }, + }, + }, + { + name: "fail with wrong item type: cert", + args: args{ + d: buildKeyVaultData("key_vault_key_id", "https://test.keyvault.azure.net/certs/test-key-name"), + keyVaultFieldName: "key_vault_key_id", + }, + wantErr: true, + }, + { + name: "fail with wrong field name", + args: args{ + d: buildKeyVaultData("key_vault_key_url", "https://test.keyvault.azure.net/keys/test-key-name"), + keyVaultFieldName: "key_vault_key_id", + }, + want: nil, + wantErr: false, + }, + { + name: "fail with no version provided", + args: args{ + d: buildKeyVaultData("key_vault_key_id", "https://test.keyvault.azure.net/keys/test-key-name3"), + keyVaultFieldName: "key_vault_key_id", + hasVersion: customermanagedkeys.VersionTypeVersioned, + }, + want: nil, + wantErr: true, + }, + { + name: "success with versionless key vault id", + args: args{ + d: buildKeyVaultData("key_vault_key_id", "https://test.keyvault.azure.net/keys/test-key-versionless"), + keyVaultFieldName: "key_vault_key_id", + hasVersion: customermanagedkeys.VersionTypeVersionless, + }, + want: &customermanagedkeys.KeyVaultOrManagedHSMKey{ + KeyVaultKeyId: &parse.NestedItemId{ + KeyVaultBaseUrl: "https://test.keyvault.azure.net/", + NestedItemType: "keys", + Name: "test-key-versionless", + }, + }, + wantErr: false, + }, + { + name: "success with managed_hsm_key_id", + args: args{ + d: buildHSMData("managed_hsm_key_id", "https://test.managedhsm.azure.net/keys/test-key-name"), + hsmFieldName: "managed_hsm_key_id", + hasVersion: customermanagedkeys.VersionTypeVersionless, + }, + want: &customermanagedkeys.KeyVaultOrManagedHSMKey{ + ManagedHSMKeyVersionlessId: &hsmParse.ManagedHSMDataPlaneVersionlessKeyId{ + ManagedHSMName: "test", + DomainSuffix: "managedhsm.azure.net", + KeyName: "test-key-name", + }, + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t2 *testing.T) { + got, err := customermanagedkeys.ExpandKeyVaultOrManagedHSMKeyWithCustomFieldKey(tt.args.d, tt.args.hasVersion, tt.args.keyVaultFieldName, tt.args.hsmFieldName, nil, tt.args.hsmEnv) + if (err != nil) != tt.wantErr { + t2.Errorf("ExpandKeyVaultOrManagedHSMKeyWithCustomFieldKey() error = %v, wantErr %v", err, tt.wantErr) + return + } + if !reflect.DeepEqual(got, tt.want) { + t2.Errorf("ExpandKeyVaultOrManagedHSMKeyWithCustomFieldKey() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/internal/features/defaults.go b/internal/features/defaults.go index 1d152cea3acc..183ac1b3d379 100644 --- a/internal/features/defaults.go +++ b/internal/features/defaults.go @@ -62,6 +62,9 @@ func Default() UserFeatures { RollInstancesWhenRequired: true, ScaleToZeroOnDelete: true, }, + Storage: StorageFeatures{ + DataPlaneAvailable: true, + }, Subscription: SubscriptionFeatures{ PreventCancellationOnDestroy: false, }, @@ -75,5 +78,9 @@ func Default() UserFeatures { VMBackupStopProtectionAndRetainDataOnDestroy: false, PurgeProtectedItemsFromVaultOnDestroy: false, }, + NetApp: NetAppFeatures{ + DeleteBackupsOnBackupVaultDestroy: false, + PreventVolumeDestruction: true, + }, } } diff --git a/internal/features/user_flags.go b/internal/features/user_flags.go index 4b367743ae89..53d1351ea2b7 100644 --- a/internal/features/user_flags.go +++ b/internal/features/user_flags.go @@ -16,10 +16,12 @@ type UserFeatures struct { ResourceGroup ResourceGroupFeatures RecoveryServicesVault RecoveryServicesVault ManagedDisk ManagedDiskFeatures + Storage StorageFeatures Subscription SubscriptionFeatures PostgresqlFlexibleServer PostgresqlFlexibleServerFeatures MachineLearning MachineLearningFeatures RecoveryService RecoveryServiceFeatures + NetApp NetAppFeatures } type CognitiveAccountFeatures struct { @@ -84,6 +86,10 @@ type AppConfigurationFeatures struct { RecoverSoftDeleted bool } +type StorageFeatures struct { + DataPlaneAvailable bool +} + type SubscriptionFeatures struct { PreventCancellationOnDestroy bool } @@ -104,3 +110,8 @@ type RecoveryServiceFeatures struct { VMBackupStopProtectionAndRetainDataOnDestroy bool PurgeProtectedItemsFromVaultOnDestroy bool } + +type NetAppFeatures struct { + DeleteBackupsOnBackupVaultDestroy bool + PreventVolumeDestruction bool +} diff --git a/internal/provider/features.go b/internal/provider/features.go index 1c42fa1b7bcf..0becb67ac8db 100644 --- a/internal/provider/features.go +++ b/internal/provider/features.go @@ -309,6 +309,21 @@ func schemaFeatures(supportLegacyTestSuite bool) *pluginsdk.Schema { }, }, + "storage": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*schema.Schema{ + "data_plane_available": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + }, + }, + }, + "subscription": { Type: pluginsdk.TypeList, Optional: true, @@ -372,6 +387,28 @@ func schemaFeatures(supportLegacyTestSuite bool) *pluginsdk.Schema { }, }, }, + + "netapp": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "delete_backups_on_backup_vault_destroy": { + Description: "When enabled, backups will be deleted when the `azurerm_netapp_backup_vault` resource is destroyed", + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + "prevent_volume_destruction": { + Description: "When enabled, the volume will not be destroyed, safeguarding from severe data loss", + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + }, + }, + }, } // this is a temporary hack to enable us to gradually add provider blocks to test configurations @@ -580,6 +617,15 @@ func expandFeatures(input []interface{}) features.UserFeatures { } } } + if raw, ok := val["storage"]; ok { + items := raw.([]interface{}) + if len(items) > 0 { + storageRaw := items[0].(map[string]interface{}) + if v, ok := storageRaw["data_plane_available"]; ok { + featuresMap.Storage.DataPlaneAvailable = v.(bool) + } + } + } if raw, ok := val["subscription"]; ok { items := raw.([]interface{}) @@ -624,5 +670,18 @@ func expandFeatures(input []interface{}) features.UserFeatures { } } + if raw, ok := val["netapp"]; ok { + items := raw.([]interface{}) + if len(items) > 0 { + netappRaw := items[0].(map[string]interface{}) + if v, ok := netappRaw["delete_backups_on_backup_vault_destroy"]; ok { + featuresMap.NetApp.DeleteBackupsOnBackupVaultDestroy = v.(bool) + } + if v, ok := netappRaw["prevent_volume_destruction"]; ok { + featuresMap.NetApp.PreventVolumeDestruction = v.(bool) + } + } + } + return featuresMap } diff --git a/internal/provider/features_test.go b/internal/provider/features_test.go index c33addf281d0..e9191a67aa0a 100644 --- a/internal/provider/features_test.go +++ b/internal/provider/features_test.go @@ -75,6 +75,9 @@ func TestExpandFeatures(t *testing.T) { RecoveryServicesVault: features.RecoveryServicesVault{ RecoverSoftDeletedBackupProtectedVM: true, }, + Storage: features.StorageFeatures{ + DataPlaneAvailable: true, + }, Subscription: features.SubscriptionFeatures{ PreventCancellationOnDestroy: false, }, @@ -88,6 +91,10 @@ func TestExpandFeatures(t *testing.T) { VMBackupStopProtectionAndRetainDataOnDestroy: false, PurgeProtectedItemsFromVaultOnDestroy: false, }, + NetApp: features.NetAppFeatures{ + DeleteBackupsOnBackupVaultDestroy: false, + PreventVolumeDestruction: true, + }, }, }, { @@ -156,6 +163,11 @@ func TestExpandFeatures(t *testing.T) { "recover_soft_deleted_backup_protected_vm": true, }, }, + "storage": []interface{}{ + map[string]interface{}{ + "data_plane_available": true, + }, + }, "subscription": []interface{}{ map[string]interface{}{ "prevent_cancellation_on_destroy": true, @@ -193,6 +205,12 @@ func TestExpandFeatures(t *testing.T) { "purge_protected_items_from_vault_on_destroy": true, }, }, + "netapp": []interface{}{ + map[string]interface{}{ + "delete_backups_on_backup_vault_destroy": true, + "prevent_volume_destruction": true, + }, + }, }, }, Expected: features.UserFeatures{ @@ -235,6 +253,9 @@ func TestExpandFeatures(t *testing.T) { RecoveryServicesVault: features.RecoveryServicesVault{ RecoverSoftDeletedBackupProtectedVM: true, }, + Storage: features.StorageFeatures{ + DataPlaneAvailable: true, + }, Subscription: features.SubscriptionFeatures{ PreventCancellationOnDestroy: true, }, @@ -263,6 +284,10 @@ func TestExpandFeatures(t *testing.T) { VMBackupStopProtectionAndRetainDataOnDestroy: true, PurgeProtectedItemsFromVaultOnDestroy: true, }, + NetApp: features.NetAppFeatures{ + DeleteBackupsOnBackupVaultDestroy: true, + PreventVolumeDestruction: true, + }, }, }, { @@ -331,6 +356,11 @@ func TestExpandFeatures(t *testing.T) { "recover_soft_deleted_backup_protected_vm": false, }, }, + "storage": []interface{}{ + map[string]interface{}{ + "data_plane_available": false, + }, + }, "subscription": []interface{}{ map[string]interface{}{ "prevent_cancellation_on_destroy": false, @@ -368,6 +398,12 @@ func TestExpandFeatures(t *testing.T) { "purge_protected_items_from_vault_on_destroy": false, }, }, + "netapp": []interface{}{ + map[string]interface{}{ + "delete_backups_on_backup_vault_destroy": false, + "prevent_volume_destruction": false, + }, + }, }, }, Expected: features.UserFeatures{ @@ -410,6 +446,9 @@ func TestExpandFeatures(t *testing.T) { RecoveryServicesVault: features.RecoveryServicesVault{ RecoverSoftDeletedBackupProtectedVM: false, }, + Storage: features.StorageFeatures{ + DataPlaneAvailable: false, + }, Subscription: features.SubscriptionFeatures{ PreventCancellationOnDestroy: false, }, @@ -438,6 +477,10 @@ func TestExpandFeatures(t *testing.T) { VMBackupStopProtectionAndRetainDataOnDestroy: false, PurgeProtectedItemsFromVaultOnDestroy: false, }, + NetApp: features.NetAppFeatures{ + DeleteBackupsOnBackupVaultDestroy: false, + PreventVolumeDestruction: false, + }, }, }, } @@ -1431,6 +1474,54 @@ func TestExpandFeaturesManagedDisk(t *testing.T) { } } +func TestExpandFeaturesStorage(t *testing.T) { + testData := []struct { + Name string + Input []interface{} + EnvVars map[string]interface{} + Expected features.UserFeatures + }{ + { + Name: "Empty Block", + Input: []interface{}{ + map[string]interface{}{ + "storage": []interface{}{}, + }, + }, + Expected: features.UserFeatures{ + Storage: features.StorageFeatures{ + DataPlaneAvailable: true, + }, + }, + }, + { + Name: "Storage Data Plane on Create is Disabled", + Input: []interface{}{ + map[string]interface{}{ + "storage": []interface{}{ + map[string]interface{}{ + "data_plane_available": false, + }, + }, + }, + }, + Expected: features.UserFeatures{ + Storage: features.StorageFeatures{ + DataPlaneAvailable: false, + }, + }, + }, + } + + for _, testCase := range testData { + t.Logf("[DEBUG] Test Case: %q", testCase.Name) + result := expandFeatures(testCase.Input) + if !reflect.DeepEqual(result.Storage, testCase.Expected.Storage) { + t.Fatalf("Expected %+v but got %+v", result.Storage, testCase.Expected.Storage) + } + } +} + func TestExpandFeaturesSubscription(t *testing.T) { testData := []struct { Name string @@ -1678,3 +1769,92 @@ func TestExpandFeaturesRecoveryService(t *testing.T) { } } } + +func TestExpandFeaturesNetApp(t *testing.T) { + testData := []struct { + Name string + Input []interface{} + EnvVars map[string]interface{} + Expected features.UserFeatures + }{ + { + Name: "Empty Block", + Input: []interface{}{ + map[string]interface{}{ + "netapp": []interface{}{}, + }, + }, + Expected: features.UserFeatures{ + NetApp: features.NetAppFeatures{ + DeleteBackupsOnBackupVaultDestroy: false, + PreventVolumeDestruction: true, + }, + }, + }, + { + Name: "NetApp Features Enabled", + Input: []interface{}{ + map[string]interface{}{ + "netapp": []interface{}{ + map[string]interface{}{ + "delete_backups_on_backup_vault_destroy": true, + "prevent_volume_destruction": true, + }, + }, + }, + }, + Expected: features.UserFeatures{ + NetApp: features.NetAppFeatures{ + DeleteBackupsOnBackupVaultDestroy: false, + PreventVolumeDestruction: true, + }, + }, + }, + { + Name: "NetApp Features Disabled", + Input: []interface{}{ + map[string]interface{}{ + "netapp": []interface{}{ + map[string]interface{}{ + "delete_backups_on_backup_vault_destroy": false, + "prevent_volume_destruction": false, + }, + }, + }, + }, + Expected: features.UserFeatures{ + NetApp: features.NetAppFeatures{ + DeleteBackupsOnBackupVaultDestroy: false, + PreventVolumeDestruction: false, + }, + }, + }, + { + Name: "NetApp Features Reverse Default Values", + Input: []interface{}{ + map[string]interface{}{ + "netapp": []interface{}{ + map[string]interface{}{ + "delete_backups_on_backup_vault_destroy": true, + "prevent_volume_destruction": false, + }, + }, + }, + }, + Expected: features.UserFeatures{ + NetApp: features.NetAppFeatures{ + DeleteBackupsOnBackupVaultDestroy: true, + PreventVolumeDestruction: false, + }, + }, + }, + } + + for _, testCase := range testData { + t.Logf("[DEBUG] Test Case: %q", testCase.Name) + result := expandFeatures(testCase.Input) + if !reflect.DeepEqual(result.Subscription, testCase.Expected.Subscription) { + t.Fatalf("Expected %+v but got %+v", result.Subscription, testCase.Expected.Subscription) + } + } +} diff --git a/internal/provider/framework/config.go b/internal/provider/framework/config.go index 5fabeb930c92..e15a877224be 100644 --- a/internal/provider/framework/config.go +++ b/internal/provider/framework/config.go @@ -415,6 +415,19 @@ func (p *ProviderConfig) Load(ctx context.Context, data *ProviderModel, tfVersio f.ManagedDisk.ExpandWithoutDowntime = true } + if !features.Storage.IsNull() && !features.Storage.IsUnknown() { + var feature []Storage + d := features.Storage.ElementsAs(ctx, &feature, true) + diags.Append(d...) + if diags.HasError() { + return + } + f.Storage.DataPlaneAvailable = true + if !feature[0].DataPlaneAvailable.IsNull() && !feature[0].DataPlaneAvailable.IsUnknown() { + f.Storage.DataPlaneAvailable = feature[0].DataPlaneAvailable.ValueBool() + } + } + if !features.Subscription.IsNull() && !features.Subscription.IsUnknown() { var feature []Subscription d := features.Subscription.ElementsAs(ctx, &feature, true) @@ -468,6 +481,28 @@ func (p *ProviderConfig) Load(ctx context.Context, data *ProviderModel, tfVersio f.RecoveryService.VMBackupStopProtectionAndRetainDataOnDestroy = false f.RecoveryService.PurgeProtectedItemsFromVaultOnDestroy = false } + + if !features.NetApp.IsNull() && !features.NetApp.IsUnknown() { + var feature []NetApp + d := features.NetApp.ElementsAs(ctx, &feature, true) + diags.Append(d...) + if diags.HasError() { + return + } + + f.NetApp.DeleteBackupsOnBackupVaultDestroy = false + if !feature[0].DeleteBackupsOnBackupVaultDestroy.IsNull() && !feature[0].DeleteBackupsOnBackupVaultDestroy.IsUnknown() { + f.NetApp.DeleteBackupsOnBackupVaultDestroy = feature[0].DeleteBackupsOnBackupVaultDestroy.ValueBool() + } + + f.NetApp.PreventVolumeDestruction = true + if !feature[0].PreventVolumeDestruction.IsNull() && !feature[0].PreventVolumeDestruction.IsUnknown() { + f.NetApp.PreventVolumeDestruction = feature[0].PreventVolumeDestruction.ValueBool() + } + } else { + f.NetApp.DeleteBackupsOnBackupVaultDestroy = false + f.NetApp.PreventVolumeDestruction = true + } } p.clientBuilder.Features = f diff --git a/internal/provider/framework/config_test.go b/internal/provider/framework/config_test.go index bdb681400d98..1bee7a45c710 100644 --- a/internal/provider/framework/config_test.go +++ b/internal/provider/framework/config_test.go @@ -15,9 +15,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types/basetypes" ) -var ( - testConfig = ProviderConfig{} -) +var testConfig = ProviderConfig{} func TestProviderConfig_LoadDefault(t *testing.T) { if os.Getenv("ARM_CLIENT_ID") == "" { @@ -200,6 +198,18 @@ func TestProviderConfig_LoadDefault(t *testing.T) { if features.RecoveryService.PurgeProtectedItemsFromVaultOnDestroy { t.Errorf("expected recovery_service.PurgeProtectedItemsFromVaultOnDestroy to be false") } + + if features.RecoveryService.PurgeProtectedItemsFromVaultOnDestroy { + t.Errorf("expected recovery_service.PurgeProtectedItemsFromVaultOnDestroy to be false") + } + + if features.NetApp.DeleteBackupsOnBackupVaultDestroy { + t.Errorf("expected netapp.DeleteBackupsOnBackupVaultDestroy to be false") + } + + if !features.NetApp.PreventVolumeDestruction { + t.Errorf("expected netapp.PreventVolumeDestruction to be true") + } } // TODO - helper functions to make setting up test date more easily so we can add more configuration coverage @@ -275,6 +285,11 @@ func defaultFeaturesList() types.List { }) managedDiskList, _ := basetypes.NewListValue(types.ObjectType{}.WithAttributeTypes(ManagedDiskAttributes), []attr.Value{managedDisk}) + storage, _ := basetypes.NewObjectValueFrom(context.Background(), StorageAttributes, map[string]attr.Value{ + "data_plane_available": basetypes.NewBoolNull(), + }) + storageList, _ := basetypes.NewListValue(types.ObjectType{}.WithAttributeTypes(StorageAttributes), []attr.Value{storage}) + subscription, _ := basetypes.NewObjectValueFrom(context.Background(), SubscriptionAttributes, map[string]attr.Value{ "prevent_cancellation_on_destroy": basetypes.NewBoolNull(), }) @@ -302,6 +317,12 @@ func defaultFeaturesList() types.List { }) recoveryServicesVaultsList, _ := basetypes.NewListValue(types.ObjectType{}.WithAttributeTypes(RecoveryServiceVaultsAttributes), []attr.Value{recoveryServicesVaults}) + netapp, _ := basetypes.NewObjectValueFrom(context.Background(), NetAppAttributes, map[string]attr.Value{ + "delete_backups_on_backup_vault_destroy": basetypes.NewBoolNull(), + "prevent_volume_destruction": basetypes.NewBoolNull(), + }) + netappList, _ := basetypes.NewListValue(types.ObjectType{}.WithAttributeTypes(NetAppAttributes), []attr.Value{netapp}) + fData, d := basetypes.NewObjectValue(FeaturesAttributes, map[string]attr.Value{ "api_management": apiManagementList, "app_configuration": appConfigurationList, @@ -314,11 +335,13 @@ func defaultFeaturesList() types.List { "virtual_machine_scale_set": virtualMachineScaleSetList, "resource_group": resourceGroupList, "managed_disk": managedDiskList, + "storage": storageList, "subscription": subscriptionList, "postgresql_flexible_server": postgresqlFlexibleServerList, "machine_learning": machineLearningList, "recovery_service": recoveryServicesList, "recovery_services_vaults": recoveryServicesVaultsList, + "netapp": netappList, }) fmt.Printf("%+v", d) diff --git a/internal/provider/framework/factory_builder.go b/internal/provider/framework/factory_builder.go index 35623aecc890..f9829f95c67d 100644 --- a/internal/provider/framework/factory_builder.go +++ b/internal/provider/framework/factory_builder.go @@ -8,11 +8,26 @@ import ( "github.com/hashicorp/terraform-plugin-framework/providerserver" "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" "github.com/hashicorp/terraform-plugin-mux/tf5muxserver" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-testing/echoprovider" "github.com/hashicorp/terraform-provider-azurerm/internal/provider" ) +func ProtoV6ProviderFactoriesInit(_ context.Context, providerNames ...string) map[string]func() (tfprotov6.ProviderServer, error) { + factories := make(map[string]func() (tfprotov6.ProviderServer, error), len(providerNames)) + + for _, name := range providerNames { + // This is all we need from protoV6 for now to properly test ephemeral resources + if name == "echo" { + factories[name] = echoprovider.NewProviderServer() + } + } + + return factories +} + func ProtoV5ProviderFactoriesInit(ctx context.Context, providerNames ...string) map[string]func() (tfprotov5.ProviderServer, error) { factories := make(map[string]func() (tfprotov5.ProviderServer, error), len(providerNames)) diff --git a/internal/provider/framework/helpers.go b/internal/provider/framework/helpers.go index a3035c14b6e9..b009b0fe7a9b 100644 --- a/internal/provider/framework/helpers.go +++ b/internal/provider/framework/helpers.go @@ -31,7 +31,6 @@ func getClientSecret(d *ProviderModel) (*string, error) { if path := d.ClientSecretFilePath.ValueString(); path != "" { fileSecretRaw, err := os.ReadFile(path) - if err != nil { return nil, fmt.Errorf("reading Client Secret from file %q: %v", path, err) } @@ -53,7 +52,6 @@ func getOidcToken(d *ProviderModel) (*string, error) { if path := getEnvStringOrDefault(d.OIDCTokenFilePath, "ARM_OIDC_TOKEN_FILE_PATH", ""); path != "" { fileTokenRaw, err := os.ReadFile(path) - if err != nil { return nil, fmt.Errorf("reading OIDC Token from file %q: %v", path, err) } @@ -70,7 +68,6 @@ func getOidcToken(d *ProviderModel) (*string, error) { if getEnvBoolIfValueAbsent(d.UseAKSWorkloadIdentity, "ARM_USE_AKS_WORKLOAD_IDENTITY") && os.Getenv("AZURE_FEDERATED_TOKEN_FILE") != "" { path := os.Getenv("AZURE_FEDERATED_TOKEN_FILE") fileTokenRaw, err := os.ReadFile(path) - if err != nil { return nil, fmt.Errorf("reading OIDC Token from file %q provided by AKS Workload Identity: %v", path, err) } @@ -92,7 +89,6 @@ func getClientId(d *ProviderModel) (*string, error) { if path := getEnvStringIfValueAbsent(d.ClientIdFilePath, ""); path != "" { fileClientIdRaw, err := os.ReadFile(path) - if err != nil { return nil, fmt.Errorf("reading Client ID from file %q: %v", path, err) } diff --git a/internal/provider/framework/model.go b/internal/provider/framework/model.go index 59a8923b8f38..082edef187c8 100644 --- a/internal/provider/framework/model.go +++ b/internal/provider/framework/model.go @@ -52,11 +52,13 @@ type Features struct { VirtualMachineScaleSet types.List `tfsdk:"virtual_machine_scale_set"` ResourceGroup types.List `tfsdk:"resource_group"` ManagedDisk types.List `tfsdk:"managed_disk"` + Storage types.List `tfsdk:"storage"` Subscription types.List `tfsdk:"subscription"` PostgresqlFlexibleServer types.List `tfsdk:"postgresql_flexible_server"` MachineLearning types.List `tfsdk:"machine_learning"` RecoveryService types.List `tfsdk:"recovery_service"` RecoveryServicesVaults types.List `tfsdk:"recovery_services_vaults"` + NetApp types.List `tfsdk:"netapp"` } // FeaturesAttributes and the other block attribute vars are required for unit testing on the Load func @@ -73,11 +75,13 @@ var FeaturesAttributes = map[string]attr.Type{ "virtual_machine_scale_set": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(VirtualMachineScaleSetAttributes)), "resource_group": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(ResourceGroupAttributes)), "managed_disk": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(ManagedDiskAttributes)), + "storage": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(StorageAttributes)), "subscription": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(SubscriptionAttributes)), "postgresql_flexible_server": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(PostgresqlFlexibleServerAttributes)), "machine_learning": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(MachineLearningAttributes)), "recovery_service": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(RecoveryServiceAttributes)), "recovery_services_vaults": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(RecoveryServiceVaultsAttributes)), + "netapp": types.ListType{}.WithElementType(types.ObjectType{}.WithAttributeTypes(NetAppAttributes)), } type APIManagement struct { @@ -204,6 +208,14 @@ var ManagedDiskAttributes = map[string]attr.Type{ "expand_without_downtime": types.BoolType, } +type Storage struct { + DataPlaneAvailable types.Bool `tfsdk:"data_plane_available"` +} + +var StorageAttributes = map[string]attr.Type{ + "data_plane_available": types.BoolType, +} + type Subscription struct { PreventCancellationOnDestroy types.Bool `tfsdk:"prevent_cancellation_on_destroy"` } @@ -245,3 +257,13 @@ type RecoveryServiceVaults struct { var RecoveryServiceVaultsAttributes = map[string]attr.Type{ "recover_soft_deleted_backup_protected_vm": types.BoolType, } + +type NetApp struct { + DeleteBackupsOnBackupVaultDestroy types.Bool `tfsdk:"delete_backups_on_backup_vault_destroy"` + PreventVolumeDestruction types.Bool `tfsdk:"prevent_volume_destruction"` +} + +var NetAppAttributes = map[string]attr.Type{ + "delete_backups_on_backup_vault_destroy": types.BoolType, + "prevent_volume_destruction": types.BoolType, +} diff --git a/internal/provider/framework/provider.go b/internal/provider/framework/provider.go index 73846ced22b4..f44dd24be3e4 100644 --- a/internal/provider/framework/provider.go +++ b/internal/provider/framework/provider.go @@ -9,6 +9,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/provider" "github.com/hashicorp/terraform-plugin-framework/provider/schema" @@ -18,6 +19,8 @@ import ( providerfunction "github.com/hashicorp/terraform-provider-azurerm/internal/provider/function" "github.com/hashicorp/terraform-provider-azurerm/internal/resourceproviders" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk/frameworkhelpers" + + pluginsdkprovider "github.com/hashicorp/terraform-provider-azurerm/internal/provider" ) type azureRmFrameworkProvider struct { @@ -29,6 +32,8 @@ var _ provider.Provider = &azureRmFrameworkProvider{} var _ provider.ProviderWithFunctions = &azureRmFrameworkProvider{} +var _ provider.ProviderWithEphemeralResources = &azureRmFrameworkProvider{} + func (p *azureRmFrameworkProvider) Functions(_ context.Context) []func() function.Function { return []func() function.Function{ providerfunction.NewNormaliseResourceIDFunction, @@ -406,6 +411,15 @@ func (p *azureRmFrameworkProvider) Schema(_ context.Context, _ provider.SchemaRe }, }, }, + "storage": schema.ListNestedBlock{ + NestedObject: schema.NestedBlockObject{ + Attributes: map[string]schema.Attribute{ + "data_plane_available": schema.BoolAttribute{ + Optional: true, + }, + }, + }, + }, "subscription": schema.ListNestedBlock{ NestedObject: schema.NestedBlockObject{ Attributes: map[string]schema.Attribute{ @@ -454,6 +468,20 @@ func (p *azureRmFrameworkProvider) Schema(_ context.Context, _ provider.SchemaRe }, }, }, + "netapp": schema.ListNestedBlock{ + NestedObject: schema.NestedBlockObject{ + Attributes: map[string]schema.Attribute{ + "delete_backups_on_backup_vault_destroy": schema.BoolAttribute{ + Optional: true, + Description: "When enabled, backups will be deleted when the `azurerm_netapp_backup_vault` resource is destroyed", + }, + "prevent_volume_destruction": schema.BoolAttribute{ + Description: "When enabled, the volume will not be destroyed, safeguarding from severe data loss", + Optional: true, + }, + }, + }, + }, }, }, }, @@ -474,6 +502,7 @@ func (p *azureRmFrameworkProvider) Configure(ctx context.Context, request provid response.ResourceData = v response.DataSourceData = v + response.EphemeralResourceData = v } else { p.Load(ctx, &data, request.TerraformVersion, &response.Diagnostics) @@ -483,11 +512,31 @@ func (p *azureRmFrameworkProvider) Configure(ctx context.Context, request provid } func (p *azureRmFrameworkProvider) DataSources(_ context.Context) []func() datasource.DataSource { - // We do not currently support any Native framework Data Sources - return nil + var output []func() datasource.DataSource + + for _, service := range pluginsdkprovider.SupportedFrameworkServices() { + output = append(output, service.FrameworkDataSources()...) + } + + return output } func (p *azureRmFrameworkProvider) Resources(_ context.Context) []func() resource.Resource { - // We do not currently support any Native framework Resources - return nil + var output []func() resource.Resource + + for _, service := range pluginsdkprovider.SupportedFrameworkServices() { + output = append(output, service.FrameworkResources()...) + } + + return output +} + +func (p *azureRmFrameworkProvider) EphemeralResources(_ context.Context) []func() ephemeral.EphemeralResource { + var output []func() ephemeral.EphemeralResource + + for _, service := range pluginsdkprovider.SupportedFrameworkServices() { + output = append(output, service.EphemeralResources()...) + } + + return output } diff --git a/internal/provider/function/normalise_resource_id_test.go b/internal/provider/function/normalise_resource_id_test.go index e31db230c2f8..f15702d5c07c 100644 --- a/internal/provider/function/normalise_resource_id_test.go +++ b/internal/provider/function/normalise_resource_id_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/tfversion" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework" ) @@ -26,9 +25,6 @@ var cases = map[string][]string{ } func TestProviderFunctionNormaliseResourceID_multiple(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skipf("skipping test due to missing feature flag") - } t.Parallel() resource.UnitTest(t, resource.TestCase{ diff --git a/internal/provider/function/parse_resource_id_test.go b/internal/provider/function/parse_resource_id_test.go index 1a1fb9d0aa77..6b8f596f436f 100644 --- a/internal/provider/function/parse_resource_id_test.go +++ b/internal/provider/function/parse_resource_id_test.go @@ -12,14 +12,10 @@ import ( "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/tfversion" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework" ) func TestProviderFunctionParseResourceID_basic(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skipf("skipping test due to missing feature flag") - } t.Parallel() resource.UnitTest(t, resource.TestCase{ @@ -47,9 +43,6 @@ func TestProviderFunctionParseResourceID_basic(t *testing.T) { } func TestProviderFunctionParseResourceID_scopedAtSubscription(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skipf("skipping test due to missing feature flag") - } t.Parallel() resource.UnitTest(t, resource.TestCase{ @@ -73,9 +66,6 @@ func TestProviderFunctionParseResourceID_scopedAtSubscription(t *testing.T) { } func TestProviderFunctionParseResourceID_scopedAtResource(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skipf("skipping test due to missing feature flag") - } t.Parallel() resource.UnitTest(t, resource.TestCase{ diff --git a/internal/provider/helpers.go b/internal/provider/helpers.go index eff65d16d594..91a4c473efa2 100644 --- a/internal/provider/helpers.go +++ b/internal/provider/helpers.go @@ -44,7 +44,6 @@ func getOidcToken(d *pluginsdk.ResourceData) (*string, error) { if path := d.Get("oidc_token_file_path").(string); path != "" { fileTokenRaw, err := os.ReadFile(path) - if err != nil { return nil, fmt.Errorf("reading OIDC Token from file %q: %v", path, err) } @@ -61,7 +60,6 @@ func getOidcToken(d *pluginsdk.ResourceData) (*string, error) { if d.Get("use_aks_workload_identity").(bool) && os.Getenv("AZURE_FEDERATED_TOKEN_FILE") != "" { path := os.Getenv("AZURE_FEDERATED_TOKEN_FILE") fileTokenRaw, err := os.ReadFile(os.Getenv("AZURE_FEDERATED_TOKEN_FILE")) - if err != nil { return nil, fmt.Errorf("reading OIDC Token from file %q provided by AKS Workload Identity: %v", path, err) } @@ -83,7 +81,6 @@ func getClientId(d *pluginsdk.ResourceData) (*string, error) { if path := d.Get("client_id_file_path").(string); path != "" { fileClientIdRaw, err := os.ReadFile(path) - if err != nil { return nil, fmt.Errorf("reading Client ID from file %q: %v", path, err) } @@ -113,7 +110,6 @@ func getClientSecret(d *pluginsdk.ResourceData) (*string, error) { if path := d.Get("client_secret_file_path").(string); path != "" { fileSecretRaw, err := os.ReadFile(path) - if err != nil { return nil, fmt.Errorf("reading Client Secret from file %q: %v", path, err) } diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 2160d4a2893c..18ac16535842 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -553,7 +553,6 @@ func buildClient(ctx context.Context, p *schema.Provider, d *schema.ResourceData if err = resourceproviders.EnsureRegistered(ctx2, client.Resource.ResourceProvidersClient, subscriptionId, requiredResourceProviders); err != nil { return nil, diag.FromErr(err) - } return client, nil diff --git a/internal/provider/services.go b/internal/provider/services.go index 719dd071ff89..a45965bae6c3 100644 --- a/internal/provider/services.go +++ b/internal/provider/services.go @@ -24,6 +24,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/blueprints" "github.com/hashicorp/terraform-provider-azurerm/internal/services/bot" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/codesigning" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cognitive" "github.com/hashicorp/terraform-provider-azurerm/internal/services/communication" "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute" @@ -48,6 +49,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/digitaltwins" "github.com/hashicorp/terraform-provider-azurerm/internal/services/dns" "github.com/hashicorp/terraform-provider-azurerm/internal/services/domainservices" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/dynatrace" "github.com/hashicorp/terraform-provider-azurerm/internal/services/elastic" "github.com/hashicorp/terraform-provider-azurerm/internal/services/elasticsan" "github.com/hashicorp/terraform-provider-azurerm/internal/services/eventgrid" @@ -80,6 +82,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/maps" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mixedreality" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mobilenetwork" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/mongocluster" "github.com/hashicorp/terraform-provider-azurerm/internal/services/monitor" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssql" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssqlmanagedinstance" @@ -149,6 +152,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration { azurestackhci.Registration{}, batch.Registration{}, bot.Registration{}, + codesigning.Registration{}, cognitive.Registration{}, communication.Registration{}, compute.Registration{}, @@ -164,7 +168,9 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration { desktopvirtualization.Registration{}, digitaltwins.Registration{}, domainservices.Registration{}, + dynatrace.Registration{}, elasticsan.Registration{}, + eventgrid.Registration{}, eventhub.Registration{}, extendedlocation.Registration{}, fluidrelay.Registration{}, @@ -181,6 +187,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration { maintenance.Registration{}, managedhsm.Registration{}, mobilenetwork.Registration{}, + mongocluster.Registration{}, monitor.Registration{}, mssql.Registration{}, mssqlmanagedinstance.Registration{}, @@ -325,3 +332,14 @@ func SupportedUntypedServices() []sdk.UntypedServiceRegistration { return out }() } + +func SupportedFrameworkServices() []sdk.FrameworkTypedServiceRegistration { + services := []sdk.FrameworkTypedServiceRegistration{ + // Services with Framework Resources, Data Sources, or Ephemeral Resources to be listed here + // e.g. + // resource.Registration{} + keyvault.Registration{}, + } + + return services +} diff --git a/internal/resourceproviders/cache.go b/internal/resourceproviders/cache.go index 8391b944ae0f..e83ba6dbb92f 100644 --- a/internal/resourceproviders/cache.go +++ b/internal/resourceproviders/cache.go @@ -14,9 +14,11 @@ import ( ) // cachedResourceProviders can be (validly) nil - as such this shouldn't be relied on -var cachedResourceProviders *[]string -var registeredResourceProviders map[string]struct{} -var unregisteredResourceProviders map[string]struct{} +var ( + cachedResourceProviders *[]string + registeredResourceProviders map[string]struct{} + unregisteredResourceProviders map[string]struct{} +) var cacheLock = &sync.Mutex{} diff --git a/internal/resourceproviders/errors.go b/internal/resourceproviders/errors.go index e1bd0343f02c..1e7b228129fd 100644 --- a/internal/resourceproviders/errors.go +++ b/internal/resourceproviders/errors.go @@ -7,34 +7,10 @@ import ( "errors" "fmt" "sync" - - "github.com/hashicorp/terraform-provider-azurerm/internal/features" ) var ErrNoAuthorization = errors.New("authorization failed") -const registrationErrorV3Fmt = `%s. - -Terraform automatically attempts to register the Azure Resource Providers it supports, to -ensure it is able to provision resources. - -If you don't have permission to register Resource Providers you may wish to disable this -functionality by adding the following to the Provider block: - -provider "azurerm" { - skip_provider_registration = true -} -Please note that if you opt out of Resource Provider Registration and Terraform tries -to provision a resource from a Resource Provider which is unregistered, then the errors -may appear misleading - for example: -> API version 2019-XX-XX was not found for Microsoft.Foo -Could suggest that the Resource Provider "Microsoft.Foo" requires registration, but -this could also indicate that this Azure Region doesn't support this API version. -More information on the "skip_provider_registration" property can be found here: -https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs#skip_provider_registration -Encountered the following errors: -%v` - const registrationErrorV4Fmt = `%s. Terraform automatically attempts to register the Azure Resource Providers it supports, to ensure it is able to provision resources. @@ -65,14 +41,8 @@ Encountered the following errors: // resource providers. func userError(err error) error { if errors.Is(err, ErrNoAuthorization) { - if !features.FourPointOhBeta() { - return fmt.Errorf(registrationErrorV3Fmt, "Terraform does not have the necessary permissions to register Resource Providers", err) - } return fmt.Errorf(registrationErrorV4Fmt, "Terraform does not have the necessary permissions to register Resource Providers", err) } - if !features.FourPointOhBeta() { - return fmt.Errorf(registrationErrorV3Fmt, "Encountered an error whilst ensuring Resource Providers are registered", err) - } return fmt.Errorf(registrationErrorV4Fmt, "Encountered an error whilst ensuring Resource Providers are registered", err) } diff --git a/internal/sdk/README.md b/internal/sdk/README.md index 3789aabe8000..7d70b86ea62d 100644 --- a/internal/sdk/README.md +++ b/internal/sdk/README.md @@ -28,7 +28,7 @@ import ( "fmt" "time" - "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-06-01/resources" // nolint: staticcheck + "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-06-01/resources" //nolint: staticcheck "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" diff --git a/internal/sdk/ephemeral_resource.go b/internal/sdk/ephemeral_resource.go new file mode 100644 index 000000000000..1d4105e7ad09 --- /dev/null +++ b/internal/sdk/ephemeral_resource.go @@ -0,0 +1,73 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package sdk + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" +) + +// EphemeralResource wraps the Framework implementation in an opinionated presentation for the AzureRM provider, where we +// always want a Configure to be present to be able to collect the appropriate metadata from the Provider via the Defaults() +// helper, and optionally override / add settings as needed. +type EphemeralResource interface { + ephemeral.EphemeralResourceWithConfigure +} + +// EphemeralResourceWithClose extends the base interface for resources that have/need a Close() method +type EphemeralResourceWithClose interface { + EphemeralResource + + ephemeral.EphemeralResourceWithClose +} + +// EphemeralResourceWithRenew extends the base interface for resources that have/need a Renew() method +type EphemeralResourceWithRenew interface { + EphemeralResource + + ephemeral.EphemeralResourceWithRenew +} + +type EphemeralResourceWithConfigurationValidation interface { + EphemeralResource + + ephemeral.EphemeralResourceWithConfigValidators +} + +type EphemeralResourceMetadata struct { + Client *clients.Client + + SubscriptionId string + + Features features.UserFeatures +} + +// Defaults configures the EphemeralResource Metadata for client access, Provider Features, and subscriptionId. +func (r *EphemeralResourceMetadata) Defaults(req ephemeral.ConfigureRequest, resp *ephemeral.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + c, ok := req.ProviderData.(*clients.Client) + if !ok { + resp.Diagnostics.AddError("Client Provider Data Error", fmt.Sprintf("invalid provider data supplied, got %+v", req.ProviderData)) + return + } + + r.Client = c + r.SubscriptionId = c.Account.SubscriptionId + r.Features = c.Features +} + +// DecodeOpen performs a Get on the OpenRequest config and attempts to load it into the interface cfg. cfg *must* be a pointer to the struct. +// returns true if successful, false if there is an error diagnostic raised. Any error diags are written directly to the response +func (r *EphemeralResourceMetadata) DecodeOpen(ctx context.Context, req ephemeral.OpenRequest, resp *ephemeral.OpenResponse, cfg interface{}) bool { + resp.Diagnostics.Append(req.Config.Get(ctx, cfg)...) + + return !resp.Diagnostics.HasError() +} diff --git a/internal/sdk/framework_data_source.go b/internal/sdk/framework_data_source.go new file mode 100644 index 000000000000..7e90b846cd02 --- /dev/null +++ b/internal/sdk/framework_data_source.go @@ -0,0 +1,51 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package sdk + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" +) + +type DataSourceMetadata struct { + Client *clients.Client + + SubscriptionId string + + TimeoutRead time.Duration + + Features features.UserFeatures +} + +// Defaults configures the Data Source Metadata for client access, Provider Features, and subscriptionId. +func (r *DataSourceMetadata) Defaults(req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + c, ok := req.ProviderData.(*clients.Client) + if !ok { + resp.Diagnostics.AddError("Client Provider Data Error", fmt.Sprintf("invalid provider data supplied, got %+v", req.ProviderData)) + return + } + + r.Client = c + r.SubscriptionId = c.Account.SubscriptionId + r.Features = c.Features + + r.TimeoutRead = 5 * time.Minute +} + +// DecodeRead is a helper function to populate the Data Source model from the user config and writes any diags back to the ReadResponse +// Returns true if there are no Error Diagnostics. +func (r *DataSourceMetadata) DecodeRead(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, config interface{}) bool { + resp.Diagnostics.Append(req.Config.Get(ctx, config)...) + + return !resp.Diagnostics.HasError() +} diff --git a/internal/sdk/framework_migration_experimental.md b/internal/sdk/framework_migration_experimental.md new file mode 100644 index 000000000000..98f022c3dcd4 --- /dev/null +++ b/internal/sdk/framework_migration_experimental.md @@ -0,0 +1,347 @@ +# Framework Adoption - Experimental + +**WARNING:** This functionality is experimental, and not for use in the provider at this time. It is intended for maintainer experimentation to facilitate migration efforts for moving from `terraform-plugin-sdk` to `terraform-plugin-framework`. This package is subject to removal or significant breaking change. Any PR submitted referencing/using this package/functionality will not be accepted, and will be closed. + +## Resources + +Example: (Working re-implementation of `azurerm_resource_group` as Framework, named `azurerm_fw_resource_group` to avoid collision) +```go +package resource + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + resourcegroupsvalidate "github.com/hashicorp/go-azure-helpers/resourcemanager/resourcegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/terraform-plugin-framework-validators/mapvalidator" + "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk/frameworkhelpers" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/resource/custompollers" +) + +var _ sdk.FrameworkResource = &FWResourceGroupResource{} + +type FWResourceGroupResource struct { + sdk.ResourceMetadata +} + +func (r *FWResourceGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp) +} + +type FWResourceGroupResourceModel struct { + ID types.String `tfsdk:"id"` + Name types.String `tfsdk:"name"` + Location types.String `tfsdk:"location"` + ManagedBy types.String `tfsdk:"managed_by"` + Tags types.Map `tfsdk:"tags"` +} + +func (r *FWResourceGroupResource) Configure(_ context.Context, request resource.ConfigureRequest, response *resource.ConfigureResponse) { + r.Defaults(request, response) +} + +func NewFWResourceGroupResource() resource.Resource { + return &FWResourceGroupResource{} +} + +func (r *FWResourceGroupResource) Metadata(_ context.Context, _ resource.MetadataRequest, response *resource.MetadataResponse) { + response.TypeName = "azurerm_fw_resource_group" +} + +func (r *FWResourceGroupResource) Schema(_ context.Context, _ resource.SchemaRequest, response *resource.SchemaResponse) { + response.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "name": schema.StringAttribute{ + Required: true, + Description: "", + MarkdownDescription: "", + Validators: []validator.String{ + frameworkhelpers.WrappedStringValidator{ + Func: resourcegroupsvalidate.ValidateName, + }, + }, + PlanModifiers: []planmodifier.String{ + stringplanmodifier.RequiresReplace(), + }, + }, + + "location": frameworkhelpers.LocationAttribute(), + + "tags": schema.MapAttribute{ + ElementType: basetypes.StringType{}, + Optional: true, + Description: "", + MarkdownDescription: "", + Validators: []validator.Map{ + mapvalidator.SizeAtLeast(1), + }, + }, + + "managed_by": schema.StringAttribute{ + Optional: true, + Description: "", + Validators: []validator.String{ + stringvalidator.LengthAtLeast(1), + }, + }, + + "id": frameworkhelpers.IDAttribute(), + }, + } +} + +func (r *FWResourceGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + client := r.Client.Resource.ResourceGroupsClient + createContext, cancel := context.WithTimeout(ctx, r.TimeoutCreate) + defer cancel() + + var data FWResourceGroupResourceModel + + if ok := r.DecodeCreate(createContext, req, resp, &data); !ok { + return + } + + id := commonids.NewResourceGroupID(r.SubscriptionId, data.Name.ValueString()) + + existing, err := client.Get(createContext, id) + if err != nil { + if !response.WasNotFound(existing.HttpResponse) { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("checking for presence of existing resource group: %+v", err), err.Error()) + return + } + } + + if !response.WasNotFound(existing.HttpResponse) { + r.ResourceRequiresImport("azurerm_fw_resource_group", id, resp) + return + } + + payload := resourcegroups.ResourceGroup{ + Location: location.Normalize(data.Location.ValueString()), + } + + if !data.ManagedBy.IsNull() { + payload.ManagedBy = data.ManagedBy.ValueStringPointer() + } + + tags, diags := frameworkhelpers.ExpandTags(data.Tags) + if diags.HasError() { + sdk.AppendResponseErrorDiagnostic(resp, diags) + return + } + + payload.Tags = tags + + if _, err = client.CreateOrUpdate(createContext, id, payload); err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("creating %s", id), err.Error()) + return + } + + data.ID = types.StringValue(id.ID()) + + r.EncodeCreate(createContext, resp, &data) +} + +func (r *FWResourceGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + client := r.Client.Resource.ResourceGroupsClient + readContext, cancel := context.WithTimeout(ctx, r.TimeoutRead) + defer cancel() + + var state FWResourceGroupResourceModel + + if ok := r.DecodeRead(readContext, req, resp, &state); !ok { + return + } + + id, err := commonids.ParseResourceGroupID(state.ID.ValueString()) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, "parsing resource group ID", err) + return + } + + existing, err := client.Get(readContext, *id) + if err != nil { + if response.WasNotFound(existing.HttpResponse) { + r.MarkAsGone(id, &resp.State, &resp.Diagnostics) + return + } + + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("retrieving %s:", id.String()), err) + return + } + + if model := existing.Model; model != nil { + state.Name = types.StringValue(id.ResourceGroupName) + state.Location = types.StringValue(location.Normalize(model.Location)) + state.ManagedBy = types.StringPointerValue(model.ManagedBy) + t, diags := frameworkhelpers.FlattenTags(model.Tags) + if diags.HasError() { + sdk.AppendResponseErrorDiagnostic(resp, diags) + return + } + + state.Tags = t + } + + r.EncodeRead(readContext, resp, &state) +} + +func (r *FWResourceGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + client := r.Client.Resource.ResourceGroupsClient + updateContext, cancel := context.WithTimeout(ctx, *r.TimeoutUpdate) + defer cancel() + + var plan, state FWResourceGroupResourceModel + + if ok := r.DecodeUpdate(updateContext, req, resp, &plan, &state); !ok { + return + } + + id, err := commonids.ParseResourceGroupID(state.ID.ValueString()) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, "Parsing ID", err) + return + } + + existing, err := client.Get(updateContext, *id) + if err != nil && existing.Model != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("retrieving %s:", id.String()), err) + return + } + + model := existing.Model + + update := resourcegroups.ResourceGroupPatchable{ + ManagedBy: model.ManagedBy, + Name: model.Name, + Tags: model.Tags, + } + + if !plan.ManagedBy.Equal(state.ManagedBy) { + update.ManagedBy = plan.ManagedBy.ValueStringPointer() + } + + if !plan.Tags.Equal(state.Tags) { + tags, diags := frameworkhelpers.ExpandTags(plan.Tags) + if diags.HasError() { + sdk.AppendResponseErrorDiagnostic(resp, diags) + return + } + update.Tags = tags + } + + if _, err = client.Update(updateContext, *id, update); err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("updating %s", id.String()), err) + return + } + + r.EncodeUpdate(updateContext, resp, &state) +} + +func (r *FWResourceGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + client := r.Client.Resource.ResourceGroupsClient + deleteContext, cancel := context.WithTimeout(ctx, r.TimeoutDelete) + defer cancel() + + var data FWResourceGroupResourceModel + + if ok := r.DecodeDelete(deleteContext, req, resp, &data); !ok { + return + } + + id, err := commonids.ParseResourceGroupID(data.ID.ValueString()) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, "parsing ID", err) + return + } + + if r.Features.ResourceGroup.PreventDeletionIfContainsResources { + pollerType := custompollers.NewResourceGroupEmptyPoller(r.Client.Resource.ResourcesClient, *id) + poller := pollers.NewPoller(pollerType, 30*time.Second, pollers.DefaultNumberOfDroppedConnectionsToAllow) + if err = poller.PollUntilDone(deleteContext); err != nil { + sdk.SetResponseErrorDiagnostic(resp, "polling error", err) + } + } + + if err = client.DeleteThenPoll(deleteContext, *id, resourcegroups.DefaultDeleteOperationOptions()); err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("deleting %s:", id.String()), err.Error()) + } +} + + +``` + +## Data Sources + +Example: // TODO + +```go +package someservicepackage +// TODO + +``` + +## Provider Functions (Core >= 1.8) + +See `internal/provider/function` for live/shipped examples. + +## Ephemeral Resources (Core >= 1.10) + +Example: + +```go +package someazureservice + +import ( + "github.com/hashicorp/terraform-plugin-framework/ephemeral/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" +) + +type MyEphemeralResource struct { + sdk.EphemeralResourceMetadata +} + +var _ sdk.EphemeralResource = MyEphemeralResource{} + +func (m MyEphemeralResource) Metadata(_ context.Context, _ ephemeral.MetadataRequest, resp *ephemeral.MetadataResponse) { + resp.TypeName = "azurerm_my_ephemeral_resource" +} + +func (m MyEphemeralResource) Schema(_ context.Context, _ ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + // ... + }, + Blocks: map[string]schema.Block{ + // ... + }, + } +} + +func (m MyEphemeralResource) Configure(ctx context.Context, req ephemeral.ConfigureRequest, resp *ephemeral.ConfigureResponse) { + m.Defaults(req, resp) +} + +func (m MyEphemeralResource) Open(ctx context.Context, request ephemeral.OpenRequest, openResponse *ephemeral.OpenResponse) { + client := m.Client.SomeAzureService.FooClient + + // TODO - example code for ephemeral resource +} + +``` diff --git a/internal/sdk/framework_resource.go b/internal/sdk/framework_resource.go new file mode 100644 index 000000000000..1f42ec624c86 --- /dev/null +++ b/internal/sdk/framework_resource.go @@ -0,0 +1,199 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package sdk + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" +) + +var IDPath = path.Root("id") + +func (r *ResourceMetadata) MarkAsGone(idFormatter resourceids.Id, state *tfsdk.State, diags *diag.Diagnostics) { + diags.Append(diag.NewWarningDiagnostic(fmt.Sprintf("[DEBUG] %s was not found - removing from state", idFormatter), "")) + state.SetAttribute(context.Background(), IDPath, nil) +} + +func (r *ResourceMetadata) ResourceRequiresImport(resourceName string, idFormatter resourceids.Id, resp *resource.CreateResponse) { + msg := "A resource with the ID %q already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for %q for more information." + resp.Diagnostics.AddError("Existing Resource Error", fmt.Sprintf(msg, idFormatter.ID(), resourceName)) +} + +type ResourceMetadata struct { + Client *clients.Client + + SubscriptionId string + + TimeoutCreate time.Duration + TimeoutRead time.Duration + TimeoutDelete time.Duration + TimeoutUpdate *time.Duration + + Features features.UserFeatures +} + +// Defaults configures the Resource Metadata for client access, Provider Features, and subscriptionId. +func (r *ResourceMetadata) Defaults(req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + if req.ProviderData == nil { + return + } + + c, ok := req.ProviderData.(*clients.Client) + if !ok { + resp.Diagnostics.AddError("Client Provider Data Error", fmt.Sprintf("invalid provider data supplied, got %+v", req.ProviderData)) + return + } + + r.Client = c + r.SubscriptionId = c.Account.SubscriptionId + r.Features = c.Features + + r.TimeoutCreate = 30 * time.Minute + r.TimeoutUpdate = pointer.To(30 * time.Minute) + r.TimeoutRead = 5 * time.Minute + r.TimeoutDelete = 30 * time.Minute +} + +// DecodeCreate reads a plan from a resource.CreateRequest into a pointer to a target model and sets resource.CreateResponse diags on error. +// Returns true if there are no error Diagnostics. +func (r *ResourceMetadata) DecodeCreate(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, plan interface{}) bool { + resp.Diagnostics.Append(req.Plan.Get(ctx, plan)...) + + return !resp.Diagnostics.HasError() +} + +// EncodeCreate writes the Config passed to create to state. +func (r *ResourceMetadata) EncodeCreate(ctx context.Context, resp *resource.CreateResponse, config interface{}) { + resp.Diagnostics.Append(resp.State.Set(ctx, config)...) +} + +// DecodeRead reads a resources State from a resource.ReadRequest into a pointer to a target model and sets resource.ReadResponse diags on error. +// Returns true if there are no error Diagnostics. +func (r *ResourceMetadata) DecodeRead(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, state interface{}) bool { + resp.Diagnostics.Append(req.State.Get(ctx, state)...) + + return !resp.Diagnostics.HasError() +} + +// EncodeRead writes the state to an ReadResponse. +// The state parameter must be a pointer to a model for the resource. This should have been populated with all possible values read from the API. +func (r *ResourceMetadata) EncodeRead(ctx context.Context, resp *resource.ReadResponse, state interface{}) { + resp.Diagnostics.Append(resp.State.Set(ctx, state)...) +} + +// DecodeUpdate reads a plan and state from a resource.UpdateRequest into pointers to a target models and sets resource.UpdateResponse diags on error. +// Returns true if there are no error Diagnostics. +// The plan and state parameters must be pointer to the model for the resource and should have been populated with the decoded plan and existing state prior to being passed to this function. +func (r *ResourceMetadata) DecodeUpdate(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, plan interface{}, state interface{}) bool { + resp.Diagnostics.Append(req.Plan.Get(ctx, plan)...) + if resp.Diagnostics.HasError() { + return false + } + + resp.Diagnostics.Append(req.State.Get(ctx, state)...) + + return !resp.Diagnostics.HasError() +} + +// EncodeUpdate writes the state back to an UpdateResponse. +// The state parameter must be a pointer to a model for the resource. +func (r *ResourceMetadata) EncodeUpdate(ctx context.Context, resp *resource.UpdateResponse, state interface{}) { + resp.Diagnostics.Append(resp.State.Set(ctx, state)...) +} + +// DecodeDelete reads a resources State from a resource.ReadRequest into a pointer to a target model and sets resource.ReadResponse diags on error. +// Returns true if there are no error Diagnostics. +func (r *ResourceMetadata) DecodeDelete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, state interface{}) bool { + resp.Diagnostics.Append(req.State.Get(ctx, state)...) + + return !resp.Diagnostics.HasError() +} + +// SetResponseErrorDiagnostic is a helper function to write an Error Diagnostic to the appropriate Framework response type +// detail can be specified as an error, from which error.Error() will be used or as a string +func SetResponseErrorDiagnostic(resp interface{}, summary string, detail interface{}) { + var errorMsg string + switch e := detail.(type) { + case error: + errorMsg = e.Error() + case string: + errorMsg = e + } + switch v := resp.(type) { + case *resource.CreateResponse: + v.Diagnostics.AddError(summary, errorMsg) + case *resource.UpdateResponse: + v.Diagnostics.AddError(summary, errorMsg) + case *resource.DeleteResponse: + v.Diagnostics.AddError(summary, errorMsg) + case *resource.ReadResponse: + v.Diagnostics.AddError(summary, errorMsg) + case *ephemeral.OpenResponse: + v.Diagnostics.AddError(summary, errorMsg) + case *ephemeral.RenewResponse: + v.Diagnostics.AddError(summary, errorMsg) + case *ephemeral.CloseResponse: + v.Diagnostics.AddError(summary, errorMsg) + } +} + +// SetResponseErrorDiagnostic is a helper function to write an Error Diagnostic to the appropriate Framework response type +// detail can be specified as an error, from which error.Error() will be used or as a string +func AppendResponseErrorDiagnostic(resp interface{}, d diag.Diagnostics) { + switch v := resp.(type) { + case *resource.CreateResponse: + v.Diagnostics.Append(d...) + case *resource.UpdateResponse: + v.Diagnostics.Append(d...) + case *resource.DeleteResponse: + v.Diagnostics.Append(d...) + case *resource.ReadResponse: + v.Diagnostics.Append(d...) + } +} + +// FrameworkResource presents an opinionated view of what a resource in AzureRM should provide +// As a minimum we require a Configure() to set up the client and Timeouts, and an ImportState() to allow users +// to import an existing resource. +type FrameworkResource interface { + resource.ResourceWithConfigure + + resource.ResourceWithImportState +} + +// FrameworkResourceWithCustomImporter extends the FrameworkResource interface to also require a CustomImporter to +// customise the import process if needed. +type FrameworkResourceWithCustomImporter interface { + FrameworkResource + + CustomImporter(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse) +} + +// FrameworkResourceWithStateMigrator extends FrameworkResource to include state migrations for resources that +// have undergone schema changes to migrate the state from previous schema versions in older releases. +type FrameworkResourceWithStateMigrator interface { + FrameworkResource + + UpgradeState(context.Context) map[int64]resource.StateUpgrader +} + +// FrameworkResourceWithValidateConfig extends FrameworkResource to include functionality intended to validate +// provided configuration as a whole - This allows advanced logic to be applied to resources based on values +// from anywhere in the schema that might be otherwise unrelated or inaccessible. +type FrameworkResourceWithValidateConfig interface { + FrameworkResource + + ValidateConfig(context.Context, resource.ValidateConfigRequest, *resource.ValidateConfigResponse) +} diff --git a/internal/sdk/framework_service_registration.go b/internal/sdk/framework_service_registration.go new file mode 100644 index 000000000000..847d6ba91600 --- /dev/null +++ b/internal/sdk/framework_service_registration.go @@ -0,0 +1,20 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package sdk + +import ( + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/resource" +) + +type FrameworkTypedServiceRegistration interface { + TypedServiceRegistration + + FrameworkResources() []func() resource.Resource + + FrameworkDataSources() []func() datasource.DataSource + + EphemeralResources() []func() ephemeral.EphemeralResource +} diff --git a/internal/sdk/frameworkhelpers/list.go b/internal/sdk/frameworkhelpers/list.go index fe2ee04ef8ce..b1757af42df1 100644 --- a/internal/sdk/frameworkhelpers/list.go +++ b/internal/sdk/frameworkhelpers/list.go @@ -83,7 +83,6 @@ func (w WrappedListValidator) ValidateList(ctx context.Context, request validato default: response.Diagnostics.AddError(fmt.Sprintf("unsupported list validation wrapper type for %s", path), fmt.Sprintf("%+v", request.ConfigValue)) } - } var _ validator.List = &WrappedListValidator{} diff --git a/internal/sdk/frameworkhelpers/string.go b/internal/sdk/frameworkhelpers/string.go index 1328a783d03f..b7357758b5e3 100644 --- a/internal/sdk/frameworkhelpers/string.go +++ b/internal/sdk/frameworkhelpers/string.go @@ -38,7 +38,6 @@ func (w WrappedStringValidator) ValidateString(_ context.Context, request valida value := request.ConfigValue.ValueString() path := request.Path.String() warnings, err := w.Func(value, path) - if err != nil { response.Diagnostics.AddError(fmt.Sprintf("invalid value for %s", path), fmt.Sprintf("%+v", err)) return diff --git a/internal/sdk/resource_decode.go b/internal/sdk/resource_decode.go index f7db50412de1..982edee9b46b 100644 --- a/internal/sdk/resource_decode.go +++ b/internal/sdk/resource_decode.go @@ -301,7 +301,6 @@ func setListValue(input interface{}, index int, fieldName string, v []interface{ } tmp.Elem().Set(slice) reflect.ValueOf(input).Elem().Field(index).Set(tmp) - } default: diff --git a/internal/sdk/resource_encode.go b/internal/sdk/resource_encode.go index ee8042c3ed50..51b7b4eddba3 100644 --- a/internal/sdk/resource_encode.go +++ b/internal/sdk/resource_encode.go @@ -27,7 +27,7 @@ func (rmd ResourceMetaData) Encode(input interface{}) error { } for k, v := range serialized { - //lintignore:R001 + // lintignore:R001 if err := rmd.ResourceData.Set(k, v); err != nil { return fmt.Errorf("setting %q: %+v", k, err) } @@ -236,7 +236,6 @@ func recurse(objType reflect.Type, objVal reflect.Value, debugLogger Logger) (ou debugLogger.Infof("[SLICE] Setting %q to %+v", structTags.hclPath, attr) output[structTags.hclPath] = attr } - } } else { debugLogger.Infof("Setting %q to nil", structTags.hclPath) diff --git a/internal/sdk/resource_encode_test.go b/internal/sdk/resource_encode_test.go index 0ffffea5c41f..32b06ed4806d 100644 --- a/internal/sdk/resource_encode_test.go +++ b/internal/sdk/resource_encode_test.go @@ -384,15 +384,15 @@ func TestResourceEncode_TopLevelOmitted(t *testing.T) { func TestResourceEncode_TopLevelComputed(t *testing.T) { type SimpleType struct { - ComputedString string `tfschema:"computed_string" computed:"true"` - ComputedNumber int64 `tfschema:"computed_number" computed:"true"` - ComputedBool bool `tfschema:"computed_bool" computed:"true"` + ComputedString string `tfschema:"computed_string" computed:"true"` + ComputedNumber int64 `tfschema:"computed_number" computed:"true"` + ComputedBool bool `tfschema:"computed_bool" computed:"true"` ComputedListOfNumbers []int64 `tfschema:"computed_list_of_numbers" computed:"true"` ComputedListOfStrings []string `tfschema:"computed_list_of_strings" computed:"true"` - ComputedMapOfBools map[string]bool `tfschema:"computed_map_of_bools" computed:"true"` - ComputedMapOfFloats map[string]float64 `tfschema:"computed_map_of_floats" computed:"true"` - ComputedMapOfInts map[string]int64 `tfschema:"computed_map_of_ints" computed:"true"` - ComputedMapOfStrings map[string]string `tfschema:"computed_map_of_strings" computed:"true"` + ComputedMapOfBools map[string]bool `tfschema:"computed_map_of_bools" computed:"true"` + ComputedMapOfFloats map[string]float64 `tfschema:"computed_map_of_floats" computed:"true"` + ComputedMapOfInts map[string]int64 `tfschema:"computed_map_of_ints" computed:"true"` + ComputedMapOfStrings map[string]string `tfschema:"computed_map_of_strings" computed:"true"` } encodeTestData{ Input: &SimpleType{ @@ -573,9 +573,9 @@ func TestResourceEncode_NestedOneLevelDeepSingleOmittedValues(t *testing.T) { MapOfBools map[string]bool `tfschema:"map_of_bools"` MapOfNumbers map[string]int64 `tfschema:"map_of_numbers"` MapOfStrings map[string]string `tfschema:"map_of_strings"` - ComputedMapOfBools map[string]bool `tfschema:"computed_map_of_bools" computed:"true"` - ComputedMapOfFloats map[string]float64 `tfschema:"computed_map_of_floats" computed:"true"` - ComputedMapOfInts map[string]int64 `tfschema:"computed_map_of_ints" computed:"true"` + ComputedMapOfBools map[string]bool `tfschema:"computed_map_of_bools" computed:"true"` + ComputedMapOfFloats map[string]float64 `tfschema:"computed_map_of_floats" computed:"true"` + ComputedMapOfInts map[string]int64 `tfschema:"computed_map_of_ints" computed:"true"` ComputedMapOfStrings map[string]string `tfschema:"computed_map_of_strings" computed:"true"` } type Type struct { diff --git a/internal/sdk/resource_test.go b/internal/sdk/resource_test.go index 546142b47a58..148cdf9c7111 100644 --- a/internal/sdk/resource_test.go +++ b/internal/sdk/resource_test.go @@ -8,7 +8,7 @@ package sdk type ExampleObj struct { Name string `tfschema:"name"` Number int `tfschema:"number"` - Output string `tfschema:"output" computed:"true"` + Output string `tfschema:"output" computed:"true"` Enabled bool `tfschema:"enabled"` Networks []string `tfschema:"networks"` NetworksSet []string `tfschema:"networks_set"` diff --git a/internal/sdk/wrapper_resource.go b/internal/sdk/wrapper_resource.go index b5b1a286835f..6424fdd6ea09 100644 --- a/internal/sdk/wrapper_resource.go +++ b/internal/sdk/wrapper_resource.go @@ -5,6 +5,7 @@ package sdk import ( "context" + "errors" "fmt" "time" @@ -79,18 +80,18 @@ func (rw *ResourceWrapper) Resource() (*schema.Resource, error) { }, Importer: pluginsdk.ImporterValidatingResourceIdThen(func(id string) error { fn := rw.resource.IDValidationFunc() - warnings, errors := fn(id, "id") + warnings, errs := fn(id, "id") if len(warnings) > 0 { for _, warning := range warnings { rw.logger.Warn(warning) } } - if len(errors) > 0 { + if len(errs) > 0 { out := "" - for _, err := range errors { + for _, err := range errs { out += err.Error() } - return fmt.Errorf(out) + return errors.New(out) } return nil diff --git a/internal/services/aadb2c/aadb2c_directory_resource.go b/internal/services/aadb2c/aadb2c_directory_resource.go index 787d70b4e058..9ec1cc3b439c 100644 --- a/internal/services/aadb2c/aadb2c_directory_resource.go +++ b/internal/services/aadb2c/aadb2c_directory_resource.go @@ -5,6 +5,7 @@ package aadb2c import ( "context" + "errors" "fmt" "time" @@ -144,10 +145,10 @@ func (r AadB2cDirectoryResource) Create() sdk.ResourceFunc { } if model.CountryCode == "" { - return fmt.Errorf("`country_code` is required when creating a new AADB2C directory") + return errors.New("`country_code` is required when creating a new AADB2C directory") } if model.DisplayName == "" { - return fmt.Errorf("`display_name` is required when creating a new AADB2C directory") + return errors.New("`display_name` is required when creating a new AADB2C directory") } id := tenants.NewB2CDirectoryID(subscriptionId, model.ResourceGroup, model.DomainName) diff --git a/internal/services/advisor/advisor_recommendations_data_source.go b/internal/services/advisor/advisor_recommendations_data_source.go index e6f8ebf9c3ed..e8c3c86b16f2 100644 --- a/internal/services/advisor/advisor_recommendations_data_source.go +++ b/internal/services/advisor/advisor_recommendations_data_source.go @@ -132,7 +132,7 @@ func dataSourceAdvisorRecommendationsRead(d *pluginsdk.ResourceData, meta interf return fmt.Errorf("setting `recommendations`: %+v", err) } - d.SetId(fmt.Sprintf("avdisor/recommendations/%s", time.Now().UTC().String())) + d.SetId("avdisor/recommendations/" + time.Now().UTC().String()) return nil } diff --git a/internal/services/analysisservices/analysis_services_server_resource.go b/internal/services/analysisservices/analysis_services_server_resource.go index 68b328649c1b..c8635d6c605c 100644 --- a/internal/services/analysisservices/analysis_services_server_resource.go +++ b/internal/services/analysisservices/analysis_services_server_resource.go @@ -19,7 +19,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" azValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/analysisservices/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -86,13 +85,6 @@ func resourceAnalysisServicesServer() *pluginsdk.Resource { "power_bi_service_enabled": { Type: pluginsdk.TypeBool, Optional: true, - Computed: !features.FourPointOhBeta(), - ConflictsWith: func() []string { - if !features.FourPointOhBeta() { - return []string{"enable_power_bi_service"} - } - return []string{} - }(), }, "ipv4_firewall_rule": { @@ -144,24 +136,7 @@ func resourceAnalysisServicesServer() *pluginsdk.Resource { "tags": commonschema.Tags(), }, } - if !features.FourPointOhBeta() { - resource.Schema["querypool_connection_mode"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{ - string(servers.ConnectionModeAll), - string(servers.ConnectionModeReadOnly), - }, false), - } - resource.Schema["enable_power_bi_service"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - Deprecated: "The property `enable_power_bi_service` has been superseded by `power_bi_service_enabled` and will be removed in v4.0 of the AzureRM Provider.", - ConflictsWith: []string{"power_bi_service_enabled"}, - } - } + return resource } @@ -198,14 +173,6 @@ func resourceAnalysisServicesServerCreate(d *pluginsdk.ResourceData, meta interf Tags: tags.Expand(d.Get("tags").(map[string]interface{})), } - if v, ok := d.GetOk("enable_power_bi_service"); ok && !features.FourPointOhBeta() { - if analysisServicesServer.Properties.IPV4FirewallSettings == nil { - analysisServicesServer.Properties.IPV4FirewallSettings = &servers.IPv4FirewallSettings{ - FirewallRules: pointer.To(make([]servers.IPv4FirewallRule, 0)), - } - } - analysisServicesServer.Properties.IPV4FirewallSettings.EnablePowerBIService = pointer.To(v.(bool)) - } if v, ok := d.GetOk("power_bi_service_enabled"); ok { if analysisServicesServer.Properties.IPV4FirewallSettings == nil { analysisServicesServer.Properties.IPV4FirewallSettings = &servers.IPv4FirewallSettings{ @@ -266,9 +233,6 @@ func resourceAnalysisServicesServerRead(d *pluginsdk.ResourceData, meta interfac d.Set("admin_users", adminUsers) enablePowerBi, fwRules := flattenAnalysisServicesServerFirewallSettings(props) - if !features.FourPointOhBeta() { - d.Set("enable_power_bi_service", enablePowerBi) - } d.Set("power_bi_service_enabled", enablePowerBi) if err := d.Set("ipv4_firewall_rule", fwRules); err != nil { return fmt.Errorf("setting `ipv4_firewall_rule`: %s", err) @@ -352,17 +316,6 @@ func resourceAnalysisServicesServerUpdate(d *pluginsdk.ResourceData, meta interf analysisServicesServer.Properties.IPV4FirewallSettings.EnablePowerBIService = pointer.To(d.Get("power_bi_service_enabled").(bool)) } - if !features.FourPointOhBeta() { - if d.HasChange("enable_power_bi_service") { - if analysisServicesServer.Properties.IPV4FirewallSettings == nil { - analysisServicesServer.Properties.IPV4FirewallSettings = &servers.IPv4FirewallSettings{ - FirewallRules: pointer.To(make([]servers.IPv4FirewallRule, 0)), - } - } - analysisServicesServer.Properties.IPV4FirewallSettings.EnablePowerBIService = pointer.To(d.Get("enable_power_bi_service").(bool)) - } - } - if containerUri, ok := d.GetOk("backup_blob_container_uri"); ok { analysisServicesServer.Properties.BackupBlobContainerUri = pointer.To(containerUri.(string)) } diff --git a/internal/services/apimanagement/api_management_api_diagnostic_resource.go b/internal/services/apimanagement/api_management_api_diagnostic_resource.go index 5a117a065a97..f47e92db498b 100644 --- a/internal/services/apimanagement/api_management_api_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_api_diagnostic_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "context" "fmt" "log" "time" @@ -123,6 +124,16 @@ func resourceApiManagementApiDiagnostic() *pluginsdk.Resource { }, false), }, }, + + CustomizeDiff: func(ctx context.Context, d *pluginsdk.ResourceDiff, i interface{}) error { + if _, n := d.GetChange("operation_name_format"); n != "" { + if d.Get("identifier") != "applicationinsights" { + return fmt.Errorf("`operation_name_format` cannot be set when `identifier` is not `applicationinsights`") + } + } + + return nil + }, } } @@ -191,8 +202,10 @@ func resourceApiManagementApiDiagnosticCreateUpdate(d *pluginsdk.ResourceData, m }, } - if d.Get("identifier") == "applicationinsights" { - parameters.Properties.OperationNameFormat = pointer.To(apidiagnostic.OperationNameFormat(d.Get("operation_name_format").(string))) + if operationNameFormat, ok := d.GetOk("operation_name_format"); ok { + if d.Get("identifier") == "applicationinsights" { + parameters.Properties.OperationNameFormat = pointer.To(apidiagnostic.OperationNameFormat(operationNameFormat.(string))) + } } samplingPercentage := d.GetRawConfig().AsValueMap()["sampling_percentage"] diff --git a/internal/services/apimanagement/api_management_api_operation_policy_resource.go b/internal/services/apimanagement/api_management_api_operation_policy_resource.go index 7ea4e6a483d7..5752810d48c6 100644 --- a/internal/services/apimanagement/api_management_api_operation_policy_resource.go +++ b/internal/services/apimanagement/api_management_api_operation_policy_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "html" "log" @@ -112,7 +113,7 @@ func resourceApiManagementAPIOperationPolicyCreateUpdate(d *pluginsdk.ResourceDa } if parameters.Properties == nil { - return fmt.Errorf("Either `xml_content` or `xml_link` must be set") + return errors.New("Either `xml_content` or `xml_link` must be set") } if _, err := client.CreateOrUpdate(ctx, id, parameters, apioperationpolicy.CreateOrUpdateOperationOptions{}); err != nil { diff --git a/internal/services/apimanagement/api_management_api_policy_resource.go b/internal/services/apimanagement/api_management_api_policy_resource.go index 63a2618d7a68..44f360ce763a 100644 --- a/internal/services/apimanagement/api_management_api_policy_resource.go +++ b/internal/services/apimanagement/api_management_api_policy_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "html" "log" @@ -115,7 +116,7 @@ func resourceApiManagementAPIPolicyCreateUpdate(d *pluginsdk.ResourceData, meta } if parameters.Properties == nil { - return fmt.Errorf("Either `xml_content` or `xml_link` must be set") + return errors.New("Either `xml_content` or `xml_link` must be set") } if _, err := client.CreateOrUpdate(ctx, id, parameters, apipolicy.CreateOrUpdateOperationOptions{}); err != nil { diff --git a/internal/services/apimanagement/api_management_api_resource.go b/internal/services/apimanagement/api_management_api_resource.go index 994200a17332..836f5e952425 100644 --- a/internal/services/apimanagement/api_management_api_resource.go +++ b/internal/services/apimanagement/api_management_api_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "log" "strings" @@ -15,7 +16,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" @@ -336,18 +336,6 @@ func resourceApiManagementApi() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["api_type"].ConflictsWith = []string{"soap_pass_through"} - - resource.Schema["soap_pass_through"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - Deprecated: "`soap_pass_through` will be removed in favour of the property `api_type` in version 4.0 of the AzureRM Provider", - ConflictsWith: []string{"api_type"}, - } - } - return resource } @@ -370,11 +358,11 @@ func resourceApiManagementApiCreateUpdate(d *pluginsdk.ResourceData, meta interf id := api.NewApiID(subscriptionId, d.Get("resource_group_name").(string), d.Get("api_management_name").(string), apiId) if version != "" && versionSetId == "" { - return fmt.Errorf("setting `version` without the required `version_set_id`") + return errors.New("setting `version` without the required `version_set_id`") } if sourceApiId == "" && (displayName == "" || protocols == nil || len(*protocols) == 0) { - return fmt.Errorf("`display_name`, `protocols` are required when `source_api_id` is not set") + return errors.New("`display_name`, `protocols` are required when `source_api_id` is not set") } newId := api.NewApiID(subscriptionId, d.Get("resource_group_name").(string), d.Get("api_management_name").(string), apiId) @@ -394,11 +382,6 @@ func resourceApiManagementApiCreateUpdate(d *pluginsdk.ResourceData, meta interf if v, ok := d.GetOk("api_type"); ok { apiType = api.ApiType(v.(string)) } - if !features.FourPointOhBeta() { - if d.Get("soap_pass_through").(bool) { - apiType = api.ApiTypeSoap - } - } soapApiType := map[api.ApiType]api.SoapApiType{ api.ApiTypeGraphql: api.SoapApiTypeGraphql, @@ -562,9 +545,6 @@ func resourceApiManagementApiRead(d *pluginsdk.ResourceData, meta interface{}) e d.Set("path", props.Path) d.Set("service_url", pointer.From(props.ServiceURL)) d.Set("revision", pointer.From(props.ApiRevision)) - if !features.FourPointOhBeta() { - d.Set("soap_pass_through", apiType == string(api.ApiTypeSoap)) - } d.Set("subscription_required", pointer.From(props.SubscriptionRequired)) d.Set("version", pointer.From(props.ApiVersion)) d.Set("version_set_id", pointer.From(props.ApiVersionSetId)) diff --git a/internal/services/apimanagement/api_management_api_resource_test.go b/internal/services/apimanagement/api_management_api_resource_test.go index 399245c55d6d..8e3c6365eb16 100644 --- a/internal/services/apimanagement/api_management_api_resource_test.go +++ b/internal/services/apimanagement/api_management_api_resource_test.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -187,25 +186,6 @@ func TestAccApiManagementApi_websocket(t *testing.T) { }) } -func TestAccApiManagementApi_soapPassthrough(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("Test does not apply on 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_api_management_api", "test") - r := ApiManagementApiResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.soapPassthrough(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("api_type").HasValue("soap"), - ), - }, - data.ImportStep(), - }) -} - func TestAccApiManagementApi_subscriptionRequired(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_api_management_api", "test") r := ApiManagementApiResource{} @@ -594,23 +574,6 @@ resource "azurerm_api_management_api" "test" { `, r.template(data, SkuNameDeveloper), data.RandomInteger) } -func (r ApiManagementApiResource) soapPassthrough(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_api_management_api" "test" { - name = "acctestapi-%d" - resource_group_name = azurerm_resource_group.test.name - api_management_name = azurerm_api_management.test.name - display_name = "api1" - path = "api1" - protocols = ["https"] - revision = "1" - api_type = "soap" -} -`, r.template(data, SkuNameConsumption), data.RandomInteger) -} - func (r ApiManagementApiResource) subscriptionRequired(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/apimanagement/api_management_api_schema_resource.go b/internal/services/apimanagement/api_management_api_schema_resource.go index 7a1b228433b2..e4e41972afcc 100644 --- a/internal/services/apimanagement/api_management_api_schema_resource.go +++ b/internal/services/apimanagement/api_management_api_schema_resource.go @@ -216,7 +216,7 @@ func resourceApiManagementApiSchemaDelete(d *pluginsdk.ResourceData, meta interf } func convert2Str(rawVal interface{}) (string, error) { - value := "" + var value string if val, ok := rawVal.(string); ok { value = val } else { diff --git a/internal/services/apimanagement/api_management_api_tag_description_resource.go b/internal/services/apimanagement/api_management_api_tag_description_resource.go index 91621fa9233d..a57a7f7876f3 100644 --- a/internal/services/apimanagement/api_management_api_tag_description_resource.go +++ b/internal/services/apimanagement/api_management_api_tag_description_resource.go @@ -39,7 +39,6 @@ func resourceApiManagementApiTagDescription() *pluginsdk.Resource { }, Schema: map[string]*pluginsdk.Schema{ - "api_tag_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/apimanagement/api_management_api_version_set_resource.go b/internal/services/apimanagement/api_management_api_version_set_resource.go index c7de3d85d6b0..78bf2ccc8140 100644 --- a/internal/services/apimanagement/api_management_api_version_set_resource.go +++ b/internal/services/apimanagement/api_management_api_version_set_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "log" "time" @@ -134,26 +135,26 @@ func resourceApiManagementApiVersionSetCreateUpdate(d *pluginsdk.ResourceData, m switch schema := versioningScheme; schema { case apiversionset.VersioningSchemeHeader: if !headerSet { - return fmt.Errorf("`version_header_name` must be set if `versioning_schema` is `Header`") + return errors.New("`version_header_name` must be set if `versioning_schema` is `Header`") } if querySet { - return fmt.Errorf("`version_query_name` can not be set if `versioning_schema` is `Header`") + return errors.New("`version_query_name` can not be set if `versioning_schema` is `Header`") } case apiversionset.VersioningSchemeQuery: if headerSet { - return fmt.Errorf("`version_header_name` can not be set if `versioning_schema` is `Query`") + return errors.New("`version_header_name` can not be set if `versioning_schema` is `Query`") } if !querySet { - return fmt.Errorf("`version_query_name` must be set if `versioning_schema` is `Query`") + return errors.New("`version_query_name` must be set if `versioning_schema` is `Query`") } case apiversionset.VersioningSchemeSegment: if headerSet { - return fmt.Errorf("`version_header_name` can not be set if `versioning_schema` is `Segment`") + return errors.New("`version_header_name` can not be set if `versioning_schema` is `Segment`") } if querySet { - return fmt.Errorf("`version_query_name` can not be set if `versioning_schema` is `Segment`") + return errors.New("`version_query_name` can not be set if `versioning_schema` is `Segment`") } } diff --git a/internal/services/apimanagement/api_management_backend_resource.go b/internal/services/apimanagement/api_management_backend_resource.go index 3c7f8a130594..650d69c2a9e0 100644 --- a/internal/services/apimanagement/api_management_backend_resource.go +++ b/internal/services/apimanagement/api_management_backend_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "log" "strings" @@ -483,7 +484,7 @@ func expandApiManagementBackendServiceFabricCluster(input []interface{}) (error, } if properties.ClientCertificateId == nil && properties.ClientCertificatethumbprint == nil { - return fmt.Errorf("at least one of `client_certificate_thumbprint` and `client_certificate_id` must be set"), nil + return errors.New("at least one of `client_certificate_thumbprint` and `client_certificate_id` must be set"), nil } serverCertificateThumbprintsUnset := true @@ -497,7 +498,7 @@ func expandApiManagementBackendServiceFabricCluster(input []interface{}) (error, serverX509NamesUnset = false } if serverCertificateThumbprintsUnset && serverX509NamesUnset { - return fmt.Errorf("One of `server_certificate_thumbprints` or `server_x509_name` must be set"), nil + return errors.New("one of `server_certificate_thumbprints` or `server_x509_name` must be set"), nil } return nil, &properties } diff --git a/internal/services/apimanagement/api_management_backend_resource_test.go b/internal/services/apimanagement/api_management_backend_resource_test.go index 970d0bcf0ff2..353a11f4149d 100644 --- a/internal/services/apimanagement/api_management_backend_resource_test.go +++ b/internal/services/apimanagement/api_management_backend_resource_test.go @@ -328,7 +328,8 @@ resource "azurerm_api_management_backend" "test" { } func (r ApiManagementAuthorizationBackendResource) serviceFabric(data acceptance.TestData) string { - return fmt.Sprintf(` + // nolint: dupword + return fmt.Sprintf(` %s resource "azurerm_api_management_certificate" "test" { @@ -394,6 +395,7 @@ resource "azurerm_api_management_backend" "test" { } func (r ApiManagementAuthorizationBackendResource) serviceFabricClientCertificateId(data acceptance.TestData) string { + // nolint: dupword return fmt.Sprintf(` %s diff --git a/internal/services/apimanagement/api_management_diagnostic_resource.go b/internal/services/apimanagement/api_management_diagnostic_resource.go index 0037e9a21387..60d8f8621568 100644 --- a/internal/services/apimanagement/api_management_diagnostic_resource.go +++ b/internal/services/apimanagement/api_management_diagnostic_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "context" "fmt" "log" "time" @@ -120,6 +121,16 @@ func resourceApiManagementDiagnostic() *pluginsdk.Resource { }, false), }, }, + + CustomizeDiff: func(ctx context.Context, d *pluginsdk.ResourceDiff, i interface{}) error { + if _, n := d.GetChange("operation_name_format"); n != "" { + if d.Get("identifier") != "applicationinsights" { + return fmt.Errorf("`operation_name_format` cannot be set when `identifier` is not `applicationinsights`") + } + } + + return nil + }, } } @@ -150,8 +161,8 @@ func resourceApiManagementDiagnosticCreateUpdate(d *pluginsdk.ResourceData, meta }, } - if d.Get("identifier") == "applicationinsights" { - if operationNameFormat, ok := d.GetOk("operation_name_format"); ok { + if operationNameFormat, ok := d.GetOk("operation_name_format"); ok { + if d.Get("identifier") == "applicationinsights" { parameters.Properties.OperationNameFormat = pointer.To(diagnostic.OperationNameFormat(operationNameFormat.(string))) } } diff --git a/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source_test.go b/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source_test.go index dd2068b712ed..33b1e68793be 100644 --- a/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source_test.go +++ b/internal/services/apimanagement/api_management_gateway_host_name_configuration_data_source_test.go @@ -11,8 +11,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" ) -type ApiManagementGatewayHostnameConfigurationDataSource struct { -} +type ApiManagementGatewayHostnameConfigurationDataSource struct{} func TestAccDataSourceApiManagementGatewayHostnameConfiguration_basic(t *testing.T) { data := acceptance.BuildTestData(t, "data.azurerm_api_management_gateway_host_name_configuration", "test") diff --git a/internal/services/apimanagement/api_management_logger_resource.go b/internal/services/apimanagement/api_management_logger_resource.go index f3219b0e4ad0..b78dad04b59e 100644 --- a/internal/services/apimanagement/api_management_logger_resource.go +++ b/internal/services/apimanagement/api_management_logger_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "log" "time" @@ -170,7 +171,7 @@ func resourceApiManagementLoggerCreate(d *pluginsdk.ResourceData, meta interface appInsightsRaw := d.Get("application_insights").([]interface{}) if len(eventHubRaw) == 0 && len(appInsightsRaw) == 0 { - return fmt.Errorf("Either `eventhub` or `application_insights` is required") + return errors.New("either `eventhub` or `application_insights` is required") } if d.IsNewResource() { @@ -324,7 +325,6 @@ func expandApiManagementLoggerEventHub(input []interface{}) *map[string]string { if clientId != "" { credentials["identityClientId"] = clientId } - } return &credentials diff --git a/internal/services/apimanagement/api_management_named_value_resource.go b/internal/services/apimanagement/api_management_named_value_resource.go index d8e82655f16a..3848194aa28d 100644 --- a/internal/services/apimanagement/api_management_named_value_resource.go +++ b/internal/services/apimanagement/api_management_named_value_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "log" "time" @@ -131,7 +132,7 @@ func resourceApiManagementNamedValueCreateUpdate(d *pluginsdk.ResourceData, meta } if parameters.Properties.KeyVault != nil && (parameters.Properties.Secret == nil || !*parameters.Properties.Secret) { - return fmt.Errorf("`secret` must be true when `value_from_key_vault` is set") + return errors.New("`secret` must be true when `value_from_key_vault` is set") } if v, ok := d.GetOk("value"); ok { diff --git a/internal/services/apimanagement/api_management_policy_resource.go b/internal/services/apimanagement/api_management_policy_resource.go index 7aa1a221d427..b02474d3137d 100644 --- a/internal/services/apimanagement/api_management_policy_resource.go +++ b/internal/services/apimanagement/api_management_policy_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "html" "log" @@ -116,7 +117,7 @@ func resourceApiManagementPolicyCreateUpdate(d *pluginsdk.ResourceData, meta int } if parameters.Properties == nil { - return fmt.Errorf("Either `xml_content` or `xml_link` must be set") + return errors.New("Either `xml_content` or `xml_link` must be set") } policyServiceId := policy.NewServiceID(apiMgmtId.SubscriptionId, resourceGroup, serviceName) diff --git a/internal/services/apimanagement/api_management_product_policy_resource.go b/internal/services/apimanagement/api_management_product_policy_resource.go index 67e2df8d6733..8da02e763f20 100644 --- a/internal/services/apimanagement/api_management_product_policy_resource.go +++ b/internal/services/apimanagement/api_management_product_policy_resource.go @@ -4,6 +4,7 @@ package apimanagement import ( + "errors" "fmt" "html" "log" @@ -110,7 +111,7 @@ func resourceApiManagementProductPolicyCreateUpdate(d *pluginsdk.ResourceData, m } if parameters.Properties == nil { - return fmt.Errorf("Either `xml_content` or `xml_link` must be set") + return errors.New("either `xml_content` or `xml_link` must be set") } if _, err := client.CreateOrUpdate(ctx, id, parameters, productpolicy.CreateOrUpdateOperationOptions{}); err != nil { diff --git a/internal/services/apimanagement/api_management_resource.go b/internal/services/apimanagement/api_management_resource.go index 4d2102604d0c..d2f7d6512cca 100644 --- a/internal/services/apimanagement/api_management_resource.go +++ b/internal/services/apimanagement/api_management_resource.go @@ -5,6 +5,7 @@ package apimanagement import ( "context" + "errors" "fmt" "log" "strconv" @@ -33,7 +34,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/schemaz" apimValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -639,34 +639,6 @@ func resourceApiManagementSchema() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } - if !features.FourPointOhBeta() { - schema["policy"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - ConfigMode: pluginsdk.SchemaConfigModeAttr, - Deprecated: "The `policy` block has been superseded by the resource `azurerm_api_management_policy` and will be removed in v4.0 of the AzureRM Provider", - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "xml_content": { - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ConflictsWith: []string{"policy.0.xml_link"}, - DiffSuppressFunc: XmlWithDotNetInterpolationsDiffSuppress, - }, - - "xml_link": { - Type: pluginsdk.TypeString, - Optional: true, - ConflictsWith: []string{"policy.0.xml_content"}, - }, - }, - }, - } - } - return schema } @@ -727,7 +699,7 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac if !response.WasNotFound(softDeleted.HttpResponse) && !response.WasForbidden(softDeleted.HttpResponse) { if !meta.(*clients.Client).Features.ApiManagement.RecoverSoftDeleted { // this exists but the users opted out, so they must import this it out-of-band - return fmt.Errorf(optedOutOfRecoveringSoftDeletedApiManagementErrorFmt(id.ServiceName, location)) + return errors.New(optedOutOfRecoveringSoftDeletedApiManagementErrorFmt(id.ServiceName, location)) } // First recover the deleted API Management, since all other properties are ignored during a restore operation @@ -802,7 +774,7 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac if virtualNetworkType != string(apimanagementservice.VirtualNetworkTypeNone) { virtualNetworkConfiguration := expandAzureRmApiManagementVirtualNetworkConfigurations(d) if virtualNetworkConfiguration == nil { - return fmt.Errorf("You must specify 'virtual_network_configuration' when 'virtual_network_type' is %q", virtualNetworkType) + return fmt.Errorf("you must specify 'virtual_network_configuration' when 'virtual_network_type' is %q", virtualNetworkType) } properties.Properties.VirtualNetworkConfiguration = virtualNetworkConfiguration } @@ -811,7 +783,7 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac if publicIpAddressId != "" { if sku.Name != apimanagementservice.SkuTypePremium && sku.Name != apimanagementservice.SkuTypeDeveloper { if virtualNetworkType == string(apimanagementservice.VirtualNetworkTypeNone) { - return fmt.Errorf("`public_ip_address_id` is only supported when sku type is `Developer` or `Premium`, and the APIM instance is deployed in a virtual network.") + return errors.New("`public_ip_address_id` is only supported when sku type is `Developer` or `Premium`, and the APIM instance is deployed in a virtual network") } } properties.Properties.PublicIPAddressId = pointer.To(publicIpAddressId) @@ -820,14 +792,14 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("client_certificate_enabled") { enableClientCertificate := d.Get("client_certificate_enabled").(bool) if enableClientCertificate && sku.Name != apimanagementservice.SkuTypeConsumption { - return fmt.Errorf("`client_certificate_enabled` is only supported when sku type is `Consumption`") + return errors.New("`client_certificate_enabled` is only supported when sku type is `Consumption`") } properties.Properties.EnableClientCertificate = pointer.To(enableClientCertificate) } gateWayDisabled := d.Get("gateway_disabled").(bool) if gateWayDisabled && len(*properties.Properties.AdditionalLocations) == 0 { - return fmt.Errorf("`gateway_disabled` is only supported when `additional_location` is set") + return errors.New("`gateway_disabled` is only supported when `additional_location` is set") } properties.Properties.DisableGateway = pointer.To(gateWayDisabled) @@ -839,12 +811,9 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac if v := d.Get("zones").(*schema.Set).List(); len(v) > 0 { if sku.Name != apimanagementservice.SkuTypePremium { - return fmt.Errorf("`zones` is only supported when sku type is `Premium`") + return errors.New("`zones` is only supported when sku type is `Premium`") } - if publicIpAddressId == "" { - return fmt.Errorf("`public_ip_address` must be specified when `zones` are provided") - } zones := zones.ExpandUntyped(v) properties.Zones = &zones } @@ -905,7 +874,7 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac signInSettingsRaw := d.Get("sign_in").([]interface{}) if sku.Name == apimanagementservice.SkuTypeConsumption && len(signInSettingsRaw) > 0 { - return fmt.Errorf("`sign_in` is not support for sku tier `Consumption`") + return errors.New("`sign_in` is not support for sku tier `Consumption`") } if sku.Name != apimanagementservice.SkuTypeConsumption { signInSettingServiceId := signinsettings.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) @@ -942,32 +911,6 @@ func resourceApiManagementServiceCreate(d *pluginsdk.ResourceData, meta interfac } } - if !features.FourPointOhBeta() { - policyClient := meta.(*clients.Client).ApiManagement.PolicyClient - policiesRaw := d.Get("policy").([]interface{}) - policyContract, err := expandApiManagementPolicies(policiesRaw) - if err != nil { - return err - } - - if _, ok := d.GetOk("policy"); ok { - policyServiceId := policy.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) - // remove the existing policy - if delResp, err := policyClient.Delete(ctx, policyServiceId, policy.DeleteOperationOptions{}); err != nil { - if !response.WasNotFound(delResp.HttpResponse) { - return fmt.Errorf("removing Policies from %s: %+v", id, err) - } - } - - // then add the new one, if it exists - if policyContract != nil { - if _, err := policyClient.CreateOrUpdate(ctx, policyServiceId, *policyContract, policy.CreateOrUpdateOperationOptions{}); err != nil { - return fmt.Errorf(" setting Policies for %s: %+v", id, err) - } - } - } - } - tenantAccessRaw := d.Get("tenant_access").([]interface{}) if sku.Name == apimanagementservice.SkuTypeConsumption && len(tenantAccessRaw) > 0 { return fmt.Errorf("`tenant_access` is not supported for sku tier `Consumption`") @@ -1103,7 +1046,7 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("client_certificate_enabled") { enableClientCertificate := d.Get("client_certificate_enabled").(bool) if enableClientCertificate && sku.Name != apimanagementservice.SkuTypeConsumption { - return fmt.Errorf("`client_certificate_enabled` is only supported when sku type is `Consumption`") + return errors.New("`client_certificate_enabled` is only supported when sku type is `Consumption`") } props.EnableClientCertificate = pointer.To(enableClientCertificate) } @@ -1111,7 +1054,7 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("gateway_disabled") { gateWayDisabled := d.Get("gateway_disabled").(bool) if gateWayDisabled && props.AdditionalLocations != nil && len(*props.AdditionalLocations) == 0 { - return fmt.Errorf("`gateway_disabled` is only supported when `additional_location` is set") + return errors.New("`gateway_disabled` is only supported when `additional_location` is set") } props.DisableGateway = pointer.To(gateWayDisabled) } @@ -1129,12 +1072,9 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("zones") { if v := d.Get("zones").(*schema.Set).List(); len(v) > 0 { if sku.Name != apimanagementservice.SkuTypePremium { - return fmt.Errorf("`zones` is only supported when sku type is `Premium`") + return errors.New("`zones` is only supported when sku type is `Premium`") } - if d.Get("public_ip_address_id").(string) == "" { - return fmt.Errorf("`public_ip_address` must be specified when `zones` are provided") - } zones := zones.ExpandUntyped(v) payload.Zones = &zones } @@ -1151,7 +1091,7 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("sign_in") { signInSettingsRaw := d.Get("sign_in").([]interface{}) if sku.Name == apimanagementservice.SkuTypeConsumption && len(signInSettingsRaw) > 0 { - return fmt.Errorf("`sign_in` is not support for sku tier `Consumption`") + return errors.New("`sign_in` is not support for sku tier `Consumption`") } if sku.Name != apimanagementservice.SkuTypeConsumption { signInSettingServiceId := signinsettings.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) @@ -1166,7 +1106,7 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("sign_up") { signUpSettingsRaw := d.Get("sign_up").([]interface{}) if sku.Name == apimanagementservice.SkuTypeConsumption && len(signUpSettingsRaw) > 0 { - return fmt.Errorf("`sign_up` is not support for sku tier `Consumption`") + return errors.New("`sign_up` is not support for sku tier `Consumption`") } if sku.Name != apimanagementservice.SkuTypeConsumption { signUpSettingServiceId := signupsettings.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) @@ -1181,7 +1121,7 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac if d.HasChange("delegation") { delegationSettingsRaw := d.Get("delegation").([]interface{}) if sku.Name == apimanagementservice.SkuTypeConsumption && len(delegationSettingsRaw) > 0 { - return fmt.Errorf("`delegation` is not support for sku tier `Consumption`") + return errors.New("`delegation` is not support for sku tier `Consumption`") } if sku.Name != apimanagementservice.SkuTypeConsumption && len(delegationSettingsRaw) > 0 { delegationSettingServiceId := delegationsettings.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) @@ -1193,32 +1133,6 @@ func resourceApiManagementServiceUpdate(d *pluginsdk.ResourceData, meta interfac } } - if !features.FourPointOhBeta() { - if d.HasChange("policy") { - policyClient := meta.(*clients.Client).ApiManagement.PolicyClient - policiesRaw := d.Get("policy").([]interface{}) - policyContract, err := expandApiManagementPolicies(policiesRaw) - if err != nil { - return err - } - - policyServiceId := policy.NewServiceID(subscriptionId, id.ResourceGroupName, id.ServiceName) - // remove the existing policy - if delResp, err := policyClient.Delete(ctx, policyServiceId, policy.DeleteOperationOptions{}); err != nil { - if !response.WasNotFound(delResp.HttpResponse) { - return fmt.Errorf("removing Policies from %s: %+v", id, err) - } - } - - // then add the new one, if it exists - if policyContract != nil { - if _, err := policyClient.CreateOrUpdate(ctx, policyServiceId, *policyContract, policy.CreateOrUpdateOperationOptions{}); err != nil { - return fmt.Errorf(" setting Policies for %s: %+v", id, err) - } - } - } - } - if d.HasChange("tenant_access") { tenantAccessRaw := d.Get("tenant_access").([]interface{}) if sku.Name == apimanagementservice.SkuTypeConsumption && len(tenantAccessRaw) > 0 { @@ -1342,13 +1256,6 @@ func resourceApiManagementServiceRead(d *pluginsdk.ResourceData, meta interface{ if err := d.Set("sku_name", flattenApiManagementServiceSkuName(&model.Sku)); err != nil { return fmt.Errorf("setting `sku_name`: %+v", err) } - - if !features.FourPointOhBeta() { - if err := d.Set("policy", flattenApiManagementPolicies(d, policy.Model)); err != nil { - return fmt.Errorf("setting `policy`: %+v", err) - } - } - d.Set("zones", zones.FlattenUntyped(model.Zones)) if model.Sku.Name != apimanagementservice.SkuTypeConsumption { @@ -1693,9 +1600,9 @@ func expandAzureRmApiManagementAdditionalLocations(d *pluginsdk.ResourceData, sk childVnetConfig := config["virtual_network_configuration"].([]interface{}) switch { case len(childVnetConfig) == 0 && len(parentVnetConfig) > 0: - return nil, fmt.Errorf("`virtual_network_configuration` must be specified in any `additional_location` block when top-level `virtual_network_configuration` is supplied") + return nil, errors.New("`virtual_network_configuration` must be specified in any `additional_location` block when top-level `virtual_network_configuration` is supplied") case len(childVnetConfig) > 0 && len(parentVnetConfig) == 0: - return nil, fmt.Errorf("`virtual_network_configuration` must be empty in all `additional_location` blocks when top-level `virtual_network_configuration` is not supplied") + return nil, errors.New("`virtual_network_configuration` must be empty in all `additional_location` blocks when top-level `virtual_network_configuration` is not supplied") case len(childVnetConfig) > 0 && len(parentVnetConfig) > 0: v := childVnetConfig[0].(map[string]interface{}) subnetResourceId := v["subnet_id"].(string) @@ -1708,7 +1615,7 @@ func expandAzureRmApiManagementAdditionalLocations(d *pluginsdk.ResourceData, sk if publicIPAddressID != "" { if sku.Name != apimanagementservice.SkuTypePremium { if len(childVnetConfig) == 0 { - return nil, fmt.Errorf("`public_ip_address_id` for an additional location is only supported when sku type is `Premium`, and the APIM instance is deployed in a virtual network.") + return nil, errors.New("`public_ip_address_id` for an additional location is only supported when sku type is `Premium`, and the APIM instance is deployed in a virtual network.") } } additionalLocation.PublicIPAddressId = &publicIPAddressID @@ -1816,47 +1723,47 @@ func expandApiManagementCustomProperties(d *pluginsdk.ResourceData, skuIsConsump tlsRsaWithAes128CbcShaCiphers = v["tls_rsa_with_aes128_cbc_sha_ciphers_enabled"].(bool) if skuIsConsumption && frontendProtocolSsl3 { - return nil, fmt.Errorf("`enable_frontend_ssl30` is not support for Sku Tier `Consumption`") + return nil, errors.New("`enable_frontend_ssl30` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tripleDesCiphers { - return nil, fmt.Errorf("`enable_triple_des_ciphers` is not support for Sku Tier `Consumption`") + return nil, errors.New("`enable_triple_des_ciphers` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsEcdheEcdsaWithAes256CbcShaCiphers { - return nil, fmt.Errorf("`tls_ecdhe_ecdsa_with_aes256_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_ecdhe_ecdsa_with_aes256_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsEcdheEcdsaWithAes128CbcShaCiphers { - return nil, fmt.Errorf("`tls_ecdhe_ecdsa_with_aes128_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_ecdhe_ecdsa_with_aes128_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsEcdheRsaWithAes256CbcShaCiphers { - return nil, fmt.Errorf("`tls_ecdhe_rsa_with_aes256_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_ecdhe_rsa_with_aes256_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsEcdheRsaWithAes128CbcShaCiphers { - return nil, fmt.Errorf("`tls_ecdhe_rsa_with_aes128_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_ecdhe_rsa_with_aes128_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsRsaWithAes128GcmSha256Ciphers { - return nil, fmt.Errorf("`tls_rsa_with_aes128_gcm_sha256_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_rsa_with_aes128_gcm_sha256_ciphers_enabled` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsRsaWithAes256CbcSha256Ciphers { - return nil, fmt.Errorf("`tls_rsa_with_aes256_cbc_sha256_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_rsa_with_aes256_cbc_sha256_ciphers_enabled` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsRsaWithAes128CbcSha256Ciphers { - return nil, fmt.Errorf("`tls_rsa_with_aes128_cbc_sha256_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_rsa_with_aes128_cbc_sha256_ciphers_enabled` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsRsaWithAes256CbcShaCiphers { - return nil, fmt.Errorf("`tls_rsa_with_aes256_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_rsa_with_aes256_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") } if skuIsConsumption && tlsRsaWithAes128CbcShaCiphers { - return nil, fmt.Errorf("`tls_rsa_with_aes128_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") + return nil, errors.New("`tls_rsa_with_aes128_cbc_sha_ciphers_enabled` is not support for Sku Tier `Consumption`") } } @@ -2132,67 +2039,6 @@ func flattenApiManagementSignUpSettings(input signupsettings.PortalSignupSetting } } -func expandApiManagementPolicies(input []interface{}) (*policy.PolicyContract, error) { - if len(input) == 0 || input[0] == nil { - return nil, nil - } - - vs := input[0].(map[string]interface{}) - xmlContent := vs["xml_content"].(string) - xmlLink := vs["xml_link"].(string) - - if xmlContent != "" { - return &policy.PolicyContract{ - Properties: &policy.PolicyContractProperties{ - Format: pointer.To(policy.PolicyContentFormatRawxml), - Value: xmlContent, - }, - }, nil - } - - if xmlLink != "" { - return &policy.PolicyContract{ - Properties: &policy.PolicyContractProperties{ - Format: pointer.To(policy.PolicyContentFormatXmlNegativelink), - Value: xmlLink, - }, - }, nil - } - - return nil, fmt.Errorf("Either `xml_content` or `xml_link` should be set if the `policy` block is defined.") -} - -func flattenApiManagementPolicies(d *pluginsdk.ResourceData, input *policy.PolicyContract) []interface{} { - xmlContent := "" - if input != nil && input.Properties != nil { - if input.Properties.Value != "" { - xmlContent = input.Properties.Value - } - } - - // if there's no policy assigned, we set this to an empty list - if xmlContent == "" { - return []interface{}{} - } - - output := map[string]interface{}{ - "xml_content": xmlContent, - "xml_link": "", - } - - // when you submit an `xml_link` to the API, the API downloads this link and stores it as `xml_content` - // as such we need to retrieve this value from the state if it's present - if existing, ok := d.GetOk("policy"); ok { - existingVs := existing.([]interface{}) - if len(existingVs) > 0 && existingVs[0] != nil { - existingV := existingVs[0].(map[string]interface{}) - output["xml_link"] = existingV["xml_link"].(string) - } - } - - return []interface{}{output} -} - func expandApiManagementTenantAccessSettings(input []interface{}) tenantaccess.AccessInformationUpdateParameters { enabled := false diff --git a/internal/services/apimanagement/api_management_resource_test.go b/internal/services/apimanagement/api_management_resource_test.go index 2c31b148ad35..92fdc51b12a6 100644 --- a/internal/services/apimanagement/api_management_resource_test.go +++ b/internal/services/apimanagement/api_management_resource_test.go @@ -18,7 +18,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/testclient" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -266,45 +265,6 @@ func TestAccApiManagement_delegationSettings(t *testing.T) { }) } -func TestAccApiManagement_policy(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping since `policy` has been deprecated and removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_api_management", "test") - r := ApiManagementResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.policyXmlContent(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.policyXmlLink(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - { - ResourceName: data.ResourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{ - "policy.0.xml_link", - }, - }, - { - Config: r.policyRemoved(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccApiManagement_virtualNetworkInternal(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_api_management", "test") r := ApiManagementResource{} @@ -1097,15 +1057,6 @@ resource "azurerm_subnet_network_security_group_association" "test" { network_security_group_id = azurerm_network_security_group.test.id } -resource "azurerm_public_ip" "test" { - name = "acctestIP-%[1]d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - sku = "Standard" - allocation_method = "Static" - domain_name_label = "acctest-ip-%[1]d" -} - resource "azurerm_resource_group" "test2" { name = "acctestRG2-%[1]d" location = "%[3]s" @@ -1203,7 +1154,6 @@ resource "azurerm_api_management" "test" { publisher_name = "pub1" publisher_email = "pub1@email.com" sku_name = "Premium_2" - public_ip_address_id = azurerm_public_ip.test.id virtual_network_type = "Internal" zones = ["1", "2"] @@ -1250,93 +1200,6 @@ resource "azurerm_api_management" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } -func (ApiManagementResource) policyXmlContent(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_api_management" "test" { - name = "acctestAM-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - publisher_name = "pub1" - publisher_email = "pub1@email.com" - - sku_name = "Developer_1" - - policy { - xml_content = < - - - - - -XML - - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - -func (ApiManagementResource) policyXmlLink(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_api_management" "test" { - name = "acctestAM-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - publisher_name = "pub1" - publisher_email = "pub1@email.com" - - sku_name = "Developer_1" - - policy { - xml_link = "https://gist.githubusercontent.com/tombuildsstuff/4f58581599d2c9f64b236f505a361a67/raw/0d29dcb0167af1e5afe4bd52a6d7f69ba1e05e1f/example.xml" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - -func (ApiManagementResource) policyRemoved(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_api_management" "test" { - name = "acctestAM-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - publisher_name = "pub1" - publisher_email = "pub1@email.com" - - sku_name = "Developer_1" - - policy = [] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - func (r ApiManagementResource) requiresImport(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/apimanagement/migration/api_operation_policy_v0_to_v1.go b/internal/services/apimanagement/migration/api_operation_policy_v0_to_v1.go index ff178df572b3..962f5d90e80d 100644 --- a/internal/services/apimanagement/migration/api_operation_policy_v0_to_v1.go +++ b/internal/services/apimanagement/migration/api_operation_policy_v0_to_v1.go @@ -17,7 +17,6 @@ type ApiManagementApiOperationPolicyV0ToV1 struct{} func (ApiManagementApiOperationPolicyV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "resource_group_name": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go b/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go index 05c7d88e0cc8..3142fb506cd7 100644 --- a/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go +++ b/internal/services/apimanagement/migration/api_operation_policy_v1_to_v2.go @@ -18,7 +18,6 @@ type ApiManagementApiOperationPolicyV1ToV2 struct{} func (ApiManagementApiOperationPolicyV1ToV2) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "resource_group_name": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/apimanagement/migration/api_policy_v0_to_v1.go b/internal/services/apimanagement/migration/api_policy_v0_to_v1.go index a7cb43ae2512..b767885b9b1a 100644 --- a/internal/services/apimanagement/migration/api_policy_v0_to_v1.go +++ b/internal/services/apimanagement/migration/api_policy_v0_to_v1.go @@ -17,7 +17,6 @@ type ApiManagementApiPolicyV0ToV1 struct{} func (ApiManagementApiPolicyV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "resource_group_name": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/apimanagement/migration/api_policy_v1_to_v2.go b/internal/services/apimanagement/migration/api_policy_v1_to_v2.go index 40fa5109f093..bff5aaa5b2b4 100644 --- a/internal/services/apimanagement/migration/api_policy_v1_to_v2.go +++ b/internal/services/apimanagement/migration/api_policy_v1_to_v2.go @@ -18,7 +18,6 @@ type ApiManagementApiPolicyV1ToV2 struct{} func (ApiManagementApiPolicyV1ToV2) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "resource_group_name": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/apimanagement/parse/api.go b/internal/services/apimanagement/parse/api.go index 5e0259597252..3fa7faeb4397 100644 --- a/internal/services/apimanagement/parse/api.go +++ b/internal/services/apimanagement/parse/api.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ApiID(input string) (*ApiId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { @@ -95,11 +96,11 @@ func ApiIDInsensitively(input string) (*ApiId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'service' segment diff --git a/internal/services/apimanagement/parse/api_diagnostic.go b/internal/services/apimanagement/parse/api_diagnostic.go index e878bbc50e45..9a70999279c3 100644 --- a/internal/services/apimanagement/parse/api_diagnostic.go +++ b/internal/services/apimanagement/parse/api_diagnostic.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ApiDiagnosticID(input string) (*ApiDiagnosticId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_diagnostic_test.go b/internal/services/apimanagement/parse/api_diagnostic_test.go index ad6a05c6cdd8..dedb04116887 100644 --- a/internal/services/apimanagement/parse/api_diagnostic_test.go +++ b/internal/services/apimanagement/parse/api_diagnostic_test.go @@ -27,7 +27,6 @@ func TestApiDiagnosticID(t *testing.T) { Error bool Expected *ApiDiagnosticId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_management.go b/internal/services/apimanagement/parse/api_management.go index 755f4e6ffa3f..c812b478a43c 100644 --- a/internal/services/apimanagement/parse/api_management.go +++ b/internal/services/apimanagement/parse/api_management.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ApiManagementID(input string) (*ApiManagementId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_management_test.go b/internal/services/apimanagement/parse/api_management_test.go index 463e9444009b..5505d155f2a7 100644 --- a/internal/services/apimanagement/parse/api_management_test.go +++ b/internal/services/apimanagement/parse/api_management_test.go @@ -27,7 +27,6 @@ func TestApiManagementID(t *testing.T) { Error bool Expected *ApiManagementId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_operation.go b/internal/services/apimanagement/parse/api_operation.go index 77db417ed4ce..aabc67ed8291 100644 --- a/internal/services/apimanagement/parse/api_operation.go +++ b/internal/services/apimanagement/parse/api_operation.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ApiOperationID(input string) (*ApiOperationId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_operation_policy.go b/internal/services/apimanagement/parse/api_operation_policy.go index c52125372549..5c4bc1bbb4f1 100644 --- a/internal/services/apimanagement/parse/api_operation_policy.go +++ b/internal/services/apimanagement/parse/api_operation_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func ApiOperationPolicyID(input string) (*ApiOperationPolicyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_operation_policy_test.go b/internal/services/apimanagement/parse/api_operation_policy_test.go index 56dd5faabcb1..eef9fea27cfd 100644 --- a/internal/services/apimanagement/parse/api_operation_policy_test.go +++ b/internal/services/apimanagement/parse/api_operation_policy_test.go @@ -27,7 +27,6 @@ func TestApiOperationPolicyID(t *testing.T) { Error bool Expected *ApiOperationPolicyId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_operation_test.go b/internal/services/apimanagement/parse/api_operation_test.go index 616136185278..4c5aa6169681 100644 --- a/internal/services/apimanagement/parse/api_operation_test.go +++ b/internal/services/apimanagement/parse/api_operation_test.go @@ -27,7 +27,6 @@ func TestApiOperationID(t *testing.T) { Error bool Expected *ApiOperationId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_policy.go b/internal/services/apimanagement/parse/api_policy.go index 4c898f44fc96..8524b37574f7 100644 --- a/internal/services/apimanagement/parse/api_policy.go +++ b/internal/services/apimanagement/parse/api_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ApiPolicyID(input string) (*ApiPolicyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_policy_test.go b/internal/services/apimanagement/parse/api_policy_test.go index 0b4498455e0b..5d1a591aeddf 100644 --- a/internal/services/apimanagement/parse/api_policy_test.go +++ b/internal/services/apimanagement/parse/api_policy_test.go @@ -27,7 +27,6 @@ func TestApiPolicyID(t *testing.T) { Error bool Expected *ApiPolicyId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_release.go b/internal/services/apimanagement/parse/api_release.go index 90394ed51692..411b0c7f7ee8 100644 --- a/internal/services/apimanagement/parse/api_release.go +++ b/internal/services/apimanagement/parse/api_release.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ApiReleaseID(input string) (*ApiReleaseId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_release_test.go b/internal/services/apimanagement/parse/api_release_test.go index f828ac3be649..dee23d37ad6b 100644 --- a/internal/services/apimanagement/parse/api_release_test.go +++ b/internal/services/apimanagement/parse/api_release_test.go @@ -27,7 +27,6 @@ func TestApiReleaseID(t *testing.T) { Error bool Expected *ApiReleaseId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_schema.go b/internal/services/apimanagement/parse/api_schema.go index b675232d29f2..736165d08961 100644 --- a/internal/services/apimanagement/parse/api_schema.go +++ b/internal/services/apimanagement/parse/api_schema.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ApiSchemaID(input string) (*ApiSchemaId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_schema_test.go b/internal/services/apimanagement/parse/api_schema_test.go index 72326d11e3f7..5c0f397288da 100644 --- a/internal/services/apimanagement/parse/api_schema_test.go +++ b/internal/services/apimanagement/parse/api_schema_test.go @@ -27,7 +27,6 @@ func TestApiSchemaID(t *testing.T) { Error bool Expected *ApiSchemaId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_tag.go b/internal/services/apimanagement/parse/api_tag.go index 0ee73955d874..e6727555aa9d 100644 --- a/internal/services/apimanagement/parse/api_tag.go +++ b/internal/services/apimanagement/parse/api_tag.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ApiTagID(input string) (*ApiTagId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_tag_descriptions.go b/internal/services/apimanagement/parse/api_tag_descriptions.go index ad113b0b7616..608efd6a4947 100644 --- a/internal/services/apimanagement/parse/api_tag_descriptions.go +++ b/internal/services/apimanagement/parse/api_tag_descriptions.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ApiTagDescriptionsID(input string) (*ApiTagDescriptionsId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_tag_descriptions_test.go b/internal/services/apimanagement/parse/api_tag_descriptions_test.go index bbf65dce5160..3566bea34b9c 100644 --- a/internal/services/apimanagement/parse/api_tag_descriptions_test.go +++ b/internal/services/apimanagement/parse/api_tag_descriptions_test.go @@ -27,7 +27,6 @@ func TestApiTagDescriptionsID(t *testing.T) { Error bool Expected *ApiTagDescriptionsId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_tag_test.go b/internal/services/apimanagement/parse/api_tag_test.go index 999ce3adf132..0c38394802a4 100644 --- a/internal/services/apimanagement/parse/api_tag_test.go +++ b/internal/services/apimanagement/parse/api_tag_test.go @@ -27,7 +27,6 @@ func TestApiTagID(t *testing.T) { Error bool Expected *ApiTagId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_test.go b/internal/services/apimanagement/parse/api_test.go index e606511d49e9..c1935135b32e 100644 --- a/internal/services/apimanagement/parse/api_test.go +++ b/internal/services/apimanagement/parse/api_test.go @@ -27,7 +27,6 @@ func TestApiID(t *testing.T) { Error bool Expected *ApiId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestApiIDInsensitively(t *testing.T) { Error bool Expected *ApiId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/api_version_set.go b/internal/services/apimanagement/parse/api_version_set.go index 83f4a26cda7b..51e8ca457fd7 100644 --- a/internal/services/apimanagement/parse/api_version_set.go +++ b/internal/services/apimanagement/parse/api_version_set.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ApiVersionSetID(input string) (*ApiVersionSetId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/api_version_set_test.go b/internal/services/apimanagement/parse/api_version_set_test.go index aa6e4b8233b4..60a5f9ae83d5 100644 --- a/internal/services/apimanagement/parse/api_version_set_test.go +++ b/internal/services/apimanagement/parse/api_version_set_test.go @@ -27,7 +27,6 @@ func TestApiVersionSetID(t *testing.T) { Error bool Expected *ApiVersionSetId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/authorization_server.go b/internal/services/apimanagement/parse/authorization_server.go index 14b9fc52f611..c90288ec8a0b 100644 --- a/internal/services/apimanagement/parse/authorization_server.go +++ b/internal/services/apimanagement/parse/authorization_server.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func AuthorizationServerID(input string) (*AuthorizationServerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/authorization_server_test.go b/internal/services/apimanagement/parse/authorization_server_test.go index c6f15addbf3b..301077bb3eb5 100644 --- a/internal/services/apimanagement/parse/authorization_server_test.go +++ b/internal/services/apimanagement/parse/authorization_server_test.go @@ -27,7 +27,6 @@ func TestAuthorizationServerID(t *testing.T) { Error bool Expected *AuthorizationServerId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/backend.go b/internal/services/apimanagement/parse/backend.go index 9d6ab1c2017a..77d7787898d7 100644 --- a/internal/services/apimanagement/parse/backend.go +++ b/internal/services/apimanagement/parse/backend.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func BackendID(input string) (*BackendId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/backend_test.go b/internal/services/apimanagement/parse/backend_test.go index 192d4bc9f073..50db5b63010e 100644 --- a/internal/services/apimanagement/parse/backend_test.go +++ b/internal/services/apimanagement/parse/backend_test.go @@ -27,7 +27,6 @@ func TestBackendID(t *testing.T) { Error bool Expected *BackendId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/certificate.go b/internal/services/apimanagement/parse/certificate.go index 8e5608d72611..530e3df4d9e6 100644 --- a/internal/services/apimanagement/parse/certificate.go +++ b/internal/services/apimanagement/parse/certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func CertificateID(input string) (*CertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/certificate_test.go b/internal/services/apimanagement/parse/certificate_test.go index 96a139be5a95..6cd68830eafa 100644 --- a/internal/services/apimanagement/parse/certificate_test.go +++ b/internal/services/apimanagement/parse/certificate_test.go @@ -27,7 +27,6 @@ func TestCertificateID(t *testing.T) { Error bool Expected *CertificateId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/custom_domain.go b/internal/services/apimanagement/parse/custom_domain.go index f4c54d4c1452..a3fcb08c20a5 100644 --- a/internal/services/apimanagement/parse/custom_domain.go +++ b/internal/services/apimanagement/parse/custom_domain.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func CustomDomainID(input string) (*CustomDomainId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/custom_domain_test.go b/internal/services/apimanagement/parse/custom_domain_test.go index 4d05b6214cab..dfb58cab1cb0 100644 --- a/internal/services/apimanagement/parse/custom_domain_test.go +++ b/internal/services/apimanagement/parse/custom_domain_test.go @@ -27,7 +27,6 @@ func TestCustomDomainID(t *testing.T) { Error bool Expected *CustomDomainId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/diagnostic.go b/internal/services/apimanagement/parse/diagnostic.go index 9ca22f7ad2f3..3d3fd6515e75 100644 --- a/internal/services/apimanagement/parse/diagnostic.go +++ b/internal/services/apimanagement/parse/diagnostic.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func DiagnosticID(input string) (*DiagnosticId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/diagnostic_test.go b/internal/services/apimanagement/parse/diagnostic_test.go index c50857099555..e9998f81ecd2 100644 --- a/internal/services/apimanagement/parse/diagnostic_test.go +++ b/internal/services/apimanagement/parse/diagnostic_test.go @@ -27,7 +27,6 @@ func TestDiagnosticID(t *testing.T) { Error bool Expected *DiagnosticId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/email_template.go b/internal/services/apimanagement/parse/email_template.go index 73680c52d0d7..eb456c8a3d14 100644 --- a/internal/services/apimanagement/parse/email_template.go +++ b/internal/services/apimanagement/parse/email_template.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func EmailTemplateID(input string) (*EmailTemplateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/email_template_test.go b/internal/services/apimanagement/parse/email_template_test.go index 1f6d2f59eee2..a138d4b7aad9 100644 --- a/internal/services/apimanagement/parse/email_template_test.go +++ b/internal/services/apimanagement/parse/email_template_test.go @@ -27,7 +27,6 @@ func TestEmailTemplateID(t *testing.T) { Error bool Expected *EmailTemplateId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/gateway.go b/internal/services/apimanagement/parse/gateway.go index 0cc3c49e9388..14b5b2fa36b3 100644 --- a/internal/services/apimanagement/parse/gateway.go +++ b/internal/services/apimanagement/parse/gateway.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func GatewayID(input string) (*GatewayId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/gateway_api.go b/internal/services/apimanagement/parse/gateway_api.go index 56c80efcdc6e..7f90094a40cb 100644 --- a/internal/services/apimanagement/parse/gateway_api.go +++ b/internal/services/apimanagement/parse/gateway_api.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func GatewayApiID(input string) (*GatewayApiId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/gateway_api_test.go b/internal/services/apimanagement/parse/gateway_api_test.go index f4579d02ff02..41299c4258cf 100644 --- a/internal/services/apimanagement/parse/gateway_api_test.go +++ b/internal/services/apimanagement/parse/gateway_api_test.go @@ -27,7 +27,6 @@ func TestGatewayApiID(t *testing.T) { Error bool Expected *GatewayApiId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/gateway_certificate_authority.go b/internal/services/apimanagement/parse/gateway_certificate_authority.go index da6c8768b0ae..eb394dc7c3b7 100644 --- a/internal/services/apimanagement/parse/gateway_certificate_authority.go +++ b/internal/services/apimanagement/parse/gateway_certificate_authority.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func GatewayCertificateAuthorityID(input string) (*GatewayCertificateAuthorityId } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/gateway_certificate_authority_test.go b/internal/services/apimanagement/parse/gateway_certificate_authority_test.go index 8c8fa0ae741b..10f3363edc21 100644 --- a/internal/services/apimanagement/parse/gateway_certificate_authority_test.go +++ b/internal/services/apimanagement/parse/gateway_certificate_authority_test.go @@ -27,7 +27,6 @@ func TestGatewayCertificateAuthorityID(t *testing.T) { Error bool Expected *GatewayCertificateAuthorityId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/gateway_host_name_configuration.go b/internal/services/apimanagement/parse/gateway_host_name_configuration.go index 78438e7fe9d4..5df0c9909652 100644 --- a/internal/services/apimanagement/parse/gateway_host_name_configuration.go +++ b/internal/services/apimanagement/parse/gateway_host_name_configuration.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func GatewayHostNameConfigurationID(input string) (*GatewayHostNameConfiguration } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/gateway_host_name_configuration_test.go b/internal/services/apimanagement/parse/gateway_host_name_configuration_test.go index 914329bb1103..d747e9312418 100644 --- a/internal/services/apimanagement/parse/gateway_host_name_configuration_test.go +++ b/internal/services/apimanagement/parse/gateway_host_name_configuration_test.go @@ -27,7 +27,6 @@ func TestGatewayHostNameConfigurationID(t *testing.T) { Error bool Expected *GatewayHostNameConfigurationId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/gateway_test.go b/internal/services/apimanagement/parse/gateway_test.go index 8729c1fb9215..abfd36ae6f37 100644 --- a/internal/services/apimanagement/parse/gateway_test.go +++ b/internal/services/apimanagement/parse/gateway_test.go @@ -27,7 +27,6 @@ func TestGatewayID(t *testing.T) { Error bool Expected *GatewayId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/global_schema.go b/internal/services/apimanagement/parse/global_schema.go index 19bf5923fca8..695d1a2bb590 100644 --- a/internal/services/apimanagement/parse/global_schema.go +++ b/internal/services/apimanagement/parse/global_schema.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func GlobalSchemaID(input string) (*GlobalSchemaId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/global_schema_test.go b/internal/services/apimanagement/parse/global_schema_test.go index 12499a151f61..2756c558bb79 100644 --- a/internal/services/apimanagement/parse/global_schema_test.go +++ b/internal/services/apimanagement/parse/global_schema_test.go @@ -27,7 +27,6 @@ func TestGlobalSchemaID(t *testing.T) { Error bool Expected *GlobalSchemaId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/group.go b/internal/services/apimanagement/parse/group.go index 02c465541ca1..cee39e52f6b3 100644 --- a/internal/services/apimanagement/parse/group.go +++ b/internal/services/apimanagement/parse/group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func GroupID(input string) (*GroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/group_test.go b/internal/services/apimanagement/parse/group_test.go index 50c0d42fe870..8c2eddfa7fb3 100644 --- a/internal/services/apimanagement/parse/group_test.go +++ b/internal/services/apimanagement/parse/group_test.go @@ -27,7 +27,6 @@ func TestGroupID(t *testing.T) { Error bool Expected *GroupId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/group_user.go b/internal/services/apimanagement/parse/group_user.go index 99bb09fff665..f85b5c46a006 100644 --- a/internal/services/apimanagement/parse/group_user.go +++ b/internal/services/apimanagement/parse/group_user.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func GroupUserID(input string) (*GroupUserId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/group_user_test.go b/internal/services/apimanagement/parse/group_user_test.go index 54a86e33b663..42852866a1a0 100644 --- a/internal/services/apimanagement/parse/group_user_test.go +++ b/internal/services/apimanagement/parse/group_user_test.go @@ -27,7 +27,6 @@ func TestGroupUserID(t *testing.T) { Error bool Expected *GroupUserId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/identity_provider.go b/internal/services/apimanagement/parse/identity_provider.go index 7d5836e0b52d..874674d6c914 100644 --- a/internal/services/apimanagement/parse/identity_provider.go +++ b/internal/services/apimanagement/parse/identity_provider.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func IdentityProviderID(input string) (*IdentityProviderId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/identity_provider_test.go b/internal/services/apimanagement/parse/identity_provider_test.go index fe2718c28707..01a5b3d596c1 100644 --- a/internal/services/apimanagement/parse/identity_provider_test.go +++ b/internal/services/apimanagement/parse/identity_provider_test.go @@ -27,7 +27,6 @@ func TestIdentityProviderID(t *testing.T) { Error bool Expected *IdentityProviderId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/logger.go b/internal/services/apimanagement/parse/logger.go index aafbfd921815..e0c9e07e80ab 100644 --- a/internal/services/apimanagement/parse/logger.go +++ b/internal/services/apimanagement/parse/logger.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func LoggerID(input string) (*LoggerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/logger_test.go b/internal/services/apimanagement/parse/logger_test.go index 98c5be4191e3..c767017c1bc3 100644 --- a/internal/services/apimanagement/parse/logger_test.go +++ b/internal/services/apimanagement/parse/logger_test.go @@ -27,7 +27,6 @@ func TestLoggerID(t *testing.T) { Error bool Expected *LoggerId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/named_value.go b/internal/services/apimanagement/parse/named_value.go index a3d573ac42c0..2b0eadd8fd34 100644 --- a/internal/services/apimanagement/parse/named_value.go +++ b/internal/services/apimanagement/parse/named_value.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func NamedValueID(input string) (*NamedValueId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/named_value_test.go b/internal/services/apimanagement/parse/named_value_test.go index 8d906b5aeb59..25096ff4feb6 100644 --- a/internal/services/apimanagement/parse/named_value_test.go +++ b/internal/services/apimanagement/parse/named_value_test.go @@ -27,7 +27,6 @@ func TestNamedValueID(t *testing.T) { Error bool Expected *NamedValueId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/notification_recipient_email.go b/internal/services/apimanagement/parse/notification_recipient_email.go index bbe0a903322b..7bea7b89ab29 100644 --- a/internal/services/apimanagement/parse/notification_recipient_email.go +++ b/internal/services/apimanagement/parse/notification_recipient_email.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func NotificationRecipientEmailID(input string) (*NotificationRecipientEmailId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/notification_recipient_email_test.go b/internal/services/apimanagement/parse/notification_recipient_email_test.go index 97983f323986..1ec65afdab91 100644 --- a/internal/services/apimanagement/parse/notification_recipient_email_test.go +++ b/internal/services/apimanagement/parse/notification_recipient_email_test.go @@ -27,7 +27,6 @@ func TestNotificationRecipientEmailID(t *testing.T) { Error bool Expected *NotificationRecipientEmailId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/notification_recipient_user.go b/internal/services/apimanagement/parse/notification_recipient_user.go index 2bc2ba0c54db..cef2f605dfab 100644 --- a/internal/services/apimanagement/parse/notification_recipient_user.go +++ b/internal/services/apimanagement/parse/notification_recipient_user.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func NotificationRecipientUserID(input string) (*NotificationRecipientUserId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/notification_recipient_user_test.go b/internal/services/apimanagement/parse/notification_recipient_user_test.go index e4ada92fe377..88a1a96fed29 100644 --- a/internal/services/apimanagement/parse/notification_recipient_user_test.go +++ b/internal/services/apimanagement/parse/notification_recipient_user_test.go @@ -27,7 +27,6 @@ func TestNotificationRecipientUserID(t *testing.T) { Error bool Expected *NotificationRecipientUserId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/open_id_connect_provider.go b/internal/services/apimanagement/parse/open_id_connect_provider.go index 33f80d8cbe76..f8052df410fd 100644 --- a/internal/services/apimanagement/parse/open_id_connect_provider.go +++ b/internal/services/apimanagement/parse/open_id_connect_provider.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -35,7 +36,7 @@ func (id OpenIDConnectProviderId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Open I D Connect Provider", segmentsStr) + return fmt.Sprintf("%s: (%s)", "OpenID Connect Provider", segmentsStr) } func (id OpenIDConnectProviderId) ID() string { @@ -56,11 +57,11 @@ func OpenIDConnectProviderID(input string) (*OpenIDConnectProviderId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/open_id_connect_provider_test.go b/internal/services/apimanagement/parse/open_id_connect_provider_test.go index 4f37ea51d117..7fb85b0e1d01 100644 --- a/internal/services/apimanagement/parse/open_id_connect_provider_test.go +++ b/internal/services/apimanagement/parse/open_id_connect_provider_test.go @@ -27,7 +27,6 @@ func TestOpenIDConnectProviderID(t *testing.T) { Error bool Expected *OpenIDConnectProviderId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/operation_tag.go b/internal/services/apimanagement/parse/operation_tag.go index 39a8a99af06c..3ce01078f7bb 100644 --- a/internal/services/apimanagement/parse/operation_tag.go +++ b/internal/services/apimanagement/parse/operation_tag.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func OperationTagID(input string) (*OperationTagId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/operation_tag_test.go b/internal/services/apimanagement/parse/operation_tag_test.go index 91de9a288799..779a6184c4ac 100644 --- a/internal/services/apimanagement/parse/operation_tag_test.go +++ b/internal/services/apimanagement/parse/operation_tag_test.go @@ -27,7 +27,6 @@ func TestOperationTagID(t *testing.T) { Error bool Expected *OperationTagId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/policy.go b/internal/services/apimanagement/parse/policy.go index 0a7ab9fbb054..c1861ff03039 100644 --- a/internal/services/apimanagement/parse/policy.go +++ b/internal/services/apimanagement/parse/policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func PolicyID(input string) (*PolicyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/policy_test.go b/internal/services/apimanagement/parse/policy_test.go index 7fa485460833..3c8e407c5df3 100644 --- a/internal/services/apimanagement/parse/policy_test.go +++ b/internal/services/apimanagement/parse/policy_test.go @@ -27,7 +27,6 @@ func TestPolicyID(t *testing.T) { Error bool Expected *PolicyId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/product.go b/internal/services/apimanagement/parse/product.go index 6fef7218f50c..d8f87e1081c2 100644 --- a/internal/services/apimanagement/parse/product.go +++ b/internal/services/apimanagement/parse/product.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ProductID(input string) (*ProductId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { @@ -95,11 +96,11 @@ func ProductIDInsensitively(input string) (*ProductId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'service' segment diff --git a/internal/services/apimanagement/parse/product_api.go b/internal/services/apimanagement/parse/product_api.go index e77b43cdc332..61d94b291cba 100644 --- a/internal/services/apimanagement/parse/product_api.go +++ b/internal/services/apimanagement/parse/product_api.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ProductApiID(input string) (*ProductApiId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/product_api_test.go b/internal/services/apimanagement/parse/product_api_test.go index 1764e99e80ac..4c0f0336f2a9 100644 --- a/internal/services/apimanagement/parse/product_api_test.go +++ b/internal/services/apimanagement/parse/product_api_test.go @@ -27,7 +27,6 @@ func TestProductApiID(t *testing.T) { Error bool Expected *ProductApiId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/product_group.go b/internal/services/apimanagement/parse/product_group.go index ddedd1118625..84a9907e53b4 100644 --- a/internal/services/apimanagement/parse/product_group.go +++ b/internal/services/apimanagement/parse/product_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ProductGroupID(input string) (*ProductGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/product_group_test.go b/internal/services/apimanagement/parse/product_group_test.go index 44ebfcff1f61..7c0ee4ce3a6e 100644 --- a/internal/services/apimanagement/parse/product_group_test.go +++ b/internal/services/apimanagement/parse/product_group_test.go @@ -27,7 +27,6 @@ func TestProductGroupID(t *testing.T) { Error bool Expected *ProductGroupId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/product_policy.go b/internal/services/apimanagement/parse/product_policy.go index db0cf53dab0c..d42fd278b8b7 100644 --- a/internal/services/apimanagement/parse/product_policy.go +++ b/internal/services/apimanagement/parse/product_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ProductPolicyID(input string) (*ProductPolicyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/product_policy_test.go b/internal/services/apimanagement/parse/product_policy_test.go index 6c998708e2f3..9997ca5aa99d 100644 --- a/internal/services/apimanagement/parse/product_policy_test.go +++ b/internal/services/apimanagement/parse/product_policy_test.go @@ -27,7 +27,6 @@ func TestProductPolicyID(t *testing.T) { Error bool Expected *ProductPolicyId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/product_tag.go b/internal/services/apimanagement/parse/product_tag.go index 1e8cccebc4e6..2a0c3ebad063 100644 --- a/internal/services/apimanagement/parse/product_tag.go +++ b/internal/services/apimanagement/parse/product_tag.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ProductTagID(input string) (*ProductTagId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/product_tag_test.go b/internal/services/apimanagement/parse/product_tag_test.go index 9b5046a00e32..09ef27f63d2e 100644 --- a/internal/services/apimanagement/parse/product_tag_test.go +++ b/internal/services/apimanagement/parse/product_tag_test.go @@ -27,7 +27,6 @@ func TestProductTagID(t *testing.T) { Error bool Expected *ProductTagId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/product_test.go b/internal/services/apimanagement/parse/product_test.go index 324a0ac00bf8..612e78196cb1 100644 --- a/internal/services/apimanagement/parse/product_test.go +++ b/internal/services/apimanagement/parse/product_test.go @@ -27,7 +27,6 @@ func TestProductID(t *testing.T) { Error bool Expected *ProductId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestProductIDInsensitively(t *testing.T) { Error bool Expected *ProductId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/property.go b/internal/services/apimanagement/parse/property.go index 7f008368b254..65a7d1754431 100644 --- a/internal/services/apimanagement/parse/property.go +++ b/internal/services/apimanagement/parse/property.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func PropertyID(input string) (*PropertyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/property_test.go b/internal/services/apimanagement/parse/property_test.go index 5b2744e47fd1..73f584d27afa 100644 --- a/internal/services/apimanagement/parse/property_test.go +++ b/internal/services/apimanagement/parse/property_test.go @@ -27,7 +27,6 @@ func TestPropertyID(t *testing.T) { Error bool Expected *PropertyId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/redis_cache.go b/internal/services/apimanagement/parse/redis_cache.go index f3df582a2341..78932c5eda56 100644 --- a/internal/services/apimanagement/parse/redis_cache.go +++ b/internal/services/apimanagement/parse/redis_cache.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func RedisCacheID(input string) (*RedisCacheId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/redis_cache_test.go b/internal/services/apimanagement/parse/redis_cache_test.go index a8bf4e3f363f..4b364049b01e 100644 --- a/internal/services/apimanagement/parse/redis_cache_test.go +++ b/internal/services/apimanagement/parse/redis_cache_test.go @@ -27,7 +27,6 @@ func TestRedisCacheID(t *testing.T) { Error bool Expected *RedisCacheId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/subscription.go b/internal/services/apimanagement/parse/subscription.go index a13d5df1ce86..b08fb295a381 100644 --- a/internal/services/apimanagement/parse/subscription.go +++ b/internal/services/apimanagement/parse/subscription.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SubscriptionID(input string) (*SubscriptionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/subscription_test.go b/internal/services/apimanagement/parse/subscription_test.go index a438de8a6a8a..57cff19e9675 100644 --- a/internal/services/apimanagement/parse/subscription_test.go +++ b/internal/services/apimanagement/parse/subscription_test.go @@ -27,7 +27,6 @@ func TestSubscriptionID(t *testing.T) { Error bool Expected *SubscriptionId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/tag.go b/internal/services/apimanagement/parse/tag.go index 297a9af85c6c..17a3c6ac49e2 100644 --- a/internal/services/apimanagement/parse/tag.go +++ b/internal/services/apimanagement/parse/tag.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func TagID(input string) (*TagId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/tag_test.go b/internal/services/apimanagement/parse/tag_test.go index 291a0fff3b09..656da6404dc9 100644 --- a/internal/services/apimanagement/parse/tag_test.go +++ b/internal/services/apimanagement/parse/tag_test.go @@ -27,7 +27,6 @@ func TestTagID(t *testing.T) { Error bool Expected *TagId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/parse/user.go b/internal/services/apimanagement/parse/user.go index b9f101d09ac9..e022c0b167db 100644 --- a/internal/services/apimanagement/parse/user.go +++ b/internal/services/apimanagement/parse/user.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func UserID(input string) (*UserId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServiceName, err = id.PopSegment("service"); err != nil { diff --git a/internal/services/apimanagement/parse/user_test.go b/internal/services/apimanagement/parse/user_test.go index 3162027b8e8c..17faff56f0d9 100644 --- a/internal/services/apimanagement/parse/user_test.go +++ b/internal/services/apimanagement/parse/user_test.go @@ -27,7 +27,6 @@ func TestUserID(t *testing.T) { Error bool Expected *UserId }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/schemaz/api_management.go b/internal/services/apimanagement/schemaz/api_management.go index 4ac582ef3a91..644be057a16b 100644 --- a/internal/services/apimanagement/schemaz/api_management.go +++ b/internal/services/apimanagement/schemaz/api_management.go @@ -465,7 +465,7 @@ func CopyCertificateAndPassword(vals []interface{}, hostName string, output map[ } func convert2Json(rawVal interface{}) (string, error) { - value := "" + var value string if val, ok := rawVal.(string); ok { value = val } else { diff --git a/internal/services/apimanagement/validate/api_diagnostic_id_test.go b/internal/services/apimanagement/validate/api_diagnostic_id_test.go index b474b48e4949..e2eeec0f28a8 100644 --- a/internal/services/apimanagement/validate/api_diagnostic_id_test.go +++ b/internal/services/apimanagement/validate/api_diagnostic_id_test.go @@ -12,7 +12,6 @@ func TestApiDiagnosticID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_id_test.go b/internal/services/apimanagement/validate/api_id_test.go index 440dc1851c13..40691aba298d 100644 --- a/internal/services/apimanagement/validate/api_id_test.go +++ b/internal/services/apimanagement/validate/api_id_test.go @@ -12,7 +12,6 @@ func TestApiID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_management_id_test.go b/internal/services/apimanagement/validate/api_management_id_test.go index 84068c4824fc..73322f326dc8 100644 --- a/internal/services/apimanagement/validate/api_management_id_test.go +++ b/internal/services/apimanagement/validate/api_management_id_test.go @@ -12,7 +12,6 @@ func TestApiManagementID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_operation_id_test.go b/internal/services/apimanagement/validate/api_operation_id_test.go index 45019382d70f..e1a471454c98 100644 --- a/internal/services/apimanagement/validate/api_operation_id_test.go +++ b/internal/services/apimanagement/validate/api_operation_id_test.go @@ -12,7 +12,6 @@ func TestApiOperationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_operation_policy_id_test.go b/internal/services/apimanagement/validate/api_operation_policy_id_test.go index c732109b3475..3bd9d222528e 100644 --- a/internal/services/apimanagement/validate/api_operation_policy_id_test.go +++ b/internal/services/apimanagement/validate/api_operation_policy_id_test.go @@ -12,7 +12,6 @@ func TestApiOperationPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_policy_id_test.go b/internal/services/apimanagement/validate/api_policy_id_test.go index f0279de2c7cd..fca057a75891 100644 --- a/internal/services/apimanagement/validate/api_policy_id_test.go +++ b/internal/services/apimanagement/validate/api_policy_id_test.go @@ -12,7 +12,6 @@ func TestApiPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_release_id_test.go b/internal/services/apimanagement/validate/api_release_id_test.go index fbfe28ca70b5..f7c9c754b1e2 100644 --- a/internal/services/apimanagement/validate/api_release_id_test.go +++ b/internal/services/apimanagement/validate/api_release_id_test.go @@ -12,7 +12,6 @@ func TestApiReleaseID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_schema_id_test.go b/internal/services/apimanagement/validate/api_schema_id_test.go index a8549353c55b..58b40390d425 100644 --- a/internal/services/apimanagement/validate/api_schema_id_test.go +++ b/internal/services/apimanagement/validate/api_schema_id_test.go @@ -12,7 +12,6 @@ func TestApiSchemaID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_tag_descriptions_id_test.go b/internal/services/apimanagement/validate/api_tag_descriptions_id_test.go index a1d831e3250c..788c4a8da1d0 100644 --- a/internal/services/apimanagement/validate/api_tag_descriptions_id_test.go +++ b/internal/services/apimanagement/validate/api_tag_descriptions_id_test.go @@ -12,7 +12,6 @@ func TestApiTagDescriptionsID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_tag_id_test.go b/internal/services/apimanagement/validate/api_tag_id_test.go index ee55cb139773..84f2395cc7b8 100644 --- a/internal/services/apimanagement/validate/api_tag_id_test.go +++ b/internal/services/apimanagement/validate/api_tag_id_test.go @@ -12,7 +12,6 @@ func TestApiTagID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/api_version_set_id_test.go b/internal/services/apimanagement/validate/api_version_set_id_test.go index 6c219e4b3a67..75d36b5e58f8 100644 --- a/internal/services/apimanagement/validate/api_version_set_id_test.go +++ b/internal/services/apimanagement/validate/api_version_set_id_test.go @@ -12,7 +12,6 @@ func TestApiVersionSetID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/authorization_server_id_test.go b/internal/services/apimanagement/validate/authorization_server_id_test.go index a7998f124584..12f5e16f4702 100644 --- a/internal/services/apimanagement/validate/authorization_server_id_test.go +++ b/internal/services/apimanagement/validate/authorization_server_id_test.go @@ -12,7 +12,6 @@ func TestAuthorizationServerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/backend_id_test.go b/internal/services/apimanagement/validate/backend_id_test.go index a009d1ed91f8..9f04821a4c57 100644 --- a/internal/services/apimanagement/validate/backend_id_test.go +++ b/internal/services/apimanagement/validate/backend_id_test.go @@ -12,7 +12,6 @@ func TestBackendID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/certificate_id_test.go b/internal/services/apimanagement/validate/certificate_id_test.go index 1f66b5459638..d388a63f19eb 100644 --- a/internal/services/apimanagement/validate/certificate_id_test.go +++ b/internal/services/apimanagement/validate/certificate_id_test.go @@ -12,7 +12,6 @@ func TestCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/custom_domain_id_test.go b/internal/services/apimanagement/validate/custom_domain_id_test.go index 2091ec723aef..6a02656789dd 100644 --- a/internal/services/apimanagement/validate/custom_domain_id_test.go +++ b/internal/services/apimanagement/validate/custom_domain_id_test.go @@ -12,7 +12,6 @@ func TestCustomDomainID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/diagnostic_id_test.go b/internal/services/apimanagement/validate/diagnostic_id_test.go index 9f6e71e37a49..3dc0fdb35b7e 100644 --- a/internal/services/apimanagement/validate/diagnostic_id_test.go +++ b/internal/services/apimanagement/validate/diagnostic_id_test.go @@ -12,7 +12,6 @@ func TestDiagnosticID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/email_template_id_test.go b/internal/services/apimanagement/validate/email_template_id_test.go index ff61d16938b3..ba5edd38a3d0 100644 --- a/internal/services/apimanagement/validate/email_template_id_test.go +++ b/internal/services/apimanagement/validate/email_template_id_test.go @@ -12,7 +12,6 @@ func TestEmailTemplateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/gateway_api_id_test.go b/internal/services/apimanagement/validate/gateway_api_id_test.go index da9eac735760..604203a1c8aa 100644 --- a/internal/services/apimanagement/validate/gateway_api_id_test.go +++ b/internal/services/apimanagement/validate/gateway_api_id_test.go @@ -12,7 +12,6 @@ func TestGatewayApiID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/gateway_certificate_authority_id_test.go b/internal/services/apimanagement/validate/gateway_certificate_authority_id_test.go index 63103fa75a52..b7fa4725d321 100644 --- a/internal/services/apimanagement/validate/gateway_certificate_authority_id_test.go +++ b/internal/services/apimanagement/validate/gateway_certificate_authority_id_test.go @@ -12,7 +12,6 @@ func TestGatewayCertificateAuthorityID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/gateway_host_name_configuration_id_test.go b/internal/services/apimanagement/validate/gateway_host_name_configuration_id_test.go index 3d368529326d..7f2a234827ed 100644 --- a/internal/services/apimanagement/validate/gateway_host_name_configuration_id_test.go +++ b/internal/services/apimanagement/validate/gateway_host_name_configuration_id_test.go @@ -12,7 +12,6 @@ func TestGatewayHostNameConfigurationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/gateway_id_test.go b/internal/services/apimanagement/validate/gateway_id_test.go index 71d70f011853..9345a0882dc0 100644 --- a/internal/services/apimanagement/validate/gateway_id_test.go +++ b/internal/services/apimanagement/validate/gateway_id_test.go @@ -12,7 +12,6 @@ func TestGatewayID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/global_schema_id_test.go b/internal/services/apimanagement/validate/global_schema_id_test.go index 2cde6cc259a2..8a7c6544ba4c 100644 --- a/internal/services/apimanagement/validate/global_schema_id_test.go +++ b/internal/services/apimanagement/validate/global_schema_id_test.go @@ -12,7 +12,6 @@ func TestGlobalSchemaID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/group_id_test.go b/internal/services/apimanagement/validate/group_id_test.go index 04948821a66e..c3fed6e7923d 100644 --- a/internal/services/apimanagement/validate/group_id_test.go +++ b/internal/services/apimanagement/validate/group_id_test.go @@ -12,7 +12,6 @@ func TestGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/group_user_id_test.go b/internal/services/apimanagement/validate/group_user_id_test.go index f9b47099e67d..db352f91a381 100644 --- a/internal/services/apimanagement/validate/group_user_id_test.go +++ b/internal/services/apimanagement/validate/group_user_id_test.go @@ -12,7 +12,6 @@ func TestGroupUserID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/identity_provider_id_test.go b/internal/services/apimanagement/validate/identity_provider_id_test.go index 418411ffdf3a..e2cc1487547a 100644 --- a/internal/services/apimanagement/validate/identity_provider_id_test.go +++ b/internal/services/apimanagement/validate/identity_provider_id_test.go @@ -12,7 +12,6 @@ func TestIdentityProviderID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/logger_id_test.go b/internal/services/apimanagement/validate/logger_id_test.go index 9f0e232d20ea..407f92cde5bb 100644 --- a/internal/services/apimanagement/validate/logger_id_test.go +++ b/internal/services/apimanagement/validate/logger_id_test.go @@ -12,7 +12,6 @@ func TestLoggerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/named_value_id_test.go b/internal/services/apimanagement/validate/named_value_id_test.go index 90db7ace28e7..85f55705acf5 100644 --- a/internal/services/apimanagement/validate/named_value_id_test.go +++ b/internal/services/apimanagement/validate/named_value_id_test.go @@ -12,7 +12,6 @@ func TestNamedValueID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/notification_recipient_email_id_test.go b/internal/services/apimanagement/validate/notification_recipient_email_id_test.go index 60db2997fbdc..c0ebd0acbe4e 100644 --- a/internal/services/apimanagement/validate/notification_recipient_email_id_test.go +++ b/internal/services/apimanagement/validate/notification_recipient_email_id_test.go @@ -12,7 +12,6 @@ func TestNotificationRecipientEmailID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/notification_recipient_user_id_test.go b/internal/services/apimanagement/validate/notification_recipient_user_id_test.go index 86885202b86e..b415a6c72ab9 100644 --- a/internal/services/apimanagement/validate/notification_recipient_user_id_test.go +++ b/internal/services/apimanagement/validate/notification_recipient_user_id_test.go @@ -12,7 +12,6 @@ func TestNotificationRecipientUserID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/open_id_connect_provider_id_test.go b/internal/services/apimanagement/validate/open_id_connect_provider_id_test.go index f7c32493b087..882c54858b1d 100644 --- a/internal/services/apimanagement/validate/open_id_connect_provider_id_test.go +++ b/internal/services/apimanagement/validate/open_id_connect_provider_id_test.go @@ -12,7 +12,6 @@ func TestOpenIDConnectProviderID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/operation_tag_id_test.go b/internal/services/apimanagement/validate/operation_tag_id_test.go index 95fb291aefcd..5ac87ced45e9 100644 --- a/internal/services/apimanagement/validate/operation_tag_id_test.go +++ b/internal/services/apimanagement/validate/operation_tag_id_test.go @@ -12,7 +12,6 @@ func TestOperationTagID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/policy_id_test.go b/internal/services/apimanagement/validate/policy_id_test.go index a27489db5a8d..caaf6b6461c2 100644 --- a/internal/services/apimanagement/validate/policy_id_test.go +++ b/internal/services/apimanagement/validate/policy_id_test.go @@ -12,7 +12,6 @@ func TestPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/product_api_id_test.go b/internal/services/apimanagement/validate/product_api_id_test.go index f83e88fe1591..26a9fc5ede89 100644 --- a/internal/services/apimanagement/validate/product_api_id_test.go +++ b/internal/services/apimanagement/validate/product_api_id_test.go @@ -12,7 +12,6 @@ func TestProductApiID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/product_group_id_test.go b/internal/services/apimanagement/validate/product_group_id_test.go index 4c0cb3c3d678..a57db4cb5552 100644 --- a/internal/services/apimanagement/validate/product_group_id_test.go +++ b/internal/services/apimanagement/validate/product_group_id_test.go @@ -12,7 +12,6 @@ func TestProductGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/product_id_test.go b/internal/services/apimanagement/validate/product_id_test.go index 1028bc9d83a0..7eebedc52a02 100644 --- a/internal/services/apimanagement/validate/product_id_test.go +++ b/internal/services/apimanagement/validate/product_id_test.go @@ -12,7 +12,6 @@ func TestProductID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/product_policy_id_test.go b/internal/services/apimanagement/validate/product_policy_id_test.go index 9b5d48343163..b4c25698783d 100644 --- a/internal/services/apimanagement/validate/product_policy_id_test.go +++ b/internal/services/apimanagement/validate/product_policy_id_test.go @@ -12,7 +12,6 @@ func TestProductPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/product_tag_id_test.go b/internal/services/apimanagement/validate/product_tag_id_test.go index a25376862e15..606444a1d0d5 100644 --- a/internal/services/apimanagement/validate/product_tag_id_test.go +++ b/internal/services/apimanagement/validate/product_tag_id_test.go @@ -12,7 +12,6 @@ func TestProductTagID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/property_id_test.go b/internal/services/apimanagement/validate/property_id_test.go index f23cc651c863..a1d6b8520c1c 100644 --- a/internal/services/apimanagement/validate/property_id_test.go +++ b/internal/services/apimanagement/validate/property_id_test.go @@ -12,7 +12,6 @@ func TestPropertyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/redis_cache_id_test.go b/internal/services/apimanagement/validate/redis_cache_id_test.go index 01868b31ee8e..f35c195ce32f 100644 --- a/internal/services/apimanagement/validate/redis_cache_id_test.go +++ b/internal/services/apimanagement/validate/redis_cache_id_test.go @@ -12,7 +12,6 @@ func TestRedisCacheID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/subscription_id_test.go b/internal/services/apimanagement/validate/subscription_id_test.go index 3ac3ff867934..9e0fc4ce4bd2 100644 --- a/internal/services/apimanagement/validate/subscription_id_test.go +++ b/internal/services/apimanagement/validate/subscription_id_test.go @@ -12,7 +12,6 @@ func TestSubscriptionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/tag_id_test.go b/internal/services/apimanagement/validate/tag_id_test.go index 87cb1db2db59..939b573ab0c3 100644 --- a/internal/services/apimanagement/validate/tag_id_test.go +++ b/internal/services/apimanagement/validate/tag_id_test.go @@ -12,7 +12,6 @@ func TestTagID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/apimanagement/validate/user_id_test.go b/internal/services/apimanagement/validate/user_id_test.go index 8155be896429..7e0385c3f0cd 100644 --- a/internal/services/apimanagement/validate/user_id_test.go +++ b/internal/services/apimanagement/validate/user_id_test.go @@ -12,7 +12,6 @@ func TestUserID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/appconfiguration/app_configuration_feature_resource.go b/internal/services/appconfiguration/app_configuration_feature_resource.go index 1bf6f113cad4..c29fc084ada0 100644 --- a/internal/services/appconfiguration/app_configuration_feature_resource.go +++ b/internal/services/appconfiguration/app_configuration_feature_resource.go @@ -6,6 +6,7 @@ package appconfiguration import ( "context" "encoding/json" + "errors" "fmt" "log" "strings" @@ -215,7 +216,7 @@ func (k FeatureResource) Create() sdk.ResourceFunc { deadline, ok := ctx.Deadline() if !ok { - return fmt.Errorf("internal-error: context had no deadline") + return errors.New("internal-error: context had no deadline") } // from https://learn.microsoft.com/en-us/azure/azure-app-configuration/concept-enable-rbac#azure-built-in-roles-for-azure-app-configuration @@ -383,7 +384,7 @@ func (k FeatureResource) Read() sdk.ResourceFunc { } var fv FeatureValue - err = json.Unmarshal([]byte(utils.NormalizeNilableString(kv.Value)), &fv) + err = json.Unmarshal([]byte(pointer.From(kv.Value)), &fv) if err != nil { return fmt.Errorf("while unmarshalling underlying key's value: %+v", err) } @@ -392,9 +393,9 @@ func (k FeatureResource) Read() sdk.ResourceFunc { ConfigurationStoreId: configurationStoreId.ID(), Description: fv.Description, Enabled: fv.Enabled, - Key: strings.TrimPrefix(utils.NormalizeNilableString(kv.Key), fmt.Sprintf("%s/", FeatureKeyPrefix)), + Key: strings.TrimPrefix(pointer.From(kv.Key), FeatureKeyPrefix+"/"), Name: fv.ID, - Label: utils.NormalizeNilableString(kv.Label), + Label: pointer.From(kv.Label), Tags: tags.Flatten(kv.Tags), } @@ -444,7 +445,7 @@ func (k FeatureResource) Update() sdk.ResourceFunc { } var fv FeatureValue - err = json.Unmarshal([]byte(utils.NormalizeNilableString(kv.Value)), &fv) + err = json.Unmarshal([]byte(pointer.From(kv.Value)), &fv) if err != nil { return fmt.Errorf("while unmarshalling underlying key's value: %+v", err) } diff --git a/internal/services/appconfiguration/app_configuration_feature_resource_test.go b/internal/services/appconfiguration/app_configuration_feature_resource_test.go index 48ce5bbf0791..bbec84fcc60d 100644 --- a/internal/services/appconfiguration/app_configuration_feature_resource_test.go +++ b/internal/services/appconfiguration/app_configuration_feature_resource_test.go @@ -77,6 +77,7 @@ func TestAccAppConfigurationFeature_percentFilter(t *testing.T) { data.ImportStep(), }) } + func TestAccAppConfigurationFeature_basicNoLabel(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_app_configuration_feature", "test") r := AppConfigurationFeatureResource{} diff --git a/internal/services/appconfiguration/app_configuration_key_data_source.go b/internal/services/appconfiguration/app_configuration_key_data_source.go index 97144cdad9f2..9453a66d40c1 100644 --- a/internal/services/appconfiguration/app_configuration_key_data_source.go +++ b/internal/services/appconfiguration/app_configuration_key_data_source.go @@ -10,6 +10,7 @@ import ( "time" "github.com/Azure/go-autorest/autorest" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appconfiguration/parse" @@ -123,13 +124,13 @@ func (k KeyDataSource) Read() sdk.ResourceFunc { return fmt.Errorf("while checking for key's %q existence: %+v", model.Key, err) } - if contentType := utils.NormalizeNilableString(kv.ContentType); contentType != VaultKeyContentType { + if contentType := pointer.From(kv.ContentType); contentType != VaultKeyContentType { model.Type = KeyTypeKV model.ContentType = contentType - model.Value = utils.NormalizeNilableString(kv.Value) + model.Value = pointer.From(kv.Value) } else { var ref VaultKeyReference - refBytes := []byte(utils.NormalizeNilableString(kv.Value)) + refBytes := []byte(pointer.From(kv.Value)) err := json.Unmarshal(refBytes, &ref) if err != nil { return fmt.Errorf("while unmarshalling vault reference: %+v", err) @@ -144,7 +145,7 @@ func (k KeyDataSource) Read() sdk.ResourceFunc { if kv.Locked != nil { model.Locked = *kv.Locked } - model.Etag = utils.NormalizeNilableString(kv.Etag) + model.Etag = pointer.From(kv.Etag) metadata.SetID(nestedItemId) return metadata.Encode(&model) diff --git a/internal/services/appconfiguration/app_configuration_key_resource.go b/internal/services/appconfiguration/app_configuration_key_resource.go index 0a3096425f9c..93411621a3be 100644 --- a/internal/services/appconfiguration/app_configuration_key_resource.go +++ b/internal/services/appconfiguration/app_configuration_key_resource.go @@ -6,11 +6,13 @@ package appconfiguration import ( "context" "encoding/json" + "errors" "fmt" "log" "time" "github.com/Azure/go-autorest/autorest" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" @@ -161,7 +163,7 @@ func (k KeyResource) Create() sdk.ResourceFunc { deadline, ok := ctx.Deadline() if !ok { - return fmt.Errorf("internal-error: context had no deadline") + return errors.New("internal-error: context had no deadline") } // from https://learn.microsoft.com/en-us/azure/azure-app-configuration/concept-enable-rbac#azure-built-in-roles-for-azure-app-configuration @@ -302,19 +304,19 @@ func (k KeyResource) Read() sdk.ResourceFunc { model := KeyResourceModel{ ConfigurationStoreId: configurationStoreId.ID(), - Key: utils.NormalizeNilableString(kv.Key), - ContentType: utils.NormalizeNilableString(kv.ContentType), - Etag: utils.NormalizeNilableString(kv.Etag), - Label: utils.NormalizeNilableString(kv.Label), + Key: pointer.From(kv.Key), + ContentType: pointer.From(kv.ContentType), + Etag: pointer.From(kv.Etag), + Label: pointer.From(kv.Label), Tags: tags.Flatten(kv.Tags), } - if utils.NormalizeNilableString(kv.ContentType) != VaultKeyContentType { + if pointer.From(kv.ContentType) != VaultKeyContentType { model.Type = KeyTypeKV - model.Value = utils.NormalizeNilableString(kv.Value) + model.Value = pointer.From(kv.Value) } else { var ref VaultKeyReference - refBytes := []byte(utils.NormalizeNilableString(kv.Value)) + refBytes := []byte(pointer.From(kv.Value)) err := json.Unmarshal(refBytes, &ref) if err != nil { return fmt.Errorf("while unmarshalling vault reference: %+v", err) @@ -323,7 +325,7 @@ func (k KeyResource) Read() sdk.ResourceFunc { model.Type = KeyTypeVault model.VaultKeyReference = ref.URI model.ContentType = VaultKeyContentType - model.Value = utils.NormalizeNilableString(kv.Value) + model.Value = pointer.From(kv.Value) } if kv.Locked != nil { diff --git a/internal/services/appconfiguration/app_configuration_keys_data_source.go b/internal/services/appconfiguration/app_configuration_keys_data_source.go index 8301656334da..917ceeacdb53 100644 --- a/internal/services/appconfiguration/app_configuration_keys_data_source.go +++ b/internal/services/appconfiguration/app_configuration_keys_data_source.go @@ -10,6 +10,7 @@ import ( "time" "github.com/Azure/go-autorest/autorest" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appconfiguration/parse" @@ -164,15 +165,15 @@ func (k KeysDataSource) Read() sdk.ResourceFunc { for iter.NotDone() { kv := iter.Value() var krmodel KeyDataSourceModel - krmodel.Key = utils.NormalizeNilableString(kv.Key) - krmodel.Label = utils.NormalizeNilableString(kv.Label) - if contentType := utils.NormalizeNilableString(kv.ContentType); contentType != VaultKeyContentType { + krmodel.Key = pointer.From(kv.Key) + krmodel.Label = pointer.From(kv.Label) + if contentType := pointer.From(kv.ContentType); contentType != VaultKeyContentType { krmodel.Type = KeyTypeKV krmodel.ContentType = contentType - krmodel.Value = utils.NormalizeNilableString(kv.Value) + krmodel.Value = pointer.From(kv.Value) } else { var ref VaultKeyReference - refBytes := []byte(utils.NormalizeNilableString(kv.Value)) + refBytes := []byte(pointer.From(kv.Value)) err := json.Unmarshal(refBytes, &ref) if err != nil { return fmt.Errorf("while unmarshalling vault reference: %+v", err) @@ -187,7 +188,7 @@ func (k KeysDataSource) Read() sdk.ResourceFunc { if kv.Locked != nil { krmodel.Locked = *kv.Locked } - krmodel.Etag = utils.NormalizeNilableString(kv.Etag) + krmodel.Etag = pointer.From(kv.Etag) model.Items = append(model.Items, krmodel) if err := iter.NextWithContext(ctx); err != nil { diff --git a/internal/services/appconfiguration/app_configuration_resource.go b/internal/services/appconfiguration/app_configuration_resource.go index bb12e7ad97d9..0615cf1639da 100644 --- a/internal/services/appconfiguration/app_configuration_resource.go +++ b/internal/services/appconfiguration/app_configuration_resource.go @@ -5,6 +5,7 @@ package appconfiguration import ( "context" + "errors" "fmt" "log" "net/http" @@ -298,7 +299,7 @@ func resourceAppConfigurationCreate(d *pluginsdk.ResourceData, meta interface{}) deleted, err := deletedConfigurationStoresClient.ConfigurationStoresGetDeleted(ctx, deletedConfigurationStoresId) if err != nil { if response.WasStatusCode(deleted.HttpResponse, http.StatusForbidden) { - return fmt.Errorf(userIsMissingNecessaryPermission(name, location)) + return errors.New(userIsMissingNecessaryPermission(name, location)) } if !response.WasNotFound(deleted.HttpResponse) { return fmt.Errorf("checking for presence of deleted %s: %+v", deletedConfigurationStoresId, err) @@ -371,7 +372,6 @@ func resourceAppConfigurationCreate(d *pluginsdk.ResourceData, meta interface{}) if err := replicaClient.CreateThenPoll(ctx, replicaId, replica); err != nil { return fmt.Errorf("creating %s: %+v", replicaId, err) } - } return resourceAppConfigurationRead(d, meta) diff --git a/internal/services/appconfiguration/feature_structs.go b/internal/services/appconfiguration/feature_structs.go index b3cc63c4f160..062bc764181d 100644 --- a/internal/services/appconfiguration/feature_structs.go +++ b/internal/services/appconfiguration/feature_structs.go @@ -107,7 +107,7 @@ type PercentageFeatureFilter struct { } type TargetingGroupParameter struct { - Name string `json:"Name" tfschema:"name"` + Name string `json:"Name" tfschema:"name"` RolloutPercentage int64 `json:"RolloutPercentage" tfschema:"rollout_percentage"` } @@ -117,8 +117,8 @@ type TargetingFilterParameters struct { type TargetingFilterAudience struct { DefaultRolloutPercentage int64 `json:"DefaultRolloutPercentage" tfschema:"default_rollout_percentage"` - Users []string `json:"Users" tfschema:"users"` - Groups []TargetingGroupParameter `json:"Groups" tfschema:"groups"` + Users []string `json:"Users" tfschema:"users"` + Groups []TargetingGroupParameter `json:"Groups" tfschema:"groups"` } type TargetingFeatureFilter struct { @@ -128,7 +128,7 @@ type TargetingFeatureFilter struct { type TimewindowFilterParameters struct { Start string `json:"Start" tfschema:"start"` - End string `json:"End" tfschema:"end"` + End string `json:"End" tfschema:"end"` } type TimewindowFeatureFilter struct { diff --git a/internal/services/appconfiguration/parse/app_configuration_key.go b/internal/services/appconfiguration/parse/app_configuration_key.go index 78f81d9a72a6..f50ca78fe9e3 100644 --- a/internal/services/appconfiguration/parse/app_configuration_key.go +++ b/internal/services/appconfiguration/parse/app_configuration_key.go @@ -74,5 +74,4 @@ func handleSlashInIdForKey(input string) string { } return input - } diff --git a/internal/services/applicationinsights/application_insights_api_key_resource.go b/internal/services/applicationinsights/application_insights_api_key_resource.go index 436726f2eaf6..28c46918e8ae 100644 --- a/internal/services/applicationinsights/application_insights_api_key_resource.go +++ b/internal/services/applicationinsights/application_insights_api_key_resource.go @@ -109,7 +109,7 @@ func resourceApplicationInsightsAPIKeyCreate(d *pluginsdk.ResourceData, meta int } } - for existingAPIKeyList.Model != nil && len(existingAPIKeyList.Model.Value) > 0 { + if existingAPIKeyList.Model != nil && len(existingAPIKeyList.Model.Value) > 0 { for _, existingAPIKey := range existingAPIKeyList.Model.Value { existingAPIKeyId, err = apikeys.ParseApiKeyIDInsensitively(*existingAPIKey.Id) if err != nil { diff --git a/internal/services/applicationinsights/application_insights_resource.go b/internal/services/applicationinsights/application_insights_resource.go index 54c732d8879a..b2011f6abd82 100644 --- a/internal/services/applicationinsights/application_insights_resource.go +++ b/internal/services/applicationinsights/application_insights_resource.go @@ -316,7 +316,6 @@ func resourceApplicationInsightsCreateUpdate(d *pluginsdk.ResourceData, meta int return pluginsdk.NonRetryableError(fmt.Errorf("issuing disable request for %s: %+v", ruleId, err)) } } - } } diff --git a/internal/services/applicationinsights/application_insights_smart_detection_rule_resource.go b/internal/services/applicationinsights/application_insights_smart_detection_rule_resource.go index a7f5bf06e22f..ceb8848ec194 100644 --- a/internal/services/applicationinsights/application_insights_smart_detection_rule_resource.go +++ b/internal/services/applicationinsights/application_insights_smart_detection_rule_resource.go @@ -159,7 +159,6 @@ func resourceApplicationInsightsSmartDetectionRuleRead(d *pluginsdk.ResourceData d.Set("enabled", model.Enabled) d.Set("send_emails_to_subscription_owners", model.SendEmailsToSubscriptionOwners) d.Set("additional_email_recipients", utils.FlattenStringSlice(model.CustomEmails)) - } return nil } diff --git a/internal/services/applicationinsights/application_insights_standard_webtests_resource.go b/internal/services/applicationinsights/application_insights_standard_webtests_resource.go index 8bb39bcfca89..3e5d108a4c3e 100644 --- a/internal/services/applicationinsights/application_insights_standard_webtests_resource.go +++ b/internal/services/applicationinsights/application_insights_standard_webtests_resource.go @@ -22,8 +22,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/utils" ) -var _ sdk.ResourceWithUpdate = ApplicationInsightsStandardWebTestResource{} -var _ sdk.ResourceWithCustomizeDiff = ApplicationInsightsStandardWebTestResource{} +var ( + _ sdk.ResourceWithUpdate = ApplicationInsightsStandardWebTestResource{} + _ sdk.ResourceWithCustomizeDiff = ApplicationInsightsStandardWebTestResource{} +) type ApplicationInsightsStandardWebTestResource struct{} diff --git a/internal/services/applicationinsights/application_insights_workbook_template_resource.go b/internal/services/applicationinsights/application_insights_workbook_template_resource.go index 7b22f59a3f94..c205884a681e 100644 --- a/internal/services/applicationinsights/application_insights_workbook_template_resource.go +++ b/internal/services/applicationinsights/application_insights_workbook_template_resource.go @@ -371,7 +371,7 @@ func (r ApplicationInsightsWorkbookTemplateResource) Delete() sdk.ResourceFunc { } func expandWorkbookTemplateGalleryModel(inputList []WorkbookTemplateGalleryModel) *[]workbooktemplates.WorkbookTemplateGallery { - var outputList []workbooktemplates.WorkbookTemplateGallery + outputList := make([]workbooktemplates.WorkbookTemplateGallery, 0, len(inputList)) for _, input := range inputList { output := workbooktemplates.WorkbookTemplateGallery{ Category: utils.String(input.Category), @@ -388,11 +388,11 @@ func expandWorkbookTemplateGalleryModel(inputList []WorkbookTemplateGalleryModel } func flattenWorkbookTemplateGalleryModel(inputList *[]workbooktemplates.WorkbookTemplateGallery) []WorkbookTemplateGalleryModel { - var outputList []WorkbookTemplateGalleryModel if inputList == nil { - return outputList + return []WorkbookTemplateGalleryModel{} } + outputList := make([]WorkbookTemplateGalleryModel, 0, len(*inputList)) for _, input := range *inputList { output := WorkbookTemplateGalleryModel{} diff --git a/internal/services/applicationinsights/parse/analytics_shared_item.go b/internal/services/applicationinsights/parse/analytics_shared_item.go index c9639c9fd8af..03ba8afbea1a 100644 --- a/internal/services/applicationinsights/parse/analytics_shared_item.go +++ b/internal/services/applicationinsights/parse/analytics_shared_item.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func AnalyticsSharedItemID(input string) (*AnalyticsSharedItemId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ComponentName, err = id.PopSegment("components"); err != nil { diff --git a/internal/services/applicationinsights/parse/analytics_shared_item_test.go b/internal/services/applicationinsights/parse/analytics_shared_item_test.go index 722364bd696b..7021b37aeb9e 100644 --- a/internal/services/applicationinsights/parse/analytics_shared_item_test.go +++ b/internal/services/applicationinsights/parse/analytics_shared_item_test.go @@ -27,7 +27,6 @@ func TestAnalyticsSharedItemID(t *testing.T) { Error bool Expected *AnalyticsSharedItemId }{ - { // empty Input: "", diff --git a/internal/services/applicationinsights/parse/analytics_user_item.go b/internal/services/applicationinsights/parse/analytics_user_item.go index 4616575407ae..85a4f2bbf59c 100644 --- a/internal/services/applicationinsights/parse/analytics_user_item.go +++ b/internal/services/applicationinsights/parse/analytics_user_item.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func AnalyticsUserItemID(input string) (*AnalyticsUserItemId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ComponentName, err = id.PopSegment("components"); err != nil { diff --git a/internal/services/applicationinsights/parse/analytics_user_item_test.go b/internal/services/applicationinsights/parse/analytics_user_item_test.go index e986b265573f..565224d10cac 100644 --- a/internal/services/applicationinsights/parse/analytics_user_item_test.go +++ b/internal/services/applicationinsights/parse/analytics_user_item_test.go @@ -27,7 +27,6 @@ func TestAnalyticsUserItemID(t *testing.T) { Error bool Expected *AnalyticsUserItemId }{ - { // empty Input: "", diff --git a/internal/services/applicationinsights/parse/smart_detection_rule.go b/internal/services/applicationinsights/parse/smart_detection_rule.go index 52f477fa1483..4bebb54a2b4f 100644 --- a/internal/services/applicationinsights/parse/smart_detection_rule.go +++ b/internal/services/applicationinsights/parse/smart_detection_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SmartDetectionRuleID(input string) (*SmartDetectionRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ComponentName, err = id.PopSegment("components"); err != nil { @@ -95,11 +96,11 @@ func SmartDetectionRuleIDInsensitively(input string) (*SmartDetectionRuleId, err } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'components' segment diff --git a/internal/services/applicationinsights/parse/smart_detection_rule_test.go b/internal/services/applicationinsights/parse/smart_detection_rule_test.go index 1a5eab048159..425ddcace381 100644 --- a/internal/services/applicationinsights/parse/smart_detection_rule_test.go +++ b/internal/services/applicationinsights/parse/smart_detection_rule_test.go @@ -27,7 +27,6 @@ func TestSmartDetectionRuleID(t *testing.T) { Error bool Expected *SmartDetectionRuleId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSmartDetectionRuleIDInsensitively(t *testing.T) { Error bool Expected *SmartDetectionRuleId }{ - { // empty Input: "", diff --git a/internal/services/applicationinsights/validate/analytics_shared_item_id_test.go b/internal/services/applicationinsights/validate/analytics_shared_item_id_test.go index 3090279d183f..4d7902890805 100644 --- a/internal/services/applicationinsights/validate/analytics_shared_item_id_test.go +++ b/internal/services/applicationinsights/validate/analytics_shared_item_id_test.go @@ -12,7 +12,6 @@ func TestAnalyticsSharedItemID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/applicationinsights/validate/analytics_user_item_id_test.go b/internal/services/applicationinsights/validate/analytics_user_item_id_test.go index a596979d65e5..aaea3d0f3cf9 100644 --- a/internal/services/applicationinsights/validate/analytics_user_item_id_test.go +++ b/internal/services/applicationinsights/validate/analytics_user_item_id_test.go @@ -12,7 +12,6 @@ func TestAnalyticsUserItemID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/applicationinsights/validate/smart_detection_rule_id_test.go b/internal/services/applicationinsights/validate/smart_detection_rule_id_test.go index 6962de0ffb2c..24a2fc587953 100644 --- a/internal/services/applicationinsights/validate/smart_detection_rule_id_test.go +++ b/internal/services/applicationinsights/validate/smart_detection_rule_id_test.go @@ -12,7 +12,6 @@ func TestSmartDetectionRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/appservice/app_service_environment_v3_data_source.go b/internal/services/appservice/app_service_environment_v3_data_source.go index ffabe9d07e6f..513a92d96e44 100644 --- a/internal/services/appservice/app_service_environment_v3_data_source.go +++ b/internal/services/appservice/app_service_environment_v3_data_source.go @@ -17,7 +17,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type AppServiceEnvironmentV3DataSource struct{} @@ -232,7 +231,7 @@ func (r AppServiceEnvironmentV3DataSource) Read() sdk.ResourceFunc { state.DedicatedHostCount = pointer.From(props.DedicatedHostCount) state.PricingTier = pointer.From(props.MultiSize) state.ClusterSetting = flattenClusterSettingsModel(props.ClusterSettings) - state.DnsSuffix = utils.NormalizeNilableString(props.DnsSuffix) + state.DnsSuffix = pointer.From(props.DnsSuffix) state.IpSSLAddressCount = pointer.From(props.IPsslAddressCount) state.ZoneRedundant = pointer.From(props.ZoneRedundant) } @@ -260,7 +259,6 @@ func (r AppServiceEnvironmentV3DataSource) Read() sdk.ResourceFunc { state.InboundNetworkDependencies = *inboundNetworkDependencies state.Tags = pointer.From(model.Tags) - } metadata.SetID(id) diff --git a/internal/services/appservice/app_service_environment_v3_resource.go b/internal/services/appservice/app_service_environment_v3_resource.go index 65ea1d20a110..1d6ef42a16ff 100644 --- a/internal/services/appservice/app_service_environment_v3_resource.go +++ b/internal/services/appservice/app_service_environment_v3_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/validate" @@ -517,11 +517,11 @@ func (r AppServiceEnvironmentV3Resource) Update() sdk.ResourceFunc { } func flattenClusterSettingsModel(input *[]appserviceenvironments.NameValuePair) []ClusterSettingModel { - var output []ClusterSettingModel if input == nil || len(*input) == 0 { - return output + return []ClusterSettingModel{} } + output := make([]ClusterSettingModel, 0, len(*input)) for _, v := range *input { if v.Name == nil { continue @@ -529,14 +529,14 @@ func flattenClusterSettingsModel(input *[]appserviceenvironments.NameValuePair) output = append(output, ClusterSettingModel{ Name: *v.Name, - Value: utils.NormalizeNilableString(v.Value), + Value: pointer.From(v.Value), }) } return output } func expandClusterSettingsModel(input []ClusterSettingModel) *[]appserviceenvironments.NameValuePair { - var clusterSettings []appserviceenvironments.NameValuePair + clusterSettings := make([]appserviceenvironments.NameValuePair, 0, len(input)) if input == nil { return &clusterSettings } @@ -552,11 +552,12 @@ func expandClusterSettingsModel(input []ClusterSettingModel) *[]appserviceenviro } func flattenInboundNetworkDependencies(ctx context.Context, client *appserviceenvironments.AppServiceEnvironmentsClient, id *commonids.AppServiceEnvironmentId) (*[]AppServiceV3InboundDependencies, error) { - var results []AppServiceV3InboundDependencies inboundNetworking, err := client.GetInboundNetworkDependenciesEndpointsComplete(ctx, *id) if err != nil { return nil, fmt.Errorf("reading paged results for Inbound Network Dependencies for %s: %+v", id, err) } + + results := make([]AppServiceV3InboundDependencies, 0, len(inboundNetworking.Items)) for _, v := range inboundNetworking.Items { if err != nil { return nil, fmt.Errorf("reading Inbound Network dependencies for %s: %+v", id, err) diff --git a/internal/services/appservice/function_app_hybrid_connection_resource.go b/internal/services/appservice/function_app_hybrid_connection_resource.go index 450262b132cf..ef44e37c169c 100644 --- a/internal/services/appservice/function_app_hybrid_connection_resource.go +++ b/internal/services/appservice/function_app_hybrid_connection_resource.go @@ -216,7 +216,6 @@ func (r FunctionAppHybridConnectionResource) Read() sdk.ResourceFunc { } if model := existing.Model; model != nil { - if props := model.Properties; props != nil { appHybridConn.RelayId = pointer.From(props.RelayArmUri) appHybridConn.HostName = pointer.From(props.Hostname) diff --git a/internal/services/appservice/function_app_hybrid_connection_resource_test.go b/internal/services/appservice/function_app_hybrid_connection_resource_test.go index cc77db97783c..a30e46648c70 100644 --- a/internal/services/appservice/function_app_hybrid_connection_resource_test.go +++ b/internal/services/appservice/function_app_hybrid_connection_resource_test.go @@ -85,6 +85,7 @@ func TestAccFunctionAppHybridConnection_sendRule(t *testing.T) { data.ImportStep(), }) } + func TestAccFunctionAppHybridConnection_complete(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_function_app_hybrid_connection", "test") r := FunctionAppHybridConnectionResource{} diff --git a/internal/services/appservice/helpers/app_stack.go b/internal/services/appservice/helpers/app_stack.go index e38a96e577a2..102876e49b75 100644 --- a/internal/services/appservice/helpers/app_stack.go +++ b/internal/services/appservice/helpers/app_stack.go @@ -88,7 +88,9 @@ func windowsApplicationStackSchema() *pluginsdk.Schema { "v5.0", "v6.0", "v7.0", - "v8.0"}, false), + "v8.0", + "v9.0", + }, false), AtLeastOneOf: windowsApplicationStackConstraint, }, @@ -299,7 +301,6 @@ func windowsApplicationStackSchema() *pluginsdk.Schema { MaxItems: 1, Elem: r, } - } func windowsApplicationStackSchemaComputed() *pluginsdk.Schema { @@ -403,7 +404,6 @@ func windowsApplicationStackSchemaComputed() *pluginsdk.Schema { Type: pluginsdk.TypeString, Computed: true, } - } return &pluginsdk.Schema{ Type: pluginsdk.TypeList, @@ -466,6 +466,7 @@ func linuxApplicationStackSchema() *pluginsdk.Schema { "6.0", "7.0", "8.0", + "9.0", }, false), ExactlyOneOf: linuxApplicationStackConstraint, }, @@ -626,7 +627,6 @@ func linuxApplicationStackSchema() *pluginsdk.Schema { r.Schema["docker_registry_url"].Computed = true r.Schema["docker_registry_username"].Computed = true r.Schema["docker_registry_password"].Computed = true - } return &pluginsdk.Schema{ diff --git a/internal/services/appservice/helpers/auth_v2_schema.go b/internal/services/appservice/helpers/auth_v2_schema.go index e3ed6b058497..386bfeb08ef4 100644 --- a/internal/services/appservice/helpers/auth_v2_schema.go +++ b/internal/services/appservice/helpers/auth_v2_schema.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" + "github.com/jackofallops/kermit/sdk/web/2022-09-01/web" ) type AuthV2Settings struct { @@ -172,6 +172,7 @@ func AuthV2SettingsSchema() *pluginsdk.Schema { }, } } + func AuthV2SettingsComputedSchema() *pluginsdk.Schema { return &pluginsdk.Schema{ Type: pluginsdk.TypeList, @@ -1035,7 +1036,6 @@ func flattenAadAuthV2Settings(input *webapps.AzureActiveDirectory) []AadAuthV2Se } result.LoginParameters = loginParams } - } if validation := input.Validation; validation != nil { @@ -1782,7 +1782,6 @@ func expandGoogleAuthV2Settings(input []GoogleAuthV2Settings) *webapps.Google { Scopes: pointer.To(google.LoginScopes), }, } - } return &webapps.Google{ diff --git a/internal/services/appservice/helpers/common_web_app_schema.go b/internal/services/appservice/helpers/common_web_app_schema.go index 86af20310ed6..dd72f4b13e78 100644 --- a/internal/services/appservice/helpers/common_web_app_schema.go +++ b/internal/services/appservice/helpers/common_web_app_schema.go @@ -44,6 +44,7 @@ func HandlerMappingSchema() *pluginsdk.Schema { }, } } + func HandlerMappingSchemaComputed() *pluginsdk.Schema { return &pluginsdk.Schema{ Type: pluginsdk.TypeSet, @@ -1257,7 +1258,7 @@ func FlattenStorageAccounts(appStorageAccounts *webapps.AzureStoragePropertyDict return []StorageAccount{} } - var storageAccounts []StorageAccount + storageAccounts := make([]StorageAccount, 0, len(*appStorageAccounts.Properties)) for k, v := range *appStorageAccounts.Properties { storageAccount := StorageAccount{ Name: k, @@ -1289,7 +1290,8 @@ func FlattenConnectionStrings(appConnectionStrings *webapps.ConnectionStringDict if appConnectionStrings.Properties == nil || len(*appConnectionStrings.Properties) == 0 { return []ConnectionString{} } - var connectionStrings []ConnectionString + + connectionStrings := make([]ConnectionString, 0, len(*appConnectionStrings.Properties)) for k, v := range *appConnectionStrings.Properties { connectionString := ConnectionString{ Name: k, @@ -1386,7 +1388,7 @@ func flattenHandlerMapping(appHandlerMappings *[]webapps.HandlerMapping) []Handl return []HandlerMappings{} } - var handlerMappings []HandlerMappings + handlerMappings := make([]HandlerMappings, 0, len(*appHandlerMappings)) for _, v := range *appHandlerMappings { handlerMapping := HandlerMappings{ Extension: pointer.From(v.Extension), @@ -1404,7 +1406,7 @@ func flattenVirtualApplications(appVirtualApplications *[]webapps.VirtualApplica return []VirtualApplication{} } - var virtualApplications []VirtualApplication + virtualApplications := make([]VirtualApplication, 0, len(*appVirtualApplications)) for _, v := range *appVirtualApplications { virtualApp := VirtualApplication{ VirtualPath: pointer.From(v.VirtualPath), diff --git a/internal/services/appservice/helpers/function_app_schema.go b/internal/services/appservice/helpers/function_app_schema.go index ca7d021db965..d0380954e90f 100644 --- a/internal/services/appservice/helpers/function_app_schema.go +++ b/internal/services/appservice/helpers/function_app_schema.go @@ -1029,7 +1029,7 @@ func SiteConfigSchemaWindowsFunctionAppComputed() *pluginsdk.Schema { type ApplicationStackLinuxFunctionApp struct { // Note - Function Apps differ to Web Apps here. They do not use the named properties in the SiteConfig block and exclusively use the app_settings map - DotNetVersion string `tfschema:"dotnet_version"` // Supported values `3.1`, `6.0`, `7.0` and `8.0`. + DotNetVersion string `tfschema:"dotnet_version"` // Supported values `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. DotNetIsolated bool `tfschema:"use_dotnet_isolated_runtime"` // Supported values `true` for `dotnet-isolated`, `false` otherwise NodeVersion string `tfschema:"node_version"` // Supported values `12LTS`, `14LTS`, `16LTS`, `18LTS, `20LTS`` PythonVersion string `tfschema:"python_version"` // Supported values `3.12`, `3.11`, `3.10`, `3.9`, `3.8`, `3.7` @@ -1040,7 +1040,7 @@ type ApplicationStackLinuxFunctionApp struct { } type ApplicationStackWindowsFunctionApp struct { - DotNetVersion string `tfschema:"dotnet_version"` // Supported values `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0` + DotNetVersion string `tfschema:"dotnet_version"` // Supported values `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0` DotNetIsolated bool `tfschema:"use_dotnet_isolated_runtime"` // Supported values `true` for `dotnet-isolated`, `false` otherwise NodeVersion string `tfschema:"node_version"` // Supported values `12LTS`, `14LTS`, `16LTS`, `18LTS, `20LTS` JavaVersion string `tfschema:"java_version"` // Supported values `8`, `11`, `17` @@ -1071,6 +1071,7 @@ func linuxFunctionAppStackSchema() *pluginsdk.Schema { "6.0", "7.0", "8.0", + "9.0", }, false), ExactlyOneOf: []string{ "site_config.0.application_stack.0.dotnet_version", @@ -1081,7 +1082,7 @@ func linuxFunctionAppStackSchema() *pluginsdk.Schema { "site_config.0.application_stack.0.docker", "site_config.0.application_stack.0.use_custom_runtime", }, - Description: "The version of .Net. Possible values are `3.1`, `6.0` and `7.0`", + Description: "The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`", }, "use_dotnet_isolated_runtime": { @@ -1352,6 +1353,7 @@ func windowsFunctionAppStackSchema() *pluginsdk.Schema { "v6.0", "v7.0", "v8.0", + "v9.0", }, false), ExactlyOneOf: []string{ "site_config.0.application_stack.0.dotnet_version", @@ -1360,7 +1362,7 @@ func windowsFunctionAppStackSchema() *pluginsdk.Schema { "site_config.0.application_stack.0.powershell_core_version", "site_config.0.application_stack.0.use_custom_runtime", }, - Description: "The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0` and `v7.0`", + Description: "The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`", }, "use_dotnet_isolated_runtime": { @@ -1646,7 +1648,7 @@ func ExpandSiteConfigLinuxFunctionApp(siteConfig []SiteConfigLinuxFunctionApp, e expanded.LinuxFxVersion = pointer.To("") // Custom needs an explicit empty string here } - if linuxAppStack.Docker != nil && len(linuxAppStack.Docker) == 1 { + if len(linuxAppStack.Docker) == 1 { dockerConfig := linuxAppStack.Docker[0] appSettings = updateOrAppendAppSettings(appSettings, "DOCKER_REGISTRY_SERVER_URL", dockerConfig.RegistryURL, false) appSettings = updateOrAppendAppSettings(appSettings, "DOCKER_REGISTRY_SERVER_USERNAME", dockerConfig.RegistryUsername, false) diff --git a/internal/services/appservice/helpers/function_app_slot_schema.go b/internal/services/appservice/helpers/function_app_slot_schema.go index 6d921b4c07b7..3ed1480bc6bf 100644 --- a/internal/services/appservice/helpers/function_app_slot_schema.go +++ b/internal/services/appservice/helpers/function_app_slot_schema.go @@ -14,7 +14,7 @@ import ( apimValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" + "github.com/jackofallops/kermit/sdk/web/2022-09-01/web" ) type SiteConfigWindowsFunctionAppSlot struct { @@ -1096,7 +1096,7 @@ func ExpandSiteConfigLinuxFunctionAppSlot(siteConfig []SiteConfigLinuxFunctionAp expanded.LinuxFxVersion = pointer.To("") // Custom needs an explicit empty string here } - if linuxAppStack.Docker != nil && len(linuxAppStack.Docker) == 1 { + if len(linuxAppStack.Docker) == 1 { dockerConfig := linuxAppStack.Docker[0] appSettings = append(appSettings, webapps.NameValuePair{ Name: pointer.To("DOCKER_REGISTRY_SERVER_URL"), diff --git a/internal/services/appservice/helpers/fx_strings.go b/internal/services/appservice/helpers/fx_strings.go index 128a5d6ab597..dbb9498ab532 100644 --- a/internal/services/appservice/helpers/fx_strings.go +++ b/internal/services/appservice/helpers/fx_strings.go @@ -281,7 +281,6 @@ func JavaLinuxFxStringBuilder(javaMajorVersion, javaServer, javaServerVersion st default: return pointer.To(fmt.Sprintf("%s|%s-%s", javaServer, javaServerVersion, javaMajorVersion)), nil - } return nil, fmt.Errorf("unsupported combination of `java_version`, `java_server`, and `java_server_version`") } diff --git a/internal/services/appservice/helpers/shared_schema.go b/internal/services/appservice/helpers/shared_schema.go index 5767f6c3bea8..54ea44ad4b0d 100644 --- a/internal/services/appservice/helpers/shared_schema.go +++ b/internal/services/appservice/helpers/shared_schema.go @@ -1478,7 +1478,7 @@ func FlattenIpRestrictions(ipRestrictionsList *[]webapps.IPSecurityRestriction) return []IpRestriction{} } - var ipRestrictions []IpRestriction + ipRestrictions := make([]IpRestriction, 0, len(*ipRestrictionsList)) for _, v := range *ipRestrictionsList { ipRestriction := IpRestriction{} diff --git a/internal/services/appservice/helpers/web_app_slot_schema.go b/internal/services/appservice/helpers/web_app_slot_schema.go index cf7e28851a0e..34a024601fab 100644 --- a/internal/services/appservice/helpers/web_app_slot_schema.go +++ b/internal/services/appservice/helpers/web_app_slot_schema.go @@ -910,7 +910,6 @@ func (s *SiteConfigLinuxWebAppSlot) Flatten(appSiteSlotConfig *webapps.SiteConfi linuxAppStack = decodeApplicationStackLinux(s.LinuxFxVersion) s.ApplicationStack = []ApplicationStackLinux{linuxAppStack} } - } func (s *SiteConfigLinuxWebAppSlot) SetHealthCheckEvictionTime(input map[string]string) { @@ -952,7 +951,6 @@ func (s *SiteConfigLinuxWebAppSlot) DecodeDockerDeprecatedAppStack(input map[str applicationStack = s.ApplicationStack[0] } if !usesDeprecated { - if v, ok := input["DOCKER_REGISTRY_SERVER_URL"]; ok { applicationStack.DockerRegistryUrl = v } @@ -1226,7 +1224,6 @@ func (s *SiteConfigWindowsWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaD appSettings["DOCKER_REGISTRY_SERVER_USERNAME"] = winAppStack.DockerRegistryUsername appSettings["DOCKER_REGISTRY_SERVER_PASSWORD"] = winAppStack.DockerRegistryPassword } - } else { expanded.WindowsFxVersion = pointer.To("") } @@ -1415,7 +1412,6 @@ func (s *SiteConfigWindowsWebAppSlot) Flatten(appSiteSlotConfig *webapps.SiteCon winAppStack.CurrentStack = currentStack s.ApplicationStack = []ApplicationStackWindows{winAppStack} - } func (s *SiteConfigWindowsWebAppSlot) SetHealthCheckEvictionTime(input map[string]string) { diff --git a/internal/services/appservice/helpers/windows_web_app_schema.go b/internal/services/appservice/helpers/windows_web_app_schema.go index 1481e907c70f..a3122e6f7aac 100644 --- a/internal/services/appservice/helpers/windows_web_app_schema.go +++ b/internal/services/appservice/helpers/windows_web_app_schema.go @@ -562,9 +562,7 @@ func (s *SiteConfigWindows) ExpandForCreate(appSettings map[string]string) (*web appSettings["DOCKER_REGISTRY_SERVER_URL"] = winAppStack.DockerRegistryUrl appSettings["DOCKER_REGISTRY_SERVER_USERNAME"] = winAppStack.DockerRegistryUsername appSettings["DOCKER_REGISTRY_SERVER_PASSWORD"] = winAppStack.DockerRegistryPassword - } - } else { expanded.WindowsFxVersion = pointer.To("") } @@ -720,7 +718,6 @@ func (s *SiteConfigWindows) ExpandForUpdate(metadata sdk.ResourceMetaData, exist appSettings["DOCKER_REGISTRY_SERVER_USERNAME"] = winAppStack.DockerRegistryUsername appSettings["DOCKER_REGISTRY_SERVER_PASSWORD"] = winAppStack.DockerRegistryPassword } - } else { expanded.WindowsFxVersion = pointer.To("") } diff --git a/internal/services/appservice/linux_function_app_resource.go b/internal/services/appservice/linux_function_app_resource.go index 73d127a397cf..41b05db30eb8 100644 --- a/internal/services/appservice/linux_function_app_resource.go +++ b/internal/services/appservice/linux_function_app_resource.go @@ -30,7 +30,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web" + "github.com/jackofallops/kermit/sdk/web/2022-09-01/web" ) type LinuxFunctionAppResource struct{} @@ -752,7 +752,6 @@ func (r LinuxFunctionAppResource) Read() sdk.ResourceFunc { if model := functionApp.Model; model != nil { flattenedIdentity, err := identity.FlattenSystemAndUserAssignedMapToModel(model.Identity) - if err != nil { return fmt.Errorf("flattening `identity`: %+v", err) } @@ -1262,10 +1261,8 @@ func (r LinuxFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { if helpers.PlanIsConsumption(sku.Name) && newValue.(bool) { return fmt.Errorf("`vnet_image_pull_enabled` cannot be enabled on consumption plans") } - } } - } if rd.HasChange("service_plan_id") { currentPlanIdRaw, newPlanIdRaw := rd.GetChange("service_plan_id") @@ -1330,7 +1327,6 @@ func (r LinuxFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { } } } - } return nil }, diff --git a/internal/services/appservice/linux_function_app_resource_test.go b/internal/services/appservice/linux_function_app_resource_test.go index 6da7bf2f976a..0e518092559d 100644 --- a/internal/services/appservice/linux_function_app_resource_test.go +++ b/internal/services/appservice/linux_function_app_resource_test.go @@ -1102,6 +1102,23 @@ func TestAccLinuxFunctionApp_appStackDotNet8Isolated(t *testing.T) { }) } +func TestAccLinuxFunctionApp_appStackDotNet9Isolated(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_linux_function_app", "test") + r := LinuxFunctionAppResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.appStackDotNetIsolated(data, SkuBasicPlan, "9.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("kind").HasValue("functionapp,linux"), + check.That(data.ResourceName).Key("site_config.0.linux_fx_version").HasValue("DOTNET-ISOLATED|9.0"), + ), + }, + data.ImportStep("site_credential.0.password"), + }) +} + func TestAccLinuxFunctionApp_appStackPython(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_linux_function_app", "test") r := LinuxFunctionAppResource{} @@ -4282,7 +4299,7 @@ resource "azurerm_user_assigned_identity" "test" { `, r.template(data, planSku), data.RandomInteger) } -// nolint:unparam +//nolint:unparam func (r LinuxFunctionAppResource) vNetIntegration_basic(data acceptance.TestData, planSku string) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/appservice/linux_function_app_slot_resource.go b/internal/services/appservice/linux_function_app_slot_resource.go index b861db1efc81..3e8527a3b209 100644 --- a/internal/services/appservice/linux_function_app_slot_resource.go +++ b/internal/services/appservice/linux_function_app_slot_resource.go @@ -444,10 +444,11 @@ func (r LinuxFunctionAppSlotResource) Create() sdk.ResourceFunc { } } } - } - // Only send for ElasticPremium - sendContentSettings := helpers.PlanIsElastic(planSKU) && !functionAppSlot.ForceDisableContentShare + + // Only send for ElasticPremium and Consumption plan + elasticOrConsumptionPlan := helpers.PlanIsElastic(planSKU) || helpers.PlanIsConsumption(planSKU) + sendContentSettings := elasticOrConsumptionPlan && !functionAppSlot.ForceDisableContentShare existing, err := client.GetSlot(ctx, id) if err != nil && !response.WasNotFound(existing.HttpResponse) { diff --git a/internal/services/appservice/linux_function_app_slot_resource_authv2_test.go b/internal/services/appservice/linux_function_app_slot_resource_authv2_test.go index b9e3bfc35e7d..17a6984146a4 100644 --- a/internal/services/appservice/linux_function_app_slot_resource_authv2_test.go +++ b/internal/services/appservice/linux_function_app_slot_resource_authv2_test.go @@ -276,7 +276,6 @@ resource "azurerm_linux_function_app_slot" "test" { } func (r LinuxFunctionAppSlotResource) authV2AzureActiveDirectoryNoSecretName(data acceptance.TestData, planSku string) string { - return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/appservice/linux_function_app_slot_resource_test.go b/internal/services/appservice/linux_function_app_slot_resource_test.go index 5cabd96c0210..c94d35a56ba8 100644 --- a/internal/services/appservice/linux_function_app_slot_resource_test.go +++ b/internal/services/appservice/linux_function_app_slot_resource_test.go @@ -866,6 +866,23 @@ func TestAccLinuxFunctionAppSlot_appStackDotNet6Isolated(t *testing.T) { }) } +func TestAccLinuxFunctionAppSlot_appStackDotNet9Isolated(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_linux_function_app_slot", "test") + r := LinuxFunctionAppSlotResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.appStackDotNetIsolated(data, SkuStandardPlan, "9.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("kind").HasValue("functionapp,linux"), + check.That(data.ResourceName).Key("site_config.0.linux_fx_version").HasValue("DOTNET-ISOLATED|9.0"), + ), + }, + data.ImportStep("site_credential.0.password"), + }) +} + func TestAccLinuxFunctionAppSlot_appStackPython(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_linux_function_app_slot", "test") r := LinuxFunctionAppSlotResource{} @@ -2041,6 +2058,7 @@ resource "azurerm_linux_function_app_slot" "test" { } `, r.template(data, planSku), data.RandomInteger) } + func (r LinuxFunctionAppSlotResource) withIPRestrictionsDefaultActionDeny(data acceptance.TestData, planSku string) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/appservice/linux_web_app_data_source.go b/internal/services/appservice/linux_web_app_data_source.go index ebd55e6779ad..ebdac0f5061e 100644 --- a/internal/services/appservice/linux_web_app_data_source.go +++ b/internal/services/appservice/linux_web_app_data_source.go @@ -416,7 +416,6 @@ func (r LinuxWebAppDataSource) Read() sdk.ResourceFunc { if err := metadata.Encode(&webApp); err != nil { return fmt.Errorf("encoding: %+v", err) } - } return nil diff --git a/internal/services/appservice/linux_web_app_resource_test.go b/internal/services/appservice/linux_web_app_resource_test.go index db03699a0105..a9a721b161c0 100644 --- a/internal/services/appservice/linux_web_app_resource_test.go +++ b/internal/services/appservice/linux_web_app_resource_test.go @@ -757,6 +757,21 @@ func TestAccLinuxWebApp_withDotNet80(t *testing.T) { }) } +func TestAccLinuxWebApp_withDotNet90(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_linux_web_app", "test") + r := LinuxWebAppResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.dotNet(data, "9.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("site_credential.0.password"), + }) +} + func TestAccLinuxWebApp_withGo18(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_linux_web_app", "test") r := LinuxWebAppResource{} @@ -1621,14 +1636,16 @@ func TestAccLinuxWebApp_disableDeployBasicAuthUpdate(t *testing.T) { check.That(data.ResourceName).Key("kind").HasValue("app,linux"), ), }, - data.ImportStep("site_credential.0.password"), { + data.ImportStep("site_credential.0.password"), + { Config: r.deployBasicAuthDisabled(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("kind").HasValue("app,linux"), ), }, - data.ImportStep("site_credential.0.password"), { + data.ImportStep("site_credential.0.password"), + { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), diff --git a/internal/services/appservice/linux_web_app_slot_resource.go b/internal/services/appservice/linux_web_app_slot_resource.go index aaac8f9d2565..efba577ba963 100644 --- a/internal/services/appservice/linux_web_app_slot_resource.go +++ b/internal/services/appservice/linux_web_app_slot_resource.go @@ -668,7 +668,6 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { if err := metadata.Encode(&state); err != nil { return fmt.Errorf("encoding: %+v", err) } - } return nil diff --git a/internal/services/appservice/linux_web_app_slot_resource_authv2_test.go b/internal/services/appservice/linux_web_app_slot_resource_authv2_test.go index 8070e540d7d9..4f121662e9f7 100644 --- a/internal/services/appservice/linux_web_app_slot_resource_authv2_test.go +++ b/internal/services/appservice/linux_web_app_slot_resource_authv2_test.go @@ -200,7 +200,6 @@ resource "azurerm_linux_web_app_slot" "test" { } func (r LinuxWebAppSlotResource) authV2AzureActiveDirectoryNoSecretName(data acceptance.TestData) string { - return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/appservice/linux_web_app_slot_resource_test.go b/internal/services/appservice/linux_web_app_slot_resource_test.go index 66d167b8d3c7..5774a386e6d7 100644 --- a/internal/services/appservice/linux_web_app_slot_resource_test.go +++ b/internal/services/appservice/linux_web_app_slot_resource_test.go @@ -818,6 +818,21 @@ func TestAccLinuxWebAppSlot_withDotNet80(t *testing.T) { }) } +func TestAccLinuxWebAppSlot_withDotNet90(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_linux_web_app_slot", "test") + r := LinuxWebAppSlotResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.dotNet(data, "9.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("site_credential.0.password"), + }) +} + func TestAccLinuxWebAppSlot_withPhp74(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_linux_web_app_slot", "test") r := LinuxWebAppSlotResource{} diff --git a/internal/services/appservice/migration/windows_function_app_slot.go b/internal/services/appservice/migration/windows_function_app_slot.go index b73f321481ca..ba9c67fee85c 100644 --- a/internal/services/appservice/migration/windows_function_app_slot.go +++ b/internal/services/appservice/migration/windows_function_app_slot.go @@ -1527,9 +1527,9 @@ func (w WindowsFunctionAppSlotV0toV1) Schema() map[string]*pluginsdk.Schema { func (w WindowsFunctionAppSlotV0toV1) UpgradeFunc() pluginsdk.StateUpgraderFunc { return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { - oldId := rawState["service_plan_id"].(string) + oldId, ok := rawState["service_plan_id"].(string) // service_plan_id can be empty if it is not in a different Service Plan to the "parent" app - if oldId == "" { + if !ok || oldId == "" { return rawState, nil } parsedId, err := commonids.ParseAppServicePlanIDInsensitively(oldId) diff --git a/internal/services/appservice/parse/app_service_environment.go b/internal/services/appservice/parse/app_service_environment.go index f7a7ce852edf..7ff1f3c371f8 100644 --- a/internal/services/appservice/parse/app_service_environment.go +++ b/internal/services/appservice/parse/app_service_environment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func AppServiceEnvironmentID(input string) (*AppServiceEnvironmentId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.HostingEnvironmentName, err = id.PopSegment("hostingEnvironments"); err != nil { @@ -89,11 +90,11 @@ func AppServiceEnvironmentIDInsensitively(input string) (*AppServiceEnvironmentI } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'hostingEnvironments' segment diff --git a/internal/services/appservice/parse/app_service_environment_test.go b/internal/services/appservice/parse/app_service_environment_test.go index 11586c897174..23a51c69abfa 100644 --- a/internal/services/appservice/parse/app_service_environment_test.go +++ b/internal/services/appservice/parse/app_service_environment_test.go @@ -27,7 +27,6 @@ func TestAppServiceEnvironmentID(t *testing.T) { Error bool Expected *AppServiceEnvironmentId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestAppServiceEnvironmentIDInsensitively(t *testing.T) { Error bool Expected *AppServiceEnvironmentId }{ - { // empty Input: "", diff --git a/internal/services/appservice/service_plan_data_source.go b/internal/services/appservice/service_plan_data_source.go index 9c31bc946c56..58425d5f5f4b 100644 --- a/internal/services/appservice/service_plan_data_source.go +++ b/internal/services/appservice/service_plan_data_source.go @@ -17,7 +17,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type ServicePlanDataSource struct{} @@ -158,15 +157,12 @@ func (r ServicePlanDataSource) Read() sdk.ResourceFunc { } if props.HostingEnvironmentProfile != nil && props.HostingEnvironmentProfile.Id != nil { - servicePlan.AppServiceEnvironmentId = utils.NormalizeNilableString(props.HostingEnvironmentProfile.Id) + servicePlan.AppServiceEnvironmentId = pointer.From(props.HostingEnvironmentProfile.Id) } - servicePlan.PerSiteScaling = utils.NormaliseNilableBool(props.PerSiteScaling) - - servicePlan.Reserved = utils.NormaliseNilableBool(props.Reserved) - - servicePlan.ZoneBalancing = utils.NormaliseNilableBool(props.ZoneRedundant) - + servicePlan.PerSiteScaling = pointer.From(props.PerSiteScaling) + servicePlan.Reserved = pointer.From(props.Reserved) + servicePlan.ZoneBalancing = pointer.From(props.ZoneRedundant) servicePlan.MaximumElasticWorkerCount = pointer.From(props.MaximumElasticWorkerCount) } servicePlan.Tags = pointer.From(model.Tags) diff --git a/internal/services/appservice/service_plan_resource.go b/internal/services/appservice/service_plan_resource.go index 85e824352acf..6cbc0170d135 100644 --- a/internal/services/appservice/service_plan_resource.go +++ b/internal/services/appservice/service_plan_resource.go @@ -264,12 +264,9 @@ func (r ServicePlanResource) Read() sdk.ResourceFunc { state.AppServiceEnvironmentId = *ase.Id } - state.PerSiteScaling = utils.NormaliseNilableBool(props.PerSiteScaling) - - state.Reserved = utils.NormaliseNilableBool(props.Reserved) - - state.ZoneBalancing = utils.NormaliseNilableBool(props.ZoneRedundant) - + state.PerSiteScaling = pointer.From(props.PerSiteScaling) + state.Reserved = pointer.From(props.Reserved) + state.ZoneBalancing = pointer.From(props.ZoneRedundant) state.MaximumElasticWorkerCount = pointer.From(props.MaximumElasticWorkerCount) } state.Tags = pointer.From(model.Tags) diff --git a/internal/services/appservice/source_control_resource.go b/internal/services/appservice/source_control_resource.go index b2665c7a6595..0b5a613ad476 100644 --- a/internal/services/appservice/source_control_resource.go +++ b/internal/services/appservice/source_control_resource.go @@ -264,7 +264,6 @@ func (r SourceControlResource) Read() sdk.ResourceFunc { GithubActionConfiguration: flattenGitHubActionConfiguration(props.GitHubActionConfiguration), LocalGitSCM: pointer.From(siteConfig.Model.Properties.ScmType) == webapps.ScmTypeLocalGit, } - } return metadata.Encode(&state) diff --git a/internal/services/appservice/source_control_token_data_source_test.go b/internal/services/appservice/source_control_token_data_source_test.go index b911413d608f..be5ee767d9e6 100644 --- a/internal/services/appservice/source_control_token_data_source_test.go +++ b/internal/services/appservice/source_control_token_data_source_test.go @@ -15,8 +15,8 @@ import ( type AppServiceGithubTokenDataSource struct{} func TestAccSourceControlGitHubTokenDataSource_basic(t *testing.T) { - token := "" - if token = os.Getenv("ARM_GITHUB_ACCESS_TOKEN"); token == "" { + token := os.Getenv("ARM_GITHUB_ACCESS_TOKEN") + if token == "" { t.Skip("Skipping as `ARM_GITHUB_ACCESS_TOKEN` is not specified") } diff --git a/internal/services/appservice/source_control_token_resource_test.go b/internal/services/appservice/source_control_token_resource_test.go index 175e19856b53..00c6e9facb6b 100644 --- a/internal/services/appservice/source_control_token_resource_test.go +++ b/internal/services/appservice/source_control_token_resource_test.go @@ -23,8 +23,8 @@ import ( type AppServiceGitHubTokenResource struct{} func TestAccSourceControlGitHubToken_basic(t *testing.T) { - token := "" - if token = os.Getenv("ARM_GITHUB_ACCESS_TOKEN"); token == "" { + token := os.Getenv("ARM_GITHUB_ACCESS_TOKEN") + if token == "" { t.Skip("Skipping as `ARM_GITHUB_ACCESS_TOKEN` is not specified") } @@ -44,8 +44,8 @@ func TestAccSourceControlGitHubToken_basic(t *testing.T) { } func TestAccSourceControlGitHubToken_requiresImport(t *testing.T) { - token := "" - if token = os.Getenv("ARM_GITHUB_ACCESS_TOKEN"); token == "" { + token := os.Getenv("ARM_GITHUB_ACCESS_TOKEN") + if token == "" { t.Skip("Skipping as `ARM_GITHUB_ACCESS_TOKEN` is not specified") } diff --git a/internal/services/appservice/static_web_app_data_source.go b/internal/services/appservice/static_web_app_data_source.go index f545252e0cbf..9d92cd7e8574 100644 --- a/internal/services/appservice/static_web_app_data_source.go +++ b/internal/services/appservice/static_web_app_data_source.go @@ -171,10 +171,7 @@ func (s StaticWebAppDataSource) Read() sdk.ResourceFunc { } if secProps := sec.Model.Properties; secProps != nil { - propsMap := pointer.From(secProps) - apiKey := "" - apiKey = propsMap["apiKey"] - state.ApiKey = apiKey + state.ApiKey = pointer.From(secProps)["apiKey"] } } diff --git a/internal/services/appservice/static_web_app_resource.go b/internal/services/appservice/static_web_app_resource.go index e976fd22bc0e..a297b7f9bcf6 100644 --- a/internal/services/appservice/static_web_app_resource.go +++ b/internal/services/appservice/static_web_app_resource.go @@ -293,10 +293,7 @@ func (r StaticWebAppResource) Read() sdk.ResourceFunc { } if secProps := sec.Model.Properties; secProps != nil { - propsMap := pointer.From(secProps) - apiKey := "" - apiKey = propsMap["apiKey"] - state.ApiKey = apiKey + state.ApiKey = pointer.From(secProps)["apiKey"] } } diff --git a/internal/services/appservice/validate/app_service_environment_id_test.go b/internal/services/appservice/validate/app_service_environment_id_test.go index d5027161480e..117e0b423a33 100644 --- a/internal/services/appservice/validate/app_service_environment_id_test.go +++ b/internal/services/appservice/validate/app_service_environment_id_test.go @@ -12,7 +12,6 @@ func TestAppServiceEnvironmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/appservice/validate/app_settings.go b/internal/services/appservice/validate/app_settings.go index 50ebdf38ccdb..5e58ed3780fb 100644 --- a/internal/services/appservice/validate/app_settings.go +++ b/internal/services/appservice/validate/app_settings.go @@ -6,8 +6,6 @@ package validate import ( "fmt" "strings" - - "github.com/hashicorp/terraform-provider-azurerm/internal/features" ) var UnmanagedSettings = []string{ @@ -24,6 +22,7 @@ var UnmanagedSettings = []string{ "spring.datasource.username", "WEBSITE_HEALTHCHECK_MAXPINGFAILURES", } + var UnmanagedSettingsDeprecated = []string{ "DIAGNOSTICS_AZUREBLOBCONTAINERSASURL", "DIAGNOSTICS_AZUREBLOBRETENTIONINDAYS", @@ -39,17 +38,9 @@ var UnmanagedSettingsDeprecated = []string{ func AppSettings(input interface{}, key string) (warnings []string, errors []error) { if appSettings, ok := input.(map[string]interface{}); ok { for k := range appSettings { - if !features.FourPointOhBeta() { - for _, f := range UnmanagedSettingsDeprecated { - if strings.EqualFold(k, f) { - errors = append(errors, fmt.Errorf("cannot set a value for %s in %s", k, key)) - } - } - } else { - for _, f := range UnmanagedSettings { - if strings.EqualFold(k, f) { - errors = append(errors, fmt.Errorf("cannot set a value for %s in %s", k, key)) - } + for _, f := range UnmanagedSettings { + if strings.EqualFold(k, f) { + errors = append(errors, fmt.Errorf("cannot set a value for %s in %s", k, key)) } } } diff --git a/internal/services/appservice/validate/static_web_app.go b/internal/services/appservice/validate/static_web_app.go index 9b1b831f8ef0..ee7bb924de4d 100644 --- a/internal/services/appservice/validate/static_web_app.go +++ b/internal/services/appservice/validate/static_web_app.go @@ -4,6 +4,7 @@ package validate import ( + "errors" "fmt" "regexp" ) @@ -21,35 +22,35 @@ func StaticWebAppName(v interface{}, k string) (warnings []string, errors []erro return warnings, errors } -func StaticWebAppPassword(v interface{}, k string) (warnings []string, errors []error) { +func StaticWebAppPassword(v interface{}, k string) (warnings []string, errs []error) { value, ok := v.(string) if !ok { - errors = append(errors, fmt.Errorf("expected %s to be a string", k)) + errs = append(errs, fmt.Errorf("expected %s to be a string", k)) return } if len(value) < 8 { - errors = append(errors, fmt.Errorf("the password should be at least eight characters long.")) + errs = append(errs, errors.New("the password should be at least eight characters long.")) } if matched := regexp.MustCompile(`[!@#$%^&*(),.?":{}|<>]`).Match([]byte(value)); !matched { - errors = append(errors, fmt.Errorf("the password must contain at least one symbol")) + errs = append(errs, errors.New("the password must contain at least one symbol")) } if matched := regexp.MustCompile(`[a-z]`).Match([]byte(value)); !matched { - errors = append(errors, fmt.Errorf("the password must contain at least one lower case letter")) + errs = append(errs, errors.New("the password must contain at least one lower case letter")) } if matched := regexp.MustCompile(`[A-Z]`).Match([]byte(value)); !matched { - errors = append(errors, fmt.Errorf("the password must contain at least one upper case letter")) + errs = append(errs, errors.New("the password must contain at least one upper case letter")) } if matched := regexp.MustCompile(`[0-9]`).Match([]byte(value)); !matched { - errors = append(errors, fmt.Errorf("the password must contain at least one number")) + errs = append(errs, errors.New("the password must contain at least one number")) } if matched := regexp.MustCompile(`[!@#$%^&*(),.?":{}|<>]`).Match([]byte(value)); !matched { - errors = append(errors, fmt.Errorf("the password must contain at least one symbol")) + errs = append(errs, errors.New("the password must contain at least one symbol")) } return diff --git a/internal/services/appservice/windows_function_app_data_source.go b/internal/services/appservice/windows_function_app_data_source.go index 01c72707e1ff..a3d1da647284 100644 --- a/internal/services/appservice/windows_function_app_data_source.go +++ b/internal/services/appservice/windows_function_app_data_source.go @@ -22,7 +22,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type WindowsFunctionAppDataSource struct{} @@ -310,7 +309,7 @@ func (d WindowsFunctionAppDataSource) Read() sdk.ResourceFunc { return fmt.Errorf("reading Service Plan Id for %s: %+v", id, err) } functionApp.ServicePlanId = servicePlanId.ID() - functionApp.Enabled = utils.NormaliseNilableBool(props.Enabled) + functionApp.Enabled = pointer.From(props.Enabled) functionApp.ClientCertMode = string(pointer.From(props.ClientCertMode)) functionApp.ClientCertExclusionPaths = pointer.From(props.ClientCertExclusionPaths) functionApp.DailyMemoryTimeQuota = pointer.From(props.DailyMemoryTimeQuota) diff --git a/internal/services/appservice/windows_function_app_resource.go b/internal/services/appservice/windows_function_app_resource.go index eafda597c2a3..23d80654ab9f 100644 --- a/internal/services/appservice/windows_function_app_resource.go +++ b/internal/services/appservice/windows_function_app_resource.go @@ -30,7 +30,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type WindowsFunctionAppResource struct{} @@ -757,11 +756,10 @@ func (r WindowsFunctionAppResource) Read() sdk.ResourceFunc { ResourceGroup: id.ResourceGroupName, Location: location.Normalize(model.Location), Tags: pointer.From(model.Tags), - Kind: utils.NormalizeNilableString(model.Kind), + Kind: pointer.From(model.Kind), } if props := model.Properties; props != nil { - state.Enabled = pointer.From(props.Enabled) state.ClientCertMode = string(pointer.From(props.ClientCertMode)) state.ClientCertExclusionPaths = pointer.From(props.ClientCertExclusionPaths) @@ -808,7 +806,6 @@ func (r WindowsFunctionAppResource) Read() sdk.ResourceFunc { if subnetId := pointer.From(props.VirtualNetworkSubnetId); subnetId != "" { state.VirtualNetworkSubnetID = subnetId } - } configResp, err := client.GetConfiguration(ctx, *id) if err != nil { @@ -1285,7 +1282,6 @@ func (r WindowsFunctionAppResource) CustomizeDiff() sdk.ResourceFunc { if helpers.PlanIsConsumption(sku.Name) && newValue.(bool) { return fmt.Errorf("`vnet_image_pull_enabled` cannot be enabled on consumption plans") } - } } } @@ -1395,7 +1391,6 @@ func (m *WindowsFunctionAppModel) unpackWindowsFunctionAppSettings(input *webapp m.SiteConfig[0].ApplicationStack[0].DotNetIsolated = true case "custom": m.SiteConfig[0].ApplicationStack[0].CustomHandler = true - } case "DOCKER_REGISTRY_SERVER_URL": diff --git a/internal/services/appservice/windows_function_app_resource_test.go b/internal/services/appservice/windows_function_app_resource_test.go index 5b9cda581fe3..063516cddd1d 100644 --- a/internal/services/appservice/windows_function_app_resource_test.go +++ b/internal/services/appservice/windows_function_app_resource_test.go @@ -1073,6 +1073,22 @@ func TestAccWindowsFunctionApp_appStackDotNet8Isolated(t *testing.T) { }) } +func TestAccWindowsFunctionApp_appStackDotNet9Isolated(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_windows_function_app", "test") + r := WindowsFunctionAppResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.appStackDotNetIsolated(data, SkuBasicPlan, "v9.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("kind").HasValue("functionapp"), + ), + }, + data.ImportStep("site_credential.0.password"), + }) +} + func TestAccWindowsFunctionApp_appStackNode(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_windows_function_app", "test") r := WindowsFunctionAppResource{} @@ -3442,6 +3458,7 @@ resource "azurerm_windows_function_app" "test" { } `, r.template(data, planSku), data.RandomInteger) } + func (r WindowsFunctionAppResource) withIPRestrictionsDefaultActionDeny(data acceptance.TestData, planSku string) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/appservice/windows_function_app_slot_resource.go b/internal/services/appservice/windows_function_app_slot_resource.go index c470279a8103..3e018738f22d 100644 --- a/internal/services/appservice/windows_function_app_slot_resource.go +++ b/internal/services/appservice/windows_function_app_slot_resource.go @@ -808,7 +808,6 @@ func (r WindowsFunctionAppSlotResource) Read() sdk.ResourceFunc { if subnetId := pointer.From(props.VirtualNetworkSubnetId); subnetId != "" { state.VirtualNetworkSubnetID = subnetId } - } configResp, err := client.GetConfigurationSlot(ctx, *id) diff --git a/internal/services/appservice/windows_function_app_slot_resource_test.go b/internal/services/appservice/windows_function_app_slot_resource_test.go index 39bcc8880b02..a23c47539155 100644 --- a/internal/services/appservice/windows_function_app_slot_resource_test.go +++ b/internal/services/appservice/windows_function_app_slot_resource_test.go @@ -692,6 +692,7 @@ func TestAccWindowsFunctionAppSlot_withIPRestrictionsDefaultAction(t *testing.T) data.ImportStep("site_credential.0.password"), }) } + func TestAccWindowsFunctionAppSlot_withIPRestrictionsDefaultActionUpdate(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_windows_function_app_slot", "test") r := WindowsFunctionAppSlotResource{} @@ -774,6 +775,22 @@ func TestAccWindowsFunctionAppSlot_appStackDotNet6Isolated(t *testing.T) { }) } +func TestAccWindowsFunctionAppSlot_appStackDotNet9Isolated(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_windows_function_app_slot", "test") + r := WindowsFunctionAppSlotResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.appStackDotNetIsolated(data, SkuStandardPlan, "v9.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("kind").HasValue("functionapp"), + ), + }, + data.ImportStep("site_credential.0.password"), + }) +} + func TestAccWindowsFunctionAppSlot_appStackNode(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_windows_function_app_slot", "test") r := WindowsFunctionAppSlotResource{} diff --git a/internal/services/appservice/windows_web_app_data_source.go b/internal/services/appservice/windows_web_app_data_source.go index 7b1bf589be5d..6c125223d767 100644 --- a/internal/services/appservice/windows_web_app_data_source.go +++ b/internal/services/appservice/windows_web_app_data_source.go @@ -415,7 +415,6 @@ func (d WindowsWebAppDataSource) Read() sdk.ResourceFunc { if err = metadata.Encode(&webApp); err != nil { return fmt.Errorf("encoding: %+v", err) } - } metadata.SetID(id) diff --git a/internal/services/appservice/windows_web_app_resource.go b/internal/services/appservice/windows_web_app_resource.go index efecb558a250..05a337bdf4a6 100644 --- a/internal/services/appservice/windows_web_app_resource.go +++ b/internal/services/appservice/windows_web_app_resource.go @@ -730,7 +730,6 @@ func (r WindowsWebAppResource) Read() sdk.ResourceFunc { if err := metadata.Encode(&state); err != nil { return fmt.Errorf("encoding: %+v", err) } - } } diff --git a/internal/services/appservice/windows_web_app_resource_test.go b/internal/services/appservice/windows_web_app_resource_test.go index 64e9e7336a68..90ac95cbcf0e 100644 --- a/internal/services/appservice/windows_web_app_resource_test.go +++ b/internal/services/appservice/windows_web_app_resource_test.go @@ -827,6 +827,21 @@ func TestAccWindowsWebApp_withDotNet80(t *testing.T) { }) } +func TestAccWindowsWebApp_withDotNet90(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_windows_web_app", "test") + r := WindowsWebAppResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.dotNet(data, "v9.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("site_credential.0.password"), + }) +} + func TestAccWindowsWebApp_withPhp(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_windows_web_app", "test") r := WindowsWebAppResource{} diff --git a/internal/services/appservice/windows_web_app_slot_resource.go b/internal/services/appservice/windows_web_app_slot_resource.go index 13bbe909e404..b57e843f93a2 100644 --- a/internal/services/appservice/windows_web_app_slot_resource.go +++ b/internal/services/appservice/windows_web_app_slot_resource.go @@ -283,7 +283,6 @@ func (r WindowsWebAppSlotResource) Create() sdk.ResourceFunc { id := webapps.NewSlotID(appId.SubscriptionId, appId.ResourceGroupName, appId.SiteName, webAppSlot.Name) webApp, err := client.Get(ctx, *appId) - if err != nil { return fmt.Errorf("reading parent Windows Web App for %s: %+v", id, err) } @@ -704,7 +703,6 @@ func (r WindowsWebAppSlotResource) Read() sdk.ResourceFunc { if err := metadata.Encode(&state); err != nil { return fmt.Errorf("encoding: %+v", err) } - } return nil diff --git a/internal/services/appservice/windows_web_app_slot_resource_test.go b/internal/services/appservice/windows_web_app_slot_resource_test.go index 7d1a9c001f9e..62abaf0d6fba 100644 --- a/internal/services/appservice/windows_web_app_slot_resource_test.go +++ b/internal/services/appservice/windows_web_app_slot_resource_test.go @@ -779,6 +779,21 @@ func TestAccWindowsWebAppSlot_withDotNet8(t *testing.T) { }) } +func TestAccWindowsWebAppSlot_withDotNet9(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_windows_web_app_slot", "test") + r := WindowsWebAppSlotResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.dotNet(data, "v9.0"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("site_credential.0.password"), + }) +} + func TestAccWindowsWebAppSlot_withPhp74(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_windows_web_app_slot", "test") r := WindowsWebAppSlotResource{} diff --git a/internal/services/arckubernetes/arc_kubernetes_cluster_extension_resource.go b/internal/services/arckubernetes/arc_kubernetes_cluster_extension_resource.go index 3e8eef9f1da1..05e4544ab10b 100644 --- a/internal/services/arckubernetes/arc_kubernetes_cluster_extension_resource.go +++ b/internal/services/arckubernetes/arc_kubernetes_cluster_extension_resource.go @@ -149,7 +149,6 @@ func (r ArcKubernetesClusterExtensionResource) Arguments() map[string]*pluginsdk ValidateFunc: validation.StringIsNotEmpty, }, } - } func (r ArcKubernetesClusterExtensionResource) Attributes() map[string]*pluginsdk.Schema { diff --git a/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource.go b/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource.go index e6cd5518efe7..3c7328bf9032 100644 --- a/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource.go +++ b/internal/services/arckubernetes/arc_kubernetes_flux_configuration_resource.go @@ -99,9 +99,7 @@ type KustomizationDefinitionModel struct { type ArcKubernetesFluxConfigurationResource struct{} -var ( - _ sdk.ResourceWithUpdate = ArcKubernetesFluxConfigurationResource{} -) +var _ sdk.ResourceWithUpdate = ArcKubernetesFluxConfigurationResource{} func (r ArcKubernetesFluxConfigurationResource) ResourceType() string { return "azurerm_arc_kubernetes_flux_configuration" @@ -887,7 +885,7 @@ func expandBucketDefinitionModel(inputList []BucketDefinitionModel) (*fluxconfig output.Url = &input.Url } - var configSettings = make(map[string]string) + configSettings := make(map[string]string) if input.SecretKey != "" { configSettings["bucketSecretKey"] = input.SecretKey } @@ -938,7 +936,7 @@ func expandGitRepositoryDefinitionModel(inputList []GitRepositoryDefinitionModel output.Url = &input.Url } - var configSettings = make(map[string]string) + configSettings := make(map[string]string) if input.HttpsKey != "" { configSettings["httpsKey"] = input.HttpsKey } diff --git a/internal/services/attestation/attestation_provider_resource.go b/internal/services/attestation/attestation_provider_resource.go index 156c903da62d..9bbfbbd47d4c 100644 --- a/internal/services/attestation/attestation_provider_resource.go +++ b/internal/services/attestation/attestation_provider_resource.go @@ -13,6 +13,7 @@ import ( "strings" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" @@ -21,12 +22,11 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/attestation/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation" + "github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation" ) func resourceAttestationProvider() *pluginsdk.Resource { @@ -125,27 +125,6 @@ func resourceAttestationProvider() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - s["policy"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Deprecated: "This field is no longer used and will be removed in v4.0 of the Azure Provider - use `open_enclave_policy_base64`, `sgx_enclave_policy_base64`, `tpm_policy_base64` and `sev_snp_policy_base64` instead.", - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "environment_type": { - Type: pluginsdk.TypeString, - Optional: true, - }, - - "data": { - Type: pluginsdk.TypeString, - Optional: true, - }, - }, - }, - } - } - return s }(), } @@ -294,31 +273,25 @@ func resourceAttestationProviderRead(d *pluginsdk.ResourceData, meta interface{} if err != nil { return fmt.Errorf("parsing OpenEnclave Policy for %s: %+v", *id, err) } - d.Set("open_enclave_policy_base64", utils.NormalizeNilableString(openEnclavePolicyData)) + d.Set("open_enclave_policy_base64", pointer.From(openEnclavePolicyData)) sgxEnclavePolicyData, err := base64DataFromAttestationJWT(sgxEnclavePolicy.Token) if err != nil { return fmt.Errorf("parsing SgxEnclave Policy for %s: %+v", *id, err) } - d.Set("sgx_enclave_policy_base64", utils.NormalizeNilableString(sgxEnclavePolicyData)) + d.Set("sgx_enclave_policy_base64", pointer.From(sgxEnclavePolicyData)) tpmPolicyData, err := base64DataFromAttestationJWT(tpmPolicy.Token) if err != nil { return fmt.Errorf("parsing Tpm Policy for %s: %+v", *id, err) } - d.Set("tpm_policy_base64", utils.NormalizeNilableString(tpmPolicyData)) + d.Set("tpm_policy_base64", pointer.From(tpmPolicyData)) sevSnpPolicyData, err := base64DataFromAttestationJWT(sevSnpPolicy.Token) if err != nil { return fmt.Errorf("parsing SEV-SNP policy for %s: %+v", *id, err) } - d.Set("sev_snp_policy_base64", utils.NormalizeNilableString(sevSnpPolicyData)) - - if !features.FourPointOhBeta() { - if err := d.Set("policy", []interface{}{}); err != nil { - return fmt.Errorf("setting `policy`: %+v", err) - } - } + d.Set("sev_snp_policy_base64", pointer.From(sevSnpPolicyData)) return nil } diff --git a/internal/services/attestation/client/client.go b/internal/services/attestation/client/client.go index 60065b4f0bda..84e1ecddfd72 100644 --- a/internal/services/attestation/client/client.go +++ b/internal/services/attestation/client/client.go @@ -13,7 +13,7 @@ import ( authWrapper "github.com/hashicorp/go-azure-sdk/sdk/auth/autorest" "github.com/hashicorp/go-azure-sdk/sdk/environments" "github.com/hashicorp/terraform-provider-azurerm/internal/common" - "github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation" + "github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation" ) type Client struct { diff --git a/internal/services/attestation/validate/stored_attestation_policy_base64.go b/internal/services/attestation/validate/stored_attestation_policy_base64.go index dfdd42791d6e..018c253b1067 100644 --- a/internal/services/attestation/validate/stored_attestation_policy_base64.go +++ b/internal/services/attestation/validate/stored_attestation_policy_base64.go @@ -6,38 +6,39 @@ package validate import ( "encoding/base64" "encoding/json" + "errors" "fmt" "strings" - "github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation" + "github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation" ) -func ContainsABase64UriEncodedJWTOfAStoredAttestationPolicy(value interface{}, key string) (warnings []string, errors []error) { +func ContainsABase64UriEncodedJWTOfAStoredAttestationPolicy(value interface{}, key string) (warnings []string, errs []error) { v, ok := value.(string) if !ok { - errors = append(errors, fmt.Errorf("%q cannot be an empty string", key)) + errs = append(errs, fmt.Errorf("%q cannot be an empty string", key)) return } split := strings.Split(v, ".") if len(split) != 3 { - errors = append(errors, fmt.Errorf("expected %q to be a JWT with 3 segments but got %d segments", key, len(split))) + errs = append(errs, fmt.Errorf("expected %q to be a JWT with 3 segments but got %d segments", key, len(split))) return } // decode the JWT into a StoredAttestationPolicy object decodedJwtSegment, err := base64.RawURLEncoding.DecodeString(split[1]) if err != nil { - errors = append(errors, fmt.Errorf("base64-decoding the first JWT Segment %q: %+v", split[1], err)) + errs = append(errs, fmt.Errorf("base64-decoding the first JWT Segment %q: %+v", split[1], err)) return } var result attestation.StoredAttestationPolicy if err := json.Unmarshal(decodedJwtSegment, &result); err != nil { - errors = append(errors, fmt.Errorf("unmarshaling into StoredAttestationPolicy - please check your policy against the documentation at https://learn.microsoft.com/azure/attestation/author-sign-policy: %+v", err)) + errs = append(errs, fmt.Errorf("unmarshaling into StoredAttestationPolicy - please check your policy against the documentation at https://learn.microsoft.com/azure/attestation/author-sign-policy: %+v", err)) return } if result.AttestationPolicy == nil { - errors = append(errors, fmt.Errorf("expected a key for AttestationPolicy but didn't get one - see https://learn.microsoft.com/azure/attestation/author-sign-policy for more information")) + errs = append(errs, errors.New("expected a key for AttestationPolicy but didn't get one - see https://learn.microsoft.com/azure/attestation/author-sign-policy for more information")) return } diff --git a/internal/services/authorization/client/client.go b/internal/services/authorization/client/client.go index 6fb9cecbb716..34e695bfeac4 100644 --- a/internal/services/authorization/client/client.go +++ b/internal/services/authorization/client/client.go @@ -6,7 +6,7 @@ package client import ( "fmt" - "github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2020-04-01-preview/authorization" // nolint: staticcheck // nolint: staticcheck + "github.com/Azure/azure-sdk-for-go/services/preview/authorization/mgmt/2020-04-01-preview/authorization" // nolint: staticcheck //nolint: staticcheck // To swap sdk for `azurerm_role_definition` without changing API version "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances" diff --git a/internal/services/authorization/client_config_data_source_test.go b/internal/services/authorization/client_config_data_source_test.go index 8f7cef870d56..de461a9f6a01 100644 --- a/internal/services/authorization/client_config_data_source_test.go +++ b/internal/services/authorization/client_config_data_source_test.go @@ -36,6 +36,10 @@ func TestAccClientConfigDataSource_basic(t *testing.T) { func (d ClientConfigDataSource) basic() string { return ` +provider "azurerm" { + features {} +} + data "azurerm_client_config" "current" { } ` diff --git a/internal/services/authorization/migration/role_definition_migration.go b/internal/services/authorization/migration/role_definition_migration.go index 36e0a656be65..58cdc60c38c3 100644 --- a/internal/services/authorization/migration/role_definition_migration.go +++ b/internal/services/authorization/migration/role_definition_migration.go @@ -40,7 +40,7 @@ func (RoleDefinitionV0ToV1) Schema() map[string]*pluginsdk.Schema { Optional: true, }, - //lintignore:XS003 + // lintignore:XS003 "permissions": { Type: pluginsdk.TypeList, Required: true, diff --git a/internal/services/authorization/models.go b/internal/services/authorization/models.go deleted file mode 100644 index 9370f23fce88..000000000000 --- a/internal/services/authorization/models.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package authorization - -import "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies" - -var _ rolemanagementpolicies.RoleManagementPolicyRule = RoleManagementPolicyRule{} - -// RoleManagementPolicyRule is a temporary workaround because the child models for rolemanagementpolicies.RoleManagementPolicyRule -// do not yet exist, due to issues resolving these child types in the Pandora importer. -// TODO: replace this type with the correct child models from the SDK package, once they are implemented -type RoleManagementPolicyRule struct { - Id *string `json:"id,omitempty"` - RuleType rolemanagementpolicies.RoleManagementPolicyRuleType `json:"ruleType"` - - ClaimValue *string `json:"claimValue,omitempty"` - EnabledRules *[]string `json:"enabledRules,omitempty"` - IsDefaultRecipientsEnabled *bool `json:"isDefaultRecipientsEnabled"` - IsEnabled *bool `json:"isEnabled,omitempty"` - IsExpirationRequired *bool `json:"isExpirationRequired,omitempty"` - MaximumDuration *string `json:"maximumDuration,omitempty"` - NotificationLevel *string `json:"notificationLevel"` - NotificationRecipients *[]string `json:"notificationRecipients"` - NotificationType *string `json:"notificationType"` - RecipientType *string `json:"recipientType"` - Setting map[string]interface{} `json:"setting,omitempty"` - Target map[string]interface{} `json:"target,omitempty"` -} - -func (r RoleManagementPolicyRule) RoleManagementPolicyRule() rolemanagementpolicies.BaseRoleManagementPolicyRuleImpl { - return rolemanagementpolicies.BaseRoleManagementPolicyRuleImpl{ - Id: r.Id, - RuleType: r.RuleType, - } -} diff --git a/internal/services/authorization/parse/id_scopedroleassignment.go b/internal/services/authorization/parse/id_scopedroleassignment.go index 4e88161321cc..527bd9500f9f 100644 --- a/internal/services/authorization/parse/id_scopedroleassignment.go +++ b/internal/services/authorization/parse/id_scopedroleassignment.go @@ -56,7 +56,7 @@ func (id ScopedRoleAssignmentId) String() string { } if id.TenantId != "" { - components = append(components, fmt.Sprintf("Tenant ID: %s", id.TenantId)) + components = append(components, "Tenant ID: "+id.TenantId) } return fmt.Sprintf("Scoped Role Assignment (%s)", strings.Join(components, "\n")) diff --git a/internal/services/authorization/parse/id_scopedroleassignment_test.go b/internal/services/authorization/parse/id_scopedroleassignment_test.go index 1c475153fcd0..f1de4189c634 100644 --- a/internal/services/authorization/parse/id_scopedroleassignment_test.go +++ b/internal/services/authorization/parse/id_scopedroleassignment_test.go @@ -84,7 +84,6 @@ func TestValidateScopedRoleAssignmentID(t *testing.T) { Input string Valid bool }{ - { Input: "", Valid: false, diff --git a/internal/services/authorization/parse/role_assignment.go b/internal/services/authorization/parse/role_assignment.go index fe964ca072bd..33ded67aabe1 100644 --- a/internal/services/authorization/parse/role_assignment.go +++ b/internal/services/authorization/parse/role_assignment.go @@ -4,6 +4,7 @@ package parse import ( + "errors" "fmt" "strings" @@ -27,30 +28,30 @@ type RoleAssignmentId struct { func NewRoleAssignmentID(subscriptionId, resourceGroup, resourceProvider, resourceScope, managementGroup, name, tenantId, subscriptionAlias string, isSubLevel bool, isSubAliasLevel bool) (*RoleAssignmentId, error) { if subscriptionId == "" && resourceGroup == "" && managementGroup == "" && !isSubLevel && !isSubAliasLevel { - return nil, fmt.Errorf("one of subscriptionId, resourceGroup, managementGroup, isSubscriptionLevel or isSubscriptionAliasLevel must be provided") + return nil, errors.New("one of subscriptionId, resourceGroup, managementGroup, isSubscriptionLevel or isSubscriptionAliasLevel must be provided") } if managementGroup != "" { if subscriptionId != "" || resourceGroup != "" || isSubLevel { - return nil, fmt.Errorf("cannot provide subscriptionId, resourceGroup or isSubscriptionLevel when managementGroup is provided") + return nil, errors.New("cannot provide subscriptionId, resourceGroup or isSubscriptionLevel when managementGroup is provided") } } if isSubLevel { if subscriptionId != "" || resourceGroup != "" || managementGroup != "" { - return nil, fmt.Errorf("cannot provide subscriptionId, resourceGroup or managementGroup when isSubscriptionLevel is provided") + return nil, errors.New("cannot provide subscriptionId, resourceGroup or managementGroup when isSubscriptionLevel is provided") } } if isSubAliasLevel { if subscriptionId != "" || resourceGroup != "" || managementGroup != "" { - return nil, fmt.Errorf("cannot provide subscriptionId, resourceGroup or managementGroup when isSubscriptionAliasLevel is provided") + return nil, errors.New("cannot provide subscriptionId, resourceGroup or managementGroup when isSubscriptionAliasLevel is provided") } } if resourceGroup != "" { if subscriptionId == "" { - return nil, fmt.Errorf("subscriptionId must not be empty when resourceGroup is provided") + return nil, errors.New("subscriptionId must not be empty when resourceGroup is provided") } } @@ -185,7 +186,7 @@ func RoleAssignmentID(input string) (*RoleAssignmentId, error) { return nil, fmt.Errorf("could not parse Role Assignment ID %q for Management Group", input) } if idParts[1] == "" { - return nil, fmt.Errorf("ID was missing a value for the roleAssignments element") + return nil, errors.New("ID was missing a value for the roleAssignments element") } roleAssignmentId.Name = idParts[1] roleAssignmentId.ManagementGroup = strings.TrimPrefix(idParts[0], "/providers/Microsoft.Management/managementGroups/") @@ -195,14 +196,14 @@ func RoleAssignmentID(input string) (*RoleAssignmentId, error) { return nil, fmt.Errorf("could not parse Role Assignment ID %q for Resource Provider", input) } if idParts[1] == "" { - return nil, fmt.Errorf("ID was missing a value for the roleAssignments element") + return nil, errors.New("ID was missing a value for the roleAssignments element") } roleAssignmentId.Name = idParts[1] roleAssignmentId.ResourceProvider = strings.TrimPrefix(idParts[0], "/providers/") case strings.HasPrefix(input, "/providers/Microsoft.Authorization/roleAssignments"): name := strings.TrimPrefix(input, "/providers/Microsoft.Authorization/roleAssignments/") if name == "" { - return nil, fmt.Errorf("ID was missing a value for the roleAssignments element") + return nil, errors.New("ID was missing a value for the roleAssignments element") } roleAssignmentId.Name = name default: diff --git a/internal/services/authorization/parse/role_assignment_test.go b/internal/services/authorization/parse/role_assignment_test.go index 85897ac11835..874265cd49c7 100644 --- a/internal/services/authorization/parse/role_assignment_test.go +++ b/internal/services/authorization/parse/role_assignment_test.go @@ -332,6 +332,5 @@ func TestRoleAssignmentID(t *testing.T) { if actual.SubscriptionAlias != v.Expected.SubscriptionAlias { t.Fatalf("Expected %q but got %q for Role Assignment SubscriptionAlias", v.Expected.SubscriptionAlias, actual.SubscriptionAlias) } - } } diff --git a/internal/services/authorization/pim_active_role_assignment_resource_test.go b/internal/services/authorization/pim_active_role_assignment_resource_test.go index 8e95b6ef00bf..c044814d3630 100644 --- a/internal/services/authorization/pim_active_role_assignment_resource_test.go +++ b/internal/services/authorization/pim_active_role_assignment_resource_test.go @@ -174,6 +174,10 @@ resource "azuread_group" "test" { func (r PimActiveRoleAssignmentResource) noExpiration(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azurerm_subscription" "primary" {} data "azurerm_client_config" "test" {} @@ -201,6 +205,10 @@ resource "azurerm_pim_active_role_assignment" "test" { func (PimActiveRoleAssignmentResource) expirationByDurationHours(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azurerm_subscription" "primary" {} data "azurerm_client_config" "test" {} @@ -240,6 +248,10 @@ resource "azurerm_pim_active_role_assignment" "test" { func (PimActiveRoleAssignmentResource) expirationByDurationDays(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azurerm_subscription" "primary" {} data "azurerm_client_config" "test" {} @@ -285,6 +297,10 @@ resource "azurerm_pim_active_role_assignment" "test" { func (PimActiveRoleAssignmentResource) importSetup(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azurerm_subscription" "primary" {} data "azurerm_client_config" "test" {} @@ -339,6 +355,10 @@ resource "azurerm_pim_active_role_assignment" "import" { func (PimActiveRoleAssignmentResource) expirationByDate(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azurerm_subscription" "primary" {} data "azurerm_client_config" "test" {} @@ -384,6 +404,10 @@ resource "azurerm_pim_active_role_assignment" "test" { func (PimActiveRoleAssignmentResource) pending(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azurerm_subscription" "primary" {} data "azurerm_client_config" "test" {} diff --git a/internal/services/authorization/pim_eligible_role_assignment_resource_test.go b/internal/services/authorization/pim_eligible_role_assignment_resource_test.go index c1bff96d64fa..4913a505d77a 100644 --- a/internal/services/authorization/pim_eligible_role_assignment_resource_test.go +++ b/internal/services/authorization/pim_eligible_role_assignment_resource_test.go @@ -155,6 +155,10 @@ func (r PimEligibleRoleAssignmentResource) Exists(ctx context.Context, client *c func (PimEligibleRoleAssignmentResource) template(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azuread_domains" "test" { only_initial = true } diff --git a/internal/services/authorization/role_assignment_marketplace_resource_test.go b/internal/services/authorization/role_assignment_marketplace_resource_test.go index 41f7a8075b8d..7ca084d855e6 100644 --- a/internal/services/authorization/role_assignment_marketplace_resource_test.go +++ b/internal/services/authorization/role_assignment_marketplace_resource_test.go @@ -205,6 +205,10 @@ data "azurerm_role_definition" "test" { name = "%s" } +provider "azurerm" { + features {} +} + resource "azurerm_marketplace_role_assignment" "test" { role_definition_id = "${data.azurerm_role_definition.test.id}" principal_id = "${data.azurerm_client_config.test.object_id}" @@ -222,6 +226,10 @@ resource "azurerm_marketplace_role_assignment" "test" { func (RoleAssignmentMarketplaceResource) roleNameConfig(id string, roleName string) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azurerm_client_config" "test" { } @@ -259,6 +267,10 @@ resource "azurerm_marketplace_role_assignment" "import" { func (RoleAssignmentMarketplaceResource) builtinConfig(id string, roleName string) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + data "azurerm_client_config" "test" { } @@ -292,6 +304,10 @@ resource "azuread_service_principal" "test" { application_id = azuread_application.test.application_id } +provider "azurerm" { + features {} +} + resource "azurerm_marketplace_role_assignment" "test" { name = "%s" role_definition_name = "%s" @@ -318,6 +334,10 @@ resource "azuread_service_principal" "test" { application_id = azuread_application.test.application_id } +provider "azurerm" { + features {} +} + resource "azurerm_marketplace_role_assignment" "test" { name = "%s" role_definition_name = "%s" @@ -342,6 +362,10 @@ resource "azuread_group" "test" { security_enabled = true } +provider "azurerm" { + features {} +} + resource "azurerm_marketplace_role_assignment" "test" { name = "%s" role_definition_name = "%s" diff --git a/internal/services/authorization/role_assignment_resource.go b/internal/services/authorization/role_assignment_resource.go index f80586267fe1..50f7b906096b 100644 --- a/internal/services/authorization/role_assignment_resource.go +++ b/internal/services/authorization/role_assignment_resource.go @@ -138,15 +138,14 @@ func resourceArmRoleAssignment() *pluginsdk.Resource { Type: pluginsdk.TypeString, Optional: true, ForceNew: true, - RequiredWith: []string{"condition_version"}, ValidateFunc: validation.StringIsNotEmpty, }, "condition_version": { - Type: pluginsdk.TypeString, - Optional: true, - ForceNew: true, - RequiredWith: []string{"condition"}, + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + Computed: true, ValidateFunc: validation.StringInSlice([]string{ "1.0", "2.0", @@ -238,11 +237,15 @@ func resourceArmRoleAssignmentCreate(d *pluginsdk.ResourceData, meta interface{} condition := d.Get("condition").(string) conditionVersion := d.Get("condition_version").(string) - if condition != "" && conditionVersion != "" { + switch { + case condition != "" && conditionVersion != "": properties.RoleAssignmentProperties.Condition = utils.String(condition) properties.RoleAssignmentProperties.ConditionVersion = utils.String(conditionVersion) - } else if condition != "" || conditionVersion != "" { - return fmt.Errorf("`condition` and `conditionVersion` should be both set or unset") + case condition != "" && conditionVersion == "": + properties.RoleAssignmentProperties.Condition = utils.String(condition) + properties.RoleAssignmentProperties.ConditionVersion = utils.String("2.0") + case condition == "" && conditionVersion != "": + return fmt.Errorf("`conditionVersion` should not be set without `condition`") } skipPrincipalCheck := d.Get("skip_service_principal_aad_check").(bool) @@ -327,7 +330,6 @@ func resourceArmRoleAssignmentRead(d *pluginsdk.ResourceData, meta interface{}) if roleResp.Model != nil && roleResp.Model.Properties != nil { d.Set("role_definition_name", pointer.From(roleResp.Model.Properties.RoleName)) } - } } diff --git a/internal/services/authorization/role_assignment_resource_test.go b/internal/services/authorization/role_assignment_resource_test.go index fe48ab290a1e..0b45d77ba286 100644 --- a/internal/services/authorization/role_assignment_resource_test.go +++ b/internal/services/authorization/role_assignment_resource_test.go @@ -214,6 +214,23 @@ func TestAccRoleAssignment_condition(t *testing.T) { }) } +func TestAccRoleAssignment_implicitCondition(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_role_assignment", "test") + id := uuid.New().String() + + r := RoleAssignmentResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.implicitConditionVersion(id), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("skip_service_principal_aad_check"), + }) +} + func TestAccRoleAssignment_resourceScoped(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_role_assignment", "test") id := uuid.New().String() @@ -281,6 +298,10 @@ func (r RoleAssignmentResource) Exists(ctx context.Context, client *clients.Clie func (RoleAssignmentResource) emptyNameConfig() string { return ` +provider "azurerm" { + features {} +} + data "azurerm_subscription" "primary" {} data "azurerm_client_config" "test" {} @@ -576,8 +597,32 @@ resource "azurerm_role_assignment" "test" { role_definition_name = "Monitoring Reader" principal_id = data.azurerm_client_config.test.object_id description = "Monitoring Reader except " - condition = "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" - condition_version = "1.0" + condition = "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:name] StringEqualsIgnoreCase 'foo_storage_container'" + condition_version = "2.0" +} +`, groupId) +} + +func (RoleAssignmentResource) implicitConditionVersion(groupId string) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +data "azurerm_subscription" "primary" { +} + +data "azurerm_client_config" "test" { +} + +resource "azurerm_role_assignment" "test" { + + name = "%s" + scope = data.azurerm_subscription.primary.id + role_definition_name = "Monitoring Reader" + principal_id = data.azurerm_client_config.test.object_id + description = "Monitoring Reader except " + condition = "@Resource[Microsoft.Storage/storageAccounts/blobServices/containers:name] StringEqualsIgnoreCase 'foo_storage_container'" } `, groupId) } diff --git a/internal/services/authorization/role_definition_resource.go b/internal/services/authorization/role_definition_resource.go index b264695914b4..a0d0b5e6adbb 100644 --- a/internal/services/authorization/role_definition_resource.go +++ b/internal/services/authorization/role_definition_resource.go @@ -348,7 +348,7 @@ func (r RoleDefinitionResource) Update() sdk.ResourceFunc { // "Updating" a role definition actually creates a new one and these get consolidated a few seconds later // where the "create date" and "update date" match for the newly created record // but eventually switch to being the old create date and the new update date - // ergo we can can for the old create date and the new updated date + // ergo we can for the old create date and the new updated date log.Printf("[DEBUG] Waiting for %s to settle down..", stateId) deadline, ok := ctx.Deadline() if !ok { diff --git a/internal/services/authorization/role_management_policy.go b/internal/services/authorization/role_management_policy.go index b0c05e60d043..75d80995e4d9 100644 --- a/internal/services/authorization/role_management_policy.go +++ b/internal/services/authorization/role_management_policy.go @@ -32,7 +32,12 @@ func FindRoleManagementPolicyId(ctx context.Context, client *rolemanagementpolic if resp.Model == nil { return nil, fmt.Errorf("listing Role Management Policies for %s and Role Definition %q: result was nil", scope, roleDefinitionId) } - if len(*resp.Model) != 1 { + + if len(*resp.Model) == 0 { + return nil, fmt.Errorf("no Role Management Policy returned for %s and Role Definition %q", scope, roleDefinitionId) + } + + if len(*resp.Model) > 1 { return nil, fmt.Errorf("more than one Role Management Policy returned for %s and Role Definition %q", scope, roleDefinitionId) } @@ -58,335 +63,192 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } // Take the slice of rules and convert it to a map with the ID as the key - existingRules := make(map[string]rolemanagementpolicies.RawRoleManagementPolicyRuleImpl) + existingRules := make(map[string]rolemanagementpolicies.RoleManagementPolicyRule) if props := rolePolicy.Properties; props != nil { if props.Rules != nil { for _, r := range *rolePolicy.Properties.Rules { // TODO - rule := r.(rolemanagementpolicies.RawRoleManagementPolicyRuleImpl) - existingRules[rule.Values["id"].(string)] = rule + if id := pointer.From(r.RoleManagementPolicyRule().Id); id != "" { + existingRules[id] = r + } } } } updatedRules := make([]rolemanagementpolicies.RoleManagementPolicyRule, 0) if metadata.ResourceData.HasChange("eligible_assignment_rules") { - if expirationAdminEligibility, ok := existingRules["Expiration_Admin_Eligibility"]; ok && expirationAdminEligibility.Values != nil { - var expirationRequired bool - if expirationRequiredRaw, ok := expirationAdminEligibility.Values["isExpirationRequired"]; ok { - expirationRequired = expirationRequiredRaw.(bool) - } - - var maximumDuration string - if maximumDurationRaw, ok := expirationAdminEligibility.Values["maximumDuration"]; ok { - maximumDuration = maximumDurationRaw.(string) - } - - if len(model.EligibleAssignmentRules) == 1 { - if expirationRequired != model.EligibleAssignmentRules[0].ExpirationRequired { - expirationRequired = model.EligibleAssignmentRules[0].ExpirationRequired - } - if maximumDuration != model.EligibleAssignmentRules[0].ExpireAfter && - model.EligibleAssignmentRules[0].ExpireAfter != "" { - maximumDuration = model.EligibleAssignmentRules[0].ExpireAfter + if expirationAdminEligibilityBase, ok := existingRules["Expiration_Admin_Eligibility"]; ok { + if expirationAdminEligibility, ok := expirationAdminEligibilityBase.(rolemanagementpolicies.RoleManagementPolicyExpirationRule); ok { + expirationRequired := pointer.From(expirationAdminEligibility.IsExpirationRequired) + maximumDuration := pointer.From(expirationAdminEligibility.MaximumDuration) + + if len(model.EligibleAssignmentRules) == 1 { + if expirationRequired != model.EligibleAssignmentRules[0].ExpirationRequired { + expirationAdminEligibility.IsExpirationRequired = pointer.To(model.EligibleAssignmentRules[0].ExpirationRequired) + } + if maximumDuration != model.EligibleAssignmentRules[0].ExpireAfter && + model.EligibleAssignmentRules[0].ExpireAfter != "" { + expirationAdminEligibility.MaximumDuration = pointer.To(model.EligibleAssignmentRules[0].ExpireAfter) + } } - } - var id, ruleType string - var target map[string]interface{} - if idRaw, ok := expirationAdminEligibility.Values["id"]; ok { - id = idRaw.(string) - } - if ruleTypeRaw, ok := expirationAdminEligibility.Values["ruleType"]; ok { - ruleType = ruleTypeRaw.(string) - } - if targetRaw, ok := expirationAdminEligibility.Values["target"]; ok { - target = targetRaw.(map[string]interface{}) + updatedRules = append(updatedRules, expirationAdminEligibility) } - - updatedRules = append(updatedRules, RoleManagementPolicyRule{ - Id: pointer.To(id), - RuleType: rolemanagementpolicies.RoleManagementPolicyRuleType(ruleType), - Target: target, - IsExpirationRequired: pointer.To(expirationRequired), - MaximumDuration: pointer.To(maximumDuration), - }) } } if metadata.ResourceData.HasChange("active_assignment_rules.0.require_multifactor_authentication") || metadata.ResourceData.HasChange("active_assignment_rules.0.require_justification") || metadata.ResourceData.HasChange("active_assignment_rules.0.require_ticket_info") { - if enablementAdminEligibility, ok := existingRules["Enablement_Admin_Assignment"]; ok && enablementAdminEligibility.Values != nil { - enabledRules := make([]string, 0) - - if len(model.ActiveAssignmentRules) == 1 { - if model.ActiveAssignmentRules[0].RequireMultiFactorAuth { - enabledRules = append(enabledRules, "MultiFactorAuthentication") - } - if model.ActiveAssignmentRules[0].RequireJustification { - enabledRules = append(enabledRules, "Justification") - } - if model.ActiveAssignmentRules[0].RequireTicketInfo { - enabledRules = append(enabledRules, "Ticketing") + if enablementAdminEligibilityBase, ok := existingRules["Enablement_Admin_Assignment"]; ok { + if enablementAdminEligibility, ok := enablementAdminEligibilityBase.(rolemanagementpolicies.RoleManagementPolicyEnablementRule); ok { + enabledRules := make([]rolemanagementpolicies.EnablementRules, 0) + if len(model.ActiveAssignmentRules) == 1 { + if model.ActiveAssignmentRules[0].RequireMultiFactorAuth { + enabledRules = append(enabledRules, rolemanagementpolicies.EnablementRulesMultiFactorAuthentication) + } + if model.ActiveAssignmentRules[0].RequireJustification { + enabledRules = append(enabledRules, rolemanagementpolicies.EnablementRulesJustification) + } + if model.ActiveAssignmentRules[0].RequireTicketInfo { + enabledRules = append(enabledRules, rolemanagementpolicies.EnablementRulesTicketing) + } } + enablementAdminEligibility.EnabledRules = pointer.To(enabledRules) + updatedRules = append(updatedRules, enablementAdminEligibility) } - - var id, ruleType string - var target map[string]interface{} - if idRaw, ok := enablementAdminEligibility.Values["id"]; ok { - id = idRaw.(string) - } - if ruleTypeRaw, ok := enablementAdminEligibility.Values["ruleType"]; ok { - ruleType = ruleTypeRaw.(string) - } - if targetRaw, ok := enablementAdminEligibility.Values["target"]; ok { - target = targetRaw.(map[string]interface{}) - } - - updatedRules = append(updatedRules, RoleManagementPolicyRule{ - Id: pointer.To(id), - RuleType: rolemanagementpolicies.RoleManagementPolicyRuleType(ruleType), - Target: target, - EnabledRules: pointer.To(enabledRules), - }) } } if metadata.ResourceData.HasChange("active_assignment_rules.0.expiration_required") || metadata.ResourceData.HasChange("active_assignment_rules.0.expire_after") { - if expirationAdminAssignment, ok := existingRules["Expiration_Admin_Assignment"]; ok && expirationAdminAssignment.Values != nil { - var expirationRequired bool - if expirationRequiredRaw, ok := expirationAdminAssignment.Values["isExpirationRequired"]; ok { - expirationRequired = expirationRequiredRaw.(bool) - } - - var maximumDuration string - if maximumDurationRaw, ok := expirationAdminAssignment.Values["maximumDuration"]; ok { - maximumDuration = maximumDurationRaw.(string) - } - - if len(model.ActiveAssignmentRules) == 1 { - if expirationRequired != model.ActiveAssignmentRules[0].ExpirationRequired { - expirationRequired = model.ActiveAssignmentRules[0].ExpirationRequired - } - if maximumDuration != model.ActiveAssignmentRules[0].ExpireAfter && - model.ActiveAssignmentRules[0].ExpireAfter != "" { - maximumDuration = model.ActiveAssignmentRules[0].ExpireAfter + if expirationAdminAssignmentBase, ok := existingRules["Expiration_Admin_Assignment"]; ok { + if expirationAdminAssignment, ok := expirationAdminAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyExpirationRule); ok { + expirationRequired := pointer.From(expirationAdminAssignment.IsExpirationRequired) + maximumDuration := pointer.From(expirationAdminAssignment.MaximumDuration) + + if len(model.ActiveAssignmentRules) == 1 { + if expirationRequired != model.ActiveAssignmentRules[0].ExpirationRequired { + expirationAdminAssignment.IsExpirationRequired = pointer.To(model.ActiveAssignmentRules[0].ExpirationRequired) + } + if maximumDuration != model.ActiveAssignmentRules[0].ExpireAfter && + model.ActiveAssignmentRules[0].ExpireAfter != "" { + expirationAdminAssignment.MaximumDuration = pointer.To(model.ActiveAssignmentRules[0].ExpireAfter) + } } - } - var id, ruleType string - var target map[string]interface{} - if idRaw, ok := expirationAdminAssignment.Values["id"]; ok { - id = idRaw.(string) - } - if ruleTypeRaw, ok := expirationAdminAssignment.Values["ruleType"]; ok { - ruleType = ruleTypeRaw.(string) + updatedRules = append(updatedRules, expirationAdminAssignment) } - if targetRaw, ok := expirationAdminAssignment.Values["target"]; ok { - target = targetRaw.(map[string]interface{}) - } - - updatedRules = append(updatedRules, RoleManagementPolicyRule{ - Id: pointer.To(id), - RuleType: rolemanagementpolicies.RoleManagementPolicyRuleType(ruleType), - Target: target, - IsExpirationRequired: pointer.To(expirationRequired), - MaximumDuration: pointer.To(maximumDuration), - }) } } if metadata.ResourceData.HasChange("activation_rules.0.maximum_duration") { - if expirationEndUserAssignment, ok := existingRules["Expiration_EndUser_Assignment"]; ok && expirationEndUserAssignment.Values != nil { - var id, ruleType, maximumDuration string - var target map[string]interface{} - if idRaw, ok := expirationEndUserAssignment.Values["id"]; ok { - id = idRaw.(string) - } - if ruleTypeRaw, ok := expirationEndUserAssignment.Values["ruleType"]; ok { - ruleType = ruleTypeRaw.(string) - } - if targetRaw, ok := expirationEndUserAssignment.Values["target"]; ok { - target = targetRaw.(map[string]interface{}) - } - if len(model.ActivationRules) == 1 { - maximumDuration = model.ActivationRules[0].MaximumDuration - } + if expirationEndUserAssignmentBase, ok := existingRules["Expiration_EndUser_Assignment"]; ok { + if expirationEndUserAssignment, ok := expirationEndUserAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyExpirationRule); ok { + if len(model.ActivationRules) == 1 { + expirationEndUserAssignment.MaximumDuration = pointer.To(model.ActivationRules[0].MaximumDuration) + } - updatedRules = append(updatedRules, RoleManagementPolicyRule{ - Id: pointer.To(id), - RuleType: rolemanagementpolicies.RoleManagementPolicyRuleType(ruleType), - Target: target, - MaximumDuration: pointer.To(maximumDuration), - }) + updatedRules = append(updatedRules, expirationEndUserAssignment) + } } } if metadata.ResourceData.HasChange("activation_rules.0.require_approval") || metadata.ResourceData.HasChange("activation_rules.0.approval_stage") { - if approvalEndUserAssignment, ok := existingRules["Approval_EndUser_Assignment"]; ok && approvalEndUserAssignment.Values != nil { - if len(model.ActivationRules) == 1 { - if model.ActivationRules[0].RequireApproval && len(model.ActivationRules[0].ApprovalStages) != 1 { - return nil, fmt.Errorf("require_approval is true, but no approval_stages are provided") - } - } - - var approvalReqd bool - var approvalStages []map[string]interface{} - - if settingsRaw, ok := approvalEndUserAssignment.Values["setting"]; ok { - settings := settingsRaw.(map[string]interface{}) - - if approvalReqdRaw, ok := settings["isApprovalRequired"]; ok { - approvalReqd = approvalReqdRaw.(bool) - } - + if approvalEndUserAssignmentBase, ok := existingRules["Approval_EndUser_Assignment"]; ok { + if approvalEndUserAssignment, ok := approvalEndUserAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyApprovalRule); ok { if len(model.ActivationRules) == 1 { - if approvalReqd != model.ActivationRules[0].RequireApproval { - approvalReqd = model.ActivationRules[0].RequireApproval + if model.ActivationRules[0].RequireApproval && len(model.ActivationRules[0].ApprovalStages) != 1 { + return nil, fmt.Errorf("require_approval is true, but no approval_stages are provided") } } - if metadata.ResourceData.HasChange("activation_rules.0.approval_stage") { + if settings := approvalEndUserAssignment.Setting; settings != nil { if len(model.ActivationRules) == 1 { - approvalStages = make([]map[string]interface{}, len(model.ActivationRules[0].ApprovalStages)) - for i, stage := range model.ActivationRules[0].ApprovalStages { - primaryApprovers := make([]map[string]interface{}, len(stage.PrimaryApprovers)) - for ia, approver := range stage.PrimaryApprovers { - primaryApprovers[ia] = map[string]interface{}{ - "id": approver.ID, - "userType": approver.Type, - } - } - - approvalStages[i] = map[string]interface{}{ - "PrimaryApprovers": primaryApprovers, - } + if pointer.From(settings.IsApprovalRequired) != model.ActivationRules[0].RequireApproval { + settings.IsApprovalRequired = pointer.To(model.ActivationRules[0].RequireApproval) } } - } else { - if approvalStagesRaw, ok := settings["approvalStages"]; ok { - for _, stage := range approvalStagesRaw.([]interface{}) { - if v, ok := stage.(map[string]interface{}); ok { - approvalStages = append(approvalStages, v) + + if metadata.ResourceData.HasChange("activation_rules.0.approval_stage") { + if len(model.ActivationRules) == 1 { + approvalStages := make([]rolemanagementpolicies.ApprovalStage, len(model.ActivationRules[0].ApprovalStages)) + for i, stage := range model.ActivationRules[0].ApprovalStages { + primaryApprovers := make([]rolemanagementpolicies.UserSet, len(stage.PrimaryApprovers)) + for ia, approver := range stage.PrimaryApprovers { + primaryApprovers[ia] = rolemanagementpolicies.UserSet{ + Id: pointer.To(approver.ID), + UserType: pointer.To(rolemanagementpolicies.UserType(approver.Type)), + } + } + + approvalStages[i] = rolemanagementpolicies.ApprovalStage{ + PrimaryApprovers: &primaryApprovers, + } } + settings.ApprovalStages = &approvalStages } } } - } - var id, ruleType string - var target map[string]interface{} - if idRaw, ok := approvalEndUserAssignment.Values["id"]; ok { - id = idRaw.(string) - } - if ruleTypeRaw, ok := approvalEndUserAssignment.Values["ruleType"]; ok { - ruleType = ruleTypeRaw.(string) - } - if targetRaw, ok := approvalEndUserAssignment.Values["target"]; ok { - target = targetRaw.(map[string]interface{}) + updatedRules = append(updatedRules, approvalEndUserAssignment) } - - updatedRules = append(updatedRules, RoleManagementPolicyRule{ - Id: pointer.To(id), - RuleType: rolemanagementpolicies.RoleManagementPolicyRuleType(ruleType), - Target: target, - Setting: map[string]interface{}{ - "isApprovalRequired": approvalReqd, - "approvalStages": approvalStages, - }, - }) } } if metadata.ResourceData.HasChange("activation_rules.0.required_conditional_access_authentication_context") { - if authEndUserAssignment, ok := existingRules["AuthenticationContext_EndUser_Assignment"]; ok && authEndUserAssignment.Values != nil { - var claimValue string - if claimValueRaw, ok := authEndUserAssignment.Values["claimValue"]; ok { - claimValue = claimValueRaw.(string) - } - - var isEnabled bool - if _, ok = metadata.ResourceData.GetOk("activation_rules.0.required_conditional_access_authentication_context"); ok { - isEnabled = true - if len(model.ActivationRules) == 1 { - claimValue = model.ActivationRules[0].RequireConditionalAccessContext + if authEndUserAssignmentBase, ok := existingRules["AuthenticationContext_EndUser_Assignment"]; ok { + if authEndUserAssignment, ok := authEndUserAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyAuthenticationContextRule); ok { + if _, ok = metadata.ResourceData.GetOk("activation_rules.0.required_conditional_access_authentication_context"); ok { + authEndUserAssignment.IsEnabled = pointer.To(true) + if len(model.ActivationRules) == 1 { + authEndUserAssignment.ClaimValue = pointer.To(model.ActivationRules[0].RequireConditionalAccessContext) + } } - } - var id, ruleType string - var target map[string]interface{} - if idRaw, ok := authEndUserAssignment.Values["id"]; ok { - id = idRaw.(string) + updatedRules = append(updatedRules, authEndUserAssignment) } - if ruleTypeRaw, ok := authEndUserAssignment.Values["ruleType"]; ok { - ruleType = ruleTypeRaw.(string) - } - if targetRaw, ok := authEndUserAssignment.Values["target"]; ok { - target = targetRaw.(map[string]interface{}) - } - - updatedRules = append(updatedRules, RoleManagementPolicyRule{ - Id: pointer.To(id), - RuleType: rolemanagementpolicies.RoleManagementPolicyRuleType(ruleType), - Target: target, - IsEnabled: pointer.To(isEnabled), - ClaimValue: pointer.To(claimValue), - }) } } if metadata.ResourceData.HasChange("activation_rules.0.require_multifactor_authentication") || metadata.ResourceData.HasChange("activation_rules.0.require_justification") || metadata.ResourceData.HasChange("activation_rules.0.require_ticket_info") { - if enablementEndUserAssignment, ok := existingRules["Enablement_EndUser_Assignment"]; ok && enablementEndUserAssignment.Values != nil { - enabledRules := make([]string, 0) - if len(model.ActivationRules) == 1 { - if model.ActivationRules[0].RequireMultiFactorAuth { - enabledRules = append(enabledRules, "MultiFactorAuthentication") - } - if model.ActivationRules[0].RequireJustification { - enabledRules = append(enabledRules, "Justification") - } - if model.ActivationRules[0].RequireTicketInfo { - enabledRules = append(enabledRules, "Ticketing") + if enablementEndUserAssignmentBase, ok := existingRules["Enablement_EndUser_Assignment"]; ok { + if enablementEndUserAssignment, ok := enablementEndUserAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyEnablementRule); ok { + enabledRules := make([]rolemanagementpolicies.EnablementRules, 0) + if len(model.ActivationRules) == 1 { + if model.ActivationRules[0].RequireMultiFactorAuth { + enabledRules = append(enabledRules, rolemanagementpolicies.EnablementRulesMultiFactorAuthentication) + } + if model.ActivationRules[0].RequireJustification { + enabledRules = append(enabledRules, rolemanagementpolicies.EnablementRulesJustification) + } + if model.ActivationRules[0].RequireTicketInfo { + enabledRules = append(enabledRules, rolemanagementpolicies.EnablementRulesTicketing) + } } - } + enablementEndUserAssignment.EnabledRules = &enabledRules - var id, ruleType string - var target map[string]interface{} - if idRaw, ok := enablementEndUserAssignment.Values["id"]; ok { - id = idRaw.(string) - } - if ruleTypeRaw, ok := enablementEndUserAssignment.Values["ruleType"]; ok { - ruleType = ruleTypeRaw.(string) + updatedRules = append(updatedRules, enablementEndUserAssignment) } - if targetRaw, ok := enablementEndUserAssignment.Values["target"]; ok { - target = targetRaw.(map[string]interface{}) - } - - updatedRules = append(updatedRules, RoleManagementPolicyRule{ - Id: pointer.To(id), - RuleType: rolemanagementpolicies.RoleManagementPolicyRuleType(ruleType), - Target: target, - EnabledRules: pointer.To(enabledRules), - }) } } if metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.admin_notifications") { - if notificationAdminAdminEligibility, ok := existingRules["Notification_Admin_Admin_Eligibility"]; ok && notificationAdminAdminEligibility.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].EligibleAssignments) == 1 { - if len(model.NotificationRules[0].EligibleAssignments[0].AdminNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationAdminAdminEligibility, - model.NotificationRules[0].EligibleAssignments[0].AdminNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.admin_notifications.0.additional_recipients"), - ), - ) + if notificationAdminAdminEligibilityBase, ok := existingRules["Notification_Admin_Admin_Eligibility"]; ok { + if notificationAdminAdminEligibility, ok := notificationAdminAdminEligibilityBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].EligibleAssignments) == 1 { + if len(model.NotificationRules[0].EligibleAssignments[0].AdminNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationAdminAdminEligibility, + model.NotificationRules[0].EligibleAssignments[0].AdminNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.admin_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -394,17 +256,19 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } if metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.admin_notifications") { - if notificationAdminAdminAssignment, ok := existingRules["Notification_Admin_Admin_Assignment"]; ok && notificationAdminAdminAssignment.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].ActiveAssignments) == 1 { - if len(model.NotificationRules[0].ActiveAssignments[0].AdminNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationAdminAdminAssignment, - model.NotificationRules[0].ActiveAssignments[0].AdminNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.admin_notifications.0.additional_recipients"), - ), - ) + if notificationAdminAdminAssignmentBase, ok := existingRules["Notification_Admin_Admin_Assignment"]; ok { + if notificationAdminAdminAssignment, ok := notificationAdminAdminAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].ActiveAssignments) == 1 { + if len(model.NotificationRules[0].ActiveAssignments[0].AdminNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationAdminAdminAssignment, + model.NotificationRules[0].ActiveAssignments[0].AdminNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.admin_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -412,17 +276,19 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } if metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.admin_notifications") { - if notificationAdminEndUserAssignment, ok := existingRules["Notification_Admin_EndUser_Assignment"]; ok && notificationAdminEndUserAssignment.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].EligibleActivations) == 1 { - if len(model.NotificationRules[0].EligibleActivations[0].AdminNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationAdminEndUserAssignment, - model.NotificationRules[0].EligibleActivations[0].AdminNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.admin_notifications.0.additional_recipients"), - ), - ) + if notificationAdminEndUserAssignmentBase, ok := existingRules["Notification_Admin_EndUser_Assignment"]; ok { + if notificationAdminEndUserAssignment, ok := notificationAdminEndUserAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].EligibleActivations) == 1 { + if len(model.NotificationRules[0].EligibleActivations[0].AdminNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationAdminEndUserAssignment, + model.NotificationRules[0].EligibleActivations[0].AdminNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.admin_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -430,17 +296,19 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } if metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.approver_notifications") { - if notificationApproverAdminEligibility, ok := existingRules["Notification_Approver_Admin_Eligibility"]; ok && notificationApproverAdminEligibility.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].EligibleAssignments) == 1 { - if len(model.NotificationRules[0].EligibleAssignments[0].ApproverNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationApproverAdminEligibility, - model.NotificationRules[0].EligibleAssignments[0].ApproverNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.approver_notifications.0.additional_recipients"), - ), - ) + if notificationApproverAdminEligibilityBase, ok := existingRules["Notification_Approver_Admin_Eligibility"]; ok { + if notificationApproverAdminEligibility, ok := notificationApproverAdminEligibilityBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].EligibleAssignments) == 1 { + if len(model.NotificationRules[0].EligibleAssignments[0].ApproverNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationApproverAdminEligibility, + model.NotificationRules[0].EligibleAssignments[0].ApproverNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.approver_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -448,17 +316,19 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } if metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.approver_notifications") { - if notificationApproverAdminAssignment, ok := existingRules["Notification_Approver_Admin_Assignment"]; ok && notificationApproverAdminAssignment.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].ActiveAssignments) == 1 { - if len(model.NotificationRules[0].ActiveAssignments[0].ApproverNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationApproverAdminAssignment, - model.NotificationRules[0].ActiveAssignments[0].ApproverNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.approver_notifications.0.additional_recipients"), - ), - ) + if notificationApproverAdminAssignmentBase, ok := existingRules["Notification_Approver_Admin_Assignment"]; ok { + if notificationApproverAdminAssignment, ok := notificationApproverAdminAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].ActiveAssignments) == 1 { + if len(model.NotificationRules[0].ActiveAssignments[0].ApproverNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationApproverAdminAssignment, + model.NotificationRules[0].ActiveAssignments[0].ApproverNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.approver_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -466,17 +336,19 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } if metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.approver_notifications") { - if notificationApproverEndUserAssignment, ok := existingRules["Notification_Approver_EndUser_Assignment"]; ok && notificationApproverEndUserAssignment.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].EligibleActivations) == 1 { - if len(model.NotificationRules[0].EligibleActivations[0].ApproverNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationApproverEndUserAssignment, - model.NotificationRules[0].EligibleActivations[0].ApproverNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.approver_notifications.0.additional_recipients"), - ), - ) + if notificationApproverEndUserAssignmentBase, ok := existingRules["Notification_Approver_EndUser_Assignment"]; ok { + if notificationApproverEndUserAssignment, ok := notificationApproverEndUserAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].EligibleActivations) == 1 { + if len(model.NotificationRules[0].EligibleActivations[0].ApproverNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationApproverEndUserAssignment, + model.NotificationRules[0].EligibleActivations[0].ApproverNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.approver_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -484,17 +356,19 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } if metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.assignee_notifications") { - if notificationRequestorAdminEligibility, ok := existingRules["Notification_Requestor_Admin_Eligibility"]; ok && notificationRequestorAdminEligibility.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].EligibleAssignments) == 1 { - if len(model.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationRequestorAdminEligibility, - model.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.assignee_notifications.0.additional_recipients"), - ), - ) + if notificationRequestorAdminEligibilityBase, ok := existingRules["Notification_Requestor_Admin_Eligibility"]; ok { + if notificationRequestorAdminEligibility, ok := notificationRequestorAdminEligibilityBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].EligibleAssignments) == 1 { + if len(model.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationRequestorAdminEligibility, + model.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.eligible_assignments.0.assignee_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -502,17 +376,19 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } if metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.assignee_notifications") { - if notificationRequestorAdminAssignment, ok := existingRules["Notification_Requestor_Admin_Assignment"]; ok && notificationRequestorAdminAssignment.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].ActiveAssignments) == 1 { - if len(model.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationRequestorAdminAssignment, - model.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.assignee_notifications.0.additional_recipients"), - ), - ) + if notificationRequestorAdminAssignmentBase, ok := existingRules["Notification_Requestor_Admin_Assignment"]; ok { + if notificationRequestorAdminAssignment, ok := notificationRequestorAdminAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].ActiveAssignments) == 1 { + if len(model.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationRequestorAdminAssignment, + model.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.active_assignments.0.assignee_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -520,17 +396,19 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } if metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.assignee_notifications") { - if notificationRequestorEndUserAssignment, ok := existingRules["Notification_Requestor_EndUser_Assignment"]; ok && notificationRequestorEndUserAssignment.Values != nil { - if len(model.NotificationRules) == 1 { - if len(model.NotificationRules[0].EligibleActivations) == 1 { - if len(model.NotificationRules[0].EligibleActivations[0].AssigneeNotifications) == 1 { - updatedRules = append(updatedRules, - expandNotificationSettings( - notificationRequestorEndUserAssignment, - model.NotificationRules[0].EligibleActivations[0].AssigneeNotifications[0], - metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.assignee_notifications.0.additional_recipients"), - ), - ) + if notificationRequestorEndUserAssignmentBase, ok := existingRules["Notification_Requestor_EndUser_Assignment"]; ok { + if notificationRequestorEndUserAssignment, ok := notificationRequestorEndUserAssignmentBase.(rolemanagementpolicies.RoleManagementPolicyNotificationRule); ok { + if len(model.NotificationRules) == 1 { + if len(model.NotificationRules[0].EligibleActivations) == 1 { + if len(model.NotificationRules[0].EligibleActivations[0].AssigneeNotifications) == 1 { + updatedRules = append(updatedRules, + expandNotificationSettings( + notificationRequestorEndUserAssignment, + model.NotificationRules[0].EligibleActivations[0].AssigneeNotifications[0], + metadata.ResourceData.HasChange("notification_rules.0.eligible_activations.0.assignee_notifications.0.additional_recipients"), + ), + ) + } } } } @@ -547,90 +425,26 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli }, nil } -func expandNotificationSettings(rule rolemanagementpolicies.RawRoleManagementPolicyRuleImpl, data RoleManagementPolicyNotificationSettings, recipientChange bool) rolemanagementpolicies.RoleManagementPolicyRule { - var level string - if levelRaw, ok := rule.Values["notificationLevel"]; ok { - level = levelRaw.(string) - } - - var defaultRecipients bool - if defaultRecipientsRaw, ok := rule.Values["isDefaultRecipientsEnabled"]; ok { - defaultRecipients = defaultRecipientsRaw.(bool) +func expandNotificationSettings(rule rolemanagementpolicies.RoleManagementPolicyNotificationRule, data RoleManagementPolicyNotificationSettings, recipientChange bool) rolemanagementpolicies.RoleManagementPolicyRule { + if pointer.From(rule.NotificationLevel) != rolemanagementpolicies.NotificationLevel(data.NotificationLevel) { + rule.NotificationLevel = pointer.To(rolemanagementpolicies.NotificationLevel(data.NotificationLevel)) } - var additionalRecipients []string - if v, ok := rule.Values["notificationRecipients"]; ok { - additionalRecipientsRaw := v.([]interface{}) - additionalRecipients = make([]string, len(additionalRecipientsRaw)) - for i, r := range additionalRecipientsRaw { - additionalRecipients[i] = r.(string) - } + if pointer.From(rule.IsDefaultRecipientsEnabled) != data.DefaultRecipients { + rule.IsDefaultRecipientsEnabled = pointer.To(data.DefaultRecipients) } - if level != data.NotificationLevel { - level = data.NotificationLevel - } - if defaultRecipients != data.DefaultRecipients { - defaultRecipients = data.DefaultRecipients - } if recipientChange { - additionalRecipients = data.AdditionalRecipients + rule.NotificationRecipients = pointer.To(data.AdditionalRecipients) } - var id, ruleType, recipientType, notificationType string - var target map[string]interface{} - if idRaw, ok := rule.Values["id"]; ok { - id = idRaw.(string) - } - if ruleTypeRaw, ok := rule.Values["ruleType"]; ok { - ruleType = ruleTypeRaw.(string) - } - if targetRaw, ok := rule.Values["target"]; ok { - target = targetRaw.(map[string]interface{}) - } - if recipientTypeRaw, ok := rule.Values["recipientType"]; ok { - recipientType = recipientTypeRaw.(string) - } - if notificationTypeRaw, ok := rule.Values["notificationType"]; ok { - notificationType = notificationTypeRaw.(string) - } - - return RoleManagementPolicyRule{ - Id: pointer.To(id), - RuleType: rolemanagementpolicies.RoleManagementPolicyRuleType(ruleType), - Target: target, - RecipientType: pointer.To(recipientType), - NotificationType: pointer.To(notificationType), - NotificationLevel: pointer.To(level), - IsDefaultRecipientsEnabled: pointer.To(defaultRecipients), - NotificationRecipients: pointer.To(additionalRecipients), - } + return rule } -func flattenNotificationSettings(rule map[string]interface{}) *RoleManagementPolicyNotificationSettings { - if rule == nil { - return nil - } - - var notificationLevel string - var defaultRecipients bool - var additionalRecipients []string - - if v, ok := rule["notificationLevel"].(string); ok { - notificationLevel = v - } - if v, ok := rule["isDefaultRecipientsEnabled"].(bool); ok { - defaultRecipients = v - } - if v, ok := rule["notificationRecipients"].([]interface{}); ok { - additionalRecipients = make([]string, len(v)) - for i, r := range v { - additionalRecipients[i] = r.(string) - } - } +func flattenNotificationSettings(rule rolemanagementpolicies.RoleManagementPolicyNotificationRule) *RoleManagementPolicyNotificationSettings { return &RoleManagementPolicyNotificationSettings{ - NotificationLevel: notificationLevel, - DefaultRecipients: defaultRecipients, - AdditionalRecipients: additionalRecipients, + NotificationLevel: string(pointer.From(rule.NotificationLevel)), + DefaultRecipients: pointer.From(rule.IsDefaultRecipientsEnabled), + AdditionalRecipients: pointer.From(rule.NotificationRecipients), } } diff --git a/internal/services/authorization/role_management_policy_data_source.go b/internal/services/authorization/role_management_policy_data_source.go index c9a6adb48cc4..215014d70a62 100644 --- a/internal/services/authorization/role_management_policy_data_source.go +++ b/internal/services/authorization/role_management_policy_data_source.go @@ -373,122 +373,133 @@ func (r RoleManagementPolicyDataSource) Read() sdk.ResourceFunc { } for _, r := range *prop.Rules { - rule := r.(rolemanagementpolicies.RawRoleManagementPolicyRuleImpl) - switch rule.Values["id"].(string) { - case "AuthenticationContext_EndUser_Assignment": - if claimValue, ok := rule.Values["claimValue"].(string); ok && claimValue != "" { - state.ActivationRules[0].RequireConditionalAccessContext = claimValue + switch rule := r.(type) { + case rolemanagementpolicies.RoleManagementPolicyAuthenticationContextRule: + if rule.Id != nil && *rule.Id == "AuthenticationContext_EndUser_Assignment" { + if rule.ClaimValue != nil && *rule.ClaimValue != "" { + state.ActivationRules[0].RequireConditionalAccessContext = *rule.ClaimValue + } } - - case "Approval_EndUser_Assignment": - if settings, ok := rule.Values["setting"].(map[string]interface{}); ok { - state.ActivationRules[0].RequireApproval = settings["isApprovalRequired"].(bool) - - if approvalStages, ok := settings["approvalStages"].([]interface{}); ok { - state.ActivationRules[0].ApprovalStages = make([]RoleManagementPolicyDataSourceApprovalStage, 1) - approvalStage := approvalStages[0].(map[string]interface{}) - - if primaryApprovers, ok := approvalStage["primaryApprovers"].([]interface{}); ok && len(primaryApprovers) > 0 { - state.ActivationRules[0].ApprovalStages[0].PrimaryApprovers = make([]RoleManagementPolicyDataSourceApprover, len(primaryApprovers)) - - for ia, pa := range primaryApprovers { - approver := pa.(map[string]interface{}) - state.ActivationRules[0].ApprovalStages[0].PrimaryApprovers[ia] = RoleManagementPolicyDataSourceApprover{ - ID: approver["id"].(string), - Type: approver["userType"].(string), + case rolemanagementpolicies.RoleManagementPolicyApprovalRule: + if rule.Id != nil && *rule.Id == "Approval_EndUser_Assignment" { + if rule.Setting != nil { + settings := *rule.Setting + state.ActivationRules[0].RequireApproval = pointer.From(settings.IsApprovalRequired) + if settings.ApprovalStages != nil { + approvalStages := *settings.ApprovalStages + state.ActivationRules[0].ApprovalStages = make([]RoleManagementPolicyDataSourceApprovalStage, 1) + approvalStage := approvalStages[0] + if primaryApprovers := approvalStage.PrimaryApprovers; primaryApprovers != nil && len(*primaryApprovers) > 0 { + state.ActivationRules[0].ApprovalStages[0].PrimaryApprovers = make([]RoleManagementPolicyDataSourceApprover, len(*primaryApprovers)) + for ia, pa := range *primaryApprovers { + state.ActivationRules[0].ApprovalStages[0].PrimaryApprovers[ia] = RoleManagementPolicyDataSourceApprover{ + ID: pointer.From(pa.Id), + Type: string(pointer.From(pa.UserType)), + } } } } } } - - case "Enablement_Admin_Assignment": - state.ActiveAssignmentRules[0].RequireMultiFactorAuth = false - state.ActiveAssignmentRules[0].RequireJustification = false - - if enabledRules, ok := rule.Values["enabledRules"].([]interface{}); ok { - for _, enabledRule := range enabledRules { - switch enabledRule.(string) { - case "MultiFactorAuthentication": - state.ActiveAssignmentRules[0].RequireMultiFactorAuth = true - case "Justification": - state.ActiveAssignmentRules[0].RequireJustification = true + case rolemanagementpolicies.RoleManagementPolicyEnablementRule: + if rule.Id != nil && *rule.Id == "Enablement_Admin_Assignment" { + state.ActiveAssignmentRules[0].RequireMultiFactorAuth = false + state.ActiveAssignmentRules[0].RequireJustification = false + + if rule.EnabledRules != nil { + for _, enabledRule := range *rule.EnabledRules { + switch enabledRule { + case rolemanagementpolicies.EnablementRulesMultiFactorAuthentication: + state.ActiveAssignmentRules[0].RequireMultiFactorAuth = true + case rolemanagementpolicies.EnablementRulesJustification: + state.ActiveAssignmentRules[0].RequireJustification = true + } } } } - case "Enablement_EndUser_Assignment": - state.ActivationRules[0].RequireMultiFactorAuth = false - state.ActivationRules[0].RequireJustification = false - state.ActivationRules[0].RequireTicketInfo = false - - if enabledRules, ok := rule.Values["enabledRules"].([]interface{}); ok { - for _, enabledRule := range enabledRules { - switch enabledRule.(string) { - case "MultiFactorAuthentication": - state.ActivationRules[0].RequireMultiFactorAuth = true - case "Justification": - state.ActivationRules[0].RequireJustification = true - case "Ticketing": - state.ActivationRules[0].RequireTicketInfo = true + if rule.Id != nil && *rule.Id == "Enablement_EndUser_Assignment" { + state.ActivationRules[0].RequireMultiFactorAuth = false + state.ActivationRules[0].RequireJustification = false + state.ActivationRules[0].RequireTicketInfo = false + + if rule.EnabledRules != nil { + for _, enabledRule := range *rule.EnabledRules { + switch enabledRule { + case rolemanagementpolicies.EnablementRulesMultiFactorAuthentication: + state.ActivationRules[0].RequireMultiFactorAuth = true + case rolemanagementpolicies.EnablementRulesJustification: + state.ActivationRules[0].RequireJustification = true + case rolemanagementpolicies.EnablementRulesTicketing: + state.ActivationRules[0].RequireTicketInfo = true + } } } } - case "Expiration_Admin_Eligibility": - state.EligibleAssignmentRules[0].ExpirationRequired = rule.Values["isExpirationRequired"].(bool) - state.EligibleAssignmentRules[0].ExpireAfter = rule.Values["maximumDuration"].(string) + case rolemanagementpolicies.RoleManagementPolicyExpirationRule: + if rule.Id != nil { + switch *rule.Id { + case "Expiration_Admin_Eligibility": + state.EligibleAssignmentRules[0].ExpirationRequired = pointer.From(rule.IsExpirationRequired) + state.EligibleAssignmentRules[0].ExpireAfter = pointer.From(rule.MaximumDuration) - case "Expiration_Admin_Assignment": - state.ActiveAssignmentRules[0].ExpirationRequired = rule.Values["isExpirationRequired"].(bool) - state.ActiveAssignmentRules[0].ExpireAfter = rule.Values["maximumDuration"].(string) + case "Expiration_Admin_Assignment": + state.ActiveAssignmentRules[0].ExpirationRequired = pointer.From(rule.IsExpirationRequired) + state.ActiveAssignmentRules[0].ExpireAfter = pointer.From(rule.MaximumDuration) - case "Expiration_EndUser_Assignment": - state.ActivationRules[0].MaximumDuration = rule.Values["maximumDuration"].(string) - - case "Notification_Admin_Admin_Assignment": - state.NotificationRules[0].ActiveAssignments[0].AdminNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), + case "Expiration_EndUser_Assignment": + state.ActivationRules[0].MaximumDuration = pointer.From(rule.MaximumDuration) + } } + case rolemanagementpolicies.RoleManagementPolicyNotificationRule: + if rule.Id != nil { + switch *rule.Id { + case "Notification_Admin_Admin_Assignment": + state.NotificationRules[0].ActiveAssignments[0].AdminNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } - case "Notification_Admin_Admin_Eligibility": - state.NotificationRules[0].EligibleAssignments[0].AdminNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), - } + case "Notification_Admin_Admin_Eligibility": + state.NotificationRules[0].EligibleAssignments[0].AdminNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } - case "Notification_Admin_EndUser_Assignment": - state.NotificationRules[0].EligibleActivations[0].AdminNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), - } + case "Notification_Admin_EndUser_Assignment": + state.NotificationRules[0].EligibleActivations[0].AdminNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } - case "Notification_Approver_Admin_Assignment": - state.NotificationRules[0].ActiveAssignments[0].ApproverNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), - } + case "Notification_Approver_Admin_Assignment": + state.NotificationRules[0].ActiveAssignments[0].ApproverNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } - case "Notification_Approver_Admin_Eligibility": - state.NotificationRules[0].EligibleAssignments[0].ApproverNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), - } + case "Notification_Approver_Admin_Eligibility": + state.NotificationRules[0].EligibleAssignments[0].ApproverNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } - case "Notification_Approver_EndUser_Assignment": - state.NotificationRules[0].EligibleActivations[0].ApproverNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), - } + case "Notification_Approver_EndUser_Assignment": + state.NotificationRules[0].EligibleActivations[0].ApproverNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } - case "Notification_Requestor_Admin_Assignment": - state.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), - } + case "Notification_Requestor_Admin_Assignment": + state.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } - case "Notification_Requestor_Admin_Eligibility": - state.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), - } + case "Notification_Requestor_Admin_Eligibility": + state.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } - case "Notification_Requestor_EndUser_Assignment": - state.NotificationRules[0].EligibleActivations[0].AssigneeNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ - *flattenNotificationDataSourceSettings(pointer.To(rule.Values)), + case "Notification_Requestor_EndUser_Assignment": + state.NotificationRules[0].EligibleActivations[0].AssigneeNotifications = []RoleManagementPolicyDataSourceNotificationSettings{ + *flattenNotificationDataSourceSettings(rule), + } + } } } } @@ -501,27 +512,11 @@ func (r RoleManagementPolicyDataSource) Read() sdk.ResourceFunc { } } -func flattenNotificationDataSourceSettings(rule *map[string]interface{}) *RoleManagementPolicyDataSourceNotificationSettings { - var notificationLevel string - var defaultRecipients bool - var additionalRecipients []string - - if v, ok := (*rule)["notificationLevel"].(string); ok { - notificationLevel = v - } - if v, ok := (*rule)["isDefaultRecipientsEnabled"].(bool); ok { - defaultRecipients = v - } - if v, ok := (*rule)["notificationRecipients"].([]interface{}); ok { - additionalRecipients = make([]string, len(v)) - for i, r := range v { - additionalRecipients[i] = r.(string) - } - } +func flattenNotificationDataSourceSettings(rule rolemanagementpolicies.RoleManagementPolicyNotificationRule) *RoleManagementPolicyDataSourceNotificationSettings { return &RoleManagementPolicyDataSourceNotificationSettings{ - NotificationLevel: notificationLevel, - DefaultRecipients: defaultRecipients, - AdditionalRecipients: additionalRecipients, + NotificationLevel: string(pointer.From(rule.NotificationLevel)), + DefaultRecipients: pointer.From(rule.IsDefaultRecipientsEnabled), + AdditionalRecipients: pointer.From(rule.NotificationRecipients), } } diff --git a/internal/services/authorization/role_management_policy_resource.go b/internal/services/authorization/role_management_policy_resource.go index 9a91194ec842..2daa1a985cc1 100644 --- a/internal/services/authorization/role_management_policy_resource.go +++ b/internal/services/authorization/role_management_policy_resource.go @@ -463,122 +463,133 @@ func (r RoleManagementPolicyResource) Read() sdk.ResourceFunc { } for _, r := range *prop.Rules { - rule := r.(rolemanagementpolicies.RawRoleManagementPolicyRuleImpl) - switch rule.Values["id"].(string) { - case "AuthenticationContext_EndUser_Assignment": - if claimValue, ok := rule.Values["claimValue"].(string); ok && claimValue != "" { - state.ActivationRules[0].RequireConditionalAccessContext = claimValue + switch rule := r.(type) { + case rolemanagementpolicies.RoleManagementPolicyAuthenticationContextRule: + if rule.Id != nil && *rule.Id == "AuthenticationContext_EndUser_Assignment" { + if rule.ClaimValue != nil && *rule.ClaimValue != "" { + state.ActivationRules[0].RequireConditionalAccessContext = *rule.ClaimValue + } } - - case "Approval_EndUser_Assignment": - if settings, ok := rule.Values["setting"].(map[string]interface{}); ok { - state.ActivationRules[0].RequireApproval = settings["isApprovalRequired"].(bool) - - if approvalStages, ok := settings["approvalStages"].([]interface{}); ok { - state.ActivationRules[0].ApprovalStages = make([]RoleManagementPolicyApprovalStage, 1) - approvalStage := approvalStages[0].(map[string]interface{}) - - if primaryApprovers, ok := approvalStage["primaryApprovers"].([]interface{}); ok && len(primaryApprovers) > 0 { - state.ActivationRules[0].ApprovalStages[0].PrimaryApprovers = make([]RoleManagementPolicyApprover, len(primaryApprovers)) - - for ia, pa := range primaryApprovers { - approver := pa.(map[string]interface{}) - state.ActivationRules[0].ApprovalStages[0].PrimaryApprovers[ia] = RoleManagementPolicyApprover{ - ID: approver["id"].(string), - Type: approver["userType"].(string), + case rolemanagementpolicies.RoleManagementPolicyApprovalRule: + if rule.Id != nil && *rule.Id == "Approval_EndUser_Assignment" { + if rule.Setting != nil { + settings := *rule.Setting + state.ActivationRules[0].RequireApproval = pointer.From(settings.IsApprovalRequired) + if settings.ApprovalStages != nil { + approvalStages := *settings.ApprovalStages + state.ActivationRules[0].ApprovalStages = make([]RoleManagementPolicyApprovalStage, 1) + approvalStage := approvalStages[0] + if primaryApprovers := approvalStage.PrimaryApprovers; primaryApprovers != nil && len(*primaryApprovers) > 0 { + state.ActivationRules[0].ApprovalStages[0].PrimaryApprovers = make([]RoleManagementPolicyApprover, len(*primaryApprovers)) + for ia, pa := range *primaryApprovers { + state.ActivationRules[0].ApprovalStages[0].PrimaryApprovers[ia] = RoleManagementPolicyApprover{ + ID: pointer.From(pa.Id), + Type: string(pointer.From(pa.UserType)), + } } } } } } - - case "Enablement_Admin_Assignment": - state.ActiveAssignmentRules[0].RequireMultiFactorAuth = false - state.ActiveAssignmentRules[0].RequireJustification = false - - if enabledRules, ok := rule.Values["enabledRules"].([]interface{}); ok { - for _, enabledRule := range enabledRules { - switch enabledRule.(string) { - case "MultiFactorAuthentication": - state.ActiveAssignmentRules[0].RequireMultiFactorAuth = true - case "Justification": - state.ActiveAssignmentRules[0].RequireJustification = true + case rolemanagementpolicies.RoleManagementPolicyEnablementRule: + if rule.Id != nil && *rule.Id == "Enablement_Admin_Assignment" { + state.ActiveAssignmentRules[0].RequireMultiFactorAuth = false + state.ActiveAssignmentRules[0].RequireJustification = false + + if rule.EnabledRules != nil { + for _, enabledRule := range *rule.EnabledRules { + switch enabledRule { + case rolemanagementpolicies.EnablementRulesMultiFactorAuthentication: + state.ActiveAssignmentRules[0].RequireMultiFactorAuth = true + case rolemanagementpolicies.EnablementRulesJustification: + state.ActiveAssignmentRules[0].RequireJustification = true + } } } } - case "Enablement_EndUser_Assignment": - state.ActivationRules[0].RequireMultiFactorAuth = false - state.ActivationRules[0].RequireJustification = false - state.ActivationRules[0].RequireTicketInfo = false - - if enabledRules, ok := rule.Values["enabledRules"].([]interface{}); ok { - for _, enabledRule := range enabledRules { - switch enabledRule.(string) { - case "MultiFactorAuthentication": - state.ActivationRules[0].RequireMultiFactorAuth = true - case "Justification": - state.ActivationRules[0].RequireJustification = true - case "Ticketing": - state.ActivationRules[0].RequireTicketInfo = true + if rule.Id != nil && *rule.Id == "Enablement_EndUser_Assignment" { + state.ActivationRules[0].RequireMultiFactorAuth = false + state.ActivationRules[0].RequireJustification = false + state.ActivationRules[0].RequireTicketInfo = false + + if rule.EnabledRules != nil { + for _, enabledRule := range *rule.EnabledRules { + switch enabledRule { + case rolemanagementpolicies.EnablementRulesMultiFactorAuthentication: + state.ActivationRules[0].RequireMultiFactorAuth = true + case rolemanagementpolicies.EnablementRulesJustification: + state.ActivationRules[0].RequireJustification = true + case rolemanagementpolicies.EnablementRulesTicketing: + state.ActivationRules[0].RequireTicketInfo = true + } } } } - case "Expiration_Admin_Eligibility": - state.EligibleAssignmentRules[0].ExpirationRequired = rule.Values["isExpirationRequired"].(bool) - state.EligibleAssignmentRules[0].ExpireAfter = rule.Values["maximumDuration"].(string) - - case "Expiration_Admin_Assignment": - state.ActiveAssignmentRules[0].ExpirationRequired = rule.Values["isExpirationRequired"].(bool) - state.ActiveAssignmentRules[0].ExpireAfter = rule.Values["maximumDuration"].(string) + case rolemanagementpolicies.RoleManagementPolicyExpirationRule: + if rule.Id != nil { + switch *rule.Id { + case "Expiration_Admin_Eligibility": + state.EligibleAssignmentRules[0].ExpirationRequired = pointer.From(rule.IsExpirationRequired) + state.EligibleAssignmentRules[0].ExpireAfter = pointer.From(rule.MaximumDuration) - case "Expiration_EndUser_Assignment": - state.ActivationRules[0].MaximumDuration = rule.Values["maximumDuration"].(string) + case "Expiration_Admin_Assignment": + state.ActiveAssignmentRules[0].ExpirationRequired = pointer.From(rule.IsExpirationRequired) + state.ActiveAssignmentRules[0].ExpireAfter = pointer.From(rule.MaximumDuration) - case "Notification_Admin_Admin_Assignment": - state.NotificationRules[0].ActiveAssignments[0].AdminNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), + case "Expiration_EndUser_Assignment": + state.ActivationRules[0].MaximumDuration = pointer.From(rule.MaximumDuration) + } } + case rolemanagementpolicies.RoleManagementPolicyNotificationRule: + if rule.Id != nil { + switch *rule.Id { + case "Notification_Admin_Admin_Assignment": + state.NotificationRules[0].ActiveAssignments[0].AdminNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } - case "Notification_Admin_Admin_Eligibility": - state.NotificationRules[0].EligibleAssignments[0].AdminNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), - } + case "Notification_Admin_Admin_Eligibility": + state.NotificationRules[0].EligibleAssignments[0].AdminNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } - case "Notification_Admin_EndUser_Assignment": - state.NotificationRules[0].EligibleActivations[0].AdminNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), - } + case "Notification_Admin_EndUser_Assignment": + state.NotificationRules[0].EligibleActivations[0].AdminNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } - case "Notification_Approver_Admin_Assignment": - state.NotificationRules[0].ActiveAssignments[0].ApproverNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), - } + case "Notification_Approver_Admin_Assignment": + state.NotificationRules[0].ActiveAssignments[0].ApproverNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } - case "Notification_Approver_Admin_Eligibility": - state.NotificationRules[0].EligibleAssignments[0].ApproverNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), - } + case "Notification_Approver_Admin_Eligibility": + state.NotificationRules[0].EligibleAssignments[0].ApproverNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } - case "Notification_Approver_EndUser_Assignment": - state.NotificationRules[0].EligibleActivations[0].ApproverNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), - } + case "Notification_Approver_EndUser_Assignment": + state.NotificationRules[0].EligibleActivations[0].ApproverNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } - case "Notification_Requestor_Admin_Assignment": - state.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), - } + case "Notification_Requestor_Admin_Assignment": + state.NotificationRules[0].ActiveAssignments[0].AssigneeNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } - case "Notification_Requestor_Admin_Eligibility": - state.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), - } + case "Notification_Requestor_Admin_Eligibility": + state.NotificationRules[0].EligibleAssignments[0].AssigneeNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } - case "Notification_Requestor_EndUser_Assignment": - state.NotificationRules[0].EligibleActivations[0].AssigneeNotifications = []RoleManagementPolicyNotificationSettings{ - *flattenNotificationSettings(rule.Values), + case "Notification_Requestor_EndUser_Assignment": + state.NotificationRules[0].EligibleActivations[0].AssigneeNotifications = []RoleManagementPolicyNotificationSettings{ + *flattenNotificationSettings(rule), + } + } } } } diff --git a/internal/services/automanage/arc_machine_automanage_configuration_assignment_resource.go b/internal/services/automanage/arc_machine_automanage_configuration_assignment_resource.go index a01ad3e88df6..29ea8b437634 100644 --- a/internal/services/automanage/arc_machine_automanage_configuration_assignment_resource.go +++ b/internal/services/automanage/arc_machine_automanage_configuration_assignment_resource.go @@ -87,7 +87,7 @@ func (v ArcMachineConfigurationAssignment) Create() sdk.ResourceFunc { properties := configurationprofilehcrpassignments.ConfigurationProfileAssignment{ Properties: &configurationprofilehcrpassignments.ConfigurationProfileAssignmentProperties{ - ConfigurationProfile: pointer.FromString(configurationId.ID()), + ConfigurationProfile: pointer.To(configurationId.ID()), }, } diff --git a/internal/services/automanage/automanage_configuration_resource.go b/internal/services/automanage/automanage_configuration_resource.go index 080f147d3f82..b4b0d037bf29 100644 --- a/internal/services/automanage/automanage_configuration_resource.go +++ b/internal/services/automanage/automanage_configuration_resource.go @@ -90,8 +90,10 @@ type SchedulePolicyConfiguration struct { type AutoManageConfigurationResource struct{} -var _ sdk.ResourceWithUpdate = AutoManageConfigurationResource{} -var _ sdk.ResourceWithStateMigration = AutoManageConfigurationResource{} +var ( + _ sdk.ResourceWithUpdate = AutoManageConfigurationResource{} + _ sdk.ResourceWithStateMigration = AutoManageConfigurationResource{} +) func (r AutoManageConfigurationResource) ResourceType() string { return "azurerm_automanage_configuration" @@ -629,11 +631,12 @@ func (r AutoManageConfigurationResource) StateUpgraders() sdk.StateUpgradeData { }, } } + func expandConfigurationProfile(model ConfigurationModel) *interface{} { // building configuration profile in json format jsonConfig := make(map[string]interface{}) - if model.Antimalware != nil && len(model.Antimalware) > 0 { + if len(model.Antimalware) > 0 { antimalwareConfig := model.Antimalware[0] jsonConfig["Antimalware/Enable"] = true jsonConfig["Antimalware/EnableRealTimeProtection"] = antimalwareConfig.RealTimeProtectionEnabled @@ -641,20 +644,20 @@ func expandConfigurationProfile(model ConfigurationModel) *interface{} { jsonConfig["Antimalware/ScanType"] = antimalwareConfig.ScanType jsonConfig["Antimalware/ScanDay"] = antimalwareConfig.ScanDay jsonConfig["Antimalware/ScanTimeInMinutes"] = antimalwareConfig.ScanTimeInMinutes - if antimalwareConfig.Exclusions != nil && len(antimalwareConfig.Exclusions) > 0 { + if len(antimalwareConfig.Exclusions) > 0 { jsonConfig["Antimalware/Exclusions/Extensions"] = antimalwareConfig.Exclusions[0].Extensions jsonConfig["Antimalware/Exclusions/Paths"] = antimalwareConfig.Exclusions[0].Paths jsonConfig["Antimalware/Exclusions/Processes"] = antimalwareConfig.Exclusions[0].Processes } } - if model.AzureSecurityBaseline != nil && len(model.AzureSecurityBaseline) > 0 { + if len(model.AzureSecurityBaseline) > 0 { azureSecurityBaselineConfig := model.AzureSecurityBaseline[0] jsonConfig["AzureSecurityBaseline/Enable"] = true jsonConfig["AzureSecurityBaseline/AssignmentType"] = azureSecurityBaselineConfig.AssignmentType } - if model.Backup != nil && len(model.Backup) > 0 { + if len(model.Backup) > 0 { backupConfig := model.Backup[0] jsonConfig["Backup/Enable"] = true if backupConfig.PolicyName != "" { @@ -662,40 +665,40 @@ func expandConfigurationProfile(model ConfigurationModel) *interface{} { } jsonConfig["Backup/TimeZone"] = backupConfig.TimeZone jsonConfig["Backup/InstantRpRetentionRangeInDays"] = backupConfig.InstantRpRetentionRangeInDays - if backupConfig.SchedulePolicy != nil && len(backupConfig.SchedulePolicy) > 0 { + if len(backupConfig.SchedulePolicy) > 0 { schedulePolicyConfig := backupConfig.SchedulePolicy[0] jsonConfig["Backup/SchedulePolicy/ScheduleRunFrequency"] = schedulePolicyConfig.ScheduleRunFrequency - if schedulePolicyConfig.ScheduleRunTimes != nil && len(schedulePolicyConfig.ScheduleRunTimes) > 0 { + if len(schedulePolicyConfig.ScheduleRunTimes) > 0 { jsonConfig["Backup/SchedulePolicy/ScheduleRunTimes"] = schedulePolicyConfig.ScheduleRunTimes } - if schedulePolicyConfig.ScheduleRunDays != nil && len(schedulePolicyConfig.ScheduleRunDays) > 0 { + if len(schedulePolicyConfig.ScheduleRunDays) > 0 { jsonConfig["Backup/SchedulePolicy/ScheduleRunDays"] = schedulePolicyConfig.ScheduleRunDays } jsonConfig["Backup/SchedulePolicy/SchedulePolicyType"] = schedulePolicyConfig.SchedulePolicyType } - if backupConfig.RetentionPolicy != nil && len(backupConfig.RetentionPolicy) > 0 { + if len(backupConfig.RetentionPolicy) > 0 { retentionPolicyConfig := backupConfig.RetentionPolicy[0] jsonConfig["Backup/RetentionPolicy/RetentionPolicyType"] = retentionPolicyConfig.RetentionPolicyType - if retentionPolicyConfig.DailySchedule != nil && len(retentionPolicyConfig.DailySchedule) > 0 { + if len(retentionPolicyConfig.DailySchedule) > 0 { dailyScheduleConfig := retentionPolicyConfig.DailySchedule[0] - if dailyScheduleConfig.RetentionTimes != nil && len(dailyScheduleConfig.RetentionTimes) > 0 { + if len(dailyScheduleConfig.RetentionTimes) > 0 { jsonConfig["Backup/RetentionPolicy/DailySchedule/RetentionTimes"] = dailyScheduleConfig.RetentionTimes } - if dailyScheduleConfig.RetentionDuration != nil && len(dailyScheduleConfig.RetentionDuration) > 0 { + if len(dailyScheduleConfig.RetentionDuration) > 0 { jsonConfig["Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count"] = dailyScheduleConfig.RetentionDuration[0].Count jsonConfig["Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType"] = dailyScheduleConfig.RetentionDuration[0].DurationType } } - if retentionPolicyConfig.WeeklySchedule != nil && len(retentionPolicyConfig.WeeklySchedule) > 0 { + if len(retentionPolicyConfig.WeeklySchedule) > 0 { weeklyScheduleConfig := retentionPolicyConfig.WeeklySchedule[0] - if weeklyScheduleConfig.RetentionTimes != nil && len(weeklyScheduleConfig.RetentionTimes) > 0 { + if len(weeklyScheduleConfig.RetentionTimes) > 0 { jsonConfig["Backup/RetentionPolicy/WeeklySchedule/RetentionTimes"] = weeklyScheduleConfig.RetentionTimes } - if weeklyScheduleConfig.RetentionDuration != nil && len(weeklyScheduleConfig.RetentionDuration) > 0 { + if len(weeklyScheduleConfig.RetentionDuration) > 0 { jsonConfig["Backup/RetentionPolicy/WeeklySchedule/RetentionDuration/Count"] = weeklyScheduleConfig.RetentionDuration[0].Count jsonConfig["Backup/RetentionPolicy/WeeklySchedule/RetentionDuration/DurationType"] = weeklyScheduleConfig.RetentionDuration[0].DurationType } diff --git a/internal/services/automanage/migration/configuration_v0_to_v1.go b/internal/services/automanage/migration/configuration_v0_to_v1.go index d925a5098215..be7f107782e5 100644 --- a/internal/services/automanage/migration/configuration_v0_to_v1.go +++ b/internal/services/automanage/migration/configuration_v0_to_v1.go @@ -13,8 +13,7 @@ import ( var _ pluginsdk.StateUpgrade = ConfigurationV0ToV1{} -type ConfigurationV0ToV1 struct { -} +type ConfigurationV0ToV1 struct{} func (ConfigurationV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/automation/automation_account_resource_test.go b/internal/services/automation/automation_account_resource_test.go index 322089b95089..b1b74194b48d 100644 --- a/internal/services/automation/automation_account_resource_test.go +++ b/internal/services/automation/automation_account_resource_test.go @@ -390,7 +390,6 @@ resource "azurerm_key_vault_key" "test" { } func (a AutomationAccountResource) encryption_none(data acceptance.TestData) string { - return fmt.Sprintf(` %s @@ -417,7 +416,6 @@ resource "azurerm_role_assignment" "test" { } func (a AutomationAccountResource) encryption_basic(data acceptance.TestData) string { - return fmt.Sprintf(` @@ -449,7 +447,6 @@ resource "azurerm_automation_account" "test" { } func (a AutomationAccountResource) encryption_userIdentity(data acceptance.TestData) string { - return fmt.Sprintf(` diff --git a/internal/services/automation/automation_certificate_resource.go b/internal/services/automation/automation_certificate_resource.go index 99b13338bb31..6e537d05cc40 100644 --- a/internal/services/automation/automation_certificate_resource.go +++ b/internal/services/automation/automation_certificate_resource.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -81,13 +80,6 @@ func resourceAutomationCertificate() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["exportable"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - Optional: true, - } - } return resource } diff --git a/internal/services/automation/automation_connection_service_principal_resource.go b/internal/services/automation/automation_connection_service_principal_resource.go index 87dd3b6e4069..66fb91522f87 100644 --- a/internal/services/automation/automation_connection_service_principal_resource.go +++ b/internal/services/automation/automation_connection_service_principal_resource.go @@ -164,7 +164,6 @@ func resourceAutomationConnectionServicePrincipalRead(d *pluginsdk.ResourceData, if model := resp.Model; model != nil { if props := model.Properties; props != nil { - description := "" if props.Description != nil { description = *props.Description diff --git a/internal/services/automation/automation_connection_type_resource.go b/internal/services/automation/automation_connection_type_resource.go index 964c7a80b05b..554c5ccf060d 100644 --- a/internal/services/automation/automation_connection_type_resource.go +++ b/internal/services/automation/automation_connection_type_resource.go @@ -8,6 +8,7 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount" @@ -26,11 +27,11 @@ type Field struct { } type AutomationConnectionTypeModel struct { - ResourceGroup string `json:"resource_group" tfschema:"resource_group_name"` + ResourceGroup string `json:"resource_group" tfschema:"resource_group_name"` AutomationAccountName string `json:"automation_account_name" tfschema:"automation_account_name"` - Name string `json:"name" tfschema:"name"` - IsGlobal bool `json:"is_global" tfschema:"is_global"` - Field []Field `json:"field" tfschema:"field"` + Name string `json:"name" tfschema:"name"` + IsGlobal bool `json:"is_global" tfschema:"is_global"` + Field []Field `json:"field" tfschema:"field"` } type AutomationConnectionTypeResource struct{} @@ -181,14 +182,14 @@ func (m AutomationConnectionTypeResource) Read() sdk.ResourceFunc { if model := resp.Model; model != nil { if props := model.Properties; props != nil { - output.IsGlobal = utils.NormaliseNilableBool(props.IsGlobal) + output.IsGlobal = pointer.From(props.IsGlobal) if props.FieldDefinitions != nil { for name, field := range *props.FieldDefinitions { output.Field = append(output.Field, Field{ Name: name, Type: field.Type, - IsEncrypted: utils.NormaliseNilableBool(field.IsEncrypted), - IsOptional: utils.NormaliseNilableBool(field.IsOptional), + IsEncrypted: pointer.From(field.IsEncrypted), + IsOptional: pointer.From(field.IsOptional), }) } } diff --git a/internal/services/automation/automation_hybrid_runbook_worker.go b/internal/services/automation/automation_hybrid_runbook_worker.go deleted file mode 100644 index 98430d603e96..000000000000 --- a/internal/services/automation/automation_hybrid_runbook_worker.go +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package automation - -import ( - "context" - "fmt" - "net/http" - "time" - - "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker" - "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type HybridRunbookWorkerModel struct { - ResourceGroupName string `tfschema:"resource_group_name"` - AutomationAccountName string `tfschema:"automation_account_name"` - WorkerGroupName string `tfschema:"worker_group_name"` - WorkerName string `tfschema:"worker_name"` - WorkerId string `tfschema:"worker_id"` - VmResourceId string `tfschema:"vm_resource_id"` - Ip string `tfschema:"ip"` - RegisteredDateTime string `tfschema:"registration_date_time"` - LastSeenDateTime string `tfschema:"last_seen_date_time"` - WorkerType string `tfschema:"worker_type"` -} - -type HybridRunbookWorkerResource struct{} - -var _ sdk.Resource = (*HybridRunbookWorkerResource)(nil) - -func (m HybridRunbookWorkerResource) Arguments() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ - "resource_group_name": commonschema.ResourceGroupName(), - - "automation_account_name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - - "worker_group_name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - - "worker_id": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.IsUUID, - }, - - "vm_resource_id": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - } -} - -func (m HybridRunbookWorkerResource) Attributes() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ - "ip": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "registration_date_time": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "last_seen_date_time": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "worker_name": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "worker_type": { - Type: pluginsdk.TypeString, - Computed: true, - }, - } -} - -func (m HybridRunbookWorkerResource) ModelObject() interface{} { - return &HybridRunbookWorkerModel{} -} - -func (m HybridRunbookWorkerResource) ResourceType() string { - return "azurerm_automation_hybrid_runbook_worker" -} - -func (m HybridRunbookWorkerResource) Create() sdk.ResourceFunc { - return sdk.ResourceFunc{ - Timeout: 30 * time.Minute, - Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { - client := meta.Client.Automation.HybridRunbookWorker - - var model HybridRunbookWorkerModel - if err := meta.Decode(&model); err != nil { - return err - } - - subscriptionID := meta.Client.Account.SubscriptionId - id := hybridrunbookworker.NewHybridRunbookWorkerID(subscriptionID, model.ResourceGroupName, - model.AutomationAccountName, model.WorkerGroupName, model.WorkerId) - existing, err := client.Get(ctx, id) - if !response.WasNotFound(existing.HttpResponse) { - if err != nil { - return fmt.Errorf("retreiving %s: %v", id, err) - } - return meta.ResourceRequiresImport(m.ResourceType(), id) - } - - req := hybridrunbookworker.HybridRunbookWorkerCreateParameters{} - if model.VmResourceId != "" { - req.Properties.VMResourceId = utils.String(model.VmResourceId) - } - - future, err := client.Create(ctx, id, req) - if err != nil { - // Workaround swagger issue https://github.com/Azure/azure-rest-api-specs/issues/19741 - if !response.WasStatusCode(future.HttpResponse, http.StatusCreated) { - return fmt.Errorf("creating %s: %v", id, err) - } - } - _ = future - - meta.SetID(id) - return nil - }, - } -} - -func (m HybridRunbookWorkerResource) Read() sdk.ResourceFunc { - return sdk.ResourceFunc{ - Timeout: 5 * time.Minute, - Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { - id, err := hybridrunbookworker.ParseHybridRunbookWorkerID(meta.ResourceData.Id()) - if err != nil { - return err - } - client := meta.Client.Automation.HybridRunbookWorker - result, err := client.Get(ctx, *id) - if err != nil { - return err - } - if result.Model == nil { - return fmt.Errorf("retrieving %s got nil model", id) - } - - var output HybridRunbookWorkerModel - - // the name in response corresponding to work_id in request - output.WorkerId = utils.NormalizeNilableString(result.Model.Name) - output.AutomationAccountName = id.AutomationAccountName - output.ResourceGroupName = id.ResourceGroupName - output.WorkerGroupName = id.HybridRunbookWorkerGroupName - if prop := result.Model.Properties; prop != nil { - output.VmResourceId = utils.NormalizeNilableString(prop.VMResourceId) - output.WorkerType = utils.NormalizeNilableString((*string)(prop.WorkerType)) - output.LastSeenDateTime = utils.NormalizeNilableString(prop.LastSeenDateTime) - output.RegisteredDateTime = utils.NormalizeNilableString(prop.RegisteredDateTime) - output.Ip = utils.NormalizeNilableString(prop.IP) - output.WorkerName = utils.NormalizeNilableString(prop.WorkerName) - } - return meta.Encode(&output) - }, - } -} - -func (m HybridRunbookWorkerResource) Delete() sdk.ResourceFunc { - return sdk.ResourceFunc{ - Timeout: 10 * time.Minute, - Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { - id, err := hybridrunbookworker.ParseHybridRunbookWorkerID(meta.ResourceData.Id()) - if err != nil { - return err - } - meta.Logger.Infof("deleting %s", id) - client := meta.Client.Automation.HybridRunbookWorker - if _, err = client.Delete(ctx, *id); err != nil { - return fmt.Errorf("deleting %s: %v", id, err) - } - return nil - }, - } -} - -func (m HybridRunbookWorkerResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { - return hybridrunbookworker.ValidateHybridRunbookWorkerID -} diff --git a/internal/services/automation/automation_hybrid_runbook_worker_group.go b/internal/services/automation/automation_hybrid_runbook_worker_group.go deleted file mode 100644 index 2fdf200e7bf0..000000000000 --- a/internal/services/automation/automation_hybrid_runbook_worker_group.go +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package automation - -import ( - "context" - "fmt" - "time" - - "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup" - "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type HybridRunbookWorkerGroupModel struct { - ResourceGroupName string `tfschema:"resource_group_name"` - AutomationAccountName string `tfschema:"automation_account_name"` - Name string `tfschema:"name"` - CredentialName string `tfschema:"credential_name"` -} - -type HybridRunbookWorkerGroupResource struct{} - -var _ sdk.Resource = (*HybridRunbookWorkerGroupResource)(nil) - -func (m HybridRunbookWorkerGroupResource) Arguments() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ - "resource_group_name": commonschema.ResourceGroupName(), // end if common - "automation_account_name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "credential_name": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - } -} - -func (m HybridRunbookWorkerGroupResource) Attributes() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{} -} - -func (m HybridRunbookWorkerGroupResource) ModelObject() interface{} { - return &HybridRunbookWorkerGroupModel{} -} - -func (m HybridRunbookWorkerGroupResource) ResourceType() string { - return "azurerm_automation_hybrid_runbook_worker_group" -} - -func (m HybridRunbookWorkerGroupResource) Create() sdk.ResourceFunc { - return sdk.ResourceFunc{ - Timeout: 30 * time.Minute, - Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { - client := meta.Client.Automation.HybridRunbookWorkerGroup - - var model HybridRunbookWorkerGroupModel - if err := meta.Decode(&model); err != nil { - return err - } - - subscriptionID := meta.Client.Account.SubscriptionId - id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID(subscriptionID, model.ResourceGroupName, - model.AutomationAccountName, model.Name) - existing, err := client.Get(ctx, id) - if !response.WasNotFound(existing.HttpResponse) { - if err != nil { - return fmt.Errorf("retreiving %s: %v", id, err) - } - return meta.ResourceRequiresImport(m.ResourceType(), id) - } - req := hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateParameters{ - Name: pointer.To(model.Name), - } - if model.CredentialName != "" { - req.Properties = &hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateProperties{} - req.Properties.Credential = &hybridrunbookworkergroup.RunAsCredentialAssociationProperty{ - Name: utils.String(model.CredentialName), - } - } - // return 201 cause err in autorest sdk - _, err = client.Create(ctx, id, req) - // Workaround swagger issue https://github.com/Azure/azure-rest-api-specs/issues/19741 - if err != nil { - return fmt.Errorf("creating %s: %v", id, err) - } - - meta.SetID(id) - return nil - }, - } -} - -func (m HybridRunbookWorkerGroupResource) Read() sdk.ResourceFunc { - return sdk.ResourceFunc{ - Timeout: 5 * time.Minute, - Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { - id, err := hybridrunbookworkergroup.ParseHybridRunbookWorkerGroupID(meta.ResourceData.Id()) - if err != nil { - return err - } - client := meta.Client.Automation.HybridRunbookWorkerGroup - result, err := client.Get(ctx, *id) - if err != nil { - return err - } - if result.Model == nil { - return fmt.Errorf("retrieving %s got nil model", id) - } - var output HybridRunbookWorkerGroupModel - - output.Name = utils.NormalizeNilableString(result.Model.Name) - output.AutomationAccountName = id.AutomationAccountName - if model := result.Model; model != nil { - if prop := model.Properties; prop != nil { - if prop.Credential != nil { - output.CredentialName = pointer.From(prop.Credential.Name) - } - } - } - output.ResourceGroupName = id.ResourceGroupName - return meta.Encode(&output) - }, - } -} - -func (m HybridRunbookWorkerGroupResource) Update() sdk.ResourceFunc { - return sdk.ResourceFunc{ - Timeout: 10 * time.Minute, - Func: func(ctx context.Context, meta sdk.ResourceMetaData) (err error) { - client := meta.Client.Automation.HybridRunbookWorkerGroup - id, err := hybridrunbookworkergroup.ParseHybridRunbookWorkerGroupID(meta.ResourceData.Id()) - if err != nil { - return err - } - - var model HybridRunbookWorkerGroupModel - if err = meta.Decode(&model); err != nil { - return fmt.Errorf("decoding err: %+v", err) - } - - var upd hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateParameters - if meta.ResourceData.HasChange("credential_name") { - upd.Properties = &hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateProperties{} - upd.Properties.Credential = &hybridrunbookworkergroup.RunAsCredentialAssociationProperty{ - Name: utils.String(model.CredentialName), - } - } - if _, err = client.Update(ctx, *id, upd); err != nil { - return fmt.Errorf("updating %s: %v", id, err) - } - - return nil - }, - } -} - -func (m HybridRunbookWorkerGroupResource) Delete() sdk.ResourceFunc { - return sdk.ResourceFunc{ - Timeout: 10 * time.Minute, - Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { - id, err := hybridrunbookworkergroup.ParseHybridRunbookWorkerGroupID(meta.ResourceData.Id()) - if err != nil { - return err - } - meta.Logger.Infof("deleting %s", id) - client := meta.Client.Automation.HybridRunbookWorkerGroup - if _, err = client.Delete(ctx, *id); err != nil { - return fmt.Errorf("deleting %s: %v", id, err) - } - return nil - }, - } -} - -func (m HybridRunbookWorkerGroupResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { - return hybridrunbookworkergroup.ValidateHybridRunbookWorkerGroupID -} diff --git a/internal/services/automation/automation_hybrid_runbook_worker_group_resource.go b/internal/services/automation/automation_hybrid_runbook_worker_group_resource.go new file mode 100644 index 000000000000..511f0f484701 --- /dev/null +++ b/internal/services/automation/automation_hybrid_runbook_worker_group_resource.go @@ -0,0 +1,197 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package automation + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" + "github.com/hashicorp/terraform-provider-azurerm/utils" +) + +type HybridRunbookWorkerGroupModel struct { + ResourceGroupName string `tfschema:"resource_group_name"` + AutomationAccountName string `tfschema:"automation_account_name"` + Name string `tfschema:"name"` + CredentialName string `tfschema:"credential_name"` +} + +type HybridRunbookWorkerGroupResource struct{} + +var _ sdk.Resource = (*HybridRunbookWorkerGroupResource)(nil) + +func (m HybridRunbookWorkerGroupResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "resource_group_name": commonschema.ResourceGroupName(), // end if common + "automation_account_name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "credential_name": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + } +} + +func (m HybridRunbookWorkerGroupResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (m HybridRunbookWorkerGroupResource) ModelObject() interface{} { + return &HybridRunbookWorkerGroupModel{} +} + +func (m HybridRunbookWorkerGroupResource) ResourceType() string { + return "azurerm_automation_hybrid_runbook_worker_group" +} + +func (m HybridRunbookWorkerGroupResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + client := meta.Client.Automation.HybridRunbookWorkerGroup + + var model HybridRunbookWorkerGroupModel + if err := meta.Decode(&model); err != nil { + return err + } + + subscriptionID := meta.Client.Account.SubscriptionId + id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID(subscriptionID, model.ResourceGroupName, + model.AutomationAccountName, model.Name) + existing, err := client.Get(ctx, id) + if !response.WasNotFound(existing.HttpResponse) { + if err != nil { + return fmt.Errorf("retreiving %s: %v", id, err) + } + return meta.ResourceRequiresImport(m.ResourceType(), id) + } + req := hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateParameters{ + Name: pointer.To(model.Name), + } + if model.CredentialName != "" { + req.Properties = &hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateProperties{} + req.Properties.Credential = &hybridrunbookworkergroup.RunAsCredentialAssociationProperty{ + Name: utils.String(model.CredentialName), + } + } + // return 201 cause err in autorest sdk + _, err = client.Create(ctx, id, req) + // Workaround swagger issue https://github.com/Azure/azure-rest-api-specs/issues/19741 + if err != nil { + return fmt.Errorf("creating %s: %v", id, err) + } + + meta.SetID(id) + return nil + }, + } +} + +func (m HybridRunbookWorkerGroupResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + id, err := hybridrunbookworkergroup.ParseHybridRunbookWorkerGroupID(meta.ResourceData.Id()) + if err != nil { + return err + } + client := meta.Client.Automation.HybridRunbookWorkerGroup + result, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(result.HttpResponse) { + return meta.MarkAsGone(id) + } + return err + } + if result.Model == nil { + return fmt.Errorf("retrieving %s got nil model", id) + } + var output HybridRunbookWorkerGroupModel + + output.Name = pointer.From(result.Model.Name) + output.AutomationAccountName = id.AutomationAccountName + if model := result.Model; model != nil { + if prop := model.Properties; prop != nil { + if prop.Credential != nil { + output.CredentialName = pointer.From(prop.Credential.Name) + } + } + } + output.ResourceGroupName = id.ResourceGroupName + return meta.Encode(&output) + }, + } +} + +func (m HybridRunbookWorkerGroupResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 10 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) (err error) { + client := meta.Client.Automation.HybridRunbookWorkerGroup + id, err := hybridrunbookworkergroup.ParseHybridRunbookWorkerGroupID(meta.ResourceData.Id()) + if err != nil { + return err + } + + var model HybridRunbookWorkerGroupModel + if err = meta.Decode(&model); err != nil { + return fmt.Errorf("decoding err: %+v", err) + } + + var upd hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateParameters + if meta.ResourceData.HasChange("credential_name") { + upd.Properties = &hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateProperties{} + upd.Properties.Credential = &hybridrunbookworkergroup.RunAsCredentialAssociationProperty{ + Name: utils.String(model.CredentialName), + } + } + if _, err = client.Update(ctx, *id, upd); err != nil { + return fmt.Errorf("updating %s: %v", id, err) + } + + return nil + }, + } +} + +func (m HybridRunbookWorkerGroupResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 10 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + id, err := hybridrunbookworkergroup.ParseHybridRunbookWorkerGroupID(meta.ResourceData.Id()) + if err != nil { + return err + } + meta.Logger.Infof("deleting %s", id) + client := meta.Client.Automation.HybridRunbookWorkerGroup + if _, err = client.Delete(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %v", id, err) + } + return nil + }, + } +} + +func (m HybridRunbookWorkerGroupResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return hybridrunbookworkergroup.ValidateHybridRunbookWorkerGroupID +} diff --git a/internal/services/automation/automation_hybrid_runbook_worker_group_test.go b/internal/services/automation/automation_hybrid_runbook_worker_group_resource_test.go similarity index 100% rename from internal/services/automation/automation_hybrid_runbook_worker_group_test.go rename to internal/services/automation/automation_hybrid_runbook_worker_group_resource_test.go diff --git a/internal/services/automation/automation_hybrid_runbook_worker_resource.go b/internal/services/automation/automation_hybrid_runbook_worker_resource.go new file mode 100644 index 000000000000..f67346b5e325 --- /dev/null +++ b/internal/services/automation/automation_hybrid_runbook_worker_resource.go @@ -0,0 +1,212 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package automation + +import ( + "context" + "fmt" + "net/http" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" + "github.com/hashicorp/terraform-provider-azurerm/utils" +) + +type HybridRunbookWorkerModel struct { + ResourceGroupName string `tfschema:"resource_group_name"` + AutomationAccountName string `tfschema:"automation_account_name"` + WorkerGroupName string `tfschema:"worker_group_name"` + WorkerName string `tfschema:"worker_name"` + WorkerId string `tfschema:"worker_id"` + VmResourceId string `tfschema:"vm_resource_id"` + Ip string `tfschema:"ip"` + RegisteredDateTime string `tfschema:"registration_date_time"` + LastSeenDateTime string `tfschema:"last_seen_date_time"` + WorkerType string `tfschema:"worker_type"` +} + +type HybridRunbookWorkerResource struct{} + +var _ sdk.Resource = (*HybridRunbookWorkerResource)(nil) + +func (m HybridRunbookWorkerResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "resource_group_name": commonschema.ResourceGroupName(), + + "automation_account_name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "worker_group_name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "worker_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.IsUUID, + }, + + "vm_resource_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + } +} + +func (m HybridRunbookWorkerResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "ip": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "registration_date_time": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "last_seen_date_time": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "worker_name": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "worker_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + } +} + +func (m HybridRunbookWorkerResource) ModelObject() interface{} { + return &HybridRunbookWorkerModel{} +} + +func (m HybridRunbookWorkerResource) ResourceType() string { + return "azurerm_automation_hybrid_runbook_worker" +} + +func (m HybridRunbookWorkerResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + client := meta.Client.Automation.HybridRunbookWorker + + var model HybridRunbookWorkerModel + if err := meta.Decode(&model); err != nil { + return err + } + + subscriptionID := meta.Client.Account.SubscriptionId + id := hybridrunbookworker.NewHybridRunbookWorkerID(subscriptionID, model.ResourceGroupName, + model.AutomationAccountName, model.WorkerGroupName, model.WorkerId) + existing, err := client.Get(ctx, id) + if !response.WasNotFound(existing.HttpResponse) { + if err != nil { + return fmt.Errorf("retreiving %s: %v", id, err) + } + return meta.ResourceRequiresImport(m.ResourceType(), id) + } + + req := hybridrunbookworker.HybridRunbookWorkerCreateParameters{} + if model.VmResourceId != "" { + req.Properties.VMResourceId = utils.String(model.VmResourceId) + } + + future, err := client.Create(ctx, id, req) + if err != nil { + // Workaround swagger issue https://github.com/Azure/azure-rest-api-specs/issues/19741 + if !response.WasStatusCode(future.HttpResponse, http.StatusCreated) { + return fmt.Errorf("creating %s: %v", id, err) + } + } + _ = future + + meta.SetID(id) + return nil + }, + } +} + +func (m HybridRunbookWorkerResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + id, err := hybridrunbookworker.ParseHybridRunbookWorkerID(meta.ResourceData.Id()) + if err != nil { + return err + } + client := meta.Client.Automation.HybridRunbookWorker + result, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(result.HttpResponse) { + return meta.MarkAsGone(id) + } + return err + } + if result.Model == nil { + return fmt.Errorf("retrieving %s got nil model", id) + } + + var output HybridRunbookWorkerModel + + // the name in response corresponding to work_id in request + output.WorkerId = pointer.From(result.Model.Name) + output.AutomationAccountName = id.AutomationAccountName + output.ResourceGroupName = id.ResourceGroupName + output.WorkerGroupName = id.HybridRunbookWorkerGroupName + if prop := result.Model.Properties; prop != nil { + output.VmResourceId = pointer.From(prop.VMResourceId) + output.WorkerType = pointer.From((*string)(prop.WorkerType)) + output.LastSeenDateTime = pointer.From(prop.LastSeenDateTime) + output.RegisteredDateTime = pointer.From(prop.RegisteredDateTime) + output.Ip = pointer.From(prop.IP) + output.WorkerName = pointer.From(prop.WorkerName) + } + return meta.Encode(&output) + }, + } +} + +func (m HybridRunbookWorkerResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 10 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + id, err := hybridrunbookworker.ParseHybridRunbookWorkerID(meta.ResourceData.Id()) + if err != nil { + return err + } + meta.Logger.Infof("deleting %s", id) + client := meta.Client.Automation.HybridRunbookWorker + if _, err = client.Delete(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %v", id, err) + } + return nil + }, + } +} + +func (m HybridRunbookWorkerResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return hybridrunbookworker.ValidateHybridRunbookWorkerID +} diff --git a/internal/services/automation/automation_hybrid_runbook_worker_test.go b/internal/services/automation/automation_hybrid_runbook_worker_resource_test.go similarity index 100% rename from internal/services/automation/automation_hybrid_runbook_worker_test.go rename to internal/services/automation/automation_hybrid_runbook_worker_resource_test.go diff --git a/internal/services/automation/automation_job_schedule_resource.go b/internal/services/automation/automation_job_schedule_resource.go index b0558c050598..ef7ebcdd10e4 100644 --- a/internal/services/automation/automation_job_schedule_resource.go +++ b/internal/services/automation/automation_job_schedule_resource.go @@ -20,7 +20,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/automation/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/automation/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -95,7 +94,7 @@ func resourceAutomationJobSchedule() *pluginsdk.Resource { Optional: true, // NOTE: O+C this can remain as this can change if the runbook is updated but cannot be updated by the user Computed: true, - ForceNew: features.FourPointOhBeta(), + ForceNew: true, ValidateFunc: validation.IsUUID, }, diff --git a/internal/services/automation/automation_job_schedule_resource_test.go b/internal/services/automation/automation_job_schedule_resource_test.go index 1d32bcaed7ab..1c6dac377074 100644 --- a/internal/services/automation/automation_job_schedule_resource_test.go +++ b/internal/services/automation/automation_job_schedule_resource_test.go @@ -51,33 +51,6 @@ func TestAccAutomationJobSchedule_complete(t *testing.T) { }) } -func TestAccAutomationJobSchedule_update(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_automation_job_schedule", "test") - r := AutomationJobScheduleResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - { - Config: r.complete(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccAutomationJobSchedule_updateRunbook(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_automation_job_schedule", "test") r := AutomationJobScheduleResource{} diff --git a/internal/services/automation/automation_module_resource.go b/internal/services/automation/automation_module_resource.go index 8ef915bd2895..9b242a88546c 100644 --- a/internal/services/automation/automation_module_resource.go +++ b/internal/services/automation/automation_module_resource.go @@ -4,6 +4,7 @@ package automation import ( + "errors" "fmt" "log" "time" @@ -160,7 +161,7 @@ func resourceAutomationModuleCreateUpdate(d *pluginsdk.ResourceData, meta interf provisioningState = string(*props.ProvisioningState) } if props.Error != nil && props.Error.Message != nil && *props.Error.Message != "" { - return resp, provisioningState, fmt.Errorf(*props.Error.Message) + return resp, provisioningState, errors.New(*props.Error.Message) } return resp, provisioningState, nil } diff --git a/internal/services/automation/automation_powershell72_module_resource.go b/internal/services/automation/automation_powershell72_module_resource.go index 5d35ec457c5a..06c8b8f2097e 100644 --- a/internal/services/automation/automation_powershell72_module_resource.go +++ b/internal/services/automation/automation_powershell72_module_resource.go @@ -5,6 +5,7 @@ package automation import ( "context" + "errors" "fmt" "time" @@ -189,7 +190,7 @@ func (r PowerShell72ModuleResource) Create() sdk.ResourceFunc { provisioningState = string(*props.ProvisioningState) } if props.Error != nil && props.Error.Message != nil && *props.Error.Message != "" { - return resp, provisioningState, fmt.Errorf(*props.Error.Message) + return resp, provisioningState, errors.New(*props.Error.Message) } return resp, provisioningState, nil } @@ -281,7 +282,7 @@ func (r PowerShell72ModuleResource) Update() sdk.ResourceFunc { provisioningState = string(*props.ProvisioningState) } if props.Error != nil && props.Error.Message != nil && *props.Error.Message != "" { - return resp, provisioningState, fmt.Errorf(*props.Error.Message) + return resp, provisioningState, errors.New(*props.Error.Message) } return resp, provisioningState, nil } diff --git a/internal/services/automation/automation_python3_package_resource.go b/internal/services/automation/automation_python3_package_resource.go index 74b92d6270ce..4c55bba27ebe 100644 --- a/internal/services/automation/automation_python3_package_resource.go +++ b/internal/services/automation/automation_python3_package_resource.go @@ -158,6 +158,9 @@ func (m Python3PackageResource) Read() sdk.ResourceFunc { client := meta.Client.Automation.Python3Package result, err := client.Get(ctx, *id) if err != nil { + if response.WasNotFound(result.HttpResponse) { + return meta.MarkAsGone(id) + } return err } diff --git a/internal/services/automation/automation_python3_package_resource_test.go b/internal/services/automation/automation_python3_package_resource_test.go index b56b53b832f5..8ad93e2a7cd2 100644 --- a/internal/services/automation/automation_python3_package_resource_test.go +++ b/internal/services/automation/automation_python3_package_resource_test.go @@ -45,19 +45,12 @@ func TestAccPython3Package_basic(t *testing.T) { }) } -func TestAccPython3Package_update(t *testing.T) { +func TestAccPython3Package_complete(t *testing.T) { data := acceptance.BuildTestData(t, automation.Python3PackageResource{}.ResourceType(), "test") r := Python3PackageResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep("content_uri", "content_version"), - { - Config: r.update(data), + Config: r.complete(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -84,7 +77,7 @@ resource "azurerm_automation_python3_package" "test" { `, a.template(data), data.RandomInteger) } -func (a Python3PackageResource) update(data acceptance.TestData) string { +func (a Python3PackageResource) complete(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/automation/automation_runbook_resource.go b/internal/services/automation/automation_runbook_resource.go index 4ed2210440e9..69e4951848ad 100644 --- a/internal/services/automation/automation_runbook_resource.go +++ b/internal/services/automation/automation_runbook_resource.go @@ -26,7 +26,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) func contentLinkSchema(isDraft bool) *pluginsdk.Schema { @@ -309,22 +308,16 @@ func resourceAutomationRunbookCreateUpdate(d *pluginsdk.ResourceData, meta inter // for existing runbook, if only job_schedule field updated, then skip update runbook if d.IsNewResource() || d.HasChangeExcept("job_schedule") { - location := azure.NormalizeLocation(d.Get("location").(string)) t := d.Get("tags").(map[string]interface{}) - runbookType := runbook.RunbookTypeEnum(d.Get("runbook_type").(string)) - logProgress := d.Get("log_progress").(bool) - logVerbose := d.Get("log_verbose").(bool) - description := d.Get("description").(string) - parameters := runbook.RunbookCreateOrUpdateParameters{ Properties: runbook.RunbookCreateOrUpdateProperties{ - LogVerbose: &logVerbose, - LogProgress: &logProgress, - RunbookType: runbookType, - Description: &description, - LogActivityTrace: utils.Int64(int64(d.Get("log_activity_trace_level").(int))), + LogVerbose: pointer.To(d.Get("log_verbose").(bool)), + LogProgress: pointer.To(d.Get("log_progress").(bool)), + RunbookType: runbook.RunbookTypeEnum(d.Get("runbook_type").(string)), + Description: pointer.To(d.Get("description").(string)), + LogActivityTrace: pointer.To(int64(d.Get("log_activity_trace_level").(int))), }, Location: &location, @@ -540,23 +533,24 @@ func expandDraft(inputs []interface{}) *runbook.RunbookDraft { var res runbook.RunbookDraft res.DraftContentLink = expandContentLink(input["content_link"].([]interface{})) - res.InEdit = utils.Bool(input["edit_mode_enabled"].(bool)) + res.InEdit = pointer.To(input["edit_mode_enabled"].(bool)) parameter := map[string]runbook.RunbookParameter{} for _, iparam := range input["parameters"].([]interface{}) { param := iparam.(map[string]interface{}) key := param["key"].(string) parameter[key] = runbook.RunbookParameter{ - Type: utils.String(param["type"].(string)), - IsMandatory: utils.Bool(param["mandatory"].(bool)), - Position: utils.Int64(int64(param["position"].(int))), - DefaultValue: utils.String(param["default_value"].(string)), + Type: pointer.To(param["type"].(string)), + IsMandatory: pointer.To(param["mandatory"].(bool)), + Position: pointer.To(int64(param["position"].(int))), + DefaultValue: pointer.To(param["default_value"].(string)), } } res.Parameters = ¶meter - var types []string - for _, v := range input["output_types"].([]interface{}) { + typesInput := input["output_types"].([]interface{}) + types := make([]string, 0, len(typesInput)) + for _, v := range typesInput { types = append(types, v.(string)) } diff --git a/internal/services/automation/automation_runbook_resource_test.go b/internal/services/automation/automation_runbook_resource_test.go index c7dec00334ff..fb9ba7884c71 100644 --- a/internal/services/automation/automation_runbook_resource_test.go +++ b/internal/services/automation/automation_runbook_resource_test.go @@ -392,7 +392,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" + name = "acctestRG-auto-%[1]d" location = "%[2]s" } @@ -441,7 +441,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" + name = "acctestRG-auto-%[1]d" location = "%[2]s" } @@ -499,7 +499,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" + name = "acctestRG-auto-%[1]d" location = "%[2]s" } diff --git a/internal/services/automation/automation_schedule_resource.go b/internal/services/automation/automation_schedule_resource.go index 5be6025d6e77..e8a0e366c487 100644 --- a/internal/services/automation/automation_schedule_resource.go +++ b/internal/services/automation/automation_schedule_resource.go @@ -270,7 +270,6 @@ func resourceAutomationScheduleCreate(d *pluginsdk.ResourceData, meta interface{ // only pay attention to interval if frequency is not OneTime, and default it to 1 if not set if parameters.Properties.Frequency != schedule.ScheduleFrequencyOneTime { - var interval interface{} interval = 1 if v, ok := d.GetOk("interval"); ok { @@ -306,7 +305,6 @@ func resourceAutomationScheduleUpdate(d *pluginsdk.ResourceData, meta interface{ existing, err := client.Get(ctx, id) if err != nil { return fmt.Errorf("checking for presence of existing %s: %v", id, err) - } if existing.Model == nil || existing.Model.Properties == nil { diff --git a/internal/services/automation/automation_software_update_configuration_resource.go b/internal/services/automation/automation_software_update_configuration_resource.go index 8179f51c2aab..86e69afc46eb 100644 --- a/internal/services/automation/automation_software_update_configuration_resource.go +++ b/internal/services/automation/automation_software_update_configuration_resource.go @@ -16,7 +16,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" validate4 "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" validate2 "github.com/hashicorp/terraform-provider-azurerm/internal/services/resource/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -137,205 +136,94 @@ type SoftwareUpdateConfigurationResource struct{} var _ sdk.ResourceWithUpdate = SoftwareUpdateConfigurationResource{} func (m SoftwareUpdateConfigurationResource) Arguments() map[string]*pluginsdk.Schema { - linux := pluginsdk.Resource{} - windows := pluginsdk.Resource{} - if !features.FourPointOhBeta() { - linux = pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "reboot": { - Type: pluginsdk.TypeString, - Optional: true, - Default: RebootSettingIfRequired, - ValidateFunc: validation.StringInSlice([]string{ - RebootSettingAlways, - RebootSettingIfRequired, - RebootSettingNever, - RebootSettingRebootOnly, - }, false), - }, - - "classification_included": { - Type: pluginsdk.TypeString, - Optional: true, - ConflictsWith: []string{"linux.0.classifications_included"}, - Computed: true, - ValidateFunc: validation.StringInSlice(softwareupdateconfiguration.PossibleValuesForLinuxUpdateClasses(), false), - Deprecated: "this property is deprecated and will be removed in version 4.0 of the provider, please use `classifications_included` instead.", - }, - - "classifications_included": { - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - ConflictsWith: []string{"linux.0.classification_included"}, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice( - softwareupdateconfiguration.PossibleValuesForLinuxUpdateClasses(), - false), - }, - }, - - "excluded_packages": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - - "included_packages": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, + linux := pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "reboot": { + Type: pluginsdk.TypeString, + Optional: true, + Default: RebootSettingIfRequired, + ValidateFunc: validation.StringInSlice([]string{ + RebootSettingAlways, + RebootSettingIfRequired, + RebootSettingNever, + RebootSettingRebootOnly, + }, false), }, - } - windows = pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "classification_included": { - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ConflictsWith: []string{"windows.0.classifications_included"}, - Deprecated: "this property is deprecated and will be removed in version 4.0 of the provider, please use `classifications_included` instead.", - ValidateFunc: validation.StringInSlice(softwareupdateconfiguration.PossibleValuesForWindowsUpdateClasses(), false), - }, - "classifications_included": { - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - ConflictsWith: []string{"windows.0.classification_included"}, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice(softwareupdateconfiguration.PossibleValuesForWindowsUpdateClasses(), false), - }, - }, - - "excluded_knowledge_base_numbers": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - - "included_knowledge_base_numbers": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - - "reboot": { - Type: pluginsdk.TypeString, - Optional: true, - Default: RebootSettingIfRequired, - ValidateFunc: validation.StringInSlice([]string{ - RebootSettingAlways, - RebootSettingIfRequired, - RebootSettingNever, - RebootSettingRebootOnly, - }, false), + "classifications_included": { + Type: pluginsdk.TypeList, + Required: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringInSlice(softwareupdateconfiguration.PossibleValuesForLinuxUpdateClasses(), false), }, }, - } - } else { - linux = pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "reboot": { - Type: pluginsdk.TypeString, - Optional: true, - Default: RebootSettingIfRequired, - ValidateFunc: validation.StringInSlice([]string{ - RebootSettingAlways, - RebootSettingIfRequired, - RebootSettingNever, - RebootSettingRebootOnly, - }, false), - }, - "classifications_included": { - Type: pluginsdk.TypeList, - Required: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice(softwareupdateconfiguration.PossibleValuesForLinuxUpdateClasses(), false), - }, + "excluded_packages": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringIsNotEmpty, }, + }, - "excluded_packages": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, + "included_packages": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringIsNotEmpty, }, + }, + }, + } - "included_packages": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, + windows := pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "classifications_included": { + Type: pluginsdk.TypeList, + Required: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringInSlice( + softwareupdateconfiguration.PossibleValuesForWindowsUpdateClasses(), + false), }, }, - } - windows = pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "classifications_included": { - Type: pluginsdk.TypeList, - Required: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice( - softwareupdateconfiguration.PossibleValuesForWindowsUpdateClasses(), - false), - }, - }, - "excluded_knowledge_base_numbers": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, + "excluded_knowledge_base_numbers": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringIsNotEmpty, }, + }, - "included_knowledge_base_numbers": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, + "included_knowledge_base_numbers": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringIsNotEmpty, }, + }, - "reboot": { - Type: pluginsdk.TypeString, - Optional: true, - Default: RebootSettingIfRequired, - ValidateFunc: validation.StringInSlice([]string{ - RebootSettingAlways, - RebootSettingIfRequired, - RebootSettingNever, - RebootSettingRebootOnly, - }, false), - }, + "reboot": { + Type: pluginsdk.TypeString, + Optional: true, + Default: RebootSettingIfRequired, + ValidateFunc: validation.StringInSlice([]string{ + RebootSettingAlways, + RebootSettingIfRequired, + RebootSettingNever, + RebootSettingRebootOnly, + }, false), }, - } + }, } + r := map[string]*pluginsdk.Schema{ "automation_account_id": { Type: pluginsdk.TypeString, @@ -458,7 +346,6 @@ func (m SoftwareUpdateConfigurationResource) Arguments() map[string]*pluginsdk.S "tag_filter": { Type: pluginsdk.TypeString, Optional: true, - Computed: !features.FourPointOhBeta(), ValidateFunc: validation.StringInSlice([]string{ string(softwareupdateconfiguration.TagOperatorsAny), string(softwareupdateconfiguration.TagOperatorsAll), @@ -514,7 +401,6 @@ func (m SoftwareUpdateConfigurationResource) Arguments() map[string]*pluginsdk.S "start_time_offset_minutes": { Type: pluginsdk.TypeFloat, Optional: true, - Computed: !features.FourPointOhBeta(), }, "expiry_time": { @@ -529,7 +415,6 @@ func (m SoftwareUpdateConfigurationResource) Arguments() map[string]*pluginsdk.S "expiry_time_offset_minutes": { Type: pluginsdk.TypeFloat, Optional: true, - Computed: !features.FourPointOhBeta(), }, "is_enabled": { @@ -550,7 +435,6 @@ func (m SoftwareUpdateConfigurationResource) Arguments() map[string]*pluginsdk.S "next_run_offset_minutes": { Type: pluginsdk.TypeFloat, Optional: true, - Computed: !features.FourPointOhBeta(), }, "interval": { @@ -692,24 +576,11 @@ func (m SoftwareUpdateConfigurationResource) Arguments() map[string]*pluginsdk.S }, } - if !features.FourPointOhBeta() { - r["operating_system"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{ - string(softwareupdateconfiguration.OperatingSystemTypeLinux), - string(softwareupdateconfiguration.OperatingSystemTypeWindows), - }, false), - Deprecated: "This property has been deprecated and will be removed in a future release. The use of either the `linux` or `windows` blocks replaces setting this value directly. This value is ignored by the provider.", - } - } - return r } func (m SoftwareUpdateConfigurationResource) Attributes() map[string]*pluginsdk.Schema { - r := map[string]*pluginsdk.Schema{ + return map[string]*pluginsdk.Schema{ "error_code": { Type: pluginsdk.TypeString, Computed: true, @@ -720,15 +591,6 @@ func (m SoftwareUpdateConfigurationResource) Attributes() map[string]*pluginsdk. Computed: true, }, } - - if !features.FourPointOhBeta() { - r["error_meesage"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Computed: true, - Deprecated: "`error_meesage` will be removed in favour of `error_message` in version 4.0 of the AzureRM Provider", - } - } - return r } func (m SoftwareUpdateConfigurationResource) ModelObject() interface{} { @@ -811,10 +673,6 @@ func (m SoftwareUpdateConfigurationResource) Read() sdk.ResourceFunc { IncludedPackages: pointer.From(linux.IncludedPackageNameMasks), } - if !features.FourPointOhBeta() && len(strings.Split(string(pointer.From(linux.IncludedPackageClassifications)), ", ")) == 1 { - l.Classification = string(pointer.From(linux.IncludedPackageClassifications)) - } - state.Linux = []Linux{l} state.OperatingSystem = string(softwareupdateconfiguration.OperatingSystemTypeLinux) } @@ -826,10 +684,6 @@ func (m SoftwareUpdateConfigurationResource) Read() sdk.ResourceFunc { RebootSetting: pointer.From(windows.RebootSetting), } - if !features.FourPointOhBeta() && len(strings.Split(string(pointer.From(windows.IncludedUpdateClassifications)), ", ")) == 1 { - w.Classification = string(pointer.From(windows.IncludedUpdateClassifications)) - } - state.Windows = []Windows{w} state.OperatingSystem = string(softwareupdateconfiguration.OperatingSystemTypeWindows) } @@ -1076,7 +930,6 @@ func (m SoftwareUpdateConfigurationResource) Update() sdk.ResourceFunc { } else { target.NonAzureQueries = &[]softwareupdateconfiguration.NonAzureQueryProperties{} } - } else { target.AzureQueries = &[]softwareupdateconfiguration.AzureQueryProperties{} target.NonAzureQueries = &[]softwareupdateconfiguration.NonAzureQueryProperties{} @@ -1340,11 +1193,6 @@ func expandUpdateConfig(input SoftwareUpdateConfigurationModel) *softwareupdatec if v.Reboot != "" { updateConfig.Linux.RebootSetting = pointer.To(v.Reboot) } - if !features.FourPointOhBeta() { - if v.Classification != "" { - updateConfig.Linux.IncludedPackageClassifications = pointer.To(softwareupdateconfiguration.LinuxUpdateClasses(v.Classification)) - } - } if len(v.Classifications) > 0 { updateConfig.Linux.IncludedPackageClassifications = pointer.To(softwareupdateconfiguration.LinuxUpdateClasses(strings.Join(v.Classifications, ","))) } @@ -1366,9 +1214,6 @@ func expandUpdateConfig(input SoftwareUpdateConfigurationModel) *softwareupdatec w.IncludedKbNumbers = pointer.To(v.IncludedKbs) } - if !features.FourPointOhBeta() && len(v.Classification) == 1 { - w.IncludedUpdateClassifications = pointer.To(softwareupdateconfiguration.WindowsUpdateClasses(strings.Join(v.Classifications, ","))) - } if len(v.Classifications) > 0 { w.IncludedUpdateClassifications = pointer.To(softwareupdateconfiguration.WindowsUpdateClasses(strings.Join(v.Classifications, ","))) } diff --git a/internal/services/automation/automation_watcher_resource.go b/internal/services/automation/automation_watcher_resource.go index 07c3127ae756..ab73d1277690 100644 --- a/internal/services/automation/automation_watcher_resource.go +++ b/internal/services/automation/automation_watcher_resource.go @@ -8,6 +8,7 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher" @@ -192,11 +193,11 @@ func (m WatcherResource) Read() sdk.ResourceFunc { if model := resp.Model; model != nil { if props := resp.Model.Properties; props != nil { output.AutomationAccountID = watcher.NewAutomationAccountID(id.SubscriptionId, id.ResourceGroupName, id.AutomationAccountName).ID() - output.ExecutionFrequencyInSeconds = utils.NormaliseNilableInt64(props.ExecutionFrequencyInSeconds) - output.ScriptName = utils.NormalizeNilableString(props.ScriptName) - output.ScriptRunOn = utils.NormalizeNilableString(props.ScriptRunOn) - output.Description = utils.NormalizeNilableString(props.Description) - output.Status = utils.NormalizeNilableString(props.Status) + output.ExecutionFrequencyInSeconds = pointer.From(props.ExecutionFrequencyInSeconds) + output.ScriptName = pointer.From(props.ScriptName) + output.ScriptRunOn = pointer.From(props.ScriptRunOn) + output.Description = pointer.From(props.Description) + output.Status = pointer.From(props.Status) if props.ScriptParameters != nil { output.ScriptParameters = flattenMap(*props.ScriptParameters) diff --git a/internal/services/automation/automation_webhook_resource.go b/internal/services/automation/automation_webhook_resource.go index 6eee362eb2cd..83891ebc8517 100644 --- a/internal/services/automation/automation_webhook_resource.go +++ b/internal/services/automation/automation_webhook_resource.go @@ -206,7 +206,6 @@ func resourceAutomationWebhookRead(d *pluginsdk.ResourceData, meta interface{}) if model := resp.Model; model != nil { if props := model.Properties; props != nil { - d.Set("expiry_time", props.ExpiryTime) d.Set("enabled", props.IsEnabled) diff --git a/internal/services/automation/helper/automation_job_schedule.go b/internal/services/automation/helper/automation_job_schedule.go index c0822a249fa2..7017891ed3cf 100644 --- a/internal/services/automation/helper/automation_job_schedule.go +++ b/internal/services/automation/helper/automation_job_schedule.go @@ -119,7 +119,7 @@ func ResourceAutomationJobScheduleDigest(v interface{}) string { } buf.WriteString(fmt.Sprintf("%s-%s-", scheduleName, runOn)) - var keys []string + keys := make([]string, 0, len(paramString)) for k := range paramString { // params key will be returned as title-cased even created with lower-case keys = append(keys, k) diff --git a/internal/services/automation/registration.go b/internal/services/automation/registration.go index 54d38f9cbb0e..965b061e5b0e 100644 --- a/internal/services/automation/registration.go +++ b/internal/services/automation/registration.go @@ -10,8 +10,10 @@ import ( type Registration struct{} -var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} -var _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} +var ( + _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} + _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} +) func (r Registration) DataSources() []sdk.DataSource { return []sdk.DataSource{ diff --git a/internal/services/azurestackhci/registration.go b/internal/services/azurestackhci/registration.go index bc417dbaf9e1..8eb7a187bef0 100644 --- a/internal/services/azurestackhci/registration.go +++ b/internal/services/azurestackhci/registration.go @@ -52,7 +52,10 @@ func (r Registration) DataSources() []sdk.DataSource { func (r Registration) Resources() []sdk.Resource { return []sdk.Resource{ StackHCIDeploymentSettingResource{}, + StackHCIExtensionResource{}, StackHCILogicalNetworkResource{}, + StackHCIMarketplaceGalleryImageResource{}, + StackHCINetworkInterfaceResource{}, StackHCIStoragePathResource{}, StackHCIVirtualHardDiskResource{}, } diff --git a/internal/services/azurestackhci/stack_hci_extension_resource.go b/internal/services/azurestackhci/stack_hci_extension_resource.go new file mode 100644 index 000000000000..3bf9328ba2a5 --- /dev/null +++ b/internal/services/azurestackhci/stack_hci_extension_resource.go @@ -0,0 +1,364 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package azurestackhci + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +var ( + _ sdk.Resource = StackHCIExtensionResource{} + _ sdk.ResourceWithUpdate = StackHCIExtensionResource{} +) + +type StackHCIExtensionResource struct{} + +func (r StackHCIExtensionResource) ResourceType() string { + return "azurerm_stack_hci_extension" +} + +func (r StackHCIExtensionResource) ModelObject() interface{} { + return &StackHCIExtensionResourceModel{} +} + +func (r StackHCIExtensionResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return extensions.ValidateExtensionID +} + +type StackHCIExtensionResourceModel struct { + Name string `tfschema:"name"` + ArcSettingId string `tfschema:"arc_setting_id"` + AutoUpgradeMinorVersionEnabled bool `tfschema:"auto_upgrade_minor_version_enabled"` + AutomaticUpgradeEnabled bool `tfschema:"automatic_upgrade_enabled"` + ProtectedSettings string `tfschema:"protected_settings"` + Publisher string `tfschema:"publisher"` + Settings string `tfschema:"settings"` + Type string `tfschema:"type"` + TypeHandlerVersion string `tfschema:"type_handler_version"` +} + +func (r StackHCIExtensionResource) Arguments() map[string]*schema.Schema { + return map[string]*schema.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.All( + validation.StringIsNotEmpty, + validation.StringDoesNotContainAny("/"), + ), + }, + + "arc_setting_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: extensions.ValidateArcSettingID, + }, + + "publisher": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "type": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "auto_upgrade_minor_version_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + ForceNew: true, + }, + + "automatic_upgrade_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + + "protected_settings": { + Type: pluginsdk.TypeString, + Optional: true, + Sensitive: true, + ValidateFunc: validation.StringIsJSON, + DiffSuppressFunc: pluginsdk.SuppressJsonDiff, + }, + + "settings": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsJSON, + DiffSuppressFunc: pluginsdk.SuppressJsonDiff, + }, + + "type_handler_version": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + } +} + +func (r StackHCIExtensionResource) Attributes() map[string]*schema.Schema { + return map[string]*schema.Schema{} +} + +func (r StackHCIExtensionResource) CustomizeDiff() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + var config StackHCIExtensionResourceModel + if err := metadata.DecodeDiff(&config); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + if config.AutomaticUpgradeEnabled && config.TypeHandlerVersion != "" { + return fmt.Errorf("`type_handler_version` cannot be set if `automatic_upgrade_enabled` is true") + } + + return nil + }, + } +} + +func (r StackHCIExtensionResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.AzureStackHCI.Extensions + + var config StackHCIExtensionResourceModel + if err := metadata.Decode(&config); err != nil { + return err + } + + arcSettingId, err := extensions.ParseArcSettingID(config.ArcSettingId) + if err != nil { + return err + } + + id := extensions.NewExtensionID(arcSettingId.SubscriptionId, arcSettingId.ResourceGroupName, arcSettingId.ClusterName, arcSettingId.ArcSettingName, config.Name) + + existing, err := client.Get(ctx, id) + if err != nil && !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for presence of existing %s: %+v", id, err) + } + if !response.WasNotFound(existing.HttpResponse) { + return metadata.ResourceRequiresImport(r.ResourceType(), id) + } + + input := extensions.Extension{ + Properties: &extensions.ExtensionProperties{ + ExtensionParameters: &extensions.ExtensionParameters{ + AutoUpgradeMinorVersion: pointer.To(config.AutoUpgradeMinorVersionEnabled), + EnableAutomaticUpgrade: pointer.To(config.AutomaticUpgradeEnabled), + Publisher: pointer.To(config.Publisher), + Type: pointer.To(config.Type), + }, + }, + } + + if config.TypeHandlerVersion != "" { + input.Properties.ExtensionParameters.TypeHandlerVersion = pointer.To(config.TypeHandlerVersion) + } + + if config.Settings != "" { + expandedSetting, err := pluginsdk.ExpandJsonFromString(config.Settings) + if err != nil { + return fmt.Errorf("expanding `setting`: %+v", err) + } + + input.Properties.ExtensionParameters.Settings = pointer.To(interface{}(expandedSetting)) + } + + if config.ProtectedSettings != "" { + expandedSetting, err := pluginsdk.ExpandJsonFromString(config.ProtectedSettings) + if err != nil { + return fmt.Errorf("expanding `protected_settings`: %+v", err) + } + + input.Properties.ExtensionParameters.ProtectedSettings = pointer.To(interface{}(expandedSetting)) + } + + if err := client.CreateThenPoll(ctx, id, input); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + return nil + }, + } +} + +func (r StackHCIExtensionResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.AzureStackHCI.Extensions + + id, err := extensions.ParseExtensionID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + existing, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(existing.HttpResponse) { + return metadata.MarkAsGone(*id) + } + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + // protected_settingss is not returned in the response, so we read it from the state + var extension, config StackHCIExtensionResourceModel + + if err := metadata.Decode(&config); err != nil { + return err + } + extension.ProtectedSettings = config.ProtectedSettings + + if model := existing.Model; model != nil { + extension.Name = id.ExtensionName + extension.ArcSettingId = extensions.NewArcSettingID(id.SubscriptionId, id.ResourceGroupName, id.ClusterName, id.ArcSettingName).ID() + + if model.Properties != nil && model.Properties.ExtensionParameters != nil { + param := model.Properties.ExtensionParameters + extension.AutomaticUpgradeEnabled = pointer.From(param.EnableAutomaticUpgrade) + extension.AutoUpgradeMinorVersionEnabled = pointer.From(param.AutoUpgradeMinorVersion) + extension.Publisher = pointer.From(param.Publisher) + extension.Type = pointer.From(param.Type) + extension.TypeHandlerVersion = pointer.From(param.TypeHandlerVersion) + + var setting string + if param.Settings != nil { + setting, err = pluginsdk.FlattenJsonToString((*param.Settings).(map[string]interface{})) + if err != nil { + return fmt.Errorf("flatenning `settings`: %+v", err) + } + } + extension.Settings = setting + } + } + + metadata.SetID(id) + + return metadata.Encode(&extension) + }, + } +} + +func (r StackHCIExtensionResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.AzureStackHCI.Extensions + + id, err := extensions.ParseExtensionID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + if err := client.DeleteThenPoll(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %+v", id, err) + } + + return nil + }, + } +} + +func (r StackHCIExtensionResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.AzureStackHCI.Extensions + + var config StackHCIExtensionResourceModel + if err := metadata.Decode(&config); err != nil { + return err + } + + id, err := extensions.ParseExtensionID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.Get(ctx, *id) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + model := resp.Model + + if model == nil || model.Properties == nil || model.Properties.ExtensionParameters == nil { + return fmt.Errorf("retrieving %s: `model` was nil", *id) + } + + updateModel := extensions.ExtensionPatch{ + Properties: &extensions.ExtensionPatchProperties{ + ExtensionParameters: &extensions.ExtensionPatchParameters{}, + }, + } + + if metadata.ResourceData.HasChange("automatic_upgrade_enabled") { + updateModel.Properties.ExtensionParameters.EnableAutomaticUpgrade = pointer.To(config.AutomaticUpgradeEnabled) + } + + if metadata.ResourceData.HasChange("protected_settings") { + if config.ProtectedSettings != "" { + expandedSetting, err := pluginsdk.ExpandJsonFromString(config.ProtectedSettings) + if err != nil { + return fmt.Errorf("expanding `protected_settings`: %+v", err) + } + + updateModel.Properties.ExtensionParameters.ProtectedSettings = pointer.To(interface{}(expandedSetting)) + } else { + var emptyInterface interface{} + updateModel.Properties.ExtensionParameters.Settings = pointer.To(emptyInterface) + } + } + + if metadata.ResourceData.HasChange("settings") { + if config.Settings != "" { + expandedSetting, err := pluginsdk.ExpandJsonFromString(config.Settings) + if err != nil { + return fmt.Errorf("expanding `setting`: %+v", err) + } + + updateModel.Properties.ExtensionParameters.Settings = pointer.To(interface{}(expandedSetting)) + } else { + var emptyInterface interface{} + updateModel.Properties.ExtensionParameters.Settings = pointer.To(emptyInterface) + } + } + + if metadata.ResourceData.HasChange("type_handler_version") { + updateModel.Properties.ExtensionParameters.TypeHandlerVersion = pointer.To(config.TypeHandlerVersion) + } + + if err := client.UpdateThenPoll(ctx, *id, updateModel); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + + return nil + }, + } +} diff --git a/internal/services/azurestackhci/stack_hci_extension_resource_test.go b/internal/services/azurestackhci/stack_hci_extension_resource_test.go new file mode 100644 index 000000000000..95736f3cd837 --- /dev/null +++ b/internal/services/azurestackhci/stack_hci_extension_resource_test.go @@ -0,0 +1,210 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package azurestackhci_test + +import ( + "context" + "fmt" + "os" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type StackHCIExtensionResource struct{} + +const arcSettingIdEnv = "ARM_TEST_STACK_HCI_ARC_SETTING_ID" + +func TestAccStackHCIExtension_basic(t *testing.T) { + arcSettingId := os.Getenv(arcSettingIdEnv) + if arcSettingId == "" { + t.Skipf("skipping since %q has not been set", arcSettingIdEnv) + } + + data := acceptance.BuildTestData(t, "azurerm_stack_hci_extension", "test") + r := StackHCIExtensionResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("protected_settings"), + }) +} + +func TestAccStackHCIExtension_complete(t *testing.T) { + arcSettingId := os.Getenv(arcSettingIdEnv) + if arcSettingId == "" { + t.Skipf("skipping since %q has not been set", arcSettingIdEnv) + } + + data := acceptance.BuildTestData(t, "azurerm_stack_hci_extension", "test") + r := StackHCIExtensionResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("protected_settings"), + }) +} + +func TestAccStackHCIExtension_update(t *testing.T) { + arcSettingId := os.Getenv(arcSettingIdEnv) + if arcSettingId == "" { + t.Skipf("skipping since %q has not been set", arcSettingIdEnv) + } + + data := acceptance.BuildTestData(t, "azurerm_stack_hci_extension", "test") + r := StackHCIExtensionResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("protected_settings"), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("protected_settings"), + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("protected_settings"), + }) +} + +func TestAccStackHCIExtension_requiresImport(t *testing.T) { + arcSettingId := os.Getenv(arcSettingIdEnv) + if arcSettingId == "" { + t.Skipf("skipping since %q has not been set", arcSettingIdEnv) + } + + data := acceptance.BuildTestData(t, "azurerm_stack_hci_extension", "test") + r := StackHCIExtensionResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.RequiresImportErrorStep(r.requiresImport), + }) +} + +func (r StackHCIExtensionResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + clusterClient := client.AzureStackHCI.Extensions + id, err := extensions.ParseExtensionID(state.ID) + if err != nil { + return nil, err + } + + resp, err := clusterClient.Get(ctx, *id) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", *id, err) + } + + return pointer.To(resp.Model != nil), nil +} + +func (r StackHCIExtensionResource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_stack_hci_extension" "test" { + name = "acctest-shce-%[2]s" + arc_setting_id = %[3]q + publisher = "Microsoft.EnterpriseCloud.Monitoring" + type = "MicrosoftMonitoringAgent" +} +`, r.template(data), data.RandomString, os.Getenv(arcSettingIdEnv)) +} + +func (r StackHCIExtensionResource) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_stack_hci_extension" "test" { + name = "acctest-shce-%[2]s" + arc_setting_id = %[3]q + publisher = "Microsoft.EnterpriseCloud.Monitoring" + type = "MicrosoftMonitoringAgent" + auto_upgrade_minor_version_enabled = true + automatic_upgrade_enabled = false + type_handler_version = "1.22.0" + + protected_settings = < 0 { - return fmt.Errorf("the following CDN FrontDoor Custom Domain(s) do not belong to the expected CDN FrontDoor Profile(Name: %q). Please remove the following CDN FrontDoor Custom Domain(s) from your CDN Route Disable Link To Default Domain configuration: %s", routeProfile, strings.Join(wrongProfile, ", ")) - } - - // Make sure the resource is referencing all of the custom domains that are associated with the route... - missingDomains := make([]string, 0) - - for _, v := range routeCustomDomains { - // If this was updated by the portal, it lowercases to resource ID... - customDomain, err := parse.FrontDoorCustomDomainID(v.(string)) - if err != nil { - return fmt.Errorf("unable to parse %q: %+v", v.(string), err) - } - - if !sliceContainsString(resourceCustomDomains, customDomain.ID()) { - missingDomains = append(missingDomains, fmt.Sprintf("%q", customDomain.ID())) - } - } - - if len(missingDomains) > 0 { - return fmt.Errorf("does not contain all of the CDN FrontDoor Custom Domains that are associated with the CDN FrontDoor Route(Name: %q). Please add the following CDN FrontDoor Custom Domain(s) to your CDN Route Disable Link To Default Domain configuration: %s", routeName, strings.Join(missingDomains, ", ")) - } - - // Make sure all of the custom domains that are referenced by the resource are actually associated with the route... - notAssociated := make([]string, 0) - - for _, v := range resourceCustomDomains { - customDomain, err := parse.FrontDoorCustomDomainID(v.(string)) - if err != nil { - return fmt.Errorf("unable to parse %q: %+v", v.(string), err) - } - - if !sliceContainsString(routeCustomDomains, customDomain.ID()) { - notAssociated = append(notAssociated, fmt.Sprintf("%q", customDomain.ID())) - } - } - - if len(notAssociated) > 0 { - return fmt.Errorf("contains CDN FrontDoor Custom Domains that are not associated with the CDN FrontDoor Route(Name: %q). Please remove the following CDN FrontDoor Custom Domain(s) from your CDN Route Disable Link To Default Domain configuration: %s", routeName, strings.Join(notAssociated, ", ")) - } - } - - return nil -} - func validateRoutesCustomDomainProfile(customDomains []interface{}, routeProfile string) error { wrongProfile := make([]string, 0) diff --git a/internal/services/cdn/cdn_frontdoor_origin_resource.go b/internal/services/cdn/cdn_frontdoor_origin_resource.go index 5a0086f66a40..430ccfd7d531 100644 --- a/internal/services/cdn/cdn_frontdoor_origin_resource.go +++ b/internal/services/cdn/cdn_frontdoor_origin_resource.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/azuresdkhacks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/validate" @@ -73,19 +72,7 @@ func resourceCdnFrontDoorOrigin() *pluginsdk.Resource { "enabled": { Type: pluginsdk.TypeBool, Optional: true, - Computed: !features.FourPointOhBeta(), - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return true - }(), - ConflictsWith: func() []string { - if !features.FourPointOhBeta() { - return []string{"health_probes_enabled"} - } - return []string{} - }(), + Default: true, }, "http_port": { @@ -160,18 +147,6 @@ func resourceCdnFrontDoorOrigin() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - // The API comments about this properties function is incorrect, it does - // not disable the health probes it disabled the origin resource itself - resource.Schema["health_probes_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - Deprecated: "`health_probes_enabled` will be removed in favour of the `enabled` property in version 4.0 of the AzureRM Provider.", - ConflictsWith: []string{"enabled"}, - } - } - return resource } @@ -219,9 +194,6 @@ func resourceCdnFrontDoorOriginCreate(d *pluginsdk.ResourceData, meta interface{ skuName := profile.Sku.Name var enabled bool - if !features.FourPointOhBeta() { - enabled = d.Get("health_probes_enabled").(bool) - } if !pluginsdk.IsExplicitlyNullInConfig(d, "enabled") { enabled = d.Get("enabled").(bool) } @@ -292,9 +264,6 @@ func resourceCdnFrontDoorOriginRead(d *pluginsdk.ResourceData, meta interface{}) } d.Set("certificate_name_check_enabled", props.EnforceCertificateNameCheck) - if !features.FourPointOhBeta() { - d.Set("health_probes_enabled", flattenEnabledBool(props.EnabledState)) - } d.Set("enabled", flattenEnabledBool(props.EnabledState)) d.Set("host_name", props.HostName) d.Set("http_port", props.HTTPPort) @@ -325,12 +294,6 @@ func resourceCdnFrontDoorOriginUpdate(d *pluginsdk.ResourceData, meta interface{ params.EnforceCertificateNameCheck = utils.Bool(d.Get("certificate_name_check_enabled").(bool)) } - if !features.FourPointOhBeta() { - if d.HasChange("health_probes_enabled") { - params.EnabledState = expandEnabledBool(d.Get("health_probes_enabled").(bool)) - } - } - if d.HasChange("enabled") { params.EnabledState = expandEnabledBool(d.Get("enabled").(bool)) } diff --git a/internal/services/cdn/cdn_frontdoor_origin_resource_test.go b/internal/services/cdn/cdn_frontdoor_origin_resource_test.go index fd7f04dfcd80..3e2049d97e4c 100644 --- a/internal/services/cdn/cdn_frontdoor_origin_resource_test.go +++ b/internal/services/cdn/cdn_frontdoor_origin_resource_test.go @@ -11,14 +11,12 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) -type CdnFrontDoorOriginResource struct { -} +type CdnFrontDoorOriginResource struct{} func TestAccCdnFrontDoorOrigin_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_cdn_frontdoor_origin", "test") @@ -34,24 +32,6 @@ func TestAccCdnFrontDoorOrigin_basic(t *testing.T) { }) } -func TestAccCdnFrontDoorOrigin_basicThreePointOh(t *testing.T) { - if !features.FourPointOhBeta() { - data := acceptance.BuildTestData(t, "azurerm_cdn_frontdoor_origin", "test") - r := CdnFrontDoorOriginResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basicThreePointOh(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) - } else { - t.Skip("Test no longer valid due to deprecation of the 'health_probes_enabled' field in the 4.x version of the provider") - } -} - func TestAccCdnFrontDoorOrigin_requiresImport(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_cdn_frontdoor_origin", "test") r := CdnFrontDoorOriginResource{} @@ -499,31 +479,6 @@ resource "azurerm_cdn_frontdoor_origin" "test" { `, template, data.RandomInteger) } -func (r CdnFrontDoorOriginResource) basicThreePointOh(data acceptance.TestData) string { - template := r.template(data, "Standard_AzureFrontDoor", false) - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -%s - -resource "azurerm_cdn_frontdoor_origin" "test" { - name = "acctest-cdnfdorigin-%d" - cdn_frontdoor_origin_group_id = azurerm_cdn_frontdoor_origin_group.test.id - - health_probes_enabled = true - certificate_name_check_enabled = false - host_name = "contoso.com" - http_port = 80 - https_port = 443 - origin_host_header = "www.contoso.com" - priority = 1 - weight = 1 -} -`, template, data.RandomInteger) -} - func (r CdnFrontDoorOriginResource) requiresImport(data acceptance.TestData) string { config := r.basic(data) return fmt.Sprintf(` diff --git a/internal/services/cdn/cdn_frontdoor_route_disable_link_to_default_domain_resource.go b/internal/services/cdn/cdn_frontdoor_route_disable_link_to_default_domain_resource.go deleted file mode 100644 index bf8a943c42b4..000000000000 --- a/internal/services/cdn/cdn_frontdoor_route_disable_link_to_default_domain_resource.go +++ /dev/null @@ -1,384 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package cdn - -import ( - "fmt" - "log" - "time" - - "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2021-06-01/cdn" // nolint: staticcheck - "github.com/hashicorp/go-uuid" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/locks" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/azuresdkhacks" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -func resourceCdnFrontDoorRouteDisableLinkToDefaultDomain() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceCdnFrontDoorRouteDisableLinkToDefaultDomainCreate, - Read: resourceCdnFrontDoorRouteDisableLinkToDefaultDomainRead, - Update: resourceCdnFrontDoorRouteDisableLinkToDefaultDomainUpdate, - Delete: resourceCdnFrontDoorRouteDisableLinkToDefaultDomainDelete, - - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(30 * time.Minute), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Update: pluginsdk.DefaultTimeout(30 * time.Minute), - Delete: pluginsdk.DefaultTimeout(30 * time.Minute), - }, - - Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - if _, err := parse.FrontDoorRouteDisableLinkToDefaultDomainID(id); err != nil { - return err - } - return nil - }), - - DeprecationMessage: "The `azurerm_cdn_frontdoor_route_disable_link_to_default_domain` resource has been deprecated and will be removed in v4.0 of the AzureRM provider in favour of the 'link_to_default_domain' property in the `azurerm_cdn_frontdoor_route` resource.", - - Schema: map[string]*pluginsdk.Schema{ - "cdn_frontdoor_route_id": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.FrontDoorRouteID, - }, - - "cdn_frontdoor_custom_domain_ids": { - Type: pluginsdk.TypeList, - Required: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validate.FrontDoorCustomDomainID, - }, - }, - }, - } -} - -func resourceCdnFrontDoorRouteDisableLinkToDefaultDomainCreate(d *pluginsdk.ResourceData, meta interface{}) error { - routeClient := meta.(*clients.Client).Cdn.FrontDoorRoutesClient - workaroundsClient := azuresdkhacks.NewCdnFrontDoorRoutesWorkaroundClient(routeClient) - routeCtx, routeCancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) - defer routeCancel() - - log.Printf("[INFO] preparing arguments for CDN FrontDoor Route Unlink Default Domain") - - customDomains := d.Get("cdn_frontdoor_custom_domain_ids").([]interface{}) - - routeId, err := parse.FrontDoorRouteID(d.Get("cdn_frontdoor_route_id").(string)) - if err != nil { - return fmt.Errorf("creating Front Door Route Disable Link To Default Domain: %+v", err) - } - - // create the resource id - uuid, err := uuid.GenerateUUID() - if err != nil { - return fmt.Errorf("generating UUID: %+v", err) - } - - id := parse.NewFrontDoorRouteDisableLinkToDefaultDomainID(routeId.SubscriptionId, routeId.ResourceGroup, routeId.ProfileName, routeId.AfdEndpointName, routeId.RouteName, uuid) - - locks.ByName(routeId.RouteName, cdnFrontDoorRouteResourceName) - defer locks.UnlockByName(routeId.RouteName, cdnFrontDoorRouteResourceName) - - for _, v := range customDomains { - customDomainId, err := parse.FrontDoorCustomDomainID(v.(string)) - if err != nil { - return fmt.Errorf("creating %s: %+v", id, err) - } - - locks.ByName(customDomainId.CustomDomainName, cdnFrontDoorCustomDomainResourceName) - defer locks.UnlockByName(customDomainId.CustomDomainName, cdnFrontDoorCustomDomainResourceName) - } - - existing, err := routeClient.Get(routeCtx, routeId.ResourceGroup, routeId.ProfileName, routeId.AfdEndpointName, routeId.RouteName) - if err != nil { - if utils.ResponseWasNotFound(existing.Response) { - return fmt.Errorf("creating %s: %s was not found", id, routeId) - } - - return fmt.Errorf("retrieving existing %s: %+v", *routeId, err) - } - - props := existing.RouteProperties - if props == nil { - return fmt.Errorf("creating %s: %s properties are 'nil'", id, *routeId) - } - - resourceCustomDomains := d.Get("cdn_frontdoor_custom_domain_ids").([]interface{}) - routeCustomDomains, err := flattenCustomDomainActivatedResourceArray(props.CustomDomains) - if err != nil { - return err - } - - // make sure its valid to disable the LinkToDefaultDomain on this route... - if len(routeCustomDomains) == 0 { - return fmt.Errorf("creating %s: it is invalid to disable the 'LinkToDefaultDomain' for the CDN Front Door Route(Name: %s) since the route does not have any CDN Front Door Custom Domains associated with it", id, routeId.RouteName) - } - - // validate the custom domains... - if err := validateCustomDomainLinkToDefaultDomainState(resourceCustomDomains, routeCustomDomains, routeId.RouteName, routeId.ProfileName); err != nil { - return fmt.Errorf("creating %s: %+v", id, err) - } - - // If it is already disabled do not update the route... - if props.LinkToDefaultDomain != cdn.LinkToDefaultDomainDisabled { - updateProps := azuresdkhacks.RouteUpdatePropertiesParameters{ - CustomDomains: expandCustomDomainActivatedResourceArray(customDomains), - } - - // Since this unlink default domain resource always set the value to false - updateProps.LinkToDefaultDomain = cdn.LinkToDefaultDomainDisabled - - // NOTE: You must pull the Cache Configuration from the existing route else you will get a diff, because a nil value means disabled - if props.CacheConfiguration != nil { - updateProps.CacheConfiguration = props.CacheConfiguration - } - - updateParams := azuresdkhacks.RouteUpdateParameters{ - RouteUpdatePropertiesParameters: &updateProps, - } - - future, err := workaroundsClient.Update(routeCtx, routeId.ResourceGroup, routeId.ProfileName, routeId.AfdEndpointName, routeId.RouteName, updateParams) - if err != nil { - return fmt.Errorf("creating %s: %+v", id, err) - } - if err = future.WaitForCompletionRef(routeCtx, routeClient.Client); err != nil { - return fmt.Errorf("waiting for the creation of %s: %+v", id, err) - } - } - - d.SetId(id.ID()) - d.Set("cdn_frontdoor_route_id", routeId.ID()) - d.Set("cdn_frontdoor_custom_domain_ids", customDomains) - - return resourceCdnFrontDoorRouteDisableLinkToDefaultDomainRead(d, meta) -} - -func resourceCdnFrontDoorRouteDisableLinkToDefaultDomainRead(d *pluginsdk.ResourceData, meta interface{}) error { - routeClient := meta.(*clients.Client).Cdn.FrontDoorRoutesClient - routeCtx, routeCancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer routeCancel() - - customDomainClient := meta.(*clients.Client).Cdn.FrontDoorCustomDomainsClient - customDomainCtx, customDomainCancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer customDomainCancel() - - id, err := parse.FrontDoorRouteDisableLinkToDefaultDomainID(d.Id()) - if err != nil { - return err - } - - routeId, err := parse.FrontDoorRouteID(d.Get("cdn_frontdoor_route_id").(string)) - if err != nil { - return fmt.Errorf("front door route disable link to default domain: %+v", err) - } - - // Make sure the route still exist... - existing, err := routeClient.Get(routeCtx, routeId.ResourceGroup, routeId.ProfileName, routeId.AfdEndpointName, routeId.RouteName) - if err != nil { - if utils.ResponseWasNotFound(existing.Response) { - d.SetId("") - return nil - } - - return fmt.Errorf("retrieving existing %s: %+v", *routeId, err) - } - - customDomains := d.Get("cdn_frontdoor_custom_domain_ids").([]interface{}) - for _, v := range customDomains { - cdId, err := parse.FrontDoorCustomDomainID(v.(string)) - if err != nil { - return fmt.Errorf("%s: unable to parse CDN Front Door Custom Domain ID: %+v", id, err) - } - - _, err = customDomainClient.Get(customDomainCtx, cdId.ResourceGroup, cdId.ProfileName, cdId.CustomDomainName) - if err != nil { - return fmt.Errorf("retrieving existing %s: %+v", cdId, err) - } - } - - return nil -} - -func resourceCdnFrontDoorRouteDisableLinkToDefaultDomainUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - routeClient := meta.(*clients.Client).Cdn.FrontDoorRoutesClient - workaroundsClient := azuresdkhacks.NewCdnFrontDoorRoutesWorkaroundClient(routeClient) - routeCtx, routeCancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) - defer routeCancel() - - if d.HasChange("cdn_frontdoor_custom_domain_ids") { - customDomains := d.Get("cdn_frontdoor_custom_domain_ids").([]interface{}) - - routeId, err := parse.FrontDoorRouteID(d.Get("cdn_frontdoor_route_id").(string)) - if err != nil { - return fmt.Errorf("updating Front Door Route Disable Link To Default Domain: %+v", err) - } - - id, err := parse.FrontDoorRouteDisableLinkToDefaultDomainID(d.Id()) - if err != nil { - return err - } - - locks.ByName(routeId.RouteName, cdnFrontDoorRouteResourceName) - defer locks.UnlockByName(routeId.RouteName, cdnFrontDoorRouteResourceName) - - for _, v := range customDomains { - customDomainId, err := parse.FrontDoorCustomDomainID(v.(string)) - if err != nil { - return fmt.Errorf("updating %s: %+v", id, err) - } - - locks.ByName(customDomainId.CustomDomainName, cdnFrontDoorCustomDomainResourceName) - defer locks.UnlockByName(customDomainId.CustomDomainName, cdnFrontDoorCustomDomainResourceName) - } - - existing, err := routeClient.Get(routeCtx, routeId.ResourceGroup, routeId.ProfileName, routeId.AfdEndpointName, routeId.RouteName) - if err != nil { - if utils.ResponseWasNotFound(existing.Response) { - d.SetId("") - return nil - } - - return fmt.Errorf("%s: retrieving existing %s: %+v", *id, *routeId, err) - } - - props := existing.RouteProperties - if props == nil { - return fmt.Errorf("updating %s: %s properties are 'nil'", id, *routeId) - } - - resourceCustomDomains := d.Get("cdn_frontdoor_custom_domain_ids").([]interface{}) - routeCustomDomains, err := flattenCustomDomainActivatedResourceArray(props.CustomDomains) - if err != nil { - return err - } - - // make sure its valid to disable the LinkToDefaultDomain on this route... - if len(routeCustomDomains) == 0 { - return fmt.Errorf("updating %s: it is invalid to disable the 'LinkToDefaultDomain' for the CDN Front Door Route(Name: %s) since the route does not have any CDN Front Door Custom Domains associated with it", id, routeId.RouteName) - } - - // validate the custom domains... - if err := validateCustomDomainLinkToDefaultDomainState(resourceCustomDomains, routeCustomDomains, routeId.RouteName, routeId.ProfileName); err != nil { - return fmt.Errorf("updating %s: %+v", id, err) - } - - // If it is already disabled do not update the route... - if props.LinkToDefaultDomain != cdn.LinkToDefaultDomainDisabled { - updateProps := azuresdkhacks.RouteUpdatePropertiesParameters{ - CustomDomains: expandCustomDomainActivatedResourceArray(customDomains), - } - - // Since this unlink default domain resource always set the value to false - updateProps.LinkToDefaultDomain = cdn.LinkToDefaultDomainDisabled - - // NOTE: You must pull the Cache Configuration from the existing route else you will get a diff, because a nil value means disabled - if props.CacheConfiguration != nil { - updateProps.CacheConfiguration = props.CacheConfiguration - } - - updateParams := azuresdkhacks.RouteUpdateParameters{ - RouteUpdatePropertiesParameters: &updateProps, - } - - future, err := workaroundsClient.Update(routeCtx, routeId.ResourceGroup, routeId.ProfileName, routeId.AfdEndpointName, routeId.RouteName, updateParams) - if err != nil { - return fmt.Errorf("updating %s: %+v", id, err) - } - if err = future.WaitForCompletionRef(routeCtx, routeClient.Client); err != nil { - return fmt.Errorf("waiting for the update of %s: %+v", id, err) - } - } - - d.Set("cdn_frontdoor_route_id", routeId.ID()) - d.Set("cdn_frontdoor_custom_domain_ids", customDomains) - } - - return resourceCdnFrontDoorRouteDisableLinkToDefaultDomainRead(d, meta) -} - -func resourceCdnFrontDoorRouteDisableLinkToDefaultDomainDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Cdn.FrontDoorRoutesClient - workaroundsClient := azuresdkhacks.NewCdnFrontDoorRoutesWorkaroundClient(client) - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := parse.FrontDoorRouteDisableLinkToDefaultDomainID(d.Id()) - if err != nil { - return err - } - - oldRoute, _ := d.GetChange("cdn_frontdoor_route_id") - - route, err := parse.FrontDoorRouteID(oldRoute.(string)) - if err != nil { - return err - } - - locks.ByName(route.RouteName, cdnFrontDoorRouteResourceName) - defer locks.UnlockByName(route.RouteName, cdnFrontDoorRouteResourceName) - - resp, err := client.Get(ctx, route.ResourceGroup, route.ProfileName, route.AfdEndpointName, route.RouteName) - if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - d.SetId("") - return nil - } - - return fmt.Errorf("retrieving existing %s: %+v", *route, err) - } - - props := resp.RouteProperties - if props == nil { - return fmt.Errorf("deleting %s: %s properties are 'nil'", *id, *route) - } - - updateProps := azuresdkhacks.RouteUpdatePropertiesParameters{ - CustomDomains: props.CustomDomains, - } - - // NOTE: You must pull the Cache Configuration from the existing route else you will - // get a diff because the API sees nil as disabled - if props.CacheConfiguration != nil { - updateProps.CacheConfiguration = props.CacheConfiguration - } - - customDomains, err := flattenCustomDomainActivatedResourceArray(props.CustomDomains) - if err != nil { - return err - } - - // NOTE: Only update LinkToDefaultDomain to enabled if there are not any custom domains associated with the route - if len(customDomains) == 0 { - // only update the route if it is currently in the disabled state... - if updateProps.LinkToDefaultDomain == cdn.LinkToDefaultDomainDisabled { - updateProps.LinkToDefaultDomain = cdn.LinkToDefaultDomainEnabled - - updateParams := azuresdkhacks.RouteUpdateParameters{ - RouteUpdatePropertiesParameters: &updateProps, - } - - future, err := workaroundsClient.Update(ctx, route.ResourceGroup, route.ProfileName, route.AfdEndpointName, route.RouteName, updateParams) - if err != nil { - return fmt.Errorf("deleting %s: %+v", *id, err) - } - if err = future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for the deletion of %s: %+v", *id, err) - } - } - } - - // Everything was successful - d.SetId("") - - return nil -} diff --git a/internal/services/cdn/cdn_frontdoor_route_disable_link_to_default_domain_resource_test.go b/internal/services/cdn/cdn_frontdoor_route_disable_link_to_default_domain_resource_test.go deleted file mode 100644 index d11e0f5a1643..000000000000 --- a/internal/services/cdn/cdn_frontdoor_route_disable_link_to_default_domain_resource_test.go +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package cdn_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type CdnFrontDoorRouteDisableLinkToDefaultDomainResource struct{} - -func TestAccCdnFrontDoorRouteDisableLinkToDefaultDomain_basic(t *testing.T) { - if !features.FourPointOhBeta() { - data := acceptance.BuildTestData(t, "azurerm_cdn_frontdoor_route_disable_link_to_default_domain", "test") - r := CdnFrontDoorRouteDisableLinkToDefaultDomainResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - ExpectNonEmptyPlan: true, // since this resource actually modifies the routes 'linked to default domain' field - }, - }) - } else { - t.Skip("the 'azurerm_cdn_frontdoor_route_disable_link_to_default_domain' resource is no longer supported in the AzureRM provider v4.0, please remove this test case") - } -} - -func (r CdnFrontDoorRouteDisableLinkToDefaultDomainResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := parse.FrontDoorRouteDisableLinkToDefaultDomainID(state.ID) - if err != nil { - return nil, err - } - - client := clients.Cdn.FrontDoorRoutesClient - resp, err := client.Get(ctx, id.ResourceGroup, id.ProfileName, id.AfdEndpointName, id.RouteName) - if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - return utils.Bool(false), nil - } - return nil, fmt.Errorf("retrieving %s: %+v", id, err) - } - - return utils.Bool(true), nil -} - -func (r CdnFrontDoorRouteDisableLinkToDefaultDomainResource) basic(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_cdn_frontdoor_route_disable_link_to_default_domain" "test" { - cdn_frontdoor_route_id = azurerm_cdn_frontdoor_route.test.id - cdn_frontdoor_custom_domain_ids = [azurerm_cdn_frontdoor_custom_domain.test.id] -} -`, template) -} - -func (r CdnFrontDoorRouteDisableLinkToDefaultDomainResource) template(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-cdn-afdx-%[1]d" - location = "%[2]s" -} - -resource "azurerm_dns_zone" "test" { - name = "acctest-dns-zone%[1]d.com" - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_cdn_frontdoor_profile" "test" { - name = "acctest-profile-%[1]d" - resource_group_name = azurerm_resource_group.test.name - sku_name = "Standard_AzureFrontDoor" -} - -resource "azurerm_cdn_frontdoor_origin_group" "test" { - name = "accTest-origin-group-%[1]d" - cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile.test.id - - load_balancing { - additional_latency_in_milliseconds = 0 - sample_size = 16 - successful_samples_required = 3 - } -} - -resource "azurerm_cdn_frontdoor_origin" "test" { - name = "acctest-origin-%[1]d" - cdn_frontdoor_origin_group_id = azurerm_cdn_frontdoor_origin_group.test.id - enabled = true - - certificate_name_check_enabled = false - host_name = "contoso.com" - http_port = 80 - https_port = 443 - origin_host_header = "www.contoso.com" - priority = 1 - weight = 1 -} - -resource "azurerm_cdn_frontdoor_endpoint" "test" { - name = "acctest-endpoint-%[1]d" - cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile.test.id -} - -resource "azurerm_cdn_frontdoor_route" "test" { - name = "acctest-route-%[1]d" - cdn_frontdoor_endpoint_id = azurerm_cdn_frontdoor_endpoint.test.id - cdn_frontdoor_origin_group_id = azurerm_cdn_frontdoor_origin_group.test.id - cdn_frontdoor_origin_ids = [azurerm_cdn_frontdoor_origin.test.id] - patterns_to_match = ["/*"] - supported_protocols = ["Http", "Https"] - - cdn_frontdoor_custom_domain_ids = [azurerm_cdn_frontdoor_custom_domain.test.id] -} - -resource "azurerm_cdn_frontdoor_custom_domain" "test" { - name = "acctest-custom-domain-%[1]d" - cdn_frontdoor_profile_id = azurerm_cdn_frontdoor_profile.test.id - dns_zone_id = azurerm_dns_zone.test.id - host_name = join(".", ["%[3]s", azurerm_dns_zone.test.name]) - - tls { - certificate_type = "ManagedCertificate" - minimum_tls_version = "TLS10" - } -} - -resource "azurerm_cdn_frontdoor_custom_domain_association" "test" { - cdn_frontdoor_custom_domain_id = azurerm_cdn_frontdoor_custom_domain.test.id - cdn_frontdoor_route_ids = [azurerm_cdn_frontdoor_route.test.id] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomStringOfLength(8)) -} diff --git a/internal/services/cdn/cdn_frontdoor_route_resource.go b/internal/services/cdn/cdn_frontdoor_route_resource.go index 8ad50013de09..18cfab538697 100644 --- a/internal/services/cdn/cdn_frontdoor_route_resource.go +++ b/internal/services/cdn/cdn_frontdoor_route_resource.go @@ -225,9 +225,6 @@ func resourceCdnFrontDoorRouteCreate(d *pluginsdk.ResourceData, meta interface{} return tf.ImportAsExistsError("azurerm_cdn_frontdoor_route", id.ID()) } - var origins []interface{} - var originGroup *cdn.ResourceReference - protocolsRaw := d.Get("supported_protocols").(*pluginsdk.Set).List() originGroupRaw := d.Get("cdn_frontdoor_origin_group_id").(string) ruleSetIdsRaw := d.Get("cdn_frontdoor_rule_set_ids").(*pluginsdk.Set).List() @@ -262,6 +259,7 @@ func resourceCdnFrontDoorRouteCreate(d *pluginsdk.ResourceData, meta interface{} } } + var originGroup *cdn.ResourceReference if originGroupRaw != "" { id, err := parse.FrontDoorOriginGroupID(originGroupRaw) if err != nil { @@ -308,6 +306,7 @@ func resourceCdnFrontDoorRouteCreate(d *pluginsdk.ResourceData, meta interface{} // NOTE: These are not sent to the API, they are only here so Terraform // can provision/destroy the resources in the correct order. + origins := make([]string, 0, len(originsRaw)) for _, origin := range originsRaw { id, err := parse.FrontDoorOriginID(origin.(string)) if err != nil { diff --git a/internal/services/cdn/cdn_frontdoor_rule_resource.go b/internal/services/cdn/cdn_frontdoor_rule_resource.go index c2e2f2965c7b..03acdc252a4a 100644 --- a/internal/services/cdn/cdn_frontdoor_rule_resource.go +++ b/internal/services/cdn/cdn_frontdoor_rule_resource.go @@ -40,7 +40,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { }), Schema: map[string]*pluginsdk.Schema{ - "name": { Type: pluginsdk.TypeString, Required: true, @@ -85,7 +84,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "redirect_type": { Type: pluginsdk.TypeString, Required: true, @@ -154,7 +152,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "source_pattern": { Type: pluginsdk.TypeString, Required: true, @@ -182,7 +179,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "header_action": { Type: pluginsdk.TypeString, Required: true, @@ -214,7 +210,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "header_action": { Type: pluginsdk.TypeString, Required: true, @@ -247,7 +242,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "cdn_frontdoor_origin_group_id": { Type: pluginsdk.TypeString, Optional: true, @@ -326,7 +320,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "remote_address_condition": { Type: pluginsdk.TypeList, Optional: true, @@ -373,7 +366,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - // In the API this is called selector "post_args_name": { Type: pluginsdk.TypeString, @@ -408,7 +400,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - // In the API this is called selector // match_values are invalid if operator is 'Any' "header_name": { @@ -513,7 +504,6 @@ func resourceCdnFrontDoorRule() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - // In the API this is called selector "cookie_name": { Type: pluginsdk.TypeString, diff --git a/internal/services/cdn/cdn_frontdoor_security_policy_resource.go b/internal/services/cdn/cdn_frontdoor_security_policy_resource.go index 5120921f182c..cddfbfaed40a 100644 --- a/internal/services/cdn/cdn_frontdoor_security_policy_resource.go +++ b/internal/services/cdn/cdn_frontdoor_security_policy_resource.go @@ -60,7 +60,6 @@ func resourceCdnFrontDoorSecurityPolicy() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "firewall": { Type: pluginsdk.TypeList, Required: true, @@ -69,7 +68,6 @@ func resourceCdnFrontDoorSecurityPolicy() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "cdn_frontdoor_firewall_policy_id": { Type: pluginsdk.TypeString, Required: true, @@ -85,7 +83,6 @@ func resourceCdnFrontDoorSecurityPolicy() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - // NOTE: The max number of domains vary depending on sku: 100 Standard, 500 Premium "domain": { Type: pluginsdk.TypeList, diff --git a/internal/services/cdn/endpoint_global_delivery_rule.go b/internal/services/cdn/endpoint_global_delivery_rule.go index bd32b75cefc4..650a5989e2b7 100644 --- a/internal/services/cdn/endpoint_global_delivery_rule.go +++ b/internal/services/cdn/endpoint_global_delivery_rule.go @@ -29,7 +29,8 @@ func endpointGlobalDeliveryRule() *pluginsdk.Schema { "global_delivery_rule.0.modify_request_header_action", "global_delivery_rule.0.modify_response_header_action", "global_delivery_rule.0.url_redirect_action", - "global_delivery_rule.0.url_rewrite_action"}, + "global_delivery_rule.0.url_rewrite_action", + }, }, "cache_key_query_string_action": { @@ -43,7 +44,8 @@ func endpointGlobalDeliveryRule() *pluginsdk.Schema { "global_delivery_rule.0.modify_request_header_action", "global_delivery_rule.0.modify_response_header_action", "global_delivery_rule.0.url_redirect_action", - "global_delivery_rule.0.url_rewrite_action"}, + "global_delivery_rule.0.url_rewrite_action", + }, }, "modify_request_header_action": { @@ -56,7 +58,8 @@ func endpointGlobalDeliveryRule() *pluginsdk.Schema { "global_delivery_rule.0.modify_request_header_action", "global_delivery_rule.0.modify_response_header_action", "global_delivery_rule.0.url_redirect_action", - "global_delivery_rule.0.url_rewrite_action"}, + "global_delivery_rule.0.url_rewrite_action", + }, }, "modify_response_header_action": { @@ -69,7 +72,8 @@ func endpointGlobalDeliveryRule() *pluginsdk.Schema { "global_delivery_rule.0.modify_request_header_action", "global_delivery_rule.0.modify_response_header_action", "global_delivery_rule.0.url_redirect_action", - "global_delivery_rule.0.url_rewrite_action"}, + "global_delivery_rule.0.url_rewrite_action", + }, }, "url_redirect_action": { @@ -83,7 +87,8 @@ func endpointGlobalDeliveryRule() *pluginsdk.Schema { "global_delivery_rule.0.modify_request_header_action", "global_delivery_rule.0.modify_response_header_action", "global_delivery_rule.0.url_redirect_action", - "global_delivery_rule.0.url_rewrite_action"}, + "global_delivery_rule.0.url_rewrite_action", + }, }, "url_rewrite_action": { @@ -97,7 +102,8 @@ func endpointGlobalDeliveryRule() *pluginsdk.Schema { "global_delivery_rule.0.modify_request_header_action", "global_delivery_rule.0.modify_response_header_action", "global_delivery_rule.0.url_redirect_action", - "global_delivery_rule.0.url_rewrite_action"}, + "global_delivery_rule.0.url_rewrite_action", + }, }, }, }, diff --git a/internal/services/cdn/frontdoorruleactions/cdn_frontdoor_rule_actions.go b/internal/services/cdn/frontdoorruleactions/cdn_frontdoor_rule_actions.go index 5dd246592687..77d289b62cc4 100644 --- a/internal/services/cdn/frontdoorruleactions/cdn_frontdoor_rule_actions.go +++ b/internal/services/cdn/frontdoorruleactions/cdn_frontdoor_rule_actions.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/Azure/azure-sdk-for-go/services/cdn/mgmt/2021-06-01/cdn" // nolint: staticcheck - "github.com/hashicorp/terraform-provider-azurerm/internal/features" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cdn/parse" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -231,13 +231,6 @@ func ExpandCdnFrontDoorRouteConfigurationOverrideAction(input []interface{}) (*[ compressionEnabled = cdn.RuleIsCompressionEnabledDisabled } - if !features.FourPointOhBeta() { - // set the default value for forwarding protocol to avoid a breaking change... - if protocol == "" { - protocol = string(cdn.ForwardingProtocolMatchRequest) - } - } - // NOTE: It is valid to not define the originGroupOverride in the Route Configuration Override Action // however, if you do not define the Origin Group ID you also cannot define the Forwarding Protocol either if originGroupIdRaw != "" { @@ -247,7 +240,7 @@ func ExpandCdnFrontDoorRouteConfigurationOverrideAction(input []interface{}) (*[ originGroupOverride = cdn.OriginGroupOverride{ OriginGroup: &cdn.ResourceReference{ - ID: utils.String(originGroupIdRaw), + ID: pointer.To(originGroupIdRaw), }, ForwardingProtocol: cdn.ForwardingProtocol(protocol), } @@ -268,44 +261,21 @@ func ExpandCdnFrontDoorRouteConfigurationOverrideAction(input []interface{}) (*[ return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, if the 'cache_behavior' is set to 'Disabled' you cannot define the 'cache_duration', got %q", cacheDuration) } } else { - if !features.FourPointOhBeta() { - // since 'cache_duration', 'query_string_caching_behavior' and 'cache_behavior' are optional create a default values - // for those values if not set. - if cacheBehavior == "" { - cacheBehavior = string(cdn.RuleCacheBehaviorHonorOrigin) - } - - if queryStringCachingBehavior == "" { - queryStringCachingBehavior = string(cdn.RuleQueryStringCachingBehaviorIgnoreQueryString) - } - - // NOTE: if the cacheBehavior is 'HonorOrigin' the cacheDuration must be null, issue #19311 - if cacheBehavior != string(cdn.RuleCacheBehaviorHonorOrigin) { - if cacheDuration == "" { - cacheDuration = "1.12:00:00" - } - } else if cacheDuration != "" { - return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, if the 'cache_behavior' field is set to 'HonorOrigin' the 'cache_duration' must not be set") - } + if cacheBehavior == "" { + return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, the 'cache_behavior' field must be set") } - if features.FourPointOhBeta() { - if cacheBehavior == "" { - return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, the 'cache_behavior' field must be set") - } - - if queryStringCachingBehavior == "" { - return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, the 'query_string_caching_behavior' field must be set") - } + if queryStringCachingBehavior == "" { + return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, the 'query_string_caching_behavior' field must be set") + } - // NOTE: if the cacheBehavior is 'HonorOrigin' cacheDuration must be null, issue #19311 - if cacheBehavior != string(cdn.RuleCacheBehaviorHonorOrigin) { - if cacheDuration == "" { - return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, the 'cache_duration' field must be set") - } - } else if cacheDuration != "" { - return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, the 'cache_duration' field must not be set if the 'cache_behavior' is 'HonorOrigin'") + // NOTE: if the cacheBehavior is 'HonorOrigin' cacheDuration must be null, issue #19311 + if cacheBehavior != string(cdn.RuleCacheBehaviorHonorOrigin) { + if cacheDuration == "" { + return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, the 'cache_duration' field must be set") } + } else if cacheDuration != "" { + return nil, fmt.Errorf("the 'route_configuration_override_action' block is not valid, the 'cache_duration' field must not be set if the 'cache_behavior' is 'HonorOrigin'") } cacheConfiguration = cdn.CacheConfiguration{ diff --git a/internal/services/cdn/migration/cdn_endpoint.go b/internal/services/cdn/migration/cdn_endpoint.go index 1808e08470c9..5e682599ec12 100644 --- a/internal/services/cdn/migration/cdn_endpoint.go +++ b/internal/services/cdn/migration/cdn_endpoint.go @@ -160,7 +160,7 @@ func (CdnEndpointV0ToV1) Schema() map[string]*pluginsdk.Schema { Computed: true, }, - //lintignore:XS003 + // lintignore:XS003 "global_delivery_rule": { Type: pluginsdk.TypeList, Optional: true, diff --git a/internal/services/cdn/parse/custom_domain.go b/internal/services/cdn/parse/custom_domain.go index 994054cfa39d..a0366857d7ff 100644 --- a/internal/services/cdn/parse/custom_domain.go +++ b/internal/services/cdn/parse/custom_domain.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func CustomDomainID(input string) (*CustomDomainId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { diff --git a/internal/services/cdn/parse/custom_domain_test.go b/internal/services/cdn/parse/custom_domain_test.go index 21e8c45ac177..f4aced93444f 100644 --- a/internal/services/cdn/parse/custom_domain_test.go +++ b/internal/services/cdn/parse/custom_domain_test.go @@ -27,7 +27,6 @@ func TestCustomDomainID(t *testing.T) { Error bool Expected *CustomDomainId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/endpoint.go b/internal/services/cdn/parse/endpoint.go index 0929a77df50b..1b9f4e1c9be0 100644 --- a/internal/services/cdn/parse/endpoint.go +++ b/internal/services/cdn/parse/endpoint.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func EndpointID(input string) (*EndpointId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -95,11 +96,11 @@ func EndpointIDInsensitively(input string) (*EndpointId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/endpoint_test.go b/internal/services/cdn/parse/endpoint_test.go index a0fbe12924b1..02dbd92d81e4 100644 --- a/internal/services/cdn/parse/endpoint_test.go +++ b/internal/services/cdn/parse/endpoint_test.go @@ -27,7 +27,6 @@ func TestEndpointID(t *testing.T) { Error bool Expected *EndpointId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestEndpointIDInsensitively(t *testing.T) { Error bool Expected *EndpointId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_custom_domain.go b/internal/services/cdn/parse/front_door_custom_domain.go index d8f73281f470..aee9fd72bd9b 100644 --- a/internal/services/cdn/parse/front_door_custom_domain.go +++ b/internal/services/cdn/parse/front_door_custom_domain.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontDoorCustomDomainID(input string) (*FrontDoorCustomDomainId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -95,11 +96,11 @@ func FrontDoorCustomDomainIDInsensitively(input string) (*FrontDoorCustomDomainI } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_custom_domain_association.go b/internal/services/cdn/parse/front_door_custom_domain_association.go index 820b73308947..89b335fa5bed 100644 --- a/internal/services/cdn/parse/front_door_custom_domain_association.go +++ b/internal/services/cdn/parse/front_door_custom_domain_association.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontDoorCustomDomainAssociationID(input string) (*FrontDoorCustomDomainAss } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { diff --git a/internal/services/cdn/parse/front_door_custom_domain_association_test.go b/internal/services/cdn/parse/front_door_custom_domain_association_test.go index a90c6976e53a..2e0d5dc97017 100644 --- a/internal/services/cdn/parse/front_door_custom_domain_association_test.go +++ b/internal/services/cdn/parse/front_door_custom_domain_association_test.go @@ -27,7 +27,6 @@ func TestFrontDoorCustomDomainAssociationID(t *testing.T) { Error bool Expected *FrontDoorCustomDomainAssociationId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_custom_domain_test.go b/internal/services/cdn/parse/front_door_custom_domain_test.go index 5793d1ea6bb5..a5ff5077148b 100644 --- a/internal/services/cdn/parse/front_door_custom_domain_test.go +++ b/internal/services/cdn/parse/front_door_custom_domain_test.go @@ -27,7 +27,6 @@ func TestFrontDoorCustomDomainID(t *testing.T) { Error bool Expected *FrontDoorCustomDomainId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontDoorCustomDomainIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorCustomDomainId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_endpoint.go b/internal/services/cdn/parse/front_door_endpoint.go index 9d8bb8c510cd..0ea38c70c19f 100644 --- a/internal/services/cdn/parse/front_door_endpoint.go +++ b/internal/services/cdn/parse/front_door_endpoint.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontDoorEndpointID(input string) (*FrontDoorEndpointId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -95,11 +96,11 @@ func FrontDoorEndpointIDInsensitively(input string) (*FrontDoorEndpointId, error } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_endpoint_test.go b/internal/services/cdn/parse/front_door_endpoint_test.go index 3aeaf7c2a676..279adf113c07 100644 --- a/internal/services/cdn/parse/front_door_endpoint_test.go +++ b/internal/services/cdn/parse/front_door_endpoint_test.go @@ -27,7 +27,6 @@ func TestFrontDoorEndpointID(t *testing.T) { Error bool Expected *FrontDoorEndpointId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontDoorEndpointIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorEndpointId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_firewall_policy.go b/internal/services/cdn/parse/front_door_firewall_policy.go index e708cb9751f6..e35498babb7c 100644 --- a/internal/services/cdn/parse/front_door_firewall_policy.go +++ b/internal/services/cdn/parse/front_door_firewall_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func FrontDoorFirewallPolicyID(input string) (*FrontDoorFirewallPolicyId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontDoorWebApplicationFirewallPolicyName, err = id.PopSegment("frontDoorWebApplicationFirewallPolicies"); err != nil { @@ -89,11 +90,11 @@ func FrontDoorFirewallPolicyIDInsensitively(input string) (*FrontDoorFirewallPol } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoorWebApplicationFirewallPolicies' segment diff --git a/internal/services/cdn/parse/front_door_firewall_policy_test.go b/internal/services/cdn/parse/front_door_firewall_policy_test.go index 0a33a9c35c9c..5db0d218e160 100644 --- a/internal/services/cdn/parse/front_door_firewall_policy_test.go +++ b/internal/services/cdn/parse/front_door_firewall_policy_test.go @@ -27,7 +27,6 @@ func TestFrontDoorFirewallPolicyID(t *testing.T) { Error bool Expected *FrontDoorFirewallPolicyId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestFrontDoorFirewallPolicyIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorFirewallPolicyId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_origin.go b/internal/services/cdn/parse/front_door_origin.go index 2d93f46b0599..1676e71bef8b 100644 --- a/internal/services/cdn/parse/front_door_origin.go +++ b/internal/services/cdn/parse/front_door_origin.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func FrontDoorOriginID(input string) (*FrontDoorOriginId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -101,11 +102,11 @@ func FrontDoorOriginIDInsensitively(input string) (*FrontDoorOriginId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_origin_group.go b/internal/services/cdn/parse/front_door_origin_group.go index b49ee9b790cf..dd7ed41faa42 100644 --- a/internal/services/cdn/parse/front_door_origin_group.go +++ b/internal/services/cdn/parse/front_door_origin_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontDoorOriginGroupID(input string) (*FrontDoorOriginGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -95,11 +96,11 @@ func FrontDoorOriginGroupIDInsensitively(input string) (*FrontDoorOriginGroupId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_origin_group_test.go b/internal/services/cdn/parse/front_door_origin_group_test.go index 8d2c95309eeb..a19d7299974d 100644 --- a/internal/services/cdn/parse/front_door_origin_group_test.go +++ b/internal/services/cdn/parse/front_door_origin_group_test.go @@ -27,7 +27,6 @@ func TestFrontDoorOriginGroupID(t *testing.T) { Error bool Expected *FrontDoorOriginGroupId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontDoorOriginGroupIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorOriginGroupId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_origin_test.go b/internal/services/cdn/parse/front_door_origin_test.go index a62e06f4ee3d..8443fc339ef2 100644 --- a/internal/services/cdn/parse/front_door_origin_test.go +++ b/internal/services/cdn/parse/front_door_origin_test.go @@ -27,7 +27,6 @@ func TestFrontDoorOriginID(t *testing.T) { Error bool Expected *FrontDoorOriginId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestFrontDoorOriginIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorOriginId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_profile.go b/internal/services/cdn/parse/front_door_profile.go index b176d91b3dd0..8df951ec5640 100644 --- a/internal/services/cdn/parse/front_door_profile.go +++ b/internal/services/cdn/parse/front_door_profile.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func FrontDoorProfileID(input string) (*FrontDoorProfileId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -89,11 +90,11 @@ func FrontDoorProfileIDInsensitively(input string) (*FrontDoorProfileId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_profile_test.go b/internal/services/cdn/parse/front_door_profile_test.go index 5bd50644973d..a19b8af121a2 100644 --- a/internal/services/cdn/parse/front_door_profile_test.go +++ b/internal/services/cdn/parse/front_door_profile_test.go @@ -27,7 +27,6 @@ func TestFrontDoorProfileID(t *testing.T) { Error bool Expected *FrontDoorProfileId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestFrontDoorProfileIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorProfileId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_route.go b/internal/services/cdn/parse/front_door_route.go index 1d6de1917653..11c3ed26da9d 100644 --- a/internal/services/cdn/parse/front_door_route.go +++ b/internal/services/cdn/parse/front_door_route.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func FrontDoorRouteID(input string) (*FrontDoorRouteId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -101,11 +102,11 @@ func FrontDoorRouteIDInsensitively(input string) (*FrontDoorRouteId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_route_disable_link_to_default_domain.go b/internal/services/cdn/parse/front_door_route_disable_link_to_default_domain.go index 44298cd4ee97..fb5fbe876741 100644 --- a/internal/services/cdn/parse/front_door_route_disable_link_to_default_domain.go +++ b/internal/services/cdn/parse/front_door_route_disable_link_to_default_domain.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func FrontDoorRouteDisableLinkToDefaultDomainID(input string) (*FrontDoorRouteDi } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { diff --git a/internal/services/cdn/parse/front_door_route_disable_link_to_default_domain_test.go b/internal/services/cdn/parse/front_door_route_disable_link_to_default_domain_test.go index 5b020251f050..b2f81fb0aef6 100644 --- a/internal/services/cdn/parse/front_door_route_disable_link_to_default_domain_test.go +++ b/internal/services/cdn/parse/front_door_route_disable_link_to_default_domain_test.go @@ -27,7 +27,6 @@ func TestFrontDoorRouteDisableLinkToDefaultDomainID(t *testing.T) { Error bool Expected *FrontDoorRouteDisableLinkToDefaultDomainId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_route_test.go b/internal/services/cdn/parse/front_door_route_test.go index 2bca054c3aff..f3842f4e7198 100644 --- a/internal/services/cdn/parse/front_door_route_test.go +++ b/internal/services/cdn/parse/front_door_route_test.go @@ -27,7 +27,6 @@ func TestFrontDoorRouteID(t *testing.T) { Error bool Expected *FrontDoorRouteId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestFrontDoorRouteIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorRouteId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_rule.go b/internal/services/cdn/parse/front_door_rule.go index 4324c41fcbb6..e2ffabfbf4e9 100644 --- a/internal/services/cdn/parse/front_door_rule.go +++ b/internal/services/cdn/parse/front_door_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func FrontDoorRuleID(input string) (*FrontDoorRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -101,11 +102,11 @@ func FrontDoorRuleIDInsensitively(input string) (*FrontDoorRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_rule_set.go b/internal/services/cdn/parse/front_door_rule_set.go index f7a989488ee4..db54d35b59f0 100644 --- a/internal/services/cdn/parse/front_door_rule_set.go +++ b/internal/services/cdn/parse/front_door_rule_set.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontDoorRuleSetID(input string) (*FrontDoorRuleSetId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -95,11 +96,11 @@ func FrontDoorRuleSetIDInsensitively(input string) (*FrontDoorRuleSetId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_rule_set_test.go b/internal/services/cdn/parse/front_door_rule_set_test.go index 171f74dce75d..d9ba9c401e46 100644 --- a/internal/services/cdn/parse/front_door_rule_set_test.go +++ b/internal/services/cdn/parse/front_door_rule_set_test.go @@ -27,7 +27,6 @@ func TestFrontDoorRuleSetID(t *testing.T) { Error bool Expected *FrontDoorRuleSetId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontDoorRuleSetIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorRuleSetId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_rule_test.go b/internal/services/cdn/parse/front_door_rule_test.go index 37ca5f024303..c2b89498f2ed 100644 --- a/internal/services/cdn/parse/front_door_rule_test.go +++ b/internal/services/cdn/parse/front_door_rule_test.go @@ -27,7 +27,6 @@ func TestFrontDoorRuleID(t *testing.T) { Error bool Expected *FrontDoorRuleId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestFrontDoorRuleIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorRuleId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_secret.go b/internal/services/cdn/parse/front_door_secret.go index 90caaa2a27ab..4eab4cce4683 100644 --- a/internal/services/cdn/parse/front_door_secret.go +++ b/internal/services/cdn/parse/front_door_secret.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontDoorSecretID(input string) (*FrontDoorSecretId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -95,11 +96,11 @@ func FrontDoorSecretIDInsensitively(input string) (*FrontDoorSecretId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_secret_test.go b/internal/services/cdn/parse/front_door_secret_test.go index d0d76b56d218..b07dfdfc795d 100644 --- a/internal/services/cdn/parse/front_door_secret_test.go +++ b/internal/services/cdn/parse/front_door_secret_test.go @@ -27,7 +27,6 @@ func TestFrontDoorSecretID(t *testing.T) { Error bool Expected *FrontDoorSecretId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontDoorSecretIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorSecretId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/front_door_security_policy.go b/internal/services/cdn/parse/front_door_security_policy.go index fb3f991a8239..dcf060edb895 100644 --- a/internal/services/cdn/parse/front_door_security_policy.go +++ b/internal/services/cdn/parse/front_door_security_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontDoorSecurityPolicyID(input string) (*FrontDoorSecurityPolicyId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ProfileName, err = id.PopSegment("profiles"); err != nil { @@ -95,11 +96,11 @@ func FrontDoorSecurityPolicyIDInsensitively(input string) (*FrontDoorSecurityPol } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/front_door_security_policy_test.go b/internal/services/cdn/parse/front_door_security_policy_test.go index 8b2c47662792..f24770bb4dc8 100644 --- a/internal/services/cdn/parse/front_door_security_policy_test.go +++ b/internal/services/cdn/parse/front_door_security_policy_test.go @@ -27,7 +27,6 @@ func TestFrontDoorSecurityPolicyID(t *testing.T) { Error bool Expected *FrontDoorSecurityPolicyId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontDoorSecurityPolicyIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorSecurityPolicyId }{ - { // empty Input: "", diff --git a/internal/services/cdn/parse/profile.go b/internal/services/cdn/parse/profile.go index f5961c54d957..ea2f96f052fe 100644 --- a/internal/services/cdn/parse/profile.go +++ b/internal/services/cdn/parse/profile.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ProfileID(input string) (*ProfileId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("profiles"); err != nil { @@ -89,11 +90,11 @@ func ProfileIDInsensitively(input string) (*ProfileId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'profiles' segment diff --git a/internal/services/cdn/parse/profile_test.go b/internal/services/cdn/parse/profile_test.go index b72eb5d686c4..93f750968f70 100644 --- a/internal/services/cdn/parse/profile_test.go +++ b/internal/services/cdn/parse/profile_test.go @@ -27,7 +27,6 @@ func TestProfileID(t *testing.T) { Error bool Expected *ProfileId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestProfileIDInsensitively(t *testing.T) { Error bool Expected *ProfileId }{ - { // empty Input: "", diff --git a/internal/services/cdn/registration.go b/internal/services/cdn/registration.go index e6478fd75e5c..453f4e5dbfc4 100644 --- a/internal/services/cdn/registration.go +++ b/internal/services/cdn/registration.go @@ -4,7 +4,6 @@ package cdn import ( - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -69,9 +68,5 @@ func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { "azurerm_cdn_frontdoor_security_policy": resourceCdnFrontDoorSecurityPolicy(), } - if !features.FourPointOhBeta() { - resources["azurerm_cdn_frontdoor_route_disable_link_to_default_domain"] = resourceCdnFrontDoorRouteDisableLinkToDefaultDomain() - } - return resources } diff --git a/internal/services/cdn/validate/cdn.go b/internal/services/cdn/validate/cdn.go index aa0ee6f09034..b27e9d19f39b 100644 --- a/internal/services/cdn/validate/cdn.go +++ b/internal/services/cdn/validate/cdn.go @@ -4,7 +4,7 @@ package validate import ( - "fmt" + "errors" "regexp" "strings" @@ -39,14 +39,14 @@ func RuleActionUrlRedirectQueryString() pluginsdk.SchemaValidateFunc { re := regexp.MustCompile("^[?&]") if re.MatchString(querystring) { - return nil, []error{fmt.Errorf("the Url Query String must not start with a question mark or ampersand")} + return nil, []error{errors.New("the Url Query String must not start with a question mark or ampersand")} } kvre := regexp.MustCompile("^[^?&]+=[^?&]+$") kvs := strings.Split(querystring, "&") for _, kv := range kvs { if len(kv) > 0 && !kvre.MatchString(kv) { - return nil, []error{fmt.Errorf("the Url Query String must be in = format and separated by an ampersand")} + return nil, []error{errors.New("the Url Query String must be in = format and separated by an ampersand")} } } diff --git a/internal/services/cdn/validate/custom_domain_id_test.go b/internal/services/cdn/validate/custom_domain_id_test.go index 5323f4689cf9..7d1200cb7c17 100644 --- a/internal/services/cdn/validate/custom_domain_id_test.go +++ b/internal/services/cdn/validate/custom_domain_id_test.go @@ -12,7 +12,6 @@ func TestCustomDomainID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/endpoint_id_test.go b/internal/services/cdn/validate/endpoint_id_test.go index da619ac8fd7c..ba779b833ecc 100644 --- a/internal/services/cdn/validate/endpoint_id_test.go +++ b/internal/services/cdn/validate/endpoint_id_test.go @@ -12,7 +12,6 @@ func TestEndpointID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_custom_domain_association_id_test.go b/internal/services/cdn/validate/front_door_custom_domain_association_id_test.go index 67a913585d8e..b1bec42c0e9e 100644 --- a/internal/services/cdn/validate/front_door_custom_domain_association_id_test.go +++ b/internal/services/cdn/validate/front_door_custom_domain_association_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorCustomDomainAssociationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_custom_domain_id_test.go b/internal/services/cdn/validate/front_door_custom_domain_id_test.go index b0a927e3d1d2..dc362fc8e856 100644 --- a/internal/services/cdn/validate/front_door_custom_domain_id_test.go +++ b/internal/services/cdn/validate/front_door_custom_domain_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorCustomDomainID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_custom_domain_name_test.go b/internal/services/cdn/validate/front_door_custom_domain_name_test.go index b7591a8f33a6..d7ec074ac3cb 100644 --- a/internal/services/cdn/validate/front_door_custom_domain_name_test.go +++ b/internal/services/cdn/validate/front_door_custom_domain_name_test.go @@ -10,7 +10,6 @@ func TestFrontDoorCustomDomainName(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_endpoint_id_test.go b/internal/services/cdn/validate/front_door_endpoint_id_test.go index 45490e3d8e4a..a478c798ac76 100644 --- a/internal/services/cdn/validate/front_door_endpoint_id_test.go +++ b/internal/services/cdn/validate/front_door_endpoint_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorEndpointID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_firewall_policy_id_test.go b/internal/services/cdn/validate/front_door_firewall_policy_id_test.go index 26f32486786c..54dadf7272b9 100644 --- a/internal/services/cdn/validate/front_door_firewall_policy_id_test.go +++ b/internal/services/cdn/validate/front_door_firewall_policy_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorFirewallPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_origin_group_id_test.go b/internal/services/cdn/validate/front_door_origin_group_id_test.go index 35ac3bc3d67b..5d91abdbd7b0 100644 --- a/internal/services/cdn/validate/front_door_origin_group_id_test.go +++ b/internal/services/cdn/validate/front_door_origin_group_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorOriginGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_origin_id_test.go b/internal/services/cdn/validate/front_door_origin_id_test.go index 75f6e4e0535b..31e85417f30f 100644 --- a/internal/services/cdn/validate/front_door_origin_id_test.go +++ b/internal/services/cdn/validate/front_door_origin_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorOriginID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_profile_id_test.go b/internal/services/cdn/validate/front_door_profile_id_test.go index 6772435f1dcf..29df517b4697 100644 --- a/internal/services/cdn/validate/front_door_profile_id_test.go +++ b/internal/services/cdn/validate/front_door_profile_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorProfileID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_route_disable_link_to_default_domain_id_test.go b/internal/services/cdn/validate/front_door_route_disable_link_to_default_domain_id_test.go index 4643b4dd1424..34198ede0a79 100644 --- a/internal/services/cdn/validate/front_door_route_disable_link_to_default_domain_id_test.go +++ b/internal/services/cdn/validate/front_door_route_disable_link_to_default_domain_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorRouteDisableLinkToDefaultDomainID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_route_id_test.go b/internal/services/cdn/validate/front_door_route_id_test.go index 3d2c294d358e..a5d24eb0c4a6 100644 --- a/internal/services/cdn/validate/front_door_route_id_test.go +++ b/internal/services/cdn/validate/front_door_route_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorRouteID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_route_name_test.go b/internal/services/cdn/validate/front_door_route_name_test.go index c9dbd51ec20f..3eb6643b7353 100644 --- a/internal/services/cdn/validate/front_door_route_name_test.go +++ b/internal/services/cdn/validate/front_door_route_name_test.go @@ -10,7 +10,6 @@ func TestFrontDoorRouteName(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_rule_cidr_valid_test.go b/internal/services/cdn/validate/front_door_rule_cidr_valid_test.go index fca97a27f5da..35cb6198ce0a 100644 --- a/internal/services/cdn/validate/front_door_rule_cidr_valid_test.go +++ b/internal/services/cdn/validate/front_door_rule_cidr_valid_test.go @@ -10,7 +10,6 @@ func TestFrontDoorRuleCidrIsValid(t *testing.T) { Input interface{} Valid bool }{ - { // IPv6 IPv4 literal Input: "::FFFF:192.168.0.1/24", diff --git a/internal/services/cdn/validate/front_door_rule_id_test.go b/internal/services/cdn/validate/front_door_rule_id_test.go index 34234932711d..bc4483dae863 100644 --- a/internal/services/cdn/validate/front_door_rule_id_test.go +++ b/internal/services/cdn/validate/front_door_rule_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_rule_set_id_test.go b/internal/services/cdn/validate/front_door_rule_set_id_test.go index 741c11160841..6a85145a9c91 100644 --- a/internal/services/cdn/validate/front_door_rule_set_id_test.go +++ b/internal/services/cdn/validate/front_door_rule_set_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorRuleSetID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_secret_id_test.go b/internal/services/cdn/validate/front_door_secret_id_test.go index c6f8dc4b26a9..c6419ec10ab6 100644 --- a/internal/services/cdn/validate/front_door_secret_id_test.go +++ b/internal/services/cdn/validate/front_door_secret_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorSecretID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/front_door_security_policy_id_test.go b/internal/services/cdn/validate/front_door_security_policy_id_test.go index 203aabe60581..b175d919fb74 100644 --- a/internal/services/cdn/validate/front_door_security_policy_id_test.go +++ b/internal/services/cdn/validate/front_door_security_policy_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorSecurityPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cdn/validate/profile_id_test.go b/internal/services/cdn/validate/profile_id_test.go index ac39e3beba2e..434807b963bb 100644 --- a/internal/services/cdn/validate/profile_id_test.go +++ b/internal/services/cdn/validate/profile_id_test.go @@ -12,7 +12,6 @@ func TestProfileID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/chaosstudio/chaos_studio_capability_resource_test.go b/internal/services/chaosstudio/chaos_studio_capability_resource_test.go index 71c3db46c58d..e12ae55d3684 100644 --- a/internal/services/chaosstudio/chaos_studio_capability_resource_test.go +++ b/internal/services/chaosstudio/chaos_studio_capability_resource_test.go @@ -76,6 +76,7 @@ func (r ChaosStudioCapabilityTestResource) Exists(ctx context.Context, clients * return utils.Bool(resp.Model != nil), nil } + func (r ChaosStudioCapabilityTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/chaosstudio/chaos_studio_experiment_resource.go b/internal/services/chaosstudio/chaos_studio_experiment_resource.go index 1c40de4f5b2d..f07f92f69f56 100644 --- a/internal/services/chaosstudio/chaos_studio_experiment_resource.go +++ b/internal/services/chaosstudio/chaos_studio_experiment_resource.go @@ -22,8 +22,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.Resource = ChaosStudioExperimentResource{} -var _ sdk.ResourceWithUpdate = ChaosStudioExperimentResource{} +var ( + _ sdk.Resource = ChaosStudioExperimentResource{} + _ sdk.ResourceWithUpdate = ChaosStudioExperimentResource{} +) const ( continuousActionType = "continuous" diff --git a/internal/services/chaosstudio/chaos_studio_target_resource_gen.go b/internal/services/chaosstudio/chaos_studio_target_resource_gen.go index 52a98a7a3402..00d779bf9b6b 100644 --- a/internal/services/chaosstudio/chaos_studio_target_resource_gen.go +++ b/internal/services/chaosstudio/chaos_studio_target_resource_gen.go @@ -35,9 +35,11 @@ type ChaosStudioTargetResourceSchema struct { func (r ChaosStudioTargetResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return commonids.ValidateChaosStudioTargetID } + func (r ChaosStudioTargetResource) ResourceType() string { return "azurerm_chaos_studio_target" } + func (r ChaosStudioTargetResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "location": commonschema.Location(), @@ -53,9 +55,11 @@ func (r ChaosStudioTargetResource) Arguments() map[string]*pluginsdk.Schema { }, } } + func (r ChaosStudioTargetResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{} } + func (r ChaosStudioTargetResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -88,6 +92,7 @@ func (r ChaosStudioTargetResource) Read() sdk.ResourceFunc { }, } } + func (r ChaosStudioTargetResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, diff --git a/internal/services/chaosstudio/chaos_studio_target_resource_gen_test.go b/internal/services/chaosstudio/chaos_studio_target_resource_gen_test.go index 12e20643a927..c93c57a64c95 100644 --- a/internal/services/chaosstudio/chaos_studio_target_resource_gen_test.go +++ b/internal/services/chaosstudio/chaos_studio_target_resource_gen_test.go @@ -47,6 +47,7 @@ func TestAccChaosStudioTarget_requiresImport(t *testing.T) { data.RequiresImportErrorStep(r.requiresImport), }) } + func (r ChaosStudioTargetTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := commonids.ParseChaosStudioTargetID(state.ID) if err != nil { @@ -60,6 +61,7 @@ func (r ChaosStudioTargetTestResource) Exists(ctx context.Context, clients *clie return utils.Bool(resp.Model != nil), nil } + func (r ChaosStudioTargetTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/chaosstudio/client/client_gen.go b/internal/services/chaosstudio/client/client_gen.go index dee9ebe8c7d7..1c1efb7001ad 100644 --- a/internal/services/chaosstudio/client/client_gen.go +++ b/internal/services/chaosstudio/client/client_gen.go @@ -13,7 +13,6 @@ type AutoClient struct { } func NewClient(o *common.ClientOptions) (*AutoClient, error) { - v20231101Client, err := chaosstudioV20231101.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) diff --git a/internal/services/chaosstudio/custompollers/chaos_studio_experiment_poller.go b/internal/services/chaosstudio/custompollers/chaos_studio_experiment_poller.go index 58e58fceff51..965b576910db 100644 --- a/internal/services/chaosstudio/custompollers/chaos_studio_experiment_poller.go +++ b/internal/services/chaosstudio/custompollers/chaos_studio_experiment_poller.go @@ -63,7 +63,6 @@ func (p chaosStudioExperimentPoller) Poll(ctx context.Context) (*pollers.PollRes var op operationResult contentType := resp.HttpResponse.Header.Get("Content-Type") if strings.Contains(strings.ToLower(contentType), "application/json") { - if err = json.Unmarshal(respBody, &op); err != nil { return nil, fmt.Errorf("unmarshalling response body: %+v", err) } diff --git a/internal/services/chaosstudio/registration_gen.go b/internal/services/chaosstudio/registration_gen.go index 9a56a5362512..c73b2a1e970e 100644 --- a/internal/services/chaosstudio/registration_gen.go +++ b/internal/services/chaosstudio/registration_gen.go @@ -6,8 +6,7 @@ import "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" var _ sdk.TypedServiceRegistration = autoRegistration{} -type autoRegistration struct { -} +type autoRegistration struct{} func (autoRegistration) Name() string { return "ChaosStudio" diff --git a/internal/services/codesigning/client/client.go b/internal/services/codesigning/client/client.go new file mode 100644 index 000000000000..91fe0ed06181 --- /dev/null +++ b/internal/services/codesigning/client/client.go @@ -0,0 +1,30 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package client + +import ( + "fmt" + + codesigning_v2024_09_30_preview "github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/terraform-provider-azurerm/internal/common" +) + +type Client struct { + Client codesigning_v2024_09_30_preview.Client +} + +func NewClient(o *common.ClientOptions) (*Client, error) { + V20240930previewClient, err := codesigning_v2024_09_30_preview.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { + o.Configure(c, o.Authorizers.ResourceManager) + }) + if err != nil { + return nil, fmt.Errorf("building client for codesigning v20240930preview: %+v", err) + } + + return &Client{ + Client: *V20240930previewClient, + }, nil +} diff --git a/internal/services/codesigning/registration.go b/internal/services/codesigning/registration.go new file mode 100644 index 000000000000..cb815924eb16 --- /dev/null +++ b/internal/services/codesigning/registration.go @@ -0,0 +1,40 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package codesigning + +import ( + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" +) + +type Registration struct{} + +var _ sdk.TypedServiceRegistration = Registration{} + +func (r Registration) AssociatedGitHubLabel() string { + return "service/trustedsigning" +} + +// Name is the name of this Service +func (r Registration) Name() string { + return "Trusted Signing" +} + +// WebsiteCategories returns a list of categories which can be used for the sidebar +func (r Registration) WebsiteCategories() []string { + return []string{ + "Trusted Signing", + } +} + +// DataSources returns a list of Data Sources supported by this Service +func (r Registration) DataSources() []sdk.DataSource { + return []sdk.DataSource{} +} + +// Resources returns a list of Resources supported by this Service +func (r Registration) Resources() []sdk.Resource { + return []sdk.Resource{ + TrustedSigningAccountResource{}, + } +} diff --git a/internal/services/codesigning/trusted_signing_account_resource.go b/internal/services/codesigning/trusted_signing_account_resource.go new file mode 100644 index 000000000000..bc44b3319890 --- /dev/null +++ b/internal/services/codesigning/trusted_signing_account_resource.go @@ -0,0 +1,222 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package codesigning + +import ( + "context" + "fmt" + "regexp" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +type TrustedSigningAccountModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + ResourceGroupName string `tfschema:"resource_group_name"` + AccountUri string `tfschema:"account_uri"` + SkuName string `tfschema:"sku_name"` + Tags map[string]string `tfschema:"tags"` +} + +type TrustedSigningAccountResource struct{} + +var _ sdk.Resource = (*TrustedSigningAccountResource)(nil) + +func (m TrustedSigningAccountResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.All( + validation.StringLenBetween(3, 24), + validation.StringMatch( + regexp.MustCompile("^[A-Za-z][A-Za-z0-9]*(?:-[A-Za-z0-9]+)*$"), + "An account's name must be between 3-24 alphanumeric characters. The name must begin with a letter, end with a letter or digit, and not contain consecutive hyphens.", + ), + ), + }, + + "location": commonschema.Location(), + + "resource_group_name": commonschema.ResourceGroupName(), + + "sku_name": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice( + codesigningaccounts.PossibleValuesForSkuName(), + false), + }, + + "tags": commonschema.Tags(), + } +} + +func (m TrustedSigningAccountResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "account_uri": { + Type: pluginsdk.TypeString, + Computed: true, + }, + } +} + +func (m TrustedSigningAccountResource) ModelObject() interface{} { + return &TrustedSigningAccountModel{} +} + +func (m TrustedSigningAccountResource) ResourceType() string { + return "azurerm_trusted_signing_account" +} + +func (m TrustedSigningAccountResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + client := meta.Client.CodeSigning.Client.CodeSigningAccounts + + var model TrustedSigningAccountModel + if err := meta.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + subscriptionID := meta.Client.Account.SubscriptionId + id := codesigningaccounts.NewCodeSigningAccountID(subscriptionID, model.ResourceGroupName, model.Name) + existing, err := client.Get(ctx, id) + if !response.WasNotFound(existing.HttpResponse) { + if err != nil { + return fmt.Errorf("retrieving %s: %v", id, err) + } + return meta.ResourceRequiresImport(m.ResourceType(), id) + } + + req := codesigningaccounts.CodeSigningAccount{ + Name: &model.Name, + Location: location.Normalize(model.Location), + Tags: &model.Tags, + Properties: &codesigningaccounts.CodeSigningAccountProperties{ + Sku: &codesigningaccounts.AccountSku{ + Name: codesigningaccounts.SkuName(model.SkuName), + }, + }, + } + + err = client.CreateThenPoll(ctx, id, req) + if err != nil { + return fmt.Errorf("creating %s: %v", id, err) + } + + meta.SetID(id) + return nil + }, + } +} + +func (m TrustedSigningAccountResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + client := meta.Client.CodeSigning.Client.CodeSigningAccounts + + id, err := codesigningaccounts.ParseCodeSigningAccountID(meta.ResourceData.Id()) + if err != nil { + return err + } + + result, err := client.Get(ctx, *id) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + output := TrustedSigningAccountModel{ + Name: id.CodeSigningAccountName, + ResourceGroupName: id.ResourceGroupName, + } + + if model := result.Model; model != nil { + output.Location = location.Normalize(model.Location) + output.Tags = pointer.From(model.Tags) + + if prop := model.Properties; prop != nil { + output.AccountUri = pointer.From(prop.AccountUri) + if sku := prop.Sku; sku != nil { + output.SkuName = string(sku.Name) + } + } + } + + return meta.Encode(&output) + }, + } +} + +func (m TrustedSigningAccountResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 10 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) (err error) { + client := meta.Client.CodeSigning.Client.CodeSigningAccounts + id, err := codesigningaccounts.ParseCodeSigningAccountID(meta.ResourceData.Id()) + if err != nil { + return err + } + var model TrustedSigningAccountModel + if err = meta.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + var patch codesigningaccounts.CodeSigningAccountPatch + if meta.ResourceData.HasChange("sku_name") { + patch.Properties = pointer.To(codesigningaccounts.CodeSigningAccountPatchProperties{ + Sku: pointer.To(codesigningaccounts.AccountSkuPatch{ + Name: pointer.To(codesigningaccounts.SkuName(model.SkuName)), + }), + }) + } + if meta.ResourceData.HasChange("tags") { + patch.Tags = pointer.To(model.Tags) + } + + if err = client.UpdateThenPoll(ctx, *id, patch); err != nil { + return fmt.Errorf("updating %s: %v", id, err) + } + + return nil + }, + } +} + +func (m TrustedSigningAccountResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 10 * time.Minute, + Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { + client := meta.Client.CodeSigning.Client.CodeSigningAccounts + + id, err := codesigningaccounts.ParseCodeSigningAccountID(meta.ResourceData.Id()) + if err != nil { + return err + } + + meta.Logger.Infof("deleting %s", id) + + if _, err = client.Delete(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %v", id, err) + } + return nil + }, + } +} + +func (m TrustedSigningAccountResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return codesigningaccounts.ValidateCodeSigningAccountID +} diff --git a/internal/services/codesigning/trusted_signing_account_resource_test.go b/internal/services/codesigning/trusted_signing_account_resource_test.go new file mode 100644 index 000000000000..d2cf7037dc63 --- /dev/null +++ b/internal/services/codesigning/trusted_signing_account_resource_test.go @@ -0,0 +1,130 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package codesigning_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/codesigning" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type TrustedSigningAccountResource struct{} + +func (a TrustedSigningAccountResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := codesigningaccounts.ParseCodeSigningAccountID(state.ID) + if err != nil { + return nil, err + } + resp, err := client.CodeSigning.Client.CodeSigningAccounts.Get(ctx, *id) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", id, err) + } + return pointer.To(resp.Model != nil), nil +} + +func TestAccTrustedSigningAccount_basic(t *testing.T) { + data := acceptance.BuildTestData(t, codesigning.TrustedSigningAccountResource{}.ResourceType(), "test") + r := TrustedSigningAccountResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccTrustedSigningAccount_update(t *testing.T) { + data := acceptance.BuildTestData(t, codesigning.TrustedSigningAccountResource{}.ResourceType(), "test") + r := TrustedSigningAccountResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccTrustedSigningAccount_complete(t *testing.T) { + data := acceptance.BuildTestData(t, codesigning.TrustedSigningAccountResource{}.ResourceType(), "test") + r := TrustedSigningAccountResource{} + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func (a TrustedSigningAccountResource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_trusted_signing_account" "test" { + name = "acctest-%[2]s" + location = "%[3]s" + resource_group_name = azurerm_resource_group.test.name + sku_name = "Basic" +} +`, a.template(data), data.RandomString, data.Locations.Primary) +} + +func (a TrustedSigningAccountResource) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_trusted_signing_account" "test" { + name = "acctest-%[2]s" + location = "%[3]s" + resource_group_name = azurerm_resource_group.test.name + sku_name = "Premium" + tags = { + key = "example" + } +} +`, a.template(data), data.RandomString, data.Locations.Primary) +} + +func (a TrustedSigningAccountResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} +`, data.RandomInteger, data.Locations.Primary) +} diff --git a/internal/services/cognitive/ai_services_resource.go b/internal/services/cognitive/ai_services_resource.go index c3443483bb3b..5d62acbc7954 100644 --- a/internal/services/cognitive/ai_services_resource.go +++ b/internal/services/cognitive/ai_services_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" "github.com/hashicorp/go-azure-sdk/sdk/environments" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" commonValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" @@ -88,7 +88,6 @@ type AzureAIServicesResourceResourceModel struct { func (AzureAIServicesResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "name": { Type: pluginsdk.TypeString, Required: true, @@ -389,16 +388,6 @@ func (AzureAIServicesResource) Read() sdk.ResourceFunc { return fmt.Errorf("retrieving %s: %+v", *id, err) } - keys, err := client.AccountsListKeys(ctx, *id) - if err != nil { - return fmt.Errorf("listing the Keys for %s: %+v", id, err) - } - - if model := keys.Model; model != nil { - state.PrimaryAccessKey = pointer.From(model.Key1) - state.SecondaryAccessKey = pointer.From(model.Key2) - } - state.Name = id.AccountName state.ResourceGroupName = id.ResourceGroupName @@ -427,6 +416,18 @@ func (AzureAIServicesResource) Read() sdk.ResourceFunc { if props.DisableLocalAuth != nil { localAuthEnabled = !*props.DisableLocalAuth } + + if localAuthEnabled { + keys, err := client.AccountsListKeys(ctx, *id) + if err != nil { + return fmt.Errorf("listing the Keys for %s: %+v", id, err) + } + + if model := keys.Model; model != nil { + state.PrimaryAccessKey = pointer.From(model.Key1) + state.SecondaryAccessKey = pointer.From(model.Key2) + } + } state.LocalAuthorizationEnabled = localAuthEnabled customerManagedKey, err := flattenAzureAIServicesCustomerManagedKey(props.Encryption, env) @@ -500,7 +501,7 @@ func (AzureAIServicesResource) Update() sdk.ResourceFunc { } if metadata.ResourceData.HasChange("custom_subdomain_name") { - props.Properties.CustomSubDomainName = pointer.FromString(model.CustomSubdomainName) + props.Properties.CustomSubDomainName = pointer.To(model.CustomSubdomainName) } if metadata.ResourceData.HasChange("fqdns") { @@ -635,7 +636,6 @@ func expandAzureAIServicesCustomerManagedKey(input []AzureAIServicesCustomerMana encryption.KeyVaultProperties.KeyVaultUri = pointer.To(hsmKyId.BaseUri()) } return encryption, nil - } func flattenAzureAIServicesCustomerManagedKey(input *cognitiveservicesaccounts.Encryption, env environments.Environment) ([]AzureAIServicesCustomerManagedKey, error) { diff --git a/internal/services/cognitive/ai_services_resource_test.go b/internal/services/cognitive/ai_services_resource_test.go index 0873df63cfe9..0c48ca4304ff 100644 --- a/internal/services/cognitive/ai_services_resource_test.go +++ b/internal/services/cognitive/ai_services_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -66,8 +66,6 @@ func TestAccCognitiveAzureAIServices_complete(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("tags.%").HasValue("1"), check.That(data.ResourceName).Key("tags.Acceptance").HasValue("Test"), - check.That(data.ResourceName).Key("primary_access_key").Exists(), - check.That(data.ResourceName).Key("secondary_access_key").Exists(), ), }, data.ImportStep(), @@ -94,8 +92,6 @@ func TestAccCognitiveAzureAIServices_update(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("tags.%").HasValue("1"), check.That(data.ResourceName).Key("tags.Acceptance").HasValue("Test"), - check.That(data.ResourceName).Key("primary_access_key").Exists(), - check.That(data.ResourceName).Key("secondary_access_key").Exists(), ), }, }) diff --git a/internal/services/cognitive/client/client.go b/internal/services/cognitive/client/client.go index 81eddda7f77a..e9692f5de8ff 100644 --- a/internal/services/cognitive/client/client.go +++ b/internal/services/cognitive/client/client.go @@ -6,8 +6,8 @@ package client import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) @@ -17,7 +17,6 @@ type Client struct { } func NewClient(o *common.ClientOptions) (*Client, error) { - accountsClient, err := cognitiveservicesaccounts.NewCognitiveServicesAccountsClientWithBaseURI(o.Environment.ResourceManager) if err != nil { return nil, fmt.Errorf("building Accounts client: %+v", err) diff --git a/internal/services/cognitive/cognitive_account_customer_managed_key_resource.go b/internal/services/cognitive/cognitive_account_customer_managed_key_resource.go index be9e25d9e413..04b2387f6754 100644 --- a/internal/services/cognitive/cognitive_account_customer_managed_key_resource.go +++ b/internal/services/cognitive/cognitive_account_customer_managed_key_resource.go @@ -8,7 +8,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go b/internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go index 9076fcabbbb2..be252624cd51 100644 --- a/internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go +++ b/internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/cognitive/cognitive_account_data_source.go b/internal/services/cognitive/cognitive_account_data_source.go index 3f42fbaaa455..f28486dcca70 100644 --- a/internal/services/cognitive/cognitive_account_data_source.go +++ b/internal/services/cognitive/cognitive_account_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -36,6 +36,11 @@ func dataSourceCognitiveAccount() *pluginsdk.Resource { "location": commonschema.LocationComputed(), + "local_auth_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -90,19 +95,8 @@ func dataSourceCognitiveAccountRead(d *pluginsdk.ResourceData, meta interface{}) return fmt.Errorf("retrieving %s: %+v", id, err) } - keys, err := client.AccountsListKeys(ctx, id) - if err != nil { - // TODO: gracefully fail here - return fmt.Errorf("retrieving Keys for %s: %+v", id, err) - } - d.SetId(id.ID()) - if model := keys.Model; model != nil { - d.Set("primary_access_key", model.Key1) - d.Set("secondary_access_key", model.Key2) - } - if model := resp.Model; model != nil { d.Set("location", location.NormalizeNilable(model.Location)) d.Set("kind", model.Kind) @@ -115,6 +109,25 @@ func dataSourceCognitiveAccountRead(d *pluginsdk.ResourceData, meta interface{}) d.Set("qna_runtime_endpoint", apiProps.QnaRuntimeEndpoint) } d.Set("endpoint", props.Endpoint) + + localAuthEnabled := true + if props.DisableLocalAuth != nil { + localAuthEnabled = !*props.DisableLocalAuth + } + d.Set("local_auth_enabled", localAuthEnabled) + + if localAuthEnabled { + keys, err := client.AccountsListKeys(ctx, id) + if err != nil { + // note for the resource we shouldn't gracefully fail since we have permission to CRUD it + return fmt.Errorf("listing the Keys for %s: %+v", id, err) + } + + if model := keys.Model; model != nil { + d.Set("primary_access_key", model.Key1) + d.Set("secondary_access_key", model.Key2) + } + } } flattenedIdentity, err := identity.FlattenSystemAndUserAssignedMap(model.Identity) diff --git a/internal/services/cognitive/cognitive_account_data_source_test.go b/internal/services/cognitive/cognitive_account_data_source_test.go index db242ebd6e4e..d75fd8e82bfe 100644 --- a/internal/services/cognitive/cognitive_account_data_source_test.go +++ b/internal/services/cognitive/cognitive_account_data_source_test.go @@ -23,6 +23,7 @@ func TestAccCognitiveAccountDataSource_basic(t *testing.T) { Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).Key("kind").HasValue("Face"), check.That(data.ResourceName).Key("tags.%").HasValue("1"), + check.That(data.ResourceName).Key("local_auth_enabled").HasValue("true"), check.That(data.ResourceName).Key("primary_access_key").Exists(), check.That(data.ResourceName).Key("secondary_access_key").Exists(), ), @@ -40,6 +41,7 @@ func TestAccCognitiveAccountDataSource_identity(t *testing.T) { Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).Key("kind").HasValue("Face"), check.That(data.ResourceName).Key("tags.%").HasValue("1"), + check.That(data.ResourceName).Key("local_auth_enabled").HasValue("true"), check.That(data.ResourceName).Key("primary_access_key").Exists(), check.That(data.ResourceName).Key("secondary_access_key").Exists(), check.That(data.ResourceName).Key("identity.0.principal_id").Exists(), diff --git a/internal/services/cognitive/cognitive_account_resource.go b/internal/services/cognitive/cognitive_account_resource.go index 056a8e8e6108..e2a281147b2f 100644 --- a/internal/services/cognitive/cognitive_account_resource.go +++ b/internal/services/cognitive/cognitive_account_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" search "github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" @@ -518,17 +518,6 @@ func resourceCognitiveAccountRead(d *pluginsdk.ResourceData, meta interface{}) e return fmt.Errorf("retrieving %s: %+v", *id, err) } - keys, err := client.AccountsListKeys(ctx, *id) - if err != nil { - // note for the resource we shouldn't gracefully fail since we have permission to CRUD it - return fmt.Errorf("listing the Keys for %s: %+v", *id, err) - } - - if model := keys.Model; model != nil { - d.Set("primary_access_key", model.Key1) - d.Set("secondary_access_key", model.Key2) - } - d.Set("name", id.AccountName) d.Set("resource_group_name", id.ResourceGroupName) @@ -591,6 +580,19 @@ func resourceCognitiveAccountRead(d *pluginsdk.ResourceData, meta interface{}) e } d.Set("local_auth_enabled", localAuthEnabled) + if localAuthEnabled { + keys, err := client.AccountsListKeys(ctx, *id) + if err != nil { + // note for the resource we shouldn't gracefully fail since we have permission to CRUD it + return fmt.Errorf("listing the Keys for %s: %+v", *id, err) + } + + if model := keys.Model; model != nil { + d.Set("primary_access_key", model.Key1) + d.Set("secondary_access_key", model.Key2) + } + } + customerManagedKey, err := flattenCognitiveAccountCustomerManagedKey(props.Encryption) if err != nil { return err diff --git a/internal/services/cognitive/cognitive_account_resource_test.go b/internal/services/cognitive/cognitive_account_resource_test.go index 1fbed7e979e0..96a8ac43715d 100644 --- a/internal/services/cognitive/cognitive_account_resource_test.go +++ b/internal/services/cognitive/cognitive_account_resource_test.go @@ -9,7 +9,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -133,8 +133,6 @@ func TestAccCognitiveAccount_complete(t *testing.T) { check.That(data.ResourceName).Key("kind").HasValue("Face"), check.That(data.ResourceName).Key("tags.%").HasValue("1"), check.That(data.ResourceName).Key("tags.Acceptance").HasValue("Test"), - check.That(data.ResourceName).Key("primary_access_key").Exists(), - check.That(data.ResourceName).Key("secondary_access_key").Exists(), ), }, data.ImportStep(), @@ -163,8 +161,6 @@ func TestAccCognitiveAccount_update(t *testing.T) { check.That(data.ResourceName).Key("kind").HasValue("Face"), check.That(data.ResourceName).Key("tags.%").HasValue("1"), check.That(data.ResourceName).Key("tags.Acceptance").HasValue("Test"), - check.That(data.ResourceName).Key("primary_access_key").Exists(), - check.That(data.ResourceName).Key("secondary_access_key").Exists(), ), }, }) diff --git a/internal/services/cognitive/cognitive_deployment_resource.go b/internal/services/cognitive/cognitive_deployment_resource.go index b7c18eb74511..40ecfcc8b9dc 100644 --- a/internal/services/cognitive/cognitive_deployment_resource.go +++ b/internal/services/cognitive/cognitive_deployment_resource.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -117,6 +117,7 @@ func (r CognitiveDeploymentResource) Arguments() map[string]*pluginsdk.Schema { ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ "Standard", + "DataZoneStandard", "GlobalBatch", "GlobalStandard", "ProvisionedManaged", @@ -320,7 +321,6 @@ func (r CognitiveDeploymentResource) Read() sdk.ResourceFunc { } if properties := model.Properties; properties != nil { - state.Model = flattenDeploymentModelModel(properties.Model) if v := properties.RaiPolicyName; v != nil { diff --git a/internal/services/cognitive/cognitive_deployment_resource_test.go b/internal/services/cognitive/cognitive_deployment_resource_test.go index 589c7d2cae10..1cb9cffd5746 100644 --- a/internal/services/cognitive/cognitive_deployment_resource_test.go +++ b/internal/services/cognitive/cognitive_deployment_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments" + "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/communication/communication_service_resource.go b/internal/services/communication/communication_service_resource.go index f1f4f70319c7..571ab485874f 100644 --- a/internal/services/communication/communication_service_resource.go +++ b/internal/services/communication/communication_service_resource.go @@ -20,8 +20,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.ResourceWithUpdate = CommunicationServiceResource{} -var _ sdk.ResourceWithStateMigration = CommunicationServiceResource{} +var ( + _ sdk.ResourceWithUpdate = CommunicationServiceResource{} + _ sdk.ResourceWithStateMigration = CommunicationServiceResource{} +) type CommunicationServiceResource struct{} @@ -80,6 +82,7 @@ func (CommunicationServiceResource) Arguments() map[string]*pluginsdk.Schema { "UAE", "UK", "United States", + "usgov", }, false), }, diff --git a/internal/services/communication/email_service_domain_resource.go b/internal/services/communication/email_service_domain_resource.go index 6a782eb30bc9..5e663730042f 100644 --- a/internal/services/communication/email_service_domain_resource.go +++ b/internal/services/communication/email_service_domain_resource.go @@ -250,7 +250,6 @@ func (EmailCommunicationServiceDomainResource) Read() sdk.ResourceFunc { if props.UserEngagementTracking != nil { state.UserEngagementTrackingEnabled = *props.UserEngagementTracking == domains.UserEngagementTrackingEnabled - } domainVerificationRecords := EmailDomainVerificationRecords{} diff --git a/internal/services/communication/email_service_resource.go b/internal/services/communication/email_service_resource.go index fd14c293777d..8b77ef08b185 100644 --- a/internal/services/communication/email_service_resource.go +++ b/internal/services/communication/email_service_resource.go @@ -62,6 +62,7 @@ func (EmailCommunicationServiceResource) Arguments() map[string]*pluginsdk.Schem "UAE", "UK", "United States", + "usgov", }, false), }, diff --git a/internal/services/compute/disk_encryption_set_resource.go b/internal/services/compute/disk_encryption_set_resource.go index d17eb7ce66d5..f1b350bfd5f2 100644 --- a/internal/services/compute/disk_encryption_set_resource.go +++ b/internal/services/compute/disk_encryption_set_resource.go @@ -32,7 +32,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func resourceDiskEncryptionSet() *pluginsdk.Resource { @@ -337,7 +337,6 @@ func resourceDiskEncryptionSetRead(d *pluginsdk.ResourceData, meta interface{}) } } } - } encryptionType := string(diskencryptionsets.DiskEncryptionSetTypeEncryptionAtRestWithCustomerKey) diff --git a/internal/services/compute/image_resource_test.go b/internal/services/compute/image_resource_test.go index 277e0fcfb969..697b04ef8283 100644 --- a/internal/services/compute/image_resource_test.go +++ b/internal/services/compute/image_resource_test.go @@ -16,8 +16,8 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/ssh" @@ -242,7 +242,6 @@ func (ImageResource) generalizeVirtualMachine(data acceptance.TestData) func(con if configs := props.IPConfigurations; configs != nil { for _, config := range *props.IPConfigurations { if configProps := config.Properties; configProps != nil { - if configProps.PublicIPAddress == nil { continue } diff --git a/internal/services/compute/linux_virtual_machine_resource.go b/internal/services/compute/linux_virtual_machine_resource.go index a92e1ec8bd34..3c4cde6ea2c6 100644 --- a/internal/services/compute/linux_virtual_machine_resource.go +++ b/internal/services/compute/linux_virtual_machine_resource.go @@ -994,7 +994,6 @@ func resourceLinuxVirtualMachineRead(d *pluginsdk.ResourceData, meta interface{} if err := d.Set("source_image_reference", flattenSourceImageReference(profile.ImageReference, storageImageId != "")); err != nil { return fmt.Errorf("setting `source_image_reference`: %+v", err) } - } if scheduleProfile := props.ScheduledEventsProfile; scheduleProfile != nil { diff --git a/internal/services/compute/linux_virtual_machine_resource_disk_os_test.go b/internal/services/compute/linux_virtual_machine_resource_disk_os_test.go index 71413251e83f..fa74cdcc1ce0 100644 --- a/internal/services/compute/linux_virtual_machine_resource_disk_os_test.go +++ b/internal/services/compute/linux_virtual_machine_resource_disk_os_test.go @@ -1197,5 +1197,5 @@ resource "azurerm_key_vault_access_policy" "disk-encryption" { tenant_id = azurerm_disk_encryption_set.test.identity.0.tenant_id object_id = azurerm_disk_encryption_set.test.identity.0.principal_id } -`, r.template(data), data.RandomInteger, data.RandomString) +`, r.templateWithOutProvider(data), data.RandomInteger, data.RandomString) } diff --git a/internal/services/compute/linux_virtual_machine_resource_images_test.go b/internal/services/compute/linux_virtual_machine_resource_images_test.go index fd985ede10ea..508e02ae58dc 100644 --- a/internal/services/compute/linux_virtual_machine_resource_images_test.go +++ b/internal/services/compute/linux_virtual_machine_resource_images_test.go @@ -137,6 +137,10 @@ locals { admin_password = "Password1234!%[1]d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%[1]d" location = "%[2]s" diff --git a/internal/services/compute/linux_virtual_machine_resource_orchestrated_test.go b/internal/services/compute/linux_virtual_machine_resource_orchestrated_test.go index 9b3312ec8dfa..b464d5d8fce6 100644 --- a/internal/services/compute/linux_virtual_machine_resource_orchestrated_test.go +++ b/internal/services/compute/linux_virtual_machine_resource_orchestrated_test.go @@ -700,6 +700,10 @@ locals { vm_name = "acctestvm%s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" diff --git a/internal/services/compute/linux_virtual_machine_resource_other_test.go b/internal/services/compute/linux_virtual_machine_resource_other_test.go index 20d1695a6733..4fb119cf8cec 100644 --- a/internal/services/compute/linux_virtual_machine_resource_other_test.go +++ b/internal/services/compute/linux_virtual_machine_resource_other_test.go @@ -1611,6 +1611,10 @@ func (r LinuxVirtualMachineResource) otherEdgeZone(data acceptance.TestData) str return fmt.Sprintf(` %[1]s +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%[3]d" location = "%[2]s" @@ -1977,7 +1981,7 @@ resource "azurerm_linux_virtual_machine" "test" { version = "latest" } } -`, r.template(data), data.RandomInteger) +`, r.templateWithOutProvider(data), data.RandomInteger) } func (r LinuxVirtualMachineResource) otherLicenseType(data acceptance.TestData) string { @@ -2333,7 +2337,7 @@ resource "azurerm_key_vault_certificate" "second" { } } } -`, r.template(data), data.RandomString) +`, r.templateWithOutProvider(data), data.RandomString) } func (r LinuxVirtualMachineResource) otherSecret(data acceptance.TestData) string { diff --git a/internal/services/compute/linux_virtual_machine_resource_test.go b/internal/services/compute/linux_virtual_machine_resource_test.go index 02667a9f9e99..48fa772ef5e9 100644 --- a/internal/services/compute/linux_virtual_machine_resource_test.go +++ b/internal/services/compute/linux_virtual_machine_resource_test.go @@ -45,6 +45,35 @@ func (r LinuxVirtualMachineResource) templateBase(data acceptance.TestData) stri return fmt.Sprintf(` %s +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_virtual_network" "test" { + name = "acctestnw-%d" + address_space = ["10.0.0.0/16"] + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_subnet" "test" { + name = "internal" + resource_group_name = azurerm_resource_group.test.name + virtual_network_name = azurerm_virtual_network.test.name + address_prefixes = ["10.0.2.0/24"] +} +`, r.templateBasePublicKey(), data.RandomInteger, data.Locations.Primary, data.RandomInteger) +} + +func (r LinuxVirtualMachineResource) templateBaseWithOutProvider(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -83,3 +112,21 @@ resource "azurerm_network_interface" "test" { } `, r.templateBase(data), data.RandomInteger) } + +func (r LinuxVirtualMachineResource) templateWithOutProvider(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_network_interface" "test" { + name = "acctestnic-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + ip_configuration { + name = "internal" + subnet_id = azurerm_subnet.test.id + private_ip_address_allocation = "Dynamic" + } +} +`, r.templateBaseWithOutProvider(data), data.RandomInteger) +} diff --git a/internal/services/compute/linux_virtual_machine_scale_set_resource_disk_os_test.go b/internal/services/compute/linux_virtual_machine_scale_set_resource_disk_os_test.go index 0ae5012a4db1..4167f07e1172 100644 --- a/internal/services/compute/linux_virtual_machine_scale_set_resource_disk_os_test.go +++ b/internal/services/compute/linux_virtual_machine_scale_set_resource_disk_os_test.go @@ -812,5 +812,5 @@ resource "azurerm_key_vault_access_policy" "disk-encryption" { tenant_id = azurerm_disk_encryption_set.test.identity.0.tenant_id object_id = azurerm_disk_encryption_set.test.identity.0.principal_id } -`, r.template(data), data.RandomInteger, data.RandomString) +`, r.templateWithOutProvider(data), data.RandomInteger, data.RandomString) } diff --git a/internal/services/compute/linux_virtual_machine_scale_set_resource_extensions_test.go b/internal/services/compute/linux_virtual_machine_scale_set_resource_extensions_test.go index b116e146431e..864ece8e1498 100644 --- a/internal/services/compute/linux_virtual_machine_scale_set_resource_extensions_test.go +++ b/internal/services/compute/linux_virtual_machine_scale_set_resource_extensions_test.go @@ -420,10 +420,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionOnlySettings(data acceptan return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -482,10 +478,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionBasic(data acceptance.Test return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -548,10 +540,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionForceUpdateTag(data accept return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -614,10 +602,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionMultiple(data acceptance.T return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -694,10 +678,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionUpdate(data acceptance.Tes return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -754,9 +734,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "test" { func (r LinuxVirtualMachineScaleSetResource) extensionsRollingUpgradeWithHealthExtension(data acceptance.TestData) string { return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} + resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -813,9 +791,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "test" { func (r LinuxVirtualMachineScaleSetResource) extensionsWithHealthExtension(data acceptance.TestData) string { return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} + resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -867,9 +843,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "test" { func (r LinuxVirtualMachineScaleSetResource) extensionsAutomaticUpgradeWithHealthExtension(data acceptance.TestData) string { return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} + resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -932,10 +906,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionWithTimeBudget(data accept return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -996,10 +966,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionTimeBudgetWithoutExtension return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -1044,10 +1010,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionsAutomaticUpgradeWithServi return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_service_fabric_cluster" "test" { name = "acctest-%d" resource_group_name = azurerm_resource_group.test.name @@ -1137,10 +1099,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionAutomaticUpgradeEnabled(da return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -1195,10 +1153,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionOperationsEnabled(data acc return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -1263,10 +1217,6 @@ func (r LinuxVirtualMachineScaleSetResource) extensionOperationsDisabled(data ac return fmt.Sprintf(` %[1]s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -1411,5 +1361,5 @@ resource "azurerm_linux_virtual_machine_scale_set" "test" { } } } -`, r.template(data), data.RandomInteger, data.RandomString, index) +`, r.templateWithOutProvider(data), data.RandomInteger, data.RandomString, index) } diff --git a/internal/services/compute/linux_virtual_machine_scale_set_resource_images_test.go b/internal/services/compute/linux_virtual_machine_scale_set_resource_images_test.go index 20c3a5a95779..aebdb8a61295 100644 --- a/internal/services/compute/linux_virtual_machine_scale_set_resource_images_test.go +++ b/internal/services/compute/linux_virtual_machine_scale_set_resource_images_test.go @@ -593,7 +593,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "test" { } } } -`, r.template(data), data.RandomInteger, offer, sku) +`, r.templateWithOutProvider(data), data.RandomInteger, offer, sku) } func (r LinuxVirtualMachineScaleSetResource) imagesRollingUpdate(data acceptance.TestData, offer, sku string) string { diff --git a/internal/services/compute/linux_virtual_machine_scale_set_resource_network_test.go b/internal/services/compute/linux_virtual_machine_scale_set_resource_network_test.go index 918b23226561..2fce84eaa0e3 100644 --- a/internal/services/compute/linux_virtual_machine_scale_set_resource_network_test.go +++ b/internal/services/compute/linux_virtual_machine_scale_set_resource_network_test.go @@ -1675,7 +1675,8 @@ resource "azurerm_linux_virtual_machine_scale_set" "test" { } // skipped -// nolint:unused +// +//nolint:unused func (r LinuxVirtualMachineScaleSetResource) networkPublicIPVersion(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/compute/linux_virtual_machine_scale_set_resource_other_test.go b/internal/services/compute/linux_virtual_machine_scale_set_resource_other_test.go index 8f0d9b12c484..b6d982321d93 100644 --- a/internal/services/compute/linux_virtual_machine_scale_set_resource_other_test.go +++ b/internal/services/compute/linux_virtual_machine_scale_set_resource_other_test.go @@ -836,7 +836,6 @@ func TestAccLinuxVirtualMachineScaleSet_otherCancelRollingUpgrades(t *testing.T) } return nil - }, data.ResourceName), ), }, @@ -1233,6 +1232,10 @@ func (r LinuxVirtualMachineScaleSetResource) otherEdgeZone(data acceptance.TestD return fmt.Sprintf(` %[1]s +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%[3]d" location = "%[2]s" @@ -1343,7 +1346,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "test" { } } } -`, r.template(data), data.RandomInteger) +`, r.templateWithOutProvider(data), data.RandomInteger) } func (r LinuxVirtualMachineScaleSetResource) otherPrioritySpot(data acceptance.TestData, evictionPolicy string) string { @@ -2706,10 +2709,6 @@ func (r LinuxVirtualMachineScaleSetResource) otherEncryptionAtHost(data acceptan return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -3143,10 +3142,6 @@ func (r LinuxVirtualMachineScaleSetResource) otherSecureBootEnabled(data accepta return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -3190,10 +3185,6 @@ func (r LinuxVirtualMachineScaleSetResource) otherVTpmEnabled(data acceptance.Te return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_linux_virtual_machine_scale_set" "test" { name = "acctestvmss-%d" resource_group_name = azurerm_resource_group.test.name @@ -3446,5 +3437,5 @@ resource "azurerm_linux_virtual_machine_scale_set" "test" { } } } -`, r.template(data), data.RandomInteger, sku) +`, r.templateWithOutProvider(data), data.RandomInteger, sku) } diff --git a/internal/services/compute/linux_virtual_machine_scale_set_resource_test.go b/internal/services/compute/linux_virtual_machine_scale_set_resource_test.go index 8860ffc8d102..59805c2952ea 100644 --- a/internal/services/compute/linux_virtual_machine_scale_set_resource_test.go +++ b/internal/services/compute/linux_virtual_machine_scale_set_resource_test.go @@ -45,6 +45,35 @@ func (r LinuxVirtualMachineScaleSetResource) template(data acceptance.TestData) return fmt.Sprintf(` %s +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-vmss-%d" + location = "%s" +} + +resource "azurerm_virtual_network" "test" { + name = "acctestnw-%d" + address_space = ["10.0.0.0/16"] + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_subnet" "test" { + name = "internal" + resource_group_name = azurerm_resource_group.test.name + virtual_network_name = azurerm_virtual_network.test.name + address_prefixes = ["10.0.2.0/24"] +} +`, r.templatePublicKey(), data.RandomInteger, data.Locations.Primary, data.RandomInteger) +} + +func (r LinuxVirtualMachineScaleSetResource) templateWithOutProvider(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + resource "azurerm_resource_group" "test" { name = "acctestRG-vmss-%d" location = "%s" @@ -70,6 +99,10 @@ func (r LinuxVirtualMachineScaleSetResource) templateWithLocation(data acceptanc return fmt.Sprintf(` %s +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-vmss-%d" location = "%s" diff --git a/internal/services/compute/managed_disk_resource.go b/internal/services/compute/managed_disk_resource.go index 184b61150f92..4db1c1b8933d 100644 --- a/internal/services/compute/managed_disk_resource.go +++ b/internal/services/compute/managed_disk_resource.go @@ -913,7 +913,6 @@ func resourceManagedDiskUpdate(d *pluginsdk.ResourceData, meta interface{}) erro options.SkipShutdown = pointer.To(false) if err := virtualMachinesClient.PowerOffThenPoll(ctx, *virtualMachineId, options); err != nil { return fmt.Errorf("sending Power Off to %s: %+v", virtualMachineId, err) - } log.Printf("[DEBUG] Shut Down %s", virtualMachineId) diff --git a/internal/services/compute/network_interface.go b/internal/services/compute/network_interface.go index a51249456ae9..40f9dc86a806 100644 --- a/internal/services/compute/network_interface.go +++ b/internal/services/compute/network_interface.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/compute/orchestrated_virtual_machine_scale_set.go b/internal/services/compute/orchestrated_virtual_machine_scale_set.go index 906ffd52286f..56e304b32f2e 100644 --- a/internal/services/compute/orchestrated_virtual_machine_scale_set.go +++ b/internal/services/compute/orchestrated_virtual_machine_scale_set.go @@ -664,7 +664,8 @@ func OrchestratedVirtualMachineScaleSetOSDiskSchema() *pluginsdk.Schema { string(virtualmachinescalesets.DiffDiskPlacementCacheDisk), string(virtualmachinescalesets.DiffDiskPlacementResourceDisk), }, false), - }}, + }, + }, }, }, @@ -1626,7 +1627,6 @@ func FlattenOrchestratedVirtualMachineScaleSetIPConfiguration(input virtualmachi applicationGatewayBackendAddressPoolIds = flattenSubResourcesToIDs(props.ApplicationGatewayBackendAddressPools) applicationSecurityGroupIds = flattenSubResourcesToIDs(props.ApplicationSecurityGroups) loadBalancerBackendAddressPoolIds = flattenSubResourcesToIDs(props.LoadBalancerBackendAddressPools) - } return map[string]interface{}{ @@ -1686,7 +1686,6 @@ func FlattenOrchestratedVirtualMachineScaleSetPublicIPAddress(input virtualmachi if input.Sku != nil && input.Sku.Name != nil && input.Sku.Tier != nil { sku = flattenOrchestratedVirtualMachineScaleSetPublicIPSku(input.Sku) } - } return map[string]interface{}{ @@ -1855,7 +1854,6 @@ func FlattenOrchestratedVirtualMachineScaleSetNetworkInterface(input *[]virtualm ipConfigurations = append(ipConfigurations, config) } } - } results = append(results, map[string]interface{}{ @@ -2025,7 +2023,6 @@ func FlattenOrchestratedVirtualMachineScaleSetScheduledEventsProfile(input *virt } func FlattenOrchestratedVirtualMachineScaleSetPriorityMixPolicy(input *virtualmachinescalesets.PriorityMixPolicy) []interface{} { - baseRegularPriorityCount := int64(0) if input != nil && input.BaseRegularPriorityCount != nil { baseRegularPriorityCount = *input.BaseRegularPriorityCount diff --git a/internal/services/compute/orchestrated_virtual_machine_scale_set_data_source.go b/internal/services/compute/orchestrated_virtual_machine_scale_set_data_source.go index da69a19e9d6c..3ef81fe0bb6b 100644 --- a/internal/services/compute/orchestrated_virtual_machine_scale_set_data_source.go +++ b/internal/services/compute/orchestrated_virtual_machine_scale_set_data_source.go @@ -175,7 +175,6 @@ func (r OrchestratedVirtualMachineScaleSetDataSource) Read() sdk.ResourceFunc { orchestratedVMSS.NetworkInterface = flattenVirtualMachineScaleSetNetworkInterface(nwProfile.NetworkInterfaceConfigurations) } } - } } diff --git a/internal/services/compute/orchestrated_virtual_machine_scale_set_resource.go b/internal/services/compute/orchestrated_virtual_machine_scale_set_resource.go index eb25fc96fa5d..ec21373326b1 100644 --- a/internal/services/compute/orchestrated_virtual_machine_scale_set_resource.go +++ b/internal/services/compute/orchestrated_virtual_machine_scale_set_resource.go @@ -36,6 +36,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/utils" ) +const ( + SkuNameMix = "Mix" +) + func resourceOrchestratedVirtualMachineScaleSet() *pluginsdk.Resource { return &pluginsdk.Resource{ Create: resourceOrchestratedVirtualMachineScaleSetCreate, @@ -93,6 +97,35 @@ func resourceOrchestratedVirtualMachineScaleSet() *pluginsdk.Resource { ValidateFunc: computeValidate.OrchestratedVirtualMachineScaleSetSku, }, + "sku_profile": { + Type: pluginsdk.TypeList, + Optional: true, + ForceNew: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allocation_strategy": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice( + virtualmachinescalesets.PossibleValuesForAllocationStrategy(), + false, + ), + }, + + "vm_sizes": { + Type: pluginsdk.TypeSet, + Required: true, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, + }, + }, + }, + "os_profile": OrchestratedVirtualMachineScaleSetOSProfileSchema(), // Optional @@ -293,6 +326,23 @@ func resourceOrchestratedVirtualMachineScaleSet() *pluginsdk.Resource { return false }), + + pluginsdk.CustomizeDiffShim(func(ctx context.Context, diff *pluginsdk.ResourceDiff, v interface{}) error { + skuName, hasSkuName := diff.GetOk("sku_name") + _, hasSkuProfile := diff.GetOk("sku_profile") + + if hasSkuProfile { + if !hasSkuName || skuName != SkuNameMix { + return fmt.Errorf("`sku_profile` can only be set when `sku_name` is set to `Mix`") + } + } else { + if hasSkuName && skuName == SkuNameMix { + return fmt.Errorf("`sku_profile` must be set when `sku_name` is set to `Mix`") + } + } + + return nil + }), ), } } @@ -376,6 +426,10 @@ func resourceOrchestratedVirtualMachineScaleSetCreate(d *pluginsdk.ResourceData, props.Sku = sku } + if v, ok := d.GetOk("sku_profile"); ok { + props.Properties.SkuProfile = expandOrchestratedVirtualMachineScaleSetSkuProfile(v.([]interface{})) + } + if v, ok := d.GetOk("capacity_reservation_group_id"); ok { if d.Get("single_placement_group").(bool) { return fmt.Errorf("`single_placement_group` must be set to `false` when `capacity_reservation_group_id` is specified") @@ -494,7 +548,7 @@ func resourceOrchestratedVirtualMachineScaleSetCreate(d *pluginsdk.ResourceData, } if !hasHealthExtension { - return fmt.Errorf("when 'patch_mode' is set to %q then the 'extension' field must always always contain a 'application health extension'", patchMode) + return fmt.Errorf("when 'patch_mode' is set to %q then the 'extension' field must always contain a 'application health extension'", patchMode) } } @@ -757,6 +811,11 @@ func resourceOrchestratedVirtualMachineScaleSetUpdate(d *pluginsdk.ResourceData, } } + if d.HasChange("sku_profile") { + updateInstances = true + updateProps.SkuProfile = expandOrchestratedVirtualMachineScaleSetSkuProfile(d.Get("sku_profile").([]interface{})) + } + if d.HasChange("max_bid_price") { if priority != virtualmachinescalesets.VirtualMachinePriorityTypesSpot { return fmt.Errorf("`max_bid_price` can only be configured when `priority` is set to `Spot`") @@ -1223,6 +1282,11 @@ func resourceOrchestratedVirtualMachineScaleSetRead(d *pluginsdk.ResourceData, m if props.SinglePlacementGroup != nil { d.Set("single_placement_group", props.SinglePlacementGroup) } + + if err := d.Set("sku_profile", flattenOrchestratedVirtualMachineScaleSetSkuProfile(props.SkuProfile)); err != nil { + return fmt.Errorf("setting `sku_profile`: %+v", err) + } + d.Set("unique_id", props.UniqueId) d.Set("zone_balance", props.ZoneBalance) @@ -1390,17 +1454,60 @@ func resourceOrchestratedVirtualMachineScaleSetDelete(d *pluginsdk.ResourceData, return nil } +func expandOrchestratedVirtualMachineScaleSetSkuProfile(input []interface{}) *virtualmachinescalesets.SkuProfile { + if len(input) == 0 || input[0] == nil { + return nil + } + + v := input[0].(map[string]interface{}) + vmSizesRaw := v["vm_sizes"].(*pluginsdk.Set).List() + vmSizes := make([]virtualmachinescalesets.SkuProfileVMSize, 0) + for _, vmSize := range vmSizesRaw { + vmSizes = append(vmSizes, virtualmachinescalesets.SkuProfileVMSize{ + Name: pointer.To(vmSize.(string)), + }) + } + + return &virtualmachinescalesets.SkuProfile{ + AllocationStrategy: pointer.To((virtualmachinescalesets.AllocationStrategy)(v["allocation_strategy"].(string))), + VMSizes: pointer.To(vmSizes), + } +} + +func flattenOrchestratedVirtualMachineScaleSetSkuProfile(input *virtualmachinescalesets.SkuProfile) []interface{} { + if input == nil { + return make([]interface{}, 0) + } + + vmSizes := make([]string, 0) + if input.VMSizes != nil { + for _, vmSize := range *input.VMSizes { + vmSizes = append(vmSizes, *vmSize.Name) + } + } + + return []interface{}{ + map[string]interface{}{ + "allocation_strategy": string(pointer.From(input.AllocationStrategy)), + "vm_sizes": vmSizes, + }, + } +} + func expandOrchestratedVirtualMachineScaleSetSku(input string, capacity int) (*virtualmachinescalesets.Sku, error) { skuParts := strings.Split(input, "_") - if len(skuParts) < 2 || strings.Contains(input, "__") || strings.Contains(input, " ") { + if (input != SkuNameMix && len(skuParts) < 2) || strings.Contains(input, "__") || strings.Contains(input, " ") { return nil, fmt.Errorf("'sku_name'(%q) is not formatted properly", input) } sku := &virtualmachinescalesets.Sku{ Name: pointer.To(input), Capacity: utils.Int64(int64(capacity)), - Tier: pointer.To("Standard"), + } + + if input != SkuNameMix { + sku.Tier = pointer.To("Standard") } return sku, nil @@ -1409,7 +1516,7 @@ func expandOrchestratedVirtualMachineScaleSetSku(input string, capacity int) (*v func flattenOrchestratedVirtualMachineScaleSetSku(input *virtualmachinescalesets.Sku) (*string, error) { var skuName string if input != nil && input.Name != nil { - if strings.HasPrefix(strings.ToLower(*input.Name), "standard") { + if strings.HasPrefix(strings.ToLower(*input.Name), "standard") || *input.Name == SkuNameMix { skuName = *input.Name } else { skuName = fmt.Sprintf("Standard_%s", *input.Name) diff --git a/internal/services/compute/orchestrated_virtual_machine_scale_set_resource_test.go b/internal/services/compute/orchestrated_virtual_machine_scale_set_resource_test.go index 517772b02001..7f3b3597a90d 100644 --- a/internal/services/compute/orchestrated_virtual_machine_scale_set_resource_test.go +++ b/internal/services/compute/orchestrated_virtual_machine_scale_set_resource_test.go @@ -6,6 +6,7 @@ package compute_test import ( "context" "fmt" + "regexp" "testing" "time" @@ -414,6 +415,58 @@ func TestAccOrchestratedVirtualMachineScaleSet_importLinux(t *testing.T) { }) } +func TestAccOrchestratedVirtualMachineScaleSet_skuProfileErrorConfiguration(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_orchestrated_virtual_machine_scale_set", "test") + r := OrchestratedVirtualMachineScaleSetResource{} + + // TODO - Remove this override when Preview is rolled out to westeurope - currently only supported in EastUS, WestUS, EastUS2, and WestUS2 + data.Locations.Primary = "eastus2" + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.skuProfileWithoutSkuName(data), + ExpectError: regexp.MustCompile("`sku_profile` can only be set when `sku_name` is set to `Mix`"), + }, + { + Config: r.skuProfileSkuNameIsNotMix(data), + ExpectError: regexp.MustCompile("`sku_profile` can only be set when `sku_name` is set to `Mix`"), + }, + { + Config: r.skuProfileNotExist(data), + ExpectError: regexp.MustCompile("`sku_profile` must be set when `sku_name` is set to `Mix`"), + }, + }) +} + +func TestAccOrchestratedVirtualMachineScaleSet_skuProfile(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_orchestrated_virtual_machine_scale_set", "test") + r := OrchestratedVirtualMachineScaleSetResource{} + + // TODO - Remove this override when Preview is rolled out to westeurope - currently only supported in EastUS, WestUS, EastUS2, and WestUS2 + data.Locations.Primary = "eastus2" + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.skuProfile(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + { + Config: r.skuProfileUpdate(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + { + Config: r.skuProfile(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + }) +} + func TestAccOrchestratedVirtualMachineScaleSet_priorityMixPolicy(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_orchestrated_virtual_machine_scale_set", "test") r := OrchestratedVirtualMachineScaleSetResource{} @@ -599,7 +652,6 @@ func (OrchestratedVirtualMachineScaleSetResource) hasApplicationGateway(ctx cont } } } - } return fmt.Errorf("application gateway configuration was missing") @@ -2213,6 +2265,465 @@ resource "azurerm_subnet_nat_gateway_association" "example" { `, data.RandomInteger, publicIpSku) } +func (OrchestratedVirtualMachineScaleSetResource) skuProfileWithoutSkuName(data acceptance.TestData) string { + r := OrchestratedVirtualMachineScaleSetResource{} + return fmt.Sprintf(` +provider "azurerm" { + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-OVMSS-%[1]d" + location = "%[2]s" +} + +%[3]s + +resource "azurerm_orchestrated_virtual_machine_scale_set" "test" { + name = "acctestOVMSS-spotPriorityMixVMSS-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + priority = "Spot" + eviction_policy = "Delete" + instances = 3 + platform_fault_domain_count = 1 + + sku_profile { + allocation_strategy = "CapacityOptimized" + vm_sizes = ["Standard_D8s_v5", "Standard_D2s_v5", "Standard_D4s_v5"] + } + + tags = { + "SkipASMAzSecPack" = "true", + "platformsettings.host_environment.service.platform_optedin_for_rootcerts" = "true", + "prevent_deletion_if_contains_resources" = "false" + } + + os_profile { + windows_configuration { + computer_name_prefix = "testvm" + admin_username = "myadmin" + admin_password = "Passwword1234" + + enable_automatic_updates = true + provision_vm_agent = true + timezone = "W. Europe Standard Time" + + winrm_listener { + protocol = "Http" + } + } + } + + network_interface { + name = "TestNetworkProfile-%[1]d" + primary = true + + ip_configuration { + name = "TestIPConfiguration" + primary = true + subnet_id = azurerm_subnet.test.id + + public_ip_address { + name = "TestPublicIPConfiguration" + domain_name_label = "test-domain-label" + idle_timeout_in_minutes = 4 + } + } + } + + os_disk { + storage_account_type = "Standard_LRS" + caching = "ReadWrite" + } + + source_image_reference { + publisher = "MicrosoftWindowsServer" + offer = "WindowsServer" + sku = "2016-Datacenter-Server-Core" + version = "latest" + } + + priority_mix { + base_regular_count = 4 + regular_percentage_above_base = 50 + } +} +`, data.RandomInteger, data.Locations.Primary, r.natgateway_template(data)) +} + +func (OrchestratedVirtualMachineScaleSetResource) skuProfileSkuNameIsNotMix(data acceptance.TestData) string { + r := OrchestratedVirtualMachineScaleSetResource{} + return fmt.Sprintf(` +provider "azurerm" { + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-OVMSS-%[1]d" + location = "%[2]s" +} + +%[3]s + +resource "azurerm_orchestrated_virtual_machine_scale_set" "test" { + name = "acctestOVMSS-spotPriorityMixVMSS-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + priority = "Spot" + eviction_policy = "Delete" + sku_name = "Standard_D1_v2" + instances = 3 + platform_fault_domain_count = 1 + + sku_profile { + allocation_strategy = "CapacityOptimized" + vm_sizes = ["Standard_D8s_v5", "Standard_D2s_v5", "Standard_D4s_v5"] + } + + tags = { + "SkipASMAzSecPack" = "true", + "platformsettings.host_environment.service.platform_optedin_for_rootcerts" = "true", + "prevent_deletion_if_contains_resources" = "false" + } + + os_profile { + windows_configuration { + computer_name_prefix = "testvm" + admin_username = "myadmin" + admin_password = "Passwword1234" + + enable_automatic_updates = true + provision_vm_agent = true + timezone = "W. Europe Standard Time" + + winrm_listener { + protocol = "Http" + } + } + } + + network_interface { + name = "TestNetworkProfile-%[1]d" + primary = true + + ip_configuration { + name = "TestIPConfiguration" + primary = true + subnet_id = azurerm_subnet.test.id + + public_ip_address { + name = "TestPublicIPConfiguration" + domain_name_label = "test-domain-label" + idle_timeout_in_minutes = 4 + } + } + } + + os_disk { + storage_account_type = "Standard_LRS" + caching = "ReadWrite" + } + + source_image_reference { + publisher = "MicrosoftWindowsServer" + offer = "WindowsServer" + sku = "2016-Datacenter-Server-Core" + version = "latest" + } + + priority_mix { + base_regular_count = 4 + regular_percentage_above_base = 50 + } +} +`, data.RandomInteger, data.Locations.Primary, r.natgateway_template(data)) +} + +func (OrchestratedVirtualMachineScaleSetResource) skuProfileNotExist(data acceptance.TestData) string { + r := OrchestratedVirtualMachineScaleSetResource{} + return fmt.Sprintf(` +provider "azurerm" { + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-OVMSS-%[1]d" + location = "%[2]s" +} + +%[3]s + +resource "azurerm_orchestrated_virtual_machine_scale_set" "test" { + name = "acctestOVMSS-spotPriorityMixVMSS-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + priority = "Spot" + eviction_policy = "Delete" + sku_name = "Mix" + instances = 3 + platform_fault_domain_count = 1 + + tags = { + "SkipASMAzSecPack" = "true", + "platformsettings.host_environment.service.platform_optedin_for_rootcerts" = "true", + "prevent_deletion_if_contains_resources" = "false" + } + + os_profile { + windows_configuration { + computer_name_prefix = "testvm" + admin_username = "myadmin" + admin_password = "Passwword1234" + + enable_automatic_updates = true + provision_vm_agent = true + timezone = "W. Europe Standard Time" + + winrm_listener { + protocol = "Http" + } + } + } + + network_interface { + name = "TestNetworkProfile-%[1]d" + primary = true + + ip_configuration { + name = "TestIPConfiguration" + primary = true + subnet_id = azurerm_subnet.test.id + + public_ip_address { + name = "TestPublicIPConfiguration" + domain_name_label = "test-domain-label" + idle_timeout_in_minutes = 4 + } + } + } + + os_disk { + storage_account_type = "Standard_LRS" + caching = "ReadWrite" + } + + source_image_reference { + publisher = "MicrosoftWindowsServer" + offer = "WindowsServer" + sku = "2016-Datacenter-Server-Core" + version = "latest" + } + + priority_mix { + base_regular_count = 4 + regular_percentage_above_base = 50 + } +} +`, data.RandomInteger, data.Locations.Primary, r.natgateway_template(data)) +} + +func (OrchestratedVirtualMachineScaleSetResource) skuProfile(data acceptance.TestData) string { + r := OrchestratedVirtualMachineScaleSetResource{} + return fmt.Sprintf(` +provider "azurerm" { + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-OVMSS-%[1]d" + location = "%[2]s" +} + +%[3]s + +resource "azurerm_orchestrated_virtual_machine_scale_set" "test" { + name = "acctestOVMSS-spotPriorityMixVMSS-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + priority = "Spot" + eviction_policy = "Delete" + sku_name = "Mix" + instances = 3 + platform_fault_domain_count = 1 + + sku_profile { + allocation_strategy = "CapacityOptimized" + vm_sizes = ["Standard_D8s_v5", "Standard_D2s_v5", "Standard_D4s_v5"] + } + + tags = { + "SkipASMAzSecPack" = "true", + "platformsettings.host_environment.service.platform_optedin_for_rootcerts" = "true", + "prevent_deletion_if_contains_resources" = "false" + } + + os_profile { + windows_configuration { + computer_name_prefix = "testvm" + admin_username = "myadmin" + admin_password = "Passwword1234" + + enable_automatic_updates = true + provision_vm_agent = true + timezone = "W. Europe Standard Time" + + winrm_listener { + protocol = "Http" + } + } + } + + network_interface { + name = "TestNetworkProfile-%[1]d" + primary = true + + ip_configuration { + name = "TestIPConfiguration" + primary = true + subnet_id = azurerm_subnet.test.id + + public_ip_address { + name = "TestPublicIPConfiguration" + domain_name_label = "test-domain-label" + idle_timeout_in_minutes = 4 + } + } + } + + os_disk { + storage_account_type = "Standard_LRS" + caching = "ReadWrite" + } + + source_image_reference { + publisher = "MicrosoftWindowsServer" + offer = "WindowsServer" + sku = "2016-Datacenter-Server-Core" + version = "latest" + } + + priority_mix { + base_regular_count = 4 + regular_percentage_above_base = 50 + } +} +`, data.RandomInteger, data.Locations.Primary, r.natgateway_template(data)) +} + +func (OrchestratedVirtualMachineScaleSetResource) skuProfileUpdate(data acceptance.TestData) string { + r := OrchestratedVirtualMachineScaleSetResource{} + return fmt.Sprintf(` +provider "azurerm" { + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-OVMSS-%[1]d" + location = "%[2]s" +} + +%[3]s + +resource "azurerm_orchestrated_virtual_machine_scale_set" "test" { + name = "acctestOVMSS-spotPriorityMixVMSS-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + priority = "Spot" + eviction_policy = "Delete" + sku_name = "Mix" + instances = 3 + platform_fault_domain_count = 1 + + sku_profile { + allocation_strategy = "LowestPrice" + vm_sizes = ["Standard_D4s_v5", "Standard_D2s_v5"] + } + + tags = { + "SkipASMAzSecPack" = "true", + "platformsettings.host_environment.service.platform_optedin_for_rootcerts" = "true", + "prevent_deletion_if_contains_resources" = "false" + } + + os_profile { + windows_configuration { + computer_name_prefix = "testvm" + admin_username = "myadmin" + admin_password = "Passwword1234" + + enable_automatic_updates = true + provision_vm_agent = true + timezone = "W. Europe Standard Time" + + winrm_listener { + protocol = "Http" + } + } + } + + network_interface { + name = "TestNetworkProfile-%[1]d" + primary = true + + ip_configuration { + name = "TestIPConfiguration" + primary = true + subnet_id = azurerm_subnet.test.id + + public_ip_address { + name = "TestPublicIPConfiguration" + domain_name_label = "test-domain-label" + idle_timeout_in_minutes = 4 + } + } + } + + os_disk { + storage_account_type = "Standard_LRS" + caching = "ReadWrite" + } + + source_image_reference { + publisher = "MicrosoftWindowsServer" + offer = "WindowsServer" + sku = "2016-Datacenter-Server-Core" + version = "latest" + } + + priority_mix { + base_regular_count = 4 + regular_percentage_above_base = 50 + } +} +`, data.RandomInteger, data.Locations.Primary, r.natgateway_template(data)) +} + func (OrchestratedVirtualMachineScaleSetResource) priorityMixPolicy(data acceptance.TestData) string { r := OrchestratedVirtualMachineScaleSetResource{} return fmt.Sprintf(` diff --git a/internal/services/compute/parse/community_gallery_image_test.go b/internal/services/compute/parse/community_gallery_image_test.go index 6d984766a92f..f8691256297d 100644 --- a/internal/services/compute/parse/community_gallery_image_test.go +++ b/internal/services/compute/parse/community_gallery_image_test.go @@ -25,7 +25,6 @@ func TestCommunityGalleryImageID(t *testing.T) { Error bool Expected *CommunityGalleryImageId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/community_gallery_image_version_test.go b/internal/services/compute/parse/community_gallery_image_version_test.go index 0d1ebe11f8d1..36afd5ad7aae 100644 --- a/internal/services/compute/parse/community_gallery_image_version_test.go +++ b/internal/services/compute/parse/community_gallery_image_version_test.go @@ -25,7 +25,6 @@ func TestCommunityGalleryImageVersionID(t *testing.T) { Error bool Expected *CommunityGalleryImageVersionId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/data_disk.go b/internal/services/compute/parse/data_disk.go index 118db12bf1b6..916605f0483d 100644 --- a/internal/services/compute/parse/data_disk.go +++ b/internal/services/compute/parse/data_disk.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func DataDiskID(input string) (*DataDiskId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualMachineName, err = id.PopSegment("virtualMachines"); err != nil { diff --git a/internal/services/compute/parse/data_disk_test.go b/internal/services/compute/parse/data_disk_test.go index 9a7994ebf262..c176913ee696 100644 --- a/internal/services/compute/parse/data_disk_test.go +++ b/internal/services/compute/parse/data_disk_test.go @@ -27,7 +27,6 @@ func TestDataDiskID(t *testing.T) { Error bool Expected *DataDiskId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/disk_encryption_set.go b/internal/services/compute/parse/disk_encryption_set.go index 4ebc4f177ecb..9e8ef96bd5da 100644 --- a/internal/services/compute/parse/disk_encryption_set.go +++ b/internal/services/compute/parse/disk_encryption_set.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func DiskEncryptionSetID(input string) (*DiskEncryptionSetId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("diskEncryptionSets"); err != nil { diff --git a/internal/services/compute/parse/disk_encryption_set_test.go b/internal/services/compute/parse/disk_encryption_set_test.go index b736c07c2ad0..cc64bcb2cc27 100644 --- a/internal/services/compute/parse/disk_encryption_set_test.go +++ b/internal/services/compute/parse/disk_encryption_set_test.go @@ -27,7 +27,6 @@ func TestDiskEncryptionSetID(t *testing.T) { Error bool Expected *DiskEncryptionSetId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/host_group.go b/internal/services/compute/parse/host_group.go index 0d5db37dd426..8f0c8b951ebe 100644 --- a/internal/services/compute/parse/host_group.go +++ b/internal/services/compute/parse/host_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func HostGroupID(input string) (*HostGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("hostGroups"); err != nil { diff --git a/internal/services/compute/parse/host_group_test.go b/internal/services/compute/parse/host_group_test.go index 86767fe1d916..5467e1323fdc 100644 --- a/internal/services/compute/parse/host_group_test.go +++ b/internal/services/compute/parse/host_group_test.go @@ -27,7 +27,6 @@ func TestHostGroupID(t *testing.T) { Error bool Expected *HostGroupId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/hybrid_machine.go b/internal/services/compute/parse/hybrid_machine.go index 9d1bd1d9fde7..8834e2332ded 100644 --- a/internal/services/compute/parse/hybrid_machine.go +++ b/internal/services/compute/parse/hybrid_machine.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func HybridMachineID(input string) (*HybridMachineId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.MachineName, err = id.PopSegment("machines"); err != nil { diff --git a/internal/services/compute/parse/hybrid_machine_test.go b/internal/services/compute/parse/hybrid_machine_test.go index 9e9b906687cc..4716de5020ff 100644 --- a/internal/services/compute/parse/hybrid_machine_test.go +++ b/internal/services/compute/parse/hybrid_machine_test.go @@ -27,7 +27,6 @@ func TestHybridMachineID(t *testing.T) { Error bool Expected *HybridMachineId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/plan.go b/internal/services/compute/parse/plan.go index c5e100991c5c..cf18ed8c6062 100644 --- a/internal/services/compute/parse/plan.go +++ b/internal/services/compute/parse/plan.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -55,7 +56,7 @@ func PlanID(input string) (*PlanId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.AgreementName, err = id.PopSegment("agreements"); err != nil { diff --git a/internal/services/compute/parse/plan_test.go b/internal/services/compute/parse/plan_test.go index 60132c9982bc..00f36bc48505 100644 --- a/internal/services/compute/parse/plan_test.go +++ b/internal/services/compute/parse/plan_test.go @@ -27,7 +27,6 @@ func TestPlanID(t *testing.T) { Error bool Expected *PlanId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/shared_gallery_image_test.go b/internal/services/compute/parse/shared_gallery_image_test.go index 2598854597f0..956d18bddd62 100644 --- a/internal/services/compute/parse/shared_gallery_image_test.go +++ b/internal/services/compute/parse/shared_gallery_image_test.go @@ -25,7 +25,6 @@ func TestSharedGalleryImageID(t *testing.T) { Error bool Expected *SharedGalleryImageId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/shared_gallery_image_version_test.go b/internal/services/compute/parse/shared_gallery_image_version_test.go index 3b519677279a..925a7fcde6cd 100644 --- a/internal/services/compute/parse/shared_gallery_image_version_test.go +++ b/internal/services/compute/parse/shared_gallery_image_version_test.go @@ -25,7 +25,6 @@ func TestSharedGalleryImageVersionID(t *testing.T) { Error bool Expected *SharedGalleryImageVersionId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/shared_image.go b/internal/services/compute/parse/shared_image.go index 8ade4c115542..214e873e1b53 100644 --- a/internal/services/compute/parse/shared_image.go +++ b/internal/services/compute/parse/shared_image.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SharedImageID(input string) (*SharedImageId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.GalleryName, err = id.PopSegment("galleries"); err != nil { diff --git a/internal/services/compute/parse/shared_image_test.go b/internal/services/compute/parse/shared_image_test.go index dcbc7841a5bf..4d81ad614ddf 100644 --- a/internal/services/compute/parse/shared_image_test.go +++ b/internal/services/compute/parse/shared_image_test.go @@ -27,7 +27,6 @@ func TestSharedImageID(t *testing.T) { Error bool Expected *SharedImageId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/shared_image_version.go b/internal/services/compute/parse/shared_image_version.go index 5b33d3007013..4a33d5e94b5b 100644 --- a/internal/services/compute/parse/shared_image_version.go +++ b/internal/services/compute/parse/shared_image_version.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SharedImageVersionID(input string) (*SharedImageVersionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.GalleryName, err = id.PopSegment("galleries"); err != nil { diff --git a/internal/services/compute/parse/shared_image_version_test.go b/internal/services/compute/parse/shared_image_version_test.go index f5661a5ae234..a8b2a7066f06 100644 --- a/internal/services/compute/parse/shared_image_version_test.go +++ b/internal/services/compute/parse/shared_image_version_test.go @@ -27,7 +27,6 @@ func TestSharedImageVersionID(t *testing.T) { Error bool Expected *SharedImageVersionId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/ssh_public_key.go b/internal/services/compute/parse/ssh_public_key.go index 9b1faae92983..39b416fb0cb0 100644 --- a/internal/services/compute/parse/ssh_public_key.go +++ b/internal/services/compute/parse/ssh_public_key.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -32,7 +33,7 @@ func (id SSHPublicKeyId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "S S H Public Key", segmentsStr) + return fmt.Sprintf("%s: (%s)", "SSH Public Key", segmentsStr) } func (id SSHPublicKeyId) ID() string { @@ -53,11 +54,11 @@ func SSHPublicKeyID(input string) (*SSHPublicKeyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("sshPublicKeys"); err != nil { diff --git a/internal/services/compute/parse/ssh_public_key_test.go b/internal/services/compute/parse/ssh_public_key_test.go index 09b98b6e9193..29ad7ee64484 100644 --- a/internal/services/compute/parse/ssh_public_key_test.go +++ b/internal/services/compute/parse/ssh_public_key_test.go @@ -27,7 +27,6 @@ func TestSSHPublicKeyID(t *testing.T) { Error bool Expected *SSHPublicKeyId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/virtual_machine_extension.go b/internal/services/compute/parse/virtual_machine_extension.go index 0b11e9515aa6..db61f1f76c63 100644 --- a/internal/services/compute/parse/virtual_machine_extension.go +++ b/internal/services/compute/parse/virtual_machine_extension.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func VirtualMachineExtensionID(input string) (*VirtualMachineExtensionId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualMachineName, err = id.PopSegment("virtualMachines"); err != nil { diff --git a/internal/services/compute/parse/virtual_machine_extension_test.go b/internal/services/compute/parse/virtual_machine_extension_test.go index efe8774a97e7..12ed7e997206 100644 --- a/internal/services/compute/parse/virtual_machine_extension_test.go +++ b/internal/services/compute/parse/virtual_machine_extension_test.go @@ -27,7 +27,6 @@ func TestVirtualMachineExtensionID(t *testing.T) { Error bool Expected *VirtualMachineExtensionId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/virtual_machine_scale_set_extension.go b/internal/services/compute/parse/virtual_machine_scale_set_extension.go index 0db1a1407da4..cce0aa58d2ab 100644 --- a/internal/services/compute/parse/virtual_machine_scale_set_extension.go +++ b/internal/services/compute/parse/virtual_machine_scale_set_extension.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func VirtualMachineScaleSetExtensionID(input string) (*VirtualMachineScaleSetExt } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualMachineScaleSetName, err = id.PopSegment("virtualMachineScaleSets"); err != nil { diff --git a/internal/services/compute/parse/virtual_machine_scale_set_extension_test.go b/internal/services/compute/parse/virtual_machine_scale_set_extension_test.go index ddcb2a69ee46..8d41aafa33c9 100644 --- a/internal/services/compute/parse/virtual_machine_scale_set_extension_test.go +++ b/internal/services/compute/parse/virtual_machine_scale_set_extension_test.go @@ -27,7 +27,6 @@ func TestVirtualMachineScaleSetExtensionID(t *testing.T) { Error bool Expected *VirtualMachineScaleSetExtensionId }{ - { // empty Input: "", diff --git a/internal/services/compute/parse/vmss_instance.go b/internal/services/compute/parse/vmss_instance.go index 7b966e61daac..d81380356747 100644 --- a/internal/services/compute/parse/vmss_instance.go +++ b/internal/services/compute/parse/vmss_instance.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -35,7 +36,7 @@ func (id VMSSInstanceId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "V M S S Instance", segmentsStr) + return fmt.Sprintf("%s: (%s)", "VMSS Instance", segmentsStr) } func (id VMSSInstanceId) ID() string { @@ -56,11 +57,11 @@ func VMSSInstanceID(input string) (*VMSSInstanceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualMachineScaleSetName, err = id.PopSegment("virtualMachineScaleSets"); err != nil { @@ -95,11 +96,11 @@ func VMSSInstanceIDInsensitively(input string) (*VMSSInstanceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'virtualMachineScaleSets' segment diff --git a/internal/services/compute/parse/vmss_instance_test.go b/internal/services/compute/parse/vmss_instance_test.go index a5b53ba2861f..6083418278c1 100644 --- a/internal/services/compute/parse/vmss_instance_test.go +++ b/internal/services/compute/parse/vmss_instance_test.go @@ -27,7 +27,6 @@ func TestVMSSInstanceID(t *testing.T) { Error bool Expected *VMSSInstanceId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestVMSSInstanceIDInsensitively(t *testing.T) { Error bool Expected *VMSSInstanceId }{ - { // empty Input: "", diff --git a/internal/services/compute/restore_point_collection_resource.go b/internal/services/compute/restore_point_collection_resource.go index ebbd2ea4195b..24497e06f8cc 100644 --- a/internal/services/compute/restore_point_collection_resource.go +++ b/internal/services/compute/restore_point_collection_resource.go @@ -22,8 +22,10 @@ import ( // RestorePointCollectionResource remove this in 4.0, the resource is renamed type RestorePointCollectionResource struct{} -var _ sdk.ResourceWithUpdate = RestorePointCollectionResource{} -var _ sdk.ResourceWithDeprecationReplacedBy = RestorePointCollectionResource{} +var ( + _ sdk.ResourceWithUpdate = RestorePointCollectionResource{} + _ sdk.ResourceWithDeprecationReplacedBy = RestorePointCollectionResource{} +) func (r RestorePointCollectionResource) DeprecatedInFavourOfResource() string { return "azurerm_virtual_machine_restore_point_collection" diff --git a/internal/services/compute/shared_image_data_source.go b/internal/services/compute/shared_image_data_source.go index bfefcf48ba10..7672ec6592d0 100644 --- a/internal/services/compute/shared_image_data_source.go +++ b/internal/services/compute/shared_image_data_source.go @@ -244,7 +244,6 @@ func dataSourceSharedImageRead(d *pluginsdk.ResourceData, meta interface{}) erro } return tags.FlattenAndSet(d, model.Tags) - } return nil } diff --git a/internal/services/compute/shared_image_resource_test.go b/internal/services/compute/shared_image_resource_test.go index 0240a9da1e8c..e14536b23617 100644 --- a/internal/services/compute/shared_image_resource_test.go +++ b/internal/services/compute/shared_image_resource_test.go @@ -92,7 +92,7 @@ func TestAccSharedImage_complete(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("os_type").HasValue("Linux"), check.That(data.ResourceName).Key("hyper_v_generation").HasValue("V1"), - check.That(data.ResourceName).Key("description").HasValue("Wubba lubba dub dub"), + check.That(data.ResourceName).Key("description").HasValue("Wubba lubba dub dubs"), check.That(data.ResourceName).Key("eula").HasValue("Do you agree there's infinite Rick's and Infinite Morty's?"), check.That(data.ResourceName).Key("privacy_statement_uri").HasValue("https://council.of.ricks/privacy-statement"), check.That(data.ResourceName).Key("release_note_uri").HasValue("https://council.of.ricks/changelog.md"), diff --git a/internal/services/compute/shared_image_version_data_source.go b/internal/services/compute/shared_image_version_data_source.go index 551619d7e281..a713429113bc 100644 --- a/internal/services/compute/shared_image_version_data_source.go +++ b/internal/services/compute/shared_image_version_data_source.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -190,11 +189,6 @@ func obtainImage(client *galleryimageversions.GalleryImageVersionsClient, ctx co } } - if !features.FourPointOhBeta() { - image := images[len(images)-1] - return &image, nil - } - for i := len(images) - 1; i >= 0; i-- { if prop := images[i].Properties; prop == nil || prop.PublishingProfile == nil || prop.PublishingProfile.ExcludeFromLatest == nil || !*prop.PublishingProfile.ExcludeFromLatest { return &(images[i]), nil diff --git a/internal/services/compute/shared_image_version_resource.go b/internal/services/compute/shared_image_version_resource.go index 20dba27c41b1..16e2aef5da06 100644 --- a/internal/services/compute/shared_image_version_resource.go +++ b/internal/services/compute/shared_image_version_resource.go @@ -416,10 +416,8 @@ func resourceSharedImageVersionRead(d *pluginsdk.ResourceData, meta interface{}) if safetyProfile := props.SafetyProfile; safetyProfile != nil { d.Set("deletion_of_replicated_locations_enabled", pointer.From(safetyProfile.AllowDeletionOfReplicatedLocations)) } - } return tags.FlattenAndSet(d, model.Tags) - } return nil } diff --git a/internal/services/compute/shared_image_versions_data_source.go b/internal/services/compute/shared_image_versions_data_source.go index b07180fc9ae5..7394071bd613 100644 --- a/internal/services/compute/shared_image_versions_data_source.go +++ b/internal/services/compute/shared_image_versions_data_source.go @@ -157,7 +157,6 @@ func flattenSharedImageVersions(input []galleryimageversions.GalleryImageVersion } } } - } if found { diff --git a/internal/services/compute/validate/community_gallery_image_id_test.go b/internal/services/compute/validate/community_gallery_image_id_test.go index 173814851f08..3c08df0fb441 100644 --- a/internal/services/compute/validate/community_gallery_image_id_test.go +++ b/internal/services/compute/validate/community_gallery_image_id_test.go @@ -10,7 +10,6 @@ func TestCommunityGalleryImageID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/community_gallery_image_version_id_test.go b/internal/services/compute/validate/community_gallery_image_version_id_test.go index db6d943991a7..6f15d362b1b5 100644 --- a/internal/services/compute/validate/community_gallery_image_version_id_test.go +++ b/internal/services/compute/validate/community_gallery_image_version_id_test.go @@ -10,7 +10,6 @@ func TestCommunityGalleryImageVersionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/data_disk_id_test.go b/internal/services/compute/validate/data_disk_id_test.go index afc2431152e1..2057ba7975e4 100644 --- a/internal/services/compute/validate/data_disk_id_test.go +++ b/internal/services/compute/validate/data_disk_id_test.go @@ -12,7 +12,6 @@ func TestDataDiskID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/disk_encryption_set_id_test.go b/internal/services/compute/validate/disk_encryption_set_id_test.go index 2209e19dc972..6e6fd98e5f33 100644 --- a/internal/services/compute/validate/disk_encryption_set_id_test.go +++ b/internal/services/compute/validate/disk_encryption_set_id_test.go @@ -12,7 +12,6 @@ func TestDiskEncryptionSetID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/host_group_id_test.go b/internal/services/compute/validate/host_group_id_test.go index b8d795f6ae2d..bb3aca3fb206 100644 --- a/internal/services/compute/validate/host_group_id_test.go +++ b/internal/services/compute/validate/host_group_id_test.go @@ -12,7 +12,6 @@ func TestHostGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/hybrid_machine_id_test.go b/internal/services/compute/validate/hybrid_machine_id_test.go index a2824ed1c5d9..4109f86b385e 100644 --- a/internal/services/compute/validate/hybrid_machine_id_test.go +++ b/internal/services/compute/validate/hybrid_machine_id_test.go @@ -12,7 +12,6 @@ func TestHybridMachineID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/orchestrated_vmss_sku.go b/internal/services/compute/validate/orchestrated_vmss_sku.go index c02dd2b32cac..f0e69681e699 100644 --- a/internal/services/compute/validate/orchestrated_vmss_sku.go +++ b/internal/services/compute/validate/orchestrated_vmss_sku.go @@ -8,6 +8,10 @@ import ( "strings" ) +const ( + SkuNameMix = "Mix" +) + func OrchestratedVirtualMachineScaleSetSku(input interface{}, key string) (warnings []string, errors []error) { v, ok := input.(string) if !ok { @@ -17,7 +21,7 @@ func OrchestratedVirtualMachineScaleSetSku(input interface{}, key string) (warni skuParts := strings.Split(v, "_") - if len(skuParts) < 2 || strings.Contains(v, "__") || strings.Contains(v, " ") { + if (input != SkuNameMix && len(skuParts) < 2) || strings.Contains(v, "__") || strings.Contains(v, " ") { errors = append(errors, fmt.Errorf("%q is not formatted properly, got %q", key, v)) } diff --git a/internal/services/compute/validate/plan_id_test.go b/internal/services/compute/validate/plan_id_test.go index 4b3b2d77f820..2cd2d9295121 100644 --- a/internal/services/compute/validate/plan_id_test.go +++ b/internal/services/compute/validate/plan_id_test.go @@ -12,7 +12,6 @@ func TestPlanID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/shared_gallery_image_id_test.go b/internal/services/compute/validate/shared_gallery_image_id_test.go index 539b2a32c287..cab6583e04f6 100644 --- a/internal/services/compute/validate/shared_gallery_image_id_test.go +++ b/internal/services/compute/validate/shared_gallery_image_id_test.go @@ -10,7 +10,6 @@ func TestSharedGalleryImageID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/shared_gallery_image_version_id_test.go b/internal/services/compute/validate/shared_gallery_image_version_id_test.go index 004c70c1ad87..faa1d4002a87 100644 --- a/internal/services/compute/validate/shared_gallery_image_version_id_test.go +++ b/internal/services/compute/validate/shared_gallery_image_version_id_test.go @@ -10,7 +10,6 @@ func TestSharedGalleryImageVersionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/shared_image_id_test.go b/internal/services/compute/validate/shared_image_id_test.go index 4656b14fde63..8446cc1c48ac 100644 --- a/internal/services/compute/validate/shared_image_id_test.go +++ b/internal/services/compute/validate/shared_image_id_test.go @@ -12,7 +12,6 @@ func TestSharedImageID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/shared_image_version_id_test.go b/internal/services/compute/validate/shared_image_version_id_test.go index e67532efdcca..441127b49345 100644 --- a/internal/services/compute/validate/shared_image_version_id_test.go +++ b/internal/services/compute/validate/shared_image_version_id_test.go @@ -12,7 +12,6 @@ func TestSharedImageVersionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/ssh_public_key_id_test.go b/internal/services/compute/validate/ssh_public_key_id_test.go index 78dd9f059aee..97a0eefe9def 100644 --- a/internal/services/compute/validate/ssh_public_key_id_test.go +++ b/internal/services/compute/validate/ssh_public_key_id_test.go @@ -12,7 +12,6 @@ func TestSSHPublicKeyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/virtual_machine_extension_id_test.go b/internal/services/compute/validate/virtual_machine_extension_id_test.go index f987cfd6e1ff..ff61095f1fdc 100644 --- a/internal/services/compute/validate/virtual_machine_extension_id_test.go +++ b/internal/services/compute/validate/virtual_machine_extension_id_test.go @@ -12,7 +12,6 @@ func TestVirtualMachineExtensionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/virtual_machine_scale_set_extension_id_test.go b/internal/services/compute/validate/virtual_machine_scale_set_extension_id_test.go index 68dbf39fa913..e4d6f73b20ea 100644 --- a/internal/services/compute/validate/virtual_machine_scale_set_extension_id_test.go +++ b/internal/services/compute/validate/virtual_machine_scale_set_extension_id_test.go @@ -12,7 +12,6 @@ func TestVirtualMachineScaleSetExtensionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/validate/vmss_instance_id_test.go b/internal/services/compute/validate/vmss_instance_id_test.go index c226e0d09d9b..4ab5d1a73a72 100644 --- a/internal/services/compute/validate/vmss_instance_id_test.go +++ b/internal/services/compute/validate/vmss_instance_id_test.go @@ -12,7 +12,6 @@ func TestVMSSInstanceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/compute/virtual_machine_extension_resource_test.go b/internal/services/compute/virtual_machine_extension_resource_test.go index 3886b29d60c4..e5f539c1f39b 100644 --- a/internal/services/compute/virtual_machine_extension_resource_test.go +++ b/internal/services/compute/virtual_machine_extension_resource_test.go @@ -817,5 +817,5 @@ resource "azurerm_virtual_machine_extension" "test" { source_vault_id = azurerm_key_vault.test[%[4]d].id } } -`, LinuxVirtualMachineResource{}.template(data), data.RandomInteger, data.RandomString, index) +`, LinuxVirtualMachineResource{}.templateWithOutProvider(data), data.RandomInteger, data.RandomString, index) } diff --git a/internal/services/compute/virtual_machine_gallery_application_assignment_resource.go b/internal/services/compute/virtual_machine_gallery_application_assignment_resource.go index edc23d26697e..0618d4301a3a 100644 --- a/internal/services/compute/virtual_machine_gallery_application_assignment_resource.go +++ b/internal/services/compute/virtual_machine_gallery_application_assignment_resource.go @@ -23,9 +23,7 @@ import ( type VirtualMachineGalleryApplicationAssignmentResource struct{} -var ( - _ sdk.ResourceWithUpdate = VirtualMachineGalleryApplicationAssignmentResource{} -) +var _ sdk.ResourceWithUpdate = VirtualMachineGalleryApplicationAssignmentResource{} type VirtualMachineGalleryApplicationAssignmentResourceResourceModel struct { GalleryApplicationVersionId string `tfschema:"gallery_application_version_id"` diff --git a/internal/services/compute/virtual_machine_restore_point_collection_resource.go b/internal/services/compute/virtual_machine_restore_point_collection_resource.go index da9e7332adf4..6e9a4123549a 100644 --- a/internal/services/compute/virtual_machine_restore_point_collection_resource.go +++ b/internal/services/compute/virtual_machine_restore_point_collection_resource.go @@ -22,8 +22,10 @@ import ( // VirtualMachineRestorePointCollectionResource remove this in 4.0, the resource is renamed type VirtualMachineRestorePointCollectionResource struct{} -var _ sdk.ResourceWithUpdate = VirtualMachineRestorePointCollectionResource{} -var _ sdk.ResourceWithDeprecationReplacedBy = VirtualMachineRestorePointCollectionResource{} +var ( + _ sdk.ResourceWithUpdate = VirtualMachineRestorePointCollectionResource{} + _ sdk.ResourceWithDeprecationReplacedBy = VirtualMachineRestorePointCollectionResource{} +) func (r VirtualMachineRestorePointCollectionResource) DeprecatedInFavourOfResource() string { return "azurerm_virtual_machine_restore_point_collection" diff --git a/internal/services/compute/virtual_machine_run_command_resource.go b/internal/services/compute/virtual_machine_run_command_resource.go index 0a0601739c98..0d183ad63721 100644 --- a/internal/services/compute/virtual_machine_run_command_resource.go +++ b/internal/services/compute/virtual_machine_run_command_resource.go @@ -594,7 +594,6 @@ func expandVirtualMachineRunCommandInputParameter(input []VirtualMachineRunComma Value: v.Value, } output = append(output, parameter) - } return &output } @@ -611,7 +610,6 @@ func flattenVirtualMachineRunCommandInputParameter(input *[]virtualmachineruncom Value: v.Value, } output = append(output, parameter) - } return output diff --git a/internal/services/compute/windows_virtual_machine_resource_disk_os_test.go b/internal/services/compute/windows_virtual_machine_resource_disk_os_test.go index 939c0d7f6a4d..d11d52376406 100644 --- a/internal/services/compute/windows_virtual_machine_resource_disk_os_test.go +++ b/internal/services/compute/windows_virtual_machine_resource_disk_os_test.go @@ -1139,5 +1139,5 @@ resource "azurerm_key_vault_access_policy" "disk-encryption" { tenant_id = azurerm_disk_encryption_set.test.identity.0.tenant_id object_id = azurerm_disk_encryption_set.test.identity.0.principal_id } -`, r.template(data), data.RandomInteger, data.RandomString) +`, r.templateWithOutProvider(data), data.RandomInteger, data.RandomString) } diff --git a/internal/services/compute/windows_virtual_machine_resource_images_test.go b/internal/services/compute/windows_virtual_machine_resource_images_test.go index f648f40413f5..f96fc57a0a70 100644 --- a/internal/services/compute/windows_virtual_machine_resource_images_test.go +++ b/internal/services/compute/windows_virtual_machine_resource_images_test.go @@ -130,6 +130,10 @@ locals { vm_name = "acctvm-%[1]s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%[2]d" location = "%[3]s" diff --git a/internal/services/compute/windows_virtual_machine_resource_orchestrated_test.go b/internal/services/compute/windows_virtual_machine_resource_orchestrated_test.go index 78423632c338..99fb1e9184c2 100644 --- a/internal/services/compute/windows_virtual_machine_resource_orchestrated_test.go +++ b/internal/services/compute/windows_virtual_machine_resource_orchestrated_test.go @@ -690,6 +690,10 @@ locals { vm_name = "acctestvm%s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" diff --git a/internal/services/compute/windows_virtual_machine_resource_other_test.go b/internal/services/compute/windows_virtual_machine_resource_other_test.go index 8bd27208c5fa..3bc123a56b23 100644 --- a/internal/services/compute/windows_virtual_machine_resource_other_test.go +++ b/internal/services/compute/windows_virtual_machine_resource_other_test.go @@ -1973,6 +1973,10 @@ func (r WindowsVirtualMachineResource) otherEdgeZone(data acceptance.TestData) s data.Locations.Primary = "westus" return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%[2]d" location = "%[1]s" @@ -2342,7 +2346,7 @@ resource "azurerm_windows_virtual_machine" "test" { version = "latest" } } -`, r.template(data)) +`, r.templateWithOutProvider(data)) } func (r WindowsVirtualMachineResource) otherLicenseTypeDefault(data acceptance.TestData) string { diff --git a/internal/services/compute/windows_virtual_machine_resource_test.go b/internal/services/compute/windows_virtual_machine_resource_test.go index a696f889d5d5..91d2d0a13273 100644 --- a/internal/services/compute/windows_virtual_machine_resource_test.go +++ b/internal/services/compute/windows_virtual_machine_resource_test.go @@ -32,6 +32,37 @@ func (t WindowsVirtualMachineResource) Exists(ctx context.Context, clients *clie func (WindowsVirtualMachineResource) templateBase(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +locals { + vm_name = "acctestvm%s" +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_virtual_network" "test" { + name = "acctestnw-%d" + address_space = ["10.0.0.0/16"] + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_subnet" "test" { + name = "internal" + resource_group_name = azurerm_resource_group.test.name + virtual_network_name = azurerm_virtual_network.test.name + address_prefixes = ["10.0.2.0/24"] +} +`, data.RandomString, data.RandomInteger, data.Locations.Primary, data.RandomInteger) +} + +func (WindowsVirtualMachineResource) templateBaseWithOutProvider(data acceptance.TestData) string { + return fmt.Sprintf(` locals { vm_name = "acctestvm%s" } @@ -74,3 +105,21 @@ resource "azurerm_network_interface" "test" { } `, r.templateBase(data), data.RandomInteger) } + +func (r WindowsVirtualMachineResource) templateWithOutProvider(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_network_interface" "test" { + name = "acctestnic-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + ip_configuration { + name = "internal" + subnet_id = azurerm_subnet.test.id + private_ip_address_allocation = "Dynamic" + } +} +`, r.templateBaseWithOutProvider(data), data.RandomInteger) +} diff --git a/internal/services/compute/windows_virtual_machine_scale_set_resource.go b/internal/services/compute/windows_virtual_machine_scale_set_resource.go index ed16aa9679ff..029a40be5405 100644 --- a/internal/services/compute/windows_virtual_machine_scale_set_resource.go +++ b/internal/services/compute/windows_virtual_machine_scale_set_resource.go @@ -443,7 +443,6 @@ func resourceWindowsVirtualMachineScaleSetCreate(d *pluginsdk.ResourceData, meta } props.Properties.ScaleInPolicy = scaleInPolicy - } if v, ok := d.GetOk("scale_in"); ok { if v := ExpandVirtualMachineScaleSetScaleInPolicy(v.([]interface{})); v != nil { diff --git a/internal/services/compute/windows_virtual_machine_scale_set_resource_disk_os_test.go b/internal/services/compute/windows_virtual_machine_scale_set_resource_disk_os_test.go index 09bda2e607af..d5242139f0d1 100644 --- a/internal/services/compute/windows_virtual_machine_scale_set_resource_disk_os_test.go +++ b/internal/services/compute/windows_virtual_machine_scale_set_resource_disk_os_test.go @@ -844,5 +844,5 @@ resource "azurerm_key_vault_access_policy" "disk-encryption" { tenant_id = azurerm_disk_encryption_set.test.identity.0.tenant_id object_id = azurerm_disk_encryption_set.test.identity.0.principal_id } -`, r.template(data), data.RandomInteger, data.RandomString) +`, r.templateWithOutProvider(data), data.RandomInteger, data.RandomString) } diff --git a/internal/services/compute/windows_virtual_machine_scale_set_resource_extensions_test.go b/internal/services/compute/windows_virtual_machine_scale_set_resource_extensions_test.go index f8f9cee09758..0273324b1f2d 100644 --- a/internal/services/compute/windows_virtual_machine_scale_set_resource_extensions_test.go +++ b/internal/services/compute/windows_virtual_machine_scale_set_resource_extensions_test.go @@ -427,10 +427,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionBasic(data acceptance.Te return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -486,10 +482,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionForceUpdateTag(data acce return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -546,10 +538,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionMultiple(data acceptance return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -615,10 +603,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionOnlySettings(data accept return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -670,10 +654,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionUpdate(data acceptance.T return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -725,10 +705,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionsRollingUpgradeWithHealt return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -788,10 +764,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionsWithHealthExtension(dat return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -845,10 +817,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionsAutomaticUpgradeWithHea return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -915,10 +883,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionWithTimeBudget(data acce return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -977,10 +941,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionTimeBudgetWithoutExtensi return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -1022,10 +982,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionsAutomaticUpgradeWithSer return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_service_fabric_cluster" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -1114,10 +1070,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionAutomaticUpgradeEnabled( return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -1166,10 +1118,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionOperationsEnabled(data a return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -1227,10 +1175,6 @@ func (r WindowsVirtualMachineScaleSetResource) extensionOperationsDisabled(data return fmt.Sprintf(` %s -provider "azurerm" { - features {} -} - resource "azurerm_windows_virtual_machine_scale_set" "test" { name = local.vm_name resource_group_name = azurerm_resource_group.test.name @@ -1367,5 +1311,5 @@ resource "azurerm_windows_virtual_machine_scale_set" "test" { } } } -`, r.template(data), data.RandomString, index) +`, r.templateWithOutProvider(data), data.RandomString, index) } diff --git a/internal/services/compute/windows_virtual_machine_scale_set_resource_images_test.go b/internal/services/compute/windows_virtual_machine_scale_set_resource_images_test.go index 98a2238eb49c..147cfd59def8 100644 --- a/internal/services/compute/windows_virtual_machine_scale_set_resource_images_test.go +++ b/internal/services/compute/windows_virtual_machine_scale_set_resource_images_test.go @@ -601,7 +601,7 @@ resource "azurerm_windows_virtual_machine_scale_set" "test" { } } } -`, r.template(data), version) +`, r.templateWithOutProvider(data), version) } func (r WindowsVirtualMachineScaleSetResource) imagesRollingUpdate(data acceptance.TestData, version string) string { diff --git a/internal/services/compute/windows_virtual_machine_scale_set_resource_other_test.go b/internal/services/compute/windows_virtual_machine_scale_set_resource_other_test.go index 90df1695130b..af95cb84f3bd 100644 --- a/internal/services/compute/windows_virtual_machine_scale_set_resource_other_test.go +++ b/internal/services/compute/windows_virtual_machine_scale_set_resource_other_test.go @@ -979,7 +979,6 @@ func TestAccWindowsVirtualMachineScaleSet_otherCancelRollingUpgrades(t *testing. } return nil - }, data.ResourceName), ), }, @@ -1374,6 +1373,10 @@ locals { vm_name = "%[1]s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%[3]d" location = "%[2]s" @@ -1518,7 +1521,7 @@ resource "azurerm_windows_virtual_machine_scale_set" "test" { } } } -`, r.template(data)) +`, r.templateWithOutProvider(data)) } func (r WindowsVirtualMachineScaleSetResource) otherEnableAutomaticUpdatesDisabled(data acceptance.TestData) string { diff --git a/internal/services/compute/windows_virtual_machine_scale_set_resource_test.go b/internal/services/compute/windows_virtual_machine_scale_set_resource_test.go index f85bf7260b12..ed52a1e7a6f3 100644 --- a/internal/services/compute/windows_virtual_machine_scale_set_resource_test.go +++ b/internal/services/compute/windows_virtual_machine_scale_set_resource_test.go @@ -37,6 +37,37 @@ func (WindowsVirtualMachineScaleSetResource) vmName(data acceptance.TestData) st func (r WindowsVirtualMachineScaleSetResource) template(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +locals { + vm_name = "%s" +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_virtual_network" "test" { + name = "acctestnw-%d" + address_space = ["10.0.0.0/16"] + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_subnet" "test" { + name = "internal" + resource_group_name = azurerm_resource_group.test.name + virtual_network_name = azurerm_virtual_network.test.name + address_prefixes = ["10.0.2.0/24"] +} +`, r.vmName(data), data.RandomInteger, data.Locations.Primary, data.RandomInteger) +} + +func (r WindowsVirtualMachineScaleSetResource) templateWithOutProvider(data acceptance.TestData) string { + return fmt.Sprintf(` locals { vm_name = "%s" } diff --git a/internal/services/confidentialledger/validate/confidential_ledger_name_test.go b/internal/services/confidentialledger/validate/confidential_ledger_name_test.go index 0139147c1988..74916d9726b0 100644 --- a/internal/services/confidentialledger/validate/confidential_ledger_name_test.go +++ b/internal/services/confidentialledger/validate/confidential_ledger_name_test.go @@ -10,7 +10,6 @@ func TestConfidentialLedgerName(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/connections/api_connection_resource.go b/internal/services/connections/api_connection_resource.go index 9d98ad265738..5e6f1068c89a 100644 --- a/internal/services/connections/api_connection_resource.go +++ b/internal/services/connections/api_connection_resource.go @@ -17,7 +17,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -92,15 +91,6 @@ func resourceConnection() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["display_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - } - } - return resource } diff --git a/internal/services/connections/api_connection_resource_test.go b/internal/services/connections/api_connection_resource_test.go index 110839fdca01..3b08a5f62267 100644 --- a/internal/services/connections/api_connection_resource_test.go +++ b/internal/services/connections/api_connection_resource_test.go @@ -17,8 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/utils" ) -type ApiConnectionTestResource struct { -} +type ApiConnectionTestResource struct{} func TestAccApiConnection_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_api_connection", "test") diff --git a/internal/services/consumption/consumption_budget_base.go b/internal/services/consumption/consumption_budget_base.go index 66352fad38fc..dd4975bb2753 100644 --- a/internal/services/consumption/consumption_budget_base.go +++ b/internal/services/consumption/consumption_budget_base.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/consumption/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -152,14 +151,10 @@ func (br consumptionBudgetBaseResource) arguments(fields map[string]*pluginsdk.S Required: true, ValidateFunc: validation.IntBetween(0, 1000), }, - // Issue: https://github.com/Azure/azure-rest-api-specs/issues/16240 - // Toggling between these two values doesn't work at the moment and also doesn't throw an error - // but it seems unlikely that a user would switch the threshold_type of their budgets frequently "threshold_type": { Type: pluginsdk.TypeString, Optional: true, Default: string(budgets.ThresholdTypeActual), - ForceNew: true, // TODO: remove this when the above issue is fixed ValidateFunc: validation.StringInSlice([]string{ string(budgets.ThresholdTypeActual), "Forecasted", @@ -244,82 +239,6 @@ func (br consumptionBudgetBaseResource) arguments(fields map[string]*pluginsdk.S }, } - if !features.FourPointOhBeta() { - output["filter"].Elem.(*pluginsdk.Resource).Schema["not"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Deprecated: "This property has been deprecated as the API no longer supports it and will be removed in version 4.0 of the provider.", - AtLeastOneOf: []string{"filter.0.dimension", "filter.0.tag", "filter.0.not"}, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "dimension": { - Type: pluginsdk.TypeList, - MaxItems: 1, - Optional: true, - ExactlyOneOf: []string{"filter.0.not.0.tag"}, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice(getDimensionNames(), false), - }, - "operator": { - Type: pluginsdk.TypeString, - Optional: true, - Default: "In", - ValidateFunc: validation.StringInSlice([]string{ - "In", - }, false), - }, - "values": { - Type: pluginsdk.TypeList, - MinItems: 1, - Required: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - }, - }, - "tag": { - Type: pluginsdk.TypeList, - MaxItems: 1, - Optional: true, - ExactlyOneOf: []string{"filter.0.not.0.dimension"}, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - }, - "operator": { - Type: pluginsdk.TypeString, - Optional: true, - Default: "In", - ValidateFunc: validation.StringInSlice([]string{ - "In", - }, false), - }, - "values": { - Type: pluginsdk.TypeList, - Required: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - }, - }, - }, - }, - } - } - // Consumption Budgets for Management Groups have a different notification schema, // here we override the notification schema in the base resource for k, v := range fields { @@ -384,7 +303,7 @@ func (br consumptionBudgetBaseResource) readFunc(scopeFieldName string) sdk.Reso } metadata.ResourceData.Set("name", id.BudgetName) - //lintignore:R001 + // lintignore:R001 metadata.ResourceData.Set(scopeFieldName, id.Scope) if model := resp.Model; model != nil { @@ -418,7 +337,7 @@ func (br consumptionBudgetBaseResource) deleteFunc() sdk.ResourceFunc { return err } - if _, err = client.Delete(ctx, *id); err != nil { + if _, err := client.Delete(ctx, *id); err != nil { return fmt.Errorf("deleting %s: %+v", *id, err) } @@ -700,22 +619,6 @@ func expandConsumptionBudgetFilter(i []interface{}) *budgets.BudgetFilter { filter := budgets.BudgetFilter{} - if !features.FourPointOhBeta() { - notBlock := input["not"].([]interface{}) - if len(notBlock) != 0 && notBlock[0] != nil { - not := notBlock[0].(map[string]interface{}) - - tags := expandConsumptionBudgetFilterTag(not["tag"].([]interface{})) - dimensions := expandConsumptionBudgetFilterDimensions(not["dimension"].([]interface{})) - - if len(dimensions) != 0 { - filter.Not = &dimensions[0] - } else if len(tags) != 0 { - filter.Not = &tags[0] - } - } - } - tags := expandConsumptionBudgetFilterTag(input["tag"].(*pluginsdk.Set).List()) dimensions := expandConsumptionBudgetFilterDimensions(input["dimension"].(*pluginsdk.Set).List()) @@ -756,24 +659,6 @@ func flattenConsumptionBudgetFilter(input *budgets.BudgetFilter) []interface{} { filterBlock := make(map[string]interface{}) - if !features.FourPointOhBeta() { - notBlock := make(map[string]interface{}) - - if input.Not != nil { - if input.Not.Dimensions != nil { - notBlock["dimension"] = []interface{}{flattenConsumptionBudgetComparisonExpression(input.Not.Dimensions)} - } - - if input.Not.Tags != nil { - notBlock["tag"] = []interface{}{flattenConsumptionBudgetComparisonExpression(input.Not.Tags)} - } - - if len(notBlock) != 0 { - filterBlock["not"] = []interface{}{notBlock} - } - } - } - if input.And != nil { for _, v := range *input.And { if v.Dimensions != nil { diff --git a/internal/services/consumption/consumption_budget_management_group_resource.go b/internal/services/consumption/consumption_budget_management_group_resource.go index d3703daab6b9..2895b985ae13 100644 --- a/internal/services/consumption/consumption_budget_management_group_resource.go +++ b/internal/services/consumption/consumption_budget_management_group_resource.go @@ -54,14 +54,10 @@ func (r ManagementGroupConsumptionBudget) Arguments() map[string]*pluginsdk.Sche Required: true, ValidateFunc: validation.IntBetween(0, 1000), }, - // Issue: https://github.com/Azure/azure-rest-api-specs/issues/16240 - // Toggling between these two values doesn't work at the moment and also doesn't throw an error - // but it seems unlikely that a user would switch the threshold_type of their budgets frequently "threshold_type": { Type: pluginsdk.TypeString, Optional: true, Default: string(budgets.ThresholdTypeActual), - ForceNew: true, // TODO: remove this when the above issue is fixed ValidateFunc: validation.StringInSlice([]string{ string(budgets.ThresholdTypeActual), "Forecasted", diff --git a/internal/services/consumption/consumption_budget_resource_group_resource_test.go b/internal/services/consumption/consumption_budget_resource_group_resource_test.go index a0eb6810140f..70d6a81adbb2 100644 --- a/internal/services/consumption/consumption_budget_resource_group_resource_test.go +++ b/internal/services/consumption/consumption_budget_resource_group_resource_test.go @@ -111,18 +111,6 @@ func TestAccConsumptionBudgetResourceGroup_completeUpdate(t *testing.T) { }) } -func TestAccConsumptionBudgetResourceGroup_disappears(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_consumption_budget_resource_group", "test") - r := ConsumptionBudgetResourceGroupResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - data.DisappearsStep(acceptance.DisappearsStepData{ - Config: r.basic, - TestResource: r, - }), - }) -} - func (ConsumptionBudgetResourceGroupResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := budgets.ParseScopedBudgetID(state.ID) if err != nil { @@ -404,12 +392,10 @@ resource "azurerm_consumption_budget_resource_group" "test" { } notification { - enabled = true - threshold = 90.0 - operator = "EqualTo" - // We don't update the value of threshold_type because toggling between the two seems to be broken - // See the comment on threshold_type in the schema for more details - threshold_type = "Forecasted" + enabled = true + threshold = 90.0 + operator = "EqualTo" + threshold_type = "Actual" contact_emails = [ "baz@example.com", @@ -439,16 +425,3 @@ resource "azurerm_consumption_budget_resource_group" "test" { } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, consumptionBudgetTestStartDate().Format(time.RFC3339)) } - -func (t ConsumptionBudgetResourceGroupResource) Destroy(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := budgets.ParseScopedBudgetID(state.ID) - if err != nil { - return nil, err - } - - if _, err = client.Consumption.BudgetsClient.Delete(ctx, *id); err != nil { - return nil, fmt.Errorf("deleting %s: %+v", *id, err) - } - - return utils.Bool(true), nil -} diff --git a/internal/services/consumption/consumption_budget_subscription_resource_test.go b/internal/services/consumption/consumption_budget_subscription_resource_test.go index 0aad630c528a..b126f106f739 100644 --- a/internal/services/consumption/consumption_budget_subscription_resource_test.go +++ b/internal/services/consumption/consumption_budget_subscription_resource_test.go @@ -334,6 +334,7 @@ resource "azurerm_consumption_budget_subscription" "test" { } func (ConsumptionBudgetSubscriptionResource) completeUpdate(data acceptance.TestData) string { + // nolint: dupword return fmt.Sprintf(` provider "azurerm" { features {} @@ -430,6 +431,5 @@ resource "azurerm_consumption_budget_subscription" "test" { azurerm_monitor_action_group.test.id, ] } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, consumptionBudgetTestStartDate().Format(time.RFC3339)) +}`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, consumptionBudgetTestStartDate().Format(time.RFC3339)) } diff --git a/internal/services/containerapps/container_app_environment_certificate_resource_test.go b/internal/services/containerapps/container_app_environment_certificate_resource_test.go index b1f925820982..0e9a08087a36 100644 --- a/internal/services/containerapps/container_app_environment_certificate_resource_test.go +++ b/internal/services/containerapps/container_app_environment_certificate_resource_test.go @@ -33,6 +33,7 @@ func TestAccContainerAppEnvironmentCertificate_basic(t *testing.T) { data.ImportStep("certificate_blob_base64", "certificate_password"), }) } + func TestAccContainerAppEnvironmentCertificate_basicUpdateTags(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_container_app_environment_certificate", "test") r := ContainerAppEnvironmentCertificateResource{} diff --git a/internal/services/containerapps/container_app_environment_custom_domain_resource.go b/internal/services/containerapps/container_app_environment_custom_domain_resource.go index 284986695201..d20d26084930 100644 --- a/internal/services/containerapps/container_app_environment_custom_domain_resource.go +++ b/internal/services/containerapps/container_app_environment_custom_domain_resource.go @@ -45,7 +45,6 @@ func (r ContainerAppEnvironmentCustomDomainResource) IDValidationFunc() pluginsd func (r ContainerAppEnvironmentCustomDomainResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "container_app_environment_id": { Type: pluginsdk.TypeString, Required: true, @@ -241,7 +240,6 @@ func (r ContainerAppEnvironmentCustomDomainResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - lawClient := metadata.Client.LogAnalytics.SharedKeyWorkspacesClient client := metadata.Client.ContainerApps.ManagedEnvironmentClient subscriptionId := metadata.Client.Account.SubscriptionId diff --git a/internal/services/containerapps/container_app_environment_resource.go b/internal/services/containerapps/container_app_environment_resource.go index b004e10726b8..d5f2a246cc5e 100644 --- a/internal/services/containerapps/container_app_environment_resource.go +++ b/internal/services/containerapps/container_app_environment_resource.go @@ -91,7 +91,6 @@ func (r ContainerAppEnvironmentResource) Arguments() map[string]*pluginsdk.Schem "log_analytics_workspace_id": { Type: pluginsdk.TypeString, Optional: true, - ForceNew: true, ValidateFunc: workspaces.ValidateWorkspaceID, Description: "The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to.", }, diff --git a/internal/services/containerapps/container_app_environment_resource_test.go b/internal/services/containerapps/container_app_environment_resource_test.go index 61e8d1618e66..e97718d18073 100644 --- a/internal/services/containerapps/container_app_environment_resource_test.go +++ b/internal/services/containerapps/container_app_environment_resource_test.go @@ -324,11 +324,19 @@ provider "azurerm" { %[1]s +resource "azurerm_log_analytics_workspace" "second" { + name = "acctestLAW-second-%[2]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "PerGB2018" + retention_in_days = 30 +} + resource "azurerm_container_app_environment" "test" { name = "acctest-CAEnv%[2]d" resource_group_name = azurerm_resource_group.test.name location = azurerm_resource_group.test.location - log_analytics_workspace_id = azurerm_log_analytics_workspace.test.id + log_analytics_workspace_id = azurerm_log_analytics_workspace.second.id infrastructure_subnet_id = azurerm_subnet.control.id internal_load_balancer_enabled = true @@ -347,7 +355,6 @@ resource "azurerm_container_app_environment" "test" { } } `, r.templateVNet(data), data.RandomInteger) - } func (r ContainerAppEnvironmentResource) completeMultipleWorkloadProfiles(data acceptance.TestData) string { @@ -395,7 +402,6 @@ resource "azurerm_container_app_environment" "test" { } } `, r.templateVNet(data), data.RandomInteger) - } func (r ContainerAppEnvironmentResource) completeZoneRedundant(data acceptance.TestData) string { diff --git a/internal/services/containerapps/container_app_environment_storage_resource_test.go b/internal/services/containerapps/container_app_environment_storage_resource_test.go index 1bb100f92204..2d7e8d0d9015 100644 --- a/internal/services/containerapps/container_app_environment_storage_resource_test.go +++ b/internal/services/containerapps/container_app_environment_storage_resource_test.go @@ -89,7 +89,6 @@ func (r ContainerAppEnvironmentStorageResource) Exists(ctx context.Context, clie } return pointer.To(true), nil - } func (r ContainerAppEnvironmentStorageResource) basic(data acceptance.TestData) string { @@ -125,7 +124,7 @@ resource "azurerm_container_app_environment_storage" "test" { account_name = azurerm_storage_account.test.name access_key = azurerm_storage_account.test.secondary_access_key share_name = azurerm_storage_share.test.name - access_mode = "ReadOnly" + access_mode = "ReadWrite" } `, r.template(data), data.RandomInteger) } diff --git a/internal/services/containerapps/container_app_job_resource.go b/internal/services/containerapps/container_app_job_resource.go index 7b4fa4ee12da..6d5b73f24ab3 100644 --- a/internal/services/containerapps/container_app_job_resource.go +++ b/internal/services/containerapps/container_app_job_resource.go @@ -19,7 +19,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/helpers" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/validate" @@ -205,22 +204,6 @@ func (r ContainerAppJobResource) Arguments() map[string]*schema.Schema { "tags": commonschema.Tags(), } - if !features.FourPointOhBeta() { - schema["secrets"] = helpers.SecretsSchema() - schema["secrets"].ConflictsWith = []string{"secret"} - schema["secrets"].Computed = true - schema["secrets"].Deprecated = "`secrets` has been renamed to `secret` and will be removed in version 4.0 of the AzureRM Provider." - schema["secret"].ConflictsWith = []string{"secrets"} - schema["secret"].Computed = true - - schema["registries"] = helpers.ContainerAppRegistrySchema() - schema["registries"].ConflictsWith = []string{"registry"} - schema["registries"].Computed = true - schema["registries"].Deprecated = "`registries` has been renamed to `registry` and will be removed in version 4.0 of the AzureRM Provider." - schema["registry"].ConflictsWith = []string{"registries"} - schema["registry"].Computed = true - } - return schema } @@ -271,17 +254,6 @@ func (r ContainerAppJobResource) Create() sdk.ResourceFunc { if err != nil { return fmt.Errorf("expanding registry config for %s: %v", id, err) } - if !features.FourPointOhBeta() && len(model.RegistriesDeprecated) > 0 { - registries, err = helpers.ExpandContainerAppJobRegistries(model.RegistriesDeprecated) - if err != nil { - return fmt.Errorf("expanding registry config for %s: %v", id, err) - } - } - - secrets := helpers.ExpandContainerAppJobSecrets(model.Secrets) - if !features.FourPointOhBeta() && len(model.SecretsDeprecated) > 0 { - secrets = helpers.ExpandContainerAppJobSecrets(model.SecretsDeprecated) - } job := jobs.Job{ Location: location.Normalize(model.Location), @@ -289,7 +261,7 @@ func (r ContainerAppJobResource) Create() sdk.ResourceFunc { Configuration: &jobs.JobConfiguration{ ReplicaRetryLimit: pointer.To(model.ReplicaRetryLimit), ReplicaTimeout: model.ReplicaTimeoutInSeconds, - Secrets: secrets, + Secrets: helpers.ExpandContainerAppJobSecrets(model.Secrets), Registries: registries, }, EnvironmentId: pointer.To(model.ContainerAppEnvironmentId), @@ -380,9 +352,6 @@ func (r ContainerAppJobResource) Read() sdk.ResourceFunc { state.Template = helpers.FlattenContainerAppJobTemplate(props.Template) if config := props.Configuration; config != nil { state.Registries = helpers.FlattenContainerAppJobRegistries(config.Registries) - if !features.FourPointOhBeta() { - state.RegistriesDeprecated = helpers.FlattenContainerAppJobRegistries(config.Registries) - } state.ReplicaTimeoutInSeconds = config.ReplicaTimeout if config.ReplicaRetryLimit != nil { state.ReplicaRetryLimit = pointer.From(config.ReplicaRetryLimit) @@ -406,9 +375,6 @@ func (r ContainerAppJobResource) Read() sdk.ResourceFunc { return fmt.Errorf("listing secrets for %s: %+v", *id, err) } state.Secrets = helpers.FlattenContainerAppJobSecrets(secretResp.Model) - if !features.FourPointOhBeta() { - state.SecretsDeprecated = helpers.FlattenContainerAppJobSecrets(secretResp.Model) - } return metadata.Encode(&state) }, @@ -503,18 +469,6 @@ func (r ContainerAppJobResource) Update() sdk.ResourceFunc { model.Tags = tags.Expand(state.Tags) } - if !features.FourPointOhBeta() { - if d.HasChange("secrets") { - model.Properties.Configuration.Secrets = helpers.ExpandContainerAppJobSecrets(state.SecretsDeprecated) - } - if d.HasChange("registries") { - model.Properties.Configuration.Registries, err = helpers.ExpandContainerAppJobRegistries(state.RegistriesDeprecated) - if err != nil { - return fmt.Errorf("invalid registry config for %s: %v", id, err) - } - } - } - model.Properties.Template = helpers.ExpandContainerAppJobTemplate(state.Template) if err := client.CreateOrUpdateThenPoll(ctx, *id, *model); err != nil { diff --git a/internal/services/containerapps/container_app_job_resource_test.go b/internal/services/containerapps/container_app_job_resource_test.go index 8c0be8b5e9df..f0a224f0c9ac 100644 --- a/internal/services/containerapps/container_app_job_resource_test.go +++ b/internal/services/containerapps/container_app_job_resource_test.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -67,35 +66,6 @@ func TestAccContainerAppJob_withWorkloadProfile(t *testing.T) { }) } -func TestAccContainerAppJob_withWorkloadProfileUpdate(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_container_app_job", "test") - r := ContainerAppJobResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.withWorkloadProfile(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccContainerAppJob_withSystemAssignedIdentity(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_container_app_job", "test") r := ContainerAppJobResource{} @@ -230,24 +200,6 @@ func TestAccContainerAppJob_complete(t *testing.T) { }) } -func TestAccContainerAppJob_completeDeprecated(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipped as `secrets` and `registries` removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_container_app_job", "test") - r := ContainerAppJobResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.completeDeprecated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccContainerAppJob_completeUpdate(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_container_app_job", "test") r := ContainerAppJobResource{} @@ -1360,104 +1312,6 @@ resource "azurerm_container_app_job" "test" { `, ContainerAppResource{}.templatePlusExtras(data), data.RandomInteger) } -func (r ContainerAppJobResource) completeDeprecated(data acceptance.TestData) string { - return fmt.Sprintf(` - -%[1]s - -resource "azurerm_container_app_job" "test" { - name = "acctest-cajob%[2]d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - container_app_environment_id = azurerm_container_app_environment.test.id - - identity { - type = "SystemAssigned" - } - - replica_timeout_in_seconds = 10 - replica_retry_limit = 10 - manual_trigger_config { - parallelism = 4 - replica_completion_count = 1 - } - secrets { - name = "registry-password" - value = azurerm_container_registry.test.admin_password - } - registries { - server = azurerm_container_registry.test.login_server - username = azurerm_container_registry.test.admin_username - password_secret_name = "registry-password" - } - - template { - volume { - name = azurerm_container_app_environment_storage.test.name - storage_type = "AzureFile" - storage_name = azurerm_container_app_environment_storage.test.name - } - container { - args = [ - "-c", - "while true; do echo hello; sleep 10;done", - ] - command = [ - "/bin/sh", - ] - image = "jackofallops/azure-containerapps-python-acctest:v0.0.1" - name = "testcontainerappsjob0" - readiness_probe { - transport = "HTTP" - port = 5000 - } - - liveness_probe { - transport = "HTTP" - port = 5000 - path = "/health" - - header { - name = "Cache-Control" - value = "no-cache" - } - - initial_delay = 5 - interval_seconds = 20 - timeout = 2 - failure_count_threshold = 1 - } - startup_probe { - transport = "TCP" - port = 5000 - } - - cpu = 0.5 - memory = "1Gi" - volume_mounts { - path = "/appsettings" - name = azurerm_container_app_environment_storage.test.name - } - } - - init_container { - name = "init-cont-%[2]d" - image = "jackofallops/azure-containerapps-python-acctest:v0.0.1" - cpu = 0.25 - memory = "0.5Gi" - volume_mounts { - name = azurerm_container_app_environment_storage.test.name - path = "/appsettings" - } - } - } - tags = { - ENV = "test" - } -} -`, ContainerAppResource{}.templatePlusExtras(data), data.RandomInteger) -} - func (r ContainerAppJobResource) completeUpdate(data acceptance.TestData) string { return fmt.Sprintf(` diff --git a/internal/services/containerapps/container_app_resource.go b/internal/services/containerapps/container_app_resource.go index 2757148bae7b..1b77862144b1 100644 --- a/internal/services/containerapps/container_app_resource.go +++ b/internal/services/containerapps/container_app_resource.go @@ -390,7 +390,6 @@ func (r ContainerAppResource) Update() sdk.ResourceFunc { if metadata.ResourceData.HasChange("dapr") { model.Properties.Configuration.Dapr = helpers.ExpandContainerAppDapr(state.Dapr) - } if metadata.ResourceData.HasChange("template") { @@ -418,7 +417,6 @@ func (r ContainerAppResource) Update() sdk.ResourceFunc { return err } model.Identity = pointer.To(identity.LegacySystemAndUserAssignedMap(*ident)) - } if metadata.ResourceData.HasChange("workload_profile_name") { diff --git a/internal/services/containerapps/container_app_resource_test.go b/internal/services/containerapps/container_app_resource_test.go index 7edc43cf37aa..657c64553226 100644 --- a/internal/services/containerapps/container_app_resource_test.go +++ b/internal/services/containerapps/container_app_resource_test.go @@ -2199,6 +2199,7 @@ resource "azurerm_container_app" "test" { transport = "HTTP" port = 5000 path = "/uptime" + initial_delay = 5 timeout = 2 failure_count_threshold = 1 success_count_threshold = 1 @@ -2227,6 +2228,7 @@ resource "azurerm_container_app" "test" { startup_probe { transport = "TCP" port = 5000 + initial_delay = 5 timeout = 5 failure_count_threshold = 1 } diff --git a/internal/services/containerapps/helpers/container_app_environment.go b/internal/services/containerapps/helpers/container_app_environment.go index f54028ad6d23..0cdc0546262d 100644 --- a/internal/services/containerapps/helpers/container_app_environment.go +++ b/internal/services/containerapps/helpers/container_app_environment.go @@ -8,7 +8,6 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) @@ -88,8 +87,6 @@ func ExpandWorkloadProfiles(input []WorkloadProfileModel) *[]managedenvironments result := make([]managedenvironments.WorkloadProfile, 0) - consumptionDefined := false - for _, v := range input { r := managedenvironments.WorkloadProfile{ Name: v.Name, @@ -101,19 +98,11 @@ func ExpandWorkloadProfiles(input []WorkloadProfileModel) *[]managedenvironments r.MinimumCount = pointer.To(v.MinimumCount) } else { r.WorkloadProfileType = string(WorkloadProfileSkuConsumption) - consumptionDefined = true } result = append(result, r) } - if !features.FourPointOhBeta() && !consumptionDefined { - result = append(result, managedenvironments.WorkloadProfile{ - Name: string(WorkloadProfileSkuConsumption), - WorkloadProfileType: string(WorkloadProfileSkuConsumption), - }) - } - return &result } diff --git a/internal/services/containerapps/helpers/container_app_job.go b/internal/services/containerapps/helpers/container_app_job.go index 90f07659ef36..44dae6ddaf65 100644 --- a/internal/services/containerapps/helpers/container_app_job.go +++ b/internal/services/containerapps/helpers/container_app_job.go @@ -439,7 +439,7 @@ func flattenInitContainerAppJobContainers(input *[]jobs.BaseContainer) []BaseCon func expandContainerJobEnvVar(input Container) *[]jobs.EnvironmentVar { envs := make([]jobs.EnvironmentVar, 0) - if input.Env == nil || len(input.Env) == 0 { + if len(input.Env) == 0 { return &envs } @@ -461,7 +461,7 @@ func expandContainerJobEnvVar(input Container) *[]jobs.EnvironmentVar { func expandInitContainerJobEnvVar(input BaseContainer) *[]jobs.EnvironmentVar { envs := make([]jobs.EnvironmentVar, 0) - if input.Env == nil || len(input.Env) == 0 { + if len(input.Env) == 0 { return &envs } diff --git a/internal/services/containerapps/helpers/container_apps.go b/internal/services/containerapps/helpers/container_apps.go index e8e94961e5fd..10d1e1337a11 100644 --- a/internal/services/containerapps/helpers/container_apps.go +++ b/internal/services/containerapps/helpers/container_apps.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents" "github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containerapps/validate" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" @@ -162,68 +161,62 @@ type Ingress struct { } func ContainerAppIngressSchema() *pluginsdk.Schema { - r := &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "allow_insecure_connections": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - Description: "Should this ingress allow insecure connections?", - }, + return &pluginsdk.Schema{ + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allow_insecure_connections": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + Description: "Should this ingress allow insecure connections?", + }, - "external_enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - Description: "Is this an external Ingress.", - }, + "external_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + Description: "Is this an external Ingress.", + }, - "custom_domain": ContainerAppIngressCustomDomainSchemaComputed(), + "custom_domain": ContainerAppIngressCustomDomainSchemaComputed(), - "fqdn": { - Type: pluginsdk.TypeString, - Computed: true, - Description: "The FQDN of the ingress.", - }, + "fqdn": { + Type: pluginsdk.TypeString, + Computed: true, + Description: "The FQDN of the ingress.", + }, - "ip_security_restriction": ContainerAppIngressIpSecurityRestriction(), + "ip_security_restriction": ContainerAppIngressIpSecurityRestriction(), - "target_port": { - Type: pluginsdk.TypeInt, - Required: true, - ValidateFunc: validation.IntBetween(1, 65535), - Description: "The target port on the container for the Ingress traffic.", - }, + "target_port": { + Type: pluginsdk.TypeInt, + Required: true, + ValidateFunc: validation.IntBetween(1, 65535), + Description: "The target port on the container for the Ingress traffic.", + }, - "exposed_port": { - Type: pluginsdk.TypeInt, - Optional: true, - ValidateFunc: validation.IntBetween(1, 65535), - Description: "The exposed port on the container for the Ingress traffic.", - }, + "exposed_port": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(1, 65535), + Description: "The exposed port on the container for the Ingress traffic.", + }, - "traffic_weight": ContainerAppIngressTrafficWeight(), + "traffic_weight": ContainerAppIngressTrafficWeight(), - "transport": { - Type: pluginsdk.TypeString, - Optional: true, - Default: string(containerapps.IngressTransportMethodAuto), - ValidateFunc: validation.StringInSlice(containerapps.PossibleValuesForIngressTransportMethod(), false), - Description: "The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`, `tcp`. Defaults to `auto`", + "transport": { + Type: pluginsdk.TypeString, + Optional: true, + Default: string(containerapps.IngressTransportMethodAuto), + ValidateFunc: validation.StringInSlice(containerapps.PossibleValuesForIngressTransportMethod(), false), + Description: "The transport method for the Ingress. Possible values include `auto`, `http`, and `http2`, `tcp`. Defaults to `auto`", + }, }, }, } - - if !features.FourPointOhBeta() { - r.Schema["custom_domain"] = ContainerAppIngressCustomDomainSchema() - } - - return &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Elem: r, - } } func ContainerAppIngressSchemaComputed() *pluginsdk.Schema { @@ -1668,7 +1661,7 @@ func ContainerEnvVarSchemaComputed() *pluginsdk.Schema { func expandInitContainerEnvVar(input BaseContainer) *[]containerapps.EnvironmentVar { envs := make([]containerapps.EnvironmentVar, 0) - if input.Env == nil || len(input.Env) == 0 { + if len(input.Env) == 0 { return &envs } @@ -1690,7 +1683,7 @@ func expandInitContainerEnvVar(input BaseContainer) *[]containerapps.Environment func expandContainerEnvVar(input Container) *[]containerapps.EnvironmentVar { envs := make([]containerapps.EnvironmentVar, 0) - if input.Env == nil || len(input.Env) == 0 { + if len(input.Env) == 0 { return &envs } @@ -1734,6 +1727,7 @@ type ContainerAppReadinessProbe struct { Port int64 `tfschema:"port"` Path string `tfschema:"path"` Headers []HttpHeader `tfschema:"header"` + InitialDelay int64 `tfschema:"initial_delay"` Interval int64 `tfschema:"interval_seconds"` Timeout int64 `tfschema:"timeout"` FailureThreshold int64 `tfschema:"failure_count_threshold"` @@ -1799,6 +1793,14 @@ func ContainerAppReadinessProbeSchema() *pluginsdk.Schema { }, }, + "initial_delay": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + ValidateFunc: validation.IntBetween(0, 60), + Description: "The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds.", + }, + "interval_seconds": { Type: pluginsdk.TypeInt, Optional: true, @@ -1819,8 +1821,8 @@ func ContainerAppReadinessProbeSchema() *pluginsdk.Schema { Type: pluginsdk.TypeInt, Optional: true, Default: 3, - ValidateFunc: validation.IntBetween(1, 10), - Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.", + ValidateFunc: validation.IntBetween(1, 30), + Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.", }, "success_count_threshold": { @@ -1885,6 +1887,12 @@ func ContainerAppReadinessProbeSchemaComputed() *pluginsdk.Schema { }, }, + "initial_delay": { + Type: pluginsdk.TypeInt, + Computed: true, + Description: "The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds.", + }, + "interval_seconds": { Type: pluginsdk.TypeInt, Computed: true, @@ -1900,7 +1908,7 @@ func ContainerAppReadinessProbeSchemaComputed() *pluginsdk.Schema { "failure_count_threshold": { Type: pluginsdk.TypeInt, Computed: true, - Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.", + Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.", }, "success_count_threshold": { @@ -1916,11 +1924,12 @@ func ContainerAppReadinessProbeSchemaComputed() *pluginsdk.Schema { func expandContainerAppReadinessProbe(input ContainerAppReadinessProbe) containerapps.ContainerAppProbe { probeType := containerapps.TypeReadiness result := containerapps.ContainerAppProbe{ - Type: &probeType, - PeriodSeconds: pointer.To(input.Interval), - TimeoutSeconds: pointer.To(input.Timeout), - FailureThreshold: pointer.To(input.FailureThreshold), - SuccessThreshold: pointer.To(input.SuccessThreshold), + Type: &probeType, + InitialDelaySeconds: pointer.To(input.InitialDelay), + PeriodSeconds: pointer.To(input.Interval), + TimeoutSeconds: pointer.To(input.Timeout), + FailureThreshold: pointer.To(input.FailureThreshold), + SuccessThreshold: pointer.To(input.SuccessThreshold), } switch p := strings.ToUpper(input.Transport); p { @@ -1957,6 +1966,7 @@ func expandContainerAppReadinessProbe(input ContainerAppReadinessProbe) containe func flattenContainerAppReadinessProbe(input containerapps.ContainerAppProbe) []ContainerAppReadinessProbe { result := make([]ContainerAppReadinessProbe, 0) probe := ContainerAppReadinessProbe{ + InitialDelay: pointer.From(input.InitialDelaySeconds), Interval: pointer.From(input.PeriodSeconds), Timeout: pointer.From(input.TimeoutSeconds), FailureThreshold: pointer.From(input.FailureThreshold), @@ -2070,8 +2080,8 @@ func ContainerAppLivenessProbeSchema() *pluginsdk.Schema { Type: pluginsdk.TypeInt, Optional: true, Default: 1, - ValidateFunc: validation.IntBetween(1, 60), - Description: "The time in seconds to wait after the container has started before the probe is started.", + ValidateFunc: validation.IntBetween(0, 60), + Description: "The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `1` seconds.", }, "interval_seconds": { @@ -2094,8 +2104,8 @@ func ContainerAppLivenessProbeSchema() *pluginsdk.Schema { Type: pluginsdk.TypeInt, Optional: true, Default: 3, - ValidateFunc: validation.IntBetween(1, 10), - Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.", + ValidateFunc: validation.IntBetween(1, 30), + Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.", }, "termination_grace_period_seconds": { @@ -2161,7 +2171,7 @@ func ContainerAppLivenessProbeSchemaComputed() *pluginsdk.Schema { "initial_delay": { Type: pluginsdk.TypeInt, Computed: true, - Description: "The time in seconds to wait after the container has started before the probe is started.", + Description: "The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `1` seconds.", }, "interval_seconds": { @@ -2179,7 +2189,7 @@ func ContainerAppLivenessProbeSchemaComputed() *pluginsdk.Schema { "failure_count_threshold": { Type: pluginsdk.TypeInt, Computed: true, - Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.", + Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.", }, "termination_grace_period_seconds": { @@ -2279,6 +2289,7 @@ type ContainerAppStartupProbe struct { Port int64 `tfschema:"port"` Path string `tfschema:"path"` Headers []HttpHeader `tfschema:"header"` + InitialDelay int64 `tfschema:"initial_delay"` Interval int64 `tfschema:"interval_seconds"` Timeout int64 `tfschema:"timeout"` FailureThreshold int64 `tfschema:"failure_count_threshold"` @@ -2344,6 +2355,14 @@ func ContainerAppStartupProbeSchema() *pluginsdk.Schema { }, }, + "initial_delay": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 0, + ValidateFunc: validation.IntBetween(0, 60), + Description: "The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds.", + }, + "interval_seconds": { Type: pluginsdk.TypeInt, Optional: true, @@ -2364,8 +2383,8 @@ func ContainerAppStartupProbeSchema() *pluginsdk.Schema { Type: pluginsdk.TypeInt, Optional: true, Default: 3, - ValidateFunc: validation.IntBetween(1, 10), - Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.", + ValidateFunc: validation.IntBetween(1, 30), + Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.", }, "termination_grace_period_seconds": { @@ -2424,6 +2443,12 @@ func ContainerAppStartupProbeSchemaComputed() *pluginsdk.Schema { }, }, + "initial_delay": { + Type: pluginsdk.TypeInt, + Computed: true, + Description: "The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds.", + }, + "interval_seconds": { Type: pluginsdk.TypeInt, Computed: true, @@ -2439,7 +2464,7 @@ func ContainerAppStartupProbeSchemaComputed() *pluginsdk.Schema { "failure_count_threshold": { Type: pluginsdk.TypeInt, Computed: true, - Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.", + Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.", }, "termination_grace_period_seconds": { @@ -2455,10 +2480,11 @@ func ContainerAppStartupProbeSchemaComputed() *pluginsdk.Schema { func expandContainerAppStartupProbe(input ContainerAppStartupProbe) containerapps.ContainerAppProbe { probeType := containerapps.TypeStartup result := containerapps.ContainerAppProbe{ - Type: &probeType, - PeriodSeconds: pointer.To(input.Interval), - TimeoutSeconds: pointer.To(input.Timeout), - FailureThreshold: pointer.To(input.FailureThreshold), + Type: &probeType, + InitialDelaySeconds: pointer.To(input.InitialDelay), + PeriodSeconds: pointer.To(input.Interval), + TimeoutSeconds: pointer.To(input.Timeout), + FailureThreshold: pointer.To(input.FailureThreshold), } switch p := strings.ToUpper(input.Transport); p { @@ -2495,6 +2521,7 @@ func expandContainerAppStartupProbe(input ContainerAppStartupProbe) containerapp func flattenContainerAppStartupProbe(input containerapps.ContainerAppProbe) []ContainerAppStartupProbe { result := make([]ContainerAppStartupProbe, 0) probe := ContainerAppStartupProbe{ + InitialDelay: pointer.From(input.InitialDelaySeconds), Interval: pointer.From(input.PeriodSeconds), Timeout: pointer.From(input.TimeoutSeconds), FailureThreshold: pointer.From(input.FailureThreshold), @@ -2663,7 +2690,6 @@ func ExpandFormerContainerSecrets(metadata sdk.ResourceMetaData) *[]containerapp secretsRaw, _ := metadata.ResourceData.GetChange("secret") result := make([]containerapps.Secret, 0) if secrets, ok := secretsRaw.([]interface{}); ok { - for _, secret := range secrets { if v, ok := secret.(map[string]interface{}); ok { result = append(result, containerapps.Secret{ @@ -2896,6 +2922,7 @@ func AzureQueueScaleRuleSchema() *pluginsdk.Schema { }, } } + func AzureQueueScaleRuleSchemaComputed() *pluginsdk.Schema { return &pluginsdk.Schema{ Type: pluginsdk.TypeList, diff --git a/internal/services/containerapps/validate/validate.go b/internal/services/containerapps/validate/validate.go index 91f59466ffaa..11d83de9a796 100644 --- a/internal/services/containerapps/validate/validate.go +++ b/internal/services/containerapps/validate/validate.go @@ -46,8 +46,8 @@ func SecretName(i interface{}, k string) (warnings []string, errors []error) { return } - if matched := regexp.MustCompile(`^[a-z0-9][a-z0-9-]*[a-z0-9]?$`).Match([]byte(v)); !matched || strings.HasSuffix(v, "-") || strings.HasSuffix(v, ".") { - errors = append(errors, fmt.Errorf("%q must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character", k)) + if matched := regexp.MustCompile(`^[a-z0-9][a-z0-9-]{0,251}[a-z0-9]?$`).Match([]byte(v)); !matched || strings.HasSuffix(v, "-") { + errors = append(errors, fmt.Errorf("%q must consist of lower case alphanumeric characters, '-', and must start and end with an alphanumeric character. The length must not be more than 253 characters", k)) } return } diff --git a/internal/services/containerapps/validate/validate_test.go b/internal/services/containerapps/validate/validate_test.go index 44203f9dc88f..784fd34a5823 100644 --- a/internal/services/containerapps/validate/validate_test.go +++ b/internal/services/containerapps/validate/validate_test.go @@ -98,6 +98,10 @@ func TestValidateSecretNames(t *testing.T) { Input: "Cannothavecapitals", Valid: false, }, + { + Input: "no.dots.allowed", + Valid: false, + }, { Input: "a", Valid: true, diff --git a/internal/services/containers/client/client.go b/internal/services/containers/client/client.go index db7db8b9c03d..764c6a84ab9d 100644 --- a/internal/services/containers/client/client.go +++ b/internal/services/containers/client/client.go @@ -8,8 +8,8 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance" containerregistry_v2019_06_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview" - containerregistry_v2023_06_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview" "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules" + containerregistry "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview" "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices" "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies" "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns" @@ -25,10 +25,10 @@ import ( ) type Client struct { - AgentPoolsClient *agentpools.AgentPoolsClient - ContainerInstanceClient *containerinstance.ContainerInstanceClient - CacheRulesClient *cacherules.CacheRulesClient - ContainerRegistryClient_v2023_06_01_preview *containerregistry_v2023_06_01_preview.Client + AgentPoolsClient *agentpools.AgentPoolsClient + ContainerInstanceClient *containerinstance.ContainerInstanceClient + CacheRulesClient *cacherules.CacheRulesClient + ContainerRegistryClient *containerregistry.Client // v2019_06_01_preview is needed for container registry agent pools and tasks ContainerRegistryClient_v2019_06_01_preview *containerregistry_v2019_06_01_preview.Client FleetUpdateRunsClient *updateruns.UpdateRunsClient @@ -56,7 +56,7 @@ func NewContainersClient(o *common.ClientOptions) (*Client, error) { return nil, err } - containerRegistryClient_v2023_06_01_preview, err := containerregistry_v2023_06_01_preview.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { + containerRegistryClient, err := containerregistry.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) if err != nil { @@ -128,7 +128,7 @@ func NewContainersClient(o *common.ClientOptions) (*Client, error) { AgentPoolsClient: agentPoolsClient, ContainerInstanceClient: containerInstanceClient, CacheRulesClient: cacheRulesClient, - ContainerRegistryClient_v2023_06_01_preview: containerRegistryClient_v2023_06_01_preview, + ContainerRegistryClient: containerRegistryClient, ContainerRegistryClient_v2019_06_01_preview: containerRegistryClient_v2019_06_01_preview, FleetUpdateRunsClient: fleetUpdateRunsClient, FleetUpdateStrategiesClient: fleetUpdateStrategiesClient, diff --git a/internal/services/containers/client/client_gen.go b/internal/services/containers/client/client_gen.go index 9ef90ffa8ae1..a9fbb47b247a 100644 --- a/internal/services/containers/client/client_gen.go +++ b/internal/services/containers/client/client_gen.go @@ -15,7 +15,6 @@ type AutoClient struct { } func NewClient(o *common.ClientOptions) (*AutoClient, error) { - v20230302PreviewClient, err := containerserviceV20230302Preview.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) diff --git a/internal/services/containers/container_connected_registry_resource.go b/internal/services/containers/container_connected_registry_resource.go index 6ea10c85a2c8..c00182017abe 100644 --- a/internal/services/containers/container_connected_registry_resource.go +++ b/internal/services/containers/container_connected_registry_resource.go @@ -10,9 +10,9 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens" tfvalidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/parse" @@ -200,7 +200,7 @@ func (r ContainerConnectedRegistryResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Containers.ContainerRegistryClient_v2023_06_01_preview.ConnectedRegistries + client := metadata.Client.Containers.ContainerRegistryClient.ConnectedRegistries var model ContainerConnectedRegistryModel if err := metadata.Decode(&model); err != nil { @@ -275,7 +275,7 @@ func (r ContainerConnectedRegistryResource) Read() sdk.ResourceFunc { Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Containers.ContainerRegistryClient_v2023_06_01_preview.ConnectedRegistries + client := metadata.Client.Containers.ContainerRegistryClient.ConnectedRegistries id, err := connectedregistries.ParseConnectedRegistryID(metadata.ResourceData.Id()) if err != nil { return err @@ -374,7 +374,7 @@ func (r ContainerConnectedRegistryResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Containers.ContainerRegistryClient_v2023_06_01_preview.ConnectedRegistries + client := metadata.Client.Containers.ContainerRegistryClient.ConnectedRegistries id, err := connectedregistries.ParseConnectedRegistryID(metadata.ResourceData.Id()) if err != nil { @@ -404,7 +404,7 @@ func (r ContainerConnectedRegistryResource) Update() sdk.ResourceFunc { return err } - client := metadata.Client.Containers.ContainerRegistryClient_v2023_06_01_preview.ConnectedRegistries + client := metadata.Client.Containers.ContainerRegistryClient.ConnectedRegistries existing, err := client.Get(ctx, *id) if err != nil { diff --git a/internal/services/containers/container_connected_registry_resource_test.go b/internal/services/containers/container_connected_registry_resource_test.go index fceeae709320..192de750dcfc 100644 --- a/internal/services/containers/container_connected_registry_resource_test.go +++ b/internal/services/containers/container_connected_registry_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -139,7 +139,7 @@ func TestAccContainerConnectedRegistry_requiresImport(t *testing.T) { } func (r ContainerConnectedRegistryResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - client := clients.Containers.ContainerRegistryClient_v2023_06_01_preview.ConnectedRegistries + client := clients.Containers.ContainerRegistryClient.ConnectedRegistries id, err := connectedregistries.ParseConnectedRegistryID(state.ID) if err != nil { diff --git a/internal/services/containers/container_group_resource.go b/internal/services/containers/container_group_resource.go index 5531f70965e9..00993f7ee62e 100644 --- a/internal/services/containers/container_group_resource.go +++ b/internal/services/containers/container_group_resource.go @@ -23,7 +23,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" keyVaultParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" @@ -520,66 +519,6 @@ func resourceContainerGroup() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["container"].Elem.(*pluginsdk.Resource).Schema["gpu"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - ForceNew: true, - Deprecated: "The `gpu` block has been deprecated since K80 and P100 GPU Skus have been retired and remaining GPU resources are not fully supported and not appropriate for production workloads. This block will be removed in v4.0 of the AzureRM provider.", - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "count": { - Type: pluginsdk.TypeInt, - Optional: true, - ForceNew: true, - ValidateFunc: validation.IntInSlice([]int{ - 1, - 2, - 4, - }), - }, - - "sku": { - Type: pluginsdk.TypeString, - Optional: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - "K80", - "P100", - "V100", - }, false), - }, - }, - }, - } - resource.Schema["container"].Elem.(*pluginsdk.Resource).Schema["gpu_limit"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Deprecated: "The `gpu_limit` block has been deprecated since K80 and P100 GPU Skus have been retired and remaining GPU resources are not fully supported and not appropriate for production workloads. This block will be removed in v4.0 of the AzureRM provider.", - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "count": { - Type: pluginsdk.TypeInt, - Optional: true, - ValidateFunc: validation.IntAtLeast(0), - }, - - "sku": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringInSlice([]string{ - "K80", - "P100", - "V100", - }, false), - }, - }, - }, - } - } - return resource } @@ -750,7 +689,7 @@ func resourceContainerGroupCreate(d *pluginsdk.ResourceData, meta interface{}) e } containerGroup := containerinstance.ContainerGroup{ - Name: pointer.FromString(id.ContainerGroupName), + Name: pointer.To(id.ContainerGroupName), Location: &location, Tags: tags.Expand(d.Get("tags").(map[string]interface{})), Properties: containerinstance.ContainerGroupPropertiesProperties{ @@ -978,7 +917,7 @@ func resourceContainerGroupRead(d *pluginsdk.ResourceData, meta interface{}) err d.Set("dns_name_label_reuse_policy", containerinstance.DnsNameLabelReusePolicyUnsecure) } } else { - d.Set("dns_name_label_reuse_policy", pointer.FromString(string(containerinstance.DnsNameLabelReusePolicyUnsecure))) + d.Set("dns_name_label_reuse_policy", pointer.To(string(containerinstance.DnsNameLabelReusePolicyUnsecure))) } restartPolicy := "" @@ -1111,7 +1050,7 @@ func expandContainerGroupInitContainers(d *pluginsdk.ResourceData, addedEmptyDir container := containerinstance.InitContainerDefinition{ Name: name, Properties: containerinstance.InitContainerPropertiesDefinition{ - Image: pointer.FromString(image), + Image: pointer.To(image), SecurityContext: expandContainerSecurityContext(data["security"].([]interface{})), }, } @@ -1241,43 +1180,6 @@ func expandContainerGroupContainers(d *pluginsdk.ResourceData, addedEmptyDirs ma container.Properties.Resources.Limits = limits } - if !features.FourPointOhBeta() { - if v, ok := data["gpu"]; ok { - gpus := v.([]interface{}) - for _, gpuRaw := range gpus { - if gpuRaw == nil { - continue - } - v := gpuRaw.(map[string]interface{}) - gpuCount := int32(v["count"].(int)) - gpuSku := containerinstance.GpuSku(v["sku"].(string)) - - gpus := containerinstance.GpuResource{ - Count: int64(gpuCount), - Sku: gpuSku, - } - container.Properties.Resources.Requests.Gpu = &gpus - } - } - - gpuLimit, ok := data["gpu_limit"].([]interface{}) - if ok && len(gpuLimit) == 1 && gpuLimit[0] != nil { - if container.Properties.Resources.Limits == nil { - container.Properties.Resources.Limits = &containerinstance.ResourceLimits{} - } - - v := gpuLimit[0].(map[string]interface{}) - container.Properties.Resources.Limits.Gpu = &containerinstance.GpuResource{} - if v := int64(v["count"].(int)); v != 0 { - container.Properties.Resources.Limits.Gpu.Count = v - } - if v := containerinstance.GpuSku(v["sku"].(string)); v != "" { - container.Properties.Resources.Limits.Gpu.Sku = v - } - - } - } - if v, ok := data["ports"].(*pluginsdk.Set); ok && len(v.List()) > 0 { var ports []containerinstance.ContainerPort for _, v := range v.List() { @@ -1426,7 +1328,7 @@ func expandContainerEnvironmentVariables(input interface{}, secure bool) *[]cont for k, v := range envVars { ev := containerinstance.EnvironmentVariable{ Name: k, - SecureValue: pointer.FromString(v.(string)), + SecureValue: pointer.To(v.(string)), } output = append(output, ev) @@ -1435,7 +1337,7 @@ func expandContainerEnvironmentVariables(input interface{}, secure bool) *[]cont for k, v := range envVars { ev := containerinstance.EnvironmentVariable{ Name: k, - Value: pointer.FromString(v.(string)), + Value: pointer.To(v.(string)), } output = append(output, ev) @@ -1460,13 +1362,13 @@ func expandContainerImageRegistryCredentials(d *pluginsdk.ResourceData) *[]conta imageRegistryCredential.Server = v.(string) } if v := credConfig["username"]; v != nil && v != "" { - imageRegistryCredential.Username = pointer.FromString(v.(string)) + imageRegistryCredential.Username = pointer.To(v.(string)) } if v := credConfig["password"]; v != nil && v != "" { - imageRegistryCredential.Password = pointer.FromString(v.(string)) + imageRegistryCredential.Password = pointer.To(v.(string)) } if v := credConfig["user_assigned_identity_id"]; v != nil && v != "" { - imageRegistryCredential.Identity = pointer.FromString(v.(string)) + imageRegistryCredential.Identity = pointer.To(v.(string)) } output = append(output, imageRegistryCredential) @@ -1539,7 +1441,7 @@ func expandSingleContainerVolume(input interface{}) (*[]containerinstance.Volume ShareName: shareName, ReadOnly: pointer.FromBool(readOnly), StorageAccountName: storageAccountName, - StorageAccountKey: pointer.FromString(storageAccountKey), + StorageAccountKey: pointer.To(storageAccountKey), } } @@ -1558,10 +1460,10 @@ func expandGitRepoVolume(input []interface{}) *containerinstance.GitRepoVolume { Repository: v["url"].(string), } if directory := v["directory"].(string); directory != "" { - gitRepoVolume.Directory = pointer.FromString(directory) + gitRepoVolume.Directory = pointer.To(directory) } if revision := v["revision"].(string); revision != "" { - gitRepoVolume.Revision = pointer.FromString(revision) + gitRepoVolume.Revision = pointer.To(revision) } return gitRepoVolume } @@ -1636,7 +1538,7 @@ func expandContainerProbe(input interface{}) *containerinstance.ContainerProbe { httpGetScheme := containerinstance.Scheme(scheme) probe.HTTPGet = &containerinstance.ContainerHTTPGet{ - Path: pointer.FromString(path), + Path: pointer.To(path), Port: int64(port), Scheme: &httpGetScheme, HTTPHeaders: expandContainerProbeHttpHeaders(x["http_headers"].(map[string]interface{})), @@ -1655,8 +1557,8 @@ func expandContainerProbeHttpHeaders(input map[string]interface{}) *[]containeri headers := []containerinstance.HTTPHeader{} for k, v := range input { header := containerinstance.HTTPHeader{ - Name: pointer.FromString(k), - Value: pointer.FromString(v.(string)), + Name: pointer.To(k), + Value: pointer.To(v.(string)), } headers = append(headers, header) } @@ -1787,17 +1689,6 @@ func flattenContainerGroupContainers(d *pluginsdk.ResourceData, containers *[]co containerConfig["cpu"] = resourceRequests.Cpu containerConfig["memory"] = resourceRequests.MemoryInGB - if !features.FourPointOhBeta() { - gpus := make([]interface{}, 0) - if v := resourceRequests.Gpu; v != nil { - gpu := make(map[string]interface{}) - gpu["count"] = v.Count - gpu["sku"] = string(v.Sku) - gpus = append(gpus, gpu) - } - containerConfig["gpu"] = gpus - } - if resourceLimits := resources.Limits; resourceLimits != nil { if v := resourceLimits.Cpu; v != nil { containerConfig["cpu_limit"] = *v @@ -1805,17 +1696,6 @@ func flattenContainerGroupContainers(d *pluginsdk.ResourceData, containers *[]co if v := resourceLimits.MemoryInGB; v != nil { containerConfig["memory_limit"] = *v } - - if !features.FourPointOhBeta() { - gpus := make([]interface{}, 0) - if v := resourceLimits.Gpu; v != nil { - gpu := make(map[string]interface{}) - gpu["count"] = v.Count - gpu["sku"] = string(v.Sku) - gpus = append(gpus, gpu) - } - containerConfig["gpu_limit"] = gpus - } } containerPorts := make([]interface{}, len(*container.Properties.Ports)) @@ -1940,6 +1820,7 @@ func flattenContainerSecureEnvironmentVariables(input *[]containerinstance.Envir return output } + func flattenContainerEnvironmentVariables(input *[]containerinstance.EnvironmentVariable) map[string]interface{} { output := make(map[string]interface{}) @@ -2165,8 +2046,8 @@ func expandContainerGroupDnsConfig(input interface{}) *containerinstance.DnsConf } return &containerinstance.DnsConfiguration{ - Options: pointer.FromString(strings.Join(options, " ")), - SearchDomains: pointer.FromString(strings.Join(searchDomains, " ")), + Options: pointer.To(strings.Join(options, " ")), + SearchDomains: pointer.To(strings.Join(searchDomains, " ")), NameServers: nameservers, } } diff --git a/internal/services/containers/container_group_resource_test.go b/internal/services/containers/container_group_resource_test.go index 51ca28ec3332..bf3f6379e80c 100644 --- a/internal/services/containers/container_group_resource_test.go +++ b/internal/services/containers/container_group_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -372,84 +371,6 @@ func TestAccContainerGroup_linuxBasicTagsUpdate(t *testing.T) { }) } -func TestAccContainerGroup_linuxComplete(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping in 4.0 since `gpu` and `gpu_limit`has been deprecated.") - } - - data := acceptance.BuildTestData(t, "azurerm_container_group", "test") - - // Override locations for this test to location that has GPU SKU support: - // https://learn.microsoft.com/en-us/azure/container-instances/container-instances-gpu - data.Locations.Primary = "northeurope" - data.Locations.Secondary = "westeurope" - - r := ContainerGroupResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.linuxComplete(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("dns_name_label_reuse_policy").HasValue("Unsecure"), - check.That(data.ResourceName).Key("container.#").HasValue("1"), - check.That(data.ResourceName).Key("container.0.ports.#").HasValue("1"), - check.That(data.ResourceName).Key("container.0.commands.#").HasValue("3"), - check.That(data.ResourceName).Key("container.0.commands.0").HasValue("/bin/bash"), - check.That(data.ResourceName).Key("container.0.commands.1").HasValue("-c"), - check.That(data.ResourceName).Key("container.0.commands.2").HasValue("ls"), - check.That(data.ResourceName).Key("container.0.environment_variables.%").HasValue("2"), - check.That(data.ResourceName).Key("container.0.environment_variables.foo").HasValue("bar"), - check.That(data.ResourceName).Key("container.0.environment_variables.foo1").HasValue("bar1"), - check.That(data.ResourceName).Key("container.0.secure_environment_variables.%").HasValue("2"), - check.That(data.ResourceName).Key("container.0.secure_environment_variables.secureFoo").HasValue("secureBar"), - check.That(data.ResourceName).Key("container.0.secure_environment_variables.secureFoo1").HasValue("secureBar1"), - check.That(data.ResourceName).Key("container.0.gpu.#").HasValue("1"), - check.That(data.ResourceName).Key("container.0.gpu.0.count").HasValue("1"), - check.That(data.ResourceName).Key("container.0.gpu.0.sku").HasValue("V100"), - check.That(data.ResourceName).Key("container.0.volume.#").HasValue("1"), - check.That(data.ResourceName).Key("container.0.volume.0.mount_path").HasValue("/aci/logs"), - check.That(data.ResourceName).Key("container.0.volume.0.name").HasValue("logs"), - check.That(data.ResourceName).Key("container.0.volume.0.read_only").HasValue("false"), - check.That(data.ResourceName).Key("os_type").HasValue("Linux"), - check.That(data.ResourceName).Key("restart_policy").HasValue("OnFailure"), - check.That(data.ResourceName).Key("diagnostics.0.log_analytics.#").HasValue("1"), - check.That(data.ResourceName).Key("diagnostics.0.log_analytics.0.log_type").HasValue("ContainerInsights"), - check.That(data.ResourceName).Key("diagnostics.0.log_analytics.0.metadata.%").HasValue("1"), - check.That(data.ResourceName).Key("diagnostics.0.log_analytics.0.workspace_id").Exists(), - check.That(data.ResourceName).Key("diagnostics.0.log_analytics.0.workspace_key").Exists(), - check.That(data.ResourceName).Key("container.0.readiness_probe.#").HasValue("1"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.exec.#").HasValue("2"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.exec.0").HasValue("cat"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.exec.1").HasValue("/tmp/healthy"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.http_get.#").HasValue("0"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.initial_delay_seconds").HasValue("1"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.period_seconds").HasValue("1"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.failure_threshold").HasValue("1"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.success_threshold").HasValue("1"), - check.That(data.ResourceName).Key("container.0.readiness_probe.0.timeout_seconds").HasValue("1"), - check.That(data.ResourceName).Key("container.0.liveness_probe.#").HasValue("1"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.failure_threshold").HasValue("1"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.http_get.#").HasValue("1"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.http_get.0.path").HasValue("/"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.http_get.0.port").HasValue("443"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.http_get.0.scheme").HasValue("http"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.initial_delay_seconds").HasValue("1"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.period_seconds").HasValue("1"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.success_threshold").HasValue("1"), - check.That(data.ResourceName).Key("container.0.liveness_probe.0.timeout_seconds").HasValue("1"), - ), - }, - data.ImportStep( - "container.0.volume.0.storage_account_key", - "container.0.secure_environment_variables.%", - "container.0.secure_environment_variables.secureFoo", - "container.0.secure_environment_variables.secureFoo1", - "diagnostics.0.log_analytics.0.workspace_key", - ), - }) -} - func TestAccContainerGroup_virtualNetwork(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_container_group", "test") r := ContainerGroupResource{} @@ -1048,6 +969,7 @@ resource "azurerm_container_group" "test" { } `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomInteger) } + func (ContainerGroupResource) UserAssignedIdentityWithVirtualNetwork(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/containers/container_registry_agent_pool_resource.go b/internal/services/containers/container_registry_agent_pool_resource.go index b0c0533aa12e..2b6e6a140634 100644 --- a/internal/services/containers/container_registry_agent_pool_resource.go +++ b/internal/services/containers/container_registry_agent_pool_resource.go @@ -133,7 +133,6 @@ func resourceContainerRegistryAgentPoolCreate(d *pluginsdk.ResourceData, meta in if err := client.CreateThenPoll(ctx, id, parameters); err != nil { return fmt.Errorf("creating %s: %+v", id, err) - } d.SetId(id.ID()) diff --git a/internal/services/containers/container_registry_agent_pool_resource_test.go b/internal/services/containers/container_registry_agent_pool_resource_test.go index 0bc33423f8ba..a7f5ae9ce631 100644 --- a/internal/services/containers/container_registry_agent_pool_resource_test.go +++ b/internal/services/containers/container_registry_agent_pool_resource_test.go @@ -16,8 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/utils" ) -type ContainerRegistryAgentPoolResource struct { -} +type ContainerRegistryAgentPoolResource struct{} func TestAccContainerRegistryAgentPool_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_container_registry_agent_pool", "test") diff --git a/internal/services/containers/container_registry_cache_rule_data_source.go b/internal/services/containers/container_registry_cache_rule_data_source.go index b1073a84e80e..e91ddd8beba1 100644 --- a/internal/services/containers/container_registry_cache_rule_data_source.go +++ b/internal/services/containers/container_registry_cache_rule_data_source.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/containers/container_registry_cache_rule_resource.go b/internal/services/containers/container_registry_cache_rule_resource.go index 5a46337ace66..e505397ca1b5 100644 --- a/internal/services/containers/container_registry_cache_rule_resource.go +++ b/internal/services/containers/container_registry_cache_rule_resource.go @@ -11,9 +11,9 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules" "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" diff --git a/internal/services/containers/container_registry_data_source.go b/internal/services/containers/container_registry_data_source.go index 56d1f25074f9..10c8937987a6 100644 --- a/internal/services/containers/container_registry_data_source.go +++ b/internal/services/containers/container_registry_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -31,7 +31,7 @@ func dataSourceContainerRegistry() *pluginsdk.Resource { } func dataSourceContainerRegistryRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Registries + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Registries subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() diff --git a/internal/services/containers/container_registry_resource.go b/internal/services/containers/container_registry_resource.go index 1623d7f838a2..59aa921dbd02 100644 --- a/internal/services/containers/container_registry_resource.go +++ b/internal/services/containers/container_registry_resource.go @@ -18,21 +18,19 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/migration" containerValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) func resourceContainerRegistry() *pluginsdk.Resource { @@ -89,28 +87,14 @@ func resourceContainerRegistry() *pluginsdk.Resource { return fmt.Errorf("ACR quarantine policy can only be applied when using the Premium Sku. If you are downgrading from a Premium SKU please unset quarantine_policy_enabled") } - if !features.FourPointOhBeta() { - retentionPolicyEnabled, ok := d.GetOk("retention_policy.0.enabled") - if ok && retentionPolicyEnabled.(bool) && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { - return fmt.Errorf("ACR retention policy can only be applied when using the Premium Sku. If you are downgrading from a Premium SKU please set retention_policy {}") - } - } else { - retentionPolicyEnabled, ok := d.GetOk("retention_policy_in_days") - if ok && retentionPolicyEnabled.(int) > 0 && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { - return fmt.Errorf("ACR retention policy can only be applied when using the Premium Sku. If you are downgrading from a Premium SKU please unset `retention_policy_in_days`") - } + retentionPolicyEnabled, ok := d.GetOk("retention_policy_in_days") + if ok && retentionPolicyEnabled.(int) > 0 && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { + return fmt.Errorf("ACR retention policy can only be applied when using the Premium Sku. If you are downgrading from a Premium SKU please unset `retention_policy_in_days`") } - if !features.FourPointOhBeta() { - trustPolicyEnabled, ok := d.GetOk("trust_policy.0.enabled") - if ok && trustPolicyEnabled.(bool) && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { - return fmt.Errorf("ACR trust policy can only be applied when using the Premium Sku. If you are downgrading from a Premium SKU please set trust_policy {}") - } - } else { - trustPolicyEnabled, ok := d.GetOk("trust_policy_enabled") - if ok && trustPolicyEnabled.(bool) && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { - return fmt.Errorf("ACR trust policy can only be applied when using the Premium Sku. If you are downgrading from a Premium SKU please unset `trust_policy_enabled` or set `trust_policy_enabled = false`") - } + trustPolicyEnabled, ok := d.GetOk("trust_policy_enabled") + if ok && trustPolicyEnabled.(bool) && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { + return fmt.Errorf("ACR trust policy can only be applied when using the Premium Sku. If you are downgrading from a Premium SKU please unset `trust_policy_enabled` or set `trust_policy_enabled = false`") } exportPolicyEnabled := d.Get("export_policy_enabled").(bool) @@ -123,16 +107,9 @@ func resourceContainerRegistry() *pluginsdk.Resource { } } - if !features.FourPointOhBeta() { - encryptionEnabled, ok := d.GetOk("encryption.0.enabled") - if ok && encryptionEnabled.(bool) && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { - return fmt.Errorf("ACR encryption can only be applied when using the Premium Sku.") - } - } else { - encryptionEnabled, ok := d.GetOk("encryption") - if ok && len(encryptionEnabled.([]interface{})) > 0 && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { - return fmt.Errorf("ACR encryption can only be applied when using the Premium Sku.") - } + encryptionEnabled, ok := d.GetOk("encryption") + if ok && len(encryptionEnabled.([]interface{})) > 0 && !strings.EqualFold(sku, string(registries.SkuNamePremium)) { + return fmt.Errorf("ACR encryption can only be applied when using the Premium Sku.") } // zone redundancy is only available for Premium Sku. @@ -164,8 +141,8 @@ func resourceContainerRegistry() *pluginsdk.Resource { } func resourceContainerRegistryCreate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Registries - operationClient := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Operation + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Registries + operationClient := meta.(*clients.Client).Containers.ContainerRegistryClient.Operation subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -231,22 +208,14 @@ func resourceContainerRegistryCreate(d *pluginsdk.ResourceData, meta interface{} } retentionPolicy := ®istries.RetentionPolicy{} - if !features.FourPointOhBeta() { - retentionPolicy = expandRetentionPolicy(d.Get("retention_policy").([]interface{})) - } else { - if v, ok := d.GetOk("retention_policy_in_days"); ok && v.(int) > 0 { - retentionPolicy.Days = pointer.To(int64(v.(int))) - retentionPolicy.Status = pointer.To(registries.PolicyStatusEnabled) - } + if v, ok := d.GetOk("retention_policy_in_days"); ok && v.(int) > 0 { + retentionPolicy.Days = pointer.To(int64(v.(int))) + retentionPolicy.Status = pointer.To(registries.PolicyStatusEnabled) } trustPolicy := ®istries.TrustPolicy{} - if !features.FourPointOhBeta() { - trustPolicy = expandTrustPolicy(d.Get("trust_policy").([]interface{})) - } else { - if v, ok := d.GetOk("trust_policy_enabled"); ok && v.(bool) { - trustPolicy.Status = pointer.To(registries.PolicyStatusEnabled) - } + if v, ok := d.GetOk("trust_policy_enabled"); ok && v.(bool) { + trustPolicy.Status = pointer.To(registries.PolicyStatusEnabled) } parameters := registries.Registry{ @@ -297,7 +266,7 @@ func resourceContainerRegistryCreate(d *pluginsdk.ResourceData, meta interface{} } func resourceContainerRegistryUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Registries + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Registries ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -363,49 +332,34 @@ func resourceContainerRegistryUpdate(d *pluginsdk.ResourceData, meta interface{} "quarantine_policy_enabled", "export_policy_enabled", } - if !features.FourPointOhBeta() { - policyKeys = append(policyKeys, []string{"retention_policy", "trust_policy"}...) - } else { - policyKeys = append(policyKeys, []string{"retention_policy_in_days", "trust_policy_enabled"}...) - } + + policyKeys = append(policyKeys, []string{"retention_policy_in_days", "trust_policy_enabled"}...) if d.HasChanges(policyKeys...) { payload.Properties.Policies = ®istries.Policies{} } - if !features.FourPointOhBeta() { - if d.HasChange("retention_policy") { - retentionPolicy := expandRetentionPolicy(d.Get("retention_policy").([]interface{})) - payload.Properties.Policies.RetentionPolicy = retentionPolicy + if d.HasChange("retention_policy_in_days") { + payload.Properties.Policies.RetentionPolicy = ®istries.RetentionPolicy{ + Status: pointer.To(registries.PolicyStatusDisabled), } - if d.HasChange("trust_policy") { - trustPolicy := expandTrustPolicy(d.Get("trust_policy").([]interface{})) - payload.Properties.Policies.TrustPolicy = trustPolicy - } - } else { - if d.HasChange("retention_policy_in_days") { + if v := d.Get("retention_policy_in_days").(int); v != 0 { payload.Properties.Policies.RetentionPolicy = ®istries.RetentionPolicy{ - Status: pointer.To(registries.PolicyStatusDisabled), + Status: pointer.To(registries.PolicyStatusEnabled), + Days: pointer.To(int64(v)), } + } + } - if v := d.Get("retention_policy_in_days").(int); v != 0 { - payload.Properties.Policies.RetentionPolicy = ®istries.RetentionPolicy{ - Status: pointer.To(registries.PolicyStatusEnabled), - Days: pointer.To(int64(v)), - } - } + if d.HasChange("trust_policy_enabled") { + payload.Properties.Policies.TrustPolicy = ®istries.TrustPolicy{ + Status: pointer.To(registries.PolicyStatusDisabled), } - if d.HasChange("trust_policy_enabled") { + if v := d.Get("trust_policy_enabled").(bool); v { payload.Properties.Policies.TrustPolicy = ®istries.TrustPolicy{ - Status: pointer.To(registries.PolicyStatusDisabled), - } - - if v := d.Get("trust_policy_enabled").(bool); v { - payload.Properties.Policies.TrustPolicy = ®istries.TrustPolicy{ - Status: pointer.To(registries.PolicyStatusEnabled), - } + Status: pointer.To(registries.PolicyStatusEnabled), } } } @@ -487,7 +441,7 @@ func resourceContainerRegistryUpdate(d *pluginsdk.ResourceData, meta interface{} } func applyContainerRegistrySku(d *pluginsdk.ResourceData, meta interface{}, sku string, id registries.RegistryId) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Registries + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Registries ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -506,7 +460,7 @@ func applyContainerRegistrySku(d *pluginsdk.ResourceData, meta interface{}, sku } func applyGeoReplicationLocations(ctx context.Context, meta interface{}, registryId registries.RegistryId, oldGeoReplications []replications.Replication, newGeoReplications []replications.Replication) error { - replicationClient := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Replications + replicationClient := meta.(*clients.Client).Containers.ContainerRegistryClient.Replications log.Printf("[INFO] preparing to apply geo-replications for Container Registry.") oldReplications := map[string]replications.Replication{} @@ -635,8 +589,8 @@ func applyGeoReplicationLocations(ctx context.Context, meta interface{}, registr } func resourceContainerRegistryRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Registries - replicationClient := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Replications + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Registries + replicationClient := meta.(*clients.Client).Containers.ContainerRegistryClient.Replications ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -695,31 +649,18 @@ func resourceContainerRegistryRead(d *pluginsdk.ResourceData, meta interface{}) d.Set("network_rule_bypass_option", string(pointer.From(props.NetworkRuleBypassOptions))) if policies := props.Policies; policies != nil { - if features.FourPointOhBeta() { - var retentionInDays int64 - if policies.RetentionPolicy != nil && policies.RetentionPolicy.Status != nil && *policies.RetentionPolicy.Status == registries.PolicyStatusEnabled { - retentionInDays = pointer.From(policies.RetentionPolicy.Days) - } - d.Set("retention_policy_in_days", retentionInDays) - - if policies.TrustPolicy != nil && policies.TrustPolicy.Status != nil { - policyEnabled := *policies.TrustPolicy.Status == registries.PolicyStatusEnabled - d.Set("trust_policy_enabled", policyEnabled) - } + var retentionInDays int64 + if policies.RetentionPolicy != nil && policies.RetentionPolicy.Status != nil && *policies.RetentionPolicy.Status == registries.PolicyStatusEnabled { + retentionInDays = pointer.From(policies.RetentionPolicy.Days) } + d.Set("retention_policy_in_days", retentionInDays) + if policies.TrustPolicy != nil && policies.TrustPolicy.Status != nil { + policyEnabled := *policies.TrustPolicy.Status == registries.PolicyStatusEnabled + d.Set("trust_policy_enabled", policyEnabled) + } d.Set("quarantine_policy_enabled", flattenQuarantinePolicy(props.Policies)) d.Set("export_policy_enabled", flattenExportPolicy(props.Policies)) - - } - - if !features.FourPointOhBeta() { - if err := d.Set("retention_policy", flattenRetentionPolicy(props.Policies)); err != nil { - return fmt.Errorf("setting `retention_policy`: %+v", err) - } - if err := d.Set("trust_policy", flattenTrustPolicy(props.Policies)); err != nil { - return fmt.Errorf("setting `trust_policy`: %+v", err) - } } if *props.AdminUserEnabled { @@ -781,7 +722,7 @@ func resourceContainerRegistryRead(d *pluginsdk.ResourceData, meta interface{}) } func resourceContainerRegistryDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Registries + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Registries ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() @@ -833,41 +774,6 @@ func expandQuarantinePolicy(enabled bool) *registries.QuarantinePolicy { return &quarantinePolicy } -func expandRetentionPolicy(p []interface{}) *registries.RetentionPolicy { - retentionPolicy := registries.RetentionPolicy{ - Status: pointer.To(registries.PolicyStatusDisabled), - } - - if len(p) > 0 { - v := p[0].(map[string]interface{}) - days := int32(v["days"].(int)) - enabled := v["enabled"].(bool) - if enabled { - retentionPolicy.Status = pointer.To(registries.PolicyStatusEnabled) - } - retentionPolicy.Days = utils.Int64(int64(days)) - } - - return &retentionPolicy -} - -func expandTrustPolicy(p []interface{}) *registries.TrustPolicy { - trustPolicy := registries.TrustPolicy{ - Status: pointer.To(registries.PolicyStatusDisabled), - } - - if len(p) > 0 { - v := p[0].(map[string]interface{}) - enabled := v["enabled"].(bool) - if enabled { - trustPolicy.Status = pointer.To(registries.PolicyStatusEnabled) - } - trustPolicy.Type = pointer.To(registries.TrustPolicyTypeNotary) - } - - return &trustPolicy -} - func expandExportPolicy(enabled bool) *registries.ExportPolicy { exportPolicy := registries.ExportPolicy{ Status: pointer.To(registries.ExportPolicyStatusDisabled), @@ -907,26 +813,6 @@ func expandReplications(p []interface{}) []replications.Replication { } func expandEncryption(input []interface{}) *registries.EncryptionProperty { - if !features.FourPointOhBeta() { - encryptionProperty := registries.EncryptionProperty{ - Status: pointer.To(registries.EncryptionStatusDisabled), - } - if len(input) > 0 { - v := input[0].(map[string]interface{}) - enabled := v["enabled"].(bool) - if enabled { - encryptionProperty.Status = pointer.To(registries.EncryptionStatusEnabled) - keyId := v["key_vault_key_id"].(string) - identityClientId := v["identity_client_id"].(string) - encryptionProperty.KeyVaultProperties = ®istries.KeyVaultProperties{ - KeyIdentifier: &keyId, - Identity: &identityClientId, - } - } - } - return &encryptionProperty - } - if len(input) == 0 { return nil } @@ -941,19 +827,6 @@ func expandEncryption(input []interface{}) *registries.EncryptionProperty { } func flattenEncryption(input *registries.EncryptionProperty) []interface{} { - if !features.FourPointOhBeta() { - if input == nil { - return nil - } - encryption := make(map[string]interface{}) - encryption["enabled"] = strings.EqualFold(string(*input.Status), string(registries.EncryptionStatusEnabled)) - if input.KeyVaultProperties != nil { - encryption["key_vault_key_id"] = input.KeyVaultProperties.KeyIdentifier - encryption["identity_client_id"] = input.KeyVaultProperties.Identity - } - return []interface{}{encryption} - } - if input == nil || input.KeyVaultProperties == nil || input.Status == nil || *input.Status == registries.EncryptionStatusDisabled { return []interface{}{} } @@ -1002,31 +875,6 @@ func flattenQuarantinePolicy(p *registries.Policies) bool { return *p.QuarantinePolicy.Status == registries.PolicyStatusEnabled } -func flattenRetentionPolicy(p *registries.Policies) []interface{} { - if p == nil || p.RetentionPolicy == nil { - return []interface{}{} - } - - r := *p.RetentionPolicy - retentionPolicy := make(map[string]interface{}) - retentionPolicy["days"] = r.Days - enabled := strings.EqualFold(string(*r.Status), string(registries.PolicyStatusEnabled)) - retentionPolicy["enabled"] = pointer.To(enabled) - return []interface{}{retentionPolicy} -} - -func flattenTrustPolicy(p *registries.Policies) []interface{} { - if p == nil || p.TrustPolicy == nil { - return nil - } - - t := *p.TrustPolicy - trustPolicy := make(map[string]interface{}) - enabled := strings.EqualFold(string(*t.Status), string(registries.PolicyStatusEnabled)) - trustPolicy["enabled"] = pointer.To(enabled) - return []interface{}{trustPolicy} -} - func flattenExportPolicy(p *registries.Policies) bool { if p.ExportPolicy == nil { return false @@ -1036,7 +884,7 @@ func flattenExportPolicy(p *registries.Policies) bool { } func resourceContainerRegistrySchema() map[string]*pluginsdk.Schema { - schema := map[string]*pluginsdk.Schema{ + return map[string]*pluginsdk.Schema{ "name": { Type: pluginsdk.TypeString, Required: true, @@ -1233,120 +1081,4 @@ func resourceContainerRegistrySchema() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } - - if !features.FourPointOhBeta() { - schema["encryption"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - ConfigMode: pluginsdk.SchemaConfigModeAttr, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "enabled": { - Deprecated: "The property `enabled` is deprecated and will be removed in v4.0 of the AzureRM provider.", - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - "identity_client_id": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.IsUUID, - }, - "key_vault_key_id": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: keyVaultValidate.NestedItemIdWithOptionalVersion, - }, - }, - }, - } - schema["retention_policy"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - MaxItems: 1, - Optional: true, - Computed: true, - ConfigMode: pluginsdk.SchemaConfigModeAttr, - Deprecated: features.DeprecatedInFourPointOh("The block `retention_policy` will be removed and replaced by the property `retention_policy_in_days` in v4.0 of the AzureRM provider"), - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "days": { - Type: pluginsdk.TypeInt, - Optional: true, - Default: 7, - }, - "enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - }, - }, - } - schema["trust_policy"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - MaxItems: 1, - Optional: true, - Computed: true, - ConfigMode: pluginsdk.SchemaConfigModeAttr, - Deprecated: features.DeprecatedInFourPointOh("The block `trust_policy` will be removed and replaced by the property `trust_policy_enabled` in v4.0 of the AzureRM provider"), - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - }, - }, - } - schema["network_rule_set"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - ConfigMode: pluginsdk.SchemaConfigModeAttr, // make sure we can set this to an empty array for Premium -> Basic - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "default_action": { - Type: pluginsdk.TypeString, - Optional: true, - Default: registries.DefaultActionAllow, - ValidateFunc: validation.StringInSlice([]string{ - string(registries.DefaultActionAllow), - string(registries.DefaultActionDeny), - }, false), - }, - - "ip_rule": { - Type: pluginsdk.TypeSet, - Optional: true, - ConfigMode: pluginsdk.SchemaConfigModeAttr, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "action": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice([]string{ - string(registries.ActionAllow), - }, false), - }, - "ip_range": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validate.CIDR, - }, - }, - }, - }, - }, - }, - } - // removing these until 4.0 since we can only support a hard deprecation here - delete(schema, "retention_policy_in_days") - delete(schema, "trust_policy_enabled") - } - - return schema } diff --git a/internal/services/containers/container_registry_resource_test.go b/internal/services/containers/container_registry_resource_test.go index 42feb028b291..9312c82aa974 100644 --- a/internal/services/containers/container_registry_resource_test.go +++ b/internal/services/containers/container_registry_resource_test.go @@ -10,11 +10,10 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -257,38 +256,6 @@ func TestAccContainerRegistry_networkAccessProfileUpdate(t *testing.T) { }) } -func TestAccContainerRegistry_policies(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping in 4.0 since policy updates are tested in the update test using the new properties") - } - data := acceptance.BuildTestData(t, "azurerm_container_registry", "test") - r := ContainerRegistryResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.policies(data, 10), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.policies(data, 20), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.policies_downgradeUpdate(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccContainerRegistry_zoneRedundancy(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_container_registry", "test") r := ContainerRegistryResource{} @@ -442,7 +409,7 @@ func (t ContainerRegistryResource) Exists(ctx context.Context, clients *clients. return nil, err } - resp, err := clients.Containers.ContainerRegistryClient_v2023_06_01_preview.Registries.Get(ctx, *id) + resp, err := clients.Containers.ContainerRegistryClient.Registries.Get(ctx, *id) if err != nil { return nil, fmt.Errorf("retrieving %s: %+v", id, err) } @@ -451,29 +418,6 @@ func (t ContainerRegistryResource) Exists(ctx context.Context, clients *clients. } func (ContainerRegistryResource) basic(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-acr-%d" - location = "%s" -} - -resource "azurerm_container_registry" "test" { - name = "testacccr%d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - sku = "Basic" - - # make sure network_rule_set is empty for basic SKU - # premium SKU will automatically populate network_rule_set.default_action to allow - network_rule_set = [] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -511,7 +455,6 @@ resource "azurerm_container_registry" "test" { sku = "%s" } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, sku) - } func (r ContainerRegistryResource) requiresImport(data acceptance.TestData, sku string) string { @@ -528,48 +471,6 @@ resource "azurerm_container_registry" "import" { } func (ContainerRegistryResource) complete(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-acr-%[2]d" - location = "%[1]s" -} - -resource "azurerm_container_registry" "test" { - name = "testacccr%[2]d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - admin_enabled = true - sku = "Premium" - identity { - type = "SystemAssigned" - } - - public_network_access_enabled = false - quarantine_policy_enabled = true - retention_policy { - enabled = true - days = 10 - } - trust_policy { - enabled = true - } - export_policy_enabled = false - anonymous_pull_enabled = true - data_endpoint_enabled = true - - network_rule_bypass_option = "None" - - tags = { - environment = "production" - } -} -`, data.Locations.Primary, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -608,61 +509,6 @@ resource "azurerm_container_registry" "test" { } func (ContainerRegistryResource) completeUpdated(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-acr-%[2]d" - location = "%[1]s" -} - -resource "azurerm_user_assigned_identity" "test" { - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - - name = "testaccuai%[2]d" -} - -resource "azurerm_container_registry" "test" { - name = "testacccr%[2]d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - admin_enabled = true - sku = "Premium" - - identity { - type = "UserAssigned" - identity_ids = [ - azurerm_user_assigned_identity.test.id - ] - } - - public_network_access_enabled = true - quarantine_policy_enabled = false - retention_policy { - enabled = true - days = 15 - } - trust_policy { - enabled = false - } - export_policy_enabled = true - anonymous_pull_enabled = false - data_endpoint_enabled = false - - network_rule_bypass_option = "AzureServices" - - tags = { - environment = "production" - oompa = "loompa" - } -} -`, data.Locations.Primary, data.RandomInteger) - } - return fmt.Sprintf(` provider "azurerm" { features {} @@ -713,35 +559,6 @@ resource "azurerm_container_registry" "test" { } func (ContainerRegistryResource) downgradeSku(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-acr-%[2]d" - location = "%[1]s" -} - -resource "azurerm_container_registry" "test" { - name = "testacccr%[2]d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - admin_enabled = true - sku = "Basic" - - identity { - type = "SystemAssigned" - } - - retention_policy {} - trust_policy {} - - network_rule_set = [] -} -`, data.Locations.Primary, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -951,74 +768,6 @@ resource "azurerm_container_registry" "test" { `, data.RandomInteger, data.Locations.Primary, sku) } -func (ContainerRegistryResource) policies(data acceptance.TestData, days int) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-acr-%d" - location = "%s" -} - -resource "azurerm_container_registry" "test" { - name = "acctestACR%d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - admin_enabled = false - sku = "Premium" - - quarantine_policy_enabled = true - - retention_policy { - days = %d - enabled = true - } - - trust_policy { - enabled = true - } - - export_policy_enabled = false - public_network_access_enabled = false - - tags = { - Environment = "Production" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, days) -} - -func (ContainerRegistryResource) policies_downgradeUpdate(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-acr-%d" - location = "%s" -} - -resource "azurerm_container_registry" "test" { - name = "acctestACR%d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - admin_enabled = false - sku = "Basic" - network_rule_set = [] - - retention_policy {} - trust_policy {} - - tags = { - Environment = "Production" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - func (ContainerRegistryResource) zoneRedundancy(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -1148,40 +897,6 @@ resource "azurerm_container_registry" "test" { func (ContainerRegistryResource) encryptionEnabled(data acceptance.TestData) string { template := ContainerRegistryResource{}.encryptionTemplate(data) - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -%s - -resource "azurerm_key_vault_key" "test" { - name = "acctestkvkey%[3]s" - key_vault_id = azurerm_key_vault.test.id - key_type = "RSA" - key_size = 2048 - key_opts = ["decrypt", "encrypt", "sign", "unwrapKey", "verify", "wrapKey"] -} - -resource "azurerm_container_registry" "test" { - name = "testacccr%[2]d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - sku = "Premium" - - identity { - type = "UserAssigned" - identity_ids = [ - azurerm_user_assigned_identity.test.id - ] - } - - encryption { - enabled = true - identity_client_id = azurerm_user_assigned_identity.test.client_id - key_vault_key_id = azurerm_key_vault_key.test.id - } -} -`, template, data.RandomInteger, data.RandomString) - } - return fmt.Sprintf(` %s diff --git a/internal/services/containers/container_registry_scope_map_data_source.go b/internal/services/containers/container_registry_scope_map_data_source.go index 02d5d1e9762c..619819f8128b 100644 --- a/internal/services/containers/container_registry_scope_map_data_source.go +++ b/internal/services/containers/container_registry_scope_map_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -52,7 +52,7 @@ func dataSourceContainerRegistryScopeMap() *pluginsdk.Resource { } func dataSourceContainerRegistryScopeMapRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.ScopeMaps + client := meta.(*clients.Client).Containers.ContainerRegistryClient.ScopeMaps subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() diff --git a/internal/services/containers/container_registry_scope_map_resource.go b/internal/services/containers/container_registry_scope_map_resource.go index 8358f94ff0e0..fee52dcd5cb6 100644 --- a/internal/services/containers/container_registry_scope_map_resource.go +++ b/internal/services/containers/container_registry_scope_map_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" @@ -77,7 +77,7 @@ func resourceContainerRegistryScopeMap() *pluginsdk.Resource { } func resourceContainerRegistryScopeMapCreate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.ScopeMaps + client := meta.(*clients.Client).Containers.ContainerRegistryClient.ScopeMaps subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -114,7 +114,7 @@ func resourceContainerRegistryScopeMapCreate(d *pluginsdk.ResourceData, meta int } func resourceContainerRegistryScopeMapUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.ScopeMaps + client := meta.(*clients.Client).Containers.ContainerRegistryClient.ScopeMaps ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -141,7 +141,7 @@ func resourceContainerRegistryScopeMapUpdate(d *pluginsdk.ResourceData, meta int } func resourceContainerRegistryScopeMapRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.ScopeMaps + client := meta.(*clients.Client).Containers.ContainerRegistryClient.ScopeMaps ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -179,7 +179,7 @@ func resourceContainerRegistryScopeMapRead(d *pluginsdk.ResourceData, meta inter } func resourceContainerRegistryScopeMapDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.ScopeMaps + client := meta.(*clients.Client).Containers.ContainerRegistryClient.ScopeMaps ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() diff --git a/internal/services/containers/container_registry_scope_map_resource_test.go b/internal/services/containers/container_registry_scope_map_resource_test.go index e4ec405e1819..6947144f1d8e 100644 --- a/internal/services/containers/container_registry_scope_map_resource_test.go +++ b/internal/services/containers/container_registry_scope_map_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -103,7 +103,7 @@ func (ContainerRegistryScopeMapResource) Exists(ctx context.Context, clients *cl return nil, err } - resp, err := clients.Containers.ContainerRegistryClient_v2023_06_01_preview.ScopeMaps.Get(ctx, *id) + resp, err := clients.Containers.ContainerRegistryClient.ScopeMaps.Get(ctx, *id) if err != nil { return nil, fmt.Errorf("retrieving %s: %+v", *id, err) } diff --git a/internal/services/containers/container_registry_task_resource.go b/internal/services/containers/container_registry_task_resource.go index 280a60cca427..fc6474b75cac 100644 --- a/internal/services/containers/container_registry_task_resource.go +++ b/internal/services/containers/container_registry_task_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" @@ -663,7 +663,7 @@ func (r ContainerRegistryTaskResource) Create() sdk.ResourceFunc { Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Containers.ContainerRegistryClient_v2019_06_01_preview.Tasks - registryClient := metadata.Client.Containers.ContainerRegistryClient_v2023_06_01_preview.Registries + registryClient := metadata.Client.Containers.ContainerRegistryClient.Registries var model ContainerRegistryTaskModel if err := metadata.Decode(&model); err != nil { @@ -861,7 +861,6 @@ func (r ContainerRegistryTaskResource) Delete() sdk.ResourceFunc { } if err := client.DeleteThenPoll(ctx, *id); err != nil { - return fmt.Errorf("deleting %s: %+v", id, err) } diff --git a/internal/services/containers/container_registry_token_data_source.go b/internal/services/containers/container_registry_token_data_source.go index 168ad745b9cf..2eb4c5ee90c1 100644 --- a/internal/services/containers/container_registry_token_data_source.go +++ b/internal/services/containers/container_registry_token_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -53,7 +53,7 @@ func dataSourceContainerRegistryToken() *pluginsdk.Resource { } func dataSourceContainerRegistryTokenRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Tokens + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Tokens subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() diff --git a/internal/services/containers/container_registry_token_password_resource.go b/internal/services/containers/container_registry_token_password_resource.go index d0469b9ef25f..8910bb29d1a3 100644 --- a/internal/services/containers/container_registry_token_password_resource.go +++ b/internal/services/containers/container_registry_token_password_resource.go @@ -11,9 +11,10 @@ import ( "github.com/Azure/go-autorest/autorest/date" "github.com/hashicorp/go-azure-helpers/lang/pointer" - containterregistry_v2021_08_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens" + "github.com/hashicorp/go-azure-helpers/lang/response" + containterregistry_v2021_08_01_preview "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/client" @@ -119,7 +120,7 @@ func (r ContainerRegistryTokenPasswordResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Containers.ContainerRegistryClient_v2023_06_01_preview + client := metadata.Client.Containers.ContainerRegistryClient var plan ContainerRegistryTokenPasswordModel if err := metadata.Decode(&plan); err != nil { return fmt.Errorf("decoding %+v", err) @@ -132,7 +133,7 @@ func (r ContainerRegistryTokenPasswordResource) Create() sdk.ResourceFunc { id := parse.NewContainerRegistryTokenPasswordID(tokenId.SubscriptionId, tokenId.ResourceGroupName, tokenId.RegistryName, tokenId.TokenName, "password") - pwds, err := r.readPassword(ctx, client, *tokenId) + pwds, _, err := r.readPassword(ctx, client, *tokenId) if err != nil { return err } @@ -173,7 +174,7 @@ func (r ContainerRegistryTokenPasswordResource) Read() sdk.ResourceFunc { Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Containers.ContainerRegistryClient_v2023_06_01_preview + client := metadata.Client.Containers.ContainerRegistryClient id, err := parse.ContainerRegistryTokenPasswordID(metadata.ResourceData.Id()) if err != nil { return err @@ -181,7 +182,10 @@ func (r ContainerRegistryTokenPasswordResource) Read() sdk.ResourceFunc { tokenId := tokens.NewTokenID(id.SubscriptionId, id.ResourceGroup, id.RegistryName, id.TokenName) - pwds, err := r.readPassword(ctx, client, tokenId) + pwds, notFound, err := r.readPassword(ctx, client, tokenId) + if notFound || (pwds != nil && len(pwds) == 0) { + return metadata.MarkAsGone(id) + } if err != nil { return err } @@ -232,7 +236,7 @@ func (r ContainerRegistryTokenPasswordResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Containers.ContainerRegistryClient_v2023_06_01_preview.Tokens + client := metadata.Client.Containers.ContainerRegistryClient.Tokens id, err := parse.ContainerRegistryTokenPasswordID(metadata.ResourceData.Id()) if err != nil { @@ -369,35 +373,35 @@ func (r ContainerRegistryTokenPasswordResource) flattenContainerRegistryTokenPas return } -func (r ContainerRegistryTokenPasswordResource) readPassword(ctx context.Context, client *containterregistry_v2021_08_01_preview.Client, id tokens.TokenId) ([]tokens.TokenPassword, error) { +func (r ContainerRegistryTokenPasswordResource) readPassword(ctx context.Context, client *containterregistry_v2021_08_01_preview.Client, id tokens.TokenId) ([]tokens.TokenPassword, bool, error) { existing, err := client.Tokens.Get(ctx, id) if err != nil { - return nil, fmt.Errorf("retrieving %s: %+v", id, err) + return nil, response.WasNotFound(existing.HttpResponse), fmt.Errorf("retrieving %s: %+v", id, err) } if existing.Model == nil { - return nil, fmt.Errorf("checking for presence of existing %s: model is nil", id) + return nil, false, fmt.Errorf("checking for presence of existing %s: model is nil", id) } if existing.Model.Properties == nil { - return nil, fmt.Errorf("checking for presence of existing %s: properties is nil", id) + return nil, false, fmt.Errorf("checking for presence of existing %s: properties is nil", id) } if existing.Model.Properties.Credentials == nil { - return nil, fmt.Errorf("checking for presence of existing %s: credentials is nil", id) + return nil, false, fmt.Errorf("checking for presence of existing %s: credentials is nil", id) } passwords := existing.Model.Properties.Credentials.Passwords if passwords == nil { - return nil, fmt.Errorf("checking for presence of existing %s: passwords is nil", id) + return nil, false, fmt.Errorf("checking for presence of existing %s: passwords is nil", id) } - return *passwords, nil + return *passwords, false, nil } func (r ContainerRegistryTokenPasswordResource) generatePassword(ctx context.Context, clients client.Client, id tokens.TokenId, passwords []tokens.TokenPassword) ([]tokens.TokenPassword, error) { var genPasswords []tokens.TokenPassword - existingPasswords, err := r.readPassword(ctx, clients.ContainerRegistryClient_v2023_06_01_preview, id) + existingPasswords, _, err := r.readPassword(ctx, clients.ContainerRegistryClient, id) if err != nil { return nil, fmt.Errorf("reading existing passwords: %+v", err) } @@ -414,7 +418,7 @@ func (r ContainerRegistryTokenPasswordResource) generatePassword(ctx context.Con }, }, } - if err := clients.ContainerRegistryClient_v2023_06_01_preview.Tokens.UpdateThenPoll(ctx, id, param); err != nil { + if err := clients.ContainerRegistryClient.Tokens.UpdateThenPoll(ctx, id, param); err != nil { return nil, fmt.Errorf("deleting %s: %+v", id, err) } } @@ -454,7 +458,7 @@ PasswordGenLoop: registryId := registries.NewRegistryID(id.SubscriptionId, id.ResourceGroupName, id.RegistryName) - result, err := clients.ContainerRegistryClient_v2023_06_01_preview.Registries.GenerateCredentials(ctx, registryId, param) + result, err := clients.ContainerRegistryClient.Registries.GenerateCredentials(ctx, registryId, param) if err != nil { return nil, fmt.Errorf("generating password credential %s: %v", string(*password.Name), err) } diff --git a/internal/services/containers/container_registry_token_password_resource_test.go b/internal/services/containers/container_registry_token_password_resource_test.go index ada6356815b5..1f4be542d6a8 100644 --- a/internal/services/containers/container_registry_token_password_resource_test.go +++ b/internal/services/containers/container_registry_token_password_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -53,10 +53,11 @@ func TestAccContainerRegistryTokenPassword_complete(t *testing.T) { } func TestAccContainerRegistryTokenPassword_update(t *testing.T) { + t.Skip("Enable this test after removing the `ForceNew` on the `passwordx.expiry`") data := acceptance.BuildTestData(t, "azurerm_container_registry_token_password", "test") r := ContainerRegistryTokenPasswordResource{Expiry: time.Now().Add(time.Hour)} - data.ResourceTest(t, r, []acceptance.TestStep{ + data.ResourceTestIgnoreRecreate(t, r, []acceptance.TestStep{ { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( @@ -83,10 +84,11 @@ func TestAccContainerRegistryTokenPassword_update(t *testing.T) { // Regression test for https://github.com/hashicorp/terraform-provider-azurerm/issues/19138 func TestAccContainerRegistryTokenPassword_updateExpiryReflectNewValue(t *testing.T) { + t.Skip("Enable this test after removing the `ForceNew` on the `passwordx.expiry`") data := acceptance.BuildTestData(t, "azurerm_container_registry_token_password", "test") r := ContainerRegistryTokenPasswordResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ + data.ResourceTestIgnoreRecreate(t, r, []acceptance.TestStep{ { Config: r.expiryReflectValue(data, time.Now().Add(time.Hour).Format(time.RFC3339), "password1"), Check: acceptance.ComposeTestCheckFunc( @@ -104,6 +106,28 @@ func TestAccContainerRegistryTokenPassword_updateExpiryReflectNewValue(t *testin }) } +func TestAccContainerRegistryTokenPassword_replace(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_container_registry_token_password", "test") + r := ContainerRegistryTokenPasswordResource{Expiry: time.Now().Add(time.Hour)} + + data.ResourceTestIgnoreRecreate(t, r, []acceptance.TestStep{ + { + Config: r.basicWithACRName("acctest1", data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("password1.0.value"), + { + Config: r.basicWithACRName("acctest2", data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("password1.0.value"), + }) +} + func TestAccContainerRegistryTokenPassword_requiresImport(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_container_registry_token_password", "test") r := ContainerRegistryTokenPasswordResource{Expiry: time.Now().Add(time.Hour)} @@ -120,7 +144,7 @@ func TestAccContainerRegistryTokenPassword_requiresImport(t *testing.T) { } func (r ContainerRegistryTokenPasswordResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - client := clients.Containers.ContainerRegistryClient_v2023_06_01_preview.Tokens + client := clients.Containers.ContainerRegistryClient.Tokens id, err := parse.ContainerRegistryTokenPasswordID(state.ID) if err != nil { @@ -249,3 +273,50 @@ resource "azurerm_container_registry_token" "test" { } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) } + +func (r ContainerRegistryTokenPasswordResource) basicWithACRName(name string, data acceptance.TestData) string { + template := r.templateWithACRName(name, data) + return fmt.Sprintf(` +%s + +resource "azurerm_container_registry_token_password" "test" { + container_registry_token_id = azurerm_container_registry_token.test.id + password1 {} +} +`, template) +} + +func (r ContainerRegistryTokenPasswordResource) templateWithACRName(name string, data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-acr-%d" + location = "%s" +} + +resource "azurerm_container_registry" "test" { + name = "%s%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + sku = "Premium" + admin_enabled = true +} + +# use system wide scope map for tests +data "azurerm_container_registry_scope_map" "pull_repos" { + name = "_repositories_pull" + container_registry_name = azurerm_container_registry.test.name + resource_group_name = azurerm_container_registry.test.resource_group_name +} + +resource "azurerm_container_registry_token" "test" { + name = "testtoken-%d" + resource_group_name = azurerm_resource_group.test.name + container_registry_name = azurerm_container_registry.test.name + scope_map_id = data.azurerm_container_registry_scope_map.pull_repos.id +} +`, data.RandomInteger, data.Locations.Primary, name, data.RandomInteger, data.RandomInteger) +} diff --git a/internal/services/containers/container_registry_token_resource.go b/internal/services/containers/container_registry_token_resource.go index 7eb5c02069df..c0e79e6182f7 100644 --- a/internal/services/containers/container_registry_token_resource.go +++ b/internal/services/containers/container_registry_token_resource.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -73,7 +73,7 @@ func resourceContainerRegistryToken() *pluginsdk.Resource { } func resourceContainerRegistryTokenCreate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Tokens + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Tokens subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -121,7 +121,7 @@ func resourceContainerRegistryTokenCreate(d *pluginsdk.ResourceData, meta interf } func resourceContainerRegistryTokenUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Tokens + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Tokens ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -159,7 +159,7 @@ func resourceContainerRegistryTokenUpdate(d *pluginsdk.ResourceData, meta interf } func resourceContainerRegistryTokenRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Tokens + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Tokens ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -203,7 +203,7 @@ func resourceContainerRegistryTokenRead(d *pluginsdk.ResourceData, meta interfac } func resourceContainerRegistryTokenDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.Tokens + client := meta.(*clients.Client).Containers.ContainerRegistryClient.Tokens ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() diff --git a/internal/services/containers/container_registry_token_resource_test.go b/internal/services/containers/container_registry_token_resource_test.go index 9e8cbd72ce14..7f42314ca603 100644 --- a/internal/services/containers/container_registry_token_resource_test.go +++ b/internal/services/containers/container_registry_token_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -97,7 +97,7 @@ func (t ContainerRegistryTokenResource) Exists(ctx context.Context, clients *cli return nil, err } - resp, err := clients.Containers.ContainerRegistryClient_v2023_06_01_preview.Tokens.Get(ctx, *id) + resp, err := clients.Containers.ContainerRegistryClient.Tokens.Get(ctx, *id) if err != nil { return nil, fmt.Errorf("retrieving %s: %+v", *id, err) } diff --git a/internal/services/containers/container_registry_webhook_resource.go b/internal/services/containers/container_registry_webhook_resource.go index 769071f74ae9..7fe2052ead99 100644 --- a/internal/services/containers/container_registry_webhook_resource.go +++ b/internal/services/containers/container_registry_webhook_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/migration" @@ -118,7 +118,7 @@ func resourceContainerRegistryWebhook() *pluginsdk.Resource { } func resourceContainerRegistryWebhookCreate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.WebHooks + client := meta.(*clients.Client).Containers.ContainerRegistryClient.WebHooks subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -155,7 +155,7 @@ func resourceContainerRegistryWebhookCreate(d *pluginsdk.ResourceData, meta inte } func resourceContainerRegistryWebhookUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.WebHooks + client := meta.(*clients.Client).Containers.ContainerRegistryClient.WebHooks ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -179,7 +179,7 @@ func resourceContainerRegistryWebhookUpdate(d *pluginsdk.ResourceData, meta inte } func resourceContainerRegistryWebhookRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.WebHooks + client := meta.(*clients.Client).Containers.ContainerRegistryClient.WebHooks ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -253,7 +253,7 @@ func resourceContainerRegistryWebhookRead(d *pluginsdk.ResourceData, meta interf } func resourceContainerRegistryWebhookDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Containers.ContainerRegistryClient_v2023_06_01_preview.WebHooks + client := meta.(*clients.Client).Containers.ContainerRegistryClient.WebHooks ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() diff --git a/internal/services/containers/container_registry_webhook_resource_test.go b/internal/services/containers/container_registry_webhook_resource_test.go index 0dcfdd20959a..a897f9fc308b 100644 --- a/internal/services/containers/container_registry_webhook_resource_test.go +++ b/internal/services/containers/container_registry_webhook_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -629,7 +629,7 @@ func (t ContainerRegistryWebhookResource) Exists(ctx context.Context, clients *c return nil, err } - resp, err := clients.Containers.ContainerRegistryClient_v2023_06_01_preview.WebHooks.Get(ctx, *id) + resp, err := clients.Containers.ContainerRegistryClient.WebHooks.Get(ctx, *id) if err != nil { return nil, fmt.Errorf("retrieving %s: %+v", *id, err) } diff --git a/internal/services/containers/kubernetes_cluster_addons_resource_test.go b/internal/services/containers/kubernetes_cluster_addons_resource_test.go index 763b91004c93..e17b2db6932f 100644 --- a/internal/services/containers/kubernetes_cluster_addons_resource_test.go +++ b/internal/services/containers/kubernetes_cluster_addons_resource_test.go @@ -9,7 +9,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" ) var addOnAppGatewaySubnetCIDR string = "10.225.0.0/16" // AKS will use 10.224.0.0/12 for the aks subnet so use 10.225.0.0/16 for the app gateway subnet @@ -309,23 +308,19 @@ func TestAccKubernetesCluster_addonProfileServiceMeshProfile_certificateAuthorit } func TestAccKubernetesCluster_addonProfileServiceMeshProfile_revisions(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skip("Service Mesh Profile Revisions are only available in version 4.0.0 and later") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.addonProfileServiceMeshProfileRevisionsConfig(data, `["asm-1-20"]`), + Config: r.addonProfileServiceMeshProfileRevisionsConfig(data, `["asm-1-22"]`), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), }, data.ImportStep(), { - Config: r.addonProfileServiceMeshProfileRevisionsConfig(data, `["asm-1-20", "asm-1-21"]`), + Config: r.addonProfileServiceMeshProfileRevisionsConfig(data, `["asm-1-22", "asm-1-23"]`), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -1209,270 +1204,6 @@ resource "azurerm_kubernetes_cluster" "test" { } func (k KubernetesClusterResource) addonProfileServiceMeshProfileCertificateAuthorityConfig(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%[1]s" - location = "%[2]s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%[1]s" - address_space = ["10.1.0.0/16", "fd00:db8:deca::/48"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_subnet" "test" { - name = "acctestsubnet%[1]s" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.1.0.0/24", "fd00:db8:deca:deed::/64"] -} - -data "azurerm_client_config" "current" {} - -resource "azurerm_key_vault" "test" { - name = "acctestKV-%[1]s" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - tenant_id = data.azurerm_client_config.current.tenant_id - sku_name = "standard" -} - -resource "azurerm_key_vault_access_policy" "test" { - key_vault_id = azurerm_key_vault.test.id - tenant_id = data.azurerm_client_config.current.tenant_id - object_id = data.azurerm_client_config.current.object_id - certificate_permissions = [ - "Create", - "Delete", - "DeleteIssuers", - "Get", - "GetIssuers", - "Import", - "List", - "ListIssuers", - "ManageContacts", - "ManageIssuers", - "SetIssuers", - "Update", - "Purge", - ] - key_permissions = [ - "Create", - "Delete", - "Get", - "List", - "Purge", - "Recover", - "Update", - "GetRotationPolicy", - "SetRotationPolicy", - ] -} - -resource "azurerm_key_vault_certificate" "test_cert1" { - name = "acctestKVcert%[1]s-cert1" - key_vault_id = azurerm_key_vault.test.id - - certificate_policy { - issuer_parameters { - name = "Self" - } - key_properties { - exportable = true - key_size = 2048 - key_type = "RSA" - reuse_key = true - } - secret_properties { - content_type = "application/x-pkcs12" - } - x509_certificate_properties { - extended_key_usage = ["1.3.6.1.5.5.7.3.1"] - key_usage = [ - "cRLSign", - "dataEncipherment", - "digitalSignature", - "keyAgreement", - "keyCertSign", - "keyEncipherment", - ] - subject_alternative_names { - dns_names = ["api.pluginsdk.io"] - } - subject = "CN=api.pluginsdk.io" - validity_in_months = 1 - } - } - - depends_on = [azurerm_key_vault_access_policy.test] -} - -resource "azurerm_key_vault_certificate" "test_cert2" { - name = "acctestKVcert%[1]s-cert2" - key_vault_id = azurerm_key_vault.test.id - - certificate_policy { - issuer_parameters { - name = "Self" - } - key_properties { - exportable = true - key_size = 2048 - key_type = "RSA" - reuse_key = true - } - secret_properties { - content_type = "application/x-pkcs12" - } - x509_certificate_properties { - extended_key_usage = ["1.3.6.1.5.5.7.3.1"] - key_usage = [ - "cRLSign", - "dataEncipherment", - "digitalSignature", - "keyAgreement", - "keyCertSign", - "keyEncipherment", - ] - subject_alternative_names { - dns_names = ["api.pluginsdk.io"] - } - subject = "CN=api.pluginsdk.io" - validity_in_months = 1 - } - } - - depends_on = [azurerm_key_vault_access_policy.test] -} - -resource "azurerm_key_vault_certificate" "test_cert3" { - name = "acctestKVcert%[1]s-cert3" - key_vault_id = azurerm_key_vault.test.id - - certificate_policy { - issuer_parameters { - name = "Self" - } - key_properties { - exportable = true - key_size = 2048 - key_type = "RSA" - reuse_key = true - } - secret_properties { - content_type = "application/x-pkcs12" - } - x509_certificate_properties { - extended_key_usage = ["1.3.6.1.5.5.7.3.1"] - key_usage = [ - "cRLSign", - "dataEncipherment", - "digitalSignature", - "keyAgreement", - "keyCertSign", - "keyEncipherment", - ] - subject_alternative_names { - dns_names = ["api.pluginsdk.io"] - } - subject = "CN=api.pluginsdk.io" - validity_in_months = 1 - } - } - - depends_on = [azurerm_key_vault_access_policy.test] -} - -resource "azurerm_key_vault_key" "test" { - name = "testkeyvaultkey%[1]s" - key_vault_id = azurerm_key_vault.test.id - - key_type = "RSA" - key_size = 2048 - - key_opts = [ - "decrypt", - "encrypt", - "sign", - "unwrapKey", - "verify", - "wrapKey", - ] - - depends_on = [azurerm_key_vault_access_policy.test] -} - -resource "azurerm_user_assigned_identity" "test" { - name = "acctestUAI-%[1]s" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%[1]s" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%[1]s" - - linux_profile { - admin_username = "acctestuser%[1]s" - - ssh_key { - key_data = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld" - } - } - - default_node_pool { - name = "default" - node_count = 2 - vm_size = "Standard_DS2_v2" - vnet_subnet_id = azurerm_subnet.test.id - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "UserAssigned" - identity_ids = [ - azurerm_user_assigned_identity.test.id, - ] - } - - network_profile { - network_plugin = "kubenet" - dns_service_ip = "10.10.0.10" - service_cidr = "10.10.0.0/16" - } - - key_vault_secrets_provider { - secret_rotation_enabled = true - } - - service_mesh_profile { - mode = "Istio" - internal_ingress_gateway_enabled = true - external_ingress_gateway_enabled = true - certificate_authority { - key_vault_id = azurerm_key_vault.test.id - root_cert_object_name = azurerm_key_vault_certificate.test_cert1.name - cert_chain_object_name = azurerm_key_vault_certificate.test_cert2.name - cert_object_name = azurerm_key_vault_certificate.test_cert3.name - key_object_name = azurerm_key_vault_key.test.name - } - } - -} -`, data.RandomString, data.Locations.Primary) - } - return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/containers/kubernetes_cluster_auth_resource_test.go b/internal/services/containers/kubernetes_cluster_auth_resource_test.go index c434d3ac7684..9b7c129c8d49 100644 --- a/internal/services/containers/kubernetes_cluster_auth_resource_test.go +++ b/internal/services/containers/kubernetes_cluster_auth_resource_test.go @@ -864,6 +864,10 @@ variable "tenant_id" { default = "%s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" @@ -910,6 +914,10 @@ variable "tenant_id" { default = "%[1]s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%[3]d" location = "%[2]s" @@ -957,6 +965,10 @@ variable "tenant_id" { default = "%s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" @@ -1004,6 +1016,10 @@ variable "tenant_id" { default = "%s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" @@ -1097,6 +1113,10 @@ variable "tenant_id" { default = "%s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" diff --git a/internal/services/containers/kubernetes_cluster_data_source.go b/internal/services/containers/kubernetes_cluster_data_source.go index 3696cb2b8392..984c0fe28631 100644 --- a/internal/services/containers/kubernetes_cluster_data_source.go +++ b/internal/services/containers/kubernetes_cluster_data_source.go @@ -20,7 +20,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters" "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/kubernetes" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -718,77 +717,6 @@ func dataSourceKubernetesCluster() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - // adding revisions to the resource is a breaking change, MSFT would like the corresponding change in data source to happen at the same time - serviceMeshProfile := resource.Schema["service_mesh_profile"].Elem.(*pluginsdk.Resource).SchemaMap() - delete(serviceMeshProfile, "revisions") - - resource.Schema["agent_pool_profile"].Elem.(*pluginsdk.Resource).Schema["enable_auto_scaling"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - Deprecated: "This property is deprecated and will be removed in v4.0 of the AzureRM Provider in favour of the `auto_scaling_enabled` property.", - } - resource.Schema["agent_pool_profile"].Elem.(*pluginsdk.Resource).Schema["enable_node_public_ip"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - Deprecated: "This property is deprecated and will be removed in v4.0 of the AzureRM Provider in favour of the `node_public_ip_enabled` property.", - } - resource.Schema["storage_profile"].Elem.(*pluginsdk.Resource).Schema["disk_driver_version"] = &pluginsdk.Schema{ - Deprecated: "This property is not available in the stable API and will be removed in v4.0 of the Azure Provider. Please see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#aks-migration-to-stable-api for more details.", - Type: pluginsdk.TypeString, - Computed: true, - } - - resource.Schema["custom_ca_trust_certificates_base64"] = &pluginsdk.Schema{ - Deprecated: "This property is not available in the stable API and will be removed in v4.0 of the Azure Provider. Please see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#aks-migration-to-stable-api for more details.", - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - } - - resource.Schema["azure_active_directory_role_based_access_control"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "client_app_id": { - Type: pluginsdk.TypeString, - Computed: true, - Deprecated: "This property is deprecated and will be removed in v4.0 of the AzureRM Provider.", - }, - "server_app_id": { - Type: pluginsdk.TypeString, - Computed: true, - Deprecated: "This property is deprecated and will be removed in v4.0 of the AzureRM Provider.", - }, - "tenant_id": { - Type: pluginsdk.TypeString, - Computed: true, - }, - "managed": { - Type: pluginsdk.TypeBool, - Computed: true, - Deprecated: "This property is deprecated and will be removed in v4.0 of the AzureRM Provider.", - }, - "azure_rbac_enabled": { - Type: pluginsdk.TypeBool, - Computed: true, - }, - "admin_group_object_ids": { - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - }, - }, - }, - } - - } - return resource } @@ -1310,10 +1238,6 @@ func flattenKubernetesClusterDataSourceAgentPoolProfiles(input *[]managedcluster "zones": zones.FlattenUntyped(profile.AvailabilityZones), } - if !features.FourPointOhBeta() { - out["enable_auto_scaling"] = enableAutoScaling - out["enable_node_public_ip"] = enableNodePublicIP - } agentPoolProfiles = append(agentPoolProfiles, out) } @@ -1325,26 +1249,11 @@ func flattenKubernetesClusterDataSourceAzureActiveDirectoryRoleBasedAccessContro if profile := input.AadProfile; profile != nil { adminGroupObjectIds := utils.FlattenStringSlice(profile.AdminGroupObjectIDs) - clientAppId := "" - if profile.ClientAppID != nil { - clientAppId = *profile.ClientAppID - } - - managed := false - if profile.Managed != nil { - managed = *profile.Managed - } - azureRbacEnabled := false if profile.EnableAzureRBAC != nil { azureRbacEnabled = *profile.EnableAzureRBAC } - serverAppId := "" - if profile.ServerAppID != nil { - serverAppId = *profile.ServerAppID - } - tenantId := "" if profile.TenantID != nil { tenantId = *profile.TenantID @@ -1356,12 +1265,6 @@ func flattenKubernetesClusterDataSourceAzureActiveDirectoryRoleBasedAccessContro "azure_rbac_enabled": azureRbacEnabled, } - if !features.FourPointOhBeta() { - result["client_app_id"] = clientAppId - result["managed"] = managed - result["server_app_id"] = serverAppId - } - results = append(results, result) } diff --git a/internal/services/containers/kubernetes_cluster_data_source_test.go b/internal/services/containers/kubernetes_cluster_data_source_test.go index 0f87c4f37a17..a95e18129990 100644 --- a/internal/services/containers/kubernetes_cluster_data_source_test.go +++ b/internal/services/containers/kubernetes_cluster_data_source_test.go @@ -10,7 +10,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" ) type KubernetesClusterDataSource struct{} @@ -554,29 +553,6 @@ func TestAccDataSourceKubernetesCluster_microsoftDefender(t *testing.T) { }) } -func TestAccDataSourceKubernetesCluster_customCaTrustCerts(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping this test in 4.0 beta as it is not supported") - } - data := acceptance.BuildTestData(t, "data.azurerm_kubernetes_cluster", "test") - r := KubernetesClusterDataSource{} - - fakeCertList := []string{ - "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURjRENDQWxpZ0F3SUJBZ0lFU1QwSUhEQU5CZ2txaGtpRzl3MEJBUXNGQURCUk1Rc3dDUVlEVlFRR0V3SlEKVERFTk1Bc0dBMVVFQXd3RVZHVnpkREVWTUJNR0ExVUVCd3dNUkdWbVlYVnNkQ0JEYVhSNU1Sd3dHZ1lEVlFRSwpEQk5FWldaaGRXeDBJRU52YlhCaGJua2dUSFJrTUI0WERUSXpNRFV5T0RFeE1qY3dNMW9YRFRNek1EVXlOVEV4Ck1qY3dNMW93VVRFTE1Ba0dBMVVFQmhNQ1VFd3hEVEFMQmdOVkJBTU1CRlJsYzNReEZUQVRCZ05WQkFjTURFUmwKWm1GMWJIUWdRMmwwZVRFY01Cb0dBMVVFQ2d3VFJHVm1ZWFZzZENCRGIyMXdZVzU1SUV4MFpEQ0NBU0l3RFFZSgpLb1pJaHZjTkFRRUJCUUFEZ2dFUEFEQ0NBUW9DZ2dFQkFLN2JIYWtxSkdRMWVBOUFHUmlhNGl2anNDRXlGMDhDCjNpSzJZeWthNkREeldmTk1tRWpOUjJiQVZOMEhlLy9pWTd1VjJ2dXl6V1UxMzZGVkdMZkdyeTZGOHNQQUZaSzYKSE4vcWk1QVp6MUpoOGdWSTRwS1pjZEFxQS81clF3VVlvWVN3Q245dGVOYytsbU1ZUk5OcTVwdlV2NjcrNEM3MgpPc3BOSUxSclhBbWNUb1YveVRZVzFKWDBOeEJJSHZZaFZXUE9LQXpRZDQ5UEpSeFpqMUgydCszMEFsazgzTDFwClFzTGx2SzV3MjJpeXdkYVpRN1lmV0xXd1hPQzVPWXdRTUw1R3BHUFNQaEdxdjhqSUhpcHBVeTdrRDlNWFFZOFoKdDl2QkczMzVWSEdlUjI2QnNQQXRFbTJjR05ocjA5cmRvdWJGd2tDR05OYXNVamFoVW9CKzhPY0NBd0VBQWFOUQpNRTR3SFFZRFZSME9CQllFRk9CNmNpTGtUL21Cc2xXSm5Na2phQzZqbjd4ek1COEdBMVVkSXdRWU1CYUFGT0I2CmNpTGtUL21Cc2xXSm5Na2phQzZqbjd4ek1Bd0dBMVVkRXdRRk1BTUJBZjh3RFFZSktvWklodmNOQVFFTEJRQUQKZ2dFQkFKTklHdHJpeFlCRUc1Yy9iQWdOMHlMOEJvOW9nN29ha0hVMUc5TjBxOUNWWXhjOVhma2ZUaEhYOVBUeApMbVNGcHJEQlAyYnVGTzVIUDFpbnNFT1E2N1lGanAvRjVJWGdaQ2twZUpGdDBTL0R3N2ZRbFJJN2RCNGQzNmIzCmE1R2txU0M4aFlZemxLUm9DRGNhalp4QmdoVUFxK0tnTnV4RmNsM1Fnd1Uyam1QbkU4a1A4TmgyM3hlVUJ3WEkKL3pqbU1rdjV4SFhKdHBpdlpzTlpSSUttQW56RU9TWGlRK2JMTStTdlhtSkhYd29YYTZyTXg4YmkySzV4WkhIRwpkUHA1TnQ3L2dxOUdXcm95SkVjSFpEclBiSnR2WGFibTZYUXpxTTFYUzA3SDlaSFBXc0dENGlBM1k0T3JUUlRCClZ5blRPUDl5U3cwbklaVEk4YjZuR2RHTzBOOD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==", - "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURmakNDQW1hZ0F3SUJBZ0lFZnlWdk56QU5CZ2txaGtpRzl3MEJBUXNGQURCWU1Rc3dDUVlEVlFRR0V3SlEKVERFVU1CSUdBMVVFQXd3TFJtRnJaU0JEWlhKMElESXhGVEFUQmdOVkJBY01ERVJsWm1GMWJIUWdRMmwwZVRFYwpNQm9HQTFVRUNnd1RSR1ZtWVhWc2RDQkRiMjF3WVc1NUlFeDBaREFlRncweU16QTJNRFF3TnpJME1qZGFGdzB5Ck5UQTJNRE13TnpJME1qZGFNRmd4Q3pBSkJnTlZCQVlUQWxCTU1SUXdFZ1lEVlFRRERBdEdZV3RsSUVObGNuUWcKTWpFVk1CTUdBMVVFQnd3TVJHVm1ZWFZzZENCRGFYUjVNUnd3R2dZRFZRUUtEQk5FWldaaGRXeDBJRU52YlhCaApibmtnVEhSa01JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBMENTdVdUaGNjSG5MCkhFdjk4SUVNc2JLY3h4YVh4YTZiRXl1Yy9sUjRackpVN2p6eVlWNGVscTV5WTgwdDFCM0MyV3E2SXFoajErSGYKYW0xaStsU1FTejM1eWNnTWlwSWp2cUxKOVIzMVF0Wi9TRURkdGV2b2JqbytEa1dCOE55cG9Ia0pVbEIyQnR6ZgpOK09KeVFSdXU1b1cya2c5OE5Bd3JuTGpmQ0lremVWcFh5d0l4Tkx2ZmFrVGxpNWpYdG9WWG5pOTU5bmtINWVwClkrRnVoSEQwaU5CS25XYVkxR2QwVGhhSHNwTERmNFUycmo2WE5SZHd6QVZoVkdhUm02cndvSHRZeDVrYys1ZWMKQ0F4UEdRWFRzTzJUTHVrQzJ2YXI0M3RUM0ZjSC9taDRST2JaaThZS2xSQ3Fldm1QU1RmZ293RUFkTjlvSmxyRApXN2lzN2NnQjhRSURBUUFCbzFBd1RqQWRCZ05WSFE0RUZnUVVuRkRqN0pBQW9WZ2NzQkgyNzdMOHZlM0Q4U293Ckh3WURWUjBqQkJnd0ZvQVVuRkRqN0pBQW9WZ2NzQkgyNzdMOHZlM0Q4U293REFZRFZSMFRCQVV3QXdFQi96QU4KQmdrcWhraUc5dzBCQVFzRkFBT0NBUUVBT0diT0Zyek4rN2YxbzhJSDNtMXZxT3IyTUtvNEZMWExGRjBVbEhkNApwZXRhL05aQjArUmQ3TnUrOCtnUnlUbEJWZU9EZjN5SXU0TlFCUU92MlNqdS9Jakd0MUtmaUF3WkUwT1RUQXc3CnhIWStsMVBJWEFFVWNqNk00cjFKQzc4ZVZrc2pycTZoV1RPZ0RrSVZuRjY3bXlReXduR25EY1k0d0Fqc2pUajgKKzR4NTIrRi9QaVNQVGtjUFNuN0s2UjQzaEt5QUs2Z0poOHE5cVNhME5RQ2U2czhwTGU2SVY5SElWVVFFVERVOQpsM1VWWHNBMGx4dlB0blU1TXo2QWQ5cDA5L2w4d3o0cUdBdGFCUEd3K0R2cTNlaHdTd2VZZ3VHSktDQjhjb01JCjJRVUo0Zi9mNkFNVWtMeWxYZ3RSUEt1QjA3d3YwTmk1eWI5MjlFY1FJQ0l2dFE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0t", - } - - data.DataSourceTest(t, []acceptance.TestStep{ - { - Config: r.customCaTrustCertificates(data, fakeCertList), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).Key("custom_ca_trust_certificates_base64.0").Exists(), - check.That(data.ResourceName).Key("custom_ca_trust_certificates_base64.1").Exists(), - ), - }, - }) -} - func TestAccDataSourceKubernetesCluster_serviceMesh(t *testing.T) { data := acceptance.BuildTestData(t, "data.azurerm_kubernetes_cluster", "test") r := KubernetesClusterDataSource{} @@ -615,10 +591,6 @@ func TestAccDataSourceKubernetesCluster_serviceMeshCertificateAuthority(t *testi } func TestAccDataSourceKubernetesCluster_serviceMeshRevisions(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skip("Service Mesh Profile Revisions are only available in version 4.0.0 and later") - } - data := acceptance.BuildTestData(t, "data.azurerm_kubernetes_cluster", "test") r := KubernetesClusterDataSource{} @@ -995,16 +967,6 @@ data "azurerm_kubernetes_cluster" "test" { `, KubernetesClusterResource{}.microsoftDefender(data)) } -func (KubernetesClusterDataSource) customCaTrustCertificates(data acceptance.TestData, fakeCertsList []string) string { - return fmt.Sprintf(` -%s -data "azurerm_kubernetes_cluster" "test" { - name = azurerm_kubernetes_cluster.test.name - resource_group_name = azurerm_kubernetes_cluster.test.resource_group_name -} -`, KubernetesClusterResource{}.customCATrustCertificates(data, fakeCertsList)) -} - func (KubernetesClusterDataSource) serviceMesh(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/containers/kubernetes_cluster_network_resource_test.go b/internal/services/containers/kubernetes_cluster_network_resource_test.go index 92d4de0c8838..a6871ec37d87 100644 --- a/internal/services/containers/kubernetes_cluster_network_resource_test.go +++ b/internal/services/containers/kubernetes_cluster_network_resource_test.go @@ -11,7 +11,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" ) func TestAccKubernetesCluster_advancedNetworkingKubenet(t *testing.T) { @@ -945,24 +944,6 @@ func TestAccKubernetesCluster_networkPluginModeUpdate(t *testing.T) { }) } -func TestAccKubernetesCluster_ebpfDataPlane(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("Skipping since `ebpf_data_plane` has been removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.ebpfDataPlane(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesCluster_networkDataPlane(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -978,42 +959,6 @@ func TestAccKubernetesCluster_networkDataPlane(t *testing.T) { }) } -func TestAccKubernetesCluster_apiServerInManagedSubnet(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping this test in 4.0 beta as it is not supported") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.apiServerInManagedSubnet(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccKubernetesCluster_apiServerInBYOSubnet(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping this test in 4.0 beta as it is not supported") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.apiServerInBYOSubnet(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesCluster_clusterPoolNodePublicIPTags(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -1073,153 +1018,6 @@ func TestAccKubernetesCluster_clusterPoolNetworkProfileUpdate(t *testing.T) { }) } -func (KubernetesClusterResource) apiServerInBYOSubnet(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/8"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_subnet" "test" { - name = "acctestsubnet%d" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.1.0.0/16"] - - delegation { - name = "aks-delegation" - - service_delegation { - actions = ["Microsoft.Network/virtualNetworks/subnets/join/action"] - name = "Microsoft.ContainerService/managedClusters" - } - } -} - -resource "azurerm_subnet" "test1" { - name = "acctestsubnet1%d" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.2.0.0/16"] -} - -resource "azurerm_user_assigned_identity" "test" { - name = "acctestRG-aks-%d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location -} - -resource "azurerm_role_assignment" "test" { - scope = azurerm_subnet.test.id - role_definition_name = "Network Contributor" - principal_id = azurerm_user_assigned_identity.test.principal_id -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - api_server_access_profile { - vnet_integration_enabled = true - subnet_id = azurerm_subnet.test.id - } - - linux_profile { - admin_username = "acctestuser%d" - - ssh_key { - key_data = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld" - } - } - - default_node_pool { - name = "default" - node_count = 2 - vm_size = "Standard_DS2_v2" - vnet_subnet_id = azurerm_subnet.test1.id - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "UserAssigned" - identity_ids = [azurerm_user_assigned_identity.test.id] - } - - network_profile { - network_plugin = "azure" - } - - depends_on = [ - azurerm_role_assignment.test, - ] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - -func (KubernetesClusterResource) apiServerInManagedSubnet(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - api_server_access_profile { - vnet_integration_enabled = true - } - - linux_profile { - admin_username = "acctestuser%d" - - ssh_key { - key_data = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld" - } - } - - default_node_pool { - name = "default" - node_count = 2 - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } - - network_profile { - network_plugin = "azure" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - func (KubernetesClusterResource) advancedNetworkingConfig(data acceptance.TestData, networkPlugin string) string { return fmt.Sprintf(` provider "azurerm" { @@ -1281,75 +1079,6 @@ resource "azurerm_kubernetes_cluster" "test" { } func (KubernetesClusterResource) serviceMeshProfile(data acceptance.TestData, internalIngressEnabled bool, externalIngressEnabled bool) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%[1]d" - location = "%[2]s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%[1]d" - address_space = ["10.1.0.0/16", "fd00:db8:deca::/48"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_subnet" "test" { - name = "acctestsubnet%[1]d" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.1.0.0/24", "fd00:db8:deca:deed::/64"] -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%[1]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%[1]d" - - linux_profile { - admin_username = "acctestuser%[1]d" - - ssh_key { - key_data = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld" - } - } - - default_node_pool { - name = "default" - node_count = 2 - vm_size = "Standard_DS2_v2" - vnet_subnet_id = azurerm_subnet.test.id - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } - - network_profile { - network_plugin = "kubenet" - dns_service_ip = "10.10.0.10" - service_cidr = "10.10.0.0/16" - } - - service_mesh_profile { - mode = "Istio" - internal_ingress_gateway_enabled = %[3]t - external_ingress_gateway_enabled = %[4]t - } - -} -`, data.RandomInteger, data.Locations.Primary, internalIngressEnabled, externalIngressEnabled) - } - return fmt.Sprintf(` provider "azurerm" { features {} @@ -1412,7 +1141,7 @@ resource "azurerm_kubernetes_cluster" "test" { mode = "Istio" internal_ingress_gateway_enabled = %[3]t external_ingress_gateway_enabled = %[4]t - revisions = ["asm-1-20"] + revisions = ["asm-1-22"] } } @@ -2607,6 +2336,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) podCidrs(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" @@ -2641,6 +2374,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) podCidrsDualStack(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" @@ -2676,6 +2413,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) serviceCidrs(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" @@ -2711,6 +2452,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) serviceCidrsDualStack(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" @@ -3020,6 +2765,7 @@ resource "azurerm_kubernetes_cluster" "test" { load_balancer_sku = "standard" load_balancer_profile { outbound_ip_address_ids = [azurerm_public_ip.test.id] + backend_pool_type = "NodeIP" } } } @@ -3165,7 +2911,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" + name = "acctestRG-%d" location = "%s" } @@ -3232,6 +2978,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) changingLoadBalancerProfileConfigIPPrefix(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -3307,6 +3057,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) changingLoadBalancerProfileConfigManagedIPs(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -3382,6 +3136,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) changingLoadBalancerProfileConfigIPIds(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -3457,6 +3215,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) unsetLoadBalancerProfileConfigIPIds(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -4048,6 +3810,10 @@ resource "azurerm_kubernetes_cluster" "test" { func (KubernetesClusterResource) httpProxyConfigWithSubnet(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -4155,60 +3921,6 @@ resource "azurerm_kubernetes_cluster" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, currentKubernetesVersion, data.RandomInteger) } -func (KubernetesClusterResource) ebpfDataPlane(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%[2]d" - location = "%[1]s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestRG-vnet-%[2]d" - address_space = ["10.0.0.0/8"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_subnet" "test" { - name = "acctestRG-subnet-%[2]d" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.10.0.0/16"] - -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%[2]d" - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - vnet_subnet_id = azurerm_subnet.test.id - upgrade_settings { - max_surge = "10%%" - } - } - identity { - type = "SystemAssigned" - } - network_profile { - pod_cidr = "192.168.0.0/16" - network_plugin = "azure" - - network_data_plane = "cilium" - network_plugin_mode = "overlay" - } -} - `, data.Locations.Primary, data.RandomInteger) - -} - func (KubernetesClusterResource) networkDataPlane(data acceptance.TestData, networkDataPlane string) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/containers/kubernetes_cluster_node_pool_data_source.go b/internal/services/containers/kubernetes_cluster_node_pool_data_source.go index cb8708c56856..0583968a7571 100644 --- a/internal/services/containers/kubernetes_cluster_node_pool_data_source.go +++ b/internal/services/containers/kubernetes_cluster_node_pool_data_source.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" "github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -159,17 +158,6 @@ func dataSourceKubernetesClusterNodePool() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - dataSource.Schema["enable_auto_scaling"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - } - dataSource.Schema["enable_node_public_ip"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - } - } - return dataSource } @@ -214,11 +202,6 @@ func dataSourceKubernetesClusterNodePoolRead(d *pluginsdk.ResourceData, meta int d.Set("auto_scaling_enabled", props.EnableAutoScaling) d.Set("node_public_ip_enabled", props.EnableNodePublicIP) - if !features.FourPointOhBeta() { - d.Set("enable_auto_scaling", props.EnableAutoScaling) - d.Set("enable_node_public_ip", props.EnableNodePublicIP) - } - evictionPolicy := "" if props.ScaleSetEvictionPolicy != nil && *props.ScaleSetEvictionPolicy != "" { evictionPolicy = string(*props.ScaleSetEvictionPolicy) diff --git a/internal/services/containers/kubernetes_cluster_node_pool_resource_test.go b/internal/services/containers/kubernetes_cluster_node_pool_resource_test.go index 38cacc41258a..c8a2f658049a 100644 --- a/internal/services/containers/kubernetes_cluster_node_pool_resource_test.go +++ b/internal/services/containers/kubernetes_cluster_node_pool_resource_test.go @@ -6,7 +6,6 @@ package containers_test import ( "context" "fmt" - "regexp" "strings" "testing" "time" @@ -19,7 +18,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -120,21 +118,6 @@ func TestAccKubernetesClusterNodePool_capacityReservationGroup(t *testing.T) { }) } -func TestAccKubernetesClusterNodePool_errorForAvailabilitySet(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("AvailabilitySet not supported as an option for default_node_pool in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") - r := KubernetesClusterNodePoolResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.availabilitySetConfig(data), - ExpectError: regexp.MustCompile("multiple node pools are only supported when the Default Node Pool uses a VMScaleSet"), - }, - }) -} - func TestAccKubernetesClusterNodePool_kubeletAndLinuxOSConfig(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") r := KubernetesClusterNodePoolResource{} @@ -326,28 +309,6 @@ func TestAccKubernetesClusterNodePool_manualScaleUpdate(t *testing.T) { }) } -func TestAccKubernetesClusterNodePool_manualScaleVMSku(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") - r := KubernetesClusterNodePoolResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.manualScaleVMSkuConfig(data, "Standard_F2s_v2"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.manualScaleVMSkuConfig(data, "Standard_F4s_v2"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesClusterNodePool_modeSystem(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") r := KubernetesClusterNodePoolResource{} @@ -768,13 +729,6 @@ func TestAccKubernetesClusterNodePool_ultraSSD(t *testing.T) { r := KubernetesClusterNodePoolResource{} data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.ultraSSD(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), { Config: r.ultraSSD(data, true), Check: acceptance.ComposeTestCheckFunc( @@ -815,43 +769,6 @@ func TestAccKubernetesClusterNodePool_osSkuAzureLinux(t *testing.T) { }) } -func TestAccKubernetesClusterNodePool_osSkuCBLMariner(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("CBLMariner is an invalid `os_sku` in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") - r := KubernetesClusterNodePoolResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.osSku(data, "CBLMariner"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccKubernetesClusterNodePool_osSkuMariner(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Mariner is an invalid `os_sku` in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") - r := KubernetesClusterNodePoolResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.osSku(data, "Mariner"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesClusterNodePool_osSkuMigration(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") r := KubernetesClusterNodePoolResource{} @@ -944,26 +861,6 @@ func TestAccKubernetesClusterNodePool_workloadRuntime(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") r := KubernetesClusterNodePoolResource{} - if !features.FourPointOhBeta() { - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.workloadRuntime(data, "OCIContainer"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.workloadRuntime(data, "KataMshvVmIsolation"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) - return - } - data.ResourceTest(t, r, []acceptance.TestStep{ { Config: r.workloadRuntime(data, "OCIContainer"), @@ -975,31 +872,6 @@ func TestAccKubernetesClusterNodePool_workloadRuntime(t *testing.T) { }) } -func TestAccKubernetesClusterNodePool_customCATrustEnabled(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping this test in 4.0 beta as it is not supported") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") - r := KubernetesClusterNodePoolResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.customCATrustEnabled(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.customCATrustEnabled(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesClusterNodePool_windowsProfileOutboundNatEnabled(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster_node_pool", "test") r := KubernetesClusterNodePoolResource{} @@ -1268,47 +1140,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "test" { `, r.templateConfig(data), min, max) } -func (KubernetesClusterNodePoolResource) availabilitySetConfig(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - default_node_pool { - name = "default" - node_count = 1 - type = "AvailabilitySet" - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } -} - -resource "azurerm_kubernetes_cluster_node_pool" "test" { - name = "internal" - kubernetes_cluster_id = azurerm_kubernetes_cluster.test.id - vm_size = "Standard_DS2_v2" - node_count = 1 -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) -} - func (KubernetesClusterNodePoolResource) kubeletAndLinuxOSConfig(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -1728,23 +1559,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "test" { `, r.templateConfig(data), numberOfAgents) } -func (r KubernetesClusterNodePoolResource) manualScaleVMSkuConfig(data acceptance.TestData, sku string) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -%s - -resource "azurerm_kubernetes_cluster_node_pool" "test" { - name = "internal" - kubernetes_cluster_id = azurerm_kubernetes_cluster.test.id - vm_size = "%s" - node_count = 1 -} -`, r.templateConfig(data), sku) -} - func (r KubernetesClusterNodePoolResource) modeSystemConfig(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -2441,25 +2255,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "test" { } func (r KubernetesClusterNodePoolResource) other(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -%s - -resource "azurerm_kubernetes_cluster_node_pool" "test" { - name = "internal" - kubernetes_cluster_id = azurerm_kubernetes_cluster.test.id - vm_size = "Standard_DS2_v2" - node_count = 3 - fips_enabled = true - kubelet_disk_type = "OS" - message_of_the_day = "daily message" -} -`, r.templateConfig(data)) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -2713,41 +2508,6 @@ resource "azurerm_kubernetes_cluster_node_pool" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, workloadRuntime) } -func (KubernetesClusterNodePoolResource) customCATrustEnabled(data acceptance.TestData, enabled bool) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_D2s_v3" - upgrade_settings { - max_surge = "10%%" - } - } - identity { - type = "SystemAssigned" - } -} -resource "azurerm_kubernetes_cluster_node_pool" "test" { - name = "internal" - kubernetes_cluster_id = azurerm_kubernetes_cluster.test.id - vm_size = "Standard_D2s_v3" - custom_ca_trust_enabled = "%t" -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, enabled) -} - func (KubernetesClusterNodePoolResource) windowsProfileOutboundNatEnabled(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/containers/kubernetes_cluster_other_resource_test.go b/internal/services/containers/kubernetes_cluster_other_resource_test.go index b17a285b69d8..63f2ee8f4f6a 100644 --- a/internal/services/containers/kubernetes_cluster_other_resource_test.go +++ b/internal/services/containers/kubernetes_cluster_other_resource_test.go @@ -17,28 +17,9 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/utils" ) -func TestAccKubernetesCluster_basicAvailabilitySet(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("AvailabilitySet not supported as an option for default_node_pool in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basicAvailabilitySetConfig(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesCluster_sameSizeVMSSConfig(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -184,32 +165,6 @@ func TestAccKubernetesCluster_linuxProfile(t *testing.T) { }) } -func TestAccKubernetesCluster_linuxProfileUpdateSshKey(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping this test in 4.0 beta as it is not supported after switching to stable API") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.linuxProfileConfig(data, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.linuxProfileConfig(data, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDuiot/laqt5Bxhy0Kaj+g9GqBkr+PEjB18ty59MZC+QXmG7pgOb98FT3BrHUoCtqWWqUASMyMjKIL1fR9HCsV5hJdiecuksldGoWIg9Idr6+5hYDBpPJrm/JHbQBf259YfEi8pQtzAL1ppAv/FqL//MZo2vztnrPi5yDWl+G7ItzF5XeURPtG9DC97T9stUOeLl8bqM4X2ZtydsCkoCia/tajBcp1dFf13kZL9SCsxW452fgXGipx/LvSQQAFcT+xt6mZSgFfSCHUZm4JnxLjSweefRpIOxkO09QS4BlK1MUeBx/EL1Cxv4ql0Uu5x9m64G8E3m1PIJabLp/8Dw84d"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("linux_profile.0.ssh_key.0.key_data").HasValue("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDuiot/laqt5Bxhy0Kaj+g9GqBkr+PEjB18ty59MZC+QXmG7pgOb98FT3BrHUoCtqWWqUASMyMjKIL1fR9HCsV5hJdiecuksldGoWIg9Idr6+5hYDBpPJrm/JHbQBf259YfEi8pQtzAL1ppAv/FqL//MZo2vztnrPi5yDWl+G7ItzF5XeURPtG9DC97T9stUOeLl8bqM4X2ZtydsCkoCia/tajBcp1dFf13kZL9SCsxW452fgXGipx/LvSQQAFcT+xt6mZSgFfSCHUZm4JnxLjSweefRpIOxkO09QS4BlK1MUeBx/EL1Cxv4ql0Uu5x9m64G8E3m1PIJabLp/8Dw84d"), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesCluster_nodeLabels(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -276,24 +231,6 @@ func TestAccKubernetesCluster_nodePoolOther(t *testing.T) { }) } -func TestAccKubernetesCluster_nodePoolKataMshvVmIsolation(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping this test in 4.0 beta as it is not supported") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.nodePoolKataMshvVmIsolation(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesCluster_upgradeSkuTier(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -466,35 +403,6 @@ func TestAccKubernetesCluster_windowsProfileLicense(t *testing.T) { }) } -func TestAccKubernetesCluster_updateWindowsProfileLicense(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.windowsProfileConfig(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep("windows_profile.0.admin_password"), - { - Config: r.windowsProfileLicense(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep("windows_profile.0.admin_password"), - { - Config: r.windowsProfileConfig(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep("windows_profile.0.admin_password"), - }) -} - func TestAccKubernetesCluster_diskEncryption(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -519,10 +427,6 @@ func TestAccKubernetesCluster_upgradeChannel(t *testing.T) { autoUpgradeChannel := "automatic_upgrade_channel" nodeOsUpgradeChannel := "node_os_upgrade_channel" - if !features.FourPointOhBeta() { - autoUpgradeChannel = "automatic_channel_upgrade" - nodeOsUpgradeChannel = "node_os_channel_upgrade" - } data.ResourceTest(t, r, []acceptance.TestStep{ { @@ -922,31 +826,6 @@ func TestAccKubernetesCluster_workloadIdentity(t *testing.T) { }) } -func TestAccKubernetesCluster_customCATrustEnabled(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping this test in 4.0 beta as it is not supported") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.customCATrustEnabled(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.customCATrustEnabled(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesCluster_webAppRoutingWithMultipleDnsZone(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -979,66 +858,6 @@ func TestAccKubernetesCluster_webAppRoutingWithEmptyDnsZone(t *testing.T) { }) } -func TestAccKubernetesCluster_webAppRouting(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping test in 4.0 as `dns_zone_id` is removed") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.webAppRouting(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("web_app_routing.0.web_app_routing_identity.#").HasValue("1"), - ), - }, - data.ImportStep(), - { - Config: r.webAppRoutingDisabled(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.webAppRoutingWithDnsZone(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep("web_app_routing.0.dns_zone_id", "web_app_routing.0.dns_zone_ids.#", "web_app_routing.0.dns_zone_ids.0"), - { - Config: r.webAppRoutingWithMultipleDnsZone(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("web_app_routing.0.web_app_routing_identity.#").HasValue("1"), - ), - }, - data.ImportStep(), - }) -} - -func TestAccKubernetesCluster_webAppRoutingPrivateDNS(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping test in 4.0 as `dns_zone_id` is removed") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.webAppRoutingPrivateDNS(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("web_app_routing.0.web_app_routing_identity.#").HasValue("1"), - ), - }, - data.ImportStep("web_app_routing.0.dns_zone_id", "web_app_routing.0.dns_zone_ids.#", "web_app_routing.0.dns_zone_ids.0"), - }) -} - func TestAccKubernetesCluster_azureMonitorKubernetesMetrics(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -1073,9 +892,6 @@ func TestAccKubernetesCluster_nodeOsUpgradeChannel(t *testing.T) { r := KubernetesClusterResource{} nodeOsUpgradeChannel := "node_os_upgrade_channel" - if !features.FourPointOhBeta() { - nodeOsUpgradeChannel = "node_os_channel_upgrade" - } data.ResourceTest(t, r, []acceptance.TestStep{ { Config: r.nodeOsUpgradeChannel(data, "Unmanaged"), @@ -1114,44 +930,6 @@ func TestAccKubernetesCluster_nodeOsUpgradeChannel(t *testing.T) { }) } -func TestAccKubernetesCluster_customCaTrustCerts(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Skipping this test in 4.0 beta as it is not supported") - } - data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") - r := KubernetesClusterResource{} - - fakeCertList := []string{ - "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURjRENDQWxpZ0F3SUJBZ0lFU1QwSUhEQU5CZ2txaGtpRzl3MEJBUXNGQURCUk1Rc3dDUVlEVlFRR0V3SlEKVERFTk1Bc0dBMVVFQXd3RVZHVnpkREVWTUJNR0ExVUVCd3dNUkdWbVlYVnNkQ0JEYVhSNU1Sd3dHZ1lEVlFRSwpEQk5FWldaaGRXeDBJRU52YlhCaGJua2dUSFJrTUI0WERUSXpNRFV5T0RFeE1qY3dNMW9YRFRNek1EVXlOVEV4Ck1qY3dNMW93VVRFTE1Ba0dBMVVFQmhNQ1VFd3hEVEFMQmdOVkJBTU1CRlJsYzNReEZUQVRCZ05WQkFjTURFUmwKWm1GMWJIUWdRMmwwZVRFY01Cb0dBMVVFQ2d3VFJHVm1ZWFZzZENCRGIyMXdZVzU1SUV4MFpEQ0NBU0l3RFFZSgpLb1pJaHZjTkFRRUJCUUFEZ2dFUEFEQ0NBUW9DZ2dFQkFLN2JIYWtxSkdRMWVBOUFHUmlhNGl2anNDRXlGMDhDCjNpSzJZeWthNkREeldmTk1tRWpOUjJiQVZOMEhlLy9pWTd1VjJ2dXl6V1UxMzZGVkdMZkdyeTZGOHNQQUZaSzYKSE4vcWk1QVp6MUpoOGdWSTRwS1pjZEFxQS81clF3VVlvWVN3Q245dGVOYytsbU1ZUk5OcTVwdlV2NjcrNEM3MgpPc3BOSUxSclhBbWNUb1YveVRZVzFKWDBOeEJJSHZZaFZXUE9LQXpRZDQ5UEpSeFpqMUgydCszMEFsazgzTDFwClFzTGx2SzV3MjJpeXdkYVpRN1lmV0xXd1hPQzVPWXdRTUw1R3BHUFNQaEdxdjhqSUhpcHBVeTdrRDlNWFFZOFoKdDl2QkczMzVWSEdlUjI2QnNQQXRFbTJjR05ocjA5cmRvdWJGd2tDR05OYXNVamFoVW9CKzhPY0NBd0VBQWFOUQpNRTR3SFFZRFZSME9CQllFRk9CNmNpTGtUL21Cc2xXSm5Na2phQzZqbjd4ek1COEdBMVVkSXdRWU1CYUFGT0I2CmNpTGtUL21Cc2xXSm5Na2phQzZqbjd4ek1Bd0dBMVVkRXdRRk1BTUJBZjh3RFFZSktvWklodmNOQVFFTEJRQUQKZ2dFQkFKTklHdHJpeFlCRUc1Yy9iQWdOMHlMOEJvOW9nN29ha0hVMUc5TjBxOUNWWXhjOVhma2ZUaEhYOVBUeApMbVNGcHJEQlAyYnVGTzVIUDFpbnNFT1E2N1lGanAvRjVJWGdaQ2twZUpGdDBTL0R3N2ZRbFJJN2RCNGQzNmIzCmE1R2txU0M4aFlZemxLUm9DRGNhalp4QmdoVUFxK0tnTnV4RmNsM1Fnd1Uyam1QbkU4a1A4TmgyM3hlVUJ3WEkKL3pqbU1rdjV4SFhKdHBpdlpzTlpSSUttQW56RU9TWGlRK2JMTStTdlhtSkhYd29YYTZyTXg4YmkySzV4WkhIRwpkUHA1TnQ3L2dxOUdXcm95SkVjSFpEclBiSnR2WGFibTZYUXpxTTFYUzA3SDlaSFBXc0dENGlBM1k0T3JUUlRCClZ5blRPUDl5U3cwbklaVEk4YjZuR2RHTzBOOD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==", - "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURmakNDQW1hZ0F3SUJBZ0lFZnlWdk56QU5CZ2txaGtpRzl3MEJBUXNGQURCWU1Rc3dDUVlEVlFRR0V3SlEKVERFVU1CSUdBMVVFQXd3TFJtRnJaU0JEWlhKMElESXhGVEFUQmdOVkJBY01ERVJsWm1GMWJIUWdRMmwwZVRFYwpNQm9HQTFVRUNnd1RSR1ZtWVhWc2RDQkRiMjF3WVc1NUlFeDBaREFlRncweU16QTJNRFF3TnpJME1qZGFGdzB5Ck5UQTJNRE13TnpJME1qZGFNRmd4Q3pBSkJnTlZCQVlUQWxCTU1SUXdFZ1lEVlFRRERBdEdZV3RsSUVObGNuUWcKTWpFVk1CTUdBMVVFQnd3TVJHVm1ZWFZzZENCRGFYUjVNUnd3R2dZRFZRUUtEQk5FWldaaGRXeDBJRU52YlhCaApibmtnVEhSa01JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBMENTdVdUaGNjSG5MCkhFdjk4SUVNc2JLY3h4YVh4YTZiRXl1Yy9sUjRackpVN2p6eVlWNGVscTV5WTgwdDFCM0MyV3E2SXFoajErSGYKYW0xaStsU1FTejM1eWNnTWlwSWp2cUxKOVIzMVF0Wi9TRURkdGV2b2JqbytEa1dCOE55cG9Ia0pVbEIyQnR6ZgpOK09KeVFSdXU1b1cya2c5OE5Bd3JuTGpmQ0lremVWcFh5d0l4Tkx2ZmFrVGxpNWpYdG9WWG5pOTU5bmtINWVwClkrRnVoSEQwaU5CS25XYVkxR2QwVGhhSHNwTERmNFUycmo2WE5SZHd6QVZoVkdhUm02cndvSHRZeDVrYys1ZWMKQ0F4UEdRWFRzTzJUTHVrQzJ2YXI0M3RUM0ZjSC9taDRST2JaaThZS2xSQ3Fldm1QU1RmZ293RUFkTjlvSmxyRApXN2lzN2NnQjhRSURBUUFCbzFBd1RqQWRCZ05WSFE0RUZnUVVuRkRqN0pBQW9WZ2NzQkgyNzdMOHZlM0Q4U293Ckh3WURWUjBqQkJnd0ZvQVVuRkRqN0pBQW9WZ2NzQkgyNzdMOHZlM0Q4U293REFZRFZSMFRCQVV3QXdFQi96QU4KQmdrcWhraUc5dzBCQVFzRkFBT0NBUUVBT0diT0Zyek4rN2YxbzhJSDNtMXZxT3IyTUtvNEZMWExGRjBVbEhkNApwZXRhL05aQjArUmQ3TnUrOCtnUnlUbEJWZU9EZjN5SXU0TlFCUU92MlNqdS9Jakd0MUtmaUF3WkUwT1RUQXc3CnhIWStsMVBJWEFFVWNqNk00cjFKQzc4ZVZrc2pycTZoV1RPZ0RrSVZuRjY3bXlReXduR25EY1k0d0Fqc2pUajgKKzR4NTIrRi9QaVNQVGtjUFNuN0s2UjQzaEt5QUs2Z0poOHE5cVNhME5RQ2U2czhwTGU2SVY5SElWVVFFVERVOQpsM1VWWHNBMGx4dlB0blU1TXo2QWQ5cDA5L2w4d3o0cUdBdGFCUEd3K0R2cTNlaHdTd2VZZ3VHSktDQjhjb01JCjJRVUo0Zi9mNkFNVWtMeWxYZ3RSUEt1QjA3d3YwTmk1eWI5MjlFY1FJQ0l2dFE9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0t", - } - - fakeCertList2 := []string{ - "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURjRENDQWxpZ0F3SUJBZ0lFU1QwSUhEQU5CZ2txaGtpRzl3MEJBUXNGQURCUk1Rc3dDUVlEVlFRR0V3SlEKVERFTk1Bc0dBMVVFQXd3RVZHVnpkREVWTUJNR0ExVUVCd3dNUkdWbVlYVnNkQ0JEYVhSNU1Sd3dHZ1lEVlFRSwpEQk5FWldaaGRXeDBJRU52YlhCaGJua2dUSFJrTUI0WERUSXpNRFV5T0RFeE1qY3dNMW9YRFRNek1EVXlOVEV4Ck1qY3dNMW93VVRFTE1Ba0dBMVVFQmhNQ1VFd3hEVEFMQmdOVkJBTU1CRlJsYzNReEZUQVRCZ05WQkFjTURFUmwKWm1GMWJIUWdRMmwwZVRFY01Cb0dBMVVFQ2d3VFJHVm1ZWFZzZENCRGIyMXdZVzU1SUV4MFpEQ0NBU0l3RFFZSgpLb1pJaHZjTkFRRUJCUUFEZ2dFUEFEQ0NBUW9DZ2dFQkFLN2JIYWtxSkdRMWVBOUFHUmlhNGl2anNDRXlGMDhDCjNpSzJZeWthNkREeldmTk1tRWpOUjJiQVZOMEhlLy9pWTd1VjJ2dXl6V1UxMzZGVkdMZkdyeTZGOHNQQUZaSzcKSE4vcWk1QVp6MUpoOGdWSTRwS1pjZEFxQS81clF3VVlvWVN3Q245dGVOYytsbU1ZUk5OcTVwdlV2NjcrNEM3MgpPc3BOSUxSclhBbWNUb1YveVRZVzFKWDBOeEJJSHZZaFZXUE9LQXpRZDQ5UEpSeFpqMUgydCszMEFsazgzTDFwClFzTGx2SzV3MjJpeXdkYVpRN1lmV0xXd1hPQzVPWXdRTUw1R3BHUFNQaEdxdjhqSUhpcHBVeTdrRDlNWFFZOFoKdDl2QkczMzVWSEdlUjI2QnNQQXRFbTJjR05ocjA5cmRvdWJGd2tDR05OYXNVamFoVW9CKzhPY0NBd0VBQWFOUQpNRTR3SFFZRFZSME9CQllFRk9CNmNpTGtUL21Cc2xXSm5Na2phQzZqbjd4ek1COEdBMVVkSXdRWU1CYUFGT0I2CmNpTGtUL21Cc2xXSm5Na2phQzZqbjd4ek1Bd0dBMVVkRXdRRk1BTUJBZjh3RFFZSktvWklodmNOQVFFTEJRQUQKZ2dFQkFKTklHdHJpeFlCRUc1Yy9iQWdOMHlMOEJvOW9nN29ha0hVMUc5TjBxOUNWWXhjOVhma2ZUaEhYOVBUeApMbVNGcHJEQlAyYnVGTzVIUDFpbnNFT1E2N1lGanAvRjVJWGdaQ2twZUpGdDBTL0R3N2ZRbFJJN2RCNGQzNmIzCmE1R2txU0M4aFlZemxLUm9DRGNhalp4QmdoVUFxK0tnTnV4RmNsM1Fnd1Uyam1QbkU4a1A4TmgyM3hlVUJ3WEkKL3pqbU1rdjV4SFhKdHBpdlpzTlpSSUttQW56RU9TWGlRK2JMTStTdlhtSkhYd29YYTZyTXg4YmkySzV4WkhIRwpkUHA1TnQ3L2dxOUdXcm95SkVjSFpEclBiSnR2WGFibTZYUXpxTTFYUzA3SDlaSFBXc0dENGlBM1k0T3JUUlRCClZ5blRPUDl5U3cwbklaVEk4YjZuR2RHTzBOOD0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQ==", - } - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.customCATrustCertificates(data, fakeCertList), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("custom_ca_trust_certificates_base64.0").Exists(), - check.That(data.ResourceName).Key("custom_ca_trust_certificates_base64.1").Exists(), - ), - }, - data.ImportStep(), - { - Config: r.customCATrustCertificates(data, fakeCertList2), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("custom_ca_trust_certificates_base64.0").Exists(), - check.That(data.ResourceName).Key("custom_ca_trust_certificates_base64.1").DoesNotExist(), - ), - }, - data.ImportStep(), - }) -} - func TestAccKubernetesCluster_snapshotId(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kubernetes_cluster", "test") r := KubernetesClusterResource{} @@ -1297,40 +1075,6 @@ func TestAccKubernetesCluster_costAnalysis(t *testing.T) { }) } -func (KubernetesClusterResource) basicAvailabilitySetConfig(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - default_node_pool { - name = "default" - node_count = 1 - type = "AvailabilitySet" - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) -} - func (KubernetesClusterResource) sameSize(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -1775,7 +1519,6 @@ resource "azurerm_kubernetes_cluster" "test" { } func (KubernetesClusterResource) linuxProfileConfig(data acceptance.TestData, keyData string) string { - return fmt.Sprintf(` provider "azurerm" { features {} @@ -1823,6 +1566,10 @@ func (KubernetesClusterResource) nodeLabelsConfig(data acceptance.TestData, labe } labelsStr := strings.Join(labelsSlice, "\n") return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" @@ -1888,42 +1635,6 @@ resource "azurerm_kubernetes_cluster" "test" { } func (KubernetesClusterResource) nodePoolOther(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - fips_enabled = true - kubelet_disk_type = "OS" - message_of_the_day = "daily message" - workload_runtime = "OCIContainer" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -1959,7 +1670,7 @@ resource "azurerm_kubernetes_cluster" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) } -func (KubernetesClusterResource) nodePoolKataMshvVmIsolation(data acceptance.TestData) string { +func (KubernetesClusterResource) skuConfigStandard(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { features {} @@ -1975,14 +1686,12 @@ resource "azurerm_kubernetes_cluster" "test" { location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name dns_prefix = "acctestaks%d" + sku_tier = "Standard" default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_D2s_v3" - message_of_the_day = "daily message" - os_sku = "AzureLinux" - workload_runtime = "KataMshvVmIsolation" + name = "default" + node_count = 1 + vm_size = "Standard_DS2_v2" upgrade_settings { max_surge = "10%%" } @@ -1995,52 +1704,18 @@ resource "azurerm_kubernetes_cluster" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) } -func (KubernetesClusterResource) skuConfigStandard(data acceptance.TestData) string { +func (KubernetesClusterResource) podSubnet(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { features {} } - resource "azurerm_resource_group" "test" { name = "acctestRG-aks-%d" location = "%s" } - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - sku_tier = "Standard" - - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) -} - -func (KubernetesClusterResource) podSubnet(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} -resource "azurerm_virtual_network" "test" { - name = "acctestnw-%d" - address_space = ["10.0.0.0/8"] +resource "azurerm_virtual_network" "test" { + name = "acctestnw-%d" + address_space = ["10.0.0.0/8"] location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name } @@ -2552,41 +2227,6 @@ func (KubernetesClusterResource) upgradeChannelConfig(data acceptance.TestData, upgradeChannel = "null" } - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - kubernetes_version = %q - automatic_channel_upgrade = %s - node_os_channel_upgrade = "NodeImage" - - default_node_pool { - name = "default" - vm_size = "Standard_DS2_v2" - node_count = 1 - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, controlPlaneVersion, upgradeChannel) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -3241,48 +2881,6 @@ resource "azurerm_kubernetes_cluster" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) } -func (KubernetesClusterResource) webAppRoutingWithDnsZone(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_dns_zone" "test" { - name = "acctestzone%d.com" - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } - - web_app_routing { - dns_zone_id = azurerm_dns_zone.test.id - } -} - `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - func (KubernetesClusterResource) webAppRoutingWithMultipleDnsZone(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -3367,158 +2965,6 @@ resource "azurerm_kubernetes_cluster" "test" { `, data.Locations.Primary, data.RandomInteger) } -func (KubernetesClusterResource) webAppRouting(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_dns_zone" "test" { - name = "acctestzone%d.com" - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } - - web_app_routing { - dns_zone_id = "" - } -} - `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - -func (KubernetesClusterResource) webAppRoutingDisabled(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_dns_zone" "test" { - name = "acctestzone%d.com" - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } -} - `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - -func (KubernetesClusterResource) webAppRoutingPrivateDNS(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_private_dns_zone" "test" { - name = "privatelink.%s.azmk8s.io" - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } - - web_app_routing { - dns_zone_id = azurerm_private_dns_zone.test.id - } -} - `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomInteger, data.RandomInteger) -} - -func (KubernetesClusterResource) customCATrustEnabled(data acceptance.TestData, enabled bool) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_D2s_v3" - custom_ca_trust_enabled = "%t" - upgrade_settings { - max_surge = "10%%" - } - } - identity { - type = "SystemAssigned" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, enabled) -} - func (KubernetesClusterResource) azureMonitorKubernetesMetricsEnabled(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -3627,35 +3073,6 @@ resource "azurerm_kubernetes_cluster" "test" { } func (KubernetesClusterResource) nodeOsUpgradeChannel(data acceptance.TestData, nodeOsUpgradeChannel string) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - node_os_channel_upgrade = "%s" - default_node_pool { - name = "default" - vm_size = "Standard_DS2_v2" - node_count = 1 - upgrade_settings { - max_surge = "10%%" - } - } - identity { - type = "SystemAssigned" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, nodeOsUpgradeChannel) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -3685,44 +3102,6 @@ resource "azurerm_kubernetes_cluster" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, nodeOsUpgradeChannel) } -func (KubernetesClusterResource) customCATrustCertificates(data acceptance.TestData, certsList []string) string { - - certsString := "" - - if certsList != nil { - certsString = "\"" + strings.Join(certsList, "\" ,\"") + "\"" - } - - return fmt.Sprintf(` -provider "azurerm" { - features {} -} -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - role_based_access_control_enabled = true - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - identity { - type = "SystemAssigned" - } - custom_ca_trust_certificates_base64 = [%s] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, certsString) -} - func (KubernetesClusterResource) snapshotSource(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/containers/kubernetes_cluster_resource.go b/internal/services/containers/kubernetes_cluster_resource.go index c2d75539f059..cbd23a719b70 100644 --- a/internal/services/containers/kubernetes_cluster_resource.go +++ b/internal/services/containers/kubernetes_cluster_resource.go @@ -31,7 +31,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" computeValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/migration" containerValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" @@ -52,19 +51,11 @@ func resourceKubernetesCluster() *pluginsdk.Resource { Update: resourceKubernetesClusterUpdate, Delete: resourceKubernetesClusterDelete, - Importer: pluginsdk.ImporterValidatingResourceIdThen( + Importer: pluginsdk.ImporterValidatingResourceId( func(id string) error { _, err := commonids.ParseKubernetesClusterID(id) return err - }, - - func(ctx context.Context, d *pluginsdk.ResourceData, meta interface{}) ([]*pluginsdk.ResourceData, error) { - if !features.FourPointOhBeta() { - d.Set("public_network_access_enabled", true) - } - return []*pluginsdk.ResourceData{d}, nil - }, - ), + }), CustomizeDiff: pluginsdk.CustomDiffInSequence( // The behaviour of the API requires this, but this could be removed when https://github.com/Azure/azure-rest-api-specs/issues/27373 has been addressed @@ -121,9 +112,6 @@ func resourceKubernetesCluster() *pluginsdk.Resource { // Once it is GA, an additional logic is needed to handle the uninstallation of network policy. return old.(string) != "" }), - pluginsdk.ForceNewIfChange("custom_ca_trust_certificates_base64", func(ctx context.Context, old, new, meta interface{}) bool { - return !features.FourPointOhBeta() && len(old.([]interface{})) > 0 && len(new.([]interface{})) == 0 - }), ), Timeouts: &pluginsdk.ResourceTimeout{ @@ -154,20 +142,12 @@ func resourceKubernetesCluster() *pluginsdk.Resource { "api_server_access_profile": { Type: pluginsdk.TypeList, Optional: true, - Computed: !features.FourPointOhBeta(), MaxItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ "authorized_ip_ranges": { Type: pluginsdk.TypeSet, Optional: true, - Computed: !features.FourPointOhBeta(), - ConflictsWith: func() []string { - if !features.FourPointOhBeta() { - return []string{"api_server_authorized_ip_ranges"} - } - return []string{} - }(), Elem: &pluginsdk.Schema{ Type: pluginsdk.TypeString, ValidateFunc: validate.CIDR, @@ -177,6 +157,17 @@ func resourceKubernetesCluster() *pluginsdk.Resource { }, }, + "automatic_upgrade_channel": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + string(managedclusters.UpgradeChannelPatch), + string(managedclusters.UpgradeChannelRapid), + string(managedclusters.UpgradeChannelStable), + string(managedclusters.UpgradeChannelNodeNegativeimage), + }, false), + }, + "auto_scaler_profile": { Type: pluginsdk.TypeList, Optional: true, @@ -189,6 +180,19 @@ func resourceKubernetesCluster() *pluginsdk.Resource { Optional: true, Default: false, }, + + "daemonset_eviction_for_empty_nodes_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "daemonset_eviction_for_occupied_nodes_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + }, + "expander": { Type: pluginsdk.TypeString, Optional: true, @@ -200,86 +204,106 @@ func resourceKubernetesCluster() *pluginsdk.Resource { string(managedclusters.ExpanderRandom), }, false), }, + + "ignore_daemonsets_utilization_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + "max_graceful_termination_sec": { Type: pluginsdk.TypeString, Optional: true, Computed: true, }, + "max_node_provisioning_time": { Type: pluginsdk.TypeString, Optional: true, Default: "15m", ValidateFunc: containerValidate.Duration, }, + "max_unready_nodes": { Type: pluginsdk.TypeInt, Optional: true, Default: 3, ValidateFunc: validation.IntAtLeast(0), }, + "max_unready_percentage": { Type: pluginsdk.TypeFloat, Optional: true, Default: 45, ValidateFunc: validation.FloatBetween(0, 100), }, + "new_pod_scale_up_delay": { Type: pluginsdk.TypeString, Optional: true, Computed: true, ValidateFunc: containerValidate.Duration, }, + "scan_interval": { Type: pluginsdk.TypeString, Optional: true, Computed: true, ValidateFunc: containerValidate.Duration, }, + "scale_down_delay_after_add": { Type: pluginsdk.TypeString, Optional: true, Computed: true, ValidateFunc: containerValidate.Duration, }, + "scale_down_delay_after_delete": { Type: pluginsdk.TypeString, Optional: true, Computed: true, ValidateFunc: containerValidate.Duration, }, + "scale_down_delay_after_failure": { Type: pluginsdk.TypeString, Optional: true, Computed: true, ValidateFunc: containerValidate.Duration, }, + "scale_down_unneeded": { Type: pluginsdk.TypeString, Optional: true, Computed: true, ValidateFunc: containerValidate.Duration, }, + "scale_down_unready": { Type: pluginsdk.TypeString, Optional: true, Computed: true, ValidateFunc: containerValidate.Duration, }, + "scale_down_utilization_threshold": { Type: pluginsdk.TypeString, Optional: true, Computed: true, }, + "empty_bulk_delete_max": { Type: pluginsdk.TypeString, Optional: true, Computed: true, }, + "skip_nodes_with_local_storage": { Type: pluginsdk.TypeBool, Optional: true, - Default: !features.FourPointOhBeta(), }, + "skip_nodes_with_system_pods": { Type: pluginsdk.TypeBool, Optional: true, @@ -993,22 +1017,10 @@ func resourceKubernetesCluster() *pluginsdk.Resource { "network_data_plane": { Type: pluginsdk.TypeString, Optional: true, - Computed: !features.FourPointOhBeta(), - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return string(managedclusters.NetworkDataplaneAzure) - }(), + Default: string(managedclusters.NetworkDataplaneAzure), ValidateFunc: validation.StringInSlice( managedclusters.PossibleValuesForNetworkDataplane(), false), - ConflictsWith: func() []string { - if !features.FourPointOhBeta() { - return []string{"network_profile.0.ebpf_data_plane"} - } - return []string{} - }(), }, "network_plugin_mode": { @@ -1094,12 +1106,14 @@ func resourceKubernetesCluster() *pluginsdk.Resource { Default: 0, ValidateFunc: validation.IntBetween(0, 64000), }, + "idle_timeout_in_minutes": { Type: pluginsdk.TypeInt, Optional: true, Default: 30, ValidateFunc: validation.IntBetween(4, 100), }, + "managed_outbound_ip_count": { Type: pluginsdk.TypeInt, Optional: true, @@ -1107,6 +1121,7 @@ func resourceKubernetesCluster() *pluginsdk.Resource { ValidateFunc: validation.IntBetween(1, 100), ConflictsWith: []string{"network_profile.0.load_balancer_profile.0.outbound_ip_prefix_ids", "network_profile.0.load_balancer_profile.0.outbound_ip_address_ids"}, }, + "managed_outbound_ipv6_count": { Type: pluginsdk.TypeInt, Optional: true, @@ -1114,6 +1129,7 @@ func resourceKubernetesCluster() *pluginsdk.Resource { ValidateFunc: validation.IntBetween(1, 100), ConflictsWith: []string{"network_profile.0.load_balancer_profile.0.outbound_ip_prefix_ids", "network_profile.0.load_balancer_profile.0.outbound_ip_address_ids"}, }, + "outbound_ip_prefix_ids": { Type: pluginsdk.TypeSet, Optional: true, @@ -1123,6 +1139,7 @@ func resourceKubernetesCluster() *pluginsdk.Resource { ValidateFunc: azure.ValidateResourceID, }, }, + "outbound_ip_address_ids": { Type: pluginsdk.TypeSet, Optional: true, @@ -1132,6 +1149,7 @@ func resourceKubernetesCluster() *pluginsdk.Resource { ValidateFunc: azure.ValidateResourceID, }, }, + "effective_outbound_ips": { Type: pluginsdk.TypeSet, Computed: true, @@ -1139,6 +1157,16 @@ func resourceKubernetesCluster() *pluginsdk.Resource { Type: pluginsdk.TypeString, }, }, + + "backend_pool_type": { + Type: pluginsdk.TypeString, + Optional: true, + Default: string(managedclusters.BackendPoolTypeNodeIPConfiguration), + ValidateFunc: validation.StringInSlice([]string{ + string(managedclusters.BackendPoolTypeNodeIPConfiguration), + string(managedclusters.BackendPoolTypeNodeIP), + }, false), + }, }, }, }, @@ -1191,6 +1219,18 @@ func resourceKubernetesCluster() *pluginsdk.Resource { }, }, + "node_os_upgrade_channel": { + Type: pluginsdk.TypeString, + Optional: true, + Default: string(managedclusters.NodeOSUpgradeChannelNodeImage), + ValidateFunc: validation.StringInSlice([]string{ + string(managedclusters.NodeOSUpgradeChannelNodeImage), + string(managedclusters.NodeOSUpgradeChannelNone), + string(managedclusters.NodeOSUpgradeChannelSecurityPatch), + string(managedclusters.NodeOSUpgradeChannelUnmanaged), + }, false), + }, + "node_resource_group": { Type: pluginsdk.TypeString, Optional: true, @@ -1319,6 +1359,17 @@ func resourceKubernetesCluster() *pluginsdk.Resource { }, }, }, + + "revisions": { + Type: pluginsdk.TypeList, + Required: true, + MinItems: 1, + MaxItems: 2, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, }, }, }, @@ -1478,328 +1529,11 @@ func resourceKubernetesCluster() *pluginsdk.Resource { resource.Schema[k] = v } - if !features.FourPointOhBeta() { - resource.Schema["enable_pod_security_policy"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Deprecated: "The AKS API has removed support for this field on 2020-10-15 and it is no longer possible to configure Pod Security Policy. This property will be removed in v4.0 of the AzureRM provider.", - Optional: true, - } - resource.Schema["network_profile"].Elem.(*pluginsdk.Resource).Schema["ebpf_data_plane"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{ - string(managedclusters.NetworkDataplaneCilium), - }, false), - Deprecated: "This property has been superseded by the property `network_data_plane` and will be removed in v4.0 of the AzureRM provider.", - ConflictsWith: []string{"network_profile.0.network_data_plane"}, - } - resource.Schema["api_server_authorized_ip_ranges"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeSet, - Optional: true, - Computed: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validate.CIDR, - }, - Deprecated: "This property has been renamed to `authorized_ip_ranges` within the `api_server_access_profile` block and will be removed in v4.0 of the provider", - ConflictsWith: []string{"api_server_access_profile.0.authorized_ip_ranges"}, - } - resource.Schema["api_server_access_profile"].Elem.(*pluginsdk.Resource).Schema["vnet_integration_enabled"] = &pluginsdk.Schema{ - Deprecated: "This property is not available in the stable API and will be removed in v4.0 of the Azure Provider. Please see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#aks-migration-to-stable-api for more details.", - Type: pluginsdk.TypeBool, - Optional: true, - } - resource.Schema["api_server_access_profile"].Elem.(*pluginsdk.Resource).Schema["subnet_id"] = &pluginsdk.Schema{ - Deprecated: "This property is not available in the stable API and will be removed in v4.0 of the Azure Provider. Please see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#aks-migration-to-stable-api for more details.", - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: commonids.ValidateSubnetID, - } - resource.Schema["custom_ca_trust_certificates_base64"] = &pluginsdk.Schema{ - Deprecated: "This property is not available in the stable API and will be removed in v4.0 of the Azure Provider. Please see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#aks-migration-to-stable-api for more details.", - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 10, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsBase64, - }, - } - resource.Schema["storage_profile"].Elem.(*pluginsdk.Resource).Schema["disk_driver_version"] = &pluginsdk.Schema{ - Deprecated: "This property is not available in the stable API and will be removed in v4.0 of the Azure Provider. Please see https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/4.0-upgrade-guide#aks-migration-to-stable-api for more details.", - Type: pluginsdk.TypeString, - Optional: true, - Default: "v1", - ValidateFunc: validation.StringInSlice([]string{ - "v1", - "v2", - }, false), - } - resource.Schema["network_profile"].Elem.(*pluginsdk.Resource).Schema["docker_bridge_cidr"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - Deprecated: "`docker_bridge_cidr` has been deprecated as the API no longer supports it and will be removed in version 4.0 of the provider.", - ValidateFunc: validate.CIDR, - } - resource.Schema["network_profile"].Elem.(*pluginsdk.Resource).Schema["network_plugin_mode"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringInSlice([]string{ - string(managedclusters.NetworkPluginModeOverlay), - "Overlay", - }, false), - } - resource.Schema["windows_profile"].Elem.(*pluginsdk.Resource).Schema["admin_password"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Sensitive: true, - ValidateFunc: validation.StringLenBetween(8, 123), - } - resource.Schema["image_cleaner_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - } - resource.Schema["image_cleaner_interval_hours"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Default: 48, - ValidateFunc: validation.IntBetween(24, 2160), - } - resource.Schema["automatic_channel_upgrade"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringInSlice([]string{ - string(managedclusters.UpgradeChannelPatch), - string(managedclusters.UpgradeChannelRapid), - string(managedclusters.UpgradeChannelStable), - string(managedclusters.UpgradeChannelNodeNegativeimage), - }, false), - Deprecated: features.DeprecatedInFourPointOh("The property `automatic_channel_upgrade` will be renamed to `automatic_upgrade_channel` in v4.0 of the AzureRM Provider."), - } - resource.Schema["node_os_channel_upgrade"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringInSlice([]string{ - string(managedclusters.NodeOSUpgradeChannelNodeImage), - string(managedclusters.NodeOSUpgradeChannelNone), - string(managedclusters.NodeOSUpgradeChannelSecurityPatch), - string(managedclusters.NodeOSUpgradeChannelUnmanaged), - }, false), - Deprecated: features.DeprecatedInFourPointOh("The property `node_os_channel_upgrade` will be renamed to `node_os_upgrade_channel` in v4.0 of the AzureRM Provider."), - } - resource.Schema["network_profile"].Elem.(*pluginsdk.Resource).Schema["outbound_ip_prefix_ids"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeSet, - Optional: true, - Computed: true, - ConflictsWith: []string{"network_profile.0.load_balancer_profile.0.managed_outbound_ip_count", "network_profile.0.load_balancer_profile.0.outbound_ip_address_ids"}, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: azure.ValidateResourceID, - }, - } - resource.Schema["network_profile"].Elem.(*pluginsdk.Resource).Schema["outbound_ip_address_ids"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeSet, - Optional: true, - Computed: true, - ConflictsWith: []string{"network_profile.0.load_balancer_profile.0.managed_outbound_ip_count", "network_profile.0.load_balancer_profile.0.outbound_ip_prefix_ids"}, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: azure.ValidateResourceID, - }, - } - resource.Schema["azure_active_directory_role_based_access_control"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "client_app_id": { - Deprecated: "Azure AD Integration (legacy) (https://aka.ms/aks/aad-legacy) is deprecated and clusters can no longer be created with the Azure AD integration (legacy) enabled. This field will be removed in v4.0 of the AzureRM Provider.", - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.IsUUID, - AtLeastOneOf: []string{ - "azure_active_directory_role_based_access_control.0.client_app_id", "azure_active_directory_role_based_access_control.0.server_app_id", - "azure_active_directory_role_based_access_control.0.server_app_secret", "azure_active_directory_role_based_access_control.0.tenant_id", - "azure_active_directory_role_based_access_control.0.managed", "azure_active_directory_role_based_access_control.0.admin_group_object_ids", - }, - }, - - "server_app_id": { - Deprecated: "Azure AD Integration (legacy) (https://aka.ms/aks/aad-legacy) is deprecated and clusters can no longer be created with the Azure AD integration (legacy) enabled. This field will be removed in v4.0 of the AzureRM Provider.", - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.IsUUID, - AtLeastOneOf: []string{ - "azure_active_directory_role_based_access_control.0.client_app_id", "azure_active_directory_role_based_access_control.0.server_app_id", - "azure_active_directory_role_based_access_control.0.server_app_secret", "azure_active_directory_role_based_access_control.0.tenant_id", - "azure_active_directory_role_based_access_control.0.managed", "azure_active_directory_role_based_access_control.0.admin_group_object_ids", - }, - }, - - "server_app_secret": { - Deprecated: "Azure AD Integration (legacy) (https://aka.ms/aks/aad-legacy) is deprecated and clusters can no longer be created with the Azure AD integration (legacy) enabled. This field will be removed in v4.0 of the AzureRM Provider.", - Type: pluginsdk.TypeString, - Optional: true, - Sensitive: true, - ValidateFunc: validation.StringIsNotEmpty, - AtLeastOneOf: []string{ - "azure_active_directory_role_based_access_control.0.client_app_id", "azure_active_directory_role_based_access_control.0.server_app_id", - "azure_active_directory_role_based_access_control.0.server_app_secret", "azure_active_directory_role_based_access_control.0.tenant_id", - "azure_active_directory_role_based_access_control.0.managed", "azure_active_directory_role_based_access_control.0.admin_group_object_ids", - }, - }, - - "tenant_id": { - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - // OrEmpty since this can be sourced from the client config if it's not specified - ValidateFunc: validation.Any(validation.IsUUID, validation.StringIsEmpty), - AtLeastOneOf: []string{ - "azure_active_directory_role_based_access_control.0.client_app_id", "azure_active_directory_role_based_access_control.0.server_app_id", - "azure_active_directory_role_based_access_control.0.server_app_secret", "azure_active_directory_role_based_access_control.0.tenant_id", - "azure_active_directory_role_based_access_control.0.managed", "azure_active_directory_role_based_access_control.0.admin_group_object_ids", - }, - }, - - "managed": { - Deprecated: "Azure AD Integration (legacy) (https://aka.ms/aks/aad-legacy) is deprecated and clusters can no longer be created with the Azure AD integration (legacy) enabled. This field must be supplied with the value `true` for AKS-managed Entra Integration, but will be removed and defaulted to `true` for the user in v4.0 of the AzureRM Provider.", - Type: pluginsdk.TypeBool, - Optional: true, - AtLeastOneOf: []string{ - "azure_active_directory_role_based_access_control.0.client_app_id", "azure_active_directory_role_based_access_control.0.server_app_id", - "azure_active_directory_role_based_access_control.0.server_app_secret", "azure_active_directory_role_based_access_control.0.tenant_id", - "azure_active_directory_role_based_access_control.0.managed", "azure_active_directory_role_based_access_control.0.admin_group_object_ids", - }, - }, - - "azure_rbac_enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - }, - - "admin_group_object_ids": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.IsUUID, - }, - AtLeastOneOf: []string{ - "azure_active_directory_role_based_access_control.0.client_app_id", "azure_active_directory_role_based_access_control.0.server_app_id", - "azure_active_directory_role_based_access_control.0.server_app_secret", "azure_active_directory_role_based_access_control.0.tenant_id", - "azure_active_directory_role_based_access_control.0.managed", "azure_active_directory_role_based_access_control.0.admin_group_object_ids", - }, - }, - }, - }, - } - resource.Schema["workload_autoscaler_profile"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "keda_enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - "vertical_pod_autoscaler_enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - "vertical_pod_autoscaler_update_mode": { - Type: pluginsdk.TypeString, - Computed: true, - Deprecated: "The AKS API has removed support for this field on 2023-07-02-preview and is no longer possible to export this value. This property will be removed in v4.0 of the AzureRM provider.", - }, - "vertical_pod_autoscaler_controlled_values": { - Type: pluginsdk.TypeString, - Computed: true, - Deprecated: "The AKS API has removed support for this field on 2023-07-02-preview and is no longer possible to export this value. This property will be removed in v4.0 of the AzureRM provider.", - }, - }, - }, - } - resource.Schema["web_app_routing"].Elem.(*pluginsdk.Resource).Schema["dns_zone_id"] = &pluginsdk.Schema{ - Deprecated: "`dns_zone_id` has been deprecated in favor of `dns_zone_ids` and will be removed in v4.0 of the AzureRM Provider.", - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.Any( - dnsValidate.ValidateDnsZoneID, - privatezones.ValidatePrivateDnsZoneID, - validation.StringIsEmpty, - ), - ConflictsWith: []string{"web_app_routing.0.dns_zone_ids"}, - } - resource.Schema["web_app_routing"].Elem.(*pluginsdk.Resource).Schema["dns_zone_ids"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.Any( - dnsValidate.ValidateDnsZoneID, - privatezones.ValidatePrivateDnsZoneID, - validation.StringIsEmpty, - ), - }, - ConflictsWith: []string{"web_app_routing.0.dns_zone_id"}, - } - resource.Schema["public_network_access_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Default: true, - Deprecated: "`public_network_access_enabled` is currently not functional and is not be passed to the API, this property will be removed in v4.0 of the AzureRM provider.", - } - } - - if features.FourPointOhBeta() { - resource.Schema["automatic_upgrade_channel"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringInSlice([]string{ - string(managedclusters.UpgradeChannelPatch), - string(managedclusters.UpgradeChannelRapid), - string(managedclusters.UpgradeChannelStable), - string(managedclusters.UpgradeChannelNodeNegativeimage), - }, false), - } - resource.Schema["node_os_upgrade_channel"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Default: string(managedclusters.NodeOSUpgradeChannelNodeImage), - ValidateFunc: validation.StringInSlice([]string{ - string(managedclusters.NodeOSUpgradeChannelNodeImage), - string(managedclusters.NodeOSUpgradeChannelNone), - string(managedclusters.NodeOSUpgradeChannelSecurityPatch), - string(managedclusters.NodeOSUpgradeChannelUnmanaged), - }, false), - } - resource.Schema["service_mesh_profile"].Elem.(*pluginsdk.Resource).Schema["revisions"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Required: true, - MinItems: 1, - MaxItems: 2, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, - } - } - return resource } func resourceKubernetesClusterCreate(d *pluginsdk.ResourceData, meta interface{}) error { subscriptionId := meta.(*clients.Client).Account.SubscriptionId - tenantId := meta.(*clients.Client).Account.TenantId client := meta.(*clients.Client).Containers.KubernetesClustersClient keyVaultsClient := meta.(*clients.Client).KeyVault env := meta.(*clients.Client).Containers.Environment @@ -1870,10 +1604,7 @@ func resourceKubernetesClusterCreate(d *pluginsdk.ResourceData, meta interface{} var azureADProfile *managedclusters.ManagedClusterAADProfile if v, ok := d.GetOk("azure_active_directory_role_based_access_control"); ok { - azureADProfile, err = expandKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(v.([]interface{}), tenantId) - if err != nil { - return err - } + azureADProfile = expandKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(v.([]interface{})) } t := d.Get("tags").(map[string]interface{}) @@ -1891,12 +1622,6 @@ func resourceKubernetesClusterCreate(d *pluginsdk.ResourceData, meta interface{} nodeResourceGroup := d.Get("node_resource_group").(string) - if !features.FourPointOhBeta() { - if d.Get("enable_pod_security_policy").(bool) { - return fmt.Errorf("the AKS API has removed support for this field on 2020-10-15 and it is no longer possible to configure Pod Security Policy - as such you'll need to set `enable_pod_security_policy` to `false`") - } - } - autoScalerProfileRaw := d.Get("auto_scaler_profile").([]interface{}) autoScalerProfile := expandKubernetesClusterAutoScalerProfile(autoScalerProfileRaw) @@ -1935,7 +1660,7 @@ func resourceKubernetesClusterCreate(d *pluginsdk.ResourceData, meta interface{} } } - if !features.FourPointOhBeta() || d.Get("image_cleaner_enabled").(bool) { + if d.Get("image_cleaner_enabled").(bool) { securityProfile.ImageCleaner = &managedclusters.ManagedClusterSecurityProfileImageCleaner{ Enabled: utils.Bool(d.Get("image_cleaner_enabled").(bool)), IntervalHours: utils.Int64(int64(d.Get("image_cleaner_interval_hours").(int))), @@ -1950,21 +1675,12 @@ func resourceKubernetesClusterCreate(d *pluginsdk.ResourceData, meta interface{} autoUpgradeProfile := &managedclusters.ManagedClusterAutoUpgradeProfile{} - var autoChannelUpgrade, nodeOsChannelUpgrade string - if !features.FourPointOhBeta() { - autoChannelUpgrade = d.Get("automatic_channel_upgrade").(string) - nodeOsChannelUpgrade = d.Get("node_os_channel_upgrade").(string) - } else { - autoChannelUpgrade = d.Get("automatic_upgrade_channel").(string) - nodeOsChannelUpgrade = d.Get("node_os_upgrade_channel").(string) - } + autoChannelUpgrade := d.Get("automatic_upgrade_channel").(string) + nodeOsChannelUpgrade := d.Get("node_os_upgrade_channel").(string) // this check needs to be separate and gated since node_os_channel_upgrade is a preview feature if nodeOsChannelUpgrade != "" && autoChannelUpgrade != "" { if autoChannelUpgrade == string(managedclusters.UpgradeChannelNodeNegativeimage) && nodeOsChannelUpgrade != string(managedclusters.NodeOSUpgradeChannelNodeImage) { - if !features.FourPointOhBeta() { - return fmt.Errorf("`node_os_channel_upgrade` cannot be set to a value other than `NodeImage` if `automatic_channel_upgrade` is set to `node-image`") - } return fmt.Errorf("`node_os_upgrade_channel` cannot be set to a value other than `NodeImage` if `automatic_upgrade_channel` is set to `node-image`") } } @@ -2202,12 +1918,8 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{} } if d.HasChange("azure_active_directory_role_based_access_control") { - tenantId := meta.(*clients.Client).Account.TenantId azureADRaw := d.Get("azure_active_directory_role_based_access_control").([]interface{}) - azureADProfile, err := expandKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(azureADRaw, tenantId) - if err != nil { - return err - } + azureADProfile := expandKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(azureADRaw) props.AadProfile = azureADProfile if props.AadProfile != nil && (props.AadProfile.Managed == nil || !*props.AadProfile.Managed) { @@ -2257,12 +1969,6 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{} existing.Model.Properties.AzureMonitorProfile = azureMonitorProfile } - if !features.FourPointOhBeta() { - if d.HasChange("enable_pod_security_policy") && d.Get("enable_pod_security_policy").(bool) { - return fmt.Errorf("The AKS API has removed support for this field on 2020-10-15 and it is no longer possible to configure Pod Security Policy - as such you'll need to set `enable_pod_security_policy` to `false`") - } - } - if d.HasChange("linux_profile") { updateCluster = true linuxProfileRaw := d.Get("linux_profile").([]interface{}) @@ -2383,6 +2089,11 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{} loadBalancerProfile.AllocatedOutboundPorts = utils.Int64(int64(allocatedOutboundPorts)) } + if key := "network_profile.0.load_balancer_profile.0.backend_pool_type"; d.HasChange(key) { + backendPoolType := d.Get(key).(string) + loadBalancerProfile.BackendPoolType = pointer.To(managedclusters.BackendPoolType(backendPoolType)) + } + existing.Model.Properties.NetworkProfile.LoadBalancerProfile = &loadBalancerProfile } @@ -2405,13 +2116,6 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{} existing.Model.Properties.NetworkProfile.NatGatewayProfile = &natGatewayProfile } - if !features.FourPointOhBeta() { - if key := "network_profile.0.ebpf_data_plane"; d.HasChange(key) { - ebpfDataPlane := d.Get(key).(string) - existing.Model.Properties.NetworkProfile.NetworkDataplane = pointer.To(managedclusters.NetworkDataplane(ebpfDataPlane)) - } - } - if d.HasChange("network_profile.0.network_data_plane") { existing.Model.Properties.NetworkProfile.NetworkDataplane = pointer.To(managedclusters.NetworkDataplane(d.Get("network_profile.0.network_data_plane").(string))) } @@ -2476,10 +2180,6 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{} autoUpgradeChannel := "automatic_upgrade_channel" nodeOsUpgradeChannel := "node_os_upgrade_channel" - if !features.FourPointOhBeta() { - autoUpgradeChannel = "automatic_channel_upgrade" - nodeOsUpgradeChannel = "node_os_channel_upgrade" - } if d.HasChange(autoUpgradeChannel) { updateCluster = true if existing.Model.Properties.AutoUpgradeProfile == nil { @@ -2495,9 +2195,6 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{} if d.HasChange(nodeOsUpgradeChannel) { updateCluster = true if d.Get(autoUpgradeChannel).(string) == string(managedclusters.UpgradeChannelNodeNegativeimage) && d.Get(nodeOsUpgradeChannel).(string) != string(managedclusters.NodeOSUpgradeChannelNodeImage) { - if !features.FourPointOhBeta() { - return fmt.Errorf("`node_os_channel_upgrade` must be set to `NodeImage` if `automatic_channel_upgrade` is set to `node-image`") - } return fmt.Errorf("`node_os_upgrade_channel` must be set to `NodeImage` if `automatic_upgrade_channel` is set to `node-image`") } if existing.Model.Properties.AutoUpgradeProfile == nil { @@ -2662,10 +2359,6 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{} hostEncryptionEnabled := "default_node_pool.0.host_encryption_enabled" nodePublicIpEnabled := "default_node_pool.0.node_public_ip_enabled" - if !features.FourPointOhBeta() { - hostEncryptionEnabled = "default_node_pool.0.enable_host_encryption" - nodePublicIpEnabled = "default_node_pool.0.enable_node_public_ip" - } cycleNodePoolProperties := []string{ "default_node_pool.0.name", @@ -2889,9 +2582,6 @@ func resourceKubernetesClusterRead(d *pluginsdk.ResourceData, meta interface{}) d.Set("disk_encryption_set_id", props.DiskEncryptionSetID) d.Set("kubernetes_version", props.KubernetesVersion) d.Set("current_kubernetes_version", props.CurrentKubernetesVersion) - if !features.FourPointOhBeta() { - d.Set("enable_pod_security_policy", props.EnablePodSecurityPolicy) - } d.Set("local_account_disabled", props.DisableLocalAccounts) nodeResourceGroup := "" @@ -2914,21 +2604,8 @@ func resourceKubernetesClusterRead(d *pluginsdk.ResourceData, meta interface{}) } } - if !features.FourPointOhBeta() { - d.Set("automatic_channel_upgrade", upgradeChannel) - } else { - d.Set("automatic_upgrade_channel", upgradeChannel) - } - - if !features.FourPointOhBeta() { - // this was a preview feature and returns `node_os_channel_upgrade` when `automatic_channel_upgrade` is set to `node-image` - // which is why we were only setting this explicitly if it had been set in the config, keeping this as is for now - if v, ok := d.GetOk("node_os_channel_upgrade"); ok && v.(string) != "" { - d.Set("node_os_channel_upgrade", nodeOSUpgradeChannel) - } - } else { - d.Set("node_os_upgrade_channel", nodeOSUpgradeChannel) - } + d.Set("automatic_upgrade_channel", upgradeChannel) + d.Set("node_os_upgrade_channel", nodeOSUpgradeChannel) enablePrivateCluster := false enablePrivateClusterPublicFQDN := false @@ -2940,12 +2617,6 @@ func resourceKubernetesClusterRead(d *pluginsdk.ResourceData, meta interface{}) return fmt.Errorf("setting `api_server_access_profile`: %+v", err) } if accessProfile := props.ApiServerAccessProfile; accessProfile != nil { - if !features.FourPointOhBeta() { - apiServerAuthorizedIPRanges := utils.FlattenStringSlice(accessProfile.AuthorizedIPRanges) - if err := d.Set("api_server_authorized_ip_ranges", apiServerAuthorizedIPRanges); err != nil { - return fmt.Errorf("setting `api_server_authorized_ip_ranges`: %+v", err) - } - } if accessProfile.EnablePrivateCluster != nil { enablePrivateCluster = *accessProfile.EnablePrivateCluster } @@ -3024,8 +2695,7 @@ func resourceKubernetesClusterRead(d *pluginsdk.ResourceData, meta interface{}) return fmt.Errorf("setting `linux_profile`: %+v", err) } - networkProfileRaw := d.Get("network_profile").([]interface{}) - networkProfile := flattenKubernetesClusterNetworkProfile(props.NetworkProfile, networkProfileRaw) + networkProfile := flattenKubernetesClusterNetworkProfile(props.NetworkProfile) if err := d.Set("network_profile", networkProfile); err != nil { return fmt.Errorf("setting `network_profile`: %+v", err) } @@ -3041,7 +2711,7 @@ func resourceKubernetesClusterRead(d *pluginsdk.ResourceData, meta interface{}) } d.Set("role_based_access_control_enabled", rbacEnabled) - aadRbac := flattenKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(props, d) + aadRbac := flattenKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(props) if err := d.Set("azure_active_directory_role_based_access_control", aadRbac); err != nil { return fmt.Errorf("setting `azure_active_directory_role_based_access_control`: %+v", err) } @@ -3094,7 +2764,7 @@ func resourceKubernetesClusterRead(d *pluginsdk.ResourceData, meta interface{}) return fmt.Errorf("setting `microsoft_defender`: %+v", err) } - ingressProfile := flattenKubernetesClusterIngressProfile(props.IngressProfile, d.Get("web_app_routing").([]interface{})) + ingressProfile := flattenKubernetesClusterIngressProfile(props.IngressProfile) if err := d.Set("web_app_routing", ingressProfile); err != nil { return fmt.Errorf("setting `web_app_routing`: %+v", err) } @@ -3143,24 +2813,30 @@ func resourceKubernetesClusterRead(d *pluginsdk.ResourceData, meta interface{}) return fmt.Errorf("setting `kube_config`: %+v", err) } + var maintenanceWindow interface{} maintenanceConfigurationsClient := meta.(*clients.Client).Containers.MaintenanceConfigurationsClient maintenanceId := maintenanceconfigurations.NewMaintenanceConfigurationID(id.SubscriptionId, id.ResourceGroupName, id.ManagedClusterName, "default") configResp, _ := maintenanceConfigurationsClient.Get(ctx, maintenanceId) if configurationBody := configResp.Model; configurationBody != nil && configurationBody.Properties != nil { - d.Set("maintenance_window", flattenKubernetesClusterMaintenanceConfigurationDefault(configurationBody.Properties)) + maintenanceWindow = flattenKubernetesClusterMaintenanceConfigurationDefault(configurationBody.Properties) } + d.Set("maintenance_window", maintenanceWindow) + var maintenanceWindowAutoUpgrade interface{} maintenanceId = maintenanceconfigurations.NewMaintenanceConfigurationID(id.SubscriptionId, id.ResourceGroupName, id.ManagedClusterName, "aksManagedAutoUpgradeSchedule") configResp, _ = maintenanceConfigurationsClient.Get(ctx, maintenanceId) if configurationBody := configResp.Model; configurationBody != nil && configurationBody.Properties != nil && configurationBody.Properties.MaintenanceWindow != nil { - d.Set("maintenance_window_auto_upgrade", flattenKubernetesClusterMaintenanceConfiguration(configurationBody.Properties.MaintenanceWindow)) + maintenanceWindowAutoUpgrade = flattenKubernetesClusterMaintenanceConfiguration(configurationBody.Properties.MaintenanceWindow) } + d.Set("maintenance_window_auto_upgrade", maintenanceWindowAutoUpgrade) + var maintenanceWindowNodeOS interface{} maintenanceId = maintenanceconfigurations.NewMaintenanceConfigurationID(id.SubscriptionId, id.ResourceGroupName, id.ManagedClusterName, "aksManagedNodeOSUpgradeSchedule") configResp, _ = maintenanceConfigurationsClient.Get(ctx, maintenanceId) if configurationBody := configResp.Model; configurationBody != nil && configurationBody.Properties != nil && configurationBody.Properties.MaintenanceWindow != nil { - d.Set("maintenance_window_node_os", flattenKubernetesClusterMaintenanceConfiguration(configurationBody.Properties.MaintenanceWindow)) + maintenanceWindowNodeOS = flattenKubernetesClusterMaintenanceConfiguration(configurationBody.Properties.MaintenanceWindow) } + d.Set("maintenance_window_node_os", maintenanceWindowNodeOS) if err := tags.FlattenAndSet(d, model.Tags); err != nil { return fmt.Errorf("setting `tags`: %+v", err) @@ -3331,12 +3007,6 @@ func expandKubernetesClusterWindowsProfile(input []interface{}) *managedclusters } func expandKubernetesClusterAPIAccessProfile(d *pluginsdk.ResourceData) *managedclusters.ManagedClusterAPIServerAccessProfile { - apiServerAuthorizedIPRangesRaw := []interface{}{} - if !features.FourPointOhBeta() { - apiServerAuthorizedIPRangesRaw = d.Get("api_server_authorized_ip_ranges").(*pluginsdk.Set).List() - } - apiServerAuthorizedIPRanges := utils.ExpandStringSlice(apiServerAuthorizedIPRangesRaw) - enablePrivateCluster := false if v, ok := d.GetOk("private_cluster_enabled"); ok { enablePrivateCluster = v.(bool) @@ -3344,7 +3014,6 @@ func expandKubernetesClusterAPIAccessProfile(d *pluginsdk.ResourceData) *managed apiAccessProfile := &managedclusters.ManagedClusterAPIServerAccessProfile{ EnablePrivateCluster: &enablePrivateCluster, - AuthorizedIPRanges: apiServerAuthorizedIPRanges, EnablePrivateClusterPublicFQDN: utils.Bool(d.Get("private_cluster_public_fqdn_enabled").(bool)), DisableRunCommand: utils.Bool(!d.Get("run_command_enabled").(bool)), } @@ -3536,12 +3205,6 @@ func expandKubernetesClusterNetworkProfile(input []interface{}) (*managedcluster networkProfile.NetworkDataplane = pointer.To(managedclusters.NetworkDataplane(networkDataPlane)) } - if !features.FourPointOhBeta() { - if ebpfDataPlane := config["ebpf_data_plane"].(string); ebpfDataPlane != "" { - networkProfile.NetworkDataplane = pointer.To(managedclusters.NetworkDataplane(ebpfDataPlane)) - } - } - if networkPluginMode := config["network_plugin_mode"].(string); networkPluginMode != "" { networkProfile.NetworkPluginMode = pointer.To(managedclusters.NetworkPluginMode(networkPluginMode)) } @@ -3628,6 +3291,10 @@ func expandLoadBalancerProfile(d []interface{}) *managedclusters.ManagedClusterL profile.OutboundIPs = &managedclusters.ManagedClusterLoadBalancerProfileOutboundIPs{PublicIPs: outIps} } + if backendPoolType, ok := config["backend_pool_type"].(string); ok { + profile.BackendPoolType = pointer.To(managedclusters.BackendPoolType(backendPoolType)) + } + return profile } @@ -3710,7 +3377,7 @@ func resourceReferencesToIds(refs *[]managedclusters.ResourceReference) []string return nil } -func flattenKubernetesClusterNetworkProfile(profile *managedclusters.ContainerServiceNetworkProfile, raw []interface{}) []interface{} { +func flattenKubernetesClusterNetworkProfile(profile *managedclusters.ContainerServiceNetworkProfile) []interface{} { if profile == nil { return []interface{}{} } @@ -3720,16 +3387,6 @@ func flattenKubernetesClusterNetworkProfile(profile *managedclusters.ContainerSe dnsServiceIP = *profile.DnsServiceIP } - dockerBridgeCidr := "" - if !features.FourPointOhBeta() { - if len(raw) != 0 && raw[0] != nil { - config := raw[0].(map[string]interface{}) - if v, ok := config["docker_bridge_cidr"]; ok && v.(string) != "" { - dockerBridgeCidr = v.(string) - } - } - } - serviceCidr := "" if profile.ServiceCidr != nil { serviceCidr = *profile.ServiceCidr @@ -3799,6 +3456,10 @@ func flattenKubernetesClusterNetworkProfile(profile *managedclusters.ContainerSe } } + if v := lbp.BackendPoolType; v != nil { + lb["backend_pool_type"] = v + } + lb["effective_outbound_ips"] = resourceReferencesToIds(profile.LoadBalancerProfile.EffectiveOutboundIPs) lbProfiles = append(lbProfiles, lb) } @@ -3870,87 +3531,24 @@ func flattenKubernetesClusterNetworkProfile(profile *managedclusters.ContainerSe "outbound_type": outboundType, } - if !features.FourPointOhBeta() { - result["docker_bridge_cidr"] = dockerBridgeCidr - - ebpfDataPlane := "" - // 2023-02-02-preview returns the default value `azure` for this new property - // @stephybun: we should look into replacing `ebpf_data_plane` with a new property called `network_data_plane` - if v := profile.NetworkDataplane; v != nil && *v != managedclusters.NetworkDataplaneAzure { - ebpfDataPlane = string(*v) - } - result["ebpf_data_plane"] = ebpfDataPlane - } - return []interface{}{result} } -func expandKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(input []interface{}, providerTenantId string) (*managedclusters.ManagedClusterAADProfile, error) { +func expandKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(input []interface{}) *managedclusters.ManagedClusterAADProfile { if len(input) == 0 { - return nil, nil + return nil } azureAdRaw := input[0].(map[string]interface{}) - if features.FourPointOhBeta() { - adminGroupObjectIdsRaw := azureAdRaw["admin_group_object_ids"].([]interface{}) - adminGroupObjectIds := utils.ExpandStringSlice(adminGroupObjectIdsRaw) - return &managedclusters.ManagedClusterAADProfile{ - TenantID: pointer.To(azureAdRaw["tenant_id"].(string)), - Managed: pointer.To(true), - AdminGroupObjectIDs: adminGroupObjectIds, - EnableAzureRBAC: pointer.To(azureAdRaw["azure_rbac_enabled"].(bool)), - }, nil - } - - var aad *managedclusters.ManagedClusterAADProfile - clientAppId := azureAdRaw["client_app_id"].(string) - serverAppId := azureAdRaw["server_app_id"].(string) - serverAppSecret := azureAdRaw["server_app_secret"].(string) - tenantId := azureAdRaw["tenant_id"].(string) - managed := azureAdRaw["managed"].(bool) - azureRbacEnabled := azureAdRaw["azure_rbac_enabled"].(bool) adminGroupObjectIdsRaw := azureAdRaw["admin_group_object_ids"].([]interface{}) adminGroupObjectIds := utils.ExpandStringSlice(adminGroupObjectIdsRaw) - - if tenantId == "" { - tenantId = providerTenantId + return &managedclusters.ManagedClusterAADProfile{ + TenantID: pointer.To(azureAdRaw["tenant_id"].(string)), + Managed: pointer.To(true), + AdminGroupObjectIDs: adminGroupObjectIds, + EnableAzureRBAC: pointer.To(azureAdRaw["azure_rbac_enabled"].(bool)), } - - if managed { - aad = &managedclusters.ManagedClusterAADProfile{ - TenantID: utils.String(tenantId), - Managed: utils.Bool(managed), - AdminGroupObjectIDs: adminGroupObjectIds, - EnableAzureRBAC: utils.Bool(azureRbacEnabled), - } - - if clientAppId != "" || serverAppId != "" || serverAppSecret != "" { - return nil, fmt.Errorf("can't specify client_app_id or server_app_id or server_app_secret when using managed aad rbac (managed = true)") - } - } else { - aad = &managedclusters.ManagedClusterAADProfile{ - ClientAppID: utils.String(clientAppId), - ServerAppID: utils.String(serverAppId), - ServerAppSecret: utils.String(serverAppSecret), - TenantID: utils.String(tenantId), - Managed: utils.Bool(managed), - } - - if len(*adminGroupObjectIds) > 0 { - return nil, fmt.Errorf("can't specify admin_group_object_ids when using managed aad rbac (managed = false)") - } - - if clientAppId == "" || serverAppId == "" || serverAppSecret == "" { - return nil, fmt.Errorf("you must specify client_app_id and server_app_id and server_app_secret when using managed aad rbac (managed = false)") - } - - if azureRbacEnabled { - return nil, fmt.Errorf("you must enable Managed AAD before Azure RBAC can be enabled") - } - } - - return aad, nil } func expandKubernetesClusterManagedClusterIdentity(input []interface{}) (*identity.SystemOrUserAssignedMap, error) { @@ -3973,63 +3571,8 @@ func expandKubernetesClusterManagedClusterIdentity(input []interface{}) (*identi return &out, nil } -func flattenKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(input *managedclusters.ManagedClusterProperties, d *pluginsdk.ResourceData) []interface{} { +func flattenKubernetesClusterAzureActiveDirectoryRoleBasedAccessControl(input *managedclusters.ManagedClusterProperties) []interface{} { results := make([]interface{}, 0) - if !features.FourPointOhBeta() { - if profile := input.AadProfile; profile != nil { - adminGroupObjectIds := utils.FlattenStringSlice(profile.AdminGroupObjectIDs) - - clientAppId := "" - if profile.ClientAppID != nil { - clientAppId = *profile.ClientAppID - } - - managed := false - if profile.Managed != nil { - managed = *profile.Managed - } - - azureRbacEnabled := false - if profile.EnableAzureRBAC != nil { - azureRbacEnabled = *profile.EnableAzureRBAC - } - - serverAppId := "" - if profile.ServerAppID != nil { - serverAppId = *profile.ServerAppID - } - - serverAppSecret := "" - // since input.ServerAppSecret isn't returned we're pulling this out of the existing state (which won't work for Imports) - // azure_active_directory_role_based_access_control.0.server_app_secret - if existing, ok := d.GetOk("azure_active_directory_role_based_access_control"); ok { - aadRbacRaw := existing.([]interface{}) - if len(aadRbacRaw) > 0 { - aadRbac := aadRbacRaw[0].(map[string]interface{}) - if v := aadRbac["server_app_secret"]; v != nil { - serverAppSecret = v.(string) - } - } - } - - tenantId := "" - if profile.TenantID != nil { - tenantId = *profile.TenantID - } - - results = append(results, map[string]interface{}{ - "admin_group_object_ids": adminGroupObjectIds, - "client_app_id": clientAppId, - "managed": managed, - "server_app_id": serverAppId, - "server_app_secret": serverAppSecret, - "tenant_id": tenantId, - "azure_rbac_enabled": azureRbacEnabled, - }) - } - - return results - } if profile := input.AadProfile; profile != nil { adminGroupObjectIds := utils.FlattenStringSlice(profile.AdminGroupObjectIDs) @@ -4092,11 +3635,20 @@ func flattenKubernetesClusterAutoScalerProfile(profile *managedclusters.ManagedC balanceSimilarNodeGroups = strings.EqualFold(*profile.BalanceSimilarNodeGroups, "true") } + daemonsetEvictionForEmptyNodes := pointer.From(profile.DaemonsetEvictionForEmptyNodes) + + daemonsetEvictionForOccupiedNodes := true + if profile.DaemonsetEvictionForOccupiedNodes != nil { + daemonsetEvictionForOccupiedNodes = pointer.From(profile.DaemonsetEvictionForOccupiedNodes) + } + expander := "" if profile.Expander != nil { expander = string(*profile.Expander) } + ignoreDaemonsetsUtilization := pointer.From(profile.IgnoreDaemonsetsUtilization) + maxGracefulTerminationSec := "" if profile.MaxGracefulTerminationSec != nil { maxGracefulTerminationSec = *profile.MaxGracefulTerminationSec @@ -4182,23 +3734,26 @@ func flattenKubernetesClusterAutoScalerProfile(profile *managedclusters.ManagedC return []interface{}{ map[string]interface{}{ - "balance_similar_node_groups": balanceSimilarNodeGroups, - "expander": expander, - "max_graceful_termination_sec": maxGracefulTerminationSec, - "max_node_provisioning_time": maxNodeProvisionTime, - "max_unready_nodes": maxUnreadyNodes, - "max_unready_percentage": maxUnreadyPercentage, - "new_pod_scale_up_delay": newPodScaleUpDelay, - "scale_down_delay_after_add": scaleDownDelayAfterAdd, - "scale_down_delay_after_delete": scaleDownDelayAfterDelete, - "scale_down_delay_after_failure": scaleDownDelayAfterFailure, - "scale_down_unneeded": scaleDownUnneededTime, - "scale_down_unready": scaleDownUnreadyTime, - "scale_down_utilization_threshold": scaleDownUtilizationThreshold, - "empty_bulk_delete_max": emptyBulkDeleteMax, - "scan_interval": scanInterval, - "skip_nodes_with_local_storage": skipNodesWithLocalStorage, - "skip_nodes_with_system_pods": skipNodesWithSystemPods, + "balance_similar_node_groups": balanceSimilarNodeGroups, + "daemonset_eviction_for_empty_nodes_enabled": daemonsetEvictionForEmptyNodes, + "daemonset_eviction_for_occupied_nodes_enabled": daemonsetEvictionForOccupiedNodes, + "expander": expander, + "ignore_daemonsets_utilization_enabled": ignoreDaemonsetsUtilization, + "max_graceful_termination_sec": maxGracefulTerminationSec, + "max_node_provisioning_time": maxNodeProvisionTime, + "max_unready_nodes": maxUnreadyNodes, + "max_unready_percentage": maxUnreadyPercentage, + "new_pod_scale_up_delay": newPodScaleUpDelay, + "scale_down_delay_after_add": scaleDownDelayAfterAdd, + "scale_down_delay_after_delete": scaleDownDelayAfterDelete, + "scale_down_delay_after_failure": scaleDownDelayAfterFailure, + "scale_down_unneeded": scaleDownUnneededTime, + "scale_down_unready": scaleDownUnreadyTime, + "scale_down_utilization_threshold": scaleDownUtilizationThreshold, + "empty_bulk_delete_max": emptyBulkDeleteMax, + "scan_interval": scanInterval, + "skip_nodes_with_local_storage": skipNodesWithLocalStorage, + "skip_nodes_with_system_pods": skipNodesWithSystemPods, }, }, nil } @@ -4211,7 +3766,10 @@ func expandKubernetesClusterAutoScalerProfile(input []interface{}) *managedclust config := input[0].(map[string]interface{}) balanceSimilarNodeGroups := config["balance_similar_node_groups"].(bool) + daemonsetEvictionForEmptyNodes := config["daemonset_eviction_for_empty_nodes_enabled"].(bool) + daemonsetEvictionForOccupiedNodes := config["daemonset_eviction_for_occupied_nodes_enabled"].(bool) expander := config["expander"].(string) + ignoreDaemonsetsUtilization := config["ignore_daemonsets_utilization_enabled"].(bool) maxGracefulTerminationSec := config["max_graceful_termination_sec"].(string) maxNodeProvisionTime := config["max_node_provisioning_time"].(string) maxUnreadyNodes := fmt.Sprint(config["max_unready_nodes"].(int)) @@ -4229,23 +3787,26 @@ func expandKubernetesClusterAutoScalerProfile(input []interface{}) *managedclust skipNodesWithSystemPods := config["skip_nodes_with_system_pods"].(bool) return &managedclusters.ManagedClusterPropertiesAutoScalerProfile{ - BalanceSimilarNodeGroups: utils.String(strconv.FormatBool(balanceSimilarNodeGroups)), - Expander: pointer.To(managedclusters.Expander(expander)), - MaxGracefulTerminationSec: utils.String(maxGracefulTerminationSec), - MaxNodeProvisionTime: utils.String(maxNodeProvisionTime), - MaxTotalUnreadyPercentage: utils.String(maxUnreadyPercentage), - NewPodScaleUpDelay: utils.String(newPodScaleUpDelay), - OkTotalUnreadyCount: utils.String(maxUnreadyNodes), - ScaleDownDelayAfterAdd: utils.String(scaleDownDelayAfterAdd), - ScaleDownDelayAfterDelete: utils.String(scaleDownDelayAfterDelete), - ScaleDownDelayAfterFailure: utils.String(scaleDownDelayAfterFailure), - ScaleDownUnneededTime: utils.String(scaleDownUnneededTime), - ScaleDownUnreadyTime: utils.String(scaleDownUnreadyTime), - ScaleDownUtilizationThreshold: utils.String(scaleDownUtilizationThreshold), - MaxEmptyBulkDelete: utils.String(emptyBulkDeleteMax), - ScanInterval: utils.String(scanInterval), - SkipNodesWithLocalStorage: utils.String(strconv.FormatBool(skipNodesWithLocalStorage)), - SkipNodesWithSystemPods: utils.String(strconv.FormatBool(skipNodesWithSystemPods)), + BalanceSimilarNodeGroups: utils.String(strconv.FormatBool(balanceSimilarNodeGroups)), + DaemonsetEvictionForEmptyNodes: pointer.To(daemonsetEvictionForEmptyNodes), + DaemonsetEvictionForOccupiedNodes: pointer.To(daemonsetEvictionForOccupiedNodes), + Expander: pointer.To(managedclusters.Expander(expander)), + IgnoreDaemonsetsUtilization: pointer.To(ignoreDaemonsetsUtilization), + MaxGracefulTerminationSec: utils.String(maxGracefulTerminationSec), + MaxNodeProvisionTime: utils.String(maxNodeProvisionTime), + MaxTotalUnreadyPercentage: utils.String(maxUnreadyPercentage), + NewPodScaleUpDelay: utils.String(newPodScaleUpDelay), + OkTotalUnreadyCount: utils.String(maxUnreadyNodes), + ScaleDownDelayAfterAdd: utils.String(scaleDownDelayAfterAdd), + ScaleDownDelayAfterDelete: utils.String(scaleDownDelayAfterDelete), + ScaleDownDelayAfterFailure: utils.String(scaleDownDelayAfterFailure), + ScaleDownUnneededTime: utils.String(scaleDownUnneededTime), + ScaleDownUnreadyTime: utils.String(scaleDownUnreadyTime), + ScaleDownUtilizationThreshold: utils.String(scaleDownUtilizationThreshold), + MaxEmptyBulkDelete: utils.String(emptyBulkDeleteMax), + ScanInterval: utils.String(scanInterval), + SkipNodesWithLocalStorage: utils.String(strconv.FormatBool(skipNodesWithLocalStorage)), + SkipNodesWithSystemPods: utils.String(strconv.FormatBool(skipNodesWithSystemPods)), } } @@ -4794,7 +4355,6 @@ func expandKubernetesClusterServiceMeshProfile(input []interface{}, existing *ma istioIngressGatewaysList := make([]managedclusters.IstioIngressGateway, 0) if raw["internal_ingress_gateway_enabled"] != nil { - ingressGatewayElementInternal := managedclusters.IstioIngressGateway{ Enabled: raw["internal_ingress_gateway_enabled"].(bool), Mode: managedclusters.IstioIngressGatewayModeInternal, @@ -4804,7 +4364,6 @@ func expandKubernetesClusterServiceMeshProfile(input []interface{}, existing *ma } if raw["external_ingress_gateway_enabled"] != nil { - ingressGatewayElementExternal := managedclusters.IstioIngressGateway{ Enabled: raw["external_ingress_gateway_enabled"].(bool), Mode: managedclusters.IstioIngressGatewayModeExternal, @@ -4820,10 +4379,8 @@ func expandKubernetesClusterServiceMeshProfile(input []interface{}, existing *ma profile.Istio.CertificateAuthority = certificateAuthority } - if features.FourPointOhBeta() { - if raw["revisions"] != nil { - profile.Istio.Revisions = utils.ExpandStringSlice(raw["revisions"].([]interface{})) - } + if raw["revisions"] != nil { + profile.Istio.Revisions = utils.ExpandStringSlice(raw["revisions"].([]interface{})) } } @@ -4866,12 +4423,6 @@ func expandKubernetesClusterIngressProfile(d *pluginsdk.ResourceData, input []in } if input[0] != nil { config := input[0].(map[string]interface{}) - if !features.FourPointOhBeta() { - dnsZoneResourceId := config["dns_zone_id"].(string) - if dnsZoneResourceId != "" { - out.WebAppRouting.DnsZoneResourceIds = pointer.To([]string{dnsZoneResourceId}) - } - } if v := config["dns_zone_ids"]; v != nil { if dnsZoneResourceIds, ok := v.([]interface{}); ok && len(dnsZoneResourceIds) > 0 { out.WebAppRouting.DnsZoneResourceIds = utils.ExpandStringSlice(dnsZoneResourceIds) @@ -4881,26 +4432,13 @@ func expandKubernetesClusterIngressProfile(d *pluginsdk.ResourceData, input []in return &out } -func flattenKubernetesClusterIngressProfile(input *managedclusters.ManagedClusterIngressProfile, old []interface{}) []interface{} { +func flattenKubernetesClusterIngressProfile(input *managedclusters.ManagedClusterIngressProfile) []interface{} { if input == nil || input.WebAppRouting == nil || (input.WebAppRouting.Enabled != nil && !*input.WebAppRouting.Enabled) { return []interface{}{} } out := map[string]interface{}{} - useDnsZoneId := false - if !features.FourPointOhBeta() { - if len(old) > 0 && old[0] != nil { - oldConfig := old[0].(map[string]interface{}) - useDnsZoneId = oldConfig["dns_zone_id"].(string) != "" - } - } - if useDnsZoneId { - if v := input.WebAppRouting.DnsZoneResourceIds; v != nil && len(*v) != 0 { - out["dns_zone_id"] = (*v)[0] - } - } else { - out["dns_zone_ids"] = utils.FlattenStringSlice(input.WebAppRouting.DnsZoneResourceIds) - } + out["dns_zone_ids"] = utils.FlattenStringSlice(input.WebAppRouting.DnsZoneResourceIds) webAppRoutingIdentity := []interface{}{} @@ -4950,9 +4488,7 @@ func flattenKubernetesClusterAzureServiceMeshProfile(input *managedclusters.Serv } if (input.Istio.Components.IngressGateways != nil) && len(*input.Istio.Components.IngressGateways) > 0 { - for _, value := range *input.Istio.Components.IngressGateways { - mode := value.Mode enabled := value.Enabled @@ -4972,10 +4508,8 @@ func flattenKubernetesClusterAzureServiceMeshProfile(input *managedclusters.Serv returnMap["certificate_authority"] = flattenKubernetesClusterServiceMeshProfileCertificateAuthority(input.Istio.CertificateAuthority) } - if features.FourPointOhBeta() { - if input.Istio.Revisions != nil { - returnMap["revisions"] = utils.FlattenStringSlice(input.Istio.Revisions) - } + if input.Istio.Revisions != nil { + returnMap["revisions"] = utils.FlattenStringSlice(input.Istio.Revisions) } return []interface{}{returnMap} @@ -4995,7 +4529,6 @@ func flattenKubernetesClusterServiceMeshProfileCertificateAuthority(certificateA "key_object_name": pointer.From(certificateAuthority.Plugin.KeyObjectName), }, } - } func flattenKubernetesClusterAzureMonitorProfile(input *managedclusters.ManagedClusterAzureMonitorProfile) []interface{} { diff --git a/internal/services/containers/kubernetes_cluster_resource_test.go b/internal/services/containers/kubernetes_cluster_resource_test.go index 123957b70143..3da027809966 100644 --- a/internal/services/containers/kubernetes_cluster_resource_test.go +++ b/internal/services/containers/kubernetes_cluster_resource_test.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -851,47 +850,6 @@ resource "azurerm_kubernetes_cluster" "test" { } func (KubernetesClusterResource) storageProfile(data acceptance.TestData, controlPlaneVersion string) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-aks-%d" - location = "%s" -} - -resource "azurerm_kubernetes_cluster" "test" { - name = "acctestaks%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_prefix = "acctestaks%d" - kubernetes_version = %q - - default_node_pool { - name = "default" - node_count = 1 - vm_size = "Standard_DS2_v2" - upgrade_settings { - max_surge = "10%%" - } - } - - identity { - type = "SystemAssigned" - } - - storage_profile { - blob_driver_enabled = true - disk_driver_enabled = true - disk_driver_version = "v1" - file_driver_enabled = false - snapshot_controller_enabled = false - } -} - `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, controlPlaneVersion) - } return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/containers/kubernetes_cluster_scaling_resource_test.go b/internal/services/containers/kubernetes_cluster_scaling_resource_test.go index b71006154fd0..ce0bfa3968b6 100644 --- a/internal/services/containers/kubernetes_cluster_scaling_resource_test.go +++ b/internal/services/containers/kubernetes_cluster_scaling_resource_test.go @@ -97,7 +97,6 @@ func TestAccKubernetesCluster_updateVmSizeAfterFailureWithTempAndDefault(t *test }, data.ImportStep("default_node_pool.0.temporary_name_for_rotation"), }) - } func TestAccKubernetesCluster_updateVmSizeAfterFailureWithTempWithoutDefault(t *testing.T) { @@ -1067,6 +1066,7 @@ resource "azurerm_kubernetes_cluster" "test" { } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, olderKubernetesVersion) } + func (KubernetesClusterResource) autoScalingProfileConfigMinimal(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -1137,23 +1137,26 @@ resource "azurerm_kubernetes_cluster" "test" { } auto_scaler_profile { - balance_similar_node_groups = true - expander = "least-waste" - max_graceful_termination_sec = 15 - max_node_provisioning_time = "10m" - max_unready_nodes = 5 - max_unready_percentage = 50 - new_pod_scale_up_delay = "10s" - scan_interval = "10s" - scale_down_delay_after_add = "10m" - scale_down_delay_after_delete = "10s" - scale_down_delay_after_failure = "15m" - scale_down_unneeded = "15m" - scale_down_unready = "15m" - scale_down_utilization_threshold = "0.5" - empty_bulk_delete_max = "50" - skip_nodes_with_local_storage = false - skip_nodes_with_system_pods = false + balance_similar_node_groups = true + daemonset_eviction_for_empty_nodes_enabled = true + daemonset_eviction_for_occupied_nodes_enabled = false + expander = "least-waste" + ignore_daemonsets_utilization_enabled = true + max_graceful_termination_sec = 15 + max_node_provisioning_time = "10m" + max_unready_nodes = 5 + max_unready_percentage = 50 + new_pod_scale_up_delay = "10s" + scan_interval = "10s" + scale_down_delay_after_add = "10m" + scale_down_delay_after_delete = "10s" + scale_down_delay_after_failure = "15m" + scale_down_unneeded = "15m" + scale_down_unready = "15m" + scale_down_utilization_threshold = "0.5" + empty_bulk_delete_max = "50" + skip_nodes_with_local_storage = false + skip_nodes_with_system_pods = false } identity { diff --git a/internal/services/containers/kubernetes_cluster_trusted_access_role_binding_resource_gen.go b/internal/services/containers/kubernetes_cluster_trusted_access_role_binding_resource_gen.go index 9be04b2010e5..909be10c5678 100644 --- a/internal/services/containers/kubernetes_cluster_trusted_access_role_binding_resource_gen.go +++ b/internal/services/containers/kubernetes_cluster_trusted_access_role_binding_resource_gen.go @@ -15,8 +15,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -var _ sdk.Resource = KubernetesClusterTrustedAccessRoleBindingResource{} -var _ sdk.ResourceWithUpdate = KubernetesClusterTrustedAccessRoleBindingResource{} +var ( + _ sdk.Resource = KubernetesClusterTrustedAccessRoleBindingResource{} + _ sdk.ResourceWithUpdate = KubernetesClusterTrustedAccessRoleBindingResource{} +) type KubernetesClusterTrustedAccessRoleBindingResource struct{} @@ -34,9 +36,11 @@ type KubernetesClusterTrustedAccessRoleBindingResourceSchema struct { func (r KubernetesClusterTrustedAccessRoleBindingResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return trustedaccess.ValidateTrustedAccessRoleBindingID } + func (r KubernetesClusterTrustedAccessRoleBindingResource) ResourceType() string { return "azurerm_kubernetes_cluster_trusted_access_role_binding" } + func (r KubernetesClusterTrustedAccessRoleBindingResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "kubernetes_cluster_id": { @@ -63,9 +67,11 @@ func (r KubernetesClusterTrustedAccessRoleBindingResource) Arguments() map[strin }, } } + func (r KubernetesClusterTrustedAccessRoleBindingResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{} } + func (r KubernetesClusterTrustedAccessRoleBindingResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -110,6 +116,7 @@ func (r KubernetesClusterTrustedAccessRoleBindingResource) Create() sdk.Resource }, } } + func (r KubernetesClusterTrustedAccessRoleBindingResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -144,6 +151,7 @@ func (r KubernetesClusterTrustedAccessRoleBindingResource) Read() sdk.ResourceFu }, } } + func (r KubernetesClusterTrustedAccessRoleBindingResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -163,6 +171,7 @@ func (r KubernetesClusterTrustedAccessRoleBindingResource) Delete() sdk.Resource }, } } + func (r KubernetesClusterTrustedAccessRoleBindingResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -202,7 +211,6 @@ func (r KubernetesClusterTrustedAccessRoleBindingResource) Update() sdk.Resource } func (r KubernetesClusterTrustedAccessRoleBindingResource) mapKubernetesClusterTrustedAccessRoleBindingResourceSchemaToTrustedAccessRoleBinding(input KubernetesClusterTrustedAccessRoleBindingResourceSchema, output *trustedaccess.TrustedAccessRoleBinding) error { - if err := r.mapKubernetesClusterTrustedAccessRoleBindingResourceSchemaToTrustedAccessRoleBindingProperties(input, &output.Properties); err != nil { return fmt.Errorf("mapping Schema to SDK Field %q / Model %q: %+v", "TrustedAccessRoleBindingProperties", "Properties", err) } @@ -211,7 +219,6 @@ func (r KubernetesClusterTrustedAccessRoleBindingResource) mapKubernetesClusterT } func (r KubernetesClusterTrustedAccessRoleBindingResource) mapTrustedAccessRoleBindingToKubernetesClusterTrustedAccessRoleBindingResourceSchema(input trustedaccess.TrustedAccessRoleBinding, output *KubernetesClusterTrustedAccessRoleBindingResourceSchema) error { - if err := r.mapTrustedAccessRoleBindingPropertiesToKubernetesClusterTrustedAccessRoleBindingResourceSchema(input.Properties, output); err != nil { return fmt.Errorf("mapping SDK Field %q / Model %q to Schema: %+v", "TrustedAccessRoleBindingProperties", "Properties", err) } @@ -220,7 +227,6 @@ func (r KubernetesClusterTrustedAccessRoleBindingResource) mapTrustedAccessRoleB } func (r KubernetesClusterTrustedAccessRoleBindingResource) mapKubernetesClusterTrustedAccessRoleBindingResourceSchemaToTrustedAccessRoleBindingProperties(input KubernetesClusterTrustedAccessRoleBindingResourceSchema, output *trustedaccess.TrustedAccessRoleBindingProperties) error { - roles := make([]string, 0) for _, v := range input.Roles { roles = append(roles, v) @@ -232,7 +238,6 @@ func (r KubernetesClusterTrustedAccessRoleBindingResource) mapKubernetesClusterT } func (r KubernetesClusterTrustedAccessRoleBindingResource) mapTrustedAccessRoleBindingPropertiesToKubernetesClusterTrustedAccessRoleBindingResourceSchema(input trustedaccess.TrustedAccessRoleBindingProperties, output *KubernetesClusterTrustedAccessRoleBindingResourceSchema) error { - roles := make([]string, 0) for _, v := range input.Roles { roles = append(roles, v) diff --git a/internal/services/containers/kubernetes_cluster_trusted_access_role_binding_resource_gen_test.go b/internal/services/containers/kubernetes_cluster_trusted_access_role_binding_resource_gen_test.go index b2adaa8f240b..9ee7ad0ba92e 100644 --- a/internal/services/containers/kubernetes_cluster_trusted_access_role_binding_resource_gen_test.go +++ b/internal/services/containers/kubernetes_cluster_trusted_access_role_binding_resource_gen_test.go @@ -47,6 +47,7 @@ func TestAccKubernetesClusterTrustedAccessRoleBinding_requiresImport(t *testing. data.RequiresImportErrorStep(r.requiresImport), }) } + func (r KubernetesClusterTrustedAccessRoleBindingTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := trustedaccess.ParseTrustedAccessRoleBindingID(state.ID) if err != nil { @@ -60,6 +61,7 @@ func (r KubernetesClusterTrustedAccessRoleBindingTestResource) Exists(ctx contex return utils.Bool(resp.Model != nil), nil } + func (r KubernetesClusterTrustedAccessRoleBindingTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/containers/kubernetes_fleet_manager_resource.go b/internal/services/containers/kubernetes_fleet_manager_resource.go index b95fc93751d6..2fa078c01a9b 100644 --- a/internal/services/containers/kubernetes_fleet_manager_resource.go +++ b/internal/services/containers/kubernetes_fleet_manager_resource.go @@ -17,8 +17,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -var _ sdk.Resource = KubernetesFleetManagerResource{} -var _ sdk.ResourceWithUpdate = KubernetesFleetManagerResource{} +var ( + _ sdk.Resource = KubernetesFleetManagerResource{} + _ sdk.ResourceWithUpdate = KubernetesFleetManagerResource{} +) type KubernetesFleetManagerResource struct{} @@ -36,9 +38,11 @@ type KubernetesFleetManagerResourceSchema struct { func (r KubernetesFleetManagerResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return fleets.ValidateFleetID } + func (r KubernetesFleetManagerResource) ResourceType() string { return "azurerm_kubernetes_fleet_manager" } + func (r KubernetesFleetManagerResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "location": commonschema.Location(), @@ -74,9 +78,11 @@ func (r KubernetesFleetManagerResource) Arguments() map[string]*pluginsdk.Schema "tags": commonschema.Tags(), } } + func (r KubernetesFleetManagerResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{} } + func (r KubernetesFleetManagerResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -114,6 +120,7 @@ func (r KubernetesFleetManagerResource) Create() sdk.ResourceFunc { }, } } + func (r KubernetesFleetManagerResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -144,6 +151,7 @@ func (r KubernetesFleetManagerResource) Read() sdk.ResourceFunc { }, } } + func (r KubernetesFleetManagerResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -163,6 +171,7 @@ func (r KubernetesFleetManagerResource) Delete() sdk.ResourceFunc { }, } } + func (r KubernetesFleetManagerResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, diff --git a/internal/services/containers/kubernetes_fleet_manager_resource_test.go b/internal/services/containers/kubernetes_fleet_manager_resource_test.go index e44e19a6ec83..ba6e3dee9796 100644 --- a/internal/services/containers/kubernetes_fleet_manager_resource_test.go +++ b/internal/services/containers/kubernetes_fleet_manager_resource_test.go @@ -91,6 +91,7 @@ func TestAccKubernetesFleetManager_update(t *testing.T) { data.ImportStep(), }) } + func (r KubernetesFleetManagerTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := fleets.ParseFleetID(state.ID) if err != nil { @@ -104,6 +105,7 @@ func (r KubernetesFleetManagerTestResource) Exists(ctx context.Context, clients return utils.Bool(resp.Model != nil), nil } + func (r KubernetesFleetManagerTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/containers/kubernetes_fleet_member_resource_gen.go b/internal/services/containers/kubernetes_fleet_member_resource_gen.go index aad9e9c797b6..962d2d7d3084 100644 --- a/internal/services/containers/kubernetes_fleet_member_resource_gen.go +++ b/internal/services/containers/kubernetes_fleet_member_resource_gen.go @@ -16,8 +16,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -var _ sdk.Resource = KubernetesFleetMemberResource{} -var _ sdk.ResourceWithUpdate = KubernetesFleetMemberResource{} +var ( + _ sdk.Resource = KubernetesFleetMemberResource{} + _ sdk.ResourceWithUpdate = KubernetesFleetMemberResource{} +) type KubernetesFleetMemberResource struct{} @@ -35,9 +37,11 @@ type KubernetesFleetMemberResourceSchema struct { func (r KubernetesFleetMemberResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return fleetmembers.ValidateMemberID } + func (r KubernetesFleetMemberResource) ResourceType() string { return "azurerm_kubernetes_fleet_member" } + func (r KubernetesFleetMemberResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "kubernetes_cluster_id": { @@ -61,9 +65,11 @@ func (r KubernetesFleetMemberResource) Arguments() map[string]*pluginsdk.Schema }, } } + func (r KubernetesFleetMemberResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{} } + func (r KubernetesFleetMemberResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -108,6 +114,7 @@ func (r KubernetesFleetMemberResource) Create() sdk.ResourceFunc { }, } } + func (r KubernetesFleetMemberResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -142,6 +149,7 @@ func (r KubernetesFleetMemberResource) Read() sdk.ResourceFunc { }, } } + func (r KubernetesFleetMemberResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -161,6 +169,7 @@ func (r KubernetesFleetMemberResource) Delete() sdk.ResourceFunc { }, } } + func (r KubernetesFleetMemberResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -192,7 +201,6 @@ func (r KubernetesFleetMemberResource) Update() sdk.ResourceFunc { } func (r KubernetesFleetMemberResource) mapKubernetesFleetMemberResourceSchemaToFleetMember(input KubernetesFleetMemberResourceSchema, output *fleetmembers.FleetMember) error { - if output.Properties == nil { output.Properties = &fleetmembers.FleetMemberProperties{} } @@ -204,7 +212,6 @@ func (r KubernetesFleetMemberResource) mapKubernetesFleetMemberResourceSchemaToF } func (r KubernetesFleetMemberResource) mapFleetMemberToKubernetesFleetMemberResourceSchema(input fleetmembers.FleetMember, output *KubernetesFleetMemberResourceSchema) error { - if input.Properties == nil { input.Properties = &fleetmembers.FleetMemberProperties{} } @@ -228,7 +235,6 @@ func (r KubernetesFleetMemberResource) mapFleetMemberPropertiesToKubernetesFleet } func (r KubernetesFleetMemberResource) mapKubernetesFleetMemberResourceSchemaToFleetMemberUpdate(input KubernetesFleetMemberResourceSchema, output *fleetmembers.FleetMemberUpdate) error { - if output.Properties == nil { output.Properties = &fleetmembers.FleetMemberUpdateProperties{} } @@ -240,7 +246,6 @@ func (r KubernetesFleetMemberResource) mapKubernetesFleetMemberResourceSchemaToF } func (r KubernetesFleetMemberResource) mapFleetMemberUpdateToKubernetesFleetMemberResourceSchema(input fleetmembers.FleetMemberUpdate, output *KubernetesFleetMemberResourceSchema) error { - if input.Properties == nil { input.Properties = &fleetmembers.FleetMemberUpdateProperties{} } diff --git a/internal/services/containers/kubernetes_fleet_member_resource_gen_test.go b/internal/services/containers/kubernetes_fleet_member_resource_gen_test.go index 449e1a6f8e4e..eab48c1c0ac8 100644 --- a/internal/services/containers/kubernetes_fleet_member_resource_gen_test.go +++ b/internal/services/containers/kubernetes_fleet_member_resource_gen_test.go @@ -91,6 +91,7 @@ func TestAccKubernetesFleetMember_update(t *testing.T) { data.ImportStep(), }) } + func (r KubernetesFleetMemberTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := fleetmembers.ParseMemberID(state.ID) if err != nil { @@ -104,6 +105,7 @@ func (r KubernetesFleetMemberTestResource) Exists(ctx context.Context, clients * return utils.Bool(resp.Model != nil), nil } + func (r KubernetesFleetMemberTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/containers/kubernetes_fleet_update_run_resource.go b/internal/services/containers/kubernetes_fleet_update_run_resource.go index 16f3e34c91e5..aa86ceb520cc 100644 --- a/internal/services/containers/kubernetes_fleet_update_run_resource.go +++ b/internal/services/containers/kubernetes_fleet_update_run_resource.go @@ -18,8 +18,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.Resource = KubernetesFleetUpdateRunResource{} -var _ sdk.ResourceWithUpdate = KubernetesFleetUpdateRunResource{} +var ( + _ sdk.Resource = KubernetesFleetUpdateRunResource{} + _ sdk.ResourceWithUpdate = KubernetesFleetUpdateRunResource{} +) type KubernetesFleetUpdateRunResource struct{} @@ -422,7 +424,6 @@ func flattenKubernetesFleetUpdateRunStage(input []updateruns.UpdateStage) []Kube }) } return output - } func flattenKubernetesFleetUpdateRunGroup(input *[]updateruns.UpdateGroup) []KubernetesFleetUpdateRunResourceUpdateGroupSchema { diff --git a/internal/services/containers/kubernetes_fleet_update_run_resource_test.go b/internal/services/containers/kubernetes_fleet_update_run_resource_test.go index 3779d11c7d39..0d1cc2a0e08a 100644 --- a/internal/services/containers/kubernetes_fleet_update_run_resource_test.go +++ b/internal/services/containers/kubernetes_fleet_update_run_resource_test.go @@ -91,6 +91,7 @@ func TestAccKubernetesFleetUpdateRun_update(t *testing.T) { data.ImportStep(), }) } + func (r KubernetesFleetUpdateRunTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := updateruns.ParseUpdateRunID(state.ID) if err != nil { @@ -104,6 +105,7 @@ func (r KubernetesFleetUpdateRunTestResource) Exists(ctx context.Context, client return pointer.To(resp.Model != nil), nil } + func (r KubernetesFleetUpdateRunTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/containers/kubernetes_fleet_update_strategy_resource.go b/internal/services/containers/kubernetes_fleet_update_strategy_resource.go index 845a62614ca1..d00a1f4bcc3c 100644 --- a/internal/services/containers/kubernetes_fleet_update_strategy_resource.go +++ b/internal/services/containers/kubernetes_fleet_update_strategy_resource.go @@ -18,8 +18,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.Resource = KubernetesFleetUpdateStrategyResource{} -var _ sdk.ResourceWithUpdate = KubernetesFleetUpdateStrategyResource{} +var ( + _ sdk.Resource = KubernetesFleetUpdateStrategyResource{} + _ sdk.ResourceWithUpdate = KubernetesFleetUpdateStrategyResource{} +) type KubernetesFleetUpdateStrategyResource struct{} @@ -217,6 +219,7 @@ func (r KubernetesFleetUpdateStrategyResource) Read() sdk.ResourceFunc { }, } } + func (r KubernetesFleetUpdateStrategyResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -269,7 +272,6 @@ func flattenKubernetesFleetUpdateStrategyStage(input []fleetupdatestrategies.Upd }) } return output - } func flattenKubernetesFleetUpdateStrategyGroup(input *[]fleetupdatestrategies.UpdateGroup) []KubernetesFleetUpdateStrategyResourceUpdateGroupSchema { diff --git a/internal/services/containers/kubernetes_fleet_update_strategy_resource_test.go b/internal/services/containers/kubernetes_fleet_update_strategy_resource_test.go index 8537de3e6385..b2e6c8a5b307 100644 --- a/internal/services/containers/kubernetes_fleet_update_strategy_resource_test.go +++ b/internal/services/containers/kubernetes_fleet_update_strategy_resource_test.go @@ -91,6 +91,7 @@ func TestAccKubernetesFleetUpdateStrategy_update(t *testing.T) { data.ImportStep(), }) } + func (r KubernetesFleetUpdateStrategyTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := fleetupdatestrategies.ParseUpdateStrategyID(state.ID) if err != nil { @@ -104,6 +105,7 @@ func (r KubernetesFleetUpdateStrategyTestResource) Exists(ctx context.Context, c return utils.Bool(resp.Model != nil), nil } + func (r KubernetesFleetUpdateStrategyTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/containers/kubernetes_flux_configuration_resource.go b/internal/services/containers/kubernetes_flux_configuration_resource.go index 3814185e3ee6..1badab9cf242 100644 --- a/internal/services/containers/kubernetes_flux_configuration_resource.go +++ b/internal/services/containers/kubernetes_flux_configuration_resource.go @@ -104,9 +104,7 @@ type ManagedIdentityDefinitionModel struct { type KubernetesFluxConfigurationResource struct{} -var ( - _ sdk.ResourceWithUpdate = KubernetesFluxConfigurationResource{} -) +var _ sdk.ResourceWithUpdate = KubernetesFluxConfigurationResource{} func (r KubernetesFluxConfigurationResource) ResourceType() string { return "azurerm_kubernetes_flux_configuration" @@ -920,7 +918,7 @@ func expandBucketDefinitionModel(inputList []BucketDefinitionModel) (*fluxconfig output.Url = &input.Url } - var configSettings = make(map[string]string) + configSettings := make(map[string]string) if input.SecretKey != "" { configSettings["bucketSecretKey"] = input.SecretKey } @@ -971,7 +969,7 @@ func expandGitRepositoryDefinitionModel(inputList []GitRepositoryDefinitionModel output.Url = &input.Url } - var configSettings = make(map[string]string) + configSettings := make(map[string]string) if input.HttpsKey != "" { configSettings["httpsKey"] = input.HttpsKey } diff --git a/internal/services/containers/kubernetes_nodepool.go b/internal/services/containers/kubernetes_nodepool.go index beee8363b934..d8747c83769b 100644 --- a/internal/services/containers/kubernetes_nodepool.go +++ b/internal/services/containers/kubernetes_nodepool.go @@ -22,7 +22,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" computeValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/containers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -1136,14 +1135,6 @@ func ExpandDefaultNodePool(d *pluginsdk.ResourceData) (*[]managedclusters.Manage nodeLabelsRaw := raw["node_labels"].(map[string]interface{}) nodeLabels := expandNodeLabels(nodeLabelsRaw) var nodeTaints *[]string - if !features.FourPointOhBeta() { - nodeTaintsRaw := raw["node_taints"].([]interface{}) - nodeTaints = utils.ExpandStringSlice(nodeTaintsRaw) - } - - if !features.FourPointOhBeta() && len(*nodeTaints) != 0 { - return nil, fmt.Errorf("The AKS API has removed support for tainting all nodes in the default node pool and it is no longer possible to configure this. To taint a node pool, create a separate one.") - } criticalAddonsEnabled := raw["only_critical_addons_enabled"].(bool) if criticalAddonsEnabled { diff --git a/internal/services/containers/migration/registry.go b/internal/services/containers/migration/registry.go index 6d8987fff73e..1e9fe9186a27 100644 --- a/internal/services/containers/migration/registry.go +++ b/internal/services/containers/migration/registry.go @@ -93,7 +93,7 @@ func registrySchemaForV0AndV1() map[string]*pluginsdk.Schema { Default: false, }, - //lintignore:S018 + // lintignore:S018 "storage_account": { Type: pluginsdk.TypeSet, Required: true, diff --git a/internal/services/containers/migration/registry_webhook_migration_v0_to_v1.go b/internal/services/containers/migration/registry_webhook_migration_v0_to_v1.go index bf4f86491a08..b5d8f02ccb98 100644 --- a/internal/services/containers/migration/registry_webhook_migration_v0_to_v1.go +++ b/internal/services/containers/migration/registry_webhook_migration_v0_to_v1.go @@ -8,7 +8,7 @@ import ( "log" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourcegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/containers/parse/cluster.go b/internal/services/containers/parse/cluster.go index 585f0d7b4424..34ef22fdfdff 100644 --- a/internal/services/containers/parse/cluster.go +++ b/internal/services/containers/parse/cluster.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ClusterID(input string) (*ClusterId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ManagedClusterName, err = id.PopSegment("managedClusters"); err != nil { diff --git a/internal/services/containers/parse/cluster_test.go b/internal/services/containers/parse/cluster_test.go index 11a9439fdab6..2d9976b7fea1 100644 --- a/internal/services/containers/parse/cluster_test.go +++ b/internal/services/containers/parse/cluster_test.go @@ -27,7 +27,6 @@ func TestClusterID(t *testing.T) { Error bool Expected *ClusterId }{ - { // empty Input: "", diff --git a/internal/services/containers/parse/container_registry_task_schedule.go b/internal/services/containers/parse/container_registry_task_schedule.go index c87992c7feba..4239aa178cf6 100644 --- a/internal/services/containers/parse/container_registry_task_schedule.go +++ b/internal/services/containers/parse/container_registry_task_schedule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ContainerRegistryTaskScheduleID(input string) (*ContainerRegistryTaskSchedu } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.RegistryName, err = id.PopSegment("registries"); err != nil { diff --git a/internal/services/containers/parse/container_registry_task_schedule_test.go b/internal/services/containers/parse/container_registry_task_schedule_test.go index d6d653f71a87..cffaa30fa333 100644 --- a/internal/services/containers/parse/container_registry_task_schedule_test.go +++ b/internal/services/containers/parse/container_registry_task_schedule_test.go @@ -27,7 +27,6 @@ func TestContainerRegistryTaskScheduleID(t *testing.T) { Error bool Expected *ContainerRegistryTaskScheduleId }{ - { // empty Input: "", diff --git a/internal/services/containers/parse/container_registry_token_password.go b/internal/services/containers/parse/container_registry_token_password.go index 9348d8c5c620..dc43580795dc 100644 --- a/internal/services/containers/parse/container_registry_token_password.go +++ b/internal/services/containers/parse/container_registry_token_password.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ContainerRegistryTokenPasswordID(input string) (*ContainerRegistryTokenPass } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.RegistryName, err = id.PopSegment("registries"); err != nil { diff --git a/internal/services/containers/parse/container_registry_token_password_test.go b/internal/services/containers/parse/container_registry_token_password_test.go index f109ae449431..0c923182f311 100644 --- a/internal/services/containers/parse/container_registry_token_password_test.go +++ b/internal/services/containers/parse/container_registry_token_password_test.go @@ -27,7 +27,6 @@ func TestContainerRegistryTokenPasswordID(t *testing.T) { Error bool Expected *ContainerRegistryTokenPasswordId }{ - { // empty Input: "", diff --git a/internal/services/containers/parse/node_pool.go b/internal/services/containers/parse/node_pool.go index dbe7a64dae70..6dd4e09f44a0 100644 --- a/internal/services/containers/parse/node_pool.go +++ b/internal/services/containers/parse/node_pool.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func NodePoolID(input string) (*NodePoolId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ManagedClusterName, err = id.PopSegment("managedClusters"); err != nil { diff --git a/internal/services/containers/parse/node_pool_test.go b/internal/services/containers/parse/node_pool_test.go index b7898a5cc17d..dc846b8a13f8 100644 --- a/internal/services/containers/parse/node_pool_test.go +++ b/internal/services/containers/parse/node_pool_test.go @@ -27,7 +27,6 @@ func TestNodePoolID(t *testing.T) { Error bool Expected *NodePoolId }{ - { // empty Input: "", diff --git a/internal/services/containers/parse/repo_notification_test.go b/internal/services/containers/parse/repo_notification_test.go index bc5e514a695c..4bc065682c88 100644 --- a/internal/services/containers/parse/repo_notification_test.go +++ b/internal/services/containers/parse/repo_notification_test.go @@ -11,7 +11,6 @@ func TestRepositoryNotification(t *testing.T) { Error bool Expected *RepositoryNotification }{ - { // empty Input: "", diff --git a/internal/services/containers/probe.go b/internal/services/containers/probe.go index 6c8281559845..b0c2eb40182f 100644 --- a/internal/services/containers/probe.go +++ b/internal/services/containers/probe.go @@ -5,11 +5,8 @@ package containers import ( "github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) @@ -31,7 +28,7 @@ func SchemaContainerGroupProbe() *pluginsdk.Schema { }, }, - //lintignore:XS003 + // lintignore:XS003 "http_get": { Type: pluginsdk.TypeList, Optional: true, @@ -54,13 +51,7 @@ func SchemaContainerGroupProbe() *pluginsdk.Schema { Type: pluginsdk.TypeString, Optional: true, ForceNew: true, - ValidateFunc: validation.StringInSlice(containerinstance.PossibleValuesForScheme(), !features.FourPointOhBeta()), - DiffSuppressFunc: func() func(string, string, string, *schema.ResourceData) bool { - if !features.FourPointOhBeta() { - return suppress.CaseDifference - } - return nil - }(), + ValidateFunc: validation.StringInSlice(containerinstance.PossibleValuesForScheme(), false), }, "http_headers": { Type: pluginsdk.TypeMap, diff --git a/internal/services/containers/registration_gen.go b/internal/services/containers/registration_gen.go index 0599621840a2..97fb68764ec9 100644 --- a/internal/services/containers/registration_gen.go +++ b/internal/services/containers/registration_gen.go @@ -6,8 +6,7 @@ import "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" var _ sdk.TypedServiceRegistration = autoRegistration{} -type autoRegistration struct { -} +type autoRegistration struct{} func (autoRegistration) Name() string { return "ContainerService" diff --git a/internal/services/containers/validate/cluster_id_test.go b/internal/services/containers/validate/cluster_id_test.go index 7f99b342a02b..6b1ed0419459 100644 --- a/internal/services/containers/validate/cluster_id_test.go +++ b/internal/services/containers/validate/cluster_id_test.go @@ -12,7 +12,6 @@ func TestClusterID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/containers/validate/container_registry_task_schedule_id_test.go b/internal/services/containers/validate/container_registry_task_schedule_id_test.go index 82dcc84cbac0..d297bd119069 100644 --- a/internal/services/containers/validate/container_registry_task_schedule_id_test.go +++ b/internal/services/containers/validate/container_registry_task_schedule_id_test.go @@ -12,7 +12,6 @@ func TestContainerRegistryTaskScheduleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/containers/validate/container_registry_token_password_id_test.go b/internal/services/containers/validate/container_registry_token_password_id_test.go index 37aecb0f351e..077200d2dec4 100644 --- a/internal/services/containers/validate/container_registry_token_password_id_test.go +++ b/internal/services/containers/validate/container_registry_token_password_id_test.go @@ -12,7 +12,6 @@ func TestContainerRegistryTokenPasswordID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/containers/validate/kubernetes_test.go b/internal/services/containers/validate/kubernetes_test.go index a60edded2d08..93cba7eeeb21 100644 --- a/internal/services/containers/validate/kubernetes_test.go +++ b/internal/services/containers/validate/kubernetes_test.go @@ -170,7 +170,6 @@ func TestKubernetesGitRepositoryUrl(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/containers/validate/node_pool_id_test.go b/internal/services/containers/validate/node_pool_id_test.go index 1f0fdef98f9f..baf408ac3351 100644 --- a/internal/services/containers/validate/node_pool_id_test.go +++ b/internal/services/containers/validate/node_pool_id_test.go @@ -12,7 +12,6 @@ func TestNodePoolID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/common/indexing_policy.go b/internal/services/cosmos/common/indexing_policy.go index a634b23cb47b..9ae353952ba4 100644 --- a/internal/services/cosmos/common/indexing_policy.go +++ b/internal/services/cosmos/common/indexing_policy.go @@ -17,8 +17,7 @@ func expandAzureRmCosmosDBIndexingPolicyIncludedPaths(input []interface{}) *[]co return nil } - var includedPaths []cosmosdb.IncludedPath - + includedPaths := make([]cosmosdb.IncludedPath, 0, len(input)) for _, v := range input { includedPath := v.(map[string]interface{}) path := cosmosdb.IncludedPath{ @@ -36,8 +35,7 @@ func expandAzureRmCosmosDBIndexingPolicyExcludedPaths(input []interface{}) *[]co return nil } - var paths []cosmosdb.ExcludedPath - + paths := make([]cosmosdb.ExcludedPath, 0, len(input)) for _, v := range input { block := v.(map[string]interface{}) paths = append(paths, cosmosdb.ExcludedPath{ diff --git a/internal/services/cosmos/cosmosdb_account_resource.go b/internal/services/cosmos/cosmosdb_account_resource.go index 23efd070ac4e..4bf28877f6a1 100644 --- a/internal/services/cosmos/cosmosdb_account_resource.go +++ b/internal/services/cosmos/cosmosdb_account_resource.go @@ -25,13 +25,15 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/customermanagedkeys" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/common" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/validate" - keyVaultParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" keyVaultSuppress "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/suppress" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" + managedHsmValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -126,7 +128,7 @@ func suppressConsistencyPolicyStalenessConfiguration(_, _, _ string, d *pluginsd } func resourceCosmosDbAccount() *pluginsdk.Resource { - return &pluginsdk.Resource{ + resource := &pluginsdk.Resource{ Create: resourceCosmosDbAccountCreate, Read: resourceCosmosDbAccountRead, Update: resourceCosmosDbAccountUpdate, @@ -252,10 +254,12 @@ func resourceCosmosDbAccount() *pluginsdk.Resource { // per Microsoft's documentation, as of April 1 2023 the default minimal TLS version for all new accounts is 1.2 "minimal_tls_version": { - Type: pluginsdk.TypeString, - Optional: true, - Default: string(cosmosdb.MinimalTlsVersionTlsOneTwo), - ValidateFunc: validation.StringInSlice(cosmosdb.PossibleValuesForMinimalTlsVersion(), false), + Type: pluginsdk.TypeString, + Optional: true, + Default: string(cosmosdb.MinimalTlsVersionTlsOneTwo), + ValidateFunc: validation.StringInSlice([]string{ + string(cosmosdb.MinimalTlsVersionTlsOneTwo), + }, false), }, "create_mode": { @@ -336,6 +340,15 @@ func resourceCosmosDbAccount() *pluginsdk.Resource { ForceNew: true, DiffSuppressFunc: keyVaultSuppress.DiffSuppressIgnoreKeyVaultKeyVersion, ValidateFunc: keyVaultValidate.VersionlessNestedItemId, + ConflictsWith: []string{"managed_hsm_key_id"}, + }, + + "managed_hsm_key_id": { + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + ValidateFunc: managedHsmValidate.ManagedHSMDataPlaneVersionlessKeyID, + ConflictsWith: []string{"key_vault_key_id"}, }, "consistency_policy": { @@ -478,15 +491,10 @@ func resourceCosmosDbAccount() *pluginsdk.Resource { }, "mongo_server_version": { - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{ - string(cosmosdb.ServerVersionThreePointTwo), - string(cosmosdb.ServerVersionThreePointSix), - string(cosmosdb.ServerVersionFourPointZero), - string(cosmosdb.ServerVersionFourPointTwo), - }, false), + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: validation.StringInSlice(cosmosdb.PossibleValuesForServerVersion(), false), }, "multiple_write_locations_enabled": { @@ -759,12 +767,24 @@ func resourceCosmosDbAccount() *pluginsdk.Resource { "tags": commonschema.Tags(), }, } + + if !features.FivePointOhBeta() { + resource.Schema["minimal_tls_version"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + Default: string(cosmosdb.MinimalTlsVersionTlsOneTwo), + ValidateFunc: validation.StringInSlice(cosmosdb.PossibleValuesForMinimalTlsVersion(), false), + } + } + + return resource } func resourceCosmosDbAccountCreate(d *pluginsdk.ResourceData, meta interface{}) error { client := meta.(*clients.Client).Cosmos.CosmosDBClient databaseClient := meta.(*clients.Client).Cosmos.DatabaseClient - subscriptionId := meta.(*clients.Client).Account.SubscriptionId + accountClient := meta.(*clients.Client).Account + subscriptionId := accountClient.SubscriptionId ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() log.Printf("[INFO] Preparing arguments for AzureRM Cosmos DB Account creation") @@ -902,12 +922,10 @@ func resourceCosmosDbAccountCreate(d *pluginsdk.ResourceData, meta interface{}) return fmt.Errorf("`create_mode` only works when `backup.type` is `Continuous`") } - if keyVaultKeyIDRaw, ok := d.GetOk("key_vault_key_id"); ok { - keyVaultKey, err := keyVaultParse.ParseOptionallyVersionedNestedItemID(keyVaultKeyIDRaw.(string)) - if err != nil { - return fmt.Errorf("could not parse Key Vault Key ID: %+v", err) - } - account.Properties.KeyVaultKeyUri = pointer.To(keyVaultKey.ID()) + if key, err := customermanagedkeys.ExpandKeyVaultOrManagedHSMKey(d, customermanagedkeys.VersionTypeAny, accountClient.Environment.KeyVault, accountClient.Environment.ManagedHSM); err != nil { + return fmt.Errorf("parse key vault key id: %+v", err) + } else if key != nil { + account.Properties.KeyVaultKeyUri = pointer.To(key.ID()) } // additional validation on MaxStalenessPrefix as it varies depending on if the DB is multi region or not @@ -942,6 +960,7 @@ func resourceCosmosDbAccountCreate(d *pluginsdk.ResourceData, meta interface{}) func resourceCosmosDbAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) error { client := meta.(*clients.Client).Cosmos.CosmosDBClient + apiEnvs := meta.(*clients.Client).Account.Environment // subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -1049,7 +1068,7 @@ func resourceCosmosDbAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) // TODO Post 4.0 remove `enable_automatic_failover` from this list if d.HasChanges("consistency_policy", "virtual_network_rule", "cors_rule", "access_key_metadata_writes_enabled", "network_acl_bypass_for_azure_services", "network_acl_bypass_ids", "analytical_storage", - "capacity", "create_mode", "restore", "key_vault_key_id", "mongo_server_version", + "capacity", "create_mode", "restore", "key_vault_key_id", "managed_hsm_key_id", "mongo_server_version", "public_network_access_enabled", "ip_range_filter", "offer_type", "is_virtual_network_filter_enabled", "kind", "tags", "enable_automatic_failover", "automatic_failover_enabled", "analytical_storage_enabled", "local_authentication_disabled", "partition_merge_enabled", "minimal_tls_version", "burst_capacity_enabled") { @@ -1106,12 +1125,10 @@ func resourceCosmosDbAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) Tags: t, } - if keyVaultKeyIDRaw, ok := d.GetOk("key_vault_key_id"); ok { - keyVaultKey, err := keyVaultParse.ParseOptionallyVersionedNestedItemID(keyVaultKeyIDRaw.(string)) - if err != nil { - return fmt.Errorf("could not parse Key Vault Key ID: %+v", err) - } - account.Properties.KeyVaultKeyUri = pointer.To(keyVaultKey.ID()) + if key, err := customermanagedkeys.ExpandKeyVaultOrManagedHSMKey(d, customermanagedkeys.VersionTypeAny, apiEnvs.KeyVault, apiEnvs.ManagedHSM); err != nil { + return err + } else if key != nil { + account.Properties.KeyVaultKeyUri = pointer.To(key.ID()) } // 'default_identity_type' will always have a value since it now has a default value of "FirstPartyIdentity" per the API documentation. @@ -1390,16 +1407,25 @@ func resourceCosmosDbAccountRead(d *pluginsdk.ResourceData, meta interface{}) er d.Set("partition_merge_enabled", pointer.From(props.EnablePartitionMerge)) d.Set("burst_capacity_enabled", pointer.From(props.EnableBurstCapacity)) - if v := existing.Model.Properties.IsVirtualNetworkFilterEnabled; v != nil { + if v := props.IsVirtualNetworkFilterEnabled; v != nil { d.Set("is_virtual_network_filter_enabled", props.IsVirtualNetworkFilterEnabled) } - if v := existing.Model.Properties.EnableAutomaticFailover; v != nil { + if v := props.EnableAutomaticFailover; v != nil { d.Set("automatic_failover_enabled", props.EnableAutomaticFailover) } - if v := existing.Model.Properties.KeyVaultKeyUri; v != nil { - d.Set("key_vault_key_id", props.KeyVaultKeyUri) + if v := props.KeyVaultKeyUri; v != nil { + envs := meta.(*clients.Client).Account.Environment + if key, err := customermanagedkeys.FlattenKeyVaultOrManagedHSMID(*v, envs.ManagedHSM); err != nil { + return fmt.Errorf("flatten key vault uri: %+v", err) + } else if key.IsSet() { + if key.KeyVaultKeyId != nil { + d.Set("key_vault_key_id", key.KeyVaultKeyId.ID()) + } else { + d.Set("managed_hsm_key_id", key.ManagedHSMKeyID()) + } + } } if v := existing.Model.Properties.EnableMultipleWriteLocations; v != nil { @@ -2268,10 +2294,10 @@ func prepareCapabilities(capabilities interface{}) *[]cosmosdb.Capability { for _, v := range capabilities.(*pluginsdk.Set).List() { m := v.(map[string]interface{}) if c, ok := m["name"].(string); ok { - cap := cosmosdb.Capability{ + capability := cosmosdb.Capability{ Name: pointer.To(c), } - output = append(output, cap) + output = append(output, capability) } } return &output diff --git a/internal/services/cosmos/cosmosdb_account_resource_test.go b/internal/services/cosmos/cosmosdb_account_resource_test.go index fefcb5605d4e..648c45a30c30 100644 --- a/internal/services/cosmos/cosmosdb_account_resource_test.go +++ b/internal/services/cosmos/cosmosdb_account_resource_test.go @@ -6,11 +6,14 @@ package cosmos_test import ( "context" "fmt" + "os" "regexp" "strconv" "testing" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-08-15/cosmosdb" + "github.com/hashicorp/go-uuid" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" @@ -18,7 +21,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type CosmosDBAccountResource struct{} @@ -121,6 +123,26 @@ func TestAccCosmosDBAccount_keyVaultUri(t *testing.T) { }) } +func TestAccCosmosDBAccount_ManagedHSMUri(t *testing.T) { + if os.Getenv("ARM_TEST_HSM_KEY") == "" { + t.Skip("Skipping as ARM_TEST_HSM_KEY is not specified") + return + } + + data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") + r := CosmosDBAccountResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.managedHSMKey(data), + Check: acceptance.ComposeAggregateTestCheckFunc( + checkAccCosmosDBAccount_basic(data, cosmosdb.DefaultConsistencyLevelStrong, 1), + ), + }, + data.ImportStep(), + }) +} + func TestAccCosmosDBAccount_customerManagedKeyWithIdentity(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") r := CosmosDBAccountResource{} @@ -225,6 +247,9 @@ func TestAccCosmosDBAccount_updateTagsWithUserAssignedDefaultIdentity(t *testing } func TestAccCosmosDBAccount_minimalTlsVersion(t *testing.T) { + if features.FivePointOhBeta() { + t.Skipf("There is no more available values for `minimal_tls_version` to test.") + } data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") r := CosmosDBAccountResource{} @@ -945,9 +970,6 @@ func TestAccCosmosDBAccount_updateCapacity(t *testing.T) { } func TestAccCosmosDBAccount_vNetFilters(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skip("this test requires 4.0 mode") - } data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") r := CosmosDBAccountResource{} @@ -964,27 +986,6 @@ func TestAccCosmosDBAccount_vNetFilters(t *testing.T) { }) } -// TODO 4.0 remove post 4.0 -func TestAccCosmosDBAccount_vNetFiltersThreePointOh(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("this test requires 3.0 mode") - } - data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") - r := CosmosDBAccountResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.vNetFiltersThreePointOh(data), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("is_virtual_network_filter_enabled").HasValue("true"), - check.That(data.ResourceName).Key("virtual_network_rule.#").HasValue("2"), - ), - }, - data.ImportStep(), - }) -} - func TestAccCosmosDBAccount_identity(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") r := CosmosDBAccountResource{} @@ -1228,7 +1229,52 @@ func TestAccCosmosDBAccount_mongoVersion42(t *testing.T) { data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.basicMongoDBVersion42(data, cosmosdb.DefaultConsistencyLevelSession), + Config: r.basicMongoDBVersion(data, cosmosdb.DefaultConsistencyLevelSession, "4.2"), + Check: acceptance.ComposeAggregateTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccCosmosDBAccount_mongoVersion50(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") + r := CosmosDBAccountResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicMongoDBVersion(data, cosmosdb.DefaultConsistencyLevelStrong, "5.0"), + Check: acceptance.ComposeAggregateTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccCosmosDBAccount_mongoVersion60(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") + r := CosmosDBAccountResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicMongoDBVersion(data, cosmosdb.DefaultConsistencyLevelSession, "6.0"), + Check: acceptance.ComposeAggregateTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccCosmosDBAccount_mongoVersion70(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") + r := CosmosDBAccountResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicMongoDBVersion(data, cosmosdb.DefaultConsistencyLevelSession, "7.0"), Check: acceptance.ComposeAggregateTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -1382,92 +1428,7 @@ func TestAccCosmosDBAccount_gremlinDatabasesToRestore(t *testing.T) { }) } -// TODO 4.0 remove post 4.0 -func TestAccCosmosDBAccount_ipRangeFiltersThreePointOh(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("this test requires 3.0 mode") - } - data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") - r := CosmosDBAccountResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.ipRangeFiltersThreePointOh(data), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.ipRangeFiltersUpdatedThreePointOh(data), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.vNetFiltersThreePointOh(data), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccCosmosDBAccount_supersededProperties(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("this test contains deprecated properties and can be removed post 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") - // Limited regional availability - data.Locations.Primary = "westeurope" - data.Locations.Secondary = "northeurope" - r := CosmosDBAccountResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basicMongoDB(data, cosmosdb.DefaultConsistencyLevelEventual), - Check: acceptance.ComposeAggregateTestCheckFunc( - checkAccCosmosDBAccount_basic(data, cosmosdb.DefaultConsistencyLevelEventual, 1), - ), - }, - data.ImportStep(), - { - Config: r.supersededProperties(data, cosmosdb.DefaultConsistencyLevelEventual), - Check: acceptance.ComposeAggregateTestCheckFunc( - checkAccCosmosDBAccount_basic(data, cosmosdb.DefaultConsistencyLevelEventual, 2), - ), - }, - data.ImportStep(), - }) -} - -func TestAccCosmosDBAccount_supersededFreeTier(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("this test contains deprecated properties and can be removed post 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") - r := CosmosDBAccountResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.supersededFreeTier(data, "GlobalDocumentDB", cosmosdb.DefaultConsistencyLevelEventual), - Check: acceptance.ComposeAggregateTestCheckFunc( - checkAccCosmosDBAccount_basic(data, cosmosdb.DefaultConsistencyLevelEventual, 1), - check.That(data.ResourceName).Key("enable_free_tier").HasValue("true"), - ), - }, - data.ImportStep(), - }) -} - func TestAccCosmosDBAccount_ipRangeFilters(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skip("this test requires 4.0 mode") - } data := acceptance.BuildTestData(t, "azurerm_cosmosdb_account", "test") r := CosmosDBAccountResource{} @@ -1519,7 +1480,7 @@ func (t CosmosDBAccountResource) Exists(ctx context.Context, clients *clients.Cl return nil, fmt.Errorf("reading Cosmos Database (%s): %+v", id.String(), err) } - return utils.Bool(resp.ID != nil), nil + return pointer.To(resp.ID != nil), nil } func (CosmosDBAccountResource) basic(data acceptance.TestData, kind cosmosdb.DatabaseAccountKind, consistency cosmosdb.DefaultConsistencyLevel) string { @@ -2584,47 +2545,6 @@ resource "azurerm_cosmosdb_account" "test" { `, r.vNetFiltersPreReqs(data), data.RandomInteger) } -func (r CosmosDBAccountResource) vNetFiltersThreePointOh(data acceptance.TestData) string { - return fmt.Sprintf(` -%[1]s - -resource "azurerm_cosmosdb_account" "test" { - name = "acctest-ca-%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - offer_type = "Standard" - kind = "GlobalDocumentDB" - - multiple_write_locations_enabled = false - automatic_failover_enabled = false - - consistency_policy { - consistency_level = "Eventual" - max_interval_in_seconds = 5 - max_staleness_prefix = 100 - } - - is_virtual_network_filter_enabled = true - ip_range_filter = "" - - virtual_network_rule { - id = azurerm_subnet.subnet1.id - ignore_missing_vnet_service_endpoint = true - } - - virtual_network_rule { - id = azurerm_subnet.subnet2.id - ignore_missing_vnet_service_endpoint = false - } - - geo_location { - location = azurerm_resource_group.test.location - failover_priority = 0 - } -} -`, r.vNetFiltersPreReqs(data), data.RandomInteger) -} - func (CosmosDBAccountResource) freeTier(data acceptance.TestData, kind cosmosdb.DatabaseAccountKind, consistency cosmosdb.DefaultConsistencyLevel) string { return fmt.Sprintf(` provider "azurerm" { @@ -3361,6 +3281,202 @@ resource "azurerm_cosmosdb_account" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString, data.RandomInteger, string(kind), string(consistency)) } +func (CosmosDBAccountResource) managedHSMKey(data acceptance.TestData) string { + // Purge Protection must be enabled to configure Managed HSM Key: https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-setup-customer-managed-keys-mhsm#configure-your-azure-managed-hsm-key-vault + // hsmTemplate := customermanagedkeys.ManagedHSMKeyTempalte(data.RandomInteger, data.RandomString, enablePurgeProtection, []string{"data.azuread_service_principal.cosmosdb.id"}) + raName1, _ := uuid.GenerateUUID() + raName2, _ := uuid.GenerateUUID() + raName3, _ := uuid.GenerateUUID() + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +provider "azuread" {} + +data "azurerm_client_config" "current" {} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-cosmos-%[1]d" + location = "%[2]s" +} + +resource "azurerm_user_assigned_identity" "test" { + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + name = "acctest-user-example" +} + +data "azuread_service_principal" "cosmosdb" { + display_name = "Azure Cosmos DB" +} + +resource "azurerm_key_vault" "test" { + name = "acc%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + tenant_id = data.azurerm_client_config.current.tenant_id + sku_name = "standard" + soft_delete_retention_days = 7 + access_policy { + tenant_id = data.azurerm_client_config.current.tenant_id + object_id = data.azurerm_client_config.current.object_id + certificate_permissions = [ + "Create", + "Delete", + "DeleteIssuers", + "Get", + "Purge", + "Update" + ] + } + tags = { + environment = "Production" + } +} + +resource "azurerm_key_vault_certificate" "cert" { + count = 3 + name = "acchsmcert${count.index}" + key_vault_id = azurerm_key_vault.test.id + certificate_policy { + issuer_parameters { + name = "Self" + } + key_properties { + exportable = true + key_size = 2048 + key_type = "RSA" + reuse_key = true + } + lifetime_action { + action { + action_type = "AutoRenew" + } + trigger { + days_before_expiry = 30 + } + } + secret_properties { + content_type = "application/x-pkcs12" + } + x509_certificate_properties { + extended_key_usage = [] + key_usage = [ + "cRLSign", + "dataEncipherment", + "digitalSignature", + "keyAgreement", + "keyCertSign", + "keyEncipherment", + ] + subject = "CN=hello-world" + validity_in_months = 12 + } + } +} + +resource "azurerm_key_vault_managed_hardware_security_module" "test" { + name = "kvHsm%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + sku_name = "Standard_B1" + tenant_id = data.azurerm_client_config.current.tenant_id + admin_object_ids = [data.azurerm_client_config.current.object_id] + purge_protection_enabled = true + soft_delete_retention_days = 7 + + security_domain_key_vault_certificate_ids = [for cert in azurerm_key_vault_certificate.cert : cert.id] + security_domain_quorum = 3 +} + +data "azurerm_key_vault_managed_hardware_security_module_role_definition" "crypto-officer" { + name = "515eb02d-2335-4d2d-92f2-b1cbdf9c3778" + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id +} + +data "azurerm_key_vault_managed_hardware_security_module_role_definition" "crypto-user" { + name = "21dbd100-6940-42c2-9190-5d6cb909625b" + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id +} + +data "azurerm_key_vault_managed_hardware_security_module_role_definition" "encrypt-user" { + name = "33413926-3206-4cdd-b39a-83574fe37a17" + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id +} + +resource "azurerm_key_vault_managed_hardware_security_module_role_assignment" "client1" { + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id + name = "%[3]s" + scope = "/keys" + role_definition_id = data.azurerm_key_vault_managed_hardware_security_module_role_definition.crypto-officer.resource_manager_id + principal_id = data.azurerm_client_config.current.object_id +} + +resource "azurerm_key_vault_managed_hardware_security_module_role_assignment" "client2" { + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id + name = "%[4]s" + scope = "/keys" + role_definition_id = data.azurerm_key_vault_managed_hardware_security_module_role_definition.crypto-user.resource_manager_id + principal_id = data.azurerm_client_config.current.object_id +} + +resource "azurerm_key_vault_managed_hardware_security_module_role_assignment" "racosmos" { + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id + name = "%[5]s" + scope = "/keys" + role_definition_id = data.azurerm_key_vault_managed_hardware_security_module_role_definition.encrypt-user.resource_manager_id + principal_id = data.azuread_service_principal.cosmosdb.object_id + + depends_on = [azurerm_key_vault_managed_hardware_security_module_key.test] +} + +resource "azurerm_key_vault_managed_hardware_security_module_key" "test" { + name = "acctestHSMK-%[1]d" + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id + key_type = "RSA-HSM" + key_size = 2048 + key_opts = ["unwrapKey", "wrapKey"] + + depends_on = [ + azurerm_key_vault_managed_hardware_security_module_role_assignment.client1, + azurerm_key_vault_managed_hardware_security_module_role_assignment.client2 + ] +} + +resource "azurerm_cosmosdb_account" "test" { + name = "acc-ca-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + offer_type = "Standard" + kind = "MongoDB" + managed_hsm_key_id = azurerm_key_vault_managed_hardware_security_module_key.test.id + + capabilities { + name = "EnableMongo" + } + + consistency_policy { + consistency_level = "Strong" + } + + geo_location { + location = azurerm_resource_group.test.location + failover_priority = 0 + } + + identity { + type = "UserAssigned" + identity_ids = [ + azurerm_user_assigned_identity.test.id + ] + } + + // depends_on = [azurerm_key_vault_managed_hardware_security_module_role_assignment.racosmos] +} +`, data.RandomInteger, data.Locations.Primary, raName1, raName2, raName3) +} + func (CosmosDBAccountResource) systemAssignedUserAssignedIdentity(data acceptance.TestData, consistency cosmosdb.DefaultConsistencyLevel) string { return fmt.Sprintf(` provider "azurerm" { @@ -3942,7 +4058,7 @@ resource "azurerm_cosmosdb_account" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, string(consistency)) } -func (CosmosDBAccountResource) basicMongoDBVersion42(data acceptance.TestData, consistency cosmosdb.DefaultConsistencyLevel) string { +func (CosmosDBAccountResource) basicMongoDBVersion(data acceptance.TestData, consistency cosmosdb.DefaultConsistencyLevel, version string) string { return fmt.Sprintf(` provider "azurerm" { features {} @@ -3959,7 +4075,7 @@ resource "azurerm_cosmosdb_account" "test" { resource_group_name = azurerm_resource_group.test.name offer_type = "Standard" kind = "MongoDB" - mongo_server_version = "4.2" + mongo_server_version = "%s" capabilities { name = "EnableMongo" @@ -3974,7 +4090,7 @@ resource "azurerm_cosmosdb_account" "test" { failover_priority = 0 } } -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, string(consistency)) +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, version, string(consistency)) } func (CosmosDBAccountResource) basicWithLocalAuthenticationDisabled(data acceptance.TestData, kind cosmosdb.DatabaseAccountKind, consistency cosmosdb.DefaultConsistencyLevel) string { @@ -4664,88 +4780,6 @@ resource "azurerm_cosmosdb_account" "test" { `, r.vNetFiltersPreReqs(data), data.RandomInteger) } -func (r CosmosDBAccountResource) ipRangeFiltersThreePointOh(data acceptance.TestData) string { - return fmt.Sprintf(` -%[1]s - -resource "azurerm_cosmosdb_account" "test" { - name = "acctest-ca-%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - offer_type = "Standard" - kind = "GlobalDocumentDB" - - multiple_write_locations_enabled = false - automatic_failover_enabled = false - - consistency_policy { - consistency_level = "Eventual" - max_interval_in_seconds = 5 - max_staleness_prefix = 100 - } - - is_virtual_network_filter_enabled = true - ip_range_filter = "55.0.1.0/24" - - virtual_network_rule { - id = azurerm_subnet.subnet1.id - ignore_missing_vnet_service_endpoint = true - } - - virtual_network_rule { - id = azurerm_subnet.subnet2.id - ignore_missing_vnet_service_endpoint = false - } - - geo_location { - location = azurerm_resource_group.test.location - failover_priority = 0 - } -} -`, r.vNetFiltersPreReqs(data), data.RandomInteger) -} - -func (r CosmosDBAccountResource) ipRangeFiltersUpdatedThreePointOh(data acceptance.TestData) string { - return fmt.Sprintf(` -%[1]s - -resource "azurerm_cosmosdb_account" "test" { - name = "acctest-ca-%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - offer_type = "Standard" - kind = "GlobalDocumentDB" - - multiple_write_locations_enabled = false - automatic_failover_enabled = false - - consistency_policy { - consistency_level = "Eventual" - max_interval_in_seconds = 5 - max_staleness_prefix = 100 - } - - is_virtual_network_filter_enabled = true - ip_range_filter = "55.0.1.0/24,55.0.2.0/24" - - virtual_network_rule { - id = azurerm_subnet.subnet1.id - ignore_missing_vnet_service_endpoint = true - } - - virtual_network_rule { - id = azurerm_subnet.subnet2.id - ignore_missing_vnet_service_endpoint = false - } - - geo_location { - location = azurerm_resource_group.test.location - failover_priority = 0 - } -} -`, r.vNetFiltersPreReqs(data), data.RandomInteger) -} - func (CosmosDBAccountResource) updateTagWithUserAssignedDefaultIdentity(data acceptance.TestData, tag string) string { return fmt.Sprintf(` provider "azurerm" { @@ -4841,96 +4875,3 @@ resource "azurerm_cosmosdb_account" "test" { } `, r.completePreReqs(data), data.RandomInteger, string(kind), string(consistency), data.Locations.Secondary, data.Locations.Ternary) } - -func (CosmosDBAccountResource) supersededProperties(data acceptance.TestData, consistency cosmosdb.DefaultConsistencyLevel) string { - return fmt.Sprintf(` -variable "geo_location" { - type = list(object({ - location = string - failover_priority = string - zone_redundant = bool - })) - default = [ - { - location = "%s" - failover_priority = 0 - zone_redundant = false - }, - { - location = "%s" - failover_priority = 1 - zone_redundant = true - } - ] -} - -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-cosmos-%d" - location = "%s" -} - -resource "azurerm_cosmosdb_account" "test" { - name = "acctest-ca-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - offer_type = "Standard" - kind = "MongoDB" - - capabilities { - name = "EnableMongo" - } - - enable_multiple_write_locations = true - enable_automatic_failover = true - - consistency_policy { - consistency_level = "%s" - } - - dynamic "geo_location" { - for_each = var.geo_location - content { - location = geo_location.value.location - failover_priority = geo_location.value.failover_priority - zone_redundant = geo_location.value.zone_redundant - } - } -} -`, data.Locations.Primary, data.Locations.Secondary, data.RandomInteger, data.Locations.Primary, data.RandomInteger, string(consistency)) -} - -func (CosmosDBAccountResource) supersededFreeTier(data acceptance.TestData, kind cosmosdb.DatabaseAccountKind, consistency cosmosdb.DefaultConsistencyLevel) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-cosmos-%d" - location = "%s" -} - -resource "azurerm_cosmosdb_account" "test" { - name = "acctest-ca-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - offer_type = "Standard" - kind = "%s" - - enable_free_tier = true - - consistency_policy { - consistency_level = "%s" - } - - geo_location { - location = azurerm_resource_group.test.location - failover_priority = 0 - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, string(kind), string(consistency)) -} diff --git a/internal/services/cosmos/cosmosdb_cassandra_datacenter_resource.go b/internal/services/cosmos/cosmosdb_cassandra_datacenter_resource.go index 829a90858194..6333e2bb4dd0 100644 --- a/internal/services/cosmos/cosmosdb_cassandra_datacenter_resource.go +++ b/internal/services/cosmos/cosmosdb_cassandra_datacenter_resource.go @@ -17,7 +17,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/validate" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -93,23 +92,33 @@ func resourceCassandraDatacenter() *pluginsdk.Resource { Optional: true, ValidateFunc: keyVaultValidate.NestedItemId, }, + "node_count": { Type: pluginsdk.TypeInt, Optional: true, ValidateFunc: validation.IntAtLeast(3), Default: 3, }, + "disk_count": { Type: pluginsdk.TypeInt, Optional: true, ValidateFunc: validation.IntBetween(1, 10), }, + "availability_zones_enabled": { Type: pluginsdk.TypeBool, Optional: true, Default: true, }, + "sku_name": { + Type: pluginsdk.TypeString, + Optional: true, + Default: "Standard_E16s_v5", + ValidateFunc: validation.StringIsNotEmpty, + }, + "seed_node_ip_addresses": { Type: pluginsdk.TypeList, Computed: true, @@ -120,25 +129,6 @@ func resourceCassandraDatacenter() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - // NOTE: The API does not expose a constant for the Sku so I had to hardcode it here... - // Per the service team, the current default Sku is 'Standard_DS14_v2' but moving forward - // the new default value should be 'Standard_E16s_v5'. - resource.Schema["sku_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringIsNotEmpty, - } - } else { - resource.Schema["sku_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Default: "Standard_E16s_v5", - ValidateFunc: validation.StringIsNotEmpty, - } - } - return resource } diff --git a/internal/services/cosmos/cosmosdb_cassandra_datacenter_resource_test.go b/internal/services/cosmos/cosmosdb_cassandra_datacenter_resource_test.go index 606321ee719d..c7cae4ab7616 100644 --- a/internal/services/cosmos/cosmosdb_cassandra_datacenter_resource_test.go +++ b/internal/services/cosmos/cosmosdb_cassandra_datacenter_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -63,61 +62,32 @@ func testAccCassandraDatacenter_updateSku(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_cosmosdb_cassandra_datacenter", "test") r := CassandraDatacenterResource{} - if !features.FourPointOhBeta() { - data.ResourceSequentialTest(t, r, []acceptance.TestStep{ - { - Config: r.basicSku(data, "Standard_DS14_v2"), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku_name").HasValue("Standard_DS14_v2"), - ), - }, - data.ImportStep(), - { - Config: r.basicSku(data, "Standard_DS13_v2"), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku_name").HasValue("Standard_DS13_v2"), - ), - }, - data.ImportStep(), - { - Config: r.basicSku(data, "Standard_DS14_v2"), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku_name").HasValue("Standard_DS14_v2"), - ), - }, - data.ImportStep(), - }) - } else { - data.ResourceSequentialTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku_name").HasValue("Standard_E16s_v5"), - ), - }, - data.ImportStep(), - { - Config: r.basicSku(data, "Standard_E8s_v5"), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku_name").HasValue("Standard_E8s_v5"), - ), - }, - data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeAggregateTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku_name").HasValue("Standard_E16s_v5"), - ), - }, - data.ImportStep(), - }) - } + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeAggregateTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("sku_name").HasValue("Standard_E16s_v5"), + ), + }, + data.ImportStep(), + { + Config: r.basicSku(data, "Standard_E8s_v5"), + Check: acceptance.ComposeAggregateTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("sku_name").HasValue("Standard_E8s_v5"), + ), + }, + data.ImportStep(), + { + Config: r.basic(data), + Check: acceptance.ComposeAggregateTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("sku_name").HasValue("Standard_E16s_v5"), + ), + }, + data.ImportStep(), + }) } func (t CassandraDatacenterResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { diff --git a/internal/services/cosmos/cosmosdb_gremlin_graph_resource.go b/internal/services/cosmos/cosmosdb_gremlin_graph_resource.go index ad78f94d1aa0..bade709d6a2d 100644 --- a/internal/services/cosmos/cosmosdb_gremlin_graph_resource.go +++ b/internal/services/cosmos/cosmosdb_gremlin_graph_resource.go @@ -336,7 +336,6 @@ func resourceCosmosDbGremlinGraphUpdate(d *pluginsdk.ResourceData, meta interfac return fmt.Errorf("setting Throughput for Cosmos Gremlin Graph %q (Account: %q, Database: %q): %+v - "+ "If the graph has not been created with an initial throughput, you cannot configure it later", id.GraphName, id.DatabaseAccountName, id.GremlinDatabaseName, err) } - } return resourceCosmosDbGremlinGraphRead(d, meta) diff --git a/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go b/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go index e62977abf7cf..8a9b64395204 100644 --- a/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go +++ b/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go @@ -292,8 +292,7 @@ func expandPrivilege(input []Privilege) *[]mongorbacs.Privilege { return nil } - var result []mongorbacs.Privilege - + result := make([]mongorbacs.Privilege, 0, len(input)) for _, v := range input { output := mongorbacs.Privilege{ Actions: pointer.To(v.Actions), @@ -307,11 +306,11 @@ func expandPrivilege(input []Privilege) *[]mongorbacs.Privilege { } func flattenPrivilege(input *[]mongorbacs.Privilege) []Privilege { - var result []Privilege if input == nil { - return result + return []Privilege{} } + result := make([]Privilege, 0, len(*input)) for _, input := range *input { privilege := Privilege{ Actions: pointer.From(input.Actions), @@ -362,8 +361,7 @@ func expandInheritedRoles(input []string, dbName string) *[]mongorbacs.Role { return nil } - var result []mongorbacs.Role - + result := make([]mongorbacs.Role, 0, len(input)) for _, v := range input { inheritedRole := mongorbacs.Role{ Db: pointer.To(dbName), @@ -377,11 +375,11 @@ func expandInheritedRoles(input []string, dbName string) *[]mongorbacs.Role { } func flattenInheritedRoles(input *[]mongorbacs.Role) []string { - var result []string if input == nil { - return result + return []string{} } + result := make([]string, 0, len(*input)) for _, v := range *input { result = append(result, pointer.From(v.Role)) } diff --git a/internal/services/cosmos/cosmosdb_notebook_workspace_resource.go b/internal/services/cosmos/cosmosdb_notebook_workspace_resource.go deleted file mode 100644 index 4857b29cdb8a..000000000000 --- a/internal/services/cosmos/cosmosdb_notebook_workspace_resource.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package cosmos - -import ( - "fmt" - "log" - "time" - - "github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-10-15/documentdb" // nolint: staticcheck - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -func resourceCosmosDbNotebookWorkspace() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceCosmosDbNotebookWorkspaceCreate, - Read: resourceCosmosDbNotebookWorkspaceRead, - Delete: resourceCosmosDbNotebookWorkspaceDelete, - - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(30 * time.Minute), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Delete: pluginsdk.DefaultTimeout(30 * time.Minute), - }, - - Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := parse.NotebookWorkspaceID(id) - return err - }), - - DeprecationMessage: `CosmosDb Notebook Workspace is now Deprecated - as such the 'azurerm_cosmosdb_notebook_workspace' resource is deprecated and will be removed in v4.0 of the AzureRM Provider`, - - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - "default", - }, false), - }, - - "resource_group_name": commonschema.ResourceGroupName(), - - "account_name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.CosmosAccountName, - }, - - "server_endpoint": { - Type: pluginsdk.TypeString, - Computed: true, - }, - }, - } -} - -func resourceCosmosDbNotebookWorkspaceCreate(d *pluginsdk.ResourceData, meta interface{}) error { - subscriptionId := meta.(*clients.Client).Account.SubscriptionId - client := meta.(*clients.Client).Cosmos.NotebookWorkspaceClient - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) - defer cancel() - - name := d.Get("name").(string) - resourceGroup := d.Get("resource_group_name").(string) - accountName := d.Get("account_name").(string) - - id := parse.NewNotebookWorkspaceID(subscriptionId, resourceGroup, accountName, name) - - existing, err := client.Get(ctx, id.ResourceGroup, id.DatabaseAccountName) - if err != nil { - if !utils.ResponseWasNotFound(existing.Response) { - return fmt.Errorf("checking for existing CosmosDb NotebookWorkspace %q: %+v", id, err) - } - } - if !utils.ResponseWasNotFound(existing.Response) { - return tf.ImportAsExistsError("azurerm_cosmosdb_notebook_workspace", id.ID()) - } - - notebookCreateUpdateParameters := documentdb.NotebookWorkspaceCreateUpdateParameters{} - future, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.DatabaseAccountName, notebookCreateUpdateParameters) - if err != nil { - return fmt.Errorf("creating CosmosDb NotebookWorkspace %q: %+v", id, err) - } - - if err := future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for creation of the CosmosDb NotebookWorkspace %q: %+v", id, err) - } - - d.SetId(id.ID()) - return resourceCosmosDbNotebookWorkspaceRead(d, meta) -} - -func resourceCosmosDbNotebookWorkspaceRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Cosmos.NotebookWorkspaceClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := parse.NotebookWorkspaceID(d.Id()) - if err != nil { - return err - } - - resp, err := client.Get(ctx, id.ResourceGroup, id.DatabaseAccountName) - if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - log.Printf("[INFO] CosmosDb NotebookWorkspace %q does not exist - removing from state", d.Id()) - d.SetId("") - return nil - } - return fmt.Errorf("retrieving CosmosDb NotebookWorkspace %q: %+v", id, err) - } - d.Set("name", id.Name) - d.Set("resource_group_name", id.ResourceGroup) - d.Set("account_name", id.DatabaseAccountName) - if props := resp.NotebookWorkspaceProperties; props != nil { - d.Set("server_endpoint", props.NotebookServerEndpoint) - } - return nil -} - -func resourceCosmosDbNotebookWorkspaceDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Cosmos.NotebookWorkspaceClient - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := parse.NotebookWorkspaceID(d.Id()) - if err != nil { - return err - } - - future, err := client.Delete(ctx, id.ResourceGroup, id.DatabaseAccountName) - if err != nil { - return fmt.Errorf("deleting CosmosDb NotebookWorkspace %q: %+v", id, err) - } - - if err := future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for deletion of the CosmosDb NotebookWorkspace %q: %+v", id, err) - } - return nil -} diff --git a/internal/services/cosmos/cosmosdb_notebook_workspace_resource_test.go b/internal/services/cosmos/cosmosdb_notebook_workspace_resource_test.go deleted file mode 100644 index d8cbd053ab20..000000000000 --- a/internal/services/cosmos/cosmosdb_notebook_workspace_resource_test.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package cosmos_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/cosmos/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type CosmosDbNotebookWorkspaceResource struct{} - -func TestAccCosmosDbNotebookWorkspace_basic(t *testing.T) { - t.Skip("Skipping as CosmosDb Notebook Workspace is deprecated") - data := acceptance.BuildTestData(t, "azurerm_cosmosdb_notebook_workspace", "test") - r := CosmosDbNotebookWorkspaceResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccCosmosDbNotebookWorkspace_requiresImport(t *testing.T) { - t.Skip("Skipping as CosmosDb Notebook Workspace is deprecated") - data := acceptance.BuildTestData(t, "azurerm_cosmosdb_notebook_workspace", "test") - r := CosmosDbNotebookWorkspaceResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.RequiresImportErrorStep(r.requiresImport), - }) -} - -func (r CosmosDbNotebookWorkspaceResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := parse.NotebookWorkspaceID(state.ID) - if err != nil { - return nil, err - } - resp, err := client.Cosmos.NotebookWorkspaceClient.Get(ctx, id.ResourceGroup, id.DatabaseAccountName) - if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - return utils.Bool(false), nil - } - return nil, fmt.Errorf("retrieving Cosmos NotebookWorkspace %q: %+v", id, err) - } - return utils.Bool(true), nil -} - -//nolint:unused -func (r CosmosDbNotebookWorkspaceResource) template(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctest-cosmosdb-%d" - location = "%s" -} - -resource "azurerm_cosmosdb_account" "test" { - name = "acctest-ca-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - offer_type = "Standard" - kind = "GlobalDocumentDB" - - consistency_policy { - consistency_level = "BoundedStaleness" - } - - geo_location { - location = azurerm_resource_group.test.location - failover_priority = 0 - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - -//nolint:unused -func (r CosmosDbNotebookWorkspaceResource) basic(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_cosmosdb_notebook_workspace" "test" { - name = "default" - resource_group_name = azurerm_resource_group.test.name - account_name = azurerm_cosmosdb_account.test.name -} -`, template) -} - -//nolint:unused -func (r CosmosDbNotebookWorkspaceResource) requiresImport(data acceptance.TestData) string { - config := r.basic(data) - return fmt.Sprintf(` -%s - -resource "azurerm_cosmosdb_notebook_workspace" "import" { - name = "default" - resource_group_name = azurerm_resource_group.test.name - account_name = azurerm_cosmosdb_account.test.name -} -`, config) -} diff --git a/internal/services/cosmos/cosmosdb_postgresql_cluster_resource.go b/internal/services/cosmos/cosmosdb_postgresql_cluster_resource.go index 0ae63b0c5e6e..ec09a165d5d7 100644 --- a/internal/services/cosmos/cosmosdb_postgresql_cluster_resource.go +++ b/internal/services/cosmos/cosmosdb_postgresql_cluster_resource.go @@ -661,12 +661,11 @@ func flattenMaintenanceWindow(input *clusters.MaintenanceWindow) []MaintenanceWi } func flattenServerNames(input *[]clusters.ServerNameItem) []ServerNameItem { - var output []ServerNameItem - if input == nil { - return output + return []ServerNameItem{} } + output := make([]ServerNameItem, 0, len(*input)) for _, v := range *input { output = append(output, ServerNameItem{ FullyQualifiedDomainName: *v.FullyQualifiedDomainName, diff --git a/internal/services/cosmos/cosmosdb_sql_container_resource.go b/internal/services/cosmos/cosmosdb_sql_container_resource.go index 1cbb432a52cf..fde4e134c2df 100644 --- a/internal/services/cosmos/cosmosdb_sql_container_resource.go +++ b/internal/services/cosmos/cosmosdb_sql_container_resource.go @@ -98,7 +98,6 @@ func resourceCosmosDbSQLContainer() *pluginsdk.Resource { "partition_key_version": { Type: pluginsdk.TypeInt, Optional: true, - ForceNew: true, ValidateFunc: validation.IntBetween(1, 2), }, @@ -151,6 +150,11 @@ func resourceCosmosDbSQLContainer() *pluginsdk.Resource { pluginsdk.ForceNewIfChange("analytical_storage_ttl", func(ctx context.Context, old, new, _ interface{}) bool { return (old.(int) == -1 || old.(int) > 0) && new.(int) == 0 }), + + pluginsdk.ForceNewIfChange("partition_key_version", func(ctx context.Context, old, new, _ interface{}) bool { + // The behavior of the Azure API is that `partition_key_version` can be updated to `1` when it is not set at creation time, but it can not be updated to `2`. + return !(old.(int) == 0 && new.(int) == 1) + }), ), } @@ -306,7 +310,6 @@ func resourceCosmosDbSQLContainerUpdate(d *pluginsdk.ResourceData, meta interfac if err != nil { return fmt.Errorf("setting Throughput for Cosmos SQL Container %q (Account: %q, Database: %q): %+v - "+ "If the collection has not been created with an initial throughput, you cannot configure it later", id.ContainerName, id.DatabaseAccountName, id.SqlDatabaseName, err) - } } diff --git a/internal/services/cosmos/cosmosdb_sql_container_resource_test.go b/internal/services/cosmos/cosmosdb_sql_container_resource_test.go index e94525f8b1dc..619b6dcf8322 100644 --- a/internal/services/cosmos/cosmosdb_sql_container_resource_test.go +++ b/internal/services/cosmos/cosmosdb_sql_container_resource_test.go @@ -388,11 +388,12 @@ func (CosmosSqlContainerResource) update(data acceptance.TestData) string { %[1]s resource "azurerm_cosmosdb_sql_container" "test" { - name = "acctest-CSQLC-%[2]d" - resource_group_name = azurerm_cosmosdb_account.test.resource_group_name - account_name = azurerm_cosmosdb_account.test.name - database_name = azurerm_cosmosdb_sql_database.test.name - partition_key_paths = ["/definition/id"] + name = "acctest-CSQLC-%[2]d" + resource_group_name = azurerm_cosmosdb_account.test.resource_group_name + account_name = azurerm_cosmosdb_account.test.name + database_name = azurerm_cosmosdb_sql_database.test.name + partition_key_paths = ["/definition/id"] + partition_key_version = 1 unique_key { paths = ["/definition/id1", "/definition/id2"] } diff --git a/internal/services/cosmos/parse/cassandra_cluster.go b/internal/services/cosmos/parse/cassandra_cluster.go index ec6c452c2617..fb3802558b81 100644 --- a/internal/services/cosmos/parse/cassandra_cluster.go +++ b/internal/services/cosmos/parse/cassandra_cluster.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func CassandraClusterID(input string) (*CassandraClusterId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("cassandraClusters"); err != nil { diff --git a/internal/services/cosmos/parse/cassandra_cluster_test.go b/internal/services/cosmos/parse/cassandra_cluster_test.go index 3c24d8b5c914..a632b5619c4b 100644 --- a/internal/services/cosmos/parse/cassandra_cluster_test.go +++ b/internal/services/cosmos/parse/cassandra_cluster_test.go @@ -27,7 +27,6 @@ func TestCassandraClusterID(t *testing.T) { Error bool Expected *CassandraClusterId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/cassandra_keyspace.go b/internal/services/cosmos/parse/cassandra_keyspace.go index 60d0530a005f..23d948ad39a6 100644 --- a/internal/services/cosmos/parse/cassandra_keyspace.go +++ b/internal/services/cosmos/parse/cassandra_keyspace.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func CassandraKeyspaceID(input string) (*CassandraKeyspaceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/cassandra_keyspace_test.go b/internal/services/cosmos/parse/cassandra_keyspace_test.go index 4af0b8140bff..4ba82258b5b8 100644 --- a/internal/services/cosmos/parse/cassandra_keyspace_test.go +++ b/internal/services/cosmos/parse/cassandra_keyspace_test.go @@ -27,7 +27,6 @@ func TestCassandraKeyspaceID(t *testing.T) { Error bool Expected *CassandraKeyspaceId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/cassandra_table.go b/internal/services/cosmos/parse/cassandra_table.go index dad1d0a1e846..aca30d601921 100644 --- a/internal/services/cosmos/parse/cassandra_table.go +++ b/internal/services/cosmos/parse/cassandra_table.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func CassandraTableID(input string) (*CassandraTableId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/cassandra_table_test.go b/internal/services/cosmos/parse/cassandra_table_test.go index f57942319560..d881707b98e4 100644 --- a/internal/services/cosmos/parse/cassandra_table_test.go +++ b/internal/services/cosmos/parse/cassandra_table_test.go @@ -27,7 +27,6 @@ func TestCassandraTableID(t *testing.T) { Error bool Expected *CassandraTableId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/database_account.go b/internal/services/cosmos/parse/database_account.go index 73287f36712a..20176afad4c0 100644 --- a/internal/services/cosmos/parse/database_account.go +++ b/internal/services/cosmos/parse/database_account.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func DatabaseAccountID(input string) (*DatabaseAccountId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/database_account_test.go b/internal/services/cosmos/parse/database_account_test.go index 3902836bda40..3f2adef59f71 100644 --- a/internal/services/cosmos/parse/database_account_test.go +++ b/internal/services/cosmos/parse/database_account_test.go @@ -27,7 +27,6 @@ func TestDatabaseAccountID(t *testing.T) { Error bool Expected *DatabaseAccountId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/gremlin_database.go b/internal/services/cosmos/parse/gremlin_database.go index da9c950c7b58..86109f74b451 100644 --- a/internal/services/cosmos/parse/gremlin_database.go +++ b/internal/services/cosmos/parse/gremlin_database.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func GremlinDatabaseID(input string) (*GremlinDatabaseId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/gremlin_database_test.go b/internal/services/cosmos/parse/gremlin_database_test.go index 7c3971a9e61b..affb88a4a49c 100644 --- a/internal/services/cosmos/parse/gremlin_database_test.go +++ b/internal/services/cosmos/parse/gremlin_database_test.go @@ -27,7 +27,6 @@ func TestGremlinDatabaseID(t *testing.T) { Error bool Expected *GremlinDatabaseId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/gremlin_graph.go b/internal/services/cosmos/parse/gremlin_graph.go index 06e20e0fbb19..aa1f5ee04ae1 100644 --- a/internal/services/cosmos/parse/gremlin_graph.go +++ b/internal/services/cosmos/parse/gremlin_graph.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func GremlinGraphID(input string) (*GremlinGraphId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/gremlin_graph_test.go b/internal/services/cosmos/parse/gremlin_graph_test.go index dc63e0eea4f8..801f76bf8a70 100644 --- a/internal/services/cosmos/parse/gremlin_graph_test.go +++ b/internal/services/cosmos/parse/gremlin_graph_test.go @@ -27,7 +27,6 @@ func TestGremlinGraphID(t *testing.T) { Error bool Expected *GremlinGraphId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/mongodb_collection.go b/internal/services/cosmos/parse/mongodb_collection.go index b4be14acd70f..be718b0cfdaa 100644 --- a/internal/services/cosmos/parse/mongodb_collection.go +++ b/internal/services/cosmos/parse/mongodb_collection.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func MongodbCollectionID(input string) (*MongodbCollectionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/mongodb_collection_test.go b/internal/services/cosmos/parse/mongodb_collection_test.go index b828ea5e266d..042c00d2bd31 100644 --- a/internal/services/cosmos/parse/mongodb_collection_test.go +++ b/internal/services/cosmos/parse/mongodb_collection_test.go @@ -27,7 +27,6 @@ func TestMongodbCollectionID(t *testing.T) { Error bool Expected *MongodbCollectionId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/mongodb_database.go b/internal/services/cosmos/parse/mongodb_database.go index 64cd651cd9fc..8daaf28baf9f 100644 --- a/internal/services/cosmos/parse/mongodb_database.go +++ b/internal/services/cosmos/parse/mongodb_database.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func MongodbDatabaseID(input string) (*MongodbDatabaseId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/mongodb_database_test.go b/internal/services/cosmos/parse/mongodb_database_test.go index 7aebaa070064..d8791722ded5 100644 --- a/internal/services/cosmos/parse/mongodb_database_test.go +++ b/internal/services/cosmos/parse/mongodb_database_test.go @@ -27,7 +27,6 @@ func TestMongodbDatabaseID(t *testing.T) { Error bool Expected *MongodbDatabaseId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/notebook_workspace.go b/internal/services/cosmos/parse/notebook_workspace.go index 07d640bef78c..3e125e5b316a 100644 --- a/internal/services/cosmos/parse/notebook_workspace.go +++ b/internal/services/cosmos/parse/notebook_workspace.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func NotebookWorkspaceID(input string) (*NotebookWorkspaceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/notebook_workspace_test.go b/internal/services/cosmos/parse/notebook_workspace_test.go index 8f564e5dc1ac..fd47b6413120 100644 --- a/internal/services/cosmos/parse/notebook_workspace_test.go +++ b/internal/services/cosmos/parse/notebook_workspace_test.go @@ -27,7 +27,6 @@ func TestNotebookWorkspaceID(t *testing.T) { Error bool Expected *NotebookWorkspaceId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/restorable_database_account.go b/internal/services/cosmos/parse/restorable_database_account.go index dff8c98faa84..4a13d98d08cd 100644 --- a/internal/services/cosmos/parse/restorable_database_account.go +++ b/internal/services/cosmos/parse/restorable_database_account.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -52,7 +53,7 @@ func RestorableDatabaseAccountID(input string) (*RestorableDatabaseAccountId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.LocationName, err = id.PopSegment("locations"); err != nil { diff --git a/internal/services/cosmos/parse/restorable_database_account_test.go b/internal/services/cosmos/parse/restorable_database_account_test.go index 36c3e690f98b..fb081582cf8e 100644 --- a/internal/services/cosmos/parse/restorable_database_account_test.go +++ b/internal/services/cosmos/parse/restorable_database_account_test.go @@ -27,7 +27,6 @@ func TestRestorableDatabaseAccountID(t *testing.T) { Error bool Expected *RestorableDatabaseAccountId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/sql_container.go b/internal/services/cosmos/parse/sql_container.go index a867f2fdfb39..a97c01352d88 100644 --- a/internal/services/cosmos/parse/sql_container.go +++ b/internal/services/cosmos/parse/sql_container.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SqlContainerID(input string) (*SqlContainerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/sql_container_test.go b/internal/services/cosmos/parse/sql_container_test.go index 1a9e11e386e2..57c875f68bac 100644 --- a/internal/services/cosmos/parse/sql_container_test.go +++ b/internal/services/cosmos/parse/sql_container_test.go @@ -27,7 +27,6 @@ func TestSqlContainerID(t *testing.T) { Error bool Expected *SqlContainerId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/sql_database.go b/internal/services/cosmos/parse/sql_database.go index 58b77fdb9abd..e8178640011a 100644 --- a/internal/services/cosmos/parse/sql_database.go +++ b/internal/services/cosmos/parse/sql_database.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SqlDatabaseID(input string) (*SqlDatabaseId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/sql_database_test.go b/internal/services/cosmos/parse/sql_database_test.go index 7655988b4d07..c5bff3199cc1 100644 --- a/internal/services/cosmos/parse/sql_database_test.go +++ b/internal/services/cosmos/parse/sql_database_test.go @@ -27,7 +27,6 @@ func TestSqlDatabaseID(t *testing.T) { Error bool Expected *SqlDatabaseId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/sql_function.go b/internal/services/cosmos/parse/sql_function.go index b4aacb0d85aa..b42643b181e7 100644 --- a/internal/services/cosmos/parse/sql_function.go +++ b/internal/services/cosmos/parse/sql_function.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func SqlFunctionID(input string) (*SqlFunctionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/sql_function_test.go b/internal/services/cosmos/parse/sql_function_test.go index 4b27ddd502ac..6cdab09106d3 100644 --- a/internal/services/cosmos/parse/sql_function_test.go +++ b/internal/services/cosmos/parse/sql_function_test.go @@ -27,7 +27,6 @@ func TestSqlFunctionID(t *testing.T) { Error bool Expected *SqlFunctionId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/sql_role_assignment.go b/internal/services/cosmos/parse/sql_role_assignment.go index d33db4172154..7bf0768f0466 100644 --- a/internal/services/cosmos/parse/sql_role_assignment.go +++ b/internal/services/cosmos/parse/sql_role_assignment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SqlRoleAssignmentID(input string) (*SqlRoleAssignmentId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/sql_role_assignment_test.go b/internal/services/cosmos/parse/sql_role_assignment_test.go index cfc7cee27ed2..f3ab2be6e1fc 100644 --- a/internal/services/cosmos/parse/sql_role_assignment_test.go +++ b/internal/services/cosmos/parse/sql_role_assignment_test.go @@ -27,7 +27,6 @@ func TestSqlRoleAssignmentID(t *testing.T) { Error bool Expected *SqlRoleAssignmentId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/sql_role_definition.go b/internal/services/cosmos/parse/sql_role_definition.go index 35955d8534aa..707119cc98aa 100644 --- a/internal/services/cosmos/parse/sql_role_definition.go +++ b/internal/services/cosmos/parse/sql_role_definition.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SqlRoleDefinitionID(input string) (*SqlRoleDefinitionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/sql_role_definition_test.go b/internal/services/cosmos/parse/sql_role_definition_test.go index 39d40b2a058c..ff6c38f40d0f 100644 --- a/internal/services/cosmos/parse/sql_role_definition_test.go +++ b/internal/services/cosmos/parse/sql_role_definition_test.go @@ -27,7 +27,6 @@ func TestSqlRoleDefinitionID(t *testing.T) { Error bool Expected *SqlRoleDefinitionId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/sql_stored_procedure.go b/internal/services/cosmos/parse/sql_stored_procedure.go index 9f414e25a8a0..74ef51b0f3f8 100644 --- a/internal/services/cosmos/parse/sql_stored_procedure.go +++ b/internal/services/cosmos/parse/sql_stored_procedure.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func SqlStoredProcedureID(input string) (*SqlStoredProcedureId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/sql_stored_procedure_test.go b/internal/services/cosmos/parse/sql_stored_procedure_test.go index edddcec5c7c1..812081670bda 100644 --- a/internal/services/cosmos/parse/sql_stored_procedure_test.go +++ b/internal/services/cosmos/parse/sql_stored_procedure_test.go @@ -27,7 +27,6 @@ func TestSqlStoredProcedureID(t *testing.T) { Error bool Expected *SqlStoredProcedureId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/sql_trigger.go b/internal/services/cosmos/parse/sql_trigger.go index cd00766cacaf..d534dc1bf9b7 100644 --- a/internal/services/cosmos/parse/sql_trigger.go +++ b/internal/services/cosmos/parse/sql_trigger.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func SqlTriggerID(input string) (*SqlTriggerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/sql_trigger_test.go b/internal/services/cosmos/parse/sql_trigger_test.go index 2c651c138ea6..447992d6a45b 100644 --- a/internal/services/cosmos/parse/sql_trigger_test.go +++ b/internal/services/cosmos/parse/sql_trigger_test.go @@ -27,7 +27,6 @@ func TestSqlTriggerID(t *testing.T) { Error bool Expected *SqlTriggerId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/parse/table.go b/internal/services/cosmos/parse/table.go index f7ccdaf3505b..6da527810b1e 100644 --- a/internal/services/cosmos/parse/table.go +++ b/internal/services/cosmos/parse/table.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func TableID(input string) (*TableId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DatabaseAccountName, err = id.PopSegment("databaseAccounts"); err != nil { diff --git a/internal/services/cosmos/parse/table_test.go b/internal/services/cosmos/parse/table_test.go index bb55a58921b2..4edbdc0e2536 100644 --- a/internal/services/cosmos/parse/table_test.go +++ b/internal/services/cosmos/parse/table_test.go @@ -27,7 +27,6 @@ func TestTableID(t *testing.T) { Error bool Expected *TableId }{ - { // empty Input: "", diff --git a/internal/services/cosmos/registration.go b/internal/services/cosmos/registration.go index ee457112d39e..1d8cd949c5c2 100644 --- a/internal/services/cosmos/registration.go +++ b/internal/services/cosmos/registration.go @@ -4,7 +4,6 @@ package cosmos import ( - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -82,9 +81,5 @@ func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { "azurerm_cosmosdb_table": resourceCosmosDbTable(), } - if !features.FourPointOhBeta() { - resources["azurerm_cosmosdb_notebook_workspace"] = resourceCosmosDbNotebookWorkspace() - } - return resources } diff --git a/internal/services/cosmos/validate/cassandra_cluster_id_test.go b/internal/services/cosmos/validate/cassandra_cluster_id_test.go index 47560d7cb04c..2250278d1f83 100644 --- a/internal/services/cosmos/validate/cassandra_cluster_id_test.go +++ b/internal/services/cosmos/validate/cassandra_cluster_id_test.go @@ -12,7 +12,6 @@ func TestCassandraClusterID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/cassandra_keyspace_id_test.go b/internal/services/cosmos/validate/cassandra_keyspace_id_test.go index bdfe5355e8f2..a615788df603 100644 --- a/internal/services/cosmos/validate/cassandra_keyspace_id_test.go +++ b/internal/services/cosmos/validate/cassandra_keyspace_id_test.go @@ -12,7 +12,6 @@ func TestCassandraKeyspaceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/cassandra_table_id_test.go b/internal/services/cosmos/validate/cassandra_table_id_test.go index 27628232ec50..98c2fb9aaed2 100644 --- a/internal/services/cosmos/validate/cassandra_table_id_test.go +++ b/internal/services/cosmos/validate/cassandra_table_id_test.go @@ -12,7 +12,6 @@ func TestCassandraTableID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/database_account_id_test.go b/internal/services/cosmos/validate/database_account_id_test.go index e1a2a718febe..01c4477cd03d 100644 --- a/internal/services/cosmos/validate/database_account_id_test.go +++ b/internal/services/cosmos/validate/database_account_id_test.go @@ -12,7 +12,6 @@ func TestDatabaseAccountID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/gremlin_database_id_test.go b/internal/services/cosmos/validate/gremlin_database_id_test.go index 2b402a64bdc5..dd621b9bd411 100644 --- a/internal/services/cosmos/validate/gremlin_database_id_test.go +++ b/internal/services/cosmos/validate/gremlin_database_id_test.go @@ -12,7 +12,6 @@ func TestGremlinDatabaseID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/gremlin_graph_id_test.go b/internal/services/cosmos/validate/gremlin_graph_id_test.go index 4713a56fd928..c8ba9cf5f181 100644 --- a/internal/services/cosmos/validate/gremlin_graph_id_test.go +++ b/internal/services/cosmos/validate/gremlin_graph_id_test.go @@ -12,7 +12,6 @@ func TestGremlinGraphID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/mongodb_collection_id_test.go b/internal/services/cosmos/validate/mongodb_collection_id_test.go index 8a0650cdacea..8c181b6b7891 100644 --- a/internal/services/cosmos/validate/mongodb_collection_id_test.go +++ b/internal/services/cosmos/validate/mongodb_collection_id_test.go @@ -12,7 +12,6 @@ func TestMongodbCollectionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/mongodb_database_id_test.go b/internal/services/cosmos/validate/mongodb_database_id_test.go index 9d47b8e5cb8d..d348d80c8a2d 100644 --- a/internal/services/cosmos/validate/mongodb_database_id_test.go +++ b/internal/services/cosmos/validate/mongodb_database_id_test.go @@ -12,7 +12,6 @@ func TestMongodbDatabaseID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/notebook_workspace_id_test.go b/internal/services/cosmos/validate/notebook_workspace_id_test.go index 867361b738d4..8cb42c1de36f 100644 --- a/internal/services/cosmos/validate/notebook_workspace_id_test.go +++ b/internal/services/cosmos/validate/notebook_workspace_id_test.go @@ -12,7 +12,6 @@ func TestNotebookWorkspaceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/restorable_database_account_id_test.go b/internal/services/cosmos/validate/restorable_database_account_id_test.go index 8b292ca2fba2..d13317e1c734 100644 --- a/internal/services/cosmos/validate/restorable_database_account_id_test.go +++ b/internal/services/cosmos/validate/restorable_database_account_id_test.go @@ -12,7 +12,6 @@ func TestRestorableDatabaseAccountID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/sql_container_id_test.go b/internal/services/cosmos/validate/sql_container_id_test.go index ade109e40c0d..1841567c3543 100644 --- a/internal/services/cosmos/validate/sql_container_id_test.go +++ b/internal/services/cosmos/validate/sql_container_id_test.go @@ -12,7 +12,6 @@ func TestSqlContainerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/sql_database_id_test.go b/internal/services/cosmos/validate/sql_database_id_test.go index 6bedf62f2c29..78c23d15774d 100644 --- a/internal/services/cosmos/validate/sql_database_id_test.go +++ b/internal/services/cosmos/validate/sql_database_id_test.go @@ -12,7 +12,6 @@ func TestSqlDatabaseID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/sql_function_id_test.go b/internal/services/cosmos/validate/sql_function_id_test.go index a2b82d06e29a..a389bf51d32f 100644 --- a/internal/services/cosmos/validate/sql_function_id_test.go +++ b/internal/services/cosmos/validate/sql_function_id_test.go @@ -12,7 +12,6 @@ func TestSqlFunctionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/sql_role_assignment_id_test.go b/internal/services/cosmos/validate/sql_role_assignment_id_test.go index 55379dbef7de..4ae328ec1e8e 100644 --- a/internal/services/cosmos/validate/sql_role_assignment_id_test.go +++ b/internal/services/cosmos/validate/sql_role_assignment_id_test.go @@ -12,7 +12,6 @@ func TestSqlRoleAssignmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/sql_role_definition_id_test.go b/internal/services/cosmos/validate/sql_role_definition_id_test.go index ce53ba8dff16..6056af070014 100644 --- a/internal/services/cosmos/validate/sql_role_definition_id_test.go +++ b/internal/services/cosmos/validate/sql_role_definition_id_test.go @@ -12,7 +12,6 @@ func TestSqlRoleDefinitionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/sql_stored_procedure_id_test.go b/internal/services/cosmos/validate/sql_stored_procedure_id_test.go index 30c3c9922555..68232c8e6781 100644 --- a/internal/services/cosmos/validate/sql_stored_procedure_id_test.go +++ b/internal/services/cosmos/validate/sql_stored_procedure_id_test.go @@ -12,7 +12,6 @@ func TestSqlStoredProcedureID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/sql_trigger_id_test.go b/internal/services/cosmos/validate/sql_trigger_id_test.go index 2823adabdf92..bbbc78e1cd56 100644 --- a/internal/services/cosmos/validate/sql_trigger_id_test.go +++ b/internal/services/cosmos/validate/sql_trigger_id_test.go @@ -12,7 +12,6 @@ func TestSqlTriggerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/cosmos/validate/table_id_test.go b/internal/services/cosmos/validate/table_id_test.go index d7127cefad8f..911ae7e3d3e3 100644 --- a/internal/services/cosmos/validate/table_id_test.go +++ b/internal/services/cosmos/validate/table_id_test.go @@ -12,7 +12,6 @@ func TestTableID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/export_resource_base.go b/internal/services/costmanagement/export_resource_base.go index 577625cd4381..4d1b1a9dc949 100644 --- a/internal/services/costmanagement/export_resource_base.go +++ b/internal/services/costmanagement/export_resource_base.go @@ -169,7 +169,7 @@ func (br costManagementExportBaseResource) readFunc(scopeFieldName string) sdk.R } metadata.ResourceData.Set("name", id.ExportName) - //lintignore:R001 + // lintignore:R001 metadata.ResourceData.Set(scopeFieldName, id.Scope) if model := resp.Model; model != nil { diff --git a/internal/services/costmanagement/parse/anomaly_alert_view.go b/internal/services/costmanagement/parse/anomaly_alert_view.go index 3e5860fe8bb0..c5744c439228 100644 --- a/internal/services/costmanagement/parse/anomaly_alert_view.go +++ b/internal/services/costmanagement/parse/anomaly_alert_view.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func AnomalyAlertViewID(input string) (*AnomalyAlertViewId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ViewName, err = id.PopSegment("views"); err != nil { diff --git a/internal/services/costmanagement/parse/anomaly_alert_view_test.go b/internal/services/costmanagement/parse/anomaly_alert_view_test.go index 06d277cd8e2d..8fcd01d01108 100644 --- a/internal/services/costmanagement/parse/anomaly_alert_view_test.go +++ b/internal/services/costmanagement/parse/anomaly_alert_view_test.go @@ -27,7 +27,6 @@ func TestAnomalyAlertViewID(t *testing.T) { Error bool Expected *AnomalyAlertViewId }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/parse/billing_account_cost_management_export_test.go b/internal/services/costmanagement/parse/billing_account_cost_management_export_test.go index b3b873d33485..7a8389495ca3 100644 --- a/internal/services/costmanagement/parse/billing_account_cost_management_export_test.go +++ b/internal/services/costmanagement/parse/billing_account_cost_management_export_test.go @@ -27,7 +27,6 @@ func TestBillingAccountCostManagementExportID(t *testing.T) { Error bool Expected *BillingAccountCostManagementExportId }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/parse/resource_group_cost_management_export.go b/internal/services/costmanagement/parse/resource_group_cost_management_export.go index 37b3acbed54e..0bab43958150 100644 --- a/internal/services/costmanagement/parse/resource_group_cost_management_export.go +++ b/internal/services/costmanagement/parse/resource_group_cost_management_export.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ResourceGroupCostManagementExportID(input string) (*ResourceGroupCostManage } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ExportName, err = id.PopSegment("exports"); err != nil { diff --git a/internal/services/costmanagement/parse/resource_group_cost_management_export_test.go b/internal/services/costmanagement/parse/resource_group_cost_management_export_test.go index 90535562b496..25fff055cc5e 100644 --- a/internal/services/costmanagement/parse/resource_group_cost_management_export_test.go +++ b/internal/services/costmanagement/parse/resource_group_cost_management_export_test.go @@ -27,7 +27,6 @@ func TestResourceGroupCostManagementExportID(t *testing.T) { Error bool Expected *ResourceGroupCostManagementExportId }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/parse/resource_group_cost_management_view.go b/internal/services/costmanagement/parse/resource_group_cost_management_view.go index ea81b609dadb..6c6896714c7f 100644 --- a/internal/services/costmanagement/parse/resource_group_cost_management_view.go +++ b/internal/services/costmanagement/parse/resource_group_cost_management_view.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ResourceGroupCostManagementViewID(input string) (*ResourceGroupCostManageme } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ViewName, err = id.PopSegment("views"); err != nil { diff --git a/internal/services/costmanagement/parse/resource_group_cost_management_view_test.go b/internal/services/costmanagement/parse/resource_group_cost_management_view_test.go index 62073a27caff..b1c3f761a8c6 100644 --- a/internal/services/costmanagement/parse/resource_group_cost_management_view_test.go +++ b/internal/services/costmanagement/parse/resource_group_cost_management_view_test.go @@ -27,7 +27,6 @@ func TestResourceGroupCostManagementViewID(t *testing.T) { Error bool Expected *ResourceGroupCostManagementViewId }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/parse/subscription_cost_management_export.go b/internal/services/costmanagement/parse/subscription_cost_management_export.go index 01d582cb81a6..621bb080846a 100644 --- a/internal/services/costmanagement/parse/subscription_cost_management_export.go +++ b/internal/services/costmanagement/parse/subscription_cost_management_export.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func SubscriptionCostManagementExportID(input string) (*SubscriptionCostManageme } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ExportName, err = id.PopSegment("exports"); err != nil { diff --git a/internal/services/costmanagement/parse/subscription_cost_management_export_test.go b/internal/services/costmanagement/parse/subscription_cost_management_export_test.go index 7789211c88ed..9b050388f634 100644 --- a/internal/services/costmanagement/parse/subscription_cost_management_export_test.go +++ b/internal/services/costmanagement/parse/subscription_cost_management_export_test.go @@ -27,7 +27,6 @@ func TestSubscriptionCostManagementExportID(t *testing.T) { Error bool Expected *SubscriptionCostManagementExportId }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/parse/subscription_cost_management_view.go b/internal/services/costmanagement/parse/subscription_cost_management_view.go index c1dba7db79a1..be0797675518 100644 --- a/internal/services/costmanagement/parse/subscription_cost_management_view.go +++ b/internal/services/costmanagement/parse/subscription_cost_management_view.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func SubscriptionCostManagementViewID(input string) (*SubscriptionCostManagement } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ViewName, err = id.PopSegment("views"); err != nil { diff --git a/internal/services/costmanagement/parse/subscription_cost_management_view_test.go b/internal/services/costmanagement/parse/subscription_cost_management_view_test.go index 6053189d2ac5..4df467a07c8c 100644 --- a/internal/services/costmanagement/parse/subscription_cost_management_view_test.go +++ b/internal/services/costmanagement/parse/subscription_cost_management_view_test.go @@ -27,7 +27,6 @@ func TestSubscriptionCostManagementViewID(t *testing.T) { Error bool Expected *SubscriptionCostManagementViewId }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/validate/anomaly_alert_view_id_test.go b/internal/services/costmanagement/validate/anomaly_alert_view_id_test.go index 0b6fd899763f..5d4c3c93e8f2 100644 --- a/internal/services/costmanagement/validate/anomaly_alert_view_id_test.go +++ b/internal/services/costmanagement/validate/anomaly_alert_view_id_test.go @@ -12,7 +12,6 @@ func TestAnomalyAlertViewID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/validate/billing_account_cost_management_export_id_test.go b/internal/services/costmanagement/validate/billing_account_cost_management_export_id_test.go index 60cd07b00a8d..4e3de51b2c07 100644 --- a/internal/services/costmanagement/validate/billing_account_cost_management_export_id_test.go +++ b/internal/services/costmanagement/validate/billing_account_cost_management_export_id_test.go @@ -12,7 +12,6 @@ func TestBillingAccountCostManagementExportID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/validate/resource_group_cost_management_export_id_test.go b/internal/services/costmanagement/validate/resource_group_cost_management_export_id_test.go index 008358e1fcf9..18511899c8d0 100644 --- a/internal/services/costmanagement/validate/resource_group_cost_management_export_id_test.go +++ b/internal/services/costmanagement/validate/resource_group_cost_management_export_id_test.go @@ -12,7 +12,6 @@ func TestResourceGroupCostManagementExportID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/validate/resource_group_cost_management_view_id_test.go b/internal/services/costmanagement/validate/resource_group_cost_management_view_id_test.go index d3f7296e1312..a190a24af386 100644 --- a/internal/services/costmanagement/validate/resource_group_cost_management_view_id_test.go +++ b/internal/services/costmanagement/validate/resource_group_cost_management_view_id_test.go @@ -12,7 +12,6 @@ func TestResourceGroupCostManagementViewID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/validate/subscription_cost_management_export_id_test.go b/internal/services/costmanagement/validate/subscription_cost_management_export_id_test.go index 1b24d7f50d7e..ddb9f690492a 100644 --- a/internal/services/costmanagement/validate/subscription_cost_management_export_id_test.go +++ b/internal/services/costmanagement/validate/subscription_cost_management_export_id_test.go @@ -12,7 +12,6 @@ func TestSubscriptionCostManagementExportID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/costmanagement/validate/subscription_cost_management_view_id_test.go b/internal/services/costmanagement/validate/subscription_cost_management_view_id_test.go index 65f1a43a56c0..0843b7b8ebc7 100644 --- a/internal/services/costmanagement/validate/subscription_cost_management_view_id_test.go +++ b/internal/services/costmanagement/validate/subscription_cost_management_view_id_test.go @@ -12,7 +12,6 @@ func TestSubscriptionCostManagementViewID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/dashboard/client/client.go b/internal/services/dashboard/client/client.go index a9c543b2f015..e0e3715c8fdc 100644 --- a/internal/services/dashboard/client/client.go +++ b/internal/services/dashboard/client/client.go @@ -7,11 +7,13 @@ import ( "fmt" "github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) type Client struct { - GrafanaResourceClient *grafanaresource.GrafanaResourceClient + GrafanaResourceClient *grafanaresource.GrafanaResourceClient + ManagedPrivateEndpointsClient *managedprivateendpoints.ManagedPrivateEndpointsClient } func NewClient(o *common.ClientOptions) (*Client, error) { @@ -21,7 +23,14 @@ func NewClient(o *common.ClientOptions) (*Client, error) { } o.Configure(grafanaResourceClient.Client, o.Authorizers.ResourceManager) + managedPrivateEndpointsClient, err := managedprivateendpoints.NewManagedPrivateEndpointsClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building ManagedPrivateEndpoints client: %+v", err) + } + + o.Configure(managedPrivateEndpointsClient.Client, o.Authorizers.ResourceManager) return &Client{ - GrafanaResourceClient: grafanaResourceClient, + GrafanaResourceClient: grafanaResourceClient, + ManagedPrivateEndpointsClient: managedPrivateEndpointsClient, }, nil } diff --git a/internal/services/dashboard/dashboard_grafana_managed_private_endpoint_resource.go b/internal/services/dashboard/dashboard_grafana_managed_private_endpoint_resource.go new file mode 100644 index 000000000000..f7008b77c2fa --- /dev/null +++ b/internal/services/dashboard/dashboard_grafana_managed_private_endpoint_resource.go @@ -0,0 +1,262 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package dashboard + +import ( + "context" + "fmt" + "regexp" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource" + "github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints" + "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +type ManagedPrivateEndpointResource struct{} + +type ManagedPrivateEndpointModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + GrafanaId string `tfschema:"grafana_id"` + PrivateLinkResourceId string `tfschema:"private_link_resource_id"` + PrivateLinkResourceRegion string `tfschema:"private_link_resource_region"` + Tags map[string]string `tfschema:"tags"` + GroupIds []string `tfschema:"group_ids"` + RequestMessage string `tfschema:"request_message"` +} + +type ManagedPrivateEndpointId struct { + SubscriptionId string + ResourceGroupName string + GrafanaName string + ManagedPrivateEndpointName string +} + +func (r ManagedPrivateEndpointResource) ModelObject() interface{} { + return &ManagedPrivateEndpointModel{} +} + +func (r ManagedPrivateEndpointResource) ResourceType() string { + return "azurerm_dashboard_grafana_managed_private_endpoint" +} + +func (r ManagedPrivateEndpointResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return managedprivateendpoints.ValidateManagedPrivateEndpointID +} + +func (r ManagedPrivateEndpointResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringMatch( + regexp.MustCompile(`\A([a-zA-Z]{1}[a-zA-Z0-9\-]{1,19}[a-zA-Z0-9]{1})\z`), + `Name length can only consist of alphanumeric characters or dashes, and must be between 2 and 20 characters long. It must begin with a letter and end with a letter or digit.`, + ), + }, + + "location": commonschema.Location(), + + "tags": commonschema.Tags(), + + "grafana_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: grafanaresource.ValidateGrafanaID, + }, + + "private_link_resource_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: azure.ValidateResourceID, + }, + + "group_ids": { + Type: pluginsdk.TypeList, + Optional: true, + ForceNew: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + // no validation here because an empty group id is valid for a generic private link resource + }, + + "private_link_resource_region": { + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "request_message": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + } +} + +func (r ManagedPrivateEndpointResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (r ManagedPrivateEndpointResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + var model ManagedPrivateEndpointModel + if err := metadata.Decode(&model); err != nil { + return err + } + + client := metadata.Client.Dashboard.ManagedPrivateEndpointsClient + subscriptionId := metadata.Client.Account.SubscriptionId + grafanaId, err := grafanaresource.ParseGrafanaID(model.GrafanaId) + if err != nil { + return err + } + id := managedprivateendpoints.NewManagedPrivateEndpointID(subscriptionId, grafanaId.ResourceGroupName, grafanaId.GrafanaName, model.Name) + + existing, err := client.Get(ctx, id) + if err != nil && !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for presence of existing %s: %+v", id, err) + } + if !response.WasNotFound(existing.HttpResponse) { + return metadata.ResourceRequiresImport(r.ResourceType(), id) + } + + props := managedprivateendpoints.ManagedPrivateEndpointModel{ + Location: location.Normalize(model.Location), + Name: &model.Name, + Properties: &managedprivateendpoints.ManagedPrivateEndpointModelProperties{ + GroupIds: &model.GroupIds, + PrivateLinkResourceId: &model.PrivateLinkResourceId, + PrivateLinkResourceRegion: &model.PrivateLinkResourceRegion, + RequestMessage: &model.RequestMessage, + }, + Tags: &model.Tags, + } + + if err := client.CreateThenPoll(ctx, id, props); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + + return nil + }, + } +} + +func (r ManagedPrivateEndpointResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Dashboard.ManagedPrivateEndpointsClient + id, err := managedprivateendpoints.ParseManagedPrivateEndpointID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return metadata.MarkAsGone(id) + } + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + grafanaId := grafanaresource.NewGrafanaID(id.SubscriptionId, id.ResourceGroupName, id.GrafanaName) + state := ManagedPrivateEndpointModel{ + Name: id.ManagedPrivateEndpointName, + GrafanaId: grafanaId.ID(), + } + + if model := resp.Model; model != nil { + state.Location = location.Normalize(model.Location) + state.Tags = pointer.From(model.Tags) + + if props := model.Properties; props != nil { + state.GroupIds = pointer.From(props.GroupIds) + state.PrivateLinkResourceId = pointer.From(props.PrivateLinkResourceId) + state.PrivateLinkResourceRegion = pointer.From(props.PrivateLinkResourceRegion) + state.RequestMessage = pointer.From(props.RequestMessage) + } + } + + return metadata.Encode(&state) + }, + } +} + +func (r ManagedPrivateEndpointResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Dashboard.ManagedPrivateEndpointsClient + id, err := managedprivateendpoints.ParseManagedPrivateEndpointID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + metadata.Logger.Infof("deleting %s", *id) + + if err := client.DeleteThenPoll(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %+v", *id, err) + } + + return nil + }, + } +} + +func (r ManagedPrivateEndpointResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Dashboard.ManagedPrivateEndpointsClient + + id, err := managedprivateendpoints.ParseManagedPrivateEndpointID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + var mpe ManagedPrivateEndpointModel + if err := metadata.Decode(&mpe); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + resp, err := client.Get(ctx, *id) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + model := resp.Model + if resp.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", id) + } + + if metadata.ResourceData.HasChange("tags") { + model.Tags = &mpe.Tags + } + + if err := client.CreateThenPoll(ctx, *id, *model); err != nil { + return fmt.Errorf("updating %s: %+v", *id, err) + } + + return nil + }, + } +} diff --git a/internal/services/dashboard/dashboard_grafana_managed_private_endpoint_resource_test.go b/internal/services/dashboard/dashboard_grafana_managed_private_endpoint_resource_test.go new file mode 100644 index 000000000000..23f06f23819a --- /dev/null +++ b/internal/services/dashboard/dashboard_grafana_managed_private_endpoint_resource_test.go @@ -0,0 +1,193 @@ +// // Copyright (c) HashiCorp, Inc. +// // SPDX-License-Identifier: MPL-2.0 + +package dashboard_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type ManagedPrivateEndpointResource struct{} + +func TestAccDashboardGrafanaManagedPrivateEndpoint_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dashboard_grafana_managed_private_endpoint", "test") + r := ManagedPrivateEndpointResource{} + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccDashboardGrafanaManagedPrivateEndpoint_requiresImport(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dashboard_grafana_managed_private_endpoint", "test") + r := ManagedPrivateEndpointResource{} + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.RequiresImportErrorStep(r.requiresImport), + }) +} + +func TestAccDashboardGrafanaManagedPrivateEndpoint_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dashboard_grafana_managed_private_endpoint", "test") + r := ManagedPrivateEndpointResource{} + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + }) +} + +func TestAccDashboardGrafanaManagedPrivateEndpoint_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dashboard_grafana_managed_private_endpoint", "test") + r := ManagedPrivateEndpointResource{} + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + { + Config: r.update(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + }) +} + +func (r ManagedPrivateEndpointResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := managedprivateendpoints.ParseManagedPrivateEndpointID(state.ID) + if err != nil { + return nil, err + } + + client := clients.Dashboard.ManagedPrivateEndpointsClient + resp, err := client.Get(ctx, *id) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", id, err) + } + return pointer.To(resp.Model != nil), nil +} + +func (r ManagedPrivateEndpointResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctest-rg-%d" + location = "%s" +} + +resource "azurerm_dashboard_grafana" "test" { + name = "a-dg-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + grafana_major_version = "10" +} + +resource "azurerm_monitor_workspace" "test" { + name = "acctest-mw-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location +} +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) +} + +func (r ManagedPrivateEndpointResource) basic(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` + %s + +resource "azurerm_dashboard_grafana_managed_private_endpoint" "test" { + grafana_id = azurerm_dashboard_grafana.test.id + name = "acctest-mpe-%d" + location = azurerm_dashboard_grafana.test.location + private_link_resource_id = azurerm_monitor_workspace.test.id + group_ids = ["prometheusMetrics"] + private_link_resource_region = azurerm_dashboard_grafana.test.location +} +`, template, data.RandomIntOfLength(8)) +} + +func (r ManagedPrivateEndpointResource) requiresImport(data acceptance.TestData) string { + config := r.basic(data) + return fmt.Sprintf(` + %s + +resource "azurerm_dashboard_grafana_managed_private_endpoint" "import" { + grafana_id = azurerm_dashboard_grafana_managed_private_endpoint.test.grafana_id + name = azurerm_dashboard_grafana_managed_private_endpoint.test.name + location = azurerm_dashboard_grafana_managed_private_endpoint.test.location + private_link_resource_id = azurerm_dashboard_grafana_managed_private_endpoint.test.private_link_resource_id +} +`, config) +} + +func (r ManagedPrivateEndpointResource) complete(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` + %s + +resource "azurerm_dashboard_grafana_managed_private_endpoint" "test" { + grafana_id = azurerm_dashboard_grafana.test.id + name = "acctest-mpe-%d" + location = azurerm_dashboard_grafana.test.location + private_link_resource_id = azurerm_monitor_workspace.test.id + group_ids = ["prometheusMetrics"] + private_link_resource_region = azurerm_dashboard_grafana.test.location + + tags = { + key = "value" + } + + request_message = "please approve" +} +`, template, data.RandomIntOfLength(8)) +} + +func (r ManagedPrivateEndpointResource) update(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` + %s + +resource "azurerm_dashboard_grafana_managed_private_endpoint" "test" { + grafana_id = azurerm_dashboard_grafana.test.id + name = "acctest-mpe-%d" + location = azurerm_dashboard_grafana.test.location + private_link_resource_id = azurerm_monitor_workspace.test.id + group_ids = ["prometheusMetrics"] + private_link_resource_region = azurerm_dashboard_grafana.test.location + + tags = { + key2 = "value2" + } + + request_message = "please approve" +} +`, template, data.RandomIntOfLength(8)) +} diff --git a/internal/services/dashboard/dashboard_grafana_resource.go b/internal/services/dashboard/dashboard_grafana_resource.go index 7a99dbb6776e..2b0b01bacbcd 100644 --- a/internal/services/dashboard/dashboard_grafana_resource.go +++ b/internal/services/dashboard/dashboard_grafana_resource.go @@ -557,7 +557,7 @@ func expandGrafanaIntegrationsModel(inputList []AzureMonitorWorkspaceIntegration } func expandAzureMonitorWorkspaceIntegrationModelArray(inputList []AzureMonitorWorkspaceIntegrationModel) *[]grafanaresource.AzureMonitorWorkspaceIntegration { - var outputList []grafanaresource.AzureMonitorWorkspaceIntegration + outputList := make([]grafanaresource.AzureMonitorWorkspaceIntegration, 0, len(inputList)) for _, v := range inputList { input := v output := grafanaresource.AzureMonitorWorkspaceIntegration{ @@ -622,17 +622,15 @@ func flattenSMTPConfigurationModel(input *grafanaresource.Smtp, data *schema.Res output.Password = data.Get("smtp.0.password").(string) - outputList = append(outputList, output) - - return outputList + return append(outputList, output) } func flattenAzureMonitorWorkspaceIntegrationModelArray(inputList *[]grafanaresource.AzureMonitorWorkspaceIntegration) []AzureMonitorWorkspaceIntegrationModel { - var outputList []AzureMonitorWorkspaceIntegrationModel if inputList == nil { - return outputList + return []AzureMonitorWorkspaceIntegrationModel{} } + outputList := make([]AzureMonitorWorkspaceIntegrationModel, 0, len(*inputList)) for _, input := range *inputList { output := AzureMonitorWorkspaceIntegrationModel{} diff --git a/internal/services/dashboard/registration.go b/internal/services/dashboard/registration.go index f492fbd99f94..a3ce796801e2 100644 --- a/internal/services/dashboard/registration.go +++ b/internal/services/dashboard/registration.go @@ -52,5 +52,6 @@ func (r Registration) DataSources() []sdk.DataSource { func (r Registration) Resources() []sdk.Resource { return []sdk.Resource{ DashboardGrafanaResource{}, + ManagedPrivateEndpointResource{}, } } diff --git a/internal/services/databoxedge/customizediff.go b/internal/services/databoxedge/customizediff.go deleted file mode 100644 index 77ba77108258..000000000000 --- a/internal/services/databoxedge/customizediff.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package databoxedge - -import ( - "context" - "fmt" - - "github.com/hashicorp/terraform-provider-azurerm/internal/services/databoxedge/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" -) - -func databoxEdgeCustomizeDiff(ctx context.Context, d *pluginsdk.ResourceDiff, v interface{}) error { - if value, ok := d.GetOk("shipment_address"); ok { - shippingInfo := (value.([]interface{}))[0].(map[string]interface{}) - - _, err := validate.DataboxEdgeStreetAddress(shippingInfo["address"].([]interface{}), "address") - if err != nil { - return fmt.Errorf("%s", err) - } - } - - return nil -} diff --git a/internal/services/databoxedge/databox_edge_device_data_source.go b/internal/services/databoxedge/databox_edge_device_data_source.go index 8c4c8d99b777..8f509c79be54 100644 --- a/internal/services/databoxedge/databox_edge_device_data_source.go +++ b/internal/services/databoxedge/databox_edge_device_data_source.go @@ -37,7 +37,6 @@ func (d EdgeDeviceDataSource) Arguments() map[string]*schema.Schema { func (d EdgeDeviceDataSource) Attributes() map[string]*schema.Schema { return map[string]*schema.Schema{ - "location": commonschema.LocationComputed(), "sku_name": { diff --git a/internal/services/databoxedge/databox_edge_order_resource.go b/internal/services/databoxedge/databox_edge_order_resource.go deleted file mode 100644 index 8df0918f9806..000000000000 --- a/internal/services/databoxedge/databox_edge_order_resource.go +++ /dev/null @@ -1,587 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package databoxedge - -import ( - "fmt" - "log" - "time" - - "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/databoxedge/migration" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/databoxedge/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -func resourceOrder() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceOrderCreateUpdate, - Read: resourceOrderRead, - Update: resourceOrderCreateUpdate, - Delete: resourceOrderDelete, - - DeprecationMessage: `Creating DataBox Edge Orders are not supported via the Azure API - as such the 'azurerm_databox_edge_order' resource is deprecated and will be removed in v4.0 of the AzureRM Provider`, - - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(30 * time.Minute), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Update: pluginsdk.DefaultTimeout(30 * time.Minute), - Delete: pluginsdk.DefaultTimeout(30 * time.Minute), - }, - - Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := orders.ParseDataBoxEdgeDeviceID(id) - return err - }), - - SchemaVersion: 1, - StateUpgraders: pluginsdk.StateUpgrades(map[int]pluginsdk.StateUpgrade{ - 0: migration.DataBoxEdgeOrderV0ToV1{}, - }), - - Schema: map[string]*pluginsdk.Schema{ - "device_name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DataboxEdgeName, - }, - - "resource_group_name": commonschema.ResourceGroupName(), - - "contact": { - Type: pluginsdk.TypeList, - Required: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "company_name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DataboxEdgeCompanyName, - }, - - "name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DataboxEdgeContactName, - }, - - "emails": { - Type: pluginsdk.TypeSet, - Required: true, - ForceNew: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - }, - - "phone_number": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DataboxEdgePhoneNumber, - }, - }, - }, - }, - - "status": { - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "info": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "comments": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "additional_details": { - Type: pluginsdk.TypeMap, - Computed: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - }, - - "last_update": { - Type: pluginsdk.TypeString, - Computed: true, - }, - }, - }, - }, - - "shipment_address": { - Type: pluginsdk.TypeList, - Required: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "address": { - Type: pluginsdk.TypeList, - Required: true, - MaxItems: 3, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - }, - - "city": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DataboxEdgeCity, - }, - - "country": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DataboxEdgeCountry, - }, - - "state": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DataboxEdgeState, - }, - - "postal_code": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DataboxEdgePostalCode, - }, - }, - }, - }, - - "shipment_tracking": { - Type: pluginsdk.TypeSet, - Computed: true, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "carrier_name": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "serial_number": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "tracking_id": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "tracking_url": { - Type: pluginsdk.TypeString, - Computed: true, - }, - }, - }, - }, - - "shipment_history": { - Type: pluginsdk.TypeSet, - Computed: true, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "additional_details": { - Type: pluginsdk.TypeMap, - Computed: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - }, - - "comments": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "last_update": { - Type: pluginsdk.TypeString, - Computed: true, - }, - }, - }, - }, - - "return_tracking": { - Type: pluginsdk.TypeSet, - Computed: true, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "carrier_name": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "serial_number": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "tracking_id": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "tracking_url": { - Type: pluginsdk.TypeString, - Computed: true, - }, - }, - }, - }, - - "name": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "serial_number": { - Type: pluginsdk.TypeString, - Computed: true, - }, - }, - - CustomizeDiff: pluginsdk.CustomizeDiffShim(databoxEdgeCustomizeDiff), - } -} - -func resourceOrderCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - subscriptionId := meta.(*clients.Client).Account.SubscriptionId - client := meta.(*clients.Client).DataboxEdge.OrdersClient - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) - defer cancel() - - id := orders.NewDataBoxEdgeDeviceID(subscriptionId, d.Get("resource_group_name").(string), d.Get("device_name").(string)) // TODO: state migration - if d.IsNewResource() { - existing, err := client.Get(ctx, id) - if err != nil { - if !response.WasNotFound(existing.HttpResponse) { - return fmt.Errorf("checking for presence of existing %s: %+v", id, err) - } - } - if !response.WasNotFound(existing.HttpResponse) { - return tf.ImportAsExistsError("azurerm_databox_edge_order", id.ID()) - } - } - - order := orders.Order{ - Properties: &orders.OrderProperties{ - ContactInformation: expandOrderContactDetails(d.Get("contact").([]interface{})), - ShippingAddress: expandOrderAddress(d.Get("shipment_address").([]interface{})), - }, - } - - if err := client.CreateOrUpdateThenPoll(ctx, id, order); err != nil { - return fmt.Errorf("creating/updating %s: %+v", id, err) - } - - d.SetId(id.ID()) - return resourceOrderRead(d, meta) -} - -func resourceOrderRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).DataboxEdge.OrdersClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := orders.ParseDataBoxEdgeDeviceID(d.Id()) - if err != nil { - return err - } - - resp, err := client.Get(ctx, *id) - if err != nil { - if response.WasNotFound(resp.HttpResponse) { - log.Printf("[INFO] %s does not exist - removing from state", *id) - d.SetId("") - return nil - } - - return fmt.Errorf("retrieving %s: %+v", *id, err) - } - - d.Set("name", "default") // only one possible value - d.Set("resource_group_name", id.ResourceGroupName) - d.Set("device_name", id.DataBoxEdgeDeviceName) - - if model := resp.Model; model != nil { - if props := model.Properties; props != nil { - if err := d.Set("contact", flattenOrderContactDetails(props.ContactInformation)); err != nil { - return fmt.Errorf("setting `contact`: %+v", err) - } - currentStatus, err := flattenOrderStatus(props.CurrentStatus) - if err != nil { - return fmt.Errorf("flattening `status`: %+v", err) - } - if err := d.Set("status", currentStatus); err != nil { - return fmt.Errorf("setting `status`: %+v", err) - } - if err := d.Set("shipment_address", flattenOrderAddress(props.ShippingAddress)); err != nil { - return fmt.Errorf("setting `shipment_address`: %+v", err) - } - if err := d.Set("shipment_tracking", flattenOrderTrackingInfo(props.DeliveryTrackingInfo)); err != nil { - return fmt.Errorf("setting `shipment_tracking`: %+v", err) - } - shipmentHistory, err := flattenOrderHistory(props.OrderHistory) - if err != nil { - return fmt.Errorf("flattening `shipment_history`: %+v", err) - } - if err := d.Set("shipment_history", shipmentHistory); err != nil { - return fmt.Errorf("setting `shipment_history`: %+v", err) - } - if err := d.Set("return_tracking", flattenOrderTrackingInfo(props.ReturnTrackingInfo)); err != nil { - return fmt.Errorf("setting `return_tracking`: %+v", err) - } - d.Set("serial_number", props.SerialNumber) - } - } - - return nil -} - -func resourceOrderDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).DataboxEdge.OrdersClient - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := orders.ParseDataBoxEdgeDeviceID(d.Id()) - if err != nil { - return err - } - - if err := client.DeleteThenPoll(ctx, *id); err != nil { - return fmt.Errorf("deleting %s: %v", *id, err) - } - - return nil -} - -func expandOrderContactDetails(input []interface{}) orders.ContactDetails { - v := input[0].(map[string]interface{}) - emailList := make([]string, 0) - - for _, val := range v["emails"].(*pluginsdk.Set).List() { - emailList = append(emailList, val.(string)) - } - - return orders.ContactDetails{ - ContactPerson: v["name"].(string), - CompanyName: v["company_name"].(string), - Phone: v["phone_number"].(string), - EmailList: emailList, - } -} - -func expandOrderAddress(input []interface{}) *orders.Address { - if len(input) == 0 { - return nil - } - v := input[0].(map[string]interface{}) - - var address1 string - var address2 string - var address3 string - - addressLines := v["address"].([]interface{}) - - for i, addressLine := range addressLines { - if addressLine != "" { - switch i { - case 0: - address1 = addressLine.(string) - case 1: - address2 = addressLine.(string) - case 3: - address3 = addressLine.(string) - } - } - } - - return &orders.Address{ - AddressLine1: utils.String(address1), - AddressLine2: utils.String(address2), - AddressLine3: utils.String(address3), - PostalCode: utils.String(v["postal_code"].(string)), - City: utils.String(v["city"].(string)), - State: utils.String(v["state"].(string)), - Country: v["country"].(string), - } -} - -func flattenOrderContactDetails(input orders.ContactDetails) []interface{} { - return []interface{}{ - map[string]interface{}{ - "company_name": input.CompanyName, - "name": input.ContactPerson, - "emails": input.EmailList, - "phone_number": input.Phone, - }, - } -} - -func flattenOrderStatus(input *orders.OrderStatus) (*[]interface{}, error) { - if input == nil { - return &[]interface{}{}, nil - } - - var status string - if input.Status != "" { - status = string(input.Status) - } - - var comments string - if input.Comments != nil { - comments = *input.Comments - } - additionalOrderDetails := make(map[string]interface{}) - if input.AdditionalOrderDetails != nil { - for k, v := range *input.AdditionalOrderDetails { - additionalOrderDetails[k] = v - } - } - var updateDateTime string - d, err := input.GetUpdateDateTimeAsTime() - if err != nil { - return nil, fmt.Errorf("parsing UpdateDateTime: %+v", err) - } - if d != nil { - updateDateTime = d.Format(time.RFC3339) - } - return &[]interface{}{ - map[string]interface{}{ - "info": status, - "comments": comments, - "additional_details": additionalOrderDetails, - "last_update": updateDateTime, - }, - }, nil -} - -func flattenOrderAddress(input *orders.Address) []interface{} { - if input == nil { - return make([]interface{}, 0) - } - - var postalCode string - if input.PostalCode != nil { - postalCode = *input.PostalCode - } - - var state string - if input.State != nil { - state = *input.State - } - - address := make([]interface{}, 0) - if input.AddressLine1 != nil { - address = append(address, *input.AddressLine1) - } - - if input.AddressLine2 != nil && *input.AddressLine2 != "" { - address = append(address, *input.AddressLine2) - } - - if input.AddressLine3 != nil && *input.AddressLine3 != "" { - address = append(address, *input.AddressLine3) - } - - return []interface{}{ - map[string]interface{}{ - "address": address, - "city": input.City, - "country": input.Country, - "postal_code": postalCode, - "state": state, - }, - } -} - -func flattenOrderTrackingInfo(input *[]orders.TrackingInfo) []interface{} { - results := make([]interface{}, 0) - if input == nil { - return results - } - - for _, item := range *input { - var carrierName string - if item.CarrierName != nil { - carrierName = *item.CarrierName - } - var serialNumber string - if item.SerialNumber != nil { - serialNumber = *item.SerialNumber - } - var trackingId string - if item.TrackingId != nil { - trackingId = *item.TrackingId - } - var trackingUrl string - if item.TrackingURL != nil { - trackingUrl = *item.TrackingURL - } - results = append(results, map[string]interface{}{ - "carrier_name": carrierName, - "serial_number": serialNumber, - "tracking_id": trackingId, - "tracking_url": trackingUrl, - }) - } - return results -} - -func flattenOrderHistory(input *[]orders.OrderStatus) (*[]interface{}, error) { - results := make([]interface{}, 0) - if input != nil { - for _, item := range *input { - additionalOrderDetails := make(map[string]interface{}) - if item.AdditionalOrderDetails != nil { - for k, v := range *item.AdditionalOrderDetails { - additionalOrderDetails[k] = v - } - } - var comments string - if item.Comments != nil { - comments = *item.Comments - } - var updateDateTime string - d, err := item.GetUpdateDateTimeAsTime() - if err != nil { - return nil, fmt.Errorf("parsing UpdateDateTime: %+v", err) - } - if d != nil { - updateDateTime = d.Format(time.RFC3339) - } - results = append(results, map[string]interface{}{ - "additional_details": additionalOrderDetails, - "comments": comments, - "last_update": updateDateTime, - }) - } - } - - return &results, nil -} diff --git a/internal/services/databoxedge/databox_edge_order_resource_test.go b/internal/services/databoxedge/databox_edge_order_resource_test.go deleted file mode 100644 index 336adafbeade..000000000000 --- a/internal/services/databoxedge/databox_edge_order_resource_test.go +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package databoxedge_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type DataboxEdgeOrderResource struct{} - -func TestAccDataboxEdgeOrder_basic(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_databox_edge_order", "test") - r := DataboxEdgeOrderResource{} - - if features.FourPointOhBeta() { - t.Skipf("Skipping since `azurerm_databox_edge_order` is deprecated and will be removed in 4.0") - } - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }, - ) -} - -func TestAccDataboxEdgeOrder_requiresImport(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_databox_edge_order", "test") - r := DataboxEdgeOrderResource{} - - if features.FourPointOhBeta() { - t.Skipf("Skipping since `azurerm_databox_edge_order` is deprecated and will be removed in 4.0") - } - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - { - Config: r.requiresImport(data), - ExpectError: acceptance.RequiresImportError("azurerm_databox_edge_order"), - }, - }) -} - -func TestAccDataboxEdgeOrder_complete(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_databox_edge_order", "test") - r := DataboxEdgeOrderResource{} - - if features.FourPointOhBeta() { - t.Skipf("Skipping since `azurerm_databox_edge_order` is deprecated and will be removed in 4.0") - } - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.complete(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }, - ) -} - -func (DataboxEdgeOrderResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := orders.ParseDataBoxEdgeDeviceID(state.ID) - if err != nil { - return nil, err - } - - resp, err := clients.DataboxEdge.OrdersClient.Get(ctx, *id) - if err != nil { - return nil, fmt.Errorf("retrieving %s: %+v", *id, err) - } - - return utils.Bool(resp.Model != nil), nil -} - -// Location has to be hard coded due to limited support of locations for this resource -func (DataboxEdgeOrderResource) template(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-databoxedge-%d" - location = "%s" -} - -resource "azurerm_databox_edge_device" "test" { - name = "acctest-dd-%s" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - - sku_name = "EdgeP_Base-Standard" -} -`, data.RandomInteger, "eastus", data.RandomString) -} - -func (r DataboxEdgeOrderResource) basic(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_databox_edge_order" "test" { - resource_group_name = azurerm_resource_group.test.name - device_name = azurerm_databox_edge_device.test.name - - contact { - name = "TerraForm Test" - emails = ["creator4983@FlynnsArcade.com"] - company_name = "Microsoft" - phone_number = "425-882-8080" - } - - shipment_address { - address = ["One Microsoft Way"] - city = "Redmond" - postal_code = "98052" - state = "WA" - country = "United States" - } -} -`, r.template(data)) -} - -func (r DataboxEdgeOrderResource) requiresImport(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_databox_edge_order" "import" { - resource_group_name = azurerm_databox_edge_order.test.resource_group_name - device_name = azurerm_databox_edge_device.test.name - - contact { - name = "TerraForm Test" - emails = ["creator4983@FlynnsArcade.com"] - company_name = "Microsoft" - phone_number = "425-882-8080" - } - - shipment_address { - address = ["One Microsoft Way"] - city = "Redmond" - postal_code = "98052" - state = "WA" - country = "United States" - } -} -`, r.basic(data)) -} - -func (r DataboxEdgeOrderResource) complete(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_databox_edge_order" "test" { - resource_group_name = azurerm_resource_group.test.name - device_name = azurerm_databox_edge_device.test.name - - contact { - name = "TerraForm Test" - emails = ["creator4983@FlynnsArcade.com"] - company_name = "Flynn's Arcade" - phone_number = "(800) 555-1234" - } - - shipment_address { - address = ["One Microsoft Way"] - city = "Redmond" - postal_code = "98052" - state = "WA" - country = "United States" - } -} -`, r.template(data)) -} diff --git a/internal/services/databoxedge/migration/device_edge_order_v0_to_v1.go b/internal/services/databoxedge/migration/device_edge_order_v0_to_v1.go index 3d57b8aae4ea..9a3df438fb3f 100644 --- a/internal/services/databoxedge/migration/device_edge_order_v0_to_v1.go +++ b/internal/services/databoxedge/migration/device_edge_order_v0_to_v1.go @@ -5,6 +5,7 @@ package migration import ( "context" + "errors" "fmt" "log" @@ -266,11 +267,11 @@ func parseLegacyResourceID(input string) (*legacyResourceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroupName == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DataBoxEdgeDeviceName, err = id.PopSegment("dataBoxEdgeDevices"); err != nil { diff --git a/internal/services/databoxedge/registration.go b/internal/services/databoxedge/registration.go index d5081b828039..e566be49fc95 100644 --- a/internal/services/databoxedge/registration.go +++ b/internal/services/databoxedge/registration.go @@ -4,7 +4,6 @@ package databoxedge import ( - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -51,10 +50,5 @@ func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource { // SupportedResources returns the supported Resources supported by this Service func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { - if !features.FourPointOhBeta() { - return map[string]*pluginsdk.Resource{ - "azurerm_databox_edge_order": resourceOrder(), - } - } return map[string]*pluginsdk.Resource{} } diff --git a/internal/services/databricks/databricks_access_connector_resource.go b/internal/services/databricks/databricks_access_connector_resource.go index 9f70d55501f7..9789778cb558 100644 --- a/internal/services/databricks/databricks_access_connector_resource.go +++ b/internal/services/databricks/databricks_access_connector_resource.go @@ -19,8 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/utils" ) -type AccessConnectorResource struct { -} +type AccessConnectorResource struct{} var _ sdk.ResourceWithUpdate = AccessConnectorResource{} @@ -204,7 +203,6 @@ func (r AccessConnectorResource) Delete() sdk.ResourceFunc { Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { id, err := accessconnector.ParseAccessConnectorID(metadata.ResourceData.Id()) - if err != nil { return fmt.Errorf("while parsing resource ID: %+v", err) } diff --git a/internal/services/databricks/databricks_customer_managed_key_resource.go b/internal/services/databricks/databricks_customer_managed_key_resource.go index ea086fb7d0dc..bc28d733c10e 100644 --- a/internal/services/databricks/databricks_customer_managed_key_resource.go +++ b/internal/services/databricks/databricks_customer_managed_key_resource.go @@ -38,7 +38,7 @@ func resourceDatabricksWorkspaceCustomerManagedKey() *pluginsdk.Resource { Delete: pluginsdk.DefaultTimeout(30 * time.Minute), }, - DeprecationMessage: "The resource `azurerm_databricks_workspace_customer_managed_key` will be removed in v4.0 of the AzureRM Provider in favour of the `azurerm_databricks_workspace_root_dbfs_customer_managed_key` resource.", + DeprecationMessage: "The resource `azurerm_databricks_workspace_customer_managed_key` will be removed in v5.0 of the AzureRM Provider in favour of the `azurerm_databricks_workspace_root_dbfs_customer_managed_key` resource.", Importer: pluginsdk.ImporterValidatingResourceIdThen(func(id string) error { _, err := workspaces.ParseWorkspaceID(id) @@ -196,7 +196,6 @@ func databricksWorkspaceCustomerManagedKeyRead(d *pluginsdk.ResourceData, meta i if model := resp.Model; model != nil { if model.Properties.Parameters != nil { if props := model.Properties.Parameters.Encryption; props != nil { - if props.Value.KeySource != nil { keySource = string(*props.Value.KeySource) } diff --git a/internal/services/databricks/databricks_customer_managed_key_resource_test.go b/internal/services/databricks/databricks_customer_managed_key_resource_test.go index b8824c54fec9..4ecf94ea2dbf 100644 --- a/internal/services/databricks/databricks_customer_managed_key_resource_test.go +++ b/internal/services/databricks/databricks_customer_managed_key_resource_test.go @@ -20,8 +20,8 @@ import ( type DatabricksWorkspaceCustomerManagedKeyResource struct{} func TestAccDatabricksWorkspaceCustomerManagedKey_basic(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource no longer exists in 4.0") + if features.FivePointOhBeta() { + t.Skip("Resource no longer exists in 5.0") } data := acceptance.BuildTestData(t, "azurerm_databricks_workspace_customer_managed_key", "test") @@ -43,8 +43,8 @@ func TestAccDatabricksWorkspaceCustomerManagedKey_basic(t *testing.T) { } func TestAccDatabricksWorkspaceCustomerManagedKey_remove(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource no longer exists in 4.0") + if features.FivePointOhBeta() { + t.Skip("Resource no longer exists in 5.0") } data := acceptance.BuildTestData(t, "azurerm_databricks_workspace_customer_managed_key", "test") @@ -73,8 +73,8 @@ func TestAccDatabricksWorkspaceCustomerManagedKey_remove(t *testing.T) { } func TestAccDatabricksWorkspaceCustomerManagedKey_requiresImport(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource no longer exists in 4.0") + if features.FivePointOhBeta() { + t.Skip("Resource no longer exists in 5.0") } data := acceptance.BuildTestData(t, "azurerm_databricks_workspace_customer_managed_key", "test") @@ -94,8 +94,8 @@ func TestAccDatabricksWorkspaceCustomerManagedKey_requiresImport(t *testing.T) { } func TestAccDatabricksWorkspaceCustomerManagedKey_noIp(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource no longer exists in 4.0") + if features.FivePointOhBeta() { + t.Skip("Resource no longer exists in 5.0") } data := acceptance.BuildTestData(t, "azurerm_databricks_workspace_customer_managed_key", "test") diff --git a/internal/services/databricks/databricks_workspace_resource.go b/internal/services/databricks/databricks_workspace_resource.go index 8dcc93dcb518..8754002b4686 100644 --- a/internal/services/databricks/databricks_workspace_resource.go +++ b/internal/services/databricks/databricks_workspace_resource.go @@ -22,7 +22,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/databricks/validate" keyVaultParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" @@ -144,7 +143,6 @@ func resourceDatabricksWorkspace() *pluginsdk.Resource { "network_security_group_rules_required": { Type: pluginsdk.TypeString, Optional: true, - Computed: !features.FourPointOhBeta(), ValidateFunc: validation.StringInSlice([]string{ string(workspaces.RequiredNsgRulesAllRules), string(workspaces.RequiredNsgRulesNoAzureDatabricksRules), @@ -380,17 +378,6 @@ func resourceDatabricksWorkspace() *pluginsdk.Resource { }), } - if !features.FourPointOhBeta() { - // NOTE: Leaving this as O+C as the 2024-05-01 API breaking change was accidentally introduced in PR #25919 - // and released in v3.104.0 of the provider... - resource.Schema["custom_parameters"].Elem.(*pluginsdk.Resource).Schema["no_public_ip"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - AtLeastOneOf: workspaceCustomParametersString(), - } - } - return resource } @@ -616,7 +603,6 @@ func resourceDatabricksWorkspaceCreateUpdate(d *pluginsdk.ResourceData, meta int accessConnectorProperties := workspaces.WorkspacePropertiesAccessConnector{} accessConnectorIdRaw := d.Get("access_connector_id").(string) accessConnectorId, err := accessconnector.ParseAccessConnectorID(accessConnectorIdRaw) - if err != nil { return fmt.Errorf("parsing Access Connector ID %s: %+v", accessConnectorIdRaw, err) } @@ -627,7 +613,6 @@ func resourceDatabricksWorkspaceCreateUpdate(d *pluginsdk.ResourceData, meta int } if accessConnector.Model.Identity != nil { - accIdentityId := "" for raw := range accessConnector.Model.Identity.IdentityIds { id, err := commonids.ParseUserAssignedIdentityIDInsensitively(raw) diff --git a/internal/services/databricks/databricks_workspace_resource_test.go b/internal/services/databricks/databricks_workspace_resource_test.go index cb582236e6ab..afe1ef7f2965 100644 --- a/internal/services/databricks/databricks_workspace_resource_test.go +++ b/internal/services/databricks/databricks_workspace_resource_test.go @@ -245,13 +245,6 @@ func TestAccDatabricksWorkspace_updateSKU(t *testing.T) { ), }, data.ImportStep(), - { - Config: r.basic(data, "trial"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), }) } diff --git a/internal/services/databricks/migration/customer_managed_key.go b/internal/services/databricks/migration/customer_managed_key.go index 6974b03fa054..ce47bedc9779 100644 --- a/internal/services/databricks/migration/customer_managed_key.go +++ b/internal/services/databricks/migration/customer_managed_key.go @@ -16,8 +16,7 @@ import ( var _ pluginsdk.StateUpgrade = CustomerManagedKeyV0ToV1{} -type CustomerManagedKeyV0ToV1 struct { -} +type CustomerManagedKeyV0ToV1 struct{} func (c CustomerManagedKeyV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/databricks/registration.go b/internal/services/databricks/registration.go index c1bf344a2b6d..74b9db9ba4eb 100644 --- a/internal/services/databricks/registration.go +++ b/internal/services/databricks/registration.go @@ -44,14 +44,14 @@ func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource { func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { resources := map[string]*pluginsdk.Resource{ "azurerm_databricks_workspace": resourceDatabricksWorkspace(), - "azurerm_databricks_workspace_customer_managed_key": resourceDatabricksWorkspaceCustomerManagedKey(), // TODO: Remove in 4.0 "azurerm_databricks_workspace_root_dbfs_customer_managed_key": resourceDatabricksWorkspaceRootDbfsCustomerManagedKey(), "azurerm_databricks_virtual_network_peering": resourceDatabricksVirtualNetworkPeering(), } - if !features.FourPointOhBeta() { + if !features.FivePointOhBeta() { resources["azurerm_databricks_workspace_customer_managed_key"] = resourceDatabricksWorkspaceCustomerManagedKey() } + return resources } diff --git a/internal/services/databricks/validate/cidr_test.go b/internal/services/databricks/validate/cidr_test.go index 106a54278700..0294c6ac319b 100644 --- a/internal/services/databricks/validate/cidr_test.go +++ b/internal/services/databricks/validate/cidr_test.go @@ -10,7 +10,6 @@ func TestCIDRIsIPv4OrIPv6(t *testing.T) { Input interface{} Valid bool }{ - { // IPv6 IPv4 literal Input: "::FFFF:192.168.0.1/24", diff --git a/internal/services/databricks/validate/databricks_virtual_network_peering_name_test.go b/internal/services/databricks/validate/databricks_virtual_network_peering_name_test.go index 99e736810e36..8ee7be56732f 100644 --- a/internal/services/databricks/validate/databricks_virtual_network_peering_name_test.go +++ b/internal/services/databricks/validate/databricks_virtual_network_peering_name_test.go @@ -10,7 +10,6 @@ func TestDatabricksVirtualNetworkPeeringName(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/datafactory/azuresdkhacks/models.go b/internal/services/datafactory/azuresdkhacks/models.go index e56207b50673..999cb43784a3 100644 --- a/internal/services/datafactory/azuresdkhacks/models.go +++ b/internal/services/datafactory/azuresdkhacks/models.go @@ -7,7 +7,7 @@ import ( "encoding/json" "github.com/Azure/go-autorest/autorest" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" ) // TODO4.0: check if the workaround could be removed. diff --git a/internal/services/datafactory/azuresdkhacks/pipelines.go b/internal/services/datafactory/azuresdkhacks/pipelines.go index 75ef1319861a..bb439ed577fd 100644 --- a/internal/services/datafactory/azuresdkhacks/pipelines.go +++ b/internal/services/datafactory/azuresdkhacks/pipelines.go @@ -10,13 +10,13 @@ import ( "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" ) // TODO4.0: check if the workaround could be removed. // Workaround for https://github.com/hashicorp/terraform-provider-azurerm/issues/24758 // Tracked on https://github.com/Azure/azure-rest-api-specs/issues/27816 -// This file is almost copied from https://github.com/tombuildsstuff/kermit/blob/main/sdk/datafactory/2018-06-01/datafactory/pipelines.go +// This file is almost copied from https://github.com/jackofallops/kermit/blob/main/sdk/datafactory/2018-06-01/datafactory/pipelines.go // Added a custom client to use custom `PipelineResource`. type PipelinesClient struct { @@ -62,26 +62,23 @@ func (client PipelinesClient) CreateOrUpdate(ctx context.Context, resourceGroupN }}, }, }); err != nil { - return result, validation.NewError("datafactory.PipelinesClient", "CreateOrUpdate", err.Error()) + return result, validation.NewError("datafactory.PipelinesClient", "CreateOrUpdate", err.Error()) // nolint: govet } req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, factoryName, pipelineName, pipeline, ifMatch) if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", nil, "Failure preparing request") - return + return result, autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", nil, "Failure preparing request") } resp, err := client.OriginalClient.CreateOrUpdateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", resp, "Failure sending request") - return + return result, autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", resp, "Failure sending request") } result, err = client.CreateOrUpdateResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", resp, "Failure responding to request") - return + return result, autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "CreateOrUpdate", resp, "Failure responding to request") } return @@ -152,29 +149,26 @@ func (client PipelinesClient) Get(ctx context.Context, resourceGroupName string, }, }, }); err != nil { - return result, validation.NewError("datafactory.PipelinesClient", "Get", err.Error()) + return result, validation.NewError("datafactory.PipelinesClient", "Get", err.Error()) // nolint: govet } req, err := client.GetPreparer(ctx, resourceGroupName, factoryName, pipelineName, ifNoneMatch) if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", nil, "Failure preparing request") - return + return result, autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", nil, "Failure preparing request") } resp, err := client.OriginalClient.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", resp, "Failure sending request") - return + return result, autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", resp, "Failure sending request") } result, err = client.GetResponder(resp) if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", resp, "Failure responding to request") - return + return result, autorest.NewErrorWithError(err, "datafactory.PipelinesClient", "Get", resp, "Failure responding to request") } - return + return result, err } func (client PipelinesClient) GetPreparer(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, ifNoneMatch string) (*http.Request, error) { diff --git a/internal/services/datafactory/client/client.go b/internal/services/datafactory/client/client.go index 1b6d72cbedff..025fea4f9e73 100644 --- a/internal/services/datafactory/client/client.go +++ b/internal/services/datafactory/client/client.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints" "github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/common" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) type Client struct { diff --git a/internal/services/datafactory/data_factory.go b/internal/services/datafactory/data_factory.go index 1f5d5b1b5863..ba2676cc6fd2 100644 --- a/internal/services/datafactory/data_factory.go +++ b/internal/services/datafactory/data_factory.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/datafactory/azuresdkhacks" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) // @tombuildsstuff: these have been ported over from the Azure SDK for Go since the service team has removed them @@ -146,9 +146,9 @@ func flattenDataFactoryVariables(input map[string]*datafactory.VariableSpecifica // DatasetColumn describes the attributes needed to specify a structure column for a dataset type DatasetColumn struct { - Name string `json:"name,omitempty" tfschema:"name"` + Name string `json:"name,omitempty" tfschema:"name"` Description string `json:"description,omitempty" tfschema:"description"` - Type string `json:"type,omitempty" tfschema:"type"` + Type string `json:"type,omitempty" tfschema:"type"` } func expandDataFactoryDatasetStructure(input []interface{}) interface{} { diff --git a/internal/services/datafactory/data_factory_credential_service_principal_resource.go b/internal/services/datafactory/data_factory_credential_service_principal_resource.go index e79e127d45f6..b2d10701cdb8 100644 --- a/internal/services/datafactory/data_factory_credential_service_principal_resource.go +++ b/internal/services/datafactory/data_factory_credential_service_principal_resource.go @@ -19,8 +19,10 @@ import ( type DataFactoryCredentialServicePrincipalResource struct{} -var _ sdk.Resource = DataFactoryCredentialServicePrincipalResource{} -var _ sdk.ResourceWithUpdate = DataFactoryCredentialServicePrincipalResource{} +var ( + _ sdk.Resource = DataFactoryCredentialServicePrincipalResource{} + _ sdk.ResourceWithUpdate = DataFactoryCredentialServicePrincipalResource{} +) func (DataFactoryCredentialServicePrincipalResource) ResourceType() string { return "azurerm_data_factory_credential_service_principal" diff --git a/internal/services/datafactory/data_factory_credential_user_assigned_managed_identity_resource.go b/internal/services/datafactory/data_factory_credential_user_assigned_managed_identity_resource.go index 3d96bb9f441d..4a2849fe6e01 100644 --- a/internal/services/datafactory/data_factory_credential_user_assigned_managed_identity_resource.go +++ b/internal/services/datafactory/data_factory_credential_user_assigned_managed_identity_resource.go @@ -20,8 +20,10 @@ import ( type DataFactoryCredentialUserAssignedManagedIdentityResource struct{} -var _ sdk.Resource = DataFactoryCredentialUserAssignedManagedIdentityResource{} -var _ sdk.ResourceWithUpdate = DataFactoryCredentialUserAssignedManagedIdentityResource{} +var ( + _ sdk.Resource = DataFactoryCredentialUserAssignedManagedIdentityResource{} + _ sdk.ResourceWithUpdate = DataFactoryCredentialUserAssignedManagedIdentityResource{} +) func (DataFactoryCredentialUserAssignedManagedIdentityResource) ResourceType() string { return "azurerm_data_factory_credential_user_managed_identity" diff --git a/internal/services/datafactory/data_factory_custom_dataset_resource.go b/internal/services/datafactory/data_factory_custom_dataset_resource.go index 76db1aa1cada..535091d27c01 100644 --- a/internal/services/datafactory/data_factory_custom_dataset_resource.go +++ b/internal/services/datafactory/data_factory_custom_dataset_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryCustomDataset() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_data_flow.go b/internal/services/datafactory/data_factory_data_flow.go index fdedaa0589c8..ddd1bd878fb1 100644 --- a/internal/services/datafactory/data_factory_data_flow.go +++ b/internal/services/datafactory/data_factory_data_flow.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func SchemaForDataFlowSourceAndSink() *pluginsdk.Schema { diff --git a/internal/services/datafactory/data_factory_data_flow_resource.go b/internal/services/datafactory/data_factory_data_flow_resource.go index eaa22f009948..89b15d164440 100644 --- a/internal/services/datafactory/data_factory_data_flow_resource.go +++ b/internal/services/datafactory/data_factory_data_flow_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDataFlow() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_data_flow_resource_test.go b/internal/services/datafactory/data_factory_data_flow_resource_test.go index 4aeb57d4fcae..ce3e3804fa23 100644 --- a/internal/services/datafactory/data_factory_data_flow_resource_test.go +++ b/internal/services/datafactory/data_factory_data_flow_resource_test.go @@ -107,6 +107,7 @@ func (t DataFlowResource) Exists(ctx context.Context, clients *clients.Client, s } func (r DataFlowResource) basic(data acceptance.TestData) string { + // nolint: dupword return fmt.Sprintf(` %s @@ -173,6 +174,7 @@ resource "azurerm_data_factory_data_flow" "import" { } func (r DataFlowResource) complete(data acceptance.TestData) string { + // nolint: dupword return fmt.Sprintf(` %s @@ -331,6 +333,7 @@ EOT } func (DataFlowResource) template(data acceptance.TestData) string { + // nolint: dupword return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/datafactory/data_factory_dataset_azure_blob_resource.go b/internal/services/datafactory/data_factory_dataset_azure_blob_resource.go index 2455d201a926..05a1c5e3d6ce 100644 --- a/internal/services/datafactory/data_factory_dataset_azure_blob_resource.go +++ b/internal/services/datafactory/data_factory_dataset_azure_blob_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetAzureBlob() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_azure_sql_table_resource.go b/internal/services/datafactory/data_factory_dataset_azure_sql_table_resource.go index a59657926bec..058455c7259b 100644 --- a/internal/services/datafactory/data_factory_dataset_azure_sql_table_resource.go +++ b/internal/services/datafactory/data_factory_dataset_azure_sql_table_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) var _ sdk.Resource = DataFactoryDatasetAzureSQLTableResource{} diff --git a/internal/services/datafactory/data_factory_dataset_binary_resource.go b/internal/services/datafactory/data_factory_dataset_binary_resource.go index ffa0058f0bd3..a5a55b12a776 100644 --- a/internal/services/datafactory/data_factory_dataset_binary_resource.go +++ b/internal/services/datafactory/data_factory_dataset_binary_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetBinary() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_cosmosdb_sqlapi_resource.go b/internal/services/datafactory/data_factory_dataset_cosmosdb_sqlapi_resource.go index ad810e53eb7f..47cb4d23cdc9 100644 --- a/internal/services/datafactory/data_factory_dataset_cosmosdb_sqlapi_resource.go +++ b/internal/services/datafactory/data_factory_dataset_cosmosdb_sqlapi_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetCosmosDbSQLAPI() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_delimited_text_resource.go b/internal/services/datafactory/data_factory_dataset_delimited_text_resource.go index 6f8f494d3f2b..a01eab03e599 100644 --- a/internal/services/datafactory/data_factory_dataset_delimited_text_resource.go +++ b/internal/services/datafactory/data_factory_dataset_delimited_text_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetDelimitedText() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_delimited_text_resource_test.go b/internal/services/datafactory/data_factory_dataset_delimited_text_resource_test.go index 07512ce3f677..577bf59ba14d 100644 --- a/internal/services/datafactory/data_factory_dataset_delimited_text_resource_test.go +++ b/internal/services/datafactory/data_factory_dataset_delimited_text_resource_test.go @@ -630,6 +630,7 @@ resource "azurerm_data_factory_dataset_delimited_text" "test" { } `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) } + func (DatasetDelimitedTextResource) blobFSDynamicPath(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/datafactory/data_factory_dataset_http_resource.go b/internal/services/datafactory/data_factory_dataset_http_resource.go index dc2f923c1d2e..4ed5e5ffd374 100644 --- a/internal/services/datafactory/data_factory_dataset_http_resource.go +++ b/internal/services/datafactory/data_factory_dataset_http_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetHTTP() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_json_resource.go b/internal/services/datafactory/data_factory_dataset_json_resource.go index a117156ae6c7..442862d9bb92 100644 --- a/internal/services/datafactory/data_factory_dataset_json_resource.go +++ b/internal/services/datafactory/data_factory_dataset_json_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetJSON() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_mysql_resource.go b/internal/services/datafactory/data_factory_dataset_mysql_resource.go index a77ea12094f3..9f04fe01aea3 100644 --- a/internal/services/datafactory/data_factory_dataset_mysql_resource.go +++ b/internal/services/datafactory/data_factory_dataset_mysql_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetMySQL() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_parquet_resource.go b/internal/services/datafactory/data_factory_dataset_parquet_resource.go index bc2791c3d7d5..f7ce73e1c245 100644 --- a/internal/services/datafactory/data_factory_dataset_parquet_resource.go +++ b/internal/services/datafactory/data_factory_dataset_parquet_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetParquet() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_postgresql_resource.go b/internal/services/datafactory/data_factory_dataset_postgresql_resource.go index ba24d616c51d..36b72a765464 100644 --- a/internal/services/datafactory/data_factory_dataset_postgresql_resource.go +++ b/internal/services/datafactory/data_factory_dataset_postgresql_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetPostgreSQL() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_snowflake_resource.go b/internal/services/datafactory/data_factory_dataset_snowflake_resource.go index 01d2d2e4c6ca..08560004f187 100644 --- a/internal/services/datafactory/data_factory_dataset_snowflake_resource.go +++ b/internal/services/datafactory/data_factory_dataset_snowflake_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetSnowflake() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_dataset_sql_server_table_resource.go b/internal/services/datafactory/data_factory_dataset_sql_server_table_resource.go index 811fcbe3f733..e0b1c98a4bf8 100644 --- a/internal/services/datafactory/data_factory_dataset_sql_server_table_resource.go +++ b/internal/services/datafactory/data_factory_dataset_sql_server_table_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryDatasetSQLServerTable() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_flowlet_data_flow_resource.go b/internal/services/datafactory/data_factory_flowlet_data_flow_resource.go index 0e8d432850f6..74513a4ab3e0 100644 --- a/internal/services/datafactory/data_factory_flowlet_data_flow_resource.go +++ b/internal/services/datafactory/data_factory_flowlet_data_flow_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryFlowletDataFlow() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_flowlet_data_flow_resource_test.go b/internal/services/datafactory/data_factory_flowlet_data_flow_resource_test.go index 68e3e265d7bd..66c3bba36d77 100644 --- a/internal/services/datafactory/data_factory_flowlet_data_flow_resource_test.go +++ b/internal/services/datafactory/data_factory_flowlet_data_flow_resource_test.go @@ -78,6 +78,7 @@ func (t FlowletDataFlowResource) Exists(ctx context.Context, clients *clients.Cl } func (r FlowletDataFlowResource) basic(data acceptance.TestData) string { + // nolint: dupword return fmt.Sprintf(` %s @@ -144,6 +145,7 @@ resource "azurerm_data_factory_flowlet_data_flow" "import" { } func (r FlowletDataFlowResource) complete(data acceptance.TestData) string { + // nolint: dupword return fmt.Sprintf(` %s diff --git a/internal/services/datafactory/data_factory_integration_runtime_azure_resource.go b/internal/services/datafactory/data_factory_integration_runtime_azure_resource.go index 76daec440205..ade53702c68f 100644 --- a/internal/services/datafactory/data_factory_integration_runtime_azure_resource.go +++ b/internal/services/datafactory/data_factory_integration_runtime_azure_resource.go @@ -8,18 +8,17 @@ import ( "regexp" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories" - "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/datafactory/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryIntegrationRuntimeAzure() *pluginsdk.Resource { @@ -116,14 +115,6 @@ func resourceDataFactoryIntegrationRuntimeAzure() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["cleanup_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - } - } - return resource } @@ -280,27 +271,13 @@ func resourceDataFactoryIntegrationRuntimeAzureDelete(d *pluginsdk.ResourceData, } func expandDataFactoryIntegrationRuntimeAzureComputeProperties(d *pluginsdk.ResourceData) *datafactory.IntegrationRuntimeComputeProperties { - location := azure.NormalizeLocation(d.Get("location").(string)) - coreCount := int32(d.Get("core_count").(int)) - timeToLiveMin := int32(d.Get("time_to_live_min").(int)) - - cleanup := true - if features.FourPointOhBeta() { - cleanup = d.Get("cleanup_enabled").(bool) - } else { - // nolint staticcheck - if v, ok := d.GetOkExists("cleanup_enabled"); ok { - cleanup = v.(bool) - } - } - return &datafactory.IntegrationRuntimeComputeProperties{ - Location: &location, + Location: pointer.To(location.Normalize(d.Get("location").(string))), DataFlowProperties: &datafactory.IntegrationRuntimeDataFlowProperties{ ComputeType: datafactory.DataFlowComputeType(d.Get("compute_type").(string)), - CoreCount: &coreCount, - TimeToLive: &timeToLiveMin, - Cleanup: utils.Bool(cleanup), + CoreCount: pointer.To(int32(d.Get("core_count").(int))), + TimeToLive: pointer.To(int32(d.Get("time_to_live_min").(int))), + Cleanup: pointer.To(d.Get("cleanup_enabled").(bool)), }, } } diff --git a/internal/services/datafactory/data_factory_integration_runtime_azure_ssis_resource.go b/internal/services/datafactory/data_factory_integration_runtime_azure_ssis_resource.go index 45811d41ef32..6bf27d57190e 100644 --- a/internal/services/datafactory/data_factory_integration_runtime_azure_ssis_resource.go +++ b/internal/services/datafactory/data_factory_integration_runtime_azure_ssis_resource.go @@ -21,7 +21,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryIntegrationRuntimeAzureSsis() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_integration_runtime_managed_resource.go b/internal/services/datafactory/data_factory_integration_runtime_managed_resource.go deleted file mode 100644 index 633f74749ded..000000000000 --- a/internal/services/datafactory/data_factory_integration_runtime_managed_resource.go +++ /dev/null @@ -1,484 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package datafactory - -import ( - "fmt" - "regexp" - "time" - - "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories" - "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/datafactory/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck -) - -func resourceDataFactoryIntegrationRuntimeManaged() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceDataFactoryIntegrationRuntimeManagedCreateUpdate, - Read: resourceDataFactoryIntegrationRuntimeManagedRead, - Update: resourceDataFactoryIntegrationRuntimeManagedCreateUpdate, - Delete: resourceDataFactoryIntegrationRuntimeManagedDelete, - - Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := parse.IntegrationRuntimeID(id) - return err - }), - - DeprecationMessage: "The resource 'azurerm_data_factory_integration_runtime_managed' has been superseded by the 'azurerm_data_factory_integration_runtime_azure_ssis' resource and will be removed in v4.0 of the AzureRM Provider.", - - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(30 * time.Minute), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Update: pluginsdk.DefaultTimeout(30 * time.Minute), - Delete: pluginsdk.DefaultTimeout(30 * time.Minute), - }, - - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringMatch( - regexp.MustCompile(`^([a-zA-Z0-9](-|-?[a-zA-Z0-9]+)+[a-zA-Z0-9])$`), - `Invalid name for Managed Integration Runtime: minimum 3 characters, must start and end with a number or a letter, may only consist of letters, numbers and dashes and no consecutive dashes.`, - ), - }, - - "description": { - Type: pluginsdk.TypeString, - Optional: true, - }, - - "data_factory_id": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: factories.ValidateFactoryID, - }, - - "location": commonschema.Location(), - - "node_size": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice([]string{ - "Standard_D2_v3", - "Standard_D4_v3", - "Standard_D8_v3", - "Standard_D16_v3", - "Standard_D32_v3", - "Standard_D64_v3", - "Standard_E2_v3", - "Standard_E4_v3", - "Standard_E8_v3", - "Standard_E16_v3", - "Standard_E32_v3", - "Standard_E64_v3", - "Standard_D1_v2", - "Standard_D2_v2", - "Standard_D3_v2", - "Standard_D4_v2", - "Standard_A4_v2", - "Standard_A8_v2", - }, false), - }, - - "number_of_nodes": { - Type: pluginsdk.TypeInt, - Optional: true, - Default: 1, - ValidateFunc: validation.IntBetween(1, 10), - }, - - "max_parallel_executions_per_node": { - Type: pluginsdk.TypeInt, - Optional: true, - Default: 1, - ValidateFunc: validation.IntBetween(1, 16), - }, - - "edition": { - Type: pluginsdk.TypeString, - Optional: true, - Default: string(datafactory.IntegrationRuntimeEditionStandard), - ValidateFunc: validation.StringInSlice([]string{ - string(datafactory.IntegrationRuntimeEditionStandard), - string(datafactory.IntegrationRuntimeEditionEnterprise), - }, false), - }, - - "license_type": { - Type: pluginsdk.TypeString, - Optional: true, - Default: string(datafactory.IntegrationRuntimeLicenseTypeLicenseIncluded), - ValidateFunc: validation.StringInSlice([]string{ - string(datafactory.IntegrationRuntimeLicenseTypeLicenseIncluded), - string(datafactory.IntegrationRuntimeLicenseTypeBasePrice), - }, false), - }, - - "vnet_integration": { - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - // TODO: 4.0 - this should become `virtual_network_id` or `subnet_id` - are these ForceNew?! - "vnet_id": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: commonids.ValidateVirtualNetworkID, - }, - "subnet_name": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - }, - - "custom_setup_script": { - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "blob_container_uri": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "sas_token": { - Type: pluginsdk.TypeString, - Required: true, - Sensitive: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - }, - - "catalog_info": { - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "server_endpoint": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "administrator_login": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "administrator_password": { - Type: pluginsdk.TypeString, - Optional: true, - Sensitive: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "pricing_tier": { - Type: pluginsdk.TypeString, - Optional: true, - Default: string(datafactory.IntegrationRuntimeSsisCatalogPricingTierBasic), - ValidateFunc: validation.StringInSlice([]string{ - string(datafactory.IntegrationRuntimeSsisCatalogPricingTierBasic), - string(datafactory.IntegrationRuntimeSsisCatalogPricingTierStandard), - string(datafactory.IntegrationRuntimeSsisCatalogPricingTierPremium), - string(datafactory.IntegrationRuntimeSsisCatalogPricingTierPremiumRS), - }, false), - }, - }, - }, - }, - - "credential_name": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - } -} - -func resourceDataFactoryIntegrationRuntimeManagedCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).DataFactory.IntegrationRuntimesClient - subscriptionId := meta.(*clients.Client).DataFactory.IntegrationRuntimesClient.SubscriptionID - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) - defer cancel() - - dataFactoryId, err := factories.ParseFactoryID(d.Get("data_factory_id").(string)) - if err != nil { - return err - } - - id := parse.NewIntegrationRuntimeID(subscriptionId, dataFactoryId.ResourceGroupName, dataFactoryId.FactoryName, d.Get("name").(string)) - - if d.IsNewResource() { - existing, err := client.Get(ctx, id.ResourceGroup, id.FactoryName, id.Name, "") - if err != nil { - if !utils.ResponseWasNotFound(existing.Response) { - return fmt.Errorf("checking for presence of existing Data Factory Managed %s: %+v", id, err) - } - } - - if !utils.ResponseWasNotFound(existing.Response) { - return tf.ImportAsExistsError("azurerm_data_factory_integration_runtime_managed", id.ID()) - } - } - - description := d.Get("description").(string) - managedIntegrationRuntime := datafactory.ManagedIntegrationRuntime{ - Description: &description, - Type: datafactory.TypeBasicIntegrationRuntimeTypeManaged, - ManagedIntegrationRuntimeTypeProperties: &datafactory.ManagedIntegrationRuntimeTypeProperties{ - ComputeProperties: expandDataFactoryIntegrationRuntimeManagedComputeProperties(d), - SsisProperties: expandDataFactoryIntegrationRuntimeManagedSsisProperties(d), - }, - } - - basicIntegrationRuntime, _ := managedIntegrationRuntime.AsBasicIntegrationRuntime() - - integrationRuntime := datafactory.IntegrationRuntimeResource{ - Name: &id.Name, - Properties: basicIntegrationRuntime, - } - - if _, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.FactoryName, id.Name, integrationRuntime, ""); err != nil { - return fmt.Errorf("creating/updating Data Factory Managed %s: %+v", id, err) - } - - d.SetId(id.ID()) - - return resourceDataFactoryIntegrationRuntimeManagedRead(d, meta) -} - -func resourceDataFactoryIntegrationRuntimeManagedRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).DataFactory.IntegrationRuntimesClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := parse.IntegrationRuntimeID(d.Id()) - if err != nil { - return err - } - - dataFactoryId := factories.NewFactoryID(id.SubscriptionId, id.ResourceGroup, id.FactoryName) - - resp, err := client.Get(ctx, id.ResourceGroup, id.FactoryName, id.Name, "") - if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - d.SetId("") - return nil - } - - return fmt.Errorf("retrieving Data Factory Managed %s: %+v", *id, err) - } - - d.Set("name", id.Name) - d.Set("data_factory_id", dataFactoryId.ID()) - - managedIntegrationRuntime, convertSuccess := resp.Properties.AsManagedIntegrationRuntime() - if !convertSuccess { - return fmt.Errorf("converting Integration Runtime to Managed %s", *id) - } - - if managedIntegrationRuntime.Description != nil { - d.Set("description", managedIntegrationRuntime.Description) - } - - if computeProps := managedIntegrationRuntime.ComputeProperties; computeProps != nil { - if location := computeProps.Location; location != nil { - d.Set("location", location) - } - - if nodeSize := computeProps.NodeSize; nodeSize != nil { - d.Set("node_size", nodeSize) - } - - if numberOfNodes := computeProps.NumberOfNodes; numberOfNodes != nil { - d.Set("number_of_nodes", numberOfNodes) - } - - if maxParallelExecutionsPerNode := computeProps.MaxParallelExecutionsPerNode; maxParallelExecutionsPerNode != nil { - d.Set("max_parallel_executions_per_node", maxParallelExecutionsPerNode) - } - - if err := d.Set("vnet_integration", flattenDataFactoryIntegrationRuntimeManagedVnetIntegration(computeProps.VNetProperties)); err != nil { - return fmt.Errorf("setting `vnet_integration`: %+v", err) - } - } - - if ssisProps := managedIntegrationRuntime.SsisProperties; ssisProps != nil { - d.Set("edition", string(ssisProps.Edition)) - d.Set("license_type", string(ssisProps.LicenseType)) - - if err := d.Set("catalog_info", flattenDataFactoryIntegrationRuntimeManagedSsisCatalogInfo(ssisProps.CatalogInfo, d)); err != nil { - return fmt.Errorf("setting `vnet_integration`: %+v", err) - } - - if err := d.Set("custom_setup_script", flattenDataFactoryIntegrationRuntimeManagedSsisCustomSetupScript(ssisProps.CustomSetupScriptProperties, d)); err != nil { - return fmt.Errorf("setting `vnet_integration`: %+v", err) - } - - if ssisProps.Credential != nil { - d.Set("credential_name", pointer.From(ssisProps.Credential.ReferenceName)) - } - } - - return nil -} - -func resourceDataFactoryIntegrationRuntimeManagedDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).DataFactory.IntegrationRuntimesClient - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := parse.IntegrationRuntimeID(d.Id()) - if err != nil { - return err - } - - response, err := client.Delete(ctx, id.ResourceGroup, id.FactoryName, id.Name) - if err != nil { - if !utils.ResponseWasNotFound(response) { - return fmt.Errorf("deleting Data Factory Managed %s: %+v", *id, err) - } - } - - return nil -} - -func expandDataFactoryIntegrationRuntimeManagedComputeProperties(d *pluginsdk.ResourceData) *datafactory.IntegrationRuntimeComputeProperties { - location := azure.NormalizeLocation(d.Get("location").(string)) - computeProperties := datafactory.IntegrationRuntimeComputeProperties{ - Location: &location, - NodeSize: utils.String(d.Get("node_size").(string)), - NumberOfNodes: utils.Int32(int32(d.Get("number_of_nodes").(int))), - MaxParallelExecutionsPerNode: utils.Int32(int32(d.Get("max_parallel_executions_per_node").(int))), - } - - if vnetIntegrations, ok := d.GetOk("vnet_integration"); ok && len(vnetIntegrations.([]interface{})) > 0 { - vnetProps := vnetIntegrations.([]interface{})[0].(map[string]interface{}) - computeProperties.VNetProperties = &datafactory.IntegrationRuntimeVNetProperties{ - VNetID: utils.String(vnetProps["vnet_id"].(string)), - Subnet: utils.String(vnetProps["subnet_name"].(string)), - } - } - - return &computeProperties -} - -func expandDataFactoryIntegrationRuntimeManagedSsisProperties(d *pluginsdk.ResourceData) *datafactory.IntegrationRuntimeSsisProperties { - ssisProperties := &datafactory.IntegrationRuntimeSsisProperties{ - Edition: datafactory.IntegrationRuntimeEdition(d.Get("edition").(string)), - LicenseType: datafactory.IntegrationRuntimeLicenseType(d.Get("license_type").(string)), - } - - if catalogInfos, ok := d.GetOk("catalog_info"); ok && len(catalogInfos.([]interface{})) > 0 { - catalogInfo := catalogInfos.([]interface{})[0].(map[string]interface{}) - - ssisProperties.CatalogInfo = &datafactory.IntegrationRuntimeSsisCatalogInfo{ - CatalogServerEndpoint: utils.String(catalogInfo["server_endpoint"].(string)), - CatalogPricingTier: datafactory.IntegrationRuntimeSsisCatalogPricingTier(catalogInfo["pricing_tier"].(string)), - } - - if adminUserName := catalogInfo["administrator_login"]; adminUserName.(string) != "" { - ssisProperties.CatalogInfo.CatalogAdminUserName = utils.String(adminUserName.(string)) - } - - if adminPassword := catalogInfo["administrator_password"]; adminPassword.(string) != "" { - ssisProperties.CatalogInfo.CatalogAdminPassword = &datafactory.SecureString{ - Value: utils.String(adminPassword.(string)), - Type: datafactory.TypeSecureString, - } - } - } - - if customSetupScripts, ok := d.GetOk("custom_setup_script"); ok && len(customSetupScripts.([]interface{})) > 0 { - customSetupScript := customSetupScripts.([]interface{})[0].(map[string]interface{}) - - sasToken := &datafactory.SecureString{ - Value: utils.String(customSetupScript["sas_token"].(string)), - Type: datafactory.TypeSecureString, - } - - ssisProperties.CustomSetupScriptProperties = &datafactory.IntegrationRuntimeCustomSetupScriptProperties{ - BlobContainerURI: utils.String(customSetupScript["blob_container_uri"].(string)), - SasToken: sasToken, - } - } - - if credentialName := d.Get("credential_name").(string); credentialName != "" { - ssisProperties.Credential = &datafactory.CredentialReference{ - ReferenceName: pointer.To(credentialName), - } - } - - return ssisProperties -} - -func flattenDataFactoryIntegrationRuntimeManagedVnetIntegration(vnetProperties *datafactory.IntegrationRuntimeVNetProperties) []interface{} { - if vnetProperties == nil { - return []interface{}{} - } - - return []interface{}{ - map[string]string{ - "vnet_id": *vnetProperties.VNetID, - "subnet_name": *vnetProperties.Subnet, - }, - } -} - -func flattenDataFactoryIntegrationRuntimeManagedSsisCatalogInfo(ssisProperties *datafactory.IntegrationRuntimeSsisCatalogInfo, d *pluginsdk.ResourceData) []interface{} { - if ssisProperties == nil { - return []interface{}{} - } - - catalogInfo := map[string]string{ - "server_endpoint": *ssisProperties.CatalogServerEndpoint, - "pricing_tier": string(ssisProperties.CatalogPricingTier), - } - - if ssisProperties.CatalogAdminUserName != nil { - catalogInfo["administrator_login"] = *ssisProperties.CatalogAdminUserName - } - - if adminPassword, ok := d.GetOk("catalog_info.0.administrator_password"); ok { - catalogInfo["administrator_password"] = adminPassword.(string) - } - - return []interface{}{catalogInfo} -} - -func flattenDataFactoryIntegrationRuntimeManagedSsisCustomSetupScript(customSetupScriptProperties *datafactory.IntegrationRuntimeCustomSetupScriptProperties, d *pluginsdk.ResourceData) []interface{} { - if customSetupScriptProperties == nil { - return []interface{}{} - } - - customSetupScript := map[string]string{ - "blob_container_uri": *customSetupScriptProperties.BlobContainerURI, - } - - if sasToken, ok := d.GetOk("custom_setup_script.0.sas_token"); ok { - customSetupScript["sas_token"] = sasToken.(string) - } - - return []interface{}{customSetupScript} -} diff --git a/internal/services/datafactory/data_factory_integration_runtime_managed_resource_test.go b/internal/services/datafactory/data_factory_integration_runtime_managed_resource_test.go deleted file mode 100644 index 9e9d8c1bc195..000000000000 --- a/internal/services/datafactory/data_factory_integration_runtime_managed_resource_test.go +++ /dev/null @@ -1,447 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package datafactory_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/datafactory/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type IntegrationRuntimeManagedResource struct{} - -func TestAccDataFactoryIntegrationRuntimeManaged_basic(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource has been removed in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_data_factory_integration_runtime_managed", "test") - r := IntegrationRuntimeManagedResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccDataFactoryIntegrationRuntimeManaged_vnetIntegration(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource has been removed in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_data_factory_integration_runtime_managed", "test") - r := IntegrationRuntimeManagedResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.vnetIntegration(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("vnet_integration.#").HasValue("1"), - check.That(data.ResourceName).Key("vnet_integration.0.vnet_id").Exists(), - check.That(data.ResourceName).Key("vnet_integration.0.subnet_name").Exists(), - ), - }, - data.ImportStep(), - }) -} - -func TestAccDataFactoryIntegrationRuntimeManaged_catalogInfo(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource has been removed in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_data_factory_integration_runtime_managed", "test") - r := IntegrationRuntimeManagedResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.catalogInfo(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("catalog_info.#").HasValue("1"), - check.That(data.ResourceName).Key("catalog_info.0.server_endpoint").Exists(), - check.That(data.ResourceName).Key("catalog_info.0.administrator_login").HasValue("ssis_catalog_admin"), - check.That(data.ResourceName).Key("catalog_info.0.administrator_password").HasValue("my-s3cret-p4ssword!"), - check.That(data.ResourceName).Key("catalog_info.0.pricing_tier").HasValue("Basic"), - ), - }, - data.ImportStep("catalog_info.0.administrator_password"), - }) -} - -func TestAccDataFactoryIntegrationRuntimeManaged_customSetupScript(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource has been removed in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_data_factory_integration_runtime_managed", "test") - r := IntegrationRuntimeManagedResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.customSetupScript(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("custom_setup_script.#").HasValue("1"), - check.That(data.ResourceName).Key("custom_setup_script.0.blob_container_uri").Exists(), - check.That(data.ResourceName).Key("custom_setup_script.0.sas_token").Exists(), - ), - }, - data.ImportStep("catalog_info.0.administrator_password", "custom_setup_script.0.sas_token"), - }) -} - -func TestAccDataFactoryIntegrationRuntimeManaged_credential(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource has been removed in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_data_factory_integration_runtime_managed", "test") - r := IntegrationRuntimeManagedResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.credential(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccDataFactoryIntegrationRuntimeManaged_aadAuth(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Resource has been removed in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_data_factory_integration_runtime_managed", "test") - r := IntegrationRuntimeManagedResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.aadAuth(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func (IntegrationRuntimeManagedResource) basic(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-df-%d" - location = "%s" -} - -resource "azurerm_data_factory" "test" { - name = "acctestdfirm%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" -} - -resource "azurerm_data_factory_integration_runtime_managed" "test" { - name = "managed-integration-runtime" - data_factory_id = azurerm_data_factory.test.id - location = azurerm_resource_group.test.location - - node_size = "Standard_D8_v3" - number_of_nodes = 2 - max_parallel_executions_per_node = 8 - edition = "Standard" - license_type = "LicenseIncluded" -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - -func (IntegrationRuntimeManagedResource) vnetIntegration(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-df-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvnet%d" - address_space = ["10.0.0.0/16"] - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" -} - -resource "azurerm_subnet" "test" { - name = "acctestsubnet%d" - resource_group_name = "${azurerm_resource_group.test.name}" - virtual_network_name = "${azurerm_virtual_network.test.name}" - address_prefixes = ["10.0.2.0/24"] -} - -resource "azurerm_data_factory" "test" { - name = "acctestdfirm%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" -} - -resource "azurerm_data_factory_integration_runtime_managed" "test" { - name = "managed-integration-runtime" - data_factory_id = azurerm_data_factory.test.id - location = azurerm_resource_group.test.location - - node_size = "Standard_D8_v3" - - vnet_integration { - vnet_id = "${azurerm_virtual_network.test.id}" - subnet_name = "${azurerm_subnet.test.name}" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - -func (IntegrationRuntimeManagedResource) catalogInfo(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-df-%d" - location = "%s" -} - -resource "azurerm_data_factory" "test" { - name = "acctestdfirm%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" -} - -resource "azurerm_sql_server" "test" { - name = "acctestsql%d" - resource_group_name = "${azurerm_resource_group.test.name}" - location = "${azurerm_resource_group.test.location}" - version = "12.0" - administrator_login = "ssis_catalog_admin" - administrator_login_password = "my-s3cret-p4ssword!" -} - -resource "azurerm_data_factory_integration_runtime_managed" "test" { - name = "managed-integration-runtime" - data_factory_id = azurerm_data_factory.test.id - location = azurerm_resource_group.test.location - - node_size = "Standard_D8_v3" - - catalog_info { - server_endpoint = "${azurerm_sql_server.test.fully_qualified_domain_name}" - administrator_login = "ssis_catalog_admin" - administrator_password = "my-s3cret-p4ssword!" - pricing_tier = "Basic" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) -} - -func (IntegrationRuntimeManagedResource) customSetupScript(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-df-%d" - location = "%s" -} - -resource "azurerm_data_factory" "test" { - name = "acctestdfirm%d" - location = "${azurerm_resource_group.test.location}" - resource_group_name = "${azurerm_resource_group.test.name}" -} - -resource "azurerm_storage_account" "test" { - name = "acctestsa%s" - resource_group_name = "${azurerm_resource_group.test.name}" - location = "${azurerm_resource_group.test.location}" - account_kind = "BlobStorage" - account_tier = "Standard" - account_replication_type = "LRS" - access_tier = "Hot" - enable_https_traffic_only = true -} - -resource "azurerm_storage_container" "test" { - name = "setup-files" - storage_account_name = "${azurerm_storage_account.test.name}" - container_access_type = "private" -} - -data "azurerm_storage_account_blob_container_sas" "test" { - connection_string = "${azurerm_storage_account.test.primary_connection_string}" - container_name = "${azurerm_storage_container.test.name}" - https_only = true - - start = "2017-03-21" - expiry = "2022-03-21" - - permissions { - read = true - add = false - create = false - write = true - delete = false - list = true - } -} - -resource "azurerm_data_factory_integration_runtime_managed" "test" { - name = "managed-integration-runtime" - data_factory_id = azurerm_data_factory.test.id - location = azurerm_resource_group.test.location - - node_size = "Standard_D8_v3" - - custom_setup_script { - blob_container_uri = "${azurerm_storage_account.test.primary_blob_endpoint}/${azurerm_storage_container.test.name}" - sas_token = "${data.azurerm_storage_account_blob_container_sas.test.sas}" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomString) -} - -func (IntegrationRuntimeManagedResource) aadAuth(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-df-%d" - location = "%s" -} - -resource "azurerm_data_factory" "test" { - name = "acctestdfirm%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - identity { - type = "SystemAssigned" - } -} - -resource "azurerm_sql_server" "test" { - name = "acctestsql%d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - version = "12.0" - administrator_login = "ssis_catalog_admin" - administrator_login_password = "my-s3cret-p4ssword!" -} - -resource "azurerm_sql_active_directory_administrator" "test" { - server_name = azurerm_sql_server.test.name - resource_group_name = azurerm_resource_group.test.name - login = azurerm_data_factory.test.name - tenant_id = azurerm_data_factory.test.identity.0.tenant_id - object_id = azurerm_data_factory.test.identity.0.principal_id -} - -resource "azurerm_data_factory_integration_runtime_managed" "test" { - name = "managed-integration-runtime" - data_factory_id = azurerm_data_factory.test.id - location = azurerm_resource_group.test.location - node_size = "Standard_D8_v3" - - catalog_info { - server_endpoint = azurerm_sql_server.test.fully_qualified_domain_name - pricing_tier = "Basic" - } - - depends_on = [azurerm_sql_active_directory_administrator.test] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) -} - -func (IntegrationRuntimeManagedResource) credential(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-df-%[2]d" - location = "%[1]s" -} - -resource "azurerm_user_assigned_identity" "test" { - name = "acctestdf%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_data_factory" "test" { - name = "acctestdfirm%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - identity { - type = "UserAssigned" - identity_ids = [azurerm_user_assigned_identity.test.id] - } -} - -resource "azurerm_data_factory_credential_user_managed_identity" "test" { - name = "credential%[2]d" - description = "ORIGINAL DESCRIPTION" - data_factory_id = azurerm_data_factory.test.id - identity_id = azurerm_user_assigned_identity.test.id - annotations = ["1"] -} - -resource "azurerm_data_factory_integration_runtime_managed" "test" { - name = "managed-integration-runtime" - data_factory_id = azurerm_data_factory.test.id - location = azurerm_resource_group.test.location - - node_size = "Standard_D8_v3" - - credential_name = azurerm_data_factory_credential_user_managed_identity.test.name -} -`, data.Locations.Primary, data.RandomInteger) -} - -func (t IntegrationRuntimeManagedResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := parse.IntegrationRuntimeID(state.ID) - if err != nil { - return nil, err - } - - resp, err := clients.DataFactory.IntegrationRuntimesClient.Get(ctx, id.ResourceGroup, id.FactoryName, id.Name, "") - if err != nil { - return nil, fmt.Errorf("reading Data Factory Integration Runtime Managed (%s): %+v", *id, err) - } - - return utils.Bool(resp.ID != nil), nil -} diff --git a/internal/services/datafactory/data_factory_integration_runtime_self_hosted_resource.go b/internal/services/datafactory/data_factory_integration_runtime_self_hosted_resource.go index 73045e82b1b0..7dbd5fd7af44 100644 --- a/internal/services/datafactory/data_factory_integration_runtime_self_hosted_resource.go +++ b/internal/services/datafactory/data_factory_integration_runtime_self_hosted_resource.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryIntegrationRuntimeSelfHosted() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_custom_service_resource.go b/internal/services/datafactory/data_factory_linked_custom_service_resource.go index 44a9e57b9671..ab7c46538b50 100644 --- a/internal/services/datafactory/data_factory_linked_custom_service_resource.go +++ b/internal/services/datafactory/data_factory_linked_custom_service_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedCustomService() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service.go b/internal/services/datafactory/data_factory_linked_service.go index d99a43b0d4f1..6326a8c3cdaa 100644 --- a/internal/services/datafactory/data_factory_linked_service.go +++ b/internal/services/datafactory/data_factory_linked_service.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/datafactory/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func importDataFactoryLinkedService(expectType datafactory.TypeBasicLinkedService) pluginsdk.ImporterFunc { diff --git a/internal/services/datafactory/data_factory_linked_service_azure_blob_storage_resource.go b/internal/services/datafactory/data_factory_linked_service_azure_blob_storage_resource.go index 3233dac0e94f..3049ce6d6a34 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_blob_storage_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_blob_storage_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceAzureBlobStorage() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_azure_databricks_resource.go b/internal/services/datafactory/data_factory_linked_service_azure_databricks_resource.go index f037af9ade33..384c6b052ce6 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_databricks_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_databricks_resource.go @@ -19,7 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceAzureDatabricks() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_azure_file_storage_resource.go b/internal/services/datafactory/data_factory_linked_service_azure_file_storage_resource.go index 33ebf2735176..5b0565d3a535 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_file_storage_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_file_storage_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceAzureFileStorage() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_azure_function_resource.go b/internal/services/datafactory/data_factory_linked_service_azure_function_resource.go index 6d6c10b335c3..f57bdebd35bc 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_function_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_function_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceAzureFunction() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_azure_search_resource.go b/internal/services/datafactory/data_factory_linked_service_azure_search_resource.go index 0d1669f3d04e..db2cc75d2c30 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_search_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_search_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceAzureSearch() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource.go b/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource.go index 2da06ecf58aa..d95ef31e1f0d 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource.go @@ -7,6 +7,7 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -16,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceAzureSQLDatabase() *pluginsdk.Resource { @@ -171,6 +172,12 @@ func resourceDataFactoryLinkedServiceAzureSQLDatabase() *pluginsdk.Resource { Type: pluginsdk.TypeString, }, }, + + "credential_name": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + }, }, } } @@ -259,6 +266,12 @@ func resourceDataFactoryLinkedServiceAzureSQLDatabaseCreateUpdate(d *pluginsdk.R azureSQLDatabaseLinkedService.Annotations = &annotations } + if credentialName := d.Get("credential_name").(string); credentialName != "" { + azureSQLDatabaseLinkedService.Credential = &datafactory.CredentialReference{ + ReferenceName: pointer.To(credentialName), + } + } + linkedService := datafactory.LinkedServiceResource{ Properties: azureSQLDatabaseLinkedService, } @@ -352,6 +365,10 @@ func resourceDataFactoryLinkedServiceAzureSQLDatabaseRead(d *pluginsdk.ResourceD } } + if credential := sql.Credential; credential != nil { + d.Set("credential_name", pointer.From(credential.ReferenceName)) + } + return nil } diff --git a/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource_test.go b/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource_test.go index 5bd1a5a6a6e9..73652133aecd 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource_test.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource_test.go @@ -115,6 +115,22 @@ func TestAccDataFactoryLinkedServiceAzureSQLDatabase_ConnectionStringKeyVaultRef }) } +func TestAccDataFactoryLinkedServiceAzureSQLDatabase_Credential(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_data_factory_linked_service_azure_sql_database", "test") + r := LinkedServiceAzureSQLDatabaseResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.credential(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("credential_name").HasValue(fmt.Sprintf("test%d", data.RandomInteger)), + ), + }, + data.ImportStep("connection_string"), + }) +} + func (t LinkedServiceAzureSQLDatabaseResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := parse.LinkedServiceID(state.ID) if err != nil { @@ -355,3 +371,48 @@ resource "azurerm_data_factory_linked_service_azure_sql_database" "test" { } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) } + +func (LinkedServiceAzureSQLDatabaseResource) credential(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-df-%d" + location = "%s" +} + +resource "azurerm_user_assigned_identity" "test" { + name = "test%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_data_factory" "test" { + name = "acctestdf%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + identity { + type = "SystemAssigned, UserAssigned" + identity_ids = [azurerm_user_assigned_identity.test.id] + } +} + +resource "azurerm_data_factory_credential_user_managed_identity" "test" { + name = azurerm_user_assigned_identity.test.name + description = "Test ADF SQL DB UMI" + data_factory_id = azurerm_data_factory.test.id + identity_id = azurerm_user_assigned_identity.test.id +} + +resource "azurerm_data_factory_linked_service_azure_sql_database" "test" { + name = "acctestlssql%d" + data_factory_id = azurerm_data_factory.test.id + connection_string = "data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30" + + credential_name = azurerm_data_factory_credential_user_managed_identity.test.name +} +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) +} diff --git a/internal/services/datafactory/data_factory_linked_service_azure_table_storage_resource.go b/internal/services/datafactory/data_factory_linked_service_azure_table_storage_resource.go index fd04e2058c61..93e9160bf899 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_table_storage_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_table_storage_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceAzureTableStorage() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_cosmosdb_mongoapi_resource.go b/internal/services/datafactory/data_factory_linked_service_cosmosdb_mongoapi_resource.go index 096fc590f659..08d2fcf46196 100644 --- a/internal/services/datafactory/data_factory_linked_service_cosmosdb_mongoapi_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_cosmosdb_mongoapi_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceCosmosDbMongoAPI() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_cosmosdb_resource.go b/internal/services/datafactory/data_factory_linked_service_cosmosdb_resource.go index 60f7ba80940a..1df810d4c054 100644 --- a/internal/services/datafactory/data_factory_linked_service_cosmosdb_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_cosmosdb_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceCosmosDb() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_data_lake_storage_gen2_resource.go b/internal/services/datafactory/data_factory_linked_service_data_lake_storage_gen2_resource.go index fecf377e93da..05e93dfbab01 100644 --- a/internal/services/datafactory/data_factory_linked_service_data_lake_storage_gen2_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_data_lake_storage_gen2_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceDataLakeStorageGen2() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_key_vault_resource.go b/internal/services/datafactory/data_factory_linked_service_key_vault_resource.go index a06f007d495e..9b867dd4c764 100644 --- a/internal/services/datafactory/data_factory_linked_service_key_vault_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_key_vault_resource.go @@ -19,7 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceKeyVault() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_kusto_resource.go b/internal/services/datafactory/data_factory_linked_service_kusto_resource.go index ff3027292fb0..78bb842bdd1c 100644 --- a/internal/services/datafactory/data_factory_linked_service_kusto_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_kusto_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceKusto() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_mysql_resource.go b/internal/services/datafactory/data_factory_linked_service_mysql_resource.go index 6dcc2b20060f..abb25951af50 100644 --- a/internal/services/datafactory/data_factory_linked_service_mysql_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_mysql_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceMySQL() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_odata_resource.go b/internal/services/datafactory/data_factory_linked_service_odata_resource.go index c7c0b40ea301..8845bb9b0987 100644 --- a/internal/services/datafactory/data_factory_linked_service_odata_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_odata_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceArmDataFactoryLinkedServiceOData() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_odbc_resource.go b/internal/services/datafactory/data_factory_linked_service_odbc_resource.go index d0337893d0d3..990018f99d3d 100644 --- a/internal/services/datafactory/data_factory_linked_service_odbc_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_odbc_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceOdbc() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_postgresql_resource.go b/internal/services/datafactory/data_factory_linked_service_postgresql_resource.go index 20f558398f70..1b000161cfa5 100644 --- a/internal/services/datafactory/data_factory_linked_service_postgresql_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_postgresql_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServicePostgreSQL() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_sftp_resource.go b/internal/services/datafactory/data_factory_linked_service_sftp_resource.go index 179e024a8375..d65cd306d515 100644 --- a/internal/services/datafactory/data_factory_linked_service_sftp_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_sftp_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceSFTP() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_snowflake_resource.go b/internal/services/datafactory/data_factory_linked_service_snowflake_resource.go index 186e7d85ee8d..194dd8ddeacc 100644 --- a/internal/services/datafactory/data_factory_linked_service_snowflake_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_snowflake_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceSnowflake() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_sql_server_resource.go b/internal/services/datafactory/data_factory_linked_service_sql_server_resource.go index 439778d1e033..ea1476c6c803 100644 --- a/internal/services/datafactory/data_factory_linked_service_sql_server_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_sql_server_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceSQLServer() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_synapse_resource.go b/internal/services/datafactory/data_factory_linked_service_synapse_resource.go index fe879cf90a18..78cf8dcc5c26 100644 --- a/internal/services/datafactory/data_factory_linked_service_synapse_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_synapse_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceSynapse() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_linked_service_web_resource.go b/internal/services/datafactory/data_factory_linked_service_web_resource.go index 9bd562fa17eb..fe21d173eceb 100644 --- a/internal/services/datafactory/data_factory_linked_service_web_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_web_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryLinkedServiceWeb() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_managed_private_endpoint_resource.go b/internal/services/datafactory/data_factory_managed_private_endpoint_resource.go index 3e2456cfdb88..d5af5e7357a3 100644 --- a/internal/services/datafactory/data_factory_managed_private_endpoint_resource.go +++ b/internal/services/datafactory/data_factory_managed_private_endpoint_resource.go @@ -234,7 +234,6 @@ func getManagedPrivateEndpoint(ctx context.Context, client *managedprivateendpoi if item.Name != nil && *item.Name == privateEndpointName { return &item, nil } - } return nil, nil } diff --git a/internal/services/datafactory/data_factory_pipeline_resource.go b/internal/services/datafactory/data_factory_pipeline_resource.go index 4376596686ca..6ab6a51c1e02 100644 --- a/internal/services/datafactory/data_factory_pipeline_resource.go +++ b/internal/services/datafactory/data_factory_pipeline_resource.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryPipeline() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_resource_test.go b/internal/services/datafactory/data_factory_resource_test.go index 84ab88736cfc..aa5f7bf57ec7 100644 --- a/internal/services/datafactory/data_factory_resource_test.go +++ b/internal/services/datafactory/data_factory_resource_test.go @@ -750,7 +750,7 @@ resource "azurerm_resource_group" "test" { } resource "azurerm_data_factory" "test" { - name = "acctestdf%d" + name = "acctestDF%d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name diff --git a/internal/services/datafactory/data_factory_trigger_blob_event_resource.go b/internal/services/datafactory/data_factory_trigger_blob_event_resource.go index 96d95988232c..4bb98367c2e9 100644 --- a/internal/services/datafactory/data_factory_trigger_blob_event_resource.go +++ b/internal/services/datafactory/data_factory_trigger_blob_event_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryTriggerBlobEvent() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_trigger_custom_event_resource.go b/internal/services/datafactory/data_factory_trigger_custom_event_resource.go index a869dd40473d..54c25fc21922 100644 --- a/internal/services/datafactory/data_factory_trigger_custom_event_resource.go +++ b/internal/services/datafactory/data_factory_trigger_custom_event_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryTriggerCustomEvent() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_trigger_schedule_data_source.go b/internal/services/datafactory/data_factory_trigger_schedule_data_source.go index b4e6e0eccac2..5d6b99161595 100644 --- a/internal/services/datafactory/data_factory_trigger_schedule_data_source.go +++ b/internal/services/datafactory/data_factory_trigger_schedule_data_source.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/datafactory/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) type TriggerScheduleDataSource struct{} @@ -256,7 +256,6 @@ func (d TriggerScheduleDataSource) Read() sdk.ResourceFunc { if scheduleTriggerProps.Description != nil { model.Description = *scheduleTriggerProps.Description } - } if err := metadata.Encode(&model); err != nil { return fmt.Errorf("encoding: %+v", err) diff --git a/internal/services/datafactory/data_factory_trigger_schedule_resource.go b/internal/services/datafactory/data_factory_trigger_schedule_resource.go index aa3c16cef410..6720ce451dbe 100644 --- a/internal/services/datafactory/data_factory_trigger_schedule_resource.go +++ b/internal/services/datafactory/data_factory_trigger_schedule_resource.go @@ -19,7 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryTriggerSchedule() *pluginsdk.Resource { diff --git a/internal/services/datafactory/data_factory_trigger_tumbling_window_resource.go b/internal/services/datafactory/data_factory_trigger_tumbling_window_resource.go index 037a907909b0..9c1b6af2533d 100644 --- a/internal/services/datafactory/data_factory_trigger_tumbling_window_resource.go +++ b/internal/services/datafactory/data_factory_trigger_tumbling_window_resource.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func resourceDataFactoryTriggerTumblingWindow() *pluginsdk.Resource { @@ -439,7 +439,7 @@ func expandDataFactoryTriggerDependency(input []interface{}) *[]datafactory.Basi return nil } - var result []datafactory.BasicDependencyReference + result := make([]datafactory.BasicDependencyReference, 0, len(input)) for _, item := range input { raw := item.(map[string]interface{}) diff --git a/internal/services/datafactory/data_set_common.go b/internal/services/datafactory/data_set_common.go index d858c3bd6337..f2e3e169c096 100644 --- a/internal/services/datafactory/data_set_common.go +++ b/internal/services/datafactory/data_set_common.go @@ -6,7 +6,7 @@ package datafactory import ( "log" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func expandDataSetParameters(input map[string]interface{}) map[string]*datafactory.ParameterSpecification { diff --git a/internal/services/datafactory/linked_services_common.go b/internal/services/datafactory/linked_services_common.go index 6c696e0214ef..83ea95420dc2 100644 --- a/internal/services/datafactory/linked_services_common.go +++ b/internal/services/datafactory/linked_services_common.go @@ -6,7 +6,7 @@ package datafactory import ( "log" - "github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck + "github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory" // nolint: staticcheck ) func expandLinkedServiceParameters(input map[string]interface{}) map[string]*datafactory.ParameterSpecification { diff --git a/internal/services/datafactory/parse/data_flow.go b/internal/services/datafactory/parse/data_flow.go index 0c72b0cef993..63da11c11f29 100644 --- a/internal/services/datafactory/parse/data_flow.go +++ b/internal/services/datafactory/parse/data_flow.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func DataFlowID(input string) (*DataFlowId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FactoryName, err = id.PopSegment("factories"); err != nil { diff --git a/internal/services/datafactory/parse/data_flow_test.go b/internal/services/datafactory/parse/data_flow_test.go index 8574644fc752..93e9d84057f0 100644 --- a/internal/services/datafactory/parse/data_flow_test.go +++ b/internal/services/datafactory/parse/data_flow_test.go @@ -27,7 +27,6 @@ func TestDataFlowID(t *testing.T) { Error bool Expected *DataFlowId }{ - { // empty Input: "", diff --git a/internal/services/datafactory/parse/data_set.go b/internal/services/datafactory/parse/data_set.go index 6cf42072f5b7..44592a7afa13 100644 --- a/internal/services/datafactory/parse/data_set.go +++ b/internal/services/datafactory/parse/data_set.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func DataSetID(input string) (*DataSetId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FactoryName, err = id.PopSegment("factories"); err != nil { diff --git a/internal/services/datafactory/parse/data_set_test.go b/internal/services/datafactory/parse/data_set_test.go index 0e3e60851fda..c60e067ca447 100644 --- a/internal/services/datafactory/parse/data_set_test.go +++ b/internal/services/datafactory/parse/data_set_test.go @@ -27,7 +27,6 @@ func TestDataSetID(t *testing.T) { Error bool Expected *DataSetId }{ - { // empty Input: "", diff --git a/internal/services/datafactory/parse/integration_runtime.go b/internal/services/datafactory/parse/integration_runtime.go index 92aaa8432d00..b416f231795f 100644 --- a/internal/services/datafactory/parse/integration_runtime.go +++ b/internal/services/datafactory/parse/integration_runtime.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func IntegrationRuntimeID(input string) (*IntegrationRuntimeId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FactoryName, err = id.PopSegment("factories"); err != nil { diff --git a/internal/services/datafactory/parse/integration_runtime_test.go b/internal/services/datafactory/parse/integration_runtime_test.go index 77a185d1caef..1de75b50cb40 100644 --- a/internal/services/datafactory/parse/integration_runtime_test.go +++ b/internal/services/datafactory/parse/integration_runtime_test.go @@ -27,7 +27,6 @@ func TestIntegrationRuntimeID(t *testing.T) { Error bool Expected *IntegrationRuntimeId }{ - { // empty Input: "", diff --git a/internal/services/datafactory/parse/linked_service.go b/internal/services/datafactory/parse/linked_service.go index 3533c6ed7b01..d8a47a1288e0 100644 --- a/internal/services/datafactory/parse/linked_service.go +++ b/internal/services/datafactory/parse/linked_service.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func LinkedServiceID(input string) (*LinkedServiceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FactoryName, err = id.PopSegment("factories"); err != nil { diff --git a/internal/services/datafactory/parse/linked_service_test.go b/internal/services/datafactory/parse/linked_service_test.go index b7f505be8a6c..da2ba0f671cb 100644 --- a/internal/services/datafactory/parse/linked_service_test.go +++ b/internal/services/datafactory/parse/linked_service_test.go @@ -27,7 +27,6 @@ func TestLinkedServiceID(t *testing.T) { Error bool Expected *LinkedServiceId }{ - { // empty Input: "", diff --git a/internal/services/datafactory/parse/managed_private_endpoint.go b/internal/services/datafactory/parse/managed_private_endpoint.go index 890478621984..cb43a8e2ddb0 100644 --- a/internal/services/datafactory/parse/managed_private_endpoint.go +++ b/internal/services/datafactory/parse/managed_private_endpoint.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ManagedPrivateEndpointID(input string) (*ManagedPrivateEndpointId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FactoryName, err = id.PopSegment("factories"); err != nil { diff --git a/internal/services/datafactory/parse/managed_private_endpoint_test.go b/internal/services/datafactory/parse/managed_private_endpoint_test.go index 8e5fcf2ba009..f1f456a972c1 100644 --- a/internal/services/datafactory/parse/managed_private_endpoint_test.go +++ b/internal/services/datafactory/parse/managed_private_endpoint_test.go @@ -27,7 +27,6 @@ func TestManagedPrivateEndpointID(t *testing.T) { Error bool Expected *ManagedPrivateEndpointId }{ - { // empty Input: "", diff --git a/internal/services/datafactory/parse/pipeline.go b/internal/services/datafactory/parse/pipeline.go index 034bb4e1228d..78014512ed82 100644 --- a/internal/services/datafactory/parse/pipeline.go +++ b/internal/services/datafactory/parse/pipeline.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func PipelineID(input string) (*PipelineId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FactoryName, err = id.PopSegment("factories"); err != nil { diff --git a/internal/services/datafactory/parse/pipeline_test.go b/internal/services/datafactory/parse/pipeline_test.go index cf04f4b66403..2e711debbbb2 100644 --- a/internal/services/datafactory/parse/pipeline_test.go +++ b/internal/services/datafactory/parse/pipeline_test.go @@ -27,7 +27,6 @@ func TestPipelineID(t *testing.T) { Error bool Expected *PipelineId }{ - { // empty Input: "", diff --git a/internal/services/datafactory/parse/trigger.go b/internal/services/datafactory/parse/trigger.go index 5d9e36f502fd..6beb1e0f446a 100644 --- a/internal/services/datafactory/parse/trigger.go +++ b/internal/services/datafactory/parse/trigger.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func TriggerID(input string) (*TriggerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FactoryName, err = id.PopSegment("factories"); err != nil { diff --git a/internal/services/datafactory/parse/trigger_test.go b/internal/services/datafactory/parse/trigger_test.go index 206ff300e5d6..243b0b3f5c93 100644 --- a/internal/services/datafactory/parse/trigger_test.go +++ b/internal/services/datafactory/parse/trigger_test.go @@ -27,7 +27,6 @@ func TestTriggerID(t *testing.T) { Error bool Expected *TriggerId }{ - { // empty Input: "", diff --git a/internal/services/datafactory/registration.go b/internal/services/datafactory/registration.go index ad326d5e68b1..97daf96f91a3 100644 --- a/internal/services/datafactory/registration.go +++ b/internal/services/datafactory/registration.go @@ -4,15 +4,16 @@ package datafactory import ( - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) type Registration struct{} -var _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} -var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +var ( + _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} + _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +) func (r Registration) AssociatedGitHubLabel() string { return "service/data-factory" @@ -103,9 +104,5 @@ func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { "azurerm_data_factory_trigger_tumbling_window": resourceDataFactoryTriggerTumblingWindow(), } - if !features.FourPointOhBeta() { - resources["azurerm_data_factory_integration_runtime_managed"] = resourceDataFactoryIntegrationRuntimeManaged() - } - return resources } diff --git a/internal/services/datafactory/validate/data_flow_id_test.go b/internal/services/datafactory/validate/data_flow_id_test.go index 9f9465efa020..88f9b2532039 100644 --- a/internal/services/datafactory/validate/data_flow_id_test.go +++ b/internal/services/datafactory/validate/data_flow_id_test.go @@ -12,7 +12,6 @@ func TestDataFlowID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/datafactory/validate/data_set_id_test.go b/internal/services/datafactory/validate/data_set_id_test.go index 989e4f092954..d0b863083acb 100644 --- a/internal/services/datafactory/validate/data_set_id_test.go +++ b/internal/services/datafactory/validate/data_set_id_test.go @@ -12,7 +12,6 @@ func TestDataSetID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/datafactory/validate/integration_runtime_id_test.go b/internal/services/datafactory/validate/integration_runtime_id_test.go index 58e57197368a..2807ff62cb80 100644 --- a/internal/services/datafactory/validate/integration_runtime_id_test.go +++ b/internal/services/datafactory/validate/integration_runtime_id_test.go @@ -12,7 +12,6 @@ func TestIntegrationRuntimeID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/datafactory/validate/linked_service_id_test.go b/internal/services/datafactory/validate/linked_service_id_test.go index 0c5effe502bd..90c2977a2124 100644 --- a/internal/services/datafactory/validate/linked_service_id_test.go +++ b/internal/services/datafactory/validate/linked_service_id_test.go @@ -12,7 +12,6 @@ func TestLinkedServiceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/datafactory/validate/managed_private_endpoint_id_test.go b/internal/services/datafactory/validate/managed_private_endpoint_id_test.go index 080437c4c625..fd19a150d8eb 100644 --- a/internal/services/datafactory/validate/managed_private_endpoint_id_test.go +++ b/internal/services/datafactory/validate/managed_private_endpoint_id_test.go @@ -12,7 +12,6 @@ func TestManagedPrivateEndpointID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/datafactory/validate/pipeline_id_test.go b/internal/services/datafactory/validate/pipeline_id_test.go index 5ec64498acb9..7a9f8419a478 100644 --- a/internal/services/datafactory/validate/pipeline_id_test.go +++ b/internal/services/datafactory/validate/pipeline_id_test.go @@ -12,7 +12,6 @@ func TestPipelineID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/datafactory/validate/trigger_id_test.go b/internal/services/datafactory/validate/trigger_id_test.go index 94c2de615b2d..f79221bd34f1 100644 --- a/internal/services/datafactory/validate/trigger_id_test.go +++ b/internal/services/datafactory/validate/trigger_id_test.go @@ -12,7 +12,6 @@ func TestTriggerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/dataprotection/data_protection_backup_instance_mysql_flexible_server_resource.go b/internal/services/dataprotection/data_protection_backup_instance_mysql_flexible_server_resource.go new file mode 100644 index 000000000000..5773d3c592d7 --- /dev/null +++ b/internal/services/dataprotection/data_protection_backup_instance_mysql_flexible_server_resource.go @@ -0,0 +1,319 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package dataprotection + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +type BackupInstanceMySQLFlexibleServerModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + VaultId string `tfschema:"vault_id"` + BackupPolicyId string `tfschema:"backup_policy_id"` + ServerId string `tfschema:"server_id"` +} + +type DataProtectionBackupInstanceMySQLFlexibleServerResource struct{} + +var _ sdk.Resource = DataProtectionBackupInstanceMySQLFlexibleServerResource{} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) ResourceType() string { + return "azurerm_data_protection_backup_instance_mysql_flexible_server" +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) ModelObject() interface{} { + return &BackupInstanceMySQLFlexibleServerModel{} +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return backupinstances.ValidateBackupInstanceID +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "location": commonschema.Location(), + + "vault_id": commonschema.ResourceIDReferenceRequiredForceNew(&backuppolicies.BackupVaultId{}), + + "backup_policy_id": commonschema.ResourceIDReferenceRequired(&backuppolicies.BackupPolicyId{}), + + "server_id": commonschema.ResourceIDReferenceRequiredForceNew(&servers.FlexibleServerId{}), + } +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 60 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + var model BackupInstanceMySQLFlexibleServerModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + client := metadata.Client.DataProtection.BackupInstanceClient + + vaultId, err := backupinstances.ParseBackupVaultID(model.VaultId) + if err != nil { + return err + } + + id := backupinstances.NewBackupInstanceID(vaultId.SubscriptionId, vaultId.ResourceGroupName, vaultId.BackupVaultName, model.Name) + + existing, err := client.Get(ctx, id) + if err != nil { + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for existing %s: %+v", id, err) + } + } + + if !response.WasNotFound(existing.HttpResponse) { + return metadata.ResourceRequiresImport(r.ResourceType(), id) + } + + serverId, err := servers.ParseFlexibleServerID(model.ServerId) + if err != nil { + return err + } + + policyId, err := backuppolicies.ParseBackupPolicyID(model.BackupPolicyId) + if err != nil { + return err + } + + parameters := backupinstances.BackupInstanceResource{ + Properties: &backupinstances.BackupInstance{ + DataSourceInfo: backupinstances.Datasource{ + DatasourceType: pointer.To("Microsoft.DBforMySQL/flexibleServers"), + ObjectType: pointer.To("Datasource"), + ResourceID: serverId.ID(), + ResourceLocation: pointer.To(location.Normalize(model.Location)), + ResourceName: pointer.To(serverId.FlexibleServerName), + ResourceType: pointer.To("Microsoft.DBforMySQL/flexibleServers"), + ResourceUri: pointer.To(serverId.ID()), + }, + DataSourceSetInfo: &backupinstances.DatasourceSet{ + DatasourceType: pointer.To("Microsoft.DBforMySQL/flexibleServers"), + ObjectType: pointer.To("DatasourceSet"), + ResourceID: serverId.ID(), + ResourceLocation: pointer.To(location.Normalize(model.Location)), + ResourceName: pointer.To(serverId.FlexibleServerName), + ResourceType: pointer.To("Microsoft.DBforMySQL/flexibleServers"), + ResourceUri: pointer.To(serverId.ID()), + }, + FriendlyName: pointer.To(id.BackupInstanceName), + PolicyInfo: backupinstances.PolicyInfo{ + PolicyId: policyId.ID(), + }, + }, + } + + if err := client.CreateOrUpdateThenPoll(ctx, id, parameters, backupinstances.DefaultCreateOrUpdateOperationOptions()); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + // Service will continue to configure the protection after the resource is created and `provisioningState` returns `Succeeded`. At this time, service doesn't allow to change the resource until it is configured completely + deadline, ok := ctx.Deadline() + if !ok { + return fmt.Errorf("internal-error: context had no deadline") + } + + stateConf := &pluginsdk.StateChangeConf{ + Delay: 5 * time.Second, + Pending: []string{string(backupinstances.CurrentProtectionStateConfiguringProtection)}, + Target: []string{string(backupinstances.CurrentProtectionStateProtectionConfigured)}, + Refresh: dataProtectionBackupInstanceMySQLFlexibleServerStateRefreshFunc(ctx, client, id), + PollInterval: 1 * time.Minute, + Timeout: time.Until(deadline), + } + + if _, err = stateConf.WaitForStateContext(ctx); err != nil { + return fmt.Errorf("waiting for %s to become available: %s", id, err) + } + + metadata.SetID(id) + return nil + }, + } +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.DataProtection.BackupInstanceClient + + id, err := backupinstances.ParseBackupInstanceID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return metadata.MarkAsGone(*id) + } + + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + vaultId := backupinstances.NewBackupVaultID(id.SubscriptionId, id.ResourceGroupName, id.BackupVaultName) + + state := BackupInstanceMySQLFlexibleServerModel{ + Name: id.BackupInstanceName, + VaultId: vaultId.ID(), + } + + if model := resp.Model; model != nil { + if props := model.Properties; props != nil { + state.Location = location.NormalizeNilable(props.DataSourceInfo.ResourceLocation) + + serverId, err := servers.ParseFlexibleServerIDInsensitively(props.DataSourceInfo.ResourceID) + if err != nil { + return err + } + state.ServerId = serverId.ID() + + backupPolicyId, err := backuppolicies.ParseBackupPolicyIDInsensitively(props.PolicyInfo.PolicyId) + if err != nil { + return err + } + state.BackupPolicyId = backupPolicyId.ID() + } + } + + return metadata.Encode(&state) + }, + } +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 60 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.DataProtection.BackupInstanceClient + + id, err := backupinstances.ParseBackupInstanceID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + var model BackupInstanceMySQLFlexibleServerModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + existing, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(existing.HttpResponse) { + return metadata.MarkAsGone(id) + } + + return fmt.Errorf("reading %s: %+v", *id, err) + } + if existing.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", id) + } + + parameters := *existing.Model + + if metadata.ResourceData.HasChange("backup_policy_id") { + policyId, err := backuppolicies.ParseBackupPolicyID(model.BackupPolicyId) + if err != nil { + return err + } + parameters.Properties.PolicyInfo.PolicyId = policyId.ID() + } + + if err := client.CreateOrUpdateThenPoll(ctx, *id, parameters, backupinstances.DefaultCreateOrUpdateOperationOptions()); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + + // Service will update the protection after the resource is updated and `provisioningState` returns `Succeeded`. At this time, service doesn't allow to change the resource until it is updated completely + deadline, ok := ctx.Deadline() + if !ok { + return fmt.Errorf("internal-error: context had no deadline") + } + + stateConf := &pluginsdk.StateChangeConf{ + Delay: 5 * time.Second, + Pending: []string{string(backupinstances.CurrentProtectionStateUpdatingProtection)}, + Target: []string{string(backupinstances.CurrentProtectionStateProtectionConfigured)}, + Refresh: dataProtectionBackupInstanceMySQLFlexibleServerStateRefreshFunc(ctx, client, *id), + PollInterval: 1 * time.Minute, + Timeout: time.Until(deadline), + } + + if _, err = stateConf.WaitForStateContext(ctx); err != nil { + return fmt.Errorf("waiting for %s to become available: %s", id, err) + } + + return nil + }, + } +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 60 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.DataProtection.BackupInstanceClient + + id, err := backupinstances.ParseBackupInstanceID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + err = client.DeleteThenPoll(ctx, *id, backupinstances.DefaultDeleteOperationOptions()) + if err != nil { + return fmt.Errorf("deleting %s: %+v", *id, err) + } + + return nil + }, + } +} + +func dataProtectionBackupInstanceMySQLFlexibleServerStateRefreshFunc(ctx context.Context, client *backupinstances.BackupInstancesClient, id backupinstances.BackupInstanceId) pluginsdk.StateRefreshFunc { + return func() (interface{}, string, error) { + resp, err := client.Get(ctx, id) + if err != nil { + return nil, "", fmt.Errorf("polling for %s: %+v", id, err) + } + + if resp.Model == nil { + return nil, "", fmt.Errorf("polling for %s: `model` was nil", id) + } + + if resp.Model.Properties == nil { + return nil, "", fmt.Errorf("polling for %s: `properties` was nil", id) + } + + return resp, string(pointer.From(resp.Model.Properties.CurrentProtectionState)), nil + } +} diff --git a/internal/services/dataprotection/data_protection_backup_instance_mysql_flexible_server_resource_test.go b/internal/services/dataprotection/data_protection_backup_instance_mysql_flexible_server_resource_test.go new file mode 100644 index 000000000000..c56df6c2c458 --- /dev/null +++ b/internal/services/dataprotection/data_protection_backup_instance_mysql_flexible_server_resource_test.go @@ -0,0 +1,208 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package dataprotection_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/utils" +) + +type DataProtectionBackupInstanceMySQLFlexibleServerResource struct{} + +func TestAccDataProtectionBackupInstanceMySQLFlexibleServer_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_data_protection_backup_instance_mysql_flexible_server", "test") + r := DataProtectionBackupInstanceMySQLFlexibleServerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccDataProtectionBackupInstanceMySQLFlexibleServer_requiresImport(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_data_protection_backup_instance_mysql_flexible_server", "test") + r := DataProtectionBackupInstanceMySQLFlexibleServerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.RequiresImportErrorStep(r.requiresImport), + }) +} + +func TestAccDataProtectionBackupInstanceMySQLFlexibleServer_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_data_protection_backup_instance_mysql_flexible_server", "test") + r := DataProtectionBackupInstanceMySQLFlexibleServerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.update(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := backupinstances.ParseBackupInstanceID(state.ID) + if err != nil { + return nil, err + } + resp, err := client.DataProtection.BackupInstanceClient.Get(ctx, *id) + if err != nil { + return nil, fmt.Errorf("reading %s: %+v", *id, err) + } + return utils.Bool(resp.Model != nil), nil +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +resource "azurerm_resource_group" "test" { + name = "acctest-dataprotection-%d" + location = "%s" +} + +resource "azurerm_mysql_flexible_server" "test" { + name = "acctest-mysqlfs-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + administrator_login = "adminTerraform" + administrator_password = "QAZwsx123" + version = "8.0.21" + sku_name = "B_Standard_B1s" + zone = "1" +} + +resource "azurerm_data_protection_backup_vault" "test" { + name = "acctest-dataprotection-vault-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + datastore_type = "VaultStore" + redundancy = "LocallyRedundant" + soft_delete = "Off" + + identity { + type = "SystemAssigned" + } +} + +resource "azurerm_role_assignment" "test" { + scope = azurerm_resource_group.test.id + role_definition_name = "Reader" + principal_id = azurerm_data_protection_backup_vault.test.identity.0.principal_id +} + +resource "azurerm_role_assignment" "test2" { + scope = azurerm_mysql_flexible_server.test.id + role_definition_name = "MySQL Backup And Export Operator" + principal_id = azurerm_data_protection_backup_vault.test.identity.0.principal_id +} + +resource "azurerm_data_protection_backup_policy_mysql_flexible_server" "test" { + name = "acctest-dp-%d" + vault_id = azurerm_data_protection_backup_vault.test.id + backup_repeating_time_intervals = ["R/2021-05-23T02:30:00+00:00/P1W"] + + default_retention_rule { + life_cycle { + duration = "P4M" + data_store_type = "VaultStore" + } + } + + depends_on = [azurerm_role_assignment.test, azurerm_role_assignment.test2] +} +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_data_protection_backup_instance_mysql_flexible_server" "test" { + name = "acctest-dbi-%d" + location = azurerm_resource_group.test.location + vault_id = azurerm_data_protection_backup_vault.test.id + server_id = azurerm_mysql_flexible_server.test.id + backup_policy_id = azurerm_data_protection_backup_policy_mysql_flexible_server.test.id +} +`, r.template(data), data.RandomInteger) +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) requiresImport(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_data_protection_backup_instance_mysql_flexible_server" "import" { + name = azurerm_data_protection_backup_instance_mysql_flexible_server.test.name + location = azurerm_data_protection_backup_instance_mysql_flexible_server.test.location + vault_id = azurerm_data_protection_backup_instance_mysql_flexible_server.test.vault_id + server_id = azurerm_data_protection_backup_instance_mysql_flexible_server.test.server_id + backup_policy_id = azurerm_data_protection_backup_instance_mysql_flexible_server.test.backup_policy_id +} +`, r.basic(data)) +} + +func (r DataProtectionBackupInstanceMySQLFlexibleServerResource) update(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_data_protection_backup_policy_mysql_flexible_server" "test2" { + name = "acctest-dp2-%d" + vault_id = azurerm_data_protection_backup_vault.test.id + backup_repeating_time_intervals = ["R/2021-05-23T02:30:00+00:00/P1W"] + + default_retention_rule { + life_cycle { + duration = "P4M" + data_store_type = "VaultStore" + } + } + + depends_on = [azurerm_role_assignment.test, azurerm_role_assignment.test2] +} + +resource "azurerm_data_protection_backup_instance_mysql_flexible_server" "test" { + name = "acctest-dbi-%d" + location = azurerm_resource_group.test.location + vault_id = azurerm_data_protection_backup_vault.test.id + server_id = azurerm_mysql_flexible_server.test.id + backup_policy_id = azurerm_data_protection_backup_policy_mysql_flexible_server.test2.id +} +`, r.template(data), data.RandomInteger, data.RandomInteger) +} diff --git a/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource.go b/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource.go index b3efd38f672c..9dd676ec89cd 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource.go +++ b/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource.go @@ -528,7 +528,7 @@ func flattenBackupPolicyBlobStorageDefaultRetentionRuleDuration(input []backuppo for _, item := range input { if retentionRule, ok := item.(backuppolicies.AzureRetentionRule); ok && retentionRule.IsDefault != nil && *retentionRule.IsDefault { - if retentionRule.Lifecycles != nil && len(retentionRule.Lifecycles) > 0 { + if len(retentionRule.Lifecycles) > 0 { if deleteOption, ok := (retentionRule.Lifecycles)[0].DeleteAfter.(backuppolicies.AbsoluteDeleteOption); ok { if (retentionRule.Lifecycles)[0].SourceDataStore.DataStoreType == dsType { return deleteOption.Duration diff --git a/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go b/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go index ba4104b9e855..61e5f577c780 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go +++ b/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go @@ -382,7 +382,7 @@ func flattenBackupPolicyDiskDefaultRetentionRuleDuration(input *[]backuppolicies for _, item := range *input { if retentionRule, ok := item.(backuppolicies.AzureRetentionRule); ok && retentionRule.IsDefault != nil && *retentionRule.IsDefault { - if retentionRule.Lifecycles != nil && len(retentionRule.Lifecycles) > 0 { + if len(retentionRule.Lifecycles) > 0 { if deleteOption, ok := (retentionRule.Lifecycles)[0].DeleteAfter.(backuppolicies.AbsoluteDeleteOption); ok { return deleteOption.Duration } @@ -421,7 +421,7 @@ func flattenBackupPolicyDiskRetentionRuleArray(input *[]backuppolicies.BasePolic } } var duration string - if retentionRule.Lifecycles != nil && len(retentionRule.Lifecycles) > 0 { + if len(retentionRule.Lifecycles) > 0 { if deleteOption, ok := (retentionRule.Lifecycles)[0].DeleteAfter.(backuppolicies.AbsoluteDeleteOption); ok { duration = deleteOption.Duration } diff --git a/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource.go b/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource.go index f8d7c197dae0..1b6ba0aaa533 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource.go +++ b/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource.go @@ -363,7 +363,6 @@ func expandBackupPolicyPostgreSQLDefaultAzureRetentionRule(input interface{}) ba func expandBackupPolicyPostgreSQLTaggingCriteriaArray(input []interface{}) (*[]backuppolicies.TaggingCriteria, error) { results := []backuppolicies.TaggingCriteria{ - { Criteria: nil, IsDefault: true, @@ -488,7 +487,7 @@ func flattenBackupPolicyPostgreSQLDefaultRetentionRuleDuration(input *[]backuppo for _, item := range *input { if retentionRule, ok := item.(backuppolicies.AzureRetentionRule); ok && retentionRule.IsDefault != nil && *retentionRule.IsDefault { - if retentionRule.Lifecycles != nil && len(retentionRule.Lifecycles) > 0 { + if len(retentionRule.Lifecycles) > 0 { if deleteOption, ok := (retentionRule.Lifecycles)[0].DeleteAfter.(backuppolicies.AbsoluteDeleteOption); ok { return deleteOption.Duration } @@ -527,7 +526,7 @@ func flattenBackupPolicyPostgreSQLRetentionRuleArray(input *[]backuppolicies.Bas } } var duration string - if retentionRule.Lifecycles != nil && len(retentionRule.Lifecycles) > 0 { + if len(retentionRule.Lifecycles) > 0 { if deleteOption, ok := (retentionRule.Lifecycles)[0].DeleteAfter.(backuppolicies.AbsoluteDeleteOption); ok { duration = deleteOption.Duration } diff --git a/internal/services/dataprotection/data_protection_backup_vault_data_source.go b/internal/services/dataprotection/data_protection_backup_vault_data_source.go index 0890affdc2ad..67d6ac80e823 100644 --- a/internal/services/dataprotection/data_protection_backup_vault_data_source.go +++ b/internal/services/dataprotection/data_protection_backup_vault_data_source.go @@ -87,7 +87,7 @@ func dataSourceDataProtectionBackupVaultRead(d *pluginsdk.ResourceData, meta int d.Set("location", location.NormalizeNilable(model.Location)) props := model.Properties - if props.StorageSettings != nil && len(props.StorageSettings) > 0 { + if len(props.StorageSettings) > 0 { d.Set("datastore_type", string(pointer.From((props.StorageSettings)[0].DatastoreType))) d.Set("redundancy", string(pointer.From((props.StorageSettings)[0].Type))) } diff --git a/internal/services/dataprotection/data_protection_backup_vault_resource.go b/internal/services/dataprotection/data_protection_backup_vault_resource.go index 93259ed969d2..02a1299cea7a 100644 --- a/internal/services/dataprotection/data_protection_backup_vault_resource.go +++ b/internal/services/dataprotection/data_protection_backup_vault_resource.go @@ -18,7 +18,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -60,6 +59,17 @@ func resourceDataProtectionBackupVault() *pluginsdk.Resource { "location": commonschema.Location(), + "datastore_type": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringInSlice([]string{ + string(backupvaults.StorageSettingStoreTypesArchiveStore), + string(backupvaults.StorageSettingStoreTypesOperationalStore), + string(backupvaults.StorageSettingStoreTypesVaultStore), + }, false), + }, + "redundancy": { Type: pluginsdk.TypeString, Required: true, @@ -117,31 +127,6 @@ func resourceDataProtectionBackupVault() *pluginsdk.Resource { ), } - // Confirmed with the service team that `SnapshotStore` has been replaced with `OperationalStore`. - if !features.FourPointOhBeta() { - resource.Schema["datastore_type"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - string(backupvaults.StorageSettingStoreTypesArchiveStore), - "SnapshotStore", - string(backupvaults.StorageSettingStoreTypesOperationalStore), - string(backupvaults.StorageSettingStoreTypesVaultStore), - }, false), - } - } else { - resource.Schema["datastore_type"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - string(backupvaults.StorageSettingStoreTypesArchiveStore), - string(backupvaults.StorageSettingStoreTypesOperationalStore), - string(backupvaults.StorageSettingStoreTypesVaultStore), - }, false), - } - } return resource } @@ -244,7 +229,7 @@ func resourceDataProtectionBackupVaultRead(d *pluginsdk.ResourceData, meta inter if model := resp.Model; model != nil { d.Set("location", location.NormalizeNilable(model.Location)) props := model.Properties - if props.StorageSettings != nil && len(props.StorageSettings) > 0 { + if len(props.StorageSettings) > 0 { d.Set("datastore_type", string(pointer.From((props.StorageSettings)[0].DatastoreType))) d.Set("redundancy", string(pointer.From((props.StorageSettings)[0].Type))) } @@ -256,8 +241,8 @@ func resourceDataProtectionBackupVaultRead(d *pluginsdk.ResourceData, meta inter } crossRegionStoreEnabled := false if featureSetting := model.Properties.FeatureSettings; featureSetting != nil { - if featureSetting := model.Properties.FeatureSettings; featureSetting != nil { - if pointer.From(featureSetting.CrossRegionRestoreSettings.State) == backupvaults.CrossRegionRestoreStateEnabled { + if crossRegionRestore := featureSetting.CrossRegionRestoreSettings; crossRegionRestore != nil { + if pointer.From(crossRegionRestore.State) == backupvaults.CrossRegionRestoreStateEnabled { crossRegionStoreEnabled = true } } diff --git a/internal/services/dataprotection/data_protection_backup_vault_resource_test.go b/internal/services/dataprotection/data_protection_backup_vault_resource_test.go index 31a7b0bd2469..061fde32fa7c 100644 --- a/internal/services/dataprotection/data_protection_backup_vault_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_vault_resource_test.go @@ -38,7 +38,14 @@ func TestAccDataProtectionBackupVault_crossRegionRestore(t *testing.T) { r := DataProtectionBackupVaultResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.crossRegionRestore(data), + Config: r.crossRegionRestore(data, false), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.crossRegionRestore(data, true), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -192,7 +199,7 @@ resource "azurerm_data_protection_backup_vault" "test" { `, template, data.RandomInteger) } -func (r DataProtectionBackupVaultResource) crossRegionRestore(data acceptance.TestData) string { +func (r DataProtectionBackupVaultResource) crossRegionRestore(data acceptance.TestData, enabled bool) string { template := r.template(data) return fmt.Sprintf(` %s @@ -203,9 +210,9 @@ resource "azurerm_data_protection_backup_vault" "test" { location = azurerm_resource_group.test.location datastore_type = "VaultStore" redundancy = "GeoRedundant" - cross_region_restore_enabled = true + cross_region_restore_enabled = %t } -`, template, data.RandomInteger) +`, template, data.RandomInteger, enabled) } func (r DataProtectionBackupVaultResource) requiresImport(data acceptance.TestData) string { diff --git a/internal/services/dataprotection/parse/backup_vault_test.go b/internal/services/dataprotection/parse/backup_vault_test.go index 40fb986820fa..e4e8a0362d07 100644 --- a/internal/services/dataprotection/parse/backup_vault_test.go +++ b/internal/services/dataprotection/parse/backup_vault_test.go @@ -27,7 +27,6 @@ func TestBackupVaultID(t *testing.T) { Error bool Expected *BackupVaultId }{ - { // empty Input: "", diff --git a/internal/services/dataprotection/registration.go b/internal/services/dataprotection/registration.go index b2fbd92bb26d..72a71a2cb5f0 100644 --- a/internal/services/dataprotection/registration.go +++ b/internal/services/dataprotection/registration.go @@ -10,8 +10,10 @@ import ( type Registration struct{} -var _ sdk.TypedServiceRegistration = Registration{} -var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +var ( + _ sdk.TypedServiceRegistration = Registration{} + _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +) func (r Registration) AssociatedGitHubLabel() string { return "service/data-protection" @@ -62,6 +64,7 @@ func (r Registration) Resources() []sdk.Resource { DataProtectionBackupPolicyMySQLFlexibleServerResource{}, DataProtectionBackupPolicyPostgreSQLFlexibleServerResource{}, DataProtectionBackupInstanceKubernatesClusterResource{}, + DataProtectionBackupInstanceMySQLFlexibleServerResource{}, DataProtectionBackupInstancePostgreSQLFlexibleServerResource{}, } } diff --git a/internal/services/datashare/data_share_dataset_blob_storage_data_source.go b/internal/services/datashare/data_share_dataset_blob_storage_data_source.go index 2afead4424cc..6d638130940a 100644 --- a/internal/services/datashare/data_share_dataset_blob_storage_data_source.go +++ b/internal/services/datashare/data_share_dataset_blob_storage_data_source.go @@ -111,7 +111,6 @@ func dataSourceDataShareDatasetBlobStorageRead(d *pluginsdk.ResourceData, meta i } d.Set("file_path", props.FilePath) d.Set("display_name", props.DataSetId) - } else if ds, ok := model.(dataset.BlobFolderDataSet); ok { props := ds.Properties d.Set("container_name", props.ContainerName) diff --git a/internal/services/datashare/data_share_dataset_blob_storage_resource.go b/internal/services/datashare/data_share_dataset_blob_storage_resource.go index 1733e001c317..6f627e13f5f9 100644 --- a/internal/services/datashare/data_share_dataset_blob_storage_resource.go +++ b/internal/services/datashare/data_share_dataset_blob_storage_resource.go @@ -206,7 +206,6 @@ func resourceDataShareDataSetBlobStorageRead(d *pluginsdk.ResourceData, meta int } d.Set("file_path", props.FilePath) d.Set("display_name", props.DataSetId) - } else if ds, ok := model.(dataset.BlobFolderDataSet); ok { props := ds.Properties d.Set("container_name", props.ContainerName) diff --git a/internal/services/desktopvirtualization/parse/host_pool_registration_info.go b/internal/services/desktopvirtualization/parse/host_pool_registration_info.go index 055ce26a0c2b..aeb7203c8076 100644 --- a/internal/services/desktopvirtualization/parse/host_pool_registration_info.go +++ b/internal/services/desktopvirtualization/parse/host_pool_registration_info.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func HostPoolRegistrationInfoID(input string) (*HostPoolRegistrationInfoId, erro } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.HostPoolName, err = id.PopSegment("hostPools"); err != nil { @@ -95,11 +96,11 @@ func HostPoolRegistrationInfoIDInsensitively(input string) (*HostPoolRegistratio } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'hostPools' segment diff --git a/internal/services/desktopvirtualization/parse/host_pool_registration_info_test.go b/internal/services/desktopvirtualization/parse/host_pool_registration_info_test.go index ce4d2663d000..467cf4ebf5a3 100644 --- a/internal/services/desktopvirtualization/parse/host_pool_registration_info_test.go +++ b/internal/services/desktopvirtualization/parse/host_pool_registration_info_test.go @@ -27,7 +27,6 @@ func TestHostPoolRegistrationInfoID(t *testing.T) { Error bool Expected *HostPoolRegistrationInfoId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestHostPoolRegistrationInfoIDInsensitively(t *testing.T) { Error bool Expected *HostPoolRegistrationInfoId }{ - { // empty Input: "", diff --git a/internal/services/desktopvirtualization/validate/host_pool_registration_info_id_test.go b/internal/services/desktopvirtualization/validate/host_pool_registration_info_id_test.go index eee55541dc61..3aef55b65c25 100644 --- a/internal/services/desktopvirtualization/validate/host_pool_registration_info_id_test.go +++ b/internal/services/desktopvirtualization/validate/host_pool_registration_info_id_test.go @@ -12,7 +12,6 @@ func TestHostPoolRegistrationInfoID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/desktopvirtualization/virtual_desktop_workspace_resource_test.go b/internal/services/desktopvirtualization/virtual_desktop_workspace_resource_test.go index 59d1430d21e4..9fc3e7a484b3 100644 --- a/internal/services/desktopvirtualization/virtual_desktop_workspace_resource_test.go +++ b/internal/services/desktopvirtualization/virtual_desktop_workspace_resource_test.go @@ -121,7 +121,7 @@ resource "azurerm_resource_group" "test" { } resource "azurerm_virtual_desktop_workspace" "test" { - name = "acctWS%d" + name = "acctestWS%d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name } @@ -147,7 +147,7 @@ resource "azurerm_virtual_desktop_workspace" "test" { description = "Acceptance Test by creating acctws%d" public_network_access_enabled = false } -`, data.RandomInteger, data.Locations.Secondary, data.RandomIntOfLength(8), data.RandomInteger) +`, data.RandomInteger, data.Locations.Secondary, data.RandomInteger, data.RandomInteger) } func (r AzureRMDesktopVirtualizationWorkspaceResource) requiresImport(data acceptance.TestData) string { diff --git a/internal/services/devcenter/client/client_gen.go b/internal/services/devcenter/client/client_gen.go index 854a50a45e06..1a682d975805 100644 --- a/internal/services/devcenter/client/client_gen.go +++ b/internal/services/devcenter/client/client_gen.go @@ -13,7 +13,6 @@ type AutoClient struct { } func NewClient(o *common.ClientOptions) (*AutoClient, error) { - v20230401Client, err := devcenterV20230401.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) diff --git a/internal/services/devcenter/dev_center_dev_box_definition_resource.go b/internal/services/devcenter/dev_center_dev_box_definition_resource.go index 88fea6f8b63f..b137c0b59693 100644 --- a/internal/services/devcenter/dev_center_dev_box_definition_resource.go +++ b/internal/services/devcenter/dev_center_dev_box_definition_resource.go @@ -20,8 +20,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.Resource = DevCenterDevBoxDefinitionResource{} -var _ sdk.ResourceWithUpdate = DevCenterDevBoxDefinitionResource{} +var ( + _ sdk.Resource = DevCenterDevBoxDefinitionResource{} + _ sdk.ResourceWithUpdate = DevCenterDevBoxDefinitionResource{} +) type DevCenterDevBoxDefinitionResource struct{} diff --git a/internal/services/devcenter/dev_center_environment_type_resource.go b/internal/services/devcenter/dev_center_environment_type_resource.go index 374e0366d0a9..d32a450bdc7d 100644 --- a/internal/services/devcenter/dev_center_environment_type_resource.go +++ b/internal/services/devcenter/dev_center_environment_type_resource.go @@ -18,8 +18,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -var _ sdk.Resource = DevCenterEnvironmentTypeResource{} -var _ sdk.ResourceWithUpdate = DevCenterEnvironmentTypeResource{} +var ( + _ sdk.Resource = DevCenterEnvironmentTypeResource{} + _ sdk.ResourceWithUpdate = DevCenterEnvironmentTypeResource{} +) type DevCenterEnvironmentTypeResource struct{} diff --git a/internal/services/devcenter/dev_center_gallery_resource.go b/internal/services/devcenter/dev_center_gallery_resource.go index 4cfd16d35c99..334fda5b120d 100644 --- a/internal/services/devcenter/dev_center_gallery_resource.go +++ b/internal/services/devcenter/dev_center_gallery_resource.go @@ -31,9 +31,11 @@ type DevCenterGalleryResourceSchema struct { func (r DevCenterGalleryResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return galleries.ValidateGalleryID } + func (r DevCenterGalleryResource) ResourceType() string { return "azurerm_dev_center_gallery" } + func (r DevCenterGalleryResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "dev_center_id": { @@ -53,9 +55,11 @@ func (r DevCenterGalleryResource) Arguments() map[string]*pluginsdk.Schema { }, } } + func (r DevCenterGalleryResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{} } + func (r DevCenterGalleryResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -100,6 +104,7 @@ func (r DevCenterGalleryResource) Create() sdk.ResourceFunc { }, } } + func (r DevCenterGalleryResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -135,6 +140,7 @@ func (r DevCenterGalleryResource) Read() sdk.ResourceFunc { }, } } + func (r DevCenterGalleryResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, diff --git a/internal/services/devcenter/dev_center_gallery_resource_test.go b/internal/services/devcenter/dev_center_gallery_resource_test.go index 4f44fff9ac6f..4e0e5426af91 100644 --- a/internal/services/devcenter/dev_center_gallery_resource_test.go +++ b/internal/services/devcenter/dev_center_gallery_resource_test.go @@ -91,6 +91,7 @@ func TestAccDevCenterGallery_update(t *testing.T) { data.ImportStep(), }) } + func (r DevCenterGalleryTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := galleries.ParseGalleryID(state.ID) if err != nil { @@ -104,6 +105,7 @@ func (r DevCenterGalleryTestResource) Exists(ctx context.Context, clients *clien return utils.Bool(resp.Model != nil), nil } + func (r DevCenterGalleryTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/devcenter/dev_center_network_connection_resource.go b/internal/services/devcenter/dev_center_network_connection_resource.go index f730b41a82d7..2ef23e4199a6 100644 --- a/internal/services/devcenter/dev_center_network_connection_resource.go +++ b/internal/services/devcenter/dev_center_network_connection_resource.go @@ -20,8 +20,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.Resource = DevCenterNetworkConnectionResource{} -var _ sdk.ResourceWithUpdate = DevCenterNetworkConnectionResource{} +var ( + _ sdk.Resource = DevCenterNetworkConnectionResource{} + _ sdk.ResourceWithUpdate = DevCenterNetworkConnectionResource{} +) type DevCenterNetworkConnectionResource struct{} diff --git a/internal/services/devcenter/dev_center_project_environment_type.go b/internal/services/devcenter/dev_center_project_environment_type.go index 0b01e724190a..5217a146c1af 100644 --- a/internal/services/devcenter/dev_center_project_environment_type.go +++ b/internal/services/devcenter/dev_center_project_environment_type.go @@ -22,8 +22,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.Resource = DevCenterProjectEnvironmentTypeResource{} -var _ sdk.ResourceWithUpdate = DevCenterProjectEnvironmentTypeResource{} +var ( + _ sdk.Resource = DevCenterProjectEnvironmentTypeResource{} + _ sdk.ResourceWithUpdate = DevCenterProjectEnvironmentTypeResource{} +) type DevCenterProjectEnvironmentTypeResource struct{} diff --git a/internal/services/devcenter/dev_center_project_pool_resource.go b/internal/services/devcenter/dev_center_project_pool_resource.go new file mode 100644 index 000000000000..e096dd039058 --- /dev/null +++ b/internal/services/devcenter/dev_center_project_pool_resource.go @@ -0,0 +1,288 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package devcenter + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools" + "github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/devcenter/validate" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +var ( + _ sdk.Resource = DevCenterProjectPoolResource{} + _ sdk.ResourceWithUpdate = DevCenterProjectPoolResource{} +) + +type DevCenterProjectPoolResource struct{} + +func (r DevCenterProjectPoolResource) ModelObject() interface{} { + return &DevCenterProjectPoolResourceModel{} +} + +type DevCenterProjectPoolResourceModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + DevCenterProjectId string `tfschema:"dev_center_project_id"` + DevBoxDefinitionName string `tfschema:"dev_box_definition_name"` + LocalAdministratorEnabled bool `tfschema:"local_administrator_enabled"` + DevCenterAttachedNetworkName string `tfschema:"dev_center_attached_network_name"` + StopOnDisconnectGracePeriodMinutes int64 `tfschema:"stop_on_disconnect_grace_period_minutes"` + Tags map[string]string `tfschema:"tags"` +} + +func (r DevCenterProjectPoolResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return pools.ValidatePoolID +} + +func (r DevCenterProjectPoolResource) ResourceType() string { + return "azurerm_dev_center_project_pool" +} + +func (r DevCenterProjectPoolResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validate.DevCenterProjectPoolName, + }, + + "location": commonschema.Location(), + + "dev_center_project_id": commonschema.ResourceIDReferenceRequiredForceNew(&pools.ProjectId{}), + + "dev_box_definition_name": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validate.DevCenterDevBoxDefinitionName, + }, + + "local_administrator_enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + + "dev_center_attached_network_name": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "stop_on_disconnect_grace_period_minutes": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(60, 480), + }, + + "tags": commonschema.Tags(), + } +} + +func (r DevCenterProjectPoolResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (r DevCenterProjectPoolResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.DevCenter.V20230401.Pools + subscriptionId := metadata.Client.Account.SubscriptionId + + var model DevCenterProjectPoolResourceModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + devCenterProjectId, err := projects.ParseProjectID(model.DevCenterProjectId) + if err != nil { + return err + } + + id := pools.NewPoolID(subscriptionId, devCenterProjectId.ResourceGroupName, devCenterProjectId.ProjectName, model.Name) + + existing, err := client.Get(ctx, id) + if err != nil { + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for the presence of an existing %s: %+v", id, err) + } + } + if !response.WasNotFound(existing.HttpResponse) { + return metadata.ResourceRequiresImport(r.ResourceType(), id) + } + + parameters := pools.Pool{ + Location: location.Normalize(model.Location), + Properties: &pools.PoolProperties{ + DevBoxDefinitionName: pointer.To(model.DevBoxDefinitionName), + NetworkConnectionName: pointer.To(model.DevCenterAttachedNetworkName), + LicenseType: pointer.To(pools.LicenseTypeWindowsClient), + StopOnDisconnect: expandDevCenterProjectPoolStopOnDisconnect(model.StopOnDisconnectGracePeriodMinutes), + }, + Tags: pointer.To(model.Tags), + } + + if model.LocalAdministratorEnabled { + parameters.Properties.LocalAdministrator = pointer.To(pools.LocalAdminStatusEnabled) + } else { + parameters.Properties.LocalAdministrator = pointer.To(pools.LocalAdminStatusDisabled) + } + + if err := client.CreateOrUpdateThenPoll(ctx, id, parameters); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + return nil + }, + } +} + +func (r DevCenterProjectPoolResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.DevCenter.V20230401.Pools + + id, err := pools.ParsePoolID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return metadata.MarkAsGone(*id) + } + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + state := DevCenterProjectPoolResourceModel{ + Name: id.PoolName, + DevCenterProjectId: projects.NewProjectID(id.SubscriptionId, id.ResourceGroupName, id.ProjectName).ID(), + } + + if model := resp.Model; model != nil { + state.Location = location.Normalize(model.Location) + state.Tags = pointer.From(model.Tags) + + if props := model.Properties; props != nil { + state.DevBoxDefinitionName = pointer.From(props.DevBoxDefinitionName) + state.LocalAdministratorEnabled = pointer.From(props.LocalAdministrator) == pools.LocalAdminStatusEnabled + state.DevCenterAttachedNetworkName = pointer.From(props.NetworkConnectionName) + state.StopOnDisconnectGracePeriodMinutes = flattenDevCenterProjectPoolStopOnDisconnect(props.StopOnDisconnect) + } + } + + return metadata.Encode(&state) + }, + } +} + +func (r DevCenterProjectPoolResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.DevCenter.V20230401.Pools + + id, err := pools.ParsePoolID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + var model DevCenterProjectPoolResourceModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + parameters := pools.PoolUpdate{ + Properties: &pools.PoolUpdateProperties{}, + } + + if metadata.ResourceData.HasChange("dev_box_definition_name") { + parameters.Properties.DevBoxDefinitionName = pointer.To(model.DevBoxDefinitionName) + } + + if metadata.ResourceData.HasChange("local_administrator_enabled") { + if model.LocalAdministratorEnabled { + parameters.Properties.LocalAdministrator = pointer.To(pools.LocalAdminStatusEnabled) + } else { + parameters.Properties.LocalAdministrator = pointer.To(pools.LocalAdminStatusDisabled) + } + } + + if metadata.ResourceData.HasChange("dev_center_attached_network_name") { + parameters.Properties.NetworkConnectionName = pointer.To(model.DevCenterAttachedNetworkName) + } + + if metadata.ResourceData.HasChange("stop_on_disconnect_grace_period_minutes") { + parameters.Properties.StopOnDisconnect = expandDevCenterProjectPoolStopOnDisconnect(model.StopOnDisconnectGracePeriodMinutes) + } + + if metadata.ResourceData.HasChange("tags") { + parameters.Tags = pointer.To(model.Tags) + } + + if err := client.UpdateThenPoll(ctx, *id, parameters); err != nil { + return fmt.Errorf("updating %s: %+v", *id, err) + } + + return nil + }, + } +} + +func (r DevCenterProjectPoolResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.DevCenter.V20230401.Pools + + id, err := pools.ParsePoolID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + if err := client.DeleteThenPoll(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %+v", *id, err) + } + + return nil + }, + } +} + +func expandDevCenterProjectPoolStopOnDisconnect(input int64) *pools.StopOnDisconnectConfiguration { + if input == 0 { + return &pools.StopOnDisconnectConfiguration{ + GracePeriodMinutes: pointer.To(int64(0)), + Status: pointer.To(pools.StopOnDisconnectEnableStatusDisabled), + } + } + + return &pools.StopOnDisconnectConfiguration{ + GracePeriodMinutes: pointer.To(input), + Status: pointer.To(pools.StopOnDisconnectEnableStatusEnabled), + } +} + +func flattenDevCenterProjectPoolStopOnDisconnect(input *pools.StopOnDisconnectConfiguration) int64 { + var gracePeriodMinutes int64 + if input == nil || pointer.From(input.Status) == pools.StopOnDisconnectEnableStatusDisabled { + return gracePeriodMinutes + } + + return pointer.From(input.GracePeriodMinutes) +} diff --git a/internal/services/devcenter/dev_center_project_pool_resource_test.go b/internal/services/devcenter/dev_center_project_pool_resource_test.go new file mode 100644 index 000000000000..ca2e407a7c63 --- /dev/null +++ b/internal/services/devcenter/dev_center_project_pool_resource_test.go @@ -0,0 +1,278 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package devcenter_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type DevCenterProjectPoolTestResource struct{} + +func TestAccDevCenterProjectPool_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dev_center_project_pool", "test") + r := DevCenterProjectPoolTestResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccDevCenterProjectPool_requiresImport(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dev_center_project_pool", "test") + r := DevCenterProjectPoolTestResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.RequiresImportErrorStep(r.requiresImport), + }) +} + +func TestAccDevCenterProjectPool_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dev_center_project_pool", "test") + r := DevCenterProjectPoolTestResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccDevCenterProjectPool_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dev_center_project_pool", "test") + r := DevCenterProjectPoolTestResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.update(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func (r DevCenterProjectPoolTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := pools.ParsePoolID(state.ID) + if err != nil { + return nil, err + } + + resp, err := clients.DevCenter.V20230401.Pools.Get(ctx, *id) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", *id, err) + } + + return pointer.To(resp.Model != nil), nil +} + +func (r DevCenterProjectPoolTestResource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +provider "azurerm" { + features {} +} + +resource "azurerm_dev_center_project_pool" "test" { + name = "acctest-dcpl-%d" + location = azurerm_resource_group.test.location + dev_center_project_id = azurerm_dev_center_project.test.id + dev_box_definition_name = azurerm_dev_center_dev_box_definition.test.name + local_administrator_enabled = false + dev_center_attached_network_name = azurerm_dev_center_attached_network.test.name +} +`, r.template(data), data.RandomInteger) +} + +func (r DevCenterProjectPoolTestResource) requiresImport(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_dev_center_project_pool" "import" { + name = azurerm_dev_center_project_pool.test.name + location = azurerm_dev_center_project_pool.test.location + dev_center_project_id = azurerm_dev_center_project_pool.test.dev_center_project_id + dev_box_definition_name = azurerm_dev_center_project_pool.test.dev_box_definition_name + local_administrator_enabled = azurerm_dev_center_project_pool.test.local_administrator_enabled + dev_center_attached_network_name = azurerm_dev_center_project_pool.test.dev_center_attached_network_name +} +`, r.basic(data)) +} + +func (r DevCenterProjectPoolTestResource) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +provider "azurerm" { + features {} +} + +resource "azurerm_dev_center_project_pool" "test" { + name = "acctest-dcpl-%d" + location = azurerm_resource_group.test.location + dev_center_project_id = azurerm_dev_center_project.test.id + dev_box_definition_name = azurerm_dev_center_dev_box_definition.test.name + local_administrator_enabled = true + dev_center_attached_network_name = azurerm_dev_center_attached_network.test.name + stop_on_disconnect_grace_period_minutes = 60 + + tags = { + Env = "Test" + } +} +`, r.template(data), data.RandomInteger) +} + +func (r DevCenterProjectPoolTestResource) update(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +provider "azurerm" { + features {} +} + +resource "azurerm_dev_center_project_pool" "test" { + name = "acctest-dcpl-%d" + location = azurerm_resource_group.test.location + dev_center_project_id = azurerm_dev_center_project.test.id + dev_box_definition_name = azurerm_dev_center_dev_box_definition.test2.name + local_administrator_enabled = false + dev_center_attached_network_name = azurerm_dev_center_attached_network.test2.name + stop_on_disconnect_grace_period_minutes = 80 + + tags = { + Env = "Test2" + } +} +`, r.template(data), data.RandomInteger) +} + +func (r DevCenterProjectPoolTestResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +resource "azurerm_resource_group" "test" { + name = "acctestrg-dcet-%d" + location = "%s" +} + +resource "azurerm_dev_center" "test" { + name = "acctest-dc-%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + identity { + type = "SystemAssigned" + } +} + +resource "azurerm_dev_center_dev_box_definition" "test" { + name = "acctest-dcet-%d" + location = azurerm_resource_group.test.location + dev_center_id = azurerm_dev_center.test.id + image_reference_id = "${azurerm_dev_center.test.id}/galleries/default/images/microsoftvisualstudio_visualstudioplustools_vs-2022-ent-general-win10-m365-gen2" + sku_name = "general_i_8c32gb256ssd_v2" +} + +resource "azurerm_virtual_network" "test" { + name = "acctest-vnet-%d" + address_space = ["10.0.0.0/16"] + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_subnet" "test" { + name = "internal" + resource_group_name = azurerm_resource_group.test.name + virtual_network_name = azurerm_virtual_network.test.name + address_prefixes = ["10.0.2.0/24"] +} + +resource "azurerm_dev_center_network_connection" "test" { + name = "acctest-dcnc-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + domain_join_type = "AzureADJoin" + subnet_id = azurerm_subnet.test.id +} + +resource "azurerm_dev_center_attached_network" "test" { + name = "acctest-dcan-%d" + dev_center_id = azurerm_dev_center.test.id + network_connection_id = azurerm_dev_center_network_connection.test.id + + depends_on = [azurerm_dev_center_dev_box_definition.test] +} + +resource "azurerm_dev_center_dev_box_definition" "test2" { + name = "acctest-dcet2-%d" + location = azurerm_resource_group.test.location + dev_center_id = azurerm_dev_center.test.id + image_reference_id = "${azurerm_dev_center.test.id}/galleries/default/images/microsoftvisualstudio_visualstudioplustools_vs-2022-ent-general-win10-m365-gen2" + sku_name = "general_i_8c32gb256ssd_v2" +} + +resource "azurerm_dev_center_attached_network" "test2" { + name = "acctest-dcan2-%d" + dev_center_id = azurerm_dev_center.test.id + network_connection_id = azurerm_dev_center_network_connection.test.id + + depends_on = [azurerm_dev_center_dev_box_definition.test2] +} + +resource "azurerm_dev_center_project" "test" { + name = "acctest-dcp-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + dev_center_id = azurerm_dev_center.test.id + + depends_on = [azurerm_dev_center_attached_network.test, azurerm_dev_center_attached_network.test2] +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) +} diff --git a/internal/services/devcenter/dev_center_project_resource_gen.go b/internal/services/devcenter/dev_center_project_resource_gen.go index 194abc1be178..c143d7e977b1 100644 --- a/internal/services/devcenter/dev_center_project_resource_gen.go +++ b/internal/services/devcenter/dev_center_project_resource_gen.go @@ -18,8 +18,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -var _ sdk.Resource = DevCenterProjectResource{} -var _ sdk.ResourceWithUpdate = DevCenterProjectResource{} +var ( + _ sdk.Resource = DevCenterProjectResource{} + _ sdk.ResourceWithUpdate = DevCenterProjectResource{} +) type DevCenterProjectResource struct{} @@ -41,9 +43,11 @@ type DevCenterProjectResourceSchema struct { func (r DevCenterProjectResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return projects.ValidateProjectID } + func (r DevCenterProjectResource) ResourceType() string { return "azurerm_dev_center_project" } + func (r DevCenterProjectResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "dev_center_id": { @@ -70,6 +74,7 @@ func (r DevCenterProjectResource) Arguments() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } } + func (r DevCenterProjectResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "dev_center_uri": { @@ -78,6 +83,7 @@ func (r DevCenterProjectResource) Attributes() map[string]*pluginsdk.Schema { }, } } + func (r DevCenterProjectResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -117,6 +123,7 @@ func (r DevCenterProjectResource) Create() sdk.ResourceFunc { }, } } + func (r DevCenterProjectResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -149,6 +156,7 @@ func (r DevCenterProjectResource) Read() sdk.ResourceFunc { }, } } + func (r DevCenterProjectResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -168,6 +176,7 @@ func (r DevCenterProjectResource) Delete() sdk.ResourceFunc { }, } } + func (r DevCenterProjectResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, diff --git a/internal/services/devcenter/dev_center_project_resource_gen_test.go b/internal/services/devcenter/dev_center_project_resource_gen_test.go index 021c3219e0be..17676bf2b9e4 100644 --- a/internal/services/devcenter/dev_center_project_resource_gen_test.go +++ b/internal/services/devcenter/dev_center_project_resource_gen_test.go @@ -91,6 +91,7 @@ func TestAccDevCenterProject_update(t *testing.T) { data.ImportStep(), }) } + func (r DevCenterProjectTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := projects.ParseProjectID(state.ID) if err != nil { @@ -104,6 +105,7 @@ func (r DevCenterProjectTestResource) Exists(ctx context.Context, clients *clien return utils.Bool(resp.Model != nil), nil } + func (r DevCenterProjectTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/devcenter/dev_center_resource_gen.go b/internal/services/devcenter/dev_center_resource_gen.go index e0dd108e63d1..dee86b9d0623 100644 --- a/internal/services/devcenter/dev_center_resource_gen.go +++ b/internal/services/devcenter/dev_center_resource_gen.go @@ -19,8 +19,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -var _ sdk.Resource = DevCenterResource{} -var _ sdk.ResourceWithUpdate = DevCenterResource{} +var ( + _ sdk.Resource = DevCenterResource{} + _ sdk.ResourceWithUpdate = DevCenterResource{} +) type DevCenterResource struct{} @@ -40,9 +42,11 @@ type DevCenterResourceSchema struct { func (r DevCenterResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return devcenters.ValidateDevCenterID } + func (r DevCenterResource) ResourceType() string { return "azurerm_dev_center" } + func (r DevCenterResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "location": commonschema.Location(), @@ -56,6 +60,7 @@ func (r DevCenterResource) Arguments() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } } + func (r DevCenterResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "dev_center_uri": { @@ -64,6 +69,7 @@ func (r DevCenterResource) Attributes() map[string]*pluginsdk.Schema { }, } } + func (r DevCenterResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -103,6 +109,7 @@ func (r DevCenterResource) Create() sdk.ResourceFunc { }, } } + func (r DevCenterResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -135,6 +142,7 @@ func (r DevCenterResource) Read() sdk.ResourceFunc { }, } } + func (r DevCenterResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -154,6 +162,7 @@ func (r DevCenterResource) Delete() sdk.ResourceFunc { }, } } + func (r DevCenterResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -193,7 +202,6 @@ func (r DevCenterResource) Update() sdk.ResourceFunc { } func (r DevCenterResource) mapDevCenterResourceSchemaToDevCenter(input DevCenterResourceSchema, output *devcenters.DevCenter) error { - identity, err := identity.ExpandSystemAndUserAssignedMapFromModel(input.Identity) if err != nil { return fmt.Errorf("expanding SystemAndUserAssigned Identity: %+v", err) @@ -214,7 +222,6 @@ func (r DevCenterResource) mapDevCenterResourceSchemaToDevCenter(input DevCenter } func (r DevCenterResource) mapDevCenterToDevCenterResourceSchema(input devcenters.DevCenter, output *DevCenterResourceSchema) error { - identity, err := identity.FlattenSystemAndUserAssignedMapToModel(input.Identity) if err != nil { return fmt.Errorf("flattening SystemAndUserAssigned Identity: %+v", err) @@ -235,7 +242,6 @@ func (r DevCenterResource) mapDevCenterToDevCenterResourceSchema(input devcenter } func (r DevCenterResource) mapDevCenterResourceSchemaToDevCenterProperties(input DevCenterResourceSchema, output *devcenters.DevCenterProperties) error { - return nil } diff --git a/internal/services/devcenter/dev_center_resource_gen_test.go b/internal/services/devcenter/dev_center_resource_gen_test.go index 043a53594cd1..cea9a234bd50 100644 --- a/internal/services/devcenter/dev_center_resource_gen_test.go +++ b/internal/services/devcenter/dev_center_resource_gen_test.go @@ -91,6 +91,7 @@ func TestAccDevCenter_update(t *testing.T) { data.ImportStep(), }) } + func (r DevCenterTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := devcenters.ParseDevCenterID(state.ID) if err != nil { @@ -104,6 +105,7 @@ func (r DevCenterTestResource) Exists(ctx context.Context, clients *clients.Clie return utils.Bool(resp.Model != nil), nil } + func (r DevCenterTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/devcenter/registration.go b/internal/services/devcenter/registration.go index 2ae90d91f86e..9d678d1633e7 100644 --- a/internal/services/devcenter/registration.go +++ b/internal/services/devcenter/registration.go @@ -37,6 +37,7 @@ func (r Registration) Resources() []sdk.Resource { DevCenterDevBoxDefinitionResource{}, DevCenterEnvironmentTypeResource{}, DevCenterNetworkConnectionResource{}, + DevCenterProjectPoolResource{}, DevCenterProjectEnvironmentTypeResource{}, } return append(resources, r.autoRegistration.Resources()...) diff --git a/internal/services/devcenter/registration_gen.go b/internal/services/devcenter/registration_gen.go index 3ccec54bb72f..abfda80e54f1 100644 --- a/internal/services/devcenter/registration_gen.go +++ b/internal/services/devcenter/registration_gen.go @@ -6,8 +6,7 @@ import "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" var _ sdk.TypedServiceRegistration = autoRegistration{} -type autoRegistration struct { -} +type autoRegistration struct{} func (autoRegistration) Name() string { return "DevCenter" diff --git a/internal/services/devcenter/validate/dev_center_project_pool_name.go b/internal/services/devcenter/validate/dev_center_project_pool_name.go new file mode 100644 index 000000000000..c5ecf662b109 --- /dev/null +++ b/internal/services/devcenter/validate/dev_center_project_pool_name.go @@ -0,0 +1,23 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validate + +import ( + "fmt" + "regexp" +) + +func DevCenterProjectPoolName(i interface{}, k string) (warnings []string, errors []error) { + v, ok := i.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected type of %q to be string", k)) + return + } + + if !regexp.MustCompile("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$").MatchString(v) { + errors = append(errors, fmt.Errorf("%q must start with an alphanumeric character, may contain alphanumeric characters, dashes, underscores or periods and must be between 3 and 63 characters long", k)) + } + + return warnings, errors +} diff --git a/internal/services/devcenter/validate/dev_center_project_pool_name_test.go b/internal/services/devcenter/validate/dev_center_project_pool_name_test.go new file mode 100644 index 000000000000..2d1ee7b6db17 --- /dev/null +++ b/internal/services/devcenter/validate/dev_center_project_pool_name_test.go @@ -0,0 +1,61 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validate + +import ( + "strings" + "testing" +) + +func TestDevCenterProjectPoolName(t *testing.T) { + testCases := []struct { + Input string + Expected bool + }{ + { + Input: "", + Expected: false, + }, + { + Input: "a", + Expected: false, + }, + { + Input: "a8a", + Expected: true, + }, + { + Input: "a-8.a", + Expected: true, + }, + { + Input: "aa-", + Expected: true, + }, + { + Input: "aa.", + Expected: true, + }, + { + Input: strings.Repeat("s", 62), + Expected: true, + }, + { + Input: strings.Repeat("s", 63), + Expected: true, + }, + { + Input: strings.Repeat("s", 64), + Expected: false, + }, + } + + for _, v := range testCases { + _, errors := DevCenterProjectPoolName(v.Input, "name") + result := len(errors) == 0 + if result != v.Expected { + t.Fatalf("Expected the result to be %t but got %t (and %d errors)", v.Expected, result, len(errors)) + } + } +} diff --git a/internal/services/devtestlabs/dev_test_lab_data_source.go b/internal/services/devtestlabs/dev_test_lab_data_source.go index a8de56d86a14..bb480ce953ce 100644 --- a/internal/services/devtestlabs/dev_test_lab_data_source.go +++ b/internal/services/devtestlabs/dev_test_lab_data_source.go @@ -101,7 +101,6 @@ func dataSourceDevTestLabRead(d *pluginsdk.ResourceData, meta interface{}) error d.Set("resource_group_name", id.ResourceGroupName) if model := resp.Model; model != nil { - d.Set("location", location.NormalizeNilable(model.Location)) if props := model.Properties; props != nil { diff --git a/internal/services/digitaltwins/digital_twins_time_series_database_connection_resource.go b/internal/services/digitaltwins/digital_twins_time_series_database_connection_resource.go index 3a6d8f881906..11270a776038 100644 --- a/internal/services/digitaltwins/digital_twins_time_series_database_connection_resource.go +++ b/internal/services/digitaltwins/digital_twins_time_series_database_connection_resource.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections" "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/digitaltwins/validate" eventhubValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/eventhub/validate" @@ -112,16 +111,6 @@ func (m TimeSeriesDatabaseConnectionResource) Arguments() map[string]*pluginsdk. }, } - if !features.FourPointOhBeta() { - resource["kusto_table_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - ValidateFunc: kustoValidate.EntityName, - } - } - return resource } diff --git a/internal/services/dns/dns_zone_resource.go b/internal/services/dns/dns_zone_resource.go index df90785fcb2d..e0a672a77e73 100644 --- a/internal/services/dns/dns_zone_resource.go +++ b/internal/services/dns/dns_zone_resource.go @@ -8,7 +8,6 @@ import ( "strings" "time" - "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" @@ -17,7 +16,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/dns/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/dns/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -81,7 +79,6 @@ func resourceDnsZone() *pluginsdk.Resource { MaxItems: 1, Optional: true, Computed: true, - //ForceNew: true, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ "email": { @@ -90,12 +87,6 @@ func resourceDnsZone() *pluginsdk.Resource { ValidateFunc: validate.DnsZoneSOARecordEmail, }, - "host_name": { - Type: pluginsdk.TypeString, - Optional: !features.FourPointOhBeta(), // (@jackofallops) - This should not be set or updatable to meet API design, see https://learn.microsoft.com/en-us/azure/dns/dns-zones-records#soa-records - Computed: true, - }, - "expire_time": { Type: pluginsdk.TypeInt, Optional: true, @@ -144,6 +135,11 @@ func resourceDnsZone() *pluginsdk.Resource { Type: pluginsdk.TypeString, Computed: true, }, + + "host_name": { + Type: pluginsdk.TypeString, + Computed: true, // (@jackofallops) - This should not be set or updatable to meet API design, see https://learn.microsoft.com/en-us/azure/dns/dns-zones-records#soa-records + }, }, }, }, @@ -308,10 +304,6 @@ func expandArmDNSZoneSOARecord(input map[string]interface{}) *recordsets.SoaReco SerialNumber: utils.Int64(int64(input["serial_number"].(int))), } - if !features.FourPointOhBeta() && input["host_name"].(string) != "" { - result.Host = pointer.To(input["host_name"].(string)) - } - return result } diff --git a/internal/services/domainservices/parse/domain_service.go b/internal/services/domainservices/parse/domain_service.go index 0c392b444509..82655d85023d 100644 --- a/internal/services/domainservices/parse/domain_service.go +++ b/internal/services/domainservices/parse/domain_service.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func DomainServiceID(input string) (*DomainServiceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("domainServices"); err != nil { diff --git a/internal/services/domainservices/parse/domain_service_replica_set.go b/internal/services/domainservices/parse/domain_service_replica_set.go index 8e444ae6d939..c94a2ddd4fed 100644 --- a/internal/services/domainservices/parse/domain_service_replica_set.go +++ b/internal/services/domainservices/parse/domain_service_replica_set.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func DomainServiceReplicaSetID(input string) (*DomainServiceReplicaSetId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DomainServiceName, err = id.PopSegment("domainServices"); err != nil { diff --git a/internal/services/domainservices/parse/domain_service_replica_set_test.go b/internal/services/domainservices/parse/domain_service_replica_set_test.go index 7aa32b65cb4a..8dc4f9396a29 100644 --- a/internal/services/domainservices/parse/domain_service_replica_set_test.go +++ b/internal/services/domainservices/parse/domain_service_replica_set_test.go @@ -27,7 +27,6 @@ func TestDomainServiceReplicaSetID(t *testing.T) { Error bool Expected *DomainServiceReplicaSetId }{ - { // empty Input: "", diff --git a/internal/services/domainservices/parse/domain_service_test.go b/internal/services/domainservices/parse/domain_service_test.go index 397bb7b041c8..dd7db04e77e6 100644 --- a/internal/services/domainservices/parse/domain_service_test.go +++ b/internal/services/domainservices/parse/domain_service_test.go @@ -27,7 +27,6 @@ func TestDomainServiceID(t *testing.T) { Error bool Expected *DomainServiceId }{ - { // empty Input: "", diff --git a/internal/services/domainservices/parse/domain_service_trust.go b/internal/services/domainservices/parse/domain_service_trust.go index 7d5cd1ccf9e3..abe8d57ee409 100644 --- a/internal/services/domainservices/parse/domain_service_trust.go +++ b/internal/services/domainservices/parse/domain_service_trust.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func DomainServiceTrustID(input string) (*DomainServiceTrustId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DomainServiceName, err = id.PopSegment("domainServices"); err != nil { diff --git a/internal/services/domainservices/parse/domain_service_trust_test.go b/internal/services/domainservices/parse/domain_service_trust_test.go index e226200e093d..18da4b99be9f 100644 --- a/internal/services/domainservices/parse/domain_service_trust_test.go +++ b/internal/services/domainservices/parse/domain_service_trust_test.go @@ -27,7 +27,6 @@ func TestDomainServiceTrustID(t *testing.T) { Error bool Expected *DomainServiceTrustId }{ - { // empty Input: "", diff --git a/internal/services/domainservices/validate/domain_service_id_test.go b/internal/services/domainservices/validate/domain_service_id_test.go index e623f16e05f9..7aec3577d1b0 100644 --- a/internal/services/domainservices/validate/domain_service_id_test.go +++ b/internal/services/domainservices/validate/domain_service_id_test.go @@ -12,7 +12,6 @@ func TestDomainServiceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/domainservices/validate/domain_service_name_test.go b/internal/services/domainservices/validate/domain_service_name_test.go index 9c033e69ecfc..0c8b214ca427 100644 --- a/internal/services/domainservices/validate/domain_service_name_test.go +++ b/internal/services/domainservices/validate/domain_service_name_test.go @@ -13,7 +13,6 @@ func TestDomainServiceName(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/domainservices/validate/domain_service_replica_set_id_test.go b/internal/services/domainservices/validate/domain_service_replica_set_id_test.go index bd10a2f3938f..9ce9da0db506 100644 --- a/internal/services/domainservices/validate/domain_service_replica_set_id_test.go +++ b/internal/services/domainservices/validate/domain_service_replica_set_id_test.go @@ -12,7 +12,6 @@ func TestDomainServiceReplicaSetID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/domainservices/validate/domain_service_trust_id_test.go b/internal/services/domainservices/validate/domain_service_trust_id_test.go index 9a4bc8af6c79..748fec239771 100644 --- a/internal/services/domainservices/validate/domain_service_trust_id_test.go +++ b/internal/services/domainservices/validate/domain_service_trust_id_test.go @@ -12,7 +12,6 @@ func TestDomainServiceTrustID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/dynatrace/client/client.go b/internal/services/dynatrace/client/client.go new file mode 100644 index 000000000000..6bab7528757f --- /dev/null +++ b/internal/services/dynatrace/client/client.go @@ -0,0 +1,27 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package client + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors" + "github.com/hashicorp/terraform-provider-azurerm/internal/common" +) + +type Client struct { + *monitors.MonitorsClient +} + +func NewClient(o *common.ClientOptions) (*Client, error) { + monitorClient, err := monitors.NewMonitorsClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building Dynatrace Monitor client: %+v", err) + } + o.Configure(monitorClient.Client, o.Authorizers.ResourceManager) + + return &Client{ + MonitorsClient: monitorClient, + }, nil +} diff --git a/internal/services/dynatrace/dynatrace_monitors_resource.go b/internal/services/dynatrace/dynatrace_monitors_resource.go new file mode 100644 index 000000000000..4298172e9238 --- /dev/null +++ b/internal/services/dynatrace/dynatrace_monitors_resource.go @@ -0,0 +1,386 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package dynatrace + +import ( + "context" + "errors" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/validate" + "github.com/hashicorp/terraform-provider-azurerm/internal/tags" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +type MonitorsResource struct{} + +var _ sdk.ResourceWithUpdate = MonitorsResource{} + +type MonitorsResourceModel struct { + Name string `tfschema:"name"` + ResourceGroup string `tfschema:"resource_group_name"` + Location string `tfschema:"location"` + MonitoringStatus bool `tfschema:"monitoring_enabled"` + MarketplaceSubscriptionStatus string `tfschema:"marketplace_subscription"` + Identity []identity.ModelSystemAssigned `tfschema:"identity"` + PlanData []PlanData `tfschema:"plan"` + UserInfo []UserInfo `tfschema:"user"` + Tags map[string]string `tfschema:"tags"` +} + +type PlanData struct { + BillingCycle string `tfschema:"billing_cycle"` + EffectiveDate string `tfschema:"effective_date"` + PlanDetails string `tfschema:"plan"` + UsageType string `tfschema:"usage_type"` +} + +type UserInfo struct { + Country string `tfschema:"country"` + EmailAddress string `tfschema:"email"` + FirstName string `tfschema:"first_name"` + LastName string `tfschema:"last_name"` + PhoneNumber string `tfschema:"phone_number"` +} + +func (r MonitorsResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "resource_group_name": commonschema.ResourceGroupName(), + + "location": commonschema.Location(), + + "monitoring_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + ForceNew: true, + Default: true, + }, + + "marketplace_subscription": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringInSlice([]string{ + string(monitors.MarketplaceSubscriptionStatusActive), + string(monitors.MarketplaceSubscriptionStatusSuspended), + }, false), + }, + + "identity": commonschema.SystemAssignedIdentityRequired(), + + "plan": { + Type: pluginsdk.TypeList, + Required: true, + ForceNew: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + // Issue: https://github.com/Azure/azure-rest-api-specs/issues/31284 + // This should be an enum. + "billing_cycle": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + "MONTHLY", + "WEEKLY", + }, false), + }, + + "plan": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + // Issue: https://github.com/Azure/azure-rest-api-specs/issues/31284 + // This should be an enum. + "usage_type": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + "PAYG", + "COMMITTED", + }, false), + }, + + "effective_date": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + + "user": { + Type: pluginsdk.TypeList, + Required: true, + ForceNew: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "country": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "email": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validate.EmailAddress, + }, + + "first_name": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "last_name": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "phone_number": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, + }, + }, + + "tags": tags.Schema(), + } +} + +func (r MonitorsResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (r MonitorsResource) ModelObject() interface{} { + return &MonitorsResourceModel{} +} + +func (r MonitorsResource) ResourceType() string { + return "azurerm_dynatrace_monitor" +} + +func (r MonitorsResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Dynatrace.MonitorsClient + subscriptionId := metadata.Client.Account.SubscriptionId + + var model MonitorsResourceModel + if err := metadata.Decode(&model); err != nil { + return err + } + + id := monitors.NewMonitorID(subscriptionId, model.ResourceGroup, model.Name) + + existing, err := client.Get(ctx, id) + if err != nil && !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for presence of existing %s: %+v", id, err) + } + if !response.WasNotFound(existing.HttpResponse) { + return metadata.ResourceRequiresImport(r.ResourceType(), id) + } + + monitoringStatus := monitors.MonitoringStatusEnabled + if !model.MonitoringStatus { + monitoringStatus = monitors.MonitoringStatusDisabled + } + monitorsProps := monitors.MonitorProperties{ + MarketplaceSubscriptionStatus: pointer.To(monitors.MarketplaceSubscriptionStatus(model.MarketplaceSubscriptionStatus)), + MonitoringStatus: pointer.To(monitoringStatus), + PlanData: ExpandDynatracePlanData(model.PlanData), + UserInfo: ExpandDynatraceUserInfo(model.UserInfo), + } + + dynatraceIdentity, err := expandDynatraceIdentity(model.Identity) + if err != nil { + return fmt.Errorf("expanding identity: %+v", err) + } + + monitor := monitors.MonitorResource{ + Identity: dynatraceIdentity, + Location: model.Location, + Name: pointer.To(model.Name), + Properties: monitorsProps, + Tags: pointer.To(model.Tags), + } + + if err := client.CreateOrUpdateThenPoll(ctx, id, monitor); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + + return nil + }, + } +} + +func (r MonitorsResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Dynatrace.MonitorsClient + id, err := monitors.ParseMonitorID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return metadata.MarkAsGone(id) + } + return fmt.Errorf("reading %s: %+v", id, err) + } + + if model := resp.Model; model != nil { + props := model.Properties + identityProps, err := flattenDynatraceIdentity(model.Identity) + if err != nil { + return fmt.Errorf("flattening identity: %+v", err) + } + monitoringStatus := true + if *props.MonitoringStatus == monitors.MonitoringStatusDisabled { + monitoringStatus = false + } + + state := MonitorsResourceModel{ + Name: id.MonitorName, + ResourceGroup: id.ResourceGroupName, + Location: model.Location, + MonitoringStatus: monitoringStatus, + MarketplaceSubscriptionStatus: string(*props.MarketplaceSubscriptionStatus), + Identity: identityProps, + PlanData: FlattenDynatracePlanData(props.PlanData), + UserInfo: FlattenDynatraceUserInfo(metadata.ResourceData.Get("user").([]interface{})), + } + + if model.Tags != nil { + state.Tags = *model.Tags + } + + return metadata.Encode(&state) + } + return nil + }, + } +} + +func (r MonitorsResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Dynatrace.MonitorsClient + id, err := monitors.ParseMonitorID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + metadata.Logger.Infof("deleting %s", *id) + + if resp, err := client.Delete(ctx, *id); err != nil { + if !response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("deleting %s: %+v", *id, err) + } + } + return nil + }, + } +} + +func (r MonitorsResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return monitors.ValidateMonitorID +} + +func (r MonitorsResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Dynatrace.MonitorsClient + id, err := monitors.ParseMonitorID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + var state MonitorsResourceModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding %+v", err) + } + + if metadata.ResourceData.HasChange("tags") { + props := monitors.MonitorResourceUpdate{ + Tags: pointer.To(state.Tags), + } + + if _, err := client.Update(ctx, *id, props); err != nil { + return fmt.Errorf("updating %s: %+v", *id, err) + } + } + + return nil + }, + } +} + +func expandDynatraceIdentity(input []identity.ModelSystemAssigned) (*monitors.IdentityProperties, error) { + config, err := identity.ExpandSystemAssignedFromModel(input) + if err != nil { + return nil, err + } + + if config.Type == identity.TypeNone { + return pointer.To(monitors.IdentityProperties{}), nil + } + + dynatraceIdentity := monitors.IdentityProperties{ + Type: monitors.ManagedIdentityType(config.Type), + } + + return pointer.To(dynatraceIdentity), nil +} + +func flattenDynatraceIdentity(input *monitors.IdentityProperties) ([]identity.ModelSystemAssigned, error) { + if input == nil { + return nil, errors.New("flattening Dynatrace identity: input is nil") + } + var identityProp identity.ModelSystemAssigned + + identityProp.Type = identity.Type(input.Type) + + if input.PrincipalId != nil { + identityProp.PrincipalId = pointer.From(input.PrincipalId) + } + + if input.TenantId != nil { + identityProp.TenantId = pointer.From(input.TenantId) + } + + return []identity.ModelSystemAssigned{ + identityProp, + }, nil +} diff --git a/internal/services/dynatrace/dynatrace_monitors_resource_test.go b/internal/services/dynatrace/dynatrace_monitors_resource_test.go new file mode 100644 index 000000000000..5e4c31e98765 --- /dev/null +++ b/internal/services/dynatrace/dynatrace_monitors_resource_test.go @@ -0,0 +1,256 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package dynatrace_test + +import ( + "context" + "fmt" + "os" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type dynatraceInfo struct { + UserCountry string + UserEmail string + UserFirstName string + UserLastName string + UserPhoneNumber string +} + +type MonitorsResource struct { + dynatraceInfo dynatraceInfo +} + +func NewDynatraceMonitorResource() MonitorsResource { + return MonitorsResource{ + dynatraceInfo: dynatraceInfo{ + UserCountry: os.Getenv("DYNATRACE_USER_COUNTRY"), + UserEmail: os.Getenv("DYNATRACE_USER_EMAIL"), + UserFirstName: os.Getenv("DYNATRACE_USER_FIRST_NAME"), + UserLastName: os.Getenv("DYNATRACE_USER_LAST_NAME"), + UserPhoneNumber: os.Getenv("DYNATRACE_USER_PHONE_NUMBER"), + }, + } +} + +func TestAccDynatraceMonitor_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dynatrace_monitor", "test") + r := MonitorsResource{} + r.preCheck(t) + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + + data.ImportStep("user"), + }) +} + +func TestAccDynatraceMonitor_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dynatrace_monitor", "test") + r := MonitorsResource{} + r.preCheck(t) + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("user"), + { + Config: r.updated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("user"), + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("user"), + }) +} + +func TestAccDynatraceMonitor_requiresImport(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_dynatrace_monitor", "test") + r := MonitorsResource{} + r.preCheck(t) + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.RequiresImportErrorStep(r.requiresImport), + }) +} + +func (r MonitorsResource) preCheck(t *testing.T) { + if r.dynatraceInfo.UserCountry == "" { + t.Skipf("DYNATRACE_USER_COUNTRY must be set for acceptance tests") + } + if r.dynatraceInfo.UserEmail == "" { + t.Skipf("DYNATRACE_USER_EMAIL must be set for acceptance tests") + } + if r.dynatraceInfo.UserFirstName == "" { + t.Skipf("DYNATRACE_USER_FIRST_NAME must be set for acceptance tests") + } + if r.dynatraceInfo.UserLastName == "" { + t.Skipf("DYNATRACE_USER_LAST_NAME must be set for acceptance tests") + } + if r.dynatraceInfo.UserPhoneNumber == "" { + t.Skipf("DYNATRACE_USER_PHONE_NUMBER must be set for acceptance tests") + } +} + +func (r MonitorsResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := monitors.ParseMonitorID(state.ID) + if err != nil { + return nil, err + } + + resp, err := client.Dynatrace.MonitorsClient.Get(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return pointer.To(false), nil + } + return nil, fmt.Errorf("retrieving %s: %+v", *id, err) + } + return pointer.To(true), nil +} + +func (r MonitorsResource) basic(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%[1]s + +resource "azurerm_dynatrace_monitor" "test" { + name = "acctestacc%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + marketplace_subscription = "Active" + + identity { + type = "SystemAssigned" + } + + user { + first_name = "%s" + last_name = "%s" + email = "%s" + phone_number = "%s" + country = "%s" + } + + plan { + usage_type = "COMMITTED" + billing_cycle = "MONTHLY" + plan = "azureportalintegration_privatepreview@TIDgmz7xq9ge3py" + } + + tags = { + environment = "Dev" + } +} +`, template, data.RandomInteger, r.dynatraceInfo.UserFirstName, r.dynatraceInfo.UserLastName, r.dynatraceInfo.UserEmail, r.dynatraceInfo.UserPhoneNumber, r.dynatraceInfo.UserCountry) +} + +func (r MonitorsResource) updated(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%[1]s + +resource "azurerm_dynatrace_monitor" "test" { + name = "acctestacc%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + marketplace_subscription = "Active" + + identity { + type = "SystemAssigned" + } + user { + first_name = "%s" + last_name = "%s" + email = "%s" + phone_number = "%s" + country = "%s" + } + + plan { + usage_type = "COMMITTED" + billing_cycle = "MONTHLY" + plan = "azureportalintegration_privatepreview@TIDgmz7xq9ge3py" + } + + tags = { + environment = "Prod" + test = "Patch" + } +} +`, template, data.RandomInteger, r.dynatraceInfo.UserFirstName, r.dynatraceInfo.UserLastName, r.dynatraceInfo.UserEmail, r.dynatraceInfo.UserPhoneNumber, r.dynatraceInfo.UserCountry) +} + +func (r MonitorsResource) requiresImport(data acceptance.TestData) string { + template := r.basic(data) + return fmt.Sprintf(` +%s + +resource "azurerm_dynatrace_monitor" "import" { + name = azurerm_dynatrace_monitor.test.name + resource_group_name = azurerm_dynatrace_monitor.test.resource_group_name + location = azurerm_dynatrace_monitor.test.location + marketplace_subscription = azurerm_dynatrace_monitor.test.marketplace_subscription + + identity { + type = azurerm_dynatrace_monitor.test.identity.0.type + } + user { + first_name = azurerm_dynatrace_monitor.test.user.0.first_name + last_name = azurerm_dynatrace_monitor.test.user.0.last_name + email = azurerm_dynatrace_monitor.test.user.0.email + phone_number = azurerm_dynatrace_monitor.test.user.0.phone_number + country = azurerm_dynatrace_monitor.test.user.0.country + } + + plan { + usage_type = azurerm_dynatrace_monitor.test.plan.0.usage_type + billing_cycle = azurerm_dynatrace_monitor.test.plan.0.billing_cycle + plan = azurerm_dynatrace_monitor.test.plan.0.plan + } +} +`, template) +} + +func (r MonitorsResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} +`, data.RandomInteger, "eastus2euap", data.RandomString) +} diff --git a/internal/services/dynatrace/helper.go b/internal/services/dynatrace/helper.go new file mode 100644 index 000000000000..951ec681e0fd --- /dev/null +++ b/internal/services/dynatrace/helper.go @@ -0,0 +1,90 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package dynatrace + +import ( + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors" +) + +func ExpandDynatracePlanData(input []PlanData) *monitors.PlanData { + if len(input) == 0 { + return nil + } + v := input[0] + + return pointer.To(monitors.PlanData{ + BillingCycle: &v.BillingCycle, + PlanDetails: &v.PlanDetails, + UsageType: &v.UsageType, + }) +} + +func ExpandDynatraceUserInfo(input []UserInfo) *monitors.UserInfo { + if len(input) == 0 { + return nil + } + v := input[0] + + return pointer.To(monitors.UserInfo{ + Country: pointer.To(v.Country), + EmailAddress: pointer.To(v.EmailAddress), + FirstName: pointer.To(v.FirstName), + LastName: pointer.To(v.LastName), + PhoneNumber: pointer.To(v.PhoneNumber), + }) +} + +func FlattenDynatracePlanData(input *monitors.PlanData) []PlanData { + if input == nil { + return []PlanData{} + } + + var billingCycle string + var effectiveDate string + var planDetails string + var usageType string + + if input.BillingCycle != nil { + billingCycle = pointer.From(input.BillingCycle) + } + + if input.EffectiveDate != nil { + effectiveDate = pointer.From(input.EffectiveDate) + } + + if input.PlanDetails != nil { + planDetails = pointer.From(input.PlanDetails) + } + + if input.UsageType != nil { + usageType = pointer.From(input.UsageType) + } + + return []PlanData{ + { + BillingCycle: billingCycle, + EffectiveDate: effectiveDate, + PlanDetails: planDetails, + UsageType: usageType, + }, + } +} + +func FlattenDynatraceUserInfo(input []interface{}) []UserInfo { + if len(input) == 0 { + return []UserInfo{} + } + + v := input[0].(map[string]interface{}) + return []UserInfo{ + { + Country: v["country"].(string), + EmailAddress: v["email"].(string), + FirstName: v["first_name"].(string), + LastName: v["last_name"].(string), + PhoneNumber: v["phone_number"].(string), + }, + } +} diff --git a/internal/services/dynatrace/registration.go b/internal/services/dynatrace/registration.go new file mode 100644 index 000000000000..001d19bbde01 --- /dev/null +++ b/internal/services/dynatrace/registration.go @@ -0,0 +1,34 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package dynatrace + +import "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + +type Registration struct{} + +var _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} + +func (r Registration) AssociatedGitHubLabel() string { + return "service/dynatrace" +} + +func (r Registration) Name() string { + return "Dynatrace" +} + +func (r Registration) DataSources() []sdk.DataSource { + return []sdk.DataSource{} +} + +func (r Registration) Resources() []sdk.Resource { + return []sdk.Resource{ + MonitorsResource{}, + } +} + +func (r Registration) WebsiteCategories() []string { + return []string{ + "Dynatrace", + } +} diff --git a/internal/services/elastic/elasticsearch_resource.go b/internal/services/elastic/elasticsearch_resource.go index 23619b8aba09..3d554bb6920d 100644 --- a/internal/services/elastic/elasticsearch_resource.go +++ b/internal/services/elastic/elasticsearch_resource.go @@ -16,7 +16,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/elastic/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -78,7 +77,6 @@ func resourceElasticsearch() *pluginsdk.Resource { "logs": { Type: pluginsdk.TypeList, Optional: true, - Computed: !features.FourPointOhBeta(), MaxItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ diff --git a/internal/services/elastic/elasticsearch_resource_test.go b/internal/services/elastic/elasticsearch_resource_test.go index 7df7ce01986d..d26c03ae11c4 100644 --- a/internal/services/elastic/elasticsearch_resource_test.go +++ b/internal/services/elastic/elasticsearch_resource_test.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -159,26 +158,6 @@ func (r ElasticsearchResourceTest) Exists(ctx context.Context, client *clients.C } func (r ElasticsearchResourceTest) basic(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestrg-elastic-%[1]d" - location = "%[2]s" -} - -resource "azurerm_elastic_cloud_elasticsearch" "test" { - name = "acctest-estc%[1]d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - sku_name = "ess-consumption-2024_Monthly" - elastic_cloud_email_address = "terraform-acctest@hashicorp.com" -} -`, data.RandomInteger, data.Locations.Primary) - } return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/elasticsan/elastic_san_volume_group_resource.go b/internal/services/elasticsan/elastic_san_volume_group_resource.go index 34d2e2a62083..0563c77c9b63 100644 --- a/internal/services/elasticsan/elastic_san_volume_group_resource.go +++ b/internal/services/elasticsan/elastic_san_volume_group_resource.go @@ -22,9 +22,11 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.Resource = ElasticSANVolumeGroupResource{} -var _ sdk.ResourceWithUpdate = ElasticSANVolumeGroupResource{} -var _ sdk.ResourceWithCustomizeDiff = ElasticSANVolumeGroupResource{} +var ( + _ sdk.Resource = ElasticSANVolumeGroupResource{} + _ sdk.ResourceWithUpdate = ElasticSANVolumeGroupResource{} + _ sdk.ResourceWithCustomizeDiff = ElasticSANVolumeGroupResource{} +) type ElasticSANVolumeGroupResource struct{} @@ -440,7 +442,7 @@ func ExpandVolumeGroupNetworkRules(input []ElasticSANVolumeGroupResourceNetworkR } } - var networkRules []volumegroups.VirtualNetworkRule + networkRules := make([]volumegroups.VirtualNetworkRule, 0, len(input)) for _, rule := range input { networkRules = append(networkRules, volumegroups.VirtualNetworkRule{ Id: rule.SubnetId, diff --git a/internal/services/eventgrid/client/client.go b/internal/services/eventgrid/client/client.go index 23888236b0cc..ba13112b9277 100644 --- a/internal/services/eventgrid/client/client.go +++ b/internal/services/eventgrid/client/client.go @@ -7,16 +7,32 @@ import ( "fmt" eventgrid_v2022_06_15 "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15" + "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) -func NewClient(o *common.ClientOptions) (*eventgrid_v2022_06_15.Client, error) { +type Client struct { + *eventgrid_v2022_06_15.Client + + NamespacesClient *namespaces.NamespacesClient +} + +func NewClient(o *common.ClientOptions) (*Client, error) { + NamespacesClient, err := namespaces.NewNamespacesClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building Namespaces Client: %+v", err) + } + o.Configure(NamespacesClient.Client, o.Authorizers.ResourceManager) + client, err := eventgrid_v2022_06_15.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) if err != nil { return nil, fmt.Errorf("building EventGrid client: %+v", err) } - return client, nil + return &Client{ + NamespacesClient: NamespacesClient, + Client: client, + }, nil } diff --git a/internal/services/eventgrid/event_subscription_funcs.go b/internal/services/eventgrid/event_subscription_funcs.go index 28846ab62447..2945d377f670 100644 --- a/internal/services/eventgrid/event_subscription_funcs.go +++ b/internal/services/eventgrid/event_subscription_funcs.go @@ -9,7 +9,6 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -22,27 +21,11 @@ func expandEventSubscriptionDestination(d *pluginsdk.ResourceData) eventsubscrip } eventhubEndpointId, ok := d.GetOk("eventhub_endpoint_id") - if !ok && !features.FourPointOhBeta() { - val, ok := d.GetOk("eventhub_endpoint") - if ok && len(val.([]interface{})) == 1 { - raw := val.([]interface{}) - props := raw[0].(map[string]interface{}) - eventhubEndpointId = props["eventhub_id"].(string) - } - } if ok { return expandEventSubscriptionDestinationEventHub(eventhubEndpointId.(string), deliveryMappings) } hybridConnectionEndpointId, ok := d.GetOk("hybrid_connection_endpoint_id") - if !ok && !features.FourPointOhBeta() { - val, ok := d.GetOk("hybrid_connection_endpoint") - if ok && len(val.([]interface{})) == 1 { - raw := val.([]interface{}) - props := raw[0].(map[string]interface{}) - hybridConnectionEndpointId = props["hybrid_connection_id"].(string) - } - } if ok { return expandEventSubscriptionDestinationHybridConnection(hybridConnectionEndpointId.(string), deliveryMappings) } @@ -770,63 +753,63 @@ func expandEventSubscriptionStorageBlobDeadLetterDestination(d *pluginsdk.Resour return nil } -func flattenValue(inputKey *string, inputValue *interface{}) map[string]interface{} { +func flattenValue(inputKey *string, inputValue *any) map[string]any { key := "" if inputKey != nil { key = *inputKey } - var value interface{} + var value any if inputValue != nil { value = inputValue } - return map[string]interface{}{ + return map[string]any{ "key": key, "value": value, } } -func flattenValues(inputKey *string, inputValues *[]interface{}) map[string]interface{} { +func flattenValues(inputKey *string, inputValues *[]any) map[string]any { key := "" if inputKey != nil { key = *inputKey } - values := make([]interface{}, 0) + values := make([]any, 0) if inputValues != nil { values = *inputValues } - return map[string]interface{}{ + return map[string]any{ "key": key, "values": values, } } -func flattenRangeValues(inputKey *string, inputValues *[][]interface{}) map[string]interface{} { +func flattenRangeValues(inputKey *string, inputValues *[][]any) map[string]any { key := "" if inputKey != nil { key = *inputKey } - values := make([]interface{}, 0) + values := make([]any, 0) if inputValues != nil { for _, item := range *inputValues { - values = append(values, item) + values = append(values, item...) } } - return map[string]interface{}{ + return map[string]any{ "key": key, "values": values, } } -func flattenKey(inputKey *string) map[string]interface{} { +func flattenKey(inputKey *string) map[string]any { key := "" if inputKey != nil { key = *inputKey } - return map[string]interface{}{ + return map[string]any{ "key": key, } } diff --git a/internal/services/eventgrid/eventgrid_domain_data_source.go b/internal/services/eventgrid/eventgrid_domain_data_source.go index 59cf02d48121..efb4c8736e0a 100644 --- a/internal/services/eventgrid/eventgrid_domain_data_source.go +++ b/internal/services/eventgrid/eventgrid_domain_data_source.go @@ -43,7 +43,7 @@ func dataSourceEventGridDomain() *pluginsdk.Resource { Computed: true, }, - //lintignore:XS003 + // lintignore:XS003 "input_mapping_fields": { Type: pluginsdk.TypeList, Computed: true, @@ -77,7 +77,7 @@ func dataSourceEventGridDomain() *pluginsdk.Resource { }, }, - //lintignore:XS003 + // lintignore:XS003 "input_mapping_default_values": { Type: pluginsdk.TypeList, Computed: true, diff --git a/internal/services/eventgrid/eventgrid_namespace_resource.go b/internal/services/eventgrid/eventgrid_namespace_resource.go new file mode 100644 index 000000000000..12629f13e4d9 --- /dev/null +++ b/internal/services/eventgrid/eventgrid_namespace_resource.go @@ -0,0 +1,599 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package eventgrid + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics" + "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces" + "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +var _ sdk.ResourceWithUpdate = EventGridNamespaceResource{} + +type EventGridNamespaceResource struct{} + +type EventGridNamespaceResourceModel struct { + Name string `tfschema:"name"` + Location string `tfschema:"location"` + ResourceGroup string `tfschema:"resource_group_name"` + Capacity int64 `tfschema:"capacity"` + InboundIpRules []InboundIpRuleModel `tfschema:"inbound_ip_rule"` + Identity []identity.ModelSystemAssignedUserAssigned `tfschema:"identity"` + PublicNetworkAccess string `tfschema:"public_network_access"` + Sku string `tfschema:"sku"` + TopicSpacesConfiguration []TopicSpacesConfigurationModel `tfschema:"topic_spaces_configuration"` + Tags map[string]string `tfschema:"tags"` +} + +type InboundIpRuleModel struct { + IpMask string `tfschema:"ip_mask"` + Action string `tfschema:"action"` +} + +type TopicSpacesConfigurationModel struct { + AlternativeAuthenticationNameSources []string `tfschema:"alternative_authentication_name_source"` + MaximumClientSessionsPerAuthenticationName int64 `tfschema:"maximum_client_sessions_per_authentication_name"` + MaximumSessionExpiryInHours int64 `tfschema:"maximum_session_expiry_in_hours"` + RouteTopicResourceId string `tfschema:"route_topic_id"` + DynamicRoutingEnrichment []RoutingEnrichmentModel `tfschema:"dynamic_routing_enrichment"` + StaticRoutingEnrichment []RoutingEnrichmentModel `tfschema:"static_routing_enrichment"` +} + +type RoutingEnrichmentModel struct { + Key string `tfschema:"key"` + Value string `tfschema:"value"` +} + +func (r EventGridNamespaceResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringLenBetween(3, 50), + }, + + "location": commonschema.Location(), + + "resource_group_name": commonschema.ResourceGroupName(), + + "capacity": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(1, 40), + Default: 1, + }, + + "identity": commonschema.SystemAssignedUserAssignedIdentityOptional(), + + "inbound_ip_rule": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 128, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "ip_mask": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validate.CIDR, + }, + "action": { + Type: pluginsdk.TypeString, + Optional: true, + Default: string(namespaces.IPActionTypeAllow), + ValidateFunc: validation.StringInSlice([]string{ + string(namespaces.IPActionTypeAllow), + }, false), + }, + }, + }, + }, + + "public_network_access": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + string(namespaces.PublicNetworkAccessEnabled), + string(namespaces.PublicNetworkAccessDisabled), + }, false), + Default: string(namespaces.PublicNetworkAccessEnabled), + }, + + "sku": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice(namespaces.PossibleValuesForSkuName(), false), + Default: namespaces.SkuNameStandard, + }, + + "topic_spaces_configuration": { + Type: pluginsdk.TypeList, + Optional: true, + ForceNew: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "alternative_authentication_name_source": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringInSlice(namespaces.PossibleValuesForAlternativeAuthenticationNameSource(), false), + }, + }, + + "maximum_client_sessions_per_authentication_name": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 1, + ValidateFunc: validation.IntBetween(1, 8), + }, + + "maximum_session_expiry_in_hours": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 1, + ValidateFunc: validation.IntBetween(1, 100), + }, + + "route_topic_id": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: topics.ValidateTopicID, + }, + + "dynamic_routing_enrichment": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "key": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringLenBetween(1, 20), + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringLenBetween(1, 128), + }, + }, + }, + }, + + "static_routing_enrichment": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "key": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringLenBetween(1, 20), + }, + + "value": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringLenBetween(1, 128), + }, + }, + }, + }, + }, + }, + }, + + "tags": commonschema.Tags(), + } +} + +func (r EventGridNamespaceResource) ModelObject() interface{} { + return &EventGridNamespaceResourceModel{} +} + +func (r EventGridNamespaceResource) ResourceType() string { + return "azurerm_eventgrid_namespace" +} + +func (r EventGridNamespaceResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (r EventGridNamespaceResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.EventGrid.NamespacesClient + subscriptionId := metadata.Client.Account.SubscriptionId + + var model EventGridNamespaceResourceModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding %+v", err) + } + + id := namespaces.NewNamespaceID(subscriptionId, model.ResourceGroup, model.Name) + + existing, err := client.Get(ctx, id) + if err != nil { + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for presence of existing %s: %s", id, err) + } + } + + if !response.WasNotFound(existing.HttpResponse) { + return metadata.ResourceRequiresImport(r.ResourceType(), id) + } + + identity, err := identity.ExpandSystemAndUserAssignedMapFromModel(model.Identity) + if err != nil { + return fmt.Errorf("expanding `identity`: %+v", err) + } + + namespace := namespaces.Namespace{ + Identity: identity, + Location: location.Normalize(model.Location), + Name: pointer.To(model.Name), + Properties: &namespaces.NamespaceProperties{ + InboundIPRules: expandInboundIPRules(model.InboundIpRules), + PublicNetworkAccess: pointer.To(namespaces.PublicNetworkAccess(model.PublicNetworkAccess)), + }, + Sku: &namespaces.NamespaceSku{ + Capacity: pointer.To(model.Capacity), + Name: pointer.To(namespaces.SkuName(model.Sku)), + }, + Tags: pointer.To(model.Tags), + } + + if len(model.TopicSpacesConfiguration) > 0 { + namespace.Properties.TopicSpacesConfiguration = expandTopicSpacesConfiguration(model.TopicSpacesConfiguration) + } + + if err = client.CreateOrUpdateThenPoll(ctx, id, namespace); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + + return nil + }, + } +} + +func (r EventGridNamespaceResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.EventGrid.NamespacesClient + + var model EventGridNamespaceResourceModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding %+v", err) + } + + id, err := namespaces.ParseNamespaceID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + payload := namespaces.NamespaceUpdateParameters{ + Properties: &namespaces.NamespaceUpdateParameterProperties{}, + } + + if metadata.ResourceData.HasChange("identity") { + identity, err := identity.ExpandSystemAndUserAssignedMapFromModel(model.Identity) + if err != nil { + return fmt.Errorf("expanding `identity`: %+v", err) + } + payload.Identity = identity + } + + if metadata.ResourceData.HasChange("tags") { + payload.Tags = pointer.To(model.Tags) + } + + if metadata.ResourceData.HasChange("capacity") { + payload.Sku = &namespaces.NamespaceSku{ + Capacity: pointer.To(model.Capacity), + } + } + + if metadata.ResourceData.HasChange("inbound_ip_rule") { + payload.Properties.InboundIPRules = expandInboundIPRules(model.InboundIpRules) + } + + if metadata.ResourceData.HasChange("public_network_access") { + payload.Properties.PublicNetworkAccess = pointer.To(namespaces.PublicNetworkAccess(model.PublicNetworkAccess)) + } + + if metadata.ResourceData.HasChange("topic_spaces_configuration") { + payload.Properties.TopicSpacesConfiguration = expandTopicSpacesConfigurationUpdate(model.TopicSpacesConfiguration) + } + + if err = client.UpdateThenPoll(ctx, *id, payload); err != nil { + return fmt.Errorf("creating %s: %+v", *id, err) + } + + metadata.SetID(id) + + return nil + }, + } +} + +func (r EventGridNamespaceResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.EventGrid.NamespacesClient + + id, err := namespaces.ParseNamespaceID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + existing, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(existing.HttpResponse) { + return metadata.MarkAsGone(id) + } + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + state := EventGridNamespaceResourceModel{ + Name: id.NamespaceName, + ResourceGroup: id.ResourceGroupName, + } + + if model := existing.Model; model != nil { + state.Location = location.Normalize(model.Location) + + if model.Sku != nil { + state.Sku = string(pointer.From(model.Sku.Name)) + state.Capacity = pointer.From(model.Sku.Capacity) + } + flattenedIdentity, err := identity.FlattenSystemAndUserAssignedMapToModel(model.Identity) + if err != nil { + return fmt.Errorf("flattening `identity`: %+v", err) + } + state.Identity = pointer.From(flattenedIdentity) + state.Tags = pointer.From(model.Tags) + + if props := model.Properties; props != nil { + topicSpacesConfig, err := flattenTopicSpacesConfiguration(props.TopicSpacesConfiguration) + if err != nil { + return fmt.Errorf("flattening `topic_spaces_configuration`: %v", err) + } + state.TopicSpacesConfiguration = topicSpacesConfig + state.InboundIpRules = flattenInboundIPRules(props.InboundIPRules) + state.PublicNetworkAccess = string(pointer.From(props.PublicNetworkAccess)) + } + } + + return metadata.Encode(&state) + }, + } +} + +func (r EventGridNamespaceResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.EventGrid.NamespacesClient + + id, err := namespaces.ParseNamespaceID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + if err := client.DeleteThenPoll(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %v", *id, err) + } + + return nil + }, + } +} + +func (r EventGridNamespaceResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return namespaces.ValidateNamespaceID +} + +func expandInboundIPRules(input []InboundIpRuleModel) *[]namespaces.InboundIPRule { + if len(input) == 0 { + return nil + } + + ipRules := make([]namespaces.InboundIPRule, 0) + for _, v := range input { + ipRules = append(ipRules, namespaces.InboundIPRule{ + Action: pointer.To(namespaces.IPActionType(v.Action)), + IPMask: pointer.To(v.IpMask), + }) + } + return &ipRules +} + +func flattenInboundIPRules(ipRules *[]namespaces.InboundIPRule) []InboundIpRuleModel { + output := make([]InboundIpRuleModel, 0) + + if ipRules == nil || len(*ipRules) == 0 { + return output + } + + for _, v := range *ipRules { + output = append(output, InboundIpRuleModel{ + IpMask: pointer.From(v.IPMask), + Action: string(pointer.From(v.Action)), + }) + } + return output +} + +func expandTopicSpacesConfiguration(input []TopicSpacesConfigurationModel) *namespaces.TopicSpacesConfiguration { + if input == nil { + return nil + } + topicSpacesConfig := namespaces.TopicSpacesConfiguration{ + State: pointer.To(namespaces.TopicSpacesConfigurationStateEnabled), + ClientAuthentication: &namespaces.ClientAuthenticationSettings{ + AlternativeAuthenticationNameSources: expandAlternativeAuthenticationNameSources(input[0].AlternativeAuthenticationNameSources), + }, + MaximumClientSessionsPerAuthenticationName: pointer.To(input[0].MaximumClientSessionsPerAuthenticationName), + MaximumSessionExpiryInHours: pointer.To(input[0].MaximumSessionExpiryInHours), + RouteTopicResourceId: pointer.To(input[0].RouteTopicResourceId), + RoutingEnrichments: &namespaces.RoutingEnrichments{ + Dynamic: expandDynamicRoutingEnrichments(input[0].DynamicRoutingEnrichment), + Static: expandStaticRoutingEnrichments(input[0].StaticRoutingEnrichment), + }, + } + return &topicSpacesConfig +} + +func expandTopicSpacesConfigurationUpdate(input []TopicSpacesConfigurationModel) *namespaces.UpdateTopicSpacesConfigurationInfo { + if input == nil { + return nil + } + + topicSpacesConfig := namespaces.UpdateTopicSpacesConfigurationInfo{ + State: pointer.To(namespaces.TopicSpacesConfigurationStateEnabled), + ClientAuthentication: &namespaces.ClientAuthenticationSettings{ + AlternativeAuthenticationNameSources: expandAlternativeAuthenticationNameSources(input[0].AlternativeAuthenticationNameSources), + }, + MaximumClientSessionsPerAuthenticationName: pointer.To(input[0].MaximumClientSessionsPerAuthenticationName), + MaximumSessionExpiryInHours: pointer.To(input[0].MaximumSessionExpiryInHours), + RouteTopicResourceId: pointer.To(input[0].RouteTopicResourceId), + RoutingEnrichments: &namespaces.RoutingEnrichments{ + Dynamic: expandDynamicRoutingEnrichments(input[0].DynamicRoutingEnrichment), + Static: expandStaticRoutingEnrichments(input[0].StaticRoutingEnrichment), + }, + } + return &topicSpacesConfig +} + +func expandAlternativeAuthenticationNameSources(input []string) *[]namespaces.AlternativeAuthenticationNameSource { + if len(input) == 0 { + return nil + } + + nameSources := make([]namespaces.AlternativeAuthenticationNameSource, 0) + for _, v := range input { + nameSources = append(nameSources, namespaces.AlternativeAuthenticationNameSource(v)) + } + return &nameSources +} + +func expandDynamicRoutingEnrichments(input []RoutingEnrichmentModel) *[]namespaces.DynamicRoutingEnrichment { + if len(input) == 0 { + return nil + } + dynamicRoutingEnrichments := make([]namespaces.DynamicRoutingEnrichment, 0) + for _, v := range input { + dynamicRoutingEnrichments = append(dynamicRoutingEnrichments, namespaces.DynamicRoutingEnrichment{ + Value: pointer.To(v.Value), + Key: pointer.To(v.Key), + }) + } + return &dynamicRoutingEnrichments +} + +func expandStaticRoutingEnrichments(input []RoutingEnrichmentModel) *[]namespaces.StaticRoutingEnrichment { + if len(input) == 0 { + return nil + } + + staticRoutingEnrichments := make([]namespaces.StaticRoutingEnrichment, 0) + for _, v := range input { + staticRoutingEnrichments = append(staticRoutingEnrichments, namespaces.StaticStringRoutingEnrichment{ + Value: pointer.To(v.Value), + Key: pointer.To(v.Key), + ValueType: namespaces.StaticRoutingEnrichmentTypeString, + }) + } + return &staticRoutingEnrichments +} + +func flattenTopicSpacesConfiguration(topicSpacesConfig *namespaces.TopicSpacesConfiguration) ([]TopicSpacesConfigurationModel, error) { + var output TopicSpacesConfigurationModel + if topicSpacesConfig == nil { + return nil, nil + } + + output.MaximumSessionExpiryInHours = pointer.From(topicSpacesConfig.MaximumSessionExpiryInHours) + output.MaximumClientSessionsPerAuthenticationName = pointer.From(topicSpacesConfig.MaximumClientSessionsPerAuthenticationName) + var routeId string + if topicSpacesConfig.RouteTopicResourceId != nil && *topicSpacesConfig.RouteTopicResourceId != "" { + id, err := topics.ParseTopicID(*topicSpacesConfig.RouteTopicResourceId) + if err != nil { + return nil, err + } + routeId = id.ID() + } + output.RouteTopicResourceId = routeId + + if topicSpacesConfig.ClientAuthentication != nil { + output.AlternativeAuthenticationNameSources = flattenAlternativeAuthenticationNameSources(topicSpacesConfig.ClientAuthentication.AlternativeAuthenticationNameSources) + } + if topicSpacesConfig.RoutingEnrichments != nil { + output.DynamicRoutingEnrichment = flattenDynamicRoutingEnrichments(topicSpacesConfig.RoutingEnrichments.Dynamic) + output.StaticRoutingEnrichment = flattenStaticRoutingEnrichments(topicSpacesConfig.RoutingEnrichments.Static) + } + + return []TopicSpacesConfigurationModel{output}, nil +} + +func flattenAlternativeAuthenticationNameSources(nameSources *[]namespaces.AlternativeAuthenticationNameSource) []string { + output := make([]string, 0) + + if nameSources == nil || len(*nameSources) == 0 { + return output + } + + for _, v := range *nameSources { + output = append(output, string(v)) + } + return output +} + +func flattenDynamicRoutingEnrichments(dynamicRoutingEnrichments *[]namespaces.DynamicRoutingEnrichment) []RoutingEnrichmentModel { + output := make([]RoutingEnrichmentModel, 0) + if dynamicRoutingEnrichments == nil || len(*dynamicRoutingEnrichments) == 0 { + return output + } + + for _, v := range *dynamicRoutingEnrichments { + output = append(output, RoutingEnrichmentModel{ + Value: pointer.From(v.Value), + Key: pointer.From(v.Key), + }) + } + return output +} + +func flattenStaticRoutingEnrichments(staticRoutingEnrichments *[]namespaces.StaticRoutingEnrichment) []RoutingEnrichmentModel { + output := make([]RoutingEnrichmentModel, 0) + if staticRoutingEnrichments == nil || len(*staticRoutingEnrichments) == 0 { + return output + } + + for _, v := range *staticRoutingEnrichments { + output = append(output, RoutingEnrichmentModel{ + Value: pointer.From(v.(namespaces.StaticStringRoutingEnrichment).Value), + Key: pointer.From(v.(namespaces.StaticStringRoutingEnrichment).Key), + }) + } + return output +} diff --git a/internal/services/eventgrid/eventgrid_namespace_resource_test.go b/internal/services/eventgrid/eventgrid_namespace_resource_test.go new file mode 100644 index 000000000000..59db6658721b --- /dev/null +++ b/internal/services/eventgrid/eventgrid_namespace_resource_test.go @@ -0,0 +1,529 @@ +package eventgrid_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type EventGridNamespaceResource struct{} + +func TestAccEventGridNamespaceResource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_eventgrid_namespace", "test") + r := EventGridNamespaceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccEventHubNamespace_requiresImport(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_eventgrid_namespace", "test") + r := EventGridNamespaceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + { + Config: r.requiresImport(data), + ExpectError: acceptance.RequiresImportError("azurerm_eventgrid_namespace"), + }, + }) +} + +func TestAccEventGridNamespaceResource_topicSpacesConfig(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_eventgrid_namespace", "test") + r := EventGridNamespaceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.topicSpacesConfig(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.topicSpacesConfigUpdated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccEventGridNamespaceResource_inboundIpRules(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_eventgrid_namespace", "test") + r := EventGridNamespaceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.inboundIpRules(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.inboundIpRulesUpdated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccEventGridNamespaceResource_tags(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_eventgrid_namespace", "test") + r := EventGridNamespaceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.tags(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.tagsUpdated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccEventGridNamespaceResource_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_eventgrid_namespace", "test") + r := EventGridNamespaceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.updated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccEventGridNamespaceResource_systemAssignedIdentity(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_eventgrid_namespace", "test") + r := EventGridNamespaceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.systemAssignedIdentity(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccEventGridNamespaceResource_userAssignedIdentity(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_eventgrid_namespace", "test") + r := EventGridNamespaceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.userAssignedIdentity(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func (r EventGridNamespaceResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := namespaces.ParseNamespaceID(state.ID) + if err != nil { + return nil, err + } + + resp, err := clients.EventGrid.NamespacesClient.Get(ctx, *id) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", *id, err) + } + + return pointer.To(resp.Model != nil), nil +} + +func (r EventGridNamespaceResource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) requiresImport(data acceptance.TestData) string { + template := EventGridNamespaceResource{}.basic(data) + return fmt.Sprintf(` +%s + +resource "azurerm_eventgrid_namespace" "import" { + name = azurerm_eventgrid_namespace.test.name + location = azurerm_eventgrid_namespace.test.location + resource_group_name = azurerm_eventgrid_namespace.test.resource_group_name + sku = azurerm_eventgrid_namespace.test.sku +} +`, template) +} + +func (r EventGridNamespaceResource) updated(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + capacity = 2 + public_network_access = "Disabled" + sku = "Standard" +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) topicSpacesConfig(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_topic" "test" { + name = "acctesteg-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + input_schema = "CloudEventSchemaV1_0" +} + + +resource "azurerm_user_assigned_identity" "test" { + name = "acctestUAI-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location +} + + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + capacity = 2 + public_network_access = "Disabled" + sku = "Standard" + + topic_spaces_configuration { + alternative_authentication_name_source = ["ClientCertificateEmail", "ClientCertificateSubject"] + maximum_client_sessions_per_authentication_name = 2 + maximum_session_expiry_in_hours = 2 + route_topic_id = azurerm_eventgrid_topic.test.id + + dynamic_routing_enrichment { + key = "hello" + value = "$${client.authenticationName}" + } + + static_routing_enrichment { + key = "hello2" + value = "world" + } + } + + identity { + type = "UserAssigned" + identity_ids = [ + azurerm_user_assigned_identity.test.id + ] + } +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) inboundIpRules(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_topic" "test" { + name = "acctesteg-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + public_network_access = "Enabled" + + inbound_ip_rule { + ip_mask = "10.0.0.0/16" + action = "Allow" + } + + inbound_ip_rule { + ip_mask = "10.1.0.0/16" + action = "Allow" + } +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) inboundIpRulesUpdated(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_topic" "test" { + name = "acctesteg-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + public_network_access = "Enabled" + + inbound_ip_rule { + ip_mask = "10.2.0.0/16" + action = "Allow" + } +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) tags(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + tags = { + "foo" = "bar" + } +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) tagsUpdated(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + tags = { + "hello" = "world" + } +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) topicSpacesConfigUpdated(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_topic" "test" { + name = "acctesteg-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + input_schema = "CloudEventSchemaV1_0" +} + +resource "azurerm_user_assigned_identity" "test" { + name = "acctestUAI-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + capacity = 5 + public_network_access = "Disabled" + sku = "Standard" + + topic_spaces_configuration { + alternative_authentication_name_source = ["ClientCertificateUri", "ClientCertificateIp"] + maximum_client_sessions_per_authentication_name = 3 + maximum_session_expiry_in_hours = 3 + route_topic_id = azurerm_eventgrid_topic.test.id + + dynamic_routing_enrichment { + key = "hello3" + value = "$${client.authenticationName}" + } + + static_routing_enrichment { + key = "hello4" + value = "world2" + } + } + + identity { + type = "UserAssigned" + identity_ids = [ + azurerm_user_assigned_identity.test.id + ] + } +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) systemAssignedIdentity(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + identity { + type = "SystemAssigned" + } +} +`, data.RandomInteger, data.Locations.Primary) +} + +func (r EventGridNamespaceResource) userAssignedIdentity(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_user_assigned_identity" "test" { + name = "acctesteg-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location +} + +resource "azurerm_eventgrid_namespace" "test" { + name = "acctest-egn-%[1]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + identity { + type = "UserAssigned" + identity_ids = [ + azurerm_user_assigned_identity.test.id + ] + } +} +`, data.RandomInteger, data.Locations.Primary) +} diff --git a/internal/services/eventgrid/registration.go b/internal/services/eventgrid/registration.go index 1d4c6f794de5..39c1d9ed57d0 100644 --- a/internal/services/eventgrid/registration.go +++ b/internal/services/eventgrid/registration.go @@ -10,7 +10,7 @@ import ( type Registration struct{} -var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +var _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} func (r Registration) AssociatedGitHubLabel() string { return "service/event-grid" @@ -28,6 +28,16 @@ func (r Registration) WebsiteCategories() []string { } } +func (r Registration) DataSources() []sdk.DataSource { + return []sdk.DataSource{} +} + +func (r Registration) Resources() []sdk.Resource { + return []sdk.Resource{ + EventGridNamespaceResource{}, + } +} + // SupportedDataSources returns the supported Data Sources supported by this Service func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource { return map[string]*pluginsdk.Resource{ diff --git a/internal/services/eventhub/eventhub_consumer_group_resource.go b/internal/services/eventhub/eventhub_consumer_group_resource.go index 0b06448879a3..9f9a2f384e0f 100644 --- a/internal/services/eventhub/eventhub_consumer_group_resource.go +++ b/internal/services/eventhub/eventhub_consumer_group_resource.go @@ -8,6 +8,7 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups" @@ -176,7 +177,7 @@ func (r ConsumerGroupResource) Read() sdk.ResourceFunc { } if model := resp.Model; model != nil && model.Properties != nil { - state.UserMetadata = utils.NormalizeNilableString(model.Properties.UserMetadata) + state.UserMetadata = pointer.From(model.Properties.UserMetadata) } return metadata.Encode(&state) diff --git a/internal/services/eventhub/eventhub_namespace_data_source.go b/internal/services/eventhub/eventhub_namespace_data_source.go index 2c966440cf88..2f42ec26e3e1 100644 --- a/internal/services/eventhub/eventhub_namespace_data_source.go +++ b/internal/services/eventhub/eventhub_namespace_data_source.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces" "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" ) @@ -108,14 +107,6 @@ func EventHubNamespaceDataSource() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["zone_redundant"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - Deprecated: "The `zone_redundant` property has been deprecated and will be removed in v4.0 of the provider.", - } - } - return resource } @@ -153,10 +144,6 @@ func EventHubNamespaceDataSourceRead(d *pluginsdk.ResourceData, meta interface{} d.Set("kafka_enabled", props.KafkaEnabled) d.Set("maximum_throughput_units", int(*props.MaximumThroughputUnits)) d.Set("dedicated_cluster_id", props.ClusterArmId) - - if !features.FourPointOhBeta() { - d.Set("zone_redundant", props.ZoneRedundant) - } } if err := tags.FlattenAndSet(d, model.Tags); err != nil { diff --git a/internal/services/eventhub/eventhub_namespace_resource.go b/internal/services/eventhub/eventhub_namespace_resource.go index da4956270e16..5a21a2ff507f 100644 --- a/internal/services/eventhub/eventhub_namespace_resource.go +++ b/internal/services/eventhub/eventhub_namespace_resource.go @@ -205,8 +205,6 @@ func resourceEventHubNamespace() *pluginsdk.Resource { Optional: true, Default: string(namespaces.TlsVersionOnePointTwo), ValidateFunc: validation.StringInSlice([]string{ - string(namespaces.TlsVersionOnePointZero), - string(namespaces.TlsVersionOnePointOne), string(namespaces.TlsVersionOnePointTwo), }, false), }, @@ -271,19 +269,11 @@ func resourceEventHubNamespace() *pluginsdk.Resource { ), } - if !features.FourPointOhBeta() { - resource.Schema["zone_redundant"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - Deprecated: "The `zone_redundant` property has been deprecated and will be removed in v4.0 of the provider.", - ForceNew: true, - } - + if !features.FivePointOhBeta() { resource.Schema["minimum_tls_version"] = &pluginsdk.Schema{ Type: pluginsdk.TypeString, Optional: true, - Computed: true, + Default: string(namespaces.TlsVersionOnePointTwo), ValidateFunc: validation.StringInSlice([]string{ string(namespaces.TlsVersionOnePointZero), string(namespaces.TlsVersionOnePointOne), @@ -291,7 +281,6 @@ func resourceEventHubNamespace() *pluginsdk.Resource { }, false), } } - return resource } @@ -357,13 +346,6 @@ func resourceEventHubNamespaceCreate(d *pluginsdk.ResourceData, meta interface{} Tags: tags.Expand(t), } - if !features.FourPointOhBeta() { - // for premium namespace, the zone_redundant is computed based on the region, user's input will be overridden - if sku != string(namespaces.SkuNamePremium) { - parameters.Properties.ZoneRedundant = utils.Bool(d.Get("zone_redundant").(bool)) - } - } - if v := d.Get("dedicated_cluster_id").(string); v != "" { parameters.Properties.ClusterArmId = utils.String(v) } @@ -460,10 +442,6 @@ func resourceEventHubNamespaceUpdate(d *pluginsdk.ResourceData, meta interface{} Tags: tags.Expand(t), } - if !features.FourPointOhBeta() { - parameters.Properties.ZoneRedundant = utils.Bool(d.Get("zone_redundant").(bool)) - } - if v := d.Get("dedicated_cluster_id").(string); v != "" { parameters.Properties.ClusterArmId = utils.String(v) } @@ -574,10 +552,6 @@ func resourceEventHubNamespaceRead(d *pluginsdk.ResourceData, meta interface{}) d.Set("maximum_throughput_units", int(*props.MaximumThroughputUnits)) d.Set("dedicated_cluster_id", props.ClusterArmId) - if !features.FourPointOhBeta() { - d.Set("zone_redundant", props.ZoneRedundant) - } - localAuthDisabled := false if props.DisableLocalAuth != nil { localAuthDisabled = *props.DisableLocalAuth diff --git a/internal/services/eventhub/eventhub_namespace_resource_test.go b/internal/services/eventhub/eventhub_namespace_resource_test.go index 39ae90ed1bd7..ed8406d9c91f 100644 --- a/internal/services/eventhub/eventhub_namespace_resource_test.go +++ b/internal/services/eventhub/eventhub_namespace_resource_test.go @@ -391,6 +391,7 @@ func TestAccEventHubNamespace_BasicWithSkuUpdate(t *testing.T) { check.That(data.ResourceName).Key("sku").HasValue("Basic"), ), }, + data.ImportStep(), { Config: r.standard(data), Check: acceptance.ComposeTestCheckFunc( @@ -399,14 +400,7 @@ func TestAccEventHubNamespace_BasicWithSkuUpdate(t *testing.T) { check.That(data.ResourceName).Key("capacity").HasValue("2"), ), }, - { - Config: r.premium(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku").HasValue("Premium"), - check.That(data.ResourceName).Key("capacity").HasValue("1"), - ), - }, + data.ImportStep(), }) } @@ -482,6 +476,9 @@ func TestAccEventHubNamespace_publicNetworkAccessUpdate(t *testing.T) { } func TestAccEventHubNamespace_minimumTLSUpdate(t *testing.T) { + if features.FivePointOhBeta() { + t.Skipf("The `minimum_tls_version` has only one possible value `1.2`, we can not update it.") + } data := acceptance.BuildTestData(t, "azurerm_eventhub_namespace", "test") r := EventHubNamespaceResource{} @@ -582,12 +579,12 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-ehn-%[1]d-1" + name = "acctestRG-eh-%[1]d" location = "%[2]s" } resource "azurerm_resource_group" "test2" { - name = "acctestRG-ehn-%[1]d" + name = "acctestRG-eh-%[1]d-2" location = "%[3]s" } @@ -658,49 +655,6 @@ resource "azurerm_eventhub_namespace" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } -func (EventHubNamespaceResource) premium(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-eh-%d" - location = "%s" -} - -resource "azurerm_eventhub_namespace" "test" { - name = "acctesteventhubnamespace-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku = "Premium" - capacity = "1" - zone_redundant = true -} - `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) - } - - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-eh-%d" - location = "%s" -} - -resource "azurerm_eventhub_namespace" "test" { - name = "acctesteventhubnamespace-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku = "Premium" - capacity = "1" -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - func (EventHubNamespaceResource) standardWithIdentity(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -866,7 +820,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" + name = "acctestRG-eh-%[1]d" location = "%[2]s" } @@ -937,7 +891,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -960,7 +914,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -981,7 +935,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -1010,7 +964,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -1036,7 +990,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -1057,7 +1011,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -1078,7 +1032,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -1099,7 +1053,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -1120,7 +1074,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } @@ -1143,7 +1097,7 @@ provider "azurerm" { } resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" + name = "acctestRG-eh-%d" location = "%s" } diff --git a/internal/services/eventhub/eventhub_resource.go b/internal/services/eventhub/eventhub_resource.go index b3cb1e5f8465..9b94ba141f92 100644 --- a/internal/services/eventhub/eventhub_resource.go +++ b/internal/services/eventhub/eventhub_resource.go @@ -10,11 +10,12 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourcegroups" "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs" "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/eventhub/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -25,7 +26,7 @@ import ( var eventHubResourceName = "azurerm_eventhub" func resourceEventHub() *pluginsdk.Resource { - return &pluginsdk.Resource{ + r := &pluginsdk.Resource{ Create: resourceEventHubCreate, Read: resourceEventHubRead, Update: resourceEventHubUpdate, @@ -51,15 +52,13 @@ func resourceEventHub() *pluginsdk.Resource { ValidateFunc: validate.ValidateEventHubName(), }, - "namespace_name": { + "namespace_id": { Type: pluginsdk.TypeString, Required: true, ForceNew: true, - ValidateFunc: validate.ValidateEventHubNamespaceName(), + ValidateFunc: namespaces.ValidateNamespaceID, }, - "resource_group_name": commonschema.ResourceGroupName(), - "partition_count": { Type: pluginsdk.TypeInt, Required: true, @@ -163,6 +162,36 @@ func resourceEventHub() *pluginsdk.Resource { }, }, } + + if !features.FivePointOhBeta() { + r.Schema["namespace_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ExactlyOneOf: []string{"namespace_id", "namespace_name"}, + ValidateFunc: namespaces.ValidateNamespaceID, + } + + r.Schema["namespace_name"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: validate.ValidateEventHubNamespaceName(), + ExactlyOneOf: []string{"namespace_id", "namespace_name"}, + Deprecated: "`namespace_name` has been deprecated in favour of `namespace_id` and will be removed in v5.0 of the AzureRM Provider", + } + + r.Schema["resource_group_name"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ExactlyOneOf: []string{"namespace_id", "resource_group_name"}, + ValidateFunc: resourcegroups.ValidateName, + Deprecated: "`resource_group_name` has been deprecated in favour of `namespace_id` and will be removed in v5.0 of the AzureRM Provider", + } + } + + return r } func resourceEventHubCreate(d *pluginsdk.ResourceData, meta interface{}) error { @@ -173,7 +202,23 @@ func resourceEventHubCreate(d *pluginsdk.ResourceData, meta interface{}) error { log.Printf("[INFO] preparing arguments for Azure ARM EventHub creation.") - id := eventhubs.NewEventhubID(subscriptionId, d.Get("resource_group_name").(string), d.Get("namespace_name").(string), d.Get("name").(string)) + namespaceName := "" + resourceGroupName := "" + if v := d.Get("namespace_id").(string); v != "" { + namespaceId, err := namespaces.ParseNamespaceID(v) + if err != nil { + return err + } + namespaceName = namespaceId.NamespaceName + resourceGroupName = namespaceId.ResourceGroupName + } + + if !features.FivePointOhBeta() && namespaceName == "" { + namespaceName = d.Get("namespace_name").(string) + resourceGroupName = d.Get("resource_group_name").(string) + } + + id := eventhubs.NewEventhubID(subscriptionId, resourceGroupName, namespaceName, d.Get("name").(string)) if d.IsNewResource() { existing, err := client.Get(ctx, id) @@ -218,10 +263,12 @@ func resourceEventHubUpdate(d *pluginsdk.ResourceData, meta interface{}) error { log.Printf("[INFO] preparing arguments for Azure ARM EventHub update.") - id := eventhubs.NewEventhubID(subscriptionId, d.Get("resource_group_name").(string), d.Get("namespace_name").(string), d.Get("name").(string)) + id, err := eventhubs.ParseEventhubID(d.Id()) + if err != nil { + return err + } if d.HasChange("partition_count") { - o, n := d.GetChange("partition_count") if o.(int) > n.(int) { return fmt.Errorf("`partition_count` cannot be decreased") @@ -254,7 +301,7 @@ func resourceEventHubUpdate(d *pluginsdk.ResourceData, meta interface{}) error { parameters.Properties.CaptureDescription = expandEventHubCaptureDescription(d) } - if _, err := client.CreateOrUpdate(ctx, id, parameters); err != nil { + if _, err := client.CreateOrUpdate(ctx, *id, parameters); err != nil { return err } @@ -283,8 +330,14 @@ func resourceEventHubRead(d *pluginsdk.ResourceData, meta interface{}) error { } d.Set("name", id.EventhubName) - d.Set("namespace_name", id.NamespaceName) - d.Set("resource_group_name", id.ResourceGroupName) + + if !features.FivePointOhBeta() { + d.Set("namespace_name", id.NamespaceName) + d.Set("resource_group_name", id.ResourceGroupName) + } + + namespaceId := namespaces.NewNamespaceID(id.SubscriptionId, id.ResourceGroupName, id.NamespaceName) + d.Set("namespace_id", namespaceId.ID()) if model := resp.Model; model != nil { if props := model.Properties; props != nil { diff --git a/internal/services/eventhub/eventhub_resource_test.go b/internal/services/eventhub/eventhub_resource_test.go index 46c20c94aa7a..c22c3800b462 100644 --- a/internal/services/eventhub/eventhub_resource_test.go +++ b/internal/services/eventhub/eventhub_resource_test.go @@ -13,6 +13,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/eventhub/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" @@ -360,7 +361,8 @@ func (EventHubResource) Exists(ctx context.Context, clients *clients.Client, sta } func (EventHubResource) basic(data acceptance.TestData, partitionCount int) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` provider "azurerm" { features {} } @@ -384,6 +386,31 @@ resource "azurerm_eventhub" "test" { partition_count = %d message_retention = 1 } +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, partitionCount) + } + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-eventhub-%d" + location = "%s" +} + +resource "azurerm_eventhub_namespace" "test" { + name = "acctesteventhubnamespace-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "Basic" +} + +resource "azurerm_eventhub" "test" { + name = "acctesteventhub-%d" + namespace_id = azurerm_eventhub_namespace.test.id + partition_count = %d + message_retention = 1 +} `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, partitionCount) } @@ -393,11 +420,10 @@ func (EventHubResource) requiresImport(data acceptance.TestData) string { %s resource "azurerm_eventhub" "import" { - name = azurerm_eventhub.test.name - namespace_name = azurerm_eventhub.test.namespace_name - resource_group_name = azurerm_eventhub.test.resource_group_name - partition_count = azurerm_eventhub.test.partition_count - message_retention = azurerm_eventhub.test.message_retention + name = azurerm_eventhub.test.name + namespace_id = azurerm_eventhub.test.namespace_id + partition_count = azurerm_eventhub.test.partition_count + message_retention = azurerm_eventhub.test.message_retention } `, template) } @@ -421,11 +447,10 @@ resource "azurerm_eventhub_namespace" "test" { } resource "azurerm_eventhub" "test" { - name = "acctesteventhub-%d" - namespace_name = azurerm_eventhub_namespace.test.name - resource_group_name = azurerm_resource_group.test.name - partition_count = 10 - message_retention = 1 + name = "acctesteventhub-%d" + namespace_id = azurerm_eventhub_namespace.test.id + partition_count = 10 + message_retention = 1 } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) } @@ -449,11 +474,10 @@ resource "azurerm_eventhub_namespace" "test" { } resource "azurerm_eventhub" "test" { - name = "acctest-EH-%d" - namespace_name = azurerm_eventhub_namespace.test.name - resource_group_name = azurerm_resource_group.test.name - partition_count = 2 - message_retention = 7 + name = "acctest-EH-%d" + namespace_id = azurerm_eventhub_namespace.test.id + partition_count = 2 + message_retention = 7 } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) } @@ -492,11 +516,10 @@ resource "azurerm_eventhub_namespace" "test" { } resource "azurerm_eventhub" "test" { - name = "acctest-EH%d" - namespace_name = azurerm_eventhub_namespace.test.name - resource_group_name = azurerm_resource_group.test.name - partition_count = 2 - message_retention = 7 + name = "acctest-EH%d" + namespace_id = azurerm_eventhub_namespace.test.id + partition_count = 2 + message_retention = 7 capture_description { enabled = %s @@ -535,11 +558,10 @@ resource "azurerm_eventhub_namespace" "test" { } resource "azurerm_eventhub" "test" { - name = "acctest-EH-%d" - namespace_name = azurerm_eventhub_namespace.test.name - resource_group_name = azurerm_resource_group.test.name - partition_count = 2 - message_retention = 5 + name = "acctest-EH-%d" + namespace_id = azurerm_eventhub_namespace.test.id + partition_count = 2 + message_retention = 5 } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) } @@ -563,12 +585,11 @@ resource "azurerm_eventhub_namespace" "test" { } resource "azurerm_eventhub" "test" { - name = "acctesteventhub-%d" - namespace_name = azurerm_eventhub_namespace.test.name - resource_group_name = azurerm_resource_group.test.name - partition_count = 5 - message_retention = 1 - status = "%s" + name = "acctesteventhub-%d" + namespace_id = azurerm_eventhub_namespace.test.id + partition_count = 5 + message_retention = 1 + status = "%s" } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, status) } diff --git a/internal/services/eventhub/validate/eventhub_message_retention.go b/internal/services/eventhub/validate/eventhub_message_retention.go index 3945dcc7cb73..23a22493ec3e 100644 --- a/internal/services/eventhub/validate/eventhub_message_retention.go +++ b/internal/services/eventhub/validate/eventhub_message_retention.go @@ -3,14 +3,14 @@ package validate -import "fmt" +import "errors" -func ValidateEventHubMessageRetentionCount(v interface{}, _ string) (warnings []string, errors []error) { +func ValidateEventHubMessageRetentionCount(v interface{}, _ string) (warnings []string, errs []error) { value := v.(int) if !(90 >= value && value >= 1) { - errors = append(errors, fmt.Errorf("EventHub Retention Count has to be between 1 and 7 or between 1 and 90 if using a dedicated Event Hubs Cluster")) + errs = append(errs, errors.New("EventHub Retention Count has to be between 1 and 7 or between 1 and 90 if using a dedicated Event Hubs Cluster")) } - return warnings, errors + return warnings, errs } diff --git a/internal/services/eventhub/validate/eventhub_partition.go b/internal/services/eventhub/validate/eventhub_partition.go index d6768d191e84..50f129470bcd 100644 --- a/internal/services/eventhub/validate/eventhub_partition.go +++ b/internal/services/eventhub/validate/eventhub_partition.go @@ -3,14 +3,14 @@ package validate -import "fmt" +import "errors" -func ValidateEventHubPartitionCount(v interface{}, _ string) (warnings []string, errors []error) { +func ValidateEventHubPartitionCount(v interface{}, _ string) (warnings []string, errs []error) { value := v.(int) if !(1024 >= value && value >= 1) { - errors = append(errors, fmt.Errorf("EventHub Partition Count has to be between 1 and 32 or between 1 and 1024 if using a dedicated Event Hubs Cluster")) + errs = append(errs, errors.New("EventHub Partition Count has to be between 1 and 32 or between 1 and 1024 if using a dedicated Event Hubs Cluster")) } - return warnings, errors + return warnings, errs } diff --git a/internal/services/firewall/firewall_application_rule_collection_resource.go b/internal/services/firewall/firewall_application_rule_collection_resource.go index e4f77f7de246..03e7228d40b1 100644 --- a/internal/services/firewall/firewall_application_rule_collection_resource.go +++ b/internal/services/firewall/firewall_application_rule_collection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -230,7 +230,6 @@ func resourceFirewallApplicationRuleCollectionCreateUpdate(d *pluginsdk.Resource if read.Model == nil { return fmt.Errorf("retrieving %s: `model` was nil", firewallId) - } var collectionID string diff --git a/internal/services/firewall/firewall_application_rule_collection_resource_test.go b/internal/services/firewall/firewall_application_rule_collection_resource_test.go index 8ebb2fc95ddf..613488b57ce3 100644 --- a/internal/services/firewall/firewall_application_rule_collection_resource_test.go +++ b/internal/services/firewall/firewall_application_rule_collection_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_data_source.go b/internal/services/firewall/firewall_data_source.go index 443ea723881c..602b7e580e7f 100644 --- a/internal/services/firewall/firewall_data_source.go +++ b/internal/services/firewall/firewall_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/firewall/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/firewall/firewall_nat_rule_collection_resource.go b/internal/services/firewall/firewall_nat_rule_collection_resource.go index 40963c1b10ab..bd4bea91ebf9 100644 --- a/internal/services/firewall/firewall_nat_rule_collection_resource.go +++ b/internal/services/firewall/firewall_nat_rule_collection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -228,7 +228,6 @@ func resourceFirewallNatRuleCollectionCreateUpdate(d *pluginsdk.ResourceData, me if read.Model == nil { return fmt.Errorf("retrieving %s: `model` was nil", firewallId) - } var collectionID string diff --git a/internal/services/firewall/firewall_nat_rule_collection_resource_test.go b/internal/services/firewall/firewall_nat_rule_collection_resource_test.go index 8c73f2287655..654f579c07e3 100644 --- a/internal/services/firewall/firewall_nat_rule_collection_resource_test.go +++ b/internal/services/firewall/firewall_nat_rule_collection_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_network_rule_collection_resource.go b/internal/services/firewall/firewall_network_rule_collection_resource.go index 2f1f629aaeb8..c665f733e039 100644 --- a/internal/services/firewall/firewall_network_rule_collection_resource.go +++ b/internal/services/firewall/firewall_network_rule_collection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -231,7 +231,6 @@ func resourceFirewallNetworkRuleCollectionCreateUpdate(d *pluginsdk.ResourceData if read.Model == nil { return fmt.Errorf("retrieving %s: `model` was nil", firewallId) - } var collectionID string diff --git a/internal/services/firewall/firewall_network_rule_collection_resource_test.go b/internal/services/firewall/firewall_network_rule_collection_resource_test.go index 19a0906b9ccd..bc7d8cfa62c0 100644 --- a/internal/services/firewall/firewall_network_rule_collection_resource_test.go +++ b/internal/services/firewall/firewall_network_rule_collection_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_policy_data_source.go b/internal/services/firewall/firewall_policy_data_source.go index 5214898f0bbd..db3adcfd7aed 100644 --- a/internal/services/firewall/firewall_policy_data_source.go +++ b/internal/services/firewall/firewall_policy_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/firewall/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/firewall/firewall_policy_resource.go b/internal/services/firewall/firewall_policy_resource.go index ff4ace2126f6..ea0a463285e6 100644 --- a/internal/services/firewall/firewall_policy_resource.go +++ b/internal/services/firewall/firewall_policy_resource.go @@ -14,12 +14,11 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/firewall/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -295,7 +294,7 @@ func expandFirewallPolicyDNSSetting(input []interface{}) *firewallpolicies.DnsSe raw := input[0].(map[string]interface{}) output := &firewallpolicies.DnsSettings{ Servers: utils.ExpandStringSlice(raw["servers"].([]interface{})), - EnableProxy: utils.Bool(raw["proxy_enabled"].(bool)), + EnableProxy: pointer.To(raw["proxy_enabled"].(bool)), } return output @@ -308,22 +307,23 @@ func expandFirewallPolicyIntrusionDetection(input []interface{}) *firewallpolici raw := input[0].(map[string]interface{}) - var signatureOverrides []firewallpolicies.FirewallPolicyIntrusionDetectionSignatureSpecification - for _, v := range raw["signature_overrides"].([]interface{}) { + signatureOverridesRaw := raw["signature_overrides"].([]interface{}) + signatureOverrides := make([]firewallpolicies.FirewallPolicyIntrusionDetectionSignatureSpecification, 0, len(signatureOverridesRaw)) + for _, v := range signatureOverridesRaw { overrides := v.(map[string]interface{}) signatureOverrides = append(signatureOverrides, firewallpolicies.FirewallPolicyIntrusionDetectionSignatureSpecification{ - Id: utils.String(overrides["id"].(string)), + Id: pointer.To(overrides["id"].(string)), Mode: pointer.To(firewallpolicies.FirewallPolicyIntrusionDetectionStateType(overrides["state"].(string))), }) } - var trafficBypass []firewallpolicies.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications - - for _, v := range raw["traffic_bypass"].([]interface{}) { + trafficBypassRaw := raw["traffic_bypass"].([]interface{}) + trafficBypass := make([]firewallpolicies.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications, 0, len(trafficBypassRaw)) + for _, v := range trafficBypassRaw { bypass := v.(map[string]interface{}) trafficBypass = append(trafficBypass, firewallpolicies.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications{ - Name: utils.String(bypass["name"].(string)), - Description: utils.String(bypass["description"].(string)), + Name: pointer.To(bypass["name"].(string)), + Description: pointer.To(bypass["description"].(string)), Protocol: pointer.To(firewallpolicies.FirewallPolicyIntrusionDetectionProtocol(bypass["protocol"].(string))), SourceAddresses: utils.ExpandStringSlice(bypass["source_addresses"].(*pluginsdk.Set).List()), DestinationAddresses: utils.ExpandStringSlice(bypass["destination_addresses"].(*pluginsdk.Set).List()), @@ -333,8 +333,9 @@ func expandFirewallPolicyIntrusionDetection(input []interface{}) *firewallpolici }) } - var privateRanges []string - for _, v := range raw["private_ranges"].([]interface{}) { + privateRangesRaw := raw["private_ranges"].([]interface{}) + privateRanges := make([]string, 0, len(privateRangesRaw)) + for _, v := range privateRangesRaw { privateRanges = append(privateRanges, v.(string)) } @@ -410,7 +411,7 @@ func expandFirewallPolicyLogAnalyticsResources(defaultWorkspaceId string, worksp }, } - var workspaceList []firewallpolicies.FirewallPolicyLogAnalyticsWorkspace + workspaceList := make([]firewallpolicies.FirewallPolicyLogAnalyticsWorkspace, 0, len(workspaces)) for _, workspace := range workspaces { workspace := workspace.(map[string]interface{}) workspaceList = append(workspaceList, firewallpolicies.FirewallPolicyLogAnalyticsWorkspace{ @@ -454,7 +455,8 @@ func flattenFirewallPolicyDNSSetting(input *firewallpolicies.DnsSettings) []inte map[string]interface{}{ "servers": utils.FlattenStringSlice(input.Servers), "proxy_enabled": proxyEnabled, - }} + }, + } } func flattenFirewallPolicyIntrusionDetection(input *firewallpolicies.FirewallPolicyIntrusionDetection) []interface{} { @@ -989,19 +991,5 @@ func resourceFirewallPolicySchema() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } - if !features.FourPointOhBeta() { - resource["sku"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - string(firewallpolicies.FirewallPolicySkuTierPremium), - string(firewallpolicies.FirewallPolicySkuTierStandard), - string(firewallpolicies.FirewallPolicySkuTierBasic), - }, false), - } - } - return resource } diff --git a/internal/services/firewall/firewall_policy_resource_test.go b/internal/services/firewall/firewall_policy_resource_test.go index c2856ddd1d53..705cab2f6ad5 100644 --- a/internal/services/firewall/firewall_policy_resource_test.go +++ b/internal/services/firewall/firewall_policy_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_policy_rule_collection_group_resource.go b/internal/services/firewall/firewall_policy_rule_collection_group_resource.go index 76ab1e18fb52..3678e60cb7da 100644 --- a/internal/services/firewall/firewall_policy_rule_collection_group_resource.go +++ b/internal/services/firewall/firewall_policy_rule_collection_group_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_policy_rule_collection_group_resource_test.go b/internal/services/firewall/firewall_policy_rule_collection_group_resource_test.go index 00b680c02f91..b0eba00e190f 100644 --- a/internal/services/firewall/firewall_policy_rule_collection_group_resource_test.go +++ b/internal/services/firewall/firewall_policy_rule_collection_group_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/firewall/firewall_resource.go b/internal/services/firewall/firewall_resource.go index 10c0f690c6eb..c044e9784adc 100644 --- a/internal/services/firewall/firewall_resource.go +++ b/internal/services/firewall/firewall_resource.go @@ -17,8 +17,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" diff --git a/internal/services/firewall/firewall_resource_test.go b/internal/services/firewall/firewall_resource_test.go index 2bb466a17fb3..c6e3e632216f 100644 --- a/internal/services/firewall/firewall_resource_test.go +++ b/internal/services/firewall/firewall_resource_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -20,8 +20,10 @@ import ( type FirewallResource struct{} -const premium = "Premium" -const standard = "Standard" +const ( + premium = "Premium" + standard = "Standard" +) func TestAccFirewall_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_firewall", "test") @@ -508,11 +510,9 @@ func (FirewallResource) enableDNS(data acceptance.TestData, enableProxy bool, dn } dnsServersStr = fmt.Sprintf("dns_servers = [%s]", strings.Join(servers, ", ")) } - enableProxyStr := "" + enableProxyStr := "dns_proxy_enabled = false" if enableProxy { enableProxyStr = "dns_proxy_enabled = true" - } else { - enableProxyStr = "dns_proxy_enabled = false" } return fmt.Sprintf(` diff --git a/internal/services/firewall/parse/firewall_application_rule_collection.go b/internal/services/firewall/parse/firewall_application_rule_collection.go index 777fed68b376..293ccdea0a28 100644 --- a/internal/services/firewall/parse/firewall_application_rule_collection.go +++ b/internal/services/firewall/parse/firewall_application_rule_collection.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FirewallApplicationRuleCollectionID(input string) (*FirewallApplicationRule } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.AzureFirewallName, err = id.PopSegment("azureFirewalls"); err != nil { diff --git a/internal/services/firewall/parse/firewall_application_rule_collection_test.go b/internal/services/firewall/parse/firewall_application_rule_collection_test.go index ee4620583806..248022f6d93d 100644 --- a/internal/services/firewall/parse/firewall_application_rule_collection_test.go +++ b/internal/services/firewall/parse/firewall_application_rule_collection_test.go @@ -27,7 +27,6 @@ func TestFirewallApplicationRuleCollectionID(t *testing.T) { Error bool Expected *FirewallApplicationRuleCollectionId }{ - { // empty Input: "", diff --git a/internal/services/firewall/parse/firewall_nat_rule_collection.go b/internal/services/firewall/parse/firewall_nat_rule_collection.go index 0407393aca45..5f1da29cc8a6 100644 --- a/internal/services/firewall/parse/firewall_nat_rule_collection.go +++ b/internal/services/firewall/parse/firewall_nat_rule_collection.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FirewallNatRuleCollectionID(input string) (*FirewallNatRuleCollectionId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.AzureFirewallName, err = id.PopSegment("azureFirewalls"); err != nil { diff --git a/internal/services/firewall/parse/firewall_nat_rule_collection_test.go b/internal/services/firewall/parse/firewall_nat_rule_collection_test.go index 56d593951a83..16eec1879f9c 100644 --- a/internal/services/firewall/parse/firewall_nat_rule_collection_test.go +++ b/internal/services/firewall/parse/firewall_nat_rule_collection_test.go @@ -27,7 +27,6 @@ func TestFirewallNatRuleCollectionID(t *testing.T) { Error bool Expected *FirewallNatRuleCollectionId }{ - { // empty Input: "", diff --git a/internal/services/firewall/parse/firewall_network_rule_collection.go b/internal/services/firewall/parse/firewall_network_rule_collection.go index ea2e2472af95..26609e1b7d9c 100644 --- a/internal/services/firewall/parse/firewall_network_rule_collection.go +++ b/internal/services/firewall/parse/firewall_network_rule_collection.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FirewallNetworkRuleCollectionID(input string) (*FirewallNetworkRuleCollecti } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.AzureFirewallName, err = id.PopSegment("azureFirewalls"); err != nil { diff --git a/internal/services/firewall/parse/firewall_network_rule_collection_test.go b/internal/services/firewall/parse/firewall_network_rule_collection_test.go index 56352374154d..8ff96ab04e0f 100644 --- a/internal/services/firewall/parse/firewall_network_rule_collection_test.go +++ b/internal/services/firewall/parse/firewall_network_rule_collection_test.go @@ -27,7 +27,6 @@ func TestFirewallNetworkRuleCollectionID(t *testing.T) { Error bool Expected *FirewallNetworkRuleCollectionId }{ - { // empty Input: "", diff --git a/internal/services/firewall/subresource.go b/internal/services/firewall/subresource.go index 6ce8bdd6c419..cce5e840be95 100644 --- a/internal/services/firewall/subresource.go +++ b/internal/services/firewall/subresource.go @@ -4,7 +4,7 @@ package firewall import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" ) func flattenNetworkSubResourceID(input *[]firewallpolicies.SubResource) []interface{} { diff --git a/internal/services/firewall/validate/firewall_application_rule_collection_id_test.go b/internal/services/firewall/validate/firewall_application_rule_collection_id_test.go index 778943b93f2a..3a69c359072c 100644 --- a/internal/services/firewall/validate/firewall_application_rule_collection_id_test.go +++ b/internal/services/firewall/validate/firewall_application_rule_collection_id_test.go @@ -12,7 +12,6 @@ func TestFirewallApplicationRuleCollectionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/firewall/validate/firewall_nat_rule_collection_id_test.go b/internal/services/firewall/validate/firewall_nat_rule_collection_id_test.go index 670311cbe1e6..41f2d83a27b4 100644 --- a/internal/services/firewall/validate/firewall_nat_rule_collection_id_test.go +++ b/internal/services/firewall/validate/firewall_nat_rule_collection_id_test.go @@ -12,7 +12,6 @@ func TestFirewallNatRuleCollectionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/firewall/validate/firewall_network_rule_collection_id_test.go b/internal/services/firewall/validate/firewall_network_rule_collection_id_test.go index 5b30f9efefa6..f2cf9f7c84a9 100644 --- a/internal/services/firewall/validate/firewall_network_rule_collection_id_test.go +++ b/internal/services/firewall/validate/firewall_network_rule_collection_id_test.go @@ -12,7 +12,6 @@ func TestFirewallNetworkRuleCollectionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/fluidrelay/fluid_relay_servers_resource.go b/internal/services/fluidrelay/fluid_relay_servers_resource.go index 7057d59a428e..a675eb2d4b9d 100644 --- a/internal/services/fluidrelay/fluid_relay_servers_resource.go +++ b/internal/services/fluidrelay/fluid_relay_servers_resource.go @@ -21,7 +21,6 @@ import ( keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type ServerModel struct { @@ -325,8 +324,8 @@ func (s Server) Read() sdk.ResourceFunc { } if model := keys.Model; model != nil { - output.PrimaryKey = utils.NormalizeNilableString(model.Key1) - output.SecondaryKey = utils.NormalizeNilableString(model.Key2) + output.PrimaryKey = pointer.From(model.Key1) + output.SecondaryKey = pointer.From(model.Key2) } return meta.Encode(output) diff --git a/internal/services/fluidrelay/registration.go b/internal/services/fluidrelay/registration.go index d381452fafa9..3589a6d41aa3 100644 --- a/internal/services/fluidrelay/registration.go +++ b/internal/services/fluidrelay/registration.go @@ -31,6 +31,4 @@ func (r Registration) WebsiteCategories() []string { } } -var ( - _ sdk.TypedServiceRegistration = (*Registration)(nil) -) +var _ sdk.TypedServiceRegistration = (*Registration)(nil) diff --git a/internal/services/fluidrelay/validate/server_name.go b/internal/services/fluidrelay/validate/server_name.go index 047c441ea6dc..d33529384137 100644 --- a/internal/services/fluidrelay/validate/server_name.go +++ b/internal/services/fluidrelay/validate/server_name.go @@ -4,21 +4,22 @@ package validate import ( + "errors" "fmt" "regexp" ) var serverNameReg = regexp.MustCompile(`^[-0-9a-zA-Z]{1,50}$`) -func FluidRelayServerName(input interface{}, key string) (warnings []string, errors []error) { +func FluidRelayServerName(input interface{}, key string) (warnings []string, errs []error) { v, ok := input.(string) if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + errs = append(errs, fmt.Errorf("expected %q to be a string", key)) return } // Name should contain only alphanumeric characters and hyphens, up to 50 characters long. if !serverNameReg.MatchString(v) { - errors = append(errors, fmt.Errorf("Name should contain only alphanumeric characters and hyphens, up to 50 characters long.")) + errs = append(errs, errors.New("Name should contain only alphanumeric characters and hyphens, up to 50 characters long.")) } return } diff --git a/internal/services/frontdoor/customizediff.go b/internal/services/frontdoor/customizediff.go index 5cfb9bfcdfde..e42295ec9172 100644 --- a/internal/services/frontdoor/customizediff.go +++ b/internal/services/frontdoor/customizediff.go @@ -5,6 +5,7 @@ package frontdoor import ( "context" + "errors" "fmt" "strings" @@ -34,7 +35,7 @@ func customHttpsSettings(d *pluginsdk.ResourceDiff) error { if len(frontendEndpointCustomHttpsConfig) > 0 { if !customHttpsEnabled { - return fmt.Errorf(`"custom_https_provisioning_enabled" is set to "false". please remove the "custom_https_configuration" block from the configuration file`) + return errors.New(`"custom_https_provisioning_enabled" is set to "false". please remove the "custom_https_configuration" block from the configuration file`) } // Verify frontend endpoints custom https configuration is valid if defined @@ -42,7 +43,7 @@ func customHttpsSettings(d *pluginsdk.ResourceDiff) error { return err } } else if customHttpsEnabled { - return fmt.Errorf(`"custom_https_provisioning_enabled" is set to "true". please add a "custom_https_configuration" block to the configuration file`) + return errors.New(`"custom_https_provisioning_enabled" is set to "true". please add a "custom_https_configuration" block to the configuration file`) } return nil @@ -56,21 +57,21 @@ func verifyCustomHttpsConfiguration(frontendEndpointCustomHttpsConfig []interfac if certificateSource == string(frontdoors.FrontDoorCertificateSourceFrontDoor) { if azureKeyVaultCertificateHasValues(customHttpsConfiguration, true) { - return fmt.Errorf(`a Front Door managed "custom_https_configuration" block does not support the following keys. Please remove the following keys from your configuration file: "azure_key_vault_certificate_secret_name", "azure_key_vault_certificate_secret_version", and "azure_key_vault_certificate_vault_id"`) + return errors.New(`a Front Door managed "custom_https_configuration" block does not support the following keys. Please remove the following keys from your configuration file: "azure_key_vault_certificate_secret_name", "azure_key_vault_certificate_secret_version", and "azure_key_vault_certificate_vault_id"`) } } else { // The latest secret version is no longer valid for key vaults if strings.EqualFold(certificateVersion, "latest") { - return fmt.Errorf(`"azure_key_vault_certificate_secret_version" can not be set to "latest" please remove this attribute from the configuration file. Removing the value has the same functionality as setting it to "latest"`) + return errors.New(`"azure_key_vault_certificate_secret_version" can not be set to "latest" please remove this attribute from the configuration file. Removing the value has the same functionality as setting it to "latest"`) } if !azureKeyVaultCertificateHasValues(customHttpsConfiguration, false) { if certificateVersion == "" { // If using latest, empty string is now equivalent to using the keyword latest - return fmt.Errorf(`a "AzureKeyVault" managed "custom_https_configuration" block must have values in the following fileds: "azure_key_vault_certificate_secret_name" and "azure_key_vault_certificate_vault_id"`) + return errors.New(`a "AzureKeyVault" managed "custom_https_configuration" block must have values in the following fileds: "azure_key_vault_certificate_secret_name" and "azure_key_vault_certificate_vault_id"`) } else { // If using a specific version of the secret - return fmt.Errorf(`a "AzureKeyVault" managed "custom_https_configuration" block must have values in the following fileds: "azure_key_vault_certificate_secret_name", "azure_key_vault_certificate_secret_version", and "azure_key_vault_certificate_vault_id"`) + return errors.New(`a "AzureKeyVault" managed "custom_https_configuration" block must have values in the following fileds: "azure_key_vault_certificate_secret_name", "azure_key_vault_certificate_secret_version", and "azure_key_vault_certificate_vault_id"`) } } } @@ -122,7 +123,7 @@ func frontDoorSettings(d *pluginsdk.ResourceDiff) error { healthProbeSettings := d.Get("backend_pool_health_probe").([]interface{}) if len(configFrontendEndpoints) == 0 { - return fmt.Errorf(`"frontend_endpoint": must have at least one "frontend_endpoint" defined, found 0`) + return errors.New(`"frontend_endpoint": must have at least one "frontend_endpoint" defined, found 0`) } // Loop over all of the Routing Rules and validate that only one type of configuration is defined per Routing Rule diff --git a/internal/services/frontdoor/frontdoor_custom_https_configuration.go b/internal/services/frontdoor/frontdoor_custom_https_configuration.go index 872bb068678a..b4e610b1a36e 100644 --- a/internal/services/frontdoor/frontdoor_custom_https_configuration.go +++ b/internal/services/frontdoor/frontdoor_custom_https_configuration.go @@ -69,7 +69,6 @@ func flattenCustomHttpsConfiguration(properties *frontdoors.FrontendEndpointProp keyVaultCertificateVaultId := "" keyVaultCertificateSecretName := "" keyVaultCertificateSecretVersion := "" - provisioningState := "" provisioningSubstate := "" if config.CertificateSource == frontdoors.FrontDoorCertificateSourceAzureKeyVault { @@ -91,7 +90,7 @@ func flattenCustomHttpsConfiguration(properties *frontdoors.FrontendEndpointProp } if properties.CustomHTTPSProvisioningState != nil && *properties.CustomHTTPSProvisioningState != "" { - provisioningState = string(*properties.CustomHTTPSProvisioningState) + provisioningState := string(*properties.CustomHTTPSProvisioningState) if properties.CustomHTTPSProvisioningState != nil && *properties.CustomHTTPSProvisioningState == frontdoors.CustomHTTPSProvisioningStateEnabled || *properties.CustomHTTPSProvisioningState == frontdoors.CustomHTTPSProvisioningStateEnabling { result.CustomHTTPSProvisioningEnabled = true diff --git a/internal/services/frontdoor/frontdoor_resource.go b/internal/services/frontdoor/frontdoor_resource.go index 35a5a39145b1..79700285a83e 100644 --- a/internal/services/frontdoor/frontdoor_resource.go +++ b/internal/services/frontdoor/frontdoor_resource.go @@ -906,9 +906,8 @@ func flattenExplicitResourceOrder(backendPools, frontendEndpoints, routingRules, func combineBackendPools(allPools []frontdoors.BackendPool, orderedIds []interface{}, frontDoorId frontdoors.FrontDoorId) ([]interface{}, error) { output := make([]interface{}, 0) - found := false - // first find all of the ones in the ordered mapping list and add them in the correct order + // first find all the ones in the ordered mapping list and add them in the correct order for _, v := range orderedIds { for _, backend := range allPools { if strings.EqualFold(v.(string), *backend.Id) { @@ -925,7 +924,7 @@ func combineBackendPools(allPools []frontdoors.BackendPool, orderedIds []interfa // Now check to see if items were added to the resource via the portal and add them to the state file for _, backend := range allPools { - found = false + found := false for _, orderedId := range orderedIds { if strings.EqualFold(orderedId.(string), *backend.Id) { found = true @@ -1111,9 +1110,8 @@ func retrieveFrontEndEndpointInformation(ctx context.Context, client *frontdoors func combineFrontEndEndpoints(allEndpoints []frontdoors.FrontendEndpoint, orderedIds []interface{}, frontDoorId frontdoors.FrontDoorId) ([]interface{}, error) { output := make([]interface{}, 0) - found := false - // first find all of the ones in the ordered mapping list and add them in the correct order + // first find all the ones in the ordered mapping list and add them in the correct order for _, v := range orderedIds { for _, frontendEndpoint := range allEndpoints { if strings.EqualFold(v.(string), *frontendEndpoint.Id) { @@ -1130,7 +1128,7 @@ func combineFrontEndEndpoints(allEndpoints []frontdoors.FrontendEndpoint, ordere // Now check to see if items were added to the resource via the portal and add them to the state file for _, frontendEndpoint := range allEndpoints { - found = false + found := false for _, orderedId := range orderedIds { if strings.EqualFold(orderedId.(string), *frontendEndpoint.Id) { found = true @@ -1231,9 +1229,8 @@ func flattenSingleFrontEndEndpoints(input frontdoors.FrontendEndpoint, frontDoor func combineHealthProbeSettingsModel(allHealthProbeSettings []frontdoors.HealthProbeSettingsModel, orderedIds []interface{}, frontDoorId frontdoors.FrontDoorId) []interface{} { output := make([]interface{}, 0) - found := false - // first find all of the ones in the ordered mapping list and add them in the correct order + // first find all the ones in the ordered mapping list and add them in the correct order for _, v := range orderedIds { for _, healthProbeSetting := range allHealthProbeSettings { if strings.EqualFold(v.(string), *healthProbeSetting.Id) { @@ -1246,7 +1243,7 @@ func combineHealthProbeSettingsModel(allHealthProbeSettings []frontdoors.HealthP // Now check to see if items were added to the resource via the portal and add them to the state file for _, healthProbeSetting := range allHealthProbeSettings { - found = false + found := false for _, orderedId := range orderedIds { if strings.EqualFold(orderedId.(string), *healthProbeSetting.Id) { found = true @@ -1337,9 +1334,8 @@ func flattenSingleFrontDoorHealthProbeSettingsModel(input *frontdoors.HealthProb func combineLoadBalancingSettingsModel(allLoadBalancingSettings []frontdoors.LoadBalancingSettingsModel, orderedIds []interface{}, frontDoorId frontdoors.FrontDoorId) []interface{} { output := make([]interface{}, 0) - found := false - // first find all of the ones in the ordered mapping list and add them in the correct order + // first find all the ones in the ordered mapping list and add them in the correct order for _, v := range orderedIds { for _, loadBalancingSetting := range allLoadBalancingSettings { if strings.EqualFold(v.(string), *loadBalancingSetting.Id) { @@ -1352,7 +1348,7 @@ func combineLoadBalancingSettingsModel(allLoadBalancingSettings []frontdoors.Loa // Now check to see if items were added to the resource via the portal and add them to the state file for _, loadBalanceSetting := range allLoadBalancingSettings { - found = false + found := false for _, orderedId := range orderedIds { if strings.EqualFold(orderedId.(string), *loadBalanceSetting.Id) { found = true @@ -1431,9 +1427,8 @@ func flattenSingleFrontDoorLoadBalancingSettingsModel(input *frontdoors.LoadBala func combineRoutingRules(allRoutingRules []frontdoors.RoutingRule, oldBlocks interface{}, orderedIds []interface{}, frontDoorId frontdoors.FrontDoorId) ([]interface{}, error) { output := make([]interface{}, 0) - found := false - // first find all of the ones in the ordered mapping list and add them in the correct order + // first find all the ones in the ordered mapping list and add them in the correct order for _, v := range orderedIds { for _, routingRule := range allRoutingRules { if strings.EqualFold(v.(string), *routingRule.Id) { @@ -1450,7 +1445,7 @@ func combineRoutingRules(allRoutingRules []frontdoors.RoutingRule, oldBlocks int // Now check to see if items were added to the resource via the portal and add them to the state file for _, routingRule := range allRoutingRules { - found = false + found := false for _, orderedId := range orderedIds { if strings.EqualFold(orderedId.(string), *routingRule.Id) { found = true diff --git a/internal/services/frontdoor/migration/custom_https_configuration.go b/internal/services/frontdoor/migration/custom_https_configuration.go index dd8f43d94343..e4a12c5cd1be 100644 --- a/internal/services/frontdoor/migration/custom_https_configuration.go +++ b/internal/services/frontdoor/migration/custom_https_configuration.go @@ -28,7 +28,7 @@ func (CustomHttpsConfigurationV0ToV1) Schema() map[string]*pluginsdk.Schema { Required: true, }, - //lintignore:XS003 + // lintignore:XS003 "custom_https_configuration": { Type: pluginsdk.TypeList, Optional: true, diff --git a/internal/services/frontdoor/migration/frontdoor.go b/internal/services/frontdoor/migration/frontdoor.go index 9648ed8bf87f..21ef24477fbd 100644 --- a/internal/services/frontdoor/migration/frontdoor.go +++ b/internal/services/frontdoor/migration/frontdoor.go @@ -383,7 +383,7 @@ func frontDoorSchemaForV0AndV1() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeString, Optional: true, }, - //lintignore:XS003 + // lintignore:XS003 "custom_https_configuration": { Type: pluginsdk.TypeList, Optional: true, diff --git a/internal/services/frontdoor/parse/backend_pool.go b/internal/services/frontdoor/parse/backend_pool.go index c60310b17d1e..e06c0a43d881 100644 --- a/internal/services/frontdoor/parse/backend_pool.go +++ b/internal/services/frontdoor/parse/backend_pool.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func BackendPoolID(input string) (*BackendPoolId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontDoorName, err = id.PopSegment("frontDoors"); err != nil { @@ -95,11 +96,11 @@ func BackendPoolIDInsensitively(input string) (*BackendPoolId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoors' segment diff --git a/internal/services/frontdoor/parse/backend_pool_test.go b/internal/services/frontdoor/parse/backend_pool_test.go index 255dff7c40df..c5df6a1d2e8b 100644 --- a/internal/services/frontdoor/parse/backend_pool_test.go +++ b/internal/services/frontdoor/parse/backend_pool_test.go @@ -27,7 +27,6 @@ func TestBackendPoolID(t *testing.T) { Error bool Expected *BackendPoolId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestBackendPoolIDInsensitively(t *testing.T) { Error bool Expected *BackendPoolId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/custom_https_configuration.go b/internal/services/frontdoor/parse/custom_https_configuration.go index 4ddb49841e73..1f3e86764956 100644 --- a/internal/services/frontdoor/parse/custom_https_configuration.go +++ b/internal/services/frontdoor/parse/custom_https_configuration.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func CustomHttpsConfigurationID(input string) (*CustomHttpsConfigurationId, erro } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontDoorName, err = id.PopSegment("frontDoors"); err != nil { @@ -95,11 +96,11 @@ func CustomHttpsConfigurationIDInsensitively(input string) (*CustomHttpsConfigur } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoors' segment diff --git a/internal/services/frontdoor/parse/custom_https_configuration_test.go b/internal/services/frontdoor/parse/custom_https_configuration_test.go index 2fe703499a4d..1a2fe53fd6bd 100644 --- a/internal/services/frontdoor/parse/custom_https_configuration_test.go +++ b/internal/services/frontdoor/parse/custom_https_configuration_test.go @@ -27,7 +27,6 @@ func TestCustomHttpsConfigurationID(t *testing.T) { Error bool Expected *CustomHttpsConfigurationId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestCustomHttpsConfigurationIDInsensitively(t *testing.T) { Error bool Expected *CustomHttpsConfigurationId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/front_door.go b/internal/services/frontdoor/parse/front_door.go index 94fe1979c49e..f7d07c177791 100644 --- a/internal/services/frontdoor/parse/front_door.go +++ b/internal/services/frontdoor/parse/front_door.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func FrontDoorID(input string) (*FrontDoorId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("frontDoors"); err != nil { @@ -89,11 +90,11 @@ func FrontDoorIDInsensitively(input string) (*FrontDoorId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoors' segment diff --git a/internal/services/frontdoor/parse/front_door_test.go b/internal/services/frontdoor/parse/front_door_test.go index b3512740c08d..1184af1e01f5 100644 --- a/internal/services/frontdoor/parse/front_door_test.go +++ b/internal/services/frontdoor/parse/front_door_test.go @@ -27,7 +27,6 @@ func TestFrontDoorID(t *testing.T) { Error bool Expected *FrontDoorId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestFrontDoorIDInsensitively(t *testing.T) { Error bool Expected *FrontDoorId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/frontend_endpoint.go b/internal/services/frontdoor/parse/frontend_endpoint.go index 862738dd6601..1f69ca1066a0 100644 --- a/internal/services/frontdoor/parse/frontend_endpoint.go +++ b/internal/services/frontdoor/parse/frontend_endpoint.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontendEndpointID(input string) (*FrontendEndpointId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontDoorName, err = id.PopSegment("frontDoors"); err != nil { @@ -95,11 +96,11 @@ func FrontendEndpointIDInsensitively(input string) (*FrontendEndpointId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoors' segment diff --git a/internal/services/frontdoor/parse/frontend_endpoint_test.go b/internal/services/frontdoor/parse/frontend_endpoint_test.go index df7bd6b2426c..527c78981f6c 100644 --- a/internal/services/frontdoor/parse/frontend_endpoint_test.go +++ b/internal/services/frontdoor/parse/frontend_endpoint_test.go @@ -27,7 +27,6 @@ func TestFrontendEndpointID(t *testing.T) { Error bool Expected *FrontendEndpointId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontendEndpointIDInsensitively(t *testing.T) { Error bool Expected *FrontendEndpointId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/health_probe.go b/internal/services/frontdoor/parse/health_probe.go index 1154a6d69c75..5e8a2a56f0d1 100644 --- a/internal/services/frontdoor/parse/health_probe.go +++ b/internal/services/frontdoor/parse/health_probe.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func HealthProbeID(input string) (*HealthProbeId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontDoorName, err = id.PopSegment("frontDoors"); err != nil { @@ -95,11 +96,11 @@ func HealthProbeIDInsensitively(input string) (*HealthProbeId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoors' segment diff --git a/internal/services/frontdoor/parse/health_probe_test.go b/internal/services/frontdoor/parse/health_probe_test.go index d0dcb6f4e150..1dc772391ae1 100644 --- a/internal/services/frontdoor/parse/health_probe_test.go +++ b/internal/services/frontdoor/parse/health_probe_test.go @@ -27,7 +27,6 @@ func TestHealthProbeID(t *testing.T) { Error bool Expected *HealthProbeId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestHealthProbeIDInsensitively(t *testing.T) { Error bool Expected *HealthProbeId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/load_balancing.go b/internal/services/frontdoor/parse/load_balancing.go index 646b59bcdc76..472902aabe43 100644 --- a/internal/services/frontdoor/parse/load_balancing.go +++ b/internal/services/frontdoor/parse/load_balancing.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func LoadBalancingID(input string) (*LoadBalancingId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontDoorName, err = id.PopSegment("frontDoors"); err != nil { @@ -95,11 +96,11 @@ func LoadBalancingIDInsensitively(input string) (*LoadBalancingId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoors' segment diff --git a/internal/services/frontdoor/parse/load_balancing_rule.go b/internal/services/frontdoor/parse/load_balancing_rule.go index 6b66a6b5c1b9..d364ddac1b3f 100644 --- a/internal/services/frontdoor/parse/load_balancing_rule.go +++ b/internal/services/frontdoor/parse/load_balancing_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func LoadBalancingRuleID(input string) (*LoadBalancingRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.LoadBalancerName, err = id.PopSegment("loadBalancers"); err != nil { diff --git a/internal/services/frontdoor/parse/load_balancing_rule_test.go b/internal/services/frontdoor/parse/load_balancing_rule_test.go index 57175fe8fff7..01fe62662d3b 100644 --- a/internal/services/frontdoor/parse/load_balancing_rule_test.go +++ b/internal/services/frontdoor/parse/load_balancing_rule_test.go @@ -27,7 +27,6 @@ func TestLoadBalancingRuleID(t *testing.T) { Error bool Expected *LoadBalancingRuleId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/load_balancing_test.go b/internal/services/frontdoor/parse/load_balancing_test.go index f9f656fb3724..0ff85aa87457 100644 --- a/internal/services/frontdoor/parse/load_balancing_test.go +++ b/internal/services/frontdoor/parse/load_balancing_test.go @@ -27,7 +27,6 @@ func TestLoadBalancingID(t *testing.T) { Error bool Expected *LoadBalancingId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestLoadBalancingIDInsensitively(t *testing.T) { Error bool Expected *LoadBalancingId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/routing_rule.go b/internal/services/frontdoor/parse/routing_rule.go index 8124b7930838..7d7b0a46e220 100644 --- a/internal/services/frontdoor/parse/routing_rule.go +++ b/internal/services/frontdoor/parse/routing_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func RoutingRuleID(input string) (*RoutingRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontDoorName, err = id.PopSegment("frontDoors"); err != nil { @@ -95,11 +96,11 @@ func RoutingRuleIDInsensitively(input string) (*RoutingRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoors' segment diff --git a/internal/services/frontdoor/parse/routing_rule_test.go b/internal/services/frontdoor/parse/routing_rule_test.go index 3e07adb5a94d..41a86890f902 100644 --- a/internal/services/frontdoor/parse/routing_rule_test.go +++ b/internal/services/frontdoor/parse/routing_rule_test.go @@ -27,7 +27,6 @@ func TestRoutingRuleID(t *testing.T) { Error bool Expected *RoutingRuleId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestRoutingRuleIDInsensitively(t *testing.T) { Error bool Expected *RoutingRuleId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/rules_engine.go b/internal/services/frontdoor/parse/rules_engine.go index e7d08d06596b..6d536ba0e36d 100644 --- a/internal/services/frontdoor/parse/rules_engine.go +++ b/internal/services/frontdoor/parse/rules_engine.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func RulesEngineID(input string) (*RulesEngineId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontdoorName, err = id.PopSegment("frontdoors"); err != nil { @@ -95,11 +96,11 @@ func RulesEngineIDInsensitively(input string) (*RulesEngineId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontdoors' segment diff --git a/internal/services/frontdoor/parse/rules_engine_test.go b/internal/services/frontdoor/parse/rules_engine_test.go index 749271134210..461b4039836d 100644 --- a/internal/services/frontdoor/parse/rules_engine_test.go +++ b/internal/services/frontdoor/parse/rules_engine_test.go @@ -27,7 +27,6 @@ func TestRulesEngineID(t *testing.T) { Error bool Expected *RulesEngineId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestRulesEngineIDInsensitively(t *testing.T) { Error bool Expected *RulesEngineId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/parse/web_application_firewall_policy.go b/internal/services/frontdoor/parse/web_application_firewall_policy.go index 6b6d2ab065bf..4c560206b14c 100644 --- a/internal/services/frontdoor/parse/web_application_firewall_policy.go +++ b/internal/services/frontdoor/parse/web_application_firewall_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func WebApplicationFirewallPolicyID(input string) (*WebApplicationFirewallPolicy } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FrontDoorWebApplicationFirewallPolicyName, err = id.PopSegment("frontDoorWebApplicationFirewallPolicies"); err != nil { @@ -89,11 +90,11 @@ func WebApplicationFirewallPolicyIDInsensitively(input string) (*WebApplicationF } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'frontDoorWebApplicationFirewallPolicies' segment diff --git a/internal/services/frontdoor/parse/web_application_firewall_policy_test.go b/internal/services/frontdoor/parse/web_application_firewall_policy_test.go index 8e6d7b30ff65..7252af5e119d 100644 --- a/internal/services/frontdoor/parse/web_application_firewall_policy_test.go +++ b/internal/services/frontdoor/parse/web_application_firewall_policy_test.go @@ -27,7 +27,6 @@ func TestWebApplicationFirewallPolicyID(t *testing.T) { Error bool Expected *WebApplicationFirewallPolicyId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestWebApplicationFirewallPolicyIDInsensitively(t *testing.T) { Error bool Expected *WebApplicationFirewallPolicyId }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/backend_pool_id_test.go b/internal/services/frontdoor/validate/backend_pool_id_test.go index 58f066b146e3..ac39e94642fb 100644 --- a/internal/services/frontdoor/validate/backend_pool_id_test.go +++ b/internal/services/frontdoor/validate/backend_pool_id_test.go @@ -12,7 +12,6 @@ func TestBackendPoolID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/custom_https_configuration_id_test.go b/internal/services/frontdoor/validate/custom_https_configuration_id_test.go index b97ed548cf6d..7260ab96c491 100644 --- a/internal/services/frontdoor/validate/custom_https_configuration_id_test.go +++ b/internal/services/frontdoor/validate/custom_https_configuration_id_test.go @@ -12,7 +12,6 @@ func TestCustomHttpsConfigurationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/front_door_id_test.go b/internal/services/frontdoor/validate/front_door_id_test.go index 623a443beaf2..4745588f6cd0 100644 --- a/internal/services/frontdoor/validate/front_door_id_test.go +++ b/internal/services/frontdoor/validate/front_door_id_test.go @@ -12,7 +12,6 @@ func TestFrontDoorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/frontend_endpoint_id_test.go b/internal/services/frontdoor/validate/frontend_endpoint_id_test.go index 058777e2d396..b02dbffd66d2 100644 --- a/internal/services/frontdoor/validate/frontend_endpoint_id_test.go +++ b/internal/services/frontdoor/validate/frontend_endpoint_id_test.go @@ -12,7 +12,6 @@ func TestFrontendEndpointID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/health_probe_id_test.go b/internal/services/frontdoor/validate/health_probe_id_test.go index b4a198129c7f..a75a8614a916 100644 --- a/internal/services/frontdoor/validate/health_probe_id_test.go +++ b/internal/services/frontdoor/validate/health_probe_id_test.go @@ -12,7 +12,6 @@ func TestHealthProbeID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/load_balancing_id_test.go b/internal/services/frontdoor/validate/load_balancing_id_test.go index 3029e4602180..81b88613a32b 100644 --- a/internal/services/frontdoor/validate/load_balancing_id_test.go +++ b/internal/services/frontdoor/validate/load_balancing_id_test.go @@ -12,7 +12,6 @@ func TestLoadBalancingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/load_balancing_rule_id_test.go b/internal/services/frontdoor/validate/load_balancing_rule_id_test.go index 43828b4a741e..86f422b0113b 100644 --- a/internal/services/frontdoor/validate/load_balancing_rule_id_test.go +++ b/internal/services/frontdoor/validate/load_balancing_rule_id_test.go @@ -12,7 +12,6 @@ func TestLoadBalancingRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/routing_rule_id_test.go b/internal/services/frontdoor/validate/routing_rule_id_test.go index 8b2454d16086..695d9d9dd44a 100644 --- a/internal/services/frontdoor/validate/routing_rule_id_test.go +++ b/internal/services/frontdoor/validate/routing_rule_id_test.go @@ -12,7 +12,6 @@ func TestRoutingRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/rules_engine_id_test.go b/internal/services/frontdoor/validate/rules_engine_id_test.go index 9b0fe8e50f83..ff635b264856 100644 --- a/internal/services/frontdoor/validate/rules_engine_id_test.go +++ b/internal/services/frontdoor/validate/rules_engine_id_test.go @@ -12,7 +12,6 @@ func TestRulesEngineID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/frontdoor/validate/web_application_firewall_policy_id_test.go b/internal/services/frontdoor/validate/web_application_firewall_policy_id_test.go index 7fe456570c6f..0ff826499011 100644 --- a/internal/services/frontdoor/validate/web_application_firewall_policy_id_test.go +++ b/internal/services/frontdoor/validate/web_application_firewall_policy_id_test.go @@ -12,7 +12,6 @@ func TestWebApplicationFirewallPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/graphservices/client/client.go b/internal/services/graphservices/client/client.go index fe9bae33c853..be3ebd1fc97c 100644 --- a/internal/services/graphservices/client/client.go +++ b/internal/services/graphservices/client/client.go @@ -16,7 +16,6 @@ type Client struct { } func NewClient(o *common.ClientOptions) (*Client, error) { - v20230413Client, err := graphservicesV20230413.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) diff --git a/internal/services/hdinsight/hdinsight_kafka_cluster_resource.go b/internal/services/hdinsight/hdinsight_kafka_cluster_resource.go index ce45c20b03a0..b20286d65791 100644 --- a/internal/services/hdinsight/hdinsight_kafka_cluster_resource.go +++ b/internal/services/hdinsight/hdinsight_kafka_cluster_resource.go @@ -18,7 +18,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -192,27 +191,6 @@ func resourceHDInsightKafkaCluster() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["roles"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Required: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "head_node": SchemaHDInsightNodeDefinition("roles.0.head_node", hdInsightKafkaClusterHeadNodeDefinition, true), - - "worker_node": SchemaHDInsightNodeDefinition("roles.0.worker_node", hdInsightKafkaClusterWorkerNodeDefinition, true), - - "zookeeper_node": SchemaHDInsightNodeDefinition("roles.0.zookeeper_node", hdInsightKafkaClusterZookeeperNodeDefinition, true), - - "kafka_management_node": SchemaHDInsightNodeDefinition("roles.0.kafka_management_node", hdInsightKafkaClusterKafkaManagementNodeDefinition, false), - }, - }, - } - - resource.Schema["roles"].Elem.(*pluginsdk.Resource).Schema["kafka_management_node"].Elem.(*pluginsdk.Resource).Schema["username"].Deprecated = "`username` will become Computed only in version 4.0 of the AzureRM Provider as the service auto-generates a value for this property" - } - return resource } @@ -415,7 +393,6 @@ func resourceHDInsightKafkaClusterRead(d *pluginsdk.ResourceData, meta interface d.Set("resource_group_name", id.ResourceGroupName) if model := resp.Model; model != nil { - d.Set("location", location.Normalize(model.Location)) // storage_account isn't returned so I guess we just leave it ¯\_(ツ)_/¯ diff --git a/internal/services/hdinsight/schema.go b/internal/services/hdinsight/schema.go index 0d7a55054281..3c70268ea7cb 100644 --- a/internal/services/hdinsight/schema.go +++ b/internal/services/hdinsight/schema.go @@ -702,6 +702,7 @@ func flattenHDInsightPrivateLinkConfigurations(input *[]clusters.PrivateLinkConf }, } } + func flattenHDInsightPrivateLinkConfigurationIpConfigurationProperties(input *clusters.IPConfiguration) []interface{} { if input == nil { return make([]interface{}, 0) @@ -732,11 +733,9 @@ func FlattenHDInsightsConfigurations(input map[string]string, d *pluginsdk.Resou username = v } - password := "" + password := d.Get("gateway.0.password").(string) if v, exists := input["restAuthCredential.password"]; exists { password = v - } else { - password = d.Get("gateway.0.password").(string) } out := map[string]interface{}{ diff --git a/internal/services/healthcare/healthcare_dicom_data_source.go b/internal/services/healthcare/healthcare_dicom_data_source.go index c2233ddcb1eb..f778c84641fd 100644 --- a/internal/services/healthcare/healthcare_dicom_data_source.go +++ b/internal/services/healthcare/healthcare_dicom_data_source.go @@ -134,7 +134,6 @@ func dataSourceHealthcareApisDicomServiceRead(d *pluginsdk.ResourceData, meta in } return tags.FlattenAndSet(d, m.Tags) - } return nil } diff --git a/internal/services/healthcare/healthcare_dicom_resource.go b/internal/services/healthcare/healthcare_dicom_resource.go index 46e69096c866..efac4ebbe9ec 100644 --- a/internal/services/healthcare/healthcare_dicom_resource.go +++ b/internal/services/healthcare/healthcare_dicom_resource.go @@ -300,7 +300,6 @@ func resourceHealthcareApisDicomServiceDelete(d *pluginsdk.ResourceData, meta in func dicomServiceStateStatusCodeRefreshFunc(ctx context.Context, client *dicomservices.DicomServicesClient, id dicomservices.DicomServiceId) pluginsdk.StateRefreshFunc { return func() (interface{}, string, error) { resp, err := client.Get(ctx, id) - if err != nil { if response.WasNotFound(resp.HttpResponse) { return resp, "Deleted", nil diff --git a/internal/services/healthcare/healthcare_fhir_resource.go b/internal/services/healthcare/healthcare_fhir_resource.go index 2420b87b5e64..fb3ac5da8543 100644 --- a/internal/services/healthcare/healthcare_fhir_resource.go +++ b/internal/services/healthcare/healthcare_fhir_resource.go @@ -492,7 +492,6 @@ func resourceHealthcareApisFhirServiceDelete(d *pluginsdk.ResourceData, meta int func fhirServiceStateStatusCodeRefreshFunc(ctx context.Context, client *fhirservices.FhirServicesClient, id fhirservices.FhirServiceId) pluginsdk.StateRefreshFunc { return func() (interface{}, string, error) { res, err := client.Get(ctx, id) - if err != nil { if response.WasNotFound(res.HttpResponse) { return res, "Deleted", nil @@ -518,6 +517,7 @@ func expandFhirAuthentication(input []interface{}) *fhirservices.FhirServiceAuth return auth } + func expandAccessPolicy(input []interface{}) *[]fhirservices.FhirServiceAccessPolicyEntry { if len(input) == 0 { return nil @@ -600,9 +600,7 @@ func flattenFhirAccessPolicy(policies *[]fhirservices.FhirServiceAccessPolicyEnt } for _, policy := range *policies { - result = append(result, policy.ObjectId) - } return result } diff --git a/internal/services/healthcare/healthcare_medtech_service_fhir_destination_resource.go b/internal/services/healthcare/healthcare_medtech_service_fhir_destination_resource.go index d0f4a295d9a4..aa06625be1fa 100644 --- a/internal/services/healthcare/healthcare_medtech_service_fhir_destination_resource.go +++ b/internal/services/healthcare/healthcare_medtech_service_fhir_destination_resource.go @@ -245,7 +245,6 @@ func resourceHealthcareApisMedTechServiceFhirDestinationDelete(d *pluginsdk.Reso err = client.IotConnectorFhirDestinationDeleteThenPoll(ctx, *id) if err != nil { - return fmt.Errorf("deleting %s: %+v", *id, err) } log.Printf("[DEBUG] Waiting for %s to be deleted..", id) @@ -267,7 +266,6 @@ func resourceHealthcareApisMedTechServiceFhirDestinationDelete(d *pluginsdk.Reso func healthcareApiMedTechServiceFhirDestinationStateCodeRefreshFunc(ctx context.Context, client *iotconnectors.IotConnectorsClient, id iotconnectors.FhirDestinationId) pluginsdk.StateRefreshFunc { return func() (interface{}, string, error) { resp, err := client.IotConnectorFhirDestinationGet(ctx, id) - if err != nil { if response.WasNotFound(resp.HttpResponse) { return resp, "Deleted", nil diff --git a/internal/services/healthcare/healthcare_medtech_service_resource.go b/internal/services/healthcare/healthcare_medtech_service_resource.go index ec8eebb4aa45..f00dd44f5d39 100644 --- a/internal/services/healthcare/healthcare_medtech_service_resource.go +++ b/internal/services/healthcare/healthcare_medtech_service_resource.go @@ -349,7 +349,6 @@ func resourceHealthcareApisMedTechServiceDelete(d *pluginsdk.ResourceData, meta func medTechServiceStateStatusCodeRefreshFunc(ctx context.Context, client *iotconnectors.IotConnectorsClient, id iotconnectors.IotConnectorId) pluginsdk.StateRefreshFunc { return func() (interface{}, string, error) { res, err := client.Get(ctx, id) - if err != nil { if response.WasNotFound(res.HttpResponse) { return res, "Deleted", nil diff --git a/internal/services/healthcare/healthcare_service_resource.go b/internal/services/healthcare/healthcare_service_resource.go index 952406e0aa45..cd35d102723a 100644 --- a/internal/services/healthcare/healthcare_service_resource.go +++ b/internal/services/healthcare/healthcare_service_resource.go @@ -462,7 +462,6 @@ func flattenAccessPolicies(policies *[]service.ServiceAccessPolicyEntry) []strin for _, policy := range *policies { result = append(result, policy.ObjectId) - } return result diff --git a/internal/services/healthcare/healthcare_service_resource_test.go b/internal/services/healthcare/healthcare_service_resource_test.go index d4dff39746e8..0648fc5d1124 100644 --- a/internal/services/healthcare/healthcare_service_resource_test.go +++ b/internal/services/healthcare/healthcare_service_resource_test.go @@ -80,6 +80,7 @@ func TestAccHealthCareService_publicNetworkAccessDisabled(t *testing.T) { data.ImportStep(), }) } + func TestAccHealthCareService_updateIdentitySystemAssigned(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_healthcare_service", "test") r := HealthCareServiceResource{} diff --git a/internal/services/hybridcompute/arc_machine_data_source.go b/internal/services/hybridcompute/arc_machine_data_source.go index dcad6911d735..4658e5cb0b70 100644 --- a/internal/services/hybridcompute/arc_machine_data_source.go +++ b/internal/services/hybridcompute/arc_machine_data_source.go @@ -681,11 +681,11 @@ func flattenAgentConfigurationModel(input *machines.AgentConfiguration) ([]Agent } func flattenConfigurationExtensionModel(inputList *[]machines.ConfigurationExtension) []ConfigurationExtensionModel { - var outputList []ConfigurationExtensionModel if inputList == nil { - return outputList + return []ConfigurationExtensionModel{} } + outputList := make([]ConfigurationExtensionModel, 0, len(*inputList)) for _, input := range *inputList { output := ConfigurationExtensionModel{} diff --git a/internal/services/hybridcompute/arc_machine_data_source_test.go b/internal/services/hybridcompute/arc_machine_data_source_test.go index 8956b83ccece..4caadaf74e04 100644 --- a/internal/services/hybridcompute/arc_machine_data_source_test.go +++ b/internal/services/hybridcompute/arc_machine_data_source_test.go @@ -16,9 +16,11 @@ import ( type ArcMachineDataSource struct{} -const LetterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" -const NumberBytes = "1234567890" -const SpecialBytes = "!@#$%^()" +const ( + LetterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + NumberBytes = "1234567890" + SpecialBytes = "!@#$%^()" +) func generateRandomPassword(n int) string { b := make([]byte, n) diff --git a/internal/services/hybridcompute/arc_machine_extension_resource.go b/internal/services/hybridcompute/arc_machine_extension_resource.go index eef8d900c58c..6950202573d6 100644 --- a/internal/services/hybridcompute/arc_machine_extension_resource.go +++ b/internal/services/hybridcompute/arc_machine_extension_resource.go @@ -366,7 +366,6 @@ func (r ArcMachineExtensionResource) Read() sdk.ResourceFunc { } if properties.Settings != nil && *properties.Settings != nil { - settingsValue, err := json.Marshal(*properties.Settings) if err != nil { return err @@ -387,7 +386,6 @@ func (r ArcMachineExtensionResource) Read() sdk.ResourceFunc { if model.Tags != nil { state.Tags = *model.Tags } - } return metadata.Encode(&state) diff --git a/internal/services/hybridcompute/arc_machine_extension_resource_test.go b/internal/services/hybridcompute/arc_machine_extension_resource_test.go index 9d2c44cdc99a..5ac9adab2d5c 100644 --- a/internal/services/hybridcompute/arc_machine_extension_resource_test.go +++ b/internal/services/hybridcompute/arc_machine_extension_resource_test.go @@ -20,8 +20,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -type ArcMachineExtensionResource struct { -} +type ArcMachineExtensionResource struct{} func TestAccArcMachineExtension_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_arc_machine_extension", "test") diff --git a/internal/services/hybridcompute/arc_machine_resource.go b/internal/services/hybridcompute/arc_machine_resource.go index aff4fc81ad8a..1948c5a34765 100644 --- a/internal/services/hybridcompute/arc_machine_resource.go +++ b/internal/services/hybridcompute/arc_machine_resource.go @@ -11,6 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" @@ -19,10 +20,12 @@ import ( ) type ArcMachineResourceModel struct { - Name string `tfschema:"name"` - ResourceGroupName string `tfschema:"resource_group_name"` - Location string `tfschema:"location"` - Kind string `tfschema:"kind"` + Name string `tfschema:"name"` + ResourceGroupName string `tfschema:"resource_group_name"` + Location string `tfschema:"location"` + Kind string `tfschema:"kind"` + Identity []identity.ModelSystemAssigned `tfschema:"identity"` + Tags map[string]string `tfschema:"tags"` } type ArcMachineResource struct{} @@ -58,6 +61,10 @@ func (r ArcMachineResource) Arguments() map[string]*pluginsdk.Schema { ForceNew: true, ValidateFunc: validation.StringInSlice(machines.PossibleValuesForArcKindEnum(), false), }, + + "identity": commonschema.SystemAssignedIdentityOptional(), + + "tags": commonschema.Tags(), } } @@ -92,6 +99,12 @@ func (r ArcMachineResource) Create() sdk.ResourceFunc { parameters := machines.Machine{ Location: location.Normalize(model.Location), Kind: pointer.To(machines.ArcKindEnum(model.Kind)), + Tags: pointer.To(model.Tags), + } + + parameters.Identity, err = identity.ExpandSystemAssignedFromModel(model.Identity) + if err != nil { + return fmt.Errorf("expanding `identity`: %+v", err) } if _, err := client.CreateOrUpdate(ctx, id, parameters, machines.DefaultCreateOrUpdateOperationOptions()); err != nil { @@ -130,6 +143,8 @@ func (r ArcMachineResource) Read() sdk.ResourceFunc { if model := resp.Model; model != nil { state.Location = location.Normalize(model.Location) state.Kind = string(pointer.From(model.Kind)) + state.Identity = identity.FlattenSystemAssignedToModel(model.Identity) + state.Tags = pointer.From(model.Tags) } return metadata.Encode(&state) @@ -137,6 +152,51 @@ func (r ArcMachineResource) Read() sdk.ResourceFunc { } } +func (r ArcMachineResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.HybridCompute.HybridComputeClient_v2024_07_10.Machines + + var model ArcMachineResourceModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id, err := machines.ParseMachineID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.Get(ctx, *id, machines.DefaultGetOperationOptions()) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + if resp.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", *id) + } + payload := resp.Model + + if metadata.ResourceData.HasChange("identity") { + payload.Identity, err = identity.ExpandSystemAssignedFromModel(model.Identity) + if err != nil { + return fmt.Errorf("expanding `identity`: %+v", err) + } + } + + if metadata.ResourceData.HasChange("tags") { + payload.Tags = pointer.To(model.Tags) + } + + if _, err := client.CreateOrUpdate(ctx, *id, *payload, machines.DefaultCreateOrUpdateOperationOptions()); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + return nil + }, + } +} + func (r ArcMachineResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, diff --git a/internal/services/hybridcompute/arc_machine_resource_test.go b/internal/services/hybridcompute/arc_machine_resource_test.go index 59b77d7a1f68..2cedee6c88b0 100644 --- a/internal/services/hybridcompute/arc_machine_resource_test.go +++ b/internal/services/hybridcompute/arc_machine_resource_test.go @@ -48,6 +48,35 @@ func TestAccArcMachineResource_requiresImport(t *testing.T) { }) } +func TestAccArcMachineResource_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_arc_machine", "test") + r := ArcMachineResource{} + + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func (r ArcMachineResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := machines.ParseMachineID(state.ID) if err != nil { @@ -92,6 +121,31 @@ resource "azurerm_arc_machine" "import" { `, r.basic(data)) } +func (r ArcMachineResource) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +provider "azurerm" { + features {} +} + +resource "azurerm_arc_machine" "test" { + name = "acctest-hcm-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + kind = "SCVMM" + + identity { + type = "SystemAssigned" + } + + tags = { + foo = "bar" + } +} +`, r.template(data), data.RandomInteger) +} + func (r ArcMachineResource) template(data acceptance.TestData) string { return fmt.Sprintf(` resource "azurerm_resource_group" "test" { diff --git a/internal/services/iotcentral/client/client.go b/internal/services/iotcentral/client/client.go index c424db661255..0a453549c26f 100644 --- a/internal/services/iotcentral/client/client.go +++ b/internal/services/iotcentral/client/client.go @@ -5,6 +5,7 @@ package client import ( "context" + "errors" "fmt" "github.com/Azure/go-autorest/autorest" @@ -12,7 +13,7 @@ import ( authWrapper "github.com/hashicorp/go-azure-sdk/sdk/auth/autorest" "github.com/hashicorp/go-azure-sdk/sdk/environments" "github.com/hashicorp/terraform-provider-azurerm/internal/common" - dataplane "github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral" + dataplane "github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral" ) type Client struct { @@ -40,7 +41,7 @@ func NewClient(o *common.ClientOptions) (*Client, error) { func (c *Client) OrganizationsClient(ctx context.Context, subdomain string) (*dataplane.OrganizationsClient, error) { if !c.Endpoint.Available() { - return nil, fmt.Errorf("unable to build SDK Client since IoTCentral is not available in this Azure Environment") + return nil, errors.New("unable to build SDK Client since IoTCentral is not available in this Azure Environment") } iotCentralAuth, err := c.authorizerFunc(c.Endpoint) diff --git a/internal/services/iotcentral/iotcentral_application_network_rule_set_resource.go b/internal/services/iotcentral/iotcentral_application_network_rule_set_resource.go index cc40c02ca917..ab88c9c90bae 100644 --- a/internal/services/iotcentral/iotcentral_application_network_rule_set_resource.go +++ b/internal/services/iotcentral/iotcentral_application_network_rule_set_resource.go @@ -22,9 +22,7 @@ import ( type IotCentralApplicationNetworkRuleSetResource struct{} -var ( - _ sdk.ResourceWithUpdate = IotCentralApplicationNetworkRuleSetResource{} -) +var _ sdk.ResourceWithUpdate = IotCentralApplicationNetworkRuleSetResource{} type IotCentralApplicationNetworkRuleSetModel struct { IotCentralApplicationId string `tfschema:"iotcentral_application_id"` diff --git a/internal/services/iotcentral/iotcentral_application_resource.go b/internal/services/iotcentral/iotcentral_application_resource.go index db4cc26a573c..f6b8b78608cc 100644 --- a/internal/services/iotcentral/iotcentral_application_resource.go +++ b/internal/services/iotcentral/iotcentral_application_resource.go @@ -16,7 +16,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/iotcentral/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/iotcentral/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -105,16 +104,6 @@ func resourceIotCentralApplication() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["template"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - ForceNew: true, - Computed: true, - ValidateFunc: validate.ApplicationTemplateName, - } - } - return resource } @@ -153,9 +142,6 @@ func resourceIotCentralAppCreate(d *pluginsdk.ResourceData, meta interface{}) er displayName := d.Get("display_name").(string) if displayName == "" { displayName = id.IotAppName - if !features.FourPointOhBeta() { - displayName = id.ResourceGroupName - } } identity, err := identity.ExpandSystemAssigned(d.Get("identity").([]interface{})) diff --git a/internal/services/iotcentral/iotcentral_application_resource_test.go b/internal/services/iotcentral/iotcentral_application_resource_test.go index ce2b5e61191c..9d16f12ec7c8 100644 --- a/internal/services/iotcentral/iotcentral_application_resource_test.go +++ b/internal/services/iotcentral/iotcentral_application_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -24,10 +23,6 @@ func TestAccIoTCentralApplication_basic(t *testing.T) { r := IoTCentralApplicationResource{} defaultDisplayName := fmt.Sprintf("acctest-iotcentralapp-%d", data.RandomInteger) - if !features.FourPointOhBeta() { - defaultDisplayName = fmt.Sprintf("acctestRG-%d", data.RandomInteger) - } - data.ResourceTest(t, r, []acceptance.TestStep{ { Config: r.basic(data), diff --git a/internal/services/iotcentral/iotcentral_organization_resource.go b/internal/services/iotcentral/iotcentral_organization_resource.go index 2689e2bc435a..b761b3431f77 100644 --- a/internal/services/iotcentral/iotcentral_organization_resource.go +++ b/internal/services/iotcentral/iotcentral_organization_resource.go @@ -13,14 +13,12 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/iotcentral/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/iotcentral/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - dataplane "github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral" + dataplane "github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral" ) type IotCentralOrganizationResource struct{} -var ( - _ sdk.ResourceWithUpdate = IotCentralOrganizationResource{} -) +var _ sdk.ResourceWithUpdate = IotCentralOrganizationResource{} type IotCentralOrganizationModel struct { IotCentralApplicationId string `tfschema:"iotcentral_application_id"` diff --git a/internal/services/iotcentral/parse/organization.go b/internal/services/iotcentral/parse/organization.go index bdf8290386b1..b412b2becd8d 100644 --- a/internal/services/iotcentral/parse/organization.go +++ b/internal/services/iotcentral/parse/organization.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func OrganizationID(input string) (*OrganizationId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotAppName, err = id.PopSegment("iotApps"); err != nil { diff --git a/internal/services/iotcentral/parse/organization_test.go b/internal/services/iotcentral/parse/organization_test.go index 4d1e9d36ad4b..4ae9731dad9c 100644 --- a/internal/services/iotcentral/parse/organization_test.go +++ b/internal/services/iotcentral/parse/organization_test.go @@ -27,7 +27,6 @@ func TestOrganizationID(t *testing.T) { Error bool Expected *OrganizationId }{ - { // empty Input: "", diff --git a/internal/services/iotcentral/validate/organization_id_test.go b/internal/services/iotcentral/validate/organization_id_test.go index 8dcdfb9e65f1..60e0e32cb679 100644 --- a/internal/services/iotcentral/validate/organization_id_test.go +++ b/internal/services/iotcentral/validate/organization_id_test.go @@ -12,7 +12,6 @@ func TestOrganizationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/client/client.go b/internal/services/iothub/client/client.go index 38683642914b..372915e70ab6 100644 --- a/internal/services/iothub/client/client.go +++ b/internal/services/iothub/client/client.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource" "github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates" "github.com/hashicorp/terraform-provider-azurerm/internal/common" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) type Client struct { diff --git a/internal/services/iothub/iothub_certificate_resource.go b/internal/services/iothub/iothub_certificate_resource.go index a2039b74d5aa..65188bf6f9de 100644 --- a/internal/services/iothub/iothub_certificate_resource.go +++ b/internal/services/iothub/iothub_certificate_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubCertificate() *pluginsdk.Resource { diff --git a/internal/services/iothub/iothub_certificate_resource_test.go b/internal/services/iothub/iothub_certificate_resource_test.go index 5541f08b5566..af9439633b12 100644 --- a/internal/services/iothub/iothub_certificate_resource_test.go +++ b/internal/services/iothub/iothub_certificate_resource_test.go @@ -163,7 +163,7 @@ resource "azurerm_iothub" "test" { } resource "azurerm_iothub_certificate" "test" { - name = "acctestIoTCertificate-%d" + name = "acctestIoTHubCertificate-%d" resource_group_name = azurerm_resource_group.test.name iothub_name = azurerm_iothub.test.name is_verified = true diff --git a/internal/services/iothub/iothub_consumer_group_resource.go b/internal/services/iothub/iothub_consumer_group_resource.go index 54fe299e7314..cca3f2f0245f 100644 --- a/internal/services/iothub/iothub_consumer_group_resource.go +++ b/internal/services/iothub/iothub_consumer_group_resource.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubConsumerGroup() *pluginsdk.Resource { diff --git a/internal/services/iothub/iothub_data_source.go b/internal/services/iothub/iothub_data_source.go index b36e25699162..63f862e4b263 100644 --- a/internal/services/iothub/iothub_data_source.go +++ b/internal/services/iothub/iothub_data_source.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func dataSourceIotHub() *pluginsdk.Resource { diff --git a/internal/services/iothub/iothub_device_update_instance_resource.go b/internal/services/iothub/iothub_device_update_instance_resource.go index 0e0a0d170899..501106c56333 100644 --- a/internal/services/iothub/iothub_device_update_instance_resource.go +++ b/internal/services/iothub/iothub_device_update_instance_resource.go @@ -21,9 +21,7 @@ import ( type IotHubDeviceUpdateInstanceResource struct{} -var ( - _ sdk.ResourceWithUpdate = IotHubDeviceUpdateInstanceResource{} -) +var _ sdk.ResourceWithUpdate = IotHubDeviceUpdateInstanceResource{} type IotHubDeviceUpdateInstanceModel struct { Name string `tfschema:"name"` diff --git a/internal/services/iothub/iothub_dps_resource.go b/internal/services/iothub/iothub_dps_resource.go index 4daa8a9c0d19..1e65aa0269a5 100644 --- a/internal/services/iothub/iothub_dps_resource.go +++ b/internal/services/iothub/iothub_dps_resource.go @@ -26,7 +26,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubDPS() *pluginsdk.Resource { diff --git a/internal/services/iothub/iothub_endpoint_cosmosdb_account_resource.go b/internal/services/iothub/iothub_endpoint_cosmosdb_account_resource.go index b329fc333da0..7bdb6a79a588 100644 --- a/internal/services/iothub/iothub_endpoint_cosmosdb_account_resource.go +++ b/internal/services/iothub/iothub_endpoint_cosmosdb_account_resource.go @@ -20,14 +20,12 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) type IotHubEndpointCosmosDBAccountResource struct{} -var ( - _ sdk.ResourceWithUpdate = IotHubEndpointCosmosDBAccountResource{} -) +var _ sdk.ResourceWithUpdate = IotHubEndpointCosmosDBAccountResource{} type IotHubEndpointCosmosDBAccountModel struct { Name string `tfschema:"name"` diff --git a/internal/services/iothub/iothub_endpoint_eventhub_resource.go b/internal/services/iothub/iothub_endpoint_eventhub_resource.go index 01ace4d63202..e475ec52d298 100644 --- a/internal/services/iothub/iothub_endpoint_eventhub_resource.go +++ b/internal/services/iothub/iothub_endpoint_eventhub_resource.go @@ -22,7 +22,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubEndpointEventHub() *pluginsdk.Resource { @@ -64,7 +64,7 @@ func resourceIothubEndpointEventHubSchema() map[string]*pluginsdk.Schema { "resource_group_name": commonschema.ResourceGroupName(), - //lintignore: S013 + // lintignore: S013 "iothub_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/iothub/iothub_endpoint_servicebus_queue_resource.go b/internal/services/iothub/iothub_endpoint_servicebus_queue_resource.go index 65c45db21cff..2ac997b0e90f 100644 --- a/internal/services/iothub/iothub_endpoint_servicebus_queue_resource.go +++ b/internal/services/iothub/iothub_endpoint_servicebus_queue_resource.go @@ -22,7 +22,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubEndpointServiceBusQueue() *pluginsdk.Resource { @@ -64,7 +64,7 @@ func resourceIothubEndpointServicebusQueue() map[string]*pluginsdk.Schema { "resource_group_name": commonschema.ResourceGroupName(), - //lintignore: S013 + // lintignore: S013 "iothub_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/iothub/iothub_endpoint_servicebus_topic_resource.go b/internal/services/iothub/iothub_endpoint_servicebus_topic_resource.go index 71aeab4fdc02..d1a9dc2d553d 100644 --- a/internal/services/iothub/iothub_endpoint_servicebus_topic_resource.go +++ b/internal/services/iothub/iothub_endpoint_servicebus_topic_resource.go @@ -22,7 +22,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubEndpointServiceBusTopic() *pluginsdk.Resource { @@ -64,7 +64,7 @@ func resourceIothubEndpointServicebusTopicSchema() map[string]*pluginsdk.Schema "resource_group_name": commonschema.ResourceGroupName(), - //lintignore: S013 + // lintignore: S013 "iothub_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/iothub/iothub_endpoint_storage_container_resource.go b/internal/services/iothub/iothub_endpoint_storage_container_resource.go index aa5b0e6963a1..37bf9c238bd8 100644 --- a/internal/services/iothub/iothub_endpoint_storage_container_resource.go +++ b/internal/services/iothub/iothub_endpoint_storage_container_resource.go @@ -23,7 +23,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubEndpointStorageContainer() *pluginsdk.Resource { @@ -65,7 +65,7 @@ func resourceIothubEndpointStorageContainerSchema() map[string]*pluginsdk.Schema "resource_group_name": commonschema.ResourceGroupName(), - //lintignore: S013 + // lintignore: S013 "iothub_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/iothub/iothub_enrichment_resource.go b/internal/services/iothub/iothub_enrichment_resource.go index b8b1ee142a88..a3bf472494aa 100644 --- a/internal/services/iothub/iothub_enrichment_resource.go +++ b/internal/services/iothub/iothub_enrichment_resource.go @@ -21,7 +21,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubEnrichment() *pluginsdk.Resource { diff --git a/internal/services/iothub/iothub_fallback_route_resource.go b/internal/services/iothub/iothub_fallback_route_resource.go index 389bc0ab027e..4b724199c0cc 100644 --- a/internal/services/iothub/iothub_fallback_route_resource.go +++ b/internal/services/iothub/iothub_fallback_route_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubFallbackRoute() *pluginsdk.Resource { diff --git a/internal/services/iothub/iothub_file_upload_resource.go b/internal/services/iothub/iothub_file_upload_resource.go index 969d99a0f90e..a751757d735a 100644 --- a/internal/services/iothub/iothub_file_upload_resource.go +++ b/internal/services/iothub/iothub_file_upload_resource.go @@ -18,14 +18,12 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) type IotHubFileUploadResource struct{} -var ( - _ sdk.ResourceWithUpdate = IotHubFileUploadResource{} -) +var _ sdk.ResourceWithUpdate = IotHubFileUploadResource{} type IotHubFileUploadResourceModel struct { AuthenticationType string `tfschema:"authentication_type"` diff --git a/internal/services/iothub/iothub_resource.go b/internal/services/iothub/iothub_resource.go index cf865dbe59a3..7517c619acde 100644 --- a/internal/services/iothub/iothub_resource.go +++ b/internal/services/iothub/iothub_resource.go @@ -21,7 +21,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" eventhubValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/eventhub/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/iothub/migration" @@ -33,7 +32,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) // TODO: outside of this pr make this private @@ -163,27 +162,15 @@ func resourceIotHub() *pluginsdk.Resource { }, "event_hub_partition_count": { - Type: pluginsdk.TypeInt, - Optional: true, - Computed: !features.FourPointOhBeta(), - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return 4 - }(), + Type: pluginsdk.TypeInt, + Optional: true, + Default: 4, ValidateFunc: validation.IntBetween(2, 128), }, "event_hub_retention_in_days": { - Type: pluginsdk.TypeInt, - Optional: true, - Computed: !features.FourPointOhBeta(), - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return 1 - }(), + Type: pluginsdk.TypeInt, + Optional: true, + Default: 1, ValidateFunc: validation.IntBetween(1, 7), }, @@ -231,38 +218,20 @@ func resourceIotHub() *pluginsdk.Resource { "sas_ttl": { Type: pluginsdk.TypeString, Optional: true, - Computed: !features.FourPointOhBeta(), ValidateFunc: validate.ISO8601Duration, - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return "PT1H" - }(), + Default: "PT1H", }, "default_ttl": { Type: pluginsdk.TypeString, Optional: true, - Computed: !features.FourPointOhBeta(), ValidateFunc: validate.ISO8601Duration, - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return "PT1H" - }(), + Default: "PT1H", }, "lock_duration": { Type: pluginsdk.TypeString, Optional: true, - Computed: !features.FourPointOhBeta(), ValidateFunc: validate.ISO8601Duration, - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return "PT1M" - }(), + Default: "PT1M", }, }, }, @@ -503,13 +472,7 @@ func resourceIotHub() *pluginsdk.Resource { "enabled": { Type: pluginsdk.TypeBool, Optional: true, - Computed: !features.FourPointOhBeta(), - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return true - }(), + Default: true, }, }, }, diff --git a/internal/services/iothub/iothub_route_resource.go b/internal/services/iothub/iothub_route_resource.go index 542e56e6cabf..cbe3ba48ae19 100644 --- a/internal/services/iothub/iothub_route_resource.go +++ b/internal/services/iothub/iothub_route_resource.go @@ -20,7 +20,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubRoute() *pluginsdk.Resource { diff --git a/internal/services/iothub/iothub_shared_access_policy_resource.go b/internal/services/iothub/iothub_shared_access_policy_resource.go index 32ab93d812dd..f922c3d8f69e 100644 --- a/internal/services/iothub/iothub_shared_access_policy_resource.go +++ b/internal/services/iothub/iothub_shared_access_policy_resource.go @@ -21,7 +21,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - devices "github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub" + devices "github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub" ) func resourceIotHubSharedAccessPolicy() *pluginsdk.Resource { diff --git a/internal/services/iothub/migration/endpoint_eventhub_migration_v0_to_v1.go b/internal/services/iothub/migration/endpoint_eventhub_migration_v0_to_v1.go index 21a7a29bd46f..ce94383cc67a 100644 --- a/internal/services/iothub/migration/endpoint_eventhub_migration_v0_to_v1.go +++ b/internal/services/iothub/migration/endpoint_eventhub_migration_v0_to_v1.go @@ -28,7 +28,7 @@ func (s IoTHubEndPointEventHubV0ToV1) Schema() map[string]*pluginsdk.Schema { ForceNew: true, }, - //lintignore: S013 + // lintignore: S013 "iothub_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/iothub/migration/endpoint_servicebus_topic_migration_v0_to_v1.go b/internal/services/iothub/migration/endpoint_servicebus_topic_migration_v0_to_v1.go index 24c1421df123..1416aba5c3b8 100644 --- a/internal/services/iothub/migration/endpoint_servicebus_topic_migration_v0_to_v1.go +++ b/internal/services/iothub/migration/endpoint_servicebus_topic_migration_v0_to_v1.go @@ -28,7 +28,7 @@ func (s IoTHubEndpointServiceBusTopicV0ToV1) Schema() map[string]*pluginsdk.Sche ForceNew: true, }, - //lintignore: S013 + // lintignore: S013 "iothub_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/iothub/migration/endpoint_storage_container_migration_v0_to_v1.go b/internal/services/iothub/migration/endpoint_storage_container_migration_v0_to_v1.go index 92e878dd5151..c9cf5374a783 100644 --- a/internal/services/iothub/migration/endpoint_storage_container_migration_v0_to_v1.go +++ b/internal/services/iothub/migration/endpoint_storage_container_migration_v0_to_v1.go @@ -28,7 +28,7 @@ func (s IoTHubEndPointStorageContainerV0ToV1) Schema() map[string]*pluginsdk.Sch ForceNew: true, }, - //lintignore: S013 + // lintignore: S013 "iothub_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/iothub/migration/servicebus_queue_migration_v0_to_v1.go b/internal/services/iothub/migration/servicebus_queue_migration_v0_to_v1.go index b5eb5f060ab7..c892f3b70266 100644 --- a/internal/services/iothub/migration/servicebus_queue_migration_v0_to_v1.go +++ b/internal/services/iothub/migration/servicebus_queue_migration_v0_to_v1.go @@ -28,7 +28,7 @@ func (s IoTHubServiceBusQueueV0ToV1) Schema() map[string]*pluginsdk.Schema { ForceNew: true, }, - //lintignore: S013 + // lintignore: S013 "iothub_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/iothub/parse/consumer_group.go b/internal/services/iothub/parse/consumer_group.go index 4941cb70a609..7639bac683c3 100644 --- a/internal/services/iothub/parse/consumer_group.go +++ b/internal/services/iothub/parse/consumer_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ConsumerGroupID(input string) (*ConsumerGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -101,11 +102,11 @@ func ConsumerGroupIDInsensitively(input string) (*ConsumerGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/consumer_group_test.go b/internal/services/iothub/parse/consumer_group_test.go index a8bc4c35adc1..b13e5ff5002f 100644 --- a/internal/services/iothub/parse/consumer_group_test.go +++ b/internal/services/iothub/parse/consumer_group_test.go @@ -27,7 +27,6 @@ func TestConsumerGroupID(t *testing.T) { Error bool Expected *ConsumerGroupId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestConsumerGroupIDInsensitively(t *testing.T) { Error bool Expected *ConsumerGroupId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/endpoint_cosmos_db_account.go b/internal/services/iothub/parse/endpoint_cosmos_db_account.go index fe7f715295e0..f246623261e1 100644 --- a/internal/services/iothub/parse/endpoint_cosmos_db_account.go +++ b/internal/services/iothub/parse/endpoint_cosmos_db_account.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -35,7 +36,7 @@ func (id EndpointCosmosDBAccountId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Endpoint Cosmos D B Account", segmentsStr) + return fmt.Sprintf("%s: (%s)", "Endpoint CosmosDB Account", segmentsStr) } func (id EndpointCosmosDBAccountId) ID() string { @@ -56,11 +57,11 @@ func EndpointCosmosDBAccountID(input string) (*EndpointCosmosDBAccountId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func EndpointCosmosDBAccountIDInsensitively(input string) (*EndpointCosmosDBAcco } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/endpoint_cosmos_db_account_test.go b/internal/services/iothub/parse/endpoint_cosmos_db_account_test.go index 3f20debf3675..0796deaed01b 100644 --- a/internal/services/iothub/parse/endpoint_cosmos_db_account_test.go +++ b/internal/services/iothub/parse/endpoint_cosmos_db_account_test.go @@ -27,7 +27,6 @@ func TestEndpointCosmosDBAccountID(t *testing.T) { Error bool Expected *EndpointCosmosDBAccountId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestEndpointCosmosDBAccountIDInsensitively(t *testing.T) { Error bool Expected *EndpointCosmosDBAccountId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/endpoint_eventhub.go b/internal/services/iothub/parse/endpoint_eventhub.go index b76cb21afbb9..ac1d58d47baf 100644 --- a/internal/services/iothub/parse/endpoint_eventhub.go +++ b/internal/services/iothub/parse/endpoint_eventhub.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func EndpointEventhubID(input string) (*EndpointEventhubId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func EndpointEventhubIDInsensitively(input string) (*EndpointEventhubId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/endpoint_eventhub_test.go b/internal/services/iothub/parse/endpoint_eventhub_test.go index 2500a2131b18..e3e40888657b 100644 --- a/internal/services/iothub/parse/endpoint_eventhub_test.go +++ b/internal/services/iothub/parse/endpoint_eventhub_test.go @@ -27,7 +27,6 @@ func TestEndpointEventhubID(t *testing.T) { Error bool Expected *EndpointEventhubId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestEndpointEventhubIDInsensitively(t *testing.T) { Error bool Expected *EndpointEventhubId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/endpoint_service_bus_queue.go b/internal/services/iothub/parse/endpoint_service_bus_queue.go index cd7b48792730..f3ec9d0e0ebf 100644 --- a/internal/services/iothub/parse/endpoint_service_bus_queue.go +++ b/internal/services/iothub/parse/endpoint_service_bus_queue.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func EndpointServiceBusQueueID(input string) (*EndpointServiceBusQueueId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func EndpointServiceBusQueueIDInsensitively(input string) (*EndpointServiceBusQu } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/endpoint_service_bus_queue_test.go b/internal/services/iothub/parse/endpoint_service_bus_queue_test.go index 9fdcc22af33f..bb35850483b8 100644 --- a/internal/services/iothub/parse/endpoint_service_bus_queue_test.go +++ b/internal/services/iothub/parse/endpoint_service_bus_queue_test.go @@ -27,7 +27,6 @@ func TestEndpointServiceBusQueueID(t *testing.T) { Error bool Expected *EndpointServiceBusQueueId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestEndpointServiceBusQueueIDInsensitively(t *testing.T) { Error bool Expected *EndpointServiceBusQueueId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/endpoint_service_bus_topic.go b/internal/services/iothub/parse/endpoint_service_bus_topic.go index 8d31dba9eb16..e7b561b4bffe 100644 --- a/internal/services/iothub/parse/endpoint_service_bus_topic.go +++ b/internal/services/iothub/parse/endpoint_service_bus_topic.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func EndpointServiceBusTopicID(input string) (*EndpointServiceBusTopicId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func EndpointServiceBusTopicIDInsensitively(input string) (*EndpointServiceBusTo } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/endpoint_service_bus_topic_test.go b/internal/services/iothub/parse/endpoint_service_bus_topic_test.go index 58a01830941f..f5324b805f4e 100644 --- a/internal/services/iothub/parse/endpoint_service_bus_topic_test.go +++ b/internal/services/iothub/parse/endpoint_service_bus_topic_test.go @@ -27,7 +27,6 @@ func TestEndpointServiceBusTopicID(t *testing.T) { Error bool Expected *EndpointServiceBusTopicId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestEndpointServiceBusTopicIDInsensitively(t *testing.T) { Error bool Expected *EndpointServiceBusTopicId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/endpoint_storage_container.go b/internal/services/iothub/parse/endpoint_storage_container.go index b28fedd7626d..bfa695939b34 100644 --- a/internal/services/iothub/parse/endpoint_storage_container.go +++ b/internal/services/iothub/parse/endpoint_storage_container.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func EndpointStorageContainerID(input string) (*EndpointStorageContainerId, erro } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func EndpointStorageContainerIDInsensitively(input string) (*EndpointStorageCont } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/endpoint_storage_container_test.go b/internal/services/iothub/parse/endpoint_storage_container_test.go index 385b0e0c9773..037a0b68de08 100644 --- a/internal/services/iothub/parse/endpoint_storage_container_test.go +++ b/internal/services/iothub/parse/endpoint_storage_container_test.go @@ -27,7 +27,6 @@ func TestEndpointStorageContainerID(t *testing.T) { Error bool Expected *EndpointStorageContainerId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestEndpointStorageContainerIDInsensitively(t *testing.T) { Error bool Expected *EndpointStorageContainerId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/enrichment.go b/internal/services/iothub/parse/enrichment.go index 86d2e709a441..362d2365d444 100644 --- a/internal/services/iothub/parse/enrichment.go +++ b/internal/services/iothub/parse/enrichment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func EnrichmentID(input string) (*EnrichmentId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func EnrichmentIDInsensitively(input string) (*EnrichmentId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/enrichment_test.go b/internal/services/iothub/parse/enrichment_test.go index 28703e9446f4..6dc3ad38032b 100644 --- a/internal/services/iothub/parse/enrichment_test.go +++ b/internal/services/iothub/parse/enrichment_test.go @@ -27,7 +27,6 @@ func TestEnrichmentID(t *testing.T) { Error bool Expected *EnrichmentId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestEnrichmentIDInsensitively(t *testing.T) { Error bool Expected *EnrichmentId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/fallback_route.go b/internal/services/iothub/parse/fallback_route.go index 56138bbf4d2e..c09fd785883d 100644 --- a/internal/services/iothub/parse/fallback_route.go +++ b/internal/services/iothub/parse/fallback_route.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FallbackRouteID(input string) (*FallbackRouteId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func FallbackRouteIDInsensitively(input string) (*FallbackRouteId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/fallback_route_test.go b/internal/services/iothub/parse/fallback_route_test.go index 3a9a66b59788..362a3c94d886 100644 --- a/internal/services/iothub/parse/fallback_route_test.go +++ b/internal/services/iothub/parse/fallback_route_test.go @@ -27,7 +27,6 @@ func TestFallbackRouteID(t *testing.T) { Error bool Expected *FallbackRouteId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFallbackRouteIDInsensitively(t *testing.T) { Error bool Expected *FallbackRouteId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/iot_hub.go b/internal/services/iothub/parse/iot_hub.go index f17ef27bdf9c..8ca640485dd6 100644 --- a/internal/services/iothub/parse/iot_hub.go +++ b/internal/services/iothub/parse/iot_hub.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func IotHubID(input string) (*IotHubId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("iotHubs"); err != nil { @@ -89,11 +90,11 @@ func IotHubIDInsensitively(input string) (*IotHubId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/iot_hub_certificate.go b/internal/services/iothub/parse/iot_hub_certificate.go index 8ad643ed2ed0..b12a2f4439be 100644 --- a/internal/services/iothub/parse/iot_hub_certificate.go +++ b/internal/services/iothub/parse/iot_hub_certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func IotHubCertificateID(input string) (*IotHubCertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func IotHubCertificateIDInsensitively(input string) (*IotHubCertificateId, error } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/iot_hub_certificate_test.go b/internal/services/iothub/parse/iot_hub_certificate_test.go index 1a3dd2be9c30..16173ba5a4e4 100644 --- a/internal/services/iothub/parse/iot_hub_certificate_test.go +++ b/internal/services/iothub/parse/iot_hub_certificate_test.go @@ -27,7 +27,6 @@ func TestIotHubCertificateID(t *testing.T) { Error bool Expected *IotHubCertificateId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestIotHubCertificateIDInsensitively(t *testing.T) { Error bool Expected *IotHubCertificateId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/iot_hub_test.go b/internal/services/iothub/parse/iot_hub_test.go index aa52f716aff7..b0e0ecb1e315 100644 --- a/internal/services/iothub/parse/iot_hub_test.go +++ b/internal/services/iothub/parse/iot_hub_test.go @@ -27,7 +27,6 @@ func TestIotHubID(t *testing.T) { Error bool Expected *IotHubId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestIotHubIDInsensitively(t *testing.T) { Error bool Expected *IotHubId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/route.go b/internal/services/iothub/parse/route.go index 38a301a8c866..c163952b6d5e 100644 --- a/internal/services/iothub/parse/route.go +++ b/internal/services/iothub/parse/route.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func RouteID(input string) (*RouteId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func RouteIDInsensitively(input string) (*RouteId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/route_test.go b/internal/services/iothub/parse/route_test.go index b336f3db390a..4938cb8cd4da 100644 --- a/internal/services/iothub/parse/route_test.go +++ b/internal/services/iothub/parse/route_test.go @@ -27,7 +27,6 @@ func TestRouteID(t *testing.T) { Error bool Expected *RouteId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestRouteIDInsensitively(t *testing.T) { Error bool Expected *RouteId }{ - { // empty Input: "", diff --git a/internal/services/iothub/parse/shared_access_policy.go b/internal/services/iothub/parse/shared_access_policy.go index 95ec89ac51a3..97c0f1db7d64 100644 --- a/internal/services/iothub/parse/shared_access_policy.go +++ b/internal/services/iothub/parse/shared_access_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SharedAccessPolicyID(input string) (*SharedAccessPolicyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.IotHubName, err = id.PopSegment("iotHubs"); err != nil { @@ -95,11 +96,11 @@ func SharedAccessPolicyIDInsensitively(input string) (*SharedAccessPolicyId, err } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotHubs' segment diff --git a/internal/services/iothub/parse/shared_access_policy_test.go b/internal/services/iothub/parse/shared_access_policy_test.go index da98fc820bbd..17db7c3c251c 100644 --- a/internal/services/iothub/parse/shared_access_policy_test.go +++ b/internal/services/iothub/parse/shared_access_policy_test.go @@ -27,7 +27,6 @@ func TestSharedAccessPolicyID(t *testing.T) { Error bool Expected *SharedAccessPolicyId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSharedAccessPolicyIDInsensitively(t *testing.T) { Error bool Expected *SharedAccessPolicyId }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/consumer_group_id_test.go b/internal/services/iothub/validate/consumer_group_id_test.go index aab388815c0b..7c3ae861dd65 100644 --- a/internal/services/iothub/validate/consumer_group_id_test.go +++ b/internal/services/iothub/validate/consumer_group_id_test.go @@ -12,7 +12,6 @@ func TestConsumerGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/endpoint_cosmos_db_account_id_test.go b/internal/services/iothub/validate/endpoint_cosmos_db_account_id_test.go index a48f5fbdd44b..d050d03524a8 100644 --- a/internal/services/iothub/validate/endpoint_cosmos_db_account_id_test.go +++ b/internal/services/iothub/validate/endpoint_cosmos_db_account_id_test.go @@ -12,7 +12,6 @@ func TestEndpointCosmosDBAccountID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/endpoint_eventhub_id_test.go b/internal/services/iothub/validate/endpoint_eventhub_id_test.go index b5527dcc9530..da6fe74489a2 100644 --- a/internal/services/iothub/validate/endpoint_eventhub_id_test.go +++ b/internal/services/iothub/validate/endpoint_eventhub_id_test.go @@ -12,7 +12,6 @@ func TestEndpointEventhubID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/endpoint_service_bus_queue_id_test.go b/internal/services/iothub/validate/endpoint_service_bus_queue_id_test.go index 3a42c374d345..b8dfa99dae3c 100644 --- a/internal/services/iothub/validate/endpoint_service_bus_queue_id_test.go +++ b/internal/services/iothub/validate/endpoint_service_bus_queue_id_test.go @@ -12,7 +12,6 @@ func TestEndpointServiceBusQueueID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/endpoint_service_bus_topic_id_test.go b/internal/services/iothub/validate/endpoint_service_bus_topic_id_test.go index 7bab213fe974..74fe49a7f868 100644 --- a/internal/services/iothub/validate/endpoint_service_bus_topic_id_test.go +++ b/internal/services/iothub/validate/endpoint_service_bus_topic_id_test.go @@ -12,7 +12,6 @@ func TestEndpointServiceBusTopicID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/endpoint_storage_container_id_test.go b/internal/services/iothub/validate/endpoint_storage_container_id_test.go index c3cc3d00da88..dedd547ff094 100644 --- a/internal/services/iothub/validate/endpoint_storage_container_id_test.go +++ b/internal/services/iothub/validate/endpoint_storage_container_id_test.go @@ -12,7 +12,6 @@ func TestEndpointStorageContainerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/enrichment_id_test.go b/internal/services/iothub/validate/enrichment_id_test.go index 838ec8883e22..eb752127691e 100644 --- a/internal/services/iothub/validate/enrichment_id_test.go +++ b/internal/services/iothub/validate/enrichment_id_test.go @@ -12,7 +12,6 @@ func TestEnrichmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/fallback_route_id_test.go b/internal/services/iothub/validate/fallback_route_id_test.go index 31f9b3038d5b..3257db9b35e6 100644 --- a/internal/services/iothub/validate/fallback_route_id_test.go +++ b/internal/services/iothub/validate/fallback_route_id_test.go @@ -12,7 +12,6 @@ func TestFallbackRouteID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/iot_hub_certificate_id_test.go b/internal/services/iothub/validate/iot_hub_certificate_id_test.go index 934fb31e638e..f00769f33584 100644 --- a/internal/services/iothub/validate/iot_hub_certificate_id_test.go +++ b/internal/services/iothub/validate/iot_hub_certificate_id_test.go @@ -12,7 +12,6 @@ func TestIotHubCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/iot_hub_id_test.go b/internal/services/iothub/validate/iot_hub_id_test.go index da6052169664..4670d236ebca 100644 --- a/internal/services/iothub/validate/iot_hub_id_test.go +++ b/internal/services/iothub/validate/iot_hub_id_test.go @@ -12,7 +12,6 @@ func TestIotHubID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/route_id_test.go b/internal/services/iothub/validate/route_id_test.go index 749454f74ec9..64ed02aa49c3 100644 --- a/internal/services/iothub/validate/route_id_test.go +++ b/internal/services/iothub/validate/route_id_test.go @@ -12,7 +12,6 @@ func TestRouteID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/iothub/validate/shared_access_policy_id_test.go b/internal/services/iothub/validate/shared_access_policy_id_test.go index 2e067ed154a0..d398ff4ff36a 100644 --- a/internal/services/iothub/validate/shared_access_policy_id_test.go +++ b/internal/services/iothub/validate/shared_access_policy_id_test.go @@ -12,7 +12,6 @@ func TestSharedAccessPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/keyvault/client/client.go b/internal/services/keyvault/client/client.go index f74fb47b55f5..77da12ea9bc9 100644 --- a/internal/services/keyvault/client/client.go +++ b/internal/services/keyvault/client/client.go @@ -10,7 +10,7 @@ import ( vaults20230701 "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults" resources20151101 "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources" "github.com/hashicorp/terraform-provider-azurerm/internal/common" - dataplane "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + dataplane "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type Client struct { diff --git a/internal/services/keyvault/encrypted_value_data_source.go b/internal/services/keyvault/encrypted_value_data_source.go index c21a3a49c93a..f8d7d03761d2 100644 --- a/internal/services/keyvault/encrypted_value_data_source.go +++ b/internal/services/keyvault/encrypted_value_data_source.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) var _ sdk.DataSource = EncryptedValueDataSource{} diff --git a/internal/services/keyvault/key_vault_certificate_contacts_resource.go b/internal/services/keyvault/key_vault_certificate_contacts_resource.go index 9d59a37bd828..4d34adc131b2 100644 --- a/internal/services/keyvault/key_vault_certificate_contacts_resource.go +++ b/internal/services/keyvault/key_vault_certificate_contacts_resource.go @@ -10,23 +10,20 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type KeyVaultCertificateContactsResource struct{} -var ( - _ sdk.ResourceWithUpdate = KeyVaultCertificateContactsResource{} -) +var _ sdk.ResourceWithUpdate = KeyVaultCertificateContactsResource{} type KeyVaultCertificateContactsResourceModel struct { KeyVaultId string `tfschema:"key_vault_id"` @@ -42,10 +39,8 @@ type Contact struct { func (r KeyVaultCertificateContactsResource) Arguments() map[string]*pluginsdk.Schema { schema := map[string]*pluginsdk.Schema{ "key_vault_id": commonschema.ResourceIDReferenceRequiredForceNew(&commonids.KeyVaultId{}), - } - if features.FourPointOhBeta() { - schema["contact"] = &pluginsdk.Schema{ + "contact": { Type: pluginsdk.TypeSet, Optional: true, Elem: &pluginsdk.Resource{ @@ -69,34 +64,7 @@ func (r KeyVaultCertificateContactsResource) Arguments() map[string]*pluginsdk.S }, }, }, - } - } else { - schema["contact"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeSet, - Required: true, - MinItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "email": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - - "name": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - - "phone": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - } + }, } return schema @@ -163,15 +131,9 @@ func (r KeyVaultCertificateContactsResource) Create() sdk.ResourceFunc { ContactList: expandKeyVaultCertificateContactsContact(state.Contact), } - if features.FourPointOhBeta() { - if len(*contacts.ContactList) == 0 { - if _, err := client.DeleteCertificateContacts(ctx, id.KeyVaultBaseUrl); err != nil { - return fmt.Errorf("removing Key Vault Certificate Contacts %s: %+v", id, err) - } - } else { - if _, err := client.SetCertificateContacts(ctx, *keyVaultBaseUri, contacts); err != nil { - return fmt.Errorf("creating Key Vault Certificate Contacts %s: %+v", id, err) - } + if len(*contacts.ContactList) == 0 { + if _, err := client.DeleteCertificateContacts(ctx, id.KeyVaultBaseUrl); err != nil { + return fmt.Errorf("removing Key Vault Certificate Contacts %s: %+v", id, err) } } else { if _, err := client.SetCertificateContacts(ctx, *keyVaultBaseUri, contacts); err != nil { @@ -259,15 +221,9 @@ func (r KeyVaultCertificateContactsResource) Update() sdk.ResourceFunc { existing.ContactList = expandKeyVaultCertificateContactsContact(state.Contact) } - if features.FourPointOhBeta() { - if len(*existing.ContactList) == 0 { - if _, err := client.DeleteCertificateContacts(ctx, id.KeyVaultBaseUrl); err != nil { - return fmt.Errorf("removing Key Vault Certificate Contacts %s: %+v", id, err) - } - } else { - if _, err := client.SetCertificateContacts(ctx, id.KeyVaultBaseUrl, existing); err != nil { - return fmt.Errorf("updating Key Vault Certificate Contacts %s: %+v", id, err) - } + if len(*existing.ContactList) == 0 { + if _, err := client.DeleteCertificateContacts(ctx, id.KeyVaultBaseUrl); err != nil { + return fmt.Errorf("removing Key Vault Certificate Contacts %s: %+v", id, err) } } else { if _, err := client.SetCertificateContacts(ctx, id.KeyVaultBaseUrl, existing); err != nil { diff --git a/internal/services/keyvault/key_vault_certificate_contacts_resource_test.go b/internal/services/keyvault/key_vault_certificate_contacts_resource_test.go index 5b15b2e35238..ef517c18326a 100644 --- a/internal/services/keyvault/key_vault_certificate_contacts_resource_test.go +++ b/internal/services/keyvault/key_vault_certificate_contacts_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" @@ -104,10 +103,6 @@ func TestAccKeyVaultCertificateContacts_nonExistentVault(t *testing.T) { } func TestAccKeyVaultCertificateContacts_remove(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skipf("Skippped as test is not valid in 3.x") - } - data := acceptance.BuildTestData(t, "azurerm_key_vault_certificate_contacts", "test") r := KeyVaultCertificateContactsResource{} diff --git a/internal/services/keyvault/key_vault_certificate_data_source.go b/internal/services/keyvault/key_vault_certificate_data_source.go index 52f3d4ceeca9..d8cb15176446 100644 --- a/internal/services/keyvault/key_vault_certificate_data_source.go +++ b/internal/services/keyvault/key_vault_certificate_data_source.go @@ -19,7 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func dataSourceKeyVaultCertificate() *pluginsdk.Resource { diff --git a/internal/services/keyvault/key_vault_certificate_ephemeral.go b/internal/services/keyvault/key_vault_certificate_ephemeral.go new file mode 100644 index 000000000000..940f78ea949b --- /dev/null +++ b/internal/services/keyvault/key_vault_certificate_ephemeral.go @@ -0,0 +1,299 @@ +package keyvault + +import ( + "bytes" + "context" + "crypto/ecdsa" + "crypto/rsa" + "crypto/x509" + "encoding/base64" + "encoding/hex" + "encoding/pem" + "fmt" + "strings" + "time" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/ephemeral/schema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk/frameworkhelpers" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" + "github.com/hashicorp/terraform-provider-azurerm/utils" + "golang.org/x/crypto/pkcs12" +) + +var _ sdk.EphemeralResource = &KeyVaultCertificateEphemeralResource{} + +func NewKeyVaultCertificateEphemeralResource() ephemeral.EphemeralResource { + return &KeyVaultCertificateEphemeralResource{} +} + +type KeyVaultCertificateEphemeralResource struct { + sdk.EphemeralResourceMetadata +} + +type KeyVaultCertificateEphemeralResourceModel struct { + Name types.String `tfsdk:"name"` + KeyVaultID types.String `tfsdk:"key_vault_id"` + Version types.String `tfsdk:"version"` + Hex types.String `tfsdk:"hex"` + Pem types.String `tfsdk:"pem"` + Key types.String `tfsdk:"key"` + ExpirationDate types.String `tfsdk:"expiration_date"` + NotBeforeDate types.String `tfsdk:"not_before_date"` + CertificateCount types.Int64 `tfsdk:"certificate_count"` +} + +func (e *KeyVaultCertificateEphemeralResource) Metadata(_ context.Context, _ ephemeral.MetadataRequest, resp *ephemeral.MetadataResponse) { + resp.TypeName = "azurerm_key_vault_certificate" +} + +func (e *KeyVaultCertificateEphemeralResource) Configure(_ context.Context, req ephemeral.ConfigureRequest, resp *ephemeral.ConfigureResponse) { + e.Defaults(req, resp) +} + +func (e *KeyVaultCertificateEphemeralResource) Schema(_ context.Context, _ ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "name": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + frameworkhelpers.WrappedStringValidator{ + Func: validation.StringIsNotEmpty, + }, + }, + }, + + "key_vault_id": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + frameworkhelpers.WrappedStringValidator{ + Func: commonids.ValidateKeyVaultID, + }, + }, + }, + + "version": schema.StringAttribute{ + Optional: true, + Computed: true, + Validators: []validator.String{ + frameworkhelpers.WrappedStringValidator{ + Func: validation.StringIsNotEmpty, + }, + }, + }, + + "hex": schema.StringAttribute{ + Computed: true, + }, + + "pem": schema.StringAttribute{ + Computed: true, + }, + + "key": schema.StringAttribute{ + Computed: true, + }, + + "expiration_date": schema.StringAttribute{ + Computed: true, + }, + + "not_before_date": schema.StringAttribute{ + Computed: true, + }, + + "certificate_count": schema.Int64Attribute{ + Computed: true, + }, + }, + } +} + +func (e *KeyVaultCertificateEphemeralResource) Open(ctx context.Context, req ephemeral.OpenRequest, resp *ephemeral.OpenResponse) { + keyVaultsClient := e.Client.KeyVault + client := e.Client.KeyVault.ManagementClient + ctx, cancel := context.WithTimeout(ctx, time.Minute*5) + defer cancel() + + var data KeyVaultCertificateEphemeralResourceModel + + if ok := e.DecodeOpen(ctx, req, resp, &data); !ok { + return + } + + keyVaultID, err := commonids.ParseKeyVaultID(data.KeyVaultID.ValueString()) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, "", err) + return + } + + keyVaultBaseUri, err := keyVaultsClient.BaseUriForKeyVault(ctx, *keyVaultID) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("looking up base uri for certificate %q in %s", data.Name.ValueString(), keyVaultID), err) + return + } + + response, err := client.GetCertificate(ctx, *keyVaultBaseUri, data.Name.ValueString(), data.Version.ValueString()) + if err != nil { + if utils.ResponseWasNotFound(response.Response) { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("certificate %q does not exist in %s", data.Name.ValueString(), keyVaultID), err) + return + } + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("retrieving certificate %q from %s", data.Name.ValueString(), keyVaultID), err) + return + } + + id, err := parse.ParseNestedItemID(*response.ID) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, "", err) + return + } + data.Version = types.StringValue(id.Version) + + if attributes := response.Attributes; attributes != nil { + if expires := attributes.Expires; expires != nil { + data.ExpirationDate = types.StringValue(time.Time(*expires).Format(time.RFC3339)) + } + + if notBefore := attributes.NotBefore; notBefore != nil { + data.NotBeforeDate = types.StringValue(time.Time(*notBefore).Format(time.RFC3339)) + } + } + + certificateData := "" + if response.Cer != nil { + certificateData = strings.ToUpper(hex.EncodeToString(*response.Cer)) + } + + data.Hex = types.StringValue(certificateData) + + pfx, err := client.GetSecret(ctx, id.KeyVaultBaseUrl, id.Name, id.Version) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("retrieving certificate %q from %s", data.Name.ValueString(), keyVaultID), err) + return + } + + pemBlocks := make([]*pem.Block, 0) + + if *pfx.ContentType == "application/x-pkcs12" { + bytes, err := base64.StdEncoding.DecodeString(*pfx.Value) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("decoding base64 certificate %q", id.Name), err) + return + } + + blocks, err := pkcs12.ToPEM(bytes, "") + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("decoding certificate %q", id.Name), err) + return + } + pemBlocks = blocks + } else { + block, rest := pem.Decode([]byte(*pfx.Value)) + if block == nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("decoding %q", id.Name), err) + return + } + pemBlocks = append(pemBlocks, block) + for len(rest) > 0 { + block, rest = pem.Decode(rest) + pemBlocks = append(pemBlocks, block) + } + } + + var pemKey []byte + var pemCerts [][]byte + + for _, block := range pemBlocks { + if strings.Contains(block.Type, "PRIVATE KEY") { + pemKey = block.Bytes + } + + if strings.Contains(block.Type, "CERTIFICATE") { + pemCerts = append(pemCerts, block.Bytes) + } + } + + var privateKey interface{} + + if *pfx.ContentType == "application/x-pkcs12" { + rsakey, err := x509.ParsePKCS1PrivateKey(pemKey) + if err != nil { + eckey, err := x509.ParseECPrivateKey(pemKey) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("decoding private key %q not RSA or ECDSA type", id.Name), err) + return + } + privateKey = eckey + } else { + privateKey = rsakey + } + } else { + pkey, err := x509.ParsePKCS8PrivateKey(pemKey) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("decoding PKCS8 RSA private key %q", id.Name), err) + return + } + privateKey = pkey + } + + var keyX509 []byte + var pemKeyHeader string + if privateKey != nil { + switch v := privateKey.(type) { + case *ecdsa.PrivateKey: + keyX509, err = x509.MarshalECPrivateKey(privateKey.(*ecdsa.PrivateKey)) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("marshalling private key %q of type %+v", id.Name, v), err) + return + } + pemKeyHeader = "EC PRIVATE KEY" + case *rsa.PrivateKey: + keyX509 = x509.MarshalPKCS1PrivateKey(privateKey.(*rsa.PrivateKey)) + pemKeyHeader = "RSA PRIVATE KEY" + default: + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("marshalling private key %q: key type %+v is not supported", id.Name, v), err) + return + } + } + + keyBlock := &pem.Block{ + Type: pemKeyHeader, + Bytes: keyX509, + } + + var keyPEM bytes.Buffer + err = pem.Encode(&keyPEM, keyBlock) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("encoding key for %q", id.Name), err) + return + } + + certs := "" + + for _, pemCert := range pemCerts { + certBlock := &pem.Block{ + Type: "CERTIFICATE", + Bytes: pemCert, + } + + var certPEM bytes.Buffer + err = pem.Encode(&certPEM, certBlock) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("encoding PEM for %q", id.Name), err) + return + } + certs += certPEM.String() + } + + data.Pem = types.StringValue(certs) + data.Key = types.StringValue(keyPEM.String()) + data.CertificateCount = types.Int64Value(int64(len(pemCerts))) + + resp.Diagnostics.Append(resp.Result.Set(ctx, &data)...) +} diff --git a/internal/services/keyvault/key_vault_certificate_ephemeral_test.go b/internal/services/keyvault/key_vault_certificate_ephemeral_test.go new file mode 100644 index 000000000000..cceb7e98b6fe --- /dev/null +++ b/internal/services/keyvault/key_vault_certificate_ephemeral_test.go @@ -0,0 +1,199 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package keyvault_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-version" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/knownvalue" + "github.com/hashicorp/terraform-plugin-testing/statecheck" + "github.com/hashicorp/terraform-plugin-testing/tfjsonpath" + "github.com/hashicorp/terraform-plugin-testing/tfversion" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework" +) + +type KeyVaultCertificateEphemeral struct{} + +func TestAccEphemeralKeyVaultCertificate_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "ephemeral.azurerm_key_vault_certificate", "test") + r := KeyVaultCertificateEphemeral{} + + resource.UnitTest(t, resource.TestCase{ + TerraformVersionChecks: []tfversion.TerraformVersionCheck{ + tfversion.SkipBelow(version.Must(version.NewVersion("1.10.0-rc1"))), + }, + ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"), + ProtoV6ProviderFactories: framework.ProtoV6ProviderFactoriesInit(context.Background(), "azurerm", "echo"), + Steps: []resource.TestStep{ + { + Config: r.basic(data), + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("hex"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("pem"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("key"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("not_before_date"), knownvalue.StringExact("2017-10-10T08:27:55Z")), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("expiration_date"), knownvalue.StringExact("2027-10-08T08:27:55Z")), + }, + }, + }, + }) +} + +func TestAccEphemeralKeyVaultCertificate_ecdsaPFX(t *testing.T) { + data := acceptance.BuildTestData(t, "ephemeral.azurerm_key_vault_certificate", "test") + r := KeyVaultCertificateEphemeral{} + + resource.UnitTest(t, resource.TestCase{ + TerraformVersionChecks: []tfversion.TerraformVersionCheck{ + tfversion.SkipBelow(version.Must(version.NewVersion("1.10.0-rc1"))), + }, + ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"), + ProtoV6ProviderFactories: framework.ProtoV6ProviderFactoriesInit(context.Background(), "azurerm", "echo"), + Steps: []resource.TestStep{ + { + Config: r.format(KeyVaultCertificateResource{}.basicImportPFX_ECDSA(data)), + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("hex"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("pem"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("key"), knownvalue.NotNull()), + }, + }, + }, + }) +} + +func TestAccEphemeralKeyVaultCertificate_ecdsaPEM(t *testing.T) { + data := acceptance.BuildTestData(t, "ephemeral.azurerm_key_vault_certificate", "test") + r := KeyVaultCertificateEphemeral{} + + resource.UnitTest(t, resource.TestCase{ + TerraformVersionChecks: []tfversion.TerraformVersionCheck{ + tfversion.SkipBelow(version.Must(version.NewVersion("1.10.0-rc1"))), + }, + ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"), + ProtoV6ProviderFactories: framework.ProtoV6ProviderFactoriesInit(context.Background(), "azurerm", "echo"), + Steps: []resource.TestStep{ + { + Config: r.format(KeyVaultCertificateResource{}.basicImportPEM_ECDSA(data)), + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("hex"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("pem"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("key"), knownvalue.NotNull()), + }, + }, + }, + }) +} + +func TestAccEphemeralKeyVaultCertificate_rsaBundlePEM(t *testing.T) { + data := acceptance.BuildTestData(t, "ephemeral.azurerm_key_vault_certificate", "test") + r := KeyVaultCertificateEphemeral{} + + resource.UnitTest(t, resource.TestCase{ + TerraformVersionChecks: []tfversion.TerraformVersionCheck{ + tfversion.SkipBelow(version.Must(version.NewVersion("1.10.0-rc1"))), + }, + ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"), + ProtoV6ProviderFactories: framework.ProtoV6ProviderFactoriesInit(context.Background(), "azurerm", "echo"), + Steps: []resource.TestStep{ + { + Config: r.format(KeyVaultCertificateResource{}.basicImportPEM_RSA_bundle(data)), + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("hex"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("pem"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("key"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("certificate_count"), knownvalue.Int64Exact(2)), + }, + }, + }, + }) +} + +func TestAccEphemeralKeyVaultCertificate_rsaSinglePEM(t *testing.T) { + data := acceptance.BuildTestData(t, "ephemeral.azurerm_key_vault_certificate", "test") + r := KeyVaultCertificateEphemeral{} + + resource.UnitTest(t, resource.TestCase{ + TerraformVersionChecks: []tfversion.TerraformVersionCheck{ + tfversion.SkipBelow(version.Must(version.NewVersion("1.10.0-rc1"))), + }, + ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"), + ProtoV6ProviderFactories: framework.ProtoV6ProviderFactoriesInit(context.Background(), "azurerm", "echo"), + Steps: []resource.TestStep{ + { + Config: r.format(KeyVaultCertificateResource{}.basicImportPEM_RSA(data)), + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("hex"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("pem"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("key"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("certificate_count"), knownvalue.Int64Exact(1)), + }, + }, + }, + }) +} + +func TestAccEphemeralKeyVaultCertificate_rsaBundlePFX(t *testing.T) { + data := acceptance.BuildTestData(t, "ephemeral.azurerm_key_vault_certificate", "test") + r := KeyVaultCertificateEphemeral{} + + resource.UnitTest(t, resource.TestCase{ + TerraformVersionChecks: []tfversion.TerraformVersionCheck{ + tfversion.SkipBelow(version.Must(version.NewVersion("1.10.0-rc1"))), + }, + ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"), + ProtoV6ProviderFactories: framework.ProtoV6ProviderFactoriesInit(context.Background(), "azurerm", "echo"), + Steps: []resource.TestStep{ + { + Config: r.format(KeyVaultCertificateResource{}.basicImportPFX_RSA_bundle(data)), + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("hex"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("pem"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("key"), knownvalue.NotNull()), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("certificate_count"), knownvalue.Int64Exact(2)), + }, + }, + }, + }) +} + +func (KeyVaultCertificateEphemeral) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +ephemeral "azurerm_key_vault_certificate" "test" { + name = azurerm_key_vault_certificate.test.name + key_vault_id = azurerm_key_vault.test.id +} + +provider "echo" { + data = ephemeral.azurerm_key_vault_certificate.test +} + +resource "echo" "test" {} +`, KeyVaultCertificateResource{}.basicImportPFX(data)) +} + +func (KeyVaultCertificateEphemeral) format(formatTemplate string) string { + return fmt.Sprintf(` +%s + +ephemeral "azurerm_key_vault_certificate" "test" { + name = azurerm_key_vault_certificate.test.name + key_vault_id = azurerm_key_vault.test.id + version = azurerm_key_vault_certificate.test.version +} + +provider "echo" { + data = ephemeral.azurerm_key_vault_certificate.test +} + +resource "echo" "test" {} +`, formatTemplate) +} diff --git a/internal/services/keyvault/key_vault_certificate_issuer_resource.go b/internal/services/keyvault/key_vault_certificate_issuer_resource.go index d91a6f41a53e..f2e0ba81ba5d 100644 --- a/internal/services/keyvault/key_vault_certificate_issuer_resource.go +++ b/internal/services/keyvault/key_vault_certificate_issuer_resource.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func resourceKeyVaultCertificateIssuer() *pluginsdk.Resource { diff --git a/internal/services/keyvault/key_vault_certificate_resource.go b/internal/services/keyvault/key_vault_certificate_resource.go index 90e02d80803f..722a76539a60 100644 --- a/internal/services/keyvault/key_vault_certificate_resource.go +++ b/internal/services/keyvault/key_vault_certificate_resource.go @@ -31,7 +31,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func resourceKeyVaultCertificate() *pluginsdk.Resource { @@ -188,7 +188,7 @@ func resourceKeyVaultCertificate() *pluginsdk.Resource { }, }, }, - //lintignore:XS003 + // lintignore:XS003 "trigger": { Type: pluginsdk.TypeList, Required: true, @@ -842,7 +842,7 @@ func resourceKeyVaultCertificateDelete(d *pluginsdk.ResourceData, meta interface } shouldPurge := meta.(*clients.Client).Features.KeyVault.PurgeSoftDeletedCertsOnDestroy - if shouldPurge && kv.Model != nil && utils.NormaliseNilableBool(kv.Model.Properties.EnablePurgeProtection) { + if shouldPurge && kv.Model != nil && pointer.From(kv.Model.Properties.EnablePurgeProtection) { log.Printf("[DEBUG] cannot purge certificate %q because vault %q has purge protection enabled", id.Name, keyVaultId.String()) shouldPurge = false } diff --git a/internal/services/keyvault/key_vault_certificates_data_source.go b/internal/services/keyvault/key_vault_certificates_data_source.go index 674f28303d75..581152a0fc71 100644 --- a/internal/services/keyvault/key_vault_certificates_data_source.go +++ b/internal/services/keyvault/key_vault_certificates_data_source.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func dataSourceKeyVaultCertificates() *pluginsdk.Resource { @@ -124,7 +124,7 @@ func dataSourceKeyVaultCertificatesRead(d *pluginsdk.ResourceData, meta interfac } func expandCertificate(name string, item keyvault.CertificateItem) map[string]interface{} { - var cert = map[string]interface{}{ + cert := map[string]interface{}{ "name": name, "id": *item.ID, } diff --git a/internal/services/keyvault/key_vault_key_data_source.go b/internal/services/keyvault/key_vault_key_data_source.go index 2e7542edbac3..c171a08bf500 100644 --- a/internal/services/keyvault/key_vault_key_data_source.go +++ b/internal/services/keyvault/key_vault_key_data_source.go @@ -21,7 +21,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func dataSourceKeyVaultKey() *pluginsdk.Resource { diff --git a/internal/services/keyvault/key_vault_key_resource.go b/internal/services/keyvault/key_vault_key_resource.go index ae27c7c2d4dc..5e1dc7f1ff07 100644 --- a/internal/services/keyvault/key_vault_key_resource.go +++ b/internal/services/keyvault/key_vault_key_resource.go @@ -33,7 +33,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" "golang.org/x/crypto/ssh" ) @@ -265,21 +265,12 @@ func resourceKeyVaultKey() *pluginsdk.Resource { return false // If old or new values are not strings, don't force new } - // Parse old and new expiration dates - oldDate, err1 := time.Parse(time.RFC3339, oldDateStr) - newDate, err2 := time.Parse(time.RFC3339, newDateStr) - if err1 != nil || err2 != nil { - return false // If there are parsing errors, don't force new + // There isn't a way to remove the expiration date from a key so we'll recreate the resource when it's removed from config + if oldDateStr != "" && newDateStr == "" { + return true } - // Compare old and new expiration dates - if newDate.After(oldDate) { - // If the new expiration date is further in the future, allow update - return false - } - - // If the new expiration date is not further, force recreation - return true + return false }), ), } @@ -672,7 +663,7 @@ func resourceKeyVaultKeyDelete(d *pluginsdk.ResourceData, meta interface{}) erro } shouldPurge := meta.(*clients.Client).Features.KeyVault.PurgeSoftDeletedKeysOnDestroy - if shouldPurge && kv.Model != nil && utils.NormaliseNilableBool(kv.Model.Properties.EnablePurgeProtection) { + if shouldPurge && kv.Model != nil && pointer.From(kv.Model.Properties.EnablePurgeProtection) { log.Printf("[DEBUG] cannot purge key %q because vault %q has purge protection enabled", id.Name, keyVaultId.String()) shouldPurge = false } diff --git a/internal/services/keyvault/key_vault_key_resource_test.go b/internal/services/keyvault/key_vault_key_resource_test.go index de4920ad93ba..403b4f72028d 100644 --- a/internal/services/keyvault/key_vault_key_resource_test.go +++ b/internal/services/keyvault/key_vault_key_resource_test.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type KeyVaultKeyResource struct{} @@ -137,6 +137,47 @@ func TestAccKeyVaultKey_complete(t *testing.T) { }) } +func TestAccKeyVaultKey_updateExpirationDate(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_key_vault_key", "test") + r := KeyVaultKeyResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("not_before_date").HasValue("2020-01-01T01:02:03Z"), + check.That(data.ResourceName).Key("expiration_date").HasValue("2021-01-01T01:02:03Z"), + check.That(data.ResourceName).Key("tags.%").HasValue("1"), + check.That(data.ResourceName).Key("tags.hello").HasValue("world"), + check.That(data.ResourceName).Key("versionless_id").HasValue(fmt.Sprintf("https://acctestkv-%s.vault.azure.net/keys/key-%s", data.RandomString, data.RandomString)), + ), + }, + data.ImportStep("key_size", "key_vault_id"), + { + Config: r.expirationDate(data, "2021-01-01T01:02:03Z"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("key_size", "key_vault_id"), + { + Config: r.expirationDate(data, "2022-01-01T01:02:03Z"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("key_size", "key_vault_id"), + { + Config: r.expirationDate(data, "2021-01-01T01:02:03Z"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("key_size", "key_vault_id"), + }) +} + func TestAccKeyVaultKey_softDeleteRecovery(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_key_vault_key", "test") r := KeyVaultKeyResource{} @@ -643,6 +684,38 @@ resource "azurerm_key_vault_key" "test" { `, r.templateStandard(data), data.RandomString) } +func (r KeyVaultKeyResource) expirationDate(data acceptance.TestData, expirationDate string) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_key_vault_key" "test" { + name = "key-%s" + key_vault_id = azurerm_key_vault.test.id + key_type = "RSA" + key_size = 2048 + not_before_date = "2020-01-01T01:02:03Z" + expiration_date = "%s" + + key_opts = [ + "decrypt", + "encrypt", + "sign", + "unwrapKey", + "verify", + "wrapKey", + ] + + tags = { + "hello" = "world" + } +} +`, r.templateStandard(data), data.RandomString, expirationDate) +} + func (r KeyVaultKeyResource) basicUpdated(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/keyvault/key_vault_managed_storage_account.go b/internal/services/keyvault/key_vault_managed_storage_account.go index ffa12f03550b..05f5e581d5e1 100644 --- a/internal/services/keyvault/key_vault_managed_storage_account.go +++ b/internal/services/keyvault/key_vault_managed_storage_account.go @@ -20,7 +20,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func resourceKeyVaultManagedStorageAccount() *pluginsdk.Resource { diff --git a/internal/services/keyvault/key_vault_managed_storage_account_sas_token_definition_resource.go b/internal/services/keyvault/key_vault_managed_storage_account_sas_token_definition_resource.go index dd1474f7897e..ff5544e36cb4 100644 --- a/internal/services/keyvault/key_vault_managed_storage_account_sas_token_definition_resource.go +++ b/internal/services/keyvault/key_vault_managed_storage_account_sas_token_definition_resource.go @@ -19,7 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func resourceKeyVaultManagedStorageAccountSasTokenDefinition() *pluginsdk.Resource { diff --git a/internal/services/keyvault/key_vault_resource.go b/internal/services/keyvault/key_vault_resource.go index 056a7478abe1..a21be7b7b7f3 100644 --- a/internal/services/keyvault/key_vault_resource.go +++ b/internal/services/keyvault/key_vault_resource.go @@ -5,6 +5,7 @@ package keyvault import ( "context" + "errors" "fmt" "log" "net/http" @@ -21,7 +22,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" commonValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" @@ -31,7 +31,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - dataplane "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + dataplane "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) var keyVaultResourceName = "azurerm_key_vault" @@ -266,15 +266,9 @@ func resourceKeyVaultCreate(d *pluginsdk.ResourceData, meta interface{}) error { contactCount := len(contactRaw) if contactCount > 0 { - if features.FourPointOhBeta() { - // In v4.0 providers block creation of all key vaults if the configuration - // file contains a 'contact' field... - return fmt.Errorf("%s: `contact` field is not supported for new key vaults", id) - } else if !isPublic { - // In v3.x providers block creation of key vaults if 'public_network_access_enabled' - // is 'false'... - return fmt.Errorf("%s: `contact` cannot be specified when `public_network_access_enabled` is set to `false`", id) - } + // In v4.0 providers block creation of all key vaults if the configuration + // file contains a 'contact' field... + return fmt.Errorf("%s: `contact` field is not supported for new key vaults", id) } // check for the presence of an existing, live one which should be imported into the state @@ -304,7 +298,7 @@ func resourceKeyVaultCreate(d *pluginsdk.ResourceData, meta interface{}) error { if !response.WasNotFound(softDeletedKeyVault.HttpResponse) && !response.WasStatusCode(softDeletedKeyVault.HttpResponse, http.StatusForbidden) { if !meta.(*clients.Client).Features.KeyVault.RecoverSoftDeletedKeyVaults { // this exists but the users opted out so they must import this it out-of-band - return fmt.Errorf(optedOutOfRecoveringSoftDeletedKeyVaultErrorFmt(id.VaultName, location)) + return errors.New(optedOutOfRecoveringSoftDeletedKeyVaultErrorFmt(id.VaultName, location)) } recoverSoftDeletedKeyVault = true diff --git a/internal/services/keyvault/key_vault_resource_test.go b/internal/services/keyvault/key_vault_resource_test.go index 1c59aafa874b..7159e191cb6d 100644 --- a/internal/services/keyvault/key_vault_resource_test.go +++ b/internal/services/keyvault/key_vault_resource_test.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -203,39 +202,6 @@ func TestAccKeyVault_upgradeSKU(t *testing.T) { }) } -func TestAccKeyVault_updateContacts(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("Skippped as deprecated property removed in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_key_vault", "test") - r := KeyVaultResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.updateContacts(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccKeyVault_publicNetworkAccessDisabled(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_key_vault", "test") r := KeyVaultResource{} @@ -1114,55 +1080,6 @@ resource "azurerm_key_vault" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } -// TODO: Remove in 4.0 -func (KeyVaultResource) updateContacts(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -data "azurerm_client_config" "current" { -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-kv-%d" - location = "%s" -} - -resource "azurerm_key_vault" "test" { - name = "vault%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - tenant_id = data.azurerm_client_config.current.tenant_id - sku_name = "standard" - soft_delete_retention_days = 7 - - access_policy { - tenant_id = data.azurerm_client_config.current.tenant_id - object_id = data.azurerm_client_config.current.object_id - - certificate_permissions = [ - "ManageContacts", - ] - - key_permissions = [ - "Create", - ] - - secret_permissions = [ - "Set", - ] - } - - contact { - email = "example@example.com" - name = "example" - phone = "01234567890" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - func (KeyVaultResource) basicPremiumSKU(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/keyvault/key_vault_secret_ephemeral.go b/internal/services/keyvault/key_vault_secret_ephemeral.go new file mode 100644 index 000000000000..03900d0c5c37 --- /dev/null +++ b/internal/services/keyvault/key_vault_secret_ephemeral.go @@ -0,0 +1,149 @@ +package keyvault + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/ephemeral/schema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk/frameworkhelpers" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" + "github.com/hashicorp/terraform-provider-azurerm/utils" +) + +var _ sdk.EphemeralResource = &KeyVaultSecretEphemeralResource{} + +func NewKeyVaultSecretEphemeralResource() ephemeral.EphemeralResource { + return &KeyVaultSecretEphemeralResource{} +} + +type KeyVaultSecretEphemeralResource struct { + sdk.EphemeralResourceMetadata +} + +type KeyVaultSecretEphemeralResourceModel struct { + Name types.String `tfsdk:"name"` + KeyVaultID types.String `tfsdk:"key_vault_id"` + Version types.String `tfsdk:"version"` + ExpirationDate types.String `tfsdk:"expiration_date"` + NotBeforeDate types.String `tfsdk:"not_before_date"` + Value types.String `tfsdk:"value"` +} + +func (e *KeyVaultSecretEphemeralResource) Metadata(_ context.Context, _ ephemeral.MetadataRequest, resp *ephemeral.MetadataResponse) { + resp.TypeName = "azurerm_key_vault_secret" +} + +func (e *KeyVaultSecretEphemeralResource) Configure(_ context.Context, req ephemeral.ConfigureRequest, resp *ephemeral.ConfigureResponse) { + e.Defaults(req, resp) +} + +func (e *KeyVaultSecretEphemeralResource) Schema(_ context.Context, _ ephemeral.SchemaRequest, resp *ephemeral.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: map[string]schema.Attribute{ + "name": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + frameworkhelpers.WrappedStringValidator{ + Func: validation.StringIsNotEmpty, + }, + }, + }, + + "key_vault_id": schema.StringAttribute{ + Required: true, + Validators: []validator.String{ + frameworkhelpers.WrappedStringValidator{ + Func: commonids.ValidateKeyVaultID, + }, + }, + }, + + "version": schema.StringAttribute{ + Optional: true, + Computed: true, + Validators: []validator.String{ + frameworkhelpers.WrappedStringValidator{ + Func: validation.StringIsNotEmpty, + }, + }, + }, + + "expiration_date": schema.StringAttribute{ + Computed: true, + }, + + "not_before_date": schema.StringAttribute{ + Computed: true, + }, + + "value": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (e *KeyVaultSecretEphemeralResource) Open(ctx context.Context, req ephemeral.OpenRequest, resp *ephemeral.OpenResponse) { + keyVaultsClient := e.Client.KeyVault + client := e.Client.KeyVault.ManagementClient + ctx, cancel := context.WithTimeout(ctx, time.Minute*5) + defer cancel() + + var data KeyVaultSecretEphemeralResourceModel + + if ok := e.DecodeOpen(ctx, req, resp, &data); !ok { + return + } + + keyVaultID, err := commonids.ParseKeyVaultID(data.KeyVaultID.ValueString()) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, "", err) + return + } + + keyVaultBaseUri, err := keyVaultsClient.BaseUriForKeyVault(ctx, *keyVaultID) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("looking up base uri for secret %q in %s", data.Name.ValueString(), keyVaultID), err) + return + } + + response, err := client.GetSecret(ctx, *keyVaultBaseUri, data.Name.ValueString(), data.Version.ValueString()) + if err != nil { + if utils.ResponseWasNotFound(response.Response) { + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("secret %s does not exist in %s", data.Name.ValueString(), keyVaultID), err) + return + } + sdk.SetResponseErrorDiagnostic(resp, fmt.Sprintf("retrieving secret %q from %s", data.Name.ValueString(), keyVaultID), err) + return + } + + data.Value = types.StringValue(pointer.From(response.Value)) + + id, err := parse.ParseNestedItemID(*response.ID) + if err != nil { + sdk.SetResponseErrorDiagnostic(resp, "", err) + return + } + + data.Version = types.StringValue(id.Version) + + if attributes := response.Attributes; attributes != nil { + if expirationDate := attributes.Expires; expirationDate != nil { + data.ExpirationDate = types.StringValue(time.Time(*expirationDate).Format(time.RFC3339)) + } + + if notBeforeDate := attributes.NotBefore; notBeforeDate != nil { + data.NotBeforeDate = types.StringValue(time.Time(*notBeforeDate).Format(time.RFC3339)) + } + } + + resp.Diagnostics.Append(resp.Result.Set(ctx, &data)...) +} diff --git a/internal/services/keyvault/key_vault_secret_ephemeral_test.go b/internal/services/keyvault/key_vault_secret_ephemeral_test.go new file mode 100644 index 000000000000..efcebf331170 --- /dev/null +++ b/internal/services/keyvault/key_vault_secret_ephemeral_test.go @@ -0,0 +1,100 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package keyvault_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-version" + "github.com/hashicorp/terraform-plugin-testing/helper/resource" + "github.com/hashicorp/terraform-plugin-testing/knownvalue" + "github.com/hashicorp/terraform-plugin-testing/statecheck" + "github.com/hashicorp/terraform-plugin-testing/tfjsonpath" + "github.com/hashicorp/terraform-plugin-testing/tfversion" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework" +) + +type KeyVaultSecretEphemeral struct{} + +func TestAccEphemeralKeyVaultSecret_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "ephemeral.azurerm_key_vault_secret", "test") + r := KeyVaultSecretEphemeral{} + + resource.UnitTest(t, resource.TestCase{ + TerraformVersionChecks: []tfversion.TerraformVersionCheck{ + tfversion.SkipBelow(version.Must(version.NewVersion("1.10.0-rc1"))), + }, + ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"), + ProtoV6ProviderFactories: framework.ProtoV6ProviderFactoriesInit(context.Background(), "azurerm", "echo"), + Steps: []resource.TestStep{ + { + Config: r.basic(data), + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("value"), knownvalue.StringExact("rick-and-morty")), + }, + }, + }, + }) +} + +func TestAccEphemeralKeyVaultSecret_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "ephemeral.azurerm_key_vault_secret", "test") + r := KeyVaultSecretEphemeral{} + + resource.UnitTest(t, resource.TestCase{ + TerraformVersionChecks: []tfversion.TerraformVersionCheck{ + tfversion.SkipBelow(version.Must(version.NewVersion("1.10.0-rc1"))), + }, + ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"), + ProtoV6ProviderFactories: framework.ProtoV6ProviderFactoriesInit(context.Background(), "azurerm", "echo"), + Steps: []resource.TestStep{ + { + Config: r.complete(data), + ConfigStateChecks: []statecheck.StateCheck{ + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("value"), knownvalue.StringExact("")), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("not_before_date"), knownvalue.StringExact("2019-01-01T01:02:03Z")), + statecheck.ExpectKnownValue("echo.test", tfjsonpath.New("data").AtMapKey("expiration_date"), knownvalue.StringExact("2020-01-01T01:02:03Z")), + }, + }, + }, + }) +} + +func (KeyVaultSecretEphemeral) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +ephemeral "azurerm_key_vault_secret" "test" { + name = azurerm_key_vault_secret.test.name + key_vault_id = azurerm_key_vault.test.id +} + +provider "echo" { + data = ephemeral.azurerm_key_vault_secret.test +} + +resource "echo" "test" {} +`, KeyVaultSecretResource{}.basic(data)) +} + +func (KeyVaultSecretEphemeral) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +ephemeral "azurerm_key_vault_secret" "test" { + name = azurerm_key_vault_secret.test.name + key_vault_id = azurerm_key_vault.test.id + version = azurerm_key_vault_secret.test.version +} + +provider "echo" { + data = ephemeral.azurerm_key_vault_secret.test +} + +resource "echo" "test" {} +`, KeyVaultSecretResource{}.complete(data)) +} diff --git a/internal/services/keyvault/key_vault_secret_resource.go b/internal/services/keyvault/key_vault_secret_resource.go index e158051b94cf..62bfac7d6486 100644 --- a/internal/services/keyvault/key_vault_secret_resource.go +++ b/internal/services/keyvault/key_vault_secret_resource.go @@ -11,6 +11,7 @@ import ( "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/date" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" @@ -23,7 +24,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func resourceKeyVaultSecret() *pluginsdk.Resource { @@ -413,7 +414,7 @@ func resourceKeyVaultSecretDelete(d *pluginsdk.ResourceData, meta interface{}) e } shouldPurge := meta.(*clients.Client).Features.KeyVault.PurgeSoftDeletedSecretsOnDestroy - if shouldPurge && kv.Model != nil && utils.NormaliseNilableBool(kv.Model.Properties.EnablePurgeProtection) { + if shouldPurge && kv.Model != nil && pointer.From(kv.Model.Properties.EnablePurgeProtection) { log.Printf("[DEBUG] cannot purge secret %q because %s has purge protection enabled", id.Name, *keyVaultId) shouldPurge = false } diff --git a/internal/services/keyvault/key_vault_secret_resource_test.go b/internal/services/keyvault/key_vault_secret_resource_test.go index 792790aa0532..f766e3ed8867 100644 --- a/internal/services/keyvault/key_vault_secret_resource_test.go +++ b/internal/services/keyvault/key_vault_secret_resource_test.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type KeyVaultSecretResource struct{} diff --git a/internal/services/keyvault/key_vault_secrets_data_source.go b/internal/services/keyvault/key_vault_secrets_data_source.go index 606902208e99..dad90720da0d 100644 --- a/internal/services/keyvault/key_vault_secrets_data_source.go +++ b/internal/services/keyvault/key_vault_secrets_data_source.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func dataSourceKeyVaultSecrets() *pluginsdk.Resource { diff --git a/internal/services/keyvault/parse/access_policy_application.go b/internal/services/keyvault/parse/access_policy_application.go index 96fe7c409139..c70ad97a1bb5 100644 --- a/internal/services/keyvault/parse/access_policy_application.go +++ b/internal/services/keyvault/parse/access_policy_application.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func AccessPolicyApplicationID(input string) (*AccessPolicyApplicationId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/keyvault/parse/access_policy_application_test.go b/internal/services/keyvault/parse/access_policy_application_test.go index 257e56a9f633..a0f10a5f5fc1 100644 --- a/internal/services/keyvault/parse/access_policy_application_test.go +++ b/internal/services/keyvault/parse/access_policy_application_test.go @@ -27,7 +27,6 @@ func TestAccessPolicyApplicationID(t *testing.T) { Error bool Expected *AccessPolicyApplicationId }{ - { // empty Input: "", diff --git a/internal/services/keyvault/parse/access_policy_object.go b/internal/services/keyvault/parse/access_policy_object.go index 0067f23aae1f..75f50528bb9e 100644 --- a/internal/services/keyvault/parse/access_policy_object.go +++ b/internal/services/keyvault/parse/access_policy_object.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func AccessPolicyObjectID(input string) (*AccessPolicyObjectId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/keyvault/parse/access_policy_object_test.go b/internal/services/keyvault/parse/access_policy_object_test.go index bdc48242a590..72d40a3e2c64 100644 --- a/internal/services/keyvault/parse/access_policy_object_test.go +++ b/internal/services/keyvault/parse/access_policy_object_test.go @@ -27,7 +27,6 @@ func TestAccessPolicyObjectID(t *testing.T) { Error bool Expected *AccessPolicyObjectId }{ - { // empty Input: "", diff --git a/internal/services/keyvault/parse/certificate.go b/internal/services/keyvault/parse/certificate.go index 54c973bfbdc0..14237a775c9a 100644 --- a/internal/services/keyvault/parse/certificate.go +++ b/internal/services/keyvault/parse/certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func CertificateID(input string) (*CertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/keyvault/parse/certificate_test.go b/internal/services/keyvault/parse/certificate_test.go index 19a822c5bc55..72c9acb91b9c 100644 --- a/internal/services/keyvault/parse/certificate_test.go +++ b/internal/services/keyvault/parse/certificate_test.go @@ -27,7 +27,6 @@ func TestCertificateID(t *testing.T) { Error bool Expected *CertificateId }{ - { // empty Input: "", diff --git a/internal/services/keyvault/parse/certificate_versionless.go b/internal/services/keyvault/parse/certificate_versionless.go index 4c92e954ffba..5d2025768929 100644 --- a/internal/services/keyvault/parse/certificate_versionless.go +++ b/internal/services/keyvault/parse/certificate_versionless.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func CertificateVersionlessID(input string) (*CertificateVersionlessId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/keyvault/parse/certificate_versionless_test.go b/internal/services/keyvault/parse/certificate_versionless_test.go index 9e2468fe987a..87547b70c823 100644 --- a/internal/services/keyvault/parse/certificate_versionless_test.go +++ b/internal/services/keyvault/parse/certificate_versionless_test.go @@ -27,7 +27,6 @@ func TestCertificateVersionlessID(t *testing.T) { Error bool Expected *CertificateVersionlessId }{ - { // empty Input: "", diff --git a/internal/services/keyvault/parse/key.go b/internal/services/keyvault/parse/key.go index 15cfc8e1a5a4..39f28eb72716 100644 --- a/internal/services/keyvault/parse/key.go +++ b/internal/services/keyvault/parse/key.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func KeyID(input string) (*KeyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/keyvault/parse/key_test.go b/internal/services/keyvault/parse/key_test.go index f18bdb6db03d..a33aa7febed9 100644 --- a/internal/services/keyvault/parse/key_test.go +++ b/internal/services/keyvault/parse/key_test.go @@ -27,7 +27,6 @@ func TestKeyID(t *testing.T) { Error bool Expected *KeyId }{ - { // empty Input: "", diff --git a/internal/services/keyvault/parse/key_versionless.go b/internal/services/keyvault/parse/key_versionless.go index 8a5b3f3882db..8ed458a454bd 100644 --- a/internal/services/keyvault/parse/key_versionless.go +++ b/internal/services/keyvault/parse/key_versionless.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func KeyVersionlessID(input string) (*KeyVersionlessId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/keyvault/parse/key_versionless_test.go b/internal/services/keyvault/parse/key_versionless_test.go index 54f1906b4bdd..c479b71acd0a 100644 --- a/internal/services/keyvault/parse/key_versionless_test.go +++ b/internal/services/keyvault/parse/key_versionless_test.go @@ -27,7 +27,6 @@ func TestKeyVersionlessID(t *testing.T) { Error bool Expected *KeyVersionlessId }{ - { // empty Input: "", diff --git a/internal/services/keyvault/parse/secret.go b/internal/services/keyvault/parse/secret.go index 6ab40a76d0c3..5baf24f8ff8f 100644 --- a/internal/services/keyvault/parse/secret.go +++ b/internal/services/keyvault/parse/secret.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SecretID(input string) (*SecretId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/keyvault/parse/secret_test.go b/internal/services/keyvault/parse/secret_test.go index 01e66685df5b..6ac99bc928de 100644 --- a/internal/services/keyvault/parse/secret_test.go +++ b/internal/services/keyvault/parse/secret_test.go @@ -27,7 +27,6 @@ func TestSecretID(t *testing.T) { Error bool Expected *SecretId }{ - { // empty Input: "", diff --git a/internal/services/keyvault/parse/secret_versionless.go b/internal/services/keyvault/parse/secret_versionless.go index 25a7d0567d08..c83fbd07748a 100644 --- a/internal/services/keyvault/parse/secret_versionless.go +++ b/internal/services/keyvault/parse/secret_versionless.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SecretVersionlessID(input string) (*SecretVersionlessId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/keyvault/parse/secret_versionless_test.go b/internal/services/keyvault/parse/secret_versionless_test.go index 70a444cedc71..0aa0bebc27ac 100644 --- a/internal/services/keyvault/parse/secret_versionless_test.go +++ b/internal/services/keyvault/parse/secret_versionless_test.go @@ -27,7 +27,6 @@ func TestSecretVersionlessID(t *testing.T) { Error bool Expected *SecretVersionlessId }{ - { // empty Input: "", diff --git a/internal/services/keyvault/registration.go b/internal/services/keyvault/registration.go index 9b35fbb26cab..a1d1c58d880c 100644 --- a/internal/services/keyvault/registration.go +++ b/internal/services/keyvault/registration.go @@ -4,6 +4,9 @@ package keyvault import ( + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -13,6 +16,7 @@ type Registration struct{} var ( _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} + _ sdk.FrameworkTypedServiceRegistration = Registration{} ) func (r Registration) AssociatedGitHubLabel() string { @@ -71,3 +75,18 @@ func (r Registration) Resources() []sdk.Resource { KeyVaultCertificateContactsResource{}, } } + +func (r Registration) FrameworkResources() []func() resource.Resource { + return []func() resource.Resource{} +} + +func (r Registration) FrameworkDataSources() []func() datasource.DataSource { + return []func() datasource.DataSource{} +} + +func (r Registration) EphemeralResources() []func() ephemeral.EphemeralResource { + return []func() ephemeral.EphemeralResource{ + NewKeyVaultCertificateEphemeralResource, + NewKeyVaultSecretEphemeralResource, + } +} diff --git a/internal/services/keyvault/validate/access_policy_application_id_test.go b/internal/services/keyvault/validate/access_policy_application_id_test.go index bf6a2a91dc1f..d8a7e35d7d99 100644 --- a/internal/services/keyvault/validate/access_policy_application_id_test.go +++ b/internal/services/keyvault/validate/access_policy_application_id_test.go @@ -12,7 +12,6 @@ func TestAccessPolicyApplicationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/keyvault/validate/access_policy_object_id_test.go b/internal/services/keyvault/validate/access_policy_object_id_test.go index 413319ece7be..3592c43bdf81 100644 --- a/internal/services/keyvault/validate/access_policy_object_id_test.go +++ b/internal/services/keyvault/validate/access_policy_object_id_test.go @@ -12,7 +12,6 @@ func TestAccessPolicyObjectID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/keyvault/validate/certificate_id_test.go b/internal/services/keyvault/validate/certificate_id_test.go index a767e30f89d3..a62f712f5200 100644 --- a/internal/services/keyvault/validate/certificate_id_test.go +++ b/internal/services/keyvault/validate/certificate_id_test.go @@ -12,7 +12,6 @@ func TestCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/keyvault/validate/certificate_versionless_id_test.go b/internal/services/keyvault/validate/certificate_versionless_id_test.go index 36e96187f1b4..d44ba6f7f652 100644 --- a/internal/services/keyvault/validate/certificate_versionless_id_test.go +++ b/internal/services/keyvault/validate/certificate_versionless_id_test.go @@ -12,7 +12,6 @@ func TestCertificateVersionlessID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/keyvault/validate/key_id_test.go b/internal/services/keyvault/validate/key_id_test.go index e1215f30be55..2ed18374a03e 100644 --- a/internal/services/keyvault/validate/key_id_test.go +++ b/internal/services/keyvault/validate/key_id_test.go @@ -12,7 +12,6 @@ func TestKeyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/keyvault/validate/key_versionless_id_test.go b/internal/services/keyvault/validate/key_versionless_id_test.go index 0f1cceba9cad..5b92db3a2f9b 100644 --- a/internal/services/keyvault/validate/key_versionless_id_test.go +++ b/internal/services/keyvault/validate/key_versionless_id_test.go @@ -12,7 +12,6 @@ func TestKeyVersionlessID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/keyvault/validate/secret_id_test.go b/internal/services/keyvault/validate/secret_id_test.go index 33e7b44aae95..db78e8803486 100644 --- a/internal/services/keyvault/validate/secret_id_test.go +++ b/internal/services/keyvault/validate/secret_id_test.go @@ -12,7 +12,6 @@ func TestSecretID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/keyvault/validate/secret_versionless_id_test.go b/internal/services/keyvault/validate/secret_versionless_id_test.go index 8deb91b1d418..43d471a60180 100644 --- a/internal/services/keyvault/validate/secret_versionless_id_test.go +++ b/internal/services/keyvault/validate/secret_versionless_id_test.go @@ -12,7 +12,6 @@ func TestSecretVersionlessID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/kusto/kusto_cluster_resource.go b/internal/services/kusto/kusto_cluster_resource.go index b373a13395d3..0191ad98078a 100644 --- a/internal/services/kusto/kusto_cluster_resource.go +++ b/internal/services/kusto/kusto_cluster_resource.go @@ -21,7 +21,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/kusto/validate" @@ -179,6 +178,25 @@ func resourceKustoCluster() *pluginsdk.Resource { Computed: true, }, + "language_extensions": { + Type: pluginsdk.TypeList, + Optional: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForLanguageExtensionName(), false), + }, + "image": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForLanguageExtensionImageName(), false), + }, + }, + }, + }, + "public_ip_type": { Type: pluginsdk.TypeString, Optional: true, @@ -234,42 +252,6 @@ func resourceKustoCluster() *pluginsdk.Resource { }, } - if features.FourPointOhBeta() { - resource.Schema["language_extensions"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForLanguageExtensionName(), false), - }, - "image": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForLanguageExtensionImageName(), false), - }, - }, - }, - } - } else { - resource.Schema["language_extensions"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeSet, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice([]string{"R", "PYTHON", "PYTHON_3.10.8"}, false), - }, - } - resource.Schema["engine"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Deprecated: "This property has been deprecated as it will no longer be supported by the API. It will be removed in v4.0 of the AzureRM Provider.", - ValidateFunc: validation.StringInSlice(clusters.PossibleValuesForEngineType(), false), - } - } - return resource } @@ -342,11 +324,11 @@ func resourceKustoClusterCreate(d *pluginsdk.ResourceData, meta interface{}) err } if v, ok := d.GetOk("allowed_fqdns"); ok { - clusterProperties.AllowedFqdnList, _ = expandKustoListString(v.([]interface{})) + clusterProperties.AllowedFqdnList = expandKustoListString(v.([]interface{})) } if v, ok := d.GetOk("allowed_ip_ranges"); ok { - clusterProperties.AllowedIPRangeList, _ = expandKustoListString(v.([]interface{})) + clusterProperties.AllowedIPRangeList = expandKustoListString(v.([]interface{})) } restrictOutboundNetworkAccess := clusters.ClusterNetworkAccessFlagDisabled @@ -357,13 +339,9 @@ func resourceKustoClusterCreate(d *pluginsdk.ResourceData, meta interface{}) err } clusterProperties.RestrictOutboundNetworkAccess = &restrictOutboundNetworkAccess - if features.FourPointOhBeta() { - if v, ok := d.GetOk("language_extensions"); ok { - extList := v.([]interface{}) - clusterProperties.LanguageExtensions = expandKustoClusterLanguageExtensionList(extList) - } - } else { - clusterProperties.LanguageExtensions = expandKustoClusterLanguageExtensions(d) + if v, ok := d.GetOk("language_extensions"); ok { + extList := v.([]interface{}) + clusterProperties.LanguageExtensions = expandKustoClusterLanguageExtensionList(extList) } expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(d.Get("identity").([]interface{})) @@ -463,17 +441,11 @@ func resourceKustoClusterUpdate(d *pluginsdk.ResourceData, meta interface{}) err } if d.HasChange("allowed_fqdns") { - props.AllowedFqdnList, err = expandKustoListString(d.Get("allowed_fqdns").([]interface{})) - if err != nil { - return err - } + props.AllowedFqdnList = expandKustoListString(d.Get("allowed_fqdns").([]interface{})) } if d.HasChange("allowed_ip_ranges") { - props.AllowedIPRangeList, err = expandKustoListString(d.Get("allowed_ip_ranges").([]interface{})) - if err != nil { - return err - } + props.AllowedIPRangeList = expandKustoListString(d.Get("allowed_ip_ranges").([]interface{})) } if d.HasChange("auto_stop_enabled") { @@ -489,12 +461,8 @@ func resourceKustoClusterUpdate(d *pluginsdk.ResourceData, meta interface{}) err } if d.HasChange("language_extensions") { - if features.FourPointOhBeta() { - if v, ok := d.GetOk("language_extensions"); ok { - props.LanguageExtensions = expandKustoClusterLanguageExtensionList(v.([]interface{})) - } - } else { - props.LanguageExtensions = expandKustoClusterLanguageExtensions(d) + if v, ok := d.GetOk("language_extensions"); ok { + props.LanguageExtensions = expandKustoClusterLanguageExtensionList(v.([]interface{})) } } @@ -630,12 +598,7 @@ func resourceKustoClusterRead(d *pluginsdk.ResourceData, meta interface{}) error d.Set("data_ingestion_uri", props.DataIngestionUri) d.Set("public_ip_type", string(pointer.From(props.PublicIPType))) - if features.FourPointOhBeta() { - d.Set("language_extensions", flattenKustoClusterLanguageExtensionList(props.LanguageExtensions)) - } else { - d.Set("language_extensions", flattenKustoClusterLanguageExtensions(props.LanguageExtensions)) - } - + d.Set("language_extensions", flattenKustoClusterLanguageExtensionList(props.LanguageExtensions)) } if err := tags.FlattenAndSet(d, model.Tags); err != nil { @@ -692,18 +655,14 @@ func flattenOptimizedAutoScale(optimizedAutoScale *clusters.OptimizedAutoscale) } } -func expandKustoListString(input []interface{}) (*[]string, error) { - if len(input) == 0 { - return nil, fmt.Errorf("list of string is empty") - } - +func expandKustoListString(input []interface{}) *[]string { result := make([]string, 0) for _, v := range input { result = append(result, v.(string)) } - return &result, nil + return &result } func expandKustoClusterSku(input []interface{}) (*clusters.AzureSku, error) { @@ -751,43 +710,6 @@ func expandKustoClusterVNET(input []interface{}) *clusters.VirtualNetworkConfigu } } -func expandKustoClusterLanguageExtensions(d *pluginsdk.ResourceData) *clusters.LanguageExtensionsList { - if v, ok := d.GetOk("language_extensions"); ok { - extList := v.(*pluginsdk.Set).List() - if len(extList) > 0 { - extensions := make([]clusters.LanguageExtension, 0) - for _, language := range extList { - name := language.(string) - lanExt := clusters.LanguageExtension{} - switch name { - case "R": - n := clusters.LanguageExtensionNameR - lanExt.LanguageExtensionName = &n - imageName := clusters.LanguageExtensionImageNameR - lanExt.LanguageExtensionImageName = &imageName - case "PYTHON": - n := clusters.LanguageExtensionNamePYTHON - lanExt.LanguageExtensionName = &n - imageName := clusters.LanguageExtensionImageNamePythonThreeSixFive - lanExt.LanguageExtensionImageName = &imageName - case "PYTHON_3.10.8": - n := clusters.LanguageExtensionNamePYTHON - lanExt.LanguageExtensionName = &n - imageName := clusters.LanguageExtensionImageNamePythonThreeOneZeroEight - lanExt.LanguageExtensionImageName = &imageName - default: - continue - } - extensions = append(extensions, lanExt) - } - return &clusters.LanguageExtensionsList{ - Value: &extensions, - } - } - } - return nil -} - func expandKustoClusterLanguageExtensionList(input []interface{}) *clusters.LanguageExtensionsList { if len(input) > 0 { extensions := make([]clusters.LanguageExtension, 0) @@ -839,30 +761,6 @@ func flattenKustoClusterVNET(vnet *clusters.VirtualNetworkConfiguration) []inter return []interface{}{output} } -func flattenKustoClusterLanguageExtensions(extensions *clusters.LanguageExtensionsList) []interface{} { - if extensions == nil { - return []interface{}{} - } - - output := make([]interface{}, 0) - if extensions.Value != nil { - for _, v := range *extensions.Value { - if v.LanguageExtensionImageName != nil { - switch *v.LanguageExtensionImageName { - case clusters.LanguageExtensionImageNameR: - output = append(output, "R") - case clusters.LanguageExtensionImageNamePythonThreeSixFive: - output = append(output, "PYTHON") - case clusters.LanguageExtensionImageNamePythonThreeOneZeroEight: - output = append(output, "PYTHON_3.10.8") - } - } - } - } - - return output -} - func flattenKustoClusterLanguageExtensionList(extensions *clusters.LanguageExtensionsList) []interface{} { if extensions == nil { return []interface{}{} diff --git a/internal/services/kusto/kusto_cluster_resource_test.go b/internal/services/kusto/kusto_cluster_resource_test.go index 2b9d0c4f0a07..4b0d3d7e261d 100644 --- a/internal/services/kusto/kusto_cluster_resource_test.go +++ b/internal/services/kusto/kusto_cluster_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -264,42 +263,6 @@ func TestAccKustoCluster_vnet(t *testing.T) { }) } -func TestAccKustoCluster_languageExtensions(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Property has been removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_kusto_cluster", "test") - r := KustoClusterResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.languageExtensions(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("language_extensions.#").HasValue("2"), - ), - }, - data.ImportStep(), - { - Config: r.languageExtensionsUpdate(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("language_extensions.#").HasValue("2"), - check.That(data.ResourceName).Key("language_extensions.1").HasValue("R"), - ), - }, - { - Config: r.languageExtensionsRemove(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("language_extensions.#").HasValue("1"), - check.That(data.ResourceName).Key("language_extensions.0").HasValue("R"), - ), - }, - data.ImportStep(), - }) -} - func TestAccKustoCluster_optimizedAutoScale(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_kusto_cluster", "test") r := KustoClusterResource{} @@ -809,84 +772,6 @@ resource "azurerm_kusto_cluster" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString) } -func (KustoClusterResource) languageExtensions(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_kusto_cluster" "test" { - name = "acctestkc%s" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - sku { - name = "Standard_E4d_v4" - capacity = 2 - } - - language_extensions = ["PYTHON", "R"] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomString) -} - -func (KustoClusterResource) languageExtensionsUpdate(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_kusto_cluster" "test" { - name = "acctestkc%s" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - sku { - name = "Standard_E4d_v4" - capacity = 2 - } - - language_extensions = ["PYTHON_3.10.8", "R"] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomString) -} - -func (KustoClusterResource) languageExtensionsRemove(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_kusto_cluster" "test" { - name = "acctestkc%s" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - sku { - name = "Standard_E4d_v4" - capacity = 2 - } - - language_extensions = ["R"] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomString) -} - func (KustoClusterResource) noOptimizedAutoScale(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/kusto/parse/database_principal.go b/internal/services/kusto/parse/database_principal.go index ead97a90e3eb..31fa3bd8bcfc 100644 --- a/internal/services/kusto/parse/database_principal.go +++ b/internal/services/kusto/parse/database_principal.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -34,7 +35,7 @@ func NewDatabasePrincipalID(subscriptionId, resourceGroup, clusterName, database func (id DatabasePrincipalId) String() string { segments := []string{ - fmt.Sprintf("F Q N Name %q", id.FQNName), + fmt.Sprintf("FQN Name %q", id.FQNName), fmt.Sprintf("Role Name %q", id.RoleName), fmt.Sprintf("Database Name %q", id.DatabaseName), fmt.Sprintf("Cluster Name %q", id.ClusterName), @@ -62,11 +63,11 @@ func DatabasePrincipalID(input string) (*DatabasePrincipalId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ClusterName, err = id.PopSegment("Clusters"); err != nil { diff --git a/internal/services/kusto/parse/database_principal_test.go b/internal/services/kusto/parse/database_principal_test.go index 99fe0fad4a48..36188f7e6704 100644 --- a/internal/services/kusto/parse/database_principal_test.go +++ b/internal/services/kusto/parse/database_principal_test.go @@ -27,7 +27,6 @@ func TestDatabasePrincipalID(t *testing.T) { Error bool Expected *DatabasePrincipalId }{ - { // empty Input: "", diff --git a/internal/services/kusto/validate/database_principal_id_test.go b/internal/services/kusto/validate/database_principal_id_test.go index 38d7985fe631..fccd5c8d1d60 100644 --- a/internal/services/kusto/validate/database_principal_id_test.go +++ b/internal/services/kusto/validate/database_principal_id_test.go @@ -12,7 +12,6 @@ func TestDatabasePrincipalID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/legacy/migration/legacy_vmss_v0_to_v1.go b/internal/services/legacy/migration/legacy_vmss_v0_to_v1.go index 8af6fe12d3af..cd39b484f629 100644 --- a/internal/services/legacy/migration/legacy_vmss_v0_to_v1.go +++ b/internal/services/legacy/migration/legacy_vmss_v0_to_v1.go @@ -242,7 +242,7 @@ func (LegacyVMSSV0ToV1) Schema() map[string]*pluginsdk.Schema { }, }, - //lintignore:S018 + // lintignore:S018 "os_profile_windows_config": { Type: pluginsdk.TypeSet, Optional: true, @@ -304,7 +304,7 @@ func (LegacyVMSSV0ToV1) Schema() map[string]*pluginsdk.Schema { Set: resourceArmVirtualMachineScaleSetOsProfileWindowsConfigHash, }, - //lintignore:S018 + // lintignore:S018 "os_profile_linux_config": { Type: pluginsdk.TypeSet, Optional: true, @@ -490,7 +490,7 @@ func (LegacyVMSSV0ToV1) Schema() map[string]*pluginsdk.Schema { }, }, - //lintignore:S018 + // lintignore:S018 "storage_profile_os_disk": { Type: pluginsdk.TypeSet, Required: true, @@ -577,7 +577,7 @@ func (LegacyVMSSV0ToV1) Schema() map[string]*pluginsdk.Schema { }, }, - //lintignore:S018 + // lintignore:S018 "storage_profile_image_reference": { Type: pluginsdk.TypeSet, Optional: true, @@ -614,7 +614,7 @@ func (LegacyVMSSV0ToV1) Schema() map[string]*pluginsdk.Schema { Set: resourceArmVirtualMachineScaleSetStorageProfileImageReferenceHash, }, - //lintignore:S018 + // lintignore:S018 "plan": { Type: pluginsdk.TypeSet, Optional: true, diff --git a/internal/services/legacy/virtual_machine_managed_disks_resource_test.go b/internal/services/legacy/virtual_machine_managed_disks_resource_test.go index b5364bfa543a..021ab4e95c77 100644 --- a/internal/services/legacy/virtual_machine_managed_disks_resource_test.go +++ b/internal/services/legacy/virtual_machine_managed_disks_resource_test.go @@ -633,6 +633,10 @@ variable "prefix" { default = "acctest%s" } +provider "azurerm" { + features {} +} + data "azurerm_client_config" "current" {} resource "azurerm_resource_group" "test" { diff --git a/internal/services/legacy/virtual_machine_resource.go b/internal/services/legacy/virtual_machine_resource.go index 7eae820bbea0..6033826a5914 100644 --- a/internal/services/legacy/virtual_machine_resource.go +++ b/internal/services/legacy/virtual_machine_resource.go @@ -22,8 +22,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -163,7 +163,7 @@ func resourceVirtualMachine() *pluginsdk.Resource { DiffSuppressFunc: suppress.CaseDifference, }, - //lintignore:S018 + // lintignore:S018 "storage_image_reference": { Type: pluginsdk.TypeSet, Optional: true, @@ -405,7 +405,7 @@ func resourceVirtualMachine() *pluginsdk.Resource { }, }, - //lintignore:S018 + // lintignore:S018 "os_profile": { Type: pluginsdk.TypeSet, Optional: true, @@ -441,7 +441,7 @@ func resourceVirtualMachine() *pluginsdk.Resource { Set: resourceVirtualMachineStorageOsProfileHash, }, - //lintignore:S018 + // lintignore:S018 "os_profile_windows_config": { Type: pluginsdk.TypeSet, Optional: true, @@ -526,7 +526,7 @@ func resourceVirtualMachine() *pluginsdk.Resource { ConflictsWith: []string{"os_profile_linux_config"}, }, - //lintignore:S018 + // lintignore:S018 "os_profile_linux_config": { Type: pluginsdk.TypeSet, Optional: true, diff --git a/internal/services/legacy/virtual_machine_scale_set_resource.go b/internal/services/legacy/virtual_machine_scale_set_resource.go index 1dfef04d695c..1df20d88132b 100644 --- a/internal/services/legacy/virtual_machine_scale_set_resource.go +++ b/internal/services/legacy/virtual_machine_scale_set_resource.go @@ -285,7 +285,7 @@ func resourceVirtualMachineScaleSet() *pluginsdk.Resource { }, }, - //lintignore:S018 + // lintignore:S018 "os_profile_windows_config": { Type: pluginsdk.TypeSet, Optional: true, @@ -346,7 +346,7 @@ func resourceVirtualMachineScaleSet() *pluginsdk.Resource { Set: resourceVirtualMachineScaleSetOsProfileWindowsConfigHash, }, - //lintignore:S018 + // lintignore:S018 "os_profile_linux_config": { Type: pluginsdk.TypeSet, Optional: true, @@ -381,7 +381,7 @@ func resourceVirtualMachineScaleSet() *pluginsdk.Resource { Set: resourceVirtualMachineScaleSetOsProfileLinuxConfigHash, }, - //lintignore:S018 + // lintignore:S018 "network_profile": { Type: pluginsdk.TypeSet, Required: true, @@ -540,7 +540,7 @@ func resourceVirtualMachineScaleSet() *pluginsdk.Resource { }, }, - //lintignore:S018 + // lintignore:S018 "storage_profile_os_disk": { Type: pluginsdk.TypeSet, Required: true, @@ -637,7 +637,7 @@ func resourceVirtualMachineScaleSet() *pluginsdk.Resource { }, }, - //lintignore:S018 + // lintignore:S018 "storage_profile_image_reference": { Type: pluginsdk.TypeSet, Optional: true, @@ -674,7 +674,7 @@ func resourceVirtualMachineScaleSet() *pluginsdk.Resource { Set: resourceVirtualMachineScaleSetStorageProfileImageReferenceHash, }, - //lintignore:S018 + // lintignore:S018 "plan": { Type: pluginsdk.TypeSet, Optional: true, @@ -699,7 +699,7 @@ func resourceVirtualMachineScaleSet() *pluginsdk.Resource { }, }, - //lintignore:S018 + // lintignore:S018 "extension": { Type: pluginsdk.TypeSet, Optional: true, diff --git a/internal/services/legacy/virtual_machine_scale_set_resource_test.go b/internal/services/legacy/virtual_machine_scale_set_resource_test.go index d78cd967e0f9..77906bdd1210 100644 --- a/internal/services/legacy/virtual_machine_scale_set_resource_test.go +++ b/internal/services/legacy/virtual_machine_scale_set_resource_test.go @@ -830,7 +830,6 @@ func (VirtualMachineScaleSetResource) hasLoadBalancer(ctx context.Context, clien } } } - } return fmt.Errorf("load balancer configuration was missing") diff --git a/internal/services/lighthouse/lighthouse_definition_resource.go b/internal/services/lighthouse/lighthouse_definition_resource.go index 9dd3e1dedb24..f27ac2963e7d 100644 --- a/internal/services/lighthouse/lighthouse_definition_resource.go +++ b/internal/services/lighthouse/lighthouse_definition_resource.go @@ -400,8 +400,7 @@ func expandLighthouseDefinitionEligibleAuthorization(input []interface{}) *[]reg return nil } - var results []registrationdefinitions.EligibleAuthorization - + results := make([]registrationdefinitions.EligibleAuthorization, 0, len(input)) for _, item := range input { v := item.(map[string]interface{}) @@ -447,8 +446,7 @@ func expandLighthouseDefinitionApprover(input []interface{}) *[]registrationdefi return nil } - var results []registrationdefinitions.EligibleApprover - + results := make([]registrationdefinitions.EligibleApprover, 0) for _, v := range input { eligibleApprover := v.(map[string]interface{}) @@ -471,8 +469,7 @@ func flattenLighthouseDefinitionEligibleAuthorization(input *[]registrationdefin return nil } - var results []interface{} - + results := make([]interface{}, 0, len(*input)) for _, item := range *input { result := map[string]interface{}{ "principal_id": item.PrincipalId, @@ -524,8 +521,7 @@ func flattenLighthouseDefinitionApprover(input *[]registrationdefinitions.Eligib return nil } - var results []interface{} - + results := make([]interface{}, 0, len(*input)) for _, item := range *input { result := map[string]interface{}{ "principal_id": item.PrincipalId, diff --git a/internal/services/loadbalancer/backend_address_pool_data_source.go b/internal/services/loadbalancer/backend_address_pool_data_source.go index 1b98c43acb4a..abea1ba59ab0 100644 --- a/internal/services/loadbalancer/backend_address_pool_data_source.go +++ b/internal/services/loadbalancer/backend_address_pool_data_source.go @@ -225,7 +225,6 @@ func flattenArmLoadBalancerBackendAddresses(input *[]loadbalancers.LoadBalancerB ) var inboundNATRulePortMappingList []interface{} if prop := e.Properties; prop != nil { - ipAddress = pointer.From(prop.IPAddress) if prop.VirtualNetwork != nil { diff --git a/internal/services/loadbalancer/backend_address_pool_resource.go b/internal/services/loadbalancer/backend_address_pool_resource.go index 678a49c15471..e4b3184f84a5 100644 --- a/internal/services/loadbalancer/backend_address_pool_resource.go +++ b/internal/services/loadbalancer/backend_address_pool_resource.go @@ -228,7 +228,8 @@ func resourceArmLoadBalancerBackendAddressPoolCreateUpdate(d *pluginsdk.Resource param.Properties = &loadbalancers.BackendAddressPoolPropertiesFormat{ VirtualNetwork: &loadbalancers.SubResource{ Id: pointer.To(v.(string)), - }} + }, + } } if v, ok := d.GetOk("synchronous_mode"); ok { diff --git a/internal/services/loadbalancer/loadbalancer_data_source.go b/internal/services/loadbalancer/loadbalancer_data_source.go index 5373b817aa59..3d89b4b48073 100644 --- a/internal/services/loadbalancer/loadbalancer_data_source.go +++ b/internal/services/loadbalancer/loadbalancer_data_source.go @@ -163,7 +163,6 @@ func dataSourceArmLoadBalancerRead(d *pluginsdk.ResourceData, meta interface{}) } return nil - } func flattenLoadBalancerDataSourceFrontendIpConfiguration(ipConfigs *[]loadbalancers.FrontendIPConfiguration) []interface{} { diff --git a/internal/services/loadbalancer/loadbalancer_resource.go b/internal/services/loadbalancer/loadbalancer_resource.go index 2c052ba84922..345fe99a8f85 100644 --- a/internal/services/loadbalancer/loadbalancer_resource.go +++ b/internal/services/loadbalancer/loadbalancer_resource.go @@ -25,7 +25,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -392,12 +391,7 @@ func resourceArmLoadBalancerSchema() map[string]*pluginsdk.Schema { "sku": { Type: pluginsdk.TypeString, Optional: true, - Default: func() interface{} { - if !features.FourPointOhBeta() { - return string(loadbalancers.LoadBalancerSkuNameBasic) - } - return string(loadbalancers.LoadBalancerSkuNameStandard) - }(), + Default: string(loadbalancers.LoadBalancerSkuNameStandard), ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ string(loadbalancers.LoadBalancerSkuNameBasic), diff --git a/internal/services/loadbalancer/nat_rule_resource.go b/internal/services/loadbalancer/nat_rule_resource.go index 99d51182cee9..23a045c71c48 100644 --- a/internal/services/loadbalancer/nat_rule_resource.go +++ b/internal/services/loadbalancer/nat_rule_resource.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -148,15 +147,6 @@ func resourceArmLoadBalancerNatRule() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["idle_timeout_in_minutes"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(4, 30), - } - } - return resource } diff --git a/internal/services/loadbalancer/parse/backend_address_pool_address.go b/internal/services/loadbalancer/parse/backend_address_pool_address.go index 3766fea5cca5..09c227016869 100644 --- a/internal/services/loadbalancer/parse/backend_address_pool_address.go +++ b/internal/services/loadbalancer/parse/backend_address_pool_address.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func BackendAddressPoolAddressID(input string) (*BackendAddressPoolAddressId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.LoadBalancerName, err = id.PopSegment("loadBalancers"); err != nil { diff --git a/internal/services/loadbalancer/parse/backend_address_pool_address_test.go b/internal/services/loadbalancer/parse/backend_address_pool_address_test.go index f97cb198d0ba..d38579f6c7cc 100644 --- a/internal/services/loadbalancer/parse/backend_address_pool_address_test.go +++ b/internal/services/loadbalancer/parse/backend_address_pool_address_test.go @@ -27,7 +27,6 @@ func TestBackendAddressPoolAddressID(t *testing.T) { Error bool Expected *BackendAddressPoolAddressId }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/parse/load_balancer_backend_address_pool.go b/internal/services/loadbalancer/parse/load_balancer_backend_address_pool.go index f63e77ba3b86..924c8f95a56e 100644 --- a/internal/services/loadbalancer/parse/load_balancer_backend_address_pool.go +++ b/internal/services/loadbalancer/parse/load_balancer_backend_address_pool.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func LoadBalancerBackendAddressPoolID(input string) (*LoadBalancerBackendAddress } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.LoadBalancerName, err = id.PopSegment("loadBalancers"); err != nil { @@ -95,11 +96,11 @@ func LoadBalancerBackendAddressPoolIDInsensitively(input string) (*LoadBalancerB } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'loadBalancers' segment diff --git a/internal/services/loadbalancer/parse/load_balancer_backend_address_pool_test.go b/internal/services/loadbalancer/parse/load_balancer_backend_address_pool_test.go index 6d7197e62707..710acd67fb5d 100644 --- a/internal/services/loadbalancer/parse/load_balancer_backend_address_pool_test.go +++ b/internal/services/loadbalancer/parse/load_balancer_backend_address_pool_test.go @@ -27,7 +27,6 @@ func TestLoadBalancerBackendAddressPoolID(t *testing.T) { Error bool Expected *LoadBalancerBackendAddressPoolId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestLoadBalancerBackendAddressPoolIDInsensitively(t *testing.T) { Error bool Expected *LoadBalancerBackendAddressPoolId }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/parse/load_balancer_frontend_ip_configuration.go b/internal/services/loadbalancer/parse/load_balancer_frontend_ip_configuration.go index da3ddf23661d..9ac24987cf99 100644 --- a/internal/services/loadbalancer/parse/load_balancer_frontend_ip_configuration.go +++ b/internal/services/loadbalancer/parse/load_balancer_frontend_ip_configuration.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -30,7 +31,7 @@ func NewLoadBalancerFrontendIpConfigurationID(subscriptionId, resourceGroup, loa func (id LoadBalancerFrontendIpConfigurationId) String() string { segments := []string{ - fmt.Sprintf("Frontend I P Configuration Name %q", id.FrontendIPConfigurationName), + fmt.Sprintf("FrontendIP Configuration Name %q", id.FrontendIPConfigurationName), fmt.Sprintf("Load Balancer Name %q", id.LoadBalancerName), fmt.Sprintf("Resource Group %q", id.ResourceGroup), } @@ -56,11 +57,11 @@ func LoadBalancerFrontendIpConfigurationID(input string) (*LoadBalancerFrontendI } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.LoadBalancerName, err = id.PopSegment("loadBalancers"); err != nil { @@ -95,11 +96,11 @@ func LoadBalancerFrontendIpConfigurationIDInsensitively(input string) (*LoadBala } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'loadBalancers' segment diff --git a/internal/services/loadbalancer/parse/load_balancer_frontend_ip_configuration_test.go b/internal/services/loadbalancer/parse/load_balancer_frontend_ip_configuration_test.go index 051f6880fa56..66a3a232bbb2 100644 --- a/internal/services/loadbalancer/parse/load_balancer_frontend_ip_configuration_test.go +++ b/internal/services/loadbalancer/parse/load_balancer_frontend_ip_configuration_test.go @@ -27,7 +27,6 @@ func TestLoadBalancerFrontendIpConfigurationID(t *testing.T) { Error bool Expected *LoadBalancerFrontendIpConfigurationId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestLoadBalancerFrontendIpConfigurationIDInsensitively(t *testing.T) { Error bool Expected *LoadBalancerFrontendIpConfigurationId }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/parse/load_balancer_inbound_nat_pool.go b/internal/services/loadbalancer/parse/load_balancer_inbound_nat_pool.go index 1d9b633d8f88..b485adab3ae7 100644 --- a/internal/services/loadbalancer/parse/load_balancer_inbound_nat_pool.go +++ b/internal/services/loadbalancer/parse/load_balancer_inbound_nat_pool.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func LoadBalancerInboundNatPoolID(input string) (*LoadBalancerInboundNatPoolId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.LoadBalancerName, err = id.PopSegment("loadBalancers"); err != nil { diff --git a/internal/services/loadbalancer/parse/load_balancer_inbound_nat_pool_test.go b/internal/services/loadbalancer/parse/load_balancer_inbound_nat_pool_test.go index 1d297f04a23f..cc3eb1108d96 100644 --- a/internal/services/loadbalancer/parse/load_balancer_inbound_nat_pool_test.go +++ b/internal/services/loadbalancer/parse/load_balancer_inbound_nat_pool_test.go @@ -27,7 +27,6 @@ func TestLoadBalancerInboundNatPoolID(t *testing.T) { Error bool Expected *LoadBalancerInboundNatPoolId }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/parse/load_balancer_inbound_nat_rule.go b/internal/services/loadbalancer/parse/load_balancer_inbound_nat_rule.go index 298515221563..9379ef934379 100644 --- a/internal/services/loadbalancer/parse/load_balancer_inbound_nat_rule.go +++ b/internal/services/loadbalancer/parse/load_balancer_inbound_nat_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func LoadBalancerInboundNatRuleID(input string) (*LoadBalancerInboundNatRuleId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.LoadBalancerName, err = id.PopSegment("loadBalancers"); err != nil { diff --git a/internal/services/loadbalancer/parse/load_balancer_inbound_nat_rule_test.go b/internal/services/loadbalancer/parse/load_balancer_inbound_nat_rule_test.go index cadb75abfd2e..b42984d022e7 100644 --- a/internal/services/loadbalancer/parse/load_balancer_inbound_nat_rule_test.go +++ b/internal/services/loadbalancer/parse/load_balancer_inbound_nat_rule_test.go @@ -27,7 +27,6 @@ func TestLoadBalancerInboundNatRuleID(t *testing.T) { Error bool Expected *LoadBalancerInboundNatRuleId }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/rule_resource.go b/internal/services/loadbalancer/rule_resource.go index 856e2dea396e..4b3072526101 100644 --- a/internal/services/loadbalancer/rule_resource.go +++ b/internal/services/loadbalancer/rule_resource.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" loadBalancerValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/loadbalancer/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -425,20 +424,5 @@ func resourceArmLoadBalancerRuleSchema() map[string]*pluginsdk.Schema { }, } - if !features.FourPointOhBeta() { - resource["idle_timeout_in_minutes"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(4, 100), - } - - resource["load_distribution"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - } - } - return resource } diff --git a/internal/services/loadbalancer/validate/backend_address_pool_address_id_test.go b/internal/services/loadbalancer/validate/backend_address_pool_address_id_test.go index 1e5602628557..290bb03952e3 100644 --- a/internal/services/loadbalancer/validate/backend_address_pool_address_id_test.go +++ b/internal/services/loadbalancer/validate/backend_address_pool_address_id_test.go @@ -12,7 +12,6 @@ func TestBackendAddressPoolAddressID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/validate/load_balancer_backend_address_pool_id_test.go b/internal/services/loadbalancer/validate/load_balancer_backend_address_pool_id_test.go index 386a9e705fa3..20dce7c1c7fd 100644 --- a/internal/services/loadbalancer/validate/load_balancer_backend_address_pool_id_test.go +++ b/internal/services/loadbalancer/validate/load_balancer_backend_address_pool_id_test.go @@ -12,7 +12,6 @@ func TestLoadBalancerBackendAddressPoolID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/validate/load_balancer_frontend_ip_configuration_id_test.go b/internal/services/loadbalancer/validate/load_balancer_frontend_ip_configuration_id_test.go index 91e3cc44bf4c..00e919d4b2e6 100644 --- a/internal/services/loadbalancer/validate/load_balancer_frontend_ip_configuration_id_test.go +++ b/internal/services/loadbalancer/validate/load_balancer_frontend_ip_configuration_id_test.go @@ -12,7 +12,6 @@ func TestLoadBalancerFrontendIpConfigurationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/validate/load_balancer_inbound_nat_pool_id_test.go b/internal/services/loadbalancer/validate/load_balancer_inbound_nat_pool_id_test.go index 7f8f38c291eb..a18991085eb2 100644 --- a/internal/services/loadbalancer/validate/load_balancer_inbound_nat_pool_id_test.go +++ b/internal/services/loadbalancer/validate/load_balancer_inbound_nat_pool_id_test.go @@ -12,7 +12,6 @@ func TestLoadBalancerInboundNatPoolID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/loadbalancer/validate/load_balancer_inbound_nat_rule_id_test.go b/internal/services/loadbalancer/validate/load_balancer_inbound_nat_rule_id_test.go index 22b414d14d7c..cb2563c1e9a6 100644 --- a/internal/services/loadbalancer/validate/load_balancer_inbound_nat_rule_id_test.go +++ b/internal/services/loadbalancer/validate/load_balancer_inbound_nat_rule_id_test.go @@ -12,7 +12,6 @@ func TestLoadBalancerInboundNatRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/loadtestservice/client/client.go b/internal/services/loadtestservice/client/client.go index 7e29654ffe82..4d6772539544 100644 --- a/internal/services/loadtestservice/client/client.go +++ b/internal/services/loadtestservice/client/client.go @@ -16,7 +16,6 @@ type AutoClient struct { } func NewClient(o *common.ClientOptions) (*AutoClient, error) { - v20221201Client, err := loadtestserviceV20221201.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) diff --git a/internal/services/loadtestservice/load_test_resource.go b/internal/services/loadtestservice/load_test_resource.go index bb74494aca0f..b0b88b147a71 100644 --- a/internal/services/loadtestservice/load_test_resource.go +++ b/internal/services/loadtestservice/load_test_resource.go @@ -21,8 +21,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -var _ sdk.Resource = LoadTestResource{} -var _ sdk.ResourceWithUpdate = LoadTestResource{} +var ( + _ sdk.Resource = LoadTestResource{} + _ sdk.ResourceWithUpdate = LoadTestResource{} +) type LoadTestResource struct{} @@ -54,9 +56,11 @@ type LoadTestEncryptionIdentity struct { func (r LoadTestResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return loadtests.ValidateLoadTestID } + func (r LoadTestResource) ResourceType() string { return "azurerm_load_test" } + func (r LoadTestResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "location": commonschema.Location(), @@ -67,7 +71,6 @@ func (r LoadTestResource) Arguments() map[string]*pluginsdk.Schema { }, "resource_group_name": commonschema.ResourceGroupName(), "description": { - ForceNew: true, Optional: true, Type: pluginsdk.TypeString, }, @@ -113,6 +116,7 @@ func (r LoadTestResource) Arguments() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } } + func (r LoadTestResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "data_plane_uri": { @@ -121,6 +125,7 @@ func (r LoadTestResource) Attributes() map[string]*pluginsdk.Schema { }, } } + func (r LoadTestResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -159,6 +164,7 @@ func (r LoadTestResource) Create() sdk.ResourceFunc { }, } } + func (r LoadTestResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -185,12 +191,16 @@ func (r LoadTestResource) Read() sdk.ResourceFunc { if err := r.mapLoadTestResourceToLoadTestResourceSchema(*model, &schema); err != nil { return fmt.Errorf("flattening model: %+v", err) } + if property := model.Properties; property != nil { + schema.Description = pointer.From(property.Description) + } } return metadata.Encode(&schema) }, } } + func (r LoadTestResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -210,6 +220,7 @@ func (r LoadTestResource) Delete() sdk.ResourceFunc { }, } } + func (r LoadTestResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -242,7 +253,6 @@ func (r LoadTestResource) Update() sdk.ResourceFunc { // nolint unparam func (r LoadTestResource) mapLoadTestResourceSchemaToLoadTestProperties(input LoadTestResourceSchema, output *loadtests.LoadTestProperties) error { - output.Description = &input.Description output.Encryption = r.mapLoadTestResourceSchemaToLoadTestEncryption(input.Encryption) @@ -294,7 +304,6 @@ func (r LoadTestResource) mapLoadTestPropertiesToLoadTestResourceSchema(input lo } func (r LoadTestResource) mapLoadTestResourceSchemaToLoadTestResource(input LoadTestResourceSchema, output *loadtests.LoadTestResource) error { - identity, err := identity.ExpandLegacySystemAndUserAssignedMapFromModel(input.Identity) if err != nil { return fmt.Errorf("expanding Legacy SystemAndUserAssigned Identity: %+v", err) @@ -315,7 +324,6 @@ func (r LoadTestResource) mapLoadTestResourceSchemaToLoadTestResource(input Load } func (r LoadTestResource) mapLoadTestResourceToLoadTestResourceSchema(input loadtests.LoadTestResource, output *LoadTestResourceSchema) error { - identity, err := identity.FlattenLegacySystemAndUserAssignedMapToModel(input.Identity) if err != nil { return fmt.Errorf("flattening Legacy SystemAndUserAssigned Identity: %+v", err) @@ -336,7 +344,6 @@ func (r LoadTestResource) mapLoadTestResourceToLoadTestResourceSchema(input load } func (r LoadTestResource) mapLoadTestResourceSchemaToLoadTestResourceUpdate(input LoadTestResourceSchema, output *loadtests.LoadTestResourceUpdate) error { - identity, err := identity.ExpandLegacySystemAndUserAssignedMapFromModel(input.Identity) if err != nil { return fmt.Errorf("expanding Legacy SystemAndUserAssigned Identity: %+v", err) @@ -344,12 +351,15 @@ func (r LoadTestResource) mapLoadTestResourceSchemaToLoadTestResourceUpdate(inpu output.Identity = identity output.Tags = tags.Expand(input.Tags) + + output.Properties = &loadtests.LoadTestResourceUpdateProperties{ + Description: pointer.To(input.Description), + } return nil } // nolint: unused func (r LoadTestResource) mapLoadTestResourceUpdateToLoadTestResourceSchema(input loadtests.LoadTestResourceUpdate, output *LoadTestResourceSchema) error { - identity, err := identity.FlattenLegacySystemAndUserAssignedMapToModel(input.Identity) if err != nil { return fmt.Errorf("flattening Legacy SystemAndUserAssigned Identity: %+v", err) diff --git a/internal/services/loadtestservice/load_test_resource_test.go b/internal/services/loadtestservice/load_test_resource_test.go index 352f8b67a547..5b155e01e795 100644 --- a/internal/services/loadtestservice/load_test_resource_test.go +++ b/internal/services/loadtestservice/load_test_resource_test.go @@ -119,6 +119,7 @@ func (r LoadTestTestResource) Exists(ctx context.Context, clients *clients.Clien return utils.Bool(resp.Model != nil), nil } + func (r LoadTestTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/loganalytics/log_analytics_data_export_resource.go b/internal/services/loganalytics/log_analytics_data_export_resource.go index d7438bd9a299..8f801058aa74 100644 --- a/internal/services/loganalytics/log_analytics_data_export_resource.go +++ b/internal/services/loganalytics/log_analytics_data_export_resource.go @@ -9,6 +9,7 @@ import ( "strings" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs" @@ -23,7 +24,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) func resourceLogAnalyticsDataExport() *pluginsdk.Resource { @@ -124,8 +124,10 @@ func resourceOperationalinsightsDataExportCreateUpdate(d *pluginsdk.ResourceData } destinationId := d.Get("destination_resource_id").(string) - var tableNames []string - for _, v := range d.Get("table_names").(*pluginsdk.Set).List() { + + tableNamesGet := d.Get("table_names").(*pluginsdk.Set).List() + tableNames := make([]string, 0, len(tableNamesGet)) + for _, v := range tableNamesGet { tableNames = append(tableNames, v.(string)) } @@ -135,27 +137,28 @@ func resourceOperationalinsightsDataExportCreateUpdate(d *pluginsdk.ResourceData ResourceId: destinationId, }, TableNames: tableNames, - Enable: utils.Bool(d.Get("enabled").(bool)), + Enable: pointer.To(d.Get("enabled").(bool)), }, } if strings.Contains(destinationId, "Microsoft.EventHub") { - _, err := eventhubs.ValidateNamespaceID(destinationId, "destination_resource_id") - if err == nil { + if _, err := eventhubs.ValidateNamespaceID(destinationId, "destination_resource_id"); err == nil { eventhubNamespace, err := eventhubs.ParseNamespaceID(destinationId) if err != nil { return fmt.Errorf("parsing destination eventhub namespaces id error: %+v", err) } + parameters.Properties.Destination.ResourceId = eventhubNamespace.ID() } else { eventhubId, err := eventhubs.ParseEventhubID(destinationId) if err != nil { return fmt.Errorf("parsing destination eventhub id error: %+v", err) } + destinationId = namespaces.NewNamespaceID(eventhubId.SubscriptionId, eventhubId.ResourceGroupName, eventhubId.NamespaceName).ID() parameters.Properties.Destination.ResourceId = destinationId parameters.Properties.Destination.MetaData = &dataexport.DestinationMetaData{ - EventHubName: utils.String(eventhubId.EventhubName), + EventHubName: pointer.To(eventhubId.EventhubName), } } } diff --git a/internal/services/loganalytics/log_analytics_solution_resource.go b/internal/services/loganalytics/log_analytics_solution_resource.go index cd395f520ecc..795ba375c7a5 100644 --- a/internal/services/loganalytics/log_analytics_solution_resource.go +++ b/internal/services/loganalytics/log_analytics_solution_resource.go @@ -55,8 +55,10 @@ type SolutionPlanModel struct { Product string `tfschema:"product"` } -var _ sdk.ResourceWithUpdate = LogAnalyticsSolutionResource{} -var _ sdk.ResourceWithStateMigration = LogAnalyticsSolutionResource{} +var ( + _ sdk.ResourceWithUpdate = LogAnalyticsSolutionResource{} + _ sdk.ResourceWithStateMigration = LogAnalyticsSolutionResource{} +) func (s LogAnalyticsSolutionResource) ModelObject() interface{} { return &SolutionResourceModel{} @@ -133,6 +135,7 @@ func (s LogAnalyticsSolutionResource) Arguments() map[string]*schema.Schema { func (s LogAnalyticsSolutionResource) Attributes() map[string]*schema.Schema { return map[string]*pluginsdk.Schema{} } + func (s LogAnalyticsSolutionResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -252,7 +255,6 @@ func (s LogAnalyticsSolutionResource) Read() sdk.ResourceFunc { } state.Tags = pointer.From(model.Tags) - } return metadata.Encode(&state) diff --git a/internal/services/loganalytics/log_analytics_workspace_table_resource.go b/internal/services/loganalytics/log_analytics_workspace_table_resource.go index d12520135b82..bee8106afab4 100644 --- a/internal/services/loganalytics/log_analytics_workspace_table_resource.go +++ b/internal/services/loganalytics/log_analytics_workspace_table_resource.go @@ -113,7 +113,6 @@ func (r LogAnalyticsWorkspaceTableResource) Create() sdk.ResourceFunc { return fmt.Errorf("decoding %+v", err) } client := metadata.Client.LogAnalytics.TablesClient - subscriptionId := metadata.Client.Account.SubscriptionId tableName := model.Name log.Printf("[INFO] preparing arguments for AzureRM Log Analytics Workspace Table %s update.", tableName) @@ -123,7 +122,7 @@ func (r LogAnalyticsWorkspaceTableResource) Create() sdk.ResourceFunc { return fmt.Errorf("invalid workspace object ID for table %s: %s", tableName, err) } - id := tables.NewTableID(subscriptionId, workspaceId.ResourceGroupName, workspaceId.WorkspaceName, tableName) + id := tables.NewTableID(workspaceId.SubscriptionId, workspaceId.ResourceGroupName, workspaceId.WorkspaceName, tableName) updateInput := tables.Table{ Properties: &tables.TableProperties{ diff --git a/internal/services/loganalytics/validate/log_analytics_storage_insights_workspace_name_test.go b/internal/services/loganalytics/validate/log_analytics_storage_insights_workspace_name_test.go index 176ae14ac98e..ed1327af7c6e 100644 --- a/internal/services/loganalytics/validate/log_analytics_storage_insights_workspace_name_test.go +++ b/internal/services/loganalytics/validate/log_analytics_storage_insights_workspace_name_test.go @@ -25,7 +25,7 @@ func TestLogAnalyticsStorageInsightsWorkspaceName(t *testing.T) { }, { Name: "Invalid characters space", - Input: "invalid Storage Insight Config Name Name", + Input: "invalid Storage Insight Config Name", Expected: false, }, { diff --git a/internal/services/logic/integration_service_environment.go b/internal/services/logic/integration_service_environment.go deleted file mode 100644 index c5076979184c..000000000000 --- a/internal/services/logic/integration_service_environment.go +++ /dev/null @@ -1,511 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package logic - -import ( - "context" - "fmt" - "log" - "strconv" - "strings" - "time" - - "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" - "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/logic/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -func resourceIntegrationServiceEnvironment() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceIntegrationServiceEnvironmentCreateUpdate, - Read: resourceIntegrationServiceEnvironmentRead, - Update: resourceIntegrationServiceEnvironmentCreateUpdate, - Delete: resourceIntegrationServiceEnvironmentDelete, - DeprecationMessage: "The \"azurerm_integrated_service_environment\" resource is deprecated and will be removed in v4.0 of the Azure Provider. The underlying Azure Service is being retired on 2024-08-31 and new instances cannot be provisioned by default after 2022-11-01. More information on the retirement and how to migrate to Logic Apps Standard (\"azurerm_logic_app_standard\") can be found here: https://aka.ms/isedeprecation.", - - Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := integrationserviceenvironments.ParseIntegrationServiceEnvironmentID(id) - return err - }), - - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(5 * time.Hour), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Update: pluginsdk.DefaultTimeout(5 * time.Hour), - Delete: pluginsdk.DefaultTimeout(5 * time.Hour), - }, - - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.IntegrationServiceEnvironmentName(), - }, - - "location": commonschema.Location(), - - "resource_group_name": commonschema.ResourceGroupName(), - - // Maximum scale units that you can add 10 - https://docs.microsoft.com/en-US/azure/logic-apps/logic-apps-limits-and-config#integration-service-environment-ise - // Developer Always 0 capacity - "sku_name": { - Type: pluginsdk.TypeString, - Optional: true, - Default: "Developer_0", - ValidateFunc: validation.StringInSlice([]string{ - "Developer_0", - "Premium_0", - "Premium_1", - "Premium_2", - "Premium_3", - "Premium_4", - "Premium_5", - "Premium_6", - "Premium_7", - "Premium_8", - "Premium_9", - "Premium_10", - }, false), - }, - - "access_endpoint_type": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, // The access end point type cannot be changed once the integration service environment is provisioned. - ValidateFunc: validation.StringInSlice([]string{ - string(integrationserviceenvironments.IntegrationServiceEnvironmentAccessEndpointTypeInternal), - string(integrationserviceenvironments.IntegrationServiceEnvironmentAccessEndpointTypeExternal), - }, false), - }, - - "virtual_network_subnet_ids": { - Type: pluginsdk.TypeSet, - Required: true, - ForceNew: true, // The network configuration subnets cannot be updated after integration service environment is created. - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: commonids.ValidateSubnetID, - }, - MinItems: 4, - MaxItems: 4, - }, - - "connector_endpoint_ip_addresses": { - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Schema{Type: pluginsdk.TypeString}, - }, - - "connector_outbound_ip_addresses": { - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Schema{Type: pluginsdk.TypeString}, - }, - - "workflow_endpoint_ip_addresses": { - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Schema{Type: pluginsdk.TypeString}, - }, - - "workflow_outbound_ip_addresses": { - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Schema{Type: pluginsdk.TypeString}, - }, - - "tags": commonschema.Tags(), - }, - - CustomizeDiff: pluginsdk.CustomDiffWithAll( - pluginsdk.ForceNewIfChange("sku_name", func(ctx context.Context, old, new, meta interface{}) bool { - oldSku := strings.Split(old.(string), "_") - newSku := strings.Split(new.(string), "_") - // The SKU cannot be changed once integration service environment has been provisioned. -> we need ForceNew - return oldSku[0] != newSku[0] - }), - ), - } -} - -func resourceIntegrationServiceEnvironmentCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Logic.IntegrationServiceEnvironmentClient - subscriptionId := meta.(*clients.Client).Account.SubscriptionId - ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) - defer cancel() - - log.Printf("[INFO] preparing arguments for Azure ARM Integration Service Environment creation.") - - id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) - - if d.IsNewResource() { - existing, err := client.Get(ctx, id) - if err != nil { - if !response.WasNotFound(existing.HttpResponse) { - return fmt.Errorf("checking for existing %s: %s", id, err) - } - } - - if !response.WasNotFound(existing.HttpResponse) { - return tf.ImportAsExistsError("azurerm_integration_service_environment", id.ID()) - } - } - - location := azure.NormalizeLocation(d.Get("location").(string)) - accessEndpointType := integrationserviceenvironments.IntegrationServiceEnvironmentAccessEndpointType(d.Get("access_endpoint_type").(string)) - virtualNetworkSubnetIds := d.Get("virtual_network_subnet_ids").(*pluginsdk.Set).List() - t := d.Get("tags").(map[string]interface{}) - - sku, err := expandIntegrationServiceEnvironmentSkuName(d.Get("sku_name").(string)) - if err != nil { - return fmt.Errorf("expanding `sku_name` for %s: %v", id, err) - } - - integrationServiceEnvironment := integrationserviceenvironments.IntegrationServiceEnvironment{ - Name: &id.IntegrationServiceEnvironmentName, - Location: &location, - Properties: &integrationserviceenvironments.IntegrationServiceEnvironmentProperties{ - NetworkConfiguration: &integrationserviceenvironments.NetworkConfiguration{ - AccessEndpoint: &integrationserviceenvironments.IntegrationServiceEnvironmentAccessEndpoint{ - Type: &accessEndpointType, - }, - Subnets: expandSubnetResourceID(virtualNetworkSubnetIds), - }, - }, - Sku: sku, - Tags: tags.Expand(t), - } - - if err = client.CreateOrUpdateThenPoll(ctx, id, integrationServiceEnvironment); err != nil { - return fmt.Errorf("creating/updating %s: %+v", id, err) - } - - d.SetId(id.ID()) - - return resourceIntegrationServiceEnvironmentRead(d, meta) -} - -func resourceIntegrationServiceEnvironmentRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Logic.IntegrationServiceEnvironmentClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := integrationserviceenvironments.ParseIntegrationServiceEnvironmentID(d.Id()) - if err != nil { - return err - } - - resp, err := client.Get(ctx, *id) - if err != nil { - if response.WasNotFound(resp.HttpResponse) { - d.SetId("") - return nil - } - return fmt.Errorf("retrieving %s: %+v", id.ID(), err) - } - - d.Set("name", id.IntegrationServiceEnvironmentName) - d.Set("resource_group_name", id.ResourceGroup) - - if model := resp.Model; model != nil { - d.Set("location", location.NormalizeNilable(model.Location)) - - if err := d.Set("sku_name", flattenIntegrationServiceEnvironmentSkuName(model.Sku)); err != nil { - return fmt.Errorf("setting `sku_name`: %+v", err) - } - - if props := model.Properties; props != nil { - if netCfg := props.NetworkConfiguration; netCfg != nil { - if accessEndpoint := netCfg.AccessEndpoint; accessEndpoint != nil { - d.Set("access_endpoint_type", string(pointer.From(accessEndpoint.Type))) - } - - d.Set("virtual_network_subnet_ids", flattenSubnetResourceID(netCfg.Subnets)) - } - - if props.EndpointsConfiguration == nil || props.EndpointsConfiguration.Connector == nil { - d.Set("connector_endpoint_ip_addresses", []interface{}{}) - d.Set("connector_outbound_ip_addresses", []interface{}{}) - } else { - d.Set("connector_endpoint_ip_addresses", flattenServiceEnvironmentIPAddresses(props.EndpointsConfiguration.Connector.AccessEndpointIPAddresses)) - d.Set("connector_outbound_ip_addresses", flattenServiceEnvironmentIPAddresses(props.EndpointsConfiguration.Connector.OutgoingIPAddresses)) - } - - if props.EndpointsConfiguration == nil || props.EndpointsConfiguration.Workflow == nil { - d.Set("workflow_endpoint_ip_addresses", []interface{}{}) - d.Set("workflow_outbound_ip_addresses", []interface{}{}) - } else { - d.Set("workflow_endpoint_ip_addresses", flattenServiceEnvironmentIPAddresses(props.EndpointsConfiguration.Workflow.AccessEndpointIPAddresses)) - d.Set("workflow_outbound_ip_addresses", flattenServiceEnvironmentIPAddresses(props.EndpointsConfiguration.Workflow.OutgoingIPAddresses)) - } - } - - return tags.FlattenAndSet(d, model.Tags) - } - - return nil -} - -func resourceIntegrationServiceEnvironmentDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Logic.IntegrationServiceEnvironmentClient - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := integrationserviceenvironments.ParseIntegrationServiceEnvironmentID(d.Id()) - if err != nil { - return fmt.Errorf("parsing Integration Service Environment ID `%q`: %+v", d.Id(), err) - } - - resp, err := client.Get(ctx, *id) - if err != nil { - if response.WasNotFound(resp.HttpResponse) { - return nil - } - return fmt.Errorf("retrieving %s: %+v", id.ID(), err) - } - - // Get subnet IDs before delete - subnetIDs := getSubnetIDs(resp.Model) - - // Not optimal behaviour for now - // It deletes synchronously and resource is not available anymore after return from delete operation - // Next, after return - delete operation is still in progress in the background and is still occupying subnets. - // As workaround we are checking on all involved subnets presence of serviceAssociationLink and resourceNavigationLink - // If the operation fails we are lost. We do not have original resource and we cannot resume delete operation. - // User has to wait for completion of delete operation in the background. - // It would be great to have async call with future struct - if resp, err := client.Delete(ctx, *id); err != nil { - if response.WasNotFound(resp.HttpResponse) { - return nil - } - - return fmt.Errorf("deleting %s: %+v", id.ID(), err) - } - - stateConf := &pluginsdk.StateChangeConf{ - Pending: []string{string(integrationserviceenvironments.WorkflowProvisioningStateDeleting)}, - Target: []string{string(integrationserviceenvironments.WorkflowProvisioningStateDeleted)}, - MinTimeout: 5 * time.Minute, - Refresh: integrationServiceEnvironmentDeleteStateRefreshFunc(ctx, meta.(*clients.Client), d.Id(), subnetIDs), - Timeout: d.Timeout(pluginsdk.TimeoutDelete), - ContinuousTargetOccurence: 1, - NotFoundChecks: 1, - } - - if _, err := stateConf.WaitForStateContext(ctx); err != nil { - return fmt.Errorf("waiting for deletion of %s: %+v", id.ID(), err) - } - - return nil -} - -func flattenIntegrationServiceEnvironmentSkuName(input *integrationserviceenvironments.IntegrationServiceEnvironmentSku) string { - if input == nil { - return "" - } - - name := "" - if input.Name != nil { - name = string(*input.Name) - } - - return fmt.Sprintf("%s_%d", name, *input.Capacity) -} - -func expandIntegrationServiceEnvironmentSkuName(skuName string) (*integrationserviceenvironments.IntegrationServiceEnvironmentSku, error) { - parts := strings.Split(skuName, "_") - if len(parts) != 2 { - return nil, fmt.Errorf("sku_name (%s) has the wrong number of parts (%d) after splitting on _", skuName, len(parts)) - } - - var sku integrationserviceenvironments.IntegrationServiceEnvironmentSkuName - switch parts[0] { - case string(integrationserviceenvironments.IntegrationServiceEnvironmentSkuNameDeveloper): - sku = integrationserviceenvironments.IntegrationServiceEnvironmentSkuNameDeveloper - case string(integrationserviceenvironments.IntegrationServiceEnvironmentSkuNamePremium): - sku = integrationserviceenvironments.IntegrationServiceEnvironmentSkuNamePremium - default: - return nil, fmt.Errorf("sku_name %s has unknown sku %s", skuName, parts[0]) - } - - capacity, err := strconv.Atoi(parts[1]) - if err != nil { - return nil, fmt.Errorf("cannot convert sku_name %s capacity %s to int", skuName, parts[1]) - } - - if sku != integrationserviceenvironments.IntegrationServiceEnvironmentSkuNamePremium && capacity > 0 { - return nil, fmt.Errorf("`capacity` can only be greater than zero for `sku_name` `Premium`") - } - - return &integrationserviceenvironments.IntegrationServiceEnvironmentSku{ - Name: &sku, - Capacity: utils.Int64(int64(capacity)), - }, nil -} - -func expandSubnetResourceID(input []interface{}) *[]integrationserviceenvironments.ResourceReference { - results := make([]integrationserviceenvironments.ResourceReference, 0) - for _, item := range input { - results = append(results, integrationserviceenvironments.ResourceReference{ - Id: utils.String(item.(string)), - }) - } - return &results -} - -func flattenSubnetResourceID(input *[]integrationserviceenvironments.ResourceReference) []interface{} { - subnetIDs := make([]interface{}, 0) - if input == nil { - return subnetIDs - } - - for _, resourceRef := range *input { - if resourceRef.Id == nil || *resourceRef.Id == "" { - continue - } - - subnetIDs = append(subnetIDs, resourceRef.Id) - } - - return subnetIDs -} - -func getSubnetIDs(input *integrationserviceenvironments.IntegrationServiceEnvironment) []interface{} { - results := make([]interface{}, 0) - if input == nil { - return results - } - - if props := input.Properties; props != nil { - if netCfg := props.NetworkConfiguration; netCfg != nil { - return flattenSubnetResourceID(netCfg.Subnets) - } - } - - return results -} - -func integrationServiceEnvironmentDeleteStateRefreshFunc(ctx context.Context, client *clients.Client, iseID string, subnetIDs []interface{}) pluginsdk.StateRefreshFunc { - return func() (interface{}, string, error) { - linkExists, err := linkExists(ctx, client, iseID, subnetIDs) - if err != nil { - return string(integrationserviceenvironments.WorkflowProvisioningStateDeleting), string(integrationserviceenvironments.WorkflowProvisioningStateDeleting), err - } - - if linkExists { - return string(integrationserviceenvironments.WorkflowProvisioningStateDeleting), string(integrationserviceenvironments.WorkflowProvisioningStateDeleting), nil - } - - return string(integrationserviceenvironments.WorkflowProvisioningStateDeleted), string(integrationserviceenvironments.WorkflowProvisioningStateDeleted), nil - } -} - -func linkExists(ctx context.Context, client *clients.Client, iseID string, subnetIDs []interface{}) (bool, error) { - for _, subnetID := range subnetIDs { - if subnetID == nil { - continue - } - - id := *(subnetID.(*string)) - log.Printf("Checking links on subnetID: %q\n", id) - - hasLink, err := serviceAssociationLinkExists(ctx, client.Network.VirtualNetworks, iseID, id) - if err != nil { - return false, err - } - - if hasLink { - return true, nil - } else { - hasLink, err := resourceNavigationLinkExists(ctx, client.Network.VirtualNetworks, id) - if err != nil { - return false, err - } - - if hasLink { - return true, nil - } - } - } - - return false, nil -} - -func serviceAssociationLinkExists(ctx context.Context, client *virtualnetworks.VirtualNetworksClient, iseID string, subnetID string) (bool, error) { - id, err := commonids.ParseSubnetID(subnetID) - if err != nil { - return false, err - } - - resp, err := client.ServiceAssociationLinksList(ctx, *id) - if err != nil { - if response.WasNotFound(resp.HttpResponse) { - return false, nil - } - return false, fmt.Errorf("retrieving Service Association Links from Virtual Network %q, subnet %q (Resource Group %q): %+v", id.VirtualNetworkName, id.SubscriptionId, id.ResourceGroupName, err) - } - - if model := resp.Model; model != nil { - for _, link := range *model { - if link.Properties != nil && link.Properties.Link != nil { - if strings.EqualFold(iseID, *link.Properties.Link) { - log.Printf("Has Service Association Link: %q\n", *link.Id) - return true, nil - } - } - } - } - - return false, nil -} - -func resourceNavigationLinkExists(ctx context.Context, client *virtualnetworks.VirtualNetworksClient, subnetID string) (bool, error) { - id, err := commonids.ParseSubnetID(subnetID) - if err != nil { - return false, err - } - - resp, err := client.ResourceNavigationLinksList(ctx, *id) - if err != nil { - if response.WasNotFound(resp.HttpResponse) { - return false, nil - } - return false, fmt.Errorf("retrieving Resource Navigation Links from Virtual Network %q, subnet %q (Resource Group %q): %+v", id.VirtualNetworkName, id.SubnetName, id.ResourceGroupName, err) - } - - if model := resp.Model; model != nil { - for _, link := range *model { - log.Printf("Has Resource Navigation Link: %q\n", *link.Id) - return true, nil - } - } - - return false, nil -} - -func flattenServiceEnvironmentIPAddresses(input *[]integrationserviceenvironments.IPAddress) []interface{} { - if input == nil { - return []interface{}{} - } - - var addresses []interface{} - for _, addr := range *input { - addresses = append(addresses, *addr.Address) - } - return addresses -} diff --git a/internal/services/logic/integration_service_environment_resource_test.go b/internal/services/logic/integration_service_environment_resource_test.go deleted file mode 100644 index 5c7083a31564..000000000000 --- a/internal/services/logic/integration_service_environment_resource_test.go +++ /dev/null @@ -1,369 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package logic_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type IntegrationServiceEnvironmentResource struct{} - -func TestAccIntegrationServiceEnvironment_basic(t *testing.T) { - t.Skip("Skipping since Integration Service Environment is deprecated.") - - data := acceptance.BuildTestData(t, "azurerm_integration_service_environment", "test") - r := IntegrationServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("location").HasValue(data.Locations.Primary), - check.That(data.ResourceName).Key("resource_group_name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("sku_name").HasValue("Premium_0"), - check.That(data.ResourceName).Key("access_endpoint_type").HasValue("Internal"), - check.That(data.ResourceName).Key("virtual_network_subnet_ids.#").HasValue("4"), - check.That(data.ResourceName).Key("tags.%").HasValue("0"), - check.That(data.ResourceName).Key("connector_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("connector_outbound_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_outbound_ip_addresses.#").Exists(), - ), - }, - data.ImportStep(), - }) -} - -func TestAccIntegrationServiceEnvironment_complete(t *testing.T) { - t.Skip("Skipping since Integration Service Environment is deprecated.") - - data := acceptance.BuildTestData(t, "azurerm_integration_service_environment", "test") - r := IntegrationServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.complete(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("location").HasValue(data.Locations.Primary), - check.That(data.ResourceName).Key("resource_group_name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("sku_name").HasValue("Premium_0"), - check.That(data.ResourceName).Key("access_endpoint_type").HasValue("Internal"), - check.That(data.ResourceName).Key("virtual_network_subnet_ids.#").HasValue("4"), - check.That(data.ResourceName).Key("tags.%").HasValue("1"), - check.That(data.ResourceName).Key("tags.environment").HasValue("development"), - check.That(data.ResourceName).Key("connector_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("connector_outbound_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_outbound_ip_addresses.#").Exists(), - ), - }, - data.ImportStep(), - }) -} - -func TestAccIntegrationServiceEnvironment_developer(t *testing.T) { - t.Skip("Skipping since Integration Service Environment is deprecated.") - - data := acceptance.BuildTestData(t, "azurerm_integration_service_environment", "test") - r := IntegrationServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.developer(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("location").HasValue(data.Locations.Primary), - check.That(data.ResourceName).Key("resource_group_name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("sku_name").HasValue("Developer_0"), - check.That(data.ResourceName).Key("access_endpoint_type").HasValue("Internal"), - check.That(data.ResourceName).Key("virtual_network_subnet_ids.#").HasValue("4"), - check.That(data.ResourceName).Key("tags.%").HasValue("1"), - check.That(data.ResourceName).Key("tags.environment").HasValue("development"), - check.That(data.ResourceName).Key("connector_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("connector_outbound_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_outbound_ip_addresses.#").Exists(), - ), - }, - data.ImportStep(), - }) -} - -func TestAccIntegrationServiceEnvironment_update(t *testing.T) { - t.Skip("Skipping since Integration Service Environment is deprecated.") - - data := acceptance.BuildTestData(t, "azurerm_integration_service_environment", "test") - r := IntegrationServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("location").HasValue(data.Locations.Primary), - check.That(data.ResourceName).Key("resource_group_name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("sku_name").HasValue("Premium_0"), - check.That(data.ResourceName).Key("access_endpoint_type").HasValue("Internal"), - check.That(data.ResourceName).Key("virtual_network_subnet_ids.#").HasValue("4"), - check.That(data.ResourceName).Key("tags.%").HasValue("0"), - check.That(data.ResourceName).Key("connector_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("connector_outbound_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_outbound_ip_addresses.#").Exists(), - ), - }, - data.ImportStep(), - { - Config: r.skuName(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("location").HasValue(data.Locations.Primary), - check.That(data.ResourceName).Key("resource_group_name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("sku_name").HasValue("Premium_1"), - check.That(data.ResourceName).Key("access_endpoint_type").HasValue("Internal"), - check.That(data.ResourceName).Key("virtual_network_subnet_ids.#").HasValue("4"), - check.That(data.ResourceName).Key("tags.%").HasValue("0"), - check.That(data.ResourceName).Key("connector_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("connector_outbound_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_outbound_ip_addresses.#").Exists(), - ), - }, - data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("location").HasValue(data.Locations.Primary), - check.That(data.ResourceName).Key("resource_group_name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("sku_name").HasValue("Premium_0"), - check.That(data.ResourceName).Key("access_endpoint_type").HasValue("Internal"), - check.That(data.ResourceName).Key("virtual_network_subnet_ids.#").HasValue("4"), - check.That(data.ResourceName).Key("tags.%").HasValue("0"), - check.That(data.ResourceName).Key("connector_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("connector_outbound_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_outbound_ip_addresses.#").Exists(), - ), - }, - data.ImportStep(), - }) -} - -func TestAccIntegrationServiceEnvironment_requiresImport(t *testing.T) { - t.Skip("Skipping since Integration Service Environment is deprecated.") - - data := acceptance.BuildTestData(t, "azurerm_integration_service_environment", "test") - r := IntegrationServiceEnvironmentResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.complete(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("location").HasValue(data.Locations.Primary), - check.That(data.ResourceName).Key("resource_group_name").HasValue(fmt.Sprintf("acctestRG-logic-%d", data.RandomInteger)), - check.That(data.ResourceName).Key("sku_name").HasValue("Premium_0"), - check.That(data.ResourceName).Key("access_endpoint_type").HasValue("Internal"), - check.That(data.ResourceName).Key("virtual_network_subnet_ids.#").HasValue("4"), - check.That(data.ResourceName).Key("tags.%").HasValue("1"), - check.That(data.ResourceName).Key("tags.environment").HasValue("development"), - check.That(data.ResourceName).Key("connector_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("connector_outbound_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_endpoint_ip_addresses.#").Exists(), - check.That(data.ResourceName).Key("workflow_outbound_ip_addresses.#").Exists(), - ), - }, - data.RequiresImportErrorStep(r.requiresImport), - }) -} - -func (IntegrationServiceEnvironmentResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := integrationserviceenvironments.ParseIntegrationServiceEnvironmentID(state.ID) - if err != nil { - return nil, err - } - - resp, err := clients.Logic.IntegrationServiceEnvironmentClient.Get(ctx, *id) - if err != nil { - return nil, fmt.Errorf("retrieving %s: %v", id.ID(), err) - } - - return utils.Bool(resp.Model != nil), nil -} - -func (IntegrationServiceEnvironmentResource) template(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-logic-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctest-vnet-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - address_space = ["10.0.0.0/22"] -} - -resource "azurerm_subnet" "isesubnet1" { - name = "isesubnet1" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.1.0/27"] - - delegation { - name = "integrationServiceEnvironments" - service_delegation { - name = "Microsoft.Logic/integrationServiceEnvironments" - actions = ["Microsoft.Network/virtualNetworks/subnets/action"] - } - } -} - -resource "azurerm_subnet" "isesubnet2" { - name = "isesubnet2" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.1.32/27"] -} - -resource "azurerm_subnet" "isesubnet3" { - name = "isesubnet3" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.1.64/27"] -} - -resource "azurerm_subnet" "isesubnet4" { - name = "isesubnet4" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.1.96/27"] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - -func (r IntegrationServiceEnvironmentResource) basic(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_integration_service_environment" "test" { - name = "acctestRG-logic-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku_name = "Premium_0" - access_endpoint_type = "Internal" - virtual_network_subnet_ids = [ - azurerm_subnet.isesubnet1.id, - azurerm_subnet.isesubnet2.id, - azurerm_subnet.isesubnet3.id, - azurerm_subnet.isesubnet4.id - ] -} -`, r.template(data), data.RandomInteger) -} - -func (r IntegrationServiceEnvironmentResource) complete(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_integration_service_environment" "test" { - name = "acctestRG-logic-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku_name = "Premium_0" - access_endpoint_type = "Internal" - virtual_network_subnet_ids = [ - azurerm_subnet.isesubnet1.id, - azurerm_subnet.isesubnet2.id, - azurerm_subnet.isesubnet3.id, - azurerm_subnet.isesubnet4.id - ] - tags = { - environment = "development" - } -} -`, r.template(data), data.RandomInteger) -} - -func (r IntegrationServiceEnvironmentResource) developer(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_integration_service_environment" "test" { - name = "acctestRG-logic-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku_name = "Developer_0" - access_endpoint_type = "Internal" - virtual_network_subnet_ids = [ - azurerm_subnet.isesubnet1.id, - azurerm_subnet.isesubnet2.id, - azurerm_subnet.isesubnet3.id, - azurerm_subnet.isesubnet4.id - ] - tags = { - environment = "development" - } -} -`, r.template(data), data.RandomInteger) -} - -func (r IntegrationServiceEnvironmentResource) skuName(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_integration_service_environment" "test" { - name = "acctestRG-logic-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku_name = "Premium_1" - access_endpoint_type = "Internal" - virtual_network_subnet_ids = [ - azurerm_subnet.isesubnet1.id, - azurerm_subnet.isesubnet2.id, - azurerm_subnet.isesubnet3.id, - azurerm_subnet.isesubnet4.id - ] -} -`, r.template(data), data.RandomInteger) -} - -func (r IntegrationServiceEnvironmentResource) requiresImport(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_integration_service_environment" "import" { - name = azurerm_integration_service_environment.test.name - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku_name = azurerm_integration_service_environment.test.sku_name - access_endpoint_type = azurerm_integration_service_environment.test.access_endpoint_type - virtual_network_subnet_ids = azurerm_integration_service_environment.test.virtual_network_subnet_ids - tags = azurerm_integration_service_environment.test.tags -} -`, r.basic(data)) -} diff --git a/internal/services/logic/logic_app_integration_account_agreement_resource.go b/internal/services/logic/logic_app_integration_account_agreement_resource.go index 68ce92a946f8..9ee6ac6e1e8b 100644 --- a/internal/services/logic/logic_app_integration_account_agreement_resource.go +++ b/internal/services/logic/logic_app_integration_account_agreement_resource.go @@ -236,7 +236,6 @@ func resourceLogicAppIntegrationAccountAgreementRead(d *pluginsdk.ResourceData, if props.Metadata != nil { d.Set("metadata", props.Metadata) } - } return nil diff --git a/internal/services/logic/logic_app_integration_account_assembly_resource.go b/internal/services/logic/logic_app_integration_account_assembly_resource.go index 66e42b2e7dc1..3a626a269c58 100644 --- a/internal/services/logic/logic_app_integration_account_assembly_resource.go +++ b/internal/services/logic/logic_app_integration_account_assembly_resource.go @@ -179,7 +179,6 @@ func resourceLogicAppIntegrationAccountAssemblyRead(d *pluginsdk.ResourceData, m if props.Metadata != nil { d.Set("metadata", props.Metadata) } - } return nil diff --git a/internal/services/logic/logic_app_integration_account_certificate_resource.go b/internal/services/logic/logic_app_integration_account_certificate_resource.go index 42b2d4644dfd..f30e92a342f5 100644 --- a/internal/services/logic/logic_app_integration_account_certificate_resource.go +++ b/internal/services/logic/logic_app_integration_account_certificate_resource.go @@ -178,7 +178,6 @@ func resourceLogicAppIntegrationAccountCertificateRead(d *pluginsdk.ResourceData } d.Set("public_certificate", props.PublicCertificate) - } return nil diff --git a/internal/services/logic/logic_app_integration_account_resource_test.go b/internal/services/logic/logic_app_integration_account_resource_test.go index 4587d71d1e8f..cbf9b9113714 100644 --- a/internal/services/logic/logic_app_integration_account_resource_test.go +++ b/internal/services/logic/logic_app_integration_account_resource_test.go @@ -98,23 +98,6 @@ func TestAccLogicAppIntegrationAccount_update(t *testing.T) { }) } -func TestAccLogicAppIntegrationAccount_integrationServiceEnvironment(t *testing.T) { - t.Skip("skip as Integration Service Environment is being deprecated") - - data := acceptance.BuildTestData(t, "azurerm_logic_app_integration_account", "test") - r := LogicAppIntegrationAccountResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.integrationServiceEnvironment(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func (LogicAppIntegrationAccountResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := integrationaccounts.ParseIntegrationAccountID(state.ID) if err != nil { @@ -199,17 +182,3 @@ resource "azurerm_logic_app_integration_account" "test" { } `, r.template(data), data.RandomInteger) } - -func (r LogicAppIntegrationAccountResource) integrationServiceEnvironment(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_logic_app_integration_account" "test" { - name = "acctest-IA-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku_name = "Standard" - integration_service_environment_id = azurerm_integration_service_environment.test.id -} -`, IntegrationServiceEnvironmentResource{}.basic(data), data.RandomInteger) -} diff --git a/internal/services/logic/logic_app_standard_data_source.go b/internal/services/logic/logic_app_standard_data_source.go index d37967283aed..b862dd9926ee 100644 --- a/internal/services/logic/logic_app_standard_data_source.go +++ b/internal/services/logic/logic_app_standard_data_source.go @@ -9,16 +9,19 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2021-02-01/web" // nolint: staticcheck + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/logic/parse" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/helpers" "github.com/hashicorp/terraform-provider-azurerm/internal/services/logic/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) func dataSourceLogicAppStandard() *pluginsdk.Resource { @@ -132,7 +135,7 @@ func dataSourceLogicAppStandard() *pluginsdk.Resource { Computed: true, }, - "tags": tags.Schema(), + "tags": commonschema.TagsDataSource(), "custom_domain_verification_id": { Type: pluginsdk.TypeString, @@ -159,6 +162,11 @@ func dataSourceLogicAppStandard() *pluginsdk.Resource { Computed: true, }, + "public_network_access": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "virtual_network_subnet_id": { Type: pluginsdk.TypeString, Computed: true, @@ -186,196 +194,171 @@ func dataSourceLogicAppStandard() *pluginsdk.Resource { } func dataSourceLogicAppStandardRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServicesClient + client := meta.(*clients.Client).AppService.WebAppsClient subscriptionId := meta.(*clients.Client).Web.AppServicesClient.SubscriptionID ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - id := parse.NewLogicAppStandardID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) + id := commonids.NewAppServiceID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) - resp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) + resp, err := client.Get(ctx, id) if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - return fmt.Errorf("Logic App Standard %s was not found", id) + if response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("%s was not found", id) } - return fmt.Errorf("[ERROR] Error making Read request on Logic App Standard %s: %+v", id, err) + return fmt.Errorf("retrieving %s: %+v", id, err) } d.SetId(id.ID()) - appSettingsResp, err := client.ListApplicationSettings(ctx, id.ResourceGroup, id.SiteName) - if err != nil { - return fmt.Errorf("[ERROR] Listing application settings for %s: %+v", id, err) - } - - connectionStringsResp, err := client.ListConnectionStrings(ctx, id.ResourceGroup, id.SiteName) - if err != nil { - return fmt.Errorf("[ERROR] Listing connection strings for %s: %+v", id, err) - } + if model := resp.Model; model != nil { + d.Set("kind", pointer.From(model.Kind)) + d.Set("location", location.Normalize(model.Location)) - siteCredFuture, err := client.ListPublishingCredentials(ctx, id.ResourceGroup, id.SiteName) - if err != nil { - return fmt.Errorf("[ERROR] Listing publishing credentials for %s: %+v", id, err) - } - if err = siteCredFuture.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("[ERROR] Waiting to list the publishing credentials for %s: %+v", id, err) - } - siteCredResp, err := siteCredFuture.Result(*client) - if err != nil { - return fmt.Errorf("[ERROR] Retrieving the publishing credentials for %s: %+v", id, err) - } - - d.Set("kind", resp.Kind) - - d.Set("location", location.NormalizeNilable(resp.Location)) - - if props := resp.SiteProperties; props != nil { - d.Set("app_service_plan_id", props.ServerFarmID) - d.Set("enabled", props.Enabled) - d.Set("default_hostname", props.DefaultHostName) - d.Set("https_only", props.HTTPSOnly) - d.Set("outbound_ip_addresses", props.OutboundIPAddresses) - d.Set("possible_outbound_ip_addresses", props.PossibleOutboundIPAddresses) - d.Set("client_affinity_enabled", props.ClientAffinityEnabled) - d.Set("custom_domain_verification_id", props.CustomDomainVerificationID) + identityFlattened, err := identity.FlattenSystemAndUserAssignedMap(model.Identity) + if err != nil { + return fmt.Errorf("flattening `identity`: %+v", err) + } + if err := d.Set("identity", identityFlattened); err != nil { + return fmt.Errorf("setting `identity`: %s", err) + } - clientCertMode := "" - if props.ClientCertEnabled != nil && *props.ClientCertEnabled { - clientCertMode = string(props.ClientCertMode) + if err := tags.FlattenAndSet(d, model.Tags); err != nil { + return fmt.Errorf("setting `tags`: %+v", err) } - d.Set("client_certificate_mode", clientCertMode) - } - appSettings := flattenLogicAppStandardDataSourceAppSettings(appSettingsResp.Properties) + if props := model.Properties; props != nil { + d.Set("app_service_plan_id", pointer.From(props.ServerFarmId)) + d.Set("enabled", pointer.From(props.Enabled)) + d.Set("default_hostname", pointer.From(props.DefaultHostName)) + d.Set("https_only", pointer.From(props.HTTPSOnly)) + d.Set("outbound_ip_addresses", pointer.From(props.OutboundIPAddresses)) + d.Set("possible_outbound_ip_addresses", pointer.From(props.PossibleOutboundIPAddresses)) + d.Set("client_affinity_enabled", pointer.From(props.ClientAffinityEnabled)) + d.Set("custom_domain_verification_id", pointer.From(props.CustomDomainVerificationId)) + d.Set("public_network_access", pointer.From(props.PublicNetworkAccess)) + + clientCertMode := "" + if props.ClientCertEnabled != nil && *props.ClientCertEnabled { + clientCertMode = string(pointer.From(props.ClientCertMode)) + } + d.Set("client_certificate_mode", clientCertMode) - if err = d.Set("virtual_network_subnet_id", resp.SiteProperties.VirtualNetworkSubnetID); err != nil { - return err + d.Set("virtual_network_subnet_id", props.VirtualNetworkSubnetId) + } } - if err = d.Set("connection_string", flattenLogicAppStandardDataSourceConnectionStrings(connectionStringsResp.Properties)); err != nil { - return err + appSettingsResp, err := client.ListApplicationSettings(ctx, id) + if err != nil { + return fmt.Errorf("listing application settings for %s: %+v", id, err) } + if model := appSettingsResp.Model; model != nil { + appSettings := pointer.From(model.Properties) - connectionString := appSettings["AzureWebJobsStorage"] + connectionString := appSettings["AzureWebJobsStorage"] - // This teases out the necessary attributes from the storage connection string - connectionStringParts := strings.Split(connectionString, ";") - for _, part := range connectionStringParts { - if strings.HasPrefix(part, "AccountName") { - accountNameParts := strings.Split(part, "AccountName=") - if len(accountNameParts) > 1 { - d.Set("storage_account_name", accountNameParts[1]) + // This teases out the necessary attributes from the storage connection string + connectionStringParts := strings.Split(connectionString, ";") + for _, part := range connectionStringParts { + if strings.HasPrefix(part, "AccountName") { + accountNameParts := strings.Split(part, "AccountName=") + if len(accountNameParts) > 1 { + d.Set("storage_account_name", accountNameParts[1]) + } } - } - if strings.HasPrefix(part, "AccountKey") { - accountKeyParts := strings.Split(part, "AccountKey=") - if len(accountKeyParts) > 1 { - d.Set("storage_account_access_key", accountKeyParts[1]) + if strings.HasPrefix(part, "AccountKey") { + accountKeyParts := strings.Split(part, "AccountKey=") + if len(accountKeyParts) > 1 { + d.Set("storage_account_access_key", accountKeyParts[1]) + } } } - } - d.Set("version", appSettings["FUNCTIONS_EXTENSION_VERSION"]) + d.Set("version", appSettings["FUNCTIONS_EXTENSION_VERSION"]) - if _, ok := appSettings["AzureFunctionsJobHost__extensionBundle__id"]; ok { - d.Set("use_extension_bundle", true) - if val, ok := appSettings["AzureFunctionsJobHost__extensionBundle__version"]; ok { - d.Set("bundle_version", val) + if _, ok := appSettings["AzureFunctionsJobHost__extensionBundle__id"]; ok { + d.Set("use_extension_bundle", true) + if val, ok := appSettings["AzureFunctionsJobHost__extensionBundle__version"]; ok { + d.Set("bundle_version", val) + } + } else { + d.Set("use_extension_bundle", false) + d.Set("bundle_version", "[1.*, 2.0.0)") } - } else { - d.Set("use_extension_bundle", false) - d.Set("bundle_version", "[1.*, 2.0.0)") - } - d.Set("storage_account_share_name", appSettings["WEBSITE_CONTENTSHARE"]) - - // Remove all the settings that are created by this resource so we don't to have to specify in app_settings - // block whenever we use azurerm_logic_app_standard. - delete(appSettings, "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING") - delete(appSettings, "APP_KIND") - delete(appSettings, "AzureFunctionsJobHost__extensionBundle__id") - delete(appSettings, "AzureFunctionsJobHost__extensionBundle__version") - delete(appSettings, "AzureWebJobsDashboard") - delete(appSettings, "AzureWebJobsStorage") - delete(appSettings, "FUNCTIONS_EXTENSION_VERSION") - delete(appSettings, "WEBSITE_CONTENTSHARE") + d.Set("storage_account_share_name", appSettings["WEBSITE_CONTENTSHARE"]) + + // Remove all the settings that are created by this resource so we don't to have to specify in app_settings + // block whenever we use azurerm_logic_app_standard. + delete(appSettings, "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING") + delete(appSettings, "APP_KIND") + delete(appSettings, "AzureFunctionsJobHost__extensionBundle__id") + delete(appSettings, "AzureFunctionsJobHost__extensionBundle__version") + delete(appSettings, "AzureWebJobsDashboard") + delete(appSettings, "AzureWebJobsStorage") + delete(appSettings, "FUNCTIONS_EXTENSION_VERSION") + delete(appSettings, "WEBSITE_CONTENTSHARE") + + if err = d.Set("app_settings", appSettings); err != nil { + return err + } + } - if err = d.Set("app_settings", appSettings); err != nil { - return err + connectionStringsResp, err := client.ListConnectionStrings(ctx, id) + if err != nil { + return fmt.Errorf("listing connection strings for %s: %+v", id, err) } - identity := flattenLogicAppStandardDataSourceIdentity(resp.Identity) - if err := d.Set("identity", identity); err != nil { - return fmt.Errorf("setting `identity`: %s", err) + if model := connectionStringsResp.Model; model != nil { + if err = d.Set("connection_string", flattenLogicAppStandardDataSourceConnectionStrings(model.Properties)); err != nil { + return err + } } - configResp, err := client.GetConfiguration(ctx, id.ResourceGroup, id.SiteName) + configResp, err := client.GetConfiguration(ctx, id) if err != nil { return fmt.Errorf("retrieving the configuration for %s: %+v", id, err) } - siteConfig := flattenLogicAppStandardDataSourceSiteConfig(configResp.SiteConfig) - if err = d.Set("site_config", siteConfig); err != nil { - return err + if model := configResp.Model; model != nil { + siteConfig := flattenLogicAppStandardDataSourceSiteConfig(model.Properties) + if err = d.Set("site_config", siteConfig); err != nil { + return err + } } - siteCred := flattenLogicAppStandardDataSourceSiteCredential(siteCredResp.UserProperties) - if err = d.Set("site_credential", siteCred); err != nil { - return err + siteCredentials, err := helpers.ListPublishingCredentials(ctx, client, id) + if err != nil { + return fmt.Errorf("listing publishing credentials for %s: %+v", id, err) } - return tags.FlattenAndSet(d, resp.Tags) -} - -func flattenLogicAppStandardDataSourceAppSettings(input map[string]*string) map[string]string { - output := make(map[string]string) - for k, v := range input { - output[k] = *v + if err = d.Set("site_credential", flattenLogicAppStandardSiteCredential(siteCredentials)); err != nil { + return err } - return output + return nil } -func flattenLogicAppStandardDataSourceConnectionStrings(input map[string]*web.ConnStringValueTypePair) interface{} { +func flattenLogicAppStandardDataSourceConnectionStrings(input *map[string]webapps.ConnStringValueTypePair) interface{} { results := make([]interface{}, 0) - for k, v := range input { + if input == nil || len(*input) == 0 { + return results + } + + for k, v := range *input { result := make(map[string]interface{}) result["name"] = k result["type"] = string(v.Type) - result["value"] = *v.Value + result["value"] = v.Value results = append(results, result) } return results } -func flattenLogicAppStandardDataSourceIdentity(identity *web.ManagedServiceIdentity) []interface{} { - if identity == nil { - return make([]interface{}, 0) - } - - principalId := "" - if identity.PrincipalID != nil { - principalId = *identity.PrincipalID - } - - tenantId := "" - if identity.TenantID != nil { - tenantId = *identity.TenantID - } - - return []interface{}{ - map[string]interface{}{ - "principal_id": principalId, - "tenant_id": tenantId, - "type": string(identity.Type), - }, - } -} - -func flattenLogicAppStandardDataSourceSiteConfig(input *web.SiteConfig) []interface{} { +func flattenLogicAppStandardDataSourceSiteConfig(input *webapps.SiteConfig) []interface{} { results := make([]interface{}, 0) result := make(map[string]interface{}) @@ -384,95 +367,36 @@ func flattenLogicAppStandardDataSourceSiteConfig(input *web.SiteConfig) []interf return results } - if input.AlwaysOn != nil { - result["always_on"] = *input.AlwaysOn - } - - if input.Use32BitWorkerProcess != nil { - result["use_32_bit_worker_process"] = *input.Use32BitWorkerProcess - } - - if input.WebSocketsEnabled != nil { - result["websockets_enabled"] = *input.WebSocketsEnabled - } - - if input.LinuxFxVersion != nil { - result["linux_fx_version"] = *input.LinuxFxVersion - } - - if input.HTTP20Enabled != nil { - result["http2_enabled"] = *input.HTTP20Enabled - } - - if input.PreWarmedInstanceCount != nil { - result["pre_warmed_instance_count"] = *input.PreWarmedInstanceCount - } + result["always_on"] = pointer.From(input.AlwaysOn) + result["use_32_bit_worker_process"] = pointer.From(input.Use32BitWorkerProcess) + result["websockets_enabled"] = pointer.From(input.WebSocketsEnabled) + result["linux_fx_version"] = pointer.From(input.LinuxFxVersion) + result["http2_enabled"] = pointer.From(input.HTTP20Enabled) + result["pre_warmed_instance_count"] = pointer.From(input.PreWarmedInstanceCount) result["ip_restriction"] = flattenLogicAppStandardIpRestriction(input.IPSecurityRestrictions) - result["scm_type"] = string(input.ScmType) - result["scm_min_tls_version"] = string(input.ScmMinTLSVersion) + result["scm_type"] = string(pointer.From(input.ScmType)) + result["scm_min_tls_version"] = string(pointer.From(input.ScmMinTlsVersion)) result["scm_ip_restriction"] = flattenLogicAppStandardIpRestriction(input.ScmIPSecurityRestrictions) - if input.ScmIPSecurityRestrictionsUseMain != nil { - result["scm_use_main_ip_restriction"] = *input.ScmIPSecurityRestrictionsUseMain - } + result["scm_use_main_ip_restriction"] = pointer.From(input.ScmIPSecurityRestrictionsUseMain) - result["min_tls_version"] = string(input.MinTLSVersion) - result["ftps_state"] = string(input.FtpsState) + result["min_tls_version"] = string(pointer.From(input.MinTlsVersion)) + result["ftps_state"] = string(pointer.From(input.FtpsState)) result["cors"] = flattenLogicAppStandardCorsSettings(input.Cors) - if input.AutoSwapSlotName != nil { - result["auto_swap_slot_name"] = *input.AutoSwapSlotName - } + result["auto_swap_slot_name"] = pointer.From(input.AutoSwapSlotName) + result["health_check_path"] = pointer.From(input.HealthCheckPath) + result["elastic_instance_minimum"] = pointer.From(input.MinimumElasticInstanceCount) + result["app_scale_limit"] = pointer.From(input.FunctionAppScaleLimit) + result["runtime_scale_monitoring_enabled"] = pointer.From(input.FunctionsRuntimeScaleMonitoringEnabled) - if input.HealthCheckPath != nil { - result["health_check_path"] = *input.HealthCheckPath - } + result["dotnet_framework_version"] = pointer.From(input.NetFrameworkVersion) - if input.MinimumElasticInstanceCount != nil { - result["elastic_instance_minimum"] = *input.MinimumElasticInstanceCount - } - - if input.FunctionAppScaleLimit != nil { - result["app_scale_limit"] = *input.FunctionAppScaleLimit - } - - if input.FunctionsRuntimeScaleMonitoringEnabled != nil { - result["runtime_scale_monitoring_enabled"] = *input.FunctionsRuntimeScaleMonitoringEnabled - } - - if input.NetFrameworkVersion != nil { - result["dotnet_framework_version"] = *input.NetFrameworkVersion - } - - vnetRouteAllEnabled := false - if input.VnetRouteAllEnabled != nil { - vnetRouteAllEnabled = *input.VnetRouteAllEnabled - } - result["vnet_route_all_enabled"] = vnetRouteAllEnabled + result["vnet_route_all_enabled"] = pointer.From(input.VnetRouteAllEnabled) results = append(results, result) return results } - -func flattenLogicAppStandardDataSourceSiteCredential(input *web.UserProperties) []interface{} { - results := make([]interface{}, 0) - result := make(map[string]interface{}) - - if input == nil { - log.Printf("[DEBUG] UserProperties is nil") - return results - } - - if input.PublishingUserName != nil { - result["username"] = *input.PublishingUserName - } - - if input.PublishingPassword != nil { - result["password"] = *input.PublishingPassword - } - - return append(results, result) -} diff --git a/internal/services/logic/logic_app_standard_resource.go b/internal/services/logic/logic_app_standard_resource.go index f217e0923654..6d3ff8b855c6 100644 --- a/internal/services/logic/logic_app_standard_resource.go +++ b/internal/services/logic/logic_app_standard_resource.go @@ -10,20 +10,21 @@ import ( "strings" "time" - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2021-02-01/web" // nolint: staticcheck "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" - "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice/helpers" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/logic/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/logic/validate" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -31,13 +32,13 @@ import ( ) func resourceLogicAppStandard() *pluginsdk.Resource { - return &pluginsdk.Resource{ + resource := &pluginsdk.Resource{ Create: resourceLogicAppStandardCreate, Read: resourceLogicAppStandardRead, Update: resourceLogicAppStandardUpdate, Delete: resourceLogicAppStandardDelete, Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := parse.LogicAppStandardID(id) + _, err := commonids.ParseLogicAppId(id) return err }), @@ -132,17 +133,17 @@ func resourceLogicAppStandard() *pluginsdk.Resource { Type: pluginsdk.TypeString, Required: true, ValidateFunc: validation.StringInSlice([]string{ - string(web.ConnectionStringTypeAPIHub), - string(web.ConnectionStringTypeCustom), - string(web.ConnectionStringTypeDocDb), - string(web.ConnectionStringTypeEventHub), - string(web.ConnectionStringTypeMySQL), - string(web.ConnectionStringTypeNotificationHub), - string(web.ConnectionStringTypePostgreSQL), - string(web.ConnectionStringTypeRedisCache), - string(web.ConnectionStringTypeServiceBus), - string(web.ConnectionStringTypeSQLAzure), - string(web.ConnectionStringTypeSQLServer), + string(webapps.ConnectionStringTypeApiHub), + string(webapps.ConnectionStringTypeCustom), + string(webapps.ConnectionStringTypeDocDb), + string(webapps.ConnectionStringTypeEventHub), + string(webapps.ConnectionStringTypeMySql), + string(webapps.ConnectionStringTypeNotificationHub), + string(webapps.ConnectionStringTypePostgreSQL), + string(webapps.ConnectionStringTypeRedisCache), + string(webapps.ConnectionStringTypeServiceBus), + string(webapps.ConnectionStringTypeSQLAzure), + string(webapps.ConnectionStringTypeSQLServer), }, false), }, @@ -169,6 +170,16 @@ func resourceLogicAppStandard() *pluginsdk.Resource { ValidateFunc: validation.NoZeroValues, }, + "public_network_access": { + Type: pluginsdk.TypeString, + Optional: true, + Default: helpers.PublicNetworkAccessEnabled, + ValidateFunc: validation.StringInSlice([]string{ + helpers.PublicNetworkAccessEnabled, + helpers.PublicNetworkAccessDisabled, + }, false), + }, + "storage_account_share_name": { Type: pluginsdk.TypeString, Optional: true, @@ -178,15 +189,16 @@ func resourceLogicAppStandard() *pluginsdk.Resource { "version": { Type: pluginsdk.TypeString, Optional: true, - Default: func() interface{} { - if !features.FourPointOhBeta() { - return "~3" - } - return "~4" - }(), + Default: "~4", + }, + + "virtual_network_subnet_id": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: commonids.ValidateSubnetID, }, - "tags": tags.Schema(), + "tags": commonschema.Tags(), // Computed Only "custom_domain_verification_id": { @@ -231,22 +243,27 @@ func resourceLogicAppStandard() *pluginsdk.Resource { }, }, }, - - "virtual_network_subnet_id": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: commonids.ValidateSubnetID, - }, }, } + + if !features.FivePointOhBeta() { + // Due to the way the `site_config.public_network_access_enabled` property and the `public_network_access` property + // influence each other, the default needs to be handled in the Create for now until `site_config.public_network_access_enabled` + // is removed in v5.0 + resource.Schema["public_network_access"].Default = nil + resource.Schema["public_network_access"].Computed = true + } + return resource } func resourceLogicAppStandardCreate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServicesClient + client := meta.(*clients.Client).AppService.WebAppsClient subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() + resourcesClient := meta.(*clients.Client).AppService.ResourceProvidersClient + env := meta.(*clients.Client).Account.Environment storageAccountDomainSuffix, ok := env.Storage.DomainSuffix() if !ok { @@ -255,48 +272,38 @@ func resourceLogicAppStandardCreate(d *pluginsdk.ResourceData, meta interface{}) log.Printf("[INFO] preparing arguments for AzureRM Logic App Standard creation.") - id := parse.NewLogicAppStandardID( - subscriptionId, - d.Get("resource_group_name").(string), - d.Get("name").(string), - ) - existing, err := client.Get(ctx, id.ResourceGroup, id.SiteName) + id := commonids.NewAppServiceID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) + existing, err := client.Get(ctx, id) if err != nil { - if !utils.ResponseWasNotFound(existing.Response) { + if !response.WasNotFound(existing.HttpResponse) { return fmt.Errorf("checking for presence of existing %s: %+v", id, err) } } - if !utils.ResponseWasNotFound(existing.Response) { + if !response.WasNotFound(existing.HttpResponse) { return tf.ImportAsExistsError("azurerm_logic_app_standard", id.ID()) } - availabilityRequest := web.ResourceNameAvailabilityRequest{ - Name: utils.String(id.SiteName), - Type: web.CheckNameResourceTypesMicrosoftWebsites, + availabilityRequest := resourceproviders.ResourceNameAvailabilityRequest{ + Name: id.SiteName, + Type: resourceproviders.CheckNameResourceTypesMicrosoftPointWebSites, } - available, err := client.CheckNameAvailability(ctx, availabilityRequest) + + available, err := resourcesClient.CheckNameAvailability(ctx, commonids.NewSubscriptionID(subscriptionId), availabilityRequest) if err != nil { - return fmt.Errorf("checking if the name %q was available: %+v", id.SiteName, err) + return fmt.Errorf("checking if name %q was available: %+v", id.SiteName, err) + } + + if available.Model == nil || available.Model.NameAvailable == nil { + return fmt.Errorf("checking if name %q was available: `model` was nil", id.SiteName) } - if !*available.NameAvailable { - return fmt.Errorf( - "the name %q used for the Logic App Standard needs to be globally unique and isn't available: %+v", - id.SiteName, - *available.Message, - ) + if !*available.Model.NameAvailable { + return fmt.Errorf("the name %q used for the Logic App Standard needs to be globally unique and isn't available: %+v", id.SiteName, pointer.From(available.Model.Message)) } - appServicePlanID := d.Get("app_service_plan_id").(string) - enabled := d.Get("enabled").(bool) - clientAffinityEnabled := d.Get("client_affinity_enabled").(bool) clientCertMode := d.Get("client_certificate_mode").(string) clientCertEnabled := clientCertMode != "" - httpsOnly := d.Get("https_only").(bool) - location := azure.NormalizeLocation(d.Get("location").(string)) - VirtualNetworkSubnetID := d.Get("virtual_network_subnet_id").(string) - t := d.Get("tags").(map[string]interface{}) basicAppSettings, err := getBasicLogicAppSettings(d, *storageAccountDomainSuffix) if err != nil { @@ -319,52 +326,64 @@ func resourceLogicAppStandardCreate(d *pluginsdk.ResourceData, meta interface{}) siteConfig.AppSettings = &appSettings - siteEnvelope := web.Site{ + siteEnvelope := webapps.Site{ Kind: &kind, - Location: &location, - Tags: tags.Expand(t), - SiteProperties: &web.SiteProperties{ - ServerFarmID: utils.String(appServicePlanID), - Enabled: utils.Bool(enabled), - ClientAffinityEnabled: utils.Bool(clientAffinityEnabled), - ClientCertEnabled: utils.Bool(clientCertEnabled), - HTTPSOnly: utils.Bool(httpsOnly), + Location: location.Normalize(d.Get("location").(string)), + Tags: tags.Expand(d.Get("tags").(map[string]interface{})), + Properties: &webapps.SiteProperties{ + ServerFarmId: pointer.To(d.Get("app_service_plan_id").(string)), + Enabled: pointer.To(d.Get("enabled").(bool)), + ClientAffinityEnabled: pointer.To(d.Get("client_affinity_enabled").(bool)), + ClientCertEnabled: pointer.To(clientCertEnabled), + HTTPSOnly: pointer.To(d.Get("https_only").(bool)), SiteConfig: &siteConfig, }, } - if clientCertMode != "" { - siteEnvelope.SiteProperties.ClientCertMode = web.ClientCertMode(clientCertMode) + publicNetworkAccess := d.Get("public_network_access").(string) + if !features.FivePointOhBeta() && publicNetworkAccess == "" { + // if a user is still using `site_config.public_network_access_enabled` we should be setting `public_network_access` for them + publicNetworkAccess = helpers.PublicNetworkAccessEnabled + if v := siteEnvelope.Properties.SiteConfig.PublicNetworkAccess; v != nil && *v == helpers.PublicNetworkAccessDisabled { + publicNetworkAccess = helpers.PublicNetworkAccessDisabled + } } - if VirtualNetworkSubnetID != "" { - siteEnvelope.SiteProperties.VirtualNetworkSubnetID = utils.String(VirtualNetworkSubnetID) + // conversely if `public_network_access` has been set it should take precedence, and we should be propagating the value for that to `site_config.public_network_access_enabled` + if publicNetworkAccess == helpers.PublicNetworkAccessDisabled { + siteEnvelope.Properties.SiteConfig.PublicNetworkAccess = pointer.To(helpers.PublicNetworkAccessDisabled) + } else if publicNetworkAccess == helpers.PublicNetworkAccessEnabled { + siteEnvelope.Properties.SiteConfig.PublicNetworkAccess = pointer.To(helpers.PublicNetworkAccessEnabled) + } + + siteEnvelope.Properties.PublicNetworkAccess = pointer.To(publicNetworkAccess) + + if clientCertEnabled { + siteEnvelope.Properties.ClientCertMode = pointer.To(webapps.ClientCertMode(clientCertMode)) + } + + if v := d.Get("virtual_network_subnet_id").(string); v != "" { + siteEnvelope.Properties.VirtualNetworkSubnetId = pointer.To(v) } if _, ok := d.GetOk("identity"); ok { - appServiceIdentity, err := expandLogicAppStandardIdentity(d.Get("identity").([]interface{})) + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(d.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) } - siteEnvelope.Identity = appServiceIdentity + siteEnvelope.Identity = expandedIdentity } - future, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.SiteName, siteEnvelope) - if err != nil { + if err := client.CreateOrUpdateThenPoll(ctx, id, siteEnvelope); err != nil { return fmt.Errorf("creating %s: %+v", id, err) } - err = future.WaitForCompletionRef(ctx, client.Client) - if err != nil { - return fmt.Errorf("waiting for the creation of %s: %+v", id, err) - } - d.SetId(id.ID()) return resourceLogicAppStandardUpdate(d, meta) } func resourceLogicAppStandardUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServicesClient + client := meta.(*clients.Client).AppService.WebAppsClient ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -374,19 +393,13 @@ func resourceLogicAppStandardUpdate(d *pluginsdk.ResourceData, meta interface{}) return fmt.Errorf("could not determine the domain suffix for storage accounts in environment %q: %+v", env.Name, env.Storage) } - id, err := parse.LogicAppStandardID(d.Id()) + id, err := commonids.ParseLogicAppId(d.Id()) if err != nil { return err } - location := azure.NormalizeLocation(d.Get("location").(string)) - appServicePlanID := d.Get("app_service_plan_id").(string) - enabled := d.Get("enabled").(bool) - clientAffinityEnabled := d.Get("client_affinity_enabled").(bool) clientCertMode := d.Get("client_certificate_mode").(string) clientCertEnabled := clientCertMode != "" - httpsOnly := d.Get("https_only").(bool) - t := d.Get("tags").(map[string]interface{}) basicAppSettings, err := getBasicLogicAppSettings(d, *storageAccountDomainSuffix) if err != nil { @@ -412,84 +425,90 @@ func resourceLogicAppStandardUpdate(d *pluginsdk.ResourceData, meta interface{}) } if vnetRouteAll, ok := appSettings["WEBSITE_VNET_ROUTE_ALL"]; ok { if !d.HasChange("site_config.0.vnet_route_all_enabled") { - vnetRouteAllEnabled, _ := strconv.ParseBool(*vnetRouteAll) + vnetRouteAllEnabled, _ := strconv.ParseBool(vnetRouteAll) siteConfig.VnetRouteAllEnabled = &vnetRouteAllEnabled } } - siteEnvelope := web.Site{ + siteEnvelope := webapps.Site{ Kind: &kind, - Location: &location, - Tags: tags.Expand(t), - SiteProperties: &web.SiteProperties{ - ServerFarmID: utils.String(appServicePlanID), - Enabled: utils.Bool(enabled), - ClientAffinityEnabled: utils.Bool(clientAffinityEnabled), - ClientCertEnabled: utils.Bool(clientCertEnabled), - HTTPSOnly: utils.Bool(httpsOnly), + Location: location.Normalize(d.Get("location").(string)), + Tags: tags.Expand(d.Get("tags").(map[string]interface{})), + Properties: &webapps.SiteProperties{ + ServerFarmId: pointer.To(d.Get("app_service_plan_id").(string)), + Enabled: pointer.To(d.Get("enabled").(bool)), + ClientAffinityEnabled: pointer.To(d.Get("client_affinity_enabled").(bool)), + ClientCertEnabled: pointer.To(clientCertEnabled), + HTTPSOnly: pointer.To(d.Get("https_only").(bool)), + PublicNetworkAccess: pointer.To(d.Get("public_network_access").(string)), SiteConfig: &siteConfig, }, } - if clientCertMode != "" { - siteEnvelope.SiteProperties.ClientCertMode = web.ClientCertMode(clientCertMode) + if d.HasChange("public_network_access") { + publicNetworkAccess := d.Get("public_network_access").(string) + siteEnvelope.Properties.PublicNetworkAccess = pointer.To(publicNetworkAccess) + if publicNetworkAccess == helpers.PublicNetworkAccessEnabled { + siteEnvelope.Properties.SiteConfig.PublicNetworkAccess = pointer.To(helpers.PublicNetworkAccessEnabled) + } else { + siteEnvelope.Properties.SiteConfig.PublicNetworkAccess = pointer.To(helpers.PublicNetworkAccessDisabled) + } + } + + if clientCertEnabled { + siteEnvelope.Properties.ClientCertMode = pointer.To(webapps.ClientCertMode(clientCertMode)) } if d.HasChange("virtual_network_subnet_id") { subnetId := d.Get("virtual_network_subnet_id").(string) if subnetId == "" { - if _, err := client.DeleteSwiftVirtualNetwork(ctx, id.ResourceGroup, id.SiteName); err != nil { + if _, err := client.DeleteSwiftVirtualNetwork(ctx, *id); err != nil { return fmt.Errorf("removing `virtual_network_subnet_id` association for %s: %+v", *id, err) } var empty *string - siteEnvelope.SiteProperties.VirtualNetworkSubnetID = empty + siteEnvelope.Properties.VirtualNetworkSubnetId = empty } else { - siteEnvelope.SiteProperties.VirtualNetworkSubnetID = utils.String(subnetId) + siteEnvelope.Properties.VirtualNetworkSubnetId = pointer.To(subnetId) } } if _, ok := d.GetOk("identity"); ok { - appServiceIdentity, err := expandLogicAppStandardIdentity(d.Get("identity").([]interface{})) + expandedIdentity, err := identity.ExpandSystemAndUserAssignedMap(d.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) } - siteEnvelope.Identity = appServiceIdentity + siteEnvelope.Identity = expandedIdentity } - future, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.SiteName, siteEnvelope) - if err != nil { + if err := client.CreateOrUpdateThenPoll(ctx, *id, siteEnvelope); err != nil { return fmt.Errorf("updating %s: %+v", *id, err) } - if err = future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for the update of %s: %+v", id, err) - } - if d.HasChange("site_config") { // update siteConfig before appSettings in case the appSettings get covered by basicAppSettings - siteConfigResource := web.SiteConfigResource{ - SiteConfig: &siteConfig, + siteConfigResource := webapps.SiteConfigResource{ + Properties: &siteConfig, } - if _, err := client.CreateOrUpdateConfiguration(ctx, id.ResourceGroup, id.SiteName, siteConfigResource); err != nil { + if _, err := client.CreateOrUpdateConfiguration(ctx, *id, siteConfigResource); err != nil { return fmt.Errorf("updating Configuration for %s: %+v", *id, err) } } - settings := web.StringDictionary{ - Properties: appSettings, + settings := webapps.StringDictionary{ + Properties: pointer.To(appSettings), } - if _, err = client.UpdateApplicationSettings(ctx, id.ResourceGroup, id.SiteName, settings); err != nil { + if _, err = client.UpdateApplicationSettings(ctx, *id, settings); err != nil { return fmt.Errorf("updating Application Settings for %s: %+v", *id, err) } if d.HasChange("connection_string") { connectionStrings := expandLogicAppStandardConnectionStrings(d) - properties := web.ConnectionStringDictionary{ - Properties: connectionStrings, + properties := webapps.ConnectionStringDictionary{ + Properties: pointer.To(connectionStrings), } - if _, err := client.UpdateConnectionStrings(ctx, id.ResourceGroup, id.SiteName, properties); err != nil { + if _, err := client.UpdateConnectionStrings(ctx, *id, properties); err != nil { return fmt.Errorf("updating Connection Strings for %s: %+v", *id, err) } } @@ -498,18 +517,18 @@ func resourceLogicAppStandardUpdate(d *pluginsdk.ResourceData, meta interface{}) } func resourceLogicAppStandardRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServicesClient + client := meta.(*clients.Client).AppService.WebAppsClient ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := parse.LogicAppStandardID(d.Id()) + id, err := commonids.ParseLogicAppId(d.Id()) if err != nil { return err } - resp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) + resp, err := client.Get(ctx, *id) if err != nil { - if utils.ResponseWasNotFound(resp.Response) { + if response.WasNotFound(resp.HttpResponse) { log.Printf("[DEBUG] %s was not found - removing from state", *id) d.SetId("") return nil @@ -517,161 +536,163 @@ func resourceLogicAppStandardRead(d *pluginsdk.ResourceData, meta interface{}) e return fmt.Errorf("retrieving %s: %+v", *id, err) } - appSettingsResp, err := client.ListApplicationSettings(ctx, id.ResourceGroup, id.SiteName) - if err != nil { - return fmt.Errorf("listing application settings for %s: %+v", *id, err) - } - - connectionStringsResp, err := client.ListConnectionStrings(ctx, id.ResourceGroup, id.SiteName) - if err != nil { - return fmt.Errorf("listing connection strings for %s: %+v", *id, err) - } - - siteCredFuture, err := client.ListPublishingCredentials(ctx, id.ResourceGroup, id.SiteName) - if err != nil { - return fmt.Errorf("listing publishing credentials for %s: %+v", *id, err) - } - if err = siteCredFuture.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting to list the publishing credentials for %s: %+v", *id, err) - } - siteCredResp, err := siteCredFuture.Result(*client) - if err != nil { - return fmt.Errorf("retrieving the publishing credentials for %s: %+v", *id, err) - } - d.Set("name", id.SiteName) - d.Set("resource_group_name", id.ResourceGroup) - d.Set("kind", resp.Kind) + d.Set("resource_group_name", id.ResourceGroupName) - if location := resp.Location; location != nil { - d.Set("location", azure.NormalizeLocation(*location)) - } + if model := resp.Model; model != nil { + d.Set("kind", pointer.From(model.Kind)) + d.Set("location", location.Normalize(model.Location)) - if props := resp.SiteProperties; props != nil { - servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmID) + flattenedIdentity, err := identity.FlattenSystemAndUserAssignedMap(model.Identity) if err != nil { - return err + return fmt.Errorf("flattening `identity`: %+v", err) } - d.Set("app_service_plan_id", servicePlanId.ID()) - d.Set("enabled", props.Enabled) - d.Set("default_hostname", props.DefaultHostName) - d.Set("https_only", props.HTTPSOnly) - d.Set("outbound_ip_addresses", props.OutboundIPAddresses) - d.Set("possible_outbound_ip_addresses", props.PossibleOutboundIPAddresses) - d.Set("client_affinity_enabled", props.ClientAffinityEnabled) - d.Set("custom_domain_verification_id", props.CustomDomainVerificationID) - d.Set("virtual_network_subnet_id", props.VirtualNetworkSubnetID) - - clientCertMode := "" - if props.ClientCertEnabled != nil && *props.ClientCertEnabled { - clientCertMode = string(props.ClientCertMode) + if err := d.Set("identity", flattenedIdentity); err != nil { + return fmt.Errorf("setting `identity`: %s", err) } - d.Set("client_certificate_mode", clientCertMode) - } - appSettings := flattenLogicAppStandardAppSettings(appSettingsResp.Properties) + if err := tags.FlattenAndSet(d, model.Tags); err != nil { + return fmt.Errorf("setting `tags`: %+v", err) + } - if err = d.Set("connection_string", flattenLogicAppStandardConnectionStrings(connectionStringsResp.Properties)); err != nil { - return err + if props := model.Properties; props != nil { + servicePlanId, err := commonids.ParseAppServicePlanIDInsensitively(*props.ServerFarmId) + if err != nil { + return err + } + d.Set("app_service_plan_id", servicePlanId.ID()) + d.Set("enabled", pointer.From(props.Enabled)) + d.Set("default_hostname", pointer.From(props.DefaultHostName)) + d.Set("https_only", pointer.From(props.HTTPSOnly)) + d.Set("outbound_ip_addresses", pointer.From(props.OutboundIPAddresses)) + d.Set("possible_outbound_ip_addresses", pointer.From(props.PossibleOutboundIPAddresses)) + d.Set("client_affinity_enabled", pointer.From(props.ClientAffinityEnabled)) + d.Set("custom_domain_verification_id", pointer.From(props.CustomDomainVerificationId)) + d.Set("virtual_network_subnet_id", pointer.From(props.VirtualNetworkSubnetId)) + d.Set("public_network_access", pointer.From(props.PublicNetworkAccess)) + + clientCertMode := "" + if props.ClientCertEnabled != nil && *props.ClientCertEnabled { + clientCertMode = string(pointer.From(props.ClientCertMode)) + } + d.Set("client_certificate_mode", clientCertMode) + } } - connectionString := appSettings["AzureWebJobsStorage"] + appSettingsResp, err := client.ListApplicationSettings(ctx, *id) + if err != nil { + return fmt.Errorf("listing application settings for %s: %+v", *id, err) + } + + if model := appSettingsResp.Model; model != nil { + appSettings := pointer.From(model.Properties) - // This teases out the necessary attributes from the storage connection string - connectionStringParts := strings.Split(connectionString, ";") - for _, part := range connectionStringParts { - if strings.HasPrefix(part, "AccountName") { - accountNameParts := strings.Split(part, "AccountName=") - if len(accountNameParts) > 1 { - d.Set("storage_account_name", accountNameParts[1]) + connectionString := appSettings["AzureWebJobsStorage"] + + // This teases out the necessary attributes from the storage connection string + connectionStringParts := strings.Split(connectionString, ";") + for _, part := range connectionStringParts { + if strings.HasPrefix(part, "AccountName") { + accountNameParts := strings.Split(part, "AccountName=") + if len(accountNameParts) > 1 { + d.Set("storage_account_name", accountNameParts[1]) + } } - } - if strings.HasPrefix(part, "AccountKey") { - accountKeyParts := strings.Split(part, "AccountKey=") - if len(accountKeyParts) > 1 { - d.Set("storage_account_access_key", accountKeyParts[1]) + if strings.HasPrefix(part, "AccountKey") { + accountKeyParts := strings.Split(part, "AccountKey=") + if len(accountKeyParts) > 1 { + d.Set("storage_account_access_key", accountKeyParts[1]) + } } } - } - d.Set("version", appSettings["FUNCTIONS_EXTENSION_VERSION"]) + d.Set("version", appSettings["FUNCTIONS_EXTENSION_VERSION"]) - if _, ok := appSettings["AzureFunctionsJobHost__extensionBundle__id"]; ok { - d.Set("use_extension_bundle", true) - if val, ok := appSettings["AzureFunctionsJobHost__extensionBundle__version"]; ok { - d.Set("bundle_version", val) + if _, ok := appSettings["AzureFunctionsJobHost__extensionBundle__id"]; ok { + d.Set("use_extension_bundle", true) + if val, ok := appSettings["AzureFunctionsJobHost__extensionBundle__version"]; ok { + d.Set("bundle_version", val) + } + } else { + d.Set("use_extension_bundle", false) + d.Set("bundle_version", "[1.*, 2.0.0)") } - } else { - d.Set("use_extension_bundle", false) - d.Set("bundle_version", "[1.*, 2.0.0)") - } - d.Set("storage_account_share_name", appSettings["WEBSITE_CONTENTSHARE"]) + d.Set("storage_account_share_name", appSettings["WEBSITE_CONTENTSHARE"]) - // Remove all the settings that are created by this resource so we don't to have to specify in app_settings - // block whenever we use azurerm_logic_app_standard. - delete(appSettings, "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING") - delete(appSettings, "APP_KIND") - delete(appSettings, "AzureFunctionsJobHost__extensionBundle__id") - delete(appSettings, "AzureFunctionsJobHost__extensionBundle__version") - delete(appSettings, "AzureWebJobsDashboard") - delete(appSettings, "AzureWebJobsStorage") - delete(appSettings, "FUNCTIONS_EXTENSION_VERSION") - delete(appSettings, "WEBSITE_CONTENTSHARE") + // Remove all the settings that are created by this resource so we don't to have to specify in app_settings + // block whenever we use azurerm_logic_app_standard. + delete(appSettings, "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING") + delete(appSettings, "APP_KIND") + delete(appSettings, "AzureFunctionsJobHost__extensionBundle__id") + delete(appSettings, "AzureFunctionsJobHost__extensionBundle__version") + delete(appSettings, "AzureWebJobsDashboard") + delete(appSettings, "AzureWebJobsStorage") + delete(appSettings, "FUNCTIONS_EXTENSION_VERSION") + delete(appSettings, "WEBSITE_CONTENTSHARE") - if err = d.Set("app_settings", appSettings); err != nil { - return err + if err = d.Set("app_settings", appSettings); err != nil { + return err + } } - identity, err := flattenLogicAppStandardIdentity(resp.Identity) + connectionStringsResp, err := client.ListConnectionStrings(ctx, *id) if err != nil { - return fmt.Errorf("flattening `identity`: %+v", err) + return fmt.Errorf("listing connection strings for %s: %+v", *id, err) } - if err := d.Set("identity", identity); err != nil { - return fmt.Errorf("setting `identity`: %s", err) + + if model := connectionStringsResp.Model; model != nil { + if err = d.Set("connection_string", flattenLogicAppStandardConnectionStrings(model.Properties)); err != nil { + return err + } } - configResp, err := client.GetConfiguration(ctx, id.ResourceGroup, id.SiteName) + siteCredentials, err := helpers.ListPublishingCredentials(ctx, client, *id) if err != nil { - return fmt.Errorf("retrieving the configuration for %s: %+v", *id, err) + return fmt.Errorf("listing publishing credentials for %s: %+v", *id, err) } - siteConfig := flattenLogicAppStandardSiteConfig(configResp.SiteConfig) - if err = d.Set("site_config", siteConfig); err != nil { + if err = d.Set("site_credential", flattenLogicAppStandardSiteCredential(siteCredentials)); err != nil { return err } - siteCred := flattenLogicAppStandardSiteCredential(siteCredResp.UserProperties) - if err = d.Set("site_credential", siteCred); err != nil { - return err + configResp, err := client.GetConfiguration(ctx, *id) + if err != nil { + return fmt.Errorf("retrieving the configuration for %s: %+v", *id, err) + } + + if model := configResp.Model; model != nil { + siteConfig := flattenLogicAppStandardSiteConfig(model.Properties) + if err = d.Set("site_config", siteConfig); err != nil { + return err + } } - return tags.FlattenAndSet(d, resp.Tags) + return nil } func resourceLogicAppStandardDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServicesClient + client := meta.(*clients.Client).AppService.WebAppsClient ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := parse.LogicAppStandardID(d.Id()) + id, err := commonids.ParseLogicAppId(d.Id()) if err != nil { return err } - deleteMetrics := true - deleteEmptyServerFarm := false - if _, err := client.Delete(ctx, id.ResourceGroup, id.SiteName, &deleteMetrics, &deleteEmptyServerFarm); err != nil { + opts := webapps.DefaultDeleteOperationOptions() + opts.DeleteMetrics = pointer.To(true) + opts.DeleteEmptyServerFarm = pointer.To(false) + + if _, err := client.Delete(ctx, *id, opts); err != nil { return fmt.Errorf("deleting %s: %+v", *id, err) } return nil } -func getBasicLogicAppSettings( - d *pluginsdk.ResourceData, - endpointSuffix string, -) ([]web.NameValuePair, error) { +func getBasicLogicAppSettings(d *pluginsdk.ResourceData, endpointSuffix string) ([]webapps.NameValuePair, error) { storagePropName := "AzureWebJobsStorage" functionVersionPropName := "FUNCTIONS_EXTENSION_VERSION" contentSharePropName := "WEBSITE_CONTENTSHARE" @@ -694,7 +715,7 @@ func getBasicLogicAppSettings( contentShare = d.Get("storage_account_share_name").(string) } - basicSettings := []web.NameValuePair{ + basicSettings := []webapps.NameValuePair{ {Name: &storagePropName, Value: &storageConnection}, {Name: &functionVersionPropName, Value: &functionVersion}, {Name: &appKindPropName, Value: &appKindPropValue}, @@ -715,7 +736,7 @@ func getBasicLogicAppSettings( ) } - bundleSettings := []web.NameValuePair{ + bundleSettings := []webapps.NameValuePair{ {Name: &extensionBundlePropName, Value: &extensionBundleName}, {Name: &extensionBundleVersionPropName, Value: &extensionBundleVersion}, } @@ -727,7 +748,7 @@ func getBasicLogicAppSettings( } func schemaLogicAppStandardSiteConfig() *pluginsdk.Schema { - return &pluginsdk.Schema{ + schema := &pluginsdk.Schema{ Type: pluginsdk.TypeList, Optional: true, Computed: true, @@ -747,9 +768,9 @@ func schemaLogicAppStandardSiteConfig() *pluginsdk.Schema { Optional: true, Computed: true, ValidateFunc: validation.StringInSlice([]string{ - string(web.FtpsStateAllAllowed), - string(web.FtpsStateDisabled), - string(web.FtpsStateFtpsOnly), + string(webapps.FtpsStateAllAllowed), + string(webapps.FtpsStateDisabled), + string(webapps.FtpsStateFtpsOnly), }, false), }, @@ -772,9 +793,9 @@ func schemaLogicAppStandardSiteConfig() *pluginsdk.Schema { Optional: true, Computed: true, ValidateFunc: validation.StringInSlice([]string{ - string(web.SupportedTLSVersionsOneFullStopZero), - string(web.SupportedTLSVersionsOneFullStopOne), - string(web.SupportedTLSVersionsOneFullStopTwo), + string(webapps.SupportedTlsVersionsOnePointZero), + string(webapps.SupportedTlsVersionsOnePointOne), + string(webapps.SupportedTlsVersionsOnePointTwo), }, false), }, @@ -798,9 +819,9 @@ func schemaLogicAppStandardSiteConfig() *pluginsdk.Schema { Optional: true, Computed: true, ValidateFunc: validation.StringInSlice([]string{ - string(web.SupportedTLSVersionsOneFullStopZero), - string(web.SupportedTLSVersionsOneFullStopOne), - string(web.SupportedTLSVersionsOneFullStopTwo), + string(webapps.SupportedTlsVersionsOnePointZero), + string(webapps.SupportedTlsVersionsOnePointOne), + string(webapps.SupportedTlsVersionsOnePointTwo), }, false), }, @@ -809,20 +830,20 @@ func schemaLogicAppStandardSiteConfig() *pluginsdk.Schema { Optional: true, Computed: true, ValidateFunc: validation.StringInSlice([]string{ - string(web.ScmTypeBitbucketGit), - string(web.ScmTypeBitbucketHg), - string(web.ScmTypeCodePlexGit), - string(web.ScmTypeCodePlexHg), - string(web.ScmTypeDropbox), - string(web.ScmTypeExternalGit), - string(web.ScmTypeExternalHg), - string(web.ScmTypeGitHub), - string(web.ScmTypeLocalGit), - string(web.ScmTypeNone), - string(web.ScmTypeOneDrive), - string(web.ScmTypeTfs), - string(web.ScmTypeVSO), - string(web.ScmTypeVSTSRM), + string(webapps.ScmTypeBitbucketGit), + string(webapps.ScmTypeBitbucketHg), + string(webapps.ScmTypeCodePlexGit), + string(webapps.ScmTypeCodePlexHg), + string(webapps.ScmTypeDropbox), + string(webapps.ScmTypeExternalGit), + string(webapps.ScmTypeExternalHg), + string(webapps.ScmTypeGitHub), + string(webapps.ScmTypeLocalGit), + string(webapps.ScmTypeNone), + string(webapps.ScmTypeOneDrive), + string(webapps.ScmTypeTfs), + string(webapps.ScmTypeVSO), + string(webapps.ScmTypeVSTSRM), }, false), }, @@ -881,12 +902,6 @@ func schemaLogicAppStandardSiteConfig() *pluginsdk.Schema { Computed: true, }, - "public_network_access_enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: true, - }, - "auto_swap_slot_name": { Type: pluginsdk.TypeString, Computed: true, @@ -894,6 +909,17 @@ func schemaLogicAppStandardSiteConfig() *pluginsdk.Schema { }, }, } + + if !features.FivePointOhBeta() { + schema.Elem.(*pluginsdk.Resource).Schema["public_network_access_enabled"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeBool, + Optional: true, + Computed: true, + Deprecated: "the `site_config.public_network_access_enabled` property has been superseded by the `public_network_access` property and will be removed in v5.0 of the AzureRM Provider.", + } + } + + return schema } func schemaLogicAppCorsSettings() *pluginsdk.Schema { @@ -1030,32 +1056,25 @@ func schemaLogicAppStandardIpRestriction() *pluginsdk.Schema { } } -func flattenLogicAppStandardAppSettings(input map[string]*string) map[string]string { - output := make(map[string]string) - for k, v := range input { - output[k] = *v - } - - return output -} - -func flattenLogicAppStandardConnectionStrings( - input map[string]*web.ConnStringValueTypePair, -) interface{} { +func flattenLogicAppStandardConnectionStrings(input *map[string]webapps.ConnStringValueTypePair) interface{} { results := make([]interface{}, 0) - for k, v := range input { + if input == nil || len(*input) == 0 { + return results + } + + for k, v := range *input { result := make(map[string]interface{}) result["name"] = k result["type"] = string(v.Type) - result["value"] = *v.Value + result["value"] = v.Value results = append(results, result) } return results } -func flattenLogicAppStandardSiteConfig(input *web.SiteConfig) []interface{} { +func flattenLogicAppStandardSiteConfig(input *webapps.SiteConfig) []interface{} { results := make([]interface{}, 0) result := make(map[string]interface{}) @@ -1064,107 +1083,71 @@ func flattenLogicAppStandardSiteConfig(input *web.SiteConfig) []interface{} { return results } - if input.AlwaysOn != nil { - result["always_on"] = *input.AlwaysOn - } - - if input.Use32BitWorkerProcess != nil { - result["use_32_bit_worker_process"] = *input.Use32BitWorkerProcess - } - - if input.WebSocketsEnabled != nil { - result["websockets_enabled"] = *input.WebSocketsEnabled - } - - if input.LinuxFxVersion != nil { - result["linux_fx_version"] = *input.LinuxFxVersion - } - - if input.HTTP20Enabled != nil { - result["http2_enabled"] = *input.HTTP20Enabled - } - - if input.PreWarmedInstanceCount != nil { - result["pre_warmed_instance_count"] = *input.PreWarmedInstanceCount - } + result["always_on"] = pointer.From(input.AlwaysOn) + result["use_32_bit_worker_process"] = pointer.From(input.Use32BitWorkerProcess) + result["websockets_enabled"] = pointer.From(input.WebSocketsEnabled) + result["linux_fx_version"] = pointer.From(input.LinuxFxVersion) + result["http2_enabled"] = pointer.From(input.HTTP20Enabled) + result["pre_warmed_instance_count"] = pointer.From(input.PreWarmedInstanceCount) result["ip_restriction"] = flattenLogicAppStandardIpRestriction(input.IPSecurityRestrictions) result["scm_ip_restriction"] = flattenLogicAppStandardIpRestriction(input.ScmIPSecurityRestrictions) - if input.ScmIPSecurityRestrictionsUseMain != nil { - result["scm_use_main_ip_restriction"] = *input.ScmIPSecurityRestrictionsUseMain - } + result["scm_use_main_ip_restriction"] = pointer.From(input.ScmIPSecurityRestrictionsUseMain) - result["scm_type"] = string(input.ScmType) - result["scm_min_tls_version"] = string(input.ScmMinTLSVersion) + result["scm_type"] = string(pointer.From(input.ScmType)) + result["scm_min_tls_version"] = string(pointer.From(input.ScmMinTlsVersion)) - result["min_tls_version"] = string(input.MinTLSVersion) - result["ftps_state"] = string(input.FtpsState) + result["min_tls_version"] = string(pointer.From(input.MinTlsVersion)) + result["ftps_state"] = string(pointer.From(input.FtpsState)) result["cors"] = flattenLogicAppStandardCorsSettings(input.Cors) - if input.AutoSwapSlotName != nil { - result["auto_swap_slot_name"] = *input.AutoSwapSlotName - } + result["auto_swap_slot_name"] = pointer.From(input.AutoSwapSlotName) - if input.HealthCheckPath != nil { - result["health_check_path"] = *input.HealthCheckPath - } + result["health_check_path"] = pointer.From(input.HealthCheckPath) - if input.MinimumElasticInstanceCount != nil { - result["elastic_instance_minimum"] = *input.MinimumElasticInstanceCount - } + result["elastic_instance_minimum"] = pointer.From(input.MinimumElasticInstanceCount) - if input.FunctionAppScaleLimit != nil { - result["app_scale_limit"] = *input.FunctionAppScaleLimit - } + result["app_scale_limit"] = pointer.From(input.FunctionAppScaleLimit) - if input.FunctionsRuntimeScaleMonitoringEnabled != nil { - result["runtime_scale_monitoring_enabled"] = *input.FunctionsRuntimeScaleMonitoringEnabled - } + result["runtime_scale_monitoring_enabled"] = pointer.From(input.FunctionsRuntimeScaleMonitoringEnabled) - if input.NetFrameworkVersion != nil { - result["dotnet_framework_version"] = *input.NetFrameworkVersion - } + result["dotnet_framework_version"] = pointer.From(input.NetFrameworkVersion) - vnetRouteAllEnabled := false - if input.VnetRouteAllEnabled != nil { - vnetRouteAllEnabled = *input.VnetRouteAllEnabled - } - result["vnet_route_all_enabled"] = vnetRouteAllEnabled + result["vnet_route_all_enabled"] = pointer.From(input.VnetRouteAllEnabled) publicNetworkAccessEnabled := true if input.PublicNetworkAccess != nil { publicNetworkAccessEnabled = !strings.EqualFold(pointer.From(input.PublicNetworkAccess), helpers.PublicNetworkAccessDisabled) } - result["public_network_access_enabled"] = publicNetworkAccessEnabled + + if !features.FivePointOhBeta() { + result["public_network_access_enabled"] = publicNetworkAccessEnabled + } results = append(results, result) return results } -func flattenLogicAppStandardSiteCredential(input *web.UserProperties) []interface{} { +func flattenLogicAppStandardSiteCredential(input *webapps.User) []interface{} { results := make([]interface{}, 0) result := make(map[string]interface{}) - if input == nil { + if input == nil || input.Properties == nil { log.Printf("[DEBUG] UserProperties is nil") return results } - if input.PublishingUserName != nil { - result["username"] = *input.PublishingUserName - } + result["username"] = input.Properties.PublishingUserName - if input.PublishingPassword != nil { - result["password"] = *input.PublishingPassword - } + result["password"] = pointer.From(input.Properties.PublishingPassword) return append(results, result) } -func flattenLogicAppStandardIpRestriction(input *[]web.IPSecurityRestriction) []interface{} { +func flattenLogicAppStandardIpRestriction(input *[]webapps.IPSecurityRestriction) []interface{} { restrictions := make([]interface{}, 0) if input == nil { @@ -1177,8 +1160,8 @@ func flattenLogicAppStandardIpRestriction(input *[]web.IPSecurityRestriction) [] if *ip == "Any" { continue } else { - switch v.Tag { - case web.IPFilterTagServiceTag: + switch pointer.From(v.Tag) { + case webapps.IPFilterTagServiceTag: restriction["service_tag"] = *ip default: restriction["ip_address"] = *ip @@ -1187,7 +1170,7 @@ func flattenLogicAppStandardIpRestriction(input *[]web.IPSecurityRestriction) [] } subnetId := "" - if subnetIdRaw := v.VnetSubnetResourceID; subnetIdRaw != nil { + if subnetIdRaw := v.VnetSubnetResourceId; subnetIdRaw != nil { subnetId = *subnetIdRaw } restriction["virtual_network_subnet_id"] = subnetId @@ -1211,7 +1194,7 @@ func flattenLogicAppStandardIpRestriction(input *[]web.IPSecurityRestriction) [] restriction["action"] = action if headers := v.Headers; headers != nil { - restriction["headers"] = flattenHeaders(headers) + restriction["headers"] = flattenHeaders(*headers) } restrictions = append(restrictions, restriction) @@ -1220,7 +1203,7 @@ func flattenLogicAppStandardIpRestriction(input *[]web.IPSecurityRestriction) [] return restrictions } -func flattenLogicAppStandardCorsSettings(input *web.CorsSettings) []interface{} { +func flattenLogicAppStandardCorsSettings(input *webapps.CorsSettings) []interface{} { results := make([]interface{}, 0) if input == nil { return results @@ -1266,9 +1249,9 @@ func flattenHeaders(input map[string][]string) []interface{} { return append(output, headers) } -func expandLogicAppStandardSiteConfig(d *pluginsdk.ResourceData) (web.SiteConfig, error) { +func expandLogicAppStandardSiteConfig(d *pluginsdk.ResourceData) (webapps.SiteConfig, error) { configs := d.Get("site_config").([]interface{}) - siteConfig := web.SiteConfig{} + siteConfig := webapps.SiteConfig{} if len(configs) == 0 { return siteConfig, nil @@ -1277,19 +1260,19 @@ func expandLogicAppStandardSiteConfig(d *pluginsdk.ResourceData) (web.SiteConfig config := configs[0].(map[string]interface{}) if v, ok := config["always_on"]; ok { - siteConfig.AlwaysOn = utils.Bool(v.(bool)) + siteConfig.AlwaysOn = pointer.To(v.(bool)) } if v, ok := config["use_32_bit_worker_process"]; ok { - siteConfig.Use32BitWorkerProcess = utils.Bool(v.(bool)) + siteConfig.Use32BitWorkerProcess = pointer.To(v.(bool)) } if v, ok := config["websockets_enabled"]; ok { - siteConfig.WebSocketsEnabled = utils.Bool(v.(bool)) + siteConfig.WebSocketsEnabled = pointer.To(v.(bool)) } if v, ok := config["linux_fx_version"]; ok { - siteConfig.LinuxFxVersion = utils.String(v.(string)) + siteConfig.LinuxFxVersion = pointer.To(v.(string)) } if v, ok := config["cors"]; ok { @@ -1298,7 +1281,7 @@ func expandLogicAppStandardSiteConfig(d *pluginsdk.ResourceData) (web.SiteConfig } if v, ok := config["http2_enabled"]; ok { - siteConfig.HTTP20Enabled = utils.Bool(v.(bool)) + siteConfig.HTTP20Enabled = pointer.To(v.(bool)) } if v, ok := config["ip_restriction"]; ok { @@ -1319,155 +1302,89 @@ func expandLogicAppStandardSiteConfig(d *pluginsdk.ResourceData) (web.SiteConfig } if v, ok := config["scm_use_main_ip_restriction"]; ok { - siteConfig.ScmIPSecurityRestrictionsUseMain = utils.Bool(v.(bool)) + siteConfig.ScmIPSecurityRestrictionsUseMain = pointer.To(v.(bool)) } if v, ok := config["scm_min_tls_version"]; ok { - siteConfig.ScmMinTLSVersion = web.SupportedTLSVersions(v.(string)) + siteConfig.ScmMinTlsVersion = pointer.To(webapps.SupportedTlsVersions(v.(string))) } if v, ok := config["scm_type"]; ok { - siteConfig.ScmType = web.ScmType(v.(string)) + siteConfig.ScmType = pointer.To(webapps.ScmType(v.(string))) } if v, ok := config["min_tls_version"]; ok { - siteConfig.MinTLSVersion = web.SupportedTLSVersions(v.(string)) + siteConfig.MinTlsVersion = pointer.To(webapps.SupportedTlsVersions(v.(string))) } if v, ok := config["ftps_state"]; ok { - siteConfig.FtpsState = web.FtpsState(v.(string)) + siteConfig.FtpsState = pointer.To(webapps.FtpsState(v.(string))) } // get value from `d` rather than the `config` map, or it will be covered by the zero-value "0" instead of nil. if v, ok := d.GetOk("site_config.0.pre_warmed_instance_count"); ok { - siteConfig.PreWarmedInstanceCount = utils.Int32(int32(v.(int))) + siteConfig.PreWarmedInstanceCount = pointer.To(int64(v.(int))) } if v, ok := config["health_check_path"]; ok { - siteConfig.HealthCheckPath = utils.String(v.(string)) + siteConfig.HealthCheckPath = pointer.To(v.(string)) } if v, ok := d.GetOk("site_config.0.elastic_instance_minimum"); ok { - siteConfig.MinimumElasticInstanceCount = utils.Int32(int32(v.(int))) + siteConfig.MinimumElasticInstanceCount = pointer.To(int64(v.(int))) } if v, ok := d.GetOk("site_config.0.app_scale_limit"); ok { - siteConfig.FunctionAppScaleLimit = utils.Int32(int32(v.(int))) + siteConfig.FunctionAppScaleLimit = pointer.To(int64(v.(int))) } if v, ok := config["runtime_scale_monitoring_enabled"]; ok { - siteConfig.FunctionsRuntimeScaleMonitoringEnabled = utils.Bool(v.(bool)) + siteConfig.FunctionsRuntimeScaleMonitoringEnabled = pointer.To(v.(bool)) } if v, ok := config["dotnet_framework_version"]; ok { - siteConfig.NetFrameworkVersion = utils.String(v.(string)) + siteConfig.NetFrameworkVersion = pointer.To(v.(string)) } if v, ok := config["vnet_route_all_enabled"]; ok { - siteConfig.VnetRouteAllEnabled = utils.Bool(v.(bool)) + siteConfig.VnetRouteAllEnabled = pointer.To(v.(bool)) } - if v, ok := config["public_network_access_enabled"]; ok { - pna := helpers.PublicNetworkAccessEnabled - if !v.(bool) { - pna = helpers.PublicNetworkAccessDisabled + if !features.FivePointOhBeta() { + if v, ok := config["public_network_access_enabled"]; ok { + pna := helpers.PublicNetworkAccessEnabled + if !v.(bool) { + pna = helpers.PublicNetworkAccessDisabled + } + siteConfig.PublicNetworkAccess = pointer.To(pna) } - siteConfig.PublicNetworkAccess = pointer.To(pna) } return siteConfig, nil } -func expandLogicAppStandardIdentity(input []interface{}) (*web.ManagedServiceIdentity, error) { - expanded, err := identity.ExpandSystemAndUserAssignedMap(input) - if err != nil { - return nil, err - } - - output := web.ManagedServiceIdentity{ - Type: web.ManagedServiceIdentityType(expanded.Type), - } - - if expanded.Type == identity.TypeUserAssigned || expanded.Type == identity.TypeSystemAssignedUserAssigned { - output.UserAssignedIdentities = expandLogicAppStandardUserAssignedIdentity(expanded.IdentityIds) - } - - return &output, nil -} - -func expandLogicAppStandardUserAssignedIdentity(input map[string]identity.UserAssignedIdentityDetails) map[string]*web.UserAssignedIdentity { - output := make(map[string]*web.UserAssignedIdentity) - for k := range input { - output[k] = &web.UserAssignedIdentity{} - } - return output -} - -func flattenLogicAppStandardIdentity(input *web.ManagedServiceIdentity) ([]interface{}, error) { - var transform *identity.SystemAndUserAssignedMap - - if input != nil { - transform = &identity.SystemAndUserAssignedMap{ - Type: identity.Type(string(input.Type)), - } - if input.PrincipalID != nil { - transform.PrincipalId = *input.PrincipalID - } - if input.TenantID != nil { - transform.TenantId = *input.TenantID - } - if input.UserAssignedIdentities != nil { - transform.IdentityIds = flattenLogicAppStandardUserAssignedIdentity(input.UserAssignedIdentities) - } - } - - output, err := identity.FlattenSystemAndUserAssignedMap(transform) - if err != nil { - return nil, err - } - return *output, nil -} - -func flattenLogicAppStandardUserAssignedIdentity(input map[string]*web.UserAssignedIdentity) map[string]identity.UserAssignedIdentityDetails { - expanded := make(map[string]identity.UserAssignedIdentityDetails) - for k, v := range input { - identityDetail := identity.UserAssignedIdentityDetails{} - if v.PrincipalID != nil { - identityDetail.PrincipalId = v.PrincipalID - } - if v.ClientID != nil { - identityDetail.ClientId = v.ClientID - } - expanded[k] = identityDetail - } - return expanded -} - -func expandLogicAppStandardSettings( - d *pluginsdk.ResourceData, - endpointSuffix string, -) (map[string]*string, error) { - output := make(map[string]*string) +func expandLogicAppStandardSettings(d *pluginsdk.ResourceData, endpointSuffix string) (map[string]string, error) { + output := make(map[string]string) appSettings := expandAppSettings(d) basicAppSettings, err := getBasicLogicAppSettings(d, endpointSuffix) if err != nil { return nil, err } for _, p := range append(basicAppSettings, appSettings...) { - output[*p.Name] = p.Value + output[*p.Name] = pointer.From(p.Value) } return output, nil } -func expandAppSettings(d *pluginsdk.ResourceData) []web.NameValuePair { +func expandAppSettings(d *pluginsdk.ResourceData) []webapps.NameValuePair { input := d.Get("app_settings").(map[string]interface{}) - output := make([]web.NameValuePair, 0) + output := make([]webapps.NameValuePair, 0) for k, v := range input { - nameValue := web.NameValuePair{ - Name: utils.String(k), - Value: utils.String(v.(string)), + nameValue := webapps.NameValuePair{ + Name: pointer.To(k), + Value: pointer.To(v.(string)), } output = append(output, nameValue) } @@ -1475,11 +1392,9 @@ func expandAppSettings(d *pluginsdk.ResourceData) []web.NameValuePair { return output } -func expandLogicAppStandardConnectionStrings( - d *pluginsdk.ResourceData, -) map[string]*web.ConnStringValueTypePair { +func expandLogicAppStandardConnectionStrings(d *pluginsdk.ResourceData) map[string]webapps.ConnStringValueTypePair { input := d.Get("connection_string").(*pluginsdk.Set).List() - output := make(map[string]*web.ConnStringValueTypePair, len(input)) + output := make(map[string]webapps.ConnStringValueTypePair, len(input)) for _, v := range input { vals := v.(map[string]interface{}) @@ -1488,18 +1403,18 @@ func expandLogicAppStandardConnectionStrings( csType := vals["type"].(string) csValue := vals["value"].(string) - output[csName] = &web.ConnStringValueTypePair{ - Value: utils.String(csValue), - Type: web.ConnectionStringType(csType), + output[csName] = webapps.ConnStringValueTypePair{ + Value: csValue, + Type: webapps.ConnectionStringType(csType), } } return output } -func expandLogicAppStandardCorsSettings(input interface{}) web.CorsSettings { +func expandLogicAppStandardCorsSettings(input interface{}) webapps.CorsSettings { settings := input.([]interface{}) - corsSettings := web.CorsSettings{} + corsSettings := webapps.CorsSettings{} if len(settings) == 0 { return corsSettings @@ -1519,14 +1434,14 @@ func expandLogicAppStandardCorsSettings(input interface{}) web.CorsSettings { } if v, ok := setting["support_credentials"]; ok { - corsSettings.SupportCredentials = utils.Bool(v.(bool)) + corsSettings.SupportCredentials = pointer.To(v.(bool)) } return corsSettings } -func expandLogicAppStandardIpRestriction(input interface{}) ([]web.IPSecurityRestriction, error) { - restrictions := make([]web.IPSecurityRestriction, 0) +func expandLogicAppStandardIpRestriction(input interface{}) ([]webapps.IPSecurityRestriction, error) { + restrictions := make([]webapps.IPSecurityRestriction, 0) for _, r := range input.([]interface{}) { if r == nil { @@ -1560,7 +1475,7 @@ func expandLogicAppStandardIpRestriction(input interface{}) ([]web.IPSecurityRes ) } - ipSecurityRestriction := web.IPSecurityRestriction{} + ipSecurityRestriction := webapps.IPSecurityRestriction{} if ipAddress == "Any" { continue } @@ -1571,11 +1486,11 @@ func expandLogicAppStandardIpRestriction(input interface{}) ([]web.IPSecurityRes if serviceTag != "" { ipSecurityRestriction.IPAddress = &serviceTag - ipSecurityRestriction.Tag = web.IPFilterTagServiceTag + ipSecurityRestriction.Tag = pointer.To(webapps.IPFilterTagServiceTag) } if vNetSubnetID != "" { - ipSecurityRestriction.VnetSubnetResourceID = &vNetSubnetID + ipSecurityRestriction.VnetSubnetResourceId = &vNetSubnetID } if name != "" { @@ -1583,14 +1498,14 @@ func expandLogicAppStandardIpRestriction(input interface{}) ([]web.IPSecurityRes } if priority != 0 { - ipSecurityRestriction.Priority = utils.Int32(int32(priority)) + ipSecurityRestriction.Priority = pointer.To(int64(priority)) } if action != "" { ipSecurityRestriction.Action = &action } if headers, ok := restriction["headers"]; ok { - ipSecurityRestriction.Headers = expandHeaders(headers.([]interface{})) + ipSecurityRestriction.Headers = pointer.To(expandHeaders(headers.([]interface{}))) } restrictions = append(restrictions, ipSecurityRestriction) diff --git a/internal/services/logic/logic_app_standard_resource_test.go b/internal/services/logic/logic_app_standard_resource_test.go index c0307d33d38d..d163f15597db 100644 --- a/internal/services/logic/logic_app_standard_resource_test.go +++ b/internal/services/logic/logic_app_standard_resource_test.go @@ -9,13 +9,14 @@ import ( "strings" "testing" + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/logic/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type LogicAppStandardResource struct{} @@ -30,12 +31,7 @@ func TestAccLogicAppStandard_basic(t *testing.T) { Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), acceptance.TestCheckResourceAttr(data.ResourceName, "kind", "functionapp,workflowapp"), - func() pluginsdk.TestCheckFunc { - if features.FourPointOhBeta() { - return check.That(data.ResourceName).Key("version").HasValue("~4") - } - return check.That(data.ResourceName).Key("version").HasValue("~3") - }(), + check.That(data.ResourceName).Key("version").HasValue("~4"), check.That(data.ResourceName).Key("outbound_ip_addresses").Exists(), check.That(data.ResourceName).Key("possible_outbound_ip_addresses").Exists(), check.That(data.ResourceName).Key("custom_domain_verification_id").Exists(), @@ -45,6 +41,28 @@ func TestAccLogicAppStandard_basic(t *testing.T) { }) } +func TestAccLogicAppStandard_publicNetworkAccessDisabled(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_logic_app_standard", "test") + r := LogicAppStandardResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.publicNetworkAccess(data, "Disabled"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.publicNetworkAccess(data, "Enabled"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccLogicAppStandard_containerized(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_logic_app_standard", "test") r := LogicAppStandardResource{} @@ -928,12 +946,15 @@ func TestAccLogicAppStandard_vNetIntegrationUpdate(t *testing.T) { } func TestAccLogicAppStandard_publicNetworkAccessEnabled(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping since `site_config.public_network_access_enabled` is removed in v5.0") + } data := acceptance.BuildTestData(t, "azurerm_logic_app_standard", "test") r := LogicAppStandardResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.publicNetworkAccessEnabled(data, false), + Config: r.siteConfigPublicNetworkAccessEnabled(data, false), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("site_config.0.public_network_access_enabled").HasValue("false"), @@ -941,7 +962,7 @@ func TestAccLogicAppStandard_publicNetworkAccessEnabled(t *testing.T) { }, data.ImportStep(), { - Config: r.publicNetworkAccessEnabled(data, true), + Config: r.siteConfigPublicNetworkAccessEnabled(data, true), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("site_config.0.public_network_access_enabled").HasValue("true"), @@ -952,25 +973,17 @@ func TestAccLogicAppStandard_publicNetworkAccessEnabled(t *testing.T) { } func (r LogicAppStandardResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := parse.LogicAppStandardID(state.ID) + id, err := commonids.ParseLogicAppId(state.ID) if err != nil { return nil, err } - resp, err := clients.Web.AppServicesClient.Get(ctx, id.ResourceGroup, id.SiteName) + resp, err := clients.AppService.WebAppsClient.Get(ctx, *id) if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - return utils.Bool(false), nil - } - return nil, fmt.Errorf("retrieving Function App %q (Resource Group %q): %+v", id.SiteName, id.ResourceGroup, err) + return nil, fmt.Errorf("retrieving %s: %+v", id, err) } - // The SDK defines 404 as an "ok" status code.. - if utils.ResponseWasNotFound(resp.Response) { - return utils.Bool(false), nil - } - - return utils.Bool(true), nil + return pointer.To(resp.Model != nil), nil } func (r LogicAppStandardResource) hasExtensionBundleAppSetting(shouldExist bool) func(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) error { @@ -1019,6 +1032,26 @@ resource "azurerm_logic_app_standard" "test" { `, r.template(data), data.RandomInteger) } +func (r LogicAppStandardResource) publicNetworkAccess(data acceptance.TestData, status string) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_logic_app_standard" "test" { + name = "acctest-%d-func" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + app_service_plan_id = azurerm_app_service_plan.test.id + storage_account_name = azurerm_storage_account.test.name + storage_account_access_key = azurerm_storage_account.test.primary_access_key + public_network_access = "%s" +} +`, r.template(data), data.RandomInteger, status) +} + func (r LogicAppStandardResource) containerized(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -1227,9 +1260,9 @@ provider "azurerm" { %s resource "azurerm_storage_share" "custom" { - name = "customshare" - storage_account_name = azurerm_storage_account.test.name - quota = 1 + name = "customshare" + storage_account_id = azurerm_storage_account.test.id + quota = 1 } resource "azurerm_logic_app_standard" "test" { @@ -2040,7 +2073,9 @@ resource "azurerm_app_service_plan" "test" { func (LogicAppStandardResource) vNetIntegration_basic(data acceptance.TestData) string { return fmt.Sprintf(` - +provider "azurerm" { + features {} +} resource "azurerm_resource_group" "test" { name = "acctestRG-%[1]d" @@ -2116,12 +2151,16 @@ resource "azurerm_logic_app_standard" "test" { } + + `, data.RandomInteger, data.Locations.Primary, data.RandomString) } func (LogicAppStandardResource) vNetIntegration_subnet1(data acceptance.TestData) string { return fmt.Sprintf(` - +provider "azurerm" { + features {} +} resource "azurerm_resource_group" "test" { name = "acctestRG-%[1]d" @@ -2198,12 +2237,16 @@ resource "azurerm_logic_app_standard" "test" { } + + `, data.RandomInteger, data.Locations.Primary, data.RandomString) } func (LogicAppStandardResource) vNetIntegration_subnet2(data acceptance.TestData) string { return fmt.Sprintf(` - +provider "azurerm" { + features {} +} resource "azurerm_resource_group" "test" { name = "acctestRG-%[1]d" @@ -2283,7 +2326,7 @@ resource "azurerm_logic_app_standard" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString) } -func (r LogicAppStandardResource) publicNetworkAccessEnabled(data acceptance.TestData, enabled bool) string { +func (r LogicAppStandardResource) siteConfigPublicNetworkAccessEnabled(data acceptance.TestData, enabled bool) string { return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/logic/logic_app_trigger_http_request_resource_test.go b/internal/services/logic/logic_app_trigger_http_request_resource_test.go index 8856d9705787..244a500addda 100644 --- a/internal/services/logic/logic_app_trigger_http_request_resource_test.go +++ b/internal/services/logic/logic_app_trigger_http_request_resource_test.go @@ -138,24 +138,6 @@ func TestAccLogicAppTriggerHttpRequest_disappears(t *testing.T) { }) } -func TestAccLogicAppTriggerHttpRequest_workflowWithISE(t *testing.T) { - t.Skip("skip as Integration Service Environment is being deprecated") - - data := acceptance.BuildTestData(t, "azurerm_logic_app_trigger_http_request", "test") - r := LogicAppTriggerHttpRequestResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.workflowWithISE(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("schema").HasValue("{}"), - ), - }, - data.ImportStep(), - }) -} - func (LogicAppTriggerHttpRequestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { return triggerExists(ctx, clients, state) } @@ -252,15 +234,3 @@ resource "azurerm_logic_app_workflow" "test" { } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } - -func (r LogicAppTriggerHttpRequestResource) workflowWithISE(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_logic_app_trigger_http_request" "test" { - name = "some-http-trigger" - logic_app_id = azurerm_logic_app_workflow.test.id - schema = "{}" -} -`, LogicAppWorkflowResource{}.integrationServiceEnvironment(data)) -} diff --git a/internal/services/logic/logic_app_trigger_recurrence_resource.go b/internal/services/logic/logic_app_trigger_recurrence_resource.go index d200b6861517..3de29b838b08 100644 --- a/internal/services/logic/logic_app_trigger_recurrence_resource.go +++ b/internal/services/logic/logic_app_trigger_recurrence_resource.go @@ -57,7 +57,6 @@ func resourceLogicAppTriggerRecurrence() *pluginsdk.Resource { "Day", "Hour", "Minute", - "Hour", "Second", }, false), }, diff --git a/internal/services/logic/logic_app_workflow_resource.go b/internal/services/logic/logic_app_workflow_resource.go index 3d1d55f31adc..44848ce3f67b 100644 --- a/internal/services/logic/logic_app_workflow_resource.go +++ b/internal/services/logic/logic_app_workflow_resource.go @@ -931,7 +931,7 @@ func flattenIPAddresses(input *[]workflows.IPAddress) []interface{} { return []interface{}{} } - var addresses []interface{} + addresses := make([]interface{}, 0, len(*input)) for _, addr := range *input { addresses = append(addresses, *addr.Address) } diff --git a/internal/services/logic/logic_app_workflow_resource_test.go b/internal/services/logic/logic_app_workflow_resource_test.go index 283b36c91600..26b44de8d34c 100644 --- a/internal/services/logic/logic_app_workflow_resource_test.go +++ b/internal/services/logic/logic_app_workflow_resource_test.go @@ -120,30 +120,6 @@ func TestAccLogicAppWorkflow_integrationAccount(t *testing.T) { }) } -func TestAccLogicAppWorkflow_integrationServiceEnvironment(t *testing.T) { - t.Skip("skip as Integration Service Environment is being deprecated") - - data := acceptance.BuildTestData(t, "azurerm_logic_app_workflow", "test") - r := LogicAppWorkflowResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.integrationServiceEnvironment(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.integrationServiceEnvironmentUpdated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccLogicAppWorkflow_parameters(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_logic_app_workflow", "test") r := LogicAppWorkflowResource{} @@ -352,36 +328,6 @@ resource "azurerm_logic_app_workflow" "test" { `, data.RandomInteger, data.Locations.Primary) } -func (r LogicAppWorkflowResource) integrationServiceEnvironment(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_logic_app_workflow" "test" { - name = "acctestlaw-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - integration_service_environment_id = azurerm_integration_service_environment.test.id -} -`, IntegrationServiceEnvironmentResource{}.basic(data), data.RandomInteger) -} - -func (r LogicAppWorkflowResource) integrationServiceEnvironmentUpdated(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_logic_app_workflow" "test" { - name = "acctestlaw-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - integration_service_environment_id = azurerm_integration_service_environment.test.id - - tags = { - "Source" = "AcceptanceTests" - } -} -`, IntegrationServiceEnvironmentResource{}.basic(data), data.RandomInteger) -} - func (LogicAppWorkflowResource) parameters(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/logic/parse/action.go b/internal/services/logic/parse/action.go index f0af47b9b4e9..0079d5d7c762 100644 --- a/internal/services/logic/parse/action.go +++ b/internal/services/logic/parse/action.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ActionID(input string) (*ActionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkflowName, err = id.PopSegment("workflows"); err != nil { diff --git a/internal/services/logic/parse/action_test.go b/internal/services/logic/parse/action_test.go index 10e02b33681b..6437058bf065 100644 --- a/internal/services/logic/parse/action_test.go +++ b/internal/services/logic/parse/action_test.go @@ -27,7 +27,6 @@ func TestActionID(t *testing.T) { Error bool Expected *ActionId }{ - { // empty Input: "", diff --git a/internal/services/logic/parse/logic_app_standard.go b/internal/services/logic/parse/logic_app_standard.go index 29e51eeac9c1..1841ec3621a2 100644 --- a/internal/services/logic/parse/logic_app_standard.go +++ b/internal/services/logic/parse/logic_app_standard.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func LogicAppStandardID(input string) (*LogicAppStandardId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/logic/parse/logic_app_standard_test.go b/internal/services/logic/parse/logic_app_standard_test.go index 7cc822243ea1..aade1ca72f07 100644 --- a/internal/services/logic/parse/logic_app_standard_test.go +++ b/internal/services/logic/parse/logic_app_standard_test.go @@ -27,7 +27,6 @@ func TestLogicAppStandardID(t *testing.T) { Error bool Expected *LogicAppStandardId }{ - { // empty Input: "", diff --git a/internal/services/logic/registration.go b/internal/services/logic/registration.go index d9877d16057d..9f393b360f7a 100644 --- a/internal/services/logic/registration.go +++ b/internal/services/logic/registration.go @@ -4,7 +4,6 @@ package logic import ( - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -59,9 +58,5 @@ func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { "azurerm_logic_app_standard": resourceLogicAppStandard(), } - if !features.FourPointOhBeta() { - resources["azurerm_integration_service_environment"] = resourceIntegrationServiceEnvironment() - } - return resources } diff --git a/internal/services/logic/validate/action_id_test.go b/internal/services/logic/validate/action_id_test.go index 63852cb1c193..baa5c6a77858 100644 --- a/internal/services/logic/validate/action_id_test.go +++ b/internal/services/logic/validate/action_id_test.go @@ -12,7 +12,6 @@ func TestActionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/logic/validate/logic_app_standard_id_test.go b/internal/services/logic/validate/logic_app_standard_id_test.go index 0465e3229b3a..b309f665ab17 100644 --- a/internal/services/logic/validate/logic_app_standard_id_test.go +++ b/internal/services/logic/validate/logic_app_standard_id_test.go @@ -12,7 +12,6 @@ func TestLogicAppStandardID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/machinelearning/client/client.go b/internal/services/machinelearning/client/client.go index 32eeed008b47..4d6385828281 100644 --- a/internal/services/machinelearning/client/client.go +++ b/internal/services/machinelearning/client/client.go @@ -8,6 +8,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore" "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes" + "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork" "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) @@ -16,6 +17,7 @@ type Client struct { Datastore *datastore.DatastoreClient MachineLearningComputes *machinelearningcomputes.MachineLearningComputesClient Workspaces *workspaces.WorkspacesClient + ManagedNetwork *managednetwork.ManagedNetworkClient } func NewClient(o *common.ClientOptions) (*Client, error) { @@ -37,9 +39,16 @@ func NewClient(o *common.ClientOptions) (*Client, error) { } o.Configure(computesClient.Client, o.Authorizers.ResourceManager) + managedNetworkClient, err := managednetwork.NewManagedNetworkClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building MachineLearningNetwork client: %+v", err) + } + o.Configure(managedNetworkClient.Client, o.Authorizers.ResourceManager) + return &Client{ MachineLearningComputes: computesClient, Datastore: datastoreClient, Workspaces: workspacesClient, + ManagedNetwork: managedNetworkClient, }, nil } diff --git a/internal/services/machinelearning/machine_learning_compute_cluster_resource.go b/internal/services/machinelearning/machine_learning_compute_cluster_resource.go index 9d9e3cd9df42..aaac3828f166 100644 --- a/internal/services/machinelearning/machine_learning_compute_cluster_resource.go +++ b/internal/services/machinelearning/machine_learning_compute_cluster_resource.go @@ -16,7 +16,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/machinelearning/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -25,7 +24,7 @@ import ( ) func resourceComputeCluster() *pluginsdk.Resource { - resource := &pluginsdk.Resource{ + return &pluginsdk.Resource{ Create: resourceComputeClusterCreate, Read: resourceComputeClusterRead, Update: resourceComputeClusterUpdate, @@ -164,16 +163,6 @@ func resourceComputeCluster() *pluginsdk.Resource { "tags": commonschema.TagsForceNew(), }, } - - if !features.FourPointOhBeta() { - resource.Schema["ssh_public_access_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - ForceNew: true, - Computed: true, - } - } - return resource } func resourceComputeClusterCreate(d *pluginsdk.ResourceData, meta interface{}) error { diff --git a/internal/services/machinelearning/machine_learning_compute_instance_resource.go b/internal/services/machinelearning/machine_learning_compute_instance_resource.go index 17caaa245c62..88b77788d55e 100644 --- a/internal/services/machinelearning/machine_learning_compute_instance_resource.go +++ b/internal/services/machinelearning/machine_learning_compute_instance_resource.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes" "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces" @@ -22,7 +21,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -159,18 +157,6 @@ func resourceComputeInstance() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["location"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - Deprecated: "The `azurerm_machine_learning_compute_instance` must be deployed to the same location as the associated `azurerm_machine_learning_workspace` resource, as the `location` fields must be the same the `location` field no longer has any effect and will be removed in version 4.0 of the AzureRM Provider", - ValidateFunc: location.EnhancedValidate, - StateFunc: location.StateFunc, - DiffSuppressFunc: location.DiffSuppressFunc, - } - } - return &resource } diff --git a/internal/services/machinelearning/machine_learning_compute_instance_resource_test.go b/internal/services/machinelearning/machine_learning_compute_instance_resource_test.go index f5b7c9097121..6ab065378fd7 100644 --- a/internal/services/machinelearning/machine_learning_compute_instance_resource_test.go +++ b/internal/services/machinelearning/machine_learning_compute_instance_resource_test.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -126,29 +125,22 @@ func (r ComputeInstanceResource) Exists(ctx context.Context, client *clients.Cli func (r ComputeInstanceResource) basic(data acceptance.TestData) string { template := r.template(data) - var location string - if !features.FourPointOhBeta() { - location = "location = azurerm_resource_group.test.location" - } + return fmt.Sprintf(` %s resource "azurerm_machine_learning_compute_instance" "test" { - name = "acctest%d" - %s + name = "acctest%d" machine_learning_workspace_id = azurerm_machine_learning_workspace.test.id virtual_machine_size = "STANDARD_DS2_V2" local_auth_enabled = false } -`, template, data.RandomIntOfLength(8), location) +`, template, data.RandomIntOfLength(8)) } func (r ComputeInstanceResource) complete(data acceptance.TestData) string { template := r.template(data) - var location string - if !features.FourPointOhBeta() { - location = "location = azurerm_resource_group.test.location" - } + return fmt.Sprintf(` %s @@ -222,8 +214,7 @@ resource "azurerm_private_endpoint" "test" { } resource "azurerm_machine_learning_compute_instance" "test" { - name = "acctest%d" - %s + name = "acctest%d" machine_learning_workspace_id = azurerm_machine_learning_workspace.test.id virtual_machine_size = "STANDARD_DS2_V2" authorization_type = "personal" @@ -241,57 +232,41 @@ resource "azurerm_machine_learning_compute_instance" "test" { azurerm_private_endpoint.test ] } -`, template, data.RandomIntOfLength(8), data.RandomIntOfLength(8), data.RandomIntOfLength(8), data.RandomIntOfLength(8), data.RandomIntOfLength(8), location) +`, template, data.RandomIntOfLength(8), data.RandomIntOfLength(8), data.RandomIntOfLength(8), data.RandomIntOfLength(8), data.RandomIntOfLength(8)) } func (r ComputeInstanceResource) requiresImport(data acceptance.TestData) string { - var template string - var location string - - if !features.FourPointOhBeta() { - location = "location = azurerm_resource_group.test.location" - } - - template = r.basic(data) + template := r.basic(data) return fmt.Sprintf(` %s resource "azurerm_machine_learning_compute_instance" "import" { - name = azurerm_machine_learning_compute_instance.test.name - %s + name = azurerm_machine_learning_compute_instance.test.name machine_learning_workspace_id = azurerm_machine_learning_compute_instance.test.machine_learning_workspace_id virtual_machine_size = "STANDARD_DS2_V2" } -`, template, location) +`, template) } func (r ComputeInstanceResource) identitySystemAssigned(data acceptance.TestData) string { template := r.template(data) - var location string - if !features.FourPointOhBeta() { - location = "location = azurerm_resource_group.test.location" - } + return fmt.Sprintf(` %s resource "azurerm_machine_learning_compute_instance" "test" { - name = "acctest%d" - %s + name = "acctest%d" machine_learning_workspace_id = azurerm_machine_learning_workspace.test.id virtual_machine_size = "STANDARD_DS2_V2" identity { type = "SystemAssigned" } } -`, template, data.RandomIntOfLength(8), location) +`, template, data.RandomIntOfLength(8)) } func (r ComputeInstanceResource) identityUserAssigned(data acceptance.TestData) string { template := r.template(data) - var location string - if !features.FourPointOhBeta() { - location = "location = azurerm_resource_group.test.location" - } return fmt.Sprintf(` %s @@ -302,8 +277,7 @@ resource "azurerm_user_assigned_identity" "test" { } resource "azurerm_machine_learning_compute_instance" "test" { - name = "acctest%d" - %s + name = "acctest%d" machine_learning_workspace_id = azurerm_machine_learning_workspace.test.id virtual_machine_size = "STANDARD_DS2_V2" identity { @@ -313,16 +287,12 @@ resource "azurerm_machine_learning_compute_instance" "test" { ] } } -`, template, data.RandomInteger, data.RandomIntOfLength(8), location) +`, template, data.RandomInteger, data.RandomIntOfLength(8)) } func (r ComputeInstanceResource) identitySystemAssignedUserAssigned(data acceptance.TestData) string { - var location string template := r.template(data) - if !features.FourPointOhBeta() { - location = "location = azurerm_resource_group.test.location" - } return fmt.Sprintf(` %s @@ -333,8 +303,7 @@ resource "azurerm_user_assigned_identity" "test" { } resource "azurerm_machine_learning_compute_instance" "test" { - name = "acctest%d" - %s + name = "acctest%d" machine_learning_workspace_id = azurerm_machine_learning_workspace.test.id virtual_machine_size = "STANDARD_DS2_V2" identity { @@ -344,7 +313,7 @@ resource "azurerm_machine_learning_compute_instance" "test" { ] } } -`, template, data.RandomInteger, data.RandomIntOfLength(8), location) +`, template, data.RandomInteger, data.RandomIntOfLength(8)) } func (r ComputeInstanceResource) template(data acceptance.TestData) string { diff --git a/internal/services/machinelearning/machine_learning_workspace_network_outbound_rule_fqdn_resource.go b/internal/services/machinelearning/machine_learning_workspace_network_outbound_rule_fqdn_resource.go new file mode 100644 index 000000000000..5d619f764067 --- /dev/null +++ b/internal/services/machinelearning/machine_learning_workspace_network_outbound_rule_fqdn_resource.go @@ -0,0 +1,231 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package machinelearning + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork" + "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces" + "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +var _ sdk.ResourceWithUpdate = WorkspaceNetworkOutboundRuleFqdn{} + +type machineLearningWorkspaceOutboundRuleFqdnModel struct { + Name string `tfschema:"name"` + WorkspaceId string `tfschema:"workspace_id"` + Destination string `tfschema:"destination_fqdn"` +} + +type WorkspaceNetworkOutboundRuleFqdn struct{} + +var _ sdk.Resource = WorkspaceNetworkOutboundRuleFqdn{} + +func (r WorkspaceNetworkOutboundRuleFqdn) ResourceType() string { + return "azurerm_machine_learning_workspace_network_outbound_rule_fqdn" +} + +func (r WorkspaceNetworkOutboundRuleFqdn) ModelObject() interface{} { + return &machineLearningWorkspaceOutboundRuleFqdnModel{} +} + +func (r WorkspaceNetworkOutboundRuleFqdn) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return managednetwork.ValidateOutboundRuleID +} + +func (r WorkspaceNetworkOutboundRuleFqdn) Arguments() map[string]*pluginsdk.Schema { + arguments := map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + + "workspace_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: managednetwork.ValidateWorkspaceID, + }, + + "destination_fqdn": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + } + return arguments +} + +func (r WorkspaceNetworkOutboundRuleFqdn) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (r WorkspaceNetworkOutboundRuleFqdn) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + var model machineLearningWorkspaceOutboundRuleFqdnModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + client := metadata.Client.MachineLearning.ManagedNetwork + subscriptionId := metadata.Client.Account.SubscriptionId + + workspaceId, err := managednetwork.ParseWorkspaceID(model.WorkspaceId) + if err != nil { + return err + } + id := managednetwork.NewOutboundRuleID(subscriptionId, workspaceId.ResourceGroupName, workspaceId.WorkspaceName, model.Name) + existing, err := client.SettingsRuleGet(ctx, id) + if err != nil { + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for presence of existing %s: %+v", id, err) + } + } + if !response.WasNotFound(existing.HttpResponse) { + return tf.ImportAsExistsError("azurerm_machine_learning_workspace_network_outbound_rule_fqdn", id.ID()) + } + + outboundRule := managednetwork.OutboundRuleBasicResource{ + Name: pointer.To(model.Name), + Type: pointer.To(string(managednetwork.RuleTypeFQDN)), + Properties: managednetwork.FqdnOutboundRule{ + Category: pointer.To(managednetwork.RuleCategoryUserDefined), + Destination: &model.Destination, + }, + } + + if err = client.SettingsRuleCreateOrUpdateThenPoll(ctx, id, outboundRule); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + return nil + }, + } +} + +func (r WorkspaceNetworkOutboundRuleFqdn) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + var model machineLearningWorkspaceOutboundRuleFqdnModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + client := metadata.Client.MachineLearning.ManagedNetwork + id, err := managednetwork.ParseOutboundRuleID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + existing, err := client.SettingsRuleGet(ctx, *id) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + if existing.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", id) + } + + if existing.Model.Properties == nil { + return fmt.Errorf("retrieving %s: `properties` was nil", id) + } + + payload := existing.Model + + if metadata.ResourceData.HasChange("destination_fqdn") { + payload.Properties = managednetwork.FqdnOutboundRule{ + Destination: &model.Destination, + } + } + + if err = client.SettingsRuleCreateOrUpdateThenPoll(ctx, *id, *payload); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + return nil + }, + } +} + +func (r WorkspaceNetworkOutboundRuleFqdn) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.MachineLearning.ManagedNetwork + + id, err := managednetwork.ParseOutboundRuleID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.SettingsRuleGet(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return metadata.MarkAsGone(id) + } + + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + model := resp.Model + if model == nil { + return fmt.Errorf("retrieving %s: model was nil", id) + } + + state := machineLearningWorkspaceOutboundRuleFqdnModel{ + Name: id.OutboundRuleName, + } + + if props := model.Properties; props != nil { + if prop, ok := props.(managednetwork.FqdnOutboundRule); ok { + if prop.Destination != nil { + state.Destination = *prop.Destination + } + } + } + + state.WorkspaceId = workspaces.NewWorkspaceID(metadata.Client.Account.SubscriptionId, id.ResourceGroupName, id.WorkspaceName).ID() + + return metadata.Encode(&state) + }, + } +} + +func (r WorkspaceNetworkOutboundRuleFqdn) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.MachineLearning.ManagedNetwork + + id, err := managednetwork.ParseOutboundRuleID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + future, err := client.SettingsRuleDelete(ctx, *id) + if err != nil { + return fmt.Errorf("deleting Machine Learning Workspace FQDN Network Outbound Rule %q (Resource Group %q, Workspace %q): %+v", id.OutboundRuleName, id.ResourceGroupName, id.WorkspaceName, err) + } + + if err = future.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("waiting for deletion of Machine Learning Workspace FQDN Network Outbound Rule %q (Resource Group %q, Workspace %q): %+v", id.OutboundRuleName, id.ResourceGroupName, id.WorkspaceName, err) + } + + return nil + }, + } +} diff --git a/internal/services/machinelearning/machine_learning_workspace_network_outbound_rule_fqdn_resource_test.go b/internal/services/machinelearning/machine_learning_workspace_network_outbound_rule_fqdn_resource_test.go new file mode 100644 index 000000000000..c825ff955cc0 --- /dev/null +++ b/internal/services/machinelearning/machine_learning_workspace_network_outbound_rule_fqdn_resource_test.go @@ -0,0 +1,240 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package machinelearning_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/utils" +) + +type WorkspaceNetworkOutboundRuleFqdnResource struct{} + +func TestAccMachineLearningWorkspaceNetworkOutboundRuleFqdn_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_machine_learning_workspace_network_outbound_rule_fqdn", "test") + r := WorkspaceNetworkOutboundRuleFqdnResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("destination_fqdn").Exists(), + ), + }, + data.ImportStep(), + }) +} + +func TestAccMachineLearningWorkspaceNetworkOutboundRuleFqdn_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_machine_learning_workspace_network_outbound_rule_fqdn", "test") + r := WorkspaceNetworkOutboundRuleFqdnResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("destination_fqdn").Exists(), + ), + }, + data.ImportStep(), + { + Config: r.update(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("destination_fqdn").HasValue("destinationupdate"), + ), + }, + data.ImportStep(), + }) +} + +func TestAccMachineLearningWorkspaceNetworkOutboundRuleFqdn_requiresImport(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_machine_learning_workspace_network_outbound_rule_fqdn", "test") + r := WorkspaceNetworkOutboundRuleFqdnResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("destination_fqdn").Exists(), + ), + }, + data.RequiresImportErrorStep(r.requiresImport), + }) +} + +func (r WorkspaceNetworkOutboundRuleFqdnResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + maangedNetworkClient := client.MachineLearning.ManagedNetwork + id, err := managednetwork.ParseOutboundRuleID(state.ID) + if err != nil { + return nil, err + } + + resp, err := maangedNetworkClient.SettingsRuleGet(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return utils.Bool(false), nil + } + return nil, fmt.Errorf("retrieving Machine Learning Workspace Outbound Rule FQDN %q: %+v", state.ID, err) + } + + return utils.Bool(resp.Model.Properties != nil), nil +} + +func (r WorkspaceNetworkOutboundRuleFqdnResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +data "azurerm_client_config" "current" {} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-ml-%[1]d" + location = "%[2]s" +} + +resource "azurerm_application_insights" "test" { + name = "acctestai-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + application_type = "web" +} + +resource "azurerm_key_vault" "test" { + name = "acctestvault%[3]s" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + tenant_id = data.azurerm_client_config.current.tenant_id + sku_name = "standard" + purge_protection_enabled = true +} + +resource "azurerm_key_vault_access_policy" "test" { + key_vault_id = azurerm_key_vault.test.id + tenant_id = data.azurerm_client_config.current.tenant_id + object_id = data.azurerm_client_config.current.object_id + + key_permissions = [ + "Create", + "Get", + "Delete", + "Purge", + "GetRotationPolicy", + ] +} + +resource "azurerm_storage_account" "test" { + name = "acctestsa%[4]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + account_tier = "Standard" + account_replication_type = "LRS" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomIntOfLength(10)) +} + +func (r WorkspaceNetworkOutboundRuleFqdnResource) basic(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +provider "azurerm" { + features { + key_vault { + purge_soft_delete_on_destroy = false + purge_soft_deleted_keys_on_destroy = false + } + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +%[1]s + +resource "azurerm_machine_learning_workspace" "test" { + name = "acctest-MLW-%[2]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + application_insights_id = azurerm_application_insights.test.id + key_vault_id = azurerm_key_vault.test.id + storage_account_id = azurerm_storage_account.test.id + + managed_network { + isolation_mode = "AllowOnlyApprovedOutbound" + } + + identity { + type = "SystemAssigned" + } +} + +resource "azurerm_machine_learning_workspace_network_outbound_rule_fqdn" "test" { + name = "acctest-MLW-outboundrule-%[3]s" + workspace_id = azurerm_machine_learning_workspace.test.id + destination_fqdn = "destination" +} +`, template, data.RandomInteger, data.RandomString) +} + +func (r WorkspaceNetworkOutboundRuleFqdnResource) update(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +provider "azurerm" { + features { + key_vault { + purge_soft_delete_on_destroy = false + purge_soft_deleted_keys_on_destroy = false + } + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +%[1]s + +resource "azurerm_machine_learning_workspace" "test" { + name = "acctest-MLW-%[2]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + application_insights_id = azurerm_application_insights.test.id + key_vault_id = azurerm_key_vault.test.id + storage_account_id = azurerm_storage_account.test.id + + managed_network { + isolation_mode = "AllowOnlyApprovedOutbound" + } + + identity { + type = "SystemAssigned" + } +} + +resource "azurerm_machine_learning_workspace_network_outbound_rule_fqdn" "test" { + name = "acctest-MLW-outboundrule-%[3]s" + workspace_id = azurerm_machine_learning_workspace.test.id + destination_fqdn = "destinationupdate" +} +`, template, data.RandomInteger, data.RandomString) +} + +func (r WorkspaceNetworkOutboundRuleFqdnResource) requiresImport(data acceptance.TestData) string { + template := r.basic(data) + return fmt.Sprintf(` +%s + +resource "azurerm_machine_learning_workspace_network_outbound_rule_fqdn" "import" { + name = azurerm_machine_learning_workspace_network_outbound_rule_fqdn.test.name + workspace_id = azurerm_machine_learning_workspace_network_outbound_rule_fqdn.test.workspace_id + destination_fqdn = azurerm_machine_learning_workspace_network_outbound_rule_fqdn.test.destination_fqdn +} +`, template) +} diff --git a/internal/services/machinelearning/machine_learning_workspace_resource.go b/internal/services/machinelearning/machine_learning_workspace_resource.go index ade3e63d8338..ff70637d35fd 100644 --- a/internal/services/machinelearning/machine_learning_workspace_resource.go +++ b/internal/services/machinelearning/machine_learning_workspace_resource.go @@ -16,11 +16,10 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" components "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/machinelearning/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" @@ -36,7 +35,7 @@ const ( ) func resourceMachineLearningWorkspace() *pluginsdk.Resource { - resource := &pluginsdk.Resource{ + return &pluginsdk.Resource{ Create: resourceMachineLearningWorkspaceCreate, Read: resourceMachineLearningWorkspaceRead, Update: resourceMachineLearningWorkspaceUpdate, @@ -257,27 +256,6 @@ func resourceMachineLearningWorkspace() *pluginsdk.Resource { "tags": commonschema.Tags(), }, } - - if !features.FourPointOhBeta() { - // For the time being we should just deprecate and remove this property since it's broken in the API - it doesn't - // actually set the property and also isn't returned by the API. Once https://github.com/Azure/azure-rest-api-specs/issues/18340 - // is fixed we can reassess how to deal with this field. - resource.Schema["public_access_behind_virtual_network_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - ForceNew: true, - Deprecated: "`public_access_behind_virtual_network_enabled` will be removed in favour of the property `public_network_access_enabled` in version 4.0 of the AzureRM Provider.", - ConflictsWith: []string{"public_network_access_enabled"}, - } - resource.Schema["public_network_access_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - ConflictsWith: []string{"public_access_behind_virtual_network_enabled"}, - } - } - - return resource } func resourceMachineLearningWorkspaceCreate(d *pluginsdk.ResourceData, meta interface{}) error { @@ -306,15 +284,9 @@ func resourceMachineLearningWorkspaceCreate(d *pluginsdk.ResourceData, meta inte expandedEncryption := expandMachineLearningWorkspaceEncryption(d.Get("encryption").([]interface{})) networkAccessBehindVnetEnabled := workspaces.PublicNetworkAccessDisabled - if !features.FourPointOhBeta() { - // nolint: staticcheck - if v, ok := d.GetOkExists("public_network_access_enabled"); ok && v.(bool) { - networkAccessBehindVnetEnabled = workspaces.PublicNetworkAccessEnabled - } - } else { - if v := d.Get("public_network_access_enabled").(bool); v { - networkAccessBehindVnetEnabled = workspaces.PublicNetworkAccessEnabled - } + + if v := d.Get("public_network_access_enabled").(bool); v { + networkAccessBehindVnetEnabled = workspaces.PublicNetworkAccessEnabled } workspace := workspaces.Workspace{ @@ -583,10 +555,6 @@ func resourceMachineLearningWorkspaceRead(d *pluginsdk.ResourceData, meta interf } d.Set("key_vault_id", kvId.ID()) - if !features.FourPointOhBeta() { - d.Set("public_access_behind_virtual_network_enabled", props.AllowPublicAccessWhenBehindVnet) - } - featureStoreSettings := flattenMachineLearningWorkspaceFeatureStore(props.FeatureStoreSettings) if err := d.Set("feature_store", featureStoreSettings); err != nil { return fmt.Errorf("setting `feature_store`: %+v", err) diff --git a/internal/services/machinelearning/machine_learning_workspace_resource_test.go b/internal/services/machinelearning/machine_learning_workspace_resource_test.go index 49e0c0668e34..0f50d3df36e3 100644 --- a/internal/services/machinelearning/machine_learning_workspace_resource_test.go +++ b/internal/services/machinelearning/machine_learning_workspace_resource_test.go @@ -757,6 +757,7 @@ resource "azurerm_machine_learning_workspace" "test" { } `, r.template(data), data.RandomInteger) } + func (r WorkspaceResource) userAssignedIdentityUpdate(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -965,6 +966,7 @@ resource "azurerm_machine_learning_workspace" "test" { } func (r WorkspaceResource) userAssignedAndCustomManagedKey(data acceptance.TestData) string { + // nolint: dupword return fmt.Sprintf(` provider "azurerm" { features { @@ -1094,8 +1096,7 @@ resource "azurerm_machine_learning_workspace" "test" { azurerm_role_assignment.test_sa1, azurerm_key_vault_access_policy.test-policy1, ] -} -`, r.template(data), data.RandomInteger) +}`, r.template(data), data.RandomInteger) } func (r WorkspaceResource) featureStore(data acceptance.TestData) string { @@ -1213,6 +1214,10 @@ resource "azurerm_machine_learning_workspace" "test" { func (r WorkspaceResource) serverlessCompute(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` +provider "azurerm" { + features {} +} + %s resource "azurerm_virtual_network" "test" { @@ -1252,6 +1257,10 @@ resource "azurerm_machine_learning_workspace" "test" { func (r WorkspaceResource) serverlessComputeWithoutSubnet(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` +provider "azurerm" { + features {} +} + %s resource "azurerm_virtual_network" "test" { diff --git a/internal/services/machinelearning/registration.go b/internal/services/machinelearning/registration.go index 72f68b379622..3b2b51fcae3c 100644 --- a/internal/services/machinelearning/registration.go +++ b/internal/services/machinelearning/registration.go @@ -10,8 +10,10 @@ import ( type Registration struct{} -var _ sdk.TypedServiceRegistration = Registration{} -var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +var ( + _ sdk.TypedServiceRegistration = Registration{} + _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +) func (r Registration) AssociatedGitHubLabel() string { return "service/machine-learning" @@ -57,5 +59,6 @@ func (r Registration) Resources() []sdk.Resource { MachineLearningDataStoreBlobStorage{}, MachineLearningDataStoreDataLakeGen2{}, MachineLearningDataStoreFileShare{}, + WorkspaceNetworkOutboundRuleFqdn{}, } } diff --git a/internal/services/maintenance/maintenance_assignment_dedicated_host_resource.go b/internal/services/maintenance/maintenance_assignment_dedicated_host_resource.go index 85e64b9ba612..b1ad6dd015a6 100644 --- a/internal/services/maintenance/maintenance_assignment_dedicated_host_resource.go +++ b/internal/services/maintenance/maintenance_assignment_dedicated_host_resource.go @@ -4,6 +4,7 @@ package maintenance import ( + "errors" "fmt" "strings" "time" @@ -114,7 +115,7 @@ func resourceArmMaintenanceAssignmentDedicatedHostCreate(d *pluginsdk.ResourceDa err = pluginsdk.Retry(d.Timeout(pluginsdk.TimeoutCreate), func() *pluginsdk.RetryError { if _, err := client.CreateOrUpdateParent(ctx, id, configurationAssignment); err != nil { if strings.Contains(err.Error(), "It may take a few minutes after starting a VM for it to become available to assign to a configuration") { - return pluginsdk.RetryableError(fmt.Errorf("expected VM is available to assign to a configuration but was in pending state, retrying")) + return pluginsdk.RetryableError(errors.New("expected VM is available to assign to a configuration but was in pending state, retrying")) } return pluginsdk.NonRetryableError(fmt.Errorf("issuing creating request for %s: %+v", id, err)) } diff --git a/internal/services/maintenance/maintenance_assignment_dynamic_scope_resource.go b/internal/services/maintenance/maintenance_assignment_dynamic_scope_resource.go index 5b4282cb3bbe..399d633ace8d 100644 --- a/internal/services/maintenance/maintenance_assignment_dynamic_scope_resource.go +++ b/internal/services/maintenance/maintenance_assignment_dynamic_scope_resource.go @@ -258,11 +258,9 @@ func (MaintenanceDynamicScopeResource) Read() sdk.ResourceFunc { } if model := resp.Model; model != nil { - state.Name = id.ConfigurationAssignmentName if properties := model.Properties; properties != nil { - if properties.MaintenanceConfigurationId != nil { maintenanceConfigurationId, err := maintenanceconfigurations.ParseMaintenanceConfigurationIDInsensitively(pointer.From(properties.MaintenanceConfigurationId)) if err != nil { diff --git a/internal/services/maintenance/maintenance_assignment_virtual_machine_resource.go b/internal/services/maintenance/maintenance_assignment_virtual_machine_resource.go index ad000a214e14..95509d4b24f3 100644 --- a/internal/services/maintenance/maintenance_assignment_virtual_machine_resource.go +++ b/internal/services/maintenance/maintenance_assignment_virtual_machine_resource.go @@ -4,6 +4,7 @@ package maintenance import ( + "errors" "fmt" "strings" "time" @@ -114,7 +115,7 @@ func resourceArmMaintenanceAssignmentVirtualMachineCreate(d *pluginsdk.ResourceD err = pluginsdk.Retry(d.Timeout(pluginsdk.TimeoutCreate), func() *pluginsdk.RetryError { if _, err := client.CreateOrUpdate(ctx, id, configurationAssignment); err != nil { if strings.Contains(err.Error(), "It may take a few minutes after starting a VM for it to become available to assign to a configuration") { - return pluginsdk.RetryableError(fmt.Errorf("expected VM is available to assign to a configuration but was in pending state, retrying")) + return pluginsdk.RetryableError(errors.New("expected VM is available to assign to a configuration but was in pending state, retrying")) } return pluginsdk.NonRetryableError(fmt.Errorf("issuing creating request for %s: %+v", id, err)) } diff --git a/internal/services/maintenance/maintenance_assignment_virtual_machine_scale_set_resource.go b/internal/services/maintenance/maintenance_assignment_virtual_machine_scale_set_resource.go index 63f409fe9953..1b3c2183294e 100644 --- a/internal/services/maintenance/maintenance_assignment_virtual_machine_scale_set_resource.go +++ b/internal/services/maintenance/maintenance_assignment_virtual_machine_scale_set_resource.go @@ -130,7 +130,6 @@ func resourceArmMaintenanceAssignmentVirtualMachineScaleSetRead(d *pluginsdk.Res } resp, err := client.Get(ctx, *id) - if err != nil { if response.WasNotFound(resp.HttpResponse) { d.SetId("") diff --git a/internal/services/maintenance/maintenance_configuration_resource.go b/internal/services/maintenance/maintenance_configuration_resource.go index 2dc3d15d62fc..6776f12e193e 100644 --- a/internal/services/maintenance/maintenance_configuration_resource.go +++ b/internal/services/maintenance/maintenance_configuration_resource.go @@ -4,6 +4,7 @@ package maintenance import ( + "errors" "fmt" "log" "regexp" @@ -264,14 +265,14 @@ func resourceMaintenanceConfigurationCreate(d *pluginsdk.ResourceData, meta inte if scope == maintenanceconfigurations.MaintenanceScopeInGuestPatch { if window == nil { - return fmt.Errorf("`window` must be specified when `scope` is `InGuestPatch`") + return errors.New("`window` must be specified when `scope` is `InGuestPatch`") } if installPatches == nil { - return fmt.Errorf("`install_patches` must be specified when `scope` is `InGuestPatch`") + return errors.New("`install_patches` must be specified when `scope` is `InGuestPatch`") } if _, ok := (*extensionProperties)["InGuestPatchMode"]; !ok { if _, ok := d.GetOk("in_guest_user_patch_mode"); !ok { - return fmt.Errorf("`in_guest_user_patch_mode` must be specified when `scope` is `InGuestPatch`") + return errors.New("`in_guest_user_patch_mode` must be specified when `scope` is `InGuestPatch`") } (*extensionProperties)["InGuestPatchMode"] = d.Get("in_guest_user_patch_mode").(string) } @@ -323,14 +324,14 @@ func resourceMaintenanceConfigurationUpdate(d *pluginsdk.ResourceData, meta inte extensionProperties := expandExtensionProperties(d.Get("properties").(map[string]interface{})) if scope == maintenanceconfigurations.MaintenanceScopeInGuestPatch { if window == nil { - return fmt.Errorf("`window` must be specified when `scope` is `InGuestPatch`") + return errors.New("`window` must be specified when `scope` is `InGuestPatch`") } if installPatches == nil { - return fmt.Errorf("`install_patches` must be specified when `scope` is `InGuestPatch`") + return errors.New("`install_patches` must be specified when `scope` is `InGuestPatch`") } if _, ok := (*extensionProperties)["InGuestPatchMode"]; !ok { if _, ok := d.GetOk("in_guest_user_patch_mode"); !ok { - return fmt.Errorf("`in_guest_user_patch_mode` must be specified when `scope` is `InGuestPatch`") + return errors.New("`in_guest_user_patch_mode` must be specified when `scope` is `InGuestPatch`") } (*extensionProperties)["InGuestPatchMode"] = d.Get("in_guest_user_patch_mode").(string) } diff --git a/internal/services/maintenance/migration/assignment_dedicated_host_v0_to_v1.go b/internal/services/maintenance/migration/assignment_dedicated_host_v0_to_v1.go index 36314fbe51ee..481a3afe0dcd 100644 --- a/internal/services/maintenance/migration/assignment_dedicated_host_v0_to_v1.go +++ b/internal/services/maintenance/migration/assignment_dedicated_host_v0_to_v1.go @@ -15,8 +15,7 @@ import ( var _ pluginsdk.StateUpgrade = AssignmentDedicatedHostV0ToV1{} -type AssignmentDedicatedHostV0ToV1 struct { -} +type AssignmentDedicatedHostV0ToV1 struct{} func (AssignmentDedicatedHostV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/maintenance/migration/assignment_virtual_machine_scale_set_v0_to_v1.go b/internal/services/maintenance/migration/assignment_virtual_machine_scale_set_v0_to_v1.go index d6bfa1cbdba4..84239a4b7837 100644 --- a/internal/services/maintenance/migration/assignment_virtual_machine_scale_set_v0_to_v1.go +++ b/internal/services/maintenance/migration/assignment_virtual_machine_scale_set_v0_to_v1.go @@ -15,8 +15,7 @@ import ( var _ pluginsdk.StateUpgrade = AssignmentVirtualMachineScaleSetV0ToV1{} -type AssignmentVirtualMachineScaleSetV0ToV1 struct { -} +type AssignmentVirtualMachineScaleSetV0ToV1 struct{} func (AssignmentVirtualMachineScaleSetV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/maintenance/migration/assignment_virtual_machine_v0_to_v1.go b/internal/services/maintenance/migration/assignment_virtual_machine_v0_to_v1.go index 20135a055407..76f26cd8e2e1 100644 --- a/internal/services/maintenance/migration/assignment_virtual_machine_v0_to_v1.go +++ b/internal/services/maintenance/migration/assignment_virtual_machine_v0_to_v1.go @@ -15,8 +15,7 @@ import ( var _ pluginsdk.StateUpgrade = AssignmentVirtualMachineV0ToV1{} -type AssignmentVirtualMachineV0ToV1 struct { -} +type AssignmentVirtualMachineV0ToV1 struct{} func (AssignmentVirtualMachineV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/maintenance/public_maintenance_configurations_data_source.go b/internal/services/maintenance/public_maintenance_configurations_data_source.go index b980ec12ffb9..5d8fa600558e 100644 --- a/internal/services/maintenance/public_maintenance_configurations_data_source.go +++ b/internal/services/maintenance/public_maintenance_configurations_data_source.go @@ -5,6 +5,7 @@ package maintenance import ( "encoding/base64" + "errors" "fmt" "time" @@ -18,8 +19,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" ) -const recurMondayToThursday = "Monday-Thursday" -const recurFridayToSunday = "Friday-Sunday" +const ( + recurMondayToThursday = "Monday-Thursday" + recurFridayToSunday = "Friday-Sunday" +) func dataSourcePublicMaintenanceConfigurations() *pluginsdk.Resource { return &pluginsdk.Resource{ @@ -30,7 +33,6 @@ func dataSourcePublicMaintenanceConfigurations() *pluginsdk.Resource { }, Schema: map[string]*pluginsdk.Schema{ - "location": { Type: pluginsdk.TypeString, Optional: true, @@ -120,7 +122,7 @@ func dataSourcePublicMaintenanceConfigurationsRead(d *pluginsdk.ResourceData, me resp, err := client.List(ctx, subId) if err != nil { if response.WasNotFound(resp.HttpResponse) { - return fmt.Errorf("no Public Maintenance Configurations were found") + return errors.New("no Public Maintenance Configurations were found") } return fmt.Errorf("retrieving Public Maintenance Configurations: %+v", err) } @@ -170,7 +172,7 @@ func dataSourcePublicMaintenanceConfigurationsRead(d *pluginsdk.ResourceData, me } } if len(filteredPublicConfigs) == 0 { - return fmt.Errorf("no Public Maintenance Configurations were found") + return errors.New("no Public Maintenance Configurations were found") } if err := d.Set("configs", filteredPublicConfigs); err != nil { diff --git a/internal/services/maintenance/public_maintenance_configurations_data_source_test.go b/internal/services/maintenance/public_maintenance_configurations_data_source_test.go index 4e3fffffe2e5..ac32a815a313 100644 --- a/internal/services/maintenance/public_maintenance_configurations_data_source_test.go +++ b/internal/services/maintenance/public_maintenance_configurations_data_source_test.go @@ -60,6 +60,10 @@ func TestAccDataSourcePublicMaintenanceConfigurations_recurEvery(t *testing.T) { func (PublicMaintenanceConfigurationsDataSource) allFilters() string { return ` +provider "azurerm" { + features {} +} + data "azurerm_public_maintenance_configurations" "test" { location = "West Europe" scope = "SQLManagedInstance" @@ -70,6 +74,10 @@ data "azurerm_public_maintenance_configurations" "test" { func (PublicMaintenanceConfigurationsDataSource) noFilters() string { return ` +provider "azurerm" { + features {} +} + data "azurerm_public_maintenance_configurations" "test" { } @@ -78,6 +86,10 @@ data "azurerm_public_maintenance_configurations" "test" { func (PublicMaintenanceConfigurationsDataSource) recurEvery() string { return ` +provider "azurerm" { + features {} +} + data "azurerm_public_maintenance_configurations" "test" { scope = "SQLManagedInstance" recur_every = "Friday-Sunday" diff --git a/internal/services/managedapplications/managed_application_definition_resource.go b/internal/services/managedapplications/managed_application_definition_resource.go index 77d7612c8b35..612176b3276c 100644 --- a/internal/services/managedapplications/managed_application_definition_resource.go +++ b/internal/services/managedapplications/managed_application_definition_resource.go @@ -216,11 +216,21 @@ func resourceManagedApplicationDefinitionUpdate(d *pluginsdk.ResourceData, meta } if d.HasChange("create_ui_definition") { - payload.Properties.CreateUiDefinition = pointer.To(d.Get("create_ui_definition")) + // handle API error: The 'MainTemplate, CreateUiDefinition' properties should be empty if package zip file uri is provided. + if v, ok := d.GetOk("create_ui_definition"); ok { + payload.Properties.CreateUiDefinition = pointer.To(v) + } else { + payload.Properties.CreateUiDefinition = nil + } } if d.HasChange("main_template") { - payload.Properties.MainTemplate = pointer.To(d.Get("main_template")) + // handle API error: The 'MainTemplate, CreateUiDefinition' properties should be empty if package zip file uri is provided. + if v, ok := d.GetOk("main_template"); ok { + payload.Properties.MainTemplate = pointer.To(v) + } else { + payload.Properties.MainTemplate = nil + } } if d.HasChange("package_file_uri") { diff --git a/internal/services/managedapplications/managed_application_definition_resource_test.go b/internal/services/managedapplications/managed_application_definition_resource_test.go index d4dea33ee231..ec37445b313e 100644 --- a/internal/services/managedapplications/managed_application_definition_resource_test.go +++ b/internal/services/managedapplications/managed_application_definition_resource_test.go @@ -162,7 +162,7 @@ resource "azurerm_managed_application_definition" "test" { name = "acctestAppDef%d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - lock_level = "ReadOnly" + lock_level = "None" display_name = "UpdatedTestManagedApplicationDefinition" description = "Updated Test Managed Application Definition" package_enabled = true diff --git a/internal/services/managedapplications/managed_application_resource.go b/internal/services/managedapplications/managed_application_resource.go index 29fe059f80ce..efc2b44cbaf6 100644 --- a/internal/services/managedapplications/managed_application_resource.go +++ b/internal/services/managedapplications/managed_application_resource.go @@ -8,6 +8,7 @@ import ( "encoding/json" "fmt" "log" + "strconv" "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" @@ -20,7 +21,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedapplications/validate" resourcesParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/resource/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -88,12 +88,6 @@ func resourceManagedApplicationSchema() map[string]*pluginsdk.Schema { Computed: true, ValidateFunc: validation.StringIsJSON, DiffSuppressFunc: pluginsdk.SuppressJsonDiff, - ConflictsWith: func() []string { - if !features.FourPointOhBeta() { - return []string{"parameters"} - } - return []string{} - }(), }, "plan": { @@ -148,19 +142,6 @@ func resourceManagedApplicationSchema() map[string]*pluginsdk.Schema { }, } - if !features.FourPointOhBeta() { - schema["parameters"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeMap, - Optional: true, - Computed: true, - ConflictsWith: []string{"parameter_values"}, - Deprecated: "This property has been deprecated in favour of `parameter_values`", - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - } - } - return schema } @@ -207,9 +188,6 @@ func resourceManagedApplicationCreate(d *pluginsdk.ResourceData, meta interface{ params, err := expandManagedApplicationParameters(d) if err != nil { - if !features.FourPointOhBeta() { - return fmt.Errorf("expanding `parameters` or `parameter_values`: %+v", err) - } return fmt.Errorf("expanding `parameter_values`: %+v", err) } parameters.Properties.Parameters = pointer.To(interface{}(params)) @@ -251,9 +229,6 @@ func resourceManagedApplicationUpdate(d *pluginsdk.ResourceData, meta interface{ params, err := expandManagedApplicationParameters(d) if err != nil { - if !features.FourPointOhBeta() { - return fmt.Errorf("expanding `parameters` or `parameter_values`: %+v", err) - } return fmt.Errorf("expanding `parameter_values`: %+v", err) } payload.Properties.Parameters = pointer.To(interface{}(params)) @@ -308,9 +283,6 @@ func resourceManagedApplicationRead(d *pluginsdk.ResourceData, meta interface{}) expendedParams, err := expandManagedApplicationParameters(d) if err != nil { - if !features.FourPointOhBeta() { - return fmt.Errorf("expanding `parameters` or `parameter_values`: %+v", err) - } return fmt.Errorf("expanding `parameter_values`: %+v", err) } @@ -320,16 +292,6 @@ func resourceManagedApplicationRead(d *pluginsdk.ResourceData, meta interface{}) } d.Set("parameter_values", parameterValues) - if !features.FourPointOhBeta() { - parameters, err := flattenManagedApplicationParameters(p.Parameters, *expendedParams) - if err != nil { - return err - } - if err = d.Set("parameters", parameters); err != nil { - return err - } - } - outputs, err := flattenManagedApplicationOutputs(p.Outputs) if err != nil { return err @@ -387,21 +349,6 @@ func expandManagedApplicationParameters(d *pluginsdk.ResourceData) (*map[string] } } - if !features.FourPointOhBeta() { - // `parameters` will be available in state as well after first apply when `parameter_values` is used, so getting its value only during creation or when it is changed - if d.IsNewResource() || d.HasChange("parameters") { - if v, ok := d.GetOk("parameters"); ok { - params := v.(map[string]interface{}) - - for key, val := range params { - newParamValue := make(map[string]interface{}, 1) - newParamValue["value"] = val - newParams[key] = newParamValue - } - } - } - } - return &newParams, nil } @@ -422,45 +369,6 @@ func flattenManagedApplicationPlan(input *applications.Plan) []interface{} { return results } -func flattenManagedApplicationParameters(input *interface{}, localParameters map[string]interface{}) (map[string]interface{}, error) { - results := make(map[string]interface{}) - if input == nil { - return results, nil - } - - attrs := *input - if _, ok := attrs.(map[string]interface{}); ok { - for k, val := range attrs.(map[string]interface{}) { - mapVal, ok := val.(map[string]interface{}) - if !ok { - return nil, fmt.Errorf("unexpected managed application parameter type: %+v", mapVal) - } - if mapVal != nil { - v, ok := mapVal["value"] - if !ok { - // Secure values are not returned, thus settings it with local value - v = "" - if oldValueStruct, oldValueStructOK := localParameters[k]; oldValueStructOK { - if _, oldValueStructTypeOK := oldValueStruct.(map[string]interface{}); oldValueStructTypeOK { - if oldValue, oldValueOK := oldValueStruct.(map[string]interface{})["value"]; oldValueOK { - v = oldValue - } - } - } - } - - value, err := extractParameterOrOutputValue(v) - if err != nil { - return nil, fmt.Errorf("extracting parameters: %+v", err) - } - results[k] = value - } - } - } - - return results, nil -} - func flattenManagedApplicationOutputs(input *interface{}) (map[string]interface{}, error) { results := make(map[string]interface{}) if input == nil { @@ -527,7 +435,7 @@ func flattenManagedApplicationParameterValuesValueToString(input *interface{}, l func extractParameterOrOutputValue(v interface{}) (string, error) { switch t := v.(type) { case bool: - return fmt.Sprintf("%t", v.(bool)), nil + return strconv.FormatBool(v.(bool)), nil case float64: // use precision 0 since this comes from an int return fmt.Sprintf("%.f", v.(float64)), nil diff --git a/internal/services/managedapplications/managed_application_resource_test.go b/internal/services/managedapplications/managed_application_resource_test.go index 732bcb721c6e..e3e7534ee4f1 100644 --- a/internal/services/managedapplications/managed_application_resource_test.go +++ b/internal/services/managedapplications/managed_application_resource_test.go @@ -15,8 +15,8 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/testclient" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -56,65 +56,6 @@ func TestAccManagedApplication_requiresImport(t *testing.T) { }) } -func TestAccManagedApplication_switchBetweenParametersAndParameterValues(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("skipping bacause `parameters` is deprecated in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_managed_application", "test") - r := ManagedApplicationResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.parameters(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccManagedApplication_parameters(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("skipping as `parameters` is deprecated in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_managed_application", "test") - r := ManagedApplicationResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.parameters(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.parametersUpdated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccManagedApplication_parameterValues(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_managed_application", "test") r := ManagedApplicationResource{} @@ -152,25 +93,6 @@ func TestAccManagedApplication_allSupportedParameterValuesTypes(t *testing.T) { }) } -func TestAccManagedApplication_parametersSecureString(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("skipping because `parameters` is removed in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_managed_application", "test") - r := ManagedApplicationResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.parametersSecureString(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep("parameters.secureStringParameter", "parameter_values"), - }) -} - func TestAccManagedApplication_parameterValuesSecureString(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_managed_application", "test") r := ManagedApplicationResource{} @@ -195,12 +117,11 @@ func TestAccManagedApplication_plan(t *testing.T) { data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.empty(), - Check: acceptance.ComposeTestCheckFunc( - data.CheckWithClientWithoutResource(r.cancelExistingAgreement(publisher, offer, plan)), - ), - }, - { + PreConfig: func() { + if err := r.cancelExistingAgreement(t, publisher, offer, plan); err != nil { + t.Fatalf("Failed to cancel existing agreement with error: %+v", err) + } + }, Config: r.plan(data, publisher, offer, plan), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), @@ -246,46 +167,6 @@ func (ManagedApplicationResource) Exists(ctx context.Context, clients *clients.C return pointer.To(resp.Model != nil), nil } -func (r ManagedApplicationResource) parameters(data acceptance.TestData) string { - return fmt.Sprintf(` -%[1]s - -resource "azurerm_managed_application" "test" { - name = "acctestManagedApp%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - kind = "ServiceCatalog" - managed_resource_group_name = "infraGroup%[2]d" - application_definition_id = azurerm_managed_application_definition.test.id - - parameters = { - stringParameter = "value_1" - secureStringParameter = "" - } -} -`, r.templateStringParameter(data), data.RandomInteger) -} - -func (r ManagedApplicationResource) parametersUpdated(data acceptance.TestData) string { - return fmt.Sprintf(` -%[1]s - -resource "azurerm_managed_application" "test" { - name = "acctestManagedApp%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - kind = "ServiceCatalog" - managed_resource_group_name = "infraGroup%[2]d" - application_definition_id = azurerm_managed_application_definition.test.id - - parameters = { - stringParameter = "value_2" - secureStringParameter = "" - } -} -`, r.templateStringParameter(data), data.RandomInteger) -} - func (r ManagedApplicationResource) requiresImport(data acceptance.TestData) string { return fmt.Sprintf(` %s @@ -460,26 +341,6 @@ resource "azurerm_managed_application" "test" { `, r.templateAllSupportedParametersTypes(data), data.RandomInteger) } -func (r ManagedApplicationResource) parametersSecureString(data acceptance.TestData) string { - return fmt.Sprintf(` -%[1]s - -resource "azurerm_managed_application" "test" { - name = "acctestManagedApp%[2]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - kind = "ServiceCatalog" - managed_resource_group_name = "infraGroup%[2]d" - application_definition_id = azurerm_managed_application_definition.test.id - - parameters = { - stringParameter = "value_1" - secureStringParameter = "secure_value_1" - } -} -`, r.templateStringParameter(data), data.RandomInteger) -} - func (r ManagedApplicationResource) parameterValuesSecureString(data acceptance.TestData) string { return fmt.Sprintf(` %[1]s @@ -701,43 +562,39 @@ resource "azurerm_managed_application_definition" "test" { `, data.Locations.Primary, data.RandomInteger, parameters) } -func (ManagedApplicationResource) empty() string { - return ` -provider "azurerm" { - features {} -} -` -} +func (ManagedApplicationResource) cancelExistingAgreement(t *testing.T, publisher string, offer string, plan string) error { + clientManager, err := testclient.Build() + if err != nil { + t.Fatalf("building client: %+v", err) + } -func (ManagedApplicationResource) cancelExistingAgreement(publisher string, offer string, plan string) acceptance.ClientCheckFunc { - return func(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) error { - client := clients.Compute.MarketplaceAgreementsClient - subscriptionId := clients.Account.SubscriptionId - ctx, cancel := context.WithDeadline(ctx, time.Now().Add(15*time.Minute)) - defer cancel() + ctx, cancel := context.WithDeadline(clientManager.StopContext, time.Now().Add(15*time.Minute)) + defer cancel() - idGet := agreements.NewOfferPlanID(subscriptionId, publisher, offer, plan) - idCancel := agreements.NewPlanID(subscriptionId, publisher, offer, plan) + client := clientManager.Compute.MarketplaceAgreementsClient + subscriptionId := clientManager.Account.SubscriptionId - existing, err := client.MarketplaceAgreementsGet(ctx, idGet) - if err != nil { - return err - } + idGet := agreements.NewOfferPlanID(subscriptionId, publisher, offer, plan) + idCancel := agreements.NewPlanID(subscriptionId, publisher, offer, plan) + + existing, err := client.MarketplaceAgreementsGet(ctx, idGet) + if err != nil { + return fmt.Errorf("retrieving %s: %s", idGet, err) + } - if model := existing.Model; model != nil { - if props := model.Properties; props != nil { - if accepted := props.Accepted; accepted != nil && *accepted { - resp, err := client.MarketplaceAgreementsCancel(ctx, idCancel) - if err != nil { - if response.WasNotFound(resp.HttpResponse) { - return fmt.Errorf("marketplace agreement %q does not exist", idGet) - } - return fmt.Errorf("canceling %s: %+v", idGet, err) + if model := existing.Model; model != nil { + if props := model.Properties; props != nil { + if accepted := props.Accepted; accepted != nil && *accepted { + resp, err := client.MarketplaceAgreementsCancel(ctx, idCancel) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("marketplace agreement %q does not exist", idGet) } + return fmt.Errorf("canceling %s: %+v", idGet, err) } } } - - return nil } + + return nil } diff --git a/internal/services/managedhsm/client/client.go b/internal/services/managedhsm/client/client.go index a1aa73f48964..c947fc9f814c 100644 --- a/internal/services/managedhsm/client/client.go +++ b/internal/services/managedhsm/client/client.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms" "github.com/hashicorp/terraform-provider-azurerm/internal/common" - dataplane "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + dataplane "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type Client struct { diff --git a/internal/services/managedhsm/custompollers/hsm_download_poller.go b/internal/services/managedhsm/custompollers/hsm_download_poller.go index 43df88071061..5ee7806bb802 100644 --- a/internal/services/managedhsm/custompollers/hsm_download_poller.go +++ b/internal/services/managedhsm/custompollers/hsm_download_poller.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - dataplane "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + dataplane "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) var _ pollers.PollerType = &hsmDownloadPoller{} diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_data_resource.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_data_resource.go new file mode 100644 index 000000000000..ad7b4beada45 --- /dev/null +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_data_resource.go @@ -0,0 +1,180 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package managedhsm + +import ( + "context" + "encoding/base64" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/parse" + "github.com/hashicorp/terraform-provider-azurerm/internal/tags" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type KeyVaultMHSMKeyDataSourceModel struct { + ManagedHSMID string `tfschema:"managed_hsm_id"` + Name string `tfschema:"name"` + KeyType string `tfschema:"key_type"` + KeyOpts []string `tfschema:"key_opts"` + KeySize int64 `tfschema:"key_size"` + Curve string `tfschema:"curve"` + NotBeforeDate string `tfschema:"not_before_date"` + ExpirationDate string `tfschema:"expiration_date"` + Tags map[string]interface{} `tfschema:"tags"` + VersionedId string `tfschema:"versioned_id"` + Version string `tfschema:"version"` +} + +type KeyvaultMHSMKeyDataSource struct{} + +// Arguments implements sdk.DataSource. +func (k KeyvaultMHSMKeyDataSource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + ForceNew: true, + Required: true, + Type: pluginsdk.TypeString, + }, + "managed_hsm_id": { + Type: pluginsdk.TypeString, + ForceNew: true, + Required: true, + ValidateFunc: managedhsms.ValidateManagedHSMID, + }, + } +} + +// Attributes implements sdk.DataSource. +func (k KeyvaultMHSMKeyDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "key_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "key_size": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "curve": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "version": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "key_opts": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + + "not_before_date": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "expiration_date": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "versioned_id": { + Computed: true, + Type: pluginsdk.TypeString, + }, + + "tags": tags.SchemaDataSource(), + } +} + +func (k KeyvaultMHSMKeyDataSource) ModelObject() interface{} { + return &KeyVaultMHSMKeyDataSourceModel{} +} + +func (k KeyvaultMHSMKeyDataSource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: time.Minute * 5, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.ManagedHSMs.DataPlaneRoleDefinitionsClient + domainSuffix, ok := metadata.Client.Account.Environment.ManagedHSM.DomainSuffix() + if !ok { + return fmt.Errorf("could not determine Managed HSM domain suffix for environment %q", metadata.Client.Account.Environment.Name) + } + + var config KeyVaultMHSMKeyDataSourceModel + if err := metadata.Decode(&config); err != nil { + return err + } + + managedHsmId, err := managedhsms.ParseManagedHSMID(config.ManagedHSMID) + if err != nil { + return err + } + id := parse.NewManagedHSMDataPlaneVersionlessKeyID(managedHsmId.ManagedHSMName, *domainSuffix, config.Name) + + resp, err := client.GetKey(ctx, id.BaseUri(), id.KeyName, "") + if err != nil { + if response.WasNotFound(resp.Response.Response) { + return fmt.Errorf("key %q not found", config.Name) + } + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + if key := resp.Key; key != nil { + config.Name = id.KeyName + config.ManagedHSMID = managedHsmId.ID() + config.KeyType = string(key.Kty) + config.KeyOpts = flattenKeyVaultKeyOptions(key.KeyOps) + config.Curve = string(key.Crv) + config.Tags = tags.Flatten(resp.Tags) + + versionedID, err := parse.ManagedHSMDataPlaneVersionedKeyID(*key.Kid, domainSuffix) + if err != nil { + return fmt.Errorf("parsing versioned ID: %+v", err) + } + config.VersionedId = versionedID.ID() + config.Version = versionedID.KeyVersion + + if key.N != nil { + nBytes, err := base64.RawURLEncoding.DecodeString(*key.N) + if err != nil { + return fmt.Errorf("could not decode N: %+v", err) + } + config.KeySize = int64(len(nBytes) * 8) + } + + if attributes := resp.Attributes; attributes != nil { + if v := attributes.NotBefore; v != nil { + config.NotBeforeDate = time.Time(*v).Format(time.RFC3339) + } + + if v := attributes.Expires; v != nil { + config.ExpirationDate = time.Time(*v).Format(time.RFC3339) + } + } + } + + metadata.SetID(id) + return metadata.Encode(&config) + }, + } +} + +func (k KeyvaultMHSMKeyDataSource) ResourceType() string { + return "azurerm_key_vault_managed_hardware_security_module_key" +} + +var _ sdk.DataSource = KeyvaultMHSMKeyDataSource{} diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_data_resource_test.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_data_resource_test.go new file mode 100644 index 000000000000..b8fc5c2c2683 --- /dev/null +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_data_resource_test.go @@ -0,0 +1,41 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package managedhsm_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" +) + +type KeyVaultMHSMKeyTestDataSource struct{} + +func testAccKeyVaultMHSMKeyDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_key_vault_managed_hardware_security_module_key", "test") + dataSourceName := "data." + data.ResourceName + r := KeyVaultMHSMKeyTestDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(dataSourceName).Key("version").Exists(), + check.That(dataSourceName).Key("key_type").Exists(), + ), + }, + }) +} + +func (KeyVaultMHSMKeyTestDataSource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +data "azurerm_key_vault_managed_hardware_security_module_key" "test" { + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id + name = azurerm_key_vault_managed_hardware_security_module_key.test.name +} +`, KeyVaultMHSMKeyTestResource{}.basic(data)) +} diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_resource.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_resource.go index d311ddd7eb99..577172844207 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_resource.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_resource.go @@ -23,7 +23,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type KeyVaultMHSMKeyResource struct{} @@ -466,7 +466,7 @@ func (r KeyVaultMHSMKeyResource) Delete() sdk.ResourceFunc { } shouldPurge := metadata.Client.Features.KeyVault.PurgeSoftDeletedHSMKeysOnDestroy - if shouldPurge && managedHSM.Model != nil && managedHSM.Model.Properties != nil && utils.NormaliseNilableBool(managedHSM.Model.Properties.EnablePurgeProtection) { + if shouldPurge && managedHSM.Model != nil && managedHSM.Model.Properties != nil && pointer.From(managedHSM.Model.Properties.EnablePurgeProtection) { log.Printf("[DEBUG] cannot purge key %q because Managed HSM %q has purge protection enabled", id.KeyName, id.ManagedHSMName) shouldPurge = false } diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_rotation_policy_resource.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_rotation_policy_resource.go index 72a9cda5c14c..c405055b8014 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_rotation_policy_resource.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_key_rotation_policy_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type KeyVaultMHSMKeyRotationPolicyResource struct{} @@ -227,7 +227,6 @@ func (r KeyVaultMHSMKeyRotationPolicyResource) Delete() sdk.ResourceFunc { } func expandKeyRotationPolicy(policy MHSMKeyRotationPolicyResourceSchema) keyvault.KeyRotationPolicy { - var expiryTime *string // = nil // needs to be set to nil if not set if policy.ExpireAfter != "" { expiryTime = pointer.To(policy.ExpireAfter) diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_resource.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_resource.go index 6ed857c4046e..e24a97342938 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_resource.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_resource.go @@ -31,7 +31,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - kv74 "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + kv74 "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) func resourceKeyVaultManagedHardwareSecurityModule() *pluginsdk.Resource { @@ -471,8 +471,8 @@ func flattenMHSMNetworkAcls(acl *managedhsms.MHSMNetworkRuleSet) []interface{} { func securityDomainDownload(ctx context.Context, sdClient *kv74.HSMSecurityDomainClient, keyClient kv74.BaseClient, vaultBaseUrl string, certIds []interface{}, quorum int) (encDataStr string, err error) { var param kv74.CertificateInfoObject - param.Required = utils.Int32(int32(quorum)) - var certs []kv74.SecurityDomainJSONWebKey + param.Required = pointer.To(int32(quorum)) + certs := make([]kv74.SecurityDomainJSONWebKey, 0, len(certIds)) for _, certID := range certIds { certIDStr, ok := certID.(string) if !ok { @@ -490,12 +490,12 @@ func securityDomainDownload(ctx context.Context, sdClient *kv74.HSMSecurityDomai return "", fmt.Errorf("got nil key for %s", certID) } cert := kv74.SecurityDomainJSONWebKey{ - Kty: pointer.FromString("RSA"), + Kty: pointer.To("RSA"), KeyOps: &[]string{""}, - Alg: pointer.FromString("RSA-OAEP-256"), + Alg: pointer.To("RSA-OAEP-256"), } if certRes.Policy != nil && certRes.Policy.KeyProperties != nil { - cert.Kty = pointer.FromString(string(certRes.Policy.KeyProperties.KeyType)) + cert.Kty = pointer.To(string(certRes.Policy.KeyProperties.KeyType)) } x5c := "" if contents := certRes.Cer; contents != nil { @@ -506,7 +506,7 @@ func securityDomainDownload(ctx context.Context, sdClient *kv74.HSMSecurityDomai sum256 := sha256.Sum256([]byte(x5c)) s256Dst := make([]byte, base64.StdEncoding.EncodedLen(len(sum256))) base64.URLEncoding.Encode(s256Dst, sum256[:]) - cert.X5tS256 = pointer.FromString(string(s256Dst)) + cert.X5tS256 = pointer.To(string(s256Dst)) certs = append(certs, cert) } param.Certificates = &certs diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_resource_test.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_resource_test.go index 33551fc3b58b..3166dbdf6ead 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_resource_test.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_resource_test.go @@ -35,20 +35,12 @@ func TestAccKeyVaultManagedHardwareSecurityModule(t *testing.T) { "roleAssignments": { "builtInRole": testAccKeyVaultManagedHardwareSecurityModuleRoleAssignment_builtInRole, "customRole": testAccKeyVaultManagedHardwareSecurityModuleRoleAssignment_customRole, - - // TODO: uses `vault_base_url`, these 2 can be removed in 4.0 - "legacyBuiltInRole": testAccKeyVaultManagedHardwareSecurityModuleRoleAssignment_legacyBuiltInRole, - "legacyCustomRole": testAccKeyVaultManagedHardwareSecurityModuleRoleAssignment_legacyCustomRole, }, "roleDefinitions": { "basic": testAccKeyVaultManagedHardwareSecurityModuleRoleDefinition_basic, - - // TODO: uses `vault_base_url`, this can be removed in 4.0 - "legacyWithUpdate": testAccKeyVaultManagedHardwareSecurityModuleRoleDefinition_legacyWithUpdate, }, "roleDefinitionDataSource": { - "basic": testAccDataSourceKeyVaultManagedHardwareSecurityModuleRoleDefinition_basic, - "legacy": testAccDataSourceKeyVaultManagedHardwareSecurityModuleRoleDefinition_legacy, + "basic": testAccDataSourceKeyVaultManagedHardwareSecurityModuleRoleDefinition_basic, }, "keys": { "basic": testAccKeyVaultMHSMKey_basic, @@ -56,6 +48,7 @@ func TestAccKeyVaultManagedHardwareSecurityModule(t *testing.T) { "purge": testAccKeyVaultHSMKey_purge, "softDeleteRecovery": testAccKeyVaultHSMKey_softDeleteRecovery, "rotationPolicy": testAccMHSMKeyRotationPolicy_all, + "data_source": testAccKeyVaultMHSMKeyDataSource_basic, }, }) } diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_assignment_resource.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_assignment_resource.go index 0c53b53744ba..0798b2b5e205 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_assignment_resource.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_assignment_resource.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions" "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/migration" @@ -24,7 +23,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type KeyVaultManagedHSMRoleAssignmentModel struct { @@ -45,20 +44,12 @@ type KeyVaultManagedHSMRoleAssignmentResource struct{} func (r KeyVaultManagedHSMRoleAssignmentResource) Arguments() map[string]*pluginsdk.Schema { s := map[string]*pluginsdk.Schema{ - "managed_hsm_id": func() *pluginsdk.Schema { - s := &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ForceNew: true, - ValidateFunc: managedhsms.ValidateManagedHSMID, - } - if features.FourPointOhBeta() { - s.Required = true - } else { - s.Optional = true - s.Computed = true - } - return s - }(), + "managed_hsm_id": { + Type: pluginsdk.TypeString, + ForceNew: true, + ValidateFunc: managedhsms.ValidateManagedHSMID, + Required: true, + }, "name": { Type: pluginsdk.TypeString, @@ -88,16 +79,7 @@ func (r KeyVaultManagedHSMRoleAssignmentResource) Arguments() map[string]*plugin ValidateFunc: validation.StringIsNotEmpty, }, } - if !features.FourPointOhBeta() { - s["vault_base_url"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - Deprecated: "The field `vault_base_url` has been deprecated in favour of `managed_hsm_id` and will be removed in 4.0 of the Azure Provider", - ValidateFunc: validation.StringIsNotEmpty, - } - } + return s } @@ -163,21 +145,6 @@ func (r KeyVaultManagedHSMRoleAssignmentResource) Create() sdk.ResourceFunc { } } - if managedHsmId == nil && !features.FourPointOhBeta() { - endpoint, err = parse.ManagedHSMEndpoint(config.VaultBaseUrl, domainSuffix) - if err != nil { - return fmt.Errorf("parsing the Data Plane Endpoint %q: %+v", pointer.From(endpoint), err) - } - subscriptionId := commonids.NewSubscriptionID(metadata.Client.Account.SubscriptionId) - managedHsmId, err = metadata.Client.ManagedHSMs.ManagedHSMIDFromBaseUrl(ctx, subscriptionId, endpoint.BaseURI(), domainSuffix) - if err != nil { - return fmt.Errorf("determining the Managed HSM ID for %q: %+v", endpoint.BaseURI(), err) - } - if managedHsmId == nil { - return fmt.Errorf("unable to determine the Resource Manager ID") - } - } - locks.ByName(managedHsmId.ID(), "azurerm_key_vault_managed_hardware_security_module") defer locks.UnlockByName(managedHsmId.ID(), "azurerm_key_vault_managed_hardware_security_module") @@ -192,9 +159,9 @@ func (r KeyVaultManagedHSMRoleAssignmentResource) Create() sdk.ResourceFunc { var param keyvault.RoleAssignmentCreateParameters param.Properties = &keyvault.RoleAssignmentProperties{ - PrincipalID: pointer.FromString(config.PrincipalId), + PrincipalID: pointer.To(config.PrincipalId), // the role definition id may have '/' prefix, but the api doesn't accept it - RoleDefinitionID: pointer.FromString(strings.TrimPrefix(config.RoleDefinitionId, "/")), + RoleDefinitionID: pointer.To(strings.TrimPrefix(config.RoleDefinitionId, "/")), } //nolint:misspell @@ -249,10 +216,6 @@ func (r KeyVaultManagedHSMRoleAssignmentResource) Read() sdk.ResourceFunc { Scope: id.Scope, } - if !features.FourPointOhBeta() { - model.VaultBaseUrl = id.BaseURI() - } - if props := resp.Properties; props != nil { model.PrincipalId = pointer.From(props.PrincipalID) model.ResourceId = pointer.From(resp.ID) // TODO: verify if we should deprecate this diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_assignment_resource_test.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_assignment_resource_test.go index 23283c8e3689..08e0fa9610a0 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_assignment_resource_test.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_assignment_resource_test.go @@ -11,7 +11,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" @@ -51,44 +50,6 @@ func testAccKeyVaultManagedHardwareSecurityModuleRoleAssignment_customRole(t *te }) } -func testAccKeyVaultManagedHardwareSecurityModuleRoleAssignment_legacyBuiltInRole(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("This test isn't applicable in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_key_vault_managed_hardware_security_module_role_assignment", "test") - r := KeyVaultManagedHSMRoleAssignmentResource{} - - data.ResourceSequentialTest(t, r, []acceptance.TestStep{ - { - Config: r.legacyBuiltInRole(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func testAccKeyVaultManagedHardwareSecurityModuleRoleAssignment_legacyCustomRole(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("This test isn't applicable in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_key_vault_managed_hardware_security_module_role_assignment", "test") - r := KeyVaultManagedHSMRoleAssignmentResource{} - - data.ResourceSequentialTest(t, r, []acceptance.TestStep{ - { - Config: r.legacyCustomRole(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - // real test nested in TestAccKeyVaultManagedHardwareSecurityModule, only provide Exists logic here func (r KeyVaultManagedHSMRoleAssignmentResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { domainSuffix, ok := client.Account.Environment.ManagedHSM.DomainSuffix() @@ -146,44 +107,3 @@ resource "azurerm_key_vault_managed_hardware_security_module_role_assignment" "t } `, KeyVaultMHSMRoleDefinitionResource{}.basic(data)) } - -func (r KeyVaultManagedHSMRoleAssignmentResource) legacyBuiltInRole(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -locals { - assignmentOfficerName = "706c03c7-69ad-33e5-2796-b3380d3a6e1a" -} - -data "azurerm_key_vault_managed_hardware_security_module_role_definition" "officer" { - vault_base_url = azurerm_key_vault_managed_hardware_security_module.test.hsm_uri - name = "515eb02d-2335-4d2d-92f2-b1cbdf9c3778" -} - -resource "azurerm_key_vault_managed_hardware_security_module_role_assignment" "test" { - managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id - name = local.assignmentOfficerName - scope = "/keys" - role_definition_id = data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.resource_manager_id - principal_id = data.azurerm_client_config.current.object_id -} -`, KeyVaultManagedHardwareSecurityModuleResource{}.download(data, 3)) -} - -func (r KeyVaultManagedHSMRoleAssignmentResource) legacyCustomRole(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -locals { - assignmentTestName = "1e243909-064c-6ac3-84e9-1c8bf8d6ad52" -} - -resource "azurerm_key_vault_managed_hardware_security_module_role_assignment" "test" { - managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.test.id - name = local.assignmentTestName - scope = "/keys" - role_definition_id = azurerm_key_vault_managed_hardware_security_module_role_definition.test.resource_manager_id - principal_id = data.azurerm_client_config.current.object_id -} -`, KeyVaultMHSMRoleDefinitionResource{}.basic(data)) -} diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_data_source.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_data_source.go index ab0c148c26d0..f07a25e362bc 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_data_source.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_data_source.go @@ -9,16 +9,14 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions" "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type KeyVaultMHSMRoleDefinitionDataSourceModel struct { @@ -47,28 +45,11 @@ func (k KeyvaultMHSMRoleDefinitionDataSource) Arguments() map[string]*pluginsdk. ValidateFunc: validation.IsUUID, }, - "managed_hsm_id": func() *pluginsdk.Schema { - s := &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: managedhsms.ValidateManagedHSMID, - } - if features.FourPointOhBeta() { - s.Required = true - } else { - s.Optional = true - s.Computed = true - } - return s - }(), - } - - if !features.FourPointOhBeta() { - s["vault_base_url"] = &pluginsdk.Schema{ + "managed_hsm_id": { Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.IsURLWithHTTPorHTTPS, - } + ValidateFunc: managedhsms.ValidateManagedHSMID, + Required: true, + }, } return s @@ -190,21 +171,6 @@ func (k KeyvaultMHSMRoleDefinitionDataSource) Read() sdk.ResourceFunc { } } - if managedHsmId == nil && !features.FourPointOhBeta() { - endpoint, err = parse.ManagedHSMEndpoint(config.VaultBaseUrl, domainSuffix) - if err != nil { - return fmt.Errorf("parsing the Data Plane Endpoint %q: %+v", *endpoint, err) - } - subscriptionId := commonids.NewSubscriptionID(metadata.Client.Account.SubscriptionId) - managedHsmId, err = metadata.Client.ManagedHSMs.ManagedHSMIDFromBaseUrl(ctx, subscriptionId, endpoint.BaseURI(), domainSuffix) - if err != nil { - return fmt.Errorf("determining the Managed HSM ID for %q: %+v", endpoint.BaseURI(), err) - } - if managedHsmId == nil { - return fmt.Errorf("unable to determine the Resource Manager ID") - } - } - scope := keyvault.RoleScopeGlobal id := parse.NewManagedHSMDataPlaneRoleDefinitionID(endpoint.ManagedHSMName, endpoint.DomainSuffix, string(scope), config.Name) diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_data_source_test.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_data_source_test.go index 0422387b104a..0599f4e17158 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_data_source_test.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_data_source_test.go @@ -9,7 +9,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" ) // TODO: check the UUIDs @@ -36,26 +35,6 @@ func testAccDataSourceKeyVaultManagedHardwareSecurityModuleRoleDefinition_basic( }) } -func testAccDataSourceKeyVaultManagedHardwareSecurityModuleRoleDefinition_legacy(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skipf("no longer needed in v4.0") - } - - data := acceptance.BuildTestData(t, "data.azurerm_key_vault_managed_hardware_security_module_role_definition", "test") - r := KeyVaultManagedHardwareSecurityModuleRoleDefinitionDataSource{} - - data.DataSourceTestInSequence(t, []acceptance.TestStep{ - { - Config: r.legacy(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).Key("name").Exists(), - check.That(data.ResourceName).Key("managed_hsm_id").Exists(), - check.That(data.ResourceName).Key("vault_base_url").Exists(), - ), - }, - }) -} - func (KeyVaultManagedHardwareSecurityModuleRoleDefinitionDataSource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s @@ -66,14 +45,3 @@ data "azurerm_key_vault_managed_hardware_security_module_role_definition" "test" } `, KeyVaultMHSMRoleDefinitionResource{}.basic(data)) } - -func (KeyVaultManagedHardwareSecurityModuleRoleDefinitionDataSource) legacy(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -data "azurerm_key_vault_managed_hardware_security_module_role_definition" "test" { - vault_base_url = azurerm_key_vault_managed_hardware_security_module.test.hsm_uri - name = "21dbd100-6940-42c2-9190-5d6cb909625b" -} -`, KeyVaultMHSMRoleDefinitionResource{}.basic(data)) -} diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_resource.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_resource.go index ac2081e7f591..0827ea111382 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_resource.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_resource.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions" "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/migration" @@ -22,7 +21,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - "github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault" + "github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault" ) type KeyVaultMHSMRoleDefinitionModel struct { @@ -47,8 +46,10 @@ type Permission struct { type KeyVaultMHSMRoleDefinitionResource struct{} -var _ sdk.ResourceWithStateMigration = KeyVaultMHSMRoleDefinitionResource{} -var _ sdk.ResourceWithUpdate = KeyVaultMHSMRoleDefinitionResource{} +var ( + _ sdk.ResourceWithStateMigration = KeyVaultMHSMRoleDefinitionResource{} + _ sdk.ResourceWithUpdate = KeyVaultMHSMRoleDefinitionResource{} +) // Arguments ... // skip `assignable_scopes` field support as https://github.com/Azure/azure-rest-api-specs/issues/23045 @@ -61,20 +62,12 @@ func (r KeyVaultMHSMRoleDefinitionResource) Arguments() map[string]*pluginsdk.Sc ValidateFunc: validation.IsUUID, }, - "managed_hsm_id": func() *pluginsdk.Schema { - s := &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ForceNew: true, - ValidateFunc: managedhsms.ValidateManagedHSMID, - } - if features.FourPointOhBeta() { - s.Required = true - } else { - s.Optional = true - s.Computed = true - } - return s - }(), + "managed_hsm_id": { + Type: pluginsdk.TypeString, + ForceNew: true, + ValidateFunc: managedhsms.ValidateManagedHSMID, + Required: true, + }, "role_name": { Type: pluginsdk.TypeString, @@ -145,16 +138,6 @@ func (r KeyVaultMHSMRoleDefinitionResource) Arguments() map[string]*pluginsdk.Sc }, } - if !features.FourPointOhBeta() { - s["vault_base_url"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - ValidateFunc: validation.IsURLWithHTTPorHTTPS, - } - } - return s } @@ -225,21 +208,6 @@ func (r KeyVaultMHSMRoleDefinitionResource) Create() sdk.ResourceFunc { } } - if managedHsmId == nil && !features.FourPointOhBeta() { - endpoint, err = parse.ManagedHSMEndpoint(config.VaultBaseUrl, domainSuffix) - if err != nil { - return fmt.Errorf("parsing the Data Plane Endpoint %q: %+v", *endpoint, err) - } - subscriptionId := commonids.NewSubscriptionID(metadata.Client.Account.SubscriptionId) - managedHsmId, err = metadata.Client.ManagedHSMs.ManagedHSMIDFromBaseUrl(ctx, subscriptionId, endpoint.BaseURI(), domainSuffix) - if err != nil { - return fmt.Errorf("determining the Managed HSM ID for %q: %+v", endpoint.BaseURI(), err) - } - if managedHsmId == nil { - return fmt.Errorf("unable to determine the Resource Manager ID") - } - } - // need a lock for hsm subresource create/update/delete, or API may respond error as below // Status=409 Code="Conflict" Message="There was a conflict while trying to delete the role assignment. locks.ByName(managedHsmId.ID(), "azurerm_key_vault_managed_hardware_security_module") @@ -501,9 +469,9 @@ func (r KeyVaultMHSMRoleDefinitionResource) IDValidationFunc() pluginsdk.SchemaV } func expandKeyVaultMHSMRolePermissions(perms []Permission) *[]keyvault.Permission { - var res []keyvault.Permission + res := make([]keyvault.Permission, 0, len(perms)) for _, perm := range perms { - var dataActions, notDataActions = make([]keyvault.DataAction, 0), make([]keyvault.DataAction, 0) + dataActions, notDataActions := make([]keyvault.DataAction, 0), make([]keyvault.DataAction, 0) for _, data := range perm.DataActions { dataActions = append(dataActions, keyvault.DataAction(data)) } @@ -526,7 +494,7 @@ func flattenKeyVaultMHSMRolePermission(perms *[]keyvault.Permission) []Permissio return make([]Permission, 0) } - var res []Permission + res := make([]Permission, 0, len(*perms)) for _, perm := range *perms { var data, notData []string for _, item := range pointer.From(perm.DataActions) { diff --git a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_resource_test.go b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_resource_test.go index 579c875b4ccc..acd092ebef0f 100644 --- a/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_resource_test.go +++ b/internal/services/managedhsm/key_vault_managed_hardware_security_module_role_definition_resource_test.go @@ -40,28 +40,6 @@ func testAccKeyVaultManagedHardwareSecurityModuleRoleDefinition_basic(t *testing }) } -func testAccKeyVaultManagedHardwareSecurityModuleRoleDefinition_legacyWithUpdate(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_key_vault_managed_hardware_security_module_role_definition", "test") - r := KeyVaultMHSMRoleDefinitionResource{} - - data.ResourceSequentialTest(t, r, []acceptance.TestStep{ - { - Config: r.legacy(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.legacyUpdate(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - // real test nested in TestAccKeyVaultManagedHardwareSecurityModule, only provide Exists logic here func (r KeyVaultMHSMRoleDefinitionResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { domainSuffix, ok := client.Account.Environment.ManagedHSM.DomainSuffix() @@ -138,66 +116,6 @@ resource "azurerm_key_vault_managed_hardware_security_module_role_definition" "t `, r.template(data), data.RandomString) } -func (r KeyVaultMHSMRoleDefinitionResource) legacy(data acceptance.TestData) string { - return fmt.Sprintf(` - - -%s - -locals { - roleTestName = "c9562a52-2bd9-2671-3d89-cea5b4798a6b" -} - -resource "azurerm_key_vault_managed_hardware_security_module_role_definition" "test" { - name = local.roleTestName - vault_base_url = azurerm_key_vault_managed_hardware_security_module.test.hsm_uri - description = "desc foo" - permission { - data_actions = [ - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/write/action", - "Microsoft.KeyVault/managedHsm/keys/encrypt/action", - "Microsoft.KeyVault/managedHsm/keys/create", - "Microsoft.KeyVault/managedHsm/keys/delete", - ] - not_data_actions = [ - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - ] - } -} -`, r.template(data)) -} - -func (r KeyVaultMHSMRoleDefinitionResource) legacyUpdate(data acceptance.TestData) string { - return fmt.Sprintf(` - - -%s - -locals { - roleTestName = "c9562a52-2bd9-2671-3d89-cea5b4798a6b" -} - -resource "azurerm_key_vault_managed_hardware_security_module_role_definition" "test" { - name = local.roleTestName - vault_base_url = azurerm_key_vault_managed_hardware_security_module.test.hsm_uri - description = "desc foo2" - permission { - data_actions = [ - "Microsoft.KeyVault/managedHsm/keys/read/action", - "Microsoft.KeyVault/managedHsm/keys/write/action", - "Microsoft.KeyVault/managedHsm/keys/encrypt/action", - "Microsoft.KeyVault/managedHsm/keys/create", - ] - not_data_actions = [ - "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", - "Microsoft.KeyVault/managedHsm/keys/delete", - ] - } -} -`, r.template(data)) -} - func (r KeyVaultMHSMRoleDefinitionResource) template(data acceptance.TestData) string { return KeyVaultManagedHardwareSecurityModuleResource{}.download(data, 3) } diff --git a/internal/services/managedhsm/migration/role_assignment_v0_to_v1.go b/internal/services/managedhsm/migration/role_assignment_v0_to_v1.go index 8dcce5da515c..7897caa707a3 100644 --- a/internal/services/managedhsm/migration/role_assignment_v0_to_v1.go +++ b/internal/services/managedhsm/migration/role_assignment_v0_to_v1.go @@ -14,8 +14,7 @@ import ( var _ pluginsdk.StateUpgrade = ManagedHSMRoleAssignmentV0ToV1{} -type ManagedHSMRoleAssignmentV0ToV1 struct { -} +type ManagedHSMRoleAssignmentV0ToV1 struct{} func (m ManagedHSMRoleAssignmentV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/managedhsm/migration/role_definition_v0_to_v1.go b/internal/services/managedhsm/migration/role_definition_v0_to_v1.go index 99fb2e26bcb0..5032227923ba 100644 --- a/internal/services/managedhsm/migration/role_definition_v0_to_v1.go +++ b/internal/services/managedhsm/migration/role_definition_v0_to_v1.go @@ -14,8 +14,7 @@ import ( var _ pluginsdk.StateUpgrade = ManagedHSMRoleDefinitionV0ToV1{} -type ManagedHSMRoleDefinitionV0ToV1 struct { -} +type ManagedHSMRoleDefinitionV0ToV1 struct{} func (m ManagedHSMRoleDefinitionV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/managedhsm/registration.go b/internal/services/managedhsm/registration.go index bb7f2fb5e62b..931d5e1d9f61 100644 --- a/internal/services/managedhsm/registration.go +++ b/internal/services/managedhsm/registration.go @@ -49,6 +49,7 @@ func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { func (r Registration) DataSources() []sdk.DataSource { return []sdk.DataSource{ KeyvaultMHSMRoleDefinitionDataSource{}, + KeyvaultMHSMKeyDataSource{}, } } diff --git a/internal/services/managedidentity/client/client_gen.go b/internal/services/managedidentity/client/client_gen.go index 0b429e5afdfe..34ae56ca3242 100644 --- a/internal/services/managedidentity/client/client_gen.go +++ b/internal/services/managedidentity/client/client_gen.go @@ -13,7 +13,6 @@ type AutoClient struct { } func NewClient(o *common.ClientOptions) (*AutoClient, error) { - v20230131Client, err := managedidentityV20230131.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) diff --git a/internal/services/managedidentity/registration.go b/internal/services/managedidentity/registration.go index f1ff9bfc2af2..58b803919550 100644 --- a/internal/services/managedidentity/registration.go +++ b/internal/services/managedidentity/registration.go @@ -12,8 +12,10 @@ type Registration struct { autoRegistration } -var _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} -var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +var ( + _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} + _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} +) func (r Registration) AssociatedGitHubLabel() string { return "service/authorization" diff --git a/internal/services/managedidentity/registration_gen.go b/internal/services/managedidentity/registration_gen.go index 8e90e8558299..df81ef3b9f31 100644 --- a/internal/services/managedidentity/registration_gen.go +++ b/internal/services/managedidentity/registration_gen.go @@ -6,8 +6,7 @@ import "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" var _ sdk.TypedServiceRegistration = autoRegistration{} -type autoRegistration struct { -} +type autoRegistration struct{} func (autoRegistration) Name() string { return "ManagedIdentity" diff --git a/internal/services/managedidentity/user_assigned_identity_resource.go b/internal/services/managedidentity/user_assigned_identity_resource.go index fdfd40aae7c2..3c6d5db28c3a 100644 --- a/internal/services/managedidentity/user_assigned_identity_resource.go +++ b/internal/services/managedidentity/user_assigned_identity_resource.go @@ -9,8 +9,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -var _ sdk.Resource = UserAssignedIdentityResource{} -var _ sdk.ResourceWithStateMigration = UserAssignedIdentityResource{} +var ( + _ sdk.Resource = UserAssignedIdentityResource{} + _ sdk.ResourceWithStateMigration = UserAssignedIdentityResource{} +) func (r UserAssignedIdentityResource) StateUpgraders() sdk.StateUpgradeData { return sdk.StateUpgradeData{ diff --git a/internal/services/managedidentity/user_assigned_identity_resource_gen.go b/internal/services/managedidentity/user_assigned_identity_resource_gen.go index 25fba79c2044..603fa83047a1 100644 --- a/internal/services/managedidentity/user_assigned_identity_resource_gen.go +++ b/internal/services/managedidentity/user_assigned_identity_resource_gen.go @@ -19,8 +19,10 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -var _ sdk.Resource = UserAssignedIdentityResource{} -var _ sdk.ResourceWithUpdate = UserAssignedIdentityResource{} +var ( + _ sdk.Resource = UserAssignedIdentityResource{} + _ sdk.ResourceWithUpdate = UserAssignedIdentityResource{} +) type UserAssignedIdentityResource struct{} @@ -41,9 +43,11 @@ type UserAssignedIdentityResourceSchema struct { func (r UserAssignedIdentityResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return commonids.ValidateUserAssignedIdentityID } + func (r UserAssignedIdentityResource) ResourceType() string { return "azurerm_user_assigned_identity" } + func (r UserAssignedIdentityResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "location": commonschema.Location(), @@ -56,6 +60,7 @@ func (r UserAssignedIdentityResource) Arguments() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } } + func (r UserAssignedIdentityResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "client_id": { @@ -72,6 +77,7 @@ func (r UserAssignedIdentityResource) Attributes() map[string]*pluginsdk.Schema }, } } + func (r UserAssignedIdentityResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -111,6 +117,7 @@ func (r UserAssignedIdentityResource) Create() sdk.ResourceFunc { }, } } + func (r UserAssignedIdentityResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, @@ -143,6 +150,7 @@ func (r UserAssignedIdentityResource) Read() sdk.ResourceFunc { }, } } + func (r UserAssignedIdentityResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -162,6 +170,7 @@ func (r UserAssignedIdentityResource) Delete() sdk.ResourceFunc { }, } } + func (r UserAssignedIdentityResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -247,7 +256,6 @@ func (r UserAssignedIdentityResource) mapIdentityUpdateToUserAssignedIdentityRes } func (r UserAssignedIdentityResource) mapUserAssignedIdentityResourceSchemaToUserAssignedIdentityProperties(input UserAssignedIdentityResourceSchema, output *managedidentities.UserAssignedIdentityProperties) error { - return nil } diff --git a/internal/services/managedidentity/user_assigned_identity_resource_gen_test.go b/internal/services/managedidentity/user_assigned_identity_resource_gen_test.go index f1ee874728dc..ead77382ef60 100644 --- a/internal/services/managedidentity/user_assigned_identity_resource_gen_test.go +++ b/internal/services/managedidentity/user_assigned_identity_resource_gen_test.go @@ -91,6 +91,7 @@ func TestAccUserAssignedIdentity_update(t *testing.T) { data.ImportStep(), }) } + func (r UserAssignedIdentityTestResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := commonids.ParseUserAssignedIdentityID(state.ID) if err != nil { @@ -104,6 +105,7 @@ func (r UserAssignedIdentityTestResource) Exists(ctx context.Context, clients *c return utils.Bool(resp.Model != nil), nil } + func (r UserAssignedIdentityTestResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s diff --git a/internal/services/managementgroup/management_group_resource_test.go b/internal/services/managementgroup/management_group_resource_test.go index 6fd20a90c082..04ffa80f20bb 100644 --- a/internal/services/managementgroup/management_group_resource_test.go +++ b/internal/services/managementgroup/management_group_resource_test.go @@ -191,7 +191,7 @@ func (ManagementGroupResource) Exists(ctx context.Context, clients *clients.Clie return nil, err } resp, err := clients.ManagementGroups.GroupsClient.Get(ctx, *id, managementgroups.GetOperationOptions{ - CacheControl: pointer.FromString("no-cache"), + CacheControl: pointer.To("no-cache"), Expand: pointer.To(managementgroups.ExpandChildren), Recurse: pointer.FromBool(false), }) diff --git a/internal/services/managementgroup/subscription_association_resource_test.go b/internal/services/managementgroup/subscription_association_resource_test.go index 4f5b799ab927..eb83db8eb27a 100644 --- a/internal/services/managementgroup/subscription_association_resource_test.go +++ b/internal/services/managementgroup/subscription_association_resource_test.go @@ -116,11 +116,10 @@ func (r ManagementGroupSubscriptionAssociation) Exists(ctx context.Context, clie } resp, err := client.ManagementGroups.GroupsClient.Get(ctx, commonids.NewManagementGroupID(id.GroupId), managementgroups.GetOperationOptions{ - CacheControl: pointer.FromString("no-cache"), + CacheControl: pointer.To("no-cache"), Expand: pointer.To(managementgroups.ExpandChildren), Recurse: pointer.FromBool(false), }) - if err != nil { return nil, fmt.Errorf("retrieving Management Group to check for Subscription Association: %+v", err) } diff --git a/internal/services/maps/maps_account_resource.go b/internal/services/maps/maps_account_resource.go index 790d41e23b20..143d5b547b4c 100644 --- a/internal/services/maps/maps_account_resource.go +++ b/internal/services/maps/maps_account_resource.go @@ -17,10 +17,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/maps/custompollers" "github.com/hashicorp/terraform-provider-azurerm/internal/services/maps/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -133,16 +131,6 @@ func resourceMapsAccount() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["location"] = &pluginsdk.Schema{ - Type: schema.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - StateFunc: location.StateFunc, - DiffSuppressFunc: location.DiffSuppressFunc, - } - } return resource } diff --git a/internal/services/mobilenetwork/mobile_network_attached_data_network_data_source.go b/internal/services/mobilenetwork/mobile_network_attached_data_network_data_source.go index e61ec47b3739..2812507ba1fa 100644 --- a/internal/services/mobilenetwork/mobile_network_attached_data_network_data_source.go +++ b/internal/services/mobilenetwork/mobile_network_attached_data_network_data_source.go @@ -83,7 +83,6 @@ func (r AttachedDataNetworkDataSource) Arguments() map[string]*pluginsdk.Schema func (r AttachedDataNetworkDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "location": commonschema.LocationComputed(), "dns_addresses": { diff --git a/internal/services/mobilenetwork/mobile_network_data_source.go b/internal/services/mobilenetwork/mobile_network_data_source.go index df38f0f95c0f..d14d3539afaa 100644 --- a/internal/services/mobilenetwork/mobile_network_data_source.go +++ b/internal/services/mobilenetwork/mobile_network_data_source.go @@ -57,7 +57,6 @@ func (r MobileNetworkDataSource) Arguments() map[string]*pluginsdk.Schema { func (r MobileNetworkDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "location": commonschema.LocationComputed(), "mobile_country_code": { diff --git a/internal/services/mobilenetwork/mobile_network_packet_core_control_plane_data_source.go b/internal/services/mobilenetwork/mobile_network_packet_core_control_plane_data_source.go index cb7c7b0dffa5..a87fac06f10a 100644 --- a/internal/services/mobilenetwork/mobile_network_packet_core_control_plane_data_source.go +++ b/internal/services/mobilenetwork/mobile_network_packet_core_control_plane_data_source.go @@ -50,7 +50,6 @@ func (r PacketCoreControlPlaneDataSource) Arguments() map[string]*pluginsdk.Sche func (r PacketCoreControlPlaneDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "location": commonschema.LocationComputed(), "control_plane_access_name": { diff --git a/internal/services/mobilenetwork/mobile_network_service_data_source.go b/internal/services/mobilenetwork/mobile_network_service_data_source.go index 09e389f80901..43d1e1b30bea 100644 --- a/internal/services/mobilenetwork/mobile_network_service_data_source.go +++ b/internal/services/mobilenetwork/mobile_network_service_data_source.go @@ -99,7 +99,6 @@ func (r ServiceDataSource) Arguments() map[string]*pluginsdk.Schema { func (r ServiceDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "location": commonschema.LocationComputed(), "pcc_rule": { @@ -332,8 +331,7 @@ func (r ServiceDataSource) Read() sdk.ResourceFunc { } func flattenPccRuleConfigurationDataSourceModel(inputList []service.PccRuleConfiguration) []ServiceDataSourcePccRuleConfigurationModel { - var outputList []ServiceDataSourcePccRuleConfigurationModel - + outputList := make([]ServiceDataSourcePccRuleConfigurationModel, 0, len(inputList)) for _, input := range inputList { output := ServiceDataSourcePccRuleConfigurationModel{ RuleName: input.RuleName, @@ -353,6 +351,7 @@ func flattenPccRuleConfigurationDataSourceModel(inputList []service.PccRuleConfi return outputList } + func flattenPccRuleQosPolicyDataSourceModel(input *service.PccRuleQosPolicy) []ServiceDataSourcePccRuleQosPolicyModel { if input == nil { return []ServiceDataSourcePccRuleQosPolicyModel{} diff --git a/internal/services/mobilenetwork/mobile_network_service_resource.go b/internal/services/mobilenetwork/mobile_network_service_resource.go index 2e66d27be858..bd1c9b38ac81 100644 --- a/internal/services/mobilenetwork/mobile_network_service_resource.go +++ b/internal/services/mobilenetwork/mobile_network_service_resource.go @@ -147,7 +147,8 @@ func (r ServiceResource) Arguments() map[string]*pluginsdk.Schema { ValidateFunc: validation.StringMatch( regexp.MustCompile(`^([1-9]\d*|0)(\.\d+)?\s(Kbps|Mbps|Gbps|Tbps)$`), "The value must be a number followed by Kbps, Mbps, Gbps or Tbps.", - )}, + ), + }, "uplink": { Type: pluginsdk.TypeString, @@ -155,7 +156,8 @@ func (r ServiceResource) Arguments() map[string]*pluginsdk.Schema { ValidateFunc: validation.StringMatch( regexp.MustCompile(`^([1-9]\d*|0)(\.\d+)?\s(Kbps|Mbps|Gbps|Tbps)$`), "The value must be a number followed by Kbps, Mbps, Gbps or Tbps.", - )}, + ), + }, }, }, }, @@ -172,7 +174,8 @@ func (r ServiceResource) Arguments() map[string]*pluginsdk.Schema { ValidateFunc: validation.StringMatch( regexp.MustCompile(`^([1-9]\d*|0)(\.\d+)?\s(Kbps|Mbps|Gbps|Tbps)$`), "The value must be a number followed by Kbps, Mbps, Gbps or Tbps.", - )}, + ), + }, "uplink": { Type: pluginsdk.TypeString, @@ -180,7 +183,8 @@ func (r ServiceResource) Arguments() map[string]*pluginsdk.Schema { ValidateFunc: validation.StringMatch( regexp.MustCompile(`^([1-9]\d*|0)(\.\d+)?\s(Kbps|Mbps|Gbps|Tbps)$`), "The value must be a number followed by Kbps, Mbps, Gbps or Tbps.", - )}, + ), + }, }, }, }, @@ -302,7 +306,8 @@ func (r ServiceResource) Arguments() map[string]*pluginsdk.Schema { ValidateFunc: validation.StringMatch( regexp.MustCompile(`^\d+(\\.\\d+)?\s(bps|Kbps|Mbps|Gbps|Tbps)$`), "The value must be a number followed by bps, Kbps, Mbps, Gbps or Tbps.", - )}, + ), + }, "uplink": { Type: pluginsdk.TypeString, @@ -310,7 +315,8 @@ func (r ServiceResource) Arguments() map[string]*pluginsdk.Schema { ValidateFunc: validation.StringMatch( regexp.MustCompile(`^\d+(\\.\\d+)?\s(bps|Kbps|Mbps|Gbps|Tbps)$`), "The value must be a number followed by bps, Kbps, Mbps, Gbps or Tbps.", - )}, + ), + }, }, }, }, @@ -511,7 +517,7 @@ func (r ServiceResource) Delete() sdk.ResourceFunc { } func expandPccRuleConfigurationResourceModel(inputList []ServiceResourcePccRuleConfigurationModel) []service.PccRuleConfiguration { - var outputList []service.PccRuleConfiguration + outputList := make([]service.PccRuleConfiguration, 0, len(inputList)) for _, v := range inputList { input := v output := service.PccRuleConfiguration{ @@ -524,11 +530,8 @@ func expandPccRuleConfigurationResourceModel(inputList []ServiceResourcePccRuleC trafficControlValue = service.TrafficControlPermissionEnabled } output.TrafficControl = &trafficControlValue - output.RuleQosPolicy = expandPccRuleQosPolicyResourceModel(input.RuleQosPolicy) - output.ServiceDataFlowTemplates = expandServiceDataFlowTemplateResourceModel(input.ServiceDataFlowTemplates) - outputList = append(outputList, output) } @@ -600,8 +603,7 @@ func expandQosPolicyResourceModel(inputList []ServiceResourceQosPolicyModel) *se } func flattenPccRuleConfigurationModel(inputList []service.PccRuleConfiguration) []ServiceResourcePccRuleConfigurationModel { - var outputList []ServiceResourcePccRuleConfigurationModel - + outputList := make([]ServiceResourcePccRuleConfigurationModel, 0, len(inputList)) for _, input := range inputList { output := ServiceResourcePccRuleConfigurationModel{ RuleName: input.RuleName, @@ -655,11 +657,11 @@ func flattenPccRuleQosPolicyResourceModel(input *service.PccRuleQosPolicy) []Ser } func flattenServiceDataFlowTemplateResourceModel(inputList *[]service.ServiceDataFlowTemplate) []ServiceResourceServiceDataFlowTemplateModel { - var outputList []ServiceResourceServiceDataFlowTemplateModel if inputList == nil { - return outputList + return []ServiceResourceServiceDataFlowTemplateModel{} } + outputList := make([]ServiceResourceServiceDataFlowTemplateModel, 0, len(*inputList)) for _, input := range *inputList { output := ServiceResourceServiceDataFlowTemplateModel{ Direction: string(input.Direction), diff --git a/internal/services/mobilenetwork/mobile_network_sim_policy_data_source.go b/internal/services/mobilenetwork/mobile_network_sim_policy_data_source.go index fa9a6c327cc6..73cb325bff59 100644 --- a/internal/services/mobilenetwork/mobile_network_sim_policy_data_source.go +++ b/internal/services/mobilenetwork/mobile_network_sim_policy_data_source.go @@ -273,7 +273,6 @@ func (r SimPolicyDataSource) Read() sdk.ResourceFunc { if model.Tags != nil { state.Tags = *model.Tags } - } metadata.SetID(id) diff --git a/internal/services/mobilenetwork/mobile_network_sim_policy_resource.go b/internal/services/mobilenetwork/mobile_network_sim_policy_resource.go index 356d4cb223bb..353bddd7dd4d 100644 --- a/internal/services/mobilenetwork/mobile_network_sim_policy_resource.go +++ b/internal/services/mobilenetwork/mobile_network_sim_policy_resource.go @@ -362,7 +362,6 @@ func (r SimPolicyResource) Update() sdk.ResourceFunc { if metadata.ResourceData.HasChange("default_slice") { model.Properties.DefaultSlice = simpolicy.SliceResourceId{Id: plan.DefaultSliceId} - } if metadata.ResourceData.HasChange("registration_timer_in_seconds") { @@ -466,7 +465,7 @@ func (r SimPolicyResource) Delete() sdk.ResourceFunc { } func expandSliceConfigurationResourceModel(inputList []SliceConfigurationResourceModel) []simpolicy.SliceConfiguration { - var outputList []simpolicy.SliceConfiguration + outputList := make([]simpolicy.SliceConfiguration, 0, len(inputList)) for _, v := range inputList { input := v output := simpolicy.SliceConfiguration{ @@ -490,7 +489,7 @@ func expandSliceConfigurationResourceModel(inputList []SliceConfigurationResourc } func expandDataNetworkConfigurationResourceModel(inputList []DataNetworkConfigurationResourceModel) []simpolicy.DataNetworkConfiguration { - var outputList []simpolicy.DataNetworkConfiguration + outputList := make([]simpolicy.DataNetworkConfiguration, 0, len(inputList)) for _, v := range inputList { input := v @@ -523,7 +522,7 @@ func expandDataNetworkConfigurationResourceModel(inputList []DataNetworkConfigur } func expandSimPolicyAdditionalAllowedSessionTypeResource(inputList []string) *[]simpolicy.PduSessionType { - var outputList []simpolicy.PduSessionType + outputList := make([]simpolicy.PduSessionType, 0, len(inputList)) for _, v := range inputList { outputList = append(outputList, simpolicy.PduSessionType(v)) } @@ -532,7 +531,7 @@ func expandSimPolicyAdditionalAllowedSessionTypeResource(inputList []string) *[] } func expandServiceResourceIdResourceModel(inputList []string) []simpolicy.ServiceResourceId { - var outputList []simpolicy.ServiceResourceId + outputList := make([]simpolicy.ServiceResourceId, 0, len(inputList)) for _, v := range inputList { input := v output := simpolicy.ServiceResourceId{ diff --git a/internal/services/mobilenetwork/mobile_network_sim_resource.go b/internal/services/mobilenetwork/mobile_network_sim_resource.go index b2d12aa371e4..c7e943c3024a 100644 --- a/internal/services/mobilenetwork/mobile_network_sim_resource.go +++ b/internal/services/mobilenetwork/mobile_network_sim_resource.go @@ -45,8 +45,10 @@ type SimStaticIPPropertiesModel struct { type SimResource struct{} -var _ sdk.ResourceWithUpdate = SimResource{} -var _ sdk.ResourceWithCustomImporter = SimResource{} +var ( + _ sdk.ResourceWithUpdate = SimResource{} + _ sdk.ResourceWithCustomImporter = SimResource{} +) func (r SimResource) ResourceType() string { return "azurerm_mobile_network_sim" diff --git a/internal/services/mobilenetwork/mobile_network_slice_data_source.go b/internal/services/mobilenetwork/mobile_network_slice_data_source.go index 5ff0fa654178..66aaa0745375 100644 --- a/internal/services/mobilenetwork/mobile_network_slice_data_source.go +++ b/internal/services/mobilenetwork/mobile_network_slice_data_source.go @@ -66,7 +66,6 @@ func (r SliceDataSource) Arguments() map[string]*pluginsdk.Schema { func (r SliceDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "description": { Type: pluginsdk.TypeString, Computed: true, diff --git a/internal/services/mongocluster/client/client.go b/internal/services/mongocluster/client/client.go new file mode 100644 index 000000000000..7158dfe4ff06 --- /dev/null +++ b/internal/services/mongocluster/client/client.go @@ -0,0 +1,27 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package client + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters" + "github.com/hashicorp/terraform-provider-azurerm/internal/common" +) + +type Client struct { + MongoClustersClient *mongoclusters.MongoClustersClient +} + +func NewClient(o *common.ClientOptions) (*Client, error) { + mongoClustersClient, err := mongoclusters.NewMongoClustersClientWithBaseURI(o.Environment.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building MongoClusters client: %+v", err) + } + o.Configure(mongoClustersClient.Client, o.Authorizers.ResourceManager) + + return &Client{ + MongoClustersClient: mongoClustersClient, + }, nil +} diff --git a/internal/services/mongocluster/mongo_cluster_resource.go b/internal/services/mongocluster/mongo_cluster_resource.go new file mode 100644 index 000000000000..eff72f9796c4 --- /dev/null +++ b/internal/services/mongocluster/mongo_cluster_resource.go @@ -0,0 +1,575 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package mongocluster + +import ( + "context" + "fmt" + "regexp" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +type MongoClusterResource struct{} + +var _ sdk.ResourceWithUpdate = MongoClusterResource{} + +var _ sdk.ResourceWithCustomizeDiff = MongoClusterResource{} + +type MongoClusterResourceModel struct { + Name string `tfschema:"name"` + ResourceGroupName string `tfschema:"resource_group_name"` + Location string `tfschema:"location"` + AdministratorUserName string `tfschema:"administrator_username"` + AdministratorPassword string `tfschema:"administrator_password"` + CreateMode string `tfschema:"create_mode"` + ShardCount int64 `tfschema:"shard_count"` + SourceLocation string `tfschema:"source_location"` + SourceServerId string `tfschema:"source_server_id"` + ComputeTier string `tfschema:"compute_tier"` + HighAvailabilityMode string `tfschema:"high_availability_mode"` + PublicNetworkAccess string `tfschema:"public_network_access"` + PreviewFeatures []string `tfschema:"preview_features"` + StorageSizeInGb int64 `tfschema:"storage_size_in_gb"` + Tags map[string]string `tfschema:"tags"` + Version string `tfschema:"version"` +} + +func (r MongoClusterResource) ModelObject() interface{} { + return &MongoClusterResourceModel{} +} + +func (r MongoClusterResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return mongoclusters.ValidateMongoClusterID +} + +func (r MongoClusterResource) ResourceType() string { + return "azurerm_mongo_cluster" +} + +func (r MongoClusterResource) Arguments() map[string]*schema.Schema { + return map[string]*schema.Schema{ + "name": { + ForceNew: true, + Required: true, + Type: schema.TypeString, + ValidateFunc: validation.StringMatch( + regexp.MustCompile(`^[a-z\d]([-a-z\d]{1,38}[a-z\d])$`), + "`name` must be between 3 and 40 characters. It can contain only lowercase letters, numbers, and hyphens (-). It must start and end with a lowercase letter or number.", + ), + }, + + "resource_group_name": commonschema.ResourceGroupName(), + + "location": commonschema.Location(), + + "administrator_username": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + ValidateFunc: validation.StringIsNotEmpty, + RequiredWith: []string{"administrator_password"}, + }, + + "create_mode": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Default: string(mongoclusters.CreateModeDefault), + // Confirmed with service team the 'Default' and `GeoReplica` are the only accepted value currently, other values will be supported later. + ValidateFunc: validation.StringInSlice([]string{ + string(mongoclusters.CreateModeDefault), + string(mongoclusters.CreateModeGeoReplica), + }, false), + }, + + "preview_features": { + Type: schema.TypeList, + Optional: true, + ForceNew: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + ValidateFunc: validation.StringInSlice(mongoclusters.PossibleValuesForPreviewFeature(), false), + }, + }, + + "shard_count": { + Type: schema.TypeInt, + Optional: true, + ValidateFunc: validation.IntAtLeast(1), + ForceNew: true, + }, + + "source_location": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + StateFunc: location.StateFunc, + DiffSuppressFunc: location.DiffSuppressFunc, + ValidateFunc: validation.StringIsNotEmpty, + RequiredWith: []string{"source_server_id"}, + }, + + "source_server_id": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + ValidateFunc: mongoclusters.ValidateMongoClusterID, + }, + + "administrator_password": { + Type: schema.TypeString, + Optional: true, + Sensitive: true, + ValidateFunc: validation.StringIsNotEmpty, + RequiredWith: []string{"administrator_username"}, + }, + + "compute_tier": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + "Free", + "M25", + "M30", + "M40", + "M50", + "M60", + "M80", + }, false), + }, + + "high_availability_mode": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + // Confirmed with service team the `SameZone` is currently not supported. + string(mongoclusters.HighAvailabilityModeDisabled), + string(mongoclusters.HighAvailabilityModeZoneRedundantPreferred), + }, false), + }, + + "public_network_access": { + Type: schema.TypeString, + Optional: true, + Default: string(mongoclusters.PublicNetworkAccessEnabled), + ValidateFunc: validation.StringInSlice(mongoclusters.PossibleValuesForPublicNetworkAccess(), false), + }, + + "storage_size_in_gb": { + Type: schema.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(32, 16384), + }, + + "tags": commonschema.Tags(), + + "version": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + "5.0", + "6.0", + "7.0", + }, false), + }, + } +} + +func (r MongoClusterResource) Attributes() map[string]*schema.Schema { + return map[string]*schema.Schema{} +} + +func (r MongoClusterResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.MongoCluster.MongoClustersClient + subscriptionId := metadata.Client.Account.SubscriptionId + + var state MongoClusterResourceModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id := mongoclusters.NewMongoClusterID(subscriptionId, state.ResourceGroupName, state.Name) + existing, err := client.Get(ctx, id) + if err != nil { + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for the presence of an existing %s: %+v", id, err) + } + } + if !response.WasNotFound(existing.HttpResponse) { + return metadata.ResourceRequiresImport(r.ResourceType(), id) + } + + parameter := mongoclusters.MongoCluster{ + Location: location.Normalize(state.Location), + Properties: &mongoclusters.MongoClusterProperties{}, + } + + if state.AdministratorUserName != "" { + parameter.Properties.Administrator = &mongoclusters.AdministratorProperties{ + UserName: pointer.To(state.AdministratorUserName), + Password: pointer.To(state.AdministratorPassword), + } + } + + if state.CreateMode != "" { + parameter.Properties.CreateMode = pointer.To(mongoclusters.CreateMode(state.CreateMode)) + } + + parameter.Properties.PreviewFeatures = expandPreviewFeatures(state.PreviewFeatures) + + if state.ShardCount != 0 { + parameter.Properties.Sharding = &mongoclusters.ShardingProperties{ + ShardCount: pointer.To(state.ShardCount), + } + } + + if state.CreateMode == string(mongoclusters.CreateModeGeoReplica) { + parameter.Properties.ReplicaParameters = &mongoclusters.MongoClusterReplicaParameters{ + SourceLocation: state.SourceLocation, + SourceResourceId: state.SourceServerId, + } + } + + if state.ComputeTier != "" { + parameter.Properties.Compute = &mongoclusters.ComputeProperties{ + Tier: pointer.To(state.ComputeTier), + } + } + + if state.HighAvailabilityMode != "" { + parameter.Properties.HighAvailability = &mongoclusters.HighAvailabilityProperties{ + TargetMode: pointer.To(mongoclusters.HighAvailabilityMode(state.HighAvailabilityMode)), + } + } + + parameter.Properties.PublicNetworkAccess = pointer.To(mongoclusters.PublicNetworkAccess(state.PublicNetworkAccess)) + + if state.StorageSizeInGb != 0 { + parameter.Properties.Storage = &mongoclusters.StorageProperties{ + SizeGb: pointer.To(state.StorageSizeInGb), + } + } + + if state.Tags != nil { + parameter.Tags = pointer.To(state.Tags) + } + + if state.Version != "" { + parameter.Properties.ServerVersion = pointer.To(state.Version) + } + + if err := client.CreateOrUpdateThenPoll(ctx, id, parameter); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + + return nil + }, + } +} + +func (r MongoClusterResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.MongoCluster.MongoClustersClient + + id, err := mongoclusters.ParseMongoClusterID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + metadata.Logger.Info("Decoding state...") + var state MongoClusterResourceModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + existing, err := client.Get(ctx, *id) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + if existing.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", *id) + } + if existing.Model.Properties == nil { + return fmt.Errorf("retrieving %s: `properties` was nil", *id) + } + payload := existing.Model + + metadata.Logger.Infof("updating %s", *id) + + // Set SystemData to nil as the API returns `The property '#/systemData' of type null did not match the following type: object in schema 25debcc2-6915-5536-9566-a2ecd765b755"}}` error. + // https://github.com/Azure/azure-rest-api-specs/issues/31377 has been filed to track it. + payload.SystemData = nil + + // upgrades involving Free or M25(Burstable) compute tier require first upgrading the compute tier, after which other configurations can be updated. + if metadata.ResourceData.HasChange("compute_tier") { + payload.Properties.Compute = &mongoclusters.ComputeProperties{ + Tier: pointer.To(state.ComputeTier), + } + oldComputeTier, newComputeTier := metadata.ResourceData.GetChange("compute_tier") + if (oldComputeTier == "Free" || oldComputeTier == "M25") && newComputeTier != "Free" && newComputeTier != "M25" { + metadata.Logger.Infof("updating compute tier for %s", *id) + if err := client.CreateOrUpdateThenPoll(ctx, *id, *payload); err != nil { + return fmt.Errorf("updating %s: %+v", *id, err) + } + } + } + + metadata.Logger.Infof("updating other configurations for %s", *id) + if metadata.ResourceData.HasChange("administrator_password") { + payload.Properties.Administrator = &mongoclusters.AdministratorProperties{ + UserName: pointer.To(state.AdministratorUserName), + Password: pointer.To(state.AdministratorPassword), + } + } + + if metadata.ResourceData.HasChange("high_availability_mode") { + payload.Properties.HighAvailability = &mongoclusters.HighAvailabilityProperties{ + TargetMode: pointer.To(mongoclusters.HighAvailabilityMode(state.HighAvailabilityMode)), + } + } + + if metadata.ResourceData.HasChange("public_network_access") { + payload.Properties.PublicNetworkAccess = pointer.To(mongoclusters.PublicNetworkAccess(state.PublicNetworkAccess)) + } + + if metadata.ResourceData.HasChange("storage_size_in_gb") { + payload.Properties.Storage = &mongoclusters.StorageProperties{ + SizeGb: pointer.To(state.StorageSizeInGb), + } + } + + if metadata.ResourceData.HasChange("tags") { + payload.Tags = pointer.To(state.Tags) + } + + if metadata.ResourceData.HasChange("version") { + payload.Properties.ServerVersion = pointer.To(state.Version) + } + + if err := client.CreateOrUpdateThenPoll(ctx, *id, *payload); err != nil { + return fmt.Errorf("updating %s: %+v", *id, err) + } + + return nil + }, + } +} + +func (r MongoClusterResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.MongoCluster.MongoClustersClient + + id, err := mongoclusters.ParseMongoClusterID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + resp, err := client.Get(ctx, *id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return metadata.MarkAsGone(*id) + } + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + state := MongoClusterResourceModel{ + Name: id.MongoClusterName, + ResourceGroupName: id.ResourceGroupName, + } + + if model := resp.Model; model != nil { + state.Location = location.Normalize(model.Location) + + if props := model.Properties; props != nil { + // API doesn't return the value of administrator_password + state.AdministratorPassword = metadata.ResourceData.Get("administrator_password").(string) + + // API doesn't return the value of create_mode, https://github.com/Azure/azure-rest-api-specs/issues/31266 has been filed to track it. + state.CreateMode = metadata.ResourceData.Get("create_mode").(string) + + if v := props.Administrator; v != nil { + state.AdministratorUserName = pointer.From(v.UserName) + } + + if v := props.Replica; v != nil { + // API doesn't return the value of source_location, https://github.com/Azure/azure-rest-api-specs/issues/31266 has been filed to track it. + state.SourceLocation = metadata.ResourceData.Get("source_location").(string) + if v.SourceResourceId != nil { + id, err := mongoclusters.ParseMongoClusterID(pointer.From(v.SourceResourceId)) + if err != nil { + return err + } + state.SourceServerId = id.ID() + } + } + + if v := props.Sharding; v != nil { + state.ShardCount = pointer.From(v.ShardCount) + } + if v := props.Compute; v != nil { + state.ComputeTier = pointer.From(v.Tier) + } + + if v := props.HighAvailability; v != nil { + state.HighAvailabilityMode = string(pointer.From(v.TargetMode)) + } + state.PublicNetworkAccess = string(pointer.From(props.PublicNetworkAccess)) + + if v := props.Storage; v != nil { + state.StorageSizeInGb = pointer.From(v.SizeGb) + } + if v := props.PreviewFeatures; v != nil { + state.PreviewFeatures = flattenMongoClusterPreviewFeatures(v) + } + state.Version = pointer.From(props.ServerVersion) + } + + state.Tags = pointer.From(model.Tags) + } + + return metadata.Encode(&state) + }, + } +} + +func (r MongoClusterResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.MongoCluster.MongoClustersClient + + id, err := mongoclusters.ParseMongoClusterID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + if err := client.DeleteThenPoll(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %+v", *id, err) + } + + return nil + }, + } +} + +func (r MongoClusterResource) CustomizeDiff() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + var state MongoClusterResourceModel + if err := metadata.DecodeDiff(&state); err != nil { + return fmt.Errorf("DecodeDiff: %+v", err) + } + + switch state.CreateMode { + case string(mongoclusters.CreateModeDefault): + if state.AdministratorUserName == "" { + return fmt.Errorf("`administrator_username` is required when `create_mode` is %s", string(mongoclusters.CreateModeDefault)) + } + + if state.AdministratorPassword == "" { + return fmt.Errorf("`administrator_password` is required when `create_mode` is %s", string(mongoclusters.CreateModeDefault)) + } + + if state.ComputeTier == "" { + return fmt.Errorf("`compute_tier` is required when `create_mode` is %s", string(mongoclusters.CreateModeDefault)) + } + + if state.StorageSizeInGb == 0 { + return fmt.Errorf("`storage_size_in_gb` is required when `create_mode` is %s", string(mongoclusters.CreateModeDefault)) + } + + if state.HighAvailabilityMode == "" { + return fmt.Errorf("`high_availability_mode` is required when `create_mode` is %s", string(mongoclusters.CreateModeDefault)) + } + + if state.ShardCount == 0 { + return fmt.Errorf("`shard_count` is required when `create_mode` is %s", string(mongoclusters.CreateModeDefault)) + } + + if state.Version == "" { + return fmt.Errorf("`version` is required when `create_mode` is %s", string(mongoclusters.CreateModeDefault)) + } + case string(mongoclusters.CreateModeGeoReplica): + if state.SourceServerId == "" { + return fmt.Errorf("`source_server_id` is required when `create_mode` is `GeoReplica`") + } + if state.SourceLocation == "" { + return fmt.Errorf("`source_location` is required when `create_mode` is `GeoReplica`") + } + } + + if state.ComputeTier == "Free" || state.ComputeTier == "M25" { + if state.HighAvailabilityMode == string(mongoclusters.HighAvailabilityModeZoneRedundantPreferred) { + return fmt.Errorf("high Availability is not available with the `Free` or `M25` Compute Tier") + } + + if state.ShardCount > 1 { + return fmt.Errorf("the value of `shard_count` cannot exceed 1 for the `Free` or `M25` Compute Tier") + } + } + + if len(state.PreviewFeatures) > 0 { + existing := make(map[string]bool) + for _, str := range state.PreviewFeatures { + if existing[str] { + return fmt.Errorf("`preview_features` contains the duplicate value %q", str) + } + existing[str] = true + } + } + + return nil + }, + } +} + +func expandPreviewFeatures(input []string) *[]mongoclusters.PreviewFeature { + if len(input) == 0 { + return nil + } + + result := make([]mongoclusters.PreviewFeature, 0) + + for _, v := range input { + if v != "" { + result = append(result, mongoclusters.PreviewFeature(v)) + } + } + + return &result +} + +func flattenMongoClusterPreviewFeatures(input *[]mongoclusters.PreviewFeature) []string { + results := make([]string, 0) + if input == nil { + return results + } + + for _, v := range *input { + results = append(results, string(v)) + } + + return results +} diff --git a/internal/services/mongocluster/mongo_cluster_resource_test.go b/internal/services/mongocluster/mongo_cluster_resource_test.go new file mode 100644 index 000000000000..9585f60b4b72 --- /dev/null +++ b/internal/services/mongocluster/mongo_cluster_resource_test.go @@ -0,0 +1,230 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package mongocluster_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type MongoClusterResource struct{} + +func TestAccMongoClusterFreeTier(t *testing.T) { + acceptance.RunTestsInSequence(t, map[string]map[string]func(t *testing.T){ + "freeTier": { // Run tests in sequence since each subscription is limited to one free tier cluster per region and free tier is currently only available in South India. + "basic": testAccMongoCluster_basic, + "update": testAccMongoCluster_update, + "import": testAccMongoCluster_requiresImport, + }, + }) +} + +func testAccMongoCluster_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_mongo_cluster", "test") + r := MongoClusterResource{} + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("administrator_password", "create_mode"), + }) +} + +func testAccMongoCluster_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_mongo_cluster", "test") + r := MongoClusterResource{} + + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("administrator_password", "create_mode"), + { + Config: r.update(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("administrator_password", "create_mode"), + }) +} + +func testAccMongoCluster_requiresImport(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_mongo_cluster", "test") + r := MongoClusterResource{} + + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.RequiresImportErrorStep(r.requiresImport), + }) +} + +func TestAccMongoCluster_previewFeature(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_mongo_cluster", "test") + r := MongoClusterResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.previewFeature(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("administrator_password", "create_mode"), + { + Config: r.geoReplica(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("administrator_password", "create_mode", "source_location"), + }) +} + +func (r MongoClusterResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := mongoclusters.ParseMongoClusterID(state.ID) + if err != nil { + return nil, err + } + + resp, err := clients.MongoCluster.MongoClustersClient.Get(ctx, *id) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", *id, err) + } + + return pointer.To(resp.Model != nil), nil +} + +func (r MongoClusterResource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_mongo_cluster" "test" { + name = "acctest-mc%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + administrator_username = "adminTerraform" + administrator_password = "QAZwsx123" + shard_count = "1" + compute_tier = "Free" + high_availability_mode = "Disabled" + storage_size_in_gb = "32" + version = "6.0" +} +`, r.template(data, data.Locations.Ternary), data.RandomInteger) +} + +func (r MongoClusterResource) update(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_mongo_cluster" "test" { + name = "acctest-mc%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + administrator_username = "adminTerraform" + administrator_password = "QAZwsx123update" + shard_count = "1" + compute_tier = "M30" + high_availability_mode = "ZoneRedundantPreferred" + public_network_access = "Disabled" + storage_size_in_gb = "64" + version = "7.0" + + tags = { + environment = "test" + } +} +`, r.template(data, data.Locations.Ternary), data.RandomInteger) +} + +func (r MongoClusterResource) requiresImport(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_mongo_cluster" "import" { + name = azurerm_mongo_cluster.test.name + resource_group_name = azurerm_mongo_cluster.test.resource_group_name + location = azurerm_mongo_cluster.test.location + administrator_username = azurerm_mongo_cluster.test.administrator_username + administrator_password = azurerm_mongo_cluster.test.administrator_password + shard_count = azurerm_mongo_cluster.test.shard_count + compute_tier = azurerm_mongo_cluster.test.compute_tier + high_availability_mode = azurerm_mongo_cluster.test.high_availability_mode + storage_size_in_gb = azurerm_mongo_cluster.test.storage_size_in_gb + version = azurerm_mongo_cluster.test.version +} +`, r.basic(data)) +} + +func (r MongoClusterResource) previewFeature(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_mongo_cluster" "test" { + name = "acctest-mc%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + administrator_username = "adminTerraform" + administrator_password = "testQAZwsx123" + shard_count = "1" + compute_tier = "M30" + high_availability_mode = "ZoneRedundantPreferred" + storage_size_in_gb = "64" + preview_features = ["GeoReplicas"] + version = "7.0" +} +`, r.template(data, data.Locations.Primary), data.RandomInteger) +} + +func (r MongoClusterResource) geoReplica(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_mongo_cluster" "geo_replica" { + name = "acctest-mc-replica%d" + resource_group_name = azurerm_resource_group.test.name + location = "%s" + source_server_id = azurerm_mongo_cluster.test.id + source_location = azurerm_mongo_cluster.test.location + create_mode = "GeoReplica" + + lifecycle { + ignore_changes = ["administrator_username", "high_availability_mode", "preview_features", "shard_count", "storage_size_in_gb", "compute_tier", "version"] + } +} +`, r.previewFeature(data), data.RandomInteger, data.Locations.Secondary) +} + +func (r MongoClusterResource) template(data acceptance.TestData, location string) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} +`, data.RandomInteger, location) +} diff --git a/internal/services/mongocluster/registration.go b/internal/services/mongocluster/registration.go new file mode 100644 index 000000000000..deff631f2ef7 --- /dev/null +++ b/internal/services/mongocluster/registration.go @@ -0,0 +1,38 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package mongocluster + +import ( + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" +) + +type Registration struct{} + +var _ sdk.TypedServiceRegistration = Registration{} + +func (r Registration) AssociatedGitHubLabel() string { + return "service/mongo-cluster" +} + +// Name is the name of this Service +func (r Registration) Name() string { + return "Mongo Cluster" +} + +// WebsiteCategories returns a list of categories which can be used for the sidebar +func (r Registration) WebsiteCategories() []string { + return []string{"Mongo Cluster"} +} + +// DataSources returns a list of Data Sources supported by this Service +func (r Registration) DataSources() []sdk.DataSource { + return []sdk.DataSource{} +} + +// Resources returns a list of Resources supported by this Service +func (r Registration) Resources() []sdk.Resource { + return []sdk.Resource{ + MongoClusterResource{}, + } +} diff --git a/internal/services/monitor/migration/activity_log_alert.go b/internal/services/monitor/migration/activity_log_alert.go index 1110da613dc5..721bb572fe39 100644 --- a/internal/services/monitor/migration/activity_log_alert.go +++ b/internal/services/monitor/migration/activity_log_alert.go @@ -117,7 +117,7 @@ func activityLogAlertSchemaForV0AndV1() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeString, Optional: true, }, - //lintignore:XS003 + // lintignore:XS003 "service_health": { Type: pluginsdk.TypeList, Computed: true, diff --git a/internal/services/monitor/migration/metric_alert.go b/internal/services/monitor/migration/metric_alert.go index 8241d0f2190a..9207466a1bcb 100644 --- a/internal/services/monitor/migration/metric_alert.go +++ b/internal/services/monitor/migration/metric_alert.go @@ -130,7 +130,7 @@ func metricAlertSchemaForV0AndV1() map[string]*pluginsdk.Schema { }, }, - //lintignore: S018 + // lintignore: S018 "dynamic_criteria": { Type: pluginsdk.TypeSet, Optional: true, diff --git a/internal/services/monitor/migration/scheduled_query_rules_log.go b/internal/services/monitor/migration/scheduled_query_rules_log.go index fdd2ecad5c01..7fabbe5aba3f 100644 --- a/internal/services/monitor/migration/scheduled_query_rules_log.go +++ b/internal/services/monitor/migration/scheduled_query_rules_log.go @@ -129,7 +129,7 @@ func scheduledQueryRulesLogSchemaForV0AndV1() map[string]*pluginsdk.Schema { }, }, - //lintignore: S018 + // lintignore: S018 "dynamic_criteria": { Type: pluginsdk.TypeSet, Optional: true, diff --git a/internal/services/monitor/monitor_aad_diagnostic_setting_resource.go b/internal/services/monitor/monitor_aad_diagnostic_setting_resource.go index 5d6d9c781a73..bb1ad65cd73b 100644 --- a/internal/services/monitor/monitor_aad_diagnostic_setting_resource.go +++ b/internal/services/monitor/monitor_aad_diagnostic_setting_resource.go @@ -20,6 +20,7 @@ import ( "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/monitor/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -95,34 +96,37 @@ func resourceMonitorAADDiagnosticSetting() *pluginsdk.Resource { Type: pluginsdk.TypeString, Required: true, }, - - "retention_policy": { - Type: pluginsdk.TypeList, - Required: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - - "days": { - Type: pluginsdk.TypeInt, - Optional: true, - ValidateFunc: validation.IntAtLeast(0), - Default: 0, - }, - }, - }, - }, }, }, }, }, } + if !features.FivePointOhBeta() { + resource.Schema["enabled_log"].Elem.(*pluginsdk.Resource).Schema["retention_policy"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeList, + Optional: true, + Deprecated: "Azure does not support retention for new Azure Active Directory Diagnostic Settings", + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + + "days": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntAtLeast(0), + Default: 0, + }, + }, + }, + } + } + return resource } @@ -365,22 +369,24 @@ func expandMonitorAADDiagnosticsSettingsEnabledLogs(input []interface{}) []diagn } v := raw.(map[string]interface{}) - category := v["category"].(string) - if len(v["retention_policy"].([]interface{})) == 0 || v["retention_policy"].([]interface{})[0] == nil { - continue + logSettings := diagnosticsettings.LogSettings{ + Category: pointer.To(diagnosticsettings.Category(v["category"].(string))), + Enabled: true, } - policyRaw := v["retention_policy"].([]interface{})[0].(map[string]interface{}) - retentionDays := policyRaw["days"].(int) - retentionEnabled := policyRaw["enabled"].(bool) - results = append(results, diagnosticsettings.LogSettings{ - Category: pointer.To(diagnosticsettings.Category(category)), - Enabled: true, - RetentionPolicy: &diagnosticsettings.RetentionPolicy{ - Days: int64(retentionDays), - Enabled: retentionEnabled, - }, - }) + if !features.FivePointOhBeta() { + if len(v["retention_policy"].([]interface{})) != 0 && v["retention_policy"].([]interface{})[0] != nil { + policyRaw := v["retention_policy"].([]interface{})[0].(map[string]interface{}) + retentionDays := policyRaw["days"].(int) + retentionEnabled := policyRaw["enabled"].(bool) + logSettings.RetentionPolicy = &diagnosticsettings.RetentionPolicy{ + Days: int64(retentionDays), + Enabled: retentionEnabled, + } + } + } + + results = append(results, logSettings) } return results @@ -397,23 +403,30 @@ func flattenMonitorAADDiagnosticEnabledLogs(input *[]diagnosticsettings.LogSetti continue } - policies := make([]interface{}, 0) - if inputPolicy := v.RetentionPolicy; inputPolicy != nil { - policies = append(policies, map[string]interface{}{ - "days": int(inputPolicy.Days), - "enabled": inputPolicy.Enabled, - }) - } - category := "" if v.Category != nil { category = string(*v.Category) } - results = append(results, map[string]interface{}{ - "category": category, - "retention_policy": policies, - }) + result := map[string]interface{}{ + "category": category, + } + + if !features.FivePointOhBeta() { + policies := make([]interface{}, 0) + if inputPolicy := v.RetentionPolicy; inputPolicy != nil { + if inputPolicy.Days != 0 || inputPolicy.Enabled { + policies = append(policies, map[string]interface{}{ + "days": int(inputPolicy.Days), + "enabled": inputPolicy.Enabled, + }) + } + } + + result["retention_policy"] = policies + } + + results = append(results, result) } return results diff --git a/internal/services/monitor/monitor_aad_diagnostic_setting_resource_test.go b/internal/services/monitor/monitor_aad_diagnostic_setting_resource_test.go index cdb2d1be9a21..7725714c206a 100644 --- a/internal/services/monitor/monitor_aad_diagnostic_setting_resource_test.go +++ b/internal/services/monitor/monitor_aad_diagnostic_setting_resource_test.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -19,8 +20,8 @@ import ( type MonitorAADDiagnosticSettingResource struct{} // NOTE: this is a combined test rather than separate split out tests due to -// Azure only being happy about provisioning five per subscription at once and -// there are existing resource in the test subscription hard to clear. +// Azure only being happy about provisioning five per Azure Active Directory at once and +// there are existing resource in the test tenant hard to clear. // (which our test suite can't easily workaround) func TestAccMonitorAADDiagnosticSetting(t *testing.T) { testCases := map[string]map[string]func(t *testing.T){ @@ -243,52 +244,24 @@ resource "azurerm_monitor_aad_diagnostic_setting" "test" { eventhub_name = azurerm_eventhub.test.name enabled_log { category = "SignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "AuditLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "NonInteractiveUserSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "ServicePrincipalSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "RiskyUsers" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "UserRiskEvents" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "B2CRequestLogs" - retention_policy { - enabled = true - days = 1 - } } } `, data.RandomInteger, data.Locations.Primary) @@ -326,52 +299,24 @@ resource "azurerm_monitor_aad_diagnostic_setting" "test" { eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule.test.id enabled_log { category = "SignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "AuditLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "NonInteractiveUserSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "ServicePrincipalSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "RiskyUsers" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "UserRiskEvents" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "B2CRequestLogs" - retention_policy { - enabled = true - days = 1 - } } } `, data.RandomInteger, data.Locations.Primary) @@ -388,7 +333,6 @@ resource "azurerm_monitor_aad_diagnostic_setting" "import" { enabled_log { category = "SignInLogs" - retention_policy {} } } `, r.eventhub(data)) @@ -418,52 +362,24 @@ resource "azurerm_monitor_aad_diagnostic_setting" "test" { log_analytics_workspace_id = azurerm_log_analytics_workspace.test.id enabled_log { category = "SignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "AuditLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "NonInteractiveUserSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "ServicePrincipalSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "RiskyUsers" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "UserRiskEvents" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "B2CRequestLogs" - retention_policy { - enabled = true - days = 1 - } } } `, data.RandomInteger, data.Locations.Primary) @@ -494,52 +410,24 @@ resource "azurerm_monitor_aad_diagnostic_setting" "test" { storage_account_id = azurerm_storage_account.test.id enabled_log { category = "SignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "AuditLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "NonInteractiveUserSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "ServicePrincipalSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "RiskyUsers" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "UserRiskEvents" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "B2CRequestLogs" - retention_policy { - enabled = true - days = 1 - } } } `, data.RandomInteger, data.Locations.Primary, data.RandomStringOfLength(5)) @@ -570,24 +458,12 @@ resource "azurerm_monitor_aad_diagnostic_setting" "test" { storage_account_id = azurerm_storage_account.test.id enabled_log { category = "AuditLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "SignInLogs" - retention_policy { - enabled = true - days = 2 - } } enabled_log { category = "NonInteractiveUserSignInLogs" - retention_policy { - enabled = true - days = 1 - } } } `, data.RandomInteger, data.Locations.Primary, data.RandomStringOfLength(5)) @@ -618,17 +494,14 @@ resource "azurerm_monitor_aad_diagnostic_setting" "test" { storage_account_id = azurerm_storage_account.test.id enabled_log { category = "NonInteractiveUserSignInLogs" - retention_policy { - enabled = true - days = 1 - } } } `, data.RandomInteger, data.Locations.Primary, data.RandomStringOfLength(5)) } func (MonitorAADDiagnosticSettingResource) retentionDisabled(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` provider "azurerm" { features {} } @@ -652,11 +525,9 @@ resource "azurerm_monitor_aad_diagnostic_setting" "test" { storage_account_id = azurerm_storage_account.test.id enabled_log { category = "AuditLogs" - retention_policy {} } enabled_log { category = "SignInLogs" - retention_policy {} } enabled_log { category = "NonInteractiveUserSignInLogs" @@ -666,5 +537,40 @@ resource "azurerm_monitor_aad_diagnostic_setting" "test" { } } } +`, data.RandomInteger, data.Locations.Primary, data.RandomStringOfLength(5)) + } + + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%[1]d" + location = "%[2]s" +} + +resource "azurerm_storage_account" "test" { + name = "acctestsa%[3]s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_kind = "StorageV2" + account_replication_type = "LRS" +} + +resource "azurerm_monitor_aad_diagnostic_setting" "test" { + name = "acctest-DS-%[1]d" + storage_account_id = azurerm_storage_account.test.id + enabled_log { + category = "AuditLogs" + } + enabled_log { + category = "SignInLogs" + } + enabled_log { + category = "NonInteractiveUserSignInLogs" + } +} `, data.RandomInteger, data.Locations.Primary, data.RandomStringOfLength(5)) } diff --git a/internal/services/monitor/monitor_action_group_resource.go b/internal/services/monitor/monitor_action_group_resource.go index 3080e643f253..bb7de7fb5eca 100644 --- a/internal/services/monitor/monitor_action_group_resource.go +++ b/internal/services/monitor/monitor_action_group_resource.go @@ -538,7 +538,6 @@ func resourceMonitorActionGroupRead(d *pluginsdk.ResourceData, meta interface{}) d.Set("resource_group_name", id.ResourceGroupName) if model := resp.Model; model != nil { - d.Set("location", location.Normalize(model.Location)) if props := model.Properties; props != nil { diff --git a/internal/services/monitor/monitor_alert_processing_rule_action_group_resource.go b/internal/services/monitor/monitor_alert_processing_rule_action_group_resource.go index 4ca23637ba7a..607f8d2209bc 100644 --- a/internal/services/monitor/monitor_alert_processing_rule_action_group_resource.go +++ b/internal/services/monitor/monitor_alert_processing_rule_action_group_resource.go @@ -88,7 +88,8 @@ func (r AlertProcessingRuleActionGroupResource) Create() sdk.ResourceFunc { Actions: []alertprocessingrules.Action{ alertprocessingrules.AddActionGroups{ ActionGroupIds: model.AddActionGroupIds, - }}, + }, + }, Conditions: expandAlertProcessingRuleConditions(model.Condition), Description: utils.String(model.Description), Enabled: utils.Bool(model.Enabled), @@ -141,7 +142,8 @@ func (r AlertProcessingRuleActionGroupResource) Update() sdk.ResourceFunc { model.Properties.Actions = []alertprocessingrules.Action{ alertprocessingrules.AddActionGroups{ ActionGroupIds: resourceModel.AddActionGroupIds, - }} + }, + } } if metadata.ResourceData.HasChange("condition") { @@ -241,6 +243,7 @@ func (r AlertProcessingRuleActionGroupResource) Read() sdk.ResourceFunc { }, } } + func (r AlertProcessingRuleActionGroupResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, diff --git a/internal/services/monitor/monitor_alert_processing_rule_suppression_resource.go b/internal/services/monitor/monitor_alert_processing_rule_suppression_resource.go index b856babed519..26cb8a217a5f 100644 --- a/internal/services/monitor/monitor_alert_processing_rule_suppression_resource.go +++ b/internal/services/monitor/monitor_alert_processing_rule_suppression_resource.go @@ -128,7 +128,8 @@ func (r AlertProcessingRuleSuppressionResource) Update() sdk.ResourceFunc { if metadata.ResourceData.HasChange("add_action_group_ids") { model.Properties.Actions = []alertprocessingrules.Action{ - alertprocessingrules.RemoveAllActionGroups{}} + alertprocessingrules.RemoveAllActionGroups{}, + } } if metadata.ResourceData.HasChange("condition") { @@ -217,6 +218,7 @@ func (r AlertProcessingRuleSuppressionResource) Read() sdk.ResourceFunc { }, } } + func (r AlertProcessingRuleSuppressionResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, diff --git a/internal/services/monitor/monitor_autoscale_setting_resource.go b/internal/services/monitor/monitor_autoscale_setting_resource.go index 2766565528a9..17c7a622383b 100644 --- a/internal/services/monitor/monitor_autoscale_setting_resource.go +++ b/internal/services/monitor/monitor_autoscale_setting_resource.go @@ -546,7 +546,6 @@ func resourceMonitorAutoScaleSettingRead(d *pluginsdk.ResourceData, meta interfa if err = d.Set("tags", utils.FlattenPtrMapStringString(tagMap)); err != nil { return err } - } return nil } @@ -877,7 +876,6 @@ func flattenAzureRmMonitorAutoScaleSettingPredictive(input *autoscalesettings.Pr } func flattenAzureRmMonitorAutoScaleSettingCapacity(input autoscalesettings.ScaleCapacity) ([]interface{}, error) { - result := make(map[string]interface{}) min, err := strconv.Atoi(input.Minimum) @@ -1062,7 +1060,6 @@ func flattenAzureRmMonitorAutoScaleSettingNotification(notifications *[]autoscal if webHookProps := v.Properties; webHookProps != nil { for key, value := range *v.Properties { props[key] = value - } hook["properties"] = props webhooks = append(webhooks, hook) @@ -1085,7 +1082,6 @@ func flattenAzureRmMonitorAutoScaleSettingRulesDimensions(dimensions *[]autoscal } for _, dimension := range *dimensions { - results = append(results, map[string]interface{}{ "name": dimension.DimensionName, "operator": string(dimension.Operator), diff --git a/internal/services/monitor/monitor_data_collection_rule_data_source.go b/internal/services/monitor/monitor_data_collection_rule_data_source.go index 30853fbaaf4e..59542321f8dc 100644 --- a/internal/services/monitor/monitor_data_collection_rule_data_source.go +++ b/internal/services/monitor/monitor_data_collection_rule_data_source.go @@ -46,7 +46,6 @@ func (d DataCollectionRuleDataSource) Arguments() map[string]*pluginsdk.Schema { func (d DataCollectionRuleDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "location": commonschema.LocationComputed(), "data_collection_endpoint_id": { diff --git a/internal/services/monitor/monitor_data_collection_rule_resource.go b/internal/services/monitor/monitor_data_collection_rule_resource.go index a8c7f79a9afe..83a1989fdd86 100644 --- a/internal/services/monitor/monitor_data_collection_rule_resource.go +++ b/internal/services/monitor/monitor_data_collection_rule_resource.go @@ -1861,7 +1861,7 @@ func flattenDataCollectionRuleDataSourcePerfCounters(input *[]datacollectionrule result = append(result, PerfCounter{ Name: flattenStringPtr(v.Name), CounterSpecifiers: flattenStringSlicePtr(v.CounterSpecifiers), - SamplingFrequencyInSeconds: utils.NormaliseNilableInt64(v.SamplingFrequencyInSeconds), + SamplingFrequencyInSeconds: pointer.From(v.SamplingFrequencyInSeconds), Streams: flattenDataCollectionRuleDataSourcePerfCounterStreams(v.Streams), }) } diff --git a/internal/services/monitor/monitor_diagnostic_setting_resource.go b/internal/services/monitor/monitor_diagnostic_setting_resource.go index 3b9213205f5c..b43cac6f32f6 100644 --- a/internal/services/monitor/monitor_diagnostic_setting_resource.go +++ b/internal/services/monitor/monitor_diagnostic_setting_resource.go @@ -11,6 +11,7 @@ import ( "strings" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" authRuleParse "github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces" @@ -443,7 +444,7 @@ func resourceMonitorDiagnosticSettingRead(d *pluginsdk.ResourceData, meta interf d.Set("eventhub_name", props.EventHubName) eventhubAuthorizationRuleId := "" if props.EventHubAuthorizationRuleId != nil && *props.EventHubAuthorizationRuleId != "" { - authRuleId := utils.NormalizeNilableString(props.EventHubAuthorizationRuleId) + authRuleId := pointer.From(props.EventHubAuthorizationRuleId) parsedId, err := authRuleParse.ParseAuthorizationRuleIDInsensitively(authRuleId) if err != nil { return err @@ -463,21 +464,17 @@ func resourceMonitorDiagnosticSettingRead(d *pluginsdk.ResourceData, meta interf } d.Set("log_analytics_workspace_id", workspaceId) - storageAccountId := "" if props.StorageAccountId != nil && *props.StorageAccountId != "" { parsedId, err := commonids.ParseStorageAccountIDInsensitively(*props.StorageAccountId) if err != nil { return err } - storageAccountId = parsedId.ID() - d.Set("storage_account_id", storageAccountId) + d.Set("storage_account_id", parsedId.ID()) } - partnerSolutionId := "" if props.MarketplacePartnerId != nil && *props.MarketplacePartnerId != "" { - partnerSolutionId = *props.MarketplacePartnerId - d.Set("partner_solution_id", partnerSolutionId) + d.Set("partner_solution_id", props.MarketplacePartnerId) } logAnalyticsDestinationType := "" diff --git a/internal/services/monitor/monitor_metric_alert_resource.go b/internal/services/monitor/monitor_metric_alert_resource.go index 6b22a12180fc..def5222be7fd 100644 --- a/internal/services/monitor/monitor_metric_alert_resource.go +++ b/internal/services/monitor/monitor_metric_alert_resource.go @@ -435,7 +435,6 @@ func resourceMonitorMetricAlertCreateUpdate(d *pluginsdk.ResourceData, meta inte return fmt.Errorf("unexpected nil properties of Monitor %s", id) } _, isLegacy = existing.Model.Properties.Criteria.(metricalerts.MetricAlertSingleResourceMultipleMetricCriteria) - } criteria, err := expandMonitorMetricAlertCriteria(d, isLegacy) diff --git a/internal/services/monitor/monitor_private_link_scope_resource.go b/internal/services/monitor/monitor_private_link_scope_resource.go index 611bd5b4b7d5..e7a9c83202ac 100644 --- a/internal/services/monitor/monitor_private_link_scope_resource.go +++ b/internal/services/monitor/monitor_private_link_scope_resource.go @@ -148,7 +148,6 @@ func resourceMonitorPrivateLinkScopeRead(d *pluginsdk.ResourceData, meta interfa props := model.Properties d.Set("ingestion_access_mode", string(props.AccessModeSettings.IngestionAccessMode)) d.Set("query_access_mode", string(props.AccessModeSettings.QueryAccessMode)) - } return nil diff --git a/internal/services/monitor/monitor_scheduled_query_rules_alert_data_source.go b/internal/services/monitor/monitor_scheduled_query_rules_alert_data_source.go index 07ce3608d1dd..21ddf2c9dddf 100644 --- a/internal/services/monitor/monitor_scheduled_query_rules_alert_data_source.go +++ b/internal/services/monitor/monitor_scheduled_query_rules_alert_data_source.go @@ -214,7 +214,6 @@ func dataSourceMonitorScheduledQueryRulesAlertRead(d *pluginsdk.ResourceData, me if err = d.Set("tags", utils.FlattenPtrMapStringString(model.Tags)); err != nil { return err } - } return nil diff --git a/internal/services/monitor/monitor_scheduled_query_rules_alert_resource_test.go b/internal/services/monitor/monitor_scheduled_query_rules_alert_resource_test.go index a43a026dc691..49ef33487ce1 100644 --- a/internal/services/monitor/monitor_scheduled_query_rules_alert_resource_test.go +++ b/internal/services/monitor/monitor_scheduled_query_rules_alert_resource_test.go @@ -35,6 +35,7 @@ func TestAccMonitorScheduledQueryRules_AlertingActionBasic(t *testing.T) { data.ImportStep(), }) } + func TestAccMonitorScheduledQueryRules_AlertingActionQueryTypeNumber(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_monitor_scheduled_query_rules_alert", "test") r := MonitorScheduledQueryRulesResource{} @@ -135,6 +136,10 @@ func TestAccMonitorScheduledQueryRules_AutoMitigate(t *testing.T) { func (MonitorScheduledQueryRulesResource) AlertingActionAutoMitigate(data acceptance.TestData, ts string, autoMitigate bool) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%d" location = "%s" @@ -175,6 +180,10 @@ QUERY func (MonitorScheduledQueryRulesResource) AlertingActionQueryTypeNumber(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%d" location = "%s" @@ -218,6 +227,10 @@ QUERY func (MonitorScheduledQueryRulesResource) AlertingActionConfigBasic(data acceptance.TestData, ts string) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%d" location = "%s" @@ -265,6 +278,10 @@ QUERY func (MonitorScheduledQueryRulesResource) AlertingActionConfigUpdate(data acceptance.TestData, ts string) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%d" location = "%s" @@ -317,6 +334,10 @@ func (MonitorScheduledQueryRulesResource) AlertingActionConfigComplete(data acce ts := time.Now().Format(time.RFC3339) return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%d" location = "%s" @@ -377,6 +398,10 @@ resource "azurerm_monitor_scheduled_query_rules_alert" "test" { func (MonitorScheduledQueryRulesResource) AlertingActionCrossResourceConfig(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%d" location = "%s" diff --git a/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource.go b/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource.go index dd565a2ce39f..ed827ff240d7 100644 --- a/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource.go +++ b/internal/services/monitor/monitor_scheduled_query_rules_alert_v2_resource.go @@ -768,7 +768,7 @@ func expandScheduledQueryRulesAlertV2ActionsModel(inputList []ScheduledQueryRule func expandScheduledQueryRulesAlertV2CriteriaModel(inputList []ScheduledQueryRulesAlertV2CriteriaModel) *scheduledqueryrules.ScheduledQueryRuleCriteria { output := scheduledqueryrules.ScheduledQueryRuleCriteria{} - var outputList []scheduledqueryrules.Condition + outputList := make([]scheduledqueryrules.Condition, 0, len(inputList)) for _, v := range inputList { input := v condition := scheduledqueryrules.Condition{ @@ -799,7 +799,7 @@ func expandScheduledQueryRulesAlertV2CriteriaModel(inputList []ScheduledQueryRul } func expandScheduledQueryRulesAlertV2DimensionModel(inputList []ScheduledQueryRulesAlertV2DimensionModel) *[]scheduledqueryrules.Dimension { - var outputList []scheduledqueryrules.Dimension + outputList := make([]scheduledqueryrules.Dimension, 0, len(inputList)) for _, v := range inputList { input := v output := scheduledqueryrules.Dimension{ @@ -848,17 +848,12 @@ func flattenScheduledQueryRulesAlertV2ActionsModel(input *scheduledqueryrules.Ac } func flattenScheduledQueryRulesAlertV2CriteriaModel(input *scheduledqueryrules.ScheduledQueryRuleCriteria) []ScheduledQueryRulesAlertV2CriteriaModel { - var outputList []ScheduledQueryRulesAlertV2CriteriaModel - if input == nil { - return outputList + if input == nil || input.AllOf == nil { + return []ScheduledQueryRulesAlertV2CriteriaModel{} } - inputList := input.AllOf - if inputList == nil { - return outputList - } - - for _, v := range *inputList { + outputList := make([]ScheduledQueryRulesAlertV2CriteriaModel, 0, len(*input.AllOf)) + for _, v := range *input.AllOf { output := ScheduledQueryRulesAlertV2CriteriaModel{} output.Dimensions = flattenScheduledQueryRulesAlertV2DimensionModel(v.Dimensions) @@ -895,11 +890,11 @@ func flattenScheduledQueryRulesAlertV2CriteriaModel(input *scheduledqueryrules.S } func flattenScheduledQueryRulesAlertV2DimensionModel(inputList *[]scheduledqueryrules.Dimension) []ScheduledQueryRulesAlertV2DimensionModel { - var outputList []ScheduledQueryRulesAlertV2DimensionModel if inputList == nil { - return outputList + return []ScheduledQueryRulesAlertV2DimensionModel{} } + outputList := make([]ScheduledQueryRulesAlertV2DimensionModel, 0, len(*inputList)) for _, input := range *inputList { output := ScheduledQueryRulesAlertV2DimensionModel{ Name: input.Name, diff --git a/internal/services/monitor/monitor_scheduled_query_rules_log_resource_test.go b/internal/services/monitor/monitor_scheduled_query_rules_log_resource_test.go index 8412d86f1a04..c213609e4be7 100644 --- a/internal/services/monitor/monitor_scheduled_query_rules_log_resource_test.go +++ b/internal/services/monitor/monitor_scheduled_query_rules_log_resource_test.go @@ -72,6 +72,10 @@ func TestAccMonitorScheduledQueryRules_LogToMetricActionComplete(t *testing.T) { func (MonitorScheduledQueryRulesLogResource) LogToMetricActionConfigBasic(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%d" location = "%s" @@ -106,6 +110,10 @@ resource "azurerm_monitor_scheduled_query_rules_log" "test" { func (MonitorScheduledQueryRulesLogResource) LogToMetricActionConfigUpdate(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%d" location = "%s" @@ -142,6 +150,10 @@ resource "azurerm_monitor_scheduled_query_rules_log" "test" { func (MonitorScheduledQueryRulesLogResource) LogToMetricActionConfigComplete(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-monitor-%[1]d" location = "%[2]s" diff --git a/internal/services/monitor/parse/action_group.go b/internal/services/monitor/parse/action_group.go index 40b1e8640a74..d98a0272ba92 100644 --- a/internal/services/monitor/parse/action_group.go +++ b/internal/services/monitor/parse/action_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ActionGroupID(input string) (*ActionGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("actionGroups"); err != nil { @@ -89,11 +90,11 @@ func ActionGroupIDInsensitively(input string) (*ActionGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'actionGroups' segment diff --git a/internal/services/monitor/parse/action_group_test.go b/internal/services/monitor/parse/action_group_test.go index b4689ec3392a..2dd206790a55 100644 --- a/internal/services/monitor/parse/action_group_test.go +++ b/internal/services/monitor/parse/action_group_test.go @@ -27,7 +27,6 @@ func TestActionGroupID(t *testing.T) { Error bool Expected *ActionGroupId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestActionGroupIDInsensitively(t *testing.T) { Error bool Expected *ActionGroupId }{ - { // empty Input: "", diff --git a/internal/services/monitor/validate/action_group_id_test.go b/internal/services/monitor/validate/action_group_id_test.go index 741ce0b8cd88..afcb7f18208f 100644 --- a/internal/services/monitor/validate/action_group_id_test.go +++ b/internal/services/monitor/validate/action_group_id_test.go @@ -12,7 +12,6 @@ func TestActionGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/helper/elasticpool.go b/internal/services/mssql/helper/elasticpool.go index a00c89cfe039..4955d57836bc 100644 --- a/internal/services/mssql/helper/elasticpool.go +++ b/internal/services/mssql/helper/elasticpool.go @@ -4,6 +4,7 @@ package helper import ( + "errors" "fmt" "math" "sort" @@ -214,6 +215,21 @@ var getvCoreMaxGB = map[string]map[string]map[int]float64{ 40: 4096, 80: 4096, }, + "PRMS": { + 4: 1024, + 6: 1536, + 8: 2048, + 10: 2048, + 12: 3072, + 14: 3072, + 16: 3072, + 18: 3072, + 20: 3072, + 24: 4096, + 32: 4096, + 40: 4096, + 80: 4096, + }, }, } @@ -387,7 +403,7 @@ func buildErrorString(stub string, m map[int]float64) string { func doDTUSKUValidation(s sku) error { if s.MaxAllowedGB == 0 { - return fmt.Errorf(getDTUCapacityErrorMsg(s)) + return errors.New(getDTUCapacityErrorMsg(s)) } if strings.EqualFold(s.Name, "BasicPool") { @@ -407,7 +423,7 @@ func doDTUSKUValidation(s sku) error { // Check to see if the max_size_gb value is valid for this SKU type and capacity if supportedDTUMaxGBValues[int(s.MaxSizeGb)] != 1 { - return fmt.Errorf(getDTUNotValidSizeErrorMsg(s)) + return errors.New(getDTUNotValidSizeErrorMsg(s)) } } @@ -425,7 +441,7 @@ func doDTUSKUValidation(s sku) error { func doVCoreSKUValidation(s sku) error { if s.MaxAllowedGB == 0 { - return fmt.Errorf(getVCoreCapacityErrorMsg(s)) + return errors.New(getVCoreCapacityErrorMsg(s)) } if s.MaxSizeGb > s.MaxAllowedGB { diff --git a/internal/services/mssql/helper/sql_retention_policies.go b/internal/services/mssql/helper/sql_retention_policies.go index 1332a8d95055..a1a6662e73d4 100644 --- a/internal/services/mssql/helper/sql_retention_policies.go +++ b/internal/services/mssql/helper/sql_retention_policies.go @@ -28,7 +28,7 @@ func LongTermRetentionPolicySchema() *pluginsdk.Schema { "weekly_retention": { Type: pluginsdk.TypeString, Optional: true, - Computed: true, + Default: "PT0S", ValidateFunc: validate.ISO8601Duration, AtLeastOneOf: atLeastOneOf, }, @@ -37,7 +37,7 @@ func LongTermRetentionPolicySchema() *pluginsdk.Schema { "monthly_retention": { Type: pluginsdk.TypeString, Optional: true, - Computed: true, + Default: "PT0S", ValidateFunc: validate.ISO8601Duration, AtLeastOneOf: atLeastOneOf, }, @@ -46,7 +46,7 @@ func LongTermRetentionPolicySchema() *pluginsdk.Schema { "yearly_retention": { Type: pluginsdk.TypeString, Optional: true, - Computed: true, + Default: "PT0S", ValidateFunc: validate.ISO8601Duration, AtLeastOneOf: atLeastOneOf, }, diff --git a/internal/services/mssql/migration/database_v0_to_v1.go b/internal/services/mssql/migration/database_v0_to_v1.go index fa878fd9d3b6..3155cf838c4d 100644 --- a/internal/services/mssql/migration/database_v0_to_v1.go +++ b/internal/services/mssql/migration/database_v0_to_v1.go @@ -101,7 +101,7 @@ func (d DatabaseV0ToV1) Schema() map[string]*pluginsdk.Schema { Computed: true, }, - //lintignore:XS003 + // lintignore:XS003 "long_term_retention_policy": { Type: pluginsdk.TypeList, Optional: true, diff --git a/internal/services/mssql/mssql_database_resource.go b/internal/services/mssql/mssql_database_resource.go index a49ae464203b..cd0c6efec8a8 100644 --- a/internal/services/mssql/mssql_database_resource.go +++ b/internal/services/mssql/mssql_database_resource.go @@ -29,7 +29,9 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" + helperValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" keyVaultParser "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" @@ -1140,7 +1142,6 @@ func resourceMsSqlDatabaseRead(d *pluginsdk.ResourceData, meta interface{}) erro geoBackupPolicy := true skuName := "" elasticPoolId := "" - minCapacity := float64(0) ledgerEnabled := false enclaveType := "" @@ -1148,7 +1149,7 @@ func resourceMsSqlDatabaseRead(d *pluginsdk.ResourceData, meta interface{}) erro d.Set("name", id.DatabaseName) if props := model.Properties; props != nil { - minCapacity = pointer.From(props.MinCapacity) + minCapacity := pointer.From(props.MinCapacity) requestedBackupStorageRedundancy := "" if props.RequestedBackupStorageRedundancy != nil { @@ -1454,14 +1455,16 @@ func expandMsSqlServerImport(d *pluginsdk.ResourceData) (out databases.ImportExi // The following data comes from the results of "az maintenance public-configuration list --query "[?contains(name, `SQL`) && contains(name, `DB`)]".name --output table" func resourceMsSqlDatabaseMaintenanceNames() []string { - return []string{"SQL_Default", "SQL_EastUS_DB_1", "SQL_EastUS2_DB_1", "SQL_SoutheastAsia_DB_1", "SQL_AustraliaEast_DB_1", "SQL_NorthEurope_DB_1", "SQL_SouthCentralUS_DB_1", "SQL_WestUS2_DB_1", + return []string{ + "SQL_Default", "SQL_EastUS_DB_1", "SQL_EastUS2_DB_1", "SQL_SoutheastAsia_DB_1", "SQL_AustraliaEast_DB_1", "SQL_NorthEurope_DB_1", "SQL_SouthCentralUS_DB_1", "SQL_WestUS2_DB_1", "SQL_UKSouth_DB_1", "SQL_WestEurope_DB_1", "SQL_EastUS_DB_2", "SQL_EastUS2_DB_2", "SQL_WestUS2_DB_2", "SQL_SoutheastAsia_DB_2", "SQL_AustraliaEast_DB_2", "SQL_NorthEurope_DB_2", "SQL_SouthCentralUS_DB_2", "SQL_UKSouth_DB_2", "SQL_WestEurope_DB_2", "SQL_AustraliaSoutheast_DB_1", "SQL_BrazilSouth_DB_1", "SQL_CanadaCentral_DB_1", "SQL_CanadaEast_DB_1", "SQL_CentralUS_DB_1", "SQL_EastAsia_DB_1", "SQL_FranceCentral_DB_1", "SQL_GermanyWestCentral_DB_1", "SQL_CentralIndia_DB_1", "SQL_SouthIndia_DB_1", "SQL_JapanEast_DB_1", "SQL_JapanWest_DB_1", "SQL_NorthCentralUS_DB_1", "SQL_UKWest_DB_1", "SQL_WestUS_DB_1", "SQL_AustraliaSoutheast_DB_2", "SQL_BrazilSouth_DB_2", "SQL_CanadaCentral_DB_2", "SQL_CanadaEast_DB_2", "SQL_CentralUS_DB_2", "SQL_EastAsia_DB_2", "SQL_FranceCentral_DB_2", "SQL_GermanyWestCentral_DB_2", "SQL_CentralIndia_DB_2", "SQL_SouthIndia_DB_2", "SQL_JapanEast_DB_2", "SQL_JapanWest_DB_2", "SQL_NorthCentralUS_DB_2", "SQL_UKWest_DB_2", "SQL_WestUS_DB_2", "SQL_WestCentralUS_DB_1", "SQL_FranceSouth_DB_1", "SQL_WestCentralUS_DB_2", "SQL_FranceSouth_DB_2", "SQL_SwitzerlandNorth_DB_1", "SQL_SwitzerlandNorth_DB_2", "SQL_BrazilSoutheast_DB_1", - "SQL_UAENorth_DB_1", "SQL_BrazilSoutheast_DB_2", "SQL_UAENorth_DB_2", "SQL_SouthAfricaNorth_DB_1", "SQL_SouthAfricaNorth_DB_2", "SQL_WestUS3_DB_1", "SQL_WestUS3_DB_2"} + "SQL_UAENorth_DB_1", "SQL_BrazilSoutheast_DB_2", "SQL_UAENorth_DB_2", "SQL_SouthAfricaNorth_DB_1", "SQL_SouthAfricaNorth_DB_2", "SQL_WestUS3_DB_1", "SQL_WestUS3_DB_2", + } } type EmailAccountAdminsStatus string @@ -1479,7 +1482,7 @@ func PossibleValuesForEmailAccountAdminsStatus() []string { } func resourceMsSqlDatabaseSchema() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ + resource := map[string]*pluginsdk.Schema{ "name": { Type: pluginsdk.TypeString, Required: true, @@ -1820,4 +1823,64 @@ func resourceMsSqlDatabaseSchema() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } + + if !features.FivePointOhBeta() { + atLeastOneOf := []string{ + "long_term_retention_policy.0.weekly_retention", "long_term_retention_policy.0.monthly_retention", + "long_term_retention_policy.0.yearly_retention", "long_term_retention_policy.0.week_of_year", + } + resource["long_term_retention_policy"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + // WeeklyRetention - The weekly retention policy for an LTR backup in an ISO 8601 format. + "weekly_retention": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: helperValidate.ISO8601Duration, + AtLeastOneOf: atLeastOneOf, + }, + + // MonthlyRetention - The monthly retention policy for an LTR backup in an ISO 8601 format. + "monthly_retention": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: helperValidate.ISO8601Duration, + AtLeastOneOf: atLeastOneOf, + }, + + // YearlyRetention - The yearly retention policy for an LTR backup in an ISO 8601 format. + "yearly_retention": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: helperValidate.ISO8601Duration, + AtLeastOneOf: atLeastOneOf, + }, + + // WeekOfYear - The week of year to take the yearly backup in an ISO 8601 format. + "week_of_year": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + ValidateFunc: validation.IntBetween(0, 52), + AtLeastOneOf: atLeastOneOf, + }, + + "immutable_backups_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + } + } + + return resource } diff --git a/internal/services/mssql/mssql_database_resource_test.go b/internal/services/mssql/mssql_database_resource_test.go index 0c4f92c5d186..389292857ddf 100644 --- a/internal/services/mssql/mssql_database_resource_test.go +++ b/internal/services/mssql/mssql_database_resource_test.go @@ -72,14 +72,12 @@ func TestAccMsSqlDatabase_complete(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_mssql_database", "test") r := MsSqlDatabaseResource{} - maintenance_configuration_name := "" + maintenance_configuration_name := "SQL_Default" switch data.Locations.Primary { case "westeurope": maintenance_configuration_name = "SQL_WestEurope_DB_2" case "francecentral": maintenance_configuration_name = "SQL_FranceCentral_DB_1" - default: - maintenance_configuration_name = "SQL_Default" } data.ResourceTest(t, r, []acceptance.TestStep{ @@ -1110,14 +1108,12 @@ resource "azurerm_mssql_database" "import" { } func (r MsSqlDatabaseResource) complete(data acceptance.TestData) string { - configName := "" + configName := "SQL_Default" switch data.Locations.Primary { case "westeurope": configName = "SQL_WestEurope_DB_2" case "francecentral": configName = "SQL_FranceCentral_DB_1" - default: - configName = "SQL_Default" } return fmt.Sprintf(` diff --git a/internal/services/mssql/mssql_elasticpool_resource_test.go b/internal/services/mssql/mssql_elasticpool_resource_test.go index a8684ae06c1f..d8df5694cb62 100644 --- a/internal/services/mssql/mssql_elasticpool_resource_test.go +++ b/internal/services/mssql/mssql_elasticpool_resource_test.go @@ -55,14 +55,12 @@ func TestAccMsSqlElasticPool_standardDTU(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_mssql_elasticpool", "test") r := MsSqlElasticPoolResource{} - maintenance_configuration_name := "" + maintenance_configuration_name := "SQL_Default" switch data.Locations.Primary { case "westeurope": maintenance_configuration_name = "SQL_WestEurope_DB_2" case "francecentral": maintenance_configuration_name = "SQL_FranceCentral_DB_1" - default: - maintenance_configuration_name = "SQL_Default" } data.ResourceTest(t, r, []acceptance.TestStep{ diff --git a/internal/services/mssql/mssql_failover_group_resource.go b/internal/services/mssql/mssql_failover_group_resource.go index c1fbacd33a51..abb919a51848 100644 --- a/internal/services/mssql/mssql_failover_group_resource.go +++ b/internal/services/mssql/mssql_failover_group_resource.go @@ -324,7 +324,6 @@ func (r MsSqlFailoverGroupResource) Read() sdk.ResourceFunc { } if existing.Model != nil { - model.Tags = pointer.From(existing.Model.Tags) if props := existing.Model.Properties; props != nil { @@ -343,7 +342,6 @@ func (r MsSqlFailoverGroupResource) Read() sdk.ResourceFunc { }} model.ReadWriteEndpointFailurePolicy[0].GraceMinutes = pointer.From(props.ReadWriteEndpoint.FailoverWithDataLossGracePeriodMinutes) - } } @@ -400,7 +398,7 @@ func (r MsSqlFailoverGroupResource) flattenPartnerServers(input []failovergroups } func (r MsSqlFailoverGroupResource) expandPartnerServers(input []PartnerServerModel) []failovergroups.PartnerInfo { - var partnerServers []failovergroups.PartnerInfo + partnerServers := make([]failovergroups.PartnerInfo, 0, len(input)) if input == nil { return partnerServers } diff --git a/internal/services/mssql/mssql_server_dns_alias_resource.go b/internal/services/mssql/mssql_server_dns_alias_resource.go index 37f403103177..7504d97396ad 100644 --- a/internal/services/mssql/mssql_server_dns_alias_resource.go +++ b/internal/services/mssql/mssql_server_dns_alias_resource.go @@ -8,13 +8,13 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssql/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssql/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) type ServerDNSAliasModel struct { @@ -120,7 +120,7 @@ func (m ServerDNSAliasResource) Read() sdk.ResourceFunc { } if alias.Model != nil { if prop := alias.Model.Properties; prop != nil { - state.DNSRecord = utils.NormalizeNilableString(prop.AzureDnsRecord) + state.DNSRecord = pointer.From(prop.AzureDnsRecord) } } return metadata.Encode(&state) diff --git a/internal/services/mssql/mssql_server_transparent_data_encryption_resource.go b/internal/services/mssql/mssql_server_transparent_data_encryption_resource.go index 72a3e8710987..6dfafd5a8aba 100644 --- a/internal/services/mssql/mssql_server_transparent_data_encryption_resource.go +++ b/internal/services/mssql/mssql_server_transparent_data_encryption_resource.go @@ -272,7 +272,6 @@ func resourceMsSqlTransparentDataEncryptionRead(d *pluginsdk.ResourceData, meta hsmKey = keyId } else { keyVaultKeyId = keyId - } } diff --git a/internal/services/mssql/mssql_virtual_machine_availability_group_listener_resource.go b/internal/services/mssql/mssql_virtual_machine_availability_group_listener_resource.go index 0759ac5c8230..af63f92cadc0 100644 --- a/internal/services/mssql/mssql_virtual_machine_availability_group_listener_resource.go +++ b/internal/services/mssql/mssql_virtual_machine_availability_group_listener_resource.go @@ -281,7 +281,7 @@ func (r MsSqlVirtualMachineAvailabilityGroupListenerResource) Create() sdk.Resou }, } - if model.LoadBalancerConfiguration != nil && len(model.LoadBalancerConfiguration) != 0 { + if len(model.LoadBalancerConfiguration) != 0 { lbConfigs, err := expandMsSqlVirtualMachineAvailabilityGroupListenerLoadBalancerConfigurations(model.LoadBalancerConfiguration) if err != nil { return err @@ -289,7 +289,7 @@ func (r MsSqlVirtualMachineAvailabilityGroupListenerResource) Create() sdk.Resou parameters.Properties.LoadBalancerConfigurations = lbConfigs } - if model.MultiSubnetIpConfiguration != nil && len(model.MultiSubnetIpConfiguration) != 0 { + if len(model.MultiSubnetIpConfiguration) != 0 { parameters.Properties.MultiSubnetIPConfigurations = expandMsSqlVirtualMachineAvailabilityGroupListenerMultiSubnetIpConfiguration(model.MultiSubnetIpConfiguration) } @@ -307,7 +307,6 @@ func (r MsSqlVirtualMachineAvailabilityGroupListenerResource) Read() sdk.Resourc return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.MSSQL.VirtualMachinesAvailabilityGroupListenersClient id, err := availabilitygrouplisteners.ParseAvailabilityGroupListenerID(metadata.ResourceData.Id()) @@ -330,7 +329,6 @@ func (r MsSqlVirtualMachineAvailabilityGroupListenerResource) Read() sdk.Resourc if model := resp.Model; model != nil { if props := model.Properties; props != nil { - state.AvailabilityGroupName = pointer.From(props.AvailabilityGroupName) state.Port = pointer.From(props.Port) @@ -348,7 +346,6 @@ func (r MsSqlVirtualMachineAvailabilityGroupListenerResource) Read() sdk.Resourc if props.AvailabilityGroupConfiguration != nil { if props.AvailabilityGroupConfiguration.Replicas != nil { - replicas, err := flattenMsSqlVirtualMachineAvailabilityGroupListenerReplicas(props.AvailabilityGroupConfiguration.Replicas, id.SubscriptionId) if err != nil { return fmt.Errorf("setting `replica`: %+v", err) @@ -387,7 +384,6 @@ func expandMsSqlVirtualMachineAvailabilityGroupListenerLoadBalancerConfiguration results := make([]availabilitygrouplisteners.LoadBalancerConfiguration, 0) for _, lb := range lbConfigs { - lbConfig := availabilitygrouplisteners.LoadBalancerConfiguration{ ProbePort: pointer.To(lb.ProbePort), } @@ -426,7 +422,6 @@ func expandMsSqlVirtualMachineAvailabilityGroupListenerMultiSubnetIpConfiguratio results := make([]availabilitygrouplisteners.MultiSubnetIPConfiguration, 0) for _, item := range multiSubnetIpConfiguration { - config := availabilitygrouplisteners.MultiSubnetIPConfiguration{ SqlVirtualMachineInstance: item.SqlVirtualMachineId, } @@ -565,7 +560,6 @@ func flattenMsSqlVirtualMachineAvailabilityGroupListenerReplicas(input *[]availa } for _, replica := range *input { - sqlVirtualMachineInstanceId := "" if replica.SqlVirtualMachineInstanceId != nil { parsedId, err := sqlvirtualmachines.ParseSqlVirtualMachineIDInsensitively(*replica.SqlVirtualMachineInstanceId) diff --git a/internal/services/mssql/mssql_virtual_machine_availability_group_listener_resource_test.go b/internal/services/mssql/mssql_virtual_machine_availability_group_listener_resource_test.go index c0df09c16e81..b2b14833741d 100644 --- a/internal/services/mssql/mssql_virtual_machine_availability_group_listener_resource_test.go +++ b/internal/services/mssql/mssql_virtual_machine_availability_group_listener_resource_test.go @@ -65,7 +65,6 @@ func TestAccMsSqlVirtualMachineAvailabilityGroupListener_multiSubnetIpConfigurat } func (MsSqlVirtualMachineAvailabilityGroupListenerResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := availabilitygrouplisteners.ParseAvailabilityGroupListenerID(state.ID) if err != nil { return nil, err diff --git a/internal/services/mssql/mssql_virtual_machine_group_resource.go b/internal/services/mssql/mssql_virtual_machine_group_resource.go index a4b612db39ae..960ca86d1af4 100644 --- a/internal/services/mssql/mssql_virtual_machine_group_resource.go +++ b/internal/services/mssql/mssql_virtual_machine_group_resource.go @@ -46,8 +46,10 @@ type WsfcDomainProfile struct { ClusterSubnetType string `tfschema:"cluster_subnet_type"` } -var _ sdk.Resource = MsSqlVirtualMachineGroupResource{} -var _ sdk.ResourceWithUpdate = MsSqlVirtualMachineGroupResource{} +var ( + _ sdk.Resource = MsSqlVirtualMachineGroupResource{} + _ sdk.ResourceWithUpdate = MsSqlVirtualMachineGroupResource{} +) func (r MsSqlVirtualMachineGroupResource) ModelObject() interface{} { return &MsSqlVirtualMachineGroupModel{} @@ -215,7 +217,6 @@ func (r MsSqlVirtualMachineGroupResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.MSSQL.VirtualMachineGroupsClient id, err := sqlvirtualmachinegroups.ParseSqlVirtualMachineGroupID(metadata.ResourceData.Id()) @@ -238,7 +239,6 @@ func (r MsSqlVirtualMachineGroupResource) Read() sdk.ResourceFunc { if model := resp.Model; model != nil { if props := model.Properties; props != nil { - state.SqlImageOffer = pointer.From(props.SqlImageOffer) state.SqlImageSku = string(pointer.From(props.SqlImageSku)) @@ -247,11 +247,10 @@ func (r MsSqlVirtualMachineGroupResource) Read() sdk.ResourceFunc { return err } storageAccountPrimaryKey := "" - if oldModel.WsfcDomainProfile != nil && len(oldModel.WsfcDomainProfile) != 0 { + if len(oldModel.WsfcDomainProfile) != 0 { storageAccountPrimaryKey = oldModel.WsfcDomainProfile[0].StorageAccountPrimaryKey } state.WsfcDomainProfile = flattenMsSqlVirtualMachineGroupWsfcDomainProfile(props.WsfcDomainProfile, storageAccountPrimaryKey) - } state.Location = location.Normalize(model.Location) diff --git a/internal/services/mssql/mssql_virtual_machine_group_resource_test.go b/internal/services/mssql/mssql_virtual_machine_group_resource_test.go index a842616f901d..65a1b0a7fd35 100644 --- a/internal/services/mssql/mssql_virtual_machine_group_resource_test.go +++ b/internal/services/mssql/mssql_virtual_machine_group_resource_test.go @@ -140,6 +140,10 @@ func (MsSqlVirtualMachineGroupResource) Exists(ctx context.Context, client *clie func (MsSqlVirtualMachineGroupResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-mssql-%[1]d" location = "%[2]s" @@ -324,6 +328,10 @@ resource "azurerm_mssql_virtual_machine_group" "test" { func (MsSqlVirtualMachineGroupResource) tags(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-mssql-%[1]d" location = "%[2]s" @@ -351,6 +359,10 @@ resource "azurerm_mssql_virtual_machine_group" "test" { func (MsSqlVirtualMachineGroupResource) tagsUpdated(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-mssql-%[1]d" location = "%[2]s" diff --git a/internal/services/mssql/mssql_virtual_machine_resource.go b/internal/services/mssql/mssql_virtual_machine_resource.go index c426ad15aef5..470feebe4b41 100644 --- a/internal/services/mssql/mssql_virtual_machine_resource.go +++ b/internal/services/mssql/mssql_virtual_machine_resource.go @@ -529,7 +529,7 @@ func resourceMsSqlVirtualMachineCreateUpdate(d *pluginsdk.ResourceData, meta int if respvm.Model.Location == "" { return fmt.Errorf("retrieving %s: `location` is empty", vmId) } - sqlVmGroupId := "" + var sqlVmGroupId string if sqlVmGroupId = d.Get("sql_virtual_machine_group_id").(string); sqlVmGroupId != "" { parsedVmGroupId, err := sqlvirtualmachines.ParseSqlVirtualMachineGroupIDInsensitively(sqlVmGroupId) if err != nil { @@ -1366,6 +1366,7 @@ func flattenSqlVirtualMachineTempDbSettings(input *sqlvirtualmachines.SQLTempDbS return []interface{}{attrs} } + func expandSqlVirtualMachineSQLInstance(input []interface{}) (*sqlvirtualmachines.SQLInstanceSettings, error) { if len(input) == 0 || input[0] == nil { return &sqlvirtualmachines.SQLInstanceSettings{}, nil diff --git a/internal/services/mssql/mssql_virtual_machine_resource_test.go b/internal/services/mssql/mssql_virtual_machine_resource_test.go index 3c16e786e284..8a5343d954b8 100644 --- a/internal/services/mssql/mssql_virtual_machine_resource_test.go +++ b/internal/services/mssql/mssql_virtual_machine_resource_test.go @@ -1135,6 +1135,7 @@ resource "azurerm_mssql_virtual_machine" "test" { } `, r.sqlVirtualMachineGroupDependencies(data)) } + func (r MsSqlVirtualMachineResource) sqlVirtualMachineGroupRemoved(data acceptance.TestData) string { return fmt.Sprintf(` %[1]s diff --git a/internal/services/mssql/parse/database_extended_auditing_policy.go b/internal/services/mssql/parse/database_extended_auditing_policy.go index 73fb2a00ad7b..ae952fdcc6e9 100644 --- a/internal/services/mssql/parse/database_extended_auditing_policy.go +++ b/internal/services/mssql/parse/database_extended_auditing_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func DatabaseExtendedAuditingPolicyID(input string) (*DatabaseExtendedAuditingPo } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/database_extended_auditing_policy_test.go b/internal/services/mssql/parse/database_extended_auditing_policy_test.go index 6a6dd01fa4b7..6707da9d03a5 100644 --- a/internal/services/mssql/parse/database_extended_auditing_policy_test.go +++ b/internal/services/mssql/parse/database_extended_auditing_policy_test.go @@ -27,7 +27,6 @@ func TestDatabaseExtendedAuditingPolicyID(t *testing.T) { Error bool Expected *DatabaseExtendedAuditingPolicyId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/database_vulnerability_assessment_rule_baseline.go b/internal/services/mssql/parse/database_vulnerability_assessment_rule_baseline.go index b99d68e35f8b..09acf41ab46f 100644 --- a/internal/services/mssql/parse/database_vulnerability_assessment_rule_baseline.go +++ b/internal/services/mssql/parse/database_vulnerability_assessment_rule_baseline.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -65,11 +66,11 @@ func DatabaseVulnerabilityAssessmentRuleBaselineID(input string) (*DatabaseVulne } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/database_vulnerability_assessment_rule_baseline_test.go b/internal/services/mssql/parse/database_vulnerability_assessment_rule_baseline_test.go index c4747b3caa5c..9cce3564b140 100644 --- a/internal/services/mssql/parse/database_vulnerability_assessment_rule_baseline_test.go +++ b/internal/services/mssql/parse/database_vulnerability_assessment_rule_baseline_test.go @@ -27,7 +27,6 @@ func TestDatabaseVulnerabilityAssessmentRuleBaselineID(t *testing.T) { Error bool Expected *DatabaseVulnerabilityAssessmentRuleBaselineId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/elastic_pool.go b/internal/services/mssql/parse/elastic_pool.go index eb748ac2f249..a3850264784e 100644 --- a/internal/services/mssql/parse/elastic_pool.go +++ b/internal/services/mssql/parse/elastic_pool.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ElasticPoolID(input string) (*ElasticPoolId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/elastic_pool_test.go b/internal/services/mssql/parse/elastic_pool_test.go index 3af3e9f356a8..df612f7f6b14 100644 --- a/internal/services/mssql/parse/elastic_pool_test.go +++ b/internal/services/mssql/parse/elastic_pool_test.go @@ -27,7 +27,6 @@ func TestElasticPoolID(t *testing.T) { Error bool Expected *ElasticPoolId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/encryption_protector.go b/internal/services/mssql/parse/encryption_protector.go index b4a12bf3817a..0b4080ae583e 100644 --- a/internal/services/mssql/parse/encryption_protector.go +++ b/internal/services/mssql/parse/encryption_protector.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func EncryptionProtectorID(input string) (*EncryptionProtectorId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/encryption_protector_test.go b/internal/services/mssql/parse/encryption_protector_test.go index 38cd4dbb3f5f..ab2bfa75628b 100644 --- a/internal/services/mssql/parse/encryption_protector_test.go +++ b/internal/services/mssql/parse/encryption_protector_test.go @@ -27,7 +27,6 @@ func TestEncryptionProtectorID(t *testing.T) { Error bool Expected *EncryptionProtectorId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/failover_group.go b/internal/services/mssql/parse/failover_group.go index 32f574972445..6dced4cdcaa2 100644 --- a/internal/services/mssql/parse/failover_group.go +++ b/internal/services/mssql/parse/failover_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FailoverGroupID(input string) (*FailoverGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/failover_group_test.go b/internal/services/mssql/parse/failover_group_test.go index ce4a02494aba..d24b9eaebdd7 100644 --- a/internal/services/mssql/parse/failover_group_test.go +++ b/internal/services/mssql/parse/failover_group_test.go @@ -27,7 +27,6 @@ func TestFailoverGroupID(t *testing.T) { Error bool Expected *FailoverGroupId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/firewall_rule.go b/internal/services/mssql/parse/firewall_rule.go index cb43602e12f0..06f21c39bad5 100644 --- a/internal/services/mssql/parse/firewall_rule.go +++ b/internal/services/mssql/parse/firewall_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FirewallRuleID(input string) (*FirewallRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/firewall_rule_test.go b/internal/services/mssql/parse/firewall_rule_test.go index 37b4468fe55d..ef8f256a240c 100644 --- a/internal/services/mssql/parse/firewall_rule_test.go +++ b/internal/services/mssql/parse/firewall_rule_test.go @@ -27,7 +27,6 @@ func TestFirewallRuleID(t *testing.T) { Error bool Expected *FirewallRuleId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/job_agent.go b/internal/services/mssql/parse/job_agent.go index 60a941292832..0b4c23504c25 100644 --- a/internal/services/mssql/parse/job_agent.go +++ b/internal/services/mssql/parse/job_agent.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func JobAgentID(input string) (*JobAgentId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/job_agent_test.go b/internal/services/mssql/parse/job_agent_test.go index 230874e469a4..b004217d4bcc 100644 --- a/internal/services/mssql/parse/job_agent_test.go +++ b/internal/services/mssql/parse/job_agent_test.go @@ -27,7 +27,6 @@ func TestJobAgentID(t *testing.T) { Error bool Expected *JobAgentId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/job_credential.go b/internal/services/mssql/parse/job_credential.go index 6c14934e28a1..2c99a729a4d9 100644 --- a/internal/services/mssql/parse/job_credential.go +++ b/internal/services/mssql/parse/job_credential.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func JobCredentialID(input string) (*JobCredentialId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/job_credential_test.go b/internal/services/mssql/parse/job_credential_test.go index 4782023ad3d7..0398a3700189 100644 --- a/internal/services/mssql/parse/job_credential_test.go +++ b/internal/services/mssql/parse/job_credential_test.go @@ -27,7 +27,6 @@ func TestJobCredentialID(t *testing.T) { Error bool Expected *JobCredentialId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/managed_instances_security_alert_policy.go b/internal/services/mssql/parse/managed_instances_security_alert_policy.go index 328f443aba86..996d472ceaee 100644 --- a/internal/services/mssql/parse/managed_instances_security_alert_policy.go +++ b/internal/services/mssql/parse/managed_instances_security_alert_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ManagedInstancesSecurityAlertPolicyID(input string) (*ManagedInstancesSecur } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ManagedInstanceName, err = id.PopSegment("managedInstances"); err != nil { diff --git a/internal/services/mssql/parse/managed_instances_security_alert_policy_test.go b/internal/services/mssql/parse/managed_instances_security_alert_policy_test.go index d5e6e2c0d08b..e29f07f4c58f 100644 --- a/internal/services/mssql/parse/managed_instances_security_alert_policy_test.go +++ b/internal/services/mssql/parse/managed_instances_security_alert_policy_test.go @@ -27,7 +27,6 @@ func TestManagedInstancesSecurityAlertPolicyID(t *testing.T) { Error bool Expected *ManagedInstancesSecurityAlertPolicyId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/outbound_firewall_rule.go b/internal/services/mssql/parse/outbound_firewall_rule.go index dfd5012585e8..1a31e4296fb6 100644 --- a/internal/services/mssql/parse/outbound_firewall_rule.go +++ b/internal/services/mssql/parse/outbound_firewall_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func OutboundFirewallRuleID(input string) (*OutboundFirewallRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/outbound_firewall_rule_test.go b/internal/services/mssql/parse/outbound_firewall_rule_test.go index f9fefbd2b41f..9db1c9fb88b7 100644 --- a/internal/services/mssql/parse/outbound_firewall_rule_test.go +++ b/internal/services/mssql/parse/outbound_firewall_rule_test.go @@ -27,7 +27,6 @@ func TestOutboundFirewallRuleID(t *testing.T) { Error bool Expected *OutboundFirewallRuleId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/recoverable_database.go b/internal/services/mssql/parse/recoverable_database.go index 7b15636076fc..21fa14f6d296 100644 --- a/internal/services/mssql/parse/recoverable_database.go +++ b/internal/services/mssql/parse/recoverable_database.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func RecoverableDatabaseID(input string) (*RecoverableDatabaseId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/recoverable_database_test.go b/internal/services/mssql/parse/recoverable_database_test.go index b12c9ed582c3..9029444df8e5 100644 --- a/internal/services/mssql/parse/recoverable_database_test.go +++ b/internal/services/mssql/parse/recoverable_database_test.go @@ -27,7 +27,6 @@ func TestRecoverableDatabaseID(t *testing.T) { Error bool Expected *RecoverableDatabaseId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/server.go b/internal/services/mssql/parse/server.go index 29d28138b553..aa3988d14b24 100644 --- a/internal/services/mssql/parse/server.go +++ b/internal/services/mssql/parse/server.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ServerID(input string) (*ServerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/server_dns_alias.go b/internal/services/mssql/parse/server_dns_alias.go index 2eeadc81e92c..aa44d4f1913f 100644 --- a/internal/services/mssql/parse/server_dns_alias.go +++ b/internal/services/mssql/parse/server_dns_alias.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -35,7 +36,7 @@ func (id ServerDNSAliasId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Server D N S Alias", segmentsStr) + return fmt.Sprintf("%s: (%s)", "ServerDNS Alias", segmentsStr) } func (id ServerDNSAliasId) ID() string { @@ -56,11 +57,11 @@ func ServerDNSAliasID(input string) (*ServerDNSAliasId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/server_dns_alias_test.go b/internal/services/mssql/parse/server_dns_alias_test.go index 28c9a9b9c3fe..306d068db607 100644 --- a/internal/services/mssql/parse/server_dns_alias_test.go +++ b/internal/services/mssql/parse/server_dns_alias_test.go @@ -27,7 +27,6 @@ func TestServerDNSAliasID(t *testing.T) { Error bool Expected *ServerDNSAliasId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/server_extended_auditing_policy.go b/internal/services/mssql/parse/server_extended_auditing_policy.go index 77fc2f95cb0f..949d289b9fba 100644 --- a/internal/services/mssql/parse/server_extended_auditing_policy.go +++ b/internal/services/mssql/parse/server_extended_auditing_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ServerExtendedAuditingPolicyID(input string) (*ServerExtendedAuditingPolicy } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/server_extended_auditing_policy_test.go b/internal/services/mssql/parse/server_extended_auditing_policy_test.go index 3dd99c59ac1b..a7cc89648c06 100644 --- a/internal/services/mssql/parse/server_extended_auditing_policy_test.go +++ b/internal/services/mssql/parse/server_extended_auditing_policy_test.go @@ -27,7 +27,6 @@ func TestServerExtendedAuditingPolicyID(t *testing.T) { Error bool Expected *ServerExtendedAuditingPolicyId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/server_microsoft_support_auditing_policy.go b/internal/services/mssql/parse/server_microsoft_support_auditing_policy.go index 151731475ae6..543107e35e54 100644 --- a/internal/services/mssql/parse/server_microsoft_support_auditing_policy.go +++ b/internal/services/mssql/parse/server_microsoft_support_auditing_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ServerMicrosoftSupportAuditingPolicyID(input string) (*ServerMicrosoftSuppo } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/server_microsoft_support_auditing_policy_test.go b/internal/services/mssql/parse/server_microsoft_support_auditing_policy_test.go index 03d5231f8cf4..4bd84ef9b2be 100644 --- a/internal/services/mssql/parse/server_microsoft_support_auditing_policy_test.go +++ b/internal/services/mssql/parse/server_microsoft_support_auditing_policy_test.go @@ -27,7 +27,6 @@ func TestServerMicrosoftSupportAuditingPolicyID(t *testing.T) { Error bool Expected *ServerMicrosoftSupportAuditingPolicyId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/server_security_alert_policy.go b/internal/services/mssql/parse/server_security_alert_policy.go index d5fd699d28be..8e09c6a596dc 100644 --- a/internal/services/mssql/parse/server_security_alert_policy.go +++ b/internal/services/mssql/parse/server_security_alert_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ServerSecurityAlertPolicyID(input string) (*ServerSecurityAlertPolicyId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/server_security_alert_policy_test.go b/internal/services/mssql/parse/server_security_alert_policy_test.go index 8d2e7ecd1889..8f642c7bda22 100644 --- a/internal/services/mssql/parse/server_security_alert_policy_test.go +++ b/internal/services/mssql/parse/server_security_alert_policy_test.go @@ -27,7 +27,6 @@ func TestServerSecurityAlertPolicyID(t *testing.T) { Error bool Expected *ServerSecurityAlertPolicyId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/server_test.go b/internal/services/mssql/parse/server_test.go index 20536d69f560..3fc81e93735c 100644 --- a/internal/services/mssql/parse/server_test.go +++ b/internal/services/mssql/parse/server_test.go @@ -27,7 +27,6 @@ func TestServerID(t *testing.T) { Error bool Expected *ServerId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/server_vulnerability_assessment.go b/internal/services/mssql/parse/server_vulnerability_assessment.go index be825564fffa..9aae1b9b66a6 100644 --- a/internal/services/mssql/parse/server_vulnerability_assessment.go +++ b/internal/services/mssql/parse/server_vulnerability_assessment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ServerVulnerabilityAssessmentID(input string) (*ServerVulnerabilityAssessme } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/server_vulnerability_assessment_test.go b/internal/services/mssql/parse/server_vulnerability_assessment_test.go index 364a400c3c47..2bcd581c72e5 100644 --- a/internal/services/mssql/parse/server_vulnerability_assessment_test.go +++ b/internal/services/mssql/parse/server_vulnerability_assessment_test.go @@ -27,7 +27,6 @@ func TestServerVulnerabilityAssessmentID(t *testing.T) { Error bool Expected *ServerVulnerabilityAssessmentId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/sql_virtual_machine.go b/internal/services/mssql/parse/sql_virtual_machine.go index 496b7ea5990d..9fc8d3b8c74e 100644 --- a/internal/services/mssql/parse/sql_virtual_machine.go +++ b/internal/services/mssql/parse/sql_virtual_machine.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func SqlVirtualMachineID(input string) (*SqlVirtualMachineId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("sqlVirtualMachines"); err != nil { diff --git a/internal/services/mssql/parse/sql_virtual_machine_test.go b/internal/services/mssql/parse/sql_virtual_machine_test.go index 919024de1ee3..dc9b3fb0e72c 100644 --- a/internal/services/mssql/parse/sql_virtual_machine_test.go +++ b/internal/services/mssql/parse/sql_virtual_machine_test.go @@ -27,7 +27,6 @@ func TestSqlVirtualMachineID(t *testing.T) { Error bool Expected *SqlVirtualMachineId }{ - { // empty Input: "", diff --git a/internal/services/mssql/parse/virtual_network_rule.go b/internal/services/mssql/parse/virtual_network_rule.go index 688833f05938..05c6544a97dd 100644 --- a/internal/services/mssql/parse/virtual_network_rule.go +++ b/internal/services/mssql/parse/virtual_network_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func VirtualNetworkRuleID(input string) (*VirtualNetworkRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mssql/parse/virtual_network_rule_test.go b/internal/services/mssql/parse/virtual_network_rule_test.go index 343f88b87731..22cade76e2a6 100644 --- a/internal/services/mssql/parse/virtual_network_rule_test.go +++ b/internal/services/mssql/parse/virtual_network_rule_test.go @@ -27,7 +27,6 @@ func TestVirtualNetworkRuleID(t *testing.T) { Error bool Expected *VirtualNetworkRuleId }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/database_extended_auditing_policy_id_test.go b/internal/services/mssql/validate/database_extended_auditing_policy_id_test.go index 1ef42141bcca..46bd884cb092 100644 --- a/internal/services/mssql/validate/database_extended_auditing_policy_id_test.go +++ b/internal/services/mssql/validate/database_extended_auditing_policy_id_test.go @@ -12,7 +12,6 @@ func TestDatabaseExtendedAuditingPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/database_vulnerability_assessment_rule_baseline_id_test.go b/internal/services/mssql/validate/database_vulnerability_assessment_rule_baseline_id_test.go index a11d6de44912..80ac20e9f356 100644 --- a/internal/services/mssql/validate/database_vulnerability_assessment_rule_baseline_id_test.go +++ b/internal/services/mssql/validate/database_vulnerability_assessment_rule_baseline_id_test.go @@ -12,7 +12,6 @@ func TestDatabaseVulnerabilityAssessmentRuleBaselineID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/elastic_pool_id_test.go b/internal/services/mssql/validate/elastic_pool_id_test.go index 9e7839890eb5..0a507732b770 100644 --- a/internal/services/mssql/validate/elastic_pool_id_test.go +++ b/internal/services/mssql/validate/elastic_pool_id_test.go @@ -12,7 +12,6 @@ func TestElasticPoolID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/encryption_protector_id_test.go b/internal/services/mssql/validate/encryption_protector_id_test.go index fd6f336ec90a..35076ae8eade 100644 --- a/internal/services/mssql/validate/encryption_protector_id_test.go +++ b/internal/services/mssql/validate/encryption_protector_id_test.go @@ -12,7 +12,6 @@ func TestEncryptionProtectorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/failover_group_id_test.go b/internal/services/mssql/validate/failover_group_id_test.go index 467b12ca3f8a..818cfbf69af7 100644 --- a/internal/services/mssql/validate/failover_group_id_test.go +++ b/internal/services/mssql/validate/failover_group_id_test.go @@ -12,7 +12,6 @@ func TestFailoverGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/firewall_rule_id_test.go b/internal/services/mssql/validate/firewall_rule_id_test.go index 9c7b63808af2..b7a02683279d 100644 --- a/internal/services/mssql/validate/firewall_rule_id_test.go +++ b/internal/services/mssql/validate/firewall_rule_id_test.go @@ -12,7 +12,6 @@ func TestFirewallRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/job_agent_id_test.go b/internal/services/mssql/validate/job_agent_id_test.go index 412c0497819d..58e5e01a1af1 100644 --- a/internal/services/mssql/validate/job_agent_id_test.go +++ b/internal/services/mssql/validate/job_agent_id_test.go @@ -12,7 +12,6 @@ func TestJobAgentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/job_credential_id_test.go b/internal/services/mssql/validate/job_credential_id_test.go index 0c7954fca3f6..762f680cb415 100644 --- a/internal/services/mssql/validate/job_credential_id_test.go +++ b/internal/services/mssql/validate/job_credential_id_test.go @@ -12,7 +12,6 @@ func TestJobCredentialID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/managed_instances_security_alert_policy_id_test.go b/internal/services/mssql/validate/managed_instances_security_alert_policy_id_test.go index 562251908176..745287f57a5c 100644 --- a/internal/services/mssql/validate/managed_instances_security_alert_policy_id_test.go +++ b/internal/services/mssql/validate/managed_instances_security_alert_policy_id_test.go @@ -12,7 +12,6 @@ func TestManagedInstancesSecurityAlertPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/outbound_firewall_rule_id_test.go b/internal/services/mssql/validate/outbound_firewall_rule_id_test.go index e274bd24b35c..ba24ab5019c3 100644 --- a/internal/services/mssql/validate/outbound_firewall_rule_id_test.go +++ b/internal/services/mssql/validate/outbound_firewall_rule_id_test.go @@ -12,7 +12,6 @@ func TestOutboundFirewallRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/recoverable_database_id_test.go b/internal/services/mssql/validate/recoverable_database_id_test.go index 2a06a3b11466..ea37e639e7ed 100644 --- a/internal/services/mssql/validate/recoverable_database_id_test.go +++ b/internal/services/mssql/validate/recoverable_database_id_test.go @@ -12,7 +12,6 @@ func TestRecoverableDatabaseID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/server_dns_alias_id_test.go b/internal/services/mssql/validate/server_dns_alias_id_test.go index 6c0db91ec9ce..54e05c608a2a 100644 --- a/internal/services/mssql/validate/server_dns_alias_id_test.go +++ b/internal/services/mssql/validate/server_dns_alias_id_test.go @@ -12,7 +12,6 @@ func TestServerDNSAliasID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/server_extended_auditing_policy_id_test.go b/internal/services/mssql/validate/server_extended_auditing_policy_id_test.go index 3c07dcc15e64..85c220184a06 100644 --- a/internal/services/mssql/validate/server_extended_auditing_policy_id_test.go +++ b/internal/services/mssql/validate/server_extended_auditing_policy_id_test.go @@ -12,7 +12,6 @@ func TestServerExtendedAuditingPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/server_id_test.go b/internal/services/mssql/validate/server_id_test.go index 3d14027e5026..a55b58abfc17 100644 --- a/internal/services/mssql/validate/server_id_test.go +++ b/internal/services/mssql/validate/server_id_test.go @@ -12,7 +12,6 @@ func TestServerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/server_microsoft_support_auditing_policy_id_test.go b/internal/services/mssql/validate/server_microsoft_support_auditing_policy_id_test.go index e50f6eae32c9..b4dc94c3e5eb 100644 --- a/internal/services/mssql/validate/server_microsoft_support_auditing_policy_id_test.go +++ b/internal/services/mssql/validate/server_microsoft_support_auditing_policy_id_test.go @@ -12,7 +12,6 @@ func TestServerMicrosoftSupportAuditingPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/server_security_alert_policy_id_test.go b/internal/services/mssql/validate/server_security_alert_policy_id_test.go index e36ed134887f..d9ae1a32fdaa 100644 --- a/internal/services/mssql/validate/server_security_alert_policy_id_test.go +++ b/internal/services/mssql/validate/server_security_alert_policy_id_test.go @@ -12,7 +12,6 @@ func TestServerSecurityAlertPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/server_vulnerability_assessment_id_test.go b/internal/services/mssql/validate/server_vulnerability_assessment_id_test.go index 37eb7ea135b0..0827cb7b308e 100644 --- a/internal/services/mssql/validate/server_vulnerability_assessment_id_test.go +++ b/internal/services/mssql/validate/server_vulnerability_assessment_id_test.go @@ -12,7 +12,6 @@ func TestServerVulnerabilityAssessmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/sql_virtual_machine_id_test.go b/internal/services/mssql/validate/sql_virtual_machine_id_test.go index be382eac3a6f..f56c639b3766 100644 --- a/internal/services/mssql/validate/sql_virtual_machine_id_test.go +++ b/internal/services/mssql/validate/sql_virtual_machine_id_test.go @@ -12,7 +12,6 @@ func TestSqlVirtualMachineID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssql/validate/virtual_network_rule_id_test.go b/internal/services/mssql/validate/virtual_network_rule_id_test.go index 3ba31ab911a7..8b5e082bcb3d 100644 --- a/internal/services/mssql/validate/virtual_network_rule_id_test.go +++ b/internal/services/mssql/validate/virtual_network_rule_id_test.go @@ -12,7 +12,6 @@ func TestVirtualNetworkRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/client/client.go b/internal/services/mssqlmanagedinstance/client/client.go index fd10a31ac330..dce0f0881c1d 100644 --- a/internal/services/mssqlmanagedinstance/client/client.go +++ b/internal/services/mssqlmanagedinstance/client/client.go @@ -38,7 +38,6 @@ type Client struct { } func NewClient(o *common.ClientOptions) (*Client, error) { - managedDatabasesClient, err := manageddatabases.NewManagedDatabasesClientWithBaseURI(o.Environment.ResourceManager) if err != nil { return nil, fmt.Errorf("building Managed Databases Client: %+v", err) diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_database_resource.go b/internal/services/mssqlmanagedinstance/mssql_managed_database_resource.go index 6803b6fdc4b8..db8281276893 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_database_resource.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_database_resource.go @@ -16,10 +16,13 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies" "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + helperValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssql/helper" miParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssqlmanagedinstance/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssqlmanagedinstance/validate" + "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -31,6 +34,7 @@ type MsSqlManagedDatabaseModel struct { LongTermRetentionPolicy []LongTermRetentionPolicy `tfschema:"long_term_retention_policy"` ShortTermRetentionDays int64 `tfschema:"short_term_retention_days"` PointInTimeRestore []PointInTimeRestore `tfschema:"point_in_time_restore"` + Tags map[string]string `tfschema:"tags"` } type LongTermRetentionPolicy struct { @@ -45,8 +49,10 @@ type PointInTimeRestore struct { SourceDatabaseId string `tfschema:"source_database_id"` } -var _ sdk.Resource = MsSqlManagedDatabaseResource{} -var _ sdk.ResourceWithUpdate = MsSqlManagedDatabaseResource{} +var ( + _ sdk.Resource = MsSqlManagedDatabaseResource{} + _ sdk.ResourceWithUpdate = MsSqlManagedDatabaseResource{} +) type MsSqlManagedDatabaseResource struct{} @@ -63,7 +69,7 @@ func (r MsSqlManagedDatabaseResource) IDValidationFunc() pluginsdk.SchemaValidat } func (r MsSqlManagedDatabaseResource) Arguments() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ + resource := map[string]*pluginsdk.Schema{ "name": { Type: pluginsdk.TypeString, Required: true, @@ -110,7 +116,69 @@ func (r MsSqlManagedDatabaseResource) Arguments() map[string]*pluginsdk.Schema { }, }, }, + + "tags": tags.Schema(), + } + + if !features.FivePointOhBeta() { + atLeastOneOf := []string{ + "long_term_retention_policy.0.weekly_retention", "long_term_retention_policy.0.monthly_retention", + "long_term_retention_policy.0.yearly_retention", "long_term_retention_policy.0.week_of_year", + } + resource["long_term_retention_policy"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + // WeeklyRetention - The weekly retention policy for an LTR backup in an ISO 8601 format. + "weekly_retention": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: helperValidate.ISO8601Duration, + AtLeastOneOf: atLeastOneOf, + }, + + // MonthlyRetention - The monthly retention policy for an LTR backup in an ISO 8601 format. + "monthly_retention": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: helperValidate.ISO8601Duration, + AtLeastOneOf: atLeastOneOf, + }, + + // YearlyRetention - The yearly retention policy for an LTR backup in an ISO 8601 format. + "yearly_retention": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ValidateFunc: helperValidate.ISO8601Duration, + AtLeastOneOf: atLeastOneOf, + }, + + // WeekOfYear - The week of year to take the yearly backup in an ISO 8601 format. + "week_of_year": { + Type: pluginsdk.TypeInt, + Optional: true, + Computed: true, + ValidateFunc: validation.IntBetween(0, 52), + AtLeastOneOf: atLeastOneOf, + }, + + "immutable_backups_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + }, + }, + } } + + return resource } func (r MsSqlManagedDatabaseResource) Attributes() map[string]*pluginsdk.Schema { @@ -156,7 +224,8 @@ func (r MsSqlManagedDatabaseResource) Create() sdk.ResourceFunc { parameters := manageddatabases.ManagedDatabase{ Location: managedInstance.Model.Location, - Properties: &manageddatabases.ManagedDatabaseProperties{}, + Properties: pointer.To(manageddatabases.ManagedDatabaseProperties{}), + Tags: pointer.To(model.Tags), } if len(model.PointInTimeRestore) > 0 { @@ -164,8 +233,7 @@ func (r MsSqlManagedDatabaseResource) Create() sdk.ResourceFunc { parameters.Properties.CreateMode = pointer.To(manageddatabases.ManagedDatabaseCreateModePointInTimeRestore) parameters.Properties.RestorePointInTime = &restorePointInTime.RestorePointInTime - _, err := miParse.RestorableDroppedDatabaseID(restorePointInTime.SourceDatabaseId) - if err == nil { + if _, err := miParse.RestorableDroppedDatabaseID(restorePointInTime.SourceDatabaseId); err == nil { parameters.Properties.RestorableDroppedDatabaseId = pointer.To(restorePointInTime.SourceDatabaseId) } else { parameters.Properties.SourceDatabaseId = pointer.To(restorePointInTime.SourceDatabaseId) @@ -180,10 +248,8 @@ func (r MsSqlManagedDatabaseResource) Create() sdk.ResourceFunc { } if len(model.LongTermRetentionPolicy) > 0 { - longTermRetentionProps := expandLongTermRetentionPolicy(model.LongTermRetentionPolicy) - longTermRetentionPolicy := managedinstancelongtermretentionpolicies.ManagedInstanceLongTermRetentionPolicy{ - Properties: &longTermRetentionProps, + Properties: pointer.To(expandLongTermRetentionPolicy(model.LongTermRetentionPolicy)), } err := longTermRetentionClient.CreateOrUpdateThenPoll(ctx, id, longTermRetentionPolicy) @@ -193,7 +259,6 @@ func (r MsSqlManagedDatabaseResource) Create() sdk.ResourceFunc { } if model.ShortTermRetentionDays > 0 { - shortTermRetentionPolicy := managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicy{ Properties: &managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicyProperties{ RetentionDays: pointer.To(model.ShortTermRetentionDays), @@ -215,6 +280,8 @@ func (r MsSqlManagedDatabaseResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.MSSQLManagedInstance.ManagedDatabasesClient + instancesClient := metadata.Client.MSSQLManagedInstance.ManagedInstancesClient longTermRetentionClient := metadata.Client.MSSQLManagedInstance.ManagedInstancesLongTermRetentionPoliciesClient shortTermRetentionClient := metadata.Client.MSSQLManagedInstance.ManagedInstancesShortTermRetentionPoliciesClient @@ -233,11 +300,26 @@ func (r MsSqlManagedDatabaseResource) Update() sdk.ResourceFunc { d := metadata.ResourceData - if d.HasChange("long_term_retention_policy") { - longTermRetentionProps := expandLongTermRetentionPolicy(model.LongTermRetentionPolicy) + if d.HasChange("tags") { + managedInstance, err := instancesClient.Get(ctx, *managedInstanceId, managedinstances.GetOperationOptions{}) + if err != nil || managedInstance.Model == nil || managedInstance.Model.Location == "" { + return fmt.Errorf("checking for existence and region of Managed Instance for %s: %+v", id, err) + } + parameters := manageddatabases.ManagedDatabase{ + Location: managedInstance.Model.Location, + Tags: pointer.To(model.Tags), + } + + err = client.CreateOrUpdateThenPoll(ctx, id, parameters) + if err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + } + + if d.HasChange("long_term_retention_policy") { longTermRetentionPolicy := managedinstancelongtermretentionpolicies.ManagedInstanceLongTermRetentionPolicy{ - Properties: &longTermRetentionProps, + Properties: pointer.To(expandLongTermRetentionPolicy(model.LongTermRetentionPolicy)), } err := longTermRetentionClient.CreateOrUpdateThenPoll(ctx, id, longTermRetentionPolicy) @@ -247,7 +329,6 @@ func (r MsSqlManagedDatabaseResource) Update() sdk.ResourceFunc { } if d.HasChange("short_term_retention_days") { - shortTermRetentionPolicy := managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicy{ Properties: &managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicyProperties{ RetentionDays: pointer.To(model.ShortTermRetentionDays), @@ -319,6 +400,8 @@ func (r MsSqlManagedDatabaseResource) Read() sdk.ResourceFunc { model.PointInTimeRestore = flattenManagedDatabasePointInTimeRestore(v) } + model.Tags = pointer.From(result.Model.Tags) + return metadata.Encode(&model) }, } @@ -359,7 +442,6 @@ func expandLongTermRetentionPolicy(ltrPolicy []LongTermRetentionPolicy) managedi } func flattenLongTermRetentionPolicy(ltrPolicy managedinstancelongtermretentionpolicies.ManagedInstanceLongTermRetentionPolicyProperties) []LongTermRetentionPolicy { - ltrModel := LongTermRetentionPolicy{ WeeklyRetention: pointer.From(ltrPolicy.WeeklyRetention), MonthlyRetention: pointer.From(ltrPolicy.MonthlyRetention), diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_database_resource_test.go b/internal/services/mssqlmanagedinstance/mssql_managed_database_resource_test.go index f2b0739ac601..41cecfbdac5f 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_database_resource_test.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_database_resource_test.go @@ -34,6 +34,50 @@ func TestAccMsSqlManagedDatabase_basic(t *testing.T) { }) } +func TestAccMsSqlManagedDatabase_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_mssql_managed_database", "test") + r := MsSqlManagedDatabase{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(""), + }) +} + +func TestAccMsSqlManagedDatabase_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_mssql_managed_database", "test") + r := MsSqlManagedDatabase{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(""), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(""), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(""), + }) +} + func TestAccMsSqlManagedDatabase_withRetentionPolicies(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_mssql_managed_database", "test") r := MsSqlManagedDatabase{} @@ -103,6 +147,18 @@ resource "azurerm_mssql_managed_database" "test" { `, MsSqlManagedInstanceResource{}.basic(data), data.RandomInteger) } +func (r MsSqlManagedDatabase) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +%[1]s + +resource "azurerm_mssql_managed_database" "test" { + managed_instance_id = azurerm_mssql_managed_instance.test.id + name = "acctest-%[2]d" + tags = { Environment = "Testing" } +} +`, MsSqlManagedInstanceResource{}.basic(data), data.RandomInteger) +} + func (r MsSqlManagedDatabase) withRetentionPolicies(data acceptance.TestData) string { return fmt.Sprintf(` %[1]s diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_active_directory_administrator_resource.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_active_directory_administrator_resource.go index edad0b292045..69cbfa68ab1e 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_active_directory_administrator_resource.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_active_directory_administrator_resource.go @@ -29,8 +29,10 @@ type MsSqlManagedInstanceActiveDirectoryAdministratorModel struct { TenantId string `tfschema:"tenant_id"` } -var _ sdk.Resource = MsSqlManagedInstanceActiveDirectoryAdministratorResource{} -var _ sdk.ResourceWithUpdate = MsSqlManagedInstanceActiveDirectoryAdministratorResource{} +var ( + _ sdk.Resource = MsSqlManagedInstanceActiveDirectoryAdministratorResource{} + _ sdk.ResourceWithUpdate = MsSqlManagedInstanceActiveDirectoryAdministratorResource{} +) type MsSqlManagedInstanceActiveDirectoryAdministratorResource struct{} @@ -237,12 +239,10 @@ func (r MsSqlManagedInstanceActiveDirectoryAdministratorResource) Read() sdk.Res } if result.Model != nil { - if props := result.Model.Properties; props != nil { model.LoginUsername = props.Login model.ObjectId = props.Sid model.TenantId = pointer.From(props.TenantId) - } } diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_data_source.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_data_source.go index 23e6de1799f9..2180fe65b39e 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_data_source.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_data_source.go @@ -215,7 +215,6 @@ func (d MsSqlManagedInstanceDataSource) Read() sdk.ResourceFunc { model.SubnetId = pointer.From(props.SubnetId) model.TimezoneId = pointer.From(props.TimezoneId) model.VCores = pointer.From(props.VCores) - } metadata.SetID(id) @@ -229,7 +228,7 @@ func (d MsSqlManagedInstanceDataSource) flattenIdentity(input *identity.LegacySy return nil } - var identityIds = make([]string, 0) + identityIds := make([]string, 0) for k := range input.IdentityIds { parsedId, err := commonids.ParseUserAssignedIdentityIDInsensitively(k) if err != nil { diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_failover_group_resource.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_failover_group_resource.go index 8c0054e9731e..12708bf129cb 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_failover_group_resource.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_failover_group_resource.go @@ -45,8 +45,10 @@ type MsSqlManagedInstancePartnerRegionModel struct { Role string `tfschema:"role"` } -var _ sdk.Resource = MsSqlManagedInstanceFailoverGroupResource{} -var _ sdk.ResourceWithUpdate = MsSqlManagedInstanceFailoverGroupResource{} +var ( + _ sdk.Resource = MsSqlManagedInstanceFailoverGroupResource{} + _ sdk.ResourceWithUpdate = MsSqlManagedInstanceFailoverGroupResource{} +) type MsSqlManagedInstanceFailoverGroupResource struct{} diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_resource.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_resource.go index 258f43832dca..792db2b98d45 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_resource.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_resource.go @@ -60,9 +60,11 @@ type MsSqlManagedInstanceModel struct { Tags map[string]string `tfschema:"tags"` } -var _ sdk.Resource = MsSqlManagedInstanceResource{} -var _ sdk.ResourceWithUpdate = MsSqlManagedInstanceResource{} -var _ sdk.ResourceWithCustomizeDiff = MsSqlManagedInstanceResource{} +var ( + _ sdk.Resource = MsSqlManagedInstanceResource{} + _ sdk.ResourceWithUpdate = MsSqlManagedInstanceResource{} + _ sdk.ResourceWithCustomizeDiff = MsSqlManagedInstanceResource{} +) type MsSqlManagedInstanceResource struct{} @@ -232,7 +234,6 @@ func (r MsSqlManagedInstanceResource) Arguments() map[string]*pluginsdk.Schema { "storage_account_type": { Type: pluginsdk.TypeString, Optional: true, - ForceNew: true, Default: StorageAccountTypeGRS, ValidateFunc: validation.StringInSlice([]string{ StorageAccountTypeGRS, @@ -408,14 +409,15 @@ func (r MsSqlManagedInstanceResource) Update() sdk.ResourceFunc { Identity: r.expandIdentity(state.Identity), Location: location.Normalize(state.Location), Properties: &managedinstances.ManagedInstanceProperties{ - DnsZonePartner: pointer.To(state.DnsZonePartnerId), - LicenseType: pointer.To(managedinstances.ManagedInstanceLicenseType(state.LicenseType)), - MinimalTlsVersion: pointer.To(state.MinimumTlsVersion), - ProxyOverride: pointer.To(managedinstances.ManagedInstanceProxyOverride(state.ProxyOverride)), - PublicDataEndpointEnabled: pointer.To(state.PublicDataEndpointEnabled), - StorageSizeInGB: pointer.To(state.StorageSizeInGb), - VCores: pointer.To(state.VCores), - ZoneRedundant: pointer.To(state.ZoneRedundantEnabled), + DnsZonePartner: pointer.To(state.DnsZonePartnerId), + LicenseType: pointer.To(managedinstances.ManagedInstanceLicenseType(state.LicenseType)), + MinimalTlsVersion: pointer.To(state.MinimumTlsVersion), + ProxyOverride: pointer.To(managedinstances.ManagedInstanceProxyOverride(state.ProxyOverride)), + PublicDataEndpointEnabled: pointer.To(state.PublicDataEndpointEnabled), + StorageSizeInGB: pointer.To(state.StorageSizeInGb), + RequestedBackupStorageRedundancy: pointer.To(storageAccTypeToBackupStorageRedundancy(state.StorageAccountType)), + VCores: pointer.To(state.VCores), + ZoneRedundant: pointer.To(state.ZoneRedundantEnabled), }, Tags: pointer.To(state.Tags), } @@ -484,7 +486,6 @@ func (r MsSqlManagedInstanceResource) Read() sdk.ResourceFunc { model := MsSqlManagedInstanceModel{} if existing.Model != nil { - model = MsSqlManagedInstanceModel{ Name: id.ManagedInstanceName, Location: location.NormalizeNilable(&existing.Model.Location), @@ -589,7 +590,7 @@ func (r MsSqlManagedInstanceResource) flattenIdentity(input *identity.LegacySyst return nil } - var identityIds = make([]string, 0) + identityIds := make([]string, 0) for k := range input.IdentityIds { parsedId, err := commonids.ParseUserAssignedIdentityIDInsensitively(k) if err != nil { diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_resource_test.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_resource_test.go index 2d420042cd9d..77153983e15e 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_resource_test.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_resource_test.go @@ -272,6 +272,28 @@ func TestAccMsSqlManagedInstance_withServicePrincipal(t *testing.T) { }) } +func TestAccMsSqlManagedInstance_backupRedundancyUpdated(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_mssql_managed_instance", "test") + r := MsSqlManagedInstanceResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.storageType(data, "GRS"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("administrator_login_password"), + { + Config: r.storageType(data, "GZRS"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep("administrator_login_password"), + }) +} + func (r MsSqlManagedInstanceResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := commonids.ParseSqlManagedInstanceID(state.ID) if err != nil { diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_security_alert_policy_resource.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_security_alert_policy_resource.go index 0b16c60d4073..badadb073910 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_security_alert_policy_resource.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_security_alert_policy_resource.go @@ -269,7 +269,6 @@ func resourceMsSqlManagedInstanceSecurityAlertPolicyRead(d *pluginsdk.ResourceDa d.Set("managed_instance_name", id.ManagedInstanceName) if result.Model != nil { - if props := result.Model.Properties; props != nil { d.Set("enabled", props.State == managedserversecurityalertpolicies.SecurityAlertsPolicyStateEnabled) diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_transparent_data_encryption_resource.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_transparent_data_encryption_resource.go index 5ba21d6b501d..eeb19b5c4bbd 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_transparent_data_encryption_resource.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_transparent_data_encryption_resource.go @@ -150,7 +150,6 @@ func resourceMsSqlManagedInstanceTransparentDataEncryptionCreateUpdate(d *plugin if err != nil { return fmt.Errorf("creating/updating managed instance key for %s: %+v", managedInstanceId, err) } - } encryptionProtectorObject := managedinstanceencryptionprotectors.ManagedInstanceEncryptionProtector{ @@ -195,7 +194,6 @@ func resourceMsSqlManagedInstanceTransparentDataEncryptionRead(d *pluginsdk.Reso d.Set("managed_instance_id", managedInstanceId.ID()) if resp.Model != nil && resp.Model.Properties != nil { - log.Printf("[INFO] Encryption protector key type is %s", resp.Model.Properties.ServerKeyType) keyVaultKeyId := "" @@ -245,7 +243,6 @@ func resourceMsSqlManagedInstanceTransparentDataEncryptionDelete(d *pluginsdk.Re // Service managed doesn't require a key name encryptionProtector := managedinstanceencryptionprotectors.ManagedInstanceEncryptionProtector{ - Properties: &managedinstanceencryptionprotectors.ManagedInstanceEncryptionProtectorProperties{ ServerKeyType: managedinstanceencryptionprotectors.ServerKeyTypeServiceManaged, ServerKeyName: &managedInstanceKeyName, diff --git a/internal/services/mssqlmanagedinstance/mssql_managed_instance_transparent_data_encryption_resource_test.go b/internal/services/mssqlmanagedinstance/mssql_managed_instance_transparent_data_encryption_resource_test.go index f06acf247533..bb2618512f21 100644 --- a/internal/services/mssqlmanagedinstance/mssql_managed_instance_transparent_data_encryption_resource_test.go +++ b/internal/services/mssqlmanagedinstance/mssql_managed_instance_transparent_data_encryption_resource_test.go @@ -105,6 +105,7 @@ func TestAccMsSqlManagedInstanceTransparentDataEncryption_update(t *testing.T) { data.ImportStep(), }) } + func (MsSqlManagedInstanceTransparentDataEncryptionResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := parse.ManagedInstanceEncryptionProtectorID(state.ID) if err != nil { diff --git a/internal/services/mssqlmanagedinstance/parse/managed_database.go b/internal/services/mssqlmanagedinstance/parse/managed_database.go index eabe653dd054..99a307a5cab4 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_database.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_database.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ManagedDatabaseID(input string) (*ManagedDatabaseId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ManagedInstanceName, err = id.PopSegment("managedInstances"); err != nil { diff --git a/internal/services/mssqlmanagedinstance/parse/managed_database_test.go b/internal/services/mssqlmanagedinstance/parse/managed_database_test.go index fe25cd482672..bfccf6ba86d2 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_database_test.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_database_test.go @@ -27,7 +27,6 @@ func TestManagedDatabaseID(t *testing.T) { Error bool Expected *ManagedDatabaseId }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance.go b/internal/services/mssqlmanagedinstance/parse/managed_instance.go index a6d53194d13b..6c836a0a71b5 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ManagedInstanceID(input string) (*ManagedInstanceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("managedInstances"); err != nil { @@ -89,11 +90,11 @@ func ManagedInstanceIDInsensitively(input string) (*ManagedInstanceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'managedInstances' segment diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_azure_active_directory_administrator.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_azure_active_directory_administrator.go index 4a56ddce17af..7c41a6bddbba 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_azure_active_directory_administrator.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_azure_active_directory_administrator.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ManagedInstanceAzureActiveDirectoryAdministratorID(input string) (*ManagedI } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ManagedInstanceName, err = id.PopSegment("managedInstances"); err != nil { diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_azure_active_directory_administrator_test.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_azure_active_directory_administrator_test.go index 7fcaa80ad99e..69933450dee7 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_azure_active_directory_administrator_test.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_azure_active_directory_administrator_test.go @@ -27,7 +27,6 @@ func TestManagedInstanceAzureActiveDirectoryAdministratorID(t *testing.T) { Error bool Expected *ManagedInstanceAzureActiveDirectoryAdministratorId }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_encryption_protector.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_encryption_protector.go index debb9253aa3f..434f924aeeaa 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_encryption_protector.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_encryption_protector.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ManagedInstanceEncryptionProtectorID(input string) (*ManagedInstanceEncrypt } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ManagedInstanceName, err = id.PopSegment("managedInstances"); err != nil { diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_encryption_protector_test.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_encryption_protector_test.go index 8f68a7bf1a62..053fc3f99f85 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_encryption_protector_test.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_encryption_protector_test.go @@ -27,7 +27,6 @@ func TestManagedInstanceEncryptionProtectorID(t *testing.T) { Error bool Expected *ManagedInstanceEncryptionProtectorId }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_failover_group.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_failover_group.go index b151992b5e3a..df96d18bcc35 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_failover_group.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_failover_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ManagedInstanceFailoverGroupID(input string) (*ManagedInstanceFailoverGroup } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.LocationName, err = id.PopSegment("locations"); err != nil { diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_failover_group_test.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_failover_group_test.go index 6a82c8db0863..8af6a02ca20c 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_failover_group_test.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_failover_group_test.go @@ -27,7 +27,6 @@ func TestManagedInstanceFailoverGroupID(t *testing.T) { Error bool Expected *ManagedInstanceFailoverGroupId }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_test.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_test.go index ff0f442fdd57..bc3ad7658ca1 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_test.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_test.go @@ -27,7 +27,6 @@ func TestManagedInstanceID(t *testing.T) { Error bool Expected *ManagedInstanceId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestManagedInstanceIDInsensitively(t *testing.T) { Error bool Expected *ManagedInstanceId }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_vulnerability_assessment.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_vulnerability_assessment.go index a4eb8993ed90..5e4fd6b22b74 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_vulnerability_assessment.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_vulnerability_assessment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ManagedInstanceVulnerabilityAssessmentID(input string) (*ManagedInstanceVul } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ManagedInstanceName, err = id.PopSegment("managedInstances"); err != nil { diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instance_vulnerability_assessment_test.go b/internal/services/mssqlmanagedinstance/parse/managed_instance_vulnerability_assessment_test.go index 6697de16db33..df9e2a62100a 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instance_vulnerability_assessment_test.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instance_vulnerability_assessment_test.go @@ -27,7 +27,6 @@ func TestManagedInstanceVulnerabilityAssessmentID(t *testing.T) { Error bool Expected *ManagedInstanceVulnerabilityAssessmentId }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instances_security_alert_policy.go b/internal/services/mssqlmanagedinstance/parse/managed_instances_security_alert_policy.go index 328f443aba86..996d472ceaee 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instances_security_alert_policy.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instances_security_alert_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ManagedInstancesSecurityAlertPolicyID(input string) (*ManagedInstancesSecur } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ManagedInstanceName, err = id.PopSegment("managedInstances"); err != nil { diff --git a/internal/services/mssqlmanagedinstance/parse/managed_instances_security_alert_policy_test.go b/internal/services/mssqlmanagedinstance/parse/managed_instances_security_alert_policy_test.go index d5e6e2c0d08b..e29f07f4c58f 100644 --- a/internal/services/mssqlmanagedinstance/parse/managed_instances_security_alert_policy_test.go +++ b/internal/services/mssqlmanagedinstance/parse/managed_instances_security_alert_policy_test.go @@ -27,7 +27,6 @@ func TestManagedInstancesSecurityAlertPolicyID(t *testing.T) { Error bool Expected *ManagedInstancesSecurityAlertPolicyId }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/validate/managed_database_id_test.go b/internal/services/mssqlmanagedinstance/validate/managed_database_id_test.go index e97ff084fd5e..8125ebc4071d 100644 --- a/internal/services/mssqlmanagedinstance/validate/managed_database_id_test.go +++ b/internal/services/mssqlmanagedinstance/validate/managed_database_id_test.go @@ -12,7 +12,6 @@ func TestManagedDatabaseID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/validate/managed_instance_azure_active_directory_administrator_id_test.go b/internal/services/mssqlmanagedinstance/validate/managed_instance_azure_active_directory_administrator_id_test.go index 1282bfd19909..33585eb26a0f 100644 --- a/internal/services/mssqlmanagedinstance/validate/managed_instance_azure_active_directory_administrator_id_test.go +++ b/internal/services/mssqlmanagedinstance/validate/managed_instance_azure_active_directory_administrator_id_test.go @@ -12,7 +12,6 @@ func TestManagedInstanceAzureActiveDirectoryAdministratorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/validate/managed_instance_encryption_protector_id_test.go b/internal/services/mssqlmanagedinstance/validate/managed_instance_encryption_protector_id_test.go index 81ec79f0abe3..961dfbf3f40e 100644 --- a/internal/services/mssqlmanagedinstance/validate/managed_instance_encryption_protector_id_test.go +++ b/internal/services/mssqlmanagedinstance/validate/managed_instance_encryption_protector_id_test.go @@ -12,7 +12,6 @@ func TestManagedInstanceEncryptionProtectorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/validate/managed_instance_failover_group_id_test.go b/internal/services/mssqlmanagedinstance/validate/managed_instance_failover_group_id_test.go index 80ecfcd5c4bd..b36b0aa89979 100644 --- a/internal/services/mssqlmanagedinstance/validate/managed_instance_failover_group_id_test.go +++ b/internal/services/mssqlmanagedinstance/validate/managed_instance_failover_group_id_test.go @@ -12,7 +12,6 @@ func TestManagedInstanceFailoverGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/validate/managed_instance_id_test.go b/internal/services/mssqlmanagedinstance/validate/managed_instance_id_test.go index 164095872ec9..cde1dc01caea 100644 --- a/internal/services/mssqlmanagedinstance/validate/managed_instance_id_test.go +++ b/internal/services/mssqlmanagedinstance/validate/managed_instance_id_test.go @@ -12,7 +12,6 @@ func TestManagedInstanceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/validate/managed_instance_vulnerability_assessment_id_test.go b/internal/services/mssqlmanagedinstance/validate/managed_instance_vulnerability_assessment_id_test.go index 723fe0fb6dec..c00f5441b171 100644 --- a/internal/services/mssqlmanagedinstance/validate/managed_instance_vulnerability_assessment_id_test.go +++ b/internal/services/mssqlmanagedinstance/validate/managed_instance_vulnerability_assessment_id_test.go @@ -12,7 +12,6 @@ func TestManagedInstanceVulnerabilityAssessmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mssqlmanagedinstance/validate/managed_instances_security_alert_policy_id_test.go b/internal/services/mssqlmanagedinstance/validate/managed_instances_security_alert_policy_id_test.go index 562251908176..745287f57a5c 100644 --- a/internal/services/mssqlmanagedinstance/validate/managed_instances_security_alert_policy_id_test.go +++ b/internal/services/mssqlmanagedinstance/validate/managed_instances_security_alert_policy_id_test.go @@ -12,7 +12,6 @@ func TestManagedInstancesSecurityAlertPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mysql/client/client.go b/internal/services/mysql/client/client.go index 1a16b6afa4d2..fdc91c228fac 100644 --- a/internal/services/mysql/client/client.go +++ b/internal/services/mysql/client/client.go @@ -6,22 +6,22 @@ package client import ( "fmt" - flexibleServers_v2022_01_01 "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators" + flexibleServers_v2023_12_30 "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) type Client struct { - FlexibleServers *flexibleServers_v2022_01_01.Client + FlexibleServers *flexibleServers_v2023_12_30.Client // TODO: port over to using the Meta Client (which involves bumping the API Version) AzureADAdministratorsClient *azureadadministrators.AzureADAdministratorsClient } func NewClient(o *common.ClientOptions) (*Client, error) { - flexibleServersMetaClient, err := flexibleServers_v2022_01_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { + flexibleServersMetaClient, err := flexibleServers_v2023_12_30.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) if err != nil { diff --git a/internal/services/mysql/mysql_flexible_database_resource.go b/internal/services/mysql/mysql_flexible_database_resource.go index 7bfbc55adaf1..dac5036c03ea 100644 --- a/internal/services/mysql/mysql_flexible_database_resource.go +++ b/internal/services/mysql/mysql_flexible_database_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mysql/validate" diff --git a/internal/services/mysql/mysql_flexible_database_resource_test.go b/internal/services/mysql/mysql_flexible_database_resource_test.go index 03a8b3fd5861..500dfa6ca9ce 100644 --- a/internal/services/mysql/mysql_flexible_database_resource_test.go +++ b/internal/services/mysql/mysql_flexible_database_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/mysql/mysql_flexible_server_aad_administrator_resource.go b/internal/services/mysql/mysql_flexible_server_aad_administrator_resource.go index db83406d8475..bd34de5fc0ae 100644 --- a/internal/services/mysql/mysql_flexible_server_aad_administrator_resource.go +++ b/internal/services/mysql/mysql_flexible_server_aad_administrator_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mysql/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mysql/validate" diff --git a/internal/services/mysql/mysql_flexible_server_aad_administrator_resource_test.go b/internal/services/mysql/mysql_flexible_server_aad_administrator_resource_test.go index 78791ee3449f..d12b0b7ae9fc 100644 --- a/internal/services/mysql/mysql_flexible_server_aad_administrator_resource_test.go +++ b/internal/services/mysql/mysql_flexible_server_aad_administrator_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/mysql/mysql_flexible_server_configuration_resource.go b/internal/services/mysql/mysql_flexible_server_configuration_resource.go index b41eb751d10e..75e1b48e2e6b 100644 --- a/internal/services/mysql/mysql_flexible_server_configuration_resource.go +++ b/internal/services/mysql/mysql_flexible_server_configuration_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mysql/validate" diff --git a/internal/services/mysql/mysql_flexible_server_configuration_resource_test.go b/internal/services/mysql/mysql_flexible_server_configuration_resource_test.go index c8a20487dcba..8d06cfca5916 100644 --- a/internal/services/mysql/mysql_flexible_server_configuration_resource_test.go +++ b/internal/services/mysql/mysql_flexible_server_configuration_resource_test.go @@ -10,8 +10,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/mysql/mysql_flexible_server_data_source.go b/internal/services/mysql/mysql_flexible_server_data_source.go index 2bbeb2e7eec1..f5b8aa8f1138 100644 --- a/internal/services/mysql/mysql_flexible_server_data_source.go +++ b/internal/services/mysql/mysql_flexible_server_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/mysql/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -264,18 +264,18 @@ func flattenDataSourceArmServerStorage(storage *servers.Storage) []interface{} { } } -func flattenDataSourceFlexibleServerSku(sku *servers.Sku) (string, error) { +func flattenDataSourceFlexibleServerSku(sku *servers.MySQLServerSku) (string, error) { if sku == nil || sku.Name == "" || sku.Tier == "" { return "", nil } var tier string switch sku.Tier { - case servers.SkuTierBurstable: + case servers.ServerSkuTierBurstable: tier = "B" - case servers.SkuTierGeneralPurpose: + case servers.ServerSkuTierGeneralPurpose: tier = "GP" - case servers.SkuTierMemoryOptimized: + case servers.ServerSkuTierMemoryOptimized: tier = "MO" default: return "", fmt.Errorf("sku_name has unknown sku tier %s", sku.Tier) diff --git a/internal/services/mysql/mysql_flexible_server_firewall_rule_resource.go b/internal/services/mysql/mysql_flexible_server_firewall_rule_resource.go index 26f14891a88c..fdcc8a1cb51a 100644 --- a/internal/services/mysql/mysql_flexible_server_firewall_rule_resource.go +++ b/internal/services/mysql/mysql_flexible_server_firewall_rule_resource.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" azValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/mysql/mysql_flexible_server_firewall_rule_resource_test.go b/internal/services/mysql/mysql_flexible_server_firewall_rule_resource_test.go index afee7905c39b..5b36f3fe7826 100644 --- a/internal/services/mysql/mysql_flexible_server_firewall_rule_resource_test.go +++ b/internal/services/mysql/mysql_flexible_server_firewall_rule_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/mysql/mysql_flexible_server_resource.go b/internal/services/mysql/mysql_flexible_server_resource.go index 63571300f0db..76117a579afd 100644 --- a/internal/services/mysql/mysql_flexible_server_resource.go +++ b/internal/services/mysql/mysql_flexible_server_resource.go @@ -17,8 +17,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -847,42 +847,42 @@ func expandArmServerBackup(d *pluginsdk.ResourceData) *servers.Backup { return &backup } -func expandFlexibleServerSku(name string) (*servers.Sku, error) { +func expandFlexibleServerSku(name string) (*servers.MySQLServerSku, error) { if name == "" { return nil, nil } parts := strings.SplitAfterN(name, "_", 2) - var tier servers.SkuTier + var tier servers.ServerSkuTier switch strings.TrimSuffix(parts[0], "_") { case "B": - tier = servers.SkuTierBurstable + tier = servers.ServerSkuTierBurstable case "GP": - tier = servers.SkuTierGeneralPurpose + tier = servers.ServerSkuTierGeneralPurpose case "MO": - tier = servers.SkuTierMemoryOptimized + tier = servers.ServerSkuTierMemoryOptimized default: return nil, fmt.Errorf("sku_name %s has unknown sku tier %s", name, parts[0]) } - return &servers.Sku{ + return &servers.MySQLServerSku{ Name: parts[1], Tier: tier, }, nil } -func flattenFlexibleServerSku(sku *servers.Sku) (string, error) { +func flattenFlexibleServerSku(sku *servers.MySQLServerSku) (string, error) { if sku == nil || sku.Name == "" || sku.Tier == "" { return "", nil } var tier string switch sku.Tier { - case servers.SkuTierBurstable: + case servers.ServerSkuTierBurstable: tier = "B" - case servers.SkuTierGeneralPurpose: + case servers.ServerSkuTierGeneralPurpose: tier = "GP" - case servers.SkuTierMemoryOptimized: + case servers.ServerSkuTierMemoryOptimized: tier = "MO" default: return "", fmt.Errorf("sku_name has unknown sku tier %s", sku.Tier) @@ -1028,14 +1028,14 @@ func flattenFlexibleServerDataEncryption(de *servers.DataEncryption) ([]interfac return []interface{}{item}, nil } -func expandFlexibleServerIdentity(input []interface{}) (*servers.Identity, error) { +func expandFlexibleServerIdentity(input []interface{}) (*servers.MySQLServerIdentity, error) { expanded, err := identity.ExpandUserAssignedMap(input) if err != nil { return nil, err } identityType := servers.ManagedServiceIdentityType(string(expanded.Type)) - out := servers.Identity{ + out := servers.MySQLServerIdentity{ Type: &identityType, } if expanded.Type == identity.TypeUserAssigned { @@ -1049,7 +1049,7 @@ func expandFlexibleServerIdentity(input []interface{}) (*servers.Identity, error return &out, nil } -func flattenFlexibleServerIdentity(input *servers.Identity) (*[]interface{}, error) { +func flattenFlexibleServerIdentity(input *servers.MySQLServerIdentity) (*[]interface{}, error) { var transform *identity.UserAssignedMap if input != nil { diff --git a/internal/services/mysql/mysql_flexible_server_resource_test.go b/internal/services/mysql/mysql_flexible_server_resource_test.go index 9f0d095ccb04..af3fcddfa6fd 100644 --- a/internal/services/mysql/mysql_flexible_server_resource_test.go +++ b/internal/services/mysql/mysql_flexible_server_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/mysql/parse/azure_active_directory_administrator.go b/internal/services/mysql/parse/azure_active_directory_administrator.go index a239c74571a8..9e85fe2ccf0b 100644 --- a/internal/services/mysql/parse/azure_active_directory_administrator.go +++ b/internal/services/mysql/parse/azure_active_directory_administrator.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func AzureActiveDirectoryAdministratorID(input string) (*AzureActiveDirectoryAdm } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerName, err = id.PopSegment("servers"); err != nil { diff --git a/internal/services/mysql/parse/azure_active_directory_administrator_test.go b/internal/services/mysql/parse/azure_active_directory_administrator_test.go index 84d9a0d7facf..634985167237 100644 --- a/internal/services/mysql/parse/azure_active_directory_administrator_test.go +++ b/internal/services/mysql/parse/azure_active_directory_administrator_test.go @@ -27,7 +27,6 @@ func TestAzureActiveDirectoryAdministratorID(t *testing.T) { Error bool Expected *AzureActiveDirectoryAdministratorId }{ - { // empty Input: "", diff --git a/internal/services/mysql/parse/flexible_server_azure_active_directory_administrator.go b/internal/services/mysql/parse/flexible_server_azure_active_directory_administrator.go index 51b1afe16cb4..68bdf7dbd91d 100644 --- a/internal/services/mysql/parse/flexible_server_azure_active_directory_administrator.go +++ b/internal/services/mysql/parse/flexible_server_azure_active_directory_administrator.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FlexibleServerAzureActiveDirectoryAdministratorID(input string) (*FlexibleS } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.FlexibleServerName, err = id.PopSegment("flexibleServers"); err != nil { diff --git a/internal/services/mysql/parse/flexible_server_azure_active_directory_administrator_test.go b/internal/services/mysql/parse/flexible_server_azure_active_directory_administrator_test.go index 94043d02a6a4..968bc584a24f 100644 --- a/internal/services/mysql/parse/flexible_server_azure_active_directory_administrator_test.go +++ b/internal/services/mysql/parse/flexible_server_azure_active_directory_administrator_test.go @@ -27,7 +27,6 @@ func TestFlexibleServerAzureActiveDirectoryAdministratorID(t *testing.T) { Error bool Expected *FlexibleServerAzureActiveDirectoryAdministratorId }{ - { // empty Input: "", diff --git a/internal/services/mysql/validate/azure_active_directory_administrator_id_test.go b/internal/services/mysql/validate/azure_active_directory_administrator_id_test.go index 7e3c15c13ec5..67a089a1393f 100644 --- a/internal/services/mysql/validate/azure_active_directory_administrator_id_test.go +++ b/internal/services/mysql/validate/azure_active_directory_administrator_id_test.go @@ -12,7 +12,6 @@ func TestAzureActiveDirectoryAdministratorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/mysql/validate/flexible_server_azure_active_directory_administrator_id_test.go b/internal/services/mysql/validate/flexible_server_azure_active_directory_administrator_id_test.go index b1cf53df5666..6b488e0c4774 100644 --- a/internal/services/mysql/validate/flexible_server_azure_active_directory_administrator_id_test.go +++ b/internal/services/mysql/validate/flexible_server_azure_active_directory_administrator_id_test.go @@ -12,7 +12,6 @@ func TestFlexibleServerAzureActiveDirectoryAdministratorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/netapp/README.md b/internal/services/netapp/README.md new file mode 100644 index 000000000000..afdb8f6741bb --- /dev/null +++ b/internal/services/netapp/README.md @@ -0,0 +1,53 @@ +# This is a maintainer file for the Azure NetApp Files service. + +This document gives insights into who is maintaining this service and includes details for why certain decisions in this service package have been made. + +## Mainteiners + +- paulomarquesc +- orexii + +## Acceptance Tests + +- There is lack of SMB-related acceptance tests because it requires Active Directory Domain Controller infrastructure which is not easily automatable. SMB-related tests can only be tested if the infrastructure is setup beforehand which is not that trivial. We should not require SMB tests unless it comes with Domain Controller setup automation. Without automation, the SMB acceptance tests will fail and cause disruptions in CI/bulk testing. + +- New tests failing should not be accepted. + +## Polling functions + +- Some Netapp resources requires an extra type of polling mechanism. For example: + +```go +// Waiting for volume be completely provisioned +if err := waitForVolumeCreateOrUpdate(ctx, client, id); err != nil { + return err +} +``` + + This is because some operations return from regular SDK polling as completed but due to several factors it is still in progress (e.g. ARM caching, software and hardware layer sync delays, etc.). These wait functions are necessary and should not be removed. + +## Data loss prevention protection + +- Due to possibility of a volume to be deleted due to configuration changes on config file or changes made outside of Terraform, we have decided to not allow deletion of volumes by default. This is to prevent data loss. If you want to delete a volume, you need to set the feature block configuration `prevent_deletion_if_contains_resources` argument to `true`. + + In our tests we have added this block so the tests can delete the resources, but in production customers should not allow deletion of volumes by default. + +```hcl +features { + resource_group { + prevent_deletion_if_contains_resources = false + } +} +``` + +## Resource Group Deletion on Tests + +- A feature block configuration needs to be set to ensure tests conclude when Microsoft maintainers execute their testing. Due to some Microsoft subscription management policies, certain resources are created by default during the tests. This block allows the deletion of the resource group at the end of the tests. + +```hcl + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } +``` diff --git a/internal/services/netapp/client/client.go b/internal/services/netapp/client/client.go index 2668c7a95a54..e1e4482fac20 100644 --- a/internal/services/netapp/client/client.go +++ b/internal/services/netapp/client/client.go @@ -6,14 +6,17 @@ package client import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) @@ -26,6 +29,9 @@ type Client struct { VolumeQuotaRules *volumequotarules.VolumeQuotaRulesClient SnapshotClient *snapshots.SnapshotsClient SnapshotPoliciesClient *snapshotpolicy.SnapshotPolicyClient + BackupVaultsClient *backupvaults.BackupVaultsClient + BackupPolicyClient *backuppolicy.BackupPolicyClient + BackupClient *backups.BackupsClient } func NewClient(o *common.ClientOptions) (*Client, error) { @@ -77,6 +83,24 @@ func NewClient(o *common.ClientOptions) (*Client, error) { return nil, fmt.Errorf("building SnapshotPoliciesClient client: %+v", err) } + backupVaultsClient, err := backupvaults.NewBackupVaultsClientWithBaseURI(o.Environment.ResourceManager) + o.Configure(backupVaultsClient.Client, o.Authorizers.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building BackupVaultsClient client: %+v", err) + } + + backupPolicyClient, err := backuppolicy.NewBackupPolicyClientWithBaseURI(o.Environment.ResourceManager) + o.Configure(backupPolicyClient.Client, o.Authorizers.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building BackupPoliciesClient client: %+v", err) + } + + backupClient, err := backups.NewBackupsClientWithBaseURI(o.Environment.ResourceManager) + o.Configure(backupClient.Client, o.Authorizers.ResourceManager) + if err != nil { + return nil, fmt.Errorf("building BackupClient client: %+v", err) + } + return &Client{ AccountClient: accountClient, PoolClient: poolClient, @@ -86,5 +110,8 @@ func NewClient(o *common.ClientOptions) (*Client, error) { VolumeQuotaRules: volumeQuotaRuleClient, SnapshotClient: snapshotClient, SnapshotPoliciesClient: snapshotPoliciesClient, + BackupVaultsClient: backupVaultsClient, + BackupPolicyClient: backupPolicyClient, + BackupClient: backupClient, }, nil } diff --git a/internal/services/netapp/models/models.go b/internal/services/netapp/models/models.go index 5e0924de1cbb..8637074b2efb 100644 --- a/internal/services/netapp/models/models.go +++ b/internal/services/netapp/models/models.go @@ -116,3 +116,23 @@ type NetAppVolumeQuotaRuleDataSourceModel struct { QuotaSizeInKiB int64 `tfschema:"quota_size_in_kib"` QuotaType string `tfschema:"quota_type"` } + +type NetAppBackupVaultModel struct { + Name string `tfschema:"name"` + ResourceGroupName string `tfschema:"resource_group_name"` + Location string `tfschema:"location"` + AccountName string `tfschema:"account_name"` + Tags map[string]string `tfschema:"tags"` +} + +type NetAppBackupPolicyModel struct { + Name string `tfschema:"name"` + ResourceGroupName string `tfschema:"resource_group_name"` + Location string `tfschema:"location"` + AccountName string `tfschema:"account_name"` + Tags map[string]string `tfschema:"tags"` + DailyBackupsToKeep int64 `tfschema:"daily_backups_to_keep"` + WeeklyBackupsToKeep int64 `tfschema:"weekly_backups_to_keep"` + MonthlyBackupsToKeep int64 `tfschema:"monthly_backups_to_keep"` + Enabled bool `tfschema:"enabled"` +} diff --git a/internal/services/netapp/netapp_account_data_source.go b/internal/services/netapp/netapp_account_data_source.go index 21a28d0dcc88..af4cd6adde89 100644 --- a/internal/services/netapp/netapp_account_data_source.go +++ b/internal/services/netapp/netapp_account_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/netapp/netapp_account_encryption_data_source.go b/internal/services/netapp/netapp_account_encryption_data_source.go index 0cdd91253a2b..cee92f5df528 100644 --- a/internal/services/netapp/netapp_account_encryption_data_source.go +++ b/internal/services/netapp/netapp_account_encryption_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" netAppValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" @@ -36,50 +36,43 @@ func (r NetAppAccountEncryptionDataSource) IDValidationFunc() pluginsdk.SchemaVa func (r NetAppAccountEncryptionDataSource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "netapp_account_id": { Type: pluginsdk.TypeString, Required: true, Description: "The ID of the NetApp Account where encryption will be set.", ValidateFunc: netAppValidate.ValidateNetAppAccountID, }, + } +} +func (r NetAppAccountEncryptionDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ "user_assigned_identity_id": { - Type: pluginsdk.TypeString, - Optional: true, - Description: "The resource ID of the User Assigned Identity to use for encryption.", - ConflictsWith: []string{"system_assigned_identity_principal_id"}, + Type: pluginsdk.TypeString, + Computed: true, }, "system_assigned_identity_principal_id": { - Type: pluginsdk.TypeString, - Optional: true, - Description: "The Principal ID of the System Assigned Identity to use for encryption.", - ConflictsWith: []string{"user_assigned_identity_id"}, + Type: pluginsdk.TypeString, + Computed: true, }, "encryption_key": { - Type: pluginsdk.TypeString, - Optional: true, - Description: "The versionless encryption key url.", + Type: pluginsdk.TypeString, + Computed: true, }, } } -func (r NetAppAccountEncryptionDataSource) Attributes() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{} -} - func (r NetAppAccountEncryptionDataSource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.NetApp.AccountClient var state netAppModels.NetAppAccountEncryptionDataSourceModel if err := metadata.Decode(&state); err != nil { - return err + return fmt.Errorf("decoding: %+v", err) } id, err := netappaccounts.ParseNetAppAccountID(state.NetAppAccountID) @@ -96,34 +89,43 @@ func (r NetAppAccountEncryptionDataSource) Read() sdk.ResourceFunc { } model := resp.Model - if model.Properties.Encryption == nil { - return fmt.Errorf("encryption information does not exist for %s", id) + if model == nil { + return fmt.Errorf("model is nil for %s", id) } - anfAccountIdentityFlattened, err := identity.FlattenLegacySystemAndUserAssignedMapToModel(model.Identity) - if err != nil { - return err - } - - state.EncryptionKey, err = flattenEncryption(model.Properties.Encryption) - if err != nil { - return err + if model.Properties == nil || model.Properties.Encryption == nil { + return fmt.Errorf("encryption information does not exist for %s", id) } - if len(anfAccountIdentityFlattened) > 0 { - - if anfAccountIdentityFlattened[0].Type == identity.TypeSystemAssigned { - state.SystemAssignedIdentityPrincipalID = anfAccountIdentityFlattened[0].PrincipalId + if model.Identity != nil { + expanded, err := identity.FlattenLegacySystemAndUserAssignedMapToModel(model.Identity) + if err != nil { + return fmt.Errorf("flattening identity: %+v", err) } - if anfAccountIdentityFlattened[0].Type == identity.TypeUserAssigned { + for _, identityInfo := range expanded { + if identityInfo.Type == identity.TypeSystemAssigned { + if identityInfo.PrincipalId != "" { + state.SystemAssignedIdentityPrincipalID = identityInfo.PrincipalId + } + } - if len(anfAccountIdentityFlattened[0].IdentityIds) > 0 { - state.UserAssignedIdentityID = anfAccountIdentityFlattened[0].IdentityIds[0] + if identityInfo.Type == identity.TypeUserAssigned { + if len(identityInfo.IdentityIds) > 0 { + state.UserAssignedIdentityID = identityInfo.IdentityIds[0] + } } } } + if model.Properties.Encryption != nil { + encryptionKey, err := flattenEncryption(model.Properties.Encryption) + if err != nil { + return fmt.Errorf("flattening encryption: %+v", err) + } + state.EncryptionKey = encryptionKey + } + metadata.SetID(id) return metadata.Encode(&state) diff --git a/internal/services/netapp/netapp_account_encryption_resource.go b/internal/services/netapp/netapp_account_encryption_resource.go index bc2f11452617..b8739396f8ab 100644 --- a/internal/services/netapp/netapp_account_encryption_resource.go +++ b/internal/services/netapp/netapp_account_encryption_resource.go @@ -6,14 +6,13 @@ package netapp import ( "context" "fmt" - "net/http" "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" @@ -44,7 +43,6 @@ func (r NetAppAccountEncryptionResource) IDValidationFunc() pluginsdk.SchemaVali func (r NetAppAccountEncryptionResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "netapp_account_id": { Type: pluginsdk.TypeString, Required: true, @@ -113,7 +111,6 @@ func (r NetAppAccountEncryptionResource) Create() sdk.ResourceFunc { if !response.WasNotFound(existing.HttpResponse) { if existing.Model.Properties.Encryption != nil && existing.Model.Properties.Encryption.KeySource != nil && pointer.From(existing.Model.Properties.Encryption.KeySource) == netappaccounts.KeySourceMicrosoftPointKeyVault { - return tf.ImportAsExistsError(r.ResourceType(), accountID.ID()) } } @@ -159,7 +156,7 @@ func (r NetAppAccountEncryptionResource) Update() sdk.ResourceFunc { metadata.Logger.Infof("Decoding state for %s", id) var state netAppModels.NetAppAccountEncryption if err := metadata.Decode(&state); err != nil { - return err + return fmt.Errorf("decoding: %+v", err) } metadata.Logger.Infof("Updating %s", id) @@ -179,8 +176,6 @@ func (r NetAppAccountEncryptionResource) Update() sdk.ResourceFunc { if err := client.AccountsUpdateThenPoll(ctx, pointer.From(id), update); err != nil { return fmt.Errorf("updating %s: %+v", id, err) } - - metadata.SetID(id) } return nil @@ -192,7 +187,6 @@ func (r NetAppAccountEncryptionResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.NetApp.AccountClient id, err := netappaccounts.ParseNetAppAccountID((metadata.ResourceData.Id())) @@ -203,12 +197,12 @@ func (r NetAppAccountEncryptionResource) Read() sdk.ResourceFunc { metadata.Logger.Infof("Decoding state for %s", id) var state netAppModels.NetAppAccountEncryption if err := metadata.Decode(&state); err != nil { - return err + return fmt.Errorf("decoding: %+v", err) } existing, err := client.AccountsGet(ctx, pointer.From(id)) if err != nil { - if existing.HttpResponse.StatusCode == http.StatusNotFound { + if response.WasNotFound(existing.HttpResponse) { return metadata.MarkAsGone(id) } return fmt.Errorf("retrieving %s: %v", id, err) @@ -234,7 +228,6 @@ func (r NetAppAccountEncryptionResource) Read() sdk.ResourceFunc { } if len(anfAccountIdentityFlattened) > 0 { - if anfAccountIdentityFlattened[0].Type == identity.TypeSystemAssigned { model.SystemAssignedIdentityPrincipalID = anfAccountIdentityFlattened[0].PrincipalId } @@ -270,7 +263,7 @@ func (r NetAppAccountEncryptionResource) Delete() sdk.ResourceFunc { metadata.Logger.Infof("Decoding state for %s", id) var state netAppModels.NetAppAccountEncryption if err := metadata.Decode(&state); err != nil { - return err + return fmt.Errorf("decoding: %+v", err) } metadata.Logger.Infof("Updating %s", id) @@ -328,7 +321,7 @@ func expandEncryption(ctx context.Context, input string, keyVaultsClient *keyVau KeyVaultProperties: &netappaccounts.KeyVaultProperties{ KeyName: keyId.Name, KeyVaultUri: keyId.KeyVaultBaseUrl, - KeyVaultResourceId: parsedKeyVaultID.ID(), + KeyVaultResourceId: pointer.To(parsedKeyVaultID.ID()), }, } diff --git a/internal/services/netapp/netapp_account_encryption_resource_test.go b/internal/services/netapp/netapp_account_encryption_resource_test.go index 2e7012ea740a..0fa754abc395 100644 --- a/internal/services/netapp/netapp_account_encryption_resource_test.go +++ b/internal/services/netapp/netapp_account_encryption_resource_test.go @@ -10,7 +10,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" "github.com/hashicorp/terraform-plugin-testing/terraform" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" diff --git a/internal/services/netapp/netapp_account_resource.go b/internal/services/netapp/netapp_account_resource.go index ebc4204b994d..3ca2d3f1269e 100644 --- a/internal/services/netapp/netapp_account_resource.go +++ b/internal/services/netapp/netapp_account_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" @@ -208,7 +208,6 @@ func resourceNetAppAccountCreate(d *pluginsdk.ResourceData, meta interface{}) er anfAccountIdentity, ok := anfAccountIdentityRaw.([]interface{}) if ok && len(anfAccountIdentity) > 0 { - anfAccountIdentityExpanded, err := identity.ExpandLegacySystemAndUserAssignedMap(anfAccountIdentity) if err != nil { return err @@ -240,26 +239,22 @@ func resourceNetAppAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) er locks.ByID(id.ID()) defer locks.UnlockByID(id.ID()) - shouldUpdate := false update := netappaccounts.NetAppAccountPatch{ Properties: &netappaccounts.AccountProperties{}, } if d.HasChange("active_directory") { - shouldUpdate = true activeDirectoriesRaw := d.Get("active_directory").([]interface{}) activeDirectories := expandNetAppActiveDirectories(activeDirectoriesRaw) update.Properties.ActiveDirectories = activeDirectories } if d.HasChange("tags") { - shouldUpdate = true tagsRaw := d.Get("tags").(map[string]interface{}) update.Tags = tags.Expand(tagsRaw) } if d.HasChange("identity") { - shouldUpdate = true anfAccountIdentity, err := identity.ExpandLegacySystemAndUserAssignedMap(d.Get("identity").([]interface{})) if err != nil { return fmt.Errorf("expanding `identity`: %+v", err) @@ -268,10 +263,8 @@ func resourceNetAppAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) er update.Identity = anfAccountIdentity } - if shouldUpdate { - if err = client.AccountsUpdateThenPoll(ctx, *id, update); err != nil { - return fmt.Errorf("updating %s: %+v", id.ID(), err) - } + if err = client.AccountsUpdateThenPoll(ctx, *id, update); err != nil { + return fmt.Errorf("updating %s: %+v", id.ID(), err) } return resourceNetAppAccountRead(d, meta) diff --git a/internal/services/netapp/netapp_account_resource_test.go b/internal/services/netapp/netapp_account_resource_test.go index 444003b5c477..3e0a76d86c04 100644 --- a/internal/services/netapp/netapp_account_resource_test.go +++ b/internal/services/netapp/netapp_account_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/netapp/netapp_backup_policy_data_source.go b/internal/services/netapp/netapp_backup_policy_data_source.go new file mode 100644 index 000000000000..d9d4928b44b5 --- /dev/null +++ b/internal/services/netapp/netapp_backup_policy_data_source.go @@ -0,0 +1,116 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package netapp + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type NetAppBackupPolicyDataSource struct{} + +var _ sdk.DataSource = NetAppBackupPolicyDataSource{} + +func (r NetAppBackupPolicyDataSource) ResourceType() string { + return "azurerm_netapp_backup_policy" +} + +func (r NetAppBackupPolicyDataSource) ModelObject() interface{} { + return &netAppModels.NetAppBackupVaultModel{} +} + +func (r NetAppBackupPolicyDataSource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return backuppolicy.ValidateBackupPolicyID +} + +func (r NetAppBackupPolicyDataSource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "resource_group_name": commonschema.ResourceGroupName(), + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + } +} + +func (r NetAppBackupPolicyDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "location": commonschema.LocationComputed(), + + "tags": commonschema.TagsDataSource(), + + "daily_backups_to_keep": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "weekly_backups_to_keep": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "monthly_backups_to_keep": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + } +} + +func (r NetAppBackupPolicyDataSource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupPolicyClient + + var state netAppModels.NetAppBackupPolicyModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + backupPolicyID := backuppolicy.NewBackupPolicyID(metadata.Client.Account.SubscriptionId, state.ResourceGroupName, state.AccountName, state.Name) + + existing, err := client.BackupPoliciesGet(ctx, backupPolicyID) + if err != nil { + if response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("%s was not found", backupPolicyID) + } + return fmt.Errorf("retrieving %s: %v", backupPolicyID, err) + } + + if model := existing.Model; model != nil { + state.Location = location.Normalize(model.Location) + state.Tags = pointer.From(model.Tags) + state.DailyBackupsToKeep = pointer.From(model.Properties.DailyBackupsToKeep) + state.WeeklyBackupsToKeep = pointer.From(model.Properties.WeeklyBackupsToKeep) + state.MonthlyBackupsToKeep = pointer.From(model.Properties.MonthlyBackupsToKeep) + state.Enabled = pointer.From(model.Properties.Enabled) + } + + metadata.SetID(backupPolicyID) + + return metadata.Encode(&state) + }, + } +} diff --git a/internal/services/netapp/netapp_backup_policy_data_source_test.go b/internal/services/netapp/netapp_backup_policy_data_source_test.go new file mode 100644 index 000000000000..4f2e2e71ffc3 --- /dev/null +++ b/internal/services/netapp/netapp_backup_policy_data_source_test.go @@ -0,0 +1,40 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package netapp_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" +) + +type NetAppBackupPolicyDataSource struct{} + +func TestAccNetAppBackupPolicyDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_netapp_backup_policy", "test") + d := NetAppBackupPolicyDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: d.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("name").Exists(), + ), + }, + }) +} + +func (d NetAppBackupPolicyDataSource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +data "azurerm_netapp_backup_policy" "test" { + resource_group_name = azurerm_resource_group.test.name + account_name = azurerm_netapp_account.test.name + name = azurerm_netapp_backup_policy.test.name +} +`, NetAppBackupPolicyResource{}.basic(data)) +} diff --git a/internal/services/netapp/netapp_backup_policy_resource.go b/internal/services/netapp/netapp_backup_policy_resource.go new file mode 100644 index 000000000000..3879a392464b --- /dev/null +++ b/internal/services/netapp/netapp_backup_policy_resource.go @@ -0,0 +1,309 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package netapp + +import ( + "context" + "fmt" + "strconv" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy" + "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" + netAppValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" +) + +type NetAppBackupPolicyResource struct{} + +var _ sdk.Resource = NetAppBackupPolicyResource{} + +func (r NetAppBackupPolicyResource) ModelObject() interface{} { + return &netAppModels.NetAppBackupPolicyModel{} +} + +func (r NetAppBackupPolicyResource) ResourceType() string { + return "azurerm_netapp_backup_policy" +} + +func (r NetAppBackupPolicyResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return backuppolicy.ValidateBackupPolicyID +} + +func (r NetAppBackupPolicyResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: netAppValidate.VolumeQuotaRuleName, + }, + + "resource_group_name": commonschema.ResourceGroupName(), + + "location": commonschema.Location(), + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: netAppValidate.AccountName, + }, + + "tags": commonschema.Tags(), + + "daily_backups_to_keep": { + Type: pluginsdk.TypeInt, + Default: 2, + Optional: true, + ValidateFunc: validation.IntBetween(2, 1019), + }, + + "weekly_backups_to_keep": { + Type: pluginsdk.TypeInt, + Default: 1, + Optional: true, + ValidateFunc: validation.IntBetween(1, 1019), + }, + + "monthly_backups_to_keep": { + Type: pluginsdk.TypeInt, + Default: 1, + Optional: true, + ValidateFunc: validation.IntBetween(1, 1019), + }, + + "enabled": { + Type: pluginsdk.TypeBool, + Default: true, + Optional: true, + }, + } +} + +func (r NetAppBackupPolicyResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (r NetAppBackupPolicyResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 90 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupPolicyClient + subscriptionId := metadata.Client.Account.SubscriptionId + + var model netAppModels.NetAppBackupPolicyModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id := backuppolicy.NewBackupPolicyID(subscriptionId, model.ResourceGroupName, model.AccountName, model.Name) + + // Validations + if errorList := netAppValidate.ValidateNetAppBackupPolicyCombinedRetention(model.DailyBackupsToKeep, model.WeeklyBackupsToKeep, model.MonthlyBackupsToKeep); len(errorList) > 0 { + return fmt.Errorf("one or more issues found while performing deeper validations for %s:\n%+v", id, errorList) + } + + metadata.Logger.Infof("Import check for %s", id) + existing, err := client.BackupPoliciesGet(ctx, id) + if err != nil { + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for presence of existing %s: %s", id, err) + } + } + + if !response.WasNotFound(existing.HttpResponse) { + return tf.ImportAsExistsError(r.ResourceType(), id.ID()) + } + + parameters := backuppolicy.BackupPolicy{ + Location: location.Normalize(model.Location), + Tags: pointer.To(model.Tags), + Properties: backuppolicy.BackupPolicyProperties{ + DailyBackupsToKeep: pointer.To(model.DailyBackupsToKeep), + WeeklyBackupsToKeep: pointer.To(model.WeeklyBackupsToKeep), + MonthlyBackupsToKeep: pointer.To(model.MonthlyBackupsToKeep), + Enabled: pointer.To(model.Enabled), + }, + } + + err = client.BackupPoliciesCreateThenPoll(ctx, id, parameters) + if err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + + return nil + }, + } +} + +func (r NetAppBackupPolicyResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 120 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupPolicyClient + + id, err := backuppolicy.ParseBackupPolicyID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + metadata.Logger.Infof("Decoding state for %s", id) + var state netAppModels.NetAppBackupPolicyModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + update := backuppolicy.BackupPolicyPatch{ + Properties: &backuppolicy.BackupPolicyProperties{}, + } + + // Checking properties with changes + if metadata.ResourceData.HasChange("tags") { + update.Tags = pointer.To(state.Tags) + } + + if metadata.ResourceData.HasChange("daily_backups_to_keep") { + update.Properties.DailyBackupsToKeep = pointer.To(state.DailyBackupsToKeep) + } + + if metadata.ResourceData.HasChange("weekly_backups_to_keep") { + update.Properties.WeeklyBackupsToKeep = pointer.To(state.WeeklyBackupsToKeep) + } + + if metadata.ResourceData.HasChange("monthly_backups_to_keep") { + update.Properties.MonthlyBackupsToKeep = pointer.To(state.MonthlyBackupsToKeep) + } + + if metadata.ResourceData.HasChange("enabled") { + update.Properties.Enabled = pointer.To(state.Enabled) + } + + metadata.Logger.Infof("Updating %s", id) + + if err := client.BackupPoliciesUpdateThenPoll(ctx, pointer.From(id), update); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + + return nil + }, + } +} + +func (r NetAppBackupPolicyResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupPolicyClient + + id, err := backuppolicy.ParseBackupPolicyID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + metadata.Logger.Infof("Decoding state for %s", id) + var state netAppModels.NetAppBackupPolicyModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + existing, err := client.BackupPoliciesGet(ctx, pointer.From(id)) + if err != nil { + if response.WasNotFound(existing.HttpResponse) { + return metadata.MarkAsGone(id) + } + return fmt.Errorf("retrieving %s: %v", id, err) + } + + state.AccountName = id.NetAppAccountName + state.Name = id.BackupPolicyName + state.ResourceGroupName = id.ResourceGroupName + + if model := existing.Model; model != nil { + state.Location = location.Normalize(model.Location) + state.Tags = pointer.From(model.Tags) + state.DailyBackupsToKeep = pointer.From(model.Properties.DailyBackupsToKeep) + state.WeeklyBackupsToKeep = pointer.From(model.Properties.WeeklyBackupsToKeep) + state.MonthlyBackupsToKeep = pointer.From(model.Properties.MonthlyBackupsToKeep) + state.Enabled = pointer.From(model.Properties.Enabled) + } + + metadata.SetID(id) + + return metadata.Encode(&state) + }, + } +} + +func (r NetAppBackupPolicyResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 120 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupPolicyClient + + id, err := backuppolicy.ParseBackupPolicyID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + if err = client.BackupPoliciesDeleteThenPoll(ctx, pointer.From(id)); err != nil { + return fmt.Errorf("deleting %s: %+v", id, err) + } + + if err = waitForBackupPolicyDeletion(ctx, client, pointer.From(id)); err != nil { + return fmt.Errorf("deleting %s: %+v", id, err) + } + + return nil + }, + } +} + +func waitForBackupPolicyDeletion(ctx context.Context, client *backuppolicy.BackupPolicyClient, id backuppolicy.BackupPolicyId) error { + deadline, ok := ctx.Deadline() + if !ok { + return fmt.Errorf("internal-error: context had no deadline") + } + stateConf := &pluginsdk.StateChangeConf{ + ContinuousTargetOccurence: 5, + Delay: 5 * time.Second, + MinTimeout: 5 * time.Second, + Pending: []string{"200", "202"}, + Target: []string{"204", "404"}, + Refresh: netappBackupPolicyStateRefreshFunc(ctx, client, id), + Timeout: time.Until(deadline), + } + + if _, err := stateConf.WaitForStateContext(ctx); err != nil { + return fmt.Errorf("waiting for %s to be deleted: %+v", id, err) + } + + return nil +} + +func netappBackupPolicyStateRefreshFunc(ctx context.Context, client *backuppolicy.BackupPolicyClient, id backuppolicy.BackupPolicyId) pluginsdk.StateRefreshFunc { + return func() (interface{}, string, error) { + res, err := client.BackupPoliciesGet(ctx, id) + if err != nil { + if !response.WasNotFound(res.HttpResponse) { + return nil, "", fmt.Errorf("retrieving %s: %s", id, err) + } + } + + statusCode := "dropped connection" + if res.HttpResponse != nil { + statusCode = strconv.Itoa(res.HttpResponse.StatusCode) + } + return res, statusCode, nil + } +} diff --git a/internal/services/netapp/netapp_backup_policy_test.go b/internal/services/netapp/netapp_backup_policy_test.go new file mode 100644 index 000000000000..768662c5a34d --- /dev/null +++ b/internal/services/netapp/netapp_backup_policy_test.go @@ -0,0 +1,184 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package netapp_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy" + "github.com/hashicorp/terraform-plugin-testing/terraform" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" +) + +type NetAppBackupPolicyResource struct{} + +func (t NetAppBackupPolicyResource) Exists(ctx context.Context, clients *clients.Client, state *terraform.InstanceState) (*bool, error) { + id, err := backuppolicy.ParseBackupPolicyID(state.ID) + if err != nil { + return nil, err + } + + resp, err := clients.NetApp.BackupPolicyClient.BackupPoliciesGet(ctx, *id) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", id, err) + } + + return pointer.To(resp.Model != nil), nil +} + +func TestAccNetAppBackupPolicy_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_netapp_backup_policy", "test") + r := NetAppBackupPolicyResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccNetAppBackupPolicy_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_netapp_backup_policy", "test") + r := NetAppBackupPolicyResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccNetAppBackupPolicy_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_netapp_backup_policy", "test") + r := NetAppBackupPolicyResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("tags.%").HasValue("1"), + check.That(data.ResourceName).Key("daily_backups_to_keep").HasValue("2"), + check.That(data.ResourceName).Key("daily_backups_to_keep").HasValue("2"), + check.That(data.ResourceName).Key("daily_backups_to_keep").HasValue("2"), + check.That(data.ResourceName).Key("enabled").HasValue("true"), + ), + }, + data.ImportStep(), + { + Config: r.update(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("tags.%").HasValue("2"), + check.That(data.ResourceName).Key("daily_backups_to_keep").HasValue("10"), + check.That(data.ResourceName).Key("daily_backups_to_keep").HasValue("10"), + check.That(data.ResourceName).Key("daily_backups_to_keep").HasValue("10"), + check.That(data.ResourceName).Key("enabled").HasValue("false"), + ), + }, + data.ImportStep(), + }) +} + +func (r NetAppBackupPolicyResource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%[1]s + +resource "azurerm_netapp_backup_policy" "test" { + name = "acctest-NetAppBackupPolicy-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name +} +`, r.template(data), data.RandomInteger) +} + +func (r NetAppBackupPolicyResource) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +%[1]s + +resource "azurerm_netapp_backup_policy" "test" { + name = "acctest-NetAppBackupPolicy-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name + daily_backups_to_keep = 2 + weekly_backups_to_keep = 2 + monthly_backups_to_keep = 2 + enabled = true + + tags = { + "testTag" = "testTagValue" + } +} +`, r.template(data), data.RandomInteger) +} + +func (r NetAppBackupPolicyResource) update(data acceptance.TestData) string { + return fmt.Sprintf(` +%[1]s + +resource "azurerm_netapp_backup_policy" "test" { + name = "acctest-NetAppBackupPolicy-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name + daily_backups_to_keep = 10 + weekly_backups_to_keep = 10 + monthly_backups_to_keep = 10 + enabled = false + + tags = { + "testTag" = "testTagValue", + "FoO" = "BaR" + } +} +`, r.template(data), data.RandomInteger) +} + +func (NetAppBackupPolicyResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-netapp-%[1]d" + location = "%[2]s" + + tags = { + "SkipNRMSNSG" = "true" + } +} + +resource "azurerm_netapp_account" "test" { + name = "acctest-NetAppAccount-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + tags = { + "CreatedOnDate" = "2023-08-17T08:01:00Z", + "SkipASMAzSecPack" = "true" + } +} + +`, data.RandomInteger, data.Locations.Primary) +} diff --git a/internal/services/netapp/netapp_backup_vault_data_source.go b/internal/services/netapp/netapp_backup_vault_data_source.go new file mode 100644 index 000000000000..42721503d8fe --- /dev/null +++ b/internal/services/netapp/netapp_backup_vault_data_source.go @@ -0,0 +1,92 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package netapp + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type NetAppBackupVaultDataSource struct{} + +var _ sdk.DataSource = NetAppBackupVaultDataSource{} + +func (r NetAppBackupVaultDataSource) ResourceType() string { + return "azurerm_netapp_backup_vault" +} + +func (r NetAppBackupVaultDataSource) ModelObject() interface{} { + return &netAppModels.NetAppBackupVaultModel{} +} + +func (r NetAppBackupVaultDataSource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return backupvaults.ValidateBackupVaultID +} + +func (r NetAppBackupVaultDataSource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + }, + + "resource_group_name": commonschema.ResourceGroupName(), + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + }, + } +} + +func (r NetAppBackupVaultDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "location": commonschema.LocationComputed(), + + "tags": commonschema.TagsDataSource(), + } +} + +func (r NetAppBackupVaultDataSource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupVaultsClient + + var state netAppModels.NetAppBackupVaultModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + backupVaultID := backupvaults.NewBackupVaultID(metadata.Client.Account.SubscriptionId, state.ResourceGroupName, state.AccountName, state.Name) + + existing, err := client.Get(ctx, backupVaultID) + if err != nil { + if response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("%s was not found", backupVaultID) + } + return fmt.Errorf("retrieving %s: %v", backupVaultID, err) + } + + if model := existing.Model; model != nil { + state.Location = location.Normalize(model.Location) + state.Tags = pointer.From(model.Tags) + } + + metadata.SetID(backupVaultID) + + return metadata.Encode(&state) + }, + } +} diff --git a/internal/services/netapp/netapp_backup_vault_data_source_test.go b/internal/services/netapp/netapp_backup_vault_data_source_test.go new file mode 100644 index 000000000000..9ba0d9d61cb3 --- /dev/null +++ b/internal/services/netapp/netapp_backup_vault_data_source_test.go @@ -0,0 +1,40 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package netapp_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" +) + +type NetAppBackupVaultDataSource struct{} + +func TestAccNetAppBackupVaultDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_netapp_backup_vault", "test") + d := NetAppBackupVaultDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: d.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("name").Exists(), + ), + }, + }) +} + +func (d NetAppBackupVaultDataSource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +data "azurerm_netapp_backup_vault" "test" { + resource_group_name = azurerm_resource_group.test.name + account_name = azurerm_netapp_account.test.name + name = azurerm_netapp_backup_vault.test.name +} +`, NetAppBackupVaultResource{}.basic(data)) +} diff --git a/internal/services/netapp/netapp_backup_vault_resource.go b/internal/services/netapp/netapp_backup_vault_resource.go new file mode 100644 index 000000000000..9f5062641946 --- /dev/null +++ b/internal/services/netapp/netapp_backup_vault_resource.go @@ -0,0 +1,376 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package netapp + +import ( + "context" + "fmt" + "strconv" + "strings" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-helpers/resourcemanager/location" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults" + "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" + netAppValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type NetAppBackupVaultResource struct{} + +var _ sdk.Resource = NetAppBackupVaultResource{} + +func (r NetAppBackupVaultResource) ModelObject() interface{} { + return &netAppModels.NetAppBackupVaultModel{} +} + +func (r NetAppBackupVaultResource) ResourceType() string { + return "azurerm_netapp_backup_vault" +} + +func (r NetAppBackupVaultResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return backupvaults.ValidateBackupVaultID +} + +func (r NetAppBackupVaultResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: netAppValidate.VolumeQuotaRuleName, + }, + + "resource_group_name": commonschema.ResourceGroupName(), + + "location": commonschema.Location(), + + "account_name": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: netAppValidate.AccountName, + }, + + "tags": commonschema.Tags(), + } +} + +func (r NetAppBackupVaultResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (r NetAppBackupVaultResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 90 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupVaultsClient + subscriptionId := metadata.Client.Account.SubscriptionId + + var model netAppModels.NetAppBackupVaultModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id := backupvaults.NewBackupVaultID(subscriptionId, model.ResourceGroupName, model.AccountName, model.Name) + + metadata.Logger.Infof("Import check for %s", id) + existing, err := client.Get(ctx, id) + if err != nil { + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for presence of existing %s: %s", id, err) + } + } + + if !response.WasNotFound(existing.HttpResponse) { + return tf.ImportAsExistsError(r.ResourceType(), id.ID()) + } + + parameters := backupvaults.BackupVault{ + Location: location.Normalize(model.Location), + Tags: pointer.To(model.Tags), + } + + err = client.CreateOrUpdateThenPoll(ctx, id, parameters) + if err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } + + metadata.SetID(id) + + return nil + }, + } +} + +func (r NetAppBackupVaultResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 120 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupVaultsClient + + id, err := backupvaults.ParseBackupVaultID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + metadata.Logger.Infof("Decoding state for %s", id) + var state netAppModels.NetAppBackupVaultModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + if metadata.ResourceData.HasChange("tags") { + metadata.Logger.Infof("Updating %s", id) + + update := backupvaults.BackupVaultPatch{ + Tags: pointer.To(state.Tags), + } + + if err := client.UpdateThenPoll(ctx, pointer.From(id), update); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + } + + return nil + }, + } +} + +func (r NetAppBackupVaultResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.NetApp.BackupVaultsClient + + id, err := backupvaults.ParseBackupVaultID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + metadata.Logger.Infof("Decoding state for %s", id) + var state netAppModels.NetAppBackupVaultModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + existing, err := client.Get(ctx, pointer.From(id)) + if err != nil { + if response.WasNotFound(existing.HttpResponse) { + return metadata.MarkAsGone(id) + } + return fmt.Errorf("retrieving %s: %v", id, err) + } + + state.AccountName = id.NetAppAccountName + state.Name = id.BackupVaultName + state.ResourceGroupName = id.ResourceGroupName + + if model := existing.Model; model != nil { + state.Location = location.Normalize(model.Location) + state.Tags = pointer.From(model.Tags) + } + + metadata.SetID(id) + + return metadata.Encode(&state) + }, + } +} + +func waitForBackupDeletion(ctx context.Context, client *backups.BackupsClient, id backups.BackupId) error { + deadline, ok := ctx.Deadline() + if !ok { + return fmt.Errorf("internal-error: context had no deadline") + } + stateConf := &pluginsdk.StateChangeConf{ + ContinuousTargetOccurence: 5, + Delay: 5 * time.Second, + MinTimeout: 5 * time.Second, + Pending: []string{"200", "202"}, + Target: []string{"404"}, + Refresh: netappBackupStateRefreshFunc(ctx, client, id), + Timeout: time.Until(deadline), + } + + if _, err := stateConf.WaitForStateContext(ctx); err != nil { + return fmt.Errorf("waiting for %s to be deleted: %+v", id, err) + } + + return nil +} + +func netappBackupStateRefreshFunc(ctx context.Context, client *backups.BackupsClient, id backups.BackupId) pluginsdk.StateRefreshFunc { + return func() (interface{}, string, error) { + res, err := client.Get(ctx, id) + if err != nil { + if !response.WasNotFound(res.HttpResponse) { + return nil, "", fmt.Errorf("retrieving %s: %s", id, err) + } + } + + statusCode := "dropped connection" + if res.HttpResponse != nil { + statusCode = strconv.Itoa(res.HttpResponse.StatusCode) + } + + return res, statusCode, nil + } +} + +func (r NetAppBackupVaultResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 120 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + vaultClient := metadata.Client.NetApp.BackupVaultsClient + backupClient := metadata.Client.NetApp.BackupClient + + id, err := backupvaults.ParseBackupVaultID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + // Attempt to delete backup vault with retries + for retries := 0; retries < 5; retries++ { + // Delete backups + if err := deleteBackupsFromVault(ctx, id, backupClient, metadata.Client.Features.NetApp.DeleteBackupsOnBackupVaultDestroy); err != nil { + return err + } + + // DeleteThenPoll cannot be used due to potential race condition where the backup started when the volume got deleted but it takes time for it to show up within the vault + // This will be handled by waitForBackupVaultDeletion and operation will be retried if needed + if _, err := vaultClient.Delete(ctx, pointer.From(id)); err != nil { + return fmt.Errorf("deleting %s: %+v", id, err) + } + + // Wait for deletion to complete + err = waitForBackupVaultDeletion(ctx, vaultClient, backupClient, pointer.From(id)) + if err == nil { + return nil // Successful deletion + } + + if strings.Contains(err.Error(), "backups found on vault") { + // Backup may not show up in the vault through a GET so we will wait for a bit before retrying + time.Sleep(30 * time.Second) + continue + } + + return err // If it's a different error, return it immediately + } + + return fmt.Errorf("failed to delete backup vault after 5 attempts") + }, + } +} + +func waitForBackupVaultDeletion(ctx context.Context, vaultClient *backupvaults.BackupVaultsClient, backupClient *backups.BackupsClient, id backupvaults.BackupVaultId) error { + deadline, ok := ctx.Deadline() + if !ok { + return fmt.Errorf("internal-error: context had no deadline") + } + stateConf := &pluginsdk.StateChangeConf{ + ContinuousTargetOccurence: 5, + Delay: 10 * time.Second, + MinTimeout: 10 * time.Second, + Pending: []string{"200", "202"}, + Target: []string{"404"}, + Refresh: netappBackupVaultStateRefreshFunc(ctx, vaultClient, backupClient, id), + Timeout: time.Until(deadline), + } + + _, err := stateConf.WaitForStateContext(ctx) + if err != nil { + return fmt.Errorf("waiting for deletion of %s: %w", id, err) + } + + return nil +} + +func netappBackupVaultStateRefreshFunc(ctx context.Context, vaultClient *backupvaults.BackupVaultsClient, backupClient *backups.BackupsClient, id backupvaults.BackupVaultId) pluginsdk.StateRefreshFunc { + return func() (interface{}, string, error) { + res, err := vaultClient.Get(ctx, id) + if err != nil { + if response.WasNotFound(res.HttpResponse) { + return res, strconv.Itoa(res.HttpResponse.StatusCode), nil + } + return nil, "", fmt.Errorf("retrieving %s: %s", id, err) + } + + // Handling a race condition where the backup started but the volume got deleted and it takes time for it to show up within the vault. + // The vault deletion process will hang until the deadline is reached and never retry to delete the backup preventing vault to be deleted. + // For this to work, need to scrub activity logs to see if there was a failed deletion operation due to backup just showing up in the vault + // midway after the vault deletion process started. + backupVaultID := backups.NewBackupVaultID(id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, id.BackupVaultName) + backupList, err := backupClient.ListByVault(ctx, backupVaultID, backups.ListByVaultOperationOptions{}) + if err != nil { + return nil, "", fmt.Errorf("listing backups from vault %s: %w", id.ID(), err) + } + + if backupList.Model != nil || len(pointer.From(backupList.Model)) > 0 { + return nil, "409", fmt.Errorf("backups found on vault %s, forcing retry", id.ID()) // Forcing vault deletion to retry + } + + return res, strconv.Itoa(res.HttpResponse.StatusCode), nil + } +} + +func deleteBackupsFromVault(ctx context.Context, id *backupvaults.BackupVaultId, backupClient *backups.BackupsClient, shouldDestroyBackups bool) error { + for { + backupVaultID := backups.NewBackupVaultID(id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, id.BackupVaultName) + backupList, err := backupClient.ListByVault(ctx, backupVaultID, backups.ListByVaultOperationOptions{}) + if err != nil { + return fmt.Errorf("listing backups from vault %s: %w", id.ID(), err) + } + + if backupList.Model == nil || len(pointer.From(backupList.Model)) == 0 { + return nil // No more backups to delete + } + + for _, backup := range pointer.From(backupList.Model) { + if backup.Name == nil { + continue + } + + if shouldDestroyBackups { + backupID, err := backups.ParseBackupID(pointer.From(backup.Id)) + if err != nil { + return fmt.Errorf("parsing backup ID %s: %w", pointer.From(backup.Id), err) + } + + if err := retryBackupDelete(ctx, backupClient, pointer.From(backupID), 120, 30); err != nil { + return fmt.Errorf("failed to delete backup %s: %w", backupID.ID(), err) + } + } else { + return fmt.Errorf("cannot delete backups from backup vault due to missing DeleteBackupsOnBackupVaultDestroy feature set as true, backup vault id %s, DeleteBackupsOnBackupVaultDestroy setting is: %t", id.ID(), shouldDestroyBackups) + } + } + + time.Sleep(10 * time.Second) + } +} + +func retryBackupDelete(ctx context.Context, client *backups.BackupsClient, id backups.BackupId, retryAttempts, retryIntervalSec int) error { + var lastErr error + for attempt := 0; attempt < retryAttempts; attempt++ { + if err := client.DeleteThenPoll(ctx, id); err == nil { + if err := waitForBackupDeletion(ctx, client, id); err != nil { + return fmt.Errorf("waiting for deletion of %s: %w", id.ID(), err) + } + return nil + } else if strings.Contains(err.Error(), "Please retry after backup transfer is complete") { + lastErr = err + time.Sleep(time.Duration(retryIntervalSec) * time.Second) + } else { + return fmt.Errorf("deleting backup %s: %+v", id.ID(), err) + } + } + + return fmt.Errorf("failed to delete backup after %d attempts: %v", retryAttempts, lastErr) +} diff --git a/internal/services/netapp/netapp_backup_vault_test.go b/internal/services/netapp/netapp_backup_vault_test.go new file mode 100644 index 000000000000..0f4472577645 --- /dev/null +++ b/internal/services/netapp/netapp_backup_vault_test.go @@ -0,0 +1,149 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package netapp_test + +import ( + "context" + "fmt" + "net/http" + "testing" + + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults" + "github.com/hashicorp/terraform-plugin-testing/terraform" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/utils" +) + +type NetAppBackupVaultResource struct{} + +func (t NetAppBackupVaultResource) Exists(ctx context.Context, clients *clients.Client, state *terraform.InstanceState) (*bool, error) { + id, err := backupvaults.ParseBackupVaultID(state.ID) + if err != nil { + return nil, err + } + + resp, err := clients.NetApp.BackupVaultsClient.Get(ctx, *id) + if err != nil { + if resp.HttpResponse.StatusCode == http.StatusNotFound { + return utils.Bool(false), nil + } + return nil, fmt.Errorf("retrieving %s: %+v", id, err) + } + + return utils.Bool(true), nil +} + +func TestAccNetAppBackupVault_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_netapp_backup_vault", "test") + r := NetAppBackupVaultResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("tags.%").HasValue("1"), + ), + }, + data.ImportStep(), + }) +} + +func TestAccNetAppBackupVault_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_netapp_backup_vault", "test") + r := NetAppBackupVaultResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("tags.%").HasValue("1"), + ), + }, + data.ImportStep(), + { + Config: r.update(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("tags.%").HasValue("2"), + ), + }, + data.ImportStep(), + }) +} + +func (r NetAppBackupVaultResource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%[1]s + +resource "azurerm_netapp_backup_vault" "test" { + name = "acctest-NetAppBackupVault-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name + + tags = { + "testTag" = "testTagValue" + } +} +`, r.template(data), data.RandomInteger) +} + +func (r NetAppBackupVaultResource) update(data acceptance.TestData) string { + return fmt.Sprintf(` +%[1]s + +resource "azurerm_netapp_backup_vault" "test" { + name = "acctest-NetAppBackupVault-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name + + tags = { + "testTag" = "testTagValue", + "FoO" = "BaR" + } +} +`, r.template(data), data.RandomInteger) +} + +func (NetAppBackupVaultResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + netapp { + delete_backups_on_backup_vault_destroy = true + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-netapp-%[1]d" + location = "%[2]s" + + tags = { + "SkipNRMSNSG" = "true" + } +} + +resource "azurerm_netapp_account" "test" { + name = "acctest-NetAppAccount-%[1]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + tags = { + "CreatedOnDate" = "2023-08-17T08:01:00Z", + "SkipASMAzSecPack" = "true" + } +} + + +`, data.RandomInteger, data.Locations.Primary) +} diff --git a/internal/services/netapp/netapp_pool_data_source.go b/internal/services/netapp/netapp_pool_data_source.go index 68f0557ab3c6..3451735b1d33 100644 --- a/internal/services/netapp/netapp_pool_data_source.go +++ b/internal/services/netapp/netapp_pool_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/netapp/netapp_pool_resource.go b/internal/services/netapp/netapp_pool_resource.go index 65997de9912e..0e5b14ab45f8 100644 --- a/internal/services/netapp/netapp_pool_resource.go +++ b/internal/services/netapp/netapp_pool_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -170,14 +170,11 @@ func resourceNetAppPoolUpdate(d *pluginsdk.ResourceData, meta interface{}) error return err } - shouldUpdate := false update := capacitypools.CapacityPoolPatch{ Properties: &capacitypools.PoolPatchProperties{}, } if d.HasChange("size_in_tb") { - shouldUpdate = true - sizeInTB := int64(d.Get("size_in_tb").(int)) sizeInMB := sizeInTB * 1024 * 1024 sizeInBytes := sizeInMB * 1024 * 1024 @@ -186,26 +183,22 @@ func resourceNetAppPoolUpdate(d *pluginsdk.ResourceData, meta interface{}) error } if d.HasChange("qos_type") { - shouldUpdate = true qosType := capacitypools.QosType(d.Get("qos_type").(string)) update.Properties.QosType = &qosType } if d.HasChange("tags") { - shouldUpdate = true tagsRaw := d.Get("tags").(map[string]interface{}) update.Tags = tags.Expand(tagsRaw) } - if shouldUpdate { - if err = client.PoolsUpdateThenPoll(ctx, *id, update); err != nil { - return fmt.Errorf("updating %s: %+v", id.ID(), err) - } + if err = client.PoolsUpdateThenPoll(ctx, *id, update); err != nil { + return fmt.Errorf("updating %s: %+v", id.ID(), err) + } - // Wait for pool to complete update - if err = waitForPoolCreateOrUpdate(ctx, client, *id); err != nil { - return err - } + // Wait for pool to complete update + if err = waitForPoolCreateOrUpdate(ctx, client, *id); err != nil { + return err } return resourceNetAppPoolRead(d, meta) @@ -241,10 +234,9 @@ func resourceNetAppPoolRead(d *pluginsdk.ResourceData, meta interface{}) error { poolProperties := model.Properties d.Set("service_level", poolProperties.ServiceLevel) - sizeInTB := int64(0) sizeInBytes := poolProperties.Size sizeInMB := sizeInBytes / 1024 / 1024 - sizeInTB = sizeInMB / 1024 / 1024 + sizeInTB := sizeInMB / 1024 / 1024 d.Set("size_in_tb", int(sizeInTB)) qosType := "" if poolProperties.QosType != nil { diff --git a/internal/services/netapp/netapp_pool_resource_test.go b/internal/services/netapp/netapp_pool_resource_test.go index 1b05fa0c779b..2afc819cac93 100644 --- a/internal/services/netapp/netapp_pool_resource_test.go +++ b/internal/services/netapp/netapp_pool_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/netapp/netapp_snapshot_data_source.go b/internal/services/netapp/netapp_snapshot_data_source.go index 4c1300a1f1da..cb38e1bfdde9 100644 --- a/internal/services/netapp/netapp_snapshot_data_source.go +++ b/internal/services/netapp/netapp_snapshot_data_source.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/netapp/netapp_snapshot_policy_data_source.go b/internal/services/netapp/netapp_snapshot_policy_data_source.go index 4cb8f42e42a4..0cdff64dc7d7 100644 --- a/internal/services/netapp/netapp_snapshot_policy_data_source.go +++ b/internal/services/netapp/netapp_snapshot_policy_data_source.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" diff --git a/internal/services/netapp/netapp_snapshot_policy_resource.go b/internal/services/netapp/netapp_snapshot_policy_resource.go index 478b708eaabd..2a0511a5c727 100644 --- a/internal/services/netapp/netapp_snapshot_policy_resource.go +++ b/internal/services/netapp/netapp_snapshot_policy_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/netapp/netapp_snapshot_policy_resource_test.go b/internal/services/netapp/netapp_snapshot_policy_resource_test.go index 6728c2c036d4..0e0a9d878ecb 100644 --- a/internal/services/netapp/netapp_snapshot_policy_resource_test.go +++ b/internal/services/netapp/netapp_snapshot_policy_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/netapp/netapp_snapshot_resource.go b/internal/services/netapp/netapp_snapshot_resource.go index 1fc1180191c7..cf729cc41f91 100644 --- a/internal/services/netapp/netapp_snapshot_resource.go +++ b/internal/services/netapp/netapp_snapshot_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/netapp/netapp_snapshot_resource_test.go b/internal/services/netapp/netapp_snapshot_resource_test.go index 498587b03326..6fbc24bfd4d5 100644 --- a/internal/services/netapp/netapp_snapshot_resource_test.go +++ b/internal/services/netapp/netapp_snapshot_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -128,7 +128,15 @@ resource "azurerm_netapp_snapshot" "test" { func (NetAppSnapshotResource) template(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { - features {} + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + netapp { + prevent_volume_destruction = false + delete_backups_on_backup_vault_destroy = true + } + } } resource "azurerm_resource_group" "test" { diff --git a/internal/services/netapp/netapp_volume_data_source.go b/internal/services/netapp/netapp_volume_data_source.go index 49b7d826c0c5..ee6b8b3a5eb5 100644 --- a/internal/services/netapp/netapp_volume_data_source.go +++ b/internal/services/netapp/netapp_volume_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -121,6 +121,29 @@ func dataSourceNetAppVolume() *pluginsdk.Resource { }, }, + "data_protection_backup_policy": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "backup_policy_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "policy_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + + "backup_vault_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + "encryption_key_source": { Type: pluginsdk.TypeString, Computed: true, @@ -212,6 +235,9 @@ func dataSourceNetAppVolumeRead(d *pluginsdk.ResourceData, meta interface{}) err if err := d.Set("data_protection_replication", flattenNetAppVolumeDataProtectionReplication(props.DataProtection)); err != nil { return fmt.Errorf("setting `data_protection_replication`: %+v", err) } + if err := d.Set("data_protection_backup_policy", flattenNetAppVolumeDataProtectionBackupPolicy(props.DataProtection)); err != nil { + return fmt.Errorf("setting `data_protection_backup_policy`: %+v", err) + } } return nil diff --git a/internal/services/netapp/netapp_volume_data_source_test.go b/internal/services/netapp/netapp_volume_data_source_test.go index 9319ae4230a5..20e26ec96948 100644 --- a/internal/services/netapp/netapp_volume_data_source_test.go +++ b/internal/services/netapp/netapp_volume_data_source_test.go @@ -34,6 +34,20 @@ func TestAccDataSourceNetAppVolume_basic(t *testing.T) { }) } +func TestAccDataSourceNetAppVolume_backupPolicy(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_netapp_volume", "test") + r := NetAppVolumeDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: r.backupPolicy(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("data_protection_backup_policy.#").HasValue("1"), + ), + }, + }) +} + func (NetAppVolumeDataSource) basic(data acceptance.TestData) string { return fmt.Sprintf(` %s @@ -44,6 +58,10 @@ provider "azurerm" { resource_group { prevent_deletion_if_contains_resources = false } + netapp { + prevent_volume_destruction = false + delete_backups_on_backup_vault_destroy = true + } } } @@ -55,3 +73,25 @@ data "azurerm_netapp_volume" "test" { } `, NetAppVolumeResource{}.basic(data)) } + +func (NetAppVolumeDataSource) backupPolicy(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +provider "azurerm" { + alias = "all" + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + } +} + +data "azurerm_netapp_volume" "test" { + resource_group_name = azurerm_netapp_volume.test.resource_group_name + account_name = azurerm_netapp_volume.test.account_name + pool_name = azurerm_netapp_volume.test.pool_name + name = azurerm_netapp_volume.test.name +} +`, NetAppVolumeResource{}.backupPolicy(data)) +} diff --git a/internal/services/netapp/netapp_volume_group_sap_hana_data_source.go b/internal/services/netapp/netapp_volume_group_sap_hana_data_source.go index a76fde2697e1..7aedf41ca471 100644 --- a/internal/services/netapp/netapp_volume_group_sap_hana_data_source.go +++ b/internal/services/netapp/netapp_volume_group_sap_hana_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -237,7 +237,6 @@ func (r NetAppVolumeGroupSapHanaDataSource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.NetApp.VolumeGroupClient var state netAppModels.NetAppVolumeGroupSapHanaDataSourceModel @@ -255,7 +254,6 @@ func (r NetAppVolumeGroupSapHanaDataSource) Read() sdk.ResourceFunc { return fmt.Errorf("retrieving %s: %v", id, err) } - metadata.SetID(id) if model := resp.Model; model != nil { state.Location = location.Normalize(pointer.From(model.Location)) if props := model.Properties; props != nil { @@ -272,6 +270,8 @@ func (r NetAppVolumeGroupSapHanaDataSource) Read() sdk.ResourceFunc { } } + metadata.SetID(id) + return metadata.Encode(&state) }, } diff --git a/internal/services/netapp/netapp_volume_group_sap_hana_resource.go b/internal/services/netapp/netapp_volume_group_sap_hana_resource.go index a50240de688e..c8c5e76f1883 100644 --- a/internal/services/netapp/netapp_volume_group_sap_hana_resource.go +++ b/internal/services/netapp/netapp_volume_group_sap_hana_resource.go @@ -15,10 +15,10 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" @@ -336,17 +336,12 @@ func (r NetAppVolumeGroupSapHanaResource) Create() sdk.ResourceFunc { if volumeCrr.Properties.DataProtection != nil && volumeCrr.Properties.DataProtection.Replication != nil && strings.EqualFold(string(pointer.From(volumeCrr.Properties.DataProtection.Replication.EndpointType)), string(volumegroups.EndpointTypeDst)) { - // Modify volumeType as data protection type on main volumeList // so it gets created correctly as data protection volume (pointer.From(volumeList))[i].Properties.VolumeType = utils.String("DataProtection") } } - // TODO: deploymentSpecId is temporary until the backend is updated and deploymentSpecId is not required anymore, - // it will be handled internally by the RP - deploymentSpecId := "20542149-bfca-5618-1879-9863dc6767f1" - parameters := volumegroups.VolumeGroupDetails{ Location: utils.String(location.Normalize(model.Location)), Properties: &volumegroups.VolumeGroupProperties{ @@ -354,7 +349,6 @@ func (r NetAppVolumeGroupSapHanaResource) Create() sdk.ResourceFunc { GroupDescription: utils.String(model.GroupDescription), ApplicationType: pointer.To(volumegroups.ApplicationTypeSAPNegativeHANA), ApplicationIdentifier: utils.String(model.ApplicationIdentifier), - DeploymentSpecId: utils.String(deploymentSpecId), }, Volumes: volumeList, }, @@ -375,7 +369,6 @@ func (r NetAppVolumeGroupSapHanaResource) Create() sdk.ResourceFunc { if volumeCrr.Properties.DataProtection != nil && volumeCrr.Properties.DataProtection.Replication != nil && strings.EqualFold(string(pointer.From(volumeCrr.Properties.DataProtection.Replication.EndpointType)), string(volumegroups.EndpointTypeDst)) { - capacityPoolId, err := capacitypools.ParseCapacityPoolID(pointer.From(volumeCrr.Properties.CapacityPoolResourceId)) if err != nil { return err @@ -432,16 +425,14 @@ func (r NetAppVolumeGroupSapHanaResource) Update() sdk.ResourceFunc { metadata.Logger.Infof("Decoding state for %s", id) var state netAppModels.NetAppVolumeGroupSapHanaModel if err := metadata.Decode(&state); err != nil { - return err + return fmt.Errorf("decoding: %+v", err) } metadata.Logger.Infof("Updating %s", id) if metadata.ResourceData.HasChange("volume") { - // Iterating over each volume and performing individual patch for i := 0; i < metadata.ResourceData.Get("volume.#").(int); i++ { - // Checking if individual volume has a change volumeItem := fmt.Sprintf("volume.%v", i) @@ -451,7 +442,6 @@ func (r NetAppVolumeGroupSapHanaResource) Update() sdk.ResourceFunc { } if metadata.ResourceData.HasChange(volumeItem) { - volumeId := volumes.NewVolumeID(id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, @@ -504,7 +494,6 @@ func (r NetAppVolumeGroupSapHanaResource) Update() sdk.ResourceFunc { dataProtectionReplication.Replication != nil && dataProtectionReplication.Replication.EndpointType != nil && strings.EqualFold(string(pointer.From(dataProtectionReplication.Replication.EndpointType)), string(volumegroups.EndpointTypeDst)) { - return fmt.Errorf("snapshot policy cannot be enabled on a data protection volume, %s", volumeId) } @@ -539,7 +528,6 @@ func (r NetAppVolumeGroupSapHanaResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.NetApp.VolumeGroupClient id, err := volumegroups.ParseVolumeGroupID(metadata.ResourceData.Id()) @@ -550,7 +538,7 @@ func (r NetAppVolumeGroupSapHanaResource) Read() sdk.ResourceFunc { metadata.Logger.Infof("Decoding state for %s", id) var state netAppModels.NetAppVolumeGroupSapHanaModel if err := metadata.Decode(&state); err != nil { - return err + return fmt.Errorf("decoding: %+v", err) } existing, err := client.Get(ctx, pointer.From(id)) @@ -561,8 +549,6 @@ func (r NetAppVolumeGroupSapHanaResource) Read() sdk.ResourceFunc { return fmt.Errorf("retrieving %s: %v", id, err) } - metadata.SetID(id) - model := netAppModels.NetAppVolumeGroupSapHanaModel{ Name: id.VolumeGroupName, AccountName: id.NetAppAccountName, @@ -571,8 +557,8 @@ func (r NetAppVolumeGroupSapHanaResource) Read() sdk.ResourceFunc { } if props := existing.Model.Properties; props != nil { - model.GroupDescription = utils.NormalizeNilableString(props.GroupMetaData.GroupDescription) - model.ApplicationIdentifier = utils.NormalizeNilableString(props.GroupMetaData.ApplicationIdentifier) + model.GroupDescription = pointer.From(props.GroupMetaData.GroupDescription) + model.ApplicationIdentifier = pointer.From(props.GroupMetaData.ApplicationIdentifier) volumes, err := flattenNetAppVolumeGroupVolumes(ctx, props.Volumes, metadata) if err != nil { @@ -582,6 +568,8 @@ func (r NetAppVolumeGroupSapHanaResource) Read() sdk.ResourceFunc { model.Volumes = volumes } + metadata.SetID(id) + return metadata.Encode(&model) }, } @@ -591,7 +579,6 @@ func (r NetAppVolumeGroupSapHanaResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 120 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.NetApp.VolumeGroupClient id, err := volumegroups.ParseVolumeGroupID(metadata.ResourceData.Id()) diff --git a/internal/services/netapp/netapp_volume_group_sap_hana_resource_test.go b/internal/services/netapp/netapp_volume_group_sap_hana_resource_test.go index 1f4046017dce..ed24ff62567b 100644 --- a/internal/services/netapp/netapp_volume_group_sap_hana_resource_test.go +++ b/internal/services/netapp/netapp_volume_group_sap_hana_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" "github.com/hashicorp/terraform-plugin-testing/terraform" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" @@ -136,7 +136,6 @@ func (t NetAppVolumeGroupSapHanaResource) Exists(ctx context.Context, clients *c } resp, err := clients.NetApp.VolumeGroupClient.Get(ctx, *id) - if err != nil { if response.WasNotFound(resp.HttpResponse) { return utils.Bool(false), nil @@ -1606,6 +1605,10 @@ provider "azurerm" { resource_group { prevent_deletion_if_contains_resources = false } + netapp { + prevent_volume_destruction = false + delete_backups_on_backup_vault_destroy = true + } } } diff --git a/internal/services/netapp/netapp_volume_helper.go b/internal/services/netapp/netapp_volume_helper.go index e9e088845dce..67c93b7cfe42 100644 --- a/internal/services/netapp/netapp_volume_helper.go +++ b/internal/services/netapp/netapp_volume_helper.go @@ -6,16 +6,16 @@ package netapp import ( "context" "fmt" - "net/http" "strconv" "strings" "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -23,7 +23,6 @@ import ( ) func expandNetAppVolumeGroupVolumeExportPolicyRule(input []netAppModels.ExportPolicyRule) *volumegroups.VolumePropertiesExportPolicy { - if len(input) == 0 { return &volumegroups.VolumePropertiesExportPolicy{} } @@ -31,7 +30,6 @@ func expandNetAppVolumeGroupVolumeExportPolicyRule(input []netAppModels.ExportPo results := make([]volumegroups.ExportPolicyRule, 0) for _, item := range input { - // Hard-Coded values, for AVG these cannot be set differently // they are not exposed as TF configuration // but PUT request requires those fields to succeed @@ -146,7 +144,7 @@ func expandNetAppVolumeGroupVolumes(input []netAppModels.NetAppVolumeGroupVolume } if v := item.ProximityPlacementGroupId; v != "" { - volumeProperties.Properties.ProximityPlacementGroup = pointer.To(utils.NormalizeNilableString(pointer.To(v))) + volumeProperties.Properties.ProximityPlacementGroup = pointer.To(pointer.From(pointer.To(v))) } results = append(results, *volumeProperties) @@ -275,6 +273,58 @@ func expandNetAppVolumeDataProtectionSnapshotPolicyPatch(input []interface{}) *v } } +func expandNetAppVolumeDataProtectionBackupPolicy(input []interface{}) *volumes.VolumePropertiesDataProtection { + if len(input) == 0 || input == nil { + return &volumes.VolumePropertiesDataProtection{} + } + + backupPolicyObject := volumes.VolumeBackupProperties{} + + backupRaw := input[0].(map[string]interface{}) + + if v, ok := backupRaw["backup_policy_id"]; ok { + backupPolicyObject.BackupPolicyId = utils.String(v.(string)) + } + + if v, ok := backupRaw["policy_enabled"]; ok { + backupPolicyObject.PolicyEnforced = utils.Bool(v.(bool)) + } + + if v, ok := backupRaw["backup_vault_id"]; ok { + backupPolicyObject.BackupVaultId = utils.String(v.(string)) + } + + return &volumes.VolumePropertiesDataProtection{ + Backup: &backupPolicyObject, + } +} + +func expandNetAppVolumeDataProtectionBackupPolicyPatch(input []interface{}) *volumes.VolumePatchPropertiesDataProtection { + if len(input) == 0 || input == nil { + return &volumes.VolumePatchPropertiesDataProtection{} + } + + backupPolicyObject := volumes.VolumeBackupProperties{} + + backupRaw := input[0].(map[string]interface{}) + + if v, ok := backupRaw["backup_policy_id"]; ok { + backupPolicyObject.BackupPolicyId = utils.String(v.(string)) + } + + if v, ok := backupRaw["policy_enabled"]; ok { + backupPolicyObject.PolicyEnforced = utils.Bool(v.(bool)) + } + + if v, ok := backupRaw["backup_vault_id"]; ok { + backupPolicyObject.BackupVaultId = utils.String(v.(string)) + } + + return &volumes.VolumePatchPropertiesDataProtection{ + Backup: &backupPolicyObject, + } +} + func flattenNetAppVolumeGroupVolumes(ctx context.Context, input *[]volumegroups.VolumeGroupVolumeProperties, metadata sdk.ResourceMetaData) ([]netAppModels.NetAppVolumeGroupVolume, error) { results := make([]netAppModels.NetAppVolumeGroupVolume, 0) @@ -290,13 +340,13 @@ func flattenNetAppVolumeGroupVolumes(ctx context.Context, input *[]volumegroups. volumeGroupVolume.VolumePath = props.CreationToken volumeGroupVolume.ServiceLevel = string(pointer.From(props.ServiceLevel)) volumeGroupVolume.SubnetId = props.SubnetId - volumeGroupVolume.CapacityPoolId = utils.NormalizeNilableString(props.CapacityPoolResourceId) + volumeGroupVolume.CapacityPoolId = pointer.From(props.CapacityPoolResourceId) volumeGroupVolume.Protocols = pointer.From(props.ProtocolTypes) volumeGroupVolume.SecurityStyle = string(pointer.From(props.SecurityStyle)) volumeGroupVolume.SnapshotDirectoryVisible = pointer.From(props.SnapshotDirectoryVisible) volumeGroupVolume.ThroughputInMibps = pointer.From(props.ThroughputMibps) volumeGroupVolume.Tags = pointer.From(item.Tags) - volumeGroupVolume.ProximityPlacementGroupId = utils.NormalizeNilableString(props.ProximityPlacementGroup) + volumeGroupVolume.ProximityPlacementGroupId = pointer.From(props.ProximityPlacementGroup) volumeGroupVolume.VolumeSpecName = pointer.From(props.VolumeSpecName) if props.UsageThreshold > 0 { @@ -438,7 +488,7 @@ func deleteVolume(ctx context.Context, metadata sdk.ResourceMetaData, volumeId s existing, err := client.Get(ctx, pointer.From(id)) if err != nil { - if existing.HttpResponse.StatusCode == http.StatusNotFound { + if response.WasNotFound(existing.HttpResponse) { return metadata.MarkAsGone(id) } return fmt.Errorf("retrieving %s: %v", id, err) @@ -495,7 +545,7 @@ func deleteVolume(ctx context.Context, metadata sdk.ResourceMetaData, volumeId s } } - // Deleting volume and waiting for it fo fully complete the operation + // Deleting volume and waiting for it to fully complete the operation if err = client.DeleteThenPoll(ctx, pointer.From(id), volumes.DeleteOperationOptions{ ForceDelete: utils.Bool(true), }); err != nil { @@ -642,6 +692,28 @@ func waitForVolumeDeletion(ctx context.Context, client *volumes.VolumesClient, i return nil } +func waitForBackupRelationshipStateForDeletion(ctx context.Context, client *backups.BackupsClient, id backups.VolumeId) error { + deadline, ok := ctx.Deadline() + if !ok { + return fmt.Errorf("internal-error: context had no deadline") + } + stateConf := &pluginsdk.StateChangeConf{ + ContinuousTargetOccurence: 5, + Delay: 10 * time.Second, + MinTimeout: 10 * time.Second, + Pending: []string{"200"}, // 200 means not in the state we need for backup + Target: []string{"204"}, // 204 means backup is in a state that need (! transitioning) + Refresh: netappVolumeBackupRelationshipStateForDeletionRefreshFunc(ctx, client, id), + Timeout: time.Until(deadline), + } + + if _, err := stateConf.WaitForStateContext(ctx); err != nil { + return fmt.Errorf("waiting for %s to not be in the transferring state", id) + } + + return nil +} + func netappVolumeStateRefreshFunc(ctx context.Context, client *volumes.VolumesClient, id volumes.VolumeId) pluginsdk.StateRefreshFunc { return func() (interface{}, string, error) { res, err := client.Get(ctx, id) @@ -705,6 +777,25 @@ func netappVolumeReplicationMirrorStateRefreshFunc(ctx context.Context, client * } } +func netappVolumeBackupRelationshipStateForDeletionRefreshFunc(ctx context.Context, client *backups.BackupsClient, id backups.VolumeId) pluginsdk.StateRefreshFunc { + return func() (interface{}, string, error) { + res, err := client.GetLatestStatus(ctx, id) + if err != nil { + if !response.WasNotFound(res.HttpResponse) { + return nil, "", fmt.Errorf("retrieving backup relationship status information from %s: %s", id, err) + } + } + + response := 200 + if res.Model != nil && res.Model.RelationshipStatus != nil && *res.Model.RelationshipStatus != backups.RelationshipStatusTransferring { + // return 204 if state matches desired state + response = 204 + } + + return res, strconv.Itoa(response), nil + } +} + func netappVolumeReplicationStateRefreshFunc(ctx context.Context, client *volumesreplication.VolumesReplicationClient, id volumesreplication.VolumeId) pluginsdk.StateRefreshFunc { return func() (interface{}, string, error) { res, err := client.VolumesReplicationStatus(ctx, id) diff --git a/internal/services/netapp/netapp_volume_quota_rule_data_source.go b/internal/services/netapp/netapp_volume_quota_rule_data_source.go index 6c55036c20ca..d7084a0bfdc8 100644 --- a/internal/services/netapp/netapp_volume_quota_rule_data_source.go +++ b/internal/services/netapp/netapp_volume_quota_rule_data_source.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -76,7 +76,6 @@ func (r NetAppVolumeQuotaRuleDataSource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.NetApp.VolumeQuotaRules var state netAppModels.NetAppVolumeQuotaRuleDataSourceModel diff --git a/internal/services/netapp/netapp_volume_quota_rule_resource.go b/internal/services/netapp/netapp_volume_quota_rule_resource.go index 38fe1da9ed12..5dc39c9e63af 100644 --- a/internal/services/netapp/netapp_volume_quota_rule_resource.go +++ b/internal/services/netapp/netapp_volume_quota_rule_resource.go @@ -6,15 +6,14 @@ package netapp import ( "context" "fmt" - "net/http" "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" @@ -155,21 +154,22 @@ func (r NetAppVolumeQuotaRuleResource) Update() sdk.ResourceFunc { metadata.Logger.Infof("Decoding state for %s", id) var state netAppModels.NetAppVolumeQuotaRuleModel if err := metadata.Decode(&state); err != nil { - return err + return fmt.Errorf("decoding: %+v", err) } - metadata.Logger.Infof("Updating %s", id) + if metadata.ResourceData.HasChange("quota_size_in_kib") { + metadata.Logger.Infof("Updating %s", id) - update := volumequotarules.VolumeQuotaRulePatch{ - Properties: &volumequotarules.VolumeQuotaRulesProperties{}, - } + update := volumequotarules.VolumeQuotaRulePatch{ + Properties: &volumequotarules.VolumeQuotaRulesProperties{}, + } - update.Properties.QuotaSizeInKiBs = utils.Int64(state.QuotaSizeInKiB) - if err := client.UpdateThenPoll(ctx, pointer.From(id), update); err != nil { - return fmt.Errorf("updating %s: %+v", id, err) - } + update.Properties.QuotaSizeInKiBs = utils.Int64(state.QuotaSizeInKiB) - metadata.SetID(id) + if err := client.UpdateThenPoll(ctx, pointer.From(id), update); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + } return nil }, @@ -180,7 +180,6 @@ func (r NetAppVolumeQuotaRuleResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.NetApp.VolumeQuotaRules id, err := volumequotarules.ParseVolumeQuotaRuleID(metadata.ResourceData.Id()) @@ -191,12 +190,12 @@ func (r NetAppVolumeQuotaRuleResource) Read() sdk.ResourceFunc { metadata.Logger.Infof("Decoding state for %s", id) var state netAppModels.NetAppVolumeQuotaRuleModel if err := metadata.Decode(&state); err != nil { - return err + return fmt.Errorf("decoding: %+v", err) } existing, err := client.Get(ctx, pointer.From(id)) if err != nil { - if existing.HttpResponse.StatusCode == http.StatusNotFound { + if response.WasNotFound(existing.HttpResponse) { return metadata.MarkAsGone(id) } return fmt.Errorf("retrieving %s: %v", id, err) @@ -207,7 +206,7 @@ func (r NetAppVolumeQuotaRuleResource) Read() sdk.ResourceFunc { model := netAppModels.NetAppVolumeQuotaRuleModel{ Name: id.VolumeQuotaRuleName, VolumeID: volumeID.ID(), - Location: location.NormalizeNilable(pointer.To(existing.Model.Location)), + Location: location.Normalize(existing.Model.Location), QuotaTarget: pointer.From(existing.Model.Properties.QuotaTarget), QuotaSizeInKiB: pointer.From(existing.Model.Properties.QuotaSizeInKiBs), QuotaType: string(pointer.From(existing.Model.Properties.QuotaType)), @@ -224,7 +223,6 @@ func (r NetAppVolumeQuotaRuleResource) Delete() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 120 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.NetApp.VolumeQuotaRules id, err := volumequotarules.ParseVolumeQuotaRuleID(metadata.ResourceData.Id()) @@ -234,7 +232,7 @@ func (r NetAppVolumeQuotaRuleResource) Delete() sdk.ResourceFunc { existing, err := client.Get(ctx, pointer.From(id)) if err != nil { - if existing.HttpResponse.StatusCode == http.StatusNotFound { + if response.WasNotFound(existing.HttpResponse) { return metadata.MarkAsGone(id) } return fmt.Errorf("retrieving %s: %v", id, err) diff --git a/internal/services/netapp/netapp_volume_quota_rule_resource_test.go b/internal/services/netapp/netapp_volume_quota_rule_resource_test.go index 38d1eaf4eab2..06f9ad3405b9 100644 --- a/internal/services/netapp/netapp_volume_quota_rule_resource_test.go +++ b/internal/services/netapp/netapp_volume_quota_rule_resource_test.go @@ -9,7 +9,7 @@ import ( "net/http" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" "github.com/hashicorp/terraform-plugin-testing/terraform" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" @@ -86,7 +86,6 @@ func (t NetAppVolumeQuotaRuleResource) Exists(ctx context.Context, clients *clie } resp, err := clients.NetApp.VolumeQuotaRules.Get(ctx, *id) - if err != nil { if resp.HttpResponse.StatusCode == http.StatusNotFound { return utils.Bool(false), nil @@ -166,6 +165,10 @@ provider "azurerm" { resource_group { prevent_deletion_if_contains_resources = false } + netapp { + prevent_volume_destruction = false + delete_backups_on_backup_vault_destroy = true + } } } diff --git a/internal/services/netapp/netapp_volume_resource.go b/internal/services/netapp/netapp_volume_resource.go index 41f3ccea612f..84a45eb5a9b1 100644 --- a/internal/services/netapp/netapp_volume_resource.go +++ b/internal/services/netapp/netapp_volume_resource.go @@ -15,9 +15,10 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" @@ -268,7 +269,7 @@ func resourceNetAppVolume() *pluginsdk.Resource { "snapshot_directory_visible": { Type: pluginsdk.TypeBool, Optional: true, - Computed: true, + Default: true, }, "data_protection_replication": { @@ -323,6 +324,36 @@ func resourceNetAppVolume() *pluginsdk.Resource { }, }, + "data_protection_backup_policy": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "backup_policy_id": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: azure.ValidateResourceID, + Description: "The ID of the backup policy to associate with this volume.", + }, + + "policy_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: true, + Description: "If set to false, the backup policy will not be enabled on this volume, thus disabling scheduled backups.", + }, + + "backup_vault_id": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: azure.ValidateResourceID, + Description: "The ID of the backup vault to associate with this volume.", + }, + }, + }, + }, + "azure_vmware_data_store_enabled": { Type: pluginsdk.TypeBool, ForceNew: true, @@ -432,25 +463,36 @@ func resourceNetAppVolumeCreate(d *pluginsdk.ResourceData, meta interface{}) err exportPolicyRule := expandNetAppVolumeExportPolicyRule(exportPolicyRuleRaw) dataProtectionReplicationRaw := d.Get("data_protection_replication").([]interface{}) - dataProtectionSnapshotPolicyRaw := d.Get("data_protection_snapshot_policy").([]interface{}) - dataProtectionReplication := expandNetAppVolumeDataProtectionReplication(dataProtectionReplicationRaw) + + dataProtectionSnapshotPolicyRaw := d.Get("data_protection_snapshot_policy").([]interface{}) dataProtectionSnapshotPolicy := expandNetAppVolumeDataProtectionSnapshotPolicy(dataProtectionSnapshotPolicyRaw) + dataProtectionBackupPolicyRaw := d.Get("data_protection_backup_policy").([]interface{}) + dataProtectionBackupPolicy := expandNetAppVolumeDataProtectionBackupPolicy(dataProtectionBackupPolicyRaw) + authorizeReplication := false volumeType := "" + endpointType := "" if dataProtectionReplication != nil && dataProtectionReplication.Replication != nil { - endpointType := "" if dataProtectionReplication.Replication.EndpointType != nil { endpointType = string(*dataProtectionReplication.Replication.EndpointType) } - if strings.ToLower(endpointType) == "dst" { + if strings.EqualFold(endpointType, "dst") { authorizeReplication = true volumeType = "DataProtection" } } - // Validating that snapshot policies are not being created in a data protection volume + // Validate applicability of backup policies + if dataProtectionReplication != nil && dataProtectionReplication.Backup != nil { + // Validate that backup policies are not being enforced in a data protection replication destination volume + if strings.EqualFold(volumeType, "dst") && dataProtectionReplication.Backup.PolicyEnforced == utils.Bool(true) { + return fmt.Errorf("backup policy cannot be enforced on a data protection destination volume, NetApp Volume %q (Resource Group %q)", id.VolumeName, id.ResourceGroupName) + } + } + + // Validating that snapshot policies are not being created in a data protection replication volume if dataProtectionSnapshotPolicy.Snapshot != nil && volumeType != "" { return fmt.Errorf("snapshot policy cannot be enabled on a data protection volume, NetApp Volume %q (Resource Group %q)", id.VolumeName, id.ResourceGroupName) } @@ -541,6 +583,7 @@ func resourceNetAppVolumeCreate(d *pluginsdk.ResourceData, meta interface{}) err DataProtection: &volumes.VolumePropertiesDataProtection{ Replication: dataProtectionReplication.Replication, Snapshot: dataProtectionSnapshotPolicy.Snapshot, + Backup: dataProtectionBackupPolicy.Backup, }, AvsDataStore: &avsDataStoreEnabled, SnapshotDirectoryVisible: utils.Bool(snapshotDirectoryVisible), @@ -612,7 +655,6 @@ func resourceNetAppVolumeUpdate(d *pluginsdk.ResourceData, meta interface{}) err return err } - shouldUpdate := false update := volumes.VolumePatch{ Properties: &volumes.VolumePatchProperties{}, } @@ -621,14 +663,17 @@ func resourceNetAppVolumeUpdate(d *pluginsdk.ResourceData, meta interface{}) err return fmt.Errorf("zone changes are not supported after volume is already created, %s", id) } + if d.HasChange("snapshot_directory_visible") { + snapshotDirectoryVisible := d.Get("snapshot_directory_visible").(bool) + update.Properties.SnapshotDirectoryVisible = pointer.To(snapshotDirectoryVisible) + } + if d.HasChange("storage_quota_in_gb") { - shouldUpdate = true storageQuotaInBytes := int64(d.Get("storage_quota_in_gb").(int) * 1073741824) update.Properties.UsageThreshold = utils.Int64(storageQuotaInBytes) } if d.HasChange("export_policy_rule") { - shouldUpdate = true exportPolicyRuleRaw := d.Get("export_policy_rule").([]interface{}) exportPolicyRule := expandNetAppVolumeExportPolicyRulePatch(exportPolicyRuleRaw) update.Properties.ExportPolicy = exportPolicyRule @@ -639,24 +684,41 @@ func resourceNetAppVolumeUpdate(d *pluginsdk.ResourceData, meta interface{}) err dataProtectionReplicationRaw := d.Get("data_protection_replication").([]interface{}) dataProtectionReplication := expandNetAppVolumeDataProtectionReplication(dataProtectionReplicationRaw) - if dataProtectionReplication != nil && dataProtectionReplication.Replication != nil && dataProtectionReplication.Replication.EndpointType != nil && strings.ToLower(string(*dataProtectionReplication.Replication.EndpointType)) == "dst" { + if dataProtectionReplication != nil && dataProtectionReplication.Replication != nil && dataProtectionReplication.Replication.EndpointType != nil && strings.EqualFold(string(*dataProtectionReplication.Replication.EndpointType), "dst") { return fmt.Errorf("snapshot policy cannot be enabled on a data protection volume, %s", id) } - shouldUpdate = true dataProtectionSnapshotPolicyRaw := d.Get("data_protection_snapshot_policy").([]interface{}) dataProtectionSnapshotPolicy := expandNetAppVolumeDataProtectionSnapshotPolicyPatch(dataProtectionSnapshotPolicyRaw) - update.Properties.DataProtection = dataProtectionSnapshotPolicy + + update.Properties.DataProtection = &volumes.VolumePatchPropertiesDataProtection{} + update.Properties.DataProtection.Snapshot = dataProtectionSnapshotPolicy.Snapshot + } + + if d.HasChange("data_protection_backup_policy") { + // Validate applicability of backup policies + dataProtectionReplicationRaw := d.Get("data_protection_replication").([]interface{}) + dataProtectionReplication := expandNetAppVolumeDataProtectionReplication(dataProtectionReplicationRaw) + + if dataProtectionReplication != nil && dataProtectionReplication.Replication != nil && dataProtectionReplication.Replication.EndpointType != nil && strings.EqualFold(string(*dataProtectionReplication.Replication.EndpointType), "dst") { + return fmt.Errorf("snapshot policy cannot be enabled on a data protection volume, %s", id) + } + + dataProtectionBackupPolicyRaw := d.Get("data_protection_backup_policy").([]interface{}) + dataProtectionBackupPolicy := expandNetAppVolumeDataProtectionBackupPolicyPatch(dataProtectionBackupPolicyRaw) + + if update.Properties.DataProtection == nil { + update.Properties.DataProtection = &volumes.VolumePatchPropertiesDataProtection{} + } + update.Properties.DataProtection.Backup = dataProtectionBackupPolicy.Backup } if d.HasChange("throughput_in_mibps") { - shouldUpdate = true throughputMibps := d.Get("throughput_in_mibps") update.Properties.ThroughputMibps = utils.Float(throughputMibps.(float64)) } if d.HasChange("smb_non_browsable_enabled") { - shouldUpdate = true smbNonBrowsable := volumes.SmbNonBrowsableDisabled update.Properties.SmbNonBrowsable = &smbNonBrowsable if d.Get("smb_non_browsable_enabled").(bool) { @@ -666,7 +728,6 @@ func resourceNetAppVolumeUpdate(d *pluginsdk.ResourceData, meta interface{}) err } if d.HasChange("smb_access_based_enumeration_enabled") { - shouldUpdate = true smbAccessBasedEnumeration := volumes.SmbAccessBasedEnumerationDisabled update.Properties.SmbAccessBasedEnumeration = &smbAccessBasedEnumeration if d.Get("smb_access_based_enumeration_enabled").(bool) { @@ -676,20 +737,17 @@ func resourceNetAppVolumeUpdate(d *pluginsdk.ResourceData, meta interface{}) err } if d.HasChange("tags") { - shouldUpdate = true tagsRaw := d.Get("tags").(map[string]interface{}) update.Tags = tags.Expand(tagsRaw) } - if shouldUpdate { - if err = client.UpdateThenPoll(ctx, *id, update); err != nil { - return fmt.Errorf("updating %s: %+v", id, err) - } + if err = client.UpdateThenPoll(ctx, *id, update); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } - // Wait for volume to complete update - if err := waitForVolumeCreateOrUpdate(ctx, client, *id); err != nil { - return err - } + // Wait for volume to complete update + if err := waitForVolumeCreateOrUpdate(ctx, client, *id); err != nil { + return err } return resourceNetAppVolumeRead(d, meta) @@ -777,6 +835,9 @@ func resourceNetAppVolumeRead(d *pluginsdk.ResourceData, meta interface{}) error if err := d.Set("data_protection_snapshot_policy", flattenNetAppVolumeDataProtectionSnapshotPolicy(props.DataProtection)); err != nil { return fmt.Errorf("setting `data_protection_snapshot_policy`: %+v", err) } + if err := d.Set("data_protection_backup_policy", flattenNetAppVolumeDataProtectionBackupPolicy(props.DataProtection)); err != nil { + return fmt.Errorf("setting `data_protection_backup_policy`: %+v", err) + } return tags.FlattenAndSet(d, model.Tags) } @@ -798,53 +859,121 @@ func resourceNetAppVolumeDelete(d *pluginsdk.ResourceData, meta interface{}) err return fmt.Errorf("fetching netapp error: %+v", err) } + // Preventing unintentional severe data loss + if meta.(*clients.Client).Features.NetApp.PreventVolumeDestruction { + return fmt.Errorf("deleting NetApp Volume %q (Resource Group %q) is not allowed due to prevent_volume_destruction feature flag", id.VolumeName, id.ResourceGroupName) + } + + // Handling DataProtection if netApp.Model != nil && netApp.Model.Properties.DataProtection != nil { - dataProtectionReplication := netApp.Model.Properties.DataProtection - replicaVolumeId, err := volumesreplication.ParseVolumeID(id.ID()) - if err != nil { - return err - } - if dataProtectionReplication.Replication != nil && dataProtectionReplication.Replication.EndpointType != nil && strings.ToLower(string(*dataProtectionReplication.Replication.EndpointType)) != "dst" { - // This is the case where primary volume started the deletion, in this case, to be consistent we will remove replication from secondary - replicaVolumeId, err = volumesreplication.ParseVolumeID(dataProtectionReplication.Replication.RemoteVolumeResourceId) + // Handling Replication before volume deletion + if netApp.Model.Properties.DataProtection.Replication != nil { + dataProtectionReplication := netApp.Model.Properties.DataProtection + replicaVolumeId, err := volumesreplication.ParseVolumeID(id.ID()) if err != nil { return err } - } + if dataProtectionReplication.Replication != nil && dataProtectionReplication.Replication.EndpointType != nil && !(strings.EqualFold(string(*dataProtectionReplication.Replication.EndpointType), "dst")) { + // This is the case where primary volume started the deletion, in this case, to be consistent we will remove replication from secondary + replicaVolumeId, err = volumesreplication.ParseVolumeID(dataProtectionReplication.Replication.RemoteVolumeResourceId) + if err != nil { + return err + } + } - replicationClient := meta.(*clients.Client).NetApp.VolumeReplicationClient - // Checking replication status before deletion, it needs to be broken before proceeding with deletion - if res, err := replicationClient.VolumesReplicationStatus(ctx, *replicaVolumeId); err == nil { - // Wait for replication state = "mirrored" - if model := res.Model; model != nil { - if model.MirrorState != nil && strings.ToLower(string(*model.MirrorState)) == "uninitialized" { - if err := waitForReplMirrorState(ctx, replicationClient, *replicaVolumeId, "mirrored"); err != nil { - return fmt.Errorf("waiting for replica %s to become 'mirrored': %+v", *replicaVolumeId, err) + replicationClient := meta.(*clients.Client).NetApp.VolumeReplicationClient + // Checking replication status before deletion, it needs to be broken before proceeding with deletion + if res, err := replicationClient.VolumesReplicationStatus(ctx, *replicaVolumeId); err == nil { + // Wait for replication state = "mirrored" + if model := res.Model; model != nil { + if model.MirrorState != nil && strings.ToLower(string(*model.MirrorState)) == "uninitialized" { + if err := waitForReplMirrorState(ctx, replicationClient, *replicaVolumeId, "mirrored"); err != nil { + return fmt.Errorf("waiting for replica %s to become 'mirrored': %+v", *replicaVolumeId, err) + } } } + + // Breaking replication + if err = replicationClient.VolumesBreakReplicationThenPoll(ctx, *replicaVolumeId, volumesreplication.BreakReplicationRequest{ + ForceBreakReplication: utils.Bool(true), + }); err != nil { + return fmt.Errorf("breaking replication for %s: %+v", *replicaVolumeId, err) + } + + // Waiting for replication be in broken state + log.Printf("[DEBUG] Waiting for the replication of %s to be in broken state", *replicaVolumeId) + if err := waitForReplMirrorState(ctx, replicationClient, *replicaVolumeId, "broken"); err != nil { + return fmt.Errorf("waiting for the breaking of replication for %s: %+v", *replicaVolumeId, err) + } } - // Breaking replication - if err = replicationClient.VolumesBreakReplicationThenPoll(ctx, *replicaVolumeId, volumesreplication.BreakReplicationRequest{ - ForceBreakReplication: utils.Bool(true), - }); err != nil { - return fmt.Errorf("breaking replication for %s: %+v", *replicaVolumeId, err) + // Deleting replication and waiting for it to fully complete the operation + if _, err = replicationClient.VolumesDeleteReplication(ctx, *replicaVolumeId); err != nil { + return fmt.Errorf("deleting replicate %s: %+v", *replicaVolumeId, err) } - // Waiting for replication be in broken state - log.Printf("[DEBUG] Waiting for the replication of %s to be in broken state", *replicaVolumeId) - if err := waitForReplMirrorState(ctx, replicationClient, *replicaVolumeId, "broken"); err != nil { - return fmt.Errorf("waiting for the breaking of replication for %s: %+v", *replicaVolumeId, err) + if err := waitForReplicationDeletion(ctx, replicationClient, *replicaVolumeId); err != nil { + return fmt.Errorf("waiting for the replica %s to be deleted: %+v", *replicaVolumeId, err) } } - // Deleting replication and waiting for it to fully complete the operation - if _, err = replicationClient.VolumesDeleteReplication(ctx, *replicaVolumeId); err != nil { - return fmt.Errorf("deleting replicate %s: %+v", *replicaVolumeId, err) - } + // Handling Backup before volume deletion + if netApp.Model.Properties.DataProtection.Backup != nil { + dataProtectionBackup := netApp.Model.Properties.DataProtection + + if dataProtectionBackup.Backup != nil { + // Checking if initial backup is in progress + volumeIdFromBackupClient := backups.NewVolumeID(id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, id.CapacityPoolName, id.VolumeName) + backupClient := meta.(*clients.Client).NetApp.BackupClient + if err = waitForBackupRelationshipStateForDeletion(ctx, backupClient, volumeIdFromBackupClient); err != nil { + return fmt.Errorf("waiting for of %s: %+v", *id, err) + } + + // Disabling backup policy first, PolicyEnforced and BackupPolicyId can't be sent together + disableBackupPolicy := volumes.VolumePatch{ + Properties: &volumes.VolumePatchProperties{ + DataProtection: &volumes.VolumePatchPropertiesDataProtection{ + Backup: &volumes.VolumeBackupProperties{ + PolicyEnforced: utils.Bool(false), + }, + }, + }, + } + + if err = client.UpdateThenPoll(ctx, *id, disableBackupPolicy); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + + // Wait for volume to complete update + if err := waitForVolumeCreateOrUpdate(ctx, client, *id); err != nil { + return err + } + + // Checking again if backup is in progress + if err = waitForBackupRelationshipStateForDeletion(ctx, backupClient, volumeIdFromBackupClient); err != nil { + return fmt.Errorf("waiting for of %s: %+v", *id, err) + } - if err := waitForReplicationDeletion(ctx, replicationClient, *replicaVolumeId); err != nil { - return fmt.Errorf("waiting for the replica %s to be deleted: %+v", *replicaVolumeId, err) + // Removing BackupPolicyId + backupPolicyIdRemoval := volumes.VolumePatch{ + Properties: &volumes.VolumePatchProperties{ + DataProtection: &volumes.VolumePatchPropertiesDataProtection{ + Backup: &volumes.VolumeBackupProperties{ + BackupPolicyId: pointer.To(""), + }, + }, + }, + } + + if err = client.UpdateThenPoll(ctx, *id, backupPolicyIdRemoval); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } + + // Wait for volume to complete update + if err := waitForVolumeCreateOrUpdate(ctx, client, *id); err != nil { + return err + } + } } } @@ -999,29 +1128,29 @@ func flattenNetAppVolumeExportPolicyRule(input *volumes.VolumePropertiesExportPo } protocolsEnabled := []string{} - if utils.NormaliseNilableBool(item.Cifs) { + if pointer.From(item.Cifs) { protocolsEnabled = append(protocolsEnabled, "CIFS") } - if utils.NormaliseNilableBool(item.Nfsv3) { + if pointer.From(item.Nfsv3) { protocolsEnabled = append(protocolsEnabled, "NFSv3") } - if utils.NormaliseNilableBool(item.Nfsv41) { + if pointer.From(item.Nfsv41) { protocolsEnabled = append(protocolsEnabled, "NFSv4.1") } result := map[string]interface{}{ "allowed_clients": utils.FlattenStringSlice(&allowedClients), - "kerberos_5_read_only_enabled": utils.NormaliseNilableBool(item.Kerberos5ReadOnly), - "kerberos_5_read_write_enabled": utils.NormaliseNilableBool(item.Kerberos5ReadWrite), - "kerberos_5i_read_only_enabled": utils.NormaliseNilableBool(item.Kerberos5iReadOnly), - "kerberos_5i_read_write_enabled": utils.NormaliseNilableBool(item.Kerberos5iReadWrite), - "kerberos_5p_read_only_enabled": utils.NormaliseNilableBool(item.Kerberos5pReadOnly), - "kerberos_5p_read_write_enabled": utils.NormaliseNilableBool(item.Kerberos5pReadWrite), + "kerberos_5_read_only_enabled": pointer.From(item.Kerberos5ReadOnly), + "kerberos_5_read_write_enabled": pointer.From(item.Kerberos5ReadWrite), + "kerberos_5i_read_only_enabled": pointer.From(item.Kerberos5iReadOnly), + "kerberos_5i_read_write_enabled": pointer.From(item.Kerberos5iReadWrite), + "kerberos_5p_read_only_enabled": pointer.From(item.Kerberos5pReadOnly), + "kerberos_5p_read_write_enabled": pointer.From(item.Kerberos5pReadWrite), "protocols_enabled": utils.FlattenStringSlice(&protocolsEnabled), - "root_access_enabled": utils.NormaliseNilableBool(item.HasRootAccess), + "root_access_enabled": pointer.From(item.HasRootAccess), "rule_index": ruleIndex, - "unix_read_only": utils.NormaliseNilableBool(item.UnixReadOnly), - "unix_read_write": utils.NormaliseNilableBool(item.UnixReadWrite), + "unix_read_only": pointer.From(item.UnixReadOnly), + "unix_read_write": pointer.From(item.UnixReadWrite), } results = append(results, result) } @@ -1049,7 +1178,7 @@ func flattenNetAppVolumeDataProtectionReplication(input *volumes.VolumePropertie return []interface{}{} } - if strings.ToLower(string(*input.Replication.EndpointType)) == "" || strings.ToLower(string(*input.Replication.EndpointType)) != "dst" { + if strings.ToLower(string(*input.Replication.EndpointType)) == "" || !(strings.EqualFold(string(*input.Replication.EndpointType), "dst")) { return []interface{}{} } @@ -1079,3 +1208,33 @@ func flattenNetAppVolumeDataProtectionSnapshotPolicy(input *volumes.VolumeProper }, } } + +func flattenNetAppVolumeDataProtectionBackupPolicy(input *volumes.VolumePropertiesDataProtection) []interface{} { + if input == nil || input.Backup == nil { + return []interface{}{} + } + + backupPolicyID := "" + policyEnforced := false + backupVaultID := "" + + if input.Backup.BackupPolicyId != nil { + backupPolicyID = pointer.From(input.Backup.BackupPolicyId) + } + + if input.Backup.PolicyEnforced != nil { + policyEnforced = pointer.From(input.Backup.PolicyEnforced) + } + + if input.Backup.BackupVaultId != nil { + backupVaultID = pointer.From(input.Backup.BackupVaultId) + } + + return []interface{}{ + map[string]interface{}{ + "backup_policy_id": backupPolicyID, + "policy_enabled": policyEnforced, + "backup_vault_id": backupVaultID, + }, + } +} diff --git a/internal/services/netapp/netapp_volume_resource_test.go b/internal/services/netapp/netapp_volume_resource_test.go index 67741b47f512..01b05f92dd38 100644 --- a/internal/services/netapp/netapp_volume_resource_test.go +++ b/internal/services/netapp/netapp_volume_resource_test.go @@ -10,7 +10,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -35,16 +35,37 @@ func TestAccNetAppVolume_basic(t *testing.T) { }) } -func TestAccNetAppVolume_smbEncryption(t *testing.T) { +func TestAccNetAppVolume_backupPolicy(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_netapp_volume", "test") r := NetAppVolumeResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.smbEncryption(data), + Config: r.backupPolicy(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccNetAppVolume_backupPolicyUpdate(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_netapp_volume", "test") + r := NetAppVolumeResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.backupPolicy(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.updateBackupPolicy(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("smb3_protocol_encryption_enabled").HasValue("true"), ), }, data.ImportStep(), @@ -498,49 +519,118 @@ resource "azurerm_netapp_volume" "test" { `, cmkUserAssginedTemplate, networkTemplate, data.RandomInteger) } -func (NetAppVolumeResource) basic(data acceptance.TestData) string { +func (NetAppVolumeResource) backupPolicy(data acceptance.TestData) string { template := NetAppVolumeResource{}.template(data) return fmt.Sprintf(` -%s +%[1]s + +resource "azurerm_netapp_backup_vault" "test" { + name = "acctest-NetAppBackupVault-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name + + tags = { + "testTag" = "testTagValue" + } +} + +resource "azurerm_netapp_backup_policy" "test" { + name = "acctest-NetAppBackupPolicy-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name + daily_backups_to_keep = 2 + weekly_backups_to_keep = 2 + monthly_backups_to_keep = 2 + enabled = true +} resource "azurerm_netapp_volume" "test" { - name = "acctest-NetAppVolume-%d" + name = "acctest-NetAppVolume-%[2]d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name account_name = azurerm_netapp_account.test.name pool_name = azurerm_netapp_pool.test.name - volume_path = "my-unique-file-path-%d" + volume_path = "my-unique-file-path-%[2]d" service_level = "Standard" subnet_id = azurerm_subnet.test.id storage_quota_in_gb = 100 - throughput_in_mibps = 1.562 + throughput_in_mibps = 10 + + data_protection_backup_policy { + backup_vault_id = azurerm_netapp_backup_vault.test.id + backup_policy_id = azurerm_netapp_backup_policy.test.id + policy_enabled = true + } +} +`, template, data.RandomInteger) +} + +func (NetAppVolumeResource) updateBackupPolicy(data acceptance.TestData) string { + template := NetAppVolumeResource{}.template(data) + return fmt.Sprintf(` +%[1]s + +resource "azurerm_netapp_backup_vault" "test" { + name = "acctest-NetAppBackupVault-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name tags = { - "CreatedOnDate" = "2022-07-08T23:50:21Z", - "SkipASMAzSecPack" = "true" + "testTag" = "testTagValue" } } -`, template, data.RandomInteger, data.RandomInteger) + +resource "azurerm_netapp_backup_policy" "test" { + name = "acctest-NetAppBackupPolicy-%[2]d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_name = azurerm_netapp_account.test.name + daily_backups_to_keep = 2 + weekly_backups_to_keep = 2 + monthly_backups_to_keep = 2 + enabled = true } -func (NetAppVolumeResource) smbEncryption(data acceptance.TestData) string { - template := NetAppVolumeResource{}.templateSmbEncryption(data) +resource "azurerm_netapp_volume" "test" { + name = "acctest-NetAppVolume-%[2]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + account_name = azurerm_netapp_account.test.name + pool_name = azurerm_netapp_pool.test.name + volume_path = "my-unique-file-path-%[2]d" + service_level = "Standard" + subnet_id = azurerm_subnet.test.id + storage_quota_in_gb = 100 + throughput_in_mibps = 10 + + data_protection_backup_policy { + backup_vault_id = azurerm_netapp_backup_vault.test.id + backup_policy_id = azurerm_netapp_backup_policy.test.id + policy_enabled = false + } +} +`, template, data.RandomInteger) +} + +func (NetAppVolumeResource) basic(data acceptance.TestData) string { + template := NetAppVolumeResource{}.template(data) return fmt.Sprintf(` %s resource "azurerm_netapp_volume" "test" { - name = "acctest-NetAppVolume-smbencryption-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - account_name = azurerm_netapp_account.test.name - pool_name = azurerm_netapp_pool.test.name - volume_path = "my-unique-file-path-%d" - service_level = "Standard" - subnet_id = azurerm_subnet.test.id - storage_quota_in_gb = 100 - throughput_in_mibps = 1.562 - protocols = ["CIFS"] - smb3_protocol_encryption_enabled = true + name = "acctest-NetAppVolume-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + account_name = azurerm_netapp_account.test.name + pool_name = azurerm_netapp_pool.test.name + volume_path = "my-unique-file-path-%d" + service_level = "Standard" + subnet_id = azurerm_subnet.test.id + storage_quota_in_gb = 100 + throughput_in_mibps = 1.562 tags = { "CreatedOnDate" = "2022-07-08T23:50:21Z", @@ -700,7 +790,7 @@ resource "azurerm_netapp_volume" "test_primary" { subnet_id = azurerm_subnet.test.id protocols = ["NFSv3"] storage_quota_in_gb = 100 - snapshot_directory_visible = false + snapshot_directory_visible = true throughput_in_mibps = 1.562 export_policy_rule { @@ -728,7 +818,7 @@ resource "azurerm_netapp_volume" "test_secondary" { subnet_id = azurerm_subnet.test_secondary.id protocols = ["NFSv3"] storage_quota_in_gb = 100 - snapshot_directory_visible = false + snapshot_directory_visible = true throughput_in_mibps = 1.562 export_policy_rule { @@ -1203,111 +1293,9 @@ resource "azurerm_netapp_pool" "test_secondary" { `, r.template(data), data.RandomInteger, "eastus2") } -func (NetAppVolumeResource) templateSmbEncryption(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - alias = "all1" - features { - resource_group { - prevent_deletion_if_contains_resources = false - } - } -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-netapp-%d" - location = "%s" - - tags = { - "CreatedOnDate" = "2022-07-08T23:50:21Z", - "SkipASMAzSecPack" = "true", - "SkipNRMSNSG" = "true" - } -} - -resource "azurerm_virtual_network" "test" { - name = "acctest-VirtualNetwork-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - address_space = ["10.6.0.0/16"] - - tags = { - "CreatedOnDate" = "2022-07-08T23:50:21Z", - "SkipASMAzSecPack" = "true" - } -} - -resource "azurerm_subnet" "test" { - name = "acctest-Subnet-%d" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.6.2.0/24"] - - delegation { - name = "testdelegation" - - service_delegation { - name = "Microsoft.Netapp/volumes" - actions = ["Microsoft.Network/networkinterfaces/*", "Microsoft.Network/virtualNetworks/subnets/join/action"] - } - } -} - -resource "azurerm_netapp_account" "test" { - name = "acctest-NetAppAccount-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - active_directory { - username = "aduser" - password = "aduserpwd" - smb_server_name = "SMB-SERVER" - dns_servers = ["1.2.3.4", "1.2.3.5"] - domain = "westcentralus.com" - organizational_unit = "OU=FirstLevel" - site_name = "My-Site-Name" - kerberos_ad_name = "My-AD-Server" - kerberos_kdc_ip = "192.168.1.1" - aes_encryption_enabled = true - local_nfs_users_with_ldap_allowed = true - ldap_over_tls_enabled = true - server_root_ca_certificate = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNZekNDQWN5Z0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREF1TVFzd0NRWURWUVFHRXdKVlV6RU0gCk1Bb0dBMVVFQ2hNRFNVSk5NUkV3RHdZRFZRUUxFd2hNYjJOaGJDQkRRVEFlRncwNU9URXlNakl3TlRBd01EQmEgCkZ3MHdNREV5TWpNd05EVTVOVGxhTUM0eEN6QUpCZ05WQkFZVEFsVlRNUXd3Q2dZRFZRUUtFd05KUWsweEVUQVAgCkJnTlZCQXNUQ0V4dlkyRnNJRU5CTUlHZk1BMEdDU3FHU0liM0RRRUJBUVVBQTRHTkFEQ0JpUUtCZ1FEMmJaRW8gCjd4R2FYMi8wR0hrck5GWnZseEJvdTl2MUptdC9QRGlUTVB2ZThyOUZlSkFRMFFkdkZTVC8wSlBRWUQyMHJIMGIgCmltZERMZ05kTnlubXlSb1MyUy9JSW5mcG1mNjlpeWMyRzBUUHlSdm1ISWlPWmJkQ2QrWUJIUWkxYWRrajE3TkQgCmNXajZTMTR0VnVyRlg3M3p4MHNOb01TNzlxM3R1WEtyRHN4ZXV3SURBUUFCbzRHUU1JR05NRXNHQ1ZVZER3R0cgCitFSUJEUVErRXp4SFpXNWxjbUYwWldRZ1lua2dkR2hsSUZObFkzVnlaVmRoZVNCVFpXTjFjbWwwZVNCVFpYSjIgClpYSWdabTl5SUU5VEx6TTVNQ0FvVWtGRFJpa3dEZ1lEVlIwUEFRSC9CQVFEQWdBR01BOEdBMVVkRXdFQi93UUYgCk1BTUJBZjh3SFFZRFZSME9CQllFRkozK29jUnlDVEp3MDY3ZExTd3IvbmFseDZZTU1BMEdDU3FHU0liM0RRRUIgCkJRVUFBNEdCQU1hUXp0K3phajFHVTc3eXpscjhpaU1CWGdkUXJ3c1paV0pvNWV4bkF1Y0pBRVlRWm1PZnlMaU0gCkQ2b1lxK1puZnZNMG44Ry9ZNzlxOG5od3Z1eHBZT25SU0FYRnA2eFNrcklPZVp0Sk1ZMWgwMExLcC9KWDNOZzEgCnN2WjJhZ0UxMjZKSHNRMGJoek41VEtzWWZid2ZUd2ZqZFdBR3k2VmYxbllpL3JPK3J5TU8KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLSA=" - ldap_signing_enabled = true - } - - tags = { - "CreatedOnDate" = "2022-07-08T23:50:21Z", - "SkipASMAzSecPack" = "true" - } -} - -resource "azurerm_netapp_pool" "test" { - name = "acctest-NetAppPool-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - account_name = azurerm_netapp_account.test.name - service_level = "Standard" - size_in_tb = 4 - qos_type = "Manual" - - tags = { - "CreatedOnDate" = "2022-07-08T23:50:21Z", - "SkipASMAzSecPack" = "true" - } -} -`, data.RandomInteger, "westeurope", data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - -func (NetAppVolumeResource) template(data acceptance.TestData) string { +func (r NetAppVolumeResource) template(data acceptance.TestData) string { return fmt.Sprintf(` -provider "azurerm" { - alias = "all1" - features { - resource_group { - prevent_deletion_if_contains_resources = false - } - } -} +%s resource "azurerm_resource_group" "test" { name = "acctestRG-netapp-%d" @@ -1373,19 +1361,12 @@ resource "azurerm_netapp_pool" "test" { "SkipASMAzSecPack" = "true" } } -`, data.RandomInteger, "westus2", data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) +`, r.templateProviderFeatureFlags(), data.RandomInteger, "westus2", data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) } -func (NetAppVolumeResource) templatePoolQosManual(data acceptance.TestData) string { +func (r NetAppVolumeResource) templatePoolQosManual(data acceptance.TestData) string { return fmt.Sprintf(` -provider "azurerm" { - alias = "all2" - features { - resource_group { - prevent_deletion_if_contains_resources = false - } - } -} +%s resource "azurerm_resource_group" "test" { name = "acctestRG-netapp-%d" @@ -1463,13 +1444,15 @@ resource "azurerm_netapp_pool" "test" { "SkipASMAzSecPack" = "true" } } -`, data.RandomInteger, "westus2", data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) +`, r.templateProviderFeatureFlags(), data.RandomInteger, "westus2", data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) } -func (NetAppVolumeResource) networkTemplate(data acceptance.TestData) string { +func (r NetAppVolumeResource) networkTemplate(data acceptance.TestData) string { return fmt.Sprintf(` +%[1]s + resource "azurerm_virtual_network" "test" { - name = "acctest-VirtualNetwork-%[1]d" + name = "acctest-VirtualNetwork-%[2]d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name address_space = ["10.6.0.0/16"] @@ -1481,7 +1464,7 @@ resource "azurerm_virtual_network" "test" { } resource "azurerm_subnet" "test-delegated" { - name = "acctest-Delegated-Subnet-%[1]d" + name = "acctest-Delegated-Subnet-%[2]d" resource_group_name = azurerm_resource_group.test.name virtual_network_name = azurerm_virtual_network.test.name address_prefixes = ["10.6.1.0/24"] @@ -1497,10 +1480,26 @@ resource "azurerm_subnet" "test-delegated" { } resource "azurerm_subnet" "test-non-delegated" { - name = "acctest-Non-Delegated-Subnet-%[1]d" + name = "acctest-Non-Delegated-Subnet-%[2]d" resource_group_name = azurerm_resource_group.test.name virtual_network_name = azurerm_virtual_network.test.name address_prefixes = ["10.6.0.0/24"] } -`, data.RandomInteger) +`, r.templateProviderFeatureFlags(), data.RandomInteger) +} + +func (NetAppVolumeResource) templateProviderFeatureFlags() string { + return ` +provider "azurerm" { + features { + resource_group { + prevent_deletion_if_contains_resources = false + } + netapp { + prevent_volume_destruction = false + delete_backups_on_backup_vault_destroy = true + } + } +} +` } diff --git a/internal/services/netapp/registration.go b/internal/services/netapp/registration.go index cf758c73f21c..9b0e86bee0e8 100644 --- a/internal/services/netapp/registration.go +++ b/internal/services/netapp/registration.go @@ -55,6 +55,8 @@ func (r Registration) DataSources() []sdk.DataSource { NetAppVolumeGroupSapHanaDataSource{}, NetAppVolumeQuotaRuleDataSource{}, NetAppAccountEncryptionDataSource{}, + NetAppBackupVaultDataSource{}, + NetAppBackupPolicyDataSource{}, } } @@ -64,5 +66,7 @@ func (r Registration) Resources() []sdk.Resource { NetAppVolumeGroupSapHanaResource{}, NetAppVolumeQuotaRuleResource{}, NetAppAccountEncryptionResource{}, + NetAppBackupVaultResource{}, + NetAppBackupPolicyResource{}, } } diff --git a/internal/services/netapp/validate/account_id.go b/internal/services/netapp/validate/account_id.go index 9d204ef701d8..b9dfdb5d7551 100644 --- a/internal/services/netapp/validate/account_id.go +++ b/internal/services/netapp/validate/account_id.go @@ -6,7 +6,7 @@ package validate import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" ) func ValidateNetAppAccountID(input interface{}, key string) (warnings []string, errors []error) { diff --git a/internal/services/netapp/validate/account_id_test.go b/internal/services/netapp/validate/account_id_test.go index 443ea971276c..1ea63d5718d9 100644 --- a/internal/services/netapp/validate/account_id_test.go +++ b/internal/services/netapp/validate/account_id_test.go @@ -10,7 +10,6 @@ func TestDataFlowID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/netapp/validate/backup_policy_validation.go b/internal/services/netapp/validate/backup_policy_validation.go new file mode 100644 index 000000000000..b25bbc905f0b --- /dev/null +++ b/internal/services/netapp/validate/backup_policy_validation.go @@ -0,0 +1,34 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validate + +import ( + "fmt" +) + +const ( + maximumAllowedCombinedRetentionCount = 1019 +) + +func ValidateNetAppBackupPolicyCombinedRetention(dailyBackupsToKeep, weeklyBackupsToKeep, monthlyBackupsToKeep int64) []error { + errors := make([]error, 0) + + // Validates that the combined retention count is less than the maximum allowed + if dailyBackupsToKeep+weeklyBackupsToKeep+monthlyBackupsToKeep > maximumAllowedCombinedRetentionCount { + errors = append(errors, fmt.Errorf("the combined retention count of daily_backups_to_keep, weekly_backups_to_keep, and monthly_backups_to_keep must be less than or equal to %d", maximumAllowedCombinedRetentionCount)) + } + + return errors +} + +// TODO: Validating that the policy attached to a secondary CRR volume (destination) is not enabled for backup +func ValidateNetAppBackupPolicyForSecondaryCRRVolume(backupPolicyEnabled bool) []error { + errors := make([]error, 0) + + if backupPolicyEnabled { + errors = append(errors, fmt.Errorf("backup policy cannot be enabled on a secondary CRR volume")) + } + + return errors +} diff --git a/internal/services/netapp/validate/backup_policy_validation_test.go b/internal/services/netapp/validate/backup_policy_validation_test.go new file mode 100644 index 000000000000..132db1def2df --- /dev/null +++ b/internal/services/netapp/validate/backup_policy_validation_test.go @@ -0,0 +1,58 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validate + +import ( + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy" +) + +const ( + minDataDailyBackupsToKeep int64 = 10 + minDataWeeklyBackupsToKeep int64 = 10 + minDataMonthlyBackupsToKeep int64 = 10 + + maxDataDailyBackupsToKeep int64 = 1019 + maxDataWeeklyBackupsToKeep int64 = 1019 + maxDataMonthlyBackupsToKeep int64 = 1019 +) + +func TestValidateNetAppBackupPolicyCombinedRetention(t *testing.T) { + cases := []struct { + Name string + BackupPolicyData backuppolicy.BackupPolicyProperties + Errors int + }{ + { + Name: "ValidateCombinedRetentionWithValidValues", + BackupPolicyData: backuppolicy.BackupPolicyProperties{ + DailyBackupsToKeep: pointer.To(minDataDailyBackupsToKeep), + WeeklyBackupsToKeep: pointer.To(minDataWeeklyBackupsToKeep), + MonthlyBackupsToKeep: pointer.To(minDataMonthlyBackupsToKeep), + }, + Errors: 0, + }, + { + Name: "ValidateCombinedRetentionWithValidValuesMaximumReachedFailure", + BackupPolicyData: backuppolicy.BackupPolicyProperties{ + DailyBackupsToKeep: pointer.To(maxDataDailyBackupsToKeep), + WeeklyBackupsToKeep: pointer.To(maxDataWeeklyBackupsToKeep), + MonthlyBackupsToKeep: pointer.To(maxDataMonthlyBackupsToKeep), + }, + Errors: 1, + }, + } + + for _, tc := range cases { + t.Run(tc.Name, func(t *testing.T) { + errors := ValidateNetAppBackupPolicyCombinedRetention(pointer.From(tc.BackupPolicyData.DailyBackupsToKeep), pointer.From(tc.BackupPolicyData.WeeklyBackupsToKeep), pointer.From(tc.BackupPolicyData.MonthlyBackupsToKeep)) + + if len(errors) != tc.Errors { + t.Fatalf("expected ValidateUnixUserIDOrGroupID to return %d error(s) not %d\nError List: \n%v", tc.Errors, len(errors), errors) + } + }) + } +} diff --git a/internal/services/netapp/validate/volume_group_sap_hana_volumes_export_policy_validation.go b/internal/services/netapp/validate/volume_group_sap_hana_volumes_export_policy_validation.go index 93a930c7e701..1adfea70124e 100644 --- a/internal/services/netapp/validate/volume_group_sap_hana_volumes_export_policy_validation.go +++ b/internal/services/netapp/validate/volume_group_sap_hana_volumes_export_policy_validation.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" ) func ValidateNetAppVolumeGroupExportPolicyRuleSAPHanna(rule volumegroups.ExportPolicyRule, protocolType string) []error { diff --git a/internal/services/netapp/validate/volume_group_sap_hana_volumes_export_policy_validation_test.go b/internal/services/netapp/validate/volume_group_sap_hana_volumes_export_policy_validation_test.go index dfebadc3ac4e..c2416e3d8aca 100644 --- a/internal/services/netapp/validate/volume_group_sap_hana_volumes_export_policy_validation_test.go +++ b/internal/services/netapp/validate/volume_group_sap_hana_volumes_export_policy_validation_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" "github.com/hashicorp/terraform-provider-azurerm/utils" ) diff --git a/internal/services/netapp/validate/volume_group_sap_hana_volumes_validation.go b/internal/services/netapp/validate/volume_group_sap_hana_volumes_validation.go index ec27e6f3add1..be863b92a9b8 100644 --- a/internal/services/netapp/validate/volume_group_sap_hana_volumes_validation.go +++ b/internal/services/netapp/validate/volume_group_sap_hana_volumes_validation.go @@ -8,8 +8,7 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" - "github.com/hashicorp/terraform-provider-azurerm/utils" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" ) type VolumeSpecNameSapHana string @@ -74,7 +73,6 @@ func ValidateNetAppVolumeGroupSAPHanaVolumes(volumeList *[]volumegroups.VolumeGr // Validating each volume for _, volume := range pointer.From(volumeList) { - // Get protocol list protocolTypeList := pointer.From(volume.Properties.ProtocolTypes) protocolType := "" @@ -111,7 +109,6 @@ func ValidateNetAppVolumeGroupSAPHanaVolumes(volumeList *[]volumegroups.VolumeGr (strings.EqualFold(pointer.From(volume.Properties.VolumeSpecName), string(VolumeSpecNameSapHanaData)) || strings.EqualFold(pointer.From(volume.Properties.VolumeSpecName), string(VolumeSpecNameSapHanaShared)) || strings.EqualFold(pointer.From(volume.Properties.VolumeSpecName), string(VolumeSpecNameSapHanaLog))) { - errors = append(errors, fmt.Errorf("'nfsv3 on data, log and shared volumes for %v is not supported on volume %v'", applicationType, pointer.From(volume.Name))) } @@ -127,7 +124,6 @@ func ValidateNetAppVolumeGroupSAPHanaVolumes(volumeList *[]volumegroups.VolumeGr volume.Properties.DataProtection != nil && volume.Properties.DataProtection.Replication != nil && strings.EqualFold(string(pointer.From(volume.Properties.DataProtection.Replication.EndpointType)), string(volumegroups.EndpointTypeDst)) { - errors = append(errors, fmt.Errorf("'log volume spec type cannot be DataProtection type for %v on volume %v'", applicationType, pointer.From(volume.Name))) } @@ -135,15 +131,13 @@ func ValidateNetAppVolumeGroupSAPHanaVolumes(volumeList *[]volumegroups.VolumeGr if volume.Properties.DataProtection != nil && volume.Properties.DataProtection.Snapshot != nil && (volume.Properties.DataProtection.Replication != nil && strings.EqualFold(string(pointer.From(volume.Properties.DataProtection.Replication.EndpointType)), string(volumegroups.EndpointTypeDst))) { - errors = append(errors, fmt.Errorf("'snapshot policy cannot be enabled on a data protection volume for %v on volume %v'", applicationType, pointer.From(volume.Name))) } // Validating that data-backup and log-backup don't have PPG defined if (strings.EqualFold(pointer.From(volume.Properties.VolumeSpecName), string(VolumeSpecNameSapHanaDataBackup)) || strings.EqualFold(pointer.From(volume.Properties.VolumeSpecName), string(VolumeSpecNameSapHanaLogBackup))) && - utils.NormalizeNilableString(volume.Properties.ProximityPlacementGroup) != "" { - + pointer.From(volume.Properties.ProximityPlacementGroup) != "" { errors = append(errors, fmt.Errorf("'%v volume spec type cannot have PPG defined for %v on volume %v'", pointer.From(volume.Properties.VolumeSpecName), applicationType, pointer.From(volume.Name))) } @@ -151,8 +145,7 @@ func ValidateNetAppVolumeGroupSAPHanaVolumes(volumeList *[]volumegroups.VolumeGr if (strings.EqualFold(pointer.From(volume.Properties.VolumeSpecName), string(VolumeSpecNameSapHanaData)) || strings.EqualFold(pointer.From(volume.Properties.VolumeSpecName), string(VolumeSpecNameSapHanaLog)) || strings.EqualFold(pointer.From(volume.Properties.VolumeSpecName), string(VolumeSpecNameSapHanaShared))) && - utils.NormalizeNilableString(volume.Properties.ProximityPlacementGroup) == "" { - + pointer.From(volume.Properties.ProximityPlacementGroup) == "" { errors = append(errors, fmt.Errorf("'%v volume spec type must have PPG defined for %v on volume %v'", pointer.From(volume.Properties.VolumeSpecName), applicationType, pointer.From(volume.Name))) } diff --git a/internal/services/netapp/validate/volume_group_sap_hana_volumes_validation_test.go b/internal/services/netapp/validate/volume_group_sap_hana_volumes_validation_test.go index af1a109d8b0c..a01d28537ac9 100644 --- a/internal/services/netapp/validate/volume_group_sap_hana_volumes_validation_test.go +++ b/internal/services/netapp/validate/volume_group_sap_hana_volumes_validation_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" "github.com/hashicorp/terraform-provider-azurerm/utils" ) diff --git a/internal/services/netapp/validate/volume_quota_rule_quota_target_id_unix_validation_test.go b/internal/services/netapp/validate/volume_quota_rule_quota_target_id_unix_validation_test.go index 884db310776f..51fcf816d33d 100644 --- a/internal/services/netapp/validate/volume_quota_rule_quota_target_id_unix_validation_test.go +++ b/internal/services/netapp/validate/volume_quota_rule_quota_target_id_unix_validation_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" ) func TestValidateNetAppVolumeQuotaRulesUnix(t *testing.T) { diff --git a/internal/services/netapp/validate/volume_quota_rule_quota_target_id_windows_validation_test.go b/internal/services/netapp/validate/volume_quota_rule_quota_target_id_windows_validation_test.go index fc52132d24f8..67f2a92c9f6f 100644 --- a/internal/services/netapp/validate/volume_quota_rule_quota_target_id_windows_validation_test.go +++ b/internal/services/netapp/validate/volume_quota_rule_quota_target_id_windows_validation_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" ) func TestValidateNetAppVolumeQuotaRules(t *testing.T) { diff --git a/internal/services/netapp/validate/volume_quota_rule_quota_target_validation_test.go b/internal/services/netapp/validate/volume_quota_rule_quota_target_validation_test.go index ed72508569b8..7f5df51f0306 100644 --- a/internal/services/netapp/validate/volume_quota_rule_quota_target_validation_test.go +++ b/internal/services/netapp/validate/volume_quota_rule_quota_target_validation_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" ) func TestValidateNetAppVolumeQuotaRulesQuotaType(t *testing.T) { diff --git a/internal/services/netapp/validate/volume_quota_rule_quota_validations.go b/internal/services/netapp/validate/volume_quota_rule_quota_validations.go index c53e7b421298..3f388d7555c4 100644 --- a/internal/services/netapp/validate/volume_quota_rule_quota_validations.go +++ b/internal/services/netapp/validate/volume_quota_rule_quota_validations.go @@ -9,8 +9,8 @@ import ( "net/http" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" netAppModels "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/models" ) @@ -35,7 +35,6 @@ func ValidateNetAppVolumeQuotaRule(ctx context.Context, volumeID volumes.VolumeI // NFS Volume must not have Windows SIDs if len(pointer.From(volume.Model.Properties.ProtocolTypes)) == 1 && (findStringInSlice(pointer.From(volume.Model.Properties.ProtocolTypes), "nfsv3") || findStringInSlice(pointer.From(volume.Model.Properties.ProtocolTypes), "nfsv4.1")) { - if pointer.To(rule.QuotaTarget) != nil && rule.QuotaTarget != "" { _, errList := ValidateWindowsSID(&rule.QuotaTarget, rule.QuotaTarget) if len(errList) == 0 { @@ -46,7 +45,6 @@ func ValidateNetAppVolumeQuotaRule(ctx context.Context, volumeID volumes.VolumeI // CIFS Volume must not have Windows SIDs if len(pointer.From(volume.Model.Properties.ProtocolTypes)) == 1 && findStringInSlice(pointer.From(volume.Model.Properties.ProtocolTypes), "cifs") { - if pointer.To(rule.QuotaTarget) != nil && rule.QuotaTarget != "" { _, errList := ValidateUnixUserIDOrGroupID(&rule.QuotaTarget, rule.QuotaTarget) if len(errList) == 0 { diff --git a/internal/services/network/application_gateway_data_source.go b/internal/services/network/application_gateway_data_source.go index b61c61908dc7..b4dc5040ef61 100644 --- a/internal/services/network/application_gateway_data_source.go +++ b/internal/services/network/application_gateway_data_source.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/application_gateway_resource.go b/internal/services/network/application_gateway_resource.go index 0028ec225f34..6512e8908f71 100644 --- a/internal/services/network/application_gateway_resource.go +++ b/internal/services/network/application_gateway_resource.go @@ -19,8 +19,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" @@ -512,12 +512,9 @@ func resourceApplicationGateway() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ "status_code": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice([]string{ - string(applicationgateways.ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree), - string(applicationgateways.ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo), - }, false), + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice(applicationgateways.PossibleValuesForApplicationGatewayCustomErrorStatusCode(), false), }, "custom_error_page_url": { @@ -811,6 +808,7 @@ func resourceApplicationGateway() *pluginsdk.Resource { Type: pluginsdk.TypeString, Required: true, ValidateFunc: validation.StringInSlice([]string{ + string(applicationgateways.ApplicationGatewaySkuNameBasic), string(applicationgateways.ApplicationGatewaySkuNameStandardSmall), string(applicationgateways.ApplicationGatewaySkuNameStandardMedium), string(applicationgateways.ApplicationGatewaySkuNameStandardLarge), @@ -825,6 +823,7 @@ func resourceApplicationGateway() *pluginsdk.Resource { Type: pluginsdk.TypeString, Required: true, ValidateFunc: validation.StringInSlice([]string{ + string(applicationgateways.ApplicationGatewayTierBasic), string(applicationgateways.ApplicationGatewayTierStandard), string(applicationgateways.ApplicationGatewayTierStandardVTwo), string(applicationgateways.ApplicationGatewayTierWAF), @@ -1517,12 +1516,9 @@ func resourceApplicationGateway() *pluginsdk.Resource { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ "status_code": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice([]string{ - string(applicationgateways.ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree), - string(applicationgateways.ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo), - }, false), + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice(applicationgateways.PossibleValuesForApplicationGatewayCustomErrorStatusCode(), false), }, "custom_error_page_url": { @@ -4709,12 +4705,53 @@ func checkSslPolicy(sslPolicy []interface{}) error { return nil } +func checkBasicSkuFeatures(d *pluginsdk.ResourceDiff) error { + _, hasAutoscaleConfig := d.GetOk("autoscale_configuration.0") + if hasAutoscaleConfig { + return fmt.Errorf("The Application Gateway does not support `autoscale_configuration` blocks for the selected SKU tier %q", applicationgateways.ApplicationGatewaySkuNameBasic) + } + + capacity, hasCapacityConfig := d.GetOk("sku.0.capacity") + if hasCapacityConfig { + if capacity.(int) > 2 || capacity.(int) < 1 { + return fmt.Errorf("`capacity` value %q for the selected SKU tier %q is invalid. Value must be between [1-2]", capacity, applicationgateways.ApplicationGatewaySkuNameBasic) + } + } else { + return fmt.Errorf("The Application Gateway must specify a `capacity` value between [1-2] for the selected SKU tier %q", applicationgateways.ApplicationGatewaySkuNameBasic) + } + + _, hasMtlsConfig := d.GetOk("trusted_client_certificate") + if hasMtlsConfig { + return fmt.Errorf("The Application Gateway does not support `trusted_client_certificate` blocks for the selected SKU tier %q", applicationgateways.ApplicationGatewaySkuNameBasic) + } + + rewriteRuleSet, hasRewriteRuleSetConfig := d.GetOk("rewrite_rule_set") + if hasRewriteRuleSetConfig { + for _, ruleSet := range rewriteRuleSet.([]interface{}) { + rs := ruleSet.(map[string]interface{}) + for _, rule := range rs["rewrite_rule"].([]interface{}) { + r := rule.(map[string]interface{}) + if len(r["url"].([]interface{})) > 0 { + return fmt.Errorf("The Application Gateway does not support `url` inside the `rewrite_rule` blocks for the selected SKU tier %q", applicationgateways.ApplicationGatewaySkuNameBasic) + } + } + } + } + + return nil +} + func applicationGatewayCustomizeDiff(ctx context.Context, d *pluginsdk.ResourceDiff, _ interface{}) error { _, hasAutoscaleConfig := d.GetOk("autoscale_configuration.0") capacity, hasCapacity := d.GetOk("sku.0.capacity") tier := d.Get("sku.0.tier").(string) - if !hasAutoscaleConfig && !hasCapacity { + if tier == string(applicationgateways.ApplicationGatewaySkuNameBasic) { + err := checkBasicSkuFeatures(d) + if err != nil { + return err + } + } else if !hasAutoscaleConfig && !hasCapacity { return fmt.Errorf("The Application Gateway must specify either `capacity` or `autoscale_configuration` for the selected SKU tier %q", tier) } @@ -4784,7 +4821,7 @@ func applicationGatewayHttpListnerHash(v interface{}) int { buf.WriteString(statusCode.(string)) } if pageUrl, ok := customError["custom_error_page_url"]; ok { - buf.WriteString(fmt.Sprintf(pageUrl.(string))) + buf.WriteString(pageUrl.(string)) } } } diff --git a/internal/services/network/application_gateway_resource_test.go b/internal/services/network/application_gateway_resource_test.go index 0ee0de00fb24..3c39264bacf0 100644 --- a/internal/services/network/application_gateway_resource_test.go +++ b/internal/services/network/application_gateway_resource_test.go @@ -14,7 +14,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -32,8 +32,8 @@ func TestAccApplicationGateway_basic(t *testing.T) { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku.0.name").HasValue("Standard_Small"), - check.That(data.ResourceName).Key("sku.0.tier").HasValue("Standard"), + check.That(data.ResourceName).Key("sku.0.name").HasValue("Standard_v2"), + check.That(data.ResourceName).Key("sku.0.tier").HasValue("Standard_v2"), check.That(data.ResourceName).Key("sku.0.capacity").HasValue("2"), check.That(data.ResourceName).Key("waf_configuration.#").HasValue("0"), ), @@ -713,8 +713,8 @@ func TestAccApplicationGateway_webApplicationFirewall(t *testing.T) { Config: r.webApplicationFirewall(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku.0.name").HasValue("WAF_Medium"), - check.That(data.ResourceName).Key("sku.0.tier").HasValue("WAF"), + check.That(data.ResourceName).Key("sku.0.name").HasValue("WAF_v2"), + check.That(data.ResourceName).Key("sku.0.tier").HasValue("WAF_v2"), check.That(data.ResourceName).Key("sku.0.capacity").HasValue("1"), check.That(data.ResourceName).Key("waf_configuration.0.enabled").HasValue("true"), check.That(data.ResourceName).Key("waf_configuration.0.firewall_mode").HasValue("Detection"), @@ -745,8 +745,8 @@ func TestAccApplicationGateway_connectionDraining(t *testing.T) { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("sku.0.name").HasValue("Standard_Small"), - check.That(data.ResourceName).Key("sku.0.tier").HasValue("Standard"), + check.That(data.ResourceName).Key("sku.0.name").HasValue("Standard_v2"), + check.That(data.ResourceName).Key("sku.0.tier").HasValue("Standard_v2"), check.That(data.ResourceName).Key("sku.0.capacity").HasValue("2"), check.That(data.ResourceName).Key("waf_configuration.#").HasValue("0"), acceptance.TestCheckNoResourceAttr(data.ResourceName, "backend_http_settings.0.connection_draining.0.enabled"), @@ -1320,6 +1320,24 @@ func TestAccApplicationGateway_removeFirewallPolicy(t *testing.T) { }) } +func TestAccApplicationGateway_basicSku(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_application_gateway", "test") + r := ApplicationGatewayResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic_basicSku(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("sku.0.name").HasValue("Basic"), + check.That(data.ResourceName).Key("sku.0.tier").HasValue("Basic"), + check.That(data.ResourceName).Key("sku.0.capacity").IsNotEmpty(), + ), + }, + data.ImportStep(), + }) +} + func (t ApplicationGatewayResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := applicationgateways.ParseApplicationGatewayID(state.ID) if err != nil { @@ -1354,8 +1372,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -1399,6 +1417,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -1584,6 +1603,97 @@ resource "azurerm_application_gateway" "test" { `, r.template(data), data.RandomInteger, data.RandomInteger) } +func (r ApplicationGatewayResource) basic_basicSku(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +# since these variables are re-used - a locals block makes this more maintainable +locals { + backend_address_pool_name = "${azurerm_virtual_network.test.name}-beap" + frontend_port_name = "${azurerm_virtual_network.test.name}-feport" + frontend_ip_configuration_name = "${azurerm_virtual_network.test.name}-feip" + http_setting_name = "${azurerm_virtual_network.test.name}-be-htst" + listener_name = "${azurerm_virtual_network.test.name}-httplstn" + request_routing_rule_name = "${azurerm_virtual_network.test.name}-rqrt" +} + +resource "azurerm_public_ip" "test_standard" { + name = "acctest-pubip-standard" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + allocation_method = "Static" + sku = "Standard" +} + +resource "azurerm_application_gateway" "test" { + name = "acctestag-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + sku { + name = "Basic" + tier = "Basic" + capacity = 2 + } + + gateway_ip_configuration { + name = "my-gateway-ip-configuration" + subnet_id = azurerm_subnet.test.id + } + + frontend_port { + name = local.frontend_port_name + port = 80 + } + + frontend_ip_configuration { + name = local.frontend_ip_configuration_name + public_ip_address_id = azurerm_public_ip.test_standard.id + } + + backend_address_pool { + name = local.backend_address_pool_name + } + + backend_http_settings { + name = local.http_setting_name + cookie_based_affinity = "Disabled" + port = 80 + protocol = "Http" + request_timeout = 1 + } + + http_listener { + name = local.listener_name + frontend_ip_configuration_name = local.frontend_ip_configuration_name + frontend_port_name = local.frontend_port_name + protocol = "Http" + } + + request_routing_rule { + name = local.request_routing_rule_name + priority = 100 + rule_type = "Basic" + http_listener_name = local.listener_name + backend_address_pool_name = local.backend_address_pool_name + backend_http_settings_name = local.http_setting_name + } + + rewrite_rule_set { + name = "add_headers_for_signin" + rewrite_rule { + name = "SetHeaders" + rule_sequence = 100 + request_header_configuration { + header_name = "X-Forwarded-Prefix" + header_value = "/adminportal" + } + } + } +} +`, r.template(data), data.RandomInteger) +} + func (r ApplicationGatewayResource) createGlobalConfiguration(data acceptance.TestData) string { return fmt.Sprintf(` %s @@ -2109,8 +2219,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -2155,6 +2265,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -2181,8 +2292,8 @@ resource "azurerm_application_gateway" "test" { enable_http2 = true sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -2226,6 +2337,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -2241,8 +2353,8 @@ resource "azurerm_application_gateway" "import" { location = azurerm_application_gateway.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -2286,6 +2398,7 @@ resource "azurerm_application_gateway" "import" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.basic(data)) @@ -2312,8 +2425,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -2366,6 +2479,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -2737,8 +2851,8 @@ resource "azurerm_application_gateway" "test" { force_firewall_policy_association = %t sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -2782,6 +2896,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger, forceFirewallPolicyAssociation) @@ -3266,8 +3381,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -3320,6 +3435,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -3445,8 +3561,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -3489,6 +3605,7 @@ resource "azurerm_application_gateway" "test" { rule_type = "PathBasedRouting" url_path_map_name = local.url_path_map_name http_listener_name = local.listener_name + priority = 10 } url_path_map { @@ -3533,8 +3650,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -3577,6 +3694,7 @@ resource "azurerm_application_gateway" "test" { rule_type = "PathBasedRouting" url_path_map_name = local.url_path_map_name http_listener_name = local.listener_name + priority = 10 } redirect_configuration { @@ -3630,8 +3748,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -3688,6 +3806,7 @@ resource "azurerm_application_gateway" "test" { rule_type = "Basic" http_listener_name = local.listener_name redirect_configuration_name = local.redirect_configuration_name + priority = 10 } redirect_configuration { @@ -3726,8 +3845,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -3783,6 +3902,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name redirect_configuration_name = local.redirect_configuration_name + priority = 10 } redirect_configuration { @@ -3824,8 +3944,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -3880,6 +4000,7 @@ resource "azurerm_application_gateway" "test" { rule_type = "PathBasedRouting" url_path_map_name = local.url_path_map_name http_listener_name = local.listener_name + priority = 10 } url_path_map { @@ -3946,8 +4067,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -4022,6 +4143,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -4049,8 +4171,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -4128,6 +4250,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -4154,8 +4277,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -4211,6 +4334,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -4328,8 +4452,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -4375,6 +4499,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger, hostName, pick) @@ -4481,8 +4606,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -4527,6 +4652,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -4873,8 +4999,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -4919,6 +5045,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } ssl_certificate { @@ -4951,8 +5078,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -4997,6 +5124,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } ssl_certificate { @@ -5029,8 +5157,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -5075,6 +5203,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } ssl_certificate { @@ -5158,8 +5287,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -5203,6 +5332,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } ssl_certificate { @@ -5241,8 +5371,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -5286,6 +5416,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } ssl_certificate { @@ -5323,8 +5454,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "WAF_Medium" - tier = "WAF" + name = "WAF_v2" + tier = "WAF_v2" capacity = 1 } @@ -5378,6 +5509,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -5404,8 +5536,8 @@ resource "azurerm_application_gateway" "test" { enable_http2 = true sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -5454,6 +5586,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -6234,8 +6367,8 @@ resource "azurerm_public_ip" "test" { name = "acctest-pubip-%d" location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name - allocation_method = "Dynamic" - sku = "Basic" + allocation_method = "Static" + sku = "Standard" } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger) } @@ -6262,8 +6395,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -6305,10 +6438,45 @@ resource "azurerm_application_gateway" "test" { custom_error_page_url = "http://azure.com/error403_listener.html" } + custom_error_configuration { + status_code = "HttpStatus404" + custom_error_page_url = "http://azure.com/error404_listener.html" + } + + custom_error_configuration { + status_code = "HttpStatus405" + custom_error_page_url = "http://azure.com/error405_listener.html" + } + + custom_error_configuration { + status_code = "HttpStatus408" + custom_error_page_url = "http://azure.com/error408_listener.html" + } + + custom_error_configuration { + status_code = "HttpStatus400" + custom_error_page_url = "http://azure.com/error400_listener.html" + } + custom_error_configuration { status_code = "HttpStatus502" custom_error_page_url = "http://azure.com/error502_listener.html" } + + custom_error_configuration { + status_code = "HttpStatus503" + custom_error_page_url = "http://azure.com/error503_listener.html" + } + + custom_error_configuration { + status_code = "HttpStatus504" + custom_error_page_url = "http://azure.com/error504_listener.html" + } + + custom_error_configuration { + status_code = "HttpStatus500" + custom_error_page_url = "http://azure.com/error500_listener.html" + } } custom_error_configuration { @@ -6316,17 +6484,53 @@ resource "azurerm_application_gateway" "test" { custom_error_page_url = "http://azure.com/error.html" } + custom_error_configuration { + status_code = "HttpStatus404" + custom_error_page_url = "http://azure.com/error.html" + } + + custom_error_configuration { + status_code = "HttpStatus405" + custom_error_page_url = "http://azure.com/error.html" + } + + custom_error_configuration { + status_code = "HttpStatus408" + custom_error_page_url = "http://azure.com/error.html" + } + + custom_error_configuration { + status_code = "HttpStatus400" + custom_error_page_url = "http://azure.com/error.html" + } + custom_error_configuration { status_code = "HttpStatus502" custom_error_page_url = "http://azure.com/error.html" } + custom_error_configuration { + status_code = "HttpStatus503" + custom_error_page_url = "http://azure.com/error.html" + } + + custom_error_configuration { + status_code = "HttpStatus504" + custom_error_page_url = "http://azure.com/error.html" + } + + custom_error_configuration { + status_code = "HttpStatus500" + custom_error_page_url = "http://azure.com/error.html" + } + request_routing_rule { name = local.request_routing_rule_name rule_type = "Basic" http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -6904,8 +7108,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -6950,6 +7154,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -6975,8 +7180,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -7020,6 +7225,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -7052,8 +7258,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -7097,6 +7303,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger, data.RandomInteger) @@ -7209,8 +7416,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -7265,6 +7472,7 @@ resource "azurerm_application_gateway" "test" { rule_type = "PathBasedRouting" url_path_map_name = local.url_path_map_name http_listener_name = local.listener_name + priority = 10 } url_path_map { @@ -7330,8 +7538,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -7376,6 +7584,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -8125,8 +8334,8 @@ resource "azurerm_application_gateway" "test" { fips_enabled = %t sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -8170,6 +8379,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger, enableFips) @@ -8196,8 +8406,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -8248,6 +8458,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -8274,8 +8485,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -8321,6 +8532,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) @@ -8346,8 +8558,8 @@ resource "azurerm_application_gateway" "test" { location = azurerm_resource_group.test.location sku { - name = "Standard_Small" - tier = "Standard" + name = "Standard_v2" + tier = "Standard_v2" capacity = 2 } @@ -8390,6 +8602,7 @@ resource "azurerm_application_gateway" "test" { http_listener_name = local.listener_name backend_address_pool_name = local.backend_address_pool_name backend_http_settings_name = local.http_setting_name + priority = 10 } } `, r.template(data), data.RandomInteger) diff --git a/internal/services/network/application_security_group_data_source.go b/internal/services/network/application_security_group_data_source.go index 0eca83eb102d..62b316e8504f 100644 --- a/internal/services/network/application_security_group_data_source.go +++ b/internal/services/network/application_security_group_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/application_security_group_resource.go b/internal/services/network/application_security_group_resource.go index 3dfc86efef93..70c508b0187c 100644 --- a/internal/services/network/application_security_group_resource.go +++ b/internal/services/network/application_security_group_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/application_security_group_resource_test.go b/internal/services/network/application_security_group_resource_test.go index b599e2c48b03..483b3eeaa098 100644 --- a/internal/services/network/application_security_group_resource_test.go +++ b/internal/services/network/application_security_group_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/bastion_host_data_source.go b/internal/services/network/bastion_host_data_source.go index 927f4aa14877..096bb378cd36 100644 --- a/internal/services/network/bastion_host_data_source.go +++ b/internal/services/network/bastion_host_data_source.go @@ -10,6 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -104,6 +105,8 @@ func dataSourceBastionHost() *pluginsdk.Resource { "resource_group_name": commonschema.ResourceGroupNameForDataSource(), "tags": commonschema.TagsDataSource(), + + "zones": commonschema.ZonesMultipleComputed(), }, } } @@ -133,6 +136,7 @@ func dataSourceBastionHostRead(d *pluginsdk.ResourceData, meta interface{}) erro skuName = string(*sku.Name) } d.Set("sku", skuName) + d.Set("zones", zones.FlattenUntyped(model.Zones)) if props := model.Properties; props != nil { d.Set("dns_name", props.DnsName) diff --git a/internal/services/network/bastion_host_data_source_test.go b/internal/services/network/bastion_host_data_source_test.go index c7ab367c939a..3e9159d67aef 100644 --- a/internal/services/network/bastion_host_data_source_test.go +++ b/internal/services/network/bastion_host_data_source_test.go @@ -13,14 +13,15 @@ import ( type BastionHostDataSource struct{} -func TestAccBastionHostDataSource_basic(t *testing.T) { +func TestAccBastionHostDataSource_complete(t *testing.T) { data := acceptance.BuildTestData(t, "data.azurerm_bastion_host", "test") r := BastionHostDataSource{} data.DataSourceTest(t, []acceptance.TestStep{ { - Config: r.basic(data), + Config: r.complete(data), Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("copy_paste_enabled").Exists(), check.That(data.ResourceName).Key("id").Exists(), check.That(data.ResourceName).Key("location").Exists(), check.That(data.ResourceName).Key("sku").Exists(), @@ -33,12 +34,15 @@ func TestAccBastionHostDataSource_basic(t *testing.T) { check.That(data.ResourceName).Key("ip_configuration.0.name").Exists(), check.That(data.ResourceName).Key("ip_configuration.0.subnet_id").Exists(), check.That(data.ResourceName).Key("ip_configuration.0.public_ip_address_id").Exists(), + check.That(data.ResourceName).Key("tags.%").HasValue("1"), + check.That(data.ResourceName).Key("tags.environment").HasValue("production"), + check.That(data.ResourceName).Key("zones.#").HasValue("3"), ), }, }) } -func (BastionHostDataSource) basic(data acceptance.TestData) string { +func (BastionHostDataSource) complete(data acceptance.TestData) string { return fmt.Sprintf(` %s @@ -46,5 +50,5 @@ data "azurerm_bastion_host" "test" { name = azurerm_bastion_host.test.name resource_group_name = azurerm_bastion_host.test.resource_group_name } -`, BastionHostResource{}.basic(data)) +`, BastionHostResource{}.complete(data)) } diff --git a/internal/services/network/bastion_host_resource.go b/internal/services/network/bastion_host_resource.go index f4736ac10ea4..e53597785990 100644 --- a/internal/services/network/bastion_host_resource.go +++ b/internal/services/network/bastion_host_resource.go @@ -15,7 +15,9 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" @@ -160,6 +162,8 @@ func resourceBastionHost() *pluginsdk.Resource { }, "tags": commonschema.Tags(), + + "zones": commonschema.ZonesMultipleOptionalForceNew(), }, CustomizeDiff: pluginsdk.CustomDiffWithAll( @@ -272,6 +276,11 @@ func resourceBastionHostCreate(d *pluginsdk.ResourceData, meta interface{}) erro parameters.Properties.EnableSessionRecording = pointer.To(sessionRecordingEnabled) } + zones := zones.ExpandUntyped(d.Get("zones").(*schema.Set).List()) + if len(zones) > 0 { + parameters.Zones = pointer.To(zones) + } + if v, ok := d.GetOk("virtual_network_id"); ok { if sku != bastionhosts.BastionHostSkuNameDeveloper { return fmt.Errorf("`virtual_network_id` is only supported when `sku` is `Developer`") @@ -379,7 +388,10 @@ func resourceBastionHostUpdate(d *pluginsdk.ResourceData, meta interface{}) erro if d.HasChange("tags") { payload.Tags = tags.Expand(d.Get("tags").(map[string]interface{})) + } + if d.HasChange("zones") { + payload.Zones = pointer.To(zones.ExpandUntyped(d.Get("zones").(*schema.Set).List())) } if err := client.CreateOrUpdateThenPoll(ctx, *id, *payload); err != nil { @@ -421,6 +433,8 @@ func resourceBastionHostRead(d *pluginsdk.ResourceData, meta interface{}) error d.Set("sku", string(*sku.Name)) } + d.Set("zones", zones.FlattenUntyped(model.Zones)) + if props := model.Properties; props != nil { d.Set("dns_name", props.DnsName) d.Set("scale_units", props.ScaleUnits) diff --git a/internal/services/network/bastion_host_resource_test.go b/internal/services/network/bastion_host_resource_test.go index f0adc58f988f..a67d89dd00f6 100644 --- a/internal/services/network/bastion_host_resource_test.go +++ b/internal/services/network/bastion_host_resource_test.go @@ -57,6 +57,7 @@ func TestAccBastionHost_complete(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), check.That(data.ResourceName).Key("tags.%").HasValue("1"), check.That(data.ResourceName).Key("tags.environment").HasValue("production"), + check.That(data.ResourceName).Key("zones.#").HasValue("3"), ), }, data.ImportStep(), @@ -298,6 +299,7 @@ resource "azurerm_public_ip" "test" { resource_group_name = azurerm_resource_group.test.name allocation_method = "Static" sku = "Standard" + zones = ["1", "2", "3"] } resource "azurerm_bastion_host" "test" { @@ -305,6 +307,7 @@ resource "azurerm_bastion_host" "test" { location = azurerm_resource_group.test.location resource_group_name = azurerm_resource_group.test.name copy_paste_enabled = false + zones = azurerm_public_ip.test.zones ip_configuration { name = "ip-configuration" diff --git a/internal/services/network/client/client.go b/internal/services/network/client/client.go index 7544c886d824..b5d5488a5094 100644 --- a/internal/services/network/client/client.go +++ b/internal/services/network/client/client.go @@ -8,14 +8,14 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses" - network_2023_11_01 "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts" + network_2024_03_01 "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01" "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) type Client struct { - *network_2023_11_01.Client + *network_2024_03_01.Client BastionHostsClient *bastionhosts.BastionHostsClient // VMSS Data Source requires the Network Interfaces and VMSSPublicIpAddresses client from `2023-09-01` for the `ListVirtualMachineScaleSetVMNetworkInterfacesComplete` method @@ -42,7 +42,7 @@ func NewClient(o *common.ClientOptions) (*Client, error) { } o.Configure(VMSSPublicIPAddressesClient.Client, o.Authorizers.ResourceManager) - client, err := network_2023_11_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { + client, err := network_2024_03_01.NewClientWithBaseURI(o.Environment.ResourceManager, func(c *resourcemanager.Client) { o.Configure(c, o.Authorizers.ResourceManager) }) if err != nil { diff --git a/internal/services/network/custom_ip_prefix_resource.go b/internal/services/network/custom_ip_prefix_resource.go index aa04c68bcf6e..886427e5ee16 100644 --- a/internal/services/network/custom_ip_prefix_resource.go +++ b/internal/services/network/custom_ip_prefix_resource.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -38,9 +38,7 @@ type CustomIpPrefixModel struct { Zones []string `tfschema:"zones"` } -var ( - _ sdk.ResourceWithUpdate = CustomIpPrefixResource{} -) +var _ sdk.ResourceWithUpdate = CustomIpPrefixResource{} type CustomIpPrefixResource struct { client *customipprefixes.CustomIPPrefixesClient @@ -57,6 +55,7 @@ func (CustomIpPrefixResource) ModelObject() interface{} { func (CustomIpPrefixResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return customipprefixes.ValidateCustomIPPrefixID } + func (r CustomIpPrefixResource) Arguments() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "name": { @@ -521,7 +520,6 @@ func (r CustomIpPrefixResource) updateCommissionedState(ctx context.Context, id for startingState, path := range plan { // Look for a plan that works from our lastKnownState if *lastKnownState == startingState || transitioningStatesFor(startingState).contains(*lastKnownState) { - // If we're currently transitioning to the startingState for this plan, wait for this to complete before proceeding if lastKnownState, err = r.waitForCommissionedState(ctx, id, transitioningStatesFor(startingState), commissionedStates{startingState}); err != nil { return lastKnownState, err diff --git a/internal/services/network/custom_ip_prefix_resource_test.go b/internal/services/network/custom_ip_prefix_resource_test.go index e81388cc7f81..3473d7782466 100644 --- a/internal/services/network/custom_ip_prefix_resource_test.go +++ b/internal/services/network/custom_ip_prefix_resource_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/custompollers/local_network_gateway_poller.go b/internal/services/network/custompollers/local_network_gateway_poller.go index 3b501f12390b..94bc038957e8 100644 --- a/internal/services/network/custompollers/local_network_gateway_poller.go +++ b/internal/services/network/custompollers/local_network_gateway_poller.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" ) diff --git a/internal/services/network/deprecated.go b/internal/services/network/deprecated.go index 5e54118fa55d..31bf7cc1f84e 100644 --- a/internal/services/network/deprecated.go +++ b/internal/services/network/deprecated.go @@ -4,7 +4,7 @@ package network import ( - "fmt" + "errors" "strings" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -13,15 +13,15 @@ import ( // NOTE: these methods are deprecated, but provided to ease compatibility for open PR's func evaluateSchemaValidateFunc(i interface{}, k string, validateFunc pluginsdk.SchemaValidateFunc) (bool, error) { // nolint: unparam - _, errors := validateFunc(i, k) + _, errs := validateFunc(i, k) errorStrings := []string{} - for _, e := range errors { + for _, e := range errs { errorStrings = append(errorStrings, e.Error()) } - if len(errors) > 0 { - return false, fmt.Errorf(strings.Join(errorStrings, "\n")) + if len(errs) > 0 { + return false, errors.New(strings.Join(errorStrings, "\n")) } return true, nil diff --git a/internal/services/network/express_route_circuit_authorization_resource.go b/internal/services/network/express_route_circuit_authorization_resource.go index a21629e8bb8f..7c302fe02535 100644 --- a/internal/services/network/express_route_circuit_authorization_resource.go +++ b/internal/services/network/express_route_circuit_authorization_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -127,7 +127,6 @@ func resourceExpressRouteCircuitAuthorizationRead(d *pluginsdk.ResourceData, met if props := model.Properties; props != nil { d.Set("authorization_key", props.AuthorizationKey) d.Set("authorization_use_status", string(pointer.From(props.AuthorizationUseStatus))) - } } diff --git a/internal/services/network/express_route_circuit_authorization_resource_test.go b/internal/services/network/express_route_circuit_authorization_resource_test.go index 326589e3f177..4bd710f972b8 100644 --- a/internal/services/network/express_route_circuit_authorization_resource_test.go +++ b/internal/services/network/express_route_circuit_authorization_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_circuit_connection_resource.go b/internal/services/network/express_route_circuit_connection_resource.go index 527191ce8978..e287ab16c280 100644 --- a/internal/services/network/express_route_circuit_connection_resource.go +++ b/internal/services/network/express_route_circuit_connection_resource.go @@ -11,8 +11,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" @@ -182,7 +182,6 @@ func resourceExpressRouteCircuitConnectionRead(d *pluginsdk.ResourceData, meta i if model := resp.Model; model != nil { if props := model.Properties; props != nil { - d.Set("address_prefix_ipv4", props.AddressPrefix) // The ExpressRoute Circuit Connection API returns "*****************" for AuthorizationKey when it's changed from a valid value to `nil` diff --git a/internal/services/network/express_route_circuit_connection_resource_test.go b/internal/services/network/express_route_circuit_connection_resource_test.go index 6b2b94cfd880..ee94a0c0471e 100644 --- a/internal/services/network/express_route_circuit_connection_resource_test.go +++ b/internal/services/network/express_route_circuit_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_circuit_data_source.go b/internal/services/network/express_route_circuit_data_source.go index 910545850ec8..3b4ab547a936 100644 --- a/internal/services/network/express_route_circuit_data_source.go +++ b/internal/services/network/express_route_circuit_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/express_route_circuit_peering_data_source.go b/internal/services/network/express_route_circuit_peering_data_source.go index 6c045182820d..12c32dc9bde1 100644 --- a/internal/services/network/express_route_circuit_peering_data_source.go +++ b/internal/services/network/express_route_circuit_peering_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/express_route_circuit_peering_resource.go b/internal/services/network/express_route_circuit_peering_resource.go index 44f6a77acfbe..a9ba8b4501e3 100644 --- a/internal/services/network/express_route_circuit_peering_resource.go +++ b/internal/services/network/express_route_circuit_peering_resource.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -412,7 +412,6 @@ func resourceExpressRouteCircuitPeeringUpdate(d *pluginsdk.ResourceData, meta in } if d.HasChange("ipv4_enabled") { - ipv4Enabled := d.Get("ipv4_enabled").(bool) if ipv4Enabled { payload.Properties.State = pointer.To(expressroutecircuitpeerings.ExpressRoutePeeringStateEnabled) diff --git a/internal/services/network/express_route_circuit_resource.go b/internal/services/network/express_route_circuit_resource.go index 4ce5ae2dc4e8..f2482766f2b2 100644 --- a/internal/services/network/express_route_circuit_resource.go +++ b/internal/services/network/express_route_circuit_resource.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -267,7 +267,6 @@ func resourceExpressRouteCircuitUpdate(d *pluginsdk.ResourceData, meta interface existing, err := client.Get(ctx, *id) if err != nil { return fmt.Errorf("retrieving %s : %s", id, err) - } if err := client.CreateOrUpdateThenPoll(ctx, *id, *existing.Model); err != nil { diff --git a/internal/services/network/express_route_circuit_resource_test.go b/internal/services/network/express_route_circuit_resource_test.go index 9a829867b341..202d683c8fcf 100644 --- a/internal/services/network/express_route_circuit_resource_test.go +++ b/internal/services/network/express_route_circuit_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_connection_resource.go b/internal/services/network/express_route_connection_resource.go index 04a1c1c88a96..acc44b2fc5b9 100644 --- a/internal/services/network/express_route_connection_resource.go +++ b/internal/services/network/express_route_connection_resource.go @@ -10,9 +10,9 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/express_route_connection_resource_test.go b/internal/services/network/express_route_connection_resource_test.go index 14e06318f805..ed50edee9584 100644 --- a/internal/services/network/express_route_connection_resource_test.go +++ b/internal/services/network/express_route_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_gateway_resource.go b/internal/services/network/express_route_gateway_resource.go index 589330d18786..643298540ac6 100644 --- a/internal/services/network/express_route_gateway_resource.go +++ b/internal/services/network/express_route_gateway_resource.go @@ -14,8 +14,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -332,7 +332,6 @@ func convertConnectionsToGatewayConnections(input *[]expressrouteconnections.Exp o.Properties.RoutingConfiguration = rc } - } output = append(output, o) } diff --git a/internal/services/network/express_route_gateway_resource_test.go b/internal/services/network/express_route_gateway_resource_test.go index 68cf7d474ef3..fd737ba564b8 100644 --- a/internal/services/network/express_route_gateway_resource_test.go +++ b/internal/services/network/express_route_gateway_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_port_authorization_resource.go b/internal/services/network/express_route_port_authorization_resource.go index 855d7028b1d9..2e11bd851175 100644 --- a/internal/services/network/express_route_port_authorization_resource.go +++ b/internal/services/network/express_route_port_authorization_resource.go @@ -10,8 +10,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/express_route_port_authorization_resource_test.go b/internal/services/network/express_route_port_authorization_resource_test.go index c549a29172d7..557e2ca5c80e 100644 --- a/internal/services/network/express_route_port_authorization_resource_test.go +++ b/internal/services/network/express_route_port_authorization_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/express_route_port_resource.go b/internal/services/network/express_route_port_resource.go index 5c43b3eb98c4..506737081df3 100644 --- a/internal/services/network/express_route_port_resource.go +++ b/internal/services/network/express_route_port_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/express_route_port_resource_test.go b/internal/services/network/express_route_port_resource_test.go index b02d6b8c492d..b2e21b998aef 100644 --- a/internal/services/network/express_route_port_resource_test.go +++ b/internal/services/network/express_route_port_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/ip_group_cidr_resource.go b/internal/services/network/ip_group_cidr_resource.go index 67e6251d88c4..f79abdb8df43 100644 --- a/internal/services/network/ip_group_cidr_resource.go +++ b/internal/services/network/ip_group_cidr_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/ip_group_cidr_resource_test.go b/internal/services/network/ip_group_cidr_resource_test.go index 578b5340367e..ec392a393825 100644 --- a/internal/services/network/ip_group_cidr_resource_test.go +++ b/internal/services/network/ip_group_cidr_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/ip_group_data_source.go b/internal/services/network/ip_group_data_source.go index b49e48a580f6..ba89e5d5bc21 100644 --- a/internal/services/network/ip_group_data_source.go +++ b/internal/services/network/ip_group_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/ip_group_resource.go b/internal/services/network/ip_group_resource.go index af6ea1f8b3f8..bf20d2f18bcd 100644 --- a/internal/services/network/ip_group_resource.go +++ b/internal/services/network/ip_group_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/ip_group_resource_test.go b/internal/services/network/ip_group_resource_test.go index ac6505ff5b1c..ba8132cf36bd 100644 --- a/internal/services/network/ip_group_resource_test.go +++ b/internal/services/network/ip_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/local_network_gateway_data_source.go b/internal/services/network/local_network_gateway_data_source.go index 2978b684f0b4..596996b91d61 100644 --- a/internal/services/network/local_network_gateway_data_source.go +++ b/internal/services/network/local_network_gateway_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/local_network_gateway_resource.go b/internal/services/network/local_network_gateway_resource.go index 3cdcc6468fa3..d6e521325517 100644 --- a/internal/services/network/local_network_gateway_resource.go +++ b/internal/services/network/local_network_gateway_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/local_network_gateway_resource_test.go b/internal/services/network/local_network_gateway_resource_test.go index 74381fed11a1..5e8e5a60c1ea 100644 --- a/internal/services/network/local_network_gateway_resource_test.go +++ b/internal/services/network/local_network_gateway_resource_test.go @@ -10,7 +10,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/migration/network_packet_capture.go b/internal/services/network/migration/network_packet_capture.go index ddde47c8ff84..91fc3f3a0b55 100644 --- a/internal/services/network/migration/network_packet_capture.go +++ b/internal/services/network/migration/network_packet_capture.go @@ -62,7 +62,7 @@ func (NetworkPacketCaptureV0ToV1) Schema() map[string]*pluginsdk.Schema { Default: 18000, }, - //lintignore:XS003 + // lintignore:XS003 "storage_location": { Type: pluginsdk.TypeList, Required: true, diff --git a/internal/services/network/nat_gateway_data_source.go b/internal/services/network/nat_gateway_data_source.go index cf2e9bd85d5e..07f3aa6323a3 100644 --- a/internal/services/network/nat_gateway_data_source.go +++ b/internal/services/network/nat_gateway_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/nat_gateway_public_ip_association_resource.go b/internal/services/network/nat_gateway_public_ip_association_resource.go index 533ab2ba4e7f..de8acd269a0c 100644 --- a/internal/services/network/nat_gateway_public_ip_association_resource.go +++ b/internal/services/network/nat_gateway_public_ip_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/nat_gateway_public_ip_association_resource_test.go b/internal/services/network/nat_gateway_public_ip_association_resource_test.go index ce82a2683cba..06e8caf44e23 100644 --- a/internal/services/network/nat_gateway_public_ip_association_resource_test.go +++ b/internal/services/network/nat_gateway_public_ip_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/nat_gateway_public_ip_prefix_association_resource.go b/internal/services/network/nat_gateway_public_ip_prefix_association_resource.go index 0f92a27489aa..8a7d8f363a8d 100644 --- a/internal/services/network/nat_gateway_public_ip_prefix_association_resource.go +++ b/internal/services/network/nat_gateway_public_ip_prefix_association_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/nat_gateway_public_ip_prefix_association_resource_test.go b/internal/services/network/nat_gateway_public_ip_prefix_association_resource_test.go index c6d28c8d59e5..f21f7f75a3ff 100644 --- a/internal/services/network/nat_gateway_public_ip_prefix_association_resource_test.go +++ b/internal/services/network/nat_gateway_public_ip_prefix_association_resource_test.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/nat_gateway_resource.go b/internal/services/network/nat_gateway_resource.go index 5c5e417f3620..603512ef3dec 100644 --- a/internal/services/network/nat_gateway_resource.go +++ b/internal/services/network/nat_gateway_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/nat_gateway_resource_test.go b/internal/services/network/nat_gateway_resource_test.go index e2b39b7b3472..9661832140c8 100644 --- a/internal/services/network/nat_gateway_resource_test.go +++ b/internal/services/network/nat_gateway_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_connection_monitor_resource.go b/internal/services/network/network_connection_monitor_resource.go index 2802e3abc752..8e6551e4e40c 100644 --- a/internal/services/network/network_connection_monitor_resource.go +++ b/internal/services/network/network_connection_monitor_resource.go @@ -15,13 +15,12 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors" "github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" networkValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -52,7 +51,7 @@ func resourceNetworkConnectionMonitor() *pluginsdk.Resource { } func resourceNetworkConnectionMonitorSchema() map[string]*pluginsdk.Schema { - schema := map[string]*pluginsdk.Schema{ + return map[string]*pluginsdk.Schema{ "name": { Type: pluginsdk.TypeString, Required: true, @@ -435,21 +434,6 @@ func resourceNetworkConnectionMonitorSchema() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } - - if !features.FourPointOhBeta() { - schema["output_workspace_resource_ids"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeSet, - Optional: true, - Computed: true, - ConfigMode: pluginsdk.SchemaConfigModeAttr, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: workspaces.ValidateWorkspaceID, - }, - } - } - - return schema } func resourceNetworkConnectionMonitorCreate(d *pluginsdk.ResourceData, meta interface{}) error { diff --git a/internal/services/network/network_connection_monitor_resource_test.go b/internal/services/network/network_connection_monitor_resource_test.go index ef04a5de8591..1ea1f6354bfe 100644 --- a/internal/services/network/network_connection_monitor_resource_test.go +++ b/internal/services/network/network_connection_monitor_resource_test.go @@ -9,7 +9,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_ddos_protection_plan_data_source.go b/internal/services/network/network_ddos_protection_plan_data_source.go index 6e81203a20c7..ac8b41b355ef 100644 --- a/internal/services/network/network_ddos_protection_plan_data_source.go +++ b/internal/services/network/network_ddos_protection_plan_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/network_ddos_protection_plan_resource.go b/internal/services/network/network_ddos_protection_plan_resource.go index d7329a32f9ee..ffb880a61164 100644 --- a/internal/services/network/network_ddos_protection_plan_resource.go +++ b/internal/services/network/network_ddos_protection_plan_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_ddos_protection_plan_resource_test.go b/internal/services/network/network_ddos_protection_plan_resource_test.go index c8985edffd52..5bf48b3d1d0a 100644 --- a/internal/services/network/network_ddos_protection_plan_resource_test.go +++ b/internal/services/network/network_ddos_protection_plan_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface.go b/internal/services/network/network_interface.go index 41a75d02d97d..a7e6250a9853 100644 --- a/internal/services/network/network_interface.go +++ b/internal/services/network/network_interface.go @@ -4,7 +4,7 @@ package network import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/utils" ) diff --git a/internal/services/network/network_interface_application_gateway_association_resource.go b/internal/services/network/network_interface_application_gateway_association_resource.go index bbb5ed0e6d4e..a2c3bf7955a0 100644 --- a/internal/services/network/network_interface_application_gateway_association_resource.go +++ b/internal/services/network/network_interface_application_gateway_association_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_application_gateway_association_resource_test.go b/internal/services/network/network_interface_application_gateway_association_resource_test.go index a461e9cdabb4..4895dd03b447 100644 --- a/internal/services/network/network_interface_application_gateway_association_resource_test.go +++ b/internal/services/network/network_interface_application_gateway_association_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_application_security_group_association_resource.go b/internal/services/network/network_interface_application_security_group_association_resource.go index 03e270b3b65b..666f3a90fad7 100644 --- a/internal/services/network/network_interface_application_security_group_association_resource.go +++ b/internal/services/network/network_interface_application_security_group_association_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_application_security_group_association_resource_test.go b/internal/services/network/network_interface_application_security_group_association_resource_test.go index a48a4e046dc3..c5c6208c0086 100644 --- a/internal/services/network/network_interface_application_security_group_association_resource_test.go +++ b/internal/services/network/network_interface_application_security_group_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_backend_address_pool_association_resource.go b/internal/services/network/network_interface_backend_address_pool_association_resource.go index 68618124a51e..c72e9b8c3fb7 100644 --- a/internal/services/network/network_interface_backend_address_pool_association_resource.go +++ b/internal/services/network/network_interface_backend_address_pool_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_backend_address_pool_association_resource_test.go b/internal/services/network/network_interface_backend_address_pool_association_resource_test.go index 71ff126d91a7..59ad40bb4a20 100644 --- a/internal/services/network/network_interface_backend_address_pool_association_resource_test.go +++ b/internal/services/network/network_interface_backend_address_pool_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_data_source.go b/internal/services/network/network_interface_data_source.go index 33ddccae9c24..972e7a4f1c66 100644 --- a/internal/services/network/network_interface_data_source.go +++ b/internal/services/network/network_interface_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" @@ -181,7 +181,8 @@ func dataSourceNetworkInterface() *pluginsdk.Resource { dataSource.Schema["enable_ip_forwarding"] = &pluginsdk.Schema{ Type: pluginsdk.TypeBool, Computed: true, - Deprecated: "The property `enable_ip_forwarding` has been superseded by `ip_forwarding_enabled` and will be removed in v4.0 of the AzureRM Provider."} + Deprecated: "The property `enable_ip_forwarding` has been superseded by `ip_forwarding_enabled` and will be removed in v4.0 of the AzureRM Provider.", + } dataSource.Schema["enable_accelerated_networking"] = &pluginsdk.Schema{ Type: pluginsdk.TypeBool, Computed: true, diff --git a/internal/services/network/network_interface_helpers.go b/internal/services/network/network_interface_helpers.go index 308be3fac623..810243a6e737 100644 --- a/internal/services/network/network_interface_helpers.go +++ b/internal/services/network/network_interface_helpers.go @@ -4,7 +4,7 @@ package network import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" ) func FindNetworkInterfaceIPConfiguration(input *[]networkinterfaces.NetworkInterfaceIPConfiguration, name string) *networkinterfaces.NetworkInterfaceIPConfiguration { diff --git a/internal/services/network/network_interface_locking.go b/internal/services/network/network_interface_locking.go index 163cae84af8a..2443f4ce0f62 100644 --- a/internal/services/network/network_interface_locking.go +++ b/internal/services/network/network_interface_locking.go @@ -5,7 +5,7 @@ package network import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/utils" ) diff --git a/internal/services/network/network_interface_nat_rule_association_resource.go b/internal/services/network/network_interface_nat_rule_association_resource.go index 5b5eb0e4aa99..8079306d48d1 100644 --- a/internal/services/network/network_interface_nat_rule_association_resource.go +++ b/internal/services/network/network_interface_nat_rule_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_nat_rule_association_resource_test.go b/internal/services/network/network_interface_nat_rule_association_resource_test.go index e56aef671e24..5bf5a04b5b15 100644 --- a/internal/services/network/network_interface_nat_rule_association_resource_test.go +++ b/internal/services/network/network_interface_nat_rule_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_resource.go b/internal/services/network/network_interface_resource.go index 5635669bbaaa..7b09a9ee0d70 100644 --- a/internal/services/network/network_interface_resource.go +++ b/internal/services/network/network_interface_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" diff --git a/internal/services/network/network_interface_resource_test.go b/internal/services/network/network_interface_resource_test.go index 2eda68d6e2b3..8f8240d1d7f0 100644 --- a/internal/services/network/network_interface_resource_test.go +++ b/internal/services/network/network_interface_resource_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_interface_security_group_association_resource.go b/internal/services/network/network_interface_security_group_association_resource.go index 198c8fe1c5e0..45b93be9d3a6 100644 --- a/internal/services/network/network_interface_security_group_association_resource.go +++ b/internal/services/network/network_interface_security_group_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_interface_security_group_association_resource_test.go b/internal/services/network/network_interface_security_group_association_resource_test.go index ccd39de44a33..d91f142b0ee2 100644 --- a/internal/services/network/network_interface_security_group_association_resource_test.go +++ b/internal/services/network/network_interface_security_group_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -133,7 +133,6 @@ func (NetworkInterfaceNetworkSecurityGroupAssociationResource) destroy(ctx conte if err := client.Network.NetworkInterfaces.CreateOrUpdateThenPoll(ctx2, *id.First, *read.Model); err != nil { return fmt.Errorf("removing Network Security Group Association for %s: %+v", id.First, err) - } return nil diff --git a/internal/services/network/network_manager_admin_rule_collection_resource.go b/internal/services/network/network_manager_admin_rule_collection_resource.go index 5d41d5a59151..59cc30af80b8 100644 --- a/internal/services/network/network_manager_admin_rule_collection_resource.go +++ b/internal/services/network/network_manager_admin_rule_collection_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -37,7 +37,7 @@ func (r ManagerAdminRuleCollectionResource) ModelObject() interface{} { } func (r ManagerAdminRuleCollectionResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { - return adminrulecollections.ValidateRuleCollectionID + return adminrulecollections.ValidateSecurityAdminConfigurationRuleCollectionID } func (r ManagerAdminRuleCollectionResource) Arguments() map[string]*pluginsdk.Schema { @@ -91,7 +91,7 @@ func (r ManagerAdminRuleCollectionResource) Create() sdk.ResourceFunc { return err } - id := adminrulecollections.NewRuleCollectionID(configurationId.SubscriptionId, configurationId.ResourceGroupName, + id := adminrulecollections.NewSecurityAdminConfigurationRuleCollectionID(configurationId.SubscriptionId, configurationId.ResourceGroupName, configurationId.NetworkManagerName, configurationId.SecurityAdminConfigurationName, model.Name) existing, err := client.Get(ctx, id) @@ -129,7 +129,7 @@ func (r ManagerAdminRuleCollectionResource) Update() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRuleCollections - id, err := adminrulecollections.ParseRuleCollectionID(metadata.ResourceData.Id()) + id, err := adminrulecollections.ParseSecurityAdminConfigurationRuleCollectionID(metadata.ResourceData.Id()) if err != nil { return err } @@ -175,7 +175,7 @@ func (r ManagerAdminRuleCollectionResource) Read() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRuleCollections - id, err := adminrulecollections.ParseRuleCollectionID(metadata.ResourceData.Id()) + id, err := adminrulecollections.ParseSecurityAdminConfigurationRuleCollectionID(metadata.ResourceData.Id()) if err != nil { return err } @@ -219,7 +219,7 @@ func (r ManagerAdminRuleCollectionResource) Delete() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRuleCollections - id, err := adminrulecollections.ParseRuleCollectionID(metadata.ResourceData.Id()) + id, err := adminrulecollections.ParseSecurityAdminConfigurationRuleCollectionID(metadata.ResourceData.Id()) if err != nil { return err } @@ -237,7 +237,7 @@ func (r ManagerAdminRuleCollectionResource) Delete() sdk.ResourceFunc { } func expandNetworkManagerNetworkGroupIds(inputList []string) []adminrulecollections.NetworkManagerSecurityGroupItem { - var outputList []adminrulecollections.NetworkManagerSecurityGroupItem + outputList := make([]adminrulecollections.NetworkManagerSecurityGroupItem, 0, len(inputList)) for _, v := range inputList { input := v output := adminrulecollections.NetworkManagerSecurityGroupItem{ @@ -251,7 +251,7 @@ func expandNetworkManagerNetworkGroupIds(inputList []string) []adminrulecollecti } func flattenNetworkManagerNetworkGroupIds(inputList []adminrulecollections.NetworkManagerSecurityGroupItem) []string { - var outputList []string + outputList := make([]string, 0, len(inputList)) for _, input := range inputList { outputList = append(outputList, input.NetworkGroupId) diff --git a/internal/services/network/network_manager_admin_rule_collection_resource_test.go b/internal/services/network/network_manager_admin_rule_collection_resource_test.go index df346aff9a48..dd8b0e5d4816 100644 --- a/internal/services/network/network_manager_admin_rule_collection_resource_test.go +++ b/internal/services/network/network_manager_admin_rule_collection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -83,7 +83,7 @@ func testAccNetworkManagerAdminRuleCollection_update(t *testing.T) { } func (r NetworkAdminRuleCollectionResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := adminrulecollections.ParseRuleCollectionID(state.ID) + id, err := adminrulecollections.ParseSecurityAdminConfigurationRuleCollectionID(state.ID) if err != nil { return nil, err } diff --git a/internal/services/network/network_manager_admin_rule_resource.go b/internal/services/network/network_manager_admin_rule_resource.go index 8555b80e775b..15f3653aa078 100644 --- a/internal/services/network/network_manager_admin_rule_resource.go +++ b/internal/services/network/network_manager_admin_rule_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -48,7 +48,7 @@ func (r ManagerAdminRuleResource) ModelObject() interface{} { } func (r ManagerAdminRuleResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { - return adminrules.ValidateRuleID + return adminrules.ValidateSecurityAdminConfigurationRuleCollectionRuleID } func (r ManagerAdminRuleResource) Arguments() map[string]*pluginsdk.Schema { @@ -64,7 +64,7 @@ func (r ManagerAdminRuleResource) Arguments() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeString, Required: true, ForceNew: true, - ValidateFunc: adminrules.ValidateRuleCollectionID, + ValidateFunc: adminrules.ValidateSecurityAdminConfigurationRuleCollectionID, }, "action": { @@ -191,12 +191,12 @@ func (r ManagerAdminRuleResource) Create() sdk.ResourceFunc { } client := metadata.Client.Network.AdminRules - ruleCollectionId, err := adminrules.ParseRuleCollectionID(model.NetworkRuleCollectionId) + ruleCollectionId, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionID(model.NetworkRuleCollectionId) if err != nil { return err } - id := adminrules.NewRuleID(ruleCollectionId.SubscriptionId, ruleCollectionId.ResourceGroupName, + id := adminrules.NewSecurityAdminConfigurationRuleCollectionRuleID(ruleCollectionId.SubscriptionId, ruleCollectionId.ResourceGroupName, ruleCollectionId.NetworkManagerName, ruleCollectionId.SecurityAdminConfigurationName, ruleCollectionId.RuleCollectionName, model.Name) existing, err := client.Get(ctx, id) if err != nil && !response.WasNotFound(existing.HttpResponse) { @@ -240,7 +240,7 @@ func (r ManagerAdminRuleResource) Update() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRules - id, err := adminrules.ParseRuleID(metadata.ResourceData.Id()) + id, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionRuleID(metadata.ResourceData.Id()) if err != nil { return err } @@ -324,7 +324,7 @@ func (r ManagerAdminRuleResource) Read() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRules - id, err := adminrules.ParseRuleID(metadata.ResourceData.Id()) + id, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionRuleID(metadata.ResourceData.Id()) if err != nil { return err } @@ -355,7 +355,7 @@ func (r ManagerAdminRuleResource) Read() sdk.ResourceFunc { state := ManagerAdminRuleModel{ Action: properties.Access, Name: id.RuleName, - NetworkRuleCollectionId: adminrules.NewRuleCollectionID(id.SubscriptionId, id.ResourceGroupName, + NetworkRuleCollectionId: adminrules.NewSecurityAdminConfigurationRuleCollectionID(id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName).ID(), Destinations: flattenAddressPrefixItemModel(properties.Destinations), Direction: properties.Direction, @@ -387,7 +387,7 @@ func (r ManagerAdminRuleResource) Delete() sdk.ResourceFunc { Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.Network.AdminRules - id, err := adminrules.ParseRuleID(metadata.ResourceData.Id()) + id, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionRuleID(metadata.ResourceData.Id()) if err != nil { return err } @@ -405,7 +405,7 @@ func (r ManagerAdminRuleResource) Delete() sdk.ResourceFunc { } func expandAddressPrefixItemModel(inputList []AddressPrefixItemModel) *[]adminrules.AddressPrefixItem { - var outputList []adminrules.AddressPrefixItem + outputList := make([]adminrules.AddressPrefixItem, 0, len(inputList)) for _, v := range inputList { input := v output := adminrules.AddressPrefixItem{ @@ -423,11 +423,11 @@ func expandAddressPrefixItemModel(inputList []AddressPrefixItemModel) *[]adminru } func flattenAddressPrefixItemModel(inputList *[]adminrules.AddressPrefixItem) []AddressPrefixItemModel { - var outputList []AddressPrefixItemModel if inputList == nil { - return outputList + return []AddressPrefixItemModel{} } + outputList := make([]AddressPrefixItemModel, 0, len(*inputList)) for _, input := range *inputList { output := AddressPrefixItemModel{} diff --git a/internal/services/network/network_manager_admin_rule_resource_test.go b/internal/services/network/network_manager_admin_rule_resource_test.go index 26ffc26d1d7b..11a392725604 100644 --- a/internal/services/network/network_manager_admin_rule_resource_test.go +++ b/internal/services/network/network_manager_admin_rule_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -90,7 +90,7 @@ func testAccNetworkManagerAdminRule_update(t *testing.T) { } func (r ManagerAdminRuleResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := adminrules.ParseRuleID(state.ID) + id, err := adminrules.ParseSecurityAdminConfigurationRuleCollectionRuleID(state.ID) if err != nil { return nil, err } diff --git a/internal/services/network/network_manager_connectivity_configuration_data_source.go b/internal/services/network/network_manager_connectivity_configuration_data_source.go index 285f7371fc48..006b7bd4cda4 100644 --- a/internal/services/network/network_manager_connectivity_configuration_data_source.go +++ b/internal/services/network/network_manager_connectivity_configuration_data_source.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_connectivity_configuration_resource.go b/internal/services/network/network_manager_connectivity_configuration_resource.go index 4b583ddaf902..2fb083d0fc43 100644 --- a/internal/services/network/network_manager_connectivity_configuration_resource.go +++ b/internal/services/network/network_manager_connectivity_configuration_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -356,7 +356,7 @@ func expandConnectivityConfIsGlobal(input bool) *connectivityconfigurations.IsGl } func expandConnectivityGroupItemModel(inputList []ConnectivityGroupItemModel) []connectivityconfigurations.ConnectivityGroupItem { - var outputList []connectivityconfigurations.ConnectivityGroupItem + outputList := make([]connectivityconfigurations.ConnectivityGroupItem, 0, len(inputList)) for _, v := range inputList { input := v output := connectivityconfigurations.ConnectivityGroupItem{ @@ -381,7 +381,7 @@ func expandUseHubGateWay(input bool) *connectivityconfigurations.UseHubGateway { } func expandHubModel(inputList []HubModel) *[]connectivityconfigurations.Hub { - var outputList []connectivityconfigurations.Hub + outputList := make([]connectivityconfigurations.Hub, 0, len(inputList)) for _, v := range inputList { input := v output := connectivityconfigurations.Hub{ @@ -410,8 +410,7 @@ func flattenConnectivityConfIsGlobal(input *connectivityconfigurations.IsGlobal) } func flattenConnectivityGroupItemModel(inputList []connectivityconfigurations.ConnectivityGroupItem) []ConnectivityGroupItemModel { - var outputList []ConnectivityGroupItemModel - + outputList := make([]ConnectivityGroupItemModel, 0, len(inputList)) for _, input := range inputList { output := ConnectivityGroupItemModel{ GroupConnectivity: input.GroupConnectivity, @@ -434,11 +433,11 @@ func flattenUseHubGateWay(input *connectivityconfigurations.UseHubGateway) bool } func flattenHubModel(inputList *[]connectivityconfigurations.Hub) []HubModel { - var outputList []HubModel if inputList == nil { - return outputList + return []HubModel{} } + outputList := make([]HubModel, 0, len(*inputList)) for _, input := range *inputList { output := HubModel{} diff --git a/internal/services/network/network_manager_connectivity_configuration_resource_test.go b/internal/services/network/network_manager_connectivity_configuration_resource_test.go index da6793c6b24d..44894389bf14 100644 --- a/internal/services/network/network_manager_connectivity_configuration_resource_test.go +++ b/internal/services/network/network_manager_connectivity_configuration_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_data_source.go b/internal/services/network/network_manager_data_source.go index 9600cd5a0b09..6b31150b6a15 100644 --- a/internal/services/network/network_manager_data_source.go +++ b/internal/services/network/network_manager_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/network_manager_deployment_resource.go b/internal/services/network/network_manager_deployment_resource.go index 5869a137aadc..c7b655e7864e 100644 --- a/internal/services/network/network_manager_deployment_resource.go +++ b/internal/services/network/network_manager_deployment_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" diff --git a/internal/services/network/network_manager_deployment_resource_test.go b/internal/services/network/network_manager_deployment_resource_test.go index 1a709fda61f0..c6c2bd760482 100644 --- a/internal/services/network/network_manager_deployment_resource_test.go +++ b/internal/services/network/network_manager_deployment_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" diff --git a/internal/services/network/network_manager_management_group_connection_resource.go b/internal/services/network/network_manager_management_group_connection_resource.go index f17aab268f52..1ee13f43c5cf 100644 --- a/internal/services/network/network_manager_management_group_connection_resource.go +++ b/internal/services/network/network_manager_management_group_connection_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" managementParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/managementgroup/parse" managementValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/managementgroup/validate" diff --git a/internal/services/network/network_manager_management_group_connection_resource_test.go b/internal/services/network/network_manager_management_group_connection_resource_test.go index 9acef782b973..58fcdebba773 100644 --- a/internal/services/network/network_manager_management_group_connection_resource_test.go +++ b/internal/services/network/network_manager_management_group_connection_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -30,7 +30,10 @@ func testAccNetworkManagerManagementGroupConnection_basic(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + // https://learn.microsoft.com/azure/virtual-network-manager/concept-network-manager-scope#cross-tenant-scope + // connection_state shows if the cross-tenant connection is established. + // Since we test in a single tenant, we can skip this validation. + data.ImportStep("connection_state"), }) } @@ -58,7 +61,7 @@ func testAccNetworkManagerManagementGroupConnection_complete(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), }) } @@ -72,14 +75,14 @@ func testAccNetworkManagerManagementGroupConnection_update(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), { Config: r.update(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), }) } diff --git a/internal/services/network/network_manager_network_group_data_source.go b/internal/services/network/network_manager_network_group_data_source.go index c183420381df..67fb64220b47 100644 --- a/internal/services/network/network_manager_network_group_data_source.go +++ b/internal/services/network/network_manager_network_group_data_source.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_network_group_resource.go b/internal/services/network/network_manager_network_group_resource.go index 91ea8824ebfe..8669fa71c4bc 100644 --- a/internal/services/network/network_manager_network_group_resource.go +++ b/internal/services/network/network_manager_network_group_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_network_group_resource_test.go b/internal/services/network/network_manager_network_group_resource_test.go index 34ce8cbe7433..093b65f81c8b 100644 --- a/internal/services/network/network_manager_network_group_resource_test.go +++ b/internal/services/network/network_manager_network_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_resource.go b/internal/services/network/network_manager_resource.go index b455ebd5075a..6d7e304fb3a0 100644 --- a/internal/services/network/network_manager_resource.go +++ b/internal/services/network/network_manager_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" @@ -109,6 +109,7 @@ func (r ManagerResource) Arguments() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeString, ValidateFunc: validation.StringInSlice([]string{ string(networkmanagers.ConfigurationTypeConnectivity), + string(networkmanagers.ConfigurationTypeRouting), string(networkmanagers.ConfigurationTypeSecurityAdmin), }, false), }, @@ -357,7 +358,7 @@ func flattenNetworkManagerScope(input networkmanagers.NetworkManagerPropertiesNe } func flattenNetworkManagerScopeAccesses(input []networkmanagers.ConfigurationType) []string { - var result []string + result := make([]string, 0, len(input)) for _, v := range input { result = append(result, string(v)) } @@ -369,7 +370,7 @@ func flattenNetworkManagerCrossTenantScopes(input *[]networkmanagers.CrossTenant return make([]ManagerCrossTenantScopeModel, 0) } - var results []ManagerCrossTenantScopeModel + results := make([]ManagerCrossTenantScopeModel, 0, len(*input)) for _, v := range *input { results = append(results, ManagerCrossTenantScopeModel{ TenantId: pointer.From(v.TenantId), diff --git a/internal/services/network/network_manager_resource_test.go b/internal/services/network/network_manager_resource_test.go index 01f36c03ba62..e6e7e8e506a7 100644 --- a/internal/services/network/network_manager_resource_test.go +++ b/internal/services/network/network_manager_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -240,7 +240,7 @@ resource "azurerm_network_manager" "test" { scope { subscription_ids = [data.azurerm_subscription.current.id] } - scope_accesses = ["Connectivity", "SecurityAdmin"] + scope_accesses = ["Connectivity", "SecurityAdmin", "Routing"] description = "test network manager" tags = { foo = "bar" diff --git a/internal/services/network/network_manager_scope_connection_resource.go b/internal/services/network/network_manager_scope_connection_resource.go index ef1f1e0ed6ca..847558ddc74e 100644 --- a/internal/services/network/network_manager_scope_connection_resource.go +++ b/internal/services/network/network_manager_scope_connection_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -78,7 +78,6 @@ func (r ManagerScopeConnectionResource) Arguments() map[string]*pluginsdk.Schema func (r ManagerScopeConnectionResource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ - "connection_state": { Type: pluginsdk.TypeString, Computed: true, diff --git a/internal/services/network/network_manager_scope_connection_resource_test.go b/internal/services/network/network_manager_scope_connection_resource_test.go index b59868565ed9..041acd590b46 100644 --- a/internal/services/network/network_manager_scope_connection_resource_test.go +++ b/internal/services/network/network_manager_scope_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -29,7 +29,10 @@ func testAccNetworkManagerScopeConnection_basic(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + // https://learn.microsoft.com/azure/virtual-network-manager/concept-network-manager-scope#cross-tenant-scope + // connection_state shows if the cross-tenant connection is established. + // Since we test in a single tenant, we can skip this validation. + data.ImportStep("connection_state"), }) } @@ -57,7 +60,7 @@ func testAccNetworkManagerScopeConnection_complete(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), }) } @@ -71,14 +74,14 @@ func testAccNetworkManagerScopeConnection_update(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), { Config: r.update(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), }) } diff --git a/internal/services/network/network_manager_security_admin_configuration_resource.go b/internal/services/network/network_manager_security_admin_configuration_resource.go index fbe49a918fee..d5b09ecdc2b1 100644 --- a/internal/services/network/network_manager_security_admin_configuration_resource.go +++ b/internal/services/network/network_manager_security_admin_configuration_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -245,7 +245,7 @@ func (r ManagerSecurityAdminConfigurationResource) Delete() sdk.ResourceFunc { } func expandNetworkIntentPolicyBasedServiceModel(inputList []string) *[]securityadminconfigurations.NetworkIntentPolicyBasedService { - var outputList []securityadminconfigurations.NetworkIntentPolicyBasedService + outputList := make([]securityadminconfigurations.NetworkIntentPolicyBasedService, 0, len(inputList)) for _, input := range inputList { output := securityadminconfigurations.NetworkIntentPolicyBasedService(input) @@ -256,11 +256,11 @@ func expandNetworkIntentPolicyBasedServiceModel(inputList []string) *[]securitya } func flattenNetworkIntentPolicyBasedServiceModel(inputList *[]securityadminconfigurations.NetworkIntentPolicyBasedService) []string { - var outputList []string if inputList == nil { - return outputList + return []string{} } + outputList := make([]string, 0, len(*inputList)) for _, input := range *inputList { outputList = append(outputList, string(input)) } diff --git a/internal/services/network/network_manager_security_admin_configuration_resource_test.go b/internal/services/network/network_manager_security_admin_configuration_resource_test.go index 8cffd99c0553..669910ba8605 100644 --- a/internal/services/network/network_manager_security_admin_configuration_resource_test.go +++ b/internal/services/network/network_manager_security_admin_configuration_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_static_member_resource.go b/internal/services/network/network_manager_static_member_resource.go index 85f61e79b192..9ceedcc912c4 100644 --- a/internal/services/network/network_manager_static_member_resource.go +++ b/internal/services/network/network_manager_static_member_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_static_member_resource_test.go b/internal/services/network/network_manager_static_member_resource_test.go index b5b9d0972fe2..1b86dc8ec765 100644 --- a/internal/services/network/network_manager_static_member_resource_test.go +++ b/internal/services/network/network_manager_static_member_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_manager_subscription_connection_resource.go b/internal/services/network/network_manager_subscription_connection_resource.go index 705a44cbdf9a..34b62f4e92e6 100644 --- a/internal/services/network/network_manager_subscription_connection_resource.go +++ b/internal/services/network/network_manager_subscription_connection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_manager_subscription_connection_resource_test.go b/internal/services/network/network_manager_subscription_connection_resource_test.go index 2099299a3bb7..f7a507ee5955 100644 --- a/internal/services/network/network_manager_subscription_connection_resource_test.go +++ b/internal/services/network/network_manager_subscription_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -29,7 +29,10 @@ func testAccNetworkSubscriptionNetworkManagerConnection_basic(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + // https://learn.microsoft.com/azure/virtual-network-manager/concept-network-manager-scope#cross-tenant-scope + // connection_state shows if the cross-tenant connection is established. + // Since we test in a single tenant, we can skip this validation. + data.ImportStep("connection_state"), }) } @@ -57,7 +60,7 @@ func testAccNetworkSubscriptionNetworkManagerConnection_complete(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), }) } @@ -71,14 +74,14 @@ func testAccNetworkSubscriptionNetworkManagerConnection_update(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), { Config: r.update(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), + data.ImportStep("connection_state"), }) } diff --git a/internal/services/network/network_packet_capture_resource.go b/internal/services/network/network_packet_capture_resource.go index c1bcbcefe7c6..772bde4680b3 100644 --- a/internal/services/network/network_packet_capture_resource.go +++ b/internal/services/network/network_packet_capture_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/migration" diff --git a/internal/services/network/network_packet_capture_resource_test.go b/internal/services/network/network_packet_capture_resource_test.go index b337b245e575..2cfe68f4af14 100644 --- a/internal/services/network/network_packet_capture_resource_test.go +++ b/internal/services/network/network_packet_capture_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_profile_resource.go b/internal/services/network/network_profile_resource.go index b7ef01bf1a50..1ed2c0268d6e 100644 --- a/internal/services/network/network_profile_resource.go +++ b/internal/services/network/network_profile_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/network_profile_resource_test.go b/internal/services/network/network_profile_resource_test.go index 1effcee5ebd3..238892c8566d 100644 --- a/internal/services/network/network_profile_resource_test.go +++ b/internal/services/network/network_profile_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_security_group_data_source.go b/internal/services/network/network_security_group_data_source.go index d0eb195a0734..c2ebcf1c8f53 100644 --- a/internal/services/network/network_security_group_data_source.go +++ b/internal/services/network/network_security_group_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/network_security_group_resource.go b/internal/services/network/network_security_group_resource.go index 682eefc9dca1..16564b66742a 100644 --- a/internal/services/network/network_security_group_resource.go +++ b/internal/services/network/network_security_group_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_security_group_resource_test.go b/internal/services/network/network_security_group_resource_test.go index 4fd7f476831c..1e446a302798 100644 --- a/internal/services/network/network_security_group_resource_test.go +++ b/internal/services/network/network_security_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_security_rule_resource.go b/internal/services/network/network_security_rule_resource.go index 858777342a89..6c5923abe7cd 100644 --- a/internal/services/network/network_security_rule_resource.go +++ b/internal/services/network/network_security_rule_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -128,7 +128,7 @@ func resourceNetworkSecurityRule() *pluginsdk.Resource { ConflictsWith: []string{"destination_address_prefix"}, }, - //lintignore:S018 + // lintignore:S018 "source_application_security_group_ids": { Type: pluginsdk.TypeSet, MaxItems: 10, @@ -137,7 +137,7 @@ func resourceNetworkSecurityRule() *pluginsdk.Resource { Set: pluginsdk.HashString, }, - //lintignore:S018 + // lintignore:S018 "destination_application_security_group_ids": { Type: pluginsdk.TypeSet, MaxItems: 10, diff --git a/internal/services/network/network_security_rule_resource_test.go b/internal/services/network/network_security_rule_resource_test.go index 487986357c26..08591371b481 100644 --- a/internal/services/network/network_security_rule_resource_test.go +++ b/internal/services/network/network_security_rule_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/network_service_tags_data_source.go b/internal/services/network/network_service_tags_data_source.go index 43c1869cc073..b001db446f10 100644 --- a/internal/services/network/network_service_tags_data_source.go +++ b/internal/services/network/network_service_tags_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/network_service_tags_data_source_test.go b/internal/services/network/network_service_tags_data_source_test.go index 19d7bba948f9..ed7227a27383 100644 --- a/internal/services/network/network_service_tags_data_source_test.go +++ b/internal/services/network/network_service_tags_data_source_test.go @@ -132,52 +132,59 @@ func TestAccDataSourceAzureRMServiceTags_AzureFrontDoorFirstParty(t *testing.T) }) } -func (NetworkServiceTagsDataSource) basic() string { - return `data "azurerm_network_service_tags" "test" { +func (NetworkServiceTagsDataSource) template() string { + return `provider "azurerm" { + features {} +} +` +} + +func (d NetworkServiceTagsDataSource) basic() string { + return d.template() + `data "azurerm_network_service_tags" "test" { location = "westcentralus" service = "AzureKeyVault" }` } -func (NetworkServiceTagsDataSource) region() string { - return `data "azurerm_network_service_tags" "test" { +func (d NetworkServiceTagsDataSource) region() string { + return d.template() + `data "azurerm_network_service_tags" "test" { location = "westcentralus" service = "AzureKeyVault" location_filter = "australiacentral" }` } -func (NetworkServiceTagsDataSource) tagName() string { - return `data "azurerm_network_service_tags" "test" { +func (d NetworkServiceTagsDataSource) tagName() string { + return d.template() + `data "azurerm_network_service_tags" "test" { location = "westus2" service = "Storage" location_filter = "westus2" }` } -func (NetworkServiceTagsDataSource) azureFrontDoor() string { - return `data "azurerm_network_service_tags" "test" { +func (d NetworkServiceTagsDataSource) azureFrontDoor() string { + return d.template() + `data "azurerm_network_service_tags" "test" { location = "northeurope" service = "AzureFrontDoor" }` } -func (NetworkServiceTagsDataSource) azureFrontDoorBackend() string { - return `data "azurerm_network_service_tags" "test" { +func (d NetworkServiceTagsDataSource) azureFrontDoorBackend() string { + return d.template() + `data "azurerm_network_service_tags" "test" { location = "northeurope" service = "AzureFrontDoor.Backend" }` } -func (NetworkServiceTagsDataSource) azureFrontDoorFrontend() string { - return `data "azurerm_network_service_tags" "test" { +func (d NetworkServiceTagsDataSource) azureFrontDoorFrontend() string { + return d.template() + `data "azurerm_network_service_tags" "test" { location = "northeurope" service = "AzureFrontDoor.Frontend" }` } -func (NetworkServiceTagsDataSource) azureFrontDoorFirstParty() string { - return `data "azurerm_network_service_tags" "test" { +func (d NetworkServiceTagsDataSource) azureFrontDoorFirstParty() string { + return d.template() + `data "azurerm_network_service_tags" "test" { location = "northeurope" service = "AzureFrontDoor.FirstParty" }` diff --git a/internal/services/network/network_watcher_data_source.go b/internal/services/network/network_watcher_data_source.go index 1f8cf5eed8c0..4040694afc9f 100644 --- a/internal/services/network/network_watcher_data_source.go +++ b/internal/services/network/network_watcher_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/network_watcher_flow_log_resource.go b/internal/services/network/network_watcher_flow_log_resource.go index b1af4492b3bc..cf755d3105c9 100644 --- a/internal/services/network/network_watcher_flow_log_resource.go +++ b/internal/services/network/network_watcher_flow_log_resource.go @@ -14,9 +14,9 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -64,7 +64,7 @@ func resourceNetworkWatcherFlowLog() *pluginsdk.Resource { "resource_group_name": commonschema.ResourceGroupName(), - //lintignore: S013 + // lintignore: S013 "name": { Type: pluginsdk.TypeString, Required: true, @@ -72,11 +72,14 @@ func resourceNetworkWatcherFlowLog() *pluginsdk.Resource { ValidateFunc: validate.NetworkWatcherFlowLogName, }, - "network_security_group_id": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: networksecuritygroups.ValidateNetworkSecurityGroupID, + "target_resource_id": { + Type: pluginsdk.TypeString, + ForceNew: true, + Required: true, + ValidateFunc: validation.Any( + networksecuritygroups.ValidateNetworkSecurityGroupID, + commonids.ValidateVirtualNetworkID, + ), }, "storage_account_id": { @@ -172,13 +175,20 @@ func resourceNetworkWatcherFlowLog() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["version"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, + if !features.FivePointOhBeta() { + resource.Schema["network_security_group_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, Optional: true, Computed: true, - ValidateFunc: validation.IntBetween(1, 2), + ValidateFunc: networksecuritygroups.ValidateNetworkSecurityGroupID, + Deprecated: "The property `network_security_group_id` has been superseded by `target_resource_id` and will be removed in version 5.0 of the AzureRM Provider.", + ExactlyOneOf: []string{"network_security_group_id", "target_resource_id"}, } + resource.Schema["target_resource_id"].Required = false + resource.Schema["target_resource_id"].Optional = true + resource.Schema["target_resource_id"].Computed = true + resource.Schema["target_resource_id"].ForceNew = false + resource.Schema["target_resource_id"].ExactlyOneOf = []string{"network_security_group_id", "target_resource_id"} } return resource @@ -203,9 +213,17 @@ func resourceNetworkWatcherFlowLogCreate(d *pluginsdk.ResourceData, meta interfa defer cancel() id := flowlogs.NewFlowLogID(subscriptionId, d.Get("resource_group_name").(string), d.Get("network_watcher_name").(string), d.Get("name").(string)) - nsgId, err := networksecuritygroups.ParseNetworkSecurityGroupID(d.Get("network_security_group_id").(string)) - if err != nil { - return err + + targetResourceId := "" + + if !features.FivePointOhBeta() { + if v, ok := d.GetOk("network_security_group_id"); ok && v.(string) != "" { + targetResourceId = v.(string) + } + } + + if v, ok := d.GetOk("target_resource_id"); ok && v.(string) != "" { + targetResourceId = v.(string) } // For newly created resources, the "name" is required, it is set as Optional and Computed is merely for the existing ones for the sake of backward compatibility. @@ -224,8 +242,8 @@ func resourceNetworkWatcherFlowLogCreate(d *pluginsdk.ResourceData, meta interfa return tf.ImportAsExistsError("azurerm_network_watcher_flow_log", id.ID()) } - locks.ByID(nsgId.ID()) - defer locks.UnlockByID(nsgId.ID()) + locks.ByID(targetResourceId) + defer locks.UnlockByID(targetResourceId) loc := d.Get("location").(string) if loc == "" { @@ -244,7 +262,7 @@ func resourceNetworkWatcherFlowLogCreate(d *pluginsdk.ResourceData, meta interfa parameters := flowlogs.FlowLog{ Location: utils.String(location.Normalize(loc)), Properties: &flowlogs.FlowLogPropertiesFormat{ - TargetResourceId: nsgId.ID(), + TargetResourceId: targetResourceId, StorageId: d.Get("storage_account_id").(string), Enabled: pointer.To(d.Get("enabled").(bool)), RetentionPolicy: expandNetworkWatcherFlowLogRetentionPolicy(d.Get("retention_policy").([]interface{})), @@ -297,12 +315,20 @@ func resourceNetworkWatcherFlowLogUpdate(d *pluginsdk.ResourceData, meta interfa payload := existing.Model - nsgId, err := networksecuritygroups.ParseNetworkSecurityGroupID(d.Get("network_security_group_id").(string)) - if err != nil { - return err + targetResourceId := "" + + if !features.FivePointOhBeta() { + if v, ok := d.GetOk("network_security_group_id"); ok && v.(string) != "" { + targetResourceId = v.(string) + } } - locks.ByID(nsgId.ID()) - defer locks.UnlockByID(nsgId.ID()) + + if v, ok := d.GetOk("target_resource_id"); ok && v.(string) != "" { + targetResourceId = v.(string) + } + + locks.ByID(targetResourceId) + defer locks.UnlockByID(targetResourceId) if d.HasChange("storage_account_id") { payload.Properties.StorageId = d.Get("storage_account_id").(string) @@ -330,6 +356,10 @@ func resourceNetworkWatcherFlowLogUpdate(d *pluginsdk.ResourceData, meta interfa } } + if d.HasChange("tags") { + payload.Tags = tags.Expand(d.Get("tags").(map[string]interface{})) + } + if err := client.CreateOrUpdateThenPoll(ctx, *id, *payload); err != nil { return fmt.Errorf("updating %s: %+v", id, err) } @@ -385,12 +415,20 @@ func resourceNetworkWatcherFlowLogRead(d *pluginsdk.ResourceData, meta interface d.Set("storage_account_id", props.StorageId) } - networkSecurityGroupId := "" - nsgId, err := networksecuritygroups.ParseNetworkSecurityGroupIDInsensitively(props.TargetResourceId) - if err == nil { - networkSecurityGroupId = nsgId.ID() + targetResourceId := props.TargetResourceId + targetIsNSG := false + if nsgId, err := networksecuritygroups.ParseNetworkSecurityGroupIDInsensitively(props.TargetResourceId); err == nil { + targetResourceId = nsgId.ID() + targetIsNSG = true + } else if vnetId, err := commonids.ParseVirtualNetworkIDInsensitively(props.TargetResourceId); err == nil { + targetResourceId = vnetId.ID() + } + + if !features.FivePointOhBeta() && targetIsNSG { + d.Set("network_security_group_id", targetResourceId) } - d.Set("network_security_group_id", networkSecurityGroupId) + + d.Set("target_resource_id", targetResourceId) if err := d.Set("retention_policy", flattenNetworkWatcherFlowLogRetentionPolicy(props.RetentionPolicy)); err != nil { return fmt.Errorf("setting `retention_policy`: %+v", err) @@ -418,16 +456,18 @@ func resourceNetworkWatcherFlowLogDelete(d *pluginsdk.ResourceData, meta interfa return fmt.Errorf("retrieving %s: %+v", id, err) } if resp.Model == nil || resp.Model.Properties == nil || resp.Model.Properties.TargetResourceId == "" { - return fmt.Errorf("retreiving %s: `properties` or `properties.TargetResourceID` was nil", id) + return fmt.Errorf("retrieving %s: `properties` or `properties.TargetResourceID` was nil", id) } - networkSecurityGroupId, err := networksecuritygroups.ParseNetworkSecurityGroupIDInsensitively(resp.Model.Properties.TargetResourceId) - if err != nil { - return fmt.Errorf("parsing %q as a Network Security Group ID: %+v", resp.Model.Properties.TargetResourceId, err) + targetResourceId := resp.Model.Properties.TargetResourceId + if nsgId, err := networksecuritygroups.ParseNetworkSecurityGroupIDInsensitively(resp.Model.Properties.TargetResourceId); err == nil { + targetResourceId = nsgId.ID() + } else if vnetId, err := commonids.ParseVirtualNetworkIDInsensitively(resp.Model.Properties.TargetResourceId); err == nil { + targetResourceId = vnetId.ID() } - locks.ByID(networkSecurityGroupId.ID()) - defer locks.UnlockByID(networkSecurityGroupId.ID()) + locks.ByID(targetResourceId) + defer locks.UnlockByID(targetResourceId) if err := client.DeleteThenPoll(ctx, *id); err != nil { return fmt.Errorf("deleting %s: %v", id, err) diff --git a/internal/services/network/network_watcher_flow_log_resource_test.go b/internal/services/network/network_watcher_flow_log_resource_test.go index 9c888ed32101..8fda8ef2ee43 100644 --- a/internal/services/network/network_watcher_flow_log_resource_test.go +++ b/internal/services/network/network_watcher_flow_log_resource_test.go @@ -9,10 +9,11 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -33,6 +34,21 @@ func testAccNetworkWatcherFlowLog_basic(t *testing.T) { }) } +func testAccNetworkWatcherFlowLog_basicWithVirtualNetwork(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_network_watcher_flow_log", "test") + r := NetworkWatcherFlowLogResource{} + + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.basicConfigWithVirtualNetwork(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func testAccNetworkWatcherFlowLog_requiresImport(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_network_watcher_flow_log", "test") r := NetworkWatcherFlowLogResource{} @@ -285,7 +301,8 @@ resource "azurerm_storage_account" "test" { } func (r NetworkWatcherFlowLogResource) basicConfig(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_network_watcher_flow_log" "test" { @@ -302,19 +319,94 @@ resource "azurerm_network_watcher_flow_log" "test" { days = 0 } } +`, r.prerequisites(data), data.RandomInteger) + } + return fmt.Sprintf(` +%s + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = false + days = 0 + } +} `, r.prerequisites(data), data.RandomInteger) } -func (r NetworkWatcherFlowLogResource) requiresImport(data acceptance.TestData) string { +func (r NetworkWatcherFlowLogResource) basicConfigWithVirtualNetwork(data acceptance.TestData) string { + if !features.FivePointOhBeta() { + return fmt.Sprintf(` +%s + +resource "azurerm_virtual_network" "test" { + name = "acctestvn-%d" + address_space = ["10.0.0.0/16"] + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + + target_resource_id = azurerm_virtual_network.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = false + days = 0 + } +} +`, r.prerequisites(data), data.RandomInteger, data.RandomInteger) + } return fmt.Sprintf(` %s +resource "azurerm_virtual_network" "test" { + name = "acctestvn-%d" + address_space = ["10.0.0.0/16"] + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + + target_resource_id = azurerm_virtual_network.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = false + days = 0 + } +} +`, r.prerequisites(data), data.RandomInteger, data.RandomInteger) +} + +func (r NetworkWatcherFlowLogResource) requiresImport(data acceptance.TestData) string { + if !features.FivePointOhBeta() { + return fmt.Sprintf(` +%s + resource "azurerm_network_watcher_flow_log" "import" { network_watcher_name = azurerm_network_watcher_flow_log.test.network_watcher_name resource_group_name = azurerm_network_watcher_flow_log.test.resource_group_name name = azurerm_network_watcher_flow_log.test.name - network_security_group_id = azurerm_network_watcher_flow_log.test.network_security_group_id + network_security_group_id = azurerm_network_watcher_flow_log.test.target_resource_id storage_account_id = azurerm_network_watcher_flow_log.test.storage_account_id enabled = azurerm_network_watcher_flow_log.test.enabled @@ -323,11 +415,31 @@ resource "azurerm_network_watcher_flow_log" "import" { days = 0 } } +`, r.basicConfig(data)) + } + return fmt.Sprintf(` +%s + +resource "azurerm_network_watcher_flow_log" "import" { + network_watcher_name = azurerm_network_watcher_flow_log.test.network_watcher_name + resource_group_name = azurerm_network_watcher_flow_log.test.resource_group_name + name = azurerm_network_watcher_flow_log.test.name + + target_resource_id = azurerm_network_watcher_flow_log.test.target_resource_id + storage_account_id = azurerm_network_watcher_flow_log.test.storage_account_id + enabled = azurerm_network_watcher_flow_log.test.enabled + + retention_policy { + enabled = false + days = 0 + } +} `, r.basicConfig(data)) } func (r NetworkWatcherFlowLogResource) retentionPolicyConfig(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_network_watcher_flow_log" "test" { @@ -344,11 +456,31 @@ resource "azurerm_network_watcher_flow_log" "test" { days = 7 } } +`, r.prerequisites(data), data.RandomInteger) + } + return fmt.Sprintf(` +%s + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = true + days = 7 + } +} `, r.prerequisites(data), data.RandomInteger) } func (r NetworkWatcherFlowLogResource) retentionPolicyConfigUpdateStorageAccount(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_storage_account" "testb" { @@ -376,11 +508,42 @@ resource "azurerm_network_watcher_flow_log" "test" { days = 7 } } +`, r.prerequisites(data), data.RandomInteger%1000000+1, data.RandomInteger) + } + return fmt.Sprintf(` +%s + +resource "azurerm_storage_account" "testb" { + name = "acctestsab%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + account_tier = "Standard" + account_kind = "StorageV2" + account_replication_type = "LRS" + https_traffic_only_enabled = true +} + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.testb.id + enabled = true + + retention_policy { + enabled = true + days = 7 + } +} `, r.prerequisites(data), data.RandomInteger%1000000+1, data.RandomInteger) } func (r NetworkWatcherFlowLogResource) disabledConfig(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_network_watcher_flow_log" "test" { @@ -398,11 +561,32 @@ resource "azurerm_network_watcher_flow_log" "test" { days = 7 } } +`, r.prerequisites(data), data.RandomInteger) + } + return fmt.Sprintf(` +%s + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + location = azurerm_network_watcher.test.location + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = false + + retention_policy { + enabled = true + days = 7 + } +} `, r.prerequisites(data), data.RandomInteger) } func (r NetworkWatcherFlowLogResource) TrafficAnalyticsEnabledConfig(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_log_analytics_workspace" "test" { @@ -434,11 +618,46 @@ resource "azurerm_network_watcher_flow_log" "test" { workspace_resource_id = azurerm_log_analytics_workspace.test.id } } +`, r.prerequisites(data), data.RandomInteger, data.RandomInteger) + } + return fmt.Sprintf(` +%s + +resource "azurerm_log_analytics_workspace" "test" { + name = "acctestLAW-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "PerGB2018" +} + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + location = azurerm_network_watcher.test.location + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = true + days = 7 + } + + traffic_analytics { + enabled = true + workspace_id = azurerm_log_analytics_workspace.test.workspace_id + workspace_region = azurerm_log_analytics_workspace.test.location + workspace_resource_id = azurerm_log_analytics_workspace.test.id + } +} `, r.prerequisites(data), data.RandomInteger, data.RandomInteger) } func (r NetworkWatcherFlowLogResource) TrafficAnalyticsUpdateInterval(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_log_analytics_workspace" "test" { @@ -471,11 +690,47 @@ resource "azurerm_network_watcher_flow_log" "test" { interval_in_minutes = 10 } } +`, r.prerequisites(data), data.RandomInteger, data.RandomInteger) + } + return fmt.Sprintf(` +%s + +resource "azurerm_log_analytics_workspace" "test" { + name = "acctestLAW-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "PerGB2018" +} + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + location = azurerm_network_watcher.test.location + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = true + days = 7 + } + + traffic_analytics { + enabled = true + workspace_id = azurerm_log_analytics_workspace.test.workspace_id + workspace_region = azurerm_log_analytics_workspace.test.location + workspace_resource_id = azurerm_log_analytics_workspace.test.id + interval_in_minutes = 10 + } +} `, r.prerequisites(data), data.RandomInteger, data.RandomInteger) } func (r NetworkWatcherFlowLogResource) TrafficAnalyticsDisabledConfig(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_log_analytics_workspace" "test" { @@ -507,11 +762,47 @@ resource "azurerm_network_watcher_flow_log" "test" { workspace_resource_id = azurerm_log_analytics_workspace.test.id } } +`, r.prerequisites(data), data.RandomInteger, data.RandomInteger) + } + + return fmt.Sprintf(` +%s + +resource "azurerm_log_analytics_workspace" "test" { + name = "acctestLAW-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "PerGB2018" +} + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + location = azurerm_network_watcher.test.location + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = true + days = 7 + } + + traffic_analytics { + enabled = false + workspace_id = azurerm_log_analytics_workspace.test.workspace_id + workspace_region = azurerm_log_analytics_workspace.test.location + workspace_resource_id = azurerm_log_analytics_workspace.test.id + } +} `, r.prerequisites(data), data.RandomInteger, data.RandomInteger) } func (r NetworkWatcherFlowLogResource) versionConfig(data acceptance.TestData, version int) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_log_analytics_workspace" "test" { @@ -544,11 +835,47 @@ resource "azurerm_network_watcher_flow_log" "test" { workspace_resource_id = azurerm_log_analytics_workspace.test.id } } +`, r.prerequisites(data), data.RandomInteger, data.RandomInteger, version) + } + return fmt.Sprintf(` +%s + +resource "azurerm_log_analytics_workspace" "test" { + name = "acctestLAW-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "PerGB2018" +} + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + location = azurerm_network_watcher.test.location + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + version = %d + + retention_policy { + enabled = true + days = 7 + } + + traffic_analytics { + enabled = true + workspace_id = azurerm_log_analytics_workspace.test.workspace_id + workspace_region = azurerm_log_analytics_workspace.test.location + workspace_resource_id = azurerm_log_analytics_workspace.test.id + } +} `, r.prerequisites(data), data.RandomInteger, data.RandomInteger, version) } func (r NetworkWatcherFlowLogResource) location(data acceptance.TestData) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_network_watcher_flow_log" "test" { @@ -566,11 +893,32 @@ resource "azurerm_network_watcher_flow_log" "test" { days = 0 } } +`, r.prerequisites(data), data.RandomInteger) + } + return fmt.Sprintf(` +%s + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + location = azurerm_resource_group.test.location + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = false + days = 0 + } +} `, r.prerequisites(data), data.RandomInteger) } func (r NetworkWatcherFlowLogResource) tags(data acceptance.TestData, v string) string { - return fmt.Sprintf(` + if !features.FivePointOhBeta() { + return fmt.Sprintf(` %s resource "azurerm_network_watcher_flow_log" "test" { @@ -591,5 +939,28 @@ resource "azurerm_network_watcher_flow_log" "test" { env = "%s" } } +`, r.prerequisites(data), data.RandomInteger, v) + } + return fmt.Sprintf(` +%s + +resource "azurerm_network_watcher_flow_log" "test" { + network_watcher_name = azurerm_network_watcher.test.name + resource_group_name = azurerm_resource_group.test.name + name = "flowlog-%d" + + target_resource_id = azurerm_network_security_group.test.id + storage_account_id = azurerm_storage_account.test.id + enabled = true + + retention_policy { + enabled = false + days = 0 + } + + tags = { + env = "%s" + } +} `, r.prerequisites(data), data.RandomInteger, v) } diff --git a/internal/services/network/network_watcher_resource.go b/internal/services/network/network_watcher_resource.go index 81d1bf17d52b..41c9f67ffaf4 100644 --- a/internal/services/network/network_watcher_resource.go +++ b/internal/services/network/network_watcher_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/network_watcher_resource_test.go b/internal/services/network/network_watcher_resource_test.go index f2520b457dd8..01f4ec4eba96 100644 --- a/internal/services/network/network_watcher_resource_test.go +++ b/internal/services/network/network_watcher_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -77,16 +77,17 @@ func TestAccNetworkWatcher(t *testing.T) { "machineScope": testAccVirtualMachineScaleSetPacketCapture_machineScope, }, "FlowLog": { - "basic": testAccNetworkWatcherFlowLog_basic, - "requiresImport": testAccNetworkWatcherFlowLog_requiresImport, - "disabled": testAccNetworkWatcherFlowLog_disabled, - "reenabled": testAccNetworkWatcherFlowLog_reenabled, - "retentionPolicy": testAccNetworkWatcherFlowLog_retentionPolicy, - "updateStorageAccount": testAccNetworkWatcherFlowLog_updateStorageAccount, - "trafficAnalytics": testAccNetworkWatcherFlowLog_trafficAnalytics, - "version": testAccNetworkWatcherFlowLog_version, - "location": testAccNetworkWatcherFlowLog_location, - "tags": testAccNetworkWatcherFlowLog_tags, + "basic": testAccNetworkWatcherFlowLog_basic, + "basicWithVirtualNetwork": testAccNetworkWatcherFlowLog_basicWithVirtualNetwork, + "requiresImport": testAccNetworkWatcherFlowLog_requiresImport, + "disabled": testAccNetworkWatcherFlowLog_disabled, + "reenabled": testAccNetworkWatcherFlowLog_reenabled, + "retentionPolicy": testAccNetworkWatcherFlowLog_retentionPolicy, + "updateStorageAccount": testAccNetworkWatcherFlowLog_updateStorageAccount, + "trafficAnalytics": testAccNetworkWatcherFlowLog_trafficAnalytics, + "version": testAccNetworkWatcherFlowLog_version, + "location": testAccNetworkWatcherFlowLog_location, + "tags": testAccNetworkWatcherFlowLog_tags, }, } diff --git a/internal/services/network/parse/application_gateway_backend_address_pool_test.go b/internal/services/network/parse/application_gateway_backend_address_pool_test.go index 063dc01044a4..9d43802f19b7 100644 --- a/internal/services/network/parse/application_gateway_backend_address_pool_test.go +++ b/internal/services/network/parse/application_gateway_backend_address_pool_test.go @@ -141,7 +141,6 @@ func TestParseApplicationGatewayBackendAddressPoolID(t *testing.T) { if actual.BackendAddressPoolName != v.Expected.BackendAddressPoolName { t.Fatalf("Expected %q but got %q for BackendAddressPoolName", v.Expected.BackendAddressPoolName, actual.BackendAddressPoolName) } - } } @@ -307,7 +306,6 @@ func TestParseApplicationGatewayBackendAddressPoolIDInsensitively(t *testing.T) if actual.BackendAddressPoolName != v.Expected.BackendAddressPoolName { t.Fatalf("Expected %q but got %q for BackendAddressPoolName", v.Expected.BackendAddressPoolName, actual.BackendAddressPoolName) } - } } diff --git a/internal/services/network/parse/application_gateway_private_link_configuration.go b/internal/services/network/parse/application_gateway_private_link_configuration.go index a3539e3f5c4c..692cac2f185e 100644 --- a/internal/services/network/parse/application_gateway_private_link_configuration.go +++ b/internal/services/network/parse/application_gateway_private_link_configuration.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ApplicationGatewayPrivateLinkConfigurationID(input string) (*ApplicationGat } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func ApplicationGatewayPrivateLinkConfigurationIDInsensitively(input string) (*A } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/application_gateway_private_link_configuration_test.go b/internal/services/network/parse/application_gateway_private_link_configuration_test.go index fbd8de8f1abb..f8fc022d0f7c 100644 --- a/internal/services/network/parse/application_gateway_private_link_configuration_test.go +++ b/internal/services/network/parse/application_gateway_private_link_configuration_test.go @@ -27,7 +27,6 @@ func TestApplicationGatewayPrivateLinkConfigurationID(t *testing.T) { Error bool Expected *ApplicationGatewayPrivateLinkConfigurationId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestApplicationGatewayPrivateLinkConfigurationIDInsensitively(t *testing.T) Error bool Expected *ApplicationGatewayPrivateLinkConfigurationId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/application_gateway_url_path_map_path_rule.go b/internal/services/network/parse/application_gateway_url_path_map_path_rule.go index 320b8e15cbe0..36aae145788d 100644 --- a/internal/services/network/parse/application_gateway_url_path_map_path_rule.go +++ b/internal/services/network/parse/application_gateway_url_path_map_path_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -38,7 +39,7 @@ func (id ApplicationGatewayURLPathMapPathRuleId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Application Gateway U R L Path Map Path Rule", segmentsStr) + return fmt.Sprintf("%s: (%s)", "Application GatewayURL Path Map Path Rule", segmentsStr) } func (id ApplicationGatewayURLPathMapPathRuleId) ID() string { @@ -59,11 +60,11 @@ func ApplicationGatewayURLPathMapPathRuleID(input string) (*ApplicationGatewayUR } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { diff --git a/internal/services/network/parse/application_gateway_url_path_map_path_rule_test.go b/internal/services/network/parse/application_gateway_url_path_map_path_rule_test.go index 5281db2a15e5..b7018b902671 100644 --- a/internal/services/network/parse/application_gateway_url_path_map_path_rule_test.go +++ b/internal/services/network/parse/application_gateway_url_path_map_path_rule_test.go @@ -27,7 +27,6 @@ func TestApplicationGatewayURLPathMapPathRuleID(t *testing.T) { Error bool Expected *ApplicationGatewayURLPathMapPathRuleId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/authentication_certificate.go b/internal/services/network/parse/authentication_certificate.go index 21e0d10f4468..cf4315cbe099 100644 --- a/internal/services/network/parse/authentication_certificate.go +++ b/internal/services/network/parse/authentication_certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func AuthenticationCertificateID(input string) (*AuthenticationCertificateId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func AuthenticationCertificateIDInsensitively(input string) (*AuthenticationCert } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/authentication_certificate_test.go b/internal/services/network/parse/authentication_certificate_test.go index fbaf6a05008c..30ff988ba05a 100644 --- a/internal/services/network/parse/authentication_certificate_test.go +++ b/internal/services/network/parse/authentication_certificate_test.go @@ -27,7 +27,6 @@ func TestAuthenticationCertificateID(t *testing.T) { Error bool Expected *AuthenticationCertificateId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestAuthenticationCertificateIDInsensitively(t *testing.T) { Error bool Expected *AuthenticationCertificateId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/backend_address_pool.go b/internal/services/network/parse/backend_address_pool.go index 8c7d0cb13502..cb1112d3d431 100644 --- a/internal/services/network/parse/backend_address_pool.go +++ b/internal/services/network/parse/backend_address_pool.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func BackendAddressPoolID(input string) (*BackendAddressPoolId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func BackendAddressPoolIDInsensitively(input string) (*BackendAddressPoolId, err } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/backend_address_pool_test.go b/internal/services/network/parse/backend_address_pool_test.go index 1bb3e85d3f3a..376af463f5e0 100644 --- a/internal/services/network/parse/backend_address_pool_test.go +++ b/internal/services/network/parse/backend_address_pool_test.go @@ -27,7 +27,6 @@ func TestBackendAddressPoolID(t *testing.T) { Error bool Expected *BackendAddressPoolId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestBackendAddressPoolIDInsensitively(t *testing.T) { Error bool Expected *BackendAddressPoolId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/backend_http_settings_collection.go b/internal/services/network/parse/backend_http_settings_collection.go index 86147873a87a..8bdd5179a988 100644 --- a/internal/services/network/parse/backend_http_settings_collection.go +++ b/internal/services/network/parse/backend_http_settings_collection.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func BackendHttpSettingsCollectionID(input string) (*BackendHttpSettingsCollecti } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func BackendHttpSettingsCollectionIDInsensitively(input string) (*BackendHttpSet } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/backend_http_settings_collection_test.go b/internal/services/network/parse/backend_http_settings_collection_test.go index 34cabf5d1c93..278ca3c43efd 100644 --- a/internal/services/network/parse/backend_http_settings_collection_test.go +++ b/internal/services/network/parse/backend_http_settings_collection_test.go @@ -27,7 +27,6 @@ func TestBackendHttpSettingsCollectionID(t *testing.T) { Error bool Expected *BackendHttpSettingsCollectionId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestBackendHttpSettingsCollectionIDInsensitively(t *testing.T) { Error bool Expected *BackendHttpSettingsCollectionId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/custom_ipv4_prefix_test.go b/internal/services/network/parse/custom_ipv4_prefix_test.go index 1fe58d01b124..1b16dbfba617 100644 --- a/internal/services/network/parse/custom_ipv4_prefix_test.go +++ b/internal/services/network/parse/custom_ipv4_prefix_test.go @@ -27,7 +27,6 @@ func TestCustomIpv4PrefixID(t *testing.T) { Error bool Expected *CustomIpv4PrefixId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/frontend_ip_configuration.go b/internal/services/network/parse/frontend_ip_configuration.go index 40ad2728d5e4..664de710f163 100644 --- a/internal/services/network/parse/frontend_ip_configuration.go +++ b/internal/services/network/parse/frontend_ip_configuration.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -35,7 +36,7 @@ func (id FrontendIPConfigurationId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Frontend I P Configuration", segmentsStr) + return fmt.Sprintf("%s: (%s)", "FrontendIP Configuration", segmentsStr) } func (id FrontendIPConfigurationId) ID() string { @@ -56,11 +57,11 @@ func FrontendIPConfigurationID(input string) (*FrontendIPConfigurationId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func FrontendIPConfigurationIDInsensitively(input string) (*FrontendIPConfigurat } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/frontend_ip_configuration_test.go b/internal/services/network/parse/frontend_ip_configuration_test.go index c181c2daab5f..a9a9e3cfa616 100644 --- a/internal/services/network/parse/frontend_ip_configuration_test.go +++ b/internal/services/network/parse/frontend_ip_configuration_test.go @@ -27,7 +27,6 @@ func TestFrontendIPConfigurationID(t *testing.T) { Error bool Expected *FrontendIPConfigurationId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontendIPConfigurationIDInsensitively(t *testing.T) { Error bool Expected *FrontendIPConfigurationId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/frontend_port.go b/internal/services/network/parse/frontend_port.go index a45a5fa524e8..bfc7eb2392c5 100644 --- a/internal/services/network/parse/frontend_port.go +++ b/internal/services/network/parse/frontend_port.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FrontendPortID(input string) (*FrontendPortId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func FrontendPortIDInsensitively(input string) (*FrontendPortId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/frontend_port_test.go b/internal/services/network/parse/frontend_port_test.go index 04cf76eb536d..bee8386cb4cd 100644 --- a/internal/services/network/parse/frontend_port_test.go +++ b/internal/services/network/parse/frontend_port_test.go @@ -27,7 +27,6 @@ func TestFrontendPortID(t *testing.T) { Error bool Expected *FrontendPortId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestFrontendPortIDInsensitively(t *testing.T) { Error bool Expected *FrontendPortId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/http_listener.go b/internal/services/network/parse/http_listener.go index f414fee32e45..86fa3ceedc8f 100644 --- a/internal/services/network/parse/http_listener.go +++ b/internal/services/network/parse/http_listener.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func HttpListenerID(input string) (*HttpListenerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func HttpListenerIDInsensitively(input string) (*HttpListenerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/http_listener_test.go b/internal/services/network/parse/http_listener_test.go index 5f5f5b4b0966..e1409394aea1 100644 --- a/internal/services/network/parse/http_listener_test.go +++ b/internal/services/network/parse/http_listener_test.go @@ -27,7 +27,6 @@ func TestHttpListenerID(t *testing.T) { Error bool Expected *HttpListenerId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestHttpListenerIDInsensitively(t *testing.T) { Error bool Expected *HttpListenerId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/hub_route_table_route.go b/internal/services/network/parse/hub_route_table_route.go index e48be8b5cd17..9cb1b3082073 100644 --- a/internal/services/network/parse/hub_route_table_route.go +++ b/internal/services/network/parse/hub_route_table_route.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func HubRouteTableRouteID(input string) (*HubRouteTableRouteId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualHubName, err = id.PopSegment("virtualHubs"); err != nil { diff --git a/internal/services/network/parse/hub_route_table_route_test.go b/internal/services/network/parse/hub_route_table_route_test.go index 58d83a9fc2f6..499a29208c0a 100644 --- a/internal/services/network/parse/hub_route_table_route_test.go +++ b/internal/services/network/parse/hub_route_table_route_test.go @@ -27,7 +27,6 @@ func TestHubRouteTableRouteID(t *testing.T) { Error bool Expected *HubRouteTableRouteId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/ip_group_cidr_test.go b/internal/services/network/parse/ip_group_cidr_test.go index d864a4d28c51..84703a781f3b 100644 --- a/internal/services/network/parse/ip_group_cidr_test.go +++ b/internal/services/network/parse/ip_group_cidr_test.go @@ -27,7 +27,6 @@ func TestIpGroupCidrID(t *testing.T) { Error bool Expected *IpGroupCidrId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/network_interface_ip_configuration.go b/internal/services/network/parse/network_interface_ip_configuration.go index cd4501cde968..73be62cb4efa 100644 --- a/internal/services/network/parse/network_interface_ip_configuration.go +++ b/internal/services/network/parse/network_interface_ip_configuration.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func NetworkInterfaceIpConfigurationID(input string) (*NetworkInterfaceIpConfigu } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.NetworkInterfaceName, err = id.PopSegment("networkInterfaces"); err != nil { diff --git a/internal/services/network/parse/network_interface_ip_configuration_test.go b/internal/services/network/parse/network_interface_ip_configuration_test.go index f22f7b484f33..3df463aa57fc 100644 --- a/internal/services/network/parse/network_interface_ip_configuration_test.go +++ b/internal/services/network/parse/network_interface_ip_configuration_test.go @@ -27,7 +27,6 @@ func TestNetworkInterfaceIpConfigurationID(t *testing.T) { Error bool Expected *NetworkInterfaceIpConfigurationId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/private_dns_zone_config.go b/internal/services/network/parse/private_dns_zone_config.go index 9cad67ea818f..7ea7283e4a99 100644 --- a/internal/services/network/parse/private_dns_zone_config.go +++ b/internal/services/network/parse/private_dns_zone_config.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func PrivateDnsZoneConfigID(input string) (*PrivateDnsZoneConfigId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.PrivateEndpointName, err = id.PopSegment("privateEndpoints"); err != nil { diff --git a/internal/services/network/parse/private_dns_zone_config_test.go b/internal/services/network/parse/private_dns_zone_config_test.go index 29aa1fda7767..8811b94cba76 100644 --- a/internal/services/network/parse/private_dns_zone_config_test.go +++ b/internal/services/network/parse/private_dns_zone_config_test.go @@ -27,7 +27,6 @@ func TestPrivateDnsZoneConfigID(t *testing.T) { Error bool Expected *PrivateDnsZoneConfigId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/private_dns_zone_group.go b/internal/services/network/parse/private_dns_zone_group.go index 90972c556004..1bbc7f57dcef 100644 --- a/internal/services/network/parse/private_dns_zone_group.go +++ b/internal/services/network/parse/private_dns_zone_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func PrivateDnsZoneGroupID(input string) (*PrivateDnsZoneGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.PrivateEndpointName, err = id.PopSegment("privateEndpoints"); err != nil { diff --git a/internal/services/network/parse/private_dns_zone_group_test.go b/internal/services/network/parse/private_dns_zone_group_test.go index 410b2063a6ad..a40eca813831 100644 --- a/internal/services/network/parse/private_dns_zone_group_test.go +++ b/internal/services/network/parse/private_dns_zone_group_test.go @@ -27,7 +27,6 @@ func TestPrivateDnsZoneGroupID(t *testing.T) { Error bool Expected *PrivateDnsZoneGroupId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/private_endpoint_application_security_group_association_id.go b/internal/services/network/parse/private_endpoint_application_security_group_association_id.go index 34cca218c579..ce74080f2adc 100644 --- a/internal/services/network/parse/private_endpoint_application_security_group_association_id.go +++ b/internal/services/network/parse/private_endpoint_application_security_group_association_id.go @@ -8,8 +8,8 @@ import ( "strings" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" ) var _ resourceids.Id = PrivateEndpointApplicationSecurityGroupAssociationId{} diff --git a/internal/services/network/parse/private_endpoint_application_security_group_association_id_test.go b/internal/services/network/parse/private_endpoint_application_security_group_association_id_test.go index 054cc78f2106..2019a7fc942a 100644 --- a/internal/services/network/parse/private_endpoint_application_security_group_association_id_test.go +++ b/internal/services/network/parse/private_endpoint_application_security_group_association_id_test.go @@ -6,8 +6,8 @@ package parse import ( "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" ) func TestPrivateEndpointApplicationSecurityGroupAssociationID(t *testing.T) { diff --git a/internal/services/network/parse/probe.go b/internal/services/network/parse/probe.go index 2a07373ea120..2ce1f70e6413 100644 --- a/internal/services/network/parse/probe.go +++ b/internal/services/network/parse/probe.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ProbeID(input string) (*ProbeId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func ProbeIDInsensitively(input string) (*ProbeId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/probe_test.go b/internal/services/network/parse/probe_test.go index 7f9e1d999d10..cceb83b193c4 100644 --- a/internal/services/network/parse/probe_test.go +++ b/internal/services/network/parse/probe_test.go @@ -27,7 +27,6 @@ func TestProbeID(t *testing.T) { Error bool Expected *ProbeId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestProbeIDInsensitively(t *testing.T) { Error bool Expected *ProbeId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/redirect_configurations.go b/internal/services/network/parse/redirect_configurations.go index 70c24deb166c..a55f4964b676 100644 --- a/internal/services/network/parse/redirect_configurations.go +++ b/internal/services/network/parse/redirect_configurations.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func RedirectConfigurationsID(input string) (*RedirectConfigurationsId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func RedirectConfigurationsIDInsensitively(input string) (*RedirectConfiguration } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/redirect_configurations_test.go b/internal/services/network/parse/redirect_configurations_test.go index 88c9f9ab9f35..7206ff2533fe 100644 --- a/internal/services/network/parse/redirect_configurations_test.go +++ b/internal/services/network/parse/redirect_configurations_test.go @@ -27,7 +27,6 @@ func TestRedirectConfigurationsID(t *testing.T) { Error bool Expected *RedirectConfigurationsId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestRedirectConfigurationsIDInsensitively(t *testing.T) { Error bool Expected *RedirectConfigurationsId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/rewrite_rule_set.go b/internal/services/network/parse/rewrite_rule_set.go index 4cc887b72937..5ec48eea39fb 100644 --- a/internal/services/network/parse/rewrite_rule_set.go +++ b/internal/services/network/parse/rewrite_rule_set.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func RewriteRuleSetID(input string) (*RewriteRuleSetId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func RewriteRuleSetIDInsensitively(input string) (*RewriteRuleSetId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/rewrite_rule_set_test.go b/internal/services/network/parse/rewrite_rule_set_test.go index 997a6a678804..7c0ac51d8ab2 100644 --- a/internal/services/network/parse/rewrite_rule_set_test.go +++ b/internal/services/network/parse/rewrite_rule_set_test.go @@ -27,7 +27,6 @@ func TestRewriteRuleSetID(t *testing.T) { Error bool Expected *RewriteRuleSetId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestRewriteRuleSetIDInsensitively(t *testing.T) { Error bool Expected *RewriteRuleSetId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/route_filter_test.go b/internal/services/network/parse/route_filter_test.go index aebcfd1245a4..001d55395519 100644 --- a/internal/services/network/parse/route_filter_test.go +++ b/internal/services/network/parse/route_filter_test.go @@ -27,7 +27,6 @@ func TestRouteFilterID(t *testing.T) { Error bool Expected *RouteFilterId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/route_table_test.go b/internal/services/network/parse/route_table_test.go index fabc603cfd4b..37676d07ba80 100644 --- a/internal/services/network/parse/route_table_test.go +++ b/internal/services/network/parse/route_table_test.go @@ -27,7 +27,6 @@ func TestRouteTableID(t *testing.T) { Error bool Expected *RouteTableId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/route_test.go b/internal/services/network/parse/route_test.go index b402b8769b40..257ab4b7ba60 100644 --- a/internal/services/network/parse/route_test.go +++ b/internal/services/network/parse/route_test.go @@ -27,7 +27,6 @@ func TestRouteID(t *testing.T) { Error bool Expected *RouteId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/security_rule_test.go b/internal/services/network/parse/security_rule_test.go index d77820ad2fe3..ccb48708459b 100644 --- a/internal/services/network/parse/security_rule_test.go +++ b/internal/services/network/parse/security_rule_test.go @@ -27,7 +27,6 @@ func TestSecurityRuleID(t *testing.T) { Error bool Expected *SecurityRuleId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/ssl_certificate.go b/internal/services/network/parse/ssl_certificate.go index fd0d21778dde..b327e2baa217 100644 --- a/internal/services/network/parse/ssl_certificate.go +++ b/internal/services/network/parse/ssl_certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SslCertificateID(input string) (*SslCertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func SslCertificateIDInsensitively(input string) (*SslCertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/ssl_certificate_test.go b/internal/services/network/parse/ssl_certificate_test.go index 2368f5338d99..dd8f2604c419 100644 --- a/internal/services/network/parse/ssl_certificate_test.go +++ b/internal/services/network/parse/ssl_certificate_test.go @@ -27,7 +27,6 @@ func TestSslCertificateID(t *testing.T) { Error bool Expected *SslCertificateId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSslCertificateIDInsensitively(t *testing.T) { Error bool Expected *SslCertificateId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/ssl_profile.go b/internal/services/network/parse/ssl_profile.go index 306d4cea08f2..c7610491aa5c 100644 --- a/internal/services/network/parse/ssl_profile.go +++ b/internal/services/network/parse/ssl_profile.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SslProfileID(input string) (*SslProfileId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func SslProfileIDInsensitively(input string) (*SslProfileId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/ssl_profile_test.go b/internal/services/network/parse/ssl_profile_test.go index 8d58cc5e2ae7..18e6af3bd6a1 100644 --- a/internal/services/network/parse/ssl_profile_test.go +++ b/internal/services/network/parse/ssl_profile_test.go @@ -27,7 +27,6 @@ func TestSslProfileID(t *testing.T) { Error bool Expected *SslProfileId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSslProfileIDInsensitively(t *testing.T) { Error bool Expected *SslProfileId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/subnet_test.go b/internal/services/network/parse/subnet_test.go index 7076da0a9080..21a728978b61 100644 --- a/internal/services/network/parse/subnet_test.go +++ b/internal/services/network/parse/subnet_test.go @@ -27,7 +27,6 @@ func TestSubnetID(t *testing.T) { Error bool Expected *SubnetId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSubnetIDInsensitively(t *testing.T) { Error bool Expected *SubnetId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/trusted_client_certificate.go b/internal/services/network/parse/trusted_client_certificate.go index 19b8e1e3cb6c..9b06e482747c 100644 --- a/internal/services/network/parse/trusted_client_certificate.go +++ b/internal/services/network/parse/trusted_client_certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func TrustedClientCertificateID(input string) (*TrustedClientCertificateId, erro } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func TrustedClientCertificateIDInsensitively(input string) (*TrustedClientCertif } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/trusted_client_certificate_test.go b/internal/services/network/parse/trusted_client_certificate_test.go index 4fa3b44e3a0f..c4a8a0e683f3 100644 --- a/internal/services/network/parse/trusted_client_certificate_test.go +++ b/internal/services/network/parse/trusted_client_certificate_test.go @@ -27,7 +27,6 @@ func TestTrustedClientCertificateID(t *testing.T) { Error bool Expected *TrustedClientCertificateId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestTrustedClientCertificateIDInsensitively(t *testing.T) { Error bool Expected *TrustedClientCertificateId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/trusted_root_certificate.go b/internal/services/network/parse/trusted_root_certificate.go index 4881853cb5e1..e3629509c43b 100644 --- a/internal/services/network/parse/trusted_root_certificate.go +++ b/internal/services/network/parse/trusted_root_certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func TrustedRootCertificateID(input string) (*TrustedRootCertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func TrustedRootCertificateIDInsensitively(input string) (*TrustedRootCertificat } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/trusted_root_certificate_test.go b/internal/services/network/parse/trusted_root_certificate_test.go index a876e08f9a18..9730afe4764b 100644 --- a/internal/services/network/parse/trusted_root_certificate_test.go +++ b/internal/services/network/parse/trusted_root_certificate_test.go @@ -27,7 +27,6 @@ func TestTrustedRootCertificateID(t *testing.T) { Error bool Expected *TrustedRootCertificateId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestTrustedRootCertificateIDInsensitively(t *testing.T) { Error bool Expected *TrustedRootCertificateId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/url_path_map.go b/internal/services/network/parse/url_path_map.go index 00d644b4e1ee..f38a28cd06b4 100644 --- a/internal/services/network/parse/url_path_map.go +++ b/internal/services/network/parse/url_path_map.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func UrlPathMapID(input string) (*UrlPathMapId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ApplicationGatewayName, err = id.PopSegment("applicationGateways"); err != nil { @@ -95,11 +96,11 @@ func UrlPathMapIDInsensitively(input string) (*UrlPathMapId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'applicationGateways' segment diff --git a/internal/services/network/parse/url_path_map_test.go b/internal/services/network/parse/url_path_map_test.go index e976e5609916..374c3ae6f9d8 100644 --- a/internal/services/network/parse/url_path_map_test.go +++ b/internal/services/network/parse/url_path_map_test.go @@ -27,7 +27,6 @@ func TestUrlPathMapID(t *testing.T) { Error bool Expected *UrlPathMapId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestUrlPathMapIDInsensitively(t *testing.T) { Error bool Expected *UrlPathMapId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/virtual_network_dns_servers.go b/internal/services/network/parse/virtual_network_dns_servers.go index d74e6fbccfa3..05f59647ebc4 100644 --- a/internal/services/network/parse/virtual_network_dns_servers.go +++ b/internal/services/network/parse/virtual_network_dns_servers.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func VirtualNetworkDnsServersID(input string) (*VirtualNetworkDnsServersId, erro } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualNetworkName, err = id.PopSegment("virtualNetworks"); err != nil { @@ -95,11 +96,11 @@ func VirtualNetworkDnsServersIDInsensitively(input string) (*VirtualNetworkDnsSe } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'virtualNetworks' segment diff --git a/internal/services/network/parse/virtual_network_dns_servers_test.go b/internal/services/network/parse/virtual_network_dns_servers_test.go index 0eff16b65948..8c7ecf4eb7b6 100644 --- a/internal/services/network/parse/virtual_network_dns_servers_test.go +++ b/internal/services/network/parse/virtual_network_dns_servers_test.go @@ -27,7 +27,6 @@ func TestVirtualNetworkDnsServersID(t *testing.T) { Error bool Expected *VirtualNetworkDnsServersId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestVirtualNetworkDnsServersIDInsensitively(t *testing.T) { Error bool Expected *VirtualNetworkDnsServersId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/virtual_network_gateway_ip_configuration.go b/internal/services/network/parse/virtual_network_gateway_ip_configuration.go index f380e68cd80d..aadd06d33b3d 100644 --- a/internal/services/network/parse/virtual_network_gateway_ip_configuration.go +++ b/internal/services/network/parse/virtual_network_gateway_ip_configuration.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func VirtualNetworkGatewayIpConfigurationID(input string) (*VirtualNetworkGatewa } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualNetworkGatewayName, err = id.PopSegment("virtualNetworkGateways"); err != nil { @@ -95,11 +96,11 @@ func VirtualNetworkGatewayIpConfigurationIDInsensitively(input string) (*Virtual } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'virtualNetworkGateways' segment diff --git a/internal/services/network/parse/virtual_network_gateway_ip_configuration_test.go b/internal/services/network/parse/virtual_network_gateway_ip_configuration_test.go index 686ecc4da037..7d7c21295f2e 100644 --- a/internal/services/network/parse/virtual_network_gateway_ip_configuration_test.go +++ b/internal/services/network/parse/virtual_network_gateway_ip_configuration_test.go @@ -27,7 +27,6 @@ func TestVirtualNetworkGatewayIpConfigurationID(t *testing.T) { Error bool Expected *VirtualNetworkGatewayIpConfigurationId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestVirtualNetworkGatewayIpConfigurationIDInsensitively(t *testing.T) { Error bool Expected *VirtualNetworkGatewayIpConfigurationId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/virtual_network_gateway_policy_group.go b/internal/services/network/parse/virtual_network_gateway_policy_group.go index c363fcff45db..ef82f1f4b84c 100644 --- a/internal/services/network/parse/virtual_network_gateway_policy_group.go +++ b/internal/services/network/parse/virtual_network_gateway_policy_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func VirtualNetworkGatewayPolicyGroupID(input string) (*VirtualNetworkGatewayPol } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualNetworkGatewayName, err = id.PopSegment("virtualNetworkGateways"); err != nil { diff --git a/internal/services/network/parse/virtual_network_gateway_policy_group_test.go b/internal/services/network/parse/virtual_network_gateway_policy_group_test.go index 5d3bff5d2b70..12d8f9d9911c 100644 --- a/internal/services/network/parse/virtual_network_gateway_policy_group_test.go +++ b/internal/services/network/parse/virtual_network_gateway_policy_group_test.go @@ -27,7 +27,6 @@ func TestVirtualNetworkGatewayPolicyGroupID(t *testing.T) { Error bool Expected *VirtualNetworkGatewayPolicyGroupId }{ - { // empty Input: "", diff --git a/internal/services/network/parse/virtual_network_test.go b/internal/services/network/parse/virtual_network_test.go index b289339cb936..21c97c94fec0 100644 --- a/internal/services/network/parse/virtual_network_test.go +++ b/internal/services/network/parse/virtual_network_test.go @@ -27,7 +27,6 @@ func TestVirtualNetworkID(t *testing.T) { Error bool Expected *VirtualNetworkId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestVirtualNetworkIDInsensitively(t *testing.T) { Error bool Expected *VirtualNetworkId }{ - { // empty Input: "", diff --git a/internal/services/network/point_to_site_vpn_gateway_resource.go b/internal/services/network/point_to_site_vpn_gateway_resource.go index 0f7a9f5c0ba0..de16fa2e0d5c 100644 --- a/internal/services/network/point_to_site_vpn_gateway_resource.go +++ b/internal/services/network/point_to_site_vpn_gateway_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -316,7 +316,6 @@ func resourcePointToSiteVPNGatewayRead(d *pluginsdk.ResourceData, meta interface d.Set("location", location.NormalizeNilable(model.Location)) if props := model.Properties; props != nil { - d.Set("dns_servers", utils.FlattenStringSlice(props.CustomDnsServers)) flattenedConfigurations := flattenPointToSiteVPNGatewayConnectionConfiguration(props.P2SConnectionConfigurations) if err := d.Set("connection_configuration", flattenedConfigurations); err != nil { diff --git a/internal/services/network/private_endpoint_application_security_group_association.go b/internal/services/network/private_endpoint_application_security_group_association.go index 6737e8b8c405..38419ef697cd 100644 --- a/internal/services/network/private_endpoint_application_security_group_association.go +++ b/internal/services/network/private_endpoint_application_security_group_association.go @@ -10,20 +10,17 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -type PrivateEndpointApplicationSecurityGroupAssociationResource struct { -} +type PrivateEndpointApplicationSecurityGroupAssociationResource struct{} -var ( - _ sdk.Resource = PrivateEndpointApplicationSecurityGroupAssociationResource{} -) +var _ sdk.Resource = PrivateEndpointApplicationSecurityGroupAssociationResource{} type PrivateEndpointApplicationSecurityGroupAssociationModel struct { PrivateEndpointId string `tfschema:"private_endpoint_id"` diff --git a/internal/services/network/private_endpoint_application_security_group_association_test.go b/internal/services/network/private_endpoint_application_security_group_association_test.go index 31d033368d67..5948719bf06e 100644 --- a/internal/services/network/private_endpoint_application_security_group_association_test.go +++ b/internal/services/network/private_endpoint_application_security_group_association_test.go @@ -12,15 +12,14 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -type PrivateEndpointApplicationSecurityGroupAssociationResource struct { -} +type PrivateEndpointApplicationSecurityGroupAssociationResource struct{} func TestAccPrivateEndpointApplicationSecurityGroupAssociationResource_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_private_endpoint_application_security_group_association", "test") diff --git a/internal/services/network/private_endpoint_connection_data_source.go b/internal/services/network/private_endpoint_connection_data_source.go index 813e711033e8..90f05bfa062c 100644 --- a/internal/services/network/private_endpoint_connection_data_source.go +++ b/internal/services/network/private_endpoint_connection_data_source.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -171,7 +171,6 @@ func getPrivateIpAddress(ctx context.Context, client *networkinterfaces.NetworkI } } } - } return privateIpAddress diff --git a/internal/services/network/private_endpoint_resource.go b/internal/services/network/private_endpoint_resource.go index b5d79f073d64..9ab1f514c560 100644 --- a/internal/services/network/private_endpoint_resource.go +++ b/internal/services/network/private_endpoint_resource.go @@ -19,8 +19,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" mariadbServers "github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" postgresqlServers "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers" "github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones" "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis" diff --git a/internal/services/network/private_endpoint_resource_test.go b/internal/services/network/private_endpoint_resource_test.go index 0eff18de5519..07ec605e2361 100644 --- a/internal/services/network/private_endpoint_resource_test.go +++ b/internal/services/network/private_endpoint_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/private_link_service_data_source.go b/internal/services/network/private_link_service_data_source.go index 5c2055c890c9..7895299b66ce 100644 --- a/internal/services/network/private_link_service_data_source.go +++ b/internal/services/network/private_link_service_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/private_link_service_endpoint_connections_data_source.go b/internal/services/network/private_link_service_endpoint_connections_data_source.go index e1471edf2c5d..9b1d0afe2df1 100644 --- a/internal/services/network/private_link_service_endpoint_connections_data_source.go +++ b/internal/services/network/private_link_service_endpoint_connections_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/private_link_service_resource.go b/internal/services/network/private_link_service_resource.go index a251c57207b4..4a62ab851a3a 100644 --- a/internal/services/network/private_link_service_resource.go +++ b/internal/services/network/private_link_service_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/internal/services/network/private_link_service_resource_test.go b/internal/services/network/private_link_service_resource_test.go index 6a354a6e0ebf..b25681878a45 100644 --- a/internal/services/network/private_link_service_resource_test.go +++ b/internal/services/network/private_link_service_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/public_ip_data_source.go b/internal/services/network/public_ip_data_source.go index 7d50378273de..8293ad31baa2 100644 --- a/internal/services/network/public_ip_data_source.go +++ b/internal/services/network/public_ip_data_source.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/public_ip_prefix_data_source.go b/internal/services/network/public_ip_prefix_data_source.go index f5235681af56..049cfd1cca15 100644 --- a/internal/services/network/public_ip_prefix_data_source.go +++ b/internal/services/network/public_ip_prefix_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -42,6 +42,11 @@ func dataSourcePublicIpPrefix() *pluginsdk.Resource { Computed: true, }, + "sku_tier": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "prefix_length": { Type: pluginsdk.TypeInt, Computed: true, @@ -82,6 +87,7 @@ func dataSourcePublicIpPrefixRead(d *pluginsdk.ResourceData, meta interface{}) e if sku := model.Sku; sku != nil { d.Set("sku", string(pointer.From(sku.Name))) + d.Set("sku_tier", string(pointer.From(sku.Tier))) } if props := model.Properties; props != nil { d.Set("prefix_length", props.PrefixLength) diff --git a/internal/services/network/public_ip_prefix_data_source_test.go b/internal/services/network/public_ip_prefix_data_source_test.go index 26c23e46d8d6..1109d71a5707 100644 --- a/internal/services/network/public_ip_prefix_data_source_test.go +++ b/internal/services/network/public_ip_prefix_data_source_test.go @@ -7,6 +7,7 @@ import ( "fmt" "testing" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" ) @@ -27,6 +28,7 @@ func TestAccDataSourcePublicIPPrefix_basic(t *testing.T) { check.That(data.ResourceName).Key("resource_group_name").HasValue(resourceGroupName), check.That(data.ResourceName).Key("location").HasValue(data.Locations.Primary), check.That(data.ResourceName).Key("sku").HasValue("Standard"), + check.That(data.ResourceName).Key("sku_tier").HasValue(string(publicipprefixes.PublicIPPrefixSkuTierRegional)), check.That(data.ResourceName).Key("prefix_length").HasValue("31"), check.That(data.ResourceName).Key("ip_prefix").Exists(), check.That(data.ResourceName).Key("tags.%").HasValue("1"), diff --git a/internal/services/network/public_ip_prefix_resource.go b/internal/services/network/public_ip_prefix_resource.go index cac92346133f..22d393eb7200 100644 --- a/internal/services/network/public_ip_prefix_resource.go +++ b/internal/services/network/public_ip_prefix_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -63,6 +63,14 @@ func resourcePublicIpPrefix() *pluginsdk.Resource { }, false), }, + "sku_tier": { + Type: pluginsdk.TypeString, + Optional: true, + Default: string(publicipprefixes.PublicIPPrefixSkuTierRegional), + ForceNew: true, + ValidateFunc: validation.StringInSlice(publicipprefixes.PossibleValuesForPublicIPPrefixSkuTier(), false), + }, + "prefix_length": { Type: pluginsdk.TypeInt, Optional: true, @@ -118,6 +126,7 @@ func resourcePublicIpPrefixCreate(d *pluginsdk.ResourceData, meta interface{}) e Location: pointer.To(location.Normalize(d.Get("location").(string))), Sku: &publicipprefixes.PublicIPPrefixSku{ Name: pointer.To(publicipprefixes.PublicIPPrefixSkuName(d.Get("sku").(string))), + Tier: pointer.To(publicipprefixes.PublicIPPrefixSkuTier(d.Get("sku_tier").(string))), }, Properties: &publicipprefixes.PublicIPPrefixPropertiesFormat{ PrefixLength: pointer.To(int64(d.Get("prefix_length").(int))), @@ -146,7 +155,6 @@ func resourcePublicIpPrefixUpdate(d *pluginsdk.ResourceData, meta interface{}) e defer cancel() if d.HasChange("tags") { - id, err := publicipprefixes.ParsePublicIPPrefixID(d.Id()) if err != nil { return err @@ -190,11 +198,10 @@ func resourcePublicIpPrefixRead(d *pluginsdk.ResourceData, meta interface{}) err if model := resp.Model; model != nil { d.Set("location", location.NormalizeNilable(model.Location)) d.Set("zones", zones.FlattenUntyped(model.Zones)) - skuName := "" if sku := model.Sku; sku != nil { - skuName = string(pointer.From(sku.Name)) + d.Set("sku", string(pointer.From(sku.Name))) + d.Set("sku_tier", string(pointer.From(sku.Tier))) } - d.Set("sku", skuName) if props := model.Properties; props != nil { d.Set("prefix_length", props.PrefixLength) d.Set("ip_prefix", props.IPPrefix) diff --git a/internal/services/network/public_ip_prefix_resource_test.go b/internal/services/network/public_ip_prefix_resource_test.go index 80ad19e5268e..2b5d956de7e0 100644 --- a/internal/services/network/public_ip_prefix_resource_test.go +++ b/internal/services/network/public_ip_prefix_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -63,6 +63,38 @@ func TestAccPublicIpPrefix_basic(t *testing.T) { }) } +func TestAccPublicIpPrefix_globalTier(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_public_ip_prefix", "test") + r := PublicIPPrefixResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.sku_tier(data, string(publicipprefixes.PublicIPPrefixSkuTierGlobal)), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("sku_tier").HasValue(string(publicipprefixes.PublicIPPrefixSkuTierGlobal)), + ), + }, + data.ImportStep(), + }) +} + +func TestAccPublicIpPrefix_regionalTier(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_public_ip_prefix", "test") + r := PublicIPPrefixResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.sku_tier(data, string(publicipprefixes.PublicIPPrefixSkuTierRegional)), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("sku_tier").HasValue(string(publicipprefixes.PublicIPPrefixSkuTierRegional)), + ), + }, + data.ImportStep(), + }) +} + func TestAccPublicIpPrefix_ipv6(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_public_ip_prefix", "test") r := PublicIPPrefixResource{} @@ -342,6 +374,26 @@ resource "azurerm_public_ip_prefix" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } +func (PublicIPPrefixResource) sku_tier(data acceptance.TestData, tier string) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_public_ip_prefix" "test" { + resource_group_name = azurerm_resource_group.test.name + name = "acctestpublicipprefix-%d" + location = azurerm_resource_group.test.location + sku_tier = "%s" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, tier) +} + func (PublicIPPrefixResource) zonesSingle(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/network/public_ip_resource.go b/internal/services/network/public_ip_resource.go index f8f5ebb60d30..90b5dab41764 100644 --- a/internal/services/network/public_ip_resource.go +++ b/internal/services/network/public_ip_resource.go @@ -4,6 +4,7 @@ package network import ( + "context" "fmt" "log" "strings" @@ -17,8 +18,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -142,6 +143,12 @@ func resourcePublicIp() *pluginsdk.Resource { ValidateFunc: validate.PublicIpDomainNameLabel, }, + "domain_name_label_scope": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice(publicipaddresses.PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope(), false), + }, + "fqdn": { Type: pluginsdk.TypeString, Computed: true, @@ -177,6 +184,12 @@ func resourcePublicIp() *pluginsdk.Resource { "tags": commonschema.Tags(), }, + + CustomizeDiff: pluginsdk.CustomDiffWithAll( + pluginsdk.ForceNewIfChange("domain_name_label_scope", func(ctx context.Context, old, new, meta interface{}) bool { + return !(old.(string) == "" && new.(string) != "") + }), + ), } } @@ -256,8 +269,9 @@ func resourcePublicIpCreate(d *pluginsdk.ResourceData, meta interface{}) error { dnl, dnlOk := d.GetOk("domain_name_label") rfqdn, rfqdnOk := d.GetOk("reverse_fqdn") + dnlc, dnlcOk := d.GetOk("domain_name_label_scope") - if dnlOk || rfqdnOk { + if dnlOk || rfqdnOk || dnlcOk { dnsSettings := publicipaddresses.PublicIPAddressDnsSettings{} if rfqdnOk { @@ -268,6 +282,10 @@ func resourcePublicIpCreate(d *pluginsdk.ResourceData, meta interface{}) error { dnsSettings.DomainNameLabel = pointer.To(dnl.(string)) } + if dnlcOk { + dnsSettings.DomainNameLabelScope = pointer.To(publicipaddresses.PublicIPAddressDnsSettingsDomainNameLabelScope(dnlc.(string))) + } + publicIp.Properties.DnsSettings = &dnsSettings } @@ -354,6 +372,13 @@ func resourcePublicIpUpdate(d *pluginsdk.ResourceData, meta interface{}) error { payload.Properties.DnsSettings.DomainNameLabel = utils.String(d.Get("domain_name_label").(string)) } + if d.HasChange("domain_name_label_scope") { + if payload.Properties.DnsSettings == nil { + payload.Properties.DnsSettings = &publicipaddresses.PublicIPAddressDnsSettings{} + } + payload.Properties.DnsSettings.DomainNameLabelScope = pointer.To(publicipaddresses.PublicIPAddressDnsSettingsDomainNameLabelScope(d.Get("domain_name_label_scope").(string))) + } + if d.HasChange("reverse_fqdn") { if payload.Properties.DnsSettings == nil { payload.Properties.DnsSettings = &publicipaddresses.PublicIPAddressDnsSettings{} @@ -416,6 +441,7 @@ func resourcePublicIpRead(d *pluginsdk.ResourceData, meta interface{}) error { d.Set("fqdn", settings.Fqdn) d.Set("reverse_fqdn", settings.ReverseFqdn) d.Set("domain_name_label", settings.DomainNameLabel) + d.Set("domain_name_label_scope", string(pointer.From(settings.DomainNameLabelScope))) } ddosProtectionMode := string(publicipaddresses.DdosSettingsProtectionModeVirtualNetworkInherited) diff --git a/internal/services/network/public_ip_resource_test.go b/internal/services/network/public_ip_resource_test.go index 20f9174395ad..4d8e863795c7 100644 --- a/internal/services/network/public_ip_resource_test.go +++ b/internal/services/network/public_ip_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -752,6 +752,7 @@ resource "azurerm_public_ip" "test" { allocation_method = "Static" sku = "Basic" domain_name_label = "acctest-%d" + domain_name_label_scope = "TenantReuse" idle_timeout_in_minutes = 30 } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) @@ -894,7 +895,7 @@ resource "azurerm_public_ip" "test" { sku = "Basic" domain_name_label = "%s" } -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, strings.ToLower(data.RandomStringOfLength(63))) +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, fmt.Sprintf("test%s", strings.ToLower(data.RandomStringOfLength(59)))) // prepend with test (4+59) to ensure the string starts with a letter } func (PublicIPResource) standard_IpTags(data acceptance.TestData) string { diff --git a/internal/services/network/public_ips_data_source.go b/internal/services/network/public_ips_data_source.go index 4f97ab288c01..318d9a7b353d 100644 --- a/internal/services/network/public_ips_data_source.go +++ b/internal/services/network/public_ips_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/registration.go b/internal/services/network/registration.go index e3b217bfb4e1..400e0397702b 100644 --- a/internal/services/network/registration.go +++ b/internal/services/network/registration.go @@ -37,6 +37,7 @@ func (r Registration) DataSources() []sdk.DataSource { ManagerNetworkGroupDataSource{}, ManagerConnectivityConfigurationDataSource{}, VPNServerConfigurationDataSource{}, + VirtualNetworkPeeringDataSource{}, } } diff --git a/internal/services/network/route_filter_data_source.go b/internal/services/network/route_filter_data_source.go index 4d6529a7a4d5..a17dc76ed63a 100644 --- a/internal/services/network/route_filter_data_source.go +++ b/internal/services/network/route_filter_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/route_filter_resource.go b/internal/services/network/route_filter_resource.go index ee4d45b7b6c9..b7a555d45575 100644 --- a/internal/services/network/route_filter_resource.go +++ b/internal/services/network/route_filter_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_filter_resource_test.go b/internal/services/network/route_filter_resource_test.go index b752a55e9139..c1706ac6f000 100644 --- a/internal/services/network/route_filter_resource_test.go +++ b/internal/services/network/route_filter_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_map_resource.go b/internal/services/network/route_map_resource.go index 12e07f6caa85..140cb061f6ec 100644 --- a/internal/services/network/route_map_resource.go +++ b/internal/services/network/route_map_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -50,8 +50,10 @@ type Criterion struct { type RouteMapResource struct{} -var _ sdk.ResourceWithUpdate = RouteMapResource{} -var _ sdk.ResourceWithCustomizeDiff = RouteMapResource{} +var ( + _ sdk.ResourceWithUpdate = RouteMapResource{} + _ sdk.ResourceWithCustomizeDiff = RouteMapResource{} +) func (r RouteMapResource) ResourceType() string { return "azurerm_route_map" @@ -375,11 +377,11 @@ func (r RouteMapResource) CustomizeDiff() sdk.ResourceFunc { } func expandRules(input []Rule) *[]virtualwans.RouteMapRule { - var rules []virtualwans.RouteMapRule if input == nil { return nil } + rules := make([]virtualwans.RouteMapRule, 0, len(input)) for _, v := range input { rule := virtualwans.RouteMapRule{ Name: pointer.To(v.Name), @@ -398,11 +400,11 @@ func expandRules(input []Rule) *[]virtualwans.RouteMapRule { } func expandActions(input []Action) *[]virtualwans.Action { - var actions []virtualwans.Action if input == nil { return nil } + actions := make([]virtualwans.Action, 0, len(input)) for _, v := range input { action := virtualwans.Action{ Type: pointer.To(v.Type), @@ -416,11 +418,11 @@ func expandActions(input []Action) *[]virtualwans.Action { } func expandParameters(input []Parameter) *[]virtualwans.Parameter { - var parameters []virtualwans.Parameter if input == nil { return nil } + parameters := make([]virtualwans.Parameter, 0, len(input)) for _, item := range input { v := item parameter := virtualwans.Parameter{} @@ -444,11 +446,11 @@ func expandParameters(input []Parameter) *[]virtualwans.Parameter { } func expandCriteria(input []Criterion) *[]virtualwans.Criterion { - var criteria []virtualwans.Criterion if input == nil { return nil } + criteria := make([]virtualwans.Criterion, 0, len(input)) for _, item := range input { v := item criterion := virtualwans.Criterion{ @@ -474,11 +476,11 @@ func expandCriteria(input []Criterion) *[]virtualwans.Criterion { } func flattenRules(input *[]virtualwans.RouteMapRule) []Rule { - var rules []Rule if input == nil { - return rules + return []Rule{} } + rules := make([]Rule, 0, len(*input)) for _, v := range *input { rule := Rule{ Actions: flattenActions(v.Actions), @@ -500,11 +502,11 @@ func flattenRules(input *[]virtualwans.RouteMapRule) []Rule { } func flattenActions(input *[]virtualwans.Action) []Action { - var actions []Action if input == nil { - return actions + return []Action{} } + actions := make([]Action, 0, len(*input)) for _, v := range *input { action := Action{ Parameters: flattenParameters(v.Parameters), @@ -521,11 +523,11 @@ func flattenActions(input *[]virtualwans.Action) []Action { } func flattenParameters(input *[]virtualwans.Parameter) []Parameter { - var parameters []Parameter if input == nil { - return parameters + return []Parameter{} } + parameters := make([]Parameter, 0, len(*input)) for _, v := range *input { parameter := Parameter{} @@ -548,11 +550,11 @@ func flattenParameters(input *[]virtualwans.Parameter) []Parameter { } func flattenCriteria(input *[]virtualwans.Criterion) []Criterion { - var criteria []Criterion if input == nil { - return criteria + return []Criterion{} } + criteria := make([]Criterion, 0, len(*input)) for _, v := range *input { criterion := Criterion{} diff --git a/internal/services/network/route_map_resource_test.go b/internal/services/network/route_map_resource_test.go index 88e4daf47c83..1ba61f4b2c2b 100644 --- a/internal/services/network/route_map_resource_test.go +++ b/internal/services/network/route_map_resource_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_resource.go b/internal/services/network/route_resource.go index 6672126ad0ff..e02c30bdf2be 100644 --- a/internal/services/network/route_resource.go +++ b/internal/services/network/route_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/route_resource_test.go b/internal/services/network/route_resource_test.go index 4b503b3ba527..2d1b772aa05d 100644 --- a/internal/services/network/route_resource_test.go +++ b/internal/services/network/route_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/route_server_bgp_connection_resource.go b/internal/services/network/route_server_bgp_connection_resource.go index c5b456d633e3..13f2feb502fe 100644 --- a/internal/services/network/route_server_bgp_connection_resource.go +++ b/internal/services/network/route_server_bgp_connection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/route_server_resource.go b/internal/services/network/route_server_resource.go index 2ecc1fca1433..51218c026af5 100644 --- a/internal/services/network/route_server_resource.go +++ b/internal/services/network/route_server_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -194,7 +194,6 @@ func resourceRouteServerUpdate(d *pluginsdk.ResourceData, meta interface{}) erro existing, err := client.VirtualHubsGet(ctx, *id) if err != nil { return fmt.Errorf("retrieving %s: %+v", *id, err) - } payload := existing.Model diff --git a/internal/services/network/route_server_resource_test.go b/internal/services/network/route_server_resource_test.go index 8a7b0c2fcb2b..3d7c2b11968d 100644 --- a/internal/services/network/route_server_resource_test.go +++ b/internal/services/network/route_server_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -82,6 +82,7 @@ func TestAccRouteServer_update(t *testing.T) { data.ImportStep(), }) } + func (r RouteServerResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := virtualwans.ParseVirtualHubID(state.ID) if err != nil { diff --git a/internal/services/network/route_table_data_source.go b/internal/services/network/route_table_data_source.go index b20227be3d55..f8c3c00d1aca 100644 --- a/internal/services/network/route_table_data_source.go +++ b/internal/services/network/route_table_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/route_table_resource.go b/internal/services/network/route_table_resource.go index 6e880d1d7833..c5e54d1feafc 100644 --- a/internal/services/network/route_table_resource.go +++ b/internal/services/network/route_table_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" @@ -157,12 +157,6 @@ func resourceRouteTableCreate(d *pluginsdk.ResourceData, meta interface{}) error bgpRoutePropagationEnabled := d.Get("bgp_route_propagation_enabled").(bool) - if !features.FourPointOhBeta() { - // need to set default back to true for 3.x, this triggers ineffassign linter, so ignoring for now - bgpRoutePropagationEnabled = true // nolint: ineffassign - bgpRoutePropagationEnabled = !d.Get("disable_bgp_route_propagation").(bool) - } - routeSet := routetables.RouteTable{ Name: &id.RouteTableName, Location: pointer.To(location.Normalize(d.Get("location").(string))), diff --git a/internal/services/network/route_table_resource_test.go b/internal/services/network/route_table_resource_test.go index 06e1060ac26f..710a65a80664 100644 --- a/internal/services/network/route_table_resource_test.go +++ b/internal/services/network/route_table_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_data_source.go b/internal/services/network/subnet_data_source.go index b511ada644f4..9f9fe138dc19 100644 --- a/internal/services/network/subnet_data_source.go +++ b/internal/services/network/subnet_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/subnet_nat_gateway_association_resource.go b/internal/services/network/subnet_nat_gateway_association_resource.go index 96394c308cb3..ac3e7d880f14 100644 --- a/internal/services/network/subnet_nat_gateway_association_resource.go +++ b/internal/services/network/subnet_nat_gateway_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/subnet_nat_gateway_association_resource_test.go b/internal/services/network/subnet_nat_gateway_association_resource_test.go index 67a3f5544890..5ca45833750a 100644 --- a/internal/services/network/subnet_nat_gateway_association_resource_test.go +++ b/internal/services/network/subnet_nat_gateway_association_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_network_security_group_association_resource.go b/internal/services/network/subnet_network_security_group_association_resource.go index f68fc73141e5..a3ce480f7925 100644 --- a/internal/services/network/subnet_network_security_group_association_resource.go +++ b/internal/services/network/subnet_network_security_group_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/subnet_network_security_group_association_resource_test.go b/internal/services/network/subnet_network_security_group_association_resource_test.go index 243511dbaab2..2c5c438504e6 100644 --- a/internal/services/network/subnet_network_security_group_association_resource_test.go +++ b/internal/services/network/subnet_network_security_group_association_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_resource.go b/internal/services/network/subnet_resource.go index 2a0bc4698e81..162d673402f8 100644 --- a/internal/services/network/subnet_resource.go +++ b/internal/services/network/subnet_resource.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" @@ -30,6 +30,7 @@ var SubnetResourceName = "azurerm_subnet" var subnetDelegationServiceNames = []string{ "GitHub.Network/networkSettings", + "Informatica.DataManagement/organizations", "Microsoft.ApiManagement/service", "Microsoft.Apollo/npu", "Microsoft.App/environments", @@ -91,9 +92,9 @@ var subnetDelegationServiceNames = []string{ "Microsoft.Web/hostingEnvironments", "Microsoft.Web/serverFarms", "NGINX.NGINXPLUS/nginxDeployments", + "Oracle.Database/networkAttachments", "PaloAltoNetworks.Cloudngfw/firewalls", "Qumulo.Storage/fileSystems", - "Oracle.Database/networkAttachments", } func resourceSubnet() *pluginsdk.Resource { @@ -204,7 +205,6 @@ func resourceSubnet() *pluginsdk.Resource { Type: pluginsdk.TypeBool, Default: true, Optional: true, - ForceNew: true, }, "private_endpoint_network_policies": { @@ -514,6 +514,10 @@ func resourceSubnetUpdate(d *pluginsdk.ResourceData, meta interface{}) error { } } + if d.HasChange("default_outbound_access_enabled") { + props.DefaultOutboundAccess = pointer.To(d.Get("default_outbound_access_enabled").(bool)) + } + if d.HasChange("delegation") { delegationsRaw := d.Get("delegation").([]interface{}) props.Delegations = expandSubnetDelegation(delegationsRaw) @@ -868,7 +872,7 @@ func flattenSubnetServiceEndpointPolicies(input *[]subnets.ServiceEndpointPolicy return nil } - var output []interface{} + output := make([]interface{}, 0, len(*input)) for _, policy := range *input { id := "" if policy.Id != nil { diff --git a/internal/services/network/subnet_resource_test.go b/internal/services/network/subnet_resource_test.go index a0aa30290ccf..4d6d8f5c196f 100644 --- a/internal/services/network/subnet_resource_test.go +++ b/internal/services/network/subnet_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -127,20 +127,25 @@ func TestAccSubnet_disappears(t *testing.T) { } func TestAccSubnet_defaultOutbound(t *testing.T) { - dataInternal := acceptance.BuildTestData(t, "azurerm_subnet", "internal") - dataPublic := acceptance.BuildTestData(t, "azurerm_subnet", "public") + data := acceptance.BuildTestData(t, "azurerm_subnet", "internal") r := SubnetResource{} - dataInternal.ResourceTest(t, r, []acceptance.TestStep{ + data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.defaultOutbound(dataInternal), + Config: r.defaultOutbound(data, true), Check: acceptance.ComposeTestCheckFunc( - check.That(dataInternal.ResourceName).ExistsInAzure(r), - check.That(dataInternal.ResourceName).Key("default_outbound_access_enabled").HasValue("false"), - check.That(dataPublic.ResourceName).ExistsInAzure(r), - check.That(dataPublic.ResourceName).Key("default_outbound_access_enabled").HasValue("true"), + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("default_outbound_access_enabled").HasValue("true"), ), }, + data.ImportStep(), + { + Config: r.defaultOutbound(data, false), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("default_outbound_access_enabled").HasValue("false"), + ), + }, + data.ImportStep(), }) } @@ -180,40 +185,6 @@ func TestAccSubnet_delegation(t *testing.T) { }) } -// TODO 4.0: Remove test -func TestAccSubnet_enablePrivateEndpointNetworkPolicies(t *testing.T) { - if !features.FourPointOhBeta() { - data := acceptance.BuildTestData(t, "azurerm_subnet", "test") - r := SubnetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.enablePrivateEndpointNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.enablePrivateEndpointNetworkPolicies(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.enablePrivateEndpointNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) - } else { - t.Skip("skipping due to deprecation of the 'private_endpoint_network_policies_enabled' fields in 4.0") - } -} - func TestAccSubnet_privateEndpointNetworkPolicies(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_subnet", "test") r := SubnetResource{} @@ -279,232 +250,6 @@ func TestAccSubnet_enablePrivateLinkServiceNetworkPolicies(t *testing.T) { }) } -// TODO 4.0: Remove test -func TestAccSubnet_enforcePrivateLinkEndpointNetworkPolicies(t *testing.T) { - if !features.FourPointOhBeta() { - data := acceptance.BuildTestData(t, "azurerm_subnet", "test") - r := SubnetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.enforcePrivateLinkEndpointNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.enforcePrivateLinkEndpointNetworkPolicies(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.enforcePrivateLinkEndpointNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) - } else { - t.Skip("@WodansSon: skipping due to deprecation of the 'enforce_private_link_endpoint_network_policies' field in 4.0") - } -} - -// TODO 4.0: Remove test -func TestAccSubnet_enforcePrivateLinkServiceNetworkPolicies(t *testing.T) { - if !features.FourPointOhBeta() { - data := acceptance.BuildTestData(t, "azurerm_subnet", "test") - r := SubnetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.enforcePrivateLinkServiceNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.enforcePrivateLinkServiceNetworkPolicies(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.enforcePrivateLinkServiceNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) - } else { - t.Skip("@WodansSon: skipping due to deprecation of the 'enforce_private_link_service_network_policies' field in 4.0") - } -} - -// TODO 4.0: Remove test -func TestAccSubnet_PrivateLinkPoliciesToggleWithEnforceFirst(t *testing.T) { - if !features.FourPointOhBeta() { - data := acceptance.BuildTestData(t, "azurerm_subnet", "test") - r := SubnetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.enforcePrivateLinkEndpointNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("true"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("false"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Disabled"), - ), - }, - data.ImportStep(), - { - Config: r.enablePrivateEndpointNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Enabled"), - ), - }, - data.ImportStep(), - { - Config: r.privateEndpointNetworkPolicies(data, "Enabled"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Enabled"), - ), - }, - data.ImportStep(), - { - Config: r.enforcePrivateLinkServiceNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Enabled"), - ), - }, - data.ImportStep(), - { - Config: r.enablePrivateLinkServiceNetworkPolicies(data, true), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Enabled"), - ), - }, - data.ImportStep(), - { - Config: r.privateEndpointNetworkPolicies(data, "Enabled"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Enabled"), - ), - }, - data.ImportStep(), - }) - } else { - t.Skip("@WodansSon: skipping due to deprecation of the 'enforce_private_link_endpoint_network_policies' and 'enforce_private_link_service_network_policies' fields in 4.0") - } -} - -// TODO 4.0: Remove test -func TestAccSubnet_PrivateLinkPoliciesToggleWithEnabledFirst(t *testing.T) { - if !features.FourPointOhBeta() { - data := acceptance.BuildTestData(t, "azurerm_subnet", "test") - r := SubnetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.privateEndpointNetworkPolicies(data, "Disabled"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("true"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("false"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Disabled"), - ), - }, - data.ImportStep(), - { - Config: r.enablePrivateEndpointNetworkPolicies(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("true"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("false"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Disabled"), - ), - }, - data.ImportStep(), - { - Config: r.enforcePrivateLinkEndpointNetworkPolicies(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Enabled"), - ), - }, - data.ImportStep(), - { - Config: r.enablePrivateLinkServiceNetworkPolicies(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Enabled"), - ), - }, - data.ImportStep(), - { - Config: r.enforcePrivateLinkServiceNetworkPolicies(data, false), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enforce_private_link_endpoint_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("enforce_private_link_service_network_policies").HasValue("false"), - check.That(data.ResourceName).Key("private_endpoint_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_link_service_network_policies_enabled").HasValue("true"), - check.That(data.ResourceName).Key("private_endpoint_network_policies").HasValue("Enabled"), - ), - }, - data.ImportStep(), - }) - } else { - t.Skip("@WodansSon: skipping due to deprecation of the 'enforce_private_link_endpoint_network_policies' and 'enforce_private_link_service_network_policies' fields in 4.0") - } -} - func TestAccSubnet_serviceEndpoints(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_subnet", "test") r := SubnetResource{} @@ -839,7 +584,7 @@ resource "azurerm_subnet" "test" { `, r.template(data)) } -func (r SubnetResource) defaultOutbound(data acceptance.TestData) string { +func (r SubnetResource) defaultOutbound(data acceptance.TestData, enabled bool) string { return fmt.Sprintf(` %s resource "azurerm_subnet" "internal" { @@ -847,16 +592,9 @@ resource "azurerm_subnet" "internal" { resource_group_name = azurerm_resource_group.test.name virtual_network_name = azurerm_virtual_network.test.name address_prefixes = ["10.0.2.0/24"] - default_outbound_access_enabled = false -} -resource "azurerm_subnet" "public" { - name = "public" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.3.0/24"] - default_outbound_access_enabled = true + default_outbound_access_enabled = %t } -`, r.template(data)) +`, r.template(data), enabled) } func (r SubnetResource) delegationUpdated(data acceptance.TestData) string { @@ -885,31 +623,15 @@ resource "azurerm_subnet" "test" { `, r.template(data)) } -// TODO 4.0: Remove test -func (r SubnetResource) enablePrivateEndpointNetworkPolicies(data acceptance.TestData, enabled bool) string { - return fmt.Sprintf(` -%s - -resource "azurerm_subnet" "test" { - name = "internal" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.2.0/24"] - - private_endpoint_network_policies = %t -} -`, r.template(data), enabled) -} - func (r SubnetResource) privateEndpointNetworkPolicies(data acceptance.TestData, enabled string) string { return fmt.Sprintf(` %s resource "azurerm_subnet" "test" { name = "internal" - resource_group_name = azurerm_resource_group.test.name + resource_group_name = azurerm_virtual_network.test.resource_group_name virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.2.0/24"] + address_prefixes = azurerm_virtual_network.test.address_space private_endpoint_network_policies = "%s" } @@ -931,38 +653,6 @@ resource "azurerm_subnet" "test" { `, r.template(data), enabled) } -// TODO 4.0: Remove test -func (r SubnetResource) enforcePrivateLinkEndpointNetworkPolicies(data acceptance.TestData, enabled bool) string { - return fmt.Sprintf(` -%s - -resource "azurerm_subnet" "test" { - name = "internal" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.2.0/24"] - - private_endpoint_network_policies = %t -} -`, r.template(data), enabled) -} - -// TODO 4.0: Remove test -func (r SubnetResource) enforcePrivateLinkServiceNetworkPolicies(data acceptance.TestData, enabled bool) string { - return fmt.Sprintf(` -%s - -resource "azurerm_subnet" "test" { - name = "internal" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.2.0/24"] - - private_link_service_network_policies_enabled = %t -} -`, r.template(data), enabled) -} - func (r SubnetResource) privateLinkEndpointNetworkPoliciesDefaults(data acceptance.TestData) string { return fmt.Sprintf(` %s @@ -978,6 +668,9 @@ resource "azurerm_subnet" "test" { func (SubnetResource) basic_addressPrefixes(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} resource "azurerm_resource_group" "test" { name = "acctestRG-n-%d" location = "%s" @@ -999,6 +692,9 @@ resource "azurerm_subnet" "test" { func (SubnetResource) complete_addressPrefixes(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} resource "azurerm_resource_group" "test" { name = "acctestRG-n-%d" location = "%s" diff --git a/internal/services/network/subnet_route_table_association_resource.go b/internal/services/network/subnet_route_table_association_resource.go index a0fa4314f148..da3d563e0a56 100644 --- a/internal/services/network/subnet_route_table_association_resource.go +++ b/internal/services/network/subnet_route_table_association_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/subnet_route_table_association_resource_test.go b/internal/services/network/subnet_route_table_association_resource_test.go index 25142a576c48..600355104551 100644 --- a/internal/services/network/subnet_route_table_association_resource_test.go +++ b/internal/services/network/subnet_route_table_association_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_service_endpoint_storage_policy_resource.go b/internal/services/network/subnet_service_endpoint_storage_policy_resource.go index ae6f1e89d12a..97f33f2d2bfb 100644 --- a/internal/services/network/subnet_service_endpoint_storage_policy_resource.go +++ b/internal/services/network/subnet_service_endpoint_storage_policy_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/subnet_service_endpoint_storage_policy_resource_test.go b/internal/services/network/subnet_service_endpoint_storage_policy_resource_test.go index 00e5d01b219b..b58297bb9ba3 100644 --- a/internal/services/network/subnet_service_endpoint_storage_policy_resource_test.go +++ b/internal/services/network/subnet_service_endpoint_storage_policy_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/validate/application_gateway_private_link_configuration_id_test.go b/internal/services/network/validate/application_gateway_private_link_configuration_id_test.go index 05c9f2e689cf..b7f8c6a609ff 100644 --- a/internal/services/network/validate/application_gateway_private_link_configuration_id_test.go +++ b/internal/services/network/validate/application_gateway_private_link_configuration_id_test.go @@ -12,7 +12,6 @@ func TestApplicationGatewayPrivateLinkConfigurationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/application_gateway_url_path_map_path_rule_id_test.go b/internal/services/network/validate/application_gateway_url_path_map_path_rule_id_test.go index e5a17317f8da..6fa704bebf32 100644 --- a/internal/services/network/validate/application_gateway_url_path_map_path_rule_id_test.go +++ b/internal/services/network/validate/application_gateway_url_path_map_path_rule_id_test.go @@ -12,7 +12,6 @@ func TestApplicationGatewayURLPathMapPathRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/authentication_certificate_id_test.go b/internal/services/network/validate/authentication_certificate_id_test.go index 86c3def1cfca..0f494accce15 100644 --- a/internal/services/network/validate/authentication_certificate_id_test.go +++ b/internal/services/network/validate/authentication_certificate_id_test.go @@ -12,7 +12,6 @@ func TestAuthenticationCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/backend_address_pool_id_test.go b/internal/services/network/validate/backend_address_pool_id_test.go index 58c5228dec2e..e798d5477e9a 100644 --- a/internal/services/network/validate/backend_address_pool_id_test.go +++ b/internal/services/network/validate/backend_address_pool_id_test.go @@ -12,7 +12,6 @@ func TestBackendAddressPoolID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/backend_http_settings_collection_id_test.go b/internal/services/network/validate/backend_http_settings_collection_id_test.go index 371f17430f79..4fe095a6ba97 100644 --- a/internal/services/network/validate/backend_http_settings_collection_id_test.go +++ b/internal/services/network/validate/backend_http_settings_collection_id_test.go @@ -12,7 +12,6 @@ func TestBackendHttpSettingsCollectionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/custom_ipv4_prefix_id_test.go b/internal/services/network/validate/custom_ipv4_prefix_id_test.go index ca52788da1b7..2fc2cdb0123a 100644 --- a/internal/services/network/validate/custom_ipv4_prefix_id_test.go +++ b/internal/services/network/validate/custom_ipv4_prefix_id_test.go @@ -12,7 +12,6 @@ func TestCustomIpv4PrefixID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/frontend_ip_configuration_id_test.go b/internal/services/network/validate/frontend_ip_configuration_id_test.go index 97fe2021fb9a..a5f515d5a5bd 100644 --- a/internal/services/network/validate/frontend_ip_configuration_id_test.go +++ b/internal/services/network/validate/frontend_ip_configuration_id_test.go @@ -12,7 +12,6 @@ func TestFrontendIPConfigurationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/frontend_port_id_test.go b/internal/services/network/validate/frontend_port_id_test.go index 28a5c4d9c349..f28e2d8f7afa 100644 --- a/internal/services/network/validate/frontend_port_id_test.go +++ b/internal/services/network/validate/frontend_port_id_test.go @@ -12,7 +12,6 @@ func TestFrontendPortID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/http_listener_id_test.go b/internal/services/network/validate/http_listener_id_test.go index 99a06c611432..717b0db094e1 100644 --- a/internal/services/network/validate/http_listener_id_test.go +++ b/internal/services/network/validate/http_listener_id_test.go @@ -12,7 +12,6 @@ func TestHttpListenerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/hub_route_table_route_id_test.go b/internal/services/network/validate/hub_route_table_route_id_test.go index 461601ecc296..949e18b41b31 100644 --- a/internal/services/network/validate/hub_route_table_route_id_test.go +++ b/internal/services/network/validate/hub_route_table_route_id_test.go @@ -12,7 +12,6 @@ func TestHubRouteTableRouteID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/ip_group_cidr_id_test.go b/internal/services/network/validate/ip_group_cidr_id_test.go index 8703843205a4..b0f76b6759be 100644 --- a/internal/services/network/validate/ip_group_cidr_id_test.go +++ b/internal/services/network/validate/ip_group_cidr_id_test.go @@ -12,7 +12,6 @@ func TestIpGroupCidrID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/network_interface_ip_configuration_id_test.go b/internal/services/network/validate/network_interface_ip_configuration_id_test.go index 811e55c14bac..2c0ec323077f 100644 --- a/internal/services/network/validate/network_interface_ip_configuration_id_test.go +++ b/internal/services/network/validate/network_interface_ip_configuration_id_test.go @@ -12,7 +12,6 @@ func TestNetworkInterfaceIpConfigurationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/private_dns_zone_config_id_test.go b/internal/services/network/validate/private_dns_zone_config_id_test.go index 368c9b936975..76d182805cd5 100644 --- a/internal/services/network/validate/private_dns_zone_config_id_test.go +++ b/internal/services/network/validate/private_dns_zone_config_id_test.go @@ -12,7 +12,6 @@ func TestPrivateDnsZoneConfigID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/private_dns_zone_group_id_test.go b/internal/services/network/validate/private_dns_zone_group_id_test.go index f6852e97fced..4f9c043400c7 100644 --- a/internal/services/network/validate/private_dns_zone_group_id_test.go +++ b/internal/services/network/validate/private_dns_zone_group_id_test.go @@ -12,7 +12,6 @@ func TestPrivateDnsZoneGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/probe_id_test.go b/internal/services/network/validate/probe_id_test.go index f203eb1aee8e..2c9416fd72fe 100644 --- a/internal/services/network/validate/probe_id_test.go +++ b/internal/services/network/validate/probe_id_test.go @@ -12,7 +12,6 @@ func TestProbeID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/redirect_configurations_id_test.go b/internal/services/network/validate/redirect_configurations_id_test.go index 51dd3f25eb01..7ef12a6fb394 100644 --- a/internal/services/network/validate/redirect_configurations_id_test.go +++ b/internal/services/network/validate/redirect_configurations_id_test.go @@ -12,7 +12,6 @@ func TestRedirectConfigurationsID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/rewrite_rule_set_id_test.go b/internal/services/network/validate/rewrite_rule_set_id_test.go index 125abe1c2a0c..d08a6da9d56b 100644 --- a/internal/services/network/validate/rewrite_rule_set_id_test.go +++ b/internal/services/network/validate/rewrite_rule_set_id_test.go @@ -12,7 +12,6 @@ func TestRewriteRuleSetID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/route_filter_id_test.go b/internal/services/network/validate/route_filter_id_test.go index b42247d6412a..ba45eef8b847 100644 --- a/internal/services/network/validate/route_filter_id_test.go +++ b/internal/services/network/validate/route_filter_id_test.go @@ -12,7 +12,6 @@ func TestRouteFilterID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/route_id_test.go b/internal/services/network/validate/route_id_test.go index 78a7929d21a1..cb1f141b5c0f 100644 --- a/internal/services/network/validate/route_id_test.go +++ b/internal/services/network/validate/route_id_test.go @@ -12,7 +12,6 @@ func TestRouteID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/route_table_id_test.go b/internal/services/network/validate/route_table_id_test.go index 17860fd79cdd..61c5e391832c 100644 --- a/internal/services/network/validate/route_table_id_test.go +++ b/internal/services/network/validate/route_table_id_test.go @@ -12,7 +12,6 @@ func TestRouteTableID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/security_rule_id_test.go b/internal/services/network/validate/security_rule_id_test.go index 6391c8c14807..5a06bfa206e5 100644 --- a/internal/services/network/validate/security_rule_id_test.go +++ b/internal/services/network/validate/security_rule_id_test.go @@ -12,7 +12,6 @@ func TestSecurityRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/ssl_certificate_id_test.go b/internal/services/network/validate/ssl_certificate_id_test.go index 6c00c7731e01..24320656a28a 100644 --- a/internal/services/network/validate/ssl_certificate_id_test.go +++ b/internal/services/network/validate/ssl_certificate_id_test.go @@ -12,7 +12,6 @@ func TestSslCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/ssl_profile_id_test.go b/internal/services/network/validate/ssl_profile_id_test.go index ab114119a620..a01ba974b02a 100644 --- a/internal/services/network/validate/ssl_profile_id_test.go +++ b/internal/services/network/validate/ssl_profile_id_test.go @@ -12,7 +12,6 @@ func TestSslProfileID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/subnet_id_test.go b/internal/services/network/validate/subnet_id_test.go index cd66ddc5850d..a8ef91b4c516 100644 --- a/internal/services/network/validate/subnet_id_test.go +++ b/internal/services/network/validate/subnet_id_test.go @@ -12,7 +12,6 @@ func TestSubnetID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/trusted_client_certificate_id_test.go b/internal/services/network/validate/trusted_client_certificate_id_test.go index 6509c5538c61..977d65bdf319 100644 --- a/internal/services/network/validate/trusted_client_certificate_id_test.go +++ b/internal/services/network/validate/trusted_client_certificate_id_test.go @@ -12,7 +12,6 @@ func TestTrustedClientCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/trusted_root_certificate_id_test.go b/internal/services/network/validate/trusted_root_certificate_id_test.go index 70668aff2315..737c26a70ba1 100644 --- a/internal/services/network/validate/trusted_root_certificate_id_test.go +++ b/internal/services/network/validate/trusted_root_certificate_id_test.go @@ -12,7 +12,6 @@ func TestTrustedRootCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/url_path_map_id_test.go b/internal/services/network/validate/url_path_map_id_test.go index 7c87de0e9416..f50f8fe71fe3 100644 --- a/internal/services/network/validate/url_path_map_id_test.go +++ b/internal/services/network/validate/url_path_map_id_test.go @@ -12,7 +12,6 @@ func TestUrlPathMapID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/virtual_network_dns_servers_id_test.go b/internal/services/network/validate/virtual_network_dns_servers_id_test.go index e832f1e72746..f251b06c8ec8 100644 --- a/internal/services/network/validate/virtual_network_dns_servers_id_test.go +++ b/internal/services/network/validate/virtual_network_dns_servers_id_test.go @@ -12,7 +12,6 @@ func TestVirtualNetworkDnsServersID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/virtual_network_gateway_ip_configuration_id_test.go b/internal/services/network/validate/virtual_network_gateway_ip_configuration_id_test.go index b791d325f619..2b77fd175bd0 100644 --- a/internal/services/network/validate/virtual_network_gateway_ip_configuration_id_test.go +++ b/internal/services/network/validate/virtual_network_gateway_ip_configuration_id_test.go @@ -12,7 +12,6 @@ func TestVirtualNetworkGatewayIpConfigurationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/virtual_network_gateway_policy_group_id_test.go b/internal/services/network/validate/virtual_network_gateway_policy_group_id_test.go index b9f71153d72b..cb07843c1cf6 100644 --- a/internal/services/network/validate/virtual_network_gateway_policy_group_id_test.go +++ b/internal/services/network/validate/virtual_network_gateway_policy_group_id_test.go @@ -12,7 +12,6 @@ func TestVirtualNetworkGatewayPolicyGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/virtual_network_id_test.go b/internal/services/network/validate/virtual_network_id_test.go index 1db113ad4935..65194eb336aa 100644 --- a/internal/services/network/validate/virtual_network_id_test.go +++ b/internal/services/network/validate/virtual_network_id_test.go @@ -12,7 +12,6 @@ func TestVirtualNetworkID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/network/validate/web_application_firewall_policy.go b/internal/services/network/validate/web_application_firewall_policy.go index e35383da8b9d..d60b26a3d92d 100644 --- a/internal/services/network/validate/web_application_firewall_policy.go +++ b/internal/services/network/validate/web_application_firewall_policy.go @@ -60,6 +60,7 @@ var ValidateWebApplicationFirewallPolicyRuleGroupName = validation.StringInSlice var ValidateWebApplicationFirewallPolicyRuleSetVersion = validation.StringInSlice([]string{ "0.1", "1.0", + "1.1", "2.1", "2.2.9", "3.0", @@ -75,6 +76,7 @@ var ValidateWebApplicationFirewallPolicyRuleSetType = validation.StringInSlice([ var ValidateWebApplicationFirewallPolicyExclusionRuleSetVersion = validation.StringInSlice([]string{ "1.0", + "1.1", "2.1", "3.2", }, false) diff --git a/internal/services/network/virtual_hub_bgp_connection_resource.go b/internal/services/network/virtual_hub_bgp_connection_resource.go index 840e3668f1fc..d9efdb4deb12 100644 --- a/internal/services/network/virtual_hub_bgp_connection_resource.go +++ b/internal/services/network/virtual_hub_bgp_connection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/virtual_hub_connection_data_source.go b/internal/services/network/virtual_hub_connection_data_source.go index 53bce2b406e7..fa4f5882750c 100644 --- a/internal/services/network/virtual_hub_connection_data_source.go +++ b/internal/services/network/virtual_hub_connection_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -103,7 +103,7 @@ func dataSourceVirtualHubConnection() *pluginsdk.Resource { Computed: true, }, - //lintignore:XS003 + // lintignore:XS003 "static_vnet_route": { Type: pluginsdk.TypeList, Computed: true, diff --git a/internal/services/network/virtual_hub_connection_resource.go b/internal/services/network/virtual_hub_connection_resource.go index 76758e0565a0..0b107ad56e03 100644 --- a/internal/services/network/virtual_hub_connection_resource.go +++ b/internal/services/network/virtual_hub_connection_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" @@ -141,7 +141,7 @@ func resourceVirtualHubConnection() *pluginsdk.Resource { }, false), }, - //lintignore:XS003 + // lintignore:XS003 "static_vnet_route": { Type: pluginsdk.TypeList, Optional: true, diff --git a/internal/services/network/virtual_hub_connection_resource_test.go b/internal/services/network/virtual_hub_connection_resource_test.go index 562f40451bd1..017fe8be6889 100644 --- a/internal/services/network/virtual_hub_connection_resource_test.go +++ b/internal/services/network/virtual_hub_connection_resource_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_data_source.go b/internal/services/network/virtual_hub_data_source.go index 9119acf56fb7..240d8a09df08 100644 --- a/internal/services/network/virtual_hub_data_source.go +++ b/internal/services/network/virtual_hub_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_hub_ip_resource.go b/internal/services/network/virtual_hub_ip_resource.go index 82a8162136fa..d9464f8c5644 100644 --- a/internal/services/network/virtual_hub_ip_resource.go +++ b/internal/services/network/virtual_hub_ip_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/virtual_hub_resource.go b/internal/services/network/virtual_hub_resource.go index 695274b869dd..92f92027d888 100644 --- a/internal/services/network/virtual_hub_resource.go +++ b/internal/services/network/virtual_hub_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -335,7 +335,6 @@ func resourceVirtualHubRead(d *pluginsdk.ResourceData, meta interface{}) error { if model := resp.Model; model != nil { d.Set("location", location.NormalizeNilable(model.Location)) if props := model.Properties; props != nil { - d.Set("address_prefix", props.AddressPrefix) d.Set("sku", props.Sku) diff --git a/internal/services/network/virtual_hub_resource_test.go b/internal/services/network/virtual_hub_resource_test.go index f4a880ebdd60..c68c13ca0a07 100644 --- a/internal/services/network/virtual_hub_resource_test.go +++ b/internal/services/network/virtual_hub_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_route_table_data_source.go b/internal/services/network/virtual_hub_route_table_data_source.go index 1cb22ba9cce7..17624fc2d582 100644 --- a/internal/services/network/virtual_hub_route_table_data_source.go +++ b/internal/services/network/virtual_hub_route_table_data_source.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" networkValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_hub_route_table_resource.go b/internal/services/network/virtual_hub_route_table_resource.go index fbf5e00d26dd..b7a6f0f6963a 100644 --- a/internal/services/network/virtual_hub_route_table_resource.go +++ b/internal/services/network/virtual_hub_route_table_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_route_table_resource_test.go b/internal/services/network/virtual_hub_route_table_resource_test.go index 5747b17e39da..7741f3a4bdf3 100644 --- a/internal/services/network/virtual_hub_route_table_resource_test.go +++ b/internal/services/network/virtual_hub_route_table_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_route_table_route_resource.go b/internal/services/network/virtual_hub_route_table_route_resource.go index c346336b4560..af302cb3fd80 100644 --- a/internal/services/network/virtual_hub_route_table_route_resource.go +++ b/internal/services/network/virtual_hub_route_table_route_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -315,7 +315,6 @@ func resourceVirtualHubRouteTableRouteDelete(d *pluginsdk.ResourceData, meta int } } props.Routes = &newRoutes - } routeTable.Model.Properties = props diff --git a/internal/services/network/virtual_hub_route_table_route_resource_test.go b/internal/services/network/virtual_hub_route_table_route_resource_test.go index 3cbfa910688d..b1f6ac0d9677 100644 --- a/internal/services/network/virtual_hub_route_table_route_resource_test.go +++ b/internal/services/network/virtual_hub_route_table_route_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_routing_intent_resource.go b/internal/services/network/virtual_hub_routing_intent_resource.go index 129d24d1b8d1..c910485f17dd 100644 --- a/internal/services/network/virtual_hub_routing_intent_resource.go +++ b/internal/services/network/virtual_hub_routing_intent_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -254,11 +254,11 @@ func expandRoutingPolicy(input []RoutingPolicy) *[]virtualwans.RoutingPolicy { } func flattenRoutingPolicy(input *[]virtualwans.RoutingPolicy) []RoutingPolicy { - var result []RoutingPolicy if input == nil { - return result + return []RoutingPolicy{} } + result := make([]RoutingPolicy, 0, len(*input)) for _, v := range *input { routingPolicy := RoutingPolicy{ Destinations: v.Destinations, diff --git a/internal/services/network/virtual_hub_routing_intent_resource_test.go b/internal/services/network/virtual_hub_routing_intent_resource_test.go index 8fcfb69cb575..56428b9d7c82 100644 --- a/internal/services/network/virtual_hub_routing_intent_resource_test.go +++ b/internal/services/network/virtual_hub_routing_intent_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_hub_security_partner_provider_resource.go b/internal/services/network/virtual_hub_security_partner_provider_resource.go index c9d441847797..62eed221a79a 100644 --- a/internal/services/network/virtual_hub_security_partner_provider_resource.go +++ b/internal/services/network/virtual_hub_security_partner_provider_resource.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_hub_security_partner_provider_resource_test.go b/internal/services/network/virtual_hub_security_partner_provider_resource_test.go index 9a8dbb279dc6..b5fdce6f985e 100644 --- a/internal/services/network/virtual_hub_security_partner_provider_resource_test.go +++ b/internal/services/network/virtual_hub_security_partner_provider_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_machine_packet_capture_resource.go b/internal/services/network/virtual_machine_packet_capture_resource.go index 451a21f831c3..04f8b15d7a11 100644 --- a/internal/services/network/virtual_machine_packet_capture_resource.go +++ b/internal/services/network/virtual_machine_packet_capture_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" networkValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/virtual_machine_packet_capture_resource_test.go b/internal/services/network/virtual_machine_packet_capture_resource_test.go index c7a2508971c8..bc6b61836e61 100644 --- a/internal/services/network/virtual_machine_packet_capture_resource_test.go +++ b/internal/services/network/virtual_machine_packet_capture_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_machine_scale_set_packet_capture_resource.go b/internal/services/network/virtual_machine_scale_set_packet_capture_resource.go index 93624c815acc..c28858a8fd19 100644 --- a/internal/services/network/virtual_machine_scale_set_packet_capture_resource.go +++ b/internal/services/network/virtual_machine_scale_set_packet_capture_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" computeParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/parse" diff --git a/internal/services/network/virtual_machine_scale_set_packet_capture_resource_test.go b/internal/services/network/virtual_machine_scale_set_packet_capture_resource_test.go index 5d484a1e9adb..b78eb8d7fa89 100644 --- a/internal/services/network/virtual_machine_scale_set_packet_capture_resource_test.go +++ b/internal/services/network/virtual_machine_scale_set_packet_capture_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_data_source.go b/internal/services/network/virtual_network_data_source.go index a81ade0ede42..08c0c09bbcf9 100644 --- a/internal/services/network/virtual_network_data_source.go +++ b/internal/services/network/virtual_network_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -135,7 +135,6 @@ func dataSourceVnetRead(d *pluginsdk.ResourceData, meta interface{}) error { if err := d.Set("vnet_peerings_addresses", flattenVnetPeeringsdAddressList(props.VirtualNetworkPeerings)); err != nil { return fmt.Errorf("setting `vnet_peerings_addresses`: %v", err) } - } return tags.FlattenAndSet(d, model.Tags) } @@ -171,7 +170,6 @@ func flattenVnetPeerings(input *[]virtualnetworks.VirtualNetworkPeering) map[str continue } value = *props.RemoteVirtualNetwork.Id - } key := *vnetPeering.Name output[key] = value diff --git a/internal/services/network/virtual_network_dns_servers_resource.go b/internal/services/network/virtual_network_dns_servers_resource.go index ce64aa28e936..66833d53b704 100644 --- a/internal/services/network/virtual_network_dns_servers_resource.go +++ b/internal/services/network/virtual_network_dns_servers_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse" diff --git a/internal/services/network/virtual_network_dns_servers_resource_test.go b/internal/services/network/virtual_network_dns_servers_resource_test.go index f7c63504dcd1..0d8d0c7b20cc 100644 --- a/internal/services/network/virtual_network_dns_servers_resource_test.go +++ b/internal/services/network/virtual_network_dns_servers_resource_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_gateway_connection_data_source.go b/internal/services/network/virtual_network_gateway_connection_data_source.go index ec49c6efbe86..0f37cb077956 100644 --- a/internal/services/network/virtual_network_gateway_connection_data_source.go +++ b/internal/services/network/virtual_network_gateway_connection_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_network_gateway_connection_data_source_test.go b/internal/services/network/virtual_network_gateway_connection_data_source_test.go index 815210151911..f658e96733a8 100644 --- a/internal/services/network/virtual_network_gateway_connection_data_source_test.go +++ b/internal/services/network/virtual_network_gateway_connection_data_source_test.go @@ -81,6 +81,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -163,6 +167,10 @@ variable "shared_key" { default = "%s" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test_1" { name = "acctestRG-${var.random1}" location = "%s" @@ -293,6 +301,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" diff --git a/internal/services/network/virtual_network_gateway_connection_resource.go b/internal/services/network/virtual_network_gateway_connection_resource.go index eded6aa1f0ec..94a8dc720309 100644 --- a/internal/services/network/virtual_network_gateway_connection_resource.go +++ b/internal/services/network/virtual_network_gateway_connection_resource.go @@ -16,8 +16,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" @@ -853,7 +853,7 @@ func getVirtualNetworkGatewayConnectionProperties(d *pluginsdk.ResourceData, vir props.IPsecPolicies = expandVirtualNetworkGatewayConnectionIpsecPolicies(v.([]interface{})) } - if utils.NormaliseNilableBool(props.EnableBgp) { + if pointer.From(props.EnableBgp) { if _, ok := d.GetOk("custom_bgp_addresses"); ok { if virtualNetworkGateway.Properties.BgpSettings == nil || virtualNetworkGateway.Properties.BgpSettings.BgpPeeringAddresses == nil { return nil, fmt.Errorf("retrieving BGP peering address from `virtual_network_gateway` %s (%s) failed: get nil", *virtualNetworkGateway.Name, *virtualNetworkGateway.Id) diff --git a/internal/services/network/virtual_network_gateway_connection_resource_test.go b/internal/services/network/virtual_network_gateway_connection_resource_test.go index 2128c00dd5b0..bae0fcba9254 100644 --- a/internal/services/network/virtual_network_gateway_connection_resource_test.go +++ b/internal/services/network/virtual_network_gateway_connection_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -339,6 +339,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -417,6 +421,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -488,6 +496,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -595,6 +607,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -717,6 +733,10 @@ resource "azurerm_virtual_network_gateway_connection" "import" { func (VirtualNetworkGatewayConnectionResource) vnetToVnet(data acceptance.TestData, rInt1 int, rInt2 int, sharedKey string) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + variable "random1" { default = "%d" } @@ -849,6 +869,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -935,6 +959,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -1017,6 +1045,10 @@ resource "azurerm_virtual_network_gateway_connection" "test" { func (VirtualNetworkGatewayConnectionResource) connectionProtocol(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + variable "random" { default = "%d" } @@ -1107,6 +1139,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -1200,6 +1236,10 @@ variable "random" { default = "%d" } +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-${var.random}" location = "%s" @@ -1294,6 +1334,10 @@ resource "azurerm_virtual_network_gateway_connection" "test" { func (VirtualNetworkGatewayConnectionResource) useLocalAzureIpAddressEnabled(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -1365,6 +1409,10 @@ resource "azurerm_virtual_network_gateway_connection" "test" { func (VirtualNetworkGatewayConnectionResource) useLocalAzureIpAddressEnabledUpdate(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -1436,6 +1484,10 @@ resource "azurerm_virtual_network_gateway_connection" "test" { func (VirtualNetworkGatewayConnectionResource) useCustomBgpAddresses(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" diff --git a/internal/services/network/virtual_network_gateway_data_source.go b/internal/services/network/virtual_network_gateway_data_source.go index 50a7c96b52be..142a26743363 100644 --- a/internal/services/network/virtual_network_gateway_data_source.go +++ b/internal/services/network/virtual_network_gateway_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/virtual_network_gateway_nat_rule_resource.go b/internal/services/network/virtual_network_gateway_nat_rule_resource.go index e046a9b48a15..4393b22aef2b 100644 --- a/internal/services/network/virtual_network_gateway_nat_rule_resource.go +++ b/internal/services/network/virtual_network_gateway_nat_rule_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/virtual_network_gateway_nat_rule_resource_test.go b/internal/services/network/virtual_network_gateway_nat_rule_resource_test.go index bfcae0a94323..8fc045004c67 100644 --- a/internal/services/network/virtual_network_gateway_nat_rule_resource_test.go +++ b/internal/services/network/virtual_network_gateway_nat_rule_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/virtual_network_gateway_resource.go b/internal/services/network/virtual_network_gateway_resource.go index 6e6d6f40eede..c1765889fd3c 100644 --- a/internal/services/network/virtual_network_gateway_resource.go +++ b/internal/services/network/virtual_network_gateway_resource.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/parse" @@ -135,6 +135,8 @@ func resourceVirtualNetworkGatewaySchema() map[string]*pluginsdk.Schema { "ip_configuration": { Type: pluginsdk.TypeList, Required: true, + // Each type gateway requires exact number of `ip_configuration`, and overwriting an existing one is not allowed. + ForceNew: true, MaxItems: 3, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ @@ -1091,12 +1093,9 @@ func expandVirtualNetworkGatewayVpnClientConfig(d *pluginsdk.ResourceData, vnetG addresses = append(addresses, addr.(string)) } - confAadTenant := conf["aad_tenant"].(string) - confAadAudience := conf["aad_audience"].(string) - confAadIssuer := conf["aad_issuer"].(string) - - var rootCerts []virtualnetworkgateways.VpnClientRootCertificate - for _, rootCertSet := range conf["root_certificate"].(*pluginsdk.Set).List() { + rootCertsConf := conf["root_certificate"].(*pluginsdk.Set).List() + rootCerts := make([]virtualnetworkgateways.VpnClientRootCertificate, 0, len(rootCertsConf)) + for _, rootCertSet := range rootCertsConf { rootCert := rootCertSet.(map[string]interface{}) r := virtualnetworkgateways.VpnClientRootCertificate{ Name: pointer.To(rootCert["name"].(string)), @@ -1107,8 +1106,9 @@ func expandVirtualNetworkGatewayVpnClientConfig(d *pluginsdk.ResourceData, vnetG rootCerts = append(rootCerts, r) } - var revokedCerts []virtualnetworkgateways.VpnClientRevokedCertificate - for _, revokedCertSet := range conf["revoked_certificate"].(*pluginsdk.Set).List() { + revokedCertsConf := conf["revoked_certificate"].(*pluginsdk.Set).List() + revokedCerts := make([]virtualnetworkgateways.VpnClientRevokedCertificate, 0, len(revokedCertsConf)) + for _, revokedCertSet := range revokedCertsConf { revokedCert := revokedCertSet.(map[string]interface{}) r := virtualnetworkgateways.VpnClientRevokedCertificate{ Name: pointer.To(revokedCert["name"].(string)), @@ -1119,17 +1119,16 @@ func expandVirtualNetworkGatewayVpnClientConfig(d *pluginsdk.ResourceData, vnetG revokedCerts = append(revokedCerts, r) } - var vpnClientProtocols []virtualnetworkgateways.VpnClientProtocol - for _, vpnClientProtocol := range conf["vpn_client_protocols"].(*pluginsdk.Set).List() { + vpnClientProtocolsConf := conf["vpn_client_protocols"].(*pluginsdk.Set).List() + vpnClientProtocols := make([]virtualnetworkgateways.VpnClientProtocol, 0, len(vpnClientProtocolsConf)) + for _, vpnClientProtocol := range vpnClientProtocolsConf { p := virtualnetworkgateways.VpnClientProtocol(vpnClientProtocol.(string)) vpnClientProtocols = append(vpnClientProtocols, p) } - confRadiusServerAddress := conf["radius_server_address"].(string) - confRadiusServerSecret := conf["radius_server_secret"].(string) - - var vpnAuthTypes []virtualnetworkgateways.VpnAuthenticationType - for _, vpnAuthType := range conf["vpn_auth_types"].(*pluginsdk.Set).List() { + vpnAuthTypesConf := conf["vpn_auth_types"].(*pluginsdk.Set).List() + vpnAuthTypes := make([]virtualnetworkgateways.VpnAuthenticationType, 0, len(vpnAuthTypesConf)) + for _, vpnAuthType := range vpnAuthTypesConf { a := virtualnetworkgateways.VpnAuthenticationType(vpnAuthType.(string)) vpnAuthTypes = append(vpnAuthTypes, a) } @@ -1138,17 +1137,17 @@ func expandVirtualNetworkGatewayVpnClientConfig(d *pluginsdk.ResourceData, vnetG VpnClientAddressPool: &virtualnetworkgateways.AddressSpace{ AddressPrefixes: &addresses, }, - AadTenant: &confAadTenant, - AadAudience: &confAadAudience, - AadIssuer: &confAadIssuer, + AadTenant: pointer.To(conf["aad_tenant"].(string)), + AadAudience: pointer.To(conf["aad_audience"].(string)), + AadIssuer: pointer.To(conf["aad_issuer"].(string)), VngClientConnectionConfigurations: expandVirtualNetworkGatewayClientConnections(conf["virtual_network_gateway_client_connection"].([]interface{}), vnetGatewayId), VpnClientIPsecPolicies: expandVirtualNetworkGatewayIpsecPolicies(conf["ipsec_policy"].([]interface{})), VpnClientRootCertificates: &rootCerts, VpnClientRevokedCertificates: &revokedCerts, VpnClientProtocols: &vpnClientProtocols, RadiusServers: expandVirtualNetworkGatewayRadiusServers(conf["radius_server"].([]interface{})), - RadiusServerAddress: &confRadiusServerAddress, - RadiusServerSecret: &confRadiusServerSecret, + RadiusServerAddress: pointer.To(conf["radius_server_address"].(string)), + RadiusServerSecret: pointer.To(conf["radius_server_secret"].(string)), VpnAuthenticationTypes: &vpnAuthTypes, } } diff --git a/internal/services/network/virtual_network_gateway_resource_test.go b/internal/services/network/virtual_network_gateway_resource_test.go index c2d642821e82..4986ede9c18f 100644 --- a/internal/services/network/virtual_network_gateway_resource_test.go +++ b/internal/services/network/virtual_network_gateway_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -852,7 +852,7 @@ resource "azurerm_virtual_network_gateway" "test" { vpn_client_configuration { address_space = ["10.2.0.0/24"] - vpn_client_protocols = ["IkeV2"] + vpn_client_protocols = ["OpenVPN"] radius_server_address = "1.2.3.4" radius_server_secret = "1234" @@ -873,6 +873,39 @@ resource "azurerm_virtual_network_gateway" "test" { dh_group = "DHGroup14" pfs_group = "PFS14" } + + vpn_auth_types = ["Radius", "Certificate"] + + revoked_certificate { + name = "third" + thumbprint = "83FFBFC8848B5A5836C94D0112367E16148A286F" + } + + root_certificate { + name = "DigiCert-CA-Renamed" + public_cert_data = < 0 { - output["address_prefixes"] = []string{*props.AddressPrefix} - } else { - output["address_prefixes"] = []string{} - } + if props.AddressPrefixes == nil { + if props.AddressPrefix != nil && len(*props.AddressPrefix) > 0 { + output["address_prefixes"] = []string{*props.AddressPrefix} } else { - output["address_prefixes"] = props.AddressPrefixes + output["address_prefixes"] = []string{} } - output["delegation"] = flattenVirtualNetworkSubnetDelegation(props.Delegations) - output["default_outbound_access_enabled"] = pointer.From(props.DefaultOutboundAccess) - output["private_endpoint_network_policies"] = string(pointer.From(props.PrivateEndpointNetworkPolicies)) - output["private_link_service_network_policies_enabled"] = strings.EqualFold(string(pointer.From(props.PrivateLinkServiceNetworkPolicies)), string(virtualnetworks.VirtualNetworkPrivateEndpointNetworkPoliciesEnabled)) - routeTableId := "" - if props.RouteTable != nil && props.RouteTable.Id != nil { - id, err := routetables.ParseRouteTableID(*props.RouteTable.Id) - if err != nil { - return nil, err - } - routeTableId = id.ID() + } else { + output["address_prefixes"] = props.AddressPrefixes + } + output["delegation"] = flattenVirtualNetworkSubnetDelegation(props.Delegations) + output["default_outbound_access_enabled"] = pointer.From(props.DefaultOutboundAccess) + output["private_endpoint_network_policies"] = string(pointer.From(props.PrivateEndpointNetworkPolicies)) + output["private_link_service_network_policies_enabled"] = strings.EqualFold(string(pointer.From(props.PrivateLinkServiceNetworkPolicies)), string(virtualnetworks.VirtualNetworkPrivateEndpointNetworkPoliciesEnabled)) + routeTableId := "" + if props.RouteTable != nil && props.RouteTable.Id != nil { + id, err := routetables.ParseRouteTableID(*props.RouteTable.Id) + if err != nil { + return nil, err } - output["route_table_id"] = routeTableId - output["service_endpoints"] = flattenVirtualNetworkSubnetServiceEndpoints(props.ServiceEndpoints) - output["service_endpoint_policy_ids"] = flattenVirtualNetworkSubnetServiceEndpointPolicies(props.ServiceEndpointPolicies) + routeTableId = id.ID() } + output["route_table_id"] = routeTableId + output["service_endpoints"] = flattenVirtualNetworkSubnetServiceEndpoints(props.ServiceEndpoints) + output["service_endpoint_policy_ids"] = flattenVirtualNetworkSubnetServiceEndpointPolicies(props.ServiceEndpointPolicies) } results.Add(output) @@ -1055,17 +975,15 @@ func expandResourcesForLocking(d *pluginsdk.ResourceData) ([]string, []string, e } } - if features.FourPointOhBeta() { - routeTableId := subnet["route_table_id"].(string) - if routeTableId != "" { - parsedRouteTableID, err := routetables.ParseRouteTableID(routeTableId) - if err != nil { - return nil, nil, err - } - routeTableName := parsedRouteTableID.RouteTableName - if !utils.SliceContainsValue(routeTableNames, routeTableName) { - routeTableNames = append(routeTableNames, routeTableName) - } + routeTableId := subnet["route_table_id"].(string) + if routeTableId != "" { + parsedRouteTableID, err := routetables.ParseRouteTableID(routeTableId) + if err != nil { + return nil, nil, err + } + routeTableName := parsedRouteTableID.RouteTableName + if !utils.SliceContainsValue(routeTableNames, routeTableName) { + routeTableNames = append(routeTableNames, routeTableName) } } } diff --git a/internal/services/network/virtual_network_resource_test.go b/internal/services/network/virtual_network_resource_test.go index e75f5cd6e414..ac76c6eedbe4 100644 --- a/internal/services/network/virtual_network_resource_test.go +++ b/internal/services/network/virtual_network_resource_test.go @@ -10,11 +10,10 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -271,10 +270,6 @@ func TestAccVirtualNetwork_edgeZone(t *testing.T) { } func TestAccVirtualNetwork_subnet(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skip("Skipping since this test is only applicable in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_virtual_network", "test") r := VirtualNetworkResource{} @@ -304,10 +299,6 @@ func TestAccVirtualNetwork_subnet(t *testing.T) { } func TestAccVirtualNetwork_subnetRouteTable(t *testing.T) { - if !features.FourPointOhBeta() { - t.Skip("Skipping since this test is only applicable in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_virtual_network", "test") r := VirtualNetworkResource{} @@ -372,33 +363,6 @@ func (r VirtualNetworkResource) Destroy(ctx context.Context, client *clients.Cli } func (VirtualNetworkResource) basic(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } - tags = { - environment = "Production" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -432,34 +396,6 @@ func (r VirtualNetworkResource) tagCount(data acceptance.TestData) string { tags += fmt.Sprintf("t%d = \"v%d\"\n", i, i) } - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } - tags = { - %s - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, tags) - } - return fmt.Sprintf(` provider "azurerm" { features {} @@ -488,40 +424,6 @@ resource "azurerm_virtual_network" "test" { } func (VirtualNetworkResource) complete(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/16", "10.10.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - dns_servers = ["10.7.7.2", "10.7.7.7", "10.7.7.1", ] - - encryption { - enforcement = "AllowUnencrypted" - } - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } - - subnet { - name = "subnet2" - address_prefix = "10.10.1.0/24" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -557,23 +459,6 @@ resource "azurerm_virtual_network" "test" { } func (r VirtualNetworkResource) requiresImport(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -%s - -resource "azurerm_virtual_network" "import" { - name = azurerm_virtual_network.test.name - location = azurerm_virtual_network.test.location - resource_group_name = azurerm_virtual_network.test.resource_group_name - address_space = ["10.0.0.0/16"] - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } -} -`, r.basic(data)) - } return fmt.Sprintf(` %s @@ -592,44 +477,6 @@ resource "azurerm_virtual_network" "import" { } func (VirtualNetworkResource) ddosProtectionPlan(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_network_ddos_protection_plan" "test" { - name = "acctestddospplan-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - ddos_protection_plan { - id = azurerm_network_ddos_protection_plan.test.id - enable = true - } - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } - tags = { - environment = "Production" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -669,36 +516,6 @@ resource "azurerm_virtual_network" "test" { } func (VirtualNetworkResource) withTags(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } - - tags = { - environment = "Production" - cost_center = "MSFT" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) - } - return fmt.Sprintf(` provider "azurerm" { features {} @@ -729,34 +546,6 @@ resource "azurerm_virtual_network" "test" { } func (VirtualNetworkResource) withTagsUpdated(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } - - tags = { - environment = "staging" - } -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -813,32 +602,6 @@ resource "azurerm_virtual_network" "test" { } func (VirtualNetworkResource) bgpCommunity(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%d" - address_space = ["10.0.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } - - bgp_community = "12076:20000" -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -1031,48 +794,6 @@ resource "azurerm_virtual_network" "test" { } func (VirtualNetworkResource) subnetRouteTable(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" - location = "%[2]s" -} - -resource "azurerm_route_table" "test" { - name = "acctest-%[1]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - route { - name = "first" - address_prefix = "10.100.0.0/14" - next_hop_type = "VirtualAppliance" - next_hop_in_ip_address = "10.10.1.1" - } -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%[1]d" - address_space = ["10.0.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - route_table_id = azurerm_route_table.test.id - } - - tags = { - environment = "Production" - } -} -`, data.RandomInteger, data.Locations.Primary) - } return fmt.Sprintf(` provider "azurerm" { features {} @@ -1116,47 +837,6 @@ resource "azurerm_virtual_network" "test" { } func (VirtualNetworkResource) subnetRouteTableRemoved(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%[1]d" - location = "%[2]s" -} - -resource "azurerm_route_table" "test" { - name = "acctest-%[1]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - route { - name = "first" - address_prefix = "10.100.0.0/14" - next_hop_type = "VirtualAppliance" - next_hop_in_ip_address = "10.10.1.1" - } -} - -resource "azurerm_virtual_network" "test" { - name = "acctestvirtnet%[1]d" - address_space = ["10.0.0.0/16"] - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - subnet { - name = "subnet1" - address_prefix = "10.0.1.0/24" - } - - tags = { - environment = "Production" - } -} -`, data.RandomInteger, data.Locations.Primary) - } return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/network/virtual_wan_data_source.go b/internal/services/network/virtual_wan_data_source.go index e7174b12ea24..dbfaf6b1ff03 100644 --- a/internal/services/network/virtual_wan_data_source.go +++ b/internal/services/network/virtual_wan_data_source.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/virtual_wan_resource.go b/internal/services/network/virtual_wan_resource.go index bf66c99aff07..0d8a0353c653 100644 --- a/internal/services/network/virtual_wan_resource.go +++ b/internal/services/network/virtual_wan_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/network/virtual_wan_resource_test.go b/internal/services/network/virtual_wan_resource_test.go index 429ca5dde644..d71a0157db67 100644 --- a/internal/services/network/virtual_wan_resource_test.go +++ b/internal/services/network/virtual_wan_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_gateway_connection_resource.go b/internal/services/network/vpn_gateway_connection_resource.go index 899ec14a462a..ad44edfce685 100644 --- a/internal/services/network/vpn_gateway_connection_resource.go +++ b/internal/services/network/vpn_gateway_connection_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/vpn_gateway_data_source.go b/internal/services/network/vpn_gateway_data_source.go index 5a0fd412ae1c..e9c9f4822c73 100644 --- a/internal/services/network/vpn_gateway_data_source.go +++ b/internal/services/network/vpn_gateway_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/network/vpn_gateway_nat_rule_resource.go b/internal/services/network/vpn_gateway_nat_rule_resource.go index a78cbcc77bfe..d21380ce7a11 100644 --- a/internal/services/network/vpn_gateway_nat_rule_resource.go +++ b/internal/services/network/vpn_gateway_nat_rule_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourcegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_gateway_nat_rule_resource_test.go b/internal/services/network/vpn_gateway_nat_rule_resource_test.go index 33c03ba505c5..0c20e1e281c7 100644 --- a/internal/services/network/vpn_gateway_nat_rule_resource_test.go +++ b/internal/services/network/vpn_gateway_nat_rule_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_gateway_resource.go b/internal/services/network/vpn_gateway_resource.go index 76f13d1f6b92..5ad838e311e5 100644 --- a/internal/services/network/vpn_gateway_resource.go +++ b/internal/services/network/vpn_gateway_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" commonValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -267,7 +267,6 @@ func resourceVPNGatewayCreate(d *pluginsdk.ResourceData, meta interface{}) error props := resp.Model.Properties if props.BgpSettings != nil && props.BgpSettings.BgpPeeringAddresses != nil { - val := bgpSettingsRaw[0].(map[string]interface{}) input0 := val["instance_0_bgp_peering_address"].([]interface{}) input1 := val["instance_1_bgp_peering_address"].([]interface{}) diff --git a/internal/services/network/vpn_gateway_resource_test.go b/internal/services/network/vpn_gateway_resource_test.go index e47711bdff71..28f021eb7ba1 100644 --- a/internal/services/network/vpn_gateway_resource_test.go +++ b/internal/services/network/vpn_gateway_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_server_configuration_data_source_resource.go b/internal/services/network/vpn_server_configuration_data_source_resource.go index 01eb177be82e..d4cae72fc76c 100644 --- a/internal/services/network/vpn_server_configuration_data_source_resource.go +++ b/internal/services/network/vpn_server_configuration_data_source_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) diff --git a/internal/services/network/vpn_server_configuration_policy_group_resource.go b/internal/services/network/vpn_server_configuration_policy_group_resource.go index b94b193460f5..5a37c6812a7c 100644 --- a/internal/services/network/vpn_server_configuration_policy_group_resource.go +++ b/internal/services/network/vpn_server_configuration_policy_group_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" diff --git a/internal/services/network/vpn_server_configuration_policy_group_resource_test.go b/internal/services/network/vpn_server_configuration_policy_group_resource_test.go index 2f4f290f70b6..206816e82a7f 100644 --- a/internal/services/network/vpn_server_configuration_policy_group_resource_test.go +++ b/internal/services/network/vpn_server_configuration_policy_group_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_server_configuration_resource.go b/internal/services/network/vpn_server_configuration_resource.go index 0dcae37fb6b1..163984a41cbf 100644 --- a/internal/services/network/vpn_server_configuration_resource.go +++ b/internal/services/network/vpn_server_configuration_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_server_configuration_resource_test.go b/internal/services/network/vpn_server_configuration_resource_test.go index 1e2b37ff944d..1e4d15d2299a 100644 --- a/internal/services/network/vpn_server_configuration_resource_test.go +++ b/internal/services/network/vpn_server_configuration_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/vpn_site_resource.go b/internal/services/network/vpn_site_resource.go index d5de90205344..53273ee511d2 100644 --- a/internal/services/network/vpn_site_resource.go +++ b/internal/services/network/vpn_site_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/network/vpn_site_resource_test.go b/internal/services/network/vpn_site_resource_test.go index 0399336285bf..ce14eda5cf0a 100644 --- a/internal/services/network/vpn_site_resource_test.go +++ b/internal/services/network/vpn_site_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/network/web_application_firewall_policy_data_source.go b/internal/services/network/web_application_firewall_policy_data_source.go index 70de6dbbe980..315b0e4961d0 100644 --- a/internal/services/network/web_application_firewall_policy_data_source.go +++ b/internal/services/network/web_application_firewall_policy_data_source.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" diff --git a/internal/services/network/web_application_firewall_policy_resource.go b/internal/services/network/web_application_firewall_policy_resource.go index 12053a12fd61..84edbc0569aa 100644 --- a/internal/services/network/web_application_firewall_policy_resource.go +++ b/internal/services/network/web_application_firewall_policy_resource.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -144,15 +144,8 @@ func resourceWebApplicationFirewallPolicy() *pluginsdk.Resource { Type: pluginsdk.TypeSet, Optional: true, Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice([]string{ - string(webapplicationfirewallpolicies.WebApplicationFirewallTransformHtmlEntityDecode), - string(webapplicationfirewallpolicies.WebApplicationFirewallTransformLowercase), - string(webapplicationfirewallpolicies.WebApplicationFirewallTransformRemoveNulls), - string(webapplicationfirewallpolicies.WebApplicationFirewallTransformTrim), - string(webapplicationfirewallpolicies.WebApplicationFirewallTransformURLDecode), - string(webapplicationfirewallpolicies.WebApplicationFirewallTransformURLEncode), - }, false), + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringInSlice(webapplicationfirewallpolicies.PossibleValuesForWebApplicationFirewallTransform(), false), }, }, }, @@ -396,6 +389,22 @@ func resourceWebApplicationFirewallPolicy() *pluginsdk.Resource { Default: true, }, + "file_upload_enforcement": { + Type: pluginsdk.TypeBool, + /* + NOTE: O+C: This value defaults to true but is only available under certain conditions (i.e. when version is 3.2) + managed_rules { + managed_rule_set { + type = "OWASP" + version = "3.2" + } + } + */ + Optional: true, + // We'll remove computed in 5.0 so we don't break existing configurations + Computed: !features.FivePointOhBeta(), + }, + "max_request_body_size_in_kb": { Type: pluginsdk.TypeInt, Optional: true, @@ -727,12 +736,14 @@ func expandWebApplicationFirewallPolicyPolicySettings(input []interface{}) *weba mode := v["mode"].(string) requestBodyCheck := v["request_body_check"].(bool) requestBodyEnforcement := v["request_body_enforcement"].(bool) + fileUploadEnforcement := v["file_upload_enforcement"].(bool) maxRequestBodySizeInKb := v["max_request_body_size_in_kb"].(int) fileUploadLimitInMb := v["file_upload_limit_in_mb"].(int) result := webapplicationfirewallpolicies.PolicySettings{ State: pointer.To(enabled), Mode: pointer.To(webapplicationfirewallpolicies.WebApplicationFirewallMode(mode)), + FileUploadEnforcement: pointer.To(fileUploadEnforcement), RequestBodyCheck: pointer.To(requestBodyCheck), RequestBodyEnforcement: pointer.To(requestBodyEnforcement), MaxRequestBodySizeInKb: pointer.To(int64(maxRequestBodySizeInKb)), @@ -767,7 +778,8 @@ func expanedWebApplicationPolicyScrubbingRules(input []interface{}) *[]webapplic if len(input) == 0 { return nil } - var res []webapplicationfirewallpolicies.WebApplicationFirewallScrubbingRules + + res := make([]webapplicationfirewallpolicies.WebApplicationFirewallScrubbingRules, 0) for _, rule := range input { v := rule.(map[string]interface{}) var item webapplicationfirewallpolicies.WebApplicationFirewallScrubbingRules @@ -1088,6 +1100,7 @@ func flattenWebApplicationFirewallPolicyPolicySettings(input *webapplicationfire result["mode"] = string(pointer.From(input.Mode)) result["request_body_check"] = input.RequestBodyCheck result["request_body_enforcement"] = input.RequestBodyEnforcement + result["file_upload_enforcement"] = input.FileUploadEnforcement result["max_request_body_size_in_kb"] = int(pointer.From(input.MaxRequestBodySizeInKb)) result["file_upload_limit_in_mb"] = int(pointer.From(input.FileUploadLimitInMb)) result["log_scrubbing"] = flattenWebApplicationFirewallPolicyLogScrubbing(input.LogScrubbing) @@ -1121,7 +1134,6 @@ func flattenWebApplicationFirewallPolicyLogScrubbingRules(rules *[]webapplicatio result = append(result, item) } return &result - } func flattenWebApplicationFirewallPolicyManagedRulesDefinition(input webapplicationfirewallpolicies.ManagedRulesDefinition) []interface{} { diff --git a/internal/services/network/web_application_firewall_policy_resource_test.go b/internal/services/network/web_application_firewall_policy_resource_test.go index f27211b69546..71ab42156de5 100644 --- a/internal/services/network/web_application_firewall_policy_resource_test.go +++ b/internal/services/network/web_application_firewall_policy_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -405,6 +405,35 @@ func TestAccWebApplicationFirewallPolicy_BotManager(t *testing.T) { }) } +func TestAccWebApplicationFirewallPolicy_fileUploadEnforcement(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_web_application_firewall_policy", "test") + r := WebApplicationFirewallResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.fileUploadEnforcement(data, true), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.fileUploadEnforcement(data, false), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.fileUploadEnforcement(data, true), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func (t WebApplicationFirewallResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := webapplicationfirewallpolicies.ParseApplicationGatewayWebApplicationFirewallPolicyID(state.ID) if err != nil { @@ -514,7 +543,7 @@ resource "azurerm_web_application_firewall_policy" "test" { operator = "Contains" negation_condition = false match_values = ["windows"] - transforms = ["Lowercase"] + transforms = ["Uppercase"] } action = "Block" @@ -1958,7 +1987,7 @@ resource "azurerm_web_application_firewall_policy" "test" { excluded_rule_set { type = "Microsoft_BotManagerRuleSet" - version = "1.0" + version = "1.1" rule_group { rule_group_name = "UnknownBots" excluded_rules = [ @@ -2007,7 +2036,7 @@ resource "azurerm_web_application_firewall_policy" "test" { managed_rule_set { type = "Microsoft_BotManagerRuleSet" - version = "1.0" + version = "1.1" } exclusion { @@ -2017,7 +2046,7 @@ resource "azurerm_web_application_firewall_policy" "test" { excluded_rule_set { type = "Microsoft_BotManagerRuleSet" - version = "1.0" + version = "1.1" rule_group { rule_group_name = "GoodBots" excluded_rules = [ @@ -2035,3 +2064,40 @@ resource "azurerm_web_application_firewall_policy" "test" { } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } + +func (WebApplicationFirewallResource) fileUploadEnforcement(data acceptance.TestData, enforcement bool) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_web_application_firewall_policy" "test" { + name = "acctestwafpolicy-%d" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + + + managed_rules { + managed_rule_set { + type = "OWASP" + version = "3.2" + } + } + + policy_settings { + enabled = true + mode = "Prevention" + request_body_check = false + request_body_enforcement = true + file_upload_limit_in_mb = 128 + max_request_body_size_in_kb = 128 + file_upload_enforcement = %t + } +} +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, enforcement) +} diff --git a/internal/services/networkfunction/network_function_collector_policy_resource.go b/internal/services/networkfunction/network_function_collector_policy_resource.go index a7ddd515fb4d..dd166a45a51e 100644 --- a/internal/services/networkfunction/network_function_collector_policy_resource.go +++ b/internal/services/networkfunction/network_function_collector_policy_resource.go @@ -246,7 +246,6 @@ func (r NetworkFunctionCollectorPolicyResource) Read() sdk.ResourceFunc { if properties.IngestionPolicy != nil { state.IpfxIngestion = flattenIngestionSourcesPropertiesFormatModelArray(properties.IngestionPolicy.IngestionSources) } - } state.Tags = tags.Flatten(model.Tags) @@ -313,7 +312,7 @@ func collectorPolicyDeletedRefreshFunc(ctx context.Context, client *collectorpol } func expandEmissionPoliciesPropertiesFormatModelArray(inputList []IpfxEmissionModel) *[]collectorpolicies.EmissionPoliciesPropertiesFormat { - var outputList []collectorpolicies.EmissionPoliciesPropertiesFormat + outputList := make([]collectorpolicies.EmissionPoliciesPropertiesFormat, 0, len(inputList)) for _, v := range inputList { input := v output := collectorpolicies.EmissionPoliciesPropertiesFormat{ @@ -328,7 +327,7 @@ func expandEmissionPoliciesPropertiesFormatModelArray(inputList []IpfxEmissionMo } func expandEmissionPolicyDestinationModelArray(inputList []string) *[]collectorpolicies.EmissionPolicyDestination { - var outputList []collectorpolicies.EmissionPolicyDestination + outputList := make([]collectorpolicies.EmissionPolicyDestination, 0, len(inputList)) for _, v := range inputList { output := collectorpolicies.EmissionPolicyDestination{ DestinationType: pointer.To(collectorpolicies.DestinationType(v)), @@ -345,7 +344,7 @@ func expandIngestionSourcesPropertiesFormatModelArray(inputList []IpfxIngestionM return nil } - var outputList []collectorpolicies.IngestionSourcesPropertiesFormat + outputList := make([]collectorpolicies.IngestionSourcesPropertiesFormat, 0, len(inputList)) for _, v := range inputList[0].SourceResourceIds { output := collectorpolicies.IngestionSourcesPropertiesFormat{ SourceType: pointer.To(collectorpolicies.SourceTypeResource), diff --git a/internal/services/newrelic/new_relic_tag_rule_resource.go b/internal/services/newrelic/new_relic_tag_rule_resource.go index 17ce9961fae5..c06eb580861f 100644 --- a/internal/services/newrelic/new_relic_tag_rule_resource.go +++ b/internal/services/newrelic/new_relic_tag_rule_resource.go @@ -393,7 +393,7 @@ func (r NewRelicTagRuleResource) getEmail(ctx context.Context, monitorClient *mo } func expandFilteringTagModelArray(inputList []FilteringTagModel) *[]tagrules.FilteringTag { - var outputList []tagrules.FilteringTag + outputList := make([]tagrules.FilteringTag, 0, len(inputList)) for _, v := range inputList { input := v output := tagrules.FilteringTag{ diff --git a/internal/services/newrelic/registration.go b/internal/services/newrelic/registration.go index 824a2f9f343a..2037788afa25 100644 --- a/internal/services/newrelic/registration.go +++ b/internal/services/newrelic/registration.go @@ -9,9 +9,7 @@ import ( type Registration struct{} -var ( - _ sdk.TypedServiceRegistration = Registration{} -) +var _ sdk.TypedServiceRegistration = Registration{} // Name is the name of this Service func (r Registration) Name() string { diff --git a/internal/services/nginx/nginx_certificate_resource.go b/internal/services/nginx/nginx_certificate_resource.go index dc1a1114ce7b..6a9f9ae57105 100644 --- a/internal/services/nginx/nginx_certificate_resource.go +++ b/internal/services/nginx/nginx_certificate_resource.go @@ -103,9 +103,9 @@ func (m CertificateResource) Create() sdk.ResourceFunc { req := nginxcertificate.NginxCertificate{ Properties: &nginxcertificate.NginxCertificateProperties{ - CertificateVirtualPath: pointer.FromString(model.CertificateVirtualPath), - KeyVaultSecretId: pointer.FromString(model.KeyVaultSecretId), - KeyVirtualPath: pointer.FromString(model.KeyVirtualPath), + CertificateVirtualPath: pointer.To(model.CertificateVirtualPath), + KeyVaultSecretId: pointer.To(model.KeyVaultSecretId), + KeyVirtualPath: pointer.To(model.KeyVirtualPath), }, } @@ -124,7 +124,6 @@ func (m CertificateResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, meta sdk.ResourceMetaData) error { - client := meta.Client.Nginx.NginxCertificate id, err := nginxcertificate.ParseCertificateID(meta.ResourceData.Id()) if err != nil { @@ -148,7 +147,7 @@ func (m CertificateResource) Update() sdk.ResourceFunc { // have to pass all existing properties to update upd := existing.Model if meta.ResourceData.HasChange("key_virtual_path") { - upd.Properties.KeyVirtualPath = pointer.FromString(model.KeyVirtualPath) + upd.Properties.KeyVirtualPath = pointer.To(model.KeyVirtualPath) } if meta.ResourceData.HasChange("certificate_virtual_path") { diff --git a/internal/services/nginx/nginx_configuration_resource.go b/internal/services/nginx/nginx_configuration_resource.go index 2b3a4cf164a0..f0e83e4dba19 100644 --- a/internal/services/nginx/nginx_configuration_resource.go +++ b/internal/services/nginx/nginx_configuration_resource.go @@ -26,8 +26,8 @@ type ConfigFile struct { func (c ConfigFile) toSDKModel() nginxconfiguration.NginxConfigurationFile { return nginxconfiguration.NginxConfigurationFile{ - Content: pointer.FromString(c.Content), - VirtualPath: pointer.FromString(c.VirtualPath), + Content: pointer.To(c.Content), + VirtualPath: pointer.To(c.VirtualPath), } } @@ -38,8 +38,8 @@ type ProtectedFile struct { func (c ProtectedFile) toSDKModel() nginxconfiguration.NginxConfigurationFile { return nginxconfiguration.NginxConfigurationFile{ - Content: pointer.FromString(c.Content), - VirtualPath: pointer.FromString(c.VirtualPath), + Content: pointer.To(c.Content), + VirtualPath: pointer.To(c.VirtualPath), } } @@ -52,7 +52,7 @@ type ConfigurationModel struct { } func (c ConfigurationModel) toSDKFiles() *[]nginxconfiguration.NginxConfigurationFile { - var files []nginxconfiguration.NginxConfigurationFile + files := make([]nginxconfiguration.NginxConfigurationFile, 0, len(c.ConfigFile)) for _, file := range c.ConfigFile { files = append(files, file.toSDKModel()) } @@ -63,7 +63,8 @@ func (c ConfigurationModel) toSDKProtectedFiles() *[]nginxconfiguration.NginxCon if len(c.ProtectedFile) == 0 { return nil } - var files []nginxconfiguration.NginxConfigurationFile + + files := make([]nginxconfiguration.NginxConfigurationFile, 0, len(c.ProtectedFile)) for _, file := range c.ProtectedFile { files = append(files, file.toSDKModel()) } @@ -73,9 +74,9 @@ func (c ConfigurationModel) toSDKProtectedFiles() *[]nginxconfiguration.NginxCon // ToSDKModel used in both Create and Update func (c ConfigurationModel) ToSDKModel() nginxconfiguration.NginxConfiguration { req := nginxconfiguration.NginxConfiguration{ - Name: pointer.FromString(defaultConfigurationName), + Name: pointer.To(defaultConfigurationName), Properties: &nginxconfiguration.NginxConfigurationProperties{ - RootFile: pointer.FromString(c.RootFile), + RootFile: pointer.To(c.RootFile), }, } @@ -84,7 +85,7 @@ func (c ConfigurationModel) ToSDKModel() nginxconfiguration.NginxConfiguration { if c.PackageData != "" { req.Properties.Package = &nginxconfiguration.NginxConfigurationPackage{ - Data: pointer.FromString(c.PackageData), + Data: pointer.To(c.PackageData), } } @@ -237,7 +238,7 @@ func (m ConfigurationResource) Read() sdk.ResourceFunc { } var output ConfigurationModel - // protected files field not return by API so decode from state + // protected files content field not return by API so decode from state if err := meta.Decode(&output); err != nil { return err } @@ -253,21 +254,34 @@ func (m ConfigurationResource) Read() sdk.ResourceFunc { } if files := prop.Files; files != nil { + configs := []ConfigFile{} for _, file := range *files { - output.ConfigFile = append(output.ConfigFile, ConfigFile{ - Content: pointer.ToString(file.Content), - VirtualPath: pointer.ToString(file.VirtualPath), - }) + if pointer.From(file.Content) != "" { + configs = append(configs, ConfigFile{ + Content: pointer.ToString(file.Content), + VirtualPath: pointer.ToString(file.VirtualPath), + }) + } + } + if len(configs) > 0 { + output.ConfigFile = configs } } - // GET does not return protected files + // GET returns protected files with virtual_path only without content if files := prop.ProtectedFiles; files != nil { + configs := []ProtectedFile{} for _, file := range *files { - output.ProtectedFile = append(output.ProtectedFile, ProtectedFile{ - Content: pointer.ToString(file.Content), - VirtualPath: pointer.ToString(file.VirtualPath), - }) + if pointer.From(file.Content) != "" { + configs = append(configs, ProtectedFile{ + Content: pointer.ToString(file.Content), + VirtualPath: pointer.ToString(file.VirtualPath), + }) + } + } + + if len(configs) > 0 { + output.ProtectedFile = configs } } } @@ -304,7 +318,7 @@ func (m ConfigurationResource) Update() sdk.ResourceFunc { upd := existing.Model // root file is required in update if meta.ResourceData.HasChange("root_file") { - upd.Properties.RootFile = pointer.FromString(model.RootFile) + upd.Properties.RootFile = pointer.To(model.RootFile) } if meta.ResourceData.HasChange("config_file") { @@ -316,7 +330,7 @@ func (m ConfigurationResource) Update() sdk.ResourceFunc { if meta.ResourceData.HasChange("package_data") { upd.Properties.Package = &nginxconfiguration.NginxConfigurationPackage{ - Data: pointer.FromString(model.PackageData), + Data: pointer.To(model.PackageData), } } diff --git a/internal/services/nginx/nginx_deployment_resource.go b/internal/services/nginx/nginx_deployment_resource.go index bc56ba27ac78..c8516eefa725 100644 --- a/internal/services/nginx/nginx_deployment_resource.go +++ b/internal/services/nginx/nginx_deployment_resource.go @@ -13,16 +13,12 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" - "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration" "github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -const defaultCapacity = 20 // TODO: remove this in v4.0 - type FrontendPrivate struct { IpAddress string `tfschema:"ip_address"` AllocationMethod string `tfschema:"allocation_method"` @@ -264,78 +260,6 @@ func (m DeploymentResource) Arguments() map[string]*pluginsdk.Schema { "tags": commonschema.Tags(), } - if !features.FourPointOhBeta() { - resource["capacity"].Default = defaultCapacity - - resource["configuration"] = &pluginsdk.Schema{ - Deprecated: "The `configuration` block has been superseded by the `azurerm_nginx_configuration` resource and will be removed in v4.0 of the AzureRM Provider.", - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "config_file": { - Type: pluginsdk.TypeSet, - Optional: true, - AtLeastOneOf: []string{"configuration.0.config_file", "configuration.0.package_data"}, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "content": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsBase64, - }, - - "virtual_path": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - }, - - "protected_file": { - Type: pluginsdk.TypeSet, - Optional: true, - RequiredWith: []string{"configuration.0.config_file"}, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "content": { - Type: pluginsdk.TypeString, - Required: true, - Sensitive: true, - ValidateFunc: validation.StringIsBase64, - }, - - "virtual_path": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - }, - - "package_data": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringIsNotEmpty, - AtLeastOneOf: []string{"configuration.0.config_file", "configuration.0.package_data"}, - ConflictsWith: []string{"configuration.0.protected_file", "configuration.0.config_file"}, - }, - - "root_file": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - } - } - return resource } @@ -384,8 +308,8 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { } req := nginxdeployment.NginxDeployment{} - req.Name = pointer.FromString(model.Name) - req.Location = pointer.FromString(model.Location) + req.Name = pointer.To(model.Name) + req.Location = pointer.To(model.Location) req.Tags = pointer.FromMapOfStringStrings(model.Tags) if model.Sku != "" { @@ -394,13 +318,13 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { } prop := &nginxdeployment.NginxDeploymentProperties{} - prop.ManagedResourceGroup = pointer.FromString(model.ManagedResourceGroup) + prop.ManagedResourceGroup = pointer.To(model.ManagedResourceGroup) if len(model.LoggingStorageAccount) > 0 { prop.Logging = &nginxdeployment.NginxLogging{ StorageAccount: &nginxdeployment.NginxStorageAccount{ - AccountName: pointer.FromString(model.LoggingStorageAccount[0].Name), - ContainerName: pointer.FromString(model.LoggingStorageAccount[0].ContainerName), + AccountName: pointer.To(model.LoggingStorageAccount[0].Name), + ContainerName: pointer.To(model.LoggingStorageAccount[0].ContainerName), }, } } @@ -415,7 +339,7 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { var publicIPs []nginxdeployment.NginxPublicIPAddress for _, ip := range public[0].IpAddress { publicIPs = append(publicIPs, nginxdeployment.NginxPublicIPAddress{ - Id: pointer.FromString(ip), + Id: pointer.To(ip), }) } prop.NetworkProfile.FrontEndIPConfiguration.PublicIPAddresses = &publicIPs @@ -426,42 +350,30 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { for _, ip := range private { alloc := nginxdeployment.NginxPrivateIPAllocationMethod(ip.AllocationMethod) privateIPs = append(privateIPs, nginxdeployment.NginxPrivateIPAddress{ - PrivateIPAddress: pointer.FromString(ip.IpAddress), + PrivateIPAddress: pointer.To(ip.IpAddress), PrivateIPAllocationMethod: &alloc, - SubnetId: pointer.FromString(ip.SubnetId), + SubnetId: pointer.To(ip.SubnetId), }) } prop.NetworkProfile.FrontEndIPConfiguration.PrivateIPAddresses = &privateIPs } if len(model.NetworkInterface) > 0 { - prop.NetworkProfile.NetworkInterfaceConfiguration.SubnetId = pointer.FromString(model.NetworkInterface[0].SubnetId) + prop.NetworkProfile.NetworkInterfaceConfiguration.SubnetId = pointer.To(model.NetworkInterface[0].SubnetId) } isBasicSKU := strings.HasPrefix(model.Sku, "basic") - if !features.FourPointOhBeta() { - if isBasicSKU && (model.Capacity != defaultCapacity || len(model.AutoScaleProfile) > 0) { - return fmt.Errorf("basic SKUs are incompatible with `capacity` or `auto_scale_profiles`") - } - - if model.Capacity > 0 && !isBasicSKU { - prop.ScalingProperties = &nginxdeployment.NginxDeploymentScalingProperties{ - Capacity: pointer.FromInt64(model.Capacity), - } - } - } else { - hasScaling := (model.Capacity > 0 || len(model.AutoScaleProfile) > 0) - if isBasicSKU && hasScaling { - return fmt.Errorf("basic SKUs are incompatible with `capacity` or `auto_scale_profiles`") - } - if !isBasicSKU && !hasScaling { - return fmt.Errorf("scaling is required for `sku` '%s', please provide `capacity` or `auto_scale_profiles`", model.Sku) - } + hasScaling := (model.Capacity > 0 || len(model.AutoScaleProfile) > 0) + if isBasicSKU && hasScaling { + return fmt.Errorf("basic SKUs are incompatible with `capacity` or `auto_scale_profiles`") + } + if !isBasicSKU && !hasScaling { + return fmt.Errorf("scaling is required for `sku` '%s', please provide `capacity` or `auto_scale_profiles`", model.Sku) + } - if model.Capacity > 0 { - prop.ScalingProperties = &nginxdeployment.NginxDeploymentScalingProperties{ - Capacity: pointer.FromInt64(model.Capacity), - } + if model.Capacity > 0 { + prop.ScalingProperties = &nginxdeployment.NginxDeploymentScalingProperties{ + Capacity: pointer.FromInt64(model.Capacity), } } @@ -485,7 +397,7 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { if model.Email != "" { prop.UserProfile = &nginxdeployment.NginxDeploymentUserProfile{ - PreferredEmail: pointer.FromString(model.Email), + PreferredEmail: pointer.To(model.Email), } } @@ -507,18 +419,6 @@ func (m DeploymentResource) Create() sdk.ResourceFunc { return fmt.Errorf("creating %s: %v", id, err) } - if !features.FourPointOhBeta() { - if len(model.Configuration) > 0 { - // update configuration - configID := nginxconfiguration.NewConfigurationID(id.SubscriptionId, id.ResourceGroupName, id.NginxDeploymentName, defaultConfigurationName) - - configProp := expandConfiguration(model.Configuration[0]) - if err := meta.Client.Nginx.NginxConfiguration.ConfigurationsCreateOrUpdateThenPoll(ctx, configID, configProp); err != nil { - return fmt.Errorf("update default configuration of %q: %v", configID, err) - } - } - } - meta.SetID(id) return nil }, @@ -634,48 +534,6 @@ func (m DeploymentResource) Read() sdk.ResourceFunc { } } - if !features.FourPointOhBeta() { - if v := meta.ResourceData.Get("configuration"); len(v.([]interface{})) != 0 { - // read configuration - configResp, err := meta.Client.Nginx.NginxConfiguration.ConfigurationsGet(ctx, nginxconfiguration.NewConfigurationID(id.SubscriptionId, id.ResourceGroupName, id.NginxDeploymentName, defaultConfigurationName)) - if err != nil && !response.WasNotFound(configResp.HttpResponse) { - return fmt.Errorf("retrieving default configuration of %q: %v", id, err) - } - if model := configResp.Model; model != nil { - if prop := model.Properties; prop != nil { - var files []ConfigureFile - if prop.Files != nil { - for _, file := range *prop.Files { - files = append(files, ConfigureFile{ - Content: pointer.From(file.Content), - VirtualPath: pointer.From(file.VirtualPath), - }) - } - } - - var protectedFiles []ConfigureFile - if prop.ProtectedFiles != nil { - for _, file := range *prop.ProtectedFiles { - protectedFiles = append(protectedFiles, ConfigureFile{ - Content: pointer.From(file.Content), - VirtualPath: pointer.From(file.VirtualPath), - }) - } - } - - output.Configuration = []Configuration{ - { - ConfigureFile: files, - ProtectedFile: protectedFiles, - PackageData: pointer.From(pointer.From(prop.Package).Data), - RootFile: pointer.From(prop.RootFile), - }, - } - } - } - } - } - return meta.Encode(&output) }, } @@ -715,8 +573,8 @@ func (m DeploymentResource) Update() sdk.ResourceFunc { if meta.ResourceData.HasChange("logging_storage_account") && len(model.LoggingStorageAccount) > 0 { req.Properties.Logging = &nginxdeployment.NginxLogging{ StorageAccount: &nginxdeployment.NginxStorageAccount{ - AccountName: pointer.FromString(model.LoggingStorageAccount[0].Name), - ContainerName: pointer.FromString(model.LoggingStorageAccount[0].ContainerName), + AccountName: pointer.To(model.LoggingStorageAccount[0].Name), + ContainerName: pointer.To(model.LoggingStorageAccount[0].ContainerName), }, } } @@ -751,7 +609,7 @@ func (m DeploymentResource) Update() sdk.ResourceFunc { if meta.ResourceData.HasChange("email") { req.Properties.UserProfile = &nginxdeployment.NginxDeploymentUserProfile{ - PreferredEmail: pointer.FromString(model.Email), + PreferredEmail: pointer.To(model.Email), } } @@ -769,17 +627,6 @@ func (m DeploymentResource) Update() sdk.ResourceFunc { return fmt.Errorf("updating %s: %v", id, err) } - if !features.FourPointOhBeta() { - if meta.ResourceData.HasChange("configuration") { - configID := nginxconfiguration.NewConfigurationID(id.SubscriptionId, id.ResourceGroupName, id.NginxDeploymentName, defaultConfigurationName) - - configProp := expandConfiguration(model.Configuration[0]) - if err := meta.Client.Nginx.NginxConfiguration.ConfigurationsCreateOrUpdateThenPoll(ctx, configID, configProp); err != nil { - return fmt.Errorf("update default configuration of %q: %v", configID, err) - } - } - } - return nil }, } @@ -808,43 +655,3 @@ func (m DeploymentResource) Delete() sdk.ResourceFunc { func (m DeploymentResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return nginxdeployment.ValidateNginxDeploymentID } - -func expandConfiguration(model Configuration) nginxconfiguration.NginxConfiguration { - result := nginxconfiguration.NginxConfiguration{ - Properties: &nginxconfiguration.NginxConfigurationProperties{}, - } - - if len(model.ConfigureFile) > 0 { - var files []nginxconfiguration.NginxConfigurationFile - for _, file := range model.ConfigureFile { - files = append(files, nginxconfiguration.NginxConfigurationFile{ - Content: pointer.To(file.Content), - VirtualPath: pointer.To(file.VirtualPath), - }) - } - result.Properties.Files = &files - } - - if len(model.ProtectedFile) > 0 { - var files []nginxconfiguration.NginxConfigurationFile - for _, file := range model.ProtectedFile { - files = append(files, nginxconfiguration.NginxConfigurationFile{ - Content: pointer.To(file.Content), - VirtualPath: pointer.To(file.VirtualPath), - }) - } - result.Properties.ProtectedFiles = &files - } - - if model.PackageData != "" { - result.Properties.Package = &nginxconfiguration.NginxConfigurationPackage{ - Data: pointer.To(model.PackageData), - } - } - - if model.RootFile != "" { - result.Properties.RootFile = pointer.To(model.RootFile) - } - - return result -} diff --git a/internal/services/notificationhub/notification_hub_authorization_rule_resource.go b/internal/services/notificationhub/notification_hub_authorization_rule_resource.go index ec90bb79da87..e04441e4cdd2 100644 --- a/internal/services/notificationhub/notification_hub_authorization_rule_resource.go +++ b/internal/services/notificationhub/notification_hub_authorization_rule_resource.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/notificationhub/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -86,13 +85,13 @@ func resourceNotificationHubAuthorizationRule() *pluginsdk.Resource { "primary_access_key": { Type: pluginsdk.TypeString, Computed: true, - Sensitive: features.FourPointOhBeta(), + Sensitive: true, }, "secondary_access_key": { Type: pluginsdk.TypeString, Computed: true, - Sensitive: features.FourPointOhBeta(), + Sensitive: true, }, "primary_connection_string": { diff --git a/internal/services/notificationhub/notification_hub_namespace_resource.go b/internal/services/notificationhub/notification_hub_namespace_resource.go index 84673400f4ac..e53ba0f1ddba 100644 --- a/internal/services/notificationhub/notification_hub_namespace_resource.go +++ b/internal/services/notificationhub/notification_hub_namespace_resource.go @@ -18,7 +18,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/notificationhub/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -75,14 +74,14 @@ func resourceNotificationHubNamespace() *pluginsdk.Resource { "enabled": { Type: pluginsdk.TypeBool, Optional: true, - ForceNew: features.FourPointOhBeta(), + ForceNew: true, Default: true, }, "namespace_type": { Type: pluginsdk.TypeString, Required: true, - ForceNew: features.FourPointOhBeta(), + ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ string(namespaces.NamespaceTypeMessaging), string(namespaces.NamespaceTypeNotificationHub), diff --git a/internal/services/oracle/autonomous_database_char_set_data_source.go b/internal/services/oracle/autonomous_database_char_set_data_source.go new file mode 100644 index 000000000000..af16d74b4cde --- /dev/null +++ b/internal/services/oracle/autonomous_database_char_set_data_source.go @@ -0,0 +1,103 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/autonomousdatabasecharactersets" + + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type AdbsCharSetsDataSource struct{} + +type AdbsCharSetsModel struct { + AdbsCharSets []AdbsCharSetModel `tfschema:"character_sets"` + Location string `tfschema:"location"` +} + +type AdbsCharSetModel struct { + CharacterSet string `tfschema:"character_set"` +} + +func (d AdbsCharSetsDataSource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "location": commonschema.Location(), + } +} + +func (d AdbsCharSetsDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "character_sets": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "character_set": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + } +} + +func (d AdbsCharSetsDataSource) ModelObject() interface{} { + return &AdbsCharSetsModel{} +} + +func (d AdbsCharSetsDataSource) ResourceType() string { + return "azurerm_oracle_adbs_character_sets" +} + +func (d AdbsCharSetsDataSource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return autonomousdatabasecharactersets.ValidateAutonomousDatabaseCharacterSetID +} + +func (d AdbsCharSetsDataSource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Oracle.OracleClient.AutonomousDatabaseCharacterSets + subscriptionId := metadata.Client.Account.SubscriptionId + + state := AdbsCharSetsModel{ + AdbsCharSets: make([]AdbsCharSetModel, 0), + } + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id := autonomousdatabasecharactersets.NewLocationID(subscriptionId, state.Location) + + resp, err := client.ListByLocation(ctx, id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("%s was not found", id) + } + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + if model := resp.Model; model != nil { + for _, element := range *model { + if props := element.Properties; props != nil { + state.AdbsCharSets = append(state.AdbsCharSets, AdbsCharSetModel{ + CharacterSet: props.CharacterSet, + }) + } + } + } + + metadata.SetID(id) + + return metadata.Encode(&state) + }, + } +} diff --git a/internal/services/oracle/autonomous_database_char_set_data_source_test.go b/internal/services/oracle/autonomous_database_char_set_data_source_test.go new file mode 100644 index 000000000000..ec8cf489a990 --- /dev/null +++ b/internal/services/oracle/autonomous_database_char_set_data_source_test.go @@ -0,0 +1,38 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle_test + +import ( + "testing" + + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" +) + +type AdbsCharSetsDataSource struct{} + +func TestAdbsCharSetsDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_oracle_adbs_character_sets", "test") + r := AdbsCharSetsDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: r.basic(), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("character_sets.0.character_set").Exists(), + ), + }, + }) +} + +func (d AdbsCharSetsDataSource) basic() string { + return ` +provider "azurerm" { + features {} +} + +data "azurerm_oracle_adbs_character_sets" "test" { + location = "eastus" +} +` +} diff --git a/internal/services/oracle/autonomous_database_nchar_set_data_source.go b/internal/services/oracle/autonomous_database_nchar_set_data_source.go new file mode 100644 index 000000000000..7c017c17f283 --- /dev/null +++ b/internal/services/oracle/autonomous_database_nchar_set_data_source.go @@ -0,0 +1,104 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/autonomousdatabasenationalcharactersets" + + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type AdbsNCharSetsDataSource struct{} + +type AdbsNCharSetsModel struct { + AdbsCharSets []AdbsNCharSetModel `tfschema:"character_sets"` + Location string `tfschema:"location"` +} + +type AdbsNCharSetModel struct { + CharacterSet string `tfschema:"character_set"` +} + +func (d AdbsNCharSetsDataSource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "location": commonschema.Location(), + } +} + +func (d AdbsNCharSetsDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "character_sets": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "character_set": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + } +} + +func (d AdbsNCharSetsDataSource) ModelObject() interface{} { + return &AdbsNCharSetsModel{} +} + +func (d AdbsNCharSetsDataSource) ResourceType() string { + return "azurerm_oracle_adbs_national_character_sets" +} + +func (d AdbsNCharSetsDataSource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return autonomousdatabasenationalcharactersets.ValidateAutonomousDatabaseNationalCharacterSetID +} + +func (d AdbsNCharSetsDataSource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Oracle.OracleClient.AutonomousDatabaseNationalCharacterSets + subscriptionId := metadata.Client.Account.SubscriptionId + + state := AdbsNCharSetsModel{ + AdbsCharSets: make([]AdbsNCharSetModel, 0), + } + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id := autonomousdatabasenationalcharactersets.NewLocationID(subscriptionId, state.Location) + + resp, err := client.ListByLocation(ctx, id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("%s was not found", id) + } + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + if model := resp.Model; model != nil { + for _, element := range *model { + if element.Properties != nil { + properties := element.Properties + state.AdbsCharSets = append(state.AdbsCharSets, AdbsNCharSetModel{ + CharacterSet: properties.CharacterSet, + }) + } + } + } + + metadata.SetID(id) + + return metadata.Encode(&state) + }, + } +} diff --git a/internal/services/oracle/autonomous_database_nchar_set_data_source_test.go b/internal/services/oracle/autonomous_database_nchar_set_data_source_test.go new file mode 100644 index 000000000000..4ae429536654 --- /dev/null +++ b/internal/services/oracle/autonomous_database_nchar_set_data_source_test.go @@ -0,0 +1,38 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle_test + +import ( + "testing" + + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" +) + +type AdbsNCharSetsDataSource struct{} + +func TestAdbsNCharSetsDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_oracle_adbs_national_character_sets", "test") + r := AdbsNCharSetsDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: r.basic(), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("character_sets.0.character_set").Exists(), + ), + }, + }) +} + +func (d AdbsNCharSetsDataSource) basic() string { + return ` +provider "azurerm" { + features {} +} + +data "azurerm_oracle_adbs_national_character_sets" "test" { + location = "eastus" +} +` +} diff --git a/internal/services/oracle/autonomous_database_regular_resource.go b/internal/services/oracle/autonomous_database_regular_resource.go index 13f96d515fb3..211002696c52 100644 --- a/internal/services/oracle/autonomous_database_regular_resource.go +++ b/internal/services/oracle/autonomous_database_regular_resource.go @@ -269,7 +269,6 @@ func (r AutonomousDatabaseRegularResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Oracle.OracleClient.AutonomousDatabases id, err := autonomousdatabases.ParseAutonomousDatabaseID(metadata.ResourceData.Id()) if err != nil { @@ -392,7 +391,7 @@ func (AutonomousDatabaseRegularResource) IDValidationFunc() pluginsdk.SchemaVali } func expandAdbsCustomerContacts(customerContactsList []string) []autonomousdatabases.CustomerContact { - var customerContacts []autonomousdatabases.CustomerContact + customerContacts := make([]autonomousdatabases.CustomerContact, 0, len(customerContactsList)) for _, customerContact := range customerContactsList { customerContacts = append(customerContacts, autonomousdatabases.CustomerContact{ Email: customerContact, diff --git a/internal/services/oracle/cloud_vm_cluster_resource.go b/internal/services/oracle/cloud_vm_cluster_resource.go index 15404572bf87..ce841101f858 100644 --- a/internal/services/oracle/cloud_vm_cluster_resource.go +++ b/internal/services/oracle/cloud_vm_cluster_resource.go @@ -53,9 +53,14 @@ type CloudVmClusterResourceModel struct { ClusterName string `tfschema:"cluster_name"` DataCollectionOptions []DataCollectionOptionsModel `tfschema:"data_collection_options"` DataStoragePercentage int64 `tfschema:"data_storage_percentage"` + Domain string `tfschema:"domain"` IsLocalBackupEnabled bool `tfschema:"local_backup_enabled"` IsSparseDiskgroupEnabled bool `tfschema:"sparse_diskgroup_enabled"` + Ocid string `tfschema:"ocid"` + ScanListenerPortTcp int64 `tfschema:"scan_listener_port_tcp"` + ScanListenerPortTcpSsl int64 `tfschema:"scan_listener_port_tcp_ssl"` TimeZone string `tfschema:"time_zone"` + ZoneId string `tfschema:"zone_id"` } func (CloudVmClusterResource) Arguments() map[string]*pluginsdk.Schema { @@ -222,6 +227,13 @@ func (CloudVmClusterResource) Arguments() map[string]*pluginsdk.Schema { ValidateFunc: validate.DataStoragePercentage, }, + "domain": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "local_backup_enabled": { Type: pluginsdk.TypeBool, Optional: true, @@ -236,6 +248,22 @@ func (CloudVmClusterResource) Arguments() map[string]*pluginsdk.Schema { ForceNew: true, }, + "scan_listener_port_tcp": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 1521, + ForceNew: true, + ValidateFunc: validation.IntBetween(1024, 8999), + }, + + "scan_listener_port_tcp_ssl": { + Type: pluginsdk.TypeInt, + Optional: true, + Default: 2484, + ForceNew: true, + ValidateFunc: validation.IntBetween(1024, 8999), + }, + "time_zone": { Type: pluginsdk.TypeString, Optional: true, @@ -243,6 +271,13 @@ func (CloudVmClusterResource) Arguments() map[string]*pluginsdk.Schema { ForceNew: true, }, + "zone_id": { + Type: pluginsdk.TypeString, + Optional: true, + Computed: true, + ForceNew: true, + }, + "tags": commonschema.Tags(), } } @@ -253,6 +288,11 @@ func (CloudVmClusterResource) Attributes() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeString, Computed: true, }, + + "ocid": { + Type: pluginsdk.TypeString, + Computed: true, + }, } } @@ -312,15 +352,27 @@ func (r CloudVmClusterResource) Create() sdk.ResourceFunc { if model.ClusterName != "" { param.Properties.ClusterName = pointer.To(model.ClusterName) } - if model.DataCollectionOptions != nil && len(model.DataCollectionOptions) > 0 { + if len(model.DataCollectionOptions) > 0 { param.Properties.DataCollectionOptions = &cloudvmclusters.DataCollectionOptions{ IsDiagnosticsEventsEnabled: pointer.To(model.DataCollectionOptions[0].IsDiagnosticsEventsEnabled), IsHealthMonitoringEnabled: pointer.To(model.DataCollectionOptions[0].IsHealthMonitoringEnabled), IsIncidentLogsEnabled: pointer.To(model.DataCollectionOptions[0].IsIncidentLogsEnabled), } } + if model.Domain != "" { + param.Properties.Domain = pointer.To(model.Domain) + } + if model.ScanListenerPortTcp >= 1024 && model.ScanListenerPortTcp <= 8999 { + param.Properties.ScanListenerPortTcp = pointer.To(model.ScanListenerPortTcp) + } + if model.ScanListenerPortTcpSsl >= 1024 && model.ScanListenerPortTcpSsl <= 8999 { + param.Properties.ScanListenerPortTcpSsl = pointer.To(model.ScanListenerPortTcpSsl) + } if model.TimeZone != "" { - param.Properties.ClusterName = pointer.To(model.TimeZone) + param.Properties.TimeZone = pointer.To(model.TimeZone) + } + if model.ZoneId != "" { + param.Properties.ZoneId = pointer.To(model.ZoneId) } if model.DataStoragePercentage != 0 { param.Properties.DataStoragePercentage = pointer.To(model.DataStoragePercentage) @@ -351,7 +403,6 @@ func (r CloudVmClusterResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Oracle.OracleClient.CloudVMClusters id, err := cloudvmclusters.ParseCloudVMClusterID(metadata.ResourceData.Id()) if err != nil { @@ -437,9 +488,14 @@ func (CloudVmClusterResource) Read() sdk.ResourceFunc { state.ClusterName = pointer.From(props.ClusterName) state.DataCollectionOptions = FlattenDataCollectionOptions(props.DataCollectionOptions) state.DataStoragePercentage = pointer.From(props.DataStoragePercentage) + state.Domain = pointer.From(props.Domain) + state.Ocid = pointer.From(props.Ocid) state.IsLocalBackupEnabled = pointer.From(props.IsLocalBackupEnabled) state.IsSparseDiskgroupEnabled = pointer.From(props.IsSparseDiskgroupEnabled) + state.ScanListenerPortTcp = pointer.From(props.ScanListenerPortTcp) + state.ScanListenerPortTcpSsl = pointer.From(props.ScanListenerPortTcpSsl) state.TimeZone = pointer.From(props.TimeZone) + state.ZoneId = pointer.From(props.ZoneId) } } diff --git a/internal/services/oracle/cloud_vm_cluster_resource_test.go b/internal/services/oracle/cloud_vm_cluster_resource_test.go index b54a72865c96..e89b04b476aa 100644 --- a/internal/services/oracle/cloud_vm_cluster_resource_test.go +++ b/internal/services/oracle/cloud_vm_cluster_resource_test.go @@ -134,6 +134,7 @@ resource "azurerm_oracle_cloud_vm_cluster" "test" { db_node_storage_size_in_gbs = 120 db_servers = [for obj in data.azurerm_oracle_db_servers.test.db_servers : obj.ocid] display_name = "OFakeVmacctest%[2]d" + domain = "ociofakeacctes.com" gi_version = "23.0.0.0" local_backup_enabled = true sparse_diskgroup_enabled = true @@ -142,10 +143,13 @@ resource "azurerm_oracle_cloud_vm_cluster" "test" { hostname = "hostname" ssh_public_keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+wWK73dCr+jgQOAxNsHAnNNNMEMWOHYEccp6wJm2gotpr9katuF/ZAdou5AaW1C61slRkHRkpRRX9FA9CYBiitZgvCCz+3nWNN7l/Up54Zps/pHWGZLHNJZRYyAB6j5yVLMVHIHriY49d/GZTZVNB8GoJv9Gakwc/fuEZYYl4YDFiGMBP///TzlI4jhiJzjKnEvqPFki5p2ZRJqcbCiF4pJrxUQR/RXqVFQdbRLZgYfJ8xGB878RENq3yQ39d8dVOkq4edbkzwcUmwwwkYVPIoDGsYLaRHnG+To7FvMeyO7xDVQkMKzopTQV8AuKpyvpqu0a9pWOMaiCyDytO7GGN you@me.com"] subnet_id = azurerm_subnet.virtual_network_subnet.id + scan_listener_port_tcp = 1521 + scan_listener_port_tcp_ssl = 2484 tags = { test = "testTag1" } time_zone = "UTC" + zone_id = "ocid1.dns-zone.oc1.iad.aaaaaaaac7lyw74bnybmlek7nrsd5h3v5kjfv3aiw62menpuuwoder7yhmpa" virtual_network_id = azurerm_virtual_network.virtual_network.id }`, a.template(data), data.RandomInteger, data.Locations.Primary) } diff --git a/internal/services/oracle/db_nodes_data_source.go b/internal/services/oracle/db_nodes_data_source.go new file mode 100644 index 000000000000..b7d1f44246f0 --- /dev/null +++ b/internal/services/oracle/db_nodes_data_source.go @@ -0,0 +1,259 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/cloudvmclusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/dbnodes" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type DBNodesDataSource struct{} + +type DBNodesDataModel struct { + CloudVmClusterId string `tfschema:"cloud_vm_cluster_id"` + DBNodes []DBNodeDataModel `tfschema:"db_nodes"` +} + +type DBNodeDataModel struct { + AdditionalDetails string `tfschema:"additional_details"` + BackupIPId string `tfschema:"backup_ip_id"` + BackupVnic2Id string `tfschema:"backup_vnic_2_id"` + BackupVnicId string `tfschema:"backup_vnic_id"` + CpuCoreCount int64 `tfschema:"cpu_core_count"` + DbNodeStorageSizeInGbs int64 `tfschema:"db_node_storage_size_in_gbs"` + DbServerId string `tfschema:"db_server_id"` + DbSystemId string `tfschema:"db_system_id"` + FaultDomain string `tfschema:"fault_domain"` + HostIPId string `tfschema:"host_ip_id"` + Hostname string `tfschema:"hostname"` + LifecycleDetails string `tfschema:"lifecycle_details"` + LifecycleState string `tfschema:"lifecycle_state"` + MaintenanceType string `tfschema:"maintenance_type"` + MemorySizeInGbs int64 `tfschema:"memory_size_in_gbs"` + Ocid string `tfschema:"ocid"` + SoftwareStorageSizeInGb int64 `tfschema:"software_storage_size_in_gb"` + TimeCreated string `tfschema:"time_created"` + TimeMaintenanceWindowEnd string `tfschema:"time_maintenance_window_end"` + TimeMaintenanceWindowStart string `tfschema:"time_maintenance_window_start"` + Vnic2Id string `tfschema:"vnic_2_id"` + VnicId string `tfschema:"vnic_id"` +} + +func (d DBNodesDataSource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "cloud_vm_cluster_id": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: cloudvmclusters.ValidateCloudVMClusterID, + }, + } +} + +func (d DBNodesDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "db_nodes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "additional_details": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "backup_ip_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "backup_vnic_2_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "backup_vnic_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "cpu_core_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "db_node_storage_size_in_gbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "db_server_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "db_system_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "fault_domain": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "host_ip_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "hostname": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "lifecycle_details": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "lifecycle_state": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "maintenance_type": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "memory_size_in_gbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "ocid": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "software_storage_size_in_gb": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + + "time_created": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "time_maintenance_window_end": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "time_maintenance_window_start": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "vnic_2_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + + "vnic_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + } +} + +func (d DBNodesDataSource) ModelObject() interface{} { + return &DBNodesDataModel{} +} + +func (d DBNodesDataSource) ResourceType() string { + return "azurerm_oracle_db_nodes" +} + +func (d DBNodesDataSource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return dbnodes.ValidateDbNodeID +} + +func (d DBNodesDataSource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Oracle.OracleClient.DbNodes + subscriptionId := metadata.Client.Account.SubscriptionId + + state := DBNodesDataModel{ + DBNodes: make([]DBNodeDataModel, 0), + } + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + parsedCloudVmClusterId, err := cloudvmclusters.ParseCloudVMClusterID(state.CloudVmClusterId) + if err != nil { + return fmt.Errorf("decoding id: %+v", err) + } + id := dbnodes.NewCloudVMClusterID(subscriptionId, parsedCloudVmClusterId.ResourceGroupName, parsedCloudVmClusterId.CloudVmClusterName) + + resp, err := client.ListByCloudVMCluster(ctx, id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("%s was not found", id) + } + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + if model := resp.Model; model != nil { + for _, element := range *model { + if props := element.Properties; props != nil { + dbNode := DBNodeDataModel{ + AdditionalDetails: pointer.From(props.AdditionalDetails), + BackupIPId: pointer.From(props.BackupIPId), + BackupVnicId: pointer.From(props.BackupVnicId), + BackupVnic2Id: pointer.From(props.BackupVnic2Id), + CpuCoreCount: pointer.From(props.CpuCoreCount), + DbNodeStorageSizeInGbs: pointer.From(props.DbNodeStorageSizeInGbs), + DbServerId: pointer.From(props.DbServerId), + DbSystemId: props.DbSystemId, + FaultDomain: pointer.From(props.FaultDomain), + HostIPId: pointer.From(props.HostIPId), + Hostname: pointer.From(props.Hostname), + LifecycleDetails: pointer.From(props.LifecycleDetails), + LifecycleState: string(props.LifecycleState), + MaintenanceType: string(pointer.From(props.MaintenanceType)), + MemorySizeInGbs: pointer.From(props.MemorySizeInGbs), + Ocid: props.Ocid, + SoftwareStorageSizeInGb: pointer.From(props.SoftwareStorageSizeInGb), + TimeCreated: props.TimeCreated, + TimeMaintenanceWindowEnd: pointer.From(props.TimeMaintenanceWindowEnd), + TimeMaintenanceWindowStart: pointer.From(props.TimeMaintenanceWindowStart), + VnicId: props.VnicId, + Vnic2Id: pointer.From(props.Vnic2Id), + } + state.DBNodes = append(state.DBNodes, dbNode) + } + } + } + + metadata.SetID(id) + + return metadata.Encode(&state) + }, + } +} diff --git a/internal/services/oracle/db_nodes_data_source_test.go b/internal/services/oracle/db_nodes_data_source_test.go new file mode 100644 index 000000000000..2d2e99a4cecd --- /dev/null +++ b/internal/services/oracle/db_nodes_data_source_test.go @@ -0,0 +1,37 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle_test + +import ( + "fmt" + "testing" + + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" +) + +type DBNodesDataSource struct{} + +func TestDBNodesDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_oracle_db_nodes", "test") + r := DBNodesDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("db_nodes.0.cpu_core_count").Exists(), + ), + }, + }) +} + +func (d DBNodesDataSource) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +data "azurerm_oracle_db_nodes" "test" { + cloud_vm_cluster_id = azurerm_oracle_cloud_vm_cluster.test.id +} +`, CloudVmClusterResource{}.basic(data)) +} diff --git a/internal/services/oracle/db_servers_data_source.go b/internal/services/oracle/db_servers_data_source.go index 90df6584b2dd..110d64e6fa7c 100644 --- a/internal/services/oracle/db_servers_data_source.go +++ b/internal/services/oracle/db_servers_data_source.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/dbservers" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/oracle/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -49,8 +50,9 @@ func (d DBServersDataSource) Arguments() map[string]*pluginsdk.Schema { "resource_group_name": commonschema.ResourceGroupNameForDataSource(), "cloud_exadata_infrastructure_name": { - Type: pluginsdk.TypeString, - Required: true, + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validate.ExadataName, }, } } @@ -146,11 +148,6 @@ func (d DBServersDataSource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, - "provisioning_state": { - Type: pluginsdk.TypeString, - Computed: true, - }, - "shape": { Type: pluginsdk.TypeString, Computed: true, diff --git a/internal/services/oracle/db_system_shapes_data_source.go b/internal/services/oracle/db_system_shapes_data_source.go new file mode 100644 index 000000000000..7beaa811b3ee --- /dev/null +++ b/internal/services/oracle/db_system_shapes_data_source.go @@ -0,0 +1,217 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/dbsystemshapes" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type DbSystemShapesDataSource struct{} + +type DbSystemShapesModel struct { + DbSystemShapes []DbSystemShapeModel `tfschema:"db_system_shapes"` + Location string `tfschema:"location"` +} + +type DbSystemShapeModel struct { + AvailableCoreCount int64 `tfschema:"available_core_count"` + AvailableCoreCountPerNode int64 `tfschema:"available_core_count_per_node"` + AvailableDataStorageInTbs int64 `tfschema:"available_data_storage_in_tbs"` + AvailableDataStoragePerServerInTbs float64 `tfschema:"available_data_storage_per_server_in_tbs"` + AvailableDbNodePerNodeInGbs int64 `tfschema:"available_db_node_per_node_in_gbs"` + AvailableDbNodeStorageInGbs int64 `tfschema:"available_db_node_storage_in_gbs"` + AvailableMemoryInGbs int64 `tfschema:"available_memory_in_gbs"` + AvailableMemoryPerNodeInGbs int64 `tfschema:"available_memory_per_node_in_gbs"` + CoreCountIncrement int64 `tfschema:"core_count_increment"` + MaxStorageCount int64 `tfschema:"maximum_storage_count"` + MaximumNodeCount int64 `tfschema:"maximum_node_count"` + MinCoreCountPerNode int64 `tfschema:"minimum_core_count_per_node"` + MinDataStorageInTbs int64 `tfschema:"minimum_data_storage_in_tbs"` + MinDbNodeStoragePerNodeInGbs int64 `tfschema:"minimum_db_node_storage_per_node_in_gbs"` + MinMemoryPerNodeInGbs int64 `tfschema:"minimum_memory_per_node_in_gbs"` + MinStorageCount int64 `tfschema:"minimum_storage_count"` + MinimumCoreCount int64 `tfschema:"minimum_core_count"` + MinimumNodeCount int64 `tfschema:"minimum_node_count"` + RuntimeMinimumCoreCount int64 `tfschema:"runtime_minimum_core_count"` + ShapeFamily string `tfschema:"shape_family"` +} + +func (d DbSystemShapesDataSource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "location": commonschema.Location(), + } +} + +func (d DbSystemShapesDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "db_system_shapes": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "available_core_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "available_core_count_per_node": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "available_data_storage_in_tbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "available_data_storage_per_server_in_tbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "available_db_node_per_node_in_gbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "available_db_node_storage_in_gbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "available_memory_in_gbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "available_memory_per_node_in_gbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "core_count_increment": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "maximum_storage_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "maximum_node_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "minimum_core_count_per_node": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "minimum_data_storage_in_tbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "minimum_db_node_storage_per_node_in_gbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "minimum_memory_per_node_in_gbs": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "minimum_storage_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "minimum_core_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "minimum_node_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "runtime_minimum_core_count": { + Type: pluginsdk.TypeInt, + Computed: true, + }, + "shape_family": { + Type: pluginsdk.TypeString, + Computed: true, + }, + }, + }, + }, + } +} + +func (d DbSystemShapesDataSource) ModelObject() interface{} { + return &DbSystemShapesModel{} +} + +func (d DbSystemShapesDataSource) ResourceType() string { + return "azurerm_oracle_db_system_shapes" +} + +func (d DbSystemShapesDataSource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return dbsystemshapes.ValidateDbSystemShapeID +} + +func (d DbSystemShapesDataSource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Oracle.OracleClient.DbSystemShapes + subscriptionId := metadata.Client.Account.SubscriptionId + + state := DbSystemShapesModel{ + DbSystemShapes: make([]DbSystemShapeModel, 0), + } + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id := dbsystemshapes.NewLocationID(subscriptionId, state.Location) + + resp, err := client.ListByLocation(ctx, id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("%s was not found", id) + } + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + if model := resp.Model; model != nil { + for _, element := range *model { + if props := element.Properties; props != nil { + state.DbSystemShapes = append(state.DbSystemShapes, DbSystemShapeModel{ + AvailableCoreCount: props.AvailableCoreCount, + AvailableCoreCountPerNode: pointer.From(props.AvailableCoreCountPerNode), + AvailableDataStorageInTbs: pointer.From(props.AvailableDataStorageInTbs), + AvailableDataStoragePerServerInTbs: pointer.From(props.AvailableDataStoragePerServerInTbs), + AvailableDbNodePerNodeInGbs: pointer.From(props.AvailableDbNodePerNodeInGbs), + AvailableDbNodeStorageInGbs: pointer.From(props.AvailableDbNodeStorageInGbs), + AvailableMemoryInGbs: pointer.From(props.AvailableMemoryInGbs), + AvailableMemoryPerNodeInGbs: pointer.From(props.AvailableMemoryPerNodeInGbs), + CoreCountIncrement: pointer.From(props.CoreCountIncrement), + MaxStorageCount: pointer.From(props.MaxStorageCount), + MaximumNodeCount: pointer.From(props.MaximumNodeCount), + MinCoreCountPerNode: pointer.From(props.MinCoreCountPerNode), + MinDataStorageInTbs: pointer.From(props.MinDataStorageInTbs), + MinDbNodeStoragePerNodeInGbs: pointer.From(props.MinDbNodeStoragePerNodeInGbs), + MinMemoryPerNodeInGbs: pointer.From(props.MinMemoryPerNodeInGbs), + MinStorageCount: pointer.From(props.MinStorageCount), + MinimumCoreCount: pointer.From(props.MinimumCoreCount), + MinimumNodeCount: pointer.From(props.MinimumNodeCount), + RuntimeMinimumCoreCount: pointer.From(props.RuntimeMinimumCoreCount), + ShapeFamily: pointer.From(props.ShapeFamily), + }) + } + } + } + + metadata.SetID(id) + + return metadata.Encode(&state) + }, + } +} diff --git a/internal/services/oracle/db_system_shapes_data_source_test.go b/internal/services/oracle/db_system_shapes_data_source_test.go new file mode 100644 index 000000000000..81a827b27340 --- /dev/null +++ b/internal/services/oracle/db_system_shapes_data_source_test.go @@ -0,0 +1,38 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle_test + +import ( + "testing" + + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" +) + +type DbSystemShapesDataSource struct{} + +func TestDbSystemShapesDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_oracle_db_system_shapes", "test") + r := DbSystemShapesDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: r.basic(), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("db_system_shapes.0.available_core_count").Exists(), + ), + }, + }) +} + +func (d DbSystemShapesDataSource) basic() string { + return ` +provider "azurerm" { + features {} +} + +data "azurerm_oracle_db_system_shapes" "test" { + location = "eastus" +} +` +} diff --git a/internal/services/oracle/exadata_infrastructure_data_source.go b/internal/services/oracle/exadata_infrastructure_data_source.go index 1fcc70e65028..562649094539 100644 --- a/internal/services/oracle/exadata_infrastructure_data_source.go +++ b/internal/services/oracle/exadata_infrastructure_data_source.go @@ -434,7 +434,6 @@ func FlattenEstimatedPatchingTimes(estimatedPatchingTime *cloudexadatainfrastruc estimatedPatchingTimes := make([]EstimatedPatchingTimeModel, 0) if estimatedPatchingTime != nil { return append(estimatedPatchingTimes, EstimatedPatchingTimeModel{ - EstimatedDbServerPatchingTime: pointer.From(estimatedPatchingTime.EstimatedDbServerPatchingTime), EstimatedNetworkSwitchesPatchingTime: pointer.From(estimatedPatchingTime.EstimatedNetworkSwitchesPatchingTime), EstimatedStorageServerPatchingTime: pointer.From(estimatedPatchingTime.EstimatedStorageServerPatchingTime), diff --git a/internal/services/oracle/exadata_infrastructure_resource.go b/internal/services/oracle/exadata_infrastructure_resource.go index c756b2f50cd0..626d429607a7 100644 --- a/internal/services/oracle/exadata_infrastructure_resource.go +++ b/internal/services/oracle/exadata_infrastructure_resource.go @@ -254,7 +254,6 @@ func (r ExadataInfraResource) Update() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { - client := metadata.Client.Oracle.OracleClient.CloudExadataInfrastructures id, err := cloudexadatainfrastructures.ParseCloudExadataInfrastructureID(metadata.ResourceData.Id()) if err != nil { @@ -358,7 +357,7 @@ func (ExadataInfraResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { } func ExpandCustomerContacts(customerContactsList []string) []cloudexadatainfrastructures.CustomerContact { - var customerContacts []cloudexadatainfrastructures.CustomerContact + customerContacts := make([]cloudexadatainfrastructures.CustomerContact, 0, len(customerContactsList)) for _, customerContact := range customerContactsList { customerContacts = append(customerContacts, cloudexadatainfrastructures.CustomerContact{ Email: customerContact, @@ -368,7 +367,7 @@ func ExpandCustomerContacts(customerContactsList []string) []cloudexadatainfrast } func ExpandDayOfWeekTo(daysOfWeek []string) []cloudexadatainfrastructures.DayOfWeek { - var daysOfWeekConverted []cloudexadatainfrastructures.DayOfWeek + daysOfWeekConverted := make([]cloudexadatainfrastructures.DayOfWeek, 0, len(daysOfWeek)) for _, day := range daysOfWeek { daysOfWeekConverted = append(daysOfWeekConverted, cloudexadatainfrastructures.DayOfWeek{ Name: cloudexadatainfrastructures.DayOfWeekName(day), @@ -378,7 +377,7 @@ func ExpandDayOfWeekTo(daysOfWeek []string) []cloudexadatainfrastructures.DayOfW } func ExpandMonths(months []string) []cloudexadatainfrastructures.Month { - var monthsConverted []cloudexadatainfrastructures.Month + monthsConverted := make([]cloudexadatainfrastructures.Month, 0, len(months)) for _, month := range months { monthsConverted = append(monthsConverted, cloudexadatainfrastructures.Month{ Name: cloudexadatainfrastructures.MonthName(month), diff --git a/internal/services/oracle/gi_versions_data_source.go b/internal/services/oracle/gi_versions_data_source.go new file mode 100644 index 000000000000..879872b80487 --- /dev/null +++ b/internal/services/oracle/gi_versions_data_source.go @@ -0,0 +1,90 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" + "github.com/hashicorp/go-azure-sdk/resource-manager/oracledatabase/2024-06-01/giversions" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type GiVersionsDataSource struct{} + +type GiVersionsModel struct { + Versions []string `tfschema:"versions"` + Location string `tfschema:"location"` +} + +func (d GiVersionsDataSource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "location": commonschema.Location(), + } +} + +func (d GiVersionsDataSource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "versions": { + Type: pluginsdk.TypeList, + Computed: true, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + } +} + +func (d GiVersionsDataSource) ModelObject() interface{} { + return &GiVersionsModel{} +} + +func (d GiVersionsDataSource) ResourceType() string { + return "azurerm_oracle_gi_versions" +} + +func (d GiVersionsDataSource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return giversions.ValidateGiVersionID +} + +func (d GiVersionsDataSource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + client := metadata.Client.Oracle.OracleClient.GiVersions + subscriptionId := metadata.Client.Account.SubscriptionId + + var state GiVersionsModel + if err := metadata.Decode(&state); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id := giversions.NewLocationID(subscriptionId, + state.Location) + + resp, err := client.ListByLocation(ctx, id) + if err != nil { + if response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("%s was not found", id) + } + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + if model := resp.Model; model != nil { + for _, element := range *model { + if props := element.Properties; props != nil { + state.Versions = append(state.Versions, props.Version) + } + } + } + + metadata.SetID(id) + + return metadata.Encode(&state) + }, + } +} diff --git a/internal/services/oracle/gi_versions_data_source_test.go b/internal/services/oracle/gi_versions_data_source_test.go new file mode 100644 index 000000000000..ba6f5ac293fb --- /dev/null +++ b/internal/services/oracle/gi_versions_data_source_test.go @@ -0,0 +1,38 @@ +// Copyright © 2024, Oracle and/or its affiliates. All rights reserved + +package oracle_test + +import ( + "testing" + + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" +) + +type GiVersionsDataSource struct{} + +func TestGiVersionsDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_oracle_gi_versions", "test") + r := GiVersionsDataSource{} + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: r.basic(), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("versions.#").HasValue("2"), + ), + }, + }) +} + +func (d GiVersionsDataSource) basic() string { + return ` +provider "azurerm" { + features {} +} + +data "azurerm_oracle_gi_versions" "test" { + location = "eastus" +} +` +} diff --git a/internal/services/oracle/registration.go b/internal/services/oracle/registration.go index 051e16f60890..cca98a83601f 100644 --- a/internal/services/oracle/registration.go +++ b/internal/services/oracle/registration.go @@ -8,16 +8,19 @@ import ( type Registration struct{} -var ( - _ sdk.TypedServiceRegistration = Registration{} -) +var _ sdk.TypedServiceRegistration = Registration{} func (r Registration) DataSources() []sdk.DataSource { return []sdk.DataSource{ + AdbsCharSetsDataSource{}, + AdbsNCharSetsDataSource{}, AutonomousDatabaseRegularDataSource{}, CloudVmClusterDataSource{}, + DBNodesDataSource{}, DBServersDataSource{}, + DbSystemShapesDataSource{}, ExadataInfraDataSource{}, + GiVersionsDataSource{}, } } diff --git a/internal/services/oracle/validate/autonomous_database_regular.go b/internal/services/oracle/validate/autonomous_database_regular.go index 16abe30266c0..845578af1cb2 100644 --- a/internal/services/oracle/validate/autonomous_database_regular.go +++ b/internal/services/oracle/validate/autonomous_database_regular.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package validate import ( @@ -13,41 +16,35 @@ import ( func AutonomousDatabaseName(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(string) if !ok { - errors = append(errors, fmt.Errorf("expected type of %s to be string", k)) - return + return []string{}, append(errors, fmt.Errorf("expected type of %s to be string", k)) } firstChar, _ := utf8.DecodeRuneInString(v) if !unicode.IsLetter(firstChar) { - errors = append(errors, fmt.Errorf("%v must start with a letter", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must start with a letter", k)) } for _, r := range v { if !unicode.IsLetter(r) && !unicode.IsNumber(r) { - errors = append(errors, fmt.Errorf("%v must contain only letters and numbers", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must contain only letters and numbers", k)) } } if len(v) > 30 { - errors = append(errors, fmt.Errorf("%v must be 30 characers max", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must be 30 characers max", k)) } - return + return []string{}, []error{} } func AutonomousDatabasePassword(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(string) if !ok { - errors = append(errors, fmt.Errorf("expected type of %s to be string", k)) - return + return []string{}, append(errors, fmt.Errorf("expected type of %s to be string", k)) } if len(v) < 12 || len(v) > 30 { - errors = append(errors, fmt.Errorf("%v must be 12 to 30 characters", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must be 12 to 30 characters", k)) } hasUpper := false @@ -69,57 +66,46 @@ func AutonomousDatabasePassword(i interface{}, k string) (warnings []string, err } } if hasDoubleQuote { - errors = append(errors, fmt.Errorf("%v must not contain the double quote (\") character", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must not contain the double quote (\") character", k)) } if !hasUpper { - errors = append(errors, fmt.Errorf("%v must contain at least one uppercase letter", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must contain at least one uppercase letter", k)) } if !hasLower { - errors = append(errors, fmt.Errorf("%v must contain at least one lowercase letter", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must contain at least one lowercase letter", k)) } if !hasNumber { - errors = append(errors, fmt.Errorf("%v must contain at least one number", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must contain at least one number", k)) } if strings.Contains(v, "admin") { - errors = append(errors, fmt.Errorf("%v must not contain the username \"admin\"", k)) - return + return []string{}, append(errors, fmt.Errorf("%v must not contain the username \"admin\"", k)) } - return + return []string{}, []error{} } func CustomerContactEmail(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(string) if !ok { - errors = append(errors, fmt.Errorf("expected type of %s to be string", k)) - return + return []string{}, append(errors, fmt.Errorf("expected type of %s to be string", k)) } - _, err := mail.ParseAddress(v) - if err != nil { - errors = append(errors, fmt.Errorf("%v must be a valid email address", k)) - return + if _, err := mail.ParseAddress(v); err != nil { + return []string{}, append(errors, fmt.Errorf("%v must be a valid email address", k)) } - return warnings, errors + return []string{}, []error{} } func AdbsComputeModel(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(string) if !ok { - errors = append(errors, fmt.Errorf("expected type of %s to be string", k)) - return + return []string{}, append(errors, fmt.Errorf("expected type of %s to be string", k)) } if v != string(autonomousdatabases.ComputeModelECPU) && v != string(autonomousdatabases.ComputeModelOCPU) { - errors = append(errors, fmt.Errorf("%v must be %v or %v", k, - string(autonomousdatabases.ComputeModelECPU), string(autonomousdatabases.ComputeModelOCPU))) - return + return []string{}, append(errors, fmt.Errorf("%v must be %v or %v", k, string(autonomousdatabases.ComputeModelECPU), string(autonomousdatabases.ComputeModelOCPU))) } - return + return []string{}, []error{} } diff --git a/internal/services/orbital/helper.go b/internal/services/orbital/helper.go index ec9a7fc28bac..6a6e182f3edd 100644 --- a/internal/services/orbital/helper.go +++ b/internal/services/orbital/helper.go @@ -4,6 +4,7 @@ package orbital import ( + "errors" "fmt" "github.com/hashicorp/go-azure-helpers/lang/pointer" @@ -216,9 +217,10 @@ func SpacecraftLinkSchema() *pluginsdk.Schema { func expandSpacecraftLinks(input []SpacecraftLinkModel) ([]spacecraft.SpacecraftLink, error) { if len(input) == 0 { - return nil, fmt.Errorf("links should be defined") + return nil, errors.New("links should be defined") } - var spacecraftLink []spacecraft.SpacecraftLink + + spacecraftLink := make([]spacecraft.SpacecraftLink, 0, len(input)) for _, v := range input { link := spacecraft.SpacecraftLink{ BandwidthMHz: v.BandwidthMhz, @@ -238,7 +240,7 @@ func flattenSpacecraftLinks(input []spacecraft.SpacecraftLink) ([]SpacecraftLink return nil, fmt.Errorf("links are missing") } - var spacecraftLinkModel []SpacecraftLinkModel + spacecraftLinkModel := make([]SpacecraftLinkModel, 0, len(input)) for _, v := range input { linkModel := SpacecraftLinkModel{ BandwidthMhz: v.BandwidthMHz, @@ -255,10 +257,10 @@ func flattenSpacecraftLinks(input []spacecraft.SpacecraftLink) ([]SpacecraftLink func flattenContactProfileLinks(input []contactprofile.ContactProfileLink) ([]ContactProfileLinkModel, error) { if len(input) == 0 { - return nil, fmt.Errorf("links are missing") + return nil, errors.New("links are missing") } - var contactProfileLinkModel []ContactProfileLinkModel + contactProfileLinkModel := make([]ContactProfileLinkModel, 0, len(input)) for _, v := range input { linkModel := ContactProfileLinkModel{ Polarization: string(v.Polarization), @@ -278,10 +280,10 @@ func flattenContactProfileLinks(input []contactprofile.ContactProfileLink) ([]Co func flattenContactProfileChannel(input []contactprofile.ContactProfileLinkChannel) ([]ContactProfileChannelModel, error) { if len(input) == 0 { - return nil, fmt.Errorf("channels are missing") + return nil, errors.New("channels are missing") } - var contactProfileChannelModel []ContactProfileChannelModel + contactProfileChannelModel := make([]ContactProfileChannelModel, 0, len(input)) for _, v := range input { channelModel := ContactProfileChannelModel{ BandwidthMhz: v.BandwidthMHz, @@ -306,10 +308,10 @@ func flattenContactProfileChannel(input []contactprofile.ContactProfileLinkChann func expandContactProfileLinks(input []ContactProfileLinkModel) ([]contactprofile.ContactProfileLink, error) { if len(input) == 0 { - return nil, fmt.Errorf("links should be defined") + return nil, errors.New("links should be defined") } - var contactProfileLink []contactprofile.ContactProfileLink + contactProfileLink := make([]contactprofile.ContactProfileLink, 0, len(input)) for _, v := range input { link := contactprofile.ContactProfileLink{ Direction: contactprofile.Direction(v.Direction), @@ -329,10 +331,10 @@ func expandContactProfileLinks(input []ContactProfileLinkModel) ([]contactprofil func expandContactProfileChannel(input []ContactProfileChannelModel) ([]contactprofile.ContactProfileLinkChannel, error) { if len(input) == 0 { - return nil, fmt.Errorf("contact profile channel should be defined") + return nil, errors.New("contact profile channel should be defined") } - var contactProfileChannel []contactprofile.ContactProfileLinkChannel + contactProfileChannel := make([]contactprofile.ContactProfileLinkChannel, 0, len(input)) for _, v := range input { channel := contactprofile.ContactProfileLinkChannel{ BandwidthMHz: v.BandwidthMhz, @@ -355,7 +357,7 @@ func expandContactProfileChannel(input []ContactProfileChannelModel) ([]contactp func expandEndPoint(input []EndPointModel) ([]contactprofile.EndPoint, error) { if len(input) == 0 { - return nil, fmt.Errorf("end point should be defined") + return nil, errors.New("end point should be defined") } v := input[0] diff --git a/internal/services/paloalto/local_rulestack_rule_resource.go b/internal/services/paloalto/local_rulestack_rule_resource.go index 445b282b2e1c..44620793a5ea 100644 --- a/internal/services/paloalto/local_rulestack_rule_resource.go +++ b/internal/services/paloalto/local_rulestack_rule_resource.go @@ -16,7 +16,6 @@ import ( certificates "github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack" "github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules" "github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/paloalto/schema" @@ -153,39 +152,7 @@ func (r LocalRuleStackRule) Arguments() map[string]*pluginsdk.Schema { Default: true, }, - "source": schema.SourceSchema(), - - "tags": commonschema.Tags(), - } - - if !features.FourPointOhBeta() { - schema["protocol"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Default: protocolApplicationDefault, - ValidateFunc: validation.Any( - validate.ProtocolWithPort, - validation.StringInSlice([]string{protocolApplicationDefault}, false), - ), - ConflictsWith: []string{"protocol_ports"}, - // if `protocol_ports` is set, the default value should not be used - DiffSuppressFunc: func(k, old, new string, d *pluginsdk.ResourceData) bool { - return len(d.Get("protocol_ports").([]interface{})) > 0 && old == "" && new == protocolApplicationDefault - }, - } - - schema["protocol_ports"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - MinItems: 1, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validate.ProtocolWithPort, - }, - ConflictsWith: []string{"protocol"}, - } - } else { - schema["protocol"] = &pluginsdk.Schema{ + "protocol": { Type: pluginsdk.TypeString, Optional: true, ValidateFunc: validation.Any( @@ -193,9 +160,9 @@ func (r LocalRuleStackRule) Arguments() map[string]*pluginsdk.Schema { validation.StringInSlice([]string{protocolApplicationDefault}, false), ), ExactlyOneOf: []string{"protocol", "protocol_ports"}, - } + }, - schema["protocol_ports"] = &pluginsdk.Schema{ + "protocol_ports": { Type: pluginsdk.TypeList, Optional: true, MinItems: 1, @@ -204,8 +171,13 @@ func (r LocalRuleStackRule) Arguments() map[string]*pluginsdk.Schema { ValidateFunc: validate.ProtocolWithPort, }, ExactlyOneOf: []string{"protocol", "protocol_ports"}, - } + }, + + "source": schema.SourceSchema(), + + "tags": commonschema.Tags(), } + return schema } diff --git a/internal/services/paloalto/network_virtual_appliance_resource.go b/internal/services/paloalto/network_virtual_appliance_resource.go index 812a60cf4731..5712196f169b 100644 --- a/internal/services/paloalto/network_virtual_appliance_resource.go +++ b/internal/services/paloalto/network_virtual_appliance_resource.go @@ -11,8 +11,8 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network/validate" diff --git a/internal/services/paloalto/next_generation_firewall_vhub_local_rulestack_resource.go b/internal/services/paloalto/next_generation_firewall_vhub_local_rulestack_resource.go index ea6923b8cc84..46d7e6101cb6 100644 --- a/internal/services/paloalto/next_generation_firewall_vhub_local_rulestack_resource.go +++ b/internal/services/paloalto/next_generation_firewall_vhub_local_rulestack_resource.go @@ -87,7 +87,6 @@ func (r NextGenerationFirewallVHubLocalRuleStackResource) Create() sdk.ResourceF Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { client := metadata.Client.PaloAlto.PaloAltoClient_v2023_09_01.Firewalls localRuleStackClient := metadata.Client.PaloAlto.Client.LocalRulestacks - loc := "" var model NextGenerationFirewallVHubLocalRuleStackModel if err := metadata.Decode(&model); err != nil { @@ -116,7 +115,7 @@ func (r NextGenerationFirewallVHubLocalRuleStackResource) Create() sdk.ResourceF return fmt.Errorf("reading %s for %s: %+v", ruleStackID, id, err) } - loc = location.Normalize(ruleStack.Model.Location) + loc := location.Normalize(ruleStack.Model.Location) firewall := firewalls.FirewallResource{ Location: loc, diff --git a/internal/services/paloalto/next_generation_firewall_vhub_panorama_resource_test.go b/internal/services/paloalto/next_generation_firewall_vhub_panorama_resource_test.go index d0dd7eb39f17..fd78d49aee06 100644 --- a/internal/services/paloalto/next_generation_firewall_vhub_panorama_resource_test.go +++ b/internal/services/paloalto/next_generation_firewall_vhub_panorama_resource_test.go @@ -56,7 +56,6 @@ func TestAccPaloAltoNextGenerationFirewallVHubPanoramaResource_complete(t *testi }, data.ImportStep(), }) - } func TestAccPaloAltoNextGenerationFirewallVHubPanoramaResource_update(t *testing.T) { @@ -90,7 +89,6 @@ func TestAccPaloAltoNextGenerationFirewallVHubPanoramaResource_update(t *testing }, data.ImportStep(), }) - } func (r NextGenerationFirewallVHubPanoramaResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { diff --git a/internal/services/paloalto/next_generation_firewall_vnet_panorama_resource_test.go b/internal/services/paloalto/next_generation_firewall_vnet_panorama_resource_test.go index d7665ccb3069..5e9829b11485 100644 --- a/internal/services/paloalto/next_generation_firewall_vnet_panorama_resource_test.go +++ b/internal/services/paloalto/next_generation_firewall_vnet_panorama_resource_test.go @@ -37,7 +37,6 @@ func TestAccNextGenerationFirewallVNetPanoramaResource_basic(t *testing.T) { }, data.ImportStep(), }) - } func TestAccNextGenerationFirewallVNetPanoramaResource_complete(t *testing.T) { @@ -57,7 +56,6 @@ func TestAccNextGenerationFirewallVNetPanoramaResource_complete(t *testing.T) { }, data.ImportStep(), }) - } func TestAccNextGenerationFirewallVNetPanoramaResource_update(t *testing.T) { @@ -91,7 +89,6 @@ func TestAccNextGenerationFirewallVNetPanoramaResource_update(t *testing.T) { }, data.ImportStep(), }) - } func (r NextGenerationFirewallVNetPanoramaResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { diff --git a/internal/services/paloalto/registration.go b/internal/services/paloalto/registration.go index 99bfba1802f2..c4d18d497fcb 100644 --- a/internal/services/paloalto/registration.go +++ b/internal/services/paloalto/registration.go @@ -15,9 +15,7 @@ func (r Registration) AssociatedGitHubLabel() string { return "service/paloalto" } -var ( - _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} -) +var _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} func (r Registration) Name() string { return "Palo Alto" diff --git a/internal/services/paloalto/schema/network_profile.go b/internal/services/paloalto/schema/network_profile.go index 17eecabbe912..b614a72c24ea 100644 --- a/internal/services/paloalto/schema/network_profile.go +++ b/internal/services/paloalto/schema/network_profile.go @@ -391,7 +391,6 @@ func FlattenNetworkProfileVHub(input firewalls.NetworkProfile) (*NetworkProfileV result.TrustedRanges = trustedRanges if v := input.VwanConfiguration; v != nil { - result.VHubID = pointer.From(v.VHub.ResourceId) applianceID, err := networkvirtualappliances.ParseNetworkVirtualApplianceID(pointer.From(v.NetworkVirtualApplianceId)) if err != nil { diff --git a/internal/services/policy/assignment.go b/internal/services/policy/assignment.go index ec2319337f76..da125d95203d 100644 --- a/internal/services/policy/assignment.go +++ b/internal/services/policy/assignment.go @@ -43,7 +43,6 @@ func waitForPolicyAssignmentToStabilize(ctx context.Context, client *assignments } return nil, "0", fmt.Errorf("polling for %s: %+v", id, err) - } return resp, strconv.Itoa(resp.HttpResponse.StatusCode), nil diff --git a/internal/services/policy/assignment_resource_base.go b/internal/services/policy/assignment_resource_base.go index f88f877b6b33..f56be2daf565 100644 --- a/internal/services/policy/assignment_resource_base.go +++ b/internal/services/policy/assignment_resource_base.go @@ -640,7 +640,7 @@ func (br assignmentBaseResource) flattenOverrides(overrides *[]policyassignments return nil } - var res []interface{} + res := make([]interface{}, 0, len(*overrides)) for _, o := range *overrides { item := map[string]interface{}{ "value": pointer.From(o.Value), @@ -657,7 +657,7 @@ func (br assignmentBaseResource) flattenSelectors(selectors *[]policyassignments return nil } - var res []interface{} + res := make([]interface{}, 0, len(*selectors)) for _, s := range *selectors { item := map[string]interface{}{ "in": utils.FlattenStringSlice(s.In), @@ -675,9 +675,9 @@ func (br assignmentBaseResource) flattenResourceSelectors(selectors *[]policyass return nil } - var res []interface{} + res := make([]interface{}, 0, len(*selectors)) for _, v := range *selectors { - var item = map[string]interface{}{ + item := map[string]interface{}{ "name": pointer.From(v.Name), "selectors": br.flattenSelectors(v.Selectors), } diff --git a/internal/services/policy/parse/resource_group_assignment.go b/internal/services/policy/parse/resource_group_assignment.go index cdc852a686b5..6a5cce43e157 100644 --- a/internal/services/policy/parse/resource_group_assignment.go +++ b/internal/services/policy/parse/resource_group_assignment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ResourceGroupAssignmentID(input string) (*ResourceGroupAssignmentId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.PolicyAssignmentName, err = id.PopSegment("policyAssignments"); err != nil { diff --git a/internal/services/policy/parse/resource_group_assignment_test.go b/internal/services/policy/parse/resource_group_assignment_test.go index 34e2b77812d2..d80a0edd71f1 100644 --- a/internal/services/policy/parse/resource_group_assignment_test.go +++ b/internal/services/policy/parse/resource_group_assignment_test.go @@ -27,7 +27,6 @@ func TestResourceGroupAssignmentID(t *testing.T) { Error bool Expected *ResourceGroupAssignmentId }{ - { // empty Input: "", diff --git a/internal/services/policy/parse/resource_group_policy_exemption.go b/internal/services/policy/parse/resource_group_policy_exemption.go index ca26906984ba..13037519e103 100644 --- a/internal/services/policy/parse/resource_group_policy_exemption.go +++ b/internal/services/policy/parse/resource_group_policy_exemption.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ResourceGroupPolicyExemptionID(input string) (*ResourceGroupPolicyExemption } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.PolicyExemptionName, err = id.PopSegment("policyExemptions"); err != nil { diff --git a/internal/services/policy/parse/resource_group_policy_exemption_test.go b/internal/services/policy/parse/resource_group_policy_exemption_test.go index 623d0b3294ef..190f1e1e646f 100644 --- a/internal/services/policy/parse/resource_group_policy_exemption_test.go +++ b/internal/services/policy/parse/resource_group_policy_exemption_test.go @@ -27,7 +27,6 @@ func TestResourceGroupPolicyExemptionID(t *testing.T) { Error bool Expected *ResourceGroupPolicyExemptionId }{ - { // empty Input: "", diff --git a/internal/services/policy/parse/resource_group_policy_remediation.go b/internal/services/policy/parse/resource_group_policy_remediation.go index 2e2ec93fceb1..827e4e29a5ad 100644 --- a/internal/services/policy/parse/resource_group_policy_remediation.go +++ b/internal/services/policy/parse/resource_group_policy_remediation.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ResourceGroupPolicyRemediationID(input string) (*ResourceGroupPolicyRemedia } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.RemediationName, err = id.PopSegment("remediations"); err != nil { diff --git a/internal/services/policy/parse/resource_group_policy_remediation_test.go b/internal/services/policy/parse/resource_group_policy_remediation_test.go index dc4785977476..36060c23169f 100644 --- a/internal/services/policy/parse/resource_group_policy_remediation_test.go +++ b/internal/services/policy/parse/resource_group_policy_remediation_test.go @@ -27,7 +27,6 @@ func TestResourceGroupPolicyRemediationID(t *testing.T) { Error bool Expected *ResourceGroupPolicyRemediationId }{ - { // empty Input: "", diff --git a/internal/services/policy/parse/scope.go b/internal/services/policy/parse/scope.go index 5ad240d05718..b19ac45a2051 100644 --- a/internal/services/policy/parse/scope.go +++ b/internal/services/policy/parse/scope.go @@ -4,6 +4,7 @@ package parse import ( + "errors" "fmt" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" @@ -52,7 +53,7 @@ func (id ScopeAtManagementGroup) ScopeId() string { func PolicyScopeID(input string) (PolicyScopeId, error) { if input == "" { - return nil, fmt.Errorf("unable to parse Remediation Scope ID: ID is empty") + return nil, errors.New("unable to parse Remediation Scope ID: ID is empty") } if isManagementGroupId(input) { diff --git a/internal/services/policy/parse/subscription_assignment.go b/internal/services/policy/parse/subscription_assignment.go index e7fd37389ccb..bf4566613e95 100644 --- a/internal/services/policy/parse/subscription_assignment.go +++ b/internal/services/policy/parse/subscription_assignment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func SubscriptionAssignmentID(input string) (*SubscriptionAssignmentId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.PolicyAssignmentName, err = id.PopSegment("policyAssignments"); err != nil { diff --git a/internal/services/policy/parse/subscription_assignment_test.go b/internal/services/policy/parse/subscription_assignment_test.go index d31fd5f83297..2c5d88c58377 100644 --- a/internal/services/policy/parse/subscription_assignment_test.go +++ b/internal/services/policy/parse/subscription_assignment_test.go @@ -27,7 +27,6 @@ func TestSubscriptionAssignmentID(t *testing.T) { Error bool Expected *SubscriptionAssignmentId }{ - { // empty Input: "", diff --git a/internal/services/policy/parse/subscription_policy_exemption.go b/internal/services/policy/parse/subscription_policy_exemption.go index 64df5840dc09..7a86cc451b1c 100644 --- a/internal/services/policy/parse/subscription_policy_exemption.go +++ b/internal/services/policy/parse/subscription_policy_exemption.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func SubscriptionPolicyExemptionID(input string) (*SubscriptionPolicyExemptionId } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.PolicyExemptionName, err = id.PopSegment("policyExemptions"); err != nil { diff --git a/internal/services/policy/parse/subscription_policy_exemption_test.go b/internal/services/policy/parse/subscription_policy_exemption_test.go index 122ab85602bc..2cbde70c78e3 100644 --- a/internal/services/policy/parse/subscription_policy_exemption_test.go +++ b/internal/services/policy/parse/subscription_policy_exemption_test.go @@ -27,7 +27,6 @@ func TestSubscriptionPolicyExemptionID(t *testing.T) { Error bool Expected *SubscriptionPolicyExemptionId }{ - { // empty Input: "", diff --git a/internal/services/policy/parse/subscription_policy_remediation.go b/internal/services/policy/parse/subscription_policy_remediation.go index ed58e6e72086..d31a7f99cf3f 100644 --- a/internal/services/policy/parse/subscription_policy_remediation.go +++ b/internal/services/policy/parse/subscription_policy_remediation.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func SubscriptionPolicyRemediationID(input string) (*SubscriptionPolicyRemediati } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.RemediationName, err = id.PopSegment("remediations"); err != nil { diff --git a/internal/services/policy/parse/subscription_policy_remediation_test.go b/internal/services/policy/parse/subscription_policy_remediation_test.go index 464f7fd80b8b..89165c646593 100644 --- a/internal/services/policy/parse/subscription_policy_remediation_test.go +++ b/internal/services/policy/parse/subscription_policy_remediation_test.go @@ -27,7 +27,6 @@ func TestSubscriptionPolicyRemediationID(t *testing.T) { Error bool Expected *SubscriptionPolicyRemediationId }{ - { // empty Input: "", diff --git a/internal/services/policy/policy.go b/internal/services/policy/policy.go index f80c73d38be0..77aded0bf1fa 100644 --- a/internal/services/policy/policy.go +++ b/internal/services/policy/policy.go @@ -15,7 +15,8 @@ import ( ) func getPolicyDefinitionByDisplayName(ctx context.Context, client *policy.DefinitionsClient, displayName, managementGroupName string, - builtInOnly bool) (policy.Definition, error) { + builtInOnly bool, +) (policy.Definition, error) { var policyDefinitions policy.DefinitionListResultIterator var err error diff --git a/internal/services/policy/policy_definition_resource_test.go b/internal/services/policy/policy_definition_resource_test.go index ae04c5c6f71b..e4ea75496190 100644 --- a/internal/services/policy/policy_definition_resource_test.go +++ b/internal/services/policy/policy_definition_resource_test.go @@ -158,13 +158,6 @@ func TestAccAzureRMPolicyDefinition_removeParameter(t *testing.T) { ), }, data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), }) } diff --git a/internal/services/policy/policy_virtual_machine_configuration_assignment_data_source.go b/internal/services/policy/policy_virtual_machine_configuration_assignment_data_source.go index a3c996cba4ba..a9edca6976fe 100644 --- a/internal/services/policy/policy_virtual_machine_configuration_assignment_data_source.go +++ b/internal/services/policy/policy_virtual_machine_configuration_assignment_data_source.go @@ -99,7 +99,6 @@ func dataSourcePolicyVirtualMachineConfigurationAssignmentRead(d *pluginsdk.Reso if model := resp.Model; model != nil { if props := model.Properties; props != nil { - d.Set("assignment_hash", pointer.From(props.AssignmentHash)) d.Set("compliance_status", string(pointer.From(props.ComplianceStatus))) d.Set("latest_report_id", pointer.From(props.LatestReportId)) diff --git a/internal/services/policy/remediation_management_group.go b/internal/services/policy/remediation_management_group.go index 90de4293198b..c695127312b8 100644 --- a/internal/services/policy/remediation_management_group.go +++ b/internal/services/policy/remediation_management_group.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" managmentGroupParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/managementgroup/parse" managmentGroupValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/managementgroup/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/policy/parse" @@ -103,29 +102,6 @@ func resourceArmManagementGroupPolicyRemediation() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["policy_definition_id"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - // TODO: remove this suppression when github issue https://github.com/Azure/azure-rest-api-specs/issues/8353 is addressed - DiffSuppressFunc: suppress.CaseDifference, - ValidateFunc: validate.PolicyDefinitionID, - Deprecated: "`policy_definition_id` will be removed in version 4.0 of the AzureRM Provider in favour of `policy_definition_reference_id`.", - } - } - - if !features.FourPointOhBeta() { - resource.Schema["resource_discovery_mode"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Default: string(remediations.ResourceDiscoveryModeExistingNonCompliant), - ValidateFunc: validation.StringInSlice([]string{ - string(remediations.ResourceDiscoveryModeExistingNonCompliant), - string(remediations.ResourceDiscoveryModeReEvaluateCompliance), - }, false), - Deprecated: "`resource_discovery_mode` will be removed in version 4.0 of the AzureRM Provider as evaluating compliance before remediation is only supported at subscription scope and below.", - } - } return resource } @@ -153,35 +129,28 @@ func resourceArmManagementGroupPolicyRemediationCreateUpdate(d *pluginsdk.Resour } var parameters remediations.Remediation + props := &remediations.RemediationProperties{ + Filters: &remediations.RemediationFilters{ + Locations: utils.ExpandStringSlice(d.Get("location_filters").([]interface{})), + }, + PolicyAssignmentId: pointer.To(d.Get("policy_assignment_id").(string)), + PolicyDefinitionReferenceId: pointer.To(d.Get("policy_definition_reference_id").(string)), + } - if !features.FourPointOhBeta() { - parameters = remediations.Remediation{ - Properties: readRemediationProperties(d), - } - } else { - props := &remediations.RemediationProperties{ - Filters: &remediations.RemediationFilters{ - Locations: utils.ExpandStringSlice(d.Get("location_filters").([]interface{})), - }, - PolicyAssignmentId: pointer.To(d.Get("policy_assignment_id").(string)), - PolicyDefinitionReferenceId: pointer.To(d.Get("policy_definition_reference_id").(string)), - } - - if v := d.Get("failure_percentage").(float64); v != 0 { - props.FailureThreshold = &remediations.RemediationPropertiesFailureThreshold{ - Percentage: pointer.To(v), - } - } - if v := d.Get("parallel_deployments").(int); v != 0 { - props.ParallelDeployments = pointer.To(int64(v)) - } - if v := d.Get("resource_count").(int); v != 0 { - props.ResourceCount = pointer.To(int64(v)) + if v := d.Get("failure_percentage").(float64); v != 0 { + props.FailureThreshold = &remediations.RemediationPropertiesFailureThreshold{ + Percentage: pointer.To(v), } + } + if v := d.Get("parallel_deployments").(int); v != 0 { + props.ParallelDeployments = pointer.To(int64(v)) + } + if v := d.Get("resource_count").(int); v != 0 { + props.ResourceCount = pointer.To(int64(v)) + } - parameters = remediations.Remediation{ - Properties: props, - } + parameters = remediations.Remediation{ + Properties: props, } if _, err := client.CreateOrUpdateAtManagementGroup(ctx, id, parameters); err != nil { @@ -217,10 +186,6 @@ func resourceArmManagementGroupPolicyRemediationRead(d *pluginsdk.ResourceData, managementGroupID := managmentGroupParse.NewManagementGroupId(id.ManagementGroupId) d.Set("management_group_id", managementGroupID.ID()) - if !features.FourPointOhBeta() { - return setRemediationProperties(d, resp.Model.Properties) - } - if props := resp.Model.Properties; props != nil { locations := make([]interface{}, 0) if filters := props.Filters; filters != nil { @@ -279,7 +244,8 @@ func resourceArmManagementGroupPolicyRemediationDelete(d *pluginsdk.ResourceData } func managementGroupPolicyRemediationCancellationRefreshFunc(ctx context.Context, - client *remediations.RemediationsClient, id remediations.Providers2RemediationId) pluginsdk.StateRefreshFunc { + client *remediations.RemediationsClient, id remediations.Providers2RemediationId, +) pluginsdk.StateRefreshFunc { return func() (interface{}, string, error) { resp, err := client.GetAtManagementGroup(ctx, id) if err != nil { diff --git a/internal/services/policy/remediation_resource.go b/internal/services/policy/remediation_resource.go index 10cd04558af6..fd407c5f19e6 100644 --- a/internal/services/policy/remediation_resource.go +++ b/internal/services/policy/remediation_resource.go @@ -9,13 +9,13 @@ import ( "log" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/policy/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/policy/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -111,16 +111,6 @@ func resourceArmResourcePolicyRemediation() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["policy_definition_id"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - // TODO: remove this suppression when github issue https://github.com/Azure/azure-rest-api-specs/issues/8353 is addressed - DiffSuppressFunc: suppress.CaseDifference, - ValidateFunc: validate.PolicyDefinitionID, - Deprecated: "`policy_definition_id` will be removed in version 4.0 of the AzureRM Provider in favour of `policy_definition_reference_id`.", - } - } return resource } @@ -244,7 +234,8 @@ func waitForRemediationToDelete(ctx context.Context, id string, timeout time.Duration, cancelFunc func() error, - refresh pluginsdk.StateRefreshFunc) error { + refresh pluginsdk.StateRefreshFunc, +) error { if prop == nil { return nil } @@ -315,7 +306,7 @@ func setRemediationProperties(d *pluginsdk.ResourceData, prop *remediations.Reme d.Set("policy_assignment_id", prop.PolicyAssignmentId) d.Set("policy_definition_reference_id", prop.PolicyDefinitionReferenceId) - d.Set("resource_discovery_mode", utils.NormalizeNilableString((*string)(prop.ResourceDiscoveryMode))) + d.Set("resource_discovery_mode", pointer.From((*string)(prop.ResourceDiscoveryMode))) d.Set("resource_count", prop.ResourceCount) d.Set("parallel_deployments", prop.ParallelDeployments) diff --git a/internal/services/policy/remediation_resource_group.go b/internal/services/policy/remediation_resource_group.go index 68c6e9bc685a..c7dcbc87fe97 100644 --- a/internal/services/policy/remediation_resource_group.go +++ b/internal/services/policy/remediation_resource_group.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/policy/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/policy/validate" resourceParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/resource/parse" @@ -111,16 +110,6 @@ func resourceArmResourceGroupPolicyRemediation() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["policy_definition_id"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - // TODO: remove this suppression when github issue https://github.com/Azure/azure-rest-api-specs/issues/8353 is addressed - DiffSuppressFunc: suppress.CaseDifference, - ValidateFunc: validate.PolicyDefinitionID, - Deprecated: "`policy_definition_id` will be removed in version 4.0 of the AzureRM Provider in favour of `policy_definition_reference_id`.", - } - } return resource } diff --git a/internal/services/policy/remediation_subscription.go b/internal/services/policy/remediation_subscription.go index 86132bda7a94..bfd4a3147770 100644 --- a/internal/services/policy/remediation_subscription.go +++ b/internal/services/policy/remediation_subscription.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/policy/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/policy/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -110,16 +109,6 @@ func resourceArmSubscriptionPolicyRemediation() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["policy_definition_id"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - // TODO: remove this suppression when github issue https://github.com/Azure/azure-rest-api-specs/issues/8353 is addressed - DiffSuppressFunc: suppress.CaseDifference, - ValidateFunc: validate.PolicyDefinitionID, - Deprecated: "`policy_definition_id` will be removed in version 4.0 of the AzureRM Provider in favour of `policy_definition_reference_id`.", - } - } return resource } diff --git a/internal/services/policy/validate/resource_group_assignment_id_test.go b/internal/services/policy/validate/resource_group_assignment_id_test.go index 11fed7633cfc..302c0ac2c468 100644 --- a/internal/services/policy/validate/resource_group_assignment_id_test.go +++ b/internal/services/policy/validate/resource_group_assignment_id_test.go @@ -12,7 +12,6 @@ func TestResourceGroupAssignmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/policy/validate/resource_group_policy_exemption_id_test.go b/internal/services/policy/validate/resource_group_policy_exemption_id_test.go index 55fa4e954760..5cc610a42d5b 100644 --- a/internal/services/policy/validate/resource_group_policy_exemption_id_test.go +++ b/internal/services/policy/validate/resource_group_policy_exemption_id_test.go @@ -12,7 +12,6 @@ func TestResourceGroupPolicyExemptionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/policy/validate/resource_group_policy_remediation_id_test.go b/internal/services/policy/validate/resource_group_policy_remediation_id_test.go index b3a84c5620ad..f0c8f353e8ad 100644 --- a/internal/services/policy/validate/resource_group_policy_remediation_id_test.go +++ b/internal/services/policy/validate/resource_group_policy_remediation_id_test.go @@ -12,7 +12,6 @@ func TestResourceGroupPolicyRemediationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/policy/validate/subscription_assignment_id_test.go b/internal/services/policy/validate/subscription_assignment_id_test.go index 12cb2694a4e7..1200d9008de7 100644 --- a/internal/services/policy/validate/subscription_assignment_id_test.go +++ b/internal/services/policy/validate/subscription_assignment_id_test.go @@ -12,7 +12,6 @@ func TestSubscriptionAssignmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/policy/validate/subscription_policy_exemption_id_test.go b/internal/services/policy/validate/subscription_policy_exemption_id_test.go index 02c506505363..c351e0032442 100644 --- a/internal/services/policy/validate/subscription_policy_exemption_id_test.go +++ b/internal/services/policy/validate/subscription_policy_exemption_id_test.go @@ -12,7 +12,6 @@ func TestSubscriptionPolicyExemptionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/policy/validate/subscription_policy_remediation_id_test.go b/internal/services/policy/validate/subscription_policy_remediation_id_test.go index 5fa9e0d85f32..8764d838956d 100644 --- a/internal/services/policy/validate/subscription_policy_remediation_id_test.go +++ b/internal/services/policy/validate/subscription_policy_remediation_id_test.go @@ -12,7 +12,6 @@ func TestSubscriptionPolicyRemediationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/portal/legacy_dashboard_resource.go b/internal/services/portal/legacy_dashboard_resource.go deleted file mode 100644 index c24fea22c6ec..000000000000 --- a/internal/services/portal/legacy_dashboard_resource.go +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package portal - -import ( - "encoding/json" - "fmt" - "log" - "time" - - "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/portal/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/portal/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -func resourceLegacyDashboard() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceLegacyDashboardCreateUpdate, - Read: resourceLegacyDashboardRead, - Update: resourceLegacyDashboardCreateUpdate, - Delete: resourceLegacyDashboardDelete, - - Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := parse.DashboardID(id) - return err - }), - - DeprecationMessage: "The `azurerm_dashboard` resource is deprecated and will be removed in v4.0 of the AzureRM Provider - the replacement is available as `azurerm_portal_dashboard`.", - - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(30 * time.Minute), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Update: pluginsdk.DefaultTimeout(30 * time.Minute), - Delete: pluginsdk.DefaultTimeout(30 * time.Minute), - }, - - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.DashboardName, - }, - "resource_group_name": commonschema.ResourceGroupName(), - "location": commonschema.Location(), - "tags": commonschema.Tags(), - "dashboard_properties": { - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - StateFunc: utils.NormalizeJson, - }, - }, - } -} - -func resourceLegacyDashboardCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Portal.DashboardsClient - subscriptionId := meta.(*clients.Client).Account.SubscriptionId - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) - defer cancel() - - id := dashboard.NewDashboardID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) - if d.IsNewResource() { - existing, err := client.Get(ctx, id) - if err != nil { - if !response.WasNotFound(existing.HttpResponse) { - return fmt.Errorf("checking for the presence of an existing %s: %+v", id, err) - } - } - - if !response.WasNotFound(existing.HttpResponse) { - return tf.ImportAsExistsError("azurerm_dashboard", id.ID()) - } - } - - payload := dashboard.Dashboard{ - Location: location.Normalize(d.Get("location").(string)), - Tags: tags.Expand(d.Get("tags").(map[string]interface{})), - } - - var dashboardProperties dashboard.DashboardProperties - - dashboardPropsRaw := d.Get("dashboard_properties").(string) - if err := json.Unmarshal([]byte(dashboardPropsRaw), &dashboardProperties); err != nil { - return fmt.Errorf("parsing JSON: %+v", err) - } - payload.Properties = &dashboardProperties - - if _, err := client.CreateOrUpdate(ctx, id, payload); err != nil { - return fmt.Errorf("creating/updating %s %+v", id, err) - } - - d.SetId(id.ID()) - return resourceLegacyDashboardRead(d, meta) -} - -func resourceLegacyDashboardRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Portal.DashboardsClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := dashboard.ParseDashboardID(d.Id()) - if err != nil { - return err - } - - resp, err := client.Get(ctx, *id) - if err != nil { - if response.WasNotFound(resp.HttpResponse) { - log.Printf("[DEBUG] %q was not found - removing from state", *id) - d.SetId("") - return nil - } - return fmt.Errorf("retrieving %s: %+v", *id, err) - } - - d.Set("name", id.DashboardName) - d.Set("resource_group_name", id.ResourceGroupName) - - if model := resp.Model; model != nil { - d.Set("location", location.Normalize(model.Location)) - - props, jsonErr := json.Marshal(model.Properties) - if jsonErr != nil { - return fmt.Errorf("parsing JSON for Dashboard Properties: %+v", jsonErr) - } - d.Set("dashboard_properties", string(props)) - - if err := tags.FlattenAndSet(d, model.Tags); err != nil { - return err - } - } - - return nil -} - -func resourceLegacyDashboardDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Portal.DashboardsClient - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := dashboard.ParseDashboardID(d.Id()) - if err != nil { - return err - } - - resp, err := client.Delete(ctx, *id) - if err != nil { - if !response.WasNotFound(resp.HttpResponse) { - return fmt.Errorf("deleting %s: %+v", *id, err) - } - } - - return nil -} diff --git a/internal/services/portal/legacy_dashboard_resource_test.go b/internal/services/portal/legacy_dashboard_resource_test.go deleted file mode 100644 index 059e1d3b383d..000000000000 --- a/internal/services/portal/legacy_dashboard_resource_test.go +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package portal_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type LegacyDashboardResource struct{} - -func TestAccLegacyDashboard_basic(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Test no longer valid due to deprecation of the 'azurerm_dashboard' resource in the 4.x version of the provider") - } - - data := acceptance.BuildTestData(t, "azurerm_dashboard", "test") - r := LegacyDashboardResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccLegacyDashboard_complete(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("Test no longer valid due to deprecation of the 'azurerm_dashboard' resource in the 4.x version of the provider") - } - - data := acceptance.BuildTestData(t, "azurerm_dashboard", "test") - r := LegacyDashboardResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.complete(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func (LegacyDashboardResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := dashboard.ParseDashboardID(state.ID) - if err != nil { - return nil, err - } - - resp, err := clients.Portal.DashboardsClient.Get(ctx, *id) - if err != nil { - return nil, fmt.Errorf("retrieving %s: %v", id.String(), err) - } - - return utils.Bool(resp.Model != nil), nil -} - -func (LegacyDashboardResource) basic(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_dashboard" "test" { - name = "my-test-dashboard" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location - dashboard_properties = < [source_server, replication_server] - state.SourceServerId = servers.NewFlexibleServerID(id.SubscriptionId, id.ResourceGroupName, (*resp.Model.Properties.Members)[0]).ID() - state.ReplicaServerId = servers.NewFlexibleServerID(id.SubscriptionId, id.ResourceGroupName, (*resp.Model.Properties.Members)[1]).ID() + // Model.Properties.Members is a tuple => [source_server_id, replication_server_name] + sourceServerName := (*props.Members)[0] + replicaServerName := (*props.Members)[1] + + sourceServerId := servers.NewFlexibleServerID(id.SubscriptionId, id.ResourceGroupName, sourceServerName).ID() + + replicaServer, err := lookupFlexibleServerByName(ctx, flexibleServerClient, id, replicaServerName, sourceServerId) + if err != nil { + return err + } + + state.SourceServerId = sourceServerId + + if replicaServer != nil { + replicaId, err := servers.ParseFlexibleServerID(*replicaServer.Id) + if err != nil { + return err + } + + state.ReplicaServerId = replicaId.ID() + } } } @@ -184,8 +203,8 @@ func (r PostgresqlFlexibleServerVirtualEndpointResource) Delete() sdk.ResourceFu locks.ByName(id.FlexibleServerName, postgresqlFlexibleServerResourceName) defer locks.UnlockByName(id.FlexibleServerName, postgresqlFlexibleServerResourceName) - if err := DeletePostgresFlexibileServerVirtualEndpoint(ctx, client, id); err != nil { - return err + if err := client.DeleteThenPoll(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %+v", *id, err) } return nil @@ -231,17 +250,22 @@ func (r PostgresqlFlexibleServerVirtualEndpointResource) Update() sdk.ResourceFu } } -// exposed so we can access from tests -func DeletePostgresFlexibileServerVirtualEndpoint(ctx context.Context, client *virtualendpoints.VirtualEndpointsClient, id *virtualendpoints.VirtualEndpointId) error { - deletePoller := custompollers.NewPostgresFlexibleServerVirtualEndpointDeletePoller(client, *id) - poller := pollers.NewPoller(deletePoller, 5*time.Second, pollers.DefaultNumberOfDroppedConnectionsToAllow) - - if _, err := client.Delete(ctx, *id); err != nil { - return fmt.Errorf("deleting %s: %+v", *id, err) +// The flexible endpoint API does not store the location/rg information on replicas it only stores the name. +// This lookup is safe because replicas for a given source server are *not* allowed to have identical names +func lookupFlexibleServerByName(ctx context.Context, flexibleServerClient *servers.ServersClient, virtualEndpointId *virtualendpoints.VirtualEndpointId, replicaServerName string, sourceServerId string) (*servers.Server, error) { + postgresServers, err := flexibleServerClient.ListCompleteMatchingPredicate(ctx, commonids.NewSubscriptionID(virtualEndpointId.SubscriptionId), servers.ServerOperationPredicate{ + Name: &replicaServerName, + }) + if err != nil { + return nil, err } - if err := poller.PollUntilDone(ctx); err != nil { - return err + // loop to find the replica server associated with this flexible endpoint + for _, server := range postgresServers.Items { + if server.Properties != nil && pointer.From(server.Properties.SourceServerResourceId) == sourceServerId { + return &server, nil + } } - return nil + + return nil, fmt.Errorf("could not locate postgres replica server with name %s", replicaServerName) } diff --git a/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource_test.go b/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource_test.go index 9b48f7bc1d6e..1d2973e58f6c 100644 --- a/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource_test.go +++ b/internal/services/postgres/postgresql_flexible_server_virtual_endpoint_resource_test.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/postgres" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -61,6 +60,25 @@ func TestAccPostgresqlFlexibleServerVirtualEndpoint_update(t *testing.T) { }) } +func TestAccPostgresqlFlexibleServerVirtualEndpoint_crossRegion(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_postgresql_flexible_server_virtual_endpoint", "test") + r := PostgresqlFlexibleServerVirtualEndpointResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.crossRegion(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + data.DisappearsStep(acceptance.DisappearsStepData{ + Config: r.crossRegion, + TestResource: r, + }), + }) +} + func (r PostgresqlFlexibleServerVirtualEndpointResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := virtualendpoints.ParseVirtualEndpointID(state.ID) if err != nil { @@ -81,8 +99,8 @@ func (r PostgresqlFlexibleServerVirtualEndpointResource) Destroy(ctx context.Con return nil, err } - if err := postgres.DeletePostgresFlexibileServerVirtualEndpoint(ctx, client.Postgres.VirtualEndpointClient, id); err != nil { - return nil, fmt.Errorf("deleting %s: %+v", id, err) + if err := client.Postgres.VirtualEndpointClient.DeleteThenPoll(ctx, *id); err != nil { + return nil, fmt.Errorf("deleting %s: %+v", *id, err) } return utils.Bool(true), nil @@ -200,3 +218,227 @@ resource "azurerm_postgresql_flexible_server_virtual_endpoint" "test" { } `, data.RandomInteger, "eastus", replicaId) // force region due to SKU constraints } + +/** Complex test cases across regions and resource groups */ +func (PostgresqlFlexibleServerVirtualEndpointResource) crossRegion(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +###### EAST RG ###### + +resource "azurerm_resource_group" "east" { + name = "acctest%[1]d-east" + location = "eastus" +} + +resource "azurerm_virtual_network" "east" { + name = "acctest%[1]d-east-vn" + location = azurerm_resource_group.east.location + resource_group_name = azurerm_resource_group.east.name + address_space = ["10.0.0.0/16"] +} + +resource "azurerm_network_security_group" "east" { + name = "acctest%[1]d-east-nsg" + location = azurerm_resource_group.east.location + resource_group_name = azurerm_resource_group.east.name + + security_rule { + name = "allow_all" + priority = 100 + direction = "Inbound" + access = "Allow" + protocol = "Tcp" + source_port_range = "*" + destination_port_range = "*" + source_address_prefix = "*" + destination_address_prefix = "*" + } +} + +resource "azurerm_subnet" "east" { + name = "acctest%[1]d-east-sn" + resource_group_name = azurerm_resource_group.east.name + virtual_network_name = azurerm_virtual_network.east.name + address_prefixes = ["10.0.1.0/24"] + service_endpoints = ["Microsoft.Storage"] + + delegation { + name = "fs" + service_delegation { + name = "Microsoft.DBforPostgreSQL/flexibleServers" + actions = [ + "Microsoft.Network/virtualNetworks/subnets/join/action", + ] + } + } +} + +resource "azurerm_subnet_network_security_group_association" "east" { + subnet_id = azurerm_subnet.east.id + network_security_group_id = azurerm_network_security_group.east.id +} + +resource "azurerm_private_dns_zone" "east" { + name = "acctest%[1]d-pdz.postgres.database.azure.com" + resource_group_name = azurerm_resource_group.east.name + + depends_on = [azurerm_subnet_network_security_group_association.east] +} + +resource "azurerm_virtual_network_peering" "east" { + name = "east-to-west" + resource_group_name = azurerm_resource_group.east.name + virtual_network_name = azurerm_virtual_network.east.name + remote_virtual_network_id = azurerm_virtual_network.west.id + allow_virtual_network_access = true + allow_forwarded_traffic = true +} + +resource "azurerm_private_dns_zone_virtual_network_link" "east" { + name = "acctest%[1]d-east-pdzvnetlink.com" + private_dns_zone_name = azurerm_private_dns_zone.east.name + virtual_network_id = azurerm_virtual_network.east.id + resource_group_name = azurerm_resource_group.east.name + + depends_on = [azurerm_virtual_network_peering.east] +} + +resource "azurerm_postgresql_flexible_server" "east" { + name = "acctest%[1]d-east-pg" + resource_group_name = azurerm_resource_group.east.name + location = azurerm_resource_group.east.location + version = "13" + public_network_access_enabled = false + administrator_login = "adminTerraform" + administrator_password = "maLTq5SnDBrWfyban7Wz" + sku_name = "GP_Standard_D2s_v3" + + delegated_subnet_id = azurerm_subnet.east.id + private_dns_zone_id = azurerm_private_dns_zone.east.id + + depends_on = [azurerm_private_dns_zone_virtual_network_link.east] + + lifecycle { + ignore_changes = [zone] + } + + timeouts { + create = "120m" + } +} + +resource "azurerm_postgresql_flexible_server_virtual_endpoint" "test" { + name = "acctest%[1]d-endpoint" + source_server_id = azurerm_postgresql_flexible_server.east.id + replica_server_id = azurerm_postgresql_flexible_server.west.id + type = "ReadWrite" +} + +###### WEST RG ###### + +resource "azurerm_resource_group" "west" { + name = "acctest%[1]d-west" + location = "westus" +} + +resource "azurerm_virtual_network" "west" { + name = "acctest%[1]d-west-vn" + location = azurerm_resource_group.west.location + resource_group_name = azurerm_resource_group.west.name + address_space = ["11.0.0.0/16"] +} + +resource "azurerm_network_security_group" "west" { + name = "acctest%[1]d-west-nsg" + location = azurerm_resource_group.west.location + resource_group_name = azurerm_resource_group.west.name + + security_rule { + name = "allow_all" + priority = 100 + direction = "Inbound" + access = "Allow" + protocol = "Tcp" + source_port_range = "*" + destination_port_range = "*" + source_address_prefix = "*" + destination_address_prefix = "*" + } +} + +resource "azurerm_subnet" "west" { + name = "acctest%[1]d-west-sn" + resource_group_name = azurerm_resource_group.west.name + virtual_network_name = azurerm_virtual_network.west.name + address_prefixes = ["11.0.1.0/24"] + service_endpoints = ["Microsoft.Storage"] + + delegation { + name = "fs" + service_delegation { + name = "Microsoft.DBforPostgreSQL/flexibleServers" + actions = [ + "Microsoft.Network/virtualNetworks/subnets/join/action", + ] + } + } +} + +resource "azurerm_subnet_network_security_group_association" "west" { + subnet_id = azurerm_subnet.west.id + network_security_group_id = azurerm_network_security_group.west.id +} + +resource "azurerm_private_dns_zone" "west" { + name = "acctest%[1]d-pdz.postgres.database.azure.com" + resource_group_name = azurerm_resource_group.west.name + + depends_on = [azurerm_subnet_network_security_group_association.west] +} + +resource "azurerm_virtual_network_peering" "west" { + name = "acctest-pfs%[1]d-west-to-east" + resource_group_name = azurerm_resource_group.west.name + virtual_network_name = azurerm_virtual_network.west.name + remote_virtual_network_id = azurerm_virtual_network.east.id + allow_virtual_network_access = true + allow_forwarded_traffic = true +} + +resource "azurerm_private_dns_zone_virtual_network_link" "west" { + name = "acctest%[1]d-west-pdzvnetlink.com" + private_dns_zone_name = azurerm_private_dns_zone.west.name + virtual_network_id = azurerm_virtual_network.west.id + resource_group_name = azurerm_resource_group.west.name + + depends_on = [azurerm_virtual_network_peering.west] +} + +resource "azurerm_postgresql_flexible_server" "west" { + name = "acctest%[1]d-west-pg" + resource_group_name = azurerm_resource_group.west.name + location = azurerm_resource_group.west.location + create_mode = "Replica" + source_server_id = azurerm_postgresql_flexible_server.east.id + version = azurerm_postgresql_flexible_server.east.version + public_network_access_enabled = azurerm_postgresql_flexible_server.east.public_network_access_enabled + sku_name = azurerm_postgresql_flexible_server.east.sku_name + + delegated_subnet_id = azurerm_subnet.west.id + private_dns_zone_id = azurerm_private_dns_zone.west.id + + depends_on = [azurerm_private_dns_zone_virtual_network_link.west] + + lifecycle { + ignore_changes = [zone] + } + + timeouts { + create = "120m" + } +} +`, data.RandomInteger) +} diff --git a/internal/services/postgres/validate/azure_active_directory_administrator_id_test.go b/internal/services/postgres/validate/azure_active_directory_administrator_id_test.go index 8371361bda9d..d17a5e827b32 100644 --- a/internal/services/postgres/validate/azure_active_directory_administrator_id_test.go +++ b/internal/services/postgres/validate/azure_active_directory_administrator_id_test.go @@ -12,7 +12,6 @@ func TestAzureActiveDirectoryAdministratorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/postgres/validate/flexible_server_storage_tier.go b/internal/services/postgres/validate/flexible_server_storage_tier.go index 689d47de8e1d..12c7cc59d9d7 100644 --- a/internal/services/postgres/validate/flexible_server_storage_tier.go +++ b/internal/services/postgres/validate/flexible_server_storage_tier.go @@ -15,7 +15,6 @@ type StorageTiers struct { // Creates a map of valid StorageTiers based on the storage_mb for the PostgreSQL Flexible Server func InitializeFlexibleServerStorageTierDefaults() map[int]StorageTiers { - storageTiersMappings := map[int]StorageTiers{ 32768: {servers.AzureManagedDiskPerformanceTiersPFour, &[]string{ string(servers.AzureManagedDiskPerformanceTiersPFour), diff --git a/internal/services/postgres/validate/sql_azure_active_directory_administrator_id_test.go b/internal/services/postgres/validate/sql_azure_active_directory_administrator_id_test.go index 64417ef6c17e..26d47fbdfd8c 100644 --- a/internal/services/postgres/validate/sql_azure_active_directory_administrator_id_test.go +++ b/internal/services/postgres/validate/sql_azure_active_directory_administrator_id_test.go @@ -12,7 +12,6 @@ func TestSqlAzureActiveDirectoryAdministratorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/privatednsresolver/private_dns_resolver_dns_forwarding_ruleset_resource.go b/internal/services/privatednsresolver/private_dns_resolver_dns_forwarding_ruleset_resource.go index a0e5640a106f..0515a9d0dccc 100644 --- a/internal/services/privatednsresolver/private_dns_resolver_dns_forwarding_ruleset_resource.go +++ b/internal/services/privatednsresolver/private_dns_resolver_dns_forwarding_ruleset_resource.go @@ -227,7 +227,7 @@ func (r PrivateDNSResolverDnsForwardingRulesetResource) Delete() sdk.ResourceFun } func expandDnsResolverOutboundEndpoints(inputList []string) *[]dnsforwardingrulesets.SubResource { - var outputList []dnsforwardingrulesets.SubResource + outputList := make([]dnsforwardingrulesets.SubResource, 0, len(inputList)) for _, v := range inputList { output := dnsforwardingrulesets.SubResource{ Id: v, @@ -239,11 +239,11 @@ func expandDnsResolverOutboundEndpoints(inputList []string) *[]dnsforwardingrule } func flattenDnsResolverOutboundEndpoints(inputList *[]dnsforwardingrulesets.SubResource) []string { - var outputList []string if inputList == nil { - return outputList + return []string{} } + outputList := make([]string, 0, len(*inputList)) for _, input := range *inputList { output := input.Id outputList = append(outputList, output) diff --git a/internal/services/privatednsresolver/private_dns_resolver_forwarding_rule_resource.go b/internal/services/privatednsresolver/private_dns_resolver_forwarding_rule_resource.go index 606467862042..13c2b050cc80 100644 --- a/internal/services/privatednsresolver/private_dns_resolver_forwarding_rule_resource.go +++ b/internal/services/privatednsresolver/private_dns_resolver_forwarding_rule_resource.go @@ -289,7 +289,7 @@ func (r PrivateDNSResolverForwardingRuleResource) Delete() sdk.ResourceFunc { } func expandTargetDnsServerModel(inputList []TargetDnsServerModel) *[]forwardingrules.TargetDnsServer { - var outputList []forwardingrules.TargetDnsServer + outputList := make([]forwardingrules.TargetDnsServer, 0, len(inputList)) for _, v := range inputList { input := v output := forwardingrules.TargetDnsServer{ @@ -304,11 +304,11 @@ func expandTargetDnsServerModel(inputList []TargetDnsServerModel) *[]forwardingr } func flattenTargetDnsServerModel(inputList *[]forwardingrules.TargetDnsServer) []TargetDnsServerModel { - var outputList []TargetDnsServerModel if inputList == nil { - return outputList + return []TargetDnsServerModel{} } + outputList := make([]TargetDnsServerModel, 0, len(*inputList)) for _, input := range *inputList { output := TargetDnsServerModel{ IPAddress: input.IPAddress, diff --git a/internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go b/internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go index c2d19f9f2b67..00d3ff523a14 100644 --- a/internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go +++ b/internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go @@ -288,7 +288,7 @@ func dnsResolverInboundEndpointDeleteRefreshFunc(ctx context.Context, client *in } func expandIPConfigurationModel(inputList []IPConfigurationModel) (*[]inboundendpoints.IPConfiguration, error) { - var outputList []inboundendpoints.IPConfiguration + outputList := make([]inboundendpoints.IPConfiguration, 0, len(inputList)) for _, v := range inputList { input := v output := inboundendpoints.IPConfiguration{} @@ -320,11 +320,11 @@ func expandIPConfigurationModel(inputList []IPConfigurationModel) (*[]inboundend } func flattenIPConfigurationModel(inputList *[]inboundendpoints.IPConfiguration) []IPConfigurationModel { - var outputList []IPConfigurationModel if inputList == nil { - return outputList + return []IPConfigurationModel{} } + outputList := make([]IPConfigurationModel, 0, len(*inputList)) for _, input := range *inputList { output := IPConfigurationModel{} diff --git a/internal/services/recoveryservices/azuresdkhacks/client.go b/internal/services/recoveryservices/azuresdkhacks/client.go index 30972f0da732..5e15a39cf453 100644 --- a/internal/services/recoveryservices/azuresdkhacks/client.go +++ b/internal/services/recoveryservices/azuresdkhacks/client.go @@ -1,8 +1,6 @@ package azuresdkhacks import ( - "fmt" - "github.com/Azure/go-autorest/autorest" ) @@ -16,7 +14,7 @@ import ( const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vaultcertificates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vaultcertificates/" + defaultApiVersion } type VaultCertificatesClient struct { diff --git a/internal/services/recoveryservices/backup_policy_vm_workload_resource.go b/internal/services/recoveryservices/backup_policy_vm_workload_resource.go index b2dcccc15633..63a2b595fa8e 100644 --- a/internal/services/recoveryservices/backup_policy_vm_workload_resource.go +++ b/internal/services/recoveryservices/backup_policy_vm_workload_resource.go @@ -630,7 +630,7 @@ func expandBackupProtectionPolicyVMWorkloadProtectionPolicies(input []Protection switch backupBlock.Frequency { case string(protectionpolicies.ScheduleRunTypeDaily): - if item.RetentionDaily == nil || len(item.RetentionDaily) == 0 { + if len(item.RetentionDaily) == 0 { return nil, fmt.Errorf("`retention_daily` must be set when `backup.0.frequency` is `Daily`") } @@ -770,7 +770,7 @@ func expandBackupProtectionPolicyVMWorkloadRetentionPolicy(input ProtectionPolic if input.PolicyType == string(protectionpolicies.PolicyTypeFull) { retentionPolicy := protectionpolicies.LongTermRetentionPolicy{} - if input.RetentionDaily != nil && len(input.RetentionDaily) > 0 { + if len(input.RetentionDaily) > 0 { retentionDaily := input.RetentionDaily[0] retentionPolicy.DailySchedule = &protectionpolicies.DailyRetentionSchedule{ @@ -782,7 +782,7 @@ func expandBackupProtectionPolicyVMWorkloadRetentionPolicy(input ProtectionPolic } } - if input.RetentionWeekly != nil && len(input.RetentionWeekly) > 0 { + if len(input.RetentionWeekly) > 0 { retentionWeekly := input.RetentionWeekly[0] retentionPolicy.WeeklySchedule = &protectionpolicies.WeeklyRetentionSchedule{ @@ -802,18 +802,18 @@ func expandBackupProtectionPolicyVMWorkloadRetentionPolicy(input ProtectionPolic } } - if input.RetentionMonthly != nil && len(input.RetentionMonthly) > 0 { + if len(input.RetentionMonthly) > 0 { retentionMonthly := input.RetentionMonthly[0] if input.Backup[0].Frequency == string(protectionpolicies.ScheduleRunTypeWeekly) && retentionMonthly.FormatType != string(protectionpolicies.RetentionScheduleFormatWeekly) { return nil, fmt.Errorf("`retention_monthly.format_type` must be `Weekly` when `policy_type` is `Full` and `frequency` is `Weekly`") } - if retentionMonthly.FormatType == string(protectionpolicies.RetentionScheduleFormatDaily) && (retentionMonthly.Monthdays == nil || len(retentionMonthly.Monthdays) == 0) { + if retentionMonthly.FormatType == string(protectionpolicies.RetentionScheduleFormatDaily) && (len(retentionMonthly.Monthdays) == 0) { return nil, fmt.Errorf("`retention_monthly.monthdays` must be set when `retention_monthly.format_type` is `Daily`") } - if retentionMonthly.FormatType == string(protectionpolicies.RetentionScheduleFormatWeekly) && ((retentionMonthly.Weeks == nil || len(retentionMonthly.Weeks) == 0) || (retentionMonthly.Weekdays == nil || len(retentionMonthly.Weekdays) == 0)) { + if retentionMonthly.FormatType == string(protectionpolicies.RetentionScheduleFormatWeekly) && (len(retentionMonthly.Weeks) == 0 || len(retentionMonthly.Weekdays) == 0) { return nil, fmt.Errorf("`retention_monthly.weeks` and `retention_monthly.weekdays` must be set when `retention_monthly.format_type` is `Weekly`") } @@ -829,18 +829,18 @@ func expandBackupProtectionPolicyVMWorkloadRetentionPolicy(input ProtectionPolic } } - if input.RetentionYearly != nil && len(input.RetentionYearly) > 0 { + if len(input.RetentionYearly) > 0 { retentionYearly := input.RetentionYearly[0] if input.Backup[0].Frequency == string(protectionpolicies.ScheduleRunTypeWeekly) && retentionYearly.FormatType != string(protectionpolicies.RetentionScheduleFormatWeekly) { return nil, fmt.Errorf("`retention_yearly.format_type` must be `Weekly` when `policy_type` is `Full` and `frequency` is `Weekly`") } - if retentionYearly.FormatType == string(protectionpolicies.RetentionScheduleFormatDaily) && (retentionYearly.Monthdays == nil || len(retentionYearly.Monthdays) == 0) { + if retentionYearly.FormatType == string(protectionpolicies.RetentionScheduleFormatDaily) && (len(retentionYearly.Monthdays) == 0) { return nil, fmt.Errorf("`retention_yearly.monthdays` must be set when `retention_yearly.format_type` is `Daily`") } - if retentionYearly.FormatType == string(protectionpolicies.RetentionScheduleFormatWeekly) && ((retentionYearly.Weeks == nil || len(retentionYearly.Weeks) == 0) || (retentionYearly.Weekdays == nil || len(retentionYearly.Weekdays) == 0)) { + if retentionYearly.FormatType == string(protectionpolicies.RetentionScheduleFormatWeekly) && (len(retentionYearly.Weeks) == 0 || len(retentionYearly.Weekdays) == 0) { return nil, fmt.Errorf("`retention_yearly.weeks` and `retention_yearly.weekdays` must be set when `retention_yearly.format_type` is `Weekly`") } @@ -868,7 +868,7 @@ func expandBackupProtectionPolicyVMWorkloadRetentionPolicy(input ProtectionPolic } else { retentionPolicy := protectionpolicies.SimpleRetentionPolicy{} - if input.SimpleRetention != nil && len(input.SimpleRetention) > 0 { + if len(input.SimpleRetention) > 0 { simpleRetention := input.SimpleRetention[0] retentionPolicy.RetentionDuration = &protectionpolicies.RetentionDuration{ diff --git a/internal/services/recoveryservices/backup_protected_vm_resource.go b/internal/services/recoveryservices/backup_protected_vm_resource.go index 9b82df4f3b72..68b2ec87fa58 100644 --- a/internal/services/recoveryservices/backup_protected_vm_resource.go +++ b/internal/services/recoveryservices/backup_protected_vm_resource.go @@ -5,6 +5,7 @@ package recoveryservices import ( "context" + "errors" "fmt" "log" "net/http" @@ -116,7 +117,7 @@ func resourceRecoveryServicesBackupProtectedVMCreate(d *pluginsdk.ResourceData, return fmt.Errorf("recovering soft deleted %s: %+v", id, err) } } else { - return fmt.Errorf(optedOutOfRecoveringSoftDeletedBackupProtectedVMFmt(parsedVmId.ID(), vaultName)) + return errors.New(optedOutOfRecoveringSoftDeletedBackupProtectedVMFmt(parsedVmId.ID(), vaultName)) } } diff --git a/internal/services/recoveryservices/backup_protected_vm_resource_test.go b/internal/services/recoveryservices/backup_protected_vm_resource_test.go index 6fbb392c01ef..0adcf7c8284e 100644 --- a/internal/services/recoveryservices/backup_protected_vm_resource_test.go +++ b/internal/services/recoveryservices/backup_protected_vm_resource_test.go @@ -302,6 +302,154 @@ func (t BackupProtectedVmResource) Exists(ctx context.Context, clients *clients. func (BackupProtectedVmResource) base(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-backup-%d" + location = "%s" +} + +resource "azurerm_virtual_network" "test" { + name = "vnet" + location = azurerm_resource_group.test.location + address_space = ["10.0.0.0/16"] + resource_group_name = azurerm_resource_group.test.name +} + +resource "azurerm_subnet" "test" { + name = "acctest_subnet" + virtual_network_name = azurerm_virtual_network.test.name + resource_group_name = azurerm_resource_group.test.name + address_prefixes = ["10.0.10.0/24"] +} + +resource "azurerm_network_interface" "test" { + name = "acctest_nic" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + + ip_configuration { + name = "acctestipconfig" + subnet_id = azurerm_subnet.test.id + private_ip_address_allocation = "Dynamic" + public_ip_address_id = azurerm_public_ip.test.id + } +} + +resource "azurerm_public_ip" "test" { + name = "acctest-ip" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "Basic" + allocation_method = "Dynamic" + domain_name_label = "acctestip%d" +} + +resource "azurerm_storage_account" "test" { + name = "acctest%s" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + account_tier = "Standard" + account_replication_type = "LRS" +} + +resource "azurerm_managed_disk" "test" { + name = "acctest-datadisk" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + storage_account_type = "Standard_LRS" + create_option = "Empty" + disk_size_gb = "1023" +} + +resource "azurerm_virtual_machine" "test" { + name = "acctestvm" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + vm_size = "Standard_D1_v2" + network_interface_ids = [azurerm_network_interface.test.id] + + delete_os_disk_on_termination = true + delete_data_disks_on_termination = true + + storage_image_reference { + publisher = "Canonical" + offer = "0001-com-ubuntu-server-jammy" + sku = "22_04-lts" + version = "latest" + } + + storage_os_disk { + name = "acctest-osdisk" + managed_disk_type = "Standard_LRS" + caching = "ReadWrite" + create_option = "FromImage" + } + + storage_data_disk { + name = "acctest-datadisk" + managed_disk_id = azurerm_managed_disk.test.id + managed_disk_type = "Standard_LRS" + disk_size_gb = azurerm_managed_disk.test.disk_size_gb + create_option = "Attach" + lun = 0 + } + + storage_data_disk { + name = "acctest-another-datadisk" + create_option = "Empty" + disk_size_gb = "1" + lun = 1 + managed_disk_type = "Standard_LRS" + } + + os_profile { + computer_name = "acctest" + admin_username = "vmadmin" + admin_password = "Password123!@#" + } + + os_profile_linux_config { + disable_password_authentication = false + } + + boot_diagnostics { + enabled = true + storage_uri = azurerm_storage_account.test.primary_blob_endpoint + } + +} + +resource "azurerm_recovery_services_vault" "test" { + name = "acctest-%d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + sku = "Standard" + + soft_delete_enabled = false +} + +resource "azurerm_backup_policy_vm" "test" { + name = "acctest-%d" + resource_group_name = azurerm_resource_group.test.name + recovery_vault_name = azurerm_recovery_services_vault.test.name + + backup { + frequency = "Daily" + time = "23:00" + } + + retention_daily { + count = 10 + } +} +`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomString, data.RandomInteger, data.RandomInteger) +} + +func (BackupProtectedVmResource) baseWithOutProvider(data acceptance.TestData) string { + return fmt.Sprintf(` resource "azurerm_resource_group" "test" { name = "acctestRG-backup-%d" location = "%s" @@ -446,6 +594,10 @@ resource "azurerm_backup_policy_vm" "test" { func (BackupProtectedVmResource) baseWithoutVM(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-backup-%d" location = "%s" @@ -670,10 +822,6 @@ resource "azurerm_backup_policy_vm" "test" { func (r BackupProtectedVmResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` -provider "azurerm" { - features {} -} - %s resource "azurerm_backup_protected_vm" "test" { @@ -689,10 +837,6 @@ resource "azurerm_backup_protected_vm" "test" { func (r BackupProtectedVmResource) updateDiskExclusion(data acceptance.TestData) string { return fmt.Sprintf(` -provider "azurerm" { - features {} -} - %s resource "azurerm_backup_protected_vm" "test" { @@ -709,6 +853,10 @@ resource "azurerm_backup_protected_vm" "test" { // For update backup policy id test func (BackupProtectedVmResource) basePolicyTest(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-backup-%d-1" location = "%s" @@ -772,10 +920,6 @@ resource "azurerm_managed_disk" "test" { // For update backup policy id test func (r BackupProtectedVmResource) withBasePolicy(data acceptance.TestData) string { return fmt.Sprintf(` -provider "azurerm" { - features {} -} - %s resource "azurerm_backup_policy_vm" "test_change_backup" { @@ -838,10 +982,6 @@ resource "azurerm_backup_protected_vm" "import" { func (r BackupProtectedVmResource) additionalVault(data acceptance.TestData) string { return fmt.Sprintf(` -provider "azurerm" { - features {} -} - %s resource "azurerm_resource_group" "test2" { @@ -930,10 +1070,6 @@ resource "azurerm_backup_protected_vm" "test" { func (r BackupProtectedVmResource) protectionStopped(data acceptance.TestData) string { return fmt.Sprintf(` -provider "azurerm" { - features {} -} - %s resource "azurerm_backup_protected_vm" "test" { @@ -959,7 +1095,7 @@ provider "azurerm" { } %s -`, r.base(data)) +`, r.baseWithOutProvider(data)) } func (r BackupProtectedVmResource) basicWithSoftDelete(data acceptance.TestData, deleted bool) string { diff --git a/internal/services/recoveryservices/parse/backup_policy.go b/internal/services/recoveryservices/parse/backup_policy.go index aad62a99727b..55f5e4d9fb6f 100644 --- a/internal/services/recoveryservices/parse/backup_policy.go +++ b/internal/services/recoveryservices/parse/backup_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func BackupPolicyID(input string) (*BackupPolicyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/backup_policy_test.go b/internal/services/recoveryservices/parse/backup_policy_test.go index 604a42b134d5..f506989a1d1e 100644 --- a/internal/services/recoveryservices/parse/backup_policy_test.go +++ b/internal/services/recoveryservices/parse/backup_policy_test.go @@ -27,7 +27,6 @@ func TestBackupPolicyID(t *testing.T) { Error bool Expected *BackupPolicyId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/parse/protected_item.go b/internal/services/recoveryservices/parse/protected_item.go index 1dd2607fd014..23f5bb10ede6 100644 --- a/internal/services/recoveryservices/parse/protected_item.go +++ b/internal/services/recoveryservices/parse/protected_item.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func ProtectedItemID(input string) (*ProtectedItemId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/protected_item_test.go b/internal/services/recoveryservices/parse/protected_item_test.go index d333b53066fd..d2c81dacc047 100644 --- a/internal/services/recoveryservices/parse/protected_item_test.go +++ b/internal/services/recoveryservices/parse/protected_item_test.go @@ -27,7 +27,6 @@ func TestProtectedItemID(t *testing.T) { Error bool Expected *ProtectedItemId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/parse/protection_container.go b/internal/services/recoveryservices/parse/protection_container.go index 413b1f6a52ae..b58b7c76991c 100644 --- a/internal/services/recoveryservices/parse/protection_container.go +++ b/internal/services/recoveryservices/parse/protection_container.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ProtectionContainerID(input string) (*ProtectionContainerId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/protection_container_test.go b/internal/services/recoveryservices/parse/protection_container_test.go index d2d48e8fa34e..5b86dc52f36d 100644 --- a/internal/services/recoveryservices/parse/protection_container_test.go +++ b/internal/services/recoveryservices/parse/protection_container_test.go @@ -27,7 +27,6 @@ func TestProtectionContainerID(t *testing.T) { Error bool Expected *ProtectionContainerId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/parse/replication_fabric.go b/internal/services/recoveryservices/parse/replication_fabric.go index d69c55b75d9d..2ef9c2dddcd3 100644 --- a/internal/services/recoveryservices/parse/replication_fabric.go +++ b/internal/services/recoveryservices/parse/replication_fabric.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ReplicationFabricID(input string) (*ReplicationFabricId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/replication_fabric_test.go b/internal/services/recoveryservices/parse/replication_fabric_test.go index b3208c2203ff..9d84ee80c91d 100644 --- a/internal/services/recoveryservices/parse/replication_fabric_test.go +++ b/internal/services/recoveryservices/parse/replication_fabric_test.go @@ -27,7 +27,6 @@ func TestReplicationFabricID(t *testing.T) { Error bool Expected *ReplicationFabricId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/parse/replication_network_mapping.go b/internal/services/recoveryservices/parse/replication_network_mapping.go index 459c996bca3c..71640f7fe525 100644 --- a/internal/services/recoveryservices/parse/replication_network_mapping.go +++ b/internal/services/recoveryservices/parse/replication_network_mapping.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func ReplicationNetworkMappingID(input string) (*ReplicationNetworkMappingId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/replication_network_mapping_test.go b/internal/services/recoveryservices/parse/replication_network_mapping_test.go index 9560bbd56d2a..ecc46127eb39 100644 --- a/internal/services/recoveryservices/parse/replication_network_mapping_test.go +++ b/internal/services/recoveryservices/parse/replication_network_mapping_test.go @@ -27,7 +27,6 @@ func TestReplicationNetworkMappingID(t *testing.T) { Error bool Expected *ReplicationNetworkMappingId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/parse/replication_policy.go b/internal/services/recoveryservices/parse/replication_policy.go index 486448e15a3b..c4057fe40d1b 100644 --- a/internal/services/recoveryservices/parse/replication_policy.go +++ b/internal/services/recoveryservices/parse/replication_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func ReplicationPolicyID(input string) (*ReplicationPolicyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/replication_policy_test.go b/internal/services/recoveryservices/parse/replication_policy_test.go index 42ff3e11e4e6..b9de8da50b39 100644 --- a/internal/services/recoveryservices/parse/replication_policy_test.go +++ b/internal/services/recoveryservices/parse/replication_policy_test.go @@ -27,7 +27,6 @@ func TestReplicationPolicyID(t *testing.T) { Error bool Expected *ReplicationPolicyId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/parse/replication_protected_item.go b/internal/services/recoveryservices/parse/replication_protected_item.go index ab68b8eaa1c6..6f552003386a 100644 --- a/internal/services/recoveryservices/parse/replication_protected_item.go +++ b/internal/services/recoveryservices/parse/replication_protected_item.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func ReplicationProtectedItemID(input string) (*ReplicationProtectedItemId, erro } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/replication_protected_item_test.go b/internal/services/recoveryservices/parse/replication_protected_item_test.go index 7efcc1937b2e..9f3abbef7c57 100644 --- a/internal/services/recoveryservices/parse/replication_protected_item_test.go +++ b/internal/services/recoveryservices/parse/replication_protected_item_test.go @@ -27,7 +27,6 @@ func TestReplicationProtectedItemID(t *testing.T) { Error bool Expected *ReplicationProtectedItemId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/parse/replication_protection_container.go b/internal/services/recoveryservices/parse/replication_protection_container.go index cafcfd988610..ffb6d00df49f 100644 --- a/internal/services/recoveryservices/parse/replication_protection_container.go +++ b/internal/services/recoveryservices/parse/replication_protection_container.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ReplicationProtectionContainerID(input string) (*ReplicationProtectionConta } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/replication_protection_container_mappings.go b/internal/services/recoveryservices/parse/replication_protection_container_mappings.go index 3099a956331f..a58b047bcca0 100644 --- a/internal/services/recoveryservices/parse/replication_protection_container_mappings.go +++ b/internal/services/recoveryservices/parse/replication_protection_container_mappings.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func ReplicationProtectionContainerMappingsID(input string) (*ReplicationProtect } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VaultName, err = id.PopSegment("vaults"); err != nil { diff --git a/internal/services/recoveryservices/parse/replication_protection_container_mappings_test.go b/internal/services/recoveryservices/parse/replication_protection_container_mappings_test.go index 2d676b42f3eb..5f4567bcf1de 100644 --- a/internal/services/recoveryservices/parse/replication_protection_container_mappings_test.go +++ b/internal/services/recoveryservices/parse/replication_protection_container_mappings_test.go @@ -27,7 +27,6 @@ func TestReplicationProtectionContainerMappingsID(t *testing.T) { Error bool Expected *ReplicationProtectionContainerMappingsId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/parse/replication_protection_container_test.go b/internal/services/recoveryservices/parse/replication_protection_container_test.go index b9e593c7f066..458185dd052d 100644 --- a/internal/services/recoveryservices/parse/replication_protection_container_test.go +++ b/internal/services/recoveryservices/parse/replication_protection_container_test.go @@ -27,7 +27,6 @@ func TestReplicationProtectionContainerID(t *testing.T) { Error bool Expected *ReplicationProtectionContainerId }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/recovery_services_vault_data_source.go b/internal/services/recoveryservices/recovery_services_vault_data_source.go index 5b1156df20fb..c98d04be67f6 100644 --- a/internal/services/recoveryservices/recovery_services_vault_data_source.go +++ b/internal/services/recoveryservices/recovery_services_vault_data_source.go @@ -21,15 +21,17 @@ import ( var _ sdk.DataSource = SiteRecoveryRecoveryVaultDataSource{} -type SiteRecoveryRecoveryVaultDataSource struct{} -type SiteRecoveryRecoveryVaultDataSourceModel struct { - Name string `tfschema:"name"` - ResourceGroupName string `tfschema:"resource_group_name"` - Location string `tfschema:"location"` - Identity []identity.ModelSystemAssignedUserAssigned `tfschema:"identity"` - Sku string `tfschema:"sku"` - Tags map[string]string `tfschema:"tags"` -} +type ( + SiteRecoveryRecoveryVaultDataSource struct{} + SiteRecoveryRecoveryVaultDataSourceModel struct { + Name string `tfschema:"name"` + ResourceGroupName string `tfschema:"resource_group_name"` + Location string `tfschema:"location"` + Identity []identity.ModelSystemAssignedUserAssigned `tfschema:"identity"` + Sku string `tfschema:"sku"` + Tags map[string]string `tfschema:"tags"` + } +) func (SiteRecoveryRecoveryVaultDataSource) ModelObject() interface{} { return &SiteRecoveryRecoveryVaultDataSourceModel{} @@ -50,6 +52,7 @@ func (SiteRecoveryRecoveryVaultDataSource) Arguments() map[string]*pluginsdk.Sch "resource_group_name": commonschema.ResourceGroupNameForDataSource(), } } + func (SiteRecoveryRecoveryVaultDataSource) Attributes() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "location": commonschema.LocationComputed(), @@ -88,7 +91,6 @@ func (r SiteRecoveryRecoveryVaultDataSource) Read() sdk.ResourceFunc { if model := resp.Model; model != nil { flattenedIdentity, err := identity.FlattenSystemAndUserAssignedMapToModel(model.Identity) - if err != nil { return fmt.Errorf("flattening `identity`: %+v", err) } diff --git a/internal/services/recoveryservices/recovery_services_vault_hyperv_host_registration_test.go b/internal/services/recoveryservices/recovery_services_vault_hyperv_host_registration_test.go index f0d91d30411a..988925c84658 100644 --- a/internal/services/recoveryservices/recovery_services_vault_hyperv_host_registration_test.go +++ b/internal/services/recoveryservices/recovery_services_vault_hyperv_host_registration_test.go @@ -18,9 +18,11 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -const vaultResourceType string = "Vaults" -const vaultProviderNameSpace string = "Microsoft.RecoveryServices" -const xmlContentVersion string = "2.0" +const ( + vaultResourceType string = "Vaults" + vaultProviderNameSpace string = "Microsoft.RecoveryServices" + xmlContentVersion string = "2.0" +) func (HyperVHostTestResource) generateHyperVHostRegistrationCert(callbackFunc func(xmlContent string) error) func(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) error { return func(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) error { diff --git a/internal/services/recoveryservices/recovery_services_vault_hyperv_host_test.go b/internal/services/recoveryservices/recovery_services_vault_hyperv_host_test.go index b1fc85c777c8..49666835a376 100644 --- a/internal/services/recoveryservices/recovery_services_vault_hyperv_host_test.go +++ b/internal/services/recoveryservices/recovery_services_vault_hyperv_host_test.go @@ -19,9 +19,11 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/utils" ) -const LetterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" -const NumberBytes = "1234567890" -const SpecialBytes = "!@#$%^()" +const ( + LetterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + NumberBytes = "1234567890" + SpecialBytes = "!@#$%^()" +) func GenerateRandomPassword(n int) string { b := make([]byte, n) diff --git a/internal/services/recoveryservices/recovery_services_vault_resource.go b/internal/services/recoveryservices/recovery_services_vault_resource.go index 46cb32707bdc..f61ef3710be1 100644 --- a/internal/services/recoveryservices/recovery_services_vault_resource.go +++ b/internal/services/recoveryservices/recovery_services_vault_resource.go @@ -298,7 +298,6 @@ func resourceRecoveryServicesVaultCreate(d *pluginsdk.ResourceData, meta interfa if err != nil { return fmt.Errorf("updating Recovery Service %s: %+v, but recovery vault was created, a manually import might be required", id.String(), err) } - } // an update on the vault will reset the vault config to default, so we handle it at last. enhancedSecurityState := backupresourcevaultconfigs.EnhancedSecurityStateEnabled @@ -594,7 +593,6 @@ func resourceRecoveryServicesVaultRead(d *pluginsdk.ResourceData, meta interface } if prop := model.Properties; prop != nil { - immutability := vaults.ImmutabilityStateDisabled if prop.SecuritySettings != nil && prop.SecuritySettings.ImmutabilitySettings != nil { immutability = pointer.From(prop.SecuritySettings.ImmutabilitySettings.State) diff --git a/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource.go b/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource.go index bc0dbe1b74db..d1c8738536fd 100644 --- a/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource.go +++ b/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource.go @@ -16,14 +16,14 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -const VaultGuardResourceType = "Microsoft.RecoveryServices/vaults/backupResourceGuardProxies" -const VaultGuardProxyDeleteRequestName = "default" // this name does not matter, this value comes from Portal. +const ( + VaultGuardResourceType = "Microsoft.RecoveryServices/vaults/backupResourceGuardProxies" + VaultGuardProxyDeleteRequestName = "default" // this name does not matter, this value comes from Portal. +) type VaultGuardProxyResource struct{} @@ -54,22 +54,13 @@ func (r VaultGuardProxyResource) Arguments() map[string]*schema.Schema { "resource_guard_id": commonschema.ResourceIDReferenceRequiredForceNew(&resourceguards.ResourceGuardId{}), } - if !features.FourPointOhBeta() { - args["name"] = &pluginsdk.Schema{ - Deprecated: "The `name` field will be removed in v4.0 of the AzureRM Provider.", - Type: pluginsdk.TypeString, - Optional: true, - ForceNew: true, - Default: "VaultProxy", - ValidateFunc: validation.StringIsNotEmpty, - } - } return args } func (r VaultGuardProxyResource) Attributes() map[string]*schema.Schema { return map[string]*schema.Schema{} } + func (r VaultGuardProxyResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -86,9 +77,6 @@ func (r VaultGuardProxyResource) Create() sdk.ResourceFunc { } name := "VaultProxy" - if !features.FourPointOhBeta() { - name = plan.Name - } id := resourceguardproxy.NewBackupResourceGuardProxyID(vaultId.SubscriptionId, vaultId.ResourceGroupName, vaultId.VaultName, name) existing, err := client.Get(ctx, id) @@ -144,10 +132,6 @@ func (r VaultGuardProxyResource) Read() sdk.ResourceFunc { VaultId: vaultId.ID(), } - if !features.FourPointOhBeta() { - state.Name = id.BackupResourceGuardProxyName - } - if resp.Model != nil && resp.Model.Properties != nil { state.ResourceGuardId = pointer.From(resp.Model.Properties.ResourceGuardResourceId) } diff --git a/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource_test.go b/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource_test.go index dcd70c231da4..f41a2be84a5d 100644 --- a/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource_test.go +++ b/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource_test.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -35,39 +34,6 @@ func TestAccSiteRecoveryVaultResourceGuardAssociation_basic(t *testing.T) { } func (VaultResourceGuardAssociationResource) basic(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-recovery-%[1]d" - location = "%s" -} - -resource "azurerm_recovery_services_vault" "test" { - name = "acctest-vault-%[1]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku = "Standard" - - soft_delete_enabled = false -} - -resource "azurerm_data_protection_resource_guard" "test" { - name = "acctest-dprg-%[1]d" - resource_group_name = azurerm_resource_group.test.name - location = azurerm_resource_group.test.location -} - -resource "azurerm_recovery_services_vault_resource_guard_association" "test" { - name = "VaultProxy" - vault_id = azurerm_recovery_services_vault.test.id - resource_guard_id = azurerm_data_protection_resource_guard.test.id -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) - } return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/recoveryservices/site_recovery_hyperv_replication_policy_resource.go b/internal/services/recoveryservices/site_recovery_hyperv_replication_policy_resource.go index bc66dc1bca1b..9ab0beff0016 100644 --- a/internal/services/recoveryservices/site_recovery_hyperv_replication_policy_resource.go +++ b/internal/services/recoveryservices/site_recovery_hyperv_replication_policy_resource.go @@ -161,7 +161,6 @@ func (r ReplicationPolicyHyperVResource) Read() sdk.ResourceFunc { if detail.RecoveryPointHistoryDurationInHours != nil { state.RecoveryPointRetentionInHours = *detail.RecoveryPointHistoryDurationInHours } - } } return metadata.Encode(&state) diff --git a/internal/services/recoveryservices/site_recovery_protection_container_mapping_resource.go b/internal/services/recoveryservices/site_recovery_protection_container_mapping_resource.go index f7d6a4d90abf..58b513653dfd 100644 --- a/internal/services/recoveryservices/site_recovery_protection_container_mapping_resource.go +++ b/internal/services/recoveryservices/site_recovery_protection_container_mapping_resource.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/recoveryservices/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/recoveryservices/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -107,12 +106,7 @@ func resourceSiteRecoveryProtectionContainerMapping() *pluginsdk.Resource { "authentication_type": { Type: pluginsdk.TypeString, Optional: true, - Default: func() interface{} { - if !features.FourPointOhBeta() { - return nil - } - return string(replicationprotectioncontainermappings.AutomationAccountAuthenticationTypeSystemAssignedIdentity) - }(), + Default: string(replicationprotectioncontainermappings.AutomationAccountAuthenticationTypeSystemAssignedIdentity), // The Swagger definition defaults to `RunAsAccount` but it is deprecated. // deprecation details: https://learn.microsoft.com/en-us/azure/automation/whats-new#support-for-run-as-accounts ValidateFunc: validation.StringInSlice(replicationprotectioncontainermappings.PossibleValuesForAutomationAccountAuthenticationType(), false), diff --git a/internal/services/recoveryservices/site_recovery_protection_container_mapping_resource_test.go b/internal/services/recoveryservices/site_recovery_protection_container_mapping_resource_test.go index 7b041ed5cab2..94bd10dd439d 100644 --- a/internal/services/recoveryservices/site_recovery_protection_container_mapping_resource_test.go +++ b/internal/services/recoveryservices/site_recovery_protection_container_mapping_resource_test.go @@ -32,6 +32,7 @@ func TestAccSiteRecoveryProtectionContainerMapping_basic(t *testing.T) { data.ImportStep(), }) } + func TestAccSiteRecoveryProtectionContainerMapping_withSystemAssignedAutoUpdate(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_site_recovery_protection_container_mapping", "test") r := SiteRecoveryProtectionContainerMappingResource{} diff --git a/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go b/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go index d9176dc05f29..ac57e36b8eb4 100644 --- a/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go +++ b/internal/services/recoveryservices/site_recovery_replicated_vm_resource.go @@ -28,7 +28,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/recoveryservices/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/recoveryservices/validate" @@ -364,14 +363,6 @@ func networkInterfaceResource() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - out.Schema["is_primary"] = &pluginsdk.Schema{ - Deprecated: "this property is not used and will be removed in version 4.0 of the provider", - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - } - } return out } @@ -465,41 +456,30 @@ func resourceSiteRecoveryReplicatedItemCreate(d *pluginsdk.ResourceData, meta in } } - var managedDisks []replicationprotecteditems.A2AVMManagedDiskInputDetails - - for _, raw := range d.Get("managed_disk").(*pluginsdk.Set).List() { + managedDisksGet := d.Get("managed_disk").(*pluginsdk.Set).List() + managedDisks := make([]replicationprotecteditems.A2AVMManagedDiskInputDetails, 0, len(managedDisksGet)) + for _, raw := range managedDisksGet { diskInput := raw.(map[string]interface{}) - diskId := diskInput["disk_id"].(string) - primaryStagingAzureStorageAccountID := diskInput["staging_storage_account_id"].(string) - recoveryResourceGroupId := diskInput["target_resource_group_id"].(string) - targetReplicaDiskType := diskInput["target_replica_disk_type"].(string) - targetDiskType := diskInput["target_disk_type"].(string) - targetEncryptionDiskSetID := diskInput["target_disk_encryption_set_id"].(string) - managedDisks = append(managedDisks, replicationprotecteditems.A2AVMManagedDiskInputDetails{ - DiskId: diskId, - PrimaryStagingAzureStorageAccountId: primaryStagingAzureStorageAccountID, - RecoveryResourceGroupId: recoveryResourceGroupId, - RecoveryReplicaDiskAccountType: &targetReplicaDiskType, - RecoveryTargetDiskAccountType: &targetDiskType, - RecoveryDiskEncryptionSetId: &targetEncryptionDiskSetID, + DiskId: diskInput["disk_id"].(string), + PrimaryStagingAzureStorageAccountId: diskInput["staging_storage_account_id"].(string), + RecoveryResourceGroupId: diskInput["target_resource_group_id"].(string), + RecoveryReplicaDiskAccountType: pointer.To(diskInput["target_replica_disk_type"].(string)), + RecoveryTargetDiskAccountType: pointer.To(diskInput["target_disk_type"].(string)), + RecoveryDiskEncryptionSetId: pointer.To(diskInput["target_disk_encryption_set_id"].(string)), DiskEncryptionInfo: expandDiskEncryption(diskInput["target_disk_encryption"].([]interface{})), }) } - var vmDisks []replicationprotecteditems.A2AVMDiskInputDetails - for _, raw := range d.Get("unmanaged_disk").(*pluginsdk.Set).List() { + vmDisksGet := d.Get("unmanaged_disk").(*pluginsdk.Set).List() + vmDisks := make([]replicationprotecteditems.A2AVMDiskInputDetails, 0, len(vmDisksGet)) + for _, raw := range vmDisksGet { diskInput := raw.(map[string]interface{}) - diskUri := diskInput["disk_uri"].(string) - primaryStagingAzureStorageAccountID := diskInput["staging_storage_account_id"].(string) - recoveryAzureStorageAccountId := diskInput["target_storage_account_id"].(string) - vmDisks = append(vmDisks, replicationprotecteditems.A2AVMDiskInputDetails{ - DiskUri: diskUri, - PrimaryStagingAzureStorageAccountId: primaryStagingAzureStorageAccountID, - RecoveryAzureStorageAccountId: recoveryAzureStorageAccountId, + DiskUri: diskInput["disk_uri"].(string), + PrimaryStagingAzureStorageAccountId: diskInput["staging_storage_account_id"].(string), + RecoveryAzureStorageAccountId: diskInput["target_storage_account_id"].(string), }) - } parameters := replicationprotecteditems.EnableProtectionInput{ @@ -511,11 +491,11 @@ func resourceSiteRecoveryReplicatedItemCreate(d *pluginsdk.ResourceData, meta in RecoveryResourceGroupId: &targetResourceGroupId, RecoveryAvailabilitySetId: targetAvailabilitySetID, RecoveryAvailabilityZone: targetAvailabilityZone, - MultiVMGroupName: utils.String(d.Get("multi_vm_group_name").(string)), - RecoveryProximityPlacementGroupId: utils.String(d.Get("target_proximity_placement_group_id").(string)), - RecoveryBootDiagStorageAccountId: utils.String(d.Get("target_boot_diagnostic_storage_account_id").(string)), - RecoveryCapacityReservationGroupId: utils.String(d.Get("target_capacity_reservation_group_id").(string)), - RecoveryVirtualMachineScaleSetId: utils.String(d.Get("target_virtual_machine_scale_set_id").(string)), + MultiVMGroupName: pointer.To(d.Get("multi_vm_group_name").(string)), + RecoveryProximityPlacementGroupId: pointer.To(d.Get("target_proximity_placement_group_id").(string)), + RecoveryBootDiagStorageAccountId: pointer.To(d.Get("target_boot_diagnostic_storage_account_id").(string)), + RecoveryCapacityReservationGroupId: pointer.To(d.Get("target_capacity_reservation_group_id").(string)), + RecoveryVirtualMachineScaleSetId: pointer.To(d.Get("target_virtual_machine_scale_set_id").(string)), VMManagedDisks: &managedDisks, VMDisks: &vmDisks, RecoveryExtendedLocation: expandEdgeZone(d.Get("target_edge_zone").(string)), @@ -569,8 +549,8 @@ func resourceSiteRecoveryReplicatedItemUpdateInternal(ctx context.Context, d *pl targetAvailabilitySetID = nil } - var vmNics []replicationprotecteditems.VMNicInputDetails nicList := d.Get("network_interface").(*pluginsdk.Set).List() + vmNics := make([]replicationprotecteditems.VMNicInputDetails, 0, len(nicList)) for _, raw := range nicList { vmNicInput := raw.(map[string]interface{}) sourceNicId := vmNicInput["source_network_interface_id"].(string) @@ -602,8 +582,9 @@ func resourceSiteRecoveryReplicatedItemUpdateInternal(ctx context.Context, d *pl }) } - var managedDisks []replicationprotecteditems.A2AVMManagedDiskUpdateDetails - for _, raw := range d.Get("managed_disk").(*pluginsdk.Set).List() { + managedDisksGet := d.Get("managed_disk").(*pluginsdk.Set).List() + managedDisks := make([]replicationprotecteditems.A2AVMManagedDiskUpdateDetails, 0, len(managedDisksGet)) + for _, raw := range managedDisksGet { diskInput := raw.(map[string]interface{}) diskId := diskInput["disk_id"].(string) targetReplicaDiskType := diskInput["target_replica_disk_type"].(string) diff --git a/internal/services/recoveryservices/site_recovery_replicated_vm_resource_test.go b/internal/services/recoveryservices/site_recovery_replicated_vm_resource_test.go index 8fde6a96ac2a..f039b0cfa89a 100644 --- a/internal/services/recoveryservices/site_recovery_replicated_vm_resource_test.go +++ b/internal/services/recoveryservices/site_recovery_replicated_vm_resource_test.go @@ -2154,7 +2154,6 @@ resource "azurerm_site_recovery_replicated_vm" "test" { ] } `, r.template(data), data.RandomInteger) - } func (r SiteRecoveryReplicatedVmResource) withAvailabilitySet(data acceptance.TestData) string { diff --git a/internal/services/recoveryservices/site_recovery_replication_policy_data_source.go b/internal/services/recoveryservices/site_recovery_replication_policy_data_source.go index 57aff5dba972..09359f47066a 100644 --- a/internal/services/recoveryservices/site_recovery_replication_policy_data_source.go +++ b/internal/services/recoveryservices/site_recovery_replication_policy_data_source.go @@ -18,7 +18,6 @@ import ( func dataSourceSiteRecoveryReplicationPolicy() *pluginsdk.Resource { return &pluginsdk.Resource{ - Read: dataSourceSiteRecoveryReplicationPolicyRead, Timeouts: &pluginsdk.ResourceTimeout{ diff --git a/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource.go b/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource.go index 1427a171087f..62570510d813 100644 --- a/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource.go +++ b/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource.go @@ -17,7 +17,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -121,9 +120,7 @@ func (r SiteRecoveryReplicationRecoveryPlanResource) Arguments() map[string]*plu // lintignore:S013 "shutdown_recovery_group": { Type: pluginsdk.TypeList, - Required: features.FourPointOhBeta(), - Optional: !features.FourPointOhBeta(), - Computed: !features.FourPointOhBeta(), + Required: true, MinItems: 1, MaxItems: 1, Elem: &pluginsdk.Resource{ @@ -146,9 +143,7 @@ func (r SiteRecoveryReplicationRecoveryPlanResource) Arguments() map[string]*plu // lintignore:S013 "failover_recovery_group": { Type: pluginsdk.TypeList, - Required: features.FourPointOhBeta(), - Optional: !features.FourPointOhBeta(), - Computed: !features.FourPointOhBeta(), + Required: true, MinItems: 1, MaxItems: 1, Elem: &pluginsdk.Resource{ @@ -171,9 +166,7 @@ func (r SiteRecoveryReplicationRecoveryPlanResource) Arguments() map[string]*plu // lintignore:S013 "boot_recovery_group": { Type: pluginsdk.TypeList, - Required: features.FourPointOhBeta(), - Optional: !features.FourPointOhBeta(), - Computed: !features.FourPointOhBeta(), + Required: true, MinItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ @@ -204,52 +197,6 @@ func (r SiteRecoveryReplicationRecoveryPlanResource) Arguments() map[string]*plu "azure_to_azure_settings": replicationRecoveryPlanA2ASchema(), } - if !features.FourPointOhBeta() { - schema["recovery_group"] = &pluginsdk.Schema{ - Deprecated: "the `recovery_group` block has been deprecated in favour of the `shutdown_recovery_group`, `failover_recovery_group` and `boot_recovery_group` and will be removed in version 4.0 of the provider.", - Type: pluginsdk.TypeSet, - Optional: true, - Computed: true, - MinItems: 3, - ConflictsWith: []string{ - "shutdown_recovery_group", - "failover_recovery_group", - "boot_recovery_group", - }, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "type": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice([]string{ - string(replicationrecoveryplans.RecoveryPlanGroupTypeBoot), - string(replicationrecoveryplans.RecoveryPlanGroupTypeShutdown), - string(replicationrecoveryplans.RecoveryPlanGroupTypeFailover), - }, false), - }, - "replicated_protected_items": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: azure.ValidateResourceID, - }, - }, - "pre_action": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: replicationRecoveryPlanActionSchema(), - }, - "post_action": { - Type: pluginsdk.TypeList, - Optional: true, - Elem: replicationRecoveryPlanActionSchema(), - }, - }, - }, - } - } - return schema } @@ -434,7 +381,7 @@ func (r SiteRecoveryReplicationRecoveryPlanResource) Create() sdk.ResourceFunc { }, } - if model.A2ASettings != nil && len(model.A2ASettings) == 1 { + if len(model.A2ASettings) == 1 { parameters.Properties.ProviderSpecificInput = expandA2ASettings(model.A2ASettings[0]) } @@ -618,7 +565,6 @@ func expandRecoveryGroup(input []RecoveryGroupModel) ([]replicationrecoveryplans StartGroupActions: &preActions, EndGroupActions: &postActions, }) - } return output, nil } @@ -755,7 +701,6 @@ func validateRecoveryGroup(input []RecoveryGroupModel) (bool, error) { return false, fmt.Errorf("`fabric_location` must not be specified for `recovery_group` with `ManualActionDetails` type.") } } - } if bootCount == 0 || shutdownCount == 0 || failoverCount == 0 { diff --git a/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource_test.go b/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource_test.go index 36fbce384d31..e19ae9e0c3c1 100644 --- a/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource_test.go +++ b/internal/services/recoveryservices/site_recovery_replication_recovery_plan_resource_test.go @@ -489,7 +489,6 @@ resource "azurerm_site_recovery_replication_recovery_plan" "test" { } `, r.template(data), data.RandomInteger) - } func (r SiteRecoveryReplicationRecoveryPlan) withMultiActions(data acceptance.TestData) string { diff --git a/internal/services/recoveryservices/site_recovery_vmware_replication_policy_association_resource.go b/internal/services/recoveryservices/site_recovery_vmware_replication_policy_association_resource.go index 507ba3bf64a0..35e282b5d437 100644 --- a/internal/services/recoveryservices/site_recovery_vmware_replication_policy_association_resource.go +++ b/internal/services/recoveryservices/site_recovery_vmware_replication_policy_association_resource.go @@ -161,7 +161,6 @@ func (s VMWareReplicationPolicyAssociationResource) Read() sdk.ResourceFunc { if model := resp.Model; model != nil { if prop := model.Properties; prop != nil { - policyId := "" // tracked on https://github.com/Azure/azure-rest-api-specs/issues/24751 if prop.PolicyId != nil && *prop.PolicyId != "" { diff --git a/internal/services/recoveryservices/site_recovery_vmware_replication_policy_resource.go b/internal/services/recoveryservices/site_recovery_vmware_replication_policy_resource.go index 61ce499ce584..b4d42e424a68 100644 --- a/internal/services/recoveryservices/site_recovery_vmware_replication_policy_resource.go +++ b/internal/services/recoveryservices/site_recovery_vmware_replication_policy_resource.go @@ -39,6 +39,7 @@ func (r VMWareReplicationPolicyResource) ModelObject() interface{} { func (r VMWareReplicationPolicyResource) ResourceType() string { return "azurerm_site_recovery_vmware_replication_policy" } + func (r VMWareReplicationPolicyResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { return validate.ReplicationPolicyID } @@ -222,7 +223,6 @@ func (r VMWareReplicationPolicyResource) Update() sdk.ResourceFunc { return nil }, } - } func (r VMWareReplicationPolicyResource) Delete() sdk.ResourceFunc { diff --git a/internal/services/recoveryservices/validate/backup_policy_id_test.go b/internal/services/recoveryservices/validate/backup_policy_id_test.go index 73ec272f6f11..aa3e8c89c293 100644 --- a/internal/services/recoveryservices/validate/backup_policy_id_test.go +++ b/internal/services/recoveryservices/validate/backup_policy_id_test.go @@ -12,7 +12,6 @@ func TestBackupPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/validate/protected_item_id_test.go b/internal/services/recoveryservices/validate/protected_item_id_test.go index 1084986161b9..6f2bd2eb0d0d 100644 --- a/internal/services/recoveryservices/validate/protected_item_id_test.go +++ b/internal/services/recoveryservices/validate/protected_item_id_test.go @@ -12,7 +12,6 @@ func TestProtectedItemID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/validate/protection_container_id_test.go b/internal/services/recoveryservices/validate/protection_container_id_test.go index d4d202b3e96e..4ed4ec16b01c 100644 --- a/internal/services/recoveryservices/validate/protection_container_id_test.go +++ b/internal/services/recoveryservices/validate/protection_container_id_test.go @@ -12,7 +12,6 @@ func TestProtectionContainerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/validate/replication_fabric_id_test.go b/internal/services/recoveryservices/validate/replication_fabric_id_test.go index 6962330e7041..10e57e09f7f7 100644 --- a/internal/services/recoveryservices/validate/replication_fabric_id_test.go +++ b/internal/services/recoveryservices/validate/replication_fabric_id_test.go @@ -12,7 +12,6 @@ func TestReplicationFabricID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/validate/replication_network_mapping_id_test.go b/internal/services/recoveryservices/validate/replication_network_mapping_id_test.go index 347a411aba33..0e3190cb1869 100644 --- a/internal/services/recoveryservices/validate/replication_network_mapping_id_test.go +++ b/internal/services/recoveryservices/validate/replication_network_mapping_id_test.go @@ -12,7 +12,6 @@ func TestReplicationNetworkMappingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/validate/replication_policy_id_test.go b/internal/services/recoveryservices/validate/replication_policy_id_test.go index 390efa97a2d9..3fe47982e26c 100644 --- a/internal/services/recoveryservices/validate/replication_policy_id_test.go +++ b/internal/services/recoveryservices/validate/replication_policy_id_test.go @@ -12,7 +12,6 @@ func TestReplicationPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/validate/replication_protected_item_id_test.go b/internal/services/recoveryservices/validate/replication_protected_item_id_test.go index 9c2f9da3dcd4..c993646ea1d4 100644 --- a/internal/services/recoveryservices/validate/replication_protected_item_id_test.go +++ b/internal/services/recoveryservices/validate/replication_protected_item_id_test.go @@ -12,7 +12,6 @@ func TestReplicationProtectedItemID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/validate/replication_protection_container_id_test.go b/internal/services/recoveryservices/validate/replication_protection_container_id_test.go index 3258f3014802..bd151ccca8c4 100644 --- a/internal/services/recoveryservices/validate/replication_protection_container_id_test.go +++ b/internal/services/recoveryservices/validate/replication_protection_container_id_test.go @@ -12,7 +12,6 @@ func TestReplicationProtectionContainerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/recoveryservices/validate/replication_protection_container_mappings_id_test.go b/internal/services/recoveryservices/validate/replication_protection_container_mappings_id_test.go index 461b23df9150..d2fda736a043 100644 --- a/internal/services/recoveryservices/validate/replication_protection_container_mappings_id_test.go +++ b/internal/services/recoveryservices/validate/replication_protection_container_mappings_id_test.go @@ -12,7 +12,6 @@ func TestReplicationProtectionContainerMappingsID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/redhatopenshift/validate/cluster_version_test.go b/internal/services/redhatopenshift/validate/cluster_version_test.go index e2a86154df8c..2a962e6a22a1 100644 --- a/internal/services/redhatopenshift/validate/cluster_version_test.go +++ b/internal/services/redhatopenshift/validate/cluster_version_test.go @@ -10,7 +10,6 @@ func TestClusterVersion(t *testing.T) { Input string Valid bool }{ - { Input: "", Valid: false, diff --git a/internal/services/redis/redis_cache_access_policy_assignment_resource.go b/internal/services/redis/redis_cache_access_policy_assignment_resource.go index 945ac293d03b..b8e002011be3 100644 --- a/internal/services/redis/redis_cache_access_policy_assignment_resource.go +++ b/internal/services/redis/redis_cache_access_policy_assignment_resource.go @@ -16,8 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" ) -type RedisCacheAccessPolicyAssignmentResource struct { -} +type RedisCacheAccessPolicyAssignmentResource struct{} var _ sdk.Resource = RedisCacheAccessPolicyAssignmentResource{} diff --git a/internal/services/redis/redis_cache_data_source.go b/internal/services/redis/redis_cache_data_source.go index 98f533b9b510..d459c3ef649f 100644 --- a/internal/services/redis/redis_cache_data_source.go +++ b/internal/services/redis/redis_cache_data_source.go @@ -5,6 +5,7 @@ package redis import ( "fmt" + "strconv" "time" "github.com/hashicorp/go-azure-helpers/lang/pointer" @@ -17,7 +18,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules" "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" ) @@ -245,20 +245,6 @@ func dataSourceRedisCache() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["enable_non_ssl_port"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - Deprecated: "`enable_non_ssl_port` will be removed in favour of the property `non_ssl_port_enabled` in version 4.0 of the AzureRM Provider.", - } - resource.Schema["redis_configuration"].Elem.(*pluginsdk.Resource).Schema["enable_authentication"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Default: true, - Deprecated: "`enable_authentication` will be removed in favour of the property `authentication_enabled` in version 4.0 of the AzureRM Provider.", - } - } - return resource } @@ -317,10 +303,6 @@ func dataSourceRedisCacheRead(d *pluginsdk.ResourceData, meta interface{}) error d.Set("port", props.Port) d.Set("non_ssl_port_enabled", props.EnableNonSslPort) - if !features.FourPointOhBeta() { - d.Set("enable_non_ssl_port", props.EnableNonSslPort) - } - shardCount := 0 if props.ShardCount != nil { shardCount = int(*props.ShardCount) @@ -338,7 +320,7 @@ func dataSourceRedisCacheRead(d *pluginsdk.ResourceData, meta interface{}) error } d.Set("subnet_id", subnetId) - redisConfiguration, err := flattenRedisConfiguration(props.RedisConfiguration) + redisConfiguration, err := flattenDataSourceRedisConfiguration(props.RedisConfiguration) if err != nil { return fmt.Errorf("flattening `redis_configuration`: %+v", err) } @@ -367,3 +349,103 @@ func dataSourceRedisCacheRead(d *pluginsdk.ResourceData, meta interface{}) error return nil } + +func flattenDataSourceRedisConfiguration(input *redis.RedisCommonPropertiesRedisConfiguration) ([]interface{}, error) { + outputs := make(map[string]interface{}) + + if input.AadEnabled != nil { + a, err := strconv.ParseBool(*input.AadEnabled) + if err != nil { + return nil, fmt.Errorf("parsing `aad-enabled` %q: %+v", *input.AadEnabled, err) + } + outputs["active_directory_authentication_enabled"] = a + } + + if input.Maxclients != nil { + i, err := strconv.Atoi(*input.Maxclients) + if err != nil { + return nil, fmt.Errorf("parsing `maxclients` %q: %+v", *input.Maxclients, err) + } + outputs["maxclients"] = i + } + if input.MaxmemoryDelta != nil { + i, err := strconv.Atoi(*input.MaxmemoryDelta) + if err != nil { + return nil, fmt.Errorf("parsing `maxmemory-delta` %q: %+v", *input.MaxmemoryDelta, err) + } + outputs["maxmemory_delta"] = i + } + if input.MaxmemoryReserved != nil { + i, err := strconv.Atoi(*input.MaxmemoryReserved) + if err != nil { + return nil, fmt.Errorf("parsing `maxmemory-reserved` %q: %+v", *input.MaxmemoryReserved, err) + } + outputs["maxmemory_reserved"] = i + } + if input.MaxmemoryPolicy != nil { + outputs["maxmemory_policy"] = *input.MaxmemoryPolicy + } + + if input.PreferredDataPersistenceAuthMethod != nil { + outputs["data_persistence_authentication_method"] = *input.PreferredDataPersistenceAuthMethod + } + + if input.MaxfragmentationmemoryReserved != nil { + i, err := strconv.Atoi(*input.MaxfragmentationmemoryReserved) + if err != nil { + return nil, fmt.Errorf("parsing `maxfragmentationmemory-reserved` %q: %+v", *input.MaxfragmentationmemoryReserved, err) + } + outputs["maxfragmentationmemory_reserved"] = i + } + + // delta, reserved, enabled, frequency,, count, + if input.RdbBackupEnabled != nil { + b, err := strconv.ParseBool(*input.RdbBackupEnabled) + if err != nil { + return nil, fmt.Errorf("parsing `rdb-backup-enabled` %q: %+v", *input.RdbBackupEnabled, err) + } + outputs["rdb_backup_enabled"] = b + } + if input.RdbBackupFrequency != nil { + i, err := strconv.Atoi(*input.RdbBackupFrequency) + if err != nil { + return nil, fmt.Errorf("parsing `rdb-backup-frequency` %q: %+v", *input.RdbBackupFrequency, err) + } + outputs["rdb_backup_frequency"] = i + } + if input.RdbBackupMaxSnapshotCount != nil { + i, err := strconv.Atoi(*input.RdbBackupMaxSnapshotCount) + if err != nil { + return nil, fmt.Errorf("parsing `rdb-backup-max-snapshot-count` %q: %+v", *input.RdbBackupMaxSnapshotCount, err) + } + outputs["rdb_backup_max_snapshot_count"] = i + } + if input.RdbStorageConnectionString != nil { + outputs["rdb_storage_connection_string"] = *input.RdbStorageConnectionString + } + outputs["notify_keyspace_events"] = pointer.From(input.NotifyKeyspaceEvents) + + if v := input.AofBackupEnabled; v != nil { + b, err := strconv.ParseBool(*v) + if err != nil { + return nil, fmt.Errorf("parsing `aof-backup-enabled` %q: %+v", *v, err) + } + outputs["aof_backup_enabled"] = b + } + if input.AofStorageConnectionString0 != nil { + outputs["aof_storage_connection_string_0"] = *input.AofStorageConnectionString0 + } + if input.AofStorageConnectionString1 != nil { + outputs["aof_storage_connection_string_1"] = *input.AofStorageConnectionString1 + } + + // `authnotrequired` is not set for instances launched outside a VNET + outputs["authentication_enabled"] = true + if v := input.Authnotrequired; v != nil { + outputs["authentication_enabled"] = isAuthRequiredAsBool(*v) + } + + outputs["storage_account_subscription_id"] = pointer.From(input.StorageSubscriptionId) + + return []interface{}{outputs}, nil +} diff --git a/internal/services/redis/redis_cache_resource.go b/internal/services/redis/redis_cache_resource.go index b26089b58b9d..3de3a2a4c349 100644 --- a/internal/services/redis/redis_cache_resource.go +++ b/internal/services/redis/redis_cache_resource.go @@ -25,7 +25,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" azValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/network" "github.com/hashicorp/terraform-provider-azurerm/internal/services/redis/migration" @@ -399,81 +398,6 @@ func resourceRedisCache() *pluginsdk.Resource { ), } - if !features.FourPointOhBeta() { - resource.Schema["family"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringInSlice(redis.PossibleValuesForSkuFamily(), true), - DiffSuppressFunc: suppress.CaseDifference, - } - - resource.Schema["enable_non_ssl_port"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Default: false, - Optional: true, - ConflictsWith: []string{"non_ssl_port_enabled"}, - Deprecated: "`enable_non_ssl_port` will be removed in favour of the property `non_ssl_port_enabled` in version 4.0 of the AzureRM Provider.", - } - - resource.Schema["non_ssl_port_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - Optional: true, - ConflictsWith: []string{"enable_non_ssl_port"}, - } - - resource.Schema["redis_configuration"].Elem.(*pluginsdk.Resource).Schema["enable_authentication"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Default: true, - ConflictsWith: []string{"redis_configuration.0.authentication_enabled"}, - Deprecated: "`enable_authentication` will be removed in favour of the property `authentication_enabled` in version 4.0 of the AzureRM Provider.", - } - - resource.Schema["redis_configuration"].Elem.(*pluginsdk.Resource).Schema["authentication_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - ConflictsWith: []string{"redis_configuration.0.enable_authentication"}, - } - - resource.Schema["non_ssl_port_enabled"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - Optional: true, - } - - resource.Schema["replicas_per_master"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - // Can't make more than 3 replicas in portal, assuming it's a limitation - ValidateFunc: validation.IntBetween(1, 3), - } - - resource.Schema["replicas_per_primary"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(1, 3), - } - - resource.Schema["redis_version"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{"4", "6"}, false), - DiffSuppressFunc: func(_, old, new string, _ *pluginsdk.ResourceData) bool { - n := strings.Split(old, ".") - if len(n) >= 1 { - newMajor := n[0] - return new == newMajor - } - return false - }, - } - } - return resource } @@ -512,9 +436,6 @@ func resourceRedisCacheCreate(d *pluginsdk.ResourceData, meta interface{}) error } enableNonSslPort := d.Get("non_ssl_port_enabled") - if v, ok := d.GetOk("enable_non_ssl_port"); ok && !features.FourPointOhBeta() { - enableNonSslPort = v - } parameters := redis.RedisCreateParameters{ Location: location.Normalize(d.Get("location").(string)), @@ -625,9 +546,6 @@ func resourceRedisCacheUpdate(d *pluginsdk.ResourceData, meta interface{}) error } enableNonSslPort := d.Get("non_ssl_port_enabled") - if v, ok := d.GetOk("enable_non_ssl_port"); ok && !features.FourPointOhBeta() { - enableNonSslPort = v - } t := d.Get("tags").(map[string]interface{}) expandedTags := tags.Expand(t) @@ -803,20 +721,16 @@ func resourceRedisCacheRead(d *pluginsdk.ResourceData, meta interface{}) error { d.Set("capacity", int(props.Sku.Capacity)) d.Set("family", string(props.Sku.Family)) d.Set("sku_name", string(props.Sku.Name)) - d.Set("ssl_port", props.SslPort) d.Set("hostname", props.HostName) + d.Set("port", props.Port) + d.Set("non_ssl_port_enabled", props.EnableNonSslPort) + minimumTlsVersion := string(redis.TlsVersionOnePointTwo) if props.MinimumTlsVersion != nil { minimumTlsVersion = string(*props.MinimumTlsVersion) } d.Set("minimum_tls_version", minimumTlsVersion) - d.Set("port", props.Port) - - d.Set("non_ssl_port_enabled", props.EnableNonSslPort) - if !features.FourPointOhBeta() { - d.Set("enable_non_ssl_port", props.EnableNonSslPort) - } shardCount := 0 if props.ShardCount != nil { @@ -846,7 +760,7 @@ func resourceRedisCacheRead(d *pluginsdk.ResourceData, meta interface{}) error { d.Set("redis_version", props.RedisVersion) d.Set("tenant_settings", flattenTenantSettings(props.TenantSettings)) - redisConfiguration, err := flattenRedisConfiguration(props.RedisConfiguration) + redisConfiguration, err := flattenRedisConfiguration(d, props.RedisConfiguration) if err != nil { return fmt.Errorf("flattening `redis_configuration`: %+v", err) } @@ -1022,9 +936,6 @@ func expandRedisConfiguration(d *pluginsdk.ResourceData) (*redis.RedisCommonProp } authEnabled := raw["authentication_enabled"].(bool) - if v, ok := raw["enable_authentication"]; ok && !features.FourPointOhBeta() { - authEnabled = v.(bool) - } // Redis authentication can only be disabled if it is launched inside a VNET. if _, isPrivate := d.GetOk("subnet_id"); !isPrivate { @@ -1092,7 +1003,7 @@ func flattenTenantSettings(input *map[string]string) map[string]string { return output } -func flattenRedisConfiguration(input *redis.RedisCommonPropertiesRedisConfiguration) ([]interface{}, error) { +func flattenRedisConfiguration(d *pluginsdk.ResourceData, input *redis.RedisCommonPropertiesRedisConfiguration) ([]interface{}, error) { outputs := make(map[string]interface{}) if input.AadEnabled != nil { @@ -1163,7 +1074,12 @@ func flattenRedisConfiguration(input *redis.RedisCommonPropertiesRedisConfigurat outputs["rdb_backup_max_snapshot_count"] = i } if input.RdbStorageConnectionString != nil { - outputs["rdb_storage_connection_string"] = *input.RdbStorageConnectionString + // The API returns AccountKey=[key hidden] instead of the value being passed in so we'll just set that value to what Terraform thinks the value is + if len(strings.Split(*input.RdbStorageConnectionString, "AccountKey=[key hidden]")) > 1 { + outputs["rdb_storage_connection_string"] = d.Get("redis_configuration.0.rdb_storage_connection_string") + } else { + outputs["rdb_storage_connection_string"] = *input.RdbStorageConnectionString + } } outputs["notify_keyspace_events"] = pointer.From(input.NotifyKeyspaceEvents) @@ -1175,10 +1091,20 @@ func flattenRedisConfiguration(input *redis.RedisCommonPropertiesRedisConfigurat outputs["aof_backup_enabled"] = b } if input.AofStorageConnectionString0 != nil { - outputs["aof_storage_connection_string_0"] = *input.AofStorageConnectionString0 + // The API returns AccountKey=[key hidden] instead of the value being passed in so we'll just set that value to what Terraform thinks the value is + if len(strings.Split(*input.AofStorageConnectionString0, "AccountKey=[key hidden]")) > 1 { + outputs["aof_storage_connection_string_0"] = d.Get("redis_configuration.0.aof_storage_connection_string_0") + } else { + outputs["aof_storage_connection_string_0"] = *input.AofStorageConnectionString0 + } } if input.AofStorageConnectionString1 != nil { - outputs["aof_storage_connection_string_1"] = *input.AofStorageConnectionString1 + // The API returns AccountKey=[key hidden] instead of the value being passed in so we'll just set that value to what Terraform thinks the value is + if len(strings.Split(*input.AofStorageConnectionString1, "AccountKey=[key hidden]")) > 1 { + outputs["aof_storage_connection_string_1"] = d.Get("redis_configuration.0.aof_storage_connection_string_1") + } else { + outputs["aof_storage_connection_string_1"] = *input.AofStorageConnectionString1 + } } // `authnotrequired` is not set for instances launched outside a VNET @@ -1187,14 +1113,6 @@ func flattenRedisConfiguration(input *redis.RedisCommonPropertiesRedisConfigurat outputs["authentication_enabled"] = isAuthRequiredAsBool(*v) } - if !features.FourPointOhBeta() { - // `authnotrequired` is not set for instances launched outside a VNET - outputs["enable_authentication"] = true - if v := input.Authnotrequired; v != nil { - outputs["enable_authentication"] = isAuthRequiredAsBool(*v) - } - } - outputs["storage_account_subscription_id"] = pointer.From(input.StorageSubscriptionId) return []interface{}{outputs}, nil diff --git a/internal/services/redis/redis_cache_resource_test.go b/internal/services/redis/redis_cache_resource_test.go index ab800e7765c4..2f70a53129e4 100644 --- a/internal/services/redis/redis_cache_resource_test.go +++ b/internal/services/redis/redis_cache_resource_test.go @@ -175,11 +175,6 @@ func TestAccRedisCache_BackupDisabled(t *testing.T) { Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), - // `redis_configuration.0.aof_storage_connection_string_0` and `redis_configuration.0.aof_storage_connection_string_1` are returned as: - // "...;AccountKey=[key hidden]" rather than "...;AccountKey=fsjfvjnfnf" - // TODO: remove this once the Bug's been fixed: - // https://github.com/Azure/azure-rest-api-specs/issues/3037 - ExpectNonEmptyPlan: true, }, }) } @@ -194,11 +189,6 @@ func TestAccRedisCache_BackupEnabled(t *testing.T) { Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), - // `redis_configuration.0.rdb_storage_connection_string` is returned as: - // "...;AccountKey=[key hidden]" rather than "...;AccountKey=fsjfvjnfnf" - // TODO: remove this once the Bug's been fixed: - // https://github.com/Azure/azure-rest-api-specs/issues/3037 - ExpectNonEmptyPlan: true, }, data.ImportStep("redis_configuration.0.rdb_storage_connection_string"), }) @@ -214,11 +204,6 @@ func TestAccRedisCache_BackupEnabledDisabled(t *testing.T) { Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), - // `redis_configuration.0.rdb_storage_connection_string` is returned as: - // "...;AccountKey=[key hidden]" rather than "...;AccountKey=fsjfvjnfnf..." - // TODO: remove this once the Bug's been fixed: - // https://github.com/Azure/azure-rest-api-specs/issues/3037 - ExpectNonEmptyPlan: true, }, { Config: r.backupDisabled(data), @@ -244,7 +229,6 @@ func TestAccRedisCache_AOFBackupEnabled(t *testing.T) { Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), - ExpectNonEmptyPlan: true, }, data.ImportStep("redis_configuration.0.aof_storage_connection_string_0", "redis_configuration.0.aof_storage_connection_string_1"), @@ -261,20 +245,12 @@ func TestAccRedisCache_AOFBackupEnabledDisabled(t *testing.T) { Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), - // `redis_configuration.0.aof_storage_connection_string_0` and `aof_storage_connection_string_1` are returned as: - // "...;AccountKey=[key hidden]" rather than "...;AccountKey=fsjfvjnfnf..." - // TODO: remove this once the Bug's been fixed: - ExpectNonEmptyPlan: true, }, { Config: r.aofBackupDisabled(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), - // `redis_configuration.0.rdb_storage_connection_string` is returned as: - // "...;AccountKey=[key hidden]" rather than "...;AccountKey=fsjfvjnfnf..." - // TODO: remove this once the Bug's been fixed: - ExpectNonEmptyPlan: true, }, }) } @@ -540,27 +516,6 @@ func TestAccRedisCache_identity(t *testing.T) { }) } -func TestAccRedisCache_SkuDowngrade(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_redis_cache", "test") - r := RedisCacheResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.standard(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.SkuDowngrade(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - }) -} - func TestAccRedisCache_AccessKeysAuthenticationEnabledDisabled(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_redis_cache", "test") r := RedisCacheResource{} @@ -605,7 +560,6 @@ func (t RedisCacheResource) Exists(ctx context.Context, clients *clients.Client, } func (RedisCacheResource) basic(data acceptance.TestData, requireSSL bool) string { - return fmt.Sprintf(` provider "azurerm" { features {} diff --git a/internal/services/redisenterprise/redis_enterprise_database_data_source.go b/internal/services/redisenterprise/redis_enterprise_database_data_source.go index 5ed7a95dfeb5..29c8724d031b 100644 --- a/internal/services/redisenterprise/redis_enterprise_database_data_source.go +++ b/internal/services/redisenterprise/redis_enterprise_database_data_source.go @@ -8,11 +8,9 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2024-06-01-preview/databases" "github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2024-06-01-preview/redisenterprise" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" ) @@ -57,10 +55,6 @@ func dataSourceRedisEnterpriseDatabase() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - s["resource_group_name"] = commonschema.ResourceGroupNameDeprecatedComputed() - } - return &pluginsdk.Resource{ Read: dataSourceRedisEnterpriseDatabaseRead, @@ -119,9 +113,5 @@ func dataSourceRedisEnterpriseDatabaseRead(d *pluginsdk.ResourceData, meta inter d.Set("secondary_access_key", model.SecondaryKey) } - if !features.FourPointOhBeta() { - d.Set("resource_group_name", id.ResourceGroupName) - } - return nil } diff --git a/internal/services/redisenterprise/redis_enterprise_database_resource.go b/internal/services/redisenterprise/redis_enterprise_database_resource.go index b9b16be6b38e..c39452aaf36a 100644 --- a/internal/services/redisenterprise/redis_enterprise_database_resource.go +++ b/internal/services/redisenterprise/redis_enterprise_database_resource.go @@ -11,12 +11,10 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2024-06-01-preview/databases" "github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2024-06-01-preview/redisenterprise" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/redisenterprise/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -217,10 +215,6 @@ func redisEnterpriseDatabaseSchema() map[string]*pluginsdk.Schema { }, } - if !features.FourPointOhBeta() { - s["resource_group_name"] = commonschema.ResourceGroupNameDeprecatedComputed() - } - return s } @@ -344,10 +338,6 @@ func resourceRedisEnterpriseDatabaseRead(d *pluginsdk.ResourceData, meta interfa clusterId := redisenterprise.NewRedisEnterpriseID(id.SubscriptionId, id.ResourceGroupName, id.RedisEnterpriseName) d.Set("cluster_id", clusterId.ID()) - if !features.FourPointOhBeta() { - d.Set("resource_group_name", id.ResourceGroupName) - } - if model := resp.Model; model != nil { if props := model.Properties; props != nil { clientProtocol := "" @@ -485,6 +475,7 @@ func resourceRedisEnterpriseDatabaseDelete(d *pluginsdk.ResourceData, meta inter return nil } + func redisEnterpriseDatabaseDeleteRefreshFunc(ctx context.Context, databaseClient *databases.DatabasesClient, clusterClient *redisenterprise.RedisEnterpriseClient, clusterId redisenterprise.RedisEnterpriseId, databaseId databases.DatabaseId) pluginsdk.StateRefreshFunc { return func() (interface{}, string, error) { cluster, err := clusterClient.Get(ctx, clusterId) @@ -568,6 +559,7 @@ func flattenArmDatabaseModuleArray(input *[]databases.Module) []interface{} { return results } + func expandArmGeoLinkedDatabase(inputId []interface{}, parentDBId string, inputGeoName string) (*databases.DatabasePropertiesGeoReplication, error) { idList := make([]databases.LinkedDatabase, 0) if len(inputId) == 0 { diff --git a/internal/services/redisenterprise/validate/redis_enterprise_cluster_location_flash_sku_support.go b/internal/services/redisenterprise/validate/redis_enterprise_cluster_location_flash_sku_support.go index 4eac0f8ba33a..855d4447aea0 100644 --- a/internal/services/redisenterprise/validate/redis_enterprise_cluster_location_flash_sku_support.go +++ b/internal/services/redisenterprise/validate/redis_enterprise_cluster_location_flash_sku_support.go @@ -25,9 +25,10 @@ func RedisEnterpriseClusterLocationFlashSkuSupport(input string) error { } func invalidRedisEnterpriseClusterFlashLocations() []string { - var validFlash []string + locations := friendlyInvalidRedisEnterpriseClusterFlashLocations() + validFlash := make([]string, 0, len(locations)) - for _, v := range friendlyInvalidRedisEnterpriseClusterFlashLocations() { + for _, v := range locations { validFlash = append(validFlash, location.Normalize(v)) } diff --git a/internal/services/redisenterprise/validate/redis_enterprise_cluster_location_zone_support.go b/internal/services/redisenterprise/validate/redis_enterprise_cluster_location_zone_support.go index 8877f1f2c46a..9a7701cbd55b 100644 --- a/internal/services/redisenterprise/validate/redis_enterprise_cluster_location_zone_support.go +++ b/internal/services/redisenterprise/validate/redis_enterprise_cluster_location_zone_support.go @@ -25,9 +25,10 @@ func RedisEnterpriseClusterLocationZoneSupport(input string) error { } func invalidRedisEnterpriseClusterZoneLocations() []string { - var invalidZone []string + locations := friendlyInvalidRedisEnterpriseClusterZoneLocations() + invalidZone := make([]string, 0, len(locations)) - for _, v := range friendlyInvalidRedisEnterpriseClusterZoneLocations() { + for _, v := range locations { invalidZone = append(invalidZone, location.Normalize(v)) } diff --git a/internal/services/resource/parse/resource_group.go b/internal/services/resource/parse/resource_group.go index 6d4c65ea7efa..6de29b10dbda 100644 --- a/internal/services/resource/parse/resource_group.go +++ b/internal/services/resource/parse/resource_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -50,11 +51,11 @@ func ResourceGroupID(input string) (*ResourceGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if err := id.ValidateNoEmptySegments(input); err != nil { @@ -82,11 +83,11 @@ func ResourceGroupIDInsensitively(input string) (*ResourceGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if err := id.ValidateNoEmptySegments(input); err != nil { diff --git a/internal/services/resource/parse/resource_group_template_deployment.go b/internal/services/resource/parse/resource_group_template_deployment.go index 221fbc206255..789ec3b9d4aa 100644 --- a/internal/services/resource/parse/resource_group_template_deployment.go +++ b/internal/services/resource/parse/resource_group_template_deployment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ResourceGroupTemplateDeploymentID(input string) (*ResourceGroupTemplateDepl } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.DeploymentName, err = id.PopSegment("deployments"); err != nil { @@ -89,11 +90,11 @@ func ResourceGroupTemplateDeploymentIDInsensitively(input string) (*ResourceGrou } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'deployments' segment diff --git a/internal/services/resource/parse/resource_group_template_deployment_test.go b/internal/services/resource/parse/resource_group_template_deployment_test.go index 0e14f408a841..5f47ba29fba5 100644 --- a/internal/services/resource/parse/resource_group_template_deployment_test.go +++ b/internal/services/resource/parse/resource_group_template_deployment_test.go @@ -27,7 +27,6 @@ func TestResourceGroupTemplateDeploymentID(t *testing.T) { Error bool Expected *ResourceGroupTemplateDeploymentId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestResourceGroupTemplateDeploymentIDInsensitively(t *testing.T) { Error bool Expected *ResourceGroupTemplateDeploymentId }{ - { // empty Input: "", diff --git a/internal/services/resource/parse/resource_group_test.go b/internal/services/resource/parse/resource_group_test.go index ae4067b6d465..725f522bf0ea 100644 --- a/internal/services/resource/parse/resource_group_test.go +++ b/internal/services/resource/parse/resource_group_test.go @@ -27,7 +27,6 @@ func TestResourceGroupID(t *testing.T) { Error bool Expected *ResourceGroupId }{ - { // empty Input: "", @@ -104,7 +103,6 @@ func TestResourceGroupIDInsensitively(t *testing.T) { Error bool Expected *ResourceGroupId }{ - { // empty Input: "", diff --git a/internal/services/resource/parse/resource_provider.go b/internal/services/resource/parse/resource_provider.go index 4a245988516c..a6ed50fff5b4 100644 --- a/internal/services/resource/parse/resource_provider.go +++ b/internal/services/resource/parse/resource_provider.go @@ -4,6 +4,7 @@ package parse import ( + "errors" "fmt" "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" @@ -46,11 +47,11 @@ func ResourceProviderID(input string) (*ResourceProviderId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceProvider == "" { - return nil, fmt.Errorf("ID was missing the 'providers' element") + return nil, errors.New("ID was missing the 'providers' element") } if err := id.ValidateNoEmptySegments(input); err != nil { diff --git a/internal/services/resource/parse/subscription_template_deployment.go b/internal/services/resource/parse/subscription_template_deployment.go index 67d436221e68..cd072be3375e 100644 --- a/internal/services/resource/parse/subscription_template_deployment.go +++ b/internal/services/resource/parse/subscription_template_deployment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func SubscriptionTemplateDeploymentID(input string) (*SubscriptionTemplateDeploy } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.DeploymentName, err = id.PopSegment("deployments"); err != nil { diff --git a/internal/services/resource/parse/subscription_template_deployment_test.go b/internal/services/resource/parse/subscription_template_deployment_test.go index d17f06ce9a78..287a71b51e8e 100644 --- a/internal/services/resource/parse/subscription_template_deployment_test.go +++ b/internal/services/resource/parse/subscription_template_deployment_test.go @@ -27,7 +27,6 @@ func TestSubscriptionTemplateDeploymentID(t *testing.T) { Error bool Expected *SubscriptionTemplateDeploymentId }{ - { // empty Input: "", diff --git a/internal/services/resource/parse/template_spec_version.go b/internal/services/resource/parse/template_spec_version.go index 573457666726..c3cf46a1f96a 100644 --- a/internal/services/resource/parse/template_spec_version.go +++ b/internal/services/resource/parse/template_spec_version.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func TemplateSpecVersionID(input string) (*TemplateSpecVersionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.TemplateSpecName, err = id.PopSegment("templateSpecs"); err != nil { diff --git a/internal/services/resource/parse/template_spec_version_test.go b/internal/services/resource/parse/template_spec_version_test.go index 2a9bb0b65ced..050c10985b06 100644 --- a/internal/services/resource/parse/template_spec_version_test.go +++ b/internal/services/resource/parse/template_spec_version_test.go @@ -27,7 +27,6 @@ func TestTemplateSpecVersionID(t *testing.T) { Error bool Expected *TemplateSpecVersionId }{ - { // empty Input: "", diff --git a/internal/services/resource/resource_deployment_script_common.go b/internal/services/resource/resource_deployment_script_common.go index 00d960f4ffd2..bcc255d3c914 100644 --- a/internal/services/resource/resource_deployment_script_common.go +++ b/internal/services/resource/resource_deployment_script_common.go @@ -321,7 +321,7 @@ func expandContainerConfigurationModel(inputList []ContainerConfigurationModel) } func expandEnvironmentVariableModelArray(inputList []EnvironmentVariableModel) *[]deploymentscripts.EnvironmentVariable { - var outputList []deploymentscripts.EnvironmentVariable + outputList := make([]deploymentscripts.EnvironmentVariable, 0, len(inputList)) for _, v := range inputList { input := v output := deploymentscripts.EnvironmentVariable{ @@ -378,11 +378,11 @@ func flattenContainerConfigurationModel(input *deploymentscripts.ContainerConfig } func flattenEnvironmentVariableModelArray(inputList *[]deploymentscripts.EnvironmentVariable, originalList []EnvironmentVariableModel) []EnvironmentVariableModel { - var outputList []EnvironmentVariableModel if inputList == nil { - return outputList + return []EnvironmentVariableModel{} } + outputList := make([]EnvironmentVariableModel, 0, len(*inputList)) for _, input := range *inputList { output := EnvironmentVariableModel{ Name: input.Name, diff --git a/internal/services/resource/resource_group_resource.go b/internal/services/resource/resource_group_resource.go index 45636d735f9f..51b916e283a9 100644 --- a/internal/services/resource/resource_group_resource.go +++ b/internal/services/resource/resource_group_resource.go @@ -4,6 +4,7 @@ package resource import ( + "errors" "fmt" "log" "sort" @@ -12,6 +13,7 @@ import ( "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-06-01/resources" // nolint: staticcheck "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" @@ -129,7 +131,6 @@ func resourceResourceGroupCreateUpdate(d *pluginsdk.ResourceData, meta interface } return true, "Done", nil - }, } @@ -193,13 +194,16 @@ func resourceResourceGroupDelete(d *pluginsdk.ResourceData, meta interface{}) er resourceClient := meta.(*clients.Client).Resource.ResourcesClient // Resource groups sometimes hold on to resource information after the resources have been deleted. We'll retry this check to account for that eventual consistency. err = pluginsdk.Retry(10*time.Minute, func() *pluginsdk.RetryError { - results, err := resourceClient.ListByResourceGroupComplete(ctx, id.ResourceGroup, "", "provisioningState", utils.Int32(500)) + results, err := resourceClient.ListByResourceGroup(ctx, id.ResourceGroup, "", "provisioningState", utils.Int32(500)) if err != nil { + if response.WasNotFound(results.Response().Response.Response) { + return nil + } return pluginsdk.NonRetryableError(fmt.Errorf("listing resources in %s: %v", *id, err)) } nestedResourceIds := make([]string, 0) - for results.NotDone() { - val := results.Value() + for _, value := range results.Values() { + val := value if val.ID != nil { nestedResourceIds = append(nestedResourceIds, *val.ID) } @@ -222,6 +226,9 @@ func resourceResourceGroupDelete(d *pluginsdk.ResourceData, meta interface{}) er deleteFuture, err := client.Delete(ctx, id.ResourceGroup, "") if err != nil { + if response.WasNotFound(deleteFuture.Response()) { + return nil + } return fmt.Errorf("deleting %s: %+v", *id, err) } @@ -268,5 +275,5 @@ delete this using the Azure API directly (which will clear up any nested resourc More information on the 'features' block can be found in the documentation: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/features-block `, name, strings.Join(formattedResourceUris, "\n")) - return fmt.Errorf(strings.ReplaceAll(message, "'", "`")) + return errors.New(strings.ReplaceAll(message, "'", "`")) } diff --git a/internal/services/resource/resource_group_resource_test.go b/internal/services/resource/resource_group_resource_test.go index 41f680be3041..dc9fc4a932a7 100644 --- a/internal/services/resource/resource_group_resource_test.go +++ b/internal/services/resource/resource_group_resource_test.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" "github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" diff --git a/internal/services/resource/resource_group_template_deployment_resource_test.go b/internal/services/resource/resource_group_template_deployment_resource_test.go index 0016f837d982..218eecc79486 100644 --- a/internal/services/resource/resource_group_template_deployment_resource_test.go +++ b/internal/services/resource/resource_group_template_deployment_resource_test.go @@ -579,6 +579,7 @@ TEMPLATE } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) } + func (ResourceGroupTemplateDeploymentResource) inconsistentProviderCasingEmpty(data acceptance.TestData) string { return ` provider "azurerm" { diff --git a/internal/services/resource/template_spec_version_data_source.go b/internal/services/resource/template_spec_version_data_source.go index e813c9ed53c2..9bb15da59b0b 100644 --- a/internal/services/resource/template_spec_version_data_source.go +++ b/internal/services/resource/template_spec_version_data_source.go @@ -25,7 +25,7 @@ func dataSourceTemplateSpecVersion() *pluginsdk.Resource { Read: pluginsdk.DefaultTimeout(5 * time.Minute), }, - //lintignore:S033 + // lintignore:S033 Schema: map[string]*pluginsdk.Schema{ "name": { Type: pluginsdk.TypeString, diff --git a/internal/services/resource/validate/resource_deployment_script_azure_cli_version_test.go b/internal/services/resource/validate/resource_deployment_script_azure_cli_version_test.go index 212f99bb90ab..f3f3a0b851f3 100644 --- a/internal/services/resource/validate/resource_deployment_script_azure_cli_version_test.go +++ b/internal/services/resource/validate/resource_deployment_script_azure_cli_version_test.go @@ -10,7 +10,6 @@ func TestResourceDeploymentScriptAzureCliVersion(t *testing.T) { Input string Valid bool }{ - { Input: "", Valid: false, diff --git a/internal/services/resource/validate/resource_deployment_script_azure_power_shell_version_test.go b/internal/services/resource/validate/resource_deployment_script_azure_power_shell_version_test.go index 4ae06dc3ccc9..0f6aeaf18a09 100644 --- a/internal/services/resource/validate/resource_deployment_script_azure_power_shell_version_test.go +++ b/internal/services/resource/validate/resource_deployment_script_azure_power_shell_version_test.go @@ -10,7 +10,6 @@ func TestResourceDeploymentScriptAzurePowerShellVersion(t *testing.T) { Input string Valid bool }{ - { Input: "", Valid: false, diff --git a/internal/services/resource/validate/resource_group_id_test.go b/internal/services/resource/validate/resource_group_id_test.go index d65d4bc90116..718575799058 100644 --- a/internal/services/resource/validate/resource_group_id_test.go +++ b/internal/services/resource/validate/resource_group_id_test.go @@ -12,7 +12,6 @@ func TestResourceGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/resource/validate/resource_group_template_deployment_id_test.go b/internal/services/resource/validate/resource_group_template_deployment_id_test.go index 3d872a8326db..2d4c83ba953d 100644 --- a/internal/services/resource/validate/resource_group_template_deployment_id_test.go +++ b/internal/services/resource/validate/resource_group_template_deployment_id_test.go @@ -12,7 +12,6 @@ func TestResourceGroupTemplateDeploymentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/resource/validate/subscription_template_deployment_id_test.go b/internal/services/resource/validate/subscription_template_deployment_id_test.go index a42b0c197900..0041188f7b2b 100644 --- a/internal/services/resource/validate/subscription_template_deployment_id_test.go +++ b/internal/services/resource/validate/subscription_template_deployment_id_test.go @@ -12,7 +12,6 @@ func TestSubscriptionTemplateDeploymentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/resource/validate/template_spec_version_id_test.go b/internal/services/resource/validate/template_spec_version_id_test.go index 32ce01abfd46..8878bd226fd4 100644 --- a/internal/services/resource/validate/template_spec_version_id_test.go +++ b/internal/services/resource/validate/template_spec_version_id_test.go @@ -12,7 +12,6 @@ func TestTemplateSpecVersionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/search/search_service_data_source.go b/internal/services/search/search_service_data_source.go index 8111ac0e912d..8d07d7bf6dd6 100644 --- a/internal/services/search/search_service_data_source.go +++ b/internal/services/search/search_service_data_source.go @@ -20,7 +20,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) func dataSourceSearchService() *pluginsdk.Resource { @@ -39,6 +38,11 @@ func dataSourceSearchService() *pluginsdk.Resource { "resource_group_name": commonschema.ResourceGroupNameForDataSource(), + "customer_managed_key_encryption_compliance_status": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "replica_count": { Type: pluginsdk.TypeInt, Computed: true, @@ -116,6 +120,10 @@ func dataSourceSearchServiceRead(d *pluginsdk.ResourceData, meta interface{}) er replicaCount := 1 publicNetworkAccess := true + if props.EncryptionWithCmk != nil { + d.Set("customer_managed_key_encryption_compliance_status", string(pointer.From(props.EncryptionWithCmk.EncryptionComplianceStatus))) + } + if count := props.PartitionCount; count != nil { partitionCount = int(*count) } @@ -154,8 +162,8 @@ func dataSourceSearchServiceRead(d *pluginsdk.ResourceData, meta interface{}) er return fmt.Errorf("retrieving Admin Keys for %s: %+v", id, err) } if model := adminKeysResp.Model; model != nil { - primaryKey = utils.NormalizeNilableString(model.PrimaryKey) - secondaryKey = utils.NormalizeNilableString(model.SecondaryKey) + primaryKey = pointer.From(model.PrimaryKey) + secondaryKey = pointer.From(model.SecondaryKey) } d.Set("primary_key", primaryKey) d.Set("secondary_key", secondaryKey) diff --git a/internal/services/search/search_service_data_source_test.go b/internal/services/search/search_service_data_source_test.go index 8b6a90886d5f..a0353257ca01 100644 --- a/internal/services/search/search_service_data_source_test.go +++ b/internal/services/search/search_service_data_source_test.go @@ -21,6 +21,7 @@ func TestAccDataSourceSearchService_basic(t *testing.T) { { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("customer_managed_key_encryption_compliance_status").Exists(), check.That(data.ResourceName).Key("replica_count").Exists(), check.That(data.ResourceName).Key("partition_count").Exists(), check.That(data.ResourceName).Key("primary_key").Exists(), diff --git a/internal/services/search/search_service_resource.go b/internal/services/search/search_service_resource.go index 37a6a261f3d3..bf2377663a02 100644 --- a/internal/services/search/search_service_resource.go +++ b/internal/services/search/search_service_resource.go @@ -4,6 +4,7 @@ package search import ( + "errors" "fmt" "log" "strings" @@ -24,7 +25,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" ) func resourceSearchService() *pluginsdk.Resource { @@ -125,6 +125,11 @@ func resourceSearchService() *pluginsdk.Resource { Default: false, }, + "customer_managed_key_encryption_compliance_status": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "primary_key": { Type: pluginsdk.TypeString, Computed: true, @@ -260,7 +265,7 @@ func resourceSearchServiceCreate(d *pluginsdk.ResourceData, meta interface{}) er } if !localAuthenticationEnabled && authenticationFailureMode != "" { - return fmt.Errorf("'authentication_failure_mode' cannot be defined if 'local_authentication_enabled' has been set to 'true'") + return errors.New("'authentication_failure_mode' cannot be defined if 'local_authentication_enabled' has been set to 'true'") } // API Only Mode (Default) (e.g. localAuthenticationEnabled = true)... @@ -557,6 +562,7 @@ func resourceSearchServiceRead(d *pluginsdk.ResourceData, meta interface{}) erro if props.EncryptionWithCmk != nil { cmkEnforcement = strings.EqualFold(string(pointer.From(props.EncryptionWithCmk.Enforcement)), string(services.SearchEncryptionWithCmkEnabled)) + d.Set("customer_managed_key_encryption_compliance_status", string(pointer.From(props.EncryptionWithCmk.EncryptionComplianceStatus))) } // I am using 'DisableLocalAuth' here because when you are in @@ -653,8 +659,8 @@ func flattenSearchQueryKeys(input *[]querykeys.QueryKey) []interface{} { if input != nil { for _, v := range *input { results = append(results, map[string]interface{}{ - "name": utils.NormalizeNilableString(v.Name), - "key": utils.NormalizeNilableString(v.Key), + "name": pointer.From(v.Name), + "key": pointer.From(v.Key), }) } } @@ -668,7 +674,7 @@ func expandSearchServiceIPRules(input []interface{}) *[]services.IPRule { for _, rule := range input { if rule != nil { output = append(output, services.IPRule{ - Value: utils.String(rule.(string)), + Value: pointer.To(rule.(string)), }) } } diff --git a/internal/services/search/search_service_resource_test.go b/internal/services/search/search_service_resource_test.go index 1c07f7ca127d..a1d3c06d2070 100644 --- a/internal/services/search/search_service_resource_test.go +++ b/internal/services/search/search_service_resource_test.go @@ -337,6 +337,7 @@ func TestAccSearchService_customerManagedKeyEnforcement(t *testing.T) { Config: r.customerManagedKeyEnforcement(data, true), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("customer_managed_key_encryption_compliance_status").HasValue("Compliant"), ), }, data.ImportStep(), diff --git a/internal/services/search/search_shared_private_link_service_resource_test.go b/internal/services/search/search_shared_private_link_service_resource_test.go index 01a84a9de6ad..af8674084624 100644 --- a/internal/services/search/search_shared_private_link_service_resource_test.go +++ b/internal/services/search/search_shared_private_link_service_resource_test.go @@ -90,6 +90,7 @@ resource "azurerm_search_shared_private_link_service" "import" { } `, template) } + func (r SearchSharedPrivateLinkServiceResource) template(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/securitycenter/advanced_threat_protection_resource.go b/internal/services/securitycenter/advanced_threat_protection_resource.go index e244afc39dc3..bcd1f0f7c12e 100644 --- a/internal/services/securitycenter/advanced_threat_protection_resource.go +++ b/internal/services/securitycenter/advanced_threat_protection_resource.go @@ -9,6 +9,7 @@ import ( "time" "github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v3.0/security" // nolint: staticcheck + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" @@ -112,8 +113,8 @@ func resourceAdvancedThreatProtectionCreateUpdate(d *pluginsdk.ResourceData, met } return resp, "error", fmt.Errorf("Properties was nil") }, - MinTimeout: 1 * time.Minute, - ContinuousTargetOccurence: 3, + MinTimeout: 30 * time.Second, + ContinuousTargetOccurence: 10, Timeout: time.Until(deadline), } @@ -148,7 +149,7 @@ func resourceAdvancedThreatProtectionRead(d *pluginsdk.ResourceData, meta interf d.Set("target_resource_id", id.TargetResourceID) if atpp := resp.AdvancedThreatProtectionProperties; atpp != nil { - d.Set("enabled", resp.IsEnabled) + d.Set("enabled", pointer.From(resp.IsEnabled)) } return nil diff --git a/internal/services/securitycenter/azuresdkhacks/security_center_contact.go b/internal/services/securitycenter/azuresdkhacks/security_center_contact.go index 439de236a954..a23ccdbce8bb 100644 --- a/internal/services/securitycenter/azuresdkhacks/security_center_contact.go +++ b/internal/services/securitycenter/azuresdkhacks/security_center_contact.go @@ -27,7 +27,7 @@ func CreateSecurityCenterContact(ctx context.Context, client *security.ContactsC }}, }, }); err != nil { - return result, validation.NewError("security.ContactsClient", "Create", err.Error()) + return result, validation.NewError("security.ContactsClient", "Create", err.Error()) // nolint: govet } req, err := client.CreatePreparer(ctx, securityContactName, securityContact) diff --git a/internal/services/securitycenter/iot_security_solution_resource_test.go b/internal/services/securitycenter/iot_security_solution_resource_test.go index 322adda0ee9b..efd1abb36a0f 100644 --- a/internal/services/securitycenter/iot_security_solution_resource_test.go +++ b/internal/services/securitycenter/iot_security_solution_resource_test.go @@ -138,6 +138,8 @@ resource "azurerm_iot_security_solution" "test" { location = azurerm_resource_group.test.location display_name = "Iot Security Solution" iothub_ids = [azurerm_iothub.test.id] + + depends_on = [azurerm_role_assignment.iot-assign] } `, r.template(data), data.RandomInteger) } @@ -152,6 +154,8 @@ resource "azurerm_iot_security_solution" "import" { location = azurerm_iot_security_solution.test.location display_name = azurerm_iot_security_solution.test.display_name iothub_ids = [azurerm_iothub.test.id] + + depends_on = [azurerm_role_assignment.iot-assign] } `, r.basic(data)) } @@ -235,6 +239,8 @@ resource "azurerm_iot_security_solution" "test" { tags = { "Env" : "Staging" } + + depends_on = [azurerm_role_assignment.iot-assign, azurerm_role_assignment.law-assign] } `, r.template(data), data.RandomInteger, data.RandomInteger) } @@ -261,6 +267,8 @@ resource "azurerm_iot_security_solution" "test" { data_types = ["Alerts"] workspace_id = azurerm_log_analytics_workspace.test.id } + + depends_on = [azurerm_role_assignment.iot-assign] } `, r.template(data), data.RandomInteger, data.RandomInteger) } @@ -294,6 +302,8 @@ resource "azurerm_iot_security_solution" "test" { data_types = ["Alerts", "RawEvents"] workspace_id = azurerm_log_analytics_workspace.test2.id } + + depends_on = [azurerm_role_assignment.iot-assign, azurerm_role_assignment.law-assign] } `, r.template(data), data.RandomInteger, data.RandomInteger, data.RandomInteger) } @@ -319,5 +329,21 @@ resource "azurerm_iothub" "test" { capacity = "1" } } + +data "azuread_service_principal" "iotsec" { + display_name = "Azure Security for IoT" +} + +resource "azurerm_role_assignment" "iot-assign" { + scope = azurerm_resource_group.test.id + role_definition_name = "Contributor" + principal_id = data.azuread_service_principal.iotsec.object_id +} + +resource "azurerm_role_assignment" "law-assign" { + scope = azurerm_iothub.test.id + role_definition_name = "Log Analytics Contributor" + principal_id = data.azuread_service_principal.iotsec.object_id +} `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } diff --git a/internal/services/securitycenter/parse/assessment_metadata.go b/internal/services/securitycenter/parse/assessment_metadata.go index 955fd0496838..ed46c82f35e5 100644 --- a/internal/services/securitycenter/parse/assessment_metadata.go +++ b/internal/services/securitycenter/parse/assessment_metadata.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func AssessmentMetadataID(input string) (*AssessmentMetadataId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.AssessmentMetadataName, err = id.PopSegment("assessmentMetadata"); err != nil { diff --git a/internal/services/securitycenter/parse/assessment_metadata_test.go b/internal/services/securitycenter/parse/assessment_metadata_test.go index c879b7b498d3..748211730da0 100644 --- a/internal/services/securitycenter/parse/assessment_metadata_test.go +++ b/internal/services/securitycenter/parse/assessment_metadata_test.go @@ -27,7 +27,6 @@ func TestAssessmentMetadataID(t *testing.T) { Error bool Expected *AssessmentMetadataId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/auto_provisioning_setting.go b/internal/services/securitycenter/parse/auto_provisioning_setting.go index ca3445150c80..95ea22a9ab6f 100644 --- a/internal/services/securitycenter/parse/auto_provisioning_setting.go +++ b/internal/services/securitycenter/parse/auto_provisioning_setting.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func AutoProvisioningSettingID(input string) (*AutoProvisioningSettingId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.Name, err = id.PopSegment("autoProvisioningSettings"); err != nil { @@ -80,7 +81,7 @@ func AutoProvisioningSettingIDInsensitively(input string) (*AutoProvisioningSett } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } // find the correct casing for the 'autoProvisioningSettings' segment diff --git a/internal/services/securitycenter/parse/auto_provisioning_setting_test.go b/internal/services/securitycenter/parse/auto_provisioning_setting_test.go index 819bf570a3d0..dac18e30de03 100644 --- a/internal/services/securitycenter/parse/auto_provisioning_setting_test.go +++ b/internal/services/securitycenter/parse/auto_provisioning_setting_test.go @@ -27,7 +27,6 @@ func TestAutoProvisioningSettingID(t *testing.T) { Error bool Expected *AutoProvisioningSettingId }{ - { // empty Input: "", @@ -104,7 +103,6 @@ func TestAutoProvisioningSettingIDInsensitively(t *testing.T) { Error bool Expected *AutoProvisioningSettingId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/automation.go b/internal/services/securitycenter/parse/automation.go index 01b154664746..d58ba7741770 100644 --- a/internal/services/securitycenter/parse/automation.go +++ b/internal/services/securitycenter/parse/automation.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func AutomationID(input string) (*AutomationId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("automations"); err != nil { diff --git a/internal/services/securitycenter/parse/automation_test.go b/internal/services/securitycenter/parse/automation_test.go index 4d9e50fb02e3..a09037935935 100644 --- a/internal/services/securitycenter/parse/automation_test.go +++ b/internal/services/securitycenter/parse/automation_test.go @@ -27,7 +27,6 @@ func TestAutomationID(t *testing.T) { Error bool Expected *AutomationId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/contact.go b/internal/services/securitycenter/parse/contact.go index 08309d1b071d..97b38cc53a25 100644 --- a/internal/services/securitycenter/parse/contact.go +++ b/internal/services/securitycenter/parse/contact.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func ContactID(input string) (*ContactId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.SecurityContactName, err = id.PopSegment("securityContacts"); err != nil { diff --git a/internal/services/securitycenter/parse/contact_test.go b/internal/services/securitycenter/parse/contact_test.go index 7e0abbf8f768..57bb7b2508e4 100644 --- a/internal/services/securitycenter/parse/contact_test.go +++ b/internal/services/securitycenter/parse/contact_test.go @@ -27,7 +27,6 @@ func TestContactID(t *testing.T) { Error bool Expected *ContactId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/iot_security_solution.go b/internal/services/securitycenter/parse/iot_security_solution.go index afd5e35ab07c..cbb9ef6db42c 100644 --- a/internal/services/securitycenter/parse/iot_security_solution.go +++ b/internal/services/securitycenter/parse/iot_security_solution.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func IotSecuritySolutionID(input string) (*IotSecuritySolutionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("iotSecuritySolutions"); err != nil { @@ -89,11 +90,11 @@ func IotSecuritySolutionIDInsensitively(input string) (*IotSecuritySolutionId, e } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'iotSecuritySolutions' segment diff --git a/internal/services/securitycenter/parse/iot_security_solution_test.go b/internal/services/securitycenter/parse/iot_security_solution_test.go index 6ccb231fc912..931964c1e2d9 100644 --- a/internal/services/securitycenter/parse/iot_security_solution_test.go +++ b/internal/services/securitycenter/parse/iot_security_solution_test.go @@ -27,7 +27,6 @@ func TestIotSecuritySolutionID(t *testing.T) { Error bool Expected *IotSecuritySolutionId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestIotSecuritySolutionIDInsensitively(t *testing.T) { Error bool Expected *IotSecuritySolutionId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/pricing.go b/internal/services/securitycenter/parse/pricing.go index e171a4f93a01..92a87189a35f 100644 --- a/internal/services/securitycenter/parse/pricing.go +++ b/internal/services/securitycenter/parse/pricing.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func PricingID(input string) (*PricingId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.Name, err = id.PopSegment("pricings"); err != nil { diff --git a/internal/services/securitycenter/parse/pricing_test.go b/internal/services/securitycenter/parse/pricing_test.go index 0a0727ceea38..936b78a5687f 100644 --- a/internal/services/securitycenter/parse/pricing_test.go +++ b/internal/services/securitycenter/parse/pricing_test.go @@ -27,7 +27,6 @@ func TestPricingID(t *testing.T) { Error bool Expected *PricingId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/setting.go b/internal/services/securitycenter/parse/setting.go index dd27d7040249..a42169f2b213 100644 --- a/internal/services/securitycenter/parse/setting.go +++ b/internal/services/securitycenter/parse/setting.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func SettingID(input string) (*SettingId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.Name, err = id.PopSegment("settings"); err != nil { diff --git a/internal/services/securitycenter/parse/setting_test.go b/internal/services/securitycenter/parse/setting_test.go index af01742eb0e3..b4b518078d30 100644 --- a/internal/services/securitycenter/parse/setting_test.go +++ b/internal/services/securitycenter/parse/setting_test.go @@ -27,7 +27,6 @@ func TestSettingID(t *testing.T) { Error bool Expected *SettingId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/vulnerability_assessment_vm.go b/internal/services/securitycenter/parse/vulnerability_assessment_vm.go index 22dc6222d300..2a5f5975257d 100644 --- a/internal/services/securitycenter/parse/vulnerability_assessment_vm.go +++ b/internal/services/securitycenter/parse/vulnerability_assessment_vm.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func VulnerabilityAssessmentVmID(input string) (*VulnerabilityAssessmentVmId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.VirtualMachineName, err = id.PopSegment("virtualMachines"); err != nil { diff --git a/internal/services/securitycenter/parse/vulnerability_assessment_vm_test.go b/internal/services/securitycenter/parse/vulnerability_assessment_vm_test.go index 8fba51c1975a..f53dceed0adc 100644 --- a/internal/services/securitycenter/parse/vulnerability_assessment_vm_test.go +++ b/internal/services/securitycenter/parse/vulnerability_assessment_vm_test.go @@ -27,7 +27,6 @@ func TestVulnerabilityAssessmentVmID(t *testing.T) { Error bool Expected *VulnerabilityAssessmentVmId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/vulnerability_assessments_setting.go b/internal/services/securitycenter/parse/vulnerability_assessments_setting.go index 79d0a54d5d34..3503a10d2cf8 100644 --- a/internal/services/securitycenter/parse/vulnerability_assessments_setting.go +++ b/internal/services/securitycenter/parse/vulnerability_assessments_setting.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func VulnerabilityAssessmentsSettingID(input string) (*VulnerabilityAssessmentsS } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ServerVulnerabilityAssessmentsSettingName, err = id.PopSegment("serverVulnerabilityAssessmentsSettings"); err != nil { diff --git a/internal/services/securitycenter/parse/vulnerability_assessments_setting_test.go b/internal/services/securitycenter/parse/vulnerability_assessments_setting_test.go index 7e082f069c0b..58f1830fa580 100644 --- a/internal/services/securitycenter/parse/vulnerability_assessments_setting_test.go +++ b/internal/services/securitycenter/parse/vulnerability_assessments_setting_test.go @@ -27,7 +27,6 @@ func TestVulnerabilityAssessmentsSettingID(t *testing.T) { Error bool Expected *VulnerabilityAssessmentsSettingId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/parse/workspace.go b/internal/services/securitycenter/parse/workspace.go index 5d427b19b6b9..31db1647a8f4 100644 --- a/internal/services/securitycenter/parse/workspace.go +++ b/internal/services/securitycenter/parse/workspace.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -49,7 +50,7 @@ func WorkspaceID(input string) (*WorkspaceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.WorkspaceSettingName, err = id.PopSegment("workspaceSettings"); err != nil { diff --git a/internal/services/securitycenter/parse/workspace_test.go b/internal/services/securitycenter/parse/workspace_test.go index bb387db4d3a7..610798947b0e 100644 --- a/internal/services/securitycenter/parse/workspace_test.go +++ b/internal/services/securitycenter/parse/workspace_test.go @@ -27,7 +27,6 @@ func TestWorkspaceID(t *testing.T) { Error bool Expected *WorkspaceId }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/registration.go b/internal/services/securitycenter/registration.go index f6be9c04e341..d67379d4b62b 100644 --- a/internal/services/securitycenter/registration.go +++ b/internal/services/securitycenter/registration.go @@ -11,8 +11,10 @@ import ( type Registration struct{} -var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} -var _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} +var ( + _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{} + _ sdk.TypedServiceRegistrationWithAGitHubLabel = Registration{} +) func (r Registration) AssociatedGitHubLabel() string { return "service/security-center" @@ -48,13 +50,12 @@ func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { "azurerm_security_center_subscription_pricing": resourceSecurityCenterSubscriptionPricing(), "azurerm_security_center_workspace": resourceSecurityCenterWorkspace(), "azurerm_security_center_automation": resourceSecurityCenterAutomation(), - "azurerm_security_center_auto_provisioning": resourceSecurityCenterAutoProvisioning(), "azurerm_security_center_server_vulnerability_assessments_setting": resourceSecurityCenterServerVulnerabilityAssessmentsSetting(), "azurerm_security_center_server_vulnerability_assessment_virtual_machine": resourceServerVulnerabilityAssessmentVirtualMachine(), } - if !features.FourPointOhBeta() { - resources["azurerm_security_center_server_vulnerability_assessment"] = resourceServerVulnerabilityAssessment() + if !features.FivePointOhBeta() { + resources["azurerm_security_center_auto_provisioning"] = resourceSecurityCenterAutoProvisioning() } return resources diff --git a/internal/services/securitycenter/security_center_auto_provisioning_resource.go b/internal/services/securitycenter/security_center_auto_provisioning_resource.go index 80e352cfc901..eea35b10953f 100644 --- a/internal/services/securitycenter/security_center_auto_provisioning_resource.go +++ b/internal/services/securitycenter/security_center_auto_provisioning_resource.go @@ -42,6 +42,8 @@ func resourceSecurityCenterAutoProvisioning() *pluginsdk.Resource { Delete: pluginsdk.DefaultTimeout(60 * time.Minute), }, + DeprecationMessage: "The `azurerm_security_center_auto_provisioning` resource has been deprecated and will be removed in v5.0 of the AzureRM Provider", + Schema: map[string]*pluginsdk.Schema{ "auto_provision": { Type: pluginsdk.TypeString, diff --git a/internal/services/securitycenter/security_center_auto_provisioning_resource_test.go b/internal/services/securitycenter/security_center_auto_provisioning_resource_test.go index 07fe53ecc169..6a0aea7e31ed 100644 --- a/internal/services/securitycenter/security_center_auto_provisioning_resource_test.go +++ b/internal/services/securitycenter/security_center_auto_provisioning_resource_test.go @@ -19,10 +19,11 @@ import ( type SecurityCenterAutoProvisionResource struct{} func TestAccSecurityCenterAutoProvision_update(t *testing.T) { + t.Skipf("Skipping since `azurerm_security_center_auto_provisioning` is deprecated on service side, can no longer be enabled.") data := acceptance.BuildTestData(t, "azurerm_security_center_auto_provisioning", "test") r := SecurityCenterAutoProvisionResource{} - //lintignore:AT001 + // lintignore:AT001 data.ResourceTestSkipCheckDestroyed(t, []acceptance.TestStep{ { Config: r.setting("On"), diff --git a/internal/services/securitycenter/security_center_server_vulnerability_assessment_resource.go b/internal/services/securitycenter/security_center_server_vulnerability_assessment_resource.go deleted file mode 100644 index 693259db6026..000000000000 --- a/internal/services/securitycenter/security_center_server_vulnerability_assessment_resource.go +++ /dev/null @@ -1,236 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package securitycenter - -import ( - "fmt" - "log" - "strings" - "time" - - "github.com/Azure/azure-sdk-for-go/services/preview/security/mgmt/v3.0/security" // nolint: staticcheck - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - computeParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/compute/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -const ( - virtualMachineProvider = "Microsoft.Compute" - hybridMachineProvider = "Microsoft.HybridCompute" -) - -func resourceServerVulnerabilityAssessment() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceServerVulnerabilityAssessmentCreate, - Read: resourceServerVulnerabilityAssessmentRead, - Delete: resourceServerVulnerabilityAssessmentDelete, - - // TODO: replace this with an importer which validates the ID during import - Importer: &schema.ResourceImporter{ - StateContext: schema.ImportStatePassthroughContext, - }, - - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(5 * time.Minute), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Delete: pluginsdk.DefaultTimeout(10 * time.Minute), - }, - - DeprecationMessage: `This resource has been deprecated in favour of the 'azurerm_security_center_server_vulnerability_assessment_virtual_machine' resource and will be removed in v4.0 of the AzureRM Provider`, - - Schema: map[string]*pluginsdk.Schema{ - "virtual_machine_id": { - Type: pluginsdk.TypeString, - Optional: true, - ForceNew: true, - ValidateFunc: commonids.ValidateVirtualMachineID, - }, - "hybrid_machine_id": { - Type: pluginsdk.TypeString, - Optional: true, - ForceNew: true, - ValidateFunc: azure.ValidateResourceID, - }, - }, - } -} - -func resourceServerVulnerabilityAssessmentCreate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).SecurityCenter.ServerVulnerabilityAssessmentClient - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) - defer cancel() - - targetId, err := parseTargetId(d) - if err != nil { - return err - } - - vulnerabilityAssessment, err := client.Get(ctx, targetId.ResourceGroup, targetId.Provider, targetId.ResourceType, targetId.Name) - if err != nil { - if !utils.ResponseWasNotFound(vulnerabilityAssessment.Response) { - return fmt.Errorf("checking for presence of existing Advanced Threat Protection for %q: %+v", targetId.Id, err) - } - } - - if vulnerabilityAssessment.ID != nil && *vulnerabilityAssessment.ID != "" { - return tf.ImportAsExistsError("azurerm_security_center_server_vulnerability_assessment", *vulnerabilityAssessment.ID) - } - - vulnerabilityAssessment, err = client.CreateOrUpdate(ctx, targetId.ResourceGroup, targetId.Provider, targetId.ResourceType, targetId.Name) - if err != nil { - return fmt.Errorf("create Server Vulnerability Assessment for %q: %+v", targetId.Id, err) - } - - if vulnerabilityAssessment.ID != nil { - d.SetId(*vulnerabilityAssessment.ID) - } - - // Take some time for resource to be visible after creating. Hence the retry logic - readError := resourceServerVulnerabilityAssessmentRead(d, meta) - for retry := 1; d.Id() == "" && retry < 11; retry++ { - time.Sleep(time.Duration(retry) * time.Second) - readError = resourceServerVulnerabilityAssessmentRead(d, meta) - } - return readError -} - -func resourceServerVulnerabilityAssessmentRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).SecurityCenter.ServerVulnerabilityAssessmentClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - targetId, err := parseTargetId(d) - if err != nil { - return err - } - - resp, err := client.Get(ctx, targetId.ResourceGroup, targetId.Provider, targetId.ResourceType, targetId.Name) - if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - log.Printf("Server Vulnerability Assessment was not found for %q: %+v", targetId.Id, err) - d.SetId("") - return nil - } - - return fmt.Errorf("retrieving Server Vulnerability Assessment status for %q: %+v", targetId.Id, err) - } - - // Update state - d.SetId(*resp.ID) - - // Handle import - switch { - case targetId.Provider == virtualMachineProvider && d.Get("virtual_machine_id") == "": - _ = d.Set("virtual_machine_id", targetId.Id) - case targetId.Provider == hybridMachineProvider && d.Get("hybrid_machine_id") == "": - _ = d.Set("hybrid_machine_id", targetId.Id) - default: - } - - return nil -} - -func resourceServerVulnerabilityAssessmentDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).SecurityCenter.ServerVulnerabilityAssessmentClient - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - targetId, err := parseTargetId(d) - if err != nil { - return err - } - - // Can not delete if still in provisioning state. Wait for it to complete. - for retry := 1; retry <= 20; retry++ { - response, err := client.Get(ctx, targetId.ResourceGroup, targetId.Provider, targetId.ResourceType, targetId.Name) - if err != nil || response.ProvisioningState != security.ProvisioningState1Provisioning { - break - } - time.Sleep(time.Duration(retry) * time.Second) - } - - future, err := client.Delete(ctx, targetId.ResourceGroup, targetId.Provider, targetId.ResourceType, targetId.Name) - if err != nil { - return fmt.Errorf("deleting Server Vulnerability Assessment %s: %v", targetId.Id, err) - } - if err := future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for deletion of Server Vulnerability Assessment %s: %v", targetId.Id, err) - } - return nil -} - -type TargetId struct { - Id string - SubscriptionId string - ResourceGroup string - Provider string - ResourceType string - Name string -} - -func parseTargetId(d *pluginsdk.ResourceData) (*TargetId, error) { - rawVirtualMachineId := d.Get("virtual_machine_id").(string) - rawHybridMachineId := d.Get("hybrid_machine_id").(string) - switch { - case rawVirtualMachineId != "" && rawHybridMachineId == "": - return parseVirtualMachineId(rawVirtualMachineId) - - case rawVirtualMachineId == "" && rawHybridMachineId != "": - return parseHybridMachineId(rawHybridMachineId) - - case rawVirtualMachineId == "" && rawHybridMachineId == "" && d.Id() != "": // When the resource is imported - // Id of the vulnerability assessment extends the targets id, so we can get the target id from the first part of the vulnerability assessment id - parts := strings.Split(d.Id(), "/") - if len(parts) < 9 { // Index 0 is empty string - return nil, fmt.Errorf("can not import id: %q", d.Id()) - } - switch parts[6] { - case virtualMachineProvider: - return parseVirtualMachineId(strings.Join(parts[0:9], "/")) - case hybridMachineProvider: - return parseHybridMachineId(strings.Join(parts[0:9], "/")) - default: - return nil, fmt.Errorf("can not import id: %q", d.Id()) - } - - default: - return nil, fmt.Errorf("either `virtual_machine_id` or `hybrid_machine_id` must be specified") - } -} - -func parseVirtualMachineId(rawVirtualMachineId string) (*TargetId, error) { - virtualMachineId, err := commonids.ParseVirtualMachineID(rawVirtualMachineId) - if err != nil { - return nil, err - } - return &TargetId{ - Id: rawVirtualMachineId, - SubscriptionId: virtualMachineId.SubscriptionId, - ResourceGroup: virtualMachineId.ResourceGroupName, - Provider: virtualMachineProvider, - ResourceType: "virtualMachines", - Name: virtualMachineId.VirtualMachineName, - }, nil -} - -func parseHybridMachineId(rawHybridMachineId string) (*TargetId, error) { - hybridMachineId, err := computeParse.HybridMachineID(rawHybridMachineId) - if err != nil { - return nil, err - } - return &TargetId{ - Id: rawHybridMachineId, - SubscriptionId: hybridMachineId.SubscriptionId, - ResourceGroup: hybridMachineId.ResourceGroup, - Provider: hybridMachineProvider, - ResourceType: "machines", - Name: hybridMachineId.MachineName, - }, nil -} diff --git a/internal/services/securitycenter/security_center_server_vulnerability_assessment_resource_test.go b/internal/services/securitycenter/security_center_server_vulnerability_assessment_resource_test.go deleted file mode 100644 index fa2a4317581f..000000000000 --- a/internal/services/securitycenter/security_center_server_vulnerability_assessment_resource_test.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package securitycenter_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type ServerVulnerabilityAssessmentResource struct{} - -func testAccServerVulnerabilityAssessment_basic(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_security_center_server_vulnerability_assessment", "test") - r := ServerVulnerabilityAssessmentResource{} - - data.ResourceSequentialTest(t, r, []acceptance.TestStep{ - { - Config: r.basicCfg(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func testAccServerVulnerabilityAssessment_requiresImport(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_security_center_server_vulnerability_assessment", "test") - r := ServerVulnerabilityAssessmentResource{} - - data.ResourceSequentialTest(t, r, []acceptance.TestStep{ - { - Config: r.basicCfg(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.RequiresImportErrorStep(r.requiresImport), - }) -} - -func (ServerVulnerabilityAssessmentResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := azure.ParseAzureResourceID(state.ID) - if err != nil { - return nil, err - } - - resourceGroup := id.ResourceGroup - name := id.Path["virtualMachines"] - - resp, err := clients.SecurityCenter.ServerVulnerabilityAssessmentClient.Get(ctx, resourceGroup, "Microsoft.Compute", "virtualMachines", name) - if err != nil { - return nil, fmt.Errorf("reading Server Vulnerability Assessment (%s/%s): %+v", resourceGroup, name, err) - } - - return utils.Bool(resp.ID != nil), nil -} - -func (ServerVulnerabilityAssessmentResource) basicCfg(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-sva-%[1]d" - location = "%[2]s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctestVNet-%[1]d" - resource_group_name = azurerm_resource_group.test.name - address_space = ["192.168.1.0/24"] - location = azurerm_resource_group.test.location -} - -resource "azurerm_subnet" "test" { - name = "acctestSubnet-%[1]d" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["192.168.1.0/24"] -} - -resource "azurerm_network_interface" "test" { - name = "acctestNIC-%[1]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - ip_configuration { - name = "vm-%[1]d" - subnet_id = azurerm_subnet.test.id - private_ip_address_allocation = "Dynamic" - } -} - -resource "azurerm_linux_virtual_machine" "test" { - name = "acctestVM-%[1]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - - size = "Standard_B1s" - admin_username = "testadmin" - admin_password = "Password1234!" - disable_password_authentication = false - - source_image_reference { - publisher = "Canonical" - offer = "0001-com-ubuntu-server-jammy" - sku = "22_04-lts" - version = "latest" - } - - os_disk { - caching = "ReadWrite" - storage_account_type = "Standard_LRS" - } - - network_interface_ids = [azurerm_network_interface.test.id] -} - -resource "azurerm_security_center_subscription_pricing" "test" { - tier = "Standard" - resource_type = "VirtualMachines" - subplan = "P2" -} - -resource "azurerm_security_center_server_vulnerability_assessment" "test" { - virtual_machine_id = azurerm_linux_virtual_machine.test.id - depends_on = [azurerm_security_center_subscription_pricing.test] -} -`, data.RandomInteger, data.Locations.Primary) -} - -func (r ServerVulnerabilityAssessmentResource) requiresImport(data acceptance.TestData) string { - config := r.basicCfg(data) - return fmt.Sprintf(` -%s -resource "azurerm_security_center_server_vulnerability_assessment" "import" { - virtual_machine_id = azurerm_security_center_server_vulnerability_assessment.test.virtual_machine_id -} -`, config) -} diff --git a/internal/services/securitycenter/security_center_server_vulnerability_assessment_virtual_machine_resource.go b/internal/services/securitycenter/security_center_server_vulnerability_assessment_virtual_machine_resource.go index 4898d0236a9b..10aad7b15e34 100644 --- a/internal/services/securitycenter/security_center_server_vulnerability_assessment_virtual_machine_resource.go +++ b/internal/services/securitycenter/security_center_server_vulnerability_assessment_virtual_machine_resource.go @@ -74,7 +74,7 @@ func resourceServerVulnerabilityAssessmentVirtualMachineCreate(d *pluginsdk.Reso return tf.ImportAsExistsError("azurerm_security_center_server_vulnerability_assessment_virtual_machine", *vulnerabilityAssessment.ID) } - vulnerabilityAssessment, err = client.CreateOrUpdate(ctx, virtualMachineId.ResourceGroupName, computeProvider, vmType, virtualMachineId.VirtualMachineName) + _, err = client.CreateOrUpdate(ctx, virtualMachineId.ResourceGroupName, computeProvider, vmType, virtualMachineId.VirtualMachineName) if err != nil { return fmt.Errorf("create Server Vulnerability Assessment for %s: %+v", *virtualMachineId, err) } diff --git a/internal/services/securitycenter/security_center_server_vulnerability_assessments_setting_resource.go b/internal/services/securitycenter/security_center_server_vulnerability_assessments_setting_resource.go index c96f952a2f6c..b67b7c481b9f 100644 --- a/internal/services/securitycenter/security_center_server_vulnerability_assessments_setting_resource.go +++ b/internal/services/securitycenter/security_center_server_vulnerability_assessments_setting_resource.go @@ -20,7 +20,6 @@ import ( ) func resourceSecurityCenterServerVulnerabilityAssessmentsSetting() *pluginsdk.Resource { - return &pluginsdk.Resource{ Create: resourceSecurityCenterServerVulnerabilityAssessmentsSettingCreateOrUpdate, Read: resourceSecurityCenterServerVulnerabilityAssessmentsSettingRead, diff --git a/internal/services/securitycenter/security_center_setting_resource.go b/internal/services/securitycenter/security_center_setting_resource.go index 914db3fd8dbc..b591d70a2f03 100644 --- a/internal/services/securitycenter/security_center_setting_resource.go +++ b/internal/services/securitycenter/security_center_setting_resource.go @@ -8,14 +8,11 @@ import ( "time" "github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/securitycenter/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/securitycenter/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" ) @@ -25,12 +22,6 @@ import ( func resourceSecurityCenterSetting() *pluginsdk.Resource { validSettingName := settings.PossibleValuesForSettingName() - if !features.FourPointOhBeta() { - // This is for backward compatibility.. The swagger defines the valid enum to be "Sensinel" (see below), so this ("SENTINEL") shall be removed since 4.0. - // https://github.com/Azure/azure-rest-api-specs/blob/b52464f520b77222ac8b0bdeb80a030c0fdf5b1b/specification/security/resource-manager/Microsoft.Security/stable/2021-06-01/settings.json#L285 - validSettingName = append(validSettingName, "SENTINEL") - } - return &pluginsdk.Resource{ Create: resourceSecurityCenterSettingUpdate, Read: resourceSecurityCenterSettingRead, @@ -56,16 +47,9 @@ func resourceSecurityCenterSetting() *pluginsdk.Resource { Schema: map[string]*pluginsdk.Schema{ "setting_name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - DiffSuppressFunc: func() func(string, string, string, *schema.ResourceData) bool { - // This is a workaround for `SENTINEL` value. - if !features.FourPointOhBeta() { - return suppress.CaseDifference - } - return nil - }(), + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, ValidateFunc: validation.StringInSlice(validSettingName, false), }, "enabled": { @@ -83,11 +67,6 @@ func resourceSecurityCenterSettingUpdate(d *pluginsdk.ResourceData, meta interfa defer cancel() settingName := d.Get("setting_name").(string) - - if !features.FourPointOhBeta() && settingName == "SENTINEL" { - settingName = "Sentinel" - } - id := settings.NewSettingID(subscriptionId, settings.SettingName(settingName)) if d.IsNewResource() { diff --git a/internal/services/securitycenter/security_center_setting_resource_test.go b/internal/services/securitycenter/security_center_setting_resource_test.go index a749ddc001ae..168ec2f34710 100644 --- a/internal/services/securitycenter/security_center_setting_resource_test.go +++ b/internal/services/securitycenter/security_center_setting_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -81,15 +80,6 @@ func testAccSecurityCenterSetting_update(t *testing.T) { data.ImportStep(), } - if !features.FourPointOhBeta() { - testcases = append(testcases, []acceptance.TestStep{{ - Config: r.cfg("SENTINEL", true), - Check: acceptance.ComposeTestCheckFunc(), - }, { - Config: r.cfg("SENTINEL", false), - Check: acceptance.ComposeTestCheckFunc(), - }}...) - } data.ResourceSequentialTest(t, r, testcases) } diff --git a/internal/services/securitycenter/security_center_storage_defender_resource_test.go b/internal/services/securitycenter/security_center_storage_defender_resource_test.go index ce83703da38e..c8a32aa44e00 100644 --- a/internal/services/securitycenter/security_center_storage_defender_resource_test.go +++ b/internal/services/securitycenter/security_center_storage_defender_resource_test.go @@ -143,6 +143,10 @@ func TestAccSecurityCenterStorageDefender_eventGrid(t *testing.T) { func (r SecurityCenterStorageDefenderResource) template(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-storage-%[1]d" location = "%[2]s" diff --git a/internal/services/securitycenter/security_center_subscription_pricing_resource.go b/internal/services/securitycenter/security_center_subscription_pricing_resource.go index d141bcf97265..ac746bcc59e6 100644 --- a/internal/services/securitycenter/security_center_subscription_pricing_resource.go +++ b/internal/services/securitycenter/security_center_subscription_pricing_resource.go @@ -262,8 +262,8 @@ func resourceSecurityCenterSubscriptionPricingDelete(d *pluginsdk.ResourceData, func expandSecurityCenterSubscriptionPricingExtensions(inputList []interface{}, extensionsStatusFromBackend *[]pricings_v2023_01_01.Extension) *[]pricings_v2023_01_01.Extension { extensionStatuses := map[string]bool{} extensionProperties := make(map[string]interface{}) - var outputList []pricings_v2023_01_01.Extension + outputList := make([]pricings_v2023_01_01.Extension, 0, len(inputList)) if extensionsStatusFromBackend != nil { for _, backendExtension := range *extensionsStatusFromBackend { // set the default value to false, then turn on the extension that appear in the template @@ -284,16 +284,21 @@ func expandSecurityCenterSubscriptionPricingExtensions(inputList []interface{}, } for extensionName, toBeEnabled := range extensionStatuses { - isEnabled := pricings_v2023_01_01.IsEnabledFalse if toBeEnabled { isEnabled = pricings_v2023_01_01.IsEnabledTrue } output := pricings_v2023_01_01.Extension{ - Name: extensionName, - IsEnabled: isEnabled, - AdditionalExtensionProperties: pointer.To(extensionProperties), + Name: extensionName, + IsEnabled: isEnabled, + } + + if vAdditional, ok := extensionProperties[extensionName]; ok { + props, _ := vAdditional.(*interface{}) + p := (*props).(map[string]interface{}) + output.AdditionalExtensionProperties = pointer.To(p) } + outputList = append(outputList, output) } diff --git a/internal/services/securitycenter/security_center_subscription_pricing_resource_test.go b/internal/services/securitycenter/security_center_subscription_pricing_resource_test.go index cc068d58218e..a530bfd6467c 100644 --- a/internal/services/securitycenter/security_center_subscription_pricing_resource_test.go +++ b/internal/services/securitycenter/security_center_subscription_pricing_resource_test.go @@ -33,10 +33,6 @@ func TestAccServerVulnerabilityAssessment(t *testing.T) { "complete": testAccSecurityCenterAssessmentPolicy_complete, "update": testAccSecurityCenterAssessmentPolicy_update, }, - "serverVulnerabilityAssessment": { - "basic": testAccServerVulnerabilityAssessment_basic, - "requiresImport": testAccServerVulnerabilityAssessment_requiresImport, - }, "serverVulnerabilityAssessmentVirtualMachine": { "basic": testAccServerVulnerabilityAssessmentVirtualMachine_basic, "requiresImport": testAccServerVulnerabilityAssessmentVirtualMachine_requiresImport, @@ -60,6 +56,15 @@ func TestAccSecurityCenterSubscriptionPricing_cloudPosture(t *testing.T) { }) } +func TestAccSecurityCenterSubscriptionPricing_storage(t *testing.T) { + acceptance.RunTestsInSequence(t, map[string]map[string]func(t *testing.T){ + "securityCenterSubscriptionPricing": { + "subplan": testAccSecurityCenterSubscriptionPricing_storageAccountSubplan, + "defender": testAccSecurityCenterSubscriptionPricing_storageAccountDefender, + }, + }) +} + func TestAccSecurityCenterSubscriptionPricing_update(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_security_center_subscription_pricing", "test") r := SecurityCenterSubscriptionPricingResource{} @@ -92,7 +97,7 @@ func TestAccSecurityCenterSubscriptionPricing_cosmosDbs(t *testing.T) { }) } -func TestAccSecurityCenterSubscriptionPricing_storageAccountSubplan(t *testing.T) { +func testAccSecurityCenterSubscriptionPricing_storageAccountSubplan(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_security_center_subscription_pricing", "test") r := SecurityCenterSubscriptionPricingResource{} @@ -109,6 +114,21 @@ func TestAccSecurityCenterSubscriptionPricing_storageAccountSubplan(t *testing.T }) } +func testAccSecurityCenterSubscriptionPricing_storageAccountDefender(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_security_center_subscription_pricing", "test") + r := SecurityCenterSubscriptionPricingResource{} + + data.ResourceSequentialTest(t, r, []acceptance.TestStep{ + { + Config: r.storageAccountDefender(), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func testAccSecurityCenterSubscriptionPricing_cloudPostureExtension(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_security_center_subscription_pricing", "test") r := SecurityCenterSubscriptionPricingResource{} @@ -242,6 +262,31 @@ resource "azurerm_security_center_subscription_pricing" "test" { ` } +func (SecurityCenterSubscriptionPricingResource) storageAccountDefender() string { + return ` +provider "azurerm" { + features {} +} + +resource "azurerm_security_center_subscription_pricing" "test" { + tier = "Standard" + resource_type = "StorageAccounts" + subplan = "DefenderForStorageV2" + + extension { + additional_extension_properties = { + "CapGBPerMonthPerStorageAccount" = "5000" + } + name = "OnUploadMalwareScanning" + } + + extension { + name = "SensitiveDataDiscovery" + } +} +` +} + func (SecurityCenterSubscriptionPricingResource) cloudPostureExtension() string { return ` provider "azurerm" { diff --git a/internal/services/securitycenter/validate/assessment_metadata_id_test.go b/internal/services/securitycenter/validate/assessment_metadata_id_test.go index e7334d570338..0c8a773891af 100644 --- a/internal/services/securitycenter/validate/assessment_metadata_id_test.go +++ b/internal/services/securitycenter/validate/assessment_metadata_id_test.go @@ -12,7 +12,6 @@ func TestAssessmentMetadataID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/auto_provisioning_setting_id_test.go b/internal/services/securitycenter/validate/auto_provisioning_setting_id_test.go index 70c36908616f..df96060b1699 100644 --- a/internal/services/securitycenter/validate/auto_provisioning_setting_id_test.go +++ b/internal/services/securitycenter/validate/auto_provisioning_setting_id_test.go @@ -12,7 +12,6 @@ func TestAutoProvisioningSettingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/automation_id_test.go b/internal/services/securitycenter/validate/automation_id_test.go index f55c57fe27b1..d5b7e526a731 100644 --- a/internal/services/securitycenter/validate/automation_id_test.go +++ b/internal/services/securitycenter/validate/automation_id_test.go @@ -12,7 +12,6 @@ func TestAutomationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/contact_id_test.go b/internal/services/securitycenter/validate/contact_id_test.go index 593d6903c735..603c9325ee90 100644 --- a/internal/services/securitycenter/validate/contact_id_test.go +++ b/internal/services/securitycenter/validate/contact_id_test.go @@ -12,7 +12,6 @@ func TestContactID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/iot_security_solution_id_test.go b/internal/services/securitycenter/validate/iot_security_solution_id_test.go index c6f12e55dbc9..1960131fe7c5 100644 --- a/internal/services/securitycenter/validate/iot_security_solution_id_test.go +++ b/internal/services/securitycenter/validate/iot_security_solution_id_test.go @@ -12,7 +12,6 @@ func TestIotSecuritySolutionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/pricing_id_test.go b/internal/services/securitycenter/validate/pricing_id_test.go index e1e601f1ca89..6377c72b541c 100644 --- a/internal/services/securitycenter/validate/pricing_id_test.go +++ b/internal/services/securitycenter/validate/pricing_id_test.go @@ -12,7 +12,6 @@ func TestPricingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/setting_id_test.go b/internal/services/securitycenter/validate/setting_id_test.go index f680b7a15a3d..b59340cce243 100644 --- a/internal/services/securitycenter/validate/setting_id_test.go +++ b/internal/services/securitycenter/validate/setting_id_test.go @@ -12,7 +12,6 @@ func TestSettingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/vulnerability_assessment_vm_id_test.go b/internal/services/securitycenter/validate/vulnerability_assessment_vm_id_test.go index bf4faf3a553b..8e515dee384c 100644 --- a/internal/services/securitycenter/validate/vulnerability_assessment_vm_id_test.go +++ b/internal/services/securitycenter/validate/vulnerability_assessment_vm_id_test.go @@ -12,7 +12,6 @@ func TestVulnerabilityAssessmentVmID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/vulnerability_assessments_setting_id_test.go b/internal/services/securitycenter/validate/vulnerability_assessments_setting_id_test.go index f314d40341f3..66d8c2d2001c 100644 --- a/internal/services/securitycenter/validate/vulnerability_assessments_setting_id_test.go +++ b/internal/services/securitycenter/validate/vulnerability_assessments_setting_id_test.go @@ -12,7 +12,6 @@ func TestVulnerabilityAssessmentsSettingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/securitycenter/validate/workspace_id_test.go b/internal/services/securitycenter/validate/workspace_id_test.go index cddad4d34028..af0c88f5dc25 100644 --- a/internal/services/securitycenter/validate/workspace_id_test.go +++ b/internal/services/securitycenter/validate/workspace_id_test.go @@ -12,7 +12,6 @@ func TestWorkspaceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/sentinel/azuresdkhacks/securitymlanalyticssettings.go b/internal/services/sentinel/azuresdkhacks/securitymlanalyticssettings.go index bbf5dbcabd6d..ff48216df0f1 100644 --- a/internal/services/sentinel/azuresdkhacks/securitymlanalyticssettings.go +++ b/internal/services/sentinel/azuresdkhacks/securitymlanalyticssettings.go @@ -10,7 +10,7 @@ import ( "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/validation" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type SecurityMLAnalyticsSettingsClient struct { @@ -19,15 +19,26 @@ type SecurityMLAnalyticsSettingsClient struct { func (client SecurityMLAnalyticsSettingsClient) List(ctx context.Context, resourceGroupName string, workspaceName string) (result SecurityMLAnalyticsSettingsListPage, err error) { if err := validation.Validate([]validation.Validation{ - {TargetValue: client.SubscriptionID, - Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: workspaceName, - Constraints: []validation.Constraint{{Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "workspaceName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { - return result, validation.NewError("securityinsight.SecurityMLAnalyticsSettingsClient", "List", err.Error()) + { + TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}, + }, + { + TargetValue: resourceGroupName, + Constraints: []validation.Constraint{ + {Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + }, + }, + { + TargetValue: workspaceName, + Constraints: []validation.Constraint{ + {Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "workspaceName", Name: validation.MinLength, Rule: 1, Chain: nil}, + }, + }, + }); err != nil { + return result, validation.NewError("securityinsight.SecurityMLAnalyticsSettingsClient", "List", err.Error()) // nolint: govet } result.fn = client.listNextResults diff --git a/internal/services/sentinel/azuresdkhacks/securitymlanalyticssettings_models.go b/internal/services/sentinel/azuresdkhacks/securitymlanalyticssettings_models.go index a94f9a3d9632..fbe73ecb22b5 100644 --- a/internal/services/sentinel/azuresdkhacks/securitymlanalyticssettings_models.go +++ b/internal/services/sentinel/azuresdkhacks/securitymlanalyticssettings_models.go @@ -12,7 +12,7 @@ import ( "github.com/Azure/go-autorest/autorest/date" "github.com/Azure/go-autorest/autorest/to" "github.com/gofrs/uuid" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) // TODO 4.0 check if this can be removed @@ -227,9 +227,11 @@ type SecurityMLAnalyticsSetting struct { func (smas SecurityMLAnalyticsSetting) AsAnomalySecurityMLAnalyticsSettings() (*AnomalySecurityMLAnalyticsSettings, bool) { return nil, false } + func (smas SecurityMLAnalyticsSetting) AsSecurityMLAnalyticsSetting() (*SecurityMLAnalyticsSetting, bool) { return &smas, true } + func (smas SecurityMLAnalyticsSetting) AsBasicSecurityMLAnalyticsSetting() (BasicSecurityMLAnalyticsSetting, bool) { return &smas, true } @@ -247,9 +249,11 @@ type AnomalySecurityMLAnalyticsSettings struct { func (asmas AnomalySecurityMLAnalyticsSettings) AsAnomalySecurityMLAnalyticsSettings() (*AnomalySecurityMLAnalyticsSettings, bool) { return &asmas, true } + func (asmas AnomalySecurityMLAnalyticsSettings) AsSecurityMLAnalyticsSetting() (*SecurityMLAnalyticsSetting, bool) { return nil, false } + func (asmas AnomalySecurityMLAnalyticsSettings) AsBasicSecurityMLAnalyticsSetting() (BasicSecurityMLAnalyticsSetting, bool) { return &asmas, true } diff --git a/internal/services/sentinel/azuresdkhacks/threat_intelligence_indicator_models.go b/internal/services/sentinel/azuresdkhacks/threat_intelligence_indicator_models.go index 0a36816409b8..1cbdea8c2bb0 100644 --- a/internal/services/sentinel/azuresdkhacks/threat_intelligence_indicator_models.go +++ b/internal/services/sentinel/azuresdkhacks/threat_intelligence_indicator_models.go @@ -9,7 +9,7 @@ import ( "fmt" "github.com/Azure/go-autorest/autorest" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) // TODO 4.0: check if this could be removed. diff --git a/internal/services/sentinel/azuresdkhacks/threatintelligenceindicator.go b/internal/services/sentinel/azuresdkhacks/threatintelligenceindicator.go index 3a89d4680c5c..00e6c563dcfb 100644 --- a/internal/services/sentinel/azuresdkhacks/threatintelligenceindicator.go +++ b/internal/services/sentinel/azuresdkhacks/threatintelligenceindicator.go @@ -11,7 +11,7 @@ import ( "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/autorest/validation" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type ThreatIntelligenceIndicatorClient struct { @@ -20,16 +20,27 @@ type ThreatIntelligenceIndicatorClient struct { func (client ThreatIntelligenceIndicatorClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, name string) (result ThreatIntelligenceInformationModel, err error) { if err := validation.Validate([]validation.Validation{ - {TargetValue: client.SubscriptionID, - Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: workspaceName, - Constraints: []validation.Constraint{{Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + { + TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}, + }, + { + TargetValue: resourceGroupName, + Constraints: []validation.Constraint{ + {Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + }, + }, + { + TargetValue: workspaceName, + Constraints: []validation.Constraint{ + {Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "workspaceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "workspaceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("securityinsight.ThreatIntelligenceIndicatorClient", "Get", err.Error()) + {Target: "workspaceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$`, Chain: nil}, + }, + }, + }); err != nil { + return result, validation.NewError("securityinsight.ThreatIntelligenceIndicatorClient", "Get", err.Error()) // nolint: govet } req, err := client.GetPreparer(ctx, resourceGroupName, workspaceName, name) @@ -91,16 +102,27 @@ func (client ThreatIntelligenceIndicatorClient) GetResponder(resp *http.Response func (client ThreatIntelligenceIndicatorClient) CreateIndicator(ctx context.Context, resourceGroupName string, workspaceName string, threatIntelligenceProperties ThreatIntelligenceIndicatorModel) (result ThreatIntelligenceInformationModel, err error) { if err := validation.Validate([]validation.Validation{ - {TargetValue: client.SubscriptionID, - Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: workspaceName, - Constraints: []validation.Constraint{{Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + { + TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}, + }, + { + TargetValue: resourceGroupName, + Constraints: []validation.Constraint{ + {Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + }, + }, + { + TargetValue: workspaceName, + Constraints: []validation.Constraint{ + {Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "workspaceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "workspaceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("securityinsight.ThreatIntelligenceIndicatorClient", "CreateIndicator", err.Error()) + {Target: "workspaceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$`, Chain: nil}, + }, + }, + }); err != nil { + return result, validation.NewError("securityinsight.ThreatIntelligenceIndicatorClient", "CreateIndicator", err.Error()) // nolint: govet } req, err := client.CreateIndicatorPreparer(ctx, resourceGroupName, workspaceName, threatIntelligenceProperties) @@ -164,16 +186,27 @@ func (client ThreatIntelligenceIndicatorClient) CreateIndicatorResponder(resp *h func (client ThreatIntelligenceIndicatorClient) QueryIndicators(ctx context.Context, resourceGroupName string, workspaceName string, threatIntelligenceFilteringCriteria securityinsight.ThreatIntelligenceFilteringCriteria) (result ThreatIntelligenceInformationListPage, err error) { if err := validation.Validate([]validation.Validation{ - {TargetValue: client.SubscriptionID, - Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: workspaceName, - Constraints: []validation.Constraint{{Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + { + TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}, + }, + { + TargetValue: resourceGroupName, + Constraints: []validation.Constraint{ + {Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + }, + }, + { + TargetValue: workspaceName, + Constraints: []validation.Constraint{ + {Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "workspaceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "workspaceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("securityinsight.ThreatIntelligenceIndicatorClient", "QueryIndicators", err.Error()) + {Target: "workspaceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$`, Chain: nil}, + }, + }, + }); err != nil { + return result, validation.NewError("securityinsight.ThreatIntelligenceIndicatorClient", "QueryIndicators", err.Error()) // nolint: govet } result.fn = client.queryIndicatorsNextResults @@ -275,16 +308,27 @@ func (client ThreatIntelligenceIndicatorClient) QueryIndicatorsResponder(resp *h func (client ThreatIntelligenceIndicatorClient) Create(ctx context.Context, resourceGroupName string, workspaceName string, name string, threatIntelligenceProperties ThreatIntelligenceIndicatorModel) (result ThreatIntelligenceInformationModel, err error) { if err := validation.Validate([]validation.Validation{ - {TargetValue: client.SubscriptionID, - Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: resourceGroupName, - Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, - {TargetValue: workspaceName, - Constraints: []validation.Constraint{{Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + { + TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}, + }, + { + TargetValue: resourceGroupName, + Constraints: []validation.Constraint{ + {Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, + }, + }, + { + TargetValue: workspaceName, + Constraints: []validation.Constraint{ + {Target: "workspaceName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "workspaceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "workspaceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$`, Chain: nil}}}}); err != nil { - return result, validation.NewError("securityinsight.ThreatIntelligenceIndicatorClient", "Create", err.Error()) + {Target: "workspaceName", Name: validation.Pattern, Rule: `^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$`, Chain: nil}, + }, + }, + }); err != nil { + return result, validation.NewError("securityinsight.ThreatIntelligenceIndicatorClient", "Create", err.Error()) // nolint: govet } req, err := client.CreatePreparer(ctx, resourceGroupName, workspaceName, name, threatIntelligenceProperties) diff --git a/internal/services/sentinel/client/client.go b/internal/services/sentinel/client/client.go index 05207082e08d..ae44b7adf3ec 100644 --- a/internal/services/sentinel/client/client.go +++ b/internal/services/sentinel/client/client.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems" "github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists" "github.com/hashicorp/terraform-provider-azurerm/internal/common" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type Client struct { diff --git a/internal/services/sentinel/parse/automation_rule.go b/internal/services/sentinel/parse/automation_rule.go index 452a575d979c..5467be6b1624 100644 --- a/internal/services/sentinel/parse/automation_rule.go +++ b/internal/services/sentinel/parse/automation_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func AutomationRuleID(input string) (*AutomationRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { @@ -95,11 +96,11 @@ func AutomationRuleIDInsensitively(input string) (*AutomationRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'workspaces' segment diff --git a/internal/services/sentinel/parse/automation_rule_test.go b/internal/services/sentinel/parse/automation_rule_test.go index 22f2e8181fdd..be151b5b1e93 100644 --- a/internal/services/sentinel/parse/automation_rule_test.go +++ b/internal/services/sentinel/parse/automation_rule_test.go @@ -27,7 +27,6 @@ func TestAutomationRuleID(t *testing.T) { Error bool Expected *AutomationRuleId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestAutomationRuleIDInsensitively(t *testing.T) { Error bool Expected *AutomationRuleId }{ - { // empty Input: "", diff --git a/internal/services/sentinel/parse/data_connector.go b/internal/services/sentinel/parse/data_connector.go index f4431009d18b..762b31486d02 100644 --- a/internal/services/sentinel/parse/data_connector.go +++ b/internal/services/sentinel/parse/data_connector.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func DataConnectorID(input string) (*DataConnectorId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/sentinel/parse/data_connector_test.go b/internal/services/sentinel/parse/data_connector_test.go index b262ff2f2b00..8fc72a1d3dc0 100644 --- a/internal/services/sentinel/parse/data_connector_test.go +++ b/internal/services/sentinel/parse/data_connector_test.go @@ -27,7 +27,6 @@ func TestDataConnectorID(t *testing.T) { Error bool Expected *DataConnectorId }{ - { // empty Input: "", diff --git a/internal/services/sentinel/parse/ml_analytics_settings.go b/internal/services/sentinel/parse/ml_analytics_settings.go index 0c7d3d808fbd..9d81b12fc30a 100644 --- a/internal/services/sentinel/parse/ml_analytics_settings.go +++ b/internal/services/sentinel/parse/ml_analytics_settings.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -30,12 +31,12 @@ func NewMLAnalyticsSettingsID(subscriptionId, resourceGroup, workspaceName, secu func (id MLAnalyticsSettingsId) String() string { segments := []string{ - fmt.Sprintf("Security M L Analytics Setting Name %q", id.SecurityMLAnalyticsSettingName), + fmt.Sprintf("SecurityML Analytics Setting Name %q", id.SecurityMLAnalyticsSettingName), fmt.Sprintf("Workspace Name %q", id.WorkspaceName), fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "M L Analytics Settings", segmentsStr) + return fmt.Sprintf("%s: (%s)", "ML Analytics Settings", segmentsStr) } func (id MLAnalyticsSettingsId) ID() string { @@ -56,11 +57,11 @@ func MLAnalyticsSettingsID(input string) (*MLAnalyticsSettingsId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/sentinel/parse/ml_analytics_settings_test.go b/internal/services/sentinel/parse/ml_analytics_settings_test.go index e0c2d0acaab4..f65365d85c5b 100644 --- a/internal/services/sentinel/parse/ml_analytics_settings_test.go +++ b/internal/services/sentinel/parse/ml_analytics_settings_test.go @@ -27,7 +27,6 @@ func TestMLAnalyticsSettingsID(t *testing.T) { Error bool Expected *MLAnalyticsSettingsId }{ - { // empty Input: "", diff --git a/internal/services/sentinel/parse/sentinel_alert_rule_template.go b/internal/services/sentinel/parse/sentinel_alert_rule_template.go index e06cd32958b3..7fc3ff515ffb 100644 --- a/internal/services/sentinel/parse/sentinel_alert_rule_template.go +++ b/internal/services/sentinel/parse/sentinel_alert_rule_template.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SentinelAlertRuleTemplateID(input string) (*SentinelAlertRuleTemplateId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { @@ -95,11 +96,11 @@ func SentinelAlertRuleTemplateIDInsensitively(input string) (*SentinelAlertRuleT } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'workspaces' segment diff --git a/internal/services/sentinel/parse/sentinel_alert_rule_template_test.go b/internal/services/sentinel/parse/sentinel_alert_rule_template_test.go index 04eaa1dfd1fd..2b490212ad73 100644 --- a/internal/services/sentinel/parse/sentinel_alert_rule_template_test.go +++ b/internal/services/sentinel/parse/sentinel_alert_rule_template_test.go @@ -27,7 +27,6 @@ func TestSentinelAlertRuleTemplateID(t *testing.T) { Error bool Expected *SentinelAlertRuleTemplateId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSentinelAlertRuleTemplateIDInsensitively(t *testing.T) { Error bool Expected *SentinelAlertRuleTemplateId }{ - { // empty Input: "", diff --git a/internal/services/sentinel/parse/threat_intelligence_indicator.go b/internal/services/sentinel/parse/threat_intelligence_indicator.go index 63ced9c0e62e..38e5e113ebd0 100644 --- a/internal/services/sentinel/parse/threat_intelligence_indicator.go +++ b/internal/services/sentinel/parse/threat_intelligence_indicator.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ThreatIntelligenceIndicatorID(input string) (*ThreatIntelligenceIndicatorId } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/sentinel/parse/threat_intelligence_indicator_test.go b/internal/services/sentinel/parse/threat_intelligence_indicator_test.go index 13d0373564f9..be897b7c29ca 100644 --- a/internal/services/sentinel/parse/threat_intelligence_indicator_test.go +++ b/internal/services/sentinel/parse/threat_intelligence_indicator_test.go @@ -27,7 +27,6 @@ func TestThreatIntelligenceIndicatorID(t *testing.T) { Error bool Expected *ThreatIntelligenceIndicatorId }{ - { // empty Input: "", diff --git a/internal/services/sentinel/sentinel_alert_rule.go b/internal/services/sentinel/sentinel_alert_rule.go index 2c2612e11427..0f8e28d0bca0 100644 --- a/internal/services/sentinel/sentinel_alert_rule.go +++ b/internal/services/sentinel/sentinel_alert_rule.go @@ -310,8 +310,7 @@ func expandAlertRuleAlertDynamicProperties(input []interface{}) *[]alertrules.Al return nil } - var output []alertrules.AlertPropertyMapping - + output := make([]alertrules.AlertPropertyMapping, 0, len(input)) for _, v := range input { b := v.(map[string]interface{}) property := alertrules.AlertProperty(b["name"].(string)) @@ -325,11 +324,11 @@ func expandAlertRuleAlertDynamicProperties(input []interface{}) *[]alertrules.Al } func flattenAlertRuleAlertDynamicProperties(input *[]alertrules.AlertPropertyMapping) []interface{} { - output := make([]interface{}, 0) if input == nil || len(*input) == 0 { - return output + return []interface{}{} } + output := make([]interface{}, 0, len(*input)) for _, i := range *input { name := "" if i.AlertProperty != nil { @@ -349,8 +348,7 @@ func expandAlertRuleEntityMapping(input []interface{}) *[]alertrules.EntityMappi return nil } - result := make([]alertrules.EntityMapping, 0) - + result := make([]alertrules.EntityMapping, 0, len(input)) for _, e := range input { b := e.(map[string]interface{}) mappingType := alertrules.EntityMappingType(b["entity_type"].(string)) @@ -368,8 +366,7 @@ func flattenAlertRuleEntityMapping(input *[]alertrules.EntityMapping) []interfac return []interface{}{} } - output := make([]interface{}, 0) - + output := make([]interface{}, 0, len(*input)) for _, e := range *input { entityType := "" if e.EntityType != nil { @@ -389,8 +386,7 @@ func expandAlertRuleFieldMapping(input []interface{}) *[]alertrules.FieldMapping return nil } - result := make([]alertrules.FieldMapping, 0) - + result := make([]alertrules.FieldMapping, 0, len(input)) for _, e := range input { b := e.(map[string]interface{}) result = append(result, alertrules.FieldMapping{ @@ -407,8 +403,7 @@ func flattenAlertRuleFieldMapping(input *[]alertrules.FieldMapping) []interface{ return []interface{}{} } - output := make([]interface{}, 0) - + output := make([]interface{}, 0, len(*input)) for _, e := range *input { var identifier string if e.Identifier != nil { @@ -434,8 +429,7 @@ func expandAlertRuleSentinelEntityMapping(input []interface{}) *[]alertrules.Sen return nil } - result := make([]alertrules.SentinelEntityMapping, 0) - + result := make([]alertrules.SentinelEntityMapping, 0, len(input)) for _, e := range input { b := e.(map[string]interface{}) result = append(result, alertrules.SentinelEntityMapping{ @@ -451,8 +445,7 @@ func flattenAlertRuleSentinelEntityMapping(input *[]alertrules.SentinelEntityMap return []interface{}{} } - output := make([]interface{}, 0) - + output := make([]interface{}, 0, len(*input)) for _, e := range *input { var columnName string if e.ColumnName != nil { diff --git a/internal/services/sentinel/sentinel_alert_rule_anomaly.go b/internal/services/sentinel/sentinel_alert_rule_anomaly.go index 87a523b54961..831483d38c21 100644 --- a/internal/services/sentinel/sentinel_alert_rule_anomaly.go +++ b/internal/services/sentinel/sentinel_alert_rule_anomaly.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/sentinel/azuresdkhacks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/sentinel/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type AnomalyRuleRequiredDataConnectorModel struct { @@ -293,7 +293,6 @@ func AlertRuleAnomalyReadWithPredicate(ctx context.Context, baseClient securityi if predicateFunc(v) { return v, nil } - } if err := resp.NextWithContext(ctx); err != nil { return nil, fmt.Errorf("listing next: %+v", err) diff --git a/internal/services/sentinel/sentinel_alert_rule_anomaly_built_in_resource.go b/internal/services/sentinel/sentinel_alert_rule_anomaly_built_in_resource.go index 1e6ef36d0444..cb694be95115 100644 --- a/internal/services/sentinel/sentinel_alert_rule_anomaly_built_in_resource.go +++ b/internal/services/sentinel/sentinel_alert_rule_anomaly_built_in_resource.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type AlertRuleAnomalyBuiltInModel struct { @@ -199,7 +199,6 @@ func (r AlertRuleAnomalyBuiltInResource) Create() sdk.ResourceFunc { return false }) - if err != nil { return fmt.Errorf("reading: %+v", err) } @@ -354,7 +353,6 @@ func (r AlertRuleAnomalyBuiltInResource) Update() sdk.ResourceFunc { } return false }) - if err != nil { return fmt.Errorf("retrieving %s: %+v", *id, err) } @@ -419,7 +417,6 @@ func (r AlertRuleAnomalyBuiltInResource) Delete() sdk.ResourceFunc { } return false }) - if err != nil { return fmt.Errorf("retrieving %s: %+v", *id, err) } diff --git a/internal/services/sentinel/sentinel_alert_rule_anomaly_data_source.go b/internal/services/sentinel/sentinel_alert_rule_anomaly_data_source.go index 7c0419a05672..40c62e9e4bfb 100644 --- a/internal/services/sentinel/sentinel_alert_rule_anomaly_data_source.go +++ b/internal/services/sentinel/sentinel_alert_rule_anomaly_data_source.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/services/sentinel/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type AlertRuleAnomalyDataSourceModel struct { @@ -187,7 +187,6 @@ func (a AlertRuleAnomalyDataSource) Read() sdk.ResourceFunc { return false }) - if err != nil { return fmt.Errorf("retrieving: %+v", err) } diff --git a/internal/services/sentinel/sentinel_alert_rule_anomaly_duplicate_resource.go b/internal/services/sentinel/sentinel_alert_rule_anomaly_duplicate_resource.go index d6baaf2111d6..bbc716d52ab4 100644 --- a/internal/services/sentinel/sentinel_alert_rule_anomaly_duplicate_resource.go +++ b/internal/services/sentinel/sentinel_alert_rule_anomaly_duplicate_resource.go @@ -19,7 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type AlertRuleAnomalyDuplicateModel struct { @@ -334,7 +334,6 @@ func (r AlertRuleAnomalyDuplicateResource) Create() sdk.ResourceFunc { return false }) - if err != nil { return fmt.Errorf("reading built-in anomaly rule: %+v", err) } @@ -521,7 +520,6 @@ func (r AlertRuleAnomalyDuplicateResource) Update() sdk.ResourceFunc { return false }) - if err != nil { return fmt.Errorf("retrieving %s: %+v", *id, err) } diff --git a/internal/services/sentinel/sentinel_alert_rule_fusion_resource.go b/internal/services/sentinel/sentinel_alert_rule_fusion_resource.go index 6a25df613993..02b67abf2db9 100644 --- a/internal/services/sentinel/sentinel_alert_rule_fusion_resource.go +++ b/internal/services/sentinel/sentinel_alert_rule_fusion_resource.go @@ -8,20 +8,23 @@ import ( "log" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" ) +const SentinelAlertRuleFusionName = "BuiltInFusion" + func resourceSentinelAlertRuleFusion() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceSentinelAlertRuleFusionCreateUpdate, + resource := &pluginsdk.Resource{ + Create: resourceSentinelAlertRuleFusionCreate, Read: resourceSentinelAlertRuleFusionRead, - Update: resourceSentinelAlertRuleFusionCreateUpdate, + Update: resourceSentinelAlertRuleFusionUpdate, Delete: resourceSentinelAlertRuleFusionDelete, Importer: pluginsdk.ImporterValidatingResourceIdThen(func(id string) error { @@ -37,13 +40,6 @@ func resourceSentinelAlertRuleFusion() *pluginsdk.Resource { }, Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "log_analytics_workspace_id": { Type: pluginsdk.TypeString, Required: true, @@ -122,14 +118,29 @@ func resourceSentinelAlertRuleFusion() *pluginsdk.Resource { }, }, } + + if !features.FivePointOhBeta() { + resource.Schema["name"] = &pluginsdk.Schema{ + Deprecated: "the `name` is deprecated and will be removed in v5.0 version of the provider.", + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + Default: SentinelAlertRuleFusionName, + ValidateFunc: validation.StringIsNotEmpty, + } + } + return resource } -func resourceSentinelAlertRuleFusionCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { +func resourceSentinelAlertRuleFusionCreate(d *pluginsdk.ResourceData, meta interface{}) error { client := meta.(*clients.Client).Sentinel.AlertRulesClient - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) + ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() - name := d.Get("name").(string) + name := SentinelAlertRuleFusionName + if !features.FivePointOhBeta() { + name = d.Get("name").(string) + } workspaceID, err := alertrules.ParseWorkspaceID(d.Get("log_analytics_workspace_id").(string)) if err != nil { @@ -137,19 +148,8 @@ func resourceSentinelAlertRuleFusionCreateUpdate(d *pluginsdk.ResourceData, meta } id := alertrules.NewAlertRuleID(workspaceID.SubscriptionId, workspaceID.ResourceGroupName, workspaceID.WorkspaceName, name) - if d.IsNewResource() { - resp, err := client.Get(ctx, id) - if err != nil { - if !response.WasNotFound(resp.HttpResponse) { - return fmt.Errorf("checking for existing %q: %+v", id, err) - } - } - - if !response.WasNotFound(resp.HttpResponse) { - return tf.ImportAsExistsError("azurerm_sentinel_alert_rule_fusion", id.ID()) - } - } - + // The only one fusion alert is enabled by default, so we do not do exisiting check here. + // https://learn.microsoft.com/en-us/azure/sentinel/configure-fusion-rules#configure-scheduled-analytics-rules-for-fusion-detections params := alertrules.FusionAlertRule{ Properties: &alertrules.FusionAlertRuleProperties{ AlertRuleTemplateName: d.Get("alert_rule_template_guid").(string), @@ -158,25 +158,65 @@ func resourceSentinelAlertRuleFusionCreateUpdate(d *pluginsdk.ResourceData, meta }, } - if !d.IsNewResource() { - resp, err := client.Get(ctx, id) - if err != nil { - return fmt.Errorf("retrieving %q: %+v", id, err) - } + if _, err := client.CreateOrUpdate(ctx, id, params); err != nil { + return fmt.Errorf("creating %s: %+v", id, err) + } - if resp.Model == nil { - return fmt.Errorf("retrieving %q: model was nil", id) - } - if err = assertAlertRuleKind(resp.Model, alertrules.AlertRuleKindFusion); err != nil { - return fmt.Errorf("asserting alert rule of %q: %+v", id, err) - } + d.SetId(id.ID()) + + return resourceSentinelAlertRuleFusionRead(d, meta) +} + +func resourceSentinelAlertRuleFusionUpdate(d *pluginsdk.ResourceData, meta interface{}) error { + client := meta.(*clients.Client).Sentinel.AlertRulesClient + ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) + defer cancel() + + id, err := alertrules.ParseAlertRuleID(d.Id()) + if err != nil { + return err } - if _, err := client.CreateOrUpdate(ctx, id, params); err != nil { - return fmt.Errorf("creating Sentinel Alert Rule Fusion %q: %+v", id, err) + resp, err := client.Get(ctx, *id) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", id, err) } - d.SetId(id.ID()) + if resp.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", id) + } + + payload, ok := resp.Model.(alertrules.FusionAlertRule) + if !ok { + return fmt.Errorf("retrieving %s: expected an alert rule of type `Fusion`, got %q", id, pointer.From(resp.Model.AlertRule().Type)) + } + + if payload.Properties == nil { + return fmt.Errorf("retrieving %s: `properties` was nil", id) + } + + if d.HasChange("alert_rule_template_guid") { + payload.Properties.AlertRuleTemplateName = d.Get("alert_rule_template_guid").(string) + } + + if d.HasChange("enabled") { + payload.Properties.Enabled = d.Get("enabled").(bool) + } + + if d.HasChange("source") { + payload.Properties.SourceSettings = expandFusionSourceSettings(d.Get("source").([]interface{})) + } + + // The `Description` is read-only but not specified on the Swagger, tracked on: https://github.com/Azure/azure-rest-api-specs/issues/31330 + payload.Properties.Description = nil + payload.Properties.DisplayName = nil + payload.Properties.LastModifiedUtc = nil + payload.Properties.Severity = nil + payload.Properties.Tactics = nil + + if _, err := client.CreateOrUpdate(ctx, *id, payload); err != nil { + return fmt.Errorf("updating %s: %+v", id, err) + } return resourceSentinelAlertRuleFusionRead(d, meta) } @@ -194,25 +234,27 @@ func resourceSentinelAlertRuleFusionRead(d *pluginsdk.ResourceData, meta interfa resp, err := client.Get(ctx, *id) if err != nil { if response.WasNotFound(resp.HttpResponse) { - log.Printf("[DEBUG] %q was not found - removing from state!", id) + log.Printf("[DEBUG] %s was not found - removing from state!", id) d.SetId("") return nil } - return fmt.Errorf("retrieving Sentinel Alert Rule Fusion %q: %+v", id, err) + return fmt.Errorf("retrieving %s: %+v", id, err) + } + + workspaceId := alertrules.NewWorkspaceID(id.SubscriptionId, id.ResourceGroupName, id.WorkspaceName) + + if !features.FivePointOhBeta() { + d.Set("name", id.RuleId) } + d.Set("log_analytics_workspace_id", workspaceId.ID()) if model := resp.Model; model != nil { if err := assertAlertRuleKind(resp.Model, alertrules.AlertRuleKindFusion); err != nil { - return fmt.Errorf("asserting alert rule of %q: %+v", id, err) + return fmt.Errorf("asserting alert rule of %s: %+v", id, err) } if rule, ok := model.(alertrules.FusionAlertRule); ok { - d.Set("name", id.RuleId) - - workspaceId := alertrules.NewWorkspaceID(id.SubscriptionId, id.ResourceGroupName, id.WorkspaceName) - d.Set("log_analytics_workspace_id", workspaceId.ID()) - if prop := rule.Properties; prop != nil { d.Set("enabled", prop.Enabled) d.Set("alert_rule_template_guid", prop.AlertRuleTemplateName) @@ -237,7 +279,7 @@ func resourceSentinelAlertRuleFusionDelete(d *pluginsdk.ResourceData, meta inter } if _, err := client.Delete(ctx, *id); err != nil { - return fmt.Errorf("deleting Sentinel Alert Rule Fusion %q: %+v", id, err) + return fmt.Errorf("deleting %s: %+v", id, err) } return nil diff --git a/internal/services/sentinel/sentinel_alert_rule_fusion_resource_test.go b/internal/services/sentinel/sentinel_alert_rule_fusion_resource_test.go index f8a386ad3414..6e0b3b0207d6 100644 --- a/internal/services/sentinel/sentinel_alert_rule_fusion_resource_test.go +++ b/internal/services/sentinel/sentinel_alert_rule_fusion_resource_test.go @@ -84,21 +84,6 @@ func TestAccSentinelAlertRuleFusion_sourceSetting(t *testing.T) { }) } -func TestAccSentinelAlertRuleFusion_requiresImport(t *testing.T) { - data := acceptance.BuildTestData(t, "azurerm_sentinel_alert_rule_fusion", "test") - r := SentinelAlertRuleFusionResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.RequiresImportErrorStep(r.requiresImport), - }) -} - func (r SentinelAlertRuleFusionResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { alertRuleClient := client.Sentinel.AlertRulesClient id, err := alertrules.ParseAlertRuleID(state.ID) @@ -132,15 +117,14 @@ func (r SentinelAlertRuleFusionResource) basic(data acceptance.TestData) string data "azurerm_sentinel_alert_rule_template" "test" { display_name = "Advanced Multistage Attack Detection" - log_analytics_workspace_id = azurerm_log_analytics_solution.test.workspace_resource_id + log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.test.workspace_id } resource "azurerm_sentinel_alert_rule_fusion" "test" { - name = "acctest-SentinelAlertRule-Fusion-%d" - log_analytics_workspace_id = azurerm_log_analytics_solution.test.workspace_resource_id + log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.test.workspace_id alert_rule_template_guid = data.azurerm_sentinel_alert_rule_template.test.name } -`, r.template(data), data.RandomInteger) +`, r.template(data)) } func (r SentinelAlertRuleFusionResource) disabled(data acceptance.TestData) string { @@ -149,16 +133,15 @@ func (r SentinelAlertRuleFusionResource) disabled(data acceptance.TestData) stri data "azurerm_sentinel_alert_rule_template" "test" { display_name = "Advanced Multistage Attack Detection" - log_analytics_workspace_id = azurerm_log_analytics_solution.test.workspace_resource_id + log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.test.workspace_id } resource "azurerm_sentinel_alert_rule_fusion" "test" { - name = "acctest-SentinelAlertRule-Fusion-%d" - log_analytics_workspace_id = azurerm_log_analytics_solution.test.workspace_resource_id + log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.test.workspace_id alert_rule_template_guid = data.azurerm_sentinel_alert_rule_template.test.name enabled = false } -`, r.template(data), data.RandomInteger) +`, r.template(data)) } func (r SentinelAlertRuleFusionResource) sourceSetting(data acceptance.TestData, enabled bool) string { @@ -167,12 +150,11 @@ func (r SentinelAlertRuleFusionResource) sourceSetting(data acceptance.TestData, data "azurerm_sentinel_alert_rule_template" "test" { display_name = "Advanced Multistage Attack Detection" - log_analytics_workspace_id = azurerm_log_analytics_solution.test.workspace_resource_id + log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.test.workspace_id } resource "azurerm_sentinel_alert_rule_fusion" "test" { - name = "acctest-SentinelAlertRule-Fusion-%[2]d" - log_analytics_workspace_id = azurerm_log_analytics_solution.test.workspace_resource_id + log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.test.workspace_id alert_rule_template_guid = data.azurerm_sentinel_alert_rule_template.test.name source { name = "Anomalies" @@ -236,18 +218,6 @@ resource "azurerm_sentinel_alert_rule_fusion" "test" { `, r.template(data), data.RandomInteger, enabled) } -func (r SentinelAlertRuleFusionResource) requiresImport(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_sentinel_alert_rule_fusion" "import" { - name = azurerm_sentinel_alert_rule_fusion.test.name - log_analytics_workspace_id = azurerm_sentinel_alert_rule_fusion.test.log_analytics_workspace_id - alert_rule_template_guid = azurerm_sentinel_alert_rule_fusion.test.alert_rule_template_guid -} -`, r.basic(data)) -} - func (r SentinelAlertRuleFusionResource) template(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { @@ -266,17 +236,8 @@ resource "azurerm_log_analytics_workspace" "test" { sku = "PerGB2018" } -resource "azurerm_log_analytics_solution" "test" { - solution_name = "SecurityInsights" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - workspace_resource_id = azurerm_log_analytics_workspace.test.id - workspace_name = azurerm_log_analytics_workspace.test.name - - plan { - publisher = "Microsoft" - product = "OMSGallery/SecurityInsights" - } +resource "azurerm_sentinel_log_analytics_workspace_onboarding" "test" { + workspace_id = azurerm_log_analytics_workspace.test.id } `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } diff --git a/internal/services/sentinel/sentinel_alert_rule_ms_security_incident_resource.go b/internal/services/sentinel/sentinel_alert_rule_ms_security_incident_resource.go index 42a0135cca7f..840936e7a3ef 100644 --- a/internal/services/sentinel/sentinel_alert_rule_ms_security_incident_resource.go +++ b/internal/services/sentinel/sentinel_alert_rule_ms_security_incident_resource.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -110,7 +109,6 @@ func resourceSentinelAlertRuleMsSecurityIncident() *pluginsdk.Resource { "display_name_filter": { Type: pluginsdk.TypeSet, Optional: true, - Computed: !features.FourPointOhBeta(), MinItems: 1, Elem: &pluginsdk.Schema{ Type: pluginsdk.TypeString, diff --git a/internal/services/sentinel/sentinel_alert_rule_scheduled_resource.go b/internal/services/sentinel/sentinel_alert_rule_scheduled_resource.go index 6d0209379432..8038c60cb276 100644 --- a/internal/services/sentinel/sentinel_alert_rule_scheduled_resource.go +++ b/internal/services/sentinel/sentinel_alert_rule_scheduled_resource.go @@ -16,7 +16,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -122,12 +121,6 @@ func resourceSentinelAlertRuleScheduled() *pluginsdk.Resource { Computed: true, MaxItems: 1, MinItems: 1, - ConflictsWith: func() []string { - if !features.FourPointOhBeta() { - return []string{"incident_configuration"} - } - return []string{} - }(), Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ "create_incident_enabled": { @@ -355,86 +348,6 @@ func resourceSentinelAlertRuleScheduled() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["incident_configuration"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - MinItems: 1, - ConflictsWith: []string{"incident"}, - Deprecated: "The `incident_configuration` block has been superseded by the `incident` block and will be removed in v4.0 of the AzureRM Provider", - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "create_incident": { - Required: true, - Type: pluginsdk.TypeBool, - Deprecated: "The `create_incident` property has been superseded by the `create_incident_enabled` property and will be removed in v4.0 of the AzureRM Provider", - }, - "grouping": { - Type: pluginsdk.TypeList, - Required: true, - MaxItems: 1, - MinItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: true, - }, - "lookback_duration": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validate.ISO8601Duration, - Default: "PT5M", - }, - "reopen_closed_incidents": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - "entity_matching_method": { - Type: pluginsdk.TypeString, - Optional: true, - Default: alertrules.MatchingMethodAnyAlert, - ValidateFunc: validation.StringInSlice(alertrules.PossibleValuesForMatchingMethod(), false), - }, - "group_by_entities": { - Type: pluginsdk.TypeList, - Optional: true, - Deprecated: "The `group_by_entities` property has been superseded by the `by_entities` property and will be removed in v4.0 of the AzureRM Provider", - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice(alertrules.PossibleValuesForEntityMappingType(), false), - }, - }, - "group_by_alert_details": { - Type: pluginsdk.TypeList, - Optional: true, - Deprecated: "The `group_by_alert_details` property has been superseded by the `by_alert_details` property and will be removed in v4.0 of the AzureRM Provider", - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringInSlice(alertrules.PossibleValuesForAlertDetail(), false), - }, - }, - "group_by_custom_details": { - Type: pluginsdk.TypeList, - Optional: true, - Deprecated: "The `group_by_custom_details` property has been superseded by the `by_custom_details` property and will be removed in v4.0 of the AzureRM Provider", - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - }, - }, - }, - }, - } - } - return resource } @@ -487,10 +400,6 @@ func resourceSentinelAlertRuleScheduledCreateUpdate(d *pluginsdk.ResourceData, m incident := expandAlertRuleIncidentConfiguration(d.Get("incident").([]interface{}), "create_incident_enabled", false) - if v, ok := d.GetOk("incident_configuration"); ok && !features.FourPointOhBeta() { - incident = expandAlertRuleIncidentConfiguration(v.([]interface{}), "create_incident", true) - } - param := alertrules.ScheduledAlertRule{ Properties: &alertrules.ScheduledAlertRuleProperties{ Description: utils.String(d.Get("description").(string)), @@ -603,11 +512,6 @@ func resourceSentinelAlertRuleScheduledRead(d *pluginsdk.ResourceData, meta inte if err := d.Set("techniques", prop.Techniques); err != nil { return fmt.Errorf("setting `techniques`: %+v", err) } - if !features.FourPointOhBeta() { - if err := d.Set("incident_configuration", flattenAlertRuleIncidentConfiguration(prop.IncidentConfiguration, "create_incident", true)); err != nil { - return fmt.Errorf("setting `incident_configuration`: %+v", err) - } - } if err := d.Set("incident", flattenAlertRuleIncidentConfiguration(prop.IncidentConfiguration, "create_incident_enabled", false)); err != nil { return fmt.Errorf("setting `incident`: %+v", err) diff --git a/internal/services/sentinel/sentinel_alert_rule_scheduled_resource_test.go b/internal/services/sentinel/sentinel_alert_rule_scheduled_resource_test.go index f5e5e789f7ed..88fe1b2f9fa8 100644 --- a/internal/services/sentinel/sentinel_alert_rule_scheduled_resource_test.go +++ b/internal/services/sentinel/sentinel_alert_rule_scheduled_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -195,74 +194,6 @@ QUERY } func (r SentinelAlertRuleScheduledResource) complete(data acceptance.TestData) string { - if !features.FourPointOhBeta() { - return fmt.Sprintf(` -%s - -resource "azurerm_sentinel_alert_rule_scheduled" "test" { - name = "acctest-SentinelAlertRule-Sche-%d" - log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.test.workspace_id - display_name = "Complete Rule" - description = "Some Description" - tactics = ["Collection", "CommandAndControl"] - techniques = ["T1560", "T1123"] - severity = "Low" - enabled = false - incident_configuration { - create_incident = true - grouping { - enabled = true - lookback_duration = "P7D" - reopen_closed_incidents = true - entity_matching_method = "Selected" - group_by_entities = ["Host"] - group_by_alert_details = ["DisplayName"] - group_by_custom_details = ["OperatingSystemType", "OperatingSystemName"] - } - } - query = "Heartbeat" - query_frequency = "PT20M" - query_period = "PT40M" - trigger_operator = "Equal" - trigger_threshold = 5 - suppression_enabled = true - suppression_duration = "PT40M" - alert_details_override { - description_format = "Alert from {{Compute}}" - display_name_format = "Suspicious activity was made by {{ComputerIP}}" - severity_column_name = "Computer" - tactics_column_name = "Computer" - dynamic_property { - name = "AlertLink" - value = "dcount_ResourceId" - } - } - entity_mapping { - entity_type = "Host" - field_mapping { - identifier = "FullName" - column_name = "Computer" - } - } - sentinel_entity_mapping { - column_name = "Category" - } - entity_mapping { - entity_type = "IP" - field_mapping { - identifier = "Address" - column_name = "ComputerIP" - } - } - custom_details = { - OperatingSystemName = "OSName" - OperatingSystemType = "OSType" - } - -} -`, r.template(data), data.RandomInteger) - } - return fmt.Sprintf(` %s diff --git a/internal/services/sentinel/sentinel_alert_rule_threat_intelligence_resource.go b/internal/services/sentinel/sentinel_alert_rule_threat_intelligence_resource.go index 2df76521e8e6..d6880f63338a 100644 --- a/internal/services/sentinel/sentinel_alert_rule_threat_intelligence_resource.go +++ b/internal/services/sentinel/sentinel_alert_rule_threat_intelligence_resource.go @@ -29,8 +29,10 @@ type AlertRuleThreatIntelligenceModel struct { type AlertRuleThreatIntelligenceResource struct{} -var _ sdk.ResourceWithCustomImporter = AlertRuleThreatIntelligenceResource{} -var _ sdk.ResourceWithUpdate = AlertRuleThreatIntelligenceResource{} +var ( + _ sdk.ResourceWithCustomImporter = AlertRuleThreatIntelligenceResource{} + _ sdk.ResourceWithUpdate = AlertRuleThreatIntelligenceResource{} +) func (a AlertRuleThreatIntelligenceResource) ModelObject() interface{} { return &AlertRuleThreatIntelligenceModel{} diff --git a/internal/services/sentinel/sentinel_data_connector.go b/internal/services/sentinel/sentinel_data_connector.go index 48a800298d64..80e484861fb8 100644 --- a/internal/services/sentinel/sentinel_data_connector.go +++ b/internal/services/sentinel/sentinel_data_connector.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/sentinel/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func importDataConnectorTyped(expectKind securityinsight.DataConnectorKind) func(ctx context.Context, metadata sdk.ResourceMetaData) error { diff --git a/internal/services/sentinel/sentinel_data_connector_aws_cloud_trail.go b/internal/services/sentinel/sentinel_data_connector_aws_cloud_trail.go index 67222fc62511..b636ee3625b7 100644 --- a/internal/services/sentinel/sentinel_data_connector_aws_cloud_trail.go +++ b/internal/services/sentinel/sentinel_data_connector_aws_cloud_trail.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorAwsCloudTrail() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_aws_s3_resource.go b/internal/services/sentinel/sentinel_data_connector_aws_s3_resource.go index 41143c24e015..d9135516c71f 100644 --- a/internal/services/sentinel/sentinel_data_connector_aws_s3_resource.go +++ b/internal/services/sentinel/sentinel_data_connector_aws_s3_resource.go @@ -15,13 +15,15 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorAwsS3Resource struct{} -var _ sdk.ResourceWithUpdate = DataConnectorAwsS3Resource{} -var _ sdk.ResourceWithCustomImporter = DataConnectorAwsS3Resource{} +var ( + _ sdk.ResourceWithUpdate = DataConnectorAwsS3Resource{} + _ sdk.ResourceWithCustomImporter = DataConnectorAwsS3Resource{} +) type DataConnectorAwsS3Model struct { Name string `tfschema:"name"` diff --git a/internal/services/sentinel/sentinel_data_connector_azure_active_directory.go b/internal/services/sentinel/sentinel_data_connector_azure_active_directory.go index 12922797c2f0..b6c1ab98b527 100644 --- a/internal/services/sentinel/sentinel_data_connector_azure_active_directory.go +++ b/internal/services/sentinel/sentinel_data_connector_azure_active_directory.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorAzureActiveDirectory() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_azure_advanced_threat_protection.go b/internal/services/sentinel/sentinel_data_connector_azure_advanced_threat_protection.go index 5b2d2ab505be..8a07f5e16f71 100644 --- a/internal/services/sentinel/sentinel_data_connector_azure_advanced_threat_protection.go +++ b/internal/services/sentinel/sentinel_data_connector_azure_advanced_threat_protection.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorAzureAdvancedThreatProtection() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_azure_security_center.go b/internal/services/sentinel/sentinel_data_connector_azure_security_center.go index 7ad5560166aa..bf95ba42616a 100644 --- a/internal/services/sentinel/sentinel_data_connector_azure_security_center.go +++ b/internal/services/sentinel/sentinel_data_connector_azure_security_center.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorAzureSecurityCenter() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_dynamics_365.go b/internal/services/sentinel/sentinel_data_connector_dynamics_365.go index e3a6b7d170a0..923db7467824 100644 --- a/internal/services/sentinel/sentinel_data_connector_dynamics_365.go +++ b/internal/services/sentinel/sentinel_data_connector_dynamics_365.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorDynamics365Resource struct{} diff --git a/internal/services/sentinel/sentinel_data_connector_iot.go b/internal/services/sentinel/sentinel_data_connector_iot.go index e7ae7aa2f9e6..86833273d1e1 100644 --- a/internal/services/sentinel/sentinel_data_connector_iot.go +++ b/internal/services/sentinel/sentinel_data_connector_iot.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorIOTResource struct{} diff --git a/internal/services/sentinel/sentinel_data_connector_microsoft_cloud_app_security.go b/internal/services/sentinel/sentinel_data_connector_microsoft_cloud_app_security.go index 4c91b6a6a5c1..187ff4bdc568 100644 --- a/internal/services/sentinel/sentinel_data_connector_microsoft_cloud_app_security.go +++ b/internal/services/sentinel/sentinel_data_connector_microsoft_cloud_app_security.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorMicrosoftCloudAppSecurity() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_microsoft_defender_advanced_threat_protection.go b/internal/services/sentinel/sentinel_data_connector_microsoft_defender_advanced_threat_protection.go index cd3287284073..2e4a17dba9de 100644 --- a/internal/services/sentinel/sentinel_data_connector_microsoft_defender_advanced_threat_protection.go +++ b/internal/services/sentinel/sentinel_data_connector_microsoft_defender_advanced_threat_protection.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorMicrosoftDefenderAdvancedThreatProtection() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_microsoft_threat_intelligence.go b/internal/services/sentinel/sentinel_data_connector_microsoft_threat_intelligence.go index 1e11fab41497..7b3d3e316ad2 100644 --- a/internal/services/sentinel/sentinel_data_connector_microsoft_threat_intelligence.go +++ b/internal/services/sentinel/sentinel_data_connector_microsoft_threat_intelligence.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorMicrosoftThreatIntelligenceResource struct{} @@ -58,7 +58,7 @@ func (s DataConnectorMicrosoftThreatIntelligenceResource) Arguments() map[string ValidateFunc: validation.IsUUID, }, - //lintignore: S013 + // lintignore: S013 "microsoft_emerging_threat_feed_lookback_date": { Type: pluginsdk.TypeString, ForceNew: true, diff --git a/internal/services/sentinel/sentinel_data_connector_microsoft_threat_protection.go b/internal/services/sentinel/sentinel_data_connector_microsoft_threat_protection.go index 543c79e3981a..e8aa7f9b183f 100644 --- a/internal/services/sentinel/sentinel_data_connector_microsoft_threat_protection.go +++ b/internal/services/sentinel/sentinel_data_connector_microsoft_threat_protection.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorMicrosoftThreatProtectionResource struct{} diff --git a/internal/services/sentinel/sentinel_data_connector_office_365.go b/internal/services/sentinel/sentinel_data_connector_office_365.go index 67d62a12f99e..20e9e2d15e84 100644 --- a/internal/services/sentinel/sentinel_data_connector_office_365.go +++ b/internal/services/sentinel/sentinel_data_connector_office_365.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorOffice365() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_office_365_project.go b/internal/services/sentinel/sentinel_data_connector_office_365_project.go index 6ad76a89ecbb..cba446638dab 100644 --- a/internal/services/sentinel/sentinel_data_connector_office_365_project.go +++ b/internal/services/sentinel/sentinel_data_connector_office_365_project.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorOffice365ProjectResource struct{} diff --git a/internal/services/sentinel/sentinel_data_connector_office_atp.go b/internal/services/sentinel/sentinel_data_connector_office_atp.go index f3e330502fe4..010b03662446 100644 --- a/internal/services/sentinel/sentinel_data_connector_office_atp.go +++ b/internal/services/sentinel/sentinel_data_connector_office_atp.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorOfficeATP() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_office_irm.go b/internal/services/sentinel/sentinel_data_connector_office_irm.go index 8a594ecf1665..56682a473e29 100644 --- a/internal/services/sentinel/sentinel_data_connector_office_irm.go +++ b/internal/services/sentinel/sentinel_data_connector_office_irm.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorOfficeIRMResource struct{} diff --git a/internal/services/sentinel/sentinel_data_connector_office_power_bi.go b/internal/services/sentinel/sentinel_data_connector_office_power_bi.go index cffdf1c9c754..523efc3e11f2 100644 --- a/internal/services/sentinel/sentinel_data_connector_office_power_bi.go +++ b/internal/services/sentinel/sentinel_data_connector_office_power_bi.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorOfficePowerBIResource struct{} diff --git a/internal/services/sentinel/sentinel_data_connector_threat_intelligence.go b/internal/services/sentinel/sentinel_data_connector_threat_intelligence.go index 6683026b13cd..184f9a4e5945 100644 --- a/internal/services/sentinel/sentinel_data_connector_threat_intelligence.go +++ b/internal/services/sentinel/sentinel_data_connector_threat_intelligence.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) func resourceSentinelDataConnectorThreatIntelligence() *pluginsdk.Resource { diff --git a/internal/services/sentinel/sentinel_data_connector_threat_intelligence_taxii.go b/internal/services/sentinel/sentinel_data_connector_threat_intelligence_taxii.go index 2a1475b3ad70..6d6ed03ea4c1 100644 --- a/internal/services/sentinel/sentinel_data_connector_threat_intelligence_taxii.go +++ b/internal/services/sentinel/sentinel_data_connector_threat_intelligence_taxii.go @@ -16,7 +16,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type DataConnectorThreatIntelligenceTAXIIResource struct{} diff --git a/internal/services/sentinel/sentinel_log_analytics_workspace_onboard_resource_test.go b/internal/services/sentinel/sentinel_log_analytics_workspace_onboard_resource_test.go index 71c59125d14a..c5bae6f32e4e 100644 --- a/internal/services/sentinel/sentinel_log_analytics_workspace_onboard_resource_test.go +++ b/internal/services/sentinel/sentinel_log_analytics_workspace_onboard_resource_test.go @@ -49,7 +49,6 @@ func TestAccSecurityInsightsSentinelOnboardingState_basicWithName(t *testing.T) } func TestAccSecurityInsightsSentinelOnboardingState_ToggleCmkEnabled(t *testing.T) { - if os.Getenv("ARM_RUN_TEST_LOG_ANALYTICS_CLUSTERS") == "" { t.Skip("Skipping as ARM_RUN_TEST_LOG_ANALYTICS_CLUSTERS is not specified") return diff --git a/internal/services/sentinel/sentinel_metadata_resource.go b/internal/services/sentinel/sentinel_metadata_resource.go index 00ab7310d638..ef31d7d50591 100644 --- a/internal/services/sentinel/sentinel_metadata_resource.go +++ b/internal/services/sentinel/sentinel_metadata_resource.go @@ -748,6 +748,7 @@ func expandMetadataSupportModel(input []MetadataSupportModel) *sentinelmetadata. } return &output } + func flattenMetadataSupportModel(input *sentinelmetadata.MetadataSupport) []MetadataSupportModel { if input == nil { return []MetadataSupportModel{} diff --git a/internal/services/sentinel/sentinel_threat_intelligence_indicator_resource.go b/internal/services/sentinel/sentinel_threat_intelligence_indicator_resource.go index 73e10f7c44e7..dbfe1e564aec 100644 --- a/internal/services/sentinel/sentinel_threat_intelligence_indicator_resource.go +++ b/internal/services/sentinel/sentinel_threat_intelligence_indicator_resource.go @@ -19,7 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/utils" - securityinsight "github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" + securityinsight "github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights" ) type IndicatorPatternType string @@ -589,7 +589,6 @@ func (r ThreatIntelligenceIndicator) Update() sdk.ResourceFunc { if metadata.ResourceData.HasChange("external_reference") { properties.ExternalReferences = expandThreatIntelligenceExternalReferenceModel(model.ExternalRefrence) - } if metadata.ResourceData.HasChange("granular_marking") { @@ -719,7 +718,7 @@ func (r ThreatIntelligenceIndicator) Read() sdk.ResourceFunc { state.DisplayName = *model.DisplayName } - if model.Extensions != nil && len(model.Extensions) > 0 { + if len(model.Extensions) > 0 { extensionsValue, err := pluginsdk.FlattenJsonToString(model.Extensions) if err != nil { return err @@ -821,7 +820,7 @@ func (r ThreatIntelligenceIndicator) Delete() sdk.ResourceFunc { } func expandThreatIntelligenceExternalReferenceModel(inputList []externalReferenceModel) *[]securityinsight.ThreatIntelligenceExternalReference { - var outputList []securityinsight.ThreatIntelligenceExternalReference + outputList := make([]securityinsight.ThreatIntelligenceExternalReference, 0, len(inputList)) for _, v := range inputList { input := v hashesValue := make(map[string]*string, 0) @@ -886,7 +885,7 @@ func flattenThreatIntelligenceExternalReferenceModel(input *[]securityinsight.Th } func expandThreatIntelligenceGranularMarkingModelModel(inputList []granularMarkingModel) *[]azuresdkhacks.ThreatIntelligenceGranularMarkingModel { - var outputList []azuresdkhacks.ThreatIntelligenceGranularMarkingModel + outputList := make([]azuresdkhacks.ThreatIntelligenceGranularMarkingModel, 0, len(inputList)) for _, v := range inputList { input := v output := azuresdkhacks.ThreatIntelligenceGranularMarkingModel{ @@ -926,7 +925,7 @@ func flattenThreatIntelligenceGranularMarkingModelModel(input *[]azuresdkhacks.T } func expandThreatIntelligenceKillChainPhaseModel(inputList []killChainPhaseModel) *[]securityinsight.ThreatIntelligenceKillChainPhase { - var outputList []securityinsight.ThreatIntelligenceKillChainPhase + outputList := make([]securityinsight.ThreatIntelligenceKillChainPhase, 0, len(inputList)) for _, v := range inputList { input := v output := securityinsight.ThreatIntelligenceKillChainPhase{ diff --git a/internal/services/sentinel/sentinel_watchlist_resource.go b/internal/services/sentinel/sentinel_watchlist_resource.go index 82ec939180b8..18d28f8e42c4 100644 --- a/internal/services/sentinel/sentinel_watchlist_resource.go +++ b/internal/services/sentinel/sentinel_watchlist_resource.go @@ -182,7 +182,6 @@ func (r WatchlistResource) Read() sdk.ResourceFunc { if model := resp.Model; model != nil { if props := model.Properties; props != nil { - watchList.DisplayName = props.DisplayName watchList.ItemSearchKey = props.ItemsSearchKey watchList.Description = pointer.From(props.Description) diff --git a/internal/services/sentinel/validate/automation_rule_id_test.go b/internal/services/sentinel/validate/automation_rule_id_test.go index e02b2bcd44da..d244feb5deef 100644 --- a/internal/services/sentinel/validate/automation_rule_id_test.go +++ b/internal/services/sentinel/validate/automation_rule_id_test.go @@ -12,7 +12,6 @@ func TestAutomationRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/sentinel/validate/data_connector_id_test.go b/internal/services/sentinel/validate/data_connector_id_test.go index 99773b86c73e..ed0e7bc9d685 100644 --- a/internal/services/sentinel/validate/data_connector_id_test.go +++ b/internal/services/sentinel/validate/data_connector_id_test.go @@ -12,7 +12,6 @@ func TestDataConnectorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/sentinel/validate/ml_analytics_settings_id_test.go b/internal/services/sentinel/validate/ml_analytics_settings_id_test.go index abf485a41aa7..4ab65a74d0f7 100644 --- a/internal/services/sentinel/validate/ml_analytics_settings_id_test.go +++ b/internal/services/sentinel/validate/ml_analytics_settings_id_test.go @@ -12,7 +12,6 @@ func TestMLAnalyticsSettingsID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/sentinel/validate/sentinel_alert_rule_template_id_test.go b/internal/services/sentinel/validate/sentinel_alert_rule_template_id_test.go index 55e2679914c7..e5b1102fde97 100644 --- a/internal/services/sentinel/validate/sentinel_alert_rule_template_id_test.go +++ b/internal/services/sentinel/validate/sentinel_alert_rule_template_id_test.go @@ -12,7 +12,6 @@ func TestSentinelAlertRuleTemplateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/sentinel/validate/threat_intelligence_indicator_id_test.go b/internal/services/sentinel/validate/threat_intelligence_indicator_id_test.go index 17503d294a34..aeb9e234c2e6 100644 --- a/internal/services/sentinel/validate/threat_intelligence_indicator_id_test.go +++ b/internal/services/sentinel/validate/threat_intelligence_indicator_id_test.go @@ -12,7 +12,6 @@ func TestThreatIntelligenceIndicatorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/servicebus/migration/namespace_auth_rule.go b/internal/services/servicebus/migration/namespace_auth_rule.go index 6a41f4a14ec2..433d01d24d03 100644 --- a/internal/services/servicebus/migration/namespace_auth_rule.go +++ b/internal/services/servicebus/migration/namespace_auth_rule.go @@ -21,7 +21,7 @@ func (ServicebusNamespaceAuthRuleV0ToV1) Schema() map[string]*pluginsdk.Schema { Required: true, ForceNew: true, }, - //lintignore: S013 + // lintignore: S013 "namespace_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/servicebus/registration.go b/internal/services/servicebus/registration.go index 1db26e94ebe8..6f566418d27f 100644 --- a/internal/services/servicebus/registration.go +++ b/internal/services/servicebus/registration.go @@ -4,7 +4,6 @@ package servicebus import ( - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -58,9 +57,5 @@ func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { "azurerm_servicebus_topic": resourceServiceBusTopic(), } - if !features.FourPointOhBeta() { - resources["azurerm_servicebus_namespace_network_rule_set"] = resourceServiceBusNamespaceNetworkRuleSet() - } - return resources } diff --git a/internal/services/servicebus/servicebus_namespace_authorization_rule_resource.go b/internal/services/servicebus/servicebus_namespace_authorization_rule_resource.go index ff8f398514d6..cbd48d9e3ac0 100644 --- a/internal/services/servicebus/servicebus_namespace_authorization_rule_resource.go +++ b/internal/services/servicebus/servicebus_namespace_authorization_rule_resource.go @@ -58,7 +58,7 @@ func resourceServiceBusNamespaceAuthorizationRuleSchema() map[string]*pluginsdk. ForceNew: true, ValidateFunc: validate.AuthorizationRuleName(), }, - //lintignore: S013 + // lintignore: S013 "namespace_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/servicebus/servicebus_namespace_data_source.go b/internal/services/servicebus/servicebus_namespace_data_source.go index 7561a61f4928..371bc7b737b9 100644 --- a/internal/services/servicebus/servicebus_namespace_data_source.go +++ b/internal/services/servicebus/servicebus_namespace_data_source.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule" "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -89,14 +88,6 @@ func dataSourceServiceBusNamespace() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["zone_redundant"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - Deprecated: "The `zone_redundant` property has been deprecated and will be removed in v4.0 of the provider.", - } - } - return resource } @@ -129,10 +120,6 @@ func dataSourceServiceBusNamespaceRead(d *pluginsdk.ResourceData, meta interface if props := model.Properties; props != nil { d.Set("premium_messaging_partitions", props.PremiumMessagingPartitions) d.Set("endpoint", props.ServiceBusEndpoint) - - if !features.FourPointOhBeta() { - d.Set("zone_redundant", props.ZoneRedundant) - } } } diff --git a/internal/services/servicebus/servicebus_namespace_network_rule_set_resource.go b/internal/services/servicebus/servicebus_namespace_network_rule_set_resource.go deleted file mode 100644 index d7ccb2138fe4..000000000000 --- a/internal/services/servicebus/servicebus_namespace_network_rule_set_resource.go +++ /dev/null @@ -1,361 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package servicebus - -import ( - "fmt" - "log" - "strings" - "time" - - "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/servicebus/migration" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/set" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -func resourceServiceBusNamespaceNetworkRuleSet() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Create: resourceServiceBusNamespaceNetworkRuleSetCreateUpdate, - Read: resourceServiceBusNamespaceNetworkRuleSetRead, - Update: resourceServiceBusNamespaceNetworkRuleSetCreateUpdate, - Delete: resourceServiceBusNamespaceNetworkRuleSetDelete, - - DeprecationMessage: "The `azurerm_servicebus_namespace_network_rule_set` resource is deprecated and will be removed in version 4.0 of the AzureRM provider. Please use `network_rule_set` inside the `azurerm_servicebus_namespace` resource instead.", - - Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := namespaces.ParseNamespaceID(id) - return err - }), - - SchemaVersion: 1, - StateUpgraders: pluginsdk.StateUpgrades(map[int]pluginsdk.StateUpgrade{ - 0: migration.NamespaceNetworkRuleSetV0ToV1{}, - }), - - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(30 * time.Minute), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Update: pluginsdk.DefaultTimeout(30 * time.Minute), - Delete: pluginsdk.DefaultTimeout(30 * time.Minute), - }, - - Schema: resourceServicebusNamespaceNetworkRuleSetSchema(), - } -} - -func resourceServicebusNamespaceNetworkRuleSetSchema() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ - //lintignore: S013 - "namespace_id": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: namespaces.ValidateNamespaceID, - }, - - "default_action": { - Type: pluginsdk.TypeString, - Optional: true, - Default: string(namespaces.DefaultActionAllow), - ValidateFunc: validation.StringInSlice([]string{ - string(namespaces.DefaultActionAllow), - string(namespaces.DefaultActionDeny), - }, false), - }, - - "public_network_access_enabled": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: true, - }, - - "ip_rules": { - Type: pluginsdk.TypeSet, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - }, - - "trusted_services_allowed": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - - "network_rules": { - Type: pluginsdk.TypeSet, - Optional: true, - Set: networkRuleHash, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "subnet_id": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: commonids.ValidateSubnetID, - // The subnet ID returned from the service will have `resourceGroup/{resourceGroupName}` all in lower cases... - DiffSuppressFunc: suppress.CaseDifference, - }, - "ignore_missing_vnet_service_endpoint": { - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - }, - }, - }, - }, - } -} - -func resourceServiceBusNamespaceNetworkRuleSetCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).ServiceBus.NamespacesClient - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := namespaces.ParseNamespaceID(d.Get("namespace_id").(string)) - if err != nil { - return err - } - - if d.IsNewResource() { - existing, err := client.GetNetworkRuleSet(ctx, *id) - if err != nil { - if !response.WasNotFound(existing.HttpResponse) { - return fmt.Errorf("checking for the presence of existing %s: %+v", id, err) - } - } - - // This resource is unique to the corresponding service bus namespace. - // It will be created automatically along with the namespace, therefore we check whether this resource is identical to a "deleted" one - if model := existing.Model; model != nil { - if !CheckNetworkRuleNullified(*model) { - return tf.ImportAsExistsError("azurerm_servicebus_namespace_network_rule_set", id.ID()) - } - } - } - - defaultAction := namespaces.DefaultAction(d.Get("default_action").(string)) - vnetRule := expandServiceBusNamespaceVirtualNetworkRules(d.Get("network_rules").(*pluginsdk.Set).List()) - ipRule := expandServiceBusNamespaceIPRules(d.Get("ip_rules").(*pluginsdk.Set).List()) - publicNetworkAcc := "Disabled" - if d.Get("public_network_access_enabled").(bool) { - publicNetworkAcc = "Enabled" - } - - // API doesn't accept "Deny" to be set for "default_action" if no "ip_rules" or "network_rules" is defined and returns no error message to the user - if defaultAction == namespaces.DefaultActionDeny && vnetRule == nil && ipRule == nil { - return fmt.Errorf(" The default action of %s can only be set to `Allow` if no `ip_rules` or `network_rules` is set", id) - } - - publicNetworkAccess := namespaces.PublicNetworkAccessFlag(publicNetworkAcc) - - parameters := namespaces.NetworkRuleSet{ - Properties: &namespaces.NetworkRuleSetProperties{ - DefaultAction: &defaultAction, - VirtualNetworkRules: vnetRule, - IPRules: ipRule, - PublicNetworkAccess: &publicNetworkAccess, - TrustedServiceAccessEnabled: utils.Bool(d.Get("trusted_services_allowed").(bool)), - }, - } - - if _, err := client.CreateOrUpdateNetworkRuleSet(ctx, *id, parameters); err != nil { - return fmt.Errorf("creating/updating %s: %+v", id, err) - } - - d.SetId(id.ID()) - return resourceServiceBusNamespaceNetworkRuleSetRead(d, meta) -} - -func resourceServiceBusNamespaceNetworkRuleSetRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).ServiceBus.NamespacesClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := namespaces.ParseNamespaceID(d.Id()) - if err != nil { - return err - } - - resp, err := client.GetNetworkRuleSet(ctx, *id) - if err != nil { - if response.WasNotFound(resp.HttpResponse) { - log.Printf("%s was not found - removing from state", d.Id()) - d.SetId("") - return nil - } - return fmt.Errorf("retrieving %s: %+v", *id, err) - } - - d.Set("namespace_id", id.ID()) - - if model := resp.Model; model != nil { - if props := model.Properties; props != nil { - defaultAction := "" - if v := props.DefaultAction; v != nil { - defaultAction = string(*v) - } - d.Set("default_action", defaultAction) - d.Set("trusted_services_allowed", props.TrustedServiceAccessEnabled) - publicNetworkAccess := "Enabled" - if v := props.PublicNetworkAccess; v != nil { - publicNetworkAccess = string(*v) - } - d.Set("public_network_access_enabled", strings.EqualFold(publicNetworkAccess, "Enabled")) - - if err := d.Set("network_rules", pluginsdk.NewSet(networkRuleHash, flattenServiceBusNamespaceVirtualNetworkRules(props.VirtualNetworkRules))); err != nil { - return fmt.Errorf("failed to set `network_rules`: %+v", err) - } - - if err := d.Set("ip_rules", flattenServiceBusNamespaceIPRules(props.IPRules)); err != nil { - return fmt.Errorf("failed to set `ip_rules`: %+v", err) - } - } - } - - return nil -} - -func resourceServiceBusNamespaceNetworkRuleSetDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).ServiceBus.NamespacesClient - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := namespaces.ParseNamespaceID(d.Id()) - if err != nil { - return err - } - - // A network rule is unique to a namespace, this rule cannot be deleted. - // Therefore we here are just disabling it by setting the default_action to allow and remove all its rules and masks - - defaultAction := namespaces.DefaultActionAllow - parameters := namespaces.NetworkRuleSet{ - Properties: &namespaces.NetworkRuleSetProperties{ - DefaultAction: &defaultAction, - }, - } - - if _, err := client.CreateOrUpdateNetworkRuleSet(ctx, *id, parameters); err != nil { - return fmt.Errorf("deleting %s: %+v", *id, err) - } - - return nil -} - -func expandServiceBusNamespaceVirtualNetworkRules(input []interface{}) *[]namespaces.NWRuleSetVirtualNetworkRules { - if len(input) == 0 { - return nil - } - - result := make([]namespaces.NWRuleSetVirtualNetworkRules, 0) - for _, v := range input { - raw := v.(map[string]interface{}) - result = append(result, namespaces.NWRuleSetVirtualNetworkRules{ - Subnet: &namespaces.Subnet{ - Id: raw["subnet_id"].(string), - }, - IgnoreMissingVnetServiceEndpoint: utils.Bool(raw["ignore_missing_vnet_service_endpoint"].(bool)), - }) - } - - return &result -} - -func flattenServiceBusNamespaceVirtualNetworkRules(input *[]namespaces.NWRuleSetVirtualNetworkRules) []interface{} { - result := make([]interface{}, 0) - if input == nil { - return result - } - - for _, v := range *input { - subnetId := "" - if v.Subnet != nil && v.Subnet.Id != "" { - subnetId = v.Subnet.Id - } - - ignore := false - if v.IgnoreMissingVnetServiceEndpoint != nil { - ignore = *v.IgnoreMissingVnetServiceEndpoint - } - - result = append(result, map[string]interface{}{ - "subnet_id": subnetId, - "ignore_missing_vnet_service_endpoint": ignore, - }) - } - - return result -} - -func expandServiceBusNamespaceIPRules(input []interface{}) *[]namespaces.NWRuleSetIPRules { - if len(input) == 0 { - return nil - } - - action := namespaces.NetworkRuleIPActionAllow - result := make([]namespaces.NWRuleSetIPRules, 0) - for _, v := range input { - result = append(result, namespaces.NWRuleSetIPRules{ - IPMask: utils.String(v.(string)), - Action: &action, - }) - } - - return &result -} - -func flattenServiceBusNamespaceIPRules(input *[]namespaces.NWRuleSetIPRules) []interface{} { - result := make([]interface{}, 0) - if input == nil || len(*input) == 0 { - return result - } - - for _, v := range *input { - if v.IPMask != nil { - result = append(result, *v.IPMask) - } - } - - return result -} - -func networkRuleHash(input interface{}) int { - v := input.(map[string]interface{}) - - // we are just taking subnet_id into the hash function and ignore the ignore_missing_vnet_service_endpoint to ensure there would be no duplicates of subnet id - // the service returns this ID with segment resourceGroup and resource group name all in lower cases, to avoid unnecessary diff, we extract this ID and reconstruct this hash code - return set.HashStringIgnoreCase(v["subnet_id"]) -} - -func CheckNetworkRuleNullified(resp namespaces.NetworkRuleSet) bool { - if resp.Id == nil || *resp.Id == "" { - return true - } - - if props := resp.Properties; props != nil { - if *props.DefaultAction != namespaces.DefaultActionAllow { - return false - } - - if props.VirtualNetworkRules != nil && len(*props.VirtualNetworkRules) > 0 { - return false - } - - if props.IPRules != nil && len(*props.IPRules) > 0 { - return false - } - } - - return true -} diff --git a/internal/services/servicebus/servicebus_namespace_network_rule_set_resource_test.go b/internal/services/servicebus/servicebus_namespace_network_rule_set_resource_test.go deleted file mode 100644 index 46086fd2b833..000000000000 --- a/internal/services/servicebus/servicebus_namespace_network_rule_set_resource_test.go +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package servicebus_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type ServiceBusNamespaceNetworkRuleSetResource struct{} - -func TestAccServiceBusNamespaceNetworkRule_basic(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("azurerm_servicebus_namespace_network_rule_set is deprecated for 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_servicebus_namespace_network_rule_set", "test") - r := ServiceBusNamespaceNetworkRuleSetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccServiceBusNamespaceNetworkRule_complete(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("azurerm_servicebus_namespace_network_rule_set is deprecated for 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_servicebus_namespace_network_rule_set", "test") - r := ServiceBusNamespaceNetworkRuleSetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.complete(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("trusted_services_allowed").HasValue("true"), - ), - }, - data.ImportStep(), - }) -} - -func TestAccServiceBusNamespaceNetworkRule_update(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("azurerm_servicebus_namespace_network_rule_set is deprecated for 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_servicebus_namespace_network_rule_set", "test") - r := ServiceBusNamespaceNetworkRuleSetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.complete(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccServiceBusNamespaceNetworkRule_requiresImport(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("azurerm_servicebus_namespace_network_rule_set is deprecated for 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_servicebus_namespace_network_rule_set", "test") - r := ServiceBusNamespaceNetworkRuleSetResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.RequiresImportErrorStep(r.requiresImport), - }) -} - -func (t ServiceBusNamespaceNetworkRuleSetResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := namespaces.ParseNamespaceID(state.ID) - if err != nil { - return nil, err - } - - resp, err := clients.ServiceBus.NamespacesClient.GetNetworkRuleSet(ctx, *id) - if err != nil { - return nil, fmt.Errorf("retrieving %s: %+v", *id, err) - } - - return utils.Bool(resp.Model != nil), nil -} - -func (r ServiceBusNamespaceNetworkRuleSetResource) basic(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_servicebus_namespace_network_rule_set" "test" { - namespace_id = azurerm_servicebus_namespace.test.id - - default_action = "Deny" - - network_rules { - subnet_id = azurerm_subnet.test.id - ignore_missing_vnet_service_endpoint = false - } -} -`, r.template(data)) -} - -func (r ServiceBusNamespaceNetworkRuleSetResource) complete(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_servicebus_namespace_network_rule_set" "test" { - namespace_id = azurerm_servicebus_namespace.test.id - - default_action = "Deny" - trusted_services_allowed = true - public_network_access_enabled = true - - network_rules { - subnet_id = azurerm_subnet.test.id - ignore_missing_vnet_service_endpoint = false - } - - ip_rules = ["1.1.1.1"] -} -`, r.template(data)) -} - -func (ServiceBusNamespaceNetworkRuleSetResource) template(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-sb-%[1]d" - location = "%[2]s" -} - -resource "azurerm_servicebus_namespace" "test" { - name = "acctest-sb-namespace-%[1]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku = "Premium" - premium_messaging_partitions = 1 - capacity = 1 -} - -resource "azurerm_virtual_network" "test" { - name = "acctest-vnet-%[1]d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - address_space = ["172.17.0.0/16"] - dns_servers = ["10.0.0.4", "10.0.0.5"] -} - -resource "azurerm_subnet" "test" { - name = "${azurerm_virtual_network.test.name}-default" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["172.17.0.0/24"] - - service_endpoints = ["Microsoft.ServiceBus"] -} -`, data.RandomInteger, data.Locations.Primary) -} - -func (r ServiceBusNamespaceNetworkRuleSetResource) requiresImport(data acceptance.TestData) string { - return fmt.Sprintf(` -%s - -resource "azurerm_servicebus_namespace_network_rule_set" "import" { - namespace_id = azurerm_servicebus_namespace_network_rule_set.test.namespace_id -} -`, r.basic(data)) -} diff --git a/internal/services/servicebus/servicebus_namespace_resource.go b/internal/services/servicebus/servicebus_namespace_resource.go index 79d85622dd88..5e674fdb5564 100644 --- a/internal/services/servicebus/servicebus_namespace_resource.go +++ b/internal/services/servicebus/servicebus_namespace_resource.go @@ -22,13 +22,13 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" keyVaultParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/servicebus/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/servicebus/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/set" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -269,27 +269,6 @@ func resourceServiceBusNamespace() *pluginsdk.Resource { ), } - if !features.FourPointOhBeta() { - resource.Schema["zone_redundant"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - Deprecated: "The `zone_redundant` property has been deprecated and will be removed in v4.0 of the provider.", - ForceNew: true, - } - - resource.Schema["minimum_tls_version"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{ - string(namespaces.TlsVersionOnePointZero), - string(namespaces.TlsVersionOnePointOne), - string(namespaces.TlsVersionOnePointTwo), - }, false), - } - } - return resource } @@ -345,10 +324,6 @@ func resourceServiceBusNamespaceCreateUpdate(d *pluginsdk.ResourceData, meta int Tags: expandTags(t), } - if !features.FourPointOhBeta() { - parameters.Properties.ZoneRedundant = utils.Bool(d.Get("zone_redundant").(bool)) - } - if tlsValue := d.Get("minimum_tls_version").(string); tlsValue != "" { minimumTls := namespaces.TlsVersion(tlsValue) parameters.Properties.MinimumTlsVersion = &minimumTls @@ -451,10 +426,6 @@ func resourceServiceBusNamespaceRead(d *pluginsdk.ResourceData, meta interface{} if props := model.Properties; props != nil { d.Set("premium_messaging_partitions", props.PremiumMessagingPartitions) - if !features.FourPointOhBeta() { - d.Set("zone_redundant", props.ZoneRedundant) - } - if customerManagedKey, err := flattenServiceBusNamespaceEncryption(props.Encryption); err == nil { d.Set("customer_managed_key", customerManagedKey) } @@ -706,15 +677,13 @@ func flattenServiceBusNamespaceNetworkRuleSet(networkRuleSet namespaces.NetworkR // only set network rule set if the values are different than what they are defaulted to during namespace creation // this has to wait until 4.0 due to `azurerm_servicebus_namespace_network_rule_set` which forces `network_rule_set` to be Optional/Computed - if features.FourPointOhBeta() { - if defaultAction == string(namespaces.DefaultActionAllow) && - publicNetworkAccess == namespaces.PublicNetworkAccessFlagEnabled && - !trustedServiceEnabled && - len(networkRules) == 0 && - len(ipRules) == 0 { - - return []interface{}{} - } + + if defaultAction == string(namespaces.DefaultActionAllow) && + publicNetworkAccess == namespaces.PublicNetworkAccessFlagEnabled && + !trustedServiceEnabled && + len(networkRules) == 0 && + len(ipRules) == 0 { + return []interface{}{} } return []interface{}{map[string]interface{}{ @@ -725,3 +694,88 @@ func flattenServiceBusNamespaceNetworkRuleSet(networkRuleSet namespaces.NetworkR "ip_rules": ipRules, }} } + +func networkRuleHash(input interface{}) int { + v := input.(map[string]interface{}) + + // we are just taking subnet_id into the hash function and ignore the ignore_missing_vnet_service_endpoint to ensure there would be no duplicates of subnet id + // the service returns this ID with segment resourceGroup and resource group name all in lower cases, to avoid unnecessary diff, we extract this ID and reconstruct this hash code + return set.HashStringIgnoreCase(v["subnet_id"]) +} + +func expandServiceBusNamespaceVirtualNetworkRules(input []interface{}) *[]namespaces.NWRuleSetVirtualNetworkRules { + if len(input) == 0 { + return nil + } + + result := make([]namespaces.NWRuleSetVirtualNetworkRules, 0) + for _, v := range input { + raw := v.(map[string]interface{}) + result = append(result, namespaces.NWRuleSetVirtualNetworkRules{ + Subnet: &namespaces.Subnet{ + Id: raw["subnet_id"].(string), + }, + IgnoreMissingVnetServiceEndpoint: pointer.To(raw["ignore_missing_vnet_service_endpoint"].(bool)), + }) + } + + return &result +} + +func flattenServiceBusNamespaceVirtualNetworkRules(input *[]namespaces.NWRuleSetVirtualNetworkRules) []interface{} { + if input == nil { + return []interface{}{} + } + + result := make([]interface{}, 0, len(*input)) + for _, v := range *input { + subnetId := "" + if v.Subnet != nil && v.Subnet.Id != "" { + subnetId = v.Subnet.Id + } + + ignore := false + if v.IgnoreMissingVnetServiceEndpoint != nil { + ignore = *v.IgnoreMissingVnetServiceEndpoint + } + + result = append(result, map[string]interface{}{ + "subnet_id": subnetId, + "ignore_missing_vnet_service_endpoint": ignore, + }) + } + + return result +} + +func expandServiceBusNamespaceIPRules(input []interface{}) *[]namespaces.NWRuleSetIPRules { + if len(input) == 0 { + return nil + } + + action := namespaces.NetworkRuleIPActionAllow + result := make([]namespaces.NWRuleSetIPRules, 0, len(input)) + for _, v := range input { + result = append(result, namespaces.NWRuleSetIPRules{ + IPMask: pointer.To(v.(string)), + Action: &action, + }) + } + + return &result +} + +func flattenServiceBusNamespaceIPRules(input *[]namespaces.NWRuleSetIPRules) []interface{} { + if input == nil || len(*input) == 0 { + return []interface{}{} + } + + result := make([]interface{}, 0, len(*input)) + for _, v := range *input { + if v.IPMask != nil { + result = append(result, *v.IPMask) + } + } + + return result +} diff --git a/internal/services/servicebus/servicebus_namespace_resource_test.go b/internal/services/servicebus/servicebus_namespace_resource_test.go index 3693ce063b24..7a11c43dd74d 100644 --- a/internal/services/servicebus/servicebus_namespace_resource_test.go +++ b/internal/services/servicebus/servicebus_namespace_resource_test.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -151,25 +150,6 @@ func TestAccAzureRMServiceBusNamespace_premiumMessagingPartition(t *testing.T) { }) } -func TestAccAzureRMServiceBusNamespace_zoneRedundant(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("Skipped as 'zone_redundant' property is deprecated in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_servicebus_namespace", "test") - r := ServiceBusNamespaceResource{} - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.zoneRedundant(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("zone_redundant").HasValue("true"), - ), - }, - data.ImportStep(), - }) -} - func TestAccAzureRMServiceBusNamespace_identity(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_servicebus_namespace", "test") r := ServiceBusNamespaceResource{} @@ -493,30 +473,6 @@ resource "azurerm_servicebus_namespace" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger) } -// TODO: Remove in v4.0 -func (ServiceBusNamespaceResource) zoneRedundant(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_servicebus_namespace" "test" { - name = "acctestservicebusnamespace-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - sku = "Premium" - premium_messaging_partitions = 1 - capacity = 1 - zone_redundant = true -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - func (ServiceBusNamespaceResource) identitySystemAssigned(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/servicebus/servicebus_queue_authorization_rule_data_source_test.go b/internal/services/servicebus/servicebus_queue_authorization_rule_data_source_test.go index 90bcbbdfa268..26434776674d 100644 --- a/internal/services/servicebus/servicebus_queue_authorization_rule_data_source_test.go +++ b/internal/services/servicebus/servicebus_queue_authorization_rule_data_source_test.go @@ -37,6 +37,7 @@ func TestAccDataSourceServiceBusQueueAuthorizationRule_byId(t *testing.T) { }, }) } + func TestAccDataSourceServiceBusQueueAuthorizationRule_byName(t *testing.T) { data := acceptance.BuildTestData(t, "data.azurerm_servicebus_queue_authorization_rule", "test") r := ServiceBusQueueAuthorizationRuleDataSource{} diff --git a/internal/services/servicebus/servicebus_queue_authorization_rule_resource.go b/internal/services/servicebus/servicebus_queue_authorization_rule_resource.go index ad04d05c3b45..f6b5a4a3796f 100644 --- a/internal/services/servicebus/servicebus_queue_authorization_rule_resource.go +++ b/internal/services/servicebus/servicebus_queue_authorization_rule_resource.go @@ -54,7 +54,7 @@ func resourceServiceBusqueueAuthorizationRuleSchema() map[string]*pluginsdk.Sche ValidateFunc: validate.AuthorizationRuleName(), }, - //lintignore: S013 + // lintignore: S013 "queue_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/servicebus/servicebus_subscription_data_source_test.go b/internal/services/servicebus/servicebus_subscription_data_source_test.go index 721aab3b7d34..af9e2440b0e3 100644 --- a/internal/services/servicebus/servicebus_subscription_data_source_test.go +++ b/internal/services/servicebus/servicebus_subscription_data_source_test.go @@ -29,6 +29,10 @@ func TestAccDataSourceServiceBusSubscription_basic(t *testing.T) { func (ServiceBusSubscriptionDataSource) basic(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" diff --git a/internal/services/servicebus/servicebus_subscription_resource.go b/internal/services/servicebus/servicebus_subscription_resource.go index a0400c6406ea..1f8be5ec51a8 100644 --- a/internal/services/servicebus/servicebus_subscription_resource.go +++ b/internal/services/servicebus/servicebus_subscription_resource.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/servicebus/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/servicebus/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -60,7 +59,7 @@ func resourceServicebusSubscriptionSchema() map[string]*pluginsdk.Schema { ValidateFunc: validate.SubscriptionName(), }, - //lintignore: S013 + // lintignore: S013 "topic_id": { Type: pluginsdk.TypeString, Required: true, @@ -100,13 +99,6 @@ func resourceServicebusSubscriptionSchema() map[string]*pluginsdk.Schema { "batched_operations_enabled": { Type: pluginsdk.TypeBool, Optional: true, - Computed: !features.FourPointOhBeta(), - ConflictsWith: func() []string { - if !features.FourPointOhBeta() { - return []string{"enable_batched_operations"} - } - return []string{} - }(), }, "max_delivery_count": { @@ -175,35 +167,6 @@ func resourceServicebusSubscriptionSchema() map[string]*pluginsdk.Schema { }, } - if !features.FourPointOhBeta() { - - schema["auto_delete_on_idle"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - } - - schema["default_message_ttl"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - } - - schema["lock_duration"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - } - - schema["enable_batched_operations"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - ConflictsWith: []string{"batched_operations_enabled"}, - Deprecated: "`enable_batched_operations` will be removed in favour of the property `batched_operations_enabled` in version 4.0 of the AzureRM Provider.", - } - } - return schema } @@ -251,12 +214,6 @@ func resourceServiceBusSubscriptionCreateUpdate(d *pluginsdk.ResourceData, meta } enableBatchedOperations := d.Get("batched_operations_enabled").(bool) - if !features.FourPointOhBeta() { - - if v := d.GetRawConfig().AsValueMap()["enable_batched_operations"]; !v.IsNull() { - enableBatchedOperations = d.Get("enable_batched_operations").(bool) - } - } status := subscriptions.EntityStatus(d.Get("status").(string)) parameters := subscriptions.SBSubscription{ @@ -342,11 +299,7 @@ func resourceServiceBusSubscriptionRead(d *pluginsdk.ResourceData, meta interfac d.Set("forward_dead_lettered_messages_to", props.ForwardDeadLetteredMessagesTo) d.Set("status", utils.String(string(*props.Status))) d.Set("client_scoped_subscription_enabled", props.IsClientAffine) - d.Set("batched_operations_enabled", props.EnableBatchedOperations) - if !features.FourPointOhBeta() { - d.Set("enable_batched_operations", props.EnableBatchedOperations) - } if count := props.MaxDeliveryCount; count != nil { d.Set("max_delivery_count", int(*count)) diff --git a/internal/services/servicebus/servicebus_subscription_resource_test.go b/internal/services/servicebus/servicebus_subscription_resource_test.go index 9a4d8ac23b30..131cbd24b3a7 100644 --- a/internal/services/servicebus/servicebus_subscription_resource_test.go +++ b/internal/services/servicebus/servicebus_subscription_resource_test.go @@ -245,6 +245,10 @@ func (t ServiceBusSubscriptionResource) Exists(ctx context.Context, clients *cli } const testAccServiceBusSubscription_tfTemplate = ` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" @@ -276,6 +280,10 @@ func (ServiceBusSubscriptionResource) basic(data acceptance.TestData) string { func (ServiceBusSubscriptionResource) complete(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%[1]d" location = "%[2]s" @@ -384,6 +392,10 @@ func (ServiceBusSubscriptionResource) updateDeadLetteringOnFilterEvaluationExcep func (ServiceBusSubscriptionResource) clientScopedSubscriptionEnabled(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%[1]d" location = "%[2]s" diff --git a/internal/services/servicebus/servicebus_subscription_rule_resource.go b/internal/services/servicebus/servicebus_subscription_rule_resource.go index a4db7728d80f..c18fa61db115 100644 --- a/internal/services/servicebus/servicebus_subscription_rule_resource.go +++ b/internal/services/servicebus/servicebus_subscription_rule_resource.go @@ -54,7 +54,7 @@ func resourceServicebusSubscriptionRuleSchema() map[string]*pluginsdk.Schema { ValidateFunc: validation.StringLenBetween(1, 50), }, - //lintignore: S013 + // lintignore: S013 "subscription_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/servicebus/servicebus_topic_authorization_rule_resource.go b/internal/services/servicebus/servicebus_topic_authorization_rule_resource.go index fa10482bf91d..2fb4ddf432ac 100644 --- a/internal/services/servicebus/servicebus_topic_authorization_rule_resource.go +++ b/internal/services/servicebus/servicebus_topic_authorization_rule_resource.go @@ -54,7 +54,7 @@ func resourceServiceBusTopicAuthorizationRuleSchema() map[string]*pluginsdk.Sche ValidateFunc: validate.AuthorizationRuleName(), }, - //lintignore: S013 + // lintignore: S013 "topic_id": { Type: pluginsdk.TypeString, Required: true, diff --git a/internal/services/servicebus/servicebus_topic_resource.go b/internal/services/servicebus/servicebus_topic_resource.go index 164a0ac21db0..0c7c4b4fb20e 100644 --- a/internal/services/servicebus/servicebus_topic_resource.go +++ b/internal/services/servicebus/servicebus_topic_resource.go @@ -54,7 +54,7 @@ func resourceServiceBusTopicSchema() map[string]*pluginsdk.Schema { ValidateFunc: azValidate.TopicName(), }, - //lintignore: S013 + // lintignore: S013 "namespace_id": { Type: pluginsdk.TypeString, Required: true, @@ -95,19 +95,16 @@ func resourceServiceBusTopicSchema() map[string]*pluginsdk.Schema { "batched_operations_enabled": { Type: pluginsdk.TypeBool, - Computed: !features.FourPointOhBeta(), Optional: true, }, "express_enabled": { Type: pluginsdk.TypeBool, - Computed: !features.FourPointOhBeta(), Optional: true, }, "partitioning_enabled": { Type: pluginsdk.TypeBool, - Computed: !features.FourPointOhBeta(), Optional: true, ForceNew: true, }, @@ -140,54 +137,6 @@ func resourceServiceBusTopicSchema() map[string]*pluginsdk.Schema { }, } - if !features.FourPointOhBeta() { - schema["auto_delete_on_idle"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validate.ISO8601Duration, - } - - schema["default_message_ttl"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validate.ISO8601Duration, - } - - schema["duplicate_detection_history_time_window"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validate.ISO8601Duration, - } - - schema["enable_batched_operations"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - ConflictsWith: []string{"batched_operations_enabled"}, - Deprecated: "The property `enable_batched_operations` has been superseded by `batched_operations_enabled` and will be removed in v4.0 of the AzureRM Provider.", - } - - schema["enable_express"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - ConflictsWith: []string{"express_enabled"}, - Deprecated: "The property `enable_express` has been superseded by `express_enabled` and will be removed in v4.0 of the AzureRM Provider.", - } - - schema["enable_partitioning"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - ForceNew: true, - Computed: true, - ConflictsWith: []string{"partitioning_enabled"}, - Deprecated: "The property `enable_partitioning` has been superseded by `partitioning_enabled` and will be removed in v4.0 of the AzureRM Provider.", - } - } - return schema } @@ -324,12 +273,6 @@ func resourceServiceBusTopicRead(d *pluginsdk.ResourceData, meta interface{}) er d.Set("duplicate_detection_history_time_window", window) } - if !features.FourPointOhBeta() { - d.Set("enable_batched_operations", props.EnableBatchedOperations) - d.Set("enable_express", props.EnableExpress) - d.Set("enable_partitioning", props.EnablePartitioning) - } - d.Set("batched_operations_enabled", props.EnableBatchedOperations) d.Set("express_enabled", props.EnableExpress) d.Set("partitioning_enabled", props.EnablePartitioning) diff --git a/internal/services/servicefabric/service_fabric_cluster_resource_test.go b/internal/services/servicefabric/service_fabric_cluster_resource_test.go index ae87ec61e176..6da3b9fe11ea 100644 --- a/internal/services/servicefabric/service_fabric_cluster_resource_test.go +++ b/internal/services/servicefabric/service_fabric_cluster_resource_test.go @@ -1168,6 +1168,10 @@ resource "azurerm_service_fabric_cluster" "test" { func (r ServiceFabricClusterResource) clientCertificateCommonNames(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-%d" location = "%s" diff --git a/internal/services/servicefabricmanaged/service_fabric_managed_cluster_resource.go b/internal/services/servicefabricmanaged/service_fabric_managed_cluster_resource.go index 3b7a5b638ef6..e29b2a365bdb 100644 --- a/internal/services/servicefabricmanaged/service_fabric_managed_cluster_resource.go +++ b/internal/services/servicefabricmanaged/service_fabric_managed_cluster_resource.go @@ -12,6 +12,7 @@ import ( "strings" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster" @@ -558,7 +559,7 @@ func flattenClusterProperties(cluster *managedcluster.ManagedCluster) *ClusterRe return model } - model.Name = utils.NormalizeNilableString(cluster.Name) + model.Name = pointer.From(cluster.Name) model.Location = cluster.Location if sku := cluster.Sku; sku != nil { model.Sku = sku.Name @@ -587,9 +588,9 @@ func flattenClusterProperties(cluster *managedcluster.ManagedCluster) *ClusterRe adModels := make([]ADAuthentication, 0) adModel := ADAuthentication{} - adModel.ClientApp = utils.NormalizeNilableString(aad.ClientApplication) - adModel.ClusterApp = utils.NormalizeNilableString(aad.ClusterApplication) - adModel.TenantId = utils.NormalizeNilableString(aad.TenantId) + adModel.ClientApp = pointer.From(aad.ClientApplication) + adModel.ClusterApp = pointer.From(aad.ClusterApplication) + adModel.TenantId = pointer.From(aad.TenantId) adModels = append(adModels, adModel) model.Authentication[0].ADAuth = adModels @@ -604,8 +605,8 @@ func flattenClusterProperties(cluster *managedcluster.ManagedCluster) *ClusterRe } certs[idx] = ThumbprintAuth{ CertificateType: t, - CommonName: utils.NormalizeNilableString(client.CommonName), - Thumbprint: utils.NormalizeNilableString(client.Thumbprint), + CommonName: pointer.From(client.CommonName), + Thumbprint: pointer.From(client.Thumbprint), } } if len(model.Authentication) == 0 { @@ -628,8 +629,8 @@ func flattenClusterProperties(cluster *managedcluster.ManagedCluster) *ClusterRe model.CustomFabricSettings = cfs } - model.ClientConnectionPort = utils.NormaliseNilableInt64(properties.ClientConnectionPort) - model.HTTPGatewayPort = utils.NormaliseNilableInt64(properties.HTTPGatewayConnectionPort) + model.ClientConnectionPort = pointer.From(properties.ClientConnectionPort) + model.HTTPGatewayPort = pointer.From(properties.HTTPGatewayConnectionPort) if lbrules := properties.LoadBalancingRules; lbrules != nil { model.LBRules = make([]LBRule, len(*lbrules)) @@ -638,7 +639,7 @@ func flattenClusterProperties(cluster *managedcluster.ManagedCluster) *ClusterRe BackendPort: rule.BackendPort, FrontendPort: rule.FrontendPort, ProbeProtocol: rule.ProbeProtocol, - ProbeRequestPath: utils.NormalizeNilableString(rule.ProbeRequestPath), + ProbeRequestPath: pointer.From(rule.ProbeRequestPath), Protocol: rule.Protocol, } } @@ -651,7 +652,12 @@ func flattenClusterProperties(cluster *managedcluster.ManagedCluster) *ClusterRe if t := cluster.Tags; t != nil { modelTags := make(map[string]interface{}) for tag, value := range *t { - modelTags[tag] = value + // This tag is temporary and will be removed at a later date. + // More info can be found here https://azure.microsoft.com/en-us/updates/default-outbound-access-for-vms-in-azure-will-be-retired-transition-to-a-new-method-of-internet-access/ + // In the meantime, we'll ignore it when setting tags into state + if !strings.Contains(tag, "SFRP.DisableDefaultOutboundAccess") { + modelTags[tag] = value + } } model.Tags = modelTags } @@ -661,20 +667,20 @@ func flattenClusterProperties(cluster *managedcluster.ManagedCluster) *ClusterRe func flattenNodetypeProperties(nt nodetype.NodeType) NodeType { props := nt.Properties if props == nil { - return NodeType{Name: utils.NormalizeNilableString(nt.Name)} + return NodeType{Name: pointer.From(nt.Name)} } out := NodeType{ DataDiskSize: nt.Properties.DataDiskSizeGB, - Name: utils.NormalizeNilableString(nt.Name), + Name: pointer.From(nt.Name), Primary: props.IsPrimary, - VmImageOffer: utils.NormalizeNilableString(props.VMImageOffer), - VmImagePublisher: utils.NormalizeNilableString(props.VMImagePublisher), - VmImageSku: utils.NormalizeNilableString(props.VMImageSku), - VmImageVersion: utils.NormalizeNilableString(props.VMImageVersion), + VmImageOffer: pointer.From(props.VMImageOffer), + VmImagePublisher: pointer.From(props.VMImagePublisher), + VmImageSku: pointer.From(props.VMImageSku), + VmImageVersion: pointer.From(props.VMImageVersion), VmInstanceCount: props.VMInstanceCount, - VmSize: utils.NormalizeNilableString(props.VMSize), - Id: utils.NormalizeNilableString(nt.Id), + VmSize: pointer.From(props.VMSize), + Id: pointer.From(nt.Id), } if appPorts := props.ApplicationPorts; appPorts != nil { @@ -724,7 +730,7 @@ func flattenNodetypeProperties(nt nodetype.NodeType) NodeType { } } secs[idx] = VmSecrets{ - SourceVault: utils.NormalizeNilableString(sec.SourceVault.Id), + SourceVault: pointer.From(sec.SourceVault.Id), Certificates: certs, } } diff --git a/internal/services/signalr/signalr_service_custom_certificate_resource.go b/internal/services/signalr/signalr_service_custom_certificate_resource.go index 8d12efb06d42..ad9eca1b0127 100644 --- a/internal/services/signalr/signalr_service_custom_certificate_resource.go +++ b/internal/services/signalr/signalr_service_custom_certificate_resource.go @@ -8,6 +8,7 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr" @@ -190,7 +191,7 @@ func (r CustomCertSignalrServiceResource) Read() sdk.ResourceFunc { Name: id.CustomCertificateName, CustomCertId: certId, SignalRServiceId: signalrServiceId, - CertificateVersion: utils.NormalizeNilableString(resp.Model.Properties.KeyVaultSecretVersion), + CertificateVersion: pointer.From(resp.Model.Properties.KeyVaultSecretVersion), } return metadata.Encode(&state) diff --git a/internal/services/signalr/signalr_service_custom_domain_resource_test.go b/internal/services/signalr/signalr_service_custom_domain_resource_test.go index 9a9841da0e7f..2f38b140d621 100644 --- a/internal/services/signalr/signalr_service_custom_domain_resource_test.go +++ b/internal/services/signalr/signalr_service_custom_domain_resource_test.go @@ -60,7 +60,6 @@ func (r SignalrServiceCustomDomainResource) Exists(ctx context.Context, client * return nil, fmt.Errorf("retrieving %s: %+v", *id, err) } return utils.Bool(resp.Model != nil), nil - } func (r SignalrServiceCustomDomainResource) basic(data acceptance.TestData) string { diff --git a/internal/services/signalr/signalr_service_resource.go b/internal/services/signalr/signalr_service_resource.go index 055e7f8607d1..4b2a1d775d0a 100644 --- a/internal/services/signalr/signalr_service_resource.go +++ b/internal/services/signalr/signalr_service_resource.go @@ -835,8 +835,10 @@ func resourceArmSignalRServiceSchema() map[string]*pluginsdk.Schema { "capacity": { Type: pluginsdk.TypeInt, Required: true, - ValidateFunc: validation.IntInSlice([]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, - 300, 400, 500, 600, 700, 800, 900, 1000}), + ValidateFunc: validation.IntInSlice([]int{ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, + 300, 400, 500, 600, 700, 800, 900, 1000, + }), }, }, }, diff --git a/internal/services/signalr/signalr_shared_private_link_resource_test.go b/internal/services/signalr/signalr_shared_private_link_resource_test.go index 4d49374b1b7a..93215dd9e418 100644 --- a/internal/services/signalr/signalr_shared_private_link_resource_test.go +++ b/internal/services/signalr/signalr_shared_private_link_resource_test.go @@ -156,6 +156,7 @@ resource "azurerm_signalr_shared_private_link_resource" "test" { } `, r.template(data), data.RandomInteger, data.RandomInteger, data.RandomInteger) } + func (SignalrSharedPrivateLinkResource) template(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/signalr/web_pubsub_custom_certificate_resource.go b/internal/services/signalr/web_pubsub_custom_certificate_resource.go index e5f808a02b58..7651c12818a2 100644 --- a/internal/services/signalr/web_pubsub_custom_certificate_resource.go +++ b/internal/services/signalr/web_pubsub_custom_certificate_resource.go @@ -8,6 +8,7 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub" @@ -121,7 +122,6 @@ func (r CustomCertWebPubsubResource) Create() sdk.ResourceFunc { } if keyVaultCertificateId.Version != "" { customCertObj.Properties.KeyVaultSecretVersion = utils.String(keyVaultCertificateId.Version) - } if err := client.CustomCertificatesCreateOrUpdateThenPoll(ctx, id, customCertObj); err != nil { @@ -185,7 +185,7 @@ func (r CustomCertWebPubsubResource) Read() sdk.ResourceFunc { Name: id.CustomCertificateName, CustomCertId: certId, WebPubsubId: webpubsub.NewWebPubSubID(id.SubscriptionId, id.ResourceGroupName, id.WebPubSubName).ID(), - CertificateVersion: utils.NormalizeNilableString(resp.Model.Properties.KeyVaultSecretVersion), + CertificateVersion: pointer.From(resp.Model.Properties.KeyVaultSecretVersion), } return metadata.Encode(&state) diff --git a/internal/services/signalr/web_pubsub_custom_domain_resource_test.go b/internal/services/signalr/web_pubsub_custom_domain_resource_test.go index 0ea0d5b715df..f005ea235a64 100644 --- a/internal/services/signalr/web_pubsub_custom_domain_resource_test.go +++ b/internal/services/signalr/web_pubsub_custom_domain_resource_test.go @@ -60,7 +60,6 @@ func (r WebPubsubCustomDomainResource) Exists(ctx context.Context, client *clien return nil, fmt.Errorf("retrieving %s: %+v", *id, err) } return utils.Bool(resp.Model != nil), nil - } func (r WebPubsubCustomDomainResource) basic(data acceptance.TestData) string { diff --git a/internal/services/signalr/web_pubsub_resource.go b/internal/services/signalr/web_pubsub_resource.go index 3eebcc7c263a..61f85bd38ac4 100644 --- a/internal/services/signalr/web_pubsub_resource.go +++ b/internal/services/signalr/web_pubsub_resource.go @@ -80,8 +80,11 @@ func resourceWebPubSub() *pluginsdk.Resource { Type: pluginsdk.TypeInt, Optional: true, Default: 1, - ValidateFunc: validation.IntInSlice([]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, - 300, 400, 500, 600, 700, 800, 900, 1000})}, + ValidateFunc: validation.IntInSlice([]int{ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, + 300, 400, 500, 600, 700, 800, 900, 1000, + }), + }, "live_trace": { Type: pluginsdk.TypeList, diff --git a/internal/services/signalr/web_pubsub_shared_private_link_resource_test.go b/internal/services/signalr/web_pubsub_shared_private_link_resource_test.go index 459d7c22e739..bcd52ce6dc5b 100644 --- a/internal/services/signalr/web_pubsub_shared_private_link_resource_test.go +++ b/internal/services/signalr/web_pubsub_shared_private_link_resource_test.go @@ -47,6 +47,7 @@ func TestAccWebPubsubSharedPrivateLinkResource_requiresImport(t *testing.T) { data.RequiresImportErrorStep(r.requiresImport), }) } + func (r WebPubsubSharedPrivateLinkResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := webpubsub.ParseSharedPrivateLinkResourceID(state.ID) if err != nil { diff --git a/internal/services/springcloud/migration/build_pack_binding_v0_to_v1.go b/internal/services/springcloud/migration/build_pack_binding_v0_to_v1.go index 340a97d9ab28..1831128c2b7f 100644 --- a/internal/services/springcloud/migration/build_pack_binding_v0_to_v1.go +++ b/internal/services/springcloud/migration/build_pack_binding_v0_to_v1.go @@ -13,8 +13,7 @@ import ( var _ pluginsdk.StateUpgrade = BuildPackBindingV0ToV1{} -type BuildPackBindingV0ToV1 struct { -} +type BuildPackBindingV0ToV1 struct{} func (BuildPackBindingV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/springcloud/parse/spring_cloud_accelerator.go b/internal/services/springcloud/parse/spring_cloud_accelerator.go index 278276164ef8..89a1163955af 100644 --- a/internal/services/springcloud/parse/spring_cloud_accelerator.go +++ b/internal/services/springcloud/parse/spring_cloud_accelerator.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudAcceleratorID(input string) (*SpringCloudAcceleratorId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudAcceleratorIDInsensitively(input string) (*SpringCloudAccelerato } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_accelerator_test.go b/internal/services/springcloud/parse/spring_cloud_accelerator_test.go index bef5b7249056..c2819dadb0d3 100644 --- a/internal/services/springcloud/parse/spring_cloud_accelerator_test.go +++ b/internal/services/springcloud/parse/spring_cloud_accelerator_test.go @@ -27,7 +27,6 @@ func TestSpringCloudAcceleratorID(t *testing.T) { Error bool Expected *SpringCloudAcceleratorId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudAcceleratorIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudAcceleratorId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_api_portal.go b/internal/services/springcloud/parse/spring_cloud_api_portal.go index fbf9f06ef14a..381fcd8a0647 100644 --- a/internal/services/springcloud/parse/spring_cloud_api_portal.go +++ b/internal/services/springcloud/parse/spring_cloud_api_portal.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -35,7 +36,7 @@ func (id SpringCloudAPIPortalId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Spring Cloud A P I Portal", segmentsStr) + return fmt.Sprintf("%s: (%s)", "Spring CloudAPI Portal", segmentsStr) } func (id SpringCloudAPIPortalId) ID() string { @@ -56,11 +57,11 @@ func SpringCloudAPIPortalID(input string) (*SpringCloudAPIPortalId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudAPIPortalIDInsensitively(input string) (*SpringCloudAPIPortalId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_api_portal_custom_domain.go b/internal/services/springcloud/parse/spring_cloud_api_portal_custom_domain.go index 85af00f1b6c5..2e99c256f32c 100644 --- a/internal/services/springcloud/parse/spring_cloud_api_portal_custom_domain.go +++ b/internal/services/springcloud/parse/spring_cloud_api_portal_custom_domain.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -38,7 +39,7 @@ func (id SpringCloudAPIPortalCustomDomainId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Spring Cloud A P I Portal Custom Domain", segmentsStr) + return fmt.Sprintf("%s: (%s)", "Spring CloudAPI Portal Custom Domain", segmentsStr) } func (id SpringCloudAPIPortalCustomDomainId) ID() string { @@ -59,11 +60,11 @@ func SpringCloudAPIPortalCustomDomainID(input string) (*SpringCloudAPIPortalCust } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -101,11 +102,11 @@ func SpringCloudAPIPortalCustomDomainIDInsensitively(input string) (*SpringCloud } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_api_portal_custom_domain_test.go b/internal/services/springcloud/parse/spring_cloud_api_portal_custom_domain_test.go index 2e8855a7db93..36a74833a5e5 100644 --- a/internal/services/springcloud/parse/spring_cloud_api_portal_custom_domain_test.go +++ b/internal/services/springcloud/parse/spring_cloud_api_portal_custom_domain_test.go @@ -27,7 +27,6 @@ func TestSpringCloudAPIPortalCustomDomainID(t *testing.T) { Error bool Expected *SpringCloudAPIPortalCustomDomainId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestSpringCloudAPIPortalCustomDomainIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudAPIPortalCustomDomainId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_api_portal_test.go b/internal/services/springcloud/parse/spring_cloud_api_portal_test.go index 009dd8330a87..af847deea3a0 100644 --- a/internal/services/springcloud/parse/spring_cloud_api_portal_test.go +++ b/internal/services/springcloud/parse/spring_cloud_api_portal_test.go @@ -27,7 +27,6 @@ func TestSpringCloudAPIPortalID(t *testing.T) { Error bool Expected *SpringCloudAPIPortalId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudAPIPortalIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudAPIPortalId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_app.go b/internal/services/springcloud/parse/spring_cloud_app.go index 0652a7759bc4..de8170c8c65e 100644 --- a/internal/services/springcloud/parse/spring_cloud_app.go +++ b/internal/services/springcloud/parse/spring_cloud_app.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudAppID(input string) (*SpringCloudAppId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudAppIDInsensitively(input string) (*SpringCloudAppId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_app_association.go b/internal/services/springcloud/parse/spring_cloud_app_association.go index dfa6c79733ef..366c6c86d551 100644 --- a/internal/services/springcloud/parse/spring_cloud_app_association.go +++ b/internal/services/springcloud/parse/spring_cloud_app_association.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SpringCloudAppAssociationID(input string) (*SpringCloudAppAssociationId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -101,11 +102,11 @@ func SpringCloudAppAssociationIDInsensitively(input string) (*SpringCloudAppAsso } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_app_association_test.go b/internal/services/springcloud/parse/spring_cloud_app_association_test.go index b8f172241693..f0d4233120bd 100644 --- a/internal/services/springcloud/parse/spring_cloud_app_association_test.go +++ b/internal/services/springcloud/parse/spring_cloud_app_association_test.go @@ -27,7 +27,6 @@ func TestSpringCloudAppAssociationID(t *testing.T) { Error bool Expected *SpringCloudAppAssociationId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestSpringCloudAppAssociationIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudAppAssociationId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_app_test.go b/internal/services/springcloud/parse/spring_cloud_app_test.go index ce1703189540..c8538f285460 100644 --- a/internal/services/springcloud/parse/spring_cloud_app_test.go +++ b/internal/services/springcloud/parse/spring_cloud_app_test.go @@ -27,7 +27,6 @@ func TestSpringCloudAppID(t *testing.T) { Error bool Expected *SpringCloudAppId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudAppIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudAppId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_application_live_view.go b/internal/services/springcloud/parse/spring_cloud_application_live_view.go index 8e4ebf1a1a0b..270236e44e70 100644 --- a/internal/services/springcloud/parse/spring_cloud_application_live_view.go +++ b/internal/services/springcloud/parse/spring_cloud_application_live_view.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudApplicationLiveViewID(input string) (*SpringCloudApplicationLive } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { diff --git a/internal/services/springcloud/parse/spring_cloud_application_live_view_test.go b/internal/services/springcloud/parse/spring_cloud_application_live_view_test.go index e116f557c001..68484600ee09 100644 --- a/internal/services/springcloud/parse/spring_cloud_application_live_view_test.go +++ b/internal/services/springcloud/parse/spring_cloud_application_live_view_test.go @@ -27,7 +27,6 @@ func TestSpringCloudApplicationLiveViewID(t *testing.T) { Error bool Expected *SpringCloudApplicationLiveViewId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_build_pack_binding.go b/internal/services/springcloud/parse/spring_cloud_build_pack_binding.go index 74f0cdf5caa0..2e1594713668 100644 --- a/internal/services/springcloud/parse/spring_cloud_build_pack_binding.go +++ b/internal/services/springcloud/parse/spring_cloud_build_pack_binding.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func SpringCloudBuildPackBindingID(input string) (*SpringCloudBuildPackBindingId } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -107,11 +108,11 @@ func SpringCloudBuildPackBindingIDInsensitively(input string) (*SpringCloudBuild } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_build_pack_binding_test.go b/internal/services/springcloud/parse/spring_cloud_build_pack_binding_test.go index 9ddb51c4a4ff..031c034fe252 100644 --- a/internal/services/springcloud/parse/spring_cloud_build_pack_binding_test.go +++ b/internal/services/springcloud/parse/spring_cloud_build_pack_binding_test.go @@ -27,7 +27,6 @@ func TestSpringCloudBuildPackBindingID(t *testing.T) { Error bool Expected *SpringCloudBuildPackBindingId }{ - { // empty Input: "", @@ -168,7 +167,6 @@ func TestSpringCloudBuildPackBindingIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudBuildPackBindingId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_build_service_builder.go b/internal/services/springcloud/parse/spring_cloud_build_service_builder.go index 6c93a53b8d6f..34b5c8ab9de9 100644 --- a/internal/services/springcloud/parse/spring_cloud_build_service_builder.go +++ b/internal/services/springcloud/parse/spring_cloud_build_service_builder.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SpringCloudBuildServiceBuilderID(input string) (*SpringCloudBuildServiceBui } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -101,11 +102,11 @@ func SpringCloudBuildServiceBuilderIDInsensitively(input string) (*SpringCloudBu } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_build_service_builder_test.go b/internal/services/springcloud/parse/spring_cloud_build_service_builder_test.go index bfb64cafdde9..f8285008879f 100644 --- a/internal/services/springcloud/parse/spring_cloud_build_service_builder_test.go +++ b/internal/services/springcloud/parse/spring_cloud_build_service_builder_test.go @@ -27,7 +27,6 @@ func TestSpringCloudBuildServiceBuilderID(t *testing.T) { Error bool Expected *SpringCloudBuildServiceBuilderId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestSpringCloudBuildServiceBuilderIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudBuildServiceBuilderId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_certificate.go b/internal/services/springcloud/parse/spring_cloud_certificate.go index c6b3464b3df3..4389955a7ef7 100644 --- a/internal/services/springcloud/parse/spring_cloud_certificate.go +++ b/internal/services/springcloud/parse/spring_cloud_certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudCertificateID(input string) (*SpringCloudCertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudCertificateIDInsensitively(input string) (*SpringCloudCertificat } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_certificate_test.go b/internal/services/springcloud/parse/spring_cloud_certificate_test.go index f8fa8e2a7db6..fb795794b7d0 100644 --- a/internal/services/springcloud/parse/spring_cloud_certificate_test.go +++ b/internal/services/springcloud/parse/spring_cloud_certificate_test.go @@ -27,7 +27,6 @@ func TestSpringCloudCertificateID(t *testing.T) { Error bool Expected *SpringCloudCertificateId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudCertificateIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudCertificateId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_configuration_service.go b/internal/services/springcloud/parse/spring_cloud_configuration_service.go index 869d624b2b9a..df7ebbd3f96e 100644 --- a/internal/services/springcloud/parse/spring_cloud_configuration_service.go +++ b/internal/services/springcloud/parse/spring_cloud_configuration_service.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudConfigurationServiceID(input string) (*SpringCloudConfigurationS } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudConfigurationServiceIDInsensitively(input string) (*SpringCloudC } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_configuration_service_test.go b/internal/services/springcloud/parse/spring_cloud_configuration_service_test.go index 139e96329e69..6e901bf6648a 100644 --- a/internal/services/springcloud/parse/spring_cloud_configuration_service_test.go +++ b/internal/services/springcloud/parse/spring_cloud_configuration_service_test.go @@ -27,7 +27,6 @@ func TestSpringCloudConfigurationServiceID(t *testing.T) { Error bool Expected *SpringCloudConfigurationServiceId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudConfigurationServiceIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudConfigurationServiceId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_container_registry.go b/internal/services/springcloud/parse/spring_cloud_container_registry.go index 204b3f7f43c5..e111f407d852 100644 --- a/internal/services/springcloud/parse/spring_cloud_container_registry.go +++ b/internal/services/springcloud/parse/spring_cloud_container_registry.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudContainerRegistryID(input string) (*SpringCloudContainerRegistry } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudContainerRegistryIDInsensitively(input string) (*SpringCloudCont } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_container_registry_test.go b/internal/services/springcloud/parse/spring_cloud_container_registry_test.go index 5e648ce2b1fb..5d003dcd54da 100644 --- a/internal/services/springcloud/parse/spring_cloud_container_registry_test.go +++ b/internal/services/springcloud/parse/spring_cloud_container_registry_test.go @@ -27,7 +27,6 @@ func TestSpringCloudContainerRegistryID(t *testing.T) { Error bool Expected *SpringCloudContainerRegistryId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudContainerRegistryIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudContainerRegistryId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_custom_domain.go b/internal/services/springcloud/parse/spring_cloud_custom_domain.go index a3ecada06db9..9f82d05902a8 100644 --- a/internal/services/springcloud/parse/spring_cloud_custom_domain.go +++ b/internal/services/springcloud/parse/spring_cloud_custom_domain.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SpringCloudCustomDomainID(input string) (*SpringCloudCustomDomainId, error) } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -101,11 +102,11 @@ func SpringCloudCustomDomainIDInsensitively(input string) (*SpringCloudCustomDom } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_custom_domain_test.go b/internal/services/springcloud/parse/spring_cloud_custom_domain_test.go index 6cead38afb9b..5ff87a062f18 100644 --- a/internal/services/springcloud/parse/spring_cloud_custom_domain_test.go +++ b/internal/services/springcloud/parse/spring_cloud_custom_domain_test.go @@ -27,7 +27,6 @@ func TestSpringCloudCustomDomainID(t *testing.T) { Error bool Expected *SpringCloudCustomDomainId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestSpringCloudCustomDomainIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudCustomDomainId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_customized_accelerator.go b/internal/services/springcloud/parse/spring_cloud_customized_accelerator.go index 9fb57d873c46..40c0383870d9 100644 --- a/internal/services/springcloud/parse/spring_cloud_customized_accelerator.go +++ b/internal/services/springcloud/parse/spring_cloud_customized_accelerator.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SpringCloudCustomizedAcceleratorID(input string) (*SpringCloudCustomizedAcc } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -101,11 +102,11 @@ func SpringCloudCustomizedAcceleratorIDInsensitively(input string) (*SpringCloud } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_customized_accelerator_test.go b/internal/services/springcloud/parse/spring_cloud_customized_accelerator_test.go index 442b5c49419b..546ce5494561 100644 --- a/internal/services/springcloud/parse/spring_cloud_customized_accelerator_test.go +++ b/internal/services/springcloud/parse/spring_cloud_customized_accelerator_test.go @@ -27,7 +27,6 @@ func TestSpringCloudCustomizedAcceleratorID(t *testing.T) { Error bool Expected *SpringCloudCustomizedAcceleratorId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestSpringCloudCustomizedAcceleratorIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudCustomizedAcceleratorId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_deployment.go b/internal/services/springcloud/parse/spring_cloud_deployment.go index f5529296fcd5..b77c74966c6e 100644 --- a/internal/services/springcloud/parse/spring_cloud_deployment.go +++ b/internal/services/springcloud/parse/spring_cloud_deployment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SpringCloudDeploymentID(input string) (*SpringCloudDeploymentId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -101,11 +102,11 @@ func SpringCloudDeploymentIDInsensitively(input string) (*SpringCloudDeploymentI } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_deployment_test.go b/internal/services/springcloud/parse/spring_cloud_deployment_test.go index f520ec4410ea..df40671d08f0 100644 --- a/internal/services/springcloud/parse/spring_cloud_deployment_test.go +++ b/internal/services/springcloud/parse/spring_cloud_deployment_test.go @@ -27,7 +27,6 @@ func TestSpringCloudDeploymentID(t *testing.T) { Error bool Expected *SpringCloudDeploymentId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestSpringCloudDeploymentIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudDeploymentId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_dev_tool_portal.go b/internal/services/springcloud/parse/spring_cloud_dev_tool_portal.go index 98ebd73053ee..7c3df2c9d478 100644 --- a/internal/services/springcloud/parse/spring_cloud_dev_tool_portal.go +++ b/internal/services/springcloud/parse/spring_cloud_dev_tool_portal.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudDevToolPortalID(input string) (*SpringCloudDevToolPortalId, erro } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("Spring"); err != nil { diff --git a/internal/services/springcloud/parse/spring_cloud_dev_tool_portal_test.go b/internal/services/springcloud/parse/spring_cloud_dev_tool_portal_test.go index 0f3dfe31f211..1e522e2e00d5 100644 --- a/internal/services/springcloud/parse/spring_cloud_dev_tool_portal_test.go +++ b/internal/services/springcloud/parse/spring_cloud_dev_tool_portal_test.go @@ -27,7 +27,6 @@ func TestSpringCloudDevToolPortalID(t *testing.T) { Error bool Expected *SpringCloudDevToolPortalId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_gateway.go b/internal/services/springcloud/parse/spring_cloud_gateway.go index b7201b68c3a8..c4d059c064cb 100644 --- a/internal/services/springcloud/parse/spring_cloud_gateway.go +++ b/internal/services/springcloud/parse/spring_cloud_gateway.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudGatewayID(input string) (*SpringCloudGatewayId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudGatewayIDInsensitively(input string) (*SpringCloudGatewayId, err } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_gateway_custom_domain.go b/internal/services/springcloud/parse/spring_cloud_gateway_custom_domain.go index f69928966d74..9e7df818c350 100644 --- a/internal/services/springcloud/parse/spring_cloud_gateway_custom_domain.go +++ b/internal/services/springcloud/parse/spring_cloud_gateway_custom_domain.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SpringCloudGatewayCustomDomainID(input string) (*SpringCloudGatewayCustomDo } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -101,11 +102,11 @@ func SpringCloudGatewayCustomDomainIDInsensitively(input string) (*SpringCloudGa } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_gateway_custom_domain_test.go b/internal/services/springcloud/parse/spring_cloud_gateway_custom_domain_test.go index 2ed75f31a1a1..6a35935a7cf6 100644 --- a/internal/services/springcloud/parse/spring_cloud_gateway_custom_domain_test.go +++ b/internal/services/springcloud/parse/spring_cloud_gateway_custom_domain_test.go @@ -27,7 +27,6 @@ func TestSpringCloudGatewayCustomDomainID(t *testing.T) { Error bool Expected *SpringCloudGatewayCustomDomainId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestSpringCloudGatewayCustomDomainIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudGatewayCustomDomainId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_gateway_route_config.go b/internal/services/springcloud/parse/spring_cloud_gateway_route_config.go index 4b9d6988bdb2..9e52560f329c 100644 --- a/internal/services/springcloud/parse/spring_cloud_gateway_route_config.go +++ b/internal/services/springcloud/parse/spring_cloud_gateway_route_config.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SpringCloudGatewayRouteConfigID(input string) (*SpringCloudGatewayRouteConf } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -101,11 +102,11 @@ func SpringCloudGatewayRouteConfigIDInsensitively(input string) (*SpringCloudGat } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_gateway_route_config_test.go b/internal/services/springcloud/parse/spring_cloud_gateway_route_config_test.go index 1d99a8bbb8dd..540df8977660 100644 --- a/internal/services/springcloud/parse/spring_cloud_gateway_route_config_test.go +++ b/internal/services/springcloud/parse/spring_cloud_gateway_route_config_test.go @@ -27,7 +27,6 @@ func TestSpringCloudGatewayRouteConfigID(t *testing.T) { Error bool Expected *SpringCloudGatewayRouteConfigId }{ - { // empty Input: "", @@ -152,7 +151,6 @@ func TestSpringCloudGatewayRouteConfigIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudGatewayRouteConfigId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_gateway_test.go b/internal/services/springcloud/parse/spring_cloud_gateway_test.go index 315cba5a537c..aaf174d5be71 100644 --- a/internal/services/springcloud/parse/spring_cloud_gateway_test.go +++ b/internal/services/springcloud/parse/spring_cloud_gateway_test.go @@ -27,7 +27,6 @@ func TestSpringCloudGatewayID(t *testing.T) { Error bool Expected *SpringCloudGatewayId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudGatewayIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudGatewayId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_service.go b/internal/services/springcloud/parse/spring_cloud_service.go index fd1f572558b9..914da2ea7d6f 100644 --- a/internal/services/springcloud/parse/spring_cloud_service.go +++ b/internal/services/springcloud/parse/spring_cloud_service.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func SpringCloudServiceID(input string) (*SpringCloudServiceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -89,11 +90,11 @@ func SpringCloudServiceIDInsensitively(input string) (*SpringCloudServiceId, err } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_service_registry.go b/internal/services/springcloud/parse/spring_cloud_service_registry.go index 14945ae5bf68..f04437066414 100644 --- a/internal/services/springcloud/parse/spring_cloud_service_registry.go +++ b/internal/services/springcloud/parse/spring_cloud_service_registry.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudServiceRegistryID(input string) (*SpringCloudServiceRegistryId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudServiceRegistryIDInsensitively(input string) (*SpringCloudServic } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_service_registry_test.go b/internal/services/springcloud/parse/spring_cloud_service_registry_test.go index a7764930bfbc..0d9b62966cd7 100644 --- a/internal/services/springcloud/parse/spring_cloud_service_registry_test.go +++ b/internal/services/springcloud/parse/spring_cloud_service_registry_test.go @@ -27,7 +27,6 @@ func TestSpringCloudServiceRegistryID(t *testing.T) { Error bool Expected *SpringCloudServiceRegistryId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudServiceRegistryIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudServiceRegistryId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_service_test.go b/internal/services/springcloud/parse/spring_cloud_service_test.go index 4faf56de5d43..3ea2f7a76eed 100644 --- a/internal/services/springcloud/parse/spring_cloud_service_test.go +++ b/internal/services/springcloud/parse/spring_cloud_service_test.go @@ -27,7 +27,6 @@ func TestSpringCloudServiceID(t *testing.T) { Error bool Expected *SpringCloudServiceId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestSpringCloudServiceIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudServiceId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/parse/spring_cloud_storage.go b/internal/services/springcloud/parse/spring_cloud_storage.go index d6334998d0ae..26c279202b05 100644 --- a/internal/services/springcloud/parse/spring_cloud_storage.go +++ b/internal/services/springcloud/parse/spring_cloud_storage.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SpringCloudStorageID(input string) (*SpringCloudStorageId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SpringName, err = id.PopSegment("spring"); err != nil { @@ -95,11 +96,11 @@ func SpringCloudStorageIDInsensitively(input string) (*SpringCloudStorageId, err } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'spring' segment diff --git a/internal/services/springcloud/parse/spring_cloud_storage_test.go b/internal/services/springcloud/parse/spring_cloud_storage_test.go index 7cc92776f087..3d43596efc1a 100644 --- a/internal/services/springcloud/parse/spring_cloud_storage_test.go +++ b/internal/services/springcloud/parse/spring_cloud_storage_test.go @@ -27,7 +27,6 @@ func TestSpringCloudStorageID(t *testing.T) { Error bool Expected *SpringCloudStorageId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSpringCloudStorageIDInsensitively(t *testing.T) { Error bool Expected *SpringCloudStorageId }{ - { // empty Input: "", diff --git a/internal/services/springcloud/spring_cloud_accelerator_resource.go b/internal/services/springcloud/spring_cloud_accelerator_resource.go index 3e5fd9bd1798..ece29c142d78 100644 --- a/internal/services/springcloud/spring_cloud_accelerator_resource.go +++ b/internal/services/springcloud/spring_cloud_accelerator_resource.go @@ -27,8 +27,10 @@ type SpringCloudAcceleratorModel struct { type SpringCloudAcceleratorResource struct{} -var _ sdk.Resource = SpringCloudAcceleratorResource{} -var _ sdk.ResourceWithStateMigration = SpringCloudAcceleratorResource{} +var ( + _ sdk.Resource = SpringCloudAcceleratorResource{} + _ sdk.ResourceWithStateMigration = SpringCloudAcceleratorResource{} +) func (s SpringCloudAcceleratorResource) ResourceType() string { return "azurerm_spring_cloud_accelerator" diff --git a/internal/services/springcloud/spring_cloud_api_portal_custom_domain_resource.go b/internal/services/springcloud/spring_cloud_api_portal_custom_domain_resource.go index afbc9075658f..2288d8e72733 100644 --- a/internal/services/springcloud/spring_cloud_api_portal_custom_domain_resource.go +++ b/internal/services/springcloud/spring_cloud_api_portal_custom_domain_resource.go @@ -64,6 +64,7 @@ func resourceSpringCloudAPIPortalCustomDomain() *pluginsdk.Resource { }, } } + func resourceSpringCloudAPIPortalCustomDomainCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { subscriptionId := meta.(*clients.Client).Account.SubscriptionId client := meta.(*clients.Client).AppPlatform.APIPortalCustomDomainClient diff --git a/internal/services/springcloud/spring_cloud_api_portal_resource.go b/internal/services/springcloud/spring_cloud_api_portal_resource.go index 9a81e48603f0..6e1f1e2fd47b 100644 --- a/internal/services/springcloud/spring_cloud_api_portal_resource.go +++ b/internal/services/springcloud/spring_cloud_api_portal_resource.go @@ -39,8 +39,10 @@ type ApiPortalSsoModel struct { type SpringCloudAPIPortalResource struct{} -var _ sdk.ResourceWithUpdate = SpringCloudAPIPortalResource{} -var _ sdk.ResourceWithStateMigration = SpringCloudAPIPortalResource{} +var ( + _ sdk.ResourceWithUpdate = SpringCloudAPIPortalResource{} + _ sdk.ResourceWithStateMigration = SpringCloudAPIPortalResource{} +) func (s SpringCloudAPIPortalResource) ResourceType() string { return "azurerm_spring_cloud_api_portal" diff --git a/internal/services/springcloud/spring_cloud_app_mysql_association_resource.go b/internal/services/springcloud/spring_cloud_app_mysql_association_resource.go index a392434b7d87..239afbc722b9 100644 --- a/internal/services/springcloud/spring_cloud_app_mysql_association_resource.go +++ b/internal/services/springcloud/spring_cloud_app_mysql_association_resource.go @@ -9,7 +9,7 @@ import ( "time" "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers" - flexibleServers "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" + flexibleServers "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/springcloud/migration" diff --git a/internal/services/springcloud/spring_cloud_application_insights_application_performance_monitoring_resource.go b/internal/services/springcloud/spring_cloud_application_insights_application_performance_monitoring_resource.go index a8d3a049a2a0..1304a92c184c 100644 --- a/internal/services/springcloud/spring_cloud_application_insights_application_performance_monitoring_resource.go +++ b/internal/services/springcloud/spring_cloud_application_insights_application_performance_monitoring_resource.go @@ -309,7 +309,6 @@ func (s SpringCloudApplicationInsightsApplicationPerformanceMonitoringResource) state.SamplingPercentage = samplingPercentage } } - } } diff --git a/internal/services/springcloud/spring_cloud_build_pack_binding_resource.go b/internal/services/springcloud/spring_cloud_build_pack_binding_resource.go index 7143a7a2826b..4e0a955e430b 100644 --- a/internal/services/springcloud/spring_cloud_build_pack_binding_resource.go +++ b/internal/services/springcloud/spring_cloud_build_pack_binding_resource.go @@ -100,6 +100,7 @@ func resourceSpringCloudBuildPackBinding() *pluginsdk.Resource { }, } } + func resourceSpringCloudBuildPackBindingCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { subscriptionId := meta.(*clients.Client).Account.SubscriptionId client := meta.(*clients.Client).AppPlatform.BuildPackBindingClient diff --git a/internal/services/springcloud/spring_cloud_builder_resource.go b/internal/services/springcloud/spring_cloud_builder_resource.go index c7ee9d1d5bd5..5fb904a8347d 100644 --- a/internal/services/springcloud/spring_cloud_builder_resource.go +++ b/internal/services/springcloud/spring_cloud_builder_resource.go @@ -106,6 +106,7 @@ func resourceSpringCloudBuildServiceBuilder() *pluginsdk.Resource { }, } } + func resourceSpringCloudBuildServiceBuilderCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { subscriptionId := meta.(*clients.Client).Account.SubscriptionId client := meta.(*clients.Client).AppPlatform.BuildServiceBuilderClient diff --git a/internal/services/springcloud/spring_cloud_configuration_service_resource.go b/internal/services/springcloud/spring_cloud_configuration_service_resource.go index 4cdd9daa2b8f..433bf6e136cf 100644 --- a/internal/services/springcloud/spring_cloud_configuration_service_resource.go +++ b/internal/services/springcloud/spring_cloud_configuration_service_resource.go @@ -45,8 +45,10 @@ type SpringCloudRepositoryModel struct { type SpringCloudConfigurationServiceResource struct{} -var _ sdk.ResourceWithUpdate = SpringCloudConfigurationServiceResource{} -var _ sdk.ResourceWithStateMigration = SpringCloudConfigurationServiceResource{} +var ( + _ sdk.ResourceWithUpdate = SpringCloudConfigurationServiceResource{} + _ sdk.ResourceWithStateMigration = SpringCloudConfigurationServiceResource{} +) func (s SpringCloudConfigurationServiceResource) ResourceType() string { return "azurerm_spring_cloud_configuration_service" @@ -361,6 +363,7 @@ func (s SpringCloudConfigurationServiceResource) Delete() sdk.ResourceFunc { }, } } + func expandConfigurationServiceConfigurationServiceGitRepositoryArray(input []SpringCloudRepositoryModel) *[]appplatform.ConfigurationServiceGitRepository { if len(input) == 0 { return nil @@ -400,7 +403,6 @@ func flattenConfigurationServiceConfigurationServiceGitRepositoryArray(input *[] } for _, item := range *input { - var strictHostKeyChecking bool if item.StrictHostKeyChecking != nil { strictHostKeyChecking = *item.StrictHostKeyChecking diff --git a/internal/services/springcloud/spring_cloud_customized_accelerator_resource.go b/internal/services/springcloud/spring_cloud_customized_accelerator_resource.go index f3f67672bdcf..332cb1fa760f 100644 --- a/internal/services/springcloud/spring_cloud_customized_accelerator_resource.go +++ b/internal/services/springcloud/spring_cloud_customized_accelerator_resource.go @@ -57,8 +57,10 @@ type SshAuthModel struct { type SpringCloudCustomizedAcceleratorResource struct{} -var _ sdk.ResourceWithUpdate = SpringCloudCustomizedAcceleratorResource{} -var _ sdk.ResourceWithStateMigration = SpringCloudCustomizedAcceleratorResource{} +var ( + _ sdk.ResourceWithUpdate = SpringCloudCustomizedAcceleratorResource{} + _ sdk.ResourceWithStateMigration = SpringCloudCustomizedAcceleratorResource{} +) func (s SpringCloudCustomizedAcceleratorResource) ResourceType() string { return "azurerm_spring_cloud_customized_accelerator" diff --git a/internal/services/springcloud/spring_cloud_gateway_custom_domain_resource.go b/internal/services/springcloud/spring_cloud_gateway_custom_domain_resource.go index 2ecdeb5f699f..4b35d56a1ef1 100644 --- a/internal/services/springcloud/spring_cloud_gateway_custom_domain_resource.go +++ b/internal/services/springcloud/spring_cloud_gateway_custom_domain_resource.go @@ -66,6 +66,7 @@ func resourceSpringCloudGatewayCustomDomain() *pluginsdk.Resource { }, } } + func resourceSpringCloudGatewayCustomDomainCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { subscriptionId := meta.(*clients.Client).Account.SubscriptionId client := meta.(*clients.Client).AppPlatform.GatewayCustomDomainClient diff --git a/internal/services/springcloud/spring_cloud_gateway_resource.go b/internal/services/springcloud/spring_cloud_gateway_resource.go index bc73ffaa8655..8d44361c0dd7 100644 --- a/internal/services/springcloud/spring_cloud_gateway_resource.go +++ b/internal/services/springcloud/spring_cloud_gateway_resource.go @@ -80,8 +80,10 @@ type ResponseCacheModel struct { type SpringCloudGatewayResource struct{} -var _ sdk.ResourceWithUpdate = SpringCloudGatewayResource{} -var _ sdk.ResourceWithStateMigration = SpringCloudGatewayResource{} +var ( + _ sdk.ResourceWithUpdate = SpringCloudGatewayResource{} + _ sdk.ResourceWithStateMigration = SpringCloudGatewayResource{} +) func (s SpringCloudGatewayResource) ResourceType() string { return "azurerm_spring_cloud_gateway" @@ -593,6 +595,7 @@ func (s SpringCloudGatewayResource) Update() sdk.ResourceFunc { }, } } + func (s SpringCloudGatewayResource) Read() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 5 * time.Minute, diff --git a/internal/services/springcloud/spring_cloud_gateway_route_config_resource_test.go b/internal/services/springcloud/spring_cloud_gateway_route_config_resource_test.go index 267caabccd7a..7c317b31f4e5 100644 --- a/internal/services/springcloud/spring_cloud_gateway_route_config_resource_test.go +++ b/internal/services/springcloud/spring_cloud_gateway_route_config_resource_test.go @@ -98,7 +98,8 @@ func TestAccSpringCloudGatewayRouteConfig_update(t *testing.T) { check.That(data.ResourceName).ExistsInAzure(r), ), }, - data.ImportStep(), { + data.ImportStep(), + { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), diff --git a/internal/services/springcloud/spring_cloud_storage_resource.go b/internal/services/springcloud/spring_cloud_storage_resource.go index effddefc1d43..1fc87430b552 100644 --- a/internal/services/springcloud/spring_cloud_storage_resource.go +++ b/internal/services/springcloud/spring_cloud_storage_resource.go @@ -73,6 +73,7 @@ func resourceSpringCloudStorage() *pluginsdk.Resource { }, } } + func resourceSpringCloudStorageCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { subscriptionId := meta.(*clients.Client).Account.SubscriptionId client := meta.(*clients.Client).AppPlatform.StoragesClient diff --git a/internal/services/springcloud/validate/spring_cloud_accelerator_id_test.go b/internal/services/springcloud/validate/spring_cloud_accelerator_id_test.go index 487ffa262269..a0bc8128de88 100644 --- a/internal/services/springcloud/validate/spring_cloud_accelerator_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_accelerator_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudAcceleratorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_api_portal_custom_domain_id_test.go b/internal/services/springcloud/validate/spring_cloud_api_portal_custom_domain_id_test.go index c3e0d213c11e..6e6819976b72 100644 --- a/internal/services/springcloud/validate/spring_cloud_api_portal_custom_domain_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_api_portal_custom_domain_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudAPIPortalCustomDomainID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_api_portal_id_test.go b/internal/services/springcloud/validate/spring_cloud_api_portal_id_test.go index 52a2742fc856..3e3dfada8ae4 100644 --- a/internal/services/springcloud/validate/spring_cloud_api_portal_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_api_portal_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudAPIPortalID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_app_association_id_test.go b/internal/services/springcloud/validate/spring_cloud_app_association_id_test.go index bd40fc2e7160..b5251474f5db 100644 --- a/internal/services/springcloud/validate/spring_cloud_app_association_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_app_association_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudAppAssociationID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_app_id_test.go b/internal/services/springcloud/validate/spring_cloud_app_id_test.go index 6e89bd9b9847..895e0ef6408a 100644 --- a/internal/services/springcloud/validate/spring_cloud_app_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_app_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudAppID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_application_live_view_id_test.go b/internal/services/springcloud/validate/spring_cloud_application_live_view_id_test.go index 3aed060ef15c..d523b5485ee6 100644 --- a/internal/services/springcloud/validate/spring_cloud_application_live_view_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_application_live_view_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudApplicationLiveViewID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_build_pack_binding_id_test.go b/internal/services/springcloud/validate/spring_cloud_build_pack_binding_id_test.go index 4322d8344e01..5e66109d0186 100644 --- a/internal/services/springcloud/validate/spring_cloud_build_pack_binding_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_build_pack_binding_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudBuildPackBindingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_build_service_builder_id_test.go b/internal/services/springcloud/validate/spring_cloud_build_service_builder_id_test.go index 091eee8b9fd8..c9eea902e607 100644 --- a/internal/services/springcloud/validate/spring_cloud_build_service_builder_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_build_service_builder_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudBuildServiceBuilderID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_certificate_id_test.go b/internal/services/springcloud/validate/spring_cloud_certificate_id_test.go index d0ab49d9633f..e7c3d9ffa738 100644 --- a/internal/services/springcloud/validate/spring_cloud_certificate_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_certificate_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_configuration_service_id_test.go b/internal/services/springcloud/validate/spring_cloud_configuration_service_id_test.go index 5a21655255a3..1fadc0504c8c 100644 --- a/internal/services/springcloud/validate/spring_cloud_configuration_service_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_configuration_service_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudConfigurationServiceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_container_registry_id_test.go b/internal/services/springcloud/validate/spring_cloud_container_registry_id_test.go index 2e3558634c26..29215abd77fe 100644 --- a/internal/services/springcloud/validate/spring_cloud_container_registry_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_container_registry_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudContainerRegistryID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_custom_domain_id_test.go b/internal/services/springcloud/validate/spring_cloud_custom_domain_id_test.go index 05c5ca4d4496..0f25a91da39d 100644 --- a/internal/services/springcloud/validate/spring_cloud_custom_domain_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_custom_domain_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudCustomDomainID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_customized_accelerator_id_test.go b/internal/services/springcloud/validate/spring_cloud_customized_accelerator_id_test.go index 28de96b8f1e9..4217d6b469e9 100644 --- a/internal/services/springcloud/validate/spring_cloud_customized_accelerator_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_customized_accelerator_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudCustomizedAcceleratorID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_deployment_id_test.go b/internal/services/springcloud/validate/spring_cloud_deployment_id_test.go index a8b5ef6c3dc0..db03abbdfb01 100644 --- a/internal/services/springcloud/validate/spring_cloud_deployment_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_deployment_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudDeploymentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_dev_tool_portal_id_test.go b/internal/services/springcloud/validate/spring_cloud_dev_tool_portal_id_test.go index ffdb33126697..ae333be56824 100644 --- a/internal/services/springcloud/validate/spring_cloud_dev_tool_portal_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_dev_tool_portal_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudDevToolPortalID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_gateway_custom_domain_id_test.go b/internal/services/springcloud/validate/spring_cloud_gateway_custom_domain_id_test.go index f3fc10ea6845..62653bce7ec3 100644 --- a/internal/services/springcloud/validate/spring_cloud_gateway_custom_domain_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_gateway_custom_domain_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudGatewayCustomDomainID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_gateway_id_test.go b/internal/services/springcloud/validate/spring_cloud_gateway_id_test.go index 9fcbe45428bb..c30135c7383c 100644 --- a/internal/services/springcloud/validate/spring_cloud_gateway_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_gateway_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudGatewayID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_gateway_route_config_id_test.go b/internal/services/springcloud/validate/spring_cloud_gateway_route_config_id_test.go index c96ad783fe71..8dde1eae791c 100644 --- a/internal/services/springcloud/validate/spring_cloud_gateway_route_config_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_gateway_route_config_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudGatewayRouteConfigID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_service_id_test.go b/internal/services/springcloud/validate/spring_cloud_service_id_test.go index 7187a94e9942..767ade805a7a 100644 --- a/internal/services/springcloud/validate/spring_cloud_service_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_service_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudServiceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_service_registry_id_test.go b/internal/services/springcloud/validate/spring_cloud_service_registry_id_test.go index 77fb29476ad2..986e4f0de16f 100644 --- a/internal/services/springcloud/validate/spring_cloud_service_registry_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_service_registry_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudServiceRegistryID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/springcloud/validate/spring_cloud_storage_id_test.go b/internal/services/springcloud/validate/spring_cloud_storage_id_test.go index ca0d5cb91135..d698401d863e 100644 --- a/internal/services/springcloud/validate/spring_cloud_storage_id_test.go +++ b/internal/services/springcloud/validate/spring_cloud_storage_id_test.go @@ -12,7 +12,6 @@ func TestSpringCloudStorageID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/storage/blobs.go b/internal/services/storage/blobs.go index 95abec03616f..c5608518eb32 100644 --- a/internal/services/storage/blobs.go +++ b/internal/services/storage/blobs.go @@ -8,6 +8,7 @@ import ( "context" "encoding/base64" "encoding/hex" + "errors" "fmt" "io" "os" @@ -44,11 +45,11 @@ func (sbu BlobUpload) Create(ctx context.Context) error { if blobType == "append" { if sbu.Source != "" || sbu.SourceContent != "" || sbu.SourceUri != "" { - return fmt.Errorf("A source cannot be specified for an Append blob") + return errors.New("A source cannot be specified for an Append blob") } if sbu.ContentMD5 != "" { - return fmt.Errorf("`content_md5` cannot be specified for an Append blob") + return errors.New("`content_md5` cannot be specified for an Append blob") } return sbu.createEmptyAppendBlob(ctx) @@ -71,7 +72,7 @@ func (sbu BlobUpload) Create(ctx context.Context) error { if blobType == "page" { if sbu.ContentMD5 != "" { - return fmt.Errorf("`content_md5` cannot be specified for a Page blob") + return errors.New("`content_md5` cannot be specified for a Page blob") } if sbu.SourceUri != "" { return sbu.copy(ctx) @@ -86,7 +87,7 @@ func (sbu BlobUpload) Create(ctx context.Context) error { return sbu.createEmptyPageBlob(ctx) } - return fmt.Errorf("Unsupported Blob Type: %q", blobType) + return fmt.Errorf("unsupported Blob Type: %q", blobType) } func (sbu BlobUpload) copy(ctx context.Context) error { @@ -121,7 +122,7 @@ func (sbu BlobUpload) createEmptyAppendBlob(ctx context.Context) error { func (sbu BlobUpload) createEmptyBlockBlob(ctx context.Context) error { if sbu.ContentMD5 != "" { - return fmt.Errorf("`content_md5` cannot be specified for empty Block blobs") + return errors.New("`content_md5` cannot be specified for empty Block blobs") } input := blobs.PutBlockBlobInput{ @@ -180,7 +181,7 @@ func (sbu BlobUpload) uploadBlockBlob(ctx context.Context) error { func (sbu BlobUpload) createEmptyPageBlob(ctx context.Context) error { if sbu.Size == 0 { - return fmt.Errorf("`size` cannot be zero for a page blob") + return errors.New("`size` cannot be zero for a page blob") } input := blobs.PutPageBlobInput{ @@ -216,7 +217,7 @@ func (sbu BlobUpload) uploadPageBlobFromContent(ctx context.Context) error { func (sbu BlobUpload) uploadPageBlob(ctx context.Context) error { if sbu.Size != 0 { - return fmt.Errorf("`size` cannot be set for an uploaded page blob") + return errors.New("`size` cannot be set for an uploaded page blob") } // determine the details about the file @@ -349,7 +350,7 @@ func (sbu BlobUpload) storageBlobPageSplit(file io.ReaderAt, fileSize int64) ([] } } - var pages []storageBlobPage + pages := make([]storageBlobPage, 0, len(nonEmptyRanges)) for _, nonEmptyRange := range nonEmptyRanges { pages = append(pages, storageBlobPage{ offset: nonEmptyRange.offset, diff --git a/internal/services/storage/custompollers/data_plane_blob_containers_availability_poller.go b/internal/services/storage/custompollers/data_plane_blob_containers_availability_poller.go index 4d2426b5b069..fb0cf8236555 100644 --- a/internal/services/storage/custompollers/data_plane_blob_containers_availability_poller.go +++ b/internal/services/storage/custompollers/data_plane_blob_containers_availability_poller.go @@ -35,6 +35,11 @@ func NewDataPlaneBlobContainersAvailabilityPoller(ctx context.Context, client *s func (d *DataPlaneBlobContainersAvailabilityPoller) Poll(ctx context.Context) (*pollers.PollResult, error) { resp, err := d.client.GetServiceProperties(ctx, d.accountName) if err != nil { + if resp.HttpResponse == nil { + return nil, pollers.PollingDroppedConnectionError{ + Message: err.Error(), + } + } if !response.WasNotFound(resp.HttpResponse) { return nil, pollers.PollingFailedError{ Message: err.Error(), diff --git a/internal/services/storage/custompollers/data_plane_queues_availability_poller.go b/internal/services/storage/custompollers/data_plane_queues_availability_poller.go index 5d2257b53033..ac589bd611f1 100644 --- a/internal/services/storage/custompollers/data_plane_queues_availability_poller.go +++ b/internal/services/storage/custompollers/data_plane_queues_availability_poller.go @@ -5,6 +5,7 @@ package custompollers import ( "context" + "errors" "fmt" "time" @@ -35,6 +36,10 @@ func NewDataPlaneQueuesAvailabilityPoller(ctx context.Context, client *storageCl func (d *DataPlaneQueuesAvailabilityPoller) Poll(ctx context.Context) (*pollers.PollResult, error) { resp, err := d.client.GetServiceProperties(ctx) + var e pollers.PollingDroppedConnectionError + if errors.As(err, &e) { + return nil, err + } if err != nil { return nil, pollers.PollingFailedError{ Message: err.Error(), diff --git a/internal/services/storage/custompollers/data_plane_static_website_availability_poller.go b/internal/services/storage/custompollers/data_plane_static_website_availability_poller.go index c13667a11c70..9f4f4f718c2e 100644 --- a/internal/services/storage/custompollers/data_plane_static_website_availability_poller.go +++ b/internal/services/storage/custompollers/data_plane_static_website_availability_poller.go @@ -39,6 +39,11 @@ func (d *DataPlaneStaticWebsiteAvailabilityPoller) Poll(ctx context.Context) (*p resp, err := d.client.GetServiceProperties(ctx, d.storageAccountId.StorageAccountName) if err != nil { if !response.WasNotFound(resp.HttpResponse) { + if resp.HttpResponse == nil { + return nil, pollers.PollingDroppedConnectionError{ + Message: err.Error(), + } + } return nil, pollers.PollingFailedError{ Message: err.Error(), HttpResponse: &client.Response{ diff --git a/internal/services/storage/custompollers/storage_share_create_poller.go b/internal/services/storage/custompollers/storage_share_create_poller.go new file mode 100644 index 000000000000..99876e96d9ba --- /dev/null +++ b/internal/services/storage/custompollers/storage_share_create_poller.go @@ -0,0 +1,55 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package custompollers + +import ( + "context" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" +) + +var _ pollers.PollerType = storageShareCreatePoller{} + +type storageShareCreatePoller struct { + id fileshares.ShareId + client *fileshares.FileSharesClient + payload fileshares.FileShare +} + +func NewStorageShareCreatePoller(client *fileshares.FileSharesClient, id fileshares.ShareId, payload fileshares.FileShare) *storageShareCreatePoller { + return &storageShareCreatePoller{ + id: id, + client: client, + payload: payload, + } +} + +func (p storageShareCreatePoller) Poll(ctx context.Context) (*pollers.PollResult, error) { + // Note - Whilst this is an antipattern for the Provider, the API provides no way currently to poll for deletion + // to ensure it's removed. To support rapid delete then re-creation we check for 409's that indicate the resource + // is still being removed. + resp, err := p.client.Create(ctx, p.id, p.payload, fileshares.DefaultCreateOperationOptions()) + if err != nil { + if response.WasConflict(resp.HttpResponse) { + return &pollers.PollResult{ + PollInterval: 5 * time.Second, + Status: pollers.PollingStatusInProgress, + }, nil + } + + return &pollers.PollResult{ + HttpResponse: nil, + PollInterval: 5 * time.Second, + Status: pollers.PollingStatusFailed, + }, err + } + + return &pollers.PollResult{ + PollInterval: 5, + Status: pollers.PollingStatusSucceeded, + }, nil +} diff --git a/internal/services/storage/migration/account.go b/internal/services/storage/migration/account.go index c684f73021ef..6b8810dd2b2f 100644 --- a/internal/services/storage/migration/account.go +++ b/internal/services/storage/migration/account.go @@ -843,7 +843,7 @@ func accountSchemaForV2() map[string]*pluginsdk.Schema { }, }, - //lintignore:XS003 + // lintignore:XS003 "static_website": { Type: pluginsdk.TypeList, Optional: true, diff --git a/internal/services/storage/migration/account_v3_to_v4.go b/internal/services/storage/migration/account_v3_to_v4.go index 8fd9dc23854e..217bb81fe5b7 100644 --- a/internal/services/storage/migration/account_v3_to_v4.go +++ b/internal/services/storage/migration/account_v3_to_v4.go @@ -727,7 +727,6 @@ func (AccountV3ToV4) Schema() map[string]*pluginsdk.Schema { func (AccountV3ToV4) UpgradeFunc() pluginsdk.StateUpgraderFunc { return func(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error) { - if _, ok := rawState["cross_tenant_replication_enabled"]; !ok { rawState["cross_tenant_replication_enabled"] = true } diff --git a/internal/services/storage/migration/blob_inventory_policy_v0_to_v1.go b/internal/services/storage/migration/blob_inventory_policy_v0_to_v1.go index d4079fa3a143..1578565ada96 100644 --- a/internal/services/storage/migration/blob_inventory_policy_v0_to_v1.go +++ b/internal/services/storage/migration/blob_inventory_policy_v0_to_v1.go @@ -11,8 +11,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) -type BlobInventoryPolicyV0ToV1 struct { -} +type BlobInventoryPolicyV0ToV1 struct{} func (BlobInventoryPolicyV0ToV1) Schema() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ diff --git a/internal/services/storage/migration/table.go b/internal/services/storage/migration/table.go index fb6036aabaa0..cbe69d0b6348 100644 --- a/internal/services/storage/migration/table.go +++ b/internal/services/storage/migration/table.go @@ -68,7 +68,7 @@ func (TableV1ToV2) UpgradeFunc() pluginsdk.StateUpgraderFunc { } } -// the schema schema was used for both V0 and V1 +// the schema was used for both V0 and V1 func tableSchemaV0AndV1() map[string]*pluginsdk.Schema { return map[string]*pluginsdk.Schema{ "name": { diff --git a/internal/services/storage/parse/storage_account_default_blob.go b/internal/services/storage/parse/storage_account_default_blob.go index 1b2755f9bf28..ea09567c425a 100644 --- a/internal/services/storage/parse/storage_account_default_blob.go +++ b/internal/services/storage/parse/storage_account_default_blob.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func StorageAccountDefaultBlobID(input string) (*StorageAccountDefaultBlobId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.StorageAccountName, err = id.PopSegment("storageAccounts"); err != nil { diff --git a/internal/services/storage/parse/storage_account_default_blob_test.go b/internal/services/storage/parse/storage_account_default_blob_test.go index e3783cfc37b6..0f9584e31dbd 100644 --- a/internal/services/storage/parse/storage_account_default_blob_test.go +++ b/internal/services/storage/parse/storage_account_default_blob_test.go @@ -27,7 +27,6 @@ func TestStorageAccountDefaultBlobID(t *testing.T) { Error bool Expected *StorageAccountDefaultBlobId }{ - { // empty Input: "", diff --git a/internal/services/storage/parse/storage_account_management_policy.go b/internal/services/storage/parse/storage_account_management_policy.go index 8aa03e6c6c96..f85a437cdf33 100644 --- a/internal/services/storage/parse/storage_account_management_policy.go +++ b/internal/services/storage/parse/storage_account_management_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func StorageAccountManagementPolicyID(input string) (*StorageAccountManagementPo } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.StorageAccountName, err = id.PopSegment("storageAccounts"); err != nil { diff --git a/internal/services/storage/parse/storage_account_management_policy_test.go b/internal/services/storage/parse/storage_account_management_policy_test.go index ca52b2635161..af070d86e527 100644 --- a/internal/services/storage/parse/storage_account_management_policy_test.go +++ b/internal/services/storage/parse/storage_account_management_policy_test.go @@ -27,7 +27,6 @@ func TestStorageAccountManagementPolicyID(t *testing.T) { Error bool Expected *StorageAccountManagementPolicyId }{ - { // empty Input: "", diff --git a/internal/services/storage/parse/storage_container_immutability_policy.go b/internal/services/storage/parse/storage_container_immutability_policy.go index 78c6126924c2..273343c3feae 100644 --- a/internal/services/storage/parse/storage_container_immutability_policy.go +++ b/internal/services/storage/parse/storage_container_immutability_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func StorageContainerImmutabilityPolicyID(input string) (*StorageContainerImmuta } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.StorageAccountName, err = id.PopSegment("storageAccounts"); err != nil { diff --git a/internal/services/storage/parse/storage_container_immutability_policy_test.go b/internal/services/storage/parse/storage_container_immutability_policy_test.go index 209f3694b40d..f63a5082431d 100644 --- a/internal/services/storage/parse/storage_container_immutability_policy_test.go +++ b/internal/services/storage/parse/storage_container_immutability_policy_test.go @@ -27,7 +27,6 @@ func TestStorageContainerImmutabilityPolicyID(t *testing.T) { Error bool Expected *StorageContainerImmutabilityPolicyId }{ - { // empty Input: "", diff --git a/internal/services/storage/parse/storage_queue_resource_manager.go b/internal/services/storage/parse/storage_queue_resource_manager.go index 16eee164450c..0bf2d49648a6 100644 --- a/internal/services/storage/parse/storage_queue_resource_manager.go +++ b/internal/services/storage/parse/storage_queue_resource_manager.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func StorageQueueResourceManagerID(input string) (*StorageQueueResourceManagerId } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.StorageAccountName, err = id.PopSegment("storageAccounts"); err != nil { diff --git a/internal/services/storage/parse/storage_queue_resource_manager_test.go b/internal/services/storage/parse/storage_queue_resource_manager_test.go index f356832d991e..0eba53dd9c88 100644 --- a/internal/services/storage/parse/storage_queue_resource_manager_test.go +++ b/internal/services/storage/parse/storage_queue_resource_manager_test.go @@ -27,7 +27,6 @@ func TestStorageQueueResourceManagerID(t *testing.T) { Error bool Expected *StorageQueueResourceManagerId }{ - { // empty Input: "", diff --git a/internal/services/storage/parse/storage_share_resource_manager.go b/internal/services/storage/parse/storage_share_resource_manager.go index 7e7f2243b7e3..081762b8c2c4 100644 --- a/internal/services/storage/parse/storage_share_resource_manager.go +++ b/internal/services/storage/parse/storage_share_resource_manager.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func StorageShareResourceManagerID(input string) (*StorageShareResourceManagerId } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.StorageAccountName, err = id.PopSegment("storageAccounts"); err != nil { diff --git a/internal/services/storage/parse/storage_share_resource_manager_test.go b/internal/services/storage/parse/storage_share_resource_manager_test.go index 2e74c2339f9b..9f4eb8af7b67 100644 --- a/internal/services/storage/parse/storage_share_resource_manager_test.go +++ b/internal/services/storage/parse/storage_share_resource_manager_test.go @@ -27,7 +27,6 @@ func TestStorageShareResourceManagerID(t *testing.T) { Error bool Expected *StorageShareResourceManagerId }{ - { // empty Input: "", diff --git a/internal/services/storage/parse/storage_table_entities.go b/internal/services/storage/parse/storage_table_entities.go index 5d4fa0caf755..f3f3d5dc810c 100644 --- a/internal/services/storage/parse/storage_table_entities.go +++ b/internal/services/storage/parse/storage_table_entities.go @@ -4,7 +4,7 @@ package parse import ( - "crypto/sha1" + "crypto/sha1" // nolint: gosec only used for hashing and the API expects sha1 "encoding/hex" "fmt" "strings" diff --git a/internal/services/storage/parse/storage_table_resource_manager.go b/internal/services/storage/parse/storage_table_resource_manager.go index ee561a4c604d..608f8a157202 100644 --- a/internal/services/storage/parse/storage_table_resource_manager.go +++ b/internal/services/storage/parse/storage_table_resource_manager.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func StorageTableResourceManagerID(input string) (*StorageTableResourceManagerId } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.StorageAccountName, err = id.PopSegment("storageAccounts"); err != nil { diff --git a/internal/services/storage/parse/storage_table_resource_manager_test.go b/internal/services/storage/parse/storage_table_resource_manager_test.go index 1fb9fffe8215..0606fc26c35f 100644 --- a/internal/services/storage/parse/storage_table_resource_manager_test.go +++ b/internal/services/storage/parse/storage_table_resource_manager_test.go @@ -27,7 +27,6 @@ func TestStorageTableResourceManagerID(t *testing.T) { Error bool Expected *StorageTableResourceManagerId }{ - { // empty Input: "", diff --git a/internal/services/storage/registration.go b/internal/services/storage/registration.go index 1af5be1cc41f..eccf0480f205 100644 --- a/internal/services/storage/registration.go +++ b/internal/services/storage/registration.go @@ -82,6 +82,8 @@ func (r Registration) DataSources() []sdk.DataSource { func (r Registration) Resources() []sdk.Resource { return []sdk.Resource{ + AccountQueuePropertiesResource{}, + AccountStaticWebsiteResource{}, LocalUserResource{}, StorageContainerImmutabilityPolicyResource{}, SyncServerEndpointResource{}, diff --git a/internal/services/storage/shim/queues_data_plane.go b/internal/services/storage/shim/queues_data_plane.go index 8b52b1e9d068..9c9f67796f9e 100644 --- a/internal/services/storage/shim/queues_data_plane.go +++ b/internal/services/storage/shim/queues_data_plane.go @@ -8,6 +8,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/queue/queues" ) @@ -62,6 +63,11 @@ func (w DataPlaneStorageQueueWrapper) Get(ctx context.Context, queueName string) func (w DataPlaneStorageQueueWrapper) GetServiceProperties(ctx context.Context) (*queues.StorageServiceProperties, error) { serviceProps, err := w.client.GetServiceProperties(ctx) if err != nil { + if serviceProps.HttpResponse == nil { + return nil, pollers.PollingDroppedConnectionError{ + Message: err.Error(), + } + } if response.WasNotFound(serviceProps.HttpResponse) { return nil, nil } diff --git a/internal/services/storage/shim/shares_data_plane.go b/internal/services/storage/shim/shares_data_plane.go index a251059fd1b3..1ed00bbd05f9 100644 --- a/internal/services/storage/shim/shares_data_plane.go +++ b/internal/services/storage/shim/shares_data_plane.go @@ -9,6 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/file/shares" ) @@ -51,6 +52,11 @@ func (w DataPlaneStorageShareWrapper) Exists(ctx context.Context, shareName stri func (w DataPlaneStorageShareWrapper) Get(ctx context.Context, shareName string) (*StorageShareProperties, error) { props, err := w.client.GetProperties(ctx, shareName) if err != nil { + if props.HttpResponse == nil { + return nil, pollers.PollingDroppedConnectionError{ + Message: err.Error(), + } + } if response.WasNotFound(props.HttpResponse) { return nil, nil } diff --git a/internal/services/storage/storage_account_customer_managed_key_resource.go b/internal/services/storage/storage_account_customer_managed_key_resource.go index 729ed17f0bfb..f6aa83f51ca7 100644 --- a/internal/services/storage/storage_account_customer_managed_key_resource.go +++ b/internal/services/storage/storage_account_customer_managed_key_resource.go @@ -11,11 +11,9 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms" "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/validate" @@ -101,13 +99,6 @@ func resourceStorageAccountCustomerManagedKey() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["key_vault_id"].ValidateFunc = validation.Any( - commonids.ValidateKeyVaultID, - managedhsms.ValidateManagedHSMID, - ) - } - return resource } diff --git a/internal/services/storage/storage_account_data_plane_helpers.go b/internal/services/storage/storage_account_data_plane_helpers.go index 5230c8574878..db974e3a51df 100644 --- a/internal/services/storage/storage_account_data_plane_helpers.go +++ b/internal/services/storage/storage_account_data_plane_helpers.go @@ -5,8 +5,10 @@ package storage import ( "context" + "errors" "fmt" "log" + "regexp" "slices" "time" @@ -64,8 +66,10 @@ func waitForDataPlaneToBecomeAvailableForAccount(ctx context.Context, client *cl return fmt.Errorf("building Blob Service Poller: %+v", err) } poller := pollers.NewPoller(pollerType, initialDelayDuration, pollers.DefaultNumberOfDroppedConnectionsToAllow) - if err := poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("waiting for the Blob Service to become available: %+v", err) + if err = poller.PollUntilDone(ctx); err != nil { + if !connectionError(err) { + return fmt.Errorf("waiting for the Blob Service to become available: %+v", err) + } } } @@ -76,8 +80,10 @@ func waitForDataPlaneToBecomeAvailableForAccount(ctx context.Context, client *cl return fmt.Errorf("building Queues Poller: %+v", err) } poller := pollers.NewPoller(pollerType, initialDelayDuration, pollers.DefaultNumberOfDroppedConnectionsToAllow) - if err := poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("waiting for the Queues Service to become available: %+v", err) + if err = poller.PollUntilDone(ctx); err != nil { + if !connectionError(err) { + return fmt.Errorf("waiting for the Queues Service to become available: %+v", err) + } } } @@ -88,8 +94,10 @@ func waitForDataPlaneToBecomeAvailableForAccount(ctx context.Context, client *cl return fmt.Errorf("building File Share Poller: %+v", err) } poller := pollers.NewPoller(pollerType, initialDelayDuration, pollers.DefaultNumberOfDroppedConnectionsToAllow) - if err := poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("waiting for the File Service to become available: %+v", err) + if err = poller.PollUntilDone(ctx); err != nil { + if !connectionError(err) { + return fmt.Errorf("waiting for the File Service to become available: %+v", err) + } } } @@ -100,10 +108,21 @@ func waitForDataPlaneToBecomeAvailableForAccount(ctx context.Context, client *cl return fmt.Errorf("building Static Website Poller: %+v", err) } poller := pollers.NewPoller(pollerType, initialDelayDuration, pollers.DefaultNumberOfDroppedConnectionsToAllow) - if err := poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("waiting for the Static Website to become available: %+v", err) + if err = poller.PollUntilDone(ctx); err != nil { + if !connectionError(err) { + return fmt.Errorf("waiting for the Static Website to become available: %+v", err) + } } } return nil } + +func connectionError(e error) bool { + var pollingDroppedConnectionError pollers.PollingDroppedConnectionError + if errors.As(e, &pollingDroppedConnectionError) { + return true + } + + return regexp.MustCompile(`dial tcp .*:`).MatchString(e.Error()) || regexp.MustCompile(`EOF$`).MatchString(e.Error()) +} diff --git a/internal/services/storage/storage_account_data_source.go b/internal/services/storage/storage_account_data_source.go index 8376b0c938d3..0267fa95bde9 100644 --- a/internal/services/storage/storage_account_data_source.go +++ b/internal/services/storage/storage_account_data_source.go @@ -18,7 +18,6 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" @@ -542,13 +541,6 @@ func dataSourceStorageAccount() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["enable_https_traffic_only"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Computed: true, - } - } - return resource } @@ -621,10 +613,6 @@ func dataSourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) e d.Set("primary_location", location.NormalizeNilable(props.PrimaryLocation)) d.Set("secondary_location", location.NormalizeNilable(props.SecondaryLocation)) - if !features.FourPointOhBeta() { - d.Set("enable_https_traffic_only", pointer.From(props.SupportsHTTPSTrafficOnly)) - } - // Setting the encryption key type to "Service" in PUT. The following GET will not return the queue/table in the service list of its response. // So defaults to setting the encryption key type to "Service" if it is absent in the GET response. Also, define the default value as "Service" in the schema. infrastructureEncryption := false @@ -675,18 +663,14 @@ func dataSourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) e secondaryEndpoints = model.Properties.SecondaryEndpoints } endpoints := flattenAccountEndpoints(primaryEndpoints, secondaryEndpoints, routingPreference) - if err := endpoints.set(d); err != nil { - return err - } + endpoints.set(d) storageAccountKeys := make([]storageaccounts.StorageAccountKey, 0) if keys.Model != nil && keys.Model.Keys != nil { storageAccountKeys = *keys.Model.Keys } keysAndConnectionStrings := flattenAccountAccessKeysAndConnectionStrings(id.StorageAccountName, *storageDomainSuffix, storageAccountKeys, endpoints) - if err := keysAndConnectionStrings.set(d); err != nil { - return err - } + keysAndConnectionStrings.set(d) return nil } diff --git a/internal/services/storage/storage_account_helpers_endpoints_credentials.go b/internal/services/storage/storage_account_helpers_endpoints_credentials.go index 3ce095080bdf..7b2798a9350e 100644 --- a/internal/services/storage/storage_account_helpers_endpoints_credentials.go +++ b/internal/services/storage/storage_account_helpers_endpoints_credentials.go @@ -84,7 +84,7 @@ type accountEndpoints struct { secondaryWebMicrosoftHostName string } -func (a accountEndpoints) set(d *pluginsdk.ResourceData) error { +func (a accountEndpoints) set(d *pluginsdk.ResourceData) { d.Set("primary_blob_endpoint", a.primaryBlobEndpoint) d.Set("primary_blob_host", a.primaryBlobHostName) d.Set("primary_blob_internet_endpoint", a.primaryBlobInternetEndpoint) @@ -154,8 +154,6 @@ func (a accountEndpoints) set(d *pluginsdk.ResourceData) error { d.Set("secondary_web_internet_host", a.secondaryWebInternetHostName) d.Set("secondary_web_microsoft_endpoint", a.secondaryWebMicrosoftEndpoint) d.Set("secondary_web_microsoft_host", a.secondaryWebMicrosoftHostName) - - return nil } func flattenAccountEndpoints(primaryEndpoints, secondaryEndpoints *storageaccounts.Endpoints, routingPreference *storageaccounts.RoutingPreference) accountEndpoints { @@ -239,15 +237,13 @@ type accountAccessKeysAndConnectionStrings struct { secondaryAccessKey string } -func (a accountAccessKeysAndConnectionStrings) set(d *pluginsdk.ResourceData) error { +func (a accountAccessKeysAndConnectionStrings) set(d *pluginsdk.ResourceData) { d.Set("primary_connection_string", a.primaryConnectionString) d.Set("secondary_connection_string", a.secondaryConnectionString) d.Set("primary_blob_connection_string", a.primaryBlobConnectionString) d.Set("secondary_blob_connection_string", a.secondaryBlobConnectionString) d.Set("primary_access_key", a.primaryAccessKey) d.Set("secondary_access_key", a.secondaryAccessKey) - - return nil } func flattenAccountAccessKeysAndConnectionStrings(accountName, domainSuffix string, keys []storageaccounts.StorageAccountKey, endpoints accountEndpoints) accountAccessKeysAndConnectionStrings { diff --git a/internal/services/storage/storage_account_local_user_resource.go b/internal/services/storage/storage_account_local_user_resource.go index 397289f7658d..eceabf4c93f4 100644 --- a/internal/services/storage/storage_account_local_user_resource.go +++ b/internal/services/storage/storage_account_local_user_resource.go @@ -5,6 +5,7 @@ package storage import ( "context" + "errors" "fmt" "strings" "time" @@ -222,9 +223,9 @@ func (r LocalUserResource) Create() sdk.ResourceFunc { // Sanity checks on input if plan.SshKeyEnabled != (len(plan.SshAuthorizedKey) != 0) { if plan.SshKeyEnabled { - return fmt.Errorf("`ssh_authorized_key` should be specified when `ssh_key_enabled` is enabled") + return errors.New("`ssh_authorized_key` should be specified when `ssh_key_enabled` is enabled") } else { - return fmt.Errorf("`ssh_authorized_key` should not be specified when `ssh_key_enabled` is disabled") + return errors.New("`ssh_authorized_key` should not be specified when `ssh_key_enabled` is disabled") } } @@ -451,8 +452,7 @@ func (r LocalUserResource) expandPermissionScopes(input []PermissionScopeModel) return nil } - var output []localusers.PermissionScope - + output := make([]localusers.PermissionScope, 0, len(input)) for _, v := range input { // The length constraint is guaranteed by schema permissions := v.Permissions[0] @@ -488,8 +488,7 @@ func (r LocalUserResource) flattenPermissionScopes(input *[]localusers.Permissio return nil } - var output []PermissionScopeModel - + output := make([]PermissionScopeModel, 0, len(*input)) for _, v := range *input { permissions := PermissionsModel{} // The Storage API's have a history of being case-insensitive, so we case-insensitively check the permission here. @@ -525,8 +524,7 @@ func (r LocalUserResource) expandSSHAuthorizedKeys(input []SshAuthorizedKeyModel return nil } - var output []localusers.SshPublicKey - + output := make([]localusers.SshPublicKey, 0, len(input)) for _, v := range input { output = append(output, localusers.SshPublicKey{ Description: pointer.To(v.Description), diff --git a/internal/services/storage/storage_account_queue_properties_data_plane_resource.go b/internal/services/storage/storage_account_queue_properties_data_plane_resource.go new file mode 100644 index 000000000000..4f29d873a1f6 --- /dev/null +++ b/internal/services/storage/storage_account_queue_properties_data_plane_resource.go @@ -0,0 +1,669 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package storage + +import ( + "context" + "fmt" + "reflect" + "strings" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" + "github.com/tombuildsstuff/giovanni/storage/2023-11-03/queue/queues" +) + +type AccountQueuePropertiesResource struct{} + +var _ sdk.ResourceWithUpdate = AccountQueuePropertiesResource{} + +type AccountQueuePropertiesModel struct { + StorageAccountId string `json:"storage_account_id" tfschema:"storage_account_id"` + CorsRule []AccountQueuePropertiesCorsRule `tfschema:"cors_rule"` + HourMetrics []AccountQueuePropertiesHourMetrics `tfschema:"hour_metrics"` + MinuteMetrics []AccountQueuePropertiesMinuteMetrics `tfschema:"minute_metrics"` + Logging []AccountQueuePropertiesLogging `tfschema:"logging"` +} + +type AccountQueuePropertiesCorsRule struct { + AllowedOrigins []string `tfschema:"allowed_origins"` + AllowedMethods []string `tfschema:"allowed_methods"` + AllowedHeaders []string `tfschema:"allowed_headers"` + ExposedHeaders []string `tfschema:"exposed_headers"` + MaxAgeSeconds int64 `tfschema:"max_age_in_seconds"` +} + +type AccountQueuePropertiesHourMetrics struct { + Version string `tfschema:"version"` + IncludeAPIS bool `tfschema:"include_apis"` + RetentionPolicyDays int64 `tfschema:"retention_policy_days"` +} + +type AccountQueuePropertiesMinuteMetrics struct { + Version string `tfschema:"version"` + IncludeAPIS bool `tfschema:"include_apis"` + RetentionPolicyDays int64 `tfschema:"retention_policy_days"` +} + +type AccountQueuePropertiesLogging struct { + Version string `tfschema:"version"` + Delete bool `tfschema:"delete"` + Read bool `tfschema:"read"` + Write bool `tfschema:"write"` + RetentionPolicyDays int64 `tfschema:"retention_policy_days"` +} + +var defaultCorsProperties = queues.Cors{ + CorsRule: []queues.CorsRule{}, +} + +var defaultHourMetricsProperties = queues.MetricsConfig{ + Version: "1.0", + Enabled: false, + RetentionPolicy: queues.RetentionPolicy{ + Enabled: false, + }, +} + +var defaultMinuteMetricsProperties = queues.MetricsConfig{ + Version: "1.0", + Enabled: false, + RetentionPolicy: queues.RetentionPolicy{ + Enabled: false, + }, +} + +var defaultLoggingProperties = queues.LoggingConfig{ + Version: "1.0", + Delete: false, + Read: false, + Write: false, + RetentionPolicy: queues.RetentionPolicy{ + Enabled: false, + }, +} + +func (s AccountQueuePropertiesResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "storage_account_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: commonids.ValidateStorageAccountID, + }, + + "cors_rule": { + Type: pluginsdk.TypeList, + Optional: true, + MaxItems: 5, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "allowed_origins": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 64, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, + "exposed_headers": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 64, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + "allowed_headers": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 64, + MinItems: 1, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + }, + }, + "allowed_methods": { + Type: pluginsdk.TypeList, + Required: true, + MaxItems: 64, + Elem: &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + ValidateFunc: validation.StringInSlice([]string{ + "DELETE", + "GET", + "HEAD", + "MERGE", + "POST", + "OPTIONS", + "PUT", + }, false), + }, + }, + "max_age_in_seconds": { + Type: pluginsdk.TypeInt, + Required: true, + ValidateFunc: validation.IntBetween(0, 2000000000), + }, + }, + }, + AtLeastOneOf: []string{"minute_metrics", "hour_metrics", "logging", "cors_rule"}, + }, + + "hour_metrics": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "version": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "include_apis": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + "retention_policy_days": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(1, 365), + }, + }, + }, + AtLeastOneOf: []string{"minute_metrics", "hour_metrics", "logging", "cors_rule"}, + }, + "logging": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "version": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "delete": { + Type: pluginsdk.TypeBool, + Required: true, + }, + "read": { + Type: pluginsdk.TypeBool, + Required: true, + }, + "write": { + Type: pluginsdk.TypeBool, + Required: true, + }, + "retention_policy_days": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(1, 365), + }, + }, + }, + AtLeastOneOf: []string{"minute_metrics", "hour_metrics", "logging", "cors_rule"}, + }, + "minute_metrics": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "version": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "include_apis": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, + "retention_policy_days": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(1, 365), + }, + }, + }, + AtLeastOneOf: []string{"minute_metrics", "hour_metrics", "logging", "cors_rule"}, + }, + } +} + +func (s AccountQueuePropertiesResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (s AccountQueuePropertiesResource) ModelObject() interface{} { + return &AccountQueuePropertiesModel{} +} + +func (s AccountQueuePropertiesResource) ResourceType() string { + return "azurerm_storage_account_queue_properties" +} + +func (s AccountQueuePropertiesResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return commonids.ValidateStorageAccountID +} + +func (s AccountQueuePropertiesResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + storageClient := metadata.Client.Storage + var model AccountQueuePropertiesModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + accountID, err := commonids.ParseStorageAccountID(model.StorageAccountId) + if err != nil { + return err + } + + // Get the target account to ensure it supports queues + account, err := storageClient.ResourceManager.StorageAccounts.GetProperties(ctx, *accountID, storageaccounts.DefaultGetPropertiesOperationOptions()) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *accountID, err) + } + if account.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", *accountID) + } + + if account.Model.Sku == nil || account.Model.Sku.Tier == nil || string(account.Model.Sku.Name) == "" { + return fmt.Errorf("could not read SKU details for %s", *accountID) + } + + accountTier := *account.Model.Sku.Tier + accountReplicationTypeParts := strings.Split(string(account.Model.Sku.Name), "_") + if len(accountReplicationTypeParts) != 2 { + return fmt.Errorf("could not read SKU replication type for %s", *accountID) + } + accountReplicationType := accountReplicationTypeParts[1] + + accountDetails, err := storageClient.FindAccount(ctx, accountID.SubscriptionId, accountID.StorageAccountName) + if err != nil { + return err + } + + supportLevel := availableFunctionalityForAccount(accountDetails.Kind, accountTier, accountReplicationType) + + if !supportLevel.supportQueue { + return fmt.Errorf("account %s does not support queues", *accountID) + } + + client, err := storageClient.QueuesDataPlaneClient(ctx, *accountDetails, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("creating Queues Data Plane Client for %s: %+v", accountID, err) + } + + props := DefaultValueForAccountQueueProperties() + + if len(model.CorsRule) >= 1 { + corsRules := make([]queues.CorsRule, 0) + for _, corsRule := range model.CorsRule { + corsRules = append(corsRules, queues.CorsRule{ + AllowedOrigins: strings.Join(corsRule.AllowedOrigins, ","), + AllowedMethods: strings.Join(corsRule.AllowedMethods, ","), + AllowedHeaders: strings.Join(corsRule.AllowedHeaders, ","), + ExposedHeaders: strings.Join(corsRule.ExposedHeaders, ","), + MaxAgeInSeconds: int(corsRule.MaxAgeSeconds), + }) + } + + props.Cors.CorsRule = corsRules + } + + if len(model.HourMetrics) == 1 { + metrics := model.HourMetrics[0] + props.HourMetrics.Enabled = true + props.HourMetrics.Version = metrics.Version + if metrics.RetentionPolicyDays != 0 { + props.HourMetrics.RetentionPolicy = queues.RetentionPolicy{ + Days: int(metrics.RetentionPolicyDays), + Enabled: true, + } + } + + props.HourMetrics.IncludeAPIs = pointer.To(metrics.IncludeAPIS) + } + + if len(model.MinuteMetrics) != 0 { + metrics := model.MinuteMetrics[0] + props.MinuteMetrics.Enabled = true + props.MinuteMetrics.Version = metrics.Version + if metrics.RetentionPolicyDays != 0 { + props.MinuteMetrics.RetentionPolicy = queues.RetentionPolicy{ + Days: int(metrics.RetentionPolicyDays), + Enabled: true, + } + } + + props.MinuteMetrics.IncludeAPIs = pointer.To(metrics.IncludeAPIS) + } + + if len(model.Logging) != 0 { + logging := model.Logging[0] + props.Logging.Version = logging.Version + props.Logging.Delete = logging.Delete + props.Logging.Read = logging.Read + props.Logging.Write = logging.Write + if logging.RetentionPolicyDays != 0 { + props.Logging.RetentionPolicy = queues.RetentionPolicy{ + Enabled: true, + Days: int(logging.RetentionPolicyDays), + } + } + } + + if err = client.UpdateServiceProperties(ctx, props); err != nil { + return fmt.Errorf("updating Queue Properties for %s: %+v", accountID, err) + } + + metadata.SetID(accountID) + + return nil + }, + } +} + +func (s AccountQueuePropertiesResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + storageClient := metadata.Client.Storage + + var state AccountQueuePropertiesModel + + id, err := commonids.ParseStorageAccountID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + state.StorageAccountId = id.ID() + + account, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return metadata.MarkAsGone(id) + } + if account == nil { + return fmt.Errorf("unable to locate %s", *id) + } + + client, err := storageClient.QueuesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Queues Client for %s: %v", *id, err) + } + + props, err := client.GetServiceProperties(ctx) + if err != nil { + return fmt.Errorf("retrieving Queue Properties for %s: %+v", *id, err) + } + + if props != nil { + if props.Cors != nil && !reflect.DeepEqual(*props.Cors, &defaultCorsProperties) { + corsRules := make([]AccountQueuePropertiesCorsRule, 0) + for _, rule := range props.Cors.CorsRule { + corsRule := AccountQueuePropertiesCorsRule{ + AllowedOrigins: strings.Split(rule.AllowedOrigins, ","), + AllowedMethods: strings.Split(rule.AllowedMethods, ","), + AllowedHeaders: strings.Split(rule.AllowedHeaders, ","), + ExposedHeaders: strings.Split(rule.ExposedHeaders, ","), + MaxAgeSeconds: int64(rule.MaxAgeInSeconds), + } + corsRules = append(corsRules, corsRule) + } + state.CorsRule = corsRules + } + + if props.HourMetrics != nil && !reflect.DeepEqual(*props.HourMetrics, &defaultHourMetricsProperties) { + state.HourMetrics = []AccountQueuePropertiesHourMetrics{ + { + Version: props.HourMetrics.Version, + IncludeAPIS: pointer.From(props.HourMetrics.IncludeAPIs), + RetentionPolicyDays: int64(props.HourMetrics.RetentionPolicy.Days), + }, + } + } + + if props.MinuteMetrics != nil && !reflect.DeepEqual(*props.MinuteMetrics, &defaultMinuteMetricsProperties) { + state.MinuteMetrics = []AccountQueuePropertiesMinuteMetrics{ + { + Version: props.MinuteMetrics.Version, + IncludeAPIS: pointer.From(props.MinuteMetrics.IncludeAPIs), + RetentionPolicyDays: int64(props.MinuteMetrics.RetentionPolicy.Days), + }, + } + } + + if props.Logging != nil && !reflect.DeepEqual(*props.Logging, &defaultLoggingProperties) { + state.Logging = []AccountQueuePropertiesLogging{ + { + Version: props.Logging.Version, + Delete: props.Logging.Delete, + Read: props.Logging.Read, + Write: props.Logging.Write, + RetentionPolicyDays: int64(props.Logging.RetentionPolicy.Days), + }, + } + } + } + + return metadata.Encode(&state) + }, + } +} + +func (s AccountQueuePropertiesResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + storageClient := metadata.Client.Storage + + id, err := commonids.ParseStorageAccountID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + account, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + if account == nil { + return fmt.Errorf("unable to locate %s", *id) + } + + client, err := storageClient.QueuesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Queues Client for %s: %v", *id, err) + } + + if err = client.UpdateServiceProperties(ctx, DefaultValueForAccountQueueProperties()); err != nil { + return fmt.Errorf("updating Queue Properties for %s: %+v", *id, err) + } + + return nil + }, + } +} + +func (s AccountQueuePropertiesResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + storageClient := metadata.Client.Storage + + id, err := commonids.ParseStorageAccountID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + account, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + if account == nil { + return fmt.Errorf("unable to locate %s", *id) + } + + client, err := storageClient.QueuesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Queues Client for %s: %v", *id, err) + } + + props, err := client.GetServiceProperties(ctx) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + + var model AccountQueuePropertiesModel + + if err = metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + if metadata.ResourceData.HasChange("cors_rule") { + if len(model.CorsRule) >= 1 { + corsRules := make([]queues.CorsRule, 0) + for _, corsRule := range model.CorsRule { + corsRules = append(corsRules, queues.CorsRule{ + AllowedOrigins: strings.Join(corsRule.AllowedOrigins, ","), + AllowedMethods: strings.Join(corsRule.AllowedMethods, ","), + AllowedHeaders: strings.Join(corsRule.AllowedHeaders, ","), + ExposedHeaders: strings.Join(corsRule.ExposedHeaders, ","), + MaxAgeInSeconds: int(corsRule.MaxAgeSeconds), + }) + } + + props.Cors.CorsRule = corsRules + } else { + props.Cors = pointer.To(defaultCorsProperties) + } + } + + if metadata.ResourceData.HasChange("hour_metrics") { + if len(model.HourMetrics) == 1 { + metrics := model.HourMetrics[0] + if metadata.ResourceData.HasChange("hour_metrics.0.version") { + props.HourMetrics.Version = metrics.Version + } + + if metadata.ResourceData.HasChange("hour_metrics.0.include_apis") { + props.HourMetrics.IncludeAPIs = pointer.To(metrics.IncludeAPIS) + } + + if metadata.ResourceData.HasChange("hour_metrics.0.retention_policy_days") { + props.HourMetrics.RetentionPolicy = queues.RetentionPolicy{ + Days: int(metrics.RetentionPolicyDays), + Enabled: true, + } + } + } else { + props.HourMetrics = pointer.To(defaultHourMetricsProperties) + } + } + + if metadata.ResourceData.HasChange("minute_metrics") { + if len(model.MinuteMetrics) == 1 { + metrics := model.MinuteMetrics[0] + if metadata.ResourceData.HasChange("minute_metrics.0.version") { + props.MinuteMetrics.Version = metrics.Version + } + + if metadata.ResourceData.HasChange("minute_metrics.0.include_apis") { + props.MinuteMetrics.IncludeAPIs = pointer.To(metrics.IncludeAPIS) + } + + if metadata.ResourceData.HasChange("minute_metrics.0.retention_policy_days") { + props.MinuteMetrics.RetentionPolicy = queues.RetentionPolicy{ + Days: int(metrics.RetentionPolicyDays), + Enabled: true, + } + } + } else { + props.MinuteMetrics = pointer.To(defaultMinuteMetricsProperties) + } + } + + if metadata.ResourceData.HasChange("logging") { + if len(model.Logging) == 1 { + logging := model.Logging[0] + if metadata.ResourceData.HasChange("logging.0.version") { + props.Logging.Version = logging.Version + } + if metadata.ResourceData.HasChange("logging.0.delete") { + props.Logging.Delete = logging.Delete + } + if metadata.ResourceData.HasChange("logging.0.read") { + props.Logging.Read = logging.Read + } + if metadata.ResourceData.HasChange("logging.0.write") { + props.Logging.Write = logging.Write + } + if metadata.ResourceData.HasChange("logging.0.retention_policy_days") { + props.Logging.RetentionPolicy = queues.RetentionPolicy{ + Days: int(logging.RetentionPolicyDays), + Enabled: true, + } + } + } else { + props.Logging = pointer.To(defaultLoggingProperties) + } + } + + if err = client.UpdateServiceProperties(ctx, *props); err != nil { + return fmt.Errorf("updating Queue Properties for %s: %+v", *id, err) + } + + return nil + }, + } +} + +func DefaultValueForAccountQueueProperties() queues.StorageServiceProperties { + return queues.StorageServiceProperties{ + Logging: &queues.LoggingConfig{ + Version: "1.0", + Delete: false, + Read: false, + Write: false, + RetentionPolicy: queues.RetentionPolicy{ + Enabled: false, + }, + }, + HourMetrics: &queues.MetricsConfig{ + Version: "1.0", + Enabled: false, + RetentionPolicy: queues.RetentionPolicy{ + Enabled: false, + }, + }, + MinuteMetrics: &queues.MetricsConfig{ + Version: "1.0", + Enabled: false, + RetentionPolicy: queues.RetentionPolicy{ + Enabled: false, + }, + }, + Cors: &queues.Cors{ + CorsRule: []queues.CorsRule{}, + }, + } +} diff --git a/internal/services/storage/storage_account_queue_properties_data_plane_resource_test.go b/internal/services/storage/storage_account_queue_properties_data_plane_resource_test.go new file mode 100644 index 000000000000..798ec85fd7c9 --- /dev/null +++ b/internal/services/storage/storage_account_queue_properties_data_plane_resource_test.go @@ -0,0 +1,325 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package storage_test + +import ( + "context" + "fmt" + "reflect" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type AccountQueuePropertiesResource struct{} + +func TestAccStorageAccountQueueProperties_corsOnly(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_queue_properties", "test") + r := AccountQueuePropertiesResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.corsOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageAccountQueueProperties_loggingOnly(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_queue_properties", "test") + r := AccountQueuePropertiesResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.loggingOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageAccountQueueProperties_hourMetricsOnly(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_queue_properties", "test") + r := AccountQueuePropertiesResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.hourMetricsOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageAccountQueueProperties_minuteMetricsOnly(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_queue_properties", "test") + r := AccountQueuePropertiesResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.minuteMetricsOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageAccountQueueProperties_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_queue_properties", "test") + r := AccountQueuePropertiesResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.corsOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.loggingOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.hourMetricsOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.minuteMetricsOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.corsOnly(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageAccountQueueProperties_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_queue_properties", "test") + r := AccountQueuePropertiesResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func (r AccountQueuePropertiesResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := commonids.ParseStorageAccountID(state.ID) + if err != nil { + return nil, err + } + + account, err := client.Storage.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", *id, err) + } + if account == nil { + return nil, fmt.Errorf("unable to locate %s", *id) + } + + queuesClient, err := client.Storage.QueuesDataPlaneClient(ctx, *account, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return nil, fmt.Errorf("building Queues Client for %s: %v", *id, err) + } + + props, err := queuesClient.GetServiceProperties(ctx) + if err != nil { + return nil, fmt.Errorf("retrieving Queue Properties for %s: %+v", *id, err) + } + + present := !reflect.DeepEqual(storage.DefaultValueForAccountQueueProperties(), props) + return pointer.To(present), nil +} + +func (r AccountQueuePropertiesResource) corsOnly(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_storage_account_queue_properties" "test" { + storage_account_id = azurerm_storage_account.test.id + cors_rule { + allowed_origins = ["http://www.example.com"] + exposed_headers = ["x-tempo-*"] + allowed_headers = ["x-tempo-*"] + allowed_methods = ["GET", "PUT"] + max_age_in_seconds = "500" + } + + cors_rule { + allowed_origins = ["http://www.contoso.com"] + exposed_headers = ["x-example-*"] + allowed_headers = ["x-example-*"] + allowed_methods = ["GET"] + max_age_in_seconds = "60" + } +} +`, r.template(data)) +} + +func (r AccountQueuePropertiesResource) hourMetricsOnly(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_storage_account_queue_properties" "test" { + storage_account_id = azurerm_storage_account.test.id + hour_metrics { + version = "1.0" + retention_policy_days = 7 + } +} +`, r.template(data)) +} + +func (r AccountQueuePropertiesResource) minuteMetricsOnly(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_storage_account_queue_properties" "test" { + storage_account_id = azurerm_storage_account.test.id + minute_metrics { + version = "1.0" + retention_policy_days = 7 + } +} +`, r.template(data)) +} + +func (r AccountQueuePropertiesResource) loggingOnly(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_storage_account_queue_properties" "test" { + storage_account_id = azurerm_storage_account.test.id + logging { + version = "1.0" + delete = true + read = true + write = true + retention_policy_days = 7 + } +} +`, r.template(data)) +} + +func (r AccountQueuePropertiesResource) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%s + +resource "azurerm_storage_account_queue_properties" "test" { + storage_account_id = azurerm_storage_account.test.id + cors_rule { + allowed_origins = ["http://www.example.com"] + exposed_headers = ["x-tempo-*"] + allowed_headers = ["x-tempo-*"] + allowed_methods = ["GET", "PUT"] + max_age_in_seconds = "500" + } + + logging { + version = "1.0" + delete = true + read = true + write = true + retention_policy_days = 7 + } + + hour_metrics { + version = "1.0" + retention_policy_days = 7 + } + + minute_metrics { + version = "1.0" + retention_policy_days = 7 + } +} +`, r.template(data)) +} + +func (r AccountQueuePropertiesResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` + +resource "azurerm_resource_group" "test" { + name = "acctestRG-storage-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "unlikely23exst2acct%s" + resource_group_name = azurerm_resource_group.test.name + + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString) +} diff --git a/internal/services/storage/storage_account_resource.go b/internal/services/storage/storage_account_resource.go index 87e33432fca6..ea95802cb2e9 100644 --- a/internal/services/storage/storage_account_resource.go +++ b/internal/services/storage/storage_account_resource.go @@ -5,6 +5,7 @@ package storage import ( "context" + "errors" "fmt" "log" "net/http" @@ -28,7 +29,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" - keyVaultClient "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/client" + keyVaultsClient "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/client" keyVaultParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/parse" keyVaultValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/keyvault/validate" managedHsmParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/managedhsm/parse" @@ -209,17 +210,11 @@ func resourceStorageAccount() *pluginsdk.Resource { }, }, - "cross_tenant_replication_enabled": func() *pluginsdk.Schema { - s := &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Default: false, - } - if !features.FourPointOhBeta() { - s.Default = true - } - return s - }(), + "cross_tenant_replication_enabled": { + Type: pluginsdk.TypeBool, + Optional: true, + Default: false, + }, "custom_domain": { Type: pluginsdk.TypeList, @@ -524,108 +519,6 @@ func resourceStorageAccount() *pluginsdk.Resource { }, }, - "queue_properties": { - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "cors_rule": helpers.SchemaStorageAccountCorsRule(false), - "hour_metrics": { - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "version": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - // TODO 4.0: Remove this property and determine whether to enable based on existence of the out side block. - "enabled": { - Type: pluginsdk.TypeBool, - Required: true, - }, - "include_apis": { - Type: pluginsdk.TypeBool, - Optional: true, - }, - "retention_policy_days": { - Type: pluginsdk.TypeInt, - Optional: true, - ValidateFunc: validation.IntBetween(1, 365), - }, - }, - }, - }, - "logging": { - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "version": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "delete": { - Type: pluginsdk.TypeBool, - Required: true, - }, - "read": { - Type: pluginsdk.TypeBool, - Required: true, - }, - "write": { - Type: pluginsdk.TypeBool, - Required: true, - }, - "retention_policy_days": { - Type: pluginsdk.TypeInt, - Optional: true, - ValidateFunc: validation.IntBetween(1, 365), - }, - }, - }, - }, - "minute_metrics": { - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "version": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - // TODO 4.0: Remove this property and determine whether to enable based on existence of the out side block. - "enabled": { - Type: pluginsdk.TypeBool, - Required: true, - }, - "include_apis": { - Type: pluginsdk.TypeBool, - Optional: true, - }, - "retention_policy_days": { - Type: pluginsdk.TypeInt, - Optional: true, - ValidateFunc: validation.IntBetween(1, 365), - }, - }, - }, - }, - }, - }, - }, - "routing": { Type: pluginsdk.TypeList, Optional: true, @@ -658,7 +551,6 @@ func resourceStorageAccount() *pluginsdk.Resource { "share_properties": { Type: pluginsdk.TypeList, Optional: true, - // (@jackofallops) TODO - This should not be computed, however, this would be a breaking change with unknown implications for user data so needs to be addressed for 4.0 Computed: true, MaxItems: 1, Elem: &pluginsdk.Resource{ @@ -749,27 +641,6 @@ func resourceStorageAccount() *pluginsdk.Resource { }, }, - // lintignore:XS003 - "static_website": { - Type: pluginsdk.TypeList, - Optional: true, - MaxItems: 1, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "error_404_document": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - "index_document": { - Type: pluginsdk.TypeString, - Optional: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - }, - }, - }, - "queue_encryption_key_type": { Type: pluginsdk.TypeString, Optional: true, @@ -1246,6 +1117,15 @@ func resourceStorageAccount() *pluginsdk.Resource { } } + if !features.FivePointOhBeta() && !v.(*clients.Client).Features.Storage.DataPlaneAvailable { + if _, ok := d.GetOk("queue_properties"); ok { + return errors.New("cannot configure 'queue_properties' when the Provider Feature 'data_plane_available' is set to 'false'") + } + if _, ok := d.GetOk("static_website"); ok { + return errors.New("cannot configure 'static_website' when the Provider Feature 'data_plane_available' is set to 'false'") + } + } + return nil }), pluginsdk.ForceNewIfChange("account_replication_type", func(ctx context.Context, old, new, meta interface{}) bool { @@ -1266,28 +1146,144 @@ func resourceStorageAccount() *pluginsdk.Resource { ), } - if !features.FourPointOhBeta() { - resource.Schema["https_traffic_only_enabled"].Computed = true - resource.Schema["https_traffic_only_enabled"].Default = nil - - resource.Schema["enable_https_traffic_only"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeBool, - Optional: true, - Computed: true, - ConflictsWith: []string{"https_traffic_only_enabled"}, - Deprecated: "The property `enable_https_traffic_only` has been superseded by `https_traffic_only_enabled` and will be removed in v4.0 of the AzureRM Provider.", + if !features.FivePointOhBeta() { + // lintignore:XS003 + resource.Schema["static_website"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "error_404_document": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "index_document": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, + }, + Deprecated: "this block has been deprecated and superseded by the `azurerm_storage_account_static_website` resource and will be removed in v5.0 of the AzureRM provider", } } + resource.Schema["queue_properties"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "cors_rule": helpers.SchemaStorageAccountCorsRule(false), + "hour_metrics": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "version": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + "include_apis": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + "retention_policy_days": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(1, 365), + }, + }, + }, + }, + "logging": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "version": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + "delete": { + Type: pluginsdk.TypeBool, + Required: true, + }, + "read": { + Type: pluginsdk.TypeBool, + Required: true, + }, + "write": { + Type: pluginsdk.TypeBool, + Required: true, + }, + "retention_policy_days": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(1, 365), + }, + }, + }, + }, + "minute_metrics": { + Type: pluginsdk.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &pluginsdk.Resource{ + Schema: map[string]*pluginsdk.Schema{ + "version": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + }, + // TODO 4.0: Remove this property and determine whether to enable based on existence of the out side block. + "enabled": { + Type: pluginsdk.TypeBool, + Required: true, + }, + "include_apis": { + Type: pluginsdk.TypeBool, + Optional: true, + }, + "retention_policy_days": { + Type: pluginsdk.TypeInt, + Optional: true, + ValidateFunc: validation.IntBetween(1, 365), + }, + }, + }, + }, + }, + }, + Deprecated: "this block has been deprecated and superseded by the `azurerm_storage_account_queue_properties` resource and will be removed in v5.0 of the AzureRM provider", + } + return resource } func resourceStorageAccountCreate(d *pluginsdk.ResourceData, meta interface{}) error { tenantId := meta.(*clients.Client).Account.TenantId subscriptionId := meta.(*clients.Client).Account.SubscriptionId - client := meta.(*clients.Client).Storage.ResourceManager.StorageAccounts - storageClient := meta.(*clients.Client).Storage + storageUtils := meta.(*clients.Client).Storage + storageClient := meta.(*clients.Client).Storage.ResourceManager + client := storageClient.StorageAccounts keyVaultClient := meta.(*clients.Client).KeyVault + dataPlaneAvailable := meta.(*clients.Client).Features.Storage.DataPlaneAvailable ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -1322,11 +1318,6 @@ func resourceStorageAccountCreate(d *pluginsdk.ResourceData, meta interface{}) e // nolint staticcheck if v, ok := d.GetOkExists("https_traffic_only_enabled"); ok { httpsTrafficOnlyEnabled = v.(bool) - } else if !features.FourPointOhBeta() { - // nolint staticcheck - if v, ok := d.GetOkExists("enable_https_traffic_only"); ok { - httpsTrafficOnlyEnabled = v.(bool) - } } dnsEndpointType := d.Get("dns_endpoint_type").(string) @@ -1440,7 +1431,7 @@ func resourceStorageAccountCreate(d *pluginsdk.ResourceData, meta interface{}) e payload.Properties.RoutingPreference = expandAccountRoutingPreference(v.([]interface{})) } - // TODO 4.0: look into standardizing this across resources that support CMK and at the very least look at improving the UX + // TODO look into standardizing this across resources that support CMK and at the very least look at improving the UX // for encryption of blob, file, table and queue // // By default (by leaving empty), the table and queue encryption key type is set to "Service". While users can change it to "Account" so that @@ -1482,21 +1473,70 @@ func resourceStorageAccountCreate(d *pluginsdk.ResourceData, meta interface{}) e if account.Model == nil { return fmt.Errorf("retrieving %s: `model` was nil", id) } - if err := storageClient.AddToCache(id, *account.Model); err != nil { + if err := storageUtils.AddToCache(id, *account.Model); err != nil { return fmt.Errorf("populating cache for %s: %+v", id, err) } - dataPlaneAccount, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) - if err != nil { - return fmt.Errorf("retrieving %s: %+v", id, err) - } - if dataPlaneAccount == nil { - return fmt.Errorf("unable to locate %q", id) - } - supportLevel := availableFunctionalityForAccount(accountKind, accountTier, replicationType) - if err := waitForDataPlaneToBecomeAvailableForAccount(ctx, storageClient, dataPlaneAccount, supportLevel); err != nil { - return fmt.Errorf("waiting for the Data Plane for %s to become available: %+v", id, err) + // Start of Data Plane access - this entire block can be removed for 5.0, as the data_plane_available flag becomes redundant at that time. + if !features.FivePointOhBeta() && dataPlaneAvailable { + dataPlaneClient := meta.(*clients.Client).Storage + dataPlaneAccount, err := storageUtils.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", id, err) + } + if dataPlaneAccount == nil { + return fmt.Errorf("unable to locate %q", id) + } + + if err := waitForDataPlaneToBecomeAvailableForAccount(ctx, dataPlaneClient, dataPlaneAccount, supportLevel); err != nil { + return fmt.Errorf("waiting for the Data Plane for %s to become available: %+v", id, err) + } + + if val, ok := d.GetOk("queue_properties"); ok { + if !supportLevel.supportQueue { + return fmt.Errorf("`queue_properties` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) + } + + queueClient, err := dataPlaneClient.QueuesDataPlaneClient(ctx, *dataPlaneAccount, dataPlaneClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Queues Client: %s", err) + } + + queueProperties, err := expandAccountQueueProperties(val.([]interface{})) + if err != nil { + return fmt.Errorf("expanding `queue_properties`: %+v", err) + } + + if err = queueClient.UpdateServiceProperties(ctx, *queueProperties); err != nil { + return fmt.Errorf("updating Queue Properties: %+v", err) + } + + if err = d.Set("queue_properties", val); err != nil { + return fmt.Errorf("setting `queue_properties`: %+v", err) + } + } + + if val, ok := d.GetOk("static_website"); ok { + if !supportLevel.supportStaticWebsite { + return fmt.Errorf("`static_website` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) + } + + accountsClient, err := dataPlaneClient.AccountsDataPlaneClient(ctx, *dataPlaneAccount, dataPlaneClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Accounts Data Plane Client: %s", err) + } + + staticWebsiteProps := expandAccountStaticWebsiteProperties(val.([]interface{})) + + if _, err = accountsClient.SetServiceProperties(ctx, id.StorageAccountName, staticWebsiteProps); err != nil { + return fmt.Errorf("updating `static_website`: %+v", err) + } + + if err = d.Set("static_website", val); err != nil { + return fmt.Errorf("setting `static_website`: %+v", err) + } + } } if val, ok := d.GetOk("blob_properties"); ok { @@ -1547,31 +1587,11 @@ func resourceStorageAccountCreate(d *pluginsdk.ResourceData, meta interface{}) e } } - if _, err = storageClient.ResourceManager.BlobService.SetServiceProperties(ctx, id, *blobProperties); err != nil { + if _, err = storageClient.BlobService.SetServiceProperties(ctx, id, *blobProperties); err != nil { return fmt.Errorf("updating `blob_properties`: %+v", err) } } - if val, ok := d.GetOk("queue_properties"); ok { - if !supportLevel.supportQueue { - return fmt.Errorf("`queue_properties` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) - } - - queueClient, err := storageClient.QueuesDataPlaneClient(ctx, *dataPlaneAccount, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building Queues Client: %s", err) - } - - queueProperties, err := expandAccountQueueProperties(val.([]interface{})) - if err != nil { - return fmt.Errorf("expanding `queue_properties`: %+v", err) - } - - if err = queueClient.UpdateServiceProperties(ctx, *queueProperties); err != nil { - return fmt.Errorf("updating Queue Properties: %+v", err) - } - } - if val, ok := d.GetOk("share_properties"); ok { if !supportLevel.supportShare { return fmt.Errorf("`share_properties` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) @@ -1592,35 +1612,18 @@ func resourceStorageAccountCreate(d *pluginsdk.ResourceData, meta interface{}) e } } - if _, err = storageClient.ResourceManager.FileService.SetServiceProperties(ctx, id, sharePayload); err != nil { + if _, err = storageClient.FileService.SetServiceProperties(ctx, id, sharePayload); err != nil { return fmt.Errorf("updating `share_properties`: %+v", err) } } - if val, ok := d.GetOk("static_website"); ok { - if !supportLevel.supportStaticWebsite { - return fmt.Errorf("`static_website` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) - } - - accountsClient, err := storageClient.AccountsDataPlaneClient(ctx, *dataPlaneAccount, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building Accounts Data Plane Client: %s", err) - } - - staticWebsiteProps := expandAccountStaticWebsiteProperties(val.([]interface{})) - - if _, err = accountsClient.SetServiceProperties(ctx, id.StorageAccountName, staticWebsiteProps); err != nil { - return fmt.Errorf("updating `static_website`: %+v", err) - } - } - return resourceStorageAccountRead(d, meta) } func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) error { tenantId := meta.(*clients.Client).Account.TenantId - storageClient := meta.(*clients.Client).Storage - client := storageClient.ResourceManager.StorageAccounts + storageClient := meta.(*clients.Client).Storage.ResourceManager + client := storageClient.StorageAccounts keyVaultClient := meta.(*clients.Client).KeyVault ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() @@ -1755,11 +1758,6 @@ func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) e if d.HasChange("https_traffic_only_enabled") { props.SupportsHTTPSTrafficOnly = pointer.To(d.Get("https_traffic_only_enabled").(bool)) } - if !features.FourPointOhBeta() { - if d.HasChange("enable_https_traffic_only") { - props.SupportsHTTPSTrafficOnly = pointer.To(d.Get("enable_https_traffic_only").(bool)) - } - } if d.HasChange("large_file_share_enabled") { // largeFileSharesState can only be set to `Enabled` and not `Disabled`, even if it is currently `Disabled` @@ -1890,7 +1888,7 @@ func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) e RestorePolicy: expandAccountBlobPropertiesRestorePolicy(v.([]interface{})), }, } - if _, err := storageClient.ResourceManager.BlobService.SetServiceProperties(ctx, *id, blobPayload); err != nil { + if _, err := storageClient.BlobService.SetServiceProperties(ctx, *id, blobPayload); err != nil { return fmt.Errorf("updating Azure Storage Account blob restore policy %q: %+v", id.StorageAccountName, err) } } @@ -1904,36 +1902,64 @@ func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) e } } - if _, err = storageClient.ResourceManager.BlobService.SetServiceProperties(ctx, *id, *blobProperties); err != nil { + if _, err = storageClient.BlobService.SetServiceProperties(ctx, *id, *blobProperties); err != nil { return fmt.Errorf("updating `blob_properties` for %s: %+v", *id, err) } } - if d.HasChange("queue_properties") { - if !supportLevel.supportQueue { - return fmt.Errorf("`queue_properties` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) - } + if !features.FivePointOhBeta() { + dataPlaneClient := meta.(*clients.Client).Storage + if d.HasChange("queue_properties") { + if !supportLevel.supportQueue { + return fmt.Errorf("`queue_properties` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) + } - account, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) - if err != nil { - return fmt.Errorf("retrieving %s: %+v", *id, err) - } - if account == nil { - return fmt.Errorf("unable to locate %s", *id) - } + account, err := dataPlaneClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + if account == nil { + return fmt.Errorf("unable to locate %s", *id) + } - queueClient, err := storageClient.QueuesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building Queues Client: %s", err) - } + queueClient, err := dataPlaneClient.QueuesDataPlaneClient(ctx, *account, dataPlaneClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Queues Client: %s", err) + } - queueProperties, err := expandAccountQueueProperties(d.Get("queue_properties").([]interface{})) - if err != nil { - return fmt.Errorf("expanding `queue_properties` for %s: %+v", *id, err) + queueProperties, err := expandAccountQueueProperties(d.Get("queue_properties").([]interface{})) + if err != nil { + return fmt.Errorf("expanding `queue_properties` for %s: %+v", *id, err) + } + + if err = queueClient.UpdateServiceProperties(ctx, *queueProperties); err != nil { + return fmt.Errorf("updating Queue Properties for %s: %+v", *id, err) + } } - if err = queueClient.UpdateServiceProperties(ctx, *queueProperties); err != nil { - return fmt.Errorf("updating Queue Properties for %s: %+v", *id, err) + if d.HasChange("static_website") { + if !supportLevel.supportStaticWebsite { + return fmt.Errorf("`static_website` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) + } + + account, err := dataPlaneClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *id, err) + } + if account == nil { + return fmt.Errorf("unable to locate %s", *id) + } + + accountsClient, err := dataPlaneClient.AccountsDataPlaneClient(ctx, *account, dataPlaneClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Data Plane client for %s: %+v", *id, err) + } + + staticWebsiteProps := expandAccountStaticWebsiteProperties(d.Get("static_website").([]interface{})) + + if _, err = accountsClient.SetServiceProperties(ctx, id.StorageAccountName, staticWebsiteProps); err != nil { + return fmt.Errorf("updating `static_website` for %s: %+v", *id, err) + } } } @@ -1955,42 +1981,19 @@ func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) e sharePayload.Properties.ProtocolSettings.Smb.Multichannel = nil } - if _, err = storageClient.ResourceManager.FileService.SetServiceProperties(ctx, *id, sharePayload); err != nil { + if _, err = storageClient.FileService.SetServiceProperties(ctx, *id, sharePayload); err != nil { return fmt.Errorf("updating File Share Properties for %s: %+v", *id, err) } } - if d.HasChange("static_website") { - if !supportLevel.supportStaticWebsite { - return fmt.Errorf("`static_website` aren't supported for account kind %q in sku tier %q", accountKind, accountTier) - } - - account, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) - if err != nil { - return fmt.Errorf("retrieving %s: %+v", *id, err) - } - if account == nil { - return fmt.Errorf("unable to locate %s", *id) - } - - accountsClient, err := storageClient.AccountsDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building Data Plane client for %s: %+v", *id, err) - } - - staticWebsiteProps := expandAccountStaticWebsiteProperties(d.Get("static_website").([]interface{})) - - if _, err = accountsClient.SetServiceProperties(ctx, id.StorageAccountName, staticWebsiteProps); err != nil { - return fmt.Errorf("updating `static_website` for %s: %+v", *id, err) - } - } - return resourceStorageAccountRead(d, meta) } func resourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage - client := storageClient.ResourceManager.StorageAccounts + storageUtils := meta.(*clients.Client).Storage + storageClient := meta.(*clients.Client).Storage.ResourceManager + client := storageClient.StorageAccounts + dataPlaneAvailable := meta.(*clients.Client).Features.Storage.DataPlaneAvailable env := meta.(*clients.Client).Account.Environment ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -2016,7 +2019,7 @@ func resourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) err } // we then need to find the storage account - account, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + account, err := storageUtils.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) if err != nil { return fmt.Errorf("retrieving %s: %+v", *id, err) } @@ -2080,9 +2083,6 @@ func resourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) err } d.Set("cross_tenant_replication_enabled", pointer.From(props.AllowCrossTenantReplication)) d.Set("https_traffic_only_enabled", pointer.From(props.SupportsHTTPSTrafficOnly)) - if !features.FourPointOhBeta() { - d.Set("enable_https_traffic_only", pointer.From(props.SupportsHTTPSTrafficOnly)) - } d.Set("is_hns_enabled", pointer.From(props.IsHnsEnabled)) d.Set("nfsv3_enabled", pointer.From(props.IsNfsV3Enabled)) d.Set("primary_location", pointer.From(props.PrimaryLocation)) @@ -2198,22 +2198,18 @@ func resourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) err } endpoints := flattenAccountEndpoints(primaryEndpoints, secondaryEndpoints, routingPreference) - if err := endpoints.set(d); err != nil { - return err - } + endpoints.set(d) storageAccountKeys := make([]storageaccounts.StorageAccountKey, 0) if keys.Model != nil && keys.Model.Keys != nil { storageAccountKeys = *keys.Model.Keys } keysAndConnectionStrings := flattenAccountAccessKeysAndConnectionStrings(id.StorageAccountName, *storageDomainSuffix, storageAccountKeys, endpoints) - if err := keysAndConnectionStrings.set(d); err != nil { - return err - } + keysAndConnectionStrings.set(d) blobProperties := make([]interface{}, 0) if supportLevel.supportBlob { - blobProps, err := storageClient.ResourceManager.BlobService.GetServiceProperties(ctx, *id) + blobProps, err := storageClient.BlobService.GetServiceProperties(ctx, *id) if err != nil { return fmt.Errorf("reading blob properties for %s: %+v", *id, err) } @@ -2224,28 +2220,9 @@ func resourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) err return fmt.Errorf("setting `blob_properties` for %s: %+v", *id, err) } - queueProperties := make([]interface{}, 0) - if supportLevel.supportQueue { - queueClient, err := storageClient.QueuesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building Queues Client: %s", err) - } - - queueProps, err := queueClient.GetServiceProperties(ctx) - if err != nil { - return fmt.Errorf("retrieving queue properties for %s: %+v", *id, err) - } - - queueProperties = flattenAccountQueueProperties(queueProps) - } - - if err := d.Set("queue_properties", queueProperties); err != nil { - return fmt.Errorf("setting `queue_properties`: %+v", err) - } - shareProperties := make([]interface{}, 0) if supportLevel.supportShare { - shareProps, err := storageClient.ResourceManager.FileService.GetServiceProperties(ctx, *id) + shareProps, err := storageClient.FileService.GetServiceProperties(ctx, *id) if err != nil { return fmt.Errorf("retrieving share properties for %s: %+v", *id, err) } @@ -2256,30 +2233,58 @@ func resourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) err return fmt.Errorf("setting `share_properties` for %s: %+v", *id, err) } - staticWebsiteProperties := make([]interface{}, 0) - if supportLevel.supportStaticWebsite { - accountsClient, err := storageClient.AccountsDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building Accounts Data Plane Client: %s", err) + if !features.FivePointOhBeta() && dataPlaneAvailable { + dataPlaneClient := meta.(*clients.Client).Storage + queueProperties := make([]interface{}, 0) + if supportLevel.supportQueue { + queueClient, err := dataPlaneClient.QueuesDataPlaneClient(ctx, *account, dataPlaneClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Queues Client: %s", err) + } + + queueProps, err := queueClient.GetServiceProperties(ctx) + if err != nil { + // Queue properties is a data plane only service, so we tolerate connection errors here in case of + // firewalls and other connectivity issues that are not guaranteed. + if !connectionError(err) { + return fmt.Errorf("retrieving queue properties for %s: %+v", *id, err) + } + } + + queueProperties = flattenAccountQueueProperties(queueProps) + } + if err := d.Set("queue_properties", queueProperties); err != nil { + return fmt.Errorf("setting `queue_properties`: %+v", err) } - staticWebsiteProps, err := accountsClient.GetServiceProperties(ctx, id.StorageAccountName) - if err != nil { - return fmt.Errorf("retrieving static website properties for %s: %+v", *id, err) + staticWebsiteProperties := make([]interface{}, 0) + if supportLevel.supportStaticWebsite { + accountsClient, err := dataPlaneClient.AccountsDataPlaneClient(ctx, *account, dataPlaneClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Accounts Data Plane Client: %s", err) + } + + staticWebsiteProps, err := accountsClient.GetServiceProperties(ctx, id.StorageAccountName) + if err != nil { + if !connectionError(err) { + return fmt.Errorf("retrieving static website properties for %s: %+v", *id, err) + } + } + + staticWebsiteProperties = flattenAccountStaticWebsiteProperties(staticWebsiteProps) } - staticWebsiteProperties = flattenAccountStaticWebsiteProperties(staticWebsiteProps) - } - if err := d.Set("static_website", staticWebsiteProperties); err != nil { - return fmt.Errorf("setting `static_website`: %+v", err) + if err = d.Set("static_website", staticWebsiteProperties); err != nil { + return fmt.Errorf("setting `static_website`: %+v", err) + } } return nil } func resourceStorageAccountDelete(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage - client := storageClient.ResourceManager.StorageAccounts + storageUtils := meta.(*clients.Client).Storage + client := meta.(*clients.Client).Storage.ResourceManager.StorageAccounts ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() @@ -2296,6 +2301,7 @@ func resourceStorageAccountDelete(d *pluginsdk.ResourceData, meta interface{}) e if response.WasNotFound(existing.HttpResponse) { return nil } + return fmt.Errorf("retrieving %s: %+v", *id, err) } @@ -2330,7 +2336,7 @@ func resourceStorageAccountDelete(d *pluginsdk.ResourceData, meta interface{}) e } // remove this from the cache - storageClient.RemoveAccountFromCache(*id) + storageUtils.RemoveAccountFromCache(*id) return nil } @@ -2360,7 +2366,7 @@ func flattenAccountCustomDomain(input *storageaccounts.CustomDomain) []interface return output } -func expandAccountCustomerManagedKey(ctx context.Context, keyVaultClient *keyVaultClient.Client, subscriptionId string, input []interface{}, accountTier storageaccounts.SkuTier, accountKind storageaccounts.Kind, expandedIdentity identity.LegacySystemAndUserAssignedMap, queueEncryptionKeyType, tableEncryptionKeyType storageaccounts.KeyType) (*storageaccounts.Encryption, error) { +func expandAccountCustomerManagedKey(ctx context.Context, keyVaultClient *keyVaultsClient.Client, subscriptionId string, input []interface{}, accountTier storageaccounts.SkuTier, accountKind storageaccounts.Kind, expandedIdentity identity.LegacySystemAndUserAssignedMap, queueEncryptionKeyType, tableEncryptionKeyType storageaccounts.KeyType) (*storageaccounts.Encryption, error) { if accountKind == storageaccounts.KindStorage { if queueEncryptionKeyType == storageaccounts.KeyTypeAccount { return nil, fmt.Errorf("`queue_encryption_key_type = %q` cannot be used with account kind `%q`", string(storageaccounts.KeyTypeAccount), string(storageaccounts.KindStorage)) diff --git a/internal/services/storage/storage_account_resource_test.go b/internal/services/storage/storage_account_resource_test.go index 2c88afa756cb..b05e6ad5de4d 100644 --- a/internal/services/storage/storage_account_resource_test.go +++ b/internal/services/storage/storage_account_resource_test.go @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" ) @@ -754,6 +755,10 @@ func TestAccStorageAccount_blobProperties_kindStorageNotSupportLastAccessTimeEna } func TestAccStorageAccount_queueProperties(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") r := StorageAccountResource{} @@ -790,6 +795,10 @@ func TestAccStorageAccount_queueProperties(t *testing.T) { } func TestAccStorageAccount_staticWebsiteEnabled(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") r := StorageAccountResource{} @@ -820,6 +829,10 @@ func TestAccStorageAccount_staticWebsiteEnabled(t *testing.T) { } func TestAccStorageAccount_staticWebsitePropertiesForStorageV2(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") r := StorageAccountResource{} @@ -842,6 +855,10 @@ func TestAccStorageAccount_staticWebsitePropertiesForStorageV2(t *testing.T) { } func TestAccStorageAccount_staticWebsitePropertiesForBlockBlobStorage(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") r := StorageAccountResource{} @@ -1695,6 +1712,10 @@ func TestAccStorageAccount_StorageV1_blobProperties(t *testing.T) { } func TestAccStorageAccount_StorageV1_queuePropertiesLRS(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") r := StorageAccountResource{} @@ -1710,6 +1731,10 @@ func TestAccStorageAccount_StorageV1_queuePropertiesLRS(t *testing.T) { } func TestAccStorageAccount_StorageV1_queuePropertiesGRS(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") r := StorageAccountResource{} @@ -1725,6 +1750,10 @@ func TestAccStorageAccount_StorageV1_queuePropertiesGRS(t *testing.T) { } func TestAccStorageAccount_StorageV1_queuePropertiesRAGRS(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") r := StorageAccountResource{} @@ -1784,6 +1813,52 @@ func TestAccStorageAccount_StorageV1_sharePropertiesRAGRS(t *testing.T) { }) } +func TestAccStorageAccount_noDataPlane(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") + r := StorageAccountResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.noDataPlane(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageAccount_noDataPlaneQueueShouldError(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") + r := StorageAccountResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.noDataPlaneExpectQueueError(data), + ExpectError: regexp.MustCompile("cannot configure 'queue_properties' when the Provider Feature 'data_plane_available' is set to 'false'"), + }, + }) +} + +func TestAccStorageAccount_noDataPlaneWebsiteShouldError(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("test not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_account", "test") + r := StorageAccountResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.noDataPlaneExpectWebsiteError(data), + ExpectError: regexp.MustCompile("cannot configure 'static_website' when the Provider Feature 'data_plane_available' is set to 'false'"), + }, + }) +} + func (r StorageAccountResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := commonids.ParseStorageAccountID(state.ID) if err != nil { @@ -5222,3 +5297,108 @@ resource "azurerm_key_vault_managed_hardware_security_module_key" "test" { } `, data.RandomString, data.Locations.Primary, data.RandomInteger) } + +func (r StorageAccountResource) noDataPlane(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features { + storage { + data_plane_available = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-storage-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "unlikely23exst2acct%s" + resource_group_name = azurerm_resource_group.test.name + + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + + tags = { + environment = "production" + } +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString) +} + +func (r StorageAccountResource) noDataPlaneExpectQueueError(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features { + storage { + data_plane_available = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-storage-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "unlikely23exst2acct%s" + resource_group_name = azurerm_resource_group.test.name + + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + + queue_properties { + logging { + version = "1.0" + delete = true + read = true + write = true + retention_policy_days = 7 + } + } + + tags = { + environment = "production" + } +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString) +} + +func (r StorageAccountResource) noDataPlaneExpectWebsiteError(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features { + storage { + data_plane_available = false + } + } +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-storage-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "unlikely23exst2acct%s" + resource_group_name = azurerm_resource_group.test.name + + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + + static_website { + index_document = "index.html" + error_404_document = "404.html" + } + + tags = { + environment = "production" + } +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString) +} diff --git a/internal/services/storage/storage_account_sas_data_source.go b/internal/services/storage/storage_account_sas_data_source.go index 2eda17ecaed8..4f624ec5d98e 100644 --- a/internal/services/storage/storage_account_sas_data_source.go +++ b/internal/services/storage/storage_account_sas_data_source.go @@ -23,7 +23,7 @@ const ( // This is an ACCOUNT SAS : https://docs.microsoft.com/en-us/rest/api/storageservices/Constructing-an-Account-SAS // not Service SAS func dataSourceStorageAccountSharedAccessSignature() *pluginsdk.Resource { - var sasSignedVersion = "2017-07-29" + sasSignedVersion := "2017-07-29" if features.FourPointOhBeta() { // TODO: Update the document as well sasSignedVersion = "2022-11-02" diff --git a/internal/services/storage/storage_account_static_website_data_plane_resource.go b/internal/services/storage/storage_account_static_website_data_plane_resource.go new file mode 100644 index 000000000000..88ff3a7d5c65 --- /dev/null +++ b/internal/services/storage/storage_account_static_website_data_plane_resource.go @@ -0,0 +1,271 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package storage + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts" + "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" + "github.com/tombuildsstuff/giovanni/storage/2023-11-03/blob/accounts" +) + +type AccountStaticWebsiteResource struct{} + +var _ sdk.ResourceWithUpdate = AccountStaticWebsiteResource{} + +type AccountStaticWebsiteResourceModel struct { + StorageAccountId string `tfschema:"storage_account_id"` + Error404Document string `tfschema:"error_404_document"` + IndexDocument string `tfschema:"index_document"` +} + +func (a AccountStaticWebsiteResource) Arguments() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{ + "storage_account_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: commonids.ValidateStorageAccountID, + }, + + "error_404_document": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + AtLeastOneOf: []string{"error_404_document", "index_document"}, + }, + + "index_document": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + AtLeastOneOf: []string{"error_404_document", "index_document"}, + }, + } +} + +func (a AccountStaticWebsiteResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} + +func (a AccountStaticWebsiteResource) ModelObject() interface{} { + return &AccountStaticWebsiteResourceModel{} +} + +func (a AccountStaticWebsiteResource) ResourceType() string { + return "azurerm_storage_account_static_website" +} + +func (a AccountStaticWebsiteResource) IDValidationFunc() pluginsdk.SchemaValidateFunc { + return commonids.ValidateStorageAccountID +} + +func (a AccountStaticWebsiteResource) Create() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + storageClient := metadata.Client.Storage + var model AccountStaticWebsiteResourceModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + accountID, err := commonids.ParseStorageAccountID(model.StorageAccountId) + if err != nil { + return err + } + + // Get the target account to ensure it supports queues + account, err := storageClient.ResourceManager.StorageAccounts.GetProperties(ctx, *accountID, storageaccounts.DefaultGetPropertiesOperationOptions()) + if err != nil { + return fmt.Errorf("retrieving %s: %+v", *accountID, err) + } + if account.Model == nil { + return fmt.Errorf("retrieving %s: `model` was nil", *accountID) + } + + if account.Model.Sku == nil || account.Model.Sku.Tier == nil || string(account.Model.Sku.Name) == "" { + return fmt.Errorf("could not read SKU details for %s", *accountID) + } + + accountTier := *account.Model.Sku.Tier + accountReplicationTypeParts := strings.Split(string(account.Model.Sku.Name), "_") + if len(accountReplicationTypeParts) != 2 { + return fmt.Errorf("could not read SKU replication type for %s", *accountID) + } + accountReplicationType := accountReplicationTypeParts[1] + + accountDetails, err := storageClient.FindAccount(ctx, accountID.SubscriptionId, accountID.StorageAccountName) + if err != nil { + return err + } + + supportLevel := availableFunctionalityForAccount(accountDetails.Kind, accountTier, accountReplicationType) + + if !supportLevel.supportStaticWebsite { + return fmt.Errorf("account %s does not support Static Websites", *accountID) + } + + client, err := storageClient.AccountsDataPlaneClient(ctx, *accountDetails, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Accounts Data Plane Client: %s", err) + } + + properties := accounts.StorageServiceProperties{ + StaticWebsite: &accounts.StaticWebsite{ + Enabled: true, + }, + } + if model.IndexDocument != "" { + properties.StaticWebsite.IndexDocument = model.IndexDocument + } + if model.Error404Document != "" { + properties.StaticWebsite.ErrorDocument404Path = model.Error404Document + } + + if _, err = client.SetServiceProperties(ctx, accountID.StorageAccountName, properties); err != nil { + return fmt.Errorf("creating static website for %s: %+v", accountID, err) + } + + metadata.SetID(accountID) + + return nil + }, + } +} + +func (a AccountStaticWebsiteResource) Read() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 5 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + storageClient := metadata.Client.Storage + + var state AccountStaticWebsiteResourceModel + + id, err := commonids.ParseStorageAccountID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + state.StorageAccountId = id.ID() + + accountDetails, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return metadata.MarkAsGone(id) + } + + accountsClient, err := storageClient.AccountsDataPlaneClient(ctx, *accountDetails, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Accounts Data Plane Client for %s: %+v", *id, err) + } + + props, err := accountsClient.GetServiceProperties(ctx, id.StorageAccountName) + if err != nil { + return fmt.Errorf("retrieving static website properties for %s: %+v", *id, err) + } + + if website := props.StaticWebsite; website != nil { + state.IndexDocument = website.IndexDocument + state.Error404Document = website.ErrorDocument404Path + } + + return metadata.Encode(&state) + }, + } +} + +func (a AccountStaticWebsiteResource) Delete() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + storageClient := metadata.Client.Storage + + id, err := commonids.ParseStorageAccountID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + accountDetails, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + // If we don't find the account we can safely assume we don't need to remove the website since it must already be deleted + return nil + } + + properties := accounts.StorageServiceProperties{ + StaticWebsite: &accounts.StaticWebsite{ + Enabled: false, + }, + } + + client, err := storageClient.AccountsDataPlaneClient(ctx, *accountDetails, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Accounts Data Plane Client: %s", err) + } + + if _, err = client.SetServiceProperties(ctx, id.StorageAccountName, properties); err != nil { + return fmt.Errorf("deleting static website for %s: %+v", id, err) + } + + return nil + }, + } +} + +func (a AccountStaticWebsiteResource) Update() sdk.ResourceFunc { + return sdk.ResourceFunc{ + Timeout: 30 * time.Minute, + Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error { + storageClient := metadata.Client.Storage + var model AccountStaticWebsiteResourceModel + if err := metadata.Decode(&model); err != nil { + return fmt.Errorf("decoding: %+v", err) + } + + id, err := commonids.ParseStorageAccountID(metadata.ResourceData.Id()) + if err != nil { + return err + } + + accountDetails, err := storageClient.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return err + } + + client, err := storageClient.AccountsDataPlaneClient(ctx, *accountDetails, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Accounts Data Plane Client: %s", err) + } + + props, err := client.GetServiceProperties(ctx, id.StorageAccountName) + if err != nil || props.StaticWebsite == nil { + return fmt.Errorf("retrieving static website properties for %s: %+v", *id, err) + } + + properties := accounts.StorageServiceProperties{ + StaticWebsite: props.StaticWebsite, + } + + if metadata.ResourceData.HasChange("index_document") { + properties.StaticWebsite.IndexDocument = model.IndexDocument + } + + if metadata.ResourceData.HasChange("error_404_document") { + properties.StaticWebsite.ErrorDocument404Path = model.Error404Document + } + + if _, err = client.SetServiceProperties(ctx, id.StorageAccountName, properties); err != nil { + return fmt.Errorf("updating static website for %s: %+v", *id, err) + } + + return nil + }, + } +} diff --git a/internal/services/storage/storage_account_static_website_data_plane_resource_test.go b/internal/services/storage/storage_account_static_website_data_plane_resource_test.go new file mode 100644 index 000000000000..996d3456e5c7 --- /dev/null +++ b/internal/services/storage/storage_account_static_website_data_plane_resource_test.go @@ -0,0 +1,188 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package storage_test + +import ( + "context" + "fmt" + "testing" + + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" + "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" +) + +type AccountStaticWebsiteResource struct{} + +func TestAccountStaticWebsiteResource_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_static_website", "test") + r := AccountStaticWebsiteResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccountStaticWebsiteResource_update(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_static_website", "test") + r := AccountStaticWebsiteResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.withIndex(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.with404(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccountStaticWebsiteResource_with404(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_static_website", "test") + r := AccountStaticWebsiteResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.with404(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccountStaticWebsiteResource_withIndex(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_account_static_website", "test") + r := AccountStaticWebsiteResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.withIndex(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func (r AccountStaticWebsiteResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { + id, err := commonids.ParseStorageAccountID(state.ID) + if err != nil { + return nil, err + } + + accountDetails, err := client.Storage.FindAccount(ctx, id.SubscriptionId, id.StorageAccountName) + if err != nil { + return nil, fmt.Errorf("retrieving %s: %+v", *id, err) + } + if accountDetails == nil { + return nil, fmt.Errorf("unable to locate %s", *id) + } + + accountsClient, err := client.Storage.AccountsDataPlaneClient(ctx, *accountDetails, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return nil, fmt.Errorf("building Accounts Data Plane Client for %s: %+v", *id, err) + } + + props, err := accountsClient.GetServiceProperties(ctx, id.StorageAccountName) + if err != nil { + return nil, fmt.Errorf("retrieving static website properties for %s: %+v", *id, err) + } + + if props.StaticWebsite == nil { + return nil, nil + } + + return pointer.To(props.StaticWebsite.Enabled), nil +} + +func (r AccountStaticWebsiteResource) complete(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_storage_account_static_website" "test" { + storage_account_id = azurerm_storage_account.test.id + error_404_document = "sadpanda_2.html" + index_document = "index_2.html" +} +`, r.template(data)) +} + +func (r AccountStaticWebsiteResource) with404(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_storage_account_static_website" "test" { + storage_account_id = azurerm_storage_account.test.id + error_404_document = "sadpanda.html" +} +`, r.template(data)) +} + +func (r AccountStaticWebsiteResource) withIndex(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_storage_account_static_website" "test" { + storage_account_id = azurerm_storage_account.test.id + index_document = "index.html" +} +`, r.template(data)) +} + +func (r AccountStaticWebsiteResource) template(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + + +resource "azurerm_resource_group" "test" { + name = "acctestRG-storage-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "unlikely23exst2acct%s" + resource_group_name = azurerm_resource_group.test.name + + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString) +} diff --git a/internal/services/storage/storage_blob_resource_test.go b/internal/services/storage/storage_blob_resource_test.go index 03daa9c46285..8bcbf129196b 100644 --- a/internal/services/storage/storage_blob_resource_test.go +++ b/internal/services/storage/storage_blob_resource_test.go @@ -144,7 +144,7 @@ func TestAccStorageBlob_blockEmptyAccessTier(t *testing.T) { func TestAccStorageBlob_blockFromInlineContent(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_blob", "test") r := StorageBlobResource{} - content := "Wubba Lubba Dub Dub" + content := "Wubba Lubba Dub Dubs" data.ResourceTest(t, r, []acceptance.TestStep{ { @@ -331,7 +331,7 @@ func TestAccStorageBlob_contentTypePremium(t *testing.T) { func TestAccStorageBlob_encryptionScope(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_blob", "test") r := StorageBlobResource{} - content := "Wubba Lubba Dub Dub" + content := "Wubba Lubba Dub Dubs" data.ResourceTest(t, r, []acceptance.TestStep{ { @@ -347,7 +347,7 @@ func TestAccStorageBlob_encryptionScope(t *testing.T) { func TestAccStorageBlob_encryptionScopeUpdate(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_blob", "test") r := StorageBlobResource{} - content := "Wubba Lubba Dub Dub" + content := "Wubba Lubba Dub Dubs" data.ResourceTest(t, r, []acceptance.TestStep{ { diff --git a/internal/services/storage/storage_container_data_source.go b/internal/services/storage/storage_container_data_source.go index b82840f72d9c..3ed6e9ba9f6a 100644 --- a/internal/services/storage/storage_container_data_source.go +++ b/internal/services/storage/storage_container_data_source.go @@ -7,17 +7,20 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" + "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/blob/accounts" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/blob/containers" ) func dataSourceStorageContainer() *pluginsdk.Resource { - return &pluginsdk.Resource{ + r := &pluginsdk.Resource{ Read: dataSourceStorageContainerRead, Timeouts: &pluginsdk.ResourceTimeout{ @@ -30,9 +33,10 @@ func dataSourceStorageContainer() *pluginsdk.Resource { Required: true, }, - "storage_account_name": { - Type: pluginsdk.TypeString, - Required: true, + "storage_account_id": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: commonids.ValidateStorageAccountID, }, "container_access_type": { @@ -52,7 +56,6 @@ func dataSourceStorageContainer() *pluginsdk.Resource { "metadata": MetaDataComputedSchema(), - // TODO: support for ACL's, Legal Holds and Immutability Policies "has_immutability_policy": { Type: pluginsdk.TypeBool, Computed: true, @@ -62,77 +65,144 @@ func dataSourceStorageContainer() *pluginsdk.Resource { Type: pluginsdk.TypeBool, Computed: true, }, + }, + } - "resource_manager_id": { - Type: pluginsdk.TypeString, - Computed: true, + if !features.FivePointOhBeta() { + r.Schema["resource_manager_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Computed: true, + Deprecated: "this property has been deprecated in favour of `id` and will be removed in version 5.0 of the Provider.", + } + + r.Schema["storage_account_name"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + ExactlyOneOf: []string{ + "storage_account_name", + "storage_account_id", }, - }, + } + + r.Schema["storage_account_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: commonids.ValidateStorageAccountID, + ExactlyOneOf: []string{ + "storage_account_name", + "storage_account_id", + }, + } } + + return r } func dataSourceStorageContainerRead(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage + containerClient := meta.(*clients.Client).Storage.ResourceManager.BlobContainers subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() containerName := d.Get("name").(string) - accountName := d.Get("storage_account_name").(string) - - account, err := storageClient.FindAccount(ctx, subscriptionId, accountName) - if err != nil { - return fmt.Errorf("retrieving Storage Account %q for Container %q: %v", accountName, containerName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q for Container %q", accountName, containerName) - } - - containersDataPlaneClient, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building Containers Client: %v", err) - } - // Determine the blob endpoint, so we can build a data plane ID - endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeBlob) - if err != nil { - return fmt.Errorf("determining Blob endpoint: %v", err) + if !features.FivePointOhBeta() { + storageClient := meta.(*clients.Client).Storage + accountName := d.Get("storage_account_name").(string) + if accountName != "" { + account, err := storageClient.FindAccount(ctx, subscriptionId, accountName) + if err != nil { + return fmt.Errorf("retrieving Storage Account %q for Container %q: %v", accountName, containerName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q for Container %q", accountName, containerName) + } + + containersDataPlaneClient, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Containers Client: %v", err) + } + + // Determine the blob endpoint, so we can build a data plane ID + endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeBlob) + if err != nil { + return fmt.Errorf("determining Blob endpoint: %v", err) + } + + // Parse the blob endpoint as a data plane account ID + accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) + if err != nil { + return fmt.Errorf("parsing Account ID: %v", err) + } + + id := containers.NewContainerID(*accountId, containerName) + + props, err := containersDataPlaneClient.Get(ctx, containerName) + if err != nil { + return fmt.Errorf("retrieving %s: %v", id, err) + } + if props == nil { + return fmt.Errorf("retrieving %s: result was nil", id) + } + + d.SetId(id.ID()) + + d.Set("name", containerName) + d.Set("storage_account_name", accountName) + d.Set("container_access_type", flattenStorageContainerAccessLevel(props.AccessLevel)) + + d.Set("default_encryption_scope", props.DefaultEncryptionScope) + d.Set("encryption_scope_override_enabled", !props.EncryptionScopeOverrideDisabled) + + if err = d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { + return fmt.Errorf("setting `metadata`: %v", err) + } + + d.Set("has_immutability_policy", props.HasImmutabilityPolicy) + d.Set("has_legal_hold", props.HasLegalHold) + + resourceManagerId := commonids.NewStorageContainerID(account.StorageAccountId.SubscriptionId, account.StorageAccountId.ResourceGroupName, account.StorageAccountId.StorageAccountName, containerName) + d.Set("resource_manager_id", resourceManagerId.ID()) + + return nil + } } - // Parse the blob endpoint as a data plane account ID - accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) + accountId, err := commonids.ParseStorageAccountID(d.Get("storage_account_id").(string)) if err != nil { - return fmt.Errorf("parsing Account ID: %v", err) + return err } - id := containers.NewContainerID(*accountId, containerName) + id := commonids.NewStorageContainerID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, containerName) - props, err := containersDataPlaneClient.Get(ctx, containerName) + container, err := containerClient.Get(ctx, id) if err != nil { return fmt.Errorf("retrieving %s: %v", id, err) } - if props == nil { - return fmt.Errorf("retrieving %s: result was nil", id) - } - d.SetId(id.ID()) + if model := container.Model; model != nil { + if props := model.Properties; props != nil { + d.Set("name", containerName) + d.Set("container_access_type", containerAccessTypeConversionMap[string(pointer.From(props.PublicAccess))]) - d.Set("name", containerName) - d.Set("storage_account_name", accountName) - d.Set("container_access_type", flattenStorageContainerAccessLevel(props.AccessLevel)) + d.Set("default_encryption_scope", props.DefaultEncryptionScope) + d.Set("encryption_scope_override_enabled", !pointer.From(props.DenyEncryptionScopeOverride)) - d.Set("default_encryption_scope", props.DefaultEncryptionScope) - d.Set("encryption_scope_override_enabled", !props.EncryptionScopeOverrideDisabled) + if err = d.Set("metadata", FlattenMetaData(pointer.From(props.Metadata))); err != nil { + return fmt.Errorf("setting `metadata`: %v", err) + } - if err = d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { - return fmt.Errorf("setting `metadata`: %v", err) - } + d.Set("has_immutability_policy", props.HasImmutabilityPolicy) + d.Set("has_legal_hold", props.HasLegalHold) - d.Set("has_immutability_policy", props.HasImmutabilityPolicy) - d.Set("has_legal_hold", props.HasLegalHold) + if !features.FivePointOhBeta() { + d.Set("resource_manager_id", id.ID()) + } + } + } - resourceManagerId := commonids.NewStorageContainerID(account.StorageAccountId.SubscriptionId, account.StorageAccountId.ResourceGroupName, account.StorageAccountId.StorageAccountName, containerName) - d.Set("resource_manager_id", resourceManagerId.ID()) + d.SetId(id.ID()) return nil } diff --git a/internal/services/storage/storage_container_data_source_test.go b/internal/services/storage/storage_container_data_source_test.go index b878446c32c6..8b40f8b0ea35 100644 --- a/internal/services/storage/storage_container_data_source_test.go +++ b/internal/services/storage/storage_container_data_source_test.go @@ -9,11 +9,12 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" ) type StorageContainerDataSource struct{} -func TestAccDataSourceStorageContainer_basic(t *testing.T) { +func TestAccStorageContainerDataSource_basic(t *testing.T) { data := acceptance.BuildTestData(t, "data.azurerm_storage_container", "test") data.DataSourceTest(t, []acceptance.TestStep{ @@ -34,6 +35,41 @@ func TestAccDataSourceStorageContainer_basic(t *testing.T) { func (d StorageContainerDataSource) basic(data acceptance.TestData) string { return fmt.Sprintf(` + +%s + +data "azurerm_storage_container" "test" { + name = azurerm_storage_container.test.name + storage_account_id = azurerm_storage_account.test.id +} +`, StorageContainerResource{}.complete(data)) +} + +func TestAccStorageContainerDataSource_basicDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "data.azurerm_storage_container", "test") + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: StorageContainerDataSource{}.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("container_access_type").HasValue("private"), + check.That(data.ResourceName).Key("has_immutability_policy").HasValue("false"), + check.That(data.ResourceName).Key("default_encryption_scope").HasValue(fmt.Sprintf("acctestEScontainer%d", data.RandomInteger)), + check.That(data.ResourceName).Key("encryption_scope_override_enabled").HasValue("true"), + check.That(data.ResourceName).Key("metadata.%").HasValue("2"), + check.That(data.ResourceName).Key("metadata.k1").HasValue("v1"), + check.That(data.ResourceName).Key("metadata.k2").HasValue("v2"), + ), + }, + }) +} + +func (d StorageContainerDataSource) basicDeprecated(data acceptance.TestData) string { + return fmt.Sprintf(` provider "azurerm" { features {} } diff --git a/internal/services/storage/storage_container_resource.go b/internal/services/storage/storage_container_resource.go index 4515f646b3ac..eba3cb33c103 100644 --- a/internal/services/storage/storage_container_resource.go +++ b/internal/services/storage/storage_container_resource.go @@ -6,11 +6,16 @@ package storage import ( "fmt" "log" + "strings" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/helpers" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/migration" @@ -22,15 +27,34 @@ import ( "github.com/tombuildsstuff/giovanni/storage/2023-11-03/blob/containers" ) +var containerAccessTypeConversionMap = map[string]string{ + "blob": "Blob", + "container": "Container", + "private": "None", + "Blob": "blob", + "Container": "container", + "None": "private", + "": "private", +} + func resourceStorageContainer() *pluginsdk.Resource { - return &pluginsdk.Resource{ + r := &pluginsdk.Resource{ Create: resourceStorageContainerCreate, Read: resourceStorageContainerRead, Delete: resourceStorageContainerDelete, Update: resourceStorageContainerUpdate, Importer: helpers.ImporterValidatingStorageResourceId(func(id, storageDomainSuffix string) error { - _, err := containers.ParseContainerID(id, storageDomainSuffix) + if !features.FivePointOhBeta() { + if strings.HasPrefix(id, "/subscriptions/") { + _, err := commonids.ParseStorageContainerID(id) + return err + } + _, err := containers.ParseContainerID(id, storageDomainSuffix) + return err + } + + _, err := commonids.ParseStorageContainerID(id) return err }), @@ -54,11 +78,11 @@ func resourceStorageContainer() *pluginsdk.Resource { ValidateFunc: validate.StorageContainerName, }, - "storage_account_name": { + "storage_account_id": { Type: pluginsdk.TypeString, Required: true, ForceNew: true, - ValidateFunc: validate.StorageAccountName, + ValidateFunc: commonids.ValidateStorageAccountID, }, "container_access_type": { @@ -90,7 +114,6 @@ func resourceStorageContainer() *pluginsdk.Resource { "metadata": MetaDataComputedSchema(), - // TODO: support for ACL's, Legal Holds and Immutability Policies "has_immutability_policy": { Type: pluginsdk.TypeBool, Computed: true, @@ -100,80 +123,145 @@ func resourceStorageContainer() *pluginsdk.Resource { Type: pluginsdk.TypeBool, Computed: true, }, - - "resource_manager_id": { - Type: pluginsdk.TypeString, - Computed: true, - }, }, } + + if !features.FivePointOhBeta() { + r.Schema["storage_account_name"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + ValidateFunc: validate.StorageAccountName, + ExactlyOneOf: []string{"storage_account_id", "storage_account_name"}, + Deprecated: "the `storage_account_name` property has been deprecated in favour of `storage_account_id` and will be removed in version 5.0 of the Provider.", + } + + r.Schema["storage_account_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + ValidateFunc: commonids.ValidateStorageAccountID, + ExactlyOneOf: []string{"storage_account_id", "storage_account_name"}, + } + + r.Schema["resource_manager_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Computed: true, + Deprecated: "this property has been deprecated in favour of `id` and will be removed in version 5.0 of the Provider.", + } + } + + return r } func resourceStorageContainerCreate(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage subscriptionId := meta.(*clients.Client).Account.SubscriptionId + containerClient := meta.(*clients.Client).Storage.ResourceManager.BlobContainers ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() containerName := d.Get("name").(string) - accountName := d.Get("storage_account_name").(string) accessLevelRaw := d.Get("container_access_type").(string) accessLevel := expandStorageContainerAccessLevel(accessLevelRaw) - metaDataRaw := d.Get("metadata").(map[string]interface{}) metaData := ExpandMetaData(metaDataRaw) - account, err := storageClient.FindAccount(ctx, subscriptionId, accountName) - if err != nil { - return fmt.Errorf("retrieving Account %q for Container %q: %v", accountName, containerName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", accountName) - } - - containersDataPlaneClient, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building storage client: %v", err) - } - - // Determine the blob endpoint, so we can build a data plane ID - endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeBlob) - if err != nil { - return fmt.Errorf("determining Blob endpoint: %v", err) + if !features.FivePointOhBeta() { + storageClient := meta.(*clients.Client).Storage + if accountName := d.Get("storage_account_name").(string); accountName != "" { + account, err := storageClient.FindAccount(ctx, subscriptionId, accountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Container %q: %v", accountName, containerName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q", accountName) + } + + containersDataPlaneClient, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building storage client: %v", err) + } + + // Determine the blob endpoint, so we can build a data plane ID + endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeBlob) + if err != nil { + return fmt.Errorf("determining Blob endpoint: %v", err) + } + + // Parse the blob endpoint as a data plane account ID + accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) + if err != nil { + return fmt.Errorf("parsing Account ID: %v", err) + } + + id := containers.NewContainerID(*accountId, containerName) + + exists, err := containersDataPlaneClient.Exists(ctx, containerName) + if err != nil { + return fmt.Errorf("checking for existing %s: %v", id, err) + } + if exists != nil && *exists { + return tf.ImportAsExistsError("azurerm_storage_container", id.ID()) + } + + log.Printf("[INFO] Creating %s", id) + input := containers.CreateInput{ + AccessLevel: accessLevel, + MetaData: metaData, + } + + if encryptionScope := d.Get("default_encryption_scope"); encryptionScope.(string) != "" { + input.DefaultEncryptionScope = encryptionScope.(string) + input.EncryptionScopeOverrideDisabled = false + + if encryptionScopeOverrideEnabled := d.Get("encryption_scope_override_enabled"); !encryptionScopeOverrideEnabled.(bool) { + input.EncryptionScopeOverrideDisabled = true + } + } + + if err = containersDataPlaneClient.Create(ctx, containerName, input); err != nil { + return fmt.Errorf("creating %s: %v", id, err) + } + d.SetId(id.ID()) + + return resourceStorageContainerRead(d, meta) + } } - // Parse the blob endpoint as a data plane account ID - accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) + accountId, err := commonids.ParseStorageAccountID(d.Get("storage_account_id").(string)) if err != nil { - return fmt.Errorf("parsing Account ID: %v", err) + return err } - id := containers.NewContainerID(*accountId, containerName) + id := commonids.NewStorageContainerID(subscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, containerName) - exists, err := containersDataPlaneClient.Exists(ctx, containerName) + existing, err := containerClient.Get(ctx, id) if err != nil { - return fmt.Errorf("checking for existing %s: %v", id, err) + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for existing %q: %v", id, err) + } } - if exists != nil && *exists { + if !response.WasNotFound(existing.HttpResponse) { return tf.ImportAsExistsError("azurerm_storage_container", id.ID()) } - log.Printf("[INFO] Creating %s", id) - input := containers.CreateInput{ - AccessLevel: accessLevel, - MetaData: metaData, + payload := blobcontainers.BlobContainer{ + Properties: &blobcontainers.ContainerProperties{ + PublicAccess: pointer.To(blobcontainers.PublicAccess(containerAccessTypeConversionMap[accessLevelRaw])), + Metadata: pointer.To(metaData), + }, } if encryptionScope := d.Get("default_encryption_scope"); encryptionScope.(string) != "" { - input.DefaultEncryptionScope = encryptionScope.(string) - input.EncryptionScopeOverrideDisabled = false + payload.Properties.DefaultEncryptionScope = pointer.To(encryptionScope.(string)) + payload.Properties.DenyEncryptionScopeOverride = pointer.To(false) if encryptionScopeOverrideEnabled := d.Get("encryption_scope_override_enabled"); !encryptionScopeOverrideEnabled.(bool) { - input.EncryptionScopeOverrideDisabled = true + payload.Properties.DenyEncryptionScopeOverride = pointer.To(true) } } - if err = containersDataPlaneClient.Create(ctx, containerName, input); err != nil { + if _, err = containerClient.Create(ctx, id, payload); err != nil { return fmt.Errorf("creating %s: %v", id, err) } @@ -183,147 +271,226 @@ func resourceStorageContainerCreate(d *pluginsdk.ResourceData, meta interface{}) } func resourceStorageContainerUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage subscriptionId := meta.(*clients.Client).Account.SubscriptionId + containerClient := meta.(*clients.Client).Storage.ResourceManager.BlobContainers ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := containers.ParseContainerID(d.Id(), storageClient.StorageDomainSuffix) - if err != nil { - return err - } + if !features.FivePointOhBeta() && !strings.HasPrefix(d.Id(), "/subscriptions/") { + storageClient := meta.(*clients.Client).Storage + id, err := containers.ParseContainerID(d.Id(), storageClient.StorageDomainSuffix) + if err != nil { + return err + } - account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q for Container %q: %v", id.AccountId.AccountName, id.ContainerName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", id.AccountId.AccountName) - } + account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Container %q: %v", id.AccountId.AccountName, id.ContainerName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q", id.AccountId.AccountName) + } + if d.HasChange("container_access_type") { + log.Printf("[DEBUG] Updating Access Level for %s...", id) - if d.HasChange("container_access_type") { - log.Printf("[DEBUG] Updating Access Level for %s...", id) + // Updating metadata does not work with AAD authentication, returns a cryptic 404 + client, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + if err != nil { + return fmt.Errorf("building Containers Client: %v", err) + } - // Updating metadata does not work with AAD authentication, returns a cryptic 404 - client, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) - if err != nil { - return fmt.Errorf("building Containers Client: %v", err) + accessLevelRaw := d.Get("container_access_type").(string) + accessLevel := expandStorageContainerAccessLevel(accessLevelRaw) + + if err = client.UpdateAccessLevel(ctx, id.ContainerName, accessLevel); err != nil { + return fmt.Errorf("updating Access Level for %s: %v", id, err) + } + + log.Printf("[DEBUG] Updated Access Level for %s", id) } - accessLevelRaw := d.Get("container_access_type").(string) - accessLevel := expandStorageContainerAccessLevel(accessLevelRaw) + if d.HasChange("metadata") { + log.Printf("[DEBUG] Updating Metadata for %s...", id) + + client, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Containers Client: %v", err) + } + + metaDataRaw := d.Get("metadata").(map[string]interface{}) + metaData := ExpandMetaData(metaDataRaw) + + if err = client.UpdateMetaData(ctx, id.ContainerName, metaData); err != nil { + return fmt.Errorf("updating Metadata for %s: %v", id, err) + } - if err = client.UpdateAccessLevel(ctx, id.ContainerName, accessLevel); err != nil { - return fmt.Errorf("updating Access Level for %s: %v", id, err) + log.Printf("[DEBUG] Updated Metadata for %s", id) } - log.Printf("[DEBUG] Updated Access Level for %s", id) + return resourceStorageContainerRead(d, meta) } - if d.HasChange("metadata") { - log.Printf("[DEBUG] Updating Metadata for %s...", id) + id, err := commonids.ParseStorageContainerID(d.Id()) + if err != nil { + return err + } - client, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return fmt.Errorf("building Containers Client: %v", err) - } + update := blobcontainers.BlobContainer{ + Properties: &blobcontainers.ContainerProperties{}, + } - metaDataRaw := d.Get("metadata").(map[string]interface{}) - metaData := ExpandMetaData(metaDataRaw) + if d.HasChange("container_access_type") { + accessLevelRaw := d.Get("container_access_type").(string) + update.Properties.PublicAccess = pointer.To(blobcontainers.PublicAccess(containerAccessTypeConversionMap[accessLevelRaw])) + } - if err = client.UpdateMetaData(ctx, id.ContainerName, metaData); err != nil { - return fmt.Errorf("updating Metadata for %s: %v", id, err) - } + if d.HasChange("metadata") { + metaDataRaw := d.Get("metadata").(map[string]interface{}) + update.Properties.Metadata = pointer.To(ExpandMetaData(metaDataRaw)) + } - log.Printf("[DEBUG] Updated Metadata for %s", id) + if _, err := containerClient.Update(ctx, *id, update); err != nil { + return fmt.Errorf("updating %s: %v", id, err) } return resourceStorageContainerRead(d, meta) } func resourceStorageContainerRead(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage + containerClient := meta.(*clients.Client).Storage.ResourceManager.BlobContainers subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := containers.ParseContainerID(d.Id(), storageClient.StorageDomainSuffix) - if err != nil { - return err - } + if !features.FivePointOhBeta() && !strings.HasPrefix(d.Id(), "/subscriptions/") { + storageClient := meta.(*clients.Client).Storage + id, err := containers.ParseContainerID(d.Id(), storageClient.StorageDomainSuffix) + if err != nil { + return err + } + + account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Container %q: %v", id.AccountId.AccountName, id.ContainerName, err) + } + if account == nil { + log.Printf("[DEBUG] Unable to locate Account %q for Storage Container %q - assuming removed & removing from state", id.AccountId.AccountName, id.ContainerName) + d.SetId("") + return nil + } + + client, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Containers Client: %v", err) + } + + props, err := client.Get(ctx, id.ContainerName) + if err != nil { + return fmt.Errorf("retrieving %s: %v", id, err) + } + if props == nil { + log.Printf("[DEBUG] Container %q was not found in %s - assuming removed & removing from state", id.ContainerName, id.AccountId) + d.SetId("") + return nil + } + + d.Set("name", id.ContainerName) + d.Set("storage_account_name", id.AccountId.AccountName) + + d.Set("container_access_type", flattenStorageContainerAccessLevel(props.AccessLevel)) + + d.Set("default_encryption_scope", props.DefaultEncryptionScope) + d.Set("encryption_scope_override_enabled", !props.EncryptionScopeOverrideDisabled) + + if err = d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { + return fmt.Errorf("setting `metadata`: %v", err) + } + + d.Set("has_immutability_policy", props.HasImmutabilityPolicy) + d.Set("has_legal_hold", props.HasLegalHold) + + resourceManagerId := commonids.NewStorageContainerID(account.StorageAccountId.SubscriptionId, account.StorageAccountId.ResourceGroupName, id.AccountId.AccountName, id.ContainerName) + d.Set("resource_manager_id", resourceManagerId.ID()) - account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q for Container %q: %v", id.AccountId.AccountName, id.ContainerName, err) - } - if account == nil { - log.Printf("[DEBUG] Unable to locate Account %q for Storage Container %q - assuming removed & removing from state", id.AccountId.AccountName, id.ContainerName) - d.SetId("") return nil } - client, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + id, err := commonids.ParseStorageContainerID(d.Id()) if err != nil { - return fmt.Errorf("building Containers Client: %v", err) + return err } - props, err := client.Get(ctx, id.ContainerName) + existing, err := containerClient.Get(ctx, *id) if err != nil { - return fmt.Errorf("retrieving %s: %v", id, err) - } - if props == nil { - log.Printf("[DEBUG] Container %q was not found in %s - assuming removed & removing from state", id.ContainerName, id.AccountId) - d.SetId("") - return nil + if response.WasNotFound(existing.HttpResponse) { + log.Printf("[DEBUG] %q was not found, removing from state", *id) + d.SetId("") + return nil + } + return fmt.Errorf("retrieving %s: %v", *id, err) } - d.Set("name", id.ContainerName) - d.Set("storage_account_name", id.AccountId.AccountName) - - d.Set("container_access_type", flattenStorageContainerAccessLevel(props.AccessLevel)) - - d.Set("default_encryption_scope", props.DefaultEncryptionScope) - d.Set("encryption_scope_override_enabled", !props.EncryptionScopeOverrideDisabled) - - if err = d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { - return fmt.Errorf("setting `metadata`: %v", err) + if model := existing.Model; model != nil { + if props := model.Properties; props != nil { + d.Set("name", id.ContainerName) + d.Set("storage_account_id", commonids.NewStorageAccountID(id.SubscriptionId, id.ResourceGroupName, id.StorageAccountName).ID()) + d.Set("container_access_type", containerAccessTypeConversionMap[string(pointer.From(props.PublicAccess))]) + d.Set("default_encryption_scope", props.DefaultEncryptionScope) + d.Set("encryption_scope_override_enabled", !pointer.From(props.DenyEncryptionScopeOverride)) + d.Set("metadata", FlattenMetaData(pointer.From(props.Metadata))) + + d.Set("has_immutability_policy", props.HasImmutabilityPolicy) + d.Set("has_legal_hold", props.HasLegalHold) + if !features.FivePointOhBeta() { + d.Set("resource_manager_id", id.ID()) + } + } } - d.Set("has_immutability_policy", props.HasImmutabilityPolicy) - d.Set("has_legal_hold", props.HasLegalHold) - - resourceManagerId := commonids.NewStorageContainerID(account.StorageAccountId.SubscriptionId, account.StorageAccountId.ResourceGroupName, id.AccountId.AccountName, id.ContainerName) - d.Set("resource_manager_id", resourceManagerId.ID()) - return nil } func resourceStorageContainerDelete(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage subscriptionId := meta.(*clients.Client).Account.SubscriptionId + containerClient := meta.(*clients.Client).Storage.ResourceManager.BlobContainers ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := containers.ParseContainerID(d.Id(), storageClient.StorageDomainSuffix) - if err != nil { - return err - } + if !features.FivePointOhBeta() && !strings.HasPrefix(d.Id(), "/subscriptions/") { + storageClient := meta.(*clients.Client).Storage - account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q for Container %q: %v", id.AccountId.AccountName, id.ContainerName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", id.AccountId.AccountName) + id, err := containers.ParseContainerID(d.Id(), storageClient.StorageDomainSuffix) + if err != nil { + return err + } + + account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Container %q: %v", id.AccountId.AccountName, id.ContainerName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q", id.AccountId.AccountName) + } + + client, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return fmt.Errorf("building Containers Client: %v", err) + } + + if err = client.Delete(ctx, id.ContainerName); err != nil { + return fmt.Errorf("deleting %s: %v", id, err) + } + + return nil } - client, err := storageClient.ContainersDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) + id, err := commonids.ParseStorageContainerID(d.Id()) if err != nil { - return fmt.Errorf("building Containers Client: %v", err) + return err } - if err = client.Delete(ctx, id.ContainerName); err != nil { - return fmt.Errorf("deleting %s: %v", id, err) + if _, err := containerClient.Delete(ctx, *id); err != nil { + return fmt.Errorf("deleting %s: %v", d.Id(), err) } return nil diff --git a/internal/services/storage/storage_container_resource_test.go b/internal/services/storage/storage_container_resource_test.go index 072c351c40d4..d45d5ecc51da 100644 --- a/internal/services/storage/storage_container_resource_test.go +++ b/internal/services/storage/storage_container_resource_test.go @@ -9,17 +9,38 @@ import ( "strings" "testing" + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/blob/containers" ) type StorageContainerResource struct{} +func TestAccStorageContainer_basicDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") + r := StorageContainerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageContainer_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} @@ -35,7 +56,52 @@ func TestAccStorageContainer_basic(t *testing.T) { }) } +func TestAccStorageContainer_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") + r := StorageContainerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageContainer_deleteAndRecreateDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") + r := StorageContainerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.template(data), + }, + { + Config: r.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageContainer_deleteAndRecreate(t *testing.T) { + t.Skip("skipping until https://github.com/Azure/azure-rest-api-specs/issues/30456 is resolved") data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} @@ -60,6 +126,25 @@ func TestAccStorageContainer_deleteAndRecreate(t *testing.T) { }) } +func TestAccStorageContainer_basicAzureADAuthDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") + r := StorageContainerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicAzureADAuthDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageContainer_basicAzureADAuth(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} @@ -75,6 +160,25 @@ func TestAccStorageContainer_basicAzureADAuth(t *testing.T) { }) } +func TestAccStorageContainer_requiresImportDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") + r := StorageContainerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.RequiresImportErrorStep(r.requiresImportDeprecated), + }) +} + func TestAccStorageContainer_requiresImport(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} @@ -90,6 +194,33 @@ func TestAccStorageContainer_requiresImport(t *testing.T) { }) } +func TestAccStorageContainer_updateDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") + r := StorageContainerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.updateDeprecated(data, "private", "yes"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("container_access_type").HasValue("private"), + ), + }, + { + Config: r.updateDeprecated(data, "container", "no"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("container_access_type").HasValue("container"), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageContainer_update(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} @@ -113,6 +244,25 @@ func TestAccStorageContainer_update(t *testing.T) { }) } +func TestAccStorageContainer_encryptionScopeDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") + r := StorageContainerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.encryptionScopeDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageContainer_encryptionScope(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} @@ -128,6 +278,39 @@ func TestAccStorageContainer_encryptionScope(t *testing.T) { }) } +func TestAccStorageContainer_metaDataDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") + r := StorageContainerResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.metaDataDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.metaDataUpdatedDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.metaDataEmptyDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageContainer_metaData(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} @@ -157,28 +340,40 @@ func TestAccStorageContainer_metaData(t *testing.T) { }) } -func TestAccStorageContainer_disappears(t *testing.T) { +func TestAccStorageContainer_rootDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} data.ResourceTest(t, r, []acceptance.TestStep{ - data.DisappearsStep(acceptance.DisappearsStepData{ - Config: r.basic, - TestResource: r, - }), + { + Config: r.rootDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("name").HasValue("$root"), + ), + }, + data.ImportStep(), }) } -func TestAccStorageContainer_root(t *testing.T) { +func TestAccStorageContainer_webDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as test is not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_container", "test") r := StorageContainerResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.root(data), + Config: r.webDeprecated(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("name").HasValue("$root"), + check.That(data.ResourceName).Key("name").HasValue("$web"), ), }, data.ImportStep(), @@ -202,56 +397,56 @@ func TestAccStorageContainer_web(t *testing.T) { } func (r StorageContainerResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := containers.ParseContainerID(state.ID, client.Storage.StorageDomainSuffix) - if err != nil { - return nil, err - } + if !features.FivePointOhBeta() && !strings.HasPrefix(state.ID, "/subscriptions") { + id, err := containers.ParseContainerID(state.ID, client.Storage.StorageDomainSuffix) + if err != nil { + return nil, err + } - account, err := client.Storage.FindAccount(ctx, client.Account.SubscriptionId, id.AccountId.AccountName) - if err != nil { - return nil, fmt.Errorf("retrieving Account %q for Container %q: %+v", id.AccountId.AccountName, id.ContainerName, err) - } - if account == nil { - return nil, fmt.Errorf("unable to locate Storage Account %q", id.AccountId.AccountName) - } + account, err := client.Storage.FindAccount(ctx, client.Account.SubscriptionId, id.AccountId.AccountName) + if err != nil { + return nil, fmt.Errorf("retrieving Account %q for Container %q: %+v", id.AccountId.AccountName, id.ContainerName, err) + } + if account == nil { + return nil, fmt.Errorf("unable to locate Storage Account %q", id.AccountId.AccountName) + } - containersClient, err := client.Storage.ContainersDataPlaneClient(ctx, *account, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return nil, fmt.Errorf("building Containers Client: %+v", err) - } + containersClient, err := client.Storage.ContainersDataPlaneClient(ctx, *account, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return nil, fmt.Errorf("building Containers Client: %+v", err) + } - prop, err := containersClient.Get(ctx, id.ContainerName) - if err != nil { - return nil, fmt.Errorf("retrieving Container %q in %s: %+v", id.ContainerName, id.AccountId, err) - } + prop, err := containersClient.Get(ctx, id.ContainerName) + if err != nil { + return nil, fmt.Errorf("retrieving Container %q in %s: %+v", id.ContainerName, id.AccountId, err) + } - return utils.Bool(prop != nil), nil -} + return pointer.To(prop != nil), nil + } -func (r StorageContainerResource) Destroy(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := containers.ParseContainerID(state.ID, client.Storage.StorageDomainSuffix) + id, err := commonids.ParseStorageContainerID(state.ID) if err != nil { return nil, err } - account, err := client.Storage.FindAccount(ctx, client.Account.SubscriptionId, id.AccountId.AccountName) + existing, err := client.Storage.ResourceManager.BlobContainers.Get(ctx, *id) if err != nil { - return nil, fmt.Errorf("retrieving Account %q for Container %q: %+v", id.AccountId.AccountName, id.ContainerName, err) - } - if account == nil { - return nil, fmt.Errorf("unable to locate Storage Account %q", id.AccountId.AccountName) + return nil, fmt.Errorf("retrieving %s: %+v", id, err) } - containersClient, err := client.Storage.ContainersDataPlaneClient(ctx, *account, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) - if err != nil { - return nil, fmt.Errorf("building Containers Client: %+v", err) - } + return pointer.To(existing.Model != nil), nil +} - if err = containersClient.Delete(ctx, id.ContainerName); err != nil { - return nil, fmt.Errorf("deleting Container %q in %s: %+v", id.ContainerName, id.AccountId, err) - } +func (r StorageContainerResource) basicDeprecated(data acceptance.TestData) string { + return fmt.Sprintf(` +%s - return utils.Bool(true), nil +resource "azurerm_storage_container" "test" { + name = "vhds" + storage_account_name = azurerm_storage_account.test.name + container_access_type = "private" +} +`, r.template(data)) } func (r StorageContainerResource) basic(data acceptance.TestData) string { @@ -261,13 +456,39 @@ func (r StorageContainerResource) basic(data acceptance.TestData) string { resource "azurerm_storage_container" "test" { name = "vhds" - storage_account_name = azurerm_storage_account.test.name + storage_account_id = azurerm_storage_account.test.id container_access_type = "private" } `, template) } -func (r StorageContainerResource) basicAzureADAuth(data acceptance.TestData) string { +func (r StorageContainerResource) complete(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%[1]s + +resource "azurerm_storage_encryption_scope" "test" { + name = "acctestEScontainer%[3]d" + storage_account_id = azurerm_storage_account.test.id + source = "Microsoft.Storage" +} + +resource "azurerm_storage_container" "test" { + name = "acctest-container-%[2]s" + storage_account_id = azurerm_storage_account.test.id + container_access_type = "private" + default_encryption_scope = azurerm_storage_encryption_scope.test.name + encryption_scope_override_enabled = true + + metadata = { + k1 = "v1" + k2 = "v2" + } +} +`, template, data.RandomString, data.RandomInteger) +} + +func (r StorageContainerResource) basicAzureADAuthDeprecated(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { storage_use_azuread = true @@ -299,6 +520,50 @@ resource "azurerm_storage_container" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString) } +func (r StorageContainerResource) basicAzureADAuth(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + storage_use_azuread = true + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "acctestacc%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + + tags = { + environment = "staging" + } +} + +resource "azurerm_storage_container" "test" { + name = "vhds" + storage_account_id = azurerm_storage_account.test.id + container_access_type = "private" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString) +} + +func (r StorageContainerResource) requiresImportDeprecated(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_storage_container" "import" { + name = azurerm_storage_container.test.name + storage_account_name = azurerm_storage_container.test.storage_account_name + container_access_type = azurerm_storage_container.test.container_access_type +} +`, r.basicDeprecated(data)) +} + func (r StorageContainerResource) requiresImport(data acceptance.TestData) string { template := r.basic(data) return fmt.Sprintf(` @@ -306,13 +571,13 @@ func (r StorageContainerResource) requiresImport(data acceptance.TestData) strin resource "azurerm_storage_container" "import" { name = azurerm_storage_container.test.name - storage_account_name = azurerm_storage_container.test.storage_account_name + storage_account_id = azurerm_storage_container.test.storage_account_id container_access_type = azurerm_storage_container.test.container_access_type } `, template) } -func (r StorageContainerResource) update(data acceptance.TestData, accessType, metadataVal string) string { +func (r StorageContainerResource) updateDeprecated(data acceptance.TestData, accessType, metadataVal string) string { template := r.template(data) return fmt.Sprintf(` %s @@ -329,7 +594,24 @@ resource "azurerm_storage_container" "test" { `, template, accessType, metadataVal) } -func (r StorageContainerResource) encryptionScope(data acceptance.TestData) string { +func (r StorageContainerResource) update(data acceptance.TestData, accessType, metadataVal string) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_container" "test" { + name = "vhds" + storage_account_id = azurerm_storage_account.test.id + container_access_type = "%s" + metadata = { + foo = "bar" + test = "%s" + } +} +`, template, accessType, metadataVal) +} + +func (r StorageContainerResource) encryptionScopeDeprecated(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %[1]s @@ -350,11 +632,66 @@ resource "azurerm_storage_container" "test" { `, template, data.RandomInteger) } +func (r StorageContainerResource) encryptionScope(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%[1]s + +resource "azurerm_storage_encryption_scope" "test" { + name = "acctestEScontainer%[2]d" + storage_account_id = azurerm_storage_account.test.id + source = "Microsoft.Storage" +} + +resource "azurerm_storage_container" "test" { + name = "vhds" + storage_account_id = azurerm_storage_account.test.id + container_access_type = "private" + + default_encryption_scope = azurerm_storage_encryption_scope.test.name +} +`, template, data.RandomInteger) +} + +func (r StorageContainerResource) metaDataDeprecated(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_container" "test" { + name = "vhds" + storage_account_name = azurerm_storage_account.test.name + container_access_type = "private" + + metadata = { + hello = "world" + } +} +`, template) +} + func (r StorageContainerResource) metaData(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s +resource "azurerm_storage_container" "test" { + name = "vhds" + storage_account_id = azurerm_storage_account.test.id + container_access_type = "private" + + metadata = { + hello = "world" + } +} +`, template) +} + +func (r StorageContainerResource) metaDataUpdatedDeprecated(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + resource "azurerm_storage_container" "test" { name = "vhds" storage_account_name = azurerm_storage_account.test.name @@ -362,6 +699,7 @@ resource "azurerm_storage_container" "test" { metadata = { hello = "world" + panda = "pops" } } `, template) @@ -374,7 +712,7 @@ func (r StorageContainerResource) metaDataUpdated(data acceptance.TestData) stri resource "azurerm_storage_container" "test" { name = "vhds" - storage_account_name = azurerm_storage_account.test.name + storage_account_id = azurerm_storage_account.test.id container_access_type = "private" metadata = { @@ -385,7 +723,7 @@ resource "azurerm_storage_container" "test" { `, template) } -func (r StorageContainerResource) metaDataEmpty(data acceptance.TestData) string { +func (r StorageContainerResource) metaDataEmptyDeprecated(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s @@ -400,16 +738,43 @@ resource "azurerm_storage_container" "test" { `, template) } -func (r StorageContainerResource) root(data acceptance.TestData) string { +func (r StorageContainerResource) metaDataEmpty(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s +resource "azurerm_storage_container" "test" { + name = "vhds" + storage_account_id = azurerm_storage_account.test.id + container_access_type = "private" + + metadata = {} +} +`, template) +} + +func (r StorageContainerResource) rootDeprecated(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + resource "azurerm_storage_container" "test" { name = "$root" storage_account_name = azurerm_storage_account.test.name container_access_type = "private" } +`, r.template(data)) +} + +func (r StorageContainerResource) webDeprecated(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_container" "test" { + name = "$web" + storage_account_name = azurerm_storage_account.test.name + container_access_type = "private" +} `, template) } @@ -420,7 +785,7 @@ func (r StorageContainerResource) web(data acceptance.TestData) string { resource "azurerm_storage_container" "test" { name = "$web" - storage_account_name = azurerm_storage_account.test.name + storage_account_id = azurerm_storage_account.test.id container_access_type = "private" } `, template) diff --git a/internal/services/storage/storage_containers_data_source.go b/internal/services/storage/storage_containers_data_source.go index ac2572ead3c0..b72165a2904f 100644 --- a/internal/services/storage/storage_containers_data_source.go +++ b/internal/services/storage/storage_containers_data_source.go @@ -140,7 +140,7 @@ func (r storageContainersDataSource) Read() sdk.ResourceFunc { } func flattenStorageContainersContainers(l []blobcontainers.ListContainerItem, accountId accounts.AccountId, prefix string) []containerModel { - var output []containerModel + output := make([]containerModel, 0, len(l)) for _, item := range l { var name string if item.Name != nil { diff --git a/internal/services/storage/storage_queue_data_source.go b/internal/services/storage/storage_queue_data_source.go index 85077b4d3f13..4135bbef553f 100644 --- a/internal/services/storage/storage_queue_data_source.go +++ b/internal/services/storage/storage_queue_data_source.go @@ -65,7 +65,6 @@ func dataSourceStorageQueueRead(d *pluginsdk.ResourceData, meta interface{}) err queuesDataPlaneClient, err := storageClient.QueuesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingAnyAuthMethod()) if err != nil { return fmt.Errorf("building Queues Client: %v", err) - } // Determine the queue endpoint, so we can build a data plane ID diff --git a/internal/services/storage/storage_share_data_source.go b/internal/services/storage/storage_share_data_source.go index 20ed71b8af6d..c53eb099804f 100644 --- a/internal/services/storage/storage_share_data_source.go +++ b/internal/services/storage/storage_share_data_source.go @@ -7,7 +7,11 @@ import ( "fmt" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -17,7 +21,7 @@ import ( ) func dataSourceStorageShare() *pluginsdk.Resource { - return &pluginsdk.Resource{ + r := &pluginsdk.Resource{ Read: dataSourceStorageShareRead, Timeouts: &pluginsdk.ResourceTimeout{ @@ -30,9 +34,10 @@ func dataSourceStorageShare() *pluginsdk.Resource { Required: true, }, - "storage_account_name": { - Type: pluginsdk.TypeString, - Required: true, + "storage_account_id": { + Type: pluginsdk.TypeString, + Required: true, + ValidateFunc: commonids.ValidateStorageAccountID, }, "metadata": MetaDataComputedSchema(), @@ -74,74 +79,133 @@ func dataSourceStorageShare() *pluginsdk.Resource { Type: pluginsdk.TypeInt, Computed: true, }, + }, + } - "resource_manager_id": { - Type: pluginsdk.TypeString, - Computed: true, + if !features.FivePointOhBeta() { + r.Schema["storage_account_name"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + ExactlyOneOf: []string{ + "storage_account_name", + "storage_account_id", }, - }, + } + + r.Schema["storage_account_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + ExactlyOneOf: []string{ + "storage_account_name", + "storage_account_id", + }, + ValidateFunc: commonids.ValidateStorageAccountID, + } + + r.Schema["resource_manager_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Computed: true, + Deprecated: "this property has been deprecated in favour of `id` and will be removed in version 5.0 of the Provider.", + } } + + return r } func dataSourceStorageShareRead(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage + sharesClient := meta.(*clients.Client).Storage.ResourceManager.FileShares subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() shareName := d.Get("name").(string) - accountName := d.Get("storage_account_name").(string) - account, err := storageClient.FindAccount(ctx, subscriptionId, accountName) - if err != nil { - return fmt.Errorf("retrieving Storage Account %q for Share %q: %s", accountName, shareName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q for Share %q", accountName, shareName) + if !features.FivePointOhBeta() { + storageClient := meta.(*clients.Client).Storage + if accountName := d.Get("storage_account_name").(string); accountName != "" { + account, err := storageClient.FindAccount(ctx, subscriptionId, accountName) + if err != nil { + return fmt.Errorf("retrieving Storage Account %q for Share %q: %s", accountName, shareName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q for Share %q", accountName, shareName) + } + + // The files API does not support bearer tokens (@manicminer, 2024-02-15) + sharesDataPlaneClient, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + if err != nil { + return fmt.Errorf("building FileShares Client: %v", err) + } + + // Determine the file endpoint, so we can build a data plane ID + endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeFile) + if err != nil { + return fmt.Errorf("determining File endpoint: %v", err) + } + + // Parse the file endpoint as a data plane account ID + accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) + if err != nil { + return fmt.Errorf("parsing Account ID: %v", err) + } + + id := shares.NewShareID(*accountId, shareName).ID() + + props, err := sharesDataPlaneClient.Get(ctx, shareName) + if err != nil { + return fmt.Errorf("retrieving %s: %v", id, err) + } + if props == nil { + return fmt.Errorf("%s was not found", id) + } + d.SetId(id) + + d.Set("name", shareName) + d.Set("storage_account_name", accountName) + d.Set("quota", props.QuotaGB) + if err = d.Set("acl", flattenStorageShareACLsDeprecated(props.ACLs)); err != nil { + return fmt.Errorf("setting `acl`: %v", err) + } + + if err = d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { + return fmt.Errorf("setting `metadata`: %v", err) + } + + resourceManagerId := parse.NewStorageShareResourceManagerID(account.StorageAccountId.SubscriptionId, account.StorageAccountId.ResourceGroupName, account.StorageAccountId.StorageAccountName, "default", shareName) + d.Set("resource_manager_id", resourceManagerId.ID()) + + return nil + } } - // The files API does not support bearer tokens (@manicminer, 2024-02-15) - sharesDataPlaneClient, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + accountId, err := commonids.ParseStorageAccountID(d.Get("storage_account_id").(string)) if err != nil { - return fmt.Errorf("building FileShares Client: %v", err) + return err } - // Determine the file endpoint, so we can build a data plane ID - endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeFile) - if err != nil { - return fmt.Errorf("determining File endpoint: %v", err) - } + id := fileshares.NewShareID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, shareName) - // Parse the file endpoint as a data plane account ID - accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) - if err != nil { - return fmt.Errorf("parsing Account ID: %v", err) - } - - id := shares.NewShareID(*accountId, shareName).ID() - - props, err := sharesDataPlaneClient.Get(ctx, shareName) + share, err := sharesClient.Get(ctx, id, fileshares.DefaultGetOperationOptions()) if err != nil { return fmt.Errorf("retrieving %s: %v", id, err) } - if props == nil { - return fmt.Errorf("%s was not found", id) - } - d.SetId(id) d.Set("name", shareName) - d.Set("storage_account_name", accountName) - d.Set("quota", props.QuotaGB) - if err = d.Set("acl", flattenStorageShareACLs(props.ACLs)); err != nil { - return fmt.Errorf("setting `acl`: %v", err) + d.Set("storage_account_id", accountId.ID()) + + if model := share.Model; model != nil { + if props := model.Properties; props != nil { + d.Set("quota", props.ShareQuota) + d.Set("acl", flattenStorageShareACLs(pointer.From(props.SignedIdentifiers))) + d.Set("metadata", FlattenMetaData(pointer.From(props.Metadata))) + } } - if err = d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { - return fmt.Errorf("setting `metadata`: %v", err) + if !features.FivePointOhBeta() { + d.Set("resource_manager_id", id.ID()) } - resourceManagerId := parse.NewStorageShareResourceManagerID(account.StorageAccountId.SubscriptionId, account.StorageAccountId.ResourceGroupName, account.StorageAccountId.StorageAccountName, "default", shareName) - d.Set("resource_manager_id", resourceManagerId.ID()) + d.SetId(id.ID()) return nil } diff --git a/internal/services/storage/storage_share_data_source_test.go b/internal/services/storage/storage_share_data_source_test.go index 105b031756d0..379211116df2 100644 --- a/internal/services/storage/storage_share_data_source_test.go +++ b/internal/services/storage/storage_share_data_source_test.go @@ -9,16 +9,21 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" ) type dataSourceStorageShare struct{} -func TestAccDataSourceStorageShare_basic(t *testing.T) { +func TestAccDataSourceStorageShare_basicDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + data := acceptance.BuildTestData(t, "data.azurerm_storage_share", "test") data.DataSourceTest(t, []acceptance.TestStep{ { - Config: dataSourceStorageShare{}.basic(data), + Config: dataSourceStorageShare{}.basicDeprecated(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).Key("quota").HasValue("120"), check.That(data.ResourceName).Key("metadata.%").HasValue("2"), @@ -29,7 +34,23 @@ func TestAccDataSourceStorageShare_basic(t *testing.T) { }) } -func (d dataSourceStorageShare) basic(data acceptance.TestData) string { +func TestAccStorageShareDataSource_basic(t *testing.T) { + data := acceptance.BuildTestData(t, "data.azurerm_storage_share", "test") + + data.DataSourceTest(t, []acceptance.TestStep{ + { + Config: dataSourceStorageShare{}.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).Key("quota").HasValue("5"), + check.That(data.ResourceName).Key("metadata.%").HasValue("2"), + check.That(data.ResourceName).Key("metadata.hello").HasValue("world"), + check.That(data.ResourceName).Key("metadata.foo").HasValue("bar"), + ), + }, + }) +} + +func (d dataSourceStorageShare) basicDeprecated(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { features {} @@ -75,3 +96,14 @@ data "azurerm_storage_share" "test" { } `, data.RandomString, data.Locations.Primary, data.RandomString, data.RandomString) } + +func (d dataSourceStorageShare) basic(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +data "azurerm_storage_share" "test" { + name = azurerm_storage_share.test.name + storage_account_id = azurerm_storage_account.test.id +} +`, StorageShareResource{}.complete(data)) +} diff --git a/internal/services/storage/storage_share_directory_resource.go b/internal/services/storage/storage_share_directory_resource.go index 42412d484cde..c34aeb5bd24e 100644 --- a/internal/services/storage/storage_share_directory_resource.go +++ b/internal/services/storage/storage_share_directory_resource.go @@ -10,17 +10,14 @@ import ( "strconv" "time" - "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/helpers" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/blob/accounts" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/file/directories" @@ -65,35 +62,6 @@ func resourceStorageShareDirectory() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["storage_share_id"].Required = false - resource.Schema["storage_share_id"].Optional = true - resource.Schema["storage_share_id"].Computed = true - resource.Schema["storage_share_id"].ConflictsWith = []string{"share_name", "storage_account_name"} - - resource.Schema["storage_account_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - Deprecated: "the `share_name` and `storage_account_name` properties have been superseded by the `storage_share_id` property and will be removed in version 4.0 of the AzureRM provider", - ConflictsWith: []string{"storage_share_id"}, - RequiredWith: []string{"share_name"}, - ValidateFunc: validation.StringIsNotEmpty, - } - - resource.Schema["share_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ForceNew: true, - Deprecated: "the `share_name` and `storage_account_name` properties have been superseded by the `storage_share_id` property and will be removed in version 4.0 of the AzureRM provider", - ConflictsWith: []string{"storage_share_id"}, - RequiredWith: []string{"storage_account_name"}, - ValidateFunc: validation.StringIsNotEmpty, - } - } - return resource } @@ -114,32 +82,6 @@ func resourceStorageShareDirectoryCreate(d *pluginsdk.ResourceData, meta interfa if err != nil { return err } - } else if !features.FourPointOhBeta() { - // TODO: this is needed until `share_name` / `storage_account_name` are removed in favor of `storage_share_id` in v4.0 - // we will retrieve the storage account twice but this will make it easier to refactor later - storageAccountName := d.Get("storage_account_name").(string) - - account, err := storageClient.FindAccount(ctx, subscriptionId, storageAccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q: %v", storageAccountName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", storageAccountName) - } - - // Determine the file endpoint, so we can build a data plane ID - endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeFile) - if err != nil { - return fmt.Errorf("determining File endpoint: %v", err) - } - - // Parse the file endpoint as a data plane account ID - accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) - if err != nil { - return fmt.Errorf("parsing Account ID: %v", err) - } - - storageShareId = pointer.To(shares.NewShareID(*accountId, d.Get("share_name").(string))) } if storageShareId == nil { @@ -286,11 +228,6 @@ func resourceStorageShareDirectoryRead(d *pluginsdk.ResourceData, meta interface d.Set("name", id.DirectoryPath) d.Set("storage_share_id", storageShareId.ID()) - if !features.FourPointOhBeta() { - d.Set("storage_account_name", id.AccountId.AccountName) - d.Set("share_name", id.ShareName) - } - if err = d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { return fmt.Errorf("setting `metadata`: %v", err) } diff --git a/internal/services/storage/storage_share_directory_resource_test.go b/internal/services/storage/storage_share_directory_resource_test.go index 49b5790d4af5..09d624e16eeb 100644 --- a/internal/services/storage/storage_share_directory_resource_test.go +++ b/internal/services/storage/storage_share_directory_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/file/directories" @@ -50,60 +49,6 @@ func TestAccStorageShareDirectory_basicAzureADAuth(t *testing.T) { }) } -func TestAccStorageShareDirectory_basicDeprecated(t *testing.T) { - // TODO: remove test in v4.0 - if features.FourPointOhBeta() { - t.Skip("test not applicable in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_storage_share_directory", "test") - r := StorageShareDirectoryResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basicDeprecated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccStorageShareDirectory_migrateStorageShareId(t *testing.T) { - // TODO: remove test in v4.0 - if features.FourPointOhBeta() { - t.Skip("test not applicable in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_storage_share_directory", "test") - r := StorageShareDirectoryResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basicDeprecated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.basicDeprecated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccStorageShareDirectory_uppercase(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share_directory", "test") r := StorageShareDirectoryResource{} @@ -277,20 +222,6 @@ resource "azurerm_storage_share_directory" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString) } -func (r StorageShareDirectoryResource) basicDeprecated(data acceptance.TestData) string { - // TODO: remove in v4.0 - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_storage_share_directory" "test" { - name = "dir" - share_name = azurerm_storage_share.test.name - storage_account_name = azurerm_storage_account.test.name -} -`, template) -} - func (r StorageShareDirectoryResource) uppercase(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` diff --git a/internal/services/storage/storage_share_resource.go b/internal/services/storage/storage_share_resource.go index 76106cf93a3c..eabcfe900324 100644 --- a/internal/services/storage/storage_share_resource.go +++ b/internal/services/storage/storage_share_resource.go @@ -9,10 +9,17 @@ import ( "strings" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-helpers/lang/response" + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares" "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" + "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/custompollers" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/helpers" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/parse" @@ -25,14 +32,23 @@ import ( ) func resourceStorageShare() *pluginsdk.Resource { - return &pluginsdk.Resource{ + r := &pluginsdk.Resource{ Create: resourceStorageShareCreate, Read: resourceStorageShareRead, Update: resourceStorageShareUpdate, Delete: resourceStorageShareDelete, Importer: helpers.ImporterValidatingStorageResourceId(func(id, storageDomainSuffix string) error { - _, err := shares.ParseShareID(id, storageDomainSuffix) + if !features.FivePointOhBeta() { + if strings.HasPrefix(id, "/subscriptions") { + _, err := fileshares.ParseShareID(id) + return err + } + _, err := shares.ParseShareID(id, storageDomainSuffix) + return err + } + + _, err := fileshares.ParseShareID(id) return err }), @@ -57,10 +73,11 @@ func resourceStorageShare() *pluginsdk.Resource { ValidateFunc: validate.StorageShareName, }, - "storage_account_name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, + "storage_account_id": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: commonids.ValidateStorageAccountID, }, "quota": { @@ -71,6 +88,17 @@ func resourceStorageShare() *pluginsdk.Resource { "metadata": MetaDataComputedSchema(), + "enabled_protocol": { + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + ValidateFunc: validation.StringInSlice([]string{ + string(shares.SMB), + string(shares.NFS), + }, false), + Default: string(shares.SMB), + }, + "acl": { Type: pluginsdk.TypeSet, Optional: true, @@ -89,12 +117,12 @@ func resourceStorageShare() *pluginsdk.Resource { "start": { Type: pluginsdk.TypeString, Optional: true, - ValidateFunc: validation.StringIsNotEmpty, + ValidateFunc: validation.IsRFC3339Time, }, "expiry": { Type: pluginsdk.TypeString, Optional: true, - ValidateFunc: validation.StringIsNotEmpty, + ValidateFunc: validation.IsRFC3339Time, }, "permissions": { Type: pluginsdk.TypeString, @@ -108,22 +136,6 @@ func resourceStorageShare() *pluginsdk.Resource { }, }, - "enabled_protocol": { - Type: pluginsdk.TypeString, - Optional: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - string(shares.SMB), - string(shares.NFS), - }, false), - Default: string(shares.SMB), - }, - - "resource_manager_id": { - Type: pluginsdk.TypeString, - Computed: true, - }, - "url": { Type: pluginsdk.TypeString, Computed: true, @@ -143,153 +155,292 @@ func resourceStorageShare() *pluginsdk.Resource { }, }, } + + if !features.FivePointOhBeta() { + r.Schema["storage_account_name"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + ExactlyOneOf: []string{ + "storage_account_name", + "storage_account_id", + }, + Deprecated: "This property has been deprecated and will be replaced by `storage_account_id` in version 5.0 of the provider.", + } + + r.Schema["storage_account_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Optional: true, + ForceNew: true, + ExactlyOneOf: []string{ + "storage_account_name", + "storage_account_id", + }, + } + + r.Schema["resource_manager_id"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Computed: true, + Deprecated: "this property is deprecated and will be removed 5.0 and replaced by the `id` property.", + } + } + + return r } func resourceStorageShareCreate(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage subscriptionId := meta.(*clients.Client).Account.SubscriptionId + sharesClient := meta.(*clients.Client).Storage.ResourceManager.FileShares ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() - accountName := d.Get("storage_account_name").(string) - shareName := d.Get("name").(string) - quota := d.Get("quota").(int) + if !features.FivePointOhBeta() { + storageClient := meta.(*clients.Client).Storage + if accountName := d.Get("storage_account_name").(string); accountName != "" { + shareName := d.Get("name").(string) + quota := d.Get("quota").(int) + metaDataRaw := d.Get("metadata").(map[string]interface{}) + metaData := ExpandMetaData(metaDataRaw) - metaDataRaw := d.Get("metadata").(map[string]interface{}) - metaData := ExpandMetaData(metaDataRaw) + account, err := storageClient.FindAccount(ctx, subscriptionId, accountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Share %q: %v", accountName, shareName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q", accountName) + } - aclsRaw := d.Get("acl").(*pluginsdk.Set).List() - acls := expandStorageShareACLs(aclsRaw) + // Determine the file endpoint, so we can build a data plane ID + endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeFile) + if err != nil { + return fmt.Errorf("determining File endpoint: %v", err) + } - account, err := storageClient.FindAccount(ctx, subscriptionId, accountName) - if err != nil { - return fmt.Errorf("retrieving Account %q for Share %q: %v", accountName, shareName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", accountName) - } + // Parse the file endpoint as a data plane account ID + accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) + if err != nil { + return fmt.Errorf("parsing Account ID: %v", err) + } - // Determine the file endpoint, so we can build a data plane ID - endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeFile) - if err != nil { - return fmt.Errorf("determining File endpoint: %v", err) - } + id := shares.NewShareID(*accountId, shareName) - // Parse the file endpoint as a data plane account ID - accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) - if err != nil { - return fmt.Errorf("parsing Account ID: %v", err) - } + protocol := shares.ShareProtocol(d.Get("enabled_protocol").(string)) + if protocol == shares.NFS { + // Only FileStorage (whose sku tier is Premium only) storage account is able to have NFS file shares. + // See: https://learn.microsoft.com/en-us/azure/storage/files/storage-files-quick-create-use-linux#applies-to + if account.Kind != storageaccounts.KindFileStorage { + return fmt.Errorf("NFS File Share is only supported for Storage Account with kind %q but got `%s`", string(storageaccounts.KindFileStorage), account.Kind) + } + } + + // The files API does not support bearer tokens (@manicminer, 2024-02-15) + fileSharesDataPlaneClient, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + if err != nil { + return fmt.Errorf("building File Share Client: %v", err) + } + + exists, err := fileSharesDataPlaneClient.Exists(ctx, shareName) + if err != nil { + return fmt.Errorf("checking for existing %s: %v", id, err) + } + if exists != nil && *exists { + return tf.ImportAsExistsError("azurerm_storage_share", id.ID()) + } + + log.Printf("[INFO] Creating Share %q in Storage Account %q", shareName, accountName) + input := shares.CreateInput{ + QuotaInGB: quota, + MetaData: metaData, + EnabledProtocol: protocol, + } + + if accessTier := d.Get("access_tier").(string); accessTier != "" { + tier := shares.AccessTier(accessTier) + input.AccessTier = &tier + } - id := shares.NewShareID(*accountId, shareName) + if err = fileSharesDataPlaneClient.Create(ctx, shareName, input); err != nil { + return fmt.Errorf("creating %s: %v", id, err) + } + + d.SetId(id.ID()) + + aclsRaw := d.Get("acl").(*pluginsdk.Set).List() + acls := expandStorageShareACLsDeprecated(aclsRaw) + if err = fileSharesDataPlaneClient.UpdateACLs(ctx, shareName, shares.SetAclInput{SignedIdentifiers: acls}); err != nil { + return fmt.Errorf("setting ACLs for %s: %v", id, err) + } - protocol := shares.ShareProtocol(d.Get("enabled_protocol").(string)) - if protocol == shares.NFS { - // Only FileStorage (whose sku tier is Premium only) storage account is able to have NFS file shares. - // See: https://learn.microsoft.com/en-us/azure/storage/files/storage-files-quick-create-use-linux#applies-to - if account.Kind != storageaccounts.KindFileStorage { - return fmt.Errorf("NFS File Share is only supported for Storage Account with kind %q but got `%s`", string(storageaccounts.KindFileStorage), account.Kind) + return resourceStorageShareRead(d, meta) } } - // The files API does not support bearer tokens (@manicminer, 2024-02-15) - client, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + accountId, err := commonids.ParseStorageAccountID(d.Get("storage_account_id").(string)) if err != nil { - return fmt.Errorf("building File Share Client: %v", err) + return err } - exists, err := client.Exists(ctx, shareName) + id := fileshares.NewShareID(accountId.SubscriptionId, accountId.ResourceGroupName, accountId.StorageAccountName, d.Get("name").(string)) + + existing, err := sharesClient.Get(ctx, id, fileshares.DefaultGetOperationOptions()) if err != nil { - return fmt.Errorf("checking for existing %s: %v", id, err) + if !response.WasNotFound(existing.HttpResponse) { + return fmt.Errorf("checking for existing %q: %v", id, err) + } } - if exists != nil && *exists { + if !response.WasNotFound(existing.HttpResponse) { return tf.ImportAsExistsError("azurerm_storage_share", id.ID()) } - log.Printf("[INFO] Creating Share %q in Storage Account %q", shareName, accountName) - input := shares.CreateInput{ - QuotaInGB: quota, - MetaData: metaData, - EnabledProtocol: protocol, + payload := fileshares.FileShare{ + Properties: &fileshares.FileShareProperties{ + EnabledProtocols: pointer.To(fileshares.EnabledProtocols(d.Get("enabled_protocol").(string))), + Metadata: pointer.To(ExpandMetaData(d.Get("metadata").(map[string]interface{}))), + ShareQuota: pointer.To(int64(d.Get("quota").(int))), + SignedIdentifiers: expandStorageShareACLs(d.Get("acl").(*pluginsdk.Set).List()), + }, } - if accessTier := d.Get("access_tier").(string); accessTier != "" { - tier := shares.AccessTier(accessTier) - input.AccessTier = &tier + if sharedAccessTier, ok := d.GetOk("access_tier"); ok && sharedAccessTier.(string) != "" { + payload.Properties.AccessTier = pointer.To(fileshares.ShareAccessTier(sharedAccessTier.(string))) } - if err = client.Create(ctx, shareName, input); err != nil { + pollerType := custompollers.NewStorageShareCreatePoller(sharesClient, id, payload) + poller := pollers.NewPoller(pollerType, 5*time.Second, pollers.DefaultNumberOfDroppedConnectionsToAllow) + + if err = poller.PollUntilDone(ctx); err != nil { return fmt.Errorf("creating %s: %v", id, err) } d.SetId(id.ID()) - if err = client.UpdateACLs(ctx, shareName, shares.SetAclInput{SignedIdentifiers: acls}); err != nil { - return fmt.Errorf("setting ACLs for %s: %v", id, err) - } - return resourceStorageShareRead(d, meta) } func resourceStorageShareRead(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage + sharesClient := meta.(*clients.Client).Storage.ResourceManager.FileShares subscriptionId := meta.(*clients.Client).Account.SubscriptionId ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := shares.ParseShareID(d.Id(), storageClient.StorageDomainSuffix) - if err != nil { - return err - } + if !features.FivePointOhBeta() && !strings.HasPrefix(d.Id(), "/subscriptions/") { + storageClient := meta.(*clients.Client).Storage + id, err := shares.ParseShareID(d.Id(), storageClient.StorageDomainSuffix) + if err != nil { + return err + } + + account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Share %q: %v", id.AccountId.AccountName, id.ShareName, err) + } + if account == nil { + log.Printf("[WARN] Unable to determine Account %q for Storage Share %q - assuming removed & removing from state", id.AccountId.AccountName, id.ShareName) + d.SetId("") + return nil + } + + // The files API does not support bearer tokens (@manicminer, 2024-02-15) + client, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + if err != nil { + return fmt.Errorf("building File Share Client for %s: %+v", account.StorageAccountId, err) + } + + props, err := client.Get(ctx, id.ShareName) + if err != nil { + return err + } + if props == nil { + log.Printf("[DEBUG] File Share %q was not found in %s - assuming removed & removing from state", id.ShareName, account.StorageAccountId) + d.SetId("") + return nil + } + + d.Set("name", id.ShareName) + d.Set("storage_account_name", id.AccountId.AccountName) + d.Set("quota", props.QuotaGB) + d.Set("url", id.ID()) + d.Set("enabled_protocol", string(props.EnabledProtocol)) + + accessTier := "" + if props.AccessTier != nil { + accessTier = string(*props.AccessTier) + } + d.Set("access_tier", accessTier) + + if err := d.Set("acl", flattenStorageShareACLsDeprecated(props.ACLs)); err != nil { + return fmt.Errorf("flattening `acl`: %+v", err) + } + + if err := d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { + return fmt.Errorf("flattening `metadata`: %+v", err) + } + + resourceManagerId := parse.NewStorageShareResourceManagerID(account.StorageAccountId.SubscriptionId, account.StorageAccountId.ResourceGroupName, account.StorageAccountId.StorageAccountName, "default", id.ShareName) + d.Set("resource_manager_id", resourceManagerId.ID()) - account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q for Share %q: %v", id.AccountId.AccountName, id.ShareName, err) - } - if account == nil { - log.Printf("[WARN] Unable to determine Account %q for Storage Share %q - assuming removed & removing from state", id.AccountId.AccountName, id.ShareName) - d.SetId("") return nil } - // The files API does not support bearer tokens (@manicminer, 2024-02-15) - client, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + id, err := fileshares.ParseShareID(d.Id()) if err != nil { - return fmt.Errorf("building File Share Client for %s: %+v", account.StorageAccountId, err) + return err } - props, err := client.Get(ctx, id.ShareName) + existing, err := sharesClient.Get(ctx, *id, fileshares.DefaultGetOperationOptions()) if err != nil { - return err - } - if props == nil { - log.Printf("[DEBUG] File Share %q was not found in %s - assuming removed & removing from state", id.ShareName, account.StorageAccountId) - d.SetId("") - return nil + if response.WasNotFound(existing.HttpResponse) { + log.Printf("[DEBUG] %q was not found, removing from state", *id) + d.SetId("") + return nil + } + return fmt.Errorf("retrieving %s: %v", *id, err) } + d.Set("storage_account_id", commonids.NewStorageAccountID(id.SubscriptionId, id.ResourceGroupName, id.StorageAccountName).ID()) d.Set("name", id.ShareName) - d.Set("storage_account_name", id.AccountId.AccountName) - d.Set("quota", props.QuotaGB) - d.Set("url", id.ID()) - d.Set("enabled_protocol", string(props.EnabledProtocol)) - accessTier := "" - if props.AccessTier != nil { - accessTier = string(*props.AccessTier) + if model := existing.Model; model != nil { + if props := model.Properties; props != nil { + d.Set("quota", props.ShareQuota) + // Resource Manager treats nil and "SMB" as the same and we may not get a full response here + enabledProtocols := fileshares.EnabledProtocolsSMB + if props.EnabledProtocols != nil { + enabledProtocols = *props.EnabledProtocols + } + d.Set("enabled_protocol", string(enabledProtocols)) + d.Set("access_tier", string(pointer.From(props.AccessTier))) + d.Set("acl", flattenStorageShareACLs(pointer.From(props.SignedIdentifiers))) + d.Set("metadata", FlattenMetaData(pointer.From(props.Metadata))) + } + } + + if !features.FivePointOhBeta() { + d.Set("resource_manager_id", id.ID()) + } + + // TODO - The following section for `url` will need to be updated to go-azure-sdk when the Giovanni Deprecation process has been completed + account, err := meta.(*clients.Client).Storage.FindAccount(ctx, subscriptionId, id.StorageAccountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Share %q: %v", id.StorageAccountName, id.ShareName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q", id.StorageAccountName) } - d.Set("access_tier", accessTier) - if err := d.Set("acl", flattenStorageShareACLs(props.ACLs)); err != nil { - return fmt.Errorf("flattening `acl`: %+v", err) + // Determine the file endpoint, so we can build a data plane ID + endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeFile) + if err != nil { + return fmt.Errorf("determining File endpoint: %v", err) } - if err := d.Set("metadata", FlattenMetaData(props.MetaData)); err != nil { - return fmt.Errorf("flattening `metadata`: %+v", err) + // Parse the file endpoint as a data plane account ID + accountId, err := accounts.ParseAccountID(*endpoint, meta.(*clients.Client).Storage.StorageDomainSuffix) + if err != nil { + return fmt.Errorf("parsing Account ID: %v", err) } - resourceManagerId := parse.NewStorageShareResourceManagerID(account.StorageAccountId.SubscriptionId, account.StorageAccountId.ResourceGroupName, account.StorageAccountId.StorageAccountName, "default", id.ShareName) - d.Set("resource_manager_id", resourceManagerId.ID()) + d.Set("url", shares.NewShareID(*accountId, id.ShareName).ID()) return nil } @@ -297,126 +448,179 @@ func resourceStorageShareRead(d *pluginsdk.ResourceData, meta interface{}) error func resourceStorageShareUpdate(d *pluginsdk.ResourceData, meta interface{}) error { storageClient := meta.(*clients.Client).Storage subscriptionId := meta.(*clients.Client).Account.SubscriptionId + sharesClient := meta.(*clients.Client).Storage.ResourceManager.FileShares ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := shares.ParseShareID(d.Id(), storageClient.StorageDomainSuffix) - if err != nil { - return err + if !features.FivePointOhBeta() && !strings.HasPrefix(d.Id(), "/subscriptions/") { + id, err := shares.ParseShareID(d.Id(), storageClient.StorageDomainSuffix) + if err != nil { + return err + } + + account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Share %q: %v", id.AccountId.AccountName, id.ShareName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q", id.AccountId.AccountName) + } + + // The files API does not support bearer tokens (@manicminer, 2024-02-15) + client, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + if err != nil { + return fmt.Errorf("building File Share Client for %s: %+v", account.StorageAccountId, err) + } + + if d.HasChange("quota") { + log.Printf("[DEBUG] Updating the Quota for %s", id) + quota := d.Get("quota").(int) + + if err = client.UpdateQuota(ctx, id.ShareName, quota); err != nil { + return fmt.Errorf("updating Quota for %s: %v", id, err) + } + + log.Printf("[DEBUG] Updated the Quota for %s", id) + } + + if d.HasChange("metadata") { + log.Printf("[DEBUG] Updating the MetaData for %s", id) + + metaDataRaw := d.Get("metadata").(map[string]interface{}) + metaData := ExpandMetaData(metaDataRaw) + + if err = client.UpdateMetaData(ctx, id.ShareName, metaData); err != nil { + return fmt.Errorf("updating MetaData for %s: %v", id, err) + } + + log.Printf("[DEBUG] Updated the MetaData for %s", id) + } + + if d.HasChange("acl") { + log.Printf("[DEBUG] Updating the ACLs for %s", id) + + aclsRaw := d.Get("acl").(*pluginsdk.Set).List() + acls := expandStorageShareACLsDeprecated(aclsRaw) + + if err = client.UpdateACLs(ctx, id.ShareName, shares.SetAclInput{SignedIdentifiers: acls}); err != nil { + return fmt.Errorf("updating ACLs for %s: %v", id, err) + } + + log.Printf("[DEBUG] Updated ACLs for %s", id) + } + + if d.HasChange("access_tier") { + tier := shares.AccessTier(d.Get("access_tier").(string)) + err = pluginsdk.Retry(d.Timeout(pluginsdk.TimeoutUpdate), func() *pluginsdk.RetryError { + err = client.UpdateTier(ctx, id.ShareName, tier) + if err != nil { + if strings.Contains(err.Error(), "Cannot change access tier at this moment") { + return pluginsdk.RetryableError(err) + } + return pluginsdk.NonRetryableError(err) + } + time.Sleep(30 * time.Second) + return nil + }) + if err != nil { + return fmt.Errorf("updating access tier %s: %+v", id, err) + } + + log.Printf("[DEBUG] Updated Access Tier for %s", id) + } + + return resourceStorageShareRead(d, meta) } - account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) + id, err := fileshares.ParseShareID(d.Id()) if err != nil { - return fmt.Errorf("retrieving Account %q for Share %q: %v", id.AccountId.AccountName, id.ShareName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", id.AccountId.AccountName) + return err } - // The files API does not support bearer tokens (@manicminer, 2024-02-15) - client, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) - if err != nil { - return fmt.Errorf("building File Share Client for %s: %+v", account.StorageAccountId, err) + update := fileshares.FileShare{ + Properties: &fileshares.FileShareProperties{}, } if d.HasChange("quota") { - log.Printf("[DEBUG] Updating the Quota for %s", id) quota := d.Get("quota").(int) - - if err = client.UpdateQuota(ctx, id.ShareName, quota); err != nil { - return fmt.Errorf("updating Quota for %s: %v", id, err) - } - - log.Printf("[DEBUG] Updated the Quota for %s", id) + update.Properties.ShareQuota = pointer.To(int64(quota)) } if d.HasChange("metadata") { - log.Printf("[DEBUG] Updating the MetaData for %s", id) - metaDataRaw := d.Get("metadata").(map[string]interface{}) metaData := ExpandMetaData(metaDataRaw) - if err = client.UpdateMetaData(ctx, id.ShareName, metaData); err != nil { - return fmt.Errorf("updating MetaData for %s: %v", id, err) - } - - log.Printf("[DEBUG] Updated the MetaData for %s", id) + update.Properties.Metadata = pointer.To(metaData) } if d.HasChange("acl") { - log.Printf("[DEBUG] Updating the ACLs for %s", id) - - aclsRaw := d.Get("acl").(*pluginsdk.Set).List() - acls := expandStorageShareACLs(aclsRaw) - - if err = client.UpdateACLs(ctx, id.ShareName, shares.SetAclInput{SignedIdentifiers: acls}); err != nil { - return fmt.Errorf("updating ACLs for %s: %v", id, err) - } - - log.Printf("[DEBUG] Updated ACLs for %s", id) + update.Properties.SignedIdentifiers = expandStorageShareACLs(d.Get("acl").(*pluginsdk.Set).List()) } if d.HasChange("access_tier") { - log.Printf("[DEBUG] Updating Access Tier for %s", id) - tier := shares.AccessTier(d.Get("access_tier").(string)) - err = pluginsdk.Retry(d.Timeout(pluginsdk.TimeoutUpdate), func() *pluginsdk.RetryError { - err = client.UpdateTier(ctx, id.ShareName, tier) - if err != nil { - if strings.Contains(err.Error(), "Cannot change access tier at this moment") { - return pluginsdk.RetryableError(err) - } - return pluginsdk.NonRetryableError(err) - } - time.Sleep(30 * time.Second) - return nil - }) - if err != nil { - return fmt.Errorf("updating access tier %s: %+v", id, err) - } + update.Properties.AccessTier = pointer.To(fileshares.ShareAccessTier(tier)) + } - log.Printf("[DEBUG] Updated Access Tier for %s", id) + if _, err = sharesClient.Update(ctx, *id, update); err != nil { + return fmt.Errorf("updating %s: %v", id, err) } return resourceStorageShareRead(d, meta) } func resourceStorageShareDelete(d *pluginsdk.ResourceData, meta interface{}) error { - storageClient := meta.(*clients.Client).Storage subscriptionId := meta.(*clients.Client).Account.SubscriptionId + fileSharesClient := meta.(*clients.Client).Storage.ResourceManager.FileShares ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() - id, err := shares.ParseShareID(d.Id(), storageClient.StorageDomainSuffix) - if err != nil { - return err - } + if !features.FivePointOhBeta() && !strings.HasPrefix(d.Id(), "/subscriptions/") { + storageClient := meta.(*clients.Client).Storage + id, err := shares.ParseShareID(d.Id(), storageClient.StorageDomainSuffix) + if err != nil { + return err + } - account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q for Share %q: %v", id.AccountId.AccountName, id.ShareName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", id.AccountId.AccountName) + account, err := storageClient.FindAccount(ctx, subscriptionId, id.AccountId.AccountName) + if err != nil { + return fmt.Errorf("retrieving Account %q for Share %q: %v", id.AccountId.AccountName, id.ShareName, err) + } + if account == nil { + return fmt.Errorf("locating Storage Account %q", id.AccountId.AccountName) + } + + // The files API does not support bearer tokens (@manicminer, 2024-02-15) + client, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + if err != nil { + return fmt.Errorf("building File Share Client for %s: %+v", account.StorageAccountId, err) + } + + if err = client.Delete(ctx, id.ShareName); err != nil { + if strings.Contains(err.Error(), "The specified share does not exist") { + return nil + } + return fmt.Errorf("deleting %s: %v", id, err) + } + + return nil } - // The files API does not support bearer tokens (@manicminer, 2024-02-15) - client, err := storageClient.FileSharesDataPlaneClient(ctx, *account, storageClient.DataPlaneOperationSupportingOnlySharedKeyAuth()) + id, err := fileshares.ParseShareID(d.Id()) if err != nil { - return fmt.Errorf("building File Share Client for %s: %+v", account.StorageAccountId, err) + return err } - if err = client.Delete(ctx, id.ShareName); err != nil { - if strings.Contains(err.Error(), "The specified share does not exist") { - return nil + if resp, err := fileSharesClient.Delete(ctx, *id, fileshares.DefaultDeleteOperationOptions()); err != nil { + if !response.WasNotFound(resp.HttpResponse) { + return fmt.Errorf("deleting %s: %v", id, err) } - return fmt.Errorf("deleting %s: %v", id, err) } return nil } -func expandStorageShareACLs(input []interface{}) []shares.SignedIdentifier { +func expandStorageShareACLsDeprecated(input []interface{}) []shares.SignedIdentifier { results := make([]shares.SignedIdentifier, 0) for _, v := range input { @@ -439,7 +643,7 @@ func expandStorageShareACLs(input []interface{}) []shares.SignedIdentifier { return results } -func flattenStorageShareACLs(input []shares.SignedIdentifier) []interface{} { +func flattenStorageShareACLsDeprecated(input []shares.SignedIdentifier) []interface{} { result := make([]interface{}, 0) for _, v := range input { @@ -459,3 +663,47 @@ func flattenStorageShareACLs(input []shares.SignedIdentifier) []interface{} { return result } + +func expandStorageShareACLs(input []interface{}) *[]fileshares.SignedIdentifier { + results := make([]fileshares.SignedIdentifier, 0) + + for _, v := range input { + acl := v.(map[string]interface{}) + + policies := acl["access_policy"].([]interface{}) + policy := policies[0].(map[string]interface{}) + + identifier := fileshares.SignedIdentifier{ + Id: pointer.To(acl["id"].(string)), + AccessPolicy: &fileshares.AccessPolicy{ + StartTime: pointer.To(policy["start"].(string)), + ExpiryTime: pointer.To(policy["expiry"].(string)), + Permission: pointer.To(policy["permissions"].(string)), + }, + } + results = append(results, identifier) + } + + return pointer.To(results) +} + +func flattenStorageShareACLs(input []fileshares.SignedIdentifier) []interface{} { + result := make([]interface{}, 0) + + for _, v := range input { + output := map[string]interface{}{ + "id": v.Id, + "access_policy": []interface{}{ + map[string]interface{}{ + "start": v.AccessPolicy.StartTime, + "expiry": v.AccessPolicy.ExpiryTime, + "permissions": v.AccessPolicy.Permission, + }, + }, + } + + result = append(result, output) + } + + return result +} diff --git a/internal/services/storage/storage_share_resource_test.go b/internal/services/storage/storage_share_resource_test.go index e85955af5041..832930121a28 100644 --- a/internal/services/storage/storage_share_resource_test.go +++ b/internal/services/storage/storage_share_resource_test.go @@ -6,18 +6,40 @@ package storage_test import ( "context" "fmt" + "strings" "testing" + "github.com/hashicorp/go-azure-helpers/lang/pointer" + "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/file/shares" ) type StorageShareResource struct{} +func TestAccStorageShare_basicDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("enabled_protocol").HasValue("SMB"), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageShare_basic(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} @@ -27,13 +49,46 @@ func TestAccStorageShare_basic(t *testing.T) { Config: r.basic(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("enabled_protocol").HasValue("SMB"), ), }, data.ImportStep(), }) } +func TestAccStorageShare_complete(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.complete(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageShare_requiresImportDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.RequiresImportErrorStep(r.requiresImportDeprecated), + }) +} + func TestAccStorageShare_requiresImport(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} @@ -49,25 +104,32 @@ func TestAccStorageShare_requiresImport(t *testing.T) { }) } -func TestAccStorageShare_disappears(t *testing.T) { +func TestAccStorageShare_disappearsDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} data.ResourceTest(t, r, []acceptance.TestStep{ data.DisappearsStep(acceptance.DisappearsStepData{ - Config: r.basic, + Config: r.basicDeprecated, TestResource: r, }), }) } -func TestAccStorageShare_deleteAndRecreate(t *testing.T) { +func TestAccStorageShare_deleteAndRecreateDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { - Config: r.basic(data), + Config: r.basicDeprecated(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -77,7 +139,33 @@ func TestAccStorageShare_deleteAndRecreate(t *testing.T) { Config: r.template(data), }, { - Config: r.basic(data), + Config: r.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageShare_metaDataDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.metaDataDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.metaDataUpdatedDeprecated(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ), @@ -108,11 +196,44 @@ func TestAccStorageShare_metaData(t *testing.T) { }) } +func TestAccStorageShare_aclDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.aclDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.aclUpdatedDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageShare_acl(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), { Config: r.acl(data), Check: acceptance.ComposeTestCheckFunc( @@ -127,6 +248,32 @@ func TestAccStorageShare_acl(t *testing.T) { ), }, data.ImportStep(), + { + Config: r.basic(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + +func TestAccStorageShare_aclGhostedRecallDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.aclGhostedRecallDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), }) } @@ -145,6 +292,31 @@ func TestAccStorageShare_aclGhostedRecall(t *testing.T) { }) } +func TestAccStorageShare_updateQuotaDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.basicDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + { + Config: r.updateQuotaDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("quota").HasValue("5"), + ), + }, + }) +} + func TestAccStorageShare_updateQuota(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} @@ -166,6 +338,32 @@ func TestAccStorageShare_updateQuota(t *testing.T) { }) } +func TestAccStorageShare_largeQuotaDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.largeQuotaDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.largeQuotaUpdateDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageShare_largeQuota(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} @@ -188,6 +386,32 @@ func TestAccStorageShare_largeQuota(t *testing.T) { }) } +func TestAccStorageShare_accessTierStandardDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.accessTierStandardDeprecated(data, "Cool"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.accessTierStandardDeprecated(data, "Hot"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageShare_accessTierStandard(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} @@ -210,6 +434,25 @@ func TestAccStorageShare_accessTierStandard(t *testing.T) { }) } +func TestAccStorageShare_accessTierPremiumDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.accessTierPremiumDeprecated(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageShare_accessTierPremium(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} @@ -225,6 +468,25 @@ func TestAccStorageShare_accessTierPremium(t *testing.T) { }) } +func TestAccStorageShare_nfsProtocolDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.protocolDeprecated(data, "NFS"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageShare_nfsProtocol(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} @@ -241,6 +503,32 @@ func TestAccStorageShare_nfsProtocol(t *testing.T) { } // TestAccStorageShare_protocolUpdate is to ensure destroy-then-create of the storage share can tolerant the "ShareBeingDeleted" issue. +func TestAccStorageShare_protocolUpdateDeprecated(t *testing.T) { + if features.FivePointOhBeta() { + t.Skip("skipping as not valid in 5.0") + } + + data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") + r := StorageShareResource{} + + data.ResourceTestIgnoreRecreate(t, r, []acceptance.TestStep{ + { + Config: r.protocolDeprecated(data, "NFS"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + { + Config: r.protocolDeprecated(data, "SMB"), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccStorageShare_protocolUpdate(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_share", "test") r := StorageShareResource{} @@ -264,32 +552,46 @@ func TestAccStorageShare_protocolUpdate(t *testing.T) { } func (r StorageShareResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := shares.ParseShareID(state.ID, client.Storage.StorageDomainSuffix) - if err != nil { - return nil, err - } - - account, err := client.Storage.FindAccount(ctx, client.Account.SubscriptionId, id.AccountId.AccountName) - if err != nil { - return nil, fmt.Errorf("retrieving Account %q for Share %q: %+v", id.AccountId.AccountName, id.ShareName, err) - } - if account == nil { - return nil, fmt.Errorf("unable to determine Account %q for Storage Share %q", id.AccountId.AccountName, id.ShareName) + if !features.FivePointOhBeta() && !strings.HasPrefix(state.ID, "/subscriptions") { + id, err := shares.ParseShareID(state.ID, client.Storage.StorageDomainSuffix) + if err != nil { + return nil, err + } + + account, err := client.Storage.FindAccount(ctx, client.Account.SubscriptionId, id.AccountId.AccountName) + if err != nil { + return nil, fmt.Errorf("retrieving Account %q for Share %q: %+v", id.AccountId.AccountName, id.ShareName, err) + } + if account == nil { + return nil, fmt.Errorf("unable to determine Account %q for Storage Share %q", id.AccountId.AccountName, id.ShareName) + } + + sharesClient, err := client.Storage.FileSharesDataPlaneClient(ctx, *account, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) + if err != nil { + return nil, fmt.Errorf("building File Share Client for %s: %+v", account.StorageAccountId, err) + } + + props, err := sharesClient.Get(ctx, id.ShareName) + if err != nil { + return nil, fmt.Errorf("retrieving File Share %q in %s: %+v", id.ShareName, account.StorageAccountId, err) + } + + return pointer.To(props != nil), nil } - sharesClient, err := client.Storage.FileSharesDataPlaneClient(ctx, *account, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) + id, err := fileshares.ParseShareID(state.ID) if err != nil { - return nil, fmt.Errorf("building File Share Client for %s: %+v", account.StorageAccountId, err) + return nil, err } - - props, err := sharesClient.Get(ctx, id.ShareName) + existing, err := client.Storage.ResourceManager.FileShares.Get(ctx, *id, fileshares.DefaultGetOperationOptions()) if err != nil { - return nil, fmt.Errorf("retrieving File Share %q in %s: %+v", id.ShareName, account.StorageAccountId, err) + return nil, fmt.Errorf("retrieving %s: %+v", id, err) } - return utils.Bool(props != nil), nil + return pointer.To(existing.Model != nil), nil } +// Destroy is deprecated for this resource. From 5.0 this will no longer use the Data Plane client. func (r StorageShareResource) Destroy(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := shares.ParseShareID(state.ID, client.Storage.StorageDomainSuffix) if err != nil { @@ -312,10 +614,10 @@ func (r StorageShareResource) Destroy(ctx context.Context, client *clients.Clien return nil, fmt.Errorf("deleting File Share %q in %s: %+v", id.ShareName, account.StorageAccountId, err) } - return utils.Bool(true), nil + return pointer.To(true), nil } -func (r StorageShareResource) basic(data acceptance.TestData) string { +func (r StorageShareResource) basicDeprecated(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s @@ -328,24 +630,84 @@ resource "azurerm_storage_share" "test" { `, template, data.RandomString) } -func (r StorageShareResource) metaData(data acceptance.TestData) string { +func (r StorageShareResource) basic(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s resource "azurerm_storage_share" "test" { - name = "testshare%s" - storage_account_name = azurerm_storage_account.test.name - quota = 5 + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 5 +} +`, template, data.RandomString) +} + +func (r StorageShareResource) complete(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 5 + access_tier = "Cool" + enabled_protocol = "SMB" + + acl { + id = "MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI" + + access_policy { + permissions = "rwd" + start = "2019-07-02T09:38:21Z" + expiry = "2019-07-02T10:38:21Z" + } + } metadata = { hello = "world" + foo = "bar" } } `, template, data.RandomString) } -func (r StorageShareResource) metaDataUpdated(data acceptance.TestData) string { +func (r StorageShareResource) metaDataDeprecated(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_name = azurerm_storage_account.test.name + quota = 5 + + metadata = { + hello = "world" + } +} +`, template, data.RandomString) +} + +func (r StorageShareResource) metaData(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 5 + + metadata = { + hello = "world" + } +} +`, template, data.RandomString) +} + +func (r StorageShareResource) metaDataUpdatedDeprecated(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s @@ -363,7 +725,25 @@ resource "azurerm_storage_share" "test" { `, template, data.RandomString) } -func (r StorageShareResource) acl(data acceptance.TestData) string { +func (r StorageShareResource) metaDataUpdated(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 5 + + metadata = { + hello = "world" + happy = "birthday" + } +} +`, template, data.RandomString) +} + +func (r StorageShareResource) aclDeprecated(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s @@ -386,7 +766,30 @@ resource "azurerm_storage_share" "test" { `, template, data.RandomString) } -func (r StorageShareResource) aclGhostedRecall(data acceptance.TestData) string { +func (r StorageShareResource) acl(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 5 + + acl { + id = "MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI" + + access_policy { + permissions = "rwd" + start = "2019-07-02T09:38:21Z" + expiry = "2019-07-02T10:38:21Z" + } + } +} +`, template, data.RandomString) +} + +func (r StorageShareResource) aclGhostedRecallDeprecated(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s @@ -406,7 +809,27 @@ resource "azurerm_storage_share" "test" { `, template, data.RandomString) } -func (r StorageShareResource) aclUpdated(data acceptance.TestData) string { +func (r StorageShareResource) aclGhostedRecall(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 5 + + acl { + id = "GhostedRecall" + access_policy { + permissions = "r" + } + } +} +`, template, data.RandomString) +} + +func (r StorageShareResource) aclUpdatedDeprecated(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s @@ -438,20 +861,64 @@ resource "azurerm_storage_share" "test" { `, template, data.RandomString) } -func (r StorageShareResource) requiresImport(data acceptance.TestData) string { - template := r.basic(data) +func (r StorageShareResource) aclUpdated(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 5 + + acl { + id = "AAAANDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI" + + access_policy { + permissions = "rwd" + start = "2019-07-02T09:38:21Z" + expiry = "2019-07-02T10:38:21Z" + } + } + acl { + id = "MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI" + + access_policy { + permissions = "rwd" + start = "2019-07-02T09:38:21Z" + expiry = "2019-07-02T10:38:21Z" + } + } +} +`, template, data.RandomString) +} + +func (r StorageShareResource) requiresImportDeprecated(data acceptance.TestData) string { + template := r.basicDeprecated(data) return fmt.Sprintf(` %s resource "azurerm_storage_share" "import" { name = azurerm_storage_share.test.name storage_account_name = azurerm_storage_share.test.storage_account_name - quota = 5 + quota = azurerm_storage_share.test.quota } `, template) } -func (r StorageShareResource) updateQuota(data acceptance.TestData) string { +func (r StorageShareResource) requiresImport(data acceptance.TestData) string { + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "import" { + name = azurerm_storage_share.test.name + storage_account_id = azurerm_storage_share.test.storage_account_id + quota = azurerm_storage_share.test.quota +} +`, r.basic(data)) +} + +func (r StorageShareResource) updateQuotaDeprecated(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` %s @@ -464,7 +931,20 @@ resource "azurerm_storage_share" "test" { `, template, data.RandomString) } -func (r StorageShareResource) largeQuota(data acceptance.TestData) string { +func (r StorageShareResource) updateQuota(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 5 +} +`, template, data.RandomString) +} + +func (r StorageShareResource) largeQuotaDeprecated(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { features {} @@ -496,7 +976,39 @@ resource "azurerm_storage_share" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString) } -func (r StorageShareResource) largeQuotaUpdate(data acceptance.TestData) string { +func (r StorageShareResource) largeQuota(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-storageshare-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "acctestshare%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Premium" + account_replication_type = "LRS" + account_kind = "FileStorage" + + tags = { + environment = "staging" + } +} + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 6000 +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString) +} + +func (r StorageShareResource) largeQuotaUpdateDeprecated(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { features {} @@ -528,7 +1040,39 @@ resource "azurerm_storage_share" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString) } -func (r StorageShareResource) accessTierStandard(data acceptance.TestData, tier string) string { +func (r StorageShareResource) largeQuotaUpdate(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-storageshare-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "acctestshare%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Premium" + account_replication_type = "LRS" + account_kind = "FileStorage" + + tags = { + environment = "staging" + } +} + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 10000 +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString) +} + +func (r StorageShareResource) accessTierStandardDeprecated(data acceptance.TestData, tier string) string { return fmt.Sprintf(` provider "azurerm" { features {} @@ -559,7 +1103,38 @@ resource "azurerm_storage_share" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString, tier) } -func (r StorageShareResource) accessTierPremium(data acceptance.TestData) string { +func (r StorageShareResource) accessTierStandard(data acceptance.TestData, tier string) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} + storage_use_azuread = true +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "acctestacc%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Standard" + account_replication_type = "LRS" + account_kind = "StorageV2" +} + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 100 + enabled_protocol = "SMB" + access_tier = "%s" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString, tier) +} + +func (r StorageShareResource) accessTierPremiumDeprecated(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { features {} @@ -589,7 +1164,37 @@ resource "azurerm_storage_share" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString) } -func (r StorageShareResource) protocol(data acceptance.TestData, protocol string) string { +func (r StorageShareResource) accessTierPremium(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "acctestacc%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_tier = "Premium" + account_replication_type = "LRS" + account_kind = "FileStorage" +} + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + quota = 100 + enabled_protocol = "SMB" + access_tier = "Premium" +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString) +} + +func (r StorageShareResource) protocolDeprecated(data acceptance.TestData, protocol string) string { return fmt.Sprintf(` provider "azurerm" { features {} @@ -618,6 +1223,35 @@ resource "azurerm_storage_share" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString, protocol) } +func (r StorageShareResource) protocol(data acceptance.TestData, protocol string) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +resource "azurerm_resource_group" "test" { + name = "acctestRG-%d" + location = "%s" +} + +resource "azurerm_storage_account" "test" { + name = "acctestacc%s" + resource_group_name = azurerm_resource_group.test.name + location = azurerm_resource_group.test.location + account_kind = "FileStorage" + account_tier = "Premium" + account_replication_type = "LRS" +} + +resource "azurerm_storage_share" "test" { + name = "testshare%s" + storage_account_id = azurerm_storage_account.test.id + enabled_protocol = "%s" + quota = 100 +} +`, data.RandomInteger, data.Locations.Primary, data.RandomString, data.RandomString, protocol) +} + func (r StorageShareResource) template(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/storage/storage_sync_cloud_endpoint_resource_test.go b/internal/services/storage/storage_sync_cloud_endpoint_resource_test.go index c67026ba0485..f20fa0e94dbb 100644 --- a/internal/services/storage/storage_sync_cloud_endpoint_resource_test.go +++ b/internal/services/storage/storage_sync_cloud_endpoint_resource_test.go @@ -122,6 +122,10 @@ resource "azurerm_storage_sync_cloud_endpoint" "import" { func (r StorageSyncCloudEndpointResource) template(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-StorageSync-%[1]d" location = "%[2]s" diff --git a/internal/services/storage/storage_sync_resource_test.go b/internal/services/storage/storage_sync_resource_test.go index 630a8aca6b3d..f10a19485caa 100644 --- a/internal/services/storage/storage_sync_resource_test.go +++ b/internal/services/storage/storage_sync_resource_test.go @@ -107,6 +107,10 @@ func (r StorageSyncResource) Exists(ctx context.Context, client *clients.Client, func (r StorageSyncResource) basic(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-ss-%d" location = "%s" @@ -138,6 +142,10 @@ resource "azurerm_storage_sync" "import" { func (r StorageSyncResource) complete(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-ss-%d" location = "%s" diff --git a/internal/services/storage/storage_table_data_source.go b/internal/services/storage/storage_table_data_source.go index d9fefb979dc6..749ba84896d5 100644 --- a/internal/services/storage/storage_table_data_source.go +++ b/internal/services/storage/storage_table_data_source.go @@ -167,7 +167,11 @@ func (k storageTableDataSource) Read() sdk.ResourceFunc { } func flattenStorageTableACLsWithMetadata(acls *[]tables.SignedIdentifier) []ACLModel { - var output []ACLModel + if acls == nil { + return []ACLModel{} + } + + output := make([]ACLModel, 0, len(*acls)) for _, acl := range *acls { var accessPolicies []AccessPolicyModel for _, policy := range []tables.AccessPolicy{acl.AccessPolicy} { diff --git a/internal/services/storage/storage_table_entities_data_source.go b/internal/services/storage/storage_table_entities_data_source.go index 3007fcb8252c..72b17e2f879d 100644 --- a/internal/services/storage/storage_table_entities_data_source.go +++ b/internal/services/storage/storage_table_entities_data_source.go @@ -10,16 +10,11 @@ import ( "strings" "time" - "github.com/hashicorp/go-azure-helpers/lang/pointer" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/tombuildsstuff/giovanni/storage/2023-11-03/blob/accounts" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/table/entities" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/table/tables" ) @@ -66,33 +61,6 @@ func (k storageTableEntitiesDataSource) Arguments() map[string]*pluginsdk.Schema }, } - if !features.FourPointOhBeta() { - s["storage_table_id"].Required = false - s["storage_table_id"].Optional = true - s["storage_table_id"].Computed = true - s["storage_table_id"].ConflictsWith = []string{"table_name", "storage_account_name"} - - s["table_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - Deprecated: "the `table_name` and `storage_account_name` properties have been superseded by the `storage_table_id` property and will be removed in version 4.0 of the AzureRM provider", - ConflictsWith: []string{"storage_table_id"}, - RequiredWith: []string{"storage_account_name"}, - ValidateFunc: validate.StorageTableName, - } - - s["storage_account_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - Deprecated: "the `table_name` and `storage_account_name` properties have been superseded by the `storage_table_id` property and will be removed in version 4.0 of the AzureRM provider", - ConflictsWith: []string{"storage_table_id"}, - RequiredWith: []string{"table_name"}, - ValidateFunc: validate.StorageAccountName, - } - } - return s } @@ -153,32 +121,6 @@ func (k storageTableEntitiesDataSource) Read() sdk.ResourceFunc { if err != nil { return err } - } else if !features.FourPointOhBeta() { - // TODO: this is needed until `table_name` / `storage_account_name` are removed in favor of `storage_table_id` in v4.0 - // we will retrieve the storage account twice but this will make it easier to refactor later - storageAccountName := model.StorageAccountName - - account, err := storageClient.FindAccount(ctx, subscriptionId, storageAccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q: %v", storageAccountName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", storageAccountName) - } - - // Determine the table endpoint, so we can build a data plane ID - endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeTable) - if err != nil { - return fmt.Errorf("determining Table endpoint: %v", err) - } - - // Parse the table endpoint as a data plane account ID - accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) - if err != nil { - return fmt.Errorf("parsing Account ID: %v", err) - } - - storageTableId = pointer.To(tables.NewTableID(*accountId, model.TableName)) } if storageTableId == nil { diff --git a/internal/services/storage/storage_table_entity_data_source.go b/internal/services/storage/storage_table_entity_data_source.go index 4ac9decf425e..3e329f67d0ef 100644 --- a/internal/services/storage/storage_table_entity_data_source.go +++ b/internal/services/storage/storage_table_entity_data_source.go @@ -7,11 +7,8 @@ import ( "fmt" "time" - "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -58,33 +55,6 @@ func dataSourceStorageTableEntity() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["storage_table_id"].Required = false - resource.Schema["storage_table_id"].Optional = true - resource.Schema["storage_table_id"].Computed = true - resource.Schema["storage_table_id"].ConflictsWith = []string{"table_name", "storage_account_name"} - - resource.Schema["table_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - Deprecated: "the `table_name` and `storage_account_name` properties have been superseded by the `storage_table_id` property and will be removed in version 4.0 of the AzureRM provider", - ConflictsWith: []string{"storage_table_id"}, - RequiredWith: []string{"storage_account_name"}, - ValidateFunc: validate.StorageTableName, - } - - resource.Schema["storage_account_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - Deprecated: "the `table_name` and `storage_account_name` properties have been superseded by the `storage_table_id` property and will be removed in version 4.0 of the AzureRM provider", - ConflictsWith: []string{"storage_table_id"}, - RequiredWith: []string{"table_name"}, - ValidateFunc: validate.StorageAccountName, - } - } - return resource } @@ -104,32 +74,6 @@ func dataSourceStorageTableEntityRead(d *pluginsdk.ResourceData, meta interface{ if err != nil { return err } - } else if !features.FourPointOhBeta() { - // TODO: this is needed until `table_name` / `storage_account_name` are removed in favor of `storage_table_id` in v4.0 - // we will retrieve the storage account twice but this will make it easier to refactor later - storageAccountName := d.Get("storage_account_name").(string) - - account, err := storageClient.FindAccount(ctx, subscriptionId, storageAccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q: %v", storageAccountName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", storageAccountName) - } - - // Determine the table endpoint, so we can build a data plane ID - endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeTable) - if err != nil { - return fmt.Errorf("determining Table endpoint: %v", err) - } - - // Parse the table endpoint as a data plane account ID - accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) - if err != nil { - return fmt.Errorf("parsing Account ID: %v", err) - } - - storageTableId = pointer.To(tables.NewTableID(*accountId, d.Get("table_name").(string))) } if storageTableId == nil { @@ -176,11 +120,6 @@ func dataSourceStorageTableEntityRead(d *pluginsdk.ResourceData, meta interface{ d.Set("partition_key", partitionKey) d.Set("row_key", rowKey) - if !features.FourPointOhBeta() { - d.Set("storage_account_name", id.AccountId.AccountName) - d.Set("table_name", id.TableName) - } - if err = d.Set("entity", flattenEntity(result.Entity)); err != nil { return fmt.Errorf("setting `entity` for %s: %v", id, err) } diff --git a/internal/services/storage/storage_table_entity_resource.go b/internal/services/storage/storage_table_entity_resource.go index 355abba6422a..0a831f1bc840 100644 --- a/internal/services/storage/storage_table_entity_resource.go +++ b/internal/services/storage/storage_table_entity_resource.go @@ -9,14 +9,10 @@ import ( "strings" "time" - "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/client" "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/helpers" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" storageValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -76,33 +72,6 @@ func resourceStorageTableEntity() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["storage_table_id"].Required = false - resource.Schema["storage_table_id"].Optional = true - resource.Schema["storage_table_id"].Computed = true - resource.Schema["storage_table_id"].ConflictsWith = []string{"table_name", "storage_account_name"} - - resource.Schema["table_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - Deprecated: "the `table_name` and `storage_account_name` properties have been superseded by the `storage_table_id` property and will be removed in version 4.0 of the AzureRM provider", - ConflictsWith: []string{"storage_table_id"}, - RequiredWith: []string{"storage_account_name"}, - ValidateFunc: validate.StorageTableName, - } - - resource.Schema["storage_account_name"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - Deprecated: "the `table_name` and `storage_account_name` properties have been superseded by the `storage_table_id` property and will be removed in version 4.0 of the AzureRM provider", - ConflictsWith: []string{"storage_table_id"}, - RequiredWith: []string{"table_name"}, - ValidateFunc: validate.StorageAccountName, - } - } - return resource } @@ -122,32 +91,6 @@ func resourceStorageTableEntityCreate(d *pluginsdk.ResourceData, meta interface{ if err != nil { return err } - } else if !features.FourPointOhBeta() { - // TODO: this is needed until `table_name` / `storage_account_name` are removed in favor of `storage_table_id` in v4.0 - // we will retrieve the storage account twice but this will make it easier to refactor later - storageAccountName := d.Get("storage_account_name").(string) - - account, err := storageClient.FindAccount(ctx, subscriptionId, storageAccountName) - if err != nil { - return fmt.Errorf("retrieving Account %q: %v", storageAccountName, err) - } - if account == nil { - return fmt.Errorf("locating Storage Account %q", storageAccountName) - } - - // Determine the table endpoint, so we can build a data plane ID - endpoint, err := account.DataPlaneEndpoint(client.EndpointTypeTable) - if err != nil { - return fmt.Errorf("determining Table endpoint: %v", err) - } - - // Parse the table endpoint as a data plane account ID - accountId, err := accounts.ParseAccountID(*endpoint, storageClient.StorageDomainSuffix) - if err != nil { - return fmt.Errorf("parsing Account ID: %v", err) - } - - storageTableId = pointer.To(tables.NewTableID(*accountId, d.Get("table_name").(string))) } if storageTableId == nil { @@ -291,11 +234,6 @@ func resourceStorageTableEntityRead(d *pluginsdk.ResourceData, meta interface{}) d.Set("partition_key", id.PartitionKey) d.Set("row_key", id.RowKey) - if !features.FourPointOhBeta() { - d.Set("storage_account_name", id.AccountId.AccountName) - d.Set("table_name", id.TableName) - } - if err = d.Set("entity", flattenEntity(result.Entity)); err != nil { return fmt.Errorf("setting `entity` for %s: %v", id, err) } diff --git a/internal/services/storage/storage_table_entity_resource_test.go b/internal/services/storage/storage_table_entity_resource_test.go index 0cdefd10acef..12ccaaac00e5 100644 --- a/internal/services/storage/storage_table_entity_resource_test.go +++ b/internal/services/storage/storage_table_entity_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" "github.com/tombuildsstuff/giovanni/storage/2023-11-03/table/entities" @@ -50,60 +49,6 @@ func TestAccTableEntity_basicAzureADAuth(t *testing.T) { }) } -func TestAccTableEntity_basicDeprecated(t *testing.T) { - // TODO: remove test in v4.0 - if features.FourPointOhBeta() { - t.Skip("test not applicable in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_storage_table_entity", "test") - r := StorageTableEntityResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basicDeprecated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccTableEntity_migrateStorageTableId(t *testing.T) { - // TODO: remove test in v4.0 - if features.FourPointOhBeta() { - t.Skip("test not applicable in v4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_storage_table_entity", "test") - r := StorageTableEntityResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basicDeprecated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - { - Config: r.basicDeprecated(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccTableEntity_requiresImport(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_storage_table_entity", "test") r := StorageTableEntityResource{} @@ -273,24 +218,6 @@ resource "azurerm_storage_table_entity" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomString) } -func (r StorageTableEntityResource) basicDeprecated(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%[1]s - -resource "azurerm_storage_table_entity" "test" { - storage_account_name = azurerm_storage_account.test.name - table_name = azurerm_storage_table.test.name - - partition_key = "test_partition%[2]d" - row_key = "test_row%[2]d" - entity = { - Foo = "Bar" - } -} -`, template, data.RandomInteger) -} - func (r StorageTableEntityResource) requiresImport(data acceptance.TestData) string { template := r.basic(data) return fmt.Sprintf(` diff --git a/internal/services/storage/storage_table_resource.go b/internal/services/storage/storage_table_resource.go index b2c75c8703b0..8a4780065225 100644 --- a/internal/services/storage/storage_table_resource.go +++ b/internal/services/storage/storage_table_resource.go @@ -183,7 +183,7 @@ func resourceStorageTableRead(d *pluginsdk.ResourceData, meta interface{}) error return fmt.Errorf("retrieving Storage Account %q for Table %q: %v", id.AccountId.AccountName, id.TableName, err) } if account == nil { - log.Printf("Unable to determine Resource Group for Storage Storage Table %q (Account %s) - assuming removed & removing from state", id.TableName, id.AccountId.AccountName) + log.Printf("Unable to determine Resource Group for Storage Table %q (Account %s) - assuming removed & removing from state", id.TableName, id.AccountId.AccountName) d.SetId("") return nil } diff --git a/internal/services/storage/storage_table_resource_test.go b/internal/services/storage/storage_table_resource_test.go index bcf5c8a9d6ae..db5918a6172a 100644 --- a/internal/services/storage/storage_table_resource_test.go +++ b/internal/services/storage/storage_table_resource_test.go @@ -92,7 +92,7 @@ func (r StorageTableResource) Exists(ctx context.Context, client *clients.Client return nil, fmt.Errorf("retrieving Account %q for Table %q: %+v", id.AccountId.AccountName, id.TableName, err) } if account == nil { - return nil, fmt.Errorf("unable to determine Resource Group for Storage Storage Table %q (Account %q)", id.TableName, id.AccountId.AccountName) + return nil, fmt.Errorf("unable to determine Resource Group for Storage Table %q (Account %q)", id.TableName, id.AccountId.AccountName) } tablesClient, err := client.Storage.TablesDataPlaneClient(ctx, *account, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) if err != nil { @@ -112,7 +112,7 @@ func (r StorageTableResource) Destroy(ctx context.Context, client *clients.Clien return nil, fmt.Errorf("retrieving Account %q for Table %q: %+v", id.AccountId.AccountName, id.TableName, err) } if account == nil { - return nil, fmt.Errorf("unable to determine Resource Group for Storage Storage Table %q (Account %q)", id.TableName, id.AccountId.AccountName) + return nil, fmt.Errorf("unable to determine Resource Group for Storage Table %q (Account %q)", id.TableName, id.AccountId.AccountName) } tablesClient, err := client.Storage.TablesDataPlaneClient(ctx, *account, client.Storage.DataPlaneOperationSupportingAnyAuthMethod()) if err != nil { diff --git a/internal/services/storage/validate/storage_account_default_blob_id_test.go b/internal/services/storage/validate/storage_account_default_blob_id_test.go index de1d3aa5b8c4..9014fc8085dd 100644 --- a/internal/services/storage/validate/storage_account_default_blob_id_test.go +++ b/internal/services/storage/validate/storage_account_default_blob_id_test.go @@ -12,7 +12,6 @@ func TestStorageAccountDefaultBlobID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/storage/validate/storage_account_management_policy_id_test.go b/internal/services/storage/validate/storage_account_management_policy_id_test.go index 70d982bc125a..2f5c512d6159 100644 --- a/internal/services/storage/validate/storage_account_management_policy_id_test.go +++ b/internal/services/storage/validate/storage_account_management_policy_id_test.go @@ -12,7 +12,6 @@ func TestStorageAccountManagementPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/storage/validate/storage_container_immutability_policy_id_test.go b/internal/services/storage/validate/storage_container_immutability_policy_id_test.go index 3085cef4a6a3..79d52a137c91 100644 --- a/internal/services/storage/validate/storage_container_immutability_policy_id_test.go +++ b/internal/services/storage/validate/storage_container_immutability_policy_id_test.go @@ -12,7 +12,6 @@ func TestStorageContainerImmutabilityPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/storage/validate/storage_queue_resource_manager_id_test.go b/internal/services/storage/validate/storage_queue_resource_manager_id_test.go index a741b3ad06ba..d53880ed1860 100644 --- a/internal/services/storage/validate/storage_queue_resource_manager_id_test.go +++ b/internal/services/storage/validate/storage_queue_resource_manager_id_test.go @@ -12,7 +12,6 @@ func TestStorageQueueResourceManagerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/storage/validate/storage_share_resource_manager_id_test.go b/internal/services/storage/validate/storage_share_resource_manager_id_test.go index 449d22914188..8c1e0dd7fd4c 100644 --- a/internal/services/storage/validate/storage_share_resource_manager_id_test.go +++ b/internal/services/storage/validate/storage_share_resource_manager_id_test.go @@ -12,7 +12,6 @@ func TestStorageShareResourceManagerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/storage/validate/storage_table_resource_manager_id_test.go b/internal/services/storage/validate/storage_table_resource_manager_id_test.go index ab0bc9ec9816..6b26cbaacb9c 100644 --- a/internal/services/storage/validate/storage_table_resource_manager_id_test.go +++ b/internal/services/storage/validate/storage_table_resource_manager_id_test.go @@ -12,7 +12,6 @@ func TestStorageTableResourceManagerID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/storagecache/hpc_cache.go b/internal/services/storagecache/hpc_cache.go index 7b9b4053b728..95d462d1f3af 100644 --- a/internal/services/storagecache/hpc_cache.go +++ b/internal/services/storagecache/hpc_cache.go @@ -34,7 +34,7 @@ func CacheDeleteAccessPolicyByName(policies []caches.NfsAccessPolicy, name strin } func CacheInsertOrUpdateAccessPolicy(policies []caches.NfsAccessPolicy, policy caches.NfsAccessPolicy) ([]caches.NfsAccessPolicy, error) { - var newPolicies []caches.NfsAccessPolicy + newPolicies := make([]caches.NfsAccessPolicy, 0, len(policies)) isNew := true for _, existPolicy := range policies { diff --git a/internal/services/storagecache/hpc_cache_access_policy_resource.go b/internal/services/storagecache/hpc_cache_access_policy_resource.go index ad79e6b21799..7b21dff19619 100644 --- a/internal/services/storagecache/hpc_cache_access_policy_resource.go +++ b/internal/services/storagecache/hpc_cache_access_policy_resource.go @@ -196,15 +196,12 @@ func resourceHPCCacheAccessPolicyRead(d *pluginsdk.ResourceData, meta interface{ } cacheId := caches.NewCacheID(id.SubscriptionId, id.ResourceGroup, id.CacheName) - clearId := func(msg string) error { - log.Printf("[DEBUG] %s - removing from state!", msg) - d.SetId("") - return nil - } resp, err := client.Get(ctx, cacheId) if err != nil { if response.WasNotFound(resp.HttpResponse) { - return clearId(fmt.Sprintf("The containing HPC Cache %q was not found", cacheId)) + log.Printf("[DEBUG] The containing HPC Cache %q was not found- removing from state!", cacheId) + d.SetId("") + return nil } return fmt.Errorf("retrieving %s: %+v", id, err) @@ -222,17 +219,23 @@ func resourceHPCCacheAccessPolicyRead(d *pluginsdk.ResourceData, meta interface{ setting := prop.SecuritySettings if setting == nil { - return clearId(fmt.Sprintf("The containing HPC Cache %q has nil SecuritySettings", cacheId)) + log.Printf("[DEBUG] The containing HPC Cache %q has nil SecuritySettings- removing from state!", cacheId) + d.SetId("") + return nil } policies := setting.AccessPolicies if policies == nil { - return clearId(fmt.Sprintf("The containing HPC Cache %q has nil AccessPolicies", cacheId)) + log.Printf("[DEBUG] The containing HPC Cache %q has nil AccessPolicies- removing from state!", cacheId) + d.SetId("") + return nil } p := CacheGetAccessPolicyByName(*policies, id.Name) if p == nil { - return clearId(fmt.Sprintf("The %q was not found", id)) + log.Printf("[DEBUG] The %q was not found- removing from state!", cacheId) + d.SetId("") + return nil } d.Set("name", id.Name) diff --git a/internal/services/storagecache/hpc_cache_resource.go b/internal/services/storagecache/hpc_cache_resource.go index 7d6adbcbcc3a..57e2353a0528 100644 --- a/internal/services/storagecache/hpc_cache_resource.go +++ b/internal/services/storagecache/hpc_cache_resource.go @@ -399,7 +399,7 @@ func flattenStorageCacheNfsDefaultAccessPolicy(input caches.NfsAccessPolicy) ([] } func expandStorageCacheNfsAccessRules(input []interface{}) []caches.NfsAccessRule { - var out []caches.NfsAccessRule + out := make([]caches.NfsAccessRule, 0, len(input)) for _, accessRuleRaw := range input { b := accessRuleRaw.(map[string]interface{}) out = append(out, caches.NfsAccessRule{ @@ -417,9 +417,8 @@ func expandStorageCacheNfsAccessRules(input []interface{}) []caches.NfsAccessRul } func flattenStorageCacheNfsAccessRules(input []caches.NfsAccessRule) ([]interface{}, error) { - var rules []interface{} + rules := make([]interface{}, 0, len(input)) for _, accessRule := range input { - anonymousUID := 0 if accessRule.AnonymousUID != nil { var err error diff --git a/internal/services/storagecache/managed_lustre_file_system_resource.go b/internal/services/storagecache/managed_lustre_file_system_resource.go index 3838474e867b..9972de1a3a2f 100644 --- a/internal/services/storagecache/managed_lustre_file_system_resource.go +++ b/internal/services/storagecache/managed_lustre_file_system_resource.go @@ -61,8 +61,10 @@ type SkuProperties struct { type ManagedLustreFileSystemResource struct{} -var _ sdk.ResourceWithUpdate = ManagedLustreFileSystemResource{} -var _ sdk.ResourceWithCustomizeDiff = ManagedLustreFileSystemResource{} +var ( + _ sdk.ResourceWithUpdate = ManagedLustreFileSystemResource{} + _ sdk.ResourceWithCustomizeDiff = ManagedLustreFileSystemResource{} +) func GetSkuPropertiesByName(skuName string) *SkuProperties { for _, sku := range PossibleSkuProperties() { diff --git a/internal/services/storagecache/parse/cache_access_policy.go b/internal/services/storagecache/parse/cache_access_policy.go index c5c9e43bbdaf..7169d298a5dd 100644 --- a/internal/services/storagecache/parse/cache_access_policy.go +++ b/internal/services/storagecache/parse/cache_access_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func CacheAccessPolicyID(input string) (*CacheAccessPolicyId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.CacheName, err = id.PopSegment("caches"); err != nil { diff --git a/internal/services/storagecache/parse/cache_access_policy_test.go b/internal/services/storagecache/parse/cache_access_policy_test.go index 40ae4bc40574..980a5170be97 100644 --- a/internal/services/storagecache/parse/cache_access_policy_test.go +++ b/internal/services/storagecache/parse/cache_access_policy_test.go @@ -27,7 +27,6 @@ func TestCacheAccessPolicyID(t *testing.T) { Error bool Expected *CacheAccessPolicyId }{ - { // empty Input: "", diff --git a/internal/services/storagecache/registration.go b/internal/services/storagecache/registration.go index 7442852e34cc..787185d1cee0 100644 --- a/internal/services/storagecache/registration.go +++ b/internal/services/storagecache/registration.go @@ -10,8 +10,10 @@ import ( type Registration struct{} -var _ sdk.TypedServiceRegistration = Registration{} -var _ sdk.UntypedServiceRegistration = Registration{} +var ( + _ sdk.TypedServiceRegistration = Registration{} + _ sdk.UntypedServiceRegistration = Registration{} +) // Name is the name of this Service func (r Registration) Name() string { diff --git a/internal/services/storagecache/validate/cache_access_policy_id_test.go b/internal/services/storagecache/validate/cache_access_policy_id_test.go index e374a79569d3..573ccda024f8 100644 --- a/internal/services/storagecache/validate/cache_access_policy_id_test.go +++ b/internal/services/storagecache/validate/cache_access_policy_id_test.go @@ -12,7 +12,6 @@ func TestCacheAccessPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/storagemover/registration.go b/internal/services/storagemover/registration.go index 6987eda6f185..ebfda5564a22 100644 --- a/internal/services/storagemover/registration.go +++ b/internal/services/storagemover/registration.go @@ -9,9 +9,7 @@ import ( type Registration struct{} -var ( - _ sdk.TypedServiceRegistration = Registration{} -) +var _ sdk.TypedServiceRegistration = Registration{} func (r Registration) AssociatedGitHubLabel() string { return "service/storagemover" diff --git a/internal/services/storagemover/storage_mover_source_endpoint_resource.go b/internal/services/storagemover/storage_mover_source_endpoint_resource.go index b1df2fc24095..c93dd5ad4174 100644 --- a/internal/services/storagemover/storage_mover_source_endpoint_resource.go +++ b/internal/services/storagemover/storage_mover_source_endpoint_resource.go @@ -138,7 +138,6 @@ func (r StorageMoverSourceEndpointResource) Create() sdk.ResourceFunc { v.Description = utils.String(model.Description) properties.Properties = v } - } if _, err := client.CreateOrUpdate(ctx, id, properties); err != nil { diff --git a/internal/services/streamanalytics/parse/streaming_job_schedule.go b/internal/services/streamanalytics/parse/streaming_job_schedule.go index 455a9edc3963..f32ae98069a2 100644 --- a/internal/services/streamanalytics/parse/streaming_job_schedule.go +++ b/internal/services/streamanalytics/parse/streaming_job_schedule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func StreamingJobScheduleID(input string) (*StreamingJobScheduleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.StreamingJobName, err = id.PopSegment("streamingJobs"); err != nil { @@ -95,11 +96,11 @@ func StreamingJobScheduleIDInsensitively(input string) (*StreamingJobScheduleId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'streamingJobs' segment diff --git a/internal/services/streamanalytics/parse/streaming_job_schedule_test.go b/internal/services/streamanalytics/parse/streaming_job_schedule_test.go index 735e0828c704..f15294cea147 100644 --- a/internal/services/streamanalytics/parse/streaming_job_schedule_test.go +++ b/internal/services/streamanalytics/parse/streaming_job_schedule_test.go @@ -27,7 +27,6 @@ func TestStreamingJobScheduleID(t *testing.T) { Error bool Expected *StreamingJobScheduleId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestStreamingJobScheduleIDInsensitively(t *testing.T) { Error bool Expected *StreamingJobScheduleId }{ - { // empty Input: "", diff --git a/internal/services/streamanalytics/stream_analytics_job_resource.go b/internal/services/streamanalytics/stream_analytics_job_resource.go index 2afaecae01a6..565b06e002da 100644 --- a/internal/services/streamanalytics/stream_analytics_job_resource.go +++ b/internal/services/streamanalytics/stream_analytics_job_resource.go @@ -20,7 +20,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/locks" "github.com/hashicorp/terraform-provider-azurerm/internal/services/streamanalytics/migration" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -30,7 +29,7 @@ import ( ) func resourceStreamAnalyticsJob() *pluginsdk.Resource { - resource := &pluginsdk.Resource{ + return &pluginsdk.Resource{ Create: resourceStreamAnalyticsJobCreateUpdate, Read: resourceStreamAnalyticsJobRead, Update: resourceStreamAnalyticsJobCreateUpdate, @@ -210,16 +209,6 @@ func resourceStreamAnalyticsJob() *pluginsdk.Resource { "tags": commonschema.Tags(), }, } - - if !features.FourPointOhBeta() { - resource.Schema["data_locale"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringIsNotEmpty, - } - } - return resource } func resourceStreamAnalyticsJobCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { diff --git a/internal/services/streamanalytics/stream_analytics_output_cosmosdb_resource_test.go b/internal/services/streamanalytics/stream_analytics_output_cosmosdb_resource_test.go index 6f7df81012bb..9142bca2983f 100644 --- a/internal/services/streamanalytics/stream_analytics_output_cosmosdb_resource_test.go +++ b/internal/services/streamanalytics/stream_analytics_output_cosmosdb_resource_test.go @@ -84,6 +84,7 @@ func TestAccStreamAnalyticsOutputCosmosDB_requiresImport(t *testing.T) { data.RequiresImportErrorStep(r.requiresImport), }) } + func (r StreamAnalyticsOutputCosmosDBResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { id, err := outputs.ParseOutputID(state.ID) if err != nil { diff --git a/internal/services/streamanalytics/stream_analytics_output_function_resource.go b/internal/services/streamanalytics/stream_analytics_output_function_resource.go index a8d569d16527..582197eec86b 100644 --- a/internal/services/streamanalytics/stream_analytics_output_function_resource.go +++ b/internal/services/streamanalytics/stream_analytics_output_function_resource.go @@ -19,8 +19,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/utils" ) -type OutputFunctionResource struct { -} +type OutputFunctionResource struct{} var ( _ sdk.ResourceWithCustomImporter = OutputFunctionResource{} diff --git a/internal/services/streamanalytics/validate/streaming_job_schedule_id_test.go b/internal/services/streamanalytics/validate/streaming_job_schedule_id_test.go index 4de87fdbbb0e..7070f97e0259 100644 --- a/internal/services/streamanalytics/validate/streaming_job_schedule_id_test.go +++ b/internal/services/streamanalytics/validate/streaming_job_schedule_id_test.go @@ -12,7 +12,6 @@ func TestStreamingJobScheduleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/subscription/subscription_resource.go b/internal/services/subscription/subscription_resource.go index 33c768d6a3f2..eb44a22061f1 100644 --- a/internal/services/subscription/subscription_resource.go +++ b/internal/services/subscription/subscription_resource.go @@ -128,7 +128,7 @@ func resourceSubscriptionCreate(d *pluginsdk.ResourceData, meta interface{}) err ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() - aliasName := "" + var aliasName string if aliasNameRaw, ok := d.GetOk("alias"); ok { aliasName = aliasNameRaw.(string) } else { @@ -163,11 +163,9 @@ func resourceSubscriptionCreate(d *pluginsdk.ResourceData, meta interface{}) err }, } - subscriptionId := "" - // Check if we're adding alias management for an existing subscription if subscriptionIdRaw, ok := d.GetOk("subscription_id"); ok { - subscriptionId = subscriptionIdRaw.(string) + subscriptionId := subscriptionIdRaw.(string) subscriptionResourceId := commonids.NewSubscriptionID(subscriptionId) locks.ByID(subscriptionId) diff --git a/internal/services/subscription/validate/subscription_name.go b/internal/services/subscription/validate/subscription_name.go index ee57c6f78f14..131c058306b5 100644 --- a/internal/services/subscription/validate/subscription_name.go +++ b/internal/services/subscription/validate/subscription_name.go @@ -4,23 +4,24 @@ package validate import ( + "errors" "fmt" "regexp" ) -func SubscriptionName(i interface{}, k string) (warnings []string, errors []error) { +func SubscriptionName(i interface{}, k string) (warnings []string, errs []error) { v, ok := i.(string) if !ok { - errors = append(errors, fmt.Errorf("expected type of %q to be string", k)) + errs = append(errs, fmt.Errorf("expected type of %q to be string", k)) return } if len(v) > 64 || v == "" { - errors = append(errors, fmt.Errorf("Subscription Name must be between 1 and 64 characters in length")) + errs = append(errs, errors.New("Subscription Name must be between 1 and 64 characters in length")) } if regexp.MustCompile("[<>;|]").MatchString(v) { - errors = append(errors, fmt.Errorf("Subsciption Name cannot contain the characters `<`, `>`, `;`, or `|`")) + errs = append(errs, errors.New("Subsciption Name cannot contain the characters `<`, `>`, `;`, or `|`")) } return diff --git a/internal/services/synapse/client/client.go b/internal/services/synapse/client/client.go index 86b4b30b2773..e74fc45bab68 100644 --- a/internal/services/synapse/client/client.go +++ b/internal/services/synapse/client/client.go @@ -4,14 +4,15 @@ package client import ( + "errors" "fmt" "github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/v2.0/synapse" // nolint: staticcheck "github.com/Azure/go-autorest/autorest" "github.com/hashicorp/terraform-provider-azurerm/internal/common" - managedvirtualnetwork "github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse" - accesscontrol "github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse" - artifacts "github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse" + managedvirtualnetwork "github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse" + accesscontrol "github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse" + artifacts "github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse" ) type Client struct { @@ -144,7 +145,7 @@ func NewClient(o *common.ClientOptions) *Client { func (client Client) RoleDefinitionsClient(workspaceName, synapseEndpointSuffix string) (*accesscontrol.RoleDefinitionsClient, error) { if client.synapseAuthorizer == nil { - return nil, fmt.Errorf("Synapse is not supported in this Azure Environment") + return nil, errors.New("Synapse is not supported in this Azure Environment") } endpoint := buildEndpoint(workspaceName, synapseEndpointSuffix) roleDefinitionsClient := accesscontrol.NewRoleDefinitionsClient(endpoint) @@ -154,7 +155,7 @@ func (client Client) RoleDefinitionsClient(workspaceName, synapseEndpointSuffix func (client Client) RoleAssignmentsClient(workspaceName, synapseEndpointSuffix string) (*accesscontrol.RoleAssignmentsClient, error) { if client.synapseAuthorizer == nil { - return nil, fmt.Errorf("Synapse is not supported in this Azure Environment") + return nil, errors.New("Synapse is not supported in this Azure Environment") } endpoint := buildEndpoint(workspaceName, synapseEndpointSuffix) roleAssignmentsClient := accesscontrol.NewRoleAssignmentsClient(endpoint) @@ -164,7 +165,7 @@ func (client Client) RoleAssignmentsClient(workspaceName, synapseEndpointSuffix func (client Client) ManagedPrivateEndpointsClient(workspaceName, synapseEndpointSuffix string) (*managedvirtualnetwork.ManagedPrivateEndpointsClient, error) { if client.synapseAuthorizer == nil { - return nil, fmt.Errorf("Synapse is not supported in this Azure Environment") + return nil, errors.New("Synapse is not supported in this Azure Environment") } endpoint := buildEndpoint(workspaceName, synapseEndpointSuffix) managedPrivateEndpointsClient := managedvirtualnetwork.NewManagedPrivateEndpointsClient(endpoint) @@ -174,7 +175,7 @@ func (client Client) ManagedPrivateEndpointsClient(workspaceName, synapseEndpoin func (client Client) LinkedServiceClient(workspaceName, synapseEndpointSuffix string) (*artifacts.LinkedServiceClient, error) { if client.synapseAuthorizer == nil { - return nil, fmt.Errorf("Synapse is not supported in this Azure Environment") + return nil, errors.New("Synapse is not supported in this Azure Environment") } endpoint := buildEndpoint(workspaceName, synapseEndpointSuffix) linkedServiceClient := artifacts.NewLinkedServiceClient(endpoint) diff --git a/internal/services/synapse/parse/firewall_rule.go b/internal/services/synapse/parse/firewall_rule.go index 29c02e4b2e48..41cab88b1bb2 100644 --- a/internal/services/synapse/parse/firewall_rule.go +++ b/internal/services/synapse/parse/firewall_rule.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FirewallRuleID(input string) (*FirewallRuleId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/firewall_rule_test.go b/internal/services/synapse/parse/firewall_rule_test.go index 7fb4ab7222f8..bb6950ea0f35 100644 --- a/internal/services/synapse/parse/firewall_rule_test.go +++ b/internal/services/synapse/parse/firewall_rule_test.go @@ -27,7 +27,6 @@ func TestFirewallRuleID(t *testing.T) { Error bool Expected *FirewallRuleId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/integration_runtime.go b/internal/services/synapse/parse/integration_runtime.go index 683e3e9e0931..6ff91e540ac6 100644 --- a/internal/services/synapse/parse/integration_runtime.go +++ b/internal/services/synapse/parse/integration_runtime.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func IntegrationRuntimeID(input string) (*IntegrationRuntimeId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { @@ -95,11 +96,11 @@ func IntegrationRuntimeIDInsensitively(input string) (*IntegrationRuntimeId, err } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'workspaces' segment diff --git a/internal/services/synapse/parse/integration_runtime_test.go b/internal/services/synapse/parse/integration_runtime_test.go index 269bd4603b83..7b991e81afbb 100644 --- a/internal/services/synapse/parse/integration_runtime_test.go +++ b/internal/services/synapse/parse/integration_runtime_test.go @@ -27,7 +27,6 @@ func TestIntegrationRuntimeID(t *testing.T) { Error bool Expected *IntegrationRuntimeId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestIntegrationRuntimeIDInsensitively(t *testing.T) { Error bool Expected *IntegrationRuntimeId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/linked_service.go b/internal/services/synapse/parse/linked_service.go index d852f0e6f9f4..b05e219a66e1 100644 --- a/internal/services/synapse/parse/linked_service.go +++ b/internal/services/synapse/parse/linked_service.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func LinkedServiceID(input string) (*LinkedServiceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { @@ -95,11 +96,11 @@ func LinkedServiceIDInsensitively(input string) (*LinkedServiceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'workspaces' segment diff --git a/internal/services/synapse/parse/linked_service_test.go b/internal/services/synapse/parse/linked_service_test.go index 0cc4d4ca58a5..c47fea552cb8 100644 --- a/internal/services/synapse/parse/linked_service_test.go +++ b/internal/services/synapse/parse/linked_service_test.go @@ -27,7 +27,6 @@ func TestLinkedServiceID(t *testing.T) { Error bool Expected *LinkedServiceId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestLinkedServiceIDInsensitively(t *testing.T) { Error bool Expected *LinkedServiceId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/managed_private_endpoint.go b/internal/services/synapse/parse/managed_private_endpoint.go index 8653f04637b0..edfd710b101f 100644 --- a/internal/services/synapse/parse/managed_private_endpoint.go +++ b/internal/services/synapse/parse/managed_private_endpoint.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func ManagedPrivateEndpointID(input string) (*ManagedPrivateEndpointId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/managed_private_endpoint_test.go b/internal/services/synapse/parse/managed_private_endpoint_test.go index d5941fba1f5c..7c213d333e2c 100644 --- a/internal/services/synapse/parse/managed_private_endpoint_test.go +++ b/internal/services/synapse/parse/managed_private_endpoint_test.go @@ -27,7 +27,6 @@ func TestManagedPrivateEndpointID(t *testing.T) { Error bool Expected *ManagedPrivateEndpointId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/private_link_hub.go b/internal/services/synapse/parse/private_link_hub.go index 8e1d0acb01fb..04a38eb6e592 100644 --- a/internal/services/synapse/parse/private_link_hub.go +++ b/internal/services/synapse/parse/private_link_hub.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func PrivateLinkHubID(input string) (*PrivateLinkHubId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("privateLinkHubs"); err != nil { diff --git a/internal/services/synapse/parse/private_link_hub_test.go b/internal/services/synapse/parse/private_link_hub_test.go index 90adf828f4d4..e95a3af75ec0 100644 --- a/internal/services/synapse/parse/private_link_hub_test.go +++ b/internal/services/synapse/parse/private_link_hub_test.go @@ -27,7 +27,6 @@ func TestPrivateLinkHubID(t *testing.T) { Error bool Expected *PrivateLinkHubId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/spark_pool.go b/internal/services/synapse/parse/spark_pool.go index 62ca2079f226..2165759469b1 100644 --- a/internal/services/synapse/parse/spark_pool.go +++ b/internal/services/synapse/parse/spark_pool.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SparkPoolID(input string) (*SparkPoolId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { @@ -95,11 +96,11 @@ func SparkPoolIDInsensitively(input string) (*SparkPoolId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'workspaces' segment diff --git a/internal/services/synapse/parse/spark_pool_test.go b/internal/services/synapse/parse/spark_pool_test.go index 88db124f0cbe..07682f11c0c5 100644 --- a/internal/services/synapse/parse/spark_pool_test.go +++ b/internal/services/synapse/parse/spark_pool_test.go @@ -27,7 +27,6 @@ func TestSparkPoolID(t *testing.T) { Error bool Expected *SparkPoolId }{ - { // empty Input: "", @@ -136,7 +135,6 @@ func TestSparkPoolIDInsensitively(t *testing.T) { Error bool Expected *SparkPoolId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/sql_pool.go b/internal/services/synapse/parse/sql_pool.go index 962f04027482..31c726ebdf54 100644 --- a/internal/services/synapse/parse/sql_pool.go +++ b/internal/services/synapse/parse/sql_pool.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SqlPoolID(input string) (*SqlPoolId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/sql_pool_extended_auditing_policy.go b/internal/services/synapse/parse/sql_pool_extended_auditing_policy.go index 1099f8b04075..05fd5980343f 100644 --- a/internal/services/synapse/parse/sql_pool_extended_auditing_policy.go +++ b/internal/services/synapse/parse/sql_pool_extended_auditing_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SqlPoolExtendedAuditingPolicyID(input string) (*SqlPoolExtendedAuditingPoli } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/sql_pool_extended_auditing_policy_test.go b/internal/services/synapse/parse/sql_pool_extended_auditing_policy_test.go index 45102df45f74..fd007ab94eb6 100644 --- a/internal/services/synapse/parse/sql_pool_extended_auditing_policy_test.go +++ b/internal/services/synapse/parse/sql_pool_extended_auditing_policy_test.go @@ -27,7 +27,6 @@ func TestSqlPoolExtendedAuditingPolicyID(t *testing.T) { Error bool Expected *SqlPoolExtendedAuditingPolicyId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/sql_pool_recoverable_database.go b/internal/services/synapse/parse/sql_pool_recoverable_database.go index 4df93b33f465..2da0f3c93d9e 100644 --- a/internal/services/synapse/parse/sql_pool_recoverable_database.go +++ b/internal/services/synapse/parse/sql_pool_recoverable_database.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func SqlPoolRecoverableDatabaseID(input string) (*SqlPoolRecoverableDatabaseId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/sql_pool_recoverable_database_test.go b/internal/services/synapse/parse/sql_pool_recoverable_database_test.go index 4de3053e5e71..d94eef34f470 100644 --- a/internal/services/synapse/parse/sql_pool_recoverable_database_test.go +++ b/internal/services/synapse/parse/sql_pool_recoverable_database_test.go @@ -27,7 +27,6 @@ func TestSqlPoolRecoverableDatabaseID(t *testing.T) { Error bool Expected *SqlPoolRecoverableDatabaseId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/sql_pool_security_alert_policy.go b/internal/services/synapse/parse/sql_pool_security_alert_policy.go index 9f641fe80a61..a1e5a064909d 100644 --- a/internal/services/synapse/parse/sql_pool_security_alert_policy.go +++ b/internal/services/synapse/parse/sql_pool_security_alert_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SqlPoolSecurityAlertPolicyID(input string) (*SqlPoolSecurityAlertPolicyId, } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/sql_pool_security_alert_policy_test.go b/internal/services/synapse/parse/sql_pool_security_alert_policy_test.go index 8439bc9197ec..27ccbd5631a4 100644 --- a/internal/services/synapse/parse/sql_pool_security_alert_policy_test.go +++ b/internal/services/synapse/parse/sql_pool_security_alert_policy_test.go @@ -27,7 +27,6 @@ func TestSqlPoolSecurityAlertPolicyID(t *testing.T) { Error bool Expected *SqlPoolSecurityAlertPolicyId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/sql_pool_test.go b/internal/services/synapse/parse/sql_pool_test.go index d6be6edd3d58..b390dfae0512 100644 --- a/internal/services/synapse/parse/sql_pool_test.go +++ b/internal/services/synapse/parse/sql_pool_test.go @@ -27,7 +27,6 @@ func TestSqlPoolID(t *testing.T) { Error bool Expected *SqlPoolId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/sql_pool_vulnerability_assessment.go b/internal/services/synapse/parse/sql_pool_vulnerability_assessment.go index 7749271edac9..2d9e599ced98 100644 --- a/internal/services/synapse/parse/sql_pool_vulnerability_assessment.go +++ b/internal/services/synapse/parse/sql_pool_vulnerability_assessment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SqlPoolVulnerabilityAssessmentID(input string) (*SqlPoolVulnerabilityAssess } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/sql_pool_vulnerability_assessment_baseline.go b/internal/services/synapse/parse/sql_pool_vulnerability_assessment_baseline.go index 3681331c00dd..dae4f814fde3 100644 --- a/internal/services/synapse/parse/sql_pool_vulnerability_assessment_baseline.go +++ b/internal/services/synapse/parse/sql_pool_vulnerability_assessment_baseline.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -65,11 +66,11 @@ func SqlPoolVulnerabilityAssessmentBaselineID(input string) (*SqlPoolVulnerabili } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/sql_pool_vulnerability_assessment_baseline_test.go b/internal/services/synapse/parse/sql_pool_vulnerability_assessment_baseline_test.go index 858beeb33956..8fce27cece0e 100644 --- a/internal/services/synapse/parse/sql_pool_vulnerability_assessment_baseline_test.go +++ b/internal/services/synapse/parse/sql_pool_vulnerability_assessment_baseline_test.go @@ -27,7 +27,6 @@ func TestSqlPoolVulnerabilityAssessmentBaselineID(t *testing.T) { Error bool Expected *SqlPoolVulnerabilityAssessmentBaselineId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/sql_pool_vulnerability_assessment_test.go b/internal/services/synapse/parse/sql_pool_vulnerability_assessment_test.go index 3ede88997461..0f594acb7618 100644 --- a/internal/services/synapse/parse/sql_pool_vulnerability_assessment_test.go +++ b/internal/services/synapse/parse/sql_pool_vulnerability_assessment_test.go @@ -27,7 +27,6 @@ func TestSqlPoolVulnerabilityAssessmentID(t *testing.T) { Error bool Expected *SqlPoolVulnerabilityAssessmentId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/sql_pool_workload_classifier.go b/internal/services/synapse/parse/sql_pool_workload_classifier.go index 7d0de4d1db0a..f6bd136ec6d4 100644 --- a/internal/services/synapse/parse/sql_pool_workload_classifier.go +++ b/internal/services/synapse/parse/sql_pool_workload_classifier.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -62,11 +63,11 @@ func SqlPoolWorkloadClassifierID(input string) (*SqlPoolWorkloadClassifierId, er } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/sql_pool_workload_classifier_test.go b/internal/services/synapse/parse/sql_pool_workload_classifier_test.go index 6bbbcc69df2d..52b2f6f600f2 100644 --- a/internal/services/synapse/parse/sql_pool_workload_classifier_test.go +++ b/internal/services/synapse/parse/sql_pool_workload_classifier_test.go @@ -27,7 +27,6 @@ func TestSqlPoolWorkloadClassifierID(t *testing.T) { Error bool Expected *SqlPoolWorkloadClassifierId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/sql_pool_workload_group.go b/internal/services/synapse/parse/sql_pool_workload_group.go index e71d42620831..bb43cac1605b 100644 --- a/internal/services/synapse/parse/sql_pool_workload_group.go +++ b/internal/services/synapse/parse/sql_pool_workload_group.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SqlPoolWorkloadGroupID(input string) (*SqlPoolWorkloadGroupId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/sql_pool_workload_group_test.go b/internal/services/synapse/parse/sql_pool_workload_group_test.go index 5fc1c3fa1544..4a79963850ec 100644 --- a/internal/services/synapse/parse/sql_pool_workload_group_test.go +++ b/internal/services/synapse/parse/sql_pool_workload_group_test.go @@ -27,7 +27,6 @@ func TestSqlPoolWorkloadGroupID(t *testing.T) { Error bool Expected *SqlPoolWorkloadGroupId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/workspace.go b/internal/services/synapse/parse/workspace.go index 12b5708ebec1..f4cd900c7336 100644 --- a/internal/services/synapse/parse/workspace.go +++ b/internal/services/synapse/parse/workspace.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func WorkspaceID(input string) (*WorkspaceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("workspaces"); err != nil { @@ -89,11 +90,11 @@ func WorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } // find the correct casing for the 'workspaces' segment diff --git a/internal/services/synapse/parse/workspace_aad_admin.go b/internal/services/synapse/parse/workspace_aad_admin.go index bbcfbad167d1..ef29eff413ae 100644 --- a/internal/services/synapse/parse/workspace_aad_admin.go +++ b/internal/services/synapse/parse/workspace_aad_admin.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -35,7 +36,7 @@ func (id WorkspaceAADAdminId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Workspace A A D Admin", segmentsStr) + return fmt.Sprintf("%s: (%s)", "WorkspaceAAD Admin", segmentsStr) } func (id WorkspaceAADAdminId) ID() string { @@ -56,11 +57,11 @@ func WorkspaceAADAdminID(input string) (*WorkspaceAADAdminId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/workspace_aad_admin_test.go b/internal/services/synapse/parse/workspace_aad_admin_test.go index aff50c7fbb55..6f59b0176537 100644 --- a/internal/services/synapse/parse/workspace_aad_admin_test.go +++ b/internal/services/synapse/parse/workspace_aad_admin_test.go @@ -27,7 +27,6 @@ func TestWorkspaceAADAdminID(t *testing.T) { Error bool Expected *WorkspaceAADAdminId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/workspace_extended_auditing_policy.go b/internal/services/synapse/parse/workspace_extended_auditing_policy.go index 32d0cf941ce8..9e268def8051 100644 --- a/internal/services/synapse/parse/workspace_extended_auditing_policy.go +++ b/internal/services/synapse/parse/workspace_extended_auditing_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func WorkspaceExtendedAuditingPolicyID(input string) (*WorkspaceExtendedAuditing } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/workspace_extended_auditing_policy_test.go b/internal/services/synapse/parse/workspace_extended_auditing_policy_test.go index ce207e8d37aa..173af103d7d1 100644 --- a/internal/services/synapse/parse/workspace_extended_auditing_policy_test.go +++ b/internal/services/synapse/parse/workspace_extended_auditing_policy_test.go @@ -27,7 +27,6 @@ func TestWorkspaceExtendedAuditingPolicyID(t *testing.T) { Error bool Expected *WorkspaceExtendedAuditingPolicyId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/workspace_keys.go b/internal/services/synapse/parse/workspace_keys.go index 6a28a17f1f49..58c693c66df8 100644 --- a/internal/services/synapse/parse/workspace_keys.go +++ b/internal/services/synapse/parse/workspace_keys.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func WorkspaceKeysID(input string) (*WorkspaceKeysId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/workspace_keys_test.go b/internal/services/synapse/parse/workspace_keys_test.go index 535e3ad04ba9..680ec9c498bd 100644 --- a/internal/services/synapse/parse/workspace_keys_test.go +++ b/internal/services/synapse/parse/workspace_keys_test.go @@ -27,7 +27,6 @@ func TestWorkspaceKeysID(t *testing.T) { Error bool Expected *WorkspaceKeysId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/workspace_security_alert_policy.go b/internal/services/synapse/parse/workspace_security_alert_policy.go index 7c34fff0f223..e2c79bd31cb3 100644 --- a/internal/services/synapse/parse/workspace_security_alert_policy.go +++ b/internal/services/synapse/parse/workspace_security_alert_policy.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func WorkspaceSecurityAlertPolicyID(input string) (*WorkspaceSecurityAlertPolicy } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/workspace_security_alert_policy_test.go b/internal/services/synapse/parse/workspace_security_alert_policy_test.go index 5caba580d792..fae649d9447a 100644 --- a/internal/services/synapse/parse/workspace_security_alert_policy_test.go +++ b/internal/services/synapse/parse/workspace_security_alert_policy_test.go @@ -27,7 +27,6 @@ func TestWorkspaceSecurityAlertPolicyID(t *testing.T) { Error bool Expected *WorkspaceSecurityAlertPolicyId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/workspace_sql_aad_admin.go b/internal/services/synapse/parse/workspace_sql_aad_admin.go index 05fb6cc7c476..8bf34ea4985d 100644 --- a/internal/services/synapse/parse/workspace_sql_aad_admin.go +++ b/internal/services/synapse/parse/workspace_sql_aad_admin.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -35,7 +36,7 @@ func (id WorkspaceSqlAADAdminId) String() string { fmt.Sprintf("Resource Group %q", id.ResourceGroup), } segmentsStr := strings.Join(segments, " / ") - return fmt.Sprintf("%s: (%s)", "Workspace Sql A A D Admin", segmentsStr) + return fmt.Sprintf("%s: (%s)", "Workspace SqlAAD Admin", segmentsStr) } func (id WorkspaceSqlAADAdminId) ID() string { @@ -56,11 +57,11 @@ func WorkspaceSqlAADAdminID(input string) (*WorkspaceSqlAADAdminId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/workspace_sql_aad_admin_test.go b/internal/services/synapse/parse/workspace_sql_aad_admin_test.go index df41ab4889e1..220ed4ff3d2e 100644 --- a/internal/services/synapse/parse/workspace_sql_aad_admin_test.go +++ b/internal/services/synapse/parse/workspace_sql_aad_admin_test.go @@ -27,7 +27,6 @@ func TestWorkspaceSqlAADAdminID(t *testing.T) { Error bool Expected *WorkspaceSqlAADAdminId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/workspace_test.go b/internal/services/synapse/parse/workspace_test.go index e3825c9ffa3e..d76289bb2444 100644 --- a/internal/services/synapse/parse/workspace_test.go +++ b/internal/services/synapse/parse/workspace_test.go @@ -27,7 +27,6 @@ func TestWorkspaceID(t *testing.T) { Error bool Expected *WorkspaceId }{ - { // empty Input: "", @@ -120,7 +119,6 @@ func TestWorkspaceIDInsensitively(t *testing.T) { Error bool Expected *WorkspaceId }{ - { // empty Input: "", diff --git a/internal/services/synapse/parse/workspace_vulnerability_assessment.go b/internal/services/synapse/parse/workspace_vulnerability_assessment.go index 4ce1834080e5..0c43e78da516 100644 --- a/internal/services/synapse/parse/workspace_vulnerability_assessment.go +++ b/internal/services/synapse/parse/workspace_vulnerability_assessment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func WorkspaceVulnerabilityAssessmentID(input string) (*WorkspaceVulnerabilityAs } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.WorkspaceName, err = id.PopSegment("workspaces"); err != nil { diff --git a/internal/services/synapse/parse/workspace_vulnerability_assessment_test.go b/internal/services/synapse/parse/workspace_vulnerability_assessment_test.go index 97d01bcd46cd..6de2c2801dce 100644 --- a/internal/services/synapse/parse/workspace_vulnerability_assessment_test.go +++ b/internal/services/synapse/parse/workspace_vulnerability_assessment_test.go @@ -27,7 +27,6 @@ func TestWorkspaceVulnerabilityAssessmentID(t *testing.T) { Error bool Expected *WorkspaceVulnerabilityAssessmentId }{ - { // empty Input: "", diff --git a/internal/services/synapse/synapse_linked_service_resource.go b/internal/services/synapse/synapse_linked_service_resource.go index 44fefb7f86ec..d6e76724f65d 100644 --- a/internal/services/synapse/synapse_linked_service_resource.go +++ b/internal/services/synapse/synapse_linked_service_resource.go @@ -20,7 +20,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - artifacts "github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse" + artifacts "github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse" ) func resourceSynapseLinkedService() *pluginsdk.Resource { diff --git a/internal/services/synapse/synapse_managed_private_endpoint_resource.go b/internal/services/synapse/synapse_managed_private_endpoint_resource.go index 02fc53d407e0..e61f6fbe9794 100644 --- a/internal/services/synapse/synapse_managed_private_endpoint_resource.go +++ b/internal/services/synapse/synapse_managed_private_endpoint_resource.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - managedvirtualnetwork "github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse" + managedvirtualnetwork "github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse" ) func resourceSynapseManagedPrivateEndpoint() *pluginsdk.Resource { diff --git a/internal/services/synapse/synapse_role_assignment_resource.go b/internal/services/synapse/synapse_role_assignment_resource.go index 1afea02e87e9..27f48d8d3238 100644 --- a/internal/services/synapse/synapse_role_assignment_resource.go +++ b/internal/services/synapse/synapse_role_assignment_resource.go @@ -21,7 +21,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" "github.com/hashicorp/terraform-provider-azurerm/utils" - accesscontrol "github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse" + accesscontrol "github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse" ) func resourceSynapseRoleAssignment() *pluginsdk.Resource { diff --git a/internal/services/synapse/synapse_sql_pool_resource.go b/internal/services/synapse/synapse_sql_pool_resource.go index 58940b1714e6..6fd68ddafbbe 100644 --- a/internal/services/synapse/synapse_sql_pool_resource.go +++ b/internal/services/synapse/synapse_sql_pool_resource.go @@ -14,7 +14,6 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" mssqlValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/mssql/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/validate" @@ -32,7 +31,7 @@ const ( ) func resourceSynapseSqlPool() *pluginsdk.Resource { - resource := &pluginsdk.Resource{ + return &pluginsdk.Resource{ Create: resourceSynapseSqlPoolCreate, Read: resourceSynapseSqlPoolRead, Update: resourceSynapseSqlPoolUpdate, @@ -95,6 +94,16 @@ func resourceSynapseSqlPool() *pluginsdk.Resource { }, false), }, + "storage_account_type": { + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringInSlice([]string{ + string(synapse.StorageAccountTypeLRS), + string(synapse.StorageAccountTypeGRS), + }, false), + }, + "create_mode": { Type: pluginsdk.TypeString, Optional: true, @@ -173,34 +182,6 @@ func resourceSynapseSqlPool() *pluginsdk.Resource { CustomizeDiff: pluginsdk.CustomizeDiffShim(synapseSqlPoolCustomizeDiff), } - - if !features.FourPointOhBeta() { - // NOTE: In v3.0 providers this will be an Optional field with a 'Default' - // of 'GRS' to match existing v3.0 behavior, the 'ForceNew' logic will be - // applied in the CustomizeDiff function... - resource.Schema["storage_account_type"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Default: string(synapse.StorageAccountTypeGRS), - Optional: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - string(synapse.StorageAccountTypeLRS), - string(synapse.StorageAccountTypeGRS), - }, false), - } - } else { - resource.Schema["storage_account_type"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - string(synapse.StorageAccountTypeLRS), - string(synapse.StorageAccountTypeGRS), - }, false), - } - } - - return resource } func synapseSqlPoolCustomizeDiff(ctx context.Context, d *pluginsdk.ResourceDiff, v interface{}) error { diff --git a/internal/services/synapse/synapse_sql_pool_resource_test.go b/internal/services/synapse/synapse_sql_pool_resource_test.go index 0049dbdb7ce9..7245f7d3de11 100644 --- a/internal/services/synapse/synapse_sql_pool_resource_test.go +++ b/internal/services/synapse/synapse_sql_pool_resource_test.go @@ -12,7 +12,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" @@ -37,67 +36,6 @@ func TestAccSynapseSqlPool_basic(t *testing.T) { }) } -func TestAccSynapseSqlPool_basicThreePointOh(t *testing.T) { - // NOTE: Validate that the original resources default values during create are preserved... - if features.FourPointOhBeta() { - t.Skipf("Skippped as 'storage_account_type' is now a Required field in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_synapse_sql_pool", "test") - r := SynapseSqlPoolResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.geoBackupThreePointOhDefault(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("geo_backup_policy_enabled").HasValue("true"), - check.That(data.ResourceName).Key("storage_account_type").HasValue("GRS"), - ), - }, - data.ImportStep(), - }) -} - -func TestAccSynapseSqlPool_threePointOhUpdate(t *testing.T) { - if features.FourPointOhBeta() { - t.Skipf("Skippped as 'storage_account_type' is now a Required field in 4.0") - } - - data := acceptance.BuildTestData(t, "azurerm_synapse_sql_pool", "test") - r := SynapseSqlPoolResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.geoBackupThreePointOhDefault(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("geo_backup_policy_enabled").HasValue("true"), - check.That(data.ResourceName).Key("storage_account_type").HasValue("GRS"), - ), - }, - data.ImportStep(), - { - Config: r.geoBackup(data, false, "GRS"), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("geo_backup_policy_enabled").HasValue("false"), - check.That(data.ResourceName).Key("storage_account_type").HasValue("GRS"), - ), - }, - data.ImportStep(), - { - Config: r.geoBackupThreePointOhDefault(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("geo_backup_policy_enabled").HasValue("true"), - check.That(data.ResourceName).Key("storage_account_type").HasValue("GRS"), - ), - }, - data.ImportStep(), - }) -} - func TestAccSynapseSqlPool_utf8(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_synapse_sql_pool", "test") r := SynapseSqlPoolResource{} @@ -336,24 +274,6 @@ resource "azurerm_synapse_sql_pool" "test" { `, template, data.RandomString) } -func (r SynapseSqlPoolResource) geoBackupThreePointOhDefault(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -%s - -resource "azurerm_synapse_sql_pool" "test" { - name = "acctestSP%s" - synapse_workspace_id = azurerm_synapse_workspace.test.id - sku_name = "DW100c" - create_mode = "Default" -} -`, template, data.RandomString) -} - func (r SynapseSqlPoolResource) geoBackupDefault(data acceptance.TestData) string { template := r.template(data) return fmt.Sprintf(` diff --git a/internal/services/synapse/synapse_sql_pool_vulnerability_assessment_resource.go b/internal/services/synapse/synapse_sql_pool_vulnerability_assessment_resource.go index 2021e49055c1..2f9968d5cef3 100644 --- a/internal/services/synapse/synapse_sql_pool_vulnerability_assessment_resource.go +++ b/internal/services/synapse/synapse_sql_pool_vulnerability_assessment_resource.go @@ -10,7 +10,6 @@ import ( "github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/v2.0/synapse" // nolint: staticcheck "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -64,7 +63,7 @@ func resourceSynapseSqlPoolVulnerabilityAssessment() *pluginsdk.Resource { Type: pluginsdk.TypeBool, Optional: true, // API actually defaults this to true - Default: features.FourPointOhBeta(), + Default: true, }, "emails": { diff --git a/internal/services/synapse/synapse_workspace_aad_admin_resource.go b/internal/services/synapse/synapse_workspace_aad_admin_resource.go index bcdbf41bd000..41e9f3e49c1f 100644 --- a/internal/services/synapse/synapse_workspace_aad_admin_resource.go +++ b/internal/services/synapse/synapse_workspace_aad_admin_resource.go @@ -8,6 +8,7 @@ import ( "time" "github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/v2.0/synapse" // nolint: staticcheck + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/validate" @@ -131,6 +132,8 @@ func resourceSynapseWorkspaceAADAdminRead(d *pluginsdk.ResourceData, meta interf func resourceSynapseWorkspaceAADAdminDelete(d *pluginsdk.ResourceData, meta interface{}) error { client := meta.(*clients.Client).Synapse.WorkspaceAadAdminsClient + workspaceClient := meta.(*clients.Client).Synapse.WorkspaceClient + azureADOnlyAuthenticationsClient := meta.(*clients.Client).Synapse.WorkspaceAzureADOnlyAuthenticationsClient ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) defer cancel() @@ -139,6 +142,30 @@ func resourceSynapseWorkspaceAADAdminDelete(d *pluginsdk.ResourceData, meta inte return err } + workspace, err := workspaceClient.Get(ctx, id.ResourceGroup, id.WorkspaceName) + if err != nil { + if utils.ResponseWasNotFound(workspace.Response) { + return fmt.Errorf("retrieving %q: %+v", id, err) + } + } + + if pointer.From(workspace.AzureADOnlyAuthentication) { + // Remove Azure Active Azure Admin, API requires AzureADOnlyAuthentication to be disabled first, see below error message from API. + // "User tried to delete managed server Azure Active Azure admin when AzureADOnlyAuthentication is set, please use azureADOnlyAuthentications API first." + future, err := azureADOnlyAuthenticationsClient.Create(ctx, id.ResourceGroup, id.WorkspaceName, synapse.AzureADOnlyAuthentication{ + AzureADOnlyAuthenticationProperties: &synapse.AzureADOnlyAuthenticationProperties{ + AzureADOnlyAuthentication: pointer.To(false), + }, + }) + if err != nil { + return fmt.Errorf("updating azuread_authentication_only for %s: %+v", *workspace.ID, err) + } + + if err = future.WaitForCompletionRef(ctx, client.Client); err != nil { + return fmt.Errorf("waiting for azuread_authentication_only to finish updating for %s: %+v", *workspace.ID, err) + } + } + future, err := client.Delete(ctx, id.ResourceGroup, id.WorkspaceName) if err != nil { return fmt.Errorf("setting empty Synapse Workspace %q AAD Admin (Resource Group %q): %+v", id.WorkspaceName, id.ResourceGroup, err) diff --git a/internal/services/synapse/synapse_workspace_aad_admin_resource_test.go b/internal/services/synapse/synapse_workspace_aad_admin_resource_test.go index 9b1cfe9bd2bd..14469142c33f 100644 --- a/internal/services/synapse/synapse_workspace_aad_admin_resource_test.go +++ b/internal/services/synapse/synapse_workspace_aad_admin_resource_test.go @@ -102,6 +102,7 @@ resource "azurerm_synapse_workspace" "test" { storage_data_lake_gen2_filesystem_id = azurerm_storage_data_lake_gen2_filesystem.test.id sql_administrator_login = "sqladminuser" sql_administrator_login_password = "H@Sh1CoR3!" + azuread_authentication_only = true identity { type = "SystemAssigned" diff --git a/internal/services/synapse/synapse_workspace_resource.go b/internal/services/synapse/synapse_workspace_resource.go index b26eaac50630..dba6d6cd1650 100644 --- a/internal/services/synapse/synapse_workspace_resource.go +++ b/internal/services/synapse/synapse_workspace_resource.go @@ -238,9 +238,6 @@ func resourceSynapseWorkspace() *pluginsdk.Resource { Optional: true, MaxItems: 1, ConflictsWith: func() []string { - if !features.FourPointOhBeta() { - return []string{"sql_aad_admin"} - } return []string{} }(), Elem: &pluginsdk.Resource{ @@ -276,73 +273,11 @@ func resourceSynapseWorkspace() *pluginsdk.Resource { }, } - if !features.FourPointOhBeta() { - resource.Schema["aad_admin"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - ConfigMode: pluginsdk.SchemaConfigModeAttr, - Deprecated: "The `aad_admin` block has been superseded by the `azurerm_synapse_workspace_aad_admin` resource and will be removed in v4.0 of the AzureRM Provider.", - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "login": { - Type: pluginsdk.TypeString, - Required: true, - }, - - "object_id": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.IsUUID, - }, - - "tenant_id": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.IsUUID, - }, - }, - }, - } - resource.Schema["sql_aad_admin"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - MaxItems: 1, - ConfigMode: pluginsdk.SchemaConfigModeAttr, - ConflictsWith: []string{"customer_managed_key"}, - Deprecated: "The `sql_aad_admin` block has been superseded by the `azurerm_synapse_workspace_sql_aad_admin` resource and will be removed in v4.0 of the AzureRM Provider.", - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "login": { - Type: pluginsdk.TypeString, - Required: true, - }, - - "object_id": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.IsUUID, - }, - - "tenant_id": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.IsUUID, - }, - }, - }, - } - } - return resource } func resourceSynapseWorkspaceCreate(d *pluginsdk.ResourceData, meta interface{}) error { client := meta.(*clients.Client).Synapse.WorkspaceClient - aadAdminClient := meta.(*clients.Client).Synapse.WorkspaceAadAdminsClient - sqlAdminClient := meta.(*clients.Client).Synapse.WorkspaceSQLAadAdminsClient subscriptionId := meta.(*clients.Client).Account.SubscriptionId identitySQLControlClient := meta.(*clients.Client).Synapse.WorkspaceManagedIdentitySQLControlSettingsClient ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) @@ -431,32 +366,6 @@ func resourceSynapseWorkspaceCreate(d *pluginsdk.ResourceData, meta interface{}) return fmt.Errorf("failed waiting for updating %s: %+v", id, err) } - if !features.FourPointOhBeta() { - aadAdmin := expandArmWorkspaceAadAdminInfo(d.Get("aad_admin").([]interface{})) - if aadAdmin != nil { - future, err := aadAdminClient.CreateOrUpdate(ctx, id.ResourceGroup, id.Name, *aadAdmin) - if err != nil { - return fmt.Errorf("configuring AzureAD Admin for %s: %+v", id, err) - } - - if err = future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for configuration of AzureAD Admin for %s: %+v", id, err) - } - } - - sqlAdmin := expandArmWorkspaceAadAdminInfo(d.Get("sql_aad_admin").([]interface{})) - if sqlAdmin != nil { - future, err := sqlAdminClient.CreateOrUpdate(ctx, id.ResourceGroup, id.Name, *sqlAdmin) - if err != nil { - return fmt.Errorf("configuring Sql Admin for %s: %+v", id, err) - } - - if err = future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for configuration of Sql Admin for %s: %+v", id, err) - } - } - } - sqlControlSettings := expandIdentityControlSQLSettings(d.Get("sql_identity_control_enabled").(bool)) future2, err := identitySQLControlClient.CreateOrUpdate(ctx, id.ResourceGroup, id.Name, *sqlControlSettings) if err != nil { @@ -476,8 +385,6 @@ func resourceSynapseWorkspaceCreate(d *pluginsdk.ResourceData, meta interface{}) func resourceSynapseWorkspaceRead(d *pluginsdk.ResourceData, meta interface{}) error { client := meta.(*clients.Client).Synapse.WorkspaceClient - aadAdminClient := meta.(*clients.Client).Synapse.WorkspaceAadAdminsClient - sqlAdminClient := meta.(*clients.Client).Synapse.WorkspaceSQLAadAdminsClient identitySQLControlClient := meta.(*clients.Client).Synapse.WorkspaceManagedIdentitySQLControlSettingsClient ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) defer cancel() @@ -497,30 +404,6 @@ func resourceSynapseWorkspaceRead(d *pluginsdk.ResourceData, meta interface{}) e return fmt.Errorf("retrieving %s: %+v", *id, err) } - if !features.FourPointOhBeta() { - aadAdmin, err := aadAdminClient.Get(ctx, id.ResourceGroup, id.Name) - if err != nil { - // NOTE: AAD Admin isn't supported for a Workspace created from a Dedicated SQL Pool / SQL DataWarehouse and returns a Conflict - if !utils.ResponseWasNotFound(aadAdmin.Response) && !utils.ResponseWasConflict(aadAdmin.Response) { - return fmt.Errorf("retrieving AzureAD Admin for %s: %+v", *id, err) - } - } - sqlAdmin, err := sqlAdminClient.Get(ctx, id.ResourceGroup, id.Name) - if err != nil { - // NOTE: SQL Admin isn't supported for a Workspace created from a Dedicated SQL Pool / SQL DataWarehouse and returns a Conflict - if !utils.ResponseWasNotFound(sqlAdmin.Response) && !utils.ResponseWasConflict(sqlAdmin.Response) { - return fmt.Errorf("retrieving Sql Admin for %s: %+v", *id, err) - } - } - - if err := d.Set("aad_admin", flattenArmWorkspaceAadAdmin(aadAdmin.AadAdminProperties)); err != nil { - return fmt.Errorf("setting `aad_admin`: %+v", err) - } - if err := d.Set("sql_aad_admin", flattenArmWorkspaceAadAdmin(sqlAdmin.AadAdminProperties)); err != nil { - return fmt.Errorf("setting `sql_aad_admin`: %+v", err) - } - } - sqlControlSettings, err := identitySQLControlClient.Get(ctx, id.ResourceGroup, id.Name) if err != nil { return fmt.Errorf("retrieving Sql Identity Control for %s: %+v", *id, err) @@ -951,29 +834,6 @@ func flattenArmWorkspaceDataLakeStorageAccountDetails(input *synapse.DataLakeSto return "" } -func flattenArmWorkspaceAadAdmin(input *synapse.AadAdminProperties) []interface{} { - if input == nil { - return make([]interface{}, 0) - } - var tenantId, login, sid string - if input.TenantID != nil { - tenantId = *input.TenantID - } - if input.Login != nil { - login = *input.Login - } - if input.Sid != nil { - sid = *input.Sid - } - return []interface{}{ - map[string]interface{}{ - "tenant_id": tenantId, - "login": login, - "object_id": sid, - }, - } -} - func flattenWorkspaceRepositoryConfiguration(config *synapse.WorkspaceRepositoryConfiguration) (repoTypeResult string, result []interface{}) { if config == nil { return "", make([]interface{}, 0) diff --git a/internal/services/synapse/synapse_workspace_vulnerability_assessment_resource.go b/internal/services/synapse/synapse_workspace_vulnerability_assessment_resource.go index d44e84bba72d..5b4a25999103 100644 --- a/internal/services/synapse/synapse_workspace_vulnerability_assessment_resource.go +++ b/internal/services/synapse/synapse_workspace_vulnerability_assessment_resource.go @@ -10,7 +10,6 @@ import ( "github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/v2.0/synapse" // nolint: staticcheck "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/services/synapse/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -63,8 +62,7 @@ func resourceSynapseWorkspaceVulnerabilityAssessment() *pluginsdk.Resource { "email_subscription_admins_enabled": { Type: pluginsdk.TypeBool, Optional: true, - // API actually defaults this to true - Default: features.FourPointOhBeta(), + Default: true, }, "emails": { diff --git a/internal/services/synapse/validate/firewall_rule_id_test.go b/internal/services/synapse/validate/firewall_rule_id_test.go index c8d7fcf4ef62..c83664ddfe2d 100644 --- a/internal/services/synapse/validate/firewall_rule_id_test.go +++ b/internal/services/synapse/validate/firewall_rule_id_test.go @@ -12,7 +12,6 @@ func TestFirewallRuleID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/integration_runtime_id_test.go b/internal/services/synapse/validate/integration_runtime_id_test.go index f2a3d697491c..12c93a74a8a4 100644 --- a/internal/services/synapse/validate/integration_runtime_id_test.go +++ b/internal/services/synapse/validate/integration_runtime_id_test.go @@ -12,7 +12,6 @@ func TestIntegrationRuntimeID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/linked_service_id_test.go b/internal/services/synapse/validate/linked_service_id_test.go index 0768a295a509..4db0c9947b57 100644 --- a/internal/services/synapse/validate/linked_service_id_test.go +++ b/internal/services/synapse/validate/linked_service_id_test.go @@ -12,7 +12,6 @@ func TestLinkedServiceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/managed_private_endpoint_id_test.go b/internal/services/synapse/validate/managed_private_endpoint_id_test.go index f2478810e67f..d790cdc1b19f 100644 --- a/internal/services/synapse/validate/managed_private_endpoint_id_test.go +++ b/internal/services/synapse/validate/managed_private_endpoint_id_test.go @@ -12,7 +12,6 @@ func TestManagedPrivateEndpointID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/private_link_hub_id_test.go b/internal/services/synapse/validate/private_link_hub_id_test.go index 1c60d575d8ed..e677a0219f0b 100644 --- a/internal/services/synapse/validate/private_link_hub_id_test.go +++ b/internal/services/synapse/validate/private_link_hub_id_test.go @@ -12,7 +12,6 @@ func TestPrivateLinkHubID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/spark_pool_id_test.go b/internal/services/synapse/validate/spark_pool_id_test.go index fc71de8ef5d6..7cd1377434de 100644 --- a/internal/services/synapse/validate/spark_pool_id_test.go +++ b/internal/services/synapse/validate/spark_pool_id_test.go @@ -12,7 +12,6 @@ func TestSparkPoolID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/sql_pool_extended_auditing_policy_id_test.go b/internal/services/synapse/validate/sql_pool_extended_auditing_policy_id_test.go index f4e44b2cb874..6494a1e61346 100644 --- a/internal/services/synapse/validate/sql_pool_extended_auditing_policy_id_test.go +++ b/internal/services/synapse/validate/sql_pool_extended_auditing_policy_id_test.go @@ -12,7 +12,6 @@ func TestSqlPoolExtendedAuditingPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/sql_pool_id_test.go b/internal/services/synapse/validate/sql_pool_id_test.go index 8b68888f1b74..6334b32ec33e 100644 --- a/internal/services/synapse/validate/sql_pool_id_test.go +++ b/internal/services/synapse/validate/sql_pool_id_test.go @@ -12,7 +12,6 @@ func TestSqlPoolID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/sql_pool_recoverable_database_id_test.go b/internal/services/synapse/validate/sql_pool_recoverable_database_id_test.go index fa157929a02c..abc328632e63 100644 --- a/internal/services/synapse/validate/sql_pool_recoverable_database_id_test.go +++ b/internal/services/synapse/validate/sql_pool_recoverable_database_id_test.go @@ -12,7 +12,6 @@ func TestSqlPoolRecoverableDatabaseID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/sql_pool_security_alert_policy_id_test.go b/internal/services/synapse/validate/sql_pool_security_alert_policy_id_test.go index 787c65de0db4..8fbedde7ec3d 100644 --- a/internal/services/synapse/validate/sql_pool_security_alert_policy_id_test.go +++ b/internal/services/synapse/validate/sql_pool_security_alert_policy_id_test.go @@ -12,7 +12,6 @@ func TestSqlPoolSecurityAlertPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/sql_pool_vulnerability_assessment_baseline_id_test.go b/internal/services/synapse/validate/sql_pool_vulnerability_assessment_baseline_id_test.go index 0420ac2051e4..14344279b5b0 100644 --- a/internal/services/synapse/validate/sql_pool_vulnerability_assessment_baseline_id_test.go +++ b/internal/services/synapse/validate/sql_pool_vulnerability_assessment_baseline_id_test.go @@ -12,7 +12,6 @@ func TestSqlPoolVulnerabilityAssessmentBaselineID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/sql_pool_vulnerability_assessment_id_test.go b/internal/services/synapse/validate/sql_pool_vulnerability_assessment_id_test.go index 7d1123940bee..a7181797e514 100644 --- a/internal/services/synapse/validate/sql_pool_vulnerability_assessment_id_test.go +++ b/internal/services/synapse/validate/sql_pool_vulnerability_assessment_id_test.go @@ -12,7 +12,6 @@ func TestSqlPoolVulnerabilityAssessmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/sql_pool_workload_classifier_id_test.go b/internal/services/synapse/validate/sql_pool_workload_classifier_id_test.go index be9fbc9f8fdf..07cace49fc3c 100644 --- a/internal/services/synapse/validate/sql_pool_workload_classifier_id_test.go +++ b/internal/services/synapse/validate/sql_pool_workload_classifier_id_test.go @@ -12,7 +12,6 @@ func TestSqlPoolWorkloadClassifierID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/sql_pool_workload_group_id_test.go b/internal/services/synapse/validate/sql_pool_workload_group_id_test.go index f7e22e42995d..01f2a92e61b1 100644 --- a/internal/services/synapse/validate/sql_pool_workload_group_id_test.go +++ b/internal/services/synapse/validate/sql_pool_workload_group_id_test.go @@ -12,7 +12,6 @@ func TestSqlPoolWorkloadGroupID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/workspace_aad_admin_id_test.go b/internal/services/synapse/validate/workspace_aad_admin_id_test.go index bb5da3015f75..d7b73f8c9a6e 100644 --- a/internal/services/synapse/validate/workspace_aad_admin_id_test.go +++ b/internal/services/synapse/validate/workspace_aad_admin_id_test.go @@ -12,7 +12,6 @@ func TestWorkspaceAADAdminID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/workspace_extended_auditing_policy_id_test.go b/internal/services/synapse/validate/workspace_extended_auditing_policy_id_test.go index 927ab57b8411..2530a1638bf3 100644 --- a/internal/services/synapse/validate/workspace_extended_auditing_policy_id_test.go +++ b/internal/services/synapse/validate/workspace_extended_auditing_policy_id_test.go @@ -12,7 +12,6 @@ func TestWorkspaceExtendedAuditingPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/workspace_id_test.go b/internal/services/synapse/validate/workspace_id_test.go index 2ee91c9e71bf..df9c24abbdd9 100644 --- a/internal/services/synapse/validate/workspace_id_test.go +++ b/internal/services/synapse/validate/workspace_id_test.go @@ -12,7 +12,6 @@ func TestWorkspaceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/workspace_keys_id_test.go b/internal/services/synapse/validate/workspace_keys_id_test.go index f872498cc82b..ef786c2fc9ae 100644 --- a/internal/services/synapse/validate/workspace_keys_id_test.go +++ b/internal/services/synapse/validate/workspace_keys_id_test.go @@ -12,7 +12,6 @@ func TestWorkspaceKeysID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/workspace_security_alert_policy_id_test.go b/internal/services/synapse/validate/workspace_security_alert_policy_id_test.go index 6271d851835c..f26a3549dd42 100644 --- a/internal/services/synapse/validate/workspace_security_alert_policy_id_test.go +++ b/internal/services/synapse/validate/workspace_security_alert_policy_id_test.go @@ -12,7 +12,6 @@ func TestWorkspaceSecurityAlertPolicyID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/workspace_sql_aad_admin_id_test.go b/internal/services/synapse/validate/workspace_sql_aad_admin_id_test.go index 008281b7ea91..9400cdf0beb0 100644 --- a/internal/services/synapse/validate/workspace_sql_aad_admin_id_test.go +++ b/internal/services/synapse/validate/workspace_sql_aad_admin_id_test.go @@ -12,7 +12,6 @@ func TestWorkspaceSqlAADAdminID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/synapse/validate/workspace_vulnerability_assessment_id_test.go b/internal/services/synapse/validate/workspace_vulnerability_assessment_id_test.go index 5cb4040bbee8..1538a0f43159 100644 --- a/internal/services/synapse/validate/workspace_vulnerability_assessment_id_test.go +++ b/internal/services/synapse/validate/workspace_vulnerability_assessment_id_test.go @@ -12,7 +12,6 @@ func TestWorkspaceVulnerabilityAssessmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_availability_set_resource.go b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_availability_set_resource.go index bc75c33ad056..94f5d39b3ee5 100644 --- a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_availability_set_resource.go +++ b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_availability_set_resource.go @@ -30,8 +30,10 @@ type SystemCenterVirtualMachineManagerAvailabilitySetModel struct { Tags map[string]string `tfschema:"tags"` } -var _ sdk.Resource = SystemCenterVirtualMachineManagerAvailabilitySetResource{} -var _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerAvailabilitySetResource{} +var ( + _ sdk.Resource = SystemCenterVirtualMachineManagerAvailabilitySetResource{} + _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerAvailabilitySetResource{} +) type SystemCenterVirtualMachineManagerAvailabilitySetResource struct{} diff --git a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_cloud_resource.go b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_cloud_resource.go index e5bd7e8acbe3..73333c8a8a8b 100644 --- a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_cloud_resource.go +++ b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_cloud_resource.go @@ -30,8 +30,10 @@ type SystemCenterVirtualMachineManagerCloudModel struct { Tags map[string]string `tfschema:"tags"` } -var _ sdk.Resource = SystemCenterVirtualMachineManagerCloudResource{} -var _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerCloudResource{} +var ( + _ sdk.Resource = SystemCenterVirtualMachineManagerCloudResource{} + _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerCloudResource{} +) type SystemCenterVirtualMachineManagerCloudResource struct{} diff --git a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_server_resource.go b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_server_resource.go index 49e57de62cc6..f5c8a977d69b 100644 --- a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_server_resource.go +++ b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_server_resource.go @@ -33,8 +33,10 @@ type SystemCenterVirtualMachineManagerServerModel struct { Tags map[string]string `tfschema:"tags"` } -var _ sdk.Resource = SystemCenterVirtualMachineManagerServerResource{} -var _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerServerResource{} +var ( + _ sdk.Resource = SystemCenterVirtualMachineManagerServerResource{} + _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerServerResource{} +) type SystemCenterVirtualMachineManagerServerResource struct{} @@ -203,7 +205,6 @@ func (r SystemCenterVirtualMachineManagerServerResource) Read() sdk.ResourceFunc if v := model.Properties.Credentials; v != nil { state.Username = pointer.From(v.Username) } - } return metadata.Encode(&state) diff --git a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_virtual_machine_template_resource.go b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_virtual_machine_template_resource.go index f0e5e56572c7..1949000f95eb 100644 --- a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_virtual_machine_template_resource.go +++ b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_virtual_machine_template_resource.go @@ -30,8 +30,10 @@ type SystemCenterVirtualMachineManagerVirtualMachineTemplateModel struct { Tags map[string]string `tfschema:"tags"` } -var _ sdk.Resource = SystemCenterVirtualMachineManagerVirtualMachineTemplateResource{} -var _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerVirtualMachineTemplateResource{} +var ( + _ sdk.Resource = SystemCenterVirtualMachineManagerVirtualMachineTemplateResource{} + _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerVirtualMachineTemplateResource{} +) type SystemCenterVirtualMachineManagerVirtualMachineTemplateResource struct{} diff --git a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_virtual_network_resource.go b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_virtual_network_resource.go index 33d8fdda95f8..22c36986e989 100644 --- a/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_virtual_network_resource.go +++ b/internal/services/systemcentervirtualmachinemanager/system_center_virtual_machine_manager_virtual_network_resource.go @@ -30,8 +30,10 @@ type SystemCenterVirtualMachineManagerVirtualNetworkModel struct { Tags map[string]string `tfschema:"tags"` } -var _ sdk.Resource = SystemCenterVirtualMachineManagerVirtualNetworkResource{} -var _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerVirtualNetworkResource{} +var ( + _ sdk.Resource = SystemCenterVirtualMachineManagerVirtualNetworkResource{} + _ sdk.ResourceWithUpdate = SystemCenterVirtualMachineManagerVirtualNetworkResource{} +) type SystemCenterVirtualMachineManagerVirtualNetworkResource struct{} diff --git a/internal/services/trafficmanager/azure_endpoint_resource.go b/internal/services/trafficmanager/azure_endpoint_resource.go index 9377c5f8457d..62c6d84cbedb 100644 --- a/internal/services/trafficmanager/azure_endpoint_resource.go +++ b/internal/services/trafficmanager/azure_endpoint_resource.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" azValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" azSchema "github.com/hashicorp/terraform-provider-azurerm/internal/tf/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -24,7 +23,7 @@ import ( ) func resourceAzureEndpoint() *pluginsdk.Resource { - resource := &pluginsdk.Resource{ + return &pluginsdk.Resource{ Create: resourceAzureEndpointCreate, Read: resourceAzureEndpointRead, Update: resourceAzureEndpointUpdate, @@ -109,9 +108,10 @@ func resourceAzureEndpoint() *pluginsdk.Resource { }, "priority": { - Type: pluginsdk.TypeInt, - Optional: true, - Default: 1, + Type: pluginsdk.TypeInt, + Optional: true, + // NOTE: O+C the API dynamically increments the default value for priority depending on the number of endpoints + Computed: true, ValidateFunc: validation.IntBetween(1, 1000), }, @@ -147,23 +147,6 @@ func resourceAzureEndpoint() *pluginsdk.Resource { }, }, } - - if !features.FourPointOhBeta() { - resource.Schema["priority"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(1, 1000), - } - resource.Schema["weight"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(1, 1000), - } - } - - return resource } func resourceAzureEndpointCreate(d *pluginsdk.ResourceData, meta interface{}) error { diff --git a/internal/services/trafficmanager/azure_endpoint_resource_test.go b/internal/services/trafficmanager/azure_endpoint_resource_test.go index b655ddd57887..14dae46964bb 100644 --- a/internal/services/trafficmanager/azure_endpoint_resource_test.go +++ b/internal/services/trafficmanager/azure_endpoint_resource_test.go @@ -93,6 +93,21 @@ func TestAccAzureEndpoint_complete(t *testing.T) { }) } +func TestAccAzureEndpoint_multipleEndpointsWithDynamicPriority(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_traffic_manager_azure_endpoint", "test2") + r := AzureEndpointResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.multiple(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccAzureEndpoint_subnets(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_traffic_manager_azure_endpoint", "test") r := AzureEndpointResource{} @@ -244,6 +259,47 @@ resource "azurerm_traffic_manager_azure_endpoint" "test" { `, template, data.RandomInteger) } +func (r AzureEndpointResource) multiple(data acceptance.TestData) string { + template := r.template(data) + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%[1]s + +resource "azurerm_public_ip" "test" { + name = "acctestpublicip-%[2]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + allocation_method = "Static" + domain_name_label = "acctestpublicip-%[2]d" +} + +resource "azurerm_public_ip" "test2" { + name = "acctestpublicip2-%[2]d" + location = azurerm_resource_group.test.location + resource_group_name = azurerm_resource_group.test.name + allocation_method = "Static" + domain_name_label = "acctestpublicip2-%[2]d" +} + +resource "azurerm_traffic_manager_azure_endpoint" "test" { + name = "acctestend-azure%[2]d" + target_resource_id = azurerm_public_ip.test.id + weight = 5 + profile_id = azurerm_traffic_manager_profile.test.id +} + +resource "azurerm_traffic_manager_azure_endpoint" "test2" { + name = "acctestend2-azure%[2]d" + target_resource_id = azurerm_public_ip.test2.id + weight = 5 + profile_id = azurerm_traffic_manager_profile.test.id +} +`, template, data.RandomInteger) +} + func (r AzureEndpointResource) subnets(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/trafficmanager/external_endpoint_resource.go b/internal/services/trafficmanager/external_endpoint_resource.go index c38c16d423cf..4daeb6b7974e 100644 --- a/internal/services/trafficmanager/external_endpoint_resource.go +++ b/internal/services/trafficmanager/external_endpoint_resource.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" azValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" azSchema "github.com/hashicorp/terraform-provider-azurerm/internal/tf/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -24,7 +23,7 @@ import ( ) func resourceExternalEndpoint() *pluginsdk.Resource { - resource := &pluginsdk.Resource{ + return &pluginsdk.Resource{ Create: resourceExternalEndpointCreate, Read: resourceExternalEndpointRead, Update: resourceExternalEndpointUpdate, @@ -109,9 +108,10 @@ func resourceExternalEndpoint() *pluginsdk.Resource { }, "priority": { - Type: pluginsdk.TypeInt, - Optional: true, - Default: 1, + Type: pluginsdk.TypeInt, + Optional: true, + // NOTE: O+C the API dynamically increments the default value for priority depending on the number of endpoints + Computed: true, ValidateFunc: validation.IntBetween(1, 1000), }, @@ -155,23 +155,6 @@ func resourceExternalEndpoint() *pluginsdk.Resource { }, }, } - - if !features.FourPointOhBeta() { - resource.Schema["priority"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(1, 1000), - } - resource.Schema["weight"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(1, 1000), - } - } - - return resource } func resourceExternalEndpointCreate(d *pluginsdk.ResourceData, meta interface{}) error { diff --git a/internal/services/trafficmanager/external_endpoint_resource_test.go b/internal/services/trafficmanager/external_endpoint_resource_test.go index 75bc822b008d..a2a1c0f5960f 100644 --- a/internal/services/trafficmanager/external_endpoint_resource_test.go +++ b/internal/services/trafficmanager/external_endpoint_resource_test.go @@ -108,6 +108,21 @@ func TestAccExternalEndpoint_subnets(t *testing.T) { }) } +func TestAccExternalEndpoint_multipleEndpointsWithDynamicPriority(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_traffic_manager_external_endpoint", "test") + r := ExternalEndpointResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.multiple(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + ), + }, + data.ImportStep(), + }) +} + func TestAccExternalEndpoint_performancePolicy(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_traffic_manager_external_endpoint", "test") r := ExternalEndpointResource{} @@ -232,6 +247,32 @@ resource "azurerm_traffic_manager_external_endpoint" "test" { `, r.template(data), data.RandomInteger) } +func (r ExternalEndpointResource) multiple(data acceptance.TestData) string { + return fmt.Sprintf(` +provider "azurerm" { + features {} +} + +%[1]s + +resource "azurerm_traffic_manager_external_endpoint" "test" { + name = "acctestend-azure%[2]d" + target = "www.example.com" + weight = 5 + profile_id = azurerm_traffic_manager_profile.test.id + endpoint_location = azurerm_resource_group.test.location +} + +resource "azurerm_traffic_manager_external_endpoint" "test2" { + name = "acctestend-azure2%[2]d" + target = "www.pandas.com" + weight = 5 + profile_id = azurerm_traffic_manager_profile.test.id + endpoint_location = azurerm_resource_group.test.location +} +`, r.template(data), data.RandomInteger) +} + func (r ExternalEndpointResource) subnets(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/trafficmanager/nested_endpoint_resource.go b/internal/services/trafficmanager/nested_endpoint_resource.go index 7e7c48513202..375aeac5fce4 100644 --- a/internal/services/trafficmanager/nested_endpoint_resource.go +++ b/internal/services/trafficmanager/nested_endpoint_resource.go @@ -15,7 +15,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" azValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" azSchema "github.com/hashicorp/terraform-provider-azurerm/internal/tf/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -24,7 +23,7 @@ import ( ) func resourceNestedEndpoint() *pluginsdk.Resource { - resource := &pluginsdk.Resource{ + return &pluginsdk.Resource{ Create: resourceNestedEndpointCreateUpdate, Read: resourceNestedEndpointRead, Update: resourceNestedEndpointCreateUpdate, @@ -165,23 +164,6 @@ func resourceNestedEndpoint() *pluginsdk.Resource { }, }, } - - if !features.FourPointOhBeta() { - resource.Schema["priority"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(1, 1000), - } - resource.Schema["weight"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeInt, - Optional: true, - Computed: true, - ValidateFunc: validation.IntBetween(1, 1000), - } - } - - return resource } func resourceNestedEndpointCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { diff --git a/internal/services/trafficmanager/traffic_manager_profile_resource.go b/internal/services/trafficmanager/traffic_manager_profile_resource.go index a76a72520f49..b7d779e9cd6b 100644 --- a/internal/services/trafficmanager/traffic_manager_profile_resource.go +++ b/internal/services/trafficmanager/traffic_manager_profile_resource.go @@ -4,6 +4,7 @@ package trafficmanager import ( + "errors" "fmt" "log" "strconv" @@ -17,7 +18,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/trafficmanager/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -26,7 +26,7 @@ import ( ) func resourceArmTrafficManagerProfile() *pluginsdk.Resource { - resource := &pluginsdk.Resource{ + return &pluginsdk.Resource{ Create: resourceArmTrafficManagerProfileCreate, Read: resourceArmTrafficManagerProfileRead, Update: resourceArmTrafficManagerProfileUpdate, @@ -194,19 +194,6 @@ func resourceArmTrafficManagerProfile() *pluginsdk.Resource { "tags": commonschema.Tags(), }, } - - if !features.FourPointOhBeta() { - resource.Schema["profile_status"] = &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - Optional: true, - Computed: true, - ValidateFunc: validation.StringInSlice([]string{ - string(profiles.ProfileStatusEnabled), - string(profiles.ProfileStatusDisabled), - }, false), - } - } - return resource } func resourceArmTrafficManagerProfileCreate(d *pluginsdk.ResourceData, meta interface{}) error { @@ -258,12 +245,12 @@ func resourceArmTrafficManagerProfileCreate(d *pluginsdk.ResourceData, meta inte trafficRoutingMethodPtr := profile.Properties.TrafficRoutingMethod if *trafficRoutingMethodPtr == profiles.TrafficRoutingMethodMultiValue && profile.Properties.MaxReturn == nil { - return fmt.Errorf("`max_return` must be specified when `traffic_routing_method` is set to `MultiValue`") + return errors.New("`max_return` must be specified when `traffic_routing_method` is set to `MultiValue`") } if *profile.Properties.MonitorConfig.IntervalInSeconds == int64(10) && *profile.Properties.MonitorConfig.TimeoutInSeconds == int64(10) { - return fmt.Errorf("`timeout_in_seconds` must be between `5` and `9` when `interval_in_seconds` is set to `10`") + return errors.New("`timeout_in_seconds` must be between `5` and `9` when `interval_in_seconds` is set to `10`") } if _, err := client.CreateOrUpdate(ctx, id, profile); err != nil { diff --git a/internal/services/videoindexer/account_resource.go b/internal/services/videoindexer/account_resource.go index cc277b034f6f..658452034de3 100644 --- a/internal/services/videoindexer/account_resource.go +++ b/internal/services/videoindexer/account_resource.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package videoindexer import ( diff --git a/internal/services/videoindexer/account_resource_test.go b/internal/services/videoindexer/account_resource_test.go index ae1a34206ce4..1e7c1b4292d4 100644 --- a/internal/services/videoindexer/account_resource_test.go +++ b/internal/services/videoindexer/account_resource_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package videoindexer_test import ( diff --git a/internal/services/videoindexer/client/client.go b/internal/services/videoindexer/client/client.go index 7291677a5468..ac48c27b52df 100644 --- a/internal/services/videoindexer/client/client.go +++ b/internal/services/videoindexer/client/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/internal/services/videoindexer/registration.go b/internal/services/videoindexer/registration.go index e4e9d3320f34..294a63b4881a 100644 --- a/internal/services/videoindexer/registration.go +++ b/internal/services/videoindexer/registration.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package videoindexer import "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" diff --git a/internal/services/voiceservices/client/client.go b/internal/services/voiceservices/client/client.go index 13585656247a..489415146e1c 100644 --- a/internal/services/voiceservices/client/client.go +++ b/internal/services/voiceservices/client/client.go @@ -17,7 +17,6 @@ type Client struct { } func NewClient(o *common.ClientOptions) (*Client, error) { - communicationsGatewaysClient, err := communicationsgateways.NewCommunicationsGatewaysClientWithBaseURI(o.Environment.ResourceManager) if err != nil { return nil, fmt.Errorf("building Communications Gateways Client: %+v", err) diff --git a/internal/services/voiceservices/registration.go b/internal/services/voiceservices/registration.go index 50266f923bd2..78b7b28f7e6b 100644 --- a/internal/services/voiceservices/registration.go +++ b/internal/services/voiceservices/registration.go @@ -9,9 +9,7 @@ import ( type Registration struct{} -var ( - _ sdk.TypedServiceRegistration = Registration{} -) +var _ sdk.TypedServiceRegistration = Registration{} // Name is the name of this Service func (r Registration) Name() string { diff --git a/internal/services/voiceservices/voice_services_communications_gateway_resource.go b/internal/services/voiceservices/voice_services_communications_gateway_resource.go index 8e1a9bc31295..f951df672622 100644 --- a/internal/services/voiceservices/voice_services_communications_gateway_resource.go +++ b/internal/services/voiceservices/voice_services_communications_gateway_resource.go @@ -46,8 +46,7 @@ type ServiceRegionPropertiesModel struct { EsrpAddresses []string `tfschema:"esrp_addresses"` } -type PrimaryRegionPropertiesModel struct { -} +type PrimaryRegionPropertiesModel struct{} type CommunicationsGatewayResource struct{} @@ -421,7 +420,7 @@ func (r CommunicationsGatewayResource) Read() sdk.ResourceFunc { state.Connectivity = string(properties.Connectivity) codecsValue := "" - if properties.Codecs != nil && len(properties.Codecs) > 0 { + if len(properties.Codecs) > 0 { codecsValue = string(properties.Codecs[0]) } state.Codecs = codecsValue @@ -515,7 +514,7 @@ func expandCommunicationsPlatformModel(input []string) []communicationsgateways. return nil } - var output []communicationsgateways.CommunicationsPlatform + output := make([]communicationsgateways.CommunicationsPlatform, 0, len(input)) for _, v := range input { platform := communicationsgateways.CommunicationsPlatform(v) output = append(output, platform) diff --git a/internal/services/web/app_service_environment_data_source.go b/internal/services/web/app_service_environment_data_source.go deleted file mode 100644 index e6be091a6586..000000000000 --- a/internal/services/web/app_service_environment_data_source.go +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package web - -import ( - "fmt" - "time" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/tags" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -func dataSourceAppServiceEnvironment() *pluginsdk.Resource { - return &pluginsdk.Resource{ - Read: dataSourceAppServiceEnvironmentRead, - DeprecationMessage: "This data source is deprecated due to the [retirement of v1 and v2 App Service Environments](https://azure.microsoft.com/en-gb/updates/app-service-environment-v1-and-v2-retirement-announcement/) and will be removed inv4.0 of the provider. Please use `azurerm_app_service_environment_v3` instead.", - Timeouts: &pluginsdk.ResourceTimeout{ - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - }, - - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - }, - - "resource_group_name": commonschema.ResourceGroupNameForDataSource(), - - "location": commonschema.LocationComputed(), - - "cluster_setting": { - Type: pluginsdk.TypeList, - Computed: true, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "value": { - Type: pluginsdk.TypeString, - Computed: true, - }, - }, - }, - }, - - "front_end_scale_factor": { - Type: pluginsdk.TypeInt, - Computed: true, - }, - - "internal_ip_address": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "service_ip_address": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "outbound_ip_addresses": { - Type: pluginsdk.TypeList, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - Computed: true, - }, - - "pricing_tier": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "tags": tags.SchemaDataSource(), - }, - } -} - -func dataSourceAppServiceEnvironmentRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServiceEnvironmentsClient - subscriptionId := meta.(*clients.Client).Account.SubscriptionId - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id := parse.NewAppServiceEnvironmentID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string)) - - resp, err := client.Get(ctx, id.ResourceGroup, id.HostingEnvironmentName) - if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - return fmt.Errorf("%s was not found", id) - } - return fmt.Errorf("retrieving %s: %+v", id, err) - } - - vipInfo, err := client.GetVipInfo(ctx, id.ResourceGroup, id.HostingEnvironmentName) - if err != nil { - if utils.ResponseWasNotFound(vipInfo.Response) { - return fmt.Errorf("retrieving VIP info: %s was not found", id) - } - return fmt.Errorf("retrieving VIP info %s: %+v", id, err) - } - - d.SetId(id.ID()) - - d.Set("name", id.HostingEnvironmentName) - d.Set("resource_group_name", id.ResourceGroup) - d.Set("location", location.NormalizeNilable(resp.Location)) - - if props := resp.AppServiceEnvironment; props != nil { - frontendScaleFactor := 0 - if props.FrontEndScaleFactor != nil { - frontendScaleFactor = int(*props.FrontEndScaleFactor) - } - d.Set("front_end_scale_factor", frontendScaleFactor) - - pricingTier := "" - if props.MultiSize != nil { - pricingTier = convertToIsolatedSKU(*props.MultiSize) - } - d.Set("pricing_tier", pricingTier) - d.Set("cluster_setting", flattenClusterSettings(props.ClusterSettings)) - } - - d.Set("internal_ip_address", vipInfo.InternalIPAddress) - d.Set("service_ip_address", vipInfo.ServiceIPAddress) - d.Set("outbound_ip_addresses", vipInfo.OutboundIPAddresses) - - return tags.FlattenAndSet(d, resp.Tags) -} diff --git a/internal/services/web/app_service_environment_data_source_test.go b/internal/services/web/app_service_environment_data_source_test.go deleted file mode 100644 index d944b733dffd..000000000000 --- a/internal/services/web/app_service_environment_data_source_test.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package web_test - -import ( - "fmt" - "testing" - - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" -) - -type AppServiceEnvironmentDataSource struct{} - -func TestAccDataSourceAppServiceEnvironment_basic(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "data.azurerm_app_service_environment", "test") - - data.DataSourceTest(t, []acceptance.TestStep{ - { - Config: AppServiceEnvironmentDataSource{}.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).Key("front_end_scale_factor").Exists(), - check.That(data.ResourceName).Key("pricing_tier").Exists(), - check.That(data.ResourceName).Key("service_ip_address").Exists(), - check.That(data.ResourceName).Key("cluster_setting.#").HasValue("2"), - ), - }, - }) -} - -func (d AppServiceEnvironmentDataSource) basic(data acceptance.TestData) string { - config := AppServiceEnvironmentResource{}.clusterSettings(data) - return fmt.Sprintf(` -%s - -data "azurerm_app_service_environment" "test" { - name = azurerm_app_service_environment.test.name - resource_group_name = azurerm_app_service_environment.test.resource_group_name -} -`, config) -} diff --git a/internal/services/web/app_service_environment_resource.go b/internal/services/web/app_service_environment_resource.go deleted file mode 100644 index cfdbc2198e5b..000000000000 --- a/internal/services/web/app_service_environment_resource.go +++ /dev/null @@ -1,533 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package web - -import ( - "context" - "fmt" - "log" - "strings" - "time" - - "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2021-02-01/web" // nolint: staticcheck - "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" - "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" - "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" - helpersValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/validate" - "github.com/hashicorp/terraform-provider-azurerm/internal/tags" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" - "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -const ( - LoadBalancingModeWebPublishing web.LoadBalancingMode = "Web, Publishing" -) - -func resourceAppServiceEnvironment() *pluginsdk.Resource { - return &pluginsdk.Resource{ - DeprecationMessage: "This resource is deprecated due to the [retirement of v1 and v2 App Service Environments](https://azure.microsoft.com/en-gb/updates/app-service-environment-v1-and-v2-retirement-announcement/) and will be removed inv4.0 of the provider. Please use `azurerm_app_service_environment_v3` instead.", - Create: resourceAppServiceEnvironmentCreate, - Read: resourceAppServiceEnvironmentRead, - Update: resourceAppServiceEnvironmentUpdate, - Delete: resourceAppServiceEnvironmentDelete, - Importer: pluginsdk.ImporterValidatingResourceId(func(id string) error { - _, err := parse.AppServiceEnvironmentID(id) - return err - }), - - // Need to find sane values for below, some operations on this resource can take an exceptionally long time - Timeouts: &pluginsdk.ResourceTimeout{ - Create: pluginsdk.DefaultTimeout(6 * time.Hour), - Read: pluginsdk.DefaultTimeout(5 * time.Minute), - Update: pluginsdk.DefaultTimeout(6 * time.Hour), - Delete: pluginsdk.DefaultTimeout(6 * time.Hour), - }, - - Schema: resourceAppServiceEnvironmentSchema(), - } -} - -func resourceAppServiceEnvironmentCreate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServiceEnvironmentsClient - networksClient := meta.(*clients.Client).Network.VirtualNetworks - subscriptionId := meta.(*clients.Client).Account.SubscriptionId - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) - defer cancel() - - internalLoadBalancingMode := d.Get("internal_load_balancing_mode").(string) - internalLoadBalancingMode = strings.ReplaceAll(internalLoadBalancingMode, " ", "") - t := d.Get("tags").(map[string]interface{}) - - var userWhitelistedIPRangesRaw []interface{} - if v, ok := d.GetOk("allowed_user_ip_cidrs"); ok { - userWhitelistedIPRangesRaw = v.(*pluginsdk.Set).List() - } - - subnetId := d.Get("subnet_id").(string) - subnet, err := commonids.ParseSubnetID(subnetId) - if err != nil { - return err - } - - // TODO: Remove the implicit behaviour in new major version. - // Discrepancy of resource group between ASE and Subnet is allowed. While for the sake of - // compatibility, we still allow user to use the resource group of Subnet to be the one for - // ASE implicitly. While allow user to explicitly specify the resource group, which takes higher - // precedence. - resourceGroup := subnet.ResourceGroupName - if v, ok := d.GetOk("resource_group_name"); ok { - resourceGroup = v.(string) - } - id := parse.NewAppServiceEnvironmentID(subscriptionId, resourceGroup, d.Get("name").(string)) - - vnetId := commonids.NewVirtualNetworkID(subnet.SubscriptionId, subnet.ResourceGroupName, subnet.VirtualNetworkName) - vnet, err := networksClient.Get(ctx, vnetId, virtualnetworks.DefaultGetOperationOptions()) - if err != nil { - return fmt.Errorf("retrieving %s: %+v", vnetId, err) - } - if vnet.Model == nil { - return fmt.Errorf("retrieving %s: `model` was nil", vnetId) - } - - // the App Service Environment has to be in the same location as the Virtual Network - var loc string - if vnet.Model.Location != nil { - loc = location.NormalizeNilable(vnet.Model.Location) - } else { - return fmt.Errorf("determining Location from %s: `location` was nil", vnetId) - } - - existing, err := client.Get(ctx, id.ResourceGroup, id.HostingEnvironmentName) - if err != nil { - if !utils.ResponseWasNotFound(existing.Response) { - return fmt.Errorf("checking for presence of existing %s: %s", id, err) - } - } - - if !utils.ResponseWasNotFound(existing.Response) { - return tf.ImportAsExistsError("azurerm_app_service_environment", id.ID()) - } - - frontEndScaleFactor := d.Get("front_end_scale_factor").(int) - pricingTier := d.Get("pricing_tier").(string) - - envelope := web.AppServiceEnvironmentResource{ - Location: utils.String(loc), - Kind: utils.String("ASEV2"), - AppServiceEnvironment: &web.AppServiceEnvironment{ - InternalLoadBalancingMode: web.LoadBalancingMode(internalLoadBalancingMode), - FrontEndScaleFactor: utils.Int32(int32(frontEndScaleFactor)), - MultiSize: utils.String(convertFromIsolatedSKU(pricingTier)), - VirtualNetwork: &web.VirtualNetworkProfile{ - ID: utils.String(subnetId), - Subnet: utils.String(subnet.SubnetName), - }, - UserWhitelistedIPRanges: utils.ExpandStringSlice(userWhitelistedIPRangesRaw), - }, - Tags: tags.Expand(t), - } - - if clusterSettingsRaw, ok := d.GetOk("cluster_setting"); ok { - envelope.AppServiceEnvironment.ClusterSettings = expandAppServiceEnvironmentClusterSettings(clusterSettingsRaw) - } - - // whilst this returns a future go-autorest has a max number of retries - future, err := client.CreateOrUpdate(ctx, id.ResourceGroup, id.HostingEnvironmentName, envelope) - if err != nil { - return fmt.Errorf("creating %s: %+v", id, err) - } - - if err := future.WaitForCompletionRef(ctx, client.Client); err != nil { - return fmt.Errorf("waiting for creation of %q: %+v", id, err) - } - - createWait := pluginsdk.StateChangeConf{ - Pending: []string{ - string(web.ProvisioningStateInProgress), - }, - Target: []string{ - string(web.ProvisioningStateSucceeded), - }, - MinTimeout: 1 * time.Minute, - Timeout: d.Timeout(pluginsdk.TimeoutCreate), - Refresh: appServiceEnvironmentRefresh(ctx, client, id.ResourceGroup, id.HostingEnvironmentName), - } - - // as such we'll ignore it and use a custom poller instead - if _, err := createWait.WaitForStateContext(ctx); err != nil { - return fmt.Errorf("waiting for the creation of %s: %+v", id, err) - } - - d.SetId(id.ID()) - - return resourceAppServiceEnvironmentRead(d, meta) -} - -func resourceAppServiceEnvironmentUpdate(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServiceEnvironmentsClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := parse.AppServiceEnvironmentID(d.Id()) - if err != nil { - return err - } - - e := web.AppServiceEnvironmentPatchResource{ - AppServiceEnvironment: &web.AppServiceEnvironment{}, - } - - if d.HasChange("internal_load_balancing_mode") { - v := d.Get("internal_load_balancing_mode").(string) - v = strings.ReplaceAll(v, " ", "") - e.AppServiceEnvironment.InternalLoadBalancingMode = web.LoadBalancingMode(v) - } - - if d.HasChange("front_end_scale_factor") { - v := d.Get("front_end_scale_factor").(int) - e.AppServiceEnvironment.FrontEndScaleFactor = utils.Int32(int32(v)) - } - - if d.HasChange("pricing_tier") { - v := d.Get("pricing_tier").(string) - v = convertFromIsolatedSKU(v) - e.AppServiceEnvironment.MultiSize = utils.String(v) - } - - if d.HasChanges("allowed_user_ip_cidrs") { - if v, ok := d.GetOk("allowed_user_ip_cidrs"); ok { - e.UserWhitelistedIPRanges = utils.ExpandStringSlice(v.(*pluginsdk.Set).List()) - } - } - - if d.HasChange("cluster_setting") { - e.ClusterSettings = expandAppServiceEnvironmentClusterSettings(d.Get("cluster_setting")) - } - - if _, err := client.Update(ctx, id.ResourceGroup, id.HostingEnvironmentName, e); err != nil { - return fmt.Errorf("updating App Service Environment %q (Resource Group %q): %+v", id.HostingEnvironmentName, id.ResourceGroup, err) - } - - updateWait := pluginsdk.StateChangeConf{ - Pending: []string{ - string(web.ProvisioningStateInProgress), - }, - Target: []string{ - string(web.ProvisioningStateSucceeded), - }, - MinTimeout: 1 * time.Minute, - Timeout: d.Timeout(pluginsdk.TimeoutUpdate), - Refresh: appServiceEnvironmentRefresh(ctx, client, id.ResourceGroup, id.HostingEnvironmentName), - } - - if _, err := updateWait.WaitForStateContext(ctx); err != nil { - return fmt.Errorf("waiting for Update of App Service Environment %q (Resource Group %q): %+v", id.HostingEnvironmentName, id.ResourceGroup, err) - } - - return resourceAppServiceEnvironmentRead(d, meta) -} - -func resourceAppServiceEnvironmentRead(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServiceEnvironmentsClient - ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := parse.AppServiceEnvironmentID(d.Id()) - if err != nil { - return err - } - - existing, err := client.Get(ctx, id.ResourceGroup, id.HostingEnvironmentName) - if err != nil { - if utils.ResponseWasNotFound(existing.Response) { - log.Printf("[DEBUG] App Service Environmment %q (Resource Group %q) was not found - removing from state!", id.HostingEnvironmentName, id.ResourceGroup) - d.SetId("") - return nil - } - return fmt.Errorf("retrieving App Service Environmment %q (Resource Group %q): %+v", id.HostingEnvironmentName, id.ResourceGroup, err) - } - - d.Set("name", id.HostingEnvironmentName) - d.Set("resource_group_name", id.ResourceGroup) - - if location := existing.Location; location != nil { - d.Set("location", azure.NormalizeLocation(*location)) - } - - if props := existing.AppServiceEnvironment; props != nil { - d.Set("internal_load_balancing_mode", string(props.InternalLoadBalancingMode)) - - subnetId := "" - if props.VirtualNetwork != nil && props.VirtualNetwork.ID != nil { - subnetId = *props.VirtualNetwork.ID - } - d.Set("subnet_id", subnetId) - - frontendScaleFactor := 0 - if props.FrontEndScaleFactor != nil { - frontendScaleFactor = int(*props.FrontEndScaleFactor) - } - d.Set("front_end_scale_factor", frontendScaleFactor) - - pricingTier := "" - if props.MultiSize != nil { - pricingTier = convertToIsolatedSKU(*props.MultiSize) - } - d.Set("pricing_tier", pricingTier) - d.Set("allowed_user_ip_cidrs", props.UserWhitelistedIPRanges) - d.Set("cluster_setting", flattenClusterSettings(props.ClusterSettings)) - } - - // Get IP attributes for ASE. - vipInfo, err := client.GetVipInfo(ctx, id.ResourceGroup, id.HostingEnvironmentName) - if err != nil { - if utils.ResponseWasNotFound(vipInfo.Response) { - return fmt.Errorf("retrieving VIP info: App Service Environment %q (Resource Group %q) was not found", id.HostingEnvironmentName, id.ResourceGroup) - } - return fmt.Errorf("retrieving VIP info App Service Environment %q (Resource Group %q): %+v", id.HostingEnvironmentName, id.ResourceGroup, err) - } - - d.Set("internal_ip_address", vipInfo.InternalIPAddress) - d.Set("service_ip_address", vipInfo.ServiceIPAddress) - d.Set("outbound_ip_addresses", vipInfo.OutboundIPAddresses) - - return tags.FlattenAndSet(d, existing.Tags) -} - -func resourceAppServiceEnvironmentDelete(d *pluginsdk.ResourceData, meta interface{}) error { - client := meta.(*clients.Client).Web.AppServiceEnvironmentsClient - ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d) - defer cancel() - - id, err := parse.AppServiceEnvironmentID(d.Id()) - if err != nil { - return err - } - - log.Printf("[DEBUG] Deleting App Service Environment %q (Resource Group %q)", id.HostingEnvironmentName, id.ResourceGroup) - - forceDeleteAllChildren := utils.Bool(false) - future, err := client.Delete(ctx, id.ResourceGroup, id.HostingEnvironmentName, forceDeleteAllChildren) - if err != nil { - return fmt.Errorf("deleting App Service Environment %q (Resource Group %q): %+v", id.HostingEnvironmentName, id.ResourceGroup, err) - } - - err = future.WaitForCompletionRef(ctx, client.Client) - if err != nil { - if !response.WasNotFound(future.Response()) { - return fmt.Errorf("waiting for deletion of App Service Environment %q (Resource Group %q): %+v", id.HostingEnvironmentName, id.ResourceGroup, err) - } - } - - return nil -} - -func appServiceEnvironmentRefresh(ctx context.Context, client *web.AppServiceEnvironmentsClient, resourceGroup string, name string) pluginsdk.StateRefreshFunc { - return func() (interface{}, string, error) { - read, err := client.Get(ctx, resourceGroup, name) - if err != nil { - return "", "", err - } - - if read.AppServiceEnvironment == nil { - return "", "", fmt.Errorf("`properties` was nil") - } - - state := read.AppServiceEnvironment.ProvisioningState - return state, string(state), nil - } -} - -// Note: These are abstractions and possibly subject to change if Azure changes the underlying SKU for Isolated instances. -func convertFromIsolatedSKU(isolated string) (vmSKU string) { - switch isolated { - case "I1": - vmSKU = "Standard_D1_V2" - case "I2": - vmSKU = "Standard_D2_V2" - case "I3": - vmSKU = "Standard_D3_V2" - } - return vmSKU -} - -func convertToIsolatedSKU(vmSKU string) (isolated string) { - switch vmSKU { - case "Standard_D1_V2": - isolated = "I1" - case "Standard_D2_V2": - isolated = "I2" - case "Standard_D3_V2": - isolated = "I3" - } - return isolated -} - -func loadBalancingModeDiffSuppress(k, old, new string, d *pluginsdk.ResourceData) bool { - return strings.ReplaceAll(old, " ", "") == strings.ReplaceAll(new, " ", "") -} - -func expandAppServiceEnvironmentClusterSettings(input interface{}) *[]web.NameValuePair { - var clusterSettings []web.NameValuePair - if input == nil { - return &clusterSettings - } - - clusterSettingsRaw := input.([]interface{}) - for _, v := range clusterSettingsRaw { - setting := v.(map[string]interface{}) - clusterSettings = append(clusterSettings, web.NameValuePair{ - Name: utils.String(setting["name"].(string)), - Value: utils.String(setting["value"].(string)), - }) - } - return &clusterSettings -} - -func flattenClusterSettings(input *[]web.NameValuePair) interface{} { - if input == nil || len(*input) == 0 { - return []map[string]interface{}{} - } - - settings := make([]map[string]interface{}, 0) - for _, v := range *input { - name := "" - if v.Name == nil { - continue - } else { - name = *v.Name - } - - value := "" - if v.Value != nil { - value = *v.Value - } - - settings = append(settings, map[string]interface{}{ - "name": name, - "value": value, - }) - } - return settings -} - -func resourceAppServiceEnvironmentSchema() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validate.AppServiceEnvironmentName, - }, - - "subnet_id": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: commonids.ValidateSubnetID, - }, - - "cluster_setting": { - Type: pluginsdk.TypeList, - Optional: true, - Computed: true, - Elem: &pluginsdk.Resource{ - Schema: map[string]*pluginsdk.Schema{ - "name": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, - - "value": { - Type: pluginsdk.TypeString, - Required: true, - }, - }, - }, - }, - - "internal_load_balancing_mode": { - Type: pluginsdk.TypeString, - Optional: true, - ForceNew: true, - Default: string(web.LoadBalancingModeNone), - ValidateFunc: validation.StringInSlice([]string{ - string(web.LoadBalancingModeNone), - string(web.LoadBalancingModePublishing), - string(web.LoadBalancingModeWeb), - string(web.LoadBalancingModeWebPublishing), - // (@jackofallops) breaking change in SDK - Enum for internal_load_balancing_mode changed from Web, Publishing to Web,Publishing - string(LoadBalancingModeWebPublishing), - }, false), - DiffSuppressFunc: loadBalancingModeDiffSuppress, - }, - - "front_end_scale_factor": { - Type: pluginsdk.TypeInt, - Optional: true, - Default: 15, - ValidateFunc: validation.IntBetween(5, 15), - }, - - "pricing_tier": { - Type: pluginsdk.TypeString, - Optional: true, - Default: "I1", - ValidateFunc: validation.StringInSlice([]string{ - "I1", - "I2", - "I3", - }, false), - }, - - "allowed_user_ip_cidrs": { - Type: pluginsdk.TypeSet, - Optional: true, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - ValidateFunc: helpersValidate.CIDR, - }, - }, - - "resource_group_name": commonschema.ResourceGroupName(), - - "tags": tags.ForceNewSchema(), - - // Computed - - // VipInfo - "internal_ip_address": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "service_ip_address": { - Type: pluginsdk.TypeString, - Computed: true, - }, - - "outbound_ip_addresses": { - Type: pluginsdk.TypeList, - Elem: &pluginsdk.Schema{ - Type: pluginsdk.TypeString, - }, - Computed: true, - }, - - "location": { - Type: pluginsdk.TypeString, - Computed: true, - }, - } -} diff --git a/internal/services/web/app_service_environment_resource_test.go b/internal/services/web/app_service_environment_resource_test.go deleted file mode 100644 index 80b6cb2838ed..000000000000 --- a/internal/services/web/app_service_environment_resource_test.go +++ /dev/null @@ -1,432 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package web_test - -import ( - "context" - "fmt" - "testing" - - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" - "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" - "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" - "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/parse" - "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" - "github.com/hashicorp/terraform-provider-azurerm/utils" -) - -type AppServiceEnvironmentResource struct{} - -func TestAccAppServiceEnvironment_basic(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("pricing_tier").HasValue("I1"), - check.That(data.ResourceName).Key("front_end_scale_factor").HasValue("15"), - ), - }, - data.ImportStep(), - }) -} - -func TestAccAppServiceEnvironment_requiresImport(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.RequiresImportErrorStep(r.requiresImport), - }) -} - -func TestAccAppServiceEnvironment_update(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.basic(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("pricing_tier").HasValue("I1"), - check.That(data.ResourceName).Key("front_end_scale_factor").HasValue("15"), - ), - }, - data.ImportStep(), - { - Config: r.tierAndScaleFactor(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).Key("pricing_tier").HasValue("I2"), - check.That(data.ResourceName).Key("front_end_scale_factor").HasValue("10"), - ), - }, - data.ImportStep(), - }) -} - -func TestAccAppServiceEnvironment_tierAndScaleFactor(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.tierAndScaleFactor(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("pricing_tier").HasValue("I2"), - check.That(data.ResourceName).Key("front_end_scale_factor").HasValue("10"), - ), - }, - data.ImportStep(), - }) -} - -func TestAccAppServiceEnvironment_withAppServicePlan(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - aspData := acceptance.BuildTestData(t, "azurerm_app_service_plan", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.withAppServicePlan(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("id").MatchesOtherKey( - check.That(aspData.ResourceName).Key("app_service_environment_id"), - ), - ), - }, - data.ImportStep(), - }) -} - -func TestAccAppServiceEnvironment_dedicatedResourceGroup(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.dedicatedResourceGroup(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccAppServiceEnvironment_withCertificatePfx(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.withCertificatePfx(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - -func TestAccAppServiceEnvironment_internalLoadBalancer(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.internalLoadBalancerAndWhitelistedIpRanges(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("internal_load_balancing_mode").HasValue("Web, Publishing"), - ), - }, - data.ImportStep(), - }) -} - -func TestAccAppServiceEnvironment_clusterSettings(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service_environment", "test") - r := AppServiceEnvironmentResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.clusterSettings(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("cluster_setting.#").HasValue("2"), - ), - }, - data.ImportStep(), - { - Config: r.clusterSettingsUpdate(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("cluster_setting.#").HasValue("3"), - ), - }, - data.ImportStep(), - { - Config: r.clusterSettings(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - check.That(data.ResourceName).Key("cluster_setting.#").HasValue("2"), - ), - }, - data.ImportStep(), - }) -} - -func (r AppServiceEnvironmentResource) Exists(ctx context.Context, client *clients.Client, state *pluginsdk.InstanceState) (*bool, error) { - id, err := parse.AppServiceEnvironmentID(state.ID) - if err != nil { - return nil, err - } - - resp, err := client.Web.AppServiceEnvironmentsClient.Get(ctx, id.ResourceGroup, id.HostingEnvironmentName) - if err != nil { - if utils.ResponseWasNotFound(resp.Response) { - return utils.Bool(false), nil - } - return nil, fmt.Errorf("retrieving App Service Environment %q (Resource Group %q): %+v", id.HostingEnvironmentName, id.ResourceGroup, err) - } - - return utils.Bool(true), nil -} - -func (r AppServiceEnvironmentResource) basic(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_app_service_environment" "test" { - name = "acctest-ase-%d" - subnet_id = azurerm_subnet.ase.id - resource_group_name = azurerm_resource_group.test.name -} -`, template, data.RandomInteger) -} - -func (r AppServiceEnvironmentResource) clusterSettings(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_app_service_environment" "test" { - name = "acctest-ase-%d" - subnet_id = azurerm_subnet.ase.id - resource_group_name = azurerm_resource_group.test.name - - cluster_setting { - name = "InternalEncryption" - value = "true" - } - - cluster_setting { - name = "DisableTls1.0" - value = "1" - } -} -`, template, data.RandomInteger) -} - -func (r AppServiceEnvironmentResource) clusterSettingsUpdate(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_app_service_environment" "test" { - name = "acctest-ase-%d" - subnet_id = azurerm_subnet.ase.id - resource_group_name = azurerm_resource_group.test.name - - cluster_setting { - name = "InternalEncryption" - value = "true" - } - - cluster_setting { - name = "DisableTls1.0" - value = "1" - } - - cluster_setting { - name = "FrontEndSSLCipherSuiteOrder" - value = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384_P256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256_P256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P256" - } -} -`, template, data.RandomInteger) -} - -func (r AppServiceEnvironmentResource) requiresImport(data acceptance.TestData) string { - template := r.basic(data) - return fmt.Sprintf(` -%s - -resource "azurerm_app_service_environment" "import" { - name = azurerm_app_service_environment.test.name - subnet_id = azurerm_app_service_environment.test.subnet_id - resource_group_name = azurerm_app_service_environment.test.resource_group_name -} -`, template) -} - -func (r AppServiceEnvironmentResource) tierAndScaleFactor(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_app_service_environment" "test" { - name = "acctest-ase-%d" - subnet_id = azurerm_subnet.ase.id - resource_group_name = azurerm_resource_group.test.name - pricing_tier = "I2" - front_end_scale_factor = 10 -} -`, template, data.RandomInteger) -} - -func (r AppServiceEnvironmentResource) withAppServicePlan(data acceptance.TestData) string { - template := r.basic(data) - return fmt.Sprintf(` -%s - -resource "azurerm_app_service_plan" "test" { - name = "acctest-ASP-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - app_service_environment_id = azurerm_app_service_environment.test.id - - sku { - tier = "Isolated" - size = "I1" - capacity = 1 - } -} -`, template, data.RandomInteger) -} - -func (r AppServiceEnvironmentResource) dedicatedResourceGroup(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_resource_group" "test2" { - name = "acctestRG-%[2]d-2" - location = "%s" -} - -resource "azurerm_app_service_environment" "test" { - name = "acctest-ase-%[2]d" - resource_group_name = azurerm_resource_group.test2.name - subnet_id = azurerm_subnet.ase.id -} -`, template, data.RandomInteger, data.Locations.Secondary) -} - -func (r AppServiceEnvironmentResource) withCertificatePfx(data acceptance.TestData) string { - template := r.withAppServicePlan(data) - return fmt.Sprintf(` -%s - -resource "azurerm_app_service_certificate" "test" { - name = "acctest-cert-%d" - resource_group_name = azurerm_app_service_environment.test.resource_group_name - location = azurerm_resource_group.test.location - pfx_blob = filebase64("testdata/app_service_certificate.pfx") - password = "terraform" - app_service_plan_id = azurerm_app_service_plan.test.id -} -`, template, data.RandomInteger) -} - -func (r AppServiceEnvironmentResource) template(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctest-vnet-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - address_space = ["10.0.0.0/16"] -} - -resource "azurerm_subnet" "ase" { - name = "asesubnet" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.1.0/24"] -} - -resource "azurerm_subnet" "gateway" { - name = "gatewaysubnet" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.2.0/24"] -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger) -} - -func (r AppServiceEnvironmentResource) internalLoadBalancerAndWhitelistedIpRanges(data acceptance.TestData) string { - template := r.template(data) - return fmt.Sprintf(` -%s - -resource "azurerm_app_service_environment" "test" { - name = "acctest-ase-%d" - subnet_id = azurerm_subnet.ase.id - resource_group_name = azurerm_resource_group.test.name - pricing_tier = "I1" - front_end_scale_factor = 5 - internal_load_balancing_mode = "Web, Publishing" - allowed_user_ip_cidrs = ["11.22.33.44/32", "55.66.77.0/24"] -} -`, template, data.RandomInteger) -} diff --git a/internal/services/web/app_service_managed_certificate_resource.go b/internal/services/web/app_service_managed_certificate_resource.go index 1b2af4df78f3..b58ab54fafda 100644 --- a/internal/services/web/app_service_managed_certificate_resource.go +++ b/internal/services/web/app_service_managed_certificate_resource.go @@ -113,11 +113,11 @@ func resourceAppServiceManagedCertificateCreateUpdate(d *pluginsdk.ResourceData, } name := customHostnameBindingId.Name - appServicePlanIDRaw := "" + if appService.SiteProperties == nil || appService.SiteProperties.ServerFarmID == nil { return fmt.Errorf("could not get App Service Plan ID for Custom Hostname Binding %q (resource group %q)", customHostnameBindingId.Name, customHostnameBindingId.ResourceGroup) } - appServicePlanIDRaw = *appService.SiteProperties.ServerFarmID + appServicePlanIDRaw := *appService.SiteProperties.ServerFarmID appServicePlanID, err := commonids.ParseAppServicePlanIDInsensitively(appServicePlanIDRaw) if err != nil { diff --git a/internal/services/web/app_service_resource_test.go b/internal/services/web/app_service_resource_test.go index 4edc2a3304ea..1f8feb1d29fa 100644 --- a/internal/services/web/app_service_resource_test.go +++ b/internal/services/web/app_service_resource_test.go @@ -13,7 +13,6 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/utils" @@ -1932,25 +1931,6 @@ func TestAccAppService_AcrUserAssignedIdentity(t *testing.T) { }) } -// (@jackofallops) - renamed to allow filtering out long running test from AppService -func TestAccAppServiceEnvironment_scopeNameCheck(t *testing.T) { - if features.FourPointOhBeta() { - t.Skip("skipping as removed in 4.0") - } - data := acceptance.BuildTestData(t, "azurerm_app_service", "test") - r := AppServiceResource{} - - data.ResourceTest(t, r, []acceptance.TestStep{ - { - Config: r.inAppServiceEnvironment(data), - Check: acceptance.ComposeTestCheckFunc( - check.That(data.ResourceName).ExistsInAzure(r), - ), - }, - data.ImportStep(), - }) -} - func TestAccAppService_keyVaultUserAssignedIdentity(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_app_service", "test") r := AppServiceResource{} @@ -5522,66 +5502,6 @@ resource "azurerm_app_service" "test" { `, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger) } -func (r AppServiceResource) inAppServiceEnvironment(data acceptance.TestData) string { - return fmt.Sprintf(` -provider "azurerm" { - features {} -} - -resource "azurerm_resource_group" "test" { - name = "acctestRG-%d" - location = "%s" -} - -resource "azurerm_virtual_network" "test" { - name = "acctest-vnet-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - address_space = ["10.0.0.0/16"] -} - -resource "azurerm_subnet" "ase" { - name = "asesubnet" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.1.0/24"] -} - -resource "azurerm_subnet" "gateway" { - name = "gatewaysubnet" - resource_group_name = azurerm_resource_group.test.name - virtual_network_name = azurerm_virtual_network.test.name - address_prefixes = ["10.0.2.0/24"] -} - -resource "azurerm_app_service_environment" "test" { - name = "acctest-ase-%d" - subnet_id = azurerm_subnet.ase.id - resource_group_name = azurerm_resource_group.test.name -} - -resource "azurerm_app_service_plan" "test" { - name = "acctest-ASP-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - app_service_environment_id = azurerm_app_service_environment.test.id - - sku { - tier = "Isolated" - size = "I1" - capacity = 1 - } -} - -resource "azurerm_app_service" "test" { - name = "acctestAS-%d" - location = azurerm_resource_group.test.location - resource_group_name = azurerm_resource_group.test.name - app_service_plan_id = azurerm_app_service_plan.test.id -} -`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger, data.RandomInteger, data.RandomInteger) -} - func (r AppServiceResource) AcrUseManagedIdentity(data acceptance.TestData) string { return fmt.Sprintf(` provider "azurerm" { diff --git a/internal/services/web/app_service_slot_virtual_network_swift_connection_resource_test.go b/internal/services/web/app_service_slot_virtual_network_swift_connection_resource_test.go index 461e39153f7d..3be69ca80830 100644 --- a/internal/services/web/app_service_slot_virtual_network_swift_connection_resource_test.go +++ b/internal/services/web/app_service_slot_virtual_network_swift_connection_resource_test.go @@ -189,6 +189,10 @@ func (t AppServiceSlotVirtualNetworkSwiftConnectionResource) disappears(ctx cont func (AppServiceSlotVirtualNetworkSwiftConnectionResource) app_base(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-appservice-%d" location = "%s" @@ -302,6 +306,10 @@ resource "azurerm_app_service_slot_virtual_network_swift_connection" "import" { func (AppServiceSlotVirtualNetworkSwiftConnectionResource) function_base(data acceptance.TestData) string { return fmt.Sprintf(` +provider "azurerm" { + features {} +} + resource "azurerm_resource_group" "test" { name = "acctestRG-functionapp-%d" location = "%s" diff --git a/internal/services/web/function_app.go b/internal/services/web/function_app.go index a1def1f8f686..725fe36ab1af 100644 --- a/internal/services/web/function_app.go +++ b/internal/services/web/function_app.go @@ -12,7 +12,6 @@ import ( "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2021-02-01/web" // nolint: staticcheck "github.com/google/uuid" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/services/web/parse" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -142,11 +141,7 @@ func schemaAppServiceFunctionAppSiteConfig() *pluginsdk.Schema { Optional: true, Computed: true, ValidateFunc: func() pluginsdk.SchemaValidateFunc { - // 0 is no longer a valid value - if features.FourPointOhBeta() { - return validation.IntBetween(1, 20) - } - return validation.IntBetween(0, 20) + return validation.IntBetween(1, 20) }(), }, diff --git a/internal/services/web/parse/app_service.go b/internal/services/web/parse/app_service.go index a69a6fec512a..4adfbb7293dd 100644 --- a/internal/services/web/parse/app_service.go +++ b/internal/services/web/parse/app_service.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func AppServiceID(input string) (*AppServiceId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/app_service_environment.go b/internal/services/web/parse/app_service_environment.go index c35918fdb1c7..4995f02bd49d 100644 --- a/internal/services/web/parse/app_service_environment.go +++ b/internal/services/web/parse/app_service_environment.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func AppServiceEnvironmentID(input string) (*AppServiceEnvironmentId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.HostingEnvironmentName, err = id.PopSegment("hostingEnvironments"); err != nil { diff --git a/internal/services/web/parse/app_service_environment_test.go b/internal/services/web/parse/app_service_environment_test.go index 38bffe2dd4ee..a743d82a3bf2 100644 --- a/internal/services/web/parse/app_service_environment_test.go +++ b/internal/services/web/parse/app_service_environment_test.go @@ -27,7 +27,6 @@ func TestAppServiceEnvironmentID(t *testing.T) { Error bool Expected *AppServiceEnvironmentId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/app_service_plan.go b/internal/services/web/parse/app_service_plan.go index 2e622d44f191..f9b77bc62b05 100644 --- a/internal/services/web/parse/app_service_plan.go +++ b/internal/services/web/parse/app_service_plan.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func AppServicePlanID(input string) (*AppServicePlanId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.ServerFarmName, err = id.PopSegment("serverFarms"); err != nil { diff --git a/internal/services/web/parse/app_service_plan_test.go b/internal/services/web/parse/app_service_plan_test.go index 6a749a2a3375..39fd1d529faf 100644 --- a/internal/services/web/parse/app_service_plan_test.go +++ b/internal/services/web/parse/app_service_plan_test.go @@ -27,7 +27,6 @@ func TestAppServicePlanID(t *testing.T) { Error bool Expected *AppServicePlanId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/app_service_slot.go b/internal/services/web/parse/app_service_slot.go index 5b5ea2c1597e..c7e8e469ed32 100644 --- a/internal/services/web/parse/app_service_slot.go +++ b/internal/services/web/parse/app_service_slot.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func AppServiceSlotID(input string) (*AppServiceSlotId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/app_service_slot_custom_hostname_binding.go b/internal/services/web/parse/app_service_slot_custom_hostname_binding.go index 86befeeae06f..d214c8d9abc4 100644 --- a/internal/services/web/parse/app_service_slot_custom_hostname_binding.go +++ b/internal/services/web/parse/app_service_slot_custom_hostname_binding.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func AppServiceSlotCustomHostnameBindingID(input string) (*AppServiceSlotCustomH } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/app_service_slot_custom_hostname_binding_test.go b/internal/services/web/parse/app_service_slot_custom_hostname_binding_test.go index 25aee7e98e8e..f9c0449ca8f6 100644 --- a/internal/services/web/parse/app_service_slot_custom_hostname_binding_test.go +++ b/internal/services/web/parse/app_service_slot_custom_hostname_binding_test.go @@ -27,7 +27,6 @@ func TestAppServiceSlotCustomHostnameBindingID(t *testing.T) { Error bool Expected *AppServiceSlotCustomHostnameBindingId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/app_service_slot_test.go b/internal/services/web/parse/app_service_slot_test.go index 359aae5c733d..7dca693dc288 100644 --- a/internal/services/web/parse/app_service_slot_test.go +++ b/internal/services/web/parse/app_service_slot_test.go @@ -27,7 +27,6 @@ func TestAppServiceSlotID(t *testing.T) { Error bool Expected *AppServiceSlotId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/app_service_test.go b/internal/services/web/parse/app_service_test.go index 06c93312286f..e322531015d6 100644 --- a/internal/services/web/parse/app_service_test.go +++ b/internal/services/web/parse/app_service_test.go @@ -27,7 +27,6 @@ func TestAppServiceID(t *testing.T) { Error bool Expected *AppServiceId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/certificate.go b/internal/services/web/parse/certificate.go index b6072676d10d..f9d53f057696 100644 --- a/internal/services/web/parse/certificate.go +++ b/internal/services/web/parse/certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func CertificateID(input string) (*CertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("certificates"); err != nil { diff --git a/internal/services/web/parse/certificate_order.go b/internal/services/web/parse/certificate_order.go index 5096f5d419ce..7bfc28e4f6bf 100644 --- a/internal/services/web/parse/certificate_order.go +++ b/internal/services/web/parse/certificate_order.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func CertificateOrderID(input string) (*CertificateOrderId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("certificateOrders"); err != nil { diff --git a/internal/services/web/parse/certificate_order_old.go b/internal/services/web/parse/certificate_order_old.go index 3d96cd9e3121..d7c6face06fb 100644 --- a/internal/services/web/parse/certificate_order_old.go +++ b/internal/services/web/parse/certificate_order_old.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func CertificateOrderOldID(input string) (*CertificateOrderOldId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.CertificateOrderName, err = id.PopSegment("certificateOrders"); err != nil { diff --git a/internal/services/web/parse/certificate_order_old_test.go b/internal/services/web/parse/certificate_order_old_test.go index bc83154d70f3..7bf8d2aadb9e 100644 --- a/internal/services/web/parse/certificate_order_old_test.go +++ b/internal/services/web/parse/certificate_order_old_test.go @@ -27,7 +27,6 @@ func TestCertificateOrderOldID(t *testing.T) { Error bool Expected *CertificateOrderOldId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/certificate_order_test.go b/internal/services/web/parse/certificate_order_test.go index 6a61346d1112..eb7004622c28 100644 --- a/internal/services/web/parse/certificate_order_test.go +++ b/internal/services/web/parse/certificate_order_test.go @@ -27,7 +27,6 @@ func TestCertificateOrderID(t *testing.T) { Error bool Expected *CertificateOrderId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/certificate_test.go b/internal/services/web/parse/certificate_test.go index 421f8f027509..f271d2111d06 100644 --- a/internal/services/web/parse/certificate_test.go +++ b/internal/services/web/parse/certificate_test.go @@ -27,7 +27,6 @@ func TestCertificateID(t *testing.T) { Error bool Expected *CertificateId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/function_app.go b/internal/services/web/parse/function_app.go index 2560b71905e2..e8778ac234a6 100644 --- a/internal/services/web/parse/function_app.go +++ b/internal/services/web/parse/function_app.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func FunctionAppID(input string) (*FunctionAppId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/function_app_slot.go b/internal/services/web/parse/function_app_slot.go index 89da5fb32587..5bb2d8f38d19 100644 --- a/internal/services/web/parse/function_app_slot.go +++ b/internal/services/web/parse/function_app_slot.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func FunctionAppSlotID(input string) (*FunctionAppSlotId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/function_app_slot_test.go b/internal/services/web/parse/function_app_slot_test.go index ade81ef0d73d..c48ef7827fc3 100644 --- a/internal/services/web/parse/function_app_slot_test.go +++ b/internal/services/web/parse/function_app_slot_test.go @@ -27,7 +27,6 @@ func TestFunctionAppSlotID(t *testing.T) { Error bool Expected *FunctionAppSlotId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/function_app_test.go b/internal/services/web/parse/function_app_test.go index d2504bf886e8..d430c05102c2 100644 --- a/internal/services/web/parse/function_app_test.go +++ b/internal/services/web/parse/function_app_test.go @@ -27,7 +27,6 @@ func TestFunctionAppID(t *testing.T) { Error bool Expected *FunctionAppId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/hostname_binding.go b/internal/services/web/parse/hostname_binding.go index 2f56a03288da..b0e9c28cd805 100644 --- a/internal/services/web/parse/hostname_binding.go +++ b/internal/services/web/parse/hostname_binding.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func HostnameBindingID(input string) (*HostnameBindingId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/hostname_binding_test.go b/internal/services/web/parse/hostname_binding_test.go index a530bba368c6..c4b078baa9de 100644 --- a/internal/services/web/parse/hostname_binding_test.go +++ b/internal/services/web/parse/hostname_binding_test.go @@ -27,7 +27,6 @@ func TestHostnameBindingID(t *testing.T) { Error bool Expected *HostnameBindingId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/hybrid_connection.go b/internal/services/web/parse/hybrid_connection.go index 40ae4c1640a7..6365a98c73f6 100644 --- a/internal/services/web/parse/hybrid_connection.go +++ b/internal/services/web/parse/hybrid_connection.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func HybridConnectionID(input string) (*HybridConnectionId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/hybrid_connection_test.go b/internal/services/web/parse/hybrid_connection_test.go index 7745d4c59fe1..681d41ae9f16 100644 --- a/internal/services/web/parse/hybrid_connection_test.go +++ b/internal/services/web/parse/hybrid_connection_test.go @@ -27,7 +27,6 @@ func TestHybridConnectionID(t *testing.T) { Error bool Expected *HybridConnectionId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/managed_certificate.go b/internal/services/web/parse/managed_certificate.go index c66ba92738a7..65f0b837b527 100644 --- a/internal/services/web/parse/managed_certificate.go +++ b/internal/services/web/parse/managed_certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func ManagedCertificateID(input string) (*ManagedCertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.CertificateName, err = id.PopSegment("certificates"); err != nil { diff --git a/internal/services/web/parse/managed_certificate_test.go b/internal/services/web/parse/managed_certificate_test.go index 4e0c6307f2f6..79ae5f71965a 100644 --- a/internal/services/web/parse/managed_certificate_test.go +++ b/internal/services/web/parse/managed_certificate_test.go @@ -27,7 +27,6 @@ func TestManagedCertificateID(t *testing.T) { Error bool Expected *ManagedCertificateId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/public_certificate.go b/internal/services/web/parse/public_certificate.go index 7884291f34a7..bdc25faa7fcc 100644 --- a/internal/services/web/parse/public_certificate.go +++ b/internal/services/web/parse/public_certificate.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func PublicCertificateID(input string) (*PublicCertificateId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/public_certificate_test.go b/internal/services/web/parse/public_certificate_test.go index 7ccae1de7fa0..3f8326f9896e 100644 --- a/internal/services/web/parse/public_certificate_test.go +++ b/internal/services/web/parse/public_certificate_test.go @@ -27,7 +27,6 @@ func TestPublicCertificateID(t *testing.T) { Error bool Expected *PublicCertificateId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/slot_virtual_network_swift_connection.go b/internal/services/web/parse/slot_virtual_network_swift_connection.go index fa059c584488..e94d9a3a3bf9 100644 --- a/internal/services/web/parse/slot_virtual_network_swift_connection.go +++ b/internal/services/web/parse/slot_virtual_network_swift_connection.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -59,11 +60,11 @@ func SlotVirtualNetworkSwiftConnectionID(input string) (*SlotVirtualNetworkSwift } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/slot_virtual_network_swift_connection_test.go b/internal/services/web/parse/slot_virtual_network_swift_connection_test.go index 1ead0e48a7b3..29fda0a44bcc 100644 --- a/internal/services/web/parse/slot_virtual_network_swift_connection_test.go +++ b/internal/services/web/parse/slot_virtual_network_swift_connection_test.go @@ -27,7 +27,6 @@ func TestSlotVirtualNetworkSwiftConnectionID(t *testing.T) { Error bool Expected *SlotVirtualNetworkSwiftConnectionId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/static_site.go b/internal/services/web/parse/static_site.go index ad9d5f56c251..8015d74c1513 100644 --- a/internal/services/web/parse/static_site.go +++ b/internal/services/web/parse/static_site.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -53,11 +54,11 @@ func StaticSiteID(input string) (*StaticSiteId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.Name, err = id.PopSegment("staticSites"); err != nil { diff --git a/internal/services/web/parse/static_site_custom_domain.go b/internal/services/web/parse/static_site_custom_domain.go index 5378350ab484..0e3846cc14a3 100644 --- a/internal/services/web/parse/static_site_custom_domain.go +++ b/internal/services/web/parse/static_site_custom_domain.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func StaticSiteCustomDomainID(input string) (*StaticSiteCustomDomainId, error) { } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.StaticSiteName, err = id.PopSegment("staticSites"); err != nil { diff --git a/internal/services/web/parse/static_site_custom_domain_test.go b/internal/services/web/parse/static_site_custom_domain_test.go index 30a9da6e6c09..ad17fd195b7a 100644 --- a/internal/services/web/parse/static_site_custom_domain_test.go +++ b/internal/services/web/parse/static_site_custom_domain_test.go @@ -27,7 +27,6 @@ func TestStaticSiteCustomDomainID(t *testing.T) { Error bool Expected *StaticSiteCustomDomainId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/static_site_test.go b/internal/services/web/parse/static_site_test.go index dacc7d3433bd..80a93a34a016 100644 --- a/internal/services/web/parse/static_site_test.go +++ b/internal/services/web/parse/static_site_test.go @@ -27,7 +27,6 @@ func TestStaticSiteID(t *testing.T) { Error bool Expected *StaticSiteId }{ - { // empty Input: "", diff --git a/internal/services/web/parse/virtual_network_swift_connection.go b/internal/services/web/parse/virtual_network_swift_connection.go index 909bbd02f35f..5229cf702888 100644 --- a/internal/services/web/parse/virtual_network_swift_connection.go +++ b/internal/services/web/parse/virtual_network_swift_connection.go @@ -6,6 +6,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -56,11 +57,11 @@ func VirtualNetworkSwiftConnectionID(input string) (*VirtualNetworkSwiftConnecti } if resourceId.SubscriptionId == "" { - return nil, fmt.Errorf("ID was missing the 'subscriptions' element") + return nil, errors.New("ID was missing the 'subscriptions' element") } if resourceId.ResourceGroup == "" { - return nil, fmt.Errorf("ID was missing the 'resourceGroups' element") + return nil, errors.New("ID was missing the 'resourceGroups' element") } if resourceId.SiteName, err = id.PopSegment("sites"); err != nil { diff --git a/internal/services/web/parse/virtual_network_swift_connection_test.go b/internal/services/web/parse/virtual_network_swift_connection_test.go index b0ec577adcdf..a51c12c01dba 100644 --- a/internal/services/web/parse/virtual_network_swift_connection_test.go +++ b/internal/services/web/parse/virtual_network_swift_connection_test.go @@ -27,7 +27,6 @@ func TestVirtualNetworkSwiftConnectionID(t *testing.T) { Error bool Expected *VirtualNetworkSwiftConnectionId }{ - { // empty Input: "", diff --git a/internal/services/web/registration.go b/internal/services/web/registration.go index 76a824990a67..0858797ad88a 100644 --- a/internal/services/web/registration.go +++ b/internal/services/web/registration.go @@ -4,7 +4,6 @@ package web import ( - "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" ) @@ -33,9 +32,6 @@ func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource { "azurerm_function_app": dataSourceFunctionApp(), "azurerm_function_app_host_keys": dataSourceFunctionAppHostKeys(), } - if !features.FourPointOhBeta() { - datasources["azurerm_app_service_environment"] = dataSourceAppServiceEnvironment() - } return datasources } @@ -63,10 +59,6 @@ func (r Registration) SupportedResources() map[string]*pluginsdk.Resource { "azurerm_static_site_custom_domain": resourceStaticSiteCustomDomain(), } - if !features.FourPointOhBeta() { - resources["azurerm_app_service_environment"] = resourceAppServiceEnvironment() - } - return resources } diff --git a/internal/services/web/validate/app_service_environment_id_test.go b/internal/services/web/validate/app_service_environment_id_test.go index d5027161480e..117e0b423a33 100644 --- a/internal/services/web/validate/app_service_environment_id_test.go +++ b/internal/services/web/validate/app_service_environment_id_test.go @@ -12,7 +12,6 @@ func TestAppServiceEnvironmentID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/app_service_id_test.go b/internal/services/web/validate/app_service_id_test.go index 772ac9d09a86..c24283c2806c 100644 --- a/internal/services/web/validate/app_service_id_test.go +++ b/internal/services/web/validate/app_service_id_test.go @@ -12,7 +12,6 @@ func TestAppServiceID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/app_service_plan_id_test.go b/internal/services/web/validate/app_service_plan_id_test.go index f5d6282cd2f6..c25cd3587df7 100644 --- a/internal/services/web/validate/app_service_plan_id_test.go +++ b/internal/services/web/validate/app_service_plan_id_test.go @@ -12,7 +12,6 @@ func TestAppServicePlanID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/app_service_slot_custom_hostname_binding_id_test.go b/internal/services/web/validate/app_service_slot_custom_hostname_binding_id_test.go index 5400082d6bd6..d6820b9e9bbf 100644 --- a/internal/services/web/validate/app_service_slot_custom_hostname_binding_id_test.go +++ b/internal/services/web/validate/app_service_slot_custom_hostname_binding_id_test.go @@ -12,7 +12,6 @@ func TestAppServiceSlotCustomHostnameBindingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/app_service_slot_id_test.go b/internal/services/web/validate/app_service_slot_id_test.go index bb0890489266..bb533bc7c2df 100644 --- a/internal/services/web/validate/app_service_slot_id_test.go +++ b/internal/services/web/validate/app_service_slot_id_test.go @@ -12,7 +12,6 @@ func TestAppServiceSlotID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/certificate_id_test.go b/internal/services/web/validate/certificate_id_test.go index b438df63aa78..a3c38cd0e854 100644 --- a/internal/services/web/validate/certificate_id_test.go +++ b/internal/services/web/validate/certificate_id_test.go @@ -12,7 +12,6 @@ func TestCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/certificate_order_id_test.go b/internal/services/web/validate/certificate_order_id_test.go index 51ab5b32dbc2..8b2591d1989c 100644 --- a/internal/services/web/validate/certificate_order_id_test.go +++ b/internal/services/web/validate/certificate_order_id_test.go @@ -12,7 +12,6 @@ func TestCertificateOrderID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/certificate_order_old_id_test.go b/internal/services/web/validate/certificate_order_old_id_test.go index 22de06e892da..ba9b13a72119 100644 --- a/internal/services/web/validate/certificate_order_old_id_test.go +++ b/internal/services/web/validate/certificate_order_old_id_test.go @@ -12,7 +12,6 @@ func TestCertificateOrderOldID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/function_app_id_test.go b/internal/services/web/validate/function_app_id_test.go index f42fd32ab947..ca29d405ec75 100644 --- a/internal/services/web/validate/function_app_id_test.go +++ b/internal/services/web/validate/function_app_id_test.go @@ -12,7 +12,6 @@ func TestFunctionAppID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/function_app_slot_id_test.go b/internal/services/web/validate/function_app_slot_id_test.go index bfc37bf4333a..afd59460370e 100644 --- a/internal/services/web/validate/function_app_slot_id_test.go +++ b/internal/services/web/validate/function_app_slot_id_test.go @@ -12,7 +12,6 @@ func TestFunctionAppSlotID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/hostname_binding_id_test.go b/internal/services/web/validate/hostname_binding_id_test.go index b8758bf273bf..991f2a532c39 100644 --- a/internal/services/web/validate/hostname_binding_id_test.go +++ b/internal/services/web/validate/hostname_binding_id_test.go @@ -12,7 +12,6 @@ func TestHostnameBindingID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/hybrid_connection_id_test.go b/internal/services/web/validate/hybrid_connection_id_test.go index 954eedecde22..7028db666ecb 100644 --- a/internal/services/web/validate/hybrid_connection_id_test.go +++ b/internal/services/web/validate/hybrid_connection_id_test.go @@ -12,7 +12,6 @@ func TestHybridConnectionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/managed_certificate_id_test.go b/internal/services/web/validate/managed_certificate_id_test.go index 892afeca274d..385a77b91ce5 100644 --- a/internal/services/web/validate/managed_certificate_id_test.go +++ b/internal/services/web/validate/managed_certificate_id_test.go @@ -12,7 +12,6 @@ func TestManagedCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/public_certificate_id_test.go b/internal/services/web/validate/public_certificate_id_test.go index 3030c54bddc1..12b63ea07c0c 100644 --- a/internal/services/web/validate/public_certificate_id_test.go +++ b/internal/services/web/validate/public_certificate_id_test.go @@ -12,7 +12,6 @@ func TestPublicCertificateID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/slot_virtual_network_swift_connection_id_test.go b/internal/services/web/validate/slot_virtual_network_swift_connection_id_test.go index 888aa3dd4f3d..0f628f8952c7 100644 --- a/internal/services/web/validate/slot_virtual_network_swift_connection_id_test.go +++ b/internal/services/web/validate/slot_virtual_network_swift_connection_id_test.go @@ -12,7 +12,6 @@ func TestSlotVirtualNetworkSwiftConnectionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/static_site_custom_domain_id_test.go b/internal/services/web/validate/static_site_custom_domain_id_test.go index 7e3d0ceb0cd0..2f63ed70d0f2 100644 --- a/internal/services/web/validate/static_site_custom_domain_id_test.go +++ b/internal/services/web/validate/static_site_custom_domain_id_test.go @@ -12,7 +12,6 @@ func TestStaticSiteCustomDomainID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/static_site_id_test.go b/internal/services/web/validate/static_site_id_test.go index 9abee6ec21d1..321d0d54e10b 100644 --- a/internal/services/web/validate/static_site_id_test.go +++ b/internal/services/web/validate/static_site_id_test.go @@ -12,7 +12,6 @@ func TestStaticSiteID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/web/validate/virtual_network_swift_connection_id_test.go b/internal/services/web/validate/virtual_network_swift_connection_id_test.go index ca03f676db1e..a3aac2947c75 100644 --- a/internal/services/web/validate/virtual_network_swift_connection_id_test.go +++ b/internal/services/web/validate/virtual_network_swift_connection_id_test.go @@ -12,7 +12,6 @@ func TestVirtualNetworkSwiftConnectionID(t *testing.T) { Input string Valid bool }{ - { // empty Input: "", diff --git a/internal/services/workloads/workloads_sap_single_node_virtual_instance_resource.go b/internal/services/workloads/workloads_sap_single_node_virtual_instance_resource.go index 930ad7a8f7ee..afa801274537 100644 --- a/internal/services/workloads/workloads_sap_single_node_virtual_instance_resource.go +++ b/internal/services/workloads/workloads_sap_single_node_virtual_instance_resource.go @@ -5,6 +5,7 @@ package workloads import ( "context" + "errors" "fmt" "time" @@ -405,7 +406,7 @@ func (r WorkloadsSAPSingleNodeVirtualInstanceResource) CustomizeDiff() sdk.Resou if v := rd.Get("single_server_configuration.0.disk_volume_configuration"); v != nil { diskVolumes := v.(*pluginsdk.Set).List() if hasDuplicateVolumeNameForSAPSingleNodeVirtualInstance(diskVolumes) { - return fmt.Errorf("`volume_name` cannot be duplicated") + return errors.New("`volume_name` cannot be duplicated") } } diff --git a/internal/services/workloads/workloads_sap_three_tier_virtual_instance_resource.go b/internal/services/workloads/workloads_sap_three_tier_virtual_instance_resource.go index 8f452f12163b..4df7e628a189 100644 --- a/internal/services/workloads/workloads_sap_three_tier_virtual_instance_resource.go +++ b/internal/services/workloads/workloads_sap_three_tier_virtual_instance_resource.go @@ -5,6 +5,7 @@ package workloads import ( "context" + "errors" "fmt" "time" @@ -1057,7 +1058,7 @@ func (r WorkloadsSAPThreeTierVirtualInstanceResource) CustomizeDiff() sdk.Resour if v := rd.Get("three_tier_configuration.0.database_server_configuration.0.disk_volume_configuration"); v != nil { diskVolumes := v.(*pluginsdk.Set).List() if hasDuplicateVolumeName(diskVolumes) { - return fmt.Errorf("`volume_name` cannot be duplicated") + return errors.New("`volume_name` cannot be duplicated") } } @@ -1937,7 +1938,7 @@ func flattenThreeTierConfiguration(input sapvirtualinstances.ThreeTierConfigurat } if _, ok := transportFileShareConfiguration.(sapvirtualinstances.MountFileShareConfiguration); ok { - return nil, fmt.Errorf("currently, the last segment of the Storage File Share resource manager ID in Swagger is defined as `/shares/` but it's unexpected. The last segment of the Storage File Share resource manager ID should be `/fileshares/` not `/shares/` in Swagger since the backend service is using `/fileshares/`. See more details from https://github.com/Azure/azure-rest-api-specs/issues/25209. So the feature of `TransportMount` isn't supported by TF for now due to this service API bug") + return nil, errors.New("currently, the last segment of the Storage File Share resource manager ID in Swagger is defined as `/shares/` but it's unexpected. The last segment of the Storage File Share resource manager ID should be `/fileshares/` not `/shares/` in Swagger since the backend service is using `/fileshares/`. See more details from https://github.com/Azure/azure-rest-api-specs/issues/25209. So the feature of `TransportMount` isn't supported by TF for now due to this service API bug") } } } diff --git a/internal/tools/document-lint/check/check_iface.go b/internal/tools/document-lint/check/check_iface.go index ce82332c1a4e..fad8456f7aee 100644 --- a/internal/tools/document-lint/check/check_iface.go +++ b/internal/tools/document-lint/check/check_iface.go @@ -77,6 +77,7 @@ func (i diffWithMessage) Fix(line string) (string, error) { func (i diffWithMessage) String() string { return i.msg } + func (i diffWithMessage) ShouldSkip() bool { return i.skip } diff --git a/internal/tools/document-lint/check/check_possible_value.go b/internal/tools/document-lint/check/check_possible_value.go index 8d98c8c6b067..6002eece3659 100644 --- a/internal/tools/document-lint/check/check_possible_value.go +++ b/internal/tools/document-lint/check/check_possible_value.go @@ -36,7 +36,7 @@ func newPossibleValueDiff(checkBase checkBase, want []string, got []string, miss } func possibleValueStr(values []string) string { - var codes []string + codes := make([]string, 0, len(values)) for _, val := range values { codes = append(codes, util.ItalicCode(val)) } diff --git a/internal/tools/document-lint/check/check_resource_all.go b/internal/tools/document-lint/check/check_resource_all.go index 5f4e8913631e..c2b020f3b9bb 100644 --- a/internal/tools/document-lint/check/check_resource_all.go +++ b/internal/tools/document-lint/check/check_resource_all.go @@ -92,7 +92,6 @@ func (d *DiffResult) ToString() string { timeoutCount++ case forceNewDiff: forceNewCount++ - } } } @@ -115,7 +114,7 @@ func (d *DiffResult) CostTime() time.Duration { } func DiffAll(regs Resources, dryRun bool) *DiffResult { - var dr = NewDiffResult() + dr := NewDiffResult() // can not split to package in different goroutine which may cause data-race and mix shared pointer up // register may repeat in typed and untyped, so use a map to remove the repeat entry diff --git a/internal/tools/document-lint/check/crossproperty.go b/internal/tools/document-lint/check/crossproperty.go index ab45d336f3da..14c35220f553 100644 --- a/internal/tools/document-lint/check/crossproperty.go +++ b/internal/tools/document-lint/check/crossproperty.go @@ -63,11 +63,11 @@ func shouldSkipDocProp(rt, path string) bool { func diffDocMiss(rt, path string, s *schema2.Schema, f *model.Field) (res []Checker) { // skip deprecated property if shouldSkipDocProp(rt, path) { - return + return res } if isSkipProp(rt, path) { - return + return res } if f == nil { @@ -93,7 +93,7 @@ func diffDocMiss(rt, path string, s *schema2.Schema, f *model.Field) (res []Chec case *schema2.Resource: if f.Subs == nil { res = append(res, newMissBlockDeclare(path, f)) - return + return res } for key, val := range ele.Schema { subField := f.Subs[key] @@ -120,10 +120,10 @@ func shouldSkipCodeProp(rt, path string) bool { func diffCodeMiss(rt, path string, f *model.Field, s *schema2.Schema) (res []Checker) { if shouldSkipCodeProp(rt, path) { - return + return res } if isSkipProp(rt, path) { - return + return res } if f != nil && f.FormatErr != "" { @@ -139,7 +139,7 @@ func diffCodeMiss(rt, path string, f *model.Field, s *schema2.Schema) (res []Che } else { res = append(res, newFormatErr(f.Content, f.FormatErr, newCheckBase(f.Line, path, f))) } - return + return res } if s == nil { @@ -223,7 +223,7 @@ func diffCodeMiss(rt, path string, f *model.Field, s *schema2.Schema) (res []Che // check forceNew attribute if s.ForceNew != f.ForceNew && f.Name != "resource_group_name" { - var forceNew = ForceNewDefault + forceNew := ForceNewDefault if s.ForceNew && !f.ForceNew { forceNew = ShouldBeForceNew } else if f.ForceNew && !s.ForceNew { diff --git a/internal/tools/document-lint/check/document_fixer.go b/internal/tools/document-lint/check/document_fixer.go index cffd5aee646c..48af39d486de 100644 --- a/internal/tools/document-lint/check/document_fixer.go +++ b/internal/tools/document-lint/check/document_fixer.go @@ -94,11 +94,11 @@ func tryFixTimeouts(rt string, lines []string, diffs []TimeoutDiffItem) []string func (f *Fixer) TryFix() (err error) { // read file as bytes if len(f.Diff) == 0 { - return + return err } if d, ok := f.Diff[0].(diffWithMessage); ok { log.Printf("%s: %s", f.ResourceType, d.msg) - return + return err } content, err := os.ReadFile(f.MDFile) if err != nil { @@ -147,7 +147,7 @@ func (f *Fixer) WriteBack() (err error) { log.Printf("%s no content to write back, skip", f.MDFile) return } - fd, err := os.OpenFile(f.MDFile, os.O_TRUNC|os.O_RDWR, 066) + fd, err := os.OpenFile(f.MDFile, os.O_TRUNC|os.O_RDWR, 0o66) if err != nil { log.Printf("open %s: %v", f.MDFile, err) return err diff --git a/internal/tools/document-lint/md/doc_helper_test.go b/internal/tools/document-lint/md/doc_helper_test.go index 42f8b6974233..0126d2b9f50e 100644 --- a/internal/tools/document-lint/md/doc_helper_test.go +++ b/internal/tools/document-lint/md/doc_helper_test.go @@ -31,7 +31,7 @@ func TestMDPathFor(t *testing.T) { } func TestResourceNameReg(t *testing.T) { - var titleReg = regexp.MustCompile(`\npage_title:[^\n]*(azurerm_[a-zA-Z0-9_]+)"`) + titleReg := regexp.MustCompile(`\npage_title:[^\n]*(azurerm_[a-zA-Z0-9_]+)"`) subs := titleReg.FindStringSubmatch(`--- subcategory: "AAD B2C" diff --git a/internal/tools/document-lint/md/normalize.go b/internal/tools/document-lint/md/normalize.go index d3ccb80155b8..86d5445e8f65 100644 --- a/internal/tools/document-lint/md/normalize.go +++ b/internal/tools/document-lint/md/normalize.go @@ -99,9 +99,10 @@ func FixFileNormalize(file string) { lines := strings.Split(content, "\n") var curScope model.PosType - var newContent []string var skipThisLine int var inHCL bool + + newContent := make([]string, 0, len(lines)) for idx, line := range lines { if inHCL { newContent = append(newContent, line) @@ -195,7 +196,7 @@ func FixFileNormalize(file string) { } newBs := strings.Join(newContent, "\n") if newBs != content { - f, _ := os.OpenFile(file, os.O_TRUNC|os.O_WRONLY, 0666) + f, _ := os.OpenFile(file, os.O_TRUNC|os.O_WRONLY, 0o666) _, _ = f.WriteString(newBs) _ = f.Sync() } diff --git a/internal/tools/document-lint/md/parse_md.go b/internal/tools/document-lint/md/parse_md.go index 231a6ea3de6b..999cc6dee52c 100644 --- a/internal/tools/document-lint/md/parse_md.go +++ b/internal/tools/document-lint/md/parse_md.go @@ -355,7 +355,7 @@ func (m *Mark) buildStruct() { } func (m *Mark) BuildResourceDoc() *model.ResourceDoc { - var doc = model.NewResourceDoc() + doc := model.NewResourceDoc() for _, f := range m.Fields { if f.Pos == model.PosArgs { doc.Args.AddField(f) diff --git a/internal/tools/document-lint/md/parse_md_test.go b/internal/tools/document-lint/md/parse_md_test.go index 28d421cfda4a..cedfb1cd0895 100644 --- a/internal/tools/document-lint/md/parse_md_test.go +++ b/internal/tools/document-lint/md/parse_md_test.go @@ -35,6 +35,5 @@ func Test_unmarshalFile(t *testing.T) { if gotArgs := len(doc.Args); gotArgs != arg.argsNum { t.Fatalf("`%s` expect arg num: %d, got: %d", arg.file, gotArgs, arg.argsNum) } - } } diff --git a/internal/tools/document-lint/md/resource_doc.go b/internal/tools/document-lint/md/resource_doc.go index 32d0b1278127..1cb9be3f8049 100644 --- a/internal/tools/document-lint/md/resource_doc.go +++ b/internal/tools/document-lint/md/resource_doc.go @@ -75,7 +75,7 @@ func extractFieldFromLine(line string) (field *model.Field) { if len(res) <= 1 || res[1] == "" { field.Name = util.FirstCodeValue(line) // try to use the first code as name field.FormatErr = "no field name found" - return + return field } field.Name = res[1] if field.Name == "" { @@ -97,8 +97,10 @@ func extractFieldFromLine(line string) (field *model.Field) { possibleValueSep := func(line string) int { line = strings.ToLower(line) - for _, sep := range []string{"possible value", "must be one of", "be one of", "allowed value", "valid value", - "supported value", "valid option", "accepted value"} { + for _, sep := range []string{ + "possible value", "must be one of", "be one of", "allowed value", "valid value", + "supported value", "valid option", "accepted value", + } { if sepIdx := strings.Index(line, sep); sepIdx >= 0 { return sepIdx } @@ -181,9 +183,7 @@ func guessBlockProperty(line string) bool { return strings.Contains(line, "A block to") } -var ( - blockTypeReg = blockPropRegs[0] -) +var blockTypeReg = blockPropRegs[0] func newFieldFromLine(line string) *model.Field { f := extractFieldFromLine(line) diff --git a/internal/tools/document-lint/md/resource_doc_test.go b/internal/tools/document-lint/md/resource_doc_test.go index 01b5577bf12b..372d035d845f 100644 --- a/internal/tools/document-lint/md/resource_doc_test.go +++ b/internal/tools/document-lint/md/resource_doc_test.go @@ -56,7 +56,7 @@ func TestExtractListItem(t *testing.T) { } func TestExtractBlockNames(t *testing.T) { - var tests = []struct { + tests := []struct { line string names []string }{ @@ -104,7 +104,7 @@ func TestScanOrSplit(t *testing.T) { } func TestDefaultValueReg(t *testing.T) { - var lines = []string{ + lines := []string{ "* `load_balancing_mode` - (Optional) The Site load balancing. Possible values include: `WeightedRoundRobin`, `LeastRequests`, `LeastResponseTime`, `WeightedTotalTraffic`, `RequestHash`, `PerSiteRoundRobin`. Defaults to `LeastRequests` if omitted.", "* `local_mysql_enabled` - (Optional) Use Local MySQL. Defaults to `false`.", "* `local_mysql_enabled` - (Optional) Use Local MySQL. Defaults to `\"\"`.", diff --git a/internal/tools/document-lint/schema/resource_schema_test.go b/internal/tools/document-lint/schema/resource_schema_test.go index 6b1df2f5fdeb..f21277a9e1e4 100644 --- a/internal/tools/document-lint/schema/resource_schema_test.go +++ b/internal/tools/document-lint/schema/resource_schema_test.go @@ -13,7 +13,7 @@ import ( func TestResourceFile(t *testing.T) { p := automation.SoftwareUpdateConfigurationResource{} file := schema.FileForResource(p.Read().Func) - t.Logf(file) + t.Log(file) // inspect schema r := schema.NewResourceByTyped(p) diff --git a/internal/tools/document-lint/util/string_test.go b/internal/tools/document-lint/util/string_test.go index 5e92138dd6eb..688fea89f69e 100644 --- a/internal/tools/document-lint/util/string_test.go +++ b/internal/tools/document-lint/util/string_test.go @@ -59,5 +59,4 @@ func TestTimeoutIdx(t *testing.T) { line = "* `delete` - (Defaults to 30 minutes) Used when deleting the EventGrid Event Subscription." idxs = timeoutValueReg.FindStringSubmatchIndex(line) t.Logf("%v: %s", idxs, line[idxs[0]:idxs[1]]) - } diff --git a/internal/tools/generator-resource-id/main.go b/internal/tools/generator-resource-id/main.go index ab530b3a154b..2a3cb18aeb06 100644 --- a/internal/tools/generator-resource-id/main.go +++ b/internal/tools/generator-resource-id/main.go @@ -345,6 +345,7 @@ package parse // NOTE: this file is generated via 'go:generate' - manual changes will be overwritten import ( + "errors" "fmt" "strings" @@ -396,8 +397,8 @@ func New%[1]sID(%[2]s string) %[1]sId { func (id ResourceIdGenerator) codeForDescription() string { makeHumanReadable := func(input string) string { chars := make([]rune, 0) - for _, c := range input { - if unicode.IsUpper(c) { + for i, c := range input { + if unicode.IsUpper(c) && i+1 < len(input) && unicode.IsLower(rune(input[i+1])) { chars = append(chars, ' ') } @@ -465,7 +466,7 @@ func (id ResourceIdGenerator) codeForParser() string { if isSubscription || isResourceGroup { parserStatements = append(parserStatements, fmt.Sprintf(` if resourceId.%[1]s == "" { - return nil, fmt.Errorf("ID was missing the '%[2]s' element") + return nil, errors.New("ID was missing the '%[2]s' element") } `, segment.FieldName, segment.SegmentKey)) continue @@ -520,7 +521,7 @@ func (id ResourceIdGenerator) codeForParserInsensitive() string { if isSubscription || isResourceGroup { parserStatements = append(parserStatements, fmt.Sprintf(` if resourceId.%[1]s == "" { - return nil, fmt.Errorf("ID was missing the '%[2]s' element") + return nil, errors.New("ID was missing the '%[2]s' element") } `, segment.FieldName, segment.SegmentKey)) continue @@ -700,8 +701,7 @@ func Test%[1]sID(t *testing.T) { Input string Error bool Expected *%[1]sId - }{ -%[2]s + }{%[2]s } for _, v := range testData { @@ -731,8 +731,7 @@ func Test%[1]sID(t *testing.T) { Input string Error bool Expected *parse.%[1]sId - }{ -%[2]s + }{%[2]s } for _, v := range testData { @@ -857,8 +856,7 @@ func Test%[1]sIDInsensitively(t *testing.T) { Input string Error bool Expected *%[1]sId - }{ -%[2]s + }{%[2]s } for _, v := range testData { @@ -888,8 +886,7 @@ func Test%[1]sIDInsensitively(t *testing.T) { Input string Error bool Expected *parse.%[1]sId - }{ -%[2]s + }{%[2]s } for _, v := range testData { @@ -1005,8 +1002,7 @@ func Test%[1]sID(t *testing.T) { cases := []struct { Input string Valid bool - }{ -%[2]s + }{%[2]s } for _, tc := range cases { t.Logf("[DEBUG] Testing Value %%s", tc.Input) @@ -1038,8 +1034,7 @@ func Test%[2]sID(t *testing.T) { cases := []struct { Input string Valid bool - }{ -%[3]s + }{%[3]s } for _, tc := range cases { t.Logf("[DEBUG] Testing Value %%s", tc.Input) diff --git a/internal/tools/generator-services/main.go b/internal/tools/generator-services/main.go index 005d9e462fc1..0c66eed86460 100644 --- a/internal/tools/generator-services/main.go +++ b/internal/tools/generator-services/main.go @@ -66,15 +66,15 @@ dependencies: - vendor/**/* documentation: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - website/**/* tooling: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - internal/tools/**/* state-migration: - changed-files: - - any-glob-to-any-file: + - any-glob-to-any-file: - internal/services/**/migration/**/* ` @@ -251,7 +251,8 @@ func (websiteCategoriesGenerator) run(outputFileName string, _ map[string]struct // sort them sort.Strings(websiteCategories) - fileContents := strings.Join(websiteCategories, "\n") + // the file needs to start with an empty line to allow documentation without any subcategory e.g. provider function docs + fileContents := "\n" + strings.Join(websiteCategories, "\n") return writeToFile(outputFileName, fileContents) } @@ -288,10 +289,8 @@ func (githubIssueLabelsGenerator) run(outputFileName string, _ map[string]struct label := "" for _, service := range provider.SupportedTypedServices() { - v, ok := service.(sdk.TypedServiceRegistrationWithAGitHubLabel) // keep a record of resources/datasources that don't have labels so they can be used to check that prefixes generated later don't match resources from those services - label = "" if ok { label = v.AssociatedGitHubLabel() } @@ -306,7 +305,6 @@ func (githubIssueLabelsGenerator) run(outputFileName string, _ map[string]struct } labelToNames = appendToSliceWithinMap(labelToNames, names, label) - } for _, service := range provider.SupportedUntypedServices() { v, ok := service.(sdk.UntypedServiceRegistrationWithAGitHubLabel) @@ -333,7 +331,6 @@ func (githubIssueLabelsGenerator) run(outputFileName string, _ map[string]struct names = removeDuplicateNames(names) labelToNames = appendToSliceWithinMap(labelToNames, names, label) - } sortedLabels := make([]string, 0) @@ -348,7 +345,6 @@ func (githubIssueLabelsGenerator) run(outputFileName string, _ map[string]struct // loop through all labels and get a list of prefixes that match each label. And for each prefix, record which resource/datasource names it is derived from - we need to retain these in case there are duplicate prefixes matching resources with a different label for _, labelName := range sortedLabels { - longestPrefix := longestCommonPrefix(labelToNames[labelName]) var prefixGroups []Prefix // If there is no common prefix for a service, separate it into groups using the next segment of the name (azurerm_xxx) and add multiple possible prefixes for the label @@ -367,12 +363,10 @@ func (githubIssueLabelsGenerator) run(outputFileName string, _ map[string]struct } } labelToPrefixes[labelName] = prefixGroups - } // loop though again, this time compiling prefixes into a regex for each label and separating out duplicates for _, labelName := range sortedLabels { - if labelName == "" { continue } @@ -385,7 +379,6 @@ func (githubIssueLabelsGenerator) run(outputFileName string, _ map[string]struct for _, prefix := range labelToPrefixes[labelName] { // if a prefix matches another prefix, use the whole name for each resource/ds that matches that prefix in the regex if prefixHasMatch(labelName, prefix, labelToPrefixes) { - for _, name := range prefix.Names { prefixes = append(prefixes, strings.TrimPrefix(name+"\\W+", azurerm)) } @@ -458,7 +451,6 @@ func longestCommonPrefix(names []string) string { end := false if len(names) > 0 { - sort.Strings(names) first := names[0] last := names[len(names)-1] @@ -526,10 +518,9 @@ func prefixHasMatch(labelToCheck string, prefixToCheck Prefix, labelToPrefixes m } func getPrefixesForNames(names []string) []Prefix { - - var prefixes []Prefix groupedNames := commonPrefixGroups(names) + prefixes := make([]Prefix, 0, len(groupedNames)) for _, group := range groupedNames { prefix := Prefix{ Names: group, diff --git a/internal/tools/schema-api/schema-rules/become_computed_only.go b/internal/tools/schema-api/schema-rules/become_computed_only.go index a07d099166a3..62744a50b678 100644 --- a/internal/tools/schema-api/schema-rules/become_computed_only.go +++ b/internal/tools/schema-api/schema-rules/become_computed_only.go @@ -10,8 +10,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tools/schema-api/providerjson" ) -type becomeComputedOnly struct { -} +type becomeComputedOnly struct{} var _ BreakingChangeRule = becomeComputedOnly{} diff --git a/internal/tools/schema-api/schema-rules/default_value_change.go b/internal/tools/schema-api/schema-rules/default_value_change.go index 03654c64a4d7..e827a8398746 100644 --- a/internal/tools/schema-api/schema-rules/default_value_change.go +++ b/internal/tools/schema-api/schema-rules/default_value_change.go @@ -10,8 +10,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tools/schema-api/providerjson" ) -type defaultValueChange struct { -} +type defaultValueChange struct{} var _ BreakingChangeRule = defaultValueChange{} diff --git a/internal/tools/schema-api/schema-rules/optional_remove_computed.go b/internal/tools/schema-api/schema-rules/optional_remove_computed.go index d06d2e99d345..7f28f854f27f 100644 --- a/internal/tools/schema-api/schema-rules/optional_remove_computed.go +++ b/internal/tools/schema-api/schema-rules/optional_remove_computed.go @@ -12,8 +12,7 @@ import ( var _ BreakingChangeRule = optionalRemoveComputed{} -type optionalRemoveComputed struct { -} +type optionalRemoveComputed struct{} // Check - Checks that Computed is not removed from Optional properties as user configs may not supply the value, but the state will contain one, causing a diff./ func (optionalRemoveComputed) Check(base providerjson.SchemaJSON, current providerjson.SchemaJSON, propertyName string) *string { diff --git a/internal/tools/schema-api/schema-rules/optional_to_required.go b/internal/tools/schema-api/schema-rules/optional_to_required.go index b338e6b27afe..e589d16efb13 100644 --- a/internal/tools/schema-api/schema-rules/optional_to_required.go +++ b/internal/tools/schema-api/schema-rules/optional_to_required.go @@ -10,8 +10,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/internal/tools/schema-api/providerjson" ) -type optionalToRequired struct { -} +type optionalToRequired struct{} var _ BreakingChangeRule = optionalToRequired{} diff --git a/internal/tools/static-analysis/rules/typed_sdk_bit_check.go b/internal/tools/static-analysis/rules/typed_sdk_bit_check.go index 84fe50a966c9..e02bd6346f01 100644 --- a/internal/tools/static-analysis/rules/typed_sdk_bit_check.go +++ b/internal/tools/static-analysis/rules/typed_sdk_bit_check.go @@ -34,7 +34,6 @@ func (r TypedSDKBitCheck) Run() (errors []error) { default: errors = append(errors, fmt.Errorf("%q cannot be bit checked, ModelObject did not return a pointer\n", resource.ResourceType())) } - } for _, datasource := range s.DataSources() { modelType := reflect.TypeOf(datasource.ModelObject()) diff --git a/internal/tools/update-api-version/main.go b/internal/tools/update-api-version/main.go index f188864d2bf7..29e092947c98 100644 --- a/internal/tools/update-api-version/main.go +++ b/internal/tools/update-api-version/main.go @@ -113,7 +113,7 @@ func updateImportsWithinDirectory(serviceName string, oldApiVersion string, newA if err = format.Node(&buf, fileSet, file); err != nil { return fmt.Errorf("error formatting new code: %w", err) } - _ = os.WriteFile(fileName, buf.Bytes(), 0644) + _ = os.WriteFile(fileName, buf.Bytes(), 0o600) } } return nil diff --git a/internal/tools/update-go-azure-sdk/main.go b/internal/tools/update-go-azure-sdk/main.go index 9cd67725da75..c960235ae2ab 100644 --- a/internal/tools/update-go-azure-sdk/main.go +++ b/internal/tools/update-go-azure-sdk/main.go @@ -246,7 +246,7 @@ func run(ctx context.Context, input config) error { description := buildPullRequestDescription(results, input.newSdkVersion) if input.outputFileName != "" { logger.Info(fmt.Sprintf("Writing PR description to %q..", input.outputFileName)) - if err := os.WriteFile(input.outputFileName, []byte(description), 0644); err != nil { + if err := os.WriteFile(input.outputFileName, []byte(description), 0o644); err != nil { return fmt.Errorf("writing description to `%s`: %+v", input.outputFileName, err) } @@ -725,7 +725,7 @@ func updateImportsWithinDirectory(serviceName string, oldApiVersion string, newA if err = format.Node(&buf, fileSet, file); err != nil { return fmt.Errorf("error formatting new code: %w", err) } - _ = os.WriteFile(fileName, buf.Bytes(), 0644) + _ = os.WriteFile(fileName, buf.Bytes(), 0o644) } } logger.Trace(fmt.Sprintf("Processed directory %q.", directory)) diff --git a/internal/tools/website-scaffold/main_test.go b/internal/tools/website-scaffold/main_test.go index eb261b4a63bb..7e7b7e3e9234 100644 --- a/internal/tools/website-scaffold/main_test.go +++ b/internal/tools/website-scaffold/main_test.go @@ -101,7 +101,7 @@ A 'block3' block supports the following: Type: schema.TypeString, Optional: true, }, - //lintignore:XS003 + // lintignore:XS003 "block1": { Type: schema.TypeList, MaxItems: 1, @@ -115,7 +115,7 @@ A 'block3' block supports the following: }, }, }, - //lintignore:XS003 + // lintignore:XS003 "block3": { Type: schema.TypeList, MinItems: 1, diff --git a/main.go b/main.go index 54efed2b6898..f9b1e7683c31 100644 --- a/main.go +++ b/main.go @@ -8,55 +8,32 @@ import ( "flag" "log" - "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" - "github.com/hashicorp/terraform-provider-azurerm/internal/features" - "github.com/hashicorp/terraform-provider-azurerm/internal/provider" - "github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server" "github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework" ) func main() { + var debugMode bool + // remove date and time stamp from log output as the plugin SDK already adds its own log.SetFlags(log.Flags() &^ (log.Ldate | log.Ltime)) - var debugMode bool - flag.BoolVar(&debugMode, "debuggable", false, "set to true to run the provider with support for debuggers like delve") flag.Parse() - ctx := context.Background() - - if features.FourPointOhBeta() { - providerServer, _, err := framework.ProtoV5ProviderServerFactory(ctx) - if err != nil { - log.Fatalf("creating AzureRM Provider Server: %+v", err) - } - - var serveOpts []tf5server.ServeOpt - - if debugMode { - serveOpts = append(serveOpts, tf5server.WithManagedDebug()) - } - - err = tf5server.Serve("registry.terraform.io/hashicorp/azurerm", providerServer, serveOpts...) - if err != nil { - log.Fatal(err) - } - } else { - if debugMode { - //nolint:staticcheck - err := plugin.Debug(context.Background(), "registry.terraform.io/hashicorp/azurerm", - &plugin.ServeOpts{ - ProviderFunc: provider.AzureProvider, - }) - if err != nil { - log.Println(err.Error()) - } - } else { - plugin.Serve(&plugin.ServeOpts{ - ProviderFunc: provider.AzureProvider, - }) - } + providerServer, _, err := framework.ProtoV5ProviderServerFactory(context.Background()) + if err != nil { + log.Fatalf("creating AzureRM Provider Server: %+v", err) + } + + var serveOpts []tf5server.ServeOpt + + if debugMode { + serveOpts = append(serveOpts, tf5server.WithManagedDebug()) + } + + err = tf5server.Serve("registry.terraform.io/hashicorp/azurerm", providerServer, serveOpts...) + if err != nil { + log.Fatal(err) } } diff --git a/utils/bool.go b/utils/bool.go deleted file mode 100644 index ab2eec6efbdb..000000000000 --- a/utils/bool.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package utils - -// NormaliseNilableBool takes a pointer to a bool and returns a zero value or -// the real value if present -// Deprecated: please use the `From` function in the `pointer` package -func NormaliseNilableBool(input *bool) bool { - if input == nil { - return false - } - - return *input -} diff --git a/utils/float.go b/utils/float.go deleted file mode 100644 index e37ff7015e2b..000000000000 --- a/utils/float.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package utils - -// NormalizeNilableFloat normalizes a nilable float64 into a float64 value -// Deprecated: please use the `From` function in the `pointer` package -func NormalizeNilableFloat(input *float64) float64 { - if input == nil { - return 0 - } - - return *input -} - -// NormalizeNilableFloat32 normalizes a nilable float32 into a float32 value -// Deprecated: please use the `From` function in the `pointer` package -func NormalizeNilableFloat32(input *float32) float32 { - if input == nil { - return 0 - } - - return *input -} diff --git a/utils/int.go b/utils/int.go deleted file mode 100644 index 6e656f1002ec..000000000000 --- a/utils/int.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package utils - -// NormaliseNilableInt takes a pointer to an int and returns a zero value or -// the real value if present -// Deprecated: please use the `From` function in the `pointer` package -func NormaliseNilableInt(input *int) int { - if input == nil { - return 0 - } - - return *input -} - -// NormaliseNilableInt32 takes a pointer to an int32 and returns a zero value or -// the real value if present -// Deprecated: please use the `From` function in the `pointer` package -func NormaliseNilableInt32(input *int32) int32 { - if input == nil { - return 0 - } - - return *input -} - -// NormaliseNilableInt64 takes a pointer to an int64 and returns a zero value or -// the real value if present -// Deprecated: please use the `From` function in the `pointer` package -func NormaliseNilableInt64(input *int64) int64 { - if input == nil { - return 0 - } - - return *input -} diff --git a/utils/string.go b/utils/string.go deleted file mode 100644 index 2e40b0fa07b5..000000000000 --- a/utils/string.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package utils - -// NormalizeNilableString normalizes a nilable string into a string -// that is, if it's nil returns an empty string else the value -// Deprecated: please use the `From` function in the `pointer` package -func NormalizeNilableString(input *string) string { - if input == nil { - return "" - } - - return *input -} diff --git a/vendor/github.com/golang-jwt/jwt/v4/parser.go b/vendor/github.com/golang-jwt/jwt/v4/parser.go index c0a6f6927917..9dd36e5a5acd 100644 --- a/vendor/github.com/golang-jwt/jwt/v4/parser.go +++ b/vendor/github.com/golang-jwt/jwt/v4/parser.go @@ -36,19 +36,21 @@ func NewParser(options ...ParserOption) *Parser { return p } -// Parse parses, validates, verifies the signature and returns the parsed token. -// keyFunc will receive the parsed token and should return the key for validating. +// Parse parses, validates, verifies the signature and returns the parsed token. keyFunc will +// receive the parsed token and should return the key for validating. func (p *Parser) Parse(tokenString string, keyFunc Keyfunc) (*Token, error) { return p.ParseWithClaims(tokenString, MapClaims{}, keyFunc) } -// ParseWithClaims parses, validates, and verifies like Parse, but supplies a default object implementing the Claims -// interface. This provides default values which can be overridden and allows a caller to use their own type, rather -// than the default MapClaims implementation of Claims. +// ParseWithClaims parses, validates, and verifies like Parse, but supplies a default object +// implementing the Claims interface. This provides default values which can be overridden and +// allows a caller to use their own type, rather than the default MapClaims implementation of +// Claims. // -// Note: If you provide a custom claim implementation that embeds one of the standard claims (such as RegisteredClaims), -// make sure that a) you either embed a non-pointer version of the claims or b) if you are using a pointer, allocate the -// proper memory for it before passing in the overall claims, otherwise you might run into a panic. +// Note: If you provide a custom claim implementation that embeds one of the standard claims (such +// as RegisteredClaims), make sure that a) you either embed a non-pointer version of the claims or +// b) if you are using a pointer, allocate the proper memory for it before passing in the overall +// claims, otherwise you might run into a panic. func (p *Parser) ParseWithClaims(tokenString string, claims Claims, keyFunc Keyfunc) (*Token, error) { token, parts, err := p.ParseUnverified(tokenString, claims) if err != nil { @@ -85,12 +87,17 @@ func (p *Parser) ParseWithClaims(tokenString string, claims Claims, keyFunc Keyf return token, &ValidationError{Inner: err, Errors: ValidationErrorUnverifiable} } + // Perform validation + token.Signature = parts[2] + if err := token.Method.Verify(strings.Join(parts[0:2], "."), token.Signature, key); err != nil { + return token, &ValidationError{Inner: err, Errors: ValidationErrorSignatureInvalid} + } + vErr := &ValidationError{} // Validate Claims if !p.SkipClaimsValidation { if err := token.Claims.Valid(); err != nil { - // If the Claims Valid returned an error, check if it is a validation error, // If it was another error type, create a ValidationError with a generic ClaimsInvalid flag set if e, ok := err.(*ValidationError); !ok { @@ -98,22 +105,14 @@ func (p *Parser) ParseWithClaims(tokenString string, claims Claims, keyFunc Keyf } else { vErr = e } + return token, vErr } } - // Perform validation - token.Signature = parts[2] - if err = token.Method.Verify(strings.Join(parts[0:2], "."), token.Signature, key); err != nil { - vErr.Inner = err - vErr.Errors |= ValidationErrorSignatureInvalid - } - - if vErr.valid() { - token.Valid = true - return token, nil - } + // No errors so far, token is valid. + token.Valid = true - return token, vErr + return token, nil } // ParseUnverified parses the token but doesn't validate the signature. diff --git a/vendor/github.com/hashicorp/go-azure-helpers/resourcemanager/commonids/app_service_logic_app.go b/vendor/github.com/hashicorp/go-azure-helpers/resourcemanager/commonids/app_service_logic_app.go new file mode 100644 index 000000000000..916490ed6737 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-helpers/resourcemanager/commonids/app_service_logic_app.go @@ -0,0 +1,55 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package commonids + +import "fmt" + +// NOTE: A Logic App is just an App Service instance - but to allow for potential differentiation in the future +// we're wrapping this to provide a unique Type, Parse and Validation functions. + +type LogicAppId = AppServiceId + +// ParseLogicAppId parses 'input' into a LogicAppId +func ParseLogicAppId(input string) (*LogicAppId, error) { + parsed, err := ParseAppServiceID(input) + if err != nil { + return nil, fmt.Errorf("parsing %q as a Logic App ID: %+v", input, err) + } + + return &LogicAppId{ + SubscriptionId: parsed.SubscriptionId, + ResourceGroupName: parsed.ResourceGroupName, + SiteName: parsed.SiteName, + }, nil +} + +// ParseLogicAppIdInsensitively parses 'input' case-insensitively into a LogicAppId +// note: this method should only be used for API response data and not user input +func ParseLogicAppIdInsensitively(input string) (*LogicAppId, error) { + parsed, err := ParseAppServiceIDInsensitively(input) + if err != nil { + return nil, fmt.Errorf("parsing %q as a Logic App ID: %+v", input, err) + } + + return &LogicAppId{ + SubscriptionId: parsed.SubscriptionId, + ResourceGroupName: parsed.ResourceGroupName, + SiteName: parsed.SiteName, + }, nil +} + +// ValidateLogicAppId checks that 'input' can be parsed as a Logic App ID +func ValidateLogicAppId(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLogicAppId(v); err != nil { + errors = append(errors, err) + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/README.md deleted file mode 100644 index 08588c1d0b2b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/README.md +++ /dev/null @@ -1,111 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application` Documentation - -The `application` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application" -``` - - -### Client Initialization - -```go -client := application.NewApplicationClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApplicationClient.Create` - -```go -ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "applicationName") - -payload := application.Application{ - // ... -} - - -read, err := client.Create(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApplicationClient.Delete` - -```go -ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "applicationName") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApplicationClient.Get` - -```go -ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "applicationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApplicationClient.List` - -```go -ctx := context.TODO() -id := application.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -// alternatively `client.List(ctx, id, application.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, application.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApplicationClient.Update` - -```go -ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "applicationName") - -payload := application.Application{ - // ... -} - - -read, err := client.Update(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/version.go deleted file mode 100644 index ec185dc0e64c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package application - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/application/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/README.md deleted file mode 100644 index 1b174103fcea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/README.md +++ /dev/null @@ -1,191 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount` Documentation - -The `batchaccount` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount" -``` - - -### Client Initialization - -```go -client := batchaccount.NewBatchAccountClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `BatchAccountClient.Create` - -```go -ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -payload := batchaccount.BatchAccountCreateParameters{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `BatchAccountClient.Delete` - -```go -ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `BatchAccountClient.Get` - -```go -ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `BatchAccountClient.GetKeys` - -```go -ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -read, err := client.GetKeys(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `BatchAccountClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BatchAccountClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BatchAccountClient.ListOutboundNetworkDependenciesEndpoints` - -```go -ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -// alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination -items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BatchAccountClient.RegenerateKey` - -```go -ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -payload := batchaccount.BatchAccountRegenerateKeyParameters{ - // ... -} - - -read, err := client.RegenerateKey(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `BatchAccountClient.SynchronizeAutoStorageKeys` - -```go -ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -read, err := client.SynchronizeAutoStorageKeys(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `BatchAccountClient.Update` - -```go -ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -payload := batchaccount.BatchAccountUpdateParameters{ - // ... -} - - -read, err := client.Update(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/constants.go deleted file mode 100644 index ad2dba69e1ab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/constants.go +++ /dev/null @@ -1,491 +0,0 @@ -package batchaccount - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AccountKeyType string - -const ( - AccountKeyTypePrimary AccountKeyType = "Primary" - AccountKeyTypeSecondary AccountKeyType = "Secondary" -) - -func PossibleValuesForAccountKeyType() []string { - return []string{ - string(AccountKeyTypePrimary), - string(AccountKeyTypeSecondary), - } -} - -func (s *AccountKeyType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAccountKeyType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAccountKeyType(input string) (*AccountKeyType, error) { - vals := map[string]AccountKeyType{ - "primary": AccountKeyTypePrimary, - "secondary": AccountKeyTypeSecondary, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AccountKeyType(input) - return &out, nil -} - -type AuthenticationMode string - -const ( - AuthenticationModeAAD AuthenticationMode = "AAD" - AuthenticationModeSharedKey AuthenticationMode = "SharedKey" - AuthenticationModeTaskAuthenticationToken AuthenticationMode = "TaskAuthenticationToken" -) - -func PossibleValuesForAuthenticationMode() []string { - return []string{ - string(AuthenticationModeAAD), - string(AuthenticationModeSharedKey), - string(AuthenticationModeTaskAuthenticationToken), - } -} - -func (s *AuthenticationMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAuthenticationMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAuthenticationMode(input string) (*AuthenticationMode, error) { - vals := map[string]AuthenticationMode{ - "aad": AuthenticationModeAAD, - "sharedkey": AuthenticationModeSharedKey, - "taskauthenticationtoken": AuthenticationModeTaskAuthenticationToken, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AuthenticationMode(input) - return &out, nil -} - -type AutoStorageAuthenticationMode string - -const ( - AutoStorageAuthenticationModeBatchAccountManagedIdentity AutoStorageAuthenticationMode = "BatchAccountManagedIdentity" - AutoStorageAuthenticationModeStorageKeys AutoStorageAuthenticationMode = "StorageKeys" -) - -func PossibleValuesForAutoStorageAuthenticationMode() []string { - return []string{ - string(AutoStorageAuthenticationModeBatchAccountManagedIdentity), - string(AutoStorageAuthenticationModeStorageKeys), - } -} - -func (s *AutoStorageAuthenticationMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAutoStorageAuthenticationMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAutoStorageAuthenticationMode(input string) (*AutoStorageAuthenticationMode, error) { - vals := map[string]AutoStorageAuthenticationMode{ - "batchaccountmanagedidentity": AutoStorageAuthenticationModeBatchAccountManagedIdentity, - "storagekeys": AutoStorageAuthenticationModeStorageKeys, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AutoStorageAuthenticationMode(input) - return &out, nil -} - -type EndpointAccessDefaultAction string - -const ( - EndpointAccessDefaultActionAllow EndpointAccessDefaultAction = "Allow" - EndpointAccessDefaultActionDeny EndpointAccessDefaultAction = "Deny" -) - -func PossibleValuesForEndpointAccessDefaultAction() []string { - return []string{ - string(EndpointAccessDefaultActionAllow), - string(EndpointAccessDefaultActionDeny), - } -} - -func (s *EndpointAccessDefaultAction) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEndpointAccessDefaultAction(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEndpointAccessDefaultAction(input string) (*EndpointAccessDefaultAction, error) { - vals := map[string]EndpointAccessDefaultAction{ - "allow": EndpointAccessDefaultActionAllow, - "deny": EndpointAccessDefaultActionDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EndpointAccessDefaultAction(input) - return &out, nil -} - -type IPRuleAction string - -const ( - IPRuleActionAllow IPRuleAction = "Allow" -) - -func PossibleValuesForIPRuleAction() []string { - return []string{ - string(IPRuleActionAllow), - } -} - -func (s *IPRuleAction) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPRuleAction(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPRuleAction(input string) (*IPRuleAction, error) { - vals := map[string]IPRuleAction{ - "allow": IPRuleActionAllow, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPRuleAction(input) - return &out, nil -} - -type KeySource string - -const ( - KeySourceMicrosoftPointBatch KeySource = "Microsoft.Batch" - KeySourceMicrosoftPointKeyVault KeySource = "Microsoft.KeyVault" -) - -func PossibleValuesForKeySource() []string { - return []string{ - string(KeySourceMicrosoftPointBatch), - string(KeySourceMicrosoftPointKeyVault), - } -} - -func (s *KeySource) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseKeySource(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseKeySource(input string) (*KeySource, error) { - vals := map[string]KeySource{ - "microsoft.batch": KeySourceMicrosoftPointBatch, - "microsoft.keyvault": KeySourceMicrosoftPointKeyVault, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := KeySource(input) - return &out, nil -} - -type PoolAllocationMode string - -const ( - PoolAllocationModeBatchService PoolAllocationMode = "BatchService" - PoolAllocationModeUserSubscription PoolAllocationMode = "UserSubscription" -) - -func PossibleValuesForPoolAllocationMode() []string { - return []string{ - string(PoolAllocationModeBatchService), - string(PoolAllocationModeUserSubscription), - } -} - -func (s *PoolAllocationMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePoolAllocationMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePoolAllocationMode(input string) (*PoolAllocationMode, error) { - vals := map[string]PoolAllocationMode{ - "batchservice": PoolAllocationModeBatchService, - "usersubscription": PoolAllocationModeUserSubscription, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PoolAllocationMode(input) - return &out, nil -} - -type PrivateEndpointConnectionProvisioningState string - -const ( - PrivateEndpointConnectionProvisioningStateCancelled PrivateEndpointConnectionProvisioningState = "Cancelled" - PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" - PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" - PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" - PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" - PrivateEndpointConnectionProvisioningStateUpdating PrivateEndpointConnectionProvisioningState = "Updating" -) - -func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string { - return []string{ - string(PrivateEndpointConnectionProvisioningStateCancelled), - string(PrivateEndpointConnectionProvisioningStateCreating), - string(PrivateEndpointConnectionProvisioningStateDeleting), - string(PrivateEndpointConnectionProvisioningStateFailed), - string(PrivateEndpointConnectionProvisioningStateSucceeded), - string(PrivateEndpointConnectionProvisioningStateUpdating), - } -} - -func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePrivateEndpointConnectionProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePrivateEndpointConnectionProvisioningState(input string) (*PrivateEndpointConnectionProvisioningState, error) { - vals := map[string]PrivateEndpointConnectionProvisioningState{ - "cancelled": PrivateEndpointConnectionProvisioningStateCancelled, - "creating": PrivateEndpointConnectionProvisioningStateCreating, - "deleting": PrivateEndpointConnectionProvisioningStateDeleting, - "failed": PrivateEndpointConnectionProvisioningStateFailed, - "succeeded": PrivateEndpointConnectionProvisioningStateSucceeded, - "updating": PrivateEndpointConnectionProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PrivateEndpointConnectionProvisioningState(input) - return &out, nil -} - -type PrivateLinkServiceConnectionStatus string - -const ( - PrivateLinkServiceConnectionStatusApproved PrivateLinkServiceConnectionStatus = "Approved" - PrivateLinkServiceConnectionStatusDisconnected PrivateLinkServiceConnectionStatus = "Disconnected" - PrivateLinkServiceConnectionStatusPending PrivateLinkServiceConnectionStatus = "Pending" - PrivateLinkServiceConnectionStatusRejected PrivateLinkServiceConnectionStatus = "Rejected" -) - -func PossibleValuesForPrivateLinkServiceConnectionStatus() []string { - return []string{ - string(PrivateLinkServiceConnectionStatusApproved), - string(PrivateLinkServiceConnectionStatusDisconnected), - string(PrivateLinkServiceConnectionStatusPending), - string(PrivateLinkServiceConnectionStatusRejected), - } -} - -func (s *PrivateLinkServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePrivateLinkServiceConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePrivateLinkServiceConnectionStatus(input string) (*PrivateLinkServiceConnectionStatus, error) { - vals := map[string]PrivateLinkServiceConnectionStatus{ - "approved": PrivateLinkServiceConnectionStatusApproved, - "disconnected": PrivateLinkServiceConnectionStatusDisconnected, - "pending": PrivateLinkServiceConnectionStatusPending, - "rejected": PrivateLinkServiceConnectionStatusRejected, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PrivateLinkServiceConnectionStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateCancelled ProvisioningState = "Cancelled" - ProvisioningStateCreating ProvisioningState = "Creating" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateInvalid ProvisioningState = "Invalid" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateCancelled), - string(ProvisioningStateCreating), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateInvalid), - string(ProvisioningStateSucceeded), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "cancelled": ProvisioningStateCancelled, - "creating": ProvisioningStateCreating, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "invalid": ProvisioningStateInvalid, - "succeeded": ProvisioningStateSucceeded, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicNetworkAccessType string - -const ( - PublicNetworkAccessTypeDisabled PublicNetworkAccessType = "Disabled" - PublicNetworkAccessTypeEnabled PublicNetworkAccessType = "Enabled" -) - -func PossibleValuesForPublicNetworkAccessType() []string { - return []string{ - string(PublicNetworkAccessTypeDisabled), - string(PublicNetworkAccessTypeEnabled), - } -} - -func (s *PublicNetworkAccessType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicNetworkAccessType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicNetworkAccessType(input string) (*PublicNetworkAccessType, error) { - vals := map[string]PublicNetworkAccessType{ - "disabled": PublicNetworkAccessTypeDisabled, - "enabled": PublicNetworkAccessTypeEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicNetworkAccessType(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privateendpointconnection.go deleted file mode 100644 index 282e17657399..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privateendpointconnection.go +++ /dev/null @@ -1,12 +0,0 @@ -package batchaccount - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateEndpointConnection struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/version.go deleted file mode 100644 index a5d6d1e9391b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package batchaccount - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/batchaccount/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/README.md deleted file mode 100644 index 23bd7cbe03ff..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/README.md +++ /dev/null @@ -1,123 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate` Documentation - -The `certificate` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate" -``` - - -### Client Initialization - -```go -client := certificate.NewCertificateClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CertificateClient.CancelDeletion` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") - -read, err := client.CancelDeletion(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CertificateClient.Create` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") - -payload := certificate.CertificateCreateOrUpdateParameters{ - // ... -} - - -read, err := client.Create(ctx, id, payload, certificate.DefaultCreateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CertificateClient.Delete` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `CertificateClient.Get` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CertificateClient.ListByBatchAccount` - -```go -ctx := context.TODO() -id := certificate.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -// alternatively `client.ListByBatchAccount(ctx, id, certificate.DefaultListByBatchAccountOperationOptions())` can be used to do batched pagination -items, err := client.ListByBatchAccountComplete(ctx, id, certificate.DefaultListByBatchAccountOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CertificateClient.Update` - -```go -ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") - -payload := certificate.CertificateCreateOrUpdateParameters{ - // ... -} - - -read, err := client.Update(ctx, id, payload, certificate.DefaultUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificate.go deleted file mode 100644 index 5218b0449e6a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificate.go +++ /dev/null @@ -1,12 +0,0 @@ -package certificate - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Certificate struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *CertificateProperties `json:"properties,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/version.go deleted file mode 100644 index cf2ef3e86517..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package certificate - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/certificate/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/README.md deleted file mode 100644 index efe23df46348..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/README.md +++ /dev/null @@ -1,139 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool` Documentation - -The `pool` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool" -``` - - -### Client Initialization - -```go -client := pool.NewPoolClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PoolClient.Create` - -```go -ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") - -payload := pool.Pool{ - // ... -} - - -read, err := client.Create(ctx, id, payload, pool.DefaultCreateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PoolClient.Delete` - -```go -ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PoolClient.DisableAutoScale` - -```go -ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") - -read, err := client.DisableAutoScale(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PoolClient.Get` - -```go -ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PoolClient.ListByBatchAccount` - -```go -ctx := context.TODO() -id := pool.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") - -// alternatively `client.ListByBatchAccount(ctx, id, pool.DefaultListByBatchAccountOperationOptions())` can be used to do batched pagination -items, err := client.ListByBatchAccountComplete(ctx, id, pool.DefaultListByBatchAccountOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PoolClient.StopResize` - -```go -ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") - -read, err := client.StopResize(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PoolClient.Update` - -```go -ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") - -payload := pool.Pool{ - // ... -} - - -read, err := client.Update(ctx, id, payload, pool.DefaultUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/constants.go deleted file mode 100644 index c97ea29f6b48..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/constants.go +++ /dev/null @@ -1,930 +0,0 @@ -package pool - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AllocationState string - -const ( - AllocationStateResizing AllocationState = "Resizing" - AllocationStateSteady AllocationState = "Steady" - AllocationStateStopping AllocationState = "Stopping" -) - -func PossibleValuesForAllocationState() []string { - return []string{ - string(AllocationStateResizing), - string(AllocationStateSteady), - string(AllocationStateStopping), - } -} - -func (s *AllocationState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAllocationState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAllocationState(input string) (*AllocationState, error) { - vals := map[string]AllocationState{ - "resizing": AllocationStateResizing, - "steady": AllocationStateSteady, - "stopping": AllocationStateStopping, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AllocationState(input) - return &out, nil -} - -type AutoUserScope string - -const ( - AutoUserScopePool AutoUserScope = "Pool" - AutoUserScopeTask AutoUserScope = "Task" -) - -func PossibleValuesForAutoUserScope() []string { - return []string{ - string(AutoUserScopePool), - string(AutoUserScopeTask), - } -} - -func (s *AutoUserScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAutoUserScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAutoUserScope(input string) (*AutoUserScope, error) { - vals := map[string]AutoUserScope{ - "pool": AutoUserScopePool, - "task": AutoUserScopeTask, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AutoUserScope(input) - return &out, nil -} - -type CachingType string - -const ( - CachingTypeNone CachingType = "None" - CachingTypeReadOnly CachingType = "ReadOnly" - CachingTypeReadWrite CachingType = "ReadWrite" -) - -func PossibleValuesForCachingType() []string { - return []string{ - string(CachingTypeNone), - string(CachingTypeReadOnly), - string(CachingTypeReadWrite), - } -} - -func (s *CachingType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCachingType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCachingType(input string) (*CachingType, error) { - vals := map[string]CachingType{ - "none": CachingTypeNone, - "readonly": CachingTypeReadOnly, - "readwrite": CachingTypeReadWrite, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CachingType(input) - return &out, nil -} - -type CertificateStoreLocation string - -const ( - CertificateStoreLocationCurrentUser CertificateStoreLocation = "CurrentUser" - CertificateStoreLocationLocalMachine CertificateStoreLocation = "LocalMachine" -) - -func PossibleValuesForCertificateStoreLocation() []string { - return []string{ - string(CertificateStoreLocationCurrentUser), - string(CertificateStoreLocationLocalMachine), - } -} - -func (s *CertificateStoreLocation) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCertificateStoreLocation(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCertificateStoreLocation(input string) (*CertificateStoreLocation, error) { - vals := map[string]CertificateStoreLocation{ - "currentuser": CertificateStoreLocationCurrentUser, - "localmachine": CertificateStoreLocationLocalMachine, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CertificateStoreLocation(input) - return &out, nil -} - -type CertificateVisibility string - -const ( - CertificateVisibilityRemoteUser CertificateVisibility = "RemoteUser" - CertificateVisibilityStartTask CertificateVisibility = "StartTask" - CertificateVisibilityTask CertificateVisibility = "Task" -) - -func PossibleValuesForCertificateVisibility() []string { - return []string{ - string(CertificateVisibilityRemoteUser), - string(CertificateVisibilityStartTask), - string(CertificateVisibilityTask), - } -} - -func (s *CertificateVisibility) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCertificateVisibility(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCertificateVisibility(input string) (*CertificateVisibility, error) { - vals := map[string]CertificateVisibility{ - "remoteuser": CertificateVisibilityRemoteUser, - "starttask": CertificateVisibilityStartTask, - "task": CertificateVisibilityTask, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CertificateVisibility(input) - return &out, nil -} - -type ComputeNodeDeallocationOption string - -const ( - ComputeNodeDeallocationOptionRequeue ComputeNodeDeallocationOption = "Requeue" - ComputeNodeDeallocationOptionRetainedData ComputeNodeDeallocationOption = "RetainedData" - ComputeNodeDeallocationOptionTaskCompletion ComputeNodeDeallocationOption = "TaskCompletion" - ComputeNodeDeallocationOptionTerminate ComputeNodeDeallocationOption = "Terminate" -) - -func PossibleValuesForComputeNodeDeallocationOption() []string { - return []string{ - string(ComputeNodeDeallocationOptionRequeue), - string(ComputeNodeDeallocationOptionRetainedData), - string(ComputeNodeDeallocationOptionTaskCompletion), - string(ComputeNodeDeallocationOptionTerminate), - } -} - -func (s *ComputeNodeDeallocationOption) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseComputeNodeDeallocationOption(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseComputeNodeDeallocationOption(input string) (*ComputeNodeDeallocationOption, error) { - vals := map[string]ComputeNodeDeallocationOption{ - "requeue": ComputeNodeDeallocationOptionRequeue, - "retaineddata": ComputeNodeDeallocationOptionRetainedData, - "taskcompletion": ComputeNodeDeallocationOptionTaskCompletion, - "terminate": ComputeNodeDeallocationOptionTerminate, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ComputeNodeDeallocationOption(input) - return &out, nil -} - -type ComputeNodeFillType string - -const ( - ComputeNodeFillTypePack ComputeNodeFillType = "Pack" - ComputeNodeFillTypeSpread ComputeNodeFillType = "Spread" -) - -func PossibleValuesForComputeNodeFillType() []string { - return []string{ - string(ComputeNodeFillTypePack), - string(ComputeNodeFillTypeSpread), - } -} - -func (s *ComputeNodeFillType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseComputeNodeFillType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseComputeNodeFillType(input string) (*ComputeNodeFillType, error) { - vals := map[string]ComputeNodeFillType{ - "pack": ComputeNodeFillTypePack, - "spread": ComputeNodeFillTypeSpread, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ComputeNodeFillType(input) - return &out, nil -} - -type ContainerType string - -const ( - ContainerTypeCriCompatible ContainerType = "CriCompatible" - ContainerTypeDockerCompatible ContainerType = "DockerCompatible" -) - -func PossibleValuesForContainerType() []string { - return []string{ - string(ContainerTypeCriCompatible), - string(ContainerTypeDockerCompatible), - } -} - -func (s *ContainerType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseContainerType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseContainerType(input string) (*ContainerType, error) { - vals := map[string]ContainerType{ - "cricompatible": ContainerTypeCriCompatible, - "dockercompatible": ContainerTypeDockerCompatible, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ContainerType(input) - return &out, nil -} - -type ContainerWorkingDirectory string - -const ( - ContainerWorkingDirectoryContainerImageDefault ContainerWorkingDirectory = "ContainerImageDefault" - ContainerWorkingDirectoryTaskWorkingDirectory ContainerWorkingDirectory = "TaskWorkingDirectory" -) - -func PossibleValuesForContainerWorkingDirectory() []string { - return []string{ - string(ContainerWorkingDirectoryContainerImageDefault), - string(ContainerWorkingDirectoryTaskWorkingDirectory), - } -} - -func (s *ContainerWorkingDirectory) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseContainerWorkingDirectory(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseContainerWorkingDirectory(input string) (*ContainerWorkingDirectory, error) { - vals := map[string]ContainerWorkingDirectory{ - "containerimagedefault": ContainerWorkingDirectoryContainerImageDefault, - "taskworkingdirectory": ContainerWorkingDirectoryTaskWorkingDirectory, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ContainerWorkingDirectory(input) - return &out, nil -} - -type DiffDiskPlacement string - -const ( - DiffDiskPlacementCacheDisk DiffDiskPlacement = "CacheDisk" -) - -func PossibleValuesForDiffDiskPlacement() []string { - return []string{ - string(DiffDiskPlacementCacheDisk), - } -} - -func (s *DiffDiskPlacement) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDiffDiskPlacement(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDiffDiskPlacement(input string) (*DiffDiskPlacement, error) { - vals := map[string]DiffDiskPlacement{ - "cachedisk": DiffDiskPlacementCacheDisk, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DiffDiskPlacement(input) - return &out, nil -} - -type DiskEncryptionTarget string - -const ( - DiskEncryptionTargetOsDisk DiskEncryptionTarget = "OsDisk" - DiskEncryptionTargetTemporaryDisk DiskEncryptionTarget = "TemporaryDisk" -) - -func PossibleValuesForDiskEncryptionTarget() []string { - return []string{ - string(DiskEncryptionTargetOsDisk), - string(DiskEncryptionTargetTemporaryDisk), - } -} - -func (s *DiskEncryptionTarget) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDiskEncryptionTarget(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDiskEncryptionTarget(input string) (*DiskEncryptionTarget, error) { - vals := map[string]DiskEncryptionTarget{ - "osdisk": DiskEncryptionTargetOsDisk, - "temporarydisk": DiskEncryptionTargetTemporaryDisk, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DiskEncryptionTarget(input) - return &out, nil -} - -type DynamicVNetAssignmentScope string - -const ( - DynamicVNetAssignmentScopeJob DynamicVNetAssignmentScope = "job" - DynamicVNetAssignmentScopeNone DynamicVNetAssignmentScope = "none" -) - -func PossibleValuesForDynamicVNetAssignmentScope() []string { - return []string{ - string(DynamicVNetAssignmentScopeJob), - string(DynamicVNetAssignmentScopeNone), - } -} - -func (s *DynamicVNetAssignmentScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDynamicVNetAssignmentScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDynamicVNetAssignmentScope(input string) (*DynamicVNetAssignmentScope, error) { - vals := map[string]DynamicVNetAssignmentScope{ - "job": DynamicVNetAssignmentScopeJob, - "none": DynamicVNetAssignmentScopeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DynamicVNetAssignmentScope(input) - return &out, nil -} - -type ElevationLevel string - -const ( - ElevationLevelAdmin ElevationLevel = "Admin" - ElevationLevelNonAdmin ElevationLevel = "NonAdmin" -) - -func PossibleValuesForElevationLevel() []string { - return []string{ - string(ElevationLevelAdmin), - string(ElevationLevelNonAdmin), - } -} - -func (s *ElevationLevel) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseElevationLevel(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseElevationLevel(input string) (*ElevationLevel, error) { - vals := map[string]ElevationLevel{ - "admin": ElevationLevelAdmin, - "nonadmin": ElevationLevelNonAdmin, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ElevationLevel(input) - return &out, nil -} - -type IPAddressProvisioningType string - -const ( - IPAddressProvisioningTypeBatchManaged IPAddressProvisioningType = "BatchManaged" - IPAddressProvisioningTypeNoPublicIPAddresses IPAddressProvisioningType = "NoPublicIPAddresses" - IPAddressProvisioningTypeUserManaged IPAddressProvisioningType = "UserManaged" -) - -func PossibleValuesForIPAddressProvisioningType() []string { - return []string{ - string(IPAddressProvisioningTypeBatchManaged), - string(IPAddressProvisioningTypeNoPublicIPAddresses), - string(IPAddressProvisioningTypeUserManaged), - } -} - -func (s *IPAddressProvisioningType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAddressProvisioningType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAddressProvisioningType(input string) (*IPAddressProvisioningType, error) { - vals := map[string]IPAddressProvisioningType{ - "batchmanaged": IPAddressProvisioningTypeBatchManaged, - "nopublicipaddresses": IPAddressProvisioningTypeNoPublicIPAddresses, - "usermanaged": IPAddressProvisioningTypeUserManaged, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAddressProvisioningType(input) - return &out, nil -} - -type InboundEndpointProtocol string - -const ( - InboundEndpointProtocolTCP InboundEndpointProtocol = "TCP" - InboundEndpointProtocolUDP InboundEndpointProtocol = "UDP" -) - -func PossibleValuesForInboundEndpointProtocol() []string { - return []string{ - string(InboundEndpointProtocolTCP), - string(InboundEndpointProtocolUDP), - } -} - -func (s *InboundEndpointProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseInboundEndpointProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseInboundEndpointProtocol(input string) (*InboundEndpointProtocol, error) { - vals := map[string]InboundEndpointProtocol{ - "tcp": InboundEndpointProtocolTCP, - "udp": InboundEndpointProtocolUDP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := InboundEndpointProtocol(input) - return &out, nil -} - -type InterNodeCommunicationState string - -const ( - InterNodeCommunicationStateDisabled InterNodeCommunicationState = "Disabled" - InterNodeCommunicationStateEnabled InterNodeCommunicationState = "Enabled" -) - -func PossibleValuesForInterNodeCommunicationState() []string { - return []string{ - string(InterNodeCommunicationStateDisabled), - string(InterNodeCommunicationStateEnabled), - } -} - -func (s *InterNodeCommunicationState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseInterNodeCommunicationState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseInterNodeCommunicationState(input string) (*InterNodeCommunicationState, error) { - vals := map[string]InterNodeCommunicationState{ - "disabled": InterNodeCommunicationStateDisabled, - "enabled": InterNodeCommunicationStateEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := InterNodeCommunicationState(input) - return &out, nil -} - -type LoginMode string - -const ( - LoginModeBatch LoginMode = "Batch" - LoginModeInteractive LoginMode = "Interactive" -) - -func PossibleValuesForLoginMode() []string { - return []string{ - string(LoginModeBatch), - string(LoginModeInteractive), - } -} - -func (s *LoginMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoginMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoginMode(input string) (*LoginMode, error) { - vals := map[string]LoginMode{ - "batch": LoginModeBatch, - "interactive": LoginModeInteractive, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoginMode(input) - return &out, nil -} - -type NetworkSecurityGroupRuleAccess string - -const ( - NetworkSecurityGroupRuleAccessAllow NetworkSecurityGroupRuleAccess = "Allow" - NetworkSecurityGroupRuleAccessDeny NetworkSecurityGroupRuleAccess = "Deny" -) - -func PossibleValuesForNetworkSecurityGroupRuleAccess() []string { - return []string{ - string(NetworkSecurityGroupRuleAccessAllow), - string(NetworkSecurityGroupRuleAccessDeny), - } -} - -func (s *NetworkSecurityGroupRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkSecurityGroupRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkSecurityGroupRuleAccess(input string) (*NetworkSecurityGroupRuleAccess, error) { - vals := map[string]NetworkSecurityGroupRuleAccess{ - "allow": NetworkSecurityGroupRuleAccessAllow, - "deny": NetworkSecurityGroupRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkSecurityGroupRuleAccess(input) - return &out, nil -} - -type NodeCommunicationMode string - -const ( - NodeCommunicationModeClassic NodeCommunicationMode = "Classic" - NodeCommunicationModeDefault NodeCommunicationMode = "Default" - NodeCommunicationModeSimplified NodeCommunicationMode = "Simplified" -) - -func PossibleValuesForNodeCommunicationMode() []string { - return []string{ - string(NodeCommunicationModeClassic), - string(NodeCommunicationModeDefault), - string(NodeCommunicationModeSimplified), - } -} - -func (s *NodeCommunicationMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNodeCommunicationMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNodeCommunicationMode(input string) (*NodeCommunicationMode, error) { - vals := map[string]NodeCommunicationMode{ - "classic": NodeCommunicationModeClassic, - "default": NodeCommunicationModeDefault, - "simplified": NodeCommunicationModeSimplified, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NodeCommunicationMode(input) - return &out, nil -} - -type NodePlacementPolicyType string - -const ( - NodePlacementPolicyTypeRegional NodePlacementPolicyType = "Regional" - NodePlacementPolicyTypeZonal NodePlacementPolicyType = "Zonal" -) - -func PossibleValuesForNodePlacementPolicyType() []string { - return []string{ - string(NodePlacementPolicyTypeRegional), - string(NodePlacementPolicyTypeZonal), - } -} - -func (s *NodePlacementPolicyType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNodePlacementPolicyType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNodePlacementPolicyType(input string) (*NodePlacementPolicyType, error) { - vals := map[string]NodePlacementPolicyType{ - "regional": NodePlacementPolicyTypeRegional, - "zonal": NodePlacementPolicyTypeZonal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NodePlacementPolicyType(input) - return &out, nil -} - -type PoolProvisioningState string - -const ( - PoolProvisioningStateDeleting PoolProvisioningState = "Deleting" - PoolProvisioningStateSucceeded PoolProvisioningState = "Succeeded" -) - -func PossibleValuesForPoolProvisioningState() []string { - return []string{ - string(PoolProvisioningStateDeleting), - string(PoolProvisioningStateSucceeded), - } -} - -func (s *PoolProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePoolProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePoolProvisioningState(input string) (*PoolProvisioningState, error) { - vals := map[string]PoolProvisioningState{ - "deleting": PoolProvisioningStateDeleting, - "succeeded": PoolProvisioningStateSucceeded, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PoolProvisioningState(input) - return &out, nil -} - -type StorageAccountType string - -const ( - StorageAccountTypePremiumLRS StorageAccountType = "Premium_LRS" - StorageAccountTypeStandardLRS StorageAccountType = "Standard_LRS" -) - -func PossibleValuesForStorageAccountType() []string { - return []string{ - string(StorageAccountTypePremiumLRS), - string(StorageAccountTypeStandardLRS), - } -} - -func (s *StorageAccountType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseStorageAccountType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseStorageAccountType(input string) (*StorageAccountType, error) { - vals := map[string]StorageAccountType{ - "premium_lrs": StorageAccountTypePremiumLRS, - "standard_lrs": StorageAccountTypeStandardLRS, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := StorageAccountType(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_cloudserviceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_cloudserviceconfiguration.go deleted file mode 100644 index 79a293aaf9c1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_cloudserviceconfiguration.go +++ /dev/null @@ -1,9 +0,0 @@ -package pool - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CloudServiceConfiguration struct { - OsFamily string `json:"osFamily"` - OsVersion *string `json:"osVersion,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_imagereference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_imagereference.go deleted file mode 100644 index a0f7751f75f7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_imagereference.go +++ /dev/null @@ -1,12 +0,0 @@ -package pool - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ImageReference struct { - Id *string `json:"id,omitempty"` - Offer *string `json:"offer,omitempty"` - Publisher *string `json:"publisher,omitempty"` - Sku *string `json:"sku,omitempty"` - Version *string `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_osdisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_osdisk.go deleted file mode 100644 index 684e70a79be7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_osdisk.go +++ /dev/null @@ -1,8 +0,0 @@ -package pool - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type OSDisk struct { - EphemeralOSDiskSettings *DiffDiskSettings `json:"ephemeralOSDiskSettings,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_taskcontainersettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_taskcontainersettings.go deleted file mode 100644 index 36ba77fadaef..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_taskcontainersettings.go +++ /dev/null @@ -1,11 +0,0 @@ -package pool - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type TaskContainerSettings struct { - ContainerRunOptions *string `json:"containerRunOptions,omitempty"` - ImageName string `json:"imageName"` - Registry *ContainerRegistry `json:"registry,omitempty"` - WorkingDirectory *ContainerWorkingDirectory `json:"workingDirectory,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/version.go deleted file mode 100644 index 343057716e5e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package pool - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/pool/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/README.md new file mode 100644 index 000000000000..10d77d1dc07b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/README.md @@ -0,0 +1,111 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application` Documentation + +The `application` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2024-07-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application" +``` + + +### Client Initialization + +```go +client := application.NewApplicationClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApplicationClient.Create` + +```go +ctx := context.TODO() +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "applicationName") + +payload := application.Application{ + // ... +} + + +read, err := client.Create(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationClient.Delete` + +```go +ctx := context.TODO() +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "applicationName") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationClient.Get` + +```go +ctx := context.TODO() +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "applicationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationClient.List` + +```go +ctx := context.TODO() +id := application.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +// alternatively `client.List(ctx, id, application.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, application.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationClient.Update` + +```go +ctx := context.TODO() +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "applicationName") + +payload := application.Application{ + // ... +} + + +read, err := client.Update(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_application.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/id_application.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_application.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/id_application.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/id_batchaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_batchaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/id_batchaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/model_application.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/model_application.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/model_application.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/model_application.go index 0d89670c2c76..734409092170 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/model_application.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/model_application.go @@ -8,5 +8,6 @@ type Application struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ApplicationProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/model_applicationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/model_applicationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/model_applicationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/model_applicationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/version.go new file mode 100644 index 000000000000..f8ca37f98e2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application/version.go @@ -0,0 +1,10 @@ +package application + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-07-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/application/2024-07-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/README.md new file mode 100644 index 000000000000..151c29d0f5df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/README.md @@ -0,0 +1,191 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount` Documentation + +The `batchaccount` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2024-07-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount" +``` + + +### Client Initialization + +```go +client := batchaccount.NewBatchAccountClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BatchAccountClient.Create` + +```go +ctx := context.TODO() +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +payload := batchaccount.BatchAccountCreateParameters{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BatchAccountClient.Delete` + +```go +ctx := context.TODO() +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `BatchAccountClient.Get` + +```go +ctx := context.TODO() +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BatchAccountClient.GetKeys` + +```go +ctx := context.TODO() +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +read, err := client.GetKeys(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BatchAccountClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BatchAccountClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BatchAccountClient.ListOutboundNetworkDependenciesEndpoints` + +```go +ctx := context.TODO() +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +// alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination +items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BatchAccountClient.RegenerateKey` + +```go +ctx := context.TODO() +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +payload := batchaccount.BatchAccountRegenerateKeyParameters{ + // ... +} + + +read, err := client.RegenerateKey(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BatchAccountClient.SynchronizeAutoStorageKeys` + +```go +ctx := context.TODO() +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +read, err := client.SynchronizeAutoStorageKeys(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BatchAccountClient.Update` + +```go +ctx := context.TODO() +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +payload := batchaccount.BatchAccountUpdateParameters{ + // ... +} + + +read, err := client.Update(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/constants.go new file mode 100644 index 000000000000..ec62934bc939 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/constants.go @@ -0,0 +1,494 @@ +package batchaccount + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountKeyType string + +const ( + AccountKeyTypePrimary AccountKeyType = "Primary" + AccountKeyTypeSecondary AccountKeyType = "Secondary" +) + +func PossibleValuesForAccountKeyType() []string { + return []string{ + string(AccountKeyTypePrimary), + string(AccountKeyTypeSecondary), + } +} + +func (s *AccountKeyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAccountKeyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAccountKeyType(input string) (*AccountKeyType, error) { + vals := map[string]AccountKeyType{ + "primary": AccountKeyTypePrimary, + "secondary": AccountKeyTypeSecondary, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AccountKeyType(input) + return &out, nil +} + +type AuthenticationMode string + +const ( + AuthenticationModeAAD AuthenticationMode = "AAD" + AuthenticationModeSharedKey AuthenticationMode = "SharedKey" + AuthenticationModeTaskAuthenticationToken AuthenticationMode = "TaskAuthenticationToken" +) + +func PossibleValuesForAuthenticationMode() []string { + return []string{ + string(AuthenticationModeAAD), + string(AuthenticationModeSharedKey), + string(AuthenticationModeTaskAuthenticationToken), + } +} + +func (s *AuthenticationMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAuthenticationMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAuthenticationMode(input string) (*AuthenticationMode, error) { + vals := map[string]AuthenticationMode{ + "aad": AuthenticationModeAAD, + "sharedkey": AuthenticationModeSharedKey, + "taskauthenticationtoken": AuthenticationModeTaskAuthenticationToken, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AuthenticationMode(input) + return &out, nil +} + +type AutoStorageAuthenticationMode string + +const ( + AutoStorageAuthenticationModeBatchAccountManagedIdentity AutoStorageAuthenticationMode = "BatchAccountManagedIdentity" + AutoStorageAuthenticationModeStorageKeys AutoStorageAuthenticationMode = "StorageKeys" +) + +func PossibleValuesForAutoStorageAuthenticationMode() []string { + return []string{ + string(AutoStorageAuthenticationModeBatchAccountManagedIdentity), + string(AutoStorageAuthenticationModeStorageKeys), + } +} + +func (s *AutoStorageAuthenticationMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAutoStorageAuthenticationMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAutoStorageAuthenticationMode(input string) (*AutoStorageAuthenticationMode, error) { + vals := map[string]AutoStorageAuthenticationMode{ + "batchaccountmanagedidentity": AutoStorageAuthenticationModeBatchAccountManagedIdentity, + "storagekeys": AutoStorageAuthenticationModeStorageKeys, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AutoStorageAuthenticationMode(input) + return &out, nil +} + +type EndpointAccessDefaultAction string + +const ( + EndpointAccessDefaultActionAllow EndpointAccessDefaultAction = "Allow" + EndpointAccessDefaultActionDeny EndpointAccessDefaultAction = "Deny" +) + +func PossibleValuesForEndpointAccessDefaultAction() []string { + return []string{ + string(EndpointAccessDefaultActionAllow), + string(EndpointAccessDefaultActionDeny), + } +} + +func (s *EndpointAccessDefaultAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEndpointAccessDefaultAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEndpointAccessDefaultAction(input string) (*EndpointAccessDefaultAction, error) { + vals := map[string]EndpointAccessDefaultAction{ + "allow": EndpointAccessDefaultActionAllow, + "deny": EndpointAccessDefaultActionDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EndpointAccessDefaultAction(input) + return &out, nil +} + +type IPRuleAction string + +const ( + IPRuleActionAllow IPRuleAction = "Allow" +) + +func PossibleValuesForIPRuleAction() []string { + return []string{ + string(IPRuleActionAllow), + } +} + +func (s *IPRuleAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPRuleAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPRuleAction(input string) (*IPRuleAction, error) { + vals := map[string]IPRuleAction{ + "allow": IPRuleActionAllow, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPRuleAction(input) + return &out, nil +} + +type KeySource string + +const ( + KeySourceMicrosoftPointBatch KeySource = "Microsoft.Batch" + KeySourceMicrosoftPointKeyVault KeySource = "Microsoft.KeyVault" +) + +func PossibleValuesForKeySource() []string { + return []string{ + string(KeySourceMicrosoftPointBatch), + string(KeySourceMicrosoftPointKeyVault), + } +} + +func (s *KeySource) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseKeySource(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseKeySource(input string) (*KeySource, error) { + vals := map[string]KeySource{ + "microsoft.batch": KeySourceMicrosoftPointBatch, + "microsoft.keyvault": KeySourceMicrosoftPointKeyVault, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := KeySource(input) + return &out, nil +} + +type PoolAllocationMode string + +const ( + PoolAllocationModeBatchService PoolAllocationMode = "BatchService" + PoolAllocationModeUserSubscription PoolAllocationMode = "UserSubscription" +) + +func PossibleValuesForPoolAllocationMode() []string { + return []string{ + string(PoolAllocationModeBatchService), + string(PoolAllocationModeUserSubscription), + } +} + +func (s *PoolAllocationMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePoolAllocationMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePoolAllocationMode(input string) (*PoolAllocationMode, error) { + vals := map[string]PoolAllocationMode{ + "batchservice": PoolAllocationModeBatchService, + "usersubscription": PoolAllocationModeUserSubscription, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PoolAllocationMode(input) + return &out, nil +} + +type PrivateEndpointConnectionProvisioningState string + +const ( + PrivateEndpointConnectionProvisioningStateCancelled PrivateEndpointConnectionProvisioningState = "Cancelled" + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" + PrivateEndpointConnectionProvisioningStateUpdating PrivateEndpointConnectionProvisioningState = "Updating" +) + +func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string { + return []string{ + string(PrivateEndpointConnectionProvisioningStateCancelled), + string(PrivateEndpointConnectionProvisioningStateCreating), + string(PrivateEndpointConnectionProvisioningStateDeleting), + string(PrivateEndpointConnectionProvisioningStateFailed), + string(PrivateEndpointConnectionProvisioningStateSucceeded), + string(PrivateEndpointConnectionProvisioningStateUpdating), + } +} + +func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointConnectionProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointConnectionProvisioningState(input string) (*PrivateEndpointConnectionProvisioningState, error) { + vals := map[string]PrivateEndpointConnectionProvisioningState{ + "cancelled": PrivateEndpointConnectionProvisioningStateCancelled, + "creating": PrivateEndpointConnectionProvisioningStateCreating, + "deleting": PrivateEndpointConnectionProvisioningStateDeleting, + "failed": PrivateEndpointConnectionProvisioningStateFailed, + "succeeded": PrivateEndpointConnectionProvisioningStateSucceeded, + "updating": PrivateEndpointConnectionProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointConnectionProvisioningState(input) + return &out, nil +} + +type PrivateLinkServiceConnectionStatus string + +const ( + PrivateLinkServiceConnectionStatusApproved PrivateLinkServiceConnectionStatus = "Approved" + PrivateLinkServiceConnectionStatusDisconnected PrivateLinkServiceConnectionStatus = "Disconnected" + PrivateLinkServiceConnectionStatusPending PrivateLinkServiceConnectionStatus = "Pending" + PrivateLinkServiceConnectionStatusRejected PrivateLinkServiceConnectionStatus = "Rejected" +) + +func PossibleValuesForPrivateLinkServiceConnectionStatus() []string { + return []string{ + string(PrivateLinkServiceConnectionStatusApproved), + string(PrivateLinkServiceConnectionStatusDisconnected), + string(PrivateLinkServiceConnectionStatusPending), + string(PrivateLinkServiceConnectionStatusRejected), + } +} + +func (s *PrivateLinkServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateLinkServiceConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateLinkServiceConnectionStatus(input string) (*PrivateLinkServiceConnectionStatus, error) { + vals := map[string]PrivateLinkServiceConnectionStatus{ + "approved": PrivateLinkServiceConnectionStatusApproved, + "disconnected": PrivateLinkServiceConnectionStatusDisconnected, + "pending": PrivateLinkServiceConnectionStatusPending, + "rejected": PrivateLinkServiceConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateLinkServiceConnectionStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateCancelled ProvisioningState = "Cancelled" + ProvisioningStateCreating ProvisioningState = "Creating" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateInvalid ProvisioningState = "Invalid" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateCancelled), + string(ProvisioningStateCreating), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateInvalid), + string(ProvisioningStateSucceeded), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "cancelled": ProvisioningStateCancelled, + "creating": ProvisioningStateCreating, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "invalid": ProvisioningStateInvalid, + "succeeded": ProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicNetworkAccessType string + +const ( + PublicNetworkAccessTypeDisabled PublicNetworkAccessType = "Disabled" + PublicNetworkAccessTypeEnabled PublicNetworkAccessType = "Enabled" + PublicNetworkAccessTypeSecuredByPerimeter PublicNetworkAccessType = "SecuredByPerimeter" +) + +func PossibleValuesForPublicNetworkAccessType() []string { + return []string{ + string(PublicNetworkAccessTypeDisabled), + string(PublicNetworkAccessTypeEnabled), + string(PublicNetworkAccessTypeSecuredByPerimeter), + } +} + +func (s *PublicNetworkAccessType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicNetworkAccessType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicNetworkAccessType(input string) (*PublicNetworkAccessType, error) { + vals := map[string]PublicNetworkAccessType{ + "disabled": PublicNetworkAccessTypeDisabled, + "enabled": PublicNetworkAccessTypeEnabled, + "securedbyperimeter": PublicNetworkAccessTypeSecuredByPerimeter, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicNetworkAccessType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/id_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/id_batchaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/id_batchaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/id_batchaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_getkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_getkeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_getkeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_getkeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_listoutboundnetworkdependenciesendpoints.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_regeneratekey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_regeneratekey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_regeneratekey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_synchronizeautostoragekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_synchronizeautostoragekeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_synchronizeautostoragekeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_synchronizeautostoragekeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_autostoragebaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_autostoragebaseproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_autostoragebaseproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_autostoragebaseproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_autostorageproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_autostorageproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_autostorageproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_autostorageproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountcreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountcreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountcreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountcreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountcreateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountcreateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountcreateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountcreateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountkeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountkeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountkeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountregeneratekeyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountregeneratekeyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountregeneratekeyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountregeneratekeyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_batchaccountupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_batchaccountupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_computenodeidentityreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_computenodeidentityreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_computenodeidentityreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_computenodeidentityreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_encryptionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_encryptionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_encryptionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_encryptionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_endpointaccessprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_endpointaccessprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_endpointaccessprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_endpointaccessprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_endpointdependency.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_endpointdependency.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_endpointdependency.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_endpointdependency.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_endpointdetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_endpointdetail.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_endpointdetail.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_endpointdetail.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_iprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_iprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_iprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_keyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_keyvaultproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_keyvaultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_keyvaultproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_keyvaultreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_keyvaultreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_keyvaultreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_keyvaultreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_networkprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_networkprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_networkprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_outboundenvironmentendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_outboundenvironmentendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_outboundenvironmentendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_outboundenvironmentendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privateendpointconnection.go new file mode 100644 index 000000000000..994c4cace5c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privateendpointconnection.go @@ -0,0 +1,13 @@ +package batchaccount + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_virtualmachinefamilycorequota.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_virtualmachinefamilycorequota.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/model_virtualmachinefamilycorequota.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/model_virtualmachinefamilycorequota.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/version.go new file mode 100644 index 000000000000..a7371e21dd6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount/version.go @@ -0,0 +1,10 @@ +package batchaccount + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-07-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/batchaccount/2024-07-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/README.md new file mode 100644 index 000000000000..1516a1744b0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/README.md @@ -0,0 +1,123 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate` Documentation + +The `certificate` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2024-07-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate" +``` + + +### Client Initialization + +```go +client := certificate.NewCertificateClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CertificateClient.CancelDeletion` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") + +read, err := client.CancelDeletion(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.Create` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") + +payload := certificate.CertificateCreateOrUpdateParameters{ + // ... +} + + +read, err := client.Create(ctx, id, payload, certificate.DefaultCreateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.Delete` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CertificateClient.Get` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateClient.ListByBatchAccount` + +```go +ctx := context.TODO() +id := certificate.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +// alternatively `client.ListByBatchAccount(ctx, id, certificate.DefaultListByBatchAccountOperationOptions())` can be used to do batched pagination +items, err := client.ListByBatchAccountComplete(ctx, id, certificate.DefaultListByBatchAccountOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CertificateClient.Update` + +```go +ctx := context.TODO() +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "certificateName") + +payload := certificate.CertificateCreateOrUpdateParameters{ + // ... +} + + +read, err := client.Update(ctx, id, payload, certificate.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/id_batchaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_batchaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/id_batchaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/id_certificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_certificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/id_certificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_canceldeletion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_canceldeletion.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_canceldeletion.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_canceldeletion.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_listbybatchaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_listbybatchaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificate.go new file mode 100644 index 000000000000..ee1f31291b2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificate.go @@ -0,0 +1,13 @@ +package certificate + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Certificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CertificateProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificatecreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificatecreateorupdateparameters.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificatecreateorupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificatecreateorupdateparameters.go index 1d50bc058ad7..3411f6bc34e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificatecreateorupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificatecreateorupdateparameters.go @@ -8,5 +8,6 @@ type CertificateCreateOrUpdateParameters struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *CertificateCreateOrUpdateProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificatecreateorupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificatecreateorupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificatecreateorupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificatecreateorupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_certificateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_certificateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_deletecertificateerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_deletecertificateerror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/model_deletecertificateerror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/model_deletecertificateerror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/version.go new file mode 100644 index 000000000000..6344cfd32467 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate/version.go @@ -0,0 +1,10 @@ +package certificate + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-07-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/certificate/2024-07-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/README.md new file mode 100644 index 000000000000..9c1038cd3b3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/README.md @@ -0,0 +1,139 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool` Documentation + +The `pool` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2024-07-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool" +``` + + +### Client Initialization + +```go +client := pool.NewPoolClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PoolClient.Create` + +```go +ctx := context.TODO() +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") + +payload := pool.Pool{ + // ... +} + + +read, err := client.Create(ctx, id, payload, pool.DefaultCreateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PoolClient.Delete` + +```go +ctx := context.TODO() +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PoolClient.DisableAutoScale` + +```go +ctx := context.TODO() +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") + +read, err := client.DisableAutoScale(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PoolClient.Get` + +```go +ctx := context.TODO() +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PoolClient.ListByBatchAccount` + +```go +ctx := context.TODO() +id := pool.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName") + +// alternatively `client.ListByBatchAccount(ctx, id, pool.DefaultListByBatchAccountOperationOptions())` can be used to do batched pagination +items, err := client.ListByBatchAccountComplete(ctx, id, pool.DefaultListByBatchAccountOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PoolClient.StopResize` + +```go +ctx := context.TODO() +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") + +read, err := client.StopResize(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PoolClient.Update` + +```go +ctx := context.TODO() +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountName", "poolName") + +payload := pool.Pool{ + // ... +} + + +read, err := client.Update(ctx, id, payload, pool.DefaultUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/constants.go new file mode 100644 index 000000000000..eb3c1295df01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/constants.go @@ -0,0 +1,1112 @@ +package pool + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AllocationState string + +const ( + AllocationStateResizing AllocationState = "Resizing" + AllocationStateSteady AllocationState = "Steady" + AllocationStateStopping AllocationState = "Stopping" +) + +func PossibleValuesForAllocationState() []string { + return []string{ + string(AllocationStateResizing), + string(AllocationStateSteady), + string(AllocationStateStopping), + } +} + +func (s *AllocationState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAllocationState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAllocationState(input string) (*AllocationState, error) { + vals := map[string]AllocationState{ + "resizing": AllocationStateResizing, + "steady": AllocationStateSteady, + "stopping": AllocationStateStopping, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AllocationState(input) + return &out, nil +} + +type AutoUserScope string + +const ( + AutoUserScopePool AutoUserScope = "Pool" + AutoUserScopeTask AutoUserScope = "Task" +) + +func PossibleValuesForAutoUserScope() []string { + return []string{ + string(AutoUserScopePool), + string(AutoUserScopeTask), + } +} + +func (s *AutoUserScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAutoUserScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAutoUserScope(input string) (*AutoUserScope, error) { + vals := map[string]AutoUserScope{ + "pool": AutoUserScopePool, + "task": AutoUserScopeTask, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AutoUserScope(input) + return &out, nil +} + +type CachingType string + +const ( + CachingTypeNone CachingType = "None" + CachingTypeReadOnly CachingType = "ReadOnly" + CachingTypeReadWrite CachingType = "ReadWrite" +) + +func PossibleValuesForCachingType() []string { + return []string{ + string(CachingTypeNone), + string(CachingTypeReadOnly), + string(CachingTypeReadWrite), + } +} + +func (s *CachingType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCachingType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCachingType(input string) (*CachingType, error) { + vals := map[string]CachingType{ + "none": CachingTypeNone, + "readonly": CachingTypeReadOnly, + "readwrite": CachingTypeReadWrite, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CachingType(input) + return &out, nil +} + +type CertificateStoreLocation string + +const ( + CertificateStoreLocationCurrentUser CertificateStoreLocation = "CurrentUser" + CertificateStoreLocationLocalMachine CertificateStoreLocation = "LocalMachine" +) + +func PossibleValuesForCertificateStoreLocation() []string { + return []string{ + string(CertificateStoreLocationCurrentUser), + string(CertificateStoreLocationLocalMachine), + } +} + +func (s *CertificateStoreLocation) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCertificateStoreLocation(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCertificateStoreLocation(input string) (*CertificateStoreLocation, error) { + vals := map[string]CertificateStoreLocation{ + "currentuser": CertificateStoreLocationCurrentUser, + "localmachine": CertificateStoreLocationLocalMachine, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CertificateStoreLocation(input) + return &out, nil +} + +type CertificateVisibility string + +const ( + CertificateVisibilityRemoteUser CertificateVisibility = "RemoteUser" + CertificateVisibilityStartTask CertificateVisibility = "StartTask" + CertificateVisibilityTask CertificateVisibility = "Task" +) + +func PossibleValuesForCertificateVisibility() []string { + return []string{ + string(CertificateVisibilityRemoteUser), + string(CertificateVisibilityStartTask), + string(CertificateVisibilityTask), + } +} + +func (s *CertificateVisibility) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCertificateVisibility(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCertificateVisibility(input string) (*CertificateVisibility, error) { + vals := map[string]CertificateVisibility{ + "remoteuser": CertificateVisibilityRemoteUser, + "starttask": CertificateVisibilityStartTask, + "task": CertificateVisibilityTask, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CertificateVisibility(input) + return &out, nil +} + +type ComputeNodeDeallocationOption string + +const ( + ComputeNodeDeallocationOptionRequeue ComputeNodeDeallocationOption = "Requeue" + ComputeNodeDeallocationOptionRetainedData ComputeNodeDeallocationOption = "RetainedData" + ComputeNodeDeallocationOptionTaskCompletion ComputeNodeDeallocationOption = "TaskCompletion" + ComputeNodeDeallocationOptionTerminate ComputeNodeDeallocationOption = "Terminate" +) + +func PossibleValuesForComputeNodeDeallocationOption() []string { + return []string{ + string(ComputeNodeDeallocationOptionRequeue), + string(ComputeNodeDeallocationOptionRetainedData), + string(ComputeNodeDeallocationOptionTaskCompletion), + string(ComputeNodeDeallocationOptionTerminate), + } +} + +func (s *ComputeNodeDeallocationOption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseComputeNodeDeallocationOption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseComputeNodeDeallocationOption(input string) (*ComputeNodeDeallocationOption, error) { + vals := map[string]ComputeNodeDeallocationOption{ + "requeue": ComputeNodeDeallocationOptionRequeue, + "retaineddata": ComputeNodeDeallocationOptionRetainedData, + "taskcompletion": ComputeNodeDeallocationOptionTaskCompletion, + "terminate": ComputeNodeDeallocationOptionTerminate, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ComputeNodeDeallocationOption(input) + return &out, nil +} + +type ComputeNodeFillType string + +const ( + ComputeNodeFillTypePack ComputeNodeFillType = "Pack" + ComputeNodeFillTypeSpread ComputeNodeFillType = "Spread" +) + +func PossibleValuesForComputeNodeFillType() []string { + return []string{ + string(ComputeNodeFillTypePack), + string(ComputeNodeFillTypeSpread), + } +} + +func (s *ComputeNodeFillType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseComputeNodeFillType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseComputeNodeFillType(input string) (*ComputeNodeFillType, error) { + vals := map[string]ComputeNodeFillType{ + "pack": ComputeNodeFillTypePack, + "spread": ComputeNodeFillTypeSpread, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ComputeNodeFillType(input) + return &out, nil +} + +type ContainerHostDataPath string + +const ( + ContainerHostDataPathApplications ContainerHostDataPath = "Applications" + ContainerHostDataPathJobPrep ContainerHostDataPath = "JobPrep" + ContainerHostDataPathShared ContainerHostDataPath = "Shared" + ContainerHostDataPathStartup ContainerHostDataPath = "Startup" + ContainerHostDataPathTask ContainerHostDataPath = "Task" + ContainerHostDataPathVfsMounts ContainerHostDataPath = "VfsMounts" +) + +func PossibleValuesForContainerHostDataPath() []string { + return []string{ + string(ContainerHostDataPathApplications), + string(ContainerHostDataPathJobPrep), + string(ContainerHostDataPathShared), + string(ContainerHostDataPathStartup), + string(ContainerHostDataPathTask), + string(ContainerHostDataPathVfsMounts), + } +} + +func (s *ContainerHostDataPath) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerHostDataPath(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseContainerHostDataPath(input string) (*ContainerHostDataPath, error) { + vals := map[string]ContainerHostDataPath{ + "applications": ContainerHostDataPathApplications, + "jobprep": ContainerHostDataPathJobPrep, + "shared": ContainerHostDataPathShared, + "startup": ContainerHostDataPathStartup, + "task": ContainerHostDataPathTask, + "vfsmounts": ContainerHostDataPathVfsMounts, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ContainerHostDataPath(input) + return &out, nil +} + +type ContainerType string + +const ( + ContainerTypeCriCompatible ContainerType = "CriCompatible" + ContainerTypeDockerCompatible ContainerType = "DockerCompatible" +) + +func PossibleValuesForContainerType() []string { + return []string{ + string(ContainerTypeCriCompatible), + string(ContainerTypeDockerCompatible), + } +} + +func (s *ContainerType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseContainerType(input string) (*ContainerType, error) { + vals := map[string]ContainerType{ + "cricompatible": ContainerTypeCriCompatible, + "dockercompatible": ContainerTypeDockerCompatible, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ContainerType(input) + return &out, nil +} + +type ContainerWorkingDirectory string + +const ( + ContainerWorkingDirectoryContainerImageDefault ContainerWorkingDirectory = "ContainerImageDefault" + ContainerWorkingDirectoryTaskWorkingDirectory ContainerWorkingDirectory = "TaskWorkingDirectory" +) + +func PossibleValuesForContainerWorkingDirectory() []string { + return []string{ + string(ContainerWorkingDirectoryContainerImageDefault), + string(ContainerWorkingDirectoryTaskWorkingDirectory), + } +} + +func (s *ContainerWorkingDirectory) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseContainerWorkingDirectory(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseContainerWorkingDirectory(input string) (*ContainerWorkingDirectory, error) { + vals := map[string]ContainerWorkingDirectory{ + "containerimagedefault": ContainerWorkingDirectoryContainerImageDefault, + "taskworkingdirectory": ContainerWorkingDirectoryTaskWorkingDirectory, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ContainerWorkingDirectory(input) + return &out, nil +} + +type DiffDiskPlacement string + +const ( + DiffDiskPlacementCacheDisk DiffDiskPlacement = "CacheDisk" +) + +func PossibleValuesForDiffDiskPlacement() []string { + return []string{ + string(DiffDiskPlacementCacheDisk), + } +} + +func (s *DiffDiskPlacement) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDiffDiskPlacement(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDiffDiskPlacement(input string) (*DiffDiskPlacement, error) { + vals := map[string]DiffDiskPlacement{ + "cachedisk": DiffDiskPlacementCacheDisk, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DiffDiskPlacement(input) + return &out, nil +} + +type DiskEncryptionTarget string + +const ( + DiskEncryptionTargetOsDisk DiskEncryptionTarget = "OsDisk" + DiskEncryptionTargetTemporaryDisk DiskEncryptionTarget = "TemporaryDisk" +) + +func PossibleValuesForDiskEncryptionTarget() []string { + return []string{ + string(DiskEncryptionTargetOsDisk), + string(DiskEncryptionTargetTemporaryDisk), + } +} + +func (s *DiskEncryptionTarget) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDiskEncryptionTarget(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDiskEncryptionTarget(input string) (*DiskEncryptionTarget, error) { + vals := map[string]DiskEncryptionTarget{ + "osdisk": DiskEncryptionTargetOsDisk, + "temporarydisk": DiskEncryptionTargetTemporaryDisk, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DiskEncryptionTarget(input) + return &out, nil +} + +type DynamicVNetAssignmentScope string + +const ( + DynamicVNetAssignmentScopeJob DynamicVNetAssignmentScope = "job" + DynamicVNetAssignmentScopeNone DynamicVNetAssignmentScope = "none" +) + +func PossibleValuesForDynamicVNetAssignmentScope() []string { + return []string{ + string(DynamicVNetAssignmentScopeJob), + string(DynamicVNetAssignmentScopeNone), + } +} + +func (s *DynamicVNetAssignmentScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDynamicVNetAssignmentScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDynamicVNetAssignmentScope(input string) (*DynamicVNetAssignmentScope, error) { + vals := map[string]DynamicVNetAssignmentScope{ + "job": DynamicVNetAssignmentScopeJob, + "none": DynamicVNetAssignmentScopeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DynamicVNetAssignmentScope(input) + return &out, nil +} + +type ElevationLevel string + +const ( + ElevationLevelAdmin ElevationLevel = "Admin" + ElevationLevelNonAdmin ElevationLevel = "NonAdmin" +) + +func PossibleValuesForElevationLevel() []string { + return []string{ + string(ElevationLevelAdmin), + string(ElevationLevelNonAdmin), + } +} + +func (s *ElevationLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseElevationLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseElevationLevel(input string) (*ElevationLevel, error) { + vals := map[string]ElevationLevel{ + "admin": ElevationLevelAdmin, + "nonadmin": ElevationLevelNonAdmin, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ElevationLevel(input) + return &out, nil +} + +type IPAddressProvisioningType string + +const ( + IPAddressProvisioningTypeBatchManaged IPAddressProvisioningType = "BatchManaged" + IPAddressProvisioningTypeNoPublicIPAddresses IPAddressProvisioningType = "NoPublicIPAddresses" + IPAddressProvisioningTypeUserManaged IPAddressProvisioningType = "UserManaged" +) + +func PossibleValuesForIPAddressProvisioningType() []string { + return []string{ + string(IPAddressProvisioningTypeBatchManaged), + string(IPAddressProvisioningTypeNoPublicIPAddresses), + string(IPAddressProvisioningTypeUserManaged), + } +} + +func (s *IPAddressProvisioningType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAddressProvisioningType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAddressProvisioningType(input string) (*IPAddressProvisioningType, error) { + vals := map[string]IPAddressProvisioningType{ + "batchmanaged": IPAddressProvisioningTypeBatchManaged, + "nopublicipaddresses": IPAddressProvisioningTypeNoPublicIPAddresses, + "usermanaged": IPAddressProvisioningTypeUserManaged, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAddressProvisioningType(input) + return &out, nil +} + +type InboundEndpointProtocol string + +const ( + InboundEndpointProtocolTCP InboundEndpointProtocol = "TCP" + InboundEndpointProtocolUDP InboundEndpointProtocol = "UDP" +) + +func PossibleValuesForInboundEndpointProtocol() []string { + return []string{ + string(InboundEndpointProtocolTCP), + string(InboundEndpointProtocolUDP), + } +} + +func (s *InboundEndpointProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseInboundEndpointProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseInboundEndpointProtocol(input string) (*InboundEndpointProtocol, error) { + vals := map[string]InboundEndpointProtocol{ + "tcp": InboundEndpointProtocolTCP, + "udp": InboundEndpointProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := InboundEndpointProtocol(input) + return &out, nil +} + +type InterNodeCommunicationState string + +const ( + InterNodeCommunicationStateDisabled InterNodeCommunicationState = "Disabled" + InterNodeCommunicationStateEnabled InterNodeCommunicationState = "Enabled" +) + +func PossibleValuesForInterNodeCommunicationState() []string { + return []string{ + string(InterNodeCommunicationStateDisabled), + string(InterNodeCommunicationStateEnabled), + } +} + +func (s *InterNodeCommunicationState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseInterNodeCommunicationState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseInterNodeCommunicationState(input string) (*InterNodeCommunicationState, error) { + vals := map[string]InterNodeCommunicationState{ + "disabled": InterNodeCommunicationStateDisabled, + "enabled": InterNodeCommunicationStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := InterNodeCommunicationState(input) + return &out, nil +} + +type LoginMode string + +const ( + LoginModeBatch LoginMode = "Batch" + LoginModeInteractive LoginMode = "Interactive" +) + +func PossibleValuesForLoginMode() []string { + return []string{ + string(LoginModeBatch), + string(LoginModeInteractive), + } +} + +func (s *LoginMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoginMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoginMode(input string) (*LoginMode, error) { + vals := map[string]LoginMode{ + "batch": LoginModeBatch, + "interactive": LoginModeInteractive, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoginMode(input) + return &out, nil +} + +type NetworkSecurityGroupRuleAccess string + +const ( + NetworkSecurityGroupRuleAccessAllow NetworkSecurityGroupRuleAccess = "Allow" + NetworkSecurityGroupRuleAccessDeny NetworkSecurityGroupRuleAccess = "Deny" +) + +func PossibleValuesForNetworkSecurityGroupRuleAccess() []string { + return []string{ + string(NetworkSecurityGroupRuleAccessAllow), + string(NetworkSecurityGroupRuleAccessDeny), + } +} + +func (s *NetworkSecurityGroupRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkSecurityGroupRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkSecurityGroupRuleAccess(input string) (*NetworkSecurityGroupRuleAccess, error) { + vals := map[string]NetworkSecurityGroupRuleAccess{ + "allow": NetworkSecurityGroupRuleAccessAllow, + "deny": NetworkSecurityGroupRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkSecurityGroupRuleAccess(input) + return &out, nil +} + +type NodeCommunicationMode string + +const ( + NodeCommunicationModeClassic NodeCommunicationMode = "Classic" + NodeCommunicationModeDefault NodeCommunicationMode = "Default" + NodeCommunicationModeSimplified NodeCommunicationMode = "Simplified" +) + +func PossibleValuesForNodeCommunicationMode() []string { + return []string{ + string(NodeCommunicationModeClassic), + string(NodeCommunicationModeDefault), + string(NodeCommunicationModeSimplified), + } +} + +func (s *NodeCommunicationMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNodeCommunicationMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNodeCommunicationMode(input string) (*NodeCommunicationMode, error) { + vals := map[string]NodeCommunicationMode{ + "classic": NodeCommunicationModeClassic, + "default": NodeCommunicationModeDefault, + "simplified": NodeCommunicationModeSimplified, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NodeCommunicationMode(input) + return &out, nil +} + +type NodePlacementPolicyType string + +const ( + NodePlacementPolicyTypeRegional NodePlacementPolicyType = "Regional" + NodePlacementPolicyTypeZonal NodePlacementPolicyType = "Zonal" +) + +func PossibleValuesForNodePlacementPolicyType() []string { + return []string{ + string(NodePlacementPolicyTypeRegional), + string(NodePlacementPolicyTypeZonal), + } +} + +func (s *NodePlacementPolicyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNodePlacementPolicyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNodePlacementPolicyType(input string) (*NodePlacementPolicyType, error) { + vals := map[string]NodePlacementPolicyType{ + "regional": NodePlacementPolicyTypeRegional, + "zonal": NodePlacementPolicyTypeZonal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NodePlacementPolicyType(input) + return &out, nil +} + +type PoolProvisioningState string + +const ( + PoolProvisioningStateDeleting PoolProvisioningState = "Deleting" + PoolProvisioningStateSucceeded PoolProvisioningState = "Succeeded" +) + +func PossibleValuesForPoolProvisioningState() []string { + return []string{ + string(PoolProvisioningStateDeleting), + string(PoolProvisioningStateSucceeded), + } +} + +func (s *PoolProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePoolProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePoolProvisioningState(input string) (*PoolProvisioningState, error) { + vals := map[string]PoolProvisioningState{ + "deleting": PoolProvisioningStateDeleting, + "succeeded": PoolProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PoolProvisioningState(input) + return &out, nil +} + +type SecurityEncryptionTypes string + +const ( + SecurityEncryptionTypesNonPersistedTPM SecurityEncryptionTypes = "NonPersistedTPM" + SecurityEncryptionTypesVMGuestStateOnly SecurityEncryptionTypes = "VMGuestStateOnly" +) + +func PossibleValuesForSecurityEncryptionTypes() []string { + return []string{ + string(SecurityEncryptionTypesNonPersistedTPM), + string(SecurityEncryptionTypesVMGuestStateOnly), + } +} + +func (s *SecurityEncryptionTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityEncryptionTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityEncryptionTypes(input string) (*SecurityEncryptionTypes, error) { + vals := map[string]SecurityEncryptionTypes{ + "nonpersistedtpm": SecurityEncryptionTypesNonPersistedTPM, + "vmgueststateonly": SecurityEncryptionTypesVMGuestStateOnly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityEncryptionTypes(input) + return &out, nil +} + +type SecurityTypes string + +const ( + SecurityTypesConfidentialVM SecurityTypes = "confidentialVM" + SecurityTypesTrustedLaunch SecurityTypes = "trustedLaunch" +) + +func PossibleValuesForSecurityTypes() []string { + return []string{ + string(SecurityTypesConfidentialVM), + string(SecurityTypesTrustedLaunch), + } +} + +func (s *SecurityTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityTypes(input string) (*SecurityTypes, error) { + vals := map[string]SecurityTypes{ + "confidentialvm": SecurityTypesConfidentialVM, + "trustedlaunch": SecurityTypesTrustedLaunch, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityTypes(input) + return &out, nil +} + +type StorageAccountType string + +const ( + StorageAccountTypePremiumLRS StorageAccountType = "Premium_LRS" + StorageAccountTypeStandardLRS StorageAccountType = "Standard_LRS" + StorageAccountTypeStandardSSDLRS StorageAccountType = "StandardSSD_LRS" +) + +func PossibleValuesForStorageAccountType() []string { + return []string{ + string(StorageAccountTypePremiumLRS), + string(StorageAccountTypeStandardLRS), + string(StorageAccountTypeStandardSSDLRS), + } +} + +func (s *StorageAccountType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStorageAccountType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStorageAccountType(input string) (*StorageAccountType, error) { + vals := map[string]StorageAccountType{ + "premium_lrs": StorageAccountTypePremiumLRS, + "standard_lrs": StorageAccountTypeStandardLRS, + "standardssd_lrs": StorageAccountTypeStandardSSDLRS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := StorageAccountType(input) + return &out, nil +} + +type UpgradeMode string + +const ( + UpgradeModeAutomatic UpgradeMode = "automatic" + UpgradeModeManual UpgradeMode = "manual" + UpgradeModeRolling UpgradeMode = "rolling" +) + +func PossibleValuesForUpgradeMode() []string { + return []string{ + string(UpgradeModeAutomatic), + string(UpgradeModeManual), + string(UpgradeModeRolling), + } +} + +func (s *UpgradeMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUpgradeMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUpgradeMode(input string) (*UpgradeMode, error) { + vals := map[string]UpgradeMode{ + "automatic": UpgradeModeAutomatic, + "manual": UpgradeModeManual, + "rolling": UpgradeModeRolling, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UpgradeMode(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/id_batchaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_batchaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/id_batchaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_pool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/id_pool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_pool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/id_pool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_disableautoscale.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_disableautoscale.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_disableautoscale.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_disableautoscale.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_listbybatchaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_listbybatchaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_stopresize.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_stopresize.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_stopresize.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_stopresize.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_applicationpackagereference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_applicationpackagereference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_applicationpackagereference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_applicationpackagereference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_automaticosupgradepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_automaticosupgradepolicy.go new file mode 100644 index 000000000000..87cd11301896 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_automaticosupgradepolicy.go @@ -0,0 +1,11 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutomaticOSUpgradePolicy struct { + DisableAutomaticRollback *bool `json:"disableAutomaticRollback,omitempty"` + EnableAutomaticOSUpgrade *bool `json:"enableAutomaticOSUpgrade,omitempty"` + OsRollingUpgradeDeferral *bool `json:"osRollingUpgradeDeferral,omitempty"` + UseRollingUpgradePolicy *bool `json:"useRollingUpgradePolicy,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_autoscalerun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_autoscalerun.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_autoscalerun.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_autoscalerun.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_autoscalerunerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_autoscalerunerror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_autoscalerunerror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_autoscalerunerror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_autoscalesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_autoscalesettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_autoscalesettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_autoscalesettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_autouserspecification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_autouserspecification.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_autouserspecification.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_autouserspecification.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_azureblobfilesystemconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_azureblobfilesystemconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_azureblobfilesystemconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_azureblobfilesystemconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_azurefileshareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_azurefileshareconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_azurefileshareconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_azurefileshareconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_certificatereference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_certificatereference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_certificatereference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_certificatereference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_cifsmountconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_cifsmountconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_cifsmountconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_cifsmountconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_computenodeidentityreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_computenodeidentityreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_computenodeidentityreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_computenodeidentityreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_containerconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_containerconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_containerconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_containerconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_containerhostbatchbindmountentry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_containerhostbatchbindmountentry.go new file mode 100644 index 000000000000..17836613eea7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_containerhostbatchbindmountentry.go @@ -0,0 +1,9 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ContainerHostBatchBindMountEntry struct { + IsReadOnly *bool `json:"isReadOnly,omitempty"` + Source *ContainerHostDataPath `json:"source,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_containerregistry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_containerregistry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_containerregistry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_containerregistry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_datadisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_datadisk.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_datadisk.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_datadisk.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_deploymentconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_deploymentconfiguration.go similarity index 75% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_deploymentconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_deploymentconfiguration.go index 281f83d139e9..8b159e23fe09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_deploymentconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_deploymentconfiguration.go @@ -4,6 +4,5 @@ package pool // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DeploymentConfiguration struct { - CloudServiceConfiguration *CloudServiceConfiguration `json:"cloudServiceConfiguration,omitempty"` VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_diffdisksettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_diffdisksettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_diffdisksettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_diffdisksettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_diskencryptionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_diskencryptionconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_diskencryptionconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_diskencryptionconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_environmentsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_environmentsetting.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_environmentsetting.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_environmentsetting.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_fixedscalesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_fixedscalesettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_fixedscalesettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_fixedscalesettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_imagereference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_imagereference.go new file mode 100644 index 000000000000..3a4ea821d41c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_imagereference.go @@ -0,0 +1,14 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImageReference struct { + CommunityGalleryImageId *string `json:"communityGalleryImageId,omitempty"` + Id *string `json:"id,omitempty"` + Offer *string `json:"offer,omitempty"` + Publisher *string `json:"publisher,omitempty"` + SharedGalleryImageId *string `json:"sharedGalleryImageId,omitempty"` + Sku *string `json:"sku,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_inboundnatpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_inboundnatpool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_inboundnatpool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_inboundnatpool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_linuxuserconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_linuxuserconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_linuxuserconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_linuxuserconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_manageddisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_manageddisk.go new file mode 100644 index 000000000000..b4af15282c8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_manageddisk.go @@ -0,0 +1,9 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedDisk struct { + SecurityProfile *VMDiskSecurityProfile `json:"securityProfile,omitempty"` + StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_metadataitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_metadataitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_metadataitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_metadataitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_mountconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_mountconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_mountconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_mountconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_networkconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_networkconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_networkconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_networkconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_networksecuritygrouprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_networksecuritygrouprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_networksecuritygrouprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_networksecuritygrouprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_nfsmountconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_nfsmountconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_nfsmountconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_nfsmountconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_nodeplacementconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_nodeplacementconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_nodeplacementconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_nodeplacementconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_osdisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_osdisk.go new file mode 100644 index 000000000000..a51976a2015a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_osdisk.go @@ -0,0 +1,12 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OSDisk struct { + Caching *CachingType `json:"caching,omitempty"` + DiskSizeGB *int64 `json:"diskSizeGB,omitempty"` + EphemeralOSDiskSettings *DiffDiskSettings `json:"ephemeralOSDiskSettings,omitempty"` + ManagedDisk *ManagedDisk `json:"managedDisk,omitempty"` + WriteAcceleratorEnabled *bool `json:"writeAcceleratorEnabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_pool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_pool.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_pool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_pool.go index 99a23f134df7..ca9de248c6a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_pool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_pool.go @@ -13,5 +13,6 @@ type Pool struct { Identity *identity.UserAssignedMap `json:"identity,omitempty"` Name *string `json:"name,omitempty"` Properties *PoolProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_poolendpointconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_poolendpointconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_poolendpointconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_poolendpointconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_poolproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_poolproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_poolproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_poolproperties.go index f888eb99a064..31bed5fb1c9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_poolproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_poolproperties.go @@ -30,11 +30,13 @@ type PoolProperties struct { ProvisioningState *PoolProvisioningState `json:"provisioningState,omitempty"` ProvisioningStateTransitionTime *string `json:"provisioningStateTransitionTime,omitempty"` ResizeOperationStatus *ResizeOperationStatus `json:"resizeOperationStatus,omitempty"` + ResourceTags *map[string]string `json:"resourceTags,omitempty"` ScaleSettings *ScaleSettings `json:"scaleSettings,omitempty"` StartTask *StartTask `json:"startTask,omitempty"` TargetNodeCommunicationMode *NodeCommunicationMode `json:"targetNodeCommunicationMode,omitempty"` TaskSchedulingPolicy *TaskSchedulingPolicy `json:"taskSchedulingPolicy,omitempty"` TaskSlotsPerNode *int64 `json:"taskSlotsPerNode,omitempty"` + UpgradePolicy *UpgradePolicy `json:"upgradePolicy,omitempty"` UserAccounts *[]UserAccount `json:"userAccounts,omitempty"` VMSize *string `json:"vmSize,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_publicipaddressconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_publicipaddressconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_publicipaddressconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_publicipaddressconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_resizeerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_resizeerror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_resizeerror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_resizeerror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_resizeoperationstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_resizeoperationstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_resizeoperationstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_resizeoperationstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_resourcefile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_resourcefile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_resourcefile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_resourcefile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_rollingupgradepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_rollingupgradepolicy.go new file mode 100644 index 000000000000..e8e4ad8d4fac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_rollingupgradepolicy.go @@ -0,0 +1,14 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RollingUpgradePolicy struct { + EnableCrossZoneUpgrade *bool `json:"enableCrossZoneUpgrade,omitempty"` + MaxBatchInstancePercent *int64 `json:"maxBatchInstancePercent,omitempty"` + MaxUnhealthyInstancePercent *int64 `json:"maxUnhealthyInstancePercent,omitempty"` + MaxUnhealthyUpgradedInstancePercent *int64 `json:"maxUnhealthyUpgradedInstancePercent,omitempty"` + PauseTimeBetweenBatches *string `json:"pauseTimeBetweenBatches,omitempty"` + PrioritizeUnhealthyInstances *bool `json:"prioritizeUnhealthyInstances,omitempty"` + RollbackFailedInstancesOnPolicyBreach *bool `json:"rollbackFailedInstancesOnPolicyBreach,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_scalesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_scalesettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_scalesettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_scalesettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_securityprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_securityprofile.go new file mode 100644 index 000000000000..c3f6631223fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_securityprofile.go @@ -0,0 +1,10 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityProfile struct { + EncryptionAtHost *bool `json:"encryptionAtHost,omitempty"` + SecurityType *SecurityTypes `json:"securityType,omitempty"` + UefiSettings *UefiSettings `json:"uefiSettings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_serviceartifactreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_serviceartifactreference.go new file mode 100644 index 000000000000..ce21152df9d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_serviceartifactreference.go @@ -0,0 +1,8 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceArtifactReference struct { + Id string `json:"id"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_starttask.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_starttask.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_starttask.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_starttask.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_taskcontainersettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_taskcontainersettings.go new file mode 100644 index 000000000000..ade200de6195 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_taskcontainersettings.go @@ -0,0 +1,12 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TaskContainerSettings struct { + ContainerHostBatchBindMounts *[]ContainerHostBatchBindMountEntry `json:"containerHostBatchBindMounts,omitempty"` + ContainerRunOptions *string `json:"containerRunOptions,omitempty"` + ImageName string `json:"imageName"` + Registry *ContainerRegistry `json:"registry,omitempty"` + WorkingDirectory *ContainerWorkingDirectory `json:"workingDirectory,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_taskschedulingpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_taskschedulingpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_taskschedulingpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_taskschedulingpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_uefisettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_uefisettings.go new file mode 100644 index 000000000000..fd6d6836bac5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_uefisettings.go @@ -0,0 +1,9 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UefiSettings struct { + SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"` + VTpmEnabled *bool `json:"vTpmEnabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_upgradepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_upgradepolicy.go new file mode 100644 index 000000000000..67e90bfc5d51 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_upgradepolicy.go @@ -0,0 +1,10 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpgradePolicy struct { + AutomaticOSUpgradePolicy *AutomaticOSUpgradePolicy `json:"automaticOSUpgradePolicy,omitempty"` + Mode UpgradeMode `json:"mode"` + RollingUpgradePolicy *RollingUpgradePolicy `json:"rollingUpgradePolicy,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_useraccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_useraccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_useraccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_useraccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_useridentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_useridentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_useridentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_useridentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_virtualmachineconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_virtualmachineconfiguration.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_virtualmachineconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_virtualmachineconfiguration.go index 400299687e95..eb6ddfadac16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_virtualmachineconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_virtualmachineconfiguration.go @@ -13,5 +13,7 @@ type VirtualMachineConfiguration struct { NodeAgentSkuId string `json:"nodeAgentSkuId"` NodePlacementConfiguration *NodePlacementConfiguration `json:"nodePlacementConfiguration,omitempty"` OsDisk *OSDisk `json:"osDisk,omitempty"` + SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` + ServiceArtifactReference *ServiceArtifactReference `json:"serviceArtifactReference,omitempty"` WindowsConfiguration *WindowsConfiguration `json:"windowsConfiguration,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_vmdisksecurityprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_vmdisksecurityprofile.go new file mode 100644 index 000000000000..d3f93c78ff64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_vmdisksecurityprofile.go @@ -0,0 +1,8 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMDiskSecurityProfile struct { + SecurityEncryptionType *SecurityEncryptionTypes `json:"securityEncryptionType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_vmextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_vmextension.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_vmextension.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_vmextension.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_windowsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_windowsconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_windowsconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_windowsconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_windowsuserconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_windowsuserconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/model_windowsuserconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/model_windowsuserconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/version.go new file mode 100644 index 000000000000..3207a41aa775 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool/version.go @@ -0,0 +1,10 @@ +package pool + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-07-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/pool/2024-07-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/README.md new file mode 100644 index 000000000000..20a2cc90ad88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/README.md @@ -0,0 +1,103 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles` Documentation + +The `certificateprofiles` SDK allows for interaction with Azure Resource Manager `codesigning` (API Version `2024-09-30-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles" +``` + + +### Client Initialization + +```go +client := certificateprofiles.NewCertificateProfilesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CertificateProfilesClient.Create` + +```go +ctx := context.TODO() +id := certificateprofiles.NewCertificateProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName", "certificateProfileName") + +payload := certificateprofiles.CertificateProfile{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CertificateProfilesClient.Delete` + +```go +ctx := context.TODO() +id := certificateprofiles.NewCertificateProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName", "certificateProfileName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CertificateProfilesClient.Get` + +```go +ctx := context.TODO() +id := certificateprofiles.NewCertificateProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName", "certificateProfileName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CertificateProfilesClient.ListByCodeSigningAccount` + +```go +ctx := context.TODO() +id := certificateprofiles.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName") + +// alternatively `client.ListByCodeSigningAccount(ctx, id)` can be used to do batched pagination +items, err := client.ListByCodeSigningAccountComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CertificateProfilesClient.RevokeCertificate` + +```go +ctx := context.TODO() +id := certificateprofiles.NewCertificateProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName", "certificateProfileName") + +payload := certificateprofiles.RevokeCertificate{ + // ... +} + + +read, err := client.RevokeCertificate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/client.go new file mode 100644 index 000000000000..e559a6f92422 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/client.go @@ -0,0 +1,26 @@ +package certificateprofiles + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CertificateProfilesClient struct { + Client *resourcemanager.Client +} + +func NewCertificateProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateProfilesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "certificateprofiles", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating CertificateProfilesClient: %+v", err) + } + + return &CertificateProfilesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/constants.go new file mode 100644 index 000000000000..e3191e196a96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/constants.go @@ -0,0 +1,245 @@ +package certificateprofiles + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CertificateProfileStatus string + +const ( + CertificateProfileStatusActive CertificateProfileStatus = "Active" + CertificateProfileStatusDisabled CertificateProfileStatus = "Disabled" + CertificateProfileStatusSuspended CertificateProfileStatus = "Suspended" +) + +func PossibleValuesForCertificateProfileStatus() []string { + return []string{ + string(CertificateProfileStatusActive), + string(CertificateProfileStatusDisabled), + string(CertificateProfileStatusSuspended), + } +} + +func (s *CertificateProfileStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCertificateProfileStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCertificateProfileStatus(input string) (*CertificateProfileStatus, error) { + vals := map[string]CertificateProfileStatus{ + "active": CertificateProfileStatusActive, + "disabled": CertificateProfileStatusDisabled, + "suspended": CertificateProfileStatusSuspended, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CertificateProfileStatus(input) + return &out, nil +} + +type CertificateStatus string + +const ( + CertificateStatusActive CertificateStatus = "Active" + CertificateStatusExpired CertificateStatus = "Expired" + CertificateStatusRevoked CertificateStatus = "Revoked" +) + +func PossibleValuesForCertificateStatus() []string { + return []string{ + string(CertificateStatusActive), + string(CertificateStatusExpired), + string(CertificateStatusRevoked), + } +} + +func (s *CertificateStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCertificateStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCertificateStatus(input string) (*CertificateStatus, error) { + vals := map[string]CertificateStatus{ + "active": CertificateStatusActive, + "expired": CertificateStatusExpired, + "revoked": CertificateStatusRevoked, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CertificateStatus(input) + return &out, nil +} + +type ProfileType string + +const ( + ProfileTypePrivateTrust ProfileType = "PrivateTrust" + ProfileTypePrivateTrustCIPolicy ProfileType = "PrivateTrustCIPolicy" + ProfileTypePublicTrust ProfileType = "PublicTrust" + ProfileTypePublicTrustTest ProfileType = "PublicTrustTest" + ProfileTypeVBSEnclave ProfileType = "VBSEnclave" +) + +func PossibleValuesForProfileType() []string { + return []string{ + string(ProfileTypePrivateTrust), + string(ProfileTypePrivateTrustCIPolicy), + string(ProfileTypePublicTrust), + string(ProfileTypePublicTrustTest), + string(ProfileTypeVBSEnclave), + } +} + +func (s *ProfileType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProfileType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProfileType(input string) (*ProfileType, error) { + vals := map[string]ProfileType{ + "privatetrust": ProfileTypePrivateTrust, + "privatetrustcipolicy": ProfileTypePrivateTrustCIPolicy, + "publictrust": ProfileTypePublicTrust, + "publictrusttest": ProfileTypePublicTrustTest, + "vbsenclave": ProfileTypeVBSEnclave, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProfileType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateAccepted ProvisioningState = "Accepted" + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateAccepted), + string(ProvisioningStateCanceled), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "accepted": ProvisioningStateAccepted, + "canceled": ProvisioningStateCanceled, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type RevocationStatus string + +const ( + RevocationStatusFailed RevocationStatus = "Failed" + RevocationStatusInProgress RevocationStatus = "InProgress" + RevocationStatusSucceeded RevocationStatus = "Succeeded" +) + +func PossibleValuesForRevocationStatus() []string { + return []string{ + string(RevocationStatusFailed), + string(RevocationStatusInProgress), + string(RevocationStatusSucceeded), + } +} + +func (s *RevocationStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRevocationStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRevocationStatus(input string) (*RevocationStatus, error) { + vals := map[string]RevocationStatus{ + "failed": RevocationStatusFailed, + "inprogress": RevocationStatusInProgress, + "succeeded": RevocationStatusSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RevocationStatus(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/id_certificateprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/id_certificateprofile.go new file mode 100644 index 000000000000..dbf303fd6f40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/id_certificateprofile.go @@ -0,0 +1,139 @@ +package certificateprofiles + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&CertificateProfileId{}) +} + +var _ resourceids.ResourceId = &CertificateProfileId{} + +// CertificateProfileId is a struct representing the Resource ID for a Certificate Profile +type CertificateProfileId struct { + SubscriptionId string + ResourceGroupName string + CodeSigningAccountName string + CertificateProfileName string +} + +// NewCertificateProfileID returns a new CertificateProfileId struct +func NewCertificateProfileID(subscriptionId string, resourceGroupName string, codeSigningAccountName string, certificateProfileName string) CertificateProfileId { + return CertificateProfileId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + CodeSigningAccountName: codeSigningAccountName, + CertificateProfileName: certificateProfileName, + } +} + +// ParseCertificateProfileID parses 'input' into a CertificateProfileId +func ParseCertificateProfileID(input string) (*CertificateProfileId, error) { + parser := resourceids.NewParserFromResourceIdType(&CertificateProfileId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CertificateProfileId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseCertificateProfileIDInsensitively parses 'input' case-insensitively into a CertificateProfileId +// note: this method should only be used for API response data and not user input +func ParseCertificateProfileIDInsensitively(input string) (*CertificateProfileId, error) { + parser := resourceids.NewParserFromResourceIdType(&CertificateProfileId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CertificateProfileId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *CertificateProfileId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.CodeSigningAccountName, ok = input.Parsed["codeSigningAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "codeSigningAccountName", input) + } + + if id.CertificateProfileName, ok = input.Parsed["certificateProfileName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "certificateProfileName", input) + } + + return nil +} + +// ValidateCertificateProfileID checks that 'input' can be parsed as a Certificate Profile ID +func ValidateCertificateProfileID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseCertificateProfileID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Certificate Profile ID +func (id CertificateProfileId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.CodeSigning/codeSigningAccounts/%s/certificateProfiles/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CodeSigningAccountName, id.CertificateProfileName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Certificate Profile ID +func (id CertificateProfileId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCodeSigning", "Microsoft.CodeSigning", "Microsoft.CodeSigning"), + resourceids.StaticSegment("staticCodeSigningAccounts", "codeSigningAccounts", "codeSigningAccounts"), + resourceids.UserSpecifiedSegment("codeSigningAccountName", "codeSigningAccountName"), + resourceids.StaticSegment("staticCertificateProfiles", "certificateProfiles", "certificateProfiles"), + resourceids.UserSpecifiedSegment("certificateProfileName", "certificateProfileName"), + } +} + +// String returns a human-readable description of this Certificate Profile ID +func (id CertificateProfileId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Code Signing Account Name: %q", id.CodeSigningAccountName), + fmt.Sprintf("Certificate Profile Name: %q", id.CertificateProfileName), + } + return fmt.Sprintf("Certificate Profile (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/id_codesigningaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/id_codesigningaccount.go new file mode 100644 index 000000000000..e62cccb18c10 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/id_codesigningaccount.go @@ -0,0 +1,130 @@ +package certificateprofiles + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&CodeSigningAccountId{}) +} + +var _ resourceids.ResourceId = &CodeSigningAccountId{} + +// CodeSigningAccountId is a struct representing the Resource ID for a Code Signing Account +type CodeSigningAccountId struct { + SubscriptionId string + ResourceGroupName string + CodeSigningAccountName string +} + +// NewCodeSigningAccountID returns a new CodeSigningAccountId struct +func NewCodeSigningAccountID(subscriptionId string, resourceGroupName string, codeSigningAccountName string) CodeSigningAccountId { + return CodeSigningAccountId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + CodeSigningAccountName: codeSigningAccountName, + } +} + +// ParseCodeSigningAccountID parses 'input' into a CodeSigningAccountId +func ParseCodeSigningAccountID(input string) (*CodeSigningAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&CodeSigningAccountId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CodeSigningAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseCodeSigningAccountIDInsensitively parses 'input' case-insensitively into a CodeSigningAccountId +// note: this method should only be used for API response data and not user input +func ParseCodeSigningAccountIDInsensitively(input string) (*CodeSigningAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&CodeSigningAccountId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CodeSigningAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *CodeSigningAccountId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.CodeSigningAccountName, ok = input.Parsed["codeSigningAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "codeSigningAccountName", input) + } + + return nil +} + +// ValidateCodeSigningAccountID checks that 'input' can be parsed as a Code Signing Account ID +func ValidateCodeSigningAccountID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseCodeSigningAccountID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Code Signing Account ID +func (id CodeSigningAccountId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.CodeSigning/codeSigningAccounts/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CodeSigningAccountName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Code Signing Account ID +func (id CodeSigningAccountId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCodeSigning", "Microsoft.CodeSigning", "Microsoft.CodeSigning"), + resourceids.StaticSegment("staticCodeSigningAccounts", "codeSigningAccounts", "codeSigningAccounts"), + resourceids.UserSpecifiedSegment("codeSigningAccountName", "codeSigningAccountName"), + } +} + +// String returns a human-readable description of this Code Signing Account ID +func (id CodeSigningAccountId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Code Signing Account Name: %q", id.CodeSigningAccountName), + } + return fmt.Sprintf("Code Signing Account (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_create.go new file mode 100644 index 000000000000..2cca3685e90c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_create.go @@ -0,0 +1,75 @@ +package certificateprofiles + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *CertificateProfile +} + +// Create ... +func (c CertificateProfilesClient) Create(ctx context.Context, id CertificateProfileId, input CertificateProfile) (result CreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateThenPoll performs Create then polls until it's completed +func (c CertificateProfilesClient) CreateThenPoll(ctx context.Context, id CertificateProfileId, input CertificateProfile) error { + result, err := c.Create(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Create: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Create: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_delete.go new file mode 100644 index 000000000000..058788bfe34c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_delete.go @@ -0,0 +1,70 @@ +package certificateprofiles + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c CertificateProfilesClient) Delete(ctx context.Context, id CertificateProfileId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c CertificateProfilesClient) DeleteThenPoll(ctx context.Context, id CertificateProfileId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_get.go new file mode 100644 index 000000000000..3f45ab39998f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_get.go @@ -0,0 +1,53 @@ +package certificateprofiles + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CertificateProfile +} + +// Get ... +func (c CertificateProfilesClient) Get(ctx context.Context, id CertificateProfileId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model CertificateProfile + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_listbycodesigningaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_listbycodesigningaccount.go new file mode 100644 index 000000000000..7c89789a7983 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_listbycodesigningaccount.go @@ -0,0 +1,105 @@ +package certificateprofiles + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByCodeSigningAccountOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CertificateProfile +} + +type ListByCodeSigningAccountCompleteResult struct { + LatestHttpResponse *http.Response + Items []CertificateProfile +} + +type ListByCodeSigningAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByCodeSigningAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByCodeSigningAccount ... +func (c CertificateProfilesClient) ListByCodeSigningAccount(ctx context.Context, id CodeSigningAccountId) (result ListByCodeSigningAccountOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByCodeSigningAccountCustomPager{}, + Path: fmt.Sprintf("%s/certificateProfiles", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CertificateProfile `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByCodeSigningAccountComplete retrieves all the results into a single object +func (c CertificateProfilesClient) ListByCodeSigningAccountComplete(ctx context.Context, id CodeSigningAccountId) (ListByCodeSigningAccountCompleteResult, error) { + return c.ListByCodeSigningAccountCompleteMatchingPredicate(ctx, id, CertificateProfileOperationPredicate{}) +} + +// ListByCodeSigningAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c CertificateProfilesClient) ListByCodeSigningAccountCompleteMatchingPredicate(ctx context.Context, id CodeSigningAccountId, predicate CertificateProfileOperationPredicate) (result ListByCodeSigningAccountCompleteResult, err error) { + items := make([]CertificateProfile, 0) + + resp, err := c.ListByCodeSigningAccount(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByCodeSigningAccountCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_revokecertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_revokecertificate.go new file mode 100644 index 000000000000..b24ef796a1d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/method_revokecertificate.go @@ -0,0 +1,51 @@ +package certificateprofiles + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RevokeCertificateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// RevokeCertificate ... +func (c CertificateProfilesClient) RevokeCertificate(ctx context.Context, id CertificateProfileId, input RevokeCertificate) (result RevokeCertificateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/revokeCertificate", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificate.go new file mode 100644 index 000000000000..ab301ee146e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificate.go @@ -0,0 +1,15 @@ +package certificateprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Certificate struct { + CreatedDate *string `json:"createdDate,omitempty"` + EnhancedKeyUsage *string `json:"enhancedKeyUsage,omitempty"` + ExpiryDate *string `json:"expiryDate,omitempty"` + Revocation *Revocation `json:"revocation,omitempty"` + SerialNumber *string `json:"serialNumber,omitempty"` + Status *CertificateStatus `json:"status,omitempty"` + SubjectName *string `json:"subjectName,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificateprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificateprofile.go new file mode 100644 index 000000000000..2e47218eb895 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificateprofile.go @@ -0,0 +1,16 @@ +package certificateprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CertificateProfile struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CertificateProfileProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificateprofileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificateprofileproperties.go new file mode 100644 index 000000000000..06390d807eba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_certificateprofileproperties.go @@ -0,0 +1,17 @@ +package certificateprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CertificateProfileProperties struct { + Certificates *[]Certificate `json:"certificates,omitempty"` + IdentityValidationId string `json:"identityValidationId"` + IncludeCity *bool `json:"includeCity,omitempty"` + IncludeCountry *bool `json:"includeCountry,omitempty"` + IncludePostalCode *bool `json:"includePostalCode,omitempty"` + IncludeState *bool `json:"includeState,omitempty"` + IncludeStreetAddress *bool `json:"includeStreetAddress,omitempty"` + ProfileType ProfileType `json:"profileType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Status *CertificateProfileStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_revocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_revocation.go new file mode 100644 index 000000000000..1cd45d74417a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_revocation.go @@ -0,0 +1,43 @@ +package certificateprofiles + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Revocation struct { + EffectiveAt *string `json:"effectiveAt,omitempty"` + FailureReason *string `json:"failureReason,omitempty"` + Reason *string `json:"reason,omitempty"` + Remarks *string `json:"remarks,omitempty"` + RequestedAt *string `json:"requestedAt,omitempty"` + Status *RevocationStatus `json:"status,omitempty"` +} + +func (o *Revocation) GetEffectiveAtAsTime() (*time.Time, error) { + if o.EffectiveAt == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EffectiveAt, "2006-01-02T15:04:05Z07:00") +} + +func (o *Revocation) SetEffectiveAtAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EffectiveAt = &formatted +} + +func (o *Revocation) GetRequestedAtAsTime() (*time.Time, error) { + if o.RequestedAt == nil { + return nil, nil + } + return dates.ParseAsFormat(o.RequestedAt, "2006-01-02T15:04:05Z07:00") +} + +func (o *Revocation) SetRequestedAtAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.RequestedAt = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_revokecertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_revokecertificate.go new file mode 100644 index 000000000000..b8bea125a782 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/model_revokecertificate.go @@ -0,0 +1,27 @@ +package certificateprofiles + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RevokeCertificate struct { + EffectiveAt string `json:"effectiveAt"` + Reason string `json:"reason"` + Remarks *string `json:"remarks,omitempty"` + SerialNumber string `json:"serialNumber"` + Thumbprint string `json:"thumbprint"` +} + +func (o *RevokeCertificate) GetEffectiveAtAsTime() (*time.Time, error) { + return dates.ParseAsFormat(&o.EffectiveAt, "2006-01-02T15:04:05Z07:00") +} + +func (o *RevokeCertificate) SetEffectiveAtAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EffectiveAt = formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/predicates.go new file mode 100644 index 000000000000..3044be14db45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/predicates.go @@ -0,0 +1,27 @@ +package certificateprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CertificateProfileOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p CertificateProfileOperationPredicate) Matches(input CertificateProfile) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/version.go new file mode 100644 index 000000000000..2f1d629a008b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles/version.go @@ -0,0 +1,10 @@ +package certificateprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-09-30-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/certificateprofiles/2024-09-30-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/client.go new file mode 100644 index 000000000000..868e723d9797 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/client.go @@ -0,0 +1,37 @@ +package v2024_09_30_preview + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +type Client struct { + CertificateProfiles *certificateprofiles.CertificateProfilesClient + CodeSigningAccounts *codesigningaccounts.CodeSigningAccountsClient +} + +func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { + certificateProfilesClient, err := certificateprofiles.NewCertificateProfilesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building CertificateProfiles client: %+v", err) + } + configureFunc(certificateProfilesClient.Client) + + codeSigningAccountsClient, err := codesigningaccounts.NewCodeSigningAccountsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building CodeSigningAccounts client: %+v", err) + } + configureFunc(codeSigningAccountsClient.Client) + + return &Client{ + CertificateProfiles: certificateProfilesClient, + CodeSigningAccounts: codeSigningAccountsClient, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/README.md new file mode 100644 index 000000000000..914bd4802c38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/README.md @@ -0,0 +1,138 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts` Documentation + +The `codesigningaccounts` SDK allows for interaction with Azure Resource Manager `codesigning` (API Version `2024-09-30-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts" +``` + + +### Client Initialization + +```go +client := codesigningaccounts.NewCodeSigningAccountsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CodeSigningAccountsClient.CheckNameAvailability` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := codesigningaccounts.CheckNameAvailability{ + // ... +} + + +read, err := client.CheckNameAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CodeSigningAccountsClient.Create` + +```go +ctx := context.TODO() +id := codesigningaccounts.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName") + +payload := codesigningaccounts.CodeSigningAccount{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CodeSigningAccountsClient.Delete` + +```go +ctx := context.TODO() +id := codesigningaccounts.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CodeSigningAccountsClient.Get` + +```go +ctx := context.TODO() +id := codesigningaccounts.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CodeSigningAccountsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CodeSigningAccountsClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CodeSigningAccountsClient.Update` + +```go +ctx := context.TODO() +id := codesigningaccounts.NewCodeSigningAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "codeSigningAccountName") + +payload := codesigningaccounts.CodeSigningAccountPatch{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/client.go new file mode 100644 index 000000000000..dabcf27b25c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/client.go @@ -0,0 +1,26 @@ +package codesigningaccounts + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CodeSigningAccountsClient struct { + Client *resourcemanager.Client +} + +func NewCodeSigningAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*CodeSigningAccountsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "codesigningaccounts", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating CodeSigningAccountsClient: %+v", err) + } + + return &CodeSigningAccountsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/constants.go new file mode 100644 index 000000000000..48cb12493f22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/constants.go @@ -0,0 +1,145 @@ +package codesigningaccounts + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NameUnavailabilityReason string + +const ( + NameUnavailabilityReasonAccountNameInvalid NameUnavailabilityReason = "AccountNameInvalid" + NameUnavailabilityReasonAlreadyExists NameUnavailabilityReason = "AlreadyExists" +) + +func PossibleValuesForNameUnavailabilityReason() []string { + return []string{ + string(NameUnavailabilityReasonAccountNameInvalid), + string(NameUnavailabilityReasonAlreadyExists), + } +} + +func (s *NameUnavailabilityReason) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNameUnavailabilityReason(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNameUnavailabilityReason(input string) (*NameUnavailabilityReason, error) { + vals := map[string]NameUnavailabilityReason{ + "accountnameinvalid": NameUnavailabilityReasonAccountNameInvalid, + "alreadyexists": NameUnavailabilityReasonAlreadyExists, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NameUnavailabilityReason(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateAccepted ProvisioningState = "Accepted" + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateAccepted), + string(ProvisioningStateCanceled), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "accepted": ProvisioningStateAccepted, + "canceled": ProvisioningStateCanceled, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SkuName string + +const ( + SkuNameBasic SkuName = "Basic" + SkuNamePremium SkuName = "Premium" +) + +func PossibleValuesForSkuName() []string { + return []string{ + string(SkuNameBasic), + string(SkuNamePremium), + } +} + +func (s *SkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuName(input string) (*SkuName, error) { + vals := map[string]SkuName{ + "basic": SkuNameBasic, + "premium": SkuNamePremium, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuName(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/id_codesigningaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/id_codesigningaccount.go new file mode 100644 index 000000000000..345dd35145c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/id_codesigningaccount.go @@ -0,0 +1,130 @@ +package codesigningaccounts + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&CodeSigningAccountId{}) +} + +var _ resourceids.ResourceId = &CodeSigningAccountId{} + +// CodeSigningAccountId is a struct representing the Resource ID for a Code Signing Account +type CodeSigningAccountId struct { + SubscriptionId string + ResourceGroupName string + CodeSigningAccountName string +} + +// NewCodeSigningAccountID returns a new CodeSigningAccountId struct +func NewCodeSigningAccountID(subscriptionId string, resourceGroupName string, codeSigningAccountName string) CodeSigningAccountId { + return CodeSigningAccountId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + CodeSigningAccountName: codeSigningAccountName, + } +} + +// ParseCodeSigningAccountID parses 'input' into a CodeSigningAccountId +func ParseCodeSigningAccountID(input string) (*CodeSigningAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&CodeSigningAccountId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CodeSigningAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseCodeSigningAccountIDInsensitively parses 'input' case-insensitively into a CodeSigningAccountId +// note: this method should only be used for API response data and not user input +func ParseCodeSigningAccountIDInsensitively(input string) (*CodeSigningAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&CodeSigningAccountId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CodeSigningAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *CodeSigningAccountId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.CodeSigningAccountName, ok = input.Parsed["codeSigningAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "codeSigningAccountName", input) + } + + return nil +} + +// ValidateCodeSigningAccountID checks that 'input' can be parsed as a Code Signing Account ID +func ValidateCodeSigningAccountID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseCodeSigningAccountID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Code Signing Account ID +func (id CodeSigningAccountId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.CodeSigning/codeSigningAccounts/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.CodeSigningAccountName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Code Signing Account ID +func (id CodeSigningAccountId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftCodeSigning", "Microsoft.CodeSigning", "Microsoft.CodeSigning"), + resourceids.StaticSegment("staticCodeSigningAccounts", "codeSigningAccounts", "codeSigningAccounts"), + resourceids.UserSpecifiedSegment("codeSigningAccountName", "codeSigningAccountName"), + } +} + +// String returns a human-readable description of this Code Signing Account ID +func (id CodeSigningAccountId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Code Signing Account Name: %q", id.CodeSigningAccountName), + } + return fmt.Sprintf("Code Signing Account (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_checknameavailability.go new file mode 100644 index 000000000000..2a800d7f6115 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_checknameavailability.go @@ -0,0 +1,59 @@ +package codesigningaccounts + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CheckNameAvailabilityResult +} + +// CheckNameAvailability ... +func (c CodeSigningAccountsClient) CheckNameAvailability(ctx context.Context, id commonids.SubscriptionId, input CheckNameAvailability) (result CheckNameAvailabilityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Microsoft.CodeSigning/checkNameAvailability", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model CheckNameAvailabilityResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_create.go new file mode 100644 index 000000000000..7d665533d73e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_create.go @@ -0,0 +1,75 @@ +package codesigningaccounts + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *CodeSigningAccount +} + +// Create ... +func (c CodeSigningAccountsClient) Create(ctx context.Context, id CodeSigningAccountId, input CodeSigningAccount) (result CreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateThenPoll performs Create then polls until it's completed +func (c CodeSigningAccountsClient) CreateThenPoll(ctx context.Context, id CodeSigningAccountId, input CodeSigningAccount) error { + result, err := c.Create(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Create: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Create: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_delete.go new file mode 100644 index 000000000000..88c742301081 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_delete.go @@ -0,0 +1,70 @@ +package codesigningaccounts + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c CodeSigningAccountsClient) Delete(ctx context.Context, id CodeSigningAccountId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c CodeSigningAccountsClient) DeleteThenPoll(ctx context.Context, id CodeSigningAccountId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_get.go new file mode 100644 index 000000000000..f56a3fc5585b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_get.go @@ -0,0 +1,53 @@ +package codesigningaccounts + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CodeSigningAccount +} + +// Get ... +func (c CodeSigningAccountsClient) Get(ctx context.Context, id CodeSigningAccountId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model CodeSigningAccount + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_listbyresourcegroup.go new file mode 100644 index 000000000000..dcbd40870936 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package codesigningaccounts + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CodeSigningAccount +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []CodeSigningAccount +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c CodeSigningAccountsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CodeSigning/codeSigningAccounts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CodeSigningAccount `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c CodeSigningAccountsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, CodeSigningAccountOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c CodeSigningAccountsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate CodeSigningAccountOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]CodeSigningAccount, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_listbysubscription.go new file mode 100644 index 000000000000..af7e03ceac42 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_listbysubscription.go @@ -0,0 +1,106 @@ +package codesigningaccounts + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]CodeSigningAccount +} + +type ListBySubscriptionCompleteResult struct { + LatestHttpResponse *http.Response + Items []CodeSigningAccount +} + +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListBySubscription ... +func (c CodeSigningAccountsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.CodeSigning/codeSigningAccounts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]CodeSigningAccount `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBySubscriptionComplete retrieves all the results into a single object +func (c CodeSigningAccountsClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, CodeSigningAccountOperationPredicate{}) +} + +// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c CodeSigningAccountsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate CodeSigningAccountOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { + items := make([]CodeSigningAccount, 0) + + resp, err := c.ListBySubscription(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBySubscriptionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_update.go new file mode 100644 index 000000000000..d1a3d395e082 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/method_update.go @@ -0,0 +1,75 @@ +package codesigningaccounts + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *CodeSigningAccount +} + +// Update ... +func (c CodeSigningAccountsClient) Update(ctx context.Context, id CodeSigningAccountId, input CodeSigningAccountPatch) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c CodeSigningAccountsClient) UpdateThenPoll(ctx context.Context, id CodeSigningAccountId, input CodeSigningAccountPatch) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_accountsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_accountsku.go new file mode 100644 index 000000000000..301eca38210d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_accountsku.go @@ -0,0 +1,8 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountSku struct { + Name SkuName `json:"name"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_accountskupatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_accountskupatch.go new file mode 100644 index 000000000000..0f09a8660b89 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_accountskupatch.go @@ -0,0 +1,8 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountSkuPatch struct { + Name *SkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_checknameavailability.go new file mode 100644 index 000000000000..f01c090ec694 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_checknameavailability.go @@ -0,0 +1,8 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailability struct { + Name string `json:"name"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_checknameavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_checknameavailabilityresult.go new file mode 100644 index 000000000000..9fee693bf9ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_checknameavailabilityresult.go @@ -0,0 +1,10 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityResult struct { + Message *string `json:"message,omitempty"` + NameAvailable *bool `json:"nameAvailable,omitempty"` + Reason *NameUnavailabilityReason `json:"reason,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccount.go new file mode 100644 index 000000000000..e21b9375fb82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccount.go @@ -0,0 +1,18 @@ +package codesigningaccounts + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CodeSigningAccount struct { + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *CodeSigningAccountProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountpatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountpatch.go new file mode 100644 index 000000000000..704c7e415880 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountpatch.go @@ -0,0 +1,9 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CodeSigningAccountPatch struct { + Properties *CodeSigningAccountPatchProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountpatchproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountpatchproperties.go new file mode 100644 index 000000000000..7ddd60275fe9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountpatchproperties.go @@ -0,0 +1,8 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CodeSigningAccountPatchProperties struct { + Sku *AccountSkuPatch `json:"sku,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountproperties.go new file mode 100644 index 000000000000..30d1d196fb96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/model_codesigningaccountproperties.go @@ -0,0 +1,10 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CodeSigningAccountProperties struct { + AccountUri *string `json:"accountUri,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Sku *AccountSku `json:"sku,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/predicates.go new file mode 100644 index 000000000000..cea979dacf80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/predicates.go @@ -0,0 +1,32 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CodeSigningAccountOperationPredicate struct { + Id *string + Location *string + Name *string + Type *string +} + +func (p CodeSigningAccountOperationPredicate) Matches(input CodeSigningAccount) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/version.go new file mode 100644 index 000000000000..4f6d304868e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts/version.go @@ -0,0 +1,10 @@ +package codesigningaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-09-30-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/codesigningaccounts/2024-09-30-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md deleted file mode 100644 index a7105880596f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md +++ /dev/null @@ -1,308 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts` Documentation - -The `cognitiveservicesaccounts` SDK allows for interaction with Azure Resource Manager `cognitive` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts" -``` - - -### Client Initialization - -```go -client := cognitiveservicesaccounts.NewCognitiveServicesAccountsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsCreate` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -payload := cognitiveservicesaccounts.Account{ - // ... -} - - -if err := client.AccountsCreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsDelete` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsGet` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -read, err := client.AccountsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsList` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.AccountsList(ctx, id)` can be used to do batched pagination -items, err := client.AccountsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.AccountsListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.AccountsListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsListKeys` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -read, err := client.AccountsListKeys(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsListModels` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -// alternatively `client.AccountsListModels(ctx, id)` can be used to do batched pagination -items, err := client.AccountsListModelsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsListSkus` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -read, err := client.AccountsListSkus(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsListUsages` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -// alternatively `client.AccountsListUsages(ctx, id, cognitiveservicesaccounts.DefaultAccountsListUsagesOperationOptions())` can be used to do batched pagination -items, err := client.AccountsListUsagesComplete(ctx, id, cognitiveservicesaccounts.DefaultAccountsListUsagesOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsRegenerateKey` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -payload := cognitiveservicesaccounts.RegenerateKeyParameters{ - // ... -} - - -read, err := client.AccountsRegenerateKey(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.AccountsUpdate` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -payload := cognitiveservicesaccounts.Account{ - // ... -} - - -if err := client.AccountsUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.CheckDomainAvailability` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -payload := cognitiveservicesaccounts.CheckDomainAvailabilityParameter{ - // ... -} - - -read, err := client.CheckDomainAvailability(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.CheckSkuAvailability` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -payload := cognitiveservicesaccounts.CheckSkuAvailabilityParameter{ - // ... -} - - -read, err := client.CheckSkuAvailability(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.DeletedAccountsGet` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "locationName", "example-resource-group", "deletedAccountName") - -read, err := client.DeletedAccountsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.DeletedAccountsList` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.DeletedAccountsList(ctx, id)` can be used to do batched pagination -items, err := client.DeletedAccountsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.DeletedAccountsPurge` - -```go -ctx := context.TODO() -id := cognitiveservicesaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "locationName", "example-resource-group", "deletedAccountName") - -if err := client.DeletedAccountsPurgeThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `CognitiveServicesAccountsClient.ResourceSkusList` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ResourceSkusList(ctx, id)` can be used to do batched pagination -items, err := client.ResourceSkusListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/constants.go deleted file mode 100644 index 8df13caf0293..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/constants.go +++ /dev/null @@ -1,682 +0,0 @@ -package cognitiveservicesaccounts - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AbusePenaltyAction string - -const ( - AbusePenaltyActionBlock AbusePenaltyAction = "Block" - AbusePenaltyActionThrottle AbusePenaltyAction = "Throttle" -) - -func PossibleValuesForAbusePenaltyAction() []string { - return []string{ - string(AbusePenaltyActionBlock), - string(AbusePenaltyActionThrottle), - } -} - -func (s *AbusePenaltyAction) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAbusePenaltyAction(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAbusePenaltyAction(input string) (*AbusePenaltyAction, error) { - vals := map[string]AbusePenaltyAction{ - "block": AbusePenaltyActionBlock, - "throttle": AbusePenaltyActionThrottle, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AbusePenaltyAction(input) - return &out, nil -} - -type KeyName string - -const ( - KeyNameKeyOne KeyName = "Key1" - KeyNameKeyTwo KeyName = "Key2" -) - -func PossibleValuesForKeyName() []string { - return []string{ - string(KeyNameKeyOne), - string(KeyNameKeyTwo), - } -} - -func (s *KeyName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseKeyName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseKeyName(input string) (*KeyName, error) { - vals := map[string]KeyName{ - "key1": KeyNameKeyOne, - "key2": KeyNameKeyTwo, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := KeyName(input) - return &out, nil -} - -type KeySource string - -const ( - KeySourceMicrosoftPointCognitiveServices KeySource = "Microsoft.CognitiveServices" - KeySourceMicrosoftPointKeyVault KeySource = "Microsoft.KeyVault" -) - -func PossibleValuesForKeySource() []string { - return []string{ - string(KeySourceMicrosoftPointCognitiveServices), - string(KeySourceMicrosoftPointKeyVault), - } -} - -func (s *KeySource) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseKeySource(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseKeySource(input string) (*KeySource, error) { - vals := map[string]KeySource{ - "microsoft.cognitiveservices": KeySourceMicrosoftPointCognitiveServices, - "microsoft.keyvault": KeySourceMicrosoftPointKeyVault, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := KeySource(input) - return &out, nil -} - -type ModelLifecycleStatus string - -const ( - ModelLifecycleStatusGenerallyAvailable ModelLifecycleStatus = "GenerallyAvailable" - ModelLifecycleStatusPreview ModelLifecycleStatus = "Preview" -) - -func PossibleValuesForModelLifecycleStatus() []string { - return []string{ - string(ModelLifecycleStatusGenerallyAvailable), - string(ModelLifecycleStatusPreview), - } -} - -func (s *ModelLifecycleStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseModelLifecycleStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseModelLifecycleStatus(input string) (*ModelLifecycleStatus, error) { - vals := map[string]ModelLifecycleStatus{ - "generallyavailable": ModelLifecycleStatusGenerallyAvailable, - "preview": ModelLifecycleStatusPreview, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ModelLifecycleStatus(input) - return &out, nil -} - -type NetworkRuleAction string - -const ( - NetworkRuleActionAllow NetworkRuleAction = "Allow" - NetworkRuleActionDeny NetworkRuleAction = "Deny" -) - -func PossibleValuesForNetworkRuleAction() []string { - return []string{ - string(NetworkRuleActionAllow), - string(NetworkRuleActionDeny), - } -} - -func (s *NetworkRuleAction) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkRuleAction(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkRuleAction(input string) (*NetworkRuleAction, error) { - vals := map[string]NetworkRuleAction{ - "allow": NetworkRuleActionAllow, - "deny": NetworkRuleActionDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkRuleAction(input) - return &out, nil -} - -type PrivateEndpointConnectionProvisioningState string - -const ( - PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" - PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" - PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" - PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" -) - -func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string { - return []string{ - string(PrivateEndpointConnectionProvisioningStateCreating), - string(PrivateEndpointConnectionProvisioningStateDeleting), - string(PrivateEndpointConnectionProvisioningStateFailed), - string(PrivateEndpointConnectionProvisioningStateSucceeded), - } -} - -func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePrivateEndpointConnectionProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePrivateEndpointConnectionProvisioningState(input string) (*PrivateEndpointConnectionProvisioningState, error) { - vals := map[string]PrivateEndpointConnectionProvisioningState{ - "creating": PrivateEndpointConnectionProvisioningStateCreating, - "deleting": PrivateEndpointConnectionProvisioningStateDeleting, - "failed": PrivateEndpointConnectionProvisioningStateFailed, - "succeeded": PrivateEndpointConnectionProvisioningStateSucceeded, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PrivateEndpointConnectionProvisioningState(input) - return &out, nil -} - -type PrivateEndpointServiceConnectionStatus string - -const ( - PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" - PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" - PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" -) - -func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string { - return []string{ - string(PrivateEndpointServiceConnectionStatusApproved), - string(PrivateEndpointServiceConnectionStatusPending), - string(PrivateEndpointServiceConnectionStatusRejected), - } -} - -func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePrivateEndpointServiceConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePrivateEndpointServiceConnectionStatus(input string) (*PrivateEndpointServiceConnectionStatus, error) { - vals := map[string]PrivateEndpointServiceConnectionStatus{ - "approved": PrivateEndpointServiceConnectionStatusApproved, - "pending": PrivateEndpointServiceConnectionStatusPending, - "rejected": PrivateEndpointServiceConnectionStatusRejected, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PrivateEndpointServiceConnectionStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateAccepted ProvisioningState = "Accepted" - ProvisioningStateCreating ProvisioningState = "Creating" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateMoving ProvisioningState = "Moving" - ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateAccepted), - string(ProvisioningStateCreating), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateMoving), - string(ProvisioningStateResolvingDNS), - string(ProvisioningStateSucceeded), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "accepted": ProvisioningStateAccepted, - "creating": ProvisioningStateCreating, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "moving": ProvisioningStateMoving, - "resolvingdns": ProvisioningStateResolvingDNS, - "succeeded": ProvisioningStateSucceeded, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicNetworkAccess string - -const ( - PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" - PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" -) - -func PossibleValuesForPublicNetworkAccess() []string { - return []string{ - string(PublicNetworkAccessDisabled), - string(PublicNetworkAccessEnabled), - } -} - -func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicNetworkAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicNetworkAccess(input string) (*PublicNetworkAccess, error) { - vals := map[string]PublicNetworkAccess{ - "disabled": PublicNetworkAccessDisabled, - "enabled": PublicNetworkAccessEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicNetworkAccess(input) - return &out, nil -} - -type QuotaUsageStatus string - -const ( - QuotaUsageStatusBlocked QuotaUsageStatus = "Blocked" - QuotaUsageStatusInOverage QuotaUsageStatus = "InOverage" - QuotaUsageStatusIncluded QuotaUsageStatus = "Included" - QuotaUsageStatusUnknown QuotaUsageStatus = "Unknown" -) - -func PossibleValuesForQuotaUsageStatus() []string { - return []string{ - string(QuotaUsageStatusBlocked), - string(QuotaUsageStatusInOverage), - string(QuotaUsageStatusIncluded), - string(QuotaUsageStatusUnknown), - } -} - -func (s *QuotaUsageStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseQuotaUsageStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseQuotaUsageStatus(input string) (*QuotaUsageStatus, error) { - vals := map[string]QuotaUsageStatus{ - "blocked": QuotaUsageStatusBlocked, - "inoverage": QuotaUsageStatusInOverage, - "included": QuotaUsageStatusIncluded, - "unknown": QuotaUsageStatusUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := QuotaUsageStatus(input) - return &out, nil -} - -type ResourceSkuRestrictionsReasonCode string - -const ( - ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription" - ResourceSkuRestrictionsReasonCodeQuotaId ResourceSkuRestrictionsReasonCode = "QuotaId" -) - -func PossibleValuesForResourceSkuRestrictionsReasonCode() []string { - return []string{ - string(ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription), - string(ResourceSkuRestrictionsReasonCodeQuotaId), - } -} - -func (s *ResourceSkuRestrictionsReasonCode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseResourceSkuRestrictionsReasonCode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseResourceSkuRestrictionsReasonCode(input string) (*ResourceSkuRestrictionsReasonCode, error) { - vals := map[string]ResourceSkuRestrictionsReasonCode{ - "notavailableforsubscription": ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription, - "quotaid": ResourceSkuRestrictionsReasonCodeQuotaId, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ResourceSkuRestrictionsReasonCode(input) - return &out, nil -} - -type ResourceSkuRestrictionsType string - -const ( - ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = "Location" - ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = "Zone" -) - -func PossibleValuesForResourceSkuRestrictionsType() []string { - return []string{ - string(ResourceSkuRestrictionsTypeLocation), - string(ResourceSkuRestrictionsTypeZone), - } -} - -func (s *ResourceSkuRestrictionsType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseResourceSkuRestrictionsType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseResourceSkuRestrictionsType(input string) (*ResourceSkuRestrictionsType, error) { - vals := map[string]ResourceSkuRestrictionsType{ - "location": ResourceSkuRestrictionsTypeLocation, - "zone": ResourceSkuRestrictionsTypeZone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ResourceSkuRestrictionsType(input) - return &out, nil -} - -type RoutingMethods string - -const ( - RoutingMethodsPerformance RoutingMethods = "Performance" - RoutingMethodsPriority RoutingMethods = "Priority" - RoutingMethodsWeighted RoutingMethods = "Weighted" -) - -func PossibleValuesForRoutingMethods() []string { - return []string{ - string(RoutingMethodsPerformance), - string(RoutingMethodsPriority), - string(RoutingMethodsWeighted), - } -} - -func (s *RoutingMethods) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRoutingMethods(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRoutingMethods(input string) (*RoutingMethods, error) { - vals := map[string]RoutingMethods{ - "performance": RoutingMethodsPerformance, - "priority": RoutingMethodsPriority, - "weighted": RoutingMethodsWeighted, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RoutingMethods(input) - return &out, nil -} - -type SkuTier string - -const ( - SkuTierBasic SkuTier = "Basic" - SkuTierEnterprise SkuTier = "Enterprise" - SkuTierFree SkuTier = "Free" - SkuTierPremium SkuTier = "Premium" - SkuTierStandard SkuTier = "Standard" -) - -func PossibleValuesForSkuTier() []string { - return []string{ - string(SkuTierBasic), - string(SkuTierEnterprise), - string(SkuTierFree), - string(SkuTierPremium), - string(SkuTierStandard), - } -} - -func (s *SkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuTier(input string) (*SkuTier, error) { - vals := map[string]SkuTier{ - "basic": SkuTierBasic, - "enterprise": SkuTierEnterprise, - "free": SkuTierFree, - "premium": SkuTierPremium, - "standard": SkuTierStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuTier(input) - return &out, nil -} - -type UnitType string - -const ( - UnitTypeBytes UnitType = "Bytes" - UnitTypeBytesPerSecond UnitType = "BytesPerSecond" - UnitTypeCount UnitType = "Count" - UnitTypeCountPerSecond UnitType = "CountPerSecond" - UnitTypeMilliseconds UnitType = "Milliseconds" - UnitTypePercent UnitType = "Percent" - UnitTypeSeconds UnitType = "Seconds" -) - -func PossibleValuesForUnitType() []string { - return []string{ - string(UnitTypeBytes), - string(UnitTypeBytesPerSecond), - string(UnitTypeCount), - string(UnitTypeCountPerSecond), - string(UnitTypeMilliseconds), - string(UnitTypePercent), - string(UnitTypeSeconds), - } -} - -func (s *UnitType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseUnitType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseUnitType(input string) (*UnitType, error) { - vals := map[string]UnitType{ - "bytes": UnitTypeBytes, - "bytespersecond": UnitTypeBytesPerSecond, - "count": UnitTypeCount, - "countpersecond": UnitTypeCountPerSecond, - "milliseconds": UnitTypeMilliseconds, - "percent": UnitTypePercent, - "seconds": UnitTypeSeconds, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := UnitType(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_capacityconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_capacityconfig.go deleted file mode 100644 index 2368beec6df8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_capacityconfig.go +++ /dev/null @@ -1,11 +0,0 @@ -package cognitiveservicesaccounts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CapacityConfig struct { - Default *int64 `json:"default,omitempty"` - Maximum *int64 `json:"maximum,omitempty"` - Minimum *int64 `json:"minimum,omitempty"` - Step *int64 `json:"step,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_deploymentmodel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_deploymentmodel.go deleted file mode 100644 index 6d21121cc19e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_deploymentmodel.go +++ /dev/null @@ -1,12 +0,0 @@ -package cognitiveservicesaccounts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeploymentModel struct { - CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` - Format *string `json:"format,omitempty"` - Name *string `json:"name,omitempty"` - Source *string `json:"source,omitempty"` - Version *string `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_modelsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_modelsku.go deleted file mode 100644 index 4905fd21d36a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_modelsku.go +++ /dev/null @@ -1,30 +0,0 @@ -package cognitiveservicesaccounts - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ModelSku struct { - Capacity *CapacityConfig `json:"capacity,omitempty"` - DeprecationDate *string `json:"deprecationDate,omitempty"` - Name *string `json:"name,omitempty"` - RateLimits *[]CallRateLimit `json:"rateLimits,omitempty"` - UsageName *string `json:"usageName,omitempty"` -} - -func (o *ModelSku) GetDeprecationDateAsTime() (*time.Time, error) { - if o.DeprecationDate == nil { - return nil, nil - } - return dates.ParseAsFormat(o.DeprecationDate, "2006-01-02T15:04:05Z07:00") -} - -func (o *ModelSku) SetDeprecationDateAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.DeprecationDate = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/predicates.go deleted file mode 100644 index 4711b3cb54fd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/predicates.go +++ /dev/null @@ -1,136 +0,0 @@ -package cognitiveservicesaccounts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AccountOperationPredicate struct { - Etag *string - Id *string - Kind *string - Location *string - Name *string - Type *string -} - -func (p AccountOperationPredicate) Matches(input Account) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { - return false - } - - if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} - -type AccountModelOperationPredicate struct { - Format *string - IsDefaultVersion *bool - MaxCapacity *int64 - Name *string - Source *string - Version *string -} - -func (p AccountModelOperationPredicate) Matches(input AccountModel) bool { - - if p.Format != nil && (input.Format == nil || *p.Format != *input.Format) { - return false - } - - if p.IsDefaultVersion != nil && (input.IsDefaultVersion == nil || *p.IsDefaultVersion != *input.IsDefaultVersion) { - return false - } - - if p.MaxCapacity != nil && (input.MaxCapacity == nil || *p.MaxCapacity != *input.MaxCapacity) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Source != nil && (input.Source == nil || *p.Source != *input.Source) { - return false - } - - if p.Version != nil && (input.Version == nil || *p.Version != *input.Version) { - return false - } - - return true -} - -type ResourceSkuOperationPredicate struct { - Kind *string - Name *string - ResourceType *string - Tier *string -} - -func (p ResourceSkuOperationPredicate) Matches(input ResourceSku) bool { - - if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.ResourceType != nil && (input.ResourceType == nil || *p.ResourceType != *input.ResourceType) { - return false - } - - if p.Tier != nil && (input.Tier == nil || *p.Tier != *input.Tier) { - return false - } - - return true -} - -type UsageOperationPredicate struct { - CurrentValue *float64 - Limit *float64 - NextResetTime *string - QuotaPeriod *string -} - -func (p UsageOperationPredicate) Matches(input Usage) bool { - - if p.CurrentValue != nil && (input.CurrentValue == nil || *p.CurrentValue != *input.CurrentValue) { - return false - } - - if p.Limit != nil && (input.Limit == nil || *p.Limit != *input.Limit) { - return false - } - - if p.NextResetTime != nil && (input.NextResetTime == nil || *p.NextResetTime != *input.NextResetTime) { - return false - } - - if p.QuotaPeriod != nil && (input.QuotaPeriod == nil || *p.QuotaPeriod != *input.QuotaPeriod) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/version.go deleted file mode 100644 index c5666ad98808..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package cognitiveservicesaccounts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/cognitiveservicesaccounts/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/README.md deleted file mode 100644 index 4652baa68534..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments` Documentation - -The `deployments` SDK allows for interaction with Azure Resource Manager `cognitive` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments" -``` - - -### Client Initialization - -```go -client := deployments.NewDeploymentsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `DeploymentsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") - -payload := deployments.Deployment{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `DeploymentsClient.Delete` - -```go -ctx := context.TODO() -id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `DeploymentsClient.Get` - -```go -ctx := context.TODO() -id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `DeploymentsClient.List` - -```go -ctx := context.TODO() -id := deployments.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deploymentmodel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deploymentmodel.go deleted file mode 100644 index dc69b396c5f5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deploymentmodel.go +++ /dev/null @@ -1,12 +0,0 @@ -package deployments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeploymentModel struct { - CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` - Format *string `json:"format,omitempty"` - Name *string `json:"name,omitempty"` - Source *string `json:"source,omitempty"` - Version *string `json:"version,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deploymentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deploymentproperties.go deleted file mode 100644 index e72c000ba700..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deploymentproperties.go +++ /dev/null @@ -1,15 +0,0 @@ -package deployments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeploymentProperties struct { - CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` - Capabilities *map[string]string `json:"capabilities,omitempty"` - Model *DeploymentModel `json:"model,omitempty"` - ProvisioningState *DeploymentProvisioningState `json:"provisioningState,omitempty"` - RaiPolicyName *string `json:"raiPolicyName,omitempty"` - RateLimits *[]ThrottlingRule `json:"rateLimits,omitempty"` - ScaleSettings *DeploymentScaleSettings `json:"scaleSettings,omitempty"` - VersionUpgradeOption *DeploymentModelVersionUpgradeOption `json:"versionUpgradeOption,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/predicates.go deleted file mode 100644 index 6d9ad35e72e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/predicates.go +++ /dev/null @@ -1,32 +0,0 @@ -package deployments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeploymentOperationPredicate struct { - Etag *string - Id *string - Name *string - Type *string -} - -func (p DeploymentOperationPredicate) Matches(input Deployment) bool { - - if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { - return false - } - - if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { - return false - } - - if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { - return false - } - - if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { - return false - } - - return true -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/version.go deleted file mode 100644 index a4d532834a54..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package deployments - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/deployments/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/README.md new file mode 100644 index 000000000000..d25bcd4ab012 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/README.md @@ -0,0 +1,329 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts` Documentation + +The `cognitiveservicesaccounts` SDK allows for interaction with Azure Resource Manager `cognitive` (API Version `2024-10-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts" +``` + + +### Client Initialization + +```go +client := cognitiveservicesaccounts.NewCognitiveServicesAccountsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsCreate` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +payload := cognitiveservicesaccounts.Account{ + // ... +} + + +if err := client.AccountsCreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsDelete` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsGet` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +read, err := client.AccountsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.AccountsList(ctx, id)` can be used to do batched pagination +items, err := client.AccountsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.AccountsListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.AccountsListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsListKeys` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +read, err := client.AccountsListKeys(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsListModels` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +// alternatively `client.AccountsListModels(ctx, id)` can be used to do batched pagination +items, err := client.AccountsListModelsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsListSkus` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +read, err := client.AccountsListSkus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsListUsages` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +// alternatively `client.AccountsListUsages(ctx, id, cognitiveservicesaccounts.DefaultAccountsListUsagesOperationOptions())` can be used to do batched pagination +items, err := client.AccountsListUsagesComplete(ctx, id, cognitiveservicesaccounts.DefaultAccountsListUsagesOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsRegenerateKey` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +payload := cognitiveservicesaccounts.RegenerateKeyParameters{ + // ... +} + + +read, err := client.AccountsRegenerateKey(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.AccountsUpdate` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +payload := cognitiveservicesaccounts.Account{ + // ... +} + + +if err := client.AccountsUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.CalculateModelCapacity` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := cognitiveservicesaccounts.CalculateModelCapacityParameter{ + // ... +} + + +read, err := client.CalculateModelCapacity(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.CheckDomainAvailability` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := cognitiveservicesaccounts.CheckDomainAvailabilityParameter{ + // ... +} + + +read, err := client.CheckDomainAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.CheckSkuAvailability` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +payload := cognitiveservicesaccounts.CheckSkuAvailabilityParameter{ + // ... +} + + +read, err := client.CheckSkuAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.DeletedAccountsGet` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "locationName", "example-resource-group", "deletedAccountName") + +read, err := client.DeletedAccountsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.DeletedAccountsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.DeletedAccountsList(ctx, id)` can be used to do batched pagination +items, err := client.DeletedAccountsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.DeletedAccountsPurge` + +```go +ctx := context.TODO() +id := cognitiveservicesaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "locationName", "example-resource-group", "deletedAccountName") + +if err := client.DeletedAccountsPurgeThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CognitiveServicesAccountsClient.ResourceSkusList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ResourceSkusList(ctx, id)` can be used to do batched pagination +items, err := client.ResourceSkusListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/constants.go new file mode 100644 index 000000000000..2a176db9f2d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/constants.go @@ -0,0 +1,732 @@ +package cognitiveservicesaccounts + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AbusePenaltyAction string + +const ( + AbusePenaltyActionBlock AbusePenaltyAction = "Block" + AbusePenaltyActionThrottle AbusePenaltyAction = "Throttle" +) + +func PossibleValuesForAbusePenaltyAction() []string { + return []string{ + string(AbusePenaltyActionBlock), + string(AbusePenaltyActionThrottle), + } +} + +func (s *AbusePenaltyAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAbusePenaltyAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAbusePenaltyAction(input string) (*AbusePenaltyAction, error) { + vals := map[string]AbusePenaltyAction{ + "block": AbusePenaltyActionBlock, + "throttle": AbusePenaltyActionThrottle, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AbusePenaltyAction(input) + return &out, nil +} + +type ByPassSelection string + +const ( + ByPassSelectionAzureServices ByPassSelection = "AzureServices" + ByPassSelectionNone ByPassSelection = "None" +) + +func PossibleValuesForByPassSelection() []string { + return []string{ + string(ByPassSelectionAzureServices), + string(ByPassSelectionNone), + } +} + +func (s *ByPassSelection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseByPassSelection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseByPassSelection(input string) (*ByPassSelection, error) { + vals := map[string]ByPassSelection{ + "azureservices": ByPassSelectionAzureServices, + "none": ByPassSelectionNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ByPassSelection(input) + return &out, nil +} + +type KeyName string + +const ( + KeyNameKeyOne KeyName = "Key1" + KeyNameKeyTwo KeyName = "Key2" +) + +func PossibleValuesForKeyName() []string { + return []string{ + string(KeyNameKeyOne), + string(KeyNameKeyTwo), + } +} + +func (s *KeyName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseKeyName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseKeyName(input string) (*KeyName, error) { + vals := map[string]KeyName{ + "key1": KeyNameKeyOne, + "key2": KeyNameKeyTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := KeyName(input) + return &out, nil +} + +type KeySource string + +const ( + KeySourceMicrosoftPointCognitiveServices KeySource = "Microsoft.CognitiveServices" + KeySourceMicrosoftPointKeyVault KeySource = "Microsoft.KeyVault" +) + +func PossibleValuesForKeySource() []string { + return []string{ + string(KeySourceMicrosoftPointCognitiveServices), + string(KeySourceMicrosoftPointKeyVault), + } +} + +func (s *KeySource) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseKeySource(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseKeySource(input string) (*KeySource, error) { + vals := map[string]KeySource{ + "microsoft.cognitiveservices": KeySourceMicrosoftPointCognitiveServices, + "microsoft.keyvault": KeySourceMicrosoftPointKeyVault, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := KeySource(input) + return &out, nil +} + +type ModelLifecycleStatus string + +const ( + ModelLifecycleStatusDeprecated ModelLifecycleStatus = "Deprecated" + ModelLifecycleStatusDeprecating ModelLifecycleStatus = "Deprecating" + ModelLifecycleStatusGenerallyAvailable ModelLifecycleStatus = "GenerallyAvailable" + ModelLifecycleStatusPreview ModelLifecycleStatus = "Preview" + ModelLifecycleStatusStable ModelLifecycleStatus = "Stable" +) + +func PossibleValuesForModelLifecycleStatus() []string { + return []string{ + string(ModelLifecycleStatusDeprecated), + string(ModelLifecycleStatusDeprecating), + string(ModelLifecycleStatusGenerallyAvailable), + string(ModelLifecycleStatusPreview), + string(ModelLifecycleStatusStable), + } +} + +func (s *ModelLifecycleStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseModelLifecycleStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseModelLifecycleStatus(input string) (*ModelLifecycleStatus, error) { + vals := map[string]ModelLifecycleStatus{ + "deprecated": ModelLifecycleStatusDeprecated, + "deprecating": ModelLifecycleStatusDeprecating, + "generallyavailable": ModelLifecycleStatusGenerallyAvailable, + "preview": ModelLifecycleStatusPreview, + "stable": ModelLifecycleStatusStable, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ModelLifecycleStatus(input) + return &out, nil +} + +type NetworkRuleAction string + +const ( + NetworkRuleActionAllow NetworkRuleAction = "Allow" + NetworkRuleActionDeny NetworkRuleAction = "Deny" +) + +func PossibleValuesForNetworkRuleAction() []string { + return []string{ + string(NetworkRuleActionAllow), + string(NetworkRuleActionDeny), + } +} + +func (s *NetworkRuleAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkRuleAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkRuleAction(input string) (*NetworkRuleAction, error) { + vals := map[string]NetworkRuleAction{ + "allow": NetworkRuleActionAllow, + "deny": NetworkRuleActionDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkRuleAction(input) + return &out, nil +} + +type PrivateEndpointConnectionProvisioningState string + +const ( + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string { + return []string{ + string(PrivateEndpointConnectionProvisioningStateCreating), + string(PrivateEndpointConnectionProvisioningStateDeleting), + string(PrivateEndpointConnectionProvisioningStateFailed), + string(PrivateEndpointConnectionProvisioningStateSucceeded), + } +} + +func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointConnectionProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointConnectionProvisioningState(input string) (*PrivateEndpointConnectionProvisioningState, error) { + vals := map[string]PrivateEndpointConnectionProvisioningState{ + "creating": PrivateEndpointConnectionProvisioningStateCreating, + "deleting": PrivateEndpointConnectionProvisioningStateDeleting, + "failed": PrivateEndpointConnectionProvisioningStateFailed, + "succeeded": PrivateEndpointConnectionProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointConnectionProvisioningState(input) + return &out, nil +} + +type PrivateEndpointServiceConnectionStatus string + +const ( + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string { + return []string{ + string(PrivateEndpointServiceConnectionStatusApproved), + string(PrivateEndpointServiceConnectionStatusPending), + string(PrivateEndpointServiceConnectionStatusRejected), + } +} + +func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointServiceConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointServiceConnectionStatus(input string) (*PrivateEndpointServiceConnectionStatus, error) { + vals := map[string]PrivateEndpointServiceConnectionStatus{ + "approved": PrivateEndpointServiceConnectionStatusApproved, + "pending": PrivateEndpointServiceConnectionStatusPending, + "rejected": PrivateEndpointServiceConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointServiceConnectionStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateAccepted ProvisioningState = "Accepted" + ProvisioningStateCreating ProvisioningState = "Creating" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateMoving ProvisioningState = "Moving" + ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateAccepted), + string(ProvisioningStateCreating), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateMoving), + string(ProvisioningStateResolvingDNS), + string(ProvisioningStateSucceeded), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "accepted": ProvisioningStateAccepted, + "creating": ProvisioningStateCreating, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "moving": ProvisioningStateMoving, + "resolvingdns": ProvisioningStateResolvingDNS, + "succeeded": ProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicNetworkAccess string + +const ( + PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" + PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" +) + +func PossibleValuesForPublicNetworkAccess() []string { + return []string{ + string(PublicNetworkAccessDisabled), + string(PublicNetworkAccessEnabled), + } +} + +func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicNetworkAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicNetworkAccess(input string) (*PublicNetworkAccess, error) { + vals := map[string]PublicNetworkAccess{ + "disabled": PublicNetworkAccessDisabled, + "enabled": PublicNetworkAccessEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicNetworkAccess(input) + return &out, nil +} + +type QuotaUsageStatus string + +const ( + QuotaUsageStatusBlocked QuotaUsageStatus = "Blocked" + QuotaUsageStatusInOverage QuotaUsageStatus = "InOverage" + QuotaUsageStatusIncluded QuotaUsageStatus = "Included" + QuotaUsageStatusUnknown QuotaUsageStatus = "Unknown" +) + +func PossibleValuesForQuotaUsageStatus() []string { + return []string{ + string(QuotaUsageStatusBlocked), + string(QuotaUsageStatusInOverage), + string(QuotaUsageStatusIncluded), + string(QuotaUsageStatusUnknown), + } +} + +func (s *QuotaUsageStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseQuotaUsageStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseQuotaUsageStatus(input string) (*QuotaUsageStatus, error) { + vals := map[string]QuotaUsageStatus{ + "blocked": QuotaUsageStatusBlocked, + "inoverage": QuotaUsageStatusInOverage, + "included": QuotaUsageStatusIncluded, + "unknown": QuotaUsageStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := QuotaUsageStatus(input) + return &out, nil +} + +type ResourceSkuRestrictionsReasonCode string + +const ( + ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription" + ResourceSkuRestrictionsReasonCodeQuotaId ResourceSkuRestrictionsReasonCode = "QuotaId" +) + +func PossibleValuesForResourceSkuRestrictionsReasonCode() []string { + return []string{ + string(ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription), + string(ResourceSkuRestrictionsReasonCodeQuotaId), + } +} + +func (s *ResourceSkuRestrictionsReasonCode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResourceSkuRestrictionsReasonCode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResourceSkuRestrictionsReasonCode(input string) (*ResourceSkuRestrictionsReasonCode, error) { + vals := map[string]ResourceSkuRestrictionsReasonCode{ + "notavailableforsubscription": ResourceSkuRestrictionsReasonCodeNotAvailableForSubscription, + "quotaid": ResourceSkuRestrictionsReasonCodeQuotaId, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResourceSkuRestrictionsReasonCode(input) + return &out, nil +} + +type ResourceSkuRestrictionsType string + +const ( + ResourceSkuRestrictionsTypeLocation ResourceSkuRestrictionsType = "Location" + ResourceSkuRestrictionsTypeZone ResourceSkuRestrictionsType = "Zone" +) + +func PossibleValuesForResourceSkuRestrictionsType() []string { + return []string{ + string(ResourceSkuRestrictionsTypeLocation), + string(ResourceSkuRestrictionsTypeZone), + } +} + +func (s *ResourceSkuRestrictionsType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResourceSkuRestrictionsType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResourceSkuRestrictionsType(input string) (*ResourceSkuRestrictionsType, error) { + vals := map[string]ResourceSkuRestrictionsType{ + "location": ResourceSkuRestrictionsTypeLocation, + "zone": ResourceSkuRestrictionsTypeZone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResourceSkuRestrictionsType(input) + return &out, nil +} + +type RoutingMethods string + +const ( + RoutingMethodsPerformance RoutingMethods = "Performance" + RoutingMethodsPriority RoutingMethods = "Priority" + RoutingMethodsWeighted RoutingMethods = "Weighted" +) + +func PossibleValuesForRoutingMethods() []string { + return []string{ + string(RoutingMethodsPerformance), + string(RoutingMethodsPriority), + string(RoutingMethodsWeighted), + } +} + +func (s *RoutingMethods) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRoutingMethods(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRoutingMethods(input string) (*RoutingMethods, error) { + vals := map[string]RoutingMethods{ + "performance": RoutingMethodsPerformance, + "priority": RoutingMethodsPriority, + "weighted": RoutingMethodsWeighted, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RoutingMethods(input) + return &out, nil +} + +type SkuTier string + +const ( + SkuTierBasic SkuTier = "Basic" + SkuTierEnterprise SkuTier = "Enterprise" + SkuTierFree SkuTier = "Free" + SkuTierPremium SkuTier = "Premium" + SkuTierStandard SkuTier = "Standard" +) + +func PossibleValuesForSkuTier() []string { + return []string{ + string(SkuTierBasic), + string(SkuTierEnterprise), + string(SkuTierFree), + string(SkuTierPremium), + string(SkuTierStandard), + } +} + +func (s *SkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuTier(input string) (*SkuTier, error) { + vals := map[string]SkuTier{ + "basic": SkuTierBasic, + "enterprise": SkuTierEnterprise, + "free": SkuTierFree, + "premium": SkuTierPremium, + "standard": SkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuTier(input) + return &out, nil +} + +type UnitType string + +const ( + UnitTypeBytes UnitType = "Bytes" + UnitTypeBytesPerSecond UnitType = "BytesPerSecond" + UnitTypeCount UnitType = "Count" + UnitTypeCountPerSecond UnitType = "CountPerSecond" + UnitTypeMilliseconds UnitType = "Milliseconds" + UnitTypePercent UnitType = "Percent" + UnitTypeSeconds UnitType = "Seconds" +) + +func PossibleValuesForUnitType() []string { + return []string{ + string(UnitTypeBytes), + string(UnitTypeBytesPerSecond), + string(UnitTypeCount), + string(UnitTypeCountPerSecond), + string(UnitTypeMilliseconds), + string(UnitTypePercent), + string(UnitTypeSeconds), + } +} + +func (s *UnitType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUnitType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUnitType(input string) (*UnitType, error) { + vals := map[string]UnitType{ + "bytes": UnitTypeBytes, + "bytespersecond": UnitTypeBytesPerSecond, + "count": UnitTypeCount, + "countpersecond": UnitTypeCountPerSecond, + "milliseconds": UnitTypeMilliseconds, + "percent": UnitTypePercent, + "seconds": UnitTypeSeconds, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UnitType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/id_account.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_account.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/id_account.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_deletedaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/id_deletedaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_deletedaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/id_deletedaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountscreate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountscreate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountscreate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistkeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistkeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistkeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistmodels.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistmodels.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistmodels.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistmodels.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistskus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistskus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistskus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistusages.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountslistusages.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsregeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountsregeneratekey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsregeneratekey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountsregeneratekey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountsupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_accountsupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_calculatemodelcapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_calculatemodelcapacity.go new file mode 100644 index 000000000000..81b572048706 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_calculatemodelcapacity.go @@ -0,0 +1,59 @@ +package cognitiveservicesaccounts + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CalculateModelCapacityOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CalculateModelCapacityResult +} + +// CalculateModelCapacity ... +func (c CognitiveServicesAccountsClient) CalculateModelCapacity(ctx context.Context, id commonids.SubscriptionId, input CalculateModelCapacityParameter) (result CalculateModelCapacityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Microsoft.CognitiveServices/calculateModelCapacity", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model CalculateModelCapacityResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkdomainavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_checkdomainavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkdomainavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_checkdomainavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkskuavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_checkskuavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkskuavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_checkskuavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_deletedaccountsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_deletedaccountsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_deletedaccountslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_deletedaccountslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountspurge.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_deletedaccountspurge.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountspurge.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_deletedaccountspurge.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_resourceskuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_resourceskuslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_resourceskuslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/method_resourceskuslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_abusepenalty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_abusepenalty.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_abusepenalty.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_abusepenalty.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_account.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_account.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_account.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountmodel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountmodel.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountmodel.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountmodel.go index 45438b90ddaa..ad762bba25be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountmodel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountmodel.go @@ -18,8 +18,10 @@ type AccountModel struct { LifecycleStatus *ModelLifecycleStatus `json:"lifecycleStatus,omitempty"` MaxCapacity *int64 `json:"maxCapacity,omitempty"` Name *string `json:"name,omitempty"` + Publisher *string `json:"publisher,omitempty"` Skus *[]ModelSku `json:"skus,omitempty"` Source *string `json:"source,omitempty"` + SourceAccount *string `json:"sourceAccount,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Version *string `json:"version,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountproperties.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountproperties.go index db635bef6359..ac4404fd09cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountproperties.go @@ -6,6 +6,7 @@ package cognitiveservicesaccounts type AccountProperties struct { AbusePenalty *AbusePenalty `json:"abusePenalty,omitempty"` AllowedFqdnList *[]string `json:"allowedFqdnList,omitempty"` + AmlWorkspace *UserOwnedAmlWorkspace `json:"amlWorkspace,omitempty"` ApiProperties *ApiProperties `json:"apiProperties,omitempty"` CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` Capabilities *[]SkuCapability `json:"capabilities,omitempty"` @@ -27,6 +28,7 @@ type AccountProperties struct { ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` QuotaLimit *QuotaLimit `json:"quotaLimit,omitempty"` + RaiMonitorConfig *RaiMonitorConfig `json:"raiMonitorConfig,omitempty"` Restore *bool `json:"restore,omitempty"` RestrictOutboundNetworkAccess *bool `json:"restrictOutboundNetworkAccess,omitempty"` ScheduledPurgeDate *string `json:"scheduledPurgeDate,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountsku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountsku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountsku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountskulistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountskulistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_accountskulistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_accountskulistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_apikeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_apikeys.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_apikeys.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_apikeys.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_apiproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_apiproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_apiproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_apiproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_billingmeterinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_billingmeterinfo.go new file mode 100644 index 000000000000..0fc7f160036d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_billingmeterinfo.go @@ -0,0 +1,10 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BillingMeterInfo struct { + MeterId *string `json:"meterId,omitempty"` + Name *string `json:"name,omitempty"` + Unit *string `json:"unit,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityparameter.go new file mode 100644 index 000000000000..ec4e238dd4d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityparameter.go @@ -0,0 +1,10 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CalculateModelCapacityParameter struct { + Model *DeploymentModel `json:"model,omitempty"` + SkuName *string `json:"skuName,omitempty"` + Workloads *[]ModelCapacityCalculatorWorkload `json:"workloads,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityresult.go new file mode 100644 index 000000000000..315de7a56daf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityresult.go @@ -0,0 +1,10 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CalculateModelCapacityResult struct { + EstimatedCapacity *CalculateModelCapacityResultEstimatedCapacity `json:"estimatedCapacity,omitempty"` + Model *DeploymentModel `json:"model,omitempty"` + SkuName *string `json:"skuName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityresultestimatedcapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityresultestimatedcapacity.go new file mode 100644 index 000000000000..c4366ef65e8e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_calculatemodelcapacityresultestimatedcapacity.go @@ -0,0 +1,9 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CalculateModelCapacityResultEstimatedCapacity struct { + DeployableValue *int64 `json:"deployableValue,omitempty"` + Value *int64 `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_callratelimit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_callratelimit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_callratelimit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_callratelimit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_capacityconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_capacityconfig.go new file mode 100644 index 000000000000..aab7af4c33b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_capacityconfig.go @@ -0,0 +1,12 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CapacityConfig struct { + AllowedValues *[]int64 `json:"allowedValues,omitempty"` + Default *int64 `json:"default,omitempty"` + Maximum *int64 `json:"maximum,omitempty"` + Minimum *int64 `json:"minimum,omitempty"` + Step *int64 `json:"step,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_checkdomainavailabilityparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_checkskuavailabilityparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_commitmentplanassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_commitmentplanassociation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_commitmentplanassociation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_commitmentplanassociation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_deploymentmodel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_deploymentmodel.go new file mode 100644 index 000000000000..4b6dc451f8a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_deploymentmodel.go @@ -0,0 +1,14 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeploymentModel struct { + CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` + Format *string `json:"format,omitempty"` + Name *string `json:"name,omitempty"` + Publisher *string `json:"publisher,omitempty"` + Source *string `json:"source,omitempty"` + SourceAccount *string `json:"sourceAccount,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_domainavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_domainavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_domainavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_domainavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_encryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_encryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_encryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_encryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_iprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_iprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_iprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_keyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_keyvaultproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_keyvaultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_keyvaultproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_metricname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_metricname.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_metricname.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_metricname.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelcapacitycalculatorworkload.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelcapacitycalculatorworkload.go new file mode 100644 index 000000000000..12beb03c7ce5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelcapacitycalculatorworkload.go @@ -0,0 +1,9 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ModelCapacityCalculatorWorkload struct { + RequestParameters *ModelCapacityCalculatorWorkloadRequestParam `json:"requestParameters,omitempty"` + RequestPerMinute *int64 `json:"requestPerMinute,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelcapacitycalculatorworkloadrequestparam.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelcapacitycalculatorworkloadrequestparam.go new file mode 100644 index 000000000000..8035e384d76e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelcapacitycalculatorworkloadrequestparam.go @@ -0,0 +1,9 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ModelCapacityCalculatorWorkloadRequestParam struct { + AvgGeneratedTokens *int64 `json:"avgGeneratedTokens,omitempty"` + AvgPromptTokens *int64 `json:"avgPromptTokens,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_modeldeprecationinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modeldeprecationinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_modeldeprecationinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modeldeprecationinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelsku.go new file mode 100644 index 000000000000..76385796be18 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_modelsku.go @@ -0,0 +1,31 @@ +package cognitiveservicesaccounts + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ModelSku struct { + Capacity *CapacityConfig `json:"capacity,omitempty"` + Cost *[]BillingMeterInfo `json:"cost,omitempty"` + DeprecationDate *string `json:"deprecationDate,omitempty"` + Name *string `json:"name,omitempty"` + RateLimits *[]CallRateLimit `json:"rateLimits,omitempty"` + UsageName *string `json:"usageName,omitempty"` +} + +func (o *ModelSku) GetDeprecationDateAsTime() (*time.Time, error) { + if o.DeprecationDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.DeprecationDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *ModelSku) SetDeprecationDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.DeprecationDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_multiregionsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_multiregionsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_multiregionsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_multiregionsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_networkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_networkruleset.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_networkruleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_networkruleset.go index 7362b165a129..37f976f1c64f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_networkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_networkruleset.go @@ -4,6 +4,7 @@ package cognitiveservicesaccounts // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type NetworkRuleSet struct { + Bypass *ByPassSelection `json:"bypass,omitempty"` DefaultAction *NetworkRuleAction `json:"defaultAction,omitempty"` IPRules *[]IPRule `json:"ipRules,omitempty"` VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_quotalimit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_quotalimit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_quotalimit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_quotalimit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_raimonitorconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_raimonitorconfig.go new file mode 100644 index 000000000000..b82e2c6c8134 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_raimonitorconfig.go @@ -0,0 +1,9 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RaiMonitorConfig struct { + AdxStorageResourceId *string `json:"adxStorageResourceId,omitempty"` + IdentityClientId *string `json:"identityClientId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_regeneratekeyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_regeneratekeyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_regeneratekeyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_regeneratekeyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_regionsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_regionsetting.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_regionsetting.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_regionsetting.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_requestmatchpattern.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_requestmatchpattern.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_requestmatchpattern.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_requestmatchpattern.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_resourcesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_resourcesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_resourcesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_resourcesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_resourceskurestrictioninfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_resourceskurestrictions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_resourceskurestrictions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_resourceskurestrictions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_resourceskurestrictions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_skuavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_skuavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_skuavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_skuavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_skuavailabilitylistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_skuavailabilitylistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_skuavailabilitylistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_skuavailabilitylistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_skucapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_skucapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_skucapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_skucapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_skuchangeinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_skuchangeinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_skuchangeinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_skuchangeinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_throttlingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_throttlingrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_throttlingrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_throttlingrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_usage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_usage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_usage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_usage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_userownedamlworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_userownedamlworkspace.go new file mode 100644 index 000000000000..ab8a7ab7cfe2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_userownedamlworkspace.go @@ -0,0 +1,9 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UserOwnedAmlWorkspace struct { + IdentityClientId *string `json:"identityClientId,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_userownedstorage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_userownedstorage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_userownedstorage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_userownedstorage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_virtualnetworkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_virtualnetworkrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/model_virtualnetworkrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/model_virtualnetworkrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/predicates.go new file mode 100644 index 000000000000..fdbf685923a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/predicates.go @@ -0,0 +1,146 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountOperationPredicate struct { + Etag *string + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p AccountOperationPredicate) Matches(input Account) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type AccountModelOperationPredicate struct { + Format *string + IsDefaultVersion *bool + MaxCapacity *int64 + Name *string + Publisher *string + Source *string + SourceAccount *string + Version *string +} + +func (p AccountModelOperationPredicate) Matches(input AccountModel) bool { + + if p.Format != nil && (input.Format == nil || *p.Format != *input.Format) { + return false + } + + if p.IsDefaultVersion != nil && (input.IsDefaultVersion == nil || *p.IsDefaultVersion != *input.IsDefaultVersion) { + return false + } + + if p.MaxCapacity != nil && (input.MaxCapacity == nil || *p.MaxCapacity != *input.MaxCapacity) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Publisher != nil && (input.Publisher == nil || *p.Publisher != *input.Publisher) { + return false + } + + if p.Source != nil && (input.Source == nil || *p.Source != *input.Source) { + return false + } + + if p.SourceAccount != nil && (input.SourceAccount == nil || *p.SourceAccount != *input.SourceAccount) { + return false + } + + if p.Version != nil && (input.Version == nil || *p.Version != *input.Version) { + return false + } + + return true +} + +type ResourceSkuOperationPredicate struct { + Kind *string + Name *string + ResourceType *string + Tier *string +} + +func (p ResourceSkuOperationPredicate) Matches(input ResourceSku) bool { + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.ResourceType != nil && (input.ResourceType == nil || *p.ResourceType != *input.ResourceType) { + return false + } + + if p.Tier != nil && (input.Tier == nil || *p.Tier != *input.Tier) { + return false + } + + return true +} + +type UsageOperationPredicate struct { + CurrentValue *float64 + Limit *float64 + NextResetTime *string + QuotaPeriod *string +} + +func (p UsageOperationPredicate) Matches(input Usage) bool { + + if p.CurrentValue != nil && (input.CurrentValue == nil || *p.CurrentValue != *input.CurrentValue) { + return false + } + + if p.Limit != nil && (input.Limit == nil || *p.Limit != *input.Limit) { + return false + } + + if p.NextResetTime != nil && (input.NextResetTime == nil || *p.NextResetTime != *input.NextResetTime) { + return false + } + + if p.QuotaPeriod != nil && (input.QuotaPeriod == nil || *p.QuotaPeriod != *input.QuotaPeriod) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/version.go new file mode 100644 index 000000000000..4b30550b89da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts/version.go @@ -0,0 +1,10 @@ +package cognitiveservicesaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-10-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/cognitiveservicesaccounts/2024-10-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/README.md new file mode 100644 index 000000000000..23b32fdca9d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/README.md @@ -0,0 +1,116 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments` Documentation + +The `deployments` SDK allows for interaction with Azure Resource Manager `cognitive` (API Version `2024-10-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments" +``` + + +### Client Initialization + +```go +client := deployments.NewDeploymentsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DeploymentsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") + +payload := deployments.Deployment{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `DeploymentsClient.Delete` + +```go +ctx := context.TODO() +id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `DeploymentsClient.Get` + +```go +ctx := context.TODO() +id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DeploymentsClient.List` + +```go +ctx := context.TODO() +id := deployments.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DeploymentsClient.ListSkus` + +```go +ctx := context.TODO() +id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") + +// alternatively `client.ListSkus(ctx, id)` can be used to do batched pagination +items, err := client.ListSkusComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DeploymentsClient.Update` + +```go +ctx := context.TODO() +id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") + +payload := deployments.PatchResourceTagsAndSku{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/id_account.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_account.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/id_account.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_deployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/id_deployment.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_deployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/id_deployment.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_listskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_listskus.go new file mode 100644 index 000000000000..512ae6396a9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_listskus.go @@ -0,0 +1,105 @@ +package deployments + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSkusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SkuResource +} + +type ListSkusCompleteResult struct { + LatestHttpResponse *http.Response + Items []SkuResource +} + +type ListSkusCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListSkusCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListSkus ... +func (c DeploymentsClient) ListSkus(ctx context.Context, id DeploymentId) (result ListSkusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListSkusCustomPager{}, + Path: fmt.Sprintf("%s/skus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SkuResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListSkusComplete retrieves all the results into a single object +func (c DeploymentsClient) ListSkusComplete(ctx context.Context, id DeploymentId) (ListSkusCompleteResult, error) { + return c.ListSkusCompleteMatchingPredicate(ctx, id, SkuResourceOperationPredicate{}) +} + +// ListSkusCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c DeploymentsClient) ListSkusCompleteMatchingPredicate(ctx context.Context, id DeploymentId, predicate SkuResourceOperationPredicate) (result ListSkusCompleteResult, err error) { + items := make([]SkuResource, 0) + + resp, err := c.ListSkus(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListSkusCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_update.go new file mode 100644 index 000000000000..38169cc3cc13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/method_update.go @@ -0,0 +1,75 @@ +package deployments + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Deployment +} + +// Update ... +func (c DeploymentsClient) Update(ctx context.Context, id DeploymentId, input PatchResourceTagsAndSku) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c DeploymentsClient) UpdateThenPoll(ctx context.Context, id DeploymentId, input PatchResourceTagsAndSku) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_callratelimit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_callratelimit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_callratelimit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_callratelimit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_capacityconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_capacityconfig.go new file mode 100644 index 000000000000..3a9fbfb28db2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_capacityconfig.go @@ -0,0 +1,12 @@ +package deployments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CapacityConfig struct { + AllowedValues *[]int64 `json:"allowedValues,omitempty"` + Default *int64 `json:"default,omitempty"` + Maximum *int64 `json:"maximum,omitempty"` + Minimum *int64 `json:"minimum,omitempty"` + Step *int64 `json:"step,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deployment.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deployment.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deployment.go index 38a32ee8b08e..46d1f30b18f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deployment.go @@ -14,5 +14,6 @@ type Deployment struct { Properties *DeploymentProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentcapacitysettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentcapacitysettings.go new file mode 100644 index 000000000000..513b4429493e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentcapacitysettings.go @@ -0,0 +1,9 @@ +package deployments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeploymentCapacitySettings struct { + DesignatedCapacity *int64 `json:"designatedCapacity,omitempty"` + Priority *int64 `json:"priority,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentmodel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentmodel.go new file mode 100644 index 000000000000..738db77935d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentmodel.go @@ -0,0 +1,14 @@ +package deployments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeploymentModel struct { + CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` + Format *string `json:"format,omitempty"` + Name *string `json:"name,omitempty"` + Publisher *string `json:"publisher,omitempty"` + Source *string `json:"source,omitempty"` + SourceAccount *string `json:"sourceAccount,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentproperties.go new file mode 100644 index 000000000000..3268ecae2647 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentproperties.go @@ -0,0 +1,19 @@ +package deployments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeploymentProperties struct { + CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` + Capabilities *map[string]string `json:"capabilities,omitempty"` + CapacitySettings *DeploymentCapacitySettings `json:"capacitySettings,omitempty"` + CurrentCapacity *int64 `json:"currentCapacity,omitempty"` + DynamicThrottlingEnabled *bool `json:"dynamicThrottlingEnabled,omitempty"` + Model *DeploymentModel `json:"model,omitempty"` + ParentDeploymentName *string `json:"parentDeploymentName,omitempty"` + ProvisioningState *DeploymentProvisioningState `json:"provisioningState,omitempty"` + RaiPolicyName *string `json:"raiPolicyName,omitempty"` + RateLimits *[]ThrottlingRule `json:"rateLimits,omitempty"` + ScaleSettings *DeploymentScaleSettings `json:"scaleSettings,omitempty"` + VersionUpgradeOption *DeploymentModelVersionUpgradeOption `json:"versionUpgradeOption,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deploymentscalesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentscalesettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_deploymentscalesettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_deploymentscalesettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_patchresourcetagsandsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_patchresourcetagsandsku.go new file mode 100644 index 000000000000..2dcdac738c4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_patchresourcetagsandsku.go @@ -0,0 +1,9 @@ +package deployments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PatchResourceTagsAndSku struct { + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_requestmatchpattern.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_requestmatchpattern.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_requestmatchpattern.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_requestmatchpattern.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_skuresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_skuresource.go new file mode 100644 index 000000000000..6899d4d1037c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_skuresource.go @@ -0,0 +1,10 @@ +package deployments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuResource struct { + Capacity *CapacityConfig `json:"capacity,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + Sku *Sku `json:"sku,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_throttlingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_throttlingrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/model_throttlingrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/model_throttlingrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/predicates.go new file mode 100644 index 000000000000..ad325be8cdf5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/predicates.go @@ -0,0 +1,45 @@ +package deployments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeploymentOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p DeploymentOperationPredicate) Matches(input Deployment) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type SkuResourceOperationPredicate struct { + ResourceType *string +} + +func (p SkuResourceOperationPredicate) Matches(input SkuResource) bool { + + if p.ResourceType != nil && (input.ResourceType == nil || *p.ResourceType != *input.ResourceType) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/version.go new file mode 100644 index 000000000000..a00b01a94f4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments/version.go @@ -0,0 +1,10 @@ +package deployments + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-10-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/deployments/2024-10-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/README.md deleted file mode 100644 index b60cf4562970..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/README.md +++ /dev/null @@ -1,103 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives` Documentation - -The `archives` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives" -``` - - -### Client Initialization - -```go -client := archives.NewArchivesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ArchivesClient.Create` - -```go -ctx := context.TODO() -id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") - -payload := archives.Archive{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ArchivesClient.Delete` - -```go -ctx := context.TODO() -id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ArchivesClient.Get` - -```go -ctx := context.TODO() -id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ArchivesClient.List` - -```go -ctx := context.TODO() -id := archives.NewPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ArchivesClient.Update` - -```go -ctx := context.TODO() -id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") - -payload := archives.ArchiveUpdateParameters{ - // ... -} - - -read, err := client.Update(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/version.go deleted file mode 100644 index 2c486abe329e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package archives - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/archives/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/README.md deleted file mode 100644 index 094f3017dbb5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/README.md +++ /dev/null @@ -1,77 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions` Documentation - -The `archiveversions` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions" -``` - - -### Client Initialization - -```go -client := archiveversions.NewArchiveVersionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ArchiveVersionsClient.Create` - -```go -ctx := context.TODO() -id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName", "versionName") - -if err := client.CreateThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ArchiveVersionsClient.Delete` - -```go -ctx := context.TODO() -id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName", "versionName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ArchiveVersionsClient.Get` - -```go -ctx := context.TODO() -id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName", "versionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ArchiveVersionsClient.List` - -```go -ctx := context.TODO() -id := archiveversions.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/version.go deleted file mode 100644 index 00a7e3cf69de..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package archiveversions - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/archiveversions/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/README.md deleted file mode 100644 index 3914a770d8f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/README.md +++ /dev/null @@ -1,99 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules` Documentation - -The `cacherules` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules" -``` - - -### Client Initialization - -```go -client := cacherules.NewCacheRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CacheRulesClient.Create` - -```go -ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") - -payload := cacherules.CacheRule{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `CacheRulesClient.Delete` - -```go -ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `CacheRulesClient.Get` - -```go -ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CacheRulesClient.List` - -```go -ctx := context.TODO() -id := cacherules.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CacheRulesClient.Update` - -```go -ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") - -payload := cacherules.CacheRuleUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_delete.go deleted file mode 100644 index ec9a26367003..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package cacherules - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c CacheRulesClient) Delete(ctx context.Context, id CacheRuleId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c CacheRulesClient) DeleteThenPoll(ctx context.Context, id CacheRuleId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/version.go deleted file mode 100644 index b5f0f22edf07..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package cacherules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/cacherules/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/client.go deleted file mode 100644 index 98582811bb93..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/client.go +++ /dev/null @@ -1,154 +0,0 @@ -package v2023_06_01_preview - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens" - "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -type Client struct { - ArchiveVersions *archiveversions.ArchiveVersionsClient - Archives *archives.ArchivesClient - CacheRules *cacherules.CacheRulesClient - ConnectedRegistries *connectedregistries.ConnectedRegistriesClient - CredentialSets *credentialsets.CredentialSetsClient - ExportPipelines *exportpipelines.ExportPipelinesClient - ImportPipelines *importpipelines.ImportPipelinesClient - Operation *operation.OperationClient - PipelineRuns *pipelineruns.PipelineRunsClient - PrivateEndpointConnections *privateendpointconnections.PrivateEndpointConnectionsClient - Registries *registries.RegistriesClient - Replications *replications.ReplicationsClient - ScopeMaps *scopemaps.ScopeMapsClient - Tokens *tokens.TokensClient - WebHooks *webhooks.WebHooksClient -} - -func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { - archiveVersionsClient, err := archiveversions.NewArchiveVersionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ArchiveVersions client: %+v", err) - } - configureFunc(archiveVersionsClient.Client) - - archivesClient, err := archives.NewArchivesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Archives client: %+v", err) - } - configureFunc(archivesClient.Client) - - cacheRulesClient, err := cacherules.NewCacheRulesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building CacheRules client: %+v", err) - } - configureFunc(cacheRulesClient.Client) - - connectedRegistriesClient, err := connectedregistries.NewConnectedRegistriesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ConnectedRegistries client: %+v", err) - } - configureFunc(connectedRegistriesClient.Client) - - credentialSetsClient, err := credentialsets.NewCredentialSetsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building CredentialSets client: %+v", err) - } - configureFunc(credentialSetsClient.Client) - - exportPipelinesClient, err := exportpipelines.NewExportPipelinesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExportPipelines client: %+v", err) - } - configureFunc(exportPipelinesClient.Client) - - importPipelinesClient, err := importpipelines.NewImportPipelinesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ImportPipelines client: %+v", err) - } - configureFunc(importPipelinesClient.Client) - - operationClient, err := operation.NewOperationClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Operation client: %+v", err) - } - configureFunc(operationClient.Client) - - pipelineRunsClient, err := pipelineruns.NewPipelineRunsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PipelineRuns client: %+v", err) - } - configureFunc(pipelineRunsClient.Client) - - privateEndpointConnectionsClient, err := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PrivateEndpointConnections client: %+v", err) - } - configureFunc(privateEndpointConnectionsClient.Client) - - registriesClient, err := registries.NewRegistriesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Registries client: %+v", err) - } - configureFunc(registriesClient.Client) - - replicationsClient, err := replications.NewReplicationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Replications client: %+v", err) - } - configureFunc(replicationsClient.Client) - - scopeMapsClient, err := scopemaps.NewScopeMapsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ScopeMaps client: %+v", err) - } - configureFunc(scopeMapsClient.Client) - - tokensClient, err := tokens.NewTokensClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Tokens client: %+v", err) - } - configureFunc(tokensClient.Client) - - webHooksClient, err := webhooks.NewWebHooksClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building WebHooks client: %+v", err) - } - configureFunc(webHooksClient.Client) - - return &Client{ - ArchiveVersions: archiveVersionsClient, - Archives: archivesClient, - CacheRules: cacheRulesClient, - ConnectedRegistries: connectedRegistriesClient, - CredentialSets: credentialSetsClient, - ExportPipelines: exportPipelinesClient, - ImportPipelines: importPipelinesClient, - Operation: operationClient, - PipelineRuns: pipelineRunsClient, - PrivateEndpointConnections: privateEndpointConnectionsClient, - Registries: registriesClient, - Replications: replicationsClient, - ScopeMaps: scopeMapsClient, - Tokens: tokensClient, - WebHooks: webHooksClient, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/README.md deleted file mode 100644 index d6a4440d4e42..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/README.md +++ /dev/null @@ -1,111 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries` Documentation - -The `connectedregistries` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries" -``` - - -### Client Initialization - -```go -client := connectedregistries.NewConnectedRegistriesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ConnectedRegistriesClient.Create` - -```go -ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") - -payload := connectedregistries.ConnectedRegistry{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectedRegistriesClient.Deactivate` - -```go -ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") - -if err := client.DeactivateThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectedRegistriesClient.Delete` - -```go -ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectedRegistriesClient.Get` - -```go -ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectedRegistriesClient.List` - -```go -ctx := context.TODO() -id := connectedregistries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id, connectedregistries.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, connectedregistries.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ConnectedRegistriesClient.Update` - -```go -ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") - -payload := connectedregistries.ConnectedRegistryUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/version.go deleted file mode 100644 index ebe2a9d7655e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectedregistries - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/connectedregistries/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/README.md deleted file mode 100644 index e32479ed892e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/README.md +++ /dev/null @@ -1,99 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets` Documentation - -The `credentialsets` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets" -``` - - -### Client Initialization - -```go -client := credentialsets.NewCredentialSetsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CredentialSetsClient.Create` - -```go -ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") - -payload := credentialsets.CredentialSet{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `CredentialSetsClient.Delete` - -```go -ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `CredentialSetsClient.Get` - -```go -ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CredentialSetsClient.List` - -```go -ctx := context.TODO() -id := credentialsets.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CredentialSetsClient.Update` - -```go -ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") - -payload := credentialsets.CredentialSetUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_delete.go deleted file mode 100644 index f504242c2966..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_delete.go +++ /dev/null @@ -1,71 +0,0 @@ -package credentialsets - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -// Delete ... -func (c CredentialSetsClient) Delete(ctx context.Context, id CredentialSetId) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c CredentialSetsClient) DeleteThenPoll(ctx context.Context, id CredentialSetId) error { - result, err := c.Delete(ctx, id) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/version.go deleted file mode 100644 index e1198cc81ff8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package credentialsets - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/credentialsets/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/README.md deleted file mode 100644 index 28663560d833..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines` Documentation - -The `exportpipelines` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines" -``` - - -### Client Initialization - -```go -client := exportpipelines.NewExportPipelinesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExportPipelinesClient.Create` - -```go -ctx := context.TODO() -id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") - -payload := exportpipelines.ExportPipeline{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExportPipelinesClient.Delete` - -```go -ctx := context.TODO() -id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExportPipelinesClient.Get` - -```go -ctx := context.TODO() -id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExportPipelinesClient.List` - -```go -ctx := context.TODO() -id := exportpipelines.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/version.go deleted file mode 100644 index 5e46014ffd23..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package exportpipelines - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/exportpipelines/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/README.md deleted file mode 100644 index 4a7aaf960de2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines` Documentation - -The `importpipelines` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines" -``` - - -### Client Initialization - -```go -client := importpipelines.NewImportPipelinesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ImportPipelinesClient.Create` - -```go -ctx := context.TODO() -id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") - -payload := importpipelines.ImportPipeline{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ImportPipelinesClient.Delete` - -```go -ctx := context.TODO() -id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ImportPipelinesClient.Get` - -```go -ctx := context.TODO() -id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ImportPipelinesClient.List` - -```go -ctx := context.TODO() -id := importpipelines.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/version.go deleted file mode 100644 index 7d8ca3a4442f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package importpipelines - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/importpipelines/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/README.md deleted file mode 100644 index 45fb225fd7d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/README.md +++ /dev/null @@ -1,42 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation` Documentation - -The `operation` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation" -``` - - -### Client Initialization - -```go -client := operation.NewOperationClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `OperationClient.RegistriesCheckNameAvailability` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -payload := operation.RegistryNameCheckRequest{ - // ... -} - - -read, err := client.RegistriesCheckNameAvailability(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/version.go deleted file mode 100644 index 5773e3046910..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package operation - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/operation/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/README.md deleted file mode 100644 index c216898af08f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns` Documentation - -The `pipelineruns` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns" -``` - - -### Client Initialization - -```go -client := pipelineruns.NewPipelineRunsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PipelineRunsClient.Create` - -```go -ctx := context.TODO() -id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") - -payload := pipelineruns.PipelineRun{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PipelineRunsClient.Delete` - -```go -ctx := context.TODO() -id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PipelineRunsClient.Get` - -```go -ctx := context.TODO() -id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PipelineRunsClient.List` - -```go -ctx := context.TODO() -id := pipelineruns.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/version.go deleted file mode 100644 index ab18db63427e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package pipelineruns - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/pipelineruns/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/README.md deleted file mode 100644 index 952b17565c3a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections` Documentation - -The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections" -``` - - -### Client Initialization - -```go -client := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PrivateEndpointConnectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") - -payload := privateendpointconnections.PrivateEndpointConnection{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateEndpointConnectionsClient.Delete` - -```go -ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateEndpointConnectionsClient.Get` - -```go -ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PrivateEndpointConnectionsClient.List` - -```go -ctx := context.TODO() -id := privateendpointconnections.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/version.go deleted file mode 100644 index 88b36253fd44..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpointconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/privateendpointconnections/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/README.md deleted file mode 100644 index 8436f9db46b8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/README.md +++ /dev/null @@ -1,237 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries` Documentation - -The `registries` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries" -``` - - -### Client Initialization - -```go -client := registries.NewRegistriesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `RegistriesClient.Create` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -payload := registries.Registry{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `RegistriesClient.Delete` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `RegistriesClient.GenerateCredentials` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -payload := registries.GenerateCredentialsParameters{ - // ... -} - - -if err := client.GenerateCredentialsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `RegistriesClient.Get` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RegistriesClient.GetPrivateLinkResource` - -```go -ctx := context.TODO() -id := registries.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateLinkResourceName") - -read, err := client.GetPrivateLinkResource(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RegistriesClient.ImportImage` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -payload := registries.ImportImageParameters{ - // ... -} - - -if err := client.ImportImageThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `RegistriesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `RegistriesClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `RegistriesClient.ListCredentials` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -read, err := client.ListCredentials(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RegistriesClient.ListPrivateLinkResources` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.ListPrivateLinkResources(ctx, id)` can be used to do batched pagination -items, err := client.ListPrivateLinkResourcesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `RegistriesClient.ListUsages` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -read, err := client.ListUsages(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RegistriesClient.RegenerateCredential` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -payload := registries.RegenerateCredentialParameters{ - // ... -} - - -read, err := client.RegenerateCredential(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RegistriesClient.Update` - -```go -ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -payload := registries.RegistryUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/constants.go deleted file mode 100644 index 49a9badfb0f5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/constants.go +++ /dev/null @@ -1,813 +0,0 @@ -package registries - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Action string - -const ( - ActionAllow Action = "Allow" -) - -func PossibleValuesForAction() []string { - return []string{ - string(ActionAllow), - } -} - -func (s *Action) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAction(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAction(input string) (*Action, error) { - vals := map[string]Action{ - "allow": ActionAllow, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := Action(input) - return &out, nil -} - -type ActionsRequired string - -const ( - ActionsRequiredNone ActionsRequired = "None" - ActionsRequiredRecreate ActionsRequired = "Recreate" -) - -func PossibleValuesForActionsRequired() []string { - return []string{ - string(ActionsRequiredNone), - string(ActionsRequiredRecreate), - } -} - -func (s *ActionsRequired) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseActionsRequired(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseActionsRequired(input string) (*ActionsRequired, error) { - vals := map[string]ActionsRequired{ - "none": ActionsRequiredNone, - "recreate": ActionsRequiredRecreate, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ActionsRequired(input) - return &out, nil -} - -type AzureADAuthenticationAsArmPolicyStatus string - -const ( - AzureADAuthenticationAsArmPolicyStatusDisabled AzureADAuthenticationAsArmPolicyStatus = "disabled" - AzureADAuthenticationAsArmPolicyStatusEnabled AzureADAuthenticationAsArmPolicyStatus = "enabled" -) - -func PossibleValuesForAzureADAuthenticationAsArmPolicyStatus() []string { - return []string{ - string(AzureADAuthenticationAsArmPolicyStatusDisabled), - string(AzureADAuthenticationAsArmPolicyStatusEnabled), - } -} - -func (s *AzureADAuthenticationAsArmPolicyStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAzureADAuthenticationAsArmPolicyStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAzureADAuthenticationAsArmPolicyStatus(input string) (*AzureADAuthenticationAsArmPolicyStatus, error) { - vals := map[string]AzureADAuthenticationAsArmPolicyStatus{ - "disabled": AzureADAuthenticationAsArmPolicyStatusDisabled, - "enabled": AzureADAuthenticationAsArmPolicyStatusEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AzureADAuthenticationAsArmPolicyStatus(input) - return &out, nil -} - -type ConnectionStatus string - -const ( - ConnectionStatusApproved ConnectionStatus = "Approved" - ConnectionStatusDisconnected ConnectionStatus = "Disconnected" - ConnectionStatusPending ConnectionStatus = "Pending" - ConnectionStatusRejected ConnectionStatus = "Rejected" -) - -func PossibleValuesForConnectionStatus() []string { - return []string{ - string(ConnectionStatusApproved), - string(ConnectionStatusDisconnected), - string(ConnectionStatusPending), - string(ConnectionStatusRejected), - } -} - -func (s *ConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectionStatus(input string) (*ConnectionStatus, error) { - vals := map[string]ConnectionStatus{ - "approved": ConnectionStatusApproved, - "disconnected": ConnectionStatusDisconnected, - "pending": ConnectionStatusPending, - "rejected": ConnectionStatusRejected, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectionStatus(input) - return &out, nil -} - -type DefaultAction string - -const ( - DefaultActionAllow DefaultAction = "Allow" - DefaultActionDeny DefaultAction = "Deny" -) - -func PossibleValuesForDefaultAction() []string { - return []string{ - string(DefaultActionAllow), - string(DefaultActionDeny), - } -} - -func (s *DefaultAction) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDefaultAction(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDefaultAction(input string) (*DefaultAction, error) { - vals := map[string]DefaultAction{ - "allow": DefaultActionAllow, - "deny": DefaultActionDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DefaultAction(input) - return &out, nil -} - -type EncryptionStatus string - -const ( - EncryptionStatusDisabled EncryptionStatus = "disabled" - EncryptionStatusEnabled EncryptionStatus = "enabled" -) - -func PossibleValuesForEncryptionStatus() []string { - return []string{ - string(EncryptionStatusDisabled), - string(EncryptionStatusEnabled), - } -} - -func (s *EncryptionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEncryptionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEncryptionStatus(input string) (*EncryptionStatus, error) { - vals := map[string]EncryptionStatus{ - "disabled": EncryptionStatusDisabled, - "enabled": EncryptionStatusEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EncryptionStatus(input) - return &out, nil -} - -type ExportPolicyStatus string - -const ( - ExportPolicyStatusDisabled ExportPolicyStatus = "disabled" - ExportPolicyStatusEnabled ExportPolicyStatus = "enabled" -) - -func PossibleValuesForExportPolicyStatus() []string { - return []string{ - string(ExportPolicyStatusDisabled), - string(ExportPolicyStatusEnabled), - } -} - -func (s *ExportPolicyStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseExportPolicyStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseExportPolicyStatus(input string) (*ExportPolicyStatus, error) { - vals := map[string]ExportPolicyStatus{ - "disabled": ExportPolicyStatusDisabled, - "enabled": ExportPolicyStatusEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ExportPolicyStatus(input) - return &out, nil -} - -type ImportMode string - -const ( - ImportModeForce ImportMode = "Force" - ImportModeNoForce ImportMode = "NoForce" -) - -func PossibleValuesForImportMode() []string { - return []string{ - string(ImportModeForce), - string(ImportModeNoForce), - } -} - -func (s *ImportMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseImportMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseImportMode(input string) (*ImportMode, error) { - vals := map[string]ImportMode{ - "force": ImportModeForce, - "noforce": ImportModeNoForce, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ImportMode(input) - return &out, nil -} - -type NetworkRuleBypassOptions string - -const ( - NetworkRuleBypassOptionsAzureServices NetworkRuleBypassOptions = "AzureServices" - NetworkRuleBypassOptionsNone NetworkRuleBypassOptions = "None" -) - -func PossibleValuesForNetworkRuleBypassOptions() []string { - return []string{ - string(NetworkRuleBypassOptionsAzureServices), - string(NetworkRuleBypassOptionsNone), - } -} - -func (s *NetworkRuleBypassOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkRuleBypassOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkRuleBypassOptions(input string) (*NetworkRuleBypassOptions, error) { - vals := map[string]NetworkRuleBypassOptions{ - "azureservices": NetworkRuleBypassOptionsAzureServices, - "none": NetworkRuleBypassOptionsNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkRuleBypassOptions(input) - return &out, nil -} - -type PasswordName string - -const ( - PasswordNamePassword PasswordName = "password" - PasswordNamePasswordTwo PasswordName = "password2" -) - -func PossibleValuesForPasswordName() []string { - return []string{ - string(PasswordNamePassword), - string(PasswordNamePasswordTwo), - } -} - -func (s *PasswordName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePasswordName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePasswordName(input string) (*PasswordName, error) { - vals := map[string]PasswordName{ - "password": PasswordNamePassword, - "password2": PasswordNamePasswordTwo, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PasswordName(input) - return &out, nil -} - -type PolicyStatus string - -const ( - PolicyStatusDisabled PolicyStatus = "disabled" - PolicyStatusEnabled PolicyStatus = "enabled" -) - -func PossibleValuesForPolicyStatus() []string { - return []string{ - string(PolicyStatusDisabled), - string(PolicyStatusEnabled), - } -} - -func (s *PolicyStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePolicyStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePolicyStatus(input string) (*PolicyStatus, error) { - vals := map[string]PolicyStatus{ - "disabled": PolicyStatusDisabled, - "enabled": PolicyStatusEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PolicyStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateCanceled ProvisioningState = "Canceled" - ProvisioningStateCreating ProvisioningState = "Creating" - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateCanceled), - string(ProvisioningStateCreating), - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "canceled": ProvisioningStateCanceled, - "creating": ProvisioningStateCreating, - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicNetworkAccess string - -const ( - PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" - PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" -) - -func PossibleValuesForPublicNetworkAccess() []string { - return []string{ - string(PublicNetworkAccessDisabled), - string(PublicNetworkAccessEnabled), - } -} - -func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicNetworkAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicNetworkAccess(input string) (*PublicNetworkAccess, error) { - vals := map[string]PublicNetworkAccess{ - "disabled": PublicNetworkAccessDisabled, - "enabled": PublicNetworkAccessEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicNetworkAccess(input) - return &out, nil -} - -type RegistryUsageUnit string - -const ( - RegistryUsageUnitBytes RegistryUsageUnit = "Bytes" - RegistryUsageUnitCount RegistryUsageUnit = "Count" -) - -func PossibleValuesForRegistryUsageUnit() []string { - return []string{ - string(RegistryUsageUnitBytes), - string(RegistryUsageUnitCount), - } -} - -func (s *RegistryUsageUnit) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRegistryUsageUnit(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRegistryUsageUnit(input string) (*RegistryUsageUnit, error) { - vals := map[string]RegistryUsageUnit{ - "bytes": RegistryUsageUnitBytes, - "count": RegistryUsageUnitCount, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RegistryUsageUnit(input) - return &out, nil -} - -type SkuName string - -const ( - SkuNameBasic SkuName = "Basic" - SkuNameClassic SkuName = "Classic" - SkuNamePremium SkuName = "Premium" - SkuNameStandard SkuName = "Standard" -) - -func PossibleValuesForSkuName() []string { - return []string{ - string(SkuNameBasic), - string(SkuNameClassic), - string(SkuNamePremium), - string(SkuNameStandard), - } -} - -func (s *SkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuName(input string) (*SkuName, error) { - vals := map[string]SkuName{ - "basic": SkuNameBasic, - "classic": SkuNameClassic, - "premium": SkuNamePremium, - "standard": SkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuName(input) - return &out, nil -} - -type SkuTier string - -const ( - SkuTierBasic SkuTier = "Basic" - SkuTierClassic SkuTier = "Classic" - SkuTierPremium SkuTier = "Premium" - SkuTierStandard SkuTier = "Standard" -) - -func PossibleValuesForSkuTier() []string { - return []string{ - string(SkuTierBasic), - string(SkuTierClassic), - string(SkuTierPremium), - string(SkuTierStandard), - } -} - -func (s *SkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuTier(input string) (*SkuTier, error) { - vals := map[string]SkuTier{ - "basic": SkuTierBasic, - "classic": SkuTierClassic, - "premium": SkuTierPremium, - "standard": SkuTierStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuTier(input) - return &out, nil -} - -type TokenPasswordName string - -const ( - TokenPasswordNamePasswordOne TokenPasswordName = "password1" - TokenPasswordNamePasswordTwo TokenPasswordName = "password2" -) - -func PossibleValuesForTokenPasswordName() []string { - return []string{ - string(TokenPasswordNamePasswordOne), - string(TokenPasswordNamePasswordTwo), - } -} - -func (s *TokenPasswordName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTokenPasswordName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTokenPasswordName(input string) (*TokenPasswordName, error) { - vals := map[string]TokenPasswordName{ - "password1": TokenPasswordNamePasswordOne, - "password2": TokenPasswordNamePasswordTwo, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TokenPasswordName(input) - return &out, nil -} - -type TrustPolicyType string - -const ( - TrustPolicyTypeNotary TrustPolicyType = "Notary" -) - -func PossibleValuesForTrustPolicyType() []string { - return []string{ - string(TrustPolicyTypeNotary), - } -} - -func (s *TrustPolicyType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTrustPolicyType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTrustPolicyType(input string) (*TrustPolicyType, error) { - vals := map[string]TrustPolicyType{ - "notary": TrustPolicyTypeNotary, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TrustPolicyType(input) - return &out, nil -} - -type ZoneRedundancy string - -const ( - ZoneRedundancyDisabled ZoneRedundancy = "Disabled" - ZoneRedundancyEnabled ZoneRedundancy = "Enabled" -) - -func PossibleValuesForZoneRedundancy() []string { - return []string{ - string(ZoneRedundancyDisabled), - string(ZoneRedundancyEnabled), - } -} - -func (s *ZoneRedundancy) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseZoneRedundancy(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseZoneRedundancy(input string) (*ZoneRedundancy, error) { - vals := map[string]ZoneRedundancy{ - "disabled": ZoneRedundancyDisabled, - "enabled": ZoneRedundancyEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ZoneRedundancy(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/version.go deleted file mode 100644 index 258ae6e679f3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package registries - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/registries/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/README.md deleted file mode 100644 index 0ebb57293f6c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/README.md +++ /dev/null @@ -1,99 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications` Documentation - -The `replications` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications" -``` - - -### Client Initialization - -```go -client := replications.NewReplicationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ReplicationsClient.Create` - -```go -ctx := context.TODO() -id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") - -payload := replications.Replication{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ReplicationsClient.Delete` - -```go -ctx := context.TODO() -id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ReplicationsClient.Get` - -```go -ctx := context.TODO() -id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ReplicationsClient.List` - -```go -ctx := context.TODO() -id := replications.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ReplicationsClient.Update` - -```go -ctx := context.TODO() -id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") - -payload := replications.ReplicationUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/version.go deleted file mode 100644 index a42b723ef154..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package replications - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/replications/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/README.md deleted file mode 100644 index 55101b762e15..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/README.md +++ /dev/null @@ -1,99 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps` Documentation - -The `scopemaps` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps" -``` - - -### Client Initialization - -```go -client := scopemaps.NewScopeMapsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ScopeMapsClient.Create` - -```go -ctx := context.TODO() -id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") - -payload := scopemaps.ScopeMap{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ScopeMapsClient.Delete` - -```go -ctx := context.TODO() -id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ScopeMapsClient.Get` - -```go -ctx := context.TODO() -id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ScopeMapsClient.List` - -```go -ctx := context.TODO() -id := scopemaps.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ScopeMapsClient.Update` - -```go -ctx := context.TODO() -id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") - -payload := scopemaps.ScopeMapUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/version.go deleted file mode 100644 index 3ab06ed5ce23..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package scopemaps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/scopemaps/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/README.md deleted file mode 100644 index 71545f51031b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/README.md +++ /dev/null @@ -1,99 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens` Documentation - -The `tokens` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens" -``` - - -### Client Initialization - -```go -client := tokens.NewTokensClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `TokensClient.Create` - -```go -ctx := context.TODO() -id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") - -payload := tokens.Token{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `TokensClient.Delete` - -```go -ctx := context.TODO() -id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `TokensClient.Get` - -```go -ctx := context.TODO() -id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `TokensClient.List` - -```go -ctx := context.TODO() -id := tokens.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `TokensClient.Update` - -```go -ctx := context.TODO() -id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") - -payload := tokens.TokenUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/version.go deleted file mode 100644 index c4025a2aae29..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package tokens - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/tokens/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/README.md deleted file mode 100644 index 7aa45233485c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/README.md +++ /dev/null @@ -1,148 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks` Documentation - -The `webhooks` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks" -``` - - -### Client Initialization - -```go -client := webhooks.NewWebHooksClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `WebHooksClient.Create` - -```go -ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") - -payload := webhooks.WebhookCreateParameters{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `WebHooksClient.Delete` - -```go -ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `WebHooksClient.Get` - -```go -ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `WebHooksClient.GetCallbackConfig` - -```go -ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") - -read, err := client.GetCallbackConfig(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `WebHooksClient.List` - -```go -ctx := context.TODO() -id := webhooks.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `WebHooksClient.ListEvents` - -```go -ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") - -// alternatively `client.ListEvents(ctx, id)` can be used to do batched pagination -items, err := client.ListEventsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `WebHooksClient.Ping` - -```go -ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") - -read, err := client.Ping(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `WebHooksClient.Update` - -```go -ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") - -payload := webhooks.WebhookUpdateParameters{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/version.go deleted file mode 100644 index ba43fa1c37b8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package webhooks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-06-01-preview" - -func userAgent() string { - return "hashicorp/go-azure-sdk/webhooks/2023-06-01-preview" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/README.md new file mode 100644 index 000000000000..1e7ba3ee6014 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/README.md @@ -0,0 +1,103 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives` Documentation + +The `archives` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives" +``` + + +### Client Initialization + +```go +client := archives.NewArchivesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ArchivesClient.Create` + +```go +ctx := context.TODO() +id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") + +payload := archives.Archive{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ArchivesClient.Delete` + +```go +ctx := context.TODO() +id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ArchivesClient.Get` + +```go +ctx := context.TODO() +id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ArchivesClient.List` + +```go +ctx := context.TODO() +id := archives.NewPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ArchivesClient.Update` + +```go +ctx := context.TODO() +id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") + +payload := archives.ArchiveUpdateParameters{ + // ... +} + + +read, err := client.Update(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_archive.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/id_archive.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_archive.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/id_archive.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_package.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/id_package.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_package.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/id_package.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archive.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archive.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archive.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archive.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archivepackagesourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archivepackagesourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archivepackagesourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archivepackagesourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archiveproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archiveproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archiveproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archiveproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archiveupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archiveupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archiveupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archiveupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archiveupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archiveupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/model_archiveupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/model_archiveupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/version.go new file mode 100644 index 000000000000..a19b353cc06e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives/version.go @@ -0,0 +1,10 @@ +package archives + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/archives/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/README.md new file mode 100644 index 000000000000..432df2b881a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/README.md @@ -0,0 +1,77 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions` Documentation + +The `archiveversions` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions" +``` + + +### Client Initialization + +```go +client := archiveversions.NewArchiveVersionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ArchiveVersionsClient.Create` + +```go +ctx := context.TODO() +id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName", "versionName") + +if err := client.CreateThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ArchiveVersionsClient.Delete` + +```go +ctx := context.TODO() +id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName", "versionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ArchiveVersionsClient.Get` + +```go +ctx := context.TODO() +id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName", "versionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ArchiveVersionsClient.List` + +```go +ctx := context.TODO() +id := archiveversions.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageName", "archiveName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_archive.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/id_archive.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_archive.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/id_archive.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/id_version.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/id_version.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/model_archiveversion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/model_archiveversion.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/model_archiveversion.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/model_archiveversion.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/model_archiveversionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/model_archiveversionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/model_archiveversionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/model_archiveversionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/version.go new file mode 100644 index 000000000000..f8841b4e52b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions/version.go @@ -0,0 +1,10 @@ +package archiveversions + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/archiveversions/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/README.md new file mode 100644 index 000000000000..4a400d5e0413 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/README.md @@ -0,0 +1,99 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules` Documentation + +The `cacherules` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules" +``` + + +### Client Initialization + +```go +client := cacherules.NewCacheRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CacheRulesClient.Create` + +```go +ctx := context.TODO() +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") + +payload := cacherules.CacheRule{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CacheRulesClient.Delete` + +```go +ctx := context.TODO() +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CacheRulesClient.Get` + +```go +ctx := context.TODO() +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CacheRulesClient.List` + +```go +ctx := context.TODO() +id := cacherules.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CacheRulesClient.Update` + +```go +ctx := context.TODO() +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") + +payload := cacherules.CacheRuleUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_cacherule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/id_cacherule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_cacherule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/id_cacherule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_delete.go new file mode 100644 index 000000000000..c7c73071543c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_delete.go @@ -0,0 +1,70 @@ +package cacherules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c CacheRulesClient) Delete(ctx context.Context, id CacheRuleId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c CacheRulesClient) DeleteThenPoll(ctx context.Context, id CacheRuleId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/model_cacherule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/model_cacherule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/model_cacherule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/model_cacherule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/model_cacheruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/model_cacheruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/model_cacheruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/model_cacheruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/model_cacheruleupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/model_cacheruleupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/model_cacheruleupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/model_cacheruleupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/model_cacheruleupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/model_cacheruleupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/model_cacheruleupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/model_cacheruleupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/version.go new file mode 100644 index 000000000000..3efb6e18795a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules/version.go @@ -0,0 +1,10 @@ +package cacherules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/cacherules/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/client.go new file mode 100644 index 000000000000..36b7904866e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/client.go @@ -0,0 +1,154 @@ +package v2023_11_01_preview + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens" + "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +type Client struct { + ArchiveVersions *archiveversions.ArchiveVersionsClient + Archives *archives.ArchivesClient + CacheRules *cacherules.CacheRulesClient + ConnectedRegistries *connectedregistries.ConnectedRegistriesClient + CredentialSets *credentialsets.CredentialSetsClient + ExportPipelines *exportpipelines.ExportPipelinesClient + ImportPipelines *importpipelines.ImportPipelinesClient + Operation *operation.OperationClient + PipelineRuns *pipelineruns.PipelineRunsClient + PrivateEndpointConnections *privateendpointconnections.PrivateEndpointConnectionsClient + Registries *registries.RegistriesClient + Replications *replications.ReplicationsClient + ScopeMaps *scopemaps.ScopeMapsClient + Tokens *tokens.TokensClient + WebHooks *webhooks.WebHooksClient +} + +func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { + archiveVersionsClient, err := archiveversions.NewArchiveVersionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ArchiveVersions client: %+v", err) + } + configureFunc(archiveVersionsClient.Client) + + archivesClient, err := archives.NewArchivesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Archives client: %+v", err) + } + configureFunc(archivesClient.Client) + + cacheRulesClient, err := cacherules.NewCacheRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building CacheRules client: %+v", err) + } + configureFunc(cacheRulesClient.Client) + + connectedRegistriesClient, err := connectedregistries.NewConnectedRegistriesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ConnectedRegistries client: %+v", err) + } + configureFunc(connectedRegistriesClient.Client) + + credentialSetsClient, err := credentialsets.NewCredentialSetsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building CredentialSets client: %+v", err) + } + configureFunc(credentialSetsClient.Client) + + exportPipelinesClient, err := exportpipelines.NewExportPipelinesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExportPipelines client: %+v", err) + } + configureFunc(exportPipelinesClient.Client) + + importPipelinesClient, err := importpipelines.NewImportPipelinesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ImportPipelines client: %+v", err) + } + configureFunc(importPipelinesClient.Client) + + operationClient, err := operation.NewOperationClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Operation client: %+v", err) + } + configureFunc(operationClient.Client) + + pipelineRunsClient, err := pipelineruns.NewPipelineRunsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PipelineRuns client: %+v", err) + } + configureFunc(pipelineRunsClient.Client) + + privateEndpointConnectionsClient, err := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PrivateEndpointConnections client: %+v", err) + } + configureFunc(privateEndpointConnectionsClient.Client) + + registriesClient, err := registries.NewRegistriesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Registries client: %+v", err) + } + configureFunc(registriesClient.Client) + + replicationsClient, err := replications.NewReplicationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Replications client: %+v", err) + } + configureFunc(replicationsClient.Client) + + scopeMapsClient, err := scopemaps.NewScopeMapsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ScopeMaps client: %+v", err) + } + configureFunc(scopeMapsClient.Client) + + tokensClient, err := tokens.NewTokensClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Tokens client: %+v", err) + } + configureFunc(tokensClient.Client) + + webHooksClient, err := webhooks.NewWebHooksClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building WebHooks client: %+v", err) + } + configureFunc(webHooksClient.Client) + + return &Client{ + ArchiveVersions: archiveVersionsClient, + Archives: archivesClient, + CacheRules: cacheRulesClient, + ConnectedRegistries: connectedRegistriesClient, + CredentialSets: credentialSetsClient, + ExportPipelines: exportPipelinesClient, + ImportPipelines: importPipelinesClient, + Operation: operationClient, + PipelineRuns: pipelineRunsClient, + PrivateEndpointConnections: privateEndpointConnectionsClient, + Registries: registriesClient, + Replications: replicationsClient, + ScopeMaps: scopeMapsClient, + Tokens: tokensClient, + WebHooks: webHooksClient, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/README.md new file mode 100644 index 000000000000..fbd73d8244a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/README.md @@ -0,0 +1,111 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries` Documentation + +The `connectedregistries` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries" +``` + + +### Client Initialization + +```go +client := connectedregistries.NewConnectedRegistriesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ConnectedRegistriesClient.Create` + +```go +ctx := context.TODO() +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") + +payload := connectedregistries.ConnectedRegistry{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectedRegistriesClient.Deactivate` + +```go +ctx := context.TODO() +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") + +if err := client.DeactivateThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectedRegistriesClient.Delete` + +```go +ctx := context.TODO() +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectedRegistriesClient.Get` + +```go +ctx := context.TODO() +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectedRegistriesClient.List` + +```go +ctx := context.TODO() +id := connectedregistries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id, connectedregistries.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, connectedregistries.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ConnectedRegistriesClient.Update` + +```go +ctx := context.TODO() +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") + +payload := connectedregistries.ConnectedRegistryUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_connectedregistry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/id_connectedregistry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_connectedregistry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/id_connectedregistry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_deactivate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_deactivate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_deactivate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_deactivate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_activationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_activationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_activationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_activationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_connectedregistry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_connectedregistry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_connectedregistry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_connectedregistry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_connectedregistryproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_connectedregistryproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_connectedregistryproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_connectedregistryproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_connectedregistryupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_connectedregistryupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_connectedregistryupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_connectedregistryupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_connectedregistryupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_connectedregistryupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_connectedregistryupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_connectedregistryupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_loggingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_loggingproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_loggingproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_loggingproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_loginserverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_loginserverproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_loginserverproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_loginserverproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_parentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_parentproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_parentproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_parentproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_statusdetailproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_statusdetailproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_statusdetailproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_statusdetailproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_syncproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_syncproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_syncproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_syncproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_syncupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_syncupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_syncupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_syncupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_tlscertificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_tlscertificateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_tlscertificateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_tlscertificateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_tlsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_tlsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/model_tlsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/model_tlsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/version.go new file mode 100644 index 000000000000..115138d13c9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries/version.go @@ -0,0 +1,10 @@ +package connectedregistries + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/connectedregistries/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/README.md new file mode 100644 index 000000000000..89478dab0f28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/README.md @@ -0,0 +1,99 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets` Documentation + +The `credentialsets` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets" +``` + + +### Client Initialization + +```go +client := credentialsets.NewCredentialSetsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CredentialSetsClient.Create` + +```go +ctx := context.TODO() +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") + +payload := credentialsets.CredentialSet{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CredentialSetsClient.Delete` + +```go +ctx := context.TODO() +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CredentialSetsClient.Get` + +```go +ctx := context.TODO() +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CredentialSetsClient.List` + +```go +ctx := context.TODO() +id := credentialsets.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CredentialSetsClient.Update` + +```go +ctx := context.TODO() +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") + +payload := credentialsets.CredentialSetUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_credentialset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/id_credentialset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_credentialset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/id_credentialset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_delete.go new file mode 100644 index 000000000000..ccf0140f8ef7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_delete.go @@ -0,0 +1,70 @@ +package credentialsets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c CredentialSetsClient) Delete(ctx context.Context, id CredentialSetId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c CredentialSetsClient) DeleteThenPoll(ctx context.Context, id CredentialSetId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_authcredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_authcredential.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_authcredential.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_authcredential.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialsetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialsetproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialsetproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialsetproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialsetupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialsetupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialsetupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialsetupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialsetupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialsetupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/model_credentialsetupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/model_credentialsetupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/version.go new file mode 100644 index 000000000000..ad6c5e2efa79 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets/version.go @@ -0,0 +1,10 @@ +package credentialsets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/credentialsets/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/README.md new file mode 100644 index 000000000000..3cd5f4460856 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines` Documentation + +The `exportpipelines` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines" +``` + + +### Client Initialization + +```go +client := exportpipelines.NewExportPipelinesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExportPipelinesClient.Create` + +```go +ctx := context.TODO() +id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") + +payload := exportpipelines.ExportPipeline{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExportPipelinesClient.Delete` + +```go +ctx := context.TODO() +id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExportPipelinesClient.Get` + +```go +ctx := context.TODO() +id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExportPipelinesClient.List` + +```go +ctx := context.TODO() +id := exportpipelines.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_exportpipeline.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/id_exportpipeline.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_exportpipeline.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/id_exportpipeline.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/model_exportpipeline.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/model_exportpipeline.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/model_exportpipeline.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/model_exportpipeline.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/model_exportpipelineproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/model_exportpipelineproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/model_exportpipelineproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/model_exportpipelineproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/model_exportpipelinetargetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/model_exportpipelinetargetproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/model_exportpipelinetargetproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/model_exportpipelinetargetproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/version.go new file mode 100644 index 000000000000..69301112eabf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines/version.go @@ -0,0 +1,10 @@ +package exportpipelines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/exportpipelines/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/README.md new file mode 100644 index 000000000000..eae9ec27d028 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines` Documentation + +The `importpipelines` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines" +``` + + +### Client Initialization + +```go +client := importpipelines.NewImportPipelinesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ImportPipelinesClient.Create` + +```go +ctx := context.TODO() +id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") + +payload := importpipelines.ImportPipeline{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ImportPipelinesClient.Delete` + +```go +ctx := context.TODO() +id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ImportPipelinesClient.Get` + +```go +ctx := context.TODO() +id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ImportPipelinesClient.List` + +```go +ctx := context.TODO() +id := importpipelines.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_importpipeline.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/id_importpipeline.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_importpipeline.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/id_importpipeline.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_importpipeline.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_importpipeline.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_importpipeline.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_importpipeline.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_importpipelineproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_importpipelineproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_importpipelineproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_importpipelineproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_importpipelinesourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_importpipelinesourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_importpipelinesourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_importpipelinesourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_pipelinesourcetriggerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_pipelinesourcetriggerproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_pipelinesourcetriggerproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_pipelinesourcetriggerproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_pipelinetriggerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_pipelinetriggerproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/model_pipelinetriggerproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/model_pipelinetriggerproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/version.go new file mode 100644 index 000000000000..9a63a61ed05e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines/version.go @@ -0,0 +1,10 @@ +package importpipelines + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/importpipelines/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/README.md new file mode 100644 index 000000000000..4f6c04d9ef1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/README.md @@ -0,0 +1,42 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation` Documentation + +The `operation` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation" +``` + + +### Client Initialization + +```go +client := operation.NewOperationClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `OperationClient.RegistriesCheckNameAvailability` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := operation.RegistryNameCheckRequest{ + // ... +} + + +read, err := client.RegistriesCheckNameAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/method_registrieschecknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/method_registrieschecknameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/method_registrieschecknameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/method_registrieschecknameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/model_registrynamecheckrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/model_registrynamecheckrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/model_registrynamecheckrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/model_registrynamecheckrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/model_registrynamestatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/model_registrynamestatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/model_registrynamestatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/model_registrynamestatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/version.go new file mode 100644 index 000000000000..95b72e730971 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation/version.go @@ -0,0 +1,10 @@ +package operation + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/operation/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/README.md new file mode 100644 index 000000000000..fcb01245a9f3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns` Documentation + +The `pipelineruns` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns" +``` + + +### Client Initialization + +```go +client := pipelineruns.NewPipelineRunsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PipelineRunsClient.Create` + +```go +ctx := context.TODO() +id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") + +payload := pipelineruns.PipelineRun{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PipelineRunsClient.Delete` + +```go +ctx := context.TODO() +id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PipelineRunsClient.Get` + +```go +ctx := context.TODO() +id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PipelineRunsClient.List` + +```go +ctx := context.TODO() +id := pipelineruns.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_pipelinerun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/id_pipelinerun.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_pipelinerun.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/id_pipelinerun.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_exportpipelinetargetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_exportpipelinetargetproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_exportpipelinetargetproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_exportpipelinetargetproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_importpipelinesourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_importpipelinesourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_importpipelinesourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_importpipelinesourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerun.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerun.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerun.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerunproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerunproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerunproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerunproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerunrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerunrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerunrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerunrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerunresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerunresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerunresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerunresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerunsourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerunsourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinerunsourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinerunsourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelineruntargetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelineruntargetproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelineruntargetproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelineruntargetproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinesourcetriggerdescriptor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinesourcetriggerdescriptor.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinesourcetriggerdescriptor.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinesourcetriggerdescriptor.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinetriggerdescriptor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinetriggerdescriptor.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_pipelinetriggerdescriptor.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_pipelinetriggerdescriptor.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_progressproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_progressproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/model_progressproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/model_progressproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/version.go new file mode 100644 index 000000000000..31d3b22d044f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns/version.go @@ -0,0 +1,10 @@ +package pipelineruns + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/pipelineruns/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/README.md new file mode 100644 index 000000000000..2660e35a06a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections` Documentation + +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections" +``` + + +### Client Initialization + +```go +client := privateendpointconnections.NewPrivateEndpointConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PrivateEndpointConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") + +payload := privateendpointconnections.PrivateEndpointConnection{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateEndpointConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateEndpointConnectionsClient.Get` + +```go +ctx := context.TODO() +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateEndpointConnectionsClient.List` + +```go +ctx := context.TODO() +id := privateendpointconnections.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/id_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/id_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/version.go new file mode 100644 index 000000000000..3fa3b04a7197 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections/version.go @@ -0,0 +1,10 @@ +package privateendpointconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/privateendpointconnections/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/README.md new file mode 100644 index 000000000000..d633c7eb54ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/README.md @@ -0,0 +1,237 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries` Documentation + +The `registries` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries" +``` + + +### Client Initialization + +```go +client := registries.NewRegistriesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RegistriesClient.Create` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +payload := registries.Registry{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RegistriesClient.Delete` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RegistriesClient.GenerateCredentials` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +payload := registries.GenerateCredentialsParameters{ + // ... +} + + +if err := client.GenerateCredentialsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RegistriesClient.Get` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RegistriesClient.GetPrivateLinkResource` + +```go +ctx := context.TODO() +id := registries.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateLinkResourceName") + +read, err := client.GetPrivateLinkResource(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RegistriesClient.ImportImage` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +payload := registries.ImportImageParameters{ + // ... +} + + +if err := client.ImportImageThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RegistriesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RegistriesClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RegistriesClient.ListCredentials` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +read, err := client.ListCredentials(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RegistriesClient.ListPrivateLinkResources` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.ListPrivateLinkResources(ctx, id)` can be used to do batched pagination +items, err := client.ListPrivateLinkResourcesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RegistriesClient.ListUsages` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +read, err := client.ListUsages(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RegistriesClient.RegenerateCredential` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +payload := registries.RegenerateCredentialParameters{ + // ... +} + + +read, err := client.RegenerateCredential(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RegistriesClient.Update` + +```go +ctx := context.TODO() +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +payload := registries.RegistryUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/constants.go new file mode 100644 index 000000000000..4ba9b8662f38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/constants.go @@ -0,0 +1,854 @@ +package registries + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Action string + +const ( + ActionAllow Action = "Allow" +) + +func PossibleValuesForAction() []string { + return []string{ + string(ActionAllow), + } +} + +func (s *Action) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAction(input string) (*Action, error) { + vals := map[string]Action{ + "allow": ActionAllow, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := Action(input) + return &out, nil +} + +type ActionsRequired string + +const ( + ActionsRequiredNone ActionsRequired = "None" + ActionsRequiredRecreate ActionsRequired = "Recreate" +) + +func PossibleValuesForActionsRequired() []string { + return []string{ + string(ActionsRequiredNone), + string(ActionsRequiredRecreate), + } +} + +func (s *ActionsRequired) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseActionsRequired(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseActionsRequired(input string) (*ActionsRequired, error) { + vals := map[string]ActionsRequired{ + "none": ActionsRequiredNone, + "recreate": ActionsRequiredRecreate, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ActionsRequired(input) + return &out, nil +} + +type AzureADAuthenticationAsArmPolicyStatus string + +const ( + AzureADAuthenticationAsArmPolicyStatusDisabled AzureADAuthenticationAsArmPolicyStatus = "disabled" + AzureADAuthenticationAsArmPolicyStatusEnabled AzureADAuthenticationAsArmPolicyStatus = "enabled" +) + +func PossibleValuesForAzureADAuthenticationAsArmPolicyStatus() []string { + return []string{ + string(AzureADAuthenticationAsArmPolicyStatusDisabled), + string(AzureADAuthenticationAsArmPolicyStatusEnabled), + } +} + +func (s *AzureADAuthenticationAsArmPolicyStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureADAuthenticationAsArmPolicyStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureADAuthenticationAsArmPolicyStatus(input string) (*AzureADAuthenticationAsArmPolicyStatus, error) { + vals := map[string]AzureADAuthenticationAsArmPolicyStatus{ + "disabled": AzureADAuthenticationAsArmPolicyStatusDisabled, + "enabled": AzureADAuthenticationAsArmPolicyStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureADAuthenticationAsArmPolicyStatus(input) + return &out, nil +} + +type ConnectionStatus string + +const ( + ConnectionStatusApproved ConnectionStatus = "Approved" + ConnectionStatusDisconnected ConnectionStatus = "Disconnected" + ConnectionStatusPending ConnectionStatus = "Pending" + ConnectionStatusRejected ConnectionStatus = "Rejected" +) + +func PossibleValuesForConnectionStatus() []string { + return []string{ + string(ConnectionStatusApproved), + string(ConnectionStatusDisconnected), + string(ConnectionStatusPending), + string(ConnectionStatusRejected), + } +} + +func (s *ConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectionStatus(input string) (*ConnectionStatus, error) { + vals := map[string]ConnectionStatus{ + "approved": ConnectionStatusApproved, + "disconnected": ConnectionStatusDisconnected, + "pending": ConnectionStatusPending, + "rejected": ConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectionStatus(input) + return &out, nil +} + +type DefaultAction string + +const ( + DefaultActionAllow DefaultAction = "Allow" + DefaultActionDeny DefaultAction = "Deny" +) + +func PossibleValuesForDefaultAction() []string { + return []string{ + string(DefaultActionAllow), + string(DefaultActionDeny), + } +} + +func (s *DefaultAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDefaultAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDefaultAction(input string) (*DefaultAction, error) { + vals := map[string]DefaultAction{ + "allow": DefaultActionAllow, + "deny": DefaultActionDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DefaultAction(input) + return &out, nil +} + +type EncryptionStatus string + +const ( + EncryptionStatusDisabled EncryptionStatus = "disabled" + EncryptionStatusEnabled EncryptionStatus = "enabled" +) + +func PossibleValuesForEncryptionStatus() []string { + return []string{ + string(EncryptionStatusDisabled), + string(EncryptionStatusEnabled), + } +} + +func (s *EncryptionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEncryptionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEncryptionStatus(input string) (*EncryptionStatus, error) { + vals := map[string]EncryptionStatus{ + "disabled": EncryptionStatusDisabled, + "enabled": EncryptionStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EncryptionStatus(input) + return &out, nil +} + +type ExportPolicyStatus string + +const ( + ExportPolicyStatusDisabled ExportPolicyStatus = "disabled" + ExportPolicyStatusEnabled ExportPolicyStatus = "enabled" +) + +func PossibleValuesForExportPolicyStatus() []string { + return []string{ + string(ExportPolicyStatusDisabled), + string(ExportPolicyStatusEnabled), + } +} + +func (s *ExportPolicyStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExportPolicyStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExportPolicyStatus(input string) (*ExportPolicyStatus, error) { + vals := map[string]ExportPolicyStatus{ + "disabled": ExportPolicyStatusDisabled, + "enabled": ExportPolicyStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExportPolicyStatus(input) + return &out, nil +} + +type ImportMode string + +const ( + ImportModeForce ImportMode = "Force" + ImportModeNoForce ImportMode = "NoForce" +) + +func PossibleValuesForImportMode() []string { + return []string{ + string(ImportModeForce), + string(ImportModeNoForce), + } +} + +func (s *ImportMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseImportMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseImportMode(input string) (*ImportMode, error) { + vals := map[string]ImportMode{ + "force": ImportModeForce, + "noforce": ImportModeNoForce, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ImportMode(input) + return &out, nil +} + +type MetadataSearch string + +const ( + MetadataSearchDisabled MetadataSearch = "Disabled" + MetadataSearchEnabled MetadataSearch = "Enabled" +) + +func PossibleValuesForMetadataSearch() []string { + return []string{ + string(MetadataSearchDisabled), + string(MetadataSearchEnabled), + } +} + +func (s *MetadataSearch) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMetadataSearch(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMetadataSearch(input string) (*MetadataSearch, error) { + vals := map[string]MetadataSearch{ + "disabled": MetadataSearchDisabled, + "enabled": MetadataSearchEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MetadataSearch(input) + return &out, nil +} + +type NetworkRuleBypassOptions string + +const ( + NetworkRuleBypassOptionsAzureServices NetworkRuleBypassOptions = "AzureServices" + NetworkRuleBypassOptionsNone NetworkRuleBypassOptions = "None" +) + +func PossibleValuesForNetworkRuleBypassOptions() []string { + return []string{ + string(NetworkRuleBypassOptionsAzureServices), + string(NetworkRuleBypassOptionsNone), + } +} + +func (s *NetworkRuleBypassOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkRuleBypassOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkRuleBypassOptions(input string) (*NetworkRuleBypassOptions, error) { + vals := map[string]NetworkRuleBypassOptions{ + "azureservices": NetworkRuleBypassOptionsAzureServices, + "none": NetworkRuleBypassOptionsNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkRuleBypassOptions(input) + return &out, nil +} + +type PasswordName string + +const ( + PasswordNamePassword PasswordName = "password" + PasswordNamePasswordTwo PasswordName = "password2" +) + +func PossibleValuesForPasswordName() []string { + return []string{ + string(PasswordNamePassword), + string(PasswordNamePasswordTwo), + } +} + +func (s *PasswordName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePasswordName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePasswordName(input string) (*PasswordName, error) { + vals := map[string]PasswordName{ + "password": PasswordNamePassword, + "password2": PasswordNamePasswordTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PasswordName(input) + return &out, nil +} + +type PolicyStatus string + +const ( + PolicyStatusDisabled PolicyStatus = "disabled" + PolicyStatusEnabled PolicyStatus = "enabled" +) + +func PossibleValuesForPolicyStatus() []string { + return []string{ + string(PolicyStatusDisabled), + string(PolicyStatusEnabled), + } +} + +func (s *PolicyStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePolicyStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePolicyStatus(input string) (*PolicyStatus, error) { + vals := map[string]PolicyStatus{ + "disabled": PolicyStatusDisabled, + "enabled": PolicyStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PolicyStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateCreating ProvisioningState = "Creating" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateCanceled), + string(ProvisioningStateCreating), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, + "creating": ProvisioningStateCreating, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicNetworkAccess string + +const ( + PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" + PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" +) + +func PossibleValuesForPublicNetworkAccess() []string { + return []string{ + string(PublicNetworkAccessDisabled), + string(PublicNetworkAccessEnabled), + } +} + +func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicNetworkAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicNetworkAccess(input string) (*PublicNetworkAccess, error) { + vals := map[string]PublicNetworkAccess{ + "disabled": PublicNetworkAccessDisabled, + "enabled": PublicNetworkAccessEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicNetworkAccess(input) + return &out, nil +} + +type RegistryUsageUnit string + +const ( + RegistryUsageUnitBytes RegistryUsageUnit = "Bytes" + RegistryUsageUnitCount RegistryUsageUnit = "Count" +) + +func PossibleValuesForRegistryUsageUnit() []string { + return []string{ + string(RegistryUsageUnitBytes), + string(RegistryUsageUnitCount), + } +} + +func (s *RegistryUsageUnit) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRegistryUsageUnit(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRegistryUsageUnit(input string) (*RegistryUsageUnit, error) { + vals := map[string]RegistryUsageUnit{ + "bytes": RegistryUsageUnitBytes, + "count": RegistryUsageUnitCount, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RegistryUsageUnit(input) + return &out, nil +} + +type SkuName string + +const ( + SkuNameBasic SkuName = "Basic" + SkuNameClassic SkuName = "Classic" + SkuNamePremium SkuName = "Premium" + SkuNameStandard SkuName = "Standard" +) + +func PossibleValuesForSkuName() []string { + return []string{ + string(SkuNameBasic), + string(SkuNameClassic), + string(SkuNamePremium), + string(SkuNameStandard), + } +} + +func (s *SkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuName(input string) (*SkuName, error) { + vals := map[string]SkuName{ + "basic": SkuNameBasic, + "classic": SkuNameClassic, + "premium": SkuNamePremium, + "standard": SkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuName(input) + return &out, nil +} + +type SkuTier string + +const ( + SkuTierBasic SkuTier = "Basic" + SkuTierClassic SkuTier = "Classic" + SkuTierPremium SkuTier = "Premium" + SkuTierStandard SkuTier = "Standard" +) + +func PossibleValuesForSkuTier() []string { + return []string{ + string(SkuTierBasic), + string(SkuTierClassic), + string(SkuTierPremium), + string(SkuTierStandard), + } +} + +func (s *SkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuTier(input string) (*SkuTier, error) { + vals := map[string]SkuTier{ + "basic": SkuTierBasic, + "classic": SkuTierClassic, + "premium": SkuTierPremium, + "standard": SkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuTier(input) + return &out, nil +} + +type TokenPasswordName string + +const ( + TokenPasswordNamePasswordOne TokenPasswordName = "password1" + TokenPasswordNamePasswordTwo TokenPasswordName = "password2" +) + +func PossibleValuesForTokenPasswordName() []string { + return []string{ + string(TokenPasswordNamePasswordOne), + string(TokenPasswordNamePasswordTwo), + } +} + +func (s *TokenPasswordName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTokenPasswordName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTokenPasswordName(input string) (*TokenPasswordName, error) { + vals := map[string]TokenPasswordName{ + "password1": TokenPasswordNamePasswordOne, + "password2": TokenPasswordNamePasswordTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TokenPasswordName(input) + return &out, nil +} + +type TrustPolicyType string + +const ( + TrustPolicyTypeNotary TrustPolicyType = "Notary" +) + +func PossibleValuesForTrustPolicyType() []string { + return []string{ + string(TrustPolicyTypeNotary), + } +} + +func (s *TrustPolicyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTrustPolicyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTrustPolicyType(input string) (*TrustPolicyType, error) { + vals := map[string]TrustPolicyType{ + "notary": TrustPolicyTypeNotary, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TrustPolicyType(input) + return &out, nil +} + +type ZoneRedundancy string + +const ( + ZoneRedundancyDisabled ZoneRedundancy = "Disabled" + ZoneRedundancyEnabled ZoneRedundancy = "Enabled" +) + +func PossibleValuesForZoneRedundancy() []string { + return []string{ + string(ZoneRedundancyDisabled), + string(ZoneRedundancyEnabled), + } +} + +func (s *ZoneRedundancy) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseZoneRedundancy(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseZoneRedundancy(input string) (*ZoneRedundancy, error) { + vals := map[string]ZoneRedundancy{ + "disabled": ZoneRedundancyDisabled, + "enabled": ZoneRedundancyEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ZoneRedundancy(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/id_privatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_privatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/id_privatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_generatecredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_generatecredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_generatecredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_generatecredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_getprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_getprivatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_getprivatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_getprivatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_importimage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_importimage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_importimage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_importimage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_listcredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listcredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_listcredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_listprivatelinkresources.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listprivatelinkresources.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_listprivatelinkresources.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_listusages.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listusages.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_listusages.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_regeneratecredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_regeneratecredential.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_regeneratecredential.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_regeneratecredential.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_azureadauthenticationasarmpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_azureadauthenticationasarmpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_azureadauthenticationasarmpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_azureadauthenticationasarmpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_encryptionproperty.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_encryptionproperty.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_encryptionproperty.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_encryptionproperty.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_exportpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_exportpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_exportpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_exportpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_generatecredentialsparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_generatecredentialsparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_generatecredentialsparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_generatecredentialsparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_generatecredentialsresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_generatecredentialsresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_generatecredentialsresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_generatecredentialsresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_importimageparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_importimageparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_importimageparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_importimageparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_importsource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_importsource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_importsource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_importsource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_importsourcecredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_importsourcecredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_importsourcecredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_importsourcecredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_iprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_iprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_iprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_keyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_keyvaultproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_keyvaultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_keyvaultproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_networkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_networkruleset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_networkruleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_networkruleset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_policies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_policies.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_policies.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_policies.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privatelinkresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privatelinkresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privatelinkresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_quarantinepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_quarantinepolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_quarantinepolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_quarantinepolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_regeneratecredentialparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_regeneratecredentialparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_regeneratecredentialparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_regeneratecredentialparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registrylistcredentialsresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registrylistcredentialsresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registrylistcredentialsresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registrylistcredentialsresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registrypassword.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registrypassword.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registrypassword.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registrypassword.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryproperties.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryproperties.go index 78d93030f82b..b85bae63d226 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryproperties.go @@ -17,6 +17,7 @@ type RegistryProperties struct { DataEndpointHostNames *[]string `json:"dataEndpointHostNames,omitempty"` Encryption *EncryptionProperty `json:"encryption,omitempty"` LoginServer *string `json:"loginServer,omitempty"` + MetadataSearch *MetadataSearch `json:"metadataSearch,omitempty"` NetworkRuleBypassOptions *NetworkRuleBypassOptions `json:"networkRuleBypassOptions,omitempty"` NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` Policies *Policies `json:"policies,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registrypropertiesupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registrypropertiesupdateparameters.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registrypropertiesupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registrypropertiesupdateparameters.go index c9745b00e2a1..48dc22129760 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registrypropertiesupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registrypropertiesupdateparameters.go @@ -8,6 +8,7 @@ type RegistryPropertiesUpdateParameters struct { AnonymousPullEnabled *bool `json:"anonymousPullEnabled,omitempty"` DataEndpointEnabled *bool `json:"dataEndpointEnabled,omitempty"` Encryption *EncryptionProperty `json:"encryption,omitempty"` + MetadataSearch *MetadataSearch `json:"metadataSearch,omitempty"` NetworkRuleBypassOptions *NetworkRuleBypassOptions `json:"networkRuleBypassOptions,omitempty"` NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` Policies *Policies `json:"policies,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryusage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryusage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryusage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryusagelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryusagelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_registryusagelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_registryusagelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_retentionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_retentionpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_retentionpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_retentionpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_softdeletepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_softdeletepolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_softdeletepolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_softdeletepolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_status.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_status.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_status.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_status.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_tokenpassword.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_tokenpassword.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_tokenpassword.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_tokenpassword.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_trustpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_trustpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/model_trustpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/model_trustpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/version.go new file mode 100644 index 000000000000..871c0d122a53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries/version.go @@ -0,0 +1,10 @@ +package registries + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/registries/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/README.md new file mode 100644 index 000000000000..cdad53cf67b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/README.md @@ -0,0 +1,99 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications` Documentation + +The `replications` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications" +``` + + +### Client Initialization + +```go +client := replications.NewReplicationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ReplicationsClient.Create` + +```go +ctx := context.TODO() +id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") + +payload := replications.Replication{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ReplicationsClient.Delete` + +```go +ctx := context.TODO() +id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ReplicationsClient.Get` + +```go +ctx := context.TODO() +id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ReplicationsClient.List` + +```go +ctx := context.TODO() +id := replications.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ReplicationsClient.Update` + +```go +ctx := context.TODO() +id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") + +payload := replications.ReplicationUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_replication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/id_replication.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_replication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/id_replication.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_replication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_replication.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_replication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_replication.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_replicationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_replicationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_replicationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_replicationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_replicationupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_replicationupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_replicationupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_replicationupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_replicationupdateparametersproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_replicationupdateparametersproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_replicationupdateparametersproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_replicationupdateparametersproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_status.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_status.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/model_status.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/model_status.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/version.go new file mode 100644 index 000000000000..ad77e3d88342 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications/version.go @@ -0,0 +1,10 @@ +package replications + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/replications/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/README.md new file mode 100644 index 000000000000..ae457d80f2c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/README.md @@ -0,0 +1,99 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps` Documentation + +The `scopemaps` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps" +``` + + +### Client Initialization + +```go +client := scopemaps.NewScopeMapsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ScopeMapsClient.Create` + +```go +ctx := context.TODO() +id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") + +payload := scopemaps.ScopeMap{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ScopeMapsClient.Delete` + +```go +ctx := context.TODO() +id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ScopeMapsClient.Get` + +```go +ctx := context.TODO() +id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ScopeMapsClient.List` + +```go +ctx := context.TODO() +id := scopemaps.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ScopeMapsClient.Update` + +```go +ctx := context.TODO() +id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") + +payload := scopemaps.ScopeMapUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_scopemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/id_scopemap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_scopemap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/id_scopemap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/model_scopemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/model_scopemap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/model_scopemap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/model_scopemap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/model_scopemapproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/model_scopemapproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/model_scopemapproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/model_scopemapproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/model_scopemappropertiesupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/model_scopemappropertiesupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/model_scopemappropertiesupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/model_scopemappropertiesupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/model_scopemapupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/model_scopemapupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/model_scopemapupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/model_scopemapupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/version.go new file mode 100644 index 000000000000..d765be028ca4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps/version.go @@ -0,0 +1,10 @@ +package scopemaps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/scopemaps/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/README.md new file mode 100644 index 000000000000..83a28ec4c47c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/README.md @@ -0,0 +1,99 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens` Documentation + +The `tokens` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens" +``` + + +### Client Initialization + +```go +client := tokens.NewTokensClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `TokensClient.Create` + +```go +ctx := context.TODO() +id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") + +payload := tokens.Token{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `TokensClient.Delete` + +```go +ctx := context.TODO() +id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `TokensClient.Get` + +```go +ctx := context.TODO() +id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `TokensClient.List` + +```go +ctx := context.TODO() +id := tokens.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `TokensClient.Update` + +```go +ctx := context.TODO() +id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") + +payload := tokens.TokenUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_token.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/id_token.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_token.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/id_token.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_token.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_token.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_token.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_token.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokencertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokencertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokencertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokencertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokencredentialsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokencredentialsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokencredentialsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokencredentialsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokenpassword.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokenpassword.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokenpassword.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokenpassword.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokenproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokenproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokenproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokenproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokenupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokenupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokenupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokenupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokenupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokenupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/model_tokenupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/model_tokenupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/version.go new file mode 100644 index 000000000000..b929d26d4293 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens/version.go @@ -0,0 +1,10 @@ +package tokens + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/tokens/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/README.md new file mode 100644 index 000000000000..bf7f2c18531e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/README.md @@ -0,0 +1,148 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks` Documentation + +The `webhooks` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-11-01-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks" +``` + + +### Client Initialization + +```go +client := webhooks.NewWebHooksClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `WebHooksClient.Create` + +```go +ctx := context.TODO() +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") + +payload := webhooks.WebhookCreateParameters{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebHooksClient.Delete` + +```go +ctx := context.TODO() +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebHooksClient.Get` + +```go +ctx := context.TODO() +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebHooksClient.GetCallbackConfig` + +```go +ctx := context.TODO() +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") + +read, err := client.GetCallbackConfig(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebHooksClient.List` + +```go +ctx := context.TODO() +id := webhooks.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebHooksClient.ListEvents` + +```go +ctx := context.TODO() +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") + +// alternatively `client.ListEvents(ctx, id)` can be used to do batched pagination +items, err := client.ListEventsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebHooksClient.Ping` + +```go +ctx := context.TODO() +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") + +read, err := client.Ping(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebHooksClient.Update` + +```go +ctx := context.TODO() +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webHookName") + +payload := webhooks.WebhookUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/id_registry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_registry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/id_registry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_webhook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/id_webhook.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_webhook.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/id_webhook.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_getcallbackconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_getcallbackconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_getcallbackconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_getcallbackconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_listevents.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_listevents.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_listevents.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_listevents.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_ping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_ping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_ping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_ping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_actor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_actor.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_actor.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_actor.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_callbackconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_callbackconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_callbackconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_callbackconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_event.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_event.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_event.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_event.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_eventcontent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_eventcontent.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_eventcontent.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_eventcontent.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_eventinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_eventinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_eventinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_eventinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_eventrequestmessage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_eventrequestmessage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_eventrequestmessage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_eventrequestmessage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_eventresponsemessage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_eventresponsemessage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_eventresponsemessage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_eventresponsemessage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_request.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_request.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_request.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_request.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_source.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_source.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_source.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_source.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_target.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_target.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_target.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_target.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhook.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhook.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhook.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookcreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookcreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookcreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookcreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookpropertiescreateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookpropertiescreateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookpropertiescreateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookpropertiescreateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookpropertiesupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookpropertiesupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookpropertiesupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookpropertiesupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookupdateparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/model_webhookupdateparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/model_webhookupdateparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/version.go new file mode 100644 index 000000000000..122c100eee88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks/version.go @@ -0,0 +1,10 @@ +package webhooks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-11-01-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/webhooks/2023-11-01-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/README.md new file mode 100644 index 000000000000..6d68e00ec461 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/README.md @@ -0,0 +1,111 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints` Documentation + +The `managedprivateendpoints` SDK allows for interaction with Azure Resource Manager `dashboard` (API Version `2023-09-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints" +``` + + +### Client Initialization + +```go +client := managedprivateendpoints.NewManagedPrivateEndpointsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ManagedPrivateEndpointsClient.Create` + +```go +ctx := context.TODO() +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaName", "managedPrivateEndpointName") + +payload := managedprivateendpoints.ManagedPrivateEndpointModel{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ManagedPrivateEndpointsClient.Delete` + +```go +ctx := context.TODO() +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaName", "managedPrivateEndpointName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ManagedPrivateEndpointsClient.Get` + +```go +ctx := context.TODO() +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaName", "managedPrivateEndpointName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ManagedPrivateEndpointsClient.List` + +```go +ctx := context.TODO() +id := managedprivateendpoints.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ManagedPrivateEndpointsClient.Refresh` + +```go +ctx := context.TODO() +id := managedprivateendpoints.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaName") + +if err := client.RefreshThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ManagedPrivateEndpointsClient.Update` + +```go +ctx := context.TODO() +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaName", "managedPrivateEndpointName") + +payload := managedprivateendpoints.ManagedPrivateEndpointUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/client.go new file mode 100644 index 000000000000..e02237558e49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/client.go @@ -0,0 +1,26 @@ +package managedprivateendpoints + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedPrivateEndpointsClient struct { + Client *resourcemanager.Client +} + +func NewManagedPrivateEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedPrivateEndpointsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "managedprivateendpoints", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ManagedPrivateEndpointsClient: %+v", err) + } + + return &ManagedPrivateEndpointsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/constants.go new file mode 100644 index 000000000000..b9d6b033782e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/constants.go @@ -0,0 +1,119 @@ +package managedprivateendpoints + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedPrivateEndpointConnectionStatus string + +const ( + ManagedPrivateEndpointConnectionStatusApproved ManagedPrivateEndpointConnectionStatus = "Approved" + ManagedPrivateEndpointConnectionStatusDisconnected ManagedPrivateEndpointConnectionStatus = "Disconnected" + ManagedPrivateEndpointConnectionStatusPending ManagedPrivateEndpointConnectionStatus = "Pending" + ManagedPrivateEndpointConnectionStatusRejected ManagedPrivateEndpointConnectionStatus = "Rejected" +) + +func PossibleValuesForManagedPrivateEndpointConnectionStatus() []string { + return []string{ + string(ManagedPrivateEndpointConnectionStatusApproved), + string(ManagedPrivateEndpointConnectionStatusDisconnected), + string(ManagedPrivateEndpointConnectionStatusPending), + string(ManagedPrivateEndpointConnectionStatusRejected), + } +} + +func (s *ManagedPrivateEndpointConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseManagedPrivateEndpointConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseManagedPrivateEndpointConnectionStatus(input string) (*ManagedPrivateEndpointConnectionStatus, error) { + vals := map[string]ManagedPrivateEndpointConnectionStatus{ + "approved": ManagedPrivateEndpointConnectionStatusApproved, + "disconnected": ManagedPrivateEndpointConnectionStatusDisconnected, + "pending": ManagedPrivateEndpointConnectionStatusPending, + "rejected": ManagedPrivateEndpointConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedPrivateEndpointConnectionStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateAccepted ProvisioningState = "Accepted" + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateCreating ProvisioningState = "Creating" + ProvisioningStateDeleted ProvisioningState = "Deleted" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateAccepted), + string(ProvisioningStateCanceled), + string(ProvisioningStateCreating), + string(ProvisioningStateDeleted), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateNotSpecified), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "accepted": ProvisioningStateAccepted, + "canceled": ProvisioningStateCanceled, + "creating": ProvisioningStateCreating, + "deleted": ProvisioningStateDeleted, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "notspecified": ProvisioningStateNotSpecified, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/id_grafana.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/id_grafana.go new file mode 100644 index 000000000000..2a7fb9d4c021 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/id_grafana.go @@ -0,0 +1,130 @@ +package managedprivateendpoints + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&GrafanaId{}) +} + +var _ resourceids.ResourceId = &GrafanaId{} + +// GrafanaId is a struct representing the Resource ID for a Grafana +type GrafanaId struct { + SubscriptionId string + ResourceGroupName string + GrafanaName string +} + +// NewGrafanaID returns a new GrafanaId struct +func NewGrafanaID(subscriptionId string, resourceGroupName string, grafanaName string) GrafanaId { + return GrafanaId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + GrafanaName: grafanaName, + } +} + +// ParseGrafanaID parses 'input' into a GrafanaId +func ParseGrafanaID(input string) (*GrafanaId, error) { + parser := resourceids.NewParserFromResourceIdType(&GrafanaId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := GrafanaId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseGrafanaIDInsensitively parses 'input' case-insensitively into a GrafanaId +// note: this method should only be used for API response data and not user input +func ParseGrafanaIDInsensitively(input string) (*GrafanaId, error) { + parser := resourceids.NewParserFromResourceIdType(&GrafanaId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := GrafanaId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *GrafanaId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.GrafanaName, ok = input.Parsed["grafanaName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "grafanaName", input) + } + + return nil +} + +// ValidateGrafanaID checks that 'input' can be parsed as a Grafana ID +func ValidateGrafanaID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseGrafanaID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Grafana ID +func (id GrafanaId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Dashboard/grafana/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.GrafanaName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Grafana ID +func (id GrafanaId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDashboard", "Microsoft.Dashboard", "Microsoft.Dashboard"), + resourceids.StaticSegment("staticGrafana", "grafana", "grafana"), + resourceids.UserSpecifiedSegment("grafanaName", "grafanaName"), + } +} + +// String returns a human-readable description of this Grafana ID +func (id GrafanaId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Grafana Name: %q", id.GrafanaName), + } + return fmt.Sprintf("Grafana (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/id_managedprivateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/id_managedprivateendpoint.go new file mode 100644 index 000000000000..f62eda38b79a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/id_managedprivateendpoint.go @@ -0,0 +1,139 @@ +package managedprivateendpoints + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ManagedPrivateEndpointId{}) +} + +var _ resourceids.ResourceId = &ManagedPrivateEndpointId{} + +// ManagedPrivateEndpointId is a struct representing the Resource ID for a Managed Private Endpoint +type ManagedPrivateEndpointId struct { + SubscriptionId string + ResourceGroupName string + GrafanaName string + ManagedPrivateEndpointName string +} + +// NewManagedPrivateEndpointID returns a new ManagedPrivateEndpointId struct +func NewManagedPrivateEndpointID(subscriptionId string, resourceGroupName string, grafanaName string, managedPrivateEndpointName string) ManagedPrivateEndpointId { + return ManagedPrivateEndpointId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + GrafanaName: grafanaName, + ManagedPrivateEndpointName: managedPrivateEndpointName, + } +} + +// ParseManagedPrivateEndpointID parses 'input' into a ManagedPrivateEndpointId +func ParseManagedPrivateEndpointID(input string) (*ManagedPrivateEndpointId, error) { + parser := resourceids.NewParserFromResourceIdType(&ManagedPrivateEndpointId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ManagedPrivateEndpointId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseManagedPrivateEndpointIDInsensitively parses 'input' case-insensitively into a ManagedPrivateEndpointId +// note: this method should only be used for API response data and not user input +func ParseManagedPrivateEndpointIDInsensitively(input string) (*ManagedPrivateEndpointId, error) { + parser := resourceids.NewParserFromResourceIdType(&ManagedPrivateEndpointId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ManagedPrivateEndpointId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ManagedPrivateEndpointId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.GrafanaName, ok = input.Parsed["grafanaName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "grafanaName", input) + } + + if id.ManagedPrivateEndpointName, ok = input.Parsed["managedPrivateEndpointName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "managedPrivateEndpointName", input) + } + + return nil +} + +// ValidateManagedPrivateEndpointID checks that 'input' can be parsed as a Managed Private Endpoint ID +func ValidateManagedPrivateEndpointID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseManagedPrivateEndpointID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Managed Private Endpoint ID +func (id ManagedPrivateEndpointId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Dashboard/grafana/%s/managedPrivateEndpoints/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.GrafanaName, id.ManagedPrivateEndpointName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Managed Private Endpoint ID +func (id ManagedPrivateEndpointId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDashboard", "Microsoft.Dashboard", "Microsoft.Dashboard"), + resourceids.StaticSegment("staticGrafana", "grafana", "grafana"), + resourceids.UserSpecifiedSegment("grafanaName", "grafanaName"), + resourceids.StaticSegment("staticManagedPrivateEndpoints", "managedPrivateEndpoints", "managedPrivateEndpoints"), + resourceids.UserSpecifiedSegment("managedPrivateEndpointName", "managedPrivateEndpointName"), + } +} + +// String returns a human-readable description of this Managed Private Endpoint ID +func (id ManagedPrivateEndpointId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Grafana Name: %q", id.GrafanaName), + fmt.Sprintf("Managed Private Endpoint Name: %q", id.ManagedPrivateEndpointName), + } + return fmt.Sprintf("Managed Private Endpoint (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_create.go new file mode 100644 index 000000000000..47504c5921de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_create.go @@ -0,0 +1,75 @@ +package managedprivateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ManagedPrivateEndpointModel +} + +// Create ... +func (c ManagedPrivateEndpointsClient) Create(ctx context.Context, id ManagedPrivateEndpointId, input ManagedPrivateEndpointModel) (result CreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateThenPoll performs Create then polls until it's completed +func (c ManagedPrivateEndpointsClient) CreateThenPoll(ctx context.Context, id ManagedPrivateEndpointId, input ManagedPrivateEndpointModel) error { + result, err := c.Create(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Create: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Create: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_delete.go new file mode 100644 index 000000000000..98a0990b10a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_delete.go @@ -0,0 +1,71 @@ +package managedprivateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ManagedPrivateEndpointsClient) Delete(ctx context.Context, id ManagedPrivateEndpointId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ManagedPrivateEndpointsClient) DeleteThenPoll(ctx context.Context, id ManagedPrivateEndpointId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_get.go new file mode 100644 index 000000000000..6840e6b45925 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_get.go @@ -0,0 +1,53 @@ +package managedprivateendpoints + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ManagedPrivateEndpointModel +} + +// Get ... +func (c ManagedPrivateEndpointsClient) Get(ctx context.Context, id ManagedPrivateEndpointId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ManagedPrivateEndpointModel + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_list.go new file mode 100644 index 000000000000..4c9b506e1dac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_list.go @@ -0,0 +1,105 @@ +package managedprivateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ManagedPrivateEndpointModel +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ManagedPrivateEndpointModel +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ManagedPrivateEndpointsClient) List(ctx context.Context, id GrafanaId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/managedPrivateEndpoints", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ManagedPrivateEndpointModel `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ManagedPrivateEndpointsClient) ListComplete(ctx context.Context, id GrafanaId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ManagedPrivateEndpointModelOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ManagedPrivateEndpointsClient) ListCompleteMatchingPredicate(ctx context.Context, id GrafanaId, predicate ManagedPrivateEndpointModelOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ManagedPrivateEndpointModel, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_refresh.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_refresh.go new file mode 100644 index 000000000000..fb9fec3c6d97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_refresh.go @@ -0,0 +1,70 @@ +package managedprivateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RefreshOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Refresh ... +func (c ManagedPrivateEndpointsClient) Refresh(ctx context.Context, id GrafanaId) (result RefreshOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/refreshManagedPrivateEndpoints", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RefreshThenPoll performs Refresh then polls until it's completed +func (c ManagedPrivateEndpointsClient) RefreshThenPoll(ctx context.Context, id GrafanaId) error { + result, err := c.Refresh(ctx, id) + if err != nil { + return fmt.Errorf("performing Refresh: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Refresh: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_update.go new file mode 100644 index 000000000000..6bfa37db056a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/method_update.go @@ -0,0 +1,75 @@ +package managedprivateendpoints + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ManagedPrivateEndpointModel +} + +// Update ... +func (c ManagedPrivateEndpointsClient) Update(ctx context.Context, id ManagedPrivateEndpointId, input ManagedPrivateEndpointUpdateParameters) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c ManagedPrivateEndpointsClient) UpdateThenPoll(ctx context.Context, id ManagedPrivateEndpointId, input ManagedPrivateEndpointUpdateParameters) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointconnectionstate.go new file mode 100644 index 000000000000..a24ead5087a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointconnectionstate.go @@ -0,0 +1,9 @@ +package managedprivateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedPrivateEndpointConnectionState struct { + Description *string `json:"description,omitempty"` + Status *ManagedPrivateEndpointConnectionStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointmodel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointmodel.go new file mode 100644 index 000000000000..109bc1c4e6e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointmodel.go @@ -0,0 +1,18 @@ +package managedprivateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedPrivateEndpointModel struct { + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *ManagedPrivateEndpointModelProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointmodelproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointmodelproperties.go new file mode 100644 index 000000000000..babce0bcb68d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointmodelproperties.go @@ -0,0 +1,15 @@ +package managedprivateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedPrivateEndpointModelProperties struct { + ConnectionState *ManagedPrivateEndpointConnectionState `json:"connectionState,omitempty"` + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkResourceId *string `json:"privateLinkResourceId,omitempty"` + PrivateLinkResourceRegion *string `json:"privateLinkResourceRegion,omitempty"` + PrivateLinkServicePrivateIP *string `json:"privateLinkServicePrivateIP,omitempty"` + PrivateLinkServiceURL *string `json:"privateLinkServiceUrl,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointupdateparameters.go new file mode 100644 index 000000000000..f7322b801841 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/model_managedprivateendpointupdateparameters.go @@ -0,0 +1,8 @@ +package managedprivateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedPrivateEndpointUpdateParameters struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/predicates.go new file mode 100644 index 000000000000..108b63e5f74e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/predicates.go @@ -0,0 +1,32 @@ +package managedprivateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedPrivateEndpointModelOperationPredicate struct { + Id *string + Location *string + Name *string + Type *string +} + +func (p ManagedPrivateEndpointModelOperationPredicate) Matches(input ManagedPrivateEndpointModel) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/version.go new file mode 100644 index 000000000000..819d2c6107ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints/version.go @@ -0,0 +1,10 @@ +package managedprivateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-09-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/managedprivateendpoints/2023-09-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/README.md new file mode 100644 index 000000000000..47d17506a63e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/README.md @@ -0,0 +1,268 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors` Documentation + +The `monitors` SDK allows for interaction with Azure Resource Manager `dynatrace` (API Version `2023-04-27`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors" +``` + + +### Client Initialization + +```go +client := monitors.NewMonitorsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `MonitorsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +payload := monitors.MonitorResource{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `MonitorsClient.Delete` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `MonitorsClient.Get` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MonitorsClient.GetMarketplaceSaaSResourceDetails` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := monitors.MarketplaceSaaSResourceDetailsRequest{ + // ... +} + + +read, err := client.GetMarketplaceSaaSResourceDetails(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MonitorsClient.GetMetricStatus` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +read, err := client.GetMetricStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MonitorsClient.GetSSODetails` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +payload := monitors.SSODetailsRequest{ + // ... +} + + +read, err := client.GetSSODetails(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MonitorsClient.GetVMHostPayload` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +read, err := client.GetVMHostPayload(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MonitorsClient.ListAppServices` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +// alternatively `client.ListAppServices(ctx, id)` can be used to do batched pagination +items, err := client.ListAppServicesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MonitorsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MonitorsClient.ListBySubscriptionId` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscriptionId(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionIdComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MonitorsClient.ListHosts` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +// alternatively `client.ListHosts(ctx, id)` can be used to do batched pagination +items, err := client.ListHostsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MonitorsClient.ListLinkableEnvironments` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +payload := monitors.LinkableEnvironmentRequest{ + // ... +} + + +// alternatively `client.ListLinkableEnvironments(ctx, id, payload)` can be used to do batched pagination +items, err := client.ListLinkableEnvironmentsComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MonitorsClient.ListMonitoredResources` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +// alternatively `client.ListMonitoredResources(ctx, id)` can be used to do batched pagination +items, err := client.ListMonitoredResourcesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MonitorsClient.Update` + +```go +ctx := context.TODO() +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") + +payload := monitors.MonitorResourceUpdate{ + // ... +} + + +read, err := client.Update(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/client.go new file mode 100644 index 000000000000..da8f22135b82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/client.go @@ -0,0 +1,26 @@ +package monitors + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MonitorsClient struct { + Client *resourcemanager.Client +} + +func NewMonitorsClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitorsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "monitors", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating MonitorsClient: %+v", err) + } + + return &MonitorsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/constants.go new file mode 100644 index 000000000000..8b1f3f66c1c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/constants.go @@ -0,0 +1,653 @@ +package monitors + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoUpdateSetting string + +const ( + AutoUpdateSettingDISABLED AutoUpdateSetting = "DISABLED" + AutoUpdateSettingENABLED AutoUpdateSetting = "ENABLED" +) + +func PossibleValuesForAutoUpdateSetting() []string { + return []string{ + string(AutoUpdateSettingDISABLED), + string(AutoUpdateSettingENABLED), + } +} + +func (s *AutoUpdateSetting) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAutoUpdateSetting(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAutoUpdateSetting(input string) (*AutoUpdateSetting, error) { + vals := map[string]AutoUpdateSetting{ + "disabled": AutoUpdateSettingDISABLED, + "enabled": AutoUpdateSettingENABLED, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AutoUpdateSetting(input) + return &out, nil +} + +type AvailabilityState string + +const ( + AvailabilityStateCRASHED AvailabilityState = "CRASHED" + AvailabilityStateLOST AvailabilityState = "LOST" + AvailabilityStateMONITORED AvailabilityState = "MONITORED" + AvailabilityStatePREMONITORED AvailabilityState = "PRE_MONITORED" + AvailabilityStateSHUTDOWN AvailabilityState = "SHUTDOWN" + AvailabilityStateUNEXPECTEDSHUTDOWN AvailabilityState = "UNEXPECTED_SHUTDOWN" + AvailabilityStateUNKNOWN AvailabilityState = "UNKNOWN" + AvailabilityStateUNMONITORED AvailabilityState = "UNMONITORED" +) + +func PossibleValuesForAvailabilityState() []string { + return []string{ + string(AvailabilityStateCRASHED), + string(AvailabilityStateLOST), + string(AvailabilityStateMONITORED), + string(AvailabilityStatePREMONITORED), + string(AvailabilityStateSHUTDOWN), + string(AvailabilityStateUNEXPECTEDSHUTDOWN), + string(AvailabilityStateUNKNOWN), + string(AvailabilityStateUNMONITORED), + } +} + +func (s *AvailabilityState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAvailabilityState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAvailabilityState(input string) (*AvailabilityState, error) { + vals := map[string]AvailabilityState{ + "crashed": AvailabilityStateCRASHED, + "lost": AvailabilityStateLOST, + "monitored": AvailabilityStateMONITORED, + "pre_monitored": AvailabilityStatePREMONITORED, + "shutdown": AvailabilityStateSHUTDOWN, + "unexpected_shutdown": AvailabilityStateUNEXPECTEDSHUTDOWN, + "unknown": AvailabilityStateUNKNOWN, + "unmonitored": AvailabilityStateUNMONITORED, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AvailabilityState(input) + return &out, nil +} + +type LiftrResourceCategories string + +const ( + LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs" + LiftrResourceCategoriesUnknown LiftrResourceCategories = "Unknown" +) + +func PossibleValuesForLiftrResourceCategories() []string { + return []string{ + string(LiftrResourceCategoriesMonitorLogs), + string(LiftrResourceCategoriesUnknown), + } +} + +func (s *LiftrResourceCategories) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLiftrResourceCategories(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLiftrResourceCategories(input string) (*LiftrResourceCategories, error) { + vals := map[string]LiftrResourceCategories{ + "monitorlogs": LiftrResourceCategoriesMonitorLogs, + "unknown": LiftrResourceCategoriesUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LiftrResourceCategories(input) + return &out, nil +} + +type LogModule string + +const ( + LogModuleDISABLED LogModule = "DISABLED" + LogModuleENABLED LogModule = "ENABLED" +) + +func PossibleValuesForLogModule() []string { + return []string{ + string(LogModuleDISABLED), + string(LogModuleENABLED), + } +} + +func (s *LogModule) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLogModule(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLogModule(input string) (*LogModule, error) { + vals := map[string]LogModule{ + "disabled": LogModuleDISABLED, + "enabled": LogModuleENABLED, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LogModule(input) + return &out, nil +} + +type ManagedIdentityType string + +const ( + ManagedIdentityTypeSystemAndUserAssigned ManagedIdentityType = "SystemAndUserAssigned" + ManagedIdentityTypeSystemAssigned ManagedIdentityType = "SystemAssigned" + ManagedIdentityTypeUserAssigned ManagedIdentityType = "UserAssigned" +) + +func PossibleValuesForManagedIdentityType() []string { + return []string{ + string(ManagedIdentityTypeSystemAndUserAssigned), + string(ManagedIdentityTypeSystemAssigned), + string(ManagedIdentityTypeUserAssigned), + } +} + +func (s *ManagedIdentityType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseManagedIdentityType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseManagedIdentityType(input string) (*ManagedIdentityType, error) { + vals := map[string]ManagedIdentityType{ + "systemanduserassigned": ManagedIdentityTypeSystemAndUserAssigned, + "systemassigned": ManagedIdentityTypeSystemAssigned, + "userassigned": ManagedIdentityTypeUserAssigned, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedIdentityType(input) + return &out, nil +} + +type MarketplaceSubscriptionStatus string + +const ( + MarketplaceSubscriptionStatusActive MarketplaceSubscriptionStatus = "Active" + MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended" +) + +func PossibleValuesForMarketplaceSubscriptionStatus() []string { + return []string{ + string(MarketplaceSubscriptionStatusActive), + string(MarketplaceSubscriptionStatusSuspended), + } +} + +func (s *MarketplaceSubscriptionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMarketplaceSubscriptionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMarketplaceSubscriptionStatus(input string) (*MarketplaceSubscriptionStatus, error) { + vals := map[string]MarketplaceSubscriptionStatus{ + "active": MarketplaceSubscriptionStatusActive, + "suspended": MarketplaceSubscriptionStatusSuspended, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MarketplaceSubscriptionStatus(input) + return &out, nil +} + +type MonitoringStatus string + +const ( + MonitoringStatusDisabled MonitoringStatus = "Disabled" + MonitoringStatusEnabled MonitoringStatus = "Enabled" +) + +func PossibleValuesForMonitoringStatus() []string { + return []string{ + string(MonitoringStatusDisabled), + string(MonitoringStatusEnabled), + } +} + +func (s *MonitoringStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMonitoringStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMonitoringStatus(input string) (*MonitoringStatus, error) { + vals := map[string]MonitoringStatus{ + "disabled": MonitoringStatusDisabled, + "enabled": MonitoringStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MonitoringStatus(input) + return &out, nil +} + +type MonitoringType string + +const ( + MonitoringTypeCLOUDINFRASTRUCTURE MonitoringType = "CLOUD_INFRASTRUCTURE" + MonitoringTypeFULLSTACK MonitoringType = "FULL_STACK" +) + +func PossibleValuesForMonitoringType() []string { + return []string{ + string(MonitoringTypeCLOUDINFRASTRUCTURE), + string(MonitoringTypeFULLSTACK), + } +} + +func (s *MonitoringType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMonitoringType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMonitoringType(input string) (*MonitoringType, error) { + vals := map[string]MonitoringType{ + "cloud_infrastructure": MonitoringTypeCLOUDINFRASTRUCTURE, + "full_stack": MonitoringTypeFULLSTACK, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MonitoringType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateAccepted ProvisioningState = "Accepted" + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateCreating ProvisioningState = "Creating" + ProvisioningStateDeleted ProvisioningState = "Deleted" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateAccepted), + string(ProvisioningStateCanceled), + string(ProvisioningStateCreating), + string(ProvisioningStateDeleted), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateNotSpecified), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "accepted": ProvisioningStateAccepted, + "canceled": ProvisioningStateCanceled, + "creating": ProvisioningStateCreating, + "deleted": ProvisioningStateDeleted, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "notspecified": ProvisioningStateNotSpecified, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SSOStatus string + +const ( + SSOStatusDisabled SSOStatus = "Disabled" + SSOStatusEnabled SSOStatus = "Enabled" +) + +func PossibleValuesForSSOStatus() []string { + return []string{ + string(SSOStatusDisabled), + string(SSOStatusEnabled), + } +} + +func (s *SSOStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSSOStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSSOStatus(input string) (*SSOStatus, error) { + vals := map[string]SSOStatus{ + "disabled": SSOStatusDisabled, + "enabled": SSOStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SSOStatus(input) + return &out, nil +} + +type SendingLogsStatus string + +const ( + SendingLogsStatusDisabled SendingLogsStatus = "Disabled" + SendingLogsStatusEnabled SendingLogsStatus = "Enabled" +) + +func PossibleValuesForSendingLogsStatus() []string { + return []string{ + string(SendingLogsStatusDisabled), + string(SendingLogsStatusEnabled), + } +} + +func (s *SendingLogsStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSendingLogsStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSendingLogsStatus(input string) (*SendingLogsStatus, error) { + vals := map[string]SendingLogsStatus{ + "disabled": SendingLogsStatusDisabled, + "enabled": SendingLogsStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SendingLogsStatus(input) + return &out, nil +} + +type SendingMetricsStatus string + +const ( + SendingMetricsStatusDisabled SendingMetricsStatus = "Disabled" + SendingMetricsStatusEnabled SendingMetricsStatus = "Enabled" +) + +func PossibleValuesForSendingMetricsStatus() []string { + return []string{ + string(SendingMetricsStatusDisabled), + string(SendingMetricsStatusEnabled), + } +} + +func (s *SendingMetricsStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSendingMetricsStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSendingMetricsStatus(input string) (*SendingMetricsStatus, error) { + vals := map[string]SendingMetricsStatus{ + "disabled": SendingMetricsStatusDisabled, + "enabled": SendingMetricsStatusEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SendingMetricsStatus(input) + return &out, nil +} + +type SingleSignOnStates string + +const ( + SingleSignOnStatesDisable SingleSignOnStates = "Disable" + SingleSignOnStatesEnable SingleSignOnStates = "Enable" + SingleSignOnStatesExisting SingleSignOnStates = "Existing" + SingleSignOnStatesInitial SingleSignOnStates = "Initial" +) + +func PossibleValuesForSingleSignOnStates() []string { + return []string{ + string(SingleSignOnStatesDisable), + string(SingleSignOnStatesEnable), + string(SingleSignOnStatesExisting), + string(SingleSignOnStatesInitial), + } +} + +func (s *SingleSignOnStates) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSingleSignOnStates(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSingleSignOnStates(input string) (*SingleSignOnStates, error) { + vals := map[string]SingleSignOnStates{ + "disable": SingleSignOnStatesDisable, + "enable": SingleSignOnStatesEnable, + "existing": SingleSignOnStatesExisting, + "initial": SingleSignOnStatesInitial, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SingleSignOnStates(input) + return &out, nil +} + +type UpdateStatus string + +const ( + UpdateStatusINCOMPATIBLE UpdateStatus = "INCOMPATIBLE" + UpdateStatusOUTDATED UpdateStatus = "OUTDATED" + UpdateStatusSCHEDULED UpdateStatus = "SCHEDULED" + UpdateStatusSUPPRESSED UpdateStatus = "SUPPRESSED" + UpdateStatusUNKNOWN UpdateStatus = "UNKNOWN" + UpdateStatusUPDATEINPROGRESS UpdateStatus = "UPDATE_IN_PROGRESS" + UpdateStatusUPDATEPENDING UpdateStatus = "UPDATE_PENDING" + UpdateStatusUPDATEPROBLEM UpdateStatus = "UPDATE_PROBLEM" + UpdateStatusUPTwoDATE UpdateStatus = "UP2DATE" +) + +func PossibleValuesForUpdateStatus() []string { + return []string{ + string(UpdateStatusINCOMPATIBLE), + string(UpdateStatusOUTDATED), + string(UpdateStatusSCHEDULED), + string(UpdateStatusSUPPRESSED), + string(UpdateStatusUNKNOWN), + string(UpdateStatusUPDATEINPROGRESS), + string(UpdateStatusUPDATEPENDING), + string(UpdateStatusUPDATEPROBLEM), + string(UpdateStatusUPTwoDATE), + } +} + +func (s *UpdateStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUpdateStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUpdateStatus(input string) (*UpdateStatus, error) { + vals := map[string]UpdateStatus{ + "incompatible": UpdateStatusINCOMPATIBLE, + "outdated": UpdateStatusOUTDATED, + "scheduled": UpdateStatusSCHEDULED, + "suppressed": UpdateStatusSUPPRESSED, + "unknown": UpdateStatusUNKNOWN, + "update_in_progress": UpdateStatusUPDATEINPROGRESS, + "update_pending": UpdateStatusUPDATEPENDING, + "update_problem": UpdateStatusUPDATEPROBLEM, + "up2date": UpdateStatusUPTwoDATE, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UpdateStatus(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/id_monitor.go new file mode 100644 index 000000000000..f8d976b7b3fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/id_monitor.go @@ -0,0 +1,130 @@ +package monitors + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&MonitorId{}) +} + +var _ resourceids.ResourceId = &MonitorId{} + +// MonitorId is a struct representing the Resource ID for a Monitor +type MonitorId struct { + SubscriptionId string + ResourceGroupName string + MonitorName string +} + +// NewMonitorID returns a new MonitorId struct +func NewMonitorID(subscriptionId string, resourceGroupName string, monitorName string) MonitorId { + return MonitorId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + MonitorName: monitorName, + } +} + +// ParseMonitorID parses 'input' into a MonitorId +func ParseMonitorID(input string) (*MonitorId, error) { + parser := resourceids.NewParserFromResourceIdType(&MonitorId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := MonitorId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseMonitorIDInsensitively parses 'input' case-insensitively into a MonitorId +// note: this method should only be used for API response data and not user input +func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { + parser := resourceids.NewParserFromResourceIdType(&MonitorId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := MonitorId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *MonitorId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.MonitorName, ok = input.Parsed["monitorName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "monitorName", input) + } + + return nil +} + +// ValidateMonitorID checks that 'input' can be parsed as a Monitor ID +func ValidateMonitorID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseMonitorID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Monitor ID +func (id MonitorId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Dynatrace.Observability/monitors/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.MonitorName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Monitor ID +func (id MonitorId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticDynatraceObservability", "Dynatrace.Observability", "Dynatrace.Observability"), + resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), + } +} + +// String returns a human-readable description of this Monitor ID +func (id MonitorId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Monitor Name: %q", id.MonitorName), + } + return fmt.Sprintf("Monitor (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_createorupdate.go new file mode 100644 index 000000000000..0ba92558937a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_createorupdate.go @@ -0,0 +1,75 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *MonitorResource +} + +// CreateOrUpdate ... +func (c MonitorsClient) CreateOrUpdate(ctx context.Context, id MonitorId, input MonitorResource) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c MonitorsClient) CreateOrUpdateThenPoll(ctx context.Context, id MonitorId, input MonitorResource) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_delete.go new file mode 100644 index 000000000000..ed121cfa76fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_delete.go @@ -0,0 +1,71 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c MonitorsClient) Delete(ctx context.Context, id MonitorId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c MonitorsClient) DeleteThenPoll(ctx context.Context, id MonitorId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_get.go new file mode 100644 index 000000000000..f5544383fcf9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_get.go @@ -0,0 +1,53 @@ +package monitors + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MonitorResource +} + +// Get ... +func (c MonitorsClient) Get(ctx context.Context, id MonitorId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model MonitorResource + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getmarketplacesaasresourcedetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getmarketplacesaasresourcedetails.go new file mode 100644 index 000000000000..40e8b2921624 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getmarketplacesaasresourcedetails.go @@ -0,0 +1,59 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetMarketplaceSaaSResourceDetailsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MarketplaceSaaSResourceDetailsResponse +} + +// GetMarketplaceSaaSResourceDetails ... +func (c MonitorsClient) GetMarketplaceSaaSResourceDetails(ctx context.Context, id commonids.SubscriptionId, input MarketplaceSaaSResourceDetailsRequest) (result GetMarketplaceSaaSResourceDetailsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/providers/Dynatrace.Observability/getMarketplaceSaaSResourceDetails", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model MarketplaceSaaSResourceDetailsResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getmetricstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getmetricstatus.go new file mode 100644 index 000000000000..7af50028340b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getmetricstatus.go @@ -0,0 +1,54 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetMetricStatusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MetricsStatusResponse +} + +// GetMetricStatus ... +func (c MonitorsClient) GetMetricStatus(ctx context.Context, id MonitorId) (result GetMetricStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getMetricStatus", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model MetricsStatusResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getssodetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getssodetails.go new file mode 100644 index 000000000000..517d1f103cef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getssodetails.go @@ -0,0 +1,58 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSSODetailsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SSODetailsResponse +} + +// GetSSODetails ... +func (c MonitorsClient) GetSSODetails(ctx context.Context, id MonitorId, input SSODetailsRequest) (result GetSSODetailsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getSSODetails", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SSODetailsResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getvmhostpayload.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getvmhostpayload.go new file mode 100644 index 000000000000..9e78d397dedd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_getvmhostpayload.go @@ -0,0 +1,54 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVMHostPayloadOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VMExtensionPayload +} + +// GetVMHostPayload ... +func (c MonitorsClient) GetVMHostPayload(ctx context.Context, id MonitorId) (result GetVMHostPayloadOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getVMHostPayload", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VMExtensionPayload + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listappservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listappservices.go new file mode 100644 index 000000000000..6802f73d80ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listappservices.go @@ -0,0 +1,105 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAppServicesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AppServiceInfo +} + +type ListAppServicesCompleteResult struct { + LatestHttpResponse *http.Response + Items []AppServiceInfo +} + +type ListAppServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAppServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAppServices ... +func (c MonitorsClient) ListAppServices(ctx context.Context, id MonitorId) (result ListAppServicesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Pager: &ListAppServicesCustomPager{}, + Path: fmt.Sprintf("%s/listAppServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AppServiceInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAppServicesComplete retrieves all the results into a single object +func (c MonitorsClient) ListAppServicesComplete(ctx context.Context, id MonitorId) (ListAppServicesCompleteResult, error) { + return c.ListAppServicesCompleteMatchingPredicate(ctx, id, AppServiceInfoOperationPredicate{}) +} + +// ListAppServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MonitorsClient) ListAppServicesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate AppServiceInfoOperationPredicate) (result ListAppServicesCompleteResult, err error) { + items := make([]AppServiceInfo, 0) + + resp, err := c.ListAppServices(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAppServicesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listbyresourcegroup.go new file mode 100644 index 000000000000..1f16f7513cb7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]MonitorResource +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []MonitorResource +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c MonitorsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Dynatrace.Observability/monitors", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]MonitorResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c MonitorsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, MonitorResourceOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MonitorsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate MonitorResourceOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]MonitorResource, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listbysubscriptionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listbysubscriptionid.go new file mode 100644 index 000000000000..f1b3eb5736dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listbysubscriptionid.go @@ -0,0 +1,106 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionIdOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]MonitorResource +} + +type ListBySubscriptionIdCompleteResult struct { + LatestHttpResponse *http.Response + Items []MonitorResource +} + +type ListBySubscriptionIdCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionIdCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListBySubscriptionId ... +func (c MonitorsClient) ListBySubscriptionId(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionIdOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionIdCustomPager{}, + Path: fmt.Sprintf("%s/providers/Dynatrace.Observability/monitors", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]MonitorResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBySubscriptionIdComplete retrieves all the results into a single object +func (c MonitorsClient) ListBySubscriptionIdComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionIdCompleteResult, error) { + return c.ListBySubscriptionIdCompleteMatchingPredicate(ctx, id, MonitorResourceOperationPredicate{}) +} + +// ListBySubscriptionIdCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MonitorsClient) ListBySubscriptionIdCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate MonitorResourceOperationPredicate) (result ListBySubscriptionIdCompleteResult, err error) { + items := make([]MonitorResource, 0) + + resp, err := c.ListBySubscriptionId(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBySubscriptionIdCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listhosts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listhosts.go new file mode 100644 index 000000000000..e4352ba0ab25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listhosts.go @@ -0,0 +1,105 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListHostsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VMInfo +} + +type ListHostsCompleteResult struct { + LatestHttpResponse *http.Response + Items []VMInfo +} + +type ListHostsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListHostsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListHosts ... +func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId) (result ListHostsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Pager: &ListHostsCustomPager{}, + Path: fmt.Sprintf("%s/listHosts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VMInfo `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListHostsComplete retrieves all the results into a single object +func (c MonitorsClient) ListHostsComplete(ctx context.Context, id MonitorId) (ListHostsCompleteResult, error) { + return c.ListHostsCompleteMatchingPredicate(ctx, id, VMInfoOperationPredicate{}) +} + +// ListHostsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MonitorsClient) ListHostsCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate VMInfoOperationPredicate) (result ListHostsCompleteResult, err error) { + items := make([]VMInfo, 0) + + resp, err := c.ListHosts(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListHostsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listlinkableenvironments.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listlinkableenvironments.go new file mode 100644 index 000000000000..d003433e729c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listlinkableenvironments.go @@ -0,0 +1,105 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListLinkableEnvironmentsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]LinkableEnvironmentResponse +} + +type ListLinkableEnvironmentsCompleteResult struct { + LatestHttpResponse *http.Response + Items []LinkableEnvironmentResponse +} + +type ListLinkableEnvironmentsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListLinkableEnvironmentsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListLinkableEnvironments ... +func (c MonitorsClient) ListLinkableEnvironments(ctx context.Context, id MonitorId, input LinkableEnvironmentRequest) (result ListLinkableEnvironmentsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Pager: &ListLinkableEnvironmentsCustomPager{}, + Path: fmt.Sprintf("%s/listLinkableEnvironments", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]LinkableEnvironmentResponse `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListLinkableEnvironmentsComplete retrieves all the results into a single object +func (c MonitorsClient) ListLinkableEnvironmentsComplete(ctx context.Context, id MonitorId, input LinkableEnvironmentRequest) (ListLinkableEnvironmentsCompleteResult, error) { + return c.ListLinkableEnvironmentsCompleteMatchingPredicate(ctx, id, input, LinkableEnvironmentResponseOperationPredicate{}) +} + +// ListLinkableEnvironmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MonitorsClient) ListLinkableEnvironmentsCompleteMatchingPredicate(ctx context.Context, id MonitorId, input LinkableEnvironmentRequest, predicate LinkableEnvironmentResponseOperationPredicate) (result ListLinkableEnvironmentsCompleteResult, err error) { + items := make([]LinkableEnvironmentResponse, 0) + + resp, err := c.ListLinkableEnvironments(ctx, id, input) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListLinkableEnvironmentsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listmonitoredresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listmonitoredresources.go new file mode 100644 index 000000000000..d0bd5640be23 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_listmonitoredresources.go @@ -0,0 +1,105 @@ +package monitors + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListMonitoredResourcesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]MonitoredResource +} + +type ListMonitoredResourcesCompleteResult struct { + LatestHttpResponse *http.Response + Items []MonitoredResource +} + +type ListMonitoredResourcesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListMonitoredResourcesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListMonitoredResources ... +func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId) (result ListMonitoredResourcesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Pager: &ListMonitoredResourcesCustomPager{}, + Path: fmt.Sprintf("%s/listMonitoredResources", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]MonitoredResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListMonitoredResourcesComplete retrieves all the results into a single object +func (c MonitorsClient) ListMonitoredResourcesComplete(ctx context.Context, id MonitorId) (ListMonitoredResourcesCompleteResult, error) { + return c.ListMonitoredResourcesCompleteMatchingPredicate(ctx, id, MonitoredResourceOperationPredicate{}) +} + +// ListMonitoredResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MonitorsClient) ListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceOperationPredicate) (result ListMonitoredResourcesCompleteResult, err error) { + items := make([]MonitoredResource, 0) + + resp, err := c.ListMonitoredResources(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListMonitoredResourcesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_update.go new file mode 100644 index 000000000000..c93b0c76d999 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/method_update.go @@ -0,0 +1,57 @@ +package monitors + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MonitorResource +} + +// Update ... +func (c MonitorsClient) Update(ctx context.Context, id MonitorId, input MonitorResourceUpdate) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model MonitorResource + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_accountinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_accountinfo.go new file mode 100644 index 000000000000..ea70e1e2e688 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_accountinfo.go @@ -0,0 +1,9 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountInfo struct { + AccountId *string `json:"accountId,omitempty"` + RegionId *string `json:"regionId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_appserviceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_appserviceinfo.go new file mode 100644 index 000000000000..871a36881b64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_appserviceinfo.go @@ -0,0 +1,16 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServiceInfo struct { + AutoUpdateSetting *AutoUpdateSetting `json:"autoUpdateSetting,omitempty"` + AvailabilityState *AvailabilityState `json:"availabilityState,omitempty"` + HostGroup *string `json:"hostGroup,omitempty"` + HostName *string `json:"hostName,omitempty"` + LogModule *LogModule `json:"logModule,omitempty"` + MonitoringType *MonitoringType `json:"monitoringType,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + UpdateStatus *UpdateStatus `json:"updateStatus,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_dynatraceenvironmentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_dynatraceenvironmentproperties.go new file mode 100644 index 000000000000..1fea77b2533f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_dynatraceenvironmentproperties.go @@ -0,0 +1,11 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DynatraceEnvironmentProperties struct { + AccountInfo *AccountInfo `json:"accountInfo,omitempty"` + EnvironmentInfo *EnvironmentInfo `json:"environmentInfo,omitempty"` + SingleSignOnProperties *DynatraceSingleSignOnProperties `json:"singleSignOnProperties,omitempty"` + UserId *string `json:"userId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_dynatracesinglesignonproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_dynatracesinglesignonproperties.go new file mode 100644 index 000000000000..e4127bd73179 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_dynatracesinglesignonproperties.go @@ -0,0 +1,12 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DynatraceSingleSignOnProperties struct { + AadDomains *[]string `json:"aadDomains,omitempty"` + EnterpriseAppId *string `json:"enterpriseAppId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SingleSignOnState *SingleSignOnStates `json:"singleSignOnState,omitempty"` + SingleSignOnURL *string `json:"singleSignOnUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_environmentinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_environmentinfo.go new file mode 100644 index 000000000000..84092e2b7a8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_environmentinfo.go @@ -0,0 +1,11 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EnvironmentInfo struct { + EnvironmentId *string `json:"environmentId,omitempty"` + IngestionKey *string `json:"ingestionKey,omitempty"` + LandingURL *string `json:"landingURL,omitempty"` + LogsIngestionEndpoint *string `json:"logsIngestionEndpoint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_identityproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_identityproperties.go new file mode 100644 index 000000000000..4d07c3343973 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_identityproperties.go @@ -0,0 +1,11 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IdentityProperties struct { + PrincipalId *string `json:"principalId,omitempty"` + TenantId *string `json:"tenantId,omitempty"` + Type ManagedIdentityType `json:"type"` + UserAssignedIdentities *map[string]UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_linkableenvironmentrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_linkableenvironmentrequest.go new file mode 100644 index 000000000000..c6c728c183e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_linkableenvironmentrequest.go @@ -0,0 +1,10 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LinkableEnvironmentRequest struct { + Region string `json:"region"` + TenantId string `json:"tenantId"` + UserPrincipal string `json:"userPrincipal"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_linkableenvironmentresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_linkableenvironmentresponse.go new file mode 100644 index 000000000000..aa1d21d9ce07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_linkableenvironmentresponse.go @@ -0,0 +1,10 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LinkableEnvironmentResponse struct { + EnvironmentId *string `json:"environmentId,omitempty"` + EnvironmentName *string `json:"environmentName,omitempty"` + PlanData *PlanData `json:"planData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_marketplacesaasresourcedetailsrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_marketplacesaasresourcedetailsrequest.go new file mode 100644 index 000000000000..2abdb1801f49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_marketplacesaasresourcedetailsrequest.go @@ -0,0 +1,8 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MarketplaceSaaSResourceDetailsRequest struct { + TenantId string `json:"tenantId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_marketplacesaasresourcedetailsresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_marketplacesaasresourcedetailsresponse.go new file mode 100644 index 000000000000..42b8b31dafa0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_marketplacesaasresourcedetailsresponse.go @@ -0,0 +1,10 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MarketplaceSaaSResourceDetailsResponse struct { + MarketplaceSaaSResourceId *string `json:"marketplaceSaaSResourceId,omitempty"` + MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"` + PlanId *string `json:"planId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_metricsstatusresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_metricsstatusresponse.go new file mode 100644 index 000000000000..d04cdbc51626 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_metricsstatusresponse.go @@ -0,0 +1,8 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MetricsStatusResponse struct { + AzureResourceIds *[]string `json:"azureResourceIds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitoredresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitoredresource.go new file mode 100644 index 000000000000..5c2b3a677e26 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitoredresource.go @@ -0,0 +1,12 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MonitoredResource struct { + Id *string `json:"id,omitempty"` + ReasonForLogsStatus *string `json:"reasonForLogsStatus,omitempty"` + ReasonForMetricsStatus *string `json:"reasonForMetricsStatus,omitempty"` + SendingLogs *SendingLogsStatus `json:"sendingLogs,omitempty"` + SendingMetrics *SendingMetricsStatus `json:"sendingMetrics,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorproperties.go new file mode 100644 index 000000000000..aea9c3bac03f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorproperties.go @@ -0,0 +1,15 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MonitorProperties struct { + DynatraceEnvironmentProperties *DynatraceEnvironmentProperties `json:"dynatraceEnvironmentProperties,omitempty"` + LiftrResourceCategory *LiftrResourceCategories `json:"liftrResourceCategory,omitempty"` + LiftrResourcePreference *int64 `json:"liftrResourcePreference,omitempty"` + MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"` + MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty"` + PlanData *PlanData `json:"planData,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + UserInfo *UserInfo `json:"userInfo,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorresource.go new file mode 100644 index 000000000000..41a59fc156c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorresource.go @@ -0,0 +1,19 @@ +package monitors + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MonitorResource struct { + Id *string `json:"id,omitempty"` + Identity *IdentityProperties `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties MonitorProperties `json:"properties"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorresourceupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorresourceupdate.go new file mode 100644 index 000000000000..e4b9650dd5ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_monitorresourceupdate.go @@ -0,0 +1,8 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MonitorResourceUpdate struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_plandata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_plandata.go new file mode 100644 index 000000000000..00c8e7373ed2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_plandata.go @@ -0,0 +1,29 @@ +package monitors + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PlanData struct { + BillingCycle *string `json:"billingCycle,omitempty"` + EffectiveDate *string `json:"effectiveDate,omitempty"` + PlanDetails *string `json:"planDetails,omitempty"` + UsageType *string `json:"usageType,omitempty"` +} + +func (o *PlanData) GetEffectiveDateAsTime() (*time.Time, error) { + if o.EffectiveDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EffectiveDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *PlanData) SetEffectiveDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EffectiveDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_ssodetailsrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_ssodetailsrequest.go new file mode 100644 index 000000000000..13edd253ec65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_ssodetailsrequest.go @@ -0,0 +1,8 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SSODetailsRequest struct { + UserPrincipal string `json:"userPrincipal"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_ssodetailsresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_ssodetailsresponse.go new file mode 100644 index 000000000000..e25604ac82f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_ssodetailsresponse.go @@ -0,0 +1,12 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SSODetailsResponse struct { + AadDomains *[]string `json:"aadDomains,omitempty"` + AdminUsers *[]string `json:"adminUsers,omitempty"` + IsSsoEnabled *SSOStatus `json:"isSsoEnabled,omitempty"` + MetadataURL *string `json:"metadataUrl,omitempty"` + SingleSignOnURL *string `json:"singleSignOnUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_userassignedidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_userassignedidentity.go new file mode 100644 index 000000000000..e0be88201f27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_userassignedidentity.go @@ -0,0 +1,9 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UserAssignedIdentity struct { + ClientId string `json:"clientId"` + PrincipalId string `json:"principalId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_userinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_userinfo.go new file mode 100644 index 000000000000..f46f2830381f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_userinfo.go @@ -0,0 +1,12 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UserInfo struct { + Country *string `json:"country,omitempty"` + EmailAddress *string `json:"emailAddress,omitempty"` + FirstName *string `json:"firstName,omitempty"` + LastName *string `json:"lastName,omitempty"` + PhoneNumber *string `json:"phoneNumber,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_vmextensionpayload.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_vmextensionpayload.go new file mode 100644 index 000000000000..c3ed74aee1a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_vmextensionpayload.go @@ -0,0 +1,9 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMExtensionPayload struct { + EnvironmentId *string `json:"environmentId,omitempty"` + IngestionKey *string `json:"ingestionKey,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_vminfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_vminfo.go new file mode 100644 index 000000000000..02fe3b6e73b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/model_vminfo.go @@ -0,0 +1,16 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VMInfo struct { + AutoUpdateSetting *AutoUpdateSetting `json:"autoUpdateSetting,omitempty"` + AvailabilityState *AvailabilityState `json:"availabilityState,omitempty"` + HostGroup *string `json:"hostGroup,omitempty"` + HostName *string `json:"hostName,omitempty"` + LogModule *LogModule `json:"logModule,omitempty"` + MonitoringType *MonitoringType `json:"monitoringType,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + UpdateStatus *UpdateStatus `json:"updateStatus,omitempty"` + Version *string `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/predicates.go new file mode 100644 index 000000000000..0f71e7af6b19 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/predicates.go @@ -0,0 +1,129 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AppServiceInfoOperationPredicate struct { + HostGroup *string + HostName *string + ResourceId *string + Version *string +} + +func (p AppServiceInfoOperationPredicate) Matches(input AppServiceInfo) bool { + + if p.HostGroup != nil && (input.HostGroup == nil || *p.HostGroup != *input.HostGroup) { + return false + } + + if p.HostName != nil && (input.HostName == nil || *p.HostName != *input.HostName) { + return false + } + + if p.ResourceId != nil && (input.ResourceId == nil || *p.ResourceId != *input.ResourceId) { + return false + } + + if p.Version != nil && (input.Version == nil || *p.Version != *input.Version) { + return false + } + + return true +} + +type LinkableEnvironmentResponseOperationPredicate struct { + EnvironmentId *string + EnvironmentName *string +} + +func (p LinkableEnvironmentResponseOperationPredicate) Matches(input LinkableEnvironmentResponse) bool { + + if p.EnvironmentId != nil && (input.EnvironmentId == nil || *p.EnvironmentId != *input.EnvironmentId) { + return false + } + + if p.EnvironmentName != nil && (input.EnvironmentName == nil || *p.EnvironmentName != *input.EnvironmentName) { + return false + } + + return true +} + +type MonitorResourceOperationPredicate struct { + Id *string + Location *string + Name *string + Type *string +} + +func (p MonitorResourceOperationPredicate) Matches(input MonitorResource) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type MonitoredResourceOperationPredicate struct { + Id *string + ReasonForLogsStatus *string + ReasonForMetricsStatus *string +} + +func (p MonitoredResourceOperationPredicate) Matches(input MonitoredResource) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.ReasonForLogsStatus != nil && (input.ReasonForLogsStatus == nil || *p.ReasonForLogsStatus != *input.ReasonForLogsStatus) { + return false + } + + if p.ReasonForMetricsStatus != nil && (input.ReasonForMetricsStatus == nil || *p.ReasonForMetricsStatus != *input.ReasonForMetricsStatus) { + return false + } + + return true +} + +type VMInfoOperationPredicate struct { + HostGroup *string + HostName *string + ResourceId *string + Version *string +} + +func (p VMInfoOperationPredicate) Matches(input VMInfo) bool { + + if p.HostGroup != nil && (input.HostGroup == nil || *p.HostGroup != *input.HostGroup) { + return false + } + + if p.HostName != nil && (input.HostName == nil || *p.HostName != *input.HostName) { + return false + } + + if p.ResourceId != nil && (input.ResourceId == nil || *p.ResourceId != *input.ResourceId) { + return false + } + + if p.Version != nil && (input.Version == nil || *p.Version != *input.Version) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/version.go new file mode 100644 index 000000000000..003df71b2e49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors/version.go @@ -0,0 +1,10 @@ +package monitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-04-27" + +func userAgent() string { + return "hashicorp/go-azure-sdk/monitors/2023-04-27" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/README.md new file mode 100644 index 000000000000..415eb98681e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/README.md @@ -0,0 +1,150 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces` Documentation + +The `namespaces` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2023-12-15-preview`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces" +``` + + +### Client Initialization + +```go +client := namespaces.NewNamespacesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NamespacesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") + +payload := namespaces.Namespace{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NamespacesClient.Delete` + +```go +ctx := context.TODO() +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NamespacesClient.Get` + +```go +ctx := context.TODO() +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamespacesClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id, namespaces.DefaultListByResourceGroupOperationOptions())` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id, namespaces.DefaultListByResourceGroupOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NamespacesClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id, namespaces.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id, namespaces.DefaultListBySubscriptionOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NamespacesClient.ListSharedAccessKeys` + +```go +ctx := context.TODO() +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") + +read, err := client.ListSharedAccessKeys(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NamespacesClient.RegenerateKey` + +```go +ctx := context.TODO() +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") + +payload := namespaces.NamespaceRegenerateKeyRequest{ + // ... +} + + +if err := client.RegenerateKeyThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NamespacesClient.Update` + +```go +ctx := context.TODO() +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") + +payload := namespaces.NamespaceUpdateParameters{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/client.go new file mode 100644 index 000000000000..6a91c8e7de9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/client.go @@ -0,0 +1,26 @@ +package namespaces + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespacesClient struct { + Client *resourcemanager.Client +} + +func NewNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "namespaces", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NamespacesClient: %+v", err) + } + + return &NamespacesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/constants.go new file mode 100644 index 000000000000..615d8104f782 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/constants.go @@ -0,0 +1,512 @@ +package namespaces + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AlternativeAuthenticationNameSource string + +const ( + AlternativeAuthenticationNameSourceClientCertificateDns AlternativeAuthenticationNameSource = "ClientCertificateDns" + AlternativeAuthenticationNameSourceClientCertificateEmail AlternativeAuthenticationNameSource = "ClientCertificateEmail" + AlternativeAuthenticationNameSourceClientCertificateIP AlternativeAuthenticationNameSource = "ClientCertificateIp" + AlternativeAuthenticationNameSourceClientCertificateSubject AlternativeAuthenticationNameSource = "ClientCertificateSubject" + AlternativeAuthenticationNameSourceClientCertificateUri AlternativeAuthenticationNameSource = "ClientCertificateUri" +) + +func PossibleValuesForAlternativeAuthenticationNameSource() []string { + return []string{ + string(AlternativeAuthenticationNameSourceClientCertificateDns), + string(AlternativeAuthenticationNameSourceClientCertificateEmail), + string(AlternativeAuthenticationNameSourceClientCertificateIP), + string(AlternativeAuthenticationNameSourceClientCertificateSubject), + string(AlternativeAuthenticationNameSourceClientCertificateUri), + } +} + +func (s *AlternativeAuthenticationNameSource) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAlternativeAuthenticationNameSource(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAlternativeAuthenticationNameSource(input string) (*AlternativeAuthenticationNameSource, error) { + vals := map[string]AlternativeAuthenticationNameSource{ + "clientcertificatedns": AlternativeAuthenticationNameSourceClientCertificateDns, + "clientcertificateemail": AlternativeAuthenticationNameSourceClientCertificateEmail, + "clientcertificateip": AlternativeAuthenticationNameSourceClientCertificateIP, + "clientcertificatesubject": AlternativeAuthenticationNameSourceClientCertificateSubject, + "clientcertificateuri": AlternativeAuthenticationNameSourceClientCertificateUri, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AlternativeAuthenticationNameSource(input) + return &out, nil +} + +type IPActionType string + +const ( + IPActionTypeAllow IPActionType = "Allow" +) + +func PossibleValuesForIPActionType() []string { + return []string{ + string(IPActionTypeAllow), + } +} + +func (s *IPActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPActionType(input string) (*IPActionType, error) { + vals := map[string]IPActionType{ + "allow": IPActionTypeAllow, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPActionType(input) + return &out, nil +} + +type NamespaceProvisioningState string + +const ( + NamespaceProvisioningStateCanceled NamespaceProvisioningState = "Canceled" + NamespaceProvisioningStateCreateFailed NamespaceProvisioningState = "CreateFailed" + NamespaceProvisioningStateCreating NamespaceProvisioningState = "Creating" + NamespaceProvisioningStateDeleteFailed NamespaceProvisioningState = "DeleteFailed" + NamespaceProvisioningStateDeleted NamespaceProvisioningState = "Deleted" + NamespaceProvisioningStateDeleting NamespaceProvisioningState = "Deleting" + NamespaceProvisioningStateFailed NamespaceProvisioningState = "Failed" + NamespaceProvisioningStateSucceeded NamespaceProvisioningState = "Succeeded" + NamespaceProvisioningStateUpdatedFailed NamespaceProvisioningState = "UpdatedFailed" + NamespaceProvisioningStateUpdating NamespaceProvisioningState = "Updating" +) + +func PossibleValuesForNamespaceProvisioningState() []string { + return []string{ + string(NamespaceProvisioningStateCanceled), + string(NamespaceProvisioningStateCreateFailed), + string(NamespaceProvisioningStateCreating), + string(NamespaceProvisioningStateDeleteFailed), + string(NamespaceProvisioningStateDeleted), + string(NamespaceProvisioningStateDeleting), + string(NamespaceProvisioningStateFailed), + string(NamespaceProvisioningStateSucceeded), + string(NamespaceProvisioningStateUpdatedFailed), + string(NamespaceProvisioningStateUpdating), + } +} + +func (s *NamespaceProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNamespaceProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNamespaceProvisioningState(input string) (*NamespaceProvisioningState, error) { + vals := map[string]NamespaceProvisioningState{ + "canceled": NamespaceProvisioningStateCanceled, + "createfailed": NamespaceProvisioningStateCreateFailed, + "creating": NamespaceProvisioningStateCreating, + "deletefailed": NamespaceProvisioningStateDeleteFailed, + "deleted": NamespaceProvisioningStateDeleted, + "deleting": NamespaceProvisioningStateDeleting, + "failed": NamespaceProvisioningStateFailed, + "succeeded": NamespaceProvisioningStateSucceeded, + "updatedfailed": NamespaceProvisioningStateUpdatedFailed, + "updating": NamespaceProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NamespaceProvisioningState(input) + return &out, nil +} + +type PersistedConnectionStatus string + +const ( + PersistedConnectionStatusApproved PersistedConnectionStatus = "Approved" + PersistedConnectionStatusDisconnected PersistedConnectionStatus = "Disconnected" + PersistedConnectionStatusPending PersistedConnectionStatus = "Pending" + PersistedConnectionStatusRejected PersistedConnectionStatus = "Rejected" +) + +func PossibleValuesForPersistedConnectionStatus() []string { + return []string{ + string(PersistedConnectionStatusApproved), + string(PersistedConnectionStatusDisconnected), + string(PersistedConnectionStatusPending), + string(PersistedConnectionStatusRejected), + } +} + +func (s *PersistedConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePersistedConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePersistedConnectionStatus(input string) (*PersistedConnectionStatus, error) { + vals := map[string]PersistedConnectionStatus{ + "approved": PersistedConnectionStatusApproved, + "disconnected": PersistedConnectionStatusDisconnected, + "pending": PersistedConnectionStatusPending, + "rejected": PersistedConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PersistedConnectionStatus(input) + return &out, nil +} + +type PublicNetworkAccess string + +const ( + PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" + PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" + PublicNetworkAccessSecuredByPerimeter PublicNetworkAccess = "SecuredByPerimeter" +) + +func PossibleValuesForPublicNetworkAccess() []string { + return []string{ + string(PublicNetworkAccessDisabled), + string(PublicNetworkAccessEnabled), + string(PublicNetworkAccessSecuredByPerimeter), + } +} + +func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicNetworkAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicNetworkAccess(input string) (*PublicNetworkAccess, error) { + vals := map[string]PublicNetworkAccess{ + "disabled": PublicNetworkAccessDisabled, + "enabled": PublicNetworkAccessEnabled, + "securedbyperimeter": PublicNetworkAccessSecuredByPerimeter, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicNetworkAccess(input) + return &out, nil +} + +type ResourceProvisioningState string + +const ( + ResourceProvisioningStateCanceled ResourceProvisioningState = "Canceled" + ResourceProvisioningStateCreating ResourceProvisioningState = "Creating" + ResourceProvisioningStateDeleting ResourceProvisioningState = "Deleting" + ResourceProvisioningStateFailed ResourceProvisioningState = "Failed" + ResourceProvisioningStateSucceeded ResourceProvisioningState = "Succeeded" + ResourceProvisioningStateUpdating ResourceProvisioningState = "Updating" +) + +func PossibleValuesForResourceProvisioningState() []string { + return []string{ + string(ResourceProvisioningStateCanceled), + string(ResourceProvisioningStateCreating), + string(ResourceProvisioningStateDeleting), + string(ResourceProvisioningStateFailed), + string(ResourceProvisioningStateSucceeded), + string(ResourceProvisioningStateUpdating), + } +} + +func (s *ResourceProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResourceProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResourceProvisioningState(input string) (*ResourceProvisioningState, error) { + vals := map[string]ResourceProvisioningState{ + "canceled": ResourceProvisioningStateCanceled, + "creating": ResourceProvisioningStateCreating, + "deleting": ResourceProvisioningStateDeleting, + "failed": ResourceProvisioningStateFailed, + "succeeded": ResourceProvisioningStateSucceeded, + "updating": ResourceProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResourceProvisioningState(input) + return &out, nil +} + +type RoutingIdentityType string + +const ( + RoutingIdentityTypeNone RoutingIdentityType = "None" + RoutingIdentityTypeSystemAssigned RoutingIdentityType = "SystemAssigned" + RoutingIdentityTypeUserAssigned RoutingIdentityType = "UserAssigned" +) + +func PossibleValuesForRoutingIdentityType() []string { + return []string{ + string(RoutingIdentityTypeNone), + string(RoutingIdentityTypeSystemAssigned), + string(RoutingIdentityTypeUserAssigned), + } +} + +func (s *RoutingIdentityType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRoutingIdentityType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRoutingIdentityType(input string) (*RoutingIdentityType, error) { + vals := map[string]RoutingIdentityType{ + "none": RoutingIdentityTypeNone, + "systemassigned": RoutingIdentityTypeSystemAssigned, + "userassigned": RoutingIdentityTypeUserAssigned, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RoutingIdentityType(input) + return &out, nil +} + +type SkuName string + +const ( + SkuNameStandard SkuName = "Standard" +) + +func PossibleValuesForSkuName() []string { + return []string{ + string(SkuNameStandard), + } +} + +func (s *SkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSkuName(input string) (*SkuName, error) { + vals := map[string]SkuName{ + "standard": SkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SkuName(input) + return &out, nil +} + +type StaticRoutingEnrichmentType string + +const ( + StaticRoutingEnrichmentTypeString StaticRoutingEnrichmentType = "String" +) + +func PossibleValuesForStaticRoutingEnrichmentType() []string { + return []string{ + string(StaticRoutingEnrichmentTypeString), + } +} + +func (s *StaticRoutingEnrichmentType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseStaticRoutingEnrichmentType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseStaticRoutingEnrichmentType(input string) (*StaticRoutingEnrichmentType, error) { + vals := map[string]StaticRoutingEnrichmentType{ + "string": StaticRoutingEnrichmentTypeString, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := StaticRoutingEnrichmentType(input) + return &out, nil +} + +type TlsVersion string + +const ( + TlsVersionOnePointOne TlsVersion = "1.1" + TlsVersionOnePointTwo TlsVersion = "1.2" + TlsVersionOnePointZero TlsVersion = "1.0" +) + +func PossibleValuesForTlsVersion() []string { + return []string{ + string(TlsVersionOnePointOne), + string(TlsVersionOnePointTwo), + string(TlsVersionOnePointZero), + } +} + +func (s *TlsVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTlsVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTlsVersion(input string) (*TlsVersion, error) { + vals := map[string]TlsVersion{ + "1.1": TlsVersionOnePointOne, + "1.2": TlsVersionOnePointTwo, + "1.0": TlsVersionOnePointZero, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TlsVersion(input) + return &out, nil +} + +type TopicSpacesConfigurationState string + +const ( + TopicSpacesConfigurationStateDisabled TopicSpacesConfigurationState = "Disabled" + TopicSpacesConfigurationStateEnabled TopicSpacesConfigurationState = "Enabled" +) + +func PossibleValuesForTopicSpacesConfigurationState() []string { + return []string{ + string(TopicSpacesConfigurationStateDisabled), + string(TopicSpacesConfigurationStateEnabled), + } +} + +func (s *TopicSpacesConfigurationState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTopicSpacesConfigurationState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTopicSpacesConfigurationState(input string) (*TopicSpacesConfigurationState, error) { + vals := map[string]TopicSpacesConfigurationState{ + "disabled": TopicSpacesConfigurationStateDisabled, + "enabled": TopicSpacesConfigurationStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TopicSpacesConfigurationState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/id_namespace.go new file mode 100644 index 000000000000..d2c56b1ab084 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/id_namespace.go @@ -0,0 +1,130 @@ +package namespaces + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NamespaceId{}) +} + +var _ resourceids.ResourceId = &NamespaceId{} + +// NamespaceId is a struct representing the Resource ID for a Namespace +type NamespaceId struct { + SubscriptionId string + ResourceGroupName string + NamespaceName string +} + +// NewNamespaceID returns a new NamespaceId struct +func NewNamespaceID(subscriptionId string, resourceGroupName string, namespaceName string) NamespaceId { + return NamespaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NamespaceName: namespaceName, + } +} + +// ParseNamespaceID parses 'input' into a NamespaceId +func ParseNamespaceID(input string) (*NamespaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&NamespaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NamespaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNamespaceIDInsensitively parses 'input' case-insensitively into a NamespaceId +// note: this method should only be used for API response data and not user input +func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&NamespaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NamespaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NamespaceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NamespaceName, ok = input.Parsed["namespaceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "namespaceName", input) + } + + return nil +} + +// ValidateNamespaceID checks that 'input' can be parsed as a Namespace ID +func ValidateNamespaceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNamespaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Namespace ID +func (id NamespaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.EventGrid/namespaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NamespaceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Namespace ID +func (id NamespaceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), + resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), + } +} + +// String returns a human-readable description of this Namespace ID +func (id NamespaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Namespace Name: %q", id.NamespaceName), + } + return fmt.Sprintf("Namespace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_createorupdate.go new file mode 100644 index 000000000000..8224336d8fcc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_createorupdate.go @@ -0,0 +1,75 @@ +package namespaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Namespace +} + +// CreateOrUpdate ... +func (c NamespacesClient) CreateOrUpdate(ctx context.Context, id NamespaceId, input Namespace) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c NamespacesClient) CreateOrUpdateThenPoll(ctx context.Context, id NamespaceId, input Namespace) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_delete.go new file mode 100644 index 000000000000..e78bdc02c31e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_delete.go @@ -0,0 +1,71 @@ +package namespaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c NamespacesClient) Delete(ctx context.Context, id NamespaceId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NamespacesClient) DeleteThenPoll(ctx context.Context, id NamespaceId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_get.go new file mode 100644 index 000000000000..caafd0ac34aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_get.go @@ -0,0 +1,53 @@ +package namespaces + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Namespace +} + +// Get ... +func (c NamespacesClient) Get(ctx context.Context, id NamespaceId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Namespace + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbyresourcegroup.go new file mode 100644 index 000000000000..7e5656234383 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbyresourcegroup.go @@ -0,0 +1,139 @@ +package namespaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Namespace +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []Namespace +} + +type ListByResourceGroupOperationOptions struct { + Filter *string + Top *int64 +} + +func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions { + return ListByResourceGroupOperationOptions{} +} + +func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c NamespacesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/namespaces", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Namespace `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c NamespacesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, options, NamespaceOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NamespacesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate NamespaceOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]Namespace, 0) + + resp, err := c.ListByResourceGroup(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbysubscription.go new file mode 100644 index 000000000000..e335826bd33a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listbysubscription.go @@ -0,0 +1,139 @@ +package namespaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Namespace +} + +type ListBySubscriptionCompleteResult struct { + LatestHttpResponse *http.Response + Items []Namespace +} + +type ListBySubscriptionOperationOptions struct { + Filter *string + Top *int64 +} + +func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions { + return ListBySubscriptionOperationOptions{} +} + +func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListBySubscription ... +func (c NamespacesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.EventGrid/namespaces", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Namespace `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBySubscriptionComplete retrieves all the results into a single object +func (c NamespacesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error) { + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, options, NamespaceOperationPredicate{}) +} + +// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NamespacesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate NamespaceOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { + items := make([]Namespace, 0) + + resp, err := c.ListBySubscription(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBySubscriptionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listsharedaccesskeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listsharedaccesskeys.go new file mode 100644 index 000000000000..9a3e27a52fb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_listsharedaccesskeys.go @@ -0,0 +1,54 @@ +package namespaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListSharedAccessKeysOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NamespaceSharedAccessKeys +} + +// ListSharedAccessKeys ... +func (c NamespacesClient) ListSharedAccessKeys(ctx context.Context, id NamespaceId) (result ListSharedAccessKeysOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listKeys", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NamespaceSharedAccessKeys + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_regeneratekey.go new file mode 100644 index 000000000000..b0af2732a92b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_regeneratekey.go @@ -0,0 +1,75 @@ +package namespaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RegenerateKeyOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NamespaceSharedAccessKeys +} + +// RegenerateKey ... +func (c NamespacesClient) RegenerateKey(ctx context.Context, id NamespaceId, input NamespaceRegenerateKeyRequest) (result RegenerateKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/regenerateKey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RegenerateKeyThenPoll performs RegenerateKey then polls until it's completed +func (c NamespacesClient) RegenerateKeyThenPoll(ctx context.Context, id NamespaceId, input NamespaceRegenerateKeyRequest) error { + result, err := c.RegenerateKey(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RegenerateKey: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RegenerateKey: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_update.go new file mode 100644 index 000000000000..fe9a7d7f5fec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/method_update.go @@ -0,0 +1,75 @@ +package namespaces + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Namespace +} + +// Update ... +func (c NamespacesClient) Update(ctx context.Context, id NamespaceId, input NamespaceUpdateParameters) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c NamespacesClient) UpdateThenPoll(ctx context.Context, id NamespaceId, input NamespaceUpdateParameters) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_clientauthenticationsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_clientauthenticationsettings.go new file mode 100644 index 000000000000..f929380ecf87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_clientauthenticationsettings.go @@ -0,0 +1,8 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ClientAuthenticationSettings struct { + AlternativeAuthenticationNameSources *[]AlternativeAuthenticationNameSource `json:"alternativeAuthenticationNameSources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_connectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_connectionstate.go new file mode 100644 index 000000000000..0a8358667924 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_connectionstate.go @@ -0,0 +1,10 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *PersistedConnectionStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_dynamicroutingenrichment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_dynamicroutingenrichment.go new file mode 100644 index 000000000000..a6512573a419 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_dynamicroutingenrichment.go @@ -0,0 +1,9 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DynamicRoutingEnrichment struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_inboundiprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_inboundiprule.go new file mode 100644 index 000000000000..000c22ece069 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_inboundiprule.go @@ -0,0 +1,9 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundIPRule struct { + Action *IPActionType `json:"action,omitempty"` + IPMask *string `json:"ipMask,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespace.go new file mode 100644 index 000000000000..e56e72f80f41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespace.go @@ -0,0 +1,21 @@ +package namespaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Namespace struct { + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *NamespaceProperties `json:"properties,omitempty"` + Sku *NamespaceSku `json:"sku,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceproperties.go new file mode 100644 index 000000000000..7a19c77f5a4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceproperties.go @@ -0,0 +1,15 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespaceProperties struct { + InboundIPRules *[]InboundIPRule `json:"inboundIpRules,omitempty"` + IsZoneRedundant *bool `json:"isZoneRedundant,omitempty"` + MinimumTlsVersionAllowed *TlsVersion `json:"minimumTlsVersionAllowed,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *NamespaceProvisioningState `json:"provisioningState,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + TopicSpacesConfiguration *TopicSpacesConfiguration `json:"topicSpacesConfiguration,omitempty"` + TopicsConfiguration *TopicsConfiguration `json:"topicsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceregeneratekeyrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceregeneratekeyrequest.go new file mode 100644 index 000000000000..25deb8172556 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceregeneratekeyrequest.go @@ -0,0 +1,8 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespaceRegenerateKeyRequest struct { + KeyName string `json:"keyName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespacesharedaccesskeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespacesharedaccesskeys.go new file mode 100644 index 000000000000..87905b10a372 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespacesharedaccesskeys.go @@ -0,0 +1,9 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespaceSharedAccessKeys struct { + Key1 *string `json:"key1,omitempty"` + Key2 *string `json:"key2,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespacesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespacesku.go new file mode 100644 index 000000000000..9fc2fd3dea3a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespacesku.go @@ -0,0 +1,9 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespaceSku struct { + Capacity *int64 `json:"capacity,omitempty"` + Name *SkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceupdateparameterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceupdateparameterproperties.go new file mode 100644 index 000000000000..04d5057699fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceupdateparameterproperties.go @@ -0,0 +1,10 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespaceUpdateParameterProperties struct { + InboundIPRules *[]InboundIPRule `json:"inboundIpRules,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + TopicSpacesConfiguration *UpdateTopicSpacesConfigurationInfo `json:"topicSpacesConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceupdateparameters.go new file mode 100644 index 000000000000..01f44a6c1c32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_namespaceupdateparameters.go @@ -0,0 +1,15 @@ +package namespaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespaceUpdateParameters struct { + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Properties *NamespaceUpdateParameterProperties `json:"properties,omitempty"` + Sku *NamespaceSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpoint.go new file mode 100644 index 000000000000..3dec0387e5f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpoint.go @@ -0,0 +1,8 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpointconnection.go new file mode 100644 index 000000000000..f4e365dfe178 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpointconnection.go @@ -0,0 +1,11 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..f17c6b6f00b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_privateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState *ConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_routingenrichments.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_routingenrichments.go new file mode 100644 index 000000000000..9aa3325d5a18 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_routingenrichments.go @@ -0,0 +1,51 @@ +package namespaces + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingEnrichments struct { + Dynamic *[]DynamicRoutingEnrichment `json:"dynamic,omitempty"` + Static *[]StaticRoutingEnrichment `json:"static,omitempty"` +} + +var _ json.Unmarshaler = &RoutingEnrichments{} + +func (s *RoutingEnrichments) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Dynamic *[]DynamicRoutingEnrichment `json:"dynamic,omitempty"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Dynamic = decoded.Dynamic + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling RoutingEnrichments into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["static"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling Static into list []json.RawMessage: %+v", err) + } + + output := make([]StaticRoutingEnrichment, 0) + for i, val := range listTemp { + impl, err := UnmarshalStaticRoutingEnrichmentImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'Static' for 'RoutingEnrichments': %+v", i, err) + } + output = append(output, impl) + } + s.Static = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_routingidentityinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_routingidentityinfo.go new file mode 100644 index 000000000000..e6611f3c03a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_routingidentityinfo.go @@ -0,0 +1,9 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIdentityInfo struct { + Type *RoutingIdentityType `json:"type,omitempty"` + UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_staticroutingenrichment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_staticroutingenrichment.go new file mode 100644 index 000000000000..661e77d9c98b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_staticroutingenrichment.go @@ -0,0 +1,76 @@ +package namespaces + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoutingEnrichment interface { + StaticRoutingEnrichment() BaseStaticRoutingEnrichmentImpl +} + +var _ StaticRoutingEnrichment = BaseStaticRoutingEnrichmentImpl{} + +type BaseStaticRoutingEnrichmentImpl struct { + Key *string `json:"key,omitempty"` + ValueType StaticRoutingEnrichmentType `json:"valueType"` +} + +func (s BaseStaticRoutingEnrichmentImpl) StaticRoutingEnrichment() BaseStaticRoutingEnrichmentImpl { + return s +} + +var _ StaticRoutingEnrichment = RawStaticRoutingEnrichmentImpl{} + +// RawStaticRoutingEnrichmentImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawStaticRoutingEnrichmentImpl struct { + staticRoutingEnrichment BaseStaticRoutingEnrichmentImpl + Type string + Values map[string]interface{} +} + +func (s RawStaticRoutingEnrichmentImpl) StaticRoutingEnrichment() BaseStaticRoutingEnrichmentImpl { + return s.staticRoutingEnrichment +} + +func UnmarshalStaticRoutingEnrichmentImplementation(input []byte) (StaticRoutingEnrichment, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling StaticRoutingEnrichment into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["valueType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "String") { + var out StaticStringRoutingEnrichment + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into StaticStringRoutingEnrichment: %+v", err) + } + return out, nil + } + + var parent BaseStaticRoutingEnrichmentImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseStaticRoutingEnrichmentImpl: %+v", err) + } + + return RawStaticRoutingEnrichmentImpl{ + staticRoutingEnrichment: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_staticstringroutingenrichment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_staticstringroutingenrichment.go new file mode 100644 index 000000000000..173569023605 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_staticstringroutingenrichment.go @@ -0,0 +1,52 @@ +package namespaces + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ StaticRoutingEnrichment = StaticStringRoutingEnrichment{} + +type StaticStringRoutingEnrichment struct { + Value *string `json:"value,omitempty"` + + // Fields inherited from StaticRoutingEnrichment + + Key *string `json:"key,omitempty"` + ValueType StaticRoutingEnrichmentType `json:"valueType"` +} + +func (s StaticStringRoutingEnrichment) StaticRoutingEnrichment() BaseStaticRoutingEnrichmentImpl { + return BaseStaticRoutingEnrichmentImpl{ + Key: s.Key, + ValueType: s.ValueType, + } +} + +var _ json.Marshaler = StaticStringRoutingEnrichment{} + +func (s StaticStringRoutingEnrichment) MarshalJSON() ([]byte, error) { + type wrapper StaticStringRoutingEnrichment + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling StaticStringRoutingEnrichment: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling StaticStringRoutingEnrichment: %+v", err) + } + + decoded["valueType"] = "String" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling StaticStringRoutingEnrichment: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_topicsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_topicsconfiguration.go new file mode 100644 index 000000000000..1a0e1ddaef96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_topicsconfiguration.go @@ -0,0 +1,8 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TopicsConfiguration struct { + Hostname *string `json:"hostname,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_topicspacesconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_topicspacesconfiguration.go new file mode 100644 index 000000000000..edf20989f9f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_topicspacesconfiguration.go @@ -0,0 +1,15 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TopicSpacesConfiguration struct { + ClientAuthentication *ClientAuthenticationSettings `json:"clientAuthentication,omitempty"` + Hostname *string `json:"hostname,omitempty"` + MaximumClientSessionsPerAuthenticationName *int64 `json:"maximumClientSessionsPerAuthenticationName,omitempty"` + MaximumSessionExpiryInHours *int64 `json:"maximumSessionExpiryInHours,omitempty"` + RouteTopicResourceId *string `json:"routeTopicResourceId,omitempty"` + RoutingEnrichments *RoutingEnrichments `json:"routingEnrichments,omitempty"` + RoutingIdentityInfo *RoutingIdentityInfo `json:"routingIdentityInfo,omitempty"` + State *TopicSpacesConfigurationState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_updatetopicspacesconfigurationinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_updatetopicspacesconfigurationinfo.go new file mode 100644 index 000000000000..162dfe5dc1b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/model_updatetopicspacesconfigurationinfo.go @@ -0,0 +1,14 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTopicSpacesConfigurationInfo struct { + ClientAuthentication *ClientAuthenticationSettings `json:"clientAuthentication,omitempty"` + MaximumClientSessionsPerAuthenticationName *int64 `json:"maximumClientSessionsPerAuthenticationName,omitempty"` + MaximumSessionExpiryInHours *int64 `json:"maximumSessionExpiryInHours,omitempty"` + RouteTopicResourceId *string `json:"routeTopicResourceId,omitempty"` + RoutingEnrichments *RoutingEnrichments `json:"routingEnrichments,omitempty"` + RoutingIdentityInfo *RoutingIdentityInfo `json:"routingIdentityInfo,omitempty"` + State *TopicSpacesConfigurationState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/predicates.go new file mode 100644 index 000000000000..16fd3a29338e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/predicates.go @@ -0,0 +1,32 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespaceOperationPredicate struct { + Id *string + Location *string + Name *string + Type *string +} + +func (p NamespaceOperationPredicate) Matches(input Namespace) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/version.go new file mode 100644 index 000000000000..9f052dd92470 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces/version.go @@ -0,0 +1,10 @@ +package namespaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-15-preview" + +func userAgent() string { + return "hashicorp/go-azure-sdk/namespaces/2023-12-15-preview" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/README.md new file mode 100644 index 000000000000..5c7c9360fe3f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/README.md @@ -0,0 +1,99 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork` Documentation + +The `managednetwork` SDK allows for interaction with Azure Resource Manager `machinelearningservices` (API Version `2024-04-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork" +``` + + +### Client Initialization + +```go +client := managednetwork.NewManagedNetworkClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ManagedNetworkClient.ProvisionsProvisionManagedNetwork` + +```go +ctx := context.TODO() +id := managednetwork.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") + +payload := managednetwork.ManagedNetworkProvisionOptions{ + // ... +} + + +if err := client.ProvisionsProvisionManagedNetworkThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ManagedNetworkClient.SettingsRuleCreateOrUpdate` + +```go +ctx := context.TODO() +id := managednetwork.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "outboundRuleName") + +payload := managednetwork.OutboundRuleBasicResource{ + // ... +} + + +if err := client.SettingsRuleCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ManagedNetworkClient.SettingsRuleDelete` + +```go +ctx := context.TODO() +id := managednetwork.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "outboundRuleName") + +if err := client.SettingsRuleDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ManagedNetworkClient.SettingsRuleGet` + +```go +ctx := context.TODO() +id := managednetwork.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "outboundRuleName") + +read, err := client.SettingsRuleGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ManagedNetworkClient.SettingsRuleList` + +```go +ctx := context.TODO() +id := managednetwork.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") + +// alternatively `client.SettingsRuleList(ctx, id)` can be used to do batched pagination +items, err := client.SettingsRuleListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/client.go new file mode 100644 index 000000000000..7167dbc42a44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/client.go @@ -0,0 +1,26 @@ +package managednetwork + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedNetworkClient struct { + Client *resourcemanager.Client +} + +func NewManagedNetworkClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedNetworkClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "managednetwork", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ManagedNetworkClient: %+v", err) + } + + return &ManagedNetworkClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/constants.go new file mode 100644 index 000000000000..e19e9f0a600f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/constants.go @@ -0,0 +1,224 @@ +package managednetwork + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedNetworkStatus string + +const ( + ManagedNetworkStatusActive ManagedNetworkStatus = "Active" + ManagedNetworkStatusInactive ManagedNetworkStatus = "Inactive" +) + +func PossibleValuesForManagedNetworkStatus() []string { + return []string{ + string(ManagedNetworkStatusActive), + string(ManagedNetworkStatusInactive), + } +} + +func (s *ManagedNetworkStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseManagedNetworkStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseManagedNetworkStatus(input string) (*ManagedNetworkStatus, error) { + vals := map[string]ManagedNetworkStatus{ + "active": ManagedNetworkStatusActive, + "inactive": ManagedNetworkStatusInactive, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedNetworkStatus(input) + return &out, nil +} + +type RuleAction string + +const ( + RuleActionAllow RuleAction = "Allow" + RuleActionDeny RuleAction = "Deny" +) + +func PossibleValuesForRuleAction() []string { + return []string{ + string(RuleActionAllow), + string(RuleActionDeny), + } +} + +func (s *RuleAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRuleAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRuleAction(input string) (*RuleAction, error) { + vals := map[string]RuleAction{ + "allow": RuleActionAllow, + "deny": RuleActionDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RuleAction(input) + return &out, nil +} + +type RuleCategory string + +const ( + RuleCategoryDependency RuleCategory = "Dependency" + RuleCategoryRecommended RuleCategory = "Recommended" + RuleCategoryRequired RuleCategory = "Required" + RuleCategoryUserDefined RuleCategory = "UserDefined" +) + +func PossibleValuesForRuleCategory() []string { + return []string{ + string(RuleCategoryDependency), + string(RuleCategoryRecommended), + string(RuleCategoryRequired), + string(RuleCategoryUserDefined), + } +} + +func (s *RuleCategory) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRuleCategory(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRuleCategory(input string) (*RuleCategory, error) { + vals := map[string]RuleCategory{ + "dependency": RuleCategoryDependency, + "recommended": RuleCategoryRecommended, + "required": RuleCategoryRequired, + "userdefined": RuleCategoryUserDefined, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RuleCategory(input) + return &out, nil +} + +type RuleStatus string + +const ( + RuleStatusActive RuleStatus = "Active" + RuleStatusInactive RuleStatus = "Inactive" +) + +func PossibleValuesForRuleStatus() []string { + return []string{ + string(RuleStatusActive), + string(RuleStatusInactive), + } +} + +func (s *RuleStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRuleStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRuleStatus(input string) (*RuleStatus, error) { + vals := map[string]RuleStatus{ + "active": RuleStatusActive, + "inactive": RuleStatusInactive, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RuleStatus(input) + return &out, nil +} + +type RuleType string + +const ( + RuleTypeFQDN RuleType = "FQDN" + RuleTypePrivateEndpoint RuleType = "PrivateEndpoint" + RuleTypeServiceTag RuleType = "ServiceTag" +) + +func PossibleValuesForRuleType() []string { + return []string{ + string(RuleTypeFQDN), + string(RuleTypePrivateEndpoint), + string(RuleTypeServiceTag), + } +} + +func (s *RuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRuleType(input string) (*RuleType, error) { + vals := map[string]RuleType{ + "fqdn": RuleTypeFQDN, + "privateendpoint": RuleTypePrivateEndpoint, + "servicetag": RuleTypeServiceTag, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RuleType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/id_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/id_outboundrule.go new file mode 100644 index 000000000000..16202df94be6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/id_outboundrule.go @@ -0,0 +1,139 @@ +package managednetwork + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&OutboundRuleId{}) +} + +var _ resourceids.ResourceId = &OutboundRuleId{} + +// OutboundRuleId is a struct representing the Resource ID for a Outbound Rule +type OutboundRuleId struct { + SubscriptionId string + ResourceGroupName string + WorkspaceName string + OutboundRuleName string +} + +// NewOutboundRuleID returns a new OutboundRuleId struct +func NewOutboundRuleID(subscriptionId string, resourceGroupName string, workspaceName string, outboundRuleName string) OutboundRuleId { + return OutboundRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + WorkspaceName: workspaceName, + OutboundRuleName: outboundRuleName, + } +} + +// ParseOutboundRuleID parses 'input' into a OutboundRuleId +func ParseOutboundRuleID(input string) (*OutboundRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&OutboundRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := OutboundRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseOutboundRuleIDInsensitively parses 'input' case-insensitively into a OutboundRuleId +// note: this method should only be used for API response data and not user input +func ParseOutboundRuleIDInsensitively(input string) (*OutboundRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&OutboundRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := OutboundRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *OutboundRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.WorkspaceName, ok = input.Parsed["workspaceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceName", input) + } + + if id.OutboundRuleName, ok = input.Parsed["outboundRuleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "outboundRuleName", input) + } + + return nil +} + +// ValidateOutboundRuleID checks that 'input' can be parsed as a Outbound Rule ID +func ValidateOutboundRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseOutboundRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Outbound Rule ID +func (id OutboundRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.MachineLearningServices/workspaces/%s/outboundRules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.WorkspaceName, id.OutboundRuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Outbound Rule ID +func (id OutboundRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftMachineLearningServices", "Microsoft.MachineLearningServices", "Microsoft.MachineLearningServices"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), + resourceids.StaticSegment("staticOutboundRules", "outboundRules", "outboundRules"), + resourceids.UserSpecifiedSegment("outboundRuleName", "outboundRuleName"), + } +} + +// String returns a human-readable description of this Outbound Rule ID +func (id OutboundRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Workspace Name: %q", id.WorkspaceName), + fmt.Sprintf("Outbound Rule Name: %q", id.OutboundRuleName), + } + return fmt.Sprintf("Outbound Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/id_workspace.go new file mode 100644 index 000000000000..f90b3b238856 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/id_workspace.go @@ -0,0 +1,130 @@ +package managednetwork + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&WorkspaceId{}) +} + +var _ resourceids.ResourceId = &WorkspaceId{} + +// WorkspaceId is a struct representing the Resource ID for a Workspace +type WorkspaceId struct { + SubscriptionId string + ResourceGroupName string + WorkspaceName string +} + +// NewWorkspaceID returns a new WorkspaceId struct +func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId { + return WorkspaceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + WorkspaceName: workspaceName, + } +} + +// ParseWorkspaceID parses 'input' into a WorkspaceId +func ParseWorkspaceID(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId +// note: this method should only be used for API response data and not user input +func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { + parser := resourceids.NewParserFromResourceIdType(&WorkspaceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := WorkspaceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.WorkspaceName, ok = input.Parsed["workspaceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "workspaceName", input) + } + + return nil +} + +// ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID +func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseWorkspaceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Workspace ID +func (id WorkspaceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.MachineLearningServices/workspaces/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.WorkspaceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Workspace ID +func (id WorkspaceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftMachineLearningServices", "Microsoft.MachineLearningServices", "Microsoft.MachineLearningServices"), + resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), + } +} + +// String returns a human-readable description of this Workspace ID +func (id WorkspaceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Workspace Name: %q", id.WorkspaceName), + } + return fmt.Sprintf("Workspace (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_provisionsprovisionmanagednetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_provisionsprovisionmanagednetwork.go new file mode 100644 index 000000000000..e35f68f85d22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_provisionsprovisionmanagednetwork.go @@ -0,0 +1,75 @@ +package managednetwork + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisionsProvisionManagedNetworkOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ManagedNetworkProvisionStatus +} + +// ProvisionsProvisionManagedNetwork ... +func (c ManagedNetworkClient) ProvisionsProvisionManagedNetwork(ctx context.Context, id WorkspaceId, input ManagedNetworkProvisionOptions) (result ProvisionsProvisionManagedNetworkOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/provisionManagedNetwork", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ProvisionsProvisionManagedNetworkThenPoll performs ProvisionsProvisionManagedNetwork then polls until it's completed +func (c ManagedNetworkClient) ProvisionsProvisionManagedNetworkThenPoll(ctx context.Context, id WorkspaceId, input ManagedNetworkProvisionOptions) error { + result, err := c.ProvisionsProvisionManagedNetwork(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ProvisionsProvisionManagedNetwork: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ProvisionsProvisionManagedNetwork: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulecreateorupdate.go new file mode 100644 index 000000000000..9e4eec71434a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulecreateorupdate.go @@ -0,0 +1,75 @@ +package managednetwork + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SettingsRuleCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *OutboundRuleBasicResource +} + +// SettingsRuleCreateOrUpdate ... +func (c ManagedNetworkClient) SettingsRuleCreateOrUpdate(ctx context.Context, id OutboundRuleId, input OutboundRuleBasicResource) (result SettingsRuleCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SettingsRuleCreateOrUpdateThenPoll performs SettingsRuleCreateOrUpdate then polls until it's completed +func (c ManagedNetworkClient) SettingsRuleCreateOrUpdateThenPoll(ctx context.Context, id OutboundRuleId, input OutboundRuleBasicResource) error { + result, err := c.SettingsRuleCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SettingsRuleCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SettingsRuleCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsruledelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsruledelete.go new file mode 100644 index 000000000000..6306e801dd7d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsruledelete.go @@ -0,0 +1,71 @@ +package managednetwork + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SettingsRuleDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// SettingsRuleDelete ... +func (c ManagedNetworkClient) SettingsRuleDelete(ctx context.Context, id OutboundRuleId) (result SettingsRuleDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SettingsRuleDeleteThenPoll performs SettingsRuleDelete then polls until it's completed +func (c ManagedNetworkClient) SettingsRuleDeleteThenPoll(ctx context.Context, id OutboundRuleId) error { + result, err := c.SettingsRuleDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing SettingsRuleDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SettingsRuleDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsruleget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsruleget.go new file mode 100644 index 000000000000..d9e4990d7838 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsruleget.go @@ -0,0 +1,53 @@ +package managednetwork + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SettingsRuleGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *OutboundRuleBasicResource +} + +// SettingsRuleGet ... +func (c ManagedNetworkClient) SettingsRuleGet(ctx context.Context, id OutboundRuleId) (result SettingsRuleGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model OutboundRuleBasicResource + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulelist.go new file mode 100644 index 000000000000..b73fd89a69d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/method_settingsrulelist.go @@ -0,0 +1,105 @@ +package managednetwork + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SettingsRuleListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]OutboundRuleBasicResource +} + +type SettingsRuleListCompleteResult struct { + LatestHttpResponse *http.Response + Items []OutboundRuleBasicResource +} + +type SettingsRuleListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SettingsRuleListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// SettingsRuleList ... +func (c ManagedNetworkClient) SettingsRuleList(ctx context.Context, id WorkspaceId) (result SettingsRuleListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &SettingsRuleListCustomPager{}, + Path: fmt.Sprintf("%s/outboundRules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]OutboundRuleBasicResource `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// SettingsRuleListComplete retrieves all the results into a single object +func (c ManagedNetworkClient) SettingsRuleListComplete(ctx context.Context, id WorkspaceId) (SettingsRuleListCompleteResult, error) { + return c.SettingsRuleListCompleteMatchingPredicate(ctx, id, OutboundRuleBasicResourceOperationPredicate{}) +} + +// SettingsRuleListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ManagedNetworkClient) SettingsRuleListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, predicate OutboundRuleBasicResourceOperationPredicate) (result SettingsRuleListCompleteResult, err error) { + items := make([]OutboundRuleBasicResource, 0) + + resp, err := c.SettingsRuleList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = SettingsRuleListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_fqdnoutboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_fqdnoutboundrule.go new file mode 100644 index 000000000000..c68f41f0977d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_fqdnoutboundrule.go @@ -0,0 +1,54 @@ +package managednetwork + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ OutboundRule = FqdnOutboundRule{} + +type FqdnOutboundRule struct { + Destination *string `json:"destination,omitempty"` + + // Fields inherited from OutboundRule + + Category *RuleCategory `json:"category,omitempty"` + Status *RuleStatus `json:"status,omitempty"` + Type RuleType `json:"type"` +} + +func (s FqdnOutboundRule) OutboundRule() BaseOutboundRuleImpl { + return BaseOutboundRuleImpl{ + Category: s.Category, + Status: s.Status, + Type: s.Type, + } +} + +var _ json.Marshaler = FqdnOutboundRule{} + +func (s FqdnOutboundRule) MarshalJSON() ([]byte, error) { + type wrapper FqdnOutboundRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling FqdnOutboundRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling FqdnOutboundRule: %+v", err) + } + + decoded["type"] = "FQDN" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling FqdnOutboundRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_managednetworkprovisionoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_managednetworkprovisionoptions.go new file mode 100644 index 000000000000..4d2c03673057 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_managednetworkprovisionoptions.go @@ -0,0 +1,8 @@ +package managednetwork + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedNetworkProvisionOptions struct { + IncludeSpark *bool `json:"includeSpark,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_managednetworkprovisionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_managednetworkprovisionstatus.go new file mode 100644 index 000000000000..3010b961a344 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_managednetworkprovisionstatus.go @@ -0,0 +1,9 @@ +package managednetwork + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedNetworkProvisionStatus struct { + SparkReady *bool `json:"sparkReady,omitempty"` + Status *ManagedNetworkStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_outboundrule.go new file mode 100644 index 000000000000..592574a294e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_outboundrule.go @@ -0,0 +1,93 @@ +package managednetwork + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OutboundRule interface { + OutboundRule() BaseOutboundRuleImpl +} + +var _ OutboundRule = BaseOutboundRuleImpl{} + +type BaseOutboundRuleImpl struct { + Category *RuleCategory `json:"category,omitempty"` + Status *RuleStatus `json:"status,omitempty"` + Type RuleType `json:"type"` +} + +func (s BaseOutboundRuleImpl) OutboundRule() BaseOutboundRuleImpl { + return s +} + +var _ OutboundRule = RawOutboundRuleImpl{} + +// RawOutboundRuleImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawOutboundRuleImpl struct { + outboundRule BaseOutboundRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawOutboundRuleImpl) OutboundRule() BaseOutboundRuleImpl { + return s.outboundRule +} + +func UnmarshalOutboundRuleImplementation(input []byte) (OutboundRule, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling OutboundRule into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "FQDN") { + var out FqdnOutboundRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into FqdnOutboundRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "PrivateEndpoint") { + var out PrivateEndpointOutboundRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into PrivateEndpointOutboundRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "ServiceTag") { + var out ServiceTagOutboundRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into ServiceTagOutboundRule: %+v", err) + } + return out, nil + } + + var parent BaseOutboundRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOutboundRuleImpl: %+v", err) + } + + return RawOutboundRuleImpl{ + outboundRule: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_outboundrulebasicresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_outboundrulebasicresource.go new file mode 100644 index 000000000000..8abeca48308c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_outboundrulebasicresource.go @@ -0,0 +1,53 @@ +package managednetwork + +import ( + "encoding/json" + "fmt" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OutboundRuleBasicResource struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties OutboundRule `json:"properties"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +var _ json.Unmarshaler = &OutboundRuleBasicResource{} + +func (s *OutboundRuleBasicResource) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Id = decoded.Id + s.Name = decoded.Name + s.SystemData = decoded.SystemData + s.Type = decoded.Type + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling OutboundRuleBasicResource into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["properties"]; ok { + impl, err := UnmarshalOutboundRuleImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'Properties' for 'OutboundRuleBasicResource': %+v", err) + } + s.Properties = impl + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_privateendpointdestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_privateendpointdestination.go new file mode 100644 index 000000000000..30060d85562a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_privateendpointdestination.go @@ -0,0 +1,11 @@ +package managednetwork + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointDestination struct { + ServiceResourceId *string `json:"serviceResourceId,omitempty"` + SparkEnabled *bool `json:"sparkEnabled,omitempty"` + SparkStatus *RuleStatus `json:"sparkStatus,omitempty"` + SubresourceTarget *string `json:"subresourceTarget,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_privateendpointoutboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_privateendpointoutboundrule.go new file mode 100644 index 000000000000..6bda20dd829c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_privateendpointoutboundrule.go @@ -0,0 +1,54 @@ +package managednetwork + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ OutboundRule = PrivateEndpointOutboundRule{} + +type PrivateEndpointOutboundRule struct { + Destination *PrivateEndpointDestination `json:"destination,omitempty"` + + // Fields inherited from OutboundRule + + Category *RuleCategory `json:"category,omitempty"` + Status *RuleStatus `json:"status,omitempty"` + Type RuleType `json:"type"` +} + +func (s PrivateEndpointOutboundRule) OutboundRule() BaseOutboundRuleImpl { + return BaseOutboundRuleImpl{ + Category: s.Category, + Status: s.Status, + Type: s.Type, + } +} + +var _ json.Marshaler = PrivateEndpointOutboundRule{} + +func (s PrivateEndpointOutboundRule) MarshalJSON() ([]byte, error) { + type wrapper PrivateEndpointOutboundRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling PrivateEndpointOutboundRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling PrivateEndpointOutboundRule: %+v", err) + } + + decoded["type"] = "PrivateEndpoint" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling PrivateEndpointOutboundRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_servicetagdestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_servicetagdestination.go new file mode 100644 index 000000000000..efbbd4e7c8de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_servicetagdestination.go @@ -0,0 +1,12 @@ +package managednetwork + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceTagDestination struct { + Action *RuleAction `json:"action,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + PortRanges *string `json:"portRanges,omitempty"` + Protocol *string `json:"protocol,omitempty"` + ServiceTag *string `json:"serviceTag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_servicetagoutboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_servicetagoutboundrule.go new file mode 100644 index 000000000000..268a1b09c833 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/model_servicetagoutboundrule.go @@ -0,0 +1,54 @@ +package managednetwork + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ OutboundRule = ServiceTagOutboundRule{} + +type ServiceTagOutboundRule struct { + Destination *ServiceTagDestination `json:"destination,omitempty"` + + // Fields inherited from OutboundRule + + Category *RuleCategory `json:"category,omitempty"` + Status *RuleStatus `json:"status,omitempty"` + Type RuleType `json:"type"` +} + +func (s ServiceTagOutboundRule) OutboundRule() BaseOutboundRuleImpl { + return BaseOutboundRuleImpl{ + Category: s.Category, + Status: s.Status, + Type: s.Type, + } +} + +var _ json.Marshaler = ServiceTagOutboundRule{} + +func (s ServiceTagOutboundRule) MarshalJSON() ([]byte, error) { + type wrapper ServiceTagOutboundRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ServiceTagOutboundRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ServiceTagOutboundRule: %+v", err) + } + + decoded["type"] = "ServiceTag" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ServiceTagOutboundRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/predicates.go new file mode 100644 index 000000000000..960a0afdff58 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/predicates.go @@ -0,0 +1,27 @@ +package managednetwork + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OutboundRuleBasicResourceOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p OutboundRuleBasicResourceOperationPredicate) Matches(input OutboundRuleBasicResource) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/version.go new file mode 100644 index 000000000000..178ee734db3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork/version.go @@ -0,0 +1,10 @@ +package managednetwork + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-04-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/managednetwork/2024-04-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/README.md new file mode 100644 index 000000000000..d103a70de620 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/README.md @@ -0,0 +1,171 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters` Documentation + +The `mongoclusters` SDK allows for interaction with Azure Resource Manager `mongocluster` (API Version `2024-07-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters" +``` + + +### Client Initialization + +```go +client := mongoclusters.NewMongoClustersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `MongoClustersClient.CheckNameAvailability` + +```go +ctx := context.TODO() +id := mongoclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +payload := mongoclusters.CheckNameAvailabilityRequest{ + // ... +} + + +read, err := client.CheckNameAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MongoClustersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterName") + +payload := mongoclusters.MongoCluster{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `MongoClustersClient.Delete` + +```go +ctx := context.TODO() +id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `MongoClustersClient.Get` + +```go +ctx := context.TODO() +id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MongoClustersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MongoClustersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MongoClustersClient.ListConnectionStrings` + +```go +ctx := context.TODO() +id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterName") + +read, err := client.ListConnectionStrings(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MongoClustersClient.Promote` + +```go +ctx := context.TODO() +id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterName") + +payload := mongoclusters.PromoteReplicaRequest{ + // ... +} + + +if err := client.PromoteThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `MongoClustersClient.Update` + +```go +ctx := context.TODO() +id := mongoclusters.NewMongoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mongoClusterName") + +payload := mongoclusters.MongoClusterUpdate{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/client.go new file mode 100644 index 000000000000..2d0a465d2b90 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/client.go @@ -0,0 +1,26 @@ +package mongoclusters + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MongoClustersClient struct { + Client *resourcemanager.Client +} + +func NewMongoClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*MongoClustersClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "mongoclusters", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating MongoClustersClient: %+v", err) + } + + return &MongoClustersClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/constants.go new file mode 100644 index 000000000000..4835148e9a53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/constants.go @@ -0,0 +1,594 @@ +package mongoclusters + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityReason string + +const ( + CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists" + CheckNameAvailabilityReasonInvalid CheckNameAvailabilityReason = "Invalid" +) + +func PossibleValuesForCheckNameAvailabilityReason() []string { + return []string{ + string(CheckNameAvailabilityReasonAlreadyExists), + string(CheckNameAvailabilityReasonInvalid), + } +} + +func (s *CheckNameAvailabilityReason) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCheckNameAvailabilityReason(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCheckNameAvailabilityReason(input string) (*CheckNameAvailabilityReason, error) { + vals := map[string]CheckNameAvailabilityReason{ + "alreadyexists": CheckNameAvailabilityReasonAlreadyExists, + "invalid": CheckNameAvailabilityReasonInvalid, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CheckNameAvailabilityReason(input) + return &out, nil +} + +type CreateMode string + +const ( + CreateModeDefault CreateMode = "Default" + CreateModeGeoReplica CreateMode = "GeoReplica" + CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" + CreateModeReplica CreateMode = "Replica" +) + +func PossibleValuesForCreateMode() []string { + return []string{ + string(CreateModeDefault), + string(CreateModeGeoReplica), + string(CreateModePointInTimeRestore), + string(CreateModeReplica), + } +} + +func (s *CreateMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCreateMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCreateMode(input string) (*CreateMode, error) { + vals := map[string]CreateMode{ + "default": CreateModeDefault, + "georeplica": CreateModeGeoReplica, + "pointintimerestore": CreateModePointInTimeRestore, + "replica": CreateModeReplica, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CreateMode(input) + return &out, nil +} + +type HighAvailabilityMode string + +const ( + HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" + HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" + HighAvailabilityModeZoneRedundantPreferred HighAvailabilityMode = "ZoneRedundantPreferred" +) + +func PossibleValuesForHighAvailabilityMode() []string { + return []string{ + string(HighAvailabilityModeDisabled), + string(HighAvailabilityModeSameZone), + string(HighAvailabilityModeZoneRedundantPreferred), + } +} + +func (s *HighAvailabilityMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHighAvailabilityMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHighAvailabilityMode(input string) (*HighAvailabilityMode, error) { + vals := map[string]HighAvailabilityMode{ + "disabled": HighAvailabilityModeDisabled, + "samezone": HighAvailabilityModeSameZone, + "zoneredundantpreferred": HighAvailabilityModeZoneRedundantPreferred, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HighAvailabilityMode(input) + return &out, nil +} + +type MongoClusterStatus string + +const ( + MongoClusterStatusDropping MongoClusterStatus = "Dropping" + MongoClusterStatusProvisioning MongoClusterStatus = "Provisioning" + MongoClusterStatusReady MongoClusterStatus = "Ready" + MongoClusterStatusStarting MongoClusterStatus = "Starting" + MongoClusterStatusStopped MongoClusterStatus = "Stopped" + MongoClusterStatusStopping MongoClusterStatus = "Stopping" + MongoClusterStatusUpdating MongoClusterStatus = "Updating" +) + +func PossibleValuesForMongoClusterStatus() []string { + return []string{ + string(MongoClusterStatusDropping), + string(MongoClusterStatusProvisioning), + string(MongoClusterStatusReady), + string(MongoClusterStatusStarting), + string(MongoClusterStatusStopped), + string(MongoClusterStatusStopping), + string(MongoClusterStatusUpdating), + } +} + +func (s *MongoClusterStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMongoClusterStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMongoClusterStatus(input string) (*MongoClusterStatus, error) { + vals := map[string]MongoClusterStatus{ + "dropping": MongoClusterStatusDropping, + "provisioning": MongoClusterStatusProvisioning, + "ready": MongoClusterStatusReady, + "starting": MongoClusterStatusStarting, + "stopped": MongoClusterStatusStopped, + "stopping": MongoClusterStatusStopping, + "updating": MongoClusterStatusUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MongoClusterStatus(input) + return &out, nil +} + +type PreviewFeature string + +const ( + PreviewFeatureGeoReplicas PreviewFeature = "GeoReplicas" +) + +func PossibleValuesForPreviewFeature() []string { + return []string{ + string(PreviewFeatureGeoReplicas), + } +} + +func (s *PreviewFeature) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePreviewFeature(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePreviewFeature(input string) (*PreviewFeature, error) { + vals := map[string]PreviewFeature{ + "georeplicas": PreviewFeatureGeoReplicas, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PreviewFeature(input) + return &out, nil +} + +type PrivateEndpointConnectionProvisioningState string + +const ( + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string { + return []string{ + string(PrivateEndpointConnectionProvisioningStateCreating), + string(PrivateEndpointConnectionProvisioningStateDeleting), + string(PrivateEndpointConnectionProvisioningStateFailed), + string(PrivateEndpointConnectionProvisioningStateSucceeded), + } +} + +func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointConnectionProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointConnectionProvisioningState(input string) (*PrivateEndpointConnectionProvisioningState, error) { + vals := map[string]PrivateEndpointConnectionProvisioningState{ + "creating": PrivateEndpointConnectionProvisioningStateCreating, + "deleting": PrivateEndpointConnectionProvisioningStateDeleting, + "failed": PrivateEndpointConnectionProvisioningStateFailed, + "succeeded": PrivateEndpointConnectionProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointConnectionProvisioningState(input) + return &out, nil +} + +type PrivateEndpointServiceConnectionStatus string + +const ( + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string { + return []string{ + string(PrivateEndpointServiceConnectionStatusApproved), + string(PrivateEndpointServiceConnectionStatusPending), + string(PrivateEndpointServiceConnectionStatusRejected), + } +} + +func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointServiceConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointServiceConnectionStatus(input string) (*PrivateEndpointServiceConnectionStatus, error) { + vals := map[string]PrivateEndpointServiceConnectionStatus{ + "approved": PrivateEndpointServiceConnectionStatusApproved, + "pending": PrivateEndpointServiceConnectionStatusPending, + "rejected": PrivateEndpointServiceConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointServiceConnectionStatus(input) + return &out, nil +} + +type PromoteMode string + +const ( + PromoteModeSwitchover PromoteMode = "Switchover" +) + +func PossibleValuesForPromoteMode() []string { + return []string{ + string(PromoteModeSwitchover), + } +} + +func (s *PromoteMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePromoteMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePromoteMode(input string) (*PromoteMode, error) { + vals := map[string]PromoteMode{ + "switchover": PromoteModeSwitchover, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PromoteMode(input) + return &out, nil +} + +type PromoteOption string + +const ( + PromoteOptionForced PromoteOption = "Forced" +) + +func PossibleValuesForPromoteOption() []string { + return []string{ + string(PromoteOptionForced), + } +} + +func (s *PromoteOption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePromoteOption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePromoteOption(input string) (*PromoteOption, error) { + vals := map[string]PromoteOption{ + "forced": PromoteOptionForced, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PromoteOption(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateDropping ProvisioningState = "Dropping" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateInProgress ProvisioningState = "InProgress" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateCanceled), + string(ProvisioningStateDropping), + string(ProvisioningStateFailed), + string(ProvisioningStateInProgress), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, + "dropping": ProvisioningStateDropping, + "failed": ProvisioningStateFailed, + "inprogress": ProvisioningStateInProgress, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicNetworkAccess string + +const ( + PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" + PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" +) + +func PossibleValuesForPublicNetworkAccess() []string { + return []string{ + string(PublicNetworkAccessDisabled), + string(PublicNetworkAccessEnabled), + } +} + +func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicNetworkAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicNetworkAccess(input string) (*PublicNetworkAccess, error) { + vals := map[string]PublicNetworkAccess{ + "disabled": PublicNetworkAccessDisabled, + "enabled": PublicNetworkAccessEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicNetworkAccess(input) + return &out, nil +} + +type ReplicationRole string + +const ( + ReplicationRoleAsyncReplica ReplicationRole = "AsyncReplica" + ReplicationRoleGeoAsyncReplica ReplicationRole = "GeoAsyncReplica" + ReplicationRolePrimary ReplicationRole = "Primary" +) + +func PossibleValuesForReplicationRole() []string { + return []string{ + string(ReplicationRoleAsyncReplica), + string(ReplicationRoleGeoAsyncReplica), + string(ReplicationRolePrimary), + } +} + +func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseReplicationRole(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseReplicationRole(input string) (*ReplicationRole, error) { + vals := map[string]ReplicationRole{ + "asyncreplica": ReplicationRoleAsyncReplica, + "geoasyncreplica": ReplicationRoleGeoAsyncReplica, + "primary": ReplicationRolePrimary, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReplicationRole(input) + return &out, nil +} + +type ReplicationState string + +const ( + ReplicationStateActive ReplicationState = "Active" + ReplicationStateBroken ReplicationState = "Broken" + ReplicationStateCatchup ReplicationState = "Catchup" + ReplicationStateProvisioning ReplicationState = "Provisioning" + ReplicationStateReconfiguring ReplicationState = "Reconfiguring" + ReplicationStateUpdating ReplicationState = "Updating" +) + +func PossibleValuesForReplicationState() []string { + return []string{ + string(ReplicationStateActive), + string(ReplicationStateBroken), + string(ReplicationStateCatchup), + string(ReplicationStateProvisioning), + string(ReplicationStateReconfiguring), + string(ReplicationStateUpdating), + } +} + +func (s *ReplicationState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseReplicationState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseReplicationState(input string) (*ReplicationState, error) { + vals := map[string]ReplicationState{ + "active": ReplicationStateActive, + "broken": ReplicationStateBroken, + "catchup": ReplicationStateCatchup, + "provisioning": ReplicationStateProvisioning, + "reconfiguring": ReplicationStateReconfiguring, + "updating": ReplicationStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReplicationState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/id_location.go new file mode 100644 index 000000000000..175236f72925 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/id_location.go @@ -0,0 +1,121 @@ +package mongoclusters + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocationId{}) +} + +var _ resourceids.ResourceId = &LocationId{} + +// LocationId is a struct representing the Resource ID for a Location +type LocationId struct { + SubscriptionId string + LocationName string +} + +// NewLocationID returns a new LocationId struct +func NewLocationID(subscriptionId string, locationName string) LocationId { + return LocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseLocationID parses 'input' into a LocationId +func ParseLocationID(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId +// note: this method should only be used for API response data and not user input +func ParseLocationIDInsensitively(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateLocationID checks that 'input' can be parsed as a Location ID +func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Location ID +func (id LocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.DocumentDB/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Location ID +func (id LocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Location ID +func (id LocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/id_mongocluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/id_mongocluster.go new file mode 100644 index 000000000000..ddfa466ceb72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/id_mongocluster.go @@ -0,0 +1,130 @@ +package mongoclusters + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&MongoClusterId{}) +} + +var _ resourceids.ResourceId = &MongoClusterId{} + +// MongoClusterId is a struct representing the Resource ID for a Mongo Cluster +type MongoClusterId struct { + SubscriptionId string + ResourceGroupName string + MongoClusterName string +} + +// NewMongoClusterID returns a new MongoClusterId struct +func NewMongoClusterID(subscriptionId string, resourceGroupName string, mongoClusterName string) MongoClusterId { + return MongoClusterId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + MongoClusterName: mongoClusterName, + } +} + +// ParseMongoClusterID parses 'input' into a MongoClusterId +func ParseMongoClusterID(input string) (*MongoClusterId, error) { + parser := resourceids.NewParserFromResourceIdType(&MongoClusterId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := MongoClusterId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseMongoClusterIDInsensitively parses 'input' case-insensitively into a MongoClusterId +// note: this method should only be used for API response data and not user input +func ParseMongoClusterIDInsensitively(input string) (*MongoClusterId, error) { + parser := resourceids.NewParserFromResourceIdType(&MongoClusterId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := MongoClusterId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *MongoClusterId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.MongoClusterName, ok = input.Parsed["mongoClusterName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "mongoClusterName", input) + } + + return nil +} + +// ValidateMongoClusterID checks that 'input' can be parsed as a Mongo Cluster ID +func ValidateMongoClusterID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseMongoClusterID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Mongo Cluster ID +func (id MongoClusterId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DocumentDB/mongoClusters/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.MongoClusterName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Mongo Cluster ID +func (id MongoClusterId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), + resourceids.StaticSegment("staticMongoClusters", "mongoClusters", "mongoClusters"), + resourceids.UserSpecifiedSegment("mongoClusterName", "mongoClusterName"), + } +} + +// String returns a human-readable description of this Mongo Cluster ID +func (id MongoClusterId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Mongo Cluster Name: %q", id.MongoClusterName), + } + return fmt.Sprintf("Mongo Cluster (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_checknameavailability.go new file mode 100644 index 000000000000..d29c03d95ff3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_checknameavailability.go @@ -0,0 +1,58 @@ +package mongoclusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *CheckNameAvailabilityResponse +} + +// CheckNameAvailability ... +func (c MongoClustersClient) CheckNameAvailability(ctx context.Context, id LocationId, input CheckNameAvailabilityRequest) (result CheckNameAvailabilityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/checkMongoClusterNameAvailability", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model CheckNameAvailabilityResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_createorupdate.go new file mode 100644 index 000000000000..d31c486a5a77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_createorupdate.go @@ -0,0 +1,75 @@ +package mongoclusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *MongoCluster +} + +// CreateOrUpdate ... +func (c MongoClustersClient) CreateOrUpdate(ctx context.Context, id MongoClusterId, input MongoCluster) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c MongoClustersClient) CreateOrUpdateThenPoll(ctx context.Context, id MongoClusterId, input MongoCluster) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_delete.go new file mode 100644 index 000000000000..f2ab5c143c44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_delete.go @@ -0,0 +1,70 @@ +package mongoclusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c MongoClustersClient) Delete(ctx context.Context, id MongoClusterId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c MongoClustersClient) DeleteThenPoll(ctx context.Context, id MongoClusterId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_get.go new file mode 100644 index 000000000000..19be380881ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_get.go @@ -0,0 +1,53 @@ +package mongoclusters + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *MongoCluster +} + +// Get ... +func (c MongoClustersClient) Get(ctx context.Context, id MongoClusterId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model MongoCluster + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_list.go new file mode 100644 index 000000000000..957796bf6058 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_list.go @@ -0,0 +1,106 @@ +package mongoclusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]MongoCluster +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []MongoCluster +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c MongoClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DocumentDB/mongoClusters", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]MongoCluster `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c MongoClustersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, MongoClusterOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MongoClustersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate MongoClusterOperationPredicate) (result ListCompleteResult, err error) { + items := make([]MongoCluster, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_listbyresourcegroup.go new file mode 100644 index 000000000000..87c9b7822106 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package mongoclusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]MongoCluster +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []MongoCluster +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c MongoClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.DocumentDB/mongoClusters", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]MongoCluster `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c MongoClustersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, MongoClusterOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MongoClustersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate MongoClusterOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]MongoCluster, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_listconnectionstrings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_listconnectionstrings.go new file mode 100644 index 000000000000..3ac12241859f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_listconnectionstrings.go @@ -0,0 +1,54 @@ +package mongoclusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConnectionStringsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ListConnectionStringsResult +} + +// ListConnectionStrings ... +func (c MongoClustersClient) ListConnectionStrings(ctx context.Context, id MongoClusterId) (result ListConnectionStringsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listConnectionStrings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ListConnectionStringsResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_promote.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_promote.go new file mode 100644 index 000000000000..e1305fefd777 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_promote.go @@ -0,0 +1,73 @@ +package mongoclusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PromoteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Promote ... +func (c MongoClustersClient) Promote(ctx context.Context, id MongoClusterId, input PromoteReplicaRequest) (result PromoteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/promote", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// PromoteThenPoll performs Promote then polls until it's completed +func (c MongoClustersClient) PromoteThenPoll(ctx context.Context, id MongoClusterId, input PromoteReplicaRequest) error { + result, err := c.Promote(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Promote: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Promote: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_update.go new file mode 100644 index 000000000000..b0971a437631 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/method_update.go @@ -0,0 +1,75 @@ +package mongoclusters + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *MongoCluster +} + +// Update ... +func (c MongoClustersClient) Update(ctx context.Context, id MongoClusterId, input MongoClusterUpdate) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c MongoClustersClient) UpdateThenPoll(ctx context.Context, id MongoClusterId, input MongoClusterUpdate) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_administratorproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_administratorproperties.go new file mode 100644 index 000000000000..0d5e695ec050 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_administratorproperties.go @@ -0,0 +1,9 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdministratorProperties struct { + Password *string `json:"password,omitempty"` + UserName *string `json:"userName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_backupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_backupproperties.go new file mode 100644 index 000000000000..1a78556df72f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_backupproperties.go @@ -0,0 +1,8 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupProperties struct { + EarliestRestoreTime *string `json:"earliestRestoreTime,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_checknameavailabilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_checknameavailabilityrequest.go new file mode 100644 index 000000000000..b834e55f5ff8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_checknameavailabilityrequest.go @@ -0,0 +1,9 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityRequest struct { + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_checknameavailabilityresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_checknameavailabilityresponse.go new file mode 100644 index 000000000000..51db08775d65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_checknameavailabilityresponse.go @@ -0,0 +1,10 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckNameAvailabilityResponse struct { + Message *string `json:"message,omitempty"` + NameAvailable *bool `json:"nameAvailable,omitempty"` + Reason *CheckNameAvailabilityReason `json:"reason,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_computeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_computeproperties.go new file mode 100644 index 000000000000..750d420bf66d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_computeproperties.go @@ -0,0 +1,8 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ComputeProperties struct { + Tier *string `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_connectionstring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_connectionstring.go new file mode 100644 index 000000000000..75c56104190b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_connectionstring.go @@ -0,0 +1,10 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionString struct { + ConnectionString *string `json:"connectionString,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_highavailabilityproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_highavailabilityproperties.go new file mode 100644 index 000000000000..7aa466fd3706 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_highavailabilityproperties.go @@ -0,0 +1,8 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HighAvailabilityProperties struct { + TargetMode *HighAvailabilityMode `json:"targetMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_listconnectionstringsresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_listconnectionstringsresult.go new file mode 100644 index 000000000000..bab5c3229246 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_listconnectionstringsresult.go @@ -0,0 +1,8 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListConnectionStringsResult struct { + ConnectionStrings *[]ConnectionString `json:"connectionStrings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongocluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongocluster.go new file mode 100644 index 000000000000..7f6d9cb3fd54 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongocluster.go @@ -0,0 +1,18 @@ +package mongoclusters + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MongoCluster struct { + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *MongoClusterProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterproperties.go new file mode 100644 index 000000000000..6474ffeeb4ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterproperties.go @@ -0,0 +1,25 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MongoClusterProperties struct { + Administrator *AdministratorProperties `json:"administrator,omitempty"` + Backup *BackupProperties `json:"backup,omitempty"` + ClusterStatus *MongoClusterStatus `json:"clusterStatus,omitempty"` + Compute *ComputeProperties `json:"compute,omitempty"` + ConnectionString *string `json:"connectionString,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + HighAvailability *HighAvailabilityProperties `json:"highAvailability,omitempty"` + InfrastructureVersion *string `json:"infrastructureVersion,omitempty"` + PreviewFeatures *[]PreviewFeature `json:"previewFeatures,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + Replica *ReplicationProperties `json:"replica,omitempty"` + ReplicaParameters *MongoClusterReplicaParameters `json:"replicaParameters,omitempty"` + RestoreParameters *MongoClusterRestoreParameters `json:"restoreParameters,omitempty"` + ServerVersion *string `json:"serverVersion,omitempty"` + Sharding *ShardingProperties `json:"sharding,omitempty"` + Storage *StorageProperties `json:"storage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterreplicaparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterreplicaparameters.go new file mode 100644 index 000000000000..d76486d9568b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterreplicaparameters.go @@ -0,0 +1,9 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MongoClusterReplicaParameters struct { + SourceLocation string `json:"sourceLocation"` + SourceResourceId string `json:"sourceResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterrestoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterrestoreparameters.go new file mode 100644 index 000000000000..0cc10482f00d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterrestoreparameters.go @@ -0,0 +1,27 @@ +package mongoclusters + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MongoClusterRestoreParameters struct { + PointInTimeUTC *string `json:"pointInTimeUTC,omitempty"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` +} + +func (o *MongoClusterRestoreParameters) GetPointInTimeUTCAsTime() (*time.Time, error) { + if o.PointInTimeUTC == nil { + return nil, nil + } + return dates.ParseAsFormat(o.PointInTimeUTC, "2006-01-02T15:04:05Z07:00") +} + +func (o *MongoClusterRestoreParameters) SetPointInTimeUTCAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.PointInTimeUTC = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterupdate.go new file mode 100644 index 000000000000..e452dd9823dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterupdate.go @@ -0,0 +1,9 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MongoClusterUpdate struct { + Properties *MongoClusterUpdateProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterupdateproperties.go new file mode 100644 index 000000000000..ee47924c3663 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_mongoclusterupdateproperties.go @@ -0,0 +1,16 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MongoClusterUpdateProperties struct { + Administrator *AdministratorProperties `json:"administrator,omitempty"` + Backup *BackupProperties `json:"backup,omitempty"` + Compute *ComputeProperties `json:"compute,omitempty"` + HighAvailability *HighAvailabilityProperties `json:"highAvailability,omitempty"` + PreviewFeatures *[]PreviewFeature `json:"previewFeatures,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + ServerVersion *string `json:"serverVersion,omitempty"` + Sharding *ShardingProperties `json:"sharding,omitempty"` + Storage *StorageProperties `json:"storage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpoint.go new file mode 100644 index 000000000000..2250ebfa9eca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpoint.go @@ -0,0 +1,8 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpointconnection.go new file mode 100644 index 000000000000..5dafd446486c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpointconnection.go @@ -0,0 +1,16 @@ +package mongoclusters + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..d428048d9a8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState"` + ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..c38b16c9a311 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_promotereplicarequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_promotereplicarequest.go new file mode 100644 index 000000000000..fc3cc9274502 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_promotereplicarequest.go @@ -0,0 +1,9 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PromoteReplicaRequest struct { + Mode *PromoteMode `json:"mode,omitempty"` + PromoteOption PromoteOption `json:"promoteOption"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_replicationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_replicationproperties.go new file mode 100644 index 000000000000..09303ead8cf0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_replicationproperties.go @@ -0,0 +1,10 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ReplicationProperties struct { + ReplicationState *ReplicationState `json:"replicationState,omitempty"` + Role *ReplicationRole `json:"role,omitempty"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_shardingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_shardingproperties.go new file mode 100644 index 000000000000..b37690616792 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_shardingproperties.go @@ -0,0 +1,8 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ShardingProperties struct { + ShardCount *int64 `json:"shardCount,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_storageproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_storageproperties.go new file mode 100644 index 000000000000..94d834c45f13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/model_storageproperties.go @@ -0,0 +1,8 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageProperties struct { + SizeGb *int64 `json:"sizeGb,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/predicates.go new file mode 100644 index 000000000000..2961ccc5ae07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/predicates.go @@ -0,0 +1,32 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MongoClusterOperationPredicate struct { + Id *string + Location *string + Name *string + Type *string +} + +func (p MongoClusterOperationPredicate) Matches(input MongoCluster) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/version.go new file mode 100644 index 000000000000..ad7a56313839 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters/version.go @@ -0,0 +1,10 @@ +package mongoclusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-07-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/mongoclusters/2024-07-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/README.md deleted file mode 100644 index 4ce557909292..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators` Documentation - -The `azureadadministrators` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators" -``` - - -### Client Initialization - -```go -client := azureadadministrators.NewAzureADAdministratorsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AzureADAdministratorsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -payload := azureadadministrators.AzureADAdministrator{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureADAdministratorsClient.Delete` - -```go -ctx := context.TODO() -id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureADAdministratorsClient.Get` - -```go -ctx := context.TODO() -id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AzureADAdministratorsClient.ListByServer` - -```go -ctx := context.TODO() -id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination -items, err := client.ListByServerComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/version.go deleted file mode 100644 index 397f8090aa1a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package azureadadministrators - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/azureadadministrators/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md deleted file mode 100644 index bde206849008..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md +++ /dev/null @@ -1,69 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups` Documentation - -The `backups` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups" -``` - - -### Client Initialization - -```go -client := backups.NewBackupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `BackupsClient.Get` - -```go -ctx := context.TODO() -id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "backupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `BackupsClient.ListByServer` - -```go -ctx := context.TODO() -id := backups.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination -items, err := client.ListByServerComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BackupsClient.Put` - -```go -ctx := context.TODO() -id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "backupName") - -read, err := client.Put(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go deleted file mode 100644 index 2ce3b030269d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package backups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/backups/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md deleted file mode 100644 index 3c36f60a77c6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md +++ /dev/null @@ -1,63 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability` Documentation - -The `checknameavailability` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability" -``` - - -### Client Initialization - -```go -client := checknameavailability.NewCheckNameAvailabilityClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CheckNameAvailabilityClient.Execute` - -```go -ctx := context.TODO() -id := checknameavailability.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -payload := checknameavailability.NameAvailabilityRequest{ - // ... -} - - -read, err := client.Execute(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CheckNameAvailabilityClient.WithoutLocationExecute` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -payload := checknameavailability.NameAvailabilityRequest{ - // ... -} - - -read, err := client.WithoutLocationExecute(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go deleted file mode 100644 index d551067987e6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package checknameavailability - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/checknameavailability/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/client.go deleted file mode 100644 index 68a55624f0cd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/client.go +++ /dev/null @@ -1,145 +0,0 @@ -package v2022_01_01 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart" - "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -type Client struct { - AzureADAdministrators *azureadadministrators.AzureADAdministratorsClient - Backups *backups.BackupsClient - CheckNameAvailability *checknameavailability.CheckNameAvailabilityClient - Configurations *configurations.ConfigurationsClient - Databases *databases.DatabasesClient - FirewallRules *firewallrules.FirewallRulesClient - GetPrivateDnsZoneSuffix *getprivatednszonesuffix.GetPrivateDnsZoneSuffixClient - LocationBasedCapabilities *locationbasedcapabilities.LocationBasedCapabilitiesClient - LogFiles *logfiles.LogFilesClient - ServerFailover *serverfailover.ServerFailoverClient - ServerRestart *serverrestart.ServerRestartClient - ServerStart *serverstart.ServerStartClient - ServerStop *serverstop.ServerStopClient - Servers *servers.ServersClient -} - -func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { - azureADAdministratorsClient, err := azureadadministrators.NewAzureADAdministratorsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building AzureADAdministrators client: %+v", err) - } - configureFunc(azureADAdministratorsClient.Client) - - backupsClient, err := backups.NewBackupsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Backups client: %+v", err) - } - configureFunc(backupsClient.Client) - - checkNameAvailabilityClient, err := checknameavailability.NewCheckNameAvailabilityClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building CheckNameAvailability client: %+v", err) - } - configureFunc(checkNameAvailabilityClient.Client) - - configurationsClient, err := configurations.NewConfigurationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Configurations client: %+v", err) - } - configureFunc(configurationsClient.Client) - - databasesClient, err := databases.NewDatabasesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Databases client: %+v", err) - } - configureFunc(databasesClient.Client) - - firewallRulesClient, err := firewallrules.NewFirewallRulesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building FirewallRules client: %+v", err) - } - configureFunc(firewallRulesClient.Client) - - getPrivateDnsZoneSuffixClient, err := getprivatednszonesuffix.NewGetPrivateDnsZoneSuffixClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building GetPrivateDnsZoneSuffix client: %+v", err) - } - configureFunc(getPrivateDnsZoneSuffixClient.Client) - - locationBasedCapabilitiesClient, err := locationbasedcapabilities.NewLocationBasedCapabilitiesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building LocationBasedCapabilities client: %+v", err) - } - configureFunc(locationBasedCapabilitiesClient.Client) - - logFilesClient, err := logfiles.NewLogFilesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building LogFiles client: %+v", err) - } - configureFunc(logFilesClient.Client) - - serverFailoverClient, err := serverfailover.NewServerFailoverClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ServerFailover client: %+v", err) - } - configureFunc(serverFailoverClient.Client) - - serverRestartClient, err := serverrestart.NewServerRestartClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ServerRestart client: %+v", err) - } - configureFunc(serverRestartClient.Client) - - serverStartClient, err := serverstart.NewServerStartClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ServerStart client: %+v", err) - } - configureFunc(serverStartClient.Client) - - serverStopClient, err := serverstop.NewServerStopClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ServerStop client: %+v", err) - } - configureFunc(serverStopClient.Client) - - serversClient, err := servers.NewServersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Servers client: %+v", err) - } - configureFunc(serversClient.Client) - - return &Client{ - AzureADAdministrators: azureADAdministratorsClient, - Backups: backupsClient, - CheckNameAvailability: checkNameAvailabilityClient, - Configurations: configurationsClient, - Databases: databasesClient, - FirewallRules: firewallRulesClient, - GetPrivateDnsZoneSuffix: getPrivateDnsZoneSuffixClient, - LocationBasedCapabilities: locationBasedCapabilitiesClient, - LogFiles: logFilesClient, - ServerFailover: serverFailoverClient, - ServerRestart: serverRestartClient, - ServerStart: serverStartClient, - ServerStop: serverStopClient, - Servers: serversClient, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md deleted file mode 100644 index 5f120d1257cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md +++ /dev/null @@ -1,109 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations` Documentation - -The `configurations` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations" -``` - - -### Client Initialization - -```go -client := configurations.NewConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ConfigurationsClient.BatchUpdate` - -```go -ctx := context.TODO() -id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -payload := configurations.ConfigurationListForBatchUpdate{ - // ... -} - - -// alternatively `client.BatchUpdate(ctx, id, payload)` can be used to do batched pagination -items, err := client.BatchUpdateComplete(ctx, id, payload) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ConfigurationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "configurationName") - -payload := configurations.Configuration{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConfigurationsClient.Get` - -```go -ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "configurationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConfigurationsClient.ListByServer` - -```go -ctx := context.TODO() -id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -// alternatively `client.ListByServer(ctx, id, configurations.DefaultListByServerOperationOptions())` can be used to do batched pagination -items, err := client.ListByServerComplete(ctx, id, configurations.DefaultListByServerOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ConfigurationsClient.Update` - -```go -ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "configurationName") - -payload := configurations.Configuration{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go deleted file mode 100644 index 76611e0f07eb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package configurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/configurations/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md deleted file mode 100644 index c09e800f36b6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases` Documentation - -The `databases` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases" -``` - - -### Client Initialization - -```go -client := databases.NewDatabasesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `DatabasesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "databaseName") - -payload := databases.Database{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `DatabasesClient.Delete` - -```go -ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "databaseName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `DatabasesClient.Get` - -```go -ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "databaseName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `DatabasesClient.ListByServer` - -```go -ctx := context.TODO() -id := databases.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination -items, err := client.ListByServerComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go deleted file mode 100644 index 4db681f665c2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package databases - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/databases/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md deleted file mode 100644 index ed31f4108ed3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules` Documentation - -The `firewallrules` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules" -``` - - -### Client Initialization - -```go -client := firewallrules.NewFirewallRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `FirewallRulesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "firewallRuleName") - -payload := firewallrules.FirewallRule{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `FirewallRulesClient.Delete` - -```go -ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "firewallRuleName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `FirewallRulesClient.Get` - -```go -ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "firewallRuleName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `FirewallRulesClient.ListByServer` - -```go -ctx := context.TODO() -id := firewallrules.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination -items, err := client.ListByServerComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go deleted file mode 100644 index 086290b4d014..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package firewallrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/firewallrules/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md deleted file mode 100644 index ddf9c6f83792..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md +++ /dev/null @@ -1,36 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix` Documentation - -The `getprivatednszonesuffix` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix" -``` - - -### Client Initialization - -```go -client := getprivatednszonesuffix.NewGetPrivateDnsZoneSuffixClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `GetPrivateDnsZoneSuffixClient.Execute` - -```go -ctx := context.TODO() - - -read, err := client.Execute(ctx) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go deleted file mode 100644 index d6e350b825e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package getprivatednszonesuffix - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/getprivatednszonesuffix/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md deleted file mode 100644 index b85d169036f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities` Documentation - -The `locationbasedcapabilities` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities" -``` - - -### Client Initialization - -```go -client := locationbasedcapabilities.NewLocationBasedCapabilitiesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `LocationBasedCapabilitiesClient.List` - -```go -ctx := context.TODO() -id := locationbasedcapabilities.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_storageeditioncapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_storageeditioncapability.go deleted file mode 100644 index 51b5e0dd2a04..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_storageeditioncapability.go +++ /dev/null @@ -1,12 +0,0 @@ -package locationbasedcapabilities - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type StorageEditionCapability struct { - MaxBackupRetentionDays *int64 `json:"maxBackupRetentionDays,omitempty"` - MaxStorageSize *int64 `json:"maxStorageSize,omitempty"` - MinBackupRetentionDays *int64 `json:"minBackupRetentionDays,omitempty"` - MinStorageSize *int64 `json:"minStorageSize,omitempty"` - Name *string `json:"name,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go deleted file mode 100644 index 3dbfeafab2e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package locationbasedcapabilities - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/locationbasedcapabilities/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md deleted file mode 100644 index ca63e6b18ba6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles` Documentation - -The `logfiles` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles" -``` - - -### Client Initialization - -```go -client := logfiles.NewLogFilesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `LogFilesClient.ListByServer` - -```go -ctx := context.TODO() -id := logfiles.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination -items, err := client.ListByServerComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go deleted file mode 100644 index f579fd4b1c62..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package logfiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/logfiles/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go deleted file mode 100644 index 96583d28939e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package serverfailover - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/serverfailover/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md deleted file mode 100644 index 7f82a46480ab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart` Documentation - -The `serverrestart` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart" -``` - - -### Client Initialization - -```go -client := serverrestart.NewServerRestartClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ServerRestartClient.ServersRestart` - -```go -ctx := context.TODO() -id := serverrestart.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -payload := serverrestart.ServerRestartParameter{ - // ... -} - - -if err := client.ServersRestartThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go deleted file mode 100644 index abea028194d4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package serverrestart - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/serverrestart/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md deleted file mode 100644 index 236480b5f42b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md +++ /dev/null @@ -1,134 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers` Documentation - -The `servers` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers" -``` - - -### Client Initialization - -```go -client := servers.NewServersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ServersClient.Create` - -```go -ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -payload := servers.Server{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ServersClient.Delete` - -```go -ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ServersClient.Get` - -```go -ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ServersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ServersClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ServersClient.ReplicasListByServer` - -```go -ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -// alternatively `client.ReplicasListByServer(ctx, id)` can be used to do batched pagination -items, err := client.ReplicasListByServerComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ServersClient.Update` - -```go -ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") - -payload := servers.ServerForUpdate{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/constants.go deleted file mode 100644 index 38f0dee4a21c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/constants.go +++ /dev/null @@ -1,456 +0,0 @@ -package servers - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateMode string - -const ( - CreateModeDefault CreateMode = "Default" - CreateModeGeoRestore CreateMode = "GeoRestore" - CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" - CreateModeReplica CreateMode = "Replica" -) - -func PossibleValuesForCreateMode() []string { - return []string{ - string(CreateModeDefault), - string(CreateModeGeoRestore), - string(CreateModePointInTimeRestore), - string(CreateModeReplica), - } -} - -func (s *CreateMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseCreateMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseCreateMode(input string) (*CreateMode, error) { - vals := map[string]CreateMode{ - "default": CreateModeDefault, - "georestore": CreateModeGeoRestore, - "pointintimerestore": CreateModePointInTimeRestore, - "replica": CreateModeReplica, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := CreateMode(input) - return &out, nil -} - -type DataEncryptionType string - -const ( - DataEncryptionTypeAzureKeyVault DataEncryptionType = "AzureKeyVault" - DataEncryptionTypeSystemManaged DataEncryptionType = "SystemManaged" -) - -func PossibleValuesForDataEncryptionType() []string { - return []string{ - string(DataEncryptionTypeAzureKeyVault), - string(DataEncryptionTypeSystemManaged), - } -} - -func (s *DataEncryptionType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDataEncryptionType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDataEncryptionType(input string) (*DataEncryptionType, error) { - vals := map[string]DataEncryptionType{ - "azurekeyvault": DataEncryptionTypeAzureKeyVault, - "systemmanaged": DataEncryptionTypeSystemManaged, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DataEncryptionType(input) - return &out, nil -} - -type EnableStatusEnum string - -const ( - EnableStatusEnumDisabled EnableStatusEnum = "Disabled" - EnableStatusEnumEnabled EnableStatusEnum = "Enabled" -) - -func PossibleValuesForEnableStatusEnum() []string { - return []string{ - string(EnableStatusEnumDisabled), - string(EnableStatusEnumEnabled), - } -} - -func (s *EnableStatusEnum) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEnableStatusEnum(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEnableStatusEnum(input string) (*EnableStatusEnum, error) { - vals := map[string]EnableStatusEnum{ - "disabled": EnableStatusEnumDisabled, - "enabled": EnableStatusEnumEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EnableStatusEnum(input) - return &out, nil -} - -type HighAvailabilityMode string - -const ( - HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" - HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" - HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" -) - -func PossibleValuesForHighAvailabilityMode() []string { - return []string{ - string(HighAvailabilityModeDisabled), - string(HighAvailabilityModeSameZone), - string(HighAvailabilityModeZoneRedundant), - } -} - -func (s *HighAvailabilityMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseHighAvailabilityMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseHighAvailabilityMode(input string) (*HighAvailabilityMode, error) { - vals := map[string]HighAvailabilityMode{ - "disabled": HighAvailabilityModeDisabled, - "samezone": HighAvailabilityModeSameZone, - "zoneredundant": HighAvailabilityModeZoneRedundant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := HighAvailabilityMode(input) - return &out, nil -} - -type HighAvailabilityState string - -const ( - HighAvailabilityStateCreatingStandby HighAvailabilityState = "CreatingStandby" - HighAvailabilityStateFailingOver HighAvailabilityState = "FailingOver" - HighAvailabilityStateHealthy HighAvailabilityState = "Healthy" - HighAvailabilityStateNotEnabled HighAvailabilityState = "NotEnabled" - HighAvailabilityStateRemovingStandby HighAvailabilityState = "RemovingStandby" -) - -func PossibleValuesForHighAvailabilityState() []string { - return []string{ - string(HighAvailabilityStateCreatingStandby), - string(HighAvailabilityStateFailingOver), - string(HighAvailabilityStateHealthy), - string(HighAvailabilityStateNotEnabled), - string(HighAvailabilityStateRemovingStandby), - } -} - -func (s *HighAvailabilityState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseHighAvailabilityState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseHighAvailabilityState(input string) (*HighAvailabilityState, error) { - vals := map[string]HighAvailabilityState{ - "creatingstandby": HighAvailabilityStateCreatingStandby, - "failingover": HighAvailabilityStateFailingOver, - "healthy": HighAvailabilityStateHealthy, - "notenabled": HighAvailabilityStateNotEnabled, - "removingstandby": HighAvailabilityStateRemovingStandby, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := HighAvailabilityState(input) - return &out, nil -} - -type ManagedServiceIdentityType string - -const ( - ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" -) - -func PossibleValuesForManagedServiceIdentityType() []string { - return []string{ - string(ManagedServiceIdentityTypeUserAssigned), - } -} - -func (s *ManagedServiceIdentityType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseManagedServiceIdentityType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseManagedServiceIdentityType(input string) (*ManagedServiceIdentityType, error) { - vals := map[string]ManagedServiceIdentityType{ - "userassigned": ManagedServiceIdentityTypeUserAssigned, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ManagedServiceIdentityType(input) - return &out, nil -} - -type ReplicationRole string - -const ( - ReplicationRoleNone ReplicationRole = "None" - ReplicationRoleReplica ReplicationRole = "Replica" - ReplicationRoleSource ReplicationRole = "Source" -) - -func PossibleValuesForReplicationRole() []string { - return []string{ - string(ReplicationRoleNone), - string(ReplicationRoleReplica), - string(ReplicationRoleSource), - } -} - -func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseReplicationRole(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseReplicationRole(input string) (*ReplicationRole, error) { - vals := map[string]ReplicationRole{ - "none": ReplicationRoleNone, - "replica": ReplicationRoleReplica, - "source": ReplicationRoleSource, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ReplicationRole(input) - return &out, nil -} - -type ServerState string - -const ( - ServerStateDisabled ServerState = "Disabled" - ServerStateDropping ServerState = "Dropping" - ServerStateReady ServerState = "Ready" - ServerStateStarting ServerState = "Starting" - ServerStateStopped ServerState = "Stopped" - ServerStateStopping ServerState = "Stopping" - ServerStateUpdating ServerState = "Updating" -) - -func PossibleValuesForServerState() []string { - return []string{ - string(ServerStateDisabled), - string(ServerStateDropping), - string(ServerStateReady), - string(ServerStateStarting), - string(ServerStateStopped), - string(ServerStateStopping), - string(ServerStateUpdating), - } -} - -func (s *ServerState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseServerState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseServerState(input string) (*ServerState, error) { - vals := map[string]ServerState{ - "disabled": ServerStateDisabled, - "dropping": ServerStateDropping, - "ready": ServerStateReady, - "starting": ServerStateStarting, - "stopped": ServerStateStopped, - "stopping": ServerStateStopping, - "updating": ServerStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ServerState(input) - return &out, nil -} - -type ServerVersion string - -const ( - ServerVersionEightPointZeroPointTwoOne ServerVersion = "8.0.21" - ServerVersionFivePointSeven ServerVersion = "5.7" -) - -func PossibleValuesForServerVersion() []string { - return []string{ - string(ServerVersionEightPointZeroPointTwoOne), - string(ServerVersionFivePointSeven), - } -} - -func (s *ServerVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseServerVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseServerVersion(input string) (*ServerVersion, error) { - vals := map[string]ServerVersion{ - "8.0.21": ServerVersionEightPointZeroPointTwoOne, - "5.7": ServerVersionFivePointSeven, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ServerVersion(input) - return &out, nil -} - -type SkuTier string - -const ( - SkuTierBurstable SkuTier = "Burstable" - SkuTierGeneralPurpose SkuTier = "GeneralPurpose" - SkuTierMemoryOptimized SkuTier = "MemoryOptimized" -) - -func PossibleValuesForSkuTier() []string { - return []string{ - string(SkuTierBurstable), - string(SkuTierGeneralPurpose), - string(SkuTierMemoryOptimized), - } -} - -func (s *SkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSkuTier(input string) (*SkuTier, error) { - vals := map[string]SkuTier{ - "burstable": SkuTierBurstable, - "generalpurpose": SkuTierGeneralPurpose, - "memoryoptimized": SkuTierMemoryOptimized, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SkuTier(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_backup.go deleted file mode 100644 index ed773f8c045c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_backup.go +++ /dev/null @@ -1,28 +0,0 @@ -package servers - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Backup struct { - BackupRetentionDays *int64 `json:"backupRetentionDays,omitempty"` - EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"` - GeoRedundantBackup *EnableStatusEnum `json:"geoRedundantBackup,omitempty"` -} - -func (o *Backup) GetEarliestRestoreDateAsTime() (*time.Time, error) { - if o.EarliestRestoreDate == nil { - return nil, nil - } - return dates.ParseAsFormat(o.EarliestRestoreDate, "2006-01-02T15:04:05Z07:00") -} - -func (o *Backup) SetEarliestRestoreDateAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.EarliestRestoreDate = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_identity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_identity.go deleted file mode 100644 index 505b3fcb5542..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_identity.go +++ /dev/null @@ -1,11 +0,0 @@ -package servers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Identity struct { - PrincipalId *string `json:"principalId,omitempty"` - TenantId *string `json:"tenantId,omitempty"` - Type *ManagedServiceIdentityType `json:"type,omitempty"` - UserAssignedIdentities *map[string]interface{} `json:"userAssignedIdentities,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_server.go deleted file mode 100644 index 3dfd49fbcae5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_server.go +++ /dev/null @@ -1,20 +0,0 @@ -package servers - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Server struct { - Id *string `json:"id,omitempty"` - Identity *Identity `json:"identity,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties *ServerProperties `json:"properties,omitempty"` - Sku *Sku `json:"sku,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverforupdate.go deleted file mode 100644 index 23c929808c17..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverforupdate.go +++ /dev/null @@ -1,11 +0,0 @@ -package servers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServerForUpdate struct { - Identity *Identity `json:"identity,omitempty"` - Properties *ServerPropertiesForUpdate `json:"properties,omitempty"` - Sku *Sku `json:"sku,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverproperties.go deleted file mode 100644 index c5e3bd0ae84a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverproperties.go +++ /dev/null @@ -1,42 +0,0 @@ -package servers - -import ( - "time" - - "github.com/hashicorp/go-azure-helpers/lang/dates" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServerProperties struct { - AdministratorLogin *string `json:"administratorLogin,omitempty"` - AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` - AvailabilityZone *string `json:"availabilityZone,omitempty"` - Backup *Backup `json:"backup,omitempty"` - CreateMode *CreateMode `json:"createMode,omitempty"` - DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` - FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` - HighAvailability *HighAvailability `json:"highAvailability,omitempty"` - MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` - Network *Network `json:"network,omitempty"` - ReplicaCapacity *int64 `json:"replicaCapacity,omitempty"` - ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` - RestorePointInTime *string `json:"restorePointInTime,omitempty"` - SourceServerResourceId *string `json:"sourceServerResourceId,omitempty"` - State *ServerState `json:"state,omitempty"` - Storage *Storage `json:"storage,omitempty"` - Version *ServerVersion `json:"version,omitempty"` -} - -func (o *ServerProperties) GetRestorePointInTimeAsTime() (*time.Time, error) { - if o.RestorePointInTime == nil { - return nil, nil - } - return dates.ParseAsFormat(o.RestorePointInTime, "2006-01-02T15:04:05Z07:00") -} - -func (o *ServerProperties) SetRestorePointInTimeAsTime(input time.Time) { - formatted := input.Format("2006-01-02T15:04:05Z07:00") - o.RestorePointInTime = &formatted -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_sku.go deleted file mode 100644 index 6302164cd2e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_sku.go +++ /dev/null @@ -1,9 +0,0 @@ -package servers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Sku struct { - Name string `json:"name"` - Tier SkuTier `json:"tier"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go deleted file mode 100644 index 47918e464a75..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package servers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/servers/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go deleted file mode 100644 index a551280f9ba0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package serverstart - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/serverstart/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go deleted file mode 100644 index a96f76fa23c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package serverstop - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2022-01-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/serverstop/2022-01-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/README.md new file mode 100644 index 000000000000..b86e3f54f116 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/README.md @@ -0,0 +1,87 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings` Documentation + +The `advancedthreatprotectionsettings` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings" +``` + + +### Client Initialization + +```go +client := advancedthreatprotectionsettings.NewAdvancedThreatProtectionSettingsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AdvancedThreatProtectionSettingsClient.Get` + +```go +ctx := context.TODO() +id := advancedthreatprotectionsettings.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdvancedThreatProtectionSettingsClient.List` + +```go +ctx := context.TODO() +id := advancedthreatprotectionsettings.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AdvancedThreatProtectionSettingsClient.Update` + +```go +ctx := context.TODO() +id := advancedthreatprotectionsettings.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := advancedthreatprotectionsettings.AdvancedThreatProtectionForUpdate{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AdvancedThreatProtectionSettingsClient.UpdatePut` + +```go +ctx := context.TODO() +id := advancedthreatprotectionsettings.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := advancedthreatprotectionsettings.AdvancedThreatProtection{ + // ... +} + + +if err := client.UpdatePutThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/client.go new file mode 100644 index 000000000000..e7a35ff187ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/client.go @@ -0,0 +1,26 @@ +package advancedthreatprotectionsettings + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdvancedThreatProtectionSettingsClient struct { + Client *resourcemanager.Client +} + +func NewAdvancedThreatProtectionSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*AdvancedThreatProtectionSettingsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "advancedthreatprotectionsettings", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating AdvancedThreatProtectionSettingsClient: %+v", err) + } + + return &AdvancedThreatProtectionSettingsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/constants.go new file mode 100644 index 000000000000..c590a7f52ab4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/constants.go @@ -0,0 +1,98 @@ +package advancedthreatprotectionsettings + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdvancedThreatProtectionProvisioningState string + +const ( + AdvancedThreatProtectionProvisioningStateCanceled AdvancedThreatProtectionProvisioningState = "Canceled" + AdvancedThreatProtectionProvisioningStateFailed AdvancedThreatProtectionProvisioningState = "Failed" + AdvancedThreatProtectionProvisioningStateSucceeded AdvancedThreatProtectionProvisioningState = "Succeeded" + AdvancedThreatProtectionProvisioningStateUpdating AdvancedThreatProtectionProvisioningState = "Updating" +) + +func PossibleValuesForAdvancedThreatProtectionProvisioningState() []string { + return []string{ + string(AdvancedThreatProtectionProvisioningStateCanceled), + string(AdvancedThreatProtectionProvisioningStateFailed), + string(AdvancedThreatProtectionProvisioningStateSucceeded), + string(AdvancedThreatProtectionProvisioningStateUpdating), + } +} + +func (s *AdvancedThreatProtectionProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAdvancedThreatProtectionProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAdvancedThreatProtectionProvisioningState(input string) (*AdvancedThreatProtectionProvisioningState, error) { + vals := map[string]AdvancedThreatProtectionProvisioningState{ + "canceled": AdvancedThreatProtectionProvisioningStateCanceled, + "failed": AdvancedThreatProtectionProvisioningStateFailed, + "succeeded": AdvancedThreatProtectionProvisioningStateSucceeded, + "updating": AdvancedThreatProtectionProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AdvancedThreatProtectionProvisioningState(input) + return &out, nil +} + +type AdvancedThreatProtectionState string + +const ( + AdvancedThreatProtectionStateDisabled AdvancedThreatProtectionState = "Disabled" + AdvancedThreatProtectionStateEnabled AdvancedThreatProtectionState = "Enabled" +) + +func PossibleValuesForAdvancedThreatProtectionState() []string { + return []string{ + string(AdvancedThreatProtectionStateDisabled), + string(AdvancedThreatProtectionStateEnabled), + } +} + +func (s *AdvancedThreatProtectionState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAdvancedThreatProtectionState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAdvancedThreatProtectionState(input string) (*AdvancedThreatProtectionState, error) { + vals := map[string]AdvancedThreatProtectionState{ + "disabled": AdvancedThreatProtectionStateDisabled, + "enabled": AdvancedThreatProtectionStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AdvancedThreatProtectionState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/id_flexibleserver.go new file mode 100644 index 000000000000..297e4313c407 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/id_flexibleserver.go @@ -0,0 +1,130 @@ +package advancedthreatprotectionsettings + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlexibleServerId{}) +} + +var _ resourceids.ResourceId = &FlexibleServerId{} + +// FlexibleServerId is a struct representing the Resource ID for a Flexible Server +type FlexibleServerId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string +} + +// NewFlexibleServerID returns a new FlexibleServerId struct +func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId { + return FlexibleServerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + } +} + +// ParseFlexibleServerID parses 'input' into a FlexibleServerId +func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId +// note: this method should only be used for API response data and not user input +func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + return nil +} + +// ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID +func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlexibleServerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flexible Server ID +func (id FlexibleServerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID +func (id FlexibleServerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + } +} + +// String returns a human-readable description of this Flexible Server ID +func (id FlexibleServerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + } + return fmt.Sprintf("Flexible Server (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_get.go new file mode 100644 index 000000000000..da0e2fc8abb7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_get.go @@ -0,0 +1,54 @@ +package advancedthreatprotectionsettings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AdvancedThreatProtection +} + +// Get ... +func (c AdvancedThreatProtectionSettingsClient) Get(ctx context.Context, id FlexibleServerId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/advancedThreatProtectionSettings/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model AdvancedThreatProtection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_list.go new file mode 100644 index 000000000000..0a3f4043f93d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_list.go @@ -0,0 +1,105 @@ +package advancedthreatprotectionsettings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AdvancedThreatProtection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []AdvancedThreatProtection +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c AdvancedThreatProtectionSettingsClient) List(ctx context.Context, id FlexibleServerId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/advancedThreatProtectionSettings", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AdvancedThreatProtection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c AdvancedThreatProtectionSettingsClient) ListComplete(ctx context.Context, id FlexibleServerId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, AdvancedThreatProtectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AdvancedThreatProtectionSettingsClient) ListCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate AdvancedThreatProtectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]AdvancedThreatProtection, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_update.go new file mode 100644 index 000000000000..28917c5ee489 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_update.go @@ -0,0 +1,75 @@ +package advancedthreatprotectionsettings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *AdvancedThreatProtection +} + +// Update ... +func (c AdvancedThreatProtectionSettingsClient) Update(ctx context.Context, id FlexibleServerId, input AdvancedThreatProtectionForUpdate) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/advancedThreatProtectionSettings/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c AdvancedThreatProtectionSettingsClient) UpdateThenPoll(ctx context.Context, id FlexibleServerId, input AdvancedThreatProtectionForUpdate) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_updateput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_updateput.go new file mode 100644 index 000000000000..4b495289c2bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/method_updateput.go @@ -0,0 +1,76 @@ +package advancedthreatprotectionsettings + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdatePutOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *AdvancedThreatProtection +} + +// UpdatePut ... +func (c AdvancedThreatProtectionSettingsClient) UpdatePut(ctx context.Context, id FlexibleServerId, input AdvancedThreatProtection) (result UpdatePutOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/advancedThreatProtectionSettings/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdatePutThenPoll performs UpdatePut then polls until it's completed +func (c AdvancedThreatProtectionSettingsClient) UpdatePutThenPoll(ctx context.Context, id FlexibleServerId, input AdvancedThreatProtection) error { + result, err := c.UpdatePut(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UpdatePut: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UpdatePut: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotection.go new file mode 100644 index 000000000000..ec209c1cc140 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotection.go @@ -0,0 +1,16 @@ +package advancedthreatprotectionsettings + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdvancedThreatProtection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AdvancedThreatProtectionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionforupdate.go new file mode 100644 index 000000000000..21770477a6cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionforupdate.go @@ -0,0 +1,8 @@ +package advancedthreatprotectionsettings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdvancedThreatProtectionForUpdate struct { + Properties *AdvancedThreatProtectionUpdateProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionproperties.go new file mode 100644 index 000000000000..fa706079869e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionproperties.go @@ -0,0 +1,28 @@ +package advancedthreatprotectionsettings + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdvancedThreatProtectionProperties struct { + CreationTime *string `json:"creationTime,omitempty"` + ProvisioningState *AdvancedThreatProtectionProvisioningState `json:"provisioningState,omitempty"` + State *AdvancedThreatProtectionState `json:"state,omitempty"` +} + +func (o *AdvancedThreatProtectionProperties) GetCreationTimeAsTime() (*time.Time, error) { + if o.CreationTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CreationTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *AdvancedThreatProtectionProperties) SetCreationTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CreationTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionupdateproperties.go new file mode 100644 index 000000000000..0ee05627e5b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/model_advancedthreatprotectionupdateproperties.go @@ -0,0 +1,8 @@ +package advancedthreatprotectionsettings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdvancedThreatProtectionUpdateProperties struct { + State AdvancedThreatProtectionState `json:"state"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/predicates.go new file mode 100644 index 000000000000..3ae1bf20e899 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/predicates.go @@ -0,0 +1,27 @@ +package advancedthreatprotectionsettings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdvancedThreatProtectionOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p AdvancedThreatProtectionOperationPredicate) Matches(input AdvancedThreatProtection) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/version.go new file mode 100644 index 000000000000..30cad3e63a88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings/version.go @@ -0,0 +1,10 @@ +package advancedthreatprotectionsettings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/advancedthreatprotectionsettings/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/README.md new file mode 100644 index 000000000000..8966006a9d42 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators` Documentation + +The `azureadadministrators` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators" +``` + + +### Client Initialization + +```go +client := azureadadministrators.NewAzureADAdministratorsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AzureADAdministratorsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := azureadadministrators.AzureADAdministrator{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureADAdministratorsClient.Delete` + +```go +ctx := context.TODO() +id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureADAdministratorsClient.Get` + +```go +ctx := context.TODO() +id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AzureADAdministratorsClient.ListByServer` + +```go +ctx := context.TODO() +id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination +items, err := client.ListByServerComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/model_administratorproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/model_administratorproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/model_administratorproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/model_administratorproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/model_azureadadministrator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/model_azureadadministrator.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/model_azureadadministrator.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/model_azureadadministrator.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/version.go new file mode 100644 index 000000000000..9c660ab53890 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators/version.go @@ -0,0 +1,10 @@ +package azureadadministrators + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/azureadadministrators/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/README.md new file mode 100644 index 000000000000..ce1926f27078 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/README.md @@ -0,0 +1,53 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport` Documentation + +The `backupandexport` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport" +``` + + +### Client Initialization + +```go +client := backupandexport.NewBackupAndExportClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BackupAndExportClient.Create` + +```go +ctx := context.TODO() +id := backupandexport.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := backupandexport.BackupAndExportRequest{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupAndExportClient.ValidateBackup` + +```go +ctx := context.TODO() +id := backupandexport.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +read, err := client.ValidateBackup(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/client.go new file mode 100644 index 000000000000..b05c3ad7f0fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/client.go @@ -0,0 +1,26 @@ +package backupandexport + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupAndExportClient struct { + Client *resourcemanager.Client +} + +func NewBackupAndExportClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupAndExportClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "backupandexport", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating BackupAndExportClient: %+v", err) + } + + return &BackupAndExportClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/constants.go new file mode 100644 index 000000000000..2afb6fcce068 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/constants.go @@ -0,0 +1,104 @@ +package backupandexport + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupFormat string + +const ( + BackupFormatCollatedFormat BackupFormat = "CollatedFormat" + BackupFormatRaw BackupFormat = "Raw" +) + +func PossibleValuesForBackupFormat() []string { + return []string{ + string(BackupFormatCollatedFormat), + string(BackupFormatRaw), + } +} + +func (s *BackupFormat) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBackupFormat(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBackupFormat(input string) (*BackupFormat, error) { + vals := map[string]BackupFormat{ + "collatedformat": BackupFormatCollatedFormat, + "raw": BackupFormatRaw, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BackupFormat(input) + return &out, nil +} + +type OperationStatus string + +const ( + OperationStatusCancelInProgress OperationStatus = "CancelInProgress" + OperationStatusCanceled OperationStatus = "Canceled" + OperationStatusFailed OperationStatus = "Failed" + OperationStatusInProgress OperationStatus = "InProgress" + OperationStatusPending OperationStatus = "Pending" + OperationStatusSucceeded OperationStatus = "Succeeded" +) + +func PossibleValuesForOperationStatus() []string { + return []string{ + string(OperationStatusCancelInProgress), + string(OperationStatusCanceled), + string(OperationStatusFailed), + string(OperationStatusInProgress), + string(OperationStatusPending), + string(OperationStatusSucceeded), + } +} + +func (s *OperationStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOperationStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOperationStatus(input string) (*OperationStatus, error) { + vals := map[string]OperationStatus{ + "cancelinprogress": OperationStatusCancelInProgress, + "canceled": OperationStatusCanceled, + "failed": OperationStatusFailed, + "inprogress": OperationStatusInProgress, + "pending": OperationStatusPending, + "succeeded": OperationStatusSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OperationStatus(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/id_flexibleserver.go new file mode 100644 index 000000000000..593e5b519027 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/id_flexibleserver.go @@ -0,0 +1,130 @@ +package backupandexport + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlexibleServerId{}) +} + +var _ resourceids.ResourceId = &FlexibleServerId{} + +// FlexibleServerId is a struct representing the Resource ID for a Flexible Server +type FlexibleServerId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string +} + +// NewFlexibleServerID returns a new FlexibleServerId struct +func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId { + return FlexibleServerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + } +} + +// ParseFlexibleServerID parses 'input' into a FlexibleServerId +func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId +// note: this method should only be used for API response data and not user input +func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + return nil +} + +// ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID +func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlexibleServerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flexible Server ID +func (id FlexibleServerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID +func (id FlexibleServerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + } +} + +// String returns a human-readable description of this Flexible Server ID +func (id FlexibleServerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + } + return fmt.Sprintf("Flexible Server (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/method_create.go new file mode 100644 index 000000000000..81bcd699f7ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/method_create.go @@ -0,0 +1,75 @@ +package backupandexport + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *BackupAndExportResponse +} + +// Create ... +func (c BackupAndExportClient) Create(ctx context.Context, id FlexibleServerId, input BackupAndExportRequest) (result CreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/backupAndExport", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateThenPoll performs Create then polls until it's completed +func (c BackupAndExportClient) CreateThenPoll(ctx context.Context, id FlexibleServerId, input BackupAndExportRequest) error { + result, err := c.Create(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Create: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Create: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/method_validatebackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/method_validatebackup.go new file mode 100644 index 000000000000..326579372b7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/method_validatebackup.go @@ -0,0 +1,54 @@ +package backupandexport + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateBackupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ValidateBackupResponse +} + +// ValidateBackup ... +func (c BackupAndExportClient) ValidateBackup(ctx context.Context, id FlexibleServerId) (result ValidateBackupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/validateBackup", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ValidateBackupResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportrequest.go new file mode 100644 index 000000000000..33e915fb8f1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportrequest.go @@ -0,0 +1,42 @@ +package backupandexport + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupAndExportRequest struct { + BackupSettings BackupSettings `json:"backupSettings"` + TargetDetails BackupStoreDetails `json:"targetDetails"` +} + +var _ json.Unmarshaler = &BackupAndExportRequest{} + +func (s *BackupAndExportRequest) UnmarshalJSON(bytes []byte) error { + var decoded struct { + BackupSettings BackupSettings `json:"backupSettings"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.BackupSettings = decoded.BackupSettings + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling BackupAndExportRequest into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["targetDetails"]; ok { + impl, err := UnmarshalBackupStoreDetailsImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'TargetDetails' for 'BackupAndExportRequest': %+v", err) + } + s.TargetDetails = impl + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportresponse.go new file mode 100644 index 000000000000..768c96e25d17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportresponse.go @@ -0,0 +1,48 @@ +package backupandexport + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupAndExportResponse struct { + EndTime *string `json:"endTime,omitempty"` + Error *ErrorDetail `json:"error,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + PercentComplete *float64 `json:"percentComplete,omitempty"` + Properties *BackupAndExportResponseProperties `json:"properties,omitempty"` + StartTime *string `json:"startTime,omitempty"` + Status *OperationStatus `json:"status,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (o *BackupAndExportResponse) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *BackupAndExportResponse) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *BackupAndExportResponse) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *BackupAndExportResponse) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportresponseproperties.go new file mode 100644 index 000000000000..660505032be3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupandexportresponseproperties.go @@ -0,0 +1,10 @@ +package backupandexport + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupAndExportResponseProperties struct { + BackupMetadata *string `json:"backupMetadata,omitempty"` + DataTransferredInBytes *int64 `json:"dataTransferredInBytes,omitempty"` + DatasourceSizeInBytes *int64 `json:"datasourceSizeInBytes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupsettings.go new file mode 100644 index 000000000000..7d4676155512 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupsettings.go @@ -0,0 +1,9 @@ +package backupandexport + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupSettings struct { + BackupFormat *BackupFormat `json:"backupFormat,omitempty"` + BackupName string `json:"backupName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupstoredetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupstoredetails.go new file mode 100644 index 000000000000..a0b53ecf6f9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_backupstoredetails.go @@ -0,0 +1,75 @@ +package backupandexport + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupStoreDetails interface { + BackupStoreDetails() BaseBackupStoreDetailsImpl +} + +var _ BackupStoreDetails = BaseBackupStoreDetailsImpl{} + +type BaseBackupStoreDetailsImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseBackupStoreDetailsImpl) BackupStoreDetails() BaseBackupStoreDetailsImpl { + return s +} + +var _ BackupStoreDetails = RawBackupStoreDetailsImpl{} + +// RawBackupStoreDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawBackupStoreDetailsImpl struct { + backupStoreDetails BaseBackupStoreDetailsImpl + Type string + Values map[string]interface{} +} + +func (s RawBackupStoreDetailsImpl) BackupStoreDetails() BaseBackupStoreDetailsImpl { + return s.backupStoreDetails +} + +func UnmarshalBackupStoreDetailsImplementation(input []byte) (BackupStoreDetails, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling BackupStoreDetails into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "FullBackupStoreDetails") { + var out FullBackupStoreDetails + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into FullBackupStoreDetails: %+v", err) + } + return out, nil + } + + var parent BaseBackupStoreDetailsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBackupStoreDetailsImpl: %+v", err) + } + + return RawBackupStoreDetailsImpl{ + backupStoreDetails: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_erroradditionalinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_erroradditionalinfo.go new file mode 100644 index 000000000000..eeff28323b19 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_erroradditionalinfo.go @@ -0,0 +1,9 @@ +package backupandexport + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ErrorAdditionalInfo struct { + Info *interface{} `json:"info,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_errordetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_errordetail.go new file mode 100644 index 000000000000..4009077d49da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_errordetail.go @@ -0,0 +1,12 @@ +package backupandexport + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ErrorDetail struct { + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` + Code *string `json:"code,omitempty"` + Details *[]ErrorDetail `json:"details,omitempty"` + Message *string `json:"message,omitempty"` + Target *string `json:"target,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_fullbackupstoredetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_fullbackupstoredetails.go new file mode 100644 index 000000000000..fa77f9126733 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_fullbackupstoredetails.go @@ -0,0 +1,50 @@ +package backupandexport + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ BackupStoreDetails = FullBackupStoreDetails{} + +type FullBackupStoreDetails struct { + SasUriList []string `json:"sasUriList"` + + // Fields inherited from BackupStoreDetails + + ObjectType string `json:"objectType"` +} + +func (s FullBackupStoreDetails) BackupStoreDetails() BaseBackupStoreDetailsImpl { + return BaseBackupStoreDetailsImpl{ + ObjectType: s.ObjectType, + } +} + +var _ json.Marshaler = FullBackupStoreDetails{} + +func (s FullBackupStoreDetails) MarshalJSON() ([]byte, error) { + type wrapper FullBackupStoreDetails + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling FullBackupStoreDetails: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling FullBackupStoreDetails: %+v", err) + } + + decoded["objectType"] = "FullBackupStoreDetails" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling FullBackupStoreDetails: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_validatebackupresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_validatebackupresponse.go new file mode 100644 index 000000000000..7a32cbf85b45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_validatebackupresponse.go @@ -0,0 +1,8 @@ +package backupandexport + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateBackupResponse struct { + Properties *ValidateBackupResponseProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_validatebackupresponseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_validatebackupresponseproperties.go new file mode 100644 index 000000000000..08ab3f29af76 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/model_validatebackupresponseproperties.go @@ -0,0 +1,8 @@ +package backupandexport + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateBackupResponseProperties struct { + NumberOfContainers *int64 `json:"numberOfContainers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/version.go new file mode 100644 index 000000000000..ec83f205948c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport/version.go @@ -0,0 +1,10 @@ +package backupandexport + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/backupandexport/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/README.md new file mode 100644 index 000000000000..1e812cff92d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/README.md @@ -0,0 +1,69 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups` Documentation + +The `backups` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups" +``` + + +### Client Initialization + +```go +client := backups.NewBackupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BackupsClient.Get` + +```go +ctx := context.TODO() +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "backupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackupsClient.ListByServer` + +```go +ctx := context.TODO() +id := backups.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination +items, err := client.ListByServerComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BackupsClient.Put` + +```go +ctx := context.TODO() +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "backupName") + +read, err := client.Put(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/id_backup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_backup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/id_backup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/method_put.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/method_put.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/model_serverbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/model_serverbackup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/model_serverbackup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/model_serverbackup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/model_serverbackupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/model_serverbackupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/model_serverbackupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/model_serverbackupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/version.go new file mode 100644 index 000000000000..72e1293154b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups/version.go @@ -0,0 +1,10 @@ +package backups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/backups/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/README.md new file mode 100644 index 000000000000..2e60466b8d8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/README.md @@ -0,0 +1,70 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2` Documentation + +The `backupsv2` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2" +``` + + +### Client Initialization + +```go +client := backupsv2.NewBackupsV2ClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BackupsV2Client.LongRunningBackupCreate` + +```go +ctx := context.TODO() +id := backupsv2.NewBackupsV2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "backupsV2Name") + +payload := backupsv2.ServerBackupV2{ + // ... +} + + +if err := client.LongRunningBackupCreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupsV2Client.LongRunningBackupsGet` + +```go +ctx := context.TODO() +id := backupsv2.NewBackupsV2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "backupsV2Name") + +read, err := client.LongRunningBackupsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackupsV2Client.LongRunningBackupsList` + +```go +ctx := context.TODO() +id := backupsv2.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.LongRunningBackupsList(ctx, id)` can be used to do batched pagination +items, err := client.LongRunningBackupsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/client.go new file mode 100644 index 000000000000..1a4eca1f6e83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/client.go @@ -0,0 +1,26 @@ +package backupsv2 + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupsV2Client struct { + Client *resourcemanager.Client +} + +func NewBackupsV2ClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupsV2Client, error) { + client, err := resourcemanager.NewClient(sdkApi, "backupsv2", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating BackupsV2Client: %+v", err) + } + + return &BackupsV2Client{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/constants.go new file mode 100644 index 000000000000..764da0bee228 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/constants.go @@ -0,0 +1,98 @@ +package backupsv2 + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupType string + +const ( + BackupTypeFULL BackupType = "FULL" +) + +func PossibleValuesForBackupType() []string { + return []string{ + string(BackupTypeFULL), + } +} + +func (s *BackupType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBackupType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBackupType(input string) (*BackupType, error) { + vals := map[string]BackupType{ + "full": BackupTypeFULL, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BackupType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateCreating ProvisioningState = "Creating" + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateCanceled), + string(ProvisioningStateCreating), + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "canceled": ProvisioningStateCanceled, + "creating": ProvisioningStateCreating, + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/id_backupsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/id_backupsv2.go new file mode 100644 index 000000000000..e50e063e1405 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/id_backupsv2.go @@ -0,0 +1,139 @@ +package backupsv2 + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&BackupsV2Id{}) +} + +var _ resourceids.ResourceId = &BackupsV2Id{} + +// BackupsV2Id is a struct representing the Resource ID for a Backups V 2 +type BackupsV2Id struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string + BackupsV2Name string +} + +// NewBackupsV2ID returns a new BackupsV2Id struct +func NewBackupsV2ID(subscriptionId string, resourceGroupName string, flexibleServerName string, backupsV2Name string) BackupsV2Id { + return BackupsV2Id{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + BackupsV2Name: backupsV2Name, + } +} + +// ParseBackupsV2ID parses 'input' into a BackupsV2Id +func ParseBackupsV2ID(input string) (*BackupsV2Id, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupsV2Id{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupsV2Id{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseBackupsV2IDInsensitively parses 'input' case-insensitively into a BackupsV2Id +// note: this method should only be used for API response data and not user input +func ParseBackupsV2IDInsensitively(input string) (*BackupsV2Id, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupsV2Id{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupsV2Id{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *BackupsV2Id) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + if id.BackupsV2Name, ok = input.Parsed["backupsV2Name"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backupsV2Name", input) + } + + return nil +} + +// ValidateBackupsV2ID checks that 'input' can be parsed as a Backups V 2 ID +func ValidateBackupsV2ID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseBackupsV2ID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Backups V 2 ID +func (id BackupsV2Id) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s/backupsV2/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName, id.BackupsV2Name) +} + +// Segments returns a slice of Resource ID Segments which comprise this Backups V 2 ID +func (id BackupsV2Id) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + resourceids.StaticSegment("staticBackupsV2", "backupsV2", "backupsV2"), + resourceids.UserSpecifiedSegment("backupsV2Name", "backupsV2Name"), + } +} + +// String returns a human-readable description of this Backups V 2 ID +func (id BackupsV2Id) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + fmt.Sprintf("Backups V 2 Name: %q", id.BackupsV2Name), + } + return fmt.Sprintf("Backups V 2 (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/id_flexibleserver.go new file mode 100644 index 000000000000..9c1e371a991b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/id_flexibleserver.go @@ -0,0 +1,130 @@ +package backupsv2 + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlexibleServerId{}) +} + +var _ resourceids.ResourceId = &FlexibleServerId{} + +// FlexibleServerId is a struct representing the Resource ID for a Flexible Server +type FlexibleServerId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string +} + +// NewFlexibleServerID returns a new FlexibleServerId struct +func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId { + return FlexibleServerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + } +} + +// ParseFlexibleServerID parses 'input' into a FlexibleServerId +func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId +// note: this method should only be used for API response data and not user input +func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + return nil +} + +// ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID +func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlexibleServerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flexible Server ID +func (id FlexibleServerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID +func (id FlexibleServerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + } +} + +// String returns a human-readable description of this Flexible Server ID +func (id FlexibleServerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + } + return fmt.Sprintf("Flexible Server (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupcreate.go new file mode 100644 index 000000000000..3885075c3a6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupcreate.go @@ -0,0 +1,76 @@ +package backupsv2 + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LongRunningBackupCreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ServerBackupV2 +} + +// LongRunningBackupCreate ... +func (c BackupsV2Client) LongRunningBackupCreate(ctx context.Context, id BackupsV2Id, input ServerBackupV2) (result LongRunningBackupCreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// LongRunningBackupCreateThenPoll performs LongRunningBackupCreate then polls until it's completed +func (c BackupsV2Client) LongRunningBackupCreateThenPoll(ctx context.Context, id BackupsV2Id, input ServerBackupV2) error { + result, err := c.LongRunningBackupCreate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing LongRunningBackupCreate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after LongRunningBackupCreate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupsget.go new file mode 100644 index 000000000000..a15e75406545 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupsget.go @@ -0,0 +1,53 @@ +package backupsv2 + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LongRunningBackupsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ServerBackupV2 +} + +// LongRunningBackupsGet ... +func (c BackupsV2Client) LongRunningBackupsGet(ctx context.Context, id BackupsV2Id) (result LongRunningBackupsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ServerBackupV2 + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupslist.go new file mode 100644 index 000000000000..26f132b0a08a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/method_longrunningbackupslist.go @@ -0,0 +1,105 @@ +package backupsv2 + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LongRunningBackupsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ServerBackupV2 +} + +type LongRunningBackupsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ServerBackupV2 +} + +type LongRunningBackupsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *LongRunningBackupsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// LongRunningBackupsList ... +func (c BackupsV2Client) LongRunningBackupsList(ctx context.Context, id FlexibleServerId) (result LongRunningBackupsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &LongRunningBackupsListCustomPager{}, + Path: fmt.Sprintf("%s/backupsV2", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ServerBackupV2 `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// LongRunningBackupsListComplete retrieves all the results into a single object +func (c BackupsV2Client) LongRunningBackupsListComplete(ctx context.Context, id FlexibleServerId) (LongRunningBackupsListCompleteResult, error) { + return c.LongRunningBackupsListCompleteMatchingPredicate(ctx, id, ServerBackupV2OperationPredicate{}) +} + +// LongRunningBackupsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c BackupsV2Client) LongRunningBackupsListCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate ServerBackupV2OperationPredicate) (result LongRunningBackupsListCompleteResult, err error) { + items := make([]ServerBackupV2, 0) + + resp, err := c.LongRunningBackupsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = LongRunningBackupsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/model_serverbackuppropertiesv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/model_serverbackuppropertiesv2.go new file mode 100644 index 000000000000..74adf4f088eb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/model_serverbackuppropertiesv2.go @@ -0,0 +1,30 @@ +package backupsv2 + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerBackupPropertiesV2 struct { + BackupNameV2 *string `json:"backupNameV2,omitempty"` + BackupType *BackupType `json:"backupType,omitempty"` + CompletedTime *string `json:"completedTime,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Source *string `json:"source,omitempty"` +} + +func (o *ServerBackupPropertiesV2) GetCompletedTimeAsTime() (*time.Time, error) { + if o.CompletedTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CompletedTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ServerBackupPropertiesV2) SetCompletedTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CompletedTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/model_serverbackupv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/model_serverbackupv2.go new file mode 100644 index 000000000000..9573444a04ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/model_serverbackupv2.go @@ -0,0 +1,16 @@ +package backupsv2 + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerBackupV2 struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServerBackupPropertiesV2 `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/predicates.go new file mode 100644 index 000000000000..92711a6c0253 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/predicates.go @@ -0,0 +1,27 @@ +package backupsv2 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerBackupV2OperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p ServerBackupV2OperationPredicate) Matches(input ServerBackupV2) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/version.go new file mode 100644 index 000000000000..b5a24d5c5bb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2/version.go @@ -0,0 +1,10 @@ +package backupsv2 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/backupsv2/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/README.md new file mode 100644 index 000000000000..fe57c0b70165 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/README.md @@ -0,0 +1,63 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability` Documentation + +The `checknameavailability` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability" +``` + + +### Client Initialization + +```go +client := checknameavailability.NewCheckNameAvailabilityClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CheckNameAvailabilityClient.Execute` + +```go +ctx := context.TODO() +id := checknameavailability.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +payload := checknameavailability.NameAvailabilityRequest{ + // ... +} + + +read, err := client.Execute(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CheckNameAvailabilityClient.WithoutLocationExecute` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +payload := checknameavailability.NameAvailabilityRequest{ + // ... +} + + +read, err := client.WithoutLocationExecute(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_execute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/method_execute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_execute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/method_execute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_withoutlocationexecute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/method_withoutlocationexecute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_withoutlocationexecute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/method_withoutlocationexecute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/model_nameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/model_nameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/model_nameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/model_nameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/model_nameavailabilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/model_nameavailabilityrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/model_nameavailabilityrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/model_nameavailabilityrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/version.go new file mode 100644 index 000000000000..2497ca423925 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability/version.go @@ -0,0 +1,10 @@ +package checknameavailability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/checknameavailability/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/client.go new file mode 100644 index 000000000000..f79c0da7dd1c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/client.go @@ -0,0 +1,226 @@ +package v2023_12_30 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop" + "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +type Client struct { + AdvancedThreatProtectionSettings *advancedthreatprotectionsettings.AdvancedThreatProtectionSettingsClient + AzureADAdministrators *azureadadministrators.AzureADAdministratorsClient + BackupAndExport *backupandexport.BackupAndExportClient + Backups *backups.BackupsClient + BackupsV2 *backupsv2.BackupsV2Client + CheckNameAvailability *checknameavailability.CheckNameAvailabilityClient + Configurations *configurations.ConfigurationsClient + Databases *databases.DatabasesClient + FirewallRules *firewallrules.FirewallRulesClient + GetPrivateDnsZoneSuffix *getprivatednszonesuffix.GetPrivateDnsZoneSuffixClient + LocationBasedCapabilities *locationbasedcapabilities.LocationBasedCapabilitiesClient + LocationBasedCapability *locationbasedcapability.LocationBasedCapabilityClient + LogFiles *logfiles.LogFilesClient + Maintenances *maintenances.MaintenancesClient + OperationProgress *operationprogress.OperationProgressClient + ServerFailover *serverfailover.ServerFailoverClient + ServerMigration *servermigration.ServerMigrationClient + ServerResetGtid *serverresetgtid.ServerResetGtidClient + ServerRestart *serverrestart.ServerRestartClient + ServerStart *serverstart.ServerStartClient + ServerStop *serverstop.ServerStopClient + ServerValidateEstimateHighAvailability *servervalidateestimatehighavailability.ServerValidateEstimateHighAvailabilityClient + Servers *servers.ServersClient +} + +func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { + advancedThreatProtectionSettingsClient, err := advancedthreatprotectionsettings.NewAdvancedThreatProtectionSettingsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AdvancedThreatProtectionSettings client: %+v", err) + } + configureFunc(advancedThreatProtectionSettingsClient.Client) + + azureADAdministratorsClient, err := azureadadministrators.NewAzureADAdministratorsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AzureADAdministrators client: %+v", err) + } + configureFunc(azureADAdministratorsClient.Client) + + backupAndExportClient, err := backupandexport.NewBackupAndExportClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building BackupAndExport client: %+v", err) + } + configureFunc(backupAndExportClient.Client) + + backupsClient, err := backups.NewBackupsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Backups client: %+v", err) + } + configureFunc(backupsClient.Client) + + backupsV2Client, err := backupsv2.NewBackupsV2ClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building BackupsV2 client: %+v", err) + } + configureFunc(backupsV2Client.Client) + + checkNameAvailabilityClient, err := checknameavailability.NewCheckNameAvailabilityClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building CheckNameAvailability client: %+v", err) + } + configureFunc(checkNameAvailabilityClient.Client) + + configurationsClient, err := configurations.NewConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Configurations client: %+v", err) + } + configureFunc(configurationsClient.Client) + + databasesClient, err := databases.NewDatabasesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Databases client: %+v", err) + } + configureFunc(databasesClient.Client) + + firewallRulesClient, err := firewallrules.NewFirewallRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building FirewallRules client: %+v", err) + } + configureFunc(firewallRulesClient.Client) + + getPrivateDnsZoneSuffixClient, err := getprivatednszonesuffix.NewGetPrivateDnsZoneSuffixClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building GetPrivateDnsZoneSuffix client: %+v", err) + } + configureFunc(getPrivateDnsZoneSuffixClient.Client) + + locationBasedCapabilitiesClient, err := locationbasedcapabilities.NewLocationBasedCapabilitiesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building LocationBasedCapabilities client: %+v", err) + } + configureFunc(locationBasedCapabilitiesClient.Client) + + locationBasedCapabilityClient, err := locationbasedcapability.NewLocationBasedCapabilityClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building LocationBasedCapability client: %+v", err) + } + configureFunc(locationBasedCapabilityClient.Client) + + logFilesClient, err := logfiles.NewLogFilesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building LogFiles client: %+v", err) + } + configureFunc(logFilesClient.Client) + + maintenancesClient, err := maintenances.NewMaintenancesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Maintenances client: %+v", err) + } + configureFunc(maintenancesClient.Client) + + operationProgressClient, err := operationprogress.NewOperationProgressClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building OperationProgress client: %+v", err) + } + configureFunc(operationProgressClient.Client) + + serverFailoverClient, err := serverfailover.NewServerFailoverClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServerFailover client: %+v", err) + } + configureFunc(serverFailoverClient.Client) + + serverMigrationClient, err := servermigration.NewServerMigrationClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServerMigration client: %+v", err) + } + configureFunc(serverMigrationClient.Client) + + serverResetGtidClient, err := serverresetgtid.NewServerResetGtidClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServerResetGtid client: %+v", err) + } + configureFunc(serverResetGtidClient.Client) + + serverRestartClient, err := serverrestart.NewServerRestartClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServerRestart client: %+v", err) + } + configureFunc(serverRestartClient.Client) + + serverStartClient, err := serverstart.NewServerStartClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServerStart client: %+v", err) + } + configureFunc(serverStartClient.Client) + + serverStopClient, err := serverstop.NewServerStopClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServerStop client: %+v", err) + } + configureFunc(serverStopClient.Client) + + serverValidateEstimateHighAvailabilityClient, err := servervalidateestimatehighavailability.NewServerValidateEstimateHighAvailabilityClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServerValidateEstimateHighAvailability client: %+v", err) + } + configureFunc(serverValidateEstimateHighAvailabilityClient.Client) + + serversClient, err := servers.NewServersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Servers client: %+v", err) + } + configureFunc(serversClient.Client) + + return &Client{ + AdvancedThreatProtectionSettings: advancedThreatProtectionSettingsClient, + AzureADAdministrators: azureADAdministratorsClient, + BackupAndExport: backupAndExportClient, + Backups: backupsClient, + BackupsV2: backupsV2Client, + CheckNameAvailability: checkNameAvailabilityClient, + Configurations: configurationsClient, + Databases: databasesClient, + FirewallRules: firewallRulesClient, + GetPrivateDnsZoneSuffix: getPrivateDnsZoneSuffixClient, + LocationBasedCapabilities: locationBasedCapabilitiesClient, + LocationBasedCapability: locationBasedCapabilityClient, + LogFiles: logFilesClient, + Maintenances: maintenancesClient, + OperationProgress: operationProgressClient, + ServerFailover: serverFailoverClient, + ServerMigration: serverMigrationClient, + ServerResetGtid: serverResetGtidClient, + ServerRestart: serverRestartClient, + ServerStart: serverStartClient, + ServerStop: serverStopClient, + ServerValidateEstimateHighAvailability: serverValidateEstimateHighAvailabilityClient, + Servers: serversClient, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/README.md new file mode 100644 index 000000000000..e07b3ad20b13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/README.md @@ -0,0 +1,109 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations` Documentation + +The `configurations` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations" +``` + + +### Client Initialization + +```go +client := configurations.NewConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ConfigurationsClient.BatchUpdate` + +```go +ctx := context.TODO() +id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := configurations.ConfigurationListForBatchUpdate{ + // ... +} + + +// alternatively `client.BatchUpdate(ctx, id, payload)` can be used to do batched pagination +items, err := client.BatchUpdateComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "configurationName") + +payload := configurations.Configuration{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "configurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConfigurationsClient.ListByServer` + +```go +ctx := context.TODO() +id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.ListByServer(ctx, id, configurations.DefaultListByServerOperationOptions())` can be used to do batched pagination +items, err := client.ListByServerComplete(ctx, id, configurations.DefaultListByServerOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ConfigurationsClient.Update` + +```go +ctx := context.TODO() +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "configurationName") + +payload := configurations.Configuration{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/id_configuration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_configuration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/id_configuration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_batchupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_batchupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_batchupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configuration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configuration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configuration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationforbatchupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configurationforbatchupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationforbatchupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configurationforbatchupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationforbatchupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configurationforbatchupdateproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationforbatchupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configurationforbatchupdateproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistforbatchupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configurationlistforbatchupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationlistforbatchupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configurationlistforbatchupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/model_configurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/model_configurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/version.go new file mode 100644 index 000000000000..eb7a17ff37aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations/version.go @@ -0,0 +1,10 @@ +package configurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/configurations/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/README.md new file mode 100644 index 000000000000..2e5068bf3eab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases` Documentation + +The `databases` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases" +``` + + +### Client Initialization + +```go +client := databases.NewDatabasesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DatabasesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "databaseName") + +payload := databases.Database{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `DatabasesClient.Delete` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "databaseName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `DatabasesClient.Get` + +```go +ctx := context.TODO() +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "databaseName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DatabasesClient.ListByServer` + +```go +ctx := context.TODO() +id := databases.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination +items, err := client.ListByServerComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/id_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/id_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/model_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/model_database.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/model_database.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/model_database.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/model_databaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/model_databaseproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/model_databaseproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/model_databaseproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/version.go new file mode 100644 index 000000000000..fdd580a63285 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases/version.go @@ -0,0 +1,10 @@ +package databases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/databases/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/README.md new file mode 100644 index 000000000000..f7cb0f815686 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules` Documentation + +The `firewallrules` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules" +``` + + +### Client Initialization + +```go +client := firewallrules.NewFirewallRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FirewallRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "firewallRuleName") + +payload := firewallrules.FirewallRule{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallRulesClient.Delete` + +```go +ctx := context.TODO() +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "firewallRuleName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallRulesClient.Get` + +```go +ctx := context.TODO() +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "firewallRuleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallRulesClient.ListByServer` + +```go +ctx := context.TODO() +id := firewallrules.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination +items, err := client.ListByServerComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/id_firewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_firewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/id_firewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/model_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/model_firewallrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/model_firewallrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/model_firewallrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/model_firewallruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/model_firewallruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/model_firewallruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/model_firewallruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/version.go new file mode 100644 index 000000000000..b898eef78717 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules/version.go @@ -0,0 +1,10 @@ +package firewallrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/firewallrules/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/README.md new file mode 100644 index 000000000000..495df3df5f5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/README.md @@ -0,0 +1,36 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix` Documentation + +The `getprivatednszonesuffix` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix" +``` + + +### Client Initialization + +```go +client := getprivatednszonesuffix.NewGetPrivateDnsZoneSuffixClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `GetPrivateDnsZoneSuffixClient.Execute` + +```go +ctx := context.TODO() + + +read, err := client.Execute(ctx) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/method_execute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/method_execute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/method_execute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/method_execute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/model_getprivatednszonesuffixresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/model_getprivatednszonesuffixresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/model_getprivatednszonesuffixresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/model_getprivatednszonesuffixresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/version.go new file mode 100644 index 000000000000..5a77516c8f45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix/version.go @@ -0,0 +1,10 @@ +package getprivatednszonesuffix + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/getprivatednszonesuffix/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/README.md new file mode 100644 index 000000000000..ccc5a17a2056 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities` Documentation + +The `locationbasedcapabilities` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities" +``` + + +### Client Initialization + +```go +client := locationbasedcapabilities.NewLocationBasedCapabilitiesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LocationBasedCapabilitiesClient.List` + +```go +ctx := context.TODO() +id := locationbasedcapabilities.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_capabilityproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_capabilityproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_capabilityproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_capabilityproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_servereditioncapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_servereditioncapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_servereditioncapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_servereditioncapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_serverversioncapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_serverversioncapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_serverversioncapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_serverversioncapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_skucapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_skucapability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/model_skucapability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_skucapability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_storageeditioncapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_storageeditioncapability.go new file mode 100644 index 000000000000..eec8c34c448d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/model_storageeditioncapability.go @@ -0,0 +1,14 @@ +package locationbasedcapabilities + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageEditionCapability struct { + MaxBackupIntervalHours *int64 `json:"maxBackupIntervalHours,omitempty"` + MaxBackupRetentionDays *int64 `json:"maxBackupRetentionDays,omitempty"` + MaxStorageSize *int64 `json:"maxStorageSize,omitempty"` + MinBackupIntervalHours *int64 `json:"minBackupIntervalHours,omitempty"` + MinBackupRetentionDays *int64 `json:"minBackupRetentionDays,omitempty"` + MinStorageSize *int64 `json:"minStorageSize,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/version.go new file mode 100644 index 000000000000..9971bc5f35fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities/version.go @@ -0,0 +1,10 @@ +package locationbasedcapabilities + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/locationbasedcapabilities/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/README.md new file mode 100644 index 000000000000..d7c77d383e46 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/README.md @@ -0,0 +1,53 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability` Documentation + +The `locationbasedcapability` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability" +``` + + +### Client Initialization + +```go +client := locationbasedcapability.NewLocationBasedCapabilityClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LocationBasedCapabilityClient.SetGet` + +```go +ctx := context.TODO() +id := locationbasedcapability.NewCapabilitySetID("12345678-1234-9876-4563-123456789012", "locationName", "capabilitySetName") + +read, err := client.SetGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LocationBasedCapabilityClient.SetList` + +```go +ctx := context.TODO() +id := locationbasedcapability.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.SetList(ctx, id)` can be used to do batched pagination +items, err := client.SetListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/client.go new file mode 100644 index 000000000000..09a9c2a8336c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/client.go @@ -0,0 +1,26 @@ +package locationbasedcapability + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocationBasedCapabilityClient struct { + Client *resourcemanager.Client +} + +func NewLocationBasedCapabilityClientWithBaseURI(sdkApi sdkEnv.Api) (*LocationBasedCapabilityClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "locationbasedcapability", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating LocationBasedCapabilityClient: %+v", err) + } + + return &LocationBasedCapabilityClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/id_capabilityset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/id_capabilityset.go new file mode 100644 index 000000000000..7ed4f0a9a102 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/id_capabilityset.go @@ -0,0 +1,130 @@ +package locationbasedcapability + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&CapabilitySetId{}) +} + +var _ resourceids.ResourceId = &CapabilitySetId{} + +// CapabilitySetId is a struct representing the Resource ID for a Capability Set +type CapabilitySetId struct { + SubscriptionId string + LocationName string + CapabilitySetName string +} + +// NewCapabilitySetID returns a new CapabilitySetId struct +func NewCapabilitySetID(subscriptionId string, locationName string, capabilitySetName string) CapabilitySetId { + return CapabilitySetId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + CapabilitySetName: capabilitySetName, + } +} + +// ParseCapabilitySetID parses 'input' into a CapabilitySetId +func ParseCapabilitySetID(input string) (*CapabilitySetId, error) { + parser := resourceids.NewParserFromResourceIdType(&CapabilitySetId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CapabilitySetId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseCapabilitySetIDInsensitively parses 'input' case-insensitively into a CapabilitySetId +// note: this method should only be used for API response data and not user input +func ParseCapabilitySetIDInsensitively(input string) (*CapabilitySetId, error) { + parser := resourceids.NewParserFromResourceIdType(&CapabilitySetId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := CapabilitySetId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *CapabilitySetId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + if id.CapabilitySetName, ok = input.Parsed["capabilitySetName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "capabilitySetName", input) + } + + return nil +} + +// ValidateCapabilitySetID checks that 'input' can be parsed as a Capability Set ID +func ValidateCapabilitySetID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseCapabilitySetID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Capability Set ID +func (id CapabilitySetId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.DBforMySQL/locations/%s/capabilitySets/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName, id.CapabilitySetName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Capability Set ID +func (id CapabilitySetId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + resourceids.StaticSegment("staticCapabilitySets", "capabilitySets", "capabilitySets"), + resourceids.UserSpecifiedSegment("capabilitySetName", "capabilitySetName"), + } +} + +// String returns a human-readable description of this Capability Set ID +func (id CapabilitySetId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + fmt.Sprintf("Capability Set Name: %q", id.CapabilitySetName), + } + return fmt.Sprintf("Capability Set (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/id_location.go new file mode 100644 index 000000000000..fa71d06dfa32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/id_location.go @@ -0,0 +1,121 @@ +package locationbasedcapability + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocationId{}) +} + +var _ resourceids.ResourceId = &LocationId{} + +// LocationId is a struct representing the Resource ID for a Location +type LocationId struct { + SubscriptionId string + LocationName string +} + +// NewLocationID returns a new LocationId struct +func NewLocationID(subscriptionId string, locationName string) LocationId { + return LocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseLocationID parses 'input' into a LocationId +func ParseLocationID(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId +// note: this method should only be used for API response data and not user input +func ParseLocationIDInsensitively(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateLocationID checks that 'input' can be parsed as a Location ID +func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Location ID +func (id LocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.DBforMySQL/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Location ID +func (id LocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Location ID +func (id LocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setget.go new file mode 100644 index 000000000000..e30a08c9c434 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setget.go @@ -0,0 +1,53 @@ +package locationbasedcapability + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SetGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Capability +} + +// SetGet ... +func (c LocationBasedCapabilityClient) SetGet(ctx context.Context, id CapabilitySetId) (result SetGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Capability + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setlist.go new file mode 100644 index 000000000000..a942983ba91d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/method_setlist.go @@ -0,0 +1,105 @@ +package locationbasedcapability + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SetListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Capability +} + +type SetListCompleteResult struct { + LatestHttpResponse *http.Response + Items []Capability +} + +type SetListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *SetListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// SetList ... +func (c LocationBasedCapabilityClient) SetList(ctx context.Context, id LocationId) (result SetListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &SetListCustomPager{}, + Path: fmt.Sprintf("%s/capabilitySets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Capability `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// SetListComplete retrieves all the results into a single object +func (c LocationBasedCapabilityClient) SetListComplete(ctx context.Context, id LocationId) (SetListCompleteResult, error) { + return c.SetListCompleteMatchingPredicate(ctx, id, CapabilityOperationPredicate{}) +} + +// SetListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocationBasedCapabilityClient) SetListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate CapabilityOperationPredicate) (result SetListCompleteResult, err error) { + items := make([]Capability, 0) + + resp, err := c.SetList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = SetListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_capability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_capability.go new file mode 100644 index 000000000000..7c8e20be62c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_capability.go @@ -0,0 +1,16 @@ +package locationbasedcapability + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Capability struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CapabilityPropertiesV2 `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_capabilitypropertiesv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_capabilitypropertiesv2.go new file mode 100644 index 000000000000..225e59fb99bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_capabilitypropertiesv2.go @@ -0,0 +1,10 @@ +package locationbasedcapability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CapabilityPropertiesV2 struct { + SupportedFlexibleServerEditions *[]ServerEditionCapabilityV2 `json:"supportedFlexibleServerEditions,omitempty"` + SupportedGeoBackupRegions *[]string `json:"supportedGeoBackupRegions,omitempty"` + SupportedServerVersions *[]ServerVersionCapabilityV2 `json:"supportedServerVersions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_servereditioncapabilityv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_servereditioncapabilityv2.go new file mode 100644 index 000000000000..0af2925e0dc1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_servereditioncapabilityv2.go @@ -0,0 +1,12 @@ +package locationbasedcapability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerEditionCapabilityV2 struct { + DefaultSku *string `json:"defaultSku,omitempty"` + DefaultStorageSize *int64 `json:"defaultStorageSize,omitempty"` + Name *string `json:"name,omitempty"` + SupportedSkus *[]SkuCapabilityV2 `json:"supportedSkus,omitempty"` + SupportedStorageEditions *[]StorageEditionCapability `json:"supportedStorageEditions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_serverversioncapabilityv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_serverversioncapabilityv2.go new file mode 100644 index 000000000000..360447828486 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_serverversioncapabilityv2.go @@ -0,0 +1,8 @@ +package locationbasedcapability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerVersionCapabilityV2 struct { + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_skucapabilityv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_skucapabilityv2.go new file mode 100644 index 000000000000..688045a0f859 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_skucapabilityv2.go @@ -0,0 +1,13 @@ +package locationbasedcapability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SkuCapabilityV2 struct { + Name *string `json:"name,omitempty"` + SupportedHAMode *[]string `json:"supportedHAMode,omitempty"` + SupportedIops *int64 `json:"supportedIops,omitempty"` + SupportedMemoryPerVCoreMB *int64 `json:"supportedMemoryPerVCoreMB,omitempty"` + SupportedZones *[]string `json:"supportedZones,omitempty"` + VCores *int64 `json:"vCores,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_storageeditioncapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_storageeditioncapability.go new file mode 100644 index 000000000000..f795f9800ef5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/model_storageeditioncapability.go @@ -0,0 +1,14 @@ +package locationbasedcapability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StorageEditionCapability struct { + MaxBackupIntervalHours *int64 `json:"maxBackupIntervalHours,omitempty"` + MaxBackupRetentionDays *int64 `json:"maxBackupRetentionDays,omitempty"` + MaxStorageSize *int64 `json:"maxStorageSize,omitempty"` + MinBackupIntervalHours *int64 `json:"minBackupIntervalHours,omitempty"` + MinBackupRetentionDays *int64 `json:"minBackupRetentionDays,omitempty"` + MinStorageSize *int64 `json:"minStorageSize,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/predicates.go new file mode 100644 index 000000000000..c12b4684c6f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/predicates.go @@ -0,0 +1,27 @@ +package locationbasedcapability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CapabilityOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p CapabilityOperationPredicate) Matches(input Capability) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/version.go new file mode 100644 index 000000000000..c037ec027245 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability/version.go @@ -0,0 +1,10 @@ +package locationbasedcapability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/locationbasedcapability/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/README.md new file mode 100644 index 000000000000..61382d47f89a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles` Documentation + +The `logfiles` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles" +``` + + +### Client Initialization + +```go +client := logfiles.NewLogFilesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LogFilesClient.ListByServer` + +```go +ctx := context.TODO() +id := logfiles.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination +items, err := client.ListByServerComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/method_listbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/method_listbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/method_listbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/model_logfile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/model_logfile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfileproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/model_logfileproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/model_logfileproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/model_logfileproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/version.go new file mode 100644 index 000000000000..a819927acb32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles/version.go @@ -0,0 +1,10 @@ +package logfiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/logfiles/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/README.md new file mode 100644 index 000000000000..b68e36f7b701 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/README.md @@ -0,0 +1,70 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances` Documentation + +The `maintenances` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances" +``` + + +### Client Initialization + +```go +client := maintenances.NewMaintenancesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `MaintenancesClient.List` + +```go +ctx := context.TODO() +id := maintenances.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `MaintenancesClient.Read` + +```go +ctx := context.TODO() +id := maintenances.NewMaintenanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "maintenanceName") + +read, err := client.Read(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `MaintenancesClient.Update` + +```go +ctx := context.TODO() +id := maintenances.NewMaintenanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName", "maintenanceName") + +payload := maintenances.MaintenanceUpdate{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/client.go new file mode 100644 index 000000000000..447a530851ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/client.go @@ -0,0 +1,26 @@ +package maintenances + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MaintenancesClient struct { + Client *resourcemanager.Client +} + +func NewMaintenancesClientWithBaseURI(sdkApi sdkEnv.Api) (*MaintenancesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "maintenances", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating MaintenancesClient: %+v", err) + } + + return &MaintenancesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/constants.go new file mode 100644 index 000000000000..150947ebddf0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/constants.go @@ -0,0 +1,157 @@ +package maintenances + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MaintenanceProvisioningState string + +const ( + MaintenanceProvisioningStateCreating MaintenanceProvisioningState = "Creating" + MaintenanceProvisioningStateDeleting MaintenanceProvisioningState = "Deleting" + MaintenanceProvisioningStateFailed MaintenanceProvisioningState = "Failed" + MaintenanceProvisioningStateSucceeded MaintenanceProvisioningState = "Succeeded" +) + +func PossibleValuesForMaintenanceProvisioningState() []string { + return []string{ + string(MaintenanceProvisioningStateCreating), + string(MaintenanceProvisioningStateDeleting), + string(MaintenanceProvisioningStateFailed), + string(MaintenanceProvisioningStateSucceeded), + } +} + +func (s *MaintenanceProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMaintenanceProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMaintenanceProvisioningState(input string) (*MaintenanceProvisioningState, error) { + vals := map[string]MaintenanceProvisioningState{ + "creating": MaintenanceProvisioningStateCreating, + "deleting": MaintenanceProvisioningStateDeleting, + "failed": MaintenanceProvisioningStateFailed, + "succeeded": MaintenanceProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MaintenanceProvisioningState(input) + return &out, nil +} + +type MaintenanceState string + +const ( + MaintenanceStateCanceled MaintenanceState = "Canceled" + MaintenanceStateCompleted MaintenanceState = "Completed" + MaintenanceStateInPreparation MaintenanceState = "InPreparation" + MaintenanceStateProcessing MaintenanceState = "Processing" + MaintenanceStateReScheduled MaintenanceState = "ReScheduled" + MaintenanceStateScheduled MaintenanceState = "Scheduled" +) + +func PossibleValuesForMaintenanceState() []string { + return []string{ + string(MaintenanceStateCanceled), + string(MaintenanceStateCompleted), + string(MaintenanceStateInPreparation), + string(MaintenanceStateProcessing), + string(MaintenanceStateReScheduled), + string(MaintenanceStateScheduled), + } +} + +func (s *MaintenanceState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMaintenanceState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMaintenanceState(input string) (*MaintenanceState, error) { + vals := map[string]MaintenanceState{ + "canceled": MaintenanceStateCanceled, + "completed": MaintenanceStateCompleted, + "inpreparation": MaintenanceStateInPreparation, + "processing": MaintenanceStateProcessing, + "rescheduled": MaintenanceStateReScheduled, + "scheduled": MaintenanceStateScheduled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MaintenanceState(input) + return &out, nil +} + +type MaintenanceType string + +const ( + MaintenanceTypeHotFixes MaintenanceType = "HotFixes" + MaintenanceTypeMinorVersionUpgrade MaintenanceType = "MinorVersionUpgrade" + MaintenanceTypeRoutineMaintenance MaintenanceType = "RoutineMaintenance" + MaintenanceTypeSecurityPatches MaintenanceType = "SecurityPatches" +) + +func PossibleValuesForMaintenanceType() []string { + return []string{ + string(MaintenanceTypeHotFixes), + string(MaintenanceTypeMinorVersionUpgrade), + string(MaintenanceTypeRoutineMaintenance), + string(MaintenanceTypeSecurityPatches), + } +} + +func (s *MaintenanceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMaintenanceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMaintenanceType(input string) (*MaintenanceType, error) { + vals := map[string]MaintenanceType{ + "hotfixes": MaintenanceTypeHotFixes, + "minorversionupgrade": MaintenanceTypeMinorVersionUpgrade, + "routinemaintenance": MaintenanceTypeRoutineMaintenance, + "securitypatches": MaintenanceTypeSecurityPatches, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MaintenanceType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/id_flexibleserver.go new file mode 100644 index 000000000000..ef2adbe3118a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/id_flexibleserver.go @@ -0,0 +1,130 @@ +package maintenances + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlexibleServerId{}) +} + +var _ resourceids.ResourceId = &FlexibleServerId{} + +// FlexibleServerId is a struct representing the Resource ID for a Flexible Server +type FlexibleServerId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string +} + +// NewFlexibleServerID returns a new FlexibleServerId struct +func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId { + return FlexibleServerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + } +} + +// ParseFlexibleServerID parses 'input' into a FlexibleServerId +func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId +// note: this method should only be used for API response data and not user input +func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + return nil +} + +// ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID +func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlexibleServerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flexible Server ID +func (id FlexibleServerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID +func (id FlexibleServerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + } +} + +// String returns a human-readable description of this Flexible Server ID +func (id FlexibleServerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + } + return fmt.Sprintf("Flexible Server (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/id_maintenance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/id_maintenance.go new file mode 100644 index 000000000000..0d3dd77afc8d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/id_maintenance.go @@ -0,0 +1,139 @@ +package maintenances + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&MaintenanceId{}) +} + +var _ resourceids.ResourceId = &MaintenanceId{} + +// MaintenanceId is a struct representing the Resource ID for a Maintenance +type MaintenanceId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string + MaintenanceName string +} + +// NewMaintenanceID returns a new MaintenanceId struct +func NewMaintenanceID(subscriptionId string, resourceGroupName string, flexibleServerName string, maintenanceName string) MaintenanceId { + return MaintenanceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + MaintenanceName: maintenanceName, + } +} + +// ParseMaintenanceID parses 'input' into a MaintenanceId +func ParseMaintenanceID(input string) (*MaintenanceId, error) { + parser := resourceids.NewParserFromResourceIdType(&MaintenanceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := MaintenanceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseMaintenanceIDInsensitively parses 'input' case-insensitively into a MaintenanceId +// note: this method should only be used for API response data and not user input +func ParseMaintenanceIDInsensitively(input string) (*MaintenanceId, error) { + parser := resourceids.NewParserFromResourceIdType(&MaintenanceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := MaintenanceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *MaintenanceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + if id.MaintenanceName, ok = input.Parsed["maintenanceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "maintenanceName", input) + } + + return nil +} + +// ValidateMaintenanceID checks that 'input' can be parsed as a Maintenance ID +func ValidateMaintenanceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseMaintenanceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Maintenance ID +func (id MaintenanceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s/maintenances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName, id.MaintenanceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Maintenance ID +func (id MaintenanceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + resourceids.StaticSegment("staticMaintenances", "maintenances", "maintenances"), + resourceids.UserSpecifiedSegment("maintenanceName", "maintenanceName"), + } +} + +// String returns a human-readable description of this Maintenance ID +func (id MaintenanceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + fmt.Sprintf("Maintenance Name: %q", id.MaintenanceName), + } + return fmt.Sprintf("Maintenance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_list.go new file mode 100644 index 000000000000..3d3ccac95ebb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_list.go @@ -0,0 +1,105 @@ +package maintenances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Maintenance +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []Maintenance +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c MaintenancesClient) List(ctx context.Context, id FlexibleServerId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/maintenances", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Maintenance `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c MaintenancesClient) ListComplete(ctx context.Context, id FlexibleServerId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, MaintenanceOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c MaintenancesClient) ListCompleteMatchingPredicate(ctx context.Context, id FlexibleServerId, predicate MaintenanceOperationPredicate) (result ListCompleteResult, err error) { + items := make([]Maintenance, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_read.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_read.go new file mode 100644 index 000000000000..25424ecdaf5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_read.go @@ -0,0 +1,53 @@ +package maintenances + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ReadOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Maintenance +} + +// Read ... +func (c MaintenancesClient) Read(ctx context.Context, id MaintenanceId) (result ReadOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Maintenance + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_update.go new file mode 100644 index 000000000000..f95777d0d492 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/method_update.go @@ -0,0 +1,75 @@ +package maintenances + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Maintenance +} + +// Update ... +func (c MaintenancesClient) Update(ctx context.Context, id MaintenanceId, input MaintenanceUpdate) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c MaintenancesClient) UpdateThenPoll(ctx context.Context, id MaintenanceId, input MaintenanceUpdate) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenance.go new file mode 100644 index 000000000000..526c79cedda4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenance.go @@ -0,0 +1,16 @@ +package maintenances + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Maintenance struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties MaintenanceProperties `json:"properties"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenanceproperties.go new file mode 100644 index 000000000000..f32451e3bc2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenanceproperties.go @@ -0,0 +1,96 @@ +package maintenances + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MaintenanceProperties struct { + MaintenanceAvailableScheduleMaxTime *string `json:"maintenanceAvailableScheduleMaxTime,omitempty"` + MaintenanceAvailableScheduleMinTime *string `json:"maintenanceAvailableScheduleMinTime,omitempty"` + MaintenanceDescription *string `json:"maintenanceDescription,omitempty"` + MaintenanceEndTime *string `json:"maintenanceEndTime,omitempty"` + MaintenanceExecutionEndTime *string `json:"maintenanceExecutionEndTime,omitempty"` + MaintenanceExecutionStartTime *string `json:"maintenanceExecutionStartTime,omitempty"` + MaintenanceStartTime *string `json:"maintenanceStartTime,omitempty"` + MaintenanceState *MaintenanceState `json:"maintenanceState,omitempty"` + MaintenanceTitle *string `json:"maintenanceTitle,omitempty"` + MaintenanceType *MaintenanceType `json:"maintenanceType,omitempty"` + ProvisioningState *MaintenanceProvisioningState `json:"provisioningState,omitempty"` +} + +func (o *MaintenanceProperties) GetMaintenanceAvailableScheduleMaxTimeAsTime() (*time.Time, error) { + if o.MaintenanceAvailableScheduleMaxTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.MaintenanceAvailableScheduleMaxTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MaintenanceProperties) SetMaintenanceAvailableScheduleMaxTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.MaintenanceAvailableScheduleMaxTime = &formatted +} + +func (o *MaintenanceProperties) GetMaintenanceAvailableScheduleMinTimeAsTime() (*time.Time, error) { + if o.MaintenanceAvailableScheduleMinTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.MaintenanceAvailableScheduleMinTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MaintenanceProperties) SetMaintenanceAvailableScheduleMinTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.MaintenanceAvailableScheduleMinTime = &formatted +} + +func (o *MaintenanceProperties) GetMaintenanceEndTimeAsTime() (*time.Time, error) { + if o.MaintenanceEndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.MaintenanceEndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MaintenanceProperties) SetMaintenanceEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.MaintenanceEndTime = &formatted +} + +func (o *MaintenanceProperties) GetMaintenanceExecutionEndTimeAsTime() (*time.Time, error) { + if o.MaintenanceExecutionEndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.MaintenanceExecutionEndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MaintenanceProperties) SetMaintenanceExecutionEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.MaintenanceExecutionEndTime = &formatted +} + +func (o *MaintenanceProperties) GetMaintenanceExecutionStartTimeAsTime() (*time.Time, error) { + if o.MaintenanceExecutionStartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.MaintenanceExecutionStartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MaintenanceProperties) SetMaintenanceExecutionStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.MaintenanceExecutionStartTime = &formatted +} + +func (o *MaintenanceProperties) GetMaintenanceStartTimeAsTime() (*time.Time, error) { + if o.MaintenanceStartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.MaintenanceStartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MaintenanceProperties) SetMaintenanceStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.MaintenanceStartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenancepropertiesforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenancepropertiesforupdate.go new file mode 100644 index 000000000000..eb9a6c8a99e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenancepropertiesforupdate.go @@ -0,0 +1,26 @@ +package maintenances + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MaintenancePropertiesForUpdate struct { + MaintenanceStartTime *string `json:"maintenanceStartTime,omitempty"` +} + +func (o *MaintenancePropertiesForUpdate) GetMaintenanceStartTimeAsTime() (*time.Time, error) { + if o.MaintenanceStartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.MaintenanceStartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *MaintenancePropertiesForUpdate) SetMaintenanceStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.MaintenanceStartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenanceupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenanceupdate.go new file mode 100644 index 000000000000..b183e14aed0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/model_maintenanceupdate.go @@ -0,0 +1,8 @@ +package maintenances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MaintenanceUpdate struct { + Properties *MaintenancePropertiesForUpdate `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/predicates.go new file mode 100644 index 000000000000..65329b625a43 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/predicates.go @@ -0,0 +1,27 @@ +package maintenances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MaintenanceOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p MaintenanceOperationPredicate) Matches(input Maintenance) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/version.go new file mode 100644 index 000000000000..8543c8afc4de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances/version.go @@ -0,0 +1,10 @@ +package maintenances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/maintenances/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/README.md new file mode 100644 index 000000000000..b7db6fb5fff8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/README.md @@ -0,0 +1,36 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress` Documentation + +The `operationprogress` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress" +``` + + +### Client Initialization + +```go +client := operationprogress.NewOperationProgressClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `OperationProgressClient.Get` + +```go +ctx := context.TODO() +id := operationprogress.NewOperationProgressID("12345678-1234-9876-4563-123456789012", "locationName", "operationId") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/client.go new file mode 100644 index 000000000000..920c7279e857 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/client.go @@ -0,0 +1,26 @@ +package operationprogress + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OperationProgressClient struct { + Client *resourcemanager.Client +} + +func NewOperationProgressClientWithBaseURI(sdkApi sdkEnv.Api) (*OperationProgressClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "operationprogress", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating OperationProgressClient: %+v", err) + } + + return &OperationProgressClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/constants.go new file mode 100644 index 000000000000..2a187c15bf20 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/constants.go @@ -0,0 +1,51 @@ +package operationprogress + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ObjectType string + +const ( + ObjectTypeBackupAndExportResponse ObjectType = "BackupAndExportResponse" + ObjectTypeImportFromStorageResponse ObjectType = "ImportFromStorageResponse" +) + +func PossibleValuesForObjectType() []string { + return []string{ + string(ObjectTypeBackupAndExportResponse), + string(ObjectTypeImportFromStorageResponse), + } +} + +func (s *ObjectType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseObjectType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseObjectType(input string) (*ObjectType, error) { + vals := map[string]ObjectType{ + "backupandexportresponse": ObjectTypeBackupAndExportResponse, + "importfromstorageresponse": ObjectTypeImportFromStorageResponse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ObjectType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/id_operationprogress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/id_operationprogress.go new file mode 100644 index 000000000000..813d3ddd2f7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/id_operationprogress.go @@ -0,0 +1,130 @@ +package operationprogress + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&OperationProgressId{}) +} + +var _ resourceids.ResourceId = &OperationProgressId{} + +// OperationProgressId is a struct representing the Resource ID for a Operation Progress +type OperationProgressId struct { + SubscriptionId string + LocationName string + OperationId string +} + +// NewOperationProgressID returns a new OperationProgressId struct +func NewOperationProgressID(subscriptionId string, locationName string, operationId string) OperationProgressId { + return OperationProgressId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + OperationId: operationId, + } +} + +// ParseOperationProgressID parses 'input' into a OperationProgressId +func ParseOperationProgressID(input string) (*OperationProgressId, error) { + parser := resourceids.NewParserFromResourceIdType(&OperationProgressId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := OperationProgressId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseOperationProgressIDInsensitively parses 'input' case-insensitively into a OperationProgressId +// note: this method should only be used for API response data and not user input +func ParseOperationProgressIDInsensitively(input string) (*OperationProgressId, error) { + parser := resourceids.NewParserFromResourceIdType(&OperationProgressId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := OperationProgressId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *OperationProgressId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + if id.OperationId, ok = input.Parsed["operationId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "operationId", input) + } + + return nil +} + +// ValidateOperationProgressID checks that 'input' can be parsed as a Operation Progress ID +func ValidateOperationProgressID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseOperationProgressID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Operation Progress ID +func (id OperationProgressId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.DBforMySQL/locations/%s/operationProgress/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName, id.OperationId) +} + +// Segments returns a slice of Resource ID Segments which comprise this Operation Progress ID +func (id OperationProgressId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + resourceids.StaticSegment("staticOperationProgress", "operationProgress", "operationProgress"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), + } +} + +// String returns a human-readable description of this Operation Progress ID +func (id OperationProgressId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + fmt.Sprintf("Operation: %q", id.OperationId), + } + return fmt.Sprintf("Operation Progress (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/method_get.go new file mode 100644 index 000000000000..d9ae7079f093 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/method_get.go @@ -0,0 +1,53 @@ +package operationprogress + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *OperationProgressResult +} + +// Get ... +func (c OperationProgressClient) Get(ctx context.Context, id OperationProgressId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model OperationProgressResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_backupandexportresponsetype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_backupandexportresponsetype.go new file mode 100644 index 000000000000..5516c74b03cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_backupandexportresponsetype.go @@ -0,0 +1,52 @@ +package operationprogress + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ OperationProgressResponseType = BackupAndExportResponseType{} + +type BackupAndExportResponseType struct { + BackupMetadata *string `json:"backupMetadata,omitempty"` + DataTransferredInBytes *int64 `json:"dataTransferredInBytes,omitempty"` + DatasourceSizeInBytes *int64 `json:"datasourceSizeInBytes,omitempty"` + + // Fields inherited from OperationProgressResponseType + + ObjectType ObjectType `json:"objectType"` +} + +func (s BackupAndExportResponseType) OperationProgressResponseType() BaseOperationProgressResponseTypeImpl { + return BaseOperationProgressResponseTypeImpl{ + ObjectType: s.ObjectType, + } +} + +var _ json.Marshaler = BackupAndExportResponseType{} + +func (s BackupAndExportResponseType) MarshalJSON() ([]byte, error) { + type wrapper BackupAndExportResponseType + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling BackupAndExportResponseType: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling BackupAndExportResponseType: %+v", err) + } + + decoded["objectType"] = "BackupAndExportResponse" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling BackupAndExportResponseType: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_erroradditionalinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_erroradditionalinfo.go new file mode 100644 index 000000000000..98323130d670 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_erroradditionalinfo.go @@ -0,0 +1,9 @@ +package operationprogress + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ErrorAdditionalInfo struct { + Info *interface{} `json:"info,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_errordetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_errordetail.go new file mode 100644 index 000000000000..1a9c5aa7d013 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_errordetail.go @@ -0,0 +1,12 @@ +package operationprogress + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ErrorDetail struct { + AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` + Code *string `json:"code,omitempty"` + Details *[]ErrorDetail `json:"details,omitempty"` + Message *string `json:"message,omitempty"` + Target *string `json:"target,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_importfromstorageresponsetype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_importfromstorageresponsetype.go new file mode 100644 index 000000000000..c50305251311 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_importfromstorageresponsetype.go @@ -0,0 +1,50 @@ +package operationprogress + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ OperationProgressResponseType = ImportFromStorageResponseType{} + +type ImportFromStorageResponseType struct { + EstimatedCompletionTime *string `json:"estimatedCompletionTime,omitempty"` + + // Fields inherited from OperationProgressResponseType + + ObjectType ObjectType `json:"objectType"` +} + +func (s ImportFromStorageResponseType) OperationProgressResponseType() BaseOperationProgressResponseTypeImpl { + return BaseOperationProgressResponseTypeImpl{ + ObjectType: s.ObjectType, + } +} + +var _ json.Marshaler = ImportFromStorageResponseType{} + +func (s ImportFromStorageResponseType) MarshalJSON() ([]byte, error) { + type wrapper ImportFromStorageResponseType + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ImportFromStorageResponseType: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ImportFromStorageResponseType: %+v", err) + } + + decoded["objectType"] = "ImportFromStorageResponse" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ImportFromStorageResponseType: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationprogressresponsetype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationprogressresponsetype.go new file mode 100644 index 000000000000..b13d561439fa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationprogressresponsetype.go @@ -0,0 +1,83 @@ +package operationprogress + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OperationProgressResponseType interface { + OperationProgressResponseType() BaseOperationProgressResponseTypeImpl +} + +var _ OperationProgressResponseType = BaseOperationProgressResponseTypeImpl{} + +type BaseOperationProgressResponseTypeImpl struct { + ObjectType ObjectType `json:"objectType"` +} + +func (s BaseOperationProgressResponseTypeImpl) OperationProgressResponseType() BaseOperationProgressResponseTypeImpl { + return s +} + +var _ OperationProgressResponseType = RawOperationProgressResponseTypeImpl{} + +// RawOperationProgressResponseTypeImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawOperationProgressResponseTypeImpl struct { + operationProgressResponseType BaseOperationProgressResponseTypeImpl + Type string + Values map[string]interface{} +} + +func (s RawOperationProgressResponseTypeImpl) OperationProgressResponseType() BaseOperationProgressResponseTypeImpl { + return s.operationProgressResponseType +} + +func UnmarshalOperationProgressResponseTypeImplementation(input []byte) (OperationProgressResponseType, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling OperationProgressResponseType into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "BackupAndExportResponse") { + var out BackupAndExportResponseType + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into BackupAndExportResponseType: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "ImportFromStorageResponse") { + var out ImportFromStorageResponseType + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into ImportFromStorageResponseType: %+v", err) + } + return out, nil + } + + var parent BaseOperationProgressResponseTypeImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOperationProgressResponseTypeImpl: %+v", err) + } + + return RawOperationProgressResponseTypeImpl{ + operationProgressResponseType: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationprogressresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationprogressresult.go new file mode 100644 index 000000000000..7ced0bd73bde --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationprogressresult.go @@ -0,0 +1,93 @@ +package operationprogress + +import ( + "encoding/json" + "fmt" + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OperationProgressResult struct { + EndTime *string `json:"endTime,omitempty"` + Error *ErrorDetail `json:"error,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Operations *[]OperationStatusResult `json:"operations,omitempty"` + PercentComplete *float64 `json:"percentComplete,omitempty"` + Properties OperationProgressResponseType `json:"properties"` + ResourceId *string `json:"resourceId,omitempty"` + StartTime *string `json:"startTime,omitempty"` + Status string `json:"status"` +} + +func (o *OperationProgressResult) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *OperationProgressResult) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *OperationProgressResult) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *OperationProgressResult) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} + +var _ json.Unmarshaler = &OperationProgressResult{} + +func (s *OperationProgressResult) UnmarshalJSON(bytes []byte) error { + var decoded struct { + EndTime *string `json:"endTime,omitempty"` + Error *ErrorDetail `json:"error,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Operations *[]OperationStatusResult `json:"operations,omitempty"` + PercentComplete *float64 `json:"percentComplete,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + StartTime *string `json:"startTime,omitempty"` + Status string `json:"status"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.EndTime = decoded.EndTime + s.Error = decoded.Error + s.Id = decoded.Id + s.Name = decoded.Name + s.Operations = decoded.Operations + s.PercentComplete = decoded.PercentComplete + s.ResourceId = decoded.ResourceId + s.StartTime = decoded.StartTime + s.Status = decoded.Status + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling OperationProgressResult into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["properties"]; ok { + impl, err := UnmarshalOperationProgressResponseTypeImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'Properties' for 'OperationProgressResult': %+v", err) + } + s.Properties = impl + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationstatusresult.go new file mode 100644 index 000000000000..3eaf964b7368 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/model_operationstatusresult.go @@ -0,0 +1,46 @@ +package operationprogress + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OperationStatusResult struct { + EndTime *string `json:"endTime,omitempty"` + Error *ErrorDetail `json:"error,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Operations *[]OperationStatusResult `json:"operations,omitempty"` + PercentComplete *float64 `json:"percentComplete,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + StartTime *string `json:"startTime,omitempty"` + Status string `json:"status"` +} + +func (o *OperationStatusResult) GetEndTimeAsTime() (*time.Time, error) { + if o.EndTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EndTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *OperationStatusResult) SetEndTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EndTime = &formatted +} + +func (o *OperationStatusResult) GetStartTimeAsTime() (*time.Time, error) { + if o.StartTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.StartTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *OperationStatusResult) SetStartTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.StartTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/version.go new file mode 100644 index 000000000000..047947250e86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress/version.go @@ -0,0 +1,10 @@ +package operationprogress + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/operationprogress/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/method_serversfailover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/method_serversfailover.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/method_serversfailover.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/method_serversfailover.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/version.go new file mode 100644 index 000000000000..73b6b35ee1cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover/version.go @@ -0,0 +1,10 @@ +package serverfailover + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/serverfailover/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/README.md new file mode 100644 index 000000000000..830493a827f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/README.md @@ -0,0 +1,32 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration` Documentation + +The `servermigration` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration" +``` + + +### Client Initialization + +```go +client := servermigration.NewServerMigrationClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServerMigrationClient.ServersMigrationCutoverMigration` + +```go +ctx := context.TODO() +id := servermigration.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +if err := client.ServersMigrationCutoverMigrationThenPoll(ctx, id); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/client.go new file mode 100644 index 000000000000..9d82e58ad8b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/client.go @@ -0,0 +1,26 @@ +package servermigration + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerMigrationClient struct { + Client *resourcemanager.Client +} + +func NewServerMigrationClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerMigrationClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "servermigration", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ServerMigrationClient: %+v", err) + } + + return &ServerMigrationClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/constants.go new file mode 100644 index 000000000000..79c7b0c65a98 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/constants.go @@ -0,0 +1,585 @@ +package servermigration + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateMode string + +const ( + CreateModeDefault CreateMode = "Default" + CreateModeGeoRestore CreateMode = "GeoRestore" + CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" + CreateModeReplica CreateMode = "Replica" +) + +func PossibleValuesForCreateMode() []string { + return []string{ + string(CreateModeDefault), + string(CreateModeGeoRestore), + string(CreateModePointInTimeRestore), + string(CreateModeReplica), + } +} + +func (s *CreateMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCreateMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCreateMode(input string) (*CreateMode, error) { + vals := map[string]CreateMode{ + "default": CreateModeDefault, + "georestore": CreateModeGeoRestore, + "pointintimerestore": CreateModePointInTimeRestore, + "replica": CreateModeReplica, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CreateMode(input) + return &out, nil +} + +type DataEncryptionType string + +const ( + DataEncryptionTypeAzureKeyVault DataEncryptionType = "AzureKeyVault" + DataEncryptionTypeSystemManaged DataEncryptionType = "SystemManaged" +) + +func PossibleValuesForDataEncryptionType() []string { + return []string{ + string(DataEncryptionTypeAzureKeyVault), + string(DataEncryptionTypeSystemManaged), + } +} + +func (s *DataEncryptionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDataEncryptionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDataEncryptionType(input string) (*DataEncryptionType, error) { + vals := map[string]DataEncryptionType{ + "azurekeyvault": DataEncryptionTypeAzureKeyVault, + "systemmanaged": DataEncryptionTypeSystemManaged, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DataEncryptionType(input) + return &out, nil +} + +type EnableStatusEnum string + +const ( + EnableStatusEnumDisabled EnableStatusEnum = "Disabled" + EnableStatusEnumEnabled EnableStatusEnum = "Enabled" +) + +func PossibleValuesForEnableStatusEnum() []string { + return []string{ + string(EnableStatusEnumDisabled), + string(EnableStatusEnumEnabled), + } +} + +func (s *EnableStatusEnum) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEnableStatusEnum(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEnableStatusEnum(input string) (*EnableStatusEnum, error) { + vals := map[string]EnableStatusEnum{ + "disabled": EnableStatusEnumDisabled, + "enabled": EnableStatusEnumEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EnableStatusEnum(input) + return &out, nil +} + +type HighAvailabilityMode string + +const ( + HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" + HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" + HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" +) + +func PossibleValuesForHighAvailabilityMode() []string { + return []string{ + string(HighAvailabilityModeDisabled), + string(HighAvailabilityModeSameZone), + string(HighAvailabilityModeZoneRedundant), + } +} + +func (s *HighAvailabilityMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHighAvailabilityMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHighAvailabilityMode(input string) (*HighAvailabilityMode, error) { + vals := map[string]HighAvailabilityMode{ + "disabled": HighAvailabilityModeDisabled, + "samezone": HighAvailabilityModeSameZone, + "zoneredundant": HighAvailabilityModeZoneRedundant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HighAvailabilityMode(input) + return &out, nil +} + +type HighAvailabilityState string + +const ( + HighAvailabilityStateCreatingStandby HighAvailabilityState = "CreatingStandby" + HighAvailabilityStateFailingOver HighAvailabilityState = "FailingOver" + HighAvailabilityStateHealthy HighAvailabilityState = "Healthy" + HighAvailabilityStateNotEnabled HighAvailabilityState = "NotEnabled" + HighAvailabilityStateRemovingStandby HighAvailabilityState = "RemovingStandby" +) + +func PossibleValuesForHighAvailabilityState() []string { + return []string{ + string(HighAvailabilityStateCreatingStandby), + string(HighAvailabilityStateFailingOver), + string(HighAvailabilityStateHealthy), + string(HighAvailabilityStateNotEnabled), + string(HighAvailabilityStateRemovingStandby), + } +} + +func (s *HighAvailabilityState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHighAvailabilityState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHighAvailabilityState(input string) (*HighAvailabilityState, error) { + vals := map[string]HighAvailabilityState{ + "creatingstandby": HighAvailabilityStateCreatingStandby, + "failingover": HighAvailabilityStateFailingOver, + "healthy": HighAvailabilityStateHealthy, + "notenabled": HighAvailabilityStateNotEnabled, + "removingstandby": HighAvailabilityStateRemovingStandby, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HighAvailabilityState(input) + return &out, nil +} + +type ImportSourceStorageType string + +const ( + ImportSourceStorageTypeAzureBlob ImportSourceStorageType = "AzureBlob" +) + +func PossibleValuesForImportSourceStorageType() []string { + return []string{ + string(ImportSourceStorageTypeAzureBlob), + } +} + +func (s *ImportSourceStorageType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseImportSourceStorageType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseImportSourceStorageType(input string) (*ImportSourceStorageType, error) { + vals := map[string]ImportSourceStorageType{ + "azureblob": ImportSourceStorageTypeAzureBlob, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ImportSourceStorageType(input) + return &out, nil +} + +type ManagedServiceIdentityType string + +const ( + ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" +) + +func PossibleValuesForManagedServiceIdentityType() []string { + return []string{ + string(ManagedServiceIdentityTypeUserAssigned), + } +} + +func (s *ManagedServiceIdentityType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseManagedServiceIdentityType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseManagedServiceIdentityType(input string) (*ManagedServiceIdentityType, error) { + vals := map[string]ManagedServiceIdentityType{ + "userassigned": ManagedServiceIdentityTypeUserAssigned, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedServiceIdentityType(input) + return &out, nil +} + +type PrivateEndpointConnectionProvisioningState string + +const ( + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string { + return []string{ + string(PrivateEndpointConnectionProvisioningStateCreating), + string(PrivateEndpointConnectionProvisioningStateDeleting), + string(PrivateEndpointConnectionProvisioningStateFailed), + string(PrivateEndpointConnectionProvisioningStateSucceeded), + } +} + +func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointConnectionProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointConnectionProvisioningState(input string) (*PrivateEndpointConnectionProvisioningState, error) { + vals := map[string]PrivateEndpointConnectionProvisioningState{ + "creating": PrivateEndpointConnectionProvisioningStateCreating, + "deleting": PrivateEndpointConnectionProvisioningStateDeleting, + "failed": PrivateEndpointConnectionProvisioningStateFailed, + "succeeded": PrivateEndpointConnectionProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointConnectionProvisioningState(input) + return &out, nil +} + +type PrivateEndpointServiceConnectionStatus string + +const ( + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string { + return []string{ + string(PrivateEndpointServiceConnectionStatusApproved), + string(PrivateEndpointServiceConnectionStatusPending), + string(PrivateEndpointServiceConnectionStatusRejected), + } +} + +func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointServiceConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointServiceConnectionStatus(input string) (*PrivateEndpointServiceConnectionStatus, error) { + vals := map[string]PrivateEndpointServiceConnectionStatus{ + "approved": PrivateEndpointServiceConnectionStatusApproved, + "pending": PrivateEndpointServiceConnectionStatusPending, + "rejected": PrivateEndpointServiceConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointServiceConnectionStatus(input) + return &out, nil +} + +type ReplicationRole string + +const ( + ReplicationRoleNone ReplicationRole = "None" + ReplicationRoleReplica ReplicationRole = "Replica" + ReplicationRoleSource ReplicationRole = "Source" +) + +func PossibleValuesForReplicationRole() []string { + return []string{ + string(ReplicationRoleNone), + string(ReplicationRoleReplica), + string(ReplicationRoleSource), + } +} + +func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseReplicationRole(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseReplicationRole(input string) (*ReplicationRole, error) { + vals := map[string]ReplicationRole{ + "none": ReplicationRoleNone, + "replica": ReplicationRoleReplica, + "source": ReplicationRoleSource, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReplicationRole(input) + return &out, nil +} + +type ServerSkuTier string + +const ( + ServerSkuTierBurstable ServerSkuTier = "Burstable" + ServerSkuTierGeneralPurpose ServerSkuTier = "GeneralPurpose" + ServerSkuTierMemoryOptimized ServerSkuTier = "MemoryOptimized" +) + +func PossibleValuesForServerSkuTier() []string { + return []string{ + string(ServerSkuTierBurstable), + string(ServerSkuTierGeneralPurpose), + string(ServerSkuTierMemoryOptimized), + } +} + +func (s *ServerSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerSkuTier(input string) (*ServerSkuTier, error) { + vals := map[string]ServerSkuTier{ + "burstable": ServerSkuTierBurstable, + "generalpurpose": ServerSkuTierGeneralPurpose, + "memoryoptimized": ServerSkuTierMemoryOptimized, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerSkuTier(input) + return &out, nil +} + +type ServerState string + +const ( + ServerStateDisabled ServerState = "Disabled" + ServerStateDropping ServerState = "Dropping" + ServerStateReady ServerState = "Ready" + ServerStateStarting ServerState = "Starting" + ServerStateStopped ServerState = "Stopped" + ServerStateStopping ServerState = "Stopping" + ServerStateUpdating ServerState = "Updating" +) + +func PossibleValuesForServerState() []string { + return []string{ + string(ServerStateDisabled), + string(ServerStateDropping), + string(ServerStateReady), + string(ServerStateStarting), + string(ServerStateStopped), + string(ServerStateStopping), + string(ServerStateUpdating), + } +} + +func (s *ServerState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerState(input string) (*ServerState, error) { + vals := map[string]ServerState{ + "disabled": ServerStateDisabled, + "dropping": ServerStateDropping, + "ready": ServerStateReady, + "starting": ServerStateStarting, + "stopped": ServerStateStopped, + "stopping": ServerStateStopping, + "updating": ServerStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerState(input) + return &out, nil +} + +type ServerVersion string + +const ( + ServerVersionEightPointZeroPointTwoOne ServerVersion = "8.0.21" + ServerVersionFivePointSeven ServerVersion = "5.7" +) + +func PossibleValuesForServerVersion() []string { + return []string{ + string(ServerVersionEightPointZeroPointTwoOne), + string(ServerVersionFivePointSeven), + } +} + +func (s *ServerVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerVersion(input string) (*ServerVersion, error) { + vals := map[string]ServerVersion{ + "8.0.21": ServerVersionEightPointZeroPointTwoOne, + "5.7": ServerVersionFivePointSeven, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerVersion(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/id_flexibleserver.go new file mode 100644 index 000000000000..f104ff96c6fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/id_flexibleserver.go @@ -0,0 +1,130 @@ +package servermigration + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlexibleServerId{}) +} + +var _ resourceids.ResourceId = &FlexibleServerId{} + +// FlexibleServerId is a struct representing the Resource ID for a Flexible Server +type FlexibleServerId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string +} + +// NewFlexibleServerID returns a new FlexibleServerId struct +func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId { + return FlexibleServerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + } +} + +// ParseFlexibleServerID parses 'input' into a FlexibleServerId +func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId +// note: this method should only be used for API response data and not user input +func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + return nil +} + +// ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID +func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlexibleServerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flexible Server ID +func (id FlexibleServerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID +func (id FlexibleServerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + } +} + +// String returns a human-readable description of this Flexible Server ID +func (id FlexibleServerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + } + return fmt.Sprintf("Flexible Server (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/method_serversmigrationcutovermigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/method_serversmigrationcutovermigration.go new file mode 100644 index 000000000000..27ced62ae6e3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/method_serversmigrationcutovermigration.go @@ -0,0 +1,71 @@ +package servermigration + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServersMigrationCutoverMigrationOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Server +} + +// ServersMigrationCutoverMigration ... +func (c ServerMigrationClient) ServersMigrationCutoverMigration(ctx context.Context, id FlexibleServerId) (result ServersMigrationCutoverMigrationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/cutoverMigration", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ServersMigrationCutoverMigrationThenPoll performs ServersMigrationCutoverMigration then polls until it's completed +func (c ServerMigrationClient) ServersMigrationCutoverMigrationThenPoll(ctx context.Context, id FlexibleServerId) error { + result, err := c.ServersMigrationCutoverMigration(ctx, id) + if err != nil { + return fmt.Errorf("performing ServersMigrationCutoverMigration: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ServersMigrationCutoverMigration: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_backup.go new file mode 100644 index 000000000000..8632d1a659fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_backup.go @@ -0,0 +1,29 @@ +package servermigration + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Backup struct { + BackupIntervalHours *int64 `json:"backupIntervalHours,omitempty"` + BackupRetentionDays *int64 `json:"backupRetentionDays,omitempty"` + EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"` + GeoRedundantBackup *EnableStatusEnum `json:"geoRedundantBackup,omitempty"` +} + +func (o *Backup) GetEarliestRestoreDateAsTime() (*time.Time, error) { + if o.EarliestRestoreDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EarliestRestoreDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *Backup) SetEarliestRestoreDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EarliestRestoreDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_dataencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_dataencryption.go new file mode 100644 index 000000000000..5b494dbca0e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_dataencryption.go @@ -0,0 +1,12 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DataEncryption struct { + GeoBackupKeyURI *string `json:"geoBackupKeyURI,omitempty"` + GeoBackupUserAssignedIdentityId *string `json:"geoBackupUserAssignedIdentityId,omitempty"` + PrimaryKeyURI *string `json:"primaryKeyURI,omitempty"` + PrimaryUserAssignedIdentityId *string `json:"primaryUserAssignedIdentityId,omitempty"` + Type *DataEncryptionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_highavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_highavailability.go new file mode 100644 index 000000000000..c4d562c1aae6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_highavailability.go @@ -0,0 +1,10 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HighAvailability struct { + Mode *HighAvailabilityMode `json:"mode,omitempty"` + StandbyAvailabilityZone *string `json:"standbyAvailabilityZone,omitempty"` + State *HighAvailabilityState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_importsourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_importsourceproperties.go new file mode 100644 index 000000000000..ad49643c4eca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_importsourceproperties.go @@ -0,0 +1,11 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImportSourceProperties struct { + DataDirPath *string `json:"dataDirPath,omitempty"` + SasToken *string `json:"sasToken,omitempty"` + StorageType *ImportSourceStorageType `json:"storageType,omitempty"` + StorageURL *string `json:"storageUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_maintenancewindow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_maintenancewindow.go new file mode 100644 index 000000000000..754a875dbd03 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_maintenancewindow.go @@ -0,0 +1,11 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MaintenanceWindow struct { + CustomWindow *string `json:"customWindow,omitempty"` + DayOfWeek *int64 `json:"dayOfWeek,omitempty"` + StartHour *int64 `json:"startHour,omitempty"` + StartMinute *int64 `json:"startMinute,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_mysqlserveridentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_mysqlserveridentity.go new file mode 100644 index 000000000000..051f514fc46e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_mysqlserveridentity.go @@ -0,0 +1,11 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MySQLServerIdentity struct { + PrincipalId *string `json:"principalId,omitempty"` + TenantId *string `json:"tenantId,omitempty"` + Type *ManagedServiceIdentityType `json:"type,omitempty"` + UserAssignedIdentities *map[string]interface{} `json:"userAssignedIdentities,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_mysqlserversku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_mysqlserversku.go new file mode 100644 index 000000000000..2a3537b29f9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_mysqlserversku.go @@ -0,0 +1,9 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MySQLServerSku struct { + Name string `json:"name"` + Tier ServerSkuTier `json:"tier"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_network.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_network.go new file mode 100644 index 000000000000..783a7b4fce43 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_network.go @@ -0,0 +1,10 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Network struct { + DelegatedSubnetResourceId *string `json:"delegatedSubnetResourceId,omitempty"` + PrivateDnsZoneResourceId *string `json:"privateDnsZoneResourceId,omitempty"` + PublicNetworkAccess *EnableStatusEnum `json:"publicNetworkAccess,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpoint.go new file mode 100644 index 000000000000..7b5eb12d10c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpoint.go @@ -0,0 +1,8 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpointconnection.go new file mode 100644 index 000000000000..6a2d001560c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpointconnection.go @@ -0,0 +1,16 @@ +package servermigration + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..34fd9e278a3d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState"` + ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..989c0f8c3c93 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_server.go new file mode 100644 index 000000000000..3c1d5072d3c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_server.go @@ -0,0 +1,20 @@ +package servermigration + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Server struct { + Id *string `json:"id,omitempty"` + Identity *MySQLServerIdentity `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *ServerProperties `json:"properties,omitempty"` + Sku *MySQLServerSku `json:"sku,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_serverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_serverproperties.go new file mode 100644 index 000000000000..63fcdd916574 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_serverproperties.go @@ -0,0 +1,44 @@ +package servermigration + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerProperties struct { + AdministratorLogin *string `json:"administratorLogin,omitempty"` + AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` + AvailabilityZone *string `json:"availabilityZone,omitempty"` + Backup *Backup `json:"backup,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` + FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` + HighAvailability *HighAvailability `json:"highAvailability,omitempty"` + ImportSourceProperties *ImportSourceProperties `json:"importSourceProperties,omitempty"` + MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` + Network *Network `json:"network,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ReplicaCapacity *int64 `json:"replicaCapacity,omitempty"` + ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` + RestorePointInTime *string `json:"restorePointInTime,omitempty"` + SourceServerResourceId *string `json:"sourceServerResourceId,omitempty"` + State *ServerState `json:"state,omitempty"` + Storage *Storage `json:"storage,omitempty"` + Version *ServerVersion `json:"version,omitempty"` +} + +func (o *ServerProperties) GetRestorePointInTimeAsTime() (*time.Time, error) { + if o.RestorePointInTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.RestorePointInTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ServerProperties) SetRestorePointInTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.RestorePointInTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_storage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_storage.go new file mode 100644 index 000000000000..288181e11627 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/model_storage.go @@ -0,0 +1,13 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Storage struct { + AutoGrow *EnableStatusEnum `json:"autoGrow,omitempty"` + AutoIoScaling *EnableStatusEnum `json:"autoIoScaling,omitempty"` + Iops *int64 `json:"iops,omitempty"` + LogOnDisk *EnableStatusEnum `json:"logOnDisk,omitempty"` + StorageSizeGB *int64 `json:"storageSizeGB,omitempty"` + StorageSku *string `json:"storageSku,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/version.go new file mode 100644 index 000000000000..cdc300f6539e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration/version.go @@ -0,0 +1,10 @@ +package servermigration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/servermigration/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/README.md new file mode 100644 index 000000000000..8405dcdb32a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid` Documentation + +The `serverresetgtid` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid" +``` + + +### Client Initialization + +```go +client := serverresetgtid.NewServerResetGtidClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServerResetGtidClient.ServersResetGtid` + +```go +ctx := context.TODO() +id := serverresetgtid.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := serverresetgtid.ServerGtidSetParameter{ + // ... +} + + +if err := client.ServersResetGtidThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/client.go new file mode 100644 index 000000000000..92225aea3ab6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/client.go @@ -0,0 +1,26 @@ +package serverresetgtid + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerResetGtidClient struct { + Client *resourcemanager.Client +} + +func NewServerResetGtidClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerResetGtidClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "serverresetgtid", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ServerResetGtidClient: %+v", err) + } + + return &ServerResetGtidClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/id_flexibleserver.go new file mode 100644 index 000000000000..eb008ff92071 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/id_flexibleserver.go @@ -0,0 +1,130 @@ +package serverresetgtid + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlexibleServerId{}) +} + +var _ resourceids.ResourceId = &FlexibleServerId{} + +// FlexibleServerId is a struct representing the Resource ID for a Flexible Server +type FlexibleServerId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string +} + +// NewFlexibleServerID returns a new FlexibleServerId struct +func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId { + return FlexibleServerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + } +} + +// ParseFlexibleServerID parses 'input' into a FlexibleServerId +func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId +// note: this method should only be used for API response data and not user input +func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + return nil +} + +// ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID +func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlexibleServerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flexible Server ID +func (id FlexibleServerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID +func (id FlexibleServerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + } +} + +// String returns a human-readable description of this Flexible Server ID +func (id FlexibleServerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + } + return fmt.Sprintf("Flexible Server (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/method_serversresetgtid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/method_serversresetgtid.go new file mode 100644 index 000000000000..5b44f151e573 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/method_serversresetgtid.go @@ -0,0 +1,74 @@ +package serverresetgtid + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServersResetGtidOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ServersResetGtid ... +func (c ServerResetGtidClient) ServersResetGtid(ctx context.Context, id FlexibleServerId, input ServerGtidSetParameter) (result ServersResetGtidOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/resetGtid", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ServersResetGtidThenPoll performs ServersResetGtid then polls until it's completed +func (c ServerResetGtidClient) ServersResetGtidThenPoll(ctx context.Context, id FlexibleServerId, input ServerGtidSetParameter) error { + result, err := c.ServersResetGtid(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ServersResetGtid: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ServersResetGtid: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/model_servergtidsetparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/model_servergtidsetparameter.go new file mode 100644 index 000000000000..1385c126503f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/model_servergtidsetparameter.go @@ -0,0 +1,8 @@ +package serverresetgtid + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerGtidSetParameter struct { + GtidSet *string `json:"gtidSet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/version.go new file mode 100644 index 000000000000..c8f23825b379 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid/version.go @@ -0,0 +1,10 @@ +package serverresetgtid + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/serverresetgtid/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/README.md new file mode 100644 index 000000000000..e78ab1e1db7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart` Documentation + +The `serverrestart` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart" +``` + + +### Client Initialization + +```go +client := serverrestart.NewServerRestartClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServerRestartClient.ServersRestart` + +```go +ctx := context.TODO() +id := serverrestart.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := serverrestart.ServerRestartParameter{ + // ... +} + + +if err := client.ServersRestartThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/method_serversrestart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/method_serversrestart.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/method_serversrestart.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/method_serversrestart.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/model_serverrestartparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/model_serverrestartparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/model_serverrestartparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/model_serverrestartparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/version.go new file mode 100644 index 000000000000..ee4c7518cb03 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart/version.go @@ -0,0 +1,10 @@ +package serverrestart + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/serverrestart/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/README.md new file mode 100644 index 000000000000..eb881cff0ebf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/README.md @@ -0,0 +1,134 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers` Documentation + +The `servers` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers" +``` + + +### Client Initialization + +```go +client := servers.NewServersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServersClient.Create` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := servers.Server{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServersClient.Delete` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServersClient.Get` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ServersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServersClient.ReplicasListByServer` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +// alternatively `client.ReplicasListByServer(ctx, id)` can be used to do batched pagination +items, err := client.ReplicasListByServerComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServersClient.Update` + +```go +ctx := context.TODO() +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := servers.ServerForUpdate{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/constants.go new file mode 100644 index 000000000000..17918642fd4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/constants.go @@ -0,0 +1,585 @@ +package servers + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateMode string + +const ( + CreateModeDefault CreateMode = "Default" + CreateModeGeoRestore CreateMode = "GeoRestore" + CreateModePointInTimeRestore CreateMode = "PointInTimeRestore" + CreateModeReplica CreateMode = "Replica" +) + +func PossibleValuesForCreateMode() []string { + return []string{ + string(CreateModeDefault), + string(CreateModeGeoRestore), + string(CreateModePointInTimeRestore), + string(CreateModeReplica), + } +} + +func (s *CreateMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCreateMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCreateMode(input string) (*CreateMode, error) { + vals := map[string]CreateMode{ + "default": CreateModeDefault, + "georestore": CreateModeGeoRestore, + "pointintimerestore": CreateModePointInTimeRestore, + "replica": CreateModeReplica, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CreateMode(input) + return &out, nil +} + +type DataEncryptionType string + +const ( + DataEncryptionTypeAzureKeyVault DataEncryptionType = "AzureKeyVault" + DataEncryptionTypeSystemManaged DataEncryptionType = "SystemManaged" +) + +func PossibleValuesForDataEncryptionType() []string { + return []string{ + string(DataEncryptionTypeAzureKeyVault), + string(DataEncryptionTypeSystemManaged), + } +} + +func (s *DataEncryptionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDataEncryptionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDataEncryptionType(input string) (*DataEncryptionType, error) { + vals := map[string]DataEncryptionType{ + "azurekeyvault": DataEncryptionTypeAzureKeyVault, + "systemmanaged": DataEncryptionTypeSystemManaged, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DataEncryptionType(input) + return &out, nil +} + +type EnableStatusEnum string + +const ( + EnableStatusEnumDisabled EnableStatusEnum = "Disabled" + EnableStatusEnumEnabled EnableStatusEnum = "Enabled" +) + +func PossibleValuesForEnableStatusEnum() []string { + return []string{ + string(EnableStatusEnumDisabled), + string(EnableStatusEnumEnabled), + } +} + +func (s *EnableStatusEnum) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEnableStatusEnum(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEnableStatusEnum(input string) (*EnableStatusEnum, error) { + vals := map[string]EnableStatusEnum{ + "disabled": EnableStatusEnumDisabled, + "enabled": EnableStatusEnumEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EnableStatusEnum(input) + return &out, nil +} + +type HighAvailabilityMode string + +const ( + HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled" + HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone" + HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant" +) + +func PossibleValuesForHighAvailabilityMode() []string { + return []string{ + string(HighAvailabilityModeDisabled), + string(HighAvailabilityModeSameZone), + string(HighAvailabilityModeZoneRedundant), + } +} + +func (s *HighAvailabilityMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHighAvailabilityMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHighAvailabilityMode(input string) (*HighAvailabilityMode, error) { + vals := map[string]HighAvailabilityMode{ + "disabled": HighAvailabilityModeDisabled, + "samezone": HighAvailabilityModeSameZone, + "zoneredundant": HighAvailabilityModeZoneRedundant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HighAvailabilityMode(input) + return &out, nil +} + +type HighAvailabilityState string + +const ( + HighAvailabilityStateCreatingStandby HighAvailabilityState = "CreatingStandby" + HighAvailabilityStateFailingOver HighAvailabilityState = "FailingOver" + HighAvailabilityStateHealthy HighAvailabilityState = "Healthy" + HighAvailabilityStateNotEnabled HighAvailabilityState = "NotEnabled" + HighAvailabilityStateRemovingStandby HighAvailabilityState = "RemovingStandby" +) + +func PossibleValuesForHighAvailabilityState() []string { + return []string{ + string(HighAvailabilityStateCreatingStandby), + string(HighAvailabilityStateFailingOver), + string(HighAvailabilityStateHealthy), + string(HighAvailabilityStateNotEnabled), + string(HighAvailabilityStateRemovingStandby), + } +} + +func (s *HighAvailabilityState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHighAvailabilityState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHighAvailabilityState(input string) (*HighAvailabilityState, error) { + vals := map[string]HighAvailabilityState{ + "creatingstandby": HighAvailabilityStateCreatingStandby, + "failingover": HighAvailabilityStateFailingOver, + "healthy": HighAvailabilityStateHealthy, + "notenabled": HighAvailabilityStateNotEnabled, + "removingstandby": HighAvailabilityStateRemovingStandby, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HighAvailabilityState(input) + return &out, nil +} + +type ImportSourceStorageType string + +const ( + ImportSourceStorageTypeAzureBlob ImportSourceStorageType = "AzureBlob" +) + +func PossibleValuesForImportSourceStorageType() []string { + return []string{ + string(ImportSourceStorageTypeAzureBlob), + } +} + +func (s *ImportSourceStorageType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseImportSourceStorageType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseImportSourceStorageType(input string) (*ImportSourceStorageType, error) { + vals := map[string]ImportSourceStorageType{ + "azureblob": ImportSourceStorageTypeAzureBlob, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ImportSourceStorageType(input) + return &out, nil +} + +type ManagedServiceIdentityType string + +const ( + ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" +) + +func PossibleValuesForManagedServiceIdentityType() []string { + return []string{ + string(ManagedServiceIdentityTypeUserAssigned), + } +} + +func (s *ManagedServiceIdentityType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseManagedServiceIdentityType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseManagedServiceIdentityType(input string) (*ManagedServiceIdentityType, error) { + vals := map[string]ManagedServiceIdentityType{ + "userassigned": ManagedServiceIdentityTypeUserAssigned, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedServiceIdentityType(input) + return &out, nil +} + +type PrivateEndpointConnectionProvisioningState string + +const ( + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string { + return []string{ + string(PrivateEndpointConnectionProvisioningStateCreating), + string(PrivateEndpointConnectionProvisioningStateDeleting), + string(PrivateEndpointConnectionProvisioningStateFailed), + string(PrivateEndpointConnectionProvisioningStateSucceeded), + } +} + +func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointConnectionProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointConnectionProvisioningState(input string) (*PrivateEndpointConnectionProvisioningState, error) { + vals := map[string]PrivateEndpointConnectionProvisioningState{ + "creating": PrivateEndpointConnectionProvisioningStateCreating, + "deleting": PrivateEndpointConnectionProvisioningStateDeleting, + "failed": PrivateEndpointConnectionProvisioningStateFailed, + "succeeded": PrivateEndpointConnectionProvisioningStateSucceeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointConnectionProvisioningState(input) + return &out, nil +} + +type PrivateEndpointServiceConnectionStatus string + +const ( + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string { + return []string{ + string(PrivateEndpointServiceConnectionStatusApproved), + string(PrivateEndpointServiceConnectionStatusPending), + string(PrivateEndpointServiceConnectionStatusRejected), + } +} + +func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointServiceConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointServiceConnectionStatus(input string) (*PrivateEndpointServiceConnectionStatus, error) { + vals := map[string]PrivateEndpointServiceConnectionStatus{ + "approved": PrivateEndpointServiceConnectionStatusApproved, + "pending": PrivateEndpointServiceConnectionStatusPending, + "rejected": PrivateEndpointServiceConnectionStatusRejected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointServiceConnectionStatus(input) + return &out, nil +} + +type ReplicationRole string + +const ( + ReplicationRoleNone ReplicationRole = "None" + ReplicationRoleReplica ReplicationRole = "Replica" + ReplicationRoleSource ReplicationRole = "Source" +) + +func PossibleValuesForReplicationRole() []string { + return []string{ + string(ReplicationRoleNone), + string(ReplicationRoleReplica), + string(ReplicationRoleSource), + } +} + +func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseReplicationRole(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseReplicationRole(input string) (*ReplicationRole, error) { + vals := map[string]ReplicationRole{ + "none": ReplicationRoleNone, + "replica": ReplicationRoleReplica, + "source": ReplicationRoleSource, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReplicationRole(input) + return &out, nil +} + +type ServerSkuTier string + +const ( + ServerSkuTierBurstable ServerSkuTier = "Burstable" + ServerSkuTierGeneralPurpose ServerSkuTier = "GeneralPurpose" + ServerSkuTierMemoryOptimized ServerSkuTier = "MemoryOptimized" +) + +func PossibleValuesForServerSkuTier() []string { + return []string{ + string(ServerSkuTierBurstable), + string(ServerSkuTierGeneralPurpose), + string(ServerSkuTierMemoryOptimized), + } +} + +func (s *ServerSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerSkuTier(input string) (*ServerSkuTier, error) { + vals := map[string]ServerSkuTier{ + "burstable": ServerSkuTierBurstable, + "generalpurpose": ServerSkuTierGeneralPurpose, + "memoryoptimized": ServerSkuTierMemoryOptimized, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerSkuTier(input) + return &out, nil +} + +type ServerState string + +const ( + ServerStateDisabled ServerState = "Disabled" + ServerStateDropping ServerState = "Dropping" + ServerStateReady ServerState = "Ready" + ServerStateStarting ServerState = "Starting" + ServerStateStopped ServerState = "Stopped" + ServerStateStopping ServerState = "Stopping" + ServerStateUpdating ServerState = "Updating" +) + +func PossibleValuesForServerState() []string { + return []string{ + string(ServerStateDisabled), + string(ServerStateDropping), + string(ServerStateReady), + string(ServerStateStarting), + string(ServerStateStopped), + string(ServerStateStopping), + string(ServerStateUpdating), + } +} + +func (s *ServerState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerState(input string) (*ServerState, error) { + vals := map[string]ServerState{ + "disabled": ServerStateDisabled, + "dropping": ServerStateDropping, + "ready": ServerStateReady, + "starting": ServerStateStarting, + "stopped": ServerStateStopped, + "stopping": ServerStateStopping, + "updating": ServerStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerState(input) + return &out, nil +} + +type ServerVersion string + +const ( + ServerVersionEightPointZeroPointTwoOne ServerVersion = "8.0.21" + ServerVersionFivePointSeven ServerVersion = "5.7" +) + +func PossibleValuesForServerVersion() []string { + return []string{ + string(ServerVersionEightPointZeroPointTwoOne), + string(ServerVersionFivePointSeven), + } +} + +func (s *ServerVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServerVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServerVersion(input string) (*ServerVersion, error) { + vals := map[string]ServerVersion{ + "8.0.21": ServerVersionEightPointZeroPointTwoOne, + "5.7": ServerVersionFivePointSeven, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServerVersion(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_replicaslistbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_replicaslistbyserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_replicaslistbyserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_replicaslistbyserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_backup.go new file mode 100644 index 000000000000..1b32d064ddec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_backup.go @@ -0,0 +1,29 @@ +package servers + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Backup struct { + BackupIntervalHours *int64 `json:"backupIntervalHours,omitempty"` + BackupRetentionDays *int64 `json:"backupRetentionDays,omitempty"` + EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"` + GeoRedundantBackup *EnableStatusEnum `json:"geoRedundantBackup,omitempty"` +} + +func (o *Backup) GetEarliestRestoreDateAsTime() (*time.Time, error) { + if o.EarliestRestoreDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.EarliestRestoreDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *Backup) SetEarliestRestoreDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.EarliestRestoreDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_dataencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_dataencryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_dataencryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_dataencryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_highavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_highavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_highavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_highavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_importsourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_importsourceproperties.go new file mode 100644 index 000000000000..69269b6707fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_importsourceproperties.go @@ -0,0 +1,11 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImportSourceProperties struct { + DataDirPath *string `json:"dataDirPath,omitempty"` + SasToken *string `json:"sasToken,omitempty"` + StorageType *ImportSourceStorageType `json:"storageType,omitempty"` + StorageURL *string `json:"storageUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_maintenancewindow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_maintenancewindow.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_maintenancewindow.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_maintenancewindow.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_mysqlserveridentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_mysqlserveridentity.go new file mode 100644 index 000000000000..fa31b3a9e3b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_mysqlserveridentity.go @@ -0,0 +1,11 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MySQLServerIdentity struct { + PrincipalId *string `json:"principalId,omitempty"` + TenantId *string `json:"tenantId,omitempty"` + Type *ManagedServiceIdentityType `json:"type,omitempty"` + UserAssignedIdentities *map[string]interface{} `json:"userAssignedIdentities,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_mysqlserversku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_mysqlserversku.go new file mode 100644 index 000000000000..dd4575adc676 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_mysqlserversku.go @@ -0,0 +1,9 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MySQLServerSku struct { + Name string `json:"name"` + Tier ServerSkuTier `json:"tier"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_network.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_network.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_network.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_network.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpoint.go new file mode 100644 index 000000000000..edbc5878b033 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpoint.go @@ -0,0 +1,8 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpointconnection.go new file mode 100644 index 000000000000..d6ff31c5dad0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpointconnection.go @@ -0,0 +1,16 @@ +package servers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..ee2ec79f43b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState"` + ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..8a2ade12ed85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_server.go new file mode 100644 index 000000000000..76d9c7b97082 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_server.go @@ -0,0 +1,20 @@ +package servers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Server struct { + Id *string `json:"id,omitempty"` + Identity *MySQLServerIdentity `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *ServerProperties `json:"properties,omitempty"` + Sku *MySQLServerSku `json:"sku,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverforupdate.go new file mode 100644 index 000000000000..f13bd7fc7a0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverforupdate.go @@ -0,0 +1,11 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerForUpdate struct { + Identity *MySQLServerIdentity `json:"identity,omitempty"` + Properties *ServerPropertiesForUpdate `json:"properties,omitempty"` + Sku *MySQLServerSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverproperties.go new file mode 100644 index 000000000000..f38682e4e9f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverproperties.go @@ -0,0 +1,44 @@ +package servers + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerProperties struct { + AdministratorLogin *string `json:"administratorLogin,omitempty"` + AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"` + AvailabilityZone *string `json:"availabilityZone,omitempty"` + Backup *Backup `json:"backup,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` + FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"` + HighAvailability *HighAvailability `json:"highAvailability,omitempty"` + ImportSourceProperties *ImportSourceProperties `json:"importSourceProperties,omitempty"` + MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` + Network *Network `json:"network,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ReplicaCapacity *int64 `json:"replicaCapacity,omitempty"` + ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` + RestorePointInTime *string `json:"restorePointInTime,omitempty"` + SourceServerResourceId *string `json:"sourceServerResourceId,omitempty"` + State *ServerState `json:"state,omitempty"` + Storage *Storage `json:"storage,omitempty"` + Version *ServerVersion `json:"version,omitempty"` +} + +func (o *ServerProperties) GetRestorePointInTimeAsTime() (*time.Time, error) { + if o.RestorePointInTime == nil { + return nil, nil + } + return dates.ParseAsFormat(o.RestorePointInTime, "2006-01-02T15:04:05Z07:00") +} + +func (o *ServerProperties) SetRestorePointInTimeAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.RestorePointInTime = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverpropertiesforupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverpropertiesforupdate.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverpropertiesforupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverpropertiesforupdate.go index a5b79594b3c9..3c4216aa121f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_serverpropertiesforupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_serverpropertiesforupdate.go @@ -9,6 +9,7 @@ type ServerPropertiesForUpdate struct { DataEncryption *DataEncryption `json:"dataEncryption,omitempty"` HighAvailability *HighAvailability `json:"highAvailability,omitempty"` MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` + Network *Network `json:"network,omitempty"` ReplicationRole *ReplicationRole `json:"replicationRole,omitempty"` Storage *Storage `json:"storage,omitempty"` Version *ServerVersion `json:"version,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_storage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_storage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/model_storage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/model_storage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/version.go new file mode 100644 index 000000000000..5e8a3822067d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers/version.go @@ -0,0 +1,10 @@ +package servers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/servers/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/method_serversstart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/method_serversstart.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/method_serversstart.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/method_serversstart.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/version.go new file mode 100644 index 000000000000..a618c927af8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart/version.go @@ -0,0 +1,10 @@ +package serverstart + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/serverstart/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/id_flexibleserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/id_flexibleserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/id_flexibleserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/method_serversstop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/method_serversstop.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/method_serversstop.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/method_serversstop.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/version.go new file mode 100644 index 000000000000..116e0a57dfd1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop/version.go @@ -0,0 +1,10 @@ +package serverstop + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/serverstop/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/README.md new file mode 100644 index 000000000000..b73dcb83a3ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/README.md @@ -0,0 +1,41 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability` Documentation + +The `servervalidateestimatehighavailability` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2023-12-30`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability" +``` + + +### Client Initialization + +```go +client := servervalidateestimatehighavailability.NewServerValidateEstimateHighAvailabilityClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServerValidateEstimateHighAvailabilityClient.ServersValidateEstimateHighAvailability` + +```go +ctx := context.TODO() +id := servervalidateestimatehighavailability.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerName") + +payload := servervalidateestimatehighavailability.HighAvailabilityValidationEstimation{ + // ... +} + + +read, err := client.ServersValidateEstimateHighAvailability(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/client.go new file mode 100644 index 000000000000..b561a8e467d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/client.go @@ -0,0 +1,26 @@ +package servervalidateestimatehighavailability + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServerValidateEstimateHighAvailabilityClient struct { + Client *resourcemanager.Client +} + +func NewServerValidateEstimateHighAvailabilityClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerValidateEstimateHighAvailabilityClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "servervalidateestimatehighavailability", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ServerValidateEstimateHighAvailabilityClient: %+v", err) + } + + return &ServerValidateEstimateHighAvailabilityClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/id_flexibleserver.go new file mode 100644 index 000000000000..5a04720a1245 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/id_flexibleserver.go @@ -0,0 +1,130 @@ +package servervalidateestimatehighavailability + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FlexibleServerId{}) +} + +var _ resourceids.ResourceId = &FlexibleServerId{} + +// FlexibleServerId is a struct representing the Resource ID for a Flexible Server +type FlexibleServerId struct { + SubscriptionId string + ResourceGroupName string + FlexibleServerName string +} + +// NewFlexibleServerID returns a new FlexibleServerId struct +func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId { + return FlexibleServerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FlexibleServerName: flexibleServerName, + } +} + +// ParseFlexibleServerID parses 'input' into a FlexibleServerId +func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFlexibleServerIDInsensitively parses 'input' case-insensitively into a FlexibleServerId +// note: this method should only be used for API response data and not user input +func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) { + parser := resourceids.NewParserFromResourceIdType(&FlexibleServerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FlexibleServerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FlexibleServerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FlexibleServerName, ok = input.Parsed["flexibleServerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "flexibleServerName", input) + } + + return nil +} + +// ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID +func ValidateFlexibleServerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFlexibleServerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Flexible Server ID +func (id FlexibleServerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DBforMySQL/flexibleServers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FlexibleServerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Flexible Server ID +func (id FlexibleServerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), + resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), + resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerName"), + } +} + +// String returns a human-readable description of this Flexible Server ID +func (id FlexibleServerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Flexible Server Name: %q", id.FlexibleServerName), + } + return fmt.Sprintf("Flexible Server (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/method_serversvalidateestimatehighavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/method_serversvalidateestimatehighavailability.go new file mode 100644 index 000000000000..ba715d8cabe9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/method_serversvalidateestimatehighavailability.go @@ -0,0 +1,58 @@ +package servervalidateestimatehighavailability + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServersValidateEstimateHighAvailabilityOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HighAvailabilityValidationEstimation +} + +// ServersValidateEstimateHighAvailability ... +func (c ServerValidateEstimateHighAvailabilityClient) ServersValidateEstimateHighAvailability(ctx context.Context, id FlexibleServerId, input HighAvailabilityValidationEstimation) (result ServersValidateEstimateHighAvailabilityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/validateEstimateHighAvailability", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HighAvailabilityValidationEstimation + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/model_highavailabilityvalidationestimation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/model_highavailabilityvalidationestimation.go new file mode 100644 index 000000000000..566953ec3e49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/model_highavailabilityvalidationestimation.go @@ -0,0 +1,10 @@ +package servervalidateestimatehighavailability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HighAvailabilityValidationEstimation struct { + EstimatedDowntime *int64 `json:"estimatedDowntime,omitempty"` + ExpectedStandbyAvailabilityZone *string `json:"expectedStandbyAvailabilityZone,omitempty"` + ScheduledStandbyAvailabilityZone *string `json:"scheduledStandbyAvailabilityZone,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/version.go new file mode 100644 index 000000000000..4a5d6cd41432 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability/version.go @@ -0,0 +1,10 @@ +package servervalidateestimatehighavailability + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2023-12-30" + +func userAgent() string { + return "hashicorp/go-azure-sdk/servervalidateestimatehighavailability/2023-12-30" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/README.md deleted file mode 100644 index e6cf8336b625..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/README.md +++ /dev/null @@ -1,99 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools` Documentation - -The `capacitypools` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools" -``` - - -### Client Initialization - -```go -client := capacitypools.NewCapacityPoolsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CapacityPoolsClient.PoolsCreateOrUpdate` - -```go -ctx := context.TODO() -id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") - -payload := capacitypools.CapacityPool{ - // ... -} - - -if err := client.PoolsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `CapacityPoolsClient.PoolsDelete` - -```go -ctx := context.TODO() -id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") - -if err := client.PoolsDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `CapacityPoolsClient.PoolsGet` - -```go -ctx := context.TODO() -id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") - -read, err := client.PoolsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CapacityPoolsClient.PoolsList` - -```go -ctx := context.TODO() -id := capacitypools.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") - -// alternatively `client.PoolsList(ctx, id)` can be used to do batched pagination -items, err := client.PoolsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CapacityPoolsClient.PoolsUpdate` - -```go -ctx := context.TODO() -id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") - -payload := capacitypools.CapacityPoolPatch{ - // ... -} - - -if err := client.PoolsUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/version.go deleted file mode 100644 index 827826ab30a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package capacitypools - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/capacitypools/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/README.md deleted file mode 100644 index c5c5f9927016..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/README.md +++ /dev/null @@ -1,129 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts` Documentation - -The `netappaccounts` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts" -``` - - -### Client Initialization - -```go -client := netappaccounts.NewNetAppAccountsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetAppAccountsClient.AccountsCreateOrUpdate` - -```go -ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") - -payload := netappaccounts.NetAppAccount{ - // ... -} - - -if err := client.AccountsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetAppAccountsClient.AccountsDelete` - -```go -ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") - -if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetAppAccountsClient.AccountsGet` - -```go -ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") - -read, err := client.AccountsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetAppAccountsClient.AccountsList` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.AccountsList(ctx, id)` can be used to do batched pagination -items, err := client.AccountsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetAppAccountsClient.AccountsListBySubscription` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.AccountsListBySubscription(ctx, id)` can be used to do batched pagination -items, err := client.AccountsListBySubscriptionComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetAppAccountsClient.AccountsRenewCredentials` - -```go -ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") - -if err := client.AccountsRenewCredentialsThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetAppAccountsClient.AccountsUpdate` - -```go -ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") - -payload := netappaccounts.NetAppAccountPatch{ - // ... -} - - -if err := client.AccountsUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/version.go deleted file mode 100644 index c5c99dfeca81..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package netappaccounts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/netappaccounts/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/README.md deleted file mode 100644 index ce7bccd2bc3d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/README.md +++ /dev/null @@ -1,102 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy` Documentation - -The `snapshotpolicy` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy" -``` - - -### Client Initialization - -```go -client := snapshotpolicy.NewSnapshotPolicyClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesCreate` - -```go -ctx := context.TODO() -id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "snapshotPolicyName") - -payload := snapshotpolicy.SnapshotPolicy{ - // ... -} - - -read, err := client.SnapshotPoliciesCreate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesDelete` - -```go -ctx := context.TODO() -id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "snapshotPolicyName") - -if err := client.SnapshotPoliciesDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesGet` - -```go -ctx := context.TODO() -id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "snapshotPolicyName") - -read, err := client.SnapshotPoliciesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesList` - -```go -ctx := context.TODO() -id := snapshotpolicy.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") - -read, err := client.SnapshotPoliciesList(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesUpdate` - -```go -ctx := context.TODO() -id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "snapshotPolicyName") - -payload := snapshotpolicy.SnapshotPolicyPatch{ - // ... -} - - -if err := client.SnapshotPoliciesUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/version.go deleted file mode 100644 index 4030344dfeee..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package snapshotpolicy - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/snapshotpolicy/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/README.md deleted file mode 100644 index b28bdd0a5d2e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/README.md +++ /dev/null @@ -1,111 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots` Documentation - -The `snapshots` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots" -``` - - -### Client Initialization - -```go -client := snapshots.NewSnapshotsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SnapshotsClient.Create` - -```go -ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") - -payload := snapshots.Snapshot{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `SnapshotsClient.Delete` - -```go -ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `SnapshotsClient.Get` - -```go -ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SnapshotsClient.List` - -```go -ctx := context.TODO() -id := snapshots.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SnapshotsClient.RestoreFiles` - -```go -ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") - -payload := snapshots.SnapshotRestoreFiles{ - // ... -} - - -if err := client.RestoreFilesThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `SnapshotsClient.Update` - -```go -ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") -var payload interface{} - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/version.go deleted file mode 100644 index 83ff2ccae966..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package snapshots - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/snapshots/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/README.md deleted file mode 100644 index 358b4d711015..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/README.md +++ /dev/null @@ -1,81 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups` Documentation - -The `volumegroups` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups" -``` - - -### Client Initialization - -```go -client := volumegroups.NewVolumeGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VolumeGroupsClient.Create` - -```go -ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "volumeGroupName") - -payload := volumegroups.VolumeGroupDetails{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumeGroupsClient.Delete` - -```go -ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "volumeGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumeGroupsClient.Get` - -```go -ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "volumeGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VolumeGroupsClient.ListByNetAppAccount` - -```go -ctx := context.TODO() -id := volumegroups.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") - -read, err := client.ListByNetAppAccount(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumepropertiesdataprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumepropertiesdataprotection.go deleted file mode 100644 index b97d3a9230f9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumepropertiesdataprotection.go +++ /dev/null @@ -1,10 +0,0 @@ -package volumegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VolumePropertiesDataProtection struct { - Replication *ReplicationObject `json:"replication,omitempty"` - Snapshot *VolumeSnapshotProperties `json:"snapshot,omitempty"` - VolumeRelocation *VolumeRelocationProperties `json:"volumeRelocation,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/version.go deleted file mode 100644 index 7c7d97845045..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package volumegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/volumegroups/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/README.md deleted file mode 100644 index 0298eff30400..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/README.md +++ /dev/null @@ -1,98 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules` Documentation - -The `volumequotarules` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules" -``` - - -### Client Initialization - -```go -client := volumequotarules.NewVolumeQuotaRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VolumeQuotaRulesClient.Create` - -```go -ctx := context.TODO() -id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "volumeQuotaRuleName") - -payload := volumequotarules.VolumeQuotaRule{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumeQuotaRulesClient.Delete` - -```go -ctx := context.TODO() -id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "volumeQuotaRuleName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumeQuotaRulesClient.Get` - -```go -ctx := context.TODO() -id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "volumeQuotaRuleName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VolumeQuotaRulesClient.ListByVolume` - -```go -ctx := context.TODO() -id := volumequotarules.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -read, err := client.ListByVolume(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VolumeQuotaRulesClient.Update` - -```go -ctx := context.TODO() -id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "volumeQuotaRuleName") - -payload := volumequotarules.VolumeQuotaRulePatch{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/version.go deleted file mode 100644 index 331229644b27..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package volumequotarules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/volumequotarules/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/README.md deleted file mode 100644 index c26acb94610a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/README.md +++ /dev/null @@ -1,111 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes` Documentation - -The `volumes` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes" -``` - - -### Client Initialization - -```go -client := volumes.NewVolumesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VolumesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -payload := volumes.Volume{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumesClient.Delete` - -```go -ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -if err := client.DeleteThenPoll(ctx, id, volumes.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumesClient.Get` - -```go -ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VolumesClient.List` - -```go -ctx := context.TODO() -id := volumes.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VolumesClient.PopulateAvailabilityZone` - -```go -ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -if err := client.PopulateAvailabilityZoneThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumesClient.Update` - -```go -ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -payload := volumes.VolumePatch{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepropertiesdataprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepropertiesdataprotection.go deleted file mode 100644 index e23524897548..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepropertiesdataprotection.go +++ /dev/null @@ -1,10 +0,0 @@ -package volumes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VolumePropertiesDataProtection struct { - Replication *ReplicationObject `json:"replication,omitempty"` - Snapshot *VolumeSnapshotProperties `json:"snapshot,omitempty"` - VolumeRelocation *VolumeRelocationProperties `json:"volumeRelocation,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/version.go deleted file mode 100644 index f53e1e97e5ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package volumes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/volumes/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/README.md deleted file mode 100644 index c6f7f129e36e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/README.md +++ /dev/null @@ -1,139 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication` Documentation - -The `volumesreplication` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication" -``` - - -### Client Initialization - -```go -client := volumesreplication.NewVolumesReplicationClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VolumesReplicationClient.VolumesAuthorizeReplication` - -```go -ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -payload := volumesreplication.AuthorizeRequest{ - // ... -} - - -if err := client.VolumesAuthorizeReplicationThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumesReplicationClient.VolumesBreakReplication` - -```go -ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -payload := volumesreplication.BreakReplicationRequest{ - // ... -} - - -if err := client.VolumesBreakReplicationThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumesReplicationClient.VolumesDeleteReplication` - -```go -ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -if err := client.VolumesDeleteReplicationThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumesReplicationClient.VolumesListReplications` - -```go -ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -read, err := client.VolumesListReplications(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VolumesReplicationClient.VolumesReInitializeReplication` - -```go -ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -if err := client.VolumesReInitializeReplicationThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumesReplicationClient.VolumesReestablishReplication` - -```go -ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -payload := volumesreplication.ReestablishReplicationRequest{ - // ... -} - - -if err := client.VolumesReestablishReplicationThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VolumesReplicationClient.VolumesReplicationStatus` - -```go -ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -read, err := client.VolumesReplicationStatus(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VolumesReplicationClient.VolumesResyncReplication` - -```go -ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") - -if err := client.VolumesResyncReplicationThenPoll(ctx, id); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/version.go deleted file mode 100644 index be1c25aec8f6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package volumesreplication - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-05-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/volumesreplication/2023-05-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/README.md new file mode 100644 index 000000000000..2d3e5eda7664 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/README.md @@ -0,0 +1,98 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy` Documentation + +The `backuppolicy` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy" +``` + + +### Client Initialization + +```go +client := backuppolicy.NewBackupPolicyClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BackupPolicyClient.BackupPoliciesCreate` + +```go +ctx := context.TODO() +id := backuppolicy.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupPolicyName") + +payload := backuppolicy.BackupPolicy{ + // ... +} + + +if err := client.BackupPoliciesCreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupPolicyClient.BackupPoliciesDelete` + +```go +ctx := context.TODO() +id := backuppolicy.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupPolicyName") + +if err := client.BackupPoliciesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupPolicyClient.BackupPoliciesGet` + +```go +ctx := context.TODO() +id := backuppolicy.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupPolicyName") + +read, err := client.BackupPoliciesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackupPolicyClient.BackupPoliciesList` + +```go +ctx := context.TODO() +id := backuppolicy.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +read, err := client.BackupPoliciesList(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackupPolicyClient.BackupPoliciesUpdate` + +```go +ctx := context.TODO() +id := backuppolicy.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupPolicyName") + +payload := backuppolicy.BackupPolicyPatch{ + // ... +} + + +if err := client.BackupPoliciesUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/client.go new file mode 100644 index 000000000000..8b4fc07ad66e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/client.go @@ -0,0 +1,26 @@ +package backuppolicy + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPolicyClient struct { + Client *resourcemanager.Client +} + +func NewBackupPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupPolicyClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "backuppolicy", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating BackupPolicyClient: %+v", err) + } + + return &BackupPolicyClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/id_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/id_backuppolicy.go new file mode 100644 index 000000000000..7e2cd95f2103 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/id_backuppolicy.go @@ -0,0 +1,139 @@ +package backuppolicy + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&BackupPolicyId{}) +} + +var _ resourceids.ResourceId = &BackupPolicyId{} + +// BackupPolicyId is a struct representing the Resource ID for a Backup Policy +type BackupPolicyId struct { + SubscriptionId string + ResourceGroupName string + NetAppAccountName string + BackupPolicyName string +} + +// NewBackupPolicyID returns a new BackupPolicyId struct +func NewBackupPolicyID(subscriptionId string, resourceGroupName string, netAppAccountName string, backupPolicyName string) BackupPolicyId { + return BackupPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetAppAccountName: netAppAccountName, + BackupPolicyName: backupPolicyName, + } +} + +// ParseBackupPolicyID parses 'input' into a BackupPolicyId +func ParseBackupPolicyID(input string) (*BackupPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseBackupPolicyIDInsensitively parses 'input' case-insensitively into a BackupPolicyId +// note: this method should only be used for API response data and not user input +func ParseBackupPolicyIDInsensitively(input string) (*BackupPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *BackupPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetAppAccountName, ok = input.Parsed["netAppAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "netAppAccountName", input) + } + + if id.BackupPolicyName, ok = input.Parsed["backupPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backupPolicyName", input) + } + + return nil +} + +// ValidateBackupPolicyID checks that 'input' can be parsed as a Backup Policy ID +func ValidateBackupPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseBackupPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Backup Policy ID +func (id BackupPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.NetApp/netAppAccounts/%s/backupPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, id.BackupPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Backup Policy ID +func (id BackupPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), + resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), + resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountName"), + resourceids.StaticSegment("staticBackupPolicies", "backupPolicies", "backupPolicies"), + resourceids.UserSpecifiedSegment("backupPolicyName", "backupPolicyName"), + } +} + +// String returns a human-readable description of this Backup Policy ID +func (id BackupPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Net App Account Name: %q", id.NetAppAccountName), + fmt.Sprintf("Backup Policy Name: %q", id.BackupPolicyName), + } + return fmt.Sprintf("Backup Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/id_netappaccount.go new file mode 100644 index 000000000000..b10e89e1ad13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/id_netappaccount.go @@ -0,0 +1,130 @@ +package backuppolicy + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetAppAccountId{}) +} + +var _ resourceids.ResourceId = &NetAppAccountId{} + +// NetAppAccountId is a struct representing the Resource ID for a Net App Account +type NetAppAccountId struct { + SubscriptionId string + ResourceGroupName string + NetAppAccountName string +} + +// NewNetAppAccountID returns a new NetAppAccountId struct +func NewNetAppAccountID(subscriptionId string, resourceGroupName string, netAppAccountName string) NetAppAccountId { + return NetAppAccountId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetAppAccountName: netAppAccountName, + } +} + +// ParseNetAppAccountID parses 'input' into a NetAppAccountId +func ParseNetAppAccountID(input string) (*NetAppAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetAppAccountId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetAppAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetAppAccountIDInsensitively parses 'input' case-insensitively into a NetAppAccountId +// note: this method should only be used for API response data and not user input +func ParseNetAppAccountIDInsensitively(input string) (*NetAppAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetAppAccountId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetAppAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetAppAccountId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetAppAccountName, ok = input.Parsed["netAppAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "netAppAccountName", input) + } + + return nil +} + +// ValidateNetAppAccountID checks that 'input' can be parsed as a Net App Account ID +func ValidateNetAppAccountID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetAppAccountID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Net App Account ID +func (id NetAppAccountId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.NetApp/netAppAccounts/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Net App Account ID +func (id NetAppAccountId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), + resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), + resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountName"), + } +} + +// String returns a human-readable description of this Net App Account ID +func (id NetAppAccountId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Net App Account Name: %q", id.NetAppAccountName), + } + return fmt.Sprintf("Net App Account (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciescreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciescreate.go new file mode 100644 index 000000000000..bb886f447546 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciescreate.go @@ -0,0 +1,76 @@ +package backuppolicy + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPoliciesCreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *BackupPolicy +} + +// BackupPoliciesCreate ... +func (c BackupPolicyClient) BackupPoliciesCreate(ctx context.Context, id BackupPolicyId, input BackupPolicy) (result BackupPoliciesCreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// BackupPoliciesCreateThenPoll performs BackupPoliciesCreate then polls until it's completed +func (c BackupPolicyClient) BackupPoliciesCreateThenPoll(ctx context.Context, id BackupPolicyId, input BackupPolicy) error { + result, err := c.BackupPoliciesCreate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing BackupPoliciesCreate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after BackupPoliciesCreate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesdelete.go new file mode 100644 index 000000000000..482cdc1780e3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesdelete.go @@ -0,0 +1,71 @@ +package backuppolicy + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPoliciesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// BackupPoliciesDelete ... +func (c BackupPolicyClient) BackupPoliciesDelete(ctx context.Context, id BackupPolicyId) (result BackupPoliciesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// BackupPoliciesDeleteThenPoll performs BackupPoliciesDelete then polls until it's completed +func (c BackupPolicyClient) BackupPoliciesDeleteThenPoll(ctx context.Context, id BackupPolicyId) error { + result, err := c.BackupPoliciesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing BackupPoliciesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after BackupPoliciesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesget.go new file mode 100644 index 000000000000..e8ecfc1fc044 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesget.go @@ -0,0 +1,53 @@ +package backuppolicy + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPoliciesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupPolicy +} + +// BackupPoliciesGet ... +func (c BackupPolicyClient) BackupPoliciesGet(ctx context.Context, id BackupPolicyId) (result BackupPoliciesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model BackupPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppolicieslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppolicieslist.go new file mode 100644 index 000000000000..7932d9642408 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppolicieslist.go @@ -0,0 +1,54 @@ +package backuppolicy + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPoliciesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupPoliciesList +} + +// BackupPoliciesList ... +func (c BackupPolicyClient) BackupPoliciesList(ctx context.Context, id NetAppAccountId) (result BackupPoliciesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/backupPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model BackupPoliciesList + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesupdate.go new file mode 100644 index 000000000000..b24e23a21cf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/method_backuppoliciesupdate.go @@ -0,0 +1,75 @@ +package backuppolicy + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPoliciesUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *BackupPolicy +} + +// BackupPoliciesUpdate ... +func (c BackupPolicyClient) BackupPoliciesUpdate(ctx context.Context, id BackupPolicyId, input BackupPolicyPatch) (result BackupPoliciesUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// BackupPoliciesUpdateThenPoll performs BackupPoliciesUpdate then polls until it's completed +func (c BackupPolicyClient) BackupPoliciesUpdateThenPoll(ctx context.Context, id BackupPolicyId, input BackupPolicyPatch) error { + result, err := c.BackupPoliciesUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing BackupPoliciesUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after BackupPoliciesUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicieslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicieslist.go new file mode 100644 index 000000000000..3db3d131a60e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicieslist.go @@ -0,0 +1,8 @@ +package backuppolicy + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPoliciesList struct { + Value *[]BackupPolicy `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicy.go new file mode 100644 index 000000000000..747ab65be24b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicy.go @@ -0,0 +1,19 @@ +package backuppolicy + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties BackupPolicyProperties `json:"properties"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicypatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicypatch.go new file mode 100644 index 000000000000..bf7eecb1358e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicypatch.go @@ -0,0 +1,13 @@ +package backuppolicy + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPolicyPatch struct { + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackupPolicyProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicyproperties.go new file mode 100644 index 000000000000..d5694f4797d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_backuppolicyproperties.go @@ -0,0 +1,15 @@ +package backuppolicy + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPolicyProperties struct { + BackupPolicyId *string `json:"backupPolicyId,omitempty"` + DailyBackupsToKeep *int64 `json:"dailyBackupsToKeep,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + MonthlyBackupsToKeep *int64 `json:"monthlyBackupsToKeep,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + VolumeBackups *[]VolumeBackups `json:"volumeBackups,omitempty"` + VolumesAssigned *int64 `json:"volumesAssigned,omitempty"` + WeeklyBackupsToKeep *int64 `json:"weeklyBackupsToKeep,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_volumebackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_volumebackups.go new file mode 100644 index 000000000000..b53afb9ae148 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/model_volumebackups.go @@ -0,0 +1,11 @@ +package backuppolicy + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VolumeBackups struct { + BackupsCount *int64 `json:"backupsCount,omitempty"` + PolicyEnabled *bool `json:"policyEnabled,omitempty"` + VolumeName *string `json:"volumeName,omitempty"` + VolumeResourceId *string `json:"volumeResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/version.go new file mode 100644 index 000000000000..b6697aad0a16 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy/version.go @@ -0,0 +1,10 @@ +package backuppolicy + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/backuppolicy/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/README.md new file mode 100644 index 000000000000..be38f5d3e723 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/README.md @@ -0,0 +1,166 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups` Documentation + +The `backups` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups" +``` + + +### Client Initialization + +```go +client := backups.NewBackupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BackupsClient.Create` + +```go +ctx := context.TODO() +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName", "backupName") + +payload := backups.Backup{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupsClient.Delete` + +```go +ctx := context.TODO() +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName", "backupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupsClient.Get` + +```go +ctx := context.TODO() +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName", "backupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackupsClient.GetLatestStatus` + +```go +ctx := context.TODO() +id := backups.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +read, err := client.GetLatestStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackupsClient.ListByVault` + +```go +ctx := context.TODO() +id := backups.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName") + +// alternatively `client.ListByVault(ctx, id, backups.DefaultListByVaultOperationOptions())` can be used to do batched pagination +items, err := client.ListByVaultComplete(ctx, id, backups.DefaultListByVaultOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BackupsClient.UnderAccountMigrateBackups` + +```go +ctx := context.TODO() +id := backups.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +payload := backups.BackupsMigrationRequest{ + // ... +} + + +if err := client.UnderAccountMigrateBackupsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupsClient.UnderBackupVaultRestoreFiles` + +```go +ctx := context.TODO() +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName", "backupName") + +payload := backups.BackupRestoreFiles{ + // ... +} + + +if err := client.UnderBackupVaultRestoreFilesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupsClient.UnderVolumeMigrateBackups` + +```go +ctx := context.TODO() +id := backups.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +payload := backups.BackupsMigrationRequest{ + // ... +} + + +if err := client.UnderVolumeMigrateBackupsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupsClient.Update` + +```go +ctx := context.TODO() +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName", "backupName") + +payload := backups.BackupPatch{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/client.go new file mode 100644 index 000000000000..6e1cc70d4343 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/client.go @@ -0,0 +1,26 @@ +package backups + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupsClient struct { + Client *resourcemanager.Client +} + +func NewBackupsClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "backups", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating BackupsClient: %+v", err) + } + + return &BackupsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/constants.go new file mode 100644 index 000000000000..d3c86cd75c04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/constants.go @@ -0,0 +1,142 @@ +package backups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupType string + +const ( + BackupTypeManual BackupType = "Manual" + BackupTypeScheduled BackupType = "Scheduled" +) + +func PossibleValuesForBackupType() []string { + return []string{ + string(BackupTypeManual), + string(BackupTypeScheduled), + } +} + +func (s *BackupType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBackupType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBackupType(input string) (*BackupType, error) { + vals := map[string]BackupType{ + "manual": BackupTypeManual, + "scheduled": BackupTypeScheduled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BackupType(input) + return &out, nil +} + +type MirrorState string + +const ( + MirrorStateBroken MirrorState = "Broken" + MirrorStateMirrored MirrorState = "Mirrored" + MirrorStateUninitialized MirrorState = "Uninitialized" +) + +func PossibleValuesForMirrorState() []string { + return []string{ + string(MirrorStateBroken), + string(MirrorStateMirrored), + string(MirrorStateUninitialized), + } +} + +func (s *MirrorState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseMirrorState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseMirrorState(input string) (*MirrorState, error) { + vals := map[string]MirrorState{ + "broken": MirrorStateBroken, + "mirrored": MirrorStateMirrored, + "uninitialized": MirrorStateUninitialized, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := MirrorState(input) + return &out, nil +} + +type RelationshipStatus string + +const ( + RelationshipStatusFailed RelationshipStatus = "Failed" + RelationshipStatusIdle RelationshipStatus = "Idle" + RelationshipStatusTransferring RelationshipStatus = "Transferring" + RelationshipStatusUnknown RelationshipStatus = "Unknown" +) + +func PossibleValuesForRelationshipStatus() []string { + return []string{ + string(RelationshipStatusFailed), + string(RelationshipStatusIdle), + string(RelationshipStatusTransferring), + string(RelationshipStatusUnknown), + } +} + +func (s *RelationshipStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRelationshipStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRelationshipStatus(input string) (*RelationshipStatus, error) { + vals := map[string]RelationshipStatus{ + "failed": RelationshipStatusFailed, + "idle": RelationshipStatusIdle, + "transferring": RelationshipStatusTransferring, + "unknown": RelationshipStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RelationshipStatus(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_backup.go new file mode 100644 index 000000000000..06aacd5f5b51 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_backup.go @@ -0,0 +1,148 @@ +package backups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&BackupId{}) +} + +var _ resourceids.ResourceId = &BackupId{} + +// BackupId is a struct representing the Resource ID for a Backup +type BackupId struct { + SubscriptionId string + ResourceGroupName string + NetAppAccountName string + BackupVaultName string + BackupName string +} + +// NewBackupID returns a new BackupId struct +func NewBackupID(subscriptionId string, resourceGroupName string, netAppAccountName string, backupVaultName string, backupName string) BackupId { + return BackupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetAppAccountName: netAppAccountName, + BackupVaultName: backupVaultName, + BackupName: backupName, + } +} + +// ParseBackupID parses 'input' into a BackupId +func ParseBackupID(input string) (*BackupId, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseBackupIDInsensitively parses 'input' case-insensitively into a BackupId +// note: this method should only be used for API response data and not user input +func ParseBackupIDInsensitively(input string) (*BackupId, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *BackupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetAppAccountName, ok = input.Parsed["netAppAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "netAppAccountName", input) + } + + if id.BackupVaultName, ok = input.Parsed["backupVaultName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backupVaultName", input) + } + + if id.BackupName, ok = input.Parsed["backupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backupName", input) + } + + return nil +} + +// ValidateBackupID checks that 'input' can be parsed as a Backup ID +func ValidateBackupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseBackupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Backup ID +func (id BackupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.NetApp/netAppAccounts/%s/backupVaults/%s/backups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, id.BackupVaultName, id.BackupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Backup ID +func (id BackupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), + resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), + resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountName"), + resourceids.StaticSegment("staticBackupVaults", "backupVaults", "backupVaults"), + resourceids.UserSpecifiedSegment("backupVaultName", "backupVaultName"), + resourceids.StaticSegment("staticBackups", "backups", "backups"), + resourceids.UserSpecifiedSegment("backupName", "backupName"), + } +} + +// String returns a human-readable description of this Backup ID +func (id BackupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Net App Account Name: %q", id.NetAppAccountName), + fmt.Sprintf("Backup Vault Name: %q", id.BackupVaultName), + fmt.Sprintf("Backup Name: %q", id.BackupName), + } + return fmt.Sprintf("Backup (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_backupvault.go new file mode 100644 index 000000000000..779adf353ca9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_backupvault.go @@ -0,0 +1,139 @@ +package backups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&BackupVaultId{}) +} + +var _ resourceids.ResourceId = &BackupVaultId{} + +// BackupVaultId is a struct representing the Resource ID for a Backup Vault +type BackupVaultId struct { + SubscriptionId string + ResourceGroupName string + NetAppAccountName string + BackupVaultName string +} + +// NewBackupVaultID returns a new BackupVaultId struct +func NewBackupVaultID(subscriptionId string, resourceGroupName string, netAppAccountName string, backupVaultName string) BackupVaultId { + return BackupVaultId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetAppAccountName: netAppAccountName, + BackupVaultName: backupVaultName, + } +} + +// ParseBackupVaultID parses 'input' into a BackupVaultId +func ParseBackupVaultID(input string) (*BackupVaultId, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupVaultId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupVaultId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseBackupVaultIDInsensitively parses 'input' case-insensitively into a BackupVaultId +// note: this method should only be used for API response data and not user input +func ParseBackupVaultIDInsensitively(input string) (*BackupVaultId, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupVaultId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupVaultId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *BackupVaultId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetAppAccountName, ok = input.Parsed["netAppAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "netAppAccountName", input) + } + + if id.BackupVaultName, ok = input.Parsed["backupVaultName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backupVaultName", input) + } + + return nil +} + +// ValidateBackupVaultID checks that 'input' can be parsed as a Backup Vault ID +func ValidateBackupVaultID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseBackupVaultID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Backup Vault ID +func (id BackupVaultId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.NetApp/netAppAccounts/%s/backupVaults/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, id.BackupVaultName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Backup Vault ID +func (id BackupVaultId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), + resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), + resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountName"), + resourceids.StaticSegment("staticBackupVaults", "backupVaults", "backupVaults"), + resourceids.UserSpecifiedSegment("backupVaultName", "backupVaultName"), + } +} + +// String returns a human-readable description of this Backup Vault ID +func (id BackupVaultId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Net App Account Name: %q", id.NetAppAccountName), + fmt.Sprintf("Backup Vault Name: %q", id.BackupVaultName), + } + return fmt.Sprintf("Backup Vault (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_netappaccount.go new file mode 100644 index 000000000000..516c7ff39118 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_netappaccount.go @@ -0,0 +1,130 @@ +package backups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetAppAccountId{}) +} + +var _ resourceids.ResourceId = &NetAppAccountId{} + +// NetAppAccountId is a struct representing the Resource ID for a Net App Account +type NetAppAccountId struct { + SubscriptionId string + ResourceGroupName string + NetAppAccountName string +} + +// NewNetAppAccountID returns a new NetAppAccountId struct +func NewNetAppAccountID(subscriptionId string, resourceGroupName string, netAppAccountName string) NetAppAccountId { + return NetAppAccountId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetAppAccountName: netAppAccountName, + } +} + +// ParseNetAppAccountID parses 'input' into a NetAppAccountId +func ParseNetAppAccountID(input string) (*NetAppAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetAppAccountId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetAppAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetAppAccountIDInsensitively parses 'input' case-insensitively into a NetAppAccountId +// note: this method should only be used for API response data and not user input +func ParseNetAppAccountIDInsensitively(input string) (*NetAppAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetAppAccountId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetAppAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetAppAccountId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetAppAccountName, ok = input.Parsed["netAppAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "netAppAccountName", input) + } + + return nil +} + +// ValidateNetAppAccountID checks that 'input' can be parsed as a Net App Account ID +func ValidateNetAppAccountID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetAppAccountID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Net App Account ID +func (id NetAppAccountId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.NetApp/netAppAccounts/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Net App Account ID +func (id NetAppAccountId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), + resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), + resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountName"), + } +} + +// String returns a human-readable description of this Net App Account ID +func (id NetAppAccountId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Net App Account Name: %q", id.NetAppAccountName), + } + return fmt.Sprintf("Net App Account (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_volume.go new file mode 100644 index 000000000000..68f2aee4179e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/id_volume.go @@ -0,0 +1,148 @@ +package backups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VolumeId{}) +} + +var _ resourceids.ResourceId = &VolumeId{} + +// VolumeId is a struct representing the Resource ID for a Volume +type VolumeId struct { + SubscriptionId string + ResourceGroupName string + NetAppAccountName string + CapacityPoolName string + VolumeName string +} + +// NewVolumeID returns a new VolumeId struct +func NewVolumeID(subscriptionId string, resourceGroupName string, netAppAccountName string, capacityPoolName string, volumeName string) VolumeId { + return VolumeId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetAppAccountName: netAppAccountName, + CapacityPoolName: capacityPoolName, + VolumeName: volumeName, + } +} + +// ParseVolumeID parses 'input' into a VolumeId +func ParseVolumeID(input string) (*VolumeId, error) { + parser := resourceids.NewParserFromResourceIdType(&VolumeId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VolumeId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVolumeIDInsensitively parses 'input' case-insensitively into a VolumeId +// note: this method should only be used for API response data and not user input +func ParseVolumeIDInsensitively(input string) (*VolumeId, error) { + parser := resourceids.NewParserFromResourceIdType(&VolumeId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VolumeId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VolumeId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetAppAccountName, ok = input.Parsed["netAppAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "netAppAccountName", input) + } + + if id.CapacityPoolName, ok = input.Parsed["capacityPoolName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "capacityPoolName", input) + } + + if id.VolumeName, ok = input.Parsed["volumeName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "volumeName", input) + } + + return nil +} + +// ValidateVolumeID checks that 'input' can be parsed as a Volume ID +func ValidateVolumeID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVolumeID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Volume ID +func (id VolumeId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.NetApp/netAppAccounts/%s/capacityPools/%s/volumes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, id.CapacityPoolName, id.VolumeName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Volume ID +func (id VolumeId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), + resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), + resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountName"), + resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), + resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolName"), + resourceids.StaticSegment("staticVolumes", "volumes", "volumes"), + resourceids.UserSpecifiedSegment("volumeName", "volumeName"), + } +} + +// String returns a human-readable description of this Volume ID +func (id VolumeId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Net App Account Name: %q", id.NetAppAccountName), + fmt.Sprintf("Capacity Pool Name: %q", id.CapacityPoolName), + fmt.Sprintf("Volume Name: %q", id.VolumeName), + } + return fmt.Sprintf("Volume (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_create.go new file mode 100644 index 000000000000..547e1883e1f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_create.go @@ -0,0 +1,75 @@ +package backups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Backup +} + +// Create ... +func (c BackupsClient) Create(ctx context.Context, id BackupId, input Backup) (result CreateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateThenPoll performs Create then polls until it's completed +func (c BackupsClient) CreateThenPoll(ctx context.Context, id BackupId, input Backup) error { + result, err := c.Create(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Create: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Create: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_delete.go new file mode 100644 index 000000000000..15a40b88c3cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_delete.go @@ -0,0 +1,70 @@ +package backups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c BackupsClient) Delete(ctx context.Context, id BackupId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c BackupsClient) DeleteThenPoll(ctx context.Context, id BackupId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_get.go new file mode 100644 index 000000000000..fe88bb84d0a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_get.go @@ -0,0 +1,53 @@ +package backups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Backup +} + +// Get ... +func (c BackupsClient) Get(ctx context.Context, id BackupId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Backup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_getlateststatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_getlateststatus.go new file mode 100644 index 000000000000..1668fdfcf7e1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_getlateststatus.go @@ -0,0 +1,54 @@ +package backups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetLatestStatusOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupStatus +} + +// GetLatestStatus ... +func (c BackupsClient) GetLatestStatus(ctx context.Context, id VolumeId) (result GetLatestStatusOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/latestBackupStatus/current", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model BackupStatus + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_listbyvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_listbyvault.go new file mode 100644 index 000000000000..3416244ff498 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_listbyvault.go @@ -0,0 +1,134 @@ +package backups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByVaultOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Backup +} + +type ListByVaultCompleteResult struct { + LatestHttpResponse *http.Response + Items []Backup +} + +type ListByVaultOperationOptions struct { + Filter *string +} + +func DefaultListByVaultOperationOptions() ListByVaultOperationOptions { + return ListByVaultOperationOptions{} +} + +func (o ListByVaultOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListByVaultOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListByVaultOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + return &out +} + +type ListByVaultCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByVaultCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByVault ... +func (c BackupsClient) ListByVault(ctx context.Context, id BackupVaultId, options ListByVaultOperationOptions) (result ListByVaultOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListByVaultCustomPager{}, + Path: fmt.Sprintf("%s/backups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Backup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByVaultComplete retrieves all the results into a single object +func (c BackupsClient) ListByVaultComplete(ctx context.Context, id BackupVaultId, options ListByVaultOperationOptions) (ListByVaultCompleteResult, error) { + return c.ListByVaultCompleteMatchingPredicate(ctx, id, options, BackupOperationPredicate{}) +} + +// ListByVaultCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c BackupsClient) ListByVaultCompleteMatchingPredicate(ctx context.Context, id BackupVaultId, options ListByVaultOperationOptions, predicate BackupOperationPredicate) (result ListByVaultCompleteResult, err error) { + items := make([]Backup, 0) + + resp, err := c.ListByVault(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByVaultCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_underaccountmigratebackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_underaccountmigratebackups.go new file mode 100644 index 000000000000..d8792fed2b6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_underaccountmigratebackups.go @@ -0,0 +1,73 @@ +package backups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UnderAccountMigrateBackupsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// UnderAccountMigrateBackups ... +func (c BackupsClient) UnderAccountMigrateBackups(ctx context.Context, id NetAppAccountId, input BackupsMigrationRequest) (result UnderAccountMigrateBackupsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/migrateBackups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UnderAccountMigrateBackupsThenPoll performs UnderAccountMigrateBackups then polls until it's completed +func (c BackupsClient) UnderAccountMigrateBackupsThenPoll(ctx context.Context, id NetAppAccountId, input BackupsMigrationRequest) error { + result, err := c.UnderAccountMigrateBackups(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UnderAccountMigrateBackups: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UnderAccountMigrateBackups: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_underbackupvaultrestorefiles.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_underbackupvaultrestorefiles.go new file mode 100644 index 000000000000..fae1ff9c3ac0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_underbackupvaultrestorefiles.go @@ -0,0 +1,73 @@ +package backups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UnderBackupVaultRestoreFilesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// UnderBackupVaultRestoreFiles ... +func (c BackupsClient) UnderBackupVaultRestoreFiles(ctx context.Context, id BackupId, input BackupRestoreFiles) (result UnderBackupVaultRestoreFilesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restoreFiles", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UnderBackupVaultRestoreFilesThenPoll performs UnderBackupVaultRestoreFiles then polls until it's completed +func (c BackupsClient) UnderBackupVaultRestoreFilesThenPoll(ctx context.Context, id BackupId, input BackupRestoreFiles) error { + result, err := c.UnderBackupVaultRestoreFiles(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UnderBackupVaultRestoreFiles: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UnderBackupVaultRestoreFiles: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_undervolumemigratebackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_undervolumemigratebackups.go new file mode 100644 index 000000000000..1bbdca6b0841 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_undervolumemigratebackups.go @@ -0,0 +1,73 @@ +package backups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UnderVolumeMigrateBackupsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// UnderVolumeMigrateBackups ... +func (c BackupsClient) UnderVolumeMigrateBackups(ctx context.Context, id VolumeId, input BackupsMigrationRequest) (result UnderVolumeMigrateBackupsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/migrateBackups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UnderVolumeMigrateBackupsThenPoll performs UnderVolumeMigrateBackups then polls until it's completed +func (c BackupsClient) UnderVolumeMigrateBackupsThenPoll(ctx context.Context, id VolumeId, input BackupsMigrationRequest) error { + result, err := c.UnderVolumeMigrateBackups(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UnderVolumeMigrateBackups: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UnderVolumeMigrateBackups: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_update.go new file mode 100644 index 000000000000..0a8669d7caa4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/method_update.go @@ -0,0 +1,75 @@ +package backups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Backup +} + +// Update ... +func (c BackupsClient) Update(ctx context.Context, id BackupId, input BackupPatch) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c BackupsClient) UpdateThenPoll(ctx context.Context, id BackupId, input BackupPatch) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backup.go new file mode 100644 index 000000000000..ef5ef0a7bc60 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backup.go @@ -0,0 +1,16 @@ +package backups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Backup struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties BackupProperties `json:"properties"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuppatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuppatch.go new file mode 100644 index 000000000000..a87251f4b0c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuppatch.go @@ -0,0 +1,8 @@ +package backups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPatch struct { + Properties *BackupPatchProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuppatchproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuppatchproperties.go new file mode 100644 index 000000000000..b374bda31438 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuppatchproperties.go @@ -0,0 +1,8 @@ +package backups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupPatchProperties struct { + Label *string `json:"label,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupproperties.go new file mode 100644 index 000000000000..168aa8182a95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupproperties.go @@ -0,0 +1,36 @@ +package backups + +import ( + "time" + + "github.com/hashicorp/go-azure-helpers/lang/dates" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupProperties struct { + BackupId *string `json:"backupId,omitempty"` + BackupPolicyResourceId *string `json:"backupPolicyResourceId,omitempty"` + BackupType *BackupType `json:"backupType,omitempty"` + CreationDate *string `json:"creationDate,omitempty"` + FailureReason *string `json:"failureReason,omitempty"` + Label *string `json:"label,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + Size *int64 `json:"size,omitempty"` + SnapshotName *string `json:"snapshotName,omitempty"` + UseExistingSnapshot *bool `json:"useExistingSnapshot,omitempty"` + VolumeResourceId string `json:"volumeResourceId"` +} + +func (o *BackupProperties) GetCreationDateAsTime() (*time.Time, error) { + if o.CreationDate == nil { + return nil, nil + } + return dates.ParseAsFormat(o.CreationDate, "2006-01-02T15:04:05Z07:00") +} + +func (o *BackupProperties) SetCreationDateAsTime(input time.Time) { + formatted := input.Format("2006-01-02T15:04:05Z07:00") + o.CreationDate = &formatted +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuprestorefiles.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuprestorefiles.go new file mode 100644 index 000000000000..e26ce886407f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backuprestorefiles.go @@ -0,0 +1,10 @@ +package backups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupRestoreFiles struct { + DestinationVolumeId string `json:"destinationVolumeId"` + FileList []string `json:"fileList"` + RestoreFilePath *string `json:"restoreFilePath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupsmigrationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupsmigrationrequest.go new file mode 100644 index 000000000000..f0fb612b507d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupsmigrationrequest.go @@ -0,0 +1,8 @@ +package backups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupsMigrationRequest struct { + BackupVaultId string `json:"backupVaultId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupstatus.go new file mode 100644 index 000000000000..e873cd9463d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/model_backupstatus.go @@ -0,0 +1,16 @@ +package backups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupStatus struct { + ErrorMessage *string `json:"errorMessage,omitempty"` + Healthy *bool `json:"healthy,omitempty"` + LastTransferSize *int64 `json:"lastTransferSize,omitempty"` + LastTransferType *string `json:"lastTransferType,omitempty"` + MirrorState *MirrorState `json:"mirrorState,omitempty"` + RelationshipStatus *RelationshipStatus `json:"relationshipStatus,omitempty"` + TotalTransferBytes *int64 `json:"totalTransferBytes,omitempty"` + TransferProgressBytes *int64 `json:"transferProgressBytes,omitempty"` + UnhealthyReason *string `json:"unhealthyReason,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/predicates.go new file mode 100644 index 000000000000..f5033a2bb91f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/predicates.go @@ -0,0 +1,27 @@ +package backups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p BackupOperationPredicate) Matches(input Backup) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/version.go new file mode 100644 index 000000000000..434265f8cb98 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups/version.go @@ -0,0 +1,10 @@ +package backups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/backups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/README.md new file mode 100644 index 000000000000..9bc1ae14b5df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/README.md @@ -0,0 +1,99 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults` Documentation + +The `backupvaults` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults" +``` + + +### Client Initialization + +```go +client := backupvaults.NewBackupVaultsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BackupVaultsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName") + +payload := backupvaults.BackupVault{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupVaultsClient.Delete` + +```go +ctx := context.TODO() +id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupVaultsClient.Get` + +```go +ctx := context.TODO() +id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BackupVaultsClient.ListByNetAppAccount` + +```go +ctx := context.TODO() +id := backupvaults.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +// alternatively `client.ListByNetAppAccount(ctx, id)` can be used to do batched pagination +items, err := client.ListByNetAppAccountComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BackupVaultsClient.Update` + +```go +ctx := context.TODO() +id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "backupVaultName") + +payload := backupvaults.BackupVaultPatch{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/client.go new file mode 100644 index 000000000000..57d96b431b5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/client.go @@ -0,0 +1,26 @@ +package backupvaults + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupVaultsClient struct { + Client *resourcemanager.Client +} + +func NewBackupVaultsClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupVaultsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "backupvaults", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating BackupVaultsClient: %+v", err) + } + + return &BackupVaultsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/id_backupvault.go new file mode 100644 index 000000000000..84c031650621 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/id_backupvault.go @@ -0,0 +1,139 @@ +package backupvaults + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&BackupVaultId{}) +} + +var _ resourceids.ResourceId = &BackupVaultId{} + +// BackupVaultId is a struct representing the Resource ID for a Backup Vault +type BackupVaultId struct { + SubscriptionId string + ResourceGroupName string + NetAppAccountName string + BackupVaultName string +} + +// NewBackupVaultID returns a new BackupVaultId struct +func NewBackupVaultID(subscriptionId string, resourceGroupName string, netAppAccountName string, backupVaultName string) BackupVaultId { + return BackupVaultId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetAppAccountName: netAppAccountName, + BackupVaultName: backupVaultName, + } +} + +// ParseBackupVaultID parses 'input' into a BackupVaultId +func ParseBackupVaultID(input string) (*BackupVaultId, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupVaultId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupVaultId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseBackupVaultIDInsensitively parses 'input' case-insensitively into a BackupVaultId +// note: this method should only be used for API response data and not user input +func ParseBackupVaultIDInsensitively(input string) (*BackupVaultId, error) { + parser := resourceids.NewParserFromResourceIdType(&BackupVaultId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := BackupVaultId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *BackupVaultId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetAppAccountName, ok = input.Parsed["netAppAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "netAppAccountName", input) + } + + if id.BackupVaultName, ok = input.Parsed["backupVaultName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "backupVaultName", input) + } + + return nil +} + +// ValidateBackupVaultID checks that 'input' can be parsed as a Backup Vault ID +func ValidateBackupVaultID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseBackupVaultID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Backup Vault ID +func (id BackupVaultId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.NetApp/netAppAccounts/%s/backupVaults/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName, id.BackupVaultName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Backup Vault ID +func (id BackupVaultId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), + resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), + resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountName"), + resourceids.StaticSegment("staticBackupVaults", "backupVaults", "backupVaults"), + resourceids.UserSpecifiedSegment("backupVaultName", "backupVaultName"), + } +} + +// String returns a human-readable description of this Backup Vault ID +func (id BackupVaultId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Net App Account Name: %q", id.NetAppAccountName), + fmt.Sprintf("Backup Vault Name: %q", id.BackupVaultName), + } + return fmt.Sprintf("Backup Vault (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/id_netappaccount.go new file mode 100644 index 000000000000..203dcf207ec0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/id_netappaccount.go @@ -0,0 +1,130 @@ +package backupvaults + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetAppAccountId{}) +} + +var _ resourceids.ResourceId = &NetAppAccountId{} + +// NetAppAccountId is a struct representing the Resource ID for a Net App Account +type NetAppAccountId struct { + SubscriptionId string + ResourceGroupName string + NetAppAccountName string +} + +// NewNetAppAccountID returns a new NetAppAccountId struct +func NewNetAppAccountID(subscriptionId string, resourceGroupName string, netAppAccountName string) NetAppAccountId { + return NetAppAccountId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetAppAccountName: netAppAccountName, + } +} + +// ParseNetAppAccountID parses 'input' into a NetAppAccountId +func ParseNetAppAccountID(input string) (*NetAppAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetAppAccountId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetAppAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetAppAccountIDInsensitively parses 'input' case-insensitively into a NetAppAccountId +// note: this method should only be used for API response data and not user input +func ParseNetAppAccountIDInsensitively(input string) (*NetAppAccountId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetAppAccountId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetAppAccountId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetAppAccountId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetAppAccountName, ok = input.Parsed["netAppAccountName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "netAppAccountName", input) + } + + return nil +} + +// ValidateNetAppAccountID checks that 'input' can be parsed as a Net App Account ID +func ValidateNetAppAccountID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetAppAccountID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Net App Account ID +func (id NetAppAccountId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.NetApp/netAppAccounts/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetAppAccountName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Net App Account ID +func (id NetAppAccountId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), + resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), + resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountName"), + } +} + +// String returns a human-readable description of this Net App Account ID +func (id NetAppAccountId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Net App Account Name: %q", id.NetAppAccountName), + } + return fmt.Sprintf("Net App Account (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_createorupdate.go new file mode 100644 index 000000000000..0f75206e2d7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_createorupdate.go @@ -0,0 +1,75 @@ +package backupvaults + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *BackupVault +} + +// CreateOrUpdate ... +func (c BackupVaultsClient) CreateOrUpdate(ctx context.Context, id BackupVaultId, input BackupVault) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c BackupVaultsClient) CreateOrUpdateThenPoll(ctx context.Context, id BackupVaultId, input BackupVault) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_delete.go new file mode 100644 index 000000000000..32a1387f1ba7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_delete.go @@ -0,0 +1,70 @@ +package backupvaults + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c BackupVaultsClient) Delete(ctx context.Context, id BackupVaultId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c BackupVaultsClient) DeleteThenPoll(ctx context.Context, id BackupVaultId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_get.go new file mode 100644 index 000000000000..6cd544f7ca95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_get.go @@ -0,0 +1,53 @@ +package backupvaults + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BackupVault +} + +// Get ... +func (c BackupVaultsClient) Get(ctx context.Context, id BackupVaultId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model BackupVault + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_listbynetappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_listbynetappaccount.go new file mode 100644 index 000000000000..a0f46fc10236 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_listbynetappaccount.go @@ -0,0 +1,105 @@ +package backupvaults + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByNetAppAccountOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BackupVault +} + +type ListByNetAppAccountCompleteResult struct { + LatestHttpResponse *http.Response + Items []BackupVault +} + +type ListByNetAppAccountCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByNetAppAccountCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByNetAppAccount ... +func (c BackupVaultsClient) ListByNetAppAccount(ctx context.Context, id NetAppAccountId) (result ListByNetAppAccountOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByNetAppAccountCustomPager{}, + Path: fmt.Sprintf("%s/backupVaults", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BackupVault `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByNetAppAccountComplete retrieves all the results into a single object +func (c BackupVaultsClient) ListByNetAppAccountComplete(ctx context.Context, id NetAppAccountId) (ListByNetAppAccountCompleteResult, error) { + return c.ListByNetAppAccountCompleteMatchingPredicate(ctx, id, BackupVaultOperationPredicate{}) +} + +// ListByNetAppAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c BackupVaultsClient) ListByNetAppAccountCompleteMatchingPredicate(ctx context.Context, id NetAppAccountId, predicate BackupVaultOperationPredicate) (result ListByNetAppAccountCompleteResult, err error) { + items := make([]BackupVault, 0) + + resp, err := c.ListByNetAppAccount(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByNetAppAccountCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_update.go new file mode 100644 index 000000000000..8ea7dce31232 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/method_update.go @@ -0,0 +1,75 @@ +package backupvaults + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *BackupVault +} + +// Update ... +func (c BackupVaultsClient) Update(ctx context.Context, id BackupVaultId, input BackupVaultPatch) (result UpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateThenPoll performs Update then polls until it's completed +func (c BackupVaultsClient) UpdateThenPoll(ctx context.Context, id BackupVaultId, input BackupVaultPatch) error { + result, err := c.Update(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Update: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Update: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvault.go new file mode 100644 index 000000000000..0e8761f2293a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvault.go @@ -0,0 +1,18 @@ +package backupvaults + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupVault struct { + Id *string `json:"id,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *BackupVaultProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvaultpatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvaultpatch.go new file mode 100644 index 000000000000..899e2ecf858c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvaultpatch.go @@ -0,0 +1,8 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupVaultPatch struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvaultproperties.go new file mode 100644 index 000000000000..7327d4d21196 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/model_backupvaultproperties.go @@ -0,0 +1,8 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupVaultProperties struct { + ProvisioningState *string `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/predicates.go new file mode 100644 index 000000000000..53d942f568ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/predicates.go @@ -0,0 +1,32 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupVaultOperationPredicate struct { + Id *string + Location *string + Name *string + Type *string +} + +func (p BackupVaultOperationPredicate) Matches(input BackupVault) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && *p.Location != input.Location { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/version.go new file mode 100644 index 000000000000..692bfdc12575 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults/version.go @@ -0,0 +1,10 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/backupvaults/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/README.md new file mode 100644 index 000000000000..333457abfcea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/README.md @@ -0,0 +1,99 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools` Documentation + +The `capacitypools` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools" +``` + + +### Client Initialization + +```go +client := capacitypools.NewCapacityPoolsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CapacityPoolsClient.PoolsCreateOrUpdate` + +```go +ctx := context.TODO() +id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") + +payload := capacitypools.CapacityPool{ + // ... +} + + +if err := client.PoolsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CapacityPoolsClient.PoolsDelete` + +```go +ctx := context.TODO() +id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") + +if err := client.PoolsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CapacityPoolsClient.PoolsGet` + +```go +ctx := context.TODO() +id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") + +read, err := client.PoolsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CapacityPoolsClient.PoolsList` + +```go +ctx := context.TODO() +id := capacitypools.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +// alternatively `client.PoolsList(ctx, id)` can be used to do batched pagination +items, err := client.PoolsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CapacityPoolsClient.PoolsUpdate` + +```go +ctx := context.TODO() +id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") + +payload := capacitypools.CapacityPoolPatch{ + // ... +} + + +if err := client.PoolsUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_capacitypool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/id_capacitypool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_capacitypool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/id_capacitypool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/id_netappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_netappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/id_netappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolsupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/method_poolsupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/model_capacitypool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/model_capacitypool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/model_capacitypool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/model_capacitypool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/model_capacitypoolpatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/model_capacitypoolpatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/model_capacitypoolpatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/model_capacitypoolpatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/model_poolpatchproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/model_poolpatchproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/model_poolpatchproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/model_poolpatchproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/model_poolproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/model_poolproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/model_poolproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/model_poolproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/version.go new file mode 100644 index 000000000000..9dc11f4a92cb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools/version.go @@ -0,0 +1,10 @@ +package capacitypools + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/capacitypools/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/README.md new file mode 100644 index 000000000000..00896a21f6e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/README.md @@ -0,0 +1,129 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts` Documentation + +The `netappaccounts` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts" +``` + + +### Client Initialization + +```go +client := netappaccounts.NewNetAppAccountsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetAppAccountsClient.AccountsCreateOrUpdate` + +```go +ctx := context.TODO() +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +payload := netappaccounts.NetAppAccount{ + // ... +} + + +if err := client.AccountsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetAppAccountsClient.AccountsDelete` + +```go +ctx := context.TODO() +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetAppAccountsClient.AccountsGet` + +```go +ctx := context.TODO() +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +read, err := client.AccountsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetAppAccountsClient.AccountsList` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.AccountsList(ctx, id)` can be used to do batched pagination +items, err := client.AccountsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetAppAccountsClient.AccountsListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.AccountsListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.AccountsListBySubscriptionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetAppAccountsClient.AccountsRenewCredentials` + +```go +ctx := context.TODO() +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +if err := client.AccountsRenewCredentialsThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetAppAccountsClient.AccountsUpdate` + +```go +ctx := context.TODO() +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +payload := netappaccounts.NetAppAccountPatch{ + // ... +} + + +if err := client.AccountsUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/id_netappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/id_netappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/id_netappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslistbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountslistbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountslistbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountslistbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsrenewcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountsrenewcredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsrenewcredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountsrenewcredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountsupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/method_accountsupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_accountencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_accountencryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_accountencryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_accountencryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_accountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_accountproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_accountproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_accountproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_activedirectory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_activedirectory.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_activedirectory.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_activedirectory.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_encryptionidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_encryptionidentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_encryptionidentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_encryptionidentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_keyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_keyvaultproperties.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_keyvaultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_keyvaultproperties.go index ac5d8c6afa48..f4722a948a2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_keyvaultproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_keyvaultproperties.go @@ -6,7 +6,7 @@ package netappaccounts type KeyVaultProperties struct { KeyName string `json:"keyName"` KeyVaultId *string `json:"keyVaultId,omitempty"` - KeyVaultResourceId string `json:"keyVaultResourceId"` + KeyVaultResourceId *string `json:"keyVaultResourceId,omitempty"` KeyVaultUri string `json:"keyVaultUri"` Status *KeyVaultStatus `json:"status,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_ldapsearchscopeopt.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_ldapsearchscopeopt.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_ldapsearchscopeopt.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_ldapsearchscopeopt.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_netappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_netappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_netappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_netappaccountpatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_netappaccountpatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/model_netappaccountpatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/model_netappaccountpatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/version.go new file mode 100644 index 000000000000..ec5f35de42de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts/version.go @@ -0,0 +1,10 @@ +package netappaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/netappaccounts/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/README.md new file mode 100644 index 000000000000..e3b1ebd141a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/README.md @@ -0,0 +1,102 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy` Documentation + +The `snapshotpolicy` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy" +``` + + +### Client Initialization + +```go +client := snapshotpolicy.NewSnapshotPolicyClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesCreate` + +```go +ctx := context.TODO() +id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "snapshotPolicyName") + +payload := snapshotpolicy.SnapshotPolicy{ + // ... +} + + +read, err := client.SnapshotPoliciesCreate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesDelete` + +```go +ctx := context.TODO() +id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "snapshotPolicyName") + +if err := client.SnapshotPoliciesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesGet` + +```go +ctx := context.TODO() +id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "snapshotPolicyName") + +read, err := client.SnapshotPoliciesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesList` + +```go +ctx := context.TODO() +id := snapshotpolicy.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +read, err := client.SnapshotPoliciesList(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SnapshotPolicyClient.SnapshotPoliciesUpdate` + +```go +ctx := context.TODO() +id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "snapshotPolicyName") + +payload := snapshotpolicy.SnapshotPolicyPatch{ + // ... +} + + +if err := client.SnapshotPoliciesUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/id_netappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_netappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/id_netappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_snapshotpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/id_snapshotpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_snapshotpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/id_snapshotpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciescreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpoliciescreate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciescreate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpoliciescreate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpoliciesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpoliciesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpoliciesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpoliciesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpolicieslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpolicieslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpolicieslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpolicieslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpoliciesupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/method_snapshotpoliciesupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_dailyschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_dailyschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_dailyschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_dailyschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_hourlyschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_hourlyschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_hourlyschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_hourlyschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_monthlyschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_monthlyschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_monthlyschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_monthlyschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_snapshotpolicieslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_snapshotpolicieslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_snapshotpolicieslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_snapshotpolicieslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_snapshotpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_snapshotpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_snapshotpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_snapshotpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_snapshotpolicypatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_snapshotpolicypatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_snapshotpolicypatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_snapshotpolicypatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_snapshotpolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_snapshotpolicyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_snapshotpolicyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_snapshotpolicyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_weeklyschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_weeklyschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/model_weeklyschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/model_weeklyschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/version.go new file mode 100644 index 000000000000..b0ad9aef745d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy/version.go @@ -0,0 +1,10 @@ +package snapshotpolicy + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/snapshotpolicy/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/README.md new file mode 100644 index 000000000000..528d345277b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/README.md @@ -0,0 +1,111 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots` Documentation + +The `snapshots` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots" +``` + + +### Client Initialization + +```go +client := snapshots.NewSnapshotsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SnapshotsClient.Create` + +```go +ctx := context.TODO() +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") + +payload := snapshots.Snapshot{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `SnapshotsClient.Delete` + +```go +ctx := context.TODO() +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `SnapshotsClient.Get` + +```go +ctx := context.TODO() +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SnapshotsClient.List` + +```go +ctx := context.TODO() +id := snapshots.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SnapshotsClient.RestoreFiles` + +```go +ctx := context.TODO() +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") + +payload := snapshots.SnapshotRestoreFiles{ + // ... +} + + +if err := client.RestoreFilesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `SnapshotsClient.Update` + +```go +ctx := context.TODO() +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "snapshotName") +var payload interface{} + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/id_snapshot.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_snapshot.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/id_snapshot.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/id_volume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/id_volume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_restorefiles.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_restorefiles.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_restorefiles.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_restorefiles.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/model_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/model_snapshot.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/model_snapshot.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/model_snapshot.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/model_snapshotproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/model_snapshotproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/model_snapshotproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/model_snapshotproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/model_snapshotrestorefiles.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/model_snapshotrestorefiles.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/model_snapshotrestorefiles.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/model_snapshotrestorefiles.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/model_snapshotslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/model_snapshotslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/model_snapshotslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/model_snapshotslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/version.go new file mode 100644 index 000000000000..8dd79283032d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots/version.go @@ -0,0 +1,10 @@ +package snapshots + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/snapshots/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/README.md new file mode 100644 index 000000000000..4dceebb836e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/README.md @@ -0,0 +1,81 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups` Documentation + +The `volumegroups` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups" +``` + + +### Client Initialization + +```go +client := volumegroups.NewVolumeGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VolumeGroupsClient.Create` + +```go +ctx := context.TODO() +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "volumeGroupName") + +payload := volumegroups.VolumeGroupDetails{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumeGroupsClient.Delete` + +```go +ctx := context.TODO() +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "volumeGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumeGroupsClient.Get` + +```go +ctx := context.TODO() +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "volumeGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VolumeGroupsClient.ListByNetAppAccount` + +```go +ctx := context.TODO() +id := volumegroups.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName") + +read, err := client.ListByNetAppAccount(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/id_netappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_netappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/id_netappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_volumegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/id_volumegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_volumegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/id_volumegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_listbynetappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/method_listbynetappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_listbynetappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/method_listbynetappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_exportpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_exportpolicyrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_exportpolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_exportpolicyrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_mounttargetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_mounttargetproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_mounttargetproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_mounttargetproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_placementkeyvaluepairs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_placementkeyvaluepairs.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_placementkeyvaluepairs.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_placementkeyvaluepairs.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_replicationobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_replicationobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_replicationobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_replicationobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumebackupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumebackupproperties.go new file mode 100644 index 000000000000..39ce5a2b79ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumebackupproperties.go @@ -0,0 +1,10 @@ +package volumegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VolumeBackupProperties struct { + BackupPolicyId *string `json:"backupPolicyId,omitempty"` + BackupVaultId *string `json:"backupVaultId,omitempty"` + PolicyEnforced *bool `json:"policyEnforced,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegrouplist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegrouplist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegrouplist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegrouplist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegrouplistproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegrouplistproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegrouplistproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegrouplistproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupmetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupmetadata.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupmetadata.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupmetadata.go index 30441c6826d5..b9fa343690c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupmetadata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupmetadata.go @@ -6,7 +6,6 @@ package volumegroups type VolumeGroupMetaData struct { ApplicationIdentifier *string `json:"applicationIdentifier,omitempty"` ApplicationType *ApplicationType `json:"applicationType,omitempty"` - DeploymentSpecId *string `json:"deploymentSpecId,omitempty"` GlobalPlacementRules *[]PlacementKeyValuePairs `json:"globalPlacementRules,omitempty"` GroupDescription *string `json:"groupDescription,omitempty"` VolumesCount *int64 `json:"volumesCount,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupvolumeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupvolumeproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumegroupvolumeproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumegroupvolumeproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumeproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumeproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumeproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumepropertiesdataprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumepropertiesdataprotection.go new file mode 100644 index 000000000000..632e45e64b06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumepropertiesdataprotection.go @@ -0,0 +1,11 @@ +package volumegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VolumePropertiesDataProtection struct { + Backup *VolumeBackupProperties `json:"backup,omitempty"` + Replication *ReplicationObject `json:"replication,omitempty"` + Snapshot *VolumeSnapshotProperties `json:"snapshot,omitempty"` + VolumeRelocation *VolumeRelocationProperties `json:"volumeRelocation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumepropertiesexportpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumepropertiesexportpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumepropertiesexportpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumepropertiesexportpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumerelocationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumerelocationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumerelocationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumerelocationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumesnapshotproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumesnapshotproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/model_volumesnapshotproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/model_volumesnapshotproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/version.go new file mode 100644 index 000000000000..7267a3b94128 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups/version.go @@ -0,0 +1,10 @@ +package volumegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/volumegroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/README.md new file mode 100644 index 000000000000..7f2b7139307a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/README.md @@ -0,0 +1,98 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules` Documentation + +The `volumequotarules` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules" +``` + + +### Client Initialization + +```go +client := volumequotarules.NewVolumeQuotaRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VolumeQuotaRulesClient.Create` + +```go +ctx := context.TODO() +id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "volumeQuotaRuleName") + +payload := volumequotarules.VolumeQuotaRule{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumeQuotaRulesClient.Delete` + +```go +ctx := context.TODO() +id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "volumeQuotaRuleName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumeQuotaRulesClient.Get` + +```go +ctx := context.TODO() +id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "volumeQuotaRuleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VolumeQuotaRulesClient.ListByVolume` + +```go +ctx := context.TODO() +id := volumequotarules.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +read, err := client.ListByVolume(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VolumeQuotaRulesClient.Update` + +```go +ctx := context.TODO() +id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName", "volumeQuotaRuleName") + +payload := volumequotarules.VolumeQuotaRulePatch{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/id_volume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/id_volume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volumequotarule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/id_volumequotarule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volumequotarule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/id_volumequotarule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_listbyvolume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_listbyvolume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_listbyvolume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_listbyvolume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/model_volumequotarule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/model_volumequotarule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/model_volumequotarule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/model_volumequotarule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/model_volumequotarulepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/model_volumequotarulepatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/model_volumequotarulepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/model_volumequotarulepatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/model_volumequotaruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/model_volumequotaruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/model_volumequotaruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/model_volumequotaruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/model_volumequotarulesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/model_volumequotarulesproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/model_volumequotarulesproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/model_volumequotarulesproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/version.go new file mode 100644 index 000000000000..078a65c7f3d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules/version.go @@ -0,0 +1,10 @@ +package volumequotarules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/volumequotarules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/README.md new file mode 100644 index 000000000000..6112def45159 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/README.md @@ -0,0 +1,111 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes` Documentation + +The `volumes` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes" +``` + + +### Client Initialization + +```go +client := volumes.NewVolumesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VolumesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +payload := volumes.Volume{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumesClient.Delete` + +```go +ctx := context.TODO() +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +if err := client.DeleteThenPoll(ctx, id, volumes.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumesClient.Get` + +```go +ctx := context.TODO() +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VolumesClient.List` + +```go +ctx := context.TODO() +id := volumes.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VolumesClient.PopulateAvailabilityZone` + +```go +ctx := context.TODO() +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +if err := client.PopulateAvailabilityZoneThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumesClient.Update` + +```go +ctx := context.TODO() +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +payload := volumes.VolumePatch{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_capacitypool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/id_capacitypool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_capacitypool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/id_capacitypool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/id_volume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/id_volume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_populateavailabilityzone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_populateavailabilityzone.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_populateavailabilityzone.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_populateavailabilityzone.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_exportpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_exportpolicyrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_exportpolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_exportpolicyrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_mounttargetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_mounttargetproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_mounttargetproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_mounttargetproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_placementkeyvaluepairs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_placementkeyvaluepairs.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_placementkeyvaluepairs.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_placementkeyvaluepairs.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_replicationobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_replicationobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_replicationobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_replicationobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumebackupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumebackupproperties.go new file mode 100644 index 000000000000..a74e6fd4d162 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumebackupproperties.go @@ -0,0 +1,10 @@ +package volumes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VolumeBackupProperties struct { + BackupPolicyId *string `json:"backupPolicyId,omitempty"` + BackupVaultId *string `json:"backupVaultId,omitempty"` + PolicyEnforced *bool `json:"policyEnforced,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatchproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatchproperties.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatchproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatchproperties.go index f2257b566714..716cd8f9697e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatchproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatchproperties.go @@ -12,6 +12,7 @@ type VolumePatchProperties struct { DefaultUserQuotaInKiBs *int64 `json:"defaultUserQuotaInKiBs,omitempty"` ExportPolicy *VolumePatchPropertiesExportPolicy `json:"exportPolicy,omitempty"` IsDefaultQuotaEnabled *bool `json:"isDefaultQuotaEnabled,omitempty"` + ProtocolTypes *[]string `json:"protocolTypes,omitempty"` ServiceLevel *ServiceLevel `json:"serviceLevel,omitempty"` SmbAccessBasedEnumeration *SmbAccessBasedEnumeration `json:"smbAccessBasedEnumeration,omitempty"` SmbNonBrowsable *SmbNonBrowsable `json:"smbNonBrowsable,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatchpropertiesdataprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatchpropertiesdataprotection.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatchpropertiesdataprotection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatchpropertiesdataprotection.go index 6b54432bc61b..8c9edc10ff72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatchpropertiesdataprotection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatchpropertiesdataprotection.go @@ -4,5 +4,6 @@ package volumes // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VolumePatchPropertiesDataProtection struct { + Backup *VolumeBackupProperties `json:"backup,omitempty"` Snapshot *VolumeSnapshotProperties `json:"snapshot,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatchpropertiesexportpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatchpropertiesexportpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepatchpropertiesexportpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepatchpropertiesexportpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumeproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumeproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumeproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepropertiesdataprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepropertiesdataprotection.go new file mode 100644 index 000000000000..fcf952952d20 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepropertiesdataprotection.go @@ -0,0 +1,11 @@ +package volumes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VolumePropertiesDataProtection struct { + Backup *VolumeBackupProperties `json:"backup,omitempty"` + Replication *ReplicationObject `json:"replication,omitempty"` + Snapshot *VolumeSnapshotProperties `json:"snapshot,omitempty"` + VolumeRelocation *VolumeRelocationProperties `json:"volumeRelocation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepropertiesexportpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepropertiesexportpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumepropertiesexportpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumepropertiesexportpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumerelocationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumerelocationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumerelocationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumerelocationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumesnapshotproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumesnapshotproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/model_volumesnapshotproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/model_volumesnapshotproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/version.go new file mode 100644 index 000000000000..76b4004cf743 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes/version.go @@ -0,0 +1,10 @@ +package volumes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/volumes/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/README.md new file mode 100644 index 000000000000..29bdb10cf010 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/README.md @@ -0,0 +1,139 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication` Documentation + +The `volumesreplication` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication" +``` + + +### Client Initialization + +```go +client := volumesreplication.NewVolumesReplicationClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VolumesReplicationClient.VolumesAuthorizeReplication` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +payload := volumesreplication.AuthorizeRequest{ + // ... +} + + +if err := client.VolumesAuthorizeReplicationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumesReplicationClient.VolumesBreakReplication` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +payload := volumesreplication.BreakReplicationRequest{ + // ... +} + + +if err := client.VolumesBreakReplicationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumesReplicationClient.VolumesDeleteReplication` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +if err := client.VolumesDeleteReplicationThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumesReplicationClient.VolumesListReplications` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +read, err := client.VolumesListReplications(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VolumesReplicationClient.VolumesReInitializeReplication` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +if err := client.VolumesReInitializeReplicationThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumesReplicationClient.VolumesReestablishReplication` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +payload := volumesreplication.ReestablishReplicationRequest{ + // ... +} + + +if err := client.VolumesReestablishReplicationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VolumesReplicationClient.VolumesReplicationStatus` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +read, err := client.VolumesReplicationStatus(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VolumesReplicationClient.VolumesResyncReplication` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountName", "capacityPoolName", "volumeName") + +if err := client.VolumesResyncReplicationThenPoll(ctx, id); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/id_volume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/id_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/id_volume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesauthorizereplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesauthorizereplication.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesauthorizereplication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesauthorizereplication.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesbreakreplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesbreakreplication.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesbreakreplication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesbreakreplication.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesdeletereplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesdeletereplication.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesdeletereplication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesdeletereplication.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumeslistreplications.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumeslistreplications.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumeslistreplications.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumeslistreplications.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreestablishreplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesreestablishreplication.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreestablishreplication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesreestablishreplication.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreinitializereplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesreinitializereplication.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreinitializereplication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesreinitializereplication.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreplicationstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesreplicationstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreplicationstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesreplicationstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesresyncreplication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesresyncreplication.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesresyncreplication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/method_volumesresyncreplication.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_authorizerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_authorizerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_authorizerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_authorizerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_breakreplicationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_breakreplicationrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_breakreplicationrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_breakreplicationrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_listreplications.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_listreplications.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_listreplications.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_listreplications.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_reestablishreplicationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_reestablishreplicationrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_reestablishreplicationrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_reestablishreplicationrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_replication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_replication.go similarity index 87% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_replication.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_replication.go index 06e345fdb5e6..ff1273507a2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_replication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_replication.go @@ -7,5 +7,6 @@ type Replication struct { EndpointType *EndpointType `json:"endpointType,omitempty"` RemoteVolumeRegion *string `json:"remoteVolumeRegion,omitempty"` RemoteVolumeResourceId string `json:"remoteVolumeResourceId"` + ReplicationId *string `json:"replicationId,omitempty"` ReplicationSchedule *ReplicationSchedule `json:"replicationSchedule,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_replicationstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_replicationstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/model_replicationstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/model_replicationstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/version.go new file mode 100644 index 000000000000..2ce59d52eb4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication/version.go @@ -0,0 +1,10 @@ +package volumesreplication + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/volumesreplication/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md deleted file mode 100644 index 347f56250856..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections` Documentation - -The `adminrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections" -``` - - -### Client Initialization - -```go -client := adminrulecollections.NewAdminRuleCollectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AdminRuleCollectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") - -payload := adminrulecollections.AdminRuleCollection{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AdminRuleCollectionsClient.Delete` - -```go -ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") - -if err := client.DeleteThenPoll(ctx, id, adminrulecollections.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `AdminRuleCollectionsClient.Get` - -```go -ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AdminRuleCollectionsClient.List` - -```go -ctx := context.TODO() -id := adminrulecollections.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") - -// alternatively `client.List(ctx, id, adminrulecollections.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, adminrulecollections.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go deleted file mode 100644 index a7cd76bd8fcf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go +++ /dev/null @@ -1,148 +0,0 @@ -package adminrulecollections - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RuleCollectionId{}) -} - -var _ resourceids.ResourceId = &RuleCollectionId{} - -// RuleCollectionId is a struct representing the Resource ID for a Rule Collection -type RuleCollectionId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - SecurityAdminConfigurationName string - RuleCollectionName string -} - -// NewRuleCollectionID returns a new RuleCollectionId struct -func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string) RuleCollectionId { - return RuleCollectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - SecurityAdminConfigurationName: securityAdminConfigurationName, - RuleCollectionName: ruleCollectionName, - } -} - -// ParseRuleCollectionID parses 'input' into a RuleCollectionId -func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId -// note: this method should only be used for API response data and not user input -func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) - } - - if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) - } - - return nil -} - -// ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID -func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRuleCollectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Rule Collection ID -func (id RuleCollectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID -func (id RuleCollectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), - resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), - resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), - } -} - -// String returns a human-readable description of this Rule Collection ID -func (id RuleCollectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), - fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), - } - return fmt.Sprintf("Rule Collection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go deleted file mode 100644 index 00810feb46ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go +++ /dev/null @@ -1,58 +0,0 @@ -package adminrulecollections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AdminRuleCollection -} - -// CreateOrUpdate ... -func (c AdminRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id RuleCollectionId, input AdminRuleCollection) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model AdminRuleCollection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go deleted file mode 100644 index 68d0021749bb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go +++ /dev/null @@ -1,100 +0,0 @@ -package adminrulecollections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - Force *bool -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Force != nil { - out.Append("force", fmt.Sprintf("%v", *o.Force)) - } - return &out -} - -// Delete ... -func (c AdminRuleCollectionsClient) Delete(ctx context.Context, id RuleCollectionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c AdminRuleCollectionsClient) DeleteThenPoll(ctx context.Context, id RuleCollectionId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go deleted file mode 100644 index 1aec0f98a6ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go +++ /dev/null @@ -1,53 +0,0 @@ -package adminrulecollections - -import ( - "context" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *AdminRuleCollection -} - -// Get ... -func (c AdminRuleCollectionsClient) Get(ctx context.Context, id RuleCollectionId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var model AdminRuleCollection - result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { - return - } - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go deleted file mode 100644 index fc30bf71af1e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package adminrulecollections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/adminrulecollections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md deleted file mode 100644 index 74a2336bded9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules` Documentation - -The `adminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules" -``` - - -### Client Initialization - -```go -client := adminrules.NewAdminRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AdminRulesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") - -payload := adminrules.BaseAdminRule{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AdminRulesClient.Delete` - -```go -ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") - -if err := client.DeleteThenPoll(ctx, id, adminrules.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `AdminRulesClient.Get` - -```go -ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AdminRulesClient.List` - -```go -ctx := context.TODO() -id := adminrules.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go deleted file mode 100644 index 4f7c635ec89c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go +++ /dev/null @@ -1,148 +0,0 @@ -package adminrules - -import ( - "fmt" - "strings" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" - "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -func init() { - recaser.RegisterResourceId(&RuleCollectionId{}) -} - -var _ resourceids.ResourceId = &RuleCollectionId{} - -// RuleCollectionId is a struct representing the Resource ID for a Rule Collection -type RuleCollectionId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - SecurityAdminConfigurationName string - RuleCollectionName string -} - -// NewRuleCollectionID returns a new RuleCollectionId struct -func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string) RuleCollectionId { - return RuleCollectionId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - SecurityAdminConfigurationName: securityAdminConfigurationName, - RuleCollectionName: ruleCollectionName, - } -} - -// ParseRuleCollectionID parses 'input' into a RuleCollectionId -func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) - parsed, err := parser.Parse(input, false) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -// ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId -// note: this method should only be used for API response data and not user input -func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) { - parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) - parsed, err := parser.Parse(input, true) - if err != nil { - return nil, fmt.Errorf("parsing %q: %+v", input, err) - } - - id := RuleCollectionId{} - if err = id.FromParseResult(*parsed); err != nil { - return nil, err - } - - return &id, nil -} - -func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error { - var ok bool - - if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) - } - - if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) - } - - if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) - } - - if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) - } - - if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) - } - - return nil -} - -// ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID -func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { - v, ok := input.(string) - if !ok { - errors = append(errors, fmt.Errorf("expected %q to be a string", key)) - return - } - - if _, err := ParseRuleCollectionID(v); err != nil { - errors = append(errors, err) - } - - return -} - -// ID returns the formatted Rule Collection ID -func (id RuleCollectionId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName) -} - -// Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID -func (id RuleCollectionId) Segments() []resourceids.Segment { - return []resourceids.Segment{ - resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), - resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), - resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), - resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), - resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), - resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), - resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), - } -} - -// String returns a human-readable description of this Rule Collection ID -func (id RuleCollectionId) String() string { - components := []string{ - fmt.Sprintf("Subscription: %q", id.SubscriptionId), - fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), - fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), - fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), - } - return fmt.Sprintf("Rule Collection (%s)", strings.Join(components, "\n")) -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go deleted file mode 100644 index 250f646ce081..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go +++ /dev/null @@ -1,63 +0,0 @@ -package adminrules - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type CreateOrUpdateOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model BaseAdminRule -} - -// CreateOrUpdate ... -func (c AdminRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input BaseAdminRule) (result CreateOrUpdateOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusCreated, - http.StatusOK, - }, - HttpMethod: http.MethodPut, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - if err = req.Marshal(input); err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var respObj json.RawMessage - if err = resp.Unmarshal(&respObj); err != nil { - return - } - model, err := UnmarshalBaseAdminRuleImplementation(respObj) - if err != nil { - return - } - result.Model = model - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go deleted file mode 100644 index c5deb3a7b1f1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go +++ /dev/null @@ -1,100 +0,0 @@ -package adminrules - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DeleteOperationResponse struct { - Poller pollers.Poller - HttpResponse *http.Response - OData *odata.OData -} - -type DeleteOperationOptions struct { - Force *bool -} - -func DefaultDeleteOperationOptions() DeleteOperationOptions { - return DeleteOperationOptions{} -} - -func (o DeleteOperationOptions) ToHeaders() *client.Headers { - out := client.Headers{} - - return &out -} - -func (o DeleteOperationOptions) ToOData() *odata.Query { - out := odata.Query{} - - return &out -} - -func (o DeleteOperationOptions) ToQuery() *client.QueryParams { - out := client.QueryParams{} - if o.Force != nil { - out.Append("force", fmt.Sprintf("%v", *o.Force)) - } - return &out -} - -// Delete ... -func (c AdminRulesClient) Delete(ctx context.Context, id RuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusAccepted, - http.StatusNoContent, - http.StatusOK, - }, - HttpMethod: http.MethodDelete, - OptionsObject: options, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) - if err != nil { - return - } - - return -} - -// DeleteThenPoll performs Delete then polls until it's completed -func (c AdminRulesClient) DeleteThenPoll(ctx context.Context, id RuleId, options DeleteOperationOptions) error { - result, err := c.Delete(ctx, id, options) - if err != nil { - return fmt.Errorf("performing Delete: %+v", err) - } - - if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after Delete: %+v", err) - } - - return nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go deleted file mode 100644 index 52f80e411e8b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go +++ /dev/null @@ -1,58 +0,0 @@ -package adminrules - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type GetOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model BaseAdminRule -} - -// Get ... -func (c AdminRulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Path: id.ID(), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.Execute(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var respObj json.RawMessage - if err = resp.Unmarshal(&respObj); err != nil { - return - } - model, err := UnmarshalBaseAdminRuleImplementation(respObj) - if err != nil { - return - } - result.Model = model - - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go deleted file mode 100644 index 85aa73c80e35..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go +++ /dev/null @@ -1,117 +0,0 @@ -package adminrules - -import ( - "context" - "encoding/json" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]BaseAdminRule -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []BaseAdminRule -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/rules", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]json.RawMessage `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - temp := make([]BaseAdminRule, 0) - if values.Values != nil { - for i, v := range *values.Values { - val, err := UnmarshalBaseAdminRuleImplementation(v) - if err != nil { - err = fmt.Errorf("unmarshalling item %d for BaseAdminRule (%q): %+v", i, v, err) - return result, err - } - temp = append(temp, val) - } - } - result.Model = &temp - - return -} - -// ListComplete retrieves all the results into a single object -func (c AdminRulesClient) ListComplete(ctx context.Context, id RuleCollectionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, BaseAdminRuleOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c AdminRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id RuleCollectionId, predicate BaseAdminRuleOperationPredicate) (result ListCompleteResult, err error) { - items := make([]BaseAdminRule, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go deleted file mode 100644 index 1fc017e754d1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package adminrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/adminrules/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md deleted file mode 100644 index 6446e85ef614..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections` Documentation - -The `applicationgatewayprivateendpointconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections" -``` - - -### Client Initialization - -```go -client := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApplicationGatewayPrivateEndpointConnectionsClient.Delete` - -```go -ctx := context.TODO() -id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "privateEndpointConnectionName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ApplicationGatewayPrivateEndpointConnectionsClient.Get` - -```go -ctx := context.TODO() -id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "privateEndpointConnectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApplicationGatewayPrivateEndpointConnectionsClient.List` - -```go -ctx := context.TODO() -id := applicationgatewayprivateendpointconnections.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApplicationGatewayPrivateEndpointConnectionsClient.Update` - -```go -ctx := context.TODO() -id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "privateEndpointConnectionName") - -payload := applicationgatewayprivateendpointconnections.ApplicationGatewayPrivateEndpointConnection{ - // ... -} - - -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlog.go deleted file mode 100644 index b3f068af815a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package applicationgatewayprivateendpointconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go deleted file mode 100644 index 922ced2b2f18..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package applicationgatewayprivateendpointconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go deleted file mode 100644 index dc3f962814c0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package applicationgatewayprivateendpointconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go deleted file mode 100644 index fa1f92d606ac..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package applicationgatewayprivateendpointconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go deleted file mode 100644 index a24110f3eeed..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package applicationgatewayprivateendpointconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/applicationgatewayprivateendpointconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md deleted file mode 100644 index c6b7d5ed7202..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources` Documentation - -The `applicationgatewayprivatelinkresources` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources" -``` - - -### Client Initialization - -```go -client := applicationgatewayprivatelinkresources.NewApplicationGatewayPrivateLinkResourcesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApplicationGatewayPrivateLinkResourcesClient.List` - -```go -ctx := context.TODO() -id := applicationgatewayprivatelinkresources.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go deleted file mode 100644 index 869c6b2db404..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package applicationgatewayprivatelinkresources - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/applicationgatewayprivatelinkresources/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md deleted file mode 100644 index 6fdb959e2d84..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md +++ /dev/null @@ -1,53 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests` Documentation - -The `applicationgatewaywafdynamicmanifests` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests" -``` - - -### Client Initialization - -```go -client := applicationgatewaywafdynamicmanifests.NewApplicationGatewayWafDynamicManifestsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApplicationGatewayWafDynamicManifestsClient.DefaultGet` - -```go -ctx := context.TODO() -id := applicationgatewaywafdynamicmanifests.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -read, err := client.DefaultGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApplicationGatewayWafDynamicManifestsClient.Get` - -```go -ctx := context.TODO() -id := applicationgatewaywafdynamicmanifests.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.Get(ctx, id)` can be used to do batched pagination -items, err := client.GetComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/constants.go deleted file mode 100644 index 0d7db7ea47d6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/constants.go +++ /dev/null @@ -1,195 +0,0 @@ -package applicationgatewaywafdynamicmanifests - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayRuleSetStatusOptions string - -const ( - ApplicationGatewayRuleSetStatusOptionsDeprecated ApplicationGatewayRuleSetStatusOptions = "Deprecated" - ApplicationGatewayRuleSetStatusOptionsGA ApplicationGatewayRuleSetStatusOptions = "GA" - ApplicationGatewayRuleSetStatusOptionsPreview ApplicationGatewayRuleSetStatusOptions = "Preview" - ApplicationGatewayRuleSetStatusOptionsSupported ApplicationGatewayRuleSetStatusOptions = "Supported" -) - -func PossibleValuesForApplicationGatewayRuleSetStatusOptions() []string { - return []string{ - string(ApplicationGatewayRuleSetStatusOptionsDeprecated), - string(ApplicationGatewayRuleSetStatusOptionsGA), - string(ApplicationGatewayRuleSetStatusOptionsPreview), - string(ApplicationGatewayRuleSetStatusOptionsSupported), - } -} - -func (s *ApplicationGatewayRuleSetStatusOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseApplicationGatewayRuleSetStatusOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseApplicationGatewayRuleSetStatusOptions(input string) (*ApplicationGatewayRuleSetStatusOptions, error) { - vals := map[string]ApplicationGatewayRuleSetStatusOptions{ - "deprecated": ApplicationGatewayRuleSetStatusOptionsDeprecated, - "ga": ApplicationGatewayRuleSetStatusOptionsGA, - "preview": ApplicationGatewayRuleSetStatusOptionsPreview, - "supported": ApplicationGatewayRuleSetStatusOptionsSupported, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ApplicationGatewayRuleSetStatusOptions(input) - return &out, nil -} - -type ApplicationGatewayTierTypes string - -const ( - ApplicationGatewayTierTypesStandard ApplicationGatewayTierTypes = "Standard" - ApplicationGatewayTierTypesStandardVTwo ApplicationGatewayTierTypes = "Standard_v2" - ApplicationGatewayTierTypesWAF ApplicationGatewayTierTypes = "WAF" - ApplicationGatewayTierTypesWAFVTwo ApplicationGatewayTierTypes = "WAF_v2" -) - -func PossibleValuesForApplicationGatewayTierTypes() []string { - return []string{ - string(ApplicationGatewayTierTypesStandard), - string(ApplicationGatewayTierTypesStandardVTwo), - string(ApplicationGatewayTierTypesWAF), - string(ApplicationGatewayTierTypesWAFVTwo), - } -} - -func (s *ApplicationGatewayTierTypes) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseApplicationGatewayTierTypes(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseApplicationGatewayTierTypes(input string) (*ApplicationGatewayTierTypes, error) { - vals := map[string]ApplicationGatewayTierTypes{ - "standard": ApplicationGatewayTierTypesStandard, - "standard_v2": ApplicationGatewayTierTypesStandardVTwo, - "waf": ApplicationGatewayTierTypesWAF, - "waf_v2": ApplicationGatewayTierTypesWAFVTwo, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ApplicationGatewayTierTypes(input) - return &out, nil -} - -type ApplicationGatewayWafRuleActionTypes string - -const ( - ApplicationGatewayWafRuleActionTypesAllow ApplicationGatewayWafRuleActionTypes = "Allow" - ApplicationGatewayWafRuleActionTypesAnomalyScoring ApplicationGatewayWafRuleActionTypes = "AnomalyScoring" - ApplicationGatewayWafRuleActionTypesBlock ApplicationGatewayWafRuleActionTypes = "Block" - ApplicationGatewayWafRuleActionTypesLog ApplicationGatewayWafRuleActionTypes = "Log" - ApplicationGatewayWafRuleActionTypesNone ApplicationGatewayWafRuleActionTypes = "None" -) - -func PossibleValuesForApplicationGatewayWafRuleActionTypes() []string { - return []string{ - string(ApplicationGatewayWafRuleActionTypesAllow), - string(ApplicationGatewayWafRuleActionTypesAnomalyScoring), - string(ApplicationGatewayWafRuleActionTypesBlock), - string(ApplicationGatewayWafRuleActionTypesLog), - string(ApplicationGatewayWafRuleActionTypesNone), - } -} - -func (s *ApplicationGatewayWafRuleActionTypes) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseApplicationGatewayWafRuleActionTypes(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseApplicationGatewayWafRuleActionTypes(input string) (*ApplicationGatewayWafRuleActionTypes, error) { - vals := map[string]ApplicationGatewayWafRuleActionTypes{ - "allow": ApplicationGatewayWafRuleActionTypesAllow, - "anomalyscoring": ApplicationGatewayWafRuleActionTypesAnomalyScoring, - "block": ApplicationGatewayWafRuleActionTypesBlock, - "log": ApplicationGatewayWafRuleActionTypesLog, - "none": ApplicationGatewayWafRuleActionTypesNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ApplicationGatewayWafRuleActionTypes(input) - return &out, nil -} - -type ApplicationGatewayWafRuleStateTypes string - -const ( - ApplicationGatewayWafRuleStateTypesDisabled ApplicationGatewayWafRuleStateTypes = "Disabled" - ApplicationGatewayWafRuleStateTypesEnabled ApplicationGatewayWafRuleStateTypes = "Enabled" -) - -func PossibleValuesForApplicationGatewayWafRuleStateTypes() []string { - return []string{ - string(ApplicationGatewayWafRuleStateTypesDisabled), - string(ApplicationGatewayWafRuleStateTypesEnabled), - } -} - -func (s *ApplicationGatewayWafRuleStateTypes) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseApplicationGatewayWafRuleStateTypes(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseApplicationGatewayWafRuleStateTypes(input string) (*ApplicationGatewayWafRuleStateTypes, error) { - vals := map[string]ApplicationGatewayWafRuleStateTypes{ - "disabled": ApplicationGatewayWafRuleStateTypesDisabled, - "enabled": ApplicationGatewayWafRuleStateTypesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ApplicationGatewayWafRuleStateTypes(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go deleted file mode 100644 index 723193ddc360..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go +++ /dev/null @@ -1,12 +0,0 @@ -package applicationgatewaywafdynamicmanifests - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ApplicationGatewayFirewallRule struct { - Action *ApplicationGatewayWafRuleActionTypes `json:"action,omitempty"` - Description *string `json:"description,omitempty"` - RuleId int64 `json:"ruleId"` - RuleIdString *string `json:"ruleIdString,omitempty"` - State *ApplicationGatewayWafRuleStateTypes `json:"state,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go deleted file mode 100644 index 888716ce6f2c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package applicationgatewaywafdynamicmanifests - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/applicationgatewaywafdynamicmanifests/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md deleted file mode 100644 index 194318439e2b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups` Documentation - -The `applicationsecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" -``` - - -### Client Initialization - -```go -client := applicationsecuritygroups.NewApplicationSecurityGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") - -payload := applicationsecuritygroups.ApplicationSecurityGroup{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.Delete` - -```go -ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.Get` - -```go -ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ApplicationSecurityGroupsClient.UpdateTags` - -```go -ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") - -payload := applicationsecuritygroups.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go deleted file mode 100644 index ce3e93ca31c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package applicationsecuritygroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/applicationsecuritygroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md deleted file mode 100644 index f5e22d4c56ea..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations` Documentation - -The `availabledelegations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations" -``` - - -### Client Initialization - -```go -client := availabledelegations.NewAvailableDelegationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AvailableDelegationsClient.AvailableDelegationsList` - -```go -ctx := context.TODO() -id := availabledelegations.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.AvailableDelegationsList(ctx, id)` can be used to do batched pagination -items, err := client.AvailableDelegationsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AvailableDelegationsClient.AvailableResourceGroupDelegationsList` - -```go -ctx := context.TODO() -id := availabledelegations.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") - -// alternatively `client.AvailableResourceGroupDelegationsList(ctx, id)` can be used to do batched pagination -items, err := client.AvailableResourceGroupDelegationsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go deleted file mode 100644 index d0e5dfca13d1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package availabledelegations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/availabledelegations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md deleted file mode 100644 index 6608e57b9fad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases` Documentation - -The `availableservicealiases` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases" -``` - - -### Client Initialization - -```go -client := availableservicealiases.NewAvailableServiceAliasesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AvailableServiceAliasesClient.List` - -```go -ctx := context.TODO() -id := availableservicealiases.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AvailableServiceAliasesClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := availableservicealiases.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go deleted file mode 100644 index 4ee314520ba2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package availableservicealiases - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/availableservicealiases/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md deleted file mode 100644 index 171197e2921d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md +++ /dev/null @@ -1,146 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls` Documentation - -The `azurefirewalls` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" -``` - - -### Client Initialization - -```go -client := azurefirewalls.NewAzureFirewallsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `AzureFirewallsClient.AzureFirewallsListLearnedPrefixes` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -if err := client.AzureFirewallsListLearnedPrefixesThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureFirewallsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -payload := azurefirewalls.AzureFirewall{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureFirewallsClient.Delete` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureFirewallsClient.Get` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `AzureFirewallsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AzureFirewallsClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `AzureFirewallsClient.PacketCapture` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -payload := azurefirewalls.FirewallPacketCaptureParameters{ - // ... -} - - -if err := client.PacketCaptureThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `AzureFirewallsClient.UpdateTags` - -```go -ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") - -payload := azurefirewalls.TagsObject{ - // ... -} - - -if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparameters.go deleted file mode 100644 index 258aca5b011b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparameters.go +++ /dev/null @@ -1,9 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPacketCaptureParameters struct { - Id *string `json:"id,omitempty"` - Properties *FirewallPacketCaptureParametersFormat `json:"properties,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparametersformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparametersformat.go deleted file mode 100644 index a664e348c2a7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_firewallpacketcaptureparametersformat.go +++ /dev/null @@ -1,14 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FirewallPacketCaptureParametersFormat struct { - DurationInSeconds *int64 `json:"durationInSeconds,omitempty"` - FileName *string `json:"fileName,omitempty"` - Filters *[]AzureFirewallPacketCaptureRule `json:"filters,omitempty"` - Flags *[]AzureFirewallPacketCaptureFlags `json:"flags,omitempty"` - NumberOfPacketsToCapture *int64 `json:"numberOfPacketsToCapture,omitempty"` - Protocol *AzureFirewallNetworkRuleProtocol `json:"protocol,omitempty"` - SasURL *string `json:"sasUrl,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go deleted file mode 100644 index 50167a781bf5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package azurefirewalls - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/azurefirewalls/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md deleted file mode 100644 index 7e49393f26a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md +++ /dev/null @@ -1,234 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts` Documentation - -The `bastionhosts` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts" -``` - - -### Client Initialization - -```go -client := bastionhosts.NewBastionHostsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `BastionHostsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionhosts.BastionHost{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `BastionHostsClient.Delete` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `BastionHostsClient.DeleteBastionShareableLink` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionhosts.BastionShareableLinkListRequest{ - // ... -} - - -if err := client.DeleteBastionShareableLinkThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `BastionHostsClient.DeleteBastionShareableLinkByToken` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionhosts.BastionShareableLinkTokenListRequest{ - // ... -} - - -if err := client.DeleteBastionShareableLinkByTokenThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `BastionHostsClient.DisconnectActiveSessions` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionhosts.SessionIds{ - // ... -} - - -// alternatively `client.DisconnectActiveSessions(ctx, id, payload)` can be used to do batched pagination -items, err := client.DisconnectActiveSessionsComplete(ctx, id, payload) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BastionHostsClient.Get` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `BastionHostsClient.GetActiveSessions` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -// alternatively `client.GetActiveSessions(ctx, id)` can be used to do batched pagination -items, err := client.GetActiveSessionsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BastionHostsClient.GetBastionShareableLink` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionhosts.BastionShareableLinkListRequest{ - // ... -} - - -// alternatively `client.GetBastionShareableLink(ctx, id, payload)` can be used to do batched pagination -items, err := client.GetBastionShareableLinkComplete(ctx, id, payload) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BastionHostsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BastionHostsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BastionHostsClient.PutBastionShareableLink` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionhosts.BastionShareableLinkListRequest{ - // ... -} - - -// alternatively `client.PutBastionShareableLink(ctx, id, payload)` can be used to do batched pagination -items, err := client.PutBastionShareableLinkComplete(ctx, id, payload) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BastionHostsClient.UpdateTags` - -```go -ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionhosts.TagsObject{ - // ... -} - - -if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/constants.go deleted file mode 100644 index 0b0ffa8a83a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/constants.go +++ /dev/null @@ -1,183 +0,0 @@ -package bastionhosts - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BastionConnectProtocol string - -const ( - BastionConnectProtocolRDP BastionConnectProtocol = "RDP" - BastionConnectProtocolSSH BastionConnectProtocol = "SSH" -) - -func PossibleValuesForBastionConnectProtocol() []string { - return []string{ - string(BastionConnectProtocolRDP), - string(BastionConnectProtocolSSH), - } -} - -func (s *BastionConnectProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseBastionConnectProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseBastionConnectProtocol(input string) (*BastionConnectProtocol, error) { - vals := map[string]BastionConnectProtocol{ - "rdp": BastionConnectProtocolRDP, - "ssh": BastionConnectProtocolSSH, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := BastionConnectProtocol(input) - return &out, nil -} - -type BastionHostSkuName string - -const ( - BastionHostSkuNameBasic BastionHostSkuName = "Basic" - BastionHostSkuNameDeveloper BastionHostSkuName = "Developer" - BastionHostSkuNameStandard BastionHostSkuName = "Standard" -) - -func PossibleValuesForBastionHostSkuName() []string { - return []string{ - string(BastionHostSkuNameBasic), - string(BastionHostSkuNameDeveloper), - string(BastionHostSkuNameStandard), - } -} - -func (s *BastionHostSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseBastionHostSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseBastionHostSkuName(input string) (*BastionHostSkuName, error) { - vals := map[string]BastionHostSkuName{ - "basic": BastionHostSkuNameBasic, - "developer": BastionHostSkuNameDeveloper, - "standard": BastionHostSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := BastionHostSkuName(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformat.go deleted file mode 100644 index 32bf85022ef1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformat.go +++ /dev/null @@ -1,19 +0,0 @@ -package bastionhosts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BastionHostPropertiesFormat struct { - DisableCopyPaste *bool `json:"disableCopyPaste,omitempty"` - DnsName *string `json:"dnsName,omitempty"` - EnableFileCopy *bool `json:"enableFileCopy,omitempty"` - EnableIPConnect *bool `json:"enableIpConnect,omitempty"` - EnableKerberos *bool `json:"enableKerberos,omitempty"` - EnableShareableLink *bool `json:"enableShareableLink,omitempty"` - EnableTunneling *bool `json:"enableTunneling,omitempty"` - IPConfigurations *[]BastionHostIPConfiguration `json:"ipConfigurations,omitempty"` - NetworkAcls *BastionHostPropertiesFormatNetworkAcls `json:"networkAcls,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ScaleUnits *int64 `json:"scaleUnits,omitempty"` - VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go deleted file mode 100644 index 9ba19b0d0041..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package bastionhosts - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/bastionhosts/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md deleted file mode 100644 index 362f51616cff..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md +++ /dev/null @@ -1,98 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink` Documentation - -The `bastionshareablelink` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink" -``` - - -### Client Initialization - -```go -client := bastionshareablelink.NewBastionShareableLinkClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `BastionShareableLinkClient.DeleteBastionShareableLink` - -```go -ctx := context.TODO() -id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionshareablelink.BastionShareableLinkListRequest{ - // ... -} - - -if err := client.DeleteBastionShareableLinkThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `BastionShareableLinkClient.DeleteBastionShareableLinkByToken` - -```go -ctx := context.TODO() -id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionshareablelink.BastionShareableLinkTokenListRequest{ - // ... -} - - -if err := client.DeleteBastionShareableLinkByTokenThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `BastionShareableLinkClient.GetBastionShareableLink` - -```go -ctx := context.TODO() -id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionshareablelink.BastionShareableLinkListRequest{ - // ... -} - - -// alternatively `client.GetBastionShareableLink(ctx, id, payload)` can be used to do batched pagination -items, err := client.GetBastionShareableLinkComplete(ctx, id, payload) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `BastionShareableLinkClient.PutBastionShareableLink` - -```go -ctx := context.TODO() -id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") - -payload := bastionshareablelink.BastionShareableLinkListRequest{ - // ... -} - - -// alternatively `client.PutBastionShareableLink(ctx, id, payload)` can be used to do batched pagination -items, err := client.PutBastionShareableLinkComplete(ctx, id, payload) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go deleted file mode 100644 index 85195401518e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package bastionshareablelink - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/bastionshareablelink/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md deleted file mode 100644 index 19cf1d6b7ccb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md +++ /dev/null @@ -1,38 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities` Documentation - -The `bgpservicecommunities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities" -``` - - -### Client Initialization - -```go -client := bgpservicecommunities.NewBgpServiceCommunitiesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `BgpServiceCommunitiesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go deleted file mode 100644 index 90d5d499d605..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package bgpservicecommunities - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/bgpservicecommunities/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md deleted file mode 100644 index 2cdf19f22f6f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md +++ /dev/null @@ -1,36 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities` Documentation - -The `checkdnsavailabilities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities" -``` - - -### Client Initialization - -```go -client := checkdnsavailabilities.NewCheckDnsAvailabilitiesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CheckDnsAvailabilitiesClient.CheckDnsNameAvailability` - -```go -ctx := context.TODO() -id := checkdnsavailabilities.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -read, err := client.CheckDnsNameAvailability(ctx, id, checkdnsavailabilities.DefaultCheckDnsNameAvailabilityOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go deleted file mode 100644 index 901e04955d14..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package checkdnsavailabilities - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/checkdnsavailabilities/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/client.go deleted file mode 100644 index 75219ca65e18..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/client.go +++ /dev/null @@ -1,973 +0,0 @@ -package v2023_11_01 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -import ( - "fmt" - - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories" - "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" - sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" -) - -type Client struct { - AdminRuleCollections *adminrulecollections.AdminRuleCollectionsClient - AdminRules *adminrules.AdminRulesClient - ApplicationGatewayPrivateEndpointConnections *applicationgatewayprivateendpointconnections.ApplicationGatewayPrivateEndpointConnectionsClient - ApplicationGatewayPrivateLinkResources *applicationgatewayprivatelinkresources.ApplicationGatewayPrivateLinkResourcesClient - ApplicationGatewayWafDynamicManifests *applicationgatewaywafdynamicmanifests.ApplicationGatewayWafDynamicManifestsClient - ApplicationGateways *applicationgateways.ApplicationGatewaysClient - ApplicationSecurityGroups *applicationsecuritygroups.ApplicationSecurityGroupsClient - AvailableDelegations *availabledelegations.AvailableDelegationsClient - AvailableServiceAliases *availableservicealiases.AvailableServiceAliasesClient - AzureFirewalls *azurefirewalls.AzureFirewallsClient - BastionHosts *bastionhosts.BastionHostsClient - BastionShareableLink *bastionshareablelink.BastionShareableLinkClient - BgpServiceCommunities *bgpservicecommunities.BgpServiceCommunitiesClient - CheckDnsAvailabilities *checkdnsavailabilities.CheckDnsAvailabilitiesClient - CloudServicePublicIPAddresses *cloudservicepublicipaddresses.CloudServicePublicIPAddressesClient - ConnectionMonitors *connectionmonitors.ConnectionMonitorsClient - ConnectivityConfigurations *connectivityconfigurations.ConnectivityConfigurationsClient - CustomIPPrefixes *customipprefixes.CustomIPPrefixesClient - DdosCustomPolicies *ddoscustompolicies.DdosCustomPoliciesClient - DdosProtectionPlans *ddosprotectionplans.DdosProtectionPlansClient - DscpConfiguration *dscpconfiguration.DscpConfigurationClient - DscpConfigurations *dscpconfigurations.DscpConfigurationsClient - EndpointServices *endpointservices.EndpointServicesClient - ExpressRouteCircuitArpTable *expressroutecircuitarptable.ExpressRouteCircuitArpTableClient - ExpressRouteCircuitAuthorizations *expressroutecircuitauthorizations.ExpressRouteCircuitAuthorizationsClient - ExpressRouteCircuitConnections *expressroutecircuitconnections.ExpressRouteCircuitConnectionsClient - ExpressRouteCircuitPeerings *expressroutecircuitpeerings.ExpressRouteCircuitPeeringsClient - ExpressRouteCircuitRoutesTable *expressroutecircuitroutestable.ExpressRouteCircuitRoutesTableClient - ExpressRouteCircuitRoutesTableSummary *expressroutecircuitroutestablesummary.ExpressRouteCircuitRoutesTableSummaryClient - ExpressRouteCircuitStats *expressroutecircuitstats.ExpressRouteCircuitStatsClient - ExpressRouteCircuits *expressroutecircuits.ExpressRouteCircuitsClient - ExpressRouteConnections *expressrouteconnections.ExpressRouteConnectionsClient - ExpressRouteCrossConnectionArpTable *expressroutecrossconnectionarptable.ExpressRouteCrossConnectionArpTableClient - ExpressRouteCrossConnectionPeerings *expressroutecrossconnectionpeerings.ExpressRouteCrossConnectionPeeringsClient - ExpressRouteCrossConnectionRouteTable *expressroutecrossconnectionroutetable.ExpressRouteCrossConnectionRouteTableClient - ExpressRouteCrossConnectionRouteTableSummary *expressroutecrossconnectionroutetablesummary.ExpressRouteCrossConnectionRouteTableSummaryClient - ExpressRouteCrossConnections *expressroutecrossconnections.ExpressRouteCrossConnectionsClient - ExpressRouteGateways *expressroutegateways.ExpressRouteGatewaysClient - ExpressRouteLinks *expressroutelinks.ExpressRouteLinksClient - ExpressRoutePortAuthorizations *expressrouteportauthorizations.ExpressRoutePortAuthorizationsClient - ExpressRoutePorts *expressrouteports.ExpressRoutePortsClient - ExpressRoutePortsLocations *expressrouteportslocations.ExpressRoutePortsLocationsClient - ExpressRouteProviderPorts *expressrouteproviderports.ExpressRouteProviderPortsClient - ExpressRouteServiceProviders *expressrouteserviceproviders.ExpressRouteServiceProvidersClient - FirewallPolicies *firewallpolicies.FirewallPoliciesClient - FirewallPolicyRuleCollectionGroups *firewallpolicyrulecollectiongroups.FirewallPolicyRuleCollectionGroupsClient - FlowLogs *flowlogs.FlowLogsClient - IPAllocations *ipallocations.IPAllocationsClient - IPGroups *ipgroups.IPGroupsClient - LoadBalancers *loadbalancers.LoadBalancersClient - LocalNetworkGateways *localnetworkgateways.LocalNetworkGatewaysClient - NatGateways *natgateways.NatGatewaysClient - NetworkGroups *networkgroups.NetworkGroupsClient - NetworkInterfaces *networkinterfaces.NetworkInterfacesClient - NetworkManagerActiveConfigurations *networkmanageractiveconfigurations.NetworkManagerActiveConfigurationsClient - NetworkManagerActiveConnectivityConfigurations *networkmanageractiveconnectivityconfigurations.NetworkManagerActiveConnectivityConfigurationsClient - NetworkManagerConnections *networkmanagerconnections.NetworkManagerConnectionsClient - NetworkManagerEffectiveConnectivityConfiguration *networkmanagereffectiveconnectivityconfiguration.NetworkManagerEffectiveConnectivityConfigurationClient - NetworkManagerEffectiveSecurityAdminRules *networkmanagereffectivesecurityadminrules.NetworkManagerEffectiveSecurityAdminRulesClient - NetworkManagers *networkmanagers.NetworkManagersClient - NetworkProfiles *networkprofiles.NetworkProfilesClient - NetworkSecurityGroups *networksecuritygroups.NetworkSecurityGroupsClient - NetworkVirtualAppliances *networkvirtualappliances.NetworkVirtualAppliancesClient - NetworkWatchers *networkwatchers.NetworkWatchersClient - P2sVpnGateways *p2svpngateways.P2sVpnGatewaysClient - PacketCaptures *packetcaptures.PacketCapturesClient - PeerExpressRouteCircuitConnections *peerexpressroutecircuitconnections.PeerExpressRouteCircuitConnectionsClient - PrivateDnsZoneGroups *privatednszonegroups.PrivateDnsZoneGroupsClient - PrivateEndpoints *privateendpoints.PrivateEndpointsClient - PrivateLinkServices *privatelinkservices.PrivateLinkServicesClient - PublicIPAddresses *publicipaddresses.PublicIPAddressesClient - PublicIPPrefixes *publicipprefixes.PublicIPPrefixesClient - RouteFilterRules *routefilterrules.RouteFilterRulesClient - RouteFilters *routefilters.RouteFiltersClient - RouteTables *routetables.RouteTablesClient - Routes *routes.RoutesClient - ScopeConnections *scopeconnections.ScopeConnectionsClient - SecurityAdminConfigurations *securityadminconfigurations.SecurityAdminConfigurationsClient - SecurityPartnerProviders *securitypartnerproviders.SecurityPartnerProvidersClient - SecurityRules *securityrules.SecurityRulesClient - ServiceEndpointPolicies *serviceendpointpolicies.ServiceEndpointPoliciesClient - ServiceEndpointPolicyDefinitions *serviceendpointpolicydefinitions.ServiceEndpointPolicyDefinitionsClient - ServiceTags *servicetags.ServiceTagsClient - StaticMembers *staticmembers.StaticMembersClient - Subnets *subnets.SubnetsClient - TrafficAnalytics *trafficanalytics.TrafficAnalyticsClient - Usages *usages.UsagesClient - VMSSPublicIPAddresses *vmsspublicipaddresses.VMSSPublicIPAddressesClient - VipSwap *vipswap.VipSwapClient - VirtualApplianceSites *virtualappliancesites.VirtualApplianceSitesClient - VirtualApplianceSkus *virtualapplianceskus.VirtualApplianceSkusClient - VirtualNetworkGatewayConnections *virtualnetworkgatewayconnections.VirtualNetworkGatewayConnectionsClient - VirtualNetworkGateways *virtualnetworkgateways.VirtualNetworkGatewaysClient - VirtualNetworkPeerings *virtualnetworkpeerings.VirtualNetworkPeeringsClient - VirtualNetworkTap *virtualnetworktap.VirtualNetworkTapClient - VirtualNetworkTaps *virtualnetworktaps.VirtualNetworkTapsClient - VirtualNetworks *virtualnetworks.VirtualNetworksClient - VirtualRouterPeerings *virtualrouterpeerings.VirtualRouterPeeringsClient - VirtualRouters *virtualrouters.VirtualRoutersClient - VirtualWANs *virtualwans.VirtualWANsClient - VpnGateways *vpngateways.VpnGatewaysClient - VpnLinkConnections *vpnlinkconnections.VpnLinkConnectionsClient - VpnServerConfigurations *vpnserverconfigurations.VpnServerConfigurationsClient - VpnSites *vpnsites.VpnSitesClient - WebApplicationFirewallPolicies *webapplicationfirewallpolicies.WebApplicationFirewallPoliciesClient - WebCategories *webcategories.WebCategoriesClient -} - -func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { - adminRuleCollectionsClient, err := adminrulecollections.NewAdminRuleCollectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building AdminRuleCollections client: %+v", err) - } - configureFunc(adminRuleCollectionsClient.Client) - - adminRulesClient, err := adminrules.NewAdminRulesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building AdminRules client: %+v", err) - } - configureFunc(adminRulesClient.Client) - - applicationGatewayPrivateEndpointConnectionsClient, err := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ApplicationGatewayPrivateEndpointConnections client: %+v", err) - } - configureFunc(applicationGatewayPrivateEndpointConnectionsClient.Client) - - applicationGatewayPrivateLinkResourcesClient, err := applicationgatewayprivatelinkresources.NewApplicationGatewayPrivateLinkResourcesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ApplicationGatewayPrivateLinkResources client: %+v", err) - } - configureFunc(applicationGatewayPrivateLinkResourcesClient.Client) - - applicationGatewayWafDynamicManifestsClient, err := applicationgatewaywafdynamicmanifests.NewApplicationGatewayWafDynamicManifestsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ApplicationGatewayWafDynamicManifests client: %+v", err) - } - configureFunc(applicationGatewayWafDynamicManifestsClient.Client) - - applicationGatewaysClient, err := applicationgateways.NewApplicationGatewaysClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ApplicationGateways client: %+v", err) - } - configureFunc(applicationGatewaysClient.Client) - - applicationSecurityGroupsClient, err := applicationsecuritygroups.NewApplicationSecurityGroupsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ApplicationSecurityGroups client: %+v", err) - } - configureFunc(applicationSecurityGroupsClient.Client) - - availableDelegationsClient, err := availabledelegations.NewAvailableDelegationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building AvailableDelegations client: %+v", err) - } - configureFunc(availableDelegationsClient.Client) - - availableServiceAliasesClient, err := availableservicealiases.NewAvailableServiceAliasesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building AvailableServiceAliases client: %+v", err) - } - configureFunc(availableServiceAliasesClient.Client) - - azureFirewallsClient, err := azurefirewalls.NewAzureFirewallsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building AzureFirewalls client: %+v", err) - } - configureFunc(azureFirewallsClient.Client) - - bastionHostsClient, err := bastionhosts.NewBastionHostsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building BastionHosts client: %+v", err) - } - configureFunc(bastionHostsClient.Client) - - bastionShareableLinkClient, err := bastionshareablelink.NewBastionShareableLinkClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building BastionShareableLink client: %+v", err) - } - configureFunc(bastionShareableLinkClient.Client) - - bgpServiceCommunitiesClient, err := bgpservicecommunities.NewBgpServiceCommunitiesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building BgpServiceCommunities client: %+v", err) - } - configureFunc(bgpServiceCommunitiesClient.Client) - - checkDnsAvailabilitiesClient, err := checkdnsavailabilities.NewCheckDnsAvailabilitiesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building CheckDnsAvailabilities client: %+v", err) - } - configureFunc(checkDnsAvailabilitiesClient.Client) - - cloudServicePublicIPAddressesClient, err := cloudservicepublicipaddresses.NewCloudServicePublicIPAddressesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building CloudServicePublicIPAddresses client: %+v", err) - } - configureFunc(cloudServicePublicIPAddressesClient.Client) - - connectionMonitorsClient, err := connectionmonitors.NewConnectionMonitorsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ConnectionMonitors client: %+v", err) - } - configureFunc(connectionMonitorsClient.Client) - - connectivityConfigurationsClient, err := connectivityconfigurations.NewConnectivityConfigurationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ConnectivityConfigurations client: %+v", err) - } - configureFunc(connectivityConfigurationsClient.Client) - - customIPPrefixesClient, err := customipprefixes.NewCustomIPPrefixesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building CustomIPPrefixes client: %+v", err) - } - configureFunc(customIPPrefixesClient.Client) - - ddosCustomPoliciesClient, err := ddoscustompolicies.NewDdosCustomPoliciesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building DdosCustomPolicies client: %+v", err) - } - configureFunc(ddosCustomPoliciesClient.Client) - - ddosProtectionPlansClient, err := ddosprotectionplans.NewDdosProtectionPlansClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building DdosProtectionPlans client: %+v", err) - } - configureFunc(ddosProtectionPlansClient.Client) - - dscpConfigurationClient, err := dscpconfiguration.NewDscpConfigurationClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building DscpConfiguration client: %+v", err) - } - configureFunc(dscpConfigurationClient.Client) - - dscpConfigurationsClient, err := dscpconfigurations.NewDscpConfigurationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building DscpConfigurations client: %+v", err) - } - configureFunc(dscpConfigurationsClient.Client) - - endpointServicesClient, err := endpointservices.NewEndpointServicesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building EndpointServices client: %+v", err) - } - configureFunc(endpointServicesClient.Client) - - expressRouteCircuitArpTableClient, err := expressroutecircuitarptable.NewExpressRouteCircuitArpTableClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCircuitArpTable client: %+v", err) - } - configureFunc(expressRouteCircuitArpTableClient.Client) - - expressRouteCircuitAuthorizationsClient, err := expressroutecircuitauthorizations.NewExpressRouteCircuitAuthorizationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCircuitAuthorizations client: %+v", err) - } - configureFunc(expressRouteCircuitAuthorizationsClient.Client) - - expressRouteCircuitConnectionsClient, err := expressroutecircuitconnections.NewExpressRouteCircuitConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCircuitConnections client: %+v", err) - } - configureFunc(expressRouteCircuitConnectionsClient.Client) - - expressRouteCircuitPeeringsClient, err := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCircuitPeerings client: %+v", err) - } - configureFunc(expressRouteCircuitPeeringsClient.Client) - - expressRouteCircuitRoutesTableClient, err := expressroutecircuitroutestable.NewExpressRouteCircuitRoutesTableClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCircuitRoutesTable client: %+v", err) - } - configureFunc(expressRouteCircuitRoutesTableClient.Client) - - expressRouteCircuitRoutesTableSummaryClient, err := expressroutecircuitroutestablesummary.NewExpressRouteCircuitRoutesTableSummaryClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCircuitRoutesTableSummary client: %+v", err) - } - configureFunc(expressRouteCircuitRoutesTableSummaryClient.Client) - - expressRouteCircuitStatsClient, err := expressroutecircuitstats.NewExpressRouteCircuitStatsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCircuitStats client: %+v", err) - } - configureFunc(expressRouteCircuitStatsClient.Client) - - expressRouteCircuitsClient, err := expressroutecircuits.NewExpressRouteCircuitsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCircuits client: %+v", err) - } - configureFunc(expressRouteCircuitsClient.Client) - - expressRouteConnectionsClient, err := expressrouteconnections.NewExpressRouteConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteConnections client: %+v", err) - } - configureFunc(expressRouteConnectionsClient.Client) - - expressRouteCrossConnectionArpTableClient, err := expressroutecrossconnectionarptable.NewExpressRouteCrossConnectionArpTableClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCrossConnectionArpTable client: %+v", err) - } - configureFunc(expressRouteCrossConnectionArpTableClient.Client) - - expressRouteCrossConnectionPeeringsClient, err := expressroutecrossconnectionpeerings.NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCrossConnectionPeerings client: %+v", err) - } - configureFunc(expressRouteCrossConnectionPeeringsClient.Client) - - expressRouteCrossConnectionRouteTableClient, err := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionRouteTableClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCrossConnectionRouteTable client: %+v", err) - } - configureFunc(expressRouteCrossConnectionRouteTableClient.Client) - - expressRouteCrossConnectionRouteTableSummaryClient, err := expressroutecrossconnectionroutetablesummary.NewExpressRouteCrossConnectionRouteTableSummaryClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCrossConnectionRouteTableSummary client: %+v", err) - } - configureFunc(expressRouteCrossConnectionRouteTableSummaryClient.Client) - - expressRouteCrossConnectionsClient, err := expressroutecrossconnections.NewExpressRouteCrossConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteCrossConnections client: %+v", err) - } - configureFunc(expressRouteCrossConnectionsClient.Client) - - expressRouteGatewaysClient, err := expressroutegateways.NewExpressRouteGatewaysClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteGateways client: %+v", err) - } - configureFunc(expressRouteGatewaysClient.Client) - - expressRouteLinksClient, err := expressroutelinks.NewExpressRouteLinksClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteLinks client: %+v", err) - } - configureFunc(expressRouteLinksClient.Client) - - expressRoutePortAuthorizationsClient, err := expressrouteportauthorizations.NewExpressRoutePortAuthorizationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRoutePortAuthorizations client: %+v", err) - } - configureFunc(expressRoutePortAuthorizationsClient.Client) - - expressRoutePortsClient, err := expressrouteports.NewExpressRoutePortsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRoutePorts client: %+v", err) - } - configureFunc(expressRoutePortsClient.Client) - - expressRoutePortsLocationsClient, err := expressrouteportslocations.NewExpressRoutePortsLocationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRoutePortsLocations client: %+v", err) - } - configureFunc(expressRoutePortsLocationsClient.Client) - - expressRouteProviderPortsClient, err := expressrouteproviderports.NewExpressRouteProviderPortsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteProviderPorts client: %+v", err) - } - configureFunc(expressRouteProviderPortsClient.Client) - - expressRouteServiceProvidersClient, err := expressrouteserviceproviders.NewExpressRouteServiceProvidersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ExpressRouteServiceProviders client: %+v", err) - } - configureFunc(expressRouteServiceProvidersClient.Client) - - firewallPoliciesClient, err := firewallpolicies.NewFirewallPoliciesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building FirewallPolicies client: %+v", err) - } - configureFunc(firewallPoliciesClient.Client) - - firewallPolicyRuleCollectionGroupsClient, err := firewallpolicyrulecollectiongroups.NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building FirewallPolicyRuleCollectionGroups client: %+v", err) - } - configureFunc(firewallPolicyRuleCollectionGroupsClient.Client) - - flowLogsClient, err := flowlogs.NewFlowLogsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building FlowLogs client: %+v", err) - } - configureFunc(flowLogsClient.Client) - - iPAllocationsClient, err := ipallocations.NewIPAllocationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building IPAllocations client: %+v", err) - } - configureFunc(iPAllocationsClient.Client) - - iPGroupsClient, err := ipgroups.NewIPGroupsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building IPGroups client: %+v", err) - } - configureFunc(iPGroupsClient.Client) - - loadBalancersClient, err := loadbalancers.NewLoadBalancersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building LoadBalancers client: %+v", err) - } - configureFunc(loadBalancersClient.Client) - - localNetworkGatewaysClient, err := localnetworkgateways.NewLocalNetworkGatewaysClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building LocalNetworkGateways client: %+v", err) - } - configureFunc(localNetworkGatewaysClient.Client) - - natGatewaysClient, err := natgateways.NewNatGatewaysClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NatGateways client: %+v", err) - } - configureFunc(natGatewaysClient.Client) - - networkGroupsClient, err := networkgroups.NewNetworkGroupsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkGroups client: %+v", err) - } - configureFunc(networkGroupsClient.Client) - - networkInterfacesClient, err := networkinterfaces.NewNetworkInterfacesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkInterfaces client: %+v", err) - } - configureFunc(networkInterfacesClient.Client) - - networkManagerActiveConfigurationsClient, err := networkmanageractiveconfigurations.NewNetworkManagerActiveConfigurationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkManagerActiveConfigurations client: %+v", err) - } - configureFunc(networkManagerActiveConfigurationsClient.Client) - - networkManagerActiveConnectivityConfigurationsClient, err := networkmanageractiveconnectivityconfigurations.NewNetworkManagerActiveConnectivityConfigurationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkManagerActiveConnectivityConfigurations client: %+v", err) - } - configureFunc(networkManagerActiveConnectivityConfigurationsClient.Client) - - networkManagerConnectionsClient, err := networkmanagerconnections.NewNetworkManagerConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkManagerConnections client: %+v", err) - } - configureFunc(networkManagerConnectionsClient.Client) - - networkManagerEffectiveConnectivityConfigurationClient, err := networkmanagereffectiveconnectivityconfiguration.NewNetworkManagerEffectiveConnectivityConfigurationClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkManagerEffectiveConnectivityConfiguration client: %+v", err) - } - configureFunc(networkManagerEffectiveConnectivityConfigurationClient.Client) - - networkManagerEffectiveSecurityAdminRulesClient, err := networkmanagereffectivesecurityadminrules.NewNetworkManagerEffectiveSecurityAdminRulesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkManagerEffectiveSecurityAdminRules client: %+v", err) - } - configureFunc(networkManagerEffectiveSecurityAdminRulesClient.Client) - - networkManagersClient, err := networkmanagers.NewNetworkManagersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkManagers client: %+v", err) - } - configureFunc(networkManagersClient.Client) - - networkProfilesClient, err := networkprofiles.NewNetworkProfilesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkProfiles client: %+v", err) - } - configureFunc(networkProfilesClient.Client) - - networkSecurityGroupsClient, err := networksecuritygroups.NewNetworkSecurityGroupsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkSecurityGroups client: %+v", err) - } - configureFunc(networkSecurityGroupsClient.Client) - - networkVirtualAppliancesClient, err := networkvirtualappliances.NewNetworkVirtualAppliancesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkVirtualAppliances client: %+v", err) - } - configureFunc(networkVirtualAppliancesClient.Client) - - networkWatchersClient, err := networkwatchers.NewNetworkWatchersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building NetworkWatchers client: %+v", err) - } - configureFunc(networkWatchersClient.Client) - - p2sVpnGatewaysClient, err := p2svpngateways.NewP2sVpnGatewaysClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building P2sVpnGateways client: %+v", err) - } - configureFunc(p2sVpnGatewaysClient.Client) - - packetCapturesClient, err := packetcaptures.NewPacketCapturesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PacketCaptures client: %+v", err) - } - configureFunc(packetCapturesClient.Client) - - peerExpressRouteCircuitConnectionsClient, err := peerexpressroutecircuitconnections.NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PeerExpressRouteCircuitConnections client: %+v", err) - } - configureFunc(peerExpressRouteCircuitConnectionsClient.Client) - - privateDnsZoneGroupsClient, err := privatednszonegroups.NewPrivateDnsZoneGroupsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PrivateDnsZoneGroups client: %+v", err) - } - configureFunc(privateDnsZoneGroupsClient.Client) - - privateEndpointsClient, err := privateendpoints.NewPrivateEndpointsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PrivateEndpoints client: %+v", err) - } - configureFunc(privateEndpointsClient.Client) - - privateLinkServicesClient, err := privatelinkservices.NewPrivateLinkServicesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PrivateLinkServices client: %+v", err) - } - configureFunc(privateLinkServicesClient.Client) - - publicIPAddressesClient, err := publicipaddresses.NewPublicIPAddressesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PublicIPAddresses client: %+v", err) - } - configureFunc(publicIPAddressesClient.Client) - - publicIPPrefixesClient, err := publicipprefixes.NewPublicIPPrefixesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building PublicIPPrefixes client: %+v", err) - } - configureFunc(publicIPPrefixesClient.Client) - - routeFilterRulesClient, err := routefilterrules.NewRouteFilterRulesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building RouteFilterRules client: %+v", err) - } - configureFunc(routeFilterRulesClient.Client) - - routeFiltersClient, err := routefilters.NewRouteFiltersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building RouteFilters client: %+v", err) - } - configureFunc(routeFiltersClient.Client) - - routeTablesClient, err := routetables.NewRouteTablesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building RouteTables client: %+v", err) - } - configureFunc(routeTablesClient.Client) - - routesClient, err := routes.NewRoutesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Routes client: %+v", err) - } - configureFunc(routesClient.Client) - - scopeConnectionsClient, err := scopeconnections.NewScopeConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ScopeConnections client: %+v", err) - } - configureFunc(scopeConnectionsClient.Client) - - securityAdminConfigurationsClient, err := securityadminconfigurations.NewSecurityAdminConfigurationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building SecurityAdminConfigurations client: %+v", err) - } - configureFunc(securityAdminConfigurationsClient.Client) - - securityPartnerProvidersClient, err := securitypartnerproviders.NewSecurityPartnerProvidersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building SecurityPartnerProviders client: %+v", err) - } - configureFunc(securityPartnerProvidersClient.Client) - - securityRulesClient, err := securityrules.NewSecurityRulesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building SecurityRules client: %+v", err) - } - configureFunc(securityRulesClient.Client) - - serviceEndpointPoliciesClient, err := serviceendpointpolicies.NewServiceEndpointPoliciesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ServiceEndpointPolicies client: %+v", err) - } - configureFunc(serviceEndpointPoliciesClient.Client) - - serviceEndpointPolicyDefinitionsClient, err := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ServiceEndpointPolicyDefinitions client: %+v", err) - } - configureFunc(serviceEndpointPolicyDefinitionsClient.Client) - - serviceTagsClient, err := servicetags.NewServiceTagsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building ServiceTags client: %+v", err) - } - configureFunc(serviceTagsClient.Client) - - staticMembersClient, err := staticmembers.NewStaticMembersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building StaticMembers client: %+v", err) - } - configureFunc(staticMembersClient.Client) - - subnetsClient, err := subnets.NewSubnetsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Subnets client: %+v", err) - } - configureFunc(subnetsClient.Client) - - trafficAnalyticsClient, err := trafficanalytics.NewTrafficAnalyticsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building TrafficAnalytics client: %+v", err) - } - configureFunc(trafficAnalyticsClient.Client) - - usagesClient, err := usages.NewUsagesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building Usages client: %+v", err) - } - configureFunc(usagesClient.Client) - - vMSSPublicIPAddressesClient, err := vmsspublicipaddresses.NewVMSSPublicIPAddressesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VMSSPublicIPAddresses client: %+v", err) - } - configureFunc(vMSSPublicIPAddressesClient.Client) - - vipSwapClient, err := vipswap.NewVipSwapClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VipSwap client: %+v", err) - } - configureFunc(vipSwapClient.Client) - - virtualApplianceSitesClient, err := virtualappliancesites.NewVirtualApplianceSitesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualApplianceSites client: %+v", err) - } - configureFunc(virtualApplianceSitesClient.Client) - - virtualApplianceSkusClient, err := virtualapplianceskus.NewVirtualApplianceSkusClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualApplianceSkus client: %+v", err) - } - configureFunc(virtualApplianceSkusClient.Client) - - virtualNetworkGatewayConnectionsClient, err := virtualnetworkgatewayconnections.NewVirtualNetworkGatewayConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualNetworkGatewayConnections client: %+v", err) - } - configureFunc(virtualNetworkGatewayConnectionsClient.Client) - - virtualNetworkGatewaysClient, err := virtualnetworkgateways.NewVirtualNetworkGatewaysClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualNetworkGateways client: %+v", err) - } - configureFunc(virtualNetworkGatewaysClient.Client) - - virtualNetworkPeeringsClient, err := virtualnetworkpeerings.NewVirtualNetworkPeeringsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualNetworkPeerings client: %+v", err) - } - configureFunc(virtualNetworkPeeringsClient.Client) - - virtualNetworkTapClient, err := virtualnetworktap.NewVirtualNetworkTapClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualNetworkTap client: %+v", err) - } - configureFunc(virtualNetworkTapClient.Client) - - virtualNetworkTapsClient, err := virtualnetworktaps.NewVirtualNetworkTapsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualNetworkTaps client: %+v", err) - } - configureFunc(virtualNetworkTapsClient.Client) - - virtualNetworksClient, err := virtualnetworks.NewVirtualNetworksClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualNetworks client: %+v", err) - } - configureFunc(virtualNetworksClient.Client) - - virtualRouterPeeringsClient, err := virtualrouterpeerings.NewVirtualRouterPeeringsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualRouterPeerings client: %+v", err) - } - configureFunc(virtualRouterPeeringsClient.Client) - - virtualRoutersClient, err := virtualrouters.NewVirtualRoutersClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualRouters client: %+v", err) - } - configureFunc(virtualRoutersClient.Client) - - virtualWANsClient, err := virtualwans.NewVirtualWANsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VirtualWANs client: %+v", err) - } - configureFunc(virtualWANsClient.Client) - - vpnGatewaysClient, err := vpngateways.NewVpnGatewaysClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VpnGateways client: %+v", err) - } - configureFunc(vpnGatewaysClient.Client) - - vpnLinkConnectionsClient, err := vpnlinkconnections.NewVpnLinkConnectionsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VpnLinkConnections client: %+v", err) - } - configureFunc(vpnLinkConnectionsClient.Client) - - vpnServerConfigurationsClient, err := vpnserverconfigurations.NewVpnServerConfigurationsClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VpnServerConfigurations client: %+v", err) - } - configureFunc(vpnServerConfigurationsClient.Client) - - vpnSitesClient, err := vpnsites.NewVpnSitesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building VpnSites client: %+v", err) - } - configureFunc(vpnSitesClient.Client) - - webApplicationFirewallPoliciesClient, err := webapplicationfirewallpolicies.NewWebApplicationFirewallPoliciesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building WebApplicationFirewallPolicies client: %+v", err) - } - configureFunc(webApplicationFirewallPoliciesClient.Client) - - webCategoriesClient, err := webcategories.NewWebCategoriesClientWithBaseURI(sdkApi) - if err != nil { - return nil, fmt.Errorf("building WebCategories client: %+v", err) - } - configureFunc(webCategoriesClient.Client) - - return &Client{ - AdminRuleCollections: adminRuleCollectionsClient, - AdminRules: adminRulesClient, - ApplicationGatewayPrivateEndpointConnections: applicationGatewayPrivateEndpointConnectionsClient, - ApplicationGatewayPrivateLinkResources: applicationGatewayPrivateLinkResourcesClient, - ApplicationGatewayWafDynamicManifests: applicationGatewayWafDynamicManifestsClient, - ApplicationGateways: applicationGatewaysClient, - ApplicationSecurityGroups: applicationSecurityGroupsClient, - AvailableDelegations: availableDelegationsClient, - AvailableServiceAliases: availableServiceAliasesClient, - AzureFirewalls: azureFirewallsClient, - BastionHosts: bastionHostsClient, - BastionShareableLink: bastionShareableLinkClient, - BgpServiceCommunities: bgpServiceCommunitiesClient, - CheckDnsAvailabilities: checkDnsAvailabilitiesClient, - CloudServicePublicIPAddresses: cloudServicePublicIPAddressesClient, - ConnectionMonitors: connectionMonitorsClient, - ConnectivityConfigurations: connectivityConfigurationsClient, - CustomIPPrefixes: customIPPrefixesClient, - DdosCustomPolicies: ddosCustomPoliciesClient, - DdosProtectionPlans: ddosProtectionPlansClient, - DscpConfiguration: dscpConfigurationClient, - DscpConfigurations: dscpConfigurationsClient, - EndpointServices: endpointServicesClient, - ExpressRouteCircuitArpTable: expressRouteCircuitArpTableClient, - ExpressRouteCircuitAuthorizations: expressRouteCircuitAuthorizationsClient, - ExpressRouteCircuitConnections: expressRouteCircuitConnectionsClient, - ExpressRouteCircuitPeerings: expressRouteCircuitPeeringsClient, - ExpressRouteCircuitRoutesTable: expressRouteCircuitRoutesTableClient, - ExpressRouteCircuitRoutesTableSummary: expressRouteCircuitRoutesTableSummaryClient, - ExpressRouteCircuitStats: expressRouteCircuitStatsClient, - ExpressRouteCircuits: expressRouteCircuitsClient, - ExpressRouteConnections: expressRouteConnectionsClient, - ExpressRouteCrossConnectionArpTable: expressRouteCrossConnectionArpTableClient, - ExpressRouteCrossConnectionPeerings: expressRouteCrossConnectionPeeringsClient, - ExpressRouteCrossConnectionRouteTable: expressRouteCrossConnectionRouteTableClient, - ExpressRouteCrossConnectionRouteTableSummary: expressRouteCrossConnectionRouteTableSummaryClient, - ExpressRouteCrossConnections: expressRouteCrossConnectionsClient, - ExpressRouteGateways: expressRouteGatewaysClient, - ExpressRouteLinks: expressRouteLinksClient, - ExpressRoutePortAuthorizations: expressRoutePortAuthorizationsClient, - ExpressRoutePorts: expressRoutePortsClient, - ExpressRoutePortsLocations: expressRoutePortsLocationsClient, - ExpressRouteProviderPorts: expressRouteProviderPortsClient, - ExpressRouteServiceProviders: expressRouteServiceProvidersClient, - FirewallPolicies: firewallPoliciesClient, - FirewallPolicyRuleCollectionGroups: firewallPolicyRuleCollectionGroupsClient, - FlowLogs: flowLogsClient, - IPAllocations: iPAllocationsClient, - IPGroups: iPGroupsClient, - LoadBalancers: loadBalancersClient, - LocalNetworkGateways: localNetworkGatewaysClient, - NatGateways: natGatewaysClient, - NetworkGroups: networkGroupsClient, - NetworkInterfaces: networkInterfacesClient, - NetworkManagerActiveConfigurations: networkManagerActiveConfigurationsClient, - NetworkManagerActiveConnectivityConfigurations: networkManagerActiveConnectivityConfigurationsClient, - NetworkManagerConnections: networkManagerConnectionsClient, - NetworkManagerEffectiveConnectivityConfiguration: networkManagerEffectiveConnectivityConfigurationClient, - NetworkManagerEffectiveSecurityAdminRules: networkManagerEffectiveSecurityAdminRulesClient, - NetworkManagers: networkManagersClient, - NetworkProfiles: networkProfilesClient, - NetworkSecurityGroups: networkSecurityGroupsClient, - NetworkVirtualAppliances: networkVirtualAppliancesClient, - NetworkWatchers: networkWatchersClient, - P2sVpnGateways: p2sVpnGatewaysClient, - PacketCaptures: packetCapturesClient, - PeerExpressRouteCircuitConnections: peerExpressRouteCircuitConnectionsClient, - PrivateDnsZoneGroups: privateDnsZoneGroupsClient, - PrivateEndpoints: privateEndpointsClient, - PrivateLinkServices: privateLinkServicesClient, - PublicIPAddresses: publicIPAddressesClient, - PublicIPPrefixes: publicIPPrefixesClient, - RouteFilterRules: routeFilterRulesClient, - RouteFilters: routeFiltersClient, - RouteTables: routeTablesClient, - Routes: routesClient, - ScopeConnections: scopeConnectionsClient, - SecurityAdminConfigurations: securityAdminConfigurationsClient, - SecurityPartnerProviders: securityPartnerProvidersClient, - SecurityRules: securityRulesClient, - ServiceEndpointPolicies: serviceEndpointPoliciesClient, - ServiceEndpointPolicyDefinitions: serviceEndpointPolicyDefinitionsClient, - ServiceTags: serviceTagsClient, - StaticMembers: staticMembersClient, - Subnets: subnetsClient, - TrafficAnalytics: trafficAnalyticsClient, - Usages: usagesClient, - VMSSPublicIPAddresses: vMSSPublicIPAddressesClient, - VipSwap: vipSwapClient, - VirtualApplianceSites: virtualApplianceSitesClient, - VirtualApplianceSkus: virtualApplianceSkusClient, - VirtualNetworkGatewayConnections: virtualNetworkGatewayConnectionsClient, - VirtualNetworkGateways: virtualNetworkGatewaysClient, - VirtualNetworkPeerings: virtualNetworkPeeringsClient, - VirtualNetworkTap: virtualNetworkTapClient, - VirtualNetworkTaps: virtualNetworkTapsClient, - VirtualNetworks: virtualNetworksClient, - VirtualRouterPeerings: virtualRouterPeeringsClient, - VirtualRouters: virtualRoutersClient, - VirtualWANs: virtualWANsClient, - VpnGateways: vpnGatewaysClient, - VpnLinkConnections: vpnLinkConnectionsClient, - VpnServerConfigurations: vpnServerConfigurationsClient, - VpnSites: vpnSitesClient, - WebApplicationFirewallPolicies: webApplicationFirewallPoliciesClient, - WebCategories: webCategoriesClient, - }, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md deleted file mode 100644 index 0f3e04b6a43f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md +++ /dev/null @@ -1,71 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses` Documentation - -The `cloudservicepublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses" -``` - - -### Client Initialization - -```go -client := cloudservicepublicipaddresses.NewCloudServicePublicIPAddressesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CloudServicePublicIPAddressesClient.PublicIPAddressesGetCloudServicePublicIPAddress` - -```go -ctx := context.TODO() -id := commonids.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName", "ipConfigurationName", "publicIPAddressName") - -read, err := client.PublicIPAddressesGetCloudServicePublicIPAddress(ctx, id, cloudservicepublicipaddresses.DefaultPublicIPAddressesGetCloudServicePublicIPAddressOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CloudServicePublicIPAddressesClient.PublicIPAddressesListCloudServicePublicIPAddresses` - -```go -ctx := context.TODO() -id := cloudservicepublicipaddresses.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") - -// alternatively `client.PublicIPAddressesListCloudServicePublicIPAddresses(ctx, id)` can be used to do batched pagination -items, err := client.PublicIPAddressesListCloudServicePublicIPAddressesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CloudServicePublicIPAddressesClient.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses` - -```go -ctx := context.TODO() -id := commonids.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName", "ipConfigurationName") - -// alternatively `client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx, id)` can be used to do batched pagination -items, err := client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlog.go deleted file mode 100644 index b5951b652697..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package cloudservicepublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go deleted file mode 100644 index 81d0d4ee738d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package cloudservicepublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go deleted file mode 100644 index fea2fefdf6da..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package cloudservicepublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 63759ece07dd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package cloudservicepublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go deleted file mode 100644 index affd2c94cc8a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package cloudservicepublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/cloudservicepublicipaddresses/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md deleted file mode 100644 index 50175098beaf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md +++ /dev/null @@ -1,138 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors` Documentation - -The `connectionmonitors` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors" -``` - - -### Client Initialization - -```go -client := connectionmonitors.NewConnectionMonitorsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ConnectionMonitorsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -payload := connectionmonitors.ConnectionMonitor{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, connectionmonitors.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Delete` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Get` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectionMonitorsClient.List` - -```go -ctx := context.TODO() -id := connectionmonitors.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Query` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -if err := client.QueryThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Start` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -if err := client.StartThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.Stop` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -if err := client.StopThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectionMonitorsClient.UpdateTags` - -```go -ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") - -payload := connectionmonitors.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go deleted file mode 100644 index 017a7248272e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectionmonitors - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/connectionmonitors/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md deleted file mode 100644 index 8b74b6304d0e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations` Documentation - -The `connectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations" -``` - - -### Client Initialization - -```go -client := connectivityconfigurations.NewConnectivityConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ConnectivityConfigurationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") - -payload := connectivityconfigurations.ConnectivityConfiguration{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectivityConfigurationsClient.Delete` - -```go -ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") - -if err := client.DeleteThenPoll(ctx, id, connectivityconfigurations.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `ConnectivityConfigurationsClient.Get` - -```go -ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ConnectivityConfigurationsClient.List` - -```go -ctx := context.TODO() -id := connectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -// alternatively `client.List(ctx, id, connectivityconfigurations.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, connectivityconfigurations.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go deleted file mode 100644 index ba474b9067d2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package connectivityconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/connectivityconfigurations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md deleted file mode 100644 index 2be5a240d71d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes` Documentation - -The `customipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes" -``` - - -### Client Initialization - -```go -client := customipprefixes.NewCustomIPPrefixesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `CustomIPPrefixesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") - -payload := customipprefixes.CustomIPPrefix{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `CustomIPPrefixesClient.Delete` - -```go -ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `CustomIPPrefixesClient.Get` - -```go -ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") - -read, err := client.Get(ctx, id, customipprefixes.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `CustomIPPrefixesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CustomIPPrefixesClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `CustomIPPrefixesClient.UpdateTags` - -```go -ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") - -payload := customipprefixes.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go deleted file mode 100644 index a23ca4411470..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package customipprefixes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/customipprefixes/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md deleted file mode 100644 index 7ce7de395e08..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies` Documentation - -The `ddoscustompolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies" -``` - - -### Client Initialization - -```go -client := ddoscustompolicies.NewDdosCustomPoliciesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `DdosCustomPoliciesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") - -payload := ddoscustompolicies.DdosCustomPolicy{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `DdosCustomPoliciesClient.Delete` - -```go -ctx := context.TODO() -id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `DdosCustomPoliciesClient.Get` - -```go -ctx := context.TODO() -id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `DdosCustomPoliciesClient.UpdateTags` - -```go -ctx := context.TODO() -id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") - -payload := ddoscustompolicies.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go deleted file mode 100644 index 706cecc08dfb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package ddoscustompolicies - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/ddoscustompolicies/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md deleted file mode 100644 index a543966d2726..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans` Documentation - -The `ddosprotectionplans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans" -``` - - -### Client Initialization - -```go -client := ddosprotectionplans.NewDdosProtectionPlansClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `DdosProtectionPlansClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") - -payload := ddosprotectionplans.DdosProtectionPlan{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `DdosProtectionPlansClient.Delete` - -```go -ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `DdosProtectionPlansClient.Get` - -```go -ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `DdosProtectionPlansClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `DdosProtectionPlansClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `DdosProtectionPlansClient.UpdateTags` - -```go -ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") - -payload := ddosprotectionplans.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go deleted file mode 100644 index edb69fa969ae..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package ddosprotectionplans - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/ddosprotectionplans/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md deleted file mode 100644 index 6006c196528d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md +++ /dev/null @@ -1,65 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration` Documentation - -The `dscpconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration" -``` - - -### Client Initialization - -```go -client := dscpconfiguration.NewDscpConfigurationClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `DscpConfigurationClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") - -payload := dscpconfiguration.DscpConfiguration{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `DscpConfigurationClient.Delete` - -```go -ctx := context.TODO() -id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `DscpConfigurationClient.Get` - -```go -ctx := context.TODO() -id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlog.go deleted file mode 100644 index f4d7ea329fc4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package dscpconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogpropertiesformat.go deleted file mode 100644 index 71ebfa45fde7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package dscpconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceproperties.go deleted file mode 100644 index 1852ce3fa31d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package dscpconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 638a6d73f522..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package dscpconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go deleted file mode 100644 index 64f1b8056fdc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package dscpconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/dscpconfiguration/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md deleted file mode 100644 index d8dd7bd8d7c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md +++ /dev/null @@ -1,55 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations` Documentation - -The `dscpconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations" -``` - - -### Client Initialization - -```go -client := dscpconfigurations.NewDscpConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `DscpConfigurationsClient.DscpConfigurationList` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.DscpConfigurationList(ctx, id)` can be used to do batched pagination -items, err := client.DscpConfigurationListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `DscpConfigurationsClient.DscpConfigurationListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.DscpConfigurationListAll(ctx, id)` can be used to do batched pagination -items, err := client.DscpConfigurationListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlog.go deleted file mode 100644 index b06c467c3bc4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package dscpconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogpropertiesformat.go deleted file mode 100644 index 70fecb2d8522..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package dscpconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceproperties.go deleted file mode 100644 index 0054e8840ee7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package dscpconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpropertiesformat.go deleted file mode 100644 index a134bda64bd6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package dscpconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go deleted file mode 100644 index 291ded8f891a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package dscpconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/dscpconfigurations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md deleted file mode 100644 index f2d59a07105a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices` Documentation - -The `endpointservices` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices" -``` - - -### Client Initialization - -```go -client := endpointservices.NewEndpointServicesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `EndpointServicesClient.AvailableEndpointServicesList` - -```go -ctx := context.TODO() -id := endpointservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.AvailableEndpointServicesList(ctx, id)` can be used to do batched pagination -items, err := client.AvailableEndpointServicesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go deleted file mode 100644 index 590185eb2a4c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package endpointservices - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/endpointservices/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md deleted file mode 100644 index 472ca59abc53..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable` Documentation - -The `expressroutecircuitarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable" -``` - - -### Client Initialization - -```go -client := expressroutecircuitarptable.NewExpressRouteCircuitArpTableClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitArpTableClient.ExpressRouteCircuitsListArpTable` - -```go -ctx := context.TODO() -id := expressroutecircuitarptable.NewArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "arpTableName") - -// alternatively `client.ExpressRouteCircuitsListArpTable(ctx, id)` can be used to do batched pagination -items, err := client.ExpressRouteCircuitsListArpTableComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go deleted file mode 100644 index 560b7f653555..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitarptable - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitarptable/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md deleted file mode 100644 index 3ea0a3cc9a4c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations` Documentation - -The `expressroutecircuitauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations" -``` - - -### Client Initialization - -```go -client := expressroutecircuitauthorizations.NewExpressRouteCircuitAuthorizationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitAuthorizationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") - -payload := expressroutecircuitauthorizations.ExpressRouteCircuitAuthorization{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitAuthorizationsClient.Delete` - -```go -ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitAuthorizationsClient.Get` - -```go -ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCircuitAuthorizationsClient.List` - -```go -ctx := context.TODO() -id := expressroutecircuitauthorizations.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go deleted file mode 100644 index e3d3f2bdb8df..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AuthorizationPropertiesFormat struct { - AuthorizationKey *string `json:"authorizationKey,omitempty"` - AuthorizationUseStatus *AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go deleted file mode 100644 index 6a23b660d109..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitauthorizations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md deleted file mode 100644 index b99d394292e9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md +++ /dev/null @@ -1,83 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections` Documentation - -The `expressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections" -``` - - -### Client Initialization - -```go -client := expressroutecircuitconnections.NewExpressRouteCircuitConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitConnectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") - -payload := expressroutecircuitconnections.ExpressRouteCircuitConnection{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitConnectionsClient.Delete` - -```go -ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitConnectionsClient.Get` - -```go -ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCircuitConnectionsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go deleted file mode 100644 index d14d3ebb8deb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md deleted file mode 100644 index 4e66d37cbea5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md +++ /dev/null @@ -1,83 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings` Documentation - -The `expressroutecircuitpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings" -``` - - -### Client Initialization - -```go -client := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitPeeringsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitPeeringsClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCircuitPeeringsClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCircuitPeeringsClient.List` - -```go -ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go deleted file mode 100644 index e1a25aedb019..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitpeerings/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md deleted file mode 100644 index c5c56807c037..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable` Documentation - -The `expressroutecircuitroutestable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable" -``` - - -### Client Initialization - -```go -client := expressroutecircuitroutestable.NewExpressRouteCircuitRoutesTableClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitRoutesTableClient.ExpressRouteCircuitsListRoutesTable` - -```go -ctx := context.TODO() -id := expressroutecircuitroutestable.NewPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "routeTableName") - -// alternatively `client.ExpressRouteCircuitsListRoutesTable(ctx, id)` can be used to do batched pagination -items, err := client.ExpressRouteCircuitsListRoutesTableComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go deleted file mode 100644 index 6b442c304e96..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitroutestable - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitroutestable/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md deleted file mode 100644 index 0f9b0429ceaf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary` Documentation - -The `expressroutecircuitroutestablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary" -``` - - -### Client Initialization - -```go -client := expressroutecircuitroutestablesummary.NewExpressRouteCircuitRoutesTableSummaryClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitRoutesTableSummaryClient.ExpressRouteCircuitsListRoutesTableSummary` - -```go -ctx := context.TODO() -id := expressroutecircuitroutestablesummary.NewRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "routeTablesSummaryName") - -// alternatively `client.ExpressRouteCircuitsListRoutesTableSummary(ctx, id)` can be used to do batched pagination -items, err := client.ExpressRouteCircuitsListRoutesTableSummaryComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go deleted file mode 100644 index 5d76832ab827..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitroutestablesummary - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitroutestablesummary/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md deleted file mode 100644 index ef073b6c2d33..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md +++ /dev/null @@ -1,53 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats` Documentation - -The `expressroutecircuitstats` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats" -``` - - -### Client Initialization - -```go -client := expressroutecircuitstats.NewExpressRouteCircuitStatsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCircuitStatsClient.ExpressRouteCircuitsGetPeeringStats` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -read, err := client.ExpressRouteCircuitsGetPeeringStats(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCircuitStatsClient.ExpressRouteCircuitsGetStats` - -```go -ctx := context.TODO() -id := expressroutecircuitstats.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") - -read, err := client.ExpressRouteCircuitsGetStats(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go deleted file mode 100644 index cf7a49d347a2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecircuitstats - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecircuitstats/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md deleted file mode 100644 index b445eedd9dcc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md +++ /dev/null @@ -1,81 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections` Documentation - -The `expressrouteconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections" -``` - - -### Client Initialization - -```go -client := expressrouteconnections.NewExpressRouteConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteConnectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") - -payload := expressrouteconnections.ExpressRouteConnection{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteConnectionsClient.Delete` - -```go -ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteConnectionsClient.Get` - -```go -ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteConnectionsClient.List` - -```go -ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go deleted file mode 100644 index 4059fb601ed4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md deleted file mode 100644 index 5c5ac716f041..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable` Documentation - -The `expressroutecrossconnectionarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable" -``` - - -### Client Initialization - -```go -client := expressroutecrossconnectionarptable.NewExpressRouteCrossConnectionArpTableClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCrossConnectionArpTableClient.ExpressRouteCrossConnectionsListArpTable` - -```go -ctx := context.TODO() -id := expressroutecrossconnectionarptable.NewPeeringArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName", "arpTableName") - -// alternatively `client.ExpressRouteCrossConnectionsListArpTable(ctx, id)` can be used to do batched pagination -items, err := client.ExpressRouteCrossConnectionsListArpTableComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go deleted file mode 100644 index 901342a916ca..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecrossconnectionarptable - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnectionarptable/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md deleted file mode 100644 index 1aa20c96e1f2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings` Documentation - -The `expressroutecrossconnectionpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings" -``` - - -### Client Initialization - -```go -client := expressroutecrossconnectionpeerings.NewExpressRouteCrossConnectionPeeringsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCrossConnectionPeeringsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName") - -payload := expressroutecrossconnectionpeerings.ExpressRouteCrossConnectionPeering{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCrossConnectionPeeringsClient.Delete` - -```go -ctx := context.TODO() -id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCrossConnectionPeeringsClient.Get` - -```go -ctx := context.TODO() -id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCrossConnectionPeeringsClient.List` - -```go -ctx := context.TODO() -id := expressroutecrossconnectionpeerings.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go deleted file mode 100644 index 36b0b29e07c4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecrossconnectionpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnectionpeerings/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md deleted file mode 100644 index ec4ead84ac6e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable` Documentation - -The `expressroutecrossconnectionroutetable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable" -``` - - -### Client Initialization - -```go -client := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionRouteTableClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCrossConnectionRouteTableClient.ExpressRouteCrossConnectionsListRoutesTable` - -```go -ctx := context.TODO() -id := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName", "routeTableName") - -// alternatively `client.ExpressRouteCrossConnectionsListRoutesTable(ctx, id)` can be used to do batched pagination -items, err := client.ExpressRouteCrossConnectionsListRoutesTableComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go deleted file mode 100644 index fc08bb11bbb9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecrossconnectionroutetable - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetable/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md deleted file mode 100644 index 50f45e5b3322..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary` Documentation - -The `expressroutecrossconnectionroutetablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary" -``` - - -### Client Initialization - -```go -client := expressroutecrossconnectionroutetablesummary.NewExpressRouteCrossConnectionRouteTableSummaryClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCrossConnectionRouteTableSummaryClient.ExpressRouteCrossConnectionsListRoutesTableSummary` - -```go -ctx := context.TODO() -id := expressroutecrossconnectionroutetablesummary.NewPeeringRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName", "routeTablesSummaryName") - -// alternatively `client.ExpressRouteCrossConnectionsListRoutesTableSummary(ctx, id)` can be used to do batched pagination -items, err := client.ExpressRouteCrossConnectionsListRoutesTableSummaryComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go deleted file mode 100644 index d57384ba64d8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecrossconnectionroutetablesummary - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetablesummary/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md deleted file mode 100644 index 3d5e128b46ba..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md +++ /dev/null @@ -1,109 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections` Documentation - -The `expressroutecrossconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections" -``` - - -### Client Initialization - -```go -client := expressroutecrossconnections.NewExpressRouteCrossConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteCrossConnectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName") - -payload := expressroutecrossconnections.ExpressRouteCrossConnection{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRouteCrossConnectionsClient.Get` - -```go -ctx := context.TODO() -id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteCrossConnectionsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ExpressRouteCrossConnectionsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ExpressRouteCrossConnectionsClient.UpdateTags` - -```go -ctx := context.TODO() -id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName") - -payload := expressroutecrossconnections.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go deleted file mode 100644 index dc5aa7af448e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_list.go +++ /dev/null @@ -1,106 +0,0 @@ -package expressroutecrossconnections - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" - "github.com/hashicorp/go-azure-sdk/sdk/client" - "github.com/hashicorp/go-azure-sdk/sdk/odata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ListOperationResponse struct { - HttpResponse *http.Response - OData *odata.OData - Model *[]ExpressRouteCrossConnection -} - -type ListCompleteResult struct { - LatestHttpResponse *http.Response - Items []ExpressRouteCrossConnection -} - -type ListCustomPager struct { - NextLink *odata.Link `json:"nextLink"` -} - -func (p *ListCustomPager) NextPageLink() *odata.Link { - defer func() { - p.NextLink = nil - }() - - return p.NextLink -} - -// List ... -func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { - opts := client.RequestOptions{ - ContentType: "application/json; charset=utf-8", - ExpectedStatusCodes: []int{ - http.StatusOK, - }, - HttpMethod: http.MethodGet, - Pager: &ListCustomPager{}, - Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), - } - - req, err := c.Client.NewRequest(ctx, opts) - if err != nil { - return - } - - var resp *client.Response - resp, err = req.ExecutePaged(ctx) - if resp != nil { - result.OData = resp.OData - result.HttpResponse = resp.Response - } - if err != nil { - return - } - - var values struct { - Values *[]ExpressRouteCrossConnection `json:"value"` - } - if err = resp.Unmarshal(&values); err != nil { - return - } - - result.Model = values.Values - - return -} - -// ListComplete retrieves all the results into a single object -func (c ExpressRouteCrossConnectionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { - return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCrossConnectionOperationPredicate{}) -} - -// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate -func (c ExpressRouteCrossConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ExpressRouteCrossConnectionOperationPredicate) (result ListCompleteResult, err error) { - items := make([]ExpressRouteCrossConnection, 0) - - resp, err := c.List(ctx, id) - if err != nil { - result.LatestHttpResponse = resp.HttpResponse - err = fmt.Errorf("loading results: %+v", err) - return - } - if resp.Model != nil { - for _, v := range *resp.Model { - if predicate.Matches(v) { - items = append(items, v) - } - } - } - - result = ListCompleteResult{ - LatestHttpResponse: resp.HttpResponse, - Items: items, - } - return -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go deleted file mode 100644 index 0dea6676bacf..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutecrossconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutecrossconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md deleted file mode 100644 index 481eba0d555a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md +++ /dev/null @@ -1,53 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks` Documentation - -The `expressroutelinks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks" -``` - - -### Client Initialization - -```go -client := expressroutelinks.NewExpressRouteLinksClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteLinksClient.Get` - -```go -ctx := context.TODO() -id := expressroutelinks.NewLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "linkName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteLinksClient.List` - -```go -ctx := context.TODO() -id := expressroutelinks.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go deleted file mode 100644 index 68fe0163e3ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressroutelinks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressroutelinks/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md deleted file mode 100644 index fb4c6d7d8f54..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations` Documentation - -The `expressrouteportauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations" -``` - - -### Client Initialization - -```go -client := expressrouteportauthorizations.NewExpressRoutePortAuthorizationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRoutePortAuthorizationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") - -payload := expressrouteportauthorizations.ExpressRoutePortAuthorization{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRoutePortAuthorizationsClient.Delete` - -```go -ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ExpressRoutePortAuthorizationsClient.Get` - -```go -ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRoutePortAuthorizationsClient.List` - -```go -ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go deleted file mode 100644 index 1bf60f25da32..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteportauthorizations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteportauthorizations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md deleted file mode 100644 index e0c809ccc07f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations` Documentation - -The `expressrouteportslocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations" -``` - - -### Client Initialization - -```go -client := expressrouteportslocations.NewExpressRoutePortsLocationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRoutePortsLocationsClient.Get` - -```go -ctx := context.TODO() -id := expressrouteportslocations.NewExpressRoutePortsLocationID("12345678-1234-9876-4563-123456789012", "expressRoutePortsLocationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRoutePortsLocationsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go deleted file mode 100644 index bc904c8fb8e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteportslocations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteportslocations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md deleted file mode 100644 index ae8eb0787a28..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports` Documentation - -The `expressrouteproviderports` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports" -``` - - -### Client Initialization - -```go -client := expressrouteproviderports.NewExpressRouteProviderPortsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteProviderPortsClient.ExpressRouteProviderPort` - -```go -ctx := context.TODO() -id := expressrouteproviderports.NewExpressRouteProviderPortID("12345678-1234-9876-4563-123456789012", "expressRouteProviderPortName") - -read, err := client.ExpressRouteProviderPort(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ExpressRouteProviderPortsClient.LocationList` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.LocationList(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions())` can be used to do batched pagination -items, err := client.LocationListComplete(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go deleted file mode 100644 index 598703ffe4f4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteproviderports - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteproviderports/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md deleted file mode 100644 index d5360cbd62d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md +++ /dev/null @@ -1,38 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders` Documentation - -The `expressrouteserviceproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders" -``` - - -### Client Initialization - -```go -client := expressrouteserviceproviders.NewExpressRouteServiceProvidersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ExpressRouteServiceProvidersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go deleted file mode 100644 index b4db33f2c73b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package expressrouteserviceproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/expressrouteserviceproviders/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md deleted file mode 100644 index 10bf14d64488..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups` Documentation - -The `firewallpolicyrulecollectiongroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups" -``` - - -### Client Initialization - -```go -client := firewallpolicyrulecollectiongroups.NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") - -payload := firewallpolicyrulecollectiongroups.FirewallPolicyRuleCollectionGroup{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.Delete` - -```go -ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.Get` - -```go -ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.List` - -```go -ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go deleted file mode 100644 index 5a0c081ae4ad..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package firewallpolicyrulecollectiongroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/firewallpolicyrulecollectiongroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md deleted file mode 100644 index cbb5c4df3737..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md +++ /dev/null @@ -1,103 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs` Documentation - -The `flowlogs` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs" -``` - - -### Client Initialization - -```go -client := flowlogs.NewFlowLogsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `FlowLogsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") - -payload := flowlogs.FlowLog{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `FlowLogsClient.Delete` - -```go -ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `FlowLogsClient.Get` - -```go -ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `FlowLogsClient.List` - -```go -ctx := context.TODO() -id := flowlogs.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `FlowLogsClient.UpdateTags` - -```go -ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") - -payload := flowlogs.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlog.go deleted file mode 100644 index 6cb0c1a33b59..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogpropertiesformat.go deleted file mode 100644 index e08f8fc61241..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go deleted file mode 100644 index 18b431977a55..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package flowlogs - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/flowlogs/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md deleted file mode 100644 index 0a0bdb4f5b0f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations` Documentation - -The `ipallocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations" -``` - - -### Client Initialization - -```go -client := ipallocations.NewIPAllocationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `IPAllocationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") - -payload := ipallocations.IPAllocation{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `IPAllocationsClient.Delete` - -```go -ctx := context.TODO() -id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `IPAllocationsClient.Get` - -```go -ctx := context.TODO() -id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") - -read, err := client.Get(ctx, id, ipallocations.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `IPAllocationsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `IPAllocationsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `IPAllocationsClient.UpdateTags` - -```go -ctx := context.TODO() -id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") - -payload := ipallocations.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go deleted file mode 100644 index d25dcbc7ec55..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package ipallocations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/ipallocations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md deleted file mode 100644 index ed40ba5f194e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups` Documentation - -The `ipgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups" -``` - - -### Client Initialization - -```go -client := ipgroups.NewIPGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `IPGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") - -payload := ipgroups.IPGroup{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `IPGroupsClient.Delete` - -```go -ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `IPGroupsClient.Get` - -```go -ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") - -read, err := client.Get(ctx, id, ipgroups.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `IPGroupsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `IPGroupsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `IPGroupsClient.UpdateGroups` - -```go -ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") - -payload := ipgroups.TagsObject{ - // ... -} - - -read, err := client.UpdateGroups(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go deleted file mode 100644 index c2080311cc25..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package ipgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/ipgroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md deleted file mode 100644 index 2810b580a186..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md +++ /dev/null @@ -1,449 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers` Documentation - -The `loadbalancers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers" -``` - - -### Client Initialization - -```go -client := loadbalancers.NewLoadBalancersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `LoadBalancersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -payload := loadbalancers.LoadBalancer{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `LoadBalancersClient.Delete` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `LoadBalancersClient.Get` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -read, err := client.Get(ctx, id, loadbalancers.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LoadBalancersClient.InboundNatRulesCreateOrUpdate` - -```go -ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") - -payload := loadbalancers.InboundNatRule{ - // ... -} - - -if err := client.InboundNatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `LoadBalancersClient.InboundNatRulesDelete` - -```go -ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") - -if err := client.InboundNatRulesDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `LoadBalancersClient.InboundNatRulesGet` - -```go -ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") - -read, err := client.InboundNatRulesGet(ctx, id, loadbalancers.DefaultInboundNatRulesGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LoadBalancersClient.InboundNatRulesList` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -// alternatively `client.InboundNatRulesList(ctx, id)` can be used to do batched pagination -items, err := client.InboundNatRulesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.ListInboundNatRulePortMappings` - -```go -ctx := context.TODO() -id := loadbalancers.NewBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "loadBalancerName", "backendAddressPoolName") - -payload := loadbalancers.QueryInboundNatRulePortMappingRequest{ - // ... -} - - -if err := client.ListInboundNatRulePortMappingsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerBackendAddressPoolsCreateOrUpdate` - -```go -ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") - -payload := loadbalancers.BackendAddressPool{ - // ... -} - - -if err := client.LoadBalancerBackendAddressPoolsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerBackendAddressPoolsDelete` - -```go -ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") - -if err := client.LoadBalancerBackendAddressPoolsDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerBackendAddressPoolsGet` - -```go -ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") - -read, err := client.LoadBalancerBackendAddressPoolsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerBackendAddressPoolsList` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -// alternatively `client.LoadBalancerBackendAddressPoolsList(ctx, id)` can be used to do batched pagination -items, err := client.LoadBalancerBackendAddressPoolsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerFrontendIPConfigurationsGet` - -```go -ctx := context.TODO() -id := loadbalancers.NewFrontendIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "frontendIPConfigurationName") - -read, err := client.LoadBalancerFrontendIPConfigurationsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerFrontendIPConfigurationsList` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -// alternatively `client.LoadBalancerFrontendIPConfigurationsList(ctx, id)` can be used to do batched pagination -items, err := client.LoadBalancerFrontendIPConfigurationsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerLoadBalancingRulesGet` - -```go -ctx := context.TODO() -id := loadbalancers.NewLoadBalancingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "loadBalancingRuleName") - -read, err := client.LoadBalancerLoadBalancingRulesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerLoadBalancingRulesList` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -// alternatively `client.LoadBalancerLoadBalancingRulesList(ctx, id)` can be used to do batched pagination -items, err := client.LoadBalancerLoadBalancingRulesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerNetworkInterfacesList` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -// alternatively `client.LoadBalancerNetworkInterfacesList(ctx, id)` can be used to do batched pagination -items, err := client.LoadBalancerNetworkInterfacesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerOutboundRulesGet` - -```go -ctx := context.TODO() -id := loadbalancers.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "outboundRuleName") - -read, err := client.LoadBalancerOutboundRulesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerOutboundRulesList` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -// alternatively `client.LoadBalancerOutboundRulesList(ctx, id)` can be used to do batched pagination -items, err := client.LoadBalancerOutboundRulesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerProbesGet` - -```go -ctx := context.TODO() -id := loadbalancers.NewProbeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "probeName") - -read, err := client.LoadBalancerProbesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LoadBalancersClient.LoadBalancerProbesList` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -// alternatively `client.LoadBalancerProbesList(ctx, id)` can be used to do batched pagination -items, err := client.LoadBalancerProbesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `LoadBalancersClient.MigrateToIPBased` - -```go -ctx := context.TODO() -id := loadbalancers.NewLoadBalancerID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "loadBalancerName") - -payload := loadbalancers.MigrateLoadBalancerToIPBasedRequest{ - // ... -} - - -read, err := client.MigrateToIPBased(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `LoadBalancersClient.SwapPublicIPAddresses` - -```go -ctx := context.TODO() -id := loadbalancers.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -payload := loadbalancers.LoadBalancerVipSwapRequest{ - // ... -} - - -if err := client.SwapPublicIPAddressesThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `LoadBalancersClient.UpdateTags` - -```go -ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") - -payload := loadbalancers.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/constants.go deleted file mode 100644 index edef2ce69233..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/constants.go +++ /dev/null @@ -1,1415 +0,0 @@ -package loadbalancers - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettingsProtectionMode string - -const ( - DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" - DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" - DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" -) - -func PossibleValuesForDdosSettingsProtectionMode() []string { - return []string{ - string(DdosSettingsProtectionModeDisabled), - string(DdosSettingsProtectionModeEnabled), - string(DdosSettingsProtectionModeVirtualNetworkInherited), - } -} - -func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDdosSettingsProtectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { - vals := map[string]DdosSettingsProtectionMode{ - "disabled": DdosSettingsProtectionModeDisabled, - "enabled": DdosSettingsProtectionModeEnabled, - "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DdosSettingsProtectionMode(input) - return &out, nil -} - -type DeleteOptions string - -const ( - DeleteOptionsDelete DeleteOptions = "Delete" - DeleteOptionsDetach DeleteOptions = "Detach" -) - -func PossibleValuesForDeleteOptions() []string { - return []string{ - string(DeleteOptionsDelete), - string(DeleteOptionsDetach), - } -} - -func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteOptions(input string) (*DeleteOptions, error) { - vals := map[string]DeleteOptions{ - "delete": DeleteOptionsDelete, - "detach": DeleteOptionsDetach, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteOptions(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelInterfaceType string - -const ( - GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" - GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" - GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" -) - -func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { - return []string{ - string(GatewayLoadBalancerTunnelInterfaceTypeExternal), - string(GatewayLoadBalancerTunnelInterfaceTypeInternal), - string(GatewayLoadBalancerTunnelInterfaceTypeNone), - } -} - -func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { - vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ - "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, - "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, - "none": GatewayLoadBalancerTunnelInterfaceTypeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelInterfaceType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelProtocol string - -const ( - GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" - GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" - GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" -) - -func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { - return []string{ - string(GatewayLoadBalancerTunnelProtocolNative), - string(GatewayLoadBalancerTunnelProtocolNone), - string(GatewayLoadBalancerTunnelProtocolVXLAN), - } -} - -func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { - vals := map[string]GatewayLoadBalancerTunnelProtocol{ - "native": GatewayLoadBalancerTunnelProtocolNative, - "none": GatewayLoadBalancerTunnelProtocolNone, - "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelProtocol(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type LoadBalancerBackendAddressAdminState string - -const ( - LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" - LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" - LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" -) - -func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { - return []string{ - string(LoadBalancerBackendAddressAdminStateDown), - string(LoadBalancerBackendAddressAdminStateNone), - string(LoadBalancerBackendAddressAdminStateUp), - } -} - -func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerBackendAddressAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { - vals := map[string]LoadBalancerBackendAddressAdminState{ - "down": LoadBalancerBackendAddressAdminStateDown, - "none": LoadBalancerBackendAddressAdminStateNone, - "up": LoadBalancerBackendAddressAdminStateUp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerBackendAddressAdminState(input) - return &out, nil -} - -type LoadBalancerOutboundRuleProtocol string - -const ( - LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All" - LoadBalancerOutboundRuleProtocolTcp LoadBalancerOutboundRuleProtocol = "Tcp" - LoadBalancerOutboundRuleProtocolUdp LoadBalancerOutboundRuleProtocol = "Udp" -) - -func PossibleValuesForLoadBalancerOutboundRuleProtocol() []string { - return []string{ - string(LoadBalancerOutboundRuleProtocolAll), - string(LoadBalancerOutboundRuleProtocolTcp), - string(LoadBalancerOutboundRuleProtocolUdp), - } -} - -func (s *LoadBalancerOutboundRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerOutboundRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerOutboundRuleProtocol(input string) (*LoadBalancerOutboundRuleProtocol, error) { - vals := map[string]LoadBalancerOutboundRuleProtocol{ - "all": LoadBalancerOutboundRuleProtocolAll, - "tcp": LoadBalancerOutboundRuleProtocolTcp, - "udp": LoadBalancerOutboundRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerOutboundRuleProtocol(input) - return &out, nil -} - -type LoadBalancerSkuName string - -const ( - LoadBalancerSkuNameBasic LoadBalancerSkuName = "Basic" - LoadBalancerSkuNameGateway LoadBalancerSkuName = "Gateway" - LoadBalancerSkuNameStandard LoadBalancerSkuName = "Standard" -) - -func PossibleValuesForLoadBalancerSkuName() []string { - return []string{ - string(LoadBalancerSkuNameBasic), - string(LoadBalancerSkuNameGateway), - string(LoadBalancerSkuNameStandard), - } -} - -func (s *LoadBalancerSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerSkuName(input string) (*LoadBalancerSkuName, error) { - vals := map[string]LoadBalancerSkuName{ - "basic": LoadBalancerSkuNameBasic, - "gateway": LoadBalancerSkuNameGateway, - "standard": LoadBalancerSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerSkuName(input) - return &out, nil -} - -type LoadBalancerSkuTier string - -const ( - LoadBalancerSkuTierGlobal LoadBalancerSkuTier = "Global" - LoadBalancerSkuTierRegional LoadBalancerSkuTier = "Regional" -) - -func PossibleValuesForLoadBalancerSkuTier() []string { - return []string{ - string(LoadBalancerSkuTierGlobal), - string(LoadBalancerSkuTierRegional), - } -} - -func (s *LoadBalancerSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerSkuTier(input string) (*LoadBalancerSkuTier, error) { - vals := map[string]LoadBalancerSkuTier{ - "global": LoadBalancerSkuTierGlobal, - "regional": LoadBalancerSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerSkuTier(input) - return &out, nil -} - -type LoadDistribution string - -const ( - LoadDistributionDefault LoadDistribution = "Default" - LoadDistributionSourceIP LoadDistribution = "SourceIP" - LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol" -) - -func PossibleValuesForLoadDistribution() []string { - return []string{ - string(LoadDistributionDefault), - string(LoadDistributionSourceIP), - string(LoadDistributionSourceIPProtocol), - } -} - -func (s *LoadDistribution) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadDistribution(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadDistribution(input string) (*LoadDistribution, error) { - vals := map[string]LoadDistribution{ - "default": LoadDistributionDefault, - "sourceip": LoadDistributionSourceIP, - "sourceipprotocol": LoadDistributionSourceIPProtocol, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadDistribution(input) - return &out, nil -} - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type NetworkInterfaceAuxiliaryMode string - -const ( - NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" - NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" - NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" - NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { - return []string{ - string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), - string(NetworkInterfaceAuxiliaryModeFloating), - string(NetworkInterfaceAuxiliaryModeMaxConnections), - string(NetworkInterfaceAuxiliaryModeNone), - } -} - -func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliaryMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { - vals := map[string]NetworkInterfaceAuxiliaryMode{ - "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, - "floating": NetworkInterfaceAuxiliaryModeFloating, - "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, - "none": NetworkInterfaceAuxiliaryModeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliaryMode(input) - return &out, nil -} - -type NetworkInterfaceAuxiliarySku string - -const ( - NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" - NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" - NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" - NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" - NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { - return []string{ - string(NetworkInterfaceAuxiliarySkuAEight), - string(NetworkInterfaceAuxiliarySkuAFour), - string(NetworkInterfaceAuxiliarySkuAOne), - string(NetworkInterfaceAuxiliarySkuATwo), - string(NetworkInterfaceAuxiliarySkuNone), - } -} - -func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliarySku(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { - vals := map[string]NetworkInterfaceAuxiliarySku{ - "a8": NetworkInterfaceAuxiliarySkuAEight, - "a4": NetworkInterfaceAuxiliarySkuAFour, - "a1": NetworkInterfaceAuxiliarySkuAOne, - "a2": NetworkInterfaceAuxiliarySkuATwo, - "none": NetworkInterfaceAuxiliarySkuNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliarySku(input) - return &out, nil -} - -type NetworkInterfaceMigrationPhase string - -const ( - NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" - NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" - NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" - NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" - NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" -) - -func PossibleValuesForNetworkInterfaceMigrationPhase() []string { - return []string{ - string(NetworkInterfaceMigrationPhaseAbort), - string(NetworkInterfaceMigrationPhaseCommit), - string(NetworkInterfaceMigrationPhaseCommitted), - string(NetworkInterfaceMigrationPhaseNone), - string(NetworkInterfaceMigrationPhasePrepare), - } -} - -func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { - vals := map[string]NetworkInterfaceMigrationPhase{ - "abort": NetworkInterfaceMigrationPhaseAbort, - "commit": NetworkInterfaceMigrationPhaseCommit, - "committed": NetworkInterfaceMigrationPhaseCommitted, - "none": NetworkInterfaceMigrationPhaseNone, - "prepare": NetworkInterfaceMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceMigrationPhase(input) - return &out, nil -} - -type NetworkInterfaceNicType string - -const ( - NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" - NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" -) - -func PossibleValuesForNetworkInterfaceNicType() []string { - return []string{ - string(NetworkInterfaceNicTypeElastic), - string(NetworkInterfaceNicTypeStandard), - } -} - -func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceNicType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { - vals := map[string]NetworkInterfaceNicType{ - "elastic": NetworkInterfaceNicTypeElastic, - "standard": NetworkInterfaceNicTypeStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceNicType(input) - return &out, nil -} - -type ProbeProtocol string - -const ( - ProbeProtocolHTTP ProbeProtocol = "Http" - ProbeProtocolHTTPS ProbeProtocol = "Https" - ProbeProtocolTcp ProbeProtocol = "Tcp" -) - -func PossibleValuesForProbeProtocol() []string { - return []string{ - string(ProbeProtocolHTTP), - string(ProbeProtocolHTTPS), - string(ProbeProtocolTcp), - } -} - -func (s *ProbeProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProbeProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProbeProtocol(input string) (*ProbeProtocol, error) { - vals := map[string]ProbeProtocol{ - "http": ProbeProtocolHTTP, - "https": ProbeProtocolHTTPS, - "tcp": ProbeProtocolTcp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProbeProtocol(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicIPAddressDnsSettingsDomainNameLabelScope string - -const ( - PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" -) - -func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { - return []string{ - string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), - } -} - -func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { - vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ - "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, - "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, - "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, - "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) - return &out, nil -} - -type PublicIPAddressMigrationPhase string - -const ( - PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" - PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" - PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" - PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" - PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" -) - -func PossibleValuesForPublicIPAddressMigrationPhase() []string { - return []string{ - string(PublicIPAddressMigrationPhaseAbort), - string(PublicIPAddressMigrationPhaseCommit), - string(PublicIPAddressMigrationPhaseCommitted), - string(PublicIPAddressMigrationPhaseNone), - string(PublicIPAddressMigrationPhasePrepare), - } -} - -func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { - vals := map[string]PublicIPAddressMigrationPhase{ - "abort": PublicIPAddressMigrationPhaseAbort, - "commit": PublicIPAddressMigrationPhaseCommit, - "committed": PublicIPAddressMigrationPhaseCommitted, - "none": PublicIPAddressMigrationPhaseNone, - "prepare": PublicIPAddressMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressMigrationPhase(input) - return &out, nil -} - -type PublicIPAddressSkuName string - -const ( - PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" - PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" -) - -func PossibleValuesForPublicIPAddressSkuName() []string { - return []string{ - string(PublicIPAddressSkuNameBasic), - string(PublicIPAddressSkuNameStandard), - } -} - -func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { - vals := map[string]PublicIPAddressSkuName{ - "basic": PublicIPAddressSkuNameBasic, - "standard": PublicIPAddressSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuName(input) - return &out, nil -} - -type PublicIPAddressSkuTier string - -const ( - PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" - PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" -) - -func PossibleValuesForPublicIPAddressSkuTier() []string { - return []string{ - string(PublicIPAddressSkuTierGlobal), - string(PublicIPAddressSkuTierRegional), - } -} - -func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { - vals := map[string]PublicIPAddressSkuTier{ - "global": PublicIPAddressSkuTierGlobal, - "regional": PublicIPAddressSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuTier(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type SharingScope string - -const ( - SharingScopeDelegatedServices SharingScope = "DelegatedServices" - SharingScopeTenant SharingScope = "Tenant" -) - -func PossibleValuesForSharingScope() []string { - return []string{ - string(SharingScopeDelegatedServices), - string(SharingScopeTenant), - } -} - -func (s *SharingScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharingScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharingScope(input string) (*SharingScope, error) { - vals := map[string]SharingScope{ - "delegatedservices": SharingScopeDelegatedServices, - "tenant": SharingScopeTenant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharingScope(input) - return &out, nil -} - -type SyncMode string - -const ( - SyncModeAutomatic SyncMode = "Automatic" - SyncModeManual SyncMode = "Manual" -) - -func PossibleValuesForSyncMode() []string { - return []string{ - string(SyncModeAutomatic), - string(SyncModeManual), - } -} - -func (s *SyncMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncMode(input string) (*SyncMode, error) { - vals := map[string]SyncMode{ - "automatic": SyncModeAutomatic, - "manual": SyncModeManual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncMode(input) - return &out, nil -} - -type TransportProtocol string - -const ( - TransportProtocolAll TransportProtocol = "All" - TransportProtocolTcp TransportProtocol = "Tcp" - TransportProtocolUdp TransportProtocol = "Udp" -) - -func PossibleValuesForTransportProtocol() []string { - return []string{ - string(TransportProtocolAll), - string(TransportProtocolTcp), - string(TransportProtocolUdp), - } -} - -func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTransportProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTransportProtocol(input string) (*TransportProtocol, error) { - vals := map[string]TransportProtocol{ - "all": TransportProtocolAll, - "tcp": TransportProtocolTcp, - "udp": TransportProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TransportProtocol(input) - return &out, nil -} - -type VirtualNetworkPrivateEndpointNetworkPolicies string - -const ( - VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" - VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" - VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" - VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" -) - -func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), - } -} - -func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ - "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, - "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, - "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateEndpointNetworkPolicies(input) - return &out, nil -} - -type VirtualNetworkPrivateLinkServiceNetworkPolicies string - -const ( - VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" - VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" -) - -func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), - } -} - -func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ - "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlog.go deleted file mode 100644 index 90210c292609..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package loadbalancers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogpropertiesformat.go deleted file mode 100644 index 4c800ad5f684..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package loadbalancers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceproperties.go deleted file mode 100644 index f3e3d05de18a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package loadbalancers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probepropertiesformat.go deleted file mode 100644 index ddc84044699b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probepropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package loadbalancers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProbePropertiesFormat struct { - IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - NumberOfProbes *int64 `json:"numberOfProbes,omitempty"` - Port int64 `json:"port"` - ProbeThreshold *int64 `json:"probeThreshold,omitempty"` - Protocol ProbeProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestPath *string `json:"requestPath,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 5610d7f722b9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package loadbalancers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go deleted file mode 100644 index 52931b4a027e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package loadbalancers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/loadbalancers/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md deleted file mode 100644 index e7dc9a7b6006..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways` Documentation - -The `natgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways" -``` - - -### Client Initialization - -```go -client := natgateways.NewNatGatewaysClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NatGatewaysClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") - -payload := natgateways.NatGateway{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NatGatewaysClient.Delete` - -```go -ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NatGatewaysClient.Get` - -```go -ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") - -read, err := client.Get(ctx, id, natgateways.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NatGatewaysClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NatGatewaysClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NatGatewaysClient.UpdateTags` - -```go -ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") - -payload := natgateways.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go deleted file mode 100644 index e81482d13fd1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package natgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/natgateways/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md deleted file mode 100644 index 2e21ff9935d9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups` Documentation - -The `networkgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups" -``` - - -### Client Initialization - -```go -client := networkgroups.NewNetworkGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") - -payload := networkgroups.NetworkGroup{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload, networkgroups.DefaultCreateOrUpdateOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkGroupsClient.Delete` - -```go -ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") - -if err := client.DeleteThenPoll(ctx, id, networkgroups.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkGroupsClient.Get` - -```go -ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkGroupsClient.List` - -```go -ctx := context.TODO() -id := networkgroups.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -// alternatively `client.List(ctx, id, networkgroups.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, networkgroups.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/constants.go deleted file mode 100644 index 3bc1d35bd511..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/constants.go +++ /dev/null @@ -1,57 +0,0 @@ -package networkgroups - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroupproperties.go deleted file mode 100644 index 69e5d9d5b225..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroupproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroupProperties struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go deleted file mode 100644 index fe2835422749..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkgroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkgroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md deleted file mode 100644 index b5dc59ad7124..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md +++ /dev/null @@ -1,400 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces` Documentation - -The `networkinterfaces` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces" -``` - - -### Client Initialization - -```go -client := networkinterfaces.NewNetworkInterfacesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkInterfacesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -payload := networkinterfaces.NetworkInterface{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkInterfacesClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkInterfacesClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.GetCloudServiceNetworkInterface` - -```go -ctx := context.TODO() -id := networkinterfaces.NewRoleInstanceNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName") - -read, err := client.GetCloudServiceNetworkInterface(ctx, id, networkinterfaces.DefaultGetCloudServiceNetworkInterfaceOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.GetEffectiveRouteTable` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.GetEffectiveRouteTable(ctx, id)` can be used to do batched pagination -items, err := client.GetEffectiveRouteTableComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.GetVirtualMachineScaleSetIPConfiguration` - -```go -ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName", "ipConfigurationName") - -read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.GetVirtualMachineScaleSetNetworkInterface` - -```go -ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName") - -read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListCloudServiceNetworkInterfaces` - -```go -ctx := context.TODO() -id := networkinterfaces.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") - -// alternatively `client.ListCloudServiceNetworkInterfaces(ctx, id)` can be used to do batched pagination -items, err := client.ListCloudServiceNetworkInterfacesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces` - -```go -ctx := context.TODO() -id := networkinterfaces.NewRoleInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName") - -// alternatively `client.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, id)` can be used to do batched pagination -items, err := client.ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListEffectiveNetworkSecurityGroups` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.ListEffectiveNetworkSecurityGroups(ctx, id)` can be used to do batched pagination -items, err := client.ListEffectiveNetworkSecurityGroupsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetIPConfigurations` - -```go -ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName") - -// alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination -items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces` - -```go -ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") - -// alternatively `client.ListVirtualMachineScaleSetNetworkInterfaces(ctx, id)` can be used to do batched pagination -items, err := client.ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces` - -```go -ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName") - -// alternatively `client.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, id)` can be used to do batched pagination -items, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceIPConfigurationsGet` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "ipConfigurationName") - -read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceIPConfigurationsList` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination -items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceLoadBalancersList` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination -items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsCreateOrUpdate` - -```go -ctx := context.TODO() -id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") - -payload := networkinterfaces.NetworkInterfaceTapConfiguration{ - // ... -} - - -if err := client.NetworkInterfaceTapConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsDelete` - -```go -ctx := context.TODO() -id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") - -if err := client.NetworkInterfaceTapConfigurationsDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsGet` - -```go -ctx := context.TODO() -id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") - -read, err := client.NetworkInterfaceTapConfigurationsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsList` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -// alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination -items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkInterfacesClient.UpdateTags` - -```go -ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") - -payload := networkinterfaces.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/constants.go deleted file mode 100644 index ca36c67f611c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/constants.go +++ /dev/null @@ -1,1547 +0,0 @@ -package networkinterfaces - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettingsProtectionMode string - -const ( - DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" - DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" - DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" -) - -func PossibleValuesForDdosSettingsProtectionMode() []string { - return []string{ - string(DdosSettingsProtectionModeDisabled), - string(DdosSettingsProtectionModeEnabled), - string(DdosSettingsProtectionModeVirtualNetworkInherited), - } -} - -func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDdosSettingsProtectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { - vals := map[string]DdosSettingsProtectionMode{ - "disabled": DdosSettingsProtectionModeDisabled, - "enabled": DdosSettingsProtectionModeEnabled, - "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DdosSettingsProtectionMode(input) - return &out, nil -} - -type DeleteOptions string - -const ( - DeleteOptionsDelete DeleteOptions = "Delete" - DeleteOptionsDetach DeleteOptions = "Detach" -) - -func PossibleValuesForDeleteOptions() []string { - return []string{ - string(DeleteOptionsDelete), - string(DeleteOptionsDetach), - } -} - -func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteOptions(input string) (*DeleteOptions, error) { - vals := map[string]DeleteOptions{ - "delete": DeleteOptionsDelete, - "detach": DeleteOptionsDetach, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteOptions(input) - return &out, nil -} - -type EffectiveRouteSource string - -const ( - EffectiveRouteSourceDefault EffectiveRouteSource = "Default" - EffectiveRouteSourceUnknown EffectiveRouteSource = "Unknown" - EffectiveRouteSourceUser EffectiveRouteSource = "User" - EffectiveRouteSourceVirtualNetworkGateway EffectiveRouteSource = "VirtualNetworkGateway" -) - -func PossibleValuesForEffectiveRouteSource() []string { - return []string{ - string(EffectiveRouteSourceDefault), - string(EffectiveRouteSourceUnknown), - string(EffectiveRouteSourceUser), - string(EffectiveRouteSourceVirtualNetworkGateway), - } -} - -func (s *EffectiveRouteSource) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveRouteSource(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveRouteSource(input string) (*EffectiveRouteSource, error) { - vals := map[string]EffectiveRouteSource{ - "default": EffectiveRouteSourceDefault, - "unknown": EffectiveRouteSourceUnknown, - "user": EffectiveRouteSourceUser, - "virtualnetworkgateway": EffectiveRouteSourceVirtualNetworkGateway, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveRouteSource(input) - return &out, nil -} - -type EffectiveRouteState string - -const ( - EffectiveRouteStateActive EffectiveRouteState = "Active" - EffectiveRouteStateInvalid EffectiveRouteState = "Invalid" -) - -func PossibleValuesForEffectiveRouteState() []string { - return []string{ - string(EffectiveRouteStateActive), - string(EffectiveRouteStateInvalid), - } -} - -func (s *EffectiveRouteState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveRouteState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveRouteState(input string) (*EffectiveRouteState, error) { - vals := map[string]EffectiveRouteState{ - "active": EffectiveRouteStateActive, - "invalid": EffectiveRouteStateInvalid, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveRouteState(input) - return &out, nil -} - -type EffectiveSecurityRuleProtocol string - -const ( - EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All" - EffectiveSecurityRuleProtocolTcp EffectiveSecurityRuleProtocol = "Tcp" - EffectiveSecurityRuleProtocolUdp EffectiveSecurityRuleProtocol = "Udp" -) - -func PossibleValuesForEffectiveSecurityRuleProtocol() []string { - return []string{ - string(EffectiveSecurityRuleProtocolAll), - string(EffectiveSecurityRuleProtocolTcp), - string(EffectiveSecurityRuleProtocolUdp), - } -} - -func (s *EffectiveSecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveSecurityRuleProtocol(input string) (*EffectiveSecurityRuleProtocol, error) { - vals := map[string]EffectiveSecurityRuleProtocol{ - "all": EffectiveSecurityRuleProtocolAll, - "tcp": EffectiveSecurityRuleProtocolTcp, - "udp": EffectiveSecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveSecurityRuleProtocol(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelInterfaceType string - -const ( - GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" - GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" - GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" -) - -func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { - return []string{ - string(GatewayLoadBalancerTunnelInterfaceTypeExternal), - string(GatewayLoadBalancerTunnelInterfaceTypeInternal), - string(GatewayLoadBalancerTunnelInterfaceTypeNone), - } -} - -func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { - vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ - "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, - "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, - "none": GatewayLoadBalancerTunnelInterfaceTypeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelInterfaceType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelProtocol string - -const ( - GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" - GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" - GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" -) - -func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { - return []string{ - string(GatewayLoadBalancerTunnelProtocolNative), - string(GatewayLoadBalancerTunnelProtocolNone), - string(GatewayLoadBalancerTunnelProtocolVXLAN), - } -} - -func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { - vals := map[string]GatewayLoadBalancerTunnelProtocol{ - "native": GatewayLoadBalancerTunnelProtocolNative, - "none": GatewayLoadBalancerTunnelProtocolNone, - "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelProtocol(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type LoadBalancerBackendAddressAdminState string - -const ( - LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" - LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" - LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" -) - -func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { - return []string{ - string(LoadBalancerBackendAddressAdminStateDown), - string(LoadBalancerBackendAddressAdminStateNone), - string(LoadBalancerBackendAddressAdminStateUp), - } -} - -func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerBackendAddressAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { - vals := map[string]LoadBalancerBackendAddressAdminState{ - "down": LoadBalancerBackendAddressAdminStateDown, - "none": LoadBalancerBackendAddressAdminStateNone, - "up": LoadBalancerBackendAddressAdminStateUp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerBackendAddressAdminState(input) - return &out, nil -} - -type LoadBalancerOutboundRuleProtocol string - -const ( - LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All" - LoadBalancerOutboundRuleProtocolTcp LoadBalancerOutboundRuleProtocol = "Tcp" - LoadBalancerOutboundRuleProtocolUdp LoadBalancerOutboundRuleProtocol = "Udp" -) - -func PossibleValuesForLoadBalancerOutboundRuleProtocol() []string { - return []string{ - string(LoadBalancerOutboundRuleProtocolAll), - string(LoadBalancerOutboundRuleProtocolTcp), - string(LoadBalancerOutboundRuleProtocolUdp), - } -} - -func (s *LoadBalancerOutboundRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerOutboundRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerOutboundRuleProtocol(input string) (*LoadBalancerOutboundRuleProtocol, error) { - vals := map[string]LoadBalancerOutboundRuleProtocol{ - "all": LoadBalancerOutboundRuleProtocolAll, - "tcp": LoadBalancerOutboundRuleProtocolTcp, - "udp": LoadBalancerOutboundRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerOutboundRuleProtocol(input) - return &out, nil -} - -type LoadBalancerSkuName string - -const ( - LoadBalancerSkuNameBasic LoadBalancerSkuName = "Basic" - LoadBalancerSkuNameGateway LoadBalancerSkuName = "Gateway" - LoadBalancerSkuNameStandard LoadBalancerSkuName = "Standard" -) - -func PossibleValuesForLoadBalancerSkuName() []string { - return []string{ - string(LoadBalancerSkuNameBasic), - string(LoadBalancerSkuNameGateway), - string(LoadBalancerSkuNameStandard), - } -} - -func (s *LoadBalancerSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerSkuName(input string) (*LoadBalancerSkuName, error) { - vals := map[string]LoadBalancerSkuName{ - "basic": LoadBalancerSkuNameBasic, - "gateway": LoadBalancerSkuNameGateway, - "standard": LoadBalancerSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerSkuName(input) - return &out, nil -} - -type LoadBalancerSkuTier string - -const ( - LoadBalancerSkuTierGlobal LoadBalancerSkuTier = "Global" - LoadBalancerSkuTierRegional LoadBalancerSkuTier = "Regional" -) - -func PossibleValuesForLoadBalancerSkuTier() []string { - return []string{ - string(LoadBalancerSkuTierGlobal), - string(LoadBalancerSkuTierRegional), - } -} - -func (s *LoadBalancerSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerSkuTier(input string) (*LoadBalancerSkuTier, error) { - vals := map[string]LoadBalancerSkuTier{ - "global": LoadBalancerSkuTierGlobal, - "regional": LoadBalancerSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerSkuTier(input) - return &out, nil -} - -type LoadDistribution string - -const ( - LoadDistributionDefault LoadDistribution = "Default" - LoadDistributionSourceIP LoadDistribution = "SourceIP" - LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol" -) - -func PossibleValuesForLoadDistribution() []string { - return []string{ - string(LoadDistributionDefault), - string(LoadDistributionSourceIP), - string(LoadDistributionSourceIPProtocol), - } -} - -func (s *LoadDistribution) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadDistribution(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadDistribution(input string) (*LoadDistribution, error) { - vals := map[string]LoadDistribution{ - "default": LoadDistributionDefault, - "sourceip": LoadDistributionSourceIP, - "sourceipprotocol": LoadDistributionSourceIPProtocol, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadDistribution(input) - return &out, nil -} - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type NetworkInterfaceAuxiliaryMode string - -const ( - NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" - NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" - NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" - NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { - return []string{ - string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), - string(NetworkInterfaceAuxiliaryModeFloating), - string(NetworkInterfaceAuxiliaryModeMaxConnections), - string(NetworkInterfaceAuxiliaryModeNone), - } -} - -func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliaryMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { - vals := map[string]NetworkInterfaceAuxiliaryMode{ - "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, - "floating": NetworkInterfaceAuxiliaryModeFloating, - "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, - "none": NetworkInterfaceAuxiliaryModeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliaryMode(input) - return &out, nil -} - -type NetworkInterfaceAuxiliarySku string - -const ( - NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" - NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" - NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" - NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" - NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { - return []string{ - string(NetworkInterfaceAuxiliarySkuAEight), - string(NetworkInterfaceAuxiliarySkuAFour), - string(NetworkInterfaceAuxiliarySkuAOne), - string(NetworkInterfaceAuxiliarySkuATwo), - string(NetworkInterfaceAuxiliarySkuNone), - } -} - -func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliarySku(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { - vals := map[string]NetworkInterfaceAuxiliarySku{ - "a8": NetworkInterfaceAuxiliarySkuAEight, - "a4": NetworkInterfaceAuxiliarySkuAFour, - "a1": NetworkInterfaceAuxiliarySkuAOne, - "a2": NetworkInterfaceAuxiliarySkuATwo, - "none": NetworkInterfaceAuxiliarySkuNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliarySku(input) - return &out, nil -} - -type NetworkInterfaceMigrationPhase string - -const ( - NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" - NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" - NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" - NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" - NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" -) - -func PossibleValuesForNetworkInterfaceMigrationPhase() []string { - return []string{ - string(NetworkInterfaceMigrationPhaseAbort), - string(NetworkInterfaceMigrationPhaseCommit), - string(NetworkInterfaceMigrationPhaseCommitted), - string(NetworkInterfaceMigrationPhaseNone), - string(NetworkInterfaceMigrationPhasePrepare), - } -} - -func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { - vals := map[string]NetworkInterfaceMigrationPhase{ - "abort": NetworkInterfaceMigrationPhaseAbort, - "commit": NetworkInterfaceMigrationPhaseCommit, - "committed": NetworkInterfaceMigrationPhaseCommitted, - "none": NetworkInterfaceMigrationPhaseNone, - "prepare": NetworkInterfaceMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceMigrationPhase(input) - return &out, nil -} - -type NetworkInterfaceNicType string - -const ( - NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" - NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" -) - -func PossibleValuesForNetworkInterfaceNicType() []string { - return []string{ - string(NetworkInterfaceNicTypeElastic), - string(NetworkInterfaceNicTypeStandard), - } -} - -func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceNicType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { - vals := map[string]NetworkInterfaceNicType{ - "elastic": NetworkInterfaceNicTypeElastic, - "standard": NetworkInterfaceNicTypeStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceNicType(input) - return &out, nil -} - -type ProbeProtocol string - -const ( - ProbeProtocolHTTP ProbeProtocol = "Http" - ProbeProtocolHTTPS ProbeProtocol = "Https" - ProbeProtocolTcp ProbeProtocol = "Tcp" -) - -func PossibleValuesForProbeProtocol() []string { - return []string{ - string(ProbeProtocolHTTP), - string(ProbeProtocolHTTPS), - string(ProbeProtocolTcp), - } -} - -func (s *ProbeProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProbeProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProbeProtocol(input string) (*ProbeProtocol, error) { - vals := map[string]ProbeProtocol{ - "http": ProbeProtocolHTTP, - "https": ProbeProtocolHTTPS, - "tcp": ProbeProtocolTcp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProbeProtocol(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicIPAddressDnsSettingsDomainNameLabelScope string - -const ( - PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" -) - -func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { - return []string{ - string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), - } -} - -func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { - vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ - "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, - "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, - "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, - "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) - return &out, nil -} - -type PublicIPAddressMigrationPhase string - -const ( - PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" - PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" - PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" - PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" - PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" -) - -func PossibleValuesForPublicIPAddressMigrationPhase() []string { - return []string{ - string(PublicIPAddressMigrationPhaseAbort), - string(PublicIPAddressMigrationPhaseCommit), - string(PublicIPAddressMigrationPhaseCommitted), - string(PublicIPAddressMigrationPhaseNone), - string(PublicIPAddressMigrationPhasePrepare), - } -} - -func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { - vals := map[string]PublicIPAddressMigrationPhase{ - "abort": PublicIPAddressMigrationPhaseAbort, - "commit": PublicIPAddressMigrationPhaseCommit, - "committed": PublicIPAddressMigrationPhaseCommitted, - "none": PublicIPAddressMigrationPhaseNone, - "prepare": PublicIPAddressMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressMigrationPhase(input) - return &out, nil -} - -type PublicIPAddressSkuName string - -const ( - PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" - PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" -) - -func PossibleValuesForPublicIPAddressSkuName() []string { - return []string{ - string(PublicIPAddressSkuNameBasic), - string(PublicIPAddressSkuNameStandard), - } -} - -func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { - vals := map[string]PublicIPAddressSkuName{ - "basic": PublicIPAddressSkuNameBasic, - "standard": PublicIPAddressSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuName(input) - return &out, nil -} - -type PublicIPAddressSkuTier string - -const ( - PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" - PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" -) - -func PossibleValuesForPublicIPAddressSkuTier() []string { - return []string{ - string(PublicIPAddressSkuTierGlobal), - string(PublicIPAddressSkuTierRegional), - } -} - -func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { - vals := map[string]PublicIPAddressSkuTier{ - "global": PublicIPAddressSkuTierGlobal, - "regional": PublicIPAddressSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuTier(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type SharingScope string - -const ( - SharingScopeDelegatedServices SharingScope = "DelegatedServices" - SharingScopeTenant SharingScope = "Tenant" -) - -func PossibleValuesForSharingScope() []string { - return []string{ - string(SharingScopeDelegatedServices), - string(SharingScopeTenant), - } -} - -func (s *SharingScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharingScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharingScope(input string) (*SharingScope, error) { - vals := map[string]SharingScope{ - "delegatedservices": SharingScopeDelegatedServices, - "tenant": SharingScopeTenant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharingScope(input) - return &out, nil -} - -type SyncMode string - -const ( - SyncModeAutomatic SyncMode = "Automatic" - SyncModeManual SyncMode = "Manual" -) - -func PossibleValuesForSyncMode() []string { - return []string{ - string(SyncModeAutomatic), - string(SyncModeManual), - } -} - -func (s *SyncMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncMode(input string) (*SyncMode, error) { - vals := map[string]SyncMode{ - "automatic": SyncModeAutomatic, - "manual": SyncModeManual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncMode(input) - return &out, nil -} - -type TransportProtocol string - -const ( - TransportProtocolAll TransportProtocol = "All" - TransportProtocolTcp TransportProtocol = "Tcp" - TransportProtocolUdp TransportProtocol = "Udp" -) - -func PossibleValuesForTransportProtocol() []string { - return []string{ - string(TransportProtocolAll), - string(TransportProtocolTcp), - string(TransportProtocolUdp), - } -} - -func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTransportProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTransportProtocol(input string) (*TransportProtocol, error) { - vals := map[string]TransportProtocol{ - "all": TransportProtocolAll, - "tcp": TransportProtocolTcp, - "udp": TransportProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TransportProtocol(input) - return &out, nil -} - -type VirtualNetworkPrivateEndpointNetworkPolicies string - -const ( - VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" - VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" - VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" - VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" -) - -func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), - } -} - -func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ - "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, - "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, - "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateEndpointNetworkPolicies(input) - return &out, nil -} - -type VirtualNetworkPrivateLinkServiceNetworkPolicies string - -const ( - VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" - VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" -) - -func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), - } -} - -func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ - "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlog.go deleted file mode 100644 index c2f71983a362..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogpropertiesformat.go deleted file mode 100644 index e594a5d38198..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceproperties.go deleted file mode 100644 index 2356695f6d12..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probepropertiesformat.go deleted file mode 100644 index 343b46540f7c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probepropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ProbePropertiesFormat struct { - IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` - LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` - NumberOfProbes *int64 `json:"numberOfProbes,omitempty"` - Port int64 `json:"port"` - ProbeThreshold *int64 `json:"probeThreshold,omitempty"` - Protocol ProbeProtocol `json:"protocol"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RequestPath *string `json:"requestPath,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 041498d25012..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go deleted file mode 100644 index 16d462edbd37..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkinterfaces - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkinterfaces/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md deleted file mode 100644 index fe78b15b36a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md +++ /dev/null @@ -1,41 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations` Documentation - -The `networkmanageractiveconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations" -``` - - -### Client Initialization - -```go -client := networkmanageractiveconfigurations.NewNetworkManagerActiveConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkManagerActiveConfigurationsClient.ListActiveSecurityAdminRules` - -```go -ctx := context.TODO() -id := networkmanageractiveconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanageractiveconfigurations.ActiveConfigurationParameter{ - // ... -} - - -read, err := client.ListActiveSecurityAdminRules(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/constants.go deleted file mode 100644 index e4a2b230b6e1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/constants.go +++ /dev/null @@ -1,277 +0,0 @@ -package networkmanageractiveconfigurations - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressPrefixType string - -const ( - AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" - AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" -) - -func PossibleValuesForAddressPrefixType() []string { - return []string{ - string(AddressPrefixTypeIPPrefix), - string(AddressPrefixTypeServiceTag), - } -} - -func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAddressPrefixType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAddressPrefixType(input string) (*AddressPrefixType, error) { - vals := map[string]AddressPrefixType{ - "ipprefix": AddressPrefixTypeIPPrefix, - "servicetag": AddressPrefixTypeServiceTag, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AddressPrefixType(input) - return &out, nil -} - -type EffectiveAdminRuleKind string - -const ( - EffectiveAdminRuleKindCustom EffectiveAdminRuleKind = "Custom" - EffectiveAdminRuleKindDefault EffectiveAdminRuleKind = "Default" -) - -func PossibleValuesForEffectiveAdminRuleKind() []string { - return []string{ - string(EffectiveAdminRuleKindCustom), - string(EffectiveAdminRuleKindDefault), - } -} - -func (s *EffectiveAdminRuleKind) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveAdminRuleKind(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveAdminRuleKind(input string) (*EffectiveAdminRuleKind, error) { - vals := map[string]EffectiveAdminRuleKind{ - "custom": EffectiveAdminRuleKindCustom, - "default": EffectiveAdminRuleKindDefault, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveAdminRuleKind(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type SecurityConfigurationRuleAccess string - -const ( - SecurityConfigurationRuleAccessAllow SecurityConfigurationRuleAccess = "Allow" - SecurityConfigurationRuleAccessAlwaysAllow SecurityConfigurationRuleAccess = "AlwaysAllow" - SecurityConfigurationRuleAccessDeny SecurityConfigurationRuleAccess = "Deny" -) - -func PossibleValuesForSecurityConfigurationRuleAccess() []string { - return []string{ - string(SecurityConfigurationRuleAccessAllow), - string(SecurityConfigurationRuleAccessAlwaysAllow), - string(SecurityConfigurationRuleAccessDeny), - } -} - -func (s *SecurityConfigurationRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleAccess(input string) (*SecurityConfigurationRuleAccess, error) { - vals := map[string]SecurityConfigurationRuleAccess{ - "allow": SecurityConfigurationRuleAccessAllow, - "alwaysallow": SecurityConfigurationRuleAccessAlwaysAllow, - "deny": SecurityConfigurationRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleAccess(input) - return &out, nil -} - -type SecurityConfigurationRuleDirection string - -const ( - SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" - SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityConfigurationRuleDirection() []string { - return []string{ - string(SecurityConfigurationRuleDirectionInbound), - string(SecurityConfigurationRuleDirectionOutbound), - } -} - -func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleDirection(input string) (*SecurityConfigurationRuleDirection, error) { - vals := map[string]SecurityConfigurationRuleDirection{ - "inbound": SecurityConfigurationRuleDirectionInbound, - "outbound": SecurityConfigurationRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleDirection(input) - return &out, nil -} - -type SecurityConfigurationRuleProtocol string - -const ( - SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" - SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" - SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" - SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" - SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" - SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityConfigurationRuleProtocol() []string { - return []string{ - string(SecurityConfigurationRuleProtocolAh), - string(SecurityConfigurationRuleProtocolAny), - string(SecurityConfigurationRuleProtocolEsp), - string(SecurityConfigurationRuleProtocolIcmp), - string(SecurityConfigurationRuleProtocolTcp), - string(SecurityConfigurationRuleProtocolUdp), - } -} - -func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleProtocol(input string) (*SecurityConfigurationRuleProtocol, error) { - vals := map[string]SecurityConfigurationRuleProtocol{ - "ah": SecurityConfigurationRuleProtocolAh, - "any": SecurityConfigurationRuleProtocolAny, - "esp": SecurityConfigurationRuleProtocolEsp, - "icmp": SecurityConfigurationRuleProtocolIcmp, - "tcp": SecurityConfigurationRuleProtocolTcp, - "udp": SecurityConfigurationRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleProtocol(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkgroupproperties.go deleted file mode 100644 index ed891dc195e2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkgroupproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanageractiveconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroupProperties struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go deleted file mode 100644 index 70d5cea35a07..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanageractiveconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanageractiveconfigurations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md deleted file mode 100644 index 6422cf625665..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md +++ /dev/null @@ -1,41 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations` Documentation - -The `networkmanageractiveconnectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations" -``` - - -### Client Initialization - -```go -client := networkmanageractiveconnectivityconfigurations.NewNetworkManagerActiveConnectivityConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkManagerActiveConnectivityConfigurationsClient.ListActiveConnectivityConfigurations` - -```go -ctx := context.TODO() -id := networkmanageractiveconnectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanageractiveconnectivityconfigurations.ActiveConfigurationParameter{ - // ... -} - - -read, err := client.ListActiveConnectivityConfigurations(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/constants.go deleted file mode 100644 index ce9e85b744a9..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/constants.go +++ /dev/null @@ -1,262 +0,0 @@ -package networkmanageractiveconnectivityconfigurations - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityTopology string - -const ( - ConnectivityTopologyHubAndSpoke ConnectivityTopology = "HubAndSpoke" - ConnectivityTopologyMesh ConnectivityTopology = "Mesh" -) - -func PossibleValuesForConnectivityTopology() []string { - return []string{ - string(ConnectivityTopologyHubAndSpoke), - string(ConnectivityTopologyMesh), - } -} - -func (s *ConnectivityTopology) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectivityTopology(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectivityTopology(input string) (*ConnectivityTopology, error) { - vals := map[string]ConnectivityTopology{ - "hubandspoke": ConnectivityTopologyHubAndSpoke, - "mesh": ConnectivityTopologyMesh, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectivityTopology(input) - return &out, nil -} - -type DeleteExistingPeering string - -const ( - DeleteExistingPeeringFalse DeleteExistingPeering = "False" - DeleteExistingPeeringTrue DeleteExistingPeering = "True" -) - -func PossibleValuesForDeleteExistingPeering() []string { - return []string{ - string(DeleteExistingPeeringFalse), - string(DeleteExistingPeeringTrue), - } -} - -func (s *DeleteExistingPeering) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteExistingPeering(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteExistingPeering(input string) (*DeleteExistingPeering, error) { - vals := map[string]DeleteExistingPeering{ - "false": DeleteExistingPeeringFalse, - "true": DeleteExistingPeeringTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteExistingPeering(input) - return &out, nil -} - -type GroupConnectivity string - -const ( - GroupConnectivityDirectlyConnected GroupConnectivity = "DirectlyConnected" - GroupConnectivityNone GroupConnectivity = "None" -) - -func PossibleValuesForGroupConnectivity() []string { - return []string{ - string(GroupConnectivityDirectlyConnected), - string(GroupConnectivityNone), - } -} - -func (s *GroupConnectivity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGroupConnectivity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGroupConnectivity(input string) (*GroupConnectivity, error) { - vals := map[string]GroupConnectivity{ - "directlyconnected": GroupConnectivityDirectlyConnected, - "none": GroupConnectivityNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GroupConnectivity(input) - return &out, nil -} - -type IsGlobal string - -const ( - IsGlobalFalse IsGlobal = "False" - IsGlobalTrue IsGlobal = "True" -) - -func PossibleValuesForIsGlobal() []string { - return []string{ - string(IsGlobalFalse), - string(IsGlobalTrue), - } -} - -func (s *IsGlobal) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIsGlobal(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIsGlobal(input string) (*IsGlobal, error) { - vals := map[string]IsGlobal{ - "false": IsGlobalFalse, - "true": IsGlobalTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IsGlobal(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type UseHubGateway string - -const ( - UseHubGatewayFalse UseHubGateway = "False" - UseHubGatewayTrue UseHubGateway = "True" -) - -func PossibleValuesForUseHubGateway() []string { - return []string{ - string(UseHubGatewayFalse), - string(UseHubGatewayTrue), - } -} - -func (s *UseHubGateway) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseUseHubGateway(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseUseHubGateway(input string) (*UseHubGateway, error) { - vals := map[string]UseHubGateway{ - "false": UseHubGatewayFalse, - "true": UseHubGatewayTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := UseHubGateway(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go deleted file mode 100644 index 46f87e5058e0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanageractiveconnectivityconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroupProperties struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go deleted file mode 100644 index 613c8e17ca89..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanageractiveconnectivityconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanageractiveconnectivityconfigurations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md deleted file mode 100644 index a86d8c6d7409..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md +++ /dev/null @@ -1,161 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections` Documentation - -The `networkmanagerconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections" -``` - - -### Client Initialization - -```go -client := networkmanagerconnections.NewNetworkManagerConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsCreateOrUpdate` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") - -payload := networkmanagerconnections.NetworkManagerConnection{ - // ... -} - - -read, err := client.ManagementGroupNetworkManagerConnectionsCreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsDelete` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") - -read, err := client.ManagementGroupNetworkManagerConnectionsDelete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsGet` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") - -read, err := client.ManagementGroupNetworkManagerConnectionsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsList` - -```go -ctx := context.TODO() -id := commonids.NewManagementGroupID("groupId") - -// alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination -items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsCreateOrUpdate` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") - -payload := networkmanagerconnections.NetworkManagerConnection{ - // ... -} - - -read, err := client.SubscriptionNetworkManagerConnectionsCreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsDelete` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") - -read, err := client.SubscriptionNetworkManagerConnectionsDelete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsGet` - -```go -ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") - -read, err := client.SubscriptionNetworkManagerConnectionsGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsList` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.SubscriptionNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination -items, err := client.SubscriptionNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go deleted file mode 100644 index 3c6374ebb17e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagerconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanagerconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md deleted file mode 100644 index 2b91a7d84d09..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md +++ /dev/null @@ -1,42 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration` Documentation - -The `networkmanagereffectiveconnectivityconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration" -``` - - -### Client Initialization - -```go -client := networkmanagereffectiveconnectivityconfiguration.NewNetworkManagerEffectiveConnectivityConfigurationClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkManagerEffectiveConnectivityConfigurationClient.ListNetworkManagerEffectiveConnectivityConfigurations` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -payload := networkmanagereffectiveconnectivityconfiguration.QueryRequestOptions{ - // ... -} - - -read, err := client.ListNetworkManagerEffectiveConnectivityConfigurations(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/constants.go deleted file mode 100644 index 06b5b5629ffc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/constants.go +++ /dev/null @@ -1,262 +0,0 @@ -package networkmanagereffectiveconnectivityconfiguration - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConnectivityTopology string - -const ( - ConnectivityTopologyHubAndSpoke ConnectivityTopology = "HubAndSpoke" - ConnectivityTopologyMesh ConnectivityTopology = "Mesh" -) - -func PossibleValuesForConnectivityTopology() []string { - return []string{ - string(ConnectivityTopologyHubAndSpoke), - string(ConnectivityTopologyMesh), - } -} - -func (s *ConnectivityTopology) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConnectivityTopology(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConnectivityTopology(input string) (*ConnectivityTopology, error) { - vals := map[string]ConnectivityTopology{ - "hubandspoke": ConnectivityTopologyHubAndSpoke, - "mesh": ConnectivityTopologyMesh, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConnectivityTopology(input) - return &out, nil -} - -type DeleteExistingPeering string - -const ( - DeleteExistingPeeringFalse DeleteExistingPeering = "False" - DeleteExistingPeeringTrue DeleteExistingPeering = "True" -) - -func PossibleValuesForDeleteExistingPeering() []string { - return []string{ - string(DeleteExistingPeeringFalse), - string(DeleteExistingPeeringTrue), - } -} - -func (s *DeleteExistingPeering) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteExistingPeering(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteExistingPeering(input string) (*DeleteExistingPeering, error) { - vals := map[string]DeleteExistingPeering{ - "false": DeleteExistingPeeringFalse, - "true": DeleteExistingPeeringTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteExistingPeering(input) - return &out, nil -} - -type GroupConnectivity string - -const ( - GroupConnectivityDirectlyConnected GroupConnectivity = "DirectlyConnected" - GroupConnectivityNone GroupConnectivity = "None" -) - -func PossibleValuesForGroupConnectivity() []string { - return []string{ - string(GroupConnectivityDirectlyConnected), - string(GroupConnectivityNone), - } -} - -func (s *GroupConnectivity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGroupConnectivity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGroupConnectivity(input string) (*GroupConnectivity, error) { - vals := map[string]GroupConnectivity{ - "directlyconnected": GroupConnectivityDirectlyConnected, - "none": GroupConnectivityNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GroupConnectivity(input) - return &out, nil -} - -type IsGlobal string - -const ( - IsGlobalFalse IsGlobal = "False" - IsGlobalTrue IsGlobal = "True" -) - -func PossibleValuesForIsGlobal() []string { - return []string{ - string(IsGlobalFalse), - string(IsGlobalTrue), - } -} - -func (s *IsGlobal) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIsGlobal(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIsGlobal(input string) (*IsGlobal, error) { - vals := map[string]IsGlobal{ - "false": IsGlobalFalse, - "true": IsGlobalTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IsGlobal(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type UseHubGateway string - -const ( - UseHubGatewayFalse UseHubGateway = "False" - UseHubGatewayTrue UseHubGateway = "True" -) - -func PossibleValuesForUseHubGateway() []string { - return []string{ - string(UseHubGatewayFalse), - string(UseHubGatewayTrue), - } -} - -func (s *UseHubGateway) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseUseHubGateway(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseUseHubGateway(input string) (*UseHubGateway, error) { - vals := map[string]UseHubGateway{ - "false": UseHubGatewayFalse, - "true": UseHubGatewayTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := UseHubGateway(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go deleted file mode 100644 index ae331bfec1d7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagereffectiveconnectivityconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroupProperties struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go deleted file mode 100644 index e90fd22ef318..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagereffectiveconnectivityconfiguration - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanagereffectiveconnectivityconfiguration/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md deleted file mode 100644 index 6fb874e9b9d6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md +++ /dev/null @@ -1,42 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules` Documentation - -The `networkmanagereffectivesecurityadminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules" -``` - - -### Client Initialization - -```go -client := networkmanagereffectivesecurityadminrules.NewNetworkManagerEffectiveSecurityAdminRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkManagerEffectiveSecurityAdminRulesClient.ListNetworkManagerEffectiveSecurityAdminRules` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -payload := networkmanagereffectivesecurityadminrules.QueryRequestOptions{ - // ... -} - - -read, err := client.ListNetworkManagerEffectiveSecurityAdminRules(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/constants.go deleted file mode 100644 index 280bd1bc97d2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/constants.go +++ /dev/null @@ -1,277 +0,0 @@ -package networkmanagereffectivesecurityadminrules - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AddressPrefixType string - -const ( - AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" - AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" -) - -func PossibleValuesForAddressPrefixType() []string { - return []string{ - string(AddressPrefixTypeIPPrefix), - string(AddressPrefixTypeServiceTag), - } -} - -func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAddressPrefixType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAddressPrefixType(input string) (*AddressPrefixType, error) { - vals := map[string]AddressPrefixType{ - "ipprefix": AddressPrefixTypeIPPrefix, - "servicetag": AddressPrefixTypeServiceTag, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AddressPrefixType(input) - return &out, nil -} - -type EffectiveAdminRuleKind string - -const ( - EffectiveAdminRuleKindCustom EffectiveAdminRuleKind = "Custom" - EffectiveAdminRuleKindDefault EffectiveAdminRuleKind = "Default" -) - -func PossibleValuesForEffectiveAdminRuleKind() []string { - return []string{ - string(EffectiveAdminRuleKindCustom), - string(EffectiveAdminRuleKindDefault), - } -} - -func (s *EffectiveAdminRuleKind) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseEffectiveAdminRuleKind(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseEffectiveAdminRuleKind(input string) (*EffectiveAdminRuleKind, error) { - vals := map[string]EffectiveAdminRuleKind{ - "custom": EffectiveAdminRuleKindCustom, - "default": EffectiveAdminRuleKindDefault, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := EffectiveAdminRuleKind(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type SecurityConfigurationRuleAccess string - -const ( - SecurityConfigurationRuleAccessAllow SecurityConfigurationRuleAccess = "Allow" - SecurityConfigurationRuleAccessAlwaysAllow SecurityConfigurationRuleAccess = "AlwaysAllow" - SecurityConfigurationRuleAccessDeny SecurityConfigurationRuleAccess = "Deny" -) - -func PossibleValuesForSecurityConfigurationRuleAccess() []string { - return []string{ - string(SecurityConfigurationRuleAccessAllow), - string(SecurityConfigurationRuleAccessAlwaysAllow), - string(SecurityConfigurationRuleAccessDeny), - } -} - -func (s *SecurityConfigurationRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleAccess(input string) (*SecurityConfigurationRuleAccess, error) { - vals := map[string]SecurityConfigurationRuleAccess{ - "allow": SecurityConfigurationRuleAccessAllow, - "alwaysallow": SecurityConfigurationRuleAccessAlwaysAllow, - "deny": SecurityConfigurationRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleAccess(input) - return &out, nil -} - -type SecurityConfigurationRuleDirection string - -const ( - SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" - SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityConfigurationRuleDirection() []string { - return []string{ - string(SecurityConfigurationRuleDirectionInbound), - string(SecurityConfigurationRuleDirectionOutbound), - } -} - -func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleDirection(input string) (*SecurityConfigurationRuleDirection, error) { - vals := map[string]SecurityConfigurationRuleDirection{ - "inbound": SecurityConfigurationRuleDirectionInbound, - "outbound": SecurityConfigurationRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleDirection(input) - return &out, nil -} - -type SecurityConfigurationRuleProtocol string - -const ( - SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" - SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" - SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" - SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" - SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" - SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityConfigurationRuleProtocol() []string { - return []string{ - string(SecurityConfigurationRuleProtocolAh), - string(SecurityConfigurationRuleProtocolAny), - string(SecurityConfigurationRuleProtocolEsp), - string(SecurityConfigurationRuleProtocolIcmp), - string(SecurityConfigurationRuleProtocolTcp), - string(SecurityConfigurationRuleProtocolUdp), - } -} - -func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityConfigurationRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityConfigurationRuleProtocol(input string) (*SecurityConfigurationRuleProtocol, error) { - vals := map[string]SecurityConfigurationRuleProtocol{ - "ah": SecurityConfigurationRuleProtocolAh, - "any": SecurityConfigurationRuleProtocolAny, - "esp": SecurityConfigurationRuleProtocolEsp, - "icmp": SecurityConfigurationRuleProtocolIcmp, - "tcp": SecurityConfigurationRuleProtocolTcp, - "udp": SecurityConfigurationRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityConfigurationRuleProtocol(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go deleted file mode 100644 index 5890d573ff44..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagereffectivesecurityadminrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetworkGroupProperties struct { - Description *string `json:"description,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go deleted file mode 100644 index 70a1bd7d6c87..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagereffectivesecurityadminrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanagereffectivesecurityadminrules/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md deleted file mode 100644 index 35f01c2151f8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md +++ /dev/null @@ -1,163 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers` Documentation - -The `networkmanagers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers" -``` - - -### Client Initialization - -```go -client := networkmanagers.NewNetworkManagersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkManagersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanagers.NetworkManager{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagersClient.Delete` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -if err := client.DeleteThenPoll(ctx, id, networkmanagers.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkManagersClient.Get` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id, networkmanagers.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, networkmanagers.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkManagersClient.ListBySubscription` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListBySubscription(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination -items, err := client.ListBySubscriptionComplete(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkManagersClient.NetworkManagerCommitsPost` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanagers.NetworkManagerCommit{ - // ... -} - - -if err := client.NetworkManagerCommitsPostThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkManagersClient.NetworkManagerDeploymentStatusList` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanagers.NetworkManagerDeploymentStatusParameter{ - // ... -} - - -read, err := client.NetworkManagerDeploymentStatusList(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkManagersClient.Patch` - -```go -ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -payload := networkmanagers.PatchObject{ - // ... -} - - -read, err := client.Patch(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/constants.go deleted file mode 100644 index 2aa86ac19639..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/constants.go +++ /dev/null @@ -1,145 +0,0 @@ -package networkmanagers - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ConfigurationType string - -const ( - ConfigurationTypeConnectivity ConfigurationType = "Connectivity" - ConfigurationTypeSecurityAdmin ConfigurationType = "SecurityAdmin" -) - -func PossibleValuesForConfigurationType() []string { - return []string{ - string(ConfigurationTypeConnectivity), - string(ConfigurationTypeSecurityAdmin), - } -} - -func (s *ConfigurationType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseConfigurationType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseConfigurationType(input string) (*ConfigurationType, error) { - vals := map[string]ConfigurationType{ - "connectivity": ConfigurationTypeConnectivity, - "securityadmin": ConfigurationTypeSecurityAdmin, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ConfigurationType(input) - return &out, nil -} - -type DeploymentStatus string - -const ( - DeploymentStatusDeployed DeploymentStatus = "Deployed" - DeploymentStatusDeploying DeploymentStatus = "Deploying" - DeploymentStatusFailed DeploymentStatus = "Failed" - DeploymentStatusNotStarted DeploymentStatus = "NotStarted" -) - -func PossibleValuesForDeploymentStatus() []string { - return []string{ - string(DeploymentStatusDeployed), - string(DeploymentStatusDeploying), - string(DeploymentStatusFailed), - string(DeploymentStatusNotStarted), - } -} - -func (s *DeploymentStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeploymentStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeploymentStatus(input string) (*DeploymentStatus, error) { - vals := map[string]DeploymentStatus{ - "deployed": DeploymentStatusDeployed, - "deploying": DeploymentStatusDeploying, - "failed": DeploymentStatusFailed, - "notstarted": DeploymentStatusNotStarted, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeploymentStatus(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go deleted file mode 100644 index 50a239122378..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkmanagers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkmanagers/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md deleted file mode 100644 index 1ce5978118fd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md +++ /dev/null @@ -1,125 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles` Documentation - -The `networkprofiles` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles" -``` - - -### Client Initialization - -```go -client := networkprofiles.NewNetworkProfilesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkProfilesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") - -payload := networkprofiles.NetworkProfile{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkProfilesClient.Delete` - -```go -ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkProfilesClient.Get` - -```go -ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") - -read, err := client.Get(ctx, id, networkprofiles.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkProfilesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkProfilesClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkProfilesClient.UpdateTags` - -```go -ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") - -payload := networkprofiles.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlog.go deleted file mode 100644 index f60e3c562cbc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogpropertiesformat.go deleted file mode 100644 index adaaab9bc0c0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceproperties.go deleted file mode 100644 index bc001bea3c03..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpropertiesformat.go deleted file mode 100644 index e791f2598de3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go deleted file mode 100644 index 69bb459bdeeb..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkprofiles - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkprofiles/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md deleted file mode 100644 index 9997da971d24..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md +++ /dev/null @@ -1,155 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances` Documentation - -The `networkvirtualappliances` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances" -``` - - -### Client Initialization - -```go -client := networkvirtualappliances.NewNetworkVirtualAppliancesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -payload := networkvirtualappliances.NetworkVirtualAppliance{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.Delete` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.Get` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -read, err := client.Get(ctx, id, networkvirtualappliances.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.InboundSecurityRuleCreateOrUpdate` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "inboundSecurityRuleName") - -payload := networkvirtualappliances.InboundSecurityRule{ - // ... -} - - -if err := client.InboundSecurityRuleCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.Restart` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -payload := networkvirtualappliances.NetworkVirtualApplianceInstanceIds{ - // ... -} - - -if err := client.RestartThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkVirtualAppliancesClient.UpdateTags` - -```go -ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -payload := networkvirtualappliances.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go deleted file mode 100644 index a69c27b0d17d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkvirtualappliances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkvirtualappliances/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md deleted file mode 100644 index d455e8793628..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md +++ /dev/null @@ -1,331 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers` Documentation - -The `networkwatchers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers" -``` - - -### Client Initialization - -```go -client := networkwatchers.NewNetworkWatchersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `NetworkWatchersClient.CheckConnectivity` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.ConnectivityParameters{ - // ... -} - - -if err := client.CheckConnectivityThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.NetworkWatcher{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.Delete` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.Get` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.GetAzureReachabilityReport` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.AzureReachabilityReportParameters{ - // ... -} - - -if err := client.GetAzureReachabilityReportThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetFlowLogStatus` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.FlowLogStatusParameters{ - // ... -} - - -if err := client.GetFlowLogStatusThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetNetworkConfigurationDiagnostic` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.NetworkConfigurationDiagnosticParameters{ - // ... -} - - -if err := client.GetNetworkConfigurationDiagnosticThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetNextHop` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.NextHopParameters{ - // ... -} - - -if err := client.GetNextHopThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetTopology` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.TopologyParameters{ - // ... -} - - -read, err := client.GetTopology(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.GetTroubleshooting` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.TroubleshootingParameters{ - // ... -} - - -if err := client.GetTroubleshootingThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetTroubleshootingResult` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.QueryTroubleshootingParameters{ - // ... -} - - -if err := client.GetTroubleshootingResultThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.GetVMSecurityRules` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.SecurityGroupViewParameters{ - // ... -} - - -if err := client.GetVMSecurityRulesThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -read, err := client.ListAll(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.ListAvailableProviders` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.AvailableProvidersListParameters{ - // ... -} - - -if err := client.ListAvailableProvidersThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.SetFlowLogConfiguration` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.FlowLogInformation{ - // ... -} - - -if err := client.SetFlowLogConfigurationThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `NetworkWatchersClient.UpdateTags` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `NetworkWatchersClient.VerifyIPFlow` - -```go -ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := networkwatchers.VerificationIPFlowParameters{ - // ... -} - - -if err := client.VerifyIPFlowThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowloginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowloginformation.go deleted file mode 100644 index e624cdf59fe3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowloginformation.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogInformation struct { - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Properties FlowLogProperties `json:"properties"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogproperties.go deleted file mode 100644 index c51e0fd967ec..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogProperties struct { - Enabled bool `json:"enabled"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go deleted file mode 100644 index 24d0fce3ffe2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package networkwatchers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/networkwatchers/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md deleted file mode 100644 index d71470116409..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md +++ /dev/null @@ -1,113 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways` Documentation - -The `p2svpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways" -``` - - -### Client Initialization - -```go -client := p2svpngateways.NewP2sVpnGatewaysClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `P2sVpnGatewaysClient.DisconnectP2sVpnConnections` - -```go -ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") - -payload := p2svpngateways.P2SVpnConnectionRequest{ - // ... -} - - -if err := client.DisconnectP2sVpnConnectionsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `P2sVpnGatewaysClient.GenerateVpnProfile` - -```go -ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") - -payload := p2svpngateways.P2SVpnProfileParameters{ - // ... -} - - -if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `P2sVpnGatewaysClient.GetP2sVpnConnectionHealth` - -```go -ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") - -if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `P2sVpnGatewaysClient.GetP2sVpnConnectionHealthDetailed` - -```go -ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") - -payload := p2svpngateways.P2SVpnConnectionHealthRequest{ - // ... -} - - -if err := client.GetP2sVpnConnectionHealthDetailedThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `P2sVpnGatewaysClient.Reset` - -```go -ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") - -if err := client.ResetThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `P2sVpnGatewaysClient.UpdateTags` - -```go -ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") - -payload := p2svpngateways.TagsObject{ - // ... -} - - -if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go deleted file mode 100644 index fe9fc581b5e7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package p2svpngateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/p2svpngateways/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md deleted file mode 100644 index e886067a2ed2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md +++ /dev/null @@ -1,105 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures` Documentation - -The `packetcaptures` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures" -``` - - -### Client Initialization - -```go -client := packetcaptures.NewPacketCapturesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PacketCapturesClient.Create` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -payload := packetcaptures.PacketCapture{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PacketCapturesClient.Delete` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PacketCapturesClient.Get` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PacketCapturesClient.GetStatus` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -if err := client.GetStatusThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PacketCapturesClient.List` - -```go -ctx := context.TODO() -id := packetcaptures.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PacketCapturesClient.Stop` - -```go -ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") - -if err := client.StopThenPoll(ctx, id); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go deleted file mode 100644 index 149c536f1d4b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package packetcaptures - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/packetcaptures/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md deleted file mode 100644 index 6c724acb780a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections` Documentation - -The `peerexpressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections" -``` - - -### Client Initialization - -```go -client := peerexpressroutecircuitconnections.NewPeerExpressRouteCircuitConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PeerExpressRouteCircuitConnectionsClient.Get` - -```go -ctx := context.TODO() -id := peerexpressroutecircuitconnections.NewPeerConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "peerConnectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PeerExpressRouteCircuitConnectionsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go deleted file mode 100644 index 20015a147315..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package peerexpressroutecircuitconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/peerexpressroutecircuitconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md deleted file mode 100644 index 2d5799b6f5da..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups` Documentation - -The `privatednszonegroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups" -``` - - -### Client Initialization - -```go -client := privatednszonegroups.NewPrivateDnsZoneGroupsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PrivateDnsZoneGroupsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") - -payload := privatednszonegroups.PrivateDnsZoneGroup{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateDnsZoneGroupsClient.Delete` - -```go -ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateDnsZoneGroupsClient.Get` - -```go -ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PrivateDnsZoneGroupsClient.List` - -```go -ctx := context.TODO() -id := privatednszonegroups.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go deleted file mode 100644 index 6ddb0eb09e16..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package privatednszonegroups - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/privatednszonegroups/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md deleted file mode 100644 index 2fe169fa1056..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md +++ /dev/null @@ -1,134 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints` Documentation - -The `privateendpoints` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints" -``` - - -### Client Initialization - -```go -client := privateendpoints.NewPrivateEndpointsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PrivateEndpointsClient.AvailablePrivateEndpointTypesList` - -```go -ctx := context.TODO() -id := privateendpoints.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.AvailablePrivateEndpointTypesList(ctx, id)` can be used to do batched pagination -items, err := client.AvailablePrivateEndpointTypesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PrivateEndpointsClient.AvailablePrivateEndpointTypesListByResourceGroup` - -```go -ctx := context.TODO() -id := privateendpoints.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") - -// alternatively `client.AvailablePrivateEndpointTypesListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.AvailablePrivateEndpointTypesListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PrivateEndpointsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") - -payload := privateendpoints.PrivateEndpoint{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateEndpointsClient.Delete` - -```go -ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PrivateEndpointsClient.Get` - -```go -ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") - -read, err := client.Get(ctx, id, privateendpoints.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PrivateEndpointsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PrivateEndpointsClient.ListBySubscription` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination -items, err := client.ListBySubscriptionComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlog.go deleted file mode 100644 index bce1bcfe8ad0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogpropertiesformat.go deleted file mode 100644 index 6f45378b9d17..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceproperties.go deleted file mode 100644 index d246ec00f40a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 5b54f3ef673c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go deleted file mode 100644 index 5181a4f29087..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateendpoints - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/privateendpoints/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md deleted file mode 100644 index bd760f92aebd..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md +++ /dev/null @@ -1,133 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses` Documentation - -The `publicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses" -``` - - -### Client Initialization - -```go -client := publicipaddresses.NewPublicIPAddressesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `PublicIPAddressesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -payload := publicipaddresses.PublicIPAddress{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `PublicIPAddressesClient.DdosProtectionStatus` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PublicIPAddressesClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `PublicIPAddressesClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `PublicIPAddressesClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PublicIPAddressesClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `PublicIPAddressesClient.UpdateTags` - -```go -ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") - -payload := publicipaddresses.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlog.go deleted file mode 100644 index 3ab56bececf5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogpropertiesformat.go deleted file mode 100644 index 6690c7ec8807..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceproperties.go deleted file mode 100644 index 7307dfa6a246..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 8d53fbdcd1e8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go deleted file mode 100644 index 52df067607a0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package publicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/publicipaddresses/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md deleted file mode 100644 index 15c8d0423ac7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules` Documentation - -The `routefilterrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules" -``` - - -### Client Initialization - -```go -client := routefilterrules.NewRouteFilterRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `RouteFilterRulesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "routeFilterRuleName") - -payload := routefilterrules.RouteFilterRule{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `RouteFilterRulesClient.Delete` - -```go -ctx := context.TODO() -id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "routeFilterRuleName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `RouteFilterRulesClient.Get` - -```go -ctx := context.TODO() -id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "routeFilterRuleName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RouteFilterRulesClient.ListByRouteFilter` - -```go -ctx := context.TODO() -id := routefilterrules.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -// alternatively `client.ListByRouteFilter(ctx, id)` can be used to do batched pagination -items, err := client.ListByRouteFilterComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go deleted file mode 100644 index af9896c7f073..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package routefilterrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/routefilterrules/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md deleted file mode 100644 index 1de10a5d3567..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters` Documentation - -The `routefilters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters" -``` - - -### Client Initialization - -```go -client := routefilters.NewRouteFiltersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `RouteFiltersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -payload := routefilters.RouteFilter{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `RouteFiltersClient.Delete` - -```go -ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `RouteFiltersClient.Get` - -```go -ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -read, err := client.Get(ctx, id, routefilters.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RouteFiltersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `RouteFiltersClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `RouteFiltersClient.UpdateTags` - -```go -ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") - -payload := routefilters.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go deleted file mode 100644 index 7b396bc540e7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package routefilters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/routefilters/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md deleted file mode 100644 index f9f99529dbc1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes` Documentation - -The `routes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes" -``` - - -### Client Initialization - -```go -client := routes.NewRoutesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `RoutesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") - -payload := routes.Route{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `RoutesClient.Delete` - -```go -ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `RoutesClient.Get` - -```go -ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `RoutesClient.List` - -```go -ctx := context.TODO() -id := routes.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go deleted file mode 100644 index b345e5186e5b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package routes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/routes/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md deleted file mode 100644 index 8fe6d3f7d00c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md +++ /dev/null @@ -1,90 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections` Documentation - -The `scopeconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections" -``` - - -### Client Initialization - -```go -client := scopeconnections.NewScopeConnectionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ScopeConnectionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") - -payload := scopeconnections.ScopeConnection{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ScopeConnectionsClient.Delete` - -```go -ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ScopeConnectionsClient.Get` - -```go -ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ScopeConnectionsClient.List` - -```go -ctx := context.TODO() -id := scopeconnections.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -// alternatively `client.List(ctx, id, scopeconnections.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, scopeconnections.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go deleted file mode 100644 index 0d7f8f4c7f4a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package scopeconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/scopeconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md deleted file mode 100644 index dd44c24e5002..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations` Documentation - -The `securityadminconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations" -``` - - -### Client Initialization - -```go -client := securityadminconfigurations.NewSecurityAdminConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SecurityAdminConfigurationsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") - -payload := securityadminconfigurations.SecurityAdminConfiguration{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityAdminConfigurationsClient.Delete` - -```go -ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") - -if err := client.DeleteThenPoll(ctx, id, securityadminconfigurations.DefaultDeleteOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityAdminConfigurationsClient.Get` - -```go -ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityAdminConfigurationsClient.List` - -```go -ctx := context.TODO() -id := securityadminconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") - -// alternatively `client.List(ctx, id, securityadminconfigurations.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, securityadminconfigurations.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go deleted file mode 100644 index 6e069e589d3a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package securityadminconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/securityadminconfigurations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md deleted file mode 100644 index 84517d3ef7cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md +++ /dev/null @@ -1,121 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders` Documentation - -The `securitypartnerproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders" -``` - - -### Client Initialization - -```go -client := securitypartnerproviders.NewSecurityPartnerProvidersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SecurityPartnerProvidersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") - -payload := securitypartnerproviders.SecurityPartnerProvider{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.Delete` - -```go -ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.Get` - -```go -ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `SecurityPartnerProvidersClient.UpdateTags` - -```go -ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") - -payload := securitypartnerproviders.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go deleted file mode 100644 index f39202b8b1b4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package securitypartnerproviders - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/securitypartnerproviders/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md deleted file mode 100644 index ad31a0539efa..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md +++ /dev/null @@ -1,115 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules` Documentation - -The `securityrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules" -``` - - -### Client Initialization - -```go -client := securityrules.NewSecurityRulesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `SecurityRulesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") - -payload := securityrules.SecurityRule{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityRulesClient.DefaultSecurityRulesGet` - -```go -ctx := context.TODO() -id := securityrules.NewDefaultSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "defaultSecurityRuleName") - -read, err := client.DefaultSecurityRulesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityRulesClient.DefaultSecurityRulesList` - -```go -ctx := context.TODO() -id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") - -// alternatively `client.DefaultSecurityRulesList(ctx, id)` can be used to do batched pagination -items, err := client.DefaultSecurityRulesListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `SecurityRulesClient.Delete` - -```go -ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `SecurityRulesClient.Get` - -```go -ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `SecurityRulesClient.List` - -```go -ctx := context.TODO() -id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go deleted file mode 100644 index eb8a34469b80..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package securityrules - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/securityrules/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md deleted file mode 100644 index cbe875beabc6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions` Documentation - -The `serviceendpointpolicydefinitions` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions" -``` - - -### Client Initialization - -```go -client := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ServiceEndpointPolicyDefinitionsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") - -payload := serviceendpointpolicydefinitions.ServiceEndpointPolicyDefinition{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `ServiceEndpointPolicyDefinitionsClient.Delete` - -```go -ctx := context.TODO() -id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `ServiceEndpointPolicyDefinitionsClient.Get` - -```go -ctx := context.TODO() -id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `ServiceEndpointPolicyDefinitionsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go deleted file mode 100644 index 4fad17904f57..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package serviceendpointpolicydefinitions - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/serviceendpointpolicydefinitions/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md deleted file mode 100644 index 5839bbaed506..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md +++ /dev/null @@ -1,53 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags` Documentation - -The `servicetags` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags" -``` - - -### Client Initialization - -```go -client := servicetags.NewServiceTagsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `ServiceTagsClient.ServiceTagInformationList` - -```go -ctx := context.TODO() -id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.ServiceTagInformationList(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions())` can be used to do batched pagination -items, err := client.ServiceTagInformationListComplete(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `ServiceTagsClient.ServiceTagsList` - -```go -ctx := context.TODO() -id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -read, err := client.ServiceTagsList(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go deleted file mode 100644 index bc7a69e798e4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package servicetags - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/servicetags/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md deleted file mode 100644 index 8704ed2ed7bc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md +++ /dev/null @@ -1,90 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers` Documentation - -The `staticmembers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers" -``` - - -### Client Initialization - -```go -client := staticmembers.NewStaticMembersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `StaticMembersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") - -payload := staticmembers.StaticMember{ - // ... -} - - -read, err := client.CreateOrUpdate(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `StaticMembersClient.Delete` - -```go -ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") - -read, err := client.Delete(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `StaticMembersClient.Get` - -```go -ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `StaticMembersClient.List` - -```go -ctx := context.TODO() -id := staticmembers.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") - -// alternatively `client.List(ctx, id, staticmembers.DefaultListOperationOptions())` can be used to do batched pagination -items, err := client.ListComplete(ctx, id, staticmembers.DefaultListOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go deleted file mode 100644 index 4e136e775aab..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package staticmembers - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/staticmembers/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md deleted file mode 100644 index c081df22d795..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics` Documentation - -The `trafficanalytics` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics" -``` - - -### Client Initialization - -```go -client := trafficanalytics.NewTrafficAnalyticsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `TrafficAnalyticsClient.NetworkWatchersGetFlowLogStatus` - -```go -ctx := context.TODO() -id := trafficanalytics.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := trafficanalytics.FlowLogStatusParameters{ - // ... -} - - -if err := client.NetworkWatchersGetFlowLogStatusThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `TrafficAnalyticsClient.NetworkWatchersSetFlowLogConfiguration` - -```go -ctx := context.TODO() -id := trafficanalytics.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") - -payload := trafficanalytics.FlowLogInformation{ - // ... -} - - -if err := client.NetworkWatchersSetFlowLogConfigurationThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowloginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowloginformation.go deleted file mode 100644 index 15a1cc0029d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowloginformation.go +++ /dev/null @@ -1,10 +0,0 @@ -package trafficanalytics - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogInformation struct { - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Properties FlowLogProperties `json:"properties"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogproperties.go deleted file mode 100644 index b26bd4b572a3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogproperties.go +++ /dev/null @@ -1,11 +0,0 @@ -package trafficanalytics - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogProperties struct { - Enabled bool `json:"enabled"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go deleted file mode 100644 index ca09dc5d2324..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package trafficanalytics - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/trafficanalytics/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md deleted file mode 100644 index 577a5f5efff6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md +++ /dev/null @@ -1,37 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages` Documentation - -The `usages` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages" -``` - - -### Client Initialization - -```go -client := usages.NewUsagesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `UsagesClient.List` - -```go -ctx := context.TODO() -id := usages.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go deleted file mode 100644 index 1f75d534194e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package usages - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/usages/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md deleted file mode 100644 index 0cfa64fa81a5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md +++ /dev/null @@ -1,69 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap` Documentation - -The `vipswap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap" -``` - - -### Client Initialization - -```go -client := vipswap.NewVipSwapClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VipSwapClient.Create` - -```go -ctx := context.TODO() -id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "cloudServiceName") - -payload := vipswap.SwapResource{ - // ... -} - - -if err := client.CreateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VipSwapClient.Get` - -```go -ctx := context.TODO() -id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "cloudServiceName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VipSwapClient.List` - -```go -ctx := context.TODO() -id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "cloudServiceName") - -read, err := client.List(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go deleted file mode 100644 index e6db46609f42..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package vipswap - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/vipswap/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md deleted file mode 100644 index 8b58521ebf54..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md +++ /dev/null @@ -1,82 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites` Documentation - -The `virtualappliancesites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites" -``` - - -### Client Initialization - -```go -client := virtualappliancesites.NewVirtualApplianceSitesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualApplianceSitesClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "virtualApplianceSiteName") - -payload := virtualappliancesites.VirtualApplianceSite{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualApplianceSitesClient.Delete` - -```go -ctx := context.TODO() -id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "virtualApplianceSiteName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualApplianceSitesClient.Get` - -```go -ctx := context.TODO() -id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "virtualApplianceSiteName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualApplianceSitesClient.List` - -```go -ctx := context.TODO() -id := virtualappliancesites.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go deleted file mode 100644 index 7138ce3a1ee1..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualappliancesites - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualappliancesites/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md deleted file mode 100644 index 32b379d0ad3f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus` Documentation - -The `virtualapplianceskus` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus" -``` - - -### Client Initialization - -```go -client := virtualapplianceskus.NewVirtualApplianceSkusClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualApplianceSkusClient.Get` - -```go -ctx := context.TODO() -id := virtualapplianceskus.NewNetworkVirtualApplianceSkuID("12345678-1234-9876-4563-123456789012", "networkVirtualApplianceSkuName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualApplianceSkusClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go deleted file mode 100644 index a532397fa46e..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualapplianceskus - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualapplianceskus/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md deleted file mode 100644 index edc1660ccc6c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md +++ /dev/null @@ -1,414 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways` Documentation - -The `virtualnetworkgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways" -``` - - -### Client Initialization - -```go -client := virtualnetworkgateways.NewVirtualNetworkGatewaysClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VirtualNetworkGateway{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.Delete` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.DisconnectVirtualNetworkGatewayVpnConnections` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.P2SVpnConnectionRequest{ - // ... -} - - -if err := client.DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GenerateVpnProfile` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnClientParameters{ - // ... -} - - -if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.Generatevpnclientpackage` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnClientParameters{ - // ... -} - - -if err := client.GeneratevpnclientpackageThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.Get` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetAdvertisedRoutes` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetAdvertisedRoutesThenPoll(ctx, id, virtualnetworkgateways.DefaultGetAdvertisedRoutesOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetBgpPeerStatus` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetBgpPeerStatusThenPoll(ctx, id, virtualnetworkgateways.DefaultGetBgpPeerStatusOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetLearnedRoutes` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetLearnedRoutesThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetVpnProfilePackageURL` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetVpnProfilePackageURLThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetVpnclientConnectionHealth` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetVpnclientConnectionHealthThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.GetVpnclientIPsecParameters` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.ListConnections` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -// alternatively `client.ListConnections(ctx, id)` can be used to do batched pagination -items, err := client.ListConnectionsComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.Reset` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.ResetThenPoll(ctx, id, virtualnetworkgateways.DefaultResetOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.ResetVpnClientSharedKey` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -if err := client.ResetVpnClientSharedKeyThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.SetVpnclientIPsecParameters` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnClientIPsecParameters{ - // ... -} - - -if err := client.SetVpnclientIPsecParametersThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.StartPacketCapture` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnPacketCaptureStartParameters{ - // ... -} - - -if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.StopPacketCapture` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.VpnPacketCaptureStopParameters{ - // ... -} - - -if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.SupportedVpnDevices` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -read, err := client.SupportedVpnDevices(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.UpdateTags` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -payload := virtualnetworkgateways.TagsObject{ - // ... -} - - -if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesCreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") - -payload := virtualnetworkgateways.VirtualNetworkGatewayNatRule{ - // ... -} - - -if err := client.VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesDelete` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") - -if err := client.VirtualNetworkGatewayNatRulesDeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesGet` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") - -read, err := client.VirtualNetworkGatewayNatRulesGet(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") - -// alternatively `client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx, id)` can be used to do batched pagination -items, err := client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworkGatewaysClient.VpnDeviceConfigurationScript` - -```go -ctx := context.TODO() -id := virtualnetworkgateways.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") - -payload := virtualnetworkgateways.VpnDeviceScriptParameters{ - // ... -} - - -read, err := client.VpnDeviceConfigurationScript(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/constants.go deleted file mode 100644 index 16875bf90485..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/constants.go +++ /dev/null @@ -1,1316 +0,0 @@ -package virtualnetworkgateways - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type AdminState string - -const ( - AdminStateDisabled AdminState = "Disabled" - AdminStateEnabled AdminState = "Enabled" -) - -func PossibleValuesForAdminState() []string { - return []string{ - string(AdminStateDisabled), - string(AdminStateEnabled), - } -} - -func (s *AdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAdminState(input string) (*AdminState, error) { - vals := map[string]AdminState{ - "disabled": AdminStateDisabled, - "enabled": AdminStateEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AdminState(input) - return &out, nil -} - -type AuthenticationMethod string - -const ( - AuthenticationMethodEAPMSCHAPvTwo AuthenticationMethod = "EAPMSCHAPv2" - AuthenticationMethodEAPTLS AuthenticationMethod = "EAPTLS" -) - -func PossibleValuesForAuthenticationMethod() []string { - return []string{ - string(AuthenticationMethodEAPMSCHAPvTwo), - string(AuthenticationMethodEAPTLS), - } -} - -func (s *AuthenticationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAuthenticationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAuthenticationMethod(input string) (*AuthenticationMethod, error) { - vals := map[string]AuthenticationMethod{ - "eapmschapv2": AuthenticationMethodEAPMSCHAPvTwo, - "eaptls": AuthenticationMethodEAPTLS, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AuthenticationMethod(input) - return &out, nil -} - -type BgpPeerState string - -const ( - BgpPeerStateConnected BgpPeerState = "Connected" - BgpPeerStateConnecting BgpPeerState = "Connecting" - BgpPeerStateIdle BgpPeerState = "Idle" - BgpPeerStateStopped BgpPeerState = "Stopped" - BgpPeerStateUnknown BgpPeerState = "Unknown" -) - -func PossibleValuesForBgpPeerState() []string { - return []string{ - string(BgpPeerStateConnected), - string(BgpPeerStateConnecting), - string(BgpPeerStateIdle), - string(BgpPeerStateStopped), - string(BgpPeerStateUnknown), - } -} - -func (s *BgpPeerState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseBgpPeerState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseBgpPeerState(input string) (*BgpPeerState, error) { - vals := map[string]BgpPeerState{ - "connected": BgpPeerStateConnected, - "connecting": BgpPeerStateConnecting, - "idle": BgpPeerStateIdle, - "stopped": BgpPeerStateStopped, - "unknown": BgpPeerStateUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := BgpPeerState(input) - return &out, nil -} - -type DhGroup string - -const ( - DhGroupDHGroupOne DhGroup = "DHGroup1" - DhGroupDHGroupOneFour DhGroup = "DHGroup14" - DhGroupDHGroupTwo DhGroup = "DHGroup2" - DhGroupDHGroupTwoFour DhGroup = "DHGroup24" - DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048" - DhGroupECPThreeEightFour DhGroup = "ECP384" - DhGroupECPTwoFiveSix DhGroup = "ECP256" - DhGroupNone DhGroup = "None" -) - -func PossibleValuesForDhGroup() []string { - return []string{ - string(DhGroupDHGroupOne), - string(DhGroupDHGroupOneFour), - string(DhGroupDHGroupTwo), - string(DhGroupDHGroupTwoFour), - string(DhGroupDHGroupTwoZeroFourEight), - string(DhGroupECPThreeEightFour), - string(DhGroupECPTwoFiveSix), - string(DhGroupNone), - } -} - -func (s *DhGroup) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDhGroup(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDhGroup(input string) (*DhGroup, error) { - vals := map[string]DhGroup{ - "dhgroup1": DhGroupDHGroupOne, - "dhgroup14": DhGroupDHGroupOneFour, - "dhgroup2": DhGroupDHGroupTwo, - "dhgroup24": DhGroupDHGroupTwoFour, - "dhgroup2048": DhGroupDHGroupTwoZeroFourEight, - "ecp384": DhGroupECPThreeEightFour, - "ecp256": DhGroupECPTwoFiveSix, - "none": DhGroupNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DhGroup(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPsecEncryption string - -const ( - IPsecEncryptionAESOneNineTwo IPsecEncryption = "AES192" - IPsecEncryptionAESOneTwoEight IPsecEncryption = "AES128" - IPsecEncryptionAESTwoFiveSix IPsecEncryption = "AES256" - IPsecEncryptionDES IPsecEncryption = "DES" - IPsecEncryptionDESThree IPsecEncryption = "DES3" - IPsecEncryptionGCMAESOneNineTwo IPsecEncryption = "GCMAES192" - IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128" - IPsecEncryptionGCMAESTwoFiveSix IPsecEncryption = "GCMAES256" - IPsecEncryptionNone IPsecEncryption = "None" -) - -func PossibleValuesForIPsecEncryption() []string { - return []string{ - string(IPsecEncryptionAESOneNineTwo), - string(IPsecEncryptionAESOneTwoEight), - string(IPsecEncryptionAESTwoFiveSix), - string(IPsecEncryptionDES), - string(IPsecEncryptionDESThree), - string(IPsecEncryptionGCMAESOneNineTwo), - string(IPsecEncryptionGCMAESOneTwoEight), - string(IPsecEncryptionGCMAESTwoFiveSix), - string(IPsecEncryptionNone), - } -} - -func (s *IPsecEncryption) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPsecEncryption(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPsecEncryption(input string) (*IPsecEncryption, error) { - vals := map[string]IPsecEncryption{ - "aes192": IPsecEncryptionAESOneNineTwo, - "aes128": IPsecEncryptionAESOneTwoEight, - "aes256": IPsecEncryptionAESTwoFiveSix, - "des": IPsecEncryptionDES, - "des3": IPsecEncryptionDESThree, - "gcmaes192": IPsecEncryptionGCMAESOneNineTwo, - "gcmaes128": IPsecEncryptionGCMAESOneTwoEight, - "gcmaes256": IPsecEncryptionGCMAESTwoFiveSix, - "none": IPsecEncryptionNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPsecEncryption(input) - return &out, nil -} - -type IPsecIntegrity string - -const ( - IPsecIntegrityGCMAESOneNineTwo IPsecIntegrity = "GCMAES192" - IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128" - IPsecIntegrityGCMAESTwoFiveSix IPsecIntegrity = "GCMAES256" - IPsecIntegrityMDFive IPsecIntegrity = "MD5" - IPsecIntegritySHAOne IPsecIntegrity = "SHA1" - IPsecIntegritySHATwoFiveSix IPsecIntegrity = "SHA256" -) - -func PossibleValuesForIPsecIntegrity() []string { - return []string{ - string(IPsecIntegrityGCMAESOneNineTwo), - string(IPsecIntegrityGCMAESOneTwoEight), - string(IPsecIntegrityGCMAESTwoFiveSix), - string(IPsecIntegrityMDFive), - string(IPsecIntegritySHAOne), - string(IPsecIntegritySHATwoFiveSix), - } -} - -func (s *IPsecIntegrity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPsecIntegrity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPsecIntegrity(input string) (*IPsecIntegrity, error) { - vals := map[string]IPsecIntegrity{ - "gcmaes192": IPsecIntegrityGCMAESOneNineTwo, - "gcmaes128": IPsecIntegrityGCMAESOneTwoEight, - "gcmaes256": IPsecIntegrityGCMAESTwoFiveSix, - "md5": IPsecIntegrityMDFive, - "sha1": IPsecIntegritySHAOne, - "sha256": IPsecIntegritySHATwoFiveSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPsecIntegrity(input) - return &out, nil -} - -type IkeEncryption string - -const ( - IkeEncryptionAESOneNineTwo IkeEncryption = "AES192" - IkeEncryptionAESOneTwoEight IkeEncryption = "AES128" - IkeEncryptionAESTwoFiveSix IkeEncryption = "AES256" - IkeEncryptionDES IkeEncryption = "DES" - IkeEncryptionDESThree IkeEncryption = "DES3" - IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128" - IkeEncryptionGCMAESTwoFiveSix IkeEncryption = "GCMAES256" -) - -func PossibleValuesForIkeEncryption() []string { - return []string{ - string(IkeEncryptionAESOneNineTwo), - string(IkeEncryptionAESOneTwoEight), - string(IkeEncryptionAESTwoFiveSix), - string(IkeEncryptionDES), - string(IkeEncryptionDESThree), - string(IkeEncryptionGCMAESOneTwoEight), - string(IkeEncryptionGCMAESTwoFiveSix), - } -} - -func (s *IkeEncryption) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIkeEncryption(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIkeEncryption(input string) (*IkeEncryption, error) { - vals := map[string]IkeEncryption{ - "aes192": IkeEncryptionAESOneNineTwo, - "aes128": IkeEncryptionAESOneTwoEight, - "aes256": IkeEncryptionAESTwoFiveSix, - "des": IkeEncryptionDES, - "des3": IkeEncryptionDESThree, - "gcmaes128": IkeEncryptionGCMAESOneTwoEight, - "gcmaes256": IkeEncryptionGCMAESTwoFiveSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IkeEncryption(input) - return &out, nil -} - -type IkeIntegrity string - -const ( - IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128" - IkeIntegrityGCMAESTwoFiveSix IkeIntegrity = "GCMAES256" - IkeIntegrityMDFive IkeIntegrity = "MD5" - IkeIntegritySHAOne IkeIntegrity = "SHA1" - IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384" - IkeIntegritySHATwoFiveSix IkeIntegrity = "SHA256" -) - -func PossibleValuesForIkeIntegrity() []string { - return []string{ - string(IkeIntegrityGCMAESOneTwoEight), - string(IkeIntegrityGCMAESTwoFiveSix), - string(IkeIntegrityMDFive), - string(IkeIntegritySHAOne), - string(IkeIntegritySHAThreeEightFour), - string(IkeIntegritySHATwoFiveSix), - } -} - -func (s *IkeIntegrity) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIkeIntegrity(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIkeIntegrity(input string) (*IkeIntegrity, error) { - vals := map[string]IkeIntegrity{ - "gcmaes128": IkeIntegrityGCMAESOneTwoEight, - "gcmaes256": IkeIntegrityGCMAESTwoFiveSix, - "md5": IkeIntegrityMDFive, - "sha1": IkeIntegritySHAOne, - "sha384": IkeIntegritySHAThreeEightFour, - "sha256": IkeIntegritySHATwoFiveSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IkeIntegrity(input) - return &out, nil -} - -type PfsGroup string - -const ( - PfsGroupECPThreeEightFour PfsGroup = "ECP384" - PfsGroupECPTwoFiveSix PfsGroup = "ECP256" - PfsGroupNone PfsGroup = "None" - PfsGroupPFSMM PfsGroup = "PFSMM" - PfsGroupPFSOne PfsGroup = "PFS1" - PfsGroupPFSOneFour PfsGroup = "PFS14" - PfsGroupPFSTwo PfsGroup = "PFS2" - PfsGroupPFSTwoFour PfsGroup = "PFS24" - PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048" -) - -func PossibleValuesForPfsGroup() []string { - return []string{ - string(PfsGroupECPThreeEightFour), - string(PfsGroupECPTwoFiveSix), - string(PfsGroupNone), - string(PfsGroupPFSMM), - string(PfsGroupPFSOne), - string(PfsGroupPFSOneFour), - string(PfsGroupPFSTwo), - string(PfsGroupPFSTwoFour), - string(PfsGroupPFSTwoZeroFourEight), - } -} - -func (s *PfsGroup) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePfsGroup(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePfsGroup(input string) (*PfsGroup, error) { - vals := map[string]PfsGroup{ - "ecp384": PfsGroupECPThreeEightFour, - "ecp256": PfsGroupECPTwoFiveSix, - "none": PfsGroupNone, - "pfsmm": PfsGroupPFSMM, - "pfs1": PfsGroupPFSOne, - "pfs14": PfsGroupPFSOneFour, - "pfs2": PfsGroupPFSTwo, - "pfs24": PfsGroupPFSTwoFour, - "pfs2048": PfsGroupPFSTwoZeroFourEight, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PfsGroup(input) - return &out, nil -} - -type ProcessorArchitecture string - -const ( - ProcessorArchitectureAmdSixFour ProcessorArchitecture = "Amd64" - ProcessorArchitectureXEightSix ProcessorArchitecture = "X86" -) - -func PossibleValuesForProcessorArchitecture() []string { - return []string{ - string(ProcessorArchitectureAmdSixFour), - string(ProcessorArchitectureXEightSix), - } -} - -func (s *ProcessorArchitecture) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProcessorArchitecture(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProcessorArchitecture(input string) (*ProcessorArchitecture, error) { - vals := map[string]ProcessorArchitecture{ - "amd64": ProcessorArchitectureAmdSixFour, - "x86": ProcessorArchitectureXEightSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProcessorArchitecture(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type VirtualNetworkGatewayConnectionMode string - -const ( - VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = "Default" - VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = "InitiatorOnly" - VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = "ResponderOnly" -) - -func PossibleValuesForVirtualNetworkGatewayConnectionMode() []string { - return []string{ - string(VirtualNetworkGatewayConnectionModeDefault), - string(VirtualNetworkGatewayConnectionModeInitiatorOnly), - string(VirtualNetworkGatewayConnectionModeResponderOnly), - } -} - -func (s *VirtualNetworkGatewayConnectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayConnectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayConnectionMode(input string) (*VirtualNetworkGatewayConnectionMode, error) { - vals := map[string]VirtualNetworkGatewayConnectionMode{ - "default": VirtualNetworkGatewayConnectionModeDefault, - "initiatoronly": VirtualNetworkGatewayConnectionModeInitiatorOnly, - "responderonly": VirtualNetworkGatewayConnectionModeResponderOnly, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayConnectionMode(input) - return &out, nil -} - -type VirtualNetworkGatewayConnectionProtocol string - -const ( - VirtualNetworkGatewayConnectionProtocolIKEvOne VirtualNetworkGatewayConnectionProtocol = "IKEv1" - VirtualNetworkGatewayConnectionProtocolIKEvTwo VirtualNetworkGatewayConnectionProtocol = "IKEv2" -) - -func PossibleValuesForVirtualNetworkGatewayConnectionProtocol() []string { - return []string{ - string(VirtualNetworkGatewayConnectionProtocolIKEvOne), - string(VirtualNetworkGatewayConnectionProtocolIKEvTwo), - } -} - -func (s *VirtualNetworkGatewayConnectionProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayConnectionProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayConnectionProtocol(input string) (*VirtualNetworkGatewayConnectionProtocol, error) { - vals := map[string]VirtualNetworkGatewayConnectionProtocol{ - "ikev1": VirtualNetworkGatewayConnectionProtocolIKEvOne, - "ikev2": VirtualNetworkGatewayConnectionProtocolIKEvTwo, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayConnectionProtocol(input) - return &out, nil -} - -type VirtualNetworkGatewayConnectionStatus string - -const ( - VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected" - VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting" - VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected" - VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown" -) - -func PossibleValuesForVirtualNetworkGatewayConnectionStatus() []string { - return []string{ - string(VirtualNetworkGatewayConnectionStatusConnected), - string(VirtualNetworkGatewayConnectionStatusConnecting), - string(VirtualNetworkGatewayConnectionStatusNotConnected), - string(VirtualNetworkGatewayConnectionStatusUnknown), - } -} - -func (s *VirtualNetworkGatewayConnectionStatus) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayConnectionStatus(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayConnectionStatus(input string) (*VirtualNetworkGatewayConnectionStatus, error) { - vals := map[string]VirtualNetworkGatewayConnectionStatus{ - "connected": VirtualNetworkGatewayConnectionStatusConnected, - "connecting": VirtualNetworkGatewayConnectionStatusConnecting, - "notconnected": VirtualNetworkGatewayConnectionStatusNotConnected, - "unknown": VirtualNetworkGatewayConnectionStatusUnknown, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayConnectionStatus(input) - return &out, nil -} - -type VirtualNetworkGatewayConnectionType string - -const ( - VirtualNetworkGatewayConnectionTypeExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute" - VirtualNetworkGatewayConnectionTypeIPsec VirtualNetworkGatewayConnectionType = "IPsec" - VirtualNetworkGatewayConnectionTypeVPNClient VirtualNetworkGatewayConnectionType = "VPNClient" - VirtualNetworkGatewayConnectionTypeVnetTwoVnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet" -) - -func PossibleValuesForVirtualNetworkGatewayConnectionType() []string { - return []string{ - string(VirtualNetworkGatewayConnectionTypeExpressRoute), - string(VirtualNetworkGatewayConnectionTypeIPsec), - string(VirtualNetworkGatewayConnectionTypeVPNClient), - string(VirtualNetworkGatewayConnectionTypeVnetTwoVnet), - } -} - -func (s *VirtualNetworkGatewayConnectionType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayConnectionType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayConnectionType(input string) (*VirtualNetworkGatewayConnectionType, error) { - vals := map[string]VirtualNetworkGatewayConnectionType{ - "expressroute": VirtualNetworkGatewayConnectionTypeExpressRoute, - "ipsec": VirtualNetworkGatewayConnectionTypeIPsec, - "vpnclient": VirtualNetworkGatewayConnectionTypeVPNClient, - "vnet2vnet": VirtualNetworkGatewayConnectionTypeVnetTwoVnet, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayConnectionType(input) - return &out, nil -} - -type VirtualNetworkGatewaySkuName string - -const ( - VirtualNetworkGatewaySkuNameBasic VirtualNetworkGatewaySkuName = "Basic" - VirtualNetworkGatewaySkuNameErGwOneAZ VirtualNetworkGatewaySkuName = "ErGw1AZ" - VirtualNetworkGatewaySkuNameErGwScale VirtualNetworkGatewaySkuName = "ErGwScale" - VirtualNetworkGatewaySkuNameErGwThreeAZ VirtualNetworkGatewaySkuName = "ErGw3AZ" - VirtualNetworkGatewaySkuNameErGwTwoAZ VirtualNetworkGatewaySkuName = "ErGw2AZ" - VirtualNetworkGatewaySkuNameHighPerformance VirtualNetworkGatewaySkuName = "HighPerformance" - VirtualNetworkGatewaySkuNameStandard VirtualNetworkGatewaySkuName = "Standard" - VirtualNetworkGatewaySkuNameUltraPerformance VirtualNetworkGatewaySkuName = "UltraPerformance" - VirtualNetworkGatewaySkuNameVpnGwFive VirtualNetworkGatewaySkuName = "VpnGw5" - VirtualNetworkGatewaySkuNameVpnGwFiveAZ VirtualNetworkGatewaySkuName = "VpnGw5AZ" - VirtualNetworkGatewaySkuNameVpnGwFour VirtualNetworkGatewaySkuName = "VpnGw4" - VirtualNetworkGatewaySkuNameVpnGwFourAZ VirtualNetworkGatewaySkuName = "VpnGw4AZ" - VirtualNetworkGatewaySkuNameVpnGwOne VirtualNetworkGatewaySkuName = "VpnGw1" - VirtualNetworkGatewaySkuNameVpnGwOneAZ VirtualNetworkGatewaySkuName = "VpnGw1AZ" - VirtualNetworkGatewaySkuNameVpnGwThree VirtualNetworkGatewaySkuName = "VpnGw3" - VirtualNetworkGatewaySkuNameVpnGwThreeAZ VirtualNetworkGatewaySkuName = "VpnGw3AZ" - VirtualNetworkGatewaySkuNameVpnGwTwo VirtualNetworkGatewaySkuName = "VpnGw2" - VirtualNetworkGatewaySkuNameVpnGwTwoAZ VirtualNetworkGatewaySkuName = "VpnGw2AZ" -) - -func PossibleValuesForVirtualNetworkGatewaySkuName() []string { - return []string{ - string(VirtualNetworkGatewaySkuNameBasic), - string(VirtualNetworkGatewaySkuNameErGwOneAZ), - string(VirtualNetworkGatewaySkuNameErGwScale), - string(VirtualNetworkGatewaySkuNameErGwThreeAZ), - string(VirtualNetworkGatewaySkuNameErGwTwoAZ), - string(VirtualNetworkGatewaySkuNameHighPerformance), - string(VirtualNetworkGatewaySkuNameStandard), - string(VirtualNetworkGatewaySkuNameUltraPerformance), - string(VirtualNetworkGatewaySkuNameVpnGwFive), - string(VirtualNetworkGatewaySkuNameVpnGwFiveAZ), - string(VirtualNetworkGatewaySkuNameVpnGwFour), - string(VirtualNetworkGatewaySkuNameVpnGwFourAZ), - string(VirtualNetworkGatewaySkuNameVpnGwOne), - string(VirtualNetworkGatewaySkuNameVpnGwOneAZ), - string(VirtualNetworkGatewaySkuNameVpnGwThree), - string(VirtualNetworkGatewaySkuNameVpnGwThreeAZ), - string(VirtualNetworkGatewaySkuNameVpnGwTwo), - string(VirtualNetworkGatewaySkuNameVpnGwTwoAZ), - } -} - -func (s *VirtualNetworkGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewaySkuName(input string) (*VirtualNetworkGatewaySkuName, error) { - vals := map[string]VirtualNetworkGatewaySkuName{ - "basic": VirtualNetworkGatewaySkuNameBasic, - "ergw1az": VirtualNetworkGatewaySkuNameErGwOneAZ, - "ergwscale": VirtualNetworkGatewaySkuNameErGwScale, - "ergw3az": VirtualNetworkGatewaySkuNameErGwThreeAZ, - "ergw2az": VirtualNetworkGatewaySkuNameErGwTwoAZ, - "highperformance": VirtualNetworkGatewaySkuNameHighPerformance, - "standard": VirtualNetworkGatewaySkuNameStandard, - "ultraperformance": VirtualNetworkGatewaySkuNameUltraPerformance, - "vpngw5": VirtualNetworkGatewaySkuNameVpnGwFive, - "vpngw5az": VirtualNetworkGatewaySkuNameVpnGwFiveAZ, - "vpngw4": VirtualNetworkGatewaySkuNameVpnGwFour, - "vpngw4az": VirtualNetworkGatewaySkuNameVpnGwFourAZ, - "vpngw1": VirtualNetworkGatewaySkuNameVpnGwOne, - "vpngw1az": VirtualNetworkGatewaySkuNameVpnGwOneAZ, - "vpngw3": VirtualNetworkGatewaySkuNameVpnGwThree, - "vpngw3az": VirtualNetworkGatewaySkuNameVpnGwThreeAZ, - "vpngw2": VirtualNetworkGatewaySkuNameVpnGwTwo, - "vpngw2az": VirtualNetworkGatewaySkuNameVpnGwTwoAZ, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewaySkuName(input) - return &out, nil -} - -type VirtualNetworkGatewaySkuTier string - -const ( - VirtualNetworkGatewaySkuTierBasic VirtualNetworkGatewaySkuTier = "Basic" - VirtualNetworkGatewaySkuTierErGwOneAZ VirtualNetworkGatewaySkuTier = "ErGw1AZ" - VirtualNetworkGatewaySkuTierErGwScale VirtualNetworkGatewaySkuTier = "ErGwScale" - VirtualNetworkGatewaySkuTierErGwThreeAZ VirtualNetworkGatewaySkuTier = "ErGw3AZ" - VirtualNetworkGatewaySkuTierErGwTwoAZ VirtualNetworkGatewaySkuTier = "ErGw2AZ" - VirtualNetworkGatewaySkuTierHighPerformance VirtualNetworkGatewaySkuTier = "HighPerformance" - VirtualNetworkGatewaySkuTierStandard VirtualNetworkGatewaySkuTier = "Standard" - VirtualNetworkGatewaySkuTierUltraPerformance VirtualNetworkGatewaySkuTier = "UltraPerformance" - VirtualNetworkGatewaySkuTierVpnGwFive VirtualNetworkGatewaySkuTier = "VpnGw5" - VirtualNetworkGatewaySkuTierVpnGwFiveAZ VirtualNetworkGatewaySkuTier = "VpnGw5AZ" - VirtualNetworkGatewaySkuTierVpnGwFour VirtualNetworkGatewaySkuTier = "VpnGw4" - VirtualNetworkGatewaySkuTierVpnGwFourAZ VirtualNetworkGatewaySkuTier = "VpnGw4AZ" - VirtualNetworkGatewaySkuTierVpnGwOne VirtualNetworkGatewaySkuTier = "VpnGw1" - VirtualNetworkGatewaySkuTierVpnGwOneAZ VirtualNetworkGatewaySkuTier = "VpnGw1AZ" - VirtualNetworkGatewaySkuTierVpnGwThree VirtualNetworkGatewaySkuTier = "VpnGw3" - VirtualNetworkGatewaySkuTierVpnGwThreeAZ VirtualNetworkGatewaySkuTier = "VpnGw3AZ" - VirtualNetworkGatewaySkuTierVpnGwTwo VirtualNetworkGatewaySkuTier = "VpnGw2" - VirtualNetworkGatewaySkuTierVpnGwTwoAZ VirtualNetworkGatewaySkuTier = "VpnGw2AZ" -) - -func PossibleValuesForVirtualNetworkGatewaySkuTier() []string { - return []string{ - string(VirtualNetworkGatewaySkuTierBasic), - string(VirtualNetworkGatewaySkuTierErGwOneAZ), - string(VirtualNetworkGatewaySkuTierErGwScale), - string(VirtualNetworkGatewaySkuTierErGwThreeAZ), - string(VirtualNetworkGatewaySkuTierErGwTwoAZ), - string(VirtualNetworkGatewaySkuTierHighPerformance), - string(VirtualNetworkGatewaySkuTierStandard), - string(VirtualNetworkGatewaySkuTierUltraPerformance), - string(VirtualNetworkGatewaySkuTierVpnGwFive), - string(VirtualNetworkGatewaySkuTierVpnGwFiveAZ), - string(VirtualNetworkGatewaySkuTierVpnGwFour), - string(VirtualNetworkGatewaySkuTierVpnGwFourAZ), - string(VirtualNetworkGatewaySkuTierVpnGwOne), - string(VirtualNetworkGatewaySkuTierVpnGwOneAZ), - string(VirtualNetworkGatewaySkuTierVpnGwThree), - string(VirtualNetworkGatewaySkuTierVpnGwThreeAZ), - string(VirtualNetworkGatewaySkuTierVpnGwTwo), - string(VirtualNetworkGatewaySkuTierVpnGwTwoAZ), - } -} - -func (s *VirtualNetworkGatewaySkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewaySkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewaySkuTier(input string) (*VirtualNetworkGatewaySkuTier, error) { - vals := map[string]VirtualNetworkGatewaySkuTier{ - "basic": VirtualNetworkGatewaySkuTierBasic, - "ergw1az": VirtualNetworkGatewaySkuTierErGwOneAZ, - "ergwscale": VirtualNetworkGatewaySkuTierErGwScale, - "ergw3az": VirtualNetworkGatewaySkuTierErGwThreeAZ, - "ergw2az": VirtualNetworkGatewaySkuTierErGwTwoAZ, - "highperformance": VirtualNetworkGatewaySkuTierHighPerformance, - "standard": VirtualNetworkGatewaySkuTierStandard, - "ultraperformance": VirtualNetworkGatewaySkuTierUltraPerformance, - "vpngw5": VirtualNetworkGatewaySkuTierVpnGwFive, - "vpngw5az": VirtualNetworkGatewaySkuTierVpnGwFiveAZ, - "vpngw4": VirtualNetworkGatewaySkuTierVpnGwFour, - "vpngw4az": VirtualNetworkGatewaySkuTierVpnGwFourAZ, - "vpngw1": VirtualNetworkGatewaySkuTierVpnGwOne, - "vpngw1az": VirtualNetworkGatewaySkuTierVpnGwOneAZ, - "vpngw3": VirtualNetworkGatewaySkuTierVpnGwThree, - "vpngw3az": VirtualNetworkGatewaySkuTierVpnGwThreeAZ, - "vpngw2": VirtualNetworkGatewaySkuTierVpnGwTwo, - "vpngw2az": VirtualNetworkGatewaySkuTierVpnGwTwoAZ, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewaySkuTier(input) - return &out, nil -} - -type VirtualNetworkGatewayType string - -const ( - VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute" - VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = "LocalGateway" - VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn" -) - -func PossibleValuesForVirtualNetworkGatewayType() []string { - return []string{ - string(VirtualNetworkGatewayTypeExpressRoute), - string(VirtualNetworkGatewayTypeLocalGateway), - string(VirtualNetworkGatewayTypeVpn), - } -} - -func (s *VirtualNetworkGatewayType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkGatewayType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkGatewayType(input string) (*VirtualNetworkGatewayType, error) { - vals := map[string]VirtualNetworkGatewayType{ - "expressroute": VirtualNetworkGatewayTypeExpressRoute, - "localgateway": VirtualNetworkGatewayTypeLocalGateway, - "vpn": VirtualNetworkGatewayTypeVpn, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkGatewayType(input) - return &out, nil -} - -type VpnAuthenticationType string - -const ( - VpnAuthenticationTypeAAD VpnAuthenticationType = "AAD" - VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate" - VpnAuthenticationTypeRadius VpnAuthenticationType = "Radius" -) - -func PossibleValuesForVpnAuthenticationType() []string { - return []string{ - string(VpnAuthenticationTypeAAD), - string(VpnAuthenticationTypeCertificate), - string(VpnAuthenticationTypeRadius), - } -} - -func (s *VpnAuthenticationType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnAuthenticationType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnAuthenticationType(input string) (*VpnAuthenticationType, error) { - vals := map[string]VpnAuthenticationType{ - "aad": VpnAuthenticationTypeAAD, - "certificate": VpnAuthenticationTypeCertificate, - "radius": VpnAuthenticationTypeRadius, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnAuthenticationType(input) - return &out, nil -} - -type VpnClientProtocol string - -const ( - VpnClientProtocolIkeVTwo VpnClientProtocol = "IkeV2" - VpnClientProtocolOpenVPN VpnClientProtocol = "OpenVPN" - VpnClientProtocolSSTP VpnClientProtocol = "SSTP" -) - -func PossibleValuesForVpnClientProtocol() []string { - return []string{ - string(VpnClientProtocolIkeVTwo), - string(VpnClientProtocolOpenVPN), - string(VpnClientProtocolSSTP), - } -} - -func (s *VpnClientProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnClientProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnClientProtocol(input string) (*VpnClientProtocol, error) { - vals := map[string]VpnClientProtocol{ - "ikev2": VpnClientProtocolIkeVTwo, - "openvpn": VpnClientProtocolOpenVPN, - "sstp": VpnClientProtocolSSTP, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnClientProtocol(input) - return &out, nil -} - -type VpnGatewayGeneration string - -const ( - VpnGatewayGenerationGenerationOne VpnGatewayGeneration = "Generation1" - VpnGatewayGenerationGenerationTwo VpnGatewayGeneration = "Generation2" - VpnGatewayGenerationNone VpnGatewayGeneration = "None" -) - -func PossibleValuesForVpnGatewayGeneration() []string { - return []string{ - string(VpnGatewayGenerationGenerationOne), - string(VpnGatewayGenerationGenerationTwo), - string(VpnGatewayGenerationNone), - } -} - -func (s *VpnGatewayGeneration) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnGatewayGeneration(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnGatewayGeneration(input string) (*VpnGatewayGeneration, error) { - vals := map[string]VpnGatewayGeneration{ - "generation1": VpnGatewayGenerationGenerationOne, - "generation2": VpnGatewayGenerationGenerationTwo, - "none": VpnGatewayGenerationNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnGatewayGeneration(input) - return &out, nil -} - -type VpnNatRuleMode string - -const ( - VpnNatRuleModeEgressSnat VpnNatRuleMode = "EgressSnat" - VpnNatRuleModeIngressSnat VpnNatRuleMode = "IngressSnat" -) - -func PossibleValuesForVpnNatRuleMode() []string { - return []string{ - string(VpnNatRuleModeEgressSnat), - string(VpnNatRuleModeIngressSnat), - } -} - -func (s *VpnNatRuleMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnNatRuleMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnNatRuleMode(input string) (*VpnNatRuleMode, error) { - vals := map[string]VpnNatRuleMode{ - "egresssnat": VpnNatRuleModeEgressSnat, - "ingresssnat": VpnNatRuleModeIngressSnat, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnNatRuleMode(input) - return &out, nil -} - -type VpnNatRuleType string - -const ( - VpnNatRuleTypeDynamic VpnNatRuleType = "Dynamic" - VpnNatRuleTypeStatic VpnNatRuleType = "Static" -) - -func PossibleValuesForVpnNatRuleType() []string { - return []string{ - string(VpnNatRuleTypeDynamic), - string(VpnNatRuleTypeStatic), - } -} - -func (s *VpnNatRuleType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnNatRuleType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnNatRuleType(input string) (*VpnNatRuleType, error) { - vals := map[string]VpnNatRuleType{ - "dynamic": VpnNatRuleTypeDynamic, - "static": VpnNatRuleTypeStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnNatRuleType(input) - return &out, nil -} - -type VpnPolicyMemberAttributeType string - -const ( - VpnPolicyMemberAttributeTypeAADGroupId VpnPolicyMemberAttributeType = "AADGroupId" - VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId" - VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId" -) - -func PossibleValuesForVpnPolicyMemberAttributeType() []string { - return []string{ - string(VpnPolicyMemberAttributeTypeAADGroupId), - string(VpnPolicyMemberAttributeTypeCertificateGroupId), - string(VpnPolicyMemberAttributeTypeRadiusAzureGroupId), - } -} - -func (s *VpnPolicyMemberAttributeType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnPolicyMemberAttributeType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnPolicyMemberAttributeType(input string) (*VpnPolicyMemberAttributeType, error) { - vals := map[string]VpnPolicyMemberAttributeType{ - "aadgroupid": VpnPolicyMemberAttributeTypeAADGroupId, - "certificategroupid": VpnPolicyMemberAttributeTypeCertificateGroupId, - "radiusazuregroupid": VpnPolicyMemberAttributeTypeRadiusAzureGroupId, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnPolicyMemberAttributeType(input) - return &out, nil -} - -type VpnType string - -const ( - VpnTypePolicyBased VpnType = "PolicyBased" - VpnTypeRouteBased VpnType = "RouteBased" -) - -func PossibleValuesForVpnType() []string { - return []string{ - string(VpnTypePolicyBased), - string(VpnTypeRouteBased), - } -} - -func (s *VpnType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVpnType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVpnType(input string) (*VpnType, error) { - vals := map[string]VpnType{ - "policybased": VpnTypePolicyBased, - "routebased": VpnTypeRouteBased, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VpnType(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgateway.go deleted file mode 100644 index 0bd39843684a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgateway.go +++ /dev/null @@ -1,19 +0,0 @@ -package virtualnetworkgateways - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGateway struct { - Etag *string `json:"etag,omitempty"` - ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties VirtualNetworkGatewayPropertiesFormat `json:"properties"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go deleted file mode 100644 index 3f13bf8bcf61..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go +++ /dev/null @@ -1,32 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkGatewayPropertiesFormat struct { - ActiveActive *bool `json:"activeActive,omitempty"` - AdminState *AdminState `json:"adminState,omitempty"` - AllowRemoteVnetTraffic *bool `json:"allowRemoteVnetTraffic,omitempty"` - AllowVirtualWanTraffic *bool `json:"allowVirtualWanTraffic,omitempty"` - AutoScaleConfiguration *VirtualNetworkGatewayAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` - BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` - CustomRoutes *AddressSpace `json:"customRoutes,omitempty"` - DisableIPSecReplayProtection *bool `json:"disableIPSecReplayProtection,omitempty"` - EnableBgp *bool `json:"enableBgp,omitempty"` - EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` - EnableDnsForwarding *bool `json:"enableDnsForwarding,omitempty"` - EnablePrivateIPAddress *bool `json:"enablePrivateIpAddress,omitempty"` - GatewayDefaultSite *SubResource `json:"gatewayDefaultSite,omitempty"` - GatewayType *VirtualNetworkGatewayType `json:"gatewayType,omitempty"` - IPConfigurations *[]VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"` - InboundDnsForwardingEndpoint *string `json:"inboundDnsForwardingEndpoint,omitempty"` - NatRules *[]VirtualNetworkGatewayNatRule `json:"natRules,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Sku *VirtualNetworkGatewaySku `json:"sku,omitempty"` - VNetExtendedLocationResourceId *string `json:"vNetExtendedLocationResourceId,omitempty"` - VirtualNetworkGatewayPolicyGroups *[]VirtualNetworkGatewayPolicyGroup `json:"virtualNetworkGatewayPolicyGroups,omitempty"` - VpnClientConfiguration *VpnClientConfiguration `json:"vpnClientConfiguration,omitempty"` - VpnGatewayGeneration *VpnGatewayGeneration `json:"vpnGatewayGeneration,omitempty"` - VpnType *VpnType `json:"vpnType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go deleted file mode 100644 index 135ef9d21e7d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkgateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworkgateways/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md deleted file mode 100644 index 5eef086fd7b7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md +++ /dev/null @@ -1,83 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings` Documentation - -The `virtualnetworkpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings" -``` - - -### Client Initialization - -```go -client := virtualnetworkpeerings.NewVirtualNetworkPeeringsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualNetworkPeeringsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") - -payload := virtualnetworkpeerings.VirtualNetworkPeering{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualnetworkpeerings.DefaultCreateOrUpdateOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkPeeringsClient.Delete` - -```go -ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkPeeringsClient.Get` - -```go -ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkPeeringsClient.List` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go deleted file mode 100644 index 15fd63fe3252..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworkpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworkpeerings/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md deleted file mode 100644 index f834ef3c4a90..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md +++ /dev/null @@ -1,239 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks` Documentation - -The `virtualnetworks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks" -``` - - -### Client Initialization - -```go -client := virtualnetworks.NewVirtualNetworksClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualNetworksClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -payload := virtualnetworks.VirtualNetwork{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworksClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworksClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworksClient.List` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.ResourceNavigationLinksList` - -```go -ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") - -// alternatively `client.ResourceNavigationLinksList(ctx, id)` can be used to do batched pagination -items, err := client.ResourceNavigationLinksListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.ServiceAssociationLinksList` - -```go -ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") - -// alternatively `client.ServiceAssociationLinksList(ctx, id)` can be used to do batched pagination -items, err := client.ServiceAssociationLinksListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.SubnetsPrepareNetworkPolicies` - -```go -ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") - -payload := virtualnetworks.PrepareNetworkPoliciesRequest{ - // ... -} - - -if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworksClient.SubnetsUnprepareNetworkPolicies` - -```go -ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") - -payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ - // ... -} - - -if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworksClient.UpdateTags` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -payload := virtualnetworks.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworksClient.VirtualNetworksCheckIPAddressAvailability` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworksClient.VirtualNetworksListDdosProtectionStatus` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -// alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination -items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworksClient.VirtualNetworksListUsage` - -```go -ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") - -// alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination -items, err := client.VirtualNetworksListUsageComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/constants.go deleted file mode 100644 index 1cb41676c8b7..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/constants.go +++ /dev/null @@ -1,1371 +0,0 @@ -package virtualnetworks - -import ( - "encoding/json" - "fmt" - "strings" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DdosSettingsProtectionMode string - -const ( - DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" - DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" - DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" -) - -func PossibleValuesForDdosSettingsProtectionMode() []string { - return []string{ - string(DdosSettingsProtectionModeDisabled), - string(DdosSettingsProtectionModeEnabled), - string(DdosSettingsProtectionModeVirtualNetworkInherited), - } -} - -func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDdosSettingsProtectionMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { - vals := map[string]DdosSettingsProtectionMode{ - "disabled": DdosSettingsProtectionModeDisabled, - "enabled": DdosSettingsProtectionModeEnabled, - "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DdosSettingsProtectionMode(input) - return &out, nil -} - -type DeleteOptions string - -const ( - DeleteOptionsDelete DeleteOptions = "Delete" - DeleteOptionsDetach DeleteOptions = "Detach" -) - -func PossibleValuesForDeleteOptions() []string { - return []string{ - string(DeleteOptionsDelete), - string(DeleteOptionsDetach), - } -} - -func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseDeleteOptions(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseDeleteOptions(input string) (*DeleteOptions, error) { - vals := map[string]DeleteOptions{ - "delete": DeleteOptionsDelete, - "detach": DeleteOptionsDetach, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := DeleteOptions(input) - return &out, nil -} - -type FlowLogFormatType string - -const ( - FlowLogFormatTypeJSON FlowLogFormatType = "JSON" -) - -func PossibleValuesForFlowLogFormatType() []string { - return []string{ - string(FlowLogFormatTypeJSON), - } -} - -func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseFlowLogFormatType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { - vals := map[string]FlowLogFormatType{ - "json": FlowLogFormatTypeJSON, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := FlowLogFormatType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelInterfaceType string - -const ( - GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" - GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" - GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" -) - -func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { - return []string{ - string(GatewayLoadBalancerTunnelInterfaceTypeExternal), - string(GatewayLoadBalancerTunnelInterfaceTypeInternal), - string(GatewayLoadBalancerTunnelInterfaceTypeNone), - } -} - -func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { - vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ - "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, - "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, - "none": GatewayLoadBalancerTunnelInterfaceTypeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelInterfaceType(input) - return &out, nil -} - -type GatewayLoadBalancerTunnelProtocol string - -const ( - GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" - GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" - GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" -) - -func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { - return []string{ - string(GatewayLoadBalancerTunnelProtocolNative), - string(GatewayLoadBalancerTunnelProtocolNone), - string(GatewayLoadBalancerTunnelProtocolVXLAN), - } -} - -func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { - vals := map[string]GatewayLoadBalancerTunnelProtocol{ - "native": GatewayLoadBalancerTunnelProtocolNative, - "none": GatewayLoadBalancerTunnelProtocolNone, - "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := GatewayLoadBalancerTunnelProtocol(input) - return &out, nil -} - -type IPAllocationMethod string - -const ( - IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" - IPAllocationMethodStatic IPAllocationMethod = "Static" -) - -func PossibleValuesForIPAllocationMethod() []string { - return []string{ - string(IPAllocationMethodDynamic), - string(IPAllocationMethodStatic), - } -} - -func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPAllocationMethod(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { - vals := map[string]IPAllocationMethod{ - "dynamic": IPAllocationMethodDynamic, - "static": IPAllocationMethodStatic, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPAllocationMethod(input) - return &out, nil -} - -type IPVersion string - -const ( - IPVersionIPvFour IPVersion = "IPv4" - IPVersionIPvSix IPVersion = "IPv6" -) - -func PossibleValuesForIPVersion() []string { - return []string{ - string(IPVersionIPvFour), - string(IPVersionIPvSix), - } -} - -func (s *IPVersion) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIPVersion(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIPVersion(input string) (*IPVersion, error) { - vals := map[string]IPVersion{ - "ipv4": IPVersionIPvFour, - "ipv6": IPVersionIPvSix, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IPVersion(input) - return &out, nil -} - -type IsWorkloadProtected string - -const ( - IsWorkloadProtectedFalse IsWorkloadProtected = "False" - IsWorkloadProtectedTrue IsWorkloadProtected = "True" -) - -func PossibleValuesForIsWorkloadProtected() []string { - return []string{ - string(IsWorkloadProtectedFalse), - string(IsWorkloadProtectedTrue), - } -} - -func (s *IsWorkloadProtected) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseIsWorkloadProtected(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseIsWorkloadProtected(input string) (*IsWorkloadProtected, error) { - vals := map[string]IsWorkloadProtected{ - "false": IsWorkloadProtectedFalse, - "true": IsWorkloadProtectedTrue, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := IsWorkloadProtected(input) - return &out, nil -} - -type LoadBalancerBackendAddressAdminState string - -const ( - LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" - LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" - LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" -) - -func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { - return []string{ - string(LoadBalancerBackendAddressAdminStateDown), - string(LoadBalancerBackendAddressAdminStateNone), - string(LoadBalancerBackendAddressAdminStateUp), - } -} - -func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseLoadBalancerBackendAddressAdminState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { - vals := map[string]LoadBalancerBackendAddressAdminState{ - "down": LoadBalancerBackendAddressAdminStateDown, - "none": LoadBalancerBackendAddressAdminStateNone, - "up": LoadBalancerBackendAddressAdminStateUp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := LoadBalancerBackendAddressAdminState(input) - return &out, nil -} - -type NatGatewaySkuName string - -const ( - NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" -) - -func PossibleValuesForNatGatewaySkuName() []string { - return []string{ - string(NatGatewaySkuNameStandard), - } -} - -func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNatGatewaySkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { - vals := map[string]NatGatewaySkuName{ - "standard": NatGatewaySkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NatGatewaySkuName(input) - return &out, nil -} - -type NetworkInterfaceAuxiliaryMode string - -const ( - NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" - NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" - NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" - NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { - return []string{ - string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), - string(NetworkInterfaceAuxiliaryModeFloating), - string(NetworkInterfaceAuxiliaryModeMaxConnections), - string(NetworkInterfaceAuxiliaryModeNone), - } -} - -func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliaryMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { - vals := map[string]NetworkInterfaceAuxiliaryMode{ - "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, - "floating": NetworkInterfaceAuxiliaryModeFloating, - "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, - "none": NetworkInterfaceAuxiliaryModeNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliaryMode(input) - return &out, nil -} - -type NetworkInterfaceAuxiliarySku string - -const ( - NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" - NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" - NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" - NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" - NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" -) - -func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { - return []string{ - string(NetworkInterfaceAuxiliarySkuAEight), - string(NetworkInterfaceAuxiliarySkuAFour), - string(NetworkInterfaceAuxiliarySkuAOne), - string(NetworkInterfaceAuxiliarySkuATwo), - string(NetworkInterfaceAuxiliarySkuNone), - } -} - -func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceAuxiliarySku(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { - vals := map[string]NetworkInterfaceAuxiliarySku{ - "a8": NetworkInterfaceAuxiliarySkuAEight, - "a4": NetworkInterfaceAuxiliarySkuAFour, - "a1": NetworkInterfaceAuxiliarySkuAOne, - "a2": NetworkInterfaceAuxiliarySkuATwo, - "none": NetworkInterfaceAuxiliarySkuNone, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceAuxiliarySku(input) - return &out, nil -} - -type NetworkInterfaceMigrationPhase string - -const ( - NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" - NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" - NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" - NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" - NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" -) - -func PossibleValuesForNetworkInterfaceMigrationPhase() []string { - return []string{ - string(NetworkInterfaceMigrationPhaseAbort), - string(NetworkInterfaceMigrationPhaseCommit), - string(NetworkInterfaceMigrationPhaseCommitted), - string(NetworkInterfaceMigrationPhaseNone), - string(NetworkInterfaceMigrationPhasePrepare), - } -} - -func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { - vals := map[string]NetworkInterfaceMigrationPhase{ - "abort": NetworkInterfaceMigrationPhaseAbort, - "commit": NetworkInterfaceMigrationPhaseCommit, - "committed": NetworkInterfaceMigrationPhaseCommitted, - "none": NetworkInterfaceMigrationPhaseNone, - "prepare": NetworkInterfaceMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceMigrationPhase(input) - return &out, nil -} - -type NetworkInterfaceNicType string - -const ( - NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" - NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" -) - -func PossibleValuesForNetworkInterfaceNicType() []string { - return []string{ - string(NetworkInterfaceNicTypeElastic), - string(NetworkInterfaceNicTypeStandard), - } -} - -func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseNetworkInterfaceNicType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { - vals := map[string]NetworkInterfaceNicType{ - "elastic": NetworkInterfaceNicTypeElastic, - "standard": NetworkInterfaceNicTypeStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := NetworkInterfaceNicType(input) - return &out, nil -} - -type ProvisioningState string - -const ( - ProvisioningStateDeleting ProvisioningState = "Deleting" - ProvisioningStateFailed ProvisioningState = "Failed" - ProvisioningStateSucceeded ProvisioningState = "Succeeded" - ProvisioningStateUpdating ProvisioningState = "Updating" -) - -func PossibleValuesForProvisioningState() []string { - return []string{ - string(ProvisioningStateDeleting), - string(ProvisioningStateFailed), - string(ProvisioningStateSucceeded), - string(ProvisioningStateUpdating), - } -} - -func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseProvisioningState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseProvisioningState(input string) (*ProvisioningState, error) { - vals := map[string]ProvisioningState{ - "deleting": ProvisioningStateDeleting, - "failed": ProvisioningStateFailed, - "succeeded": ProvisioningStateSucceeded, - "updating": ProvisioningStateUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ProvisioningState(input) - return &out, nil -} - -type PublicIPAddressDnsSettingsDomainNameLabelScope string - -const ( - PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" - PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" -) - -func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { - return []string{ - string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), - string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), - } -} - -func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { - vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ - "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, - "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, - "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, - "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) - return &out, nil -} - -type PublicIPAddressMigrationPhase string - -const ( - PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" - PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" - PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" - PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" - PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" -) - -func PossibleValuesForPublicIPAddressMigrationPhase() []string { - return []string{ - string(PublicIPAddressMigrationPhaseAbort), - string(PublicIPAddressMigrationPhaseCommit), - string(PublicIPAddressMigrationPhaseCommitted), - string(PublicIPAddressMigrationPhaseNone), - string(PublicIPAddressMigrationPhasePrepare), - } -} - -func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressMigrationPhase(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { - vals := map[string]PublicIPAddressMigrationPhase{ - "abort": PublicIPAddressMigrationPhaseAbort, - "commit": PublicIPAddressMigrationPhaseCommit, - "committed": PublicIPAddressMigrationPhaseCommitted, - "none": PublicIPAddressMigrationPhaseNone, - "prepare": PublicIPAddressMigrationPhasePrepare, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressMigrationPhase(input) - return &out, nil -} - -type PublicIPAddressSkuName string - -const ( - PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" - PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" -) - -func PossibleValuesForPublicIPAddressSkuName() []string { - return []string{ - string(PublicIPAddressSkuNameBasic), - string(PublicIPAddressSkuNameStandard), - } -} - -func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuName(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { - vals := map[string]PublicIPAddressSkuName{ - "basic": PublicIPAddressSkuNameBasic, - "standard": PublicIPAddressSkuNameStandard, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuName(input) - return &out, nil -} - -type PublicIPAddressSkuTier string - -const ( - PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" - PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" -) - -func PossibleValuesForPublicIPAddressSkuTier() []string { - return []string{ - string(PublicIPAddressSkuTierGlobal), - string(PublicIPAddressSkuTierRegional), - } -} - -func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parsePublicIPAddressSkuTier(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { - vals := map[string]PublicIPAddressSkuTier{ - "global": PublicIPAddressSkuTierGlobal, - "regional": PublicIPAddressSkuTierRegional, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := PublicIPAddressSkuTier(input) - return &out, nil -} - -type RouteNextHopType string - -const ( - RouteNextHopTypeInternet RouteNextHopType = "Internet" - RouteNextHopTypeNone RouteNextHopType = "None" - RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" - RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" - RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" -) - -func PossibleValuesForRouteNextHopType() []string { - return []string{ - string(RouteNextHopTypeInternet), - string(RouteNextHopTypeNone), - string(RouteNextHopTypeVirtualAppliance), - string(RouteNextHopTypeVirtualNetworkGateway), - string(RouteNextHopTypeVnetLocal), - } -} - -func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseRouteNextHopType(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseRouteNextHopType(input string) (*RouteNextHopType, error) { - vals := map[string]RouteNextHopType{ - "internet": RouteNextHopTypeInternet, - "none": RouteNextHopTypeNone, - "virtualappliance": RouteNextHopTypeVirtualAppliance, - "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, - "vnetlocal": RouteNextHopTypeVnetLocal, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := RouteNextHopType(input) - return &out, nil -} - -type SecurityRuleAccess string - -const ( - SecurityRuleAccessAllow SecurityRuleAccess = "Allow" - SecurityRuleAccessDeny SecurityRuleAccess = "Deny" -) - -func PossibleValuesForSecurityRuleAccess() []string { - return []string{ - string(SecurityRuleAccessAllow), - string(SecurityRuleAccessDeny), - } -} - -func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleAccess(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { - vals := map[string]SecurityRuleAccess{ - "allow": SecurityRuleAccessAllow, - "deny": SecurityRuleAccessDeny, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleAccess(input) - return &out, nil -} - -type SecurityRuleDirection string - -const ( - SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" - SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" -) - -func PossibleValuesForSecurityRuleDirection() []string { - return []string{ - string(SecurityRuleDirectionInbound), - string(SecurityRuleDirectionOutbound), - } -} - -func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleDirection(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { - vals := map[string]SecurityRuleDirection{ - "inbound": SecurityRuleDirectionInbound, - "outbound": SecurityRuleDirectionOutbound, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleDirection(input) - return &out, nil -} - -type SecurityRuleProtocol string - -const ( - SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" - SecurityRuleProtocolAny SecurityRuleProtocol = "*" - SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" - SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" - SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" - SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" -) - -func PossibleValuesForSecurityRuleProtocol() []string { - return []string{ - string(SecurityRuleProtocolAh), - string(SecurityRuleProtocolAny), - string(SecurityRuleProtocolEsp), - string(SecurityRuleProtocolIcmp), - string(SecurityRuleProtocolTcp), - string(SecurityRuleProtocolUdp), - } -} - -func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSecurityRuleProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { - vals := map[string]SecurityRuleProtocol{ - "ah": SecurityRuleProtocolAh, - "*": SecurityRuleProtocolAny, - "esp": SecurityRuleProtocolEsp, - "icmp": SecurityRuleProtocolIcmp, - "tcp": SecurityRuleProtocolTcp, - "udp": SecurityRuleProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SecurityRuleProtocol(input) - return &out, nil -} - -type SharingScope string - -const ( - SharingScopeDelegatedServices SharingScope = "DelegatedServices" - SharingScopeTenant SharingScope = "Tenant" -) - -func PossibleValuesForSharingScope() []string { - return []string{ - string(SharingScopeDelegatedServices), - string(SharingScopeTenant), - } -} - -func (s *SharingScope) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSharingScope(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSharingScope(input string) (*SharingScope, error) { - vals := map[string]SharingScope{ - "delegatedservices": SharingScopeDelegatedServices, - "tenant": SharingScopeTenant, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SharingScope(input) - return &out, nil -} - -type SyncMode string - -const ( - SyncModeAutomatic SyncMode = "Automatic" - SyncModeManual SyncMode = "Manual" -) - -func PossibleValuesForSyncMode() []string { - return []string{ - string(SyncModeAutomatic), - string(SyncModeManual), - } -} - -func (s *SyncMode) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseSyncMode(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseSyncMode(input string) (*SyncMode, error) { - vals := map[string]SyncMode{ - "automatic": SyncModeAutomatic, - "manual": SyncModeManual, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := SyncMode(input) - return &out, nil -} - -type TransportProtocol string - -const ( - TransportProtocolAll TransportProtocol = "All" - TransportProtocolTcp TransportProtocol = "Tcp" - TransportProtocolUdp TransportProtocol = "Udp" -) - -func PossibleValuesForTransportProtocol() []string { - return []string{ - string(TransportProtocolAll), - string(TransportProtocolTcp), - string(TransportProtocolUdp), - } -} - -func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseTransportProtocol(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseTransportProtocol(input string) (*TransportProtocol, error) { - vals := map[string]TransportProtocol{ - "all": TransportProtocolAll, - "tcp": TransportProtocolTcp, - "udp": TransportProtocolUdp, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := TransportProtocol(input) - return &out, nil -} - -type VirtualNetworkEncryptionEnforcement string - -const ( - VirtualNetworkEncryptionEnforcementAllowUnencrypted VirtualNetworkEncryptionEnforcement = "AllowUnencrypted" - VirtualNetworkEncryptionEnforcementDropUnencrypted VirtualNetworkEncryptionEnforcement = "DropUnencrypted" -) - -func PossibleValuesForVirtualNetworkEncryptionEnforcement() []string { - return []string{ - string(VirtualNetworkEncryptionEnforcementAllowUnencrypted), - string(VirtualNetworkEncryptionEnforcementDropUnencrypted), - } -} - -func (s *VirtualNetworkEncryptionEnforcement) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkEncryptionEnforcement(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkEncryptionEnforcement(input string) (*VirtualNetworkEncryptionEnforcement, error) { - vals := map[string]VirtualNetworkEncryptionEnforcement{ - "allowunencrypted": VirtualNetworkEncryptionEnforcementAllowUnencrypted, - "dropunencrypted": VirtualNetworkEncryptionEnforcementDropUnencrypted, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkEncryptionEnforcement(input) - return &out, nil -} - -type VirtualNetworkPeeringLevel string - -const ( - VirtualNetworkPeeringLevelFullyInSync VirtualNetworkPeeringLevel = "FullyInSync" - VirtualNetworkPeeringLevelLocalAndRemoteNotInSync VirtualNetworkPeeringLevel = "LocalAndRemoteNotInSync" - VirtualNetworkPeeringLevelLocalNotInSync VirtualNetworkPeeringLevel = "LocalNotInSync" - VirtualNetworkPeeringLevelRemoteNotInSync VirtualNetworkPeeringLevel = "RemoteNotInSync" -) - -func PossibleValuesForVirtualNetworkPeeringLevel() []string { - return []string{ - string(VirtualNetworkPeeringLevelFullyInSync), - string(VirtualNetworkPeeringLevelLocalAndRemoteNotInSync), - string(VirtualNetworkPeeringLevelLocalNotInSync), - string(VirtualNetworkPeeringLevelRemoteNotInSync), - } -} - -func (s *VirtualNetworkPeeringLevel) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPeeringLevel(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPeeringLevel(input string) (*VirtualNetworkPeeringLevel, error) { - vals := map[string]VirtualNetworkPeeringLevel{ - "fullyinsync": VirtualNetworkPeeringLevelFullyInSync, - "localandremotenotinsync": VirtualNetworkPeeringLevelLocalAndRemoteNotInSync, - "localnotinsync": VirtualNetworkPeeringLevelLocalNotInSync, - "remotenotinsync": VirtualNetworkPeeringLevelRemoteNotInSync, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPeeringLevel(input) - return &out, nil -} - -type VirtualNetworkPeeringState string - -const ( - VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected" - VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected" - VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated" -) - -func PossibleValuesForVirtualNetworkPeeringState() []string { - return []string{ - string(VirtualNetworkPeeringStateConnected), - string(VirtualNetworkPeeringStateDisconnected), - string(VirtualNetworkPeeringStateInitiated), - } -} - -func (s *VirtualNetworkPeeringState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPeeringState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPeeringState(input string) (*VirtualNetworkPeeringState, error) { - vals := map[string]VirtualNetworkPeeringState{ - "connected": VirtualNetworkPeeringStateConnected, - "disconnected": VirtualNetworkPeeringStateDisconnected, - "initiated": VirtualNetworkPeeringStateInitiated, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPeeringState(input) - return &out, nil -} - -type VirtualNetworkPrivateEndpointNetworkPolicies string - -const ( - VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" - VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" - VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" - VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" -) - -func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), - string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), - } -} - -func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ - "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, - "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, - "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateEndpointNetworkPolicies(input) - return &out, nil -} - -type VirtualNetworkPrivateLinkServiceNetworkPolicies string - -const ( - VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" - VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" -) - -func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { - return []string{ - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), - string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), - } -} - -func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { - vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ - "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, - "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlog.go deleted file mode 100644 index b920c2a5d055..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogpropertiesformat.go deleted file mode 100644 index 46ad7cc15022..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceproperties.go deleted file mode 100644 index e187bf8454cc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 03a937b7d65d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpropertiesformat.go deleted file mode 100644 index a6ad3b4e3a0c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpropertiesformat.go +++ /dev/null @@ -1,21 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VirtualNetworkPropertiesFormat struct { - AddressSpace *AddressSpace `json:"addressSpace,omitempty"` - BgpCommunities *VirtualNetworkBgpCommunities `json:"bgpCommunities,omitempty"` - DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` - DhcpOptions *DhcpOptions `json:"dhcpOptions,omitempty"` - EnableDdosProtection *bool `json:"enableDdosProtection,omitempty"` - EnableVMProtection *bool `json:"enableVmProtection,omitempty"` - Encryption *VirtualNetworkEncryption `json:"encryption,omitempty"` - FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` - FlowTimeoutInMinutes *int64 `json:"flowTimeoutInMinutes,omitempty"` - IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceGuid *string `json:"resourceGuid,omitempty"` - Subnets *[]Subnet `json:"subnets,omitempty"` - VirtualNetworkPeerings *[]VirtualNetworkPeering `json:"virtualNetworkPeerings,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go deleted file mode 100644 index 5c44fd0fa197..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworks - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworks/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md deleted file mode 100644 index 979acc878093..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md +++ /dev/null @@ -1,86 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap` Documentation - -The `virtualnetworktap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap" -``` - - -### Client Initialization - -```go -client := virtualnetworktap.NewVirtualNetworkTapClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualNetworkTapClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapName") - -payload := virtualnetworktap.VirtualNetworkTap{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkTapClient.Delete` - -```go -ctx := context.TODO() -id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualNetworkTapClient.Get` - -```go -ctx := context.TODO() -id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualNetworkTapClient.UpdateTags` - -```go -ctx := context.TODO() -id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapName") - -payload := virtualnetworktap.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlog.go deleted file mode 100644 index ddd3757f710a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworktap - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogpropertiesformat.go deleted file mode 100644 index 64eb8ac4566b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworktap - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceproperties.go deleted file mode 100644 index cbafd8f49675..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package virtualnetworktap - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 6da43c107d77..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworktap - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go deleted file mode 100644 index e715032dda2a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworktap - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworktap/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md deleted file mode 100644 index fe8923048d37..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md +++ /dev/null @@ -1,55 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps` Documentation - -The `virtualnetworktaps` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps" -``` - - -### Client Initialization - -```go -client := virtualnetworktaps.NewVirtualNetworkTapsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualNetworkTapsClient.ListAll` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination -items, err := client.ListAllComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualNetworkTapsClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlog.go deleted file mode 100644 index 5a7b0a4647b2..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package virtualnetworktaps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogpropertiesformat.go deleted file mode 100644 index 6fc887f80102..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package virtualnetworktaps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceproperties.go deleted file mode 100644 index 9e5885610f52..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package virtualnetworktaps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go deleted file mode 100644 index c5085da61db6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworktaps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go deleted file mode 100644 index 52ec91fec734..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualnetworktaps - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualnetworktaps/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md deleted file mode 100644 index 5120cb7e36dc..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md +++ /dev/null @@ -1,83 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings` Documentation - -The `virtualrouterpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings" -``` - - -### Client Initialization - -```go -client := virtualrouterpeerings.NewVirtualRouterPeeringsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualRouterPeeringsClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") - -payload := virtualrouterpeerings.VirtualRouterPeering{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualRouterPeeringsClient.Delete` - -```go -ctx := context.TODO() -id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualRouterPeeringsClient.Get` - -```go -ctx := context.TODO() -id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") - -read, err := client.Get(ctx, id) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualRouterPeeringsClient.List` - -```go -ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go deleted file mode 100644 index d166e98ed83b..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualrouterpeerings - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualrouterpeerings/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md deleted file mode 100644 index 8cb0d81d80f0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md +++ /dev/null @@ -1,100 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters` Documentation - -The `virtualrouters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters" -``` - - -### Client Initialization - -```go -client := virtualrouters.NewVirtualRoutersClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VirtualRoutersClient.CreateOrUpdate` - -```go -ctx := context.TODO() -id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") - -payload := virtualrouters.VirtualRouter{ - // ... -} - - -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualRoutersClient.Delete` - -```go -ctx := context.TODO() -id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") - -if err := client.DeleteThenPoll(ctx, id); err != nil { - // handle the error -} -``` - - -### Example Usage: `VirtualRoutersClient.Get` - -```go -ctx := context.TODO() -id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") - -read, err := client.Get(ctx, id, virtualrouters.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VirtualRoutersClient.List` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.List(ctx, id)` can be used to do batched pagination -items, err := client.ListComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VirtualRoutersClient.ListByResourceGroup` - -```go -ctx := context.TODO() -id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") - -// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination -items, err := client.ListByResourceGroupComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go deleted file mode 100644 index 7218d712615a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package virtualrouters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/virtualrouters/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md deleted file mode 100644 index b8ee73279814..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md +++ /dev/null @@ -1,71 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses` Documentation - -The `vmsspublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses" -``` - - -### Client Initialization - -```go -client := vmsspublicipaddresses.NewVMSSPublicIPAddressesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VMSSPublicIPAddressesClient.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress` - -```go -ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName", "ipConfigurationName", "publicIPAddressName") - -read, err := client.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress(ctx, id, vmsspublicipaddresses.DefaultPublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `VMSSPublicIPAddressesClient.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses` - -```go -ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") - -// alternatively `client.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses(ctx, id)` can be used to do batched pagination -items, err := client.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` - - -### Example Usage: `VMSSPublicIPAddressesClient.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses` - -```go -ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName", "ipConfigurationName") - -// alternatively `client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx, id)` can be used to do batched pagination -items, err := client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlog.go deleted file mode 100644 index b816a9fb4d85..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlog.go +++ /dev/null @@ -1,14 +0,0 @@ -package vmsspublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLog struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go deleted file mode 100644 index 4dc53318cc3c..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go +++ /dev/null @@ -1,15 +0,0 @@ -package vmsspublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type FlowLogPropertiesFormat struct { - Enabled *bool `json:"enabled,omitempty"` - FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` - Format *FlowLogFormatParameters `json:"format,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` - StorageId string `json:"storageId"` - TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` - TargetResourceId string `json:"targetResourceId"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go deleted file mode 100644 index 5a3793b39679..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go +++ /dev/null @@ -1,17 +0,0 @@ -package vmsspublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateLinkServiceProperties struct { - Alias *string `json:"alias,omitempty"` - AutoApproval *ResourceSet `json:"autoApproval,omitempty"` - EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` - Fqdns *[]string `json:"fqdns,omitempty"` - IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` - LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` - NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` - PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Visibility *ResourceSet `json:"visibility,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go deleted file mode 100644 index 5857cb159be6..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go +++ /dev/null @@ -1,10 +0,0 @@ -package vmsspublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type ServiceEndpointPropertiesFormat struct { - Locations *[]string `json:"locations,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - Service *string `json:"service,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go deleted file mode 100644 index 81d29217141a..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package vmsspublicipaddresses - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/vmsspublicipaddresses/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md deleted file mode 100644 index 753bd5728ca8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md +++ /dev/null @@ -1,83 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways` Documentation - -The `vpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways" -``` - - -### Client Initialization - -```go -client := vpngateways.NewVpnGatewaysClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VpnGatewaysClient.Reset` - -```go -ctx := context.TODO() -id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") - -if err := client.ResetThenPoll(ctx, id, vpngateways.DefaultResetOperationOptions()); err != nil { - // handle the error -} -``` - - -### Example Usage: `VpnGatewaysClient.StartPacketCapture` - -```go -ctx := context.TODO() -id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") - -payload := vpngateways.VpnGatewayPacketCaptureStartParameters{ - // ... -} - - -if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VpnGatewaysClient.StopPacketCapture` - -```go -ctx := context.TODO() -id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") - -payload := vpngateways.VpnGatewayPacketCaptureStopParameters{ - // ... -} - - -if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` - - -### Example Usage: `VpnGatewaysClient.UpdateTags` - -```go -ctx := context.TODO() -id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") - -payload := vpngateways.TagsObject{ - // ... -} - - -if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { - // handle the error -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go deleted file mode 100644 index 9bc4a65216d5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package vpngateways - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/vpngateways/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go deleted file mode 100644 index 836405ca7705..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package vpnlinkconnections - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/vpnlinkconnections/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md deleted file mode 100644 index 1572bdf4af4f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md +++ /dev/null @@ -1,41 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations` Documentation - -The `vpnserverconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations" -``` - - -### Client Initialization - -```go -client := vpnserverconfigurations.NewVpnServerConfigurationsClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VpnServerConfigurationsClient.UpdateTags` - -```go -ctx := context.TODO() -id := vpnserverconfigurations.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") - -payload := vpnserverconfigurations.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go deleted file mode 100644 index 70a571db1075..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package vpnserverconfigurations - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/vpnserverconfigurations/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md deleted file mode 100644 index 662e89f75839..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md +++ /dev/null @@ -1,41 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites` Documentation - -The `vpnsites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites" -``` - - -### Client Initialization - -```go -client := vpnsites.NewVpnSitesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `VpnSitesClient.UpdateTags` - -```go -ctx := context.TODO() -id := vpnsites.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") - -payload := vpnsites.TagsObject{ - // ... -} - - -read, err := client.UpdateTags(ctx, id, payload) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go deleted file mode 100644 index df39cd94050d..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package vpnsites - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/vpnsites/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md deleted file mode 100644 index a0506600f837..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md +++ /dev/null @@ -1,54 +0,0 @@ - -## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories` Documentation - -The `webcategories` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). - -This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). - -### Import Path - -```go -import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories" -``` - - -### Client Initialization - -```go -client := webcategories.NewWebCategoriesClientWithBaseURI("https://management.azure.com") -client.Client.Authorizer = authorizer -``` - - -### Example Usage: `WebCategoriesClient.Get` - -```go -ctx := context.TODO() -id := webcategories.NewAzureWebCategoryID("12345678-1234-9876-4563-123456789012", "azureWebCategoryName") - -read, err := client.Get(ctx, id, webcategories.DefaultGetOperationOptions()) -if err != nil { - // handle the error -} -if model := read.Model; model != nil { - // do something with the model/response object -} -``` - - -### Example Usage: `WebCategoriesClient.ListBySubscription` - -```go -ctx := context.TODO() -id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") - -// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination -items, err := client.ListBySubscriptionComplete(ctx, id) -if err != nil { - // handle the error -} -for _, item := range items { - // do something -} -``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go deleted file mode 100644 index 0a9df0a65b7f..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go +++ /dev/null @@ -1,10 +0,0 @@ -package webcategories - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -const defaultApiVersion = "2023-11-01" - -func userAgent() string { - return "hashicorp/go-azure-sdk/webcategories/2023-11-01" -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/README.md new file mode 100644 index 000000000000..5435c98716ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections` Documentation + +The `adminrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections" +``` + + +### Client Initialization + +```go +client := adminrulecollections.NewAdminRuleCollectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AdminRuleCollectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := adminrulecollections.NewSecurityAdminConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") + +payload := adminrulecollections.AdminRuleCollection{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdminRuleCollectionsClient.Delete` + +```go +ctx := context.TODO() +id := adminrulecollections.NewSecurityAdminConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") + +if err := client.DeleteThenPoll(ctx, id, adminrulecollections.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `AdminRuleCollectionsClient.Get` + +```go +ctx := context.TODO() +id := adminrulecollections.NewSecurityAdminConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdminRuleCollectionsClient.List` + +```go +ctx := context.TODO() +id := adminrulecollections.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") + +// alternatively `client.List(ctx, id, adminrulecollections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, adminrulecollections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfigurationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfigurationrulecollection.go new file mode 100644 index 000000000000..543fa58afbec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/id_securityadminconfigurationrulecollection.go @@ -0,0 +1,148 @@ +package adminrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityAdminConfigurationRuleCollectionId{}) +} + +var _ resourceids.ResourceId = &SecurityAdminConfigurationRuleCollectionId{} + +// SecurityAdminConfigurationRuleCollectionId is a struct representing the Resource ID for a Security Admin Configuration Rule Collection +type SecurityAdminConfigurationRuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityAdminConfigurationName string + RuleCollectionName string +} + +// NewSecurityAdminConfigurationRuleCollectionID returns a new SecurityAdminConfigurationRuleCollectionId struct +func NewSecurityAdminConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string) SecurityAdminConfigurationRuleCollectionId { + return SecurityAdminConfigurationRuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityAdminConfigurationName: securityAdminConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseSecurityAdminConfigurationRuleCollectionID parses 'input' into a SecurityAdminConfigurationRuleCollectionId +func ParseSecurityAdminConfigurationRuleCollectionID(input string) (*SecurityAdminConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityAdminConfigurationRuleCollectionIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationRuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseSecurityAdminConfigurationRuleCollectionIDInsensitively(input string) (*SecurityAdminConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityAdminConfigurationRuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateSecurityAdminConfigurationRuleCollectionID checks that 'input' can be parsed as a Security Admin Configuration Rule Collection ID +func ValidateSecurityAdminConfigurationRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityAdminConfigurationRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Security Admin Configuration Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_createorupdate.go new file mode 100644 index 000000000000..aa29bb560319 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_createorupdate.go @@ -0,0 +1,58 @@ +package adminrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AdminRuleCollection +} + +// CreateOrUpdate ... +func (c AdminRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId, input AdminRuleCollection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model AdminRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_delete.go new file mode 100644 index 000000000000..cb7d683e73a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_delete.go @@ -0,0 +1,100 @@ +package adminrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c AdminRuleCollectionsClient) Delete(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c AdminRuleCollectionsClient) DeleteThenPoll(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_get.go new file mode 100644 index 000000000000..4f1440daece4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_get.go @@ -0,0 +1,53 @@ +package adminrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *AdminRuleCollection +} + +// Get ... +func (c AdminRuleCollectionsClient) Get(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model AdminRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_adminrulecollectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_networkmanagersecuritygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_networkmanagersecuritygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/model_networkmanagersecuritygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/model_networkmanagersecuritygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/version.go new file mode 100644 index 000000000000..f020535927b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections/version.go @@ -0,0 +1,10 @@ +package adminrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/adminrulecollections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/README.md new file mode 100644 index 000000000000..32b418ffc4ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules` Documentation + +The `adminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules" +``` + + +### Client Initialization + +```go +client := adminrules.NewAdminRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AdminRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := adminrules.NewSecurityAdminConfigurationRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") + +payload := adminrules.BaseAdminRule{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdminRulesClient.Delete` + +```go +ctx := context.TODO() +id := adminrules.NewSecurityAdminConfigurationRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") + +if err := client.DeleteThenPoll(ctx, id, adminrules.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `AdminRulesClient.Get` + +```go +ctx := context.TODO() +id := adminrules.NewSecurityAdminConfigurationRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName", "ruleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AdminRulesClient.List` + +```go +ctx := context.TODO() +id := adminrules.NewSecurityAdminConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName", "ruleCollectionName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollection.go new file mode 100644 index 000000000000..cc58659b8781 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollection.go @@ -0,0 +1,148 @@ +package adminrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityAdminConfigurationRuleCollectionId{}) +} + +var _ resourceids.ResourceId = &SecurityAdminConfigurationRuleCollectionId{} + +// SecurityAdminConfigurationRuleCollectionId is a struct representing the Resource ID for a Security Admin Configuration Rule Collection +type SecurityAdminConfigurationRuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityAdminConfigurationName string + RuleCollectionName string +} + +// NewSecurityAdminConfigurationRuleCollectionID returns a new SecurityAdminConfigurationRuleCollectionId struct +func NewSecurityAdminConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string) SecurityAdminConfigurationRuleCollectionId { + return SecurityAdminConfigurationRuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityAdminConfigurationName: securityAdminConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseSecurityAdminConfigurationRuleCollectionID parses 'input' into a SecurityAdminConfigurationRuleCollectionId +func ParseSecurityAdminConfigurationRuleCollectionID(input string) (*SecurityAdminConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityAdminConfigurationRuleCollectionIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationRuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseSecurityAdminConfigurationRuleCollectionIDInsensitively(input string) (*SecurityAdminConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityAdminConfigurationRuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateSecurityAdminConfigurationRuleCollectionID checks that 'input' can be parsed as a Security Admin Configuration Rule Collection ID +func ValidateSecurityAdminConfigurationRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityAdminConfigurationRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Security Admin Configuration Rule Collection ID +func (id SecurityAdminConfigurationRuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Security Admin Configuration Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollectionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollectionrule.go new file mode 100644 index 000000000000..9ff1e96755df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/id_securityadminconfigurationrulecollectionrule.go @@ -0,0 +1,157 @@ +package adminrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityAdminConfigurationRuleCollectionRuleId{}) +} + +var _ resourceids.ResourceId = &SecurityAdminConfigurationRuleCollectionRuleId{} + +// SecurityAdminConfigurationRuleCollectionRuleId is a struct representing the Resource ID for a Security Admin Configuration Rule Collection Rule +type SecurityAdminConfigurationRuleCollectionRuleId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityAdminConfigurationName string + RuleCollectionName string + RuleName string +} + +// NewSecurityAdminConfigurationRuleCollectionRuleID returns a new SecurityAdminConfigurationRuleCollectionRuleId struct +func NewSecurityAdminConfigurationRuleCollectionRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string, ruleName string) SecurityAdminConfigurationRuleCollectionRuleId { + return SecurityAdminConfigurationRuleCollectionRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityAdminConfigurationName: securityAdminConfigurationName, + RuleCollectionName: ruleCollectionName, + RuleName: ruleName, + } +} + +// ParseSecurityAdminConfigurationRuleCollectionRuleID parses 'input' into a SecurityAdminConfigurationRuleCollectionRuleId +func ParseSecurityAdminConfigurationRuleCollectionRuleID(input string) (*SecurityAdminConfigurationRuleCollectionRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityAdminConfigurationRuleCollectionRuleIDInsensitively parses 'input' case-insensitively into a SecurityAdminConfigurationRuleCollectionRuleId +// note: this method should only be used for API response data and not user input +func ParseSecurityAdminConfigurationRuleCollectionRuleIDInsensitively(input string) (*SecurityAdminConfigurationRuleCollectionRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityAdminConfigurationRuleCollectionRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityAdminConfigurationRuleCollectionRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityAdminConfigurationRuleCollectionRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + if id.RuleName, ok = input.Parsed["ruleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleName", input) + } + + return nil +} + +// ValidateSecurityAdminConfigurationRuleCollectionRuleID checks that 'input' can be parsed as a Security Admin Configuration Rule Collection Rule ID +func ValidateSecurityAdminConfigurationRuleCollectionRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityAdminConfigurationRuleCollectionRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security Admin Configuration Rule Collection Rule ID +func (id SecurityAdminConfigurationRuleCollectionRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s/rules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName, id.RuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security Admin Configuration Rule Collection Rule ID +func (id SecurityAdminConfigurationRuleCollectionRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + resourceids.StaticSegment("staticRules", "rules", "rules"), + resourceids.UserSpecifiedSegment("ruleName", "ruleName"), + } +} + +// String returns a human-readable description of this Security Admin Configuration Rule Collection Rule ID +func (id SecurityAdminConfigurationRuleCollectionRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + fmt.Sprintf("Rule Name: %q", id.RuleName), + } + return fmt.Sprintf("Security Admin Configuration Rule Collection Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_createorupdate.go new file mode 100644 index 000000000000..ab848b3599ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_createorupdate.go @@ -0,0 +1,63 @@ +package adminrules + +import ( + "context" + "encoding/json" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model BaseAdminRule +} + +// CreateOrUpdate ... +func (c AdminRulesClient) CreateOrUpdate(ctx context.Context, id SecurityAdminConfigurationRuleCollectionRuleId, input BaseAdminRule) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var respObj json.RawMessage + if err = resp.Unmarshal(&respObj); err != nil { + return + } + model, err := UnmarshalBaseAdminRuleImplementation(respObj) + if err != nil { + return + } + result.Model = model + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_delete.go new file mode 100644 index 000000000000..fed9fcb52389 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_delete.go @@ -0,0 +1,100 @@ +package adminrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c AdminRulesClient) Delete(ctx context.Context, id SecurityAdminConfigurationRuleCollectionRuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c AdminRulesClient) DeleteThenPoll(ctx context.Context, id SecurityAdminConfigurationRuleCollectionRuleId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_get.go new file mode 100644 index 000000000000..5373d7e1d2bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_get.go @@ -0,0 +1,58 @@ +package adminrules + +import ( + "context" + "encoding/json" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model BaseAdminRule +} + +// Get ... +func (c AdminRulesClient) Get(ctx context.Context, id SecurityAdminConfigurationRuleCollectionRuleId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var respObj json.RawMessage + if err = resp.Unmarshal(&respObj); err != nil { + return + } + model, err := UnmarshalBaseAdminRuleImplementation(respObj) + if err != nil { + return + } + result.Model = model + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_list.go new file mode 100644 index 000000000000..1ae59bc10882 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/method_list.go @@ -0,0 +1,117 @@ +package adminrules + +import ( + "context" + "encoding/json" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BaseAdminRule +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []BaseAdminRule +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c AdminRulesClient) List(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]json.RawMessage `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + temp := make([]BaseAdminRule, 0) + if values.Values != nil { + for i, v := range *values.Values { + val, err := UnmarshalBaseAdminRuleImplementation(v) + if err != nil { + err = fmt.Errorf("unmarshalling item %d for BaseAdminRule (%q): %+v", i, v, err) + return result, err + } + temp = append(temp, val) + } + } + result.Model = &temp + + return +} + +// ListComplete retrieves all the results into a single object +func (c AdminRulesClient) ListComplete(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, BaseAdminRuleOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c AdminRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id SecurityAdminConfigurationRuleCollectionId, predicate BaseAdminRuleOperationPredicate) (result ListCompleteResult, err error) { + items := make([]BaseAdminRule, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_addressprefixitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_addressprefixitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_addressprefixitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_adminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_baseadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_baseadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/model_defaultadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/version.go new file mode 100644 index 000000000000..c0386d4dc40c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules/version.go @@ -0,0 +1,10 @@ +package adminrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/adminrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/README.md new file mode 100644 index 000000000000..548c490d7446 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections` Documentation + +The `applicationgatewayprivateendpointconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections" +``` + + +### Client Initialization + +```go +client := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApplicationGatewayPrivateEndpointConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "privateEndpointConnectionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewayPrivateEndpointConnectionsClient.Get` + +```go +ctx := context.TODO() +id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "privateEndpointConnectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewayPrivateEndpointConnectionsClient.List` + +```go +ctx := context.TODO() +id := applicationgatewayprivateendpointconnections.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationGatewayPrivateEndpointConnectionsClient.Update` + +```go +ctx := context.TODO() +id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "privateEndpointConnectionName") + +payload := applicationgatewayprivateendpointconnections.ApplicationGatewayPrivateEndpointConnection{ + // ... +} + + +if err := client.UpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationgatewayprivateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlog.go new file mode 100644 index 000000000000..1222520d55aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlog.go @@ -0,0 +1,19 @@ +package applicationgatewayprivateendpointconnections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..4081ff944153 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package applicationgatewayprivateendpointconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..8578a51238a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package applicationgatewayprivateendpointconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..5deea5147b00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgatewayprivateendpointconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/version.go new file mode 100644 index 000000000000..8f05a6e32485 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections/version.go @@ -0,0 +1,10 @@ +package applicationgatewayprivateendpointconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/applicationgatewayprivateendpointconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/README.md new file mode 100644 index 000000000000..cb3dad452bd8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources` Documentation + +The `applicationgatewayprivatelinkresources` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources" +``` + + +### Client Initialization + +```go +client := applicationgatewayprivatelinkresources.NewApplicationGatewayPrivateLinkResourcesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApplicationGatewayPrivateLinkResourcesClient.List` + +```go +ctx := context.TODO() +id := applicationgatewayprivatelinkresources.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/id_applicationgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/id_applicationgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/id_applicationgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/model_applicationgatewayprivatelinkresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/version.go new file mode 100644 index 000000000000..18617611436e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources/version.go @@ -0,0 +1,10 @@ +package applicationgatewayprivatelinkresources + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/applicationgatewayprivatelinkresources/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/README.md new file mode 100644 index 000000000000..1ed3a1cf838b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/README.md @@ -0,0 +1,287 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways` Documentation + +The `applicationgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" +``` + + +### Client Initialization + +```go +client := applicationgateways.NewApplicationGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApplicationGatewaysClient.BackendHealth` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +if err := client.BackendHealthThenPoll(ctx, id, applicationgateways.DefaultBackendHealthOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.BackendHealthOnDemand` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +payload := applicationgateways.ApplicationGatewayOnDemandProbe{ + // ... +} + + +if err := client.BackendHealthOnDemandThenPoll(ctx, id, payload, applicationgateways.DefaultBackendHealthOnDemandOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +payload := applicationgateways.ApplicationGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.Get` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.GetSslPredefinedPolicy` + +```go +ctx := context.TODO() +id := applicationgateways.NewPredefinedPolicyID("12345678-1234-9876-4563-123456789012", "predefinedPolicyName") + +read, err := client.GetSslPredefinedPolicy(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableRequestHeaders` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableRequestHeaders(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableResponseHeaders` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableResponseHeaders(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableServerVariables` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableServerVariables(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableSslOptions` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableSslOptions(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableSslPredefinedPolicies` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAvailableSslPredefinedPolicies(ctx, id)` can be used to do batched pagination +items, err := client.ListAvailableSslPredefinedPoliciesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationGatewaysClient.ListAvailableWafRuleSets` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAvailableWafRuleSets(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewaysClient.Start` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +if err := client.StartThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.Stop` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") + +payload := applicationgateways.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/client.go new file mode 100644 index 000000000000..3cd17d717260 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/client.go @@ -0,0 +1,26 @@ +package applicationgateways + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaysClient struct { + Client *resourcemanager.Client +} + +func NewApplicationGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationGatewaysClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "applicationgateways", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ApplicationGatewaysClient: %+v", err) + } + + return &ApplicationGatewaysClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/constants.go new file mode 100644 index 000000000000..b7f19d34f72f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/constants.go @@ -0,0 +1,2254 @@ +package applicationgateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthServerHealth string + +const ( + ApplicationGatewayBackendHealthServerHealthDown ApplicationGatewayBackendHealthServerHealth = "Down" + ApplicationGatewayBackendHealthServerHealthDraining ApplicationGatewayBackendHealthServerHealth = "Draining" + ApplicationGatewayBackendHealthServerHealthPartial ApplicationGatewayBackendHealthServerHealth = "Partial" + ApplicationGatewayBackendHealthServerHealthUnknown ApplicationGatewayBackendHealthServerHealth = "Unknown" + ApplicationGatewayBackendHealthServerHealthUp ApplicationGatewayBackendHealthServerHealth = "Up" +) + +func PossibleValuesForApplicationGatewayBackendHealthServerHealth() []string { + return []string{ + string(ApplicationGatewayBackendHealthServerHealthDown), + string(ApplicationGatewayBackendHealthServerHealthDraining), + string(ApplicationGatewayBackendHealthServerHealthPartial), + string(ApplicationGatewayBackendHealthServerHealthUnknown), + string(ApplicationGatewayBackendHealthServerHealthUp), + } +} + +func (s *ApplicationGatewayBackendHealthServerHealth) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayBackendHealthServerHealth(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayBackendHealthServerHealth(input string) (*ApplicationGatewayBackendHealthServerHealth, error) { + vals := map[string]ApplicationGatewayBackendHealthServerHealth{ + "down": ApplicationGatewayBackendHealthServerHealthDown, + "draining": ApplicationGatewayBackendHealthServerHealthDraining, + "partial": ApplicationGatewayBackendHealthServerHealthPartial, + "unknown": ApplicationGatewayBackendHealthServerHealthUnknown, + "up": ApplicationGatewayBackendHealthServerHealthUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayBackendHealthServerHealth(input) + return &out, nil +} + +type ApplicationGatewayClientRevocationOptions string + +const ( + ApplicationGatewayClientRevocationOptionsNone ApplicationGatewayClientRevocationOptions = "None" + ApplicationGatewayClientRevocationOptionsOCSP ApplicationGatewayClientRevocationOptions = "OCSP" +) + +func PossibleValuesForApplicationGatewayClientRevocationOptions() []string { + return []string{ + string(ApplicationGatewayClientRevocationOptionsNone), + string(ApplicationGatewayClientRevocationOptionsOCSP), + } +} + +func (s *ApplicationGatewayClientRevocationOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayClientRevocationOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayClientRevocationOptions(input string) (*ApplicationGatewayClientRevocationOptions, error) { + vals := map[string]ApplicationGatewayClientRevocationOptions{ + "none": ApplicationGatewayClientRevocationOptionsNone, + "ocsp": ApplicationGatewayClientRevocationOptionsOCSP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayClientRevocationOptions(input) + return &out, nil +} + +type ApplicationGatewayCookieBasedAffinity string + +const ( + ApplicationGatewayCookieBasedAffinityDisabled ApplicationGatewayCookieBasedAffinity = "Disabled" + ApplicationGatewayCookieBasedAffinityEnabled ApplicationGatewayCookieBasedAffinity = "Enabled" +) + +func PossibleValuesForApplicationGatewayCookieBasedAffinity() []string { + return []string{ + string(ApplicationGatewayCookieBasedAffinityDisabled), + string(ApplicationGatewayCookieBasedAffinityEnabled), + } +} + +func (s *ApplicationGatewayCookieBasedAffinity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayCookieBasedAffinity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayCookieBasedAffinity(input string) (*ApplicationGatewayCookieBasedAffinity, error) { + vals := map[string]ApplicationGatewayCookieBasedAffinity{ + "disabled": ApplicationGatewayCookieBasedAffinityDisabled, + "enabled": ApplicationGatewayCookieBasedAffinityEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayCookieBasedAffinity(input) + return &out, nil +} + +type ApplicationGatewayCustomErrorStatusCode string + +const ( + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred ApplicationGatewayCustomErrorStatusCode = "HttpStatus500" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour ApplicationGatewayCustomErrorStatusCode = "HttpStatus504" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree ApplicationGatewayCustomErrorStatusCode = "HttpStatus503" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo ApplicationGatewayCustomErrorStatusCode = "HttpStatus502" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred ApplicationGatewayCustomErrorStatusCode = "HttpStatus400" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight ApplicationGatewayCustomErrorStatusCode = "HttpStatus408" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive ApplicationGatewayCustomErrorStatusCode = "HttpStatus405" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour ApplicationGatewayCustomErrorStatusCode = "HttpStatus404" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree ApplicationGatewayCustomErrorStatusCode = "HttpStatus403" +) + +func PossibleValuesForApplicationGatewayCustomErrorStatusCode() []string { + return []string{ + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree), + } +} + +func (s *ApplicationGatewayCustomErrorStatusCode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayCustomErrorStatusCode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayCustomErrorStatusCode(input string) (*ApplicationGatewayCustomErrorStatusCode, error) { + vals := map[string]ApplicationGatewayCustomErrorStatusCode{ + "httpstatus500": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred, + "httpstatus504": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour, + "httpstatus503": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree, + "httpstatus502": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo, + "httpstatus400": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred, + "httpstatus408": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight, + "httpstatus405": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive, + "httpstatus404": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour, + "httpstatus403": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayCustomErrorStatusCode(input) + return &out, nil +} + +type ApplicationGatewayFirewallMode string + +const ( + ApplicationGatewayFirewallModeDetection ApplicationGatewayFirewallMode = "Detection" + ApplicationGatewayFirewallModePrevention ApplicationGatewayFirewallMode = "Prevention" +) + +func PossibleValuesForApplicationGatewayFirewallMode() []string { + return []string{ + string(ApplicationGatewayFirewallModeDetection), + string(ApplicationGatewayFirewallModePrevention), + } +} + +func (s *ApplicationGatewayFirewallMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayFirewallMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayFirewallMode(input string) (*ApplicationGatewayFirewallMode, error) { + vals := map[string]ApplicationGatewayFirewallMode{ + "detection": ApplicationGatewayFirewallModeDetection, + "prevention": ApplicationGatewayFirewallModePrevention, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayFirewallMode(input) + return &out, nil +} + +type ApplicationGatewayLoadDistributionAlgorithm string + +const ( + ApplicationGatewayLoadDistributionAlgorithmIPHash ApplicationGatewayLoadDistributionAlgorithm = "IpHash" + ApplicationGatewayLoadDistributionAlgorithmLeastConnections ApplicationGatewayLoadDistributionAlgorithm = "LeastConnections" + ApplicationGatewayLoadDistributionAlgorithmRoundRobin ApplicationGatewayLoadDistributionAlgorithm = "RoundRobin" +) + +func PossibleValuesForApplicationGatewayLoadDistributionAlgorithm() []string { + return []string{ + string(ApplicationGatewayLoadDistributionAlgorithmIPHash), + string(ApplicationGatewayLoadDistributionAlgorithmLeastConnections), + string(ApplicationGatewayLoadDistributionAlgorithmRoundRobin), + } +} + +func (s *ApplicationGatewayLoadDistributionAlgorithm) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayLoadDistributionAlgorithm(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayLoadDistributionAlgorithm(input string) (*ApplicationGatewayLoadDistributionAlgorithm, error) { + vals := map[string]ApplicationGatewayLoadDistributionAlgorithm{ + "iphash": ApplicationGatewayLoadDistributionAlgorithmIPHash, + "leastconnections": ApplicationGatewayLoadDistributionAlgorithmLeastConnections, + "roundrobin": ApplicationGatewayLoadDistributionAlgorithmRoundRobin, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayLoadDistributionAlgorithm(input) + return &out, nil +} + +type ApplicationGatewayOperationalState string + +const ( + ApplicationGatewayOperationalStateRunning ApplicationGatewayOperationalState = "Running" + ApplicationGatewayOperationalStateStarting ApplicationGatewayOperationalState = "Starting" + ApplicationGatewayOperationalStateStopped ApplicationGatewayOperationalState = "Stopped" + ApplicationGatewayOperationalStateStopping ApplicationGatewayOperationalState = "Stopping" +) + +func PossibleValuesForApplicationGatewayOperationalState() []string { + return []string{ + string(ApplicationGatewayOperationalStateRunning), + string(ApplicationGatewayOperationalStateStarting), + string(ApplicationGatewayOperationalStateStopped), + string(ApplicationGatewayOperationalStateStopping), + } +} + +func (s *ApplicationGatewayOperationalState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayOperationalState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayOperationalState(input string) (*ApplicationGatewayOperationalState, error) { + vals := map[string]ApplicationGatewayOperationalState{ + "running": ApplicationGatewayOperationalStateRunning, + "starting": ApplicationGatewayOperationalStateStarting, + "stopped": ApplicationGatewayOperationalStateStopped, + "stopping": ApplicationGatewayOperationalStateStopping, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayOperationalState(input) + return &out, nil +} + +type ApplicationGatewayProtocol string + +const ( + ApplicationGatewayProtocolHTTP ApplicationGatewayProtocol = "Http" + ApplicationGatewayProtocolHTTPS ApplicationGatewayProtocol = "Https" + ApplicationGatewayProtocolTcp ApplicationGatewayProtocol = "Tcp" + ApplicationGatewayProtocolTls ApplicationGatewayProtocol = "Tls" +) + +func PossibleValuesForApplicationGatewayProtocol() []string { + return []string{ + string(ApplicationGatewayProtocolHTTP), + string(ApplicationGatewayProtocolHTTPS), + string(ApplicationGatewayProtocolTcp), + string(ApplicationGatewayProtocolTls), + } +} + +func (s *ApplicationGatewayProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayProtocol(input string) (*ApplicationGatewayProtocol, error) { + vals := map[string]ApplicationGatewayProtocol{ + "http": ApplicationGatewayProtocolHTTP, + "https": ApplicationGatewayProtocolHTTPS, + "tcp": ApplicationGatewayProtocolTcp, + "tls": ApplicationGatewayProtocolTls, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayProtocol(input) + return &out, nil +} + +type ApplicationGatewayRedirectType string + +const ( + ApplicationGatewayRedirectTypeFound ApplicationGatewayRedirectType = "Found" + ApplicationGatewayRedirectTypePermanent ApplicationGatewayRedirectType = "Permanent" + ApplicationGatewayRedirectTypeSeeOther ApplicationGatewayRedirectType = "SeeOther" + ApplicationGatewayRedirectTypeTemporary ApplicationGatewayRedirectType = "Temporary" +) + +func PossibleValuesForApplicationGatewayRedirectType() []string { + return []string{ + string(ApplicationGatewayRedirectTypeFound), + string(ApplicationGatewayRedirectTypePermanent), + string(ApplicationGatewayRedirectTypeSeeOther), + string(ApplicationGatewayRedirectTypeTemporary), + } +} + +func (s *ApplicationGatewayRedirectType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRedirectType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRedirectType(input string) (*ApplicationGatewayRedirectType, error) { + vals := map[string]ApplicationGatewayRedirectType{ + "found": ApplicationGatewayRedirectTypeFound, + "permanent": ApplicationGatewayRedirectTypePermanent, + "seeother": ApplicationGatewayRedirectTypeSeeOther, + "temporary": ApplicationGatewayRedirectTypeTemporary, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRedirectType(input) + return &out, nil +} + +type ApplicationGatewayRequestRoutingRuleType string + +const ( + ApplicationGatewayRequestRoutingRuleTypeBasic ApplicationGatewayRequestRoutingRuleType = "Basic" + ApplicationGatewayRequestRoutingRuleTypePathBasedRouting ApplicationGatewayRequestRoutingRuleType = "PathBasedRouting" +) + +func PossibleValuesForApplicationGatewayRequestRoutingRuleType() []string { + return []string{ + string(ApplicationGatewayRequestRoutingRuleTypeBasic), + string(ApplicationGatewayRequestRoutingRuleTypePathBasedRouting), + } +} + +func (s *ApplicationGatewayRequestRoutingRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRequestRoutingRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRequestRoutingRuleType(input string) (*ApplicationGatewayRequestRoutingRuleType, error) { + vals := map[string]ApplicationGatewayRequestRoutingRuleType{ + "basic": ApplicationGatewayRequestRoutingRuleTypeBasic, + "pathbasedrouting": ApplicationGatewayRequestRoutingRuleTypePathBasedRouting, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRequestRoutingRuleType(input) + return &out, nil +} + +type ApplicationGatewaySkuFamily string + +const ( + ApplicationGatewaySkuFamilyGenerationOne ApplicationGatewaySkuFamily = "Generation_1" + ApplicationGatewaySkuFamilyGenerationTwo ApplicationGatewaySkuFamily = "Generation_2" +) + +func PossibleValuesForApplicationGatewaySkuFamily() []string { + return []string{ + string(ApplicationGatewaySkuFamilyGenerationOne), + string(ApplicationGatewaySkuFamilyGenerationTwo), + } +} + +func (s *ApplicationGatewaySkuFamily) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySkuFamily(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySkuFamily(input string) (*ApplicationGatewaySkuFamily, error) { + vals := map[string]ApplicationGatewaySkuFamily{ + "generation_1": ApplicationGatewaySkuFamilyGenerationOne, + "generation_2": ApplicationGatewaySkuFamilyGenerationTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySkuFamily(input) + return &out, nil +} + +type ApplicationGatewaySkuName string + +const ( + ApplicationGatewaySkuNameBasic ApplicationGatewaySkuName = "Basic" + ApplicationGatewaySkuNameStandardLarge ApplicationGatewaySkuName = "Standard_Large" + ApplicationGatewaySkuNameStandardMedium ApplicationGatewaySkuName = "Standard_Medium" + ApplicationGatewaySkuNameStandardSmall ApplicationGatewaySkuName = "Standard_Small" + ApplicationGatewaySkuNameStandardVTwo ApplicationGatewaySkuName = "Standard_v2" + ApplicationGatewaySkuNameWAFLarge ApplicationGatewaySkuName = "WAF_Large" + ApplicationGatewaySkuNameWAFMedium ApplicationGatewaySkuName = "WAF_Medium" + ApplicationGatewaySkuNameWAFVTwo ApplicationGatewaySkuName = "WAF_v2" +) + +func PossibleValuesForApplicationGatewaySkuName() []string { + return []string{ + string(ApplicationGatewaySkuNameBasic), + string(ApplicationGatewaySkuNameStandardLarge), + string(ApplicationGatewaySkuNameStandardMedium), + string(ApplicationGatewaySkuNameStandardSmall), + string(ApplicationGatewaySkuNameStandardVTwo), + string(ApplicationGatewaySkuNameWAFLarge), + string(ApplicationGatewaySkuNameWAFMedium), + string(ApplicationGatewaySkuNameWAFVTwo), + } +} + +func (s *ApplicationGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySkuName(input string) (*ApplicationGatewaySkuName, error) { + vals := map[string]ApplicationGatewaySkuName{ + "basic": ApplicationGatewaySkuNameBasic, + "standard_large": ApplicationGatewaySkuNameStandardLarge, + "standard_medium": ApplicationGatewaySkuNameStandardMedium, + "standard_small": ApplicationGatewaySkuNameStandardSmall, + "standard_v2": ApplicationGatewaySkuNameStandardVTwo, + "waf_large": ApplicationGatewaySkuNameWAFLarge, + "waf_medium": ApplicationGatewaySkuNameWAFMedium, + "waf_v2": ApplicationGatewaySkuNameWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySkuName(input) + return &out, nil +} + +type ApplicationGatewaySslCipherSuite string + +const ( + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" +) + +func PossibleValuesForApplicationGatewaySslCipherSuite() []string { + return []string{ + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA), + } +} + +func (s *ApplicationGatewaySslCipherSuite) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslCipherSuite(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslCipherSuite(input string) (*ApplicationGatewaySslCipherSuite, error) { + vals := map[string]ApplicationGatewaySslCipherSuite{ + "tls_dhe_dss_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA, + "tls_dhe_dss_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_dhe_dss_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA, + "tls_dhe_dss_with_aes_256_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_dhe_dss_with_3des_ede_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA, + "tls_dhe_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA, + "tls_dhe_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_dhe_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_dhe_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_ecdsa_with_aes_256_cbc_sha384": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_rsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_rsa_with_aes_256_cbc_sha384": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA, + "tls_rsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA, + "tls_rsa_with_aes_256_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_3des_ede_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslCipherSuite(input) + return &out, nil +} + +type ApplicationGatewaySslPolicyName string + +const ( + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20150501" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401S" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20220101" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS ApplicationGatewaySslPolicyName = "AppGwSslPolicy20220101S" +) + +func PossibleValuesForApplicationGatewaySslPolicyName() []string { + return []string{ + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS), + } +} + +func (s *ApplicationGatewaySslPolicyName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslPolicyName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslPolicyName(input string) (*ApplicationGatewaySslPolicyName, error) { + vals := map[string]ApplicationGatewaySslPolicyName{ + "appgwsslpolicy20150501": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne, + "appgwsslpolicy20170401": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne, + "appgwsslpolicy20170401s": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS, + "appgwsslpolicy20220101": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne, + "appgwsslpolicy20220101s": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslPolicyName(input) + return &out, nil +} + +type ApplicationGatewaySslPolicyType string + +const ( + ApplicationGatewaySslPolicyTypeCustom ApplicationGatewaySslPolicyType = "Custom" + ApplicationGatewaySslPolicyTypeCustomVTwo ApplicationGatewaySslPolicyType = "CustomV2" + ApplicationGatewaySslPolicyTypePredefined ApplicationGatewaySslPolicyType = "Predefined" +) + +func PossibleValuesForApplicationGatewaySslPolicyType() []string { + return []string{ + string(ApplicationGatewaySslPolicyTypeCustom), + string(ApplicationGatewaySslPolicyTypeCustomVTwo), + string(ApplicationGatewaySslPolicyTypePredefined), + } +} + +func (s *ApplicationGatewaySslPolicyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslPolicyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslPolicyType(input string) (*ApplicationGatewaySslPolicyType, error) { + vals := map[string]ApplicationGatewaySslPolicyType{ + "custom": ApplicationGatewaySslPolicyTypeCustom, + "customv2": ApplicationGatewaySslPolicyTypeCustomVTwo, + "predefined": ApplicationGatewaySslPolicyTypePredefined, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslPolicyType(input) + return &out, nil +} + +type ApplicationGatewaySslProtocol string + +const ( + ApplicationGatewaySslProtocolTLSvOneOne ApplicationGatewaySslProtocol = "TLSv1_1" + ApplicationGatewaySslProtocolTLSvOneThree ApplicationGatewaySslProtocol = "TLSv1_3" + ApplicationGatewaySslProtocolTLSvOneTwo ApplicationGatewaySslProtocol = "TLSv1_2" + ApplicationGatewaySslProtocolTLSvOneZero ApplicationGatewaySslProtocol = "TLSv1_0" +) + +func PossibleValuesForApplicationGatewaySslProtocol() []string { + return []string{ + string(ApplicationGatewaySslProtocolTLSvOneOne), + string(ApplicationGatewaySslProtocolTLSvOneThree), + string(ApplicationGatewaySslProtocolTLSvOneTwo), + string(ApplicationGatewaySslProtocolTLSvOneZero), + } +} + +func (s *ApplicationGatewaySslProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslProtocol(input string) (*ApplicationGatewaySslProtocol, error) { + vals := map[string]ApplicationGatewaySslProtocol{ + "tlsv1_1": ApplicationGatewaySslProtocolTLSvOneOne, + "tlsv1_3": ApplicationGatewaySslProtocolTLSvOneThree, + "tlsv1_2": ApplicationGatewaySslProtocolTLSvOneTwo, + "tlsv1_0": ApplicationGatewaySslProtocolTLSvOneZero, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslProtocol(input) + return &out, nil +} + +type ApplicationGatewayTier string + +const ( + ApplicationGatewayTierBasic ApplicationGatewayTier = "Basic" + ApplicationGatewayTierStandard ApplicationGatewayTier = "Standard" + ApplicationGatewayTierStandardVTwo ApplicationGatewayTier = "Standard_v2" + ApplicationGatewayTierWAF ApplicationGatewayTier = "WAF" + ApplicationGatewayTierWAFVTwo ApplicationGatewayTier = "WAF_v2" +) + +func PossibleValuesForApplicationGatewayTier() []string { + return []string{ + string(ApplicationGatewayTierBasic), + string(ApplicationGatewayTierStandard), + string(ApplicationGatewayTierStandardVTwo), + string(ApplicationGatewayTierWAF), + string(ApplicationGatewayTierWAFVTwo), + } +} + +func (s *ApplicationGatewayTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayTier(input string) (*ApplicationGatewayTier, error) { + vals := map[string]ApplicationGatewayTier{ + "basic": ApplicationGatewayTierBasic, + "standard": ApplicationGatewayTierStandard, + "standard_v2": ApplicationGatewayTierStandardVTwo, + "waf": ApplicationGatewayTierWAF, + "waf_v2": ApplicationGatewayTierWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayTier(input) + return &out, nil +} + +type ApplicationGatewayTierTypes string + +const ( + ApplicationGatewayTierTypesStandard ApplicationGatewayTierTypes = "Standard" + ApplicationGatewayTierTypesStandardVTwo ApplicationGatewayTierTypes = "Standard_v2" + ApplicationGatewayTierTypesWAF ApplicationGatewayTierTypes = "WAF" + ApplicationGatewayTierTypesWAFVTwo ApplicationGatewayTierTypes = "WAF_v2" +) + +func PossibleValuesForApplicationGatewayTierTypes() []string { + return []string{ + string(ApplicationGatewayTierTypesStandard), + string(ApplicationGatewayTierTypesStandardVTwo), + string(ApplicationGatewayTierTypesWAF), + string(ApplicationGatewayTierTypesWAFVTwo), + } +} + +func (s *ApplicationGatewayTierTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayTierTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayTierTypes(input string) (*ApplicationGatewayTierTypes, error) { + vals := map[string]ApplicationGatewayTierTypes{ + "standard": ApplicationGatewayTierTypesStandard, + "standard_v2": ApplicationGatewayTierTypesStandardVTwo, + "waf": ApplicationGatewayTierTypesWAF, + "waf_v2": ApplicationGatewayTierTypesWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayTierTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleActionTypes string + +const ( + ApplicationGatewayWafRuleActionTypesAllow ApplicationGatewayWafRuleActionTypes = "Allow" + ApplicationGatewayWafRuleActionTypesAnomalyScoring ApplicationGatewayWafRuleActionTypes = "AnomalyScoring" + ApplicationGatewayWafRuleActionTypesBlock ApplicationGatewayWafRuleActionTypes = "Block" + ApplicationGatewayWafRuleActionTypesLog ApplicationGatewayWafRuleActionTypes = "Log" + ApplicationGatewayWafRuleActionTypesNone ApplicationGatewayWafRuleActionTypes = "None" +) + +func PossibleValuesForApplicationGatewayWafRuleActionTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleActionTypesAllow), + string(ApplicationGatewayWafRuleActionTypesAnomalyScoring), + string(ApplicationGatewayWafRuleActionTypesBlock), + string(ApplicationGatewayWafRuleActionTypesLog), + string(ApplicationGatewayWafRuleActionTypesNone), + } +} + +func (s *ApplicationGatewayWafRuleActionTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleActionTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleActionTypes(input string) (*ApplicationGatewayWafRuleActionTypes, error) { + vals := map[string]ApplicationGatewayWafRuleActionTypes{ + "allow": ApplicationGatewayWafRuleActionTypesAllow, + "anomalyscoring": ApplicationGatewayWafRuleActionTypesAnomalyScoring, + "block": ApplicationGatewayWafRuleActionTypesBlock, + "log": ApplicationGatewayWafRuleActionTypesLog, + "none": ApplicationGatewayWafRuleActionTypesNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleActionTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleSensitivityTypes string + +const ( + ApplicationGatewayWafRuleSensitivityTypesHigh ApplicationGatewayWafRuleSensitivityTypes = "High" + ApplicationGatewayWafRuleSensitivityTypesLow ApplicationGatewayWafRuleSensitivityTypes = "Low" + ApplicationGatewayWafRuleSensitivityTypesMedium ApplicationGatewayWafRuleSensitivityTypes = "Medium" + ApplicationGatewayWafRuleSensitivityTypesNone ApplicationGatewayWafRuleSensitivityTypes = "None" +) + +func PossibleValuesForApplicationGatewayWafRuleSensitivityTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleSensitivityTypesHigh), + string(ApplicationGatewayWafRuleSensitivityTypesLow), + string(ApplicationGatewayWafRuleSensitivityTypesMedium), + string(ApplicationGatewayWafRuleSensitivityTypesNone), + } +} + +func (s *ApplicationGatewayWafRuleSensitivityTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleSensitivityTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleSensitivityTypes(input string) (*ApplicationGatewayWafRuleSensitivityTypes, error) { + vals := map[string]ApplicationGatewayWafRuleSensitivityTypes{ + "high": ApplicationGatewayWafRuleSensitivityTypesHigh, + "low": ApplicationGatewayWafRuleSensitivityTypesLow, + "medium": ApplicationGatewayWafRuleSensitivityTypesMedium, + "none": ApplicationGatewayWafRuleSensitivityTypesNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleSensitivityTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleStateTypes string + +const ( + ApplicationGatewayWafRuleStateTypesDisabled ApplicationGatewayWafRuleStateTypes = "Disabled" + ApplicationGatewayWafRuleStateTypesEnabled ApplicationGatewayWafRuleStateTypes = "Enabled" +) + +func PossibleValuesForApplicationGatewayWafRuleStateTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleStateTypesDisabled), + string(ApplicationGatewayWafRuleStateTypesEnabled), + } +} + +func (s *ApplicationGatewayWafRuleStateTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleStateTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleStateTypes(input string) (*ApplicationGatewayWafRuleStateTypes, error) { + vals := map[string]ApplicationGatewayWafRuleStateTypes{ + "disabled": ApplicationGatewayWafRuleStateTypesDisabled, + "enabled": ApplicationGatewayWafRuleStateTypesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleStateTypes(input) + return &out, nil +} + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_applicationgateway.go new file mode 100644 index 000000000000..90637014b692 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_applicationgateway.go @@ -0,0 +1,130 @@ +package applicationgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ApplicationGatewayId{}) +} + +var _ resourceids.ResourceId = &ApplicationGatewayId{} + +// ApplicationGatewayId is a struct representing the Resource ID for a Application Gateway +type ApplicationGatewayId struct { + SubscriptionId string + ResourceGroupName string + ApplicationGatewayName string +} + +// NewApplicationGatewayID returns a new ApplicationGatewayId struct +func NewApplicationGatewayID(subscriptionId string, resourceGroupName string, applicationGatewayName string) ApplicationGatewayId { + return ApplicationGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ApplicationGatewayName: applicationGatewayName, + } +} + +// ParseApplicationGatewayID parses 'input' into a ApplicationGatewayId +func ParseApplicationGatewayID(input string) (*ApplicationGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApplicationGatewayIDInsensitively parses 'input' case-insensitively into a ApplicationGatewayId +// note: this method should only be used for API response data and not user input +func ParseApplicationGatewayIDInsensitively(input string) (*ApplicationGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApplicationGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ApplicationGatewayName, ok = input.Parsed["applicationGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "applicationGatewayName", input) + } + + return nil +} + +// ValidateApplicationGatewayID checks that 'input' can be parsed as a Application Gateway ID +func ValidateApplicationGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseApplicationGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Application Gateway ID +func (id ApplicationGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/applicationGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ApplicationGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Application Gateway ID +func (id ApplicationGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticApplicationGateways", "applicationGateways", "applicationGateways"), + resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayName"), + } +} + +// String returns a human-readable description of this Application Gateway ID +func (id ApplicationGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Application Gateway Name: %q", id.ApplicationGatewayName), + } + return fmt.Sprintf("Application Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_predefinedpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_predefinedpolicy.go new file mode 100644 index 000000000000..098e66be9e45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/id_predefinedpolicy.go @@ -0,0 +1,123 @@ +package applicationgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PredefinedPolicyId{}) +} + +var _ resourceids.ResourceId = &PredefinedPolicyId{} + +// PredefinedPolicyId is a struct representing the Resource ID for a Predefined Policy +type PredefinedPolicyId struct { + SubscriptionId string + PredefinedPolicyName string +} + +// NewPredefinedPolicyID returns a new PredefinedPolicyId struct +func NewPredefinedPolicyID(subscriptionId string, predefinedPolicyName string) PredefinedPolicyId { + return PredefinedPolicyId{ + SubscriptionId: subscriptionId, + PredefinedPolicyName: predefinedPolicyName, + } +} + +// ParsePredefinedPolicyID parses 'input' into a PredefinedPolicyId +func ParsePredefinedPolicyID(input string) (*PredefinedPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&PredefinedPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PredefinedPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePredefinedPolicyIDInsensitively parses 'input' case-insensitively into a PredefinedPolicyId +// note: this method should only be used for API response data and not user input +func ParsePredefinedPolicyIDInsensitively(input string) (*PredefinedPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&PredefinedPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PredefinedPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PredefinedPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.PredefinedPolicyName, ok = input.Parsed["predefinedPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "predefinedPolicyName", input) + } + + return nil +} + +// ValidatePredefinedPolicyID checks that 'input' can be parsed as a Predefined Policy ID +func ValidatePredefinedPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePredefinedPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Predefined Policy ID +func (id PredefinedPolicyId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.PredefinedPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Predefined Policy ID +func (id PredefinedPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticApplicationGatewayAvailableSslOptions", "applicationGatewayAvailableSslOptions", "applicationGatewayAvailableSslOptions"), + resourceids.StaticSegment("staticDefault", "default", "default"), + resourceids.StaticSegment("staticPredefinedPolicies", "predefinedPolicies", "predefinedPolicies"), + resourceids.UserSpecifiedSegment("predefinedPolicyName", "predefinedPolicyName"), + } +} + +// String returns a human-readable description of this Predefined Policy ID +func (id PredefinedPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Predefined Policy Name: %q", id.PredefinedPolicyName), + } + return fmt.Sprintf("Predefined Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealth.go new file mode 100644 index 000000000000..2ab399ab3f9e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealth.go @@ -0,0 +1,100 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendHealthOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewayBackendHealth +} + +type BackendHealthOperationOptions struct { + Expand *string +} + +func DefaultBackendHealthOperationOptions() BackendHealthOperationOptions { + return BackendHealthOperationOptions{} +} + +func (o BackendHealthOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o BackendHealthOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o BackendHealthOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// BackendHealth ... +func (c ApplicationGatewaysClient) BackendHealth(ctx context.Context, id ApplicationGatewayId, options BackendHealthOperationOptions) (result BackendHealthOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Path: fmt.Sprintf("%s/backendhealth", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// BackendHealthThenPoll performs BackendHealth then polls until it's completed +func (c ApplicationGatewaysClient) BackendHealthThenPoll(ctx context.Context, id ApplicationGatewayId, options BackendHealthOperationOptions) error { + result, err := c.BackendHealth(ctx, id, options) + if err != nil { + return fmt.Errorf("performing BackendHealth: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after BackendHealth: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealthondemand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealthondemand.go new file mode 100644 index 000000000000..a22fd7135ce6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_backendhealthondemand.go @@ -0,0 +1,104 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendHealthOnDemandOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewayBackendHealthOnDemand +} + +type BackendHealthOnDemandOperationOptions struct { + Expand *string +} + +func DefaultBackendHealthOnDemandOperationOptions() BackendHealthOnDemandOperationOptions { + return BackendHealthOnDemandOperationOptions{} +} + +func (o BackendHealthOnDemandOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o BackendHealthOnDemandOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o BackendHealthOnDemandOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// BackendHealthOnDemand ... +func (c ApplicationGatewaysClient) BackendHealthOnDemand(ctx context.Context, id ApplicationGatewayId, input ApplicationGatewayOnDemandProbe, options BackendHealthOnDemandOperationOptions) (result BackendHealthOnDemandOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + OptionsObject: options, + Path: fmt.Sprintf("%s/getBackendHealthOnDemand", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// BackendHealthOnDemandThenPoll performs BackendHealthOnDemand then polls until it's completed +func (c ApplicationGatewaysClient) BackendHealthOnDemandThenPoll(ctx context.Context, id ApplicationGatewayId, input ApplicationGatewayOnDemandProbe, options BackendHealthOnDemandOperationOptions) error { + result, err := c.BackendHealthOnDemand(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing BackendHealthOnDemand: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after BackendHealthOnDemand: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_createorupdate.go new file mode 100644 index 000000000000..66330483b32a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_createorupdate.go @@ -0,0 +1,75 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGateway +} + +// CreateOrUpdate ... +func (c ApplicationGatewaysClient) CreateOrUpdate(ctx context.Context, id ApplicationGatewayId, input ApplicationGateway) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ApplicationGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id ApplicationGatewayId, input ApplicationGateway) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_delete.go new file mode 100644 index 000000000000..6769fa69c245 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_delete.go @@ -0,0 +1,71 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ApplicationGatewaysClient) Delete(ctx context.Context, id ApplicationGatewayId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ApplicationGatewaysClient) DeleteThenPoll(ctx context.Context, id ApplicationGatewayId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_get.go new file mode 100644 index 000000000000..c25227f49ca2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_get.go @@ -0,0 +1,53 @@ +package applicationgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGateway +} + +// Get ... +func (c ApplicationGatewaysClient) Get(ctx context.Context, id ApplicationGatewayId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_getsslpredefinedpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_getsslpredefinedpolicy.go new file mode 100644 index 000000000000..d42b5d2730ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_getsslpredefinedpolicy.go @@ -0,0 +1,53 @@ +package applicationgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSslPredefinedPolicyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewaySslPredefinedPolicy +} + +// GetSslPredefinedPolicy ... +func (c ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Context, id PredefinedPolicyId) (result GetSslPredefinedPolicyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGatewaySslPredefinedPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_list.go new file mode 100644 index 000000000000..5993122f77d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_list.go @@ -0,0 +1,106 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApplicationGateway +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApplicationGateway +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ApplicationGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApplicationGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ApplicationGatewaysClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ApplicationGatewayOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApplicationGatewaysClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ApplicationGatewayOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ApplicationGateway, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listall.go new file mode 100644 index 000000000000..2339a539153a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listall.go @@ -0,0 +1,106 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApplicationGateway +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApplicationGateway +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c ApplicationGatewaysClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApplicationGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c ApplicationGatewaysClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, ApplicationGatewayOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApplicationGatewaysClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApplicationGatewayOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]ApplicationGateway, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablerequestheaders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablerequestheaders.go new file mode 100644 index 000000000000..8132f0945cfe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablerequestheaders.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableRequestHeadersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]string +} + +// ListAvailableRequestHeaders ... +func (c ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableRequestHeadersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model []string + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableresponseheaders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableresponseheaders.go new file mode 100644 index 000000000000..89bdb636e2ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableresponseheaders.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableResponseHeadersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]string +} + +// ListAvailableResponseHeaders ... +func (c ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableResponseHeadersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model []string + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableservervariables.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableservervariables.go new file mode 100644 index 000000000000..f2a0d8c4b796 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailableservervariables.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableServerVariablesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]string +} + +// ListAvailableServerVariables ... +func (c ApplicationGatewaysClient) ListAvailableServerVariables(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableServerVariablesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model []string + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablessloptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablessloptions.go new file mode 100644 index 000000000000..f446cd3730a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablessloptions.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableSslOptionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewayAvailableSslOptions +} + +// ListAvailableSslOptions ... +func (c ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableSslOptionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGatewayAvailableSslOptions + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablesslpredefinedpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablesslpredefinedpolicies.go new file mode 100644 index 000000000000..60e04b841d40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablesslpredefinedpolicies.go @@ -0,0 +1,106 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableSslPredefinedPoliciesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ApplicationGatewaySslPredefinedPolicy +} + +type ListAvailableSslPredefinedPoliciesCompleteResult struct { + LatestHttpResponse *http.Response + Items []ApplicationGatewaySslPredefinedPolicy +} + +type ListAvailableSslPredefinedPoliciesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAvailableSslPredefinedPoliciesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAvailableSslPredefinedPolicies ... +func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPolicies(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableSslPredefinedPoliciesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAvailableSslPredefinedPoliciesCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ApplicationGatewaySslPredefinedPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAvailableSslPredefinedPoliciesComplete retrieves all the results into a single object +func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesComplete(ctx context.Context, id commonids.SubscriptionId) (ListAvailableSslPredefinedPoliciesCompleteResult, error) { + return c.ListAvailableSslPredefinedPoliciesCompleteMatchingPredicate(ctx, id, ApplicationGatewaySslPredefinedPolicyOperationPredicate{}) +} + +// ListAvailableSslPredefinedPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ApplicationGatewaysClient) ListAvailableSslPredefinedPoliciesCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ApplicationGatewaySslPredefinedPolicyOperationPredicate) (result ListAvailableSslPredefinedPoliciesCompleteResult, err error) { + items := make([]ApplicationGatewaySslPredefinedPolicy, 0) + + resp, err := c.ListAvailableSslPredefinedPolicies(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAvailableSslPredefinedPoliciesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablewafrulesets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablewafrulesets.go new file mode 100644 index 000000000000..ee2a21477a57 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_listavailablewafrulesets.go @@ -0,0 +1,55 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAvailableWafRuleSetsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGatewayAvailableWafRuleSetsResult +} + +// ListAvailableWafRuleSets ... +func (c ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Context, id commonids.SubscriptionId) (result ListAvailableWafRuleSetsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGatewayAvailableWafRuleSetsResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_start.go new file mode 100644 index 000000000000..828fc60cb3c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_start.go @@ -0,0 +1,70 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Start ... +func (c ApplicationGatewaysClient) Start(ctx context.Context, id ApplicationGatewayId) (result StartOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/start", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartThenPoll performs Start then polls until it's completed +func (c ApplicationGatewaysClient) StartThenPoll(ctx context.Context, id ApplicationGatewayId) error { + result, err := c.Start(ctx, id) + if err != nil { + return fmt.Errorf("performing Start: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Start: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_stop.go new file mode 100644 index 000000000000..75b68cdf697a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_stop.go @@ -0,0 +1,70 @@ +package applicationgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Stop ... +func (c ApplicationGatewaysClient) Stop(ctx context.Context, id ApplicationGatewayId) (result StopOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stop", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StopThenPoll performs Stop then polls until it's completed +func (c ApplicationGatewaysClient) StopThenPoll(ctx context.Context, id ApplicationGatewayId) error { + result, err := c.Stop(ctx, id) + if err != nil { + return fmt.Errorf("performing Stop: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Stop: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_updatetags.go new file mode 100644 index 000000000000..875c2ce138d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/method_updatetags.go @@ -0,0 +1,57 @@ +package applicationgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ApplicationGateway +} + +// UpdateTags ... +func (c ApplicationGatewaysClient) UpdateTags(ctx context.Context, id ApplicationGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ApplicationGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgateway.go new file mode 100644 index 000000000000..26c26a889270 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgateway.go @@ -0,0 +1,21 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificate.go new file mode 100644 index 000000000000..21a1fec007fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificate.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAuthenticationCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayAuthenticationCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificatepropertiesformat.go new file mode 100644 index 000000000000..37f5189d68aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayauthenticationcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAuthenticationCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayautoscaleconfiguration.go new file mode 100644 index 000000000000..e8f13521e070 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayautoscaleconfiguration.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAutoscaleConfiguration struct { + MaxCapacity *int64 `json:"maxCapacity,omitempty"` + MinCapacity int64 `json:"minCapacity"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptions.go new file mode 100644 index 000000000000..18677bfa9ada --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptions.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAvailableSslOptions struct { + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayAvailableSslOptionsPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptionspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptionspropertiesformat.go new file mode 100644 index 000000000000..552b956629b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablessloptionspropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAvailableSslOptionsPropertiesFormat struct { + AvailableCipherSuites *[]ApplicationGatewaySslCipherSuite `json:"availableCipherSuites,omitempty"` + AvailableProtocols *[]ApplicationGatewaySslProtocol `json:"availableProtocols,omitempty"` + DefaultPolicy *ApplicationGatewaySslPolicyName `json:"defaultPolicy,omitempty"` + PredefinedPolicies *[]SubResource `json:"predefinedPolicies,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablewafrulesetsresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablewafrulesetsresult.go new file mode 100644 index 000000000000..b960a888077e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayavailablewafrulesetsresult.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAvailableWafRuleSetsResult struct { + Value *[]ApplicationGatewayFirewallRuleSet `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..9245b4581ff5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..e62cc5f5a6aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..92e4b6fcae04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealth.go new file mode 100644 index 000000000000..b84392209575 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealth.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealth struct { + BackendAddressPools *[]ApplicationGatewayBackendHealthPool `json:"backendAddressPools,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthhttpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthhttpsettings.go new file mode 100644 index 000000000000..00f4c87c142f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthhttpsettings.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthHTTPSettings struct { + BackendHTTPSettings *ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettings,omitempty"` + Servers *[]ApplicationGatewayBackendHealthServer `json:"servers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthondemand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthondemand.go new file mode 100644 index 000000000000..3bf6d17e80cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthondemand.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthOnDemand struct { + BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"` + BackendHealthHTTPSettings *ApplicationGatewayBackendHealthHTTPSettings `json:"backendHealthHttpSettings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthpool.go new file mode 100644 index 000000000000..b32fffdf6140 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthpool.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthPool struct { + BackendAddressPool *ApplicationGatewayBackendAddressPool `json:"backendAddressPool,omitempty"` + BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHealthHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthserver.go new file mode 100644 index 000000000000..c11aed154b2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhealthserver.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHealthServer struct { + Address *string `json:"address,omitempty"` + Health *ApplicationGatewayBackendHealthServerHealth `json:"health,omitempty"` + HealthProbeLog *string `json:"healthProbeLog,omitempty"` + IPConfiguration *NetworkInterfaceIPConfiguration `json:"ipConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettings.go new file mode 100644 index 000000000000..7cfbecd35064 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettings.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHTTPSettings struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendHTTPSettingsPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettingspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettingspropertiesformat.go new file mode 100644 index 000000000000..68ccfd35301c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendhttpsettingspropertiesformat.go @@ -0,0 +1,21 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHTTPSettingsPropertiesFormat struct { + AffinityCookieName *string `json:"affinityCookieName,omitempty"` + AuthenticationCertificates *[]SubResource `json:"authenticationCertificates,omitempty"` + ConnectionDraining *ApplicationGatewayConnectionDraining `json:"connectionDraining,omitempty"` + CookieBasedAffinity *ApplicationGatewayCookieBasedAffinity `json:"cookieBasedAffinity,omitempty"` + HostName *string `json:"hostName,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + Port *int64 `json:"port,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + ProbeEnabled *bool `json:"probeEnabled,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestTimeout *int64 `json:"requestTimeout,omitempty"` + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettings.go new file mode 100644 index 000000000000..435626e72963 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettings.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendSettings struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendSettingsPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettingspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettingspropertiesformat.go new file mode 100644 index 000000000000..5d5c1275f2e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaybackendsettingspropertiesformat.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendSettingsPropertiesFormat struct { + HostName *string `json:"hostName,omitempty"` + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + Port *int64 `json:"port,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayclientauthconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayclientauthconfiguration.go new file mode 100644 index 000000000000..7be179f89f0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayclientauthconfiguration.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayClientAuthConfiguration struct { + VerifyClientCertIssuerDN *bool `json:"verifyClientCertIssuerDN,omitempty"` + VerifyClientRevocation *ApplicationGatewayClientRevocationOptions `json:"verifyClientRevocation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayconnectiondraining.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayconnectiondraining.go new file mode 100644 index 000000000000..f40777a88f84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayconnectiondraining.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayConnectionDraining struct { + DrainTimeoutInSec int64 `json:"drainTimeoutInSec"` + Enabled bool `json:"enabled"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaycustomerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaycustomerror.go new file mode 100644 index 000000000000..8b0e5fb8d20f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaycustomerror.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayCustomError struct { + CustomErrorPageURL *string `json:"customErrorPageUrl,omitempty"` + StatusCode *ApplicationGatewayCustomErrorStatusCode `json:"statusCode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewalldisabledrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewalldisabledrulegroup.go new file mode 100644 index 000000000000..30534c50f525 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewalldisabledrulegroup.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallDisabledRuleGroup struct { + RuleGroupName string `json:"ruleGroupName"` + Rules *[]int64 `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallexclusion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallexclusion.go new file mode 100644 index 000000000000..77bfe2cf65c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallexclusion.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallExclusion struct { + MatchVariable string `json:"matchVariable"` + Selector string `json:"selector"` + SelectorMatchOperator string `json:"selectorMatchOperator"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrule.go new file mode 100644 index 000000000000..3e364fe77a2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrule.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRule struct { + Action *ApplicationGatewayWafRuleActionTypes `json:"action,omitempty"` + Description *string `json:"description,omitempty"` + RuleId int64 `json:"ruleId"` + RuleIdString *string `json:"ruleIdString,omitempty"` + Sensitivity *ApplicationGatewayWafRuleSensitivityTypes `json:"sensitivity,omitempty"` + State *ApplicationGatewayWafRuleStateTypes `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulegroup.go new file mode 100644 index 000000000000..06c7cbffb389 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulegroup.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRuleGroup struct { + Description *string `json:"description,omitempty"` + RuleGroupName string `json:"ruleGroupName"` + Rules []ApplicationGatewayFirewallRule `json:"rules"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallruleset.go new file mode 100644 index 000000000000..3eb743516241 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallruleset.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRuleSet struct { + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFirewallRuleSetPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulesetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulesetpropertiesformat.go new file mode 100644 index 000000000000..f0bd967c325e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfirewallrulesetpropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRuleSetPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleGroups []ApplicationGatewayFirewallRuleGroup `json:"ruleGroups"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` + Tiers *[]ApplicationGatewayTierTypes `json:"tiers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfiguration.go new file mode 100644 index 000000000000..16f3a44fe687 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..45f83bbaa113 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendipconfigurationpropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConfiguration *SubResource `json:"privateLinkConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendport.go new file mode 100644 index 000000000000..9b3c8763e014 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendport.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendPort struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFrontendPortPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendportpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendportpropertiesformat.go new file mode 100644 index 000000000000..a9399610b8b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayfrontendportpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendPortPropertiesFormat struct { + Port *int64 `json:"port,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayglobalconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayglobalconfiguration.go new file mode 100644 index 000000000000..8f031b6ad381 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayglobalconfiguration.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayGlobalConfiguration struct { + EnableRequestBuffering *bool `json:"enableRequestBuffering,omitempty"` + EnableResponseBuffering *bool `json:"enableResponseBuffering,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayheaderconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayheaderconfiguration.go new file mode 100644 index 000000000000..a7a9580c702c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayheaderconfiguration.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHeaderConfiguration struct { + HeaderName *string `json:"headerName,omitempty"` + HeaderValue *string `json:"headerValue,omitempty"` + HeaderValueMatcher *HeaderValueMatcher `json:"headerValueMatcher,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistener.go new file mode 100644 index 000000000000..457c3af7d7bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistener.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHTTPListener struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayHTTPListenerPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistenerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistenerpropertiesformat.go new file mode 100644 index 000000000000..7d3436f61862 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayhttplistenerpropertiesformat.go @@ -0,0 +1,18 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHTTPListenerPropertiesFormat struct { + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *SubResource `json:"frontendPort,omitempty"` + HostName *string `json:"hostName,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequireServerNameIndication *bool `json:"requireServerNameIndication,omitempty"` + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + SslProfile *SubResource `json:"sslProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..7b513c563594 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..67b2b22486e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistener.go new file mode 100644 index 000000000000..eb251dad173a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistener.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayListener struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayListenerPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistenerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistenerpropertiesformat.go new file mode 100644 index 000000000000..96c7728780de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaylistenerpropertiesformat.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayListenerPropertiesFormat struct { + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *SubResource `json:"frontendPort,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + SslProfile *SubResource `json:"sslProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicy.go new file mode 100644 index 000000000000..9c07ad54259c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicy.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayLoadDistributionPolicyPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicypropertiesformat.go new file mode 100644 index 000000000000..9ae762454d0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributionpolicypropertiesformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionPolicyPropertiesFormat struct { + LoadDistributionAlgorithm *ApplicationGatewayLoadDistributionAlgorithm `json:"loadDistributionAlgorithm,omitempty"` + LoadDistributionTargets *[]ApplicationGatewayLoadDistributionTarget `json:"loadDistributionTargets,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontarget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontarget.go new file mode 100644 index 000000000000..5db29bd27a5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontarget.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionTarget struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayLoadDistributionTargetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontargetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontargetpropertiesformat.go new file mode 100644 index 000000000000..cd785c4126e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayloaddistributiontargetpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionTargetPropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + WeightPerServer *int64 `json:"weightPerServer,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayondemandprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayondemandprobe.go new file mode 100644 index 000000000000..6ee19e174e2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayondemandprobe.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayOnDemandProbe struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + Host *string `json:"host,omitempty"` + Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrule.go new file mode 100644 index 000000000000..ae684eb5860a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPathRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPathRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrulepropertiesformat.go new file mode 100644 index 000000000000..c0586444c859 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypathrulepropertiesformat.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPathRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` + Paths *[]string `json:"paths,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnection.go new file mode 100644 index 000000000000..8099219aff4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnection.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnectionproperties.go new file mode 100644 index 000000000000..400c841d704a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfiguration.go new file mode 100644 index 000000000000..1997234fb4da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateLinkConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfigurationproperties.go new file mode 100644 index 000000000000..b86b3f170145 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkconfigurationproperties.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkConfigurationProperties struct { + IPConfigurations *[]ApplicationGatewayPrivateLinkIPConfiguration `json:"ipConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfiguration.go new file mode 100644 index 000000000000..ad8bfa28be72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateLinkIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfigurationproperties.go new file mode 100644 index 000000000000..b2d2b2af23ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprivatelinkipconfigurationproperties.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobe.go new file mode 100644 index 000000000000..9b27b4f71333 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobe.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbe struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayProbePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobehealthresponsematch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobehealthresponsematch.go new file mode 100644 index 000000000000..68ccf1eaaaff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobehealthresponsematch.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbeHealthResponseMatch struct { + Body *string `json:"body,omitempty"` + StatusCodes *[]string `json:"statusCodes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobepropertiesformat.go new file mode 100644 index 000000000000..dab5ee7ae23f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayprobepropertiesformat.go @@ -0,0 +1,19 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbePropertiesFormat struct { + Host *string `json:"host,omitempty"` + Interval *int64 `json:"interval,omitempty"` + Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` + MinServers *int64 `json:"minServers,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` + PickHostNameFromBackendSettings *bool `json:"pickHostNameFromBackendSettings,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + UnhealthyThreshold *int64 `json:"unhealthyThreshold,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypropertiesformat.go new file mode 100644 index 000000000000..4e54c939bcb9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaypropertiesformat.go @@ -0,0 +1,43 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPropertiesFormat struct { + AuthenticationCertificates *[]ApplicationGatewayAuthenticationCertificate `json:"authenticationCertificates,omitempty"` + AutoscaleConfiguration *ApplicationGatewayAutoscaleConfiguration `json:"autoscaleConfiguration,omitempty"` + BackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"backendAddressPools,omitempty"` + BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` + BackendSettingsCollection *[]ApplicationGatewayBackendSettings `json:"backendSettingsCollection,omitempty"` + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + DefaultPredefinedSslPolicy *ApplicationGatewaySslPolicyName `json:"defaultPredefinedSslPolicy,omitempty"` + EnableFips *bool `json:"enableFips,omitempty"` + EnableHTTP2 *bool `json:"enableHttp2,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + ForceFirewallPolicyAssociation *bool `json:"forceFirewallPolicyAssociation,omitempty"` + FrontendIPConfigurations *[]ApplicationGatewayFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` + FrontendPorts *[]ApplicationGatewayFrontendPort `json:"frontendPorts,omitempty"` + GatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"gatewayIPConfigurations,omitempty"` + GlobalConfiguration *ApplicationGatewayGlobalConfiguration `json:"globalConfiguration,omitempty"` + HTTPListeners *[]ApplicationGatewayHTTPListener `json:"httpListeners,omitempty"` + Listeners *[]ApplicationGatewayListener `json:"listeners,omitempty"` + LoadDistributionPolicies *[]ApplicationGatewayLoadDistributionPolicy `json:"loadDistributionPolicies,omitempty"` + OperationalState *ApplicationGatewayOperationalState `json:"operationalState,omitempty"` + PrivateEndpointConnections *[]ApplicationGatewayPrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + PrivateLinkConfigurations *[]ApplicationGatewayPrivateLinkConfiguration `json:"privateLinkConfigurations,omitempty"` + Probes *[]ApplicationGatewayProbe `json:"probes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfigurations *[]ApplicationGatewayRedirectConfiguration `json:"redirectConfigurations,omitempty"` + RequestRoutingRules *[]ApplicationGatewayRequestRoutingRule `json:"requestRoutingRules,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + RewriteRuleSets *[]ApplicationGatewayRewriteRuleSet `json:"rewriteRuleSets,omitempty"` + RoutingRules *[]ApplicationGatewayRoutingRule `json:"routingRules,omitempty"` + Sku *ApplicationGatewaySku `json:"sku,omitempty"` + SslCertificates *[]ApplicationGatewaySslCertificate `json:"sslCertificates,omitempty"` + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + SslProfiles *[]ApplicationGatewaySslProfile `json:"sslProfiles,omitempty"` + TrustedClientCertificates *[]ApplicationGatewayTrustedClientCertificate `json:"trustedClientCertificates,omitempty"` + TrustedRootCertificates *[]ApplicationGatewayTrustedRootCertificate `json:"trustedRootCertificates,omitempty"` + UrlPathMaps *[]ApplicationGatewayURLPathMap `json:"urlPathMaps,omitempty"` + WebApplicationFirewallConfiguration *ApplicationGatewayWebApplicationFirewallConfiguration `json:"webApplicationFirewallConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfiguration.go new file mode 100644 index 000000000000..99a2df5f0de9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRedirectConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRedirectConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfigurationpropertiesformat.go new file mode 100644 index 000000000000..b629d49b4119 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayredirectconfigurationpropertiesformat.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRedirectConfigurationPropertiesFormat struct { + IncludePath *bool `json:"includePath,omitempty"` + IncludeQueryString *bool `json:"includeQueryString,omitempty"` + PathRules *[]SubResource `json:"pathRules,omitempty"` + RedirectType *ApplicationGatewayRedirectType `json:"redirectType,omitempty"` + RequestRoutingRules *[]SubResource `json:"requestRoutingRules,omitempty"` + TargetListener *SubResource `json:"targetListener,omitempty"` + TargetURL *string `json:"targetUrl,omitempty"` + UrlPathMaps *[]SubResource `json:"urlPathMaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrule.go new file mode 100644 index 000000000000..8968674820d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRequestRoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRequestRoutingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrulepropertiesformat.go new file mode 100644 index 000000000000..d7ab0f3f4d94 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrequestroutingrulepropertiesformat.go @@ -0,0 +1,17 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRequestRoutingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + HTTPListener *SubResource `json:"httpListener,omitempty"` + LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` + RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` + UrlPathMap *SubResource `json:"urlPathMap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterule.go new file mode 100644 index 000000000000..6ce3b9a1f5d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterule.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRule struct { + ActionSet *ApplicationGatewayRewriteRuleActionSet `json:"actionSet,omitempty"` + Conditions *[]ApplicationGatewayRewriteRuleCondition `json:"conditions,omitempty"` + Name *string `json:"name,omitempty"` + RuleSequence *int64 `json:"ruleSequence,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleactionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleactionset.go new file mode 100644 index 000000000000..c46a7bd6d6c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleactionset.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleActionSet struct { + RequestHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"requestHeaderConfigurations,omitempty"` + ResponseHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"responseHeaderConfigurations,omitempty"` + UrlConfiguration *ApplicationGatewayURLConfiguration `json:"urlConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulecondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulecondition.go new file mode 100644 index 000000000000..c7e6af3b85a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulecondition.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleCondition struct { + IgnoreCase *bool `json:"ignoreCase,omitempty"` + Negate *bool `json:"negate,omitempty"` + Pattern *string `json:"pattern,omitempty"` + Variable *string `json:"variable,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleset.go new file mode 100644 index 000000000000..571e90385085 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriteruleset.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleSet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRewriteRuleSetPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulesetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulesetpropertiesformat.go new file mode 100644 index 000000000000..031206c13cec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayrewriterulesetpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleSetPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RewriteRules *[]ApplicationGatewayRewriteRule `json:"rewriteRules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrule.go new file mode 100644 index 000000000000..448709de6b46 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRoutingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrulepropertiesformat.go new file mode 100644 index 000000000000..5be005525341 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayroutingrulepropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRoutingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendSettings *SubResource `json:"backendSettings,omitempty"` + Listener *SubResource `json:"listener,omitempty"` + Priority int64 `json:"priority"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysku.go new file mode 100644 index 000000000000..461f2f965a6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysku.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySku struct { + Capacity *int64 `json:"capacity,omitempty"` + Family *ApplicationGatewaySkuFamily `json:"family,omitempty"` + Name *ApplicationGatewaySkuName `json:"name,omitempty"` + Tier *ApplicationGatewayTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificate.go new file mode 100644 index 000000000000..1f5898678625 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificate.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificatepropertiesformat.go new file mode 100644 index 000000000000..1c92efb93bd5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslcertificatepropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + Password *string `json:"password,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicCertData *string `json:"publicCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpolicy.go new file mode 100644 index 000000000000..be42ac49a185 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpolicy.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslPolicy struct { + CipherSuites *[]ApplicationGatewaySslCipherSuite `json:"cipherSuites,omitempty"` + DisabledSslProtocols *[]ApplicationGatewaySslProtocol `json:"disabledSslProtocols,omitempty"` + MinProtocolVersion *ApplicationGatewaySslProtocol `json:"minProtocolVersion,omitempty"` + PolicyName *ApplicationGatewaySslPolicyName `json:"policyName,omitempty"` + PolicyType *ApplicationGatewaySslPolicyType `json:"policyType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicy.go new file mode 100644 index 000000000000..a7932dc66dbe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicy.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslPredefinedPolicy struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslPredefinedPolicyPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicypropertiesformat.go new file mode 100644 index 000000000000..15702750dea7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslpredefinedpolicypropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslPredefinedPolicyPropertiesFormat struct { + CipherSuites *[]ApplicationGatewaySslCipherSuite `json:"cipherSuites,omitempty"` + MinProtocolVersion *ApplicationGatewaySslProtocol `json:"minProtocolVersion,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofile.go new file mode 100644 index 000000000000..609877668f8c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofile.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofilepropertiesformat.go new file mode 100644 index 000000000000..a7c5ae2c8831 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaysslprofilepropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslProfilePropertiesFormat struct { + ClientAuthConfiguration *ApplicationGatewayClientAuthConfiguration `json:"clientAuthConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + TrustedClientCertificates *[]SubResource `json:"trustedClientCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificate.go new file mode 100644 index 000000000000..731b46860d77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificate.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedClientCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayTrustedClientCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificatepropertiesformat.go new file mode 100644 index 000000000000..67b5d91461dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedclientcertificatepropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedClientCertificatePropertiesFormat struct { + ClientCertIssuerDN *string `json:"clientCertIssuerDN,omitempty"` + Data *string `json:"data,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ValidatedCertData *string `json:"validatedCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificate.go new file mode 100644 index 000000000000..12343718b358 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificate.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedRootCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayTrustedRootCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificatepropertiesformat.go new file mode 100644 index 000000000000..7aeb8e0a84e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaytrustedrootcertificatepropertiesformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedRootCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlconfiguration.go new file mode 100644 index 000000000000..9c77d1808a21 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlconfiguration.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLConfiguration struct { + ModifiedPath *string `json:"modifiedPath,omitempty"` + ModifiedQueryString *string `json:"modifiedQueryString,omitempty"` + Reroute *bool `json:"reroute,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmap.go new file mode 100644 index 000000000000..9ca546cb9579 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmap.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLPathMap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayURLPathMapPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmappropertiesformat.go new file mode 100644 index 000000000000..9c00ae43cdf9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewayurlpathmappropertiesformat.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLPathMapPropertiesFormat struct { + DefaultBackendAddressPool *SubResource `json:"defaultBackendAddressPool,omitempty"` + DefaultBackendHTTPSettings *SubResource `json:"defaultBackendHttpSettings,omitempty"` + DefaultLoadDistributionPolicy *SubResource `json:"defaultLoadDistributionPolicy,omitempty"` + DefaultRedirectConfiguration *SubResource `json:"defaultRedirectConfiguration,omitempty"` + DefaultRewriteRuleSet *SubResource `json:"defaultRewriteRuleSet,omitempty"` + PathRules *[]ApplicationGatewayPathRule `json:"pathRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaywebapplicationfirewallconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaywebapplicationfirewallconfiguration.go new file mode 100644 index 000000000000..561512df449c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationgatewaywebapplicationfirewallconfiguration.go @@ -0,0 +1,17 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayWebApplicationFirewallConfiguration struct { + DisabledRuleGroups *[]ApplicationGatewayFirewallDisabledRuleGroup `json:"disabledRuleGroups,omitempty"` + Enabled bool `json:"enabled"` + Exclusions *[]ApplicationGatewayFirewallExclusion `json:"exclusions,omitempty"` + FileUploadLimitInMb *int64 `json:"fileUploadLimitInMb,omitempty"` + FirewallMode ApplicationGatewayFirewallMode `json:"firewallMode"` + MaxRequestBodySize *int64 `json:"maxRequestBodySize,omitempty"` + MaxRequestBodySizeInKb *int64 `json:"maxRequestBodySizeInKb,omitempty"` + RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..71e4f60a5a08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..c8593cff7762 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspool.go new file mode 100644 index 000000000000..1a7d2037c678 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..74aca7bc73d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..821207ea54b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ddossettings.go new file mode 100644 index 000000000000..afe28edd8fce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ddossettings.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_delegation.go new file mode 100644 index 000000000000..dde48e048ee9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_delegation.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlog.go new file mode 100644 index 000000000000..af3968a2f683 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlog.go @@ -0,0 +1,19 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogformatparameters.go new file mode 100644 index 000000000000..79d541b9318d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..a180a38c6fb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfiguration.go new file mode 100644 index 000000000000..6af1ef349913 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..dfcbf3e5acac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..81f735923092 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_headervaluematcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_headervaluematcher.go new file mode 100644 index 000000000000..5c2f77f54e2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_headervaluematcher.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HeaderValueMatcher struct { + IgnoreCase *bool `json:"ignoreCase,omitempty"` + Negate *bool `json:"negate,omitempty"` + Pattern *string `json:"pattern,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrule.go new file mode 100644 index 000000000000..e8326d63cddf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..e68b37342b31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfiguration.go new file mode 100644 index 000000000000..3035f84c5962 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..edb884d27183 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..1c6df0dcda2c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..5de8de82f9ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_iptag.go new file mode 100644 index 000000000000..e423a8c05939 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_iptag.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..a4bb848daa55 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..ab1822cd6b6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgateway.go new file mode 100644 index 000000000000..eb51b102cada --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgateway.go @@ -0,0 +1,20 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..21ac8a2eca2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaysku.go new file mode 100644 index 000000000000..54ee08d24982 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natruleportmapping.go new file mode 100644 index 000000000000..1ca2ef21443e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterface.go new file mode 100644 index 000000000000..73b1cb41a522 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterface.go @@ -0,0 +1,19 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..92961ce7d045 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..1be55bfe4695 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..fed49bbe9de6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..452ec816a207 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..302d4c3283d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..8dc171864266 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..199c278ace04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygroup.go new file mode 100644 index 000000000000..14268c44ed07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..e16fb5f6fb3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpoint.go new file mode 100644 index 000000000000..4ec265596645 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpoint.go @@ -0,0 +1,19 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnection.go new file mode 100644 index 000000000000..72911c666f83 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..baec08812d8e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..7cae9c3cf716 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..f1f5adead632 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointproperties.go new file mode 100644 index 000000000000..832b7f18a5d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkservice.go new file mode 100644 index 000000000000..238c6ee31c6f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..ee88d81eb06d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..26b1b21ad327 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..2d2970905b08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..18d6fcdf24dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..02fc04bab97f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..545a2473e0fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddress.go new file mode 100644 index 000000000000..c17efae3e57c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddress.go @@ -0,0 +1,22 @@ +package applicationgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..4aeba6f0581e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..d714bdf3daa0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresssku.go new file mode 100644 index 000000000000..976ba6d175a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlink.go new file mode 100644 index 000000000000..0aeedfe5241e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..540e9b96c41a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourceset.go new file mode 100644 index 000000000000..05c6f87a0974 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_resourceset.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..aed6889cbaba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_route.go new file mode 100644 index 000000000000..8b16e63b0d46 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_route.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routepropertiesformat.go new file mode 100644 index 000000000000..e5c5f6988741 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetable.go new file mode 100644 index 000000000000..6b3d63e8b6cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetable.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..af2c694b5dbc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrule.go new file mode 100644 index 000000000000..ef187da7432b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrule.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..c96607c5d206 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlink.go new file mode 100644 index 000000000000..fcd770e8b43f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..74146988cafb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..508b02893d33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..3c9d04af717f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..3c52f56e9ead --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..0ccd3a839f33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..edd49bd36a4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..651b33530e8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnet.go new file mode 100644 index 000000000000..9bad3a3150cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnet.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..d252ccc3e8c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subresource.go new file mode 100644 index 000000000000..5e7297f22b2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_subresource.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_tagsobject.go new file mode 100644 index 000000000000..d5962ed5647f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_tagsobject.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..657671157786 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..b9b39e7b346c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktap.go new file mode 100644 index 000000000000..610065f3a8a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..a7db53f16295 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/predicates.go new file mode 100644 index 000000000000..c51e6f7b000d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/predicates.go @@ -0,0 +1,55 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p ApplicationGatewayOperationPredicate) Matches(input ApplicationGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ApplicationGatewaySslPredefinedPolicyOperationPredicate struct { + Id *string + Name *string +} + +func (p ApplicationGatewaySslPredefinedPolicyOperationPredicate) Matches(input ApplicationGatewaySslPredefinedPolicy) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/version.go new file mode 100644 index 000000000000..75cb5f6a69c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways/version.go @@ -0,0 +1,10 @@ +package applicationgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/applicationgateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/README.md new file mode 100644 index 000000000000..d3be5076b6bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/README.md @@ -0,0 +1,53 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests` Documentation + +The `applicationgatewaywafdynamicmanifests` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests" +``` + + +### Client Initialization + +```go +client := applicationgatewaywafdynamicmanifests.NewApplicationGatewayWafDynamicManifestsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApplicationGatewayWafDynamicManifestsClient.DefaultGet` + +```go +ctx := context.TODO() +id := applicationgatewaywafdynamicmanifests.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +read, err := client.DefaultGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationGatewayWafDynamicManifestsClient.Get` + +```go +ctx := context.TODO() +id := applicationgatewaywafdynamicmanifests.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.Get(ctx, id)` can be used to do batched pagination +items, err := client.GetComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/constants.go new file mode 100644 index 000000000000..40d85530d248 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/constants.go @@ -0,0 +1,242 @@ +package applicationgatewaywafdynamicmanifests + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRuleSetStatusOptions string + +const ( + ApplicationGatewayRuleSetStatusOptionsDeprecated ApplicationGatewayRuleSetStatusOptions = "Deprecated" + ApplicationGatewayRuleSetStatusOptionsGA ApplicationGatewayRuleSetStatusOptions = "GA" + ApplicationGatewayRuleSetStatusOptionsPreview ApplicationGatewayRuleSetStatusOptions = "Preview" + ApplicationGatewayRuleSetStatusOptionsSupported ApplicationGatewayRuleSetStatusOptions = "Supported" +) + +func PossibleValuesForApplicationGatewayRuleSetStatusOptions() []string { + return []string{ + string(ApplicationGatewayRuleSetStatusOptionsDeprecated), + string(ApplicationGatewayRuleSetStatusOptionsGA), + string(ApplicationGatewayRuleSetStatusOptionsPreview), + string(ApplicationGatewayRuleSetStatusOptionsSupported), + } +} + +func (s *ApplicationGatewayRuleSetStatusOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRuleSetStatusOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRuleSetStatusOptions(input string) (*ApplicationGatewayRuleSetStatusOptions, error) { + vals := map[string]ApplicationGatewayRuleSetStatusOptions{ + "deprecated": ApplicationGatewayRuleSetStatusOptionsDeprecated, + "ga": ApplicationGatewayRuleSetStatusOptionsGA, + "preview": ApplicationGatewayRuleSetStatusOptionsPreview, + "supported": ApplicationGatewayRuleSetStatusOptionsSupported, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRuleSetStatusOptions(input) + return &out, nil +} + +type ApplicationGatewayTierTypes string + +const ( + ApplicationGatewayTierTypesStandard ApplicationGatewayTierTypes = "Standard" + ApplicationGatewayTierTypesStandardVTwo ApplicationGatewayTierTypes = "Standard_v2" + ApplicationGatewayTierTypesWAF ApplicationGatewayTierTypes = "WAF" + ApplicationGatewayTierTypesWAFVTwo ApplicationGatewayTierTypes = "WAF_v2" +) + +func PossibleValuesForApplicationGatewayTierTypes() []string { + return []string{ + string(ApplicationGatewayTierTypesStandard), + string(ApplicationGatewayTierTypesStandardVTwo), + string(ApplicationGatewayTierTypesWAF), + string(ApplicationGatewayTierTypesWAFVTwo), + } +} + +func (s *ApplicationGatewayTierTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayTierTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayTierTypes(input string) (*ApplicationGatewayTierTypes, error) { + vals := map[string]ApplicationGatewayTierTypes{ + "standard": ApplicationGatewayTierTypesStandard, + "standard_v2": ApplicationGatewayTierTypesStandardVTwo, + "waf": ApplicationGatewayTierTypesWAF, + "waf_v2": ApplicationGatewayTierTypesWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayTierTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleActionTypes string + +const ( + ApplicationGatewayWafRuleActionTypesAllow ApplicationGatewayWafRuleActionTypes = "Allow" + ApplicationGatewayWafRuleActionTypesAnomalyScoring ApplicationGatewayWafRuleActionTypes = "AnomalyScoring" + ApplicationGatewayWafRuleActionTypesBlock ApplicationGatewayWafRuleActionTypes = "Block" + ApplicationGatewayWafRuleActionTypesLog ApplicationGatewayWafRuleActionTypes = "Log" + ApplicationGatewayWafRuleActionTypesNone ApplicationGatewayWafRuleActionTypes = "None" +) + +func PossibleValuesForApplicationGatewayWafRuleActionTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleActionTypesAllow), + string(ApplicationGatewayWafRuleActionTypesAnomalyScoring), + string(ApplicationGatewayWafRuleActionTypesBlock), + string(ApplicationGatewayWafRuleActionTypesLog), + string(ApplicationGatewayWafRuleActionTypesNone), + } +} + +func (s *ApplicationGatewayWafRuleActionTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleActionTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleActionTypes(input string) (*ApplicationGatewayWafRuleActionTypes, error) { + vals := map[string]ApplicationGatewayWafRuleActionTypes{ + "allow": ApplicationGatewayWafRuleActionTypesAllow, + "anomalyscoring": ApplicationGatewayWafRuleActionTypesAnomalyScoring, + "block": ApplicationGatewayWafRuleActionTypesBlock, + "log": ApplicationGatewayWafRuleActionTypesLog, + "none": ApplicationGatewayWafRuleActionTypesNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleActionTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleSensitivityTypes string + +const ( + ApplicationGatewayWafRuleSensitivityTypesHigh ApplicationGatewayWafRuleSensitivityTypes = "High" + ApplicationGatewayWafRuleSensitivityTypesLow ApplicationGatewayWafRuleSensitivityTypes = "Low" + ApplicationGatewayWafRuleSensitivityTypesMedium ApplicationGatewayWafRuleSensitivityTypes = "Medium" + ApplicationGatewayWafRuleSensitivityTypesNone ApplicationGatewayWafRuleSensitivityTypes = "None" +) + +func PossibleValuesForApplicationGatewayWafRuleSensitivityTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleSensitivityTypesHigh), + string(ApplicationGatewayWafRuleSensitivityTypesLow), + string(ApplicationGatewayWafRuleSensitivityTypesMedium), + string(ApplicationGatewayWafRuleSensitivityTypesNone), + } +} + +func (s *ApplicationGatewayWafRuleSensitivityTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleSensitivityTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleSensitivityTypes(input string) (*ApplicationGatewayWafRuleSensitivityTypes, error) { + vals := map[string]ApplicationGatewayWafRuleSensitivityTypes{ + "high": ApplicationGatewayWafRuleSensitivityTypesHigh, + "low": ApplicationGatewayWafRuleSensitivityTypesLow, + "medium": ApplicationGatewayWafRuleSensitivityTypesMedium, + "none": ApplicationGatewayWafRuleSensitivityTypesNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleSensitivityTypes(input) + return &out, nil +} + +type ApplicationGatewayWafRuleStateTypes string + +const ( + ApplicationGatewayWafRuleStateTypesDisabled ApplicationGatewayWafRuleStateTypes = "Disabled" + ApplicationGatewayWafRuleStateTypesEnabled ApplicationGatewayWafRuleStateTypes = "Enabled" +) + +func PossibleValuesForApplicationGatewayWafRuleStateTypes() []string { + return []string{ + string(ApplicationGatewayWafRuleStateTypesDisabled), + string(ApplicationGatewayWafRuleStateTypesEnabled), + } +} + +func (s *ApplicationGatewayWafRuleStateTypes) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayWafRuleStateTypes(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayWafRuleStateTypes(input string) (*ApplicationGatewayWafRuleStateTypes, error) { + vals := map[string]ApplicationGatewayWafRuleStateTypes{ + "disabled": ApplicationGatewayWafRuleStateTypesDisabled, + "enabled": ApplicationGatewayWafRuleStateTypesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayWafRuleStateTypes(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_defaultget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/method_defaultget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_defaultget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/method_defaultget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallmanifestruleset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go new file mode 100644 index 000000000000..30a847539f1c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrule.go @@ -0,0 +1,13 @@ +package applicationgatewaywafdynamicmanifests + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallRule struct { + Action *ApplicationGatewayWafRuleActionTypes `json:"action,omitempty"` + Description *string `json:"description,omitempty"` + RuleId int64 `json:"ruleId"` + RuleIdString *string `json:"ruleIdString,omitempty"` + Sensitivity *ApplicationGatewayWafRuleSensitivityTypes `json:"sensitivity,omitempty"` + State *ApplicationGatewayWafRuleStateTypes `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewayfirewallrulegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestpropertiesresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_applicationgatewaywafdynamicmanifestresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/model_defaultrulesetpropertyformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/version.go new file mode 100644 index 000000000000..34255b778968 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests/version.go @@ -0,0 +1,10 @@ +package applicationgatewaywafdynamicmanifests + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/applicationgatewaywafdynamicmanifests/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/README.md new file mode 100644 index 000000000000..2acd6fec383b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups` Documentation + +The `applicationsecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" +``` + + +### Client Initialization + +```go +client := applicationsecuritygroups.NewApplicationSecurityGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") + +payload := applicationsecuritygroups.ApplicationSecurityGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.Delete` + +```go +ctx := context.TODO() +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.Get` + +```go +ctx := context.TODO() +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ApplicationSecurityGroupsClient.UpdateTags` + +```go +ctx := context.TODO() +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") + +payload := applicationsecuritygroups.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/id_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/id_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/version.go new file mode 100644 index 000000000000..5aa09750d510 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups/version.go @@ -0,0 +1,10 @@ +package applicationsecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/applicationsecuritygroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/README.md new file mode 100644 index 000000000000..d5441dd3d42b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations` Documentation + +The `availabledelegations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations" +``` + + +### Client Initialization + +```go +client := availabledelegations.NewAvailableDelegationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AvailableDelegationsClient.AvailableDelegationsList` + +```go +ctx := context.TODO() +id := availabledelegations.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.AvailableDelegationsList(ctx, id)` can be used to do batched pagination +items, err := client.AvailableDelegationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AvailableDelegationsClient.AvailableResourceGroupDelegationsList` + +```go +ctx := context.TODO() +id := availabledelegations.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") + +// alternatively `client.AvailableResourceGroupDelegationsList(ctx, id)` can be used to do batched pagination +items, err := client.AvailableResourceGroupDelegationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/id_providerlocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_providerlocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/id_providerlocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/method_availabledelegationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/method_availabledelegationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/method_availabledelegationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/method_availabledelegationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/method_availableresourcegroupdelegationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/method_availableresourcegroupdelegationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/method_availableresourcegroupdelegationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/method_availableresourcegroupdelegationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/model_availabledelegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/model_availabledelegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/model_availabledelegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/model_availabledelegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/version.go new file mode 100644 index 000000000000..689dcde82fb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations/version.go @@ -0,0 +1,10 @@ +package availabledelegations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/availabledelegations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/README.md new file mode 100644 index 000000000000..ad6706a27ced --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases` Documentation + +The `availableservicealiases` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases" +``` + + +### Client Initialization + +```go +client := availableservicealiases.NewAvailableServiceAliasesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AvailableServiceAliasesClient.List` + +```go +ctx := context.TODO() +id := availableservicealiases.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AvailableServiceAliasesClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := availableservicealiases.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/id_providerlocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_providerlocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/id_providerlocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/model_availableservicealias.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/model_availableservicealias.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/model_availableservicealias.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/model_availableservicealias.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/version.go new file mode 100644 index 000000000000..264112b04253 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases/version.go @@ -0,0 +1,10 @@ +package availableservicealiases + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/availableservicealiases/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/README.md new file mode 100644 index 000000000000..b36c2aecafb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/README.md @@ -0,0 +1,146 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls` Documentation + +The `azurefirewalls` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" +``` + + +### Client Initialization + +```go +client := azurefirewalls.NewAzureFirewallsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `AzureFirewallsClient.AzureFirewallsListLearnedPrefixes` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +if err := client.AzureFirewallsListLearnedPrefixesThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureFirewallsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +payload := azurefirewalls.AzureFirewall{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureFirewallsClient.Delete` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureFirewallsClient.Get` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `AzureFirewallsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AzureFirewallsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `AzureFirewallsClient.PacketCapture` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +payload := azurefirewalls.FirewallPacketCaptureParameters{ + // ... +} + + +if err := client.PacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `AzureFirewallsClient.UpdateTags` + +```go +ctx := context.TODO() +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") + +payload := azurefirewalls.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/id_azurefirewall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/id_azurefirewall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_azurefirewallslistlearnedprefixes.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_packetcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_packetcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_packetcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationrulecollectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallapplicationruleprotocol.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallautoscaleconfiguration.go new file mode 100644 index 000000000000..39e71317305d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallautoscaleconfiguration.go @@ -0,0 +1,9 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AzureFirewallAutoscaleConfiguration struct { + MaxCapacity *int64 `json:"maxCapacity,omitempty"` + MinCapacity *int64 `json:"minCapacity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipgroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipgroups.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallipgroups.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallipgroups.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrcaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrcaction.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrcaction.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrcaction.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnatrulecollectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallnetworkrulecollectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcaptureflags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcapturerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcapturerule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpacketcapturerule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpacketcapturerule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpropertiesformat.go similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpropertiesformat.go index 0e8c463423fc..61ffc25c5854 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpropertiesformat.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpropertiesformat.go @@ -6,6 +6,7 @@ package azurefirewalls type AzureFirewallPropertiesFormat struct { AdditionalProperties *map[string]string `json:"additionalProperties,omitempty"` ApplicationRuleCollections *[]AzureFirewallApplicationRuleCollection `json:"applicationRuleCollections,omitempty"` + AutoscaleConfiguration *AzureFirewallAutoscaleConfiguration `json:"autoscaleConfiguration,omitempty"` FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` HubIPAddresses *HubIPAddresses `json:"hubIPAddresses,omitempty"` IPConfigurations *[]AzureFirewallIPConfiguration `json:"ipConfigurations,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpublicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallpublicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallpublicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallrcaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallrcaction.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallrcaction.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallrcaction.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallsku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_azurefirewallsku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_azurefirewallsku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_firewallpacketcaptureparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_firewallpacketcaptureparameters.go new file mode 100644 index 000000000000..0fab56fc1d54 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_firewallpacketcaptureparameters.go @@ -0,0 +1,14 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPacketCaptureParameters struct { + DurationInSeconds *int64 `json:"durationInSeconds,omitempty"` + FileName *string `json:"fileName,omitempty"` + Filters *[]AzureFirewallPacketCaptureRule `json:"filters,omitempty"` + Flags *[]AzureFirewallPacketCaptureFlags `json:"flags,omitempty"` + NumberOfPacketsToCapture *int64 `json:"numberOfPacketsToCapture,omitempty"` + Protocol *AzureFirewallNetworkRuleProtocol `json:"protocol,omitempty"` + SasURL *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubpublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubpublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_hubpublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_hubpublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_ipprefixeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_ipprefixeslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_ipprefixeslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_ipprefixeslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/version.go new file mode 100644 index 000000000000..68d67e3990b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls/version.go @@ -0,0 +1,10 @@ +package azurefirewalls + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/azurefirewalls/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/README.md new file mode 100644 index 000000000000..82b0359a400a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts` Documentation + +The `bastionhosts` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts" +``` + + +### Client Initialization + +```go +client := bastionhosts.NewBastionHostsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BastionHostsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionhosts.BastionHost{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BastionHostsClient.Delete` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `BastionHostsClient.DeleteBastionShareableLink` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionhosts.BastionShareableLinkListRequest{ + // ... +} + + +if err := client.DeleteBastionShareableLinkThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BastionHostsClient.DeleteBastionShareableLinkByToken` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionhosts.BastionShareableLinkTokenListRequest{ + // ... +} + + +if err := client.DeleteBastionShareableLinkByTokenThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BastionHostsClient.DisconnectActiveSessions` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionhosts.SessionIds{ + // ... +} + + +// alternatively `client.DisconnectActiveSessions(ctx, id, payload)` can be used to do batched pagination +items, err := client.DisconnectActiveSessionsComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BastionHostsClient.Get` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `BastionHostsClient.GetActiveSessions` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +// alternatively `client.GetActiveSessions(ctx, id)` can be used to do batched pagination +items, err := client.GetActiveSessionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BastionHostsClient.GetBastionShareableLink` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionhosts.BastionShareableLinkListRequest{ + // ... +} + + +// alternatively `client.GetBastionShareableLink(ctx, id, payload)` can be used to do batched pagination +items, err := client.GetBastionShareableLinkComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BastionHostsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BastionHostsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BastionHostsClient.PutBastionShareableLink` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionhosts.BastionShareableLinkListRequest{ + // ... +} + + +// alternatively `client.PutBastionShareableLink(ctx, id, payload)` can be used to do batched pagination +items, err := client.PutBastionShareableLinkComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BastionHostsClient.UpdateTags` + +```go +ctx := context.TODO() +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionhosts.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/constants.go new file mode 100644 index 000000000000..3822668195b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/constants.go @@ -0,0 +1,186 @@ +package bastionhosts + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BastionConnectProtocol string + +const ( + BastionConnectProtocolRDP BastionConnectProtocol = "RDP" + BastionConnectProtocolSSH BastionConnectProtocol = "SSH" +) + +func PossibleValuesForBastionConnectProtocol() []string { + return []string{ + string(BastionConnectProtocolRDP), + string(BastionConnectProtocolSSH), + } +} + +func (s *BastionConnectProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBastionConnectProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBastionConnectProtocol(input string) (*BastionConnectProtocol, error) { + vals := map[string]BastionConnectProtocol{ + "rdp": BastionConnectProtocolRDP, + "ssh": BastionConnectProtocolSSH, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BastionConnectProtocol(input) + return &out, nil +} + +type BastionHostSkuName string + +const ( + BastionHostSkuNameBasic BastionHostSkuName = "Basic" + BastionHostSkuNameDeveloper BastionHostSkuName = "Developer" + BastionHostSkuNamePremium BastionHostSkuName = "Premium" + BastionHostSkuNameStandard BastionHostSkuName = "Standard" +) + +func PossibleValuesForBastionHostSkuName() []string { + return []string{ + string(BastionHostSkuNameBasic), + string(BastionHostSkuNameDeveloper), + string(BastionHostSkuNamePremium), + string(BastionHostSkuNameStandard), + } +} + +func (s *BastionHostSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBastionHostSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBastionHostSkuName(input string) (*BastionHostSkuName, error) { + vals := map[string]BastionHostSkuName{ + "basic": BastionHostSkuNameBasic, + "developer": BastionHostSkuNameDeveloper, + "premium": BastionHostSkuNamePremium, + "standard": BastionHostSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BastionHostSkuName(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/id_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/id_bastionhost.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/id_bastionhost.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/id_bastionhost.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_deletebastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_deletebastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_deletebastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_deletebastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_deletebastionshareablelinkbytoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_deletebastionshareablelinkbytoken.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_deletebastionshareablelinkbytoken.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_deletebastionshareablelinkbytoken.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_disconnectactivesessions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_disconnectactivesessions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_disconnectactivesessions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_disconnectactivesessions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_getactivesessions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_getactivesessions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_getactivesessions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_getactivesessions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_getbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_getbastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_getbastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_getbastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_putbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_putbastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_putbastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_putbastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionactivesession.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionactivesession.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionactivesession.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionactivesession.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhost.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhost.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhost.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformat.go new file mode 100644 index 000000000000..d45d86671abc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformat.go @@ -0,0 +1,20 @@ +package bastionhosts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BastionHostPropertiesFormat struct { + DisableCopyPaste *bool `json:"disableCopyPaste,omitempty"` + DnsName *string `json:"dnsName,omitempty"` + EnableFileCopy *bool `json:"enableFileCopy,omitempty"` + EnableIPConnect *bool `json:"enableIpConnect,omitempty"` + EnableKerberos *bool `json:"enableKerberos,omitempty"` + EnableSessionRecording *bool `json:"enableSessionRecording,omitempty"` + EnableShareableLink *bool `json:"enableShareableLink,omitempty"` + EnableTunneling *bool `json:"enableTunneling,omitempty"` + IPConfigurations *[]BastionHostIPConfiguration `json:"ipConfigurations,omitempty"` + NetworkAcls *BastionHostPropertiesFormatNetworkAcls `json:"networkAcls,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ScaleUnits *int64 `json:"scaleUnits,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionhostpropertiesformatnetworkacls.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionsessionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionsessionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionsessionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionsessionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelinklistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelinklistrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelinklistrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelinklistrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelinktokenlistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelinktokenlistrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_bastionshareablelinktokenlistrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_bastionshareablelinktokenlistrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_iprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_iprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_iprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_iprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_resource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_resource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_resource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_resource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_sessionids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_sessionids.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_sessionids.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_sessionids.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/version.go new file mode 100644 index 000000000000..5edb9502aedc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts/version.go @@ -0,0 +1,10 @@ +package bastionhosts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/bastionhosts/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/README.md new file mode 100644 index 000000000000..ff990e0d05c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/README.md @@ -0,0 +1,98 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink` Documentation + +The `bastionshareablelink` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink" +``` + + +### Client Initialization + +```go +client := bastionshareablelink.NewBastionShareableLinkClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BastionShareableLinkClient.DeleteBastionShareableLink` + +```go +ctx := context.TODO() +id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionshareablelink.BastionShareableLinkListRequest{ + // ... +} + + +if err := client.DeleteBastionShareableLinkThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BastionShareableLinkClient.DeleteBastionShareableLinkByToken` + +```go +ctx := context.TODO() +id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionshareablelink.BastionShareableLinkTokenListRequest{ + // ... +} + + +if err := client.DeleteBastionShareableLinkByTokenThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `BastionShareableLinkClient.GetBastionShareableLink` + +```go +ctx := context.TODO() +id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionshareablelink.BastionShareableLinkListRequest{ + // ... +} + + +// alternatively `client.GetBastionShareableLink(ctx, id, payload)` can be used to do batched pagination +items, err := client.GetBastionShareableLinkComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `BastionShareableLinkClient.PutBastionShareableLink` + +```go +ctx := context.TODO() +id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") + +payload := bastionshareablelink.BastionShareableLinkListRequest{ + // ... +} + + +// alternatively `client.PutBastionShareableLink(ctx, id, payload)` can be used to do batched pagination +items, err := client.PutBastionShareableLinkComplete(ctx, id, payload) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/id_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/id_bastionhost.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/id_bastionhost.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/id_bastionhost.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_deletebastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_deletebastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_deletebastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_deletebastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_deletebastionshareablelinkbytoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_deletebastionshareablelinkbytoken.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_deletebastionshareablelinkbytoken.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_deletebastionshareablelinkbytoken.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_getbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_getbastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_getbastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_getbastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_putbastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_putbastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/method_putbastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/method_putbastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelinklistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelinklistrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelinklistrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelinklistrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_bastionshareablelinktokenlistrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_resource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_resource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/model_resource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/model_resource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/version.go new file mode 100644 index 000000000000..1d77708d69c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink/version.go @@ -0,0 +1,10 @@ +package bastionshareablelink + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/bastionshareablelink/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/README.md new file mode 100644 index 000000000000..64c572d8fc0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/README.md @@ -0,0 +1,38 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities` Documentation + +The `bgpservicecommunities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities" +``` + + +### Client Initialization + +```go +client := bgpservicecommunities.NewBgpServiceCommunitiesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `BgpServiceCommunitiesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpcommunity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpcommunity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpcommunity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpcommunity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpservicecommunity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpservicecommunity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpservicecommunity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpservicecommunity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/model_bgpservicecommunitypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/version.go new file mode 100644 index 000000000000..7d854388c0bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities/version.go @@ -0,0 +1,10 @@ +package bgpservicecommunities + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/bgpservicecommunities/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/README.md new file mode 100644 index 000000000000..4bbd3969d501 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/README.md @@ -0,0 +1,36 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities` Documentation + +The `checkdnsavailabilities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities" +``` + + +### Client Initialization + +```go +client := checkdnsavailabilities.NewCheckDnsAvailabilitiesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CheckDnsAvailabilitiesClient.CheckDnsNameAvailability` + +```go +ctx := context.TODO() +id := checkdnsavailabilities.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +read, err := client.CheckDnsNameAvailability(ctx, id, checkdnsavailabilities.DefaultCheckDnsNameAvailabilityOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/method_checkdnsnameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/method_checkdnsnameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/model_dnsnameavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/model_dnsnameavailabilityresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/model_dnsnameavailabilityresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/model_dnsnameavailabilityresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/version.go new file mode 100644 index 000000000000..502c3605e20e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities/version.go @@ -0,0 +1,10 @@ +package checkdnsavailabilities + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/checkdnsavailabilities/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/client.go new file mode 100644 index 000000000000..b460cfde3de2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/client.go @@ -0,0 +1,1027 @@ +package v2024_03_01 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +type Client struct { + AdminRuleCollections *adminrulecollections.AdminRuleCollectionsClient + AdminRules *adminrules.AdminRulesClient + ApplicationGatewayPrivateEndpointConnections *applicationgatewayprivateendpointconnections.ApplicationGatewayPrivateEndpointConnectionsClient + ApplicationGatewayPrivateLinkResources *applicationgatewayprivatelinkresources.ApplicationGatewayPrivateLinkResourcesClient + ApplicationGatewayWafDynamicManifests *applicationgatewaywafdynamicmanifests.ApplicationGatewayWafDynamicManifestsClient + ApplicationGateways *applicationgateways.ApplicationGatewaysClient + ApplicationSecurityGroups *applicationsecuritygroups.ApplicationSecurityGroupsClient + AvailableDelegations *availabledelegations.AvailableDelegationsClient + AvailableServiceAliases *availableservicealiases.AvailableServiceAliasesClient + AzureFirewalls *azurefirewalls.AzureFirewallsClient + BastionHosts *bastionhosts.BastionHostsClient + BastionShareableLink *bastionshareablelink.BastionShareableLinkClient + BgpServiceCommunities *bgpservicecommunities.BgpServiceCommunitiesClient + CheckDnsAvailabilities *checkdnsavailabilities.CheckDnsAvailabilitiesClient + CloudServicePublicIPAddresses *cloudservicepublicipaddresses.CloudServicePublicIPAddressesClient + ConnectionMonitors *connectionmonitors.ConnectionMonitorsClient + ConnectivityConfigurations *connectivityconfigurations.ConnectivityConfigurationsClient + CustomIPPrefixes *customipprefixes.CustomIPPrefixesClient + DdosCustomPolicies *ddoscustompolicies.DdosCustomPoliciesClient + DdosProtectionPlans *ddosprotectionplans.DdosProtectionPlansClient + DscpConfiguration *dscpconfiguration.DscpConfigurationClient + DscpConfigurations *dscpconfigurations.DscpConfigurationsClient + EndpointServices *endpointservices.EndpointServicesClient + ExpressRouteCircuitArpTable *expressroutecircuitarptable.ExpressRouteCircuitArpTableClient + ExpressRouteCircuitAuthorizations *expressroutecircuitauthorizations.ExpressRouteCircuitAuthorizationsClient + ExpressRouteCircuitConnections *expressroutecircuitconnections.ExpressRouteCircuitConnectionsClient + ExpressRouteCircuitPeerings *expressroutecircuitpeerings.ExpressRouteCircuitPeeringsClient + ExpressRouteCircuitRoutesTable *expressroutecircuitroutestable.ExpressRouteCircuitRoutesTableClient + ExpressRouteCircuitRoutesTableSummary *expressroutecircuitroutestablesummary.ExpressRouteCircuitRoutesTableSummaryClient + ExpressRouteCircuitStats *expressroutecircuitstats.ExpressRouteCircuitStatsClient + ExpressRouteCircuits *expressroutecircuits.ExpressRouteCircuitsClient + ExpressRouteConnections *expressrouteconnections.ExpressRouteConnectionsClient + ExpressRouteCrossConnectionArpTable *expressroutecrossconnectionarptable.ExpressRouteCrossConnectionArpTableClient + ExpressRouteCrossConnectionPeerings *expressroutecrossconnectionpeerings.ExpressRouteCrossConnectionPeeringsClient + ExpressRouteCrossConnectionRouteTable *expressroutecrossconnectionroutetable.ExpressRouteCrossConnectionRouteTableClient + ExpressRouteCrossConnectionRouteTableSummary *expressroutecrossconnectionroutetablesummary.ExpressRouteCrossConnectionRouteTableSummaryClient + ExpressRouteCrossConnections *expressroutecrossconnections.ExpressRouteCrossConnectionsClient + ExpressRouteGateways *expressroutegateways.ExpressRouteGatewaysClient + ExpressRouteLinks *expressroutelinks.ExpressRouteLinksClient + ExpressRoutePortAuthorizations *expressrouteportauthorizations.ExpressRoutePortAuthorizationsClient + ExpressRoutePorts *expressrouteports.ExpressRoutePortsClient + ExpressRoutePortsLocations *expressrouteportslocations.ExpressRoutePortsLocationsClient + ExpressRouteProviderPorts *expressrouteproviderports.ExpressRouteProviderPortsClient + ExpressRouteServiceProviders *expressrouteserviceproviders.ExpressRouteServiceProvidersClient + FirewallPolicies *firewallpolicies.FirewallPoliciesClient + FirewallPolicyRuleCollectionGroups *firewallpolicyrulecollectiongroups.FirewallPolicyRuleCollectionGroupsClient + FlowLogs *flowlogs.FlowLogsClient + IPAllocations *ipallocations.IPAllocationsClient + IPGroups *ipgroups.IPGroupsClient + LoadBalancers *loadbalancers.LoadBalancersClient + LocalNetworkGateways *localnetworkgateways.LocalNetworkGatewaysClient + NatGateways *natgateways.NatGatewaysClient + NetworkGroups *networkgroups.NetworkGroupsClient + NetworkInterfaces *networkinterfaces.NetworkInterfacesClient + NetworkManagerActiveConfigurations *networkmanageractiveconfigurations.NetworkManagerActiveConfigurationsClient + NetworkManagerActiveConnectivityConfigurations *networkmanageractiveconnectivityconfigurations.NetworkManagerActiveConnectivityConfigurationsClient + NetworkManagerConnections *networkmanagerconnections.NetworkManagerConnectionsClient + NetworkManagerEffectiveConnectivityConfiguration *networkmanagereffectiveconnectivityconfiguration.NetworkManagerEffectiveConnectivityConfigurationClient + NetworkManagerEffectiveSecurityAdminRules *networkmanagereffectivesecurityadminrules.NetworkManagerEffectiveSecurityAdminRulesClient + NetworkManagerRoutingConfigurations *networkmanagerroutingconfigurations.NetworkManagerRoutingConfigurationsClient + NetworkManagers *networkmanagers.NetworkManagersClient + NetworkProfiles *networkprofiles.NetworkProfilesClient + NetworkSecurityGroups *networksecuritygroups.NetworkSecurityGroupsClient + NetworkVirtualAppliances *networkvirtualappliances.NetworkVirtualAppliancesClient + NetworkWatchers *networkwatchers.NetworkWatchersClient + P2sVpnGateways *p2svpngateways.P2sVpnGatewaysClient + PacketCaptures *packetcaptures.PacketCapturesClient + PeerExpressRouteCircuitConnections *peerexpressroutecircuitconnections.PeerExpressRouteCircuitConnectionsClient + PrivateDnsZoneGroups *privatednszonegroups.PrivateDnsZoneGroupsClient + PrivateEndpoints *privateendpoints.PrivateEndpointsClient + PrivateLinkServices *privatelinkservices.PrivateLinkServicesClient + PublicIPAddresses *publicipaddresses.PublicIPAddressesClient + PublicIPPrefixes *publicipprefixes.PublicIPPrefixesClient + RouteFilterRules *routefilterrules.RouteFilterRulesClient + RouteFilters *routefilters.RouteFiltersClient + RouteTables *routetables.RouteTablesClient + Routes *routes.RoutesClient + RoutingRuleCollections *routingrulecollections.RoutingRuleCollectionsClient + RoutingRules *routingrules.RoutingRulesClient + ScopeConnections *scopeconnections.ScopeConnectionsClient + SecurityAdminConfigurations *securityadminconfigurations.SecurityAdminConfigurationsClient + SecurityPartnerProviders *securitypartnerproviders.SecurityPartnerProvidersClient + SecurityRules *securityrules.SecurityRulesClient + SecurityUserConfigurations *securityuserconfigurations.SecurityUserConfigurationsClient + SecurityUserRuleCollections *securityuserrulecollections.SecurityUserRuleCollectionsClient + SecurityUserRules *securityuserrules.SecurityUserRulesClient + ServiceEndpointPolicies *serviceendpointpolicies.ServiceEndpointPoliciesClient + ServiceEndpointPolicyDefinitions *serviceendpointpolicydefinitions.ServiceEndpointPolicyDefinitionsClient + ServiceTags *servicetags.ServiceTagsClient + StaticMembers *staticmembers.StaticMembersClient + Subnets *subnets.SubnetsClient + TrafficAnalytics *trafficanalytics.TrafficAnalyticsClient + Usages *usages.UsagesClient + VMSSPublicIPAddresses *vmsspublicipaddresses.VMSSPublicIPAddressesClient + VipSwap *vipswap.VipSwapClient + VirtualApplianceSites *virtualappliancesites.VirtualApplianceSitesClient + VirtualApplianceSkus *virtualapplianceskus.VirtualApplianceSkusClient + VirtualNetworkGatewayConnections *virtualnetworkgatewayconnections.VirtualNetworkGatewayConnectionsClient + VirtualNetworkGateways *virtualnetworkgateways.VirtualNetworkGatewaysClient + VirtualNetworkPeerings *virtualnetworkpeerings.VirtualNetworkPeeringsClient + VirtualNetworkTap *virtualnetworktap.VirtualNetworkTapClient + VirtualNetworkTaps *virtualnetworktaps.VirtualNetworkTapsClient + VirtualNetworks *virtualnetworks.VirtualNetworksClient + VirtualRouterPeerings *virtualrouterpeerings.VirtualRouterPeeringsClient + VirtualRouters *virtualrouters.VirtualRoutersClient + VirtualWANs *virtualwans.VirtualWANsClient + VpnGateways *vpngateways.VpnGatewaysClient + VpnLinkConnections *vpnlinkconnections.VpnLinkConnectionsClient + VpnServerConfigurations *vpnserverconfigurations.VpnServerConfigurationsClient + VpnSites *vpnsites.VpnSitesClient + WebApplicationFirewallPolicies *webapplicationfirewallpolicies.WebApplicationFirewallPoliciesClient + WebCategories *webcategories.WebCategoriesClient +} + +func NewClientWithBaseURI(sdkApi sdkEnv.Api, configureFunc func(c *resourcemanager.Client)) (*Client, error) { + adminRuleCollectionsClient, err := adminrulecollections.NewAdminRuleCollectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AdminRuleCollections client: %+v", err) + } + configureFunc(adminRuleCollectionsClient.Client) + + adminRulesClient, err := adminrules.NewAdminRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AdminRules client: %+v", err) + } + configureFunc(adminRulesClient.Client) + + applicationGatewayPrivateEndpointConnectionsClient, err := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ApplicationGatewayPrivateEndpointConnections client: %+v", err) + } + configureFunc(applicationGatewayPrivateEndpointConnectionsClient.Client) + + applicationGatewayPrivateLinkResourcesClient, err := applicationgatewayprivatelinkresources.NewApplicationGatewayPrivateLinkResourcesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ApplicationGatewayPrivateLinkResources client: %+v", err) + } + configureFunc(applicationGatewayPrivateLinkResourcesClient.Client) + + applicationGatewayWafDynamicManifestsClient, err := applicationgatewaywafdynamicmanifests.NewApplicationGatewayWafDynamicManifestsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ApplicationGatewayWafDynamicManifests client: %+v", err) + } + configureFunc(applicationGatewayWafDynamicManifestsClient.Client) + + applicationGatewaysClient, err := applicationgateways.NewApplicationGatewaysClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ApplicationGateways client: %+v", err) + } + configureFunc(applicationGatewaysClient.Client) + + applicationSecurityGroupsClient, err := applicationsecuritygroups.NewApplicationSecurityGroupsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ApplicationSecurityGroups client: %+v", err) + } + configureFunc(applicationSecurityGroupsClient.Client) + + availableDelegationsClient, err := availabledelegations.NewAvailableDelegationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AvailableDelegations client: %+v", err) + } + configureFunc(availableDelegationsClient.Client) + + availableServiceAliasesClient, err := availableservicealiases.NewAvailableServiceAliasesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AvailableServiceAliases client: %+v", err) + } + configureFunc(availableServiceAliasesClient.Client) + + azureFirewallsClient, err := azurefirewalls.NewAzureFirewallsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building AzureFirewalls client: %+v", err) + } + configureFunc(azureFirewallsClient.Client) + + bastionHostsClient, err := bastionhosts.NewBastionHostsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building BastionHosts client: %+v", err) + } + configureFunc(bastionHostsClient.Client) + + bastionShareableLinkClient, err := bastionshareablelink.NewBastionShareableLinkClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building BastionShareableLink client: %+v", err) + } + configureFunc(bastionShareableLinkClient.Client) + + bgpServiceCommunitiesClient, err := bgpservicecommunities.NewBgpServiceCommunitiesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building BgpServiceCommunities client: %+v", err) + } + configureFunc(bgpServiceCommunitiesClient.Client) + + checkDnsAvailabilitiesClient, err := checkdnsavailabilities.NewCheckDnsAvailabilitiesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building CheckDnsAvailabilities client: %+v", err) + } + configureFunc(checkDnsAvailabilitiesClient.Client) + + cloudServicePublicIPAddressesClient, err := cloudservicepublicipaddresses.NewCloudServicePublicIPAddressesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building CloudServicePublicIPAddresses client: %+v", err) + } + configureFunc(cloudServicePublicIPAddressesClient.Client) + + connectionMonitorsClient, err := connectionmonitors.NewConnectionMonitorsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ConnectionMonitors client: %+v", err) + } + configureFunc(connectionMonitorsClient.Client) + + connectivityConfigurationsClient, err := connectivityconfigurations.NewConnectivityConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ConnectivityConfigurations client: %+v", err) + } + configureFunc(connectivityConfigurationsClient.Client) + + customIPPrefixesClient, err := customipprefixes.NewCustomIPPrefixesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building CustomIPPrefixes client: %+v", err) + } + configureFunc(customIPPrefixesClient.Client) + + ddosCustomPoliciesClient, err := ddoscustompolicies.NewDdosCustomPoliciesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building DdosCustomPolicies client: %+v", err) + } + configureFunc(ddosCustomPoliciesClient.Client) + + ddosProtectionPlansClient, err := ddosprotectionplans.NewDdosProtectionPlansClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building DdosProtectionPlans client: %+v", err) + } + configureFunc(ddosProtectionPlansClient.Client) + + dscpConfigurationClient, err := dscpconfiguration.NewDscpConfigurationClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building DscpConfiguration client: %+v", err) + } + configureFunc(dscpConfigurationClient.Client) + + dscpConfigurationsClient, err := dscpconfigurations.NewDscpConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building DscpConfigurations client: %+v", err) + } + configureFunc(dscpConfigurationsClient.Client) + + endpointServicesClient, err := endpointservices.NewEndpointServicesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building EndpointServices client: %+v", err) + } + configureFunc(endpointServicesClient.Client) + + expressRouteCircuitArpTableClient, err := expressroutecircuitarptable.NewExpressRouteCircuitArpTableClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCircuitArpTable client: %+v", err) + } + configureFunc(expressRouteCircuitArpTableClient.Client) + + expressRouteCircuitAuthorizationsClient, err := expressroutecircuitauthorizations.NewExpressRouteCircuitAuthorizationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCircuitAuthorizations client: %+v", err) + } + configureFunc(expressRouteCircuitAuthorizationsClient.Client) + + expressRouteCircuitConnectionsClient, err := expressroutecircuitconnections.NewExpressRouteCircuitConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCircuitConnections client: %+v", err) + } + configureFunc(expressRouteCircuitConnectionsClient.Client) + + expressRouteCircuitPeeringsClient, err := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCircuitPeerings client: %+v", err) + } + configureFunc(expressRouteCircuitPeeringsClient.Client) + + expressRouteCircuitRoutesTableClient, err := expressroutecircuitroutestable.NewExpressRouteCircuitRoutesTableClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCircuitRoutesTable client: %+v", err) + } + configureFunc(expressRouteCircuitRoutesTableClient.Client) + + expressRouteCircuitRoutesTableSummaryClient, err := expressroutecircuitroutestablesummary.NewExpressRouteCircuitRoutesTableSummaryClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCircuitRoutesTableSummary client: %+v", err) + } + configureFunc(expressRouteCircuitRoutesTableSummaryClient.Client) + + expressRouteCircuitStatsClient, err := expressroutecircuitstats.NewExpressRouteCircuitStatsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCircuitStats client: %+v", err) + } + configureFunc(expressRouteCircuitStatsClient.Client) + + expressRouteCircuitsClient, err := expressroutecircuits.NewExpressRouteCircuitsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCircuits client: %+v", err) + } + configureFunc(expressRouteCircuitsClient.Client) + + expressRouteConnectionsClient, err := expressrouteconnections.NewExpressRouteConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteConnections client: %+v", err) + } + configureFunc(expressRouteConnectionsClient.Client) + + expressRouteCrossConnectionArpTableClient, err := expressroutecrossconnectionarptable.NewExpressRouteCrossConnectionArpTableClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCrossConnectionArpTable client: %+v", err) + } + configureFunc(expressRouteCrossConnectionArpTableClient.Client) + + expressRouteCrossConnectionPeeringsClient, err := expressroutecrossconnectionpeerings.NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCrossConnectionPeerings client: %+v", err) + } + configureFunc(expressRouteCrossConnectionPeeringsClient.Client) + + expressRouteCrossConnectionRouteTableClient, err := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionRouteTableClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCrossConnectionRouteTable client: %+v", err) + } + configureFunc(expressRouteCrossConnectionRouteTableClient.Client) + + expressRouteCrossConnectionRouteTableSummaryClient, err := expressroutecrossconnectionroutetablesummary.NewExpressRouteCrossConnectionRouteTableSummaryClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCrossConnectionRouteTableSummary client: %+v", err) + } + configureFunc(expressRouteCrossConnectionRouteTableSummaryClient.Client) + + expressRouteCrossConnectionsClient, err := expressroutecrossconnections.NewExpressRouteCrossConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteCrossConnections client: %+v", err) + } + configureFunc(expressRouteCrossConnectionsClient.Client) + + expressRouteGatewaysClient, err := expressroutegateways.NewExpressRouteGatewaysClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteGateways client: %+v", err) + } + configureFunc(expressRouteGatewaysClient.Client) + + expressRouteLinksClient, err := expressroutelinks.NewExpressRouteLinksClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteLinks client: %+v", err) + } + configureFunc(expressRouteLinksClient.Client) + + expressRoutePortAuthorizationsClient, err := expressrouteportauthorizations.NewExpressRoutePortAuthorizationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRoutePortAuthorizations client: %+v", err) + } + configureFunc(expressRoutePortAuthorizationsClient.Client) + + expressRoutePortsClient, err := expressrouteports.NewExpressRoutePortsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRoutePorts client: %+v", err) + } + configureFunc(expressRoutePortsClient.Client) + + expressRoutePortsLocationsClient, err := expressrouteportslocations.NewExpressRoutePortsLocationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRoutePortsLocations client: %+v", err) + } + configureFunc(expressRoutePortsLocationsClient.Client) + + expressRouteProviderPortsClient, err := expressrouteproviderports.NewExpressRouteProviderPortsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteProviderPorts client: %+v", err) + } + configureFunc(expressRouteProviderPortsClient.Client) + + expressRouteServiceProvidersClient, err := expressrouteserviceproviders.NewExpressRouteServiceProvidersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ExpressRouteServiceProviders client: %+v", err) + } + configureFunc(expressRouteServiceProvidersClient.Client) + + firewallPoliciesClient, err := firewallpolicies.NewFirewallPoliciesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building FirewallPolicies client: %+v", err) + } + configureFunc(firewallPoliciesClient.Client) + + firewallPolicyRuleCollectionGroupsClient, err := firewallpolicyrulecollectiongroups.NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building FirewallPolicyRuleCollectionGroups client: %+v", err) + } + configureFunc(firewallPolicyRuleCollectionGroupsClient.Client) + + flowLogsClient, err := flowlogs.NewFlowLogsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building FlowLogs client: %+v", err) + } + configureFunc(flowLogsClient.Client) + + iPAllocationsClient, err := ipallocations.NewIPAllocationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building IPAllocations client: %+v", err) + } + configureFunc(iPAllocationsClient.Client) + + iPGroupsClient, err := ipgroups.NewIPGroupsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building IPGroups client: %+v", err) + } + configureFunc(iPGroupsClient.Client) + + loadBalancersClient, err := loadbalancers.NewLoadBalancersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building LoadBalancers client: %+v", err) + } + configureFunc(loadBalancersClient.Client) + + localNetworkGatewaysClient, err := localnetworkgateways.NewLocalNetworkGatewaysClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building LocalNetworkGateways client: %+v", err) + } + configureFunc(localNetworkGatewaysClient.Client) + + natGatewaysClient, err := natgateways.NewNatGatewaysClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NatGateways client: %+v", err) + } + configureFunc(natGatewaysClient.Client) + + networkGroupsClient, err := networkgroups.NewNetworkGroupsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkGroups client: %+v", err) + } + configureFunc(networkGroupsClient.Client) + + networkInterfacesClient, err := networkinterfaces.NewNetworkInterfacesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkInterfaces client: %+v", err) + } + configureFunc(networkInterfacesClient.Client) + + networkManagerActiveConfigurationsClient, err := networkmanageractiveconfigurations.NewNetworkManagerActiveConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkManagerActiveConfigurations client: %+v", err) + } + configureFunc(networkManagerActiveConfigurationsClient.Client) + + networkManagerActiveConnectivityConfigurationsClient, err := networkmanageractiveconnectivityconfigurations.NewNetworkManagerActiveConnectivityConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkManagerActiveConnectivityConfigurations client: %+v", err) + } + configureFunc(networkManagerActiveConnectivityConfigurationsClient.Client) + + networkManagerConnectionsClient, err := networkmanagerconnections.NewNetworkManagerConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkManagerConnections client: %+v", err) + } + configureFunc(networkManagerConnectionsClient.Client) + + networkManagerEffectiveConnectivityConfigurationClient, err := networkmanagereffectiveconnectivityconfiguration.NewNetworkManagerEffectiveConnectivityConfigurationClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkManagerEffectiveConnectivityConfiguration client: %+v", err) + } + configureFunc(networkManagerEffectiveConnectivityConfigurationClient.Client) + + networkManagerEffectiveSecurityAdminRulesClient, err := networkmanagereffectivesecurityadminrules.NewNetworkManagerEffectiveSecurityAdminRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkManagerEffectiveSecurityAdminRules client: %+v", err) + } + configureFunc(networkManagerEffectiveSecurityAdminRulesClient.Client) + + networkManagerRoutingConfigurationsClient, err := networkmanagerroutingconfigurations.NewNetworkManagerRoutingConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkManagerRoutingConfigurations client: %+v", err) + } + configureFunc(networkManagerRoutingConfigurationsClient.Client) + + networkManagersClient, err := networkmanagers.NewNetworkManagersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkManagers client: %+v", err) + } + configureFunc(networkManagersClient.Client) + + networkProfilesClient, err := networkprofiles.NewNetworkProfilesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkProfiles client: %+v", err) + } + configureFunc(networkProfilesClient.Client) + + networkSecurityGroupsClient, err := networksecuritygroups.NewNetworkSecurityGroupsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkSecurityGroups client: %+v", err) + } + configureFunc(networkSecurityGroupsClient.Client) + + networkVirtualAppliancesClient, err := networkvirtualappliances.NewNetworkVirtualAppliancesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkVirtualAppliances client: %+v", err) + } + configureFunc(networkVirtualAppliancesClient.Client) + + networkWatchersClient, err := networkwatchers.NewNetworkWatchersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building NetworkWatchers client: %+v", err) + } + configureFunc(networkWatchersClient.Client) + + p2sVpnGatewaysClient, err := p2svpngateways.NewP2sVpnGatewaysClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building P2sVpnGateways client: %+v", err) + } + configureFunc(p2sVpnGatewaysClient.Client) + + packetCapturesClient, err := packetcaptures.NewPacketCapturesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PacketCaptures client: %+v", err) + } + configureFunc(packetCapturesClient.Client) + + peerExpressRouteCircuitConnectionsClient, err := peerexpressroutecircuitconnections.NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PeerExpressRouteCircuitConnections client: %+v", err) + } + configureFunc(peerExpressRouteCircuitConnectionsClient.Client) + + privateDnsZoneGroupsClient, err := privatednszonegroups.NewPrivateDnsZoneGroupsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PrivateDnsZoneGroups client: %+v", err) + } + configureFunc(privateDnsZoneGroupsClient.Client) + + privateEndpointsClient, err := privateendpoints.NewPrivateEndpointsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PrivateEndpoints client: %+v", err) + } + configureFunc(privateEndpointsClient.Client) + + privateLinkServicesClient, err := privatelinkservices.NewPrivateLinkServicesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PrivateLinkServices client: %+v", err) + } + configureFunc(privateLinkServicesClient.Client) + + publicIPAddressesClient, err := publicipaddresses.NewPublicIPAddressesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PublicIPAddresses client: %+v", err) + } + configureFunc(publicIPAddressesClient.Client) + + publicIPPrefixesClient, err := publicipprefixes.NewPublicIPPrefixesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building PublicIPPrefixes client: %+v", err) + } + configureFunc(publicIPPrefixesClient.Client) + + routeFilterRulesClient, err := routefilterrules.NewRouteFilterRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building RouteFilterRules client: %+v", err) + } + configureFunc(routeFilterRulesClient.Client) + + routeFiltersClient, err := routefilters.NewRouteFiltersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building RouteFilters client: %+v", err) + } + configureFunc(routeFiltersClient.Client) + + routeTablesClient, err := routetables.NewRouteTablesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building RouteTables client: %+v", err) + } + configureFunc(routeTablesClient.Client) + + routesClient, err := routes.NewRoutesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Routes client: %+v", err) + } + configureFunc(routesClient.Client) + + routingRuleCollectionsClient, err := routingrulecollections.NewRoutingRuleCollectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building RoutingRuleCollections client: %+v", err) + } + configureFunc(routingRuleCollectionsClient.Client) + + routingRulesClient, err := routingrules.NewRoutingRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building RoutingRules client: %+v", err) + } + configureFunc(routingRulesClient.Client) + + scopeConnectionsClient, err := scopeconnections.NewScopeConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ScopeConnections client: %+v", err) + } + configureFunc(scopeConnectionsClient.Client) + + securityAdminConfigurationsClient, err := securityadminconfigurations.NewSecurityAdminConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityAdminConfigurations client: %+v", err) + } + configureFunc(securityAdminConfigurationsClient.Client) + + securityPartnerProvidersClient, err := securitypartnerproviders.NewSecurityPartnerProvidersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityPartnerProviders client: %+v", err) + } + configureFunc(securityPartnerProvidersClient.Client) + + securityRulesClient, err := securityrules.NewSecurityRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityRules client: %+v", err) + } + configureFunc(securityRulesClient.Client) + + securityUserConfigurationsClient, err := securityuserconfigurations.NewSecurityUserConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityUserConfigurations client: %+v", err) + } + configureFunc(securityUserConfigurationsClient.Client) + + securityUserRuleCollectionsClient, err := securityuserrulecollections.NewSecurityUserRuleCollectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityUserRuleCollections client: %+v", err) + } + configureFunc(securityUserRuleCollectionsClient.Client) + + securityUserRulesClient, err := securityuserrules.NewSecurityUserRulesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building SecurityUserRules client: %+v", err) + } + configureFunc(securityUserRulesClient.Client) + + serviceEndpointPoliciesClient, err := serviceendpointpolicies.NewServiceEndpointPoliciesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServiceEndpointPolicies client: %+v", err) + } + configureFunc(serviceEndpointPoliciesClient.Client) + + serviceEndpointPolicyDefinitionsClient, err := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServiceEndpointPolicyDefinitions client: %+v", err) + } + configureFunc(serviceEndpointPolicyDefinitionsClient.Client) + + serviceTagsClient, err := servicetags.NewServiceTagsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building ServiceTags client: %+v", err) + } + configureFunc(serviceTagsClient.Client) + + staticMembersClient, err := staticmembers.NewStaticMembersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building StaticMembers client: %+v", err) + } + configureFunc(staticMembersClient.Client) + + subnetsClient, err := subnets.NewSubnetsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Subnets client: %+v", err) + } + configureFunc(subnetsClient.Client) + + trafficAnalyticsClient, err := trafficanalytics.NewTrafficAnalyticsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building TrafficAnalytics client: %+v", err) + } + configureFunc(trafficAnalyticsClient.Client) + + usagesClient, err := usages.NewUsagesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building Usages client: %+v", err) + } + configureFunc(usagesClient.Client) + + vMSSPublicIPAddressesClient, err := vmsspublicipaddresses.NewVMSSPublicIPAddressesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VMSSPublicIPAddresses client: %+v", err) + } + configureFunc(vMSSPublicIPAddressesClient.Client) + + vipSwapClient, err := vipswap.NewVipSwapClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VipSwap client: %+v", err) + } + configureFunc(vipSwapClient.Client) + + virtualApplianceSitesClient, err := virtualappliancesites.NewVirtualApplianceSitesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualApplianceSites client: %+v", err) + } + configureFunc(virtualApplianceSitesClient.Client) + + virtualApplianceSkusClient, err := virtualapplianceskus.NewVirtualApplianceSkusClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualApplianceSkus client: %+v", err) + } + configureFunc(virtualApplianceSkusClient.Client) + + virtualNetworkGatewayConnectionsClient, err := virtualnetworkgatewayconnections.NewVirtualNetworkGatewayConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualNetworkGatewayConnections client: %+v", err) + } + configureFunc(virtualNetworkGatewayConnectionsClient.Client) + + virtualNetworkGatewaysClient, err := virtualnetworkgateways.NewVirtualNetworkGatewaysClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualNetworkGateways client: %+v", err) + } + configureFunc(virtualNetworkGatewaysClient.Client) + + virtualNetworkPeeringsClient, err := virtualnetworkpeerings.NewVirtualNetworkPeeringsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualNetworkPeerings client: %+v", err) + } + configureFunc(virtualNetworkPeeringsClient.Client) + + virtualNetworkTapClient, err := virtualnetworktap.NewVirtualNetworkTapClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualNetworkTap client: %+v", err) + } + configureFunc(virtualNetworkTapClient.Client) + + virtualNetworkTapsClient, err := virtualnetworktaps.NewVirtualNetworkTapsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualNetworkTaps client: %+v", err) + } + configureFunc(virtualNetworkTapsClient.Client) + + virtualNetworksClient, err := virtualnetworks.NewVirtualNetworksClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualNetworks client: %+v", err) + } + configureFunc(virtualNetworksClient.Client) + + virtualRouterPeeringsClient, err := virtualrouterpeerings.NewVirtualRouterPeeringsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualRouterPeerings client: %+v", err) + } + configureFunc(virtualRouterPeeringsClient.Client) + + virtualRoutersClient, err := virtualrouters.NewVirtualRoutersClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualRouters client: %+v", err) + } + configureFunc(virtualRoutersClient.Client) + + virtualWANsClient, err := virtualwans.NewVirtualWANsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VirtualWANs client: %+v", err) + } + configureFunc(virtualWANsClient.Client) + + vpnGatewaysClient, err := vpngateways.NewVpnGatewaysClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VpnGateways client: %+v", err) + } + configureFunc(vpnGatewaysClient.Client) + + vpnLinkConnectionsClient, err := vpnlinkconnections.NewVpnLinkConnectionsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VpnLinkConnections client: %+v", err) + } + configureFunc(vpnLinkConnectionsClient.Client) + + vpnServerConfigurationsClient, err := vpnserverconfigurations.NewVpnServerConfigurationsClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VpnServerConfigurations client: %+v", err) + } + configureFunc(vpnServerConfigurationsClient.Client) + + vpnSitesClient, err := vpnsites.NewVpnSitesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building VpnSites client: %+v", err) + } + configureFunc(vpnSitesClient.Client) + + webApplicationFirewallPoliciesClient, err := webapplicationfirewallpolicies.NewWebApplicationFirewallPoliciesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building WebApplicationFirewallPolicies client: %+v", err) + } + configureFunc(webApplicationFirewallPoliciesClient.Client) + + webCategoriesClient, err := webcategories.NewWebCategoriesClientWithBaseURI(sdkApi) + if err != nil { + return nil, fmt.Errorf("building WebCategories client: %+v", err) + } + configureFunc(webCategoriesClient.Client) + + return &Client{ + AdminRuleCollections: adminRuleCollectionsClient, + AdminRules: adminRulesClient, + ApplicationGatewayPrivateEndpointConnections: applicationGatewayPrivateEndpointConnectionsClient, + ApplicationGatewayPrivateLinkResources: applicationGatewayPrivateLinkResourcesClient, + ApplicationGatewayWafDynamicManifests: applicationGatewayWafDynamicManifestsClient, + ApplicationGateways: applicationGatewaysClient, + ApplicationSecurityGroups: applicationSecurityGroupsClient, + AvailableDelegations: availableDelegationsClient, + AvailableServiceAliases: availableServiceAliasesClient, + AzureFirewalls: azureFirewallsClient, + BastionHosts: bastionHostsClient, + BastionShareableLink: bastionShareableLinkClient, + BgpServiceCommunities: bgpServiceCommunitiesClient, + CheckDnsAvailabilities: checkDnsAvailabilitiesClient, + CloudServicePublicIPAddresses: cloudServicePublicIPAddressesClient, + ConnectionMonitors: connectionMonitorsClient, + ConnectivityConfigurations: connectivityConfigurationsClient, + CustomIPPrefixes: customIPPrefixesClient, + DdosCustomPolicies: ddosCustomPoliciesClient, + DdosProtectionPlans: ddosProtectionPlansClient, + DscpConfiguration: dscpConfigurationClient, + DscpConfigurations: dscpConfigurationsClient, + EndpointServices: endpointServicesClient, + ExpressRouteCircuitArpTable: expressRouteCircuitArpTableClient, + ExpressRouteCircuitAuthorizations: expressRouteCircuitAuthorizationsClient, + ExpressRouteCircuitConnections: expressRouteCircuitConnectionsClient, + ExpressRouteCircuitPeerings: expressRouteCircuitPeeringsClient, + ExpressRouteCircuitRoutesTable: expressRouteCircuitRoutesTableClient, + ExpressRouteCircuitRoutesTableSummary: expressRouteCircuitRoutesTableSummaryClient, + ExpressRouteCircuitStats: expressRouteCircuitStatsClient, + ExpressRouteCircuits: expressRouteCircuitsClient, + ExpressRouteConnections: expressRouteConnectionsClient, + ExpressRouteCrossConnectionArpTable: expressRouteCrossConnectionArpTableClient, + ExpressRouteCrossConnectionPeerings: expressRouteCrossConnectionPeeringsClient, + ExpressRouteCrossConnectionRouteTable: expressRouteCrossConnectionRouteTableClient, + ExpressRouteCrossConnectionRouteTableSummary: expressRouteCrossConnectionRouteTableSummaryClient, + ExpressRouteCrossConnections: expressRouteCrossConnectionsClient, + ExpressRouteGateways: expressRouteGatewaysClient, + ExpressRouteLinks: expressRouteLinksClient, + ExpressRoutePortAuthorizations: expressRoutePortAuthorizationsClient, + ExpressRoutePorts: expressRoutePortsClient, + ExpressRoutePortsLocations: expressRoutePortsLocationsClient, + ExpressRouteProviderPorts: expressRouteProviderPortsClient, + ExpressRouteServiceProviders: expressRouteServiceProvidersClient, + FirewallPolicies: firewallPoliciesClient, + FirewallPolicyRuleCollectionGroups: firewallPolicyRuleCollectionGroupsClient, + FlowLogs: flowLogsClient, + IPAllocations: iPAllocationsClient, + IPGroups: iPGroupsClient, + LoadBalancers: loadBalancersClient, + LocalNetworkGateways: localNetworkGatewaysClient, + NatGateways: natGatewaysClient, + NetworkGroups: networkGroupsClient, + NetworkInterfaces: networkInterfacesClient, + NetworkManagerActiveConfigurations: networkManagerActiveConfigurationsClient, + NetworkManagerActiveConnectivityConfigurations: networkManagerActiveConnectivityConfigurationsClient, + NetworkManagerConnections: networkManagerConnectionsClient, + NetworkManagerEffectiveConnectivityConfiguration: networkManagerEffectiveConnectivityConfigurationClient, + NetworkManagerEffectiveSecurityAdminRules: networkManagerEffectiveSecurityAdminRulesClient, + NetworkManagerRoutingConfigurations: networkManagerRoutingConfigurationsClient, + NetworkManagers: networkManagersClient, + NetworkProfiles: networkProfilesClient, + NetworkSecurityGroups: networkSecurityGroupsClient, + NetworkVirtualAppliances: networkVirtualAppliancesClient, + NetworkWatchers: networkWatchersClient, + P2sVpnGateways: p2sVpnGatewaysClient, + PacketCaptures: packetCapturesClient, + PeerExpressRouteCircuitConnections: peerExpressRouteCircuitConnectionsClient, + PrivateDnsZoneGroups: privateDnsZoneGroupsClient, + PrivateEndpoints: privateEndpointsClient, + PrivateLinkServices: privateLinkServicesClient, + PublicIPAddresses: publicIPAddressesClient, + PublicIPPrefixes: publicIPPrefixesClient, + RouteFilterRules: routeFilterRulesClient, + RouteFilters: routeFiltersClient, + RouteTables: routeTablesClient, + Routes: routesClient, + RoutingRuleCollections: routingRuleCollectionsClient, + RoutingRules: routingRulesClient, + ScopeConnections: scopeConnectionsClient, + SecurityAdminConfigurations: securityAdminConfigurationsClient, + SecurityPartnerProviders: securityPartnerProvidersClient, + SecurityRules: securityRulesClient, + SecurityUserConfigurations: securityUserConfigurationsClient, + SecurityUserRuleCollections: securityUserRuleCollectionsClient, + SecurityUserRules: securityUserRulesClient, + ServiceEndpointPolicies: serviceEndpointPoliciesClient, + ServiceEndpointPolicyDefinitions: serviceEndpointPolicyDefinitionsClient, + ServiceTags: serviceTagsClient, + StaticMembers: staticMembersClient, + Subnets: subnetsClient, + TrafficAnalytics: trafficAnalyticsClient, + Usages: usagesClient, + VMSSPublicIPAddresses: vMSSPublicIPAddressesClient, + VipSwap: vipSwapClient, + VirtualApplianceSites: virtualApplianceSitesClient, + VirtualApplianceSkus: virtualApplianceSkusClient, + VirtualNetworkGatewayConnections: virtualNetworkGatewayConnectionsClient, + VirtualNetworkGateways: virtualNetworkGatewaysClient, + VirtualNetworkPeerings: virtualNetworkPeeringsClient, + VirtualNetworkTap: virtualNetworkTapClient, + VirtualNetworkTaps: virtualNetworkTapsClient, + VirtualNetworks: virtualNetworksClient, + VirtualRouterPeerings: virtualRouterPeeringsClient, + VirtualRouters: virtualRoutersClient, + VirtualWANs: virtualWANsClient, + VpnGateways: vpnGatewaysClient, + VpnLinkConnections: vpnLinkConnectionsClient, + VpnServerConfigurations: vpnServerConfigurationsClient, + VpnSites: vpnSitesClient, + WebApplicationFirewallPolicies: webApplicationFirewallPoliciesClient, + WebCategories: webCategoriesClient, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/README.md new file mode 100644 index 000000000000..ffc80033950a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/README.md @@ -0,0 +1,71 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses` Documentation + +The `cloudservicepublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses" +``` + + +### Client Initialization + +```go +client := cloudservicepublicipaddresses.NewCloudServicePublicIPAddressesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CloudServicePublicIPAddressesClient.PublicIPAddressesGetCloudServicePublicIPAddress` + +```go +ctx := context.TODO() +id := commonids.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName", "ipConfigurationName", "publicIPAddressName") + +read, err := client.PublicIPAddressesGetCloudServicePublicIPAddress(ctx, id, cloudservicepublicipaddresses.DefaultPublicIPAddressesGetCloudServicePublicIPAddressOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CloudServicePublicIPAddressesClient.PublicIPAddressesListCloudServicePublicIPAddresses` + +```go +ctx := context.TODO() +id := cloudservicepublicipaddresses.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") + +// alternatively `client.PublicIPAddressesListCloudServicePublicIPAddresses(ctx, id)` can be used to do batched pagination +items, err := client.PublicIPAddressesListCloudServicePublicIPAddressesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CloudServicePublicIPAddressesClient.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses` + +```go +ctx := context.TODO() +id := commonids.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName", "ipConfigurationName") + +// alternatively `client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx, id)` can be used to do batched pagination +items, err := client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/id_providercloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/id_providercloudservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/id_providercloudservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/id_providercloudservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudservicepublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/method_publicipaddresseslistcloudserviceroleinstancepublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlog.go new file mode 100644 index 000000000000..49c418d2b9e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlog.go @@ -0,0 +1,19 @@ +package cloudservicepublicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..c8b2d0843ff4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package cloudservicepublicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..04a0f8149a75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package cloudservicepublicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..1e4f0c0bb525 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package cloudservicepublicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/version.go new file mode 100644 index 000000000000..4caf11a3aebd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses/version.go @@ -0,0 +1,10 @@ +package cloudservicepublicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/cloudservicepublicipaddresses/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/README.md new file mode 100644 index 000000000000..61464234c0a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/README.md @@ -0,0 +1,138 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors` Documentation + +The `connectionmonitors` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors" +``` + + +### Client Initialization + +```go +client := connectionmonitors.NewConnectionMonitorsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ConnectionMonitorsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +payload := connectionmonitors.ConnectionMonitor{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, connectionmonitors.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Delete` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Get` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectionMonitorsClient.List` + +```go +ctx := context.TODO() +id := connectionmonitors.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Query` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +if err := client.QueryThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Start` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +if err := client.StartThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.Stop` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectionMonitorsClient.UpdateTags` + +```go +ctx := context.TODO() +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") + +payload := connectionmonitors.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_connectionmonitor.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_connectionmonitor.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_networkwatcher.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/id_networkwatcher.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_query.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_query.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_query.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_query.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_start.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_start.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_start.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_stop.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_stop.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_stop.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitor.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitor.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitor.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitordestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitordestination.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitordestination.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitordestination.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointfilteritem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointlocationdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscope.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscope.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscope.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorendpointscopeitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorhttpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoricmpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoroutput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoroutput.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitoroutput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitoroutput.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorqueryresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorqueryresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorqueryresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorqueryresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresultproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorresultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorresultproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorsuccessthreshold.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortcpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortcpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortcpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortcpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitortestgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitortestgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorworkspacesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorworkspacesettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionmonitorworkspacesettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionmonitorworkspacesettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionstatesnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionstatesnapshot.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectionstatesnapshot.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectionstatesnapshot.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityhop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityhop.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityhop.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityhop.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityissue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityissue.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_connectivityissue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_connectivityissue.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplinkproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_hoplinkproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_hoplinkproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_httpheader.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_httpheader.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_httpheader.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_httpheader.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/version.go new file mode 100644 index 000000000000..9187d7178967 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors/version.go @@ -0,0 +1,10 @@ +package connectionmonitors + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/connectionmonitors/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/README.md new file mode 100644 index 000000000000..9618b373458c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations` Documentation + +The `connectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations" +``` + + +### Client Initialization + +```go +client := connectivityconfigurations.NewConnectivityConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ConnectivityConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") + +payload := connectivityconfigurations.ConnectivityConfiguration{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectivityConfigurationsClient.Delete` + +```go +ctx := context.TODO() +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") + +if err := client.DeleteThenPoll(ctx, id, connectivityconfigurations.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `ConnectivityConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "connectivityConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ConnectivityConfigurationsClient.List` + +```go +ctx := context.TODO() +id := connectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, connectivityconfigurations.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, connectivityconfigurations.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_connectivityconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_connectivityconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivityconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivityconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivitygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivitygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_connectivitygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_connectivitygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_hub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_hub.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/model_hub.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/model_hub.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/version.go new file mode 100644 index 000000000000..37f9d754fae4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations/version.go @@ -0,0 +1,10 @@ +package connectivityconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/connectivityconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/README.md new file mode 100644 index 000000000000..eef95f2721d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes` Documentation + +The `customipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes" +``` + + +### Client Initialization + +```go +client := customipprefixes.NewCustomIPPrefixesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `CustomIPPrefixesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") + +payload := customipprefixes.CustomIPPrefix{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `CustomIPPrefixesClient.Delete` + +```go +ctx := context.TODO() +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `CustomIPPrefixesClient.Get` + +```go +ctx := context.TODO() +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") + +read, err := client.Get(ctx, id, customipprefixes.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `CustomIPPrefixesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CustomIPPrefixesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `CustomIPPrefixesClient.UpdateTags` + +```go +ctx := context.TODO() +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixName") + +payload := customipprefixes.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/id_customipprefix.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/id_customipprefix.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefix.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefix.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefix.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefixpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefixpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_customipprefixpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_customipprefixpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/version.go new file mode 100644 index 000000000000..aa6b2ccad1f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes/version.go @@ -0,0 +1,10 @@ +package customipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/customipprefixes/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/README.md new file mode 100644 index 000000000000..9b93d014bc62 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies` Documentation + +The `ddoscustompolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies" +``` + + +### Client Initialization + +```go +client := ddoscustompolicies.NewDdosCustomPoliciesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DdosCustomPoliciesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") + +payload := ddoscustompolicies.DdosCustomPolicy{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `DdosCustomPoliciesClient.Delete` + +```go +ctx := context.TODO() +id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `DdosCustomPoliciesClient.Get` + +```go +ctx := context.TODO() +id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DdosCustomPoliciesClient.UpdateTags` + +```go +ctx := context.TODO() +id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") + +payload := ddoscustompolicies.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/id_ddoscustompolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/id_ddoscustompolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/id_ddoscustompolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/id_ddoscustompolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_ddoscustompolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_ddoscustompolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_ddoscustompolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_ddoscustompolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_ddoscustompolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/version.go new file mode 100644 index 000000000000..bb632dbc27ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies/version.go @@ -0,0 +1,10 @@ +package ddoscustompolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/ddoscustompolicies/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/README.md new file mode 100644 index 000000000000..28e27914bbc0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans` Documentation + +The `ddosprotectionplans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans" +``` + + +### Client Initialization + +```go +client := ddosprotectionplans.NewDdosProtectionPlansClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DdosProtectionPlansClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") + +payload := ddosprotectionplans.DdosProtectionPlan{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `DdosProtectionPlansClient.Delete` + +```go +ctx := context.TODO() +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `DdosProtectionPlansClient.Get` + +```go +ctx := context.TODO() +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `DdosProtectionPlansClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DdosProtectionPlansClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DdosProtectionPlansClient.UpdateTags` + +```go +ctx := context.TODO() +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") + +payload := ddosprotectionplans.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/id_ddosprotectionplan.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/id_ddosprotectionplan.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplan.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplan.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplan.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_ddosprotectionplanpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/version.go new file mode 100644 index 000000000000..e88360e45199 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans/version.go @@ -0,0 +1,10 @@ +package ddosprotectionplans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/ddosprotectionplans/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/README.md new file mode 100644 index 000000000000..ef3b05484153 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/README.md @@ -0,0 +1,65 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration` Documentation + +The `dscpconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration" +``` + + +### Client Initialization + +```go +client := dscpconfiguration.NewDscpConfigurationClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DscpConfigurationClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") + +payload := dscpconfiguration.DscpConfiguration{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `DscpConfigurationClient.Delete` + +```go +ctx := context.TODO() +id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `DscpConfigurationClient.Get` + +```go +ctx := context.TODO() +id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/id_dscpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/id_dscpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/id_dscpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/id_dscpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_dscpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_dscpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_dscpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_dscpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_dscpconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_dscpconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_dscpconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_dscpconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlog.go new file mode 100644 index 000000000000..bf6d87804608 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlog.go @@ -0,0 +1,19 @@ +package dscpconfiguration + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..11e34ba75a8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package dscpconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..414f505d677c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package dscpconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosiprange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosiprange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosiprange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosiprange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosportrange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosportrange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_qosportrange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_qosportrange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..aa82fc5a9eb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package dscpconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/version.go new file mode 100644 index 000000000000..25e93e8703ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration/version.go @@ -0,0 +1,10 @@ +package dscpconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/dscpconfiguration/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/README.md new file mode 100644 index 000000000000..0edc6e72a11c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/README.md @@ -0,0 +1,55 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations` Documentation + +The `dscpconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations" +``` + + +### Client Initialization + +```go +client := dscpconfigurations.NewDscpConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `DscpConfigurationsClient.DscpConfigurationList` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.DscpConfigurationList(ctx, id)` can be used to do batched pagination +items, err := client.DscpConfigurationListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `DscpConfigurationsClient.DscpConfigurationListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.DscpConfigurationListAll(ctx, id)` can be used to do batched pagination +items, err := client.DscpConfigurationListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/method_dscpconfigurationlist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/method_dscpconfigurationlist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlistall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/method_dscpconfigurationlistall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/method_dscpconfigurationlistall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/method_dscpconfigurationlistall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_dscpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_dscpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_dscpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_dscpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_dscpconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_dscpconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_dscpconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_dscpconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlog.go new file mode 100644 index 000000000000..c4fcf026e8ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlog.go @@ -0,0 +1,19 @@ +package dscpconfigurations + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..52821e95a743 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package dscpconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..97d69c9c1978 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package dscpconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosdefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosdefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosdefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosiprange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosiprange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosiprange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosiprange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosportrange.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosportrange.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_qosportrange.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_qosportrange.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..b8e43ff379c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package dscpconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/version.go new file mode 100644 index 000000000000..0fd265ed561d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations/version.go @@ -0,0 +1,10 @@ +package dscpconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/dscpconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/README.md new file mode 100644 index 000000000000..c3b9dbf7d44f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices` Documentation + +The `endpointservices` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices" +``` + + +### Client Initialization + +```go +client := endpointservices.NewEndpointServicesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `EndpointServicesClient.AvailableEndpointServicesList` + +```go +ctx := context.TODO() +id := endpointservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.AvailableEndpointServicesList(ctx, id)` can be used to do batched pagination +items, err := client.AvailableEndpointServicesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/method_availableendpointserviceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/method_availableendpointserviceslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/method_availableendpointserviceslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/method_availableendpointserviceslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/model_endpointserviceresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/model_endpointserviceresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/model_endpointserviceresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/model_endpointserviceresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/version.go new file mode 100644 index 000000000000..29392808d57e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices/version.go @@ -0,0 +1,10 @@ +package endpointservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/endpointservices/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/README.md new file mode 100644 index 000000000000..a6f98d383ea8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable` Documentation + +The `expressroutecircuitarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable" +``` + + +### Client Initialization + +```go +client := expressroutecircuitarptable.NewExpressRouteCircuitArpTableClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitArpTableClient.ExpressRouteCircuitsListArpTable` + +```go +ctx := context.TODO() +id := expressroutecircuitarptable.NewArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "arpTableName") + +// alternatively `client.ExpressRouteCircuitsListArpTable(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCircuitsListArpTableComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/id_arptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/id_arptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/id_arptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/id_arptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/method_expressroutecircuitslistarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/model_expressroutecircuitarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/model_expressroutecircuitarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/model_expressroutecircuitarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/model_expressroutecircuitarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/version.go new file mode 100644 index 000000000000..3647d6c33251 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitarptable + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitarptable/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/README.md new file mode 100644 index 000000000000..f286292f2980 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations` Documentation + +The `expressroutecircuitauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations" +``` + + +### Client Initialization + +```go +client := expressroutecircuitauthorizations.NewExpressRouteCircuitAuthorizationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitAuthorizationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") + +payload := expressroutecircuitauthorizations.ExpressRouteCircuitAuthorization{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitAuthorizationsClient.Delete` + +```go +ctx := context.TODO() +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitAuthorizationsClient.Get` + +```go +ctx := context.TODO() +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "authorizationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitAuthorizationsClient.List` + +```go +ctx := context.TODO() +id := expressroutecircuitauthorizations.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_authorization.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_authorization.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_expressroutecircuit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/id_expressroutecircuit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go new file mode 100644 index 000000000000..0aa969a9e6f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_authorizationpropertiesformat.go @@ -0,0 +1,11 @@ +package expressroutecircuitauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthorizationPropertiesFormat struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + AuthorizationUseStatus *AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` + ConnectionResourceUri *string `json:"connectionResourceUri,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/model_expressroutecircuitauthorization.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/version.go new file mode 100644 index 000000000000..748256948c87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitauthorizations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/README.md new file mode 100644 index 000000000000..e3363bcae8a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections` Documentation + +The `expressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections" +``` + + +### Client Initialization + +```go +client := expressroutecircuitconnections.NewExpressRouteCircuitConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") + +payload := expressroutecircuitconnections.ExpressRouteCircuitConnection{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitConnectionsClient.Get` + +```go +ctx := context.TODO() +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "connectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitConnectionsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/id_peeringconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/id_peeringconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_expressroutecircuitconnectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_ipv6circuitconnectionconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/version.go new file mode 100644 index 000000000000..d7398ff61441 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/README.md new file mode 100644 index 000000000000..3fda229eedea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings` Documentation + +The `expressroutecircuitpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings" +``` + + +### Client Initialization + +```go +client := expressroutecircuitpeerings.NewExpressRouteCircuitPeeringsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitPeeringsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitPeeringsClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitPeeringsClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitPeeringsClient.List` + +```go +ctx := context.TODO() +id := expressroutecircuitpeerings.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/id_expressroutecircuit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/id_expressroutecircuit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitconnectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitpeeringpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressroutecircuitstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_expressrouteconnectionid.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6circuitconnectionconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_ipv6expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_peerexpressroutecircuitconnectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/version.go new file mode 100644 index 000000000000..56541480c6bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitpeerings/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/README.md new file mode 100644 index 000000000000..af9de3000824 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable` Documentation + +The `expressroutecircuitroutestable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable" +``` + + +### Client Initialization + +```go +client := expressroutecircuitroutestable.NewExpressRouteCircuitRoutesTableClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitRoutesTableClient.ExpressRouteCircuitsListRoutesTable` + +```go +ctx := context.TODO() +id := expressroutecircuitroutestable.NewPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "routeTableName") + +// alternatively `client.ExpressRouteCircuitsListRoutesTable(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCircuitsListRoutesTableComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/id_peeringroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/id_peeringroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/id_peeringroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/id_peeringroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/method_expressroutecircuitslistroutestable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/model_expressroutecircuitroutestable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/version.go new file mode 100644 index 000000000000..afe2578084a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitroutestable + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitroutestable/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/README.md new file mode 100644 index 000000000000..f753d6c848ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary` Documentation + +The `expressroutecircuitroutestablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary" +``` + + +### Client Initialization + +```go +client := expressroutecircuitroutestablesummary.NewExpressRouteCircuitRoutesTableSummaryClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitRoutesTableSummaryClient.ExpressRouteCircuitsListRoutesTableSummary` + +```go +ctx := context.TODO() +id := expressroutecircuitroutestablesummary.NewRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "routeTablesSummaryName") + +// alternatively `client.ExpressRouteCircuitsListRoutesTableSummary(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCircuitsListRoutesTableSummaryComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/id_routetablessummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/id_routetablessummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/id_routetablessummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/id_routetablessummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/method_expressroutecircuitslistroutestablesummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/model_expressroutecircuitroutestablesummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/version.go new file mode 100644 index 000000000000..764aa6d0a348 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitroutestablesummary + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitroutestablesummary/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/README.md new file mode 100644 index 000000000000..ab5105831778 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits` Documentation + +The `expressroutecircuits` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits" +``` + + +### Client Initialization + +```go +client := expressroutecircuits.NewExpressRouteCircuitsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +payload := expressroutecircuits.ExpressRouteCircuit{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.Delete` + +```go +ctx := context.TODO() +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.Get` + +```go +ctx := context.TODO() +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRouteCircuitsClient.UpdateTags` + +```go +ctx := context.TODO() +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +payload := expressroutecircuits.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/client.go new file mode 100644 index 000000000000..e618de828285 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/client.go @@ -0,0 +1,26 @@ +package expressroutecircuits + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRouteCircuitsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuits", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRouteCircuitsClient: %+v", err) + } + + return &ExpressRouteCircuitsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/constants.go new file mode 100644 index 000000000000..017902fa091e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/constants.go @@ -0,0 +1,450 @@ +package expressroutecircuits + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthorizationUseStatus string + +const ( + AuthorizationUseStatusAvailable AuthorizationUseStatus = "Available" + AuthorizationUseStatusInUse AuthorizationUseStatus = "InUse" +) + +func PossibleValuesForAuthorizationUseStatus() []string { + return []string{ + string(AuthorizationUseStatusAvailable), + string(AuthorizationUseStatusInUse), + } +} + +func (s *AuthorizationUseStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAuthorizationUseStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAuthorizationUseStatus(input string) (*AuthorizationUseStatus, error) { + vals := map[string]AuthorizationUseStatus{ + "available": AuthorizationUseStatusAvailable, + "inuse": AuthorizationUseStatusInUse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AuthorizationUseStatus(input) + return &out, nil +} + +type CircuitConnectionStatus string + +const ( + CircuitConnectionStatusConnected CircuitConnectionStatus = "Connected" + CircuitConnectionStatusConnecting CircuitConnectionStatus = "Connecting" + CircuitConnectionStatusDisconnected CircuitConnectionStatus = "Disconnected" +) + +func PossibleValuesForCircuitConnectionStatus() []string { + return []string{ + string(CircuitConnectionStatusConnected), + string(CircuitConnectionStatusConnecting), + string(CircuitConnectionStatusDisconnected), + } +} + +func (s *CircuitConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCircuitConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCircuitConnectionStatus(input string) (*CircuitConnectionStatus, error) { + vals := map[string]CircuitConnectionStatus{ + "connected": CircuitConnectionStatusConnected, + "connecting": CircuitConnectionStatusConnecting, + "disconnected": CircuitConnectionStatusDisconnected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CircuitConnectionStatus(input) + return &out, nil +} + +type ExpressRouteCircuitPeeringAdvertisedPublicPrefixState string + +const ( + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configured" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "Configuring" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "NotConfigured" + ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = "ValidationNeeded" +) + +func PossibleValuesForExpressRouteCircuitPeeringAdvertisedPublicPrefixState() []string { + return []string{ + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured), + string(ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded), + } +} + +func (s *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input string) (*ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, error) { + vals := map[string]ExpressRouteCircuitPeeringAdvertisedPublicPrefixState{ + "configured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfigured, + "configuring": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateConfiguring, + "notconfigured": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateNotConfigured, + "validationneeded": ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateValidationNeeded, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(input) + return &out, nil +} + +type ExpressRouteCircuitPeeringState string + +const ( + ExpressRouteCircuitPeeringStateDisabled ExpressRouteCircuitPeeringState = "Disabled" + ExpressRouteCircuitPeeringStateEnabled ExpressRouteCircuitPeeringState = "Enabled" +) + +func PossibleValuesForExpressRouteCircuitPeeringState() []string { + return []string{ + string(ExpressRouteCircuitPeeringStateDisabled), + string(ExpressRouteCircuitPeeringStateEnabled), + } +} + +func (s *ExpressRouteCircuitPeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitPeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitPeeringState(input string) (*ExpressRouteCircuitPeeringState, error) { + vals := map[string]ExpressRouteCircuitPeeringState{ + "disabled": ExpressRouteCircuitPeeringStateDisabled, + "enabled": ExpressRouteCircuitPeeringStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitPeeringState(input) + return &out, nil +} + +type ExpressRouteCircuitSkuFamily string + +const ( + ExpressRouteCircuitSkuFamilyMeteredData ExpressRouteCircuitSkuFamily = "MeteredData" + ExpressRouteCircuitSkuFamilyUnlimitedData ExpressRouteCircuitSkuFamily = "UnlimitedData" +) + +func PossibleValuesForExpressRouteCircuitSkuFamily() []string { + return []string{ + string(ExpressRouteCircuitSkuFamilyMeteredData), + string(ExpressRouteCircuitSkuFamilyUnlimitedData), + } +} + +func (s *ExpressRouteCircuitSkuFamily) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitSkuFamily(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitSkuFamily(input string) (*ExpressRouteCircuitSkuFamily, error) { + vals := map[string]ExpressRouteCircuitSkuFamily{ + "metereddata": ExpressRouteCircuitSkuFamilyMeteredData, + "unlimiteddata": ExpressRouteCircuitSkuFamilyUnlimitedData, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitSkuFamily(input) + return &out, nil +} + +type ExpressRouteCircuitSkuTier string + +const ( + ExpressRouteCircuitSkuTierBasic ExpressRouteCircuitSkuTier = "Basic" + ExpressRouteCircuitSkuTierLocal ExpressRouteCircuitSkuTier = "Local" + ExpressRouteCircuitSkuTierPremium ExpressRouteCircuitSkuTier = "Premium" + ExpressRouteCircuitSkuTierStandard ExpressRouteCircuitSkuTier = "Standard" +) + +func PossibleValuesForExpressRouteCircuitSkuTier() []string { + return []string{ + string(ExpressRouteCircuitSkuTierBasic), + string(ExpressRouteCircuitSkuTierLocal), + string(ExpressRouteCircuitSkuTierPremium), + string(ExpressRouteCircuitSkuTierStandard), + } +} + +func (s *ExpressRouteCircuitSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteCircuitSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteCircuitSkuTier(input string) (*ExpressRouteCircuitSkuTier, error) { + vals := map[string]ExpressRouteCircuitSkuTier{ + "basic": ExpressRouteCircuitSkuTierBasic, + "local": ExpressRouteCircuitSkuTierLocal, + "premium": ExpressRouteCircuitSkuTierPremium, + "standard": ExpressRouteCircuitSkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteCircuitSkuTier(input) + return &out, nil +} + +type ExpressRoutePeeringState string + +const ( + ExpressRoutePeeringStateDisabled ExpressRoutePeeringState = "Disabled" + ExpressRoutePeeringStateEnabled ExpressRoutePeeringState = "Enabled" +) + +func PossibleValuesForExpressRoutePeeringState() []string { + return []string{ + string(ExpressRoutePeeringStateDisabled), + string(ExpressRoutePeeringStateEnabled), + } +} + +func (s *ExpressRoutePeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePeeringState(input string) (*ExpressRoutePeeringState, error) { + vals := map[string]ExpressRoutePeeringState{ + "disabled": ExpressRoutePeeringStateDisabled, + "enabled": ExpressRoutePeeringStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePeeringState(input) + return &out, nil +} + +type ExpressRoutePeeringType string + +const ( + ExpressRoutePeeringTypeAzurePrivatePeering ExpressRoutePeeringType = "AzurePrivatePeering" + ExpressRoutePeeringTypeAzurePublicPeering ExpressRoutePeeringType = "AzurePublicPeering" + ExpressRoutePeeringTypeMicrosoftPeering ExpressRoutePeeringType = "MicrosoftPeering" +) + +func PossibleValuesForExpressRoutePeeringType() []string { + return []string{ + string(ExpressRoutePeeringTypeAzurePrivatePeering), + string(ExpressRoutePeeringTypeAzurePublicPeering), + string(ExpressRoutePeeringTypeMicrosoftPeering), + } +} + +func (s *ExpressRoutePeeringType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePeeringType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePeeringType(input string) (*ExpressRoutePeeringType, error) { + vals := map[string]ExpressRoutePeeringType{ + "azureprivatepeering": ExpressRoutePeeringTypeAzurePrivatePeering, + "azurepublicpeering": ExpressRoutePeeringTypeAzurePublicPeering, + "microsoftpeering": ExpressRoutePeeringTypeMicrosoftPeering, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePeeringType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type ServiceProviderProvisioningState string + +const ( + ServiceProviderProvisioningStateDeprovisioning ServiceProviderProvisioningState = "Deprovisioning" + ServiceProviderProvisioningStateNotProvisioned ServiceProviderProvisioningState = "NotProvisioned" + ServiceProviderProvisioningStateProvisioned ServiceProviderProvisioningState = "Provisioned" + ServiceProviderProvisioningStateProvisioning ServiceProviderProvisioningState = "Provisioning" +) + +func PossibleValuesForServiceProviderProvisioningState() []string { + return []string{ + string(ServiceProviderProvisioningStateDeprovisioning), + string(ServiceProviderProvisioningStateNotProvisioned), + string(ServiceProviderProvisioningStateProvisioned), + string(ServiceProviderProvisioningStateProvisioning), + } +} + +func (s *ServiceProviderProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseServiceProviderProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseServiceProviderProvisioningState(input string) (*ServiceProviderProvisioningState, error) { + vals := map[string]ServiceProviderProvisioningState{ + "deprovisioning": ServiceProviderProvisioningStateDeprovisioning, + "notprovisioned": ServiceProviderProvisioningStateNotProvisioned, + "provisioned": ServiceProviderProvisioningStateProvisioned, + "provisioning": ServiceProviderProvisioningStateProvisioning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ServiceProviderProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/id_expressroutecircuit.go new file mode 100644 index 000000000000..7c3ebaafe981 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/id_expressroutecircuit.go @@ -0,0 +1,130 @@ +package expressroutecircuits + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRouteCircuitId{}) +} + +var _ resourceids.ResourceId = &ExpressRouteCircuitId{} + +// ExpressRouteCircuitId is a struct representing the Resource ID for a Express Route Circuit +type ExpressRouteCircuitId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteCircuitName string +} + +// NewExpressRouteCircuitID returns a new ExpressRouteCircuitId struct +func NewExpressRouteCircuitID(subscriptionId string, resourceGroupName string, expressRouteCircuitName string) ExpressRouteCircuitId { + return ExpressRouteCircuitId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteCircuitName: expressRouteCircuitName, + } +} + +// ParseExpressRouteCircuitID parses 'input' into a ExpressRouteCircuitId +func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteCircuitId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRouteCircuitIDInsensitively parses 'input' case-insensitively into a ExpressRouteCircuitId +// note: this method should only be used for API response data and not user input +func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuitId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteCircuitId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteCircuitId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRouteCircuitId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteCircuitName, ok = input.Parsed["expressRouteCircuitName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteCircuitName", input) + } + + return nil +} + +// ValidateExpressRouteCircuitID checks that 'input' can be parsed as a Express Route Circuit ID +func ValidateExpressRouteCircuitID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRouteCircuitID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Circuit ID +func (id ExpressRouteCircuitId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteCircuits/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteCircuitName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Circuit ID +func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitName"), + } +} + +// String returns a human-readable description of this Express Route Circuit ID +func (id ExpressRouteCircuitId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Circuit Name: %q", id.ExpressRouteCircuitName), + } + return fmt.Sprintf("Express Route Circuit (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_createorupdate.go new file mode 100644 index 000000000000..399156eb14e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressroutecircuits + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuit +} + +// CreateOrUpdate ... +func (c ExpressRouteCircuitsClient) CreateOrUpdate(ctx context.Context, id ExpressRouteCircuitId, input ExpressRouteCircuit) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRouteCircuitsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRouteCircuitId, input ExpressRouteCircuit) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_delete.go new file mode 100644 index 000000000000..91f8aa53bedf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_delete.go @@ -0,0 +1,71 @@ +package expressroutecircuits + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRouteCircuitsClient) Delete(ctx context.Context, id ExpressRouteCircuitId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRouteCircuitsClient) DeleteThenPoll(ctx context.Context, id ExpressRouteCircuitId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_get.go new file mode 100644 index 000000000000..f44a9d7ab3de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_get.go @@ -0,0 +1,53 @@ +package expressroutecircuits + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuit +} + +// Get ... +func (c ExpressRouteCircuitsClient) Get(ctx context.Context, id ExpressRouteCircuitId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteCircuit + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_list.go new file mode 100644 index 000000000000..dae4c03fa041 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_list.go @@ -0,0 +1,106 @@ +package expressroutecircuits + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRouteCircuit +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuit +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRouteCircuitsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRouteCircuit `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRouteCircuitsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRouteCircuitsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ExpressRouteCircuitOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRouteCircuit, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_listall.go new file mode 100644 index 000000000000..815e72b26ce2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_listall.go @@ -0,0 +1,106 @@ +package expressroutecircuits + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRouteCircuit +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCircuit +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c ExpressRouteCircuitsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCircuits", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRouteCircuit `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c ExpressRouteCircuitsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, ExpressRouteCircuitOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRouteCircuitsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ExpressRouteCircuitOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]ExpressRouteCircuit, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_updatetags.go new file mode 100644 index 000000000000..2188a40d7836 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/method_updatetags.go @@ -0,0 +1,57 @@ +package expressroutecircuits + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteCircuit +} + +// UpdateTags ... +func (c ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, id ExpressRouteCircuitId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteCircuit + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_authorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_authorizationpropertiesformat.go new file mode 100644 index 000000000000..65f50c0d6592 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_authorizationpropertiesformat.go @@ -0,0 +1,11 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthorizationPropertiesFormat struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + AuthorizationUseStatus *AuthorizationUseStatus `json:"authorizationUseStatus,omitempty"` + ConnectionResourceUri *string `json:"connectionResourceUri,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuit.go new file mode 100644 index 000000000000..a74493fcec8e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuit.go @@ -0,0 +1,15 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuit struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitPropertiesFormat `json:"properties,omitempty"` + Sku *ExpressRouteCircuitSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitauthorization.go new file mode 100644 index 000000000000..2942811a91cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitauthorization.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitAuthorization struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *AuthorizationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnection.go new file mode 100644 index 000000000000..901ef5037240 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..897f772964a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + IPv6CircuitConnectionConfig *IPv6CircuitConnectionConfig `json:"ipv6CircuitConnectionConfig,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeering.go new file mode 100644 index 000000000000..d74311904828 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeering.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeering struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteCircuitPeeringPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringconfig.go new file mode 100644 index 000000000000..836b1d5e963c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringconfig.go @@ -0,0 +1,13 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringConfig struct { + AdvertisedCommunities *[]string `json:"advertisedCommunities,omitempty"` + AdvertisedPublicPrefixes *[]string `json:"advertisedPublicPrefixes,omitempty"` + AdvertisedPublicPrefixesState *ExpressRouteCircuitPeeringAdvertisedPublicPrefixState `json:"advertisedPublicPrefixesState,omitempty"` + CustomerASN *int64 `json:"customerASN,omitempty"` + LegacyMode *int64 `json:"legacyMode,omitempty"` + RoutingRegistryName *string `json:"routingRegistryName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringpropertiesformat.go new file mode 100644 index 000000000000..87a88e75638e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpeeringpropertiesformat.go @@ -0,0 +1,27 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringPropertiesFormat struct { + AzureASN *int64 `json:"azureASN,omitempty"` + Connections *[]ExpressRouteCircuitConnection `json:"connections,omitempty"` + ExpressRouteConnection *ExpressRouteConnectionId `json:"expressRouteConnection,omitempty"` + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + IPv6PeeringConfig *IPv6ExpressRouteCircuitPeeringConfig `json:"ipv6PeeringConfig,omitempty"` + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + PeerASN *int64 `json:"peerASN,omitempty"` + PeeredConnections *[]PeerExpressRouteCircuitConnection `json:"peeredConnections,omitempty"` + PeeringType *ExpressRoutePeeringType `json:"peeringType,omitempty"` + PrimaryAzurePort *string `json:"primaryAzurePort,omitempty"` + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RouteFilter *SubResource `json:"routeFilter,omitempty"` + SecondaryAzurePort *string `json:"secondaryAzurePort,omitempty"` + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + State *ExpressRoutePeeringState `json:"state,omitempty"` + Stats *ExpressRouteCircuitStats `json:"stats,omitempty"` + VlanId *int64 `json:"vlanId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpropertiesformat.go new file mode 100644 index 000000000000..250eb3de7241 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitpropertiesformat.go @@ -0,0 +1,24 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPropertiesFormat struct { + AllowClassicOperations *bool `json:"allowClassicOperations,omitempty"` + AuthorizationKey *string `json:"authorizationKey,omitempty"` + AuthorizationStatus *string `json:"authorizationStatus,omitempty"` + Authorizations *[]ExpressRouteCircuitAuthorization `json:"authorizations,omitempty"` + BandwidthInGbps *float64 `json:"bandwidthInGbps,omitempty"` + CircuitProvisioningState *string `json:"circuitProvisioningState,omitempty"` + EnableDirectPortRateLimit *bool `json:"enableDirectPortRateLimit,omitempty"` + ExpressRoutePort *SubResource `json:"expressRoutePort,omitempty"` + GatewayManagerEtag *string `json:"gatewayManagerEtag,omitempty"` + GlobalReachEnabled *bool `json:"globalReachEnabled,omitempty"` + Peerings *[]ExpressRouteCircuitPeering `json:"peerings,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceKey *string `json:"serviceKey,omitempty"` + ServiceProviderNotes *string `json:"serviceProviderNotes,omitempty"` + ServiceProviderProperties *ExpressRouteCircuitServiceProviderProperties `json:"serviceProviderProperties,omitempty"` + ServiceProviderProvisioningState *ServiceProviderProvisioningState `json:"serviceProviderProvisioningState,omitempty"` + Stag *int64 `json:"stag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitserviceproviderproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitserviceproviderproperties.go new file mode 100644 index 000000000000..432cdaf5a4ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitserviceproviderproperties.go @@ -0,0 +1,10 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitServiceProviderProperties struct { + BandwidthInMbps *int64 `json:"bandwidthInMbps,omitempty"` + PeeringLocation *string `json:"peeringLocation,omitempty"` + ServiceProviderName *string `json:"serviceProviderName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitsku.go new file mode 100644 index 000000000000..186629b51a6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitsku.go @@ -0,0 +1,10 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitSku struct { + Family *ExpressRouteCircuitSkuFamily `json:"family,omitempty"` + Name *string `json:"name,omitempty"` + Tier *ExpressRouteCircuitSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitstats.go new file mode 100644 index 000000000000..ca8cd2c52bc2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressroutecircuitstats.go @@ -0,0 +1,11 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitStats struct { + PrimarybytesIn *int64 `json:"primarybytesIn,omitempty"` + PrimarybytesOut *int64 `json:"primarybytesOut,omitempty"` + SecondarybytesIn *int64 `json:"secondarybytesIn,omitempty"` + SecondarybytesOut *int64 `json:"secondarybytesOut,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressrouteconnectionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressrouteconnectionid.go new file mode 100644 index 000000000000..70b79aa3ec71 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_expressrouteconnectionid.go @@ -0,0 +1,8 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6circuitconnectionconfig.go new file mode 100644 index 000000000000..49a421772739 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6circuitconnectionconfig.go @@ -0,0 +1,9 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6CircuitConnectionConfig struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6expressroutecircuitpeeringconfig.go new file mode 100644 index 000000000000..02e4a94b3169 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_ipv6expressroutecircuitpeeringconfig.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPv6ExpressRouteCircuitPeeringConfig struct { + MicrosoftPeeringConfig *ExpressRouteCircuitPeeringConfig `json:"microsoftPeeringConfig,omitempty"` + PrimaryPeerAddressPrefix *string `json:"primaryPeerAddressPrefix,omitempty"` + RouteFilter *SubResource `json:"routeFilter,omitempty"` + SecondaryPeerAddressPrefix *string `json:"secondaryPeerAddressPrefix,omitempty"` + State *ExpressRouteCircuitPeeringState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnection.go new file mode 100644 index 000000000000..e52a6b6f8c35 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnection.go @@ -0,0 +1,12 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerExpressRouteCircuitConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PeerExpressRouteCircuitConnectionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnectionpropertiesformat.go new file mode 100644 index 000000000000..804baee319a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_peerexpressroutecircuitconnectionpropertiesformat.go @@ -0,0 +1,14 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerExpressRouteCircuitConnectionPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AuthResourceGuid *string `json:"authResourceGuid,omitempty"` + CircuitConnectionStatus *CircuitConnectionStatus `json:"circuitConnectionStatus,omitempty"` + ConnectionName *string `json:"connectionName,omitempty"` + ExpressRouteCircuitPeering *SubResource `json:"expressRouteCircuitPeering,omitempty"` + PeerExpressRouteCircuitPeering *SubResource `json:"peerExpressRouteCircuitPeering,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_subresource.go new file mode 100644 index 000000000000..daf852a98a9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_subresource.go @@ -0,0 +1,8 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_tagsobject.go new file mode 100644 index 000000000000..585eaaba376d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/model_tagsobject.go @@ -0,0 +1,8 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/predicates.go new file mode 100644 index 000000000000..3fdbc040dbfd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/predicates.go @@ -0,0 +1,37 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p ExpressRouteCircuitOperationPredicate) Matches(input ExpressRouteCircuit) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/version.go new file mode 100644 index 000000000000..d748540dd530 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits/version.go @@ -0,0 +1,10 @@ +package expressroutecircuits + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuits/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/README.md new file mode 100644 index 000000000000..632ec319993e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/README.md @@ -0,0 +1,53 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats` Documentation + +The `expressroutecircuitstats` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats" +``` + + +### Client Initialization + +```go +client := expressroutecircuitstats.NewExpressRouteCircuitStatsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCircuitStatsClient.ExpressRouteCircuitsGetPeeringStats` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +read, err := client.ExpressRouteCircuitsGetPeeringStats(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCircuitStatsClient.ExpressRouteCircuitsGetStats` + +```go +ctx := context.TODO() +id := expressroutecircuitstats.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName") + +read, err := client.ExpressRouteCircuitsGetStats(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/id_expressroutecircuit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/id_expressroutecircuit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/id_expressroutecircuit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/model_expressroutecircuitstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/model_expressroutecircuitstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/model_expressroutecircuitstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/version.go new file mode 100644 index 000000000000..c61aaaccc93b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats/version.go @@ -0,0 +1,10 @@ +package expressroutecircuitstats + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecircuitstats/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/README.md new file mode 100644 index 000000000000..71b5c305d5c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/README.md @@ -0,0 +1,81 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections` Documentation + +The `expressrouteconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections" +``` + + +### Client Initialization + +```go +client := expressrouteconnections.NewExpressRouteConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") + +payload := expressrouteconnections.ExpressRouteConnection{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteConnectionsClient.Get` + +```go +ctx := context.TODO() +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "expressRouteConnectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteConnectionsClient.List` + +```go +ctx := context.TODO() +id := expressrouteconnections.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressrouteconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressrouteconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressroutegateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/id_expressroutegateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressroutecircuitpeeringid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressroutecircuitpeeringid.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressroutecircuitpeeringid.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressroutecircuitpeeringid.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionlist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionlist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_expressrouteconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_expressrouteconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_propagatedroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_propagatedroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_propagatedroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_routingconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_routingconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_routingconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroutesconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_staticroutesconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_staticroutesconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_vnetroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/model_vnetroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/model_vnetroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/version.go new file mode 100644 index 000000000000..c5408dcd445e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections/version.go @@ -0,0 +1,10 @@ +package expressrouteconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/README.md new file mode 100644 index 000000000000..6b80c80004da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable` Documentation + +The `expressroutecrossconnectionarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable" +``` + + +### Client Initialization + +```go +client := expressroutecrossconnectionarptable.NewExpressRouteCrossConnectionArpTableClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCrossConnectionArpTableClient.ExpressRouteCrossConnectionsListArpTable` + +```go +ctx := context.TODO() +id := expressroutecrossconnectionarptable.NewPeeringArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName", "arpTableName") + +// alternatively `client.ExpressRouteCrossConnectionsListArpTable(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCrossConnectionsListArpTableComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/id_peeringarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/id_peeringarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/id_peeringarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/id_peeringarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/method_expressroutecrossconnectionslistarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/model_expressroutecircuitarptable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/version.go new file mode 100644 index 000000000000..1124562b1f3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable/version.go @@ -0,0 +1,10 @@ +package expressroutecrossconnectionarptable + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecrossconnectionarptable/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/README.md new file mode 100644 index 000000000000..03c43a6d8573 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings` Documentation + +The `expressroutecrossconnectionpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings" +``` + + +### Client Initialization + +```go +client := expressroutecrossconnectionpeerings.NewExpressRouteCrossConnectionPeeringsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCrossConnectionPeeringsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName") + +payload := expressroutecrossconnectionpeerings.ExpressRouteCrossConnectionPeering{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCrossConnectionPeeringsClient.Delete` + +```go +ctx := context.TODO() +id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCrossConnectionPeeringsClient.Get` + +```go +ctx := context.TODO() +id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCrossConnectionPeeringsClient.List` + +```go +ctx := context.TODO() +id := expressroutecrossconnectionpeerings.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_peering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/id_peering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_peering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/id_peering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_expressroutecrossconnectionpeeringproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_ipv6expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/version.go new file mode 100644 index 000000000000..5cf17d0403a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings/version.go @@ -0,0 +1,10 @@ +package expressroutecrossconnectionpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecrossconnectionpeerings/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/README.md new file mode 100644 index 000000000000..5491faf19def --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable` Documentation + +The `expressroutecrossconnectionroutetable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable" +``` + + +### Client Initialization + +```go +client := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionRouteTableClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCrossConnectionRouteTableClient.ExpressRouteCrossConnectionsListRoutesTable` + +```go +ctx := context.TODO() +id := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName", "routeTableName") + +// alternatively `client.ExpressRouteCrossConnectionsListRoutesTable(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCrossConnectionsListRoutesTableComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/method_expressroutecrossconnectionslistroutestable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/model_expressroutecircuitroutestable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/version.go new file mode 100644 index 000000000000..cb9ac7e4925e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable/version.go @@ -0,0 +1,10 @@ +package expressroutecrossconnectionroutetable + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetable/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/README.md new file mode 100644 index 000000000000..feb742e6b91f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary` Documentation + +The `expressroutecrossconnectionroutetablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary" +``` + + +### Client Initialization + +```go +client := expressroutecrossconnectionroutetablesummary.NewExpressRouteCrossConnectionRouteTableSummaryClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCrossConnectionRouteTableSummaryClient.ExpressRouteCrossConnectionsListRoutesTableSummary` + +```go +ctx := context.TODO() +id := expressroutecrossconnectionroutetablesummary.NewPeeringRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName", "peeringName", "routeTablesSummaryName") + +// alternatively `client.ExpressRouteCrossConnectionsListRoutesTableSummary(ctx, id)` can be used to do batched pagination +items, err := client.ExpressRouteCrossConnectionsListRoutesTableSummaryComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/method_expressroutecrossconnectionslistroutestablesummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/model_expressroutecrossconnectionroutestablesummary.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/version.go new file mode 100644 index 000000000000..5942cb502bf0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary/version.go @@ -0,0 +1,10 @@ +package expressroutecrossconnectionroutetablesummary + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetablesummary/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/README.md new file mode 100644 index 000000000000..018ffd2a4ec0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/README.md @@ -0,0 +1,109 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections` Documentation + +The `expressroutecrossconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections" +``` + + +### Client Initialization + +```go +client := expressroutecrossconnections.NewExpressRouteCrossConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteCrossConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName") + +payload := expressroutecrossconnections.ExpressRouteCrossConnection{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteCrossConnectionsClient.Get` + +```go +ctx := context.TODO() +id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteCrossConnectionsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id, expressroutecrossconnections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, expressroutecrossconnections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRouteCrossConnectionsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRouteCrossConnectionsClient.UpdateTags` + +```go +ctx := context.TODO() +id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionName") + +payload := expressroutecrossconnections.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/id_expressroutecrossconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/id_expressroutecrossconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/id_expressroutecrossconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/id_expressroutecrossconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_list.go new file mode 100644 index 000000000000..402193d84191 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_list.go @@ -0,0 +1,135 @@ +package expressroutecrossconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRouteCrossConnection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRouteCrossConnection +} + +type ListOperationOptions struct { + Filter *string +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Filter != nil { + out.Append("$filter", fmt.Sprintf("%v", *o.Filter)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRouteCrossConnectionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteCrossConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRouteCrossConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRouteCrossConnectionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, ExpressRouteCrossConnectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRouteCrossConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate ExpressRouteCrossConnectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRouteCrossConnection, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecircuitreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecircuitreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecircuitreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecircuitreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionpeeringproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_expressroutecrossconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_ipv6expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/version.go new file mode 100644 index 000000000000..02849b0d0d12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections/version.go @@ -0,0 +1,10 @@ +package expressroutecrossconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutecrossconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/README.md new file mode 100644 index 000000000000..88682d308c96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/README.md @@ -0,0 +1,115 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways` Documentation + +The `expressroutegateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways" +``` + + +### Client Initialization + +```go +client := expressroutegateways.NewExpressRouteGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +payload := expressroutegateways.ExpressRouteGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.Get` + +```go +ctx := context.TODO() +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +read, err := client.ListByResourceGroup(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListBySubscription(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") + +payload := expressroutegateways.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/client.go new file mode 100644 index 000000000000..292ef72ff7b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/client.go @@ -0,0 +1,26 @@ +package expressroutegateways + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewaysClient struct { + Client *resourcemanager.Client +} + +func NewExpressRouteGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteGatewaysClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressroutegateways", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRouteGatewaysClient: %+v", err) + } + + return &ExpressRouteGatewaysClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/constants.go new file mode 100644 index 000000000000..ce8f5d5f24a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/constants.go @@ -0,0 +1,98 @@ +package expressroutegateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type VnetLocalRouteOverrideCriteria string + +const ( + VnetLocalRouteOverrideCriteriaContains VnetLocalRouteOverrideCriteria = "Contains" + VnetLocalRouteOverrideCriteriaEqual VnetLocalRouteOverrideCriteria = "Equal" +) + +func PossibleValuesForVnetLocalRouteOverrideCriteria() []string { + return []string{ + string(VnetLocalRouteOverrideCriteriaContains), + string(VnetLocalRouteOverrideCriteriaEqual), + } +} + +func (s *VnetLocalRouteOverrideCriteria) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVnetLocalRouteOverrideCriteria(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVnetLocalRouteOverrideCriteria(input string) (*VnetLocalRouteOverrideCriteria, error) { + vals := map[string]VnetLocalRouteOverrideCriteria{ + "contains": VnetLocalRouteOverrideCriteriaContains, + "equal": VnetLocalRouteOverrideCriteriaEqual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VnetLocalRouteOverrideCriteria(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/id_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/id_expressroutegateway.go new file mode 100644 index 000000000000..924fe72c4ec5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/id_expressroutegateway.go @@ -0,0 +1,130 @@ +package expressroutegateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRouteGatewayId{}) +} + +var _ resourceids.ResourceId = &ExpressRouteGatewayId{} + +// ExpressRouteGatewayId is a struct representing the Resource ID for a Express Route Gateway +type ExpressRouteGatewayId struct { + SubscriptionId string + ResourceGroupName string + ExpressRouteGatewayName string +} + +// NewExpressRouteGatewayID returns a new ExpressRouteGatewayId struct +func NewExpressRouteGatewayID(subscriptionId string, resourceGroupName string, expressRouteGatewayName string) ExpressRouteGatewayId { + return ExpressRouteGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRouteGatewayName: expressRouteGatewayName, + } +} + +// ParseExpressRouteGatewayID parses 'input' into a ExpressRouteGatewayId +func ParseExpressRouteGatewayID(input string) (*ExpressRouteGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRouteGatewayIDInsensitively parses 'input' case-insensitively into a ExpressRouteGatewayId +// note: this method should only be used for API response data and not user input +func ParseExpressRouteGatewayIDInsensitively(input string) (*ExpressRouteGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRouteGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRouteGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRouteGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRouteGatewayName, ok = input.Parsed["expressRouteGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRouteGatewayName", input) + } + + return nil +} + +// ValidateExpressRouteGatewayID checks that 'input' can be parsed as a Express Route Gateway ID +func ValidateExpressRouteGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRouteGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Gateway ID +func (id ExpressRouteGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRouteGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRouteGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Gateway ID +func (id ExpressRouteGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), + resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), + } +} + +// String returns a human-readable description of this Express Route Gateway ID +func (id ExpressRouteGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Gateway Name: %q", id.ExpressRouteGatewayName), + } + return fmt.Sprintf("Express Route Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_createorupdate.go new file mode 100644 index 000000000000..b02bd6b5ebb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGateway +} + +// CreateOrUpdate ... +func (c ExpressRouteGatewaysClient) CreateOrUpdate(ctx context.Context, id ExpressRouteGatewayId, input ExpressRouteGateway) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRouteGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRouteGatewayId, input ExpressRouteGateway) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_delete.go new file mode 100644 index 000000000000..200f12cef030 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_delete.go @@ -0,0 +1,71 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRouteGatewaysClient) Delete(ctx context.Context, id ExpressRouteGatewayId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRouteGatewaysClient) DeleteThenPoll(ctx context.Context, id ExpressRouteGatewayId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_get.go new file mode 100644 index 000000000000..3fe9ab488d07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_get.go @@ -0,0 +1,53 @@ +package expressroutegateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGateway +} + +// Get ... +func (c ExpressRouteGatewaysClient) Get(ctx context.Context, id ExpressRouteGatewayId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbyresourcegroup.go new file mode 100644 index 000000000000..f76de802a392 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbyresourcegroup.go @@ -0,0 +1,55 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGatewayList +} + +// ListByResourceGroup ... +func (c ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteGatewayList + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbysubscription.go new file mode 100644 index 000000000000..840cb62145e4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_listbysubscription.go @@ -0,0 +1,55 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGatewayList +} + +// ListBySubscription ... +func (c ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRouteGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRouteGatewayList + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_updatetags.go new file mode 100644 index 000000000000..26c61ce6010d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/method_updatetags.go @@ -0,0 +1,75 @@ +package expressroutegateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRouteGateway +} + +// UpdateTags ... +func (c ExpressRouteGatewaysClient) UpdateTags(ctx context.Context, id ExpressRouteGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateTagsThenPoll performs UpdateTags then polls until it's completed +func (c ExpressRouteGatewaysClient) UpdateTagsThenPoll(ctx context.Context, id ExpressRouteGatewayId, input TagsObject) error { + result, err := c.UpdateTags(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UpdateTags: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UpdateTags: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutecircuitpeeringid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutecircuitpeeringid.go new file mode 100644 index 000000000000..832d97a11749 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutecircuitpeeringid.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteCircuitPeeringId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnection.go new file mode 100644 index 000000000000..99219dd6cfd1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnection.go @@ -0,0 +1,10 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnection struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Properties *ExpressRouteConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnectionproperties.go new file mode 100644 index 000000000000..931b412129f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressrouteconnectionproperties.go @@ -0,0 +1,15 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteConnectionProperties struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + EnablePrivateLinkFastPath *bool `json:"enablePrivateLinkFastPath,omitempty"` + ExpressRouteCircuitPeering ExpressRouteCircuitPeeringId `json:"expressRouteCircuitPeering"` + ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegateway.go new file mode 100644 index 000000000000..5505ff540a82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegateway.go @@ -0,0 +1,14 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteGatewayProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaylist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaylist.go new file mode 100644 index 000000000000..516674243801 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaylist.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewayList struct { + Value *[]ExpressRouteGateway `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewayproperties.go new file mode 100644 index 000000000000..4860e7d555a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewayproperties.go @@ -0,0 +1,12 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewayProperties struct { + AllowNonVirtualWanTraffic *bool `json:"allowNonVirtualWanTraffic,omitempty"` + AutoScaleConfiguration *ExpressRouteGatewayPropertiesAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` + ExpressRouteConnections *[]ExpressRouteConnection `json:"expressRouteConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualHub VirtualHubId `json:"virtualHub"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfiguration.go new file mode 100644 index 000000000000..60677f25d4cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfiguration.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewayPropertiesAutoScaleConfiguration struct { + Bounds *ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds `json:"bounds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfigurationbounds.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfigurationbounds.go new file mode 100644 index 000000000000..65a1ccb474b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_expressroutegatewaypropertiesautoscaleconfigurationbounds.go @@ -0,0 +1,9 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds struct { + Max *int64 `json:"max,omitempty"` + Min *int64 `json:"min,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_propagatedroutetable.go new file mode 100644 index 000000000000..93c6f306054e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_propagatedroutetable.go @@ -0,0 +1,9 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PropagatedRouteTable struct { + Ids *[]SubResource `json:"ids,omitempty"` + Labels *[]string `json:"labels,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_routingconfiguration.go new file mode 100644 index 000000000000..670d99078812 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_routingconfiguration.go @@ -0,0 +1,12 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingConfiguration struct { + AssociatedRouteTable *SubResource `json:"associatedRouteTable,omitempty"` + InboundRouteMap *SubResource `json:"inboundRouteMap,omitempty"` + OutboundRouteMap *SubResource `json:"outboundRouteMap,omitempty"` + PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"` + VnetRoutes *VnetRoute `json:"vnetRoutes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroute.go new file mode 100644 index 000000000000..29422baf7435 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroute.go @@ -0,0 +1,10 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + Name *string `json:"name,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroutesconfig.go new file mode 100644 index 000000000000..d570d0ec17a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_staticroutesconfig.go @@ -0,0 +1,9 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoutesConfig struct { + PropagateStaticRoutes *bool `json:"propagateStaticRoutes,omitempty"` + VnetLocalRouteOverrideCriteria *VnetLocalRouteOverrideCriteria `json:"vnetLocalRouteOverrideCriteria,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_subresource.go new file mode 100644 index 000000000000..f86e34933406 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_subresource.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_tagsobject.go new file mode 100644 index 000000000000..706aff41cd44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_tagsobject.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_virtualhubid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_virtualhubid.go new file mode 100644 index 000000000000..41cb5ff6fd15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_virtualhubid.go @@ -0,0 +1,8 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubId struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_vnetroute.go new file mode 100644 index 000000000000..c9586e946c6f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/model_vnetroute.go @@ -0,0 +1,10 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetRoute struct { + BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` + StaticRoutes *[]StaticRoute `json:"staticRoutes,omitempty"` + StaticRoutesConfig *StaticRoutesConfig `json:"staticRoutesConfig,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/version.go new file mode 100644 index 000000000000..2d8109907418 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways/version.go @@ -0,0 +1,10 @@ +package expressroutegateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutegateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/README.md new file mode 100644 index 000000000000..4ce5788a98cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/README.md @@ -0,0 +1,53 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks` Documentation + +The `expressroutelinks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks" +``` + + +### Client Initialization + +```go +client := expressroutelinks.NewExpressRouteLinksClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteLinksClient.Get` + +```go +ctx := context.TODO() +id := expressroutelinks.NewLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "linkName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteLinksClient.List` + +```go +ctx := context.TODO() +id := expressroutelinks.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/id_expressrouteport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_expressrouteport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/id_expressrouteport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_link.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/id_link.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_link.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/id_link.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelinkmacsecconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelinkmacsecconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelinkmacsecconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelinkmacsecconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/model_expressroutelinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/model_expressroutelinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/version.go new file mode 100644 index 000000000000..b7aadc75493f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks/version.go @@ -0,0 +1,10 @@ +package expressroutelinks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressroutelinks/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/README.md new file mode 100644 index 000000000000..b649564d072f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations` Documentation + +The `expressrouteportauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations" +``` + + +### Client Initialization + +```go +client := expressrouteportauthorizations.NewExpressRoutePortAuthorizationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRoutePortAuthorizationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") + +payload := expressrouteportauthorizations.ExpressRoutePortAuthorization{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRoutePortAuthorizationsClient.Delete` + +```go +ctx := context.TODO() +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRoutePortAuthorizationsClient.Get` + +```go +ctx := context.TODO() +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRoutePortAuthorizationsClient.List` + +```go +ctx := context.TODO() +id := expressrouteportauthorizations.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteportauthorization.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/id_expressrouteportauthorization.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorization.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorization.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorization.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/model_expressrouteportauthorizationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/version.go new file mode 100644 index 000000000000..c6b2fdfa51b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations/version.go @@ -0,0 +1,10 @@ +package expressrouteportauthorizations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteportauthorizations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/README.md new file mode 100644 index 000000000000..b91bc3697047 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/README.md @@ -0,0 +1,142 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports` Documentation + +The `expressrouteports` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports" +``` + + +### Client Initialization + +```go +client := expressrouteports.NewExpressRoutePortsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRoutePortsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +payload := expressrouteports.ExpressRoutePort{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRoutePortsClient.Delete` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ExpressRoutePortsClient.GenerateLOA` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +payload := expressrouteports.GenerateExpressRoutePortsLOARequest{ + // ... +} + + +read, err := client.GenerateLOA(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRoutePortsClient.Get` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRoutePortsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRoutePortsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ExpressRoutePortsClient.UpdateTags` + +```go +ctx := context.TODO() +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") + +payload := expressrouteports.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/client.go new file mode 100644 index 000000000000..82e57d5b54f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/client.go @@ -0,0 +1,26 @@ +package expressrouteports + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortsClient struct { + Client *resourcemanager.Client +} + +func NewExpressRoutePortsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRoutePortsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "expressrouteports", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ExpressRoutePortsClient: %+v", err) + } + + return &ExpressRoutePortsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/constants.go new file mode 100644 index 000000000000..0c08bc2c72fa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/constants.go @@ -0,0 +1,309 @@ +package expressrouteports + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteLinkAdminState string + +const ( + ExpressRouteLinkAdminStateDisabled ExpressRouteLinkAdminState = "Disabled" + ExpressRouteLinkAdminStateEnabled ExpressRouteLinkAdminState = "Enabled" +) + +func PossibleValuesForExpressRouteLinkAdminState() []string { + return []string{ + string(ExpressRouteLinkAdminStateDisabled), + string(ExpressRouteLinkAdminStateEnabled), + } +} + +func (s *ExpressRouteLinkAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteLinkAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteLinkAdminState(input string) (*ExpressRouteLinkAdminState, error) { + vals := map[string]ExpressRouteLinkAdminState{ + "disabled": ExpressRouteLinkAdminStateDisabled, + "enabled": ExpressRouteLinkAdminStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteLinkAdminState(input) + return &out, nil +} + +type ExpressRouteLinkConnectorType string + +const ( + ExpressRouteLinkConnectorTypeLC ExpressRouteLinkConnectorType = "LC" + ExpressRouteLinkConnectorTypeSC ExpressRouteLinkConnectorType = "SC" +) + +func PossibleValuesForExpressRouteLinkConnectorType() []string { + return []string{ + string(ExpressRouteLinkConnectorTypeLC), + string(ExpressRouteLinkConnectorTypeSC), + } +} + +func (s *ExpressRouteLinkConnectorType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteLinkConnectorType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteLinkConnectorType(input string) (*ExpressRouteLinkConnectorType, error) { + vals := map[string]ExpressRouteLinkConnectorType{ + "lc": ExpressRouteLinkConnectorTypeLC, + "sc": ExpressRouteLinkConnectorTypeSC, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteLinkConnectorType(input) + return &out, nil +} + +type ExpressRouteLinkMacSecCipher string + +const ( + ExpressRouteLinkMacSecCipherGcmAesOneTwoEight ExpressRouteLinkMacSecCipher = "GcmAes128" + ExpressRouteLinkMacSecCipherGcmAesTwoFiveSix ExpressRouteLinkMacSecCipher = "GcmAes256" + ExpressRouteLinkMacSecCipherGcmAesXpnOneTwoEight ExpressRouteLinkMacSecCipher = "GcmAesXpn128" + ExpressRouteLinkMacSecCipherGcmAesXpnTwoFiveSix ExpressRouteLinkMacSecCipher = "GcmAesXpn256" +) + +func PossibleValuesForExpressRouteLinkMacSecCipher() []string { + return []string{ + string(ExpressRouteLinkMacSecCipherGcmAesOneTwoEight), + string(ExpressRouteLinkMacSecCipherGcmAesTwoFiveSix), + string(ExpressRouteLinkMacSecCipherGcmAesXpnOneTwoEight), + string(ExpressRouteLinkMacSecCipherGcmAesXpnTwoFiveSix), + } +} + +func (s *ExpressRouteLinkMacSecCipher) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteLinkMacSecCipher(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteLinkMacSecCipher(input string) (*ExpressRouteLinkMacSecCipher, error) { + vals := map[string]ExpressRouteLinkMacSecCipher{ + "gcmaes128": ExpressRouteLinkMacSecCipherGcmAesOneTwoEight, + "gcmaes256": ExpressRouteLinkMacSecCipherGcmAesTwoFiveSix, + "gcmaesxpn128": ExpressRouteLinkMacSecCipherGcmAesXpnOneTwoEight, + "gcmaesxpn256": ExpressRouteLinkMacSecCipherGcmAesXpnTwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteLinkMacSecCipher(input) + return &out, nil +} + +type ExpressRouteLinkMacSecSciState string + +const ( + ExpressRouteLinkMacSecSciStateDisabled ExpressRouteLinkMacSecSciState = "Disabled" + ExpressRouteLinkMacSecSciStateEnabled ExpressRouteLinkMacSecSciState = "Enabled" +) + +func PossibleValuesForExpressRouteLinkMacSecSciState() []string { + return []string{ + string(ExpressRouteLinkMacSecSciStateDisabled), + string(ExpressRouteLinkMacSecSciStateEnabled), + } +} + +func (s *ExpressRouteLinkMacSecSciState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRouteLinkMacSecSciState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRouteLinkMacSecSciState(input string) (*ExpressRouteLinkMacSecSciState, error) { + vals := map[string]ExpressRouteLinkMacSecSciState{ + "disabled": ExpressRouteLinkMacSecSciStateDisabled, + "enabled": ExpressRouteLinkMacSecSciStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRouteLinkMacSecSciState(input) + return &out, nil +} + +type ExpressRoutePortsBillingType string + +const ( + ExpressRoutePortsBillingTypeMeteredData ExpressRoutePortsBillingType = "MeteredData" + ExpressRoutePortsBillingTypeUnlimitedData ExpressRoutePortsBillingType = "UnlimitedData" +) + +func PossibleValuesForExpressRoutePortsBillingType() []string { + return []string{ + string(ExpressRoutePortsBillingTypeMeteredData), + string(ExpressRoutePortsBillingTypeUnlimitedData), + } +} + +func (s *ExpressRoutePortsBillingType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePortsBillingType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePortsBillingType(input string) (*ExpressRoutePortsBillingType, error) { + vals := map[string]ExpressRoutePortsBillingType{ + "metereddata": ExpressRoutePortsBillingTypeMeteredData, + "unlimiteddata": ExpressRoutePortsBillingTypeUnlimitedData, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePortsBillingType(input) + return &out, nil +} + +type ExpressRoutePortsEncapsulation string + +const ( + ExpressRoutePortsEncapsulationDotOneQ ExpressRoutePortsEncapsulation = "Dot1Q" + ExpressRoutePortsEncapsulationQinQ ExpressRoutePortsEncapsulation = "QinQ" +) + +func PossibleValuesForExpressRoutePortsEncapsulation() []string { + return []string{ + string(ExpressRoutePortsEncapsulationDotOneQ), + string(ExpressRoutePortsEncapsulationQinQ), + } +} + +func (s *ExpressRoutePortsEncapsulation) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExpressRoutePortsEncapsulation(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExpressRoutePortsEncapsulation(input string) (*ExpressRoutePortsEncapsulation, error) { + vals := map[string]ExpressRoutePortsEncapsulation{ + "dot1q": ExpressRoutePortsEncapsulationDotOneQ, + "qinq": ExpressRoutePortsEncapsulationQinQ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExpressRoutePortsEncapsulation(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/id_expressrouteport.go new file mode 100644 index 000000000000..17c2ee16ba03 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/id_expressrouteport.go @@ -0,0 +1,130 @@ +package expressrouteports + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ExpressRoutePortId{}) +} + +var _ resourceids.ResourceId = &ExpressRoutePortId{} + +// ExpressRoutePortId is a struct representing the Resource ID for a Express Route Port +type ExpressRoutePortId struct { + SubscriptionId string + ResourceGroupName string + ExpressRoutePortName string +} + +// NewExpressRoutePortID returns a new ExpressRoutePortId struct +func NewExpressRoutePortID(subscriptionId string, resourceGroupName string, expressRoutePortName string) ExpressRoutePortId { + return ExpressRoutePortId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ExpressRoutePortName: expressRoutePortName, + } +} + +// ParseExpressRoutePortID parses 'input' into a ExpressRoutePortId +func ParseExpressRoutePortID(input string) (*ExpressRoutePortId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRoutePortId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseExpressRoutePortIDInsensitively parses 'input' case-insensitively into a ExpressRoutePortId +// note: this method should only be used for API response data and not user input +func ParseExpressRoutePortIDInsensitively(input string) (*ExpressRoutePortId, error) { + parser := resourceids.NewParserFromResourceIdType(&ExpressRoutePortId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ExpressRoutePortId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ExpressRoutePortId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ExpressRoutePortName, ok = input.Parsed["expressRoutePortName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "expressRoutePortName", input) + } + + return nil +} + +// ValidateExpressRoutePortID checks that 'input' can be parsed as a Express Route Port ID +func ValidateExpressRoutePortID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseExpressRoutePortID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Express Route Port ID +func (id ExpressRoutePortId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/expressRoutePorts/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ExpressRoutePortName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Express Route Port ID +func (id ExpressRoutePortId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), + } +} + +// String returns a human-readable description of this Express Route Port ID +func (id ExpressRoutePortId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Express Route Port Name: %q", id.ExpressRoutePortName), + } + return fmt.Sprintf("Express Route Port (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_createorupdate.go new file mode 100644 index 000000000000..34782a4d4f38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_createorupdate.go @@ -0,0 +1,75 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRoutePort +} + +// CreateOrUpdate ... +func (c ExpressRoutePortsClient) CreateOrUpdate(ctx context.Context, id ExpressRoutePortId, input ExpressRoutePort) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ExpressRoutePortsClient) CreateOrUpdateThenPoll(ctx context.Context, id ExpressRoutePortId, input ExpressRoutePort) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_delete.go new file mode 100644 index 000000000000..899e7de35bdf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_delete.go @@ -0,0 +1,71 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ExpressRoutePortsClient) Delete(ctx context.Context, id ExpressRoutePortId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ExpressRoutePortsClient) DeleteThenPoll(ctx context.Context, id ExpressRoutePortId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_generateloa.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_generateloa.go new file mode 100644 index 000000000000..d5725e743a69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_generateloa.go @@ -0,0 +1,58 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateLOAOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *GenerateExpressRoutePortsLOAResult +} + +// GenerateLOA ... +func (c ExpressRoutePortsClient) GenerateLOA(ctx context.Context, id ExpressRoutePortId, input GenerateExpressRoutePortsLOARequest) (result GenerateLOAOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/generateLoa", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model GenerateExpressRoutePortsLOAResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_get.go new file mode 100644 index 000000000000..dda9cada8505 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_get.go @@ -0,0 +1,53 @@ +package expressrouteports + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRoutePort +} + +// Get ... +func (c ExpressRoutePortsClient) Get(ctx context.Context, id ExpressRoutePortId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRoutePort + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_list.go new file mode 100644 index 000000000000..6ad9fc7015f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_list.go @@ -0,0 +1,106 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRoutePort +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRoutePort +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ExpressRoutePortsClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRoutePort `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ExpressRoutePortsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ExpressRoutePortOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRoutePortsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ExpressRoutePortOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ExpressRoutePort, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_listbyresourcegroup.go new file mode 100644 index 000000000000..ff3df3bfadac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package expressrouteports + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ExpressRoutePort +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []ExpressRoutePort +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c ExpressRoutePortsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/expressRoutePorts", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ExpressRoutePort `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c ExpressRoutePortsClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, ExpressRoutePortOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ExpressRoutePortsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ExpressRoutePortOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]ExpressRoutePort, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_updatetags.go new file mode 100644 index 000000000000..7ce98b9327bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/method_updatetags.go @@ -0,0 +1,57 @@ +package expressrouteports + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ExpressRoutePort +} + +// UpdateTags ... +func (c ExpressRoutePortsClient) UpdateTags(ctx context.Context, id ExpressRoutePortId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ExpressRoutePort + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelink.go new file mode 100644 index 000000000000..60ed59156adc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelink.go @@ -0,0 +1,11 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRouteLinkPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkmacsecconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkmacsecconfig.go new file mode 100644 index 000000000000..f41c94b34012 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkmacsecconfig.go @@ -0,0 +1,11 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteLinkMacSecConfig struct { + CakSecretIdentifier *string `json:"cakSecretIdentifier,omitempty"` + Cipher *ExpressRouteLinkMacSecCipher `json:"cipher,omitempty"` + CknSecretIdentifier *string `json:"cknSecretIdentifier,omitempty"` + SciState *ExpressRouteLinkMacSecSciState `json:"sciState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkpropertiesformat.go new file mode 100644 index 000000000000..a9fd2f6e03d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressroutelinkpropertiesformat.go @@ -0,0 +1,16 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRouteLinkPropertiesFormat struct { + AdminState *ExpressRouteLinkAdminState `json:"adminState,omitempty"` + ColoLocation *string `json:"coloLocation,omitempty"` + ConnectorType *ExpressRouteLinkConnectorType `json:"connectorType,omitempty"` + InterfaceName *string `json:"interfaceName,omitempty"` + MacSecConfig *ExpressRouteLinkMacSecConfig `json:"macSecConfig,omitempty"` + PatchPanelId *string `json:"patchPanelId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RackId *string `json:"rackId,omitempty"` + RouterName *string `json:"routerName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteport.go new file mode 100644 index 000000000000..4e2aa94784f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteport.go @@ -0,0 +1,19 @@ +package expressrouteports + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePort struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ExpressRoutePortPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteportpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteportpropertiesformat.go new file mode 100644 index 000000000000..897d5ea08dea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_expressrouteportpropertiesformat.go @@ -0,0 +1,19 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortPropertiesFormat struct { + AllocationDate *string `json:"allocationDate,omitempty"` + BandwidthInGbps *int64 `json:"bandwidthInGbps,omitempty"` + BillingType *ExpressRoutePortsBillingType `json:"billingType,omitempty"` + Circuits *[]SubResource `json:"circuits,omitempty"` + Encapsulation *ExpressRoutePortsEncapsulation `json:"encapsulation,omitempty"` + EtherType *string `json:"etherType,omitempty"` + Links *[]ExpressRouteLink `json:"links,omitempty"` + Mtu *string `json:"mtu,omitempty"` + PeeringLocation *string `json:"peeringLocation,omitempty"` + ProvisionedBandwidthInGbps *float64 `json:"provisionedBandwidthInGbps,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloarequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloarequest.go new file mode 100644 index 000000000000..d588660f834e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloarequest.go @@ -0,0 +1,8 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateExpressRoutePortsLOARequest struct { + CustomerName string `json:"customerName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloaresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloaresult.go new file mode 100644 index 000000000000..54defeace0f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_generateexpressrouteportsloaresult.go @@ -0,0 +1,8 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GenerateExpressRoutePortsLOAResult struct { + EncodedContent *string `json:"encodedContent,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_subresource.go new file mode 100644 index 000000000000..ef7329a3163e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_subresource.go @@ -0,0 +1,8 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_tagsobject.go new file mode 100644 index 000000000000..d0cb6f9d317f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/model_tagsobject.go @@ -0,0 +1,8 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/predicates.go new file mode 100644 index 000000000000..7339fac991bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/predicates.go @@ -0,0 +1,37 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExpressRoutePortOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p ExpressRoutePortOperationPredicate) Matches(input ExpressRoutePort) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/version.go new file mode 100644 index 000000000000..841ca4ebd484 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports/version.go @@ -0,0 +1,10 @@ +package expressrouteports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteports/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/README.md new file mode 100644 index 000000000000..8f2ba153b505 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations` Documentation + +The `expressrouteportslocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations" +``` + + +### Client Initialization + +```go +client := expressrouteportslocations.NewExpressRoutePortsLocationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRoutePortsLocationsClient.Get` + +```go +ctx := context.TODO() +id := expressrouteportslocations.NewExpressRoutePortsLocationID("12345678-1234-9876-4563-123456789012", "expressRoutePortsLocationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRoutePortsLocationsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/id_expressrouteportslocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/id_expressrouteportslocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/id_expressrouteportslocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/id_expressrouteportslocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocationbandwidths.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocationbandwidths.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocationbandwidths.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocationbandwidths.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/model_expressrouteportslocationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/version.go new file mode 100644 index 000000000000..cb780c42f406 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations/version.go @@ -0,0 +1,10 @@ +package expressrouteportslocations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteportslocations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/README.md new file mode 100644 index 000000000000..52166f859790 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports` Documentation + +The `expressrouteproviderports` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports" +``` + + +### Client Initialization + +```go +client := expressrouteproviderports.NewExpressRouteProviderPortsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteProviderPortsClient.ExpressRouteProviderPort` + +```go +ctx := context.TODO() +id := expressrouteproviderports.NewExpressRouteProviderPortID("12345678-1234-9876-4563-123456789012", "expressRouteProviderPortName") + +read, err := client.ExpressRouteProviderPort(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ExpressRouteProviderPortsClient.LocationList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.LocationList(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions())` can be used to do batched pagination +items, err := client.LocationListComplete(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/id_expressrouteproviderport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/id_expressrouteproviderport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/id_expressrouteproviderport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/id_expressrouteproviderport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_expressrouteproviderport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/method_expressrouteproviderport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_expressrouteproviderport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/method_expressrouteproviderport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/method_locationlist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/method_locationlist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/model_expressrouteproviderport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/model_expressrouteproviderport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/model_expressrouteproviderport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/model_expressrouteproviderport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/model_expressrouteproviderportproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/model_expressrouteproviderportproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/model_expressrouteproviderportproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/model_expressrouteproviderportproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/version.go new file mode 100644 index 000000000000..4404de66dd8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports/version.go @@ -0,0 +1,10 @@ +package expressrouteproviderports + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteproviderports/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/README.md new file mode 100644 index 000000000000..28f511f9297e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/README.md @@ -0,0 +1,38 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders` Documentation + +The `expressrouteserviceproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders" +``` + + +### Client Initialization + +```go +client := expressrouteserviceproviders.NewExpressRouteServiceProvidersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ExpressRouteServiceProvidersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceprovider.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceprovider.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceprovider.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceproviderbandwidthsoffered.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/model_expressrouteserviceproviderpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/version.go new file mode 100644 index 000000000000..a9d597fb3aa9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders/version.go @@ -0,0 +1,10 @@ +package expressrouteserviceproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/expressrouteserviceproviders/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/README.md new file mode 100644 index 000000000000..6e48c056a6d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/README.md @@ -0,0 +1,355 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies` Documentation + +The `firewallpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies" +``` + + +### Client Initialization + +```go +client := firewallpolicies.NewFirewallPoliciesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FirewallPoliciesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.FirewallPolicy{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPoliciesClient.Delete` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyDeploymentsDeploy` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +if err := client.FirewallPolicyDeploymentsDeployThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyDraftsCreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.FirewallPolicyDraft{ + // ... +} + + +read, err := client.FirewallPolicyDraftsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyDraftsDelete` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.FirewallPolicyDraftsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyDraftsGet` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.FirewallPolicyDraftsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesFilterValuesList` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.SignatureOverridesFilterValuesQuery{ + // ... +} + + +read, err := client.FirewallPolicyIdpsSignaturesFilterValuesList(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesList` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.IDPSQueryObject{ + // ... +} + + +read, err := client.FirewallPolicyIdpsSignaturesList(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesGet` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.FirewallPolicyIdpsSignaturesOverridesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesList` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.FirewallPolicyIdpsSignaturesOverridesList(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesPatch` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.SignaturesOverrides{ + // ... +} + + +read, err := client.FirewallPolicyIdpsSignaturesOverridesPatch(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyIdpsSignaturesOverridesPut` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.SignaturesOverrides{ + // ... +} + + +read, err := client.FirewallPolicyIdpsSignaturesOverridesPut(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +payload := firewallpolicies.FirewallPolicyRuleCollectionGroupDraft{ + // ... +} + + +read, err := client.FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyRuleCollectionGroupDraftsDelete` + +```go +ctx := context.TODO() +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +read, err := client.FirewallPolicyRuleCollectionGroupDraftsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.FirewallPolicyRuleCollectionGroupDraftsGet` + +```go +ctx := context.TODO() +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +read, err := client.FirewallPolicyRuleCollectionGroupDraftsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.Get` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +read, err := client.Get(ctx, id, firewallpolicies.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPoliciesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `FirewallPoliciesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `FirewallPoliciesClient.UpdateTags` + +```go +ctx := context.TODO() +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +payload := firewallpolicies.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/client.go new file mode 100644 index 000000000000..fba92b74070b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/client.go @@ -0,0 +1,26 @@ +package firewallpolicies + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPoliciesClient struct { + Client *resourcemanager.Client +} + +func NewFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallPoliciesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "firewallpolicies", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating FirewallPoliciesClient: %+v", err) + } + + return &FirewallPoliciesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/constants.go new file mode 100644 index 000000000000..1888a04c5a50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/constants.go @@ -0,0 +1,669 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoLearnPrivateRangesMode string + +const ( + AutoLearnPrivateRangesModeDisabled AutoLearnPrivateRangesMode = "Disabled" + AutoLearnPrivateRangesModeEnabled AutoLearnPrivateRangesMode = "Enabled" +) + +func PossibleValuesForAutoLearnPrivateRangesMode() []string { + return []string{ + string(AutoLearnPrivateRangesModeDisabled), + string(AutoLearnPrivateRangesModeEnabled), + } +} + +func (s *AutoLearnPrivateRangesMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAutoLearnPrivateRangesMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAutoLearnPrivateRangesMode(input string) (*AutoLearnPrivateRangesMode, error) { + vals := map[string]AutoLearnPrivateRangesMode{ + "disabled": AutoLearnPrivateRangesModeDisabled, + "enabled": AutoLearnPrivateRangesModeEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AutoLearnPrivateRangesMode(input) + return &out, nil +} + +type AzureFirewallThreatIntelMode string + +const ( + AzureFirewallThreatIntelModeAlert AzureFirewallThreatIntelMode = "Alert" + AzureFirewallThreatIntelModeDeny AzureFirewallThreatIntelMode = "Deny" + AzureFirewallThreatIntelModeOff AzureFirewallThreatIntelMode = "Off" +) + +func PossibleValuesForAzureFirewallThreatIntelMode() []string { + return []string{ + string(AzureFirewallThreatIntelModeAlert), + string(AzureFirewallThreatIntelModeDeny), + string(AzureFirewallThreatIntelModeOff), + } +} + +func (s *AzureFirewallThreatIntelMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAzureFirewallThreatIntelMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAzureFirewallThreatIntelMode(input string) (*AzureFirewallThreatIntelMode, error) { + vals := map[string]AzureFirewallThreatIntelMode{ + "alert": AzureFirewallThreatIntelModeAlert, + "deny": AzureFirewallThreatIntelModeDeny, + "off": AzureFirewallThreatIntelModeOff, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AzureFirewallThreatIntelMode(input) + return &out, nil +} + +type FirewallPolicyFilterRuleCollectionActionType string + +const ( + FirewallPolicyFilterRuleCollectionActionTypeAllow FirewallPolicyFilterRuleCollectionActionType = "Allow" + FirewallPolicyFilterRuleCollectionActionTypeDeny FirewallPolicyFilterRuleCollectionActionType = "Deny" +) + +func PossibleValuesForFirewallPolicyFilterRuleCollectionActionType() []string { + return []string{ + string(FirewallPolicyFilterRuleCollectionActionTypeAllow), + string(FirewallPolicyFilterRuleCollectionActionTypeDeny), + } +} + +func (s *FirewallPolicyFilterRuleCollectionActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyFilterRuleCollectionActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyFilterRuleCollectionActionType(input string) (*FirewallPolicyFilterRuleCollectionActionType, error) { + vals := map[string]FirewallPolicyFilterRuleCollectionActionType{ + "allow": FirewallPolicyFilterRuleCollectionActionTypeAllow, + "deny": FirewallPolicyFilterRuleCollectionActionTypeDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyFilterRuleCollectionActionType(input) + return &out, nil +} + +type FirewallPolicyIDPSQuerySortOrder string + +const ( + FirewallPolicyIDPSQuerySortOrderAscending FirewallPolicyIDPSQuerySortOrder = "Ascending" + FirewallPolicyIDPSQuerySortOrderDescending FirewallPolicyIDPSQuerySortOrder = "Descending" +) + +func PossibleValuesForFirewallPolicyIDPSQuerySortOrder() []string { + return []string{ + string(FirewallPolicyIDPSQuerySortOrderAscending), + string(FirewallPolicyIDPSQuerySortOrderDescending), + } +} + +func (s *FirewallPolicyIDPSQuerySortOrder) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyIDPSQuerySortOrder(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyIDPSQuerySortOrder(input string) (*FirewallPolicyIDPSQuerySortOrder, error) { + vals := map[string]FirewallPolicyIDPSQuerySortOrder{ + "ascending": FirewallPolicyIDPSQuerySortOrderAscending, + "descending": FirewallPolicyIDPSQuerySortOrderDescending, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyIDPSQuerySortOrder(input) + return &out, nil +} + +type FirewallPolicyIDPSSignatureDirection int64 + +const ( + FirewallPolicyIDPSSignatureDirectionFour FirewallPolicyIDPSSignatureDirection = 4 + FirewallPolicyIDPSSignatureDirectionOne FirewallPolicyIDPSSignatureDirection = 1 + FirewallPolicyIDPSSignatureDirectionThree FirewallPolicyIDPSSignatureDirection = 3 + FirewallPolicyIDPSSignatureDirectionTwo FirewallPolicyIDPSSignatureDirection = 2 + FirewallPolicyIDPSSignatureDirectionZero FirewallPolicyIDPSSignatureDirection = 0 +) + +func PossibleValuesForFirewallPolicyIDPSSignatureDirection() []int64 { + return []int64{ + int64(FirewallPolicyIDPSSignatureDirectionFour), + int64(FirewallPolicyIDPSSignatureDirectionOne), + int64(FirewallPolicyIDPSSignatureDirectionThree), + int64(FirewallPolicyIDPSSignatureDirectionTwo), + int64(FirewallPolicyIDPSSignatureDirectionZero), + } +} + +type FirewallPolicyIDPSSignatureMode int64 + +const ( + FirewallPolicyIDPSSignatureModeOne FirewallPolicyIDPSSignatureMode = 1 + FirewallPolicyIDPSSignatureModeTwo FirewallPolicyIDPSSignatureMode = 2 + FirewallPolicyIDPSSignatureModeZero FirewallPolicyIDPSSignatureMode = 0 +) + +func PossibleValuesForFirewallPolicyIDPSSignatureMode() []int64 { + return []int64{ + int64(FirewallPolicyIDPSSignatureModeOne), + int64(FirewallPolicyIDPSSignatureModeTwo), + int64(FirewallPolicyIDPSSignatureModeZero), + } +} + +type FirewallPolicyIDPSSignatureSeverity int64 + +const ( + FirewallPolicyIDPSSignatureSeverityOne FirewallPolicyIDPSSignatureSeverity = 1 + FirewallPolicyIDPSSignatureSeverityThree FirewallPolicyIDPSSignatureSeverity = 3 + FirewallPolicyIDPSSignatureSeverityTwo FirewallPolicyIDPSSignatureSeverity = 2 +) + +func PossibleValuesForFirewallPolicyIDPSSignatureSeverity() []int64 { + return []int64{ + int64(FirewallPolicyIDPSSignatureSeverityOne), + int64(FirewallPolicyIDPSSignatureSeverityThree), + int64(FirewallPolicyIDPSSignatureSeverityTwo), + } +} + +type FirewallPolicyIntrusionDetectionProfileType string + +const ( + FirewallPolicyIntrusionDetectionProfileTypeAdvanced FirewallPolicyIntrusionDetectionProfileType = "Advanced" + FirewallPolicyIntrusionDetectionProfileTypeBasic FirewallPolicyIntrusionDetectionProfileType = "Basic" + FirewallPolicyIntrusionDetectionProfileTypeExtended FirewallPolicyIntrusionDetectionProfileType = "Extended" + FirewallPolicyIntrusionDetectionProfileTypeStandard FirewallPolicyIntrusionDetectionProfileType = "Standard" +) + +func PossibleValuesForFirewallPolicyIntrusionDetectionProfileType() []string { + return []string{ + string(FirewallPolicyIntrusionDetectionProfileTypeAdvanced), + string(FirewallPolicyIntrusionDetectionProfileTypeBasic), + string(FirewallPolicyIntrusionDetectionProfileTypeExtended), + string(FirewallPolicyIntrusionDetectionProfileTypeStandard), + } +} + +func (s *FirewallPolicyIntrusionDetectionProfileType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyIntrusionDetectionProfileType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyIntrusionDetectionProfileType(input string) (*FirewallPolicyIntrusionDetectionProfileType, error) { + vals := map[string]FirewallPolicyIntrusionDetectionProfileType{ + "advanced": FirewallPolicyIntrusionDetectionProfileTypeAdvanced, + "basic": FirewallPolicyIntrusionDetectionProfileTypeBasic, + "extended": FirewallPolicyIntrusionDetectionProfileTypeExtended, + "standard": FirewallPolicyIntrusionDetectionProfileTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyIntrusionDetectionProfileType(input) + return &out, nil +} + +type FirewallPolicyIntrusionDetectionProtocol string + +const ( + FirewallPolicyIntrusionDetectionProtocolANY FirewallPolicyIntrusionDetectionProtocol = "ANY" + FirewallPolicyIntrusionDetectionProtocolICMP FirewallPolicyIntrusionDetectionProtocol = "ICMP" + FirewallPolicyIntrusionDetectionProtocolTCP FirewallPolicyIntrusionDetectionProtocol = "TCP" + FirewallPolicyIntrusionDetectionProtocolUDP FirewallPolicyIntrusionDetectionProtocol = "UDP" +) + +func PossibleValuesForFirewallPolicyIntrusionDetectionProtocol() []string { + return []string{ + string(FirewallPolicyIntrusionDetectionProtocolANY), + string(FirewallPolicyIntrusionDetectionProtocolICMP), + string(FirewallPolicyIntrusionDetectionProtocolTCP), + string(FirewallPolicyIntrusionDetectionProtocolUDP), + } +} + +func (s *FirewallPolicyIntrusionDetectionProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyIntrusionDetectionProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyIntrusionDetectionProtocol(input string) (*FirewallPolicyIntrusionDetectionProtocol, error) { + vals := map[string]FirewallPolicyIntrusionDetectionProtocol{ + "any": FirewallPolicyIntrusionDetectionProtocolANY, + "icmp": FirewallPolicyIntrusionDetectionProtocolICMP, + "tcp": FirewallPolicyIntrusionDetectionProtocolTCP, + "udp": FirewallPolicyIntrusionDetectionProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyIntrusionDetectionProtocol(input) + return &out, nil +} + +type FirewallPolicyIntrusionDetectionStateType string + +const ( + FirewallPolicyIntrusionDetectionStateTypeAlert FirewallPolicyIntrusionDetectionStateType = "Alert" + FirewallPolicyIntrusionDetectionStateTypeDeny FirewallPolicyIntrusionDetectionStateType = "Deny" + FirewallPolicyIntrusionDetectionStateTypeOff FirewallPolicyIntrusionDetectionStateType = "Off" +) + +func PossibleValuesForFirewallPolicyIntrusionDetectionStateType() []string { + return []string{ + string(FirewallPolicyIntrusionDetectionStateTypeAlert), + string(FirewallPolicyIntrusionDetectionStateTypeDeny), + string(FirewallPolicyIntrusionDetectionStateTypeOff), + } +} + +func (s *FirewallPolicyIntrusionDetectionStateType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyIntrusionDetectionStateType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyIntrusionDetectionStateType(input string) (*FirewallPolicyIntrusionDetectionStateType, error) { + vals := map[string]FirewallPolicyIntrusionDetectionStateType{ + "alert": FirewallPolicyIntrusionDetectionStateTypeAlert, + "deny": FirewallPolicyIntrusionDetectionStateTypeDeny, + "off": FirewallPolicyIntrusionDetectionStateTypeOff, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyIntrusionDetectionStateType(input) + return &out, nil +} + +type FirewallPolicyNatRuleCollectionActionType string + +const ( + FirewallPolicyNatRuleCollectionActionTypeDNAT FirewallPolicyNatRuleCollectionActionType = "DNAT" +) + +func PossibleValuesForFirewallPolicyNatRuleCollectionActionType() []string { + return []string{ + string(FirewallPolicyNatRuleCollectionActionTypeDNAT), + } +} + +func (s *FirewallPolicyNatRuleCollectionActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyNatRuleCollectionActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyNatRuleCollectionActionType(input string) (*FirewallPolicyNatRuleCollectionActionType, error) { + vals := map[string]FirewallPolicyNatRuleCollectionActionType{ + "dnat": FirewallPolicyNatRuleCollectionActionTypeDNAT, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyNatRuleCollectionActionType(input) + return &out, nil +} + +type FirewallPolicyRuleApplicationProtocolType string + +const ( + FirewallPolicyRuleApplicationProtocolTypeHTTP FirewallPolicyRuleApplicationProtocolType = "Http" + FirewallPolicyRuleApplicationProtocolTypeHTTPS FirewallPolicyRuleApplicationProtocolType = "Https" +) + +func PossibleValuesForFirewallPolicyRuleApplicationProtocolType() []string { + return []string{ + string(FirewallPolicyRuleApplicationProtocolTypeHTTP), + string(FirewallPolicyRuleApplicationProtocolTypeHTTPS), + } +} + +func (s *FirewallPolicyRuleApplicationProtocolType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleApplicationProtocolType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleApplicationProtocolType(input string) (*FirewallPolicyRuleApplicationProtocolType, error) { + vals := map[string]FirewallPolicyRuleApplicationProtocolType{ + "http": FirewallPolicyRuleApplicationProtocolTypeHTTP, + "https": FirewallPolicyRuleApplicationProtocolTypeHTTPS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleApplicationProtocolType(input) + return &out, nil +} + +type FirewallPolicyRuleCollectionType string + +const ( + FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyFilterRuleCollection" + FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection FirewallPolicyRuleCollectionType = "FirewallPolicyNatRuleCollection" +) + +func PossibleValuesForFirewallPolicyRuleCollectionType() []string { + return []string{ + string(FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection), + string(FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection), + } +} + +func (s *FirewallPolicyRuleCollectionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleCollectionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleCollectionType(input string) (*FirewallPolicyRuleCollectionType, error) { + vals := map[string]FirewallPolicyRuleCollectionType{ + "firewallpolicyfilterrulecollection": FirewallPolicyRuleCollectionTypeFirewallPolicyFilterRuleCollection, + "firewallpolicynatrulecollection": FirewallPolicyRuleCollectionTypeFirewallPolicyNatRuleCollection, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleCollectionType(input) + return &out, nil +} + +type FirewallPolicyRuleNetworkProtocol string + +const ( + FirewallPolicyRuleNetworkProtocolAny FirewallPolicyRuleNetworkProtocol = "Any" + FirewallPolicyRuleNetworkProtocolICMP FirewallPolicyRuleNetworkProtocol = "ICMP" + FirewallPolicyRuleNetworkProtocolTCP FirewallPolicyRuleNetworkProtocol = "TCP" + FirewallPolicyRuleNetworkProtocolUDP FirewallPolicyRuleNetworkProtocol = "UDP" +) + +func PossibleValuesForFirewallPolicyRuleNetworkProtocol() []string { + return []string{ + string(FirewallPolicyRuleNetworkProtocolAny), + string(FirewallPolicyRuleNetworkProtocolICMP), + string(FirewallPolicyRuleNetworkProtocolTCP), + string(FirewallPolicyRuleNetworkProtocolUDP), + } +} + +func (s *FirewallPolicyRuleNetworkProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleNetworkProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleNetworkProtocol(input string) (*FirewallPolicyRuleNetworkProtocol, error) { + vals := map[string]FirewallPolicyRuleNetworkProtocol{ + "any": FirewallPolicyRuleNetworkProtocolAny, + "icmp": FirewallPolicyRuleNetworkProtocolICMP, + "tcp": FirewallPolicyRuleNetworkProtocolTCP, + "udp": FirewallPolicyRuleNetworkProtocolUDP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleNetworkProtocol(input) + return &out, nil +} + +type FirewallPolicyRuleType string + +const ( + FirewallPolicyRuleTypeApplicationRule FirewallPolicyRuleType = "ApplicationRule" + FirewallPolicyRuleTypeNatRule FirewallPolicyRuleType = "NatRule" + FirewallPolicyRuleTypeNetworkRule FirewallPolicyRuleType = "NetworkRule" +) + +func PossibleValuesForFirewallPolicyRuleType() []string { + return []string{ + string(FirewallPolicyRuleTypeApplicationRule), + string(FirewallPolicyRuleTypeNatRule), + string(FirewallPolicyRuleTypeNetworkRule), + } +} + +func (s *FirewallPolicyRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicyRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicyRuleType(input string) (*FirewallPolicyRuleType, error) { + vals := map[string]FirewallPolicyRuleType{ + "applicationrule": FirewallPolicyRuleTypeApplicationRule, + "natrule": FirewallPolicyRuleTypeNatRule, + "networkrule": FirewallPolicyRuleTypeNetworkRule, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicyRuleType(input) + return &out, nil +} + +type FirewallPolicySkuTier string + +const ( + FirewallPolicySkuTierBasic FirewallPolicySkuTier = "Basic" + FirewallPolicySkuTierPremium FirewallPolicySkuTier = "Premium" + FirewallPolicySkuTierStandard FirewallPolicySkuTier = "Standard" +) + +func PossibleValuesForFirewallPolicySkuTier() []string { + return []string{ + string(FirewallPolicySkuTierBasic), + string(FirewallPolicySkuTierPremium), + string(FirewallPolicySkuTierStandard), + } +} + +func (s *FirewallPolicySkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFirewallPolicySkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFirewallPolicySkuTier(input string) (*FirewallPolicySkuTier, error) { + vals := map[string]FirewallPolicySkuTier{ + "basic": FirewallPolicySkuTierBasic, + "premium": FirewallPolicySkuTierPremium, + "standard": FirewallPolicySkuTierStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FirewallPolicySkuTier(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_firewallpolicy.go new file mode 100644 index 000000000000..fdb530b04703 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_firewallpolicy.go @@ -0,0 +1,130 @@ +package firewallpolicies + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&FirewallPolicyId{}) +} + +var _ resourceids.ResourceId = &FirewallPolicyId{} + +// FirewallPolicyId is a struct representing the Resource ID for a Firewall Policy +type FirewallPolicyId struct { + SubscriptionId string + ResourceGroupName string + FirewallPolicyName string +} + +// NewFirewallPolicyID returns a new FirewallPolicyId struct +func NewFirewallPolicyID(subscriptionId string, resourceGroupName string, firewallPolicyName string) FirewallPolicyId { + return FirewallPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FirewallPolicyName: firewallPolicyName, + } +} + +// ParseFirewallPolicyID parses 'input' into a FirewallPolicyId +func ParseFirewallPolicyID(input string) (*FirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&FirewallPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseFirewallPolicyIDInsensitively parses 'input' case-insensitively into a FirewallPolicyId +// note: this method should only be used for API response data and not user input +func ParseFirewallPolicyIDInsensitively(input string) (*FirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&FirewallPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := FirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *FirewallPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FirewallPolicyName, ok = input.Parsed["firewallPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "firewallPolicyName", input) + } + + return nil +} + +// ValidateFirewallPolicyID checks that 'input' can be parsed as a Firewall Policy ID +func ValidateFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseFirewallPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Firewall Policy ID +func (id FirewallPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/firewallPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Firewall Policy ID +func (id FirewallPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), + } +} + +// String returns a human-readable description of this Firewall Policy ID +func (id FirewallPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Firewall Policy Name: %q", id.FirewallPolicyName), + } + return fmt.Sprintf("Firewall Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_rulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_rulecollectiongroup.go new file mode 100644 index 000000000000..66f9d049a7c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/id_rulecollectiongroup.go @@ -0,0 +1,139 @@ +package firewallpolicies + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionGroupId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionGroupId{} + +// RuleCollectionGroupId is a struct representing the Resource ID for a Rule Collection Group +type RuleCollectionGroupId struct { + SubscriptionId string + ResourceGroupName string + FirewallPolicyName string + RuleCollectionGroupName string +} + +// NewRuleCollectionGroupID returns a new RuleCollectionGroupId struct +func NewRuleCollectionGroupID(subscriptionId string, resourceGroupName string, firewallPolicyName string, ruleCollectionGroupName string) RuleCollectionGroupId { + return RuleCollectionGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + FirewallPolicyName: firewallPolicyName, + RuleCollectionGroupName: ruleCollectionGroupName, + } +} + +// ParseRuleCollectionGroupID parses 'input' into a RuleCollectionGroupId +func ParseRuleCollectionGroupID(input string) (*RuleCollectionGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionGroupIDInsensitively parses 'input' case-insensitively into a RuleCollectionGroupId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionGroupIDInsensitively(input string) (*RuleCollectionGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.FirewallPolicyName, ok = input.Parsed["firewallPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "firewallPolicyName", input) + } + + if id.RuleCollectionGroupName, ok = input.Parsed["ruleCollectionGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionGroupName", input) + } + + return nil +} + +// ValidateRuleCollectionGroupID checks that 'input' can be parsed as a Rule Collection Group ID +func ValidateRuleCollectionGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection Group ID +func (id RuleCollectionGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/firewallPolicies/%s/ruleCollectionGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName, id.RuleCollectionGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection Group ID +func (id RuleCollectionGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), + resourceids.StaticSegment("staticRuleCollectionGroups", "ruleCollectionGroups", "ruleCollectionGroups"), + resourceids.UserSpecifiedSegment("ruleCollectionGroupName", "ruleCollectionGroupName"), + } +} + +// String returns a human-readable description of this Rule Collection Group ID +func (id RuleCollectionGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Firewall Policy Name: %q", id.FirewallPolicyName), + fmt.Sprintf("Rule Collection Group Name: %q", id.RuleCollectionGroupName), + } + return fmt.Sprintf("Rule Collection Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_createorupdate.go new file mode 100644 index 000000000000..0492bbef61e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_createorupdate.go @@ -0,0 +1,75 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicy +} + +// CreateOrUpdate ... +func (c FirewallPoliciesClient) CreateOrUpdate(ctx context.Context, id FirewallPolicyId, input FirewallPolicy) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c FirewallPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id FirewallPolicyId, input FirewallPolicy) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_delete.go new file mode 100644 index 000000000000..432932fda66b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_delete.go @@ -0,0 +1,71 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c FirewallPoliciesClient) Delete(ctx context.Context, id FirewallPolicyId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c FirewallPoliciesClient) DeleteThenPoll(ctx context.Context, id FirewallPolicyId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydeploymentsdeploy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydeploymentsdeploy.go new file mode 100644 index 000000000000..2b0ff5b7afeb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydeploymentsdeploy.go @@ -0,0 +1,69 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDeploymentsDeployOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// FirewallPolicyDeploymentsDeploy ... +func (c FirewallPoliciesClient) FirewallPolicyDeploymentsDeploy(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyDeploymentsDeployOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/deploy", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// FirewallPolicyDeploymentsDeployThenPoll performs FirewallPolicyDeploymentsDeploy then polls until it's completed +func (c FirewallPoliciesClient) FirewallPolicyDeploymentsDeployThenPoll(ctx context.Context, id FirewallPolicyId) error { + result, err := c.FirewallPolicyDeploymentsDeploy(ctx, id) + if err != nil { + return fmt.Errorf("performing FirewallPolicyDeploymentsDeploy: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after FirewallPolicyDeploymentsDeploy: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go new file mode 100644 index 000000000000..a355d78a7670 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go @@ -0,0 +1,59 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraftsCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyDraft +} + +// FirewallPolicyDraftsCreateOrUpdate ... +func (c FirewallPoliciesClient) FirewallPolicyDraftsCreateOrUpdate(ctx context.Context, id FirewallPolicyId, input FirewallPolicyDraft) (result FirewallPolicyDraftsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/firewallPolicyDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyDraft + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsdelete.go new file mode 100644 index 000000000000..a0fd3352ff22 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsdelete.go @@ -0,0 +1,48 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraftsDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// FirewallPolicyDraftsDelete ... +func (c FirewallPoliciesClient) FirewallPolicyDraftsDelete(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyDraftsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/firewallPolicyDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsget.go new file mode 100644 index 000000000000..804027dd9523 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicydraftsget.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraftsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyDraft +} + +// FirewallPolicyDraftsGet ... +func (c FirewallPoliciesClient) FirewallPolicyDraftsGet(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyDraftsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/firewallPolicyDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyDraft + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go new file mode 100644 index 000000000000..afb4f37a3fa1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go @@ -0,0 +1,58 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesFilterValuesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignatureOverridesFilterValuesResponse +} + +// FirewallPolicyIdpsSignaturesFilterValuesList ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesFilterValuesList(ctx context.Context, id FirewallPolicyId, input SignatureOverridesFilterValuesQuery) (result FirewallPolicyIdpsSignaturesFilterValuesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listIdpsFilterOptions", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignatureOverridesFilterValuesResponse + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go new file mode 100644 index 000000000000..657d39e5a745 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go @@ -0,0 +1,58 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *QueryResults +} + +// FirewallPolicyIdpsSignaturesList ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesList(ctx context.Context, id FirewallPolicyId, input IDPSQueryObject) (result FirewallPolicyIdpsSignaturesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/listIdpsSignatures", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model QueryResults + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go new file mode 100644 index 000000000000..4ff22b6ea426 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesOverridesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignaturesOverrides +} + +// FirewallPolicyIdpsSignaturesOverridesGet ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesGet(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyIdpsSignaturesOverridesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/signatureOverrides/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignaturesOverrides + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go new file mode 100644 index 000000000000..253dc4d80739 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesOverridesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignaturesOverridesList +} + +// FirewallPolicyIdpsSignaturesOverridesList ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesList(ctx context.Context, id FirewallPolicyId) (result FirewallPolicyIdpsSignaturesOverridesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/signatureOverrides", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignaturesOverridesList + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go new file mode 100644 index 000000000000..ebb6a03296b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go @@ -0,0 +1,58 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesOverridesPatchOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignaturesOverrides +} + +// FirewallPolicyIdpsSignaturesOverridesPatch ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPatch(ctx context.Context, id FirewallPolicyId, input SignaturesOverrides) (result FirewallPolicyIdpsSignaturesOverridesPatchOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: fmt.Sprintf("%s/signatureOverrides/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignaturesOverrides + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go new file mode 100644 index 000000000000..51a0cf8dcc59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go @@ -0,0 +1,58 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIdpsSignaturesOverridesPutOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SignaturesOverrides +} + +// FirewallPolicyIdpsSignaturesOverridesPut ... +func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPut(ctx context.Context, id FirewallPolicyId, input SignaturesOverrides) (result FirewallPolicyIdpsSignaturesOverridesPutOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/signatureOverrides/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SignaturesOverrides + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go new file mode 100644 index 000000000000..168eab6a2f23 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go @@ -0,0 +1,59 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyRuleCollectionGroupDraft +} + +// FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdate ... +func (c FirewallPoliciesClient) FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdate(ctx context.Context, id RuleCollectionGroupId, input FirewallPolicyRuleCollectionGroupDraft) (result FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/ruleCollectionGroupDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyRuleCollectionGroupDraft + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsdelete.go new file mode 100644 index 000000000000..da02af84b53d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsdelete.go @@ -0,0 +1,48 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraftsDeleteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData +} + +// FirewallPolicyRuleCollectionGroupDraftsDelete ... +func (c FirewallPoliciesClient) FirewallPolicyRuleCollectionGroupDraftsDelete(ctx context.Context, id RuleCollectionGroupId) (result FirewallPolicyRuleCollectionGroupDraftsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: fmt.Sprintf("%s/ruleCollectionGroupDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go new file mode 100644 index 000000000000..8d2027a6a40d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraftsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicyRuleCollectionGroupDraft +} + +// FirewallPolicyRuleCollectionGroupDraftsGet ... +func (c FirewallPoliciesClient) FirewallPolicyRuleCollectionGroupDraftsGet(ctx context.Context, id RuleCollectionGroupId) (result FirewallPolicyRuleCollectionGroupDraftsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/ruleCollectionGroupDrafts/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicyRuleCollectionGroupDraft + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_get.go new file mode 100644 index 000000000000..c57af3124f02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_get.go @@ -0,0 +1,83 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicy +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c FirewallPoliciesClient) Get(ctx context.Context, id FirewallPolicyId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_list.go new file mode 100644 index 000000000000..84096e094ce9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_list.go @@ -0,0 +1,106 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FirewallPolicy +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []FirewallPolicy +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c FirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FirewallPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c FirewallPoliciesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, FirewallPolicyOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c FirewallPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate FirewallPolicyOperationPredicate) (result ListCompleteResult, err error) { + items := make([]FirewallPolicy, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_listall.go new file mode 100644 index 000000000000..8b1106b1f8b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_listall.go @@ -0,0 +1,106 @@ +package firewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]FirewallPolicy +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []FirewallPolicy +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c FirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/firewallPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]FirewallPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c FirewallPoliciesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, FirewallPolicyOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c FirewallPoliciesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate FirewallPolicyOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]FirewallPolicy, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_updatetags.go new file mode 100644 index 000000000000..66cfb5cb6d4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/method_updatetags.go @@ -0,0 +1,57 @@ +package firewallpolicies + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *FirewallPolicy +} + +// UpdateTags ... +func (c FirewallPoliciesClient) UpdateTags(ctx context.Context, id FirewallPolicyId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model FirewallPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_applicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_applicationrule.go new file mode 100644 index 000000000000..151ed288baea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_applicationrule.go @@ -0,0 +1,63 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = ApplicationRule{} + +type ApplicationRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + FqdnTags *[]string `json:"fqdnTags,omitempty"` + HTTPHeadersToInsert *[]FirewallPolicyHTTPHeaderToInsert `json:"httpHeadersToInsert,omitempty"` + Protocols *[]FirewallPolicyRuleApplicationProtocol `json:"protocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + TargetFqdns *[]string `json:"targetFqdns,omitempty"` + TargetURLs *[]string `json:"targetUrls,omitempty"` + TerminateTLS *bool `json:"terminateTLS,omitempty"` + WebCategories *[]string `json:"webCategories,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s ApplicationRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = ApplicationRule{} + +func (s ApplicationRule) MarshalJSON() ([]byte, error) { + type wrapper ApplicationRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ApplicationRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ApplicationRule: %+v", err) + } + + decoded["ruleType"] = "ApplicationRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ApplicationRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_dnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_dnssettings.go new file mode 100644 index 000000000000..6983f66f9dd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_dnssettings.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DnsSettings struct { + EnableProxy *bool `json:"enableProxy,omitempty"` + RequireProxyForNetworkRules *bool `json:"requireProxyForNetworkRules,omitempty"` + Servers *[]string `json:"servers,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_explicitproxy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_explicitproxy.go new file mode 100644 index 000000000000..d8af7221ddfd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_explicitproxy.go @@ -0,0 +1,13 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExplicitProxy struct { + EnableExplicitProxy *bool `json:"enableExplicitProxy,omitempty"` + EnablePacFile *bool `json:"enablePacFile,omitempty"` + HTTPPort *int64 `json:"httpPort,omitempty"` + HTTPSPort *int64 `json:"httpsPort,omitempty"` + PacFile *string `json:"pacFile,omitempty"` + PacFilePort *int64 `json:"pacFilePort,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_filteritems.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_filteritems.go new file mode 100644 index 000000000000..943657d23f09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_filteritems.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FilterItems struct { + Field *string `json:"field,omitempty"` + Values *[]string `json:"values,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicy.go new file mode 100644 index 000000000000..fb85165c9d9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicy.go @@ -0,0 +1,19 @@ +package firewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FirewallPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicycertificateauthority.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicycertificateauthority.go new file mode 100644 index 000000000000..b1d1e5fcdd88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicycertificateauthority.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyCertificateAuthority struct { + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraft.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraft.go new file mode 100644 index 000000000000..1f156e948dd2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraft.go @@ -0,0 +1,13 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraft struct { + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FirewallPolicyDraftProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraftproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraftproperties.go new file mode 100644 index 000000000000..7303ad731f25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicydraftproperties.go @@ -0,0 +1,16 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyDraftProperties struct { + BasePolicy *SubResource `json:"basePolicy,omitempty"` + DnsSettings *DnsSettings `json:"dnsSettings,omitempty"` + ExplicitProxy *ExplicitProxy `json:"explicitProxy,omitempty"` + Insights *FirewallPolicyInsights `json:"insights,omitempty"` + IntrusionDetection *FirewallPolicyIntrusionDetection `json:"intrusionDetection,omitempty"` + Snat *FirewallPolicySNAT `json:"snat,omitempty"` + Sql *FirewallPolicySQL `json:"sql,omitempty"` + ThreatIntelMode *AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` + ThreatIntelWhitelist *FirewallPolicyThreatIntelWhitelist `json:"threatIntelWhitelist,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go new file mode 100644 index 000000000000..1253bbae7421 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go @@ -0,0 +1,98 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRuleCollection = FirewallPolicyFilterRuleCollection{} + +type FirewallPolicyFilterRuleCollection struct { + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + Rules *[]FirewallPolicyRule `json:"rules,omitempty"` + + // Fields inherited from FirewallPolicyRuleCollection + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyFilterRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } +} + +var _ json.Marshaler = FirewallPolicyFilterRuleCollection{} + +func (s FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { + type wrapper FirewallPolicyFilterRuleCollection + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + decoded["ruleCollectionType"] = "FirewallPolicyFilterRuleCollection" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling FirewallPolicyFilterRuleCollection: %+v", err) + } + + return encoded, nil +} + +var _ json.Unmarshaler = &FirewallPolicyFilterRuleCollection{} + +func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Action = decoded.Action + s.Name = decoded.Name + s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["rules"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling Rules into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRule, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyFilterRuleCollection': %+v", i, err) + } + output = append(output, impl) + } + s.Rules = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollectionaction.go new file mode 100644 index 000000000000..fdd82344dc17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyfilterrulecollectionaction.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyFilterRuleCollectionAction struct { + Type *FirewallPolicyFilterRuleCollectionActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyhttpheadertoinsert.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyhttpheadertoinsert.go new file mode 100644 index 000000000000..27586a9bc9d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyhttpheadertoinsert.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyHTTPHeaderToInsert struct { + HeaderName *string `json:"headerName,omitempty"` + HeaderValue *string `json:"headerValue,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyinsights.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyinsights.go new file mode 100644 index 000000000000..5af7b2e446d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyinsights.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyInsights struct { + IsEnabled *bool `json:"isEnabled,omitempty"` + LogAnalyticsResources *FirewallPolicyLogAnalyticsResources `json:"logAnalyticsResources,omitempty"` + RetentionDays *int64 `json:"retentionDays,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetection.go new file mode 100644 index 000000000000..f51c93257c54 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetection.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIntrusionDetection struct { + Configuration *FirewallPolicyIntrusionDetectionConfiguration `json:"configuration,omitempty"` + Mode *FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"` + Profile *FirewallPolicyIntrusionDetectionProfileType `json:"profile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionbypasstrafficspecifications.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionbypasstrafficspecifications.go new file mode 100644 index 000000000000..088a6c5515fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionbypasstrafficspecifications.go @@ -0,0 +1,15 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIntrusionDetectionBypassTrafficSpecifications struct { + Description *string `json:"description,omitempty"` + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *FirewallPolicyIntrusionDetectionProtocol `json:"protocol,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionconfiguration.go new file mode 100644 index 000000000000..dce919867c04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionconfiguration.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIntrusionDetectionConfiguration struct { + BypassTrafficSettings *[]FirewallPolicyIntrusionDetectionBypassTrafficSpecifications `json:"bypassTrafficSettings,omitempty"` + PrivateRanges *[]string `json:"privateRanges,omitempty"` + SignatureOverrides *[]FirewallPolicyIntrusionDetectionSignatureSpecification `json:"signatureOverrides,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionsignaturespecification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionsignaturespecification.go new file mode 100644 index 000000000000..2bae7fe0f047 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyintrusiondetectionsignaturespecification.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyIntrusionDetectionSignatureSpecification struct { + Id *string `json:"id,omitempty"` + Mode *FirewallPolicyIntrusionDetectionStateType `json:"mode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsresources.go new file mode 100644 index 000000000000..4f1280d942bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsresources.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyLogAnalyticsResources struct { + DefaultWorkspaceId *SubResource `json:"defaultWorkspaceId,omitempty"` + Workspaces *[]FirewallPolicyLogAnalyticsWorkspace `json:"workspaces,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsworkspace.go new file mode 100644 index 000000000000..4cc72aa7cbbb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyloganalyticsworkspace.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyLogAnalyticsWorkspace struct { + Region *string `json:"region,omitempty"` + WorkspaceId *SubResource `json:"workspaceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollection.go new file mode 100644 index 000000000000..8bb8e5f0f6a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollection.go @@ -0,0 +1,98 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRuleCollection = FirewallPolicyNatRuleCollection{} + +type FirewallPolicyNatRuleCollection struct { + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + Rules *[]FirewallPolicyRule `json:"rules,omitempty"` + + // Fields inherited from FirewallPolicyRuleCollection + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyNatRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } +} + +var _ json.Marshaler = FirewallPolicyNatRuleCollection{} + +func (s FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { + type wrapper FirewallPolicyNatRuleCollection + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + decoded["ruleCollectionType"] = "FirewallPolicyNatRuleCollection" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling FirewallPolicyNatRuleCollection: %+v", err) + } + + return encoded, nil +} + +var _ json.Unmarshaler = &FirewallPolicyNatRuleCollection{} + +func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Action = decoded.Action + s.Name = decoded.Name + s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["rules"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling Rules into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRule, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyNatRuleCollection': %+v", i, err) + } + output = append(output, impl) + } + s.Rules = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollectionaction.go new file mode 100644 index 000000000000..4b895cf6198a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicynatrulecollectionaction.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyNatRuleCollectionAction struct { + Type *FirewallPolicyNatRuleCollectionActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicypropertiesformat.go new file mode 100644 index 000000000000..b439737323d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicypropertiesformat.go @@ -0,0 +1,23 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyPropertiesFormat struct { + BasePolicy *SubResource `json:"basePolicy,omitempty"` + ChildPolicies *[]SubResource `json:"childPolicies,omitempty"` + DnsSettings *DnsSettings `json:"dnsSettings,omitempty"` + ExplicitProxy *ExplicitProxy `json:"explicitProxy,omitempty"` + Firewalls *[]SubResource `json:"firewalls,omitempty"` + Insights *FirewallPolicyInsights `json:"insights,omitempty"` + IntrusionDetection *FirewallPolicyIntrusionDetection `json:"intrusionDetection,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleCollectionGroups *[]SubResource `json:"ruleCollectionGroups,omitempty"` + Size *string `json:"size,omitempty"` + Sku *FirewallPolicySku `json:"sku,omitempty"` + Snat *FirewallPolicySNAT `json:"snat,omitempty"` + Sql *FirewallPolicySQL `json:"sql,omitempty"` + ThreatIntelMode *AzureFirewallThreatIntelMode `json:"threatIntelMode,omitempty"` + ThreatIntelWhitelist *FirewallPolicyThreatIntelWhitelist `json:"threatIntelWhitelist,omitempty"` + TransportSecurity *FirewallPolicyTransportSecurity `json:"transportSecurity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrule.go new file mode 100644 index 000000000000..08c058378ae5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrule.go @@ -0,0 +1,93 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRule interface { + FirewallPolicyRule() BaseFirewallPolicyRuleImpl +} + +var _ FirewallPolicyRule = BaseFirewallPolicyRuleImpl{} + +type BaseFirewallPolicyRuleImpl struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s BaseFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s +} + +var _ FirewallPolicyRule = RawFirewallPolicyRuleImpl{} + +// RawFirewallPolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawFirewallPolicyRuleImpl struct { + firewallPolicyRule BaseFirewallPolicyRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s.firewallPolicyRule +} + +func UnmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyRule into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["ruleType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "ApplicationRule") { + var out ApplicationRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into ApplicationRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "NatRule") { + var out NatRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into NatRule: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "NetworkRule") { + var out NetworkRule + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into NetworkRule: %+v", err) + } + return out, nil + } + + var parent BaseFirewallPolicyRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleImpl: %+v", err) + } + + return RawFirewallPolicyRuleImpl{ + firewallPolicyRule: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyruleapplicationprotocol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyruleapplicationprotocol.go new file mode 100644 index 000000000000..4c9fdab828c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyruleapplicationprotocol.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleApplicationProtocol struct { + Port *int64 `json:"port,omitempty"` + ProtocolType *FirewallPolicyRuleApplicationProtocolType `json:"protocolType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollection.go new file mode 100644 index 000000000000..8e3be4c748e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollection.go @@ -0,0 +1,85 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollection interface { + FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl +} + +var _ FirewallPolicyRuleCollection = BaseFirewallPolicyRuleCollectionImpl{} + +type BaseFirewallPolicyRuleCollectionImpl struct { + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s BaseFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s +} + +var _ FirewallPolicyRuleCollection = RawFirewallPolicyRuleCollectionImpl{} + +// RawFirewallPolicyRuleCollectionImpl is returned when the Discriminated Value doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawFirewallPolicyRuleCollectionImpl struct { + firewallPolicyRuleCollection BaseFirewallPolicyRuleCollectionImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s.firewallPolicyRuleCollection +} + +func UnmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (FirewallPolicyRuleCollection, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling FirewallPolicyRuleCollection into map[string]interface: %+v", err) + } + + var value string + if v, ok := temp["ruleCollectionType"]; ok { + value = fmt.Sprintf("%v", v) + } + + if strings.EqualFold(value, "FirewallPolicyFilterRuleCollection") { + var out FirewallPolicyFilterRuleCollection + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into FirewallPolicyFilterRuleCollection: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "FirewallPolicyNatRuleCollection") { + var out FirewallPolicyNatRuleCollection + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into FirewallPolicyNatRuleCollection: %+v", err) + } + return out, nil + } + + var parent BaseFirewallPolicyRuleCollectionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleCollectionImpl: %+v", err) + } + + return RawFirewallPolicyRuleCollectionImpl{ + firewallPolicyRuleCollection: parent, + Type: value, + Values: temp, + }, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraft.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraft.go new file mode 100644 index 000000000000..638137d0747c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraft.go @@ -0,0 +1,11 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraft struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FirewallPolicyRuleCollectionGroupDraftProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go new file mode 100644 index 000000000000..a25c504563ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go @@ -0,0 +1,54 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyRuleCollectionGroupDraftProperties struct { + Priority *int64 `json:"priority,omitempty"` + RuleCollections *[]FirewallPolicyRuleCollection `json:"ruleCollections,omitempty"` + Size *string `json:"size,omitempty"` +} + +var _ json.Unmarshaler = &FirewallPolicyRuleCollectionGroupDraftProperties{} + +func (s *FirewallPolicyRuleCollectionGroupDraftProperties) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Priority *int64 `json:"priority,omitempty"` + Size *string `json:"size,omitempty"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Priority = decoded.Priority + s.Size = decoded.Size + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling FirewallPolicyRuleCollectionGroupDraftProperties into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["ruleCollections"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling RuleCollections into list []json.RawMessage: %+v", err) + } + + output := make([]FirewallPolicyRuleCollection, 0) + for i, val := range listTemp { + impl, err := UnmarshalFirewallPolicyRuleCollectionImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'RuleCollections' for 'FirewallPolicyRuleCollectionGroupDraftProperties': %+v", i, err) + } + output = append(output, impl) + } + s.RuleCollections = &output + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysku.go new file mode 100644 index 000000000000..6c0cef082607 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysku.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicySku struct { + Tier *FirewallPolicySkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysnat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysnat.go new file mode 100644 index 000000000000..33dcf12744e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysnat.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicySNAT struct { + AutoLearnPrivateRanges *AutoLearnPrivateRangesMode `json:"autoLearnPrivateRanges,omitempty"` + PrivateRanges *[]string `json:"privateRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysql.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysql.go new file mode 100644 index 000000000000..32e50565577b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicysql.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicySQL struct { + AllowSqlRedirect *bool `json:"allowSqlRedirect,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicythreatintelwhitelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicythreatintelwhitelist.go new file mode 100644 index 000000000000..376fba1c2689 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicythreatintelwhitelist.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyThreatIntelWhitelist struct { + Fqdns *[]string `json:"fqdns,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicytransportsecurity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicytransportsecurity.go new file mode 100644 index 000000000000..9fdbf9b48772 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_firewallpolicytransportsecurity.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyTransportSecurity struct { + CertificateAuthority *FirewallPolicyCertificateAuthority `json:"certificateAuthority,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_idpsqueryobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_idpsqueryobject.go new file mode 100644 index 000000000000..3a1aca509b6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_idpsqueryobject.go @@ -0,0 +1,12 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IDPSQueryObject struct { + Filters *[]FilterItems `json:"filters,omitempty"` + OrderBy *OrderBy `json:"orderBy,omitempty"` + ResultsPerPage *int64 `json:"resultsPerPage,omitempty"` + Search *string `json:"search,omitempty"` + Skip *int64 `json:"skip,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_natrule.go new file mode 100644 index 000000000000..29ada8c31d1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_natrule.go @@ -0,0 +1,61 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = NatRule{} + +type NatRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + TranslatedAddress *string `json:"translatedAddress,omitempty"` + TranslatedFqdn *string `json:"translatedFqdn,omitempty"` + TranslatedPort *string `json:"translatedPort,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NatRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = NatRule{} + +func (s NatRule) MarshalJSON() ([]byte, error) { + type wrapper NatRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling NatRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling NatRule: %+v", err) + } + + decoded["ruleType"] = "NatRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling NatRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_networkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_networkrule.go new file mode 100644 index 000000000000..aa890c1a8bb9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_networkrule.go @@ -0,0 +1,60 @@ +package firewallpolicies + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ FirewallPolicyRule = NetworkRule{} + +type NetworkRule struct { + DestinationAddresses *[]string `json:"destinationAddresses,omitempty"` + DestinationFqdns *[]string `json:"destinationFqdns,omitempty"` + DestinationIPGroups *[]string `json:"destinationIpGroups,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + IPProtocols *[]FirewallPolicyRuleNetworkProtocol `json:"ipProtocols,omitempty"` + SourceAddresses *[]string `json:"sourceAddresses,omitempty"` + SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` + + // Fields inherited from FirewallPolicyRule + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NetworkRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } +} + +var _ json.Marshaler = NetworkRule{} + +func (s NetworkRule) MarshalJSON() ([]byte, error) { + type wrapper NetworkRule + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling NetworkRule: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling NetworkRule: %+v", err) + } + + decoded["ruleType"] = "NetworkRule" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling NetworkRule: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_orderby.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_orderby.go new file mode 100644 index 000000000000..db1d05e44782 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_orderby.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OrderBy struct { + Field *string `json:"field,omitempty"` + Order *FirewallPolicyIDPSQuerySortOrder `json:"order,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_queryresults.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_queryresults.go new file mode 100644 index 000000000000..4c0591a2f83c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_queryresults.go @@ -0,0 +1,9 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type QueryResults struct { + MatchingRecordsCount *int64 `json:"matchingRecordsCount,omitempty"` + Signatures *[]SingleQueryResult `json:"signatures,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesquery.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesquery.go new file mode 100644 index 000000000000..718d141e3c02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesquery.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignatureOverridesFilterValuesQuery struct { + FilterName *string `json:"filterName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesresponse.go new file mode 100644 index 000000000000..4b135d882ba2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signatureoverridesfiltervaluesresponse.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignatureOverridesFilterValuesResponse struct { + FilterValues *[]string `json:"filterValues,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrides.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrides.go new file mode 100644 index 000000000000..2f1b84510c9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrides.go @@ -0,0 +1,11 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignaturesOverrides struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SignaturesOverridesProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrideslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrideslist.go new file mode 100644 index 000000000000..d403a4eb5902 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverrideslist.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignaturesOverridesList struct { + Value *[]SignaturesOverrides `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverridesproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverridesproperties.go new file mode 100644 index 000000000000..a93d8699c02a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_signaturesoverridesproperties.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SignaturesOverridesProperties struct { + Signatures *map[string]string `json:"signatures,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_singlequeryresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_singlequeryresult.go new file mode 100644 index 000000000000..cbf78585e564 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_singlequeryresult.go @@ -0,0 +1,18 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SingleQueryResult struct { + Description *string `json:"description,omitempty"` + DestinationPorts *[]string `json:"destinationPorts,omitempty"` + Direction *FirewallPolicyIDPSSignatureDirection `json:"direction,omitempty"` + Group *string `json:"group,omitempty"` + InheritedFromParentPolicy *bool `json:"inheritedFromParentPolicy,omitempty"` + LastUpdated *string `json:"lastUpdated,omitempty"` + Mode *FirewallPolicyIDPSSignatureMode `json:"mode,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Severity *FirewallPolicyIDPSSignatureSeverity `json:"severity,omitempty"` + SignatureId *int64 `json:"signatureId,omitempty"` + SourcePorts *[]string `json:"sourcePorts,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_subresource.go new file mode 100644 index 000000000000..abee9f81d035 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_subresource.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_tagsobject.go new file mode 100644 index 000000000000..22cc23110bee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/model_tagsobject.go @@ -0,0 +1,8 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/predicates.go new file mode 100644 index 000000000000..2640042ba7a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/predicates.go @@ -0,0 +1,37 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FirewallPolicyOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p FirewallPolicyOperationPredicate) Matches(input FirewallPolicy) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/version.go new file mode 100644 index 000000000000..a981fa9889ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies/version.go @@ -0,0 +1,10 @@ +package firewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/firewallpolicies/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/README.md new file mode 100644 index 000000000000..bdfaa7e0fef0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups` Documentation + +The `firewallpolicyrulecollectiongroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups" +``` + + +### Client Initialization + +```go +client := firewallpolicyrulecollectiongroups.NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +payload := firewallpolicyrulecollectiongroups.FirewallPolicyRuleCollectionGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.Delete` + +```go +ctx := context.TODO() +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.Get` + +```go +ctx := context.TODO() +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FirewallPolicyRuleCollectionGroupsClient.List` + +```go +ctx := context.TODO() +id := firewallpolicyrulecollectiongroups.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_applicationrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_applicationrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollectionaction.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyhttpheadertoinsert.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollectionaction.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyruleapplicationprotocol.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_natrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_natrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_networkrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/model_networkrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/version.go new file mode 100644 index 000000000000..0a738d9bd069 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups/version.go @@ -0,0 +1,10 @@ +package firewallpolicyrulecollectiongroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/firewallpolicyrulecollectiongroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/README.md new file mode 100644 index 000000000000..27db5be2d0c4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/README.md @@ -0,0 +1,103 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs` Documentation + +The `flowlogs` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs" +``` + + +### Client Initialization + +```go +client := flowlogs.NewFlowLogsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `FlowLogsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") + +payload := flowlogs.FlowLog{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `FlowLogsClient.Delete` + +```go +ctx := context.TODO() +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `FlowLogsClient.Get` + +```go +ctx := context.TODO() +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `FlowLogsClient.List` + +```go +ctx := context.TODO() +id := flowlogs.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `FlowLogsClient.UpdateTags` + +```go +ctx := context.TODO() +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") + +payload := flowlogs.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_flowlog.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_flowlog.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_networkwatcher.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/id_networkwatcher.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlog.go new file mode 100644 index 000000000000..b379e613ed9d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlog.go @@ -0,0 +1,19 @@ +package flowlogs + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..7ef17d630e6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/version.go new file mode 100644 index 000000000000..a6794f8d3689 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs/version.go @@ -0,0 +1,10 @@ +package flowlogs + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/flowlogs/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/README.md new file mode 100644 index 000000000000..c38446a5d18c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations` Documentation + +The `ipallocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations" +``` + + +### Client Initialization + +```go +client := ipallocations.NewIPAllocationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `IPAllocationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") + +payload := ipallocations.IPAllocation{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `IPAllocationsClient.Delete` + +```go +ctx := context.TODO() +id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `IPAllocationsClient.Get` + +```go +ctx := context.TODO() +id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") + +read, err := client.Get(ctx, id, ipallocations.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `IPAllocationsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `IPAllocationsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `IPAllocationsClient.UpdateTags` + +```go +ctx := context.TODO() +id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") + +payload := ipallocations.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/id_ipallocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/id_ipallocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/id_ipallocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/id_ipallocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_ipallocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_ipallocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_ipallocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_ipallocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_ipallocationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_ipallocationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_ipallocationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_ipallocationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/version.go new file mode 100644 index 000000000000..755338a4bc52 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations/version.go @@ -0,0 +1,10 @@ +package ipallocations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/ipallocations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/README.md new file mode 100644 index 000000000000..4cebe929e9a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups` Documentation + +The `ipgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups" +``` + + +### Client Initialization + +```go +client := ipgroups.NewIPGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `IPGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") + +payload := ipgroups.IPGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `IPGroupsClient.Delete` + +```go +ctx := context.TODO() +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `IPGroupsClient.Get` + +```go +ctx := context.TODO() +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") + +read, err := client.Get(ctx, id, ipgroups.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `IPGroupsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `IPGroupsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `IPGroupsClient.UpdateGroups` + +```go +ctx := context.TODO() +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupName") + +payload := ipgroups.TagsObject{ + // ... +} + + +read, err := client.UpdateGroups(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/id_ipgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/id_ipgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_updategroups.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/method_updategroups.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_ipgrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_ipgrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/version.go new file mode 100644 index 000000000000..b3059674ddc5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups/version.go @@ -0,0 +1,10 @@ +package ipgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/ipgroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/README.md new file mode 100644 index 000000000000..0fb85c891a53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/README.md @@ -0,0 +1,449 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers` Documentation + +The `loadbalancers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers" +``` + + +### Client Initialization + +```go +client := loadbalancers.NewLoadBalancersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LoadBalancersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +payload := loadbalancers.LoadBalancer{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `LoadBalancersClient.Delete` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `LoadBalancersClient.Get` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +read, err := client.Get(ctx, id, loadbalancers.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoadBalancersClient.InboundNatRulesCreateOrUpdate` + +```go +ctx := context.TODO() +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") + +payload := loadbalancers.InboundNatRule{ + // ... +} + + +if err := client.InboundNatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `LoadBalancersClient.InboundNatRulesDelete` + +```go +ctx := context.TODO() +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") + +if err := client.InboundNatRulesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `LoadBalancersClient.InboundNatRulesGet` + +```go +ctx := context.TODO() +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") + +read, err := client.InboundNatRulesGet(ctx, id, loadbalancers.DefaultInboundNatRulesGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoadBalancersClient.InboundNatRulesList` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +// alternatively `client.InboundNatRulesList(ctx, id)` can be used to do batched pagination +items, err := client.InboundNatRulesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.ListInboundNatRulePortMappings` + +```go +ctx := context.TODO() +id := loadbalancers.NewBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "loadBalancerName", "backendAddressPoolName") + +payload := loadbalancers.QueryInboundNatRulePortMappingRequest{ + // ... +} + + +if err := client.ListInboundNatRulePortMappingsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerBackendAddressPoolsCreateOrUpdate` + +```go +ctx := context.TODO() +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") + +payload := loadbalancers.BackendAddressPool{ + // ... +} + + +if err := client.LoadBalancerBackendAddressPoolsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerBackendAddressPoolsDelete` + +```go +ctx := context.TODO() +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") + +if err := client.LoadBalancerBackendAddressPoolsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerBackendAddressPoolsGet` + +```go +ctx := context.TODO() +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") + +read, err := client.LoadBalancerBackendAddressPoolsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerBackendAddressPoolsList` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +// alternatively `client.LoadBalancerBackendAddressPoolsList(ctx, id)` can be used to do batched pagination +items, err := client.LoadBalancerBackendAddressPoolsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerFrontendIPConfigurationsGet` + +```go +ctx := context.TODO() +id := loadbalancers.NewFrontendIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "frontendIPConfigurationName") + +read, err := client.LoadBalancerFrontendIPConfigurationsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerFrontendIPConfigurationsList` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +// alternatively `client.LoadBalancerFrontendIPConfigurationsList(ctx, id)` can be used to do batched pagination +items, err := client.LoadBalancerFrontendIPConfigurationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerLoadBalancingRulesGet` + +```go +ctx := context.TODO() +id := loadbalancers.NewLoadBalancingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "loadBalancingRuleName") + +read, err := client.LoadBalancerLoadBalancingRulesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerLoadBalancingRulesList` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +// alternatively `client.LoadBalancerLoadBalancingRulesList(ctx, id)` can be used to do batched pagination +items, err := client.LoadBalancerLoadBalancingRulesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerNetworkInterfacesList` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +// alternatively `client.LoadBalancerNetworkInterfacesList(ctx, id)` can be used to do batched pagination +items, err := client.LoadBalancerNetworkInterfacesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerOutboundRulesGet` + +```go +ctx := context.TODO() +id := loadbalancers.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "outboundRuleName") + +read, err := client.LoadBalancerOutboundRulesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerOutboundRulesList` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +// alternatively `client.LoadBalancerOutboundRulesList(ctx, id)` can be used to do batched pagination +items, err := client.LoadBalancerOutboundRulesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerProbesGet` + +```go +ctx := context.TODO() +id := loadbalancers.NewProbeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "probeName") + +read, err := client.LoadBalancerProbesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoadBalancersClient.LoadBalancerProbesList` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +// alternatively `client.LoadBalancerProbesList(ctx, id)` can be used to do batched pagination +items, err := client.LoadBalancerProbesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LoadBalancersClient.MigrateToIPBased` + +```go +ctx := context.TODO() +id := loadbalancers.NewLoadBalancerID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "loadBalancerName") + +payload := loadbalancers.MigrateLoadBalancerToIPBasedRequest{ + // ... +} + + +read, err := client.MigrateToIPBased(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LoadBalancersClient.SwapPublicIPAddresses` + +```go +ctx := context.TODO() +id := loadbalancers.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +payload := loadbalancers.LoadBalancerVipSwapRequest{ + // ... +} + + +if err := client.SwapPublicIPAddressesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `LoadBalancersClient.UpdateTags` + +```go +ctx := context.TODO() +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") + +payload := loadbalancers.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/constants.go new file mode 100644 index 000000000000..de5c92d87bbd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/constants.go @@ -0,0 +1,1456 @@ +package loadbalancers + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type LoadBalancerOutboundRuleProtocol string + +const ( + LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All" + LoadBalancerOutboundRuleProtocolTcp LoadBalancerOutboundRuleProtocol = "Tcp" + LoadBalancerOutboundRuleProtocolUdp LoadBalancerOutboundRuleProtocol = "Udp" +) + +func PossibleValuesForLoadBalancerOutboundRuleProtocol() []string { + return []string{ + string(LoadBalancerOutboundRuleProtocolAll), + string(LoadBalancerOutboundRuleProtocolTcp), + string(LoadBalancerOutboundRuleProtocolUdp), + } +} + +func (s *LoadBalancerOutboundRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerOutboundRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerOutboundRuleProtocol(input string) (*LoadBalancerOutboundRuleProtocol, error) { + vals := map[string]LoadBalancerOutboundRuleProtocol{ + "all": LoadBalancerOutboundRuleProtocolAll, + "tcp": LoadBalancerOutboundRuleProtocolTcp, + "udp": LoadBalancerOutboundRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerOutboundRuleProtocol(input) + return &out, nil +} + +type LoadBalancerSkuName string + +const ( + LoadBalancerSkuNameBasic LoadBalancerSkuName = "Basic" + LoadBalancerSkuNameGateway LoadBalancerSkuName = "Gateway" + LoadBalancerSkuNameStandard LoadBalancerSkuName = "Standard" +) + +func PossibleValuesForLoadBalancerSkuName() []string { + return []string{ + string(LoadBalancerSkuNameBasic), + string(LoadBalancerSkuNameGateway), + string(LoadBalancerSkuNameStandard), + } +} + +func (s *LoadBalancerSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerSkuName(input string) (*LoadBalancerSkuName, error) { + vals := map[string]LoadBalancerSkuName{ + "basic": LoadBalancerSkuNameBasic, + "gateway": LoadBalancerSkuNameGateway, + "standard": LoadBalancerSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerSkuName(input) + return &out, nil +} + +type LoadBalancerSkuTier string + +const ( + LoadBalancerSkuTierGlobal LoadBalancerSkuTier = "Global" + LoadBalancerSkuTierRegional LoadBalancerSkuTier = "Regional" +) + +func PossibleValuesForLoadBalancerSkuTier() []string { + return []string{ + string(LoadBalancerSkuTierGlobal), + string(LoadBalancerSkuTierRegional), + } +} + +func (s *LoadBalancerSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerSkuTier(input string) (*LoadBalancerSkuTier, error) { + vals := map[string]LoadBalancerSkuTier{ + "global": LoadBalancerSkuTierGlobal, + "regional": LoadBalancerSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerSkuTier(input) + return &out, nil +} + +type LoadDistribution string + +const ( + LoadDistributionDefault LoadDistribution = "Default" + LoadDistributionSourceIP LoadDistribution = "SourceIP" + LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol" +) + +func PossibleValuesForLoadDistribution() []string { + return []string{ + string(LoadDistributionDefault), + string(LoadDistributionSourceIP), + string(LoadDistributionSourceIPProtocol), + } +} + +func (s *LoadDistribution) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadDistribution(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadDistribution(input string) (*LoadDistribution, error) { + vals := map[string]LoadDistribution{ + "default": LoadDistributionDefault, + "sourceip": LoadDistributionSourceIP, + "sourceipprotocol": LoadDistributionSourceIPProtocol, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadDistribution(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProbeNoHealthyBackendsBehavior string + +const ( + ProbeNoHealthyBackendsBehaviorAllProbedDown ProbeNoHealthyBackendsBehavior = "AllProbedDown" + ProbeNoHealthyBackendsBehaviorAllProbedUp ProbeNoHealthyBackendsBehavior = "AllProbedUp" +) + +func PossibleValuesForProbeNoHealthyBackendsBehavior() []string { + return []string{ + string(ProbeNoHealthyBackendsBehaviorAllProbedDown), + string(ProbeNoHealthyBackendsBehaviorAllProbedUp), + } +} + +func (s *ProbeNoHealthyBackendsBehavior) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProbeNoHealthyBackendsBehavior(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProbeNoHealthyBackendsBehavior(input string) (*ProbeNoHealthyBackendsBehavior, error) { + vals := map[string]ProbeNoHealthyBackendsBehavior{ + "allprobeddown": ProbeNoHealthyBackendsBehaviorAllProbedDown, + "allprobedup": ProbeNoHealthyBackendsBehaviorAllProbedUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProbeNoHealthyBackendsBehavior(input) + return &out, nil +} + +type ProbeProtocol string + +const ( + ProbeProtocolHTTP ProbeProtocol = "Http" + ProbeProtocolHTTPS ProbeProtocol = "Https" + ProbeProtocolTcp ProbeProtocol = "Tcp" +) + +func PossibleValuesForProbeProtocol() []string { + return []string{ + string(ProbeProtocolHTTP), + string(ProbeProtocolHTTPS), + string(ProbeProtocolTcp), + } +} + +func (s *ProbeProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProbeProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProbeProtocol(input string) (*ProbeProtocol, error) { + vals := map[string]ProbeProtocol{ + "http": ProbeProtocolHTTP, + "https": ProbeProtocolHTTPS, + "tcp": ProbeProtocolTcp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProbeProtocol(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancer.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancer.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancer.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancerbackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancerbackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancerbackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancerbackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancingrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancingrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_loadbalancingrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_outboundrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_outboundrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_outboundrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_probe.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_probe.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_probe.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_providerloadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_providerloadbalancer.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_providerloadbalancer.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/id_providerloadbalancer.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulescreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulescreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulescreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_inboundnatruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_listinboundnatruleportmappings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_listinboundnatruleportmappings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_listinboundnatruleportmappings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_listinboundnatruleportmappings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerbackendaddresspoolslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerfrontendipconfigurationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerloadbalancingruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancernetworkinterfaceslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalanceroutboundrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalanceroutboundrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalanceroutboundruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalanceroutboundruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerprobesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerprobesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerprobeslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobeslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_loadbalancerprobeslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_migratetoipbased.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_migratetoipbased.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_migratetoipbased.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_migratetoipbased.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_swappublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_swappublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_swappublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_swappublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddressinboundnatruleportmappings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddressinboundnatruleportmappings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddressinboundnatruleportmappings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddressinboundnatruleportmappings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlog.go new file mode 100644 index 000000000000..dff0db44f477 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlog.go @@ -0,0 +1,19 @@ +package loadbalancers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..93c3d7251164 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package loadbalancers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatpool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatpool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatpool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatpoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatpoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatpoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatpoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancer.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancer.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancer.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancerpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancerpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancersku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancersku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancersku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancersku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancervipswaprequestfrontendipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancingrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancingrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancingrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancingrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_loadbalancingrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_loadbalancingrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_migratedpools.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_migratedpools.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_migratedpools.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_migratedpools.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_migrateloadbalancertoipbasedrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_migrateloadbalancertoipbasedrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_migrateloadbalancertoipbasedrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_migrateloadbalancertoipbasedrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_outboundrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_outboundrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_outboundrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_outboundrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_outboundrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_outboundrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_outboundrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..177e188eb3e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package loadbalancers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probe.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_probe.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probe.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probepropertiesformat.go new file mode 100644 index 000000000000..1ff1fd360c05 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_probepropertiesformat.go @@ -0,0 +1,16 @@ +package loadbalancers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProbePropertiesFormat struct { + IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + NoHealthyBackendsBehavior *ProbeNoHealthyBackendsBehavior `json:"noHealthyBackendsBehavior,omitempty"` + NumberOfProbes *int64 `json:"numberOfProbes,omitempty"` + Port int64 `json:"port"` + ProbeThreshold *int64 `json:"probeThreshold,omitempty"` + Protocol ProbeProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestPath *string `json:"requestPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_queryinboundnatruleportmappingrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_queryinboundnatruleportmappingrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_queryinboundnatruleportmappingrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_queryinboundnatruleportmappingrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..f6f73f34673c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package loadbalancers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/version.go new file mode 100644 index 000000000000..ca9f366f656b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers/version.go @@ -0,0 +1,10 @@ +package loadbalancers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/loadbalancers/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/README.md new file mode 100644 index 000000000000..49823e2fe310 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/README.md @@ -0,0 +1,104 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways` Documentation + +The `localnetworkgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways" +``` + + +### Client Initialization + +```go +client := localnetworkgateways.NewLocalNetworkGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `LocalNetworkGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") + +payload := localnetworkgateways.LocalNetworkGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `LocalNetworkGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `LocalNetworkGatewaysClient.Get` + +```go +ctx := context.TODO() +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `LocalNetworkGatewaysClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `LocalNetworkGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") + +payload := localnetworkgateways.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/client.go new file mode 100644 index 000000000000..c821de0dcf3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/client.go @@ -0,0 +1,26 @@ +package localnetworkgateways + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGatewaysClient struct { + Client *resourcemanager.Client +} + +func NewLocalNetworkGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalNetworkGatewaysClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "localnetworkgateways", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating LocalNetworkGatewaysClient: %+v", err) + } + + return &LocalNetworkGatewaysClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/constants.go new file mode 100644 index 000000000000..f82efef3b1f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/constants.go @@ -0,0 +1,57 @@ +package localnetworkgateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/id_localnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/id_localnetworkgateway.go new file mode 100644 index 000000000000..1b8d0c5ae7aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/id_localnetworkgateway.go @@ -0,0 +1,130 @@ +package localnetworkgateways + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocalNetworkGatewayId{}) +} + +var _ resourceids.ResourceId = &LocalNetworkGatewayId{} + +// LocalNetworkGatewayId is a struct representing the Resource ID for a Local Network Gateway +type LocalNetworkGatewayId struct { + SubscriptionId string + ResourceGroupName string + LocalNetworkGatewayName string +} + +// NewLocalNetworkGatewayID returns a new LocalNetworkGatewayId struct +func NewLocalNetworkGatewayID(subscriptionId string, resourceGroupName string, localNetworkGatewayName string) LocalNetworkGatewayId { + return LocalNetworkGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + LocalNetworkGatewayName: localNetworkGatewayName, + } +} + +// ParseLocalNetworkGatewayID parses 'input' into a LocalNetworkGatewayId +func ParseLocalNetworkGatewayID(input string) (*LocalNetworkGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocalNetworkGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocalNetworkGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocalNetworkGatewayIDInsensitively parses 'input' case-insensitively into a LocalNetworkGatewayId +// note: this method should only be used for API response data and not user input +func ParseLocalNetworkGatewayIDInsensitively(input string) (*LocalNetworkGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocalNetworkGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocalNetworkGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocalNetworkGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.LocalNetworkGatewayName, ok = input.Parsed["localNetworkGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "localNetworkGatewayName", input) + } + + return nil +} + +// ValidateLocalNetworkGatewayID checks that 'input' can be parsed as a Local Network Gateway ID +func ValidateLocalNetworkGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocalNetworkGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Local Network Gateway ID +func (id LocalNetworkGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/localNetworkGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.LocalNetworkGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Local Network Gateway ID +func (id LocalNetworkGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocalNetworkGateways", "localNetworkGateways", "localNetworkGateways"), + resourceids.UserSpecifiedSegment("localNetworkGatewayName", "localNetworkGatewayName"), + } +} + +// String returns a human-readable description of this Local Network Gateway ID +func (id LocalNetworkGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Local Network Gateway Name: %q", id.LocalNetworkGatewayName), + } + return fmt.Sprintf("Local Network Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_createorupdate.go new file mode 100644 index 000000000000..1b41558abaaf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_createorupdate.go @@ -0,0 +1,75 @@ +package localnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *LocalNetworkGateway +} + +// CreateOrUpdate ... +func (c LocalNetworkGatewaysClient) CreateOrUpdate(ctx context.Context, id LocalNetworkGatewayId, input LocalNetworkGateway) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c LocalNetworkGatewaysClient) CreateOrUpdateThenPoll(ctx context.Context, id LocalNetworkGatewayId, input LocalNetworkGateway) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_delete.go new file mode 100644 index 000000000000..2b155d2b9e77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_delete.go @@ -0,0 +1,71 @@ +package localnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c LocalNetworkGatewaysClient) Delete(ctx context.Context, id LocalNetworkGatewayId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c LocalNetworkGatewaysClient) DeleteThenPoll(ctx context.Context, id LocalNetworkGatewayId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_get.go new file mode 100644 index 000000000000..678e40b00646 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_get.go @@ -0,0 +1,53 @@ +package localnetworkgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *LocalNetworkGateway +} + +// Get ... +func (c LocalNetworkGatewaysClient) Get(ctx context.Context, id LocalNetworkGatewayId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model LocalNetworkGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_list.go new file mode 100644 index 000000000000..528ccebe9557 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_list.go @@ -0,0 +1,106 @@ +package localnetworkgateways + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]LocalNetworkGateway +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []LocalNetworkGateway +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c LocalNetworkGatewaysClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/localNetworkGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]LocalNetworkGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c LocalNetworkGatewaysClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, LocalNetworkGatewayOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c LocalNetworkGatewaysClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate LocalNetworkGatewayOperationPredicate) (result ListCompleteResult, err error) { + items := make([]LocalNetworkGateway, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_updatetags.go new file mode 100644 index 000000000000..cacff76aaeba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/method_updatetags.go @@ -0,0 +1,57 @@ +package localnetworkgateways + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *LocalNetworkGateway +} + +// UpdateTags ... +func (c LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, id LocalNetworkGatewayId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model LocalNetworkGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_addressspace.go new file mode 100644 index 000000000000..232140416bfa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_addressspace.go @@ -0,0 +1,8 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_bgpsettings.go new file mode 100644 index 000000000000..9d3dfccb4b16 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_bgpsettings.go @@ -0,0 +1,11 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` + BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` + PeerWeight *int64 `json:"peerWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_ipconfigurationbgppeeringaddress.go new file mode 100644 index 000000000000..4778a80b432b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_ipconfigurationbgppeeringaddress.go @@ -0,0 +1,11 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationBgpPeeringAddress struct { + CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` + DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` + IPconfigurationId *string `json:"ipconfigurationId,omitempty"` + TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgateway.go new file mode 100644 index 000000000000..684fe705afc2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgateway.go @@ -0,0 +1,14 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties LocalNetworkGatewayPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgatewaypropertiesformat.go new file mode 100644 index 000000000000..fb7a91a8c718 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_localnetworkgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGatewayPropertiesFormat struct { + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + GatewayIPAddress *string `json:"gatewayIpAddress,omitempty"` + LocalNetworkAddressSpace *AddressSpace `json:"localNetworkAddressSpace,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_tagsobject.go new file mode 100644 index 000000000000..214a0886d9b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/model_tagsobject.go @@ -0,0 +1,8 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/predicates.go new file mode 100644 index 000000000000..d4e529f8a9c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/predicates.go @@ -0,0 +1,37 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p LocalNetworkGatewayOperationPredicate) Matches(input LocalNetworkGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/version.go new file mode 100644 index 000000000000..1df60b622e27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways/version.go @@ -0,0 +1,10 @@ +package localnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/localnetworkgateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/README.md new file mode 100644 index 000000000000..fabc87cdca76 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways` Documentation + +The `natgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways" +``` + + +### Client Initialization + +```go +client := natgateways.NewNatGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NatGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") + +payload := natgateways.NatGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NatGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NatGatewaysClient.Get` + +```go +ctx := context.TODO() +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") + +read, err := client.Get(ctx, id, natgateways.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NatGatewaysClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NatGatewaysClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NatGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") + +payload := natgateways.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/id_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/id_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/version.go new file mode 100644 index 000000000000..6c1796fb413c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways/version.go @@ -0,0 +1,10 @@ +package natgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/natgateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/README.md new file mode 100644 index 000000000000..ee63df441117 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups` Documentation + +The `networkgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups" +``` + + +### Client Initialization + +```go +client := networkgroups.NewNetworkGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") + +payload := networkgroups.NetworkGroup{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload, networkgroups.DefaultCreateOrUpdateOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkGroupsClient.Delete` + +```go +ctx := context.TODO() +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") + +if err := client.DeleteThenPoll(ctx, id, networkgroups.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkGroupsClient.Get` + +```go +ctx := context.TODO() +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkGroupsClient.List` + +```go +ctx := context.TODO() +id := networkgroups.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, networkgroups.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, networkgroups.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/constants.go new file mode 100644 index 000000000000..2418286fbc5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/constants.go @@ -0,0 +1,98 @@ +package networkgroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/model_networkgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroupproperties.go new file mode 100644 index 000000000000..e964c5275117 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/model_networkgroupproperties.go @@ -0,0 +1,11 @@ +package networkgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroupProperties struct { + Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/version.go new file mode 100644 index 000000000000..e4a848981bf7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups/version.go @@ -0,0 +1,10 @@ +package networkgroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkgroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/README.md new file mode 100644 index 000000000000..91f00dd53780 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/README.md @@ -0,0 +1,400 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces` Documentation + +The `networkinterfaces` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces" +``` + + +### Client Initialization + +```go +client := networkinterfaces.NewNetworkInterfacesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkInterfacesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +payload := networkinterfaces.NetworkInterface{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkInterfacesClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkInterfacesClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.GetCloudServiceNetworkInterface` + +```go +ctx := context.TODO() +id := networkinterfaces.NewRoleInstanceNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName") + +read, err := client.GetCloudServiceNetworkInterface(ctx, id, networkinterfaces.DefaultGetCloudServiceNetworkInterfaceOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.GetEffectiveRouteTable` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.GetEffectiveRouteTable(ctx, id)` can be used to do batched pagination +items, err := client.GetEffectiveRouteTableComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.GetVirtualMachineScaleSetIPConfiguration` + +```go +ctx := context.TODO() +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName", "ipConfigurationName") + +read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.GetVirtualMachineScaleSetNetworkInterface` + +```go +ctx := context.TODO() +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName") + +read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListCloudServiceNetworkInterfaces` + +```go +ctx := context.TODO() +id := networkinterfaces.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") + +// alternatively `client.ListCloudServiceNetworkInterfaces(ctx, id)` can be used to do batched pagination +items, err := client.ListCloudServiceNetworkInterfacesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListCloudServiceRoleInstanceNetworkInterfaces` + +```go +ctx := context.TODO() +id := networkinterfaces.NewRoleInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName") + +// alternatively `client.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, id)` can be used to do batched pagination +items, err := client.ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListEffectiveNetworkSecurityGroups` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.ListEffectiveNetworkSecurityGroups(ctx, id)` can be used to do batched pagination +items, err := client.ListEffectiveNetworkSecurityGroupsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetIPConfigurations` + +```go +ctx := context.TODO() +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName") + +// alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination +items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetNetworkInterfaces` + +```go +ctx := context.TODO() +id := networkinterfaces.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") + +// alternatively `client.ListVirtualMachineScaleSetNetworkInterfaces(ctx, id)` can be used to do batched pagination +items, err := client.ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.ListVirtualMachineScaleSetVMNetworkInterfaces` + +```go +ctx := context.TODO() +id := networkinterfaces.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName") + +// alternatively `client.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, id)` can be used to do batched pagination +items, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceIPConfigurationsGet` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "ipConfigurationName") + +read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceIPConfigurationsList` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination +items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceLoadBalancersList` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination +items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsCreateOrUpdate` + +```go +ctx := context.TODO() +id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") + +payload := networkinterfaces.NetworkInterfaceTapConfiguration{ + // ... +} + + +if err := client.NetworkInterfaceTapConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsDelete` + +```go +ctx := context.TODO() +id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") + +if err := client.NetworkInterfaceTapConfigurationsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsGet` + +```go +ctx := context.TODO() +id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") + +read, err := client.NetworkInterfaceTapConfigurationsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkInterfacesClient.NetworkInterfaceTapConfigurationsList` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +// alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination +items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkInterfacesClient.UpdateTags` + +```go +ctx := context.TODO() +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") + +payload := networkinterfaces.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/constants.go new file mode 100644 index 000000000000..cf88bae168b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/constants.go @@ -0,0 +1,1588 @@ +package networkinterfaces + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type EffectiveRouteSource string + +const ( + EffectiveRouteSourceDefault EffectiveRouteSource = "Default" + EffectiveRouteSourceUnknown EffectiveRouteSource = "Unknown" + EffectiveRouteSourceUser EffectiveRouteSource = "User" + EffectiveRouteSourceVirtualNetworkGateway EffectiveRouteSource = "VirtualNetworkGateway" +) + +func PossibleValuesForEffectiveRouteSource() []string { + return []string{ + string(EffectiveRouteSourceDefault), + string(EffectiveRouteSourceUnknown), + string(EffectiveRouteSourceUser), + string(EffectiveRouteSourceVirtualNetworkGateway), + } +} + +func (s *EffectiveRouteSource) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveRouteSource(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveRouteSource(input string) (*EffectiveRouteSource, error) { + vals := map[string]EffectiveRouteSource{ + "default": EffectiveRouteSourceDefault, + "unknown": EffectiveRouteSourceUnknown, + "user": EffectiveRouteSourceUser, + "virtualnetworkgateway": EffectiveRouteSourceVirtualNetworkGateway, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveRouteSource(input) + return &out, nil +} + +type EffectiveRouteState string + +const ( + EffectiveRouteStateActive EffectiveRouteState = "Active" + EffectiveRouteStateInvalid EffectiveRouteState = "Invalid" +) + +func PossibleValuesForEffectiveRouteState() []string { + return []string{ + string(EffectiveRouteStateActive), + string(EffectiveRouteStateInvalid), + } +} + +func (s *EffectiveRouteState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveRouteState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveRouteState(input string) (*EffectiveRouteState, error) { + vals := map[string]EffectiveRouteState{ + "active": EffectiveRouteStateActive, + "invalid": EffectiveRouteStateInvalid, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveRouteState(input) + return &out, nil +} + +type EffectiveSecurityRuleProtocol string + +const ( + EffectiveSecurityRuleProtocolAll EffectiveSecurityRuleProtocol = "All" + EffectiveSecurityRuleProtocolTcp EffectiveSecurityRuleProtocol = "Tcp" + EffectiveSecurityRuleProtocolUdp EffectiveSecurityRuleProtocol = "Udp" +) + +func PossibleValuesForEffectiveSecurityRuleProtocol() []string { + return []string{ + string(EffectiveSecurityRuleProtocolAll), + string(EffectiveSecurityRuleProtocolTcp), + string(EffectiveSecurityRuleProtocolUdp), + } +} + +func (s *EffectiveSecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveSecurityRuleProtocol(input string) (*EffectiveSecurityRuleProtocol, error) { + vals := map[string]EffectiveSecurityRuleProtocol{ + "all": EffectiveSecurityRuleProtocolAll, + "tcp": EffectiveSecurityRuleProtocolTcp, + "udp": EffectiveSecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveSecurityRuleProtocol(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type LoadBalancerOutboundRuleProtocol string + +const ( + LoadBalancerOutboundRuleProtocolAll LoadBalancerOutboundRuleProtocol = "All" + LoadBalancerOutboundRuleProtocolTcp LoadBalancerOutboundRuleProtocol = "Tcp" + LoadBalancerOutboundRuleProtocolUdp LoadBalancerOutboundRuleProtocol = "Udp" +) + +func PossibleValuesForLoadBalancerOutboundRuleProtocol() []string { + return []string{ + string(LoadBalancerOutboundRuleProtocolAll), + string(LoadBalancerOutboundRuleProtocolTcp), + string(LoadBalancerOutboundRuleProtocolUdp), + } +} + +func (s *LoadBalancerOutboundRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerOutboundRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerOutboundRuleProtocol(input string) (*LoadBalancerOutboundRuleProtocol, error) { + vals := map[string]LoadBalancerOutboundRuleProtocol{ + "all": LoadBalancerOutboundRuleProtocolAll, + "tcp": LoadBalancerOutboundRuleProtocolTcp, + "udp": LoadBalancerOutboundRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerOutboundRuleProtocol(input) + return &out, nil +} + +type LoadBalancerSkuName string + +const ( + LoadBalancerSkuNameBasic LoadBalancerSkuName = "Basic" + LoadBalancerSkuNameGateway LoadBalancerSkuName = "Gateway" + LoadBalancerSkuNameStandard LoadBalancerSkuName = "Standard" +) + +func PossibleValuesForLoadBalancerSkuName() []string { + return []string{ + string(LoadBalancerSkuNameBasic), + string(LoadBalancerSkuNameGateway), + string(LoadBalancerSkuNameStandard), + } +} + +func (s *LoadBalancerSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerSkuName(input string) (*LoadBalancerSkuName, error) { + vals := map[string]LoadBalancerSkuName{ + "basic": LoadBalancerSkuNameBasic, + "gateway": LoadBalancerSkuNameGateway, + "standard": LoadBalancerSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerSkuName(input) + return &out, nil +} + +type LoadBalancerSkuTier string + +const ( + LoadBalancerSkuTierGlobal LoadBalancerSkuTier = "Global" + LoadBalancerSkuTierRegional LoadBalancerSkuTier = "Regional" +) + +func PossibleValuesForLoadBalancerSkuTier() []string { + return []string{ + string(LoadBalancerSkuTierGlobal), + string(LoadBalancerSkuTierRegional), + } +} + +func (s *LoadBalancerSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerSkuTier(input string) (*LoadBalancerSkuTier, error) { + vals := map[string]LoadBalancerSkuTier{ + "global": LoadBalancerSkuTierGlobal, + "regional": LoadBalancerSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerSkuTier(input) + return &out, nil +} + +type LoadDistribution string + +const ( + LoadDistributionDefault LoadDistribution = "Default" + LoadDistributionSourceIP LoadDistribution = "SourceIP" + LoadDistributionSourceIPProtocol LoadDistribution = "SourceIPProtocol" +) + +func PossibleValuesForLoadDistribution() []string { + return []string{ + string(LoadDistributionDefault), + string(LoadDistributionSourceIP), + string(LoadDistributionSourceIPProtocol), + } +} + +func (s *LoadDistribution) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadDistribution(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadDistribution(input string) (*LoadDistribution, error) { + vals := map[string]LoadDistribution{ + "default": LoadDistributionDefault, + "sourceip": LoadDistributionSourceIP, + "sourceipprotocol": LoadDistributionSourceIPProtocol, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadDistribution(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProbeNoHealthyBackendsBehavior string + +const ( + ProbeNoHealthyBackendsBehaviorAllProbedDown ProbeNoHealthyBackendsBehavior = "AllProbedDown" + ProbeNoHealthyBackendsBehaviorAllProbedUp ProbeNoHealthyBackendsBehavior = "AllProbedUp" +) + +func PossibleValuesForProbeNoHealthyBackendsBehavior() []string { + return []string{ + string(ProbeNoHealthyBackendsBehaviorAllProbedDown), + string(ProbeNoHealthyBackendsBehaviorAllProbedUp), + } +} + +func (s *ProbeNoHealthyBackendsBehavior) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProbeNoHealthyBackendsBehavior(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProbeNoHealthyBackendsBehavior(input string) (*ProbeNoHealthyBackendsBehavior, error) { + vals := map[string]ProbeNoHealthyBackendsBehavior{ + "allprobeddown": ProbeNoHealthyBackendsBehaviorAllProbedDown, + "allprobedup": ProbeNoHealthyBackendsBehaviorAllProbedUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProbeNoHealthyBackendsBehavior(input) + return &out, nil +} + +type ProbeProtocol string + +const ( + ProbeProtocolHTTP ProbeProtocol = "Http" + ProbeProtocolHTTPS ProbeProtocol = "Https" + ProbeProtocolTcp ProbeProtocol = "Tcp" +) + +func PossibleValuesForProbeProtocol() []string { + return []string{ + string(ProbeProtocolHTTP), + string(ProbeProtocolHTTPS), + string(ProbeProtocolTcp), + } +} + +func (s *ProbeProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProbeProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProbeProtocol(input string) (*ProbeProtocol, error) { + vals := map[string]ProbeProtocol{ + "http": ProbeProtocolHTTP, + "https": ProbeProtocolHTTPS, + "tcp": ProbeProtocolTcp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProbeProtocol(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_providercloudservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_providercloudservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstancenetworkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_roleinstancenetworkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_tapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_tapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachine.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachine.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachinescaleset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/id_virtualmachinescaleset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getcloudservicenetworkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getcloudservicenetworkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_geteffectiveroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_geteffectiveroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_geteffectiveroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudservicenetworkinterfaces.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listcloudserviceroleinstancenetworkinterfaces.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listeffectivenetworksecuritygroups.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetnetworkinterfaces.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_listvirtualmachinescalesetvmnetworkinterfaces.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceipconfigurationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfaceloadbalancerslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_networkinterfacetapconfigurationslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecuritygroupassociation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecurityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectivenetworksecurityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectivenetworksecurityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectiveroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectiveroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_effectiveroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_effectiveroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlog.go new file mode 100644 index 000000000000..6c8ab9073ec9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlog.go @@ -0,0 +1,19 @@ +package networkinterfaces + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..d59ce6dc4b69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatpoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancer.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancer.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancer.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancerpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancerpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancersku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancersku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancersku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancersku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_loadbalancingrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_outboundrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_outboundrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..d17376760a66 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probe.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_probe.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probe.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probepropertiesformat.go new file mode 100644 index 000000000000..6c1f4d34dc82 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_probepropertiesformat.go @@ -0,0 +1,16 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProbePropertiesFormat struct { + IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + NoHealthyBackendsBehavior *ProbeNoHealthyBackendsBehavior `json:"noHealthyBackendsBehavior,omitempty"` + NumberOfProbes *int64 `json:"numberOfProbes,omitempty"` + Port int64 `json:"port"` + ProbeThreshold *int64 `json:"probeThreshold,omitempty"` + Protocol ProbeProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestPath *string `json:"requestPath,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..f7a4a8f30f47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/version.go new file mode 100644 index 000000000000..3c8f768c357e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces/version.go @@ -0,0 +1,10 @@ +package networkinterfaces + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkinterfaces/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/README.md new file mode 100644 index 000000000000..c76456311eb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/README.md @@ -0,0 +1,41 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations` Documentation + +The `networkmanageractiveconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations" +``` + + +### Client Initialization + +```go +client := networkmanageractiveconfigurations.NewNetworkManagerActiveConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagerActiveConfigurationsClient.ListActiveSecurityAdminRules` + +```go +ctx := context.TODO() +id := networkmanageractiveconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanageractiveconfigurations.ActiveConfigurationParameter{ + // ... +} + + +read, err := client.ListActiveSecurityAdminRules(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/constants.go new file mode 100644 index 000000000000..2ff4add6d9d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/constants.go @@ -0,0 +1,318 @@ +package networkmanageractiveconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressPrefixType string + +const ( + AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" + AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" +) + +func PossibleValuesForAddressPrefixType() []string { + return []string{ + string(AddressPrefixTypeIPPrefix), + string(AddressPrefixTypeServiceTag), + } +} + +func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAddressPrefixType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAddressPrefixType(input string) (*AddressPrefixType, error) { + vals := map[string]AddressPrefixType{ + "ipprefix": AddressPrefixTypeIPPrefix, + "servicetag": AddressPrefixTypeServiceTag, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AddressPrefixType(input) + return &out, nil +} + +type EffectiveAdminRuleKind string + +const ( + EffectiveAdminRuleKindCustom EffectiveAdminRuleKind = "Custom" + EffectiveAdminRuleKindDefault EffectiveAdminRuleKind = "Default" +) + +func PossibleValuesForEffectiveAdminRuleKind() []string { + return []string{ + string(EffectiveAdminRuleKindCustom), + string(EffectiveAdminRuleKindDefault), + } +} + +func (s *EffectiveAdminRuleKind) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveAdminRuleKind(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveAdminRuleKind(input string) (*EffectiveAdminRuleKind, error) { + vals := map[string]EffectiveAdminRuleKind{ + "custom": EffectiveAdminRuleKindCustom, + "default": EffectiveAdminRuleKindDefault, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveAdminRuleKind(input) + return &out, nil +} + +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SecurityConfigurationRuleAccess string + +const ( + SecurityConfigurationRuleAccessAllow SecurityConfigurationRuleAccess = "Allow" + SecurityConfigurationRuleAccessAlwaysAllow SecurityConfigurationRuleAccess = "AlwaysAllow" + SecurityConfigurationRuleAccessDeny SecurityConfigurationRuleAccess = "Deny" +) + +func PossibleValuesForSecurityConfigurationRuleAccess() []string { + return []string{ + string(SecurityConfigurationRuleAccessAllow), + string(SecurityConfigurationRuleAccessAlwaysAllow), + string(SecurityConfigurationRuleAccessDeny), + } +} + +func (s *SecurityConfigurationRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleAccess(input string) (*SecurityConfigurationRuleAccess, error) { + vals := map[string]SecurityConfigurationRuleAccess{ + "allow": SecurityConfigurationRuleAccessAllow, + "alwaysallow": SecurityConfigurationRuleAccessAlwaysAllow, + "deny": SecurityConfigurationRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleAccess(input) + return &out, nil +} + +type SecurityConfigurationRuleDirection string + +const ( + SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" + SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityConfigurationRuleDirection() []string { + return []string{ + string(SecurityConfigurationRuleDirectionInbound), + string(SecurityConfigurationRuleDirectionOutbound), + } +} + +func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleDirection(input string) (*SecurityConfigurationRuleDirection, error) { + vals := map[string]SecurityConfigurationRuleDirection{ + "inbound": SecurityConfigurationRuleDirectionInbound, + "outbound": SecurityConfigurationRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleDirection(input) + return &out, nil +} + +type SecurityConfigurationRuleProtocol string + +const ( + SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" + SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" + SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" + SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" + SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" + SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityConfigurationRuleProtocol() []string { + return []string{ + string(SecurityConfigurationRuleProtocolAh), + string(SecurityConfigurationRuleProtocolAny), + string(SecurityConfigurationRuleProtocolEsp), + string(SecurityConfigurationRuleProtocolIcmp), + string(SecurityConfigurationRuleProtocolTcp), + string(SecurityConfigurationRuleProtocolUdp), + } +} + +func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleProtocol(input string) (*SecurityConfigurationRuleProtocol, error) { + vals := map[string]SecurityConfigurationRuleProtocol{ + "ah": SecurityConfigurationRuleProtocolAh, + "any": SecurityConfigurationRuleProtocolAny, + "esp": SecurityConfigurationRuleProtocolEsp, + "icmp": SecurityConfigurationRuleProtocolIcmp, + "tcp": SecurityConfigurationRuleProtocolTcp, + "udp": SecurityConfigurationRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleProtocol(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activeconfigurationparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activeconfigurationparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activeconfigurationparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activeconfigurationparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_addressprefixitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_addressprefixitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_addressprefixitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_adminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_adminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_adminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_adminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_configurationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_configurationgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_configurationgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_configurationgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_defaultadminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkgroupproperties.go new file mode 100644 index 000000000000..0866d4d439a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkgroupproperties.go @@ -0,0 +1,11 @@ +package networkmanageractiveconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroupProperties struct { + Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/model_networkmanagersecuritygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/version.go new file mode 100644 index 000000000000..3190ba7ffec7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations/version.go @@ -0,0 +1,10 @@ +package networkmanageractiveconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanageractiveconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/README.md new file mode 100644 index 000000000000..bc9d53f34ff0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/README.md @@ -0,0 +1,41 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations` Documentation + +The `networkmanageractiveconnectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations" +``` + + +### Client Initialization + +```go +client := networkmanageractiveconnectivityconfigurations.NewNetworkManagerActiveConnectivityConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagerActiveConnectivityConfigurationsClient.ListActiveConnectivityConfigurations` + +```go +ctx := context.TODO() +id := networkmanageractiveconnectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanageractiveconnectivityconfigurations.ActiveConfigurationParameter{ + // ... +} + + +read, err := client.ListActiveConnectivityConfigurations(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/constants.go new file mode 100644 index 000000000000..642ecd4a0bd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/constants.go @@ -0,0 +1,303 @@ +package networkmanageractiveconnectivityconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityTopology string + +const ( + ConnectivityTopologyHubAndSpoke ConnectivityTopology = "HubAndSpoke" + ConnectivityTopologyMesh ConnectivityTopology = "Mesh" +) + +func PossibleValuesForConnectivityTopology() []string { + return []string{ + string(ConnectivityTopologyHubAndSpoke), + string(ConnectivityTopologyMesh), + } +} + +func (s *ConnectivityTopology) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectivityTopology(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectivityTopology(input string) (*ConnectivityTopology, error) { + vals := map[string]ConnectivityTopology{ + "hubandspoke": ConnectivityTopologyHubAndSpoke, + "mesh": ConnectivityTopologyMesh, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectivityTopology(input) + return &out, nil +} + +type DeleteExistingPeering string + +const ( + DeleteExistingPeeringFalse DeleteExistingPeering = "False" + DeleteExistingPeeringTrue DeleteExistingPeering = "True" +) + +func PossibleValuesForDeleteExistingPeering() []string { + return []string{ + string(DeleteExistingPeeringFalse), + string(DeleteExistingPeeringTrue), + } +} + +func (s *DeleteExistingPeering) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteExistingPeering(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteExistingPeering(input string) (*DeleteExistingPeering, error) { + vals := map[string]DeleteExistingPeering{ + "false": DeleteExistingPeeringFalse, + "true": DeleteExistingPeeringTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteExistingPeering(input) + return &out, nil +} + +type GroupConnectivity string + +const ( + GroupConnectivityDirectlyConnected GroupConnectivity = "DirectlyConnected" + GroupConnectivityNone GroupConnectivity = "None" +) + +func PossibleValuesForGroupConnectivity() []string { + return []string{ + string(GroupConnectivityDirectlyConnected), + string(GroupConnectivityNone), + } +} + +func (s *GroupConnectivity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupConnectivity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupConnectivity(input string) (*GroupConnectivity, error) { + vals := map[string]GroupConnectivity{ + "directlyconnected": GroupConnectivityDirectlyConnected, + "none": GroupConnectivityNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupConnectivity(input) + return &out, nil +} + +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + +type IsGlobal string + +const ( + IsGlobalFalse IsGlobal = "False" + IsGlobalTrue IsGlobal = "True" +) + +func PossibleValuesForIsGlobal() []string { + return []string{ + string(IsGlobalFalse), + string(IsGlobalTrue), + } +} + +func (s *IsGlobal) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIsGlobal(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIsGlobal(input string) (*IsGlobal, error) { + vals := map[string]IsGlobal{ + "false": IsGlobalFalse, + "true": IsGlobalTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IsGlobal(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type UseHubGateway string + +const ( + UseHubGatewayFalse UseHubGateway = "False" + UseHubGatewayTrue UseHubGateway = "True" +) + +func PossibleValuesForUseHubGateway() []string { + return []string{ + string(UseHubGatewayFalse), + string(UseHubGatewayTrue), + } +} + +func (s *UseHubGateway) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUseHubGateway(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUseHubGateway(input string) (*UseHubGateway, error) { + vals := map[string]UseHubGateway{ + "false": UseHubGatewayFalse, + "true": UseHubGatewayTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UseHubGateway(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconfigurationparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_activeconnectivityconfigurationslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_configurationgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_connectivityconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_connectivitygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_hub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_hub.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/model_hub.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_hub.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go new file mode 100644 index 000000000000..3f0564d6b8da --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/model_networkgroupproperties.go @@ -0,0 +1,11 @@ +package networkmanageractiveconnectivityconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroupProperties struct { + Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/version.go new file mode 100644 index 000000000000..677451994f25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations/version.go @@ -0,0 +1,10 @@ +package networkmanageractiveconnectivityconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanageractiveconnectivityconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/README.md new file mode 100644 index 000000000000..a62c906a66ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/README.md @@ -0,0 +1,161 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections` Documentation + +The `networkmanagerconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections" +``` + + +### Client Initialization + +```go +client := networkmanagerconnections.NewNetworkManagerConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") + +payload := networkmanagerconnections.NetworkManagerConnection{ + // ... +} + + +read, err := client.ManagementGroupNetworkManagerConnectionsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsDelete` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") + +read, err := client.ManagementGroupNetworkManagerConnectionsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsGet` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") + +read, err := client.ManagementGroupNetworkManagerConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.ManagementGroupNetworkManagerConnectionsList` + +```go +ctx := context.TODO() +id := commonids.NewManagementGroupID("groupId") + +// alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination +items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") + +payload := networkmanagerconnections.NetworkManagerConnection{ + // ... +} + + +read, err := client.SubscriptionNetworkManagerConnectionsCreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsDelete` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") + +read, err := client.SubscriptionNetworkManagerConnectionsDelete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsGet` + +```go +ctx := context.TODO() +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") + +read, err := client.SubscriptionNetworkManagerConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerConnectionsClient.SubscriptionNetworkManagerConnectionsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.SubscriptionNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination +items, err := client.SubscriptionNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultSubscriptionNetworkManagerConnectionsListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_networkmanagerconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_networkmanagerconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_providers2networkmanagerconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/id_providers2networkmanagerconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/model_networkmanagerconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/version.go new file mode 100644 index 000000000000..dcfdaddff69e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections/version.go @@ -0,0 +1,10 @@ +package networkmanagerconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanagerconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/README.md new file mode 100644 index 000000000000..d3e066c2c3cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/README.md @@ -0,0 +1,42 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration` Documentation + +The `networkmanagereffectiveconnectivityconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration" +``` + + +### Client Initialization + +```go +client := networkmanagereffectiveconnectivityconfiguration.NewNetworkManagerEffectiveConnectivityConfigurationClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagerEffectiveConnectivityConfigurationClient.ListNetworkManagerEffectiveConnectivityConfigurations` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +payload := networkmanagereffectiveconnectivityconfiguration.QueryRequestOptions{ + // ... +} + + +read, err := client.ListNetworkManagerEffectiveConnectivityConfigurations(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/constants.go new file mode 100644 index 000000000000..caa8b3c87477 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/constants.go @@ -0,0 +1,303 @@ +package networkmanagereffectiveconnectivityconfiguration + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectivityTopology string + +const ( + ConnectivityTopologyHubAndSpoke ConnectivityTopology = "HubAndSpoke" + ConnectivityTopologyMesh ConnectivityTopology = "Mesh" +) + +func PossibleValuesForConnectivityTopology() []string { + return []string{ + string(ConnectivityTopologyHubAndSpoke), + string(ConnectivityTopologyMesh), + } +} + +func (s *ConnectivityTopology) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConnectivityTopology(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConnectivityTopology(input string) (*ConnectivityTopology, error) { + vals := map[string]ConnectivityTopology{ + "hubandspoke": ConnectivityTopologyHubAndSpoke, + "mesh": ConnectivityTopologyMesh, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConnectivityTopology(input) + return &out, nil +} + +type DeleteExistingPeering string + +const ( + DeleteExistingPeeringFalse DeleteExistingPeering = "False" + DeleteExistingPeeringTrue DeleteExistingPeering = "True" +) + +func PossibleValuesForDeleteExistingPeering() []string { + return []string{ + string(DeleteExistingPeeringFalse), + string(DeleteExistingPeeringTrue), + } +} + +func (s *DeleteExistingPeering) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteExistingPeering(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteExistingPeering(input string) (*DeleteExistingPeering, error) { + vals := map[string]DeleteExistingPeering{ + "false": DeleteExistingPeeringFalse, + "true": DeleteExistingPeeringTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteExistingPeering(input) + return &out, nil +} + +type GroupConnectivity string + +const ( + GroupConnectivityDirectlyConnected GroupConnectivity = "DirectlyConnected" + GroupConnectivityNone GroupConnectivity = "None" +) + +func PossibleValuesForGroupConnectivity() []string { + return []string{ + string(GroupConnectivityDirectlyConnected), + string(GroupConnectivityNone), + } +} + +func (s *GroupConnectivity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupConnectivity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupConnectivity(input string) (*GroupConnectivity, error) { + vals := map[string]GroupConnectivity{ + "directlyconnected": GroupConnectivityDirectlyConnected, + "none": GroupConnectivityNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupConnectivity(input) + return &out, nil +} + +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + +type IsGlobal string + +const ( + IsGlobalFalse IsGlobal = "False" + IsGlobalTrue IsGlobal = "True" +) + +func PossibleValuesForIsGlobal() []string { + return []string{ + string(IsGlobalFalse), + string(IsGlobalTrue), + } +} + +func (s *IsGlobal) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIsGlobal(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIsGlobal(input string) (*IsGlobal, error) { + vals := map[string]IsGlobal{ + "false": IsGlobalFalse, + "true": IsGlobalTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IsGlobal(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type UseHubGateway string + +const ( + UseHubGatewayFalse UseHubGateway = "False" + UseHubGatewayTrue UseHubGateway = "True" +) + +func PossibleValuesForUseHubGateway() []string { + return []string{ + string(UseHubGatewayFalse), + string(UseHubGatewayTrue), + } +} + +func (s *UseHubGateway) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseUseHubGateway(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseUseHubGateway(input string) (*UseHubGateway, error) { + vals := map[string]UseHubGateway{ + "false": UseHubGatewayFalse, + "true": UseHubGatewayTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := UseHubGateway(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_configurationgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_connectivityconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_connectivitygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_effectiveconnectivityconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_hub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_hub.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_hub.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_hub.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go new file mode 100644 index 000000000000..38a863e54e16 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkgroupproperties.go @@ -0,0 +1,11 @@ +package networkmanagereffectiveconnectivityconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroupProperties struct { + Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_networkmanagereffectiveconnectivityconfigurationlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/model_queryrequestoptions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/version.go new file mode 100644 index 000000000000..b07cd1d5bca8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration/version.go @@ -0,0 +1,10 @@ +package networkmanagereffectiveconnectivityconfiguration + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanagereffectiveconnectivityconfiguration/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/README.md new file mode 100644 index 000000000000..0eb1b2c75832 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/README.md @@ -0,0 +1,42 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules` Documentation + +The `networkmanagereffectivesecurityadminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules" +``` + + +### Client Initialization + +```go +client := networkmanagereffectivesecurityadminrules.NewNetworkManagerEffectiveSecurityAdminRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagerEffectiveSecurityAdminRulesClient.ListNetworkManagerEffectiveSecurityAdminRules` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +payload := networkmanagereffectivesecurityadminrules.QueryRequestOptions{ + // ... +} + + +read, err := client.ListNetworkManagerEffectiveSecurityAdminRules(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/constants.go new file mode 100644 index 000000000000..e9b8c9e7f009 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/constants.go @@ -0,0 +1,318 @@ +package networkmanagereffectivesecurityadminrules + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressPrefixType string + +const ( + AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" + AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" +) + +func PossibleValuesForAddressPrefixType() []string { + return []string{ + string(AddressPrefixTypeIPPrefix), + string(AddressPrefixTypeServiceTag), + } +} + +func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAddressPrefixType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAddressPrefixType(input string) (*AddressPrefixType, error) { + vals := map[string]AddressPrefixType{ + "ipprefix": AddressPrefixTypeIPPrefix, + "servicetag": AddressPrefixTypeServiceTag, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AddressPrefixType(input) + return &out, nil +} + +type EffectiveAdminRuleKind string + +const ( + EffectiveAdminRuleKindCustom EffectiveAdminRuleKind = "Custom" + EffectiveAdminRuleKindDefault EffectiveAdminRuleKind = "Default" +) + +func PossibleValuesForEffectiveAdminRuleKind() []string { + return []string{ + string(EffectiveAdminRuleKindCustom), + string(EffectiveAdminRuleKindDefault), + } +} + +func (s *EffectiveAdminRuleKind) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEffectiveAdminRuleKind(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEffectiveAdminRuleKind(input string) (*EffectiveAdminRuleKind, error) { + vals := map[string]EffectiveAdminRuleKind{ + "custom": EffectiveAdminRuleKindCustom, + "default": EffectiveAdminRuleKindDefault, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EffectiveAdminRuleKind(input) + return &out, nil +} + +type GroupMemberType string + +const ( + GroupMemberTypeSubnet GroupMemberType = "Subnet" + GroupMemberTypeVirtualNetwork GroupMemberType = "VirtualNetwork" +) + +func PossibleValuesForGroupMemberType() []string { + return []string{ + string(GroupMemberTypeSubnet), + string(GroupMemberTypeVirtualNetwork), + } +} + +func (s *GroupMemberType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGroupMemberType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGroupMemberType(input string) (*GroupMemberType, error) { + vals := map[string]GroupMemberType{ + "subnet": GroupMemberTypeSubnet, + "virtualnetwork": GroupMemberTypeVirtualNetwork, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GroupMemberType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SecurityConfigurationRuleAccess string + +const ( + SecurityConfigurationRuleAccessAllow SecurityConfigurationRuleAccess = "Allow" + SecurityConfigurationRuleAccessAlwaysAllow SecurityConfigurationRuleAccess = "AlwaysAllow" + SecurityConfigurationRuleAccessDeny SecurityConfigurationRuleAccess = "Deny" +) + +func PossibleValuesForSecurityConfigurationRuleAccess() []string { + return []string{ + string(SecurityConfigurationRuleAccessAllow), + string(SecurityConfigurationRuleAccessAlwaysAllow), + string(SecurityConfigurationRuleAccessDeny), + } +} + +func (s *SecurityConfigurationRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleAccess(input string) (*SecurityConfigurationRuleAccess, error) { + vals := map[string]SecurityConfigurationRuleAccess{ + "allow": SecurityConfigurationRuleAccessAllow, + "alwaysallow": SecurityConfigurationRuleAccessAlwaysAllow, + "deny": SecurityConfigurationRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleAccess(input) + return &out, nil +} + +type SecurityConfigurationRuleDirection string + +const ( + SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" + SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityConfigurationRuleDirection() []string { + return []string{ + string(SecurityConfigurationRuleDirectionInbound), + string(SecurityConfigurationRuleDirectionOutbound), + } +} + +func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleDirection(input string) (*SecurityConfigurationRuleDirection, error) { + vals := map[string]SecurityConfigurationRuleDirection{ + "inbound": SecurityConfigurationRuleDirectionInbound, + "outbound": SecurityConfigurationRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleDirection(input) + return &out, nil +} + +type SecurityConfigurationRuleProtocol string + +const ( + SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" + SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" + SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" + SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" + SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" + SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityConfigurationRuleProtocol() []string { + return []string{ + string(SecurityConfigurationRuleProtocolAh), + string(SecurityConfigurationRuleProtocolAny), + string(SecurityConfigurationRuleProtocolEsp), + string(SecurityConfigurationRuleProtocolIcmp), + string(SecurityConfigurationRuleProtocolTcp), + string(SecurityConfigurationRuleProtocolUdp), + } +} + +func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleProtocol(input string) (*SecurityConfigurationRuleProtocol, error) { + vals := map[string]SecurityConfigurationRuleProtocol{ + "ah": SecurityConfigurationRuleProtocolAh, + "any": SecurityConfigurationRuleProtocolAny, + "esp": SecurityConfigurationRuleProtocolEsp, + "icmp": SecurityConfigurationRuleProtocolIcmp, + "tcp": SecurityConfigurationRuleProtocolTcp, + "udp": SecurityConfigurationRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleProtocol(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_addressprefixitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_adminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_configurationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_configurationgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_configurationgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_configurationgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_defaultadminpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go new file mode 100644 index 000000000000..e032fa24f5a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkgroupproperties.go @@ -0,0 +1,11 @@ +package networkmanagereffectivesecurityadminrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkGroupProperties struct { + Description *string `json:"description,omitempty"` + MemberType *GroupMemberType `json:"memberType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_networkmanagersecuritygroupitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/model_queryrequestoptions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/version.go new file mode 100644 index 000000000000..b70e1040ee04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules/version.go @@ -0,0 +1,10 @@ +package networkmanagereffectivesecurityadminrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanagereffectivesecurityadminrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/README.md new file mode 100644 index 000000000000..3d3f907a4897 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations` Documentation + +The `networkmanagerroutingconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations" +``` + + +### Client Initialization + +```go +client := networkmanagerroutingconfigurations.NewNetworkManagerRoutingConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagerRoutingConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkmanagerroutingconfigurations.NewRoutingConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName") + +payload := networkmanagerroutingconfigurations.NetworkManagerRoutingConfiguration{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerRoutingConfigurationsClient.Delete` + +```go +ctx := context.TODO() +id := networkmanagerroutingconfigurations.NewRoutingConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName") + +if err := client.DeleteThenPoll(ctx, id, networkmanagerroutingconfigurations.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkManagerRoutingConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := networkmanagerroutingconfigurations.NewRoutingConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagerRoutingConfigurationsClient.List` + +```go +ctx := context.TODO() +id := networkmanagerroutingconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, networkmanagerroutingconfigurations.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, networkmanagerroutingconfigurations.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/client.go new file mode 100644 index 000000000000..cba155b1be76 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/client.go @@ -0,0 +1,26 @@ +package networkmanagerroutingconfigurations + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingConfigurationsClient struct { + Client *resourcemanager.Client +} + +func NewNetworkManagerRoutingConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerRoutingConfigurationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networkmanagerroutingconfigurations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkManagerRoutingConfigurationsClient: %+v", err) + } + + return &NetworkManagerRoutingConfigurationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/constants.go new file mode 100644 index 000000000000..8e6da58586cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/constants.go @@ -0,0 +1,57 @@ +package networkmanagerroutingconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_networkmanager.go new file mode 100644 index 000000000000..6036bf276036 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_networkmanager.go @@ -0,0 +1,130 @@ +package networkmanagerroutingconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_routingconfiguration.go new file mode 100644 index 000000000000..a9666fb45cd0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/id_routingconfiguration.go @@ -0,0 +1,139 @@ +package networkmanagerroutingconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RoutingConfigurationId{}) +} + +var _ resourceids.ResourceId = &RoutingConfigurationId{} + +// RoutingConfigurationId is a struct representing the Resource ID for a Routing Configuration +type RoutingConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string +} + +// NewRoutingConfigurationID returns a new RoutingConfigurationId struct +func NewRoutingConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string) RoutingConfigurationId { + return RoutingConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + } +} + +// ParseRoutingConfigurationID parses 'input' into a RoutingConfigurationId +func ParseRoutingConfigurationID(input string) (*RoutingConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRoutingConfigurationIDInsensitively parses 'input' case-insensitively into a RoutingConfigurationId +// note: this method should only be used for API response data and not user input +func ParseRoutingConfigurationIDInsensitively(input string) (*RoutingConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RoutingConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + return nil +} + +// ValidateRoutingConfigurationID checks that 'input' can be parsed as a Routing Configuration ID +func ValidateRoutingConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRoutingConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Routing Configuration ID +func (id RoutingConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Routing Configuration ID +func (id RoutingConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + } +} + +// String returns a human-readable description of this Routing Configuration ID +func (id RoutingConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + } + return fmt.Sprintf("Routing Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_createorupdate.go new file mode 100644 index 000000000000..ec0b2ada3f5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_createorupdate.go @@ -0,0 +1,58 @@ +package networkmanagerroutingconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerRoutingConfiguration +} + +// CreateOrUpdate ... +func (c NetworkManagerRoutingConfigurationsClient) CreateOrUpdate(ctx context.Context, id RoutingConfigurationId, input NetworkManagerRoutingConfiguration) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerRoutingConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_delete.go new file mode 100644 index 000000000000..d0b3464065a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_delete.go @@ -0,0 +1,100 @@ +package networkmanagerroutingconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c NetworkManagerRoutingConfigurationsClient) Delete(ctx context.Context, id RoutingConfigurationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkManagerRoutingConfigurationsClient) DeleteThenPoll(ctx context.Context, id RoutingConfigurationId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_get.go new file mode 100644 index 000000000000..d1be82cc918e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_get.go @@ -0,0 +1,53 @@ +package networkmanagerroutingconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkManagerRoutingConfiguration +} + +// Get ... +func (c NetworkManagerRoutingConfigurationsClient) Get(ctx context.Context, id RoutingConfigurationId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkManagerRoutingConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_list.go new file mode 100644 index 000000000000..2318cf571675 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/method_list.go @@ -0,0 +1,134 @@ +package networkmanagerroutingconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkManagerRoutingConfiguration +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkManagerRoutingConfiguration +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkManagerRoutingConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/routingConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkManagerRoutingConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkManagerRoutingConfigurationsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, NetworkManagerRoutingConfigurationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkManagerRoutingConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate NetworkManagerRoutingConfigurationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkManagerRoutingConfiguration, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfiguration.go new file mode 100644 index 000000000000..775855260e0d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfiguration.go @@ -0,0 +1,17 @@ +package networkmanagerroutingconfigurations + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkManagerRoutingConfigurationPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfigurationpropertiesformat.go new file mode 100644 index 000000000000..beeb3bbf8f33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/model_networkmanagerroutingconfigurationpropertiesformat.go @@ -0,0 +1,10 @@ +package networkmanagerroutingconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingConfigurationPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/predicates.go new file mode 100644 index 000000000000..a1aaea41056b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/predicates.go @@ -0,0 +1,32 @@ +package networkmanagerroutingconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p NetworkManagerRoutingConfigurationOperationPredicate) Matches(input NetworkManagerRoutingConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/version.go new file mode 100644 index 000000000000..c53e13a2ee87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations/version.go @@ -0,0 +1,10 @@ +package networkmanagerroutingconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanagerroutingconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/README.md new file mode 100644 index 000000000000..0addb27874c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/README.md @@ -0,0 +1,163 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers` Documentation + +The `networkmanagers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers" +``` + + +### Client Initialization + +```go +client := networkmanagers.NewNetworkManagersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkManagersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanagers.NetworkManager{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagersClient.Delete` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +if err := client.DeleteThenPoll(ctx, id, networkmanagers.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkManagersClient.Get` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id, networkmanagers.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, networkmanagers.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkManagersClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions())` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id, networkmanagers.DefaultListBySubscriptionOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkManagersClient.NetworkManagerCommitsPost` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanagers.NetworkManagerCommit{ + // ... +} + + +if err := client.NetworkManagerCommitsPostThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkManagersClient.NetworkManagerDeploymentStatusList` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanagers.NetworkManagerDeploymentStatusParameter{ + // ... +} + + +read, err := client.NetworkManagerDeploymentStatusList(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkManagersClient.Patch` + +```go +ctx := context.TODO() +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +payload := networkmanagers.PatchObject{ + // ... +} + + +read, err := client.Patch(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/constants.go new file mode 100644 index 000000000000..03e251a66011 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/constants.go @@ -0,0 +1,151 @@ +package networkmanagers + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationType string + +const ( + ConfigurationTypeConnectivity ConfigurationType = "Connectivity" + ConfigurationTypeRouting ConfigurationType = "Routing" + ConfigurationTypeSecurityAdmin ConfigurationType = "SecurityAdmin" + ConfigurationTypeSecurityUser ConfigurationType = "SecurityUser" +) + +func PossibleValuesForConfigurationType() []string { + return []string{ + string(ConfigurationTypeConnectivity), + string(ConfigurationTypeRouting), + string(ConfigurationTypeSecurityAdmin), + string(ConfigurationTypeSecurityUser), + } +} + +func (s *ConfigurationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseConfigurationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseConfigurationType(input string) (*ConfigurationType, error) { + vals := map[string]ConfigurationType{ + "connectivity": ConfigurationTypeConnectivity, + "routing": ConfigurationTypeRouting, + "securityadmin": ConfigurationTypeSecurityAdmin, + "securityuser": ConfigurationTypeSecurityUser, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ConfigurationType(input) + return &out, nil +} + +type DeploymentStatus string + +const ( + DeploymentStatusDeployed DeploymentStatus = "Deployed" + DeploymentStatusDeploying DeploymentStatus = "Deploying" + DeploymentStatusFailed DeploymentStatus = "Failed" + DeploymentStatusNotStarted DeploymentStatus = "NotStarted" +) + +func PossibleValuesForDeploymentStatus() []string { + return []string{ + string(DeploymentStatusDeployed), + string(DeploymentStatusDeploying), + string(DeploymentStatusFailed), + string(DeploymentStatusNotStarted), + } +} + +func (s *DeploymentStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeploymentStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeploymentStatus(input string) (*DeploymentStatus, error) { + vals := map[string]DeploymentStatus{ + "deployed": DeploymentStatusDeployed, + "deploying": DeploymentStatusDeploying, + "failed": DeploymentStatusFailed, + "notstarted": DeploymentStatusNotStarted, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeploymentStatus(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagercommitspost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagercommitspost.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagercommitspost.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagercommitspost.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_patch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/method_patch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_crosstenantscopes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_crosstenantscopes.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_crosstenantscopes.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_crosstenantscopes.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagercommit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagercommit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagercommit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagercommit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatuslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerdeploymentstatusparameter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_networkmanagerpropertiesnetworkmanagerscopes.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_patchobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_patchobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/model_patchobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/model_patchobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/version.go new file mode 100644 index 000000000000..83be06dfa17b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers/version.go @@ -0,0 +1,10 @@ +package networkmanagers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkmanagers/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/README.md new file mode 100644 index 000000000000..21c6cfde1994 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/README.md @@ -0,0 +1,125 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles` Documentation + +The `networkprofiles` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles" +``` + + +### Client Initialization + +```go +client := networkprofiles.NewNetworkProfilesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkProfilesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") + +payload := networkprofiles.NetworkProfile{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkProfilesClient.Delete` + +```go +ctx := context.TODO() +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkProfilesClient.Get` + +```go +ctx := context.TODO() +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") + +read, err := client.Get(ctx, id, networkprofiles.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkProfilesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkProfilesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkProfilesClient.UpdateTags` + +```go +ctx := context.TODO() +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") + +payload := networkprofiles.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/id_networkprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/id_networkprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_containernetworkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlog.go new file mode 100644 index 000000000000..44e961c1ca2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlog.go @@ -0,0 +1,19 @@ +package networkprofiles + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..fd435dc751c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networkprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networkprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..b1c8585be20a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..b96cc0a7ddcb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/version.go new file mode 100644 index 000000000000..e3043de7cac3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles/version.go @@ -0,0 +1,10 @@ +package networkprofiles + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkprofiles/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/README.md new file mode 100644 index 000000000000..aadd75db9ef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups` Documentation + +The `networksecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups" +``` + + +### Client Initialization + +```go +client := networksecuritygroups.NewNetworkSecurityGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkSecurityGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +payload := networksecuritygroups.NetworkSecurityGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.Delete` + +```go +ctx := context.TODO() +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.Get` + +```go +ctx := context.TODO() +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +read, err := client.Get(ctx, id, networksecuritygroups.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkSecurityGroupsClient.UpdateTags` + +```go +ctx := context.TODO() +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +payload := networksecuritygroups.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/client.go new file mode 100644 index 000000000000..d490fa41c780 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/client.go @@ -0,0 +1,26 @@ +package networksecuritygroups + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupsClient struct { + Client *resourcemanager.Client +} + +func NewNetworkSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkSecurityGroupsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "networksecuritygroups", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating NetworkSecurityGroupsClient: %+v", err) + } + + return &NetworkSecurityGroupsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/constants.go new file mode 100644 index 000000000000..5a93db643325 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/constants.go @@ -0,0 +1,1198 @@ +package networksecuritygroups + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/id_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/id_networksecuritygroup.go new file mode 100644 index 000000000000..5b1f77f1061b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/id_networksecuritygroup.go @@ -0,0 +1,130 @@ +package networksecuritygroups + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkSecurityGroupId{}) +} + +var _ resourceids.ResourceId = &NetworkSecurityGroupId{} + +// NetworkSecurityGroupId is a struct representing the Resource ID for a Network Security Group +type NetworkSecurityGroupId struct { + SubscriptionId string + ResourceGroupName string + NetworkSecurityGroupName string +} + +// NewNetworkSecurityGroupID returns a new NetworkSecurityGroupId struct +func NewNetworkSecurityGroupID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string) NetworkSecurityGroupId { + return NetworkSecurityGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkSecurityGroupName: networkSecurityGroupName, + } +} + +// ParseNetworkSecurityGroupID parses 'input' into a NetworkSecurityGroupId +func ParseNetworkSecurityGroupID(input string) (*NetworkSecurityGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkSecurityGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkSecurityGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkSecurityGroupIDInsensitively parses 'input' case-insensitively into a NetworkSecurityGroupId +// note: this method should only be used for API response data and not user input +func ParseNetworkSecurityGroupIDInsensitively(input string) (*NetworkSecurityGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkSecurityGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkSecurityGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkSecurityGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkSecurityGroupName, ok = input.Parsed["networkSecurityGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkSecurityGroupName", input) + } + + return nil +} + +// ValidateNetworkSecurityGroupID checks that 'input' can be parsed as a Network Security Group ID +func ValidateNetworkSecurityGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkSecurityGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Security Group ID +func (id NetworkSecurityGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkSecurityGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Security Group ID +func (id NetworkSecurityGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), + } +} + +// String returns a human-readable description of this Network Security Group ID +func (id NetworkSecurityGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Security Group Name: %q", id.NetworkSecurityGroupName), + } + return fmt.Sprintf("Network Security Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_createorupdate.go new file mode 100644 index 000000000000..cb77896aae4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_createorupdate.go @@ -0,0 +1,75 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkSecurityGroup +} + +// CreateOrUpdate ... +func (c NetworkSecurityGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkSecurityGroupId, input NetworkSecurityGroup) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c NetworkSecurityGroupsClient) CreateOrUpdateThenPoll(ctx context.Context, id NetworkSecurityGroupId, input NetworkSecurityGroup) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_delete.go new file mode 100644 index 000000000000..103ca330a5b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_delete.go @@ -0,0 +1,71 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c NetworkSecurityGroupsClient) Delete(ctx context.Context, id NetworkSecurityGroupId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c NetworkSecurityGroupsClient) DeleteThenPoll(ctx context.Context, id NetworkSecurityGroupId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_get.go new file mode 100644 index 000000000000..7728917c0ec6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_get.go @@ -0,0 +1,83 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkSecurityGroup +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c NetworkSecurityGroupsClient) Get(ctx context.Context, id NetworkSecurityGroupId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkSecurityGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_list.go new file mode 100644 index 000000000000..8ebd9f83a713 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_list.go @@ -0,0 +1,106 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkSecurityGroup +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkSecurityGroup +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c NetworkSecurityGroupsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkSecurityGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c NetworkSecurityGroupsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, NetworkSecurityGroupOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkSecurityGroupsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NetworkSecurityGroupOperationPredicate) (result ListCompleteResult, err error) { + items := make([]NetworkSecurityGroup, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_listall.go new file mode 100644 index 000000000000..a6440c241500 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_listall.go @@ -0,0 +1,106 @@ +package networksecuritygroups + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkSecurityGroup +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkSecurityGroup +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c NetworkSecurityGroupsClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/networkSecurityGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkSecurityGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c NetworkSecurityGroupsClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, NetworkSecurityGroupOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c NetworkSecurityGroupsClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NetworkSecurityGroupOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]NetworkSecurityGroup, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_updatetags.go new file mode 100644 index 000000000000..6f4b2cd3ce69 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/method_updatetags.go @@ -0,0 +1,57 @@ +package networksecuritygroups + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkSecurityGroup +} + +// UpdateTags ... +func (c NetworkSecurityGroupsClient) UpdateTags(ctx context.Context, id NetworkSecurityGroupId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkSecurityGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..62c1c3109c08 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..17bf1792be84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..d96a3011a256 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..ebf65a382d3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..e6f11b94c019 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..50a0b0f53a75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..5443c32837af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspool.go new file mode 100644 index 000000000000..0a2169643297 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..80cdae2e9126 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..d6dd55786fcc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ddossettings.go new file mode 100644 index 000000000000..4b0d4e3dc9b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ddossettings.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_delegation.go new file mode 100644 index 000000000000..42805b01adab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_delegation.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlog.go new file mode 100644 index 000000000000..88e95b6c2a4a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlog.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogformatparameters.go new file mode 100644 index 000000000000..fdad354f6b84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..aedfa0b64ad0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfiguration.go new file mode 100644 index 000000000000..24b23145d476 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..5322ea68f346 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..fff6be9708f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrule.go new file mode 100644 index 000000000000..6391fbf065c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..725fec857510 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfiguration.go new file mode 100644 index 000000000000..b9eec53b855d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..4885926d9aaf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..ec7f93c0f2b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..ca12abb49928 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_iptag.go new file mode 100644 index 000000000000..3f5348f3776d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_iptag.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..8c8a91a5d1f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..1843fe9fb855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgateway.go new file mode 100644 index 000000000000..8d6ecb14bc53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgateway.go @@ -0,0 +1,20 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..389e752880f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaysku.go new file mode 100644 index 000000000000..5e842304f20b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natruleportmapping.go new file mode 100644 index 000000000000..30f812c7c780 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterface.go new file mode 100644 index 000000000000..a4a62c2d6ea1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterface.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..f3819f014744 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..40cf733a9f01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..caa03f6e4139 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..248c37ca51de --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..95a8c67d71c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..5e60c1bbfc44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..d110d1936451 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygroup.go new file mode 100644 index 000000000000..dd84b3efc893 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..704a86496f2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpoint.go new file mode 100644 index 000000000000..753cd13341bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpoint.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnection.go new file mode 100644 index 000000000000..b28eaa1a2135 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..9649070d1a73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..af86de8f897c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..550ef75ec1d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointproperties.go new file mode 100644 index 000000000000..36ad3ca4ffb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkservice.go new file mode 100644 index 000000000000..f880da9d89d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..3a721ae36379 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..50b8f7e352ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..619e38d131d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..dcbf418522b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..abc8d2f4904f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..a0623cf72291 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddress.go new file mode 100644 index 000000000000..7b797b006f5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddress.go @@ -0,0 +1,22 @@ +package networksecuritygroups + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..2db9ef3f2c3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..cac3fce28cea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresssku.go new file mode 100644 index 000000000000..24fe5573abdb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlink.go new file mode 100644 index 000000000000..8d6ec6049420 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..0bf207481cb0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourceset.go new file mode 100644 index 000000000000..751d06dd7324 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_resourceset.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..b1e9035c2f8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_route.go new file mode 100644 index 000000000000..9b712ab4e813 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_route.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routepropertiesformat.go new file mode 100644 index 000000000000..3225a4673f2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetable.go new file mode 100644 index 000000000000..9aff39efe9e7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetable.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..5eee448b410c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrule.go new file mode 100644 index 000000000000..1119115e9eb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrule.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..012709116827 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlink.go new file mode 100644 index 000000000000..050ee6cb43f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..81a4ac35e4ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..089e2e1dc0c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..6ca2d4bff53e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..2a8648b7931f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..c70380704b7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..3000410cde3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..41b220c51942 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnet.go new file mode 100644 index 000000000000..499cc289ec38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnet.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..1709c6e2bd1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subresource.go new file mode 100644 index 000000000000..8fa7fe6b59d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_subresource.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_tagsobject.go new file mode 100644 index 000000000000..bb9ad0a63731 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_tagsobject.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..ddb354c4a7c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..f74d8a12ecb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktap.go new file mode 100644 index 000000000000..cfc1b073467b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..01620fae8c8e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/predicates.go new file mode 100644 index 000000000000..b9f6d3f3df5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/predicates.go @@ -0,0 +1,37 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p NetworkSecurityGroupOperationPredicate) Matches(input NetworkSecurityGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/version.go new file mode 100644 index 000000000000..765659c02341 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups/version.go @@ -0,0 +1,10 @@ +package networksecuritygroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networksecuritygroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/README.md new file mode 100644 index 000000000000..a43627f1493c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/README.md @@ -0,0 +1,171 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances` Documentation + +The `networkvirtualappliances` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances" +``` + + +### Client Initialization + +```go +client := networkvirtualappliances.NewNetworkVirtualAppliancesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +payload := networkvirtualappliances.NetworkVirtualAppliance{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.Delete` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.Get` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +read, err := client.Get(ctx, id, networkvirtualappliances.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.InboundSecurityRuleCreateOrUpdate` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "inboundSecurityRuleName") + +payload := networkvirtualappliances.InboundSecurityRule{ + // ... +} + + +if err := client.InboundSecurityRuleCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.InboundSecurityRuleGet` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "inboundSecurityRuleName") + +read, err := client.InboundSecurityRuleGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.Restart` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +payload := networkvirtualappliances.NetworkVirtualApplianceInstanceIds{ + // ... +} + + +if err := client.RestartThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkVirtualAppliancesClient.UpdateTags` + +```go +ctx := context.TODO() +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +payload := networkvirtualappliances.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_inboundsecurityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_inboundsecurityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_networkvirtualappliance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/id_networkvirtualappliance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityrulecreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityruleget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityruleget.go new file mode 100644 index 000000000000..708005f5e02c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_inboundsecurityruleget.go @@ -0,0 +1,53 @@ +package networkvirtualappliances + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundSecurityRuleGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *InboundSecurityRule +} + +// InboundSecurityRuleGet ... +func (c NetworkVirtualAppliancesClient) InboundSecurityRuleGet(ctx context.Context, id InboundSecurityRuleId) (result InboundSecurityRuleGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model InboundSecurityRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_restart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_restart.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_restart.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_restart.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_delegationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_delegationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_delegationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_delegationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrules.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_inboundsecurityrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_inboundsecurityrules.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_internetingresspublicipsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_internetingresspublicipsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_internetingresspublicipsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_internetingresspublicipsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualapplianceinstanceids.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_networkvirtualappliancepropertiesformatnetworkprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_partnermanagedresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_partnermanagedresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_partnermanagedresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_partnermanagedresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceadditionalnicproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenetworkinterfaceconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenicproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenicproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualappliancenicproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualappliancenicproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceskuproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceskuproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/model_virtualapplianceskuproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/model_virtualapplianceskuproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/version.go new file mode 100644 index 000000000000..9a869ebd4d56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances/version.go @@ -0,0 +1,10 @@ +package networkvirtualappliances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkvirtualappliances/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/README.md new file mode 100644 index 000000000000..7c73009117f3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/README.md @@ -0,0 +1,331 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers` Documentation + +The `networkwatchers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers" +``` + + +### Client Initialization + +```go +client := networkwatchers.NewNetworkWatchersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `NetworkWatchersClient.CheckConnectivity` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.ConnectivityParameters{ + // ... +} + + +if err := client.CheckConnectivityThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.NetworkWatcher{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.Delete` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.Get` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.GetAzureReachabilityReport` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.AzureReachabilityReportParameters{ + // ... +} + + +if err := client.GetAzureReachabilityReportThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetFlowLogStatus` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.FlowLogStatusParameters{ + // ... +} + + +if err := client.GetFlowLogStatusThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetNetworkConfigurationDiagnostic` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.NetworkConfigurationDiagnosticParameters{ + // ... +} + + +if err := client.GetNetworkConfigurationDiagnosticThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetNextHop` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.NextHopParameters{ + // ... +} + + +if err := client.GetNextHopThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetTopology` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.TopologyParameters{ + // ... +} + + +read, err := client.GetTopology(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.GetTroubleshooting` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.TroubleshootingParameters{ + // ... +} + + +if err := client.GetTroubleshootingThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetTroubleshootingResult` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.QueryTroubleshootingParameters{ + // ... +} + + +if err := client.GetTroubleshootingResultThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.GetVMSecurityRules` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.SecurityGroupViewParameters{ + // ... +} + + +if err := client.GetVMSecurityRulesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +read, err := client.ListAll(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.ListAvailableProviders` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.AvailableProvidersListParameters{ + // ... +} + + +if err := client.ListAvailableProvidersThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.SetFlowLogConfiguration` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.FlowLogInformation{ + // ... +} + + +if err := client.SetFlowLogConfigurationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `NetworkWatchersClient.UpdateTags` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `NetworkWatchersClient.VerifyIPFlow` + +```go +ctx := context.TODO() +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := networkwatchers.VerificationIPFlowParameters{ + // ... +} + + +if err := client.VerifyIPFlowThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/id_networkwatcher.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/id_networkwatcher.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_checkconnectivity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_checkconnectivity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_checkconnectivity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_checkconnectivity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getazurereachabilityreport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getazurereachabilityreport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getazurereachabilityreport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getazurereachabilityreport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getflowlogstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getflowlogstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getflowlogstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getflowlogstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnetworkconfigurationdiagnostic.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnexthop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnexthop.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getnexthop.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getnexthop.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettopology.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettopology.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshooting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshooting.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshooting.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshooting.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshootingresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshootingresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettroubleshootingresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_gettroubleshootingresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getvmsecurityrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getvmsecurityrules.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_getvmsecurityrules.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_getvmsecurityrules.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listavailableproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listavailableproviders.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listavailableproviders.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_listavailableproviders.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_setflowlogconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_setflowlogconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_setflowlogconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_setflowlogconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_verifyipflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_verifyipflow.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_verifyipflow.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/method_verifyipflow.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcountry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcountry.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistcountry.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistcountry.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableproviderslistparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableproviderslistparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableprovidersliststate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableprovidersliststate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_availableprovidersliststate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_availableprovidersliststate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreport.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreport.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreport.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportitem.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportitem.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportitem.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlatencyinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportlocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportlocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_azurereachabilityreportparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_azurereachabilityreportparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitydestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitydestination.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitydestination.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitydestination.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityhop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityhop.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityhop.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityhop.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityinformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityinformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityinformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityissue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityissue.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityissue.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityissue.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivityparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivityparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitysource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitysource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_connectivitysource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_connectivitysource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_effectivenetworksecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_effectivenetworksecurityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_effectivenetworksecurityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_effectivenetworksecurityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_evaluatednetworksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_evaluatednetworksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_evaluatednetworksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_evaluatednetworksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowloginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowloginformation.go new file mode 100644 index 000000000000..af84bbc42024 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowloginformation.go @@ -0,0 +1,15 @@ +package networkwatchers + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogInformation struct { + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Properties FlowLogProperties `json:"properties"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogproperties.go new file mode 100644 index 000000000000..624b13072bab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogproperties.go @@ -0,0 +1,12 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogProperties struct { + Enabled bool `json:"enabled"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogstatusparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogstatusparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_flowlogstatusparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_flowlogstatusparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplinkproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_hoplinkproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_hoplinkproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpheader.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpheader.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_httpheader.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_httpheader.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_matchedrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_matchedrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_matchedrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_matchedrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkconfigurationdiagnosticresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkconfigurationdiagnosticresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkinterfaceassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkinterfaceassociation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkinterfaceassociation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkinterfaceassociation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecuritygroupresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecuritygroupresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecuritygroupresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecuritygroupresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecurityrulesevaluationresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecurityrulesevaluationresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networksecurityrulesevaluationresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networksecurityrulesevaluationresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcher.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcher.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcher.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherlistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherlistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherlistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_networkwatcherpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_networkwatcherpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_nexthopresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_nexthopresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_protocolconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_protocolconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_protocolconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_protocolconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_querytroubleshootingparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_querytroubleshootingparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_querytroubleshootingparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_querytroubleshootingparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupnetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupnetworkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupnetworkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupnetworkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securitygroupviewresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securitygroupviewresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityruleassociations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityruleassociations.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityruleassociations.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityruleassociations.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subnetassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subnetassociation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subnetassociation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subnetassociation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topology.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topology.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topology.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topology.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyassociation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyassociation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyassociation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_topologyresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_topologyresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingrecommendedactions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingrecommendedactions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingrecommendedactions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingrecommendedactions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_troubleshootingresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_troubleshootingresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/model_verificationipflowresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/model_verificationipflowresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/version.go new file mode 100644 index 000000000000..ae05df76a21f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers/version.go @@ -0,0 +1,10 @@ +package networkwatchers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/networkwatchers/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/README.md new file mode 100644 index 000000000000..37f5c2c73e3d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/README.md @@ -0,0 +1,113 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways` Documentation + +The `p2svpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways" +``` + + +### Client Initialization + +```go +client := p2svpngateways.NewP2sVpnGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `P2sVpnGatewaysClient.DisconnectP2sVpnConnections` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +payload := p2svpngateways.P2SVpnConnectionRequest{ + // ... +} + + +if err := client.DisconnectP2sVpnConnectionsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `P2sVpnGatewaysClient.GenerateVpnProfile` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +payload := p2svpngateways.P2SVpnProfileParameters{ + // ... +} + + +if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `P2sVpnGatewaysClient.GetP2sVpnConnectionHealth` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `P2sVpnGatewaysClient.GetP2sVpnConnectionHealthDetailed` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +payload := p2svpngateways.P2SVpnConnectionHealthRequest{ + // ... +} + + +if err := client.GetP2sVpnConnectionHealthDetailedThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `P2sVpnGatewaysClient.Reset` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +if err := client.ResetThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `P2sVpnGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +payload := p2svpngateways.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_disconnectp2svpnconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_disconnectp2svpnconnections.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_disconnectp2svpnconnections.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_disconnectp2svpnconnections.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_generatevpnprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_generatevpnprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_generatevpnprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_generatevpnprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_getp2svpnconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_getp2svpnconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_getp2svpnconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_getp2svpnconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_getp2svpnconnectionhealthdetailed.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_reset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_reset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_reset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2sconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2sconnectionconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2sconnectionconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2sconnectionconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2sconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2sconnectionconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2sconnectionconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2sconnectionconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionhealthrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionhealthrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionhealthrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionhealthrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnconnectionrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnconnectionrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpngateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpngateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpngateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpngatewayproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpngatewayproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpngatewayproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnprofileparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnprofileparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_p2svpnprofileparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_p2svpnprofileparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_propagatedroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_propagatedroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_propagatedroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_routingconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_routingconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_routingconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_staticroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_staticroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_staticroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_staticroutesconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_staticroutesconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_staticroutesconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vnetroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vnetroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vnetroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnclientconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnclientconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnclientconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnprofileresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnprofileresponse.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnprofileresponse.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnprofileresponse.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroupmember.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/model_vpnserverconfigurationpolicygroupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/version.go new file mode 100644 index 000000000000..35293bc56ad1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways/version.go @@ -0,0 +1,10 @@ +package p2svpngateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/p2svpngateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/README.md new file mode 100644 index 000000000000..08b0fda27aa2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/README.md @@ -0,0 +1,105 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures` Documentation + +The `packetcaptures` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures" +``` + + +### Client Initialization + +```go +client := packetcaptures.NewPacketCapturesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PacketCapturesClient.Create` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +payload := packetcaptures.PacketCapture{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PacketCapturesClient.Delete` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PacketCapturesClient.Get` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PacketCapturesClient.GetStatus` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +if err := client.GetStatusThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PacketCapturesClient.List` + +```go +ctx := context.TODO() +id := packetcaptures.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PacketCapturesClient.Stop` + +```go +ctx := context.TODO() +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") + +if err := client.StopThenPoll(ctx, id); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_networkwatcher.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_networkwatcher.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_packetcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/id_packetcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_getstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_getstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_getstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_getstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_stop.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_stop.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/method_stop.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturefilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturefilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturefilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturemachinescope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturemachinescope.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturemachinescope.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturemachinescope.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturequerystatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturequerystatusresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturequerystatusresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturequerystatusresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresultproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcaptureresultproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcaptureresultproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturesettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturesettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturesettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturestoragelocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturestoragelocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/model_packetcapturestoragelocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/model_packetcapturestoragelocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/version.go new file mode 100644 index 000000000000..b582fc980901 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures/version.go @@ -0,0 +1,10 @@ +package packetcaptures + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/packetcaptures/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/README.md new file mode 100644 index 000000000000..1c5b2ddda8ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections` Documentation + +The `peerexpressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections" +``` + + +### Client Initialization + +```go +client := peerexpressroutecircuitconnections.NewPeerExpressRouteCircuitConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PeerExpressRouteCircuitConnectionsClient.Get` + +```go +ctx := context.TODO() +id := peerexpressroutecircuitconnections.NewPeerConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName", "peerConnectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PeerExpressRouteCircuitConnectionsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitName", "peeringName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/id_peerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/id_peerconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/id_peerconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/id_peerconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_peerexpressroutecircuitconnectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/version.go new file mode 100644 index 000000000000..aad65b9e49c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections/version.go @@ -0,0 +1,10 @@ +package peerexpressroutecircuitconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/peerexpressroutecircuitconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/README.md new file mode 100644 index 000000000000..071aa659c7b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups` Documentation + +The `privatednszonegroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups" +``` + + +### Client Initialization + +```go +client := privatednszonegroups.NewPrivateDnsZoneGroupsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PrivateDnsZoneGroupsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") + +payload := privatednszonegroups.PrivateDnsZoneGroup{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateDnsZoneGroupsClient.Delete` + +```go +ctx := context.TODO() +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateDnsZoneGroupsClient.Get` + +```go +ctx := context.TODO() +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateDnsZoneGroupsClient.List` + +```go +ctx := context.TODO() +id := privatednszonegroups.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privatednszonegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privatednszonegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/id_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszoneconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszoneconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszoneconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszoneconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonegrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_privatednszonepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_privatednszonepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_recordset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_recordset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/model_recordset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/model_recordset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/version.go new file mode 100644 index 000000000000..10ccb532b7d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups/version.go @@ -0,0 +1,10 @@ +package privatednszonegroups + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/privatednszonegroups/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/README.md new file mode 100644 index 000000000000..6e0dfe6bab93 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/README.md @@ -0,0 +1,134 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints` Documentation + +The `privateendpoints` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints" +``` + + +### Client Initialization + +```go +client := privateendpoints.NewPrivateEndpointsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PrivateEndpointsClient.AvailablePrivateEndpointTypesList` + +```go +ctx := context.TODO() +id := privateendpoints.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.AvailablePrivateEndpointTypesList(ctx, id)` can be used to do batched pagination +items, err := client.AvailablePrivateEndpointTypesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateEndpointsClient.AvailablePrivateEndpointTypesListByResourceGroup` + +```go +ctx := context.TODO() +id := privateendpoints.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") + +// alternatively `client.AvailablePrivateEndpointTypesListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.AvailablePrivateEndpointTypesListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateEndpointsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") + +payload := privateendpoints.PrivateEndpoint{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateEndpointsClient.Delete` + +```go +ctx := context.TODO() +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateEndpointsClient.Get` + +```go +ctx := context.TODO() +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") + +read, err := client.Get(ctx, id, privateendpoints.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateEndpointsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateEndpointsClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_providerlocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/id_providerlocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_availableprivateendpointtypeslistbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_availableprivateendpointtype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_availableprivateendpointtype.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_availableprivateendpointtype.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_availableprivateendpointtype.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlog.go new file mode 100644 index 000000000000..6e5b89e5f2cb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlog.go @@ -0,0 +1,19 @@ +package privateendpoints + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..3e3ef311eed5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..aa8c280a9ad6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..c9bc7f38f99b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/version.go new file mode 100644 index 000000000000..cad261b040ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints/version.go @@ -0,0 +1,10 @@ +package privateendpoints + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/privateendpoints/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/README.md new file mode 100644 index 000000000000..57252b930e73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/README.md @@ -0,0 +1,234 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices` Documentation + +The `privatelinkservices` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices" +``` + + +### Client Initialization + +```go +client := privatelinkservices.NewPrivateLinkServicesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PrivateLinkServicesClient.CheckPrivateLinkServiceVisibility` + +```go +ctx := context.TODO() +id := privatelinkservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +payload := privatelinkservices.CheckPrivateLinkServiceVisibilityRequest{ + // ... +} + + +if err := client.CheckPrivateLinkServiceVisibilityThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.CheckPrivateLinkServiceVisibilityByResourceGroup` + +```go +ctx := context.TODO() +id := privatelinkservices.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") + +payload := privatelinkservices.CheckPrivateLinkServiceVisibilityRequest{ + // ... +} + + +if err := client.CheckPrivateLinkServiceVisibilityByResourceGroupThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName") + +payload := privatelinkservices.PrivateLinkService{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.Delete` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.DeletePrivateEndpointConnection` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName", "privateEndpointConnectionName") + +if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateLinkServicesClient.Get` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName") + +read, err := client.Get(ctx, id, privatelinkservices.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateLinkServicesClient.GetPrivateEndpointConnection` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName", "privateEndpointConnectionName") + +read, err := client.GetPrivateEndpointConnection(ctx, id, privatelinkservices.DefaultGetPrivateEndpointConnectionOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PrivateLinkServicesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServices` + +```go +ctx := context.TODO() +id := privatelinkservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.ListAutoApprovedPrivateLinkServices(ctx, id)` can be used to do batched pagination +items, err := client.ListAutoApprovedPrivateLinkServicesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.ListAutoApprovedPrivateLinkServicesByResourceGroup` + +```go +ctx := context.TODO() +id := privatelinkservices.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") + +// alternatively `client.ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.ListPrivateEndpointConnections` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName") + +// alternatively `client.ListPrivateEndpointConnections(ctx, id)` can be used to do batched pagination +items, err := client.ListPrivateEndpointConnectionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PrivateLinkServicesClient.UpdatePrivateEndpointConnection` + +```go +ctx := context.TODO() +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceName", "privateEndpointConnectionName") + +payload := privatelinkservices.PrivateEndpointConnection{ + // ... +} + + +read, err := client.UpdatePrivateEndpointConnection(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/client.go new file mode 100644 index 000000000000..e097e552e3f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/client.go @@ -0,0 +1,26 @@ +package privatelinkservices + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServicesClient struct { + Client *resourcemanager.Client +} + +func NewPrivateLinkServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkServicesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "privatelinkservices", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating PrivateLinkServicesClient: %+v", err) + } + + return &PrivateLinkServicesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/constants.go new file mode 100644 index 000000000000..17a1620a8350 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/constants.go @@ -0,0 +1,1198 @@ +package privatelinkservices + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_location.go new file mode 100644 index 000000000000..ad61efbce7ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_location.go @@ -0,0 +1,121 @@ +package privatelinkservices + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&LocationId{}) +} + +var _ resourceids.ResourceId = &LocationId{} + +// LocationId is a struct representing the Resource ID for a Location +type LocationId struct { + SubscriptionId string + LocationName string +} + +// NewLocationID returns a new LocationId struct +func NewLocationID(subscriptionId string, locationName string) LocationId { + return LocationId{ + SubscriptionId: subscriptionId, + LocationName: locationName, + } +} + +// ParseLocationID parses 'input' into a LocationId +func ParseLocationID(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId +// note: this method should only be used for API response data and not user input +func ParseLocationIDInsensitively(input string) (*LocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&LocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := LocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *LocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateLocationID checks that 'input' can be parsed as a Location ID +func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Location ID +func (id LocationId) ID() string { + fmtString := "/subscriptions/%s/providers/Microsoft.Network/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Location ID +func (id LocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Location ID +func (id LocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privateendpointconnection.go new file mode 100644 index 000000000000..3f1f439928bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privateendpointconnection.go @@ -0,0 +1,139 @@ +package privatelinkservices + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PrivateEndpointConnectionId{}) +} + +var _ resourceids.ResourceId = &PrivateEndpointConnectionId{} + +// PrivateEndpointConnectionId is a struct representing the Resource ID for a Private Endpoint Connection +type PrivateEndpointConnectionId struct { + SubscriptionId string + ResourceGroupName string + PrivateLinkServiceName string + PrivateEndpointConnectionName string +} + +// NewPrivateEndpointConnectionID returns a new PrivateEndpointConnectionId struct +func NewPrivateEndpointConnectionID(subscriptionId string, resourceGroupName string, privateLinkServiceName string, privateEndpointConnectionName string) PrivateEndpointConnectionId { + return PrivateEndpointConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PrivateLinkServiceName: privateLinkServiceName, + PrivateEndpointConnectionName: privateEndpointConnectionName, + } +} + +// ParsePrivateEndpointConnectionID parses 'input' into a PrivateEndpointConnectionId +func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePrivateEndpointConnectionIDInsensitively parses 'input' case-insensitively into a PrivateEndpointConnectionId +// note: this method should only be used for API response data and not user input +func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpointConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateEndpointConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateEndpointConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PrivateEndpointConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PrivateLinkServiceName, ok = input.Parsed["privateLinkServiceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateLinkServiceName", input) + } + + if id.PrivateEndpointConnectionName, ok = input.Parsed["privateEndpointConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateEndpointConnectionName", input) + } + + return nil +} + +// ValidatePrivateEndpointConnectionID checks that 'input' can be parsed as a Private Endpoint Connection ID +func ValidatePrivateEndpointConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePrivateEndpointConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateLinkServices/%s/privateEndpointConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateLinkServiceName, id.PrivateEndpointConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPrivateLinkServices", "privateLinkServices", "privateLinkServices"), + resourceids.UserSpecifiedSegment("privateLinkServiceName", "privateLinkServiceName"), + resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), + } +} + +// String returns a human-readable description of this Private Endpoint Connection ID +func (id PrivateEndpointConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Private Link Service Name: %q", id.PrivateLinkServiceName), + fmt.Sprintf("Private Endpoint Connection Name: %q", id.PrivateEndpointConnectionName), + } + return fmt.Sprintf("Private Endpoint Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privatelinkservice.go new file mode 100644 index 000000000000..d691d1eded6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_privatelinkservice.go @@ -0,0 +1,130 @@ +package privatelinkservices + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PrivateLinkServiceId{}) +} + +var _ resourceids.ResourceId = &PrivateLinkServiceId{} + +// PrivateLinkServiceId is a struct representing the Resource ID for a Private Link Service +type PrivateLinkServiceId struct { + SubscriptionId string + ResourceGroupName string + PrivateLinkServiceName string +} + +// NewPrivateLinkServiceID returns a new PrivateLinkServiceId struct +func NewPrivateLinkServiceID(subscriptionId string, resourceGroupName string, privateLinkServiceName string) PrivateLinkServiceId { + return PrivateLinkServiceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PrivateLinkServiceName: privateLinkServiceName, + } +} + +// ParsePrivateLinkServiceID parses 'input' into a PrivateLinkServiceId +func ParsePrivateLinkServiceID(input string) (*PrivateLinkServiceId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateLinkServiceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateLinkServiceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePrivateLinkServiceIDInsensitively parses 'input' case-insensitively into a PrivateLinkServiceId +// note: this method should only be used for API response data and not user input +func ParsePrivateLinkServiceIDInsensitively(input string) (*PrivateLinkServiceId, error) { + parser := resourceids.NewParserFromResourceIdType(&PrivateLinkServiceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PrivateLinkServiceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PrivateLinkServiceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PrivateLinkServiceName, ok = input.Parsed["privateLinkServiceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "privateLinkServiceName", input) + } + + return nil +} + +// ValidatePrivateLinkServiceID checks that 'input' can be parsed as a Private Link Service ID +func ValidatePrivateLinkServiceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePrivateLinkServiceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Private Link Service ID +func (id PrivateLinkServiceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/privateLinkServices/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PrivateLinkServiceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Private Link Service ID +func (id PrivateLinkServiceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPrivateLinkServices", "privateLinkServices", "privateLinkServices"), + resourceids.UserSpecifiedSegment("privateLinkServiceName", "privateLinkServiceName"), + } +} + +// String returns a human-readable description of this Private Link Service ID +func (id PrivateLinkServiceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Private Link Service Name: %q", id.PrivateLinkServiceName), + } + return fmt.Sprintf("Private Link Service (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_providerlocation.go new file mode 100644 index 000000000000..706ab2680a9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/id_providerlocation.go @@ -0,0 +1,130 @@ +package privatelinkservices + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ProviderLocationId{}) +} + +var _ resourceids.ResourceId = &ProviderLocationId{} + +// ProviderLocationId is a struct representing the Resource ID for a Provider Location +type ProviderLocationId struct { + SubscriptionId string + ResourceGroupName string + LocationName string +} + +// NewProviderLocationID returns a new ProviderLocationId struct +func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId { + return ProviderLocationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + LocationName: locationName, + } +} + +// ParseProviderLocationID parses 'input' into a ProviderLocationId +func ParseProviderLocationID(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId +// note: this method should only be used for API response data and not user input +func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID +func ValidateProviderLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProviderLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Provider Location ID +func (id ProviderLocationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Provider Location ID +func (id ProviderLocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), + } +} + +// String returns a human-readable description of this Provider Location ID +func (id ProviderLocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Provider Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibility.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibility.go new file mode 100644 index 000000000000..1e8a53a5ec7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibility.go @@ -0,0 +1,75 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckPrivateLinkServiceVisibilityOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkServiceVisibility +} + +// CheckPrivateLinkServiceVisibility ... +func (c PrivateLinkServicesClient) CheckPrivateLinkServiceVisibility(ctx context.Context, id LocationId, input CheckPrivateLinkServiceVisibilityRequest) (result CheckPrivateLinkServiceVisibilityOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/checkPrivateLinkServiceVisibility", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CheckPrivateLinkServiceVisibilityThenPoll performs CheckPrivateLinkServiceVisibility then polls until it's completed +func (c PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityThenPoll(ctx context.Context, id LocationId, input CheckPrivateLinkServiceVisibilityRequest) error { + result, err := c.CheckPrivateLinkServiceVisibility(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CheckPrivateLinkServiceVisibility: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CheckPrivateLinkServiceVisibility: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibilitybyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibilitybyresourcegroup.go new file mode 100644 index 000000000000..22023c980d02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_checkprivatelinkservicevisibilitybyresourcegroup.go @@ -0,0 +1,75 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckPrivateLinkServiceVisibilityByResourceGroupOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkServiceVisibility +} + +// CheckPrivateLinkServiceVisibilityByResourceGroup ... +func (c PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityByResourceGroup(ctx context.Context, id ProviderLocationId, input CheckPrivateLinkServiceVisibilityRequest) (result CheckPrivateLinkServiceVisibilityByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/checkPrivateLinkServiceVisibility", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CheckPrivateLinkServiceVisibilityByResourceGroupThenPoll performs CheckPrivateLinkServiceVisibilityByResourceGroup then polls until it's completed +func (c PrivateLinkServicesClient) CheckPrivateLinkServiceVisibilityByResourceGroupThenPoll(ctx context.Context, id ProviderLocationId, input CheckPrivateLinkServiceVisibilityRequest) error { + result, err := c.CheckPrivateLinkServiceVisibilityByResourceGroup(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CheckPrivateLinkServiceVisibilityByResourceGroup: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CheckPrivateLinkServiceVisibilityByResourceGroup: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_createorupdate.go new file mode 100644 index 000000000000..469627334988 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_createorupdate.go @@ -0,0 +1,75 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkService +} + +// CreateOrUpdate ... +func (c PrivateLinkServicesClient) CreateOrUpdate(ctx context.Context, id PrivateLinkServiceId, input PrivateLinkService) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c PrivateLinkServicesClient) CreateOrUpdateThenPoll(ctx context.Context, id PrivateLinkServiceId, input PrivateLinkService) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_delete.go new file mode 100644 index 000000000000..d518ac5aede1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_delete.go @@ -0,0 +1,71 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c PrivateLinkServicesClient) Delete(ctx context.Context, id PrivateLinkServiceId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c PrivateLinkServicesClient) DeleteThenPoll(ctx context.Context, id PrivateLinkServiceId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_deleteprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_deleteprivateendpointconnection.go new file mode 100644 index 000000000000..92593766f11d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_deleteprivateendpointconnection.go @@ -0,0 +1,71 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeletePrivateEndpointConnectionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// DeletePrivateEndpointConnection ... +func (c PrivateLinkServicesClient) DeletePrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId) (result DeletePrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeletePrivateEndpointConnectionThenPoll performs DeletePrivateEndpointConnection then polls until it's completed +func (c PrivateLinkServicesClient) DeletePrivateEndpointConnectionThenPoll(ctx context.Context, id PrivateEndpointConnectionId) error { + result, err := c.DeletePrivateEndpointConnection(ctx, id) + if err != nil { + return fmt.Errorf("performing DeletePrivateEndpointConnection: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after DeletePrivateEndpointConnection: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_get.go new file mode 100644 index 000000000000..3be1df5bb535 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_get.go @@ -0,0 +1,83 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateLinkService +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c PrivateLinkServicesClient) Get(ctx context.Context, id PrivateLinkServiceId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PrivateLinkService + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_getprivateendpointconnection.go new file mode 100644 index 000000000000..7690b7c62af4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_getprivateendpointconnection.go @@ -0,0 +1,83 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetPrivateEndpointConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateEndpointConnection +} + +type GetPrivateEndpointConnectionOperationOptions struct { + Expand *string +} + +func DefaultGetPrivateEndpointConnectionOperationOptions() GetPrivateEndpointConnectionOperationOptions { + return GetPrivateEndpointConnectionOperationOptions{} +} + +func (o GetPrivateEndpointConnectionOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetPrivateEndpointConnectionOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetPrivateEndpointConnectionOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// GetPrivateEndpointConnection ... +func (c PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId, options GetPrivateEndpointConnectionOperationOptions) (result GetPrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PrivateEndpointConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_list.go new file mode 100644 index 000000000000..70140c6dc932 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_list.go @@ -0,0 +1,106 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateLinkService +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateLinkService +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c PrivateLinkServicesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateLinkService `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, PrivateLinkServiceOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PrivateLinkServiceOperationPredicate) (result ListCompleteResult, err error) { + items := make([]PrivateLinkService, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go new file mode 100644 index 000000000000..f3156a5739c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservices.go @@ -0,0 +1,105 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAutoApprovedPrivateLinkServicesOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AutoApprovedPrivateLinkService +} + +type ListAutoApprovedPrivateLinkServicesCompleteResult struct { + LatestHttpResponse *http.Response + Items []AutoApprovedPrivateLinkService +} + +type ListAutoApprovedPrivateLinkServicesCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAutoApprovedPrivateLinkServices ... +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServices(ctx context.Context, id LocationId) (result ListAutoApprovedPrivateLinkServicesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesCustomPager{}, + Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AutoApprovedPrivateLinkService `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAutoApprovedPrivateLinkServicesComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesComplete(ctx context.Context, id LocationId) (ListAutoApprovedPrivateLinkServicesCompleteResult, error) { + return c.ListAutoApprovedPrivateLinkServicesCompleteMatchingPredicate(ctx, id, AutoApprovedPrivateLinkServiceOperationPredicate{}) +} + +// ListAutoApprovedPrivateLinkServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate AutoApprovedPrivateLinkServiceOperationPredicate) (result ListAutoApprovedPrivateLinkServicesCompleteResult, err error) { + items := make([]AutoApprovedPrivateLinkService, 0) + + resp, err := c.ListAutoApprovedPrivateLinkServices(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAutoApprovedPrivateLinkServicesCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go new file mode 100644 index 000000000000..91eed65255ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listautoapprovedprivatelinkservicesbyresourcegroup.go @@ -0,0 +1,105 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAutoApprovedPrivateLinkServicesByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]AutoApprovedPrivateLinkService +} + +type ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []AutoApprovedPrivateLinkService +} + +type ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroup ... +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx context.Context, id ProviderLocationId) (result ListAutoApprovedPrivateLinkServicesByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAutoApprovedPrivateLinkServicesByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/autoApprovedPrivateLinkServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]AutoApprovedPrivateLinkService `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroupComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx context.Context, id ProviderLocationId) (ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult, error) { + return c.ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteMatchingPredicate(ctx, id, AutoApprovedPrivateLinkServiceOperationPredicate{}) +} + +// ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteMatchingPredicate(ctx context.Context, id ProviderLocationId, predicate AutoApprovedPrivateLinkServiceOperationPredicate) (result ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult, err error) { + items := make([]AutoApprovedPrivateLinkService, 0) + + resp, err := c.ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAutoApprovedPrivateLinkServicesByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listbysubscription.go new file mode 100644 index 000000000000..63f9d6bf9c61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listbysubscription.go @@ -0,0 +1,106 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListBySubscriptionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateLinkService +} + +type ListBySubscriptionCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateLinkService +} + +type ListBySubscriptionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListBySubscription ... +func (c PrivateLinkServicesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListBySubscriptionCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/privateLinkServices", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateLinkService `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListBySubscriptionComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error) { + return c.ListBySubscriptionCompleteMatchingPredicate(ctx, id, PrivateLinkServiceOperationPredicate{}) +} + +// ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PrivateLinkServiceOperationPredicate) (result ListBySubscriptionCompleteResult, err error) { + items := make([]PrivateLinkService, 0) + + resp, err := c.ListBySubscription(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListBySubscriptionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listprivateendpointconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listprivateendpointconnections.go new file mode 100644 index 000000000000..c4742974fe5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_listprivateendpointconnections.go @@ -0,0 +1,105 @@ +package privatelinkservices + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListPrivateEndpointConnectionsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PrivateEndpointConnection +} + +type ListPrivateEndpointConnectionsCompleteResult struct { + LatestHttpResponse *http.Response + Items []PrivateEndpointConnection +} + +type ListPrivateEndpointConnectionsCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListPrivateEndpointConnectionsCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListPrivateEndpointConnections ... +func (c PrivateLinkServicesClient) ListPrivateEndpointConnections(ctx context.Context, id PrivateLinkServiceId) (result ListPrivateEndpointConnectionsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListPrivateEndpointConnectionsCustomPager{}, + Path: fmt.Sprintf("%s/privateEndpointConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PrivateEndpointConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListPrivateEndpointConnectionsComplete retrieves all the results into a single object +func (c PrivateLinkServicesClient) ListPrivateEndpointConnectionsComplete(ctx context.Context, id PrivateLinkServiceId) (ListPrivateEndpointConnectionsCompleteResult, error) { + return c.ListPrivateEndpointConnectionsCompleteMatchingPredicate(ctx, id, PrivateEndpointConnectionOperationPredicate{}) +} + +// ListPrivateEndpointConnectionsCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PrivateLinkServicesClient) ListPrivateEndpointConnectionsCompleteMatchingPredicate(ctx context.Context, id PrivateLinkServiceId, predicate PrivateEndpointConnectionOperationPredicate) (result ListPrivateEndpointConnectionsCompleteResult, err error) { + items := make([]PrivateEndpointConnection, 0) + + resp, err := c.ListPrivateEndpointConnections(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListPrivateEndpointConnectionsCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_updateprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_updateprivateendpointconnection.go new file mode 100644 index 000000000000..b108db06f2a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/method_updateprivateendpointconnection.go @@ -0,0 +1,57 @@ +package privatelinkservices + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdatePrivateEndpointConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PrivateEndpointConnection +} + +// UpdatePrivateEndpointConnection ... +func (c PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx context.Context, id PrivateEndpointConnectionId, input PrivateEndpointConnection) (result UpdatePrivateEndpointConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PrivateEndpointConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..6e064132ab84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..2b8b30f76cf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..687ec802ef4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..237473164430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..bc231fd9d60b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..102038ead97e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..b9a224260e0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_autoapprovedprivatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_autoapprovedprivatelinkservice.go new file mode 100644 index 000000000000..e8eb368b9fd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_autoapprovedprivatelinkservice.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoApprovedPrivateLinkService struct { + PrivateLinkService *string `json:"privateLinkService,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspool.go new file mode 100644 index 000000000000..e621fc409e7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..4fe2c6dad022 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_checkprivatelinkservicevisibilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_checkprivatelinkservicevisibilityrequest.go new file mode 100644 index 000000000000..d338d570a52e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_checkprivatelinkservicevisibilityrequest.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CheckPrivateLinkServiceVisibilityRequest struct { + PrivateLinkServiceAlias *string `json:"privateLinkServiceAlias,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..5bb831424b80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ddossettings.go new file mode 100644 index 000000000000..a88f6af3346c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ddossettings.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_delegation.go new file mode 100644 index 000000000000..861d7dccc335 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_delegation.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlog.go new file mode 100644 index 000000000000..a7a48567b588 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlog.go @@ -0,0 +1,19 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogformatparameters.go new file mode 100644 index 000000000000..e5d4b9b0d2f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..f7d23503742a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfiguration.go new file mode 100644 index 000000000000..c4908a4dc2b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..2a655d02dfc1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..57e817e63b2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrule.go new file mode 100644 index 000000000000..acd7d0aa7090 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..8bf73e3faf8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfiguration.go new file mode 100644 index 000000000000..3ad6065a48e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..0b4a7cbc860d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..f1bae207cc2e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..2852a27e2c3b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_iptag.go new file mode 100644 index 000000000000..a7e33392ad27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_iptag.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..09bc3c7f06cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..a567721ac6c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgateway.go new file mode 100644 index 000000000000..077d2bc5d5fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgateway.go @@ -0,0 +1,20 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..85150f10453f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaysku.go new file mode 100644 index 000000000000..ceae4c333727 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natruleportmapping.go new file mode 100644 index 000000000000..e081a3363759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterface.go new file mode 100644 index 000000000000..6ac282778d78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterface.go @@ -0,0 +1,19 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..b7993919c629 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..766f136f8526 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..4e4cefa66b4b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..9574d8285606 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..1c2bfc6ae43c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..66b7aeeab62b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..307c8944af02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygroup.go new file mode 100644 index 000000000000..1a2792e0f884 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..7990d29a1bbd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpoint.go new file mode 100644 index 000000000000..d3a77eea7544 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpoint.go @@ -0,0 +1,19 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnection.go new file mode 100644 index 000000000000..bb755a705364 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..5966a68df2a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..6327ca28ff1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..5e70530aabf8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointproperties.go new file mode 100644 index 000000000000..4d6d18b46a59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservice.go new file mode 100644 index 000000000000..4a672116bc2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..eb5e26941fdf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..a991f868fe87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..f227e3d5e6ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..de38cfbbde6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..b1809f0d71c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..1dbb659e8729 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservicevisibility.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservicevisibility.go new file mode 100644 index 000000000000..38f95ae51a17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_privatelinkservicevisibility.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceVisibility struct { + Visible *bool `json:"visible,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddress.go new file mode 100644 index 000000000000..cdcddd86935e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddress.go @@ -0,0 +1,22 @@ +package privatelinkservices + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..268300edf0bc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..2b9a811495b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresssku.go new file mode 100644 index 000000000000..80c5ef44ece2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlink.go new file mode 100644 index 000000000000..68ad67e053ed --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..57d6954d2945 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourceset.go new file mode 100644 index 000000000000..e923870d39f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_resourceset.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..96f988841633 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_route.go new file mode 100644 index 000000000000..901d0eadcc62 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_route.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routepropertiesformat.go new file mode 100644 index 000000000000..120882489684 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetable.go new file mode 100644 index 000000000000..8afe228ccfd7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetable.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..6377cd08fd9b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrule.go new file mode 100644 index 000000000000..df53714a81ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrule.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..52b151efed9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlink.go new file mode 100644 index 000000000000..5f9234cbb828 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..87f29c8ca656 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..2ad5375c2ca3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..c93c759f93a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..d1116eb2a61d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..7f68e9513e32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..5af6f94d80f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..db38090185b9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnet.go new file mode 100644 index 000000000000..afb102ed10a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnet.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..223c45fd44d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subresource.go new file mode 100644 index 000000000000..b9dcdcf56bf2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_subresource.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..c500218a37c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..b98eb28874d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktap.go new file mode 100644 index 000000000000..8dbee65a21a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..4fb395dbc76b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/predicates.go new file mode 100644 index 000000000000..f7e18f9feee9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/predicates.go @@ -0,0 +1,78 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AutoApprovedPrivateLinkServiceOperationPredicate struct { + PrivateLinkService *string +} + +func (p AutoApprovedPrivateLinkServiceOperationPredicate) Matches(input AutoApprovedPrivateLinkService) bool { + + if p.PrivateLinkService != nil && (input.PrivateLinkService == nil || *p.PrivateLinkService != *input.PrivateLinkService) { + return false + } + + return true +} + +type PrivateEndpointConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p PrivateEndpointConnectionOperationPredicate) Matches(input PrivateEndpointConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type PrivateLinkServiceOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p PrivateLinkServiceOperationPredicate) Matches(input PrivateLinkService) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/version.go new file mode 100644 index 000000000000..0295a186c594 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices/version.go @@ -0,0 +1,10 @@ +package privatelinkservices + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/privatelinkservices/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/README.md new file mode 100644 index 000000000000..258f20353ec8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/README.md @@ -0,0 +1,133 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses` Documentation + +The `publicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses" +``` + + +### Client Initialization + +```go +client := publicipaddresses.NewPublicIPAddressesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PublicIPAddressesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +payload := publicipaddresses.PublicIPAddress{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPAddressesClient.DdosProtectionStatus` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPAddressesClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPAddressesClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PublicIPAddressesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PublicIPAddressesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PublicIPAddressesClient.UpdateTags` + +```go +ctx := context.TODO() +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressName") + +payload := publicipaddresses.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_ddosprotectionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_ddosprotectionstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_ddosprotectionstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_ddosprotectionstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlog.go new file mode 100644 index 000000000000..d93575ba1592 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlog.go @@ -0,0 +1,19 @@ +package publicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..f1571aeca23f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..5ae889b74972 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipddosprotectionstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipddosprotectionstatusresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_publicipddosprotectionstatusresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_publicipddosprotectionstatusresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..b40e6fcd671b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/version.go new file mode 100644 index 000000000000..ae6c52d8980b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses/version.go @@ -0,0 +1,10 @@ +package publicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/publicipaddresses/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/README.md new file mode 100644 index 000000000000..09316f3f7c65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes` Documentation + +The `publicipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes" +``` + + +### Client Initialization + +```go +client := publicipprefixes.NewPublicIPPrefixesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `PublicIPPrefixesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixName") + +payload := publicipprefixes.PublicIPPrefix{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPPrefixesClient.Delete` + +```go +ctx := context.TODO() +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PublicIPPrefixesClient.Get` + +```go +ctx := context.TODO() +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixName") + +read, err := client.Get(ctx, id, publicipprefixes.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `PublicIPPrefixesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PublicIPPrefixesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `PublicIPPrefixesClient.UpdateTags` + +```go +ctx := context.TODO() +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixName") + +payload := publicipprefixes.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/client.go new file mode 100644 index 000000000000..78db89733876 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/client.go @@ -0,0 +1,26 @@ +package publicipprefixes + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefixesClient struct { + Client *resourcemanager.Client +} + +func NewPublicIPPrefixesClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicIPPrefixesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "publicipprefixes", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating PublicIPPrefixesClient: %+v", err) + } + + return &PublicIPPrefixesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/constants.go new file mode 100644 index 000000000000..a8c1328b07bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/constants.go @@ -0,0 +1,215 @@ +package publicipprefixes + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPPrefixSkuName string + +const ( + PublicIPPrefixSkuNameStandard PublicIPPrefixSkuName = "Standard" +) + +func PossibleValuesForPublicIPPrefixSkuName() []string { + return []string{ + string(PublicIPPrefixSkuNameStandard), + } +} + +func (s *PublicIPPrefixSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPPrefixSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPPrefixSkuName(input string) (*PublicIPPrefixSkuName, error) { + vals := map[string]PublicIPPrefixSkuName{ + "standard": PublicIPPrefixSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPPrefixSkuName(input) + return &out, nil +} + +type PublicIPPrefixSkuTier string + +const ( + PublicIPPrefixSkuTierGlobal PublicIPPrefixSkuTier = "Global" + PublicIPPrefixSkuTierRegional PublicIPPrefixSkuTier = "Regional" +) + +func PossibleValuesForPublicIPPrefixSkuTier() []string { + return []string{ + string(PublicIPPrefixSkuTierGlobal), + string(PublicIPPrefixSkuTierRegional), + } +} + +func (s *PublicIPPrefixSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPPrefixSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPPrefixSkuTier(input string) (*PublicIPPrefixSkuTier, error) { + vals := map[string]PublicIPPrefixSkuTier{ + "global": PublicIPPrefixSkuTierGlobal, + "regional": PublicIPPrefixSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPPrefixSkuTier(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/id_publicipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/id_publicipprefix.go new file mode 100644 index 000000000000..35801814a579 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/id_publicipprefix.go @@ -0,0 +1,130 @@ +package publicipprefixes + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&PublicIPPrefixId{}) +} + +var _ resourceids.ResourceId = &PublicIPPrefixId{} + +// PublicIPPrefixId is a struct representing the Resource ID for a Public I P Prefix +type PublicIPPrefixId struct { + SubscriptionId string + ResourceGroupName string + PublicIPPrefixName string +} + +// NewPublicIPPrefixID returns a new PublicIPPrefixId struct +func NewPublicIPPrefixID(subscriptionId string, resourceGroupName string, publicIPPrefixName string) PublicIPPrefixId { + return PublicIPPrefixId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + PublicIPPrefixName: publicIPPrefixName, + } +} + +// ParsePublicIPPrefixID parses 'input' into a PublicIPPrefixId +func ParsePublicIPPrefixID(input string) (*PublicIPPrefixId, error) { + parser := resourceids.NewParserFromResourceIdType(&PublicIPPrefixId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PublicIPPrefixId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParsePublicIPPrefixIDInsensitively parses 'input' case-insensitively into a PublicIPPrefixId +// note: this method should only be used for API response data and not user input +func ParsePublicIPPrefixIDInsensitively(input string) (*PublicIPPrefixId, error) { + parser := resourceids.NewParserFromResourceIdType(&PublicIPPrefixId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := PublicIPPrefixId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *PublicIPPrefixId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.PublicIPPrefixName, ok = input.Parsed["publicIPPrefixName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "publicIPPrefixName", input) + } + + return nil +} + +// ValidatePublicIPPrefixID checks that 'input' can be parsed as a Public I P Prefix ID +func ValidatePublicIPPrefixID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParsePublicIPPrefixID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Public I P Prefix ID +func (id PublicIPPrefixId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/publicIPPrefixes/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.PublicIPPrefixName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Public I P Prefix ID +func (id PublicIPPrefixId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticPublicIPPrefixes", "publicIPPrefixes", "publicIPPrefixes"), + resourceids.UserSpecifiedSegment("publicIPPrefixName", "publicIPPrefixName"), + } +} + +// String returns a human-readable description of this Public I P Prefix ID +func (id PublicIPPrefixId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Public I P Prefix Name: %q", id.PublicIPPrefixName), + } + return fmt.Sprintf("Public I P Prefix (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_createorupdate.go new file mode 100644 index 000000000000..eb586e03d6c7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_createorupdate.go @@ -0,0 +1,75 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPPrefix +} + +// CreateOrUpdate ... +func (c PublicIPPrefixesClient) CreateOrUpdate(ctx context.Context, id PublicIPPrefixId, input PublicIPPrefix) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c PublicIPPrefixesClient) CreateOrUpdateThenPoll(ctx context.Context, id PublicIPPrefixId, input PublicIPPrefix) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_delete.go new file mode 100644 index 000000000000..4ef74511d047 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_delete.go @@ -0,0 +1,71 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c PublicIPPrefixesClient) Delete(ctx context.Context, id PublicIPPrefixId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c PublicIPPrefixesClient) DeleteThenPoll(ctx context.Context, id PublicIPPrefixId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_get.go new file mode 100644 index 000000000000..4d05c32931a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_get.go @@ -0,0 +1,83 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPPrefix +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c PublicIPPrefixesClient) Get(ctx context.Context, id PublicIPPrefixId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PublicIPPrefix + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_list.go new file mode 100644 index 000000000000..122a9df6f37a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_list.go @@ -0,0 +1,106 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicIPPrefix +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []PublicIPPrefix +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c PublicIPPrefixesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PublicIPPrefix `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c PublicIPPrefixesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, PublicIPPrefixOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PublicIPPrefixesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate PublicIPPrefixOperationPredicate) (result ListCompleteResult, err error) { + items := make([]PublicIPPrefix, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_listall.go new file mode 100644 index 000000000000..4c49b47b3fef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_listall.go @@ -0,0 +1,106 @@ +package publicipprefixes + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]PublicIPPrefix +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []PublicIPPrefix +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c PublicIPPrefixesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/publicIPPrefixes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]PublicIPPrefix `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c PublicIPPrefixesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, PublicIPPrefixOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c PublicIPPrefixesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate PublicIPPrefixOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]PublicIPPrefix, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_updatetags.go new file mode 100644 index 000000000000..3111479b00a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/method_updatetags.go @@ -0,0 +1,57 @@ +package publicipprefixes + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *PublicIPPrefix +} + +// UpdateTags ... +func (c PublicIPPrefixesClient) UpdateTags(ctx context.Context, id PublicIPPrefixId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model PublicIPPrefix + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_iptag.go new file mode 100644 index 000000000000..e1bbbc73a6e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_iptag.go @@ -0,0 +1,9 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgateway.go new file mode 100644 index 000000000000..170eeff68488 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgateway.go @@ -0,0 +1,20 @@ +package publicipprefixes + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..5c1f46d37373 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaysku.go new file mode 100644 index 000000000000..465e471e9030 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefix.go new file mode 100644 index 000000000000..6679bada47df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefix.go @@ -0,0 +1,22 @@ +package publicipprefixes + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefix struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPPrefixPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPPrefixSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixpropertiesformat.go new file mode 100644 index 000000000000..32b58a818b38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixpropertiesformat.go @@ -0,0 +1,17 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefixPropertiesFormat struct { + CustomIPPrefix *SubResource `json:"customIPPrefix,omitempty"` + IPPrefix *string `json:"ipPrefix,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIpConfiguration,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + PrefixLength *int64 `json:"prefixLength,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAddresses *[]ReferencedPublicIPAddress `json:"publicIPAddresses,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixsku.go new file mode 100644 index 000000000000..0737b92dee17 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_publicipprefixsku.go @@ -0,0 +1,9 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefixSku struct { + Name *PublicIPPrefixSkuName `json:"name,omitempty"` + Tier *PublicIPPrefixSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_referencedpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_referencedpublicipaddress.go new file mode 100644 index 000000000000..26027a800a2b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_referencedpublicipaddress.go @@ -0,0 +1,8 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ReferencedPublicIPAddress struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_subresource.go new file mode 100644 index 000000000000..53e3c780cbf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_subresource.go @@ -0,0 +1,8 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_tagsobject.go new file mode 100644 index 000000000000..6a82f86f28f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/model_tagsobject.go @@ -0,0 +1,8 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/predicates.go new file mode 100644 index 000000000000..7deb3ca2bbf0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/predicates.go @@ -0,0 +1,37 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPPrefixOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p PublicIPPrefixOperationPredicate) Matches(input PublicIPPrefix) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/version.go new file mode 100644 index 000000000000..b2cad2b3bb3f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes/version.go @@ -0,0 +1,10 @@ +package publicipprefixes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/publicipprefixes/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/README.md new file mode 100644 index 000000000000..b45ae71eab1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules` Documentation + +The `routefilterrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules" +``` + + +### Client Initialization + +```go +client := routefilterrules.NewRouteFilterRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RouteFilterRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "routeFilterRuleName") + +payload := routefilterrules.RouteFilterRule{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteFilterRulesClient.Delete` + +```go +ctx := context.TODO() +id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "routeFilterRuleName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteFilterRulesClient.Get` + +```go +ctx := context.TODO() +id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "routeFilterRuleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RouteFilterRulesClient.ListByRouteFilter` + +```go +ctx := context.TODO() +id := routefilterrules.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +// alternatively `client.ListByRouteFilter(ctx, id)` can be used to do batched pagination +items, err := client.ListByRouteFilterComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/id_routefilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/id_routefilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilterrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/id_routefilterrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilterrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/id_routefilterrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_listbyroutefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_listbyroutefilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_listbyroutefilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/method_listbyroutefilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/model_routefilterrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/model_routefilterrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/model_routefilterrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/model_routefilterrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/model_routefilterrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/model_routefilterrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/model_routefilterrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/model_routefilterrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/version.go new file mode 100644 index 000000000000..e66e08f61129 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules/version.go @@ -0,0 +1,10 @@ +package routefilterrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routefilterrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/README.md new file mode 100644 index 000000000000..acba1b1bf137 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters` Documentation + +The `routefilters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters" +``` + + +### Client Initialization + +```go +client := routefilters.NewRouteFiltersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RouteFiltersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +payload := routefilters.RouteFilter{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteFiltersClient.Delete` + +```go +ctx := context.TODO() +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteFiltersClient.Get` + +```go +ctx := context.TODO() +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +read, err := client.Get(ctx, id, routefilters.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RouteFiltersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RouteFiltersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RouteFiltersClient.UpdateTags` + +```go +ctx := context.TODO() +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") + +payload := routefilters.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/id_routefilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/id_routefilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitconnectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitpeeringpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitstats.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressroutecircuitstats.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressroutecircuitstats.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressrouteconnectionid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressrouteconnectionid.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_expressrouteconnectionid.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_expressrouteconnectionid.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6circuitconnectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6circuitconnectionconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6circuitconnectionconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6circuitconnectionconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_ipv6expressroutecircuitpeeringconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_peerexpressroutecircuitconnectionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_routefilterrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_routefilterrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/version.go new file mode 100644 index 000000000000..75fe9113b14a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters/version.go @@ -0,0 +1,10 @@ +package routefilters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routefilters/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/README.md new file mode 100644 index 000000000000..780e952cda52 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes` Documentation + +The `routes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes" +``` + + +### Client Initialization + +```go +client := routes.NewRoutesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RoutesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") + +payload := routes.Route{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RoutesClient.Delete` + +```go +ctx := context.TODO() +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RoutesClient.Get` + +```go +ctx := context.TODO() +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutesClient.List` + +```go +ctx := context.TODO() +id := routes.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/id_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/version.go new file mode 100644 index 000000000000..97cc3ec350bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes/version.go @@ -0,0 +1,10 @@ +package routes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routes/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/README.md new file mode 100644 index 000000000000..c6dcfd420fae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables` Documentation + +The `routetables` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables" +``` + + +### Client Initialization + +```go +client := routetables.NewRouteTablesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RouteTablesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +payload := routetables.RouteTable{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteTablesClient.Delete` + +```go +ctx := context.TODO() +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `RouteTablesClient.Get` + +```go +ctx := context.TODO() +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +read, err := client.Get(ctx, id, routetables.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RouteTablesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RouteTablesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `RouteTablesClient.UpdateTags` + +```go +ctx := context.TODO() +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") + +payload := routetables.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/client.go new file mode 100644 index 000000000000..b52049cd5f7b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/client.go @@ -0,0 +1,26 @@ +package routetables + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablesClient struct { + Client *resourcemanager.Client +} + +func NewRouteTablesClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteTablesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "routetables", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating RouteTablesClient: %+v", err) + } + + return &RouteTablesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/constants.go new file mode 100644 index 000000000000..035ce69edd5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/constants.go @@ -0,0 +1,1198 @@ +package routetables + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/id_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/id_routetable.go new file mode 100644 index 000000000000..a18bf05ff67c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/id_routetable.go @@ -0,0 +1,130 @@ +package routetables + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RouteTableId{}) +} + +var _ resourceids.ResourceId = &RouteTableId{} + +// RouteTableId is a struct representing the Resource ID for a Route Table +type RouteTableId struct { + SubscriptionId string + ResourceGroupName string + RouteTableName string +} + +// NewRouteTableID returns a new RouteTableId struct +func NewRouteTableID(subscriptionId string, resourceGroupName string, routeTableName string) RouteTableId { + return RouteTableId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + RouteTableName: routeTableName, + } +} + +// ParseRouteTableID parses 'input' into a RouteTableId +func ParseRouteTableID(input string) (*RouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteTableId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRouteTableIDInsensitively parses 'input' case-insensitively into a RouteTableId +// note: this method should only be used for API response data and not user input +func ParseRouteTableIDInsensitively(input string) (*RouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteTableId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RouteTableId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.RouteTableName, ok = input.Parsed["routeTableName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeTableName", input) + } + + return nil +} + +// ValidateRouteTableID checks that 'input' can be parsed as a Route Table ID +func ValidateRouteTableID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRouteTableID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Route Table ID +func (id RouteTableId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/routeTables/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.RouteTableName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Route Table ID +func (id RouteTableId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), + } +} + +// String returns a human-readable description of this Route Table ID +func (id RouteTableId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Route Table Name: %q", id.RouteTableName), + } + return fmt.Sprintf("Route Table (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_createorupdate.go new file mode 100644 index 000000000000..04fdd62101df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_createorupdate.go @@ -0,0 +1,75 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *RouteTable +} + +// CreateOrUpdate ... +func (c RouteTablesClient) CreateOrUpdate(ctx context.Context, id RouteTableId, input RouteTable) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c RouteTablesClient) CreateOrUpdateThenPoll(ctx context.Context, id RouteTableId, input RouteTable) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_delete.go new file mode 100644 index 000000000000..6ef6e0e531dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_delete.go @@ -0,0 +1,71 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c RouteTablesClient) Delete(ctx context.Context, id RouteTableId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c RouteTablesClient) DeleteThenPoll(ctx context.Context, id RouteTableId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_get.go new file mode 100644 index 000000000000..6a2409acbfb8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_get.go @@ -0,0 +1,83 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RouteTable +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c RouteTablesClient) Get(ctx context.Context, id RouteTableId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RouteTable + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_list.go new file mode 100644 index 000000000000..c219fd770efe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_list.go @@ -0,0 +1,106 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RouteTable +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RouteTable +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c RouteTablesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RouteTable `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c RouteTablesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, RouteTableOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RouteTablesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate RouteTableOperationPredicate) (result ListCompleteResult, err error) { + items := make([]RouteTable, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_listall.go new file mode 100644 index 000000000000..c3c8de7e20d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_listall.go @@ -0,0 +1,106 @@ +package routetables + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RouteTable +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []RouteTable +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c RouteTablesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/routeTables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RouteTable `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c RouteTablesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, RouteTableOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RouteTablesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate RouteTableOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]RouteTable, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_updatetags.go new file mode 100644 index 000000000000..258335fc6008 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/method_updatetags.go @@ -0,0 +1,57 @@ +package routetables + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RouteTable +} + +// UpdateTags ... +func (c RouteTablesClient) UpdateTags(ctx context.Context, id RouteTableId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RouteTable + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..3f1666af1927 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..aa535e08a6a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..26b2afe4fb6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..2474ea7f89e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..b0ea966f8a50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..da94563b9155 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..d270ac905b2a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspool.go new file mode 100644 index 000000000000..90a55576b632 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..34067eb4dc7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..d85f90834ef0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ddossettings.go new file mode 100644 index 000000000000..ffd9663e3613 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ddossettings.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_delegation.go new file mode 100644 index 000000000000..2098ca8ace81 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_delegation.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlog.go new file mode 100644 index 000000000000..34743bfa20fa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlog.go @@ -0,0 +1,19 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogformatparameters.go new file mode 100644 index 000000000000..46d83a48283e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..8a24bb94c55a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfiguration.go new file mode 100644 index 000000000000..15308372f3ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..c3ba5e8cb16c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..f99a910776db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrule.go new file mode 100644 index 000000000000..b540b7a4ff5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..5fa1c54256cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfiguration.go new file mode 100644 index 000000000000..7f86bd442fd3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..10063b56d94f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..8be23ea8407e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..33538e3da044 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_iptag.go new file mode 100644 index 000000000000..0591a6fbb81a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_iptag.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..6eb63262bd24 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..b4070586d52d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgateway.go new file mode 100644 index 000000000000..cdcecbfa0983 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgateway.go @@ -0,0 +1,20 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..dd643c79c79a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaysku.go new file mode 100644 index 000000000000..8e15e8b12506 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natruleportmapping.go new file mode 100644 index 000000000000..665d5f253ced --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterface.go new file mode 100644 index 000000000000..fac5f0869e65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterface.go @@ -0,0 +1,19 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..9d476ca26425 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..7db216219a15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..60fdba4dd132 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..e81aa38f5f99 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..4cc36c8f7f5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..6f876f8ce533 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..fbd84b3af86c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygroup.go new file mode 100644 index 000000000000..84c0fadac170 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..633f7012e041 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpoint.go new file mode 100644 index 000000000000..80308b3a2a6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpoint.go @@ -0,0 +1,19 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnection.go new file mode 100644 index 000000000000..0e503458e9c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..f8d3eeab02bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..de4e02544056 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..1ba73d98f4af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointproperties.go new file mode 100644 index 000000000000..3d92a4a92e13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkservice.go new file mode 100644 index 000000000000..29bf0cf58348 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..4adf690c566c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..063a4faec37c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..3b1634cb0596 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..e3ad61faa8fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..430eebd19aef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..7be9cd6ea0f2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddress.go new file mode 100644 index 000000000000..8248c499a228 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddress.go @@ -0,0 +1,22 @@ +package routetables + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..84b1e72e903d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..ba0c692ec236 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresssku.go new file mode 100644 index 000000000000..956c758896f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlink.go new file mode 100644 index 000000000000..c5d74e0472b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..eca6b593c69d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourceset.go new file mode 100644 index 000000000000..8a57a8fb40d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_resourceset.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..37bad49cdcb0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_route.go new file mode 100644 index 000000000000..10c17005b287 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_route.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routepropertiesformat.go new file mode 100644 index 000000000000..028abe93e733 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetable.go new file mode 100644 index 000000000000..1b2bb7549974 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetable.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..64470e39699c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrule.go new file mode 100644 index 000000000000..ab6f4a35210d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrule.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..636af5195f05 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlink.go new file mode 100644 index 000000000000..682b36599897 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..7ed4a93de002 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..fba1a21dc465 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..c941578ec3ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..6a6135ec2061 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..a9fcdcec8469 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..25a22cda3fd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..3f11f7d1bad8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnet.go new file mode 100644 index 000000000000..949e07613d67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnet.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..e9da12bf739c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subresource.go new file mode 100644 index 000000000000..eab315946e0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_subresource.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_tagsobject.go new file mode 100644 index 000000000000..61b33687ad47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_tagsobject.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..e02ff0c097ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..d88b7ea067e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktap.go new file mode 100644 index 000000000000..7551bed07c8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..2094070851fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/predicates.go new file mode 100644 index 000000000000..e1d89b9fbd49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/predicates.go @@ -0,0 +1,37 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTableOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p RouteTableOperationPredicate) Matches(input RouteTable) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/version.go new file mode 100644 index 000000000000..904c3ac9da96 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables/version.go @@ -0,0 +1,10 @@ +package routetables + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routetables/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/README.md new file mode 100644 index 000000000000..ef390e4cd44b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections` Documentation + +The `routingrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections" +``` + + +### Client Initialization + +```go +client := routingrulecollections.NewRoutingRuleCollectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RoutingRuleCollectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routingrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName") + +payload := routingrulecollections.RoutingRuleCollection{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutingRuleCollectionsClient.Delete` + +```go +ctx := context.TODO() +id := routingrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName") + +if err := client.DeleteThenPoll(ctx, id, routingrulecollections.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `RoutingRuleCollectionsClient.Get` + +```go +ctx := context.TODO() +id := routingrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutingRuleCollectionsClient.List` + +```go +ctx := context.TODO() +id := routingrulecollections.NewRoutingConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName") + +// alternatively `client.List(ctx, id, routingrulecollections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, routingrulecollections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/client.go new file mode 100644 index 000000000000..23d57a922010 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/client.go @@ -0,0 +1,26 @@ +package routingrulecollections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleCollectionsClient struct { + Client *resourcemanager.Client +} + +func NewRoutingRuleCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoutingRuleCollectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "routingrulecollections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating RoutingRuleCollectionsClient: %+v", err) + } + + return &RoutingRuleCollectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/constants.go new file mode 100644 index 000000000000..3f69337d8987 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/constants.go @@ -0,0 +1,98 @@ +package routingrulecollections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DisableBgpRoutePropagation string + +const ( + DisableBgpRoutePropagationFalse DisableBgpRoutePropagation = "False" + DisableBgpRoutePropagationTrue DisableBgpRoutePropagation = "True" +) + +func PossibleValuesForDisableBgpRoutePropagation() []string { + return []string{ + string(DisableBgpRoutePropagationFalse), + string(DisableBgpRoutePropagationTrue), + } +} + +func (s *DisableBgpRoutePropagation) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDisableBgpRoutePropagation(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDisableBgpRoutePropagation(input string) (*DisableBgpRoutePropagation, error) { + vals := map[string]DisableBgpRoutePropagation{ + "false": DisableBgpRoutePropagationFalse, + "true": DisableBgpRoutePropagationTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DisableBgpRoutePropagation(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_routingconfiguration.go new file mode 100644 index 000000000000..1f12375338ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_routingconfiguration.go @@ -0,0 +1,139 @@ +package routingrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RoutingConfigurationId{}) +} + +var _ resourceids.ResourceId = &RoutingConfigurationId{} + +// RoutingConfigurationId is a struct representing the Resource ID for a Routing Configuration +type RoutingConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string +} + +// NewRoutingConfigurationID returns a new RoutingConfigurationId struct +func NewRoutingConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string) RoutingConfigurationId { + return RoutingConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + } +} + +// ParseRoutingConfigurationID parses 'input' into a RoutingConfigurationId +func ParseRoutingConfigurationID(input string) (*RoutingConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRoutingConfigurationIDInsensitively parses 'input' case-insensitively into a RoutingConfigurationId +// note: this method should only be used for API response data and not user input +func ParseRoutingConfigurationIDInsensitively(input string) (*RoutingConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RoutingConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + return nil +} + +// ValidateRoutingConfigurationID checks that 'input' can be parsed as a Routing Configuration ID +func ValidateRoutingConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRoutingConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Routing Configuration ID +func (id RoutingConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Routing Configuration ID +func (id RoutingConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + } +} + +// String returns a human-readable description of this Routing Configuration ID +func (id RoutingConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + } + return fmt.Sprintf("Routing Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_rulecollection.go new file mode 100644 index 000000000000..a6828c644867 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/id_rulecollection.go @@ -0,0 +1,148 @@ +package routingrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionId{} + +// RuleCollectionId is a struct representing the Resource ID for a Rule Collection +type RuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string + RuleCollectionName string +} + +// NewRuleCollectionID returns a new RuleCollectionId struct +func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string, ruleCollectionName string) RuleCollectionId { + return RuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseRuleCollectionID parses 'input' into a RuleCollectionId +func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID +func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection ID +func (id RuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID +func (id RuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Rule Collection ID +func (id RuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_createorupdate.go new file mode 100644 index 000000000000..4fc90824f8fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_createorupdate.go @@ -0,0 +1,58 @@ +package routingrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingRuleCollection +} + +// CreateOrUpdate ... +func (c RoutingRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id RuleCollectionId, input RoutingRuleCollection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_delete.go new file mode 100644 index 000000000000..dbc7657c4cad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_delete.go @@ -0,0 +1,100 @@ +package routingrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c RoutingRuleCollectionsClient) Delete(ctx context.Context, id RuleCollectionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c RoutingRuleCollectionsClient) DeleteThenPoll(ctx context.Context, id RuleCollectionId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_get.go new file mode 100644 index 000000000000..02ef76119f56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_get.go @@ -0,0 +1,53 @@ +package routingrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingRuleCollection +} + +// Get ... +func (c RoutingRuleCollectionsClient) Get(ctx context.Context, id RuleCollectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_list.go new file mode 100644 index 000000000000..9911a1912bd9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/method_list.go @@ -0,0 +1,134 @@ +package routingrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RoutingRuleCollection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RoutingRuleCollection +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c RoutingRuleCollectionsClient) List(ctx context.Context, id RoutingConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RoutingRuleCollection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c RoutingRuleCollectionsClient) ListComplete(ctx context.Context, id RoutingConfigurationId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, RoutingRuleCollectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RoutingRuleCollectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id RoutingConfigurationId, options ListOperationOptions, predicate RoutingRuleCollectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]RoutingRuleCollection, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_networkmanagerroutinggroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_networkmanagerroutinggroupitem.go new file mode 100644 index 000000000000..1f6c81f7f4a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_networkmanagerroutinggroupitem.go @@ -0,0 +1,8 @@ +package routingrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkManagerRoutingGroupItem struct { + NetworkGroupId string `json:"networkGroupId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollection.go new file mode 100644 index 000000000000..46b420d67073 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollection.go @@ -0,0 +1,17 @@ +package routingrulecollections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleCollection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutingRuleCollectionPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollectionpropertiesformat.go new file mode 100644 index 000000000000..089e4d560ae8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/model_routingrulecollectionpropertiesformat.go @@ -0,0 +1,12 @@ +package routingrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleCollectionPropertiesFormat struct { + AppliesTo []NetworkManagerRoutingGroupItem `json:"appliesTo"` + Description *string `json:"description,omitempty"` + DisableBgpRoutePropagation *DisableBgpRoutePropagation `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/predicates.go new file mode 100644 index 000000000000..3a5830616cdc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/predicates.go @@ -0,0 +1,32 @@ +package routingrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleCollectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RoutingRuleCollectionOperationPredicate) Matches(input RoutingRuleCollection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/version.go new file mode 100644 index 000000000000..aac0da658f85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections/version.go @@ -0,0 +1,10 @@ +package routingrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routingrulecollections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/README.md new file mode 100644 index 000000000000..64ff0a561550 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules` Documentation + +The `routingrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules" +``` + + +### Client Initialization + +```go +client := routingrules.NewRoutingRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `RoutingRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := routingrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName", "ruleName") + +payload := routingrules.RoutingRule{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutingRulesClient.Delete` + +```go +ctx := context.TODO() +id := routingrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName", "ruleName") + +if err := client.DeleteThenPoll(ctx, id, routingrules.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `RoutingRulesClient.Get` + +```go +ctx := context.TODO() +id := routingrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName", "ruleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `RoutingRulesClient.List` + +```go +ctx := context.TODO() +id := routingrules.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "routingConfigurationName", "ruleCollectionName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/client.go new file mode 100644 index 000000000000..8fb9187c0c38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/client.go @@ -0,0 +1,26 @@ +package routingrules + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRulesClient struct { + Client *resourcemanager.Client +} + +func NewRoutingRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoutingRulesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "routingrules", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating RoutingRulesClient: %+v", err) + } + + return &RoutingRulesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/constants.go new file mode 100644 index 000000000000..ca5824bf6060 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/constants.go @@ -0,0 +1,148 @@ +package routingrules + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type RoutingRuleDestinationType string + +const ( + RoutingRuleDestinationTypeAddressPrefix RoutingRuleDestinationType = "AddressPrefix" + RoutingRuleDestinationTypeServiceTag RoutingRuleDestinationType = "ServiceTag" +) + +func PossibleValuesForRoutingRuleDestinationType() []string { + return []string{ + string(RoutingRuleDestinationTypeAddressPrefix), + string(RoutingRuleDestinationTypeServiceTag), + } +} + +func (s *RoutingRuleDestinationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRoutingRuleDestinationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRoutingRuleDestinationType(input string) (*RoutingRuleDestinationType, error) { + vals := map[string]RoutingRuleDestinationType{ + "addressprefix": RoutingRuleDestinationTypeAddressPrefix, + "servicetag": RoutingRuleDestinationTypeServiceTag, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RoutingRuleDestinationType(input) + return &out, nil +} + +type RoutingRuleNextHopType string + +const ( + RoutingRuleNextHopTypeInternet RoutingRuleNextHopType = "Internet" + RoutingRuleNextHopTypeNoNextHop RoutingRuleNextHopType = "NoNextHop" + RoutingRuleNextHopTypeVirtualAppliance RoutingRuleNextHopType = "VirtualAppliance" + RoutingRuleNextHopTypeVirtualNetworkGateway RoutingRuleNextHopType = "VirtualNetworkGateway" + RoutingRuleNextHopTypeVnetLocal RoutingRuleNextHopType = "VnetLocal" +) + +func PossibleValuesForRoutingRuleNextHopType() []string { + return []string{ + string(RoutingRuleNextHopTypeInternet), + string(RoutingRuleNextHopTypeNoNextHop), + string(RoutingRuleNextHopTypeVirtualAppliance), + string(RoutingRuleNextHopTypeVirtualNetworkGateway), + string(RoutingRuleNextHopTypeVnetLocal), + } +} + +func (s *RoutingRuleNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRoutingRuleNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRoutingRuleNextHopType(input string) (*RoutingRuleNextHopType, error) { + vals := map[string]RoutingRuleNextHopType{ + "internet": RoutingRuleNextHopTypeInternet, + "nonexthop": RoutingRuleNextHopTypeNoNextHop, + "virtualappliance": RoutingRuleNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RoutingRuleNextHopTypeVirtualNetworkGateway, + "vnetlocal": RoutingRuleNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RoutingRuleNextHopType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rule.go similarity index 76% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rule.go index 80c294a2cdd5..6418e71b7861 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rule.go @@ -1,4 +1,4 @@ -package adminrules +package routingrules import ( "fmt" @@ -19,23 +19,23 @@ var _ resourceids.ResourceId = &RuleId{} // RuleId is a struct representing the Resource ID for a Rule type RuleId struct { - SubscriptionId string - ResourceGroupName string - NetworkManagerName string - SecurityAdminConfigurationName string - RuleCollectionName string - RuleName string + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string + RuleCollectionName string + RuleName string } // NewRuleID returns a new RuleId struct -func NewRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, securityAdminConfigurationName string, ruleCollectionName string, ruleName string) RuleId { +func NewRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string, ruleCollectionName string, ruleName string) RuleId { return RuleId{ - SubscriptionId: subscriptionId, - ResourceGroupName: resourceGroupName, - NetworkManagerName: networkManagerName, - SecurityAdminConfigurationName: securityAdminConfigurationName, - RuleCollectionName: ruleCollectionName, - RuleName: ruleName, + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + RuleCollectionName: ruleCollectionName, + RuleName: ruleName, } } @@ -87,8 +87,8 @@ func (id *RuleId) FromParseResult(input resourceids.ParseResult) error { return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) } - if id.SecurityAdminConfigurationName, ok = input.Parsed["securityAdminConfigurationName"]; !ok { - return resourceids.NewSegmentNotSpecifiedError(id, "securityAdminConfigurationName", input) + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) } if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { @@ -119,8 +119,8 @@ func ValidateRuleID(input interface{}, key string) (warnings []string, errors [] // ID returns the formatted Rule ID func (id RuleId) ID() string { - fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityAdminConfigurations/%s/ruleCollections/%s/rules/%s" - return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityAdminConfigurationName, id.RuleCollectionName, id.RuleName) + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s/ruleCollections/%s/rules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName, id.RuleCollectionName, id.RuleName) } // Segments returns a slice of Resource ID Segments which comprise this Rule ID @@ -134,8 +134,8 @@ func (id RuleId) Segments() []resourceids.Segment { resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), - resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), resourceids.StaticSegment("staticRules", "rules", "rules"), @@ -149,7 +149,7 @@ func (id RuleId) String() string { fmt.Sprintf("Subscription: %q", id.SubscriptionId), fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), - fmt.Sprintf("Security Admin Configuration Name: %q", id.SecurityAdminConfigurationName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), fmt.Sprintf("Rule Name: %q", id.RuleName), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rulecollection.go new file mode 100644 index 000000000000..44d316acd6fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/id_rulecollection.go @@ -0,0 +1,148 @@ +package routingrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionId{} + +// RuleCollectionId is a struct representing the Resource ID for a Rule Collection +type RuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + RoutingConfigurationName string + RuleCollectionName string +} + +// NewRuleCollectionID returns a new RuleCollectionId struct +func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string, ruleCollectionName string) RuleCollectionId { + return RuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + RoutingConfigurationName: routingConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseRuleCollectionID parses 'input' into a RuleCollectionId +func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.RoutingConfigurationName, ok = input.Parsed["routingConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID +func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection ID +func (id RuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/routingConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.RoutingConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID +func (id RuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticRoutingConfigurations", "routingConfigurations", "routingConfigurations"), + resourceids.UserSpecifiedSegment("routingConfigurationName", "routingConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Rule Collection ID +func (id RuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Routing Configuration Name: %q", id.RoutingConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_createorupdate.go new file mode 100644 index 000000000000..35bab8015636 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_createorupdate.go @@ -0,0 +1,58 @@ +package routingrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingRule +} + +// CreateOrUpdate ... +func (c RoutingRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input RoutingRule) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_delete.go new file mode 100644 index 000000000000..3e5ea4998c86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_delete.go @@ -0,0 +1,100 @@ +package routingrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c RoutingRulesClient) Delete(ctx context.Context, id RuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c RoutingRulesClient) DeleteThenPoll(ctx context.Context, id RuleId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_get.go new file mode 100644 index 000000000000..746ff6cedf38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_get.go @@ -0,0 +1,53 @@ +package routingrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingRule +} + +// Get ... +func (c RoutingRulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_list.go new file mode 100644 index 000000000000..76a1bfb9a068 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/method_list.go @@ -0,0 +1,105 @@ +package routingrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RoutingRule +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RoutingRule +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c RoutingRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RoutingRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c RoutingRulesClient) ListComplete(ctx context.Context, id RuleCollectionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, RoutingRuleOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c RoutingRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id RuleCollectionId, predicate RoutingRuleOperationPredicate) (result ListCompleteResult, err error) { + items := make([]RoutingRule, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrule.go new file mode 100644 index 000000000000..7f78cd2655a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrule.go @@ -0,0 +1,17 @@ +package routingrules + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutingRulePropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulenexthop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulenexthop.go new file mode 100644 index 000000000000..4cc1a52a6fee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulenexthop.go @@ -0,0 +1,9 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleNextHop struct { + NextHopAddress *string `json:"nextHopAddress,omitempty"` + NextHopType RoutingRuleNextHopType `json:"nextHopType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulepropertiesformat.go new file mode 100644 index 000000000000..a45d96ed053c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingrulepropertiesformat.go @@ -0,0 +1,12 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRulePropertiesFormat struct { + Description *string `json:"description,omitempty"` + Destination RoutingRuleRouteDestination `json:"destination"` + NextHop RoutingRuleNextHop `json:"nextHop"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingruleroutedestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingruleroutedestination.go new file mode 100644 index 000000000000..e05f812849c8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/model_routingruleroutedestination.go @@ -0,0 +1,9 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleRouteDestination struct { + DestinationAddress string `json:"destinationAddress"` + Type RoutingRuleDestinationType `json:"type"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/predicates.go new file mode 100644 index 000000000000..b668fb3729bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/predicates.go @@ -0,0 +1,32 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingRuleOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RoutingRuleOperationPredicate) Matches(input RoutingRule) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/version.go new file mode 100644 index 000000000000..28e9582a9b25 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules/version.go @@ -0,0 +1,10 @@ +package routingrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/routingrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/README.md new file mode 100644 index 000000000000..e696fd59a336 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/README.md @@ -0,0 +1,90 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections` Documentation + +The `scopeconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections" +``` + + +### Client Initialization + +```go +client := scopeconnections.NewScopeConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ScopeConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") + +payload := scopeconnections.ScopeConnection{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ScopeConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ScopeConnectionsClient.Get` + +```go +ctx := context.TODO() +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ScopeConnectionsClient.List` + +```go +ctx := context.TODO() +id := scopeconnections.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, scopeconnections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, scopeconnections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_scopeconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/id_scopeconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/model_scopeconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/model_scopeconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/version.go new file mode 100644 index 000000000000..7da54c1ad83a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections/version.go @@ -0,0 +1,10 @@ +package scopeconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/scopeconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/README.md new file mode 100644 index 000000000000..e72955e6e0dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations` Documentation + +The `securityadminconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations" +``` + + +### Client Initialization + +```go +client := securityadminconfigurations.NewSecurityAdminConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityAdminConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") + +payload := securityadminconfigurations.SecurityAdminConfiguration{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityAdminConfigurationsClient.Delete` + +```go +ctx := context.TODO() +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") + +if err := client.DeleteThenPoll(ctx, id, securityadminconfigurations.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityAdminConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityAdminConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityAdminConfigurationsClient.List` + +```go +ctx := context.TODO() +id := securityadminconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, securityadminconfigurations.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, securityadminconfigurations.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_networkmanager.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_networkmanager.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_securityadminconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/id_securityadminconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/model_securityadminconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/version.go new file mode 100644 index 000000000000..94e4d3bae971 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations/version.go @@ -0,0 +1,10 @@ +package securityadminconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityadminconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/README.md new file mode 100644 index 000000000000..2df7253b4eb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders` Documentation + +The `securitypartnerproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders" +``` + + +### Client Initialization + +```go +client := securitypartnerproviders.NewSecurityPartnerProvidersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityPartnerProvidersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") + +payload := securitypartnerproviders.SecurityPartnerProvider{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.Delete` + +```go +ctx := context.TODO() +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.Get` + +```go +ctx := context.TODO() +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `SecurityPartnerProvidersClient.UpdateTags` + +```go +ctx := context.TODO() +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") + +payload := securitypartnerproviders.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/id_securitypartnerprovider.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/id_securitypartnerprovider.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerprovider.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerprovider.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerprovider.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_securitypartnerproviderpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/version.go new file mode 100644 index 000000000000..353e81288182 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders/version.go @@ -0,0 +1,10 @@ +package securitypartnerproviders + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securitypartnerproviders/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/README.md new file mode 100644 index 000000000000..b1455f31447d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/README.md @@ -0,0 +1,115 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules` Documentation + +The `securityrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules" +``` + + +### Client Initialization + +```go +client := securityrules.NewSecurityRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") + +payload := securityrules.SecurityRule{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityRulesClient.DefaultSecurityRulesGet` + +```go +ctx := context.TODO() +id := securityrules.NewDefaultSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "defaultSecurityRuleName") + +read, err := client.DefaultSecurityRulesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityRulesClient.DefaultSecurityRulesList` + +```go +ctx := context.TODO() +id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +// alternatively `client.DefaultSecurityRulesList(ctx, id)` can be used to do batched pagination +items, err := client.DefaultSecurityRulesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `SecurityRulesClient.Delete` + +```go +ctx := context.TODO() +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityRulesClient.Get` + +```go +ctx := context.TODO() +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityRulesClient.List` + +```go +ctx := context.TODO() +id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_defaultsecurityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_defaultsecurityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/id_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityruleslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityruleslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_defaultsecurityruleslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/version.go new file mode 100644 index 000000000000..2a5379084d59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules/version.go @@ -0,0 +1,10 @@ +package securityrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/README.md new file mode 100644 index 000000000000..5437eb2a16c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations` Documentation + +The `securityuserconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations" +``` + + +### Client Initialization + +```go +client := securityuserconfigurations.NewSecurityUserConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityUserConfigurationsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityuserconfigurations.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName") + +payload := securityuserconfigurations.SecurityUserConfiguration{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserConfigurationsClient.Delete` + +```go +ctx := context.TODO() +id := securityuserconfigurations.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName") + +if err := client.DeleteThenPoll(ctx, id, securityuserconfigurations.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityUserConfigurationsClient.Get` + +```go +ctx := context.TODO() +id := securityuserconfigurations.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserConfigurationsClient.List` + +```go +ctx := context.TODO() +id := securityuserconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") + +// alternatively `client.List(ctx, id, securityuserconfigurations.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, securityuserconfigurations.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/client.go new file mode 100644 index 000000000000..81e35e1bfd00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/client.go @@ -0,0 +1,26 @@ +package securityuserconfigurations + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserConfigurationsClient struct { + Client *resourcemanager.Client +} + +func NewSecurityUserConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityUserConfigurationsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securityuserconfigurations", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityUserConfigurationsClient: %+v", err) + } + + return &SecurityUserConfigurationsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/constants.go new file mode 100644 index 000000000000..28a18df66979 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/constants.go @@ -0,0 +1,57 @@ +package securityuserconfigurations + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_networkmanager.go new file mode 100644 index 000000000000..a1c611edbe64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_networkmanager.go @@ -0,0 +1,130 @@ +package securityuserconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkManagerId{}) +} + +var _ resourceids.ResourceId = &NetworkManagerId{} + +// NetworkManagerId is a struct representing the Resource ID for a Network Manager +type NetworkManagerId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string +} + +// NewNetworkManagerID returns a new NetworkManagerId struct +func NewNetworkManagerID(subscriptionId string, resourceGroupName string, networkManagerName string) NetworkManagerId { + return NetworkManagerId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + } +} + +// ParseNetworkManagerID parses 'input' into a NetworkManagerId +func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkManagerIDInsensitively parses 'input' case-insensitively into a NetworkManagerId +// note: this method should only be used for API response data and not user input +func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkManagerId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkManagerId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkManagerId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + return nil +} + +// ValidateNetworkManagerID checks that 'input' can be parsed as a Network Manager ID +func ValidateNetworkManagerID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkManagerID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Manager ID +func (id NetworkManagerId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Manager ID +func (id NetworkManagerId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + } +} + +// String returns a human-readable description of this Network Manager ID +func (id NetworkManagerId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + } + return fmt.Sprintf("Network Manager (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_securityuserconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_securityuserconfiguration.go new file mode 100644 index 000000000000..6df5321bd18b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/id_securityuserconfiguration.go @@ -0,0 +1,139 @@ +package securityuserconfigurations + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityUserConfigurationId{}) +} + +var _ resourceids.ResourceId = &SecurityUserConfigurationId{} + +// SecurityUserConfigurationId is a struct representing the Resource ID for a Security User Configuration +type SecurityUserConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string +} + +// NewSecurityUserConfigurationID returns a new SecurityUserConfigurationId struct +func NewSecurityUserConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string) SecurityUserConfigurationId { + return SecurityUserConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + } +} + +// ParseSecurityUserConfigurationID parses 'input' into a SecurityUserConfigurationId +func ParseSecurityUserConfigurationID(input string) (*SecurityUserConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityUserConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityUserConfigurationId +// note: this method should only be used for API response data and not user input +func ParseSecurityUserConfigurationIDInsensitively(input string) (*SecurityUserConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityUserConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + return nil +} + +// ValidateSecurityUserConfigurationID checks that 'input' can be parsed as a Security User Configuration ID +func ValidateSecurityUserConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityUserConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security User Configuration ID +func (id SecurityUserConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security User Configuration ID +func (id SecurityUserConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + } +} + +// String returns a human-readable description of this Security User Configuration ID +func (id SecurityUserConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + } + return fmt.Sprintf("Security User Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_createorupdate.go new file mode 100644 index 000000000000..dd523a473767 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_createorupdate.go @@ -0,0 +1,58 @@ +package securityuserconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserConfiguration +} + +// CreateOrUpdate ... +func (c SecurityUserConfigurationsClient) CreateOrUpdate(ctx context.Context, id SecurityUserConfigurationId, input SecurityUserConfiguration) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_delete.go new file mode 100644 index 000000000000..afdd0d941f6c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_delete.go @@ -0,0 +1,100 @@ +package securityuserconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c SecurityUserConfigurationsClient) Delete(ctx context.Context, id SecurityUserConfigurationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityUserConfigurationsClient) DeleteThenPoll(ctx context.Context, id SecurityUserConfigurationId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_get.go new file mode 100644 index 000000000000..bf0940d6925d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_get.go @@ -0,0 +1,53 @@ +package securityuserconfigurations + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserConfiguration +} + +// Get ... +func (c SecurityUserConfigurationsClient) Get(ctx context.Context, id SecurityUserConfigurationId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_list.go new file mode 100644 index 000000000000..43f0254db990 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/method_list.go @@ -0,0 +1,134 @@ +package securityuserconfigurations + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityUserConfiguration +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityUserConfiguration +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityUserConfigurationsClient) List(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/securityUserConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityUserConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityUserConfigurationsClient) ListComplete(ctx context.Context, id NetworkManagerId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, SecurityUserConfigurationOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityUserConfigurationsClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkManagerId, options ListOperationOptions, predicate SecurityUserConfigurationOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityUserConfiguration, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfiguration.go new file mode 100644 index 000000000000..9ac10a92364b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfiguration.go @@ -0,0 +1,17 @@ +package securityuserconfigurations + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityUserConfigurationPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfigurationpropertiesformat.go new file mode 100644 index 000000000000..18af4f046ec1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/model_securityuserconfigurationpropertiesformat.go @@ -0,0 +1,10 @@ +package securityuserconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserConfigurationPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/predicates.go new file mode 100644 index 000000000000..835b3ccdcdb4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/predicates.go @@ -0,0 +1,32 @@ +package securityuserconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SecurityUserConfigurationOperationPredicate) Matches(input SecurityUserConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/version.go new file mode 100644 index 000000000000..5f278bd75f04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations/version.go @@ -0,0 +1,10 @@ +package securityuserconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityuserconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/README.md new file mode 100644 index 000000000000..d94abcbf9a0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections` Documentation + +The `securityuserrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections" +``` + + +### Client Initialization + +```go +client := securityuserrulecollections.NewSecurityUserRuleCollectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityUserRuleCollectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName") + +payload := securityuserrulecollections.SecurityUserRuleCollection{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserRuleCollectionsClient.Delete` + +```go +ctx := context.TODO() +id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName") + +if err := client.DeleteThenPoll(ctx, id, securityuserrulecollections.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityUserRuleCollectionsClient.Get` + +```go +ctx := context.TODO() +id := securityuserrulecollections.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserRuleCollectionsClient.List` + +```go +ctx := context.TODO() +id := securityuserrulecollections.NewSecurityUserConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName") + +// alternatively `client.List(ctx, id, securityuserrulecollections.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, securityuserrulecollections.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/client.go new file mode 100644 index 000000000000..2e65998d9690 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/client.go @@ -0,0 +1,26 @@ +package securityuserrulecollections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleCollectionsClient struct { + Client *resourcemanager.Client +} + +func NewSecurityUserRuleCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityUserRuleCollectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securityuserrulecollections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityUserRuleCollectionsClient: %+v", err) + } + + return &SecurityUserRuleCollectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/constants.go new file mode 100644 index 000000000000..d49d97eed47e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/constants.go @@ -0,0 +1,57 @@ +package securityuserrulecollections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfiguration.go new file mode 100644 index 000000000000..ab8dfdd078df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfiguration.go @@ -0,0 +1,139 @@ +package securityuserrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityUserConfigurationId{}) +} + +var _ resourceids.ResourceId = &SecurityUserConfigurationId{} + +// SecurityUserConfigurationId is a struct representing the Resource ID for a Security User Configuration +type SecurityUserConfigurationId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string +} + +// NewSecurityUserConfigurationID returns a new SecurityUserConfigurationId struct +func NewSecurityUserConfigurationID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string) SecurityUserConfigurationId { + return SecurityUserConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + } +} + +// ParseSecurityUserConfigurationID parses 'input' into a SecurityUserConfigurationId +func ParseSecurityUserConfigurationID(input string) (*SecurityUserConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityUserConfigurationIDInsensitively parses 'input' case-insensitively into a SecurityUserConfigurationId +// note: this method should only be used for API response data and not user input +func ParseSecurityUserConfigurationIDInsensitively(input string) (*SecurityUserConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityUserConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + return nil +} + +// ValidateSecurityUserConfigurationID checks that 'input' can be parsed as a Security User Configuration ID +func ValidateSecurityUserConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityUserConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security User Configuration ID +func (id SecurityUserConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security User Configuration ID +func (id SecurityUserConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + } +} + +// String returns a human-readable description of this Security User Configuration ID +func (id SecurityUserConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + } + return fmt.Sprintf("Security User Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfigurationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfigurationrulecollection.go new file mode 100644 index 000000000000..2b4f8fd6ed58 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/id_securityuserconfigurationrulecollection.go @@ -0,0 +1,148 @@ +package securityuserrulecollections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityUserConfigurationRuleCollectionId{}) +} + +var _ resourceids.ResourceId = &SecurityUserConfigurationRuleCollectionId{} + +// SecurityUserConfigurationRuleCollectionId is a struct representing the Resource ID for a Security User Configuration Rule Collection +type SecurityUserConfigurationRuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string + RuleCollectionName string +} + +// NewSecurityUserConfigurationRuleCollectionID returns a new SecurityUserConfigurationRuleCollectionId struct +func NewSecurityUserConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string, ruleCollectionName string) SecurityUserConfigurationRuleCollectionId { + return SecurityUserConfigurationRuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseSecurityUserConfigurationRuleCollectionID parses 'input' into a SecurityUserConfigurationRuleCollectionId +func ParseSecurityUserConfigurationRuleCollectionID(input string) (*SecurityUserConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityUserConfigurationRuleCollectionIDInsensitively parses 'input' case-insensitively into a SecurityUserConfigurationRuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseSecurityUserConfigurationRuleCollectionIDInsensitively(input string) (*SecurityUserConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityUserConfigurationRuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateSecurityUserConfigurationRuleCollectionID checks that 'input' can be parsed as a Security User Configuration Rule Collection ID +func ValidateSecurityUserConfigurationRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityUserConfigurationRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Security User Configuration Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_createorupdate.go new file mode 100644 index 000000000000..a6360eab05ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_createorupdate.go @@ -0,0 +1,58 @@ +package securityuserrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserRuleCollection +} + +// CreateOrUpdate ... +func (c SecurityUserRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id SecurityUserConfigurationRuleCollectionId, input SecurityUserRuleCollection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_delete.go new file mode 100644 index 000000000000..45d73ed7010a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_delete.go @@ -0,0 +1,100 @@ +package securityuserrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c SecurityUserRuleCollectionsClient) Delete(ctx context.Context, id SecurityUserConfigurationRuleCollectionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityUserRuleCollectionsClient) DeleteThenPoll(ctx context.Context, id SecurityUserConfigurationRuleCollectionId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_get.go new file mode 100644 index 000000000000..6e3eacdacacd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_get.go @@ -0,0 +1,53 @@ +package securityuserrulecollections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserRuleCollection +} + +// Get ... +func (c SecurityUserRuleCollectionsClient) Get(ctx context.Context, id SecurityUserConfigurationRuleCollectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserRuleCollection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_list.go new file mode 100644 index 000000000000..72290b92b790 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/method_list.go @@ -0,0 +1,134 @@ +package securityuserrulecollections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityUserRuleCollection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityUserRuleCollection +} + +type ListOperationOptions struct { + Top *int64 +} + +func DefaultListOperationOptions() ListOperationOptions { + return ListOperationOptions{} +} + +func (o ListOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o ListOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o ListOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Top != nil { + out.Append("$top", fmt.Sprintf("%v", *o.Top)) + } + return &out +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityUserRuleCollectionsClient) List(ctx context.Context, id SecurityUserConfigurationId, options ListOperationOptions) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/ruleCollections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityUserRuleCollection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityUserRuleCollectionsClient) ListComplete(ctx context.Context, id SecurityUserConfigurationId, options ListOperationOptions) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, options, SecurityUserRuleCollectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityUserRuleCollectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id SecurityUserConfigurationId, options ListOperationOptions, predicate SecurityUserRuleCollectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityUserRuleCollection, 0) + + resp, err := c.List(ctx, id, options) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityusergroupitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityusergroupitem.go new file mode 100644 index 000000000000..a067fbcbfe0a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityusergroupitem.go @@ -0,0 +1,8 @@ +package securityuserrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserGroupItem struct { + NetworkGroupId string `json:"networkGroupId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollection.go new file mode 100644 index 000000000000..dc9c51b4598c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollection.go @@ -0,0 +1,17 @@ +package securityuserrulecollections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleCollection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityUserRuleCollectionPropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollectionpropertiesformat.go new file mode 100644 index 000000000000..752e873a957e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/model_securityuserrulecollectionpropertiesformat.go @@ -0,0 +1,11 @@ +package securityuserrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleCollectionPropertiesFormat struct { + AppliesToGroups []SecurityUserGroupItem `json:"appliesToGroups"` + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/predicates.go new file mode 100644 index 000000000000..10ac4063ad9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/predicates.go @@ -0,0 +1,32 @@ +package securityuserrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleCollectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SecurityUserRuleCollectionOperationPredicate) Matches(input SecurityUserRuleCollection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/version.go new file mode 100644 index 000000000000..c504c33da968 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections/version.go @@ -0,0 +1,10 @@ +package securityuserrulecollections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityuserrulecollections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/README.md new file mode 100644 index 000000000000..c3506759641c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules` Documentation + +The `securityuserrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules" +``` + + +### Client Initialization + +```go +client := securityuserrules.NewSecurityUserRulesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SecurityUserRulesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := securityuserrules.NewRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName", "ruleName") + +payload := securityuserrules.SecurityUserRule{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserRulesClient.Delete` + +```go +ctx := context.TODO() +id := securityuserrules.NewRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName", "ruleName") + +if err := client.DeleteThenPoll(ctx, id, securityuserrules.DefaultDeleteOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `SecurityUserRulesClient.Get` + +```go +ctx := context.TODO() +id := securityuserrules.NewRuleCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName", "ruleName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SecurityUserRulesClient.List` + +```go +ctx := context.TODO() +id := securityuserrules.NewSecurityUserConfigurationRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "securityUserConfigurationName", "ruleCollectionName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/client.go new file mode 100644 index 000000000000..bd99ee4be9c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/client.go @@ -0,0 +1,26 @@ +package securityuserrules + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRulesClient struct { + Client *resourcemanager.Client +} + +func NewSecurityUserRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityUserRulesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "securityuserrules", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SecurityUserRulesClient: %+v", err) + } + + return &SecurityUserRulesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/constants.go new file mode 100644 index 000000000000..ef9491794bdf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/constants.go @@ -0,0 +1,192 @@ +package securityuserrules + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressPrefixType string + +const ( + AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" + AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" +) + +func PossibleValuesForAddressPrefixType() []string { + return []string{ + string(AddressPrefixTypeIPPrefix), + string(AddressPrefixTypeServiceTag), + } +} + +func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAddressPrefixType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAddressPrefixType(input string) (*AddressPrefixType, error) { + vals := map[string]AddressPrefixType{ + "ipprefix": AddressPrefixTypeIPPrefix, + "servicetag": AddressPrefixTypeServiceTag, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AddressPrefixType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type SecurityConfigurationRuleDirection string + +const ( + SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" + SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityConfigurationRuleDirection() []string { + return []string{ + string(SecurityConfigurationRuleDirectionInbound), + string(SecurityConfigurationRuleDirectionOutbound), + } +} + +func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleDirection(input string) (*SecurityConfigurationRuleDirection, error) { + vals := map[string]SecurityConfigurationRuleDirection{ + "inbound": SecurityConfigurationRuleDirectionInbound, + "outbound": SecurityConfigurationRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleDirection(input) + return &out, nil +} + +type SecurityConfigurationRuleProtocol string + +const ( + SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" + SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" + SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" + SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" + SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" + SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityConfigurationRuleProtocol() []string { + return []string{ + string(SecurityConfigurationRuleProtocolAh), + string(SecurityConfigurationRuleProtocolAny), + string(SecurityConfigurationRuleProtocolEsp), + string(SecurityConfigurationRuleProtocolIcmp), + string(SecurityConfigurationRuleProtocolTcp), + string(SecurityConfigurationRuleProtocolUdp), + } +} + +func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityConfigurationRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityConfigurationRuleProtocol(input string) (*SecurityConfigurationRuleProtocol, error) { + vals := map[string]SecurityConfigurationRuleProtocol{ + "ah": SecurityConfigurationRuleProtocolAh, + "any": SecurityConfigurationRuleProtocolAny, + "esp": SecurityConfigurationRuleProtocolEsp, + "icmp": SecurityConfigurationRuleProtocolIcmp, + "tcp": SecurityConfigurationRuleProtocolTcp, + "udp": SecurityConfigurationRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityConfigurationRuleProtocol(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_rulecollectionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_rulecollectionrule.go new file mode 100644 index 000000000000..0dad04170f32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_rulecollectionrule.go @@ -0,0 +1,157 @@ +package securityuserrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RuleCollectionRuleId{}) +} + +var _ resourceids.ResourceId = &RuleCollectionRuleId{} + +// RuleCollectionRuleId is a struct representing the Resource ID for a Rule Collection Rule +type RuleCollectionRuleId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string + RuleCollectionName string + RuleName string +} + +// NewRuleCollectionRuleID returns a new RuleCollectionRuleId struct +func NewRuleCollectionRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string, ruleCollectionName string, ruleName string) RuleCollectionRuleId { + return RuleCollectionRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + RuleCollectionName: ruleCollectionName, + RuleName: ruleName, + } +} + +// ParseRuleCollectionRuleID parses 'input' into a RuleCollectionRuleId +func ParseRuleCollectionRuleID(input string) (*RuleCollectionRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRuleCollectionRuleIDInsensitively parses 'input' case-insensitively into a RuleCollectionRuleId +// note: this method should only be used for API response data and not user input +func ParseRuleCollectionRuleIDInsensitively(input string) (*RuleCollectionRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&RuleCollectionRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RuleCollectionRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RuleCollectionRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + if id.RuleName, ok = input.Parsed["ruleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleName", input) + } + + return nil +} + +// ValidateRuleCollectionRuleID checks that 'input' can be parsed as a Rule Collection Rule ID +func ValidateRuleCollectionRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRuleCollectionRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Rule Collection Rule ID +func (id RuleCollectionRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s/ruleCollections/%s/rules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName, id.RuleCollectionName, id.RuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Rule Collection Rule ID +func (id RuleCollectionRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + resourceids.StaticSegment("staticRules", "rules", "rules"), + resourceids.UserSpecifiedSegment("ruleName", "ruleName"), + } +} + +// String returns a human-readable description of this Rule Collection Rule ID +func (id RuleCollectionRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + fmt.Sprintf("Rule Name: %q", id.RuleName), + } + return fmt.Sprintf("Rule Collection Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_securityuserconfigurationrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_securityuserconfigurationrulecollection.go new file mode 100644 index 000000000000..208548d75290 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/id_securityuserconfigurationrulecollection.go @@ -0,0 +1,148 @@ +package securityuserrules + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&SecurityUserConfigurationRuleCollectionId{}) +} + +var _ resourceids.ResourceId = &SecurityUserConfigurationRuleCollectionId{} + +// SecurityUserConfigurationRuleCollectionId is a struct representing the Resource ID for a Security User Configuration Rule Collection +type SecurityUserConfigurationRuleCollectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkManagerName string + SecurityUserConfigurationName string + RuleCollectionName string +} + +// NewSecurityUserConfigurationRuleCollectionID returns a new SecurityUserConfigurationRuleCollectionId struct +func NewSecurityUserConfigurationRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, securityUserConfigurationName string, ruleCollectionName string) SecurityUserConfigurationRuleCollectionId { + return SecurityUserConfigurationRuleCollectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkManagerName: networkManagerName, + SecurityUserConfigurationName: securityUserConfigurationName, + RuleCollectionName: ruleCollectionName, + } +} + +// ParseSecurityUserConfigurationRuleCollectionID parses 'input' into a SecurityUserConfigurationRuleCollectionId +func ParseSecurityUserConfigurationRuleCollectionID(input string) (*SecurityUserConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseSecurityUserConfigurationRuleCollectionIDInsensitively parses 'input' case-insensitively into a SecurityUserConfigurationRuleCollectionId +// note: this method should only be used for API response data and not user input +func ParseSecurityUserConfigurationRuleCollectionIDInsensitively(input string) (*SecurityUserConfigurationRuleCollectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&SecurityUserConfigurationRuleCollectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := SecurityUserConfigurationRuleCollectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *SecurityUserConfigurationRuleCollectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkManagerName, ok = input.Parsed["networkManagerName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkManagerName", input) + } + + if id.SecurityUserConfigurationName, ok = input.Parsed["securityUserConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "securityUserConfigurationName", input) + } + + if id.RuleCollectionName, ok = input.Parsed["ruleCollectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "ruleCollectionName", input) + } + + return nil +} + +// ValidateSecurityUserConfigurationRuleCollectionID checks that 'input' can be parsed as a Security User Configuration Rule Collection ID +func ValidateSecurityUserConfigurationRuleCollectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseSecurityUserConfigurationRuleCollectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkManagers/%s/securityUserConfigurations/%s/ruleCollections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkManagerName, id.SecurityUserConfigurationName, id.RuleCollectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), + resourceids.StaticSegment("staticSecurityUserConfigurations", "securityUserConfigurations", "securityUserConfigurations"), + resourceids.UserSpecifiedSegment("securityUserConfigurationName", "securityUserConfigurationName"), + resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), + } +} + +// String returns a human-readable description of this Security User Configuration Rule Collection ID +func (id SecurityUserConfigurationRuleCollectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Manager Name: %q", id.NetworkManagerName), + fmt.Sprintf("Security User Configuration Name: %q", id.SecurityUserConfigurationName), + fmt.Sprintf("Rule Collection Name: %q", id.RuleCollectionName), + } + return fmt.Sprintf("Security User Configuration Rule Collection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_createorupdate.go new file mode 100644 index 000000000000..24dfc0157f47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_createorupdate.go @@ -0,0 +1,58 @@ +package securityuserrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserRule +} + +// CreateOrUpdate ... +func (c SecurityUserRulesClient) CreateOrUpdate(ctx context.Context, id RuleCollectionRuleId, input SecurityUserRule) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_delete.go new file mode 100644 index 000000000000..b528d5df5200 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_delete.go @@ -0,0 +1,100 @@ +package securityuserrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +type DeleteOperationOptions struct { + Force *bool +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Force != nil { + out.Append("force", fmt.Sprintf("%v", *o.Force)) + } + return &out +} + +// Delete ... +func (c SecurityUserRulesClient) Delete(ctx context.Context, id RuleCollectionRuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SecurityUserRulesClient) DeleteThenPoll(ctx context.Context, id RuleCollectionRuleId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_get.go new file mode 100644 index 000000000000..e87f74e1e7fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_get.go @@ -0,0 +1,53 @@ +package securityuserrules + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *SecurityUserRule +} + +// Get ... +func (c SecurityUserRulesClient) Get(ctx context.Context, id RuleCollectionRuleId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model SecurityUserRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_list.go new file mode 100644 index 000000000000..0ca8047db253 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/method_list.go @@ -0,0 +1,105 @@ +package securityuserrules + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]SecurityUserRule +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []SecurityUserRule +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SecurityUserRulesClient) List(ctx context.Context, id SecurityUserConfigurationRuleCollectionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/rules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]SecurityUserRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SecurityUserRulesClient) ListComplete(ctx context.Context, id SecurityUserConfigurationRuleCollectionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, SecurityUserRuleOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SecurityUserRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id SecurityUserConfigurationRuleCollectionId, predicate SecurityUserRuleOperationPredicate) (result ListCompleteResult, err error) { + items := make([]SecurityUserRule, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_addressprefixitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_addressprefixitem.go new file mode 100644 index 000000000000..9105a353284d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_addressprefixitem.go @@ -0,0 +1,9 @@ +package securityuserrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressPrefixItem struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixType *AddressPrefixType `json:"addressPrefixType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrule.go new file mode 100644 index 000000000000..d5c394c559a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrule.go @@ -0,0 +1,17 @@ +package securityuserrules + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityUserRulePropertiesFormat `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrulepropertiesformat.go new file mode 100644 index 000000000000..1444e3cd7a47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/model_securityuserrulepropertiesformat.go @@ -0,0 +1,16 @@ +package securityuserrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRulePropertiesFormat struct { + Description *string `json:"description,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Destinations *[]AddressPrefixItem `json:"destinations,omitempty"` + Direction SecurityConfigurationRuleDirection `json:"direction"` + Protocol SecurityConfigurationRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` + Sources *[]AddressPrefixItem `json:"sources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/predicates.go new file mode 100644 index 000000000000..5e46e378fc23 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/predicates.go @@ -0,0 +1,32 @@ +package securityuserrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityUserRuleOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SecurityUserRuleOperationPredicate) Matches(input SecurityUserRule) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/version.go new file mode 100644 index 000000000000..e5e50fba4fc3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules/version.go @@ -0,0 +1,10 @@ +package securityuserrules + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/securityuserrules/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/README.md new file mode 100644 index 000000000000..b55ecce42b7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/README.md @@ -0,0 +1,121 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies` Documentation + +The `serviceendpointpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies" +``` + + +### Client Initialization + +```go +client := serviceendpointpolicies.NewServiceEndpointPoliciesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +payload := serviceendpointpolicies.ServiceEndpointPolicy{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.Delete` + +```go +ctx := context.TODO() +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.Get` + +```go +ctx := context.TODO() +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +read, err := client.Get(ctx, id, serviceendpointpolicies.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServiceEndpointPoliciesClient.UpdateTags` + +```go +ctx := context.TODO() +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +payload := serviceendpointpolicies.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/client.go new file mode 100644 index 000000000000..4efc8d43b2ac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/client.go @@ -0,0 +1,26 @@ +package serviceendpointpolicies + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPoliciesClient struct { + Client *resourcemanager.Client +} + +func NewServiceEndpointPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceEndpointPoliciesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "serviceendpointpolicies", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating ServiceEndpointPoliciesClient: %+v", err) + } + + return &ServiceEndpointPoliciesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/constants.go new file mode 100644 index 000000000000..5dd2d63050c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/constants.go @@ -0,0 +1,1198 @@ +package serviceendpointpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/id_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/id_serviceendpointpolicy.go new file mode 100644 index 000000000000..651f7f56783e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/id_serviceendpointpolicy.go @@ -0,0 +1,130 @@ +package serviceendpointpolicies + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ServiceEndpointPolicyId{}) +} + +var _ resourceids.ResourceId = &ServiceEndpointPolicyId{} + +// ServiceEndpointPolicyId is a struct representing the Resource ID for a Service Endpoint Policy +type ServiceEndpointPolicyId struct { + SubscriptionId string + ResourceGroupName string + ServiceEndpointPolicyName string +} + +// NewServiceEndpointPolicyID returns a new ServiceEndpointPolicyId struct +func NewServiceEndpointPolicyID(subscriptionId string, resourceGroupName string, serviceEndpointPolicyName string) ServiceEndpointPolicyId { + return ServiceEndpointPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ServiceEndpointPolicyName: serviceEndpointPolicyName, + } +} + +// ParseServiceEndpointPolicyID parses 'input' into a ServiceEndpointPolicyId +func ParseServiceEndpointPolicyID(input string) (*ServiceEndpointPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceEndpointPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ServiceEndpointPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseServiceEndpointPolicyIDInsensitively parses 'input' case-insensitively into a ServiceEndpointPolicyId +// note: this method should only be used for API response data and not user input +func ParseServiceEndpointPolicyIDInsensitively(input string) (*ServiceEndpointPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ServiceEndpointPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ServiceEndpointPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ServiceEndpointPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ServiceEndpointPolicyName, ok = input.Parsed["serviceEndpointPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "serviceEndpointPolicyName", input) + } + + return nil +} + +// ValidateServiceEndpointPolicyID checks that 'input' can be parsed as a Service Endpoint Policy ID +func ValidateServiceEndpointPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseServiceEndpointPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Service Endpoint Policy ID +func (id ServiceEndpointPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/serviceEndpointPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ServiceEndpointPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Service Endpoint Policy ID +func (id ServiceEndpointPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticServiceEndpointPolicies", "serviceEndpointPolicies", "serviceEndpointPolicies"), + resourceids.UserSpecifiedSegment("serviceEndpointPolicyName", "serviceEndpointPolicyName"), + } +} + +// String returns a human-readable description of this Service Endpoint Policy ID +func (id ServiceEndpointPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Service Endpoint Policy Name: %q", id.ServiceEndpointPolicyName), + } + return fmt.Sprintf("Service Endpoint Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_createorupdate.go new file mode 100644 index 000000000000..1912253430d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_createorupdate.go @@ -0,0 +1,75 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ServiceEndpointPolicy +} + +// CreateOrUpdate ... +func (c ServiceEndpointPoliciesClient) CreateOrUpdate(ctx context.Context, id ServiceEndpointPolicyId, input ServiceEndpointPolicy) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c ServiceEndpointPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id ServiceEndpointPolicyId, input ServiceEndpointPolicy) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_delete.go new file mode 100644 index 000000000000..fbffd77bf762 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_delete.go @@ -0,0 +1,71 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c ServiceEndpointPoliciesClient) Delete(ctx context.Context, id ServiceEndpointPolicyId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c ServiceEndpointPoliciesClient) DeleteThenPoll(ctx context.Context, id ServiceEndpointPolicyId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_get.go new file mode 100644 index 000000000000..ce97f45af4d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_get.go @@ -0,0 +1,83 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ServiceEndpointPolicy +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c ServiceEndpointPoliciesClient) Get(ctx context.Context, id ServiceEndpointPolicyId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ServiceEndpointPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_list.go new file mode 100644 index 000000000000..3a4372245560 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_list.go @@ -0,0 +1,106 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ServiceEndpointPolicy +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []ServiceEndpointPolicy +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c ServiceEndpointPoliciesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ServiceEndpointPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c ServiceEndpointPoliciesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, ServiceEndpointPolicyOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ServiceEndpointPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ServiceEndpointPolicyOperationPredicate) (result ListCompleteResult, err error) { + items := make([]ServiceEndpointPolicy, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_listbyresourcegroup.go new file mode 100644 index 000000000000..384f7dc28fec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_listbyresourcegroup.go @@ -0,0 +1,106 @@ +package serviceendpointpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ServiceEndpointPolicy +} + +type ListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []ServiceEndpointPolicy +} + +type ListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListByResourceGroup ... +func (c ServiceEndpointPoliciesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/serviceEndpointPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ServiceEndpointPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListByResourceGroupComplete retrieves all the results into a single object +func (c ServiceEndpointPoliciesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error) { + return c.ListByResourceGroupCompleteMatchingPredicate(ctx, id, ServiceEndpointPolicyOperationPredicate{}) +} + +// ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c ServiceEndpointPoliciesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ServiceEndpointPolicyOperationPredicate) (result ListByResourceGroupCompleteResult, err error) { + items := make([]ServiceEndpointPolicy, 0) + + resp, err := c.ListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_updatetags.go new file mode 100644 index 000000000000..d260b3470330 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/method_updatetags.go @@ -0,0 +1,57 @@ +package serviceendpointpolicies + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ServiceEndpointPolicy +} + +// UpdateTags ... +func (c ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, id ServiceEndpointPolicyId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ServiceEndpointPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..7a1f5258bb40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..76bca3269ac0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..1e70d427a94f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..7f6bd42e1ccd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..15556d9d6468 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..6e7d684d6abd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..2f704e379832 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspool.go new file mode 100644 index 000000000000..feb93ad54759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..4d71c4769d02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..9f6fb9fe6e7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ddossettings.go new file mode 100644 index 000000000000..de52c73833f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ddossettings.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_delegation.go new file mode 100644 index 000000000000..1e9e6e93b123 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_delegation.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlog.go new file mode 100644 index 000000000000..9ba393ae2ff3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlog.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogformatparameters.go new file mode 100644 index 000000000000..64ce02b9b62b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..2a057a6f1f7e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfiguration.go new file mode 100644 index 000000000000..3460648e1743 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..27c417be79df --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..253d53dc1d32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrule.go new file mode 100644 index 000000000000..691567f16234 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..bcdf56e43887 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfiguration.go new file mode 100644 index 000000000000..43160da9e2b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..cbb4340c4742 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..a8340bcc1f3a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..b76d67b91b59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_iptag.go new file mode 100644 index 000000000000..879d62109231 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_iptag.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..bcd25a343d45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..71bfae4fc901 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgateway.go new file mode 100644 index 000000000000..4fce3c97a621 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgateway.go @@ -0,0 +1,20 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..0eae8e55e8c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaysku.go new file mode 100644 index 000000000000..d7c06ad69504 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natruleportmapping.go new file mode 100644 index 000000000000..af408670c2d6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterface.go new file mode 100644 index 000000000000..4576b3d0a242 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterface.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..f2f63e673ceb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..efba2a7575dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..fee33255b2ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..aae328cad750 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..bdbb3dec7534 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..373ac2188724 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..1a2c2bc87745 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygroup.go new file mode 100644 index 000000000000..7babf5dcba32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..9e417934d4ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpoint.go new file mode 100644 index 000000000000..b9c2640063fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpoint.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnection.go new file mode 100644 index 000000000000..0c67a94b0695 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..9468576ebfd3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..25ab508cf68f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..b2b9cd173919 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointproperties.go new file mode 100644 index 000000000000..b74aa311c148 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkservice.go new file mode 100644 index 000000000000..f69adbd0b190 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..f163cad59d9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..e9560116ef63 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..9accc19fd8b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..e2a71cb74164 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..6cc9d81d85e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..324d11d9e4c6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddress.go new file mode 100644 index 000000000000..b3722e1f1912 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddress.go @@ -0,0 +1,22 @@ +package serviceendpointpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..d28111e34e8d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..fe9e93dc57ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresssku.go new file mode 100644 index 000000000000..5d6c2dd15359 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlink.go new file mode 100644 index 000000000000..3a125f5d30ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..004d9d501d71 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourceset.go new file mode 100644 index 000000000000..33f79b6dd7fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_resourceset.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..98b48093fe5c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_route.go new file mode 100644 index 000000000000..a08219146cfb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_route.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routepropertiesformat.go new file mode 100644 index 000000000000..a2d74c7e24ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetable.go new file mode 100644 index 000000000000..fabb0fc336d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetable.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..fbf628f66f31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrule.go new file mode 100644 index 000000000000..3f50e5ddac64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrule.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..8d5f321605a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlink.go new file mode 100644 index 000000000000..a22d8f42829d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..5b81f28e88b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..0903abfa70e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..796d7019b020 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..75928dae7f1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..31efd2eb7eb5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..fdb4ecd0a7fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..40b6ccdb10e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnet.go new file mode 100644 index 000000000000..50005077792c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnet.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..97f4cb55074d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subresource.go new file mode 100644 index 000000000000..61370085ffcd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_subresource.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_tagsobject.go new file mode 100644 index 000000000000..7c5d750fc909 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_tagsobject.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..da94c72fe297 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..58889a804767 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktap.go new file mode 100644 index 000000000000..1d191ff67f04 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..2660ce6a3824 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/predicates.go new file mode 100644 index 000000000000..ddd972a1d9dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/predicates.go @@ -0,0 +1,42 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyOperationPredicate struct { + Etag *string + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p ServiceEndpointPolicyOperationPredicate) Matches(input ServiceEndpointPolicy) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/version.go new file mode 100644 index 000000000000..3e8fbaeed0a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies/version.go @@ -0,0 +1,10 @@ +package serviceendpointpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/serviceendpointpolicies/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/README.md new file mode 100644 index 000000000000..c9cc1964e5ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions` Documentation + +The `serviceendpointpolicydefinitions` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions" +``` + + +### Client Initialization + +```go +client := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServiceEndpointPolicyDefinitionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") + +payload := serviceendpointpolicydefinitions.ServiceEndpointPolicyDefinition{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServiceEndpointPolicyDefinitionsClient.Delete` + +```go +ctx := context.TODO() +id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `ServiceEndpointPolicyDefinitionsClient.Get` + +```go +ctx := context.TODO() +id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `ServiceEndpointPolicyDefinitionsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/version.go new file mode 100644 index 000000000000..14fc28700a77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions/version.go @@ -0,0 +1,10 @@ +package serviceendpointpolicydefinitions + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/serviceendpointpolicydefinitions/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/README.md new file mode 100644 index 000000000000..36b7a9411467 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/README.md @@ -0,0 +1,53 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags` Documentation + +The `servicetags` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags" +``` + + +### Client Initialization + +```go +client := servicetags.NewServiceTagsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `ServiceTagsClient.ServiceTagInformationList` + +```go +ctx := context.TODO() +id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.ServiceTagInformationList(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions())` can be used to do batched pagination +items, err := client.ServiceTagInformationListComplete(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `ServiceTagsClient.ServiceTagsList` + +```go +ctx := context.TODO() +id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +read, err := client.ServiceTagsList(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetaginformationlist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetaginformationlist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetagslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/method_servicetagslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetaginformationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetaginformationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetagslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetagslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/model_servicetagslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/model_servicetagslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/version.go new file mode 100644 index 000000000000..db645cf800ae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags/version.go @@ -0,0 +1,10 @@ +package servicetags + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/servicetags/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/README.md new file mode 100644 index 000000000000..b7b56cabe28c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/README.md @@ -0,0 +1,90 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers` Documentation + +The `staticmembers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers" +``` + + +### Client Initialization + +```go +client := staticmembers.NewStaticMembersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `StaticMembersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") + +payload := staticmembers.StaticMember{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StaticMembersClient.Delete` + +```go +ctx := context.TODO() +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") + +read, err := client.Delete(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StaticMembersClient.Get` + +```go +ctx := context.TODO() +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `StaticMembersClient.List` + +```go +ctx := context.TODO() +id := staticmembers.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") + +// alternatively `client.List(ctx, id, staticmembers.DefaultListOperationOptions())` can be used to do batched pagination +items, err := client.ListComplete(ctx, id, staticmembers.DefaultListOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_networkgroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_networkgroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_staticmember.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/id_staticmember.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmember.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmember.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmember.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmemberproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmemberproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/model_staticmemberproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/model_staticmemberproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/version.go new file mode 100644 index 000000000000..2a51ba3933fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers/version.go @@ -0,0 +1,10 @@ +package staticmembers + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/staticmembers/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/README.md new file mode 100644 index 000000000000..fbf75bc161a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets` Documentation + +The `subnets` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets" +``` + + +### Client Initialization + +```go +client := subnets.NewSubnetsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `SubnetsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +payload := subnets.Subnet{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `SubnetsClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `SubnetsClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +read, err := client.Get(ctx, id, subnets.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `SubnetsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/client.go new file mode 100644 index 000000000000..d3ece632ec64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/client.go @@ -0,0 +1,26 @@ +package subnets + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetsClient struct { + Client *resourcemanager.Client +} + +func NewSubnetsClientWithBaseURI(sdkApi sdkEnv.Api) (*SubnetsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "subnets", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating SubnetsClient: %+v", err) + } + + return &SubnetsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/constants.go new file mode 100644 index 000000000000..8c3fe71424af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/constants.go @@ -0,0 +1,1198 @@ +package subnets + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_createorupdate.go new file mode 100644 index 000000000000..2f47359f9756 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_createorupdate.go @@ -0,0 +1,76 @@ +package subnets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *Subnet +} + +// CreateOrUpdate ... +func (c SubnetsClient) CreateOrUpdate(ctx context.Context, id commonids.SubnetId, input Subnet) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c SubnetsClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.SubnetId, input Subnet) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_delete.go new file mode 100644 index 000000000000..8be424289f01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_delete.go @@ -0,0 +1,72 @@ +package subnets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c SubnetsClient) Delete(ctx context.Context, id commonids.SubnetId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c SubnetsClient) DeleteThenPoll(ctx context.Context, id commonids.SubnetId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_get.go new file mode 100644 index 000000000000..9340f66305d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_get.go @@ -0,0 +1,84 @@ +package subnets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *Subnet +} + +type GetOperationOptions struct { + Expand *string +} + +func DefaultGetOperationOptions() GetOperationOptions { + return GetOperationOptions{} +} + +func (o GetOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + + return &out +} + +func (o GetOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + + return &out +} + +func (o GetOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + if o.Expand != nil { + out.Append("$expand", fmt.Sprintf("%v", *o.Expand)) + } + return &out +} + +// Get ... +func (c SubnetsClient) Get(ctx context.Context, id commonids.SubnetId, options GetOperationOptions) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + OptionsObject: options, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model Subnet + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_list.go new file mode 100644 index 000000000000..b9424e852805 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/method_list.go @@ -0,0 +1,106 @@ +package subnets + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]Subnet +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []Subnet +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c SubnetsClient) List(ctx context.Context, id commonids.VirtualNetworkId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/subnets", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]Subnet `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c SubnetsClient) ListComplete(ctx context.Context, id commonids.VirtualNetworkId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, SubnetOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c SubnetsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.VirtualNetworkId, predicate SubnetOperationPredicate) (result ListCompleteResult, err error) { + items := make([]Subnet, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..3788306fb6c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..916f79f9c4c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..5cb3ab5e50f6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..2064f06b67c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..ba5d67b2ce4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..2b7038a9661a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..0444d465786d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspool.go new file mode 100644 index 000000000000..8549e5db3a86 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..561224fe97ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..b8332f10ecf7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ddossettings.go new file mode 100644 index 000000000000..d48851a6ba15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ddossettings.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_delegation.go new file mode 100644 index 000000000000..541d9d1d34b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_delegation.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlog.go new file mode 100644 index 000000000000..e063f8c77303 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlog.go @@ -0,0 +1,19 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogformatparameters.go new file mode 100644 index 000000000000..492844afa0cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..2dd1565d821c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfiguration.go new file mode 100644 index 000000000000..f24121e7c39c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..3c86535825a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..3d2ff9b30102 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrule.go new file mode 100644 index 000000000000..dd23aa7a490b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..ac29e9fd37d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfiguration.go new file mode 100644 index 000000000000..3e2e5516ea91 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..a4d5be3c038a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..bfb28994f14d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..4814acb3e8e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_iptag.go new file mode 100644 index 000000000000..8ccc055cb31a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_iptag.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..e3b148912e31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..ee7815f178dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgateway.go new file mode 100644 index 000000000000..9a8fad20def6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgateway.go @@ -0,0 +1,20 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..e9043897c529 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaysku.go new file mode 100644 index 000000000000..617e7c19ff34 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natruleportmapping.go new file mode 100644 index 000000000000..1e546cf811d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterface.go new file mode 100644 index 000000000000..06d849fad907 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterface.go @@ -0,0 +1,19 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..67fcb29afe77 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..dea0691831d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..51e7195920f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..a1064b425b93 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..dadc94210166 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..2cd16be245c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..1bc23cee100c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygroup.go new file mode 100644 index 000000000000..fa06f5f24ccc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..da7b074dbbfb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpoint.go new file mode 100644 index 000000000000..4fa549c3b13b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpoint.go @@ -0,0 +1,19 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnection.go new file mode 100644 index 000000000000..1e354419cca0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..ff12b5a54fc0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..20625cb09d31 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..5d90f3c61bf7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointproperties.go new file mode 100644 index 000000000000..4913ece3049b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkservice.go new file mode 100644 index 000000000000..34c00e7cffb3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..af937a19eda7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..d6ad965c1368 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..4072e649f7a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..c48e1e87c659 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..eccb8844155e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..5c743a480bab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddress.go new file mode 100644 index 000000000000..9931f78d2364 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddress.go @@ -0,0 +1,22 @@ +package subnets + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..d002238e788d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..c8c5eb4251a6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresssku.go new file mode 100644 index 000000000000..21dd8f7d664d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlink.go new file mode 100644 index 000000000000..fcd37a760e65 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..103426fc9c39 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourceset.go new file mode 100644 index 000000000000..5daeebab425f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_resourceset.go @@ -0,0 +1,8 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..8ea922b85fef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_route.go new file mode 100644 index 000000000000..e40ded16b006 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_route.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routepropertiesformat.go new file mode 100644 index 000000000000..c87b62acaed2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetable.go new file mode 100644 index 000000000000..6bb137b8242c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetable.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..07d88ea8a301 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrule.go new file mode 100644 index 000000000000..70772203f7bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrule.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..cad2dbd820ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlink.go new file mode 100644 index 000000000000..c82eae5ac158 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..f1a92b714855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..1680e52b8a1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..68813a7b3e8f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..8fa72c305ed9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..b7b56f401a85 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..5e0804aa4384 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..e3835d75d211 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnet.go new file mode 100644 index 000000000000..820673d7c161 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnet.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..23fdab8b9aee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subresource.go new file mode 100644 index 000000000000..d986a3038192 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_subresource.go @@ -0,0 +1,8 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..e93599e3f9cd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..fa6abc84aef0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktap.go new file mode 100644 index 000000000000..f9e8be401f9a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..c8b60852b336 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/predicates.go new file mode 100644 index 000000000000..33b8979e3ccd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/predicates.go @@ -0,0 +1,32 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p SubnetOperationPredicate) Matches(input Subnet) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/version.go new file mode 100644 index 000000000000..93b56536f683 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets/version.go @@ -0,0 +1,10 @@ +package subnets + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/subnets/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/README.md new file mode 100644 index 000000000000..003ce69b10fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics` Documentation + +The `trafficanalytics` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics" +``` + + +### Client Initialization + +```go +client := trafficanalytics.NewTrafficAnalyticsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `TrafficAnalyticsClient.NetworkWatchersGetFlowLogStatus` + +```go +ctx := context.TODO() +id := trafficanalytics.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := trafficanalytics.FlowLogStatusParameters{ + // ... +} + + +if err := client.NetworkWatchersGetFlowLogStatusThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `TrafficAnalyticsClient.NetworkWatchersSetFlowLogConfiguration` + +```go +ctx := context.TODO() +id := trafficanalytics.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") + +payload := trafficanalytics.FlowLogInformation{ + // ... +} + + +if err := client.NetworkWatchersSetFlowLogConfigurationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/id_networkwatcher.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/id_networkwatcher.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/id_networkwatcher.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/method_networkwatchersgetflowlogstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/method_networkwatchersgetflowlogstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/method_networkwatchersgetflowlogstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/method_networkwatchersgetflowlogstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/method_networkwatcherssetflowlogconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowloginformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowloginformation.go new file mode 100644 index 000000000000..c4dc94d99f73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowloginformation.go @@ -0,0 +1,15 @@ +package trafficanalytics + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogInformation struct { + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Properties FlowLogProperties `json:"properties"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogproperties.go new file mode 100644 index 000000000000..cf3b43fdbebf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogproperties.go @@ -0,0 +1,12 @@ +package trafficanalytics + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogProperties struct { + Enabled bool `json:"enabled"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogstatusparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogstatusparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_flowlogstatusparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_flowlogstatusparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/version.go new file mode 100644 index 000000000000..37128fd15384 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics/version.go @@ -0,0 +1,10 @@ +package trafficanalytics + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/trafficanalytics/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/README.md new file mode 100644 index 000000000000..ac3c458aa8c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/README.md @@ -0,0 +1,37 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages` Documentation + +The `usages` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages" +``` + + +### Client Initialization + +```go +client := usages.NewUsagesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `UsagesClient.List` + +```go +ctx := context.TODO() +id := usages.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/id_location.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/id_location.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/id_location.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/model_usage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/model_usage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/model_usage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/model_usage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/model_usagename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/model_usagename.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/model_usagename.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/model_usagename.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/version.go new file mode 100644 index 000000000000..bd9406a21a78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages/version.go @@ -0,0 +1,10 @@ +package usages + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/usages/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/README.md new file mode 100644 index 000000000000..f8d4cf9aeb6a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/README.md @@ -0,0 +1,69 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap` Documentation + +The `vipswap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap" +``` + + +### Client Initialization + +```go +client := vipswap.NewVipSwapClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VipSwapClient.Create` + +```go +ctx := context.TODO() +id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "cloudServiceName") + +payload := vipswap.SwapResource{ + // ... +} + + +if err := client.CreateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VipSwapClient.Get` + +```go +ctx := context.TODO() +id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "cloudServiceName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VipSwapClient.List` + +```go +ctx := context.TODO() +id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupName", "cloudServiceName") + +read, err := client.List(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/id_cloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/id_cloudservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/id_cloudservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/id_cloudservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_create.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_create.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_create.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresourcelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresourcelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresourcelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresourcelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/model_swapresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/model_swapresourceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/version.go new file mode 100644 index 000000000000..280683c8eef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap/version.go @@ -0,0 +1,10 @@ +package vipswap + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/vipswap/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/README.md new file mode 100644 index 000000000000..9b1b90a265be --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/README.md @@ -0,0 +1,82 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites` Documentation + +The `virtualappliancesites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites" +``` + + +### Client Initialization + +```go +client := virtualappliancesites.NewVirtualApplianceSitesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualApplianceSitesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "virtualApplianceSiteName") + +payload := virtualappliancesites.VirtualApplianceSite{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualApplianceSitesClient.Delete` + +```go +ctx := context.TODO() +id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "virtualApplianceSiteName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualApplianceSitesClient.Get` + +```go +ctx := context.TODO() +id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "virtualApplianceSiteName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualApplianceSitesClient.List` + +```go +ctx := context.TODO() +id := virtualappliancesites.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/id_networkvirtualappliance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_networkvirtualappliance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/id_networkvirtualappliance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_virtualappliancesite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/id_virtualappliancesite.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_virtualappliancesite.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/id_virtualappliancesite.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_breakoutcategorypolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_breakoutcategorypolicies.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_breakoutcategorypolicies.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_breakoutcategorypolicies.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_office365policyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_office365policyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_office365policyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_office365policyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_virtualappliancesite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_virtualappliancesite.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_virtualappliancesite.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_virtualappliancesite.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_virtualappliancesiteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_virtualappliancesiteproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/model_virtualappliancesiteproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/model_virtualappliancesiteproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/version.go new file mode 100644 index 000000000000..44a1e1ae185a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites/version.go @@ -0,0 +1,10 @@ +package virtualappliancesites + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualappliancesites/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/README.md new file mode 100644 index 000000000000..f782b8173492 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus` Documentation + +The `virtualapplianceskus` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus" +``` + + +### Client Initialization + +```go +client := virtualapplianceskus.NewVirtualApplianceSkusClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualApplianceSkusClient.Get` + +```go +ctx := context.TODO() +id := virtualapplianceskus.NewNetworkVirtualApplianceSkuID("12345678-1234-9876-4563-123456789012", "networkVirtualApplianceSkuName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualApplianceSkusClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/id_networkvirtualappliancesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/id_networkvirtualappliancesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/id_networkvirtualappliancesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/id_networkvirtualappliancesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualappliancesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualappliancesku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualappliancesku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualappliancesku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualapplianceskuinstances.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/model_networkvirtualapplianceskupropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/version.go new file mode 100644 index 000000000000..d64ac97e5736 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus/version.go @@ -0,0 +1,10 @@ +package virtualapplianceskus + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualapplianceskus/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/README.md new file mode 100644 index 000000000000..e01886e18734 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/README.md @@ -0,0 +1,208 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections` Documentation + +The `virtualnetworkgatewayconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections" +``` + + +### Client Initialization + +```go +client := virtualnetworkgatewayconnections.NewVirtualNetworkGatewayConnectionsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.VirtualNetworkGatewayConnection{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.Delete` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.Get` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.GetIkeSas` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +if err := client.GetIkeSasThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.GetSharedKey` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +read, err := client.GetSharedKey(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.ResetConnection` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +if err := client.ResetConnectionThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.ResetSharedKey` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.ConnectionResetSharedKey{ + // ... +} + + +if err := client.ResetSharedKeyThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.SetSharedKey` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.ConnectionSharedKey{ + // ... +} + + +if err := client.SetSharedKeyThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.StartPacketCapture` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.VpnPacketCaptureStartParameters{ + // ... +} + + +if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.StopPacketCapture` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.VpnPacketCaptureStopParameters{ + // ... +} + + +if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewayConnectionsClient.UpdateTags` + +```go +ctx := context.TODO() +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgatewayconnections.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/client.go new file mode 100644 index 000000000000..b74a1276981e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/client.go @@ -0,0 +1,26 @@ +package virtualnetworkgatewayconnections + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnectionsClient struct { + Client *resourcemanager.Client +} + +func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkGatewayConnectionsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkgatewayconnections", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating VirtualNetworkGatewayConnectionsClient: %+v", err) + } + + return &VirtualNetworkGatewayConnectionsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/constants.go new file mode 100644 index 000000000000..f7fbee05dd01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/constants.go @@ -0,0 +1,1225 @@ +package virtualnetworkgatewayconnections + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminState string + +const ( + AdminStateDisabled AdminState = "Disabled" + AdminStateEnabled AdminState = "Enabled" +) + +func PossibleValuesForAdminState() []string { + return []string{ + string(AdminStateDisabled), + string(AdminStateEnabled), + } +} + +func (s *AdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAdminState(input string) (*AdminState, error) { + vals := map[string]AdminState{ + "disabled": AdminStateDisabled, + "enabled": AdminStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AdminState(input) + return &out, nil +} + +type DhGroup string + +const ( + DhGroupDHGroupOne DhGroup = "DHGroup1" + DhGroupDHGroupOneFour DhGroup = "DHGroup14" + DhGroupDHGroupTwo DhGroup = "DHGroup2" + DhGroupDHGroupTwoFour DhGroup = "DHGroup24" + DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048" + DhGroupECPThreeEightFour DhGroup = "ECP384" + DhGroupECPTwoFiveSix DhGroup = "ECP256" + DhGroupNone DhGroup = "None" +) + +func PossibleValuesForDhGroup() []string { + return []string{ + string(DhGroupDHGroupOne), + string(DhGroupDHGroupOneFour), + string(DhGroupDHGroupTwo), + string(DhGroupDHGroupTwoFour), + string(DhGroupDHGroupTwoZeroFourEight), + string(DhGroupECPThreeEightFour), + string(DhGroupECPTwoFiveSix), + string(DhGroupNone), + } +} + +func (s *DhGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDhGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDhGroup(input string) (*DhGroup, error) { + vals := map[string]DhGroup{ + "dhgroup1": DhGroupDHGroupOne, + "dhgroup14": DhGroupDHGroupOneFour, + "dhgroup2": DhGroupDHGroupTwo, + "dhgroup24": DhGroupDHGroupTwoFour, + "dhgroup2048": DhGroupDHGroupTwoZeroFourEight, + "ecp384": DhGroupECPThreeEightFour, + "ecp256": DhGroupECPTwoFiveSix, + "none": DhGroupNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DhGroup(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPsecEncryption string + +const ( + IPsecEncryptionAESOneNineTwo IPsecEncryption = "AES192" + IPsecEncryptionAESOneTwoEight IPsecEncryption = "AES128" + IPsecEncryptionAESTwoFiveSix IPsecEncryption = "AES256" + IPsecEncryptionDES IPsecEncryption = "DES" + IPsecEncryptionDESThree IPsecEncryption = "DES3" + IPsecEncryptionGCMAESOneNineTwo IPsecEncryption = "GCMAES192" + IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128" + IPsecEncryptionGCMAESTwoFiveSix IPsecEncryption = "GCMAES256" + IPsecEncryptionNone IPsecEncryption = "None" +) + +func PossibleValuesForIPsecEncryption() []string { + return []string{ + string(IPsecEncryptionAESOneNineTwo), + string(IPsecEncryptionAESOneTwoEight), + string(IPsecEncryptionAESTwoFiveSix), + string(IPsecEncryptionDES), + string(IPsecEncryptionDESThree), + string(IPsecEncryptionGCMAESOneNineTwo), + string(IPsecEncryptionGCMAESOneTwoEight), + string(IPsecEncryptionGCMAESTwoFiveSix), + string(IPsecEncryptionNone), + } +} + +func (s *IPsecEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecEncryption(input string) (*IPsecEncryption, error) { + vals := map[string]IPsecEncryption{ + "aes192": IPsecEncryptionAESOneNineTwo, + "aes128": IPsecEncryptionAESOneTwoEight, + "aes256": IPsecEncryptionAESTwoFiveSix, + "des": IPsecEncryptionDES, + "des3": IPsecEncryptionDESThree, + "gcmaes192": IPsecEncryptionGCMAESOneNineTwo, + "gcmaes128": IPsecEncryptionGCMAESOneTwoEight, + "gcmaes256": IPsecEncryptionGCMAESTwoFiveSix, + "none": IPsecEncryptionNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecEncryption(input) + return &out, nil +} + +type IPsecIntegrity string + +const ( + IPsecIntegrityGCMAESOneNineTwo IPsecIntegrity = "GCMAES192" + IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128" + IPsecIntegrityGCMAESTwoFiveSix IPsecIntegrity = "GCMAES256" + IPsecIntegrityMDFive IPsecIntegrity = "MD5" + IPsecIntegritySHAOne IPsecIntegrity = "SHA1" + IPsecIntegritySHATwoFiveSix IPsecIntegrity = "SHA256" +) + +func PossibleValuesForIPsecIntegrity() []string { + return []string{ + string(IPsecIntegrityGCMAESOneNineTwo), + string(IPsecIntegrityGCMAESOneTwoEight), + string(IPsecIntegrityGCMAESTwoFiveSix), + string(IPsecIntegrityMDFive), + string(IPsecIntegritySHAOne), + string(IPsecIntegritySHATwoFiveSix), + } +} + +func (s *IPsecIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecIntegrity(input string) (*IPsecIntegrity, error) { + vals := map[string]IPsecIntegrity{ + "gcmaes192": IPsecIntegrityGCMAESOneNineTwo, + "gcmaes128": IPsecIntegrityGCMAESOneTwoEight, + "gcmaes256": IPsecIntegrityGCMAESTwoFiveSix, + "md5": IPsecIntegrityMDFive, + "sha1": IPsecIntegritySHAOne, + "sha256": IPsecIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecIntegrity(input) + return &out, nil +} + +type IkeEncryption string + +const ( + IkeEncryptionAESOneNineTwo IkeEncryption = "AES192" + IkeEncryptionAESOneTwoEight IkeEncryption = "AES128" + IkeEncryptionAESTwoFiveSix IkeEncryption = "AES256" + IkeEncryptionDES IkeEncryption = "DES" + IkeEncryptionDESThree IkeEncryption = "DES3" + IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128" + IkeEncryptionGCMAESTwoFiveSix IkeEncryption = "GCMAES256" +) + +func PossibleValuesForIkeEncryption() []string { + return []string{ + string(IkeEncryptionAESOneNineTwo), + string(IkeEncryptionAESOneTwoEight), + string(IkeEncryptionAESTwoFiveSix), + string(IkeEncryptionDES), + string(IkeEncryptionDESThree), + string(IkeEncryptionGCMAESOneTwoEight), + string(IkeEncryptionGCMAESTwoFiveSix), + } +} + +func (s *IkeEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeEncryption(input string) (*IkeEncryption, error) { + vals := map[string]IkeEncryption{ + "aes192": IkeEncryptionAESOneNineTwo, + "aes128": IkeEncryptionAESOneTwoEight, + "aes256": IkeEncryptionAESTwoFiveSix, + "des": IkeEncryptionDES, + "des3": IkeEncryptionDESThree, + "gcmaes128": IkeEncryptionGCMAESOneTwoEight, + "gcmaes256": IkeEncryptionGCMAESTwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeEncryption(input) + return &out, nil +} + +type IkeIntegrity string + +const ( + IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128" + IkeIntegrityGCMAESTwoFiveSix IkeIntegrity = "GCMAES256" + IkeIntegrityMDFive IkeIntegrity = "MD5" + IkeIntegritySHAOne IkeIntegrity = "SHA1" + IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384" + IkeIntegritySHATwoFiveSix IkeIntegrity = "SHA256" +) + +func PossibleValuesForIkeIntegrity() []string { + return []string{ + string(IkeIntegrityGCMAESOneTwoEight), + string(IkeIntegrityGCMAESTwoFiveSix), + string(IkeIntegrityMDFive), + string(IkeIntegritySHAOne), + string(IkeIntegritySHAThreeEightFour), + string(IkeIntegritySHATwoFiveSix), + } +} + +func (s *IkeIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeIntegrity(input string) (*IkeIntegrity, error) { + vals := map[string]IkeIntegrity{ + "gcmaes128": IkeIntegrityGCMAESOneTwoEight, + "gcmaes256": IkeIntegrityGCMAESTwoFiveSix, + "md5": IkeIntegrityMDFive, + "sha1": IkeIntegritySHAOne, + "sha384": IkeIntegritySHAThreeEightFour, + "sha256": IkeIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeIntegrity(input) + return &out, nil +} + +type PfsGroup string + +const ( + PfsGroupECPThreeEightFour PfsGroup = "ECP384" + PfsGroupECPTwoFiveSix PfsGroup = "ECP256" + PfsGroupNone PfsGroup = "None" + PfsGroupPFSMM PfsGroup = "PFSMM" + PfsGroupPFSOne PfsGroup = "PFS1" + PfsGroupPFSOneFour PfsGroup = "PFS14" + PfsGroupPFSTwo PfsGroup = "PFS2" + PfsGroupPFSTwoFour PfsGroup = "PFS24" + PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048" +) + +func PossibleValuesForPfsGroup() []string { + return []string{ + string(PfsGroupECPThreeEightFour), + string(PfsGroupECPTwoFiveSix), + string(PfsGroupNone), + string(PfsGroupPFSMM), + string(PfsGroupPFSOne), + string(PfsGroupPFSOneFour), + string(PfsGroupPFSTwo), + string(PfsGroupPFSTwoFour), + string(PfsGroupPFSTwoZeroFourEight), + } +} + +func (s *PfsGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePfsGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePfsGroup(input string) (*PfsGroup, error) { + vals := map[string]PfsGroup{ + "ecp384": PfsGroupECPThreeEightFour, + "ecp256": PfsGroupECPTwoFiveSix, + "none": PfsGroupNone, + "pfsmm": PfsGroupPFSMM, + "pfs1": PfsGroupPFSOne, + "pfs14": PfsGroupPFSOneFour, + "pfs2": PfsGroupPFSTwo, + "pfs24": PfsGroupPFSTwoFour, + "pfs2048": PfsGroupPFSTwoZeroFourEight, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PfsGroup(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type ResiliencyModel string + +const ( + ResiliencyModelMultiHomed ResiliencyModel = "MultiHomed" + ResiliencyModelSingleHomed ResiliencyModel = "SingleHomed" +) + +func PossibleValuesForResiliencyModel() []string { + return []string{ + string(ResiliencyModelMultiHomed), + string(ResiliencyModelSingleHomed), + } +} + +func (s *ResiliencyModel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResiliencyModel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResiliencyModel(input string) (*ResiliencyModel, error) { + vals := map[string]ResiliencyModel{ + "multihomed": ResiliencyModelMultiHomed, + "singlehomed": ResiliencyModelSingleHomed, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResiliencyModel(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionMode string + +const ( + VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = "Default" + VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = "InitiatorOnly" + VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = "ResponderOnly" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionMode() []string { + return []string{ + string(VirtualNetworkGatewayConnectionModeDefault), + string(VirtualNetworkGatewayConnectionModeInitiatorOnly), + string(VirtualNetworkGatewayConnectionModeResponderOnly), + } +} + +func (s *VirtualNetworkGatewayConnectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionMode(input string) (*VirtualNetworkGatewayConnectionMode, error) { + vals := map[string]VirtualNetworkGatewayConnectionMode{ + "default": VirtualNetworkGatewayConnectionModeDefault, + "initiatoronly": VirtualNetworkGatewayConnectionModeInitiatorOnly, + "responderonly": VirtualNetworkGatewayConnectionModeResponderOnly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionMode(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionProtocol string + +const ( + VirtualNetworkGatewayConnectionProtocolIKEvOne VirtualNetworkGatewayConnectionProtocol = "IKEv1" + VirtualNetworkGatewayConnectionProtocolIKEvTwo VirtualNetworkGatewayConnectionProtocol = "IKEv2" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionProtocol() []string { + return []string{ + string(VirtualNetworkGatewayConnectionProtocolIKEvOne), + string(VirtualNetworkGatewayConnectionProtocolIKEvTwo), + } +} + +func (s *VirtualNetworkGatewayConnectionProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionProtocol(input string) (*VirtualNetworkGatewayConnectionProtocol, error) { + vals := map[string]VirtualNetworkGatewayConnectionProtocol{ + "ikev1": VirtualNetworkGatewayConnectionProtocolIKEvOne, + "ikev2": VirtualNetworkGatewayConnectionProtocolIKEvTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionProtocol(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionStatus string + +const ( + VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected" + VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting" + VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected" + VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionStatus() []string { + return []string{ + string(VirtualNetworkGatewayConnectionStatusConnected), + string(VirtualNetworkGatewayConnectionStatusConnecting), + string(VirtualNetworkGatewayConnectionStatusNotConnected), + string(VirtualNetworkGatewayConnectionStatusUnknown), + } +} + +func (s *VirtualNetworkGatewayConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionStatus(input string) (*VirtualNetworkGatewayConnectionStatus, error) { + vals := map[string]VirtualNetworkGatewayConnectionStatus{ + "connected": VirtualNetworkGatewayConnectionStatusConnected, + "connecting": VirtualNetworkGatewayConnectionStatusConnecting, + "notconnected": VirtualNetworkGatewayConnectionStatusNotConnected, + "unknown": VirtualNetworkGatewayConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionStatus(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionType string + +const ( + VirtualNetworkGatewayConnectionTypeExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute" + VirtualNetworkGatewayConnectionTypeIPsec VirtualNetworkGatewayConnectionType = "IPsec" + VirtualNetworkGatewayConnectionTypeVPNClient VirtualNetworkGatewayConnectionType = "VPNClient" + VirtualNetworkGatewayConnectionTypeVnetTwoVnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionType() []string { + return []string{ + string(VirtualNetworkGatewayConnectionTypeExpressRoute), + string(VirtualNetworkGatewayConnectionTypeIPsec), + string(VirtualNetworkGatewayConnectionTypeVPNClient), + string(VirtualNetworkGatewayConnectionTypeVnetTwoVnet), + } +} + +func (s *VirtualNetworkGatewayConnectionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionType(input string) (*VirtualNetworkGatewayConnectionType, error) { + vals := map[string]VirtualNetworkGatewayConnectionType{ + "expressroute": VirtualNetworkGatewayConnectionTypeExpressRoute, + "ipsec": VirtualNetworkGatewayConnectionTypeIPsec, + "vpnclient": VirtualNetworkGatewayConnectionTypeVPNClient, + "vnet2vnet": VirtualNetworkGatewayConnectionTypeVnetTwoVnet, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionType(input) + return &out, nil +} + +type VirtualNetworkGatewaySkuName string + +const ( + VirtualNetworkGatewaySkuNameBasic VirtualNetworkGatewaySkuName = "Basic" + VirtualNetworkGatewaySkuNameErGwOneAZ VirtualNetworkGatewaySkuName = "ErGw1AZ" + VirtualNetworkGatewaySkuNameErGwScale VirtualNetworkGatewaySkuName = "ErGwScale" + VirtualNetworkGatewaySkuNameErGwThreeAZ VirtualNetworkGatewaySkuName = "ErGw3AZ" + VirtualNetworkGatewaySkuNameErGwTwoAZ VirtualNetworkGatewaySkuName = "ErGw2AZ" + VirtualNetworkGatewaySkuNameHighPerformance VirtualNetworkGatewaySkuName = "HighPerformance" + VirtualNetworkGatewaySkuNameStandard VirtualNetworkGatewaySkuName = "Standard" + VirtualNetworkGatewaySkuNameUltraPerformance VirtualNetworkGatewaySkuName = "UltraPerformance" + VirtualNetworkGatewaySkuNameVpnGwFive VirtualNetworkGatewaySkuName = "VpnGw5" + VirtualNetworkGatewaySkuNameVpnGwFiveAZ VirtualNetworkGatewaySkuName = "VpnGw5AZ" + VirtualNetworkGatewaySkuNameVpnGwFour VirtualNetworkGatewaySkuName = "VpnGw4" + VirtualNetworkGatewaySkuNameVpnGwFourAZ VirtualNetworkGatewaySkuName = "VpnGw4AZ" + VirtualNetworkGatewaySkuNameVpnGwOne VirtualNetworkGatewaySkuName = "VpnGw1" + VirtualNetworkGatewaySkuNameVpnGwOneAZ VirtualNetworkGatewaySkuName = "VpnGw1AZ" + VirtualNetworkGatewaySkuNameVpnGwThree VirtualNetworkGatewaySkuName = "VpnGw3" + VirtualNetworkGatewaySkuNameVpnGwThreeAZ VirtualNetworkGatewaySkuName = "VpnGw3AZ" + VirtualNetworkGatewaySkuNameVpnGwTwo VirtualNetworkGatewaySkuName = "VpnGw2" + VirtualNetworkGatewaySkuNameVpnGwTwoAZ VirtualNetworkGatewaySkuName = "VpnGw2AZ" +) + +func PossibleValuesForVirtualNetworkGatewaySkuName() []string { + return []string{ + string(VirtualNetworkGatewaySkuNameBasic), + string(VirtualNetworkGatewaySkuNameErGwOneAZ), + string(VirtualNetworkGatewaySkuNameErGwScale), + string(VirtualNetworkGatewaySkuNameErGwThreeAZ), + string(VirtualNetworkGatewaySkuNameErGwTwoAZ), + string(VirtualNetworkGatewaySkuNameHighPerformance), + string(VirtualNetworkGatewaySkuNameStandard), + string(VirtualNetworkGatewaySkuNameUltraPerformance), + string(VirtualNetworkGatewaySkuNameVpnGwFive), + string(VirtualNetworkGatewaySkuNameVpnGwFiveAZ), + string(VirtualNetworkGatewaySkuNameVpnGwFour), + string(VirtualNetworkGatewaySkuNameVpnGwFourAZ), + string(VirtualNetworkGatewaySkuNameVpnGwOne), + string(VirtualNetworkGatewaySkuNameVpnGwOneAZ), + string(VirtualNetworkGatewaySkuNameVpnGwThree), + string(VirtualNetworkGatewaySkuNameVpnGwThreeAZ), + string(VirtualNetworkGatewaySkuNameVpnGwTwo), + string(VirtualNetworkGatewaySkuNameVpnGwTwoAZ), + } +} + +func (s *VirtualNetworkGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewaySkuName(input string) (*VirtualNetworkGatewaySkuName, error) { + vals := map[string]VirtualNetworkGatewaySkuName{ + "basic": VirtualNetworkGatewaySkuNameBasic, + "ergw1az": VirtualNetworkGatewaySkuNameErGwOneAZ, + "ergwscale": VirtualNetworkGatewaySkuNameErGwScale, + "ergw3az": VirtualNetworkGatewaySkuNameErGwThreeAZ, + "ergw2az": VirtualNetworkGatewaySkuNameErGwTwoAZ, + "highperformance": VirtualNetworkGatewaySkuNameHighPerformance, + "standard": VirtualNetworkGatewaySkuNameStandard, + "ultraperformance": VirtualNetworkGatewaySkuNameUltraPerformance, + "vpngw5": VirtualNetworkGatewaySkuNameVpnGwFive, + "vpngw5az": VirtualNetworkGatewaySkuNameVpnGwFiveAZ, + "vpngw4": VirtualNetworkGatewaySkuNameVpnGwFour, + "vpngw4az": VirtualNetworkGatewaySkuNameVpnGwFourAZ, + "vpngw1": VirtualNetworkGatewaySkuNameVpnGwOne, + "vpngw1az": VirtualNetworkGatewaySkuNameVpnGwOneAZ, + "vpngw3": VirtualNetworkGatewaySkuNameVpnGwThree, + "vpngw3az": VirtualNetworkGatewaySkuNameVpnGwThreeAZ, + "vpngw2": VirtualNetworkGatewaySkuNameVpnGwTwo, + "vpngw2az": VirtualNetworkGatewaySkuNameVpnGwTwoAZ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewaySkuName(input) + return &out, nil +} + +type VirtualNetworkGatewaySkuTier string + +const ( + VirtualNetworkGatewaySkuTierBasic VirtualNetworkGatewaySkuTier = "Basic" + VirtualNetworkGatewaySkuTierErGwOneAZ VirtualNetworkGatewaySkuTier = "ErGw1AZ" + VirtualNetworkGatewaySkuTierErGwScale VirtualNetworkGatewaySkuTier = "ErGwScale" + VirtualNetworkGatewaySkuTierErGwThreeAZ VirtualNetworkGatewaySkuTier = "ErGw3AZ" + VirtualNetworkGatewaySkuTierErGwTwoAZ VirtualNetworkGatewaySkuTier = "ErGw2AZ" + VirtualNetworkGatewaySkuTierHighPerformance VirtualNetworkGatewaySkuTier = "HighPerformance" + VirtualNetworkGatewaySkuTierStandard VirtualNetworkGatewaySkuTier = "Standard" + VirtualNetworkGatewaySkuTierUltraPerformance VirtualNetworkGatewaySkuTier = "UltraPerformance" + VirtualNetworkGatewaySkuTierVpnGwFive VirtualNetworkGatewaySkuTier = "VpnGw5" + VirtualNetworkGatewaySkuTierVpnGwFiveAZ VirtualNetworkGatewaySkuTier = "VpnGw5AZ" + VirtualNetworkGatewaySkuTierVpnGwFour VirtualNetworkGatewaySkuTier = "VpnGw4" + VirtualNetworkGatewaySkuTierVpnGwFourAZ VirtualNetworkGatewaySkuTier = "VpnGw4AZ" + VirtualNetworkGatewaySkuTierVpnGwOne VirtualNetworkGatewaySkuTier = "VpnGw1" + VirtualNetworkGatewaySkuTierVpnGwOneAZ VirtualNetworkGatewaySkuTier = "VpnGw1AZ" + VirtualNetworkGatewaySkuTierVpnGwThree VirtualNetworkGatewaySkuTier = "VpnGw3" + VirtualNetworkGatewaySkuTierVpnGwThreeAZ VirtualNetworkGatewaySkuTier = "VpnGw3AZ" + VirtualNetworkGatewaySkuTierVpnGwTwo VirtualNetworkGatewaySkuTier = "VpnGw2" + VirtualNetworkGatewaySkuTierVpnGwTwoAZ VirtualNetworkGatewaySkuTier = "VpnGw2AZ" +) + +func PossibleValuesForVirtualNetworkGatewaySkuTier() []string { + return []string{ + string(VirtualNetworkGatewaySkuTierBasic), + string(VirtualNetworkGatewaySkuTierErGwOneAZ), + string(VirtualNetworkGatewaySkuTierErGwScale), + string(VirtualNetworkGatewaySkuTierErGwThreeAZ), + string(VirtualNetworkGatewaySkuTierErGwTwoAZ), + string(VirtualNetworkGatewaySkuTierHighPerformance), + string(VirtualNetworkGatewaySkuTierStandard), + string(VirtualNetworkGatewaySkuTierUltraPerformance), + string(VirtualNetworkGatewaySkuTierVpnGwFive), + string(VirtualNetworkGatewaySkuTierVpnGwFiveAZ), + string(VirtualNetworkGatewaySkuTierVpnGwFour), + string(VirtualNetworkGatewaySkuTierVpnGwFourAZ), + string(VirtualNetworkGatewaySkuTierVpnGwOne), + string(VirtualNetworkGatewaySkuTierVpnGwOneAZ), + string(VirtualNetworkGatewaySkuTierVpnGwThree), + string(VirtualNetworkGatewaySkuTierVpnGwThreeAZ), + string(VirtualNetworkGatewaySkuTierVpnGwTwo), + string(VirtualNetworkGatewaySkuTierVpnGwTwoAZ), + } +} + +func (s *VirtualNetworkGatewaySkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewaySkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewaySkuTier(input string) (*VirtualNetworkGatewaySkuTier, error) { + vals := map[string]VirtualNetworkGatewaySkuTier{ + "basic": VirtualNetworkGatewaySkuTierBasic, + "ergw1az": VirtualNetworkGatewaySkuTierErGwOneAZ, + "ergwscale": VirtualNetworkGatewaySkuTierErGwScale, + "ergw3az": VirtualNetworkGatewaySkuTierErGwThreeAZ, + "ergw2az": VirtualNetworkGatewaySkuTierErGwTwoAZ, + "highperformance": VirtualNetworkGatewaySkuTierHighPerformance, + "standard": VirtualNetworkGatewaySkuTierStandard, + "ultraperformance": VirtualNetworkGatewaySkuTierUltraPerformance, + "vpngw5": VirtualNetworkGatewaySkuTierVpnGwFive, + "vpngw5az": VirtualNetworkGatewaySkuTierVpnGwFiveAZ, + "vpngw4": VirtualNetworkGatewaySkuTierVpnGwFour, + "vpngw4az": VirtualNetworkGatewaySkuTierVpnGwFourAZ, + "vpngw1": VirtualNetworkGatewaySkuTierVpnGwOne, + "vpngw1az": VirtualNetworkGatewaySkuTierVpnGwOneAZ, + "vpngw3": VirtualNetworkGatewaySkuTierVpnGwThree, + "vpngw3az": VirtualNetworkGatewaySkuTierVpnGwThreeAZ, + "vpngw2": VirtualNetworkGatewaySkuTierVpnGwTwo, + "vpngw2az": VirtualNetworkGatewaySkuTierVpnGwTwoAZ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewaySkuTier(input) + return &out, nil +} + +type VirtualNetworkGatewayType string + +const ( + VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute" + VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = "LocalGateway" + VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn" +) + +func PossibleValuesForVirtualNetworkGatewayType() []string { + return []string{ + string(VirtualNetworkGatewayTypeExpressRoute), + string(VirtualNetworkGatewayTypeLocalGateway), + string(VirtualNetworkGatewayTypeVpn), + } +} + +func (s *VirtualNetworkGatewayType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayType(input string) (*VirtualNetworkGatewayType, error) { + vals := map[string]VirtualNetworkGatewayType{ + "expressroute": VirtualNetworkGatewayTypeExpressRoute, + "localgateway": VirtualNetworkGatewayTypeLocalGateway, + "vpn": VirtualNetworkGatewayTypeVpn, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayType(input) + return &out, nil +} + +type VpnAuthenticationType string + +const ( + VpnAuthenticationTypeAAD VpnAuthenticationType = "AAD" + VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate" + VpnAuthenticationTypeRadius VpnAuthenticationType = "Radius" +) + +func PossibleValuesForVpnAuthenticationType() []string { + return []string{ + string(VpnAuthenticationTypeAAD), + string(VpnAuthenticationTypeCertificate), + string(VpnAuthenticationTypeRadius), + } +} + +func (s *VpnAuthenticationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnAuthenticationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnAuthenticationType(input string) (*VpnAuthenticationType, error) { + vals := map[string]VpnAuthenticationType{ + "aad": VpnAuthenticationTypeAAD, + "certificate": VpnAuthenticationTypeCertificate, + "radius": VpnAuthenticationTypeRadius, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnAuthenticationType(input) + return &out, nil +} + +type VpnClientProtocol string + +const ( + VpnClientProtocolIkeVTwo VpnClientProtocol = "IkeV2" + VpnClientProtocolOpenVPN VpnClientProtocol = "OpenVPN" + VpnClientProtocolSSTP VpnClientProtocol = "SSTP" +) + +func PossibleValuesForVpnClientProtocol() []string { + return []string{ + string(VpnClientProtocolIkeVTwo), + string(VpnClientProtocolOpenVPN), + string(VpnClientProtocolSSTP), + } +} + +func (s *VpnClientProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnClientProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnClientProtocol(input string) (*VpnClientProtocol, error) { + vals := map[string]VpnClientProtocol{ + "ikev2": VpnClientProtocolIkeVTwo, + "openvpn": VpnClientProtocolOpenVPN, + "sstp": VpnClientProtocolSSTP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnClientProtocol(input) + return &out, nil +} + +type VpnGatewayGeneration string + +const ( + VpnGatewayGenerationGenerationOne VpnGatewayGeneration = "Generation1" + VpnGatewayGenerationGenerationTwo VpnGatewayGeneration = "Generation2" + VpnGatewayGenerationNone VpnGatewayGeneration = "None" +) + +func PossibleValuesForVpnGatewayGeneration() []string { + return []string{ + string(VpnGatewayGenerationGenerationOne), + string(VpnGatewayGenerationGenerationTwo), + string(VpnGatewayGenerationNone), + } +} + +func (s *VpnGatewayGeneration) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnGatewayGeneration(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnGatewayGeneration(input string) (*VpnGatewayGeneration, error) { + vals := map[string]VpnGatewayGeneration{ + "generation1": VpnGatewayGenerationGenerationOne, + "generation2": VpnGatewayGenerationGenerationTwo, + "none": VpnGatewayGenerationNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnGatewayGeneration(input) + return &out, nil +} + +type VpnNatRuleMode string + +const ( + VpnNatRuleModeEgressSnat VpnNatRuleMode = "EgressSnat" + VpnNatRuleModeIngressSnat VpnNatRuleMode = "IngressSnat" +) + +func PossibleValuesForVpnNatRuleMode() []string { + return []string{ + string(VpnNatRuleModeEgressSnat), + string(VpnNatRuleModeIngressSnat), + } +} + +func (s *VpnNatRuleMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleMode(input string) (*VpnNatRuleMode, error) { + vals := map[string]VpnNatRuleMode{ + "egresssnat": VpnNatRuleModeEgressSnat, + "ingresssnat": VpnNatRuleModeIngressSnat, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleMode(input) + return &out, nil +} + +type VpnNatRuleType string + +const ( + VpnNatRuleTypeDynamic VpnNatRuleType = "Dynamic" + VpnNatRuleTypeStatic VpnNatRuleType = "Static" +) + +func PossibleValuesForVpnNatRuleType() []string { + return []string{ + string(VpnNatRuleTypeDynamic), + string(VpnNatRuleTypeStatic), + } +} + +func (s *VpnNatRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleType(input string) (*VpnNatRuleType, error) { + vals := map[string]VpnNatRuleType{ + "dynamic": VpnNatRuleTypeDynamic, + "static": VpnNatRuleTypeStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleType(input) + return &out, nil +} + +type VpnPolicyMemberAttributeType string + +const ( + VpnPolicyMemberAttributeTypeAADGroupId VpnPolicyMemberAttributeType = "AADGroupId" + VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId" + VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId" +) + +func PossibleValuesForVpnPolicyMemberAttributeType() []string { + return []string{ + string(VpnPolicyMemberAttributeTypeAADGroupId), + string(VpnPolicyMemberAttributeTypeCertificateGroupId), + string(VpnPolicyMemberAttributeTypeRadiusAzureGroupId), + } +} + +func (s *VpnPolicyMemberAttributeType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnPolicyMemberAttributeType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnPolicyMemberAttributeType(input string) (*VpnPolicyMemberAttributeType, error) { + vals := map[string]VpnPolicyMemberAttributeType{ + "aadgroupid": VpnPolicyMemberAttributeTypeAADGroupId, + "certificategroupid": VpnPolicyMemberAttributeTypeCertificateGroupId, + "radiusazuregroupid": VpnPolicyMemberAttributeTypeRadiusAzureGroupId, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnPolicyMemberAttributeType(input) + return &out, nil +} + +type VpnType string + +const ( + VpnTypePolicyBased VpnType = "PolicyBased" + VpnTypeRouteBased VpnType = "RouteBased" +) + +func PossibleValuesForVpnType() []string { + return []string{ + string(VpnTypePolicyBased), + string(VpnTypeRouteBased), + } +} + +func (s *VpnType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnType(input string) (*VpnType, error) { + vals := map[string]VpnType{ + "policybased": VpnTypePolicyBased, + "routebased": VpnTypeRouteBased, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/id_connection.go new file mode 100644 index 000000000000..25fa92d52388 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/id_connection.go @@ -0,0 +1,130 @@ +package virtualnetworkgatewayconnections + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ConnectionId{}) +} + +var _ resourceids.ResourceId = &ConnectionId{} + +// ConnectionId is a struct representing the Resource ID for a Connection +type ConnectionId struct { + SubscriptionId string + ResourceGroupName string + ConnectionName string +} + +// NewConnectionID returns a new ConnectionId struct +func NewConnectionID(subscriptionId string, resourceGroupName string, connectionName string) ConnectionId { + return ConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ConnectionName: connectionName, + } +} + +// ParseConnectionID parses 'input' into a ConnectionId +func ParseConnectionID(input string) (*ConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConnectionIDInsensitively parses 'input' case-insensitively into a ConnectionId +// note: this method should only be used for API response data and not user input +func ParseConnectionIDInsensitively(input string) (*ConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ConnectionName, ok = input.Parsed["connectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "connectionName", input) + } + + return nil +} + +// ValidateConnectionID checks that 'input' can be parsed as a Connection ID +func ValidateConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Connection ID +func (id ConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/connections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Connection ID +func (id ConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticConnections", "connections", "connections"), + resourceids.UserSpecifiedSegment("connectionName", "connectionName"), + } +} + +// String returns a human-readable description of this Connection ID +func (id ConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Connection Name: %q", id.ConnectionName), + } + return fmt.Sprintf("Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_createorupdate.go new file mode 100644 index 000000000000..2c95ee842546 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_createorupdate.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGatewayConnection +} + +// CreateOrUpdate ... +func (c VirtualNetworkGatewayConnectionsClient) CreateOrUpdate(ctx context.Context, id ConnectionId, input VirtualNetworkGatewayConnection) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) CreateOrUpdateThenPoll(ctx context.Context, id ConnectionId, input VirtualNetworkGatewayConnection) error { + result, err := c.CreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing CreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after CreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_delete.go new file mode 100644 index 000000000000..4d46161ff400 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_delete.go @@ -0,0 +1,71 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c VirtualNetworkGatewayConnectionsClient) Delete(ctx context.Context, id ConnectionId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) DeleteThenPoll(ctx context.Context, id ConnectionId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_get.go new file mode 100644 index 000000000000..842bab814e9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_get.go @@ -0,0 +1,53 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGatewayConnection +} + +// Get ... +func (c VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, id ConnectionId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualNetworkGatewayConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getikesas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getikesas.go new file mode 100644 index 000000000000..f146120f19ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getikesas.go @@ -0,0 +1,71 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetIkeSasOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// GetIkeSas ... +func (c VirtualNetworkGatewayConnectionsClient) GetIkeSas(ctx context.Context, id ConnectionId) (result GetIkeSasOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getikesas", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GetIkeSasThenPoll performs GetIkeSas then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) GetIkeSasThenPoll(ctx context.Context, id ConnectionId) error { + result, err := c.GetIkeSas(ctx, id) + if err != nil { + return fmt.Errorf("performing GetIkeSas: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after GetIkeSas: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getsharedkey.go new file mode 100644 index 000000000000..3606b2efb656 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_getsharedkey.go @@ -0,0 +1,54 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetSharedKeyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKey +} + +// GetSharedKey ... +func (c VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Context, id ConnectionId) (result GetSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/sharedkey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionSharedKey + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_list.go new file mode 100644 index 000000000000..34dc525dce47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_list.go @@ -0,0 +1,106 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualNetworkGatewayConnection +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualNetworkGatewayConnection +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c VirtualNetworkGatewayConnectionsClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/connections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualNetworkGatewayConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c VirtualNetworkGatewayConnectionsClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, VirtualNetworkGatewayConnectionOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualNetworkGatewayConnectionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualNetworkGatewayConnectionOperationPredicate) (result ListCompleteResult, err error) { + items := make([]VirtualNetworkGatewayConnection, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetconnection.go new file mode 100644 index 000000000000..7898a434030f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetconnection.go @@ -0,0 +1,69 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResetConnectionOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ResetConnection ... +func (c VirtualNetworkGatewayConnectionsClient) ResetConnection(ctx context.Context, id ConnectionId) (result ResetConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/resetconnection", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ResetConnectionThenPoll performs ResetConnection then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) ResetConnectionThenPoll(ctx context.Context, id ConnectionId) error { + result, err := c.ResetConnection(ctx, id) + if err != nil { + return fmt.Errorf("performing ResetConnection: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ResetConnection: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetsharedkey.go new file mode 100644 index 000000000000..37c842b0ba1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_resetsharedkey.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResetSharedKeyOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionResetSharedKey +} + +// ResetSharedKey ... +func (c VirtualNetworkGatewayConnectionsClient) ResetSharedKey(ctx context.Context, id ConnectionId, input ConnectionResetSharedKey) (result ResetSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/sharedkey/reset", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ResetSharedKeyThenPoll performs ResetSharedKey then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) ResetSharedKeyThenPoll(ctx context.Context, id ConnectionId, input ConnectionResetSharedKey) error { + result, err := c.ResetSharedKey(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ResetSharedKey: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ResetSharedKey: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_setsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_setsharedkey.go new file mode 100644 index 000000000000..7cce553c9535 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_setsharedkey.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SetSharedKeyOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKey +} + +// SetSharedKey ... +func (c VirtualNetworkGatewayConnectionsClient) SetSharedKey(ctx context.Context, id ConnectionId, input ConnectionSharedKey) (result SetSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/sharedkey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// SetSharedKeyThenPoll performs SetSharedKey then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) SetSharedKeyThenPoll(ctx context.Context, id ConnectionId, input ConnectionSharedKey) error { + result, err := c.SetSharedKey(ctx, id, input) + if err != nil { + return fmt.Errorf("performing SetSharedKey: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after SetSharedKey: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_startpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_startpacketcapture.go new file mode 100644 index 000000000000..d0bd4f6819d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_startpacketcapture.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StartPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// StartPacketCapture ... +func (c VirtualNetworkGatewayConnectionsClient) StartPacketCapture(ctx context.Context, id ConnectionId, input VpnPacketCaptureStartParameters) (result StartPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/startPacketCapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StartPacketCaptureThenPoll performs StartPacketCapture then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) StartPacketCaptureThenPoll(ctx context.Context, id ConnectionId, input VpnPacketCaptureStartParameters) error { + result, err := c.StartPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing StartPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StartPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_stoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_stoppacketcapture.go new file mode 100644 index 000000000000..8741b058a40e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_stoppacketcapture.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StopPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// StopPacketCapture ... +func (c VirtualNetworkGatewayConnectionsClient) StopPacketCapture(ctx context.Context, id ConnectionId, input VpnPacketCaptureStopParameters) (result StopPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stopPacketCapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// StopPacketCaptureThenPoll performs StopPacketCapture then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) StopPacketCaptureThenPoll(ctx context.Context, id ConnectionId, input VpnPacketCaptureStopParameters) error { + result, err := c.StopPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing StopPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after StopPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_updatetags.go new file mode 100644 index 000000000000..6a0ba8aaae88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/method_updatetags.go @@ -0,0 +1,75 @@ +package virtualnetworkgatewayconnections + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualNetworkGatewayConnection +} + +// UpdateTags ... +func (c VirtualNetworkGatewayConnectionsClient) UpdateTags(ctx context.Context, id ConnectionId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// UpdateTagsThenPoll performs UpdateTags then polls until it's completed +func (c VirtualNetworkGatewayConnectionsClient) UpdateTagsThenPoll(ctx context.Context, id ConnectionId, input TagsObject) error { + result, err := c.UpdateTags(ctx, id, input) + if err != nil { + return fmt.Errorf("performing UpdateTags: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after UpdateTags: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_addressspace.go new file mode 100644 index 000000000000..e94b18200568 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_addressspace.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_bgpsettings.go new file mode 100644 index 000000000000..e03680282e61 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_bgpsettings.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` + BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` + PeerWeight *int64 `json:"peerWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionresetsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionresetsharedkey.go new file mode 100644 index 000000000000..3e1887b9d36d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionresetsharedkey.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionResetSharedKey struct { + KeyLength int64 `json:"keyLength"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionsharedkey.go new file mode 100644 index 000000000000..069812d03a42 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_connectionsharedkey.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionSharedKey struct { + Id *string `json:"id,omitempty"` + Value string `json:"value"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_gatewaycustombgpipaddressipconfiguration.go new file mode 100644 index 000000000000..7fda76a83171 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_gatewaycustombgpipaddressipconfiguration.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayCustomBgpIPAddressIPConfiguration struct { + CustomBgpIPAddress string `json:"customBgpIpAddress"` + IPConfigurationId string `json:"ipConfigurationId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipconfigurationbgppeeringaddress.go new file mode 100644 index 000000000000..dd6001591ee4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipconfigurationbgppeeringaddress.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationBgpPeeringAddress struct { + CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` + DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` + IPconfigurationId *string `json:"ipconfigurationId,omitempty"` + TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipsecpolicy.go new file mode 100644 index 000000000000..e36e053ac756 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_ipsecpolicy.go @@ -0,0 +1,15 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPsecPolicy struct { + DhGroup DhGroup `json:"dhGroup"` + IPsecEncryption IPsecEncryption `json:"ipsecEncryption"` + IPsecIntegrity IPsecIntegrity `json:"ipsecIntegrity"` + IkeEncryption IkeEncryption `json:"ikeEncryption"` + IkeIntegrity IkeIntegrity `json:"ikeIntegrity"` + PfsGroup PfsGroup `json:"pfsGroup"` + SaDataSizeKilobytes int64 `json:"saDataSizeKilobytes"` + SaLifeTimeSeconds int64 `json:"saLifeTimeSeconds"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgateway.go new file mode 100644 index 000000000000..9ddafdd0d6e5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgateway.go @@ -0,0 +1,14 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties LocalNetworkGatewayPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgatewaypropertiesformat.go new file mode 100644 index 000000000000..bf0176c3023d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_localnetworkgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LocalNetworkGatewayPropertiesFormat struct { + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + GatewayIPAddress *string `json:"gatewayIpAddress,omitempty"` + LocalNetworkAddressSpace *AddressSpace `json:"localNetworkAddressSpace,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_radiusserver.go new file mode 100644 index 000000000000..ffc93e649653 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_radiusserver.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RadiusServer struct { + RadiusServerAddress string `json:"radiusServerAddress"` + RadiusServerScore *int64 `json:"radiusServerScore,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_subresource.go new file mode 100644 index 000000000000..25e6382622d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_subresource.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tagsobject.go new file mode 100644 index 000000000000..5f1bce5d03db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tagsobject.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_trafficselectorpolicy.go new file mode 100644 index 000000000000..7d824402850b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_trafficselectorpolicy.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficSelectorPolicy struct { + LocalAddressRanges []string `json:"localAddressRanges"` + RemoteAddressRanges []string `json:"remoteAddressRanges"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tunnelconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tunnelconnectionhealth.go new file mode 100644 index 000000000000..71722a9b5e7d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_tunnelconnectionhealth.go @@ -0,0 +1,12 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TunnelConnectionHealth struct { + ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + LastConnectionEstablishedUtcTime *string `json:"lastConnectionEstablishedUtcTime,omitempty"` + Tunnel *string `json:"tunnel,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgateway.go new file mode 100644 index 000000000000..4fc1211e31dc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgateway.go @@ -0,0 +1,21 @@ +package virtualnetworkgatewayconnections + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGateway struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties VirtualNetworkGatewayPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscalebounds.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscalebounds.go new file mode 100644 index 000000000000..1c546e60aa68 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscalebounds.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayAutoScaleBounds struct { + Max *int64 `json:"max,omitempty"` + Min *int64 `json:"min,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscaleconfiguration.go new file mode 100644 index 000000000000..5fd318f04460 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayautoscaleconfiguration.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayAutoScaleConfiguration struct { + Bounds *VirtualNetworkGatewayAutoScaleBounds `json:"bounds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnection.go new file mode 100644 index 000000000000..05a6ea7eb900 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnection.go @@ -0,0 +1,14 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties VirtualNetworkGatewayConnectionPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnectionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnectionpropertiesformat.go new file mode 100644 index 000000000000..ef9af43f2078 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayconnectionpropertiesformat.go @@ -0,0 +1,34 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnectionPropertiesFormat struct { + AuthorizationKey *string `json:"authorizationKey,omitempty"` + ConnectionMode *VirtualNetworkGatewayConnectionMode `json:"connectionMode,omitempty"` + ConnectionProtocol *VirtualNetworkGatewayConnectionProtocol `json:"connectionProtocol,omitempty"` + ConnectionStatus *VirtualNetworkGatewayConnectionStatus `json:"connectionStatus,omitempty"` + ConnectionType VirtualNetworkGatewayConnectionType `json:"connectionType"` + DpdTimeoutSeconds *int64 `json:"dpdTimeoutSeconds,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + EgressNatRules *[]SubResource `json:"egressNatRules,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnablePrivateLinkFastPath *bool `json:"enablePrivateLinkFastPath,omitempty"` + ExpressRouteGatewayBypass *bool `json:"expressRouteGatewayBypass,omitempty"` + GatewayCustomBgpIPAddresses *[]GatewayCustomBgpIPAddressIPConfiguration `json:"gatewayCustomBgpIpAddresses,omitempty"` + IPsecPolicies *[]IPsecPolicy `json:"ipsecPolicies,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + IngressNatRules *[]SubResource `json:"ingressNatRules,omitempty"` + LocalNetworkGateway2 *LocalNetworkGateway `json:"localNetworkGateway2,omitempty"` + Peer *SubResource `json:"peer,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + TrafficSelectorPolicies *[]TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` + TunnelConnectionStatus *[]TunnelConnectionHealth `json:"tunnelConnectionStatus,omitempty"` + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + VirtualNetworkGateway1 VirtualNetworkGateway `json:"virtualNetworkGateway1"` + VirtualNetworkGateway2 *VirtualNetworkGateway `json:"virtualNetworkGateway2,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfiguration.go new file mode 100644 index 000000000000..30467eb2ed13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfiguration.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..863c37692960 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatrule.go new file mode 100644 index 000000000000..ff6c91b0d664 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatrule.go @@ -0,0 +1,12 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayNatRuleProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatruleproperties.go new file mode 100644 index 000000000000..75185bb4a84e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaynatruleproperties.go @@ -0,0 +1,13 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayNatRuleProperties struct { + ExternalMappings *[]VpnNatRuleMapping `json:"externalMappings,omitempty"` + IPConfigurationId *string `json:"ipConfigurationId,omitempty"` + InternalMappings *[]VpnNatRuleMapping `json:"internalMappings,omitempty"` + Mode *VpnNatRuleMode `json:"mode,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Type *VpnNatRuleType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroup.go new file mode 100644 index 000000000000..cd507b1d5330 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroup.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkGatewayPolicyGroupProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupmember.go new file mode 100644 index 000000000000..632e3bda52fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupmember.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroupMember struct { + AttributeType *VpnPolicyMemberAttributeType `json:"attributeType,omitempty"` + AttributeValue *string `json:"attributeValue,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupproperties.go new file mode 100644 index 000000000000..6b20992105ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypolicygroupproperties.go @@ -0,0 +1,12 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPolicyGroupProperties struct { + IsDefault bool `json:"isDefault"` + PolicyMembers []VirtualNetworkGatewayPolicyGroupMember `json:"policyMembers"` + Priority int64 `json:"priority"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VngClientConnectionConfigurations *[]SubResource `json:"vngClientConnectionConfigurations,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypropertiesformat.go new file mode 100644 index 000000000000..12e2b05bcd97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaypropertiesformat.go @@ -0,0 +1,33 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPropertiesFormat struct { + ActiveActive *bool `json:"activeActive,omitempty"` + AdminState *AdminState `json:"adminState,omitempty"` + AllowRemoteVnetTraffic *bool `json:"allowRemoteVnetTraffic,omitempty"` + AllowVirtualWanTraffic *bool `json:"allowVirtualWanTraffic,omitempty"` + AutoScaleConfiguration *VirtualNetworkGatewayAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + CustomRoutes *AddressSpace `json:"customRoutes,omitempty"` + DisableIPSecReplayProtection *bool `json:"disableIPSecReplayProtection,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` + EnableDnsForwarding *bool `json:"enableDnsForwarding,omitempty"` + EnablePrivateIPAddress *bool `json:"enablePrivateIpAddress,omitempty"` + GatewayDefaultSite *SubResource `json:"gatewayDefaultSite,omitempty"` + GatewayType *VirtualNetworkGatewayType `json:"gatewayType,omitempty"` + IPConfigurations *[]VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"` + InboundDnsForwardingEndpoint *string `json:"inboundDnsForwardingEndpoint,omitempty"` + NatRules *[]VirtualNetworkGatewayNatRule `json:"natRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResiliencyModel *ResiliencyModel `json:"resiliencyModel,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Sku *VirtualNetworkGatewaySku `json:"sku,omitempty"` + VNetExtendedLocationResourceId *string `json:"vNetExtendedLocationResourceId,omitempty"` + VirtualNetworkGatewayPolicyGroups *[]VirtualNetworkGatewayPolicyGroup `json:"virtualNetworkGatewayPolicyGroups,omitempty"` + VpnClientConfiguration *VpnClientConfiguration `json:"vpnClientConfiguration,omitempty"` + VpnGatewayGeneration *VpnGatewayGeneration `json:"vpnGatewayGeneration,omitempty"` + VpnType *VpnType `json:"vpnType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaysku.go new file mode 100644 index 000000000000..301f66896ac8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_virtualnetworkgatewaysku.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewaySku struct { + Capacity *int64 `json:"capacity,omitempty"` + Name *VirtualNetworkGatewaySkuName `json:"name,omitempty"` + Tier *VirtualNetworkGatewaySkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfiguration.go new file mode 100644 index 000000000000..744d5505a177 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfiguration.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VngClientConnectionConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VngClientConnectionConfigurationProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfigurationproperties.go new file mode 100644 index 000000000000..531c18a0419f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vngclientconnectionconfigurationproperties.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VngClientConnectionConfigurationProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkGatewayPolicyGroups []SubResource `json:"virtualNetworkGatewayPolicyGroups"` + VpnClientAddressPool AddressSpace `json:"vpnClientAddressPool"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientconfiguration.go new file mode 100644 index 000000000000..f7da3943c5a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientconfiguration.go @@ -0,0 +1,20 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientConfiguration struct { + AadAudience *string `json:"aadAudience,omitempty"` + AadIssuer *string `json:"aadIssuer,omitempty"` + AadTenant *string `json:"aadTenant,omitempty"` + RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` + RadiusServers *[]RadiusServer `json:"radiusServers,omitempty"` + VngClientConnectionConfigurations *[]VngClientConnectionConfiguration `json:"vngClientConnectionConfigurations,omitempty"` + VpnAuthenticationTypes *[]VpnAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` + VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` + VpnClientIPsecPolicies *[]IPsecPolicy `json:"vpnClientIpsecPolicies,omitempty"` + VpnClientProtocols *[]VpnClientProtocol `json:"vpnClientProtocols,omitempty"` + VpnClientRevokedCertificates *[]VpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` + VpnClientRootCertificates *[]VpnClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificate.go new file mode 100644 index 000000000000..7f83a9053a4c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificate.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRevokedCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnClientRevokedCertificatePropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificatepropertiesformat.go new file mode 100644 index 000000000000..0155228d4d1e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrevokedcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRevokedCertificatePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificate.go new file mode 100644 index 000000000000..6eb8d073f4fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificate.go @@ -0,0 +1,11 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRootCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties VpnClientRootCertificatePropertiesFormat `json:"properties"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificatepropertiesformat.go new file mode 100644 index 000000000000..f5048e1ed786 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnclientrootcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientRootCertificatePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicCertData string `json:"publicCertData"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnnatrulemapping.go new file mode 100644 index 000000000000..394cabc619d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnnatrulemapping.go @@ -0,0 +1,9 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnNatRuleMapping struct { + AddressSpace *string `json:"addressSpace,omitempty"` + PortRange *string `json:"portRange,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestartparameters.go new file mode 100644 index 000000000000..52273329f1d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestartparameters.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnPacketCaptureStartParameters struct { + FilterData *string `json:"filterData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestopparameters.go new file mode 100644 index 000000000000..34b830870000 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/model_vpnpacketcapturestopparameters.go @@ -0,0 +1,8 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnPacketCaptureStopParameters struct { + SasURL *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/predicates.go new file mode 100644 index 000000000000..c1fe558dd663 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/predicates.go @@ -0,0 +1,37 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayConnectionOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VirtualNetworkGatewayConnectionOperationPredicate) Matches(input VirtualNetworkGatewayConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/version.go new file mode 100644 index 000000000000..317144dd638b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections/version.go @@ -0,0 +1,10 @@ +package virtualnetworkgatewayconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworkgatewayconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/README.md new file mode 100644 index 000000000000..9397f2c4e207 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/README.md @@ -0,0 +1,414 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways` Documentation + +The `virtualnetworkgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways" +``` + + +### Client Initialization + +```go +client := virtualnetworkgateways.NewVirtualNetworkGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VirtualNetworkGateway{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.Delete` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.DisconnectVirtualNetworkGatewayVpnConnections` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.P2SVpnConnectionRequest{ + // ... +} + + +if err := client.DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GenerateVpnProfile` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnClientParameters{ + // ... +} + + +if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.Generatevpnclientpackage` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnClientParameters{ + // ... +} + + +if err := client.GeneratevpnclientpackageThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.Get` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetAdvertisedRoutes` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetAdvertisedRoutesThenPoll(ctx, id, virtualnetworkgateways.DefaultGetAdvertisedRoutesOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetBgpPeerStatus` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetBgpPeerStatusThenPoll(ctx, id, virtualnetworkgateways.DefaultGetBgpPeerStatusOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetLearnedRoutes` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetLearnedRoutesThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetVpnProfilePackageURL` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetVpnProfilePackageURLThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetVpnclientConnectionHealth` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetVpnclientConnectionHealthThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.GetVpnclientIPsecParameters` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.ListConnections` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +// alternatively `client.ListConnections(ctx, id)` can be used to do batched pagination +items, err := client.ListConnectionsComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.Reset` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.ResetThenPoll(ctx, id, virtualnetworkgateways.DefaultResetOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.ResetVpnClientSharedKey` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +if err := client.ResetVpnClientSharedKeyThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.SetVpnclientIPsecParameters` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnClientIPsecParameters{ + // ... +} + + +if err := client.SetVpnclientIPsecParametersThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.StartPacketCapture` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnPacketCaptureStartParameters{ + // ... +} + + +if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.StopPacketCapture` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.VpnPacketCaptureStopParameters{ + // ... +} + + +if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.SupportedVpnDevices` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +read, err := client.SupportedVpnDevices(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +payload := virtualnetworkgateways.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") + +payload := virtualnetworkgateways.VirtualNetworkGatewayNatRule{ + // ... +} + + +if err := client.VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesDelete` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") + +if err := client.VirtualNetworkGatewayNatRulesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesGet` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") + +read, err := client.VirtualNetworkGatewayNatRulesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") + +// alternatively `client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx, id)` can be used to do batched pagination +items, err := client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkGatewaysClient.VpnDeviceConfigurationScript` + +```go +ctx := context.TODO() +id := virtualnetworkgateways.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") + +payload := virtualnetworkgateways.VpnDeviceScriptParameters{ + // ... +} + + +read, err := client.VpnDeviceConfigurationScript(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/constants.go new file mode 100644 index 000000000000..5f3bc70d78c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/constants.go @@ -0,0 +1,1357 @@ +package virtualnetworkgateways + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AdminState string + +const ( + AdminStateDisabled AdminState = "Disabled" + AdminStateEnabled AdminState = "Enabled" +) + +func PossibleValuesForAdminState() []string { + return []string{ + string(AdminStateDisabled), + string(AdminStateEnabled), + } +} + +func (s *AdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAdminState(input string) (*AdminState, error) { + vals := map[string]AdminState{ + "disabled": AdminStateDisabled, + "enabled": AdminStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AdminState(input) + return &out, nil +} + +type AuthenticationMethod string + +const ( + AuthenticationMethodEAPMSCHAPvTwo AuthenticationMethod = "EAPMSCHAPv2" + AuthenticationMethodEAPTLS AuthenticationMethod = "EAPTLS" +) + +func PossibleValuesForAuthenticationMethod() []string { + return []string{ + string(AuthenticationMethodEAPMSCHAPvTwo), + string(AuthenticationMethodEAPTLS), + } +} + +func (s *AuthenticationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAuthenticationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAuthenticationMethod(input string) (*AuthenticationMethod, error) { + vals := map[string]AuthenticationMethod{ + "eapmschapv2": AuthenticationMethodEAPMSCHAPvTwo, + "eaptls": AuthenticationMethodEAPTLS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AuthenticationMethod(input) + return &out, nil +} + +type BgpPeerState string + +const ( + BgpPeerStateConnected BgpPeerState = "Connected" + BgpPeerStateConnecting BgpPeerState = "Connecting" + BgpPeerStateIdle BgpPeerState = "Idle" + BgpPeerStateStopped BgpPeerState = "Stopped" + BgpPeerStateUnknown BgpPeerState = "Unknown" +) + +func PossibleValuesForBgpPeerState() []string { + return []string{ + string(BgpPeerStateConnected), + string(BgpPeerStateConnecting), + string(BgpPeerStateIdle), + string(BgpPeerStateStopped), + string(BgpPeerStateUnknown), + } +} + +func (s *BgpPeerState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBgpPeerState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBgpPeerState(input string) (*BgpPeerState, error) { + vals := map[string]BgpPeerState{ + "connected": BgpPeerStateConnected, + "connecting": BgpPeerStateConnecting, + "idle": BgpPeerStateIdle, + "stopped": BgpPeerStateStopped, + "unknown": BgpPeerStateUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BgpPeerState(input) + return &out, nil +} + +type DhGroup string + +const ( + DhGroupDHGroupOne DhGroup = "DHGroup1" + DhGroupDHGroupOneFour DhGroup = "DHGroup14" + DhGroupDHGroupTwo DhGroup = "DHGroup2" + DhGroupDHGroupTwoFour DhGroup = "DHGroup24" + DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048" + DhGroupECPThreeEightFour DhGroup = "ECP384" + DhGroupECPTwoFiveSix DhGroup = "ECP256" + DhGroupNone DhGroup = "None" +) + +func PossibleValuesForDhGroup() []string { + return []string{ + string(DhGroupDHGroupOne), + string(DhGroupDHGroupOneFour), + string(DhGroupDHGroupTwo), + string(DhGroupDHGroupTwoFour), + string(DhGroupDHGroupTwoZeroFourEight), + string(DhGroupECPThreeEightFour), + string(DhGroupECPTwoFiveSix), + string(DhGroupNone), + } +} + +func (s *DhGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDhGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDhGroup(input string) (*DhGroup, error) { + vals := map[string]DhGroup{ + "dhgroup1": DhGroupDHGroupOne, + "dhgroup14": DhGroupDHGroupOneFour, + "dhgroup2": DhGroupDHGroupTwo, + "dhgroup24": DhGroupDHGroupTwoFour, + "dhgroup2048": DhGroupDHGroupTwoZeroFourEight, + "ecp384": DhGroupECPThreeEightFour, + "ecp256": DhGroupECPTwoFiveSix, + "none": DhGroupNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DhGroup(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPsecEncryption string + +const ( + IPsecEncryptionAESOneNineTwo IPsecEncryption = "AES192" + IPsecEncryptionAESOneTwoEight IPsecEncryption = "AES128" + IPsecEncryptionAESTwoFiveSix IPsecEncryption = "AES256" + IPsecEncryptionDES IPsecEncryption = "DES" + IPsecEncryptionDESThree IPsecEncryption = "DES3" + IPsecEncryptionGCMAESOneNineTwo IPsecEncryption = "GCMAES192" + IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128" + IPsecEncryptionGCMAESTwoFiveSix IPsecEncryption = "GCMAES256" + IPsecEncryptionNone IPsecEncryption = "None" +) + +func PossibleValuesForIPsecEncryption() []string { + return []string{ + string(IPsecEncryptionAESOneNineTwo), + string(IPsecEncryptionAESOneTwoEight), + string(IPsecEncryptionAESTwoFiveSix), + string(IPsecEncryptionDES), + string(IPsecEncryptionDESThree), + string(IPsecEncryptionGCMAESOneNineTwo), + string(IPsecEncryptionGCMAESOneTwoEight), + string(IPsecEncryptionGCMAESTwoFiveSix), + string(IPsecEncryptionNone), + } +} + +func (s *IPsecEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecEncryption(input string) (*IPsecEncryption, error) { + vals := map[string]IPsecEncryption{ + "aes192": IPsecEncryptionAESOneNineTwo, + "aes128": IPsecEncryptionAESOneTwoEight, + "aes256": IPsecEncryptionAESTwoFiveSix, + "des": IPsecEncryptionDES, + "des3": IPsecEncryptionDESThree, + "gcmaes192": IPsecEncryptionGCMAESOneNineTwo, + "gcmaes128": IPsecEncryptionGCMAESOneTwoEight, + "gcmaes256": IPsecEncryptionGCMAESTwoFiveSix, + "none": IPsecEncryptionNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecEncryption(input) + return &out, nil +} + +type IPsecIntegrity string + +const ( + IPsecIntegrityGCMAESOneNineTwo IPsecIntegrity = "GCMAES192" + IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128" + IPsecIntegrityGCMAESTwoFiveSix IPsecIntegrity = "GCMAES256" + IPsecIntegrityMDFive IPsecIntegrity = "MD5" + IPsecIntegritySHAOne IPsecIntegrity = "SHA1" + IPsecIntegritySHATwoFiveSix IPsecIntegrity = "SHA256" +) + +func PossibleValuesForIPsecIntegrity() []string { + return []string{ + string(IPsecIntegrityGCMAESOneNineTwo), + string(IPsecIntegrityGCMAESOneTwoEight), + string(IPsecIntegrityGCMAESTwoFiveSix), + string(IPsecIntegrityMDFive), + string(IPsecIntegritySHAOne), + string(IPsecIntegritySHATwoFiveSix), + } +} + +func (s *IPsecIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecIntegrity(input string) (*IPsecIntegrity, error) { + vals := map[string]IPsecIntegrity{ + "gcmaes192": IPsecIntegrityGCMAESOneNineTwo, + "gcmaes128": IPsecIntegrityGCMAESOneTwoEight, + "gcmaes256": IPsecIntegrityGCMAESTwoFiveSix, + "md5": IPsecIntegrityMDFive, + "sha1": IPsecIntegritySHAOne, + "sha256": IPsecIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecIntegrity(input) + return &out, nil +} + +type IkeEncryption string + +const ( + IkeEncryptionAESOneNineTwo IkeEncryption = "AES192" + IkeEncryptionAESOneTwoEight IkeEncryption = "AES128" + IkeEncryptionAESTwoFiveSix IkeEncryption = "AES256" + IkeEncryptionDES IkeEncryption = "DES" + IkeEncryptionDESThree IkeEncryption = "DES3" + IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128" + IkeEncryptionGCMAESTwoFiveSix IkeEncryption = "GCMAES256" +) + +func PossibleValuesForIkeEncryption() []string { + return []string{ + string(IkeEncryptionAESOneNineTwo), + string(IkeEncryptionAESOneTwoEight), + string(IkeEncryptionAESTwoFiveSix), + string(IkeEncryptionDES), + string(IkeEncryptionDESThree), + string(IkeEncryptionGCMAESOneTwoEight), + string(IkeEncryptionGCMAESTwoFiveSix), + } +} + +func (s *IkeEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeEncryption(input string) (*IkeEncryption, error) { + vals := map[string]IkeEncryption{ + "aes192": IkeEncryptionAESOneNineTwo, + "aes128": IkeEncryptionAESOneTwoEight, + "aes256": IkeEncryptionAESTwoFiveSix, + "des": IkeEncryptionDES, + "des3": IkeEncryptionDESThree, + "gcmaes128": IkeEncryptionGCMAESOneTwoEight, + "gcmaes256": IkeEncryptionGCMAESTwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeEncryption(input) + return &out, nil +} + +type IkeIntegrity string + +const ( + IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128" + IkeIntegrityGCMAESTwoFiveSix IkeIntegrity = "GCMAES256" + IkeIntegrityMDFive IkeIntegrity = "MD5" + IkeIntegritySHAOne IkeIntegrity = "SHA1" + IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384" + IkeIntegritySHATwoFiveSix IkeIntegrity = "SHA256" +) + +func PossibleValuesForIkeIntegrity() []string { + return []string{ + string(IkeIntegrityGCMAESOneTwoEight), + string(IkeIntegrityGCMAESTwoFiveSix), + string(IkeIntegrityMDFive), + string(IkeIntegritySHAOne), + string(IkeIntegritySHAThreeEightFour), + string(IkeIntegritySHATwoFiveSix), + } +} + +func (s *IkeIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeIntegrity(input string) (*IkeIntegrity, error) { + vals := map[string]IkeIntegrity{ + "gcmaes128": IkeIntegrityGCMAESOneTwoEight, + "gcmaes256": IkeIntegrityGCMAESTwoFiveSix, + "md5": IkeIntegrityMDFive, + "sha1": IkeIntegritySHAOne, + "sha384": IkeIntegritySHAThreeEightFour, + "sha256": IkeIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeIntegrity(input) + return &out, nil +} + +type PfsGroup string + +const ( + PfsGroupECPThreeEightFour PfsGroup = "ECP384" + PfsGroupECPTwoFiveSix PfsGroup = "ECP256" + PfsGroupNone PfsGroup = "None" + PfsGroupPFSMM PfsGroup = "PFSMM" + PfsGroupPFSOne PfsGroup = "PFS1" + PfsGroupPFSOneFour PfsGroup = "PFS14" + PfsGroupPFSTwo PfsGroup = "PFS2" + PfsGroupPFSTwoFour PfsGroup = "PFS24" + PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048" +) + +func PossibleValuesForPfsGroup() []string { + return []string{ + string(PfsGroupECPThreeEightFour), + string(PfsGroupECPTwoFiveSix), + string(PfsGroupNone), + string(PfsGroupPFSMM), + string(PfsGroupPFSOne), + string(PfsGroupPFSOneFour), + string(PfsGroupPFSTwo), + string(PfsGroupPFSTwoFour), + string(PfsGroupPFSTwoZeroFourEight), + } +} + +func (s *PfsGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePfsGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePfsGroup(input string) (*PfsGroup, error) { + vals := map[string]PfsGroup{ + "ecp384": PfsGroupECPThreeEightFour, + "ecp256": PfsGroupECPTwoFiveSix, + "none": PfsGroupNone, + "pfsmm": PfsGroupPFSMM, + "pfs1": PfsGroupPFSOne, + "pfs14": PfsGroupPFSOneFour, + "pfs2": PfsGroupPFSTwo, + "pfs24": PfsGroupPFSTwoFour, + "pfs2048": PfsGroupPFSTwoZeroFourEight, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PfsGroup(input) + return &out, nil +} + +type ProcessorArchitecture string + +const ( + ProcessorArchitectureAmdSixFour ProcessorArchitecture = "Amd64" + ProcessorArchitectureXEightSix ProcessorArchitecture = "X86" +) + +func PossibleValuesForProcessorArchitecture() []string { + return []string{ + string(ProcessorArchitectureAmdSixFour), + string(ProcessorArchitectureXEightSix), + } +} + +func (s *ProcessorArchitecture) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProcessorArchitecture(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProcessorArchitecture(input string) (*ProcessorArchitecture, error) { + vals := map[string]ProcessorArchitecture{ + "amd64": ProcessorArchitectureAmdSixFour, + "x86": ProcessorArchitectureXEightSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProcessorArchitecture(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type ResiliencyModel string + +const ( + ResiliencyModelMultiHomed ResiliencyModel = "MultiHomed" + ResiliencyModelSingleHomed ResiliencyModel = "SingleHomed" +) + +func PossibleValuesForResiliencyModel() []string { + return []string{ + string(ResiliencyModelMultiHomed), + string(ResiliencyModelSingleHomed), + } +} + +func (s *ResiliencyModel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResiliencyModel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResiliencyModel(input string) (*ResiliencyModel, error) { + vals := map[string]ResiliencyModel{ + "multihomed": ResiliencyModelMultiHomed, + "singlehomed": ResiliencyModelSingleHomed, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResiliencyModel(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionMode string + +const ( + VirtualNetworkGatewayConnectionModeDefault VirtualNetworkGatewayConnectionMode = "Default" + VirtualNetworkGatewayConnectionModeInitiatorOnly VirtualNetworkGatewayConnectionMode = "InitiatorOnly" + VirtualNetworkGatewayConnectionModeResponderOnly VirtualNetworkGatewayConnectionMode = "ResponderOnly" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionMode() []string { + return []string{ + string(VirtualNetworkGatewayConnectionModeDefault), + string(VirtualNetworkGatewayConnectionModeInitiatorOnly), + string(VirtualNetworkGatewayConnectionModeResponderOnly), + } +} + +func (s *VirtualNetworkGatewayConnectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionMode(input string) (*VirtualNetworkGatewayConnectionMode, error) { + vals := map[string]VirtualNetworkGatewayConnectionMode{ + "default": VirtualNetworkGatewayConnectionModeDefault, + "initiatoronly": VirtualNetworkGatewayConnectionModeInitiatorOnly, + "responderonly": VirtualNetworkGatewayConnectionModeResponderOnly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionMode(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionProtocol string + +const ( + VirtualNetworkGatewayConnectionProtocolIKEvOne VirtualNetworkGatewayConnectionProtocol = "IKEv1" + VirtualNetworkGatewayConnectionProtocolIKEvTwo VirtualNetworkGatewayConnectionProtocol = "IKEv2" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionProtocol() []string { + return []string{ + string(VirtualNetworkGatewayConnectionProtocolIKEvOne), + string(VirtualNetworkGatewayConnectionProtocolIKEvTwo), + } +} + +func (s *VirtualNetworkGatewayConnectionProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionProtocol(input string) (*VirtualNetworkGatewayConnectionProtocol, error) { + vals := map[string]VirtualNetworkGatewayConnectionProtocol{ + "ikev1": VirtualNetworkGatewayConnectionProtocolIKEvOne, + "ikev2": VirtualNetworkGatewayConnectionProtocolIKEvTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionProtocol(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionStatus string + +const ( + VirtualNetworkGatewayConnectionStatusConnected VirtualNetworkGatewayConnectionStatus = "Connected" + VirtualNetworkGatewayConnectionStatusConnecting VirtualNetworkGatewayConnectionStatus = "Connecting" + VirtualNetworkGatewayConnectionStatusNotConnected VirtualNetworkGatewayConnectionStatus = "NotConnected" + VirtualNetworkGatewayConnectionStatusUnknown VirtualNetworkGatewayConnectionStatus = "Unknown" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionStatus() []string { + return []string{ + string(VirtualNetworkGatewayConnectionStatusConnected), + string(VirtualNetworkGatewayConnectionStatusConnecting), + string(VirtualNetworkGatewayConnectionStatusNotConnected), + string(VirtualNetworkGatewayConnectionStatusUnknown), + } +} + +func (s *VirtualNetworkGatewayConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionStatus(input string) (*VirtualNetworkGatewayConnectionStatus, error) { + vals := map[string]VirtualNetworkGatewayConnectionStatus{ + "connected": VirtualNetworkGatewayConnectionStatusConnected, + "connecting": VirtualNetworkGatewayConnectionStatusConnecting, + "notconnected": VirtualNetworkGatewayConnectionStatusNotConnected, + "unknown": VirtualNetworkGatewayConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionStatus(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionType string + +const ( + VirtualNetworkGatewayConnectionTypeExpressRoute VirtualNetworkGatewayConnectionType = "ExpressRoute" + VirtualNetworkGatewayConnectionTypeIPsec VirtualNetworkGatewayConnectionType = "IPsec" + VirtualNetworkGatewayConnectionTypeVPNClient VirtualNetworkGatewayConnectionType = "VPNClient" + VirtualNetworkGatewayConnectionTypeVnetTwoVnet VirtualNetworkGatewayConnectionType = "Vnet2Vnet" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionType() []string { + return []string{ + string(VirtualNetworkGatewayConnectionTypeExpressRoute), + string(VirtualNetworkGatewayConnectionTypeIPsec), + string(VirtualNetworkGatewayConnectionTypeVPNClient), + string(VirtualNetworkGatewayConnectionTypeVnetTwoVnet), + } +} + +func (s *VirtualNetworkGatewayConnectionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionType(input string) (*VirtualNetworkGatewayConnectionType, error) { + vals := map[string]VirtualNetworkGatewayConnectionType{ + "expressroute": VirtualNetworkGatewayConnectionTypeExpressRoute, + "ipsec": VirtualNetworkGatewayConnectionTypeIPsec, + "vpnclient": VirtualNetworkGatewayConnectionTypeVPNClient, + "vnet2vnet": VirtualNetworkGatewayConnectionTypeVnetTwoVnet, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionType(input) + return &out, nil +} + +type VirtualNetworkGatewaySkuName string + +const ( + VirtualNetworkGatewaySkuNameBasic VirtualNetworkGatewaySkuName = "Basic" + VirtualNetworkGatewaySkuNameErGwOneAZ VirtualNetworkGatewaySkuName = "ErGw1AZ" + VirtualNetworkGatewaySkuNameErGwScale VirtualNetworkGatewaySkuName = "ErGwScale" + VirtualNetworkGatewaySkuNameErGwThreeAZ VirtualNetworkGatewaySkuName = "ErGw3AZ" + VirtualNetworkGatewaySkuNameErGwTwoAZ VirtualNetworkGatewaySkuName = "ErGw2AZ" + VirtualNetworkGatewaySkuNameHighPerformance VirtualNetworkGatewaySkuName = "HighPerformance" + VirtualNetworkGatewaySkuNameStandard VirtualNetworkGatewaySkuName = "Standard" + VirtualNetworkGatewaySkuNameUltraPerformance VirtualNetworkGatewaySkuName = "UltraPerformance" + VirtualNetworkGatewaySkuNameVpnGwFive VirtualNetworkGatewaySkuName = "VpnGw5" + VirtualNetworkGatewaySkuNameVpnGwFiveAZ VirtualNetworkGatewaySkuName = "VpnGw5AZ" + VirtualNetworkGatewaySkuNameVpnGwFour VirtualNetworkGatewaySkuName = "VpnGw4" + VirtualNetworkGatewaySkuNameVpnGwFourAZ VirtualNetworkGatewaySkuName = "VpnGw4AZ" + VirtualNetworkGatewaySkuNameVpnGwOne VirtualNetworkGatewaySkuName = "VpnGw1" + VirtualNetworkGatewaySkuNameVpnGwOneAZ VirtualNetworkGatewaySkuName = "VpnGw1AZ" + VirtualNetworkGatewaySkuNameVpnGwThree VirtualNetworkGatewaySkuName = "VpnGw3" + VirtualNetworkGatewaySkuNameVpnGwThreeAZ VirtualNetworkGatewaySkuName = "VpnGw3AZ" + VirtualNetworkGatewaySkuNameVpnGwTwo VirtualNetworkGatewaySkuName = "VpnGw2" + VirtualNetworkGatewaySkuNameVpnGwTwoAZ VirtualNetworkGatewaySkuName = "VpnGw2AZ" +) + +func PossibleValuesForVirtualNetworkGatewaySkuName() []string { + return []string{ + string(VirtualNetworkGatewaySkuNameBasic), + string(VirtualNetworkGatewaySkuNameErGwOneAZ), + string(VirtualNetworkGatewaySkuNameErGwScale), + string(VirtualNetworkGatewaySkuNameErGwThreeAZ), + string(VirtualNetworkGatewaySkuNameErGwTwoAZ), + string(VirtualNetworkGatewaySkuNameHighPerformance), + string(VirtualNetworkGatewaySkuNameStandard), + string(VirtualNetworkGatewaySkuNameUltraPerformance), + string(VirtualNetworkGatewaySkuNameVpnGwFive), + string(VirtualNetworkGatewaySkuNameVpnGwFiveAZ), + string(VirtualNetworkGatewaySkuNameVpnGwFour), + string(VirtualNetworkGatewaySkuNameVpnGwFourAZ), + string(VirtualNetworkGatewaySkuNameVpnGwOne), + string(VirtualNetworkGatewaySkuNameVpnGwOneAZ), + string(VirtualNetworkGatewaySkuNameVpnGwThree), + string(VirtualNetworkGatewaySkuNameVpnGwThreeAZ), + string(VirtualNetworkGatewaySkuNameVpnGwTwo), + string(VirtualNetworkGatewaySkuNameVpnGwTwoAZ), + } +} + +func (s *VirtualNetworkGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewaySkuName(input string) (*VirtualNetworkGatewaySkuName, error) { + vals := map[string]VirtualNetworkGatewaySkuName{ + "basic": VirtualNetworkGatewaySkuNameBasic, + "ergw1az": VirtualNetworkGatewaySkuNameErGwOneAZ, + "ergwscale": VirtualNetworkGatewaySkuNameErGwScale, + "ergw3az": VirtualNetworkGatewaySkuNameErGwThreeAZ, + "ergw2az": VirtualNetworkGatewaySkuNameErGwTwoAZ, + "highperformance": VirtualNetworkGatewaySkuNameHighPerformance, + "standard": VirtualNetworkGatewaySkuNameStandard, + "ultraperformance": VirtualNetworkGatewaySkuNameUltraPerformance, + "vpngw5": VirtualNetworkGatewaySkuNameVpnGwFive, + "vpngw5az": VirtualNetworkGatewaySkuNameVpnGwFiveAZ, + "vpngw4": VirtualNetworkGatewaySkuNameVpnGwFour, + "vpngw4az": VirtualNetworkGatewaySkuNameVpnGwFourAZ, + "vpngw1": VirtualNetworkGatewaySkuNameVpnGwOne, + "vpngw1az": VirtualNetworkGatewaySkuNameVpnGwOneAZ, + "vpngw3": VirtualNetworkGatewaySkuNameVpnGwThree, + "vpngw3az": VirtualNetworkGatewaySkuNameVpnGwThreeAZ, + "vpngw2": VirtualNetworkGatewaySkuNameVpnGwTwo, + "vpngw2az": VirtualNetworkGatewaySkuNameVpnGwTwoAZ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewaySkuName(input) + return &out, nil +} + +type VirtualNetworkGatewaySkuTier string + +const ( + VirtualNetworkGatewaySkuTierBasic VirtualNetworkGatewaySkuTier = "Basic" + VirtualNetworkGatewaySkuTierErGwOneAZ VirtualNetworkGatewaySkuTier = "ErGw1AZ" + VirtualNetworkGatewaySkuTierErGwScale VirtualNetworkGatewaySkuTier = "ErGwScale" + VirtualNetworkGatewaySkuTierErGwThreeAZ VirtualNetworkGatewaySkuTier = "ErGw3AZ" + VirtualNetworkGatewaySkuTierErGwTwoAZ VirtualNetworkGatewaySkuTier = "ErGw2AZ" + VirtualNetworkGatewaySkuTierHighPerformance VirtualNetworkGatewaySkuTier = "HighPerformance" + VirtualNetworkGatewaySkuTierStandard VirtualNetworkGatewaySkuTier = "Standard" + VirtualNetworkGatewaySkuTierUltraPerformance VirtualNetworkGatewaySkuTier = "UltraPerformance" + VirtualNetworkGatewaySkuTierVpnGwFive VirtualNetworkGatewaySkuTier = "VpnGw5" + VirtualNetworkGatewaySkuTierVpnGwFiveAZ VirtualNetworkGatewaySkuTier = "VpnGw5AZ" + VirtualNetworkGatewaySkuTierVpnGwFour VirtualNetworkGatewaySkuTier = "VpnGw4" + VirtualNetworkGatewaySkuTierVpnGwFourAZ VirtualNetworkGatewaySkuTier = "VpnGw4AZ" + VirtualNetworkGatewaySkuTierVpnGwOne VirtualNetworkGatewaySkuTier = "VpnGw1" + VirtualNetworkGatewaySkuTierVpnGwOneAZ VirtualNetworkGatewaySkuTier = "VpnGw1AZ" + VirtualNetworkGatewaySkuTierVpnGwThree VirtualNetworkGatewaySkuTier = "VpnGw3" + VirtualNetworkGatewaySkuTierVpnGwThreeAZ VirtualNetworkGatewaySkuTier = "VpnGw3AZ" + VirtualNetworkGatewaySkuTierVpnGwTwo VirtualNetworkGatewaySkuTier = "VpnGw2" + VirtualNetworkGatewaySkuTierVpnGwTwoAZ VirtualNetworkGatewaySkuTier = "VpnGw2AZ" +) + +func PossibleValuesForVirtualNetworkGatewaySkuTier() []string { + return []string{ + string(VirtualNetworkGatewaySkuTierBasic), + string(VirtualNetworkGatewaySkuTierErGwOneAZ), + string(VirtualNetworkGatewaySkuTierErGwScale), + string(VirtualNetworkGatewaySkuTierErGwThreeAZ), + string(VirtualNetworkGatewaySkuTierErGwTwoAZ), + string(VirtualNetworkGatewaySkuTierHighPerformance), + string(VirtualNetworkGatewaySkuTierStandard), + string(VirtualNetworkGatewaySkuTierUltraPerformance), + string(VirtualNetworkGatewaySkuTierVpnGwFive), + string(VirtualNetworkGatewaySkuTierVpnGwFiveAZ), + string(VirtualNetworkGatewaySkuTierVpnGwFour), + string(VirtualNetworkGatewaySkuTierVpnGwFourAZ), + string(VirtualNetworkGatewaySkuTierVpnGwOne), + string(VirtualNetworkGatewaySkuTierVpnGwOneAZ), + string(VirtualNetworkGatewaySkuTierVpnGwThree), + string(VirtualNetworkGatewaySkuTierVpnGwThreeAZ), + string(VirtualNetworkGatewaySkuTierVpnGwTwo), + string(VirtualNetworkGatewaySkuTierVpnGwTwoAZ), + } +} + +func (s *VirtualNetworkGatewaySkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewaySkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewaySkuTier(input string) (*VirtualNetworkGatewaySkuTier, error) { + vals := map[string]VirtualNetworkGatewaySkuTier{ + "basic": VirtualNetworkGatewaySkuTierBasic, + "ergw1az": VirtualNetworkGatewaySkuTierErGwOneAZ, + "ergwscale": VirtualNetworkGatewaySkuTierErGwScale, + "ergw3az": VirtualNetworkGatewaySkuTierErGwThreeAZ, + "ergw2az": VirtualNetworkGatewaySkuTierErGwTwoAZ, + "highperformance": VirtualNetworkGatewaySkuTierHighPerformance, + "standard": VirtualNetworkGatewaySkuTierStandard, + "ultraperformance": VirtualNetworkGatewaySkuTierUltraPerformance, + "vpngw5": VirtualNetworkGatewaySkuTierVpnGwFive, + "vpngw5az": VirtualNetworkGatewaySkuTierVpnGwFiveAZ, + "vpngw4": VirtualNetworkGatewaySkuTierVpnGwFour, + "vpngw4az": VirtualNetworkGatewaySkuTierVpnGwFourAZ, + "vpngw1": VirtualNetworkGatewaySkuTierVpnGwOne, + "vpngw1az": VirtualNetworkGatewaySkuTierVpnGwOneAZ, + "vpngw3": VirtualNetworkGatewaySkuTierVpnGwThree, + "vpngw3az": VirtualNetworkGatewaySkuTierVpnGwThreeAZ, + "vpngw2": VirtualNetworkGatewaySkuTierVpnGwTwo, + "vpngw2az": VirtualNetworkGatewaySkuTierVpnGwTwoAZ, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewaySkuTier(input) + return &out, nil +} + +type VirtualNetworkGatewayType string + +const ( + VirtualNetworkGatewayTypeExpressRoute VirtualNetworkGatewayType = "ExpressRoute" + VirtualNetworkGatewayTypeLocalGateway VirtualNetworkGatewayType = "LocalGateway" + VirtualNetworkGatewayTypeVpn VirtualNetworkGatewayType = "Vpn" +) + +func PossibleValuesForVirtualNetworkGatewayType() []string { + return []string{ + string(VirtualNetworkGatewayTypeExpressRoute), + string(VirtualNetworkGatewayTypeLocalGateway), + string(VirtualNetworkGatewayTypeVpn), + } +} + +func (s *VirtualNetworkGatewayType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayType(input string) (*VirtualNetworkGatewayType, error) { + vals := map[string]VirtualNetworkGatewayType{ + "expressroute": VirtualNetworkGatewayTypeExpressRoute, + "localgateway": VirtualNetworkGatewayTypeLocalGateway, + "vpn": VirtualNetworkGatewayTypeVpn, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayType(input) + return &out, nil +} + +type VpnAuthenticationType string + +const ( + VpnAuthenticationTypeAAD VpnAuthenticationType = "AAD" + VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate" + VpnAuthenticationTypeRadius VpnAuthenticationType = "Radius" +) + +func PossibleValuesForVpnAuthenticationType() []string { + return []string{ + string(VpnAuthenticationTypeAAD), + string(VpnAuthenticationTypeCertificate), + string(VpnAuthenticationTypeRadius), + } +} + +func (s *VpnAuthenticationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnAuthenticationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnAuthenticationType(input string) (*VpnAuthenticationType, error) { + vals := map[string]VpnAuthenticationType{ + "aad": VpnAuthenticationTypeAAD, + "certificate": VpnAuthenticationTypeCertificate, + "radius": VpnAuthenticationTypeRadius, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnAuthenticationType(input) + return &out, nil +} + +type VpnClientProtocol string + +const ( + VpnClientProtocolIkeVTwo VpnClientProtocol = "IkeV2" + VpnClientProtocolOpenVPN VpnClientProtocol = "OpenVPN" + VpnClientProtocolSSTP VpnClientProtocol = "SSTP" +) + +func PossibleValuesForVpnClientProtocol() []string { + return []string{ + string(VpnClientProtocolIkeVTwo), + string(VpnClientProtocolOpenVPN), + string(VpnClientProtocolSSTP), + } +} + +func (s *VpnClientProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnClientProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnClientProtocol(input string) (*VpnClientProtocol, error) { + vals := map[string]VpnClientProtocol{ + "ikev2": VpnClientProtocolIkeVTwo, + "openvpn": VpnClientProtocolOpenVPN, + "sstp": VpnClientProtocolSSTP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnClientProtocol(input) + return &out, nil +} + +type VpnGatewayGeneration string + +const ( + VpnGatewayGenerationGenerationOne VpnGatewayGeneration = "Generation1" + VpnGatewayGenerationGenerationTwo VpnGatewayGeneration = "Generation2" + VpnGatewayGenerationNone VpnGatewayGeneration = "None" +) + +func PossibleValuesForVpnGatewayGeneration() []string { + return []string{ + string(VpnGatewayGenerationGenerationOne), + string(VpnGatewayGenerationGenerationTwo), + string(VpnGatewayGenerationNone), + } +} + +func (s *VpnGatewayGeneration) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnGatewayGeneration(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnGatewayGeneration(input string) (*VpnGatewayGeneration, error) { + vals := map[string]VpnGatewayGeneration{ + "generation1": VpnGatewayGenerationGenerationOne, + "generation2": VpnGatewayGenerationGenerationTwo, + "none": VpnGatewayGenerationNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnGatewayGeneration(input) + return &out, nil +} + +type VpnNatRuleMode string + +const ( + VpnNatRuleModeEgressSnat VpnNatRuleMode = "EgressSnat" + VpnNatRuleModeIngressSnat VpnNatRuleMode = "IngressSnat" +) + +func PossibleValuesForVpnNatRuleMode() []string { + return []string{ + string(VpnNatRuleModeEgressSnat), + string(VpnNatRuleModeIngressSnat), + } +} + +func (s *VpnNatRuleMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleMode(input string) (*VpnNatRuleMode, error) { + vals := map[string]VpnNatRuleMode{ + "egresssnat": VpnNatRuleModeEgressSnat, + "ingresssnat": VpnNatRuleModeIngressSnat, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleMode(input) + return &out, nil +} + +type VpnNatRuleType string + +const ( + VpnNatRuleTypeDynamic VpnNatRuleType = "Dynamic" + VpnNatRuleTypeStatic VpnNatRuleType = "Static" +) + +func PossibleValuesForVpnNatRuleType() []string { + return []string{ + string(VpnNatRuleTypeDynamic), + string(VpnNatRuleTypeStatic), + } +} + +func (s *VpnNatRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleType(input string) (*VpnNatRuleType, error) { + vals := map[string]VpnNatRuleType{ + "dynamic": VpnNatRuleTypeDynamic, + "static": VpnNatRuleTypeStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleType(input) + return &out, nil +} + +type VpnPolicyMemberAttributeType string + +const ( + VpnPolicyMemberAttributeTypeAADGroupId VpnPolicyMemberAttributeType = "AADGroupId" + VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId" + VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId" +) + +func PossibleValuesForVpnPolicyMemberAttributeType() []string { + return []string{ + string(VpnPolicyMemberAttributeTypeAADGroupId), + string(VpnPolicyMemberAttributeTypeCertificateGroupId), + string(VpnPolicyMemberAttributeTypeRadiusAzureGroupId), + } +} + +func (s *VpnPolicyMemberAttributeType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnPolicyMemberAttributeType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnPolicyMemberAttributeType(input string) (*VpnPolicyMemberAttributeType, error) { + vals := map[string]VpnPolicyMemberAttributeType{ + "aadgroupid": VpnPolicyMemberAttributeTypeAADGroupId, + "certificategroupid": VpnPolicyMemberAttributeTypeCertificateGroupId, + "radiusazuregroupid": VpnPolicyMemberAttributeTypeRadiusAzureGroupId, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnPolicyMemberAttributeType(input) + return &out, nil +} + +type VpnType string + +const ( + VpnTypePolicyBased VpnType = "PolicyBased" + VpnTypeRouteBased VpnType = "RouteBased" +) + +func PossibleValuesForVpnType() []string { + return []string{ + string(VpnTypePolicyBased), + string(VpnTypeRouteBased), + } +} + +func (s *VpnType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnType(input string) (*VpnType, error) { + vals := map[string]VpnType{ + "policybased": VpnTypePolicyBased, + "routebased": VpnTypeRouteBased, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_connection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_connection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_disconnectvirtualnetworkgatewayvpnconnections.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnclientpackage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnclientpackage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnclientpackage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnclientpackage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_generatevpnprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_generatevpnprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getadvertisedroutes.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getadvertisedroutes.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getbgppeerstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getbgppeerstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getlearnedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getlearnedroutes.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getlearnedroutes.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getlearnedroutes.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnclientipsecparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_getvpnprofilepackageurl.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_listconnections.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_listconnections.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_listconnections.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_reset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_reset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_resetvpnclientsharedkey.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_setvpnclientipsecparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_startpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_startpacketcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_startpacketcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_startpacketcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_stoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_stoppacketcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_stoppacketcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_stoppacketcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_supportedvpndevices.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_supportedvpndevices.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulescreateorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesdelete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_virtualnetworkgatewaynatruleslistbyvirtualnetworkgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgppeerstatuslistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgpsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_bgpsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_bgpsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewaycustombgpipaddressipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroutelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroutelistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_gatewayroutelistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_gatewayroutelistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipconfigurationbgppeeringaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipsecpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_ipsecpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_ipsecpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_p2svpnconnectionrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_radiusserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_radiusserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_radiusserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_trafficselectorpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_trafficselectorpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_trafficselectorpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tunnelconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tunnelconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_tunnelconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_tunnelconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkconnectiongatewayreference.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgateway.go new file mode 100644 index 000000000000..09ed1954ed64 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgateway.go @@ -0,0 +1,21 @@ +package virtualnetworkgateways + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGateway struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties VirtualNetworkGatewayPropertiesFormat `json:"properties"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscalebounds.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayautoscaleconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayconnectionlistentitypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaynatruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupmember.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypolicygroupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go new file mode 100644 index 000000000000..d371f8bea657 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaypropertiesformat.go @@ -0,0 +1,33 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkGatewayPropertiesFormat struct { + ActiveActive *bool `json:"activeActive,omitempty"` + AdminState *AdminState `json:"adminState,omitempty"` + AllowRemoteVnetTraffic *bool `json:"allowRemoteVnetTraffic,omitempty"` + AllowVirtualWanTraffic *bool `json:"allowVirtualWanTraffic,omitempty"` + AutoScaleConfiguration *VirtualNetworkGatewayAutoScaleConfiguration `json:"autoScaleConfiguration,omitempty"` + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + CustomRoutes *AddressSpace `json:"customRoutes,omitempty"` + DisableIPSecReplayProtection *bool `json:"disableIPSecReplayProtection,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` + EnableDnsForwarding *bool `json:"enableDnsForwarding,omitempty"` + EnablePrivateIPAddress *bool `json:"enablePrivateIpAddress,omitempty"` + GatewayDefaultSite *SubResource `json:"gatewayDefaultSite,omitempty"` + GatewayType *VirtualNetworkGatewayType `json:"gatewayType,omitempty"` + IPConfigurations *[]VirtualNetworkGatewayIPConfiguration `json:"ipConfigurations,omitempty"` + InboundDnsForwardingEndpoint *string `json:"inboundDnsForwardingEndpoint,omitempty"` + NatRules *[]VirtualNetworkGatewayNatRule `json:"natRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResiliencyModel *ResiliencyModel `json:"resiliencyModel,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Sku *VirtualNetworkGatewaySku `json:"sku,omitempty"` + VNetExtendedLocationResourceId *string `json:"vNetExtendedLocationResourceId,omitempty"` + VirtualNetworkGatewayPolicyGroups *[]VirtualNetworkGatewayPolicyGroup `json:"virtualNetworkGatewayPolicyGroups,omitempty"` + VpnClientConfiguration *VpnClientConfiguration `json:"vpnClientConfiguration,omitempty"` + VpnGatewayGeneration *VpnGatewayGeneration `json:"vpnGatewayGeneration,omitempty"` + VpnType *VpnType `json:"vpnType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_virtualnetworkgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vngclientconnectionconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetail.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientconnectionhealthdetaillistresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientipsecparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientipsecparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientipsecparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientipsecparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrevokedcertificatepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnclientrootcertificatepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpndevicescriptparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpndevicescriptparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpndevicescriptparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpndevicescriptparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnnatrulemapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnnatrulemapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnnatrulemapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestartparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/model_vpnpacketcapturestopparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/version.go new file mode 100644 index 000000000000..94d4b52b0d45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways/version.go @@ -0,0 +1,10 @@ +package virtualnetworkgateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworkgateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/README.md new file mode 100644 index 000000000000..83eedf629c49 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings` Documentation + +The `virtualnetworkpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings" +``` + + +### Client Initialization + +```go +client := virtualnetworkpeerings.NewVirtualNetworkPeeringsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworkPeeringsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") + +payload := virtualnetworkpeerings.VirtualNetworkPeering{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualnetworkpeerings.DefaultCreateOrUpdateOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkPeeringsClient.Delete` + +```go +ctx := context.TODO() +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkPeeringsClient.Get` + +```go +ctx := context.TODO() +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkPeeringsClient.List` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/id_virtualnetworkpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/id_virtualnetworkpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkbgpcommunities.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkencryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkencryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkencryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/model_virtualnetworkpeeringpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/version.go new file mode 100644 index 000000000000..8ddc05448ba7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings/version.go @@ -0,0 +1,10 @@ +package virtualnetworkpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworkpeerings/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/README.md new file mode 100644 index 000000000000..5a064f325f1a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/README.md @@ -0,0 +1,239 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks` Documentation + +The `virtualnetworks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks" +``` + + +### Client Initialization + +```go +client := virtualnetworks.NewVirtualNetworksClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworksClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +payload := virtualnetworks.VirtualNetwork{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworksClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworksClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworksClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.ResourceNavigationLinksList` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +// alternatively `client.ResourceNavigationLinksList(ctx, id)` can be used to do batched pagination +items, err := client.ResourceNavigationLinksListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.ServiceAssociationLinksList` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +// alternatively `client.ServiceAssociationLinksList(ctx, id)` can be used to do batched pagination +items, err := client.ServiceAssociationLinksListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.SubnetsPrepareNetworkPolicies` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +payload := virtualnetworks.PrepareNetworkPoliciesRequest{ + // ... +} + + +if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworksClient.SubnetsUnprepareNetworkPolicies` + +```go +ctx := context.TODO() +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") + +payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ + // ... +} + + +if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworksClient.UpdateTags` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +payload := virtualnetworks.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworksClient.VirtualNetworksCheckIPAddressAvailability` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworksClient.VirtualNetworksListDdosProtectionStatus` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +// alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination +items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworksClient.VirtualNetworksListUsage` + +```go +ctx := context.TODO() +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") + +// alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination +items, err := client.VirtualNetworksListUsageComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/constants.go new file mode 100644 index 000000000000..d9b7a0f33901 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/constants.go @@ -0,0 +1,1412 @@ +package virtualnetworks + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type IsWorkloadProtected string + +const ( + IsWorkloadProtectedFalse IsWorkloadProtected = "False" + IsWorkloadProtectedTrue IsWorkloadProtected = "True" +) + +func PossibleValuesForIsWorkloadProtected() []string { + return []string{ + string(IsWorkloadProtectedFalse), + string(IsWorkloadProtectedTrue), + } +} + +func (s *IsWorkloadProtected) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIsWorkloadProtected(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIsWorkloadProtected(input string) (*IsWorkloadProtected, error) { + vals := map[string]IsWorkloadProtected{ + "false": IsWorkloadProtectedFalse, + "true": IsWorkloadProtectedTrue, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IsWorkloadProtected(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type PrivateEndpointVNetPolicies string + +const ( + PrivateEndpointVNetPoliciesBasic PrivateEndpointVNetPolicies = "Basic" + PrivateEndpointVNetPoliciesDisabled PrivateEndpointVNetPolicies = "Disabled" +) + +func PossibleValuesForPrivateEndpointVNetPolicies() []string { + return []string{ + string(PrivateEndpointVNetPoliciesBasic), + string(PrivateEndpointVNetPoliciesDisabled), + } +} + +func (s *PrivateEndpointVNetPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePrivateEndpointVNetPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePrivateEndpointVNetPolicies(input string) (*PrivateEndpointVNetPolicies, error) { + vals := map[string]PrivateEndpointVNetPolicies{ + "basic": PrivateEndpointVNetPoliciesBasic, + "disabled": PrivateEndpointVNetPoliciesDisabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PrivateEndpointVNetPolicies(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkEncryptionEnforcement string + +const ( + VirtualNetworkEncryptionEnforcementAllowUnencrypted VirtualNetworkEncryptionEnforcement = "AllowUnencrypted" + VirtualNetworkEncryptionEnforcementDropUnencrypted VirtualNetworkEncryptionEnforcement = "DropUnencrypted" +) + +func PossibleValuesForVirtualNetworkEncryptionEnforcement() []string { + return []string{ + string(VirtualNetworkEncryptionEnforcementAllowUnencrypted), + string(VirtualNetworkEncryptionEnforcementDropUnencrypted), + } +} + +func (s *VirtualNetworkEncryptionEnforcement) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkEncryptionEnforcement(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkEncryptionEnforcement(input string) (*VirtualNetworkEncryptionEnforcement, error) { + vals := map[string]VirtualNetworkEncryptionEnforcement{ + "allowunencrypted": VirtualNetworkEncryptionEnforcementAllowUnencrypted, + "dropunencrypted": VirtualNetworkEncryptionEnforcementDropUnencrypted, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkEncryptionEnforcement(input) + return &out, nil +} + +type VirtualNetworkPeeringLevel string + +const ( + VirtualNetworkPeeringLevelFullyInSync VirtualNetworkPeeringLevel = "FullyInSync" + VirtualNetworkPeeringLevelLocalAndRemoteNotInSync VirtualNetworkPeeringLevel = "LocalAndRemoteNotInSync" + VirtualNetworkPeeringLevelLocalNotInSync VirtualNetworkPeeringLevel = "LocalNotInSync" + VirtualNetworkPeeringLevelRemoteNotInSync VirtualNetworkPeeringLevel = "RemoteNotInSync" +) + +func PossibleValuesForVirtualNetworkPeeringLevel() []string { + return []string{ + string(VirtualNetworkPeeringLevelFullyInSync), + string(VirtualNetworkPeeringLevelLocalAndRemoteNotInSync), + string(VirtualNetworkPeeringLevelLocalNotInSync), + string(VirtualNetworkPeeringLevelRemoteNotInSync), + } +} + +func (s *VirtualNetworkPeeringLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPeeringLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPeeringLevel(input string) (*VirtualNetworkPeeringLevel, error) { + vals := map[string]VirtualNetworkPeeringLevel{ + "fullyinsync": VirtualNetworkPeeringLevelFullyInSync, + "localandremotenotinsync": VirtualNetworkPeeringLevelLocalAndRemoteNotInSync, + "localnotinsync": VirtualNetworkPeeringLevelLocalNotInSync, + "remotenotinsync": VirtualNetworkPeeringLevelRemoteNotInSync, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPeeringLevel(input) + return &out, nil +} + +type VirtualNetworkPeeringState string + +const ( + VirtualNetworkPeeringStateConnected VirtualNetworkPeeringState = "Connected" + VirtualNetworkPeeringStateDisconnected VirtualNetworkPeeringState = "Disconnected" + VirtualNetworkPeeringStateInitiated VirtualNetworkPeeringState = "Initiated" +) + +func PossibleValuesForVirtualNetworkPeeringState() []string { + return []string{ + string(VirtualNetworkPeeringStateConnected), + string(VirtualNetworkPeeringStateDisconnected), + string(VirtualNetworkPeeringStateInitiated), + } +} + +func (s *VirtualNetworkPeeringState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPeeringState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPeeringState(input string) (*VirtualNetworkPeeringState, error) { + vals := map[string]VirtualNetworkPeeringState{ + "connected": VirtualNetworkPeeringStateConnected, + "disconnected": VirtualNetworkPeeringStateDisconnected, + "initiated": VirtualNetworkPeeringStateInitiated, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPeeringState(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_resourcenavigationlinkslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_resourcenavigationlinkslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_resourcenavigationlinkslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_serviceassociationlinkslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_serviceassociationlinkslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_serviceassociationlinkslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetspreparenetworkpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetspreparenetworkpolicies.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetspreparenetworkpolicies.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetspreparenetworkpolicies.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_subnetsunpreparenetworkpolicies.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistusage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistusage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/method_virtualnetworkslistusage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_dhcpoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_dhcpoptions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_dhcpoptions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_dhcpoptions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlog.go new file mode 100644 index 000000000000..99a08c9552f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlog.go @@ -0,0 +1,19 @@ +package virtualnetworks + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..85dd6159153f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipaddressavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipaddressavailabilityresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipaddressavailabilityresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipaddressavailabilityresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicyconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicyconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkintentpolicyconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkintentpolicyconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_preparenetworkpoliciesrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_preparenetworkpoliciesrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_preparenetworkpoliciesrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_preparenetworkpoliciesrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..76256f1d4164 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipddosprotectionstatusresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipddosprotectionstatusresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_publicipddosprotectionstatusresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_publicipddosprotectionstatusresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..8c3d42e8afcb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_unpreparenetworkpoliciesrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetwork.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetwork.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetwork.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkbgpcommunities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkbgpcommunities.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkbgpcommunities.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkbgpcommunities.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkencryption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkencryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkencryption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpeeringpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpropertiesformat.go new file mode 100644 index 000000000000..d4dcb1689d67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkpropertiesformat.go @@ -0,0 +1,22 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkPropertiesFormat struct { + AddressSpace *AddressSpace `json:"addressSpace,omitempty"` + BgpCommunities *VirtualNetworkBgpCommunities `json:"bgpCommunities,omitempty"` + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + DhcpOptions *DhcpOptions `json:"dhcpOptions,omitempty"` + EnableDdosProtection *bool `json:"enableDdosProtection,omitempty"` + EnableVMProtection *bool `json:"enableVmProtection,omitempty"` + Encryption *VirtualNetworkEncryption `json:"encryption,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlowTimeoutInMinutes *int64 `json:"flowTimeoutInMinutes,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + PrivateEndpointVNetPolicies *PrivateEndpointVNetPolicies `json:"privateEndpointVNetPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` + VirtualNetworkPeerings *[]VirtualNetworkPeering `json:"virtualNetworkPeerings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusage.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusage.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusage.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusagename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusagename.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/model_virtualnetworkusagename.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/model_virtualnetworkusagename.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/version.go new file mode 100644 index 000000000000..6081d7e5aadc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks/version.go @@ -0,0 +1,10 @@ +package virtualnetworks + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworks/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/README.md new file mode 100644 index 000000000000..f3c65cd3f138 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/README.md @@ -0,0 +1,86 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap` Documentation + +The `virtualnetworktap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap" +``` + + +### Client Initialization + +```go +client := virtualnetworktap.NewVirtualNetworkTapClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworkTapClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapName") + +payload := virtualnetworktap.VirtualNetworkTap{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkTapClient.Delete` + +```go +ctx := context.TODO() +id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualNetworkTapClient.Get` + +```go +ctx := context.TODO() +id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualNetworkTapClient.UpdateTags` + +```go +ctx := context.TODO() +id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapName") + +payload := virtualnetworktap.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/id_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/id_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/id_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/id_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlog.go new file mode 100644 index 000000000000..d3c755b3dbf3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlog.go @@ -0,0 +1,19 @@ +package virtualnetworktap + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..5fe09758a9c3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package virtualnetworktap + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..47cc3c1264ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package virtualnetworktap + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..13911877fe3c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualnetworktap + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/version.go new file mode 100644 index 000000000000..fa21c3a80162 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap/version.go @@ -0,0 +1,10 @@ +package virtualnetworktap + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworktap/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/README.md new file mode 100644 index 000000000000..b3bff9a8c929 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/README.md @@ -0,0 +1,55 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps` Documentation + +The `virtualnetworktaps` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps" +``` + + +### Client Initialization + +```go +client := virtualnetworktaps.NewVirtualNetworkTapsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualNetworkTapsClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualNetworkTapsClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/method_listall.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/method_listall.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/method_listall.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlog.go new file mode 100644 index 000000000000..0247c5761156 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlog.go @@ -0,0 +1,19 @@ +package virtualnetworktaps + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..9393798b4c10 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package virtualnetworktaps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..981091123030 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package virtualnetworktaps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..bf27483e5ab5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualnetworktaps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/version.go new file mode 100644 index 000000000000..9340b39dc17c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps/version.go @@ -0,0 +1,10 @@ +package virtualnetworktaps + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualnetworktaps/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/README.md new file mode 100644 index 000000000000..61790bc076e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings` Documentation + +The `virtualrouterpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings" +``` + + +### Client Initialization + +```go +client := virtualrouterpeerings.NewVirtualRouterPeeringsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualRouterPeeringsClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") + +payload := virtualrouterpeerings.VirtualRouterPeering{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualRouterPeeringsClient.Delete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualRouterPeeringsClient.Get` + +```go +ctx := context.TODO() +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualRouterPeeringsClient.List` + +```go +ctx := context.TODO() +id := virtualrouterpeerings.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/id_virtualrouter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/id_virtualrouter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/id_virtualrouter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/id_virtualrouter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/model_virtualrouterpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/model_virtualrouterpeering.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/model_virtualrouterpeering.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/model_virtualrouterpeering.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/model_virtualrouterpeeringproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/model_virtualrouterpeeringproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/model_virtualrouterpeeringproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/model_virtualrouterpeeringproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/version.go new file mode 100644 index 000000000000..d093d5e27a9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings/version.go @@ -0,0 +1,10 @@ +package virtualrouterpeerings + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualrouterpeerings/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/README.md new file mode 100644 index 000000000000..39ca47074143 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/README.md @@ -0,0 +1,100 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters` Documentation + +The `virtualrouters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters" +``` + + +### Client Initialization + +```go +client := virtualrouters.NewVirtualRoutersClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualRoutersClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") + +payload := virtualrouters.VirtualRouter{ + // ... +} + + +if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualRoutersClient.Delete` + +```go +ctx := context.TODO() +id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualRoutersClient.Get` + +```go +ctx := context.TODO() +id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") + +read, err := client.Get(ctx, id, virtualrouters.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualRoutersClient.List` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualRoutersClient.ListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.ListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/id_virtualrouter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/id_virtualrouter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/id_virtualrouter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/id_virtualrouter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_listbyresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_listbyresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/method_listbyresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_virtualrouter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_virtualrouter.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_virtualrouter.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_virtualrouter.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_virtualrouterpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_virtualrouterpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/model_virtualrouterpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/model_virtualrouterpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/version.go new file mode 100644 index 000000000000..0992ca8e9f8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters/version.go @@ -0,0 +1,10 @@ +package virtualrouters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualrouters/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/README.md new file mode 100644 index 000000000000..e240763e9529 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/README.md @@ -0,0 +1,1534 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans` Documentation + +The `virtualwans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans" +``` + + +### Client Initialization + +```go +client := virtualwans.NewVirtualWANsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VirtualWANsClient.ConfigurationPolicyGroupsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") + +payload := virtualwans.VpnServerConfigurationPolicyGroup{ + // ... +} + + +if err := client.ConfigurationPolicyGroupsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.ConfigurationPolicyGroupsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") + +if err := client.ConfigurationPolicyGroupsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.ConfigurationPolicyGroupsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") + +read, err := client.ConfigurationPolicyGroupsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.ConfigurationPolicyGroupsListByVpnServerConfiguration` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +// alternatively `client.ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx, id)` can be used to do batched pagination +items, err := client.ConfigurationPolicyGroupsListByVpnServerConfigurationComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.Generatevirtualwanvpnserverconfigurationvpnprofile` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +payload := virtualwans.VirtualWanVpnProfileParameters{ + // ... +} + + +if err := client.GeneratevirtualwanvpnserverconfigurationvpnprofileThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubRouteTablesCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubRouteTableName") + +payload := virtualwans.HubRouteTable{ + // ... +} + + +if err := client.HubRouteTablesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubRouteTablesDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubRouteTableName") + +if err := client.HubRouteTablesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubRouteTablesGet` + +```go +ctx := context.TODO() +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubRouteTableName") + +read, err := client.HubRouteTablesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.HubRouteTablesList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.HubRouteTablesList(ctx, id)` can be used to do batched pagination +items, err := client.HubRouteTablesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.HubVirtualNetworkConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubVirtualNetworkConnectionName") + +payload := virtualwans.HubVirtualNetworkConnection{ + // ... +} + + +if err := client.HubVirtualNetworkConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubVirtualNetworkConnectionsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubVirtualNetworkConnectionName") + +if err := client.HubVirtualNetworkConnectionsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.HubVirtualNetworkConnectionsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "hubVirtualNetworkConnectionName") + +read, err := client.HubVirtualNetworkConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.HubVirtualNetworkConnectionsList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.HubVirtualNetworkConnectionsList(ctx, id)` can be used to do batched pagination +items, err := client.HubVirtualNetworkConnectionsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.NatRulesCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "natRuleName") + +payload := virtualwans.VpnGatewayNatRule{ + // ... +} + + +if err := client.NatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.NatRulesDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "natRuleName") + +if err := client.NatRulesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.NatRulesGet` + +```go +ctx := context.TODO() +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "natRuleName") + +read, err := client.NatRulesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.NatRulesListByVpnGateway` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +// alternatively `client.NatRulesListByVpnGateway(ctx, id)` can be used to do batched pagination +items, err := client.NatRulesListByVpnGatewayComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.NetworkVirtualApplianceConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "networkVirtualApplianceConnectionName") + +payload := virtualwans.NetworkVirtualApplianceConnection{ + // ... +} + + +if err := client.NetworkVirtualApplianceConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.NetworkVirtualApplianceConnectionsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "networkVirtualApplianceConnectionName") + +if err := client.NetworkVirtualApplianceConnectionsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.NetworkVirtualApplianceConnectionsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "networkVirtualApplianceConnectionName") + +read, err := client.NetworkVirtualApplianceConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.NetworkVirtualApplianceConnectionsList` + +```go +ctx := context.TODO() +id := virtualwans.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") + +// alternatively `client.NetworkVirtualApplianceConnectionsList(ctx, id)` can be used to do batched pagination +items, err := client.NetworkVirtualApplianceConnectionsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +payload := virtualwans.P2SVpnGateway{ + // ... +} + + +if err := client.P2sVpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysDelete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysGet` + +```go +ctx := context.TODO() +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayName") + +read, err := client.P2sVpnGatewaysGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.P2sVpnGatewaysList(ctx, id)` can be used to do batched pagination +items, err := client.P2sVpnGatewaysListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.P2sVpnGatewaysListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.P2sVpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.P2sVpnGatewaysListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.RouteMapsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") + +payload := virtualwans.RouteMap{ + // ... +} + + +if err := client.RouteMapsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.RouteMapsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") + +if err := client.RouteMapsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.RouteMapsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") + +read, err := client.RouteMapsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.RouteMapsList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.RouteMapsList(ctx, id)` can be used to do batched pagination +items, err := client.RouteMapsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.RoutingIntentCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") + +payload := virtualwans.RoutingIntent{ + // ... +} + + +if err := client.RoutingIntentCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.RoutingIntentDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") + +if err := client.RoutingIntentDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.RoutingIntentGet` + +```go +ctx := context.TODO() +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") + +read, err := client.RoutingIntentGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.RoutingIntentList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.RoutingIntentList(ctx, id)` can be used to do batched pagination +items, err := client.RoutingIntentListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.SupportedSecurityProviders` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +read, err := client.SupportedSecurityProviders(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.UpdateTags` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +payload := virtualwans.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +payload := virtualwans.BgpConnection{ + // ... +} + + +if err := client.VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionDelete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionGet` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +read, err := client.VirtualHubBgpConnectionGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionsList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.VirtualHubBgpConnectionsList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubBgpConnectionsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionsListAdvertisedRoutes` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubBgpConnectionsListLearnedRoutes` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "bgpConnectionName") + +if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubIPConfigurationCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigurationName") + +payload := virtualwans.HubIPConfiguration{ + // ... +} + + +if err := client.VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubIPConfigurationDelete` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigurationName") + +if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubIPConfigurationGet` + +```go +ctx := context.TODO() +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigurationName") + +read, err := client.VirtualHubIPConfigurationGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubIPConfigurationList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.VirtualHubIPConfigurationList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubIPConfigurationListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubRouteTableV2sCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") + +payload := virtualwans.VirtualHubRouteTableV2{ + // ... +} + + +if err := client.VirtualHubRouteTableV2sCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubRouteTableV2sDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") + +if err := client.VirtualHubRouteTableV2sDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubRouteTableV2sGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") + +read, err := client.VirtualHubRouteTableV2sGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubRouteTableV2sList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +// alternatively `client.VirtualHubRouteTableV2sList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubRouteTableV2sListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.VirtualHub{ + // ... +} + + +if err := client.VirtualHubsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +if err := client.VirtualHubsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +read, err := client.VirtualHubsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsGetEffectiveVirtualHubRoutes` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.EffectiveRoutesParameters{ + // ... +} + + +if err := client.VirtualHubsGetEffectiveVirtualHubRoutesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsGetInboundRoutes` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.GetInboundRoutesParameters{ + // ... +} + + +if err := client.VirtualHubsGetInboundRoutesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsGetOutboundRoutes` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.GetOutboundRoutesParameters{ + // ... +} + + +if err := client.VirtualHubsGetOutboundRoutesThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VirtualHubsList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VirtualHubsListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VirtualHubsListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualHubsUpdateTags` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") + +payload := virtualwans.TagsObject{ + // ... +} + + +read, err := client.VirtualHubsUpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +payload := virtualwans.VirtualWAN{ + // ... +} + + +if err := client.VirtualWansCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +if err := client.VirtualWansDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +read, err := client.VirtualWansGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VirtualWansList(ctx, id)` can be used to do batched pagination +items, err := client.VirtualWansListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VirtualWansListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VirtualWansListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VirtualWansListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsCreateOrUpdate` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +payload := virtualwans.VpnConnection{ + // ... +} + + +if err := client.VpnConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsDelete` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsGet` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +read, err := client.VpnConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsListByVpnGateway` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +// alternatively `client.VpnConnectionsListByVpnGateway(ctx, id)` can be used to do batched pagination +items, err := client.VpnConnectionsListByVpnGatewayComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsStartPacketCapture` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +payload := virtualwans.VpnConnectionPacketCaptureStartParameters{ + // ... +} + + +if err := client.VpnConnectionsStartPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnConnectionsStopPacketCapture` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +payload := virtualwans.VpnConnectionPacketCaptureStopParameters{ + // ... +} + + +if err := client.VpnConnectionsStopPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +payload := virtualwans.VpnGateway{ + // ... +} + + +if err := client.VpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +if err := client.VpnGatewaysDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +read, err := client.VpnGatewaysGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VpnGatewaysList(ctx, id)` can be used to do batched pagination +items, err := client.VpnGatewaysListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnGatewaysListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VpnGatewaysListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VpnGatewaysListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsGetAllSharedKeys` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +// alternatively `client.VpnLinkConnectionsGetAllSharedKeys(ctx, id)` can be used to do batched pagination +items, err := client.VpnLinkConnectionsGetAllSharedKeysComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsGetDefaultSharedKey` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +read, err := client.VpnLinkConnectionsGetDefaultSharedKey(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsGetIkeSas` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsListByVpnConnection` + +```go +ctx := context.TODO() +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName") + +// alternatively `client.VpnLinkConnectionsListByVpnConnection(ctx, id)` can be used to do batched pagination +items, err := client.VpnLinkConnectionsListByVpnConnectionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsListDefaultSharedKey` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +read, err := client.VpnLinkConnectionsListDefaultSharedKey(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnLinkConnectionsSetOrInitDefaultSharedKey` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +payload := virtualwans.ConnectionSharedKeyResult{ + // ... +} + + +if err := client.VpnLinkConnectionsSetOrInitDefaultSharedKeyThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsAssociatedWithVirtualWanList` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +if err := client.VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +payload := virtualwans.VpnServerConfiguration{ + // ... +} + + +if err := client.VpnServerConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +if err := client.VpnServerConfigurationsDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +read, err := client.VpnServerConfigurationsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VpnServerConfigurationsList(ctx, id)` can be used to do batched pagination +items, err := client.VpnServerConfigurationsListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnServerConfigurationsListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VpnServerConfigurationsListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VpnServerConfigurationsListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSiteLinkConnectionsGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName", "vpnConnectionName", "vpnLinkConnectionName") + +read, err := client.VpnSiteLinkConnectionsGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSiteLinksGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName", "vpnSiteLinkName") + +read, err := client.VpnSiteLinksGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSiteLinksListByVpnSite` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +// alternatively `client.VpnSiteLinksListByVpnSite(ctx, id)` can be used to do batched pagination +items, err := client.VpnSiteLinksListByVpnSiteComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesConfigurationDownload` + +```go +ctx := context.TODO() +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanName") + +payload := virtualwans.GetVpnSitesConfigurationRequest{ + // ... +} + + +if err := client.VpnSitesConfigurationDownloadThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesCreateOrUpdate` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +payload := virtualwans.VpnSite{ + // ... +} + + +if err := client.VpnSitesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesDelete` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +if err := client.VpnSitesDeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesGet` + +```go +ctx := context.TODO() +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +read, err := client.VpnSitesGet(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesList` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.VpnSitesList(ctx, id)` can be used to do batched pagination +items, err := client.VpnSitesListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VirtualWANsClient.VpnSitesListByResourceGroup` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.VpnSitesListByResourceGroup(ctx, id)` can be used to do batched pagination +items, err := client.VpnSitesListByResourceGroupComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/client.go new file mode 100644 index 000000000000..0d7276430725 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/client.go @@ -0,0 +1,26 @@ +package virtualwans + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWANsClient struct { + Client *resourcemanager.Client +} + +func NewVirtualWANsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualWANsClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "virtualwans", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating VirtualWANsClient: %+v", err) + } + + return &VirtualWANsClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/constants.go new file mode 100644 index 000000000000..f620ae04a845 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/constants.go @@ -0,0 +1,2382 @@ +package virtualwans + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AuthenticationMethod string + +const ( + AuthenticationMethodEAPMSCHAPvTwo AuthenticationMethod = "EAPMSCHAPv2" + AuthenticationMethodEAPTLS AuthenticationMethod = "EAPTLS" +) + +func PossibleValuesForAuthenticationMethod() []string { + return []string{ + string(AuthenticationMethodEAPMSCHAPvTwo), + string(AuthenticationMethodEAPTLS), + } +} + +func (s *AuthenticationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseAuthenticationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseAuthenticationMethod(input string) (*AuthenticationMethod, error) { + vals := map[string]AuthenticationMethod{ + "eapmschapv2": AuthenticationMethodEAPMSCHAPvTwo, + "eaptls": AuthenticationMethodEAPTLS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AuthenticationMethod(input) + return &out, nil +} + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type DhGroup string + +const ( + DhGroupDHGroupOne DhGroup = "DHGroup1" + DhGroupDHGroupOneFour DhGroup = "DHGroup14" + DhGroupDHGroupTwo DhGroup = "DHGroup2" + DhGroupDHGroupTwoFour DhGroup = "DHGroup24" + DhGroupDHGroupTwoZeroFourEight DhGroup = "DHGroup2048" + DhGroupECPThreeEightFour DhGroup = "ECP384" + DhGroupECPTwoFiveSix DhGroup = "ECP256" + DhGroupNone DhGroup = "None" +) + +func PossibleValuesForDhGroup() []string { + return []string{ + string(DhGroupDHGroupOne), + string(DhGroupDHGroupOneFour), + string(DhGroupDHGroupTwo), + string(DhGroupDHGroupTwoFour), + string(DhGroupDHGroupTwoZeroFourEight), + string(DhGroupECPThreeEightFour), + string(DhGroupECPTwoFiveSix), + string(DhGroupNone), + } +} + +func (s *DhGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDhGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDhGroup(input string) (*DhGroup, error) { + vals := map[string]DhGroup{ + "dhgroup1": DhGroupDHGroupOne, + "dhgroup14": DhGroupDHGroupOneFour, + "dhgroup2": DhGroupDHGroupTwo, + "dhgroup24": DhGroupDHGroupTwoFour, + "dhgroup2048": DhGroupDHGroupTwoZeroFourEight, + "ecp384": DhGroupECPThreeEightFour, + "ecp256": DhGroupECPTwoFiveSix, + "none": DhGroupNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DhGroup(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type HubBgpConnectionStatus string + +const ( + HubBgpConnectionStatusConnected HubBgpConnectionStatus = "Connected" + HubBgpConnectionStatusConnecting HubBgpConnectionStatus = "Connecting" + HubBgpConnectionStatusNotConnected HubBgpConnectionStatus = "NotConnected" + HubBgpConnectionStatusUnknown HubBgpConnectionStatus = "Unknown" +) + +func PossibleValuesForHubBgpConnectionStatus() []string { + return []string{ + string(HubBgpConnectionStatusConnected), + string(HubBgpConnectionStatusConnecting), + string(HubBgpConnectionStatusNotConnected), + string(HubBgpConnectionStatusUnknown), + } +} + +func (s *HubBgpConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHubBgpConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHubBgpConnectionStatus(input string) (*HubBgpConnectionStatus, error) { + vals := map[string]HubBgpConnectionStatus{ + "connected": HubBgpConnectionStatusConnected, + "connecting": HubBgpConnectionStatusConnecting, + "notconnected": HubBgpConnectionStatusNotConnected, + "unknown": HubBgpConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HubBgpConnectionStatus(input) + return &out, nil +} + +type HubRoutingPreference string + +const ( + HubRoutingPreferenceASPath HubRoutingPreference = "ASPath" + HubRoutingPreferenceExpressRoute HubRoutingPreference = "ExpressRoute" + HubRoutingPreferenceVpnGateway HubRoutingPreference = "VpnGateway" +) + +func PossibleValuesForHubRoutingPreference() []string { + return []string{ + string(HubRoutingPreferenceASPath), + string(HubRoutingPreferenceExpressRoute), + string(HubRoutingPreferenceVpnGateway), + } +} + +func (s *HubRoutingPreference) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseHubRoutingPreference(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseHubRoutingPreference(input string) (*HubRoutingPreference, error) { + vals := map[string]HubRoutingPreference{ + "aspath": HubRoutingPreferenceASPath, + "expressroute": HubRoutingPreferenceExpressRoute, + "vpngateway": HubRoutingPreferenceVpnGateway, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := HubRoutingPreference(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type IPsecEncryption string + +const ( + IPsecEncryptionAESOneNineTwo IPsecEncryption = "AES192" + IPsecEncryptionAESOneTwoEight IPsecEncryption = "AES128" + IPsecEncryptionAESTwoFiveSix IPsecEncryption = "AES256" + IPsecEncryptionDES IPsecEncryption = "DES" + IPsecEncryptionDESThree IPsecEncryption = "DES3" + IPsecEncryptionGCMAESOneNineTwo IPsecEncryption = "GCMAES192" + IPsecEncryptionGCMAESOneTwoEight IPsecEncryption = "GCMAES128" + IPsecEncryptionGCMAESTwoFiveSix IPsecEncryption = "GCMAES256" + IPsecEncryptionNone IPsecEncryption = "None" +) + +func PossibleValuesForIPsecEncryption() []string { + return []string{ + string(IPsecEncryptionAESOneNineTwo), + string(IPsecEncryptionAESOneTwoEight), + string(IPsecEncryptionAESTwoFiveSix), + string(IPsecEncryptionDES), + string(IPsecEncryptionDESThree), + string(IPsecEncryptionGCMAESOneNineTwo), + string(IPsecEncryptionGCMAESOneTwoEight), + string(IPsecEncryptionGCMAESTwoFiveSix), + string(IPsecEncryptionNone), + } +} + +func (s *IPsecEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecEncryption(input string) (*IPsecEncryption, error) { + vals := map[string]IPsecEncryption{ + "aes192": IPsecEncryptionAESOneNineTwo, + "aes128": IPsecEncryptionAESOneTwoEight, + "aes256": IPsecEncryptionAESTwoFiveSix, + "des": IPsecEncryptionDES, + "des3": IPsecEncryptionDESThree, + "gcmaes192": IPsecEncryptionGCMAESOneNineTwo, + "gcmaes128": IPsecEncryptionGCMAESOneTwoEight, + "gcmaes256": IPsecEncryptionGCMAESTwoFiveSix, + "none": IPsecEncryptionNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecEncryption(input) + return &out, nil +} + +type IPsecIntegrity string + +const ( + IPsecIntegrityGCMAESOneNineTwo IPsecIntegrity = "GCMAES192" + IPsecIntegrityGCMAESOneTwoEight IPsecIntegrity = "GCMAES128" + IPsecIntegrityGCMAESTwoFiveSix IPsecIntegrity = "GCMAES256" + IPsecIntegrityMDFive IPsecIntegrity = "MD5" + IPsecIntegritySHAOne IPsecIntegrity = "SHA1" + IPsecIntegritySHATwoFiveSix IPsecIntegrity = "SHA256" +) + +func PossibleValuesForIPsecIntegrity() []string { + return []string{ + string(IPsecIntegrityGCMAESOneNineTwo), + string(IPsecIntegrityGCMAESOneTwoEight), + string(IPsecIntegrityGCMAESTwoFiveSix), + string(IPsecIntegrityMDFive), + string(IPsecIntegritySHAOne), + string(IPsecIntegritySHATwoFiveSix), + } +} + +func (s *IPsecIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPsecIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPsecIntegrity(input string) (*IPsecIntegrity, error) { + vals := map[string]IPsecIntegrity{ + "gcmaes192": IPsecIntegrityGCMAESOneNineTwo, + "gcmaes128": IPsecIntegrityGCMAESOneTwoEight, + "gcmaes256": IPsecIntegrityGCMAESTwoFiveSix, + "md5": IPsecIntegrityMDFive, + "sha1": IPsecIntegritySHAOne, + "sha256": IPsecIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPsecIntegrity(input) + return &out, nil +} + +type IkeEncryption string + +const ( + IkeEncryptionAESOneNineTwo IkeEncryption = "AES192" + IkeEncryptionAESOneTwoEight IkeEncryption = "AES128" + IkeEncryptionAESTwoFiveSix IkeEncryption = "AES256" + IkeEncryptionDES IkeEncryption = "DES" + IkeEncryptionDESThree IkeEncryption = "DES3" + IkeEncryptionGCMAESOneTwoEight IkeEncryption = "GCMAES128" + IkeEncryptionGCMAESTwoFiveSix IkeEncryption = "GCMAES256" +) + +func PossibleValuesForIkeEncryption() []string { + return []string{ + string(IkeEncryptionAESOneNineTwo), + string(IkeEncryptionAESOneTwoEight), + string(IkeEncryptionAESTwoFiveSix), + string(IkeEncryptionDES), + string(IkeEncryptionDESThree), + string(IkeEncryptionGCMAESOneTwoEight), + string(IkeEncryptionGCMAESTwoFiveSix), + } +} + +func (s *IkeEncryption) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeEncryption(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeEncryption(input string) (*IkeEncryption, error) { + vals := map[string]IkeEncryption{ + "aes192": IkeEncryptionAESOneNineTwo, + "aes128": IkeEncryptionAESOneTwoEight, + "aes256": IkeEncryptionAESTwoFiveSix, + "des": IkeEncryptionDES, + "des3": IkeEncryptionDESThree, + "gcmaes128": IkeEncryptionGCMAESOneTwoEight, + "gcmaes256": IkeEncryptionGCMAESTwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeEncryption(input) + return &out, nil +} + +type IkeIntegrity string + +const ( + IkeIntegrityGCMAESOneTwoEight IkeIntegrity = "GCMAES128" + IkeIntegrityGCMAESTwoFiveSix IkeIntegrity = "GCMAES256" + IkeIntegrityMDFive IkeIntegrity = "MD5" + IkeIntegritySHAOne IkeIntegrity = "SHA1" + IkeIntegritySHAThreeEightFour IkeIntegrity = "SHA384" + IkeIntegritySHATwoFiveSix IkeIntegrity = "SHA256" +) + +func PossibleValuesForIkeIntegrity() []string { + return []string{ + string(IkeIntegrityGCMAESOneTwoEight), + string(IkeIntegrityGCMAESTwoFiveSix), + string(IkeIntegrityMDFive), + string(IkeIntegritySHAOne), + string(IkeIntegritySHAThreeEightFour), + string(IkeIntegritySHATwoFiveSix), + } +} + +func (s *IkeIntegrity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIkeIntegrity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIkeIntegrity(input string) (*IkeIntegrity, error) { + vals := map[string]IkeIntegrity{ + "gcmaes128": IkeIntegrityGCMAESOneTwoEight, + "gcmaes256": IkeIntegrityGCMAESTwoFiveSix, + "md5": IkeIntegrityMDFive, + "sha1": IkeIntegritySHAOne, + "sha384": IkeIntegritySHAThreeEightFour, + "sha256": IkeIntegritySHATwoFiveSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IkeIntegrity(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type NextStep string + +const ( + NextStepContinue NextStep = "Continue" + NextStepTerminate NextStep = "Terminate" + NextStepUnknown NextStep = "Unknown" +) + +func PossibleValuesForNextStep() []string { + return []string{ + string(NextStepContinue), + string(NextStepTerminate), + string(NextStepUnknown), + } +} + +func (s *NextStep) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNextStep(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNextStep(input string) (*NextStep, error) { + vals := map[string]NextStep{ + "continue": NextStepContinue, + "terminate": NextStepTerminate, + "unknown": NextStepUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NextStep(input) + return &out, nil +} + +type OfficeTrafficCategory string + +const ( + OfficeTrafficCategoryAll OfficeTrafficCategory = "All" + OfficeTrafficCategoryNone OfficeTrafficCategory = "None" + OfficeTrafficCategoryOptimize OfficeTrafficCategory = "Optimize" + OfficeTrafficCategoryOptimizeAndAllow OfficeTrafficCategory = "OptimizeAndAllow" +) + +func PossibleValuesForOfficeTrafficCategory() []string { + return []string{ + string(OfficeTrafficCategoryAll), + string(OfficeTrafficCategoryNone), + string(OfficeTrafficCategoryOptimize), + string(OfficeTrafficCategoryOptimizeAndAllow), + } +} + +func (s *OfficeTrafficCategory) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOfficeTrafficCategory(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOfficeTrafficCategory(input string) (*OfficeTrafficCategory, error) { + vals := map[string]OfficeTrafficCategory{ + "all": OfficeTrafficCategoryAll, + "none": OfficeTrafficCategoryNone, + "optimize": OfficeTrafficCategoryOptimize, + "optimizeandallow": OfficeTrafficCategoryOptimizeAndAllow, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OfficeTrafficCategory(input) + return &out, nil +} + +type PfsGroup string + +const ( + PfsGroupECPThreeEightFour PfsGroup = "ECP384" + PfsGroupECPTwoFiveSix PfsGroup = "ECP256" + PfsGroupNone PfsGroup = "None" + PfsGroupPFSMM PfsGroup = "PFSMM" + PfsGroupPFSOne PfsGroup = "PFS1" + PfsGroupPFSOneFour PfsGroup = "PFS14" + PfsGroupPFSTwo PfsGroup = "PFS2" + PfsGroupPFSTwoFour PfsGroup = "PFS24" + PfsGroupPFSTwoZeroFourEight PfsGroup = "PFS2048" +) + +func PossibleValuesForPfsGroup() []string { + return []string{ + string(PfsGroupECPThreeEightFour), + string(PfsGroupECPTwoFiveSix), + string(PfsGroupNone), + string(PfsGroupPFSMM), + string(PfsGroupPFSOne), + string(PfsGroupPFSOneFour), + string(PfsGroupPFSTwo), + string(PfsGroupPFSTwoFour), + string(PfsGroupPFSTwoZeroFourEight), + } +} + +func (s *PfsGroup) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePfsGroup(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePfsGroup(input string) (*PfsGroup, error) { + vals := map[string]PfsGroup{ + "ecp384": PfsGroupECPThreeEightFour, + "ecp256": PfsGroupECPTwoFiveSix, + "none": PfsGroupNone, + "pfsmm": PfsGroupPFSMM, + "pfs1": PfsGroupPFSOne, + "pfs14": PfsGroupPFSOneFour, + "pfs2": PfsGroupPFSTwo, + "pfs24": PfsGroupPFSTwoFour, + "pfs2048": PfsGroupPFSTwoZeroFourEight, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PfsGroup(input) + return &out, nil +} + +type PreferredRoutingGateway string + +const ( + PreferredRoutingGatewayExpressRoute PreferredRoutingGateway = "ExpressRoute" + PreferredRoutingGatewayNone PreferredRoutingGateway = "None" + PreferredRoutingGatewayVpnGateway PreferredRoutingGateway = "VpnGateway" +) + +func PossibleValuesForPreferredRoutingGateway() []string { + return []string{ + string(PreferredRoutingGatewayExpressRoute), + string(PreferredRoutingGatewayNone), + string(PreferredRoutingGatewayVpnGateway), + } +} + +func (s *PreferredRoutingGateway) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePreferredRoutingGateway(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePreferredRoutingGateway(input string) (*PreferredRoutingGateway, error) { + vals := map[string]PreferredRoutingGateway{ + "expressroute": PreferredRoutingGatewayExpressRoute, + "none": PreferredRoutingGatewayNone, + "vpngateway": PreferredRoutingGatewayVpnGateway, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PreferredRoutingGateway(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteMapActionType string + +const ( + RouteMapActionTypeAdd RouteMapActionType = "Add" + RouteMapActionTypeDrop RouteMapActionType = "Drop" + RouteMapActionTypeRemove RouteMapActionType = "Remove" + RouteMapActionTypeReplace RouteMapActionType = "Replace" + RouteMapActionTypeUnknown RouteMapActionType = "Unknown" +) + +func PossibleValuesForRouteMapActionType() []string { + return []string{ + string(RouteMapActionTypeAdd), + string(RouteMapActionTypeDrop), + string(RouteMapActionTypeRemove), + string(RouteMapActionTypeReplace), + string(RouteMapActionTypeUnknown), + } +} + +func (s *RouteMapActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteMapActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteMapActionType(input string) (*RouteMapActionType, error) { + vals := map[string]RouteMapActionType{ + "add": RouteMapActionTypeAdd, + "drop": RouteMapActionTypeDrop, + "remove": RouteMapActionTypeRemove, + "replace": RouteMapActionTypeReplace, + "unknown": RouteMapActionTypeUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteMapActionType(input) + return &out, nil +} + +type RouteMapMatchCondition string + +const ( + RouteMapMatchConditionContains RouteMapMatchCondition = "Contains" + RouteMapMatchConditionEquals RouteMapMatchCondition = "Equals" + RouteMapMatchConditionNotContains RouteMapMatchCondition = "NotContains" + RouteMapMatchConditionNotEquals RouteMapMatchCondition = "NotEquals" + RouteMapMatchConditionUnknown RouteMapMatchCondition = "Unknown" +) + +func PossibleValuesForRouteMapMatchCondition() []string { + return []string{ + string(RouteMapMatchConditionContains), + string(RouteMapMatchConditionEquals), + string(RouteMapMatchConditionNotContains), + string(RouteMapMatchConditionNotEquals), + string(RouteMapMatchConditionUnknown), + } +} + +func (s *RouteMapMatchCondition) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteMapMatchCondition(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteMapMatchCondition(input string) (*RouteMapMatchCondition, error) { + vals := map[string]RouteMapMatchCondition{ + "contains": RouteMapMatchConditionContains, + "equals": RouteMapMatchConditionEquals, + "notcontains": RouteMapMatchConditionNotContains, + "notequals": RouteMapMatchConditionNotEquals, + "unknown": RouteMapMatchConditionUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteMapMatchCondition(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type RoutingState string + +const ( + RoutingStateFailed RoutingState = "Failed" + RoutingStateNone RoutingState = "None" + RoutingStateProvisioned RoutingState = "Provisioned" + RoutingStateProvisioning RoutingState = "Provisioning" +) + +func PossibleValuesForRoutingState() []string { + return []string{ + string(RoutingStateFailed), + string(RoutingStateNone), + string(RoutingStateProvisioned), + string(RoutingStateProvisioning), + } +} + +func (s *RoutingState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRoutingState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRoutingState(input string) (*RoutingState, error) { + vals := map[string]RoutingState{ + "failed": RoutingStateFailed, + "none": RoutingStateNone, + "provisioned": RoutingStateProvisioned, + "provisioning": RoutingStateProvisioning, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RoutingState(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkGatewayConnectionProtocol string + +const ( + VirtualNetworkGatewayConnectionProtocolIKEvOne VirtualNetworkGatewayConnectionProtocol = "IKEv1" + VirtualNetworkGatewayConnectionProtocolIKEvTwo VirtualNetworkGatewayConnectionProtocol = "IKEv2" +) + +func PossibleValuesForVirtualNetworkGatewayConnectionProtocol() []string { + return []string{ + string(VirtualNetworkGatewayConnectionProtocolIKEvOne), + string(VirtualNetworkGatewayConnectionProtocolIKEvTwo), + } +} + +func (s *VirtualNetworkGatewayConnectionProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkGatewayConnectionProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkGatewayConnectionProtocol(input string) (*VirtualNetworkGatewayConnectionProtocol, error) { + vals := map[string]VirtualNetworkGatewayConnectionProtocol{ + "ikev1": VirtualNetworkGatewayConnectionProtocolIKEvOne, + "ikev2": VirtualNetworkGatewayConnectionProtocolIKEvTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkGatewayConnectionProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} + +type VirtualWanSecurityProviderType string + +const ( + VirtualWanSecurityProviderTypeExternal VirtualWanSecurityProviderType = "External" + VirtualWanSecurityProviderTypeNative VirtualWanSecurityProviderType = "Native" +) + +func PossibleValuesForVirtualWanSecurityProviderType() []string { + return []string{ + string(VirtualWanSecurityProviderTypeExternal), + string(VirtualWanSecurityProviderTypeNative), + } +} + +func (s *VirtualWanSecurityProviderType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualWanSecurityProviderType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualWanSecurityProviderType(input string) (*VirtualWanSecurityProviderType, error) { + vals := map[string]VirtualWanSecurityProviderType{ + "external": VirtualWanSecurityProviderTypeExternal, + "native": VirtualWanSecurityProviderTypeNative, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualWanSecurityProviderType(input) + return &out, nil +} + +type VnetLocalRouteOverrideCriteria string + +const ( + VnetLocalRouteOverrideCriteriaContains VnetLocalRouteOverrideCriteria = "Contains" + VnetLocalRouteOverrideCriteriaEqual VnetLocalRouteOverrideCriteria = "Equal" +) + +func PossibleValuesForVnetLocalRouteOverrideCriteria() []string { + return []string{ + string(VnetLocalRouteOverrideCriteriaContains), + string(VnetLocalRouteOverrideCriteriaEqual), + } +} + +func (s *VnetLocalRouteOverrideCriteria) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVnetLocalRouteOverrideCriteria(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVnetLocalRouteOverrideCriteria(input string) (*VnetLocalRouteOverrideCriteria, error) { + vals := map[string]VnetLocalRouteOverrideCriteria{ + "contains": VnetLocalRouteOverrideCriteriaContains, + "equal": VnetLocalRouteOverrideCriteriaEqual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VnetLocalRouteOverrideCriteria(input) + return &out, nil +} + +type VpnAuthenticationType string + +const ( + VpnAuthenticationTypeAAD VpnAuthenticationType = "AAD" + VpnAuthenticationTypeCertificate VpnAuthenticationType = "Certificate" + VpnAuthenticationTypeRadius VpnAuthenticationType = "Radius" +) + +func PossibleValuesForVpnAuthenticationType() []string { + return []string{ + string(VpnAuthenticationTypeAAD), + string(VpnAuthenticationTypeCertificate), + string(VpnAuthenticationTypeRadius), + } +} + +func (s *VpnAuthenticationType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnAuthenticationType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnAuthenticationType(input string) (*VpnAuthenticationType, error) { + vals := map[string]VpnAuthenticationType{ + "aad": VpnAuthenticationTypeAAD, + "certificate": VpnAuthenticationTypeCertificate, + "radius": VpnAuthenticationTypeRadius, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnAuthenticationType(input) + return &out, nil +} + +type VpnConnectionStatus string + +const ( + VpnConnectionStatusConnected VpnConnectionStatus = "Connected" + VpnConnectionStatusConnecting VpnConnectionStatus = "Connecting" + VpnConnectionStatusNotConnected VpnConnectionStatus = "NotConnected" + VpnConnectionStatusUnknown VpnConnectionStatus = "Unknown" +) + +func PossibleValuesForVpnConnectionStatus() []string { + return []string{ + string(VpnConnectionStatusConnected), + string(VpnConnectionStatusConnecting), + string(VpnConnectionStatusNotConnected), + string(VpnConnectionStatusUnknown), + } +} + +func (s *VpnConnectionStatus) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnConnectionStatus(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnConnectionStatus(input string) (*VpnConnectionStatus, error) { + vals := map[string]VpnConnectionStatus{ + "connected": VpnConnectionStatusConnected, + "connecting": VpnConnectionStatusConnecting, + "notconnected": VpnConnectionStatusNotConnected, + "unknown": VpnConnectionStatusUnknown, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnConnectionStatus(input) + return &out, nil +} + +type VpnGatewayTunnelingProtocol string + +const ( + VpnGatewayTunnelingProtocolIkeVTwo VpnGatewayTunnelingProtocol = "IkeV2" + VpnGatewayTunnelingProtocolOpenVPN VpnGatewayTunnelingProtocol = "OpenVPN" +) + +func PossibleValuesForVpnGatewayTunnelingProtocol() []string { + return []string{ + string(VpnGatewayTunnelingProtocolIkeVTwo), + string(VpnGatewayTunnelingProtocolOpenVPN), + } +} + +func (s *VpnGatewayTunnelingProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnGatewayTunnelingProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnGatewayTunnelingProtocol(input string) (*VpnGatewayTunnelingProtocol, error) { + vals := map[string]VpnGatewayTunnelingProtocol{ + "ikev2": VpnGatewayTunnelingProtocolIkeVTwo, + "openvpn": VpnGatewayTunnelingProtocolOpenVPN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnGatewayTunnelingProtocol(input) + return &out, nil +} + +type VpnLinkConnectionMode string + +const ( + VpnLinkConnectionModeDefault VpnLinkConnectionMode = "Default" + VpnLinkConnectionModeInitiatorOnly VpnLinkConnectionMode = "InitiatorOnly" + VpnLinkConnectionModeResponderOnly VpnLinkConnectionMode = "ResponderOnly" +) + +func PossibleValuesForVpnLinkConnectionMode() []string { + return []string{ + string(VpnLinkConnectionModeDefault), + string(VpnLinkConnectionModeInitiatorOnly), + string(VpnLinkConnectionModeResponderOnly), + } +} + +func (s *VpnLinkConnectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnLinkConnectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnLinkConnectionMode(input string) (*VpnLinkConnectionMode, error) { + vals := map[string]VpnLinkConnectionMode{ + "default": VpnLinkConnectionModeDefault, + "initiatoronly": VpnLinkConnectionModeInitiatorOnly, + "responderonly": VpnLinkConnectionModeResponderOnly, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnLinkConnectionMode(input) + return &out, nil +} + +type VpnNatRuleMode string + +const ( + VpnNatRuleModeEgressSnat VpnNatRuleMode = "EgressSnat" + VpnNatRuleModeIngressSnat VpnNatRuleMode = "IngressSnat" +) + +func PossibleValuesForVpnNatRuleMode() []string { + return []string{ + string(VpnNatRuleModeEgressSnat), + string(VpnNatRuleModeIngressSnat), + } +} + +func (s *VpnNatRuleMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleMode(input string) (*VpnNatRuleMode, error) { + vals := map[string]VpnNatRuleMode{ + "egresssnat": VpnNatRuleModeEgressSnat, + "ingresssnat": VpnNatRuleModeIngressSnat, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleMode(input) + return &out, nil +} + +type VpnNatRuleType string + +const ( + VpnNatRuleTypeDynamic VpnNatRuleType = "Dynamic" + VpnNatRuleTypeStatic VpnNatRuleType = "Static" +) + +func PossibleValuesForVpnNatRuleType() []string { + return []string{ + string(VpnNatRuleTypeDynamic), + string(VpnNatRuleTypeStatic), + } +} + +func (s *VpnNatRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnNatRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnNatRuleType(input string) (*VpnNatRuleType, error) { + vals := map[string]VpnNatRuleType{ + "dynamic": VpnNatRuleTypeDynamic, + "static": VpnNatRuleTypeStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnNatRuleType(input) + return &out, nil +} + +type VpnPolicyMemberAttributeType string + +const ( + VpnPolicyMemberAttributeTypeAADGroupId VpnPolicyMemberAttributeType = "AADGroupId" + VpnPolicyMemberAttributeTypeCertificateGroupId VpnPolicyMemberAttributeType = "CertificateGroupId" + VpnPolicyMemberAttributeTypeRadiusAzureGroupId VpnPolicyMemberAttributeType = "RadiusAzureGroupId" +) + +func PossibleValuesForVpnPolicyMemberAttributeType() []string { + return []string{ + string(VpnPolicyMemberAttributeTypeAADGroupId), + string(VpnPolicyMemberAttributeTypeCertificateGroupId), + string(VpnPolicyMemberAttributeTypeRadiusAzureGroupId), + } +} + +func (s *VpnPolicyMemberAttributeType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVpnPolicyMemberAttributeType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVpnPolicyMemberAttributeType(input string) (*VpnPolicyMemberAttributeType, error) { + vals := map[string]VpnPolicyMemberAttributeType{ + "aadgroupid": VpnPolicyMemberAttributeTypeAADGroupId, + "certificategroupid": VpnPolicyMemberAttributeTypeCertificateGroupId, + "radiusazuregroupid": VpnPolicyMemberAttributeTypeRadiusAzureGroupId, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VpnPolicyMemberAttributeType(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_configurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_configurationpolicygroup.go new file mode 100644 index 000000000000..058775a50d01 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_configurationpolicygroup.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ConfigurationPolicyGroupId{}) +} + +var _ resourceids.ResourceId = &ConfigurationPolicyGroupId{} + +// ConfigurationPolicyGroupId is a struct representing the Resource ID for a Configuration Policy Group +type ConfigurationPolicyGroupId struct { + SubscriptionId string + ResourceGroupName string + VpnServerConfigurationName string + ConfigurationPolicyGroupName string +} + +// NewConfigurationPolicyGroupID returns a new ConfigurationPolicyGroupId struct +func NewConfigurationPolicyGroupID(subscriptionId string, resourceGroupName string, vpnServerConfigurationName string, configurationPolicyGroupName string) ConfigurationPolicyGroupId { + return ConfigurationPolicyGroupId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnServerConfigurationName: vpnServerConfigurationName, + ConfigurationPolicyGroupName: configurationPolicyGroupName, + } +} + +// ParseConfigurationPolicyGroupID parses 'input' into a ConfigurationPolicyGroupId +func ParseConfigurationPolicyGroupID(input string) (*ConfigurationPolicyGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConfigurationPolicyGroupId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConfigurationPolicyGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseConfigurationPolicyGroupIDInsensitively parses 'input' case-insensitively into a ConfigurationPolicyGroupId +// note: this method should only be used for API response data and not user input +func ParseConfigurationPolicyGroupIDInsensitively(input string) (*ConfigurationPolicyGroupId, error) { + parser := resourceids.NewParserFromResourceIdType(&ConfigurationPolicyGroupId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ConfigurationPolicyGroupId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ConfigurationPolicyGroupId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnServerConfigurationName, ok = input.Parsed["vpnServerConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnServerConfigurationName", input) + } + + if id.ConfigurationPolicyGroupName, ok = input.Parsed["configurationPolicyGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "configurationPolicyGroupName", input) + } + + return nil +} + +// ValidateConfigurationPolicyGroupID checks that 'input' can be parsed as a Configuration Policy Group ID +func ValidateConfigurationPolicyGroupID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseConfigurationPolicyGroupID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Configuration Policy Group ID +func (id ConfigurationPolicyGroupId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnServerConfigurations/%s/configurationPolicyGroups/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnServerConfigurationName, id.ConfigurationPolicyGroupName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Configuration Policy Group ID +func (id ConfigurationPolicyGroupId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), + resourceids.StaticSegment("staticConfigurationPolicyGroups", "configurationPolicyGroups", "configurationPolicyGroups"), + resourceids.UserSpecifiedSegment("configurationPolicyGroupName", "configurationPolicyGroupName"), + } +} + +// String returns a human-readable description of this Configuration Policy Group ID +func (id ConfigurationPolicyGroupId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Server Configuration Name: %q", id.VpnServerConfigurationName), + fmt.Sprintf("Configuration Policy Group Name: %q", id.ConfigurationPolicyGroupName), + } + return fmt.Sprintf("Configuration Policy Group (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubroutetable.go new file mode 100644 index 000000000000..12d932e8523c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubroutetable.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&HubRouteTableId{}) +} + +var _ resourceids.ResourceId = &HubRouteTableId{} + +// HubRouteTableId is a struct representing the Resource ID for a Hub Route Table +type HubRouteTableId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + HubRouteTableName string +} + +// NewHubRouteTableID returns a new HubRouteTableId struct +func NewHubRouteTableID(subscriptionId string, resourceGroupName string, virtualHubName string, hubRouteTableName string) HubRouteTableId { + return HubRouteTableId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + HubRouteTableName: hubRouteTableName, + } +} + +// ParseHubRouteTableID parses 'input' into a HubRouteTableId +func ParseHubRouteTableID(input string) (*HubRouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&HubRouteTableId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HubRouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHubRouteTableIDInsensitively parses 'input' case-insensitively into a HubRouteTableId +// note: this method should only be used for API response data and not user input +func ParseHubRouteTableIDInsensitively(input string) (*HubRouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&HubRouteTableId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HubRouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HubRouteTableId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.HubRouteTableName, ok = input.Parsed["hubRouteTableName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hubRouteTableName", input) + } + + return nil +} + +// ValidateHubRouteTableID checks that 'input' can be parsed as a Hub Route Table ID +func ValidateHubRouteTableID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseHubRouteTableID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Hub Route Table ID +func (id HubRouteTableId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/hubRouteTables/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.HubRouteTableName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Hub Route Table ID +func (id HubRouteTableId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticHubRouteTables", "hubRouteTables", "hubRouteTables"), + resourceids.UserSpecifiedSegment("hubRouteTableName", "hubRouteTableName"), + } +} + +// String returns a human-readable description of this Hub Route Table ID +func (id HubRouteTableId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Hub Route Table Name: %q", id.HubRouteTableName), + } + return fmt.Sprintf("Hub Route Table (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubvirtualnetworkconnection.go new file mode 100644 index 000000000000..17eee4937ebc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_hubvirtualnetworkconnection.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&HubVirtualNetworkConnectionId{}) +} + +var _ resourceids.ResourceId = &HubVirtualNetworkConnectionId{} + +// HubVirtualNetworkConnectionId is a struct representing the Resource ID for a Hub Virtual Network Connection +type HubVirtualNetworkConnectionId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + HubVirtualNetworkConnectionName string +} + +// NewHubVirtualNetworkConnectionID returns a new HubVirtualNetworkConnectionId struct +func NewHubVirtualNetworkConnectionID(subscriptionId string, resourceGroupName string, virtualHubName string, hubVirtualNetworkConnectionName string) HubVirtualNetworkConnectionId { + return HubVirtualNetworkConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + HubVirtualNetworkConnectionName: hubVirtualNetworkConnectionName, + } +} + +// ParseHubVirtualNetworkConnectionID parses 'input' into a HubVirtualNetworkConnectionId +func ParseHubVirtualNetworkConnectionID(input string) (*HubVirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&HubVirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HubVirtualNetworkConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseHubVirtualNetworkConnectionIDInsensitively parses 'input' case-insensitively into a HubVirtualNetworkConnectionId +// note: this method should only be used for API response data and not user input +func ParseHubVirtualNetworkConnectionIDInsensitively(input string) (*HubVirtualNetworkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&HubVirtualNetworkConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := HubVirtualNetworkConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *HubVirtualNetworkConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.HubVirtualNetworkConnectionName, ok = input.Parsed["hubVirtualNetworkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "hubVirtualNetworkConnectionName", input) + } + + return nil +} + +// ValidateHubVirtualNetworkConnectionID checks that 'input' can be parsed as a Hub Virtual Network Connection ID +func ValidateHubVirtualNetworkConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseHubVirtualNetworkConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Hub Virtual Network Connection ID +func (id HubVirtualNetworkConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/hubVirtualNetworkConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.HubVirtualNetworkConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Hub Virtual Network Connection ID +func (id HubVirtualNetworkConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticHubVirtualNetworkConnections", "hubVirtualNetworkConnections", "hubVirtualNetworkConnections"), + resourceids.UserSpecifiedSegment("hubVirtualNetworkConnectionName", "hubVirtualNetworkConnectionName"), + } +} + +// String returns a human-readable description of this Hub Virtual Network Connection ID +func (id HubVirtualNetworkConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Hub Virtual Network Connection Name: %q", id.HubVirtualNetworkConnectionName), + } + return fmt.Sprintf("Hub Virtual Network Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_natrule.go new file mode 100644 index 000000000000..ab096bb8e61f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_natrule.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NatRuleId{}) +} + +var _ resourceids.ResourceId = &NatRuleId{} + +// NatRuleId is a struct representing the Resource ID for a Nat Rule +type NatRuleId struct { + SubscriptionId string + ResourceGroupName string + VpnGatewayName string + NatRuleName string +} + +// NewNatRuleID returns a new NatRuleId struct +func NewNatRuleID(subscriptionId string, resourceGroupName string, vpnGatewayName string, natRuleName string) NatRuleId { + return NatRuleId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnGatewayName: vpnGatewayName, + NatRuleName: natRuleName, + } +} + +// ParseNatRuleID parses 'input' into a NatRuleId +func ParseNatRuleID(input string) (*NatRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&NatRuleId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NatRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNatRuleIDInsensitively parses 'input' case-insensitively into a NatRuleId +// note: this method should only be used for API response data and not user input +func ParseNatRuleIDInsensitively(input string) (*NatRuleId, error) { + parser := resourceids.NewParserFromResourceIdType(&NatRuleId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NatRuleId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NatRuleId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnGatewayName, ok = input.Parsed["vpnGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnGatewayName", input) + } + + if id.NatRuleName, ok = input.Parsed["natRuleName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "natRuleName", input) + } + + return nil +} + +// ValidateNatRuleID checks that 'input' can be parsed as a Nat Rule ID +func ValidateNatRuleID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNatRuleID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Nat Rule ID +func (id NatRuleId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnGateways/%s/natRules/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnGatewayName, id.NatRuleName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Nat Rule ID +func (id NatRuleId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayName"), + resourceids.StaticSegment("staticNatRules", "natRules", "natRules"), + resourceids.UserSpecifiedSegment("natRuleName", "natRuleName"), + } +} + +// String returns a human-readable description of this Nat Rule ID +func (id NatRuleId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Gateway Name: %q", id.VpnGatewayName), + fmt.Sprintf("Nat Rule Name: %q", id.NatRuleName), + } + return fmt.Sprintf("Nat Rule (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualappliance.go new file mode 100644 index 000000000000..3b7e0a17a90f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualappliance.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkVirtualApplianceId{}) +} + +var _ resourceids.ResourceId = &NetworkVirtualApplianceId{} + +// NetworkVirtualApplianceId is a struct representing the Resource ID for a Network Virtual Appliance +type NetworkVirtualApplianceId struct { + SubscriptionId string + ResourceGroupName string + NetworkVirtualApplianceName string +} + +// NewNetworkVirtualApplianceID returns a new NetworkVirtualApplianceId struct +func NewNetworkVirtualApplianceID(subscriptionId string, resourceGroupName string, networkVirtualApplianceName string) NetworkVirtualApplianceId { + return NetworkVirtualApplianceId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkVirtualApplianceName: networkVirtualApplianceName, + } +} + +// ParseNetworkVirtualApplianceID parses 'input' into a NetworkVirtualApplianceId +func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkVirtualApplianceIDInsensitively parses 'input' case-insensitively into a NetworkVirtualApplianceId +// note: this method should only be used for API response data and not user input +func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualApplianceId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkVirtualApplianceId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkVirtualApplianceName, ok = input.Parsed["networkVirtualApplianceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceName", input) + } + + return nil +} + +// ValidateNetworkVirtualApplianceID checks that 'input' can be parsed as a Network Virtual Appliance ID +func ValidateNetworkVirtualApplianceID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkVirtualApplianceID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkVirtualAppliances/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkVirtualApplianceName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), + } +} + +// String returns a human-readable description of this Network Virtual Appliance ID +func (id NetworkVirtualApplianceId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Virtual Appliance Name: %q", id.NetworkVirtualApplianceName), + } + return fmt.Sprintf("Network Virtual Appliance (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualapplianceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualapplianceconnection.go new file mode 100644 index 000000000000..fbbc66efaec7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_networkvirtualapplianceconnection.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&NetworkVirtualApplianceConnectionId{}) +} + +var _ resourceids.ResourceId = &NetworkVirtualApplianceConnectionId{} + +// NetworkVirtualApplianceConnectionId is a struct representing the Resource ID for a Network Virtual Appliance Connection +type NetworkVirtualApplianceConnectionId struct { + SubscriptionId string + ResourceGroupName string + NetworkVirtualApplianceName string + NetworkVirtualApplianceConnectionName string +} + +// NewNetworkVirtualApplianceConnectionID returns a new NetworkVirtualApplianceConnectionId struct +func NewNetworkVirtualApplianceConnectionID(subscriptionId string, resourceGroupName string, networkVirtualApplianceName string, networkVirtualApplianceConnectionName string) NetworkVirtualApplianceConnectionId { + return NetworkVirtualApplianceConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + NetworkVirtualApplianceName: networkVirtualApplianceName, + NetworkVirtualApplianceConnectionName: networkVirtualApplianceConnectionName, + } +} + +// ParseNetworkVirtualApplianceConnectionID parses 'input' into a NetworkVirtualApplianceConnectionId +func ParseNetworkVirtualApplianceConnectionID(input string) (*NetworkVirtualApplianceConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseNetworkVirtualApplianceConnectionIDInsensitively parses 'input' case-insensitively into a NetworkVirtualApplianceConnectionId +// note: this method should only be used for API response data and not user input +func ParseNetworkVirtualApplianceConnectionIDInsensitively(input string) (*NetworkVirtualApplianceConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&NetworkVirtualApplianceConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := NetworkVirtualApplianceConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *NetworkVirtualApplianceConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.NetworkVirtualApplianceName, ok = input.Parsed["networkVirtualApplianceName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceName", input) + } + + if id.NetworkVirtualApplianceConnectionName, ok = input.Parsed["networkVirtualApplianceConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "networkVirtualApplianceConnectionName", input) + } + + return nil +} + +// ValidateNetworkVirtualApplianceConnectionID checks that 'input' can be parsed as a Network Virtual Appliance Connection ID +func ValidateNetworkVirtualApplianceConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseNetworkVirtualApplianceConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Network Virtual Appliance Connection ID +func (id NetworkVirtualApplianceConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkVirtualAppliances/%s/networkVirtualApplianceConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.NetworkVirtualApplianceName, id.NetworkVirtualApplianceConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Network Virtual Appliance Connection ID +func (id NetworkVirtualApplianceConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), + resourceids.StaticSegment("staticNetworkVirtualApplianceConnections", "networkVirtualApplianceConnections", "networkVirtualApplianceConnections"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceConnectionName", "networkVirtualApplianceConnectionName"), + } +} + +// String returns a human-readable description of this Network Virtual Appliance Connection ID +func (id NetworkVirtualApplianceConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Network Virtual Appliance Name: %q", id.NetworkVirtualApplianceName), + fmt.Sprintf("Network Virtual Appliance Connection Name: %q", id.NetworkVirtualApplianceConnectionName), + } + return fmt.Sprintf("Network Virtual Appliance Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routemap.go new file mode 100644 index 000000000000..cf9525f1046b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routemap.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RouteMapId{}) +} + +var _ resourceids.ResourceId = &RouteMapId{} + +// RouteMapId is a struct representing the Resource ID for a Route Map +type RouteMapId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + RouteMapName string +} + +// NewRouteMapID returns a new RouteMapId struct +func NewRouteMapID(subscriptionId string, resourceGroupName string, virtualHubName string, routeMapName string) RouteMapId { + return RouteMapId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + RouteMapName: routeMapName, + } +} + +// ParseRouteMapID parses 'input' into a RouteMapId +func ParseRouteMapID(input string) (*RouteMapId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteMapId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteMapId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRouteMapIDInsensitively parses 'input' case-insensitively into a RouteMapId +// note: this method should only be used for API response data and not user input +func ParseRouteMapIDInsensitively(input string) (*RouteMapId, error) { + parser := resourceids.NewParserFromResourceIdType(&RouteMapId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RouteMapId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RouteMapId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.RouteMapName, ok = input.Parsed["routeMapName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeMapName", input) + } + + return nil +} + +// ValidateRouteMapID checks that 'input' can be parsed as a Route Map ID +func ValidateRouteMapID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRouteMapID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Route Map ID +func (id RouteMapId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/routeMaps/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.RouteMapName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Route Map ID +func (id RouteMapId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticRouteMaps", "routeMaps", "routeMaps"), + resourceids.UserSpecifiedSegment("routeMapName", "routeMapName"), + } +} + +// String returns a human-readable description of this Route Map ID +func (id RouteMapId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Route Map Name: %q", id.RouteMapName), + } + return fmt.Sprintf("Route Map (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routingintent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routingintent.go new file mode 100644 index 000000000000..cb05e57eb4ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_routingintent.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&RoutingIntentId{}) +} + +var _ resourceids.ResourceId = &RoutingIntentId{} + +// RoutingIntentId is a struct representing the Resource ID for a Routing Intent +type RoutingIntentId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + RoutingIntentName string +} + +// NewRoutingIntentID returns a new RoutingIntentId struct +func NewRoutingIntentID(subscriptionId string, resourceGroupName string, virtualHubName string, routingIntentName string) RoutingIntentId { + return RoutingIntentId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + RoutingIntentName: routingIntentName, + } +} + +// ParseRoutingIntentID parses 'input' into a RoutingIntentId +func ParseRoutingIntentID(input string) (*RoutingIntentId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingIntentId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingIntentId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseRoutingIntentIDInsensitively parses 'input' case-insensitively into a RoutingIntentId +// note: this method should only be used for API response data and not user input +func ParseRoutingIntentIDInsensitively(input string) (*RoutingIntentId, error) { + parser := resourceids.NewParserFromResourceIdType(&RoutingIntentId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := RoutingIntentId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *RoutingIntentId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.RoutingIntentName, ok = input.Parsed["routingIntentName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routingIntentName", input) + } + + return nil +} + +// ValidateRoutingIntentID checks that 'input' can be parsed as a Routing Intent ID +func ValidateRoutingIntentID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseRoutingIntentID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Routing Intent ID +func (id RoutingIntentId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/routingIntent/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.RoutingIntentName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Routing Intent ID +func (id RoutingIntentId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticRoutingIntent", "routingIntent", "routingIntent"), + resourceids.UserSpecifiedSegment("routingIntentName", "routingIntentName"), + } +} + +// String returns a human-readable description of this Routing Intent ID +func (id RoutingIntentId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Routing Intent Name: %q", id.RoutingIntentName), + } + return fmt.Sprintf("Routing Intent (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhub.go new file mode 100644 index 000000000000..b406438486cf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhub.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualHubId{}) +} + +var _ resourceids.ResourceId = &VirtualHubId{} + +// VirtualHubId is a struct representing the Resource ID for a Virtual Hub +type VirtualHubId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string +} + +// NewVirtualHubID returns a new VirtualHubId struct +func NewVirtualHubID(subscriptionId string, resourceGroupName string, virtualHubName string) VirtualHubId { + return VirtualHubId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + } +} + +// ParseVirtualHubID parses 'input' into a VirtualHubId +func ParseVirtualHubID(input string) (*VirtualHubId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualHubId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualHubId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualHubIDInsensitively parses 'input' case-insensitively into a VirtualHubId +// note: this method should only be used for API response data and not user input +func ParseVirtualHubIDInsensitively(input string) (*VirtualHubId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualHubId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualHubId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualHubId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + return nil +} + +// ValidateVirtualHubID checks that 'input' can be parsed as a Virtual Hub ID +func ValidateVirtualHubID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualHubID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Hub ID +func (id VirtualHubId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Hub ID +func (id VirtualHubId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + } +} + +// String returns a human-readable description of this Virtual Hub ID +func (id VirtualHubId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + } + return fmt.Sprintf("Virtual Hub (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhubroutetable.go new file mode 100644 index 000000000000..db641540b540 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualhubroutetable.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualHubRouteTableId{}) +} + +var _ resourceids.ResourceId = &VirtualHubRouteTableId{} + +// VirtualHubRouteTableId is a struct representing the Resource ID for a Virtual Hub Route Table +type VirtualHubRouteTableId struct { + SubscriptionId string + ResourceGroupName string + VirtualHubName string + RouteTableName string +} + +// NewVirtualHubRouteTableID returns a new VirtualHubRouteTableId struct +func NewVirtualHubRouteTableID(subscriptionId string, resourceGroupName string, virtualHubName string, routeTableName string) VirtualHubRouteTableId { + return VirtualHubRouteTableId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualHubName: virtualHubName, + RouteTableName: routeTableName, + } +} + +// ParseVirtualHubRouteTableID parses 'input' into a VirtualHubRouteTableId +func ParseVirtualHubRouteTableID(input string) (*VirtualHubRouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualHubRouteTableId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualHubRouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualHubRouteTableIDInsensitively parses 'input' case-insensitively into a VirtualHubRouteTableId +// note: this method should only be used for API response data and not user input +func ParseVirtualHubRouteTableIDInsensitively(input string) (*VirtualHubRouteTableId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualHubRouteTableId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualHubRouteTableId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualHubRouteTableId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualHubName, ok = input.Parsed["virtualHubName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualHubName", input) + } + + if id.RouteTableName, ok = input.Parsed["routeTableName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "routeTableName", input) + } + + return nil +} + +// ValidateVirtualHubRouteTableID checks that 'input' can be parsed as a Virtual Hub Route Table ID +func ValidateVirtualHubRouteTableID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualHubRouteTableID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual Hub Route Table ID +func (id VirtualHubRouteTableId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualHubs/%s/routeTables/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualHubName, id.RouteTableName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual Hub Route Table ID +func (id VirtualHubRouteTableId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), + resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), + } +} + +// String returns a human-readable description of this Virtual Hub Route Table ID +func (id VirtualHubRouteTableId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Hub Name: %q", id.VirtualHubName), + fmt.Sprintf("Route Table Name: %q", id.RouteTableName), + } + return fmt.Sprintf("Virtual Hub Route Table (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualwan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualwan.go new file mode 100644 index 000000000000..fa94d154c26d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_virtualwan.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VirtualWANId{}) +} + +var _ resourceids.ResourceId = &VirtualWANId{} + +// VirtualWANId is a struct representing the Resource ID for a Virtual W A N +type VirtualWANId struct { + SubscriptionId string + ResourceGroupName string + VirtualWanName string +} + +// NewVirtualWANID returns a new VirtualWANId struct +func NewVirtualWANID(subscriptionId string, resourceGroupName string, virtualWanName string) VirtualWANId { + return VirtualWANId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VirtualWanName: virtualWanName, + } +} + +// ParseVirtualWANID parses 'input' into a VirtualWANId +func ParseVirtualWANID(input string) (*VirtualWANId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualWANId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualWANId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVirtualWANIDInsensitively parses 'input' case-insensitively into a VirtualWANId +// note: this method should only be used for API response data and not user input +func ParseVirtualWANIDInsensitively(input string) (*VirtualWANId, error) { + parser := resourceids.NewParserFromResourceIdType(&VirtualWANId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VirtualWANId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VirtualWANId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VirtualWanName, ok = input.Parsed["virtualWanName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "virtualWanName", input) + } + + return nil +} + +// ValidateVirtualWANID checks that 'input' can be parsed as a Virtual W A N ID +func ValidateVirtualWANID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVirtualWANID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Virtual W A N ID +func (id VirtualWANId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualWans/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VirtualWanName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Virtual W A N ID +func (id VirtualWANId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVirtualWans", "virtualWans", "virtualWans"), + resourceids.UserSpecifiedSegment("virtualWanName", "virtualWanName"), + } +} + +// String returns a human-readable description of this Virtual W A N ID +func (id VirtualWANId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Virtual Wan Name: %q", id.VirtualWanName), + } + return fmt.Sprintf("Virtual W A N (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpngateway.go new file mode 100644 index 000000000000..4aac85c0d136 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpngateway.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnGatewayId{}) +} + +var _ resourceids.ResourceId = &VpnGatewayId{} + +// VpnGatewayId is a struct representing the Resource ID for a Vpn Gateway +type VpnGatewayId struct { + SubscriptionId string + ResourceGroupName string + VpnGatewayName string +} + +// NewVpnGatewayID returns a new VpnGatewayId struct +func NewVpnGatewayID(subscriptionId string, resourceGroupName string, vpnGatewayName string) VpnGatewayId { + return VpnGatewayId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnGatewayName: vpnGatewayName, + } +} + +// ParseVpnGatewayID parses 'input' into a VpnGatewayId +func ParseVpnGatewayID(input string) (*VpnGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnGatewayId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnGatewayIDInsensitively parses 'input' case-insensitively into a VpnGatewayId +// note: this method should only be used for API response data and not user input +func ParseVpnGatewayIDInsensitively(input string) (*VpnGatewayId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnGatewayId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnGatewayId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnGatewayId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnGatewayName, ok = input.Parsed["vpnGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnGatewayName", input) + } + + return nil +} + +// ValidateVpnGatewayID checks that 'input' can be parsed as a Vpn Gateway ID +func ValidateVpnGatewayID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnGatewayID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Gateway ID +func (id VpnGatewayId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnGateways/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnGatewayName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Gateway ID +func (id VpnGatewayId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayName"), + } +} + +// String returns a human-readable description of this Vpn Gateway ID +func (id VpnGatewayId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Gateway Name: %q", id.VpnGatewayName), + } + return fmt.Sprintf("Vpn Gateway (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnlinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnlinkconnection.go new file mode 100644 index 000000000000..98326bfe8428 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnlinkconnection.go @@ -0,0 +1,148 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnLinkConnectionId{}) +} + +var _ resourceids.ResourceId = &VpnLinkConnectionId{} + +// VpnLinkConnectionId is a struct representing the Resource ID for a Vpn Link Connection +type VpnLinkConnectionId struct { + SubscriptionId string + ResourceGroupName string + VpnGatewayName string + VpnConnectionName string + VpnLinkConnectionName string +} + +// NewVpnLinkConnectionID returns a new VpnLinkConnectionId struct +func NewVpnLinkConnectionID(subscriptionId string, resourceGroupName string, vpnGatewayName string, vpnConnectionName string, vpnLinkConnectionName string) VpnLinkConnectionId { + return VpnLinkConnectionId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnGatewayName: vpnGatewayName, + VpnConnectionName: vpnConnectionName, + VpnLinkConnectionName: vpnLinkConnectionName, + } +} + +// ParseVpnLinkConnectionID parses 'input' into a VpnLinkConnectionId +func ParseVpnLinkConnectionID(input string) (*VpnLinkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnLinkConnectionId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnLinkConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnLinkConnectionIDInsensitively parses 'input' case-insensitively into a VpnLinkConnectionId +// note: this method should only be used for API response data and not user input +func ParseVpnLinkConnectionIDInsensitively(input string) (*VpnLinkConnectionId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnLinkConnectionId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnLinkConnectionId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnLinkConnectionId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnGatewayName, ok = input.Parsed["vpnGatewayName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnGatewayName", input) + } + + if id.VpnConnectionName, ok = input.Parsed["vpnConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnConnectionName", input) + } + + if id.VpnLinkConnectionName, ok = input.Parsed["vpnLinkConnectionName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnLinkConnectionName", input) + } + + return nil +} + +// ValidateVpnLinkConnectionID checks that 'input' can be parsed as a Vpn Link Connection ID +func ValidateVpnLinkConnectionID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnLinkConnectionID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Link Connection ID +func (id VpnLinkConnectionId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnGateways/%s/vpnConnections/%s/vpnLinkConnections/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnGatewayName, id.VpnConnectionName, id.VpnLinkConnectionName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Link Connection ID +func (id VpnLinkConnectionId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayName"), + resourceids.StaticSegment("staticVpnConnections", "vpnConnections", "vpnConnections"), + resourceids.UserSpecifiedSegment("vpnConnectionName", "vpnConnectionName"), + resourceids.StaticSegment("staticVpnLinkConnections", "vpnLinkConnections", "vpnLinkConnections"), + resourceids.UserSpecifiedSegment("vpnLinkConnectionName", "vpnLinkConnectionName"), + } +} + +// String returns a human-readable description of this Vpn Link Connection ID +func (id VpnLinkConnectionId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Gateway Name: %q", id.VpnGatewayName), + fmt.Sprintf("Vpn Connection Name: %q", id.VpnConnectionName), + fmt.Sprintf("Vpn Link Connection Name: %q", id.VpnLinkConnectionName), + } + return fmt.Sprintf("Vpn Link Connection (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnserverconfiguration.go new file mode 100644 index 000000000000..641107f1430f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnserverconfiguration.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnServerConfigurationId{}) +} + +var _ resourceids.ResourceId = &VpnServerConfigurationId{} + +// VpnServerConfigurationId is a struct representing the Resource ID for a Vpn Server Configuration +type VpnServerConfigurationId struct { + SubscriptionId string + ResourceGroupName string + VpnServerConfigurationName string +} + +// NewVpnServerConfigurationID returns a new VpnServerConfigurationId struct +func NewVpnServerConfigurationID(subscriptionId string, resourceGroupName string, vpnServerConfigurationName string) VpnServerConfigurationId { + return VpnServerConfigurationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnServerConfigurationName: vpnServerConfigurationName, + } +} + +// ParseVpnServerConfigurationID parses 'input' into a VpnServerConfigurationId +func ParseVpnServerConfigurationID(input string) (*VpnServerConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnServerConfigurationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnServerConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnServerConfigurationIDInsensitively parses 'input' case-insensitively into a VpnServerConfigurationId +// note: this method should only be used for API response data and not user input +func ParseVpnServerConfigurationIDInsensitively(input string) (*VpnServerConfigurationId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnServerConfigurationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnServerConfigurationId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnServerConfigurationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnServerConfigurationName, ok = input.Parsed["vpnServerConfigurationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnServerConfigurationName", input) + } + + return nil +} + +// ValidateVpnServerConfigurationID checks that 'input' can be parsed as a Vpn Server Configuration ID +func ValidateVpnServerConfigurationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnServerConfigurationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Server Configuration ID +func (id VpnServerConfigurationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnServerConfigurations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnServerConfigurationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Server Configuration ID +func (id VpnServerConfigurationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), + } +} + +// String returns a human-readable description of this Vpn Server Configuration ID +func (id VpnServerConfigurationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Server Configuration Name: %q", id.VpnServerConfigurationName), + } + return fmt.Sprintf("Vpn Server Configuration (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsite.go new file mode 100644 index 000000000000..241994cde17e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsite.go @@ -0,0 +1,130 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnSiteId{}) +} + +var _ resourceids.ResourceId = &VpnSiteId{} + +// VpnSiteId is a struct representing the Resource ID for a Vpn Site +type VpnSiteId struct { + SubscriptionId string + ResourceGroupName string + VpnSiteName string +} + +// NewVpnSiteID returns a new VpnSiteId struct +func NewVpnSiteID(subscriptionId string, resourceGroupName string, vpnSiteName string) VpnSiteId { + return VpnSiteId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnSiteName: vpnSiteName, + } +} + +// ParseVpnSiteID parses 'input' into a VpnSiteId +func ParseVpnSiteID(input string) (*VpnSiteId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnSiteId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnSiteId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnSiteIDInsensitively parses 'input' case-insensitively into a VpnSiteId +// note: this method should only be used for API response data and not user input +func ParseVpnSiteIDInsensitively(input string) (*VpnSiteId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnSiteId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnSiteId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnSiteId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnSiteName, ok = input.Parsed["vpnSiteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnSiteName", input) + } + + return nil +} + +// ValidateVpnSiteID checks that 'input' can be parsed as a Vpn Site ID +func ValidateVpnSiteID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnSiteID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Site ID +func (id VpnSiteId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnSites/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnSiteName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Site ID +func (id VpnSiteId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), + } +} + +// String returns a human-readable description of this Vpn Site ID +func (id VpnSiteId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Site Name: %q", id.VpnSiteName), + } + return fmt.Sprintf("Vpn Site (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsitelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsitelink.go new file mode 100644 index 000000000000..fcfd5aa34ed5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/id_vpnsitelink.go @@ -0,0 +1,139 @@ +package virtualwans + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&VpnSiteLinkId{}) +} + +var _ resourceids.ResourceId = &VpnSiteLinkId{} + +// VpnSiteLinkId is a struct representing the Resource ID for a Vpn Site Link +type VpnSiteLinkId struct { + SubscriptionId string + ResourceGroupName string + VpnSiteName string + VpnSiteLinkName string +} + +// NewVpnSiteLinkID returns a new VpnSiteLinkId struct +func NewVpnSiteLinkID(subscriptionId string, resourceGroupName string, vpnSiteName string, vpnSiteLinkName string) VpnSiteLinkId { + return VpnSiteLinkId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + VpnSiteName: vpnSiteName, + VpnSiteLinkName: vpnSiteLinkName, + } +} + +// ParseVpnSiteLinkID parses 'input' into a VpnSiteLinkId +func ParseVpnSiteLinkID(input string) (*VpnSiteLinkId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnSiteLinkId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnSiteLinkId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseVpnSiteLinkIDInsensitively parses 'input' case-insensitively into a VpnSiteLinkId +// note: this method should only be used for API response data and not user input +func ParseVpnSiteLinkIDInsensitively(input string) (*VpnSiteLinkId, error) { + parser := resourceids.NewParserFromResourceIdType(&VpnSiteLinkId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := VpnSiteLinkId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *VpnSiteLinkId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.VpnSiteName, ok = input.Parsed["vpnSiteName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnSiteName", input) + } + + if id.VpnSiteLinkName, ok = input.Parsed["vpnSiteLinkName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "vpnSiteLinkName", input) + } + + return nil +} + +// ValidateVpnSiteLinkID checks that 'input' can be parsed as a Vpn Site Link ID +func ValidateVpnSiteLinkID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseVpnSiteLinkID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Vpn Site Link ID +func (id VpnSiteLinkId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/vpnSites/%s/vpnSiteLinks/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.VpnSiteName, id.VpnSiteLinkName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Vpn Site Link ID +func (id VpnSiteLinkId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), + resourceids.StaticSegment("staticVpnSiteLinks", "vpnSiteLinks", "vpnSiteLinks"), + resourceids.UserSpecifiedSegment("vpnSiteLinkName", "vpnSiteLinkName"), + } +} + +// String returns a human-readable description of this Vpn Site Link ID +func (id VpnSiteLinkId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Vpn Site Name: %q", id.VpnSiteName), + fmt.Sprintf("Vpn Site Link Name: %q", id.VpnSiteLinkName), + } + return fmt.Sprintf("Vpn Site Link (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupscreateorupdate.go new file mode 100644 index 000000000000..391d34a222ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationPolicyGroupsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfigurationPolicyGroup +} + +// ConfigurationPolicyGroupsCreateOrUpdate ... +func (c VirtualWANsClient) ConfigurationPolicyGroupsCreateOrUpdate(ctx context.Context, id ConfigurationPolicyGroupId, input VpnServerConfigurationPolicyGroup) (result ConfigurationPolicyGroupsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ConfigurationPolicyGroupsCreateOrUpdateThenPoll performs ConfigurationPolicyGroupsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) ConfigurationPolicyGroupsCreateOrUpdateThenPoll(ctx context.Context, id ConfigurationPolicyGroupId, input VpnServerConfigurationPolicyGroup) error { + result, err := c.ConfigurationPolicyGroupsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ConfigurationPolicyGroupsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ConfigurationPolicyGroupsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsdelete.go new file mode 100644 index 000000000000..faabc47e666a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationPolicyGroupsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// ConfigurationPolicyGroupsDelete ... +func (c VirtualWANsClient) ConfigurationPolicyGroupsDelete(ctx context.Context, id ConfigurationPolicyGroupId) (result ConfigurationPolicyGroupsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ConfigurationPolicyGroupsDeleteThenPoll performs ConfigurationPolicyGroupsDelete then polls until it's completed +func (c VirtualWANsClient) ConfigurationPolicyGroupsDeleteThenPoll(ctx context.Context, id ConfigurationPolicyGroupId) error { + result, err := c.ConfigurationPolicyGroupsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing ConfigurationPolicyGroupsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ConfigurationPolicyGroupsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsget.go new file mode 100644 index 000000000000..d8feaa4f23ab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationPolicyGroupsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfigurationPolicyGroup +} + +// ConfigurationPolicyGroupsGet ... +func (c VirtualWANsClient) ConfigurationPolicyGroupsGet(ctx context.Context, id ConfigurationPolicyGroupId) (result ConfigurationPolicyGroupsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnServerConfigurationPolicyGroup + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go new file mode 100644 index 000000000000..d8055521e535 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_configurationpolicygroupslistbyvpnserverconfiguration.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConfigurationPolicyGroupsListByVpnServerConfigurationOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnServerConfigurationPolicyGroup +} + +type ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnServerConfigurationPolicyGroup +} + +type ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ConfigurationPolicyGroupsListByVpnServerConfiguration ... +func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx context.Context, id VpnServerConfigurationId) (result ConfigurationPolicyGroupsListByVpnServerConfigurationOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ConfigurationPolicyGroupsListByVpnServerConfigurationCustomPager{}, + Path: fmt.Sprintf("%s/configurationPolicyGroups", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnServerConfigurationPolicyGroup `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ConfigurationPolicyGroupsListByVpnServerConfigurationComplete retrieves all the results into a single object +func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfigurationComplete(ctx context.Context, id VpnServerConfigurationId) (ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult, error) { + return c.ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteMatchingPredicate(ctx, id, VpnServerConfigurationPolicyGroupOperationPredicate{}) +} + +// ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteMatchingPredicate(ctx context.Context, id VpnServerConfigurationId, predicate VpnServerConfigurationPolicyGroupOperationPredicate) (result ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult, err error) { + items := make([]VpnServerConfigurationPolicyGroup, 0) + + resp, err := c.ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ConfigurationPolicyGroupsListByVpnServerConfigurationCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_generatevirtualwanvpnserverconfigurationvpnprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_generatevirtualwanvpnserverconfigurationvpnprofile.go new file mode 100644 index 000000000000..aed56fdab187 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_generatevirtualwanvpnserverconfigurationvpnprofile.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GeneratevirtualwanvpnserverconfigurationvpnprofileOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnProfileResponse +} + +// Generatevirtualwanvpnserverconfigurationvpnprofile ... +func (c VirtualWANsClient) Generatevirtualwanvpnserverconfigurationvpnprofile(ctx context.Context, id VirtualWANId, input VirtualWanVpnProfileParameters) (result GeneratevirtualwanvpnserverconfigurationvpnprofileOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/generateVpnProfile", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// GeneratevirtualwanvpnserverconfigurationvpnprofileThenPoll performs Generatevirtualwanvpnserverconfigurationvpnprofile then polls until it's completed +func (c VirtualWANsClient) GeneratevirtualwanvpnserverconfigurationvpnprofileThenPoll(ctx context.Context, id VirtualWANId, input VirtualWanVpnProfileParameters) error { + result, err := c.Generatevirtualwanvpnserverconfigurationvpnprofile(ctx, id, input) + if err != nil { + return fmt.Errorf("performing Generatevirtualwanvpnserverconfigurationvpnprofile: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Generatevirtualwanvpnserverconfigurationvpnprofile: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablescreateorupdate.go new file mode 100644 index 000000000000..58545e66cc27 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablescreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTablesCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *HubRouteTable +} + +// HubRouteTablesCreateOrUpdate ... +func (c VirtualWANsClient) HubRouteTablesCreateOrUpdate(ctx context.Context, id HubRouteTableId, input HubRouteTable) (result HubRouteTablesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HubRouteTablesCreateOrUpdateThenPoll performs HubRouteTablesCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) HubRouteTablesCreateOrUpdateThenPoll(ctx context.Context, id HubRouteTableId, input HubRouteTable) error { + result, err := c.HubRouteTablesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing HubRouteTablesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HubRouteTablesCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesdelete.go new file mode 100644 index 000000000000..e51f251c7149 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTablesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// HubRouteTablesDelete ... +func (c VirtualWANsClient) HubRouteTablesDelete(ctx context.Context, id HubRouteTableId) (result HubRouteTablesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HubRouteTablesDeleteThenPoll performs HubRouteTablesDelete then polls until it's completed +func (c VirtualWANsClient) HubRouteTablesDeleteThenPoll(ctx context.Context, id HubRouteTableId) error { + result, err := c.HubRouteTablesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing HubRouteTablesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HubRouteTablesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesget.go new file mode 100644 index 000000000000..e714731e2bf1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetablesget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTablesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HubRouteTable +} + +// HubRouteTablesGet ... +func (c VirtualWANsClient) HubRouteTablesGet(ctx context.Context, id HubRouteTableId) (result HubRouteTablesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HubRouteTable + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetableslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetableslist.go new file mode 100644 index 000000000000..d36631c9289c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubroutetableslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTablesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HubRouteTable +} + +type HubRouteTablesListCompleteResult struct { + LatestHttpResponse *http.Response + Items []HubRouteTable +} + +type HubRouteTablesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubRouteTablesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// HubRouteTablesList ... +func (c VirtualWANsClient) HubRouteTablesList(ctx context.Context, id VirtualHubId) (result HubRouteTablesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &HubRouteTablesListCustomPager{}, + Path: fmt.Sprintf("%s/hubRouteTables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HubRouteTable `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// HubRouteTablesListComplete retrieves all the results into a single object +func (c VirtualWANsClient) HubRouteTablesListComplete(ctx context.Context, id VirtualHubId) (HubRouteTablesListCompleteResult, error) { + return c.HubRouteTablesListCompleteMatchingPredicate(ctx, id, HubRouteTableOperationPredicate{}) +} + +// HubRouteTablesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) HubRouteTablesListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate HubRouteTableOperationPredicate) (result HubRouteTablesListCompleteResult, err error) { + items := make([]HubRouteTable, 0) + + resp, err := c.HubRouteTablesList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = HubRouteTablesListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionscreateorupdate.go new file mode 100644 index 000000000000..4353d1898c91 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *HubVirtualNetworkConnection +} + +// HubVirtualNetworkConnectionsCreateOrUpdate ... +func (c VirtualWANsClient) HubVirtualNetworkConnectionsCreateOrUpdate(ctx context.Context, id HubVirtualNetworkConnectionId, input HubVirtualNetworkConnection) (result HubVirtualNetworkConnectionsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HubVirtualNetworkConnectionsCreateOrUpdateThenPoll performs HubVirtualNetworkConnectionsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) HubVirtualNetworkConnectionsCreateOrUpdateThenPoll(ctx context.Context, id HubVirtualNetworkConnectionId, input HubVirtualNetworkConnection) error { + result, err := c.HubVirtualNetworkConnectionsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing HubVirtualNetworkConnectionsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HubVirtualNetworkConnectionsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsdelete.go new file mode 100644 index 000000000000..d26ec8f61b84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// HubVirtualNetworkConnectionsDelete ... +func (c VirtualWANsClient) HubVirtualNetworkConnectionsDelete(ctx context.Context, id HubVirtualNetworkConnectionId) (result HubVirtualNetworkConnectionsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// HubVirtualNetworkConnectionsDeleteThenPoll performs HubVirtualNetworkConnectionsDelete then polls until it's completed +func (c VirtualWANsClient) HubVirtualNetworkConnectionsDeleteThenPoll(ctx context.Context, id HubVirtualNetworkConnectionId) error { + result, err := c.HubVirtualNetworkConnectionsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing HubVirtualNetworkConnectionsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after HubVirtualNetworkConnectionsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsget.go new file mode 100644 index 000000000000..f08f465d3c19 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HubVirtualNetworkConnection +} + +// HubVirtualNetworkConnectionsGet ... +func (c VirtualWANsClient) HubVirtualNetworkConnectionsGet(ctx context.Context, id HubVirtualNetworkConnectionId) (result HubVirtualNetworkConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HubVirtualNetworkConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionslist.go new file mode 100644 index 000000000000..9ba166e19d8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_hubvirtualnetworkconnectionslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HubVirtualNetworkConnection +} + +type HubVirtualNetworkConnectionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []HubVirtualNetworkConnection +} + +type HubVirtualNetworkConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *HubVirtualNetworkConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// HubVirtualNetworkConnectionsList ... +func (c VirtualWANsClient) HubVirtualNetworkConnectionsList(ctx context.Context, id VirtualHubId) (result HubVirtualNetworkConnectionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &HubVirtualNetworkConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/hubVirtualNetworkConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HubVirtualNetworkConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// HubVirtualNetworkConnectionsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) HubVirtualNetworkConnectionsListComplete(ctx context.Context, id VirtualHubId) (HubVirtualNetworkConnectionsListCompleteResult, error) { + return c.HubVirtualNetworkConnectionsListCompleteMatchingPredicate(ctx, id, HubVirtualNetworkConnectionOperationPredicate{}) +} + +// HubVirtualNetworkConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) HubVirtualNetworkConnectionsListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate HubVirtualNetworkConnectionOperationPredicate) (result HubVirtualNetworkConnectionsListCompleteResult, err error) { + items := make([]HubVirtualNetworkConnection, 0) + + resp, err := c.HubVirtualNetworkConnectionsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = HubVirtualNetworkConnectionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulescreateorupdate.go new file mode 100644 index 000000000000..168ea42291c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulescreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulesCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnGatewayNatRule +} + +// NatRulesCreateOrUpdate ... +func (c VirtualWANsClient) NatRulesCreateOrUpdate(ctx context.Context, id NatRuleId, input VpnGatewayNatRule) (result NatRulesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NatRulesCreateOrUpdateThenPoll performs NatRulesCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) NatRulesCreateOrUpdateThenPoll(ctx context.Context, id NatRuleId, input VpnGatewayNatRule) error { + result, err := c.NatRulesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing NatRulesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NatRulesCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesdelete.go new file mode 100644 index 000000000000..6908f8fa7a24 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// NatRulesDelete ... +func (c VirtualWANsClient) NatRulesDelete(ctx context.Context, id NatRuleId) (result NatRulesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NatRulesDeleteThenPoll performs NatRulesDelete then polls until it's completed +func (c VirtualWANsClient) NatRulesDeleteThenPoll(ctx context.Context, id NatRuleId) error { + result, err := c.NatRulesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing NatRulesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NatRulesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesget.go new file mode 100644 index 000000000000..c81f0b6e89a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natrulesget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnGatewayNatRule +} + +// NatRulesGet ... +func (c VirtualWANsClient) NatRulesGet(ctx context.Context, id NatRuleId) (result NatRulesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnGatewayNatRule + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natruleslistbyvpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natruleslistbyvpngateway.go new file mode 100644 index 000000000000..e5393de1385a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_natruleslistbyvpngateway.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulesListByVpnGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnGatewayNatRule +} + +type NatRulesListByVpnGatewayCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnGatewayNatRule +} + +type NatRulesListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NatRulesListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// NatRulesListByVpnGateway ... +func (c VirtualWANsClient) NatRulesListByVpnGateway(ctx context.Context, id VpnGatewayId) (result NatRulesListByVpnGatewayOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &NatRulesListByVpnGatewayCustomPager{}, + Path: fmt.Sprintf("%s/natRules", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnGatewayNatRule `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// NatRulesListByVpnGatewayComplete retrieves all the results into a single object +func (c VirtualWANsClient) NatRulesListByVpnGatewayComplete(ctx context.Context, id VpnGatewayId) (NatRulesListByVpnGatewayCompleteResult, error) { + return c.NatRulesListByVpnGatewayCompleteMatchingPredicate(ctx, id, VpnGatewayNatRuleOperationPredicate{}) +} + +// NatRulesListByVpnGatewayCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) NatRulesListByVpnGatewayCompleteMatchingPredicate(ctx context.Context, id VpnGatewayId, predicate VpnGatewayNatRuleOperationPredicate) (result NatRulesListByVpnGatewayCompleteResult, err error) { + items := make([]VpnGatewayNatRule, 0) + + resp, err := c.NatRulesListByVpnGateway(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = NatRulesListByVpnGatewayCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionscreateorupdate.go new file mode 100644 index 000000000000..1bcdfbdee15e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *NetworkVirtualApplianceConnection +} + +// NetworkVirtualApplianceConnectionsCreateOrUpdate ... +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsCreateOrUpdate(ctx context.Context, id NetworkVirtualApplianceConnectionId, input NetworkVirtualApplianceConnection) (result NetworkVirtualApplianceConnectionsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NetworkVirtualApplianceConnectionsCreateOrUpdateThenPoll performs NetworkVirtualApplianceConnectionsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsCreateOrUpdateThenPoll(ctx context.Context, id NetworkVirtualApplianceConnectionId, input NetworkVirtualApplianceConnection) error { + result, err := c.NetworkVirtualApplianceConnectionsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing NetworkVirtualApplianceConnectionsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NetworkVirtualApplianceConnectionsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsdelete.go new file mode 100644 index 000000000000..38492cbbb119 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// NetworkVirtualApplianceConnectionsDelete ... +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsDelete(ctx context.Context, id NetworkVirtualApplianceConnectionId) (result NetworkVirtualApplianceConnectionsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// NetworkVirtualApplianceConnectionsDeleteThenPoll performs NetworkVirtualApplianceConnectionsDelete then polls until it's completed +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsDeleteThenPoll(ctx context.Context, id NetworkVirtualApplianceConnectionId) error { + result, err := c.NetworkVirtualApplianceConnectionsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing NetworkVirtualApplianceConnectionsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after NetworkVirtualApplianceConnectionsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsget.go new file mode 100644 index 000000000000..783b3251a6c0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *NetworkVirtualApplianceConnection +} + +// NetworkVirtualApplianceConnectionsGet ... +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsGet(ctx context.Context, id NetworkVirtualApplianceConnectionId) (result NetworkVirtualApplianceConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model NetworkVirtualApplianceConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionslist.go new file mode 100644 index 000000000000..72b22855ec41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_networkvirtualapplianceconnectionslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]NetworkVirtualApplianceConnection +} + +type NetworkVirtualApplianceConnectionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []NetworkVirtualApplianceConnection +} + +type NetworkVirtualApplianceConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *NetworkVirtualApplianceConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// NetworkVirtualApplianceConnectionsList ... +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsList(ctx context.Context, id NetworkVirtualApplianceId) (result NetworkVirtualApplianceConnectionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &NetworkVirtualApplianceConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/networkVirtualApplianceConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]NetworkVirtualApplianceConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// NetworkVirtualApplianceConnectionsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsListComplete(ctx context.Context, id NetworkVirtualApplianceId) (NetworkVirtualApplianceConnectionsListCompleteResult, error) { + return c.NetworkVirtualApplianceConnectionsListCompleteMatchingPredicate(ctx, id, NetworkVirtualApplianceConnectionOperationPredicate{}) +} + +// NetworkVirtualApplianceConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsListCompleteMatchingPredicate(ctx context.Context, id NetworkVirtualApplianceId, predicate NetworkVirtualApplianceConnectionOperationPredicate) (result NetworkVirtualApplianceConnectionsListCompleteResult, err error) { + items := make([]NetworkVirtualApplianceConnection, 0) + + resp, err := c.NetworkVirtualApplianceConnectionsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = NetworkVirtualApplianceConnectionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayscreateorupdate.go new file mode 100644 index 000000000000..664698b3088f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayscreateorupdate.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *P2SVpnGateway +} + +// P2sVpnGatewaysCreateOrUpdate ... +func (c VirtualWANsClient) P2sVpnGatewaysCreateOrUpdate(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId, input P2SVpnGateway) (result P2sVpnGatewaysCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// P2sVpnGatewaysCreateOrUpdateThenPoll performs P2sVpnGatewaysCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) P2sVpnGatewaysCreateOrUpdateThenPoll(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId, input P2SVpnGateway) error { + result, err := c.P2sVpnGatewaysCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing P2sVpnGatewaysCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after P2sVpnGatewaysCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysdelete.go new file mode 100644 index 000000000000..23ae30eaecd8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysdelete.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// P2sVpnGatewaysDelete ... +func (c VirtualWANsClient) P2sVpnGatewaysDelete(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId) (result P2sVpnGatewaysDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// P2sVpnGatewaysDeleteThenPoll performs P2sVpnGatewaysDelete then polls until it's completed +func (c VirtualWANsClient) P2sVpnGatewaysDeleteThenPoll(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId) error { + result, err := c.P2sVpnGatewaysDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing P2sVpnGatewaysDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after P2sVpnGatewaysDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysget.go new file mode 100644 index 000000000000..ec7e18c347ef --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewaysget.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *P2SVpnGateway +} + +// P2sVpnGatewaysGet ... +func (c VirtualWANsClient) P2sVpnGatewaysGet(ctx context.Context, id commonids.VirtualWANP2SVPNGatewayId) (result P2sVpnGatewaysGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model P2SVpnGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslist.go new file mode 100644 index 000000000000..b51053de49e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]P2SVpnGateway +} + +type P2sVpnGatewaysListCompleteResult struct { + LatestHttpResponse *http.Response + Items []P2SVpnGateway +} + +type P2sVpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// P2sVpnGatewaysList ... +func (c VirtualWANsClient) P2sVpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result P2sVpnGatewaysListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]P2SVpnGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// P2sVpnGatewaysListComplete retrieves all the results into a single object +func (c VirtualWANsClient) P2sVpnGatewaysListComplete(ctx context.Context, id commonids.SubscriptionId) (P2sVpnGatewaysListCompleteResult, error) { + return c.P2sVpnGatewaysListCompleteMatchingPredicate(ctx, id, P2SVpnGatewayOperationPredicate{}) +} + +// P2sVpnGatewaysListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) P2sVpnGatewaysListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate P2SVpnGatewayOperationPredicate) (result P2sVpnGatewaysListCompleteResult, err error) { + items := make([]P2SVpnGateway, 0) + + resp, err := c.P2sVpnGatewaysList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = P2sVpnGatewaysListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go new file mode 100644 index 000000000000..1c57fc684fa1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_p2svpngatewayslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2sVpnGatewaysListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]P2SVpnGateway +} + +type P2sVpnGatewaysListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []P2SVpnGateway +} + +type P2sVpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *P2sVpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// P2sVpnGatewaysListByResourceGroup ... +func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result P2sVpnGatewaysListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &P2sVpnGatewaysListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/p2sVpnGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]P2SVpnGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// P2sVpnGatewaysListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (P2sVpnGatewaysListByResourceGroupCompleteResult, error) { + return c.P2sVpnGatewaysListByResourceGroupCompleteMatchingPredicate(ctx, id, P2SVpnGatewayOperationPredicate{}) +} + +// P2sVpnGatewaysListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) P2sVpnGatewaysListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate P2SVpnGatewayOperationPredicate) (result P2sVpnGatewaysListByResourceGroupCompleteResult, err error) { + items := make([]P2SVpnGateway, 0) + + resp, err := c.P2sVpnGatewaysListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = P2sVpnGatewaysListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapscreateorupdate.go new file mode 100644 index 000000000000..ffcf789da292 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *RouteMap +} + +// RouteMapsCreateOrUpdate ... +func (c VirtualWANsClient) RouteMapsCreateOrUpdate(ctx context.Context, id RouteMapId, input RouteMap) (result RouteMapsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RouteMapsCreateOrUpdateThenPoll performs RouteMapsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) RouteMapsCreateOrUpdateThenPoll(ctx context.Context, id RouteMapId, input RouteMap) error { + result, err := c.RouteMapsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RouteMapsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RouteMapsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsdelete.go new file mode 100644 index 000000000000..f89977d5d946 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RouteMapsDelete ... +func (c VirtualWANsClient) RouteMapsDelete(ctx context.Context, id RouteMapId) (result RouteMapsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RouteMapsDeleteThenPoll performs RouteMapsDelete then polls until it's completed +func (c VirtualWANsClient) RouteMapsDeleteThenPoll(ctx context.Context, id RouteMapId) error { + result, err := c.RouteMapsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing RouteMapsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RouteMapsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsget.go new file mode 100644 index 000000000000..c1db2c3033aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RouteMap +} + +// RouteMapsGet ... +func (c VirtualWANsClient) RouteMapsGet(ctx context.Context, id RouteMapId) (result RouteMapsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RouteMap + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapslist.go new file mode 100644 index 000000000000..a9eddc11d95f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routemapslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RouteMap +} + +type RouteMapsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RouteMap +} + +type RouteMapsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RouteMapsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// RouteMapsList ... +func (c VirtualWANsClient) RouteMapsList(ctx context.Context, id VirtualHubId) (result RouteMapsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &RouteMapsListCustomPager{}, + Path: fmt.Sprintf("%s/routeMaps", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RouteMap `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// RouteMapsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) RouteMapsListComplete(ctx context.Context, id VirtualHubId) (RouteMapsListCompleteResult, error) { + return c.RouteMapsListCompleteMatchingPredicate(ctx, id, RouteMapOperationPredicate{}) +} + +// RouteMapsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) RouteMapsListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate RouteMapOperationPredicate) (result RouteMapsListCompleteResult, err error) { + items := make([]RouteMap, 0) + + resp, err := c.RouteMapsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = RouteMapsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentcreateorupdate.go new file mode 100644 index 000000000000..58de76624353 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentcreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *RoutingIntent +} + +// RoutingIntentCreateOrUpdate ... +func (c VirtualWANsClient) RoutingIntentCreateOrUpdate(ctx context.Context, id RoutingIntentId, input RoutingIntent) (result RoutingIntentCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RoutingIntentCreateOrUpdateThenPoll performs RoutingIntentCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) RoutingIntentCreateOrUpdateThenPoll(ctx context.Context, id RoutingIntentId, input RoutingIntent) error { + result, err := c.RoutingIntentCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing RoutingIntentCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RoutingIntentCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentdelete.go new file mode 100644 index 000000000000..dd481f41454c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// RoutingIntentDelete ... +func (c VirtualWANsClient) RoutingIntentDelete(ctx context.Context, id RoutingIntentId) (result RoutingIntentDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// RoutingIntentDeleteThenPoll performs RoutingIntentDelete then polls until it's completed +func (c VirtualWANsClient) RoutingIntentDeleteThenPoll(ctx context.Context, id RoutingIntentId) error { + result, err := c.RoutingIntentDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing RoutingIntentDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after RoutingIntentDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentget.go new file mode 100644 index 000000000000..fea07e77795f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *RoutingIntent +} + +// RoutingIntentGet ... +func (c VirtualWANsClient) RoutingIntentGet(ctx context.Context, id RoutingIntentId) (result RoutingIntentGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model RoutingIntent + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentlist.go new file mode 100644 index 000000000000..b3edd99b5193 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_routingintentlist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]RoutingIntent +} + +type RoutingIntentListCompleteResult struct { + LatestHttpResponse *http.Response + Items []RoutingIntent +} + +type RoutingIntentListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *RoutingIntentListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// RoutingIntentList ... +func (c VirtualWANsClient) RoutingIntentList(ctx context.Context, id VirtualHubId) (result RoutingIntentListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &RoutingIntentListCustomPager{}, + Path: fmt.Sprintf("%s/routingIntent", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]RoutingIntent `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// RoutingIntentListComplete retrieves all the results into a single object +func (c VirtualWANsClient) RoutingIntentListComplete(ctx context.Context, id VirtualHubId) (RoutingIntentListCompleteResult, error) { + return c.RoutingIntentListCompleteMatchingPredicate(ctx, id, RoutingIntentOperationPredicate{}) +} + +// RoutingIntentListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) RoutingIntentListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate RoutingIntentOperationPredicate) (result RoutingIntentListCompleteResult, err error) { + items := make([]RoutingIntent, 0) + + resp, err := c.RoutingIntentList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = RoutingIntentListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_supportedsecurityproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_supportedsecurityproviders.go new file mode 100644 index 000000000000..3351ee7549f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_supportedsecurityproviders.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SupportedSecurityProvidersOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualWanSecurityProviders +} + +// SupportedSecurityProviders ... +func (c VirtualWANsClient) SupportedSecurityProviders(ctx context.Context, id VirtualWANId) (result SupportedSecurityProvidersOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/supportedSecurityProviders", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualWanSecurityProviders + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_updatetags.go new file mode 100644 index 000000000000..42f292d4aeab --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_updatetags.go @@ -0,0 +1,57 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type UpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualWAN +} + +// UpdateTags ... +func (c VirtualWANsClient) UpdateTags(ctx context.Context, id VirtualWANId, input TagsObject) (result UpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualWAN + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectioncreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectioncreateorupdate.go new file mode 100644 index 000000000000..3a42d5bcafd0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectioncreateorupdate.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *BgpConnection +} + +// VirtualHubBgpConnectionCreateOrUpdate ... +func (c VirtualWANsClient) VirtualHubBgpConnectionCreateOrUpdate(ctx context.Context, id commonids.VirtualHubBGPConnectionId, input BgpConnection) (result VirtualHubBgpConnectionCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubBgpConnectionCreateOrUpdateThenPoll performs VirtualHubBgpConnectionCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx context.Context, id commonids.VirtualHubBGPConnectionId, input BgpConnection) error { + result, err := c.VirtualHubBgpConnectionCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubBgpConnectionCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubBgpConnectionCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectiondelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectiondelete.go new file mode 100644 index 000000000000..b8f353d5be6d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectiondelete.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualHubBgpConnectionDelete ... +func (c VirtualWANsClient) VirtualHubBgpConnectionDelete(ctx context.Context, id commonids.VirtualHubBGPConnectionId) (result VirtualHubBgpConnectionDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubBgpConnectionDeleteThenPoll performs VirtualHubBgpConnectionDelete then polls until it's completed +func (c VirtualWANsClient) VirtualHubBgpConnectionDeleteThenPoll(ctx context.Context, id commonids.VirtualHubBGPConnectionId) error { + result, err := c.VirtualHubBgpConnectionDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubBgpConnectionDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubBgpConnectionDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionget.go new file mode 100644 index 000000000000..e4d4c41773aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionget.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *BgpConnection +} + +// VirtualHubBgpConnectionGet ... +func (c VirtualWANsClient) VirtualHubBgpConnectionGet(ctx context.Context, id commonids.VirtualHubBGPConnectionId) (result VirtualHubBgpConnectionGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model BgpConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslist.go new file mode 100644 index 000000000000..802bf0b65b93 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]BgpConnection +} + +type VirtualHubBgpConnectionsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []BgpConnection +} + +type VirtualHubBgpConnectionsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubBgpConnectionsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubBgpConnectionsList ... +func (c VirtualWANsClient) VirtualHubBgpConnectionsList(ctx context.Context, id VirtualHubId) (result VirtualHubBgpConnectionsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubBgpConnectionsListCustomPager{}, + Path: fmt.Sprintf("%s/bgpConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]BgpConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubBgpConnectionsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubBgpConnectionsListComplete(ctx context.Context, id VirtualHubId) (VirtualHubBgpConnectionsListCompleteResult, error) { + return c.VirtualHubBgpConnectionsListCompleteMatchingPredicate(ctx, id, BgpConnectionOperationPredicate{}) +} + +// VirtualHubBgpConnectionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubBgpConnectionsListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate BgpConnectionOperationPredicate) (result VirtualHubBgpConnectionsListCompleteResult, err error) { + items := make([]BgpConnection, 0) + + resp, err := c.VirtualHubBgpConnectionsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubBgpConnectionsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistadvertisedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistadvertisedroutes.go new file mode 100644 index 000000000000..6c0c2308e2b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistadvertisedroutes.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionsListAdvertisedRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *map[string][]PeerRoute +} + +// VirtualHubBgpConnectionsListAdvertisedRoutes ... +func (c VirtualWANsClient) VirtualHubBgpConnectionsListAdvertisedRoutes(ctx context.Context, id commonids.VirtualHubBGPConnectionId) (result VirtualHubBgpConnectionsListAdvertisedRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/advertisedRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll performs VirtualHubBgpConnectionsListAdvertisedRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx context.Context, id commonids.VirtualHubBGPConnectionId) error { + result, err := c.VirtualHubBgpConnectionsListAdvertisedRoutes(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubBgpConnectionsListAdvertisedRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubBgpConnectionsListAdvertisedRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistlearnedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistlearnedroutes.go new file mode 100644 index 000000000000..4c6842802ef8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubbgpconnectionslistlearnedroutes.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubBgpConnectionsListLearnedRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *map[string][]PeerRoute +} + +// VirtualHubBgpConnectionsListLearnedRoutes ... +func (c VirtualWANsClient) VirtualHubBgpConnectionsListLearnedRoutes(ctx context.Context, id commonids.VirtualHubBGPConnectionId) (result VirtualHubBgpConnectionsListLearnedRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/learnedRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubBgpConnectionsListLearnedRoutesThenPoll performs VirtualHubBgpConnectionsListLearnedRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx context.Context, id commonids.VirtualHubBGPConnectionId) error { + result, err := c.VirtualHubBgpConnectionsListLearnedRoutes(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubBgpConnectionsListLearnedRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubBgpConnectionsListLearnedRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationcreateorupdate.go new file mode 100644 index 000000000000..dfb4925ba517 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationcreateorupdate.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubIPConfigurationCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *HubIPConfiguration +} + +// VirtualHubIPConfigurationCreateOrUpdate ... +func (c VirtualWANsClient) VirtualHubIPConfigurationCreateOrUpdate(ctx context.Context, id commonids.VirtualHubIPConfigurationId, input HubIPConfiguration) (result VirtualHubIPConfigurationCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubIPConfigurationCreateOrUpdateThenPoll performs VirtualHubIPConfigurationCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx context.Context, id commonids.VirtualHubIPConfigurationId, input HubIPConfiguration) error { + result, err := c.VirtualHubIPConfigurationCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubIPConfigurationCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubIPConfigurationCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationdelete.go new file mode 100644 index 000000000000..36341aa33f78 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationdelete.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubIPConfigurationDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualHubIPConfigurationDelete ... +func (c VirtualWANsClient) VirtualHubIPConfigurationDelete(ctx context.Context, id commonids.VirtualHubIPConfigurationId) (result VirtualHubIPConfigurationDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubIPConfigurationDeleteThenPoll performs VirtualHubIPConfigurationDelete then polls until it's completed +func (c VirtualWANsClient) VirtualHubIPConfigurationDeleteThenPoll(ctx context.Context, id commonids.VirtualHubIPConfigurationId) error { + result, err := c.VirtualHubIPConfigurationDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubIPConfigurationDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubIPConfigurationDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationget.go new file mode 100644 index 000000000000..c4abe2347849 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationget.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubIPConfigurationGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *HubIPConfiguration +} + +// VirtualHubIPConfigurationGet ... +func (c VirtualWANsClient) VirtualHubIPConfigurationGet(ctx context.Context, id commonids.VirtualHubIPConfigurationId) (result VirtualHubIPConfigurationGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model HubIPConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationlist.go new file mode 100644 index 000000000000..8ae13b9fb7d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubipconfigurationlist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubIPConfigurationListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]HubIPConfiguration +} + +type VirtualHubIPConfigurationListCompleteResult struct { + LatestHttpResponse *http.Response + Items []HubIPConfiguration +} + +type VirtualHubIPConfigurationListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubIPConfigurationListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubIPConfigurationList ... +func (c VirtualWANsClient) VirtualHubIPConfigurationList(ctx context.Context, id VirtualHubId) (result VirtualHubIPConfigurationListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubIPConfigurationListCustomPager{}, + Path: fmt.Sprintf("%s/ipConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]HubIPConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubIPConfigurationListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubIPConfigurationListComplete(ctx context.Context, id VirtualHubId) (VirtualHubIPConfigurationListCompleteResult, error) { + return c.VirtualHubIPConfigurationListCompleteMatchingPredicate(ctx, id, HubIPConfigurationOperationPredicate{}) +} + +// VirtualHubIPConfigurationListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubIPConfigurationListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate HubIPConfigurationOperationPredicate) (result VirtualHubIPConfigurationListCompleteResult, err error) { + items := make([]HubIPConfiguration, 0) + + resp, err := c.VirtualHubIPConfigurationList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubIPConfigurationListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2screateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2screateorupdate.go new file mode 100644 index 000000000000..b7e92feb6c7f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2screateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2sCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHubRouteTableV2 +} + +// VirtualHubRouteTableV2sCreateOrUpdate ... +func (c VirtualWANsClient) VirtualHubRouteTableV2sCreateOrUpdate(ctx context.Context, id VirtualHubRouteTableId, input VirtualHubRouteTableV2) (result VirtualHubRouteTableV2sCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubRouteTableV2sCreateOrUpdateThenPoll performs VirtualHubRouteTableV2sCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualHubRouteTableV2sCreateOrUpdateThenPoll(ctx context.Context, id VirtualHubRouteTableId, input VirtualHubRouteTableV2) error { + result, err := c.VirtualHubRouteTableV2sCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubRouteTableV2sCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubRouteTableV2sCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sdelete.go new file mode 100644 index 000000000000..91cc7babd282 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2sDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualHubRouteTableV2sDelete ... +func (c VirtualWANsClient) VirtualHubRouteTableV2sDelete(ctx context.Context, id VirtualHubRouteTableId) (result VirtualHubRouteTableV2sDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubRouteTableV2sDeleteThenPoll performs VirtualHubRouteTableV2sDelete then polls until it's completed +func (c VirtualWANsClient) VirtualHubRouteTableV2sDeleteThenPoll(ctx context.Context, id VirtualHubRouteTableId) error { + result, err := c.VirtualHubRouteTableV2sDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubRouteTableV2sDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubRouteTableV2sDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sget.go new file mode 100644 index 000000000000..0d274e1355a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2sget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2sGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHubRouteTableV2 +} + +// VirtualHubRouteTableV2sGet ... +func (c VirtualWANsClient) VirtualHubRouteTableV2sGet(ctx context.Context, id VirtualHubRouteTableId) (result VirtualHubRouteTableV2sGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualHubRouteTableV2 + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2slist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2slist.go new file mode 100644 index 000000000000..cf9c9ef61a36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubroutetablev2slist.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2sListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualHubRouteTableV2 +} + +type VirtualHubRouteTableV2sListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualHubRouteTableV2 +} + +type VirtualHubRouteTableV2sListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubRouteTableV2sListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubRouteTableV2sList ... +func (c VirtualWANsClient) VirtualHubRouteTableV2sList(ctx context.Context, id VirtualHubId) (result VirtualHubRouteTableV2sListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubRouteTableV2sListCustomPager{}, + Path: fmt.Sprintf("%s/routeTables", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualHubRouteTableV2 `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubRouteTableV2sListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubRouteTableV2sListComplete(ctx context.Context, id VirtualHubId) (VirtualHubRouteTableV2sListCompleteResult, error) { + return c.VirtualHubRouteTableV2sListCompleteMatchingPredicate(ctx, id, VirtualHubRouteTableV2OperationPredicate{}) +} + +// VirtualHubRouteTableV2sListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubRouteTableV2sListCompleteMatchingPredicate(ctx context.Context, id VirtualHubId, predicate VirtualHubRouteTableV2OperationPredicate) (result VirtualHubRouteTableV2sListCompleteResult, err error) { + items := make([]VirtualHubRouteTableV2, 0) + + resp, err := c.VirtualHubRouteTableV2sList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubRouteTableV2sListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubscreateorupdate.go new file mode 100644 index 000000000000..6b78901c93c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHub +} + +// VirtualHubsCreateOrUpdate ... +func (c VirtualWANsClient) VirtualHubsCreateOrUpdate(ctx context.Context, id VirtualHubId, input VirtualHub) (result VirtualHubsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsCreateOrUpdateThenPoll performs VirtualHubsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualHubsCreateOrUpdateThenPoll(ctx context.Context, id VirtualHubId, input VirtualHub) error { + result, err := c.VirtualHubsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsdelete.go new file mode 100644 index 000000000000..70eebb0a3430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualHubsDelete ... +func (c VirtualWANsClient) VirtualHubsDelete(ctx context.Context, id VirtualHubId) (result VirtualHubsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsDeleteThenPoll performs VirtualHubsDelete then polls until it's completed +func (c VirtualWANsClient) VirtualHubsDeleteThenPoll(ctx context.Context, id VirtualHubId) error { + result, err := c.VirtualHubsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualHubsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsget.go new file mode 100644 index 000000000000..0b1bcbe8573f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHub +} + +// VirtualHubsGet ... +func (c VirtualWANsClient) VirtualHubsGet(ctx context.Context, id VirtualHubId) (result VirtualHubsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualHub + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgeteffectivevirtualhubroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgeteffectivevirtualhubroutes.go new file mode 100644 index 000000000000..1bbae403695d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgeteffectivevirtualhubroutes.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsGetEffectiveVirtualHubRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHubEffectiveRouteList +} + +// VirtualHubsGetEffectiveVirtualHubRoutes ... +func (c VirtualWANsClient) VirtualHubsGetEffectiveVirtualHubRoutes(ctx context.Context, id VirtualHubId, input EffectiveRoutesParameters) (result VirtualHubsGetEffectiveVirtualHubRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/effectiveRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsGetEffectiveVirtualHubRoutesThenPoll performs VirtualHubsGetEffectiveVirtualHubRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubsGetEffectiveVirtualHubRoutesThenPoll(ctx context.Context, id VirtualHubId, input EffectiveRoutesParameters) error { + result, err := c.VirtualHubsGetEffectiveVirtualHubRoutes(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubsGetEffectiveVirtualHubRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsGetEffectiveVirtualHubRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetinboundroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetinboundroutes.go new file mode 100644 index 000000000000..03114d0c238b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetinboundroutes.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsGetInboundRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *EffectiveRouteMapRouteList +} + +// VirtualHubsGetInboundRoutes ... +func (c VirtualWANsClient) VirtualHubsGetInboundRoutes(ctx context.Context, id VirtualHubId, input GetInboundRoutesParameters) (result VirtualHubsGetInboundRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/inboundRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsGetInboundRoutesThenPoll performs VirtualHubsGetInboundRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubsGetInboundRoutesThenPoll(ctx context.Context, id VirtualHubId, input GetInboundRoutesParameters) error { + result, err := c.VirtualHubsGetInboundRoutes(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubsGetInboundRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsGetInboundRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetoutboundroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetoutboundroutes.go new file mode 100644 index 000000000000..9a715f996132 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsgetoutboundroutes.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsGetOutboundRoutesOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *EffectiveRouteMapRouteList +} + +// VirtualHubsGetOutboundRoutes ... +func (c VirtualWANsClient) VirtualHubsGetOutboundRoutes(ctx context.Context, id VirtualHubId, input GetOutboundRoutesParameters) (result VirtualHubsGetOutboundRoutesOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/outboundRoutes", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualHubsGetOutboundRoutesThenPoll performs VirtualHubsGetOutboundRoutes then polls until it's completed +func (c VirtualWANsClient) VirtualHubsGetOutboundRoutesThenPoll(ctx context.Context, id VirtualHubId, input GetOutboundRoutesParameters) error { + result, err := c.VirtualHubsGetOutboundRoutes(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualHubsGetOutboundRoutes: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualHubsGetOutboundRoutes: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslist.go new file mode 100644 index 000000000000..d8fa38052338 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualHub +} + +type VirtualHubsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualHub +} + +type VirtualHubsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubsList ... +func (c VirtualWANsClient) VirtualHubsList(ctx context.Context, id commonids.SubscriptionId) (result VirtualHubsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualHub `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubsListComplete(ctx context.Context, id commonids.SubscriptionId) (VirtualHubsListCompleteResult, error) { + return c.VirtualHubsListCompleteMatchingPredicate(ctx, id, VirtualHubOperationPredicate{}) +} + +// VirtualHubsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualHubOperationPredicate) (result VirtualHubsListCompleteResult, err error) { + items := make([]VirtualHub, 0) + + resp, err := c.VirtualHubsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslistbyresourcegroup.go new file mode 100644 index 000000000000..9427d5420933 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualHub +} + +type VirtualHubsListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualHub +} + +type VirtualHubsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualHubsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualHubsListByResourceGroup ... +func (c VirtualWANsClient) VirtualHubsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualHubsListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualHubsListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualHubs", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualHub `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualHubsListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualHubsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VirtualHubsListByResourceGroupCompleteResult, error) { + return c.VirtualHubsListByResourceGroupCompleteMatchingPredicate(ctx, id, VirtualHubOperationPredicate{}) +} + +// VirtualHubsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualHubsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualHubOperationPredicate) (result VirtualHubsListByResourceGroupCompleteResult, err error) { + items := make([]VirtualHub, 0) + + resp, err := c.VirtualHubsListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualHubsListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsupdatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsupdatetags.go new file mode 100644 index 000000000000..23f6df527430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualhubsupdatetags.go @@ -0,0 +1,57 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubsUpdateTagsOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualHub +} + +// VirtualHubsUpdateTags ... +func (c VirtualWANsClient) VirtualHubsUpdateTags(ctx context.Context, id VirtualHubId, input TagsObject) (result VirtualHubsUpdateTagsOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPatch, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualHub + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanscreateorupdate.go new file mode 100644 index 000000000000..310b768e4e5e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VirtualWAN +} + +// VirtualWansCreateOrUpdate ... +func (c VirtualWANsClient) VirtualWansCreateOrUpdate(ctx context.Context, id VirtualWANId, input VirtualWAN) (result VirtualWansCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualWansCreateOrUpdateThenPoll performs VirtualWansCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VirtualWansCreateOrUpdateThenPoll(ctx context.Context, id VirtualWANId, input VirtualWAN) error { + result, err := c.VirtualWansCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VirtualWansCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualWansCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansdelete.go new file mode 100644 index 000000000000..4ce708a8eddd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VirtualWansDelete ... +func (c VirtualWANsClient) VirtualWansDelete(ctx context.Context, id VirtualWANId) (result VirtualWansDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VirtualWansDeleteThenPoll performs VirtualWansDelete then polls until it's completed +func (c VirtualWANsClient) VirtualWansDeleteThenPoll(ctx context.Context, id VirtualWANId) error { + result, err := c.VirtualWansDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VirtualWansDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VirtualWansDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansget.go new file mode 100644 index 000000000000..66d801a779aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwansget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VirtualWAN +} + +// VirtualWansGet ... +func (c VirtualWANsClient) VirtualWansGet(ctx context.Context, id VirtualWANId) (result VirtualWansGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VirtualWAN + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslist.go new file mode 100644 index 000000000000..8a8cb8514e3d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualWAN +} + +type VirtualWansListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualWAN +} + +type VirtualWansListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualWansList ... +func (c VirtualWANsClient) VirtualWansList(ctx context.Context, id commonids.SubscriptionId) (result VirtualWansListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualWansListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualWAN `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualWansListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualWansListComplete(ctx context.Context, id commonids.SubscriptionId) (VirtualWansListCompleteResult, error) { + return c.VirtualWansListCompleteMatchingPredicate(ctx, id, VirtualWANOperationPredicate{}) +} + +// VirtualWansListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualWansListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualWANOperationPredicate) (result VirtualWansListCompleteResult, err error) { + items := make([]VirtualWAN, 0) + + resp, err := c.VirtualWansList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualWansListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslistbyresourcegroup.go new file mode 100644 index 000000000000..24b02c202321 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_virtualwanslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWansListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VirtualWAN +} + +type VirtualWansListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VirtualWAN +} + +type VirtualWansListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VirtualWansListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VirtualWansListByResourceGroup ... +func (c VirtualWANsClient) VirtualWansListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VirtualWansListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VirtualWansListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/virtualWans", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VirtualWAN `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VirtualWansListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VirtualWansListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VirtualWansListByResourceGroupCompleteResult, error) { + return c.VirtualWansListByResourceGroupCompleteMatchingPredicate(ctx, id, VirtualWANOperationPredicate{}) +} + +// VirtualWansListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VirtualWansListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualWANOperationPredicate) (result VirtualWansListByResourceGroupCompleteResult, err error) { + items := make([]VirtualWAN, 0) + + resp, err := c.VirtualWansListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VirtualWansListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionscreateorupdate.go new file mode 100644 index 000000000000..58f8bec5b873 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionscreateorupdate.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnConnection +} + +// VpnConnectionsCreateOrUpdate ... +func (c VirtualWANsClient) VpnConnectionsCreateOrUpdate(ctx context.Context, id commonids.VPNConnectionId, input VpnConnection) (result VpnConnectionsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnConnectionsCreateOrUpdateThenPoll performs VpnConnectionsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VpnConnectionsCreateOrUpdateThenPoll(ctx context.Context, id commonids.VPNConnectionId, input VpnConnection) error { + result, err := c.VpnConnectionsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnConnectionsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnConnectionsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsdelete.go new file mode 100644 index 000000000000..121934900356 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsdelete.go @@ -0,0 +1,72 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnConnectionsDelete ... +func (c VirtualWANsClient) VpnConnectionsDelete(ctx context.Context, id commonids.VPNConnectionId) (result VpnConnectionsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnConnectionsDeleteThenPoll performs VpnConnectionsDelete then polls until it's completed +func (c VirtualWANsClient) VpnConnectionsDeleteThenPoll(ctx context.Context, id commonids.VPNConnectionId) error { + result, err := c.VpnConnectionsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnConnectionsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnConnectionsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsget.go new file mode 100644 index 000000000000..ca7d4d2a9b44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsget.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnConnection +} + +// VpnConnectionsGet ... +func (c VirtualWANsClient) VpnConnectionsGet(ctx context.Context, id commonids.VPNConnectionId) (result VpnConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionslistbyvpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionslistbyvpngateway.go new file mode 100644 index 000000000000..d1ed0d12708b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionslistbyvpngateway.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsListByVpnGatewayOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnConnection +} + +type VpnConnectionsListByVpnGatewayCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnConnection +} + +type VpnConnectionsListByVpnGatewayCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnConnectionsListByVpnGatewayCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnConnectionsListByVpnGateway ... +func (c VirtualWANsClient) VpnConnectionsListByVpnGateway(ctx context.Context, id VpnGatewayId) (result VpnConnectionsListByVpnGatewayOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnConnectionsListByVpnGatewayCustomPager{}, + Path: fmt.Sprintf("%s/vpnConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnConnectionsListByVpnGatewayComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnConnectionsListByVpnGatewayComplete(ctx context.Context, id VpnGatewayId) (VpnConnectionsListByVpnGatewayCompleteResult, error) { + return c.VpnConnectionsListByVpnGatewayCompleteMatchingPredicate(ctx, id, VpnConnectionOperationPredicate{}) +} + +// VpnConnectionsListByVpnGatewayCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnConnectionsListByVpnGatewayCompleteMatchingPredicate(ctx context.Context, id VpnGatewayId, predicate VpnConnectionOperationPredicate) (result VpnConnectionsListByVpnGatewayCompleteResult, err error) { + items := make([]VpnConnection, 0) + + resp, err := c.VpnConnectionsListByVpnGateway(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnConnectionsListByVpnGatewayCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstartpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstartpacketcapture.go new file mode 100644 index 000000000000..98551e48f98e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstartpacketcapture.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsStartPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// VpnConnectionsStartPacketCapture ... +func (c VirtualWANsClient) VpnConnectionsStartPacketCapture(ctx context.Context, id commonids.VPNConnectionId, input VpnConnectionPacketCaptureStartParameters) (result VpnConnectionsStartPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/startpacketcapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnConnectionsStartPacketCaptureThenPoll performs VpnConnectionsStartPacketCapture then polls until it's completed +func (c VirtualWANsClient) VpnConnectionsStartPacketCaptureThenPoll(ctx context.Context, id commonids.VPNConnectionId, input VpnConnectionPacketCaptureStartParameters) error { + result, err := c.VpnConnectionsStartPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnConnectionsStartPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnConnectionsStartPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstoppacketcapture.go new file mode 100644 index 000000000000..b32b88c69695 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnconnectionsstoppacketcapture.go @@ -0,0 +1,76 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionsStopPacketCaptureOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// VpnConnectionsStopPacketCapture ... +func (c VirtualWANsClient) VpnConnectionsStopPacketCapture(ctx context.Context, id commonids.VPNConnectionId, input VpnConnectionPacketCaptureStopParameters) (result VpnConnectionsStopPacketCaptureOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stoppacketcapture", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnConnectionsStopPacketCaptureThenPoll performs VpnConnectionsStopPacketCapture then polls until it's completed +func (c VirtualWANsClient) VpnConnectionsStopPacketCaptureThenPoll(ctx context.Context, id commonids.VPNConnectionId, input VpnConnectionPacketCaptureStopParameters) error { + result, err := c.VpnConnectionsStopPacketCapture(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnConnectionsStopPacketCapture: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnConnectionsStopPacketCapture: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayscreateorupdate.go new file mode 100644 index 000000000000..2cabc7eba199 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnGateway +} + +// VpnGatewaysCreateOrUpdate ... +func (c VirtualWANsClient) VpnGatewaysCreateOrUpdate(ctx context.Context, id VpnGatewayId, input VpnGateway) (result VpnGatewaysCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnGatewaysCreateOrUpdateThenPoll performs VpnGatewaysCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VpnGatewaysCreateOrUpdateThenPoll(ctx context.Context, id VpnGatewayId, input VpnGateway) error { + result, err := c.VpnGatewaysCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnGatewaysCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnGatewaysCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysdelete.go new file mode 100644 index 000000000000..76d02ba38d5d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnGatewaysDelete ... +func (c VirtualWANsClient) VpnGatewaysDelete(ctx context.Context, id VpnGatewayId) (result VpnGatewaysDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnGatewaysDeleteThenPoll performs VpnGatewaysDelete then polls until it's completed +func (c VirtualWANsClient) VpnGatewaysDeleteThenPoll(ctx context.Context, id VpnGatewayId) error { + result, err := c.VpnGatewaysDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnGatewaysDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnGatewaysDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysget.go new file mode 100644 index 000000000000..0793829ea759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewaysget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnGateway +} + +// VpnGatewaysGet ... +func (c VirtualWANsClient) VpnGatewaysGet(ctx context.Context, id VpnGatewayId) (result VpnGatewaysGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnGateway + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslist.go new file mode 100644 index 000000000000..d5ecf5c40ee2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnGateway +} + +type VpnGatewaysListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnGateway +} + +type VpnGatewaysListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnGatewaysList ... +func (c VirtualWANsClient) VpnGatewaysList(ctx context.Context, id commonids.SubscriptionId) (result VpnGatewaysListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnGatewaysListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnGatewaysListComplete(ctx context.Context, id commonids.SubscriptionId) (VpnGatewaysListCompleteResult, error) { + return c.VpnGatewaysListCompleteMatchingPredicate(ctx, id, VpnGatewayOperationPredicate{}) +} + +// VpnGatewaysListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnGatewaysListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VpnGatewayOperationPredicate) (result VpnGatewaysListCompleteResult, err error) { + items := make([]VpnGateway, 0) + + resp, err := c.VpnGatewaysList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnGatewaysListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslistbyresourcegroup.go new file mode 100644 index 000000000000..e0e679927ad5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpngatewayslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewaysListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnGateway +} + +type VpnGatewaysListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnGateway +} + +type VpnGatewaysListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnGatewaysListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnGatewaysListByResourceGroup ... +func (c VirtualWANsClient) VpnGatewaysListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnGatewaysListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnGatewaysListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnGateways", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnGateway `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnGatewaysListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnGatewaysListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VpnGatewaysListByResourceGroupCompleteResult, error) { + return c.VpnGatewaysListByResourceGroupCompleteMatchingPredicate(ctx, id, VpnGatewayOperationPredicate{}) +} + +// VpnGatewaysListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnGatewaysListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VpnGatewayOperationPredicate) (result VpnGatewaysListByResourceGroupCompleteResult, err error) { + items := make([]VpnGateway, 0) + + resp, err := c.VpnGatewaysListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnGatewaysListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetallsharedkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetallsharedkeys.go new file mode 100644 index 000000000000..050f49ad1151 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetallsharedkeys.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsGetAllSharedKeysOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]ConnectionSharedKeyResult +} + +type VpnLinkConnectionsGetAllSharedKeysCompleteResult struct { + LatestHttpResponse *http.Response + Items []ConnectionSharedKeyResult +} + +type VpnLinkConnectionsGetAllSharedKeysCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnLinkConnectionsGetAllSharedKeysCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnLinkConnectionsGetAllSharedKeys ... +func (c VirtualWANsClient) VpnLinkConnectionsGetAllSharedKeys(ctx context.Context, id VpnLinkConnectionId) (result VpnLinkConnectionsGetAllSharedKeysOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnLinkConnectionsGetAllSharedKeysCustomPager{}, + Path: fmt.Sprintf("%s/sharedKeys", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]ConnectionSharedKeyResult `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnLinkConnectionsGetAllSharedKeysComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnLinkConnectionsGetAllSharedKeysComplete(ctx context.Context, id VpnLinkConnectionId) (VpnLinkConnectionsGetAllSharedKeysCompleteResult, error) { + return c.VpnLinkConnectionsGetAllSharedKeysCompleteMatchingPredicate(ctx, id, ConnectionSharedKeyResultOperationPredicate{}) +} + +// VpnLinkConnectionsGetAllSharedKeysCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnLinkConnectionsGetAllSharedKeysCompleteMatchingPredicate(ctx context.Context, id VpnLinkConnectionId, predicate ConnectionSharedKeyResultOperationPredicate) (result VpnLinkConnectionsGetAllSharedKeysCompleteResult, err error) { + items := make([]ConnectionSharedKeyResult, 0) + + resp, err := c.VpnLinkConnectionsGetAllSharedKeys(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnLinkConnectionsGetAllSharedKeysCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetdefaultsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetdefaultsharedkey.go new file mode 100644 index 000000000000..aa16f486d530 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetdefaultsharedkey.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsGetDefaultSharedKeyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKeyResult +} + +// VpnLinkConnectionsGetDefaultSharedKey ... +func (c VirtualWANsClient) VpnLinkConnectionsGetDefaultSharedKey(ctx context.Context, id VpnLinkConnectionId) (result VpnLinkConnectionsGetDefaultSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: fmt.Sprintf("%s/sharedKeys/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionSharedKeyResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetikesas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetikesas.go new file mode 100644 index 000000000000..5ecf6a6d2e72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionsgetikesas.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsGetIkeSasOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *string +} + +// VpnLinkConnectionsGetIkeSas ... +func (c VirtualWANsClient) VpnLinkConnectionsGetIkeSas(ctx context.Context, id VpnLinkConnectionId) (result VpnLinkConnectionsGetIkeSasOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/getikesas", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnLinkConnectionsGetIkeSasThenPoll performs VpnLinkConnectionsGetIkeSas then polls until it's completed +func (c VirtualWANsClient) VpnLinkConnectionsGetIkeSasThenPoll(ctx context.Context, id VpnLinkConnectionId) error { + result, err := c.VpnLinkConnectionsGetIkeSas(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnLinkConnectionsGetIkeSas: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnLinkConnectionsGetIkeSas: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go new file mode 100644 index 000000000000..28dcee0d679e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistbyvpnconnection.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsListByVpnConnectionOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnSiteLinkConnection +} + +type VpnLinkConnectionsListByVpnConnectionCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnSiteLinkConnection +} + +type VpnLinkConnectionsListByVpnConnectionCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnLinkConnectionsListByVpnConnectionCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnLinkConnectionsListByVpnConnection ... +func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnection(ctx context.Context, id commonids.VPNConnectionId) (result VpnLinkConnectionsListByVpnConnectionOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnLinkConnectionsListByVpnConnectionCustomPager{}, + Path: fmt.Sprintf("%s/vpnLinkConnections", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnSiteLinkConnection `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnLinkConnectionsListByVpnConnectionComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnectionComplete(ctx context.Context, id commonids.VPNConnectionId) (VpnLinkConnectionsListByVpnConnectionCompleteResult, error) { + return c.VpnLinkConnectionsListByVpnConnectionCompleteMatchingPredicate(ctx, id, VpnSiteLinkConnectionOperationPredicate{}) +} + +// VpnLinkConnectionsListByVpnConnectionCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnLinkConnectionsListByVpnConnectionCompleteMatchingPredicate(ctx context.Context, id commonids.VPNConnectionId, predicate VpnSiteLinkConnectionOperationPredicate) (result VpnLinkConnectionsListByVpnConnectionCompleteResult, err error) { + items := make([]VpnSiteLinkConnection, 0) + + resp, err := c.VpnLinkConnectionsListByVpnConnection(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnLinkConnectionsListByVpnConnectionCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistdefaultsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistdefaultsharedkey.go new file mode 100644 index 000000000000..61d6ae835297 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionslistdefaultsharedkey.go @@ -0,0 +1,54 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsListDefaultSharedKeyOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKeyResult +} + +// VpnLinkConnectionsListDefaultSharedKey ... +func (c VirtualWANsClient) VpnLinkConnectionsListDefaultSharedKey(ctx context.Context, id VpnLinkConnectionId) (result VpnLinkConnectionsListDefaultSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/sharedKeys/default/listSharedKey", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model ConnectionSharedKeyResult + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionssetorinitdefaultsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionssetorinitdefaultsharedkey.go new file mode 100644 index 000000000000..b4ae5551e765 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnlinkconnectionssetorinitdefaultsharedkey.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkConnectionsSetOrInitDefaultSharedKeyOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *ConnectionSharedKeyResult +} + +// VpnLinkConnectionsSetOrInitDefaultSharedKey ... +func (c VirtualWANsClient) VpnLinkConnectionsSetOrInitDefaultSharedKey(ctx context.Context, id VpnLinkConnectionId, input ConnectionSharedKeyResult) (result VpnLinkConnectionsSetOrInitDefaultSharedKeyOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: fmt.Sprintf("%s/sharedKeys/default", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnLinkConnectionsSetOrInitDefaultSharedKeyThenPoll performs VpnLinkConnectionsSetOrInitDefaultSharedKey then polls until it's completed +func (c VirtualWANsClient) VpnLinkConnectionsSetOrInitDefaultSharedKeyThenPoll(ctx context.Context, id VpnLinkConnectionId, input ConnectionSharedKeyResult) error { + result, err := c.VpnLinkConnectionsSetOrInitDefaultSharedKey(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnLinkConnectionsSetOrInitDefaultSharedKey: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnLinkConnectionsSetOrInitDefaultSharedKey: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsassociatedwithvirtualwanlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsassociatedwithvirtualwanlist.go new file mode 100644 index 000000000000..2f7ae87144e7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsassociatedwithvirtualwanlist.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsAssociatedWithVirtualWanListOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfigurationsResponse +} + +// VpnServerConfigurationsAssociatedWithVirtualWanList ... +func (c VirtualWANsClient) VpnServerConfigurationsAssociatedWithVirtualWanList(ctx context.Context, id VirtualWANId) (result VpnServerConfigurationsAssociatedWithVirtualWanListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/vpnServerConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll performs VpnServerConfigurationsAssociatedWithVirtualWanList then polls until it's completed +func (c VirtualWANsClient) VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll(ctx context.Context, id VirtualWANId) error { + result, err := c.VpnServerConfigurationsAssociatedWithVirtualWanList(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnServerConfigurationsAssociatedWithVirtualWanList: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnServerConfigurationsAssociatedWithVirtualWanList: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationscreateorupdate.go new file mode 100644 index 000000000000..256562205b9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationscreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfiguration +} + +// VpnServerConfigurationsCreateOrUpdate ... +func (c VirtualWANsClient) VpnServerConfigurationsCreateOrUpdate(ctx context.Context, id VpnServerConfigurationId, input VpnServerConfiguration) (result VpnServerConfigurationsCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnServerConfigurationsCreateOrUpdateThenPoll performs VpnServerConfigurationsCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VpnServerConfigurationsCreateOrUpdateThenPoll(ctx context.Context, id VpnServerConfigurationId, input VpnServerConfiguration) error { + result, err := c.VpnServerConfigurationsCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnServerConfigurationsCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnServerConfigurationsCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsdelete.go new file mode 100644 index 000000000000..2edde34518e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnServerConfigurationsDelete ... +func (c VirtualWANsClient) VpnServerConfigurationsDelete(ctx context.Context, id VpnServerConfigurationId) (result VpnServerConfigurationsDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnServerConfigurationsDeleteThenPoll performs VpnServerConfigurationsDelete then polls until it's completed +func (c VirtualWANsClient) VpnServerConfigurationsDeleteThenPoll(ctx context.Context, id VpnServerConfigurationId) error { + result, err := c.VpnServerConfigurationsDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnServerConfigurationsDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnServerConfigurationsDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsget.go new file mode 100644 index 000000000000..5355630843f5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnServerConfiguration +} + +// VpnServerConfigurationsGet ... +func (c VirtualWANsClient) VpnServerConfigurationsGet(ctx context.Context, id VpnServerConfigurationId) (result VpnServerConfigurationsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnServerConfiguration + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslist.go new file mode 100644 index 000000000000..914118474d53 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnServerConfiguration +} + +type VpnServerConfigurationsListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnServerConfiguration +} + +type VpnServerConfigurationsListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnServerConfigurationsList ... +func (c VirtualWANsClient) VpnServerConfigurationsList(ctx context.Context, id commonids.SubscriptionId) (result VpnServerConfigurationsListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnServerConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnServerConfigurationsListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnServerConfigurationsListComplete(ctx context.Context, id commonids.SubscriptionId) (VpnServerConfigurationsListCompleteResult, error) { + return c.VpnServerConfigurationsListCompleteMatchingPredicate(ctx, id, VpnServerConfigurationOperationPredicate{}) +} + +// VpnServerConfigurationsListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnServerConfigurationsListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VpnServerConfigurationOperationPredicate) (result VpnServerConfigurationsListCompleteResult, err error) { + items := make([]VpnServerConfiguration, 0) + + resp, err := c.VpnServerConfigurationsList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnServerConfigurationsListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go new file mode 100644 index 000000000000..6653716f5fea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnserverconfigurationslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnServerConfiguration +} + +type VpnServerConfigurationsListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnServerConfiguration +} + +type VpnServerConfigurationsListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnServerConfigurationsListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnServerConfigurationsListByResourceGroup ... +func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnServerConfigurationsListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnServerConfigurationsListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnServerConfigurations", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnServerConfiguration `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnServerConfigurationsListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VpnServerConfigurationsListByResourceGroupCompleteResult, error) { + return c.VpnServerConfigurationsListByResourceGroupCompleteMatchingPredicate(ctx, id, VpnServerConfigurationOperationPredicate{}) +} + +// VpnServerConfigurationsListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnServerConfigurationsListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VpnServerConfigurationOperationPredicate) (result VpnServerConfigurationsListByResourceGroupCompleteResult, err error) { + items := make([]VpnServerConfiguration, 0) + + resp, err := c.VpnServerConfigurationsListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnServerConfigurationsListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkconnectionsget.go new file mode 100644 index 000000000000..b2fed5d6de1b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkconnectionsget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinkConnectionsGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnSiteLinkConnection +} + +// VpnSiteLinkConnectionsGet ... +func (c VirtualWANsClient) VpnSiteLinkConnectionsGet(ctx context.Context, id VpnLinkConnectionId) (result VpnSiteLinkConnectionsGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnSiteLinkConnection + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinksget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinksget.go new file mode 100644 index 000000000000..018f1ad8f67b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinksget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinksGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnSiteLink +} + +// VpnSiteLinksGet ... +func (c VirtualWANsClient) VpnSiteLinksGet(ctx context.Context, id VpnSiteLinkId) (result VpnSiteLinksGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnSiteLink + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go new file mode 100644 index 000000000000..584c51707188 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitelinkslistbyvpnsite.go @@ -0,0 +1,105 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinksListByVpnSiteOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnSiteLink +} + +type VpnSiteLinksListByVpnSiteCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnSiteLink +} + +type VpnSiteLinksListByVpnSiteCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSiteLinksListByVpnSiteCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnSiteLinksListByVpnSite ... +func (c VirtualWANsClient) VpnSiteLinksListByVpnSite(ctx context.Context, id VpnSiteId) (result VpnSiteLinksListByVpnSiteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnSiteLinksListByVpnSiteCustomPager{}, + Path: fmt.Sprintf("%s/vpnSiteLinks", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnSiteLink `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnSiteLinksListByVpnSiteComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnSiteLinksListByVpnSiteComplete(ctx context.Context, id VpnSiteId) (VpnSiteLinksListByVpnSiteCompleteResult, error) { + return c.VpnSiteLinksListByVpnSiteCompleteMatchingPredicate(ctx, id, VpnSiteLinkOperationPredicate{}) +} + +// VpnSiteLinksListByVpnSiteCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnSiteLinksListByVpnSiteCompleteMatchingPredicate(ctx context.Context, id VpnSiteId, predicate VpnSiteLinkOperationPredicate) (result VpnSiteLinksListByVpnSiteCompleteResult, err error) { + items := make([]VpnSiteLink, 0) + + resp, err := c.VpnSiteLinksListByVpnSite(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnSiteLinksListByVpnSiteCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesconfigurationdownload.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesconfigurationdownload.go new file mode 100644 index 000000000000..a20fd02e0fc6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesconfigurationdownload.go @@ -0,0 +1,74 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesConfigurationDownloadOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnSitesConfigurationDownload ... +func (c VirtualWANsClient) VpnSitesConfigurationDownload(ctx context.Context, id VirtualWANId, input GetVpnSitesConfigurationRequest) (result VpnSitesConfigurationDownloadOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/vpnConfiguration", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnSitesConfigurationDownloadThenPoll performs VpnSitesConfigurationDownload then polls until it's completed +func (c VirtualWANsClient) VpnSitesConfigurationDownloadThenPoll(ctx context.Context, id VirtualWANId, input GetVpnSitesConfigurationRequest) error { + result, err := c.VpnSitesConfigurationDownload(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnSitesConfigurationDownload: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnSitesConfigurationDownload: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitescreateorupdate.go new file mode 100644 index 000000000000..2b93c69c66a7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitescreateorupdate.go @@ -0,0 +1,75 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesCreateOrUpdateOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *VpnSite +} + +// VpnSitesCreateOrUpdate ... +func (c VirtualWANsClient) VpnSitesCreateOrUpdate(ctx context.Context, id VpnSiteId, input VpnSite) (result VpnSitesCreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnSitesCreateOrUpdateThenPoll performs VpnSitesCreateOrUpdate then polls until it's completed +func (c VirtualWANsClient) VpnSitesCreateOrUpdateThenPoll(ctx context.Context, id VpnSiteId, input VpnSite) error { + result, err := c.VpnSitesCreateOrUpdate(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VpnSitesCreateOrUpdate: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnSitesCreateOrUpdate: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesdelete.go new file mode 100644 index 000000000000..f3b27d7f18a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesdelete.go @@ -0,0 +1,71 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesDeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// VpnSitesDelete ... +func (c VirtualWANsClient) VpnSitesDelete(ctx context.Context, id VpnSiteId) (result VpnSitesDeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// VpnSitesDeleteThenPoll performs VpnSitesDelete then polls until it's completed +func (c VirtualWANsClient) VpnSitesDeleteThenPoll(ctx context.Context, id VpnSiteId) error { + result, err := c.VpnSitesDelete(ctx, id) + if err != nil { + return fmt.Errorf("performing VpnSitesDelete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after VpnSitesDelete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesget.go new file mode 100644 index 000000000000..a250df018ce7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsitesget.go @@ -0,0 +1,53 @@ +package virtualwans + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesGetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *VpnSite +} + +// VpnSitesGet ... +func (c VirtualWANsClient) VpnSitesGet(ctx context.Context, id VpnSiteId) (result VpnSitesGetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model VpnSite + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslist.go new file mode 100644 index 000000000000..38bc5c863638 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslist.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnSite +} + +type VpnSitesListCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnSite +} + +type VpnSitesListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnSitesList ... +func (c VirtualWANsClient) VpnSitesList(ctx context.Context, id commonids.SubscriptionId) (result VpnSitesListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnSitesListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnSite `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnSitesListComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnSitesListComplete(ctx context.Context, id commonids.SubscriptionId) (VpnSitesListCompleteResult, error) { + return c.VpnSitesListCompleteMatchingPredicate(ctx, id, VpnSiteOperationPredicate{}) +} + +// VpnSitesListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnSitesListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VpnSiteOperationPredicate) (result VpnSitesListCompleteResult, err error) { + items := make([]VpnSite, 0) + + resp, err := c.VpnSitesList(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnSitesListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslistbyresourcegroup.go new file mode 100644 index 000000000000..276e64b30d1d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/method_vpnsiteslistbyresourcegroup.go @@ -0,0 +1,106 @@ +package virtualwans + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSitesListByResourceGroupOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]VpnSite +} + +type VpnSitesListByResourceGroupCompleteResult struct { + LatestHttpResponse *http.Response + Items []VpnSite +} + +type VpnSitesListByResourceGroupCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *VpnSitesListByResourceGroupCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// VpnSitesListByResourceGroup ... +func (c VirtualWANsClient) VpnSitesListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result VpnSitesListByResourceGroupOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &VpnSitesListByResourceGroupCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/vpnSites", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]VpnSite `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// VpnSitesListByResourceGroupComplete retrieves all the results into a single object +func (c VirtualWANsClient) VpnSitesListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (VpnSitesListByResourceGroupCompleteResult, error) { + return c.VpnSitesListByResourceGroupCompleteMatchingPredicate(ctx, id, VpnSiteOperationPredicate{}) +} + +// VpnSitesListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c VirtualWANsClient) VpnSitesListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VpnSiteOperationPredicate) (result VpnSitesListByResourceGroupCompleteResult, err error) { + items := make([]VpnSite, 0) + + resp, err := c.VpnSitesListByResourceGroup(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = VpnSitesListByResourceGroupCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_aadauthenticationparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_aadauthenticationparameters.go new file mode 100644 index 000000000000..b0d5e53c3587 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_aadauthenticationparameters.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AadAuthenticationParameters struct { + AadAudience *string `json:"aadAudience,omitempty"` + AadIssuer *string `json:"aadIssuer,omitempty"` + AadTenant *string `json:"aadTenant,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_action.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_action.go new file mode 100644 index 000000000000..e3c73ef507dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_action.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Action struct { + Parameters *[]Parameter `json:"parameters,omitempty"` + Type *RouteMapActionType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_addressspace.go new file mode 100644 index 000000000000..e1ac53861fca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_addressspace.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AddressSpace struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..51a23d1c2c5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..adfa8110618c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..c308084cb90a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..184f4db35eda --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..96ab63c3c70d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..8df948283202 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..0db023773ff6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspool.go new file mode 100644 index 000000000000..75b3239a6738 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..210c422933e2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnection.go new file mode 100644 index 000000000000..13c77fe22255 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnection.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BgpConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnectionproperties.go new file mode 100644 index 000000000000..4666e421984f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpconnectionproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpConnectionProperties struct { + ConnectionState *HubBgpConnectionStatus `json:"connectionState,omitempty"` + HubVirtualNetworkConnection *SubResource `json:"hubVirtualNetworkConnection,omitempty"` + PeerAsn *int64 `json:"peerAsn,omitempty"` + PeerIP *string `json:"peerIp,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpsettings.go new file mode 100644 index 000000000000..5f96d5acf14a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_bgpsettings.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` + BgpPeeringAddresses *[]IPConfigurationBgpPeeringAddress `json:"bgpPeeringAddresses,omitempty"` + PeerWeight *int64 `json:"peerWeight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_connectionsharedkeyresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_connectionsharedkeyresult.go new file mode 100644 index 000000000000..2ca277eba842 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_connectionsharedkeyresult.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ConnectionSharedKeyResult struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SharedKeyProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_criterion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_criterion.go new file mode 100644 index 000000000000..e7249b64d4d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_criterion.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Criterion struct { + AsPath *[]string `json:"asPath,omitempty"` + Community *[]string `json:"community,omitempty"` + MatchCondition *RouteMapMatchCondition `json:"matchCondition,omitempty"` + RoutePrefix *[]string `json:"routePrefix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..557a5a01a6d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ddossettings.go new file mode 100644 index 000000000000..82eef09dc621 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ddossettings.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_delegation.go new file mode 100644 index 000000000000..55eeb1fff811 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_delegation.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_deviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_deviceproperties.go new file mode 100644 index 000000000000..9c2553498461 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_deviceproperties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeviceProperties struct { + DeviceModel *string `json:"deviceModel,omitempty"` + DeviceVendor *string `json:"deviceVendor,omitempty"` + LinkSpeedInMbps *int64 `json:"linkSpeedInMbps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproute.go new file mode 100644 index 000000000000..3a565a687e87 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproute.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveRouteMapRoute struct { + AsPath *string `json:"asPath,omitempty"` + BgpCommunities *string `json:"bgpCommunities,omitempty"` + Prefix *string `json:"prefix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproutelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproutelist.go new file mode 100644 index 000000000000..326acde877b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutemaproutelist.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveRouteMapRouteList struct { + Value *[]EffectiveRouteMapRoute `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutesparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutesparameters.go new file mode 100644 index 000000000000..dab27997ab5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_effectiveroutesparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EffectiveRoutesParameters struct { + ResourceId *string `json:"resourceId,omitempty"` + VirtualWanResourceType *string `json:"virtualWanResourceType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlog.go new file mode 100644 index 000000000000..bc406232e6a5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlog.go @@ -0,0 +1,19 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogformatparameters.go new file mode 100644 index 000000000000..3b64c7c567a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..41747177c874 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfiguration.go new file mode 100644 index 000000000000..b9c97d1e6a40 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..62b1635a8eda --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewaycustombgpipaddressipconfiguration.go new file mode 100644 index 000000000000..81c747c0a4af --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewaycustombgpipaddressipconfiguration.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayCustomBgpIPAddressIPConfiguration struct { + CustomBgpIPAddress string `json:"customBgpIpAddress"` + IPConfigurationId string `json:"ipConfigurationId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..96c5d2b39e50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getinboundroutesparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getinboundroutesparameters.go new file mode 100644 index 000000000000..1407618f6604 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getinboundroutesparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetInboundRoutesParameters struct { + ConnectionType *string `json:"connectionType,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getoutboundroutesparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getoutboundroutesparameters.go new file mode 100644 index 000000000000..19a89a55b101 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getoutboundroutesparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOutboundRoutesParameters struct { + ConnectionType *string `json:"connectionType,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getvpnsitesconfigurationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getvpnsitesconfigurationrequest.go new file mode 100644 index 000000000000..cd349d0cb2f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_getvpnsitesconfigurationrequest.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetVpnSitesConfigurationRequest struct { + OutputBlobSasURL string `json:"outputBlobSasUrl"` + VpnSites *[]string `json:"vpnSites,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfiguration.go new file mode 100644 index 000000000000..c666224646f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HubIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..86c4674860bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroute.go new file mode 100644 index 000000000000..bc12eef1a4a9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroute.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRoute struct { + DestinationType string `json:"destinationType"` + Destinations []string `json:"destinations"` + Name string `json:"name"` + NextHop string `json:"nextHop"` + NextHopType string `json:"nextHopType"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetable.go new file mode 100644 index 000000000000..1214fb071b3f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetable.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HubRouteTableProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetableproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetableproperties.go new file mode 100644 index 000000000000..32d33bc1ec9c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubroutetableproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubRouteTableProperties struct { + AssociatedConnections *[]string `json:"associatedConnections,omitempty"` + Labels *[]string `json:"labels,omitempty"` + PropagatingConnections *[]string `json:"propagatingConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Routes *[]HubRoute `json:"routes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnection.go new file mode 100644 index 000000000000..41f20a0a732c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnection.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *HubVirtualNetworkConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnectionproperties.go new file mode 100644 index 000000000000..83313e30ed50 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_hubvirtualnetworkconnectionproperties.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HubVirtualNetworkConnectionProperties struct { + AllowHubToRemoteVnetTransit *bool `json:"allowHubToRemoteVnetTransit,omitempty"` + AllowRemoteVnetToUseHubVnetGateways *bool `json:"allowRemoteVnetToUseHubVnetGateways,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RemoteVirtualNetwork *SubResource `json:"remoteVirtualNetwork,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrule.go new file mode 100644 index 000000000000..eee8ea195cf2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..17b64e3d4689 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfiguration.go new file mode 100644 index 000000000000..1241b6c2c3ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationbgppeeringaddress.go new file mode 100644 index 000000000000..fbaabbf7c1b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationbgppeeringaddress.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationBgpPeeringAddress struct { + CustomBgpIPAddresses *[]string `json:"customBgpIpAddresses,omitempty"` + DefaultBgpIPAddresses *[]string `json:"defaultBgpIpAddresses,omitempty"` + IPconfigurationId *string `json:"ipconfigurationId,omitempty"` + TunnelIPAddresses *[]string `json:"tunnelIpAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..a710fe9c7f00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..6b808468c3d4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..58c575ad69f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipsecpolicy.go new file mode 100644 index 000000000000..02267e6b24d3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_ipsecpolicy.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPsecPolicy struct { + DhGroup DhGroup `json:"dhGroup"` + IPsecEncryption IPsecEncryption `json:"ipsecEncryption"` + IPsecIntegrity IPsecIntegrity `json:"ipsecIntegrity"` + IkeEncryption IkeEncryption `json:"ikeEncryption"` + IkeIntegrity IkeIntegrity `json:"ikeIntegrity"` + PfsGroup PfsGroup `json:"pfsGroup"` + SaDataSizeKilobytes int64 `json:"saDataSizeKilobytes"` + SaLifeTimeSeconds int64 `json:"saLifeTimeSeconds"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_iptag.go new file mode 100644 index 000000000000..de05365d519b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_iptag.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..37820fb13bdd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..3f6629b67eb1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgateway.go new file mode 100644 index 000000000000..7e1a4539e08c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgateway.go @@ -0,0 +1,20 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..7f5732e1cc0f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaysku.go new file mode 100644 index 000000000000..4cd49e069a9e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natruleportmapping.go new file mode 100644 index 000000000000..2ce8b302da36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterface.go new file mode 100644 index 000000000000..b6b5bf73332f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterface.go @@ -0,0 +1,19 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..d0dcb411a3e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..5c0d1edc7adc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..9ed5a87eb91a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..09f53d0138b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..eb6875aa05ea --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..d12531c27982 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..70fb9b73ddbf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygroup.go new file mode 100644 index 000000000000..c941605df94e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..54526eb4ea06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnection.go new file mode 100644 index 000000000000..903d78680e70 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnection.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnection struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkVirtualApplianceConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnectionproperties.go new file mode 100644 index 000000000000..bfe5ec7a3172 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_networkvirtualapplianceconnectionproperties.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkVirtualApplianceConnectionProperties struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeerAddress *[]string `json:"bgpPeerAddress,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + Name *string `json:"name,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + TunnelIdentifier *int64 `json:"tunnelIdentifier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365breakoutcategorypolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365breakoutcategorypolicies.go new file mode 100644 index 000000000000..0a9ed71a50bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365breakoutcategorypolicies.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type O365BreakOutCategoryPolicies struct { + Allow *bool `json:"allow,omitempty"` + Default *bool `json:"default,omitempty"` + Optimize *bool `json:"optimize,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365policyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365policyproperties.go new file mode 100644 index 000000000000..eeae991ee3fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_o365policyproperties.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type O365PolicyProperties struct { + BreakOutCategories *O365BreakOutCategoryPolicies `json:"breakOutCategories,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfiguration.go new file mode 100644 index 000000000000..08a6a4528430 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfiguration.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2SConnectionConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *P2SConnectionConfigurationProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfigurationproperties.go new file mode 100644 index 000000000000..a5558cf1e488 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2sconnectionconfigurationproperties.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2SConnectionConfigurationProperties struct { + ConfigurationPolicyGroupAssociations *[]SubResource `json:"configurationPolicyGroupAssociations,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + PreviousConfigurationPolicyGroupAssociations *[]VpnServerConfigurationPolicyGroup `json:"previousConfigurationPolicyGroupAssociations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + VpnClientAddressPool *AddressSpace `json:"vpnClientAddressPool,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngateway.go new file mode 100644 index 000000000000..25f63025e39a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngateway.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2SVpnGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *P2SVpnGatewayProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngatewayproperties.go new file mode 100644 index 000000000000..d337b304bbd1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_p2svpngatewayproperties.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type P2SVpnGatewayProperties struct { + CustomDnsServers *[]string `json:"customDnsServers,omitempty"` + IsRoutingPreferenceInternet *bool `json:"isRoutingPreferenceInternet,omitempty"` + P2SConnectionConfigurations *[]P2SConnectionConfiguration `json:"p2SConnectionConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualHub *SubResource `json:"virtualHub,omitempty"` + VpnClientConnectionHealth *VpnClientConnectionHealth `json:"vpnClientConnectionHealth,omitempty"` + VpnGatewayScaleUnit *int64 `json:"vpnGatewayScaleUnit,omitempty"` + VpnServerConfiguration *SubResource `json:"vpnServerConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_parameter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_parameter.go new file mode 100644 index 000000000000..d1619c1138c5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_parameter.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Parameter struct { + AsPath *[]string `json:"asPath,omitempty"` + Community *[]string `json:"community,omitempty"` + RoutePrefix *[]string `json:"routePrefix,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_peerroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_peerroute.go new file mode 100644 index 000000000000..c03bdbe8722a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_peerroute.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PeerRoute struct { + AsPath *string `json:"asPath,omitempty"` + LocalAddress *string `json:"localAddress,omitempty"` + Network *string `json:"network,omitempty"` + NextHop *string `json:"nextHop,omitempty"` + Origin *string `json:"origin,omitempty"` + SourcePeer *string `json:"sourcePeer,omitempty"` + Weight *int64 `json:"weight,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpoint.go new file mode 100644 index 000000000000..d493c3ed57a0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpoint.go @@ -0,0 +1,19 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnection.go new file mode 100644 index 000000000000..191623acf98c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..f54855d12882 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..053d067b6855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..d6794440033e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointproperties.go new file mode 100644 index 000000000000..3af5e8a64e0e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkservice.go new file mode 100644 index 000000000000..79f0f888953c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..b584feab35a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..5875bd90e15d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..c1664caec07d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..3558cb8095ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..31251b676855 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..5160f8086551 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_propagatedroutetable.go new file mode 100644 index 000000000000..af45ddbedf13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_propagatedroutetable.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PropagatedRouteTable struct { + Ids *[]SubResource `json:"ids,omitempty"` + Labels *[]string `json:"labels,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddress.go new file mode 100644 index 000000000000..8bd2fa402a43 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddress.go @@ -0,0 +1,22 @@ +package virtualwans + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..2a95851cb0ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..48fecb8ae904 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresssku.go new file mode 100644 index 000000000000..4fcf5fb0e8f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_radiusserver.go new file mode 100644 index 000000000000..858a67625c97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_radiusserver.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RadiusServer struct { + RadiusServerAddress string `json:"radiusServerAddress"` + RadiusServerScore *int64 `json:"radiusServerScore,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlink.go new file mode 100644 index 000000000000..b0d119588a36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..9443c31d2276 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourceset.go new file mode 100644 index 000000000000..f8d5a3c07759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_resourceset.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..57394822b9d8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_route.go new file mode 100644 index 000000000000..5ae4b7a4ff8b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_route.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemap.go new file mode 100644 index 000000000000..6c5941f5a4c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemap.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteMapProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemapproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemapproperties.go new file mode 100644 index 000000000000..a4a019429fff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemapproperties.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapProperties struct { + AssociatedInboundConnections *[]string `json:"associatedInboundConnections,omitempty"` + AssociatedOutboundConnections *[]string `json:"associatedOutboundConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Rules *[]RouteMapRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemaprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemaprule.go new file mode 100644 index 000000000000..cdeacc9a78b2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routemaprule.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteMapRule struct { + Actions *[]Action `json:"actions,omitempty"` + MatchCriteria *[]Criterion `json:"matchCriteria,omitempty"` + Name *string `json:"name,omitempty"` + NextStepIfMatched *NextStep `json:"nextStepIfMatched,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routepropertiesformat.go new file mode 100644 index 000000000000..51259038175d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetable.go new file mode 100644 index 000000000000..76a72a637be5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetable.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..9a5454526a4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingconfiguration.go new file mode 100644 index 000000000000..f4ca0018afa6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingconfiguration.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingConfiguration struct { + AssociatedRouteTable *SubResource `json:"associatedRouteTable,omitempty"` + InboundRouteMap *SubResource `json:"inboundRouteMap,omitempty"` + OutboundRouteMap *SubResource `json:"outboundRouteMap,omitempty"` + PropagatedRouteTables *PropagatedRouteTable `json:"propagatedRouteTables,omitempty"` + VnetRoutes *VnetRoute `json:"vnetRoutes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintent.go new file mode 100644 index 000000000000..537f1404f3d1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintent.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntent struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutingIntentProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintentproperties.go new file mode 100644 index 000000000000..38a3b8e4147b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingintentproperties.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingIntentProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingPolicies *[]RoutingPolicy `json:"routingPolicies,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingpolicy.go new file mode 100644 index 000000000000..cef221dbd589 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_routingpolicy.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutingPolicy struct { + Destinations []string `json:"destinations"` + Name string `json:"name"` + NextHop string `json:"nextHop"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrule.go new file mode 100644 index 000000000000..72e68599476f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrule.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..547a37a71ce6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlink.go new file mode 100644 index 000000000000..0b2b5927b194 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..1aa80542228e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..aaeb340b2c7c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..62b85e18cbf8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..886de873aeac --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..433a85d20065 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..6c09399b151f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..f8ef284cbaae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_sharedkeyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_sharedkeyproperties.go new file mode 100644 index 000000000000..5988e0bc6fdd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_sharedkeyproperties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SharedKeyProperties struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + SharedKeyLength *int64 `json:"sharedKeyLength,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroute.go new file mode 100644 index 000000000000..c57fdb00cea6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroute.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + Name *string `json:"name,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroutesconfig.go new file mode 100644 index 000000000000..c286d119b662 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_staticroutesconfig.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type StaticRoutesConfig struct { + PropagateStaticRoutes *bool `json:"propagateStaticRoutes,omitempty"` + VnetLocalRouteOverrideCriteria *VnetLocalRouteOverrideCriteria `json:"vnetLocalRouteOverrideCriteria,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnet.go new file mode 100644 index 000000000000..ecdd88e02075 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnet.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..99ccf399c440 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subresource.go new file mode 100644 index 000000000000..9c238c85dfff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_subresource.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_tagsobject.go new file mode 100644 index 000000000000..1f55b0e7a001 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_tagsobject.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TagsObject struct { + Tags *map[string]string `json:"tags,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..1e6b8ac8e237 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..56d6e09676b3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficselectorpolicy.go new file mode 100644 index 000000000000..09496a292fae --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_trafficselectorpolicy.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficSelectorPolicy struct { + LocalAddressRanges []string `json:"localAddressRanges"` + RemoteAddressRanges []string `json:"remoteAddressRanges"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhub.go new file mode 100644 index 000000000000..732daa9aeccd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhub.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHub struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualHubProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroute.go new file mode 100644 index 000000000000..d46894da2a8a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroute.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubEffectiveRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + AsPath *string `json:"asPath,omitempty"` + NextHopType *string `json:"nextHopType,omitempty"` + NextHops *[]string `json:"nextHops,omitempty"` + RouteOrigin *string `json:"routeOrigin,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroutelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroutelist.go new file mode 100644 index 000000000000..3ea5b7b15e4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubeffectiveroutelist.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubEffectiveRouteList struct { + Value *[]VirtualHubEffectiveRoute `json:"value,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubproperties.go new file mode 100644 index 000000000000..9b119e8889fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubproperties.go @@ -0,0 +1,29 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubProperties struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AllowBranchToBranchTraffic *bool `json:"allowBranchToBranchTraffic,omitempty"` + AzureFirewall *SubResource `json:"azureFirewall,omitempty"` + BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` + ExpressRouteGateway *SubResource `json:"expressRouteGateway,omitempty"` + HubRoutingPreference *HubRoutingPreference `json:"hubRoutingPreference,omitempty"` + IPConfigurations *[]SubResource `json:"ipConfigurations,omitempty"` + P2SVpnGateway *SubResource `json:"p2SVpnGateway,omitempty"` + PreferredRoutingGateway *PreferredRoutingGateway `json:"preferredRoutingGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RouteMaps *[]SubResource `json:"routeMaps,omitempty"` + RouteTable *VirtualHubRouteTable `json:"routeTable,omitempty"` + RoutingState *RoutingState `json:"routingState,omitempty"` + SecurityPartnerProvider *SubResource `json:"securityPartnerProvider,omitempty"` + SecurityProviderName *string `json:"securityProviderName,omitempty"` + Sku *string `json:"sku,omitempty"` + VirtualHubRouteTableV2s *[]VirtualHubRouteTableV2 `json:"virtualHubRouteTableV2s,omitempty"` + VirtualRouterAsn *int64 `json:"virtualRouterAsn,omitempty"` + VirtualRouterAutoScaleConfiguration *VirtualRouterAutoScaleConfiguration `json:"virtualRouterAutoScaleConfiguration,omitempty"` + VirtualRouterIPs *[]string `json:"virtualRouterIps,omitempty"` + VirtualWAN *SubResource `json:"virtualWan,omitempty"` + VpnGateway *SubResource `json:"vpnGateway,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroute.go new file mode 100644 index 000000000000..3b9b205ea1a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroute.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRoute struct { + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetable.go new file mode 100644 index 000000000000..71ec2c0bca44 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetable.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTable struct { + Routes *[]VirtualHubRoute `json:"routes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2.go new file mode 100644 index 000000000000..50fa84c35f56 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2 struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualHubRouteTableV2Properties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2properties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2properties.go new file mode 100644 index 000000000000..ed869d1c4715 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutetablev2properties.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteTableV2Properties struct { + AttachedConnections *[]string `json:"attachedConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Routes *[]VirtualHubRouteV2 `json:"routes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutev2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutev2.go new file mode 100644 index 000000000000..a47739aa2a57 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualhubroutev2.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualHubRouteV2 struct { + DestinationType *string `json:"destinationType,omitempty"` + Destinations *[]string `json:"destinations,omitempty"` + NextHopType *string `json:"nextHopType,omitempty"` + NextHops *[]string `json:"nextHops,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktap.go new file mode 100644 index 000000000000..f7d80351ab55 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..efca5566dadf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualrouterautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualrouterautoscaleconfiguration.go new file mode 100644 index 000000000000..4ce6be454208 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualrouterautoscaleconfiguration.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualRouterAutoScaleConfiguration struct { + MinCapacity *int64 `json:"minCapacity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwan.go new file mode 100644 index 000000000000..45691c81b741 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwan.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWAN struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualWanProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanproperties.go new file mode 100644 index 000000000000..65c2eb829cb0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanproperties.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWanProperties struct { + AllowBranchToBranchTraffic *bool `json:"allowBranchToBranchTraffic,omitempty"` + AllowVnetToVnetTraffic *bool `json:"allowVnetToVnetTraffic,omitempty"` + DisableVpnEncryption *bool `json:"disableVpnEncryption,omitempty"` + Office365LocalBreakoutCategory *OfficeTrafficCategory `json:"office365LocalBreakoutCategory,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Type *string `json:"type,omitempty"` + VirtualHubs *[]SubResource `json:"virtualHubs,omitempty"` + VpnSites *[]SubResource `json:"vpnSites,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityprovider.go new file mode 100644 index 000000000000..d41346bc4a91 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityprovider.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWanSecurityProvider struct { + Name *string `json:"name,omitempty"` + Type *VirtualWanSecurityProviderType `json:"type,omitempty"` + Url *string `json:"url,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityproviders.go new file mode 100644 index 000000000000..6e7e4ab59f80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwansecurityproviders.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWanSecurityProviders struct { + SupportedProviders *[]VirtualWanSecurityProvider `json:"supportedProviders,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanvpnprofileparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanvpnprofileparameters.go new file mode 100644 index 000000000000..dd01888d247e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_virtualwanvpnprofileparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualWanVpnProfileParameters struct { + AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` + VpnServerConfigurationResourceId *string `json:"vpnServerConfigurationResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vnetroute.go new file mode 100644 index 000000000000..cbd035f3e068 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vnetroute.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VnetRoute struct { + BgpConnections *[]SubResource `json:"bgpConnections,omitempty"` + StaticRoutes *[]StaticRoute `json:"staticRoutes,omitempty"` + StaticRoutesConfig *StaticRoutesConfig `json:"staticRoutesConfig,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnclientconnectionhealth.go new file mode 100644 index 000000000000..82eefc44a41b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnclientconnectionhealth.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnClientConnectionHealth struct { + AllocatedIPAddresses *[]string `json:"allocatedIpAddresses,omitempty"` + TotalEgressBytesTransferred *int64 `json:"totalEgressBytesTransferred,omitempty"` + TotalIngressBytesTransferred *int64 `json:"totalIngressBytesTransferred,omitempty"` + VpnClientConnectionsCount *int64 `json:"vpnClientConnectionsCount,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnection.go new file mode 100644 index 000000000000..9d157042c705 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnection.go @@ -0,0 +1,11 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnConnectionProperties `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestartparameters.go new file mode 100644 index 000000000000..97a9e565f9e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestartparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionPacketCaptureStartParameters struct { + FilterData *string `json:"filterData,omitempty"` + LinkConnectionNames *[]string `json:"linkConnectionNames,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestopparameters.go new file mode 100644 index 000000000000..a2a50d9eb924 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionpacketcapturestopparameters.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionPacketCaptureStopParameters struct { + LinkConnectionNames *[]string `json:"linkConnectionNames,omitempty"` + SasURL *string `json:"sasUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionproperties.go new file mode 100644 index 000000000000..1c238229449b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnconnectionproperties.go @@ -0,0 +1,26 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnConnectionProperties struct { + ConnectionBandwidth *int64 `json:"connectionBandwidth,omitempty"` + ConnectionStatus *VpnConnectionStatus `json:"connectionStatus,omitempty"` + DpdTimeoutSeconds *int64 `json:"dpdTimeoutSeconds,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnableInternetSecurity *bool `json:"enableInternetSecurity,omitempty"` + EnableRateLimiting *bool `json:"enableRateLimiting,omitempty"` + IPsecPolicies *[]IPsecPolicy `json:"ipsecPolicies,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RemoteVpnSite *SubResource `json:"remoteVpnSite,omitempty"` + RoutingConfiguration *RoutingConfiguration `json:"routingConfiguration,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + TrafficSelectorPolicies *[]TrafficSelectorPolicy `json:"trafficSelectorPolicies,omitempty"` + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + VpnConnectionProtocolType *VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` + VpnLinkConnections *[]VpnSiteLinkConnection `json:"vpnLinkConnections,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngateway.go new file mode 100644 index 000000000000..0c0f9dab77f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngateway.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnGatewayProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayipconfiguration.go new file mode 100644 index 000000000000..b1060397ea07 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayipconfiguration.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewayIPConfiguration struct { + Id *string `json:"id,omitempty"` + PrivateIPAddress *string `json:"privateIpAddress,omitempty"` + PublicIPAddress *string `json:"publicIpAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatrule.go new file mode 100644 index 000000000000..2de41b7ced6b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatrule.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewayNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnGatewayNatRuleProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatruleproperties.go new file mode 100644 index 000000000000..1aaf7c8f90bf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewaynatruleproperties.go @@ -0,0 +1,15 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewayNatRuleProperties struct { + EgressVpnSiteLinkConnections *[]SubResource `json:"egressVpnSiteLinkConnections,omitempty"` + ExternalMappings *[]VpnNatRuleMapping `json:"externalMappings,omitempty"` + IPConfigurationId *string `json:"ipConfigurationId,omitempty"` + IngressVpnSiteLinkConnections *[]SubResource `json:"ingressVpnSiteLinkConnections,omitempty"` + InternalMappings *[]VpnNatRuleMapping `json:"internalMappings,omitempty"` + Mode *VpnNatRuleMode `json:"mode,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Type *VpnNatRuleType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayproperties.go new file mode 100644 index 000000000000..ab2b8b55b1b7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpngatewayproperties.go @@ -0,0 +1,16 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnGatewayProperties struct { + BgpSettings *BgpSettings `json:"bgpSettings,omitempty"` + Connections *[]VpnConnection `json:"connections,omitempty"` + EnableBgpRouteTranslationForNat *bool `json:"enableBgpRouteTranslationForNat,omitempty"` + IPConfigurations *[]VpnGatewayIPConfiguration `json:"ipConfigurations,omitempty"` + IsRoutingPreferenceInternet *bool `json:"isRoutingPreferenceInternet,omitempty"` + NatRules *[]VpnGatewayNatRule `json:"natRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualHub *SubResource `json:"virtualHub,omitempty"` + VpnGatewayScaleUnit *int64 `json:"vpnGatewayScaleUnit,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkbgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkbgpsettings.go new file mode 100644 index 000000000000..72de7d653088 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkbgpsettings.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkBgpSettings struct { + Asn *int64 `json:"asn,omitempty"` + BgpPeeringAddress *string `json:"bgpPeeringAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkproviderproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkproviderproperties.go new file mode 100644 index 000000000000..555f8739a9bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnlinkproviderproperties.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnLinkProviderProperties struct { + LinkProviderName *string `json:"linkProviderName,omitempty"` + LinkSpeedInMbps *int64 `json:"linkSpeedInMbps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnnatrulemapping.go new file mode 100644 index 000000000000..09a77912d9f1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnnatrulemapping.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnNatRuleMapping struct { + AddressSpace *string `json:"addressSpace,omitempty"` + PortRange *string `json:"portRange,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnprofileresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnprofileresponse.go new file mode 100644 index 000000000000..ed24cd4584e8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnprofileresponse.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnProfileResponse struct { + ProfileURL *string `json:"profileUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusclientrootcertificate.go new file mode 100644 index 000000000000..21a75789b34a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusclientrootcertificate.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigRadiusClientRootCertificate struct { + Name *string `json:"name,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusserverrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusserverrootcertificate.go new file mode 100644 index 000000000000..6f67a020c6a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigradiusserverrootcertificate.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigRadiusServerRootCertificate struct { + Name *string `json:"name,omitempty"` + PublicCertData *string `json:"publicCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfiguration.go new file mode 100644 index 000000000000..debdcf03f049 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfiguration.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnServerConfigurationProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroup.go new file mode 100644 index 000000000000..e94549fb0633 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroup.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationPolicyGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnServerConfigurationPolicyGroupProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupmember.go new file mode 100644 index 000000000000..f832688900b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupmember.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationPolicyGroupMember struct { + AttributeType *VpnPolicyMemberAttributeType `json:"attributeType,omitempty"` + AttributeValue *string `json:"attributeValue,omitempty"` + Name *string `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupproperties.go new file mode 100644 index 000000000000..93b015d4bd1e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationpolicygroupproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationPolicyGroupProperties struct { + IsDefault *bool `json:"isDefault,omitempty"` + P2SConnectionConfigurations *[]SubResource `json:"p2SConnectionConfigurations,omitempty"` + PolicyMembers *[]VpnServerConfigurationPolicyGroupMember `json:"policyMembers,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationproperties.go new file mode 100644 index 000000000000..1a42b30f7aa9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationproperties.go @@ -0,0 +1,23 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationProperties struct { + AadAuthenticationParameters *AadAuthenticationParameters `json:"aadAuthenticationParameters,omitempty"` + ConfigurationPolicyGroups *[]VpnServerConfigurationPolicyGroup `json:"configurationPolicyGroups,omitempty"` + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + P2sVpnGateways *[]P2SVpnGateway `json:"p2SVpnGateways,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + RadiusClientRootCertificates *[]VpnServerConfigRadiusClientRootCertificate `json:"radiusClientRootCertificates,omitempty"` + RadiusServerAddress *string `json:"radiusServerAddress,omitempty"` + RadiusServerRootCertificates *[]VpnServerConfigRadiusServerRootCertificate `json:"radiusServerRootCertificates,omitempty"` + RadiusServerSecret *string `json:"radiusServerSecret,omitempty"` + RadiusServers *[]RadiusServer `json:"radiusServers,omitempty"` + VpnAuthenticationTypes *[]VpnAuthenticationType `json:"vpnAuthenticationTypes,omitempty"` + VpnClientIPsecPolicies *[]IPsecPolicy `json:"vpnClientIpsecPolicies,omitempty"` + VpnClientRevokedCertificates *[]VpnServerConfigVpnClientRevokedCertificate `json:"vpnClientRevokedCertificates,omitempty"` + VpnClientRootCertificates *[]VpnServerConfigVpnClientRootCertificate `json:"vpnClientRootCertificates,omitempty"` + VpnProtocols *[]VpnGatewayTunnelingProtocol `json:"vpnProtocols,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationsresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationsresponse.go new file mode 100644 index 000000000000..185d5a549d41 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigurationsresponse.go @@ -0,0 +1,8 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigurationsResponse struct { + VpnServerConfigurationResourceIds *[]string `json:"vpnServerConfigurationResourceIds,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrevokedcertificate.go new file mode 100644 index 000000000000..9582df932b5f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrevokedcertificate.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigVpnClientRevokedCertificate struct { + Name *string `json:"name,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrootcertificate.go new file mode 100644 index 000000000000..606a83936659 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnserverconfigvpnclientrootcertificate.go @@ -0,0 +1,9 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnServerConfigVpnClientRootCertificate struct { + Name *string `json:"name,omitempty"` + PublicCertData *string `json:"publicCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsite.go new file mode 100644 index 000000000000..7c6dacaed501 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsite.go @@ -0,0 +1,14 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSite struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnSiteProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelink.go new file mode 100644 index 000000000000..9c72c0567fd1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelink.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnSiteLinkProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnection.go new file mode 100644 index 000000000000..88bed41fe655 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnection.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinkConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VpnSiteLinkConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnectionproperties.go new file mode 100644 index 000000000000..d07ca0a64af1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkconnectionproperties.go @@ -0,0 +1,26 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinkConnectionProperties struct { + ConnectionBandwidth *int64 `json:"connectionBandwidth,omitempty"` + ConnectionStatus *VpnConnectionStatus `json:"connectionStatus,omitempty"` + DpdTimeoutSeconds *int64 `json:"dpdTimeoutSeconds,omitempty"` + EgressBytesTransferred *int64 `json:"egressBytesTransferred,omitempty"` + EgressNatRules *[]SubResource `json:"egressNatRules,omitempty"` + EnableBgp *bool `json:"enableBgp,omitempty"` + EnableRateLimiting *bool `json:"enableRateLimiting,omitempty"` + IPsecPolicies *[]IPsecPolicy `json:"ipsecPolicies,omitempty"` + IngressBytesTransferred *int64 `json:"ingressBytesTransferred,omitempty"` + IngressNatRules *[]SubResource `json:"ingressNatRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RoutingWeight *int64 `json:"routingWeight,omitempty"` + SharedKey *string `json:"sharedKey,omitempty"` + UseLocalAzureIPAddress *bool `json:"useLocalAzureIpAddress,omitempty"` + UsePolicyBasedTrafficSelectors *bool `json:"usePolicyBasedTrafficSelectors,omitempty"` + VpnConnectionProtocolType *VirtualNetworkGatewayConnectionProtocol `json:"vpnConnectionProtocolType,omitempty"` + VpnGatewayCustomBgpAddresses *[]GatewayCustomBgpIPAddressIPConfiguration `json:"vpnGatewayCustomBgpAddresses,omitempty"` + VpnLinkConnectionMode *VpnLinkConnectionMode `json:"vpnLinkConnectionMode,omitempty"` + VpnSiteLink *SubResource `json:"vpnSiteLink,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkproperties.go new file mode 100644 index 000000000000..fa7d9002a526 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsitelinkproperties.go @@ -0,0 +1,12 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteLinkProperties struct { + BgpProperties *VpnLinkBgpSettings `json:"bgpProperties,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + LinkProperties *VpnLinkProviderProperties `json:"linkProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsiteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsiteproperties.go new file mode 100644 index 000000000000..da368da20457 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/model_vpnsiteproperties.go @@ -0,0 +1,17 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VpnSiteProperties struct { + AddressSpace *AddressSpace `json:"addressSpace,omitempty"` + BgpProperties *BgpSettings `json:"bgpProperties,omitempty"` + DeviceProperties *DeviceProperties `json:"deviceProperties,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IsSecuritySite *bool `json:"isSecuritySite,omitempty"` + O365Policy *O365PolicyProperties `json:"o365Policy,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SiteKey *string `json:"siteKey,omitempty"` + VirtualWAN *SubResource `json:"virtualWan,omitempty"` + VpnSiteLinks *[]VpnSiteLink `json:"vpnSiteLinks,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/predicates.go new file mode 100644 index 000000000000..7373e09382ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/predicates.go @@ -0,0 +1,569 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BgpConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p BgpConnectionOperationPredicate) Matches(input BgpConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type ConnectionSharedKeyResultOperationPredicate struct { + Id *string + Name *string + Type *string +} + +func (p ConnectionSharedKeyResultOperationPredicate) Matches(input ConnectionSharedKeyResult) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type HubIPConfigurationOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p HubIPConfigurationOperationPredicate) Matches(input HubIPConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type HubRouteTableOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p HubRouteTableOperationPredicate) Matches(input HubRouteTable) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type HubVirtualNetworkConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string +} + +func (p HubVirtualNetworkConnectionOperationPredicate) Matches(input HubVirtualNetworkConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type NetworkVirtualApplianceConnectionOperationPredicate struct { + Id *string + Name *string +} + +func (p NetworkVirtualApplianceConnectionOperationPredicate) Matches(input NetworkVirtualApplianceConnection) bool { + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type P2SVpnGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p P2SVpnGatewayOperationPredicate) Matches(input P2SVpnGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type RouteMapOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RouteMapOperationPredicate) Matches(input RouteMap) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type RoutingIntentOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p RoutingIntentOperationPredicate) Matches(input RoutingIntent) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VirtualHubOperationPredicate struct { + Etag *string + Id *string + Kind *string + Location *string + Name *string + Type *string +} + +func (p VirtualHubOperationPredicate) Matches(input VirtualHub) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Kind != nil && (input.Kind == nil || *p.Kind != *input.Kind) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VirtualHubRouteTableV2OperationPredicate struct { + Etag *string + Id *string + Name *string +} + +func (p VirtualHubRouteTableV2OperationPredicate) Matches(input VirtualHubRouteTableV2) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type VirtualWANOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VirtualWANOperationPredicate) Matches(input VirtualWAN) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string +} + +func (p VpnConnectionOperationPredicate) Matches(input VpnConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + return true +} + +type VpnGatewayOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VpnGatewayOperationPredicate) Matches(input VpnGateway) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnGatewayNatRuleOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VpnGatewayNatRuleOperationPredicate) Matches(input VpnGatewayNatRule) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnServerConfigurationOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VpnServerConfigurationOperationPredicate) Matches(input VpnServerConfiguration) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnServerConfigurationPolicyGroupOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VpnServerConfigurationPolicyGroupOperationPredicate) Matches(input VpnServerConfigurationPolicyGroup) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnSiteOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p VpnSiteOperationPredicate) Matches(input VpnSite) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnSiteLinkOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VpnSiteLinkOperationPredicate) Matches(input VpnSiteLink) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} + +type VpnSiteLinkConnectionOperationPredicate struct { + Etag *string + Id *string + Name *string + Type *string +} + +func (p VpnSiteLinkConnectionOperationPredicate) Matches(input VpnSiteLinkConnection) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/version.go new file mode 100644 index 000000000000..b721ff625d5b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans/version.go @@ -0,0 +1,10 @@ +package virtualwans + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/virtualwans/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/README.md new file mode 100644 index 000000000000..9dae73b1bb32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/README.md @@ -0,0 +1,71 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses` Documentation + +The `vmsspublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses" +``` + + +### Client Initialization + +```go +client := vmsspublicipaddresses.NewVMSSPublicIPAddressesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VMSSPublicIPAddressesClient.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress` + +```go +ctx := context.TODO() +id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName", "ipConfigurationName", "publicIPAddressName") + +read, err := client.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress(ctx, id, vmsspublicipaddresses.DefaultPublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `VMSSPublicIPAddressesClient.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses` + +```go +ctx := context.TODO() +id := vmsspublicipaddresses.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") + +// alternatively `client.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses(ctx, id)` can be used to do batched pagination +items, err := client.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `VMSSPublicIPAddressesClient.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses` + +```go +ctx := context.TODO() +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineName", "networkInterfaceName", "ipConfigurationName") + +// alternatively `client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx, id)` can be used to do batched pagination +items, err := client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/id_virtualmachinescaleset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/id_virtualmachinescaleset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/id_virtualmachinescaleset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetpublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/method_publicipaddresseslistvirtualmachinescalesetvmpublicipaddresses.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewaybackendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationgatewayipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationsecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationsecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationsecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_applicationsecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_backendaddresspool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_backendaddresspool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_backendaddresspool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_backendaddresspoolpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_customdnsconfigpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ddossettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ddossettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ddossettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_delegation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_delegation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_delegation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlog.go new file mode 100644 index 000000000000..40c6e24d7eaa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlog.go @@ -0,0 +1,19 @@ +package vmsspublicipaddresses + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogformatparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_flowlogformatparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogformatparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..444648fbefe8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package vmsspublicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_frontendipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_frontendipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_frontendipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_frontendipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_gatewayloadbalancertunnelinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_inboundnatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_inboundnatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_inboundnatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_inboundnatrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationprofile.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationprofile.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationprofile.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationprofilepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_ipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_iptag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_iptag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_iptag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_loadbalancerbackendaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_loadbalancerbackendaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_loadbalancerbackendaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_loadbalancerbackendaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgatewaypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgatewaypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgatewaypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgatewaysku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natgatewaysku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natgatewaysku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natruleportmapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_natruleportmapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_natruleportmapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterface.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterface.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterface.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacednssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacednssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacednssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfaceipconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacetapconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networkinterfacetapconfigurationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networksecuritygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networksecuritygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networksecuritygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_networksecuritygrouppropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpoint.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpoint.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpoint.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privateendpointproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privateendpointproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkservice.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkservice.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkservice.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceconnectionstate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceipconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..bc45ddc58d75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package vmsspublicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddressdnssettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddressdnssettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddressdnssettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddresspropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddresssku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_publicipaddresssku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_publicipaddresssku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourcenavigationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourcenavigationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourcenavigationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourcenavigationlinkformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourcenavigationlinkformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourcenavigationlinkformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_resourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_resourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_retentionpolicyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_retentionpolicyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_retentionpolicyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_route.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_route.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_route.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routetablepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_routetablepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_routetablepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_securityrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_securityrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_securityrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_securityrulepropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_securityrulepropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_securityrulepropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceassociationlink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceassociationlink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceassociationlink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceassociationlinkpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_servicedelegationpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicydefinition.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicydefinitionpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpolicypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..095a4886e151 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package vmsspublicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subnet.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subnet.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subnet.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subnetpropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subnetpropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subnetpropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_trafficanalyticsconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_trafficanalyticsproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_trafficanalyticsproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_trafficanalyticsproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_virtualnetworktap.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_virtualnetworktap.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_virtualnetworktap.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/model_virtualnetworktappropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/version.go new file mode 100644 index 000000000000..9e6d5749a1ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses/version.go @@ -0,0 +1,10 @@ +package vmsspublicipaddresses + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/vmsspublicipaddresses/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/README.md new file mode 100644 index 000000000000..d9d749105a9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/README.md @@ -0,0 +1,83 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways` Documentation + +The `vpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways" +``` + + +### Client Initialization + +```go +client := vpngateways.NewVpnGatewaysClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VpnGatewaysClient.Reset` + +```go +ctx := context.TODO() +id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +if err := client.ResetThenPoll(ctx, id, vpngateways.DefaultResetOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `VpnGatewaysClient.StartPacketCapture` + +```go +ctx := context.TODO() +id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +payload := vpngateways.VpnGatewayPacketCaptureStartParameters{ + // ... +} + + +if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VpnGatewaysClient.StopPacketCapture` + +```go +ctx := context.TODO() +id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +payload := vpngateways.VpnGatewayPacketCaptureStopParameters{ + // ... +} + + +if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + +### Example Usage: `VpnGatewaysClient.UpdateTags` + +```go +ctx := context.TODO() +id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayName") + +payload := vpngateways.TagsObject{ + // ... +} + + +if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/id_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/id_vpngateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/id_vpngateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/id_vpngateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_reset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_reset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_reset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_startpacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_startpacketcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_startpacketcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_startpacketcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_stoppacketcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_stoppacketcapture.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_stoppacketcapture.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_stoppacketcapture.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_bgpsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_bgpsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_bgpsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_gatewaycustombgpipaddressipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_ipconfigurationbgppeeringaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_ipconfigurationbgppeeringaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_ipconfigurationbgppeeringaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_ipsecpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_ipsecpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_ipsecpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_propagatedroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_propagatedroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_propagatedroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_routingconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_routingconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_routingconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_staticroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_staticroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_staticroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_staticroutesconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_staticroutesconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_staticroutesconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_trafficselectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_trafficselectorpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_trafficselectorpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_trafficselectorpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vnetroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vnetroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vnetroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewayipconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewayipconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewayipconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaynatrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaynatrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaynatrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaynatruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaynatruleproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaynatruleproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaynatruleproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaypacketcapturestartparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaypacketcapturestartparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaypacketcapturestartparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaypacketcapturestartparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaypacketcapturestopparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaypacketcapturestopparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewaypacketcapturestopparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewaypacketcapturestopparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewayproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpngatewayproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpngatewayproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnnatrulemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnnatrulemapping.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnnatrulemapping.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnnatrulemapping.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnsitelinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnsitelinkconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnsitelinkconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnsitelinkconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnsitelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnsitelinkconnectionproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/model_vpnsitelinkconnectionproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/model_vpnsitelinkconnectionproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/version.go new file mode 100644 index 000000000000..b97089344a88 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways/version.go @@ -0,0 +1,10 @@ +package vpngateways + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/vpngateways/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/id_vpnlinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/id_vpnlinkconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/id_vpnlinkconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/id_vpnlinkconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/method_resetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/method_resetconnection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/method_resetconnection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/method_resetconnection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/version.go new file mode 100644 index 000000000000..63317356fc75 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections/version.go @@ -0,0 +1,10 @@ +package vpnlinkconnections + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/vpnlinkconnections/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/README.md new file mode 100644 index 000000000000..f5b023bdb238 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/README.md @@ -0,0 +1,41 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations` Documentation + +The `vpnserverconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations" +``` + + +### Client Initialization + +```go +client := vpnserverconfigurations.NewVpnServerConfigurationsClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VpnServerConfigurationsClient.UpdateTags` + +```go +ctx := context.TODO() +id := vpnserverconfigurations.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") + +payload := vpnserverconfigurations.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/id_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/id_vpnserverconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/id_vpnserverconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/id_vpnserverconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_aadauthenticationparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_aadauthenticationparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_aadauthenticationparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_aadauthenticationparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_ipsecpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_ipsecpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_ipsecpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_ipsecpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2sconnectionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2sconnectionconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2sconnectionconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2sconnectionconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2sconnectionconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2svpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2svpngateway.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2svpngateway.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2svpngateway.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2svpngatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2svpngatewayproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_p2svpngatewayproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_p2svpngatewayproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_propagatedroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_propagatedroutetable.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_propagatedroutetable.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_propagatedroutetable.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_radiusserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_radiusserver.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_radiusserver.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_radiusserver.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_routingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_routingconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_routingconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_routingconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_staticroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_staticroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_staticroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_staticroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_staticroutesconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_staticroutesconfig.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_staticroutesconfig.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_staticroutesconfig.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vnetroute.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vnetroute.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vnetroute.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnclientconnectionhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnclientconnectionhealth.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnclientconnectionhealth.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnclientconnectionhealth.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigradiusclientrootcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigradiusserverrootcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfiguration.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfiguration.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfiguration.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupmember.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationpolicygroupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigurationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigurationproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrevokedcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/model_vpnserverconfigvpnclientrootcertificate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/version.go new file mode 100644 index 000000000000..179f7d79f553 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations/version.go @@ -0,0 +1,10 @@ +package vpnserverconfigurations + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/vpnserverconfigurations/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/README.md new file mode 100644 index 000000000000..26db6a9f6bd3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/README.md @@ -0,0 +1,41 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites` Documentation + +The `vpnsites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites" +``` + + +### Client Initialization + +```go +client := vpnsites.NewVpnSitesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `VpnSitesClient.UpdateTags` + +```go +ctx := context.TODO() +id := vpnsites.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") + +payload := vpnsites.TagsObject{ + // ... +} + + +read, err := client.UpdateTags(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/id_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/id_vpnsite.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/id_vpnsite.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/id_vpnsite.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/method_updatetags.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/method_updatetags.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/method_updatetags.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_addressspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_addressspace.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_addressspace.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_addressspace.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_bgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_bgpsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_bgpsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_bgpsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_deviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_deviceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_deviceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_deviceproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_ipconfigurationbgppeeringaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_ipconfigurationbgppeeringaddress.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_ipconfigurationbgppeeringaddress.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_ipconfigurationbgppeeringaddress.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_o365breakoutcategorypolicies.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_o365breakoutcategorypolicies.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_o365breakoutcategorypolicies.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_o365breakoutcategorypolicies.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_o365policyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_o365policyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_o365policyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_o365policyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_subresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_subresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_subresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_tagsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_tagsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_tagsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_tagsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnlinkbgpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnlinkbgpsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnlinkbgpsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnlinkbgpsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnlinkproviderproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnlinkproviderproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnlinkproviderproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnlinkproviderproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsite.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsite.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsite.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsitelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsitelink.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsitelink.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsitelink.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsitelinkproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsitelinkproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsitelinkproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsitelinkproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsiteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsiteproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/model_vpnsiteproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/model_vpnsiteproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/version.go new file mode 100644 index 000000000000..12018807ef67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites/version.go @@ -0,0 +1,10 @@ +package vpnsites + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/vpnsites/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/README.md new file mode 100644 index 000000000000..3ca5fee1169f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/README.md @@ -0,0 +1,104 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies` Documentation + +The `webapplicationfirewallpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies" +``` + + +### Client Initialization + +```go +client := webapplicationfirewallpolicies.NewWebApplicationFirewallPoliciesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.CreateOrUpdate` + +```go +ctx := context.TODO() +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyName") + +payload := webapplicationfirewallpolicies.WebApplicationFirewallPolicy{ + // ... +} + + +read, err := client.CreateOrUpdate(ctx, id, payload) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.Delete` + +```go +ctx := context.TODO() +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyName") + +if err := client.DeleteThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.Get` + +```go +ctx := context.TODO() +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyName") + +read, err := client.Get(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.List` + +```go +ctx := context.TODO() +id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group") + +// alternatively `client.List(ctx, id)` can be used to do batched pagination +items, err := client.ListComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` + + +### Example Usage: `WebApplicationFirewallPoliciesClient.ListAll` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListAll(ctx, id)` can be used to do batched pagination +items, err := client.ListAllComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/client.go new file mode 100644 index 000000000000..225049a73616 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/client.go @@ -0,0 +1,26 @@ +package webapplicationfirewallpolicies + +import ( + "fmt" + + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + sdkEnv "github.com/hashicorp/go-azure-sdk/sdk/environments" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallPoliciesClient struct { + Client *resourcemanager.Client +} + +func NewWebApplicationFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*WebApplicationFirewallPoliciesClient, error) { + client, err := resourcemanager.NewClient(sdkApi, "webapplicationfirewallpolicies", defaultApiVersion) + if err != nil { + return nil, fmt.Errorf("instantiating WebApplicationFirewallPoliciesClient: %+v", err) + } + + return &WebApplicationFirewallPoliciesClient{ + Client: client, + }, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/constants.go new file mode 100644 index 000000000000..95342653237d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/constants.go @@ -0,0 +1,3124 @@ +package webapplicationfirewallpolicies + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ActionType string + +const ( + ActionTypeAllow ActionType = "Allow" + ActionTypeAnomalyScoring ActionType = "AnomalyScoring" + ActionTypeBlock ActionType = "Block" + ActionTypeJSChallenge ActionType = "JSChallenge" + ActionTypeLog ActionType = "Log" +) + +func PossibleValuesForActionType() []string { + return []string{ + string(ActionTypeAllow), + string(ActionTypeAnomalyScoring), + string(ActionTypeBlock), + string(ActionTypeJSChallenge), + string(ActionTypeLog), + } +} + +func (s *ActionType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseActionType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseActionType(input string) (*ActionType, error) { + vals := map[string]ActionType{ + "allow": ActionTypeAllow, + "anomalyscoring": ActionTypeAnomalyScoring, + "block": ActionTypeBlock, + "jschallenge": ActionTypeJSChallenge, + "log": ActionTypeLog, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ActionType(input) + return &out, nil +} + +type ApplicationGatewayClientRevocationOptions string + +const ( + ApplicationGatewayClientRevocationOptionsNone ApplicationGatewayClientRevocationOptions = "None" + ApplicationGatewayClientRevocationOptionsOCSP ApplicationGatewayClientRevocationOptions = "OCSP" +) + +func PossibleValuesForApplicationGatewayClientRevocationOptions() []string { + return []string{ + string(ApplicationGatewayClientRevocationOptionsNone), + string(ApplicationGatewayClientRevocationOptionsOCSP), + } +} + +func (s *ApplicationGatewayClientRevocationOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayClientRevocationOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayClientRevocationOptions(input string) (*ApplicationGatewayClientRevocationOptions, error) { + vals := map[string]ApplicationGatewayClientRevocationOptions{ + "none": ApplicationGatewayClientRevocationOptionsNone, + "ocsp": ApplicationGatewayClientRevocationOptionsOCSP, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayClientRevocationOptions(input) + return &out, nil +} + +type ApplicationGatewayCookieBasedAffinity string + +const ( + ApplicationGatewayCookieBasedAffinityDisabled ApplicationGatewayCookieBasedAffinity = "Disabled" + ApplicationGatewayCookieBasedAffinityEnabled ApplicationGatewayCookieBasedAffinity = "Enabled" +) + +func PossibleValuesForApplicationGatewayCookieBasedAffinity() []string { + return []string{ + string(ApplicationGatewayCookieBasedAffinityDisabled), + string(ApplicationGatewayCookieBasedAffinityEnabled), + } +} + +func (s *ApplicationGatewayCookieBasedAffinity) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayCookieBasedAffinity(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayCookieBasedAffinity(input string) (*ApplicationGatewayCookieBasedAffinity, error) { + vals := map[string]ApplicationGatewayCookieBasedAffinity{ + "disabled": ApplicationGatewayCookieBasedAffinityDisabled, + "enabled": ApplicationGatewayCookieBasedAffinityEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayCookieBasedAffinity(input) + return &out, nil +} + +type ApplicationGatewayCustomErrorStatusCode string + +const ( + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred ApplicationGatewayCustomErrorStatusCode = "HttpStatus500" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour ApplicationGatewayCustomErrorStatusCode = "HttpStatus504" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree ApplicationGatewayCustomErrorStatusCode = "HttpStatus503" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo ApplicationGatewayCustomErrorStatusCode = "HttpStatus502" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred ApplicationGatewayCustomErrorStatusCode = "HttpStatus400" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight ApplicationGatewayCustomErrorStatusCode = "HttpStatus408" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive ApplicationGatewayCustomErrorStatusCode = "HttpStatus405" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour ApplicationGatewayCustomErrorStatusCode = "HttpStatus404" + ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree ApplicationGatewayCustomErrorStatusCode = "HttpStatus403" +) + +func PossibleValuesForApplicationGatewayCustomErrorStatusCode() []string { + return []string{ + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour), + string(ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree), + } +} + +func (s *ApplicationGatewayCustomErrorStatusCode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayCustomErrorStatusCode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayCustomErrorStatusCode(input string) (*ApplicationGatewayCustomErrorStatusCode, error) { + vals := map[string]ApplicationGatewayCustomErrorStatusCode{ + "httpstatus500": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveHundred, + "httpstatus504": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroFour, + "httpstatus503": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroThree, + "httpstatus502": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFiveZeroTwo, + "httpstatus400": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourHundred, + "httpstatus408": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroEight, + "httpstatus405": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFive, + "httpstatus404": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroFour, + "httpstatus403": ApplicationGatewayCustomErrorStatusCodeHTTPStatusFourZeroThree, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayCustomErrorStatusCode(input) + return &out, nil +} + +type ApplicationGatewayFirewallMode string + +const ( + ApplicationGatewayFirewallModeDetection ApplicationGatewayFirewallMode = "Detection" + ApplicationGatewayFirewallModePrevention ApplicationGatewayFirewallMode = "Prevention" +) + +func PossibleValuesForApplicationGatewayFirewallMode() []string { + return []string{ + string(ApplicationGatewayFirewallModeDetection), + string(ApplicationGatewayFirewallModePrevention), + } +} + +func (s *ApplicationGatewayFirewallMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayFirewallMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayFirewallMode(input string) (*ApplicationGatewayFirewallMode, error) { + vals := map[string]ApplicationGatewayFirewallMode{ + "detection": ApplicationGatewayFirewallModeDetection, + "prevention": ApplicationGatewayFirewallModePrevention, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayFirewallMode(input) + return &out, nil +} + +type ApplicationGatewayFirewallRateLimitDuration string + +const ( + ApplicationGatewayFirewallRateLimitDurationFiveMins ApplicationGatewayFirewallRateLimitDuration = "FiveMins" + ApplicationGatewayFirewallRateLimitDurationOneMin ApplicationGatewayFirewallRateLimitDuration = "OneMin" +) + +func PossibleValuesForApplicationGatewayFirewallRateLimitDuration() []string { + return []string{ + string(ApplicationGatewayFirewallRateLimitDurationFiveMins), + string(ApplicationGatewayFirewallRateLimitDurationOneMin), + } +} + +func (s *ApplicationGatewayFirewallRateLimitDuration) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayFirewallRateLimitDuration(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayFirewallRateLimitDuration(input string) (*ApplicationGatewayFirewallRateLimitDuration, error) { + vals := map[string]ApplicationGatewayFirewallRateLimitDuration{ + "fivemins": ApplicationGatewayFirewallRateLimitDurationFiveMins, + "onemin": ApplicationGatewayFirewallRateLimitDurationOneMin, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayFirewallRateLimitDuration(input) + return &out, nil +} + +type ApplicationGatewayFirewallUserSessionVariable string + +const ( + ApplicationGatewayFirewallUserSessionVariableClientAddr ApplicationGatewayFirewallUserSessionVariable = "ClientAddr" + ApplicationGatewayFirewallUserSessionVariableGeoLocation ApplicationGatewayFirewallUserSessionVariable = "GeoLocation" + ApplicationGatewayFirewallUserSessionVariableNone ApplicationGatewayFirewallUserSessionVariable = "None" +) + +func PossibleValuesForApplicationGatewayFirewallUserSessionVariable() []string { + return []string{ + string(ApplicationGatewayFirewallUserSessionVariableClientAddr), + string(ApplicationGatewayFirewallUserSessionVariableGeoLocation), + string(ApplicationGatewayFirewallUserSessionVariableNone), + } +} + +func (s *ApplicationGatewayFirewallUserSessionVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayFirewallUserSessionVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayFirewallUserSessionVariable(input string) (*ApplicationGatewayFirewallUserSessionVariable, error) { + vals := map[string]ApplicationGatewayFirewallUserSessionVariable{ + "clientaddr": ApplicationGatewayFirewallUserSessionVariableClientAddr, + "geolocation": ApplicationGatewayFirewallUserSessionVariableGeoLocation, + "none": ApplicationGatewayFirewallUserSessionVariableNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayFirewallUserSessionVariable(input) + return &out, nil +} + +type ApplicationGatewayLoadDistributionAlgorithm string + +const ( + ApplicationGatewayLoadDistributionAlgorithmIPHash ApplicationGatewayLoadDistributionAlgorithm = "IpHash" + ApplicationGatewayLoadDistributionAlgorithmLeastConnections ApplicationGatewayLoadDistributionAlgorithm = "LeastConnections" + ApplicationGatewayLoadDistributionAlgorithmRoundRobin ApplicationGatewayLoadDistributionAlgorithm = "RoundRobin" +) + +func PossibleValuesForApplicationGatewayLoadDistributionAlgorithm() []string { + return []string{ + string(ApplicationGatewayLoadDistributionAlgorithmIPHash), + string(ApplicationGatewayLoadDistributionAlgorithmLeastConnections), + string(ApplicationGatewayLoadDistributionAlgorithmRoundRobin), + } +} + +func (s *ApplicationGatewayLoadDistributionAlgorithm) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayLoadDistributionAlgorithm(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayLoadDistributionAlgorithm(input string) (*ApplicationGatewayLoadDistributionAlgorithm, error) { + vals := map[string]ApplicationGatewayLoadDistributionAlgorithm{ + "iphash": ApplicationGatewayLoadDistributionAlgorithmIPHash, + "leastconnections": ApplicationGatewayLoadDistributionAlgorithmLeastConnections, + "roundrobin": ApplicationGatewayLoadDistributionAlgorithmRoundRobin, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayLoadDistributionAlgorithm(input) + return &out, nil +} + +type ApplicationGatewayOperationalState string + +const ( + ApplicationGatewayOperationalStateRunning ApplicationGatewayOperationalState = "Running" + ApplicationGatewayOperationalStateStarting ApplicationGatewayOperationalState = "Starting" + ApplicationGatewayOperationalStateStopped ApplicationGatewayOperationalState = "Stopped" + ApplicationGatewayOperationalStateStopping ApplicationGatewayOperationalState = "Stopping" +) + +func PossibleValuesForApplicationGatewayOperationalState() []string { + return []string{ + string(ApplicationGatewayOperationalStateRunning), + string(ApplicationGatewayOperationalStateStarting), + string(ApplicationGatewayOperationalStateStopped), + string(ApplicationGatewayOperationalStateStopping), + } +} + +func (s *ApplicationGatewayOperationalState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayOperationalState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayOperationalState(input string) (*ApplicationGatewayOperationalState, error) { + vals := map[string]ApplicationGatewayOperationalState{ + "running": ApplicationGatewayOperationalStateRunning, + "starting": ApplicationGatewayOperationalStateStarting, + "stopped": ApplicationGatewayOperationalStateStopped, + "stopping": ApplicationGatewayOperationalStateStopping, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayOperationalState(input) + return &out, nil +} + +type ApplicationGatewayProtocol string + +const ( + ApplicationGatewayProtocolHTTP ApplicationGatewayProtocol = "Http" + ApplicationGatewayProtocolHTTPS ApplicationGatewayProtocol = "Https" + ApplicationGatewayProtocolTcp ApplicationGatewayProtocol = "Tcp" + ApplicationGatewayProtocolTls ApplicationGatewayProtocol = "Tls" +) + +func PossibleValuesForApplicationGatewayProtocol() []string { + return []string{ + string(ApplicationGatewayProtocolHTTP), + string(ApplicationGatewayProtocolHTTPS), + string(ApplicationGatewayProtocolTcp), + string(ApplicationGatewayProtocolTls), + } +} + +func (s *ApplicationGatewayProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayProtocol(input string) (*ApplicationGatewayProtocol, error) { + vals := map[string]ApplicationGatewayProtocol{ + "http": ApplicationGatewayProtocolHTTP, + "https": ApplicationGatewayProtocolHTTPS, + "tcp": ApplicationGatewayProtocolTcp, + "tls": ApplicationGatewayProtocolTls, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayProtocol(input) + return &out, nil +} + +type ApplicationGatewayRedirectType string + +const ( + ApplicationGatewayRedirectTypeFound ApplicationGatewayRedirectType = "Found" + ApplicationGatewayRedirectTypePermanent ApplicationGatewayRedirectType = "Permanent" + ApplicationGatewayRedirectTypeSeeOther ApplicationGatewayRedirectType = "SeeOther" + ApplicationGatewayRedirectTypeTemporary ApplicationGatewayRedirectType = "Temporary" +) + +func PossibleValuesForApplicationGatewayRedirectType() []string { + return []string{ + string(ApplicationGatewayRedirectTypeFound), + string(ApplicationGatewayRedirectTypePermanent), + string(ApplicationGatewayRedirectTypeSeeOther), + string(ApplicationGatewayRedirectTypeTemporary), + } +} + +func (s *ApplicationGatewayRedirectType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRedirectType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRedirectType(input string) (*ApplicationGatewayRedirectType, error) { + vals := map[string]ApplicationGatewayRedirectType{ + "found": ApplicationGatewayRedirectTypeFound, + "permanent": ApplicationGatewayRedirectTypePermanent, + "seeother": ApplicationGatewayRedirectTypeSeeOther, + "temporary": ApplicationGatewayRedirectTypeTemporary, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRedirectType(input) + return &out, nil +} + +type ApplicationGatewayRequestRoutingRuleType string + +const ( + ApplicationGatewayRequestRoutingRuleTypeBasic ApplicationGatewayRequestRoutingRuleType = "Basic" + ApplicationGatewayRequestRoutingRuleTypePathBasedRouting ApplicationGatewayRequestRoutingRuleType = "PathBasedRouting" +) + +func PossibleValuesForApplicationGatewayRequestRoutingRuleType() []string { + return []string{ + string(ApplicationGatewayRequestRoutingRuleTypeBasic), + string(ApplicationGatewayRequestRoutingRuleTypePathBasedRouting), + } +} + +func (s *ApplicationGatewayRequestRoutingRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayRequestRoutingRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayRequestRoutingRuleType(input string) (*ApplicationGatewayRequestRoutingRuleType, error) { + vals := map[string]ApplicationGatewayRequestRoutingRuleType{ + "basic": ApplicationGatewayRequestRoutingRuleTypeBasic, + "pathbasedrouting": ApplicationGatewayRequestRoutingRuleTypePathBasedRouting, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayRequestRoutingRuleType(input) + return &out, nil +} + +type ApplicationGatewaySkuFamily string + +const ( + ApplicationGatewaySkuFamilyGenerationOne ApplicationGatewaySkuFamily = "Generation_1" + ApplicationGatewaySkuFamilyGenerationTwo ApplicationGatewaySkuFamily = "Generation_2" +) + +func PossibleValuesForApplicationGatewaySkuFamily() []string { + return []string{ + string(ApplicationGatewaySkuFamilyGenerationOne), + string(ApplicationGatewaySkuFamilyGenerationTwo), + } +} + +func (s *ApplicationGatewaySkuFamily) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySkuFamily(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySkuFamily(input string) (*ApplicationGatewaySkuFamily, error) { + vals := map[string]ApplicationGatewaySkuFamily{ + "generation_1": ApplicationGatewaySkuFamilyGenerationOne, + "generation_2": ApplicationGatewaySkuFamilyGenerationTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySkuFamily(input) + return &out, nil +} + +type ApplicationGatewaySkuName string + +const ( + ApplicationGatewaySkuNameBasic ApplicationGatewaySkuName = "Basic" + ApplicationGatewaySkuNameStandardLarge ApplicationGatewaySkuName = "Standard_Large" + ApplicationGatewaySkuNameStandardMedium ApplicationGatewaySkuName = "Standard_Medium" + ApplicationGatewaySkuNameStandardSmall ApplicationGatewaySkuName = "Standard_Small" + ApplicationGatewaySkuNameStandardVTwo ApplicationGatewaySkuName = "Standard_v2" + ApplicationGatewaySkuNameWAFLarge ApplicationGatewaySkuName = "WAF_Large" + ApplicationGatewaySkuNameWAFMedium ApplicationGatewaySkuName = "WAF_Medium" + ApplicationGatewaySkuNameWAFVTwo ApplicationGatewaySkuName = "WAF_v2" +) + +func PossibleValuesForApplicationGatewaySkuName() []string { + return []string{ + string(ApplicationGatewaySkuNameBasic), + string(ApplicationGatewaySkuNameStandardLarge), + string(ApplicationGatewaySkuNameStandardMedium), + string(ApplicationGatewaySkuNameStandardSmall), + string(ApplicationGatewaySkuNameStandardVTwo), + string(ApplicationGatewaySkuNameWAFLarge), + string(ApplicationGatewaySkuNameWAFMedium), + string(ApplicationGatewaySkuNameWAFVTwo), + } +} + +func (s *ApplicationGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySkuName(input string) (*ApplicationGatewaySkuName, error) { + vals := map[string]ApplicationGatewaySkuName{ + "basic": ApplicationGatewaySkuNameBasic, + "standard_large": ApplicationGatewaySkuNameStandardLarge, + "standard_medium": ApplicationGatewaySkuNameStandardMedium, + "standard_small": ApplicationGatewaySkuNameStandardSmall, + "standard_v2": ApplicationGatewaySkuNameStandardVTwo, + "waf_large": ApplicationGatewaySkuNameWAFLarge, + "waf_medium": ApplicationGatewaySkuNameWAFMedium, + "waf_v2": ApplicationGatewaySkuNameWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySkuName(input) + return &out, nil +} + +type ApplicationGatewaySslCipherSuite string + +const ( + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" + ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_128_GCM_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_CBC_SHA256" + ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_AES_256_GCM_SHA384" + ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA ApplicationGatewaySslCipherSuite = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" +) + +func PossibleValuesForApplicationGatewaySslCipherSuite() []string { + return []string{ + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour), + string(ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA), + } +} + +func (s *ApplicationGatewaySslCipherSuite) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslCipherSuite(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslCipherSuite(input string) (*ApplicationGatewaySslCipherSuite, error) { + vals := map[string]ApplicationGatewaySslCipherSuite{ + "tls_dhe_dss_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHA, + "tls_dhe_dss_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_dhe_dss_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHA, + "tls_dhe_dss_with_aes_256_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_dhe_dss_with_3des_ede_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHEDSSWITHThreeDESEDECBCSHA, + "tls_dhe_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightCBCSHA, + "tls_dhe_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_dhe_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_dhe_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_ecdsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_ecdsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_ecdsa_with_aes_256_cbc_sha384": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_ecdsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSECDHEECDSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHA, + "tls_ecdhe_rsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_ecdhe_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHA, + "tls_ecdhe_rsa_with_aes_256_cbc_sha384": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixCBCSHAThreeEightFour, + "tls_ecdhe_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSECDHERSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_aes_128_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHA, + "tls_rsa_with_aes_128_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightCBCSHATwoFiveSix, + "tls_rsa_with_aes_128_gcm_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESOneTwoEightGCMSHATwoFiveSix, + "tls_rsa_with_aes_256_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHA, + "tls_rsa_with_aes_256_cbc_sha256": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixCBCSHATwoFiveSix, + "tls_rsa_with_aes_256_gcm_sha384": ApplicationGatewaySslCipherSuiteTLSRSAWITHAESTwoFiveSixGCMSHAThreeEightFour, + "tls_rsa_with_3des_ede_cbc_sha": ApplicationGatewaySslCipherSuiteTLSRSAWITHThreeDESEDECBCSHA, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslCipherSuite(input) + return &out, nil +} + +type ApplicationGatewaySslPolicyName string + +const ( + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20150501" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS ApplicationGatewaySslPolicyName = "AppGwSslPolicy20170401S" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne ApplicationGatewaySslPolicyName = "AppGwSslPolicy20220101" + ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS ApplicationGatewaySslPolicyName = "AppGwSslPolicy20220101S" +) + +func PossibleValuesForApplicationGatewaySslPolicyName() []string { + return []string{ + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne), + string(ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS), + } +} + +func (s *ApplicationGatewaySslPolicyName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslPolicyName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslPolicyName(input string) (*ApplicationGatewaySslPolicyName, error) { + vals := map[string]ApplicationGatewaySslPolicyName{ + "appgwsslpolicy20150501": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneFiveZeroFiveZeroOne, + "appgwsslpolicy20170401": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOne, + "appgwsslpolicy20170401s": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroOneSevenZeroFourZeroOneS, + "appgwsslpolicy20220101": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOne, + "appgwsslpolicy20220101s": ApplicationGatewaySslPolicyNameAppGwSslPolicyTwoZeroTwoTwoZeroOneZeroOneS, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslPolicyName(input) + return &out, nil +} + +type ApplicationGatewaySslPolicyType string + +const ( + ApplicationGatewaySslPolicyTypeCustom ApplicationGatewaySslPolicyType = "Custom" + ApplicationGatewaySslPolicyTypeCustomVTwo ApplicationGatewaySslPolicyType = "CustomV2" + ApplicationGatewaySslPolicyTypePredefined ApplicationGatewaySslPolicyType = "Predefined" +) + +func PossibleValuesForApplicationGatewaySslPolicyType() []string { + return []string{ + string(ApplicationGatewaySslPolicyTypeCustom), + string(ApplicationGatewaySslPolicyTypeCustomVTwo), + string(ApplicationGatewaySslPolicyTypePredefined), + } +} + +func (s *ApplicationGatewaySslPolicyType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslPolicyType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslPolicyType(input string) (*ApplicationGatewaySslPolicyType, error) { + vals := map[string]ApplicationGatewaySslPolicyType{ + "custom": ApplicationGatewaySslPolicyTypeCustom, + "customv2": ApplicationGatewaySslPolicyTypeCustomVTwo, + "predefined": ApplicationGatewaySslPolicyTypePredefined, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslPolicyType(input) + return &out, nil +} + +type ApplicationGatewaySslProtocol string + +const ( + ApplicationGatewaySslProtocolTLSvOneOne ApplicationGatewaySslProtocol = "TLSv1_1" + ApplicationGatewaySslProtocolTLSvOneThree ApplicationGatewaySslProtocol = "TLSv1_3" + ApplicationGatewaySslProtocolTLSvOneTwo ApplicationGatewaySslProtocol = "TLSv1_2" + ApplicationGatewaySslProtocolTLSvOneZero ApplicationGatewaySslProtocol = "TLSv1_0" +) + +func PossibleValuesForApplicationGatewaySslProtocol() []string { + return []string{ + string(ApplicationGatewaySslProtocolTLSvOneOne), + string(ApplicationGatewaySslProtocolTLSvOneThree), + string(ApplicationGatewaySslProtocolTLSvOneTwo), + string(ApplicationGatewaySslProtocolTLSvOneZero), + } +} + +func (s *ApplicationGatewaySslProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewaySslProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewaySslProtocol(input string) (*ApplicationGatewaySslProtocol, error) { + vals := map[string]ApplicationGatewaySslProtocol{ + "tlsv1_1": ApplicationGatewaySslProtocolTLSvOneOne, + "tlsv1_3": ApplicationGatewaySslProtocolTLSvOneThree, + "tlsv1_2": ApplicationGatewaySslProtocolTLSvOneTwo, + "tlsv1_0": ApplicationGatewaySslProtocolTLSvOneZero, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewaySslProtocol(input) + return &out, nil +} + +type ApplicationGatewayTier string + +const ( + ApplicationGatewayTierBasic ApplicationGatewayTier = "Basic" + ApplicationGatewayTierStandard ApplicationGatewayTier = "Standard" + ApplicationGatewayTierStandardVTwo ApplicationGatewayTier = "Standard_v2" + ApplicationGatewayTierWAF ApplicationGatewayTier = "WAF" + ApplicationGatewayTierWAFVTwo ApplicationGatewayTier = "WAF_v2" +) + +func PossibleValuesForApplicationGatewayTier() []string { + return []string{ + string(ApplicationGatewayTierBasic), + string(ApplicationGatewayTierStandard), + string(ApplicationGatewayTierStandardVTwo), + string(ApplicationGatewayTierWAF), + string(ApplicationGatewayTierWAFVTwo), + } +} + +func (s *ApplicationGatewayTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseApplicationGatewayTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseApplicationGatewayTier(input string) (*ApplicationGatewayTier, error) { + vals := map[string]ApplicationGatewayTier{ + "basic": ApplicationGatewayTierBasic, + "standard": ApplicationGatewayTierStandard, + "standard_v2": ApplicationGatewayTierStandardVTwo, + "waf": ApplicationGatewayTierWAF, + "waf_v2": ApplicationGatewayTierWAFVTwo, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ApplicationGatewayTier(input) + return &out, nil +} + +type DdosSettingsProtectionMode string + +const ( + DdosSettingsProtectionModeDisabled DdosSettingsProtectionMode = "Disabled" + DdosSettingsProtectionModeEnabled DdosSettingsProtectionMode = "Enabled" + DdosSettingsProtectionModeVirtualNetworkInherited DdosSettingsProtectionMode = "VirtualNetworkInherited" +) + +func PossibleValuesForDdosSettingsProtectionMode() []string { + return []string{ + string(DdosSettingsProtectionModeDisabled), + string(DdosSettingsProtectionModeEnabled), + string(DdosSettingsProtectionModeVirtualNetworkInherited), + } +} + +func (s *DdosSettingsProtectionMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDdosSettingsProtectionMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDdosSettingsProtectionMode(input string) (*DdosSettingsProtectionMode, error) { + vals := map[string]DdosSettingsProtectionMode{ + "disabled": DdosSettingsProtectionModeDisabled, + "enabled": DdosSettingsProtectionModeEnabled, + "virtualnetworkinherited": DdosSettingsProtectionModeVirtualNetworkInherited, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DdosSettingsProtectionMode(input) + return &out, nil +} + +type DeleteOptions string + +const ( + DeleteOptionsDelete DeleteOptions = "Delete" + DeleteOptionsDetach DeleteOptions = "Detach" +) + +func PossibleValuesForDeleteOptions() []string { + return []string{ + string(DeleteOptionsDelete), + string(DeleteOptionsDetach), + } +} + +func (s *DeleteOptions) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseDeleteOptions(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseDeleteOptions(input string) (*DeleteOptions, error) { + vals := map[string]DeleteOptions{ + "delete": DeleteOptionsDelete, + "detach": DeleteOptionsDetach, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := DeleteOptions(input) + return &out, nil +} + +type ExceptionEntryMatchVariable string + +const ( + ExceptionEntryMatchVariableRemoteAddr ExceptionEntryMatchVariable = "RemoteAddr" + ExceptionEntryMatchVariableRequestHeader ExceptionEntryMatchVariable = "RequestHeader" + ExceptionEntryMatchVariableRequestURI ExceptionEntryMatchVariable = "RequestURI" +) + +func PossibleValuesForExceptionEntryMatchVariable() []string { + return []string{ + string(ExceptionEntryMatchVariableRemoteAddr), + string(ExceptionEntryMatchVariableRequestHeader), + string(ExceptionEntryMatchVariableRequestURI), + } +} + +func (s *ExceptionEntryMatchVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExceptionEntryMatchVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExceptionEntryMatchVariable(input string) (*ExceptionEntryMatchVariable, error) { + vals := map[string]ExceptionEntryMatchVariable{ + "remoteaddr": ExceptionEntryMatchVariableRemoteAddr, + "requestheader": ExceptionEntryMatchVariableRequestHeader, + "requesturi": ExceptionEntryMatchVariableRequestURI, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExceptionEntryMatchVariable(input) + return &out, nil +} + +type ExceptionEntrySelectorMatchOperator string + +const ( + ExceptionEntrySelectorMatchOperatorContains ExceptionEntrySelectorMatchOperator = "Contains" + ExceptionEntrySelectorMatchOperatorEndsWith ExceptionEntrySelectorMatchOperator = "EndsWith" + ExceptionEntrySelectorMatchOperatorEquals ExceptionEntrySelectorMatchOperator = "Equals" + ExceptionEntrySelectorMatchOperatorStartsWith ExceptionEntrySelectorMatchOperator = "StartsWith" +) + +func PossibleValuesForExceptionEntrySelectorMatchOperator() []string { + return []string{ + string(ExceptionEntrySelectorMatchOperatorContains), + string(ExceptionEntrySelectorMatchOperatorEndsWith), + string(ExceptionEntrySelectorMatchOperatorEquals), + string(ExceptionEntrySelectorMatchOperatorStartsWith), + } +} + +func (s *ExceptionEntrySelectorMatchOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExceptionEntrySelectorMatchOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExceptionEntrySelectorMatchOperator(input string) (*ExceptionEntrySelectorMatchOperator, error) { + vals := map[string]ExceptionEntrySelectorMatchOperator{ + "contains": ExceptionEntrySelectorMatchOperatorContains, + "endswith": ExceptionEntrySelectorMatchOperatorEndsWith, + "equals": ExceptionEntrySelectorMatchOperatorEquals, + "startswith": ExceptionEntrySelectorMatchOperatorStartsWith, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExceptionEntrySelectorMatchOperator(input) + return &out, nil +} + +type ExceptionEntryValueMatchOperator string + +const ( + ExceptionEntryValueMatchOperatorContains ExceptionEntryValueMatchOperator = "Contains" + ExceptionEntryValueMatchOperatorEndsWith ExceptionEntryValueMatchOperator = "EndsWith" + ExceptionEntryValueMatchOperatorEquals ExceptionEntryValueMatchOperator = "Equals" + ExceptionEntryValueMatchOperatorIPMatch ExceptionEntryValueMatchOperator = "IPMatch" + ExceptionEntryValueMatchOperatorStartsWith ExceptionEntryValueMatchOperator = "StartsWith" +) + +func PossibleValuesForExceptionEntryValueMatchOperator() []string { + return []string{ + string(ExceptionEntryValueMatchOperatorContains), + string(ExceptionEntryValueMatchOperatorEndsWith), + string(ExceptionEntryValueMatchOperatorEquals), + string(ExceptionEntryValueMatchOperatorIPMatch), + string(ExceptionEntryValueMatchOperatorStartsWith), + } +} + +func (s *ExceptionEntryValueMatchOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExceptionEntryValueMatchOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExceptionEntryValueMatchOperator(input string) (*ExceptionEntryValueMatchOperator, error) { + vals := map[string]ExceptionEntryValueMatchOperator{ + "contains": ExceptionEntryValueMatchOperatorContains, + "endswith": ExceptionEntryValueMatchOperatorEndsWith, + "equals": ExceptionEntryValueMatchOperatorEquals, + "ipmatch": ExceptionEntryValueMatchOperatorIPMatch, + "startswith": ExceptionEntryValueMatchOperatorStartsWith, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExceptionEntryValueMatchOperator(input) + return &out, nil +} + +type FlowLogFormatType string + +const ( + FlowLogFormatTypeJSON FlowLogFormatType = "JSON" +) + +func PossibleValuesForFlowLogFormatType() []string { + return []string{ + string(FlowLogFormatTypeJSON), + } +} + +func (s *FlowLogFormatType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseFlowLogFormatType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseFlowLogFormatType(input string) (*FlowLogFormatType, error) { + vals := map[string]FlowLogFormatType{ + "json": FlowLogFormatTypeJSON, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := FlowLogFormatType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelInterfaceType string + +const ( + GatewayLoadBalancerTunnelInterfaceTypeExternal GatewayLoadBalancerTunnelInterfaceType = "External" + GatewayLoadBalancerTunnelInterfaceTypeInternal GatewayLoadBalancerTunnelInterfaceType = "Internal" + GatewayLoadBalancerTunnelInterfaceTypeNone GatewayLoadBalancerTunnelInterfaceType = "None" +) + +func PossibleValuesForGatewayLoadBalancerTunnelInterfaceType() []string { + return []string{ + string(GatewayLoadBalancerTunnelInterfaceTypeExternal), + string(GatewayLoadBalancerTunnelInterfaceTypeInternal), + string(GatewayLoadBalancerTunnelInterfaceTypeNone), + } +} + +func (s *GatewayLoadBalancerTunnelInterfaceType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelInterfaceType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelInterfaceType(input string) (*GatewayLoadBalancerTunnelInterfaceType, error) { + vals := map[string]GatewayLoadBalancerTunnelInterfaceType{ + "external": GatewayLoadBalancerTunnelInterfaceTypeExternal, + "internal": GatewayLoadBalancerTunnelInterfaceTypeInternal, + "none": GatewayLoadBalancerTunnelInterfaceTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelInterfaceType(input) + return &out, nil +} + +type GatewayLoadBalancerTunnelProtocol string + +const ( + GatewayLoadBalancerTunnelProtocolNative GatewayLoadBalancerTunnelProtocol = "Native" + GatewayLoadBalancerTunnelProtocolNone GatewayLoadBalancerTunnelProtocol = "None" + GatewayLoadBalancerTunnelProtocolVXLAN GatewayLoadBalancerTunnelProtocol = "VXLAN" +) + +func PossibleValuesForGatewayLoadBalancerTunnelProtocol() []string { + return []string{ + string(GatewayLoadBalancerTunnelProtocolNative), + string(GatewayLoadBalancerTunnelProtocolNone), + string(GatewayLoadBalancerTunnelProtocolVXLAN), + } +} + +func (s *GatewayLoadBalancerTunnelProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseGatewayLoadBalancerTunnelProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseGatewayLoadBalancerTunnelProtocol(input string) (*GatewayLoadBalancerTunnelProtocol, error) { + vals := map[string]GatewayLoadBalancerTunnelProtocol{ + "native": GatewayLoadBalancerTunnelProtocolNative, + "none": GatewayLoadBalancerTunnelProtocolNone, + "vxlan": GatewayLoadBalancerTunnelProtocolVXLAN, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := GatewayLoadBalancerTunnelProtocol(input) + return &out, nil +} + +type IPAllocationMethod string + +const ( + IPAllocationMethodDynamic IPAllocationMethod = "Dynamic" + IPAllocationMethodStatic IPAllocationMethod = "Static" +) + +func PossibleValuesForIPAllocationMethod() []string { + return []string{ + string(IPAllocationMethodDynamic), + string(IPAllocationMethodStatic), + } +} + +func (s *IPAllocationMethod) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPAllocationMethod(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPAllocationMethod(input string) (*IPAllocationMethod, error) { + vals := map[string]IPAllocationMethod{ + "dynamic": IPAllocationMethodDynamic, + "static": IPAllocationMethodStatic, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPAllocationMethod(input) + return &out, nil +} + +type IPVersion string + +const ( + IPVersionIPvFour IPVersion = "IPv4" + IPVersionIPvSix IPVersion = "IPv6" +) + +func PossibleValuesForIPVersion() []string { + return []string{ + string(IPVersionIPvFour), + string(IPVersionIPvSix), + } +} + +func (s *IPVersion) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIPVersion(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIPVersion(input string) (*IPVersion, error) { + vals := map[string]IPVersion{ + "ipv4": IPVersionIPvFour, + "ipv6": IPVersionIPvSix, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IPVersion(input) + return &out, nil +} + +type LoadBalancerBackendAddressAdminState string + +const ( + LoadBalancerBackendAddressAdminStateDown LoadBalancerBackendAddressAdminState = "Down" + LoadBalancerBackendAddressAdminStateNone LoadBalancerBackendAddressAdminState = "None" + LoadBalancerBackendAddressAdminStateUp LoadBalancerBackendAddressAdminState = "Up" +) + +func PossibleValuesForLoadBalancerBackendAddressAdminState() []string { + return []string{ + string(LoadBalancerBackendAddressAdminStateDown), + string(LoadBalancerBackendAddressAdminStateNone), + string(LoadBalancerBackendAddressAdminStateUp), + } +} + +func (s *LoadBalancerBackendAddressAdminState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseLoadBalancerBackendAddressAdminState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseLoadBalancerBackendAddressAdminState(input string) (*LoadBalancerBackendAddressAdminState, error) { + vals := map[string]LoadBalancerBackendAddressAdminState{ + "down": LoadBalancerBackendAddressAdminStateDown, + "none": LoadBalancerBackendAddressAdminStateNone, + "up": LoadBalancerBackendAddressAdminStateUp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := LoadBalancerBackendAddressAdminState(input) + return &out, nil +} + +type ManagedRuleEnabledState string + +const ( + ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" + ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" +) + +func PossibleValuesForManagedRuleEnabledState() []string { + return []string{ + string(ManagedRuleEnabledStateDisabled), + string(ManagedRuleEnabledStateEnabled), + } +} + +func (s *ManagedRuleEnabledState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseManagedRuleEnabledState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseManagedRuleEnabledState(input string) (*ManagedRuleEnabledState, error) { + vals := map[string]ManagedRuleEnabledState{ + "disabled": ManagedRuleEnabledStateDisabled, + "enabled": ManagedRuleEnabledStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ManagedRuleEnabledState(input) + return &out, nil +} + +type NatGatewaySkuName string + +const ( + NatGatewaySkuNameStandard NatGatewaySkuName = "Standard" +) + +func PossibleValuesForNatGatewaySkuName() []string { + return []string{ + string(NatGatewaySkuNameStandard), + } +} + +func (s *NatGatewaySkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNatGatewaySkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNatGatewaySkuName(input string) (*NatGatewaySkuName, error) { + vals := map[string]NatGatewaySkuName{ + "standard": NatGatewaySkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NatGatewaySkuName(input) + return &out, nil +} + +type NetworkInterfaceAuxiliaryMode string + +const ( + NetworkInterfaceAuxiliaryModeAcceleratedConnections NetworkInterfaceAuxiliaryMode = "AcceleratedConnections" + NetworkInterfaceAuxiliaryModeFloating NetworkInterfaceAuxiliaryMode = "Floating" + NetworkInterfaceAuxiliaryModeMaxConnections NetworkInterfaceAuxiliaryMode = "MaxConnections" + NetworkInterfaceAuxiliaryModeNone NetworkInterfaceAuxiliaryMode = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliaryMode() []string { + return []string{ + string(NetworkInterfaceAuxiliaryModeAcceleratedConnections), + string(NetworkInterfaceAuxiliaryModeFloating), + string(NetworkInterfaceAuxiliaryModeMaxConnections), + string(NetworkInterfaceAuxiliaryModeNone), + } +} + +func (s *NetworkInterfaceAuxiliaryMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliaryMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliaryMode(input string) (*NetworkInterfaceAuxiliaryMode, error) { + vals := map[string]NetworkInterfaceAuxiliaryMode{ + "acceleratedconnections": NetworkInterfaceAuxiliaryModeAcceleratedConnections, + "floating": NetworkInterfaceAuxiliaryModeFloating, + "maxconnections": NetworkInterfaceAuxiliaryModeMaxConnections, + "none": NetworkInterfaceAuxiliaryModeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliaryMode(input) + return &out, nil +} + +type NetworkInterfaceAuxiliarySku string + +const ( + NetworkInterfaceAuxiliarySkuAEight NetworkInterfaceAuxiliarySku = "A8" + NetworkInterfaceAuxiliarySkuAFour NetworkInterfaceAuxiliarySku = "A4" + NetworkInterfaceAuxiliarySkuAOne NetworkInterfaceAuxiliarySku = "A1" + NetworkInterfaceAuxiliarySkuATwo NetworkInterfaceAuxiliarySku = "A2" + NetworkInterfaceAuxiliarySkuNone NetworkInterfaceAuxiliarySku = "None" +) + +func PossibleValuesForNetworkInterfaceAuxiliarySku() []string { + return []string{ + string(NetworkInterfaceAuxiliarySkuAEight), + string(NetworkInterfaceAuxiliarySkuAFour), + string(NetworkInterfaceAuxiliarySkuAOne), + string(NetworkInterfaceAuxiliarySkuATwo), + string(NetworkInterfaceAuxiliarySkuNone), + } +} + +func (s *NetworkInterfaceAuxiliarySku) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceAuxiliarySku(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceAuxiliarySku(input string) (*NetworkInterfaceAuxiliarySku, error) { + vals := map[string]NetworkInterfaceAuxiliarySku{ + "a8": NetworkInterfaceAuxiliarySkuAEight, + "a4": NetworkInterfaceAuxiliarySkuAFour, + "a1": NetworkInterfaceAuxiliarySkuAOne, + "a2": NetworkInterfaceAuxiliarySkuATwo, + "none": NetworkInterfaceAuxiliarySkuNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceAuxiliarySku(input) + return &out, nil +} + +type NetworkInterfaceMigrationPhase string + +const ( + NetworkInterfaceMigrationPhaseAbort NetworkInterfaceMigrationPhase = "Abort" + NetworkInterfaceMigrationPhaseCommit NetworkInterfaceMigrationPhase = "Commit" + NetworkInterfaceMigrationPhaseCommitted NetworkInterfaceMigrationPhase = "Committed" + NetworkInterfaceMigrationPhaseNone NetworkInterfaceMigrationPhase = "None" + NetworkInterfaceMigrationPhasePrepare NetworkInterfaceMigrationPhase = "Prepare" +) + +func PossibleValuesForNetworkInterfaceMigrationPhase() []string { + return []string{ + string(NetworkInterfaceMigrationPhaseAbort), + string(NetworkInterfaceMigrationPhaseCommit), + string(NetworkInterfaceMigrationPhaseCommitted), + string(NetworkInterfaceMigrationPhaseNone), + string(NetworkInterfaceMigrationPhasePrepare), + } +} + +func (s *NetworkInterfaceMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceMigrationPhase(input string) (*NetworkInterfaceMigrationPhase, error) { + vals := map[string]NetworkInterfaceMigrationPhase{ + "abort": NetworkInterfaceMigrationPhaseAbort, + "commit": NetworkInterfaceMigrationPhaseCommit, + "committed": NetworkInterfaceMigrationPhaseCommitted, + "none": NetworkInterfaceMigrationPhaseNone, + "prepare": NetworkInterfaceMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceMigrationPhase(input) + return &out, nil +} + +type NetworkInterfaceNicType string + +const ( + NetworkInterfaceNicTypeElastic NetworkInterfaceNicType = "Elastic" + NetworkInterfaceNicTypeStandard NetworkInterfaceNicType = "Standard" +) + +func PossibleValuesForNetworkInterfaceNicType() []string { + return []string{ + string(NetworkInterfaceNicTypeElastic), + string(NetworkInterfaceNicTypeStandard), + } +} + +func (s *NetworkInterfaceNicType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseNetworkInterfaceNicType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseNetworkInterfaceNicType(input string) (*NetworkInterfaceNicType, error) { + vals := map[string]NetworkInterfaceNicType{ + "elastic": NetworkInterfaceNicTypeElastic, + "standard": NetworkInterfaceNicTypeStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NetworkInterfaceNicType(input) + return &out, nil +} + +type OwaspCrsExclusionEntryMatchVariable string + +const ( + OwaspCrsExclusionEntryMatchVariableRequestArgKeys OwaspCrsExclusionEntryMatchVariable = "RequestArgKeys" + OwaspCrsExclusionEntryMatchVariableRequestArgNames OwaspCrsExclusionEntryMatchVariable = "RequestArgNames" + OwaspCrsExclusionEntryMatchVariableRequestArgValues OwaspCrsExclusionEntryMatchVariable = "RequestArgValues" + OwaspCrsExclusionEntryMatchVariableRequestCookieKeys OwaspCrsExclusionEntryMatchVariable = "RequestCookieKeys" + OwaspCrsExclusionEntryMatchVariableRequestCookieNames OwaspCrsExclusionEntryMatchVariable = "RequestCookieNames" + OwaspCrsExclusionEntryMatchVariableRequestCookieValues OwaspCrsExclusionEntryMatchVariable = "RequestCookieValues" + OwaspCrsExclusionEntryMatchVariableRequestHeaderKeys OwaspCrsExclusionEntryMatchVariable = "RequestHeaderKeys" + OwaspCrsExclusionEntryMatchVariableRequestHeaderNames OwaspCrsExclusionEntryMatchVariable = "RequestHeaderNames" + OwaspCrsExclusionEntryMatchVariableRequestHeaderValues OwaspCrsExclusionEntryMatchVariable = "RequestHeaderValues" +) + +func PossibleValuesForOwaspCrsExclusionEntryMatchVariable() []string { + return []string{ + string(OwaspCrsExclusionEntryMatchVariableRequestArgKeys), + string(OwaspCrsExclusionEntryMatchVariableRequestArgNames), + string(OwaspCrsExclusionEntryMatchVariableRequestArgValues), + string(OwaspCrsExclusionEntryMatchVariableRequestCookieKeys), + string(OwaspCrsExclusionEntryMatchVariableRequestCookieNames), + string(OwaspCrsExclusionEntryMatchVariableRequestCookieValues), + string(OwaspCrsExclusionEntryMatchVariableRequestHeaderKeys), + string(OwaspCrsExclusionEntryMatchVariableRequestHeaderNames), + string(OwaspCrsExclusionEntryMatchVariableRequestHeaderValues), + } +} + +func (s *OwaspCrsExclusionEntryMatchVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOwaspCrsExclusionEntryMatchVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOwaspCrsExclusionEntryMatchVariable(input string) (*OwaspCrsExclusionEntryMatchVariable, error) { + vals := map[string]OwaspCrsExclusionEntryMatchVariable{ + "requestargkeys": OwaspCrsExclusionEntryMatchVariableRequestArgKeys, + "requestargnames": OwaspCrsExclusionEntryMatchVariableRequestArgNames, + "requestargvalues": OwaspCrsExclusionEntryMatchVariableRequestArgValues, + "requestcookiekeys": OwaspCrsExclusionEntryMatchVariableRequestCookieKeys, + "requestcookienames": OwaspCrsExclusionEntryMatchVariableRequestCookieNames, + "requestcookievalues": OwaspCrsExclusionEntryMatchVariableRequestCookieValues, + "requestheaderkeys": OwaspCrsExclusionEntryMatchVariableRequestHeaderKeys, + "requestheadernames": OwaspCrsExclusionEntryMatchVariableRequestHeaderNames, + "requestheadervalues": OwaspCrsExclusionEntryMatchVariableRequestHeaderValues, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OwaspCrsExclusionEntryMatchVariable(input) + return &out, nil +} + +type OwaspCrsExclusionEntrySelectorMatchOperator string + +const ( + OwaspCrsExclusionEntrySelectorMatchOperatorContains OwaspCrsExclusionEntrySelectorMatchOperator = "Contains" + OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith OwaspCrsExclusionEntrySelectorMatchOperator = "EndsWith" + OwaspCrsExclusionEntrySelectorMatchOperatorEquals OwaspCrsExclusionEntrySelectorMatchOperator = "Equals" + OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny OwaspCrsExclusionEntrySelectorMatchOperator = "EqualsAny" + OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith OwaspCrsExclusionEntrySelectorMatchOperator = "StartsWith" +) + +func PossibleValuesForOwaspCrsExclusionEntrySelectorMatchOperator() []string { + return []string{ + string(OwaspCrsExclusionEntrySelectorMatchOperatorContains), + string(OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith), + string(OwaspCrsExclusionEntrySelectorMatchOperatorEquals), + string(OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny), + string(OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith), + } +} + +func (s *OwaspCrsExclusionEntrySelectorMatchOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseOwaspCrsExclusionEntrySelectorMatchOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseOwaspCrsExclusionEntrySelectorMatchOperator(input string) (*OwaspCrsExclusionEntrySelectorMatchOperator, error) { + vals := map[string]OwaspCrsExclusionEntrySelectorMatchOperator{ + "contains": OwaspCrsExclusionEntrySelectorMatchOperatorContains, + "endswith": OwaspCrsExclusionEntrySelectorMatchOperatorEndsWith, + "equals": OwaspCrsExclusionEntrySelectorMatchOperatorEquals, + "equalsany": OwaspCrsExclusionEntrySelectorMatchOperatorEqualsAny, + "startswith": OwaspCrsExclusionEntrySelectorMatchOperatorStartsWith, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := OwaspCrsExclusionEntrySelectorMatchOperator(input) + return &out, nil +} + +type ProvisioningState string + +const ( + ProvisioningStateDeleting ProvisioningState = "Deleting" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + ProvisioningStateUpdating ProvisioningState = "Updating" +) + +func PossibleValuesForProvisioningState() []string { + return []string{ + string(ProvisioningStateDeleting), + string(ProvisioningStateFailed), + string(ProvisioningStateSucceeded), + string(ProvisioningStateUpdating), + } +} + +func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseProvisioningState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseProvisioningState(input string) (*ProvisioningState, error) { + vals := map[string]ProvisioningState{ + "deleting": ProvisioningStateDeleting, + "failed": ProvisioningStateFailed, + "succeeded": ProvisioningStateSucceeded, + "updating": ProvisioningStateUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ProvisioningState(input) + return &out, nil +} + +type PublicIPAddressDnsSettingsDomainNameLabelScope string + +const ( + PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "NoReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "ResourceGroupReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "SubscriptionReuse" + PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse PublicIPAddressDnsSettingsDomainNameLabelScope = "TenantReuse" +) + +func PossibleValuesForPublicIPAddressDnsSettingsDomainNameLabelScope() []string { + return []string{ + string(PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse), + string(PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse), + } +} + +func (s *PublicIPAddressDnsSettingsDomainNameLabelScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressDnsSettingsDomainNameLabelScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressDnsSettingsDomainNameLabelScope(input string) (*PublicIPAddressDnsSettingsDomainNameLabelScope, error) { + vals := map[string]PublicIPAddressDnsSettingsDomainNameLabelScope{ + "noreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeNoReuse, + "resourcegroupreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeResourceGroupReuse, + "subscriptionreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeSubscriptionReuse, + "tenantreuse": PublicIPAddressDnsSettingsDomainNameLabelScopeTenantReuse, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressDnsSettingsDomainNameLabelScope(input) + return &out, nil +} + +type PublicIPAddressMigrationPhase string + +const ( + PublicIPAddressMigrationPhaseAbort PublicIPAddressMigrationPhase = "Abort" + PublicIPAddressMigrationPhaseCommit PublicIPAddressMigrationPhase = "Commit" + PublicIPAddressMigrationPhaseCommitted PublicIPAddressMigrationPhase = "Committed" + PublicIPAddressMigrationPhaseNone PublicIPAddressMigrationPhase = "None" + PublicIPAddressMigrationPhasePrepare PublicIPAddressMigrationPhase = "Prepare" +) + +func PossibleValuesForPublicIPAddressMigrationPhase() []string { + return []string{ + string(PublicIPAddressMigrationPhaseAbort), + string(PublicIPAddressMigrationPhaseCommit), + string(PublicIPAddressMigrationPhaseCommitted), + string(PublicIPAddressMigrationPhaseNone), + string(PublicIPAddressMigrationPhasePrepare), + } +} + +func (s *PublicIPAddressMigrationPhase) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressMigrationPhase(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressMigrationPhase(input string) (*PublicIPAddressMigrationPhase, error) { + vals := map[string]PublicIPAddressMigrationPhase{ + "abort": PublicIPAddressMigrationPhaseAbort, + "commit": PublicIPAddressMigrationPhaseCommit, + "committed": PublicIPAddressMigrationPhaseCommitted, + "none": PublicIPAddressMigrationPhaseNone, + "prepare": PublicIPAddressMigrationPhasePrepare, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressMigrationPhase(input) + return &out, nil +} + +type PublicIPAddressSkuName string + +const ( + PublicIPAddressSkuNameBasic PublicIPAddressSkuName = "Basic" + PublicIPAddressSkuNameStandard PublicIPAddressSkuName = "Standard" +) + +func PossibleValuesForPublicIPAddressSkuName() []string { + return []string{ + string(PublicIPAddressSkuNameBasic), + string(PublicIPAddressSkuNameStandard), + } +} + +func (s *PublicIPAddressSkuName) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuName(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuName(input string) (*PublicIPAddressSkuName, error) { + vals := map[string]PublicIPAddressSkuName{ + "basic": PublicIPAddressSkuNameBasic, + "standard": PublicIPAddressSkuNameStandard, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuName(input) + return &out, nil +} + +type PublicIPAddressSkuTier string + +const ( + PublicIPAddressSkuTierGlobal PublicIPAddressSkuTier = "Global" + PublicIPAddressSkuTierRegional PublicIPAddressSkuTier = "Regional" +) + +func PossibleValuesForPublicIPAddressSkuTier() []string { + return []string{ + string(PublicIPAddressSkuTierGlobal), + string(PublicIPAddressSkuTierRegional), + } +} + +func (s *PublicIPAddressSkuTier) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePublicIPAddressSkuTier(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePublicIPAddressSkuTier(input string) (*PublicIPAddressSkuTier, error) { + vals := map[string]PublicIPAddressSkuTier{ + "global": PublicIPAddressSkuTierGlobal, + "regional": PublicIPAddressSkuTierRegional, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PublicIPAddressSkuTier(input) + return &out, nil +} + +type RouteNextHopType string + +const ( + RouteNextHopTypeInternet RouteNextHopType = "Internet" + RouteNextHopTypeNone RouteNextHopType = "None" + RouteNextHopTypeVirtualAppliance RouteNextHopType = "VirtualAppliance" + RouteNextHopTypeVirtualNetworkGateway RouteNextHopType = "VirtualNetworkGateway" + RouteNextHopTypeVnetLocal RouteNextHopType = "VnetLocal" +) + +func PossibleValuesForRouteNextHopType() []string { + return []string{ + string(RouteNextHopTypeInternet), + string(RouteNextHopTypeNone), + string(RouteNextHopTypeVirtualAppliance), + string(RouteNextHopTypeVirtualNetworkGateway), + string(RouteNextHopTypeVnetLocal), + } +} + +func (s *RouteNextHopType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseRouteNextHopType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseRouteNextHopType(input string) (*RouteNextHopType, error) { + vals := map[string]RouteNextHopType{ + "internet": RouteNextHopTypeInternet, + "none": RouteNextHopTypeNone, + "virtualappliance": RouteNextHopTypeVirtualAppliance, + "virtualnetworkgateway": RouteNextHopTypeVirtualNetworkGateway, + "vnetlocal": RouteNextHopTypeVnetLocal, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := RouteNextHopType(input) + return &out, nil +} + +type ScrubbingRuleEntryMatchOperator string + +const ( + ScrubbingRuleEntryMatchOperatorEquals ScrubbingRuleEntryMatchOperator = "Equals" + ScrubbingRuleEntryMatchOperatorEqualsAny ScrubbingRuleEntryMatchOperator = "EqualsAny" +) + +func PossibleValuesForScrubbingRuleEntryMatchOperator() []string { + return []string{ + string(ScrubbingRuleEntryMatchOperatorEquals), + string(ScrubbingRuleEntryMatchOperatorEqualsAny), + } +} + +func (s *ScrubbingRuleEntryMatchOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScrubbingRuleEntryMatchOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScrubbingRuleEntryMatchOperator(input string) (*ScrubbingRuleEntryMatchOperator, error) { + vals := map[string]ScrubbingRuleEntryMatchOperator{ + "equals": ScrubbingRuleEntryMatchOperatorEquals, + "equalsany": ScrubbingRuleEntryMatchOperatorEqualsAny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScrubbingRuleEntryMatchOperator(input) + return &out, nil +} + +type ScrubbingRuleEntryMatchVariable string + +const ( + ScrubbingRuleEntryMatchVariableRequestArgNames ScrubbingRuleEntryMatchVariable = "RequestArgNames" + ScrubbingRuleEntryMatchVariableRequestCookieNames ScrubbingRuleEntryMatchVariable = "RequestCookieNames" + ScrubbingRuleEntryMatchVariableRequestHeaderNames ScrubbingRuleEntryMatchVariable = "RequestHeaderNames" + ScrubbingRuleEntryMatchVariableRequestIPAddress ScrubbingRuleEntryMatchVariable = "RequestIPAddress" + ScrubbingRuleEntryMatchVariableRequestJSONArgNames ScrubbingRuleEntryMatchVariable = "RequestJSONArgNames" + ScrubbingRuleEntryMatchVariableRequestPostArgNames ScrubbingRuleEntryMatchVariable = "RequestPostArgNames" +) + +func PossibleValuesForScrubbingRuleEntryMatchVariable() []string { + return []string{ + string(ScrubbingRuleEntryMatchVariableRequestArgNames), + string(ScrubbingRuleEntryMatchVariableRequestCookieNames), + string(ScrubbingRuleEntryMatchVariableRequestHeaderNames), + string(ScrubbingRuleEntryMatchVariableRequestIPAddress), + string(ScrubbingRuleEntryMatchVariableRequestJSONArgNames), + string(ScrubbingRuleEntryMatchVariableRequestPostArgNames), + } +} + +func (s *ScrubbingRuleEntryMatchVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScrubbingRuleEntryMatchVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScrubbingRuleEntryMatchVariable(input string) (*ScrubbingRuleEntryMatchVariable, error) { + vals := map[string]ScrubbingRuleEntryMatchVariable{ + "requestargnames": ScrubbingRuleEntryMatchVariableRequestArgNames, + "requestcookienames": ScrubbingRuleEntryMatchVariableRequestCookieNames, + "requestheadernames": ScrubbingRuleEntryMatchVariableRequestHeaderNames, + "requestipaddress": ScrubbingRuleEntryMatchVariableRequestIPAddress, + "requestjsonargnames": ScrubbingRuleEntryMatchVariableRequestJSONArgNames, + "requestpostargnames": ScrubbingRuleEntryMatchVariableRequestPostArgNames, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScrubbingRuleEntryMatchVariable(input) + return &out, nil +} + +type ScrubbingRuleEntryState string + +const ( + ScrubbingRuleEntryStateDisabled ScrubbingRuleEntryState = "Disabled" + ScrubbingRuleEntryStateEnabled ScrubbingRuleEntryState = "Enabled" +) + +func PossibleValuesForScrubbingRuleEntryState() []string { + return []string{ + string(ScrubbingRuleEntryStateDisabled), + string(ScrubbingRuleEntryStateEnabled), + } +} + +func (s *ScrubbingRuleEntryState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseScrubbingRuleEntryState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseScrubbingRuleEntryState(input string) (*ScrubbingRuleEntryState, error) { + vals := map[string]ScrubbingRuleEntryState{ + "disabled": ScrubbingRuleEntryStateDisabled, + "enabled": ScrubbingRuleEntryStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ScrubbingRuleEntryState(input) + return &out, nil +} + +type SecurityRuleAccess string + +const ( + SecurityRuleAccessAllow SecurityRuleAccess = "Allow" + SecurityRuleAccessDeny SecurityRuleAccess = "Deny" +) + +func PossibleValuesForSecurityRuleAccess() []string { + return []string{ + string(SecurityRuleAccessAllow), + string(SecurityRuleAccessDeny), + } +} + +func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleAccess(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleAccess(input string) (*SecurityRuleAccess, error) { + vals := map[string]SecurityRuleAccess{ + "allow": SecurityRuleAccessAllow, + "deny": SecurityRuleAccessDeny, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleAccess(input) + return &out, nil +} + +type SecurityRuleDirection string + +const ( + SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" + SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" +) + +func PossibleValuesForSecurityRuleDirection() []string { + return []string{ + string(SecurityRuleDirectionInbound), + string(SecurityRuleDirectionOutbound), + } +} + +func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleDirection(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleDirection(input string) (*SecurityRuleDirection, error) { + vals := map[string]SecurityRuleDirection{ + "inbound": SecurityRuleDirectionInbound, + "outbound": SecurityRuleDirectionOutbound, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleDirection(input) + return &out, nil +} + +type SecurityRuleProtocol string + +const ( + SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" + SecurityRuleProtocolAny SecurityRuleProtocol = "*" + SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" + SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" + SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" + SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" +) + +func PossibleValuesForSecurityRuleProtocol() []string { + return []string{ + string(SecurityRuleProtocolAh), + string(SecurityRuleProtocolAny), + string(SecurityRuleProtocolEsp), + string(SecurityRuleProtocolIcmp), + string(SecurityRuleProtocolTcp), + string(SecurityRuleProtocolUdp), + } +} + +func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecurityRuleProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecurityRuleProtocol(input string) (*SecurityRuleProtocol, error) { + vals := map[string]SecurityRuleProtocol{ + "ah": SecurityRuleProtocolAh, + "*": SecurityRuleProtocolAny, + "esp": SecurityRuleProtocolEsp, + "icmp": SecurityRuleProtocolIcmp, + "tcp": SecurityRuleProtocolTcp, + "udp": SecurityRuleProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecurityRuleProtocol(input) + return &out, nil +} + +type SensitivityType string + +const ( + SensitivityTypeHigh SensitivityType = "High" + SensitivityTypeLow SensitivityType = "Low" + SensitivityTypeMedium SensitivityType = "Medium" + SensitivityTypeNone SensitivityType = "None" +) + +func PossibleValuesForSensitivityType() []string { + return []string{ + string(SensitivityTypeHigh), + string(SensitivityTypeLow), + string(SensitivityTypeMedium), + string(SensitivityTypeNone), + } +} + +func (s *SensitivityType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSensitivityType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSensitivityType(input string) (*SensitivityType, error) { + vals := map[string]SensitivityType{ + "high": SensitivityTypeHigh, + "low": SensitivityTypeLow, + "medium": SensitivityTypeMedium, + "none": SensitivityTypeNone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SensitivityType(input) + return &out, nil +} + +type SharingScope string + +const ( + SharingScopeDelegatedServices SharingScope = "DelegatedServices" + SharingScopeTenant SharingScope = "Tenant" +) + +func PossibleValuesForSharingScope() []string { + return []string{ + string(SharingScopeDelegatedServices), + string(SharingScopeTenant), + } +} + +func (s *SharingScope) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSharingScope(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSharingScope(input string) (*SharingScope, error) { + vals := map[string]SharingScope{ + "delegatedservices": SharingScopeDelegatedServices, + "tenant": SharingScopeTenant, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SharingScope(input) + return &out, nil +} + +type SyncMode string + +const ( + SyncModeAutomatic SyncMode = "Automatic" + SyncModeManual SyncMode = "Manual" +) + +func PossibleValuesForSyncMode() []string { + return []string{ + string(SyncModeAutomatic), + string(SyncModeManual), + } +} + +func (s *SyncMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSyncMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSyncMode(input string) (*SyncMode, error) { + vals := map[string]SyncMode{ + "automatic": SyncModeAutomatic, + "manual": SyncModeManual, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SyncMode(input) + return &out, nil +} + +type TransportProtocol string + +const ( + TransportProtocolAll TransportProtocol = "All" + TransportProtocolTcp TransportProtocol = "Tcp" + TransportProtocolUdp TransportProtocol = "Udp" +) + +func PossibleValuesForTransportProtocol() []string { + return []string{ + string(TransportProtocolAll), + string(TransportProtocolTcp), + string(TransportProtocolUdp), + } +} + +func (s *TransportProtocol) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseTransportProtocol(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseTransportProtocol(input string) (*TransportProtocol, error) { + vals := map[string]TransportProtocol{ + "all": TransportProtocolAll, + "tcp": TransportProtocolTcp, + "udp": TransportProtocolUdp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := TransportProtocol(input) + return &out, nil +} + +type VirtualNetworkPrivateEndpointNetworkPolicies string + +const ( + VirtualNetworkPrivateEndpointNetworkPoliciesDisabled VirtualNetworkPrivateEndpointNetworkPolicies = "Disabled" + VirtualNetworkPrivateEndpointNetworkPoliciesEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "Enabled" + VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "NetworkSecurityGroupEnabled" + VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled VirtualNetworkPrivateEndpointNetworkPolicies = "RouteTableEnabled" +) + +func PossibleValuesForVirtualNetworkPrivateEndpointNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateEndpointNetworkPoliciesDisabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled), + string(VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled), + } +} + +func (s *VirtualNetworkPrivateEndpointNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateEndpointNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateEndpointNetworkPolicies(input string) (*VirtualNetworkPrivateEndpointNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateEndpointNetworkPolicies{ + "disabled": VirtualNetworkPrivateEndpointNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateEndpointNetworkPoliciesEnabled, + "networksecuritygroupenabled": VirtualNetworkPrivateEndpointNetworkPoliciesNetworkSecurityGroupEnabled, + "routetableenabled": VirtualNetworkPrivateEndpointNetworkPoliciesRouteTableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateEndpointNetworkPolicies(input) + return &out, nil +} + +type VirtualNetworkPrivateLinkServiceNetworkPolicies string + +const ( + VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Disabled" + VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled VirtualNetworkPrivateLinkServiceNetworkPolicies = "Enabled" +) + +func PossibleValuesForVirtualNetworkPrivateLinkServiceNetworkPolicies() []string { + return []string{ + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled), + string(VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled), + } +} + +func (s *VirtualNetworkPrivateLinkServiceNetworkPolicies) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseVirtualNetworkPrivateLinkServiceNetworkPolicies(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseVirtualNetworkPrivateLinkServiceNetworkPolicies(input string) (*VirtualNetworkPrivateLinkServiceNetworkPolicies, error) { + vals := map[string]VirtualNetworkPrivateLinkServiceNetworkPolicies{ + "disabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesDisabled, + "enabled": VirtualNetworkPrivateLinkServiceNetworkPoliciesEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := VirtualNetworkPrivateLinkServiceNetworkPolicies(input) + return &out, nil +} + +type WebApplicationFirewallAction string + +const ( + WebApplicationFirewallActionAllow WebApplicationFirewallAction = "Allow" + WebApplicationFirewallActionBlock WebApplicationFirewallAction = "Block" + WebApplicationFirewallActionJSChallenge WebApplicationFirewallAction = "JSChallenge" + WebApplicationFirewallActionLog WebApplicationFirewallAction = "Log" +) + +func PossibleValuesForWebApplicationFirewallAction() []string { + return []string{ + string(WebApplicationFirewallActionAllow), + string(WebApplicationFirewallActionBlock), + string(WebApplicationFirewallActionJSChallenge), + string(WebApplicationFirewallActionLog), + } +} + +func (s *WebApplicationFirewallAction) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallAction(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallAction(input string) (*WebApplicationFirewallAction, error) { + vals := map[string]WebApplicationFirewallAction{ + "allow": WebApplicationFirewallActionAllow, + "block": WebApplicationFirewallActionBlock, + "jschallenge": WebApplicationFirewallActionJSChallenge, + "log": WebApplicationFirewallActionLog, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallAction(input) + return &out, nil +} + +type WebApplicationFirewallEnabledState string + +const ( + WebApplicationFirewallEnabledStateDisabled WebApplicationFirewallEnabledState = "Disabled" + WebApplicationFirewallEnabledStateEnabled WebApplicationFirewallEnabledState = "Enabled" +) + +func PossibleValuesForWebApplicationFirewallEnabledState() []string { + return []string{ + string(WebApplicationFirewallEnabledStateDisabled), + string(WebApplicationFirewallEnabledStateEnabled), + } +} + +func (s *WebApplicationFirewallEnabledState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallEnabledState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallEnabledState(input string) (*WebApplicationFirewallEnabledState, error) { + vals := map[string]WebApplicationFirewallEnabledState{ + "disabled": WebApplicationFirewallEnabledStateDisabled, + "enabled": WebApplicationFirewallEnabledStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallEnabledState(input) + return &out, nil +} + +type WebApplicationFirewallMatchVariable string + +const ( + WebApplicationFirewallMatchVariablePostArgs WebApplicationFirewallMatchVariable = "PostArgs" + WebApplicationFirewallMatchVariableQueryString WebApplicationFirewallMatchVariable = "QueryString" + WebApplicationFirewallMatchVariableRemoteAddr WebApplicationFirewallMatchVariable = "RemoteAddr" + WebApplicationFirewallMatchVariableRequestBody WebApplicationFirewallMatchVariable = "RequestBody" + WebApplicationFirewallMatchVariableRequestCookies WebApplicationFirewallMatchVariable = "RequestCookies" + WebApplicationFirewallMatchVariableRequestHeaders WebApplicationFirewallMatchVariable = "RequestHeaders" + WebApplicationFirewallMatchVariableRequestMethod WebApplicationFirewallMatchVariable = "RequestMethod" + WebApplicationFirewallMatchVariableRequestUri WebApplicationFirewallMatchVariable = "RequestUri" +) + +func PossibleValuesForWebApplicationFirewallMatchVariable() []string { + return []string{ + string(WebApplicationFirewallMatchVariablePostArgs), + string(WebApplicationFirewallMatchVariableQueryString), + string(WebApplicationFirewallMatchVariableRemoteAddr), + string(WebApplicationFirewallMatchVariableRequestBody), + string(WebApplicationFirewallMatchVariableRequestCookies), + string(WebApplicationFirewallMatchVariableRequestHeaders), + string(WebApplicationFirewallMatchVariableRequestMethod), + string(WebApplicationFirewallMatchVariableRequestUri), + } +} + +func (s *WebApplicationFirewallMatchVariable) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallMatchVariable(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallMatchVariable(input string) (*WebApplicationFirewallMatchVariable, error) { + vals := map[string]WebApplicationFirewallMatchVariable{ + "postargs": WebApplicationFirewallMatchVariablePostArgs, + "querystring": WebApplicationFirewallMatchVariableQueryString, + "remoteaddr": WebApplicationFirewallMatchVariableRemoteAddr, + "requestbody": WebApplicationFirewallMatchVariableRequestBody, + "requestcookies": WebApplicationFirewallMatchVariableRequestCookies, + "requestheaders": WebApplicationFirewallMatchVariableRequestHeaders, + "requestmethod": WebApplicationFirewallMatchVariableRequestMethod, + "requesturi": WebApplicationFirewallMatchVariableRequestUri, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallMatchVariable(input) + return &out, nil +} + +type WebApplicationFirewallMode string + +const ( + WebApplicationFirewallModeDetection WebApplicationFirewallMode = "Detection" + WebApplicationFirewallModePrevention WebApplicationFirewallMode = "Prevention" +) + +func PossibleValuesForWebApplicationFirewallMode() []string { + return []string{ + string(WebApplicationFirewallModeDetection), + string(WebApplicationFirewallModePrevention), + } +} + +func (s *WebApplicationFirewallMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallMode(input string) (*WebApplicationFirewallMode, error) { + vals := map[string]WebApplicationFirewallMode{ + "detection": WebApplicationFirewallModeDetection, + "prevention": WebApplicationFirewallModePrevention, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallMode(input) + return &out, nil +} + +type WebApplicationFirewallOperator string + +const ( + WebApplicationFirewallOperatorAny WebApplicationFirewallOperator = "Any" + WebApplicationFirewallOperatorBeginsWith WebApplicationFirewallOperator = "BeginsWith" + WebApplicationFirewallOperatorContains WebApplicationFirewallOperator = "Contains" + WebApplicationFirewallOperatorEndsWith WebApplicationFirewallOperator = "EndsWith" + WebApplicationFirewallOperatorEqual WebApplicationFirewallOperator = "Equal" + WebApplicationFirewallOperatorGeoMatch WebApplicationFirewallOperator = "GeoMatch" + WebApplicationFirewallOperatorGreaterThan WebApplicationFirewallOperator = "GreaterThan" + WebApplicationFirewallOperatorGreaterThanOrEqual WebApplicationFirewallOperator = "GreaterThanOrEqual" + WebApplicationFirewallOperatorIPMatch WebApplicationFirewallOperator = "IPMatch" + WebApplicationFirewallOperatorLessThan WebApplicationFirewallOperator = "LessThan" + WebApplicationFirewallOperatorLessThanOrEqual WebApplicationFirewallOperator = "LessThanOrEqual" + WebApplicationFirewallOperatorRegex WebApplicationFirewallOperator = "Regex" +) + +func PossibleValuesForWebApplicationFirewallOperator() []string { + return []string{ + string(WebApplicationFirewallOperatorAny), + string(WebApplicationFirewallOperatorBeginsWith), + string(WebApplicationFirewallOperatorContains), + string(WebApplicationFirewallOperatorEndsWith), + string(WebApplicationFirewallOperatorEqual), + string(WebApplicationFirewallOperatorGeoMatch), + string(WebApplicationFirewallOperatorGreaterThan), + string(WebApplicationFirewallOperatorGreaterThanOrEqual), + string(WebApplicationFirewallOperatorIPMatch), + string(WebApplicationFirewallOperatorLessThan), + string(WebApplicationFirewallOperatorLessThanOrEqual), + string(WebApplicationFirewallOperatorRegex), + } +} + +func (s *WebApplicationFirewallOperator) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallOperator(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallOperator(input string) (*WebApplicationFirewallOperator, error) { + vals := map[string]WebApplicationFirewallOperator{ + "any": WebApplicationFirewallOperatorAny, + "beginswith": WebApplicationFirewallOperatorBeginsWith, + "contains": WebApplicationFirewallOperatorContains, + "endswith": WebApplicationFirewallOperatorEndsWith, + "equal": WebApplicationFirewallOperatorEqual, + "geomatch": WebApplicationFirewallOperatorGeoMatch, + "greaterthan": WebApplicationFirewallOperatorGreaterThan, + "greaterthanorequal": WebApplicationFirewallOperatorGreaterThanOrEqual, + "ipmatch": WebApplicationFirewallOperatorIPMatch, + "lessthan": WebApplicationFirewallOperatorLessThan, + "lessthanorequal": WebApplicationFirewallOperatorLessThanOrEqual, + "regex": WebApplicationFirewallOperatorRegex, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallOperator(input) + return &out, nil +} + +type WebApplicationFirewallPolicyResourceState string + +const ( + WebApplicationFirewallPolicyResourceStateCreating WebApplicationFirewallPolicyResourceState = "Creating" + WebApplicationFirewallPolicyResourceStateDeleting WebApplicationFirewallPolicyResourceState = "Deleting" + WebApplicationFirewallPolicyResourceStateDisabled WebApplicationFirewallPolicyResourceState = "Disabled" + WebApplicationFirewallPolicyResourceStateDisabling WebApplicationFirewallPolicyResourceState = "Disabling" + WebApplicationFirewallPolicyResourceStateEnabled WebApplicationFirewallPolicyResourceState = "Enabled" + WebApplicationFirewallPolicyResourceStateEnabling WebApplicationFirewallPolicyResourceState = "Enabling" +) + +func PossibleValuesForWebApplicationFirewallPolicyResourceState() []string { + return []string{ + string(WebApplicationFirewallPolicyResourceStateCreating), + string(WebApplicationFirewallPolicyResourceStateDeleting), + string(WebApplicationFirewallPolicyResourceStateDisabled), + string(WebApplicationFirewallPolicyResourceStateDisabling), + string(WebApplicationFirewallPolicyResourceStateEnabled), + string(WebApplicationFirewallPolicyResourceStateEnabling), + } +} + +func (s *WebApplicationFirewallPolicyResourceState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallPolicyResourceState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallPolicyResourceState(input string) (*WebApplicationFirewallPolicyResourceState, error) { + vals := map[string]WebApplicationFirewallPolicyResourceState{ + "creating": WebApplicationFirewallPolicyResourceStateCreating, + "deleting": WebApplicationFirewallPolicyResourceStateDeleting, + "disabled": WebApplicationFirewallPolicyResourceStateDisabled, + "disabling": WebApplicationFirewallPolicyResourceStateDisabling, + "enabled": WebApplicationFirewallPolicyResourceStateEnabled, + "enabling": WebApplicationFirewallPolicyResourceStateEnabling, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallPolicyResourceState(input) + return &out, nil +} + +type WebApplicationFirewallRuleType string + +const ( + WebApplicationFirewallRuleTypeInvalid WebApplicationFirewallRuleType = "Invalid" + WebApplicationFirewallRuleTypeMatchRule WebApplicationFirewallRuleType = "MatchRule" + WebApplicationFirewallRuleTypeRateLimitRule WebApplicationFirewallRuleType = "RateLimitRule" +) + +func PossibleValuesForWebApplicationFirewallRuleType() []string { + return []string{ + string(WebApplicationFirewallRuleTypeInvalid), + string(WebApplicationFirewallRuleTypeMatchRule), + string(WebApplicationFirewallRuleTypeRateLimitRule), + } +} + +func (s *WebApplicationFirewallRuleType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallRuleType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallRuleType(input string) (*WebApplicationFirewallRuleType, error) { + vals := map[string]WebApplicationFirewallRuleType{ + "invalid": WebApplicationFirewallRuleTypeInvalid, + "matchrule": WebApplicationFirewallRuleTypeMatchRule, + "ratelimitrule": WebApplicationFirewallRuleTypeRateLimitRule, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallRuleType(input) + return &out, nil +} + +type WebApplicationFirewallScrubbingState string + +const ( + WebApplicationFirewallScrubbingStateDisabled WebApplicationFirewallScrubbingState = "Disabled" + WebApplicationFirewallScrubbingStateEnabled WebApplicationFirewallScrubbingState = "Enabled" +) + +func PossibleValuesForWebApplicationFirewallScrubbingState() []string { + return []string{ + string(WebApplicationFirewallScrubbingStateDisabled), + string(WebApplicationFirewallScrubbingStateEnabled), + } +} + +func (s *WebApplicationFirewallScrubbingState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallScrubbingState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallScrubbingState(input string) (*WebApplicationFirewallScrubbingState, error) { + vals := map[string]WebApplicationFirewallScrubbingState{ + "disabled": WebApplicationFirewallScrubbingStateDisabled, + "enabled": WebApplicationFirewallScrubbingStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallScrubbingState(input) + return &out, nil +} + +type WebApplicationFirewallState string + +const ( + WebApplicationFirewallStateDisabled WebApplicationFirewallState = "Disabled" + WebApplicationFirewallStateEnabled WebApplicationFirewallState = "Enabled" +) + +func PossibleValuesForWebApplicationFirewallState() []string { + return []string{ + string(WebApplicationFirewallStateDisabled), + string(WebApplicationFirewallStateEnabled), + } +} + +func (s *WebApplicationFirewallState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallState(input string) (*WebApplicationFirewallState, error) { + vals := map[string]WebApplicationFirewallState{ + "disabled": WebApplicationFirewallStateDisabled, + "enabled": WebApplicationFirewallStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallState(input) + return &out, nil +} + +type WebApplicationFirewallTransform string + +const ( + WebApplicationFirewallTransformHtmlEntityDecode WebApplicationFirewallTransform = "HtmlEntityDecode" + WebApplicationFirewallTransformLowercase WebApplicationFirewallTransform = "Lowercase" + WebApplicationFirewallTransformRemoveNulls WebApplicationFirewallTransform = "RemoveNulls" + WebApplicationFirewallTransformTrim WebApplicationFirewallTransform = "Trim" + WebApplicationFirewallTransformURLDecode WebApplicationFirewallTransform = "UrlDecode" + WebApplicationFirewallTransformURLEncode WebApplicationFirewallTransform = "UrlEncode" + WebApplicationFirewallTransformUppercase WebApplicationFirewallTransform = "Uppercase" +) + +func PossibleValuesForWebApplicationFirewallTransform() []string { + return []string{ + string(WebApplicationFirewallTransformHtmlEntityDecode), + string(WebApplicationFirewallTransformLowercase), + string(WebApplicationFirewallTransformRemoveNulls), + string(WebApplicationFirewallTransformTrim), + string(WebApplicationFirewallTransformURLDecode), + string(WebApplicationFirewallTransformURLEncode), + string(WebApplicationFirewallTransformUppercase), + } +} + +func (s *WebApplicationFirewallTransform) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseWebApplicationFirewallTransform(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseWebApplicationFirewallTransform(input string) (*WebApplicationFirewallTransform, error) { + vals := map[string]WebApplicationFirewallTransform{ + "htmlentitydecode": WebApplicationFirewallTransformHtmlEntityDecode, + "lowercase": WebApplicationFirewallTransformLowercase, + "removenulls": WebApplicationFirewallTransformRemoveNulls, + "trim": WebApplicationFirewallTransformTrim, + "urldecode": WebApplicationFirewallTransformURLDecode, + "urlencode": WebApplicationFirewallTransformURLEncode, + "uppercase": WebApplicationFirewallTransformUppercase, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := WebApplicationFirewallTransform(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go new file mode 100644 index 000000000000..3004461fd8ad --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go @@ -0,0 +1,130 @@ +package webapplicationfirewallpolicies + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ApplicationGatewayWebApplicationFirewallPolicyId{}) +} + +var _ resourceids.ResourceId = &ApplicationGatewayWebApplicationFirewallPolicyId{} + +// ApplicationGatewayWebApplicationFirewallPolicyId is a struct representing the Resource ID for a Application Gateway Web Application Firewall Policy +type ApplicationGatewayWebApplicationFirewallPolicyId struct { + SubscriptionId string + ResourceGroupName string + ApplicationGatewayWebApplicationFirewallPolicyName string +} + +// NewApplicationGatewayWebApplicationFirewallPolicyID returns a new ApplicationGatewayWebApplicationFirewallPolicyId struct +func NewApplicationGatewayWebApplicationFirewallPolicyID(subscriptionId string, resourceGroupName string, applicationGatewayWebApplicationFirewallPolicyName string) ApplicationGatewayWebApplicationFirewallPolicyId { + return ApplicationGatewayWebApplicationFirewallPolicyId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + ApplicationGatewayWebApplicationFirewallPolicyName: applicationGatewayWebApplicationFirewallPolicyName, + } +} + +// ParseApplicationGatewayWebApplicationFirewallPolicyID parses 'input' into a ApplicationGatewayWebApplicationFirewallPolicyId +func ParseApplicationGatewayWebApplicationFirewallPolicyID(input string) (*ApplicationGatewayWebApplicationFirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationGatewayWebApplicationFirewallPolicyId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationGatewayWebApplicationFirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseApplicationGatewayWebApplicationFirewallPolicyIDInsensitively parses 'input' case-insensitively into a ApplicationGatewayWebApplicationFirewallPolicyId +// note: this method should only be used for API response data and not user input +func ParseApplicationGatewayWebApplicationFirewallPolicyIDInsensitively(input string) (*ApplicationGatewayWebApplicationFirewallPolicyId, error) { + parser := resourceids.NewParserFromResourceIdType(&ApplicationGatewayWebApplicationFirewallPolicyId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ApplicationGatewayWebApplicationFirewallPolicyId{} + if err = id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ApplicationGatewayWebApplicationFirewallPolicyId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.ApplicationGatewayWebApplicationFirewallPolicyName, ok = input.Parsed["applicationGatewayWebApplicationFirewallPolicyName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "applicationGatewayWebApplicationFirewallPolicyName", input) + } + + return nil +} + +// ValidateApplicationGatewayWebApplicationFirewallPolicyID checks that 'input' can be parsed as a Application Gateway Web Application Firewall Policy ID +func ValidateApplicationGatewayWebApplicationFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseApplicationGatewayWebApplicationFirewallPolicyID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Application Gateway Web Application Firewall Policy ID +func (id ApplicationGatewayWebApplicationFirewallPolicyId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.ApplicationGatewayWebApplicationFirewallPolicyName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Application Gateway Web Application Firewall Policy ID +func (id ApplicationGatewayWebApplicationFirewallPolicyId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), + resourceids.StaticSegment("staticApplicationGatewayWebApplicationFirewallPolicies", "applicationGatewayWebApplicationFirewallPolicies", "applicationGatewayWebApplicationFirewallPolicies"), + resourceids.UserSpecifiedSegment("applicationGatewayWebApplicationFirewallPolicyName", "applicationGatewayWebApplicationFirewallPolicyName"), + } +} + +// String returns a human-readable description of this Application Gateway Web Application Firewall Policy ID +func (id ApplicationGatewayWebApplicationFirewallPolicyId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Application Gateway Web Application Firewall Policy Name: %q", id.ApplicationGatewayWebApplicationFirewallPolicyName), + } + return fmt.Sprintf("Application Gateway Web Application Firewall Policy (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_createorupdate.go new file mode 100644 index 000000000000..556b406a3c28 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_createorupdate.go @@ -0,0 +1,58 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CreateOrUpdateOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WebApplicationFirewallPolicy +} + +// CreateOrUpdate ... +func (c WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Context, id ApplicationGatewayWebApplicationFirewallPolicyId, input WebApplicationFirewallPolicy) (result CreateOrUpdateOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusCreated, + http.StatusOK, + }, + HttpMethod: http.MethodPut, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model WebApplicationFirewallPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_delete.go new file mode 100644 index 000000000000..c4547e959520 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_delete.go @@ -0,0 +1,71 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DeleteOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData +} + +// Delete ... +func (c WebApplicationFirewallPoliciesClient) Delete(ctx context.Context, id ApplicationGatewayWebApplicationFirewallPolicyId) (result DeleteOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusNoContent, + http.StatusOK, + }, + HttpMethod: http.MethodDelete, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// DeleteThenPoll performs Delete then polls until it's completed +func (c WebApplicationFirewallPoliciesClient) DeleteThenPoll(ctx context.Context, id ApplicationGatewayWebApplicationFirewallPolicyId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_get.go new file mode 100644 index 000000000000..b34138178e00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_get.go @@ -0,0 +1,53 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "net/http" + + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GetOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *WebApplicationFirewallPolicy +} + +// Get ... +func (c WebApplicationFirewallPoliciesClient) Get(ctx context.Context, id ApplicationGatewayWebApplicationFirewallPolicyId) (result GetOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Path: id.ID(), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var model WebApplicationFirewallPolicy + result.Model = &model + if err = resp.Unmarshal(result.Model); err != nil { + return + } + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_list.go new file mode 100644 index 000000000000..4a6b3abf31e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_list.go @@ -0,0 +1,106 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WebApplicationFirewallPolicy +} + +type ListCompleteResult struct { + LatestHttpResponse *http.Response + Items []WebApplicationFirewallPolicy +} + +type ListCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// List ... +func (c WebApplicationFirewallPoliciesClient) List(ctx context.Context, id commonids.ResourceGroupId) (result ListOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WebApplicationFirewallPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListComplete retrieves all the results into a single object +func (c WebApplicationFirewallPoliciesClient) ListComplete(ctx context.Context, id commonids.ResourceGroupId) (ListCompleteResult, error) { + return c.ListCompleteMatchingPredicate(ctx, id, WebApplicationFirewallPolicyOperationPredicate{}) +} + +// ListCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebApplicationFirewallPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate WebApplicationFirewallPolicyOperationPredicate) (result ListCompleteResult, err error) { + items := make([]WebApplicationFirewallPolicy, 0) + + resp, err := c.List(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_listall.go new file mode 100644 index 000000000000..e3a633a2655b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/method_listall.go @@ -0,0 +1,106 @@ +package webapplicationfirewallpolicies + +import ( + "context" + "fmt" + "net/http" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" + "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/odata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ListAllOperationResponse struct { + HttpResponse *http.Response + OData *odata.OData + Model *[]WebApplicationFirewallPolicy +} + +type ListAllCompleteResult struct { + LatestHttpResponse *http.Response + Items []WebApplicationFirewallPolicy +} + +type ListAllCustomPager struct { + NextLink *odata.Link `json:"nextLink"` +} + +func (p *ListAllCustomPager) NextPageLink() *odata.Link { + defer func() { + p.NextLink = nil + }() + + return p.NextLink +} + +// ListAll ... +func (c WebApplicationFirewallPoliciesClient) ListAll(ctx context.Context, id commonids.SubscriptionId) (result ListAllOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusOK, + }, + HttpMethod: http.MethodGet, + Pager: &ListAllCustomPager{}, + Path: fmt.Sprintf("%s/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + var resp *client.Response + resp, err = req.ExecutePaged(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + var values struct { + Values *[]WebApplicationFirewallPolicy `json:"value"` + } + if err = resp.Unmarshal(&values); err != nil { + return + } + + result.Model = values.Values + + return +} + +// ListAllComplete retrieves all the results into a single object +func (c WebApplicationFirewallPoliciesClient) ListAllComplete(ctx context.Context, id commonids.SubscriptionId) (ListAllCompleteResult, error) { + return c.ListAllCompleteMatchingPredicate(ctx, id, WebApplicationFirewallPolicyOperationPredicate{}) +} + +// ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate +func (c WebApplicationFirewallPoliciesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate WebApplicationFirewallPolicyOperationPredicate) (result ListAllCompleteResult, err error) { + items := make([]WebApplicationFirewallPolicy, 0) + + resp, err := c.ListAll(ctx, id) + if err != nil { + result.LatestHttpResponse = resp.HttpResponse + err = fmt.Errorf("loading results: %+v", err) + return + } + if resp.Model != nil { + for _, v := range *resp.Model { + if predicate.Matches(v) { + items = append(items, v) + } + } + } + + result = ListAllCompleteResult{ + LatestHttpResponse: resp.HttpResponse, + Items: items, + } + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgateway.go new file mode 100644 index 000000000000..69aa82140eaf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgateway.go @@ -0,0 +1,21 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificate.go new file mode 100644 index 000000000000..74175523bc12 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificate.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAuthenticationCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayAuthenticationCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificatepropertiesformat.go new file mode 100644 index 000000000000..7536ffa24393 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayauthenticationcertificatepropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAuthenticationCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayautoscaleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayautoscaleconfiguration.go new file mode 100644 index 000000000000..06e7df4e24e0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayautoscaleconfiguration.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayAutoscaleConfiguration struct { + MaxCapacity *int64 `json:"maxCapacity,omitempty"` + MinCapacity int64 `json:"minCapacity"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddress.go new file mode 100644 index 000000000000..dcc624a13aa0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddress.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddress struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspool.go new file mode 100644 index 000000000000..0f188b359ad4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspool.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..64a4ed2e8366 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendaddresspoolpropertiesformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendAddressPoolPropertiesFormat struct { + BackendAddresses *[]ApplicationGatewayBackendAddress `json:"backendAddresses,omitempty"` + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettings.go new file mode 100644 index 000000000000..052f312d7b33 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettings.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHTTPSettings struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendHTTPSettingsPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettingspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettingspropertiesformat.go new file mode 100644 index 000000000000..16305b5de819 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendhttpsettingspropertiesformat.go @@ -0,0 +1,21 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendHTTPSettingsPropertiesFormat struct { + AffinityCookieName *string `json:"affinityCookieName,omitempty"` + AuthenticationCertificates *[]SubResource `json:"authenticationCertificates,omitempty"` + ConnectionDraining *ApplicationGatewayConnectionDraining `json:"connectionDraining,omitempty"` + CookieBasedAffinity *ApplicationGatewayCookieBasedAffinity `json:"cookieBasedAffinity,omitempty"` + HostName *string `json:"hostName,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + Port *int64 `json:"port,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + ProbeEnabled *bool `json:"probeEnabled,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestTimeout *int64 `json:"requestTimeout,omitempty"` + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettings.go new file mode 100644 index 000000000000..1bc8a5c5fe1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettings.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendSettings struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayBackendSettingsPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettingspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettingspropertiesformat.go new file mode 100644 index 000000000000..5d5f77f3c8dd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaybackendsettingspropertiesformat.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayBackendSettingsPropertiesFormat struct { + HostName *string `json:"hostName,omitempty"` + PickHostNameFromBackendAddress *bool `json:"pickHostNameFromBackendAddress,omitempty"` + Port *int64 `json:"port,omitempty"` + Probe *SubResource `json:"probe,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + TrustedRootCertificates *[]SubResource `json:"trustedRootCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayclientauthconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayclientauthconfiguration.go new file mode 100644 index 000000000000..36e0f43021db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayclientauthconfiguration.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayClientAuthConfiguration struct { + VerifyClientCertIssuerDN *bool `json:"verifyClientCertIssuerDN,omitempty"` + VerifyClientRevocation *ApplicationGatewayClientRevocationOptions `json:"verifyClientRevocation,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayconnectiondraining.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayconnectiondraining.go new file mode 100644 index 000000000000..369c8494e6fe --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayconnectiondraining.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayConnectionDraining struct { + DrainTimeoutInSec int64 `json:"drainTimeoutInSec"` + Enabled bool `json:"enabled"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaycustomerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaycustomerror.go new file mode 100644 index 000000000000..b1f6dd22b0d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaycustomerror.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayCustomError struct { + CustomErrorPageURL *string `json:"customErrorPageUrl,omitempty"` + StatusCode *ApplicationGatewayCustomErrorStatusCode `json:"statusCode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewalldisabledrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewalldisabledrulegroup.go new file mode 100644 index 000000000000..c88a33b735c1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewalldisabledrulegroup.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallDisabledRuleGroup struct { + RuleGroupName string `json:"ruleGroupName"` + Rules *[]int64 `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewallexclusion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewallexclusion.go new file mode 100644 index 000000000000..541e5052e8f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfirewallexclusion.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFirewallExclusion struct { + MatchVariable string `json:"matchVariable"` + Selector string `json:"selector"` + SelectorMatchOperator string `json:"selectorMatchOperator"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayforcontainersreferencedefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayforcontainersreferencedefinition.go new file mode 100644 index 000000000000..2a18fd8a8661 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayforcontainersreferencedefinition.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayForContainersReferenceDefinition struct { + Id string `json:"id"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfiguration.go new file mode 100644 index 000000000000..f5f9c5bebc72 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..1b61dc71c1d9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendipconfigurationpropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendIPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConfiguration *SubResource `json:"privateLinkConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *SubResource `json:"publicIPAddress,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendport.go new file mode 100644 index 000000000000..dfcb5e52ee38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendport.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendPort struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayFrontendPortPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendportpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendportpropertiesformat.go new file mode 100644 index 000000000000..d37b168d0aa4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayfrontendportpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayFrontendPortPropertiesFormat struct { + Port *int64 `json:"port,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayglobalconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayglobalconfiguration.go new file mode 100644 index 000000000000..b80dabed9a0c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayglobalconfiguration.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayGlobalConfiguration struct { + EnableRequestBuffering *bool `json:"enableRequestBuffering,omitempty"` + EnableResponseBuffering *bool `json:"enableResponseBuffering,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayheaderconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayheaderconfiguration.go new file mode 100644 index 000000000000..7ffc4b3c8c84 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayheaderconfiguration.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHeaderConfiguration struct { + HeaderName *string `json:"headerName,omitempty"` + HeaderValue *string `json:"headerValue,omitempty"` + HeaderValueMatcher *HeaderValueMatcher `json:"headerValueMatcher,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistener.go new file mode 100644 index 000000000000..0fd70bac2011 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistener.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHTTPListener struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayHTTPListenerPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistenerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistenerpropertiesformat.go new file mode 100644 index 000000000000..9c4eb515f42b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayhttplistenerpropertiesformat.go @@ -0,0 +1,18 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayHTTPListenerPropertiesFormat struct { + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *SubResource `json:"frontendPort,omitempty"` + HostName *string `json:"hostName,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequireServerNameIndication *bool `json:"requireServerNameIndication,omitempty"` + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + SslProfile *SubResource `json:"sslProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfiguration.go new file mode 100644 index 000000000000..6ffd65f71c2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..e8482b21e603 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayipconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayIPConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistener.go new file mode 100644 index 000000000000..71fe702c98e9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistener.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayListener struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayListenerPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistenerpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistenerpropertiesformat.go new file mode 100644 index 000000000000..ceffb59e3b15 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaylistenerpropertiesformat.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayListenerPropertiesFormat struct { + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *SubResource `json:"frontendPort,omitempty"` + HostNames *[]string `json:"hostNames,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SslCertificate *SubResource `json:"sslCertificate,omitempty"` + SslProfile *SubResource `json:"sslProfile,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicy.go new file mode 100644 index 000000000000..55e8713746cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicy.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayLoadDistributionPolicyPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicypropertiesformat.go new file mode 100644 index 000000000000..fe721166bf2f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributionpolicypropertiesformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionPolicyPropertiesFormat struct { + LoadDistributionAlgorithm *ApplicationGatewayLoadDistributionAlgorithm `json:"loadDistributionAlgorithm,omitempty"` + LoadDistributionTargets *[]ApplicationGatewayLoadDistributionTarget `json:"loadDistributionTargets,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontarget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontarget.go new file mode 100644 index 000000000000..d361c4e3d978 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontarget.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionTarget struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayLoadDistributionTargetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontargetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontargetpropertiesformat.go new file mode 100644 index 000000000000..6ba821b2e825 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayloaddistributiontargetpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayLoadDistributionTargetPropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + WeightPerServer *int64 `json:"weightPerServer,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrule.go new file mode 100644 index 000000000000..992b948c5589 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPathRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPathRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrulepropertiesformat.go new file mode 100644 index 000000000000..5c8b00da0850 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypathrulepropertiesformat.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPathRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` + Paths *[]string `json:"paths,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnection.go new file mode 100644 index 000000000000..5b45596cedc7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnection.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnectionproperties.go new file mode 100644 index 000000000000..c6a900feb31d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivateendpointconnectionproperties.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfiguration.go new file mode 100644 index 000000000000..73e8756981a1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateLinkConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfigurationproperties.go new file mode 100644 index 000000000000..8855a67b9ce5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkconfigurationproperties.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkConfigurationProperties struct { + IPConfigurations *[]ApplicationGatewayPrivateLinkIPConfiguration `json:"ipConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfiguration.go new file mode 100644 index 000000000000..ce8e67a68d09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayPrivateLinkIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfigurationproperties.go new file mode 100644 index 000000000000..ff68d2052d79 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprivatelinkipconfigurationproperties.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPrivateLinkIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobe.go new file mode 100644 index 000000000000..9c935a9fbba0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobe.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbe struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayProbePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobehealthresponsematch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobehealthresponsematch.go new file mode 100644 index 000000000000..20c18109ec09 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobehealthresponsematch.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbeHealthResponseMatch struct { + Body *string `json:"body,omitempty"` + StatusCodes *[]string `json:"statusCodes,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobepropertiesformat.go new file mode 100644 index 000000000000..b36845c57bf8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayprobepropertiesformat.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayProbePropertiesFormat struct { + Host *string `json:"host,omitempty"` + Interval *int64 `json:"interval,omitempty"` + Match *ApplicationGatewayProbeHealthResponseMatch `json:"match,omitempty"` + MinServers *int64 `json:"minServers,omitempty"` + Path *string `json:"path,omitempty"` + PickHostNameFromBackendHTTPSettings *bool `json:"pickHostNameFromBackendHttpSettings,omitempty"` + PickHostNameFromBackendSettings *bool `json:"pickHostNameFromBackendSettings,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *ApplicationGatewayProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + UnhealthyThreshold *int64 `json:"unhealthyThreshold,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypropertiesformat.go new file mode 100644 index 000000000000..6cdbb059a1ba --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaypropertiesformat.go @@ -0,0 +1,43 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayPropertiesFormat struct { + AuthenticationCertificates *[]ApplicationGatewayAuthenticationCertificate `json:"authenticationCertificates,omitempty"` + AutoscaleConfiguration *ApplicationGatewayAutoscaleConfiguration `json:"autoscaleConfiguration,omitempty"` + BackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"backendAddressPools,omitempty"` + BackendHTTPSettingsCollection *[]ApplicationGatewayBackendHTTPSettings `json:"backendHttpSettingsCollection,omitempty"` + BackendSettingsCollection *[]ApplicationGatewayBackendSettings `json:"backendSettingsCollection,omitempty"` + CustomErrorConfigurations *[]ApplicationGatewayCustomError `json:"customErrorConfigurations,omitempty"` + DefaultPredefinedSslPolicy *ApplicationGatewaySslPolicyName `json:"defaultPredefinedSslPolicy,omitempty"` + EnableFips *bool `json:"enableFips,omitempty"` + EnableHTTP2 *bool `json:"enableHttp2,omitempty"` + FirewallPolicy *SubResource `json:"firewallPolicy,omitempty"` + ForceFirewallPolicyAssociation *bool `json:"forceFirewallPolicyAssociation,omitempty"` + FrontendIPConfigurations *[]ApplicationGatewayFrontendIPConfiguration `json:"frontendIPConfigurations,omitempty"` + FrontendPorts *[]ApplicationGatewayFrontendPort `json:"frontendPorts,omitempty"` + GatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"gatewayIPConfigurations,omitempty"` + GlobalConfiguration *ApplicationGatewayGlobalConfiguration `json:"globalConfiguration,omitempty"` + HTTPListeners *[]ApplicationGatewayHTTPListener `json:"httpListeners,omitempty"` + Listeners *[]ApplicationGatewayListener `json:"listeners,omitempty"` + LoadDistributionPolicies *[]ApplicationGatewayLoadDistributionPolicy `json:"loadDistributionPolicies,omitempty"` + OperationalState *ApplicationGatewayOperationalState `json:"operationalState,omitempty"` + PrivateEndpointConnections *[]ApplicationGatewayPrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + PrivateLinkConfigurations *[]ApplicationGatewayPrivateLinkConfiguration `json:"privateLinkConfigurations,omitempty"` + Probes *[]ApplicationGatewayProbe `json:"probes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfigurations *[]ApplicationGatewayRedirectConfiguration `json:"redirectConfigurations,omitempty"` + RequestRoutingRules *[]ApplicationGatewayRequestRoutingRule `json:"requestRoutingRules,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + RewriteRuleSets *[]ApplicationGatewayRewriteRuleSet `json:"rewriteRuleSets,omitempty"` + RoutingRules *[]ApplicationGatewayRoutingRule `json:"routingRules,omitempty"` + Sku *ApplicationGatewaySku `json:"sku,omitempty"` + SslCertificates *[]ApplicationGatewaySslCertificate `json:"sslCertificates,omitempty"` + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + SslProfiles *[]ApplicationGatewaySslProfile `json:"sslProfiles,omitempty"` + TrustedClientCertificates *[]ApplicationGatewayTrustedClientCertificate `json:"trustedClientCertificates,omitempty"` + TrustedRootCertificates *[]ApplicationGatewayTrustedRootCertificate `json:"trustedRootCertificates,omitempty"` + UrlPathMaps *[]ApplicationGatewayURLPathMap `json:"urlPathMaps,omitempty"` + WebApplicationFirewallConfiguration *ApplicationGatewayWebApplicationFirewallConfiguration `json:"webApplicationFirewallConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfiguration.go new file mode 100644 index 000000000000..85eed147eb29 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRedirectConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRedirectConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfigurationpropertiesformat.go new file mode 100644 index 000000000000..6103c017cb45 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayredirectconfigurationpropertiesformat.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRedirectConfigurationPropertiesFormat struct { + IncludePath *bool `json:"includePath,omitempty"` + IncludeQueryString *bool `json:"includeQueryString,omitempty"` + PathRules *[]SubResource `json:"pathRules,omitempty"` + RedirectType *ApplicationGatewayRedirectType `json:"redirectType,omitempty"` + RequestRoutingRules *[]SubResource `json:"requestRoutingRules,omitempty"` + TargetListener *SubResource `json:"targetListener,omitempty"` + TargetURL *string `json:"targetUrl,omitempty"` + UrlPathMaps *[]SubResource `json:"urlPathMaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrule.go new file mode 100644 index 000000000000..9eb6ffe9c4aa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRequestRoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRequestRoutingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrulepropertiesformat.go new file mode 100644 index 000000000000..53dc9f99474e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrequestroutingrulepropertiesformat.go @@ -0,0 +1,17 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRequestRoutingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendHTTPSettings *SubResource `json:"backendHttpSettings,omitempty"` + HTTPListener *SubResource `json:"httpListener,omitempty"` + LoadDistributionPolicy *SubResource `json:"loadDistributionPolicy,omitempty"` + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RedirectConfiguration *SubResource `json:"redirectConfiguration,omitempty"` + RewriteRuleSet *SubResource `json:"rewriteRuleSet,omitempty"` + RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` + UrlPathMap *SubResource `json:"urlPathMap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterule.go new file mode 100644 index 000000000000..21ce81c5a24d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterule.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRule struct { + ActionSet *ApplicationGatewayRewriteRuleActionSet `json:"actionSet,omitempty"` + Conditions *[]ApplicationGatewayRewriteRuleCondition `json:"conditions,omitempty"` + Name *string `json:"name,omitempty"` + RuleSequence *int64 `json:"ruleSequence,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleactionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleactionset.go new file mode 100644 index 000000000000..18cc34e55af8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleactionset.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleActionSet struct { + RequestHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"requestHeaderConfigurations,omitempty"` + ResponseHeaderConfigurations *[]ApplicationGatewayHeaderConfiguration `json:"responseHeaderConfigurations,omitempty"` + UrlConfiguration *ApplicationGatewayURLConfiguration `json:"urlConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulecondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulecondition.go new file mode 100644 index 000000000000..1e70a94ea801 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulecondition.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleCondition struct { + IgnoreCase *bool `json:"ignoreCase,omitempty"` + Negate *bool `json:"negate,omitempty"` + Pattern *string `json:"pattern,omitempty"` + Variable *string `json:"variable,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleset.go new file mode 100644 index 000000000000..a25c70e4a054 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriteruleset.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleSet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRewriteRuleSetPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulesetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulesetpropertiesformat.go new file mode 100644 index 000000000000..3a1e33742175 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayrewriterulesetpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRewriteRuleSetPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RewriteRules *[]ApplicationGatewayRewriteRule `json:"rewriteRules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrule.go new file mode 100644 index 000000000000..78053b23a9ca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRoutingRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayRoutingRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrulepropertiesformat.go new file mode 100644 index 000000000000..05ed98ab5974 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayroutingrulepropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayRoutingRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendSettings *SubResource `json:"backendSettings,omitempty"` + Listener *SubResource `json:"listener,omitempty"` + Priority int64 `json:"priority"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RuleType *ApplicationGatewayRequestRoutingRuleType `json:"ruleType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysku.go new file mode 100644 index 000000000000..af2d1c3c1e80 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysku.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySku struct { + Capacity *int64 `json:"capacity,omitempty"` + Family *ApplicationGatewaySkuFamily `json:"family,omitempty"` + Name *ApplicationGatewaySkuName `json:"name,omitempty"` + Tier *ApplicationGatewayTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificate.go new file mode 100644 index 000000000000..328f6a90d883 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificate.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificatepropertiesformat.go new file mode 100644 index 000000000000..f087bfec9a8d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslcertificatepropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + Password *string `json:"password,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicCertData *string `json:"publicCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslpolicy.go new file mode 100644 index 000000000000..ae860f1460f4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslpolicy.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslPolicy struct { + CipherSuites *[]ApplicationGatewaySslCipherSuite `json:"cipherSuites,omitempty"` + DisabledSslProtocols *[]ApplicationGatewaySslProtocol `json:"disabledSslProtocols,omitempty"` + MinProtocolVersion *ApplicationGatewaySslProtocol `json:"minProtocolVersion,omitempty"` + PolicyName *ApplicationGatewaySslPolicyName `json:"policyName,omitempty"` + PolicyType *ApplicationGatewaySslPolicyType `json:"policyType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofile.go new file mode 100644 index 000000000000..8c1d0630c2ff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofile.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewaySslProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofilepropertiesformat.go new file mode 100644 index 000000000000..b89279b0c7f8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaysslprofilepropertiesformat.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewaySslProfilePropertiesFormat struct { + ClientAuthConfiguration *ApplicationGatewayClientAuthConfiguration `json:"clientAuthConfiguration,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SslPolicy *ApplicationGatewaySslPolicy `json:"sslPolicy,omitempty"` + TrustedClientCertificates *[]SubResource `json:"trustedClientCertificates,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificate.go new file mode 100644 index 000000000000..f2fb2244e71a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificate.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedClientCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayTrustedClientCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificatepropertiesformat.go new file mode 100644 index 000000000000..ac7454cb8f4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedclientcertificatepropertiesformat.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedClientCertificatePropertiesFormat struct { + ClientCertIssuerDN *string `json:"clientCertIssuerDN,omitempty"` + Data *string `json:"data,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ValidatedCertData *string `json:"validatedCertData,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificate.go new file mode 100644 index 000000000000..9deacd55fe89 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificate.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedRootCertificate struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayTrustedRootCertificatePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificatepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificatepropertiesformat.go new file mode 100644 index 000000000000..f79bf663f765 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaytrustedrootcertificatepropertiesformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayTrustedRootCertificatePropertiesFormat struct { + Data *string `json:"data,omitempty"` + KeyVaultSecretId *string `json:"keyVaultSecretId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlconfiguration.go new file mode 100644 index 000000000000..c6de0fdbc1bb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlconfiguration.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLConfiguration struct { + ModifiedPath *string `json:"modifiedPath,omitempty"` + ModifiedQueryString *string `json:"modifiedQueryString,omitempty"` + Reroute *bool `json:"reroute,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmap.go new file mode 100644 index 000000000000..96a3dc6d985c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmap.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLPathMap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationGatewayURLPathMapPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmappropertiesformat.go new file mode 100644 index 000000000000..e02847a3fd97 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewayurlpathmappropertiesformat.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayURLPathMapPropertiesFormat struct { + DefaultBackendAddressPool *SubResource `json:"defaultBackendAddressPool,omitempty"` + DefaultBackendHTTPSettings *SubResource `json:"defaultBackendHttpSettings,omitempty"` + DefaultLoadDistributionPolicy *SubResource `json:"defaultLoadDistributionPolicy,omitempty"` + DefaultRedirectConfiguration *SubResource `json:"defaultRedirectConfiguration,omitempty"` + DefaultRewriteRuleSet *SubResource `json:"defaultRewriteRuleSet,omitempty"` + PathRules *[]ApplicationGatewayPathRule `json:"pathRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaywebapplicationfirewallconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaywebapplicationfirewallconfiguration.go new file mode 100644 index 000000000000..0ccb185da05d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationgatewaywebapplicationfirewallconfiguration.go @@ -0,0 +1,17 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationGatewayWebApplicationFirewallConfiguration struct { + DisabledRuleGroups *[]ApplicationGatewayFirewallDisabledRuleGroup `json:"disabledRuleGroups,omitempty"` + Enabled bool `json:"enabled"` + Exclusions *[]ApplicationGatewayFirewallExclusion `json:"exclusions,omitempty"` + FileUploadLimitInMb *int64 `json:"fileUploadLimitInMb,omitempty"` + FirewallMode ApplicationGatewayFirewallMode `json:"firewallMode"` + MaxRequestBodySize *int64 `json:"maxRequestBodySize,omitempty"` + MaxRequestBodySizeInKb *int64 `json:"maxRequestBodySizeInKb,omitempty"` + RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygroup.go new file mode 100644 index 000000000000..8dccd748428d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygroup.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..2713b23e0a59 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_applicationsecuritygrouppropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ApplicationSecurityGroupPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspool.go new file mode 100644 index 000000000000..a5f3d1e0367d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspool.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPool struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *BackendAddressPoolPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspoolpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspoolpropertiesformat.go new file mode 100644 index 000000000000..ddf54b501167 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_backendaddresspoolpropertiesformat.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackendAddressPoolPropertiesFormat struct { + BackendIPConfigurations *[]NetworkInterfaceIPConfiguration `json:"backendIPConfigurations,omitempty"` + DrainPeriodInSeconds *int64 `json:"drainPeriodInSeconds,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancerBackendAddresses *[]LoadBalancerBackendAddress `json:"loadBalancerBackendAddresses,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + Location *string `json:"location,omitempty"` + OutboundRule *SubResource `json:"outboundRule,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SyncMode *SyncMode `json:"syncMode,omitempty"` + TunnelInterfaces *[]GatewayLoadBalancerTunnelInterface `json:"tunnelInterfaces,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_customdnsconfigpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_customdnsconfigpropertiesformat.go new file mode 100644 index 000000000000..e9022fbeb4fc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_customdnsconfigpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CustomDnsConfigPropertiesFormat struct { + Fqdn *string `json:"fqdn,omitempty"` + IPAddresses *[]string `json:"ipAddresses,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ddossettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ddossettings.go new file mode 100644 index 000000000000..4f7e1e207642 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ddossettings.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DdosSettings struct { + DdosProtectionPlan *SubResource `json:"ddosProtectionPlan,omitempty"` + ProtectionMode *DdosSettingsProtectionMode `json:"protectionMode,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_delegation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_delegation.go new file mode 100644 index 000000000000..9a088e2a5077 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_delegation.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Delegation struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceDelegationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exceptionentry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exceptionentry.go new file mode 100644 index 000000000000..32ca8f8fa0a3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exceptionentry.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExceptionEntry struct { + ExceptionManagedRuleSets *[]ExclusionManagedRuleSet `json:"exceptionManagedRuleSets,omitempty"` + MatchVariable ExceptionEntryMatchVariable `json:"matchVariable"` + Selector *string `json:"selector,omitempty"` + SelectorMatchOperator *ExceptionEntrySelectorMatchOperator `json:"selectorMatchOperator,omitempty"` + ValueMatchOperator ExceptionEntryValueMatchOperator `json:"valueMatchOperator"` + Values *[]string `json:"values,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrule.go new file mode 100644 index 000000000000..ffa39b22711a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrule.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExclusionManagedRule struct { + RuleId string `json:"ruleId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrulegroup.go new file mode 100644 index 000000000000..29d30ef6bc1f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedrulegroup.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExclusionManagedRuleGroup struct { + RuleGroupName string `json:"ruleGroupName"` + Rules *[]ExclusionManagedRule `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedruleset.go new file mode 100644 index 000000000000..cb569797cecb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_exclusionmanagedruleset.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ExclusionManagedRuleSet struct { + RuleGroups *[]ExclusionManagedRuleGroup `json:"ruleGroups,omitempty"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlog.go new file mode 100644 index 000000000000..e1c8c7963630 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlog.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLog struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FlowLogPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogformatparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogformatparameters.go new file mode 100644 index 000000000000..8e97873a7c39 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogformatparameters.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogFormatParameters struct { + Type *FlowLogFormatType `json:"type,omitempty"` + Version *int64 `json:"version,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogpropertiesformat.go new file mode 100644 index 000000000000..7afcaba37f95 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_flowlogpropertiesformat.go @@ -0,0 +1,16 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FlowLogPropertiesFormat struct { + Enabled *bool `json:"enabled,omitempty"` + EnabledFilteringCriteria *string `json:"enabledFilteringCriteria,omitempty"` + FlowAnalyticsConfiguration *TrafficAnalyticsProperties `json:"flowAnalyticsConfiguration,omitempty"` + Format *FlowLogFormatParameters `json:"format,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RetentionPolicy *RetentionPolicyParameters `json:"retentionPolicy,omitempty"` + StorageId string `json:"storageId"` + TargetResourceGuid *string `json:"targetResourceGuid,omitempty"` + TargetResourceId string `json:"targetResourceId"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfiguration.go new file mode 100644 index 000000000000..717217cc3a20 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfiguration.go @@ -0,0 +1,17 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *FrontendIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..4f11b119df9f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_frontendipconfigurationpropertiesformat.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FrontendIPConfigurationPropertiesFormat struct { + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + InboundNatPools *[]SubResource `json:"inboundNatPools,omitempty"` + InboundNatRules *[]SubResource `json:"inboundNatRules,omitempty"` + LoadBalancingRules *[]SubResource `json:"loadBalancingRules,omitempty"` + OutboundRules *[]SubResource `json:"outboundRules,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_gatewayloadbalancertunnelinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_gatewayloadbalancertunnelinterface.go new file mode 100644 index 000000000000..698c1c6a1b4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_gatewayloadbalancertunnelinterface.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GatewayLoadBalancerTunnelInterface struct { + Identifier *int64 `json:"identifier,omitempty"` + Port *int64 `json:"port,omitempty"` + Protocol *GatewayLoadBalancerTunnelProtocol `json:"protocol,omitempty"` + Type *GatewayLoadBalancerTunnelInterfaceType `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyusersession.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyusersession.go new file mode 100644 index 000000000000..5995831381a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyusersession.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GroupByUserSession struct { + GroupByVariables []GroupByVariable `json:"groupByVariables"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyvariable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyvariable.go new file mode 100644 index 000000000000..132602a87584 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_groupbyvariable.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type GroupByVariable struct { + VariableName ApplicationGatewayFirewallUserSessionVariable `json:"variableName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_headervaluematcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_headervaluematcher.go new file mode 100644 index 000000000000..d88a3a6eea0b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_headervaluematcher.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type HeaderValueMatcher struct { + IgnoreCase *bool `json:"ignoreCase,omitempty"` + Negate *bool `json:"negate,omitempty"` + Pattern *string `json:"pattern,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrule.go new file mode 100644 index 000000000000..f9908a651353 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *InboundNatRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrulepropertiesformat.go new file mode 100644 index 000000000000..2ed26d6a6d00 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_inboundnatrulepropertiesformat.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type InboundNatRulePropertiesFormat struct { + BackendAddressPool *SubResource `json:"backendAddressPool,omitempty"` + BackendIPConfiguration *NetworkInterfaceIPConfiguration `json:"backendIPConfiguration,omitempty"` + BackendPort *int64 `json:"backendPort,omitempty"` + EnableFloatingIP *bool `json:"enableFloatingIP,omitempty"` + EnableTcpReset *bool `json:"enableTcpReset,omitempty"` + FrontendIPConfiguration *SubResource `json:"frontendIPConfiguration,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + FrontendPortRangeEnd *int64 `json:"frontendPortRangeEnd,omitempty"` + FrontendPortRangeStart *int64 `json:"frontendPortRangeStart,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + Protocol *TransportProtocol `json:"protocol,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfiguration.go new file mode 100644 index 000000000000..ee1ee9f9ce37 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfiguration.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofile.go new file mode 100644 index 000000000000..4467a2511820 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofile.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfile struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *IPConfigurationProfilePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofilepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofilepropertiesformat.go new file mode 100644 index 000000000000..4746cb9a9219 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationprofilepropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationProfilePropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..6455af984dfc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_ipconfigurationpropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPConfigurationPropertiesFormat struct { + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_iptag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_iptag.go new file mode 100644 index 000000000000..da603122799b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_iptag.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IPTag struct { + IPTagType *string `json:"ipTagType,omitempty"` + Tag *string `json:"tag,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddress.go new file mode 100644 index 000000000000..07977c08269a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddress.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddress struct { + Name *string `json:"name,omitempty"` + Properties *LoadBalancerBackendAddressPropertiesFormat `json:"properties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddresspropertiesformat.go new file mode 100644 index 000000000000..ca60fdf87350 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_loadbalancerbackendaddresspropertiesformat.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type LoadBalancerBackendAddressPropertiesFormat struct { + AdminState *LoadBalancerBackendAddressAdminState `json:"adminState,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + InboundNatRulesPortMapping *[]NatRulePortMapping `json:"inboundNatRulesPortMapping,omitempty"` + LoadBalancerFrontendIPConfiguration *SubResource `json:"loadBalancerFrontendIPConfiguration,omitempty"` + NetworkInterfaceIPConfiguration *SubResource `json:"networkInterfaceIPConfiguration,omitempty"` + Subnet *SubResource `json:"subnet,omitempty"` + VirtualNetwork *SubResource `json:"virtualNetwork,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulegroupoverride.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulegroupoverride.go new file mode 100644 index 000000000000..2810e8e0e4d2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulegroupoverride.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedRuleGroupOverride struct { + RuleGroupName string `json:"ruleGroupName"` + Rules *[]ManagedRuleOverride `json:"rules,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleoverride.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleoverride.go new file mode 100644 index 000000000000..6e7f1e811536 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleoverride.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedRuleOverride struct { + Action *ActionType `json:"action,omitempty"` + RuleId string `json:"ruleId"` + Sensitivity *SensitivityType `json:"sensitivity,omitempty"` + State *ManagedRuleEnabledState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulesdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulesdefinition.go new file mode 100644 index 000000000000..a975ea21235b --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedrulesdefinition.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedRulesDefinition struct { + Exceptions *[]ExceptionEntry `json:"exceptions,omitempty"` + Exclusions *[]OwaspCrsExclusionEntry `json:"exclusions,omitempty"` + ManagedRuleSets []ManagedRuleSet `json:"managedRuleSets"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleset.go new file mode 100644 index 000000000000..2bbf971c7928 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_managedruleset.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ManagedRuleSet struct { + RuleGroupOverrides *[]ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` + RuleSetType string `json:"ruleSetType"` + RuleSetVersion string `json:"ruleSetVersion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchcondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchcondition.go new file mode 100644 index 000000000000..c8d3e722c759 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchcondition.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MatchCondition struct { + MatchValues []string `json:"matchValues"` + MatchVariables []MatchVariable `json:"matchVariables"` + NegationConditon *bool `json:"negationConditon,omitempty"` + Operator WebApplicationFirewallOperator `json:"operator"` + Transforms *[]WebApplicationFirewallTransform `json:"transforms,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchvariable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchvariable.go new file mode 100644 index 000000000000..bd0473317b2d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_matchvariable.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type MatchVariable struct { + Selector *string `json:"selector,omitempty"` + VariableName WebApplicationFirewallMatchVariable `json:"variableName"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgateway.go new file mode 100644 index 000000000000..4a594a57232e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgateway.go @@ -0,0 +1,20 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGateway struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NatGatewayPropertiesFormat `json:"properties,omitempty"` + Sku *NatGatewaySku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaypropertiesformat.go new file mode 100644 index 000000000000..30e0ed98075d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaypropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewayPropertiesFormat struct { + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddresses *[]SubResource `json:"publicIpAddresses,omitempty"` + PublicIPPrefixes *[]SubResource `json:"publicIpPrefixes,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Subnets *[]SubResource `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaysku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaysku.go new file mode 100644 index 000000000000..01f9595dd478 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natgatewaysku.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatGatewaySku struct { + Name *NatGatewaySkuName `json:"name,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natruleportmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natruleportmapping.go new file mode 100644 index 000000000000..636fb66e30f9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_natruleportmapping.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NatRulePortMapping struct { + BackendPort *int64 `json:"backendPort,omitempty"` + FrontendPort *int64 `json:"frontendPort,omitempty"` + InboundNatRuleName *string `json:"inboundNatRuleName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterface.go new file mode 100644 index 000000000000..5f43f78eff13 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterface.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterface struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfacePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacednssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacednssettings.go new file mode 100644 index 000000000000..2d9f1326e9a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacednssettings.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceDnsSettings struct { + AppliedDnsServers *[]string `json:"appliedDnsServers,omitempty"` + DnsServers *[]string `json:"dnsServers,omitempty"` + InternalDnsNameLabel *string `json:"internalDnsNameLabel,omitempty"` + InternalDomainNameSuffix *string `json:"internalDomainNameSuffix,omitempty"` + InternalFqdn *string `json:"internalFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfiguration.go new file mode 100644 index 000000000000..80650073a43c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceIPConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go new file mode 100644 index 000000000000..ed9c49c6aa36 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationprivatelinkconnectionproperties.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties struct { + Fqdns *[]string `json:"fqdns,omitempty"` + GroupId *string `json:"groupId,omitempty"` + RequiredMemberName *string `json:"requiredMemberName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationpropertiesformat.go new file mode 100644 index 000000000000..db24b56da389 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfaceipconfigurationpropertiesformat.go @@ -0,0 +1,22 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceIPConfigurationPropertiesFormat struct { + ApplicationGatewayBackendAddressPools *[]ApplicationGatewayBackendAddressPool `json:"applicationGatewayBackendAddressPools,omitempty"` + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + GatewayLoadBalancer *SubResource `json:"gatewayLoadBalancer,omitempty"` + LoadBalancerBackendAddressPools *[]BackendAddressPool `json:"loadBalancerBackendAddressPools,omitempty"` + LoadBalancerInboundNatRules *[]InboundNatRule `json:"loadBalancerInboundNatRules,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressPrefixLength *int64 `json:"privateIPAddressPrefixLength,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + PrivateLinkConnectionProperties *NetworkInterfaceIPConfigurationPrivateLinkConnectionProperties `json:"privateLinkConnectionProperties,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddress *PublicIPAddress `json:"publicIPAddress,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` + VirtualNetworkTaps *[]VirtualNetworkTap `json:"virtualNetworkTaps,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacepropertiesformat.go new file mode 100644 index 000000000000..e24f37ad4e47 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacepropertiesformat.go @@ -0,0 +1,29 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfacePropertiesFormat struct { + AuxiliaryMode *NetworkInterfaceAuxiliaryMode `json:"auxiliaryMode,omitempty"` + AuxiliarySku *NetworkInterfaceAuxiliarySku `json:"auxiliarySku,omitempty"` + DisableTcpStateTracking *bool `json:"disableTcpStateTracking,omitempty"` + DnsSettings *NetworkInterfaceDnsSettings `json:"dnsSettings,omitempty"` + DscpConfiguration *SubResource `json:"dscpConfiguration,omitempty"` + EnableAcceleratedNetworking *bool `json:"enableAcceleratedNetworking,omitempty"` + EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` + HostedWorkloads *[]string `json:"hostedWorkloads,omitempty"` + IPConfigurations *[]NetworkInterfaceIPConfiguration `json:"ipConfigurations,omitempty"` + MacAddress *string `json:"macAddress,omitempty"` + MigrationPhase *NetworkInterfaceMigrationPhase `json:"migrationPhase,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + NicType *NetworkInterfaceNicType `json:"nicType,omitempty"` + Primary *bool `json:"primary,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateLinkService *PrivateLinkService `json:"privateLinkService,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + TapConfigurations *[]NetworkInterfaceTapConfiguration `json:"tapConfigurations,omitempty"` + VirtualMachine *SubResource `json:"virtualMachine,omitempty"` + VnetEncryptionSupported *bool `json:"vnetEncryptionSupported,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfiguration.go new file mode 100644 index 000000000000..559fab4512db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkInterfaceTapConfigurationPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfigurationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfigurationpropertiesformat.go new file mode 100644 index 000000000000..d28ce56ff993 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networkinterfacetapconfigurationpropertiesformat.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkInterfaceTapConfigurationPropertiesFormat struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + VirtualNetworkTap *VirtualNetworkTap `json:"virtualNetworkTap,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygroup.go new file mode 100644 index 000000000000..7edb20a30ebf --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygroup.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroup struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *NetworkSecurityGroupPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygrouppropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygrouppropertiesformat.go new file mode 100644 index 000000000000..63dfb0a37534 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_networksecuritygrouppropertiesformat.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetworkSecurityGroupPropertiesFormat struct { + DefaultSecurityRules *[]SecurityRule `json:"defaultSecurityRules,omitempty"` + FlowLogs *[]FlowLog `json:"flowLogs,omitempty"` + FlushConnection *bool `json:"flushConnection,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + SecurityRules *[]SecurityRule `json:"securityRules,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_owaspcrsexclusionentry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_owaspcrsexclusionentry.go new file mode 100644 index 000000000000..447c5ce3185e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_owaspcrsexclusionentry.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type OwaspCrsExclusionEntry struct { + ExclusionManagedRuleSets *[]ExclusionManagedRuleSet `json:"exclusionManagedRuleSets,omitempty"` + MatchVariable OwaspCrsExclusionEntryMatchVariable `json:"matchVariable"` + Selector string `json:"selector"` + SelectorMatchOperator OwaspCrsExclusionEntrySelectorMatchOperator `json:"selectorMatchOperator"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettings.go new file mode 100644 index 000000000000..a87e7c07bffc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettings.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PolicySettings struct { + CustomBlockResponseBody *string `json:"customBlockResponseBody,omitempty"` + CustomBlockResponseStatusCode *int64 `json:"customBlockResponseStatusCode,omitempty"` + FileUploadEnforcement *bool `json:"fileUploadEnforcement,omitempty"` + FileUploadLimitInMb *int64 `json:"fileUploadLimitInMb,omitempty"` + JsChallengeCookieExpirationInMins *int64 `json:"jsChallengeCookieExpirationInMins,omitempty"` + LogScrubbing *PolicySettingsLogScrubbing `json:"logScrubbing,omitempty"` + MaxRequestBodySizeInKb *int64 `json:"maxRequestBodySizeInKb,omitempty"` + Mode *WebApplicationFirewallMode `json:"mode,omitempty"` + RequestBodyCheck *bool `json:"requestBodyCheck,omitempty"` + RequestBodyEnforcement *bool `json:"requestBodyEnforcement,omitempty"` + RequestBodyInspectLimitInKB *int64 `json:"requestBodyInspectLimitInKB,omitempty"` + State *WebApplicationFirewallEnabledState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettingslogscrubbing.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettingslogscrubbing.go new file mode 100644 index 000000000000..a97418be8671 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_policysettingslogscrubbing.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PolicySettingsLogScrubbing struct { + ScrubbingRules *[]WebApplicationFirewallScrubbingRules `json:"scrubbingRules,omitempty"` + State *WebApplicationFirewallScrubbingState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpoint.go new file mode 100644 index 000000000000..aabcb4ef3843 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpoint.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpoint struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnection.go new file mode 100644 index 000000000000..c66bc0045c73 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnection.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnectionproperties.go new file mode 100644 index 000000000000..dbd38c8e4ca5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointconnectionproperties.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointConnectionProperties struct { + LinkIdentifier *string `json:"linkIdentifier,omitempty"` + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` + PrivateEndpointLocation *string `json:"privateEndpointLocation,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfiguration.go new file mode 100644 index 000000000000..86f24c803d30 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfiguration.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateEndpointIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfigurationproperties.go new file mode 100644 index 000000000000..f40d8cf2be4f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointipconfigurationproperties.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointIPConfigurationProperties struct { + GroupId *string `json:"groupId,omitempty"` + MemberName *string `json:"memberName,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointproperties.go new file mode 100644 index 000000000000..93cab138813a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privateendpointproperties.go @@ -0,0 +1,16 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateEndpointProperties struct { + ApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"applicationSecurityGroups,omitempty"` + CustomDnsConfigs *[]CustomDnsConfigPropertiesFormat `json:"customDnsConfigs,omitempty"` + CustomNetworkInterfaceName *string `json:"customNetworkInterfaceName,omitempty"` + IPConfigurations *[]PrivateEndpointIPConfiguration `json:"ipConfigurations,omitempty"` + ManualPrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"manualPrivateLinkServiceConnections,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateLinkServiceConnections *[]PrivateLinkServiceConnection `json:"privateLinkServiceConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkservice.go new file mode 100644 index 000000000000..8b8ffdc399ee --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkservice.go @@ -0,0 +1,19 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkService struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceProperties `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnection.go new file mode 100644 index 000000000000..ac293dace51d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnection.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnection struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceConnectionProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionproperties.go new file mode 100644 index 000000000000..164ef869982f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionproperties.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionProperties struct { + GroupIds *[]string `json:"groupIds,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + PrivateLinkServiceId *string `json:"privateLinkServiceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RequestMessage *string `json:"requestMessage,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionstate.go new file mode 100644 index 000000000000..3ea66cb99406 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceconnectionstate.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceConnectionState struct { + ActionsRequired *string `json:"actionsRequired,omitempty"` + Description *string `json:"description,omitempty"` + Status *string `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfiguration.go new file mode 100644 index 000000000000..7d17f4661925 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfiguration.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfiguration struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PrivateLinkServiceIPConfigurationProperties `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfigurationproperties.go new file mode 100644 index 000000000000..814df952c033 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceipconfigurationproperties.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceIPConfigurationProperties struct { + Primary *bool `json:"primary,omitempty"` + PrivateIPAddress *string `json:"privateIPAddress,omitempty"` + PrivateIPAddressVersion *IPVersion `json:"privateIPAddressVersion,omitempty"` + PrivateIPAllocationMethod *IPAllocationMethod `json:"privateIPAllocationMethod,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Subnet *Subnet `json:"subnet,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceproperties.go new file mode 100644 index 000000000000..139f2159ef21 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_privatelinkserviceproperties.go @@ -0,0 +1,18 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateLinkServiceProperties struct { + Alias *string `json:"alias,omitempty"` + AutoApproval *ResourceSet `json:"autoApproval,omitempty"` + DestinationIPAddress *string `json:"destinationIPAddress,omitempty"` + EnableProxyProtocol *bool `json:"enableProxyProtocol,omitempty"` + Fqdns *[]string `json:"fqdns,omitempty"` + IPConfigurations *[]PrivateLinkServiceIPConfiguration `json:"ipConfigurations,omitempty"` + LoadBalancerFrontendIPConfigurations *[]FrontendIPConfiguration `json:"loadBalancerFrontendIpConfigurations,omitempty"` + NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Visibility *ResourceSet `json:"visibility,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddress.go new file mode 100644 index 000000000000..6f2116661f4e --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddress.go @@ -0,0 +1,22 @@ +package webapplicationfirewallpolicies + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/edgezones" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddress struct { + Etag *string `json:"etag,omitempty"` + ExtendedLocation *edgezones.Model `json:"extendedLocation,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *PublicIPAddressPropertiesFormat `json:"properties,omitempty"` + Sku *PublicIPAddressSku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddressdnssettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddressdnssettings.go new file mode 100644 index 000000000000..c122bbf9d003 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddressdnssettings.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressDnsSettings struct { + DomainNameLabel *string `json:"domainNameLabel,omitempty"` + DomainNameLabelScope *PublicIPAddressDnsSettingsDomainNameLabelScope `json:"domainNameLabelScope,omitempty"` + Fqdn *string `json:"fqdn,omitempty"` + ReverseFqdn *string `json:"reverseFqdn,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresspropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresspropertiesformat.go new file mode 100644 index 000000000000..76e237783eff --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresspropertiesformat.go @@ -0,0 +1,23 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressPropertiesFormat struct { + DdosSettings *DdosSettings `json:"ddosSettings,omitempty"` + DeleteOption *DeleteOptions `json:"deleteOption,omitempty"` + DnsSettings *PublicIPAddressDnsSettings `json:"dnsSettings,omitempty"` + IPAddress *string `json:"ipAddress,omitempty"` + IPConfiguration *IPConfiguration `json:"ipConfiguration,omitempty"` + IPTags *[]IPTag `json:"ipTags,omitempty"` + IdleTimeoutInMinutes *int64 `json:"idleTimeoutInMinutes,omitempty"` + LinkedPublicIPAddress *PublicIPAddress `json:"linkedPublicIPAddress,omitempty"` + MigrationPhase *PublicIPAddressMigrationPhase `json:"migrationPhase,omitempty"` + NatGateway *NatGateway `json:"natGateway,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + PublicIPAddressVersion *IPVersion `json:"publicIPAddressVersion,omitempty"` + PublicIPAllocationMethod *IPAllocationMethod `json:"publicIPAllocationMethod,omitempty"` + PublicIPPrefix *SubResource `json:"publicIPPrefix,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServicePublicIPAddress *PublicIPAddress `json:"servicePublicIPAddress,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresssku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresssku.go new file mode 100644 index 000000000000..1b8495a46b06 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_publicipaddresssku.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PublicIPAddressSku struct { + Name *PublicIPAddressSkuName `json:"name,omitempty"` + Tier *PublicIPAddressSkuTier `json:"tier,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlink.go new file mode 100644 index 000000000000..8cf0d6ae7540 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlink.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ResourceNavigationLinkFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlinkformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlinkformat.go new file mode 100644 index 000000000000..cfc65feb648a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourcenavigationlinkformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceNavigationLinkFormat struct { + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourceset.go new file mode 100644 index 000000000000..7bd3ff7ff533 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_resourceset.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ResourceSet struct { + Subscriptions *[]string `json:"subscriptions,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_retentionpolicyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_retentionpolicyparameters.go new file mode 100644 index 000000000000..700cf48fcefa --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_retentionpolicyparameters.go @@ -0,0 +1,9 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RetentionPolicyParameters struct { + Days *int64 `json:"days,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_route.go new file mode 100644 index 000000000000..854dbcba973c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_route.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Route struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RoutePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routepropertiesformat.go new file mode 100644 index 000000000000..65879ed15ad3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routepropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RoutePropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + HasBgpOverride *bool `json:"hasBgpOverride,omitempty"` + NextHopIPAddress *string `json:"nextHopIpAddress,omitempty"` + NextHopType RouteNextHopType `json:"nextHopType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetable.go new file mode 100644 index 000000000000..73fdbc844dca --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetable.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTable struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *RouteTablePropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetablepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetablepropertiesformat.go new file mode 100644 index 000000000000..f7082dd7d4a2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_routetablepropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RouteTablePropertiesFormat struct { + DisableBgpRoutePropagation *bool `json:"disableBgpRoutePropagation,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + Routes *[]Route `json:"routes,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrule.go new file mode 100644 index 000000000000..9a8c2e557c71 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrule.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRule struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrulepropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrulepropertiesformat.go new file mode 100644 index 000000000000..d40d084432ce --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_securityrulepropertiesformat.go @@ -0,0 +1,23 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecurityRulePropertiesFormat struct { + Access SecurityRuleAccess `json:"access"` + Description *string `json:"description,omitempty"` + DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` + DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` + DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` + DestinationPortRange *string `json:"destinationPortRange,omitempty"` + DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` + Direction SecurityRuleDirection `json:"direction"` + Priority int64 `json:"priority"` + Protocol SecurityRuleProtocol `json:"protocol"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` + SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` + SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` + SourcePortRange *string `json:"sourcePortRange,omitempty"` + SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlink.go new file mode 100644 index 000000000000..9f75aeaec5b6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlink.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLink struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceAssociationLinkPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlinkpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlinkpropertiesformat.go new file mode 100644 index 000000000000..abae149b7641 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceassociationlinkpropertiesformat.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceAssociationLinkPropertiesFormat struct { + AllowDelete *bool `json:"allowDelete,omitempty"` + Link *string `json:"link,omitempty"` + LinkedResourceType *string `json:"linkedResourceType,omitempty"` + Locations *[]string `json:"locations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_servicedelegationpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_servicedelegationpropertiesformat.go new file mode 100644 index 000000000000..160d9aebc9f7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_servicedelegationpropertiesformat.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceDelegationPropertiesFormat struct { + Actions *[]string `json:"actions,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceName *string `json:"serviceName,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicy.go new file mode 100644 index 000000000000..ae5e0fd396a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicy.go @@ -0,0 +1,15 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinition.go new file mode 100644 index 000000000000..ac60c21f09b8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinition.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinition struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *ServiceEndpointPolicyDefinitionPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go new file mode 100644 index 000000000000..34679603f3a4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicydefinitionpropertiesformat.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyDefinitionPropertiesFormat struct { + Description *string `json:"description,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` + ServiceResources *[]string `json:"serviceResources,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicypropertiesformat.go new file mode 100644 index 000000000000..aa5effcc1580 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpolicypropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPolicyPropertiesFormat struct { + ContextualServiceEndpointPolicies *[]string `json:"contextualServiceEndpointPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` + ServiceAlias *string `json:"serviceAlias,omitempty"` + ServiceEndpointPolicyDefinitions *[]ServiceEndpointPolicyDefinition `json:"serviceEndpointPolicyDefinitions,omitempty"` + Subnets *[]Subnet `json:"subnets,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpropertiesformat.go new file mode 100644 index 000000000000..4a37ea44fea4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_serviceendpointpropertiesformat.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ServiceEndpointPropertiesFormat struct { + Locations *[]string `json:"locations,omitempty"` + NetworkIdentifier *SubResource `json:"networkIdentifier,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Service *string `json:"service,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnet.go new file mode 100644 index 000000000000..22ae6378be52 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnet.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Subnet struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *SubnetPropertiesFormat `json:"properties,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnetpropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnetpropertiesformat.go new file mode 100644 index 000000000000..a5152cfbfee8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subnetpropertiesformat.go @@ -0,0 +1,28 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubnetPropertiesFormat struct { + AddressPrefix *string `json:"addressPrefix,omitempty"` + AddressPrefixes *[]string `json:"addressPrefixes,omitempty"` + ApplicationGatewayIPConfigurations *[]ApplicationGatewayIPConfiguration `json:"applicationGatewayIPConfigurations,omitempty"` + DefaultOutboundAccess *bool `json:"defaultOutboundAccess,omitempty"` + Delegations *[]Delegation `json:"delegations,omitempty"` + IPAllocations *[]SubResource `json:"ipAllocations,omitempty"` + IPConfigurationProfiles *[]IPConfigurationProfile `json:"ipConfigurationProfiles,omitempty"` + IPConfigurations *[]IPConfiguration `json:"ipConfigurations,omitempty"` + NatGateway *SubResource `json:"natGateway,omitempty"` + NetworkSecurityGroup *NetworkSecurityGroup `json:"networkSecurityGroup,omitempty"` + PrivateEndpointNetworkPolicies *VirtualNetworkPrivateEndpointNetworkPolicies `json:"privateEndpointNetworkPolicies,omitempty"` + PrivateEndpoints *[]PrivateEndpoint `json:"privateEndpoints,omitempty"` + PrivateLinkServiceNetworkPolicies *VirtualNetworkPrivateLinkServiceNetworkPolicies `json:"privateLinkServiceNetworkPolicies,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Purpose *string `json:"purpose,omitempty"` + ResourceNavigationLinks *[]ResourceNavigationLink `json:"resourceNavigationLinks,omitempty"` + RouteTable *RouteTable `json:"routeTable,omitempty"` + ServiceAssociationLinks *[]ServiceAssociationLink `json:"serviceAssociationLinks,omitempty"` + ServiceEndpointPolicies *[]ServiceEndpointPolicy `json:"serviceEndpointPolicies,omitempty"` + ServiceEndpoints *[]ServiceEndpointPropertiesFormat `json:"serviceEndpoints,omitempty"` + SharingScope *SharingScope `json:"sharingScope,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subresource.go new file mode 100644 index 000000000000..f80e970be832 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_subresource.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SubResource struct { + Id *string `json:"id,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsconfigurationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsconfigurationproperties.go new file mode 100644 index 000000000000..fd4b0e7ec171 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsconfigurationproperties.go @@ -0,0 +1,12 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsConfigurationProperties struct { + Enabled *bool `json:"enabled,omitempty"` + TrafficAnalyticsInterval *int64 `json:"trafficAnalyticsInterval,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceRegion *string `json:"workspaceRegion,omitempty"` + WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsproperties.go new file mode 100644 index 000000000000..872500d56bf5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_trafficanalyticsproperties.go @@ -0,0 +1,8 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TrafficAnalyticsProperties struct { + NetworkWatcherFlowAnalyticsConfiguration *TrafficAnalyticsConfigurationProperties `json:"networkWatcherFlowAnalyticsConfiguration,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktap.go new file mode 100644 index 000000000000..e2de0ca881d0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktap.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTap struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *VirtualNetworkTapPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktappropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktappropertiesformat.go new file mode 100644 index 000000000000..418d09be3711 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_virtualnetworktappropertiesformat.go @@ -0,0 +1,13 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VirtualNetworkTapPropertiesFormat struct { + DestinationLoadBalancerFrontEndIPConfiguration *FrontendIPConfiguration `json:"destinationLoadBalancerFrontEndIPConfiguration,omitempty"` + DestinationNetworkInterfaceIPConfiguration *NetworkInterfaceIPConfiguration `json:"destinationNetworkInterfaceIPConfiguration,omitempty"` + DestinationPort *int64 `json:"destinationPort,omitempty"` + NetworkInterfaceTapConfigurations *[]NetworkInterfaceTapConfiguration `json:"networkInterfaceTapConfigurations,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceGuid *string `json:"resourceGuid,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallcustomrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallcustomrule.go new file mode 100644 index 000000000000..c66c12572535 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallcustomrule.go @@ -0,0 +1,17 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallCustomRule struct { + Action WebApplicationFirewallAction `json:"action"` + Etag *string `json:"etag,omitempty"` + GroupByUserSession *[]GroupByUserSession `json:"groupByUserSession,omitempty"` + MatchConditions []MatchCondition `json:"matchConditions"` + Name *string `json:"name,omitempty"` + Priority int64 `json:"priority"` + RateLimitDuration *ApplicationGatewayFirewallRateLimitDuration `json:"rateLimitDuration,omitempty"` + RateLimitThreshold *int64 `json:"rateLimitThreshold,omitempty"` + RuleType WebApplicationFirewallRuleType `json:"ruleType"` + State *WebApplicationFirewallState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicy.go new file mode 100644 index 000000000000..c79f926a28c2 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicy.go @@ -0,0 +1,14 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallPolicy struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Properties *WebApplicationFirewallPolicyPropertiesFormat `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicypropertiesformat.go new file mode 100644 index 000000000000..6379e40c5def --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallpolicypropertiesformat.go @@ -0,0 +1,16 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallPolicyPropertiesFormat struct { + ApplicationGatewayForContainers *[]ApplicationGatewayForContainersReferenceDefinition `json:"applicationGatewayForContainers,omitempty"` + ApplicationGateways *[]ApplicationGateway `json:"applicationGateways,omitempty"` + CustomRules *[]WebApplicationFirewallCustomRule `json:"customRules,omitempty"` + HTTPListeners *[]SubResource `json:"httpListeners,omitempty"` + ManagedRules ManagedRulesDefinition `json:"managedRules"` + PathBasedRules *[]SubResource `json:"pathBasedRules,omitempty"` + PolicySettings *PolicySettings `json:"policySettings,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceState *WebApplicationFirewallPolicyResourceState `json:"resourceState,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallscrubbingrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallscrubbingrules.go new file mode 100644 index 000000000000..b3d3f6dd209d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/model_webapplicationfirewallscrubbingrules.go @@ -0,0 +1,11 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallScrubbingRules struct { + MatchVariable ScrubbingRuleEntryMatchVariable `json:"matchVariable"` + Selector *string `json:"selector,omitempty"` + SelectorMatchOperator ScrubbingRuleEntryMatchOperator `json:"selectorMatchOperator"` + State *ScrubbingRuleEntryState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/predicates.go new file mode 100644 index 000000000000..a7973b0a14fb --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/predicates.go @@ -0,0 +1,37 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type WebApplicationFirewallPolicyOperationPredicate struct { + Etag *string + Id *string + Location *string + Name *string + Type *string +} + +func (p WebApplicationFirewallPolicyOperationPredicate) Matches(input WebApplicationFirewallPolicy) bool { + + if p.Etag != nil && (input.Etag == nil || *p.Etag != *input.Etag) { + return false + } + + if p.Id != nil && (input.Id == nil || *p.Id != *input.Id) { + return false + } + + if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) { + return false + } + + if p.Name != nil && (input.Name == nil || *p.Name != *input.Name) { + return false + } + + if p.Type != nil && (input.Type == nil || *p.Type != *input.Type) { + return false + } + + return true +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/version.go new file mode 100644 index 000000000000..1a8ec9f2ba67 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies/version.go @@ -0,0 +1,10 @@ +package webapplicationfirewallpolicies + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/webapplicationfirewallpolicies/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/README.md new file mode 100644 index 000000000000..d7a59c0519db --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/README.md @@ -0,0 +1,54 @@ + +## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories` Documentation + +The `webcategories` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-03-01`). + +This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). + +### Import Path + +```go +import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" +import "github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories" +``` + + +### Client Initialization + +```go +client := webcategories.NewWebCategoriesClientWithBaseURI("https://management.azure.com") +client.Client.Authorizer = authorizer +``` + + +### Example Usage: `WebCategoriesClient.Get` + +```go +ctx := context.TODO() +id := webcategories.NewAzureWebCategoryID("12345678-1234-9876-4563-123456789012", "azureWebCategoryName") + +read, err := client.Get(ctx, id, webcategories.DefaultGetOperationOptions()) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + +### Example Usage: `WebCategoriesClient.ListBySubscription` + +```go +ctx := context.TODO() +id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012") + +// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination +items, err := client.ListBySubscriptionComplete(ctx, id) +if err != nil { + // handle the error +} +for _, item := range items { + // do something +} +``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/id_azurewebcategory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/id_azurewebcategory.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/id_azurewebcategory.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/id_azurewebcategory.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/method_listbysubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_listbysubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/method_listbysubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/model_azurewebcategory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/model_azurewebcategory.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/model_azurewebcategory.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/model_azurewebcategory.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/model_azurewebcategorypropertiesformat.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/model_azurewebcategorypropertiesformat.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/model_azurewebcategorypropertiesformat.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/model_azurewebcategorypropertiesformat.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/version.go new file mode 100644 index 000000000000..5c0b8e6f959f --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories/version.go @@ -0,0 +1,10 @@ +package webcategories + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +const defaultApiVersion = "2024-03-01" + +func userAgent() string { + return "hashicorp/go-azure-sdk/webcategories/2024-03-01" +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go index 557892028c32..52de494374ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/client.go @@ -777,10 +777,10 @@ func extendedRetryPolicy(resp *http.Response, err error) (bool, error) { // A regular expression to catch dial timeouts in the underlying TCP session // connection - tcpDialTimeoutRe := regexp.MustCompile(`dial tcp .*: i/o timeout`) + tcpDialTCPRe := regexp.MustCompile(`dial tcp`) - // A regular expression to match complete packet loss - see comment below on packet-loss scenarios - // completePacketLossRe := regexp.MustCompile(`EOF$`) + // A regular expression to match complete packet loss + completePacketLossRe := regexp.MustCompile(`EOF`) if err != nil { var v *url.Error @@ -805,15 +805,13 @@ func extendedRetryPolicy(resp *http.Response, err error) (bool, error) { return false, v } - if tcpDialTimeoutRe.MatchString(v.Error()) { + if tcpDialTCPRe.MatchString(v.Error()) { return false, v } - // TODO - Need to investigate how to deal with total packet-loss situations that doesn't break LRO retries. - // Such as Temporary Proxy outage, or recoverable disruption to network traffic (e.g. bgp events etc) - // if completePacketLossRe.MatchString(v.Error()) { - // return false, v - // } + if completePacketLossRe.MatchString(v.Error()) { + return false, v + } var certificateVerificationError *tls.CertificateVerificationError if ok := errors.As(v.Err, &certificateVerificationError); ok { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_lro.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_lro.go index 0eade8da42ee..527257c3514b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_lro.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_lro.go @@ -7,6 +7,7 @@ import ( "bytes" "context" "encoding/json" + "errors" "fmt" "io" "net/http" @@ -27,6 +28,9 @@ type longRunningOperationPoller struct { initialRetryDuration time.Duration originalUrl *url.URL pollingUrl *url.URL + + droppedConnectionCount int + maxDroppedConnections int } func pollingUriForLongRunningOperation(resp *client.Response) string { @@ -39,8 +43,9 @@ func pollingUriForLongRunningOperation(resp *client.Response) string { func longRunningOperationPollerFromResponse(resp *client.Response, client *client.Client) (*longRunningOperationPoller, error) { poller := longRunningOperationPoller{ - client: client, - initialRetryDuration: 10 * time.Second, + client: client, + initialRetryDuration: 10 * time.Second, + maxDroppedConnections: 3, } pollingUrl := pollingUriForLongRunningOperation(resp) @@ -107,9 +112,20 @@ func (p *longRunningOperationPoller) Poll(ctx context.Context) (result *pollers. } result.HttpResponse, err = req.Execute(ctx) if err != nil { + var e *url.Error + if errors.As(err, &e) { + p.droppedConnectionCount++ + if p.droppedConnectionCount < p.maxDroppedConnections { + result.Status = pollers.PollingStatusUnknown + return result, nil + } + } + return nil, err } + p.droppedConnectionCount = 0 + if result.HttpResponse != nil { var respBody []byte respBody, err = io.ReadAll(result.HttpResponse.Body) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_provisioning_state.go b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_provisioning_state.go index f5c6f2e81d7a..cf80b2c4f0d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_provisioning_state.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager/poller_provisioning_state.go @@ -5,6 +5,7 @@ package resourcemanager import ( "context" + "errors" "fmt" "net/http" "net/url" @@ -27,6 +28,9 @@ type provisioningStatePoller struct { initialRetryDuration time.Duration originalUri string resourcePath string + + droppedConnectionCount int + maxDroppedConnections int } func provisioningStatePollerFromResponse(response *client.Response, lroIsSelfReference bool, client *Client, pollingInterval time.Duration) (*provisioningStatePoller, error) { @@ -58,11 +62,12 @@ func provisioningStatePollerFromResponse(response *client.Response, lroIsSelfRef } return &provisioningStatePoller{ - apiVersion: apiVersion, - client: client, - initialRetryDuration: pollingInterval, - originalUri: originalUri, - resourcePath: resourcePath, + apiVersion: apiVersion, + client: client, + initialRetryDuration: pollingInterval, + originalUri: originalUri, + resourcePath: resourcePath, + maxDroppedConnections: 3, }, nil } @@ -84,8 +89,22 @@ func (p *provisioningStatePoller) Poll(ctx context.Context) (*pollers.PollResult } resp, err := p.client.Execute(ctx, req) if err != nil { + var e *url.Error + if errors.As(err, &e) { + p.droppedConnectionCount++ + if p.droppedConnectionCount < p.maxDroppedConnections { + return &pollers.PollResult{ + PollInterval: p.initialRetryDuration, + Status: pollers.PollingStatusUnknown, + }, nil + } + } + return nil, fmt.Errorf("executing request: %+v", err) } + + p.droppedConnectionCount = 0 + if resp == nil { return nil, pollers.PollingDroppedConnectionError{} } diff --git a/vendor/github.com/hashicorp/go-plugin/CHANGELOG.md b/vendor/github.com/hashicorp/go-plugin/CHANGELOG.md index 3d0379c500ed..ca16273c1fa4 100644 --- a/vendor/github.com/hashicorp/go-plugin/CHANGELOG.md +++ b/vendor/github.com/hashicorp/go-plugin/CHANGELOG.md @@ -1,9 +1,29 @@ +## v1.6.2 + +ENHANCEMENTS: + +* Added support for gRPC dial options to the `Dial` API [[GH-257](https://github.com/hashicorp/go-plugin/pull/257)] + +BUGS: + +* Fixed a bug where reattaching to a plugin that exits could kill an unrelated process [[GH-320](https://github.com/hashicorp/go-plugin/pull/320)] + +## v1.6.1 + +BUGS: + +* Suppress spurious `os.ErrClosed` on plugin shutdown [[GH-299](https://github.com/hashicorp/go-plugin/pull/299)] + +ENHANCEMENTS: + +* deps: bump google.golang.org/grpc to v1.58.3 [[GH-296](https://github.com/hashicorp/go-plugin/pull/296)] + ## v1.6.0 CHANGES: * plugin: Plugins written in other languages can optionally start to advertise whether they support gRPC broker multiplexing. - If the environment variable `PLUGIN_MULTIPLEX_GRPC` is set, it is safe to include a seventh field containing a boolean + If the environment variable `PLUGIN_MULTIPLEX_GRPC` is set, it is safe to include a seventh field containing a boolean value in the `|`-separated protocol negotiation line. ENHANCEMENTS: diff --git a/vendor/github.com/hashicorp/go-plugin/client.go b/vendor/github.com/hashicorp/go-plugin/client.go index 73f6b35151c5..df2fd22c82cc 100644 --- a/vendor/github.com/hashicorp/go-plugin/client.go +++ b/vendor/github.com/hashicorp/go-plugin/client.go @@ -82,7 +82,7 @@ const defaultPluginLogBufferSize = 64 * 1024 // // Plugin hosts should use one Client for each plugin executable. To // dispense a plugin type, use the `Client.Client` function, and then -// cal `Dispense`. This awkward API is mostly historical but is used to split +// call `Dispense`. This awkward API is mostly historical but is used to split // the client that deals with subprocess management and the client that // does RPC management. // @@ -104,9 +104,9 @@ type Client struct { // goroutines. clientWaitGroup sync.WaitGroup - // stderrWaitGroup is used to prevent the command's Wait() function from - // being called before we've finished reading from the stderr pipe. - stderrWaitGroup sync.WaitGroup + // pipesWaitGroup is used to prevent the command's Wait() function from + // being called before we've finished reading from the stdout and stderr pipe. + pipesWaitGroup sync.WaitGroup // processKilled is used for testing only, to flag when the process was // forcefully killed. @@ -756,8 +756,8 @@ func (c *Client) Start() (addr net.Addr, err error) { // Start goroutine that logs the stderr c.clientWaitGroup.Add(1) - c.stderrWaitGroup.Add(1) - // logStderr calls Done() + c.pipesWaitGroup.Add(1) + // logStderr calls c.pipesWaitGroup.Done() go c.logStderr(runner.Name(), runner.Stderr()) c.clientWaitGroup.Add(1) @@ -767,9 +767,9 @@ func (c *Client) Start() (addr net.Addr, err error) { defer c.clientWaitGroup.Done() - // wait to finish reading from stderr since the stderr pipe reader + // wait to finish reading from stdout/stderr since the stdout/stderr pipe readers // will be closed by the subsequent call to cmd.Wait(). - c.stderrWaitGroup.Wait() + c.pipesWaitGroup.Wait() // Wait for the command to end. err := runner.Wait(context.Background()) @@ -792,8 +792,10 @@ func (c *Client) Start() (addr net.Addr, err error) { // out of stdout linesCh := make(chan string) c.clientWaitGroup.Add(1) + c.pipesWaitGroup.Add(1) go func() { defer c.clientWaitGroup.Done() + defer c.pipesWaitGroup.Done() defer close(linesCh) scanner := bufio.NewScanner(runner.Stdout()) @@ -1159,7 +1161,7 @@ func (c *Client) getGRPCMuxer(addr net.Addr) (*grpcmux.GRPCClientMuxer, error) { func (c *Client) logStderr(name string, r io.Reader) { defer c.clientWaitGroup.Done() - defer c.stderrWaitGroup.Done() + defer c.pipesWaitGroup.Done() l := c.logger.Named(filepath.Base(name)) reader := bufio.NewReaderSize(r, c.config.PluginLogBufferSize) diff --git a/vendor/github.com/hashicorp/go-plugin/grpc_broker.go b/vendor/github.com/hashicorp/go-plugin/grpc_broker.go index 5b17e37fef06..4bac0a5f7d37 100644 --- a/vendor/github.com/hashicorp/go-plugin/grpc_broker.go +++ b/vendor/github.com/hashicorp/go-plugin/grpc_broker.go @@ -523,9 +523,12 @@ func (b *GRPCBroker) muxDial(id uint32) func(string, time.Duration) (net.Conn, e } // Dial opens a connection by ID. -func (b *GRPCBroker) Dial(id uint32) (conn *grpc.ClientConn, err error) { +func (b *GRPCBroker) Dial(id uint32) (conn *grpc.ClientConn, err error) { return b.DialWithOptions(id) } + +// Dial opens a connection by ID with options. +func (b *GRPCBroker) DialWithOptions(id uint32, opts ...grpc.DialOption) (conn *grpc.ClientConn, err error) { if b.muxer.Enabled() { - return dialGRPCConn(b.tls, b.muxDial(id)) + return dialGRPCConn(b.tls, b.muxDial(id), opts...) } var c *plugin.ConnInfo @@ -560,7 +563,7 @@ func (b *GRPCBroker) Dial(id uint32) (conn *grpc.ClientConn, err error) { return nil, err } - return dialGRPCConn(b.tls, netAddrDialer(addr)) + return dialGRPCConn(b.tls, netAddrDialer(addr), opts...) } // NextId returns a unique ID to use next. diff --git a/vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/cmd_reattach.go b/vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/cmd_reattach.go index dce1a86a88eb..984c875db9ad 100644 --- a/vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/cmd_reattach.go +++ b/vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/cmd_reattach.go @@ -28,7 +28,6 @@ func ReattachFunc(pid int, addr net.Addr) runner.ReattachFunc { // doesn't actually return an error if it can't find the process. conn, err := net.Dial(addr.Network(), addr.String()) if err != nil { - p.Kill() return nil, ErrProcessNotFound } conn.Close() diff --git a/vendor/github.com/hashicorp/go-plugin/testing.go b/vendor/github.com/hashicorp/go-plugin/testing.go index a8735dfc8c7a..1abd402a3511 100644 --- a/vendor/github.com/hashicorp/go-plugin/testing.go +++ b/vendor/github.com/hashicorp/go-plugin/testing.go @@ -9,10 +9,10 @@ import ( "io" "net" "net/rpc" + "testing" hclog "github.com/hashicorp/go-hclog" "github.com/hashicorp/go-plugin/internal/grpcmux" - "github.com/mitchellh/go-testing-interface" "google.golang.org/grpc" ) @@ -33,7 +33,7 @@ type TestOptions struct { // TestConn is a helper function for returning a client and server // net.Conn connected to each other. -func TestConn(t testing.T) (net.Conn, net.Conn) { +func TestConn(t testing.TB) (net.Conn, net.Conn) { // Listen to any local port. This listener will be closed // after a single connection is established. l, err := net.Listen("tcp", "127.0.0.1:0") @@ -67,7 +67,7 @@ func TestConn(t testing.T) (net.Conn, net.Conn) { } // TestRPCConn returns a rpc client and server connected to each other. -func TestRPCConn(t testing.T) (*rpc.Client, *rpc.Server) { +func TestRPCConn(t testing.TB) (*rpc.Client, *rpc.Server) { clientConn, serverConn := TestConn(t) server := rpc.NewServer() @@ -79,7 +79,7 @@ func TestRPCConn(t testing.T) (*rpc.Client, *rpc.Server) { // TestPluginRPCConn returns a plugin RPC client and server that are connected // together and configured. -func TestPluginRPCConn(t testing.T, ps map[string]Plugin, opts *TestOptions) (*RPCClient, *RPCServer) { +func TestPluginRPCConn(t testing.TB, ps map[string]Plugin, opts *TestOptions) (*RPCClient, *RPCServer) { // Create two net.Conns we can use to shuttle our control connection clientConn, serverConn := TestConn(t) @@ -107,7 +107,7 @@ func TestPluginRPCConn(t testing.T, ps map[string]Plugin, opts *TestOptions) (*R // TestGRPCConn returns a gRPC client conn and grpc server that are connected // together and configured. The register function is used to register services // prior to the Serve call. This is used to test gRPC connections. -func TestGRPCConn(t testing.T, register func(*grpc.Server)) (*grpc.ClientConn, *grpc.Server) { +func TestGRPCConn(t testing.TB, register func(*grpc.Server)) (*grpc.ClientConn, *grpc.Server) { // Create a listener l, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { @@ -135,7 +135,7 @@ func TestGRPCConn(t testing.T, register func(*grpc.Server)) (*grpc.ClientConn, * // TestPluginGRPCConn returns a plugin gRPC client and server that are connected // together and configured. This is used to test gRPC connections. -func TestPluginGRPCConn(t testing.T, multiplex bool, ps map[string]Plugin) (*GRPCClient, *GRPCServer) { +func TestPluginGRPCConn(t testing.TB, multiplex bool, ps map[string]Plugin) (*GRPCClient, *GRPCServer) { // Create a listener ln, err := serverListener(UnixSocketConfig{}) if err != nil { diff --git a/vendor/github.com/hashicorp/go-version/CHANGELOG.md b/vendor/github.com/hashicorp/go-version/CHANGELOG.md index 5f16dd140c3f..6d48174bfbe0 100644 --- a/vendor/github.com/hashicorp/go-version/CHANGELOG.md +++ b/vendor/github.com/hashicorp/go-version/CHANGELOG.md @@ -1,3 +1,22 @@ +# 1.7.0 (May 24, 2024) + +ENHANCEMENTS: + +- Remove `reflect` dependency ([#91](https://github.com/hashicorp/go-version/pull/91)) +- Implement the `database/sql.Scanner` and `database/sql/driver.Value` interfaces for `Version` ([#133](https://github.com/hashicorp/go-version/pull/133)) + +INTERNAL: + +- [COMPLIANCE] Add Copyright and License Headers ([#115](https://github.com/hashicorp/go-version/pull/115)) +- [COMPLIANCE] Update MPL-2.0 LICENSE ([#105](https://github.com/hashicorp/go-version/pull/105)) +- Bump actions/cache from 3.0.11 to 3.2.5 ([#116](https://github.com/hashicorp/go-version/pull/116)) +- Bump actions/checkout from 3.2.0 to 3.3.0 ([#111](https://github.com/hashicorp/go-version/pull/111)) +- Bump actions/upload-artifact from 3.1.1 to 3.1.2 ([#112](https://github.com/hashicorp/go-version/pull/112)) +- GHA Migration ([#103](https://github.com/hashicorp/go-version/pull/103)) +- github: Pin external GitHub Actions to hashes ([#107](https://github.com/hashicorp/go-version/pull/107)) +- SEC-090: Automated trusted workflow pinning (2023-04-05) ([#124](https://github.com/hashicorp/go-version/pull/124)) +- update readme ([#104](https://github.com/hashicorp/go-version/pull/104)) + # 1.6.0 (June 28, 2022) FEATURES: diff --git a/vendor/github.com/hashicorp/go-version/LICENSE b/vendor/github.com/hashicorp/go-version/LICENSE index c33dcc7c928c..1409d6ab92fc 100644 --- a/vendor/github.com/hashicorp/go-version/LICENSE +++ b/vendor/github.com/hashicorp/go-version/LICENSE @@ -1,3 +1,5 @@ +Copyright (c) 2014 HashiCorp, Inc. + Mozilla Public License, version 2.0 1. Definitions diff --git a/vendor/github.com/hashicorp/go-version/README.md b/vendor/github.com/hashicorp/go-version/README.md index 4d2505090335..4b7806cd9647 100644 --- a/vendor/github.com/hashicorp/go-version/README.md +++ b/vendor/github.com/hashicorp/go-version/README.md @@ -1,5 +1,5 @@ # Versioning Library for Go -[![Build Status](https://circleci.com/gh/hashicorp/go-version/tree/main.svg?style=svg)](https://circleci.com/gh/hashicorp/go-version/tree/main) +![Build Status](https://github.com/hashicorp/go-version/actions/workflows/go-tests.yml/badge.svg) [![GoDoc](https://godoc.org/github.com/hashicorp/go-version?status.svg)](https://godoc.org/github.com/hashicorp/go-version) go-version is a library for parsing versions and version constraints, diff --git a/vendor/github.com/hashicorp/go-version/constraint.go b/vendor/github.com/hashicorp/go-version/constraint.go index da5d1aca1480..29bdc4d2b5d0 100644 --- a/vendor/github.com/hashicorp/go-version/constraint.go +++ b/vendor/github.com/hashicorp/go-version/constraint.go @@ -1,8 +1,10 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package version import ( "fmt" - "reflect" "regexp" "sort" "strings" @@ -199,7 +201,7 @@ func prereleaseCheck(v, c *Version) bool { case cPre && vPre: // A constraint with a pre-release can only match a pre-release version // with the same base segments. - return reflect.DeepEqual(c.Segments64(), v.Segments64()) + return v.equalSegments(c) case !cPre && vPre: // A constraint without a pre-release can only match a version without a diff --git a/vendor/github.com/hashicorp/go-version/version.go b/vendor/github.com/hashicorp/go-version/version.go index e87df69906d8..7c683c2813ae 100644 --- a/vendor/github.com/hashicorp/go-version/version.go +++ b/vendor/github.com/hashicorp/go-version/version.go @@ -1,9 +1,12 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package version import ( "bytes" + "database/sql/driver" "fmt" - "reflect" "regexp" "strconv" "strings" @@ -117,11 +120,8 @@ func (v *Version) Compare(other *Version) int { return 0 } - segmentsSelf := v.Segments64() - segmentsOther := other.Segments64() - // If the segments are the same, we must compare on prerelease info - if reflect.DeepEqual(segmentsSelf, segmentsOther) { + if v.equalSegments(other) { preSelf := v.Prerelease() preOther := other.Prerelease() if preSelf == "" && preOther == "" { @@ -137,6 +137,8 @@ func (v *Version) Compare(other *Version) int { return comparePrereleases(preSelf, preOther) } + segmentsSelf := v.Segments64() + segmentsOther := other.Segments64() // Get the highest specificity (hS), or if they're equal, just use segmentSelf length lenSelf := len(segmentsSelf) lenOther := len(segmentsOther) @@ -160,7 +162,7 @@ func (v *Version) Compare(other *Version) int { // this means Other had the lower specificity // Check to see if the remaining segments in Self are all zeros - if !allZero(segmentsSelf[i:]) { - //if not, it means that Self has to be greater than Other + // if not, it means that Self has to be greater than Other return 1 } break @@ -180,6 +182,21 @@ func (v *Version) Compare(other *Version) int { return 0 } +func (v *Version) equalSegments(other *Version) bool { + segmentsSelf := v.Segments64() + segmentsOther := other.Segments64() + + if len(segmentsSelf) != len(segmentsOther) { + return false + } + for i, v := range segmentsSelf { + if v != segmentsOther[i] { + return false + } + } + return true +} + func allZero(segs []int64) bool { for _, s := range segs { if s != 0 { @@ -405,3 +422,20 @@ func (v *Version) UnmarshalText(b []byte) error { func (v *Version) MarshalText() ([]byte, error) { return []byte(v.String()), nil } + +// Scan implements the sql.Scanner interface. +func (v *Version) Scan(src interface{}) error { + switch src := src.(type) { + case string: + return v.UnmarshalText([]byte(src)) + case nil: + return nil + default: + return fmt.Errorf("cannot scan %T as Version", src) + } +} + +// Value implements the driver.Valuer interface. +func (v *Version) Value() (driver.Value, error) { + return v.String(), nil +} diff --git a/vendor/github.com/hashicorp/go-version/version_collection.go b/vendor/github.com/hashicorp/go-version/version_collection.go index cc888d43e6b6..83547fe13d63 100644 --- a/vendor/github.com/hashicorp/go-version/version_collection.go +++ b/vendor/github.com/hashicorp/go-version/version_collection.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package version // Collection is a type that implements the sort.Interface interface diff --git a/vendor/github.com/hashicorp/hc-install/.go-version b/vendor/github.com/hashicorp/hc-install/.go-version index ce2dd53570bb..2a0ba77cc5e3 100644 --- a/vendor/github.com/hashicorp/hc-install/.go-version +++ b/vendor/github.com/hashicorp/hc-install/.go-version @@ -1 +1 @@ -1.21.5 +1.22.4 diff --git a/vendor/github.com/hashicorp/hc-install/README.md b/vendor/github.com/hashicorp/hc-install/README.md index 6e78b5a610a1..0d55191bf2f0 100644 --- a/vendor/github.com/hashicorp/hc-install/README.md +++ b/vendor/github.com/hashicorp/hc-install/README.md @@ -14,55 +14,55 @@ the library in ad-hoc or CI shell scripting outside of Go. `hc-install` does **not**: - - Determine suitable installation path based on target system. e.g. in `/usr/bin` or `/usr/local/bin` on Unix based system. - - Deal with execution of installed binaries (via service files or otherwise). - - Upgrade existing binaries on your system. - - Add nor link downloaded binaries to your `$PATH`. +- Determine suitable installation path based on target system. e.g. in `/usr/bin` or `/usr/local/bin` on Unix based system. +- Deal with execution of installed binaries (via service files or otherwise). +- Upgrade existing binaries on your system. +- Add nor link downloaded binaries to your `$PATH`. ## API The `Installer` offers a few high-level methods: - - `Ensure(context.Context, []src.Source)` to find, install, or build a product version - - `Install(context.Context, []src.Installable)` to install a product version +- `Ensure(context.Context, []src.Source)` to find, install, or build a product version +- `Install(context.Context, []src.Installable)` to install a product version ### Sources The `Installer` methods accept number of different `Source` types. Each comes with different trade-offs described below. - - `fs.{AnyVersion,ExactVersion,Version}` - Finds a binary in `$PATH` (or additional paths) - - **Pros:** - - This is most convenient when you already have the product installed on your system +- `fs.{AnyVersion,ExactVersion,Version}` - Finds a binary in `$PATH` (or additional paths) + - **Pros:** + - This is most convenient when you already have the product installed on your system which you already manage. - - **Cons:** - - Only relies on a single version, expects _you_ to manage the installation - - _Not recommended_ for any environment where product installation is not controlled or managed by you (e.g. default GitHub Actions image managed by GitHub) - - `releases.{LatestVersion,ExactVersion}` - Downloads, verifies & installs any known product from `releases.hashicorp.com` - - **Pros:** - - Fast and reliable way of obtaining any pre-built version of any product - - Allows installation of enterprise versions - - **Cons:** - - Installation may consume some bandwidth, disk space and a little time - - Potentially less stable builds (see `checkpoint` below) - - `checkpoint.LatestVersion` - Downloads, verifies & installs any known product available in HashiCorp Checkpoint - - **Pros:** - - Checkpoint typically contains only product versions considered stable - - **Cons:** - - Installation may consume some bandwidth, disk space and a little time - - Currently doesn't allow installation of old versions or enterprise versions (see `releases` above) - - `build.GitRevision` - Clones raw source code and builds the product from it - - **Pros:** - - Useful for catching bugs and incompatibilities as early as possible (prior to product release). - - **Cons:** - - Building from scratch can consume significant amount of time & resources (CPU, memory, bandwith, disk space) - - There are no guarantees that build instructions will always be up-to-date - - There's increased likelihood of build containing bugs prior to release - - Any CI builds relying on this are likely to be fragile + - **Cons:** + - Only relies on a single version, expects _you_ to manage the installation + - _Not recommended_ for any environment where product installation is not controlled or managed by you (e.g. default GitHub Actions image managed by GitHub) +- `releases.{LatestVersion,ExactVersion}` - Downloads, verifies & installs any known product from `releases.hashicorp.com` + - **Pros:** + - Fast and reliable way of obtaining any pre-built version of any product + - Allows installation of enterprise versions + - **Cons:** + - Installation may consume some bandwidth, disk space and a little time + - Potentially less stable builds (see `checkpoint` below) +- `checkpoint.LatestVersion` - Downloads, verifies & installs any known product available in HashiCorp Checkpoint + - **Pros:** + - Checkpoint typically contains only product versions considered stable + - **Cons:** + - Installation may consume some bandwidth, disk space and a little time + - Currently doesn't allow installation of old versions or enterprise versions (see `releases` above) +- `build.GitRevision` - Clones raw source code and builds the product from it + - **Pros:** + - Useful for catching bugs and incompatibilities as early as possible (prior to product release). + - **Cons:** + - Building from scratch can consume significant amount of time & resources (CPU, memory, bandwidth, disk space) + - There are no guarantees that build instructions will always be up-to-date + - There's increased likelihood of build containing bugs prior to release + - Any CI builds relying on this are likely to be fragile ## Example Usage -See examples at https://pkg.go.dev/github.com/hashicorp/hc-install#example-Installer. +See examples at . ## CLI @@ -70,9 +70,9 @@ In addition to the Go library, which is the intended primary use case of `hc-ins The CLI comes with some trade-offs: - - more limited interface compared to the flexible Go API (installs specific versions of products via `releases.ExactVersion`) - - minimal environment pre-requisites (no need to compile Go code) - - see ["hc-install is not a package manager"](https://github.com/hashicorp/hc-install#hc-install-is-not-a-package-manager) +- more limited interface compared to the flexible Go API (installs specific versions of products via `releases.ExactVersion`) +- minimal environment pre-requisites (no need to compile Go code) +- see ["hc-install is not a package manager"](https://github.com/hashicorp/hc-install#hc-install-is-not-a-package-manager) ### Installation @@ -82,7 +82,7 @@ Given that one of the key roles of the CLI/library is integrity checking, you sh [Homebrew](https://brew.sh) -``` +```sh brew install hashicorp/tap/hc-install ``` @@ -102,19 +102,23 @@ You can follow the instructions in the [Official Packaging Guide](https://www.ha ### Usage -``` +```text Usage: hc-install install [options] -version This command installs a HashiCorp product. Options: -version [REQUIRED] Version of product to install. - -path Path to directory where the product will be installed. Defaults - to current working directory. + -path Path to directory where the product will be installed. + Defaults to current working directory. + -log-file Path to file where logs will be written. /dev/stdout + or /dev/stderr can be used to log to STDOUT/STDERR. ``` + ```sh hc-install install -version 1.3.7 terraform ``` -``` + +```sh hc-install: will install terraform@1.3.7 installed terraform@1.3.7 to /current/working/dir/terraform ``` diff --git a/vendor/github.com/hashicorp/hc-install/checkpoint/latest_version.go b/vendor/github.com/hashicorp/hc-install/checkpoint/latest_version.go index 2cd5379fb8ee..a382cb106664 100644 --- a/vendor/github.com/hashicorp/hc-install/checkpoint/latest_version.go +++ b/vendor/github.com/hashicorp/hc-install/checkpoint/latest_version.go @@ -6,7 +6,7 @@ package checkpoint import ( "context" "fmt" - "io/ioutil" + "io" "log" "os" "path/filepath" @@ -24,7 +24,7 @@ import ( var ( defaultTimeout = 30 * time.Second - discardLogger = log.New(ioutil.Discard, "", 0) + discardLogger = log.New(io.Discard, "", 0) ) // LatestVersion installs the latest version known to Checkpoint @@ -35,6 +35,10 @@ type LatestVersion struct { SkipChecksumVerification bool InstallDir string + // LicenseDir represents directory path where to install license files. + // If empty, license files will placed in the same directory as the binary. + LicenseDir string + // ArmoredPublicKey is a public PGP key in ASCII/armor format to use // instead of built-in pubkey to verify signature of downloaded checksums ArmoredPublicKey string @@ -101,7 +105,7 @@ func (lv *LatestVersion) Install(ctx context.Context) (string, error) { if dstDir == "" { var err error dirName := fmt.Sprintf("%s_*", lv.Product.Name) - dstDir, err = ioutil.TempDir("", dirName) + dstDir, err = os.MkdirTemp("", dirName) if err != nil { return "", err } @@ -126,9 +130,11 @@ func (lv *LatestVersion) Install(ctx context.Context) (string, error) { if lv.ArmoredPublicKey != "" { d.ArmoredPublicKey = lv.ArmoredPublicKey } - zipFilePath, err := d.DownloadAndUnpack(ctx, pv, dstDir, "") - if zipFilePath != "" { - lv.pathsToRemove = append(lv.pathsToRemove, zipFilePath) + + licenseDir := lv.LicenseDir + up, err := d.DownloadAndUnpack(ctx, pv, dstDir, licenseDir) + if up != nil { + lv.pathsToRemove = append(lv.pathsToRemove, up.PathsToRemove...) } if err != nil { return "", err diff --git a/vendor/github.com/hashicorp/hc-install/fs/fs.go b/vendor/github.com/hashicorp/hc-install/fs/fs.go index 216df2c2cdc2..ac6f5cf9cd0f 100644 --- a/vendor/github.com/hashicorp/hc-install/fs/fs.go +++ b/vendor/github.com/hashicorp/hc-install/fs/fs.go @@ -4,14 +4,14 @@ package fs import ( - "io/ioutil" + "io" "log" "time" ) var ( defaultTimeout = 10 * time.Second - discardLogger = log.New(ioutil.Discard, "", 0) + discardLogger = log.New(io.Discard, "", 0) ) type fileCheckFunc func(path string) error diff --git a/vendor/github.com/hashicorp/hc-install/fs/fs_unix.go b/vendor/github.com/hashicorp/hc-install/fs/fs_unix.go index eebd98b82c04..5aed84448409 100644 --- a/vendor/github.com/hashicorp/hc-install/fs/fs_unix.go +++ b/vendor/github.com/hashicorp/hc-install/fs/fs_unix.go @@ -16,9 +16,7 @@ import ( func lookupDirs(extraDirs []string) []string { pathVar := os.Getenv("PATH") dirs := filepath.SplitList(pathVar) - for _, ep := range extraDirs { - dirs = append(dirs, ep) - } + dirs = append(dirs, extraDirs...) return dirs } diff --git a/vendor/github.com/hashicorp/hc-install/installer.go b/vendor/github.com/hashicorp/hc-install/installer.go index 6c704eede3d9..01c1fdeed9fd 100644 --- a/vendor/github.com/hashicorp/hc-install/installer.go +++ b/vendor/github.com/hashicorp/hc-install/installer.go @@ -6,7 +6,7 @@ package install import ( "context" "fmt" - "io/ioutil" + "io" "log" "github.com/hashicorp/go-multierror" @@ -23,7 +23,7 @@ type Installer struct { type RemoveFunc func(ctx context.Context) error func NewInstaller() *Installer { - discardLogger := log.New(ioutil.Discard, "", 0) + discardLogger := log.New(io.Discard, "", 0) return &Installer{ logger: discardLogger, } diff --git a/vendor/github.com/hashicorp/hc-install/internal/build/go_build.go b/vendor/github.com/hashicorp/hc-install/internal/build/go_build.go index 504bf45a3052..6eef755bdbed 100644 --- a/vendor/github.com/hashicorp/hc-install/internal/build/go_build.go +++ b/vendor/github.com/hashicorp/hc-install/internal/build/go_build.go @@ -7,7 +7,7 @@ import ( "bytes" "context" "fmt" - "io/ioutil" + "io" "log" "os" "os/exec" @@ -17,7 +17,7 @@ import ( "golang.org/x/mod/modfile" ) -var discardLogger = log.New(ioutil.Discard, "", 0) +var discardLogger = log.New(io.Discard, "", 0) // GoBuild represents a Go builder (to run "go build") type GoBuild struct { @@ -161,7 +161,7 @@ type CleanupFunc func(context.Context) func guessRequiredGoVersion(repoDir string) (*version.Version, bool) { goEnvFile := filepath.Join(repoDir, ".go-version") if fi, err := os.Stat(goEnvFile); err == nil && !fi.IsDir() { - b, err := ioutil.ReadFile(goEnvFile) + b, err := os.ReadFile(goEnvFile) if err != nil { return nil, false } @@ -174,7 +174,7 @@ func guessRequiredGoVersion(repoDir string) (*version.Version, bool) { goModFile := filepath.Join(repoDir, "go.mod") if fi, err := os.Stat(goModFile); err == nil && !fi.IsDir() { - b, err := ioutil.ReadFile(goModFile) + b, err := os.ReadFile(goModFile) if err != nil { return nil, false } diff --git a/vendor/github.com/hashicorp/hc-install/internal/httpclient/httpclient.go b/vendor/github.com/hashicorp/hc-install/internal/httpclient/httpclient.go index a9503dfdb882..7cdcf5b15f78 100644 --- a/vendor/github.com/hashicorp/hc-install/internal/httpclient/httpclient.go +++ b/vendor/github.com/hashicorp/hc-install/internal/httpclient/httpclient.go @@ -5,25 +5,23 @@ package httpclient import ( "fmt" + "log" "net/http" - "github.com/hashicorp/go-cleanhttp" + "github.com/hashicorp/go-retryablehttp" "github.com/hashicorp/hc-install/version" ) // NewHTTPClient provides a pre-configured http.Client // e.g. with relevant User-Agent header -func NewHTTPClient() *http.Client { - client := cleanhttp.DefaultClient() - - userAgent := fmt.Sprintf("hc-install/%s", version.Version()) - - cli := cleanhttp.DefaultPooledClient() - cli.Transport = &userAgentRoundTripper{ - userAgent: userAgent, - inner: cli.Transport, +func NewHTTPClient(logger *log.Logger) *http.Client { + rc := retryablehttp.NewClient() + rc.Logger = logger + client := rc.StandardClient() + client.Transport = &userAgentRoundTripper{ + userAgent: fmt.Sprintf("hc-install/%s", version.Version()), + inner: client.Transport, } - return client } diff --git a/vendor/github.com/hashicorp/hc-install/internal/releasesjson/checksum_downloader.go b/vendor/github.com/hashicorp/hc-install/internal/releasesjson/checksum_downloader.go index 843de8cdfadd..264801b809be 100644 --- a/vendor/github.com/hashicorp/hc-install/internal/releasesjson/checksum_downloader.go +++ b/vendor/github.com/hashicorp/hc-install/internal/releasesjson/checksum_downloader.go @@ -52,10 +52,10 @@ func (cd *ChecksumDownloader) DownloadAndVerifyChecksums(ctx context.Context) (C return nil, err } - client := httpclient.NewHTTPClient() + client := httpclient.NewHTTPClient(cd.Logger) sigURL := fmt.Sprintf("%s/%s/%s/%s", cd.BaseURL, url.PathEscape(cd.ProductVersion.Name), - url.PathEscape(cd.ProductVersion.RawVersion), + url.PathEscape(cd.ProductVersion.Version.String()), url.PathEscape(sigFilename)) cd.Logger.Printf("downloading signature from %s", sigURL) @@ -76,7 +76,7 @@ func (cd *ChecksumDownloader) DownloadAndVerifyChecksums(ctx context.Context) (C shasumsURL := fmt.Sprintf("%s/%s/%s/%s", cd.BaseURL, url.PathEscape(cd.ProductVersion.Name), - url.PathEscape(cd.ProductVersion.RawVersion), + url.PathEscape(cd.ProductVersion.Version.String()), url.PathEscape(cd.ProductVersion.SHASUMS)) cd.Logger.Printf("downloading checksums from %s", shasumsURL) diff --git a/vendor/github.com/hashicorp/hc-install/internal/releasesjson/downloader.go b/vendor/github.com/hashicorp/hc-install/internal/releasesjson/downloader.go index 146c1cf029f3..708915ea6593 100644 --- a/vendor/github.com/hashicorp/hc-install/internal/releasesjson/downloader.go +++ b/vendor/github.com/hashicorp/hc-install/internal/releasesjson/downloader.go @@ -10,7 +10,6 @@ import ( "crypto/sha256" "fmt" "io" - "io/ioutil" "log" "net/http" "net/url" @@ -29,14 +28,18 @@ type Downloader struct { BaseURL string } -func (d *Downloader) DownloadAndUnpack(ctx context.Context, pv *ProductVersion, binDir string, licenseDir string) (zipFilePath string, err error) { +type UnpackedProduct struct { + PathsToRemove []string +} + +func (d *Downloader) DownloadAndUnpack(ctx context.Context, pv *ProductVersion, binDir string, licenseDir string) (up *UnpackedProduct, err error) { if len(pv.Builds) == 0 { - return "", fmt.Errorf("no builds found for %s %s", pv.Name, pv.Version) + return nil, fmt.Errorf("no builds found for %s %s", pv.Name, pv.Version) } pb, ok := pv.Builds.FilterBuild(runtime.GOOS, runtime.GOARCH, "zip") if !ok { - return "", fmt.Errorf("no ZIP archive found for %s %s %s/%s", + return nil, fmt.Errorf("no ZIP archive found for %s %s %s/%s", pv.Name, pv.Version, runtime.GOOS, runtime.GOARCH) } @@ -50,48 +53,35 @@ func (d *Downloader) DownloadAndUnpack(ctx context.Context, pv *ProductVersion, } verifiedChecksums, err := v.DownloadAndVerifyChecksums(ctx) if err != nil { - return "", err + return nil, err } var ok bool verifiedChecksum, ok = verifiedChecksums[pb.Filename] if !ok { - return "", fmt.Errorf("no checksum found for %q", pb.Filename) + return nil, fmt.Errorf("no checksum found for %q", pb.Filename) } } - client := httpclient.NewHTTPClient() + client := httpclient.NewHTTPClient(d.Logger) - archiveURL := pb.URL - if d.BaseURL != "" { - // ensure that absolute download links from mocked responses - // are still pointing to the mock server if one is set - baseURL, err := url.Parse(d.BaseURL) - if err != nil { - return "", err - } - - u, err := url.Parse(archiveURL) - if err != nil { - return "", err - } - u.Scheme = baseURL.Scheme - u.Host = baseURL.Host - archiveURL = u.String() + archiveURL, err := determineArchiveURL(pb.URL, d.BaseURL) + if err != nil { + return nil, err } d.Logger.Printf("downloading archive from %s", archiveURL) req, err := http.NewRequestWithContext(ctx, http.MethodGet, archiveURL, nil) if err != nil { - return "", fmt.Errorf("failed to create request for %q: %w", archiveURL, err) + return nil, fmt.Errorf("failed to create request for %q: %w", archiveURL, err) } resp, err := client.Do(req) if err != nil { - return "", err + return nil, err } if resp.StatusCode != 200 { - return "", fmt.Errorf("failed to download ZIP archive from %q: %s", archiveURL, resp.Status) + return nil, fmt.Errorf("failed to download ZIP archive from %q: %s", archiveURL, resp.Status) } defer resp.Body.Close() @@ -100,19 +90,22 @@ func (d *Downloader) DownloadAndUnpack(ctx context.Context, pv *ProductVersion, contentType := resp.Header.Get("content-type") if !contentTypeIsZip(contentType) { - return "", fmt.Errorf("unexpected content-type: %s (expected any of %q)", + return nil, fmt.Errorf("unexpected content-type: %s (expected any of %q)", contentType, zipMimeTypes) } expectedSize := resp.ContentLength - pkgFile, err := ioutil.TempFile("", pb.Filename) + pkgFile, err := os.CreateTemp("", pb.Filename) if err != nil { - return "", err + return nil, err } defer pkgFile.Close() pkgFilePath, err := filepath.Abs(pkgFile.Name()) + up = &UnpackedProduct{} + up.PathsToRemove = append(up.PathsToRemove, pkgFilePath) + d.Logger.Printf("copying %q (%d bytes) to %s", pb.Filename, expectedSize, pkgFile.Name()) var bytesCopied int64 @@ -123,12 +116,12 @@ func (d *Downloader) DownloadAndUnpack(ctx context.Context, pv *ProductVersion, bytesCopied, err = io.Copy(h, r) if err != nil { - return "", err + return nil, err } calculatedSum := h.Sum(nil) if !bytes.Equal(calculatedSum, verifiedChecksum) { - return pkgFilePath, fmt.Errorf( + return up, fmt.Errorf( "checksum mismatch (expected: %x, got: %x)", verifiedChecksum, calculatedSum, ) @@ -136,14 +129,14 @@ func (d *Downloader) DownloadAndUnpack(ctx context.Context, pv *ProductVersion, } else { bytesCopied, err = io.Copy(pkgFile, pkgReader) if err != nil { - return pkgFilePath, err + return up, err } } d.Logger.Printf("copied %d bytes to %s", bytesCopied, pkgFile.Name()) if expectedSize != 0 && bytesCopied != int64(expectedSize) { - return pkgFilePath, fmt.Errorf( + return up, fmt.Errorf( "unexpected size (downloaded: %d, expected: %d)", bytesCopied, expectedSize, ) @@ -151,7 +144,7 @@ func (d *Downloader) DownloadAndUnpack(ctx context.Context, pv *ProductVersion, r, err := zip.OpenReader(pkgFile.Name()) if err != nil { - return pkgFilePath, err + return up, err } defer r.Close() @@ -163,31 +156,37 @@ func (d *Downloader) DownloadAndUnpack(ctx context.Context, pv *ProductVersion, } srcFile, err := f.Open() if err != nil { - return pkgFilePath, err + return up, err } // Determine the appropriate destination file path dstDir := binDir + // for license files, use binDir if licenseDir is not set if isLicenseFile(f.Name) && licenseDir != "" { dstDir = licenseDir } d.Logger.Printf("unpacking %s to %s", f.Name, dstDir) dstPath := filepath.Join(dstDir, f.Name) + + if isLicenseFile(f.Name) { + up.PathsToRemove = append(up.PathsToRemove, dstPath) + } + dstFile, err := os.Create(dstPath) if err != nil { - return pkgFilePath, err + return up, err } _, err = io.Copy(dstFile, srcFile) if err != nil { - return pkgFilePath, err + return up, err } srcFile.Close() dstFile.Close() } - return pkgFilePath, nil + return up, nil } // The production release site uses consistent single mime type @@ -207,11 +206,13 @@ func contentTypeIsZip(contentType string) bool { return false } -// Enterprise products have a few additional license files -// that need to be extracted to a separate directory +// Product archives may have a few license files +// which may be extracted to a separate directory +// and may need to be tracked for later cleanup. var licenseFiles = []string{ "EULA.txt", "TermsOfEvaluation.txt", + "LICENSE.txt", } func isLicenseFile(filename string) bool { @@ -222,3 +223,28 @@ func isLicenseFile(filename string) bool { } return false } + +// determineArchiveURL determines the archive URL based on the base URL provided. +func determineArchiveURL(archiveURL, baseURL string) (string, error) { + // If custom URL is set, use that instead of the one from the JSON. + // Also ensures that absolute download links from mocked responses + // are still pointing to the mock server if one is set. + if baseURL == "" { + return archiveURL, nil + } + + base, err := url.Parse(baseURL) + if err != nil { + return "", err + } + + u, err := url.Parse(archiveURL) + if err != nil { + return "", err + } + + // Use base URL path and append the path from the archive URL. + newArchiveURL := base.JoinPath(u.Path) + + return newArchiveURL.String(), nil +} diff --git a/vendor/github.com/hashicorp/hc-install/internal/releasesjson/product_version.go b/vendor/github.com/hashicorp/hc-install/internal/releasesjson/product_version.go index 99b811a6458f..94152b131a08 100644 --- a/vendor/github.com/hashicorp/hc-install/internal/releasesjson/product_version.go +++ b/vendor/github.com/hashicorp/hc-install/internal/releasesjson/product_version.go @@ -9,8 +9,7 @@ import "github.com/hashicorp/go-version" // "consul 0.5.1". A ProductVersion may have one or more builds. type ProductVersion struct { Name string `json:"name"` - RawVersion string `json:"version"` - Version *version.Version `json:"-"` + Version *version.Version `json:"version"` SHASUMS string `json:"shasums,omitempty"` SHASUMSSig string `json:"shasums_signature,omitempty"` SHASUMSSigs []string `json:"shasums_signatures,omitempty"` diff --git a/vendor/github.com/hashicorp/hc-install/internal/releasesjson/releases.go b/vendor/github.com/hashicorp/hc-install/internal/releasesjson/releases.go index 755019f2f257..cae7f5302421 100644 --- a/vendor/github.com/hashicorp/hc-install/internal/releasesjson/releases.go +++ b/vendor/github.com/hashicorp/hc-install/internal/releasesjson/releases.go @@ -7,7 +7,7 @@ import ( "context" "encoding/json" "fmt" - "io/ioutil" + "io" "log" "net/http" "net/url" @@ -55,7 +55,7 @@ type Releases struct { func NewReleases() *Releases { return &Releases{ - logger: log.New(ioutil.Discard, "", 0), + logger: log.New(io.Discard, "", 0), BaseURL: defaultBaseURL, } } @@ -65,7 +65,7 @@ func (r *Releases) SetLogger(logger *log.Logger) { } func (r *Releases) ListProductVersions(ctx context.Context, productName string) (ProductVersionsMap, error) { - client := httpclient.NewHTTPClient() + client := httpclient.NewHTTPClient(r.logger) productIndexURL := fmt.Sprintf("%s/%s/index.json", r.BaseURL, @@ -95,7 +95,7 @@ func (r *Releases) ListProductVersions(ctx context.Context, productName string) r.logger.Printf("received %s", resp.Status) - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { return nil, err } @@ -122,7 +122,7 @@ func (r *Releases) ListProductVersions(ctx context.Context, productName string) } func (r *Releases) GetProductVersion(ctx context.Context, product string, version *version.Version) (*ProductVersion, error) { - client := httpclient.NewHTTPClient() + client := httpclient.NewHTTPClient(r.logger) indexURL := fmt.Sprintf("%s/%s/%s/index.json", r.BaseURL, @@ -153,7 +153,7 @@ func (r *Releases) GetProductVersion(ctx context.Context, product string, versio r.logger.Printf("received %s", resp.Status) - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { return nil, err } diff --git a/vendor/github.com/hashicorp/hc-install/product/consul.go b/vendor/github.com/hashicorp/hc-install/product/consul.go index 9789d7c318e1..03b0326057d0 100644 --- a/vendor/github.com/hashicorp/hc-install/product/consul.go +++ b/vendor/github.com/hashicorp/hc-install/product/consul.go @@ -17,10 +17,6 @@ import ( var consulVersionOutputRe = regexp.MustCompile(`Consul ` + simpleVersionRe) -var ( - v1_18 = version.Must(version.NewVersion("1.18")) -) - var Consul = Product{ Name: "consul", BinaryName: func() string { diff --git a/vendor/github.com/hashicorp/hc-install/releases/enterprise.go b/vendor/github.com/hashicorp/hc-install/releases/enterprise.go index 179d40d1cd43..cfef088afbd2 100644 --- a/vendor/github.com/hashicorp/hc-install/releases/enterprise.go +++ b/vendor/github.com/hashicorp/hc-install/releases/enterprise.go @@ -6,9 +6,6 @@ package releases import "fmt" type EnterpriseOptions struct { - // LicenseDir represents directory path where to install license files (required) - LicenseDir string - // Meta represents optional version metadata (e.g. hsm, fips1402) Meta string } @@ -25,12 +22,12 @@ func enterpriseVersionMetadata(eo *EnterpriseOptions) string { return metadata } -func validateEnterpriseOptions(eo *EnterpriseOptions) error { +func validateEnterpriseOptions(eo *EnterpriseOptions, licenseDir string) error { if eo == nil { return nil } - if eo.LicenseDir == "" { + if licenseDir == "" { return fmt.Errorf("LicenseDir must be provided when requesting enterprise versions") } diff --git a/vendor/github.com/hashicorp/hc-install/releases/exact_version.go b/vendor/github.com/hashicorp/hc-install/releases/exact_version.go index e42f4d239fd8..597e9ae36274 100644 --- a/vendor/github.com/hashicorp/hc-install/releases/exact_version.go +++ b/vendor/github.com/hashicorp/hc-install/releases/exact_version.go @@ -6,7 +6,6 @@ package releases import ( "context" "fmt" - "io/ioutil" "log" "os" "path/filepath" @@ -28,6 +27,10 @@ type ExactVersion struct { InstallDir string Timeout time.Duration + // LicenseDir represents directory path where to install license files + // (required for enterprise versions, optional for Community editions). + LicenseDir string + // Enterprise indicates installation of enterprise version (leave nil for Community editions) Enterprise *EnterpriseOptions @@ -37,7 +40,10 @@ type ExactVersion struct { // instead of built-in pubkey to verify signature of downloaded checksums ArmoredPublicKey string - apiBaseURL string + // ApiBaseURL is an optional field that specifies a custom URL to download the product from. + // If ApiBaseURL is set, the product will be downloaded from this base URL instead of the default site. + // Note: The directory structure of the custom URL must match the HashiCorp releases site (including the index.json files). + ApiBaseURL string logger *log.Logger pathsToRemove []string } @@ -70,7 +76,7 @@ func (ev *ExactVersion) Validate() error { return fmt.Errorf("unknown version") } - if err := validateEnterpriseOptions(ev.Enterprise); err != nil { + if err := validateEnterpriseOptions(ev.Enterprise, ev.LicenseDir); err != nil { return err } @@ -93,7 +99,7 @@ func (ev *ExactVersion) Install(ctx context.Context) (string, error) { if dstDir == "" { var err error dirName := fmt.Sprintf("%s_*", ev.Product.Name) - dstDir, err = ioutil.TempDir("", dirName) + dstDir, err = os.MkdirTemp("", dirName) if err != nil { return "", err } @@ -103,8 +109,8 @@ func (ev *ExactVersion) Install(ctx context.Context) (string, error) { ev.log().Printf("will install into dir at %s", dstDir) rels := rjson.NewReleases() - if ev.apiBaseURL != "" { - rels.BaseURL = ev.apiBaseURL + if ev.ApiBaseURL != "" { + rels.BaseURL = ev.ApiBaseURL } rels.SetLogger(ev.log()) installVersion := ev.Version @@ -125,17 +131,14 @@ func (ev *ExactVersion) Install(ctx context.Context) (string, error) { if ev.ArmoredPublicKey != "" { d.ArmoredPublicKey = ev.ArmoredPublicKey } - if ev.apiBaseURL != "" { - d.BaseURL = ev.apiBaseURL + if ev.ApiBaseURL != "" { + d.BaseURL = ev.ApiBaseURL } - licenseDir := "" - if ev.Enterprise != nil { - licenseDir = ev.Enterprise.LicenseDir - } - zipFilePath, err := d.DownloadAndUnpack(ctx, pv, dstDir, licenseDir) - if zipFilePath != "" { - ev.pathsToRemove = append(ev.pathsToRemove, zipFilePath) + licenseDir := ev.LicenseDir + up, err := d.DownloadAndUnpack(ctx, pv, dstDir, licenseDir) + if up != nil { + ev.pathsToRemove = append(ev.pathsToRemove, up.PathsToRemove...) } if err != nil { return "", err diff --git a/vendor/github.com/hashicorp/hc-install/releases/latest_version.go b/vendor/github.com/hashicorp/hc-install/releases/latest_version.go index 9893b223ad15..ee70782b2962 100644 --- a/vendor/github.com/hashicorp/hc-install/releases/latest_version.go +++ b/vendor/github.com/hashicorp/hc-install/releases/latest_version.go @@ -6,7 +6,6 @@ package releases import ( "context" "fmt" - "io/ioutil" "log" "os" "path/filepath" @@ -28,6 +27,10 @@ type LatestVersion struct { Timeout time.Duration IncludePrereleases bool + // LicenseDir represents directory path where to install license files + // (required for enterprise versions, optional for Community editions). + LicenseDir string + // Enterprise indicates installation of enterprise version (leave nil for Community editions) Enterprise *EnterpriseOptions @@ -37,7 +40,10 @@ type LatestVersion struct { // instead of built-in pubkey to verify signature of downloaded checksums ArmoredPublicKey string - apiBaseURL string + // ApiBaseURL is an optional field that specifies a custom URL to download the product from. + // If ApiBaseURL is set, the product will be downloaded from this base URL instead of the default site. + // Note: The directory structure of the custom URL must match the HashiCorp releases site (including the index.json files). + ApiBaseURL string logger *log.Logger pathsToRemove []string } @@ -66,7 +72,7 @@ func (lv *LatestVersion) Validate() error { return fmt.Errorf("invalid binary name: %q", lv.Product.BinaryName()) } - if err := validateEnterpriseOptions(lv.Enterprise); err != nil { + if err := validateEnterpriseOptions(lv.Enterprise, lv.LicenseDir); err != nil { return err } @@ -89,7 +95,7 @@ func (lv *LatestVersion) Install(ctx context.Context) (string, error) { if dstDir == "" { var err error dirName := fmt.Sprintf("%s_*", lv.Product.Name) - dstDir, err = ioutil.TempDir("", dirName) + dstDir, err = os.MkdirTemp("", dirName) if err != nil { return "", err } @@ -99,8 +105,8 @@ func (lv *LatestVersion) Install(ctx context.Context) (string, error) { lv.log().Printf("will install into dir at %s", dstDir) rels := rjson.NewReleases() - if lv.apiBaseURL != "" { - rels.BaseURL = lv.apiBaseURL + if lv.ApiBaseURL != "" { + rels.BaseURL = lv.ApiBaseURL } rels.SetLogger(lv.log()) versions, err := rels.ListProductVersions(ctx, lv.Product.Name) @@ -126,16 +132,13 @@ func (lv *LatestVersion) Install(ctx context.Context) (string, error) { if lv.ArmoredPublicKey != "" { d.ArmoredPublicKey = lv.ArmoredPublicKey } - if lv.apiBaseURL != "" { - d.BaseURL = lv.apiBaseURL - } - licenseDir := "" - if lv.Enterprise != nil { - licenseDir = lv.Enterprise.LicenseDir + if lv.ApiBaseURL != "" { + d.BaseURL = lv.ApiBaseURL } - zipFilePath, err := d.DownloadAndUnpack(ctx, versionToInstall, dstDir, licenseDir) - if zipFilePath != "" { - lv.pathsToRemove = append(lv.pathsToRemove, zipFilePath) + licenseDir := lv.LicenseDir + up, err := d.DownloadAndUnpack(ctx, versionToInstall, dstDir, licenseDir) + if up != nil { + lv.pathsToRemove = append(lv.pathsToRemove, up.PathsToRemove...) } if err != nil { return "", err diff --git a/vendor/github.com/hashicorp/hc-install/releases/releases.go b/vendor/github.com/hashicorp/hc-install/releases/releases.go index 7bef49ba30f3..a24db6c63e34 100644 --- a/vendor/github.com/hashicorp/hc-install/releases/releases.go +++ b/vendor/github.com/hashicorp/hc-install/releases/releases.go @@ -4,7 +4,7 @@ package releases import ( - "io/ioutil" + "io" "log" "time" ) @@ -12,5 +12,5 @@ import ( var ( defaultInstallTimeout = 30 * time.Second defaultListTimeout = 10 * time.Second - discardLogger = log.New(ioutil.Discard, "", 0) + discardLogger = log.New(io.Discard, "", 0) ) diff --git a/vendor/github.com/hashicorp/hc-install/releases/versions.go b/vendor/github.com/hashicorp/hc-install/releases/versions.go index 49b1af78cae2..a4316090ec5e 100644 --- a/vendor/github.com/hashicorp/hc-install/releases/versions.go +++ b/vendor/github.com/hashicorp/hc-install/releases/versions.go @@ -30,8 +30,9 @@ type Versions struct { } type InstallationOptions struct { - Timeout time.Duration - Dir string + Timeout time.Duration + Dir string + LicenseDir string SkipChecksumVerification bool @@ -46,7 +47,7 @@ func (v *Versions) List(ctx context.Context) ([]src.Source, error) { return nil, fmt.Errorf("invalid product name: %q", v.Product.Name) } - if err := validateEnterpriseOptions(v.Enterprise); err != nil { + if err := validateEnterpriseOptions(v.Enterprise, v.Install.LicenseDir); err != nil { return nil, err } @@ -85,6 +86,7 @@ func (v *Versions) List(ctx context.Context) ([]src.Source, error) { Version: pv.Version, InstallDir: v.Install.Dir, Timeout: v.Install.Timeout, + LicenseDir: v.Install.LicenseDir, ArmoredPublicKey: v.Install.ArmoredPublicKey, SkipChecksumVerification: v.Install.SkipChecksumVerification, @@ -92,8 +94,7 @@ func (v *Versions) List(ctx context.Context) ([]src.Source, error) { if v.Enterprise != nil { ev.Enterprise = &EnterpriseOptions{ - Meta: v.Enterprise.Meta, - LicenseDir: v.Enterprise.LicenseDir, + Meta: v.Enterprise.Meta, } } diff --git a/vendor/github.com/hashicorp/hc-install/version/VERSION b/vendor/github.com/hashicorp/hc-install/version/VERSION index d2b13eb644d6..ac39a106c485 100644 --- a/vendor/github.com/hashicorp/hc-install/version/VERSION +++ b/vendor/github.com/hashicorp/hc-install/version/VERSION @@ -1 +1 @@ -0.6.4 +0.9.0 diff --git a/vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md b/vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md index 2eebedbc76f4..b2ff2631d2c5 100644 --- a/vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md +++ b/vendor/github.com/hashicorp/hcl/v2/CHANGELOG.md @@ -1,5 +1,22 @@ # HCL Changelog +## v2.22.0 (August 26, 2024) + +### Enhancements + +* feat: return an ExprSyntaxError for invalid references that end in a dot ([#692](https://github.com/hashicorp/hcl/pull/692)) + +## v2.21.0 (June 19, 2024) + +### Enhancements + +* Introduce `ParseTraversalPartial`, which allows traversals that include the splat (`[*]`) index operator. ([#673](https://github.com/hashicorp/hcl/pull/673)) +* ext/dynblock: Now accepts marked values in `for_each`, and will transfer those marks (as much as technically possible) to values in the generated blocks. ([#679](https://github.com/hashicorp/hcl/pull/679)) + +### Bugs Fixed + +* Expression evaluation will no longer panic if the splat operator is applied to an unknown value that has cty marks. ([#678](https://github.com/hashicorp/hcl/pull/678)) + ## v2.20.1 (March 26, 2024) ### Bugs Fixed diff --git a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go index 815973996bb9..f4c3a6d79b56 100644 --- a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go +++ b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/expression.go @@ -788,21 +788,24 @@ func (e *ConditionalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostic }) return cty.UnknownVal(resultType), diags } - if !condResult.IsKnown() { - // we use the unmarked values throughout the unknown branch - _, condResultMarks := condResult.Unmark() - trueResult, trueResultMarks := trueResult.Unmark() - falseResult, falseResultMarks := falseResult.Unmark() - // use a value to merge marks - _, resMarks := cty.DynamicVal.WithMarks(condResultMarks, trueResultMarks, falseResultMarks).Unmark() + // Now that we have all three values, collect all the marks for the result. + // Since it's possible that a condition value could be unknown, and the + // consumer needs to deal with any marks from either branch anyway, we must + // always combine them for consistent results. + condResult, condResultMarks := condResult.Unmark() + trueResult, trueResultMarks := trueResult.Unmark() + falseResult, falseResultMarks := falseResult.Unmark() + var resMarks []cty.ValueMarks + resMarks = append(resMarks, condResultMarks, trueResultMarks, falseResultMarks) + if !condResult.IsKnown() { trueRange := trueResult.Range() falseRange := falseResult.Range() // if both branches are known to be null, then the result must still be null if trueResult.IsNull() && falseResult.IsNull() { - return cty.NullVal(resultType).WithMarks(resMarks), diags + return cty.NullVal(resultType).WithMarks(resMarks...), diags } // We might be able to offer a refined range for the result based on @@ -841,7 +844,7 @@ func (e *ConditionalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostic ref = ref.NumberRangeUpperBound(hi, hiInc) } - return ref.NewValue().WithMarks(resMarks), diags + return ref.NewValue().WithMarks(resMarks...), diags } if trueResult.Type().IsCollectionType() && falseResult.Type().IsCollectionType() { @@ -867,7 +870,7 @@ func (e *ConditionalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostic } ref = ref.CollectionLengthLowerBound(lo).CollectionLengthUpperBound(hi) - return ref.NewValue().WithMarks(resMarks), diags + return ref.NewValue().WithMarks(resMarks...), diags } } @@ -875,7 +878,7 @@ func (e *ConditionalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostic if trueRange.DefinitelyNotNull() && falseRange.DefinitelyNotNull() { ret = ret.RefineNotNull() } - return ret.WithMarks(resMarks), diags + return ret.WithMarks(resMarks...), diags } condResult, err := convert.Convert(condResult, cty.Bool) @@ -892,8 +895,6 @@ func (e *ConditionalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostic return cty.UnknownVal(resultType), diags } - // Unmark result before testing for truthiness - condResult, _ = condResult.UnmarkDeep() if condResult.True() { diags = append(diags, trueDiags...) if convs[0] != nil { @@ -916,7 +917,7 @@ func (e *ConditionalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostic trueResult = cty.UnknownVal(resultType) } } - return trueResult, diags + return trueResult.WithMarks(resMarks...), diags } else { diags = append(diags, falseDiags...) if convs[1] != nil { @@ -939,7 +940,7 @@ func (e *ConditionalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostic falseResult = cty.UnknownVal(resultType) } } - return falseResult, diags + return falseResult.WithMarks(resMarks...), diags } } @@ -1429,9 +1430,9 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { }) return cty.DynamicVal, diags } - if !collVal.IsKnown() { - return cty.DynamicVal, diags - } + + // Grab the CondExpr marks when we're returning early with an unknown + var condMarks cty.ValueMarks // Before we start we'll do an early check to see if any CondExpr we've // been given is of the wrong type. This isn't 100% reliable (it may @@ -1459,6 +1460,9 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { }) return cty.DynamicVal, diags } + + _, condMarks = result.Unmark() + _, err := convert.Convert(result, cty.Bool) if err != nil { diags = append(diags, &hcl.Diagnostic{ @@ -1477,6 +1481,10 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { } } + if !collVal.IsKnown() { + return cty.DynamicVal.WithMarks(append(marks, condMarks)...), diags + } + if e.KeyExpr != nil { // Producing an object var vals map[string]cty.Value @@ -1517,6 +1525,12 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { known = false continue } + + // Extract and merge marks from the include expression into the + // main set of marks + _, includeMarks := includeRaw.Unmark() + marks = append(marks, includeMarks) + include, err := convert.Convert(includeRaw, cty.Bool) if err != nil { if known { @@ -1540,7 +1554,7 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { // Extract and merge marks from the include expression into the // main set of marks - includeUnmarked, includeMarks := include.Unmark() + includeUnmarked, _ := include.Unmark() marks = append(marks, includeMarks) if includeUnmarked.False() { // Skip this element @@ -1565,6 +1579,10 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { known = false continue } + + _, keyMarks := keyRaw.Unmark() + marks = append(marks, keyMarks) + if !keyRaw.IsKnown() { known = false continue @@ -1587,8 +1605,7 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { continue } - key, keyMarks := key.Unmark() - marks = append(marks, keyMarks) + key, _ = key.Unmark() val, valDiags := e.ValExpr.Value(childCtx) diags = append(diags, valDiags...) @@ -1618,7 +1635,7 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { } if !known { - return cty.DynamicVal, diags + return cty.DynamicVal.WithMarks(marks...), diags } if e.Group { @@ -1664,6 +1681,12 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { known = false continue } + + // Extract and merge marks from the include expression into the + // main set of marks + _, includeMarks := includeRaw.Unmark() + marks = append(marks, includeMarks) + if !includeRaw.IsKnown() { // We will eventually return DynamicVal, but we'll continue // iterating in case there are other diagnostics to gather @@ -1689,10 +1712,7 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { continue } - // Extract and merge marks from the include expression into the - // main set of marks - includeUnmarked, includeMarks := include.Unmark() - marks = append(marks, includeMarks) + includeUnmarked, _ := include.Unmark() if includeUnmarked.False() { // Skip this element continue @@ -1705,7 +1725,7 @@ func (e *ForExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { } if !known { - return cty.DynamicVal, diags + return cty.DynamicVal.WithMarks(marks...), diags } return cty.TupleVal(vals).WithMarks(marks...), diags @@ -1780,7 +1800,7 @@ func (e *SplatExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { if sourceVal.IsNull() { if autoUpgrade { - return cty.EmptyTupleVal, diags + return cty.EmptyTupleVal.WithSameMarks(sourceVal), diags } diags = append(diags, &hcl.Diagnostic{ Severity: hcl.DiagError, @@ -1798,7 +1818,7 @@ func (e *SplatExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { // If we don't even know the _type_ of our source value yet then // we'll need to defer all processing, since we can't decide our // result type either. - return cty.DynamicVal, diags + return cty.DynamicVal.WithSameMarks(sourceVal), diags } upgradedUnknown := false @@ -1813,13 +1833,14 @@ func (e *SplatExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { // list of a single attribute, but we still need to check if that // attribute actually exists. if !sourceVal.IsKnown() { - sourceRng := sourceVal.Range() + unmarkedVal, _ := sourceVal.Unmark() + sourceRng := unmarkedVal.Range() if sourceRng.CouldBeNull() { upgradedUnknown = true } } - sourceVal = cty.TupleVal([]cty.Value{sourceVal}) + sourceVal = cty.TupleVal([]cty.Value{sourceVal}).WithSameMarks(sourceVal) sourceTy = sourceVal.Type() } @@ -1900,14 +1921,14 @@ func (e *SplatExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { e.Item.clearValue(ctx) // clean up our temporary value if upgradedUnknown { - return cty.DynamicVal, diags + return cty.DynamicVal.WithMarks(marks), diags } if !isKnown { // We'll ingore the resultTy diagnostics in this case since they // will just be the same errors we saw while iterating above. ty, _ := resultTy() - return cty.UnknownVal(ty), diags + return cty.UnknownVal(ty).WithMarks(marks), diags } switch { @@ -1915,7 +1936,7 @@ func (e *SplatExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { if len(vals) == 0 { ty, tyDiags := resultTy() diags = append(diags, tyDiags...) - return cty.ListValEmpty(ty.ElementType()), diags + return cty.ListValEmpty(ty.ElementType()).WithMarks(marks), diags } return cty.ListVal(vals).WithMarks(marks), diags default: diff --git a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser.go b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser.go index ce96ae35b4ca..fec7861a29f7 100644 --- a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser.go +++ b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser.go @@ -811,9 +811,16 @@ Traversal: // will probably be misparsed until we hit something that // allows us to re-sync. // - // We will probably need to do something better here eventually - // in order to support autocomplete triggered by typing a - // period. + // Returning an ExprSyntaxError allows us to pass more information + // about the invalid expression to the caller, which can then + // use this for example for completions that happen after typing + // a dot in an editor. + ret = &ExprSyntaxError{ + Placeholder: cty.DynamicVal, + ParseDiags: diags, + SrcRange: hcl.RangeBetween(from.Range(), dot.Range), + } + p.setRecovery() } @@ -1516,6 +1523,16 @@ func (p *parser) parseObjectCons() (Expression, hcl.Diagnostics) { diags = append(diags, valueDiags...) if p.recovery && valueDiags.HasErrors() { + // If the value is an ExprSyntaxError, we can add an item with it, even though we will recover afterwards + // This allows downstream consumers to still retrieve this first invalid item, even though following items + // won't be parsed. This is useful for supplying completions. + if exprSyntaxError, ok := value.(*ExprSyntaxError); ok { + items = append(items, ObjectConsItem{ + KeyExpr: key, + ValueExpr: exprSyntaxError, + }) + } + // If expression parsing failed then we are probably in a strange // place in the token stream, so we'll bail out and try to reset // to after our closing brace to allow parsing to continue. diff --git a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser_traversal.go b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser_traversal.go index 3afa6ab06458..f7d4062f09e8 100644 --- a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser_traversal.go +++ b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/parser_traversal.go @@ -4,8 +4,9 @@ package hclsyntax import ( - "github.com/hashicorp/hcl/v2" "github.com/zclconf/go-cty/cty" + + "github.com/hashicorp/hcl/v2" ) // ParseTraversalAbs parses an absolute traversal that is assumed to consume @@ -13,6 +14,26 @@ import ( // behavior is not supported here because traversals are not expected to // be parsed as part of a larger program. func (p *parser) ParseTraversalAbs() (hcl.Traversal, hcl.Diagnostics) { + return p.parseTraversal(false) +} + +// ParseTraversalPartial parses an absolute traversal that is permitted +// to contain splat ([*]) expressions. Only splat expressions within square +// brackets are permitted ([*]); splat expressions within attribute names are +// not permitted (.*). +// +// The meaning of partial here is that the traversal may be incomplete, in that +// any splat expression indicates reference to a potentially unknown number of +// elements. +// +// Traversals that include splats cannot be automatically traversed by HCL using +// the TraversalAbs or TraversalRel methods. Instead, the caller must handle +// the traversals manually. +func (p *parser) ParseTraversalPartial() (hcl.Traversal, hcl.Diagnostics) { + return p.parseTraversal(true) +} + +func (p *parser) parseTraversal(allowSplats bool) (hcl.Traversal, hcl.Diagnostics) { var ret hcl.Traversal var diags hcl.Diagnostics @@ -127,6 +148,34 @@ func (p *parser) ParseTraversalAbs() (hcl.Traversal, hcl.Diagnostics) { return ret, diags } + case TokenStar: + if allowSplats { + + p.Read() // Eat the star. + close := p.Read() + if close.Type != TokenCBrack { + diags = append(diags, &hcl.Diagnostic{ + Severity: hcl.DiagError, + Summary: "Unclosed index brackets", + Detail: "Index key must be followed by a closing bracket.", + Subject: &close.Range, + Context: hcl.RangeBetween(open.Range, close.Range).Ptr(), + }) + } + + ret = append(ret, hcl.TraverseSplat{ + SrcRange: hcl.RangeBetween(open.Range, close.Range), + }) + + if diags.HasErrors() { + return ret, diags + } + + continue + } + + // Otherwise, return the error below for the star. + fallthrough default: if next.Type == TokenStar { diags = append(diags, &hcl.Diagnostic{ diff --git a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/public.go b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/public.go index d56f8e50be55..17dc1ed419a5 100644 --- a/vendor/github.com/hashicorp/hcl/v2/hclsyntax/public.go +++ b/vendor/github.com/hashicorp/hcl/v2/hclsyntax/public.go @@ -118,6 +118,37 @@ func ParseTraversalAbs(src []byte, filename string, start hcl.Pos) (hcl.Traversa return expr, diags } +// ParseTraversalPartial matches the behavior of ParseTraversalAbs except +// that it allows splat expressions ([*]) to appear in the traversal. +// +// The returned traversals are "partial" in that the splat expression indicates +// an unknown value for the index. +// +// Traversals that include splats cannot be automatically traversed by HCL using +// the TraversalAbs or TraversalRel methods. Instead, the caller must handle +// the traversals manually. +func ParseTraversalPartial(src []byte, filename string, start hcl.Pos) (hcl.Traversal, hcl.Diagnostics) { + tokens, diags := LexExpression(src, filename, start) + peeker := newPeeker(tokens, false) + parser := &parser{peeker: peeker} + + // Bare traverals are always parsed in "ignore newlines" mode, as if + // they were wrapped in parentheses. + parser.PushIncludeNewlines(false) + + expr, parseDiags := parser.ParseTraversalPartial() + diags = append(diags, parseDiags...) + + parser.PopIncludeNewlines() + + // Panic if the parser uses incorrect stack discipline with the peeker's + // newlines stack, since otherwise it will produce confusing downstream + // errors. + peeker.AssertEmptyIncludeNewlinesStack() + + return expr, diags +} + // LexConfig performs lexical analysis on the given buffer, treating it as a // whole HCL config file, and returns the resulting tokens. // diff --git a/vendor/github.com/hashicorp/hcl/v2/ops.go b/vendor/github.com/hashicorp/hcl/v2/ops.go index bdf23614d673..3cd7b205effc 100644 --- a/vendor/github.com/hashicorp/hcl/v2/ops.go +++ b/vendor/github.com/hashicorp/hcl/v2/ops.go @@ -49,7 +49,7 @@ func Index(collection, key cty.Value, srcRange *Range) (cty.Value, Diagnostics) ty := collection.Type() kty := key.Type() if kty == cty.DynamicPseudoType || ty == cty.DynamicPseudoType { - return cty.DynamicVal, nil + return cty.DynamicVal.WithSameMarks(collection), nil } switch { @@ -87,9 +87,9 @@ func Index(collection, key cty.Value, srcRange *Range) (cty.Value, Diagnostics) has, _ := collection.HasIndex(key).Unmark() if !has.IsKnown() { if ty.IsTupleType() { - return cty.DynamicVal, nil + return cty.DynamicVal.WithSameMarks(collection), nil } else { - return cty.UnknownVal(ty.ElementType()), nil + return cty.UnknownVal(ty.ElementType()).WithSameMarks(collection), nil } } if has.False() { @@ -196,10 +196,10 @@ func Index(collection, key cty.Value, srcRange *Range) (cty.Value, Diagnostics) } } if !collection.IsKnown() { - return cty.DynamicVal, nil + return cty.DynamicVal.WithSameMarks(collection), nil } if !key.IsKnown() { - return cty.DynamicVal, nil + return cty.DynamicVal.WithSameMarks(collection), nil } key, _ = key.Unmark() @@ -291,13 +291,13 @@ func GetAttr(obj cty.Value, attrName string, srcRange *Range) (cty.Value, Diagno } if !obj.IsKnown() { - return cty.UnknownVal(ty.AttributeType(attrName)), nil + return cty.UnknownVal(ty.AttributeType(attrName)).WithSameMarks(obj), nil } return obj.GetAttr(attrName), nil case ty.IsMapType(): if !obj.IsKnown() { - return cty.UnknownVal(ty.ElementType()), nil + return cty.UnknownVal(ty.ElementType()).WithSameMarks(obj), nil } idx := cty.StringVal(attrName) @@ -319,7 +319,7 @@ func GetAttr(obj cty.Value, attrName string, srcRange *Range) (cty.Value, Diagno return obj.Index(idx), nil case ty == cty.DynamicPseudoType: - return cty.DynamicVal, nil + return cty.DynamicVal.WithSameMarks(obj), nil case ty.IsListType() && ty.ElementType().IsObjectType(): // It seems a common mistake to try to access attributes on a whole // list of objects rather than on a specific individual element, so diff --git a/vendor/github.com/hashicorp/hcl/v2/spec.md b/vendor/github.com/hashicorp/hcl/v2/spec.md index 97ef613182f7..d52ed70bb52a 100644 --- a/vendor/github.com/hashicorp/hcl/v2/spec.md +++ b/vendor/github.com/hashicorp/hcl/v2/spec.md @@ -96,7 +96,7 @@ of the implementation language. ### _Dynamic Attributes_ Processing The _schema-driven_ processing model is useful when the expected structure -of a body is known a priori by the calling application. Some blocks are +of a body is known by the calling application. Some blocks are instead more free-form, such as a user-provided set of arbitrary key/value pairs. diff --git a/vendor/github.com/hashicorp/terraform-json/action.go b/vendor/github.com/hashicorp/terraform-json/action.go index c74f7e68a31b..9dcab8569e43 100644 --- a/vendor/github.com/hashicorp/terraform-json/action.go +++ b/vendor/github.com/hashicorp/terraform-json/action.go @@ -26,6 +26,9 @@ const ( // ActionDelete denotes a delete operation. ActionDelete Action = "delete" + + // ActionForget denotes a forget operation. + ActionForget Action = "forget" ) // Actions denotes a valid change type. @@ -105,3 +108,12 @@ func (a Actions) CreateBeforeDestroy() bool { func (a Actions) Replace() bool { return a.DestroyBeforeCreate() || a.CreateBeforeDestroy() } + +// Forget is true if this set of Actions denotes a forget operation. +func (a Actions) Forget() bool { + if len(a) != 1 { + return false + } + + return a[0] == ActionForget +} diff --git a/vendor/github.com/hashicorp/terraform-json/catalog-info.yaml b/vendor/github.com/hashicorp/terraform-json/catalog-info.yaml new file mode 100644 index 000000000000..984285471bb0 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-json/catalog-info.yaml @@ -0,0 +1,17 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 +# +# Intended for internal HashiCorp use only +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: terraform-json + description: Helper types for the Terraform external data representation + annotations: + github.com/project-slug: hashicorp/terraform-json + jira/project-key: TF + jira/label: terraform-json +spec: + type: library + owner: terraform-core + lifecycle: production diff --git a/vendor/github.com/hashicorp/terraform-json/schemas.go b/vendor/github.com/hashicorp/terraform-json/schemas.go index a2918ef480d0..f6acc1fbcd85 100644 --- a/vendor/github.com/hashicorp/terraform-json/schemas.go +++ b/vendor/github.com/hashicorp/terraform-json/schemas.go @@ -87,6 +87,9 @@ type ProviderSchema struct { // The schemas for any data sources in this provider. DataSourceSchemas map[string]*Schema `json:"data_source_schemas,omitempty"` + // The schemas for any ephemeral resources in this provider. + EphemeralResourceSchemas map[string]*Schema `json:"ephemeral_resource_schemas,omitempty"` + // The definitions for any functions in this provider. Functions map[string]*FunctionSignature `json:"functions,omitempty"` } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag/diag.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag/diag.go index 09a65e6bf087..e856373913b5 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag/diag.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag/diag.go @@ -72,6 +72,19 @@ func BugInProviderDiagnostic(summary string) diag.Diagnostic { ) } +func InvalidValidatorUsageDiagnostic(path path.Path, validatorName string, description string) diag.Diagnostic { + return diag.NewAttributeErrorDiagnostic( + path, + "Invalid Validator Usage", + fmt.Sprintf("When validating the schema, an implementation issue was found. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + "An invalid usage of the %q validator was found: %s", + validatorName, + description, + ), + ) +} + // capitalize will uppercase the first letter in a UTF-8 string. func capitalize(str string) string { if str == "" { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr/doc.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr/doc.go new file mode 100644 index 000000000000..39f12681f7a5 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr/doc.go @@ -0,0 +1,5 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +// Package validatorfuncerr provides error helpers for provider-defined function validators. +package validatorfuncerr diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr/funcerr.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr/funcerr.go new file mode 100644 index 000000000000..94966c95162f --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr/funcerr.go @@ -0,0 +1,45 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validatorfuncerr + +import ( + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/function" +) + +func InvalidParameterValueFuncError(argumentPosition int64, description string, value string) *function.FuncError { + return function.NewArgumentFuncError( + argumentPosition, + fmt.Sprintf("Invalid Parameter Value: %s, got: %s", description, value), + ) +} + +func InvalidParameterValueLengthFuncError(argumentPosition int64, description string, value string) *function.FuncError { + return function.NewArgumentFuncError( + argumentPosition, + fmt.Sprintf("Invalid Parameter Value Length: %s, got: %s", description, value), + ) +} + +func InvalidParameterValueMatchFuncError(argumentPosition int64, description string, value string) *function.FuncError { + return function.NewArgumentFuncError( + argumentPosition, + fmt.Sprintf("Invalid Parameter Value Match: %s, got: %s", description, value), + ) +} + +func InvalidValidatorUsageFuncError(argumentPosition int64, validatorName string, description string) *function.FuncError { + return function.NewArgumentFuncError( + argumentPosition, + fmt.Sprintf( + "Invalid Validator Usage: "+ + "When validating the function definition, an implementation issue was found. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + "An invalid usage of the %q validator was found: %s", + validatorName, + description, + ), + ) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/also_requires.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/also_requires.go index 2d4c38a310a9..7abc8ae92711 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/also_requires.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/also_requires.go @@ -7,18 +7,21 @@ import ( "context" "fmt" - "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/tfsdk" + + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" ) // This type of validator must satisfy all types. var ( _ validator.Bool = AlsoRequiresValidator{} + _ validator.Float32 = AlsoRequiresValidator{} _ validator.Float64 = AlsoRequiresValidator{} + _ validator.Int32 = AlsoRequiresValidator{} _ validator.Int64 = AlsoRequiresValidator{} _ validator.List = AlsoRequiresValidator{} _ validator.Map = AlsoRequiresValidator{} @@ -115,6 +118,20 @@ func (av AlsoRequiresValidator) ValidateBool(ctx context.Context, req validator. resp.Diagnostics.Append(validateResp.Diagnostics...) } +func (av AlsoRequiresValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, resp *validator.Float32Response) { + validateReq := AlsoRequiresValidatorRequest{ + Config: req.Config, + ConfigValue: req.ConfigValue, + Path: req.Path, + PathExpression: req.PathExpression, + } + validateResp := &AlsoRequiresValidatorResponse{} + + av.Validate(ctx, validateReq, validateResp) + + resp.Diagnostics.Append(validateResp.Diagnostics...) +} + func (av AlsoRequiresValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response) { validateReq := AlsoRequiresValidatorRequest{ Config: req.Config, @@ -129,6 +146,20 @@ func (av AlsoRequiresValidator) ValidateFloat64(ctx context.Context, req validat resp.Diagnostics.Append(validateResp.Diagnostics...) } +func (av AlsoRequiresValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response) { + validateReq := AlsoRequiresValidatorRequest{ + Config: req.Config, + ConfigValue: req.ConfigValue, + Path: req.Path, + PathExpression: req.PathExpression, + } + validateResp := &AlsoRequiresValidatorResponse{} + + av.Validate(ctx, validateReq, validateResp) + + resp.Diagnostics.Append(validateResp.Diagnostics...) +} + func (av AlsoRequiresValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response) { validateReq := AlsoRequiresValidatorRequest{ Config: req.Config, diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/at_least_one_of.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/at_least_one_of.go index 708d59e0f0a9..a31e45074574 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/at_least_one_of.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/at_least_one_of.go @@ -7,18 +7,21 @@ import ( "context" "fmt" - "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/tfsdk" + + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" ) // This type of validator must satisfy all types. var ( _ validator.Bool = AtLeastOneOfValidator{} + _ validator.Float32 = AtLeastOneOfValidator{} _ validator.Float64 = AtLeastOneOfValidator{} + _ validator.Int32 = AtLeastOneOfValidator{} _ validator.Int64 = AtLeastOneOfValidator{} _ validator.List = AtLeastOneOfValidator{} _ validator.Map = AtLeastOneOfValidator{} @@ -91,6 +94,10 @@ func (av AtLeastOneOfValidator) Validate(ctx context.Context, req AtLeastOneOfVa } } + // This attribute is among those required attributes, + // append it to make it appears in the error message. + expressions.Append(req.PathExpression) + res.Diagnostics.Append(validatordiag.InvalidAttributeCombinationDiagnostic( req.Path, fmt.Sprintf("At least one attribute out of %s must be specified", expressions), @@ -111,6 +118,20 @@ func (av AtLeastOneOfValidator) ValidateBool(ctx context.Context, req validator. resp.Diagnostics.Append(validateResp.Diagnostics...) } +func (av AtLeastOneOfValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, resp *validator.Float32Response) { + validateReq := AtLeastOneOfValidatorRequest{ + Config: req.Config, + ConfigValue: req.ConfigValue, + Path: req.Path, + PathExpression: req.PathExpression, + } + validateResp := &AtLeastOneOfValidatorResponse{} + + av.Validate(ctx, validateReq, validateResp) + + resp.Diagnostics.Append(validateResp.Diagnostics...) +} + func (av AtLeastOneOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response) { validateReq := AtLeastOneOfValidatorRequest{ Config: req.Config, @@ -125,6 +146,20 @@ func (av AtLeastOneOfValidator) ValidateFloat64(ctx context.Context, req validat resp.Diagnostics.Append(validateResp.Diagnostics...) } +func (av AtLeastOneOfValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response) { + validateReq := AtLeastOneOfValidatorRequest{ + Config: req.Config, + ConfigValue: req.ConfigValue, + Path: req.Path, + PathExpression: req.PathExpression, + } + validateResp := &AtLeastOneOfValidatorResponse{} + + av.Validate(ctx, validateReq, validateResp) + + resp.Diagnostics.Append(validateResp.Diagnostics...) +} + func (av AtLeastOneOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response) { validateReq := AtLeastOneOfValidatorRequest{ Config: req.Config, diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/conflicts_with.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/conflicts_with.go index b554953fdccc..185d58e99ddb 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/conflicts_with.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/conflicts_with.go @@ -7,18 +7,21 @@ import ( "context" "fmt" - "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/tfsdk" + + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" ) // This type of validator must satisfy all types. var ( _ validator.Bool = ConflictsWithValidator{} _ validator.Float64 = ConflictsWithValidator{} + _ validator.Float32 = ConflictsWithValidator{} + _ validator.Int32 = ConflictsWithValidator{} _ validator.Int64 = ConflictsWithValidator{} _ validator.List = ConflictsWithValidator{} _ validator.Map = ConflictsWithValidator{} @@ -115,6 +118,20 @@ func (av ConflictsWithValidator) ValidateBool(ctx context.Context, req validator resp.Diagnostics.Append(validateResp.Diagnostics...) } +func (av ConflictsWithValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, resp *validator.Float32Response) { + validateReq := ConflictsWithValidatorRequest{ + Config: req.Config, + ConfigValue: req.ConfigValue, + Path: req.Path, + PathExpression: req.PathExpression, + } + validateResp := &ConflictsWithValidatorResponse{} + + av.Validate(ctx, validateReq, validateResp) + + resp.Diagnostics.Append(validateResp.Diagnostics...) +} + func (av ConflictsWithValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response) { validateReq := ConflictsWithValidatorRequest{ Config: req.Config, @@ -129,6 +146,20 @@ func (av ConflictsWithValidator) ValidateFloat64(ctx context.Context, req valida resp.Diagnostics.Append(validateResp.Diagnostics...) } +func (av ConflictsWithValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response) { + validateReq := ConflictsWithValidatorRequest{ + Config: req.Config, + ConfigValue: req.ConfigValue, + Path: req.Path, + PathExpression: req.PathExpression, + } + validateResp := &ConflictsWithValidatorResponse{} + + av.Validate(ctx, validateReq, validateResp) + + resp.Diagnostics.Append(validateResp.Diagnostics...) +} + func (av ConflictsWithValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response) { validateReq := ConflictsWithValidatorRequest{ Config: req.Config, diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/exactly_one_of.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/exactly_one_of.go index f284fe275334..40af43839380 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/exactly_one_of.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator/exactly_one_of.go @@ -7,18 +7,21 @@ import ( "context" "fmt" - "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/tfsdk" + + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" ) // This type of validator must satisfy all types. var ( _ validator.Bool = ExactlyOneOfValidator{} + _ validator.Float32 = ExactlyOneOfValidator{} _ validator.Float64 = ExactlyOneOfValidator{} + _ validator.Int32 = ExactlyOneOfValidator{} _ validator.Int64 = ExactlyOneOfValidator{} _ validator.List = ExactlyOneOfValidator{} _ validator.Map = ExactlyOneOfValidator{} @@ -135,6 +138,20 @@ func (av ExactlyOneOfValidator) ValidateBool(ctx context.Context, req validator. resp.Diagnostics.Append(validateResp.Diagnostics...) } +func (av ExactlyOneOfValidator) ValidateFloat32(ctx context.Context, req validator.Float32Request, resp *validator.Float32Response) { + validateReq := ExactlyOneOfValidatorRequest{ + Config: req.Config, + ConfigValue: req.ConfigValue, + Path: req.Path, + PathExpression: req.PathExpression, + } + validateResp := &ExactlyOneOfValidatorResponse{} + + av.Validate(ctx, validateReq, validateResp) + + resp.Diagnostics.Append(validateResp.Diagnostics...) +} + func (av ExactlyOneOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response) { validateReq := ExactlyOneOfValidatorRequest{ Config: req.Config, @@ -149,6 +166,20 @@ func (av ExactlyOneOfValidator) ValidateFloat64(ctx context.Context, req validat resp.Diagnostics.Append(validateResp.Diagnostics...) } +func (av ExactlyOneOfValidator) ValidateInt32(ctx context.Context, req validator.Int32Request, resp *validator.Int32Response) { + validateReq := ExactlyOneOfValidatorRequest{ + Config: req.Config, + ConfigValue: req.ConfigValue, + Path: req.Path, + PathExpression: req.PathExpression, + } + validateResp := &ExactlyOneOfValidatorResponse{} + + av.Validate(ctx, validateReq, validateResp) + + resp.Diagnostics.Append(validateResp.Diagnostics...) +} + func (av ExactlyOneOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response) { validateReq := ExactlyOneOfValidatorRequest{ Config: req.Config, diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/doc.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/doc.go index a13b3761501a..ee0a5e8de90d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/doc.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/doc.go @@ -1,5 +1,5 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 -// Package listvalidator provides validators for types.List attributes. +// Package listvalidator provides validators for types.List attributes and function parameters. package listvalidator diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_at_least.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_at_least.go index bfe35e7d1b0f..54f86bea8f42 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_at_least.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_at_least.go @@ -7,28 +7,28 @@ import ( "context" "fmt" - "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" + + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.List = sizeAtLeastValidator{} +var _ function.ListParameterValidator = sizeAtLeastValidator{} -// sizeAtLeastValidator validates that list contains at least min elements. type sizeAtLeastValidator struct { min int } -// Description describes the validation in plain text formatting. func (v sizeAtLeastValidator) Description(_ context.Context) string { return fmt.Sprintf("list must contain at least %d elements", v.min) } -// MarkdownDescription describes the validation in Markdown formatting. func (v sizeAtLeastValidator) MarkdownDescription(ctx context.Context) string { return v.Description(ctx) } -// Validate performs the validation. func (v sizeAtLeastValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse) { if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() { return @@ -45,15 +45,31 @@ func (v sizeAtLeastValidator) ValidateList(ctx context.Context, req validator.Li } } +func (v sizeAtLeastValidator) ValidateParameterList(ctx context.Context, req function.ListParameterValidatorRequest, resp *function.ListParameterValidatorResponse) { + if req.Value.IsNull() || req.Value.IsUnknown() { + return + } + + elems := req.Value.Elements() + + if len(elems) < v.min { + resp.Error = validatorfuncerr.InvalidParameterValueFuncError( + req.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", len(elems)), + ) + } +} + // SizeAtLeast returns an AttributeValidator which ensures that any configured -// attribute value: +// attribute or function parameter value: // // - Is a List. // - Contains at least min elements. // // Null (unconfigured) and unknown (known after apply) values are skipped. -func SizeAtLeast(min int) validator.List { +func SizeAtLeast(minVal int) sizeAtLeastValidator { return sizeAtLeastValidator{ - min: min, + min: minVal, } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_at_most.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_at_most.go index f3e7b36d89cd..0ff5ed24701e 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_at_most.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_at_most.go @@ -7,28 +7,28 @@ import ( "context" "fmt" - "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" + + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.List = sizeAtMostValidator{} +var _ function.ListParameterValidator = sizeAtMostValidator{} -// sizeAtMostValidator validates that list contains at most max elements. type sizeAtMostValidator struct { max int } -// Description describes the validation in plain text formatting. func (v sizeAtMostValidator) Description(_ context.Context) string { return fmt.Sprintf("list must contain at most %d elements", v.max) } -// MarkdownDescription describes the validation in Markdown formatting. func (v sizeAtMostValidator) MarkdownDescription(ctx context.Context) string { return v.Description(ctx) } -// Validate performs the validation. func (v sizeAtMostValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse) { if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() { return @@ -45,15 +45,31 @@ func (v sizeAtMostValidator) ValidateList(ctx context.Context, req validator.Lis } } +func (v sizeAtMostValidator) ValidateParameterList(ctx context.Context, req function.ListParameterValidatorRequest, resp *function.ListParameterValidatorResponse) { + if req.Value.IsNull() || req.Value.IsUnknown() { + return + } + + elems := req.Value.Elements() + + if len(elems) > v.max { + resp.Error = validatorfuncerr.InvalidParameterValueFuncError( + req.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", len(elems)), + ) + } +} + // SizeAtMost returns an AttributeValidator which ensures that any configured -// attribute value: +// attribute or function parameter value: // // - Is a List. // - Contains at most max elements. // // Null (unconfigured) and unknown (known after apply) values are skipped. -func SizeAtMost(max int) validator.List { +func SizeAtMost(maxVal int) sizeAtMostValidator { return sizeAtMostValidator{ - max: max, + max: maxVal, } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_between.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_between.go index 32c34d9e658b..cab9c9dcad03 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_between.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/size_between.go @@ -7,30 +7,29 @@ import ( "context" "fmt" - "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" + + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.List = sizeBetweenValidator{} +var _ function.ListParameterValidator = sizeBetweenValidator{} -// sizeBetweenValidator validates that list contains at least min elements -// and at most max elements. type sizeBetweenValidator struct { min int max int } -// Description describes the validation in plain text formatting. func (v sizeBetweenValidator) Description(_ context.Context) string { return fmt.Sprintf("list must contain at least %d elements and at most %d elements", v.min, v.max) } -// MarkdownDescription describes the validation in Markdown formatting. func (v sizeBetweenValidator) MarkdownDescription(ctx context.Context) string { return v.Description(ctx) } -// Validate performs the validation. func (v sizeBetweenValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse) { if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() { return @@ -47,16 +46,32 @@ func (v sizeBetweenValidator) ValidateList(ctx context.Context, req validator.Li } } +func (v sizeBetweenValidator) ValidateParameterList(ctx context.Context, req function.ListParameterValidatorRequest, resp *function.ListParameterValidatorResponse) { + if req.Value.IsNull() || req.Value.IsUnknown() { + return + } + + elems := req.Value.Elements() + + if len(elems) < v.min || len(elems) > v.max { + resp.Error = validatorfuncerr.InvalidParameterValueFuncError( + req.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", len(elems)), + ) + } +} + // SizeBetween returns an AttributeValidator which ensures that any configured -// attribute value: +// attribute or function parameter value: // // - Is a List. // - Contains at least min elements and at most max elements. // // Null (unconfigured) and unknown (known after apply) values are skipped. -func SizeBetween(min, max int) validator.List { +func SizeBetween(minVal, maxVal int) sizeBetweenValidator { return sizeBetweenValidator{ - min: min, - max: max, + min: minVal, + max: maxVal, } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/unique_values.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/unique_values.go index 6cfc3b73a240..cb9932c2c651 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/unique_values.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/unique_values.go @@ -7,25 +7,23 @@ import ( "context" "fmt" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" ) var _ validator.List = uniqueValuesValidator{} +var _ function.ListParameterValidator = uniqueValuesValidator{} -// uniqueValuesValidator implements the validator. type uniqueValuesValidator struct{} -// Description returns the plaintext description of the validator. func (v uniqueValuesValidator) Description(_ context.Context) string { return "all values must be unique" } -// MarkdownDescription returns the Markdown description of the validator. func (v uniqueValuesValidator) MarkdownDescription(ctx context.Context) string { return v.Description(ctx) } -// ValidateList implements the validation logic. func (v uniqueValuesValidator) ValidateList(_ context.Context, req validator.ListRequest, resp *validator.ListResponse) { if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() { return @@ -59,10 +57,45 @@ func (v uniqueValuesValidator) ValidateList(_ context.Context, req validator.Lis } } +func (v uniqueValuesValidator) ValidateParameterList(ctx context.Context, req function.ListParameterValidatorRequest, resp *function.ListParameterValidatorResponse) { + if req.Value.IsNull() || req.Value.IsUnknown() { + return + } + + elements := req.Value.Elements() + + for indexOuter, elementOuter := range elements { + // Only evaluate known values for duplicates. + if elementOuter.IsUnknown() { + continue + } + + for indexInner := indexOuter + 1; indexInner < len(elements); indexInner++ { + elementInner := elements[indexInner] + + if elementInner.IsUnknown() { + continue + } + + if !elementInner.Equal(elementOuter) { + continue + } + + resp.Error = function.ConcatFuncErrors( + resp.Error, + function.NewArgumentFuncError( + req.ArgumentPosition, + fmt.Sprintf("Duplicate List Value: This attribute contains duplicate values of: %s", elementInner), + ), + ) + } + } +} + // UniqueValues returns a validator which ensures that any configured list // only contains unique values. This is similar to using a set attribute type // which inherently validates unique values, but with list ordering semantics. // Null (unconfigured) and unknown (known after apply) values are skipped. -func UniqueValues() validator.List { +func UniqueValues() uniqueValuesValidator { return uniqueValuesValidator{} } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/value_float32s_are.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/value_float32s_are.go new file mode 100644 index 000000000000..58f8127769a6 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/value_float32s_are.go @@ -0,0 +1,119 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package listvalidator + +import ( + "context" + "fmt" + "strings" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// ValueFloat32sAre returns an validator which ensures that any configured +// Float32 values passes each Float32 validator. +// +// Null (unconfigured) and unknown (known after apply) values are skipped. +func ValueFloat32sAre(elementValidators ...validator.Float32) validator.List { + return valueFloat32sAreValidator{ + elementValidators: elementValidators, + } +} + +var _ validator.List = valueFloat32sAreValidator{} + +// valueFloat32sAreValidator validates that each Float32 member validates against each of the value validators. +type valueFloat32sAreValidator struct { + elementValidators []validator.Float32 +} + +// Description describes the validation in plain text formatting. +func (v valueFloat32sAreValidator) Description(ctx context.Context) string { + var descriptions []string + + for _, elementValidator := range v.elementValidators { + descriptions = append(descriptions, elementValidator.Description(ctx)) + } + + return fmt.Sprintf("element value must satisfy all validations: %s", strings.Join(descriptions, " + ")) +} + +// MarkdownDescription describes the validation in Markdown formatting. +func (v valueFloat32sAreValidator) MarkdownDescription(ctx context.Context) string { + return v.Description(ctx) +} + +// ValidateFloat32 performs the validation. +func (v valueFloat32sAreValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse) { + if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() { + return + } + + _, ok := req.ConfigValue.ElementType(ctx).(basetypes.Float32Typable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.Path, + "Invalid Validator for Element Type", + "While performing schema-based validation, an unexpected error occurred. "+ + "The attribute declares a Float32 values validator, however its values do not implement types.Float32Type or the types.Float32Typable interface for custom Float32 types. "+ + "Use the appropriate values validator that matches the element type. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + fmt.Sprintf("Path: %s\n", req.Path.String())+ + fmt.Sprintf("Element Type: %T\n", req.ConfigValue.ElementType(ctx)), + ) + + return + } + + for idx, element := range req.ConfigValue.Elements() { + elementPath := req.Path.AtListIndex(idx) + + elementValuable, ok := element.(basetypes.Float32Valuable) + + // The check above should have prevented this, but raise an error + // instead of a type assertion panic or skipping the element. Any issue + // here likely indicates something wrong in the framework itself. + if !ok { + resp.Diagnostics.AddAttributeError( + req.Path, + "Invalid Validator for Element Value", + "While performing schema-based validation, an unexpected error occurred. "+ + "The attribute declares a Float32 values validator, however its values do not implement types.Float32Type or the types.Float32Typable interface for custom Float32 types. "+ + "This is likely an issue with terraform-plugin-framework and should be reported to the provider developers.\n\n"+ + fmt.Sprintf("Path: %s\n", req.Path.String())+ + fmt.Sprintf("Element Type: %T\n", req.ConfigValue.ElementType(ctx))+ + fmt.Sprintf("Element Value Type: %T\n", element), + ) + + return + } + + elementValue, diags := elementValuable.ToFloat32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early if the new diagnostics indicate an issue since + // it likely will be the same for all elements. + if diags.HasError() { + return + } + + elementReq := validator.Float32Request{ + Path: elementPath, + PathExpression: elementPath.Expression(), + ConfigValue: elementValue, + Config: req.Config, + } + + for _, elementValidator := range v.elementValidators { + elementResp := &validator.Float32Response{} + + elementValidator.ValidateFloat32(ctx, elementReq, elementResp) + + resp.Diagnostics.Append(elementResp.Diagnostics...) + } + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/value_int32s_are.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/value_int32s_are.go new file mode 100644 index 000000000000..d4c09621444a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/listvalidator/value_int32s_are.go @@ -0,0 +1,119 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package listvalidator + +import ( + "context" + "fmt" + "strings" + + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// ValueInt32sAre returns an validator which ensures that any configured +// Int32 values passes each Int32 validator. +// +// Null (unconfigured) and unknown (known after apply) values are skipped. +func ValueInt32sAre(elementValidators ...validator.Int32) validator.List { + return valueInt32sAreValidator{ + elementValidators: elementValidators, + } +} + +var _ validator.List = valueInt32sAreValidator{} + +// valueInt32sAreValidator validates that each Int32 member validates against each of the value validators. +type valueInt32sAreValidator struct { + elementValidators []validator.Int32 +} + +// Description describes the validation in plain text formatting. +func (v valueInt32sAreValidator) Description(ctx context.Context) string { + var descriptions []string + + for _, elementValidator := range v.elementValidators { + descriptions = append(descriptions, elementValidator.Description(ctx)) + } + + return fmt.Sprintf("element value must satisfy all validations: %s", strings.Join(descriptions, " + ")) +} + +// MarkdownDescription describes the validation in Markdown formatting. +func (v valueInt32sAreValidator) MarkdownDescription(ctx context.Context) string { + return v.Description(ctx) +} + +// ValidateInt32 performs the validation. +func (v valueInt32sAreValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse) { + if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() { + return + } + + _, ok := req.ConfigValue.ElementType(ctx).(basetypes.Int32Typable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.Path, + "Invalid Validator for Element Type", + "While performing schema-based validation, an unexpected error occurred. "+ + "The attribute declares a Int32 values validator, however its values do not implement types.Int32Type or the types.Int32Typable interface for custom Int32 types. "+ + "Use the appropriate values validator that matches the element type. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + fmt.Sprintf("Path: %s\n", req.Path.String())+ + fmt.Sprintf("Element Type: %T\n", req.ConfigValue.ElementType(ctx)), + ) + + return + } + + for idx, element := range req.ConfigValue.Elements() { + elementPath := req.Path.AtListIndex(idx) + + elementValuable, ok := element.(basetypes.Int32Valuable) + + // The check above should have prevented this, but raise an error + // instead of a type assertion panic or skipping the element. Any issue + // here likely indicates something wrong in the framework itself. + if !ok { + resp.Diagnostics.AddAttributeError( + req.Path, + "Invalid Validator for Element Value", + "While performing schema-based validation, an unexpected error occurred. "+ + "The attribute declares a Int32 values validator, however its values do not implement types.Int32Type or the types.Int32Typable interface for custom Int32 types. "+ + "This is likely an issue with terraform-plugin-framework and should be reported to the provider developers.\n\n"+ + fmt.Sprintf("Path: %s\n", req.Path.String())+ + fmt.Sprintf("Element Type: %T\n", req.ConfigValue.ElementType(ctx))+ + fmt.Sprintf("Element Value Type: %T\n", element), + ) + + return + } + + elementValue, diags := elementValuable.ToInt32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early if the new diagnostics indicate an issue since + // it likely will be the same for all elements. + if diags.HasError() { + return + } + + elementReq := validator.Int32Request{ + Path: elementPath, + PathExpression: elementPath.Expression(), + ConfigValue: elementValue, + Config: req.Config, + } + + for _, elementValidator := range v.elementValidators { + elementResp := &validator.Int32Response{} + + elementValidator.ValidateInt32(ctx, elementReq, elementResp) + + resp.Diagnostics.Append(elementResp.Diagnostics...) + } + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/doc.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/doc.go index 6d95e874d73f..ce0a9bf3a028 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/doc.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/doc.go @@ -1,5 +1,12 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 -// Package stringvalidator provides validators for types.String attributes. +// Package stringvalidator provides validators for types.String attributes and function parameters. +// +// There are also HashiCorp-supported custom string types available for specific +// use cases, including but not limited to: +// +// - https://github.com/hashicorp/terraform-plugin-framework-jsontypes +// - https://github.com/hashicorp/terraform-plugin-framework-nettypes +// - https://github.com/hashicorp/terraform-plugin-framework-timetypes package stringvalidator diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_at_least.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_at_least.go index 0ebaffae5fa6..38ae80a5358e 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_at_least.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_at_least.go @@ -7,30 +7,46 @@ import ( "context" "fmt" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.String = lengthAtLeastValidator{} +var _ function.StringParameterValidator = lengthAtLeastValidator{} -// stringLenAtLeastValidator validates that a string Attribute's length is at least a certain value. type lengthAtLeastValidator struct { minLength int } -// Description describes the validation in plain text formatting. +func (validator lengthAtLeastValidator) invalidUsageMessage() string { + return fmt.Sprintf("minLength cannot be less than zero - minLength: %d", validator.minLength) +} + func (validator lengthAtLeastValidator) Description(_ context.Context) string { return fmt.Sprintf("string length must be at least %d", validator.minLength) } -// MarkdownDescription describes the validation in Markdown formatting. func (validator lengthAtLeastValidator) MarkdownDescription(ctx context.Context) string { return validator.Description(ctx) } -// Validate performs the validation. func (v lengthAtLeastValidator) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse) { + // Return an error if the validator has been created in an invalid state + if v.minLength < 0 { + response.Diagnostics.Append( + validatordiag.InvalidValidatorUsageDiagnostic( + request.Path, + "LengthAtLeast", + v.invalidUsageMessage(), + ), + ) + + return + } + if request.ConfigValue.IsNull() || request.ConfigValue.IsUnknown() { return } @@ -48,17 +64,45 @@ func (v lengthAtLeastValidator) ValidateString(ctx context.Context, request vali } } +func (v lengthAtLeastValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + // Return an error if the validator has been created in an invalid state + if v.minLength < 0 { + response.Error = validatorfuncerr.InvalidValidatorUsageFuncError( + request.ArgumentPosition, + "LengthAtLeast", + v.invalidUsageMessage(), + ) + + return + } + + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value.ValueString() + + if l := len(value); l < v.minLength { + response.Error = validatorfuncerr.InvalidParameterValueLengthFuncError( + request.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", l), + ) + + return + } +} + // LengthAtLeast returns an validator which ensures that any configured -// attribute value is of single-byte character length greater than or equal +// attribute or function parameter value is of single-byte character length greater than or equal // to the given minimum. Null (unconfigured) and unknown (known after apply) // values are skipped. // +// minLength cannot be less than zero. Invalid input for minLength will result in an +// implementation error message during validation. +// // Use UTF8LengthAtLeast for checking multiple-byte characters. -func LengthAtLeast(minLength int) validator.String { - if minLength < 0 { - return nil - } - +func LengthAtLeast(minLength int) lengthAtLeastValidator { return lengthAtLeastValidator{ minLength: minLength, } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_at_most.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_at_most.go index a793a0b09b31..2c326968c716 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_at_most.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_at_most.go @@ -8,28 +8,44 @@ import ( "fmt" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" ) var _ validator.String = lengthAtMostValidator{} +var _ function.StringParameterValidator = lengthAtMostValidator{} -// lengthAtMostValidator validates that a string Attribute's length is at most a certain value. type lengthAtMostValidator struct { maxLength int } -// Description describes the validation in plain text formatting. +func (validator lengthAtMostValidator) invalidUsageMessage() string { + return fmt.Sprintf("maxLength cannot be less than zero - maxLength: %d", validator.maxLength) +} + func (validator lengthAtMostValidator) Description(_ context.Context) string { return fmt.Sprintf("string length must be at most %d", validator.maxLength) } -// MarkdownDescription describes the validation in Markdown formatting. func (validator lengthAtMostValidator) MarkdownDescription(ctx context.Context) string { return validator.Description(ctx) } -// Validate performs the validation. func (v lengthAtMostValidator) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse) { + // Return an error if the validator has been created in an invalid state + if v.maxLength < 0 { + response.Diagnostics.Append( + validatordiag.InvalidValidatorUsageDiagnostic( + request.Path, + "LengthAtMost", + v.invalidUsageMessage(), + ), + ) + + return + } + if request.ConfigValue.IsNull() || request.ConfigValue.IsUnknown() { return } @@ -47,17 +63,45 @@ func (v lengthAtMostValidator) ValidateString(ctx context.Context, request valid } } +func (v lengthAtMostValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + // Return an error if the validator has been created in an invalid state + if v.maxLength < 0 { + response.Error = validatorfuncerr.InvalidValidatorUsageFuncError( + request.ArgumentPosition, + "LengthAtMost", + v.invalidUsageMessage(), + ) + + return + } + + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value.ValueString() + + if l := len(value); l > v.maxLength { + response.Error = validatorfuncerr.InvalidParameterValueLengthFuncError( + request.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", l), + ) + + return + } +} + // LengthAtMost returns an validator which ensures that any configured -// attribute value is of single-byte character length less than or equal +// attribute or function parameter value is of single-byte character length less than or equal // to the given maximum. Null (unconfigured) and unknown (known after apply) // values are skipped. // +// maxLength cannot be less than zero. Invalid input for maxLength will result in an +// implementation error message during validation. +// // Use UTF8LengthAtMost for checking multiple-byte characters. -func LengthAtMost(maxLength int) validator.String { - if maxLength < 0 { - return nil - } - +func LengthAtMost(maxLength int) lengthAtMostValidator { return lengthAtMostValidator{ maxLength: maxLength, } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_between.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_between.go index c70f4c05c94b..f02c5fdd6014 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_between.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/length_between.go @@ -8,28 +8,44 @@ import ( "fmt" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" ) var _ validator.String = lengthBetweenValidator{} +var _ function.StringParameterValidator = lengthBetweenValidator{} -// stringLenBetweenValidator validates that a string Attribute's length is in a range. type lengthBetweenValidator struct { minLength, maxLength int } -// Description describes the validation in plain text formatting. +func (validator lengthBetweenValidator) invalidUsageMessage() string { + return fmt.Sprintf("minLength cannot be less than zero or greater than maxLength - minLength: %d, maxLength: %d", validator.minLength, validator.maxLength) +} + func (validator lengthBetweenValidator) Description(_ context.Context) string { return fmt.Sprintf("string length must be between %d and %d", validator.minLength, validator.maxLength) } -// MarkdownDescription describes the validation in Markdown formatting. func (validator lengthBetweenValidator) MarkdownDescription(ctx context.Context) string { return validator.Description(ctx) } -// Validate performs the validation. func (v lengthBetweenValidator) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse) { + // Return an error if the validator has been created in an invalid state + if v.minLength < 0 || v.minLength > v.maxLength { + response.Diagnostics.Append( + validatordiag.InvalidValidatorUsageDiagnostic( + request.Path, + "LengthBetween", + v.invalidUsageMessage(), + ), + ) + + return + } + if request.ConfigValue.IsNull() || request.ConfigValue.IsUnknown() { return } @@ -47,17 +63,45 @@ func (v lengthBetweenValidator) ValidateString(ctx context.Context, request vali } } +func (v lengthBetweenValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + // Return an error if the validator has been created in an invalid state + if v.minLength < 0 || v.minLength > v.maxLength { + response.Error = validatorfuncerr.InvalidValidatorUsageFuncError( + request.ArgumentPosition, + "LengthBetween", + v.invalidUsageMessage(), + ) + + return + } + + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value.ValueString() + + if l := len(value); l < v.minLength || l > v.maxLength { + response.Error = validatorfuncerr.InvalidParameterValueLengthFuncError( + request.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", l), + ) + + return + } +} + // LengthBetween returns a validator which ensures that any configured -// attribute value is of single-byte character length greater than or equal +// attribute or function parameter value is of single-byte character length greater than or equal // to the given minimum and less than or equal to the given maximum. Null // (unconfigured) and unknown (known after apply) values are skipped. // +// minLength cannot be less than zero or greater than maxLength. Invalid combinations of +// minLength and maxLength will result in an implementation error message during validation. +// // Use UTF8LengthBetween for checking multiple-byte characters. -func LengthBetween(minLength, maxLength int) validator.String { - if minLength < 0 || minLength > maxLength { - return nil - } - +func LengthBetween(minLength, maxLength int) lengthBetweenValidator { return lengthBetweenValidator{ minLength: minLength, maxLength: maxLength, diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/none_of.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/none_of.go index 6bf7dce886cc..9639763bb375 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/none_of.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/none_of.go @@ -7,15 +7,17 @@ import ( "context" "fmt" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.String = noneOfValidator{} +var _ function.StringParameterValidator = noneOfValidator{} -// noneOfValidator validates that the value does not match one of the values. type noneOfValidator struct { values []types.String } @@ -50,9 +52,31 @@ func (v noneOfValidator) ValidateString(ctx context.Context, request validator.S } } -// NoneOf checks that the String held in the attribute +func (v noneOfValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value + + for _, otherValue := range v.values { + if !value.Equal(otherValue) { + continue + } + + response.Error = validatorfuncerr.InvalidParameterValueMatchFuncError( + request.ArgumentPosition, + v.Description(ctx), + value.String(), + ) + + break + } +} + +// NoneOf checks that the String held in the attribute or function parameter // is none of the given `values`. -func NoneOf(values ...string) validator.String { +func NoneOf(values ...string) noneOfValidator { frameworkValues := make([]types.String, 0, len(values)) for _, value := range values { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/none_of_case_insensitive.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/none_of_case_insensitive.go index aedb0949ad44..f6a541dc585d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/none_of_case_insensitive.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/none_of_case_insensitive.go @@ -8,15 +8,17 @@ import ( "fmt" "strings" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.String = noneOfCaseInsensitiveValidator{} +var _ function.StringParameterValidator = noneOfCaseInsensitiveValidator{} -// noneOfCaseInsensitiveValidator validates that the value matches one of expected values. type noneOfCaseInsensitiveValidator struct { values []types.String } @@ -49,9 +51,29 @@ func (v noneOfCaseInsensitiveValidator) ValidateString(ctx context.Context, requ } } -// NoneOfCaseInsensitive checks that the String held in the attribute +func (v noneOfCaseInsensitiveValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value + + for _, otherValue := range v.values { + if strings.EqualFold(value.ValueString(), otherValue.ValueString()) { + response.Error = validatorfuncerr.InvalidParameterValueMatchFuncError( + request.ArgumentPosition, + v.Description(ctx), + value.String(), + ) + + return + } + } +} + +// NoneOfCaseInsensitive checks that the String held in the attribute or function parameter // is none of the given `values`. -func NoneOfCaseInsensitive(values ...string) validator.String { +func NoneOfCaseInsensitive(values ...string) noneOfCaseInsensitiveValidator { frameworkValues := make([]types.String, 0, len(values)) for _, value := range values { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/one_of.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/one_of.go index c3ae055bd4cd..57902355b340 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/one_of.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/one_of.go @@ -7,15 +7,17 @@ import ( "context" "fmt" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.String = oneOfValidator{} +var _ function.StringParameterValidator = oneOfValidator{} -// oneOfValidator validates that the value matches one of expected values. type oneOfValidator struct { values []types.String } @@ -48,9 +50,29 @@ func (v oneOfValidator) ValidateString(ctx context.Context, request validator.St )) } -// OneOf checks that the String held in the attribute +func (v oneOfValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value + + for _, otherValue := range v.values { + if value.Equal(otherValue) { + return + } + } + + response.Error = validatorfuncerr.InvalidParameterValueMatchFuncError( + request.ArgumentPosition, + v.Description(ctx), + value.String(), + ) +} + +// OneOf checks that the String held in the attribute or function parameter // is one of the given `values`. -func OneOf(values ...string) validator.String { +func OneOf(values ...string) oneOfValidator { frameworkValues := make([]types.String, 0, len(values)) for _, value := range values { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/one_of_case_insensitive.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/one_of_case_insensitive.go index 7e5912ab77a1..74efc12ca3e9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/one_of_case_insensitive.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/one_of_case_insensitive.go @@ -8,15 +8,17 @@ import ( "fmt" "strings" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.String = oneOfCaseInsensitiveValidator{} +var _ function.StringParameterValidator = oneOfCaseInsensitiveValidator{} -// oneOfCaseInsensitiveValidator validates that the value matches one of expected values. type oneOfCaseInsensitiveValidator struct { values []types.String } @@ -49,9 +51,29 @@ func (v oneOfCaseInsensitiveValidator) ValidateString(ctx context.Context, reque )) } -// OneOfCaseInsensitive checks that the String held in the attribute +func (v oneOfCaseInsensitiveValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value + + for _, otherValue := range v.values { + if strings.EqualFold(value.ValueString(), otherValue.ValueString()) { + return + } + } + + response.Error = validatorfuncerr.InvalidParameterValueMatchFuncError( + request.ArgumentPosition, + v.Description(ctx), + value.String(), + ) +} + +// OneOfCaseInsensitive checks that the String held in the attribute or function parameter // is one of the given `values`. -func OneOfCaseInsensitive(values ...string) validator.String { +func OneOfCaseInsensitive(values ...string) oneOfCaseInsensitiveValidator { frameworkValues := make([]types.String, 0, len(values)) for _, value := range values { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/regex_matches.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/regex_matches.go index 4cab99757b9b..756f9bbbd6ec 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/regex_matches.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/regex_matches.go @@ -9,18 +9,19 @@ import ( "regexp" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" ) var _ validator.String = regexMatchesValidator{} +var _ function.StringParameterValidator = regexMatchesValidator{} -// regexMatchesValidator validates that a string Attribute's value matches the specified regular expression. type regexMatchesValidator struct { regexp *regexp.Regexp message string } -// Description describes the validation in plain text formatting. func (validator regexMatchesValidator) Description(_ context.Context) string { if validator.message != "" { return validator.message @@ -28,12 +29,10 @@ func (validator regexMatchesValidator) Description(_ context.Context) string { return fmt.Sprintf("value must match regular expression '%s'", validator.regexp) } -// MarkdownDescription describes the validation in Markdown formatting. func (validator regexMatchesValidator) MarkdownDescription(ctx context.Context) string { return validator.Description(ctx) } -// Validate performs the validation. func (v regexMatchesValidator) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse) { if request.ConfigValue.IsNull() || request.ConfigValue.IsUnknown() { return @@ -50,8 +49,24 @@ func (v regexMatchesValidator) ValidateString(ctx context.Context, request valid } } +func (v regexMatchesValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value.ValueString() + + if !v.regexp.MatchString(value) { + response.Error = validatorfuncerr.InvalidParameterValueMatchFuncError( + request.ArgumentPosition, + v.Description(ctx), + value, + ) + } +} + // RegexMatches returns an AttributeValidator which ensures that any configured -// attribute value: +// attribute or function parameter value: // // - Is a string. // - Matches the given regular expression https://github.com/google/re2/wiki/Syntax. @@ -59,7 +74,7 @@ func (v regexMatchesValidator) ValidateString(ctx context.Context, request valid // Null (unconfigured) and unknown (known after apply) values are skipped. // Optionally an error message can be provided to return something friendlier // than "value must match regular expression 'regexp'". -func RegexMatches(regexp *regexp.Regexp, message string) validator.String { +func RegexMatches(regexp *regexp.Regexp, message string) regexMatchesValidator { return regexMatchesValidator{ regexp: regexp, message: message, diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_at_least.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_at_least.go index 6159eab57b60..a0f9931b29a4 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_at_least.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_at_least.go @@ -8,30 +8,46 @@ import ( "fmt" "unicode/utf8" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.String = utf8LengthAtLeastValidator{} +var _ function.StringParameterValidator = utf8LengthAtLeastValidator{} -// utf8LengthAtLeastValidator implements the validator. type utf8LengthAtLeastValidator struct { minLength int } -// Description describes the validation in plain text formatting. +func (validator utf8LengthAtLeastValidator) invalidUsageMessage() string { + return fmt.Sprintf("minLength cannot be less than zero - minLength: %d", validator.minLength) +} + func (validator utf8LengthAtLeastValidator) Description(_ context.Context) string { return fmt.Sprintf("UTF-8 character count must be at least %d", validator.minLength) } -// MarkdownDescription describes the validation in Markdown formatting. func (validator utf8LengthAtLeastValidator) MarkdownDescription(ctx context.Context) string { return validator.Description(ctx) } -// Validate performs the validation. func (v utf8LengthAtLeastValidator) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse) { + // Return an error if the validator has been created in an invalid state + if v.minLength < 0 { + response.Diagnostics.Append( + validatordiag.InvalidValidatorUsageDiagnostic( + request.Path, + "UTF8LengthAtLeast", + v.invalidUsageMessage(), + ), + ) + + return + } + if request.ConfigValue.IsNull() || request.ConfigValue.IsUnknown() { return } @@ -51,17 +67,47 @@ func (v utf8LengthAtLeastValidator) ValidateString(ctx context.Context, request } } +func (v utf8LengthAtLeastValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + // Return an error if the validator has been created in an invalid state + if v.minLength < 0 { + response.Error = validatorfuncerr.InvalidValidatorUsageFuncError( + request.ArgumentPosition, + "UTF8LengthAtLeast", + v.invalidUsageMessage(), + ) + + return + } + + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value.ValueString() + + count := utf8.RuneCountInString(value) + + if count < v.minLength { + response.Error = validatorfuncerr.InvalidParameterValueLengthFuncError( + request.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", count), + ) + + return + } +} + // UTF8LengthAtLeast returns an validator which ensures that any configured -// attribute value is of UTF-8 character count greater than or equal to the +// attribute or function parameter value is of UTF-8 character count greater than or equal to the // given minimum. Null (unconfigured) and unknown (known after apply) values // are skipped. // +// minLength cannot be less than zero. Invalid input for minLength will result in an +// implementation error message during validation. +// // Use LengthAtLeast for checking single-byte character counts. -func UTF8LengthAtLeast(minLength int) validator.String { - if minLength < 0 { - return nil - } - +func UTF8LengthAtLeast(minLength int) utf8LengthAtLeastValidator { return utf8LengthAtLeastValidator{ minLength: minLength, } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_at_most.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_at_most.go index 1653d5f88357..e02db80b54dc 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_at_most.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_at_most.go @@ -8,30 +8,46 @@ import ( "fmt" "unicode/utf8" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.String = utf8LengthAtMostValidator{} +var _ function.StringParameterValidator = utf8LengthAtMostValidator{} -// utf8LengthAtMostValidator implements the validator. type utf8LengthAtMostValidator struct { maxLength int } -// Description describes the validation in plain text formatting. +func (validator utf8LengthAtMostValidator) invalidUsageMessage() string { + return fmt.Sprintf("maxLength cannot be less than zero - maxLength: %d", validator.maxLength) +} + func (validator utf8LengthAtMostValidator) Description(_ context.Context) string { return fmt.Sprintf("UTF-8 character count must be at most %d", validator.maxLength) } -// MarkdownDescription describes the validation in Markdown formatting. func (validator utf8LengthAtMostValidator) MarkdownDescription(ctx context.Context) string { return validator.Description(ctx) } -// Validate performs the validation. func (v utf8LengthAtMostValidator) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse) { + // Return an error if the validator has been created in an invalid state + if v.maxLength < 0 { + response.Diagnostics.Append( + validatordiag.InvalidValidatorUsageDiagnostic( + request.Path, + "UTF8LengthAtMost", + v.invalidUsageMessage(), + ), + ) + + return + } + if request.ConfigValue.IsNull() || request.ConfigValue.IsUnknown() { return } @@ -51,17 +67,47 @@ func (v utf8LengthAtMostValidator) ValidateString(ctx context.Context, request v } } +func (v utf8LengthAtMostValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + // Return an error if the validator has been created in an invalid state + if v.maxLength < 0 { + response.Error = validatorfuncerr.InvalidValidatorUsageFuncError( + request.ArgumentPosition, + "UTF8LengthAtMost", + v.invalidUsageMessage(), + ) + + return + } + + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value.ValueString() + + count := utf8.RuneCountInString(value) + + if count > v.maxLength { + response.Error = validatorfuncerr.InvalidParameterValueLengthFuncError( + request.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", count), + ) + + return + } +} + // UTF8LengthAtMost returns an validator which ensures that any configured -// attribute value is of UTF-8 character count less than or equal to the +// attribute or function parameter value is of UTF-8 character count less than or equal to the // given maximum. Null (unconfigured) and unknown (known after apply) values // are skipped. // +// maxLength cannot be less than zero. Invalid input for maxLength will result in an +// implementation error message during validation. +// // Use LengthAtMost for checking single-byte character counts. -func UTF8LengthAtMost(maxLength int) validator.String { - if maxLength < 0 { - return nil - } - +func UTF8LengthAtMost(maxLength int) utf8LengthAtMostValidator { return utf8LengthAtMostValidator{ maxLength: maxLength, } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_between.go b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_between.go index 791b9a569448..05e22159b7fc 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_between.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator/utf8_length_between.go @@ -8,31 +8,47 @@ import ( "fmt" "unicode/utf8" + "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag" + "github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr" ) var _ validator.String = utf8LengthBetweenValidator{} +var _ function.StringParameterValidator = utf8LengthBetweenValidator{} -// utf8LengthBetweenValidator implements the validator. type utf8LengthBetweenValidator struct { maxLength int minLength int } -// Description describes the validation in plain text formatting. +func (v utf8LengthBetweenValidator) invalidUsageMessage() string { + return fmt.Sprintf("minLength and maxLength cannot be less than zero and maxLength must be greater than or equal to minLength - minLength: %d, maxLength: %d", v.minLength, v.maxLength) +} + func (v utf8LengthBetweenValidator) Description(_ context.Context) string { return fmt.Sprintf("UTF-8 character count must be between %d and %d", v.minLength, v.maxLength) } -// MarkdownDescription describes the validation in Markdown formatting. func (v utf8LengthBetweenValidator) MarkdownDescription(ctx context.Context) string { return v.Description(ctx) } -// Validate performs the validation. func (v utf8LengthBetweenValidator) ValidateString(ctx context.Context, request validator.StringRequest, response *validator.StringResponse) { + // Return an error if the validator has been created in an invalid state + if v.minLength < 0 || v.maxLength < 0 || v.minLength > v.maxLength { + response.Diagnostics.Append( + validatordiag.InvalidValidatorUsageDiagnostic( + request.Path, + "UTF8LengthBetween", + v.invalidUsageMessage(), + ), + ) + + return + } + if request.ConfigValue.IsNull() || request.ConfigValue.IsUnknown() { return } @@ -52,17 +68,48 @@ func (v utf8LengthBetweenValidator) ValidateString(ctx context.Context, request } } +func (v utf8LengthBetweenValidator) ValidateParameterString(ctx context.Context, request function.StringParameterValidatorRequest, response *function.StringParameterValidatorResponse) { + // Return an error if the validator has been created in an invalid state + if v.minLength < 0 || v.maxLength < 0 || v.minLength > v.maxLength { + response.Error = validatorfuncerr.InvalidValidatorUsageFuncError( + request.ArgumentPosition, + "UTF8LengthBetween", + v.invalidUsageMessage(), + ) + + return + } + + if request.Value.IsNull() || request.Value.IsUnknown() { + return + } + + value := request.Value.ValueString() + + count := utf8.RuneCountInString(value) + + if count < v.minLength || count > v.maxLength { + response.Error = validatorfuncerr.InvalidParameterValueLengthFuncError( + request.ArgumentPosition, + v.Description(ctx), + fmt.Sprintf("%d", count), + ) + + return + } +} + // UTF8LengthBetween returns an validator which ensures that any configured -// attribute value is of UTF-8 character count greater than or equal to the +// attribute or function parameter value is of UTF-8 character count greater than or equal to the // given minimum and less than or equal to the given maximum. Null // (unconfigured) and unknown (known after apply) values are skipped. // +// minLength and maxLength cannot be less than zero and maxLength must be greater than or equal to minLength. +// Invalid combinations of minLength and maxLength will result in an implementation error message +// during validation. +// // Use LengthBetween for checking single-byte character counts. -func UTF8LengthBetween(minLength int, maxLength int) validator.String { - if minLength < 0 || maxLength < 0 || minLength > maxLength { - return nil - } - +func UTF8LengthBetween(minLength int, maxLength int) utf8LengthBetweenValidator { return utf8LengthBetweenValidator{ maxLength: maxLength, minLength: minLength, diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/deferred.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/deferred.go new file mode 100644 index 000000000000..ee740f6947f7 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/deferred.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package datasource + +const ( + // DeferredReasonUnknown is used to indicate an invalid `DeferredReason`. + // Provider developers should not use it. + DeferredReasonUnknown DeferredReason = 0 + + // DeferredReasonDataSourceConfigUnknown is used to indicate that the resource configuration + // is partially unknown and the real values need to be known before the change can be planned. + DeferredReasonDataSourceConfigUnknown DeferredReason = 1 + + // DeferredReasonProviderConfigUnknown is used to indicate that the provider configuration + // is partially unknown and the real values need to be known before the change can be planned. + DeferredReasonProviderConfigUnknown DeferredReason = 2 + + // DeferredReasonAbsentPrereq is used to indicate that a hard dependency has not been satisfied. + DeferredReasonAbsentPrereq DeferredReason = 3 +) + +// Deferred is used to indicate to Terraform that a change needs to be deferred for a reason. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type Deferred struct { + // Reason is the reason for deferring the change. + Reason DeferredReason +} + +// DeferredReason represents different reasons for deferring a change. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type DeferredReason int32 + +func (d DeferredReason) String() string { + switch d { + case 0: + return "Unknown" + case 1: + return "Data Source Config Unknown" + case 2: + return "Provider Config Unknown" + case 3: + return "Absent Prerequisite" + } + return "Unknown" +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/read.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/read.go index 07e28cab1473..43e002368965 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/read.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/read.go @@ -8,6 +8,18 @@ import ( "github.com/hashicorp/terraform-plugin-framework/tfsdk" ) +// ReadClientCapabilities allows Terraform to publish information +// regarding optionally supported protocol features for the ReadDataSource RPC, +// such as forward-compatible Terraform behavior changes. +type ReadClientCapabilities struct { + // DeferralAllowed indicates whether the Terraform client initiating + // the request allows a deferral response. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + DeferralAllowed bool +} + // ReadRequest represents a request for the provider to read a data // source, i.e., update values in state according to the real state of the // data source. An instance of this request struct is supplied as an argument @@ -22,6 +34,10 @@ type ReadRequest struct { // ProviderMeta is metadata from the provider_meta block of the module. ProviderMeta tfsdk.Config + + // ClientCapabilities defines optionally supported protocol features for the + // ReadDataSource RPC, such as forward-compatible Terraform behavior changes. + ClientCapabilities ReadClientCapabilities } // ReadResponse represents a response to a ReadRequest. An @@ -37,4 +53,14 @@ type ReadResponse struct { // source. An empty slice indicates a successful operation with no // warnings or errors generated. Diagnostics diag.Diagnostics + + // Deferred indicates that Terraform should defer reading this + // data source until a followup apply operation. + // + // This field can only be set if + // `(datasource.ReadRequest).ClientCapabilities.DeferralAllowed` is true. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + Deferred *Deferred } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/attribute.go index 4a0feceec8c4..67294bfc6906 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/attribute.go @@ -10,7 +10,10 @@ import ( // Attribute define a value field inside the Schema. Implementations in this // package include: // - BoolAttribute +// - DynamicAttribute +// - Float32Attribute // - Float64Attribute +// - Int32Attribute // - Int64Attribute // - ListAttribute // - MapAttribute diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/float32_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/float32_attribute.go new file mode 100644 index 000000000000..8f3dbdc21657 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/float32_attribute.go @@ -0,0 +1,191 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = Float32Attribute{} + _ fwxschema.AttributeWithFloat32Validators = Float32Attribute{} +) + +// Float32Attribute represents a schema attribute that is a 32-bit floating +// point number. When retrieving the value for this attribute, use +// types.Float32 as the value type unless the CustomType field is set. +// +// Use Int32Attribute for 32-bit integer attributes or NumberAttribute for +// 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via a floating point value. +// +// example_attribute = 123.45 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Float32Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Float32Type. When retrieving data, the basetypes.Float32Valuable + // associated with this custom type must be used in place of types.Float32. + CustomType basetypes.Float32Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. Sensitive does not impact how values are stored, and + // practitioners are encouraged to store their state as if the entire + // file is sensitive. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Float32 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Float32Attribute. +func (a Float32Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Float32Attribute +// and all fields are equal. +func (a Float32Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Float32Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// Float32Validators returns the Validators field value. +func (a Float32Attribute) Float32Validators() []validator.Float32 { + return a.Validators +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Float32Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Float32Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Float32Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Float32Type or the CustomType field value if defined. +func (a Float32Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Float32Type +} + +// IsComputed returns the Computed field value. +func (a Float32Attribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a Float32Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Float32Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Float32Attribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/int32_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/int32_attribute.go new file mode 100644 index 000000000000..89f852e8c3bc --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/int32_attribute.go @@ -0,0 +1,191 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = Int32Attribute{} + _ fwxschema.AttributeWithInt32Validators = Int32Attribute{} +) + +// Int32Attribute represents a schema attribute that is a 32-bit integer. +// When retrieving the value for this attribute, use types.Int32 as the value +// type unless the CustomType field is set. +// +// Use Float32Attribute for 32-bit floating point number attributes or +// NumberAttribute for 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via an integer value. +// +// example_attribute = 123 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Int32Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Int32Type. When retrieving data, the basetypes.Int32Valuable + // associated with this custom type must be used in place of types.Int32. + CustomType basetypes.Int32Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. Sensitive does not impact how values are stored, and + // practitioners are encouraged to store their state as if the entire + // file is sensitive. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Int32 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Int32Attribute. +func (a Int32Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Int32Attribute +// and all fields are equal. +func (a Int32Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Int32Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Int32Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Int32Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Int32Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Int32Type or the CustomType field value if defined. +func (a Int32Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Int32Type +} + +// Int32Validators returns the Validators field value. +func (a Int32Attribute) Int32Validators() []validator.Int32 { + return a.Validators +} + +// IsComputed returns the Computed field value. +func (a Int32Attribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a Int32Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Int32Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Int32Attribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/map_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/map_attribute.go index d9b701f733ff..516576a4e39b 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/map_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/map_attribute.go @@ -23,7 +23,7 @@ var ( _ fwxschema.AttributeWithMapValidators = MapAttribute{} ) -// MapAttribute represents a schema attribute that is a list with a single +// MapAttribute represents a schema attribute that is a map with a single // element type. When retrieving the value for this attribute, use types.Map // as the value type unless the CustomType field is set. The ElementType field // must be set. @@ -32,7 +32,7 @@ var ( // require definition beyond type information. // // Terraform configurations configure this attribute using expressions that -// return a list or directly via curly brace syntax. +// return a map or directly via curly brace syntax. // // # map of strings // example_attribute = { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/map_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/map_nested_attribute.go index 2f3a60ec532a..9729efdc3cff 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/map_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/map_nested_attribute.go @@ -25,7 +25,7 @@ var ( _ fwxschema.AttributeWithMapValidators = MapNestedAttribute{} ) -// MapNestedAttribute represents an attribute that is a set of objects where +// MapNestedAttribute represents an attribute that is a map of objects where // the object attributes can be fully defined, including further nested // attributes. When retrieving the value for this attribute, use types.Map // as the value type unless the CustomType field is set. The NestedObject field @@ -35,7 +35,7 @@ var ( // not require definition beyond type information. // // Terraform configurations configure this attribute using expressions that -// return a set of objects or directly via curly brace syntax. +// return a map of objects or directly via curly brace syntax. // // # map of objects // example_attribute = { @@ -195,7 +195,7 @@ func (a MapNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { return a.NestedObject } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeMap. func (a MapNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeMap } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/set_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/set_nested_attribute.go index 860ab4c96f33..1b17b874331c 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/set_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/set_nested_attribute.go @@ -190,7 +190,7 @@ func (a SetNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { return a.NestedObject } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeSet. func (a SetNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeSet } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/single_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/single_nested_attribute.go index 21c9f3231c56..811e76de433b 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/single_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/datasource/schema/single_nested_attribute.go @@ -198,7 +198,7 @@ func (a SingleNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject } } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeSingle. func (a SingleNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeSingle } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/close.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/close.go new file mode 100644 index 000000000000..3d174585333c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/close.go @@ -0,0 +1,30 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +import ( + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" +) + +// CloseRequest represents a request for the provider to close an ephemeral +// resource. An instance of this request struct is supplied as an argument to +// the ephemeral resource's Close function. +type CloseRequest struct { + // Private is provider-defined ephemeral resource private state data + // which was previously provided by the latest Open or Renew operation. + // + // Use the GetKey method to read data. + Private *privatestate.ProviderData +} + +// CloseResponse represents a response to a CloseRequest. An +// instance of this response struct is supplied as an argument +// to the ephemeral resource's Close function, in which the provider +// should set values on the CloseResponse as appropriate. +type CloseResponse struct { + // Diagnostics report errors or warnings related to closing the + // resource. An empty slice indicates a successful operation with no + // warnings or errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/config_validator.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/config_validator.go new file mode 100644 index 000000000000..782718d8de38 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/config_validator.go @@ -0,0 +1,28 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +import "context" + +// ConfigValidator describes reusable EphemeralResource configuration validation functionality. +type ConfigValidator interface { + // Description describes the validation in plain text formatting. + // + // This information may be automatically added to ephemeral resource plain text + // descriptions by external tooling. + Description(context.Context) string + + // MarkdownDescription describes the validation in Markdown formatting. + // + // This information may be automatically added to ephemeral resource Markdown + // descriptions by external tooling. + MarkdownDescription(context.Context) string + + // ValidateEphemeralResource performs the validation. + // + // This method name is separate from the datasource.ConfigValidator + // interface ValidateDataSource method name, provider.ConfigValidator + // interface ValidateProvider method name, and resource.ConfigValidator + // interface ValidateResource method name to allow generic validators. + ValidateEphemeralResource(context.Context, ValidateConfigRequest, *ValidateConfigResponse) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/configure.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/configure.go new file mode 100644 index 000000000000..bcf6dd908364 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/configure.go @@ -0,0 +1,33 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +import ( + "github.com/hashicorp/terraform-plugin-framework/diag" +) + +// ConfigureRequest represents a request for the provider to configure an +// ephemeral resource, i.e., set provider-level data or clients. An instance of +// this request struct is supplied as an argument to the EphemeralResource type +// Configure method. +type ConfigureRequest struct { + // ProviderData is the data set in the + // [provider.ConfigureResponse.EphemeralResourceData] field. This data is + // provider-specifc and therefore can contain any necessary remote system + // clients, custom provider data, or anything else pertinent to the + // functionality of the EphemeralResource. + // + // This data is only set after the ConfigureProvider RPC has been called + // by Terraform. + ProviderData any +} + +// ConfigureResponse represents a response to a ConfigureRequest. An +// instance of this response struct is supplied as an argument to the +// EphemeralResource type Configure method. +type ConfigureResponse struct { + // Diagnostics report errors or warnings related to configuring of the + // EphemeralResource. An empty slice indicates a successful operation with no + // warnings or errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/deferred.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/deferred.go new file mode 100644 index 000000000000..d4773a10a9dd --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/deferred.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package ephemeral + +const ( + // DeferredReasonUnknown is used to indicate an invalid `DeferredReason`. + // Provider developers should not use it. + DeferredReasonUnknown DeferredReason = 0 + + // DeferredReasonEphemeralResourceConfigUnknown is used to indicate that the resource configuration + // is partially unknown and the real values need to be known before the change can be planned. + DeferredReasonEphemeralResourceConfigUnknown DeferredReason = 1 + + // DeferredReasonProviderConfigUnknown is used to indicate that the provider configuration + // is partially unknown and the real values need to be known before the change can be planned. + DeferredReasonProviderConfigUnknown DeferredReason = 2 + + // DeferredReasonAbsentPrereq is used to indicate that a hard dependency has not been satisfied. + DeferredReasonAbsentPrereq DeferredReason = 3 +) + +// Deferred is used to indicate to Terraform that a change needs to be deferred for a reason. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type Deferred struct { + // Reason is the reason for deferring the change. + Reason DeferredReason +} + +// DeferredReason represents different reasons for deferring a change. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type DeferredReason int32 + +func (d DeferredReason) String() string { + switch d { + case 0: + return "Unknown" + case 1: + return "Ephemeral Resource Config Unknown" + case 2: + return "Provider Config Unknown" + case 3: + return "Absent Prerequisite" + } + return "Unknown" +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/doc.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/doc.go new file mode 100644 index 000000000000..2537d610cb26 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/doc.go @@ -0,0 +1,26 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +// Package ephemeral contains all interfaces, request types, and response +// types for an ephemeral resource implementation. +// +// In Terraform, an ephemeral resource is a concept which enables provider +// developers to offer practitioners ephemeral values, which will not be stored +// in any artifact produced by Terraform (plan/state). Ephemeral resources can +// optionally implement renewal logic via the (EphemeralResource).Renew method +// and cleanup logic via the (EphemeralResource).Close method. +// +// Ephemeral resources are not saved into the Terraform plan or state and can +// only be referenced in other ephemeral values, such as provider configuration +// attributes. Ephemeral resources are defined by a type/name, such as "examplecloud_thing", +// a schema representing the structure and data types of configuration, and lifecycle logic. +// +// The main starting point for implementations in this package is the +// EphemeralResource type which represents an instance of an ephemeral resource +// that has its own configuration and lifecycle logic. The [ephemeral.EphemeralResource] +// implementations are referenced by the [provider.ProviderWithEphemeralResources] type +// EphemeralResources method, which enables the ephemeral resource practitioner usage. +// +// NOTE: Ephemeral resource support is experimental and exposed without compatibility promises until +// these notices are removed. +package ephemeral diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/ephemeral_resource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/ephemeral_resource.go new file mode 100644 index 000000000000..1261de52d36c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/ephemeral_resource.go @@ -0,0 +1,108 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +import ( + "context" +) + +// EphemeralResource represents an instance of an ephemeral resource type. This is the core +// interface that all ephemeral resources must implement. +// +// Ephemeral resources can optionally implement these additional concepts: +// +// - Configure: Include provider-level data or clients via EphemeralResourceWithConfigure +// +// - Validation: Schema-based or entire configuration via EphemeralResourceWithConfigValidators +// or EphemeralResourceWithValidateConfig. +// +// - Renew: Handle renewal of an expired remote object via EphemeralResourceWithRenew. +// Ephemeral resources can indicate to Terraform when a renewal must occur via the RenewAt +// response field of the Open/Renew methods. Renew cannot return new result data for the +// ephemeral resource instance, so this logic is only appropriate for remote objects like +// HashiCorp Vault leases, which can be renewed without changing their data. +// +// - Close: Allows providers to clean up the ephemeral resource via EphemeralResourceWithClose. +// +// NOTE: Ephemeral resource support is experimental and exposed without compatibility promises until +// these notices are removed. +type EphemeralResource interface { + // Metadata should return the full name of the ephemeral resource, such as + // examplecloud_thing. + Metadata(context.Context, MetadataRequest, *MetadataResponse) + + // Schema should return the schema for this ephemeral resource. + Schema(context.Context, SchemaRequest, *SchemaResponse) + + // Open is called when the provider must generate a new ephemeral resource. Config values + // should be read from the OpenRequest and new response values set on the OpenResponse. + Open(context.Context, OpenRequest, *OpenResponse) +} + +// EphemeralResourceWithRenew is an interface type that extends EphemeralResource to +// include a method which the framework will call when Terraform detects that the +// provider-defined returned RenewAt time for an ephemeral resource has passed. This RenewAt +// response field can be set in the OpenResponse and RenewResponse. +type EphemeralResourceWithRenew interface { + EphemeralResource + + // Renew is called when the provider must renew the ephemeral resource based on + // the provided RenewAt time. This RenewAt response field can be set in the OpenResponse and RenewResponse. + // + // Renew cannot return new result data for the ephemeral resource instance, so this logic is only appropriate + // for remote objects like HashiCorp Vault leases, which can be renewed without changing their data. + Renew(context.Context, RenewRequest, *RenewResponse) +} + +// EphemeralResourceWithClose is an interface type that extends +// EphemeralResource to include a method which the framework will call when +// Terraform determines that the ephemeral resource can be safely cleaned up. +type EphemeralResourceWithClose interface { + EphemeralResource + + // Close is called when the provider can clean up the ephemeral resource. + // Config values may be read from the CloseRequest. + Close(context.Context, CloseRequest, *CloseResponse) +} + +// EphemeralResourceWithConfigure is an interface type that extends EphemeralResource to +// include a method which the framework will automatically call so provider +// developers have the opportunity to setup any necessary provider-level data +// or clients in the EphemeralResource type. +type EphemeralResourceWithConfigure interface { + EphemeralResource + + // Configure enables provider-level data or clients to be set in the + // provider-defined EphemeralResource type. + Configure(context.Context, ConfigureRequest, *ConfigureResponse) +} + +// EphemeralResourceWithConfigValidators is an interface type that extends EphemeralResource to include declarative validations. +// +// Declaring validation using this methodology simplifies implementation of +// reusable functionality. These also include descriptions, which can be used +// for automating documentation. +// +// Validation will include ConfigValidators and ValidateConfig, if both are +// implemented, in addition to any Attribute or Type validation. +type EphemeralResourceWithConfigValidators interface { + EphemeralResource + + // ConfigValidators returns a list of functions which will all be performed during validation. + ConfigValidators(context.Context) []ConfigValidator +} + +// EphemeralResourceWithValidateConfig is an interface type that extends EphemeralResource to include imperative validation. +// +// Declaring validation using this methodology simplifies one-off +// functionality that typically applies to a single ephemeral resource. Any documentation +// of this functionality must be manually added into schema descriptions. +// +// Validation will include ConfigValidators and ValidateConfig, if both are +// implemented, in addition to any Attribute or Type validation. +type EphemeralResourceWithValidateConfig interface { + EphemeralResource + + // ValidateConfig performs the validation. + ValidateConfig(context.Context, ValidateConfigRequest, *ValidateConfigResponse) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/metadata.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/metadata.go new file mode 100644 index 000000000000..ed97522b8e96 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/metadata.go @@ -0,0 +1,23 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +// MetadataRequest represents a request for the EphemeralResource to return metadata, +// such as its type name. An instance of this request struct is supplied as +// an argument to the EphemeralResource type Metadata method. +type MetadataRequest struct { + // ProviderTypeName is the string returned from + // [provider.MetadataResponse.TypeName], if the Provider type implements + // the Metadata method. This string should prefix the EphemeralResource type name + // with an underscore in the response. + ProviderTypeName string +} + +// MetadataResponse represents a response to a MetadataRequest. An +// instance of this response struct is supplied as an argument to the +// EphemeralResource type Metadata method. +type MetadataResponse struct { + // TypeName should be the full ephemeral resource type, including the provider + // type prefix and an underscore. For example, examplecloud_thing. + TypeName string +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/open.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/open.go new file mode 100644 index 000000000000..5da47ee1cc8b --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/open.go @@ -0,0 +1,80 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +import ( + "time" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" +) + +// OpenClientCapabilities allows Terraform to publish information +// regarding optionally supported protocol features for the OpenEphemeralResource RPC, +// such as forward-compatible Terraform behavior changes. +type OpenClientCapabilities struct { + // DeferralAllowed indicates whether the Terraform client initiating + // the request allows a deferral response. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + DeferralAllowed bool +} + +// OpenRequest represents a request for the provider to open an ephemeral +// resource. An instance of this request struct is supplied as an argument to +// the ephemeral resource's Open function. +type OpenRequest struct { + // Config is the configuration the user supplied for the ephemeral + // resource. + Config tfsdk.Config + + // ClientCapabilities defines optionally supported protocol features for the + // OpenEphemeralResource RPC, such as forward-compatible Terraform behavior changes. + ClientCapabilities OpenClientCapabilities +} + +// OpenResponse represents a response to a OpenRequest. An +// instance of this response struct is supplied as an argument +// to the ephemeral resource's Open function, in which the provider +// should set values on the OpenResponse as appropriate. +type OpenResponse struct { + // Result is the object representing the values of the ephemeral + // resource following the Open operation. This field is pre-populated + // from OpenRequest.Config and should be set during the resource's Open + // operation. + Result tfsdk.EphemeralResultData + + // Private is the private state ephemeral resource data following the + // Open operation. This field is not pre-populated as there is no + // pre-existing private state data during the ephemeral resource's + // Open operation. + // + // This private data will be passed to any Renew or Close operations. + Private *privatestate.ProviderData + + // RenewAt is an optional date/time field that indicates to Terraform + // when this ephemeral resource must be renewed at. Terraform will call + // the (EphemeralResource).Renew method when the current date/time is on + // or after RenewAt during a Terraform operation. + // + // It is recommended to add extra time (usually no more than a few minutes) + // before an ephemeral resource expires to account for latency. + RenewAt time.Time + + // Diagnostics report errors or warnings related to opening the ephemeral + // resource. An empty slice indicates a successful operation with no + // warnings or errors generated. + Diagnostics diag.Diagnostics + + // Deferred indicates that Terraform should defer opening this + // ephemeral resource until a followup apply operation. + // + // This field can only be set if + // `(ephemeral.OpenRequest).ClientCapabilities.DeferralAllowed` is true. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + Deferred *Deferred +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/renew.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/renew.go new file mode 100644 index 000000000000..dd7f0c8e3ccd --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/renew.go @@ -0,0 +1,51 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +import ( + "time" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" +) + +// RenewRequest represents a request for the provider to renew an ephemeral +// resource. An instance of this request struct is supplied as an argument to +// the ephemeral resource's Renew function. +type RenewRequest struct { + // Private is provider-defined ephemeral resource private state data + // which was previously provided by the latest Open or Renew operation. + // Any existing data is copied to RenewResponse.Private to prevent + // accidental private state data loss. + // + // Use the GetKey method to read data. Use the SetKey method on + // RenewResponse.Private to update or remove a value. + Private *privatestate.ProviderData +} + +// RenewResponse represents a response to a RenewRequest. An +// instance of this response struct is supplied as an argument +// to the ephemeral resource's Renew function, in which the provider +// should set values on the RenewResponse as appropriate. +type RenewResponse struct { + // RenewAt is an optional date/time field that indicates to Terraform + // when this ephemeral resource must be renewed at. Terraform will call + // the (EphemeralResource).Renew method when the current date/time is on + // or after RenewAt during a Terraform operation. + // + // It is recommended to add extra time (usually no more than a few minutes) + // before an ephemeral resource expires to account for latency. + RenewAt time.Time + + // Private is the private state ephemeral resource data following the + // Renew operation. This field is pre-populated from RenewRequest.Private + // and can be modified during the ephemeral resource's Renew operation. + // + // This private data will be passed to any Renew or Close operations. + Private *privatestate.ProviderData + + // Diagnostics report errors or warnings related to renewing the ephemeral + // resource. An empty slice indicates a successful operation with no + // warnings or errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema.go new file mode 100644 index 000000000000..c490679755f8 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema.go @@ -0,0 +1,26 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +import ( + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral/schema" +) + +// SchemaRequest represents a request for the EphemeralResource to return its schema. +// An instance of this request struct is supplied as an argument to the +// EphemeralResource type Schema method. +type SchemaRequest struct{} + +// SchemaResponse represents a response to a SchemaRequest. An instance of this +// response struct is supplied as an argument to the EphemeralResource type Schema +// method. +type SchemaResponse struct { + // Schema is the schema of the ephemeral resource. + Schema schema.Schema + + // Diagnostics report errors or warnings related to retrieving the ephemeral + // resource schema. An empty slice indicates success, with no warnings + // or errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/attribute.go new file mode 100644 index 000000000000..8b6ebe60b949 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/attribute.go @@ -0,0 +1,39 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" +) + +// Attribute defines a value field inside the Schema. Implementations in this +// package include: +// - BoolAttribute +// - DynamicAttribute +// - Float32Attribute +// - Float64Attribute +// - Int32Attribute +// - Int64Attribute +// - ListAttribute +// - MapAttribute +// - NumberAttribute +// - ObjectAttribute +// - SetAttribute +// - StringAttribute +// +// Additionally, the NestedAttribute interface extends Attribute with nested +// attributes. Only supported in protocol version 6. Implementations in this +// package include: +// - ListNestedAttribute +// - MapNestedAttribute +// - SetNestedAttribute +// - SingleNestedAttribute +// +// In practitioner configurations, an equals sign (=) is required to set +// the value. [Configuration Reference] +// +// [Configuration Reference]: https://developer.hashicorp.com/terraform/language/syntax/configuration +type Attribute interface { + fwschema.Attribute +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/block.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/block.go new file mode 100644 index 000000000000..f741d8f8e0e6 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/block.go @@ -0,0 +1,30 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" +) + +// Block defines a structural field inside a Schema. Implementations in this +// package include: +// - ListNestedBlock +// - SetNestedBlock +// - SingleNestedBlock +// +// In practitioner configurations, an equals sign (=) cannot be used to set the +// value. Blocks are instead repeated as necessary, or require the use of +// [Dynamic Block Expressions]. +// +// Prefer NestedAttribute over Block. Blocks should typically be used for +// configuration compatibility with previously existing schemas from an older +// Terraform Plugin SDK. Efforts should be made to convert from Block to +// NestedAttribute as a breaking change for practitioners. +// +// [Dynamic Block Expressions]: https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks +// +// [Configuration Reference]: https://developer.hashicorp.com/terraform/language/syntax/configuration +type Block interface { + fwschema.Block +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/bool_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/bool_attribute.go new file mode 100644 index 000000000000..47e248aaeef1 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/bool_attribute.go @@ -0,0 +1,185 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = BoolAttribute{} + _ fwxschema.AttributeWithBoolValidators = BoolAttribute{} +) + +// BoolAttribute represents a schema attribute that is a boolean. When +// retrieving the value for this attribute, use types.Bool as the value type +// unless the CustomType field is set. +// +// Terraform configurations configure this attribute using expressions that +// return a boolean or directly via the true/false keywords. +// +// example_attribute = true +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type BoolAttribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.BoolType. When retrieving data, the basetypes.BoolValuable + // associated with this custom type must be used in place of types.Bool. + CustomType basetypes.BoolTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Bool +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a BoolAttribute. +func (a BoolAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// BoolValidators returns the Validators field value. +func (a BoolAttribute) BoolValidators() []validator.Bool { + return a.Validators +} + +// Equal returns true if the given Attribute is a BoolAttribute +// and all fields are equal. +func (a BoolAttribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(BoolAttribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a BoolAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a BoolAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a BoolAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.StringType or the CustomType field value if defined. +func (a BoolAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.BoolType +} + +// IsComputed returns the Computed field value. +func (a BoolAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a BoolAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a BoolAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a BoolAttribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/doc.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/doc.go new file mode 100644 index 000000000000..93c0835e2a72 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/doc.go @@ -0,0 +1,11 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +// Package schema contains all available schema functionality for ephemeral resources. +// Ephemeral resource schemas define the structure and value types for configuration +// and result data. Schemas are implemented via the ephemeral.EphemeralResource type +// Schema method. +// +// NOTE: Ephemeral resource support is experimental and exposed without compatibility promises until +// these notices are removed. +package schema diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/dynamic_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/dynamic_attribute.go new file mode 100644 index 000000000000..5088fef6382c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/dynamic_attribute.go @@ -0,0 +1,186 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = DynamicAttribute{} + _ fwxschema.AttributeWithDynamicValidators = DynamicAttribute{} +) + +// DynamicAttribute represents a schema attribute that is a dynamic, rather +// than a single static type. Static types are always preferable over dynamic +// types in Terraform as practitioners will receive less helpful configuration +// assistance from validation error diagnostics and editor integrations. When +// retrieving the value for this attribute, use types.Dynamic as the value type +// unless the CustomType field is set. +// +// The concrete value type for a dynamic is determined at runtime in this order: +// 1. By Terraform, if defined in the configuration (if Required or Optional). +// 2. By the provider (if Computed). +// +// Once the concrete value type has been determined, it must remain consistent between +// plan and apply or Terraform will return an error. +type DynamicAttribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.DynamicType. When retrieving data, the basetypes.DynamicValuable + // associated with this custom type must be used in place of types.Dynamic. + CustomType basetypes.DynamicTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Dynamic +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a DynamicAttribute. +func (a DynamicAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a DynamicAttribute +// and all fields are equal. +func (a DynamicAttribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(DynamicAttribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a DynamicAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a DynamicAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a DynamicAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.DynamicType or the CustomType field value if defined. +func (a DynamicAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.DynamicType +} + +// IsComputed returns the Computed field value. +func (a DynamicAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a DynamicAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a DynamicAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a DynamicAttribute) IsSensitive() bool { + return a.Sensitive +} + +// DynamicValidators returns the Validators field value. +func (a DynamicAttribute) DynamicValidators() []validator.Dynamic { + return a.Validators +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/float32_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/float32_attribute.go new file mode 100644 index 000000000000..93ce2ac7db65 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/float32_attribute.go @@ -0,0 +1,189 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = Float32Attribute{} + _ fwxschema.AttributeWithFloat32Validators = Float32Attribute{} +) + +// Float32Attribute represents a schema attribute that is a 32-bit floating +// point number. When retrieving the value for this attribute, use +// types.Float32 as the value type unless the CustomType field is set. +// +// Use Int32Attribute for 32-bit integer attributes or NumberAttribute for +// 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via a floating point value. +// +// example_attribute = 123.45 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Float32Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Float32Type. When retrieving data, the basetypes.Float32Valuable + // associated with this custom type must be used in place of types.Float32. + CustomType basetypes.Float32Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Float32 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Float32Attribute. +func (a Float32Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Float32Attribute +// and all fields are equal. +func (a Float32Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Float32Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// Float32Validators returns the Validators field value. +func (a Float32Attribute) Float32Validators() []validator.Float32 { + return a.Validators +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Float32Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Float32Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Float32Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Float32Type or the CustomType field value if defined. +func (a Float32Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Float32Type +} + +// IsComputed returns the Computed field value. +func (a Float32Attribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a Float32Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Float32Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Float32Attribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/float64_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/float64_attribute.go new file mode 100644 index 000000000000..ff1912d1e7b8 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/float64_attribute.go @@ -0,0 +1,188 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = Float64Attribute{} + _ fwxschema.AttributeWithFloat64Validators = Float64Attribute{} +) + +// Float64Attribute represents a schema attribute that is a 64-bit floating +// point number. When retrieving the value for this attribute, use +// types.Float64 as the value type unless the CustomType field is set. +// +// Use Int64Attribute for 64-bit integer attributes or NumberAttribute for +// 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via a floating point value. +// +// example_attribute = 123.45 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Float64Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Float64Type. When retrieving data, the basetypes.Float64Valuable + // associated with this custom type must be used in place of types.Float64. + CustomType basetypes.Float64Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Float64 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Float64Attribute. +func (a Float64Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Float64Attribute +// and all fields are equal. +func (a Float64Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Float64Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// Float64Validators returns the Validators field value. +func (a Float64Attribute) Float64Validators() []validator.Float64 { + return a.Validators +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Float64Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Float64Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Float64Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Float64Type or the CustomType field value if defined. +func (a Float64Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Float64Type +} + +// IsComputed returns the Computed field value. +func (a Float64Attribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a Float64Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Float64Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Float64Attribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/int32_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/int32_attribute.go new file mode 100644 index 000000000000..f98cbe3b0516 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/int32_attribute.go @@ -0,0 +1,189 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = Int32Attribute{} + _ fwxschema.AttributeWithInt32Validators = Int32Attribute{} +) + +// Int32Attribute represents a schema attribute that is a 32-bit integer. +// When retrieving the value for this attribute, use types.Int32 as the value +// type unless the CustomType field is set. +// +// Use Float32Attribute for 32-bit floating point number attributes or +// NumberAttribute for 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via an integer value. +// +// example_attribute = 123 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Int32Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Int32Type. When retrieving data, the basetypes.Int32Valuable + // associated with this custom type must be used in place of types.Int32. + CustomType basetypes.Int32Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Int32 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Int32Attribute. +func (a Int32Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Int32Attribute +// and all fields are equal. +func (a Int32Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Int32Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Int32Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Int32Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Int32Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Int32Type or the CustomType field value if defined. +func (a Int32Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Int32Type +} + +// Int32Validators returns the Validators field value. +func (a Int32Attribute) Int32Validators() []validator.Int32 { + return a.Validators +} + +// IsComputed returns the Computed field value. +func (a Int32Attribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a Int32Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Int32Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Int32Attribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/int64_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/int64_attribute.go new file mode 100644 index 000000000000..52b1b7ffd623 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/int64_attribute.go @@ -0,0 +1,188 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = Int64Attribute{} + _ fwxschema.AttributeWithInt64Validators = Int64Attribute{} +) + +// Int64Attribute represents a schema attribute that is a 64-bit integer. +// When retrieving the value for this attribute, use types.Int64 as the value +// type unless the CustomType field is set. +// +// Use Float64Attribute for 64-bit floating point number attributes or +// NumberAttribute for 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via an integer value. +// +// example_attribute = 123 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Int64Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Int64Type. When retrieving data, the basetypes.Int64Valuable + // associated with this custom type must be used in place of types.Int64. + CustomType basetypes.Int64Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Int64 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Int64Attribute. +func (a Int64Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Int64Attribute +// and all fields are equal. +func (a Int64Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Int64Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Int64Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Int64Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Int64Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Int64Type or the CustomType field value if defined. +func (a Int64Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Int64Type +} + +// Int64Validators returns the Validators field value. +func (a Int64Attribute) Int64Validators() []validator.Int64 { + return a.Validators +} + +// IsComputed returns the Computed field value. +func (a Int64Attribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a Int64Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Int64Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Int64Attribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_attribute.go new file mode 100644 index 000000000000..3846316b6bcc --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_attribute.go @@ -0,0 +1,220 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = ListAttribute{} + _ fwschema.AttributeWithValidateImplementation = ListAttribute{} + _ fwxschema.AttributeWithListValidators = ListAttribute{} +) + +// ListAttribute represents a schema attribute that is a list with a single +// element type. When retrieving the value for this attribute, use types.List +// as the value type unless the CustomType field is set. The ElementType field +// must be set. +// +// Use ListNestedAttribute if the underlying elements should be objects and +// require definition beyond type information. +// +// Terraform configurations configure this attribute using expressions that +// return a list or directly via square brace syntax. +// +// # list of strings +// example_attribute = ["first", "second"] +// +// Terraform configurations reference this attribute using expressions that +// accept a list or an element directly via square brace 0-based index syntax: +// +// # first known element +// .example_attribute[0] +type ListAttribute struct { + // ElementType is the type for all elements of the list. This field must be + // set. + // + // Element types that contain a dynamic type (i.e. types.Dynamic) are not supported. + // If underlying dynamic values are required, replace this attribute definition with + // DynamicAttribute instead. + ElementType attr.Type + + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.ListType. When retrieving data, the basetypes.ListValuable + // associated with this custom type must be used in place of types.List. + CustomType basetypes.ListTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.List +} + +// ApplyTerraform5AttributePathStep returns the result of stepping into a list +// index or an error. +func (a ListAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a ListAttribute +// and all fields are equal. +func (a ListAttribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(ListAttribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a ListAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a ListAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a ListAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.ListType or the CustomType field value if defined. +func (a ListAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.ListType{ + ElemType: a.ElementType, + } +} + +// IsComputed returns the Computed field value. +func (a ListAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a ListAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a ListAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a ListAttribute) IsSensitive() bool { + return a.Sensitive +} + +// ListValidators returns the Validators field value. +func (a ListAttribute) ListValidators() []validator.List { + return a.Validators +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC +// and should never include false positives. +func (a ListAttribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if a.CustomType == nil && a.ElementType == nil { + resp.Diagnostics.Append(fwschema.AttributeMissingElementTypeDiag(req.Path)) + } + + if a.CustomType == nil && fwtype.ContainsCollectionWithDynamic(a.GetType()) { + resp.Diagnostics.Append(fwtype.AttributeCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_nested_attribute.go new file mode 100644 index 000000000000..4a91f2742aee --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_nested_attribute.go @@ -0,0 +1,244 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ NestedAttribute = ListNestedAttribute{} + _ fwschema.AttributeWithValidateImplementation = ListNestedAttribute{} + _ fwxschema.AttributeWithListValidators = ListNestedAttribute{} +) + +// ListNestedAttribute represents an attribute that is a list of objects where +// the object attributes can be fully defined, including further nested +// attributes. When retrieving the value for this attribute, use types.List +// as the value type unless the CustomType field is set. The NestedObject field +// must be set. Nested attributes are only compatible with protocol version 6. +// +// Use ListAttribute if the underlying elements are of a single type and do +// not require definition beyond type information. +// +// Terraform configurations configure this attribute using expressions that +// return a list of objects or directly via square and curly brace syntax. +// +// # list of objects +// example_attribute = [ +// { +// nested_attribute = #... +// }, +// ] +// +// Terraform configurations reference this attribute using expressions that +// accept a list of objects or an element directly via square brace 0-based +// index syntax: +// +// # first known object +// .example_attribute[0] +// # first known object nested_attribute value +// .example_attribute[0].nested_attribute +type ListNestedAttribute struct { + // NestedObject is the underlying object that contains nested attributes. + // This field must be set. + // + // Nested attributes that contain a dynamic type (i.e. DynamicAttribute) are not supported. + // If underlying dynamic values are required, replace this attribute definition with + // DynamicAttribute instead. + NestedObject NestedAttributeObject + + // CustomType enables the use of a custom attribute type in place of the + // default types.ListType of types.ObjectType. When retrieving data, the + // basetypes.ListValuable associated with this custom type must be used in + // place of types.List. + CustomType basetypes.ListTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.List +} + +// ApplyTerraform5AttributePathStep returns the Attributes field value if step +// is ElementKeyInt, otherwise returns an error. +func (a ListNestedAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + _, ok := step.(tftypes.ElementKeyInt) + + if !ok { + return nil, fmt.Errorf("cannot apply step %T to ListNestedAttribute", step) + } + + return a.NestedObject, nil +} + +// Equal returns true if the given Attribute is a ListNestedAttribute +// and all fields are equal. +func (a ListNestedAttribute) Equal(o fwschema.Attribute) bool { + other, ok := o.(ListNestedAttribute) + + if !ok { + return false + } + + return fwschema.NestedAttributesEqual(a, other) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a ListNestedAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a ListNestedAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a ListNestedAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetNestedObject returns the NestedObject field value. +func (a ListNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { + return a.NestedObject +} + +// GetNestingMode always returns NestingModeList. +func (a ListNestedAttribute) GetNestingMode() fwschema.NestingMode { + return fwschema.NestingModeList +} + +// GetType returns ListType of ObjectType or CustomType. +func (a ListNestedAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.ListType{ + ElemType: a.NestedObject.Type(), + } +} + +// IsComputed returns the Computed field value. +func (a ListNestedAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a ListNestedAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a ListNestedAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a ListNestedAttribute) IsSensitive() bool { + return a.Sensitive +} + +// ListValidators returns the Validators field value. +func (a ListNestedAttribute) ListValidators() []validator.List { + return a.Validators +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC and +// should never include false positives. +func (a ListNestedAttribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if a.CustomType == nil && fwtype.ContainsCollectionWithDynamic(a.GetType()) { + resp.Diagnostics.Append(fwtype.AttributeCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_nested_block.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_nested_block.go new file mode 100644 index 000000000000..4d098bc2d0a4 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/list_nested_block.go @@ -0,0 +1,205 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Block = ListNestedBlock{} + _ fwschema.BlockWithValidateImplementation = ListNestedBlock{} + _ fwxschema.BlockWithListValidators = ListNestedBlock{} +) + +// ListNestedBlock represents a block that is a list of objects where +// the object attributes can be fully defined, including further attributes +// or blocks. When retrieving the value for this block, use types.List +// as the value type unless the CustomType field is set. The NestedObject field +// must be set. +// +// Prefer ListNestedAttribute over ListNestedBlock if the provider is +// using protocol version 6. Nested attributes allow practitioners to configure +// values directly with expressions. +// +// Terraform configurations configure this block repeatedly using curly brace +// syntax without an equals (=) sign or [Dynamic Block Expressions]. +// +// # list of blocks with two elements +// example_block { +// nested_attribute = #... +// } +// example_block { +// nested_attribute = #... +// } +// +// Terraform configurations reference this block using expressions that +// accept a list of objects or an element directly via square brace 0-based +// index syntax: +// +// # first known object +// .example_block[0] +// # first known object nested_attribute value +// .example_block[0].nested_attribute +// +// [Dynamic Block Expressions]: https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks +type ListNestedBlock struct { + // NestedObject is the underlying object that contains nested attributes or + // blocks. This field must be set. + // + // Nested attributes that contain a dynamic type (i.e. DynamicAttribute) are not supported. + // If underlying dynamic values are required, replace this block definition with + // a DynamicAttribute. + NestedObject NestedBlockObject + + // CustomType enables the use of a custom attribute type in place of the + // default types.ListType of types.ObjectType. When retrieving data, the + // basetypes.ListValuable associated with this custom type must be used in + // place of types.List. + CustomType basetypes.ListTypable + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.List +} + +// ApplyTerraform5AttributePathStep returns the NestedObject field value if step +// is ElementKeyInt, otherwise returns an error. +func (b ListNestedBlock) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + _, ok := step.(tftypes.ElementKeyInt) + + if !ok { + return nil, fmt.Errorf("cannot apply step %T to ListNestedBlock", step) + } + + return b.NestedObject, nil +} + +// Equal returns true if the given Block is ListNestedBlock +// and all fields are equal. +func (b ListNestedBlock) Equal(o fwschema.Block) bool { + if _, ok := o.(ListNestedBlock); !ok { + return false + } + + return fwschema.BlocksEqual(b, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (b ListNestedBlock) GetDeprecationMessage() string { + return b.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (b ListNestedBlock) GetDescription() string { + return b.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (b ListNestedBlock) GetMarkdownDescription() string { + return b.MarkdownDescription +} + +// GetNestedObject returns the NestedObject field value. +func (b ListNestedBlock) GetNestedObject() fwschema.NestedBlockObject { + return b.NestedObject +} + +// GetNestingMode always returns BlockNestingModeList. +func (b ListNestedBlock) GetNestingMode() fwschema.BlockNestingMode { + return fwschema.BlockNestingModeList +} + +// ListValidators returns the Validators field value. +func (b ListNestedBlock) ListValidators() []validator.List { + return b.Validators +} + +// Type returns ListType of ObjectType or CustomType. +func (b ListNestedBlock) Type() attr.Type { + if b.CustomType != nil { + return b.CustomType + } + + return types.ListType{ + ElemType: b.NestedObject.Type(), + } +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the block to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC and +// should never include false positives. +func (b ListNestedBlock) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if b.CustomType == nil && fwtype.ContainsCollectionWithDynamic(b.Type()) { + resp.Diagnostics.Append(fwtype.BlockCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/map_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/map_attribute.go new file mode 100644 index 000000000000..366619ed5116 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/map_attribute.go @@ -0,0 +1,223 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = MapAttribute{} + _ fwschema.AttributeWithValidateImplementation = MapAttribute{} + _ fwxschema.AttributeWithMapValidators = MapAttribute{} +) + +// MapAttribute represents a schema attribute that is a map with a single +// element type. When retrieving the value for this attribute, use types.Map +// as the value type unless the CustomType field is set. The ElementType field +// must be set. +// +// Use MapNestedAttribute if the underlying elements should be objects and +// require definition beyond type information. +// +// Terraform configurations configure this attribute using expressions that +// return a map or directly via curly brace syntax. +// +// # map of strings +// example_attribute = { +// key1 = "first", +// key2 = "second", +// } +// +// Terraform configurations reference this attribute using expressions that +// accept a map or an element directly via square brace string syntax: +// +// # key1 known element +// .example_attribute["key1"] +type MapAttribute struct { + // ElementType is the type for all elements of the map. This field must be + // set. + // + // Element types that contain a dynamic type (i.e. types.Dynamic) are not supported. + // If underlying dynamic values are required, replace this attribute definition with + // DynamicAttribute instead. + ElementType attr.Type + + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.MapType. When retrieving data, the basetypes.MapValuable + // associated with this custom type must be used in place of types.Map. + CustomType basetypes.MapTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Map +} + +// ApplyTerraform5AttributePathStep returns the result of stepping into a map +// index or an error. +func (a MapAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a MapAttribute +// and all fields are equal. +func (a MapAttribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(MapAttribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a MapAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a MapAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a MapAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.MapType or the CustomType field value if defined. +func (a MapAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.MapType{ + ElemType: a.ElementType, + } +} + +// IsComputed returns the Computed field value. +func (a MapAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a MapAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a MapAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a MapAttribute) IsSensitive() bool { + return a.Sensitive +} + +// MapValidators returns the Validators field value. +func (a MapAttribute) MapValidators() []validator.Map { + return a.Validators +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC +// and should never include false positives. +func (a MapAttribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if a.CustomType == nil && a.ElementType == nil { + resp.Diagnostics.Append(fwschema.AttributeMissingElementTypeDiag(req.Path)) + } + + if a.CustomType == nil && fwtype.ContainsCollectionWithDynamic(a.GetType()) { + resp.Diagnostics.Append(fwtype.AttributeCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/map_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/map_nested_attribute.go new file mode 100644 index 000000000000..11d701cc9811 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/map_nested_attribute.go @@ -0,0 +1,245 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ NestedAttribute = MapNestedAttribute{} + _ fwschema.AttributeWithValidateImplementation = MapNestedAttribute{} + _ fwxschema.AttributeWithMapValidators = MapNestedAttribute{} +) + +// MapNestedAttribute represents an attribute that is a map of objects where +// the object attributes can be fully defined, including further nested +// attributes. When retrieving the value for this attribute, use types.Map +// as the value type unless the CustomType field is set. The NestedObject field +// must be set. Nested attributes are only compatible with protocol version 6. +// +// Use MapAttribute if the underlying elements are of a single type and do +// not require definition beyond type information. +// +// Terraform configurations configure this attribute using expressions that +// return a map of objects or directly via curly brace syntax. +// +// # map of objects +// example_attribute = { +// key = { +// nested_attribute = #... +// }, +// ] +// +// Terraform configurations reference this attribute using expressions that +// accept a map of objects or an element directly via square brace string +// syntax: +// +// # known object at key +// .example_attribute["key"] +// # known object nested_attribute value at key +// .example_attribute["key"].nested_attribute +type MapNestedAttribute struct { + // NestedObject is the underlying object that contains nested attributes. + // This field must be set. + // + // Nested attributes that contain a dynamic type (i.e. DynamicAttribute) are not supported. + // If underlying dynamic values are required, replace this attribute definition with + // DynamicAttribute instead. + NestedObject NestedAttributeObject + + // CustomType enables the use of a custom attribute type in place of the + // default types.MapType of types.ObjectType. When retrieving data, the + // basetypes.MapValuable associated with this custom type must be used in + // place of types.Map. + CustomType basetypes.MapTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Map +} + +// ApplyTerraform5AttributePathStep returns the Attributes field value if step +// is ElementKeyString, otherwise returns an error. +func (a MapNestedAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + _, ok := step.(tftypes.ElementKeyString) + + if !ok { + return nil, fmt.Errorf("cannot apply step %T to MapNestedAttribute", step) + } + + return a.NestedObject, nil +} + +// Equal returns true if the given Attribute is a MapNestedAttribute +// and all fields are equal. +func (a MapNestedAttribute) Equal(o fwschema.Attribute) bool { + other, ok := o.(MapNestedAttribute) + + if !ok { + return false + } + + return fwschema.NestedAttributesEqual(a, other) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a MapNestedAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a MapNestedAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a MapNestedAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetNestedObject returns the NestedObject field value. +func (a MapNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { + return a.NestedObject +} + +// GetNestingMode always returns NestingModeMap. +func (a MapNestedAttribute) GetNestingMode() fwschema.NestingMode { + return fwschema.NestingModeMap +} + +// GetType returns MapType of ObjectType or CustomType. +func (a MapNestedAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.MapType{ + ElemType: a.NestedObject.Type(), + } +} + +// IsComputed returns the Computed field value. +func (a MapNestedAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a MapNestedAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a MapNestedAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a MapNestedAttribute) IsSensitive() bool { + return a.Sensitive +} + +// MapValidators returns the Validators field value. +func (a MapNestedAttribute) MapValidators() []validator.Map { + return a.Validators +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC and +// should never include false positives. +func (a MapNestedAttribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if a.CustomType == nil && fwtype.ContainsCollectionWithDynamic(a.GetType()) { + resp.Diagnostics.Append(fwtype.AttributeCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_attribute.go new file mode 100644 index 000000000000..31d2ee158815 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_attribute.go @@ -0,0 +1,14 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" +) + +// Nested attributes are only compatible with protocol version 6. +type NestedAttribute interface { + Attribute + fwschema.NestedAttribute +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_attribute_object.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_attribute_object.go new file mode 100644 index 000000000000..3719a23987a5 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_attribute_object.go @@ -0,0 +1,82 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var _ fwxschema.NestedAttributeObjectWithValidators = NestedAttributeObject{} + +// NestedAttributeObject is the object containing the underlying attributes +// for a ListNestedAttribute, MapNestedAttribute, SetNestedAttribute, or +// SingleNestedAttribute (automatically generated). When retrieving the value +// for this attribute, use types.Object as the value type unless the CustomType +// field is set. The Attributes field must be set. Nested attributes are only +// compatible with protocol version 6. +// +// This object enables customizing and simplifying details within its parent +// NestedAttribute, therefore it cannot have Terraform schema fields such as +// Required, Description, etc. +type NestedAttributeObject struct { + // Attributes is the mapping of underlying attribute names to attribute + // definitions. This field must be set. + Attributes map[string]Attribute + + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.ObjectType. When retrieving data, the basetypes.ObjectValuable + // associated with this custom type must be used in place of types.Object. + CustomType basetypes.ObjectTypable + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Object +} + +// ApplyTerraform5AttributePathStep performs an AttributeName step on the +// underlying attributes or returns an error. +func (o NestedAttributeObject) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (any, error) { + return fwschema.NestedAttributeObjectApplyTerraform5AttributePathStep(o, step) +} + +// Equal returns true if the given NestedAttributeObject is equivalent. +func (o NestedAttributeObject) Equal(other fwschema.NestedAttributeObject) bool { + if _, ok := other.(NestedAttributeObject); !ok { + return false + } + + return fwschema.NestedAttributeObjectEqual(o, other) +} + +// GetAttributes returns the Attributes field value. +func (o NestedAttributeObject) GetAttributes() fwschema.UnderlyingAttributes { + return schemaAttributes(o.Attributes) +} + +// ObjectValidators returns the Validators field value. +func (o NestedAttributeObject) ObjectValidators() []validator.Object { + return o.Validators +} + +// Type returns the framework type of the NestedAttributeObject. +func (o NestedAttributeObject) Type() basetypes.ObjectTypable { + if o.CustomType != nil { + return o.CustomType + } + + return fwschema.NestedAttributeObjectType(o) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_block_object.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_block_object.go new file mode 100644 index 000000000000..2b560b6060cc --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/nested_block_object.go @@ -0,0 +1,94 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var _ fwxschema.NestedBlockObjectWithValidators = NestedBlockObject{} + +// NestedBlockObject is the object containing the underlying attributes and +// blocks for a ListNestedBlock or SetNestedBlock. When retrieving the value +// for this attribute, use types.Object as the value type unless the CustomType +// field is set. +// +// This object enables customizing and simplifying details within its parent +// Block, therefore it cannot have Terraform schema fields such as Description, +// etc. +type NestedBlockObject struct { + // Attributes is the mapping of underlying attribute names to attribute + // definitions. + // + // Names must only contain lowercase letters, numbers, and underscores. + // Names must not collide with any Blocks names. + Attributes map[string]Attribute + + // Blocks is the mapping of underlying block names to block definitions. + // + // Names must only contain lowercase letters, numbers, and underscores. + // Names must not collide with any Attributes names. + Blocks map[string]Block + + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.ObjectType. When retrieving data, the basetypes.ObjectValuable + // associated with this custom type must be used in place of types.Object. + CustomType basetypes.ObjectTypable + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Object +} + +// ApplyTerraform5AttributePathStep performs an AttributeName step on the +// underlying attributes or returns an error. +func (o NestedBlockObject) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (any, error) { + return fwschema.NestedBlockObjectApplyTerraform5AttributePathStep(o, step) +} + +// Equal returns true if the given NestedBlockObject is equivalent. +func (o NestedBlockObject) Equal(other fwschema.NestedBlockObject) bool { + if _, ok := other.(NestedBlockObject); !ok { + return false + } + + return fwschema.NestedBlockObjectEqual(o, other) +} + +// GetAttributes returns the Attributes field value. +func (o NestedBlockObject) GetAttributes() fwschema.UnderlyingAttributes { + return schemaAttributes(o.Attributes) +} + +// GetAttributes returns the Blocks field value. +func (o NestedBlockObject) GetBlocks() map[string]fwschema.Block { + return schemaBlocks(o.Blocks) +} + +// ObjectValidators returns the Validators field value. +func (o NestedBlockObject) ObjectValidators() []validator.Object { + return o.Validators +} + +// Type returns the framework type of the NestedBlockObject. +func (o NestedBlockObject) Type() basetypes.ObjectTypable { + if o.CustomType != nil { + return o.CustomType + } + + return fwschema.NestedBlockObjectType(o) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/number_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/number_attribute.go new file mode 100644 index 000000000000..54739640906c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/number_attribute.go @@ -0,0 +1,189 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = NumberAttribute{} + _ fwxschema.AttributeWithNumberValidators = NumberAttribute{} +) + +// NumberAttribute represents a schema attribute that is a generic number with +// up to 512 bits of floating point or integer precision. When retrieving the +// value for this attribute, use types.Number as the value type unless the +// CustomType field is set. +// +// Use Float64Attribute for 64-bit floating point number attributes or +// Int64Attribute for 64-bit integer number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via a floating point or integer value. +// +// example_attribute = 123 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type NumberAttribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.NumberType. When retrieving data, the basetypes.NumberValuable + // associated with this custom type must be used in place of types.Number. + CustomType basetypes.NumberTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Number +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a NumberAttribute. +func (a NumberAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a NumberAttribute +// and all fields are equal. +func (a NumberAttribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(NumberAttribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a NumberAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a NumberAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a NumberAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.NumberType or the CustomType field value if defined. +func (a NumberAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.NumberType +} + +// IsComputed returns the Computed field value. +func (a NumberAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a NumberAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a NumberAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a NumberAttribute) IsSensitive() bool { + return a.Sensitive +} + +// NumberValidators returns the Validators field value. +func (a NumberAttribute) NumberValidators() []validator.Number { + return a.Validators +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/object_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/object_attribute.go new file mode 100644 index 000000000000..1ff506f9d229 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/object_attribute.go @@ -0,0 +1,222 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = ObjectAttribute{} + _ fwschema.AttributeWithValidateImplementation = ObjectAttribute{} + _ fwxschema.AttributeWithObjectValidators = ObjectAttribute{} +) + +// ObjectAttribute represents a schema attribute that is an object with only +// type information for underlying attributes. When retrieving the value for +// this attribute, use types.Object as the value type unless the CustomType +// field is set. The AttributeTypes field must be set. +// +// Prefer SingleNestedAttribute over ObjectAttribute if the provider is +// using protocol version 6 and full attribute functionality is needed. +// +// Terraform configurations configure this attribute using expressions that +// return an object or directly via curly brace syntax. +// +// # object with one attribute +// example_attribute = { +// underlying_attribute = #... +// } +// +// Terraform configurations reference this attribute using expressions that +// accept an object or an attribute directly via period syntax: +// +// # underlying attribute +// .example_attribute.underlying_attribute +type ObjectAttribute struct { + // AttributeTypes is the mapping of underlying attribute names to attribute + // types. This field must be set. + // + // Attribute types that contain a collection with a nested dynamic type (i.e. types.List[types.Dynamic]) are not supported. + // If underlying dynamic collection values are required, replace this attribute definition with + // DynamicAttribute instead. + AttributeTypes map[string]attr.Type + + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.ObjectType. When retrieving data, the basetypes.ObjectValuable + // associated with this custom type must be used in place of types.Object. + CustomType basetypes.ObjectTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Object +} + +// ApplyTerraform5AttributePathStep returns the result of stepping into an +// attribute name or an error. +func (a ObjectAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a ObjectAttribute +// and all fields are equal. +func (a ObjectAttribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(ObjectAttribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a ObjectAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a ObjectAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a ObjectAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.ObjectType or the CustomType field value if defined. +func (a ObjectAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.ObjectType{ + AttrTypes: a.AttributeTypes, + } +} + +// IsComputed returns the Computed field value. +func (a ObjectAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a ObjectAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a ObjectAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a ObjectAttribute) IsSensitive() bool { + return a.Sensitive +} + +// ObjectValidators returns the Validators field value. +func (a ObjectAttribute) ObjectValidators() []validator.Object { + return a.Validators +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC +// and should never include false positives. +func (a ObjectAttribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if a.AttributeTypes == nil && a.CustomType == nil { + resp.Diagnostics.Append(fwschema.AttributeMissingAttributeTypesDiag(req.Path)) + } + + if a.CustomType == nil && fwtype.ContainsCollectionWithDynamic(a.GetType()) { + resp.Diagnostics.Append(fwtype.AttributeCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/schema.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/schema.go new file mode 100644 index 000000000000..3c92269fbfa8 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/schema.go @@ -0,0 +1,187 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/path" +) + +// Schema must satify the fwschema.Schema interface. +var _ fwschema.Schema = Schema{} + +// Schema defines the structure and value types of ephemeral resource data. This type +// is used as the ephemeral.SchemaResponse type Schema field, which is +// implemented by the ephemeral.EphemeralResource type Schema method. +type Schema struct { + // Attributes is the mapping of underlying attribute names to attribute + // definitions. + // + // Names must only contain lowercase letters, numbers, and underscores. + // Names must not collide with any Blocks names. + Attributes map[string]Attribute + + // Blocks is the mapping of underlying block names to block definitions. + // + // Names must only contain lowercase letters, numbers, and underscores. + // Names must not collide with any Attributes names. + Blocks map[string]Block + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this ephemeral resource is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this ephemeral resource is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this ephemeral resource. The warning diagnostic + // summary is automatically set to "Ephemeral Resource Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Use examplecloud_other ephemeral resource instead. This ephemeral resource + // will be removed in the next major version of the provider." + // - "Remove this ephemeral resource as it no longer is valid and + // will be removed in the next major version of the provider." + // + DeprecationMessage string +} + +// ApplyTerraform5AttributePathStep applies the given AttributePathStep to the +// schema. +func (s Schema) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (any, error) { + return fwschema.SchemaApplyTerraform5AttributePathStep(s, step) +} + +// AttributeAtPath returns the Attribute at the passed path. If the path points +// to an element or attribute of a complex type, rather than to an Attribute, +// it will return an ErrPathInsideAtomicAttribute error. +func (s Schema) AttributeAtPath(ctx context.Context, p path.Path) (fwschema.Attribute, diag.Diagnostics) { + return fwschema.SchemaAttributeAtPath(ctx, s, p) +} + +// AttributeAtPath returns the Attribute at the passed path. If the path points +// to an element or attribute of a complex type, rather than to an Attribute, +// it will return an ErrPathInsideAtomicAttribute error. +func (s Schema) AttributeAtTerraformPath(ctx context.Context, p *tftypes.AttributePath) (fwschema.Attribute, error) { + return fwschema.SchemaAttributeAtTerraformPath(ctx, s, p) +} + +// GetAttributes returns the Attributes field value. +func (s Schema) GetAttributes() map[string]fwschema.Attribute { + return schemaAttributes(s.Attributes) +} + +// GetBlocks returns the Blocks field value. +func (s Schema) GetBlocks() map[string]fwschema.Block { + return schemaBlocks(s.Blocks) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (s Schema) GetDeprecationMessage() string { + return s.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (s Schema) GetDescription() string { + return s.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (s Schema) GetMarkdownDescription() string { + return s.MarkdownDescription +} + +// GetVersion always returns 0 as ephemeral resource schemas cannot be versioned. +func (s Schema) GetVersion() int64 { + return 0 +} + +// Type returns the framework type of the schema. +func (s Schema) Type() attr.Type { + return fwschema.SchemaType(s) +} + +// TypeAtPath returns the framework type at the given schema path. +func (s Schema) TypeAtPath(ctx context.Context, p path.Path) (attr.Type, diag.Diagnostics) { + return fwschema.SchemaTypeAtPath(ctx, s, p) +} + +// TypeAtTerraformPath returns the framework type at the given tftypes path. +func (s Schema) TypeAtTerraformPath(ctx context.Context, p *tftypes.AttributePath) (attr.Type, error) { + return fwschema.SchemaTypeAtTerraformPath(ctx, s, p) +} + +// Validate verifies that the schema is not using a reserved field name for a top-level attribute. +// +// Deprecated: Use the ValidateImplementation method instead. +func (s Schema) Validate() diag.Diagnostics { + return s.ValidateImplementation(context.Background()) +} + +// ValidateImplementation contains logic for validating the provider-defined +// implementation of the schema and underlying attributes and blocks to prevent +// unexpected errors or panics. This logic runs during the GetProviderSchema +// RPC, or via provider-defined unit testing, and should never include false +// positives. +func (s Schema) ValidateImplementation(ctx context.Context) diag.Diagnostics { + var diags diag.Diagnostics + + for attributeName, attribute := range s.GetAttributes() { + req := fwschema.ValidateImplementationRequest{ + Name: attributeName, + Path: path.Root(attributeName), + } + + diags.Append(fwschema.IsReservedResourceAttributeName(req.Name, req.Path)...) + diags.Append(fwschema.ValidateAttributeImplementation(ctx, attribute, req)...) + } + + for blockName, block := range s.GetBlocks() { + req := fwschema.ValidateImplementationRequest{ + Name: blockName, + Path: path.Root(blockName), + } + + diags.Append(fwschema.IsReservedResourceAttributeName(req.Name, req.Path)...) + diags.Append(fwschema.ValidateBlockImplementation(ctx, block, req)...) + } + + return diags +} + +// schemaAttributes is a ephemeral resource to fwschema type conversion function. +func schemaAttributes(attributes map[string]Attribute) map[string]fwschema.Attribute { + result := make(map[string]fwschema.Attribute, len(attributes)) + + for name, attribute := range attributes { + result[name] = attribute + } + + return result +} + +// schemaBlocks is a ephemeral resource to fwschema type conversion function. +func schemaBlocks(blocks map[string]Block) map[string]fwschema.Block { + result := make(map[string]fwschema.Block, len(blocks)) + + for name, block := range blocks { + result[name] = block + } + + return result +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_attribute.go new file mode 100644 index 000000000000..7f6a408ed6f0 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_attribute.go @@ -0,0 +1,218 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = SetAttribute{} + _ fwschema.AttributeWithValidateImplementation = SetAttribute{} + _ fwxschema.AttributeWithSetValidators = SetAttribute{} +) + +// SetAttribute represents a schema attribute that is a set with a single +// element type. When retrieving the value for this attribute, use types.Set +// as the value type unless the CustomType field is set. The ElementType field +// must be set. +// +// Use SetNestedAttribute if the underlying elements should be objects and +// require definition beyond type information. +// +// Terraform configurations configure this attribute using expressions that +// return a set or directly via square brace syntax. +// +// # set of strings +// example_attribute = ["first", "second"] +// +// Terraform configurations reference this attribute using expressions that +// accept a set. Sets cannot be indexed in Terraform, therefore an expression +// is required to access an explicit element. +type SetAttribute struct { + // ElementType is the type for all elements of the set. This field must be + // set. + // + // Element types that contain a dynamic type (i.e. types.Dynamic) are not supported. + // If underlying dynamic values are required, replace this attribute definition with + // DynamicAttribute instead. + ElementType attr.Type + + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.SetType. When retrieving data, the basetypes.SetValuable + // associated with this custom type must be used in place of types.Set. + CustomType basetypes.SetTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Set +} + +// ApplyTerraform5AttributePathStep returns the result of stepping into a set +// index or an error. +func (a SetAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a SetAttribute +// and all fields are equal. +func (a SetAttribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(SetAttribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a SetAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a SetAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a SetAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.SetType or the CustomType field value if defined. +func (a SetAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.SetType{ + ElemType: a.ElementType, + } +} + +// IsComputed returns the Computed field value. +func (a SetAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a SetAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a SetAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a SetAttribute) IsSensitive() bool { + return a.Sensitive +} + +// SetValidators returns the Validators field value. +func (a SetAttribute) SetValidators() []validator.Set { + return a.Validators +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC +// and should never include false positives. +func (a SetAttribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if a.CustomType == nil && a.ElementType == nil { + resp.Diagnostics.Append(fwschema.AttributeMissingElementTypeDiag(req.Path)) + } + + if a.CustomType == nil && fwtype.ContainsCollectionWithDynamic(a.GetType()) { + resp.Diagnostics.Append(fwtype.AttributeCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_nested_attribute.go new file mode 100644 index 000000000000..7ed6d2fdf531 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_nested_attribute.go @@ -0,0 +1,240 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ NestedAttribute = SetNestedAttribute{} + _ fwschema.AttributeWithValidateImplementation = SetNestedAttribute{} + _ fwxschema.AttributeWithSetValidators = SetNestedAttribute{} +) + +// SetNestedAttribute represents an attribute that is a set of objects where +// the object attributes can be fully defined, including further nested +// attributes. When retrieving the value for this attribute, use types.Set +// as the value type unless the CustomType field is set. The NestedObject field +// must be set. Nested attributes are only compatible with protocol version 6. +// +// Use SetAttribute if the underlying elements are of a single type and do +// not require definition beyond type information. +// +// Terraform configurations configure this attribute using expressions that +// return a set of objects or directly via square and curly brace syntax. +// +// # set of objects +// example_attribute = [ +// { +// nested_attribute = #... +// }, +// ] +// +// Terraform configurations reference this attribute using expressions that +// accept a set of objects. Sets cannot be indexed in Terraform, therefore +// an expression is required to access an explicit element. +type SetNestedAttribute struct { + // NestedObject is the underlying object that contains nested attributes. + // This field must be set. + // + // Nested attributes that contain a dynamic type (i.e. DynamicAttribute) are not supported. + // If underlying dynamic values are required, replace this attribute definition with + // DynamicAttribute instead. + NestedObject NestedAttributeObject + + // CustomType enables the use of a custom attribute type in place of the + // default types.SetType of types.ObjectType. When retrieving data, the + // basetypes.SetValuable associated with this custom type must be used in + // place of types.Set. + CustomType basetypes.SetTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Set +} + +// ApplyTerraform5AttributePathStep returns the Attributes field value if step +// is ElementKeyValue, otherwise returns an error. +func (a SetNestedAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + _, ok := step.(tftypes.ElementKeyValue) + + if !ok { + return nil, fmt.Errorf("cannot apply step %T to SetNestedAttribute", step) + } + + return a.NestedObject, nil +} + +// Equal returns true if the given Attribute is a SetNestedAttribute +// and all fields are equal. +func (a SetNestedAttribute) Equal(o fwschema.Attribute) bool { + other, ok := o.(SetNestedAttribute) + + if !ok { + return false + } + + return fwschema.NestedAttributesEqual(a, other) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a SetNestedAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a SetNestedAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a SetNestedAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetNestedObject returns the NestedObject field value. +func (a SetNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { + return a.NestedObject +} + +// GetNestingMode always returns NestingModeSet. +func (a SetNestedAttribute) GetNestingMode() fwschema.NestingMode { + return fwschema.NestingModeSet +} + +// GetType returns SetType of ObjectType or CustomType. +func (a SetNestedAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.SetType{ + ElemType: a.NestedObject.Type(), + } +} + +// IsComputed returns the Computed field value. +func (a SetNestedAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a SetNestedAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a SetNestedAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a SetNestedAttribute) IsSensitive() bool { + return a.Sensitive +} + +// SetValidators returns the Validators field value. +func (a SetNestedAttribute) SetValidators() []validator.Set { + return a.Validators +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC and +// should never include false positives. +func (a SetNestedAttribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if a.CustomType == nil && fwtype.ContainsCollectionWithDynamic(a.GetType()) { + resp.Diagnostics.Append(fwtype.AttributeCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_nested_block.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_nested_block.go new file mode 100644 index 000000000000..085163f373d9 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/set_nested_block.go @@ -0,0 +1,205 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Block = SetNestedBlock{} + _ fwschema.BlockWithValidateImplementation = SetNestedBlock{} + _ fwxschema.BlockWithSetValidators = SetNestedBlock{} +) + +// SetNestedBlock represents a block that is a set of objects where +// the object attributes can be fully defined, including further attributes +// or blocks. When retrieving the value for this block, use types.Set +// as the value type unless the CustomType field is set. The NestedObject field +// must be set. +// +// Prefer SetNestedAttribute over SetNestedBlock if the provider is +// using protocol version 6. Nested attributes allow practitioners to configure +// values directly with expressions. +// +// Terraform configurations configure this block repeatedly using curly brace +// syntax without an equals (=) sign or [Dynamic Block Expressions]. +// +// # set of blocks with two elements +// example_block { +// nested_attribute = #... +// } +// example_block { +// nested_attribute = #... +// } +// +// Terraform configurations reference this block using expressions that +// accept a set of objects or an element directly via square brace 0-based +// index syntax: +// +// # first known object +// .example_block[0] +// # first known object nested_attribute value +// .example_block[0].nested_attribute +// +// [Dynamic Block Expressions]: https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks +type SetNestedBlock struct { + // NestedObject is the underlying object that contains nested attributes or + // blocks. This field must be set. + // + // Nested attributes that contain a dynamic type (i.e. DynamicAttribute) are not supported. + // If underlying dynamic values are required, replace this block definition with + // a DynamicAttribute. + NestedObject NestedBlockObject + + // CustomType enables the use of a custom attribute type in place of the + // default types.SetType of types.ObjectType. When retrieving data, the + // basetypes.SetValuable associated with this custom type must be used in + // place of types.Set. + CustomType basetypes.SetTypable + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Set +} + +// ApplyTerraform5AttributePathStep returns the NestedObject field value if step +// is ElementKeyValue, otherwise returns an error. +func (b SetNestedBlock) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + _, ok := step.(tftypes.ElementKeyValue) + + if !ok { + return nil, fmt.Errorf("cannot apply step %T to SetNestedBlock", step) + } + + return b.NestedObject, nil +} + +// Equal returns true if the given Block is SetNestedBlock +// and all fields are equal. +func (b SetNestedBlock) Equal(o fwschema.Block) bool { + if _, ok := o.(SetNestedBlock); !ok { + return false + } + + return fwschema.BlocksEqual(b, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (b SetNestedBlock) GetDeprecationMessage() string { + return b.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (b SetNestedBlock) GetDescription() string { + return b.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (b SetNestedBlock) GetMarkdownDescription() string { + return b.MarkdownDescription +} + +// GetNestedObject returns the NestedObject field value. +func (b SetNestedBlock) GetNestedObject() fwschema.NestedBlockObject { + return b.NestedObject +} + +// GetNestingMode always returns BlockNestingModeSet. +func (b SetNestedBlock) GetNestingMode() fwschema.BlockNestingMode { + return fwschema.BlockNestingModeSet +} + +// SetValidators returns the Validators field value. +func (b SetNestedBlock) SetValidators() []validator.Set { + return b.Validators +} + +// Type returns SetType of ObjectType or CustomType. +func (b SetNestedBlock) Type() attr.Type { + if b.CustomType != nil { + return b.CustomType + } + + return types.SetType{ + ElemType: b.NestedObject.Type(), + } +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the block to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC and +// should never include false positives. +func (b SetNestedBlock) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if b.CustomType == nil && fwtype.ContainsCollectionWithDynamic(b.Type()) { + resp.Diagnostics.Append(fwtype.BlockCollectionWithDynamicTypeDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/single_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/single_nested_attribute.go new file mode 100644 index 000000000000..a57db9c6565e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/single_nested_attribute.go @@ -0,0 +1,244 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "fmt" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ NestedAttribute = SingleNestedAttribute{} + _ fwxschema.AttributeWithObjectValidators = SingleNestedAttribute{} +) + +// SingleNestedAttribute represents an attribute that is a single object where +// the object attributes can be fully defined, including further nested +// attributes. When retrieving the value for this attribute, use types.Object +// as the value type unless the CustomType field is set. The Attributes field +// must be set. Nested attributes are only compatible with protocol version 6. +// +// Use ObjectAttribute if the underlying attributes do not require definition +// beyond type information. +// +// Terraform configurations configure this attribute using expressions that +// return an object or directly via curly brace syntax. +// +// # single object +// example_attribute = { +// nested_attribute = #... +// } +// +// Terraform configurations reference this attribute using expressions that +// accept an object or an attribute name directly via period syntax: +// +// # object nested_attribute value +// .example_attribute.nested_attribute +type SingleNestedAttribute struct { + // Attributes is the mapping of underlying attribute names to attribute + // definitions. This field must be set. + Attributes map[string]Attribute + + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.ObjectType. When retrieving data, the basetypes.ObjectValuable + // associated with this custom type must be used in place of types.Object. + CustomType basetypes.ObjectTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Object +} + +// ApplyTerraform5AttributePathStep returns the Attributes field value if step +// is AttributeName, otherwise returns an error. +func (a SingleNestedAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + name, ok := step.(tftypes.AttributeName) + + if !ok { + return nil, fmt.Errorf("cannot apply step %T to SingleNestedAttribute", step) + } + + attribute, ok := a.Attributes[string(name)] + + if !ok { + return nil, fmt.Errorf("no attribute %q on SingleNestedAttribute", name) + } + + return attribute, nil +} + +// Equal returns true if the given Attribute is a SingleNestedAttribute +// and all fields are equal. +func (a SingleNestedAttribute) Equal(o fwschema.Attribute) bool { + other, ok := o.(SingleNestedAttribute) + + if !ok { + return false + } + + return fwschema.NestedAttributesEqual(a, other) +} + +// GetAttributes returns the Attributes field value. +func (a SingleNestedAttribute) GetAttributes() fwschema.UnderlyingAttributes { + return schemaAttributes(a.Attributes) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a SingleNestedAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a SingleNestedAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a SingleNestedAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetNestedObject returns a generated NestedAttributeObject from the +// Attributes, CustomType, and Validators field values. +func (a SingleNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { + return NestedAttributeObject{ + Attributes: a.Attributes, + CustomType: a.CustomType, + Validators: a.Validators, + } +} + +// GetNestingMode always returns NestingModeSingle. +func (a SingleNestedAttribute) GetNestingMode() fwschema.NestingMode { + return fwschema.NestingModeSingle +} + +// GetType returns ListType of ObjectType or CustomType. +func (a SingleNestedAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + attrTypes := make(map[string]attr.Type, len(a.Attributes)) + + for name, attribute := range a.Attributes { + attrTypes[name] = attribute.GetType() + } + + return types.ObjectType{ + AttrTypes: attrTypes, + } +} + +// IsComputed returns the Computed field value. +func (a SingleNestedAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a SingleNestedAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a SingleNestedAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a SingleNestedAttribute) IsSensitive() bool { + return a.Sensitive +} + +// ObjectValidators returns the Validators field value. +func (a SingleNestedAttribute) ObjectValidators() []validator.Object { + return a.Validators +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/single_nested_block.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/single_nested_block.go new file mode 100644 index 000000000000..926825a039ab --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/single_nested_block.go @@ -0,0 +1,213 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Block = SingleNestedBlock{} + _ fwxschema.BlockWithObjectValidators = SingleNestedBlock{} +) + +// SingleNestedBlock represents a block that is a single object where +// the object attributes can be fully defined, including further attributes +// or blocks. When retrieving the value for this block, use types.Object +// as the value type unless the CustomType field is set. +// +// Prefer SingleNestedAttribute over SingleNestedBlock if the provider is +// using protocol version 6. Nested attributes allow practitioners to configure +// values directly with expressions. +// +// Terraform configurations configure this block only once using curly brace +// syntax without an equals (=) sign or [Dynamic Block Expressions]. +// +// # single block +// example_block { +// nested_attribute = #... +// } +// +// Terraform configurations reference this block using expressions that +// accept an object or an attribute name directly via period syntax: +// +// # object nested_attribute value +// .example_block.nested_attribute +// +// [Dynamic Block Expressions]: https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks +type SingleNestedBlock struct { + // Attributes is the mapping of underlying attribute names to attribute + // definitions. + // + // Names must only contain lowercase letters, numbers, and underscores. + // Names must not collide with any Blocks names. + Attributes map[string]Attribute + + // Blocks is the mapping of underlying block names to block definitions. + // + // Names must only contain lowercase letters, numbers, and underscores. + // Names must not collide with any Attributes names. + Blocks map[string]Block + + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.ObjectType. When retrieving data, the basetypes.ObjectValuable + // associated with this custom type must be used in place of types.Object. + CustomType basetypes.ObjectTypable + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Object +} + +// ApplyTerraform5AttributePathStep returns the Attributes field value if step +// is AttributeName, otherwise returns an error. +func (b SingleNestedBlock) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + name, ok := step.(tftypes.AttributeName) + + if !ok { + return nil, fmt.Errorf("cannot apply step %T to SingleNestedBlock", step) + } + + if attribute, ok := b.Attributes[string(name)]; ok { + return attribute, nil + } + + if block, ok := b.Blocks[string(name)]; ok { + return block, nil + } + + return nil, fmt.Errorf("no attribute or block %q on SingleNestedBlock", name) +} + +// Equal returns true if the given Attribute is b SingleNestedBlock +// and all fields are equal. +func (b SingleNestedBlock) Equal(o fwschema.Block) bool { + if _, ok := o.(SingleNestedBlock); !ok { + return false + } + + return fwschema.BlocksEqual(b, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (b SingleNestedBlock) GetDeprecationMessage() string { + return b.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (b SingleNestedBlock) GetDescription() string { + return b.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (b SingleNestedBlock) GetMarkdownDescription() string { + return b.MarkdownDescription +} + +// GetNestedObject returns a generated NestedBlockObject from the +// Attributes, CustomType, and Validators field values. +func (b SingleNestedBlock) GetNestedObject() fwschema.NestedBlockObject { + return NestedBlockObject{ + Attributes: b.Attributes, + Blocks: b.Blocks, + CustomType: b.CustomType, + Validators: b.Validators, + } +} + +// GetNestingMode always returns BlockNestingModeSingle. +func (b SingleNestedBlock) GetNestingMode() fwschema.BlockNestingMode { + return fwschema.BlockNestingModeSingle +} + +// ObjectValidators returns the Validators field value. +func (b SingleNestedBlock) ObjectValidators() []validator.Object { + return b.Validators +} + +// Type returns ObjectType or CustomType. +func (b SingleNestedBlock) Type() attr.Type { + if b.CustomType != nil { + return b.CustomType + } + + attrTypes := make(map[string]attr.Type, len(b.Attributes)+len(b.Blocks)) + + for name, attribute := range b.Attributes { + attrTypes[name] = attribute.GetType() + } + + for name, block := range b.Blocks { + attrTypes[name] = block.Type() + } + + return types.ObjectType{ + AttrTypes: attrTypes, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/string_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/string_attribute.go new file mode 100644 index 000000000000..1b5c7db22d68 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/schema/string_attribute.go @@ -0,0 +1,185 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = StringAttribute{} + _ fwxschema.AttributeWithStringValidators = StringAttribute{} +) + +// StringAttribute represents a schema attribute that is a string. When +// retrieving the value for this attribute, use types.String as the value type +// unless the CustomType field is set. +// +// Terraform configurations configure this attribute using expressions that +// return a string or directly via double quote syntax. +// +// example_attribute = "value" +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type StringAttribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.StringType. When retrieving data, the basetypes.StringValuable + // associated with this custom type must be used in place of types.String. + CustomType basetypes.StringTypable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.String +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a StringAttribute. +func (a StringAttribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a StringAttribute +// and all fields are equal. +func (a StringAttribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(StringAttribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a StringAttribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a StringAttribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a StringAttribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.StringType or the CustomType field value if defined. +func (a StringAttribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.StringType +} + +// IsComputed returns the Computed field value. +func (a StringAttribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a StringAttribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a StringAttribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a StringAttribute) IsSensitive() bool { + return a.Sensitive +} + +// StringValidators returns the Validators field value. +func (a StringAttribute) StringValidators() []validator.String { + return a.Validators +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/validate_config.go b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/validate_config.go new file mode 100644 index 000000000000..ace26d48ef6b --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/ephemeral/validate_config.go @@ -0,0 +1,32 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +package ephemeral + +import ( + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" +) + +// ValidateConfigRequest represents a request to validate the +// configuration of an ephemeral resource. An instance of this request struct is +// supplied as an argument to the EphemeralResource ValidateConfig receiver method +// or automatically passed through to each ConfigValidator. +type ValidateConfigRequest struct { + // Config is the configuration the user supplied for the ephemeral resource. + // + // This configuration may contain unknown values if a user uses + // interpolation or other functionality that would prevent Terraform + // from knowing the value at request time. + Config tfsdk.Config +} + +// ValidateConfigResponse represents a response to a +// ValidateConfigRequest. An instance of this response struct is +// supplied as an argument to the EphemeralResource ValidateConfig receiver method +// or automatically passed through to each ConfigValidator. +type ValidateConfigResponse struct { + // Diagnostics report errors or warnings related to validating the ephemeral resource + // configuration. An empty slice indicates success, with no warnings or + // errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/bool_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/bool_parameter.go index 67929c31f167..7cc96b50136d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/bool_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/bool_parameter.go @@ -4,13 +4,17 @@ package function import ( + "context" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" ) // Ensure the implementation satisifies the desired interfaces. var _ Parameter = BoolParameter{} var _ ParameterWithBoolValidators = BoolParameter{} +var _ fwfunction.ParameterWithValidateImplementation = BoolParameter{} // BoolParameter represents a function parameter that is a boolean. // @@ -115,3 +119,9 @@ func (p BoolParameter) GetType() attr.Type { return basetypes.BoolType{} } + +func (p BoolParameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/bool_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/bool_return.go index 0410b38ee83e..03fb0f6127e9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/bool_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/bool_return.go @@ -19,6 +19,8 @@ var _ Return = BoolReturn{} // // - If CustomType is set, use its associated value type. // - Otherwise, use [types.Bool], *bool, or bool. +// +// Return documentation is expected in the function [Definition] documentation. type BoolReturn struct { // CustomType enables the use of a custom data type in place of the // default [basetypes.BoolType]. When setting data, the diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/definition.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/definition.go index aafb8d02b666..ebea48bd1b59 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/definition.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/definition.go @@ -81,20 +81,10 @@ func (d Definition) ValidateImplementation(ctx context.Context, req DefinitionVa paramNames := make(map[string]int, len(d.Parameters)) for pos, param := range d.Parameters { parameterPosition := int64(pos) - name := param.GetName() - // If name is not set, add an error diagnostic, parameter names are mandatory. - if name == "" { - diags.AddError( - "Invalid Function Definition", - "When validating the function definition, an implementation issue was found. "+ - "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ - fmt.Sprintf("Function %q - Parameter at position %d does not have a name", req.FuncName, pos), - ) - } if paramWithValidateImplementation, ok := param.(fwfunction.ParameterWithValidateImplementation); ok { req := fwfunction.ValidateParameterImplementationRequest{ - Name: name, + FunctionName: req.FuncName, ParameterPosition: ¶meterPosition, } resp := &fwfunction.ValidateParameterImplementationResponse{} @@ -104,7 +94,9 @@ func (d Definition) ValidateImplementation(ctx context.Context, req DefinitionVa diags.Append(resp.Diagnostics...) } + name := param.GetName() conflictPos, exists := paramNames[name] + if exists && name != "" { diags.AddError( "Invalid Function Definition", @@ -120,20 +112,9 @@ func (d Definition) ValidateImplementation(ctx context.Context, req DefinitionVa } if d.VariadicParameter != nil { - name := d.VariadicParameter.GetName() - // If name is not set, add an error diagnostic, parameter names are mandatory. - if name == "" { - diags.AddError( - "Invalid Function Definition", - "When validating the function definition, an implementation issue was found. "+ - "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ - fmt.Sprintf("Function %q - The variadic parameter does not have a name", req.FuncName), - ) - } - if paramWithValidateImplementation, ok := d.VariadicParameter.(fwfunction.ParameterWithValidateImplementation); ok { req := fwfunction.ValidateParameterImplementationRequest{ - Name: name, + FunctionName: req.FuncName, } resp := &fwfunction.ValidateParameterImplementationResponse{} @@ -142,7 +123,9 @@ func (d Definition) ValidateImplementation(ctx context.Context, req DefinitionVa diags.Append(resp.Diagnostics...) } + name := d.VariadicParameter.GetName() conflictPos, exists := paramNames[name] + if exists && name != "" { diags.AddError( "Invalid Function Definition", diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/dynamic_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/dynamic_parameter.go index cbf2ea33e65e..d9303f418a43 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/dynamic_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/dynamic_parameter.go @@ -4,13 +4,17 @@ package function import ( + "context" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" ) // Ensure the implementation satisifies the desired interfaces. var _ Parameter = DynamicParameter{} var _ ParameterWithDynamicValidators = DynamicParameter{} +var _ fwfunction.ParameterWithValidateImplementation = DynamicParameter{} // DynamicParameter represents a function parameter that is a dynamic, rather // than a static type. Static types are always preferable over dynamic @@ -110,3 +114,9 @@ func (p DynamicParameter) GetType() attr.Type { return basetypes.DynamicType{} } + +func (p DynamicParameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/dynamic_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/dynamic_return.go index bab38f8574d2..0e21ac5bc1dc 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/dynamic_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/dynamic_return.go @@ -22,6 +22,8 @@ var _ Return = DynamicReturn{} // // - If CustomType is set, use its associated value type. // - Otherwise, use the [types.Dynamic] value type. +// +// Return documentation is expected in the function [Definition] documentation. type DynamicReturn struct { // CustomType enables the use of a custom data type in place of the // default [basetypes.DynamicType]. When setting data, the diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_parameter.go new file mode 100644 index 000000000000..cb1a1b9173e7 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_parameter.go @@ -0,0 +1,124 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package function + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var _ Parameter = Float32Parameter{} +var _ ParameterWithFloat32Validators = Float32Parameter{} +var _ fwfunction.ParameterWithValidateImplementation = Float32Parameter{} + +// Float32Parameter represents a function parameter that is a 32-bit floating +// point number. +// +// When retrieving the argument value for this parameter: +// +// - If CustomType is set, use its associated value type. +// - If AllowUnknownValues is enabled, you must use the [types.Float32] value +// type. +// - If AllowNullValue is enabled, you must use [types.Float32] or *float32 +// value types. +// - Otherwise, use [types.Float32] or *float32, or float32 value types. +// +// Terraform configurations set this parameter's argument data using expressions +// that return a number or directly via numeric syntax. +type Float32Parameter struct { + // AllowNullValue when enabled denotes that a null argument value can be + // passed to the function. When disabled, Terraform returns an error if the + // argument value is null. + AllowNullValue bool + + // AllowUnknownValues when enabled denotes that an unknown argument value + // can be passed to the function. When disabled, Terraform skips the + // function call entirely and assumes an unknown value result from the + // function. + AllowUnknownValues bool + + // CustomType enables the use of a custom data type in place of the + // default [basetypes.Float32Type]. When retrieving data, the + // [basetypes.Float32Valuable] implementation associated with this custom + // type must be used in place of [types.Float32]. + CustomType basetypes.Float32Typable + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this parameter is, + // what it is for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this parameter is, what it is for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // Name is a short usage name for the parameter, such as "data". This name + // is used in documentation, such as generating a function signature, + // however its usage may be extended in the future. + // + // If no name is provided, this will default to "param" with a suffix of the + // position the parameter is in the function definition. ("param1", "param2", etc.) + // If the parameter is variadic, the default name will be "varparam". + // + // This must be a valid Terraform identifier, such as starting with an + // alphabetical character and followed by alphanumeric or underscore + // characters. + Name string + + // Validators is a list of float32 validators that should be applied to the + // parameter. + Validators []Float32ParameterValidator +} + +// GetValidators returns the list of validators for the parameter. +func (p Float32Parameter) GetValidators() []Float32ParameterValidator { + return p.Validators +} + +// GetAllowNullValue returns if the parameter accepts a null value. +func (p Float32Parameter) GetAllowNullValue() bool { + return p.AllowNullValue +} + +// GetAllowUnknownValues returns if the parameter accepts an unknown value. +func (p Float32Parameter) GetAllowUnknownValues() bool { + return p.AllowUnknownValues +} + +// GetDescription returns the parameter plaintext description. +func (p Float32Parameter) GetDescription() string { + return p.Description +} + +// GetMarkdownDescription returns the parameter Markdown description. +func (p Float32Parameter) GetMarkdownDescription() string { + return p.MarkdownDescription +} + +// GetName returns the parameter name. +func (p Float32Parameter) GetName() string { + return p.Name +} + +// GetType returns the parameter data type. +func (p Float32Parameter) GetType() attr.Type { + if p.CustomType != nil { + return p.CustomType + } + + return basetypes.Float32Type{} +} + +func (p Float32Parameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_parameter_validator.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_parameter_validator.go new file mode 100644 index 000000000000..3710ad974eb4 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_parameter_validator.go @@ -0,0 +1,33 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package function + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/types" +) + +// Float32ParameterValidator is a function validator for types.Float32 parameters. +type Float32ParameterValidator interface { + + // ValidateParameterFloat32 performs the validation. + ValidateParameterFloat32(context.Context, Float32ParameterValidatorRequest, *Float32ParameterValidatorResponse) +} + +// Float32ParameterValidatorRequest is a request for types.Float32 schema validation. +type Float32ParameterValidatorRequest struct { + // ArgumentPosition contains the position of the argument for validation. + // Use this position for any response diagnostics. + ArgumentPosition int64 + + // Value contains the value of the argument for validation. + Value types.Float32 +} + +// Float32ParameterValidatorResponse is a response to a Float32ParameterValidatorRequest. +type Float32ParameterValidatorResponse struct { + // Error is a function error generated during validation of the Value. + Error *FuncError +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_return.go new file mode 100644 index 000000000000..44401f12456a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float32_return.go @@ -0,0 +1,53 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package function + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var _ Return = Float32Return{} + +// Float32Return represents a function return that is a 32-bit floating point +// number. +// +// When setting the value for this return: +// +// - If CustomType is set, use its associated value type. +// - Otherwise, use [types.Float32], *float32, or float32. +// +// Return documentation is expected in the function [Definition] documentation. +type Float32Return struct { + // CustomType enables the use of a custom data type in place of the + // default [basetypes.Float32Type]. When setting data, the + // [basetypes.Float32Valuable] implementation associated with this custom + // type must be used in place of [types.Float32]. + CustomType basetypes.Float32Typable +} + +// GetType returns the return data type. +func (r Float32Return) GetType() attr.Type { + if r.CustomType != nil { + return r.CustomType + } + + return basetypes.Float32Type{} +} + +// NewResultData returns a new result data based on the type. +func (r Float32Return) NewResultData(ctx context.Context) (ResultData, *FuncError) { + value := basetypes.NewFloat32Unknown() + + if r.CustomType == nil { + return NewResultData(value), nil + } + + valuable, diags := r.CustomType.ValueFromFloat32(ctx, value) + + return NewResultData(valuable), FuncErrorFromDiags(ctx, diags) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/float64_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float64_parameter.go index 11e31c7ef61d..54706cec660d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/float64_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float64_parameter.go @@ -4,13 +4,17 @@ package function import ( + "context" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" ) // Ensure the implementation satisifies the desired interfaces. var _ Parameter = Float64Parameter{} var _ ParameterWithFloat64Validators = Float64Parameter{} +var _ fwfunction.ParameterWithValidateImplementation = Float64Parameter{} // Float64Parameter represents a function parameter that is a 64-bit floating // point number. @@ -112,3 +116,9 @@ func (p Float64Parameter) GetType() attr.Type { return basetypes.Float64Type{} } + +func (p Float64Parameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/float64_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float64_return.go index e653c2d3aee3..09510a27037b 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/float64_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/float64_return.go @@ -20,6 +20,8 @@ var _ Return = Float64Return{} // // - If CustomType is set, use its associated value type. // - Otherwise, use [types.Float64], *float64, or float64. +// +// Return documentation is expected in the function [Definition] documentation. type Float64Return struct { // CustomType enables the use of a custom data type in place of the // default [basetypes.Float64Type]. When setting data, the diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_parameter.go new file mode 100644 index 000000000000..3707f43144a6 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_parameter.go @@ -0,0 +1,123 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package function + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var _ Parameter = Int32Parameter{} +var _ ParameterWithInt32Validators = Int32Parameter{} +var _ fwfunction.ParameterWithValidateImplementation = Int32Parameter{} + +// Int32Parameter represents a function parameter that is a 32-bit integer. +// +// When retrieving the argument value for this parameter: +// +// - If CustomType is set, use its associated value type. +// - If AllowUnknownValues is enabled, you must use the [types.Int32] value +// type. +// - If AllowNullValue is enabled, you must use [types.Int32] or *int32 +// value types. +// - Otherwise, use [types.Int32] or *int32, or int32 value types. +// +// Terraform configurations set this parameter's argument data using expressions +// that return a number or directly via numeric syntax. +type Int32Parameter struct { + // AllowNullValue when enabled denotes that a null argument value can be + // passed to the function. When disabled, Terraform returns an error if the + // argument value is null. + AllowNullValue bool + + // AllowUnknownValues when enabled denotes that an unknown argument value + // can be passed to the function. When disabled, Terraform skips the + // function call entirely and assumes an unknown value result from the + // function. + AllowUnknownValues bool + + // CustomType enables the use of a custom data type in place of the + // default [basetypes.Int32Type]. When retrieving data, the + // [basetypes.Int32Valuable] implementation associated with this custom + // type must be used in place of [types.Int32]. + CustomType basetypes.Int32Typable + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this parameter is, + // what it is for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this parameter is, what it is for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // Name is a short usage name for the parameter, such as "data". This name + // is used in documentation, such as generating a function signature, + // however its usage may be extended in the future. + // + // If no name is provided, this will default to "param" with a suffix of the + // position the parameter is in the function definition. ("param1", "param2", etc.) + // If the parameter is variadic, the default name will be "varparam". + // + // This must be a valid Terraform identifier, such as starting with an + // alphabetical character and followed by alphanumeric or underscore + // characters. + Name string + + // Validators is a list of int32 validators that should be applied to the + // parameter. + Validators []Int32ParameterValidator +} + +// GetValidators returns the list of validators for the parameter. +func (p Int32Parameter) GetValidators() []Int32ParameterValidator { + return p.Validators +} + +// GetAllowNullValue returns if the parameter accepts a null value. +func (p Int32Parameter) GetAllowNullValue() bool { + return p.AllowNullValue +} + +// GetAllowUnknownValues returns if the parameter accepts an unknown value. +func (p Int32Parameter) GetAllowUnknownValues() bool { + return p.AllowUnknownValues +} + +// GetDescription returns the parameter plaintext description. +func (p Int32Parameter) GetDescription() string { + return p.Description +} + +// GetMarkdownDescription returns the parameter Markdown description. +func (p Int32Parameter) GetMarkdownDescription() string { + return p.MarkdownDescription +} + +// GetName returns the parameter name. +func (p Int32Parameter) GetName() string { + return p.Name +} + +// GetType returns the parameter data type. +func (p Int32Parameter) GetType() attr.Type { + if p.CustomType != nil { + return p.CustomType + } + + return basetypes.Int32Type{} +} + +func (p Int32Parameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_parameter_validator.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_parameter_validator.go new file mode 100644 index 000000000000..a5972fdef6c9 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_parameter_validator.go @@ -0,0 +1,33 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package function + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/types" +) + +// Int32ParameterValidator is a function validator for types.Int32 parameters. +type Int32ParameterValidator interface { + + // ValidateParameterInt32 performs the validation. + ValidateParameterInt32(context.Context, Int32ParameterValidatorRequest, *Int32ParameterValidatorResponse) +} + +// Int32ParameterValidatorRequest is a request for types.Int32 schema validation. +type Int32ParameterValidatorRequest struct { + // ArgumentPosition contains the position of the argument for validation. + // Use this position for any response diagnostics. + ArgumentPosition int64 + + // Value contains the value of the argument for validation. + Value types.Int32 +} + +// Int32ParameterValidatorResponse is a response to a Int32ParameterValidatorRequest. +type Int32ParameterValidatorResponse struct { + // Error is a function error generated during validation of the Value. + Error *FuncError +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_return.go new file mode 100644 index 000000000000..aecfe7c916c8 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int32_return.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package function + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var _ Return = Int32Return{} + +// Int32Return represents a function return that is a 32-bit integer number. +// +// When setting the value for this return: +// +// - If CustomType is set, use its associated value type. +// - Otherwise, use [types.Int32], *int32, or int32. +// +// Return documentation is expected in the function [Definition] documentation. +type Int32Return struct { + // CustomType enables the use of a custom data type in place of the + // default [basetypes.Int32Type]. When setting data, the + // [basetypes.Int32Valuable] implementation associated with this custom + // type must be used in place of [types.Int32]. + CustomType basetypes.Int32Typable +} + +// GetType returns the return data type. +func (r Int32Return) GetType() attr.Type { + if r.CustomType != nil { + return r.CustomType + } + + return basetypes.Int32Type{} +} + +// NewResultData returns a new result data based on the type. +func (r Int32Return) NewResultData(ctx context.Context) (ResultData, *FuncError) { + value := basetypes.NewInt32Unknown() + + if r.CustomType == nil { + return NewResultData(value), nil + } + + valuable, diags := r.CustomType.ValueFromInt32(ctx, value) + + return NewResultData(valuable), FuncErrorFromDiags(ctx, diags) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/int64_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int64_parameter.go index 15a9700a7364..0cdbba43e000 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/int64_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int64_parameter.go @@ -4,13 +4,17 @@ package function import ( + "context" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" ) // Ensure the implementation satisifies the desired interfaces. var _ Parameter = Int64Parameter{} var _ ParameterWithInt64Validators = Int64Parameter{} +var _ fwfunction.ParameterWithValidateImplementation = Int64Parameter{} // Int64Parameter represents a function parameter that is a 64-bit integer. // @@ -111,3 +115,9 @@ func (p Int64Parameter) GetType() attr.Type { return basetypes.Int64Type{} } + +func (p Int64Parameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/int64_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int64_return.go index b7345b652c08..e6ebf222194d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/int64_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/int64_return.go @@ -19,6 +19,8 @@ var _ Return = Int64Return{} // // - If CustomType is set, use its associated value type. // - Otherwise, use [types.Int64], *int64, or int64. +// +// Return documentation is expected in the function [Definition] documentation. type Int64Return struct { // CustomType enables the use of a custom data type in place of the // default [basetypes.Int64Type]. When setting data, the diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/list_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/list_parameter.go index cdca5a280166..613010b1b2ab 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/list_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/list_parameter.go @@ -7,7 +7,6 @@ import ( "context" "github.com/hashicorp/terraform-plugin-framework/attr" - "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" @@ -135,14 +134,21 @@ func (p ListParameter) GetType() attr.Type { // errors or panics. This logic runs during the GetProviderSchema RPC and // should never include false positives. func (p ListParameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { - if p.CustomType == nil && fwtype.ContainsCollectionWithDynamic(p.GetType()) { - var diag diag.Diagnostic - if req.ParameterPosition != nil { - diag = fwtype.ParameterCollectionWithDynamicTypeDiag(*req.ParameterPosition, req.Name) - } else { - diag = fwtype.VariadicParameterCollectionWithDynamicTypeDiag(req.Name) + if p.CustomType == nil { + if fwtype.ContainsCollectionWithDynamic(p.GetType()) { + if req.ParameterPosition != nil { + resp.Diagnostics.Append(fwtype.ParameterCollectionWithDynamicTypeDiag(*req.ParameterPosition, p.GetName())) + } else { + resp.Diagnostics.Append(fwtype.VariadicParameterCollectionWithDynamicTypeDiag(p.GetName())) + } } - resp.Diagnostics.Append(diag) + if fwtype.ContainsMissingUnderlyingType(p.GetType()) { + resp.Diagnostics.Append(fwtype.ParameterMissingUnderlyingTypeDiag(p.GetName(), req.ParameterPosition)) + } + } + + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/list_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/list_return.go index 07eac8ad831e..def79f37263a 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/list_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/list_return.go @@ -26,6 +26,8 @@ var ( // - If CustomType is set, use its associated value type. // - Otherwise, use [types.List] or a Go slice value type compatible with the // element type. +// +// Return documentation is expected in the function [Definition] documentation. type ListReturn struct { // ElementType is the type for all elements of the list. This field must be // set. @@ -71,7 +73,13 @@ func (r ListReturn) NewResultData(ctx context.Context) (ResultData, *FuncError) // errors or panics. This logic runs during the GetProviderSchema RPC and // should never include false positives. func (p ListReturn) ValidateImplementation(ctx context.Context, req fwfunction.ValidateReturnImplementationRequest, resp *fwfunction.ValidateReturnImplementationResponse) { - if p.CustomType == nil && fwtype.ContainsCollectionWithDynamic(p.GetType()) { - resp.Diagnostics.Append(fwtype.ReturnCollectionWithDynamicTypeDiag()) + if p.CustomType == nil { + if fwtype.ContainsCollectionWithDynamic(p.GetType()) { + resp.Diagnostics.Append(fwtype.ReturnCollectionWithDynamicTypeDiag()) + } + + if fwtype.ContainsMissingUnderlyingType(p.GetType()) { + resp.Diagnostics.Append(fwtype.ReturnMissingUnderlyingTypeDiag()) + } } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/map_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/map_parameter.go index 626781352502..75e6b4f926c8 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/map_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/map_parameter.go @@ -7,7 +7,6 @@ import ( "context" "github.com/hashicorp/terraform-plugin-framework/attr" - "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" @@ -135,14 +134,21 @@ func (p MapParameter) GetType() attr.Type { // errors or panics. This logic runs during the GetProviderSchema RPC and // should never include false positives. func (p MapParameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { - if p.CustomType == nil && fwtype.ContainsCollectionWithDynamic(p.GetType()) { - var diag diag.Diagnostic - if req.ParameterPosition != nil { - diag = fwtype.ParameterCollectionWithDynamicTypeDiag(*req.ParameterPosition, req.Name) - } else { - diag = fwtype.VariadicParameterCollectionWithDynamicTypeDiag(req.Name) + if p.CustomType == nil { + if fwtype.ContainsCollectionWithDynamic(p.GetType()) { + if req.ParameterPosition != nil { + resp.Diagnostics.Append(fwtype.ParameterCollectionWithDynamicTypeDiag(*req.ParameterPosition, p.GetName())) + } else { + resp.Diagnostics.Append(fwtype.VariadicParameterCollectionWithDynamicTypeDiag(p.GetName())) + } } - resp.Diagnostics.Append(diag) + if fwtype.ContainsMissingUnderlyingType(p.GetType()) { + resp.Diagnostics.Append(fwtype.ParameterMissingUnderlyingTypeDiag(p.GetName(), req.ParameterPosition)) + } + } + + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/map_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/map_return.go index 5f83c69c3b45..525daf16dcb7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/map_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/map_return.go @@ -26,6 +26,8 @@ var ( // - If CustomType is set, use its associated value type. // - Otherwise, use [types.Map] or a Go map value type compatible with the // element type. +// +// Return documentation is expected in the function [Definition] documentation. type MapReturn struct { // ElementType is the type for all elements of the map. This field must be // set. @@ -71,7 +73,13 @@ func (r MapReturn) NewResultData(ctx context.Context) (ResultData, *FuncError) { // errors or panics. This logic runs during the GetProviderSchema RPC and // should never include false positives. func (p MapReturn) ValidateImplementation(ctx context.Context, req fwfunction.ValidateReturnImplementationRequest, resp *fwfunction.ValidateReturnImplementationResponse) { - if p.CustomType == nil && fwtype.ContainsCollectionWithDynamic(p.GetType()) { - resp.Diagnostics.Append(fwtype.ReturnCollectionWithDynamicTypeDiag()) + if p.CustomType == nil { + if fwtype.ContainsCollectionWithDynamic(p.GetType()) { + resp.Diagnostics.Append(fwtype.ReturnCollectionWithDynamicTypeDiag()) + } + + if fwtype.ContainsMissingUnderlyingType(p.GetType()) { + resp.Diagnostics.Append(fwtype.ReturnMissingUnderlyingTypeDiag()) + } } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/number_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/number_parameter.go index 1114f2354309..4cd4f9be3c84 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/number_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/number_parameter.go @@ -4,13 +4,17 @@ package function import ( + "context" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" ) // Ensure the implementation satisifies the desired interfaces. var _ Parameter = NumberParameter{} var _ ParameterWithNumberValidators = NumberParameter{} +var _ fwfunction.ParameterWithValidateImplementation = NumberParameter{} // NumberParameter represents a function parameter that is a 512-bit arbitrary // precision number. @@ -110,3 +114,9 @@ func (p NumberParameter) GetType() attr.Type { return basetypes.NumberType{} } + +func (p NumberParameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/number_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/number_return.go index ad94cfead6cd..2722abe559f7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/number_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/number_return.go @@ -20,6 +20,8 @@ var _ Return = NumberReturn{} // // - If CustomType is set, use its associated value type. // - Otherwise, use [types.Number] or *big.Float. +// +// Return documentation is expected in the function [Definition] documentation. type NumberReturn struct { // CustomType enables the use of a custom data type in place of the // default [basetypes.NumberType]. When setting data, the diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/object_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/object_parameter.go index 13120c144363..a36ed87df43d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/object_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/object_parameter.go @@ -7,7 +7,6 @@ import ( "context" "github.com/hashicorp/terraform-plugin-framework/attr" - "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" @@ -137,14 +136,21 @@ func (p ObjectParameter) GetType() attr.Type { // errors or panics. This logic runs during the GetProviderSchema RPC and // should never include false positives. func (p ObjectParameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { - if p.CustomType == nil && fwtype.ContainsCollectionWithDynamic(p.GetType()) { - var diag diag.Diagnostic - if req.ParameterPosition != nil { - diag = fwtype.ParameterCollectionWithDynamicTypeDiag(*req.ParameterPosition, req.Name) - } else { - diag = fwtype.VariadicParameterCollectionWithDynamicTypeDiag(req.Name) + if p.CustomType == nil { + if fwtype.ContainsCollectionWithDynamic(p.GetType()) { + if req.ParameterPosition != nil { + resp.Diagnostics.Append(fwtype.ParameterCollectionWithDynamicTypeDiag(*req.ParameterPosition, p.GetName())) + } else { + resp.Diagnostics.Append(fwtype.VariadicParameterCollectionWithDynamicTypeDiag(p.GetName())) + } } - resp.Diagnostics.Append(diag) + if fwtype.ContainsMissingUnderlyingType(p.GetType()) { + resp.Diagnostics.Append(fwtype.ParameterMissingUnderlyingTypeDiag(p.GetName(), req.ParameterPosition)) + } + } + + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/object_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/object_return.go index 201960f959f6..8875c158a6f0 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/object_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/object_return.go @@ -22,6 +22,8 @@ var ( // attribute names to values. When setting the value for this return, use // [types.Object] or a compatible Go struct as the value type unless the // CustomType field is set. The AttributeTypes field must be set. +// +// Return documentation is expected in the function [Definition] documentation. type ObjectReturn struct { // AttributeTypes is the mapping of underlying attribute names to attribute // types. This field must be set. @@ -67,7 +69,13 @@ func (r ObjectReturn) NewResultData(ctx context.Context) (ResultData, *FuncError // errors or panics. This logic runs during the GetProviderSchema RPC and // should never include false positives. func (p ObjectReturn) ValidateImplementation(ctx context.Context, req fwfunction.ValidateReturnImplementationRequest, resp *fwfunction.ValidateReturnImplementationResponse) { - if p.CustomType == nil && fwtype.ContainsCollectionWithDynamic(p.GetType()) { - resp.Diagnostics.Append(fwtype.ReturnCollectionWithDynamicTypeDiag()) + if p.CustomType == nil { + if fwtype.ContainsCollectionWithDynamic(p.GetType()) { + resp.Diagnostics.Append(fwtype.ReturnCollectionWithDynamicTypeDiag()) + } + + if fwtype.ContainsMissingUnderlyingType(p.GetType()) { + resp.Diagnostics.Append(fwtype.ReturnMissingUnderlyingTypeDiag()) + } } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/parameter_validation.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/parameter_validation.go index df5957600a8c..cc31ae7bf227 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/parameter_validation.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/parameter_validation.go @@ -12,6 +12,15 @@ type ParameterWithBoolValidators interface { GetValidators() []BoolParameterValidator } +// ParameterWithInt32Validators is an optional interface on Parameter which +// enables Int32 validation support. +type ParameterWithInt32Validators interface { + Parameter + + // GetValidators should return a list of Int32 validators. + GetValidators() []Int32ParameterValidator +} + // ParameterWithInt64Validators is an optional interface on Parameter which // enables Int64 validation support. type ParameterWithInt64Validators interface { @@ -21,6 +30,15 @@ type ParameterWithInt64Validators interface { GetValidators() []Int64ParameterValidator } +// ParameterWithFloat32Validators is an optional interface on Parameter which +// enables Float32 validation support. +type ParameterWithFloat32Validators interface { + Parameter + + // GetValidators should return a list of Float64 validators. + GetValidators() []Float32ParameterValidator +} + // ParameterWithFloat64Validators is an optional interface on Parameter which // enables Float64 validation support. type ParameterWithFloat64Validators interface { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/set_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/set_parameter.go index 16a0c312b96c..625c7c166169 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/set_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/set_parameter.go @@ -7,7 +7,6 @@ import ( "context" "github.com/hashicorp/terraform-plugin-framework/attr" - "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/internal/fwtype" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" @@ -135,14 +134,21 @@ func (p SetParameter) GetType() attr.Type { // errors or panics. This logic runs during the GetProviderSchema RPC and // should never include false positives. func (p SetParameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { - if p.CustomType == nil && fwtype.ContainsCollectionWithDynamic(p.GetType()) { - var diag diag.Diagnostic - if req.ParameterPosition != nil { - diag = fwtype.ParameterCollectionWithDynamicTypeDiag(*req.ParameterPosition, req.Name) - } else { - diag = fwtype.VariadicParameterCollectionWithDynamicTypeDiag(req.Name) + if p.CustomType == nil { + if fwtype.ContainsCollectionWithDynamic(p.GetType()) { + if req.ParameterPosition != nil { + resp.Diagnostics.Append(fwtype.ParameterCollectionWithDynamicTypeDiag(*req.ParameterPosition, p.GetName())) + } else { + resp.Diagnostics.Append(fwtype.VariadicParameterCollectionWithDynamicTypeDiag(p.GetName())) + } } - resp.Diagnostics.Append(diag) + if fwtype.ContainsMissingUnderlyingType(p.GetType()) { + resp.Diagnostics.Append(fwtype.ParameterMissingUnderlyingTypeDiag(p.GetName(), req.ParameterPosition)) + } + } + + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/set_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/set_return.go index 2999a40675ee..57605d269612 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/set_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/set_return.go @@ -26,6 +26,8 @@ var ( // - If CustomType is set, use its associated value type. // - Otherwise, use [types.Set] or a Go slice value type compatible with the // element type. +// +// Return documentation is expected in the function [Definition] documentation. type SetReturn struct { // ElementType is the type for all elements of the set. This field must be // set. @@ -71,7 +73,13 @@ func (r SetReturn) NewResultData(ctx context.Context) (ResultData, *FuncError) { // errors or panics. This logic runs during the GetProviderSchema RPC and // should never include false positives. func (p SetReturn) ValidateImplementation(ctx context.Context, req fwfunction.ValidateReturnImplementationRequest, resp *fwfunction.ValidateReturnImplementationResponse) { - if p.CustomType == nil && fwtype.ContainsCollectionWithDynamic(p.GetType()) { - resp.Diagnostics.Append(fwtype.ReturnCollectionWithDynamicTypeDiag()) + if p.CustomType == nil { + if fwtype.ContainsCollectionWithDynamic(p.GetType()) { + resp.Diagnostics.Append(fwtype.ReturnCollectionWithDynamicTypeDiag()) + } + + if fwtype.ContainsMissingUnderlyingType(p.GetType()) { + resp.Diagnostics.Append(fwtype.ReturnMissingUnderlyingTypeDiag()) + } } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/string_parameter.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/string_parameter.go index 6e6bfe10bcef..0035a62040bf 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/string_parameter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/string_parameter.go @@ -4,13 +4,17 @@ package function import ( + "context" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwfunction" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" ) // Ensure the implementation satisifies the desired interfaces. var _ Parameter = StringParameter{} var _ ParameterWithStringValidators = StringParameter{} +var _ fwfunction.ParameterWithValidateImplementation = StringParameter{} // StringParameter represents a function parameter that is a string. // @@ -111,3 +115,9 @@ func (p StringParameter) GetType() attr.Type { return basetypes.StringType{} } + +func (p StringParameter) ValidateImplementation(ctx context.Context, req fwfunction.ValidateParameterImplementationRequest, resp *fwfunction.ValidateParameterImplementationResponse) { + if p.GetName() == "" { + resp.Diagnostics.Append(fwfunction.MissingParameterNameDiag(req.FunctionName, req.ParameterPosition)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/function/string_return.go b/vendor/github.com/hashicorp/terraform-plugin-framework/function/string_return.go index 73894b584b4a..3d9b2398fdef 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/function/string_return.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/function/string_return.go @@ -19,6 +19,8 @@ var _ Return = StringReturn{} // // - If CustomType is set, use its associated value type. // - Otherwise, use [types.String], *string, or string. +// +// Return documentation is expected in the function [Definition] documentation. type StringReturn struct { // CustomType enables the use of a custom data type in place of the // default [basetypes.StringType]. When setting data, the diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/arguments_data.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/arguments_data.go index fefd8a191eed..7c9195eaf1fc 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/arguments_data.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/arguments_data.go @@ -226,6 +226,39 @@ func ArgumentsData(ctx context.Context, arguments []*tfprotov5.DynamicValue, def )) } } + case function.ParameterWithFloat32Validators: + for _, functionValidator := range parameterWithValidators.GetValidators() { + float32Valuable, ok := attrValue.(basetypes.Float32Valuable) + if !ok { + funcError = function.ConcatFuncErrors(funcError, function.NewArgumentFuncError( + pos, + "Invalid Argument Type: "+ + "An unexpected error was encountered when converting the function argument from the protocol type. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + fmt.Sprintf("Expected basetypes.Float32Valuable at position %d", pos), + )) + + continue + } + float32Val, diags := float32Valuable.ToFloat32Value(ctx) + if diags.HasError() { + funcError = function.ConcatFuncErrors(funcError, function.FuncErrorFromDiags(ctx, diags)) + continue + } + req := function.Float32ParameterValidatorRequest{ + ArgumentPosition: pos, + Value: float32Val, + } + resp := &function.Float32ParameterValidatorResponse{} + functionValidator.ValidateParameterFloat32(ctx, req, resp) + if resp.Error != nil { + funcError = function.ConcatFuncErrors(funcError, function.NewArgumentFuncError( + pos, + resp.Error.Error(), + )) + } + } case function.ParameterWithFloat64Validators: for _, functionValidator := range parameterWithValidators.GetValidators() { float64Valuable, ok := attrValue.(basetypes.Float64Valuable) @@ -259,6 +292,39 @@ func ArgumentsData(ctx context.Context, arguments []*tfprotov5.DynamicValue, def )) } } + case function.ParameterWithInt32Validators: + for _, functionValidator := range parameterWithValidators.GetValidators() { + int32Valuable, ok := attrValue.(basetypes.Int32Valuable) + if !ok { + funcError = function.ConcatFuncErrors(funcError, function.NewArgumentFuncError( + pos, + "Invalid Argument Type: "+ + "An unexpected error was encountered when converting the function argument from the protocol type. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + fmt.Sprintf("Expected basetypes.Int32Valuable at position %d", pos), + )) + + continue + } + int32Val, diags := int32Valuable.ToInt32Value(ctx) + if diags.HasError() { + funcError = function.ConcatFuncErrors(funcError, function.FuncErrorFromDiags(ctx, diags)) + continue + } + req := function.Int32ParameterValidatorRequest{ + ArgumentPosition: pos, + Value: int32Val, + } + resp := &function.Int32ParameterValidatorResponse{} + functionValidator.ValidateParameterInt32(ctx, req, resp) + if resp.Error != nil { + funcError = function.ConcatFuncErrors(funcError, function.NewArgumentFuncError( + pos, + resp.Error.Error(), + )) + } + } case function.ParameterWithInt64Validators: for _, functionValidator := range parameterWithValidators.GetValidators() { int64Valuable, ok := attrValue.(basetypes.Int64Valuable) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/client_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/client_capabilities.go new file mode 100644 index 000000000000..0eaf40c5019e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/client_capabilities.go @@ -0,0 +1,91 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto5 + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/provider" + "github.com/hashicorp/terraform-plugin-framework/resource" +) + +func ConfigureProviderClientCapabilities(in *tfprotov5.ConfigureProviderClientCapabilities) provider.ConfigureProviderClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return provider.ConfigureProviderClientCapabilities{ + DeferralAllowed: false, + } + } + + return provider.ConfigureProviderClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func ReadDataSourceClientCapabilities(in *tfprotov5.ReadDataSourceClientCapabilities) datasource.ReadClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return datasource.ReadClientCapabilities{ + DeferralAllowed: false, + } + } + + return datasource.ReadClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func ReadResourceClientCapabilities(in *tfprotov5.ReadResourceClientCapabilities) resource.ReadClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return resource.ReadClientCapabilities{ + DeferralAllowed: false, + } + } + + return resource.ReadClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func ModifyPlanClientCapabilities(in *tfprotov5.PlanResourceChangeClientCapabilities) resource.ModifyPlanClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return resource.ModifyPlanClientCapabilities{ + DeferralAllowed: false, + } + } + + return resource.ModifyPlanClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func ImportStateClientCapabilities(in *tfprotov5.ImportResourceStateClientCapabilities) resource.ImportStateClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return resource.ImportStateClientCapabilities{ + DeferralAllowed: false, + } + } + + return resource.ImportStateClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func OpenEphemeralResourceClientCapabilities(in *tfprotov5.OpenEphemeralResourceClientCapabilities) ephemeral.OpenClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return ephemeral.OpenClientCapabilities{ + DeferralAllowed: false, + } + } + + return ephemeral.OpenClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/closeephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/closeephemeralresource.go new file mode 100644 index 000000000000..5aa3527955ca --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/closeephemeralresource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// CloseEphemeralResourceRequest returns the *fwserver.CloseEphemeralResourceRequest +// equivalent of a *tfprotov5.CloseEphemeralResourceRequest. +func CloseEphemeralResourceRequest(ctx context.Context, proto5 *tfprotov5.CloseEphemeralResourceRequest, ephemeralResource ephemeral.EphemeralResource, ephemeralResourceSchema fwschema.Schema) (*fwserver.CloseEphemeralResourceRequest, diag.Diagnostics) { + if proto5 == nil { + return nil, nil + } + + var diags diag.Diagnostics + + // Panic prevention here to simplify the calling implementations. + // This should not happen, but just in case. + if ephemeralResourceSchema == nil { + diags.AddError( + "Missing EphemeralResource Schema", + "An unexpected error was encountered when handling the request. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + "Missing schema.", + ) + + return nil, diags + } + + fw := &fwserver.CloseEphemeralResourceRequest{ + EphemeralResource: ephemeralResource, + EphemeralResourceSchema: ephemeralResourceSchema, + } + + privateData, privateDataDiags := privatestate.NewData(ctx, proto5.Private) + + diags.Append(privateDataDiags...) + + fw.Private = privateData + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/configureprovider.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/configureprovider.go index 9dc0f111594e..bb6b8835e92a 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/configureprovider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/configureprovider.go @@ -6,10 +6,11 @@ package fromproto5 import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" "github.com/hashicorp/terraform-plugin-framework/provider" - "github.com/hashicorp/terraform-plugin-go/tfprotov5" ) // ConfigureProviderRequest returns the *fwserver.ConfigureProviderRequest @@ -20,7 +21,8 @@ func ConfigureProviderRequest(ctx context.Context, proto5 *tfprotov5.ConfigurePr } fw := &provider.ConfigureRequest{ - TerraformVersion: proto5.TerraformVersion, + TerraformVersion: proto5.TerraformVersion, + ClientCapabilities: ConfigureProviderClientCapabilities(proto5.ClientCapabilities), } config, diags := Config(ctx, proto5.Config, providerSchema) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/ephemeral_result_data.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/ephemeral_result_data.go new file mode 100644 index 000000000000..b33e88965da3 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/ephemeral_result_data.go @@ -0,0 +1,53 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// EphemeralResultData returns the *tfsdk.EphemeralResultData for a *tfprotov5.DynamicValue and +// fwschema.Schema. +func EphemeralResultData(ctx context.Context, proto5DynamicValue *tfprotov5.DynamicValue, schema fwschema.Schema) (*tfsdk.EphemeralResultData, diag.Diagnostics) { + if proto5DynamicValue == nil { + return nil, nil + } + + var diags diag.Diagnostics + + // Panic prevention here to simplify the calling implementations. + // This should not happen, but just in case. + if schema == nil { + diags.AddError( + "Unable to Convert Ephemeral Result Data", + "An unexpected error was encountered when converting the ephemeral result data from the protocol type. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + "Missing schema.", + ) + + return nil, diags + } + + data, dynamicValueDiags := DynamicValue(ctx, proto5DynamicValue, schema, fwschemadata.DataDescriptionEphemeralResultData) + + diags.Append(dynamicValueDiags...) + + if diags.HasError() { + return nil, diags + } + + fw := &tfsdk.EphemeralResultData{ + Raw: data.TerraformValue, + Schema: schema, + } + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/importresourcestate.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/importresourcestate.go index 4a10174b18c9..ec40c2119d62 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/importresourcestate.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/importresourcestate.go @@ -6,18 +6,19 @@ package fromproto5 import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-go/tftypes" + "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/tfsdk" - "github.com/hashicorp/terraform-plugin-go/tfprotov5" - "github.com/hashicorp/terraform-plugin-go/tftypes" ) // ImportResourceStateRequest returns the *fwserver.ImportResourceStateRequest // equivalent of a *tfprotov5.ImportResourceStateRequest. -func ImportResourceStateRequest(ctx context.Context, proto5 *tfprotov5.ImportResourceStateRequest, resource resource.Resource, resourceSchema fwschema.Schema) (*fwserver.ImportResourceStateRequest, diag.Diagnostics) { +func ImportResourceStateRequest(ctx context.Context, proto5 *tfprotov5.ImportResourceStateRequest, reqResource resource.Resource, resourceSchema fwschema.Schema) (*fwserver.ImportResourceStateRequest, diag.Diagnostics) { if proto5 == nil { return nil, nil } @@ -43,9 +44,10 @@ func ImportResourceStateRequest(ctx context.Context, proto5 *tfprotov5.ImportRes Raw: tftypes.NewValue(resourceSchema.Type().TerraformType(ctx), nil), Schema: resourceSchema, }, - ID: proto5.ID, - Resource: resource, - TypeName: proto5.TypeName, + ID: proto5.ID, + Resource: reqResource, + TypeName: proto5.TypeName, + ClientCapabilities: ImportStateClientCapabilities(proto5.ClientCapabilities), } return fw, diags diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/openephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/openephemeralresource.go new file mode 100644 index 000000000000..a1bcbcc8a5eb --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/openephemeralresource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// OpenEphemeralResourceRequest returns the *fwserver.OpenEphemeralResourceRequest +// equivalent of a *tfprotov5.OpenEphemeralResourceRequest. +func OpenEphemeralResourceRequest(ctx context.Context, proto5 *tfprotov5.OpenEphemeralResourceRequest, ephemeralResource ephemeral.EphemeralResource, ephemeralResourceSchema fwschema.Schema) (*fwserver.OpenEphemeralResourceRequest, diag.Diagnostics) { + if proto5 == nil { + return nil, nil + } + + var diags diag.Diagnostics + + // Panic prevention here to simplify the calling implementations. + // This should not happen, but just in case. + if ephemeralResourceSchema == nil { + diags.AddError( + "Missing EphemeralResource Schema", + "An unexpected error was encountered when handling the request. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + "Missing schema.", + ) + + return nil, diags + } + + fw := &fwserver.OpenEphemeralResourceRequest{ + EphemeralResource: ephemeralResource, + EphemeralResourceSchema: ephemeralResourceSchema, + ClientCapabilities: OpenEphemeralResourceClientCapabilities(proto5.ClientCapabilities), + } + + config, configDiags := Config(ctx, proto5.Config, ephemeralResourceSchema) + + diags.Append(configDiags...) + + fw.Config = config + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/plan.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/plan.go index f20a1a50978e..3882811eb61b 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/plan.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/plan.go @@ -6,11 +6,12 @@ package fromproto5 import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" "github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata" "github.com/hashicorp/terraform-plugin-framework/tfsdk" - "github.com/hashicorp/terraform-plugin-go/tfprotov5" ) // Plan returns the *tfsdk.Plan for a *tfprotov5.DynamicValue and diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/planresourcechange.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/planresourcechange.go index 67cced27301d..5bd24c1ddfcd 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/planresourcechange.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/planresourcechange.go @@ -17,7 +17,7 @@ import ( // PlanResourceChangeRequest returns the *fwserver.PlanResourceChangeRequest // equivalent of a *tfprotov5.PlanResourceChangeRequest. -func PlanResourceChangeRequest(ctx context.Context, proto5 *tfprotov5.PlanResourceChangeRequest, resource resource.Resource, resourceSchema fwschema.Schema, providerMetaSchema fwschema.Schema) (*fwserver.PlanResourceChangeRequest, diag.Diagnostics) { +func PlanResourceChangeRequest(ctx context.Context, proto5 *tfprotov5.PlanResourceChangeRequest, reqResource resource.Resource, resourceSchema fwschema.Schema, providerMetaSchema fwschema.Schema, resourceBehavior resource.ResourceBehavior) (*fwserver.PlanResourceChangeRequest, diag.Diagnostics) { if proto5 == nil { return nil, nil } @@ -39,8 +39,10 @@ func PlanResourceChangeRequest(ctx context.Context, proto5 *tfprotov5.PlanResour } fw := &fwserver.PlanResourceChangeRequest{ - ResourceSchema: resourceSchema, - Resource: resource, + ResourceBehavior: resourceBehavior, + ResourceSchema: resourceSchema, + Resource: reqResource, + ClientCapabilities: ModifyPlanClientCapabilities(proto5.ClientCapabilities), } config, configDiags := Config(ctx, proto5.Config, resourceSchema) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/readdatasource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/readdatasource.go index 53ac543a9754..9f6fa4ddccaa 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/readdatasource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/readdatasource.go @@ -6,11 +6,12 @@ package fromproto5 import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" - "github.com/hashicorp/terraform-plugin-go/tfprotov5" ) // ReadDataSourceRequest returns the *fwserver.ReadDataSourceRequest @@ -37,8 +38,9 @@ func ReadDataSourceRequest(ctx context.Context, proto5 *tfprotov5.ReadDataSource } fw := &fwserver.ReadDataSourceRequest{ - DataSource: dataSource, - DataSourceSchema: dataSourceSchema, + DataSource: dataSource, + DataSourceSchema: dataSourceSchema, + ClientCapabilities: ReadDataSourceClientCapabilities(proto5.ClientCapabilities), } config, configDiags := Config(ctx, proto5.Config, dataSourceSchema) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/readresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/readresource.go index 94164a2c0a80..04d4b4d2e8bd 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/readresource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/readresource.go @@ -17,7 +17,7 @@ import ( // ReadResourceRequest returns the *fwserver.ReadResourceRequest // equivalent of a *tfprotov5.ReadResourceRequest. -func ReadResourceRequest(ctx context.Context, proto5 *tfprotov5.ReadResourceRequest, resource resource.Resource, resourceSchema fwschema.Schema, providerMetaSchema fwschema.Schema) (*fwserver.ReadResourceRequest, diag.Diagnostics) { +func ReadResourceRequest(ctx context.Context, proto5 *tfprotov5.ReadResourceRequest, reqResource resource.Resource, resourceSchema fwschema.Schema, providerMetaSchema fwschema.Schema) (*fwserver.ReadResourceRequest, diag.Diagnostics) { if proto5 == nil { return nil, nil } @@ -25,7 +25,8 @@ func ReadResourceRequest(ctx context.Context, proto5 *tfprotov5.ReadResourceRequ var diags diag.Diagnostics fw := &fwserver.ReadResourceRequest{ - Resource: resource, + Resource: reqResource, + ClientCapabilities: ReadResourceClientCapabilities(proto5.ClientCapabilities), } currentState, currentStateDiags := State(ctx, proto5.CurrentState, resourceSchema) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/renewephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/renewephemeralresource.go new file mode 100644 index 000000000000..c632310f4944 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/renewephemeralresource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// RenewEphemeralResourceRequest returns the *fwserver.RenewEphemeralResourceRequest +// equivalent of a *tfprotov5.RenewEphemeralResourceRequest. +func RenewEphemeralResourceRequest(ctx context.Context, proto5 *tfprotov5.RenewEphemeralResourceRequest, ephemeralResource ephemeral.EphemeralResource, ephemeralResourceSchema fwschema.Schema) (*fwserver.RenewEphemeralResourceRequest, diag.Diagnostics) { + if proto5 == nil { + return nil, nil + } + + var diags diag.Diagnostics + + // Panic prevention here to simplify the calling implementations. + // This should not happen, but just in case. + if ephemeralResourceSchema == nil { + diags.AddError( + "Missing EphemeralResource Schema", + "An unexpected error was encountered when handling the request. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + "Missing schema.", + ) + + return nil, diags + } + + fw := &fwserver.RenewEphemeralResourceRequest{ + EphemeralResource: ephemeralResource, + EphemeralResourceSchema: ephemeralResourceSchema, + } + + privateData, privateDataDiags := privatestate.NewData(ctx, proto5.Private) + + diags.Append(privateDataDiags...) + + fw.Private = privateData + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/validateephemeralresourceconfig.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/validateephemeralresourceconfig.go new file mode 100644 index 000000000000..ec1acb4b840d --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto5/validateephemeralresourceconfig.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// ValidateEphemeralResourceConfigRequest returns the *fwserver.ValidateEphemeralResourceConfigRequest +// equivalent of a *tfprotov5.ValidateEphemeralResourceConfigRequest. +func ValidateEphemeralResourceConfigRequest(ctx context.Context, proto5 *tfprotov5.ValidateEphemeralResourceConfigRequest, ephemeralResource ephemeral.EphemeralResource, ephemeralResourceSchema fwschema.Schema) (*fwserver.ValidateEphemeralResourceConfigRequest, diag.Diagnostics) { + if proto5 == nil { + return nil, nil + } + + fw := &fwserver.ValidateEphemeralResourceConfigRequest{} + + config, diags := Config(ctx, proto5.Config, ephemeralResourceSchema) + + fw.Config = config + fw.EphemeralResource = ephemeralResource + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/arguments_data.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/arguments_data.go index 1fcf39229c88..f4a34e26d8c1 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/arguments_data.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/arguments_data.go @@ -226,6 +226,39 @@ func ArgumentsData(ctx context.Context, arguments []*tfprotov6.DynamicValue, def )) } } + case function.ParameterWithFloat32Validators: + for _, functionValidator := range parameterWithValidators.GetValidators() { + float32Valuable, ok := attrValue.(basetypes.Float32Valuable) + if !ok { + funcError = function.ConcatFuncErrors(funcError, function.NewArgumentFuncError( + pos, + "Invalid Argument Type: "+ + "An unexpected error was encountered when converting the function argument from the protocol type. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + fmt.Sprintf("Expected basetypes.Float32Valuable at position %d", pos), + )) + + continue + } + float32Val, diags := float32Valuable.ToFloat32Value(ctx) + if diags.HasError() { + funcError = function.ConcatFuncErrors(funcError, function.FuncErrorFromDiags(ctx, diags)) + continue + } + req := function.Float32ParameterValidatorRequest{ + ArgumentPosition: pos, + Value: float32Val, + } + resp := &function.Float32ParameterValidatorResponse{} + functionValidator.ValidateParameterFloat32(ctx, req, resp) + if resp.Error != nil { + funcError = function.ConcatFuncErrors(funcError, function.NewArgumentFuncError( + pos, + resp.Error.Error(), + )) + } + } case function.ParameterWithFloat64Validators: for _, functionValidator := range parameterWithValidators.GetValidators() { float64Valuable, ok := attrValue.(basetypes.Float64Valuable) @@ -259,6 +292,39 @@ func ArgumentsData(ctx context.Context, arguments []*tfprotov6.DynamicValue, def )) } } + case function.ParameterWithInt32Validators: + for _, functionValidator := range parameterWithValidators.GetValidators() { + int32Valuable, ok := attrValue.(basetypes.Int32Valuable) + if !ok { + funcError = function.ConcatFuncErrors(funcError, function.NewArgumentFuncError( + pos, + "Invalid Argument Type: "+ + "An unexpected error was encountered when converting the function argument from the protocol type. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + fmt.Sprintf("Expected basetypes.Int32Valuable at position %d", pos), + )) + + continue + } + int32Val, diags := int32Valuable.ToInt32Value(ctx) + if diags.HasError() { + funcError = function.ConcatFuncErrors(funcError, function.FuncErrorFromDiags(ctx, diags)) + continue + } + req := function.Int32ParameterValidatorRequest{ + ArgumentPosition: pos, + Value: int32Val, + } + resp := &function.Int32ParameterValidatorResponse{} + functionValidator.ValidateParameterInt32(ctx, req, resp) + if resp.Error != nil { + funcError = function.ConcatFuncErrors(funcError, function.NewArgumentFuncError( + pos, + resp.Error.Error(), + )) + } + } case function.ParameterWithInt64Validators: for _, functionValidator := range parameterWithValidators.GetValidators() { int64Valuable, ok := attrValue.(basetypes.Int64Valuable) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/client_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/client_capabilities.go new file mode 100644 index 000000000000..cd9c92b9c04c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/client_capabilities.go @@ -0,0 +1,91 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto6 + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/provider" + "github.com/hashicorp/terraform-plugin-framework/resource" +) + +func ConfigureProviderClientCapabilities(in *tfprotov6.ConfigureProviderClientCapabilities) provider.ConfigureProviderClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return provider.ConfigureProviderClientCapabilities{ + DeferralAllowed: false, + } + } + + return provider.ConfigureProviderClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func ReadDataSourceClientCapabilities(in *tfprotov6.ReadDataSourceClientCapabilities) datasource.ReadClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return datasource.ReadClientCapabilities{ + DeferralAllowed: false, + } + } + + return datasource.ReadClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func ReadResourceClientCapabilities(in *tfprotov6.ReadResourceClientCapabilities) resource.ReadClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return resource.ReadClientCapabilities{ + DeferralAllowed: false, + } + } + + return resource.ReadClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func ModifyPlanClientCapabilities(in *tfprotov6.PlanResourceChangeClientCapabilities) resource.ModifyPlanClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return resource.ModifyPlanClientCapabilities{ + DeferralAllowed: false, + } + } + + return resource.ModifyPlanClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func ImportStateClientCapabilities(in *tfprotov6.ImportResourceStateClientCapabilities) resource.ImportStateClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return resource.ImportStateClientCapabilities{ + DeferralAllowed: false, + } + } + + return resource.ImportStateClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} + +func OpenEphemeralResourceClientCapabilities(in *tfprotov6.OpenEphemeralResourceClientCapabilities) ephemeral.OpenClientCapabilities { + if in == nil { + // Client did not indicate any supported capabilities + return ephemeral.OpenClientCapabilities{ + DeferralAllowed: false, + } + } + + return ephemeral.OpenClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/closeephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/closeephemeralresource.go new file mode 100644 index 000000000000..c98050fd17b3 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/closeephemeralresource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// CloseEphemeralResourceRequest returns the *fwserver.CloseEphemeralResourceRequest +// equivalent of a *tfprotov6.CloseEphemeralResourceRequest. +func CloseEphemeralResourceRequest(ctx context.Context, proto6 *tfprotov6.CloseEphemeralResourceRequest, ephemeralResource ephemeral.EphemeralResource, ephemeralResourceSchema fwschema.Schema) (*fwserver.CloseEphemeralResourceRequest, diag.Diagnostics) { + if proto6 == nil { + return nil, nil + } + + var diags diag.Diagnostics + + // Panic prevention here to simplify the calling implementations. + // This should not happen, but just in case. + if ephemeralResourceSchema == nil { + diags.AddError( + "Missing EphemeralResource Schema", + "An unexpected error was encountered when handling the request. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + "Missing schema.", + ) + + return nil, diags + } + + fw := &fwserver.CloseEphemeralResourceRequest{ + EphemeralResource: ephemeralResource, + EphemeralResourceSchema: ephemeralResourceSchema, + } + + privateData, privateDataDiags := privatestate.NewData(ctx, proto6.Private) + + diags.Append(privateDataDiags...) + + fw.Private = privateData + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/configureprovider.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/configureprovider.go index 733b76ca26f1..19e470a21215 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/configureprovider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/configureprovider.go @@ -6,10 +6,11 @@ package fromproto6 import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" "github.com/hashicorp/terraform-plugin-framework/provider" - "github.com/hashicorp/terraform-plugin-go/tfprotov6" ) // ConfigureProviderRequest returns the *fwserver.ConfigureProviderRequest @@ -20,7 +21,8 @@ func ConfigureProviderRequest(ctx context.Context, proto6 *tfprotov6.ConfigurePr } fw := &provider.ConfigureRequest{ - TerraformVersion: proto6.TerraformVersion, + TerraformVersion: proto6.TerraformVersion, + ClientCapabilities: ConfigureProviderClientCapabilities(proto6.ClientCapabilities), } config, diags := Config(ctx, proto6.Config, providerSchema) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/ephemeral_result_data.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/ephemeral_result_data.go new file mode 100644 index 000000000000..1fef00304001 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/ephemeral_result_data.go @@ -0,0 +1,53 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// EphemeralResultData returns the *tfsdk.EphemeralResultData for a *tfprotov6.DynamicValue and +// fwschema.Schema. +func EphemeralResultData(ctx context.Context, proto6DynamicValue *tfprotov6.DynamicValue, schema fwschema.Schema) (*tfsdk.EphemeralResultData, diag.Diagnostics) { + if proto6DynamicValue == nil { + return nil, nil + } + + var diags diag.Diagnostics + + // Panic prevention here to simplify the calling implementations. + // This should not happen, but just in case. + if schema == nil { + diags.AddError( + "Unable to Convert Ephemeral Result Data", + "An unexpected error was encountered when converting the ephemeral result data from the protocol type. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + "Missing schema.", + ) + + return nil, diags + } + + data, dynamicValueDiags := DynamicValue(ctx, proto6DynamicValue, schema, fwschemadata.DataDescriptionEphemeralResultData) + + diags.Append(dynamicValueDiags...) + + if diags.HasError() { + return nil, diags + } + + fw := &tfsdk.EphemeralResultData{ + Raw: data.TerraformValue, + Schema: schema, + } + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/importresourcestate.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/importresourcestate.go index 11018c41b8dc..7070901cdd34 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/importresourcestate.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/importresourcestate.go @@ -6,18 +6,19 @@ package fromproto6 import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-go/tftypes" + "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/tfsdk" - "github.com/hashicorp/terraform-plugin-go/tfprotov6" - "github.com/hashicorp/terraform-plugin-go/tftypes" ) // ImportResourceStateRequest returns the *fwserver.ImportResourceStateRequest // equivalent of a *tfprotov6.ImportResourceStateRequest. -func ImportResourceStateRequest(ctx context.Context, proto6 *tfprotov6.ImportResourceStateRequest, resource resource.Resource, resourceSchema fwschema.Schema) (*fwserver.ImportResourceStateRequest, diag.Diagnostics) { +func ImportResourceStateRequest(ctx context.Context, proto6 *tfprotov6.ImportResourceStateRequest, reqResource resource.Resource, resourceSchema fwschema.Schema) (*fwserver.ImportResourceStateRequest, diag.Diagnostics) { if proto6 == nil { return nil, nil } @@ -43,9 +44,10 @@ func ImportResourceStateRequest(ctx context.Context, proto6 *tfprotov6.ImportRes Raw: tftypes.NewValue(resourceSchema.Type().TerraformType(ctx), nil), Schema: resourceSchema, }, - ID: proto6.ID, - Resource: resource, - TypeName: proto6.TypeName, + ID: proto6.ID, + Resource: reqResource, + TypeName: proto6.TypeName, + ClientCapabilities: ImportStateClientCapabilities(proto6.ClientCapabilities), } return fw, diags diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/openephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/openephemeralresource.go new file mode 100644 index 000000000000..196c6c0b012d --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/openephemeralresource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// OpenEphemeralResourceRequest returns the *fwserver.OpenEphemeralResourceRequest +// equivalent of a *tfprotov6.OpenEphemeralResourceRequest. +func OpenEphemeralResourceRequest(ctx context.Context, proto6 *tfprotov6.OpenEphemeralResourceRequest, ephemeralResource ephemeral.EphemeralResource, ephemeralResourceSchema fwschema.Schema) (*fwserver.OpenEphemeralResourceRequest, diag.Diagnostics) { + if proto6 == nil { + return nil, nil + } + + var diags diag.Diagnostics + + // Panic prevention here to simplify the calling implementations. + // This should not happen, but just in case. + if ephemeralResourceSchema == nil { + diags.AddError( + "Missing EphemeralResource Schema", + "An unexpected error was encountered when handling the request. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + "Missing schema.", + ) + + return nil, diags + } + + fw := &fwserver.OpenEphemeralResourceRequest{ + EphemeralResource: ephemeralResource, + EphemeralResourceSchema: ephemeralResourceSchema, + ClientCapabilities: OpenEphemeralResourceClientCapabilities(proto6.ClientCapabilities), + } + + config, configDiags := Config(ctx, proto6.Config, ephemeralResourceSchema) + + diags.Append(configDiags...) + + fw.Config = config + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/planresourcechange.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/planresourcechange.go index 3c2bb3e9c927..6b95f07892fb 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/planresourcechange.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/planresourcechange.go @@ -17,7 +17,7 @@ import ( // PlanResourceChangeRequest returns the *fwserver.PlanResourceChangeRequest // equivalent of a *tfprotov6.PlanResourceChangeRequest. -func PlanResourceChangeRequest(ctx context.Context, proto6 *tfprotov6.PlanResourceChangeRequest, resource resource.Resource, resourceSchema fwschema.Schema, providerMetaSchema fwschema.Schema) (*fwserver.PlanResourceChangeRequest, diag.Diagnostics) { +func PlanResourceChangeRequest(ctx context.Context, proto6 *tfprotov6.PlanResourceChangeRequest, reqResource resource.Resource, resourceSchema fwschema.Schema, providerMetaSchema fwschema.Schema, resourceBehavior resource.ResourceBehavior) (*fwserver.PlanResourceChangeRequest, diag.Diagnostics) { if proto6 == nil { return nil, nil } @@ -39,8 +39,10 @@ func PlanResourceChangeRequest(ctx context.Context, proto6 *tfprotov6.PlanResour } fw := &fwserver.PlanResourceChangeRequest{ - ResourceSchema: resourceSchema, - Resource: resource, + ResourceBehavior: resourceBehavior, + ResourceSchema: resourceSchema, + Resource: reqResource, + ClientCapabilities: ModifyPlanClientCapabilities(proto6.ClientCapabilities), } config, configDiags := Config(ctx, proto6.Config, resourceSchema) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/readdatasource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/readdatasource.go index 83c264cd7e0a..b84b7b108d95 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/readdatasource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/readdatasource.go @@ -6,11 +6,12 @@ package fromproto6 import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" - "github.com/hashicorp/terraform-plugin-go/tfprotov6" ) // ReadDataSourceRequest returns the *fwserver.ReadDataSourceRequest @@ -37,8 +38,9 @@ func ReadDataSourceRequest(ctx context.Context, proto6 *tfprotov6.ReadDataSource } fw := &fwserver.ReadDataSourceRequest{ - DataSourceSchema: dataSourceSchema, - DataSource: dataSource, + DataSourceSchema: dataSourceSchema, + DataSource: dataSource, + ClientCapabilities: ReadDataSourceClientCapabilities(proto6.ClientCapabilities), } config, configDiags := Config(ctx, proto6.Config, dataSourceSchema) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/readresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/readresource.go index 4e48e565bfb2..a42f669d67c4 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/readresource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/readresource.go @@ -17,7 +17,7 @@ import ( // ReadResourceRequest returns the *fwserver.ReadResourceRequest // equivalent of a *tfprotov6.ReadResourceRequest. -func ReadResourceRequest(ctx context.Context, proto6 *tfprotov6.ReadResourceRequest, resource resource.Resource, resourceSchema fwschema.Schema, providerMetaSchema fwschema.Schema) (*fwserver.ReadResourceRequest, diag.Diagnostics) { +func ReadResourceRequest(ctx context.Context, proto6 *tfprotov6.ReadResourceRequest, reqResource resource.Resource, resourceSchema fwschema.Schema, providerMetaSchema fwschema.Schema) (*fwserver.ReadResourceRequest, diag.Diagnostics) { if proto6 == nil { return nil, nil } @@ -25,7 +25,8 @@ func ReadResourceRequest(ctx context.Context, proto6 *tfprotov6.ReadResourceRequ var diags diag.Diagnostics fw := &fwserver.ReadResourceRequest{ - Resource: resource, + Resource: reqResource, + ClientCapabilities: ReadResourceClientCapabilities(proto6.ClientCapabilities), } currentState, currentStateDiags := State(ctx, proto6.CurrentState, resourceSchema) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/renewephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/renewephemeralresource.go new file mode 100644 index 000000000000..9ee02f7c1bb9 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/renewephemeralresource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// RenewEphemeralResourceRequest returns the *fwserver.RenewEphemeralResourceRequest +// equivalent of a *tfprotov6.RenewEphemeralResourceRequest. +func RenewEphemeralResourceRequest(ctx context.Context, proto6 *tfprotov6.RenewEphemeralResourceRequest, ephemeralResource ephemeral.EphemeralResource, ephemeralResourceSchema fwschema.Schema) (*fwserver.RenewEphemeralResourceRequest, diag.Diagnostics) { + if proto6 == nil { + return nil, nil + } + + var diags diag.Diagnostics + + // Panic prevention here to simplify the calling implementations. + // This should not happen, but just in case. + if ephemeralResourceSchema == nil { + diags.AddError( + "Missing EphemeralResource Schema", + "An unexpected error was encountered when handling the request. "+ + "This is always an issue in terraform-plugin-framework used to implement the provider and should be reported to the provider developers.\n\n"+ + "Please report this to the provider developer:\n\n"+ + "Missing schema.", + ) + + return nil, diags + } + + fw := &fwserver.RenewEphemeralResourceRequest{ + EphemeralResource: ephemeralResource, + EphemeralResourceSchema: ephemeralResourceSchema, + } + + privateData, privateDataDiags := privatestate.NewData(ctx, proto6.Private) + + diags.Append(privateDataDiags...) + + fw.Private = privateData + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/validateephemeralresourceconfig.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/validateephemeralresourceconfig.go new file mode 100644 index 000000000000..f913ede97d4e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fromproto6/validateephemeralresourceconfig.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// ValidateEphemeralResourceConfigRequest returns the *fwserver.ValidateEphemeralResourceConfigRequest +// equivalent of a *tfprotov6.ValidateEphemeralResourceConfigRequest. +func ValidateEphemeralResourceConfigRequest(ctx context.Context, proto6 *tfprotov6.ValidateEphemeralResourceConfigRequest, ephemeralResource ephemeral.EphemeralResource, ephemeralResourceSchema fwschema.Schema) (*fwserver.ValidateEphemeralResourceConfigRequest, diag.Diagnostics) { + if proto6 == nil { + return nil, nil + } + + fw := &fwserver.ValidateEphemeralResourceConfigRequest{} + + config, diags := Config(ctx, proto6.Config, ephemeralResourceSchema) + + fw.Config = config + fw.EphemeralResource = ephemeralResource + + return fw, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwfunction/diagnostics.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwfunction/diagnostics.go new file mode 100644 index 000000000000..86e391cbad35 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwfunction/diagnostics.go @@ -0,0 +1,28 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwfunction + +import ( + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/diag" +) + +func MissingParameterNameDiag(functionName string, position *int64) diag.Diagnostic { + if position == nil { + return diag.NewErrorDiagnostic( + "Invalid Function Definition", + "When validating the function definition, an implementation issue was found. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + fmt.Sprintf("Function %q - The variadic parameter does not have a name", functionName), + ) + } + + return diag.NewErrorDiagnostic( + "Invalid Function Definition", + "When validating the function definition, an implementation issue was found. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + fmt.Sprintf("Function %q - Parameter at position %d does not have a name", functionName, *position), + ) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwfunction/parameter_validate_implementation.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwfunction/parameter_validate_implementation.go index 1e171f016f28..050193f34f4b 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwfunction/parameter_validate_implementation.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwfunction/parameter_validate_implementation.go @@ -30,16 +30,12 @@ type ParameterWithValidateImplementation interface { // definition. ValidateParameterImplementationResponse is the type used for // responses. type ValidateParameterImplementationRequest struct { + // FunctionName is the name of the function being validated. + FunctionName string + // ParameterPosition is the position of the parameter in the function definition for reporting diagnostics. // A parameter without a position (i.e. `nil`) is the variadic parameter. ParameterPosition *int64 - - // Name is the provider-defined parameter name or the default parameter name for reporting diagnostics. - // - // MAINTAINER NOTE: Since parameter names are not required currently and can be defaulted by internal framework logic, - // we accept the Name in this validate request, rather than using `(function.Parameter).GetName()` for diagnostics, which - // could be empty. - Name string } // ValidateParameterImplementationResponse contains the returned data from a diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/attribute_default.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/attribute_default.go index 29e63a7bb5da..c0d092e31fa5 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/attribute_default.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/attribute_default.go @@ -15,6 +15,14 @@ type AttributeWithBoolDefaultValue interface { BoolDefaultValue() defaults.Bool } +// AttributeWithFloat32DefaultValue is an optional interface on Attribute which +// enables Float32 default value support. +type AttributeWithFloat32DefaultValue interface { + Attribute + + Float32DefaultValue() defaults.Float32 +} + // AttributeWithFloat64DefaultValue is an optional interface on Attribute which // enables Float64 default value support. type AttributeWithFloat64DefaultValue interface { @@ -23,6 +31,14 @@ type AttributeWithFloat64DefaultValue interface { Float64DefaultValue() defaults.Float64 } +// AttributeWithInt32DefaultValue is an optional interface on Attribute which +// enables Int32 default value support. +type AttributeWithInt32DefaultValue interface { + Attribute + + Int32DefaultValue() defaults.Int32 +} + // AttributeWithInt64DefaultValue is an optional interface on Attribute which // enables Int64 default value support. type AttributeWithInt64DefaultValue interface { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema/attribute_plan_modification.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema/attribute_plan_modification.go index f4cb841deb0e..d50e0228f4f7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema/attribute_plan_modification.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema/attribute_plan_modification.go @@ -17,6 +17,15 @@ type AttributeWithBoolPlanModifiers interface { BoolPlanModifiers() []planmodifier.Bool } +// AttributeWithFloat32PlanModifiers is an optional interface on Attribute which +// enables Float32 plan modifier support. +type AttributeWithFloat32PlanModifiers interface { + fwschema.Attribute + + // Float32PlanModifiers should return a list of Float32 plan modifiers. + Float32PlanModifiers() []planmodifier.Float32 +} + // AttributeWithFloat64PlanModifiers is an optional interface on Attribute which // enables Float64 plan modifier support. type AttributeWithFloat64PlanModifiers interface { @@ -26,6 +35,15 @@ type AttributeWithFloat64PlanModifiers interface { Float64PlanModifiers() []planmodifier.Float64 } +// AttributeWithInt32PlanModifiers is an optional interface on Attribute which +// enables Int32 plan modifier support. +type AttributeWithInt32PlanModifiers interface { + fwschema.Attribute + + // Int32PlanModifiers should return a list of Int32 plan modifiers. + Int32PlanModifiers() []planmodifier.Int32 +} + // AttributeWithInt64PlanModifiers is an optional interface on Attribute which // enables Int64 plan modifier support. type AttributeWithInt64PlanModifiers interface { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema/attribute_validation.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema/attribute_validation.go index e8274de4da61..d94b65af1310 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema/attribute_validation.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema/attribute_validation.go @@ -17,6 +17,15 @@ type AttributeWithBoolValidators interface { BoolValidators() []validator.Bool } +// AttributeWithFloat32Validators is an optional interface on Attribute which +// enables Float32 validation support. +type AttributeWithFloat32Validators interface { + fwschema.Attribute + + // Float32Validators should return a list of Float32 validators. + Float32Validators() []validator.Float32 +} + // AttributeWithFloat64Validators is an optional interface on Attribute which // enables Float64 validation support. type AttributeWithFloat64Validators interface { @@ -26,6 +35,15 @@ type AttributeWithFloat64Validators interface { Float64Validators() []validator.Float64 } +// AttributeWithInt32Validators is an optional interface on Attribute which +// enables Int32 validation support. +type AttributeWithInt32Validators interface { + fwschema.Attribute + + // Int32Validators should return a list of Int32 validators. + Int32Validators() []validator.Int32 +} + // AttributeWithInt64Validators is an optional interface on Attribute which // enables Int64 validation support. type AttributeWithInt64Validators interface { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/data_default.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/data_default.go index d83f5ee057c0..88015b3d0af1 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/data_default.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/data_default.go @@ -122,6 +122,29 @@ func (d *Data) TransformDefaults(ctx context.Context, configRaw tftypes.Value) d logging.FrameworkTrace(ctx, fmt.Sprintf("setting attribute %s to default value: %s", fwPath, resp.PlanValue)) + return resp.PlanValue.ToTerraformValue(ctx) + case fwschema.AttributeWithFloat32DefaultValue: + defaultValue := a.Float32DefaultValue() + + if defaultValue == nil { + return tfTypeValue, nil + } + + req := defaults.Float32Request{ + Path: fwPath, + } + resp := defaults.Float32Response{} + + defaultValue.DefaultFloat32(ctx, req, &resp) + + diags.Append(resp.Diagnostics...) + + if resp.Diagnostics.HasError() { + return tfTypeValue, nil + } + + logging.FrameworkTrace(ctx, fmt.Sprintf("setting attribute %s to default value: %s", fwPath, resp.PlanValue)) + return resp.PlanValue.ToTerraformValue(ctx) case fwschema.AttributeWithFloat64DefaultValue: defaultValue := a.Float64DefaultValue() @@ -145,6 +168,29 @@ func (d *Data) TransformDefaults(ctx context.Context, configRaw tftypes.Value) d logging.FrameworkTrace(ctx, fmt.Sprintf("setting attribute %s to default value: %s", fwPath, resp.PlanValue)) + return resp.PlanValue.ToTerraformValue(ctx) + case fwschema.AttributeWithInt32DefaultValue: + defaultValue := a.Int32DefaultValue() + + if defaultValue == nil { + return tfTypeValue, nil + } + + req := defaults.Int32Request{ + Path: fwPath, + } + resp := defaults.Int32Response{} + + defaultValue.DefaultInt32(ctx, req, &resp) + + diags.Append(resp.Diagnostics...) + + if resp.Diagnostics.HasError() { + return tfTypeValue, nil + } + + logging.FrameworkTrace(ctx, fmt.Sprintf("setting attribute %s to default value: %s", fwPath, resp.PlanValue)) + return resp.PlanValue.ToTerraformValue(ctx) case fwschema.AttributeWithInt64DefaultValue: defaultValue := a.Int64DefaultValue() diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/data_description.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/data_description.go index c002e98837a5..70ae62c76372 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/data_description.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/data_description.go @@ -15,6 +15,10 @@ const ( // DataDescriptionState is used for Data that represents // a state-based value. DataDescriptionState DataDescription = "state" + + // DataDescriptionEphemeralResultData is used for Data that represents + // the result of an ephemeral operation. + DataDescriptionEphemeralResultData DataDescription = "ephemeral result data" ) // DataDescription is a human friendly type for Data. Used in error @@ -40,6 +44,8 @@ func (d DataDescription) Title() string { return "Plan" case DataDescriptionState: return "State" + case DataDescriptionEphemeralResultData: + return "Ephemeral Result Data" default: return "Data" } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality.go index e93ae83964c7..eca25c56b094 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality.go @@ -63,8 +63,12 @@ func ValueSemanticEquality(ctx context.Context, req ValueSemanticEqualityRequest switch req.ProposedNewValue.(type) { case basetypes.BoolValuable: ValueSemanticEqualityBool(ctx, req, resp) + case basetypes.Float32Valuable: + ValueSemanticEqualityFloat32(ctx, req, resp) case basetypes.Float64Valuable: ValueSemanticEqualityFloat64(ctx, req, resp) + case basetypes.Int32Valuable: + ValueSemanticEqualityInt32(ctx, req, resp) case basetypes.Int64Valuable: ValueSemanticEqualityInt64(ctx, req, resp) case basetypes.ListValuable: diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality_float32.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality_float32.go new file mode 100644 index 000000000000..337c4d0a9888 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality_float32.go @@ -0,0 +1,54 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwschemadata + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// ValueSemanticEqualityFloat32 performs float32 type semantic equality. +func ValueSemanticEqualityFloat32(ctx context.Context, req ValueSemanticEqualityRequest, resp *ValueSemanticEqualityResponse) { + priorValuable, ok := req.PriorValue.(basetypes.Float32ValuableWithSemanticEquals) + + // No changes required if the interface is not implemented. + if !ok { + return + } + + proposedNewValuable, ok := req.ProposedNewValue.(basetypes.Float32ValuableWithSemanticEquals) + + // No changes required if the interface is not implemented. + if !ok { + return + } + + logging.FrameworkTrace( + ctx, + "Calling provider defined type-based SemanticEquals", + map[string]interface{}{ + logging.KeyValueType: proposedNewValuable.String(), + }, + ) + + usePriorValue, diags := proposedNewValuable.Float32SemanticEquals(ctx, priorValuable) + + logging.FrameworkTrace( + ctx, + "Called provider defined type-based SemanticEquals", + map[string]interface{}{ + logging.KeyValueType: proposedNewValuable.String(), + }, + ) + + resp.Diagnostics.Append(diags...) + + if !usePriorValue { + return + } + + resp.NewValue = priorValuable +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality_int32.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality_int32.go new file mode 100644 index 000000000000..101c750c7330 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata/value_semantic_equality_int32.go @@ -0,0 +1,54 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwschemadata + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// ValueSemanticEqualityInt32 performs int32 type semantic equality. +func ValueSemanticEqualityInt32(ctx context.Context, req ValueSemanticEqualityRequest, resp *ValueSemanticEqualityResponse) { + priorValuable, ok := req.PriorValue.(basetypes.Int32ValuableWithSemanticEquals) + + // No changes required if the interface is not implemented. + if !ok { + return + } + + proposedNewValuable, ok := req.ProposedNewValue.(basetypes.Int32ValuableWithSemanticEquals) + + // No changes required if the interface is not implemented. + if !ok { + return + } + + logging.FrameworkTrace( + ctx, + "Calling provider defined type-based SemanticEquals", + map[string]interface{}{ + logging.KeyValueType: proposedNewValuable.String(), + }, + ) + + usePriorValue, diags := proposedNewValuable.Int32SemanticEquals(ctx, priorValuable) + + logging.FrameworkTrace( + ctx, + "Called provider defined type-based SemanticEquals", + map[string]interface{}{ + logging.KeyValueType: proposedNewValuable.String(), + }, + ) + + resp.Diagnostics.Append(diags...) + + if !usePriorValue { + return + } + + resp.NewValue = priorValuable +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attr_type.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attr_type.go index 85dd3bff00a1..934498189edb 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attr_type.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attr_type.go @@ -26,6 +26,21 @@ func coerceBoolTypable(ctx context.Context, schemaPath path.Path, valuable baset return typable, nil } +func coerceFloat32Typable(ctx context.Context, schemaPath path.Path, valuable basetypes.Float32Valuable) (basetypes.Float32Typable, diag.Diagnostics) { + typable, ok := valuable.Type(ctx).(basetypes.Float32Typable) + + // Type() of a Valuable should always be a Typable to recreate the Valuable, + // but if for some reason it is not, raise an implementation error instead + // of a panic. + if !ok { + return nil, diag.Diagnostics{ + attributePlanModificationTypableError(schemaPath, valuable), + } + } + + return typable, nil +} + func coerceFloat64Typable(ctx context.Context, schemaPath path.Path, valuable basetypes.Float64Valuable) (basetypes.Float64Typable, diag.Diagnostics) { typable, ok := valuable.Type(ctx).(basetypes.Float64Typable) @@ -41,6 +56,21 @@ func coerceFloat64Typable(ctx context.Context, schemaPath path.Path, valuable ba return typable, nil } +func coerceInt32Typable(ctx context.Context, schemaPath path.Path, valuable basetypes.Int32Valuable) (basetypes.Int32Typable, diag.Diagnostics) { + typable, ok := valuable.Type(ctx).(basetypes.Int32Typable) + + // Type() of a Valuable should always be a Typable to recreate the Valuable, + // but if for some reason it is not, raise an implementation error instead + // of a panic. + if !ok { + return nil, diag.Diagnostics{ + attributePlanModificationTypableError(schemaPath, valuable), + } + } + + return typable, nil +} + func coerceInt64Typable(ctx context.Context, schemaPath path.Path, valuable basetypes.Int64Valuable) (basetypes.Int64Typable, diag.Diagnostics) { typable, ok := valuable.Type(ctx).(basetypes.Int64Typable) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attribute_plan_modification.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attribute_plan_modification.go index 36e86dec532c..c82139c64af0 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attribute_plan_modification.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attribute_plan_modification.go @@ -92,8 +92,12 @@ func AttributeModifyPlan(ctx context.Context, a fwschema.Attribute, req ModifyAt switch attributeWithPlanModifiers := a.(type) { case fwxschema.AttributeWithBoolPlanModifiers: AttributePlanModifyBool(ctx, attributeWithPlanModifiers, req, resp) + case fwxschema.AttributeWithFloat32PlanModifiers: + AttributePlanModifyFloat32(ctx, attributeWithPlanModifiers, req, resp) case fwxschema.AttributeWithFloat64PlanModifiers: AttributePlanModifyFloat64(ctx, attributeWithPlanModifiers, req, resp) + case fwxschema.AttributeWithInt32PlanModifiers: + AttributePlanModifyInt32(ctx, attributeWithPlanModifiers, req, resp) case fwxschema.AttributeWithInt64PlanModifiers: AttributePlanModifyInt64(ctx, attributeWithPlanModifiers, req, resp) case fwxschema.AttributeWithListPlanModifiers: @@ -841,6 +845,166 @@ func AttributePlanModifyBool(ctx context.Context, attribute fwxschema.AttributeW } } +// AttributePlanModifyFloat32 performs all types.Float32 plan modification. +func AttributePlanModifyFloat32(ctx context.Context, attribute fwxschema.AttributeWithFloat32PlanModifiers, req ModifyAttributePlanRequest, resp *ModifyAttributePlanResponse) { + // Use basetypes.Float32Valuable until custom types cannot re-implement + // ValueFromTerraform. Until then, custom types are not technically + // required to implement this interface. This opts to enforce the + // requirement before compatibility promises would interfere. + configValuable, ok := req.AttributeConfig.(basetypes.Float32Valuable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.AttributePath, + "Invalid Float32 Attribute Plan Modifier Value Type", + "An unexpected value type was encountered while attempting to perform Float32 attribute plan modification. "+ + "The value type must implement the basetypes.Float32Valuable interface. "+ + "Please report this to the provider developers.\n\n"+ + fmt.Sprintf("Incoming Value Type: %T", req.AttributeConfig), + ) + + return + } + + configValue, diags := configValuable.ToFloat32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + planValuable, ok := req.AttributePlan.(basetypes.Float32Valuable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.AttributePath, + "Invalid Float32 Attribute Plan Modifier Value Type", + "An unexpected value type was encountered while attempting to perform Float32 attribute plan modification. "+ + "The value type must implement the basetypes.Float32Valuable interface. "+ + "Please report this to the provider developers.\n\n"+ + fmt.Sprintf("Incoming Value Type: %T", req.AttributePlan), + ) + + return + } + + planValue, diags := planValuable.ToFloat32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + stateValuable, ok := req.AttributeState.(basetypes.Float32Valuable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.AttributePath, + "Invalid Float32 Attribute Plan Modifier Value Type", + "An unexpected value type was encountered while attempting to perform Float32 attribute plan modification. "+ + "The value type must implement the basetypes.Float32Valuable interface. "+ + "Please report this to the provider developers.\n\n"+ + fmt.Sprintf("Incoming Value Type: %T", req.AttributeState), + ) + + return + } + + stateValue, diags := stateValuable.ToFloat32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + typable, diags := coerceFloat32Typable(ctx, req.AttributePath, planValuable) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + planModifyReq := planmodifier.Float32Request{ + Config: req.Config, + ConfigValue: configValue, + Path: req.AttributePath, + PathExpression: req.AttributePathExpression, + Plan: req.Plan, + PlanValue: planValue, + Private: req.Private, + State: req.State, + StateValue: stateValue, + } + + for _, planModifier := range attribute.Float32PlanModifiers() { + // Instantiate a new response for each request to prevent plan modifiers + // from modifying or removing diagnostics. + planModifyResp := &planmodifier.Float32Response{ + PlanValue: planModifyReq.PlanValue, + Private: resp.Private, + } + + logging.FrameworkTrace( + ctx, + "Calling provider defined planmodifier.Float32", + map[string]interface{}{ + logging.KeyDescription: planModifier.Description(ctx), + }, + ) + + planModifier.PlanModifyFloat32(ctx, planModifyReq, planModifyResp) + + logging.FrameworkTrace( + ctx, + "Called provider defined planmodifier.Float32", + map[string]interface{}{ + logging.KeyDescription: planModifier.Description(ctx), + }, + ) + + // Prepare next request with base type. + planModifyReq.PlanValue = planModifyResp.PlanValue + + resp.Diagnostics.Append(planModifyResp.Diagnostics...) + resp.Private = planModifyResp.Private + + if planModifyResp.RequiresReplace { + resp.RequiresReplace.Append(req.AttributePath) + } + + // Only on new errors. + if planModifyResp.Diagnostics.HasError() { + return + } + + // A custom value type must be returned in the final response to prevent + // later correctness errors. + // Reference: https://github.com/hashicorp/terraform-plugin-framework/issues/754 + valuable, valueFromDiags := typable.ValueFromFloat32(ctx, planModifyResp.PlanValue) + + resp.Diagnostics.Append(valueFromDiags...) + + // Only on new errors. + if valueFromDiags.HasError() { + return + } + + resp.AttributePlan = valuable + } +} + // AttributePlanModifyFloat64 performs all types.Float64 plan modification. func AttributePlanModifyFloat64(ctx context.Context, attribute fwxschema.AttributeWithFloat64PlanModifiers, req ModifyAttributePlanRequest, resp *ModifyAttributePlanResponse) { // Use basetypes.Float64Valuable until custom types cannot re-implement @@ -1001,6 +1165,166 @@ func AttributePlanModifyFloat64(ctx context.Context, attribute fwxschema.Attribu } } +// AttributePlanModifyInt32 performs all types.Int32 plan modification. +func AttributePlanModifyInt32(ctx context.Context, attribute fwxschema.AttributeWithInt32PlanModifiers, req ModifyAttributePlanRequest, resp *ModifyAttributePlanResponse) { + // Use basetypes.Int32Valuable until custom types cannot re-implement + // ValueFromTerraform. Until then, custom types are not technically + // required to implement this interface. This opts to enforce the + // requirement before compatibility promises would interfere. + configValuable, ok := req.AttributeConfig.(basetypes.Int32Valuable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.AttributePath, + "Invalid Int32 Attribute Plan Modifier Value Type", + "An unexpected value type was encountered while attempting to perform Int32 attribute plan modification. "+ + "The value type must implement the basetypes.Int32Valuable interface. "+ + "Please report this to the provider developers.\n\n"+ + fmt.Sprintf("Incoming Value Type: %T", req.AttributeConfig), + ) + + return + } + + configValue, diags := configValuable.ToInt32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + planValuable, ok := req.AttributePlan.(basetypes.Int32Valuable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.AttributePath, + "Invalid Int32 Attribute Plan Modifier Value Type", + "An unexpected value type was encountered while attempting to perform Int32 attribute plan modification. "+ + "The value type must implement the basetypes.Int32Valuable interface. "+ + "Please report this to the provider developers.\n\n"+ + fmt.Sprintf("Incoming Value Type: %T", req.AttributePlan), + ) + + return + } + + planValue, diags := planValuable.ToInt32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + stateValuable, ok := req.AttributeState.(basetypes.Int32Valuable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.AttributePath, + "Invalid Int32 Attribute Plan Modifier Value Type", + "An unexpected value type was encountered while attempting to perform Int32 attribute plan modification. "+ + "The value type must implement the basetypes.Int32Valuable interface. "+ + "Please report this to the provider developers.\n\n"+ + fmt.Sprintf("Incoming Value Type: %T", req.AttributeState), + ) + + return + } + + stateValue, diags := stateValuable.ToInt32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + typable, diags := coerceInt32Typable(ctx, req.AttributePath, planValuable) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + planModifyReq := planmodifier.Int32Request{ + Config: req.Config, + ConfigValue: configValue, + Path: req.AttributePath, + PathExpression: req.AttributePathExpression, + Plan: req.Plan, + PlanValue: planValue, + Private: req.Private, + State: req.State, + StateValue: stateValue, + } + + for _, planModifier := range attribute.Int32PlanModifiers() { + // Instantiate a new response for each request to prevent plan modifiers + // from modifying or removing diagnostics. + planModifyResp := &planmodifier.Int32Response{ + PlanValue: planModifyReq.PlanValue, + Private: resp.Private, + } + + logging.FrameworkTrace( + ctx, + "Calling provider defined planmodifier.Int32", + map[string]interface{}{ + logging.KeyDescription: planModifier.Description(ctx), + }, + ) + + planModifier.PlanModifyInt32(ctx, planModifyReq, planModifyResp) + + logging.FrameworkTrace( + ctx, + "Called provider defined planmodifier.Int32", + map[string]interface{}{ + logging.KeyDescription: planModifier.Description(ctx), + }, + ) + + // Prepare next request with base type. + planModifyReq.PlanValue = planModifyResp.PlanValue + + resp.Diagnostics.Append(planModifyResp.Diagnostics...) + resp.Private = planModifyResp.Private + + if planModifyResp.RequiresReplace { + resp.RequiresReplace.Append(req.AttributePath) + } + + // Only on new errors. + if planModifyResp.Diagnostics.HasError() { + return + } + + // A custom value type must be returned in the final response to prevent + // later correctness errors. + // Reference: https://github.com/hashicorp/terraform-plugin-framework/issues/754 + valuable, valueFromDiags := typable.ValueFromInt32(ctx, planModifyResp.PlanValue) + + resp.Diagnostics.Append(valueFromDiags...) + + // Only on new errors. + if valueFromDiags.HasError() { + return + } + + resp.AttributePlan = valuable + } +} + // AttributePlanModifyInt64 performs all types.Int64 plan modification. func AttributePlanModifyInt64(ctx context.Context, attribute fwxschema.AttributeWithInt64PlanModifiers, req ModifyAttributePlanRequest, resp *ModifyAttributePlanResponse) { // Use basetypes.Int64Valuable until custom types cannot re-implement @@ -2325,6 +2649,17 @@ func NestedAttributeObjectPlanModify(ctx context.Context, o fwschema.NestedAttri } } + // If the nested object itself is null or unknown, skip calling nested + // attribute plan modifiers. Any plan modification from a null or unknown + // object into a known object must occur at the object level to prevent + // the framework from errantly sending a known object when it should remain + // a null/unknown object. + // + // Reference: https://github.com/hashicorp/terraform-plugin-framework/issues/993 + if req.PlanValue.IsNull() || req.PlanValue.IsUnknown() { + return + } + newPlanValueAttributes := req.PlanValue.Attributes() for nestedName, nestedAttr := range o.GetAttributes() { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attribute_validation.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attribute_validation.go index 1fa4883b0af8..98b05f0fb7b5 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attribute_validation.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/attribute_validation.go @@ -111,8 +111,12 @@ func AttributeValidate(ctx context.Context, a fwschema.Attribute, req ValidateAt switch attributeWithValidators := a.(type) { case fwxschema.AttributeWithBoolValidators: AttributeValidateBool(ctx, attributeWithValidators, req, resp) + case fwxschema.AttributeWithFloat32Validators: + AttributeValidateFloat32(ctx, attributeWithValidators, req, resp) case fwxschema.AttributeWithFloat64Validators: AttributeValidateFloat64(ctx, attributeWithValidators, req, resp) + case fwxschema.AttributeWithInt32Validators: + AttributeValidateInt32(ctx, attributeWithValidators, req, resp) case fwxschema.AttributeWithInt64Validators: AttributeValidateInt64(ctx, attributeWithValidators, req, resp) case fwxschema.AttributeWithListValidators: @@ -229,6 +233,71 @@ func AttributeValidateBool(ctx context.Context, attribute fwxschema.AttributeWit } } +// AttributeValidateFloat32 performs all types.Float32 validation. +func AttributeValidateFloat32(ctx context.Context, attribute fwxschema.AttributeWithFloat32Validators, req ValidateAttributeRequest, resp *ValidateAttributeResponse) { + // Use basetypes.Float32Valuable until custom types cannot re-implement + // ValueFromTerraform. Until then, custom types are not technically + // required to implement this interface. This opts to enforce the + // requirement before compatibility promises would interfere. + configValuable, ok := req.AttributeConfig.(basetypes.Float32Valuable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.AttributePath, + "Invalid Float32 Attribute Validator Value Type", + "An unexpected value type was encountered while attempting to perform Float32 attribute validation. "+ + "The value type must implement the basetypes.Float32Valuable interface. "+ + "Please report this to the provider developers.\n\n"+ + fmt.Sprintf("Incoming Value Type: %T", req.AttributeConfig), + ) + + return + } + + configValue, diags := configValuable.ToFloat32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + validateReq := validator.Float32Request{ + Config: req.Config, + ConfigValue: configValue, + Path: req.AttributePath, + PathExpression: req.AttributePathExpression, + } + + for _, attributeValidator := range attribute.Float32Validators() { + // Instantiate a new response for each request to prevent validators + // from modifying or removing diagnostics. + validateResp := &validator.Float32Response{} + + logging.FrameworkTrace( + ctx, + "Calling provider defined validator.Float32", + map[string]interface{}{ + logging.KeyDescription: attributeValidator.Description(ctx), + }, + ) + + attributeValidator.ValidateFloat32(ctx, validateReq, validateResp) + + logging.FrameworkTrace( + ctx, + "Called provider defined validator.Float32", + map[string]interface{}{ + logging.KeyDescription: attributeValidator.Description(ctx), + }, + ) + + resp.Diagnostics.Append(validateResp.Diagnostics...) + } +} + // AttributeValidateFloat64 performs all types.Float64 validation. func AttributeValidateFloat64(ctx context.Context, attribute fwxschema.AttributeWithFloat64Validators, req ValidateAttributeRequest, resp *ValidateAttributeResponse) { // Use basetypes.Float64Valuable until custom types cannot re-implement @@ -294,6 +363,71 @@ func AttributeValidateFloat64(ctx context.Context, attribute fwxschema.Attribute } } +// AttributeValidateInt32 performs all types.Int32 validation. +func AttributeValidateInt32(ctx context.Context, attribute fwxschema.AttributeWithInt32Validators, req ValidateAttributeRequest, resp *ValidateAttributeResponse) { + // Use basetypes.Int32Valuable until custom types cannot re-implement + // ValueFromTerraform. Until then, custom types are not technically + // required to implement this interface. This opts to enforce the + // requirement before compatibility promises would interfere. + configValuable, ok := req.AttributeConfig.(basetypes.Int32Valuable) + + if !ok { + resp.Diagnostics.AddAttributeError( + req.AttributePath, + "Invalid Int32 Attribute Validator Value Type", + "An unexpected value type was encountered while attempting to perform Int32 attribute validation. "+ + "The value type must implement the basetypes.Int32Valuable interface. "+ + "Please report this to the provider developers.\n\n"+ + fmt.Sprintf("Incoming Value Type: %T", req.AttributeConfig), + ) + + return + } + + configValue, diags := configValuable.ToInt32Value(ctx) + + resp.Diagnostics.Append(diags...) + + // Only return early on new errors as the resp.Diagnostics may have errors + // from other attributes. + if diags.HasError() { + return + } + + validateReq := validator.Int32Request{ + Config: req.Config, + ConfigValue: configValue, + Path: req.AttributePath, + PathExpression: req.AttributePathExpression, + } + + for _, attributeValidator := range attribute.Int32Validators() { + // Instantiate a new response for each request to prevent validators + // from modifying or removing diagnostics. + validateResp := &validator.Int32Response{} + + logging.FrameworkTrace( + ctx, + "Calling provider defined validator.Int32", + map[string]interface{}{ + logging.KeyDescription: attributeValidator.Description(ctx), + }, + ) + + attributeValidator.ValidateInt32(ctx, validateReq, validateResp) + + logging.FrameworkTrace( + ctx, + "Called provider defined validator.Int32", + map[string]interface{}{ + logging.KeyDescription: attributeValidator.Description(ctx), + }, + ) + + resp.Diagnostics.Append(validateResp.Diagnostics...) + } +} + // AttributeValidateInt64 performs all types.Int64 validation. func AttributeValidateInt64(ctx context.Context, attribute fwxschema.AttributeWithInt64Validators, req ValidateAttributeRequest, resp *ValidateAttributeResponse) { // Use basetypes.Int64Valuable until custom types cannot re-implement diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server.go index 40fa631f86ae..b6f2bc85e890 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server.go @@ -10,6 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" "github.com/hashicorp/terraform-plugin-framework/internal/logging" @@ -33,6 +34,11 @@ type Server struct { // to [resource.ConfigureRequest.ProviderData]. ResourceConfigureData any + // EphemeralResourceConfigureData is the + // [provider.ConfigureResponse.EphemeralResourceData] field value which is passed + // to [ephemeral.ConfigureRequest.ProviderData]. + EphemeralResourceConfigureData any + // dataSourceSchemas is the cached DataSource Schemas for RPCs that need to // convert configuration data from the protocol. If not found, it will be // fetched from the DataSourceType.GetSchema() method. @@ -56,6 +62,34 @@ type Server struct { // access from race conditions. dataSourceTypesMutex sync.Mutex + // ephemeralResourceSchemas is the cached EphemeralResource Schemas for RPCs that need to + // convert configuration data from the protocol. If not found, it will be + // fetched from the EphemeralResourceType.GetSchema() method. + ephemeralResourceSchemas map[string]fwschema.Schema + + // ephemeralResourceSchemasMutex is a mutex to protect concurrent ephemeralResourceSchemas + // access from race conditions. + ephemeralResourceSchemasMutex sync.RWMutex + + // ephemeralResourceFuncs is the cached EphemeralResource functions for RPCs that need to + // access ephemeral resources. If not found, it will be fetched from the + // Provider.EphemeralResources() method. + ephemeralResourceFuncs map[string]func() ephemeral.EphemeralResource + + // ephemeralResourceFuncsDiags is the cached Diagnostics obtained while populating + // ephemeralResourceFuncs. This is to ensure any warnings or errors are also + // returned appropriately when fetching ephemeralResourceFuncs. + ephemeralResourceFuncsDiags diag.Diagnostics + + // ephemeralResourceFuncsMutex is a mutex to protect concurrent ephemeralResourceFuncs + // access from race conditions. + ephemeralResourceFuncsMutex sync.Mutex + + // deferred indicates an automatic provider deferral. When this is set, + // the provider will automatically defer the PlanResourceChange, ReadResource, + // ImportResourceState, and ReadDataSource RPCs. + deferred *provider.Deferred + // functionDefinitions is the cached Function Definitions for RPCs that need to // convert data from the protocol. If not found, it will be fetched from the // Function.Definition() method. @@ -137,6 +171,19 @@ type Server struct { // resourceTypesMutex is a mutex to protect concurrent resourceTypes // access from race conditions. resourceTypesMutex sync.Mutex + + // resourceBehaviors is the cached Resource behaviors for RPCs that need to + // control framework-specific logic when interacting with a resource. + resourceBehaviors map[string]resource.ResourceBehavior + + // resourceBehaviorsDiags is the cached Diagnostics obtained while populating + // resourceBehaviors. This is to ensure any warnings or errors are also + // returned appropriately when fetching resourceBehaviors. + resourceBehaviorsDiags diag.Diagnostics + + // resourceBehaviorsMutex is a mutex to protect concurrent resourceBehaviors + // access from race conditions. + resourceBehaviorsMutex sync.Mutex } // DataSource returns the DataSource for a given type name. @@ -414,6 +461,78 @@ func (s *Server) Resource(ctx context.Context, typeName string) (resource.Resour return resourceFunc(), diags } +// ResourceBehavior returns the ResourceBehavior for a given type name. +func (s *Server) ResourceBehavior(ctx context.Context, typeName string) (resource.ResourceBehavior, diag.Diagnostics) { + resourceBehaviors, diags := s.ResourceBehaviors(ctx) + + resourceBehavior, ok := resourceBehaviors[typeName] + + if !ok { + diags.AddError( + "Resource Type Not Found", + fmt.Sprintf("No resource type named %q was found in the provider.", typeName), + ) + + return resource.ResourceBehavior{}, diags + } + + return resourceBehavior, diags +} + +// ResourceBehaviors returns a map of ResourceBehavior. The results are cached +// on first use. +func (s *Server) ResourceBehaviors(ctx context.Context) (map[string]resource.ResourceBehavior, diag.Diagnostics) { + logging.FrameworkTrace(ctx, "Checking ResourceBehaviors lock") + s.resourceBehaviorsMutex.Lock() + defer s.resourceBehaviorsMutex.Unlock() + + if s.resourceBehaviors != nil { + return s.resourceBehaviors, s.resourceBehaviorsDiags + } + + providerTypeName := s.ProviderTypeName(ctx) + s.resourceBehaviors = make(map[string]resource.ResourceBehavior) + + resourceFuncs, diags := s.ResourceFuncs(ctx) + s.resourceBehaviorsDiags.Append(diags...) + + for _, resourceFunc := range resourceFuncs { + res := resourceFunc() + + metadataRequest := resource.MetadataRequest{ + ProviderTypeName: providerTypeName, + } + metadataResponse := resource.MetadataResponse{} + + res.Metadata(ctx, metadataRequest, &metadataResponse) + + if metadataResponse.TypeName == "" { + s.resourceBehaviorsDiags.AddError( + "Resource Type Name Missing", + fmt.Sprintf("The %T Resource returned an empty string from the Metadata method. ", res)+ + "This is always an issue with the provider and should be reported to the provider developers.", + ) + continue + } + + logging.FrameworkTrace(ctx, "Found resource type", map[string]interface{}{logging.KeyResourceType: metadataResponse.TypeName}) + + if _, ok := s.resourceBehaviors[metadataResponse.TypeName]; ok { + s.resourceBehaviorsDiags.AddError( + "Duplicate Resource Type Defined", + fmt.Sprintf("The %s resource type name was returned for multiple resources. ", metadataResponse.TypeName)+ + "Resource type names must be unique. "+ + "This is always an issue with the provider and should be reported to the provider developers.", + ) + continue + } + + s.resourceBehaviors[metadataResponse.TypeName] = metadataResponse.ResourceBehavior + } + + return s.resourceBehaviors, s.resourceBehaviorsDiags +} + // ResourceFuncs returns a map of Resource functions. The results are cached // on first use. func (s *Server) ResourceFuncs(ctx context.Context) (map[string]func() resource.Resource, diag.Diagnostics) { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_closeephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_closeephemeralresource.go new file mode 100644 index 000000000000..a3d4d68f65ce --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_closeephemeralresource.go @@ -0,0 +1,76 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwserver + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" +) + +// CloseEphemeralResourceRequest is the framework server request for the +// CloseEphemeralResource RPC. +type CloseEphemeralResourceRequest struct { + Private *privatestate.Data + EphemeralResourceSchema fwschema.Schema + EphemeralResource ephemeral.EphemeralResource +} + +// CloseEphemeralResourceResponse is the framework server response for the +// CloseEphemeralResource RPC. +type CloseEphemeralResourceResponse struct { + Diagnostics diag.Diagnostics +} + +// CloseEphemeralResource implements the framework server CloseEphemeralResource RPC. +func (s *Server) CloseEphemeralResource(ctx context.Context, req *CloseEphemeralResourceRequest, resp *CloseEphemeralResourceResponse) { + if req == nil { + return + } + + if ephemeralResourceWithConfigure, ok := req.EphemeralResource.(ephemeral.EphemeralResourceWithConfigure); ok { + logging.FrameworkTrace(ctx, "EphemeralResource implements EphemeralResourceWithConfigure") + + configureReq := ephemeral.ConfigureRequest{ + ProviderData: s.EphemeralResourceConfigureData, + } + configureResp := ephemeral.ConfigureResponse{} + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Configure") + ephemeralResourceWithConfigure.Configure(ctx, configureReq, &configureResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Configure") + + resp.Diagnostics.Append(configureResp.Diagnostics...) + + if resp.Diagnostics.HasError() { + return + } + } + + resourceWithClose, ok := req.EphemeralResource.(ephemeral.EphemeralResourceWithClose) + if !ok { + // Terraform will always give the ephemeral resource an opportunity to close, so if it's not implemented we can safely return. + return + } + + privateProviderData := privatestate.EmptyProviderData(ctx) + if req.Private != nil && req.Private.Provider != nil { + privateProviderData = req.Private.Provider + } + + closeReq := ephemeral.CloseRequest{ + Private: privateProviderData, + } + closeResp := ephemeral.CloseResponse{} + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Close") + resourceWithClose.Close(ctx, closeReq, &closeResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Close") + + resp.Diagnostics = closeResp.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_configureprovider.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_configureprovider.go index 3f841887fcac..0b1807bce8c7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_configureprovider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_configureprovider.go @@ -22,6 +22,20 @@ func (s *Server) ConfigureProvider(ctx context.Context, req *provider.ConfigureR logging.FrameworkTrace(ctx, "Called provider defined Provider Configure") + if resp.Deferred != nil { + if !req.ClientCapabilities.DeferralAllowed { + resp.Diagnostics.AddError("Invalid Deferred Provider Response", + "Provider configured a deferred response for all resources and data sources but the Terraform request "+ + "did not indicate support for deferred actions. This is an issue with the provider and should be reported to the provider developers.") + return + } + + logging.FrameworkDebug(ctx, "Provider has configured a deferred response, "+ + "all associated resources and data sources will automatically return a deferred response.") + } + + s.deferred = resp.Deferred s.DataSourceConfigureData = resp.DataSourceData s.ResourceConfigureData = resp.ResourceData + s.EphemeralResourceConfigureData = resp.EphemeralResourceData } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_ephemeralresources.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_ephemeralresources.go new file mode 100644 index 000000000000..15d54e118120 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_ephemeralresources.go @@ -0,0 +1,198 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwserver + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/provider" +) + +// EphemeralResource returns the EphemeralResource for a given type name. +func (s *Server) EphemeralResource(ctx context.Context, typeName string) (ephemeral.EphemeralResource, diag.Diagnostics) { + ephemeralResourceFuncs, diags := s.EphemeralResourceFuncs(ctx) + + ephemeralResourceFunc, ok := ephemeralResourceFuncs[typeName] + + if !ok { + diags.AddError( + "Ephemeral Resource Type Not Found", + fmt.Sprintf("No ephemeral resource type named %q was found in the provider.", typeName), + ) + + return nil, diags + } + + return ephemeralResourceFunc(), diags +} + +// EphemeralResourceFuncs returns a map of EphemeralResource functions. The results are cached +// on first use. +func (s *Server) EphemeralResourceFuncs(ctx context.Context) (map[string]func() ephemeral.EphemeralResource, diag.Diagnostics) { + logging.FrameworkTrace(ctx, "Checking EphemeralResourceFuncs lock") + s.ephemeralResourceFuncsMutex.Lock() + defer s.ephemeralResourceFuncsMutex.Unlock() + + if s.ephemeralResourceFuncs != nil { + return s.ephemeralResourceFuncs, s.ephemeralResourceFuncsDiags + } + + providerTypeName := s.ProviderTypeName(ctx) + s.ephemeralResourceFuncs = make(map[string]func() ephemeral.EphemeralResource) + + provider, ok := s.Provider.(provider.ProviderWithEphemeralResources) + + if !ok { + // Only ephemeral resource specific RPCs should return diagnostics about the + // provider not implementing ephemeral resources or missing ephemeral resources. + return s.ephemeralResourceFuncs, s.ephemeralResourceFuncsDiags + } + + logging.FrameworkTrace(ctx, "Calling provider defined Provider EphemeralResources") + ephemeralResourceFuncsSlice := provider.EphemeralResources(ctx) + logging.FrameworkTrace(ctx, "Called provider defined Provider EphemeralResources") + + for _, ephemeralResourceFunc := range ephemeralResourceFuncsSlice { + ephemeralResource := ephemeralResourceFunc() + + ephemeralResourceTypeNameReq := ephemeral.MetadataRequest{ + ProviderTypeName: providerTypeName, + } + ephemeralResourceTypeNameResp := ephemeral.MetadataResponse{} + + ephemeralResource.Metadata(ctx, ephemeralResourceTypeNameReq, &ephemeralResourceTypeNameResp) + + if ephemeralResourceTypeNameResp.TypeName == "" { + s.ephemeralResourceFuncsDiags.AddError( + "Ephemeral Resource Type Name Missing", + fmt.Sprintf("The %T EphemeralResource returned an empty string from the Metadata method. ", ephemeralResource)+ + "This is always an issue with the provider and should be reported to the provider developers.", + ) + continue + } + + logging.FrameworkTrace(ctx, "Found ephemeral resource type", map[string]interface{}{logging.KeyEphemeralResourceType: ephemeralResourceTypeNameResp.TypeName}) + + if _, ok := s.ephemeralResourceFuncs[ephemeralResourceTypeNameResp.TypeName]; ok { + s.ephemeralResourceFuncsDiags.AddError( + "Duplicate Ephemeral Resource Type Defined", + fmt.Sprintf("The %s ephemeral resource type name was returned for multiple ephemeral resources. ", ephemeralResourceTypeNameResp.TypeName)+ + "Ephemeral resource type names must be unique. "+ + "This is always an issue with the provider and should be reported to the provider developers.", + ) + continue + } + + s.ephemeralResourceFuncs[ephemeralResourceTypeNameResp.TypeName] = ephemeralResourceFunc + } + + return s.ephemeralResourceFuncs, s.ephemeralResourceFuncsDiags +} + +// EphemeralResourceMetadatas returns a slice of EphemeralResourceMetadata for the GetMetadata +// RPC. +func (s *Server) EphemeralResourceMetadatas(ctx context.Context) ([]EphemeralResourceMetadata, diag.Diagnostics) { + ephemeralResourceFuncs, diags := s.EphemeralResourceFuncs(ctx) + + ephemeralResourceMetadatas := make([]EphemeralResourceMetadata, 0, len(ephemeralResourceFuncs)) + + for typeName := range ephemeralResourceFuncs { + ephemeralResourceMetadatas = append(ephemeralResourceMetadatas, EphemeralResourceMetadata{ + TypeName: typeName, + }) + } + + return ephemeralResourceMetadatas, diags +} + +// EphemeralResourceSchema returns the EphemeralResource Schema for the given type name and +// caches the result for later EphemeralResource operations. +func (s *Server) EphemeralResourceSchema(ctx context.Context, typeName string) (fwschema.Schema, diag.Diagnostics) { + s.ephemeralResourceSchemasMutex.RLock() + ephemeralResourceSchema, ok := s.ephemeralResourceSchemas[typeName] + s.ephemeralResourceSchemasMutex.RUnlock() + + if ok { + return ephemeralResourceSchema, nil + } + + var diags diag.Diagnostics + + ephemeralResource, ephemeralResourceDiags := s.EphemeralResource(ctx, typeName) + + diags.Append(ephemeralResourceDiags...) + + if diags.HasError() { + return nil, diags + } + + schemaReq := ephemeral.SchemaRequest{} + schemaResp := ephemeral.SchemaResponse{} + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Schema method", map[string]interface{}{logging.KeyEphemeralResourceType: typeName}) + ephemeralResource.Schema(ctx, schemaReq, &schemaResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Schema method", map[string]interface{}{logging.KeyEphemeralResourceType: typeName}) + + diags.Append(schemaResp.Diagnostics...) + + if diags.HasError() { + return schemaResp.Schema, diags + } + + s.ephemeralResourceSchemasMutex.Lock() + + if s.ephemeralResourceSchemas == nil { + s.ephemeralResourceSchemas = make(map[string]fwschema.Schema) + } + + s.ephemeralResourceSchemas[typeName] = schemaResp.Schema + + s.ephemeralResourceSchemasMutex.Unlock() + + return schemaResp.Schema, diags +} + +// EphemeralResourceSchemas returns a map of EphemeralResource Schemas for the +// GetProviderSchema RPC without caching since not all schemas are guaranteed to +// be necessary for later provider operations. The schema implementations are +// also validated. +func (s *Server) EphemeralResourceSchemas(ctx context.Context) (map[string]fwschema.Schema, diag.Diagnostics) { + ephemeralResourceSchemas := make(map[string]fwschema.Schema) + + ephemeralResourceFuncs, diags := s.EphemeralResourceFuncs(ctx) + + for typeName, ephemeralResourceFunc := range ephemeralResourceFuncs { + ephemeralResource := ephemeralResourceFunc() + + schemaReq := ephemeral.SchemaRequest{} + schemaResp := ephemeral.SchemaResponse{} + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Schema", map[string]interface{}{logging.KeyEphemeralResourceType: typeName}) + ephemeralResource.Schema(ctx, schemaReq, &schemaResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Schema", map[string]interface{}{logging.KeyEphemeralResourceType: typeName}) + + diags.Append(schemaResp.Diagnostics...) + + if schemaResp.Diagnostics.HasError() { + continue + } + + validateDiags := schemaResp.Schema.ValidateImplementation(ctx) + + diags.Append(validateDiags...) + + if validateDiags.HasError() { + continue + } + + ephemeralResourceSchemas[typeName] = schemaResp.Schema + } + + return ephemeralResourceSchemas, diags +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_getmetadata.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_getmetadata.go index ebd0728a98be..458694f2ba12 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_getmetadata.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_getmetadata.go @@ -18,6 +18,7 @@ type GetMetadataRequest struct{} type GetMetadataResponse struct { DataSources []DataSourceMetadata Diagnostics diag.Diagnostics + EphemeralResources []EphemeralResourceMetadata Functions []FunctionMetadata Resources []ResourceMetadata ServerCapabilities *ServerCapabilities @@ -30,6 +31,13 @@ type DataSourceMetadata struct { TypeName string } +// EphemeralResourceMetadata is the framework server equivalent of the +// tfprotov5.EphemeralResourceMetadata and tfprotov6.EphemeralResourceMetadata types. +type EphemeralResourceMetadata struct { + // TypeName is the name of the ephemeral resource. + TypeName string +} + // FunctionMetadata is the framework server equivalent of the // tfprotov5.FunctionMetadata and tfprotov6.FunctionMetadata types. type FunctionMetadata struct { @@ -47,6 +55,7 @@ type ResourceMetadata struct { // GetMetadata implements the framework server GetMetadata RPC. func (s *Server) GetMetadata(ctx context.Context, req *GetMetadataRequest, resp *GetMetadataResponse) { resp.DataSources = []DataSourceMetadata{} + resp.EphemeralResources = []EphemeralResourceMetadata{} resp.Functions = []FunctionMetadata{} resp.Resources = []ResourceMetadata{} resp.ServerCapabilities = s.ServerCapabilities() @@ -55,6 +64,10 @@ func (s *Server) GetMetadata(ctx context.Context, req *GetMetadataRequest, resp resp.Diagnostics.Append(diags...) + ephemeralResourceMetadatas, diags := s.EphemeralResourceMetadatas(ctx) + + resp.Diagnostics.Append(diags...) + functionMetadatas, diags := s.FunctionMetadatas(ctx) resp.Diagnostics.Append(diags...) @@ -68,6 +81,7 @@ func (s *Server) GetMetadata(ctx context.Context, req *GetMetadataRequest, resp } resp.DataSources = datasourceMetadatas + resp.EphemeralResources = ephemeralResourceMetadatas resp.Functions = functionMetadatas resp.Resources = resourceMetadatas } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_getproviderschema.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_getproviderschema.go index afcca8352dd2..b8061dd10104 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_getproviderschema.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_getproviderschema.go @@ -18,13 +18,14 @@ type GetProviderSchemaRequest struct{} // GetProviderSchemaResponse is the framework server response for the // GetProviderSchema RPC. type GetProviderSchemaResponse struct { - ServerCapabilities *ServerCapabilities - Provider fwschema.Schema - ProviderMeta fwschema.Schema - ResourceSchemas map[string]fwschema.Schema - DataSourceSchemas map[string]fwschema.Schema - FunctionDefinitions map[string]function.Definition - Diagnostics diag.Diagnostics + ServerCapabilities *ServerCapabilities + Provider fwschema.Schema + ProviderMeta fwschema.Schema + ResourceSchemas map[string]fwschema.Schema + DataSourceSchemas map[string]fwschema.Schema + EphemeralResourceSchemas map[string]fwschema.Schema + FunctionDefinitions map[string]function.Definition + Diagnostics diag.Diagnostics } // GetProviderSchema implements the framework server GetProviderSchema RPC. @@ -80,4 +81,14 @@ func (s *Server) GetProviderSchema(ctx context.Context, req *GetProviderSchemaRe } resp.FunctionDefinitions = functions + + ephemeralResourceSchemas, diags := s.EphemeralResourceSchemas(ctx) + + resp.Diagnostics.Append(diags...) + + if resp.Diagnostics.HasError() { + return + } + + resp.EphemeralResourceSchemas = ephemeralResourceSchemas } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_importresourcestate.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_importresourcestate.go index d89cee3575d2..7288cc3e70d1 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_importresourcestate.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_importresourcestate.go @@ -6,6 +6,8 @@ package fwserver import ( "context" + "github.com/hashicorp/terraform-plugin-go/tftypes" + "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/logging" "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" @@ -35,6 +37,8 @@ type ImportResourceStateRequest struct { // TypeName is the resource type name, which is necessary for populating // the ImportedResource TypeName of the ImportResourceStateResponse. TypeName string + + ClientCapabilities resource.ImportStateClientCapabilities } // ImportResourceStateResponse is the framework server response for the @@ -42,6 +46,7 @@ type ImportResourceStateRequest struct { type ImportResourceStateResponse struct { Diagnostics diag.Diagnostics ImportedResources []ImportedResource + Deferred *resource.Deferred } // ImportResourceState implements the framework server ImportResourceState RPC. @@ -50,6 +55,29 @@ func (s *Server) ImportResourceState(ctx context.Context, req *ImportResourceSta return } + if s.deferred != nil { + logging.FrameworkDebug(ctx, "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.deferred.Reason.String(), + }, + ) + // Send an unknown value for the imported object + resp.ImportedResources = []ImportedResource{ + { + State: tfsdk.State{ + Raw: tftypes.NewValue(req.EmptyState.Schema.Type().TerraformType(ctx), tftypes.UnknownValue), + Schema: req.EmptyState.Schema, + }, + TypeName: req.TypeName, + Private: &privatestate.Data{}, + }, + } + resp.Deferred = &resource.Deferred{ + Reason: resource.DeferredReason(s.deferred.Reason), + } + return + } + if resourceWithConfigure, ok := req.Resource.(resource.ResourceWithConfigure); ok { logging.FrameworkTrace(ctx, "Resource implements ResourceWithConfigure") @@ -90,7 +118,8 @@ func (s *Server) ImportResourceState(ctx context.Context, req *ImportResourceSta } importReq := resource.ImportStateRequest{ - ID: req.ID, + ID: req.ID, + ClientCapabilities: req.ClientCapabilities, } privateProviderData := privatestate.EmptyProviderData(ctx) @@ -128,6 +157,7 @@ func (s *Server) ImportResourceState(ctx context.Context, req *ImportResourceSta private.Provider = importResp.Private } + resp.Deferred = importResp.Deferred resp.ImportedResources = []ImportedResource{ { State: importResp.State, diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_openephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_openephemeralresource.go new file mode 100644 index 000000000000..18dc09bcfbc9 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_openephemeralresource.go @@ -0,0 +1,113 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwserver + +import ( + "context" + "time" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// OpenEphemeralResourceRequest is the framework server request for the +// OpenEphemeralResource RPC. +type OpenEphemeralResourceRequest struct { + ClientCapabilities ephemeral.OpenClientCapabilities + Config *tfsdk.Config + EphemeralResourceSchema fwschema.Schema + EphemeralResource ephemeral.EphemeralResource +} + +// OpenEphemeralResourceResponse is the framework server response for the +// OpenEphemeralResource RPC. +type OpenEphemeralResourceResponse struct { + Result *tfsdk.EphemeralResultData + Private *privatestate.Data + Diagnostics diag.Diagnostics + RenewAt time.Time + Deferred *ephemeral.Deferred +} + +// OpenEphemeralResource implements the framework server OpenEphemeralResource RPC. +func (s *Server) OpenEphemeralResource(ctx context.Context, req *OpenEphemeralResourceRequest, resp *OpenEphemeralResourceResponse) { + if req == nil { + return + } + + if s.deferred != nil { + logging.FrameworkDebug(ctx, "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.deferred.Reason.String(), + }, + ) + // Send an unknown value for the ephemeral resource. This will replace any configured values + // for ease of implementation as Terraform Core currently does not use these values for + // deferred actions, but this design could change in the future. + resp.Result = &tfsdk.EphemeralResultData{ + Raw: tftypes.NewValue(req.EphemeralResourceSchema.Type().TerraformType(ctx), tftypes.UnknownValue), + Schema: req.EphemeralResourceSchema, + } + resp.Deferred = &ephemeral.Deferred{ + Reason: ephemeral.DeferredReason(s.deferred.Reason), + } + return + } + + if ephemeralResourceWithConfigure, ok := req.EphemeralResource.(ephemeral.EphemeralResourceWithConfigure); ok { + logging.FrameworkTrace(ctx, "EphemeralResource implements EphemeralResourceWithConfigure") + + configureReq := ephemeral.ConfigureRequest{ + ProviderData: s.EphemeralResourceConfigureData, + } + configureResp := ephemeral.ConfigureResponse{} + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Configure") + ephemeralResourceWithConfigure.Configure(ctx, configureReq, &configureResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Configure") + + resp.Diagnostics.Append(configureResp.Diagnostics...) + + if resp.Diagnostics.HasError() { + return + } + } + + openReq := ephemeral.OpenRequest{ + ClientCapabilities: req.ClientCapabilities, + Config: tfsdk.Config{ + Schema: req.EphemeralResourceSchema, + }, + } + openResp := ephemeral.OpenResponse{ + Result: tfsdk.EphemeralResultData{ + Schema: req.EphemeralResourceSchema, + }, + Private: privatestate.EmptyProviderData(ctx), + } + + if req.Config != nil { + openReq.Config = *req.Config + openResp.Result.Raw = req.Config.Raw.Copy() + } + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Open") + req.EphemeralResource.Open(ctx, openReq, &openResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Open") + + resp.Diagnostics = openResp.Diagnostics + resp.Result = &openResp.Result + resp.RenewAt = openResp.RenewAt + resp.Deferred = openResp.Deferred + + resp.Private = privatestate.EmptyData(ctx) + if openResp.Private != nil { + resp.Private.Provider = openResp.Private + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_planresourcechange.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_planresourcechange.go index f769eea3fd71..d66fc4897df5 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_planresourcechange.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_planresourcechange.go @@ -26,18 +26,21 @@ import ( // PlanResourceChangeRequest is the framework server request for the // PlanResourceChange RPC. type PlanResourceChangeRequest struct { - Config *tfsdk.Config - PriorPrivate *privatestate.Data - PriorState *tfsdk.State - ProposedNewState *tfsdk.Plan - ProviderMeta *tfsdk.Config - ResourceSchema fwschema.Schema - Resource resource.Resource + ClientCapabilities resource.ModifyPlanClientCapabilities + Config *tfsdk.Config + PriorPrivate *privatestate.Data + PriorState *tfsdk.State + ProposedNewState *tfsdk.Plan + ProviderMeta *tfsdk.Config + ResourceSchema fwschema.Schema + Resource resource.Resource + ResourceBehavior resource.ResourceBehavior } // PlanResourceChangeResponse is the framework server response for the // PlanResourceChange RPC. type PlanResourceChangeResponse struct { + Deferred *resource.Deferred Diagnostics diag.Diagnostics PlannedPrivate *privatestate.Data PlannedState *tfsdk.State @@ -50,6 +53,24 @@ func (s *Server) PlanResourceChange(ctx context.Context, req *PlanResourceChange return } + // Skip ModifyPlan for automatic deferrals with proposed new state as a best effort for PlannedState + // unless ProviderDeferredBehavior.EnablePlanModification is true. + if s.deferred != nil && !req.ResourceBehavior.ProviderDeferred.EnablePlanModification { + logging.FrameworkDebug(ctx, "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.deferred.Reason.String(), + }, + ) + + resp.PlannedState = planToState(*req.ProposedNewState) + resp.PlannedPrivate = req.PriorPrivate + resp.Deferred = &resource.Deferred{ + Reason: resource.DeferredReason(s.deferred.Reason), + } + + return + } + if resourceWithConfigure, ok := req.Resource.(resource.ResourceWithConfigure); ok { logging.FrameworkTrace(ctx, "Resource implements ResourceWithConfigure") @@ -260,10 +281,11 @@ func (s *Server) PlanResourceChange(ctx context.Context, req *PlanResourceChange logging.FrameworkTrace(ctx, "Resource implements ResourceWithModifyPlan") modifyPlanReq := resource.ModifyPlanRequest{ - Config: *req.Config, - Plan: stateToPlan(*resp.PlannedState), - State: *req.PriorState, - Private: resp.PlannedPrivate.Provider, + ClientCapabilities: req.ClientCapabilities, + Config: *req.Config, + Plan: stateToPlan(*resp.PlannedState), + State: *req.PriorState, + Private: resp.PlannedPrivate.Provider, } if req.ProviderMeta != nil { @@ -285,6 +307,23 @@ func (s *Server) PlanResourceChange(ctx context.Context, req *PlanResourceChange resp.PlannedState = planToState(modifyPlanResp.Plan) resp.RequiresReplace = append(resp.RequiresReplace, modifyPlanResp.RequiresReplace...) resp.PlannedPrivate.Provider = modifyPlanResp.Private + resp.Deferred = modifyPlanResp.Deferred + + // Provider deferred response is present, add the deferred response alongside the provider-modified plan + if s.deferred != nil { + logging.FrameworkDebug(ctx, "Provider has deferred response configured, returning deferred response with modified plan.") + // Only set the response to the provider configured deferred reason if there is no resource configured deferred reason + if resp.Deferred == nil { + resp.Deferred = &resource.Deferred{ + Reason: resource.DeferredReason(s.deferred.Reason), + } + } else { + logging.FrameworkDebug(ctx, fmt.Sprintf("Resource has deferred reason configured, "+ + "replacing provider deferred reason: %s with resource deferred reason: %s", + s.deferred.Reason.String(), modifyPlanResp.Deferred.Reason.String())) + } + return + } } // Ensure deterministic RequiresReplace by sorting and deduplicating @@ -369,10 +408,18 @@ func MarkComputedNilsAsUnknown(ctx context.Context, config tftypes.Value, resour if a.BoolDefaultValue() != nil { return val, nil } + case fwschema.AttributeWithFloat32DefaultValue: + if a.Float32DefaultValue() != nil { + return val, nil + } case fwschema.AttributeWithFloat64DefaultValue: if a.Float64DefaultValue() != nil { return val, nil } + case fwschema.AttributeWithInt32DefaultValue: + if a.Int32DefaultValue() != nil { + return val, nil + } case fwschema.AttributeWithInt64DefaultValue: if a.Int64DefaultValue() != nil { return val, nil diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_readdatasource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_readdatasource.go index a95cd35dc83c..173282321d67 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_readdatasource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_readdatasource.go @@ -6,6 +6,8 @@ package fwserver import ( "context" + "github.com/hashicorp/terraform-plugin-go/tftypes" + "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" @@ -17,15 +19,17 @@ import ( // ReadDataSourceRequest is the framework server request for the // ReadDataSource RPC. type ReadDataSourceRequest struct { - Config *tfsdk.Config - DataSourceSchema fwschema.Schema - DataSource datasource.DataSource - ProviderMeta *tfsdk.Config + ClientCapabilities datasource.ReadClientCapabilities + Config *tfsdk.Config + DataSourceSchema fwschema.Schema + DataSource datasource.DataSource + ProviderMeta *tfsdk.Config } // ReadDataSourceResponse is the framework server response for the // ReadDataSource RPC. type ReadDataSourceResponse struct { + Deferred *datasource.Deferred Diagnostics diag.Diagnostics State *tfsdk.State } @@ -36,6 +40,25 @@ func (s *Server) ReadDataSource(ctx context.Context, req *ReadDataSourceRequest, return } + if s.deferred != nil { + logging.FrameworkDebug(ctx, "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.deferred.Reason.String(), + }, + ) + // Send an unknown value for the data source. This will replace any configured values + // for ease of implementation as Terraform Core currently does not use these values for + // deferred actions, but this design could change in the future. + resp.State = &tfsdk.State{ + Raw: tftypes.NewValue(req.DataSourceSchema.Type().TerraformType(ctx), tftypes.UnknownValue), + Schema: req.DataSourceSchema, + } + resp.Deferred = &datasource.Deferred{ + Reason: datasource.DeferredReason(s.deferred.Reason), + } + return + } + if dataSourceWithConfigure, ok := req.DataSource.(datasource.DataSourceWithConfigure); ok { logging.FrameworkTrace(ctx, "DataSource implements DataSourceWithConfigure") @@ -56,6 +79,7 @@ func (s *Server) ReadDataSource(ctx context.Context, req *ReadDataSourceRequest, } readReq := datasource.ReadRequest{ + ClientCapabilities: req.ClientCapabilities, Config: tfsdk.Config{ Schema: req.DataSourceSchema, }, @@ -81,6 +105,7 @@ func (s *Server) ReadDataSource(ctx context.Context, req *ReadDataSourceRequest, resp.Diagnostics = readResp.Diagnostics resp.State = &readResp.State + resp.Deferred = readResp.Deferred if resp.Diagnostics.HasError() { return diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_readresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_readresource.go index 172a4800999a..628a2e445a44 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_readresource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_readresource.go @@ -17,15 +17,17 @@ import ( // ReadResourceRequest is the framework server request for the // ReadResource RPC. type ReadResourceRequest struct { - CurrentState *tfsdk.State - Resource resource.Resource - Private *privatestate.Data - ProviderMeta *tfsdk.Config + ClientCapabilities resource.ReadClientCapabilities + CurrentState *tfsdk.State + Resource resource.Resource + Private *privatestate.Data + ProviderMeta *tfsdk.Config } // ReadResourceResponse is the framework server response for the // ReadResource RPC. type ReadResourceResponse struct { + Deferred *resource.Deferred Diagnostics diag.Diagnostics NewState *tfsdk.State Private *privatestate.Data @@ -47,6 +49,19 @@ func (s *Server) ReadResource(ctx context.Context, req *ReadResourceRequest, res return } + if s.deferred != nil { + logging.FrameworkDebug(ctx, "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.deferred.Reason.String(), + }, + ) + resp.NewState = req.CurrentState + resp.Deferred = &resource.Deferred{ + Reason: resource.DeferredReason(s.deferred.Reason), + } + return + } + if resourceWithConfigure, ok := req.Resource.(resource.ResourceWithConfigure); ok { logging.FrameworkTrace(ctx, "Resource implements ResourceWithConfigure") @@ -67,6 +82,7 @@ func (s *Server) ReadResource(ctx context.Context, req *ReadResourceRequest, res } readReq := resource.ReadRequest{ + ClientCapabilities: req.ClientCapabilities, State: tfsdk.State{ Schema: req.CurrentState.Schema, Raw: req.CurrentState.Raw.Copy(), @@ -103,6 +119,7 @@ func (s *Server) ReadResource(ctx context.Context, req *ReadResourceRequest, res resp.Diagnostics = readResp.Diagnostics resp.NewState = &readResp.State + resp.Deferred = readResp.Deferred if readResp.Private != nil { if resp.Private == nil { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_renewephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_renewephemeralresource.go new file mode 100644 index 000000000000..d23308de6347 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_renewephemeralresource.go @@ -0,0 +1,98 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwserver + +import ( + "context" + "time" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" +) + +// RenewEphemeralResourceRequest is the framework server request for the +// RenewEphemeralResource RPC. +type RenewEphemeralResourceRequest struct { + Private *privatestate.Data + EphemeralResourceSchema fwschema.Schema + EphemeralResource ephemeral.EphemeralResource +} + +// RenewEphemeralResourceResponse is the framework server response for the +// RenewEphemeralResource RPC. +type RenewEphemeralResourceResponse struct { + Private *privatestate.Data + Diagnostics diag.Diagnostics + RenewAt time.Time +} + +// RenewEphemeralResource implements the framework server RenewEphemeralResource RPC. +func (s *Server) RenewEphemeralResource(ctx context.Context, req *RenewEphemeralResourceRequest, resp *RenewEphemeralResourceResponse) { + if req == nil { + return + } + + if ephemeralResourceWithConfigure, ok := req.EphemeralResource.(ephemeral.EphemeralResourceWithConfigure); ok { + logging.FrameworkTrace(ctx, "EphemeralResource implements EphemeralResourceWithConfigure") + + configureReq := ephemeral.ConfigureRequest{ + ProviderData: s.EphemeralResourceConfigureData, + } + configureResp := ephemeral.ConfigureResponse{} + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Configure") + ephemeralResourceWithConfigure.Configure(ctx, configureReq, &configureResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Configure") + + resp.Diagnostics.Append(configureResp.Diagnostics...) + + if resp.Diagnostics.HasError() { + return + } + } + + resourceWithRenew, ok := req.EphemeralResource.(ephemeral.EphemeralResourceWithRenew) + if !ok { + resp.Diagnostics.AddError( + "Ephemeral Resource Renew Not Implemented", + "An unexpected error was encountered when renewing the ephemeral resource. Terraform sent a renewal request for an "+ + "ephemeral resource that has not implemented renewal logic.\n\n"+ + "Please report this to the provider developer.", + ) + return + } + + // Ensure that resp.Private is never nil. + resp.Private = privatestate.EmptyData(ctx) + if req.Private != nil { + // Overwrite resp.Private with req.Private providing it is not nil. + resp.Private = req.Private + + // Ensure that resp.Private.Provider is never nil. + if resp.Private.Provider == nil { + resp.Private.Provider = privatestate.EmptyProviderData(ctx) + } + } + + renewReq := ephemeral.RenewRequest{ + Private: resp.Private.Provider, + } + renewResp := ephemeral.RenewResponse{ + Private: renewReq.Private, + } + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Renew") + resourceWithRenew.Renew(ctx, renewReq, &renewResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Renew") + + resp.Diagnostics = renewResp.Diagnostics + resp.RenewAt = renewResp.RenewAt + + if renewResp.Private != nil { + resp.Private.Provider = renewResp.Private + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_validateephemeralresourceconfig.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_validateephemeralresourceconfig.go new file mode 100644 index 000000000000..a99a0dbfb8d5 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwserver/server_validateephemeralresourceconfig.go @@ -0,0 +1,109 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwserver + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" +) + +// ValidateEphemeralResourceConfigRequest is the framework server request for the +// ValidateEphemeralResourceConfig RPC. +type ValidateEphemeralResourceConfigRequest struct { + Config *tfsdk.Config + EphemeralResource ephemeral.EphemeralResource +} + +// ValidateEphemeralResourceConfigResponse is the framework server response for the +// ValidateEphemeralResourceConfig RPC. +type ValidateEphemeralResourceConfigResponse struct { + Diagnostics diag.Diagnostics +} + +// ValidateEphemeralResourceConfig implements the framework server ValidateEphemeralResourceConfig RPC. +func (s *Server) ValidateEphemeralResourceConfig(ctx context.Context, req *ValidateEphemeralResourceConfigRequest, resp *ValidateEphemeralResourceConfigResponse) { + if req == nil || req.Config == nil { + return + } + + if ephemeralResourceWithConfigure, ok := req.EphemeralResource.(ephemeral.EphemeralResourceWithConfigure); ok { + logging.FrameworkTrace(ctx, "EphemeralResource implements EphemeralResourceWithConfigure") + + configureReq := ephemeral.ConfigureRequest{ + ProviderData: s.EphemeralResourceConfigureData, + } + configureResp := ephemeral.ConfigureResponse{} + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource Configure") + ephemeralResourceWithConfigure.Configure(ctx, configureReq, &configureResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource Configure") + + resp.Diagnostics.Append(configureResp.Diagnostics...) + + if resp.Diagnostics.HasError() { + return + } + } + + vdscReq := ephemeral.ValidateConfigRequest{ + Config: *req.Config, + } + + if ephemeralResourceWithConfigValidators, ok := req.EphemeralResource.(ephemeral.EphemeralResourceWithConfigValidators); ok { + logging.FrameworkTrace(ctx, "EphemeralResource implements EphemeralResourceWithConfigValidators") + + for _, configValidator := range ephemeralResourceWithConfigValidators.ConfigValidators(ctx) { + // Instantiate a new response for each request to prevent validators + // from modifying or removing diagnostics. + vdscResp := &ephemeral.ValidateConfigResponse{} + + logging.FrameworkTrace( + ctx, + "Calling provider defined EphemeralResourceConfigValidator", + map[string]interface{}{ + logging.KeyDescription: configValidator.Description(ctx), + }, + ) + configValidator.ValidateEphemeralResource(ctx, vdscReq, vdscResp) + logging.FrameworkTrace( + ctx, + "Called provider defined EphemeralResourceConfigValidator", + map[string]interface{}{ + logging.KeyDescription: configValidator.Description(ctx), + }, + ) + + resp.Diagnostics.Append(vdscResp.Diagnostics...) + } + } + + if ephemeralResourceWithValidateConfig, ok := req.EphemeralResource.(ephemeral.EphemeralResourceWithValidateConfig); ok { + logging.FrameworkTrace(ctx, "EphemeralResource implements EphemeralResourceWithValidateConfig") + + // Instantiate a new response for each request to prevent validators + // from modifying or removing diagnostics. + vdscResp := &ephemeral.ValidateConfigResponse{} + + logging.FrameworkTrace(ctx, "Calling provider defined EphemeralResource ValidateConfig") + ephemeralResourceWithValidateConfig.ValidateConfig(ctx, vdscReq, vdscResp) + logging.FrameworkTrace(ctx, "Called provider defined EphemeralResource ValidateConfig") + + resp.Diagnostics.Append(vdscResp.Diagnostics...) + } + + validateSchemaReq := ValidateSchemaRequest{ + Config: *req.Config, + } + // Instantiate a new response for each request to prevent validators + // from modifying or removing diagnostics. + validateSchemaResp := ValidateSchemaResponse{} + + SchemaValidate(ctx, req.Config.Schema, validateSchemaReq, &validateSchemaResp) + + resp.Diagnostics.Append(validateSchemaResp.Diagnostics...) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwtype/missing_underlying_type_validation.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwtype/missing_underlying_type_validation.go new file mode 100644 index 000000000000..9d048113baa1 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/fwtype/missing_underlying_type_validation.go @@ -0,0 +1,81 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fwtype + +import ( + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// ContainsMissingUnderlyingType will return true if an attr.Type is +// a complex type that either is or contains any collection types with missing +// element or attribute types. Primitives will return false. Nil will return +// true. +func ContainsMissingUnderlyingType(typ attr.Type) bool { + // The below logic must use AttrTypes/ElemType/ElemTypes directly, or the + // types package will return the unexported missingType type, which cannot + // be caught here. + switch attrType := typ.(type) { + case nil: + return true + case basetypes.ListType: + return ContainsMissingUnderlyingType(attrType.ElemType) + case basetypes.MapType: + return ContainsMissingUnderlyingType(attrType.ElemType) + case basetypes.ObjectType: + for _, objAttrType := range attrType.AttrTypes { + if ContainsMissingUnderlyingType(objAttrType) { + return true + } + } + + return false + case basetypes.SetType: + return ContainsMissingUnderlyingType(attrType.ElemType) + case basetypes.TupleType: + for _, elemType := range attrType.ElemTypes { + if ContainsMissingUnderlyingType(elemType) { + return true + } + } + + return false + // Everything else (primitives, custom types, etc.) + default: + return false + } +} + +func ParameterMissingUnderlyingTypeDiag(name string, position *int64) diag.Diagnostic { + if position == nil { + return diag.NewErrorDiagnostic( + "Invalid Function Definition", + "When validating the function definition, an implementation issue was found. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + "Variadic parameter is missing underlying type.\n\n"+ + "Collection element and object attribute types are always required in Terraform.", + ) + } + + return diag.NewErrorDiagnostic( + "Invalid Function Definition", + "When validating the function definition, an implementation issue was found. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + fmt.Sprintf("Parameter %q at position %d is missing underlying type.\n\n", name, *position)+ + "Collection element and object attribute types are always required in Terraform.", + ) +} + +func ReturnMissingUnderlyingTypeDiag() diag.Diagnostic { + return diag.NewErrorDiagnostic( + "Invalid Function Definition", + "When validating the function definition, an implementation issue was found. "+ + "This is always an issue with the provider and should be reported to the provider developers.\n\n"+ + "Return is missing underlying type.\n\n"+ + "Collection element and object attribute types are always required in Terraform.", + ) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/logging/keys.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/logging/keys.go index 7c68d0f135ff..1443710c9559 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/logging/keys.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/logging/keys.go @@ -18,6 +18,12 @@ const ( // The type of data source being operated on, such as "archive_file" KeyDataSourceType = "tf_data_source_type" + // The type of ephemeral resource being operated on, such as "random_password" + KeyEphemeralResourceType = "tf_ephemeral_resource_type" + + // The Deferred reason for an RPC response + KeyDeferredReason = "tf_deferred_reason" + // Human readable string when calling a provider defined type that must // implement the Description() method, such as validators. KeyDescription = "description" diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/privatestate/data.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/privatestate/data.go index 3e858026aa13..5493a9d97806 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/privatestate/data.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/privatestate/data.go @@ -72,9 +72,9 @@ func (d *Data) Bytes(ctx context.Context) ([]byte, diag.Diagnostics) { if !json.Valid(v) { diags.AddError( "Error Encoding Private State", - fmt.Sprintf("An error was encountered when validating private state value."+ + "An error was encountered when validating private state value."+ fmt.Sprintf("The value associated with key %q is is not valid JSON.\n\n", k)+ - "This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer."), + "This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer.", ) tflog.Error(ctx, "error encoding private state: invalid JSON value", map[string]interface{}{"key": k, "value": v}) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_closeephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_closeephemeralresource.go new file mode 100644 index 000000000000..1e07cef33a03 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_closeephemeralresource.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package proto5server + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto5" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/toproto5" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// CloseEphemeralResource satisfies the tfprotov5.ProviderServer interface. +func (s *Server) CloseEphemeralResource(ctx context.Context, proto5Req *tfprotov5.CloseEphemeralResourceRequest) (*tfprotov5.CloseEphemeralResourceResponse, error) { + ctx = s.registerContext(ctx) + ctx = logging.InitContext(ctx) + + fwResp := &fwserver.CloseEphemeralResourceResponse{} + + ephemeralResource, diags := s.FrameworkServer.EphemeralResource(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.CloseEphemeralResourceResponse(ctx, fwResp), nil + } + + ephemeralResourceSchema, diags := s.FrameworkServer.EphemeralResourceSchema(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.CloseEphemeralResourceResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto5.CloseEphemeralResourceRequest(ctx, proto5Req, ephemeralResource, ephemeralResourceSchema) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.CloseEphemeralResourceResponse(ctx, fwResp), nil + } + + s.FrameworkServer.CloseEphemeralResource(ctx, fwReq, fwResp) + + return toproto5.CloseEphemeralResourceResponse(ctx, fwResp), nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_configureprovider.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_configureprovider.go index 3f5d22e37a74..ef33f39e8847 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_configureprovider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_configureprovider.go @@ -6,11 +6,12 @@ package proto5server import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto5" "github.com/hashicorp/terraform-plugin-framework/internal/logging" "github.com/hashicorp/terraform-plugin-framework/internal/toproto5" "github.com/hashicorp/terraform-plugin-framework/provider" - "github.com/hashicorp/terraform-plugin-go/tfprotov5" ) // ConfigureProvider satisfies the tfprotov5.ProviderServer interface. diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_openephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_openephemeralresource.go new file mode 100644 index 000000000000..b972bd4d8aaf --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_openephemeralresource.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package proto5server + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto5" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/toproto5" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// OpenEphemeralResource satisfies the tfprotov5.ProviderServer interface. +func (s *Server) OpenEphemeralResource(ctx context.Context, proto5Req *tfprotov5.OpenEphemeralResourceRequest) (*tfprotov5.OpenEphemeralResourceResponse, error) { + ctx = s.registerContext(ctx) + ctx = logging.InitContext(ctx) + + fwResp := &fwserver.OpenEphemeralResourceResponse{} + + ephemeralResource, diags := s.FrameworkServer.EphemeralResource(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.OpenEphemeralResourceResponse(ctx, fwResp), nil + } + + ephemeralResourceSchema, diags := s.FrameworkServer.EphemeralResourceSchema(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.OpenEphemeralResourceResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto5.OpenEphemeralResourceRequest(ctx, proto5Req, ephemeralResource, ephemeralResourceSchema) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.OpenEphemeralResourceResponse(ctx, fwResp), nil + } + + s.FrameworkServer.OpenEphemeralResource(ctx, fwReq, fwResp) + + return toproto5.OpenEphemeralResourceResponse(ctx, fwResp), nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_planresourcechange.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_planresourcechange.go index 6cc995daa8e6..a5cec1987150 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_planresourcechange.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_planresourcechange.go @@ -6,11 +6,12 @@ package proto5server import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto5" "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" "github.com/hashicorp/terraform-plugin-framework/internal/logging" "github.com/hashicorp/terraform-plugin-framework/internal/toproto5" - "github.com/hashicorp/terraform-plugin-go/tfprotov5" ) // PlanResourceChange satisfies the tfprotov5.ProviderServer interface. @@ -44,7 +45,15 @@ func (s *Server) PlanResourceChange(ctx context.Context, proto5Req *tfprotov5.Pl return toproto5.PlanResourceChangeResponse(ctx, fwResp), nil } - fwReq, diags := fromproto5.PlanResourceChangeRequest(ctx, proto5Req, resource, resourceSchema, providerMetaSchema) + resourceBehavior, diags := s.FrameworkServer.ResourceBehavior(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.PlanResourceChangeResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto5.PlanResourceChangeRequest(ctx, proto5Req, resource, resourceSchema, providerMetaSchema, resourceBehavior) fwResp.Diagnostics.Append(diags...) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_renewephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_renewephemeralresource.go new file mode 100644 index 000000000000..76be1f019d11 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_renewephemeralresource.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package proto5server + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto5" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/toproto5" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// RenewEphemeralResource satisfies the tfprotov5.ProviderServer interface. +func (s *Server) RenewEphemeralResource(ctx context.Context, proto5Req *tfprotov5.RenewEphemeralResourceRequest) (*tfprotov5.RenewEphemeralResourceResponse, error) { + ctx = s.registerContext(ctx) + ctx = logging.InitContext(ctx) + + fwResp := &fwserver.RenewEphemeralResourceResponse{} + + ephemeralResource, diags := s.FrameworkServer.EphemeralResource(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.RenewEphemeralResourceResponse(ctx, fwResp), nil + } + + ephemeralResourceSchema, diags := s.FrameworkServer.EphemeralResourceSchema(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.RenewEphemeralResourceResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto5.RenewEphemeralResourceRequest(ctx, proto5Req, ephemeralResource, ephemeralResourceSchema) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.RenewEphemeralResourceResponse(ctx, fwResp), nil + } + + s.FrameworkServer.RenewEphemeralResource(ctx, fwReq, fwResp) + + return toproto5.RenewEphemeralResourceResponse(ctx, fwResp), nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_validateephemeralresourceconfig.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_validateephemeralresourceconfig.go new file mode 100644 index 000000000000..04018a01b555 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto5server/server_validateephemeralresourceconfig.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package proto5server + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto5" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/toproto5" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// ValidateEphemeralResourceConfig satisfies the tfprotov5.ProviderServer interface. +func (s *Server) ValidateEphemeralResourceConfig(ctx context.Context, proto5Req *tfprotov5.ValidateEphemeralResourceConfigRequest) (*tfprotov5.ValidateEphemeralResourceConfigResponse, error) { + ctx = s.registerContext(ctx) + ctx = logging.InitContext(ctx) + + fwResp := &fwserver.ValidateEphemeralResourceConfigResponse{} + + ephemeralResource, diags := s.FrameworkServer.EphemeralResource(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.ValidateEphemeralResourceConfigResponse(ctx, fwResp), nil + } + + ephemeralResourceSchema, diags := s.FrameworkServer.EphemeralResourceSchema(ctx, proto5Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.ValidateEphemeralResourceConfigResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto5.ValidateEphemeralResourceConfigRequest(ctx, proto5Req, ephemeralResource, ephemeralResourceSchema) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto5.ValidateEphemeralResourceConfigResponse(ctx, fwResp), nil + } + + s.FrameworkServer.ValidateEphemeralResourceConfig(ctx, fwReq, fwResp) + + return toproto5.ValidateEphemeralResourceConfigResponse(ctx, fwResp), nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_closeephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_closeephemeralresource.go new file mode 100644 index 000000000000..430ff2eaaa70 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_closeephemeralresource.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package proto6server + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto6" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/toproto6" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// CloseEphemeralResource satisfies the tfprotov6.ProviderServer interface. +func (s *Server) CloseEphemeralResource(ctx context.Context, proto6Req *tfprotov6.CloseEphemeralResourceRequest) (*tfprotov6.CloseEphemeralResourceResponse, error) { + ctx = s.registerContext(ctx) + ctx = logging.InitContext(ctx) + + fwResp := &fwserver.CloseEphemeralResourceResponse{} + + ephemeralResource, diags := s.FrameworkServer.EphemeralResource(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.CloseEphemeralResourceResponse(ctx, fwResp), nil + } + + ephemeralResourceSchema, diags := s.FrameworkServer.EphemeralResourceSchema(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.CloseEphemeralResourceResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto6.CloseEphemeralResourceRequest(ctx, proto6Req, ephemeralResource, ephemeralResourceSchema) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.CloseEphemeralResourceResponse(ctx, fwResp), nil + } + + s.FrameworkServer.CloseEphemeralResource(ctx, fwReq, fwResp) + + return toproto6.CloseEphemeralResourceResponse(ctx, fwResp), nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_openephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_openephemeralresource.go new file mode 100644 index 000000000000..5ec9b2dffc9a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_openephemeralresource.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package proto6server + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto6" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/toproto6" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// OpenEphemeralResource satisfies the tfprotov6.ProviderServer interface. +func (s *Server) OpenEphemeralResource(ctx context.Context, proto6Req *tfprotov6.OpenEphemeralResourceRequest) (*tfprotov6.OpenEphemeralResourceResponse, error) { + ctx = s.registerContext(ctx) + ctx = logging.InitContext(ctx) + + fwResp := &fwserver.OpenEphemeralResourceResponse{} + + ephemeralResource, diags := s.FrameworkServer.EphemeralResource(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.OpenEphemeralResourceResponse(ctx, fwResp), nil + } + + ephemeralResourceSchema, diags := s.FrameworkServer.EphemeralResourceSchema(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.OpenEphemeralResourceResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto6.OpenEphemeralResourceRequest(ctx, proto6Req, ephemeralResource, ephemeralResourceSchema) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.OpenEphemeralResourceResponse(ctx, fwResp), nil + } + + s.FrameworkServer.OpenEphemeralResource(ctx, fwReq, fwResp) + + return toproto6.OpenEphemeralResourceResponse(ctx, fwResp), nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_planresourcechange.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_planresourcechange.go index 9782fc04e4d6..32d13ddd6a37 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_planresourcechange.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_planresourcechange.go @@ -6,11 +6,12 @@ package proto6server import ( "context" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto6" "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" "github.com/hashicorp/terraform-plugin-framework/internal/logging" "github.com/hashicorp/terraform-plugin-framework/internal/toproto6" - "github.com/hashicorp/terraform-plugin-go/tfprotov6" ) // PlanResourceChange satisfies the tfprotov6.ProviderServer interface. @@ -44,7 +45,15 @@ func (s *Server) PlanResourceChange(ctx context.Context, proto6Req *tfprotov6.Pl return toproto6.PlanResourceChangeResponse(ctx, fwResp), nil } - fwReq, diags := fromproto6.PlanResourceChangeRequest(ctx, proto6Req, resource, resourceSchema, providerMetaSchema) + resourceBehavior, diags := s.FrameworkServer.ResourceBehavior(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.PlanResourceChangeResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto6.PlanResourceChangeRequest(ctx, proto6Req, resource, resourceSchema, providerMetaSchema, resourceBehavior) fwResp.Diagnostics.Append(diags...) diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_renewephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_renewephemeralresource.go new file mode 100644 index 000000000000..e60657d4f073 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_renewephemeralresource.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package proto6server + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto6" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/toproto6" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// RenewEphemeralResource satisfies the tfprotov6.ProviderServer interface. +func (s *Server) RenewEphemeralResource(ctx context.Context, proto6Req *tfprotov6.RenewEphemeralResourceRequest) (*tfprotov6.RenewEphemeralResourceResponse, error) { + ctx = s.registerContext(ctx) + ctx = logging.InitContext(ctx) + + fwResp := &fwserver.RenewEphemeralResourceResponse{} + + ephemeralResource, diags := s.FrameworkServer.EphemeralResource(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.RenewEphemeralResourceResponse(ctx, fwResp), nil + } + + ephemeralResourceSchema, diags := s.FrameworkServer.EphemeralResourceSchema(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.RenewEphemeralResourceResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto6.RenewEphemeralResourceRequest(ctx, proto6Req, ephemeralResource, ephemeralResourceSchema) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.RenewEphemeralResourceResponse(ctx, fwResp), nil + } + + s.FrameworkServer.RenewEphemeralResource(ctx, fwReq, fwResp) + + return toproto6.RenewEphemeralResourceResponse(ctx, fwResp), nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_validateephemeralresourceconfig.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_validateephemeralresourceconfig.go new file mode 100644 index 000000000000..8228603262cf --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/proto6server/server_validateephemeralresourceconfig.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package proto6server + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fromproto6" + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" + "github.com/hashicorp/terraform-plugin-framework/internal/toproto6" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// ValidateEphemeralResourceConfig satisfies the tfprotov6.ProviderServer interface. +func (s *Server) ValidateEphemeralResourceConfig(ctx context.Context, proto6Req *tfprotov6.ValidateEphemeralResourceConfigRequest) (*tfprotov6.ValidateEphemeralResourceConfigResponse, error) { + ctx = s.registerContext(ctx) + ctx = logging.InitContext(ctx) + + fwResp := &fwserver.ValidateEphemeralResourceConfigResponse{} + + ephemeralResource, diags := s.FrameworkServer.EphemeralResource(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.ValidateEphemeralResourceConfigResponse(ctx, fwResp), nil + } + + ephemeralResourceSchema, diags := s.FrameworkServer.EphemeralResourceSchema(ctx, proto6Req.TypeName) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.ValidateEphemeralResourceConfigResponse(ctx, fwResp), nil + } + + fwReq, diags := fromproto6.ValidateEphemeralResourceConfigRequest(ctx, proto6Req, ephemeralResource, ephemeralResourceSchema) + + fwResp.Diagnostics.Append(diags...) + + if fwResp.Diagnostics.HasError() { + return toproto6.ValidateEphemeralResourceConfigResponse(ctx, fwResp), nil + } + + s.FrameworkServer.ValidateEphemeralResourceConfig(ctx, fwReq, fwResp) + + return toproto6.ValidateEphemeralResourceConfigResponse(ctx, fwResp), nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/helpers.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/helpers.go index 52634dfb65a5..675fa8df8a3d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/helpers.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/helpers.go @@ -46,36 +46,87 @@ func commaSeparatedString(in []string) string { } // getStructTags returns a map of Terraform field names to their position in -// the tags of the struct `in`. `in` must be a struct. -func getStructTags(_ context.Context, in reflect.Value, path path.Path) (map[string]int, error) { - tags := map[string]int{} - typ := trueReflectValue(in).Type() +// the fields of the struct `in`. `in` must be a struct. +// +// The position of the field in a struct is represented as an index sequence to support type embedding +// in structs. This index sequence can be used to retrieve the field with the Go "reflect" package FieldByIndex methods: +// - https://pkg.go.dev/reflect#Type.FieldByIndex +// - https://pkg.go.dev/reflect#Value.FieldByIndex +// - https://pkg.go.dev/reflect#Value.FieldByIndexErr +// +// The following are not supported and will return an error if detected in a struct (including embedded structs): +// - Duplicate "tfsdk" tags +// - Exported fields without a "tfsdk" tag +// - Exported fields with an invalid "tfsdk" tag (must be a valid Terraform identifier) +func getStructTags(ctx context.Context, typ reflect.Type, path path.Path) (map[string][]int, error) { //nolint:unparam // False positive, ctx is used below. + tags := make(map[string][]int, 0) + + if typ.Kind() == reflect.Pointer { + typ = typ.Elem() + } if typ.Kind() != reflect.Struct { - return nil, fmt.Errorf("%s: can't get struct tags of %s, is not a struct", path, in.Type()) + return nil, fmt.Errorf("%s: can't get struct tags of %s, is not a struct", path, typ) } + for i := 0; i < typ.NumField(); i++ { field := typ.Field(i) - if field.PkgPath != "" { - // skip unexported fields + if !field.IsExported() && !field.Anonymous { + // Skip unexported fields. Unexported embedded structs (anonymous fields) are allowed because they may + // contain exported fields that are promoted; which means they can be read/set. continue } - tag := field.Tag.Get(`tfsdk`) + + // This index sequence is the location of the field within the struct. + // For promoted fields from an embedded struct, the length of this sequence will be > 1 + fieldIndexSequence := []int{i} + tag, tagExists := field.Tag.Lookup(`tfsdk`) + + // "tfsdk" tags with "-" are being explicitly excluded if tag == "-" { - // skip explicitly excluded fields continue } - if tag == "" { + + // Handle embedded structs + if field.Anonymous { + if tagExists { + return nil, fmt.Errorf(`%s: embedded struct field %s cannot have tfsdk tag`, path.AtName(tag), field.Name) + } + + embeddedTags, err := getStructTags(ctx, field.Type, path) + if err != nil { + return nil, fmt.Errorf(`error retrieving embedded struct %q field tags: %w`, field.Name, err) + } + for k, v := range embeddedTags { + if other, ok := tags[k]; ok { + otherField := typ.FieldByIndex(other) + return nil, fmt.Errorf("embedded struct %q promotes a field with a duplicate tfsdk tag %q, conflicts with %q tfsdk tag", field.Name, k, otherField.Name) + } + + tags[k] = append(fieldIndexSequence, v...) + } + continue + } + + // All non-embedded fields must have a tfsdk tag + if !tagExists { return nil, fmt.Errorf(`%s: need a struct tag for "tfsdk" on %s`, path, field.Name) } + + // Ensure the tfsdk tag has a valid name path := path.AtName(tag) if !isValidFieldName(tag) { - return nil, fmt.Errorf("%s: invalid field name, must only use lowercase letters, underscores, and numbers, and must start with a letter", path) + return nil, fmt.Errorf("%s: invalid tfsdk tag, must only use lowercase letters, underscores, and numbers, and must start with a letter", path) } + + // Ensure there are no duplicate tfsdk tags if other, ok := tags[tag]; ok { - return nil, fmt.Errorf("%s: can't use field name for both %s and %s", path, typ.Field(other).Name, field.Name) + otherField := typ.FieldByIndex(other) + return nil, fmt.Errorf("%s: can't use tfsdk tag %q for both %s and %s fields", path, tag, otherField.Name, field.Name) } - tags[tag] = i + + tags[tag] = fieldIndexSequence } + return tags, nil } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/number.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/number.go index c4983be64f72..18c39fed19e9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/number.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/number.go @@ -132,9 +132,9 @@ func Number(ctx context.Context, typ attr.Type, val tftypes.Value, target reflec return reflect.ValueOf(uintResult), diags } case reflect.Float32: - floatResult, _ := result.Float32() + float64Result, _ := result.Float64() - bf := big.NewFloat(float64(floatResult)) + bf := big.NewFloat(float64Result) if result.Text('f', -1) != bf.Text('f', -1) { diags.Append(roundingErrorDiag) @@ -142,7 +142,25 @@ func Number(ctx context.Context, typ attr.Type, val tftypes.Value, target reflec return target, diags } - return reflect.ValueOf(floatResult), diags + float32Result, accuracy := result.Float32() + + // Underflow + // Reference: https://pkg.go.dev/math/big#Float.Float32 + if float32Result == 0 && accuracy != big.Exact { + diags.Append(roundingErrorDiag) + + return target, diags + } + + // Overflow + // Reference: https://pkg.go.dev/math/big#Float.Float32 + if math.IsInf(float64(float32Result), 0) { + diags.Append(roundingErrorDiag) + + return target, diags + } + + return reflect.ValueOf(float32Result), diags case reflect.Float64: floatResult, _ := result.Float64() diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/struct.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/struct.go index d48ff2d31273..7e1198d0e082 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/struct.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/reflect/struct.go @@ -75,7 +75,7 @@ func Struct(ctx context.Context, typ attr.Type, object tftypes.Value, target ref // collect a map of fields that are defined in the tags of the struct // passed in - targetFields, err := getStructTags(ctx, target, path) + targetFields, err := getStructTags(ctx, target.Type(), path) if err != nil { diags.Append(diag.WithPath(path, DiagIntoIncompatibleType{ Val: object, @@ -120,7 +120,7 @@ func Struct(ctx context.Context, typ attr.Type, object tftypes.Value, target ref // now that we know they match perfectly, fill the struct with the // values in the object result := reflect.New(target.Type()).Elem() - for field, structFieldPos := range targetFields { + for field, fieldIndex := range targetFields { attrType, ok := attrTypes[field] if !ok { diags.Append(diag.WithPath(path, DiagIntoIncompatibleType{ @@ -130,7 +130,33 @@ func Struct(ctx context.Context, typ attr.Type, object tftypes.Value, target ref })) return target, diags } - structField := result.Field(structFieldPos) + + structField, err := result.FieldByIndexErr(fieldIndex) + if err != nil { + if len(fieldIndex) > 1 { + // The field index that triggered the error is in an embedded struct. The most likely cause for the error + // is because the embedded struct is a pointer, which we explicitly don't support. We'll create a more tailored + // error message to nudge provider developers to use a value embedded struct. + diags.Append(diag.WithPath(path, DiagIntoIncompatibleType{ + Val: object, + TargetType: target.Type(), + Err: fmt.Errorf( + "%s contains a struct embedded by a pointer which is not supported. Switch any embedded structs to be embedded by value.\n\nError: %s", + target.Type(), + err, + ), + })) + return target, diags + } + + diags.Append(diag.WithPath(path, DiagIntoIncompatibleType{ + Val: object, + TargetType: target.Type(), + Err: fmt.Errorf("error retrieving field index %v in struct %s: %w", fieldIndex, target.Type(), err), + })) + return target, diags + } + fieldVal, fieldValDiags := BuildValue(ctx, attrType, objectFields[field], structField, opts, path.AtName(field)) diags.Append(fieldValDiags...) @@ -156,7 +182,7 @@ func FromStruct(ctx context.Context, typ attr.TypeWithAttributeTypes, val reflec // collect a map of fields that are defined in the tags of the struct // passed in - targetFields, err := getStructTags(ctx, val, path) + targetFields, err := getStructTags(ctx, val.Type(), path) if err != nil { err = fmt.Errorf("error retrieving field names from struct tags: %w", err) diags.AddAttributeError( @@ -211,9 +237,26 @@ func FromStruct(ctx context.Context, typ attr.TypeWithAttributeTypes, val reflec return nil, diags } - for name, fieldNo := range targetFields { + for name, fieldIndex := range targetFields { path := path.AtName(name) - fieldValue := val.Field(fieldNo) + fieldValue, err := val.FieldByIndexErr(fieldIndex) + if err != nil { + if len(fieldIndex) > 1 { + // The field index that triggered the error is in an embedded struct. The most likely cause for the error + // is because the embedded struct is a pointer, which we explicitly don't support. We'll create a more tailored + // error message to nudge provider developers to use a value embedded struct. + err = fmt.Errorf("%s contains a struct embedded by a pointer which is not supported. Switch any embedded structs to be embedded by value.\n\nError: %s", val.Type(), err) + } else { + err = fmt.Errorf("error retrieving field index %v in struct %s: %w", fieldIndex, val.Type(), err) + } + + diags.AddAttributeError( + path, + "Value Conversion Error", + "An unexpected error was encountered trying to convert from struct value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+err.Error(), + ) + return nil, diags + } // If the attr implements xattr.ValidateableAttribute, or xattr.TypeWithValidate, // and the attr does not validate then diagnostics will be added here and returned diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/closeephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/closeephemeralresource.go new file mode 100644 index 000000000000..5bc9484db6e5 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/closeephemeralresource.go @@ -0,0 +1,25 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// CloseEphemeralResourceResponse returns the *tfprotov5.CloseEphemeralResourceResponse +// equivalent of a *fwserver.CloseEphemeralResourceResponse. +func CloseEphemeralResourceResponse(ctx context.Context, fw *fwserver.CloseEphemeralResourceResponse) *tfprotov5.CloseEphemeralResourceResponse { + if fw == nil { + return nil + } + + proto5 := &tfprotov5.CloseEphemeralResourceResponse{ + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + } + + return proto5 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/deferred.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/deferred.go new file mode 100644 index 000000000000..42049a4da2a5 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/deferred.go @@ -0,0 +1,39 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto5 + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/resource" +) + +func DataSourceDeferred(fw *datasource.Deferred) *tfprotov5.Deferred { + if fw == nil { + return nil + } + return &tfprotov5.Deferred{ + Reason: tfprotov5.DeferredReason(fw.Reason), + } +} + +func ResourceDeferred(fw *resource.Deferred) *tfprotov5.Deferred { + if fw == nil { + return nil + } + return &tfprotov5.Deferred{ + Reason: tfprotov5.DeferredReason(fw.Reason), + } +} + +func EphemeralResourceDeferred(fw *ephemeral.Deferred) *tfprotov5.Deferred { + if fw == nil { + return nil + } + return &tfprotov5.Deferred{ + Reason: tfprotov5.DeferredReason(fw.Reason), + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/ephemeral_result_data.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/ephemeral_result_data.go new file mode 100644 index 000000000000..96490446f4ce --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/ephemeral_result_data.go @@ -0,0 +1,28 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// EphemeralResultData returns the *tfprotov5.DynamicValue for a *tfsdk.EphemeralResultData. +func EphemeralResultData(ctx context.Context, fw *tfsdk.EphemeralResultData) (*tfprotov5.DynamicValue, diag.Diagnostics) { + if fw == nil { + return nil, nil + } + + data := &fwschemadata.Data{ + Description: fwschemadata.DataDescriptionEphemeralResultData, + Schema: fw.Schema, + TerraformValue: fw.Raw, + } + + return DynamicValue(ctx, data) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/ephemeralresourcemetadata.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/ephemeralresourcemetadata.go new file mode 100644 index 000000000000..e301fa35b2f4 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/ephemeralresourcemetadata.go @@ -0,0 +1,19 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// EphemeralResourceMetadata returns the tfprotov5.EphemeralResourceMetadata for a +// fwserver.EphemeralResourceMetadata. +func EphemeralResourceMetadata(ctx context.Context, fw fwserver.EphemeralResourceMetadata) tfprotov5.EphemeralResourceMetadata { + return tfprotov5.EphemeralResourceMetadata{ + TypeName: fw.TypeName, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/getmetadata.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/getmetadata.go index 9c1892d8ab3f..4150c24730c0 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/getmetadata.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/getmetadata.go @@ -17,25 +17,30 @@ func GetMetadataResponse(ctx context.Context, fw *fwserver.GetMetadataResponse) return nil } - protov6 := &tfprotov5.GetMetadataResponse{ + protov5 := &tfprotov5.GetMetadataResponse{ DataSources: make([]tfprotov5.DataSourceMetadata, 0, len(fw.DataSources)), Diagnostics: Diagnostics(ctx, fw.Diagnostics), + EphemeralResources: make([]tfprotov5.EphemeralResourceMetadata, 0, len(fw.EphemeralResources)), Functions: make([]tfprotov5.FunctionMetadata, 0, len(fw.Functions)), Resources: make([]tfprotov5.ResourceMetadata, 0, len(fw.Resources)), ServerCapabilities: ServerCapabilities(ctx, fw.ServerCapabilities), } for _, datasource := range fw.DataSources { - protov6.DataSources = append(protov6.DataSources, DataSourceMetadata(ctx, datasource)) + protov5.DataSources = append(protov5.DataSources, DataSourceMetadata(ctx, datasource)) + } + + for _, ephemeralResource := range fw.EphemeralResources { + protov5.EphemeralResources = append(protov5.EphemeralResources, EphemeralResourceMetadata(ctx, ephemeralResource)) } for _, function := range fw.Functions { - protov6.Functions = append(protov6.Functions, FunctionMetadata(ctx, function)) + protov5.Functions = append(protov5.Functions, FunctionMetadata(ctx, function)) } for _, resource := range fw.Resources { - protov6.Resources = append(protov6.Resources, ResourceMetadata(ctx, resource)) + protov5.Resources = append(protov5.Resources, ResourceMetadata(ctx, resource)) } - return protov6 + return protov5 } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/getproviderschema.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/getproviderschema.go index 1fec486ae81c..28b8906fffad 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/getproviderschema.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/getproviderschema.go @@ -18,11 +18,12 @@ func GetProviderSchemaResponse(ctx context.Context, fw *fwserver.GetProviderSche } protov5 := &tfprotov5.GetProviderSchemaResponse{ - DataSourceSchemas: make(map[string]*tfprotov5.Schema, len(fw.DataSourceSchemas)), - Diagnostics: Diagnostics(ctx, fw.Diagnostics), - Functions: make(map[string]*tfprotov5.Function, len(fw.FunctionDefinitions)), - ResourceSchemas: make(map[string]*tfprotov5.Schema, len(fw.ResourceSchemas)), - ServerCapabilities: ServerCapabilities(ctx, fw.ServerCapabilities), + DataSourceSchemas: make(map[string]*tfprotov5.Schema, len(fw.DataSourceSchemas)), + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + EphemeralResourceSchemas: make(map[string]*tfprotov5.Schema, len(fw.EphemeralResourceSchemas)), + Functions: make(map[string]*tfprotov5.Function, len(fw.FunctionDefinitions)), + ResourceSchemas: make(map[string]*tfprotov5.Schema, len(fw.ResourceSchemas)), + ServerCapabilities: ServerCapabilities(ctx, fw.ServerCapabilities), } var err error @@ -83,5 +84,19 @@ func GetProviderSchemaResponse(ctx context.Context, fw *fwserver.GetProviderSche } } + for ephemeralResourceType, ephemeralResourceSchema := range fw.EphemeralResourceSchemas { + protov5.EphemeralResourceSchemas[ephemeralResourceType], err = Schema(ctx, ephemeralResourceSchema) + + if err != nil { + protov5.Diagnostics = append(protov5.Diagnostics, &tfprotov5.Diagnostic{ + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "Error converting ephemeral resource schema", + Detail: "The schema for the ephemeral resource \"" + ephemeralResourceType + "\" couldn't be converted into a usable type. This is always a problem with the provider. Please report the following to the provider developer:\n\n" + err.Error(), + }) + + return protov5 + } + } + return protov5 } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/importresourcestate.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/importresourcestate.go index 654b84b63480..7d29a5ca16c9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/importresourcestate.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/importresourcestate.go @@ -6,8 +6,9 @@ package toproto5 import ( "context" - "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" "github.com/hashicorp/terraform-plugin-go/tfprotov5" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" ) // ImportResourceStateResponse returns the *tfprotov5.ImportResourceStateResponse @@ -18,6 +19,7 @@ func ImportResourceStateResponse(ctx context.Context, fw *fwserver.ImportResourc } proto5 := &tfprotov5.ImportResourceStateResponse{ + Deferred: ResourceDeferred(fw.Deferred), Diagnostics: Diagnostics(ctx, fw.Diagnostics), } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/openephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/openephemeralresource.go new file mode 100644 index 000000000000..2ea4fac50156 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/openephemeralresource.go @@ -0,0 +1,37 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// OpenEphemeralResourceResponse returns the *tfprotov5.OpenEphemeralResourceResponse +// equivalent of a *fwserver.OpenEphemeralResourceResponse. +func OpenEphemeralResourceResponse(ctx context.Context, fw *fwserver.OpenEphemeralResourceResponse) *tfprotov5.OpenEphemeralResourceResponse { + if fw == nil { + return nil + } + + proto5 := &tfprotov5.OpenEphemeralResourceResponse{ + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + RenewAt: fw.RenewAt, + Deferred: EphemeralResourceDeferred(fw.Deferred), + } + + result, diags := EphemeralResultData(ctx, fw.Result) + + proto5.Diagnostics = append(proto5.Diagnostics, Diagnostics(ctx, diags)...) + proto5.Result = result + + newPrivate, diags := fw.Private.Bytes(ctx) + + proto5.Diagnostics = append(proto5.Diagnostics, Diagnostics(ctx, diags)...) + proto5.Private = newPrivate + + return proto5 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/planresourcechange.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/planresourcechange.go index 1677b359a47b..f3292a9639b4 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/planresourcechange.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/planresourcechange.go @@ -20,6 +20,7 @@ func PlanResourceChangeResponse(ctx context.Context, fw *fwserver.PlanResourceCh } proto5 := &tfprotov5.PlanResourceChangeResponse{ + Deferred: ResourceDeferred(fw.Deferred), Diagnostics: Diagnostics(ctx, fw.Diagnostics), } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/readdatasource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/readdatasource.go index 4e977d1dd793..3c3e28629828 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/readdatasource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/readdatasource.go @@ -6,8 +6,9 @@ package toproto5 import ( "context" - "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" "github.com/hashicorp/terraform-plugin-go/tfprotov5" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" ) // ReadDataSourceResponse returns the *tfprotov5.ReadDataSourceResponse @@ -18,6 +19,7 @@ func ReadDataSourceResponse(ctx context.Context, fw *fwserver.ReadDataSourceResp } proto5 := &tfprotov5.ReadDataSourceResponse{ + Deferred: DataSourceDeferred(fw.Deferred), Diagnostics: Diagnostics(ctx, fw.Diagnostics), } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/readresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/readresource.go index 43401ab0990a..9193a39508f8 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/readresource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/readresource.go @@ -19,6 +19,7 @@ func ReadResourceResponse(ctx context.Context, fw *fwserver.ReadResourceResponse } proto5 := &tfprotov5.ReadResourceResponse{ + Deferred: ResourceDeferred(fw.Deferred), Diagnostics: Diagnostics(ctx, fw.Diagnostics), } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/renewephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/renewephemeralresource.go new file mode 100644 index 000000000000..5947c9dd1509 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/renewephemeralresource.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// RenewEphemeralResourceResponse returns the *tfprotov5.RenewEphemeralResourceResponse +// equivalent of a *fwserver.RenewEphemeralResourceResponse. +func RenewEphemeralResourceResponse(ctx context.Context, fw *fwserver.RenewEphemeralResourceResponse) *tfprotov5.RenewEphemeralResourceResponse { + if fw == nil { + return nil + } + + proto5 := &tfprotov5.RenewEphemeralResourceResponse{ + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + RenewAt: fw.RenewAt, + } + + newPrivate, diags := fw.Private.Bytes(ctx) + + proto5.Diagnostics = append(proto5.Diagnostics, Diagnostics(ctx, diags)...) + proto5.Private = newPrivate + + return proto5 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/server_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/server_capabilities.go index fd968906de7c..2ed77acbe163 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/server_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/server_capabilities.go @@ -19,6 +19,7 @@ func ServerCapabilities(ctx context.Context, fw *fwserver.ServerCapabilities) *t return &tfprotov5.ServerCapabilities{ GetProviderSchemaOptional: fw.GetProviderSchemaOptional, + MoveResourceState: fw.MoveResourceState, PlanDestroy: fw.PlanDestroy, } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/validateephemeralresourceconfig.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/validateephemeralresourceconfig.go new file mode 100644 index 000000000000..fcd19ac9928c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto5/validateephemeralresourceconfig.go @@ -0,0 +1,25 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto5 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov5" +) + +// ValidateEphemeralResourceConfigResponse returns the *tfprotov5.ValidateEphemeralResourceConfigResponse +// equivalent of a *fwserver.ValidateEphemeralResourceConfigResponse. +func ValidateEphemeralResourceConfigResponse(ctx context.Context, fw *fwserver.ValidateEphemeralResourceConfigResponse) *tfprotov5.ValidateEphemeralResourceConfigResponse { + if fw == nil { + return nil + } + + proto5 := &tfprotov5.ValidateEphemeralResourceConfigResponse{ + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + } + + return proto5 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/closeephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/closeephemeralresource.go new file mode 100644 index 000000000000..46810b9d7506 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/closeephemeralresource.go @@ -0,0 +1,25 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// CloseEphemeralResourceResponse returns the *tfprotov6.CloseEphemeralResourceResponse +// equivalent of a *fwserver.CloseEphemeralResourceResponse. +func CloseEphemeralResourceResponse(ctx context.Context, fw *fwserver.CloseEphemeralResourceResponse) *tfprotov6.CloseEphemeralResourceResponse { + if fw == nil { + return nil + } + + proto6 := &tfprotov6.CloseEphemeralResourceResponse{ + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + } + + return proto6 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/deferred.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/deferred.go new file mode 100644 index 000000000000..fab64fe051a4 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/deferred.go @@ -0,0 +1,39 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto6 + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" + "github.com/hashicorp/terraform-plugin-framework/resource" +) + +func DataSourceDeferred(fw *datasource.Deferred) *tfprotov6.Deferred { + if fw == nil { + return nil + } + return &tfprotov6.Deferred{ + Reason: tfprotov6.DeferredReason(fw.Reason), + } +} + +func ResourceDeferred(fw *resource.Deferred) *tfprotov6.Deferred { + if fw == nil { + return nil + } + return &tfprotov6.Deferred{ + Reason: tfprotov6.DeferredReason(fw.Reason), + } +} + +func EphemeralResourceDeferred(fw *ephemeral.Deferred) *tfprotov6.Deferred { + if fw == nil { + return nil + } + return &tfprotov6.Deferred{ + Reason: tfprotov6.DeferredReason(fw.Reason), + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/ephemeral_result_data.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/ephemeral_result_data.go new file mode 100644 index 000000000000..14144adb25fc --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/ephemeral_result_data.go @@ -0,0 +1,28 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// EphemeralResultData returns the *tfprotov6.DynamicValue for a *tfsdk.EphemeralResultData. +func EphemeralResultData(ctx context.Context, fw *tfsdk.EphemeralResultData) (*tfprotov6.DynamicValue, diag.Diagnostics) { + if fw == nil { + return nil, nil + } + + data := &fwschemadata.Data{ + Description: fwschemadata.DataDescriptionEphemeralResultData, + Schema: fw.Schema, + TerraformValue: fw.Raw, + } + + return DynamicValue(ctx, data) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/ephemeralresourcemetadata.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/ephemeralresourcemetadata.go new file mode 100644 index 000000000000..56fab9951270 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/ephemeralresourcemetadata.go @@ -0,0 +1,19 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// EphemeralResourceMetadata returns the tfprotov6.EphemeralResourceMetadata for a +// fwserver.EphemeralResourceMetadata. +func EphemeralResourceMetadata(ctx context.Context, fw fwserver.EphemeralResourceMetadata) tfprotov6.EphemeralResourceMetadata { + return tfprotov6.EphemeralResourceMetadata{ + TypeName: fw.TypeName, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/getmetadata.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/getmetadata.go index 0924f3c9ff96..314072392fac 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/getmetadata.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/getmetadata.go @@ -20,6 +20,7 @@ func GetMetadataResponse(ctx context.Context, fw *fwserver.GetMetadataResponse) protov6 := &tfprotov6.GetMetadataResponse{ DataSources: make([]tfprotov6.DataSourceMetadata, 0, len(fw.DataSources)), Diagnostics: Diagnostics(ctx, fw.Diagnostics), + EphemeralResources: make([]tfprotov6.EphemeralResourceMetadata, 0, len(fw.EphemeralResources)), Functions: make([]tfprotov6.FunctionMetadata, 0, len(fw.Functions)), Resources: make([]tfprotov6.ResourceMetadata, 0, len(fw.Resources)), ServerCapabilities: ServerCapabilities(ctx, fw.ServerCapabilities), @@ -29,6 +30,10 @@ func GetMetadataResponse(ctx context.Context, fw *fwserver.GetMetadataResponse) protov6.DataSources = append(protov6.DataSources, DataSourceMetadata(ctx, datasource)) } + for _, ephemeralResource := range fw.EphemeralResources { + protov6.EphemeralResources = append(protov6.EphemeralResources, EphemeralResourceMetadata(ctx, ephemeralResource)) + } + for _, function := range fw.Functions { protov6.Functions = append(protov6.Functions, FunctionMetadata(ctx, function)) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/getproviderschema.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/getproviderschema.go index ee221abbf192..d88a5381e2db 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/getproviderschema.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/getproviderschema.go @@ -18,11 +18,12 @@ func GetProviderSchemaResponse(ctx context.Context, fw *fwserver.GetProviderSche } protov6 := &tfprotov6.GetProviderSchemaResponse{ - DataSourceSchemas: make(map[string]*tfprotov6.Schema, len(fw.DataSourceSchemas)), - Diagnostics: Diagnostics(ctx, fw.Diagnostics), - Functions: make(map[string]*tfprotov6.Function, len(fw.FunctionDefinitions)), - ResourceSchemas: make(map[string]*tfprotov6.Schema, len(fw.ResourceSchemas)), - ServerCapabilities: ServerCapabilities(ctx, fw.ServerCapabilities), + DataSourceSchemas: make(map[string]*tfprotov6.Schema, len(fw.DataSourceSchemas)), + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + EphemeralResourceSchemas: make(map[string]*tfprotov6.Schema, len(fw.EphemeralResourceSchemas)), + Functions: make(map[string]*tfprotov6.Function, len(fw.FunctionDefinitions)), + ResourceSchemas: make(map[string]*tfprotov6.Schema, len(fw.ResourceSchemas)), + ServerCapabilities: ServerCapabilities(ctx, fw.ServerCapabilities), } var err error @@ -83,5 +84,19 @@ func GetProviderSchemaResponse(ctx context.Context, fw *fwserver.GetProviderSche } } + for ephemeralResourceType, ephemeralResourceSchema := range fw.EphemeralResourceSchemas { + protov6.EphemeralResourceSchemas[ephemeralResourceType], err = Schema(ctx, ephemeralResourceSchema) + + if err != nil { + protov6.Diagnostics = append(protov6.Diagnostics, &tfprotov6.Diagnostic{ + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Error converting ephemeral resource schema", + Detail: "The schema for the ephemeral resource \"" + ephemeralResourceType + "\" couldn't be converted into a usable type. This is always a problem with the provider. Please report the following to the provider developer:\n\n" + err.Error(), + }) + + return protov6 + } + } + return protov6 } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/importresourcestate.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/importresourcestate.go index a5a29a6995d5..125f25ffb83d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/importresourcestate.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/importresourcestate.go @@ -6,8 +6,9 @@ package toproto6 import ( "context" - "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" "github.com/hashicorp/terraform-plugin-go/tfprotov6" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" ) // ImportResourceStateResponse returns the *tfprotov6.ImportResourceStateResponse @@ -18,6 +19,7 @@ func ImportResourceStateResponse(ctx context.Context, fw *fwserver.ImportResourc } proto6 := &tfprotov6.ImportResourceStateResponse{ + Deferred: ResourceDeferred(fw.Deferred), Diagnostics: Diagnostics(ctx, fw.Diagnostics), } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/openephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/openephemeralresource.go new file mode 100644 index 000000000000..7da9c35f6658 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/openephemeralresource.go @@ -0,0 +1,37 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// OpenEphemeralResourceResponse returns the *tfprotov6.OpenEphemeralResourceResponse +// equivalent of a *fwserver.OpenEphemeralResourceResponse. +func OpenEphemeralResourceResponse(ctx context.Context, fw *fwserver.OpenEphemeralResourceResponse) *tfprotov6.OpenEphemeralResourceResponse { + if fw == nil { + return nil + } + + proto6 := &tfprotov6.OpenEphemeralResourceResponse{ + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + RenewAt: fw.RenewAt, + Deferred: EphemeralResourceDeferred(fw.Deferred), + } + + result, diags := EphemeralResultData(ctx, fw.Result) + + proto6.Diagnostics = append(proto6.Diagnostics, Diagnostics(ctx, diags)...) + proto6.Result = result + + newPrivate, diags := fw.Private.Bytes(ctx) + + proto6.Diagnostics = append(proto6.Diagnostics, Diagnostics(ctx, diags)...) + proto6.Private = newPrivate + + return proto6 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/planresourcechange.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/planresourcechange.go index 8cb2b66b1e38..486f7ab02c1d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/planresourcechange.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/planresourcechange.go @@ -20,6 +20,7 @@ func PlanResourceChangeResponse(ctx context.Context, fw *fwserver.PlanResourceCh } proto6 := &tfprotov6.PlanResourceChangeResponse{ + Deferred: ResourceDeferred(fw.Deferred), Diagnostics: Diagnostics(ctx, fw.Diagnostics), } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/readdatasource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/readdatasource.go index f9a59f0e5908..051f004a5bc3 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/readdatasource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/readdatasource.go @@ -6,8 +6,9 @@ package toproto6 import ( "context" - "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" "github.com/hashicorp/terraform-plugin-go/tfprotov6" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" ) // ReadDataSourceResponse returns the *tfprotov6.ReadDataSourceResponse @@ -18,6 +19,7 @@ func ReadDataSourceResponse(ctx context.Context, fw *fwserver.ReadDataSourceResp } proto6 := &tfprotov6.ReadDataSourceResponse{ + Deferred: DataSourceDeferred(fw.Deferred), Diagnostics: Diagnostics(ctx, fw.Diagnostics), } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/readresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/readresource.go index d5e600e1019b..2de7adf84dd9 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/readresource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/readresource.go @@ -19,6 +19,7 @@ func ReadResourceResponse(ctx context.Context, fw *fwserver.ReadResourceResponse } proto6 := &tfprotov6.ReadResourceResponse{ + Deferred: ResourceDeferred(fw.Deferred), Diagnostics: Diagnostics(ctx, fw.Diagnostics), } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/renewephemeralresource.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/renewephemeralresource.go new file mode 100644 index 000000000000..4afcb9962275 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/renewephemeralresource.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// RenewEphemeralResourceResponse returns the *tfprotov6.RenewEphemeralResourceResponse +// equivalent of a *fwserver.RenewEphemeralResourceResponse. +func RenewEphemeralResourceResponse(ctx context.Context, fw *fwserver.RenewEphemeralResourceResponse) *tfprotov6.RenewEphemeralResourceResponse { + if fw == nil { + return nil + } + + proto6 := &tfprotov6.RenewEphemeralResourceResponse{ + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + RenewAt: fw.RenewAt, + } + + newPrivate, diags := fw.Private.Bytes(ctx) + + proto6.Diagnostics = append(proto6.Diagnostics, Diagnostics(ctx, diags)...) + proto6.Private = newPrivate + + return proto6 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/server_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/server_capabilities.go index ef46cbf16cd1..26c24f7c6ed4 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/server_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/server_capabilities.go @@ -19,6 +19,7 @@ func ServerCapabilities(ctx context.Context, fw *fwserver.ServerCapabilities) *t return &tfprotov6.ServerCapabilities{ GetProviderSchemaOptional: fw.GetProviderSchemaOptional, + MoveResourceState: fw.MoveResourceState, PlanDestroy: fw.PlanDestroy, } } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/validateephemeralresourceconfig.go b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/validateephemeralresourceconfig.go new file mode 100644 index 000000000000..5237b35dc9fa --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/internal/toproto6/validateephemeralresourceconfig.go @@ -0,0 +1,25 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto6 + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/internal/fwserver" + "github.com/hashicorp/terraform-plugin-go/tfprotov6" +) + +// ValidateEphemeralResourceConfigResponse returns the *tfprotov6.ValidateEphemeralResourceConfigResponse +// equivalent of a *fwserver.ValidateEphemeralResourceConfigResponse. +func ValidateEphemeralResourceConfigResponse(ctx context.Context, fw *fwserver.ValidateEphemeralResourceConfigResponse) *tfprotov6.ValidateEphemeralResourceConfigResponse { + if fw == nil { + return nil + } + + proto6 := &tfprotov6.ValidateEphemeralResourceConfigResponse{ + Diagnostics: Diagnostics(ctx, fw.Diagnostics), + } + + return proto6 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/configure.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/configure.go index 600f402fff73..59e9ead44bc6 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/configure.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/configure.go @@ -8,6 +8,18 @@ import ( "github.com/hashicorp/terraform-plugin-framework/tfsdk" ) +// ConfigureProviderClientCapabilities allows Terraform to publish information +// regarding optionally supported protocol features for the ConfigureProvider RPC, +// such as forward-compatible Terraform behavior changes. +type ConfigureProviderClientCapabilities struct { + // DeferralAllowed indicates whether the Terraform client initiating + // the request allows a deferral response. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + DeferralAllowed bool +} + // ConfigureRequest represents a request containing the values the user // specified for the provider configuration block, along with other runtime // information from Terraform or the Plugin SDK. An instance of this request @@ -24,6 +36,10 @@ type ConfigureRequest struct { // that's implementing the Provider interface, for use in later // resource CRUD operations. Config tfsdk.Config + + // ClientCapabilities defines optionally supported protocol features for the + // ConfigureProvider RPC, such as forward-compatible Terraform behavior changes. + ClientCapabilities ConfigureProviderClientCapabilities } // ConfigureResponse represents a response to a @@ -45,4 +61,19 @@ type ConfigureResponse struct { // to [resource.ConfigureRequest.ProviderData] for each Resource type // that implements the Configure method. ResourceData any + + // EphemeralResourceData is provider-defined data, clients, etc. that is + // passed to [ephemeral.ConfigureRequest.ProviderData] for each + // EphemeralResource type that implements the Configure method. + EphemeralResourceData any + + // Deferred indicates that Terraform should automatically defer + // all resources and data sources for this provider. + // + // This field can only be set if + // `(provider.ConfigureRequest).ClientCapabilities.DeferralAllowed` is true. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + Deferred *Deferred } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/deferred.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/deferred.go new file mode 100644 index 000000000000..5c5fceb5d538 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/deferred.go @@ -0,0 +1,43 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +// MAINTAINER NOTE: The deferred reason at enum value 1 in the plugin-protocol +// is not relevant for provider-level automatic deferred responses. +// provider.DeferredReason is directly mapped to the plugin-protocol which is +// why enum value 1 is skipped here +const ( + // DeferredReasonUnknown is used to indicate an invalid `DeferredReason`. + // Provider developers should not use it. + DeferredReasonUnknown DeferredReason = 0 + + // DeferredReasonProviderConfigUnknown is used to indicate that the provider configuration + // is partially unknown and the real values need to be known before the change can be planned. + DeferredReasonProviderConfigUnknown DeferredReason = 2 +) + +// Deferred is used to indicate to Terraform that a change needs to be deferred for a reason. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type Deferred struct { + // Reason is the reason for deferring the change. + Reason DeferredReason +} + +// DeferredReason represents different reasons for deferring a change. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type DeferredReason int32 + +func (d DeferredReason) String() string { + switch d { + case 0: + return "Unknown" + case 2: + return "Provider Config Unknown" + } + return "Unknown" +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/map_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/map_attribute.go index d75cec9820b3..51ee02edb720 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/map_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/map_attribute.go @@ -19,7 +19,7 @@ var ( _ fwschema.AttributeWithValidateImplementation = MapAttribute{} ) -// MapAttribute represents a schema attribute that is a list with a single +// MapAttribute represents a schema attribute that is a map with a single // element type. When retrieving the value for this attribute, use types.Map // as the value type unless the CustomType field is set. The ElementType field // must be set. @@ -28,7 +28,7 @@ var ( // require definition beyond type information. // // Terraform configurations configure this attribute using expressions that -// return a list or directly via curly brace syntax. +// return a map or directly via curly brace syntax. // // # map of strings // example_attribute = { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/map_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/map_nested_attribute.go index a8809b7a6492..47a3b43485c3 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/map_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/map_nested_attribute.go @@ -18,7 +18,7 @@ var ( _ NestedAttribute = MapNestedAttribute{} ) -// MapNestedAttribute represents an attribute that is a set of objects where +// MapNestedAttribute represents an attribute that is a map of objects where // the object attributes can be fully defined, including further nested // attributes. When retrieving the value for this attribute, use types.Map // as the value type unless the CustomType field is set. The NestedObject field @@ -28,7 +28,7 @@ var ( // not require definition beyond type information. // // Terraform configurations configure this attribute using expressions that -// return a set of objects or directly via curly brace syntax. +// return a map of objects or directly via curly brace syntax. // // # map of objects // example_attribute = { @@ -123,7 +123,7 @@ func (a MapNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { return a.NestedObject } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeMap. func (a MapNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeMap } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/set_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/set_nested_attribute.go index 8bbcf12592ad..233866a003ad 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/set_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/set_nested_attribute.go @@ -118,7 +118,7 @@ func (a SetNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { return a.NestedObject } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeSet. func (a SetNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeSet } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/single_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/single_nested_attribute.go index de4dc07a4023..0ed1a22fd760 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/single_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/metaschema/single_nested_attribute.go @@ -132,7 +132,7 @@ func (a SingleNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject } } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeSingle. func (a SingleNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeSingle } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/provider.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/provider.go index ff0d18e81763..ba18927cbbeb 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/provider.go @@ -7,6 +7,7 @@ import ( "context" "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/ephemeral" "github.com/hashicorp/terraform-plugin-framework/function" "github.com/hashicorp/terraform-plugin-framework/resource" ) @@ -85,6 +86,24 @@ type ProviderWithFunctions interface { Functions(context.Context) []func() function.Function } +// ProviderWithEphemeralResources is an interface type that extends Provider to +// include ephemeral resources for usage in practitioner configurations. +// +// Ephemeral resources are supported in Terraform version 1.10 and later. +// +// NOTE: Ephemeral resource support is experimental and exposed without compatibility promises until +// these notices are removed. +type ProviderWithEphemeralResources interface { + Provider + + // EphemeralResources returns a slice of functions to instantiate each EphemeralResource + // implementation. + // + // The ephemeral resource type name is determined by the EphemeralResource implementing + // the Metadata method. All ephemeral resources must have unique names. + EphemeralResources(context.Context) []func() ephemeral.EphemeralResource +} + // ProviderWithMetaSchema is a provider with a provider meta schema, which // is configured by practitioners via the provider_meta configuration block // and the configuration data is included with certain data source and resource diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/attribute.go index 4a0feceec8c4..67294bfc6906 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/attribute.go @@ -10,7 +10,10 @@ import ( // Attribute define a value field inside the Schema. Implementations in this // package include: // - BoolAttribute +// - DynamicAttribute +// - Float32Attribute // - Float64Attribute +// - Int32Attribute // - Int64Attribute // - ListAttribute // - MapAttribute diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/float32_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/float32_attribute.go new file mode 100644 index 000000000000..a36c5c435789 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/float32_attribute.go @@ -0,0 +1,183 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = Float32Attribute{} + _ fwxschema.AttributeWithFloat32Validators = Float32Attribute{} +) + +// Float32Attribute represents a schema attribute that is a 32-bit floating +// point number. When retrieving the value for this attribute, use +// types.Float32 as the value type unless the CustomType field is set. +// +// Use Int32Attribute for 32-bit integer attributes or NumberAttribute for +// 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via a floating point value. +// +// example_attribute = 123.45 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Float32Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Float32Type. When retrieving data, the basetypes.Float32Valuable + // associated with this custom type must be used in place of types.Float32. + CustomType basetypes.Float32Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. Sensitive does not impact how values are stored, and + // practitioners are encouraged to store their state as if the entire + // file is sensitive. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Float32 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Float32Attribute. +func (a Float32Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Float32Attribute +// and all fields are equal. +func (a Float32Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Float32Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// Float32Validators returns the Validators field value. +func (a Float32Attribute) Float32Validators() []validator.Float32 { + return a.Validators +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Float32Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Float32Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Float32Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Float32Type or the CustomType field value if defined. +func (a Float32Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Float32Type +} + +// IsComputed always returns false as provider schemas cannot be Computed. +func (a Float32Attribute) IsComputed() bool { + return false +} + +// IsOptional returns the Optional field value. +func (a Float32Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Float32Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Float32Attribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/int32_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/int32_attribute.go new file mode 100644 index 000000000000..16ff58f0fa40 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/int32_attribute.go @@ -0,0 +1,184 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisifies the desired interfaces. +var ( + _ Attribute = Int32Attribute{} + _ fwxschema.AttributeWithInt32Validators = Int32Attribute{} +) + +// Int32Attribute represents a schema attribute that is a 32-bit integer. +// When retrieving the value for this attribute, use types.Int32 as the value +// type unless the CustomType field is set. +// +// Use Float32Attribute for 32-bit floating point number attributes or +// NumberAttribute for 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via an integer value. +// +// example_attribute = 123 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Int32Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Int32Type. When retrieving data, the basetypes.Int32Valuable + // associated with this custom type must be used in place of types.Int32. + CustomType basetypes.Int32Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. Sensitive does not impact how values are stored, and + // practitioners are encouraged to store their state as if the entire + // file is sensitive. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Int32 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Int32Attribute. +func (a Int32Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Int32Attribute +// and all fields are equal. +func (a Int32Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Int32Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Int32Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Int32Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Int32Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Int32Type or the CustomType field value if defined. +func (a Int32Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Int32Type +} + +// Int32Validators returns the Validators field value. +func (a Int32Attribute) Int32Validators() []validator.Int32 { + return a.Validators +} + +// IsComputed always returns false as provider schemas cannot be Computed. +func (a Int32Attribute) IsComputed() bool { + return false +} + +// IsOptional returns the Optional field value. +func (a Int32Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Int32Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Int32Attribute) IsSensitive() bool { + return a.Sensitive +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/map_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/map_attribute.go index 079535e7709b..77dc2b61d568 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/map_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/map_attribute.go @@ -23,7 +23,7 @@ var ( _ fwxschema.AttributeWithMapValidators = MapAttribute{} ) -// MapAttribute represents a schema attribute that is a list with a single +// MapAttribute represents a schema attribute that is a map with a single // element type. When retrieving the value for this attribute, use types.Map // as the value type unless the CustomType field is set. The ElementType field // must be set. @@ -32,7 +32,7 @@ var ( // require definition beyond type information. // // Terraform configurations configure this attribute using expressions that -// return a list or directly via curly brace syntax. +// return a map or directly via curly brace syntax. // // # map of strings // example_attribute = { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/map_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/map_nested_attribute.go index 0cdc9b5e0a48..2eed2fa08f54 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/map_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/map_nested_attribute.go @@ -24,7 +24,7 @@ var ( _ fwxschema.AttributeWithMapValidators = MapNestedAttribute{} ) -// MapNestedAttribute represents an attribute that is a set of objects where +// MapNestedAttribute represents an attribute that is a map of objects where // the object attributes can be fully defined, including further nested // attributes. When retrieving the value for this attribute, use types.Map // as the value type unless the CustomType field is set. The NestedObject field @@ -34,7 +34,7 @@ var ( // not require definition beyond type information. // // Terraform configurations configure this attribute using expressions that -// return a set of objects or directly via curly brace syntax. +// return a map of objects or directly via curly brace syntax. // // # map of objects // example_attribute = { @@ -187,7 +187,7 @@ func (a MapNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { return a.NestedObject } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeMap. func (a MapNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeMap } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/set_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/set_nested_attribute.go index 64fed1ea2a03..7a2fb6060127 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/set_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/set_nested_attribute.go @@ -183,7 +183,7 @@ func (a SetNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { return a.NestedObject } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeSet. func (a SetNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeSet } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/single_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/single_nested_attribute.go index aac9875afd29..4aa669bf1e15 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/single_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/provider/schema/single_nested_attribute.go @@ -191,7 +191,7 @@ func (a SingleNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject } } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeSingle. func (a SingleNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeSingle } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/deferred.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/deferred.go new file mode 100644 index 000000000000..ca8d8d4edda8 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/deferred.go @@ -0,0 +1,50 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package resource + +const ( + // DeferredReasonUnknown is used to indicate an invalid `DeferredReason`. + // Provider developers should not use it. + DeferredReasonUnknown DeferredReason = 0 + + // DeferredReasonResourceConfigUnknown is used to indicate that the resource configuration + // is partially unknown and the real values need to be known before the change can be planned. + DeferredReasonResourceConfigUnknown DeferredReason = 1 + + // DeferredReasonProviderConfigUnknown is used to indicate that the provider configuration + // is partially unknown and the real values need to be known before the change can be planned. + DeferredReasonProviderConfigUnknown DeferredReason = 2 + + // DeferredReasonAbsentPrereq is used to indicate that a hard dependency has not been satisfied. + DeferredReasonAbsentPrereq DeferredReason = 3 +) + +// Deferred is used to indicate to Terraform that a change needs to be deferred for a reason. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type Deferred struct { + // Reason is the reason for deferring the change. + Reason DeferredReason +} + +// DeferredReason represents different reasons for deferring a change. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type DeferredReason int32 + +func (d DeferredReason) String() string { + switch d { + case 0: + return "Unknown" + case 1: + return "Resource Config Unknown" + case 2: + return "Provider Config Unknown" + case 3: + return "Absent Prerequisite" + } + return "Unknown" +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/import_state.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/import_state.go index c08255741105..63f1b9fc58b7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/import_state.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/import_state.go @@ -12,6 +12,18 @@ import ( "github.com/hashicorp/terraform-plugin-framework/tfsdk" ) +// ImportStateClientCapabilities allows Terraform to publish information +// regarding optionally supported protocol features for the ImportResourceState RPC, +// such as forward-compatible Terraform behavior changes. +type ImportStateClientCapabilities struct { + // DeferralAllowed indicates whether the Terraform client initiating + // the request allows a deferral response. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + DeferralAllowed bool +} + // ImportStateRequest represents a request for the provider to import a // resource. An instance of this request struct is supplied as an argument to // the Resource's ImportState method. @@ -23,6 +35,10 @@ type ImportStateRequest struct { // its own type of value and parsed during import. This value // is not stored in the state unless the provider explicitly stores it. ID string + + // ClientCapabilities defines optionally supported protocol features for the + // ImportResourceState RPC, such as forward-compatible Terraform behavior changes. + ClientCapabilities ImportStateClientCapabilities } // ImportStateResponse represents a response to a ImportStateRequest. @@ -44,6 +60,16 @@ type ImportStateResponse struct { // This field is not pre-populated as there is no pre-existing private state // data during the resource's Import operation. Private *privatestate.ProviderData + + // Deferred indicates that Terraform should defer + // importing this resource. + // + // This field can only be set if + // `(resource.ImportStateRequest).ClientCapabilities.DeferralAllowed` is true. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + Deferred *Deferred } // ImportStatePassthroughID is a helper function to set the import diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/metadata.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/metadata.go index 9750a46cbc09..289cd6ab2488 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/metadata.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/metadata.go @@ -21,4 +21,32 @@ type MetadataResponse struct { // TypeName should be the full resource type, including the provider // type prefix and an underscore. For example, examplecloud_thing. TypeName string + + // ResourceBehavior is used to control framework-specific logic when + // interacting with this resource. + ResourceBehavior ResourceBehavior +} + +// ResourceBehavior controls framework-specific logic when interacting +// with a resource. +type ResourceBehavior struct { + // ProviderDeferred enables provider-defined logic to be executed + // in the case of an automatic deferred response from provider configure. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + ProviderDeferred ProviderDeferredBehavior +} + +// ProviderDeferredBehavior enables provider-defined logic to be executed +// in the case of a deferred response from provider configuration. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type ProviderDeferredBehavior struct { + // When EnablePlanModification is true, framework will still execute + // provider-defined resource plan modification logic if + // provider.Configure defers. Framework will then automatically return a + // deferred response along with the modified plan. + EnablePlanModification bool } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/modify_plan.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/modify_plan.go index 76be450d823a..28843cec11bf 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/modify_plan.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/modify_plan.go @@ -10,6 +10,18 @@ import ( "github.com/hashicorp/terraform-plugin-framework/tfsdk" ) +// ModifyPlanClientCapabilities allows Terraform to publish information +// regarding optionally supported protocol features for the PlanResourceChange RPC, +// such as forward-compatible Terraform behavior changes. +type ModifyPlanClientCapabilities struct { + // DeferralAllowed indicates whether the Terraform client initiating + // the request allows a deferral response. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + DeferralAllowed bool +} + // ModifyPlanRequest represents a request for the provider to modify the // planned new state that Terraform has generated for the resource. type ModifyPlanRequest struct { @@ -39,6 +51,10 @@ type ModifyPlanRequest struct { // Use the GetKey method to read data. Use the SetKey method on // ModifyPlanResponse.Private to update or remove a value. Private *privatestate.ProviderData + + // ClientCapabilities defines optionally supported protocol features for the + // PlanResourceChange RPC, such as forward-compatible Terraform behavior changes. + ClientCapabilities ModifyPlanClientCapabilities } // ModifyPlanResponse represents a response to a @@ -65,4 +81,14 @@ type ModifyPlanResponse struct { // indicates a successful plan modification with no warnings or errors // generated. Diagnostics diag.Diagnostics + + // Deferred indicates that Terraform should defer importing this + // resource until a followup apply operation. + // + // This field can only be set if + // `(resource.ModifyPlanRequest).ClientCapabilities.DeferralAllowed` is true. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + Deferred *Deferred } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/read.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/read.go index 0cc135434008..53c4cb832c5e 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/read.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/read.go @@ -9,6 +9,18 @@ import ( "github.com/hashicorp/terraform-plugin-framework/tfsdk" ) +// ReadClientCapabilities allows Terraform to publish information +// regarding optionally supported protocol features for the ReadResource RPC, +// such as forward-compatible Terraform behavior changes. +type ReadClientCapabilities struct { + // DeferralAllowed indicates whether the Terraform client initiating + // the request allows a deferral response. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + DeferralAllowed bool +} + // ReadRequest represents a request for the provider to read a // resource, i.e., update values in state according to the real state of the // resource. An instance of this request struct is supplied as an argument to @@ -29,6 +41,10 @@ type ReadRequest struct { // ProviderMeta is metadata from the provider_meta block of the module. ProviderMeta tfsdk.Config + + // ClientCapabilities defines optionally supported protocol features for the + // ReadResource RPC, such as forward-compatible Terraform behavior changes. + ClientCapabilities ReadClientCapabilities } // ReadResponse represents a response to a ReadRequest. An @@ -50,4 +66,14 @@ type ReadResponse struct { // resource. An empty slice indicates a successful operation with no // warnings or errors generated. Diagnostics diag.Diagnostics + + // Deferred indicates that Terraform should defer refreshing this + // resource until a followup plan operation. + // + // This field can only be set if + // `(resource.ReadRequest).ClientCapabilities.DeferralAllowed` is true. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + Deferred *Deferred } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/attribute.go index 4a0feceec8c4..67294bfc6906 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/attribute.go @@ -10,7 +10,10 @@ import ( // Attribute define a value field inside the Schema. Implementations in this // package include: // - BoolAttribute +// - DynamicAttribute +// - Float32Attribute // - Float64Attribute +// - Int32Attribute // - Int64Attribute // - ListAttribute // - MapAttribute diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults/float32.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults/float32.go new file mode 100644 index 000000000000..c54645d56e8c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults/float32.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package defaults + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +// Float32 is a schema default value for types.Float32 attributes. +type Float32 interface { + Describer + + // DefaultFloat32 should set the default value. + DefaultFloat32(context.Context, Float32Request, *Float32Response) +} + +type Float32Request struct { + // Path contains the path of the attribute for setting the + // default value. Use this path for any response diagnostics. + Path path.Path +} + +type Float32Response struct { + // Diagnostics report errors or warnings related to setting the + // default value resource configuration. An empty slice + // indicates success, with no warnings or errors generated. + Diagnostics diag.Diagnostics + + // PlanValue is the planned new state for the attribute. + PlanValue types.Float32 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults/int32.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults/int32.go new file mode 100644 index 000000000000..a26da30ff087 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults/int32.go @@ -0,0 +1,36 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package defaults + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +// Int32 is a schema default value for types.Int32 attributes. +type Int32 interface { + Describer + + // DefaultInt32 should set the default value. + DefaultInt32(context.Context, Int32Request, *Int32Response) +} + +type Int32Request struct { + // Path contains the path of the attribute for setting the + // default value. Use this path for any response diagnostics. + Path path.Path +} + +type Int32Response struct { + // Diagnostics report errors or warnings related to setting the + // default value resource configuration. An empty slice + // indicates success, with no warnings or errors generated. + Diagnostics diag.Diagnostics + + // PlanValue is the planned new state for the attribute. + PlanValue types.Int32 +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/float32_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/float32_attribute.go new file mode 100644 index 000000000000..9e8e7a22ad14 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/float32_attribute.go @@ -0,0 +1,243 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisfies the desired interfaces. +var ( + _ Attribute = Float32Attribute{} + _ fwschema.AttributeWithValidateImplementation = Float32Attribute{} + _ fwschema.AttributeWithFloat32DefaultValue = Float32Attribute{} + _ fwxschema.AttributeWithFloat32PlanModifiers = Float32Attribute{} + _ fwxschema.AttributeWithFloat32Validators = Float32Attribute{} +) + +// Float32Attribute represents a schema attribute that is a 32-bit floating +// point number. When retrieving the value for this attribute, use +// types.Float32 as the value type unless the CustomType field is set. +// +// Use Int32Attribute for 32-bit integer attributes or NumberAttribute for +// 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via a floating point value. +// +// example_attribute = 123.45 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Float32Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Float32Type. When retrieving data, the basetypes.Float32Valuable + // associated with this custom type must be used in place of types.Float32. + CustomType basetypes.Float32Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. Sensitive does not impact how values are stored, and + // practitioners are encouraged to store their state as if the entire + // file is sensitive. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Float32 + + // PlanModifiers defines a sequence of modifiers for this attribute at + // plan time. Schema-based plan modifications occur before any + // resource-level plan modifications. + // + // Schema-based plan modifications can adjust Terraform's plan by: + // + // - Requiring resource recreation. Typically used for configuration + // updates which cannot be done in-place. + // - Setting the planned value. Typically used for enhancing the plan + // to replace unknown values. Computed must be true or Terraform will + // return an error. If the plan value is known due to a known + // configuration value, the plan value cannot be changed or Terraform + // will return an error. + // + // Any errors will prevent further execution of this sequence or modifiers. + PlanModifiers []planmodifier.Float32 + + // Default defines a proposed new state (plan) value for the attribute + // if the configuration value is null. Default prevents the framework + // from automatically marking the value as unknown during planning when + // other proposed new state changes are detected. If the attribute is + // computed and the value could be altered by other changes then a default + // should be avoided and a plan modifier should be used instead. + Default defaults.Float32 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Float32Attribute. +func (a Float32Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Float32Attribute +// and all fields are equal. +func (a Float32Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Float32Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// Float32DefaultValue returns the Default field value. +func (a Float32Attribute) Float32DefaultValue() defaults.Float32 { + return a.Default +} + +// Float32PlanModifiers returns the PlanModifiers field value. +func (a Float32Attribute) Float32PlanModifiers() []planmodifier.Float32 { + return a.PlanModifiers +} + +// Float32Validators returns the Validators field value. +func (a Float32Attribute) Float32Validators() []validator.Float32 { + return a.Validators +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Float32Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Float32Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Float32Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Float32Type or the CustomType field value if defined. +func (a Float32Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Float32Type +} + +// IsComputed returns the Computed field value. +func (a Float32Attribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a Float32Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Float32Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Float32Attribute) IsSensitive() bool { + return a.Sensitive +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC and +// should never include false positives. +func (a Float32Attribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if !a.IsComputed() && a.Float32DefaultValue() != nil { + resp.Diagnostics.Append(nonComputedAttributeWithDefaultDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/int32_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/int32_attribute.go new file mode 100644 index 000000000000..41b74bcf380f --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/int32_attribute.go @@ -0,0 +1,243 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema/fwxschema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure the implementation satisfies the desired interfaces. +var ( + _ Attribute = Int32Attribute{} + _ fwschema.AttributeWithValidateImplementation = Int32Attribute{} + _ fwschema.AttributeWithInt32DefaultValue = Int32Attribute{} + _ fwxschema.AttributeWithInt32PlanModifiers = Int32Attribute{} + _ fwxschema.AttributeWithInt32Validators = Int32Attribute{} +) + +// Int32Attribute represents a schema attribute that is a 32-bit integer. +// When retrieving the value for this attribute, use types.Int32 as the value +// type unless the CustomType field is set. +// +// Use Float32Attribute for 32-bit floating point number attributes or +// NumberAttribute for 512-bit generic number attributes. +// +// Terraform configurations configure this attribute using expressions that +// return a number or directly via an integer value. +// +// example_attribute = 123 +// +// Terraform configurations reference this attribute using the attribute name. +// +// .example_attribute +type Int32Attribute struct { + // CustomType enables the use of a custom attribute type in place of the + // default basetypes.Int32Type. When retrieving data, the basetypes.Int32Valuable + // associated with this custom type must be used in place of types.Int32. + CustomType basetypes.Int32Typable + + // Required indicates whether the practitioner must enter a value for + // this attribute or not. Required and Optional cannot both be true, + // and Required and Computed cannot both be true. + Required bool + + // Optional indicates whether the practitioner can choose to enter a value + // for this attribute or not. Optional and Required cannot both be true. + Optional bool + + // Computed indicates whether the provider may return its own value for + // this Attribute or not. Required and Computed cannot both be true. If + // Required and Optional are both false, Computed must be true, and the + // attribute will be considered "read only" for the practitioner, with + // only the provider able to set its value. + Computed bool + + // Sensitive indicates whether the value of this attribute should be + // considered sensitive data. Setting it to true will obscure the value + // in CLI output. Sensitive does not impact how values are stored, and + // practitioners are encouraged to store their state as if the entire + // file is sensitive. + Sensitive bool + + // Description is used in various tooling, like the language server, to + // give practitioners more information about what this attribute is, + // what it's for, and how it should be used. It should be written as + // plain text, with no special formatting. + Description string + + // MarkdownDescription is used in various tooling, like the + // documentation generator, to give practitioners more information + // about what this attribute is, what it's for, and how it should be + // used. It should be formatted using Markdown. + MarkdownDescription string + + // DeprecationMessage defines warning diagnostic details to display when + // practitioner configurations use this Attribute. The warning diagnostic + // summary is automatically set to "Attribute Deprecated" along with + // configuration source file and line information. + // + // Set this field to a practitioner actionable message such as: + // + // - "Configure other_attribute instead. This attribute will be removed + // in the next major version of the provider." + // - "Remove this attribute's configuration as it no longer is used and + // the attribute will be removed in the next major version of the + // provider." + // + // In Terraform 1.2.7 and later, this warning diagnostic is displayed any + // time a practitioner attempts to configure a value for this attribute and + // certain scenarios where this attribute is referenced. + // + // In Terraform 1.2.6 and earlier, this warning diagnostic is only + // displayed when the Attribute is Required or Optional, and if the + // practitioner configuration sets the value to a known or unknown value + // (which may eventually be null). It has no effect when the Attribute is + // Computed-only (read-only; not Required or Optional). + // + // Across any Terraform version, there are no warnings raised for + // practitioner configuration values set directly to null, as there is no + // way for the framework to differentiate between an unset and null + // configuration due to how Terraform sends configuration information + // across the protocol. + // + // Additional information about deprecation enhancements for read-only + // attributes can be found in: + // + // - https://github.com/hashicorp/terraform/issues/7569 + // + DeprecationMessage string + + // Validators define value validation functionality for the attribute. All + // elements of the slice of AttributeValidator are run, regardless of any + // previous error diagnostics. + // + // Many common use case validators can be found in the + // github.com/hashicorp/terraform-plugin-framework-validators Go module. + // + // If the Type field points to a custom type that implements the + // xattr.TypeWithValidate interface, the validators defined in this field + // are run in addition to the validation defined by the type. + Validators []validator.Int32 + + // PlanModifiers defines a sequence of modifiers for this attribute at + // plan time. Schema-based plan modifications occur before any + // resource-level plan modifications. + // + // Schema-based plan modifications can adjust Terraform's plan by: + // + // - Requiring resource recreation. Typically used for configuration + // updates which cannot be done in-place. + // - Setting the planned value. Typically used for enhancing the plan + // to replace unknown values. Computed must be true or Terraform will + // return an error. If the plan value is known due to a known + // configuration value, the plan value cannot be changed or Terraform + // will return an error. + // + // Any errors will prevent further execution of this sequence or modifiers. + PlanModifiers []planmodifier.Int32 + + // Default defines a proposed new state (plan) value for the attribute + // if the configuration value is null. Default prevents the framework + // from automatically marking the value as unknown during planning when + // other proposed new state changes are detected. If the attribute is + // computed and the value could be altered by other changes then a default + // should be avoided and a plan modifier should be used instead. + Default defaults.Int32 +} + +// ApplyTerraform5AttributePathStep always returns an error as it is not +// possible to step further into a Int32Attribute. +func (a Int32Attribute) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return a.GetType().ApplyTerraform5AttributePathStep(step) +} + +// Equal returns true if the given Attribute is a Int32Attribute +// and all fields are equal. +func (a Int32Attribute) Equal(o fwschema.Attribute) bool { + if _, ok := o.(Int32Attribute); !ok { + return false + } + + return fwschema.AttributesEqual(a, o) +} + +// GetDeprecationMessage returns the DeprecationMessage field value. +func (a Int32Attribute) GetDeprecationMessage() string { + return a.DeprecationMessage +} + +// GetDescription returns the Description field value. +func (a Int32Attribute) GetDescription() string { + return a.Description +} + +// GetMarkdownDescription returns the MarkdownDescription field value. +func (a Int32Attribute) GetMarkdownDescription() string { + return a.MarkdownDescription +} + +// GetType returns types.Int32Type or the CustomType field value if defined. +func (a Int32Attribute) GetType() attr.Type { + if a.CustomType != nil { + return a.CustomType + } + + return types.Int32Type +} + +// Int32DefaultValue returns the Default field value. +func (a Int32Attribute) Int32DefaultValue() defaults.Int32 { + return a.Default +} + +// Int32PlanModifiers returns the PlanModifiers field value. +func (a Int32Attribute) Int32PlanModifiers() []planmodifier.Int32 { + return a.PlanModifiers +} + +// Int32Validators returns the Validators field value. +func (a Int32Attribute) Int32Validators() []validator.Int32 { + return a.Validators +} + +// IsComputed returns the Computed field value. +func (a Int32Attribute) IsComputed() bool { + return a.Computed +} + +// IsOptional returns the Optional field value. +func (a Int32Attribute) IsOptional() bool { + return a.Optional +} + +// IsRequired returns the Required field value. +func (a Int32Attribute) IsRequired() bool { + return a.Required +} + +// IsSensitive returns the Sensitive field value. +func (a Int32Attribute) IsSensitive() bool { + return a.Sensitive +} + +// ValidateImplementation contains logic for validating the +// provider-defined implementation of the attribute to prevent unexpected +// errors or panics. This logic runs during the GetProviderSchema RPC and +// should never include false positives. +func (a Int32Attribute) ValidateImplementation(ctx context.Context, req fwschema.ValidateImplementationRequest, resp *fwschema.ValidateImplementationResponse) { + if !a.IsComputed() && a.Int32DefaultValue() != nil { + resp.Diagnostics.Append(nonComputedAttributeWithDefaultDiag(req.Path)) + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/map_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/map_attribute.go index ea08fa7b27a2..ac50f63f8d26 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/map_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/map_attribute.go @@ -28,7 +28,7 @@ var ( _ fwxschema.AttributeWithMapValidators = MapAttribute{} ) -// MapAttribute represents a schema attribute that is a list with a single +// MapAttribute represents a schema attribute that is a map with a single // element type. When retrieving the value for this attribute, use types.Map // as the value type unless the CustomType field is set. The ElementType field // must be set. @@ -37,7 +37,7 @@ var ( // require definition beyond type information. // // Terraform configurations configure this attribute using expressions that -// return a list or directly via curly brace syntax. +// return a map or directly via curly brace syntax. // // # map of strings // example_attribute = { diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/map_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/map_nested_attribute.go index faa1f3276c2a..ab2230b3b964 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/map_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/map_nested_attribute.go @@ -29,7 +29,7 @@ var ( _ fwxschema.AttributeWithMapValidators = MapNestedAttribute{} ) -// MapNestedAttribute represents an attribute that is a set of objects where +// MapNestedAttribute represents an attribute that is a map of objects where // the object attributes can be fully defined, including further nested // attributes. When retrieving the value for this attribute, use types.Map // as the value type unless the CustomType field is set. The NestedObject field @@ -39,7 +39,7 @@ var ( // not require definition beyond type information. // // Terraform configurations configure this attribute using expressions that -// return a set of objects or directly via curly brace syntax. +// return a map of objects or directly via curly brace syntax. // // # map of objects // example_attribute = { @@ -224,7 +224,7 @@ func (a MapNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { return a.NestedObject } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeMap. func (a MapNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeMap } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier/float32.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier/float32.go new file mode 100644 index 000000000000..6cb6c4827479 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier/float32.go @@ -0,0 +1,88 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package planmodifier + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +// Float32 is a schema plan modifier for types.Float32 attributes. +type Float32 interface { + Describer + + // PlanModifyFloat32 should perform the modification. + PlanModifyFloat32(context.Context, Float32Request, *Float32Response) +} + +// Float32Request is a request for types.Float32 schema plan modification. +type Float32Request struct { + // Path contains the path of the attribute for modification. Use this path + // for any response diagnostics. + Path path.Path + + // PathExpression contains the expression matching the exact path + // of the attribute for modification. + PathExpression path.Expression + + // Config contains the entire configuration of the resource. + Config tfsdk.Config + + // ConfigValue contains the value of the attribute for modification from the configuration. + ConfigValue types.Float32 + + // Plan contains the entire proposed new state of the resource. + Plan tfsdk.Plan + + // PlanValue contains the value of the attribute for modification from the proposed new state. + PlanValue types.Float32 + + // State contains the entire prior state of the resource. + State tfsdk.State + + // StateValue contains the value of the attribute for modification from the prior state. + StateValue types.Float32 + + // Private is provider-defined resource private state data which was previously + // stored with the resource state. This data is opaque to Terraform and does + // not affect plan output. Any existing data is copied to + // Float32Response.Private to prevent accidental private state data loss. + // + // The private state data is always the original data when the schema-based plan + // modification began or, is updated as the logic traverses deeper into underlying + // attributes. + // + // Use the GetKey method to read data. Use the SetKey method on + // Float32Response.Private to update or remove a value. + Private *privatestate.ProviderData +} + +// Float32Response is a response to a Float32Request. +type Float32Response struct { + // PlanValue is the planned new state for the attribute. + PlanValue types.Float32 + + // RequiresReplace indicates whether a change in the attribute + // requires replacement of the whole resource. + RequiresReplace bool + + // Private is the private state resource data following the PlanModifyFloat32 operation. + // This field is pre-populated from Float32Request.Private and + // can be modified during the resource's PlanModifyFloat32 operation. + // + // The private state data is always the original data when the schema-based plan + // modification began or, is updated as the logic traverses deeper into underlying + // attributes. + Private *privatestate.ProviderData + + // Diagnostics report errors or warnings related to modifying the resource + // plan. An empty slice indicates success, with no warnings or + // errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier/int32.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier/int32.go new file mode 100644 index 000000000000..88136157fa86 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier/int32.go @@ -0,0 +1,88 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package planmodifier + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/privatestate" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +// Int32 is a schema plan modifier for types.Int32 attributes. +type Int32 interface { + Describer + + // PlanModifyInt32 should perform the modification. + PlanModifyInt32(context.Context, Int32Request, *Int32Response) +} + +// Int32Request is a request for types.Int32 schema plan modification. +type Int32Request struct { + // Path contains the path of the attribute for modification. Use this path + // for any response diagnostics. + Path path.Path + + // PathExpression contains the expression matching the exact path + // of the attribute for modification. + PathExpression path.Expression + + // Config contains the entire configuration of the resource. + Config tfsdk.Config + + // ConfigValue contains the value of the attribute for modification from the configuration. + ConfigValue types.Int32 + + // Plan contains the entire proposed new state of the resource. + Plan tfsdk.Plan + + // PlanValue contains the value of the attribute for modification from the proposed new state. + PlanValue types.Int32 + + // State contains the entire prior state of the resource. + State tfsdk.State + + // StateValue contains the value of the attribute for modification from the prior state. + StateValue types.Int32 + + // Private is provider-defined resource private state data which was previously + // stored with the resource state. This data is opaque to Terraform and does + // not affect plan output. Any existing data is copied to + // Int32Response.Private to prevent accidental private state data loss. + // + // The private state data is always the original data when the schema-based plan + // modification began or, is updated as the logic traverses deeper into underlying + // attributes. + // + // Use the GetKey method to read data. Use the SetKey method on + // Int32Response.Private to update or remove a value. + Private *privatestate.ProviderData +} + +// Int32Response is a response to an Int32Request. +type Int32Response struct { + // PlanValue is the planned new state for the attribute. + PlanValue types.Int32 + + // RequiresReplace indicates whether a change in the attribute + // requires replacement of the whole resource. + RequiresReplace bool + + // Private is the private state resource data following the PlanModifyInt32 operation. + // This field is pre-populated from Int32Request.Private and + // can be modified during the resource's PlanModifyInt32 operation. + // + // The private state data is always the original data when the schema-based plan + // modification began or, is updated as the logic traverses deeper into underlying + // attributes. + Private *privatestate.ProviderData + + // Diagnostics report errors or warnings related to modifying the resource + // plan. An empty slice indicates success, with no warnings or + // errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/set_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/set_nested_attribute.go index 3f2b3d1bb0da..dee37b591b96 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/set_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/set_nested_attribute.go @@ -219,7 +219,7 @@ func (a SetNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject { return a.NestedObject } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeSet. func (a SetNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeSet } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/single_nested_attribute.go b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/single_nested_attribute.go index a47ef65414cb..3dbda942a709 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/single_nested_attribute.go +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/resource/schema/single_nested_attribute.go @@ -229,7 +229,7 @@ func (a SingleNestedAttribute) GetNestedObject() fwschema.NestedAttributeObject } } -// GetNestingMode always returns NestingModeList. +// GetNestingMode always returns NestingModeSingle. func (a SingleNestedAttribute) GetNestingMode() fwschema.NestingMode { return fwschema.NestingModeSingle } diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/schema/validator/float32.go b/vendor/github.com/hashicorp/terraform-plugin-framework/schema/validator/float32.go new file mode 100644 index 000000000000..c1cd8421d16e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/schema/validator/float32.go @@ -0,0 +1,46 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validator + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +// Float32 is a schema validator for types.Float32 attributes. +type Float32 interface { + Describer + + // ValidateFloat32 should perform the validation. + ValidateFloat32(context.Context, Float32Request, *Float32Response) +} + +// Float32Request is a request for types.Float32 schema validation. +type Float32Request struct { + // Path contains the path of the attribute for validation. Use this path + // for any response diagnostics. + Path path.Path + + // PathExpression contains the expression matching the exact path + // of the attribute for validation. + PathExpression path.Expression + + // Config contains the entire configuration of the data source, provider, or resource. + Config tfsdk.Config + + // ConfigValue contains the value of the attribute for validation from the configuration. + ConfigValue types.Float32 +} + +// Float32Response is a response to a Float32Request. +type Float32Response struct { + // Diagnostics report errors or warnings related to validating the data source, provider, or resource + // configuration. An empty slice indicates success, with no warnings + // or errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/schema/validator/int32.go b/vendor/github.com/hashicorp/terraform-plugin-framework/schema/validator/int32.go new file mode 100644 index 000000000000..2cbbc3cc2b19 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/schema/validator/int32.go @@ -0,0 +1,46 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package validator + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/tfsdk" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +// Int32 is a schema validator for types.Int32 attributes. +type Int32 interface { + Describer + + // ValidateInt32 should perform the validation. + ValidateInt32(context.Context, Int32Request, *Int32Response) +} + +// Int32Request is a request for types.Int32 schema validation. +type Int32Request struct { + // Path contains the path of the attribute for validation. Use this path + // for any response diagnostics. + Path path.Path + + // PathExpression contains the expression matching the exact path + // of the attribute for validation. + PathExpression path.Expression + + // Config contains the entire configuration of the data source, provider, or resource. + Config tfsdk.Config + + // ConfigValue contains the value of the attribute for validation from the configuration. + ConfigValue types.Int32 +} + +// Int32Response is a response to a Int32Request. +type Int32Response struct { + // Diagnostics report errors or warnings related to validating the data source, provider, or resource + // configuration. An empty slice indicates success, with no warnings + // or errors generated. + Diagnostics diag.Diagnostics +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/tfsdk/ephemeral_result_data.go b/vendor/github.com/hashicorp/terraform-plugin-framework/tfsdk/ephemeral_result_data.go new file mode 100644 index 000000000000..b3990ca77f3b --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/tfsdk/ephemeral_result_data.go @@ -0,0 +1,94 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package tfsdk + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschema" + "github.com/hashicorp/terraform-plugin-framework/internal/fwschemadata" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// EphemeralResultData represents the data returned after opening a Terraform ephemeral resource. +type EphemeralResultData struct { + Raw tftypes.Value + Schema fwschema.Schema +} + +// Get populates the struct passed as `target` with the entire ephemeral result data object. +func (s EphemeralResultData) Get(ctx context.Context, target interface{}) diag.Diagnostics { + return s.data().Get(ctx, target) +} + +// GetAttribute retrieves the attribute or block found at `path` and populates +// the `target` with the value. This method is intended for top level schema +// attributes or blocks. Use `types` package methods or custom types to step +// into collections. +// +// Attributes or elements under null or unknown collections return null +// values, however this behavior is not protected by compatibility promises. +func (s EphemeralResultData) GetAttribute(ctx context.Context, path path.Path, target interface{}) diag.Diagnostics { + return s.data().GetAtPath(ctx, path, target) +} + +// PathMatches returns all matching path.Paths from the given path.Expression. +// +// If a parent path is null or unknown, which would prevent a full expression +// from matching, the parent path is returned rather than no match to prevent +// false positives. +func (s EphemeralResultData) PathMatches(ctx context.Context, pathExpr path.Expression) (path.Paths, diag.Diagnostics) { + return s.data().PathMatches(ctx, pathExpr) +} + +// Set populates the entire ephemeral result data object using the supplied Go value. The value `val` +// should be a struct whose values have one of the attr.Value types. Each field +// must be tagged with the corresponding schema field. +func (s *EphemeralResultData) Set(ctx context.Context, val interface{}) diag.Diagnostics { + data := s.data() + diags := data.Set(ctx, val) + + if diags.HasError() { + return diags + } + + s.Raw = data.TerraformValue + + return diags +} + +// SetAttribute sets the attribute at `path` using the supplied Go value. +// +// The attribute path and value must be valid with the current schema. If the +// attribute path already has a value, it will be overwritten. If the attribute +// path does not have a value, it will be added, including any parent attribute +// paths as necessary. +// +// The value must not be an untyped nil. Use a typed nil or types package null +// value function instead. For example with a types.StringType attribute, +// use (*string)(nil) or types.StringNull(). +// +// Lists can only have the next element added according to the current length. +func (s *EphemeralResultData) SetAttribute(ctx context.Context, path path.Path, val interface{}) diag.Diagnostics { + data := s.data() + diags := data.SetAtPath(ctx, path, val) + + if diags.HasError() { + return diags + } + + s.Raw = data.TerraformValue + + return diags +} + +func (s EphemeralResultData) data() *fwschemadata.Data { + return &fwschemadata.Data{ + Description: fwschemadata.DataDescriptionEphemeralResultData, + Schema: s.Schema, + TerraformValue: s.Raw, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/float32_type.go b/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/float32_type.go new file mode 100644 index 000000000000..77d35286c5b7 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/float32_type.go @@ -0,0 +1,113 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package basetypes + +import ( + "context" + "fmt" + "math" + "math/big" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/internal/logging" +) + +// Float32Typable extends attr.Type for float32 types. +// Implement this interface to create a custom Float32Type type. +type Float32Typable interface { + attr.Type + + // ValueFromFloat32 should convert the Float32 to a Float32Valuable type. + ValueFromFloat32(context.Context, Float32Value) (Float32Valuable, diag.Diagnostics) +} + +var _ Float32Typable = Float32Type{} + +// Float32Type is the base framework type for a floating point number. +// Float32Value is the associated value type. +type Float32Type struct{} + +// ApplyTerraform5AttributePathStep applies the given AttributePathStep to the +// type. +func (t Float32Type) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return nil, fmt.Errorf("cannot apply AttributePathStep %T to %s", step, t.String()) +} + +// Equal returns true if the given type is equivalent. +func (t Float32Type) Equal(o attr.Type) bool { + _, ok := o.(Float32Type) + + return ok +} + +// String returns a human readable string of the type name. +func (t Float32Type) String() string { + return "basetypes.Float32Type" +} + +// TerraformType returns the tftypes.Type that should be used to represent this +// framework type. +func (t Float32Type) TerraformType(_ context.Context) tftypes.Type { + return tftypes.Number +} + +// ValueFromFloat32 returns a Float32Valuable type given a Float32Value. +func (t Float32Type) ValueFromFloat32(_ context.Context, v Float32Value) (Float32Valuable, diag.Diagnostics) { + return v, nil +} + +// ValueFromTerraform returns a Value given a tftypes.Value. This is meant to +// convert the tftypes.Value into a more convenient Go type for the provider to +// consume the data with. +func (t Float32Type) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error) { + if !in.IsKnown() { + return NewFloat32Unknown(), nil + } + + if in.IsNull() { + return NewFloat32Null(), nil + } + + var bigF *big.Float + err := in.As(&bigF) + + if err != nil { + return nil, err + } + + f, accuracy := bigF.Float32() + f64, f64accuracy := bigF.Float64() + + if accuracy == big.Exact && f64accuracy == big.Exact { + logging.FrameworkDebug(ctx, fmt.Sprintf("Float32Type ValueFromTerraform: big.Float value has distinct float32 and float64 representations "+ + "(float32 value: %f, float64 value: %f)", f, f64)) + } + + // Underflow + // Reference: https://pkg.go.dev/math/big#Float.Float32 + if f == 0 && accuracy != big.Exact { + return nil, fmt.Errorf("Value %s cannot be represented as a 32-bit floating point.", bigF) + } + + // Overflow + // Reference: https://pkg.go.dev/math/big#Float.Float32 + if math.IsInf(float64(f), 0) { + return nil, fmt.Errorf("Value %s cannot be represented as a 32-bit floating point.", bigF) + } + + // Underlying *big.Float values are not exposed with helper functions, so creating Float32Value via struct literal + return Float32Value{ + state: attr.ValueStateKnown, + value: bigF, + }, nil +} + +// ValueType returns the Value type. +func (t Float32Type) ValueType(_ context.Context) attr.Value { + // This Value does not need to be valid. + return Float32Value{} +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/float32_value.go b/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/float32_value.go new file mode 100644 index 000000000000..1085b849c37e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/float32_value.go @@ -0,0 +1,218 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package basetypes + +import ( + "context" + "fmt" + "math/big" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" +) + +var ( + _ Float32Valuable = Float32Value{} + _ Float32ValuableWithSemanticEquals = Float32Value{} +) + +// Float32Valuable extends attr.Value for float32 value types. +// Implement this interface to create a custom Float32 value type. +type Float32Valuable interface { + attr.Value + + // ToFloat32Value should convert the value type to a Float32. + ToFloat32Value(ctx context.Context) (Float32Value, diag.Diagnostics) +} + +// Float32ValuableWithSemanticEquals extends Float32Valuable with semantic +// equality logic. +type Float32ValuableWithSemanticEquals interface { + Float32Valuable + + // Float32SemanticEquals should return true if the given value is + // semantically equal to the current value. This logic is used to prevent + // Terraform data consistency errors and resource drift where a value change + // may have inconsequential differences, such as rounding. + // + // Only known values are compared with this method as changing a value's + // state implicitly represents a different value. + Float32SemanticEquals(context.Context, Float32Valuable) (bool, diag.Diagnostics) +} + +// NewFloat32Null creates a Float32 with a null value. Determine whether the value is +// null via the Float32 type IsNull method. +func NewFloat32Null() Float32Value { + return Float32Value{ + state: attr.ValueStateNull, + } +} + +// NewFloat32Unknown creates a Float32 with an unknown value. Determine whether the +// value is unknown via the Float32 type IsUnknown method. +func NewFloat32Unknown() Float32Value { + return Float32Value{ + state: attr.ValueStateUnknown, + } +} + +// NewFloat32Value creates a Float32 with a known value. Access the value via the Float32 +// type ValueFloat32 method. Passing a value of `NaN` will result in a panic. +func NewFloat32Value(value float32) Float32Value { + return Float32Value{ + state: attr.ValueStateKnown, + value: big.NewFloat(float64(value)), + } +} + +// NewFloat32PointerValue creates a Float32 with a null value if nil or a known +// value. Access the value via the Float32 type ValueFloat32Pointer method. +// Passing a value of `NaN` will result in a panic. +func NewFloat32PointerValue(value *float32) Float32Value { + if value == nil { + return NewFloat32Null() + } + + return NewFloat32Value(*value) +} + +// Float32Value represents a 32-bit floating point value, exposed as a float32. +type Float32Value struct { + // state represents whether the value is null, unknown, or known. The + // zero-value is null. + state attr.ValueState + + // value contains the known value, if not null or unknown. + value *big.Float +} + +// Float32SemanticEquals returns true if the given Float32Value is semantically equal to the current Float32Value. +// The underlying value *big.Float can store more precise float values then the Go built-in float32 type. This only +// compares the precision of the value that can be represented as the Go built-in float32, which is 53 bits of precision. +func (f Float32Value) Float32SemanticEquals(ctx context.Context, newValuable Float32Valuable) (bool, diag.Diagnostics) { + var diags diag.Diagnostics + + newValue, ok := newValuable.(Float32Value) + if !ok { + diags.AddError( + "Semantic Equality Check Error", + "An unexpected value type was received while performing semantic equality checks. "+ + "Please report this to the provider developers.\n\n"+ + "Expected Value Type: "+fmt.Sprintf("%T", f)+"\n"+ + "Got Value Type: "+fmt.Sprintf("%T", newValuable), + ) + + return false, diags + } + + return f.ValueFloat32() == newValue.ValueFloat32(), diags +} + +// Equal returns true if `other` is a Float32 and has the same value as `f`. +func (f Float32Value) Equal(other attr.Value) bool { + o, ok := other.(Float32Value) + + if !ok { + return false + } + + if f.state != o.state { + return false + } + + if f.state != attr.ValueStateKnown { + return true + } + + // Not possible to create a known Float32Value with a nil value, but check anyways + if f.value == nil || o.value == nil { + return f.value == o.value + } + + return f.value.Cmp(o.value) == 0 +} + +// ToTerraformValue returns the data contained in the Float32 as a tftypes.Value. +func (f Float32Value) ToTerraformValue(ctx context.Context) (tftypes.Value, error) { + switch f.state { + case attr.ValueStateKnown: + if err := tftypes.ValidateValue(tftypes.Number, f.value); err != nil { + return tftypes.NewValue(tftypes.Number, tftypes.UnknownValue), err + } + + return tftypes.NewValue(tftypes.Number, f.value), nil + case attr.ValueStateNull: + return tftypes.NewValue(tftypes.Number, nil), nil + case attr.ValueStateUnknown: + return tftypes.NewValue(tftypes.Number, tftypes.UnknownValue), nil + default: + panic(fmt.Sprintf("unhandled Float32 state in ToTerraformValue: %s", f.state)) + } +} + +// Type returns a Float32Type. +func (f Float32Value) Type(ctx context.Context) attr.Type { + return Float32Type{} +} + +// IsNull returns true if the Float32 represents a null value. +func (f Float32Value) IsNull() bool { + return f.state == attr.ValueStateNull +} + +// IsUnknown returns true if the Float32 represents a currently unknown value. +func (f Float32Value) IsUnknown() bool { + return f.state == attr.ValueStateUnknown +} + +// String returns a human-readable representation of the Float32 value. +// The string returned here is not protected by any compatibility guarantees, +// and is intended for logging and error reporting. +func (f Float32Value) String() string { + if f.IsUnknown() { + return attr.UnknownValueString + } + + if f.IsNull() { + return attr.NullValueString + } + + f32 := f.ValueFloat32() + + return fmt.Sprintf("%f", f32) +} + +// ValueFloat32 returns the known float32 value. If Float32 is null or unknown, returns +// 0.0. +func (f Float32Value) ValueFloat32() float32 { + if f.IsNull() || f.IsUnknown() { + return float32(0.0) + } + + f32, _ := f.value.Float32() + return f32 +} + +// ValueFloat32Pointer returns a pointer to the known float32 value, nil for a +// null value, or a pointer to 0.0 for an unknown value. +func (f Float32Value) ValueFloat32Pointer() *float32 { + if f.IsNull() { + return nil + } + + if f.IsUnknown() { + f32 := float32(0.0) + return &f32 + } + + f32, _ := f.value.Float32() + return &f32 +} + +// ToFloat32Value returns Float32. +func (f Float32Value) ToFloat32Value(context.Context) (Float32Value, diag.Diagnostics) { + return f, nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/int32_type.go b/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/int32_type.go new file mode 100644 index 000000000000..3943e88af3e2 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/int32_type.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package basetypes + +import ( + "context" + "fmt" + "math" + "math/big" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" +) + +// Int32Typable extends attr.Type for int32 types. +// Implement this interface to create a custom Int32Type type. +type Int32Typable interface { + attr.Type + + // ValueFromInt32 should convert the Int32 to a Int32Valuable type. + ValueFromInt32(context.Context, Int32Value) (Int32Valuable, diag.Diagnostics) +} + +var _ Int32Typable = Int32Type{} + +// Int32Type is the base framework type for an integer number. +// Int32Value is the associated value type. +type Int32Type struct{} + +// ApplyTerraform5AttributePathStep applies the given AttributePathStep to the +// type. +func (t Int32Type) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error) { + return nil, fmt.Errorf("cannot apply AttributePathStep %T to %s", step, t.String()) +} + +// Equal returns true if the given type is equivalent. +func (t Int32Type) Equal(o attr.Type) bool { + _, ok := o.(Int32Type) + + return ok +} + +// String returns a human-readable string of the type name. +func (t Int32Type) String() string { + return "basetypes.Int32Type" +} + +// TerraformType returns the tftypes.Type that should be used to represent this +// framework type. +func (t Int32Type) TerraformType(_ context.Context) tftypes.Type { + return tftypes.Number +} + +// ValueFromInt32 returns a Int32Valuable type given a Int32Value. +func (t Int32Type) ValueFromInt32(_ context.Context, v Int32Value) (Int32Valuable, diag.Diagnostics) { + return v, nil +} + +// ValueFromTerraform returns a Value given a tftypes.Value. This is meant to +// convert the tftypes.Value into a more convenient Go type for the provider to +// consume the data with. +func (t Int32Type) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error) { + if !in.IsKnown() { + return NewInt32Unknown(), nil + } + + if in.IsNull() { + return NewInt32Null(), nil + } + + var bigF *big.Float + err := in.As(&bigF) + + if err != nil { + return nil, err + } + + if !bigF.IsInt() { + return nil, fmt.Errorf("Value %s is not an integer.", bigF) + } + + i, accuracy := bigF.Int64() + + if accuracy != 0 { + return nil, fmt.Errorf("Value %s cannot be represented as a 32-bit integer.", bigF) + } + + if i < math.MinInt32 || i > math.MaxInt32 { + return nil, fmt.Errorf("Value %s cannot be represented as a 32-bit integer.", bigF) + } + + return NewInt32Value(int32(i)), nil +} + +// ValueType returns the Value type. +func (t Int32Type) ValueType(_ context.Context) attr.Value { + // This Value does not need to be valid. + return Int32Value{} +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/int32_value.go b/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/int32_value.go new file mode 100644 index 000000000000..1561cb894c77 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/types/basetypes/int32_value.go @@ -0,0 +1,175 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package basetypes + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-go/tftypes" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" +) + +var ( + _ Int32Valuable = Int32Value{} +) + +// Int32Valuable extends attr.Value for int32 value types. +// Implement this interface to create a custom Int32 value type. +type Int32Valuable interface { + attr.Value + + // ToInt32Value should convert the value type to an Int32. + ToInt32Value(ctx context.Context) (Int32Value, diag.Diagnostics) +} + +// Int32ValuableWithSemanticEquals extends Int32Valuable with semantic +// equality logic. +type Int32ValuableWithSemanticEquals interface { + Int32Valuable + + // Int32SemanticEquals should return true if the given value is + // semantically equal to the current value. This logic is used to prevent + // Terraform data consistency errors and resource drift where a value change + // may have inconsequential differences, such as rounding. + // + // Only known values are compared with this method as changing a value's + // state implicitly represents a different value. + Int32SemanticEquals(context.Context, Int32Valuable) (bool, diag.Diagnostics) +} + +// NewInt32Null creates an Int32 with a null value. Determine whether the value is +// null via the Int32 type IsNull method. +func NewInt32Null() Int32Value { + return Int32Value{ + state: attr.ValueStateNull, + } +} + +// NewInt32Unknown creates an Int32 with an unknown value. Determine whether the +// value is unknown via the Int32 type IsUnknown method. +func NewInt32Unknown() Int32Value { + return Int32Value{ + state: attr.ValueStateUnknown, + } +} + +// NewInt32Value creates an Int32 with a known value. Access the value via the Int32 +// type ValueInt32 method. +func NewInt32Value(value int32) Int32Value { + return Int32Value{ + state: attr.ValueStateKnown, + value: value, + } +} + +// NewInt32PointerValue creates an Int32 with a null value if nil or a known +// value. Access the value via the Int32 type ValueInt32Pointer method. +func NewInt32PointerValue(value *int32) Int32Value { + if value == nil { + return NewInt32Null() + } + + return NewInt32Value(*value) +} + +// Int32Value represents a 32-bit integer value, exposed as an int32. +type Int32Value struct { + // state represents whether the value is null, unknown, or known. The + // zero-value is null. + state attr.ValueState + + // value contains the known value, if not null or unknown. + value int32 +} + +// Equal returns true if `other` is an Int32 and has the same value as `i`. +func (i Int32Value) Equal(other attr.Value) bool { + o, ok := other.(Int32Value) + + if !ok { + return false + } + + if i.state != o.state { + return false + } + + if i.state != attr.ValueStateKnown { + return true + } + + return i.value == o.value +} + +// ToTerraformValue returns the data contained in the Int32 as a tftypes.Value. +func (i Int32Value) ToTerraformValue(ctx context.Context) (tftypes.Value, error) { + switch i.state { + case attr.ValueStateKnown: + if err := tftypes.ValidateValue(tftypes.Number, i.value); err != nil { + return tftypes.NewValue(tftypes.Number, tftypes.UnknownValue), err + } + + return tftypes.NewValue(tftypes.Number, i.value), nil + case attr.ValueStateNull: + return tftypes.NewValue(tftypes.Number, nil), nil + case attr.ValueStateUnknown: + return tftypes.NewValue(tftypes.Number, tftypes.UnknownValue), nil + default: + panic(fmt.Sprintf("unhandled Int32 state in ToTerraformValue: %s", i.state)) + } +} + +// Type returns a Int32Type. +func (i Int32Value) Type(ctx context.Context) attr.Type { + return Int32Type{} +} + +// IsNull returns true if the Int32 represents a null value. +func (i Int32Value) IsNull() bool { + return i.state == attr.ValueStateNull +} + +// IsUnknown returns true if the Int32 represents a currently unknown value. +func (i Int32Value) IsUnknown() bool { + return i.state == attr.ValueStateUnknown +} + +// String returns a human-readable representation of the Int32 value. +// The string returned here is not protected by any compatibility guarantees, +// and is intended for logging and error reporting. +func (i Int32Value) String() string { + if i.IsUnknown() { + return attr.UnknownValueString + } + + if i.IsNull() { + return attr.NullValueString + } + + return fmt.Sprintf("%d", i.value) +} + +// ValueInt32 returns the known int32 value. If Int32 is null or unknown, returns +// 0. +func (i Int32Value) ValueInt32() int32 { + return i.value +} + +// ValueInt32Pointer returns a pointer to the known int32 value, nil for a +// null value, or a pointer to 0 for an unknown value. +func (i Int32Value) ValueInt32Pointer() *int32 { + if i.IsNull() { + return nil + } + + return &i.value +} + +// ToInt32Value returns Int32. +func (i Int32Value) ToInt32Value(context.Context) (Int32Value, diag.Diagnostics) { + return i, nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/types/float32_type.go b/vendor/github.com/hashicorp/terraform-plugin-framework/types/float32_type.go new file mode 100644 index 000000000000..19259af15a7a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/types/float32_type.go @@ -0,0 +1,8 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + +var Float32Type = basetypes.Float32Type{} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/types/float32_value.go b/vendor/github.com/hashicorp/terraform-plugin-framework/types/float32_value.go new file mode 100644 index 000000000000..a244ea45339e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/types/float32_value.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + +type Float32 = basetypes.Float32Value + +// Float32Null creates a Float32 with a null value. Determine whether the value is +// null via the Float32 type IsNull method. +func Float32Null() basetypes.Float32Value { + return basetypes.NewFloat32Null() +} + +// Float32Unknown creates a Float32 with an unknown value. Determine whether the +// value is unknown via the Float32 type IsUnknown method. +func Float32Unknown() basetypes.Float32Value { + return basetypes.NewFloat32Unknown() +} + +// Float32Value creates a Float32 with a known value. Access the value via the Float32 +// type ValueFloat32 method. +func Float32Value(value float32) basetypes.Float32Value { + return basetypes.NewFloat32Value(value) +} + +// Float32PointerValue creates a Float32 with a null value if nil or a known value. +func Float32PointerValue(value *float32) basetypes.Float32Value { + return basetypes.NewFloat32PointerValue(value) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/types/int32_type.go b/vendor/github.com/hashicorp/terraform-plugin-framework/types/int32_type.go new file mode 100644 index 000000000000..b2d5703b42e8 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/types/int32_type.go @@ -0,0 +1,8 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + +var Int32Type = basetypes.Int32Type{} diff --git a/vendor/github.com/hashicorp/terraform-plugin-framework/types/int32_value.go b/vendor/github.com/hashicorp/terraform-plugin-framework/types/int32_value.go new file mode 100644 index 000000000000..c19cdc02b0b1 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-framework/types/int32_value.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package types + +import "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + +type Int32 = basetypes.Int32Value + +// Int32Null creates a Int32 with a null value. Determine whether the value is +// null via the Int32 type IsNull method. +func Int32Null() basetypes.Int32Value { + return basetypes.NewInt32Null() +} + +// Int32Unknown creates a Int32 with an unknown value. Determine whether the +// value is unknown via the Int32 type IsUnknown method. +func Int32Unknown() basetypes.Int32Value { + return basetypes.NewInt32Unknown() +} + +// Int32Value creates a Int32 with a known value. Access the value via the +// Int32 type ValueInt32 method. +func Int32Value(value int32) basetypes.Int32Value { + return basetypes.NewInt32Value(value) +} + +// Int32PointerValue creates a Int32 with a null value if nil or a known value. +func Int32PointerValue(value *int32) basetypes.Int32Value { + return basetypes.NewInt32PointerValue(value) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/context.go b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/context.go index d99e19796c23..67ddfe3f1556 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/context.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/context.go @@ -82,6 +82,15 @@ func ResourceContext(ctx context.Context, resource string) context.Context { return ctx } +// EphemeralResourceContext injects the ephemeral resource type into logger contexts. +func EphemeralResourceContext(ctx context.Context, ephemeralResource string) context.Context { + ctx = tfsdklog.SetField(ctx, KeyEphemeralResourceType, ephemeralResource) + ctx = tfsdklog.SubsystemSetField(ctx, SubsystemProto, KeyEphemeralResourceType, ephemeralResource) + ctx = tflog.SetField(ctx, KeyEphemeralResourceType, ephemeralResource) + + return ctx +} + // RpcContext injects the RPC name into logger contexts. func RpcContext(ctx context.Context, rpc string) context.Context { ctx = tfsdklog.SetField(ctx, KeyRPC, rpc) diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/keys.go b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/keys.go index fb821442947e..018e17c364fe 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/keys.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/keys.go @@ -57,6 +57,9 @@ const ( // The type of data source being operated on, such as "archive_file" KeyDataSourceType = "tf_data_source_type" + // The type of ephemeral resource being operated on, such as "random_password" + KeyEphemeralResourceType = "tf_ephemeral_resource_type" + // Path to protocol data file, such as "/tmp/example.json" KeyProtocolDataFile = "tf_proto_data_file" @@ -69,6 +72,9 @@ const ( // Whether the GetProviderSchemaOptional server capability is enabled KeyServerCapabilityGetProviderSchemaOptional = "tf_server_capability_get_provider_schema_optional" + // Whether the MoveResourceState server capability is enabled + KeyServerCapabilityMoveResourceState = "tf_server_capability_move_resource_state" + // Whether the PlanDestroy server capability is enabled KeyServerCapabilityPlanDestroy = "tf_server_capability_plan_destroy" diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/client_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/client_capabilities.go index ba01cd8b8f18..827cd4853222 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/client_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/client_capabilities.go @@ -47,3 +47,12 @@ type ImportResourceStateClientCapabilities struct { // handle deferred responses from the provider. DeferralAllowed bool } + +// OpenEphemeralResourceClientCapabilities allows Terraform to publish information +// regarding optionally supported protocol features for the OpenEphemeralResource RPC, +// such as forward-compatible Terraform behavior changes. +type OpenEphemeralResourceClientCapabilities struct { + // DeferralAllowed signals that the request from Terraform is able to + // handle deferred responses from the provider. + DeferralAllowed bool +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/ephemeral_resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/ephemeral_resource.go new file mode 100644 index 000000000000..1794f91b4317 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/ephemeral_resource.go @@ -0,0 +1,185 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package tfprotov5 + +import ( + "context" + "time" +) + +// EphemeralResourceMetadata describes metadata for an ephemeral resource in the GetMetadata +// RPC. +type EphemeralResourceMetadata struct { + // TypeName is the name of the ephemeral resource. + TypeName string +} + +// EphemeralResourceServer is an interface containing the methods an ephemeral resource +// implementation needs to fill. +type EphemeralResourceServer interface { + // ValidateEphemeralResourceConfig is called when Terraform is checking that an + // ephemeral resource configuration is valid. It is guaranteed to have types + // conforming to your schema, but it is not guaranteed that all values + // will be known. This is your opportunity to do custom or advanced + // validation prior to an ephemeral resource being opened. + ValidateEphemeralResourceConfig(context.Context, *ValidateEphemeralResourceConfigRequest) (*ValidateEphemeralResourceConfigResponse, error) + + // OpenEphemeralResource is called when Terraform wants to open the ephemeral resource, + // usually during planning. If the config for the ephemeral resource contains unknown + // values, Terraform will defer the OpenEphemeralResource call until apply. + OpenEphemeralResource(context.Context, *OpenEphemeralResourceRequest) (*OpenEphemeralResourceResponse, error) + + // RenewEphemeralResource is called when Terraform detects that the previously specified + // RenewAt timestamp has passed. The RenewAt timestamp is supplied either from the + // OpenEphemeralResource call or a previous RenewEphemeralResource call. + RenewEphemeralResource(context.Context, *RenewEphemeralResourceRequest) (*RenewEphemeralResourceResponse, error) + + // CloseEphemeralResource is called when Terraform is closing the ephemeral resource. + CloseEphemeralResource(context.Context, *CloseEphemeralResourceRequest) (*CloseEphemeralResourceResponse, error) +} + +// ValidateEphemeralResourceConfigRequest is the request Terraform sends when it +// wants to validate an ephemeral resource's configuration. +type ValidateEphemeralResourceConfigRequest struct { + // TypeName is the type of resource Terraform is validating. + TypeName string + + // Config is the configuration the user supplied for that ephemeral resource. See + // the documentation on `DynamicValue` for more information about + // safely accessing the configuration. + // + // The configuration is represented as a tftypes.Object, with each + // attribute and nested block getting its own key and value. + // + // This configuration may contain unknown values if a user uses + // interpolation or other functionality that would prevent Terraform + // from knowing the value at request time. Any attributes not directly + // set in the configuration will be null. + Config *DynamicValue +} + +// ValidateEphemeralResourceConfigResponse is the response from the provider about +// the validity of an ephemeral resource's configuration. +type ValidateEphemeralResourceConfigResponse struct { + // Diagnostics report errors or warnings related to the given + // configuration. Returning an empty slice indicates a successful + // validation with no warnings or errors generated. + Diagnostics []*Diagnostic +} + +// OpenEphemeralResourceRequest is the request Terraform sends when it +// wants to open an ephemeral resource. +type OpenEphemeralResourceRequest struct { + // TypeName is the type of resource Terraform is opening. + TypeName string + + // Config is the configuration the user supplied for that ephemeral resource. See + // the documentation on `DynamicValue` for more information about + // safely accessing the configuration. + // + // The configuration is represented as a tftypes.Object, with each + // attribute and nested block getting its own key and value. + // + // This configuration will always be fully known. If Config contains unknown values, + // Terraform will defer the OpenEphemeralResource RPC until apply. + Config *DynamicValue + + // ClientCapabilities defines optionally supported protocol features for the + // OpenEphemeralResource RPC, such as forward-compatible Terraform behavior changes. + ClientCapabilities *OpenEphemeralResourceClientCapabilities +} + +// OpenEphemeralResourceResponse is the response from the provider about the current +// state of the opened ephemeral resource. +type OpenEphemeralResourceResponse struct { + // Result is the provider's understanding of what the ephemeral resource's + // data is after it has been opened, represented as a `DynamicValue`. + // See the documentation for `DynamicValue` for information about + // safely creating the `DynamicValue`. + // + // Any attribute, whether computed or not, that has a known value in + // the Config in the OpenEphemeralResourceRequest must be preserved + // exactly as it was in Result. + // + // Any attribute in the Config in the OpenEphemeralResourceRequest + // that is unknown must take on a known value at this time. No unknown + // values are allowed in the Result. + // + // The result should be represented as a tftypes.Object, with each + // attribute and nested block getting its own key and value. + Result *DynamicValue + + // Diagnostics report errors or warnings related to opening the + // requested ephemeral resource. Returning an empty slice + // indicates a successful creation with no warnings or errors + // generated. + Diagnostics []*Diagnostic + + // Private should be set to any private data that the provider would like to be + // sent to the next Renew or Close call. + Private []byte + + // RenewAt indicates to Terraform that the ephemeral resource + // needs to be renewed at the specified time. Terraform will + // call the RenewEphemeralResource RPC when the specified time has passed. + RenewAt time.Time + + // Deferred is used to indicate to Terraform that the OpenEphemeralResource operation + // needs to be deferred for a reason. + Deferred *Deferred +} + +// RenewEphemeralResourceRequest is the request Terraform sends when it +// wants to renew an ephemeral resource. +type RenewEphemeralResourceRequest struct { + // TypeName is the type of resource Terraform is renewing. + TypeName string + + // Private is any provider-defined private data stored with the + // ephemeral resource from the most recent Open or Renew call. + // + // To ensure private data is preserved, copy any necessary data to + // the RenewEphemeralResourceResponse type Private field. + Private []byte +} + +// RenewEphemeralResourceResponse is the response from the provider after an ephemeral resource +// has been renewed. +type RenewEphemeralResourceResponse struct { + // Diagnostics report errors or warnings related to renewing the + // requested ephemeral resource. Returning an empty slice + // indicates a successful creation with no warnings or errors + // generated. + Diagnostics []*Diagnostic + + // Private should be set to any private data that the provider would like to be + // sent to the next Renew or Close call. + Private []byte + + // RenewAt indicates to Terraform that the ephemeral resource + // needs to be renewed at the specified time. Terraform will + // call the RenewEphemeralResource RPC when the specified time has passed. + RenewAt time.Time +} + +// CloseEphemeralResourceRequest is the request Terraform sends when it +// wants to close an ephemeral resource. +type CloseEphemeralResourceRequest struct { + // TypeName is the type of resource Terraform is closing. + TypeName string + + // Private is any provider-defined private data stored with the + // ephemeral resource from the most recent Open or Renew call. + Private []byte +} + +// CloseEphemeralResourceResponse is the response from the provider about +// the closed ephemeral resource. +type CloseEphemeralResourceResponse struct { + // Diagnostics report errors or warnings related to closing the + // requested ephemeral resource. Returning an empty slice + // indicates a successful creation with no warnings or errors + // generated. + Diagnostics []*Diagnostic +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/client_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/client_capabilities.go index 94ddc3d4352a..19d5f4108dc2 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/client_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/client_capabilities.go @@ -67,3 +67,15 @@ func ImportResourceStateClientCapabilities(in *tfplugin5.ClientCapabilities) *tf return resp } + +func OpenEphemeralResourceClientCapabilities(in *tfplugin5.ClientCapabilities) *tfprotov5.OpenEphemeralResourceClientCapabilities { + if in == nil { + return nil + } + + resp := &tfprotov5.OpenEphemeralResourceClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } + + return resp +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/ephemeral_resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/ephemeral_resource.go new file mode 100644 index 000000000000..bb8c1230056c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/ephemeral_resource.go @@ -0,0 +1,54 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" +) + +func ValidateEphemeralResourceConfigRequest(in *tfplugin5.ValidateEphemeralResourceConfig_Request) *tfprotov5.ValidateEphemeralResourceConfigRequest { + if in == nil { + return nil + } + + return &tfprotov5.ValidateEphemeralResourceConfigRequest{ + TypeName: in.TypeName, + Config: DynamicValue(in.Config), + } +} + +func OpenEphemeralResourceRequest(in *tfplugin5.OpenEphemeralResource_Request) *tfprotov5.OpenEphemeralResourceRequest { + if in == nil { + return nil + } + + return &tfprotov5.OpenEphemeralResourceRequest{ + TypeName: in.TypeName, + Config: DynamicValue(in.Config), + ClientCapabilities: OpenEphemeralResourceClientCapabilities(in.ClientCapabilities), + } +} + +func RenewEphemeralResourceRequest(in *tfplugin5.RenewEphemeralResource_Request) *tfprotov5.RenewEphemeralResourceRequest { + if in == nil { + return nil + } + + return &tfprotov5.RenewEphemeralResourceRequest{ + TypeName: in.TypeName, + Private: in.Private, + } +} + +func CloseEphemeralResourceRequest(in *tfplugin5.CloseEphemeralResource_Request) *tfprotov5.CloseEphemeralResourceRequest { + if in == nil { + return nil + } + + return &tfprotov5.CloseEphemeralResourceRequest{ + TypeName: in.TypeName, + Private: in.Private, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/client_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/client_capabilities.go index d64557b83ad9..93da1c9dc919 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/client_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/client_capabilities.go @@ -79,3 +79,17 @@ func ImportResourceStateClientCapabilities(ctx context.Context, capabilities *tf logging.ProtocolTrace(ctx, "Announced client capabilities", responseFields) } + +// OpenEphemeralResourceClientCapabilities generates a TRACE "Announced client capabilities" log. +func OpenEphemeralResourceClientCapabilities(ctx context.Context, capabilities *tfprotov5.OpenEphemeralResourceClientCapabilities) { + if capabilities == nil { + logging.ProtocolTrace(ctx, "No announced client capabilities", map[string]interface{}{}) + return + } + + responseFields := map[string]interface{}{ + logging.KeyClientCapabilityDeferralAllowed: capabilities.DeferralAllowed, + } + + logging.ProtocolTrace(ctx, "Announced client capabilities", responseFields) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/server_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/server_capabilities.go index d0f86c84272a..aff78da75a3b 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/server_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/server_capabilities.go @@ -14,11 +14,13 @@ import ( func ServerCapabilities(ctx context.Context, capabilities *tfprotov5.ServerCapabilities) { responseFields := map[string]interface{}{ logging.KeyServerCapabilityGetProviderSchemaOptional: false, + logging.KeyServerCapabilityMoveResourceState: false, logging.KeyServerCapabilityPlanDestroy: false, } if capabilities != nil { responseFields[logging.KeyServerCapabilityGetProviderSchemaOptional] = capabilities.GetProviderSchemaOptional + responseFields[logging.KeyServerCapabilityMoveResourceState] = capabilities.MoveResourceState responseFields[logging.KeyServerCapabilityPlanDestroy] = capabilities.PlanDestroy } diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.pb.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.pb.go index 46ce948a15ee..9a54983109ec 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.pb.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.pb.go @@ -1,9 +1,9 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 -// Terraform Plugin RPC protocol version 5.6 +// Terraform Plugin RPC protocol version 5.7 // -// This file defines version 5.6 of the RPC protocol. To implement a plugin +// This file defines version 5.7 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -22,8 +22,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.27.3 // source: tfplugin5.proto package tfplugin5 @@ -31,6 +31,7 @@ package tfplugin5 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" ) @@ -267,11 +268,9 @@ type DynamicValue struct { func (x *DynamicValue) Reset() { *x = DynamicValue{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DynamicValue) String() string { @@ -282,7 +281,7 @@ func (*DynamicValue) ProtoMessage() {} func (x *DynamicValue) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -324,11 +323,9 @@ type Diagnostic struct { func (x *Diagnostic) Reset() { *x = Diagnostic{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Diagnostic) String() string { @@ -339,7 +336,7 @@ func (*Diagnostic) ProtoMessage() {} func (x *Diagnostic) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -395,11 +392,9 @@ type FunctionError struct { func (x *FunctionError) Reset() { *x = FunctionError{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FunctionError) String() string { @@ -410,7 +405,7 @@ func (*FunctionError) ProtoMessage() {} func (x *FunctionError) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -449,11 +444,9 @@ type AttributePath struct { func (x *AttributePath) Reset() { *x = AttributePath{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributePath) String() string { @@ -464,7 +457,7 @@ func (*AttributePath) ProtoMessage() {} func (x *AttributePath) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -494,11 +487,9 @@ type Stop struct { func (x *Stop) Reset() { *x = Stop{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Stop) String() string { @@ -509,7 +500,7 @@ func (*Stop) ProtoMessage() {} func (x *Stop) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -538,11 +529,9 @@ type RawState struct { func (x *RawState) Reset() { *x = RawState{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RawState) String() string { @@ -553,7 +542,7 @@ func (*RawState) ProtoMessage() {} func (x *RawState) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -598,11 +587,9 @@ type Schema struct { func (x *Schema) Reset() { *x = Schema{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema) String() string { @@ -613,7 +600,7 @@ func (*Schema) ProtoMessage() {} func (x *Schema) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -666,11 +653,9 @@ type ServerCapabilities struct { func (x *ServerCapabilities) Reset() { *x = ServerCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServerCapabilities) String() string { @@ -681,7 +666,7 @@ func (*ServerCapabilities) ProtoMessage() {} func (x *ServerCapabilities) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -733,11 +718,9 @@ type ClientCapabilities struct { func (x *ClientCapabilities) Reset() { *x = ClientCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClientCapabilities) String() string { @@ -748,7 +731,7 @@ func (*ClientCapabilities) ProtoMessage() {} func (x *ClientCapabilities) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -796,11 +779,9 @@ type Function struct { func (x *Function) Reset() { *x = Function{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Function) String() string { @@ -811,7 +792,7 @@ func (*Function) ProtoMessage() {} func (x *Function) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -887,11 +868,9 @@ type Deferred struct { func (x *Deferred) Reset() { *x = Deferred{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Deferred) String() string { @@ -902,7 +881,7 @@ func (*Deferred) ProtoMessage() {} func (x *Deferred) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -932,11 +911,9 @@ type GetMetadata struct { func (x *GetMetadata) Reset() { *x = GetMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata) String() string { @@ -947,7 +924,7 @@ func (*GetMetadata) ProtoMessage() {} func (x *GetMetadata) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -970,11 +947,9 @@ type GetProviderSchema struct { func (x *GetProviderSchema) Reset() { *x = GetProviderSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProviderSchema) String() string { @@ -985,7 +960,7 @@ func (*GetProviderSchema) ProtoMessage() {} func (x *GetProviderSchema) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1008,11 +983,9 @@ type PrepareProviderConfig struct { func (x *PrepareProviderConfig) Reset() { *x = PrepareProviderConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrepareProviderConfig) String() string { @@ -1023,7 +996,7 @@ func (*PrepareProviderConfig) ProtoMessage() {} func (x *PrepareProviderConfig) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1046,11 +1019,9 @@ type UpgradeResourceState struct { func (x *UpgradeResourceState) Reset() { *x = UpgradeResourceState{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpgradeResourceState) String() string { @@ -1061,7 +1032,7 @@ func (*UpgradeResourceState) ProtoMessage() {} func (x *UpgradeResourceState) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1084,11 +1055,9 @@ type ValidateResourceTypeConfig struct { func (x *ValidateResourceTypeConfig) Reset() { *x = ValidateResourceTypeConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateResourceTypeConfig) String() string { @@ -1099,7 +1068,7 @@ func (*ValidateResourceTypeConfig) ProtoMessage() {} func (x *ValidateResourceTypeConfig) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1122,11 +1091,9 @@ type ValidateDataSourceConfig struct { func (x *ValidateDataSourceConfig) Reset() { *x = ValidateDataSourceConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateDataSourceConfig) String() string { @@ -1137,7 +1104,7 @@ func (*ValidateDataSourceConfig) ProtoMessage() {} func (x *ValidateDataSourceConfig) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1160,11 +1127,9 @@ type Configure struct { func (x *Configure) Reset() { *x = Configure{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Configure) String() string { @@ -1175,7 +1140,7 @@ func (*Configure) ProtoMessage() {} func (x *Configure) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1198,11 +1163,9 @@ type ReadResource struct { func (x *ReadResource) Reset() { *x = ReadResource{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadResource) String() string { @@ -1213,7 +1176,7 @@ func (*ReadResource) ProtoMessage() {} func (x *ReadResource) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1236,11 +1199,9 @@ type PlanResourceChange struct { func (x *PlanResourceChange) Reset() { *x = PlanResourceChange{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PlanResourceChange) String() string { @@ -1251,7 +1212,7 @@ func (*PlanResourceChange) ProtoMessage() {} func (x *PlanResourceChange) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1274,11 +1235,9 @@ type ApplyResourceChange struct { func (x *ApplyResourceChange) Reset() { *x = ApplyResourceChange{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyResourceChange) String() string { @@ -1289,7 +1248,7 @@ func (*ApplyResourceChange) ProtoMessage() {} func (x *ApplyResourceChange) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1312,11 +1271,9 @@ type ImportResourceState struct { func (x *ImportResourceState) Reset() { *x = ImportResourceState{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportResourceState) String() string { @@ -1327,7 +1284,7 @@ func (*ImportResourceState) ProtoMessage() {} func (x *ImportResourceState) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1350,11 +1307,9 @@ type MoveResourceState struct { func (x *MoveResourceState) Reset() { *x = MoveResourceState{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MoveResourceState) String() string { @@ -1365,7 +1320,7 @@ func (*MoveResourceState) ProtoMessage() {} func (x *MoveResourceState) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1388,11 +1343,9 @@ type ReadDataSource struct { func (x *ReadDataSource) Reset() { *x = ReadDataSource{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadDataSource) String() string { @@ -1403,7 +1356,7 @@ func (*ReadDataSource) ProtoMessage() {} func (x *ReadDataSource) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1426,11 +1379,9 @@ type GetProvisionerSchema struct { func (x *GetProvisionerSchema) Reset() { *x = GetProvisionerSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProvisionerSchema) String() string { @@ -1441,7 +1392,7 @@ func (*GetProvisionerSchema) ProtoMessage() {} func (x *GetProvisionerSchema) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1464,11 +1415,9 @@ type ValidateProvisionerConfig struct { func (x *ValidateProvisionerConfig) Reset() { *x = ValidateProvisionerConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateProvisionerConfig) String() string { @@ -1479,7 +1428,7 @@ func (*ValidateProvisionerConfig) ProtoMessage() {} func (x *ValidateProvisionerConfig) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1502,11 +1451,9 @@ type ProvisionResource struct { func (x *ProvisionResource) Reset() { *x = ProvisionResource{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProvisionResource) String() string { @@ -1517,7 +1464,7 @@ func (*ProvisionResource) ProtoMessage() {} func (x *ProvisionResource) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1540,11 +1487,9 @@ type GetFunctions struct { func (x *GetFunctions) Reset() { *x = GetFunctions{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFunctions) String() string { @@ -1555,7 +1500,7 @@ func (*GetFunctions) ProtoMessage() {} func (x *GetFunctions) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1578,11 +1523,9 @@ type CallFunction struct { func (x *CallFunction) Reset() { *x = CallFunction{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CallFunction) String() string { @@ -1593,7 +1536,7 @@ func (*CallFunction) ProtoMessage() {} func (x *CallFunction) ProtoReflect() protoreflect.Message { mi := &file_tfplugin5_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1608,6 +1551,150 @@ func (*CallFunction) Descriptor() ([]byte, []int) { return file_tfplugin5_proto_rawDescGZIP(), []int{28} } +type ValidateEphemeralResourceConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ValidateEphemeralResourceConfig) Reset() { + *x = ValidateEphemeralResourceConfig{} + mi := &file_tfplugin5_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ValidateEphemeralResourceConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateEphemeralResourceConfig) ProtoMessage() {} + +func (x *ValidateEphemeralResourceConfig) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateEphemeralResourceConfig.ProtoReflect.Descriptor instead. +func (*ValidateEphemeralResourceConfig) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{29} +} + +type OpenEphemeralResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenEphemeralResource) Reset() { + *x = OpenEphemeralResource{} + mi := &file_tfplugin5_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OpenEphemeralResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenEphemeralResource) ProtoMessage() {} + +func (x *OpenEphemeralResource) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenEphemeralResource.ProtoReflect.Descriptor instead. +func (*OpenEphemeralResource) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{30} +} + +type RenewEphemeralResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RenewEphemeralResource) Reset() { + *x = RenewEphemeralResource{} + mi := &file_tfplugin5_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RenewEphemeralResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenewEphemeralResource) ProtoMessage() {} + +func (x *RenewEphemeralResource) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RenewEphemeralResource.ProtoReflect.Descriptor instead. +func (*RenewEphemeralResource) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{31} +} + +type CloseEphemeralResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseEphemeralResource) Reset() { + *x = CloseEphemeralResource{} + mi := &file_tfplugin5_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CloseEphemeralResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseEphemeralResource) ProtoMessage() {} + +func (x *CloseEphemeralResource) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseEphemeralResource.ProtoReflect.Descriptor instead. +func (*CloseEphemeralResource) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{32} +} + type AttributePath_Step struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1623,11 +1710,9 @@ type AttributePath_Step struct { func (x *AttributePath_Step) Reset() { *x = AttributePath_Step{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributePath_Step) String() string { @@ -1637,8 +1722,8 @@ func (x *AttributePath_Step) String() string { func (*AttributePath_Step) ProtoMessage() {} func (x *AttributePath_Step) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[33] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1715,11 +1800,9 @@ type Stop_Request struct { func (x *Stop_Request) Reset() { *x = Stop_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Stop_Request) String() string { @@ -1729,8 +1812,8 @@ func (x *Stop_Request) String() string { func (*Stop_Request) ProtoMessage() {} func (x *Stop_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[34] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1755,11 +1838,9 @@ type Stop_Response struct { func (x *Stop_Response) Reset() { *x = Stop_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Stop_Response) String() string { @@ -1769,8 +1850,8 @@ func (x *Stop_Response) String() string { func (*Stop_Response) ProtoMessage() {} func (x *Stop_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[35] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1807,11 +1888,9 @@ type Schema_Block struct { func (x *Schema_Block) Reset() { *x = Schema_Block{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema_Block) String() string { @@ -1821,8 +1900,8 @@ func (x *Schema_Block) String() string { func (*Schema_Block) ProtoMessage() {} func (x *Schema_Block) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[37] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1897,11 +1976,9 @@ type Schema_Attribute struct { func (x *Schema_Attribute) Reset() { *x = Schema_Attribute{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema_Attribute) String() string { @@ -1911,8 +1988,8 @@ func (x *Schema_Attribute) String() string { func (*Schema_Attribute) ProtoMessage() {} func (x *Schema_Attribute) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[38] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2004,11 +2081,9 @@ type Schema_NestedBlock struct { func (x *Schema_NestedBlock) Reset() { *x = Schema_NestedBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema_NestedBlock) String() string { @@ -2018,8 +2093,8 @@ func (x *Schema_NestedBlock) String() string { func (*Schema_NestedBlock) ProtoMessage() {} func (x *Schema_NestedBlock) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[39] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2095,11 +2170,9 @@ type Function_Parameter struct { func (x *Function_Parameter) Reset() { *x = Function_Parameter{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Function_Parameter) String() string { @@ -2109,8 +2182,8 @@ func (x *Function_Parameter) String() string { func (*Function_Parameter) ProtoMessage() {} func (x *Function_Parameter) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[40] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2178,11 +2251,9 @@ type Function_Return struct { func (x *Function_Return) Reset() { *x = Function_Return{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Function_Return) String() string { @@ -2192,8 +2263,8 @@ func (x *Function_Return) String() string { func (*Function_Return) ProtoMessage() {} func (x *Function_Return) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[41] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2223,11 +2294,9 @@ type GetMetadata_Request struct { func (x *GetMetadata_Request) Reset() { *x = GetMetadata_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_Request) String() string { @@ -2237,8 +2306,8 @@ func (x *GetMetadata_Request) String() string { func (*GetMetadata_Request) ProtoMessage() {} func (x *GetMetadata_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[42] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2263,16 +2332,15 @@ type GetMetadata_Response struct { DataSources []*GetMetadata_DataSourceMetadata `protobuf:"bytes,3,rep,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"` Resources []*GetMetadata_ResourceMetadata `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"` // functions returns metadata for any functions. - Functions []*GetMetadata_FunctionMetadata `protobuf:"bytes,5,rep,name=functions,proto3" json:"functions,omitempty"` + Functions []*GetMetadata_FunctionMetadata `protobuf:"bytes,5,rep,name=functions,proto3" json:"functions,omitempty"` + EphemeralResources []*GetMetadata_EphemeralResourceMetadata `protobuf:"bytes,6,rep,name=ephemeral_resources,json=ephemeralResources,proto3" json:"ephemeral_resources,omitempty"` } func (x *GetMetadata_Response) Reset() { *x = GetMetadata_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_Response) String() string { @@ -2282,8 +2350,8 @@ func (x *GetMetadata_Response) String() string { func (*GetMetadata_Response) ProtoMessage() {} func (x *GetMetadata_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[43] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2333,6 +2401,13 @@ func (x *GetMetadata_Response) GetFunctions() []*GetMetadata_FunctionMetadata { return nil } +func (x *GetMetadata_Response) GetEphemeralResources() []*GetMetadata_EphemeralResourceMetadata { + if x != nil { + return x.EphemeralResources + } + return nil +} + type GetMetadata_FunctionMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2344,11 +2419,9 @@ type GetMetadata_FunctionMetadata struct { func (x *GetMetadata_FunctionMetadata) Reset() { *x = GetMetadata_FunctionMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_FunctionMetadata) String() string { @@ -2358,8 +2431,8 @@ func (x *GetMetadata_FunctionMetadata) String() string { func (*GetMetadata_FunctionMetadata) ProtoMessage() {} func (x *GetMetadata_FunctionMetadata) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[44] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2391,11 +2464,9 @@ type GetMetadata_DataSourceMetadata struct { func (x *GetMetadata_DataSourceMetadata) Reset() { *x = GetMetadata_DataSourceMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_DataSourceMetadata) String() string { @@ -2405,8 +2476,8 @@ func (x *GetMetadata_DataSourceMetadata) String() string { func (*GetMetadata_DataSourceMetadata) ProtoMessage() {} func (x *GetMetadata_DataSourceMetadata) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[45] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2438,11 +2509,9 @@ type GetMetadata_ResourceMetadata struct { func (x *GetMetadata_ResourceMetadata) Reset() { *x = GetMetadata_ResourceMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_ResourceMetadata) String() string { @@ -2452,8 +2521,8 @@ func (x *GetMetadata_ResourceMetadata) String() string { func (*GetMetadata_ResourceMetadata) ProtoMessage() {} func (x *GetMetadata_ResourceMetadata) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[46] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2475,6 +2544,51 @@ func (x *GetMetadata_ResourceMetadata) GetTypeName() string { return "" } +type GetMetadata_EphemeralResourceMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` +} + +func (x *GetMetadata_EphemeralResourceMetadata) Reset() { + *x = GetMetadata_EphemeralResourceMetadata{} + mi := &file_tfplugin5_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMetadata_EphemeralResourceMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMetadata_EphemeralResourceMetadata) ProtoMessage() {} + +func (x *GetMetadata_EphemeralResourceMetadata) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[47] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMetadata_EphemeralResourceMetadata.ProtoReflect.Descriptor instead. +func (*GetMetadata_EphemeralResourceMetadata) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{11, 5} +} + +func (x *GetMetadata_EphemeralResourceMetadata) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + type GetProviderSchema_Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2483,11 +2597,9 @@ type GetProviderSchema_Request struct { func (x *GetProviderSchema_Request) Reset() { *x = GetProviderSchema_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProviderSchema_Request) String() string { @@ -2497,8 +2609,8 @@ func (x *GetProviderSchema_Request) String() string { func (*GetProviderSchema_Request) ProtoMessage() {} func (x *GetProviderSchema_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[48] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2525,16 +2637,15 @@ type GetProviderSchema_Response struct { ProviderMeta *Schema `protobuf:"bytes,5,opt,name=provider_meta,json=providerMeta,proto3" json:"provider_meta,omitempty"` ServerCapabilities *ServerCapabilities `protobuf:"bytes,6,opt,name=server_capabilities,json=serverCapabilities,proto3" json:"server_capabilities,omitempty"` // functions is a mapping of function names to definitions. - Functions map[string]*Function `protobuf:"bytes,7,rep,name=functions,proto3" json:"functions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Functions map[string]*Function `protobuf:"bytes,7,rep,name=functions,proto3" json:"functions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EphemeralResourceSchemas map[string]*Schema `protobuf:"bytes,8,rep,name=ephemeral_resource_schemas,json=ephemeralResourceSchemas,proto3" json:"ephemeral_resource_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *GetProviderSchema_Response) Reset() { *x = GetProviderSchema_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProviderSchema_Response) String() string { @@ -2544,8 +2655,8 @@ func (x *GetProviderSchema_Response) String() string { func (*GetProviderSchema_Response) ProtoMessage() {} func (x *GetProviderSchema_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[49] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2609,6 +2720,13 @@ func (x *GetProviderSchema_Response) GetFunctions() map[string]*Function { return nil } +func (x *GetProviderSchema_Response) GetEphemeralResourceSchemas() map[string]*Schema { + if x != nil { + return x.EphemeralResourceSchemas + } + return nil +} + type PrepareProviderConfig_Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2619,11 +2737,9 @@ type PrepareProviderConfig_Request struct { func (x *PrepareProviderConfig_Request) Reset() { *x = PrepareProviderConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrepareProviderConfig_Request) String() string { @@ -2633,8 +2749,8 @@ func (x *PrepareProviderConfig_Request) String() string { func (*PrepareProviderConfig_Request) ProtoMessage() {} func (x *PrepareProviderConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[54] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2667,11 +2783,9 @@ type PrepareProviderConfig_Response struct { func (x *PrepareProviderConfig_Response) Reset() { *x = PrepareProviderConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PrepareProviderConfig_Response) String() string { @@ -2681,8 +2795,8 @@ func (x *PrepareProviderConfig_Response) String() string { func (*PrepareProviderConfig_Response) ProtoMessage() {} func (x *PrepareProviderConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[55] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2738,11 +2852,9 @@ type UpgradeResourceState_Request struct { func (x *UpgradeResourceState_Request) Reset() { *x = UpgradeResourceState_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpgradeResourceState_Request) String() string { @@ -2752,8 +2864,8 @@ func (x *UpgradeResourceState_Request) String() string { func (*UpgradeResourceState_Request) ProtoMessage() {} func (x *UpgradeResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[56] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2806,11 +2918,9 @@ type UpgradeResourceState_Response struct { func (x *UpgradeResourceState_Response) Reset() { *x = UpgradeResourceState_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpgradeResourceState_Response) String() string { @@ -2820,8 +2930,8 @@ func (x *UpgradeResourceState_Response) String() string { func (*UpgradeResourceState_Response) ProtoMessage() {} func (x *UpgradeResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[57] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2861,11 +2971,9 @@ type ValidateResourceTypeConfig_Request struct { func (x *ValidateResourceTypeConfig_Request) Reset() { *x = ValidateResourceTypeConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateResourceTypeConfig_Request) String() string { @@ -2875,8 +2983,8 @@ func (x *ValidateResourceTypeConfig_Request) String() string { func (*ValidateResourceTypeConfig_Request) ProtoMessage() {} func (x *ValidateResourceTypeConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[58] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2915,11 +3023,9 @@ type ValidateResourceTypeConfig_Response struct { func (x *ValidateResourceTypeConfig_Response) Reset() { *x = ValidateResourceTypeConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateResourceTypeConfig_Response) String() string { @@ -2929,8 +3035,8 @@ func (x *ValidateResourceTypeConfig_Response) String() string { func (*ValidateResourceTypeConfig_Response) ProtoMessage() {} func (x *ValidateResourceTypeConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[59] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2963,11 +3069,9 @@ type ValidateDataSourceConfig_Request struct { func (x *ValidateDataSourceConfig_Request) Reset() { *x = ValidateDataSourceConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateDataSourceConfig_Request) String() string { @@ -2977,8 +3081,8 @@ func (x *ValidateDataSourceConfig_Request) String() string { func (*ValidateDataSourceConfig_Request) ProtoMessage() {} func (x *ValidateDataSourceConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[60] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3017,11 +3121,9 @@ type ValidateDataSourceConfig_Response struct { func (x *ValidateDataSourceConfig_Response) Reset() { *x = ValidateDataSourceConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateDataSourceConfig_Response) String() string { @@ -3031,8 +3133,8 @@ func (x *ValidateDataSourceConfig_Response) String() string { func (*ValidateDataSourceConfig_Response) ProtoMessage() {} func (x *ValidateDataSourceConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[61] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3066,11 +3168,9 @@ type Configure_Request struct { func (x *Configure_Request) Reset() { *x = Configure_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Configure_Request) String() string { @@ -3080,8 +3180,8 @@ func (x *Configure_Request) String() string { func (*Configure_Request) ProtoMessage() {} func (x *Configure_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[62] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3127,11 +3227,9 @@ type Configure_Response struct { func (x *Configure_Response) Reset() { *x = Configure_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Configure_Response) String() string { @@ -3141,8 +3239,8 @@ func (x *Configure_Response) String() string { func (*Configure_Response) ProtoMessage() {} func (x *Configure_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[63] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3186,11 +3284,9 @@ type ReadResource_Request struct { func (x *ReadResource_Request) Reset() { *x = ReadResource_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadResource_Request) String() string { @@ -3200,8 +3296,8 @@ func (x *ReadResource_Request) String() string { func (*ReadResource_Request) ProtoMessage() {} func (x *ReadResource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[64] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3266,11 +3362,9 @@ type ReadResource_Response struct { func (x *ReadResource_Response) Reset() { *x = ReadResource_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadResource_Response) String() string { @@ -3280,8 +3374,8 @@ func (x *ReadResource_Response) String() string { func (*ReadResource_Response) ProtoMessage() {} func (x *ReadResource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[65] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3340,11 +3434,9 @@ type PlanResourceChange_Request struct { func (x *PlanResourceChange_Request) Reset() { *x = PlanResourceChange_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PlanResourceChange_Request) String() string { @@ -3354,8 +3446,8 @@ func (x *PlanResourceChange_Request) String() string { func (*PlanResourceChange_Request) ProtoMessage() {} func (x *PlanResourceChange_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[66] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3447,11 +3539,9 @@ type PlanResourceChange_Response struct { func (x *PlanResourceChange_Response) Reset() { *x = PlanResourceChange_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PlanResourceChange_Response) String() string { @@ -3461,8 +3551,8 @@ func (x *PlanResourceChange_Response) String() string { func (*PlanResourceChange_Response) ProtoMessage() {} func (x *PlanResourceChange_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[67] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3534,11 +3624,9 @@ type ApplyResourceChange_Request struct { func (x *ApplyResourceChange_Request) Reset() { *x = ApplyResourceChange_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyResourceChange_Request) String() string { @@ -3548,8 +3636,8 @@ func (x *ApplyResourceChange_Request) String() string { func (*ApplyResourceChange_Request) ProtoMessage() {} func (x *ApplyResourceChange_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[68] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3630,11 +3718,9 @@ type ApplyResourceChange_Response struct { func (x *ApplyResourceChange_Response) Reset() { *x = ApplyResourceChange_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyResourceChange_Response) String() string { @@ -3644,8 +3730,8 @@ func (x *ApplyResourceChange_Response) String() string { func (*ApplyResourceChange_Response) ProtoMessage() {} func (x *ApplyResourceChange_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[69] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3700,11 +3786,9 @@ type ImportResourceState_Request struct { func (x *ImportResourceState_Request) Reset() { *x = ImportResourceState_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportResourceState_Request) String() string { @@ -3714,8 +3798,8 @@ func (x *ImportResourceState_Request) String() string { func (*ImportResourceState_Request) ProtoMessage() {} func (x *ImportResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[70] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3763,11 +3847,9 @@ type ImportResourceState_ImportedResource struct { func (x *ImportResourceState_ImportedResource) Reset() { *x = ImportResourceState_ImportedResource{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportResourceState_ImportedResource) String() string { @@ -3777,8 +3859,8 @@ func (x *ImportResourceState_ImportedResource) String() string { func (*ImportResourceState_ImportedResource) ProtoMessage() {} func (x *ImportResourceState_ImportedResource) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[71] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3828,11 +3910,9 @@ type ImportResourceState_Response struct { func (x *ImportResourceState_Response) Reset() { *x = ImportResourceState_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportResourceState_Response) String() string { @@ -3842,8 +3922,8 @@ func (x *ImportResourceState_Response) String() string { func (*ImportResourceState_Response) ProtoMessage() {} func (x *ImportResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[72] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3903,11 +3983,9 @@ type MoveResourceState_Request struct { func (x *MoveResourceState_Request) Reset() { *x = MoveResourceState_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MoveResourceState_Request) String() string { @@ -3917,8 +3995,8 @@ func (x *MoveResourceState_Request) String() string { func (*MoveResourceState_Request) ProtoMessage() {} func (x *MoveResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[73] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3990,11 +4068,9 @@ type MoveResourceState_Response struct { func (x *MoveResourceState_Response) Reset() { *x = MoveResourceState_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MoveResourceState_Response) String() string { @@ -4004,8 +4080,8 @@ func (x *MoveResourceState_Response) String() string { func (*MoveResourceState_Response) ProtoMessage() {} func (x *MoveResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[74] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4054,11 +4130,9 @@ type ReadDataSource_Request struct { func (x *ReadDataSource_Request) Reset() { *x = ReadDataSource_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadDataSource_Request) String() string { @@ -4068,8 +4142,8 @@ func (x *ReadDataSource_Request) String() string { func (*ReadDataSource_Request) ProtoMessage() {} func (x *ReadDataSource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[75] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4126,11 +4200,9 @@ type ReadDataSource_Response struct { func (x *ReadDataSource_Response) Reset() { *x = ReadDataSource_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadDataSource_Response) String() string { @@ -4140,8 +4212,8 @@ func (x *ReadDataSource_Response) String() string { func (*ReadDataSource_Response) ProtoMessage() {} func (x *ReadDataSource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[76] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4185,11 +4257,9 @@ type GetProvisionerSchema_Request struct { func (x *GetProvisionerSchema_Request) Reset() { *x = GetProvisionerSchema_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProvisionerSchema_Request) String() string { @@ -4199,8 +4269,8 @@ func (x *GetProvisionerSchema_Request) String() string { func (*GetProvisionerSchema_Request) ProtoMessage() {} func (x *GetProvisionerSchema_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[77] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4226,11 +4296,9 @@ type GetProvisionerSchema_Response struct { func (x *GetProvisionerSchema_Response) Reset() { *x = GetProvisionerSchema_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProvisionerSchema_Response) String() string { @@ -4240,8 +4308,8 @@ func (x *GetProvisionerSchema_Response) String() string { func (*GetProvisionerSchema_Response) ProtoMessage() {} func (x *GetProvisionerSchema_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[78] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4280,11 +4348,9 @@ type ValidateProvisionerConfig_Request struct { func (x *ValidateProvisionerConfig_Request) Reset() { *x = ValidateProvisionerConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateProvisionerConfig_Request) String() string { @@ -4294,8 +4360,8 @@ func (x *ValidateProvisionerConfig_Request) String() string { func (*ValidateProvisionerConfig_Request) ProtoMessage() {} func (x *ValidateProvisionerConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[79] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4327,11 +4393,9 @@ type ValidateProvisionerConfig_Response struct { func (x *ValidateProvisionerConfig_Response) Reset() { *x = ValidateProvisionerConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateProvisionerConfig_Response) String() string { @@ -4341,8 +4405,8 @@ func (x *ValidateProvisionerConfig_Response) String() string { func (*ValidateProvisionerConfig_Response) ProtoMessage() {} func (x *ValidateProvisionerConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[80] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4375,11 +4439,9 @@ type ProvisionResource_Request struct { func (x *ProvisionResource_Request) Reset() { *x = ProvisionResource_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProvisionResource_Request) String() string { @@ -4389,8 +4451,8 @@ func (x *ProvisionResource_Request) String() string { func (*ProvisionResource_Request) ProtoMessage() {} func (x *ProvisionResource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[81] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4430,11 +4492,9 @@ type ProvisionResource_Response struct { func (x *ProvisionResource_Response) Reset() { *x = ProvisionResource_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProvisionResource_Response) String() string { @@ -4444,8 +4504,8 @@ func (x *ProvisionResource_Response) String() string { func (*ProvisionResource_Response) ProtoMessage() {} func (x *ProvisionResource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[82] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4482,11 +4542,9 @@ type GetFunctions_Request struct { func (x *GetFunctions_Request) Reset() { *x = GetFunctions_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFunctions_Request) String() string { @@ -4496,8 +4554,8 @@ func (x *GetFunctions_Request) String() string { func (*GetFunctions_Request) ProtoMessage() {} func (x *GetFunctions_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[83] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4525,11 +4583,9 @@ type GetFunctions_Response struct { func (x *GetFunctions_Response) Reset() { *x = GetFunctions_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFunctions_Response) String() string { @@ -4539,8 +4595,8 @@ func (x *GetFunctions_Response) String() string { func (*GetFunctions_Response) ProtoMessage() {} func (x *GetFunctions_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[84] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4582,11 +4638,9 @@ type CallFunction_Request struct { func (x *CallFunction_Request) Reset() { *x = CallFunction_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CallFunction_Request) String() string { @@ -4596,8 +4650,8 @@ func (x *CallFunction_Request) String() string { func (*CallFunction_Request) ProtoMessage() {} func (x *CallFunction_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[86] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4639,11 +4693,9 @@ type CallFunction_Response struct { func (x *CallFunction_Response) Reset() { *x = CallFunction_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin5_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin5_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CallFunction_Response) String() string { @@ -4653,8 +4705,8 @@ func (x *CallFunction_Response) String() string { func (*CallFunction_Response) ProtoMessage() {} func (x *CallFunction_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin5_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin5_proto_msgTypes[87] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4683,1927 +4735,1619 @@ func (x *CallFunction_Response) GetError() *FunctionError { return nil } -var File_tfplugin5_proto protoreflect.FileDescriptor +type ValidateEphemeralResourceConfig_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var file_tfplugin5_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x09, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x22, 0x3c, 0x0a, 0x0c, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, - 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xe3, 0x01, 0x0a, 0x0a, 0x44, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x3a, 0x0a, 0x08, 0x73, 0x65, 0x76, - 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, - 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, - 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x22, - 0x2f, 0x0a, 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x49, - 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, - 0x22, 0x6b, 0x0a, 0x0d, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x30, 0x0a, 0x11, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x10, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x72, 0x67, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xdc, 0x01, - 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, - 0x33, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05, 0x73, - 0x74, 0x65, 0x70, 0x73, 0x1a, 0x95, 0x01, 0x0a, 0x04, 0x53, 0x74, 0x65, 0x70, 0x12, 0x27, 0x0a, - 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a, 0x0f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, - 0x00, 0x52, 0x0d, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x74, - 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x33, 0x0a, 0x04, - 0x53, 0x74, 0x6f, 0x70, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x22, 0x96, 0x01, 0x0a, 0x08, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, 0x73, - 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x66, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x66, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x1a, 0x3a, - 0x0a, 0x0c, 0x46, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcc, 0x07, 0x0a, 0x06, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x2d, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0xa2, - 0x02, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, - 0x3e, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x52, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, - 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, - 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, - 0x69, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x1a, 0xa9, 0x02, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x12, - 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x40, 0x0a, - 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, - 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x12, - 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x1a, - 0xa7, 0x02, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, - 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x43, 0x0a, 0x07, 0x6e, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, - 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x4e, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1b, 0x0a, - 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x08, 0x6d, 0x61, 0x78, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x4d, 0x0a, 0x0b, 0x4e, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, - 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, - 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, - 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x12, 0x09, - 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x05, 0x22, 0xa8, 0x01, 0x0a, 0x12, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x44, 0x65, 0x73, 0x74, - 0x72, 0x6f, 0x79, 0x12, 0x3f, 0x0a, 0x1c, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x67, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x11, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x22, 0x3f, 0x0a, 0x12, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, - 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, - 0x66, 0x65, 0x72, 0x72, 0x61, 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x61, 0x6c, 0x41, 0x6c, - 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x22, 0x8e, 0x05, 0x0a, 0x08, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x12, 0x4c, 0x0a, 0x12, 0x76, 0x61, 0x72, 0x69, 0x61, 0x64, 0x69, 0x63, 0x5f, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x11, 0x76, 0x61, - 0x72, 0x69, 0x61, 0x64, 0x69, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, - 0x32, 0x0a, 0x06, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x20, 0x0a, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, - 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, - 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, - 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x1a, 0xf3, 0x01, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, - 0x77, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x75, 0x6e, 0x6b, 0x6e, - 0x6f, 0x77, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x1a, 0x1c, 0x0a, 0x06, 0x52, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x08, 0x44, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, - 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x62, 0x0a, 0x06, 0x52, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1b, - 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, - 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x50, - 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x42, 0x53, 0x45, - 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x52, 0x45, 0x51, 0x10, 0x03, 0x22, 0x96, 0x04, 0x0a, 0x0b, - 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xef, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x61, - 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, - 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, - 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x4c, 0x0a, 0x0c, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, - 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x64, - 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x09, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x12, 0x45, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x09, 0x66, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x26, 0x0a, 0x10, 0x46, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x1a, 0x31, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x1a, 0x2f, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc7, 0x06, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xa6, 0x06, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x12, 0x65, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x6c, 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, - 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x61, 0x74, - 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, - 0x36, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x55, 0x0a, 0x14, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x51, 0x0a, 0x0e, 0x46, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xdb, - 0x01, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x85, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x40, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, - 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x90, 0x02, 0x0a, - 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x72, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x08, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, - 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, - 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, - 0xba, 0x01, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, - 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, - 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, - 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb8, 0x01, 0x0a, - 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, - 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x8a, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x65, 0x1a, 0xb7, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, - 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, - 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, - 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x73, 0x22, 0xe4, 0x03, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x8c, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, - 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, - 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, - 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, - 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x1a, 0xc4, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, - 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, - 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, - 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0xf3, 0x05, 0x0a, 0x12, - 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x1a, 0x8b, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, - 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, - 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, - 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, - 0x64, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x65, 0x64, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, - 0x0d, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, - 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x1a, 0xce, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, - 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, - 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, - 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, - 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, - 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, - 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, - 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, - 0x64, 0x22, 0x92, 0x04, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xb6, 0x02, 0x0a, 0x07, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, - 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, - 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x70, - 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, - 0x74, 0x61, 0x1a, 0xc1, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, - 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, - 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, - 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0xef, 0x03, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x86, - 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, - 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, - 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x78, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, - 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x1a, 0xd4, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, - 0x0a, 0x12, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x11, 0x69, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x37, - 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, - 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0xe7, 0x03, 0x0a, 0x11, 0x4d, 0x6f, 0x76, - 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0xa8, - 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x15, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x36, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0xa6, 0x01, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, - 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x22, 0x9e, 0x03, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xe5, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, - 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0xa3, 0x01, - 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x22, 0x9b, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x78, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0b, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, - 0x3a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x22, 0xe5, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x73, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x37, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x5b, 0x0a, 0x08, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, - 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x81, 0x02, 0x0a, 0x0c, 0x47, 0x65, 0x74, - 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0xe5, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x4d, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x1a, 0x51, 0x0a, 0x0e, 0x46, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, 0x01, 0x0a, - 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x54, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x09, - 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x1a, 0x6b, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x2a, 0x25, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x09, - 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x41, 0x52, - 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, 0xef, 0x0b, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x1e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, - 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, - 0x0a, 0x15, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, - 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x1a, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x18, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2b, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x69, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x55, 0x70, - 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x35, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, - 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, - 0x11, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x4d, - 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x57, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x21, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, - 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x46, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x43, - 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, - 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x86, 0x03, 0x0a, 0x0b, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x5e, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, - 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x19, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, - 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x12, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x2d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, - 0x66, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x76, 0x35, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x2f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Config *DynamicValue `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` } -var ( - file_tfplugin5_proto_rawDescOnce sync.Once - file_tfplugin5_proto_rawDescData = file_tfplugin5_proto_rawDesc -) +func (x *ValidateEphemeralResourceConfig_Request) Reset() { + *x = ValidateEphemeralResourceConfig_Request{} + mi := &file_tfplugin5_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -func file_tfplugin5_proto_rawDescGZIP() []byte { - file_tfplugin5_proto_rawDescOnce.Do(func() { - file_tfplugin5_proto_rawDescData = protoimpl.X.CompressGZIP(file_tfplugin5_proto_rawDescData) - }) - return file_tfplugin5_proto_rawDescData +func (x *ValidateEphemeralResourceConfig_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -var file_tfplugin5_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_tfplugin5_proto_msgTypes = make([]protoimpl.MessageInfo, 82) -var file_tfplugin5_proto_goTypes = []interface{}{ - (StringKind)(0), // 0: tfplugin5.StringKind - (Diagnostic_Severity)(0), // 1: tfplugin5.Diagnostic.Severity - (Schema_NestedBlock_NestingMode)(0), // 2: tfplugin5.Schema.NestedBlock.NestingMode - (Deferred_Reason)(0), // 3: tfplugin5.Deferred.Reason - (*DynamicValue)(nil), // 4: tfplugin5.DynamicValue - (*Diagnostic)(nil), // 5: tfplugin5.Diagnostic - (*FunctionError)(nil), // 6: tfplugin5.FunctionError - (*AttributePath)(nil), // 7: tfplugin5.AttributePath - (*Stop)(nil), // 8: tfplugin5.Stop - (*RawState)(nil), // 9: tfplugin5.RawState - (*Schema)(nil), // 10: tfplugin5.Schema - (*ServerCapabilities)(nil), // 11: tfplugin5.ServerCapabilities - (*ClientCapabilities)(nil), // 12: tfplugin5.ClientCapabilities - (*Function)(nil), // 13: tfplugin5.Function - (*Deferred)(nil), // 14: tfplugin5.Deferred - (*GetMetadata)(nil), // 15: tfplugin5.GetMetadata - (*GetProviderSchema)(nil), // 16: tfplugin5.GetProviderSchema - (*PrepareProviderConfig)(nil), // 17: tfplugin5.PrepareProviderConfig - (*UpgradeResourceState)(nil), // 18: tfplugin5.UpgradeResourceState - (*ValidateResourceTypeConfig)(nil), // 19: tfplugin5.ValidateResourceTypeConfig - (*ValidateDataSourceConfig)(nil), // 20: tfplugin5.ValidateDataSourceConfig - (*Configure)(nil), // 21: tfplugin5.Configure - (*ReadResource)(nil), // 22: tfplugin5.ReadResource - (*PlanResourceChange)(nil), // 23: tfplugin5.PlanResourceChange - (*ApplyResourceChange)(nil), // 24: tfplugin5.ApplyResourceChange - (*ImportResourceState)(nil), // 25: tfplugin5.ImportResourceState - (*MoveResourceState)(nil), // 26: tfplugin5.MoveResourceState - (*ReadDataSource)(nil), // 27: tfplugin5.ReadDataSource - (*GetProvisionerSchema)(nil), // 28: tfplugin5.GetProvisionerSchema - (*ValidateProvisionerConfig)(nil), // 29: tfplugin5.ValidateProvisionerConfig - (*ProvisionResource)(nil), // 30: tfplugin5.ProvisionResource - (*GetFunctions)(nil), // 31: tfplugin5.GetFunctions - (*CallFunction)(nil), // 32: tfplugin5.CallFunction - (*AttributePath_Step)(nil), // 33: tfplugin5.AttributePath.Step - (*Stop_Request)(nil), // 34: tfplugin5.Stop.Request - (*Stop_Response)(nil), // 35: tfplugin5.Stop.Response - nil, // 36: tfplugin5.RawState.FlatmapEntry - (*Schema_Block)(nil), // 37: tfplugin5.Schema.Block - (*Schema_Attribute)(nil), // 38: tfplugin5.Schema.Attribute - (*Schema_NestedBlock)(nil), // 39: tfplugin5.Schema.NestedBlock - (*Function_Parameter)(nil), // 40: tfplugin5.Function.Parameter - (*Function_Return)(nil), // 41: tfplugin5.Function.Return - (*GetMetadata_Request)(nil), // 42: tfplugin5.GetMetadata.Request - (*GetMetadata_Response)(nil), // 43: tfplugin5.GetMetadata.Response - (*GetMetadata_FunctionMetadata)(nil), // 44: tfplugin5.GetMetadata.FunctionMetadata - (*GetMetadata_DataSourceMetadata)(nil), // 45: tfplugin5.GetMetadata.DataSourceMetadata - (*GetMetadata_ResourceMetadata)(nil), // 46: tfplugin5.GetMetadata.ResourceMetadata - (*GetProviderSchema_Request)(nil), // 47: tfplugin5.GetProviderSchema.Request - (*GetProviderSchema_Response)(nil), // 48: tfplugin5.GetProviderSchema.Response - nil, // 49: tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry - nil, // 50: tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry - nil, // 51: tfplugin5.GetProviderSchema.Response.FunctionsEntry - (*PrepareProviderConfig_Request)(nil), // 52: tfplugin5.PrepareProviderConfig.Request - (*PrepareProviderConfig_Response)(nil), // 53: tfplugin5.PrepareProviderConfig.Response - (*UpgradeResourceState_Request)(nil), // 54: tfplugin5.UpgradeResourceState.Request - (*UpgradeResourceState_Response)(nil), // 55: tfplugin5.UpgradeResourceState.Response - (*ValidateResourceTypeConfig_Request)(nil), // 56: tfplugin5.ValidateResourceTypeConfig.Request - (*ValidateResourceTypeConfig_Response)(nil), // 57: tfplugin5.ValidateResourceTypeConfig.Response - (*ValidateDataSourceConfig_Request)(nil), // 58: tfplugin5.ValidateDataSourceConfig.Request - (*ValidateDataSourceConfig_Response)(nil), // 59: tfplugin5.ValidateDataSourceConfig.Response - (*Configure_Request)(nil), // 60: tfplugin5.Configure.Request - (*Configure_Response)(nil), // 61: tfplugin5.Configure.Response - (*ReadResource_Request)(nil), // 62: tfplugin5.ReadResource.Request - (*ReadResource_Response)(nil), // 63: tfplugin5.ReadResource.Response - (*PlanResourceChange_Request)(nil), // 64: tfplugin5.PlanResourceChange.Request - (*PlanResourceChange_Response)(nil), // 65: tfplugin5.PlanResourceChange.Response - (*ApplyResourceChange_Request)(nil), // 66: tfplugin5.ApplyResourceChange.Request - (*ApplyResourceChange_Response)(nil), // 67: tfplugin5.ApplyResourceChange.Response - (*ImportResourceState_Request)(nil), // 68: tfplugin5.ImportResourceState.Request - (*ImportResourceState_ImportedResource)(nil), // 69: tfplugin5.ImportResourceState.ImportedResource - (*ImportResourceState_Response)(nil), // 70: tfplugin5.ImportResourceState.Response - (*MoveResourceState_Request)(nil), // 71: tfplugin5.MoveResourceState.Request - (*MoveResourceState_Response)(nil), // 72: tfplugin5.MoveResourceState.Response - (*ReadDataSource_Request)(nil), // 73: tfplugin5.ReadDataSource.Request - (*ReadDataSource_Response)(nil), // 74: tfplugin5.ReadDataSource.Response - (*GetProvisionerSchema_Request)(nil), // 75: tfplugin5.GetProvisionerSchema.Request - (*GetProvisionerSchema_Response)(nil), // 76: tfplugin5.GetProvisionerSchema.Response - (*ValidateProvisionerConfig_Request)(nil), // 77: tfplugin5.ValidateProvisionerConfig.Request - (*ValidateProvisionerConfig_Response)(nil), // 78: tfplugin5.ValidateProvisionerConfig.Response - (*ProvisionResource_Request)(nil), // 79: tfplugin5.ProvisionResource.Request - (*ProvisionResource_Response)(nil), // 80: tfplugin5.ProvisionResource.Response - (*GetFunctions_Request)(nil), // 81: tfplugin5.GetFunctions.Request - (*GetFunctions_Response)(nil), // 82: tfplugin5.GetFunctions.Response - nil, // 83: tfplugin5.GetFunctions.Response.FunctionsEntry - (*CallFunction_Request)(nil), // 84: tfplugin5.CallFunction.Request - (*CallFunction_Response)(nil), // 85: tfplugin5.CallFunction.Response +func (*ValidateEphemeralResourceConfig_Request) ProtoMessage() {} + +func (x *ValidateEphemeralResourceConfig_Request) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[88] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var file_tfplugin5_proto_depIdxs = []int32{ - 1, // 0: tfplugin5.Diagnostic.severity:type_name -> tfplugin5.Diagnostic.Severity - 7, // 1: tfplugin5.Diagnostic.attribute:type_name -> tfplugin5.AttributePath - 33, // 2: tfplugin5.AttributePath.steps:type_name -> tfplugin5.AttributePath.Step - 36, // 3: tfplugin5.RawState.flatmap:type_name -> tfplugin5.RawState.FlatmapEntry - 37, // 4: tfplugin5.Schema.block:type_name -> tfplugin5.Schema.Block - 40, // 5: tfplugin5.Function.parameters:type_name -> tfplugin5.Function.Parameter - 40, // 6: tfplugin5.Function.variadic_parameter:type_name -> tfplugin5.Function.Parameter - 41, // 7: tfplugin5.Function.return:type_name -> tfplugin5.Function.Return - 0, // 8: tfplugin5.Function.description_kind:type_name -> tfplugin5.StringKind - 3, // 9: tfplugin5.Deferred.reason:type_name -> tfplugin5.Deferred.Reason - 38, // 10: tfplugin5.Schema.Block.attributes:type_name -> tfplugin5.Schema.Attribute - 39, // 11: tfplugin5.Schema.Block.block_types:type_name -> tfplugin5.Schema.NestedBlock - 0, // 12: tfplugin5.Schema.Block.description_kind:type_name -> tfplugin5.StringKind - 0, // 13: tfplugin5.Schema.Attribute.description_kind:type_name -> tfplugin5.StringKind - 37, // 14: tfplugin5.Schema.NestedBlock.block:type_name -> tfplugin5.Schema.Block - 2, // 15: tfplugin5.Schema.NestedBlock.nesting:type_name -> tfplugin5.Schema.NestedBlock.NestingMode - 0, // 16: tfplugin5.Function.Parameter.description_kind:type_name -> tfplugin5.StringKind - 11, // 17: tfplugin5.GetMetadata.Response.server_capabilities:type_name -> tfplugin5.ServerCapabilities - 5, // 18: tfplugin5.GetMetadata.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 45, // 19: tfplugin5.GetMetadata.Response.data_sources:type_name -> tfplugin5.GetMetadata.DataSourceMetadata - 46, // 20: tfplugin5.GetMetadata.Response.resources:type_name -> tfplugin5.GetMetadata.ResourceMetadata - 44, // 21: tfplugin5.GetMetadata.Response.functions:type_name -> tfplugin5.GetMetadata.FunctionMetadata - 10, // 22: tfplugin5.GetProviderSchema.Response.provider:type_name -> tfplugin5.Schema - 49, // 23: tfplugin5.GetProviderSchema.Response.resource_schemas:type_name -> tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry - 50, // 24: tfplugin5.GetProviderSchema.Response.data_source_schemas:type_name -> tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry - 5, // 25: tfplugin5.GetProviderSchema.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 10, // 26: tfplugin5.GetProviderSchema.Response.provider_meta:type_name -> tfplugin5.Schema - 11, // 27: tfplugin5.GetProviderSchema.Response.server_capabilities:type_name -> tfplugin5.ServerCapabilities - 51, // 28: tfplugin5.GetProviderSchema.Response.functions:type_name -> tfplugin5.GetProviderSchema.Response.FunctionsEntry - 10, // 29: tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry.value:type_name -> tfplugin5.Schema - 10, // 30: tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry.value:type_name -> tfplugin5.Schema - 13, // 31: tfplugin5.GetProviderSchema.Response.FunctionsEntry.value:type_name -> tfplugin5.Function - 4, // 32: tfplugin5.PrepareProviderConfig.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 33: tfplugin5.PrepareProviderConfig.Response.prepared_config:type_name -> tfplugin5.DynamicValue - 5, // 34: tfplugin5.PrepareProviderConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 9, // 35: tfplugin5.UpgradeResourceState.Request.raw_state:type_name -> tfplugin5.RawState - 4, // 36: tfplugin5.UpgradeResourceState.Response.upgraded_state:type_name -> tfplugin5.DynamicValue - 5, // 37: tfplugin5.UpgradeResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 4, // 38: tfplugin5.ValidateResourceTypeConfig.Request.config:type_name -> tfplugin5.DynamicValue - 5, // 39: tfplugin5.ValidateResourceTypeConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 4, // 40: tfplugin5.ValidateDataSourceConfig.Request.config:type_name -> tfplugin5.DynamicValue - 5, // 41: tfplugin5.ValidateDataSourceConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 4, // 42: tfplugin5.Configure.Request.config:type_name -> tfplugin5.DynamicValue - 12, // 43: tfplugin5.Configure.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities - 5, // 44: tfplugin5.Configure.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 4, // 45: tfplugin5.ReadResource.Request.current_state:type_name -> tfplugin5.DynamicValue - 4, // 46: tfplugin5.ReadResource.Request.provider_meta:type_name -> tfplugin5.DynamicValue - 12, // 47: tfplugin5.ReadResource.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities - 4, // 48: tfplugin5.ReadResource.Response.new_state:type_name -> tfplugin5.DynamicValue - 5, // 49: tfplugin5.ReadResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 14, // 50: tfplugin5.ReadResource.Response.deferred:type_name -> tfplugin5.Deferred - 4, // 51: tfplugin5.PlanResourceChange.Request.prior_state:type_name -> tfplugin5.DynamicValue - 4, // 52: tfplugin5.PlanResourceChange.Request.proposed_new_state:type_name -> tfplugin5.DynamicValue - 4, // 53: tfplugin5.PlanResourceChange.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 54: tfplugin5.PlanResourceChange.Request.provider_meta:type_name -> tfplugin5.DynamicValue - 12, // 55: tfplugin5.PlanResourceChange.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities - 4, // 56: tfplugin5.PlanResourceChange.Response.planned_state:type_name -> tfplugin5.DynamicValue - 7, // 57: tfplugin5.PlanResourceChange.Response.requires_replace:type_name -> tfplugin5.AttributePath - 5, // 58: tfplugin5.PlanResourceChange.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 14, // 59: tfplugin5.PlanResourceChange.Response.deferred:type_name -> tfplugin5.Deferred - 4, // 60: tfplugin5.ApplyResourceChange.Request.prior_state:type_name -> tfplugin5.DynamicValue - 4, // 61: tfplugin5.ApplyResourceChange.Request.planned_state:type_name -> tfplugin5.DynamicValue - 4, // 62: tfplugin5.ApplyResourceChange.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 63: tfplugin5.ApplyResourceChange.Request.provider_meta:type_name -> tfplugin5.DynamicValue - 4, // 64: tfplugin5.ApplyResourceChange.Response.new_state:type_name -> tfplugin5.DynamicValue - 5, // 65: tfplugin5.ApplyResourceChange.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 12, // 66: tfplugin5.ImportResourceState.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities - 4, // 67: tfplugin5.ImportResourceState.ImportedResource.state:type_name -> tfplugin5.DynamicValue - 69, // 68: tfplugin5.ImportResourceState.Response.imported_resources:type_name -> tfplugin5.ImportResourceState.ImportedResource - 5, // 69: tfplugin5.ImportResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 14, // 70: tfplugin5.ImportResourceState.Response.deferred:type_name -> tfplugin5.Deferred - 9, // 71: tfplugin5.MoveResourceState.Request.source_state:type_name -> tfplugin5.RawState - 4, // 72: tfplugin5.MoveResourceState.Response.target_state:type_name -> tfplugin5.DynamicValue - 5, // 73: tfplugin5.MoveResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 4, // 74: tfplugin5.ReadDataSource.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 75: tfplugin5.ReadDataSource.Request.provider_meta:type_name -> tfplugin5.DynamicValue - 12, // 76: tfplugin5.ReadDataSource.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities - 4, // 77: tfplugin5.ReadDataSource.Response.state:type_name -> tfplugin5.DynamicValue - 5, // 78: tfplugin5.ReadDataSource.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 14, // 79: tfplugin5.ReadDataSource.Response.deferred:type_name -> tfplugin5.Deferred - 10, // 80: tfplugin5.GetProvisionerSchema.Response.provisioner:type_name -> tfplugin5.Schema - 5, // 81: tfplugin5.GetProvisionerSchema.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 4, // 82: tfplugin5.ValidateProvisionerConfig.Request.config:type_name -> tfplugin5.DynamicValue - 5, // 83: tfplugin5.ValidateProvisionerConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 4, // 84: tfplugin5.ProvisionResource.Request.config:type_name -> tfplugin5.DynamicValue - 4, // 85: tfplugin5.ProvisionResource.Request.connection:type_name -> tfplugin5.DynamicValue - 5, // 86: tfplugin5.ProvisionResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 83, // 87: tfplugin5.GetFunctions.Response.functions:type_name -> tfplugin5.GetFunctions.Response.FunctionsEntry - 5, // 88: tfplugin5.GetFunctions.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 13, // 89: tfplugin5.GetFunctions.Response.FunctionsEntry.value:type_name -> tfplugin5.Function - 4, // 90: tfplugin5.CallFunction.Request.arguments:type_name -> tfplugin5.DynamicValue - 4, // 91: tfplugin5.CallFunction.Response.result:type_name -> tfplugin5.DynamicValue - 6, // 92: tfplugin5.CallFunction.Response.error:type_name -> tfplugin5.FunctionError - 42, // 93: tfplugin5.Provider.GetMetadata:input_type -> tfplugin5.GetMetadata.Request - 47, // 94: tfplugin5.Provider.GetSchema:input_type -> tfplugin5.GetProviderSchema.Request - 52, // 95: tfplugin5.Provider.PrepareProviderConfig:input_type -> tfplugin5.PrepareProviderConfig.Request - 56, // 96: tfplugin5.Provider.ValidateResourceTypeConfig:input_type -> tfplugin5.ValidateResourceTypeConfig.Request - 58, // 97: tfplugin5.Provider.ValidateDataSourceConfig:input_type -> tfplugin5.ValidateDataSourceConfig.Request - 54, // 98: tfplugin5.Provider.UpgradeResourceState:input_type -> tfplugin5.UpgradeResourceState.Request - 60, // 99: tfplugin5.Provider.Configure:input_type -> tfplugin5.Configure.Request - 62, // 100: tfplugin5.Provider.ReadResource:input_type -> tfplugin5.ReadResource.Request - 64, // 101: tfplugin5.Provider.PlanResourceChange:input_type -> tfplugin5.PlanResourceChange.Request - 66, // 102: tfplugin5.Provider.ApplyResourceChange:input_type -> tfplugin5.ApplyResourceChange.Request - 68, // 103: tfplugin5.Provider.ImportResourceState:input_type -> tfplugin5.ImportResourceState.Request - 71, // 104: tfplugin5.Provider.MoveResourceState:input_type -> tfplugin5.MoveResourceState.Request - 73, // 105: tfplugin5.Provider.ReadDataSource:input_type -> tfplugin5.ReadDataSource.Request - 81, // 106: tfplugin5.Provider.GetFunctions:input_type -> tfplugin5.GetFunctions.Request - 84, // 107: tfplugin5.Provider.CallFunction:input_type -> tfplugin5.CallFunction.Request - 34, // 108: tfplugin5.Provider.Stop:input_type -> tfplugin5.Stop.Request - 75, // 109: tfplugin5.Provisioner.GetSchema:input_type -> tfplugin5.GetProvisionerSchema.Request - 77, // 110: tfplugin5.Provisioner.ValidateProvisionerConfig:input_type -> tfplugin5.ValidateProvisionerConfig.Request - 79, // 111: tfplugin5.Provisioner.ProvisionResource:input_type -> tfplugin5.ProvisionResource.Request - 34, // 112: tfplugin5.Provisioner.Stop:input_type -> tfplugin5.Stop.Request - 43, // 113: tfplugin5.Provider.GetMetadata:output_type -> tfplugin5.GetMetadata.Response - 48, // 114: tfplugin5.Provider.GetSchema:output_type -> tfplugin5.GetProviderSchema.Response - 53, // 115: tfplugin5.Provider.PrepareProviderConfig:output_type -> tfplugin5.PrepareProviderConfig.Response - 57, // 116: tfplugin5.Provider.ValidateResourceTypeConfig:output_type -> tfplugin5.ValidateResourceTypeConfig.Response - 59, // 117: tfplugin5.Provider.ValidateDataSourceConfig:output_type -> tfplugin5.ValidateDataSourceConfig.Response - 55, // 118: tfplugin5.Provider.UpgradeResourceState:output_type -> tfplugin5.UpgradeResourceState.Response - 61, // 119: tfplugin5.Provider.Configure:output_type -> tfplugin5.Configure.Response - 63, // 120: tfplugin5.Provider.ReadResource:output_type -> tfplugin5.ReadResource.Response - 65, // 121: tfplugin5.Provider.PlanResourceChange:output_type -> tfplugin5.PlanResourceChange.Response - 67, // 122: tfplugin5.Provider.ApplyResourceChange:output_type -> tfplugin5.ApplyResourceChange.Response - 70, // 123: tfplugin5.Provider.ImportResourceState:output_type -> tfplugin5.ImportResourceState.Response - 72, // 124: tfplugin5.Provider.MoveResourceState:output_type -> tfplugin5.MoveResourceState.Response - 74, // 125: tfplugin5.Provider.ReadDataSource:output_type -> tfplugin5.ReadDataSource.Response - 82, // 126: tfplugin5.Provider.GetFunctions:output_type -> tfplugin5.GetFunctions.Response - 85, // 127: tfplugin5.Provider.CallFunction:output_type -> tfplugin5.CallFunction.Response - 35, // 128: tfplugin5.Provider.Stop:output_type -> tfplugin5.Stop.Response - 76, // 129: tfplugin5.Provisioner.GetSchema:output_type -> tfplugin5.GetProvisionerSchema.Response - 78, // 130: tfplugin5.Provisioner.ValidateProvisionerConfig:output_type -> tfplugin5.ValidateProvisionerConfig.Response - 80, // 131: tfplugin5.Provisioner.ProvisionResource:output_type -> tfplugin5.ProvisionResource.Response - 35, // 132: tfplugin5.Provisioner.Stop:output_type -> tfplugin5.Stop.Response - 113, // [113:133] is the sub-list for method output_type - 93, // [93:113] is the sub-list for method input_type - 93, // [93:93] is the sub-list for extension type_name - 93, // [93:93] is the sub-list for extension extendee - 0, // [0:93] is the sub-list for field type_name + +// Deprecated: Use ValidateEphemeralResourceConfig_Request.ProtoReflect.Descriptor instead. +func (*ValidateEphemeralResourceConfig_Request) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{29, 0} } -func init() { file_tfplugin5_proto_init() } -func file_tfplugin5_proto_init() { - if File_tfplugin5_proto != nil { - return +func (x *ValidateEphemeralResourceConfig_Request) GetTypeName() string { + if x != nil { + return x.TypeName } - if !protoimpl.UnsafeEnabled { - file_tfplugin5_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Diagnostic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FunctionError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributePath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stop); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RawState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClientCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Function); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Deferred); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProviderConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceTypeConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataSourceConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveResourceState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProvisionerSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProvisionerConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProvisionResource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFunctions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CallFunction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributePath_Step); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stop_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stop_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return "" +} + +func (x *ValidateEphemeralResourceConfig_Request) GetConfig() *DynamicValue { + if x != nil { + return x.Config + } + return nil +} + +type ValidateEphemeralResourceConfig_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *ValidateEphemeralResourceConfig_Response) Reset() { + *x = ValidateEphemeralResourceConfig_Response{} + mi := &file_tfplugin5_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ValidateEphemeralResourceConfig_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateEphemeralResourceConfig_Response) ProtoMessage() {} + +func (x *ValidateEphemeralResourceConfig_Response) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[89] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_tfplugin5_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateEphemeralResourceConfig_Response.ProtoReflect.Descriptor instead. +func (*ValidateEphemeralResourceConfig_Response) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{29, 1} +} + +func (x *ValidateEphemeralResourceConfig_Response) GetDiagnostics() []*Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type OpenEphemeralResource_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Config *DynamicValue `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + ClientCapabilities *ClientCapabilities `protobuf:"bytes,3,opt,name=client_capabilities,json=clientCapabilities,proto3" json:"client_capabilities,omitempty"` +} + +func (x *OpenEphemeralResource_Request) Reset() { + *x = OpenEphemeralResource_Request{} + mi := &file_tfplugin5_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OpenEphemeralResource_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenEphemeralResource_Request) ProtoMessage() {} + +func (x *OpenEphemeralResource_Request) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[90] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_tfplugin5_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_Attribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_NestedBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Function_Parameter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Function_Return); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_FunctionMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_DataSourceMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_ResourceMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProviderConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrepareProviderConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceTypeConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceTypeConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataSourceConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataSourceConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configure_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Configure_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_ImportedResource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveResourceState_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveResourceState_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProvisionerSchema_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProvisionerSchema_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProvisionerConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProvisionerConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProvisionResource_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin5_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProvisionResource_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenEphemeralResource_Request.ProtoReflect.Descriptor instead. +func (*OpenEphemeralResource_Request) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{30, 0} +} + +func (x *OpenEphemeralResource_Request) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + +func (x *OpenEphemeralResource_Request) GetConfig() *DynamicValue { + if x != nil { + return x.Config + } + return nil +} + +func (x *OpenEphemeralResource_Request) GetClientCapabilities() *ClientCapabilities { + if x != nil { + return x.ClientCapabilities + } + return nil +} + +type OpenEphemeralResource_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` + RenewAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=renew_at,json=renewAt,proto3,oneof" json:"renew_at,omitempty"` + Result *DynamicValue `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` + Private []byte `protobuf:"bytes,4,opt,name=private,proto3,oneof" json:"private,omitempty"` + // deferred is set if the provider is deferring the change. If set the caller + // needs to handle the deferral. + Deferred *Deferred `protobuf:"bytes,5,opt,name=deferred,proto3" json:"deferred,omitempty"` +} + +func (x *OpenEphemeralResource_Response) Reset() { + *x = OpenEphemeralResource_Response{} + mi := &file_tfplugin5_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OpenEphemeralResource_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenEphemeralResource_Response) ProtoMessage() {} + +func (x *OpenEphemeralResource_Response) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[91] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_tfplugin5_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFunctions_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenEphemeralResource_Response.ProtoReflect.Descriptor instead. +func (*OpenEphemeralResource_Response) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{30, 1} +} + +func (x *OpenEphemeralResource_Response) GetDiagnostics() []*Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +func (x *OpenEphemeralResource_Response) GetRenewAt() *timestamppb.Timestamp { + if x != nil { + return x.RenewAt + } + return nil +} + +func (x *OpenEphemeralResource_Response) GetResult() *DynamicValue { + if x != nil { + return x.Result + } + return nil +} + +func (x *OpenEphemeralResource_Response) GetPrivate() []byte { + if x != nil { + return x.Private + } + return nil +} + +func (x *OpenEphemeralResource_Response) GetDeferred() *Deferred { + if x != nil { + return x.Deferred + } + return nil +} + +type RenewEphemeralResource_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Private []byte `protobuf:"bytes,2,opt,name=private,proto3,oneof" json:"private,omitempty"` +} + +func (x *RenewEphemeralResource_Request) Reset() { + *x = RenewEphemeralResource_Request{} + mi := &file_tfplugin5_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RenewEphemeralResource_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenewEphemeralResource_Request) ProtoMessage() {} + +func (x *RenewEphemeralResource_Request) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[92] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_tfplugin5_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFunctions_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RenewEphemeralResource_Request.ProtoReflect.Descriptor instead. +func (*RenewEphemeralResource_Request) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{31, 0} +} + +func (x *RenewEphemeralResource_Request) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + +func (x *RenewEphemeralResource_Request) GetPrivate() []byte { + if x != nil { + return x.Private + } + return nil +} + +type RenewEphemeralResource_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` + RenewAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=renew_at,json=renewAt,proto3,oneof" json:"renew_at,omitempty"` + Private []byte `protobuf:"bytes,3,opt,name=private,proto3,oneof" json:"private,omitempty"` +} + +func (x *RenewEphemeralResource_Response) Reset() { + *x = RenewEphemeralResource_Response{} + mi := &file_tfplugin5_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RenewEphemeralResource_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenewEphemeralResource_Response) ProtoMessage() {} + +func (x *RenewEphemeralResource_Response) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[93] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_tfplugin5_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CallFunction_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RenewEphemeralResource_Response.ProtoReflect.Descriptor instead. +func (*RenewEphemeralResource_Response) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{31, 1} +} + +func (x *RenewEphemeralResource_Response) GetDiagnostics() []*Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +func (x *RenewEphemeralResource_Response) GetRenewAt() *timestamppb.Timestamp { + if x != nil { + return x.RenewAt + } + return nil +} + +func (x *RenewEphemeralResource_Response) GetPrivate() []byte { + if x != nil { + return x.Private + } + return nil +} + +type CloseEphemeralResource_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Private []byte `protobuf:"bytes,2,opt,name=private,proto3,oneof" json:"private,omitempty"` +} + +func (x *CloseEphemeralResource_Request) Reset() { + *x = CloseEphemeralResource_Request{} + mi := &file_tfplugin5_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CloseEphemeralResource_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseEphemeralResource_Request) ProtoMessage() {} + +func (x *CloseEphemeralResource_Request) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[94] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_tfplugin5_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CallFunction_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseEphemeralResource_Request.ProtoReflect.Descriptor instead. +func (*CloseEphemeralResource_Request) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{32, 0} +} + +func (x *CloseEphemeralResource_Request) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + +func (x *CloseEphemeralResource_Request) GetPrivate() []byte { + if x != nil { + return x.Private + } + return nil +} + +type CloseEphemeralResource_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *CloseEphemeralResource_Response) Reset() { + *x = CloseEphemeralResource_Response{} + mi := &file_tfplugin5_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CloseEphemeralResource_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseEphemeralResource_Response) ProtoMessage() {} + +func (x *CloseEphemeralResource_Response) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin5_proto_msgTypes[95] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseEphemeralResource_Response.ProtoReflect.Descriptor instead. +func (*CloseEphemeralResource_Response) Descriptor() ([]byte, []int) { + return file_tfplugin5_proto_rawDescGZIP(), []int{32, 1} +} + +func (x *CloseEphemeralResource_Response) GetDiagnostics() []*Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +var File_tfplugin5_proto protoreflect.FileDescriptor + +var file_tfplugin5_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, + 0x0c, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xe3, 0x01, 0x0a, 0x0a, + 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x3a, 0x0a, 0x08, 0x73, 0x65, + 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, + 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, + 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x22, 0x2f, 0x0a, 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, + 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, + 0x02, 0x22, 0x6b, 0x0a, 0x0d, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x30, 0x0a, 0x11, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x48, 0x00, 0x52, 0x10, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x72, 0x67, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x66, 0x75, 0x6e, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xdc, + 0x01, 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x33, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05, + 0x73, 0x74, 0x65, 0x70, 0x73, 0x1a, 0x95, 0x01, 0x0a, 0x04, 0x53, 0x74, 0x65, 0x70, 0x12, 0x27, + 0x0a, 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x65, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, + 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a, 0x0f, 0x65, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x0d, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, + 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x33, 0x0a, + 0x04, 0x53, 0x74, 0x6f, 0x70, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x22, 0x96, 0x01, 0x0a, 0x08, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, + 0x73, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x66, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x6d, 0x61, + 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x66, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x1a, + 0x3a, 0x0a, 0x0c, 0x46, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcc, 0x07, 0x0a, 0x06, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x2d, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, + 0xa2, 0x02, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x12, 0x3e, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, + 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x1a, 0xa9, 0x02, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, + 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x40, + 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, + 0x6e, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, + 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, + 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x1a, 0xa7, 0x02, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, + 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x43, 0x0a, 0x07, + 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x4e, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1b, + 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x4d, 0x0a, 0x0b, 0x4e, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, + 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, + 0x03, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x12, + 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x05, 0x22, 0xa8, 0x01, 0x0a, 0x12, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x72, 0x6f, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x44, 0x65, 0x73, + 0x74, 0x72, 0x6f, 0x79, 0x12, 0x3f, 0x0a, 0x1c, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x67, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x11, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3f, 0x0a, 0x12, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, + 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x64, + 0x65, 0x66, 0x65, 0x72, 0x72, 0x61, 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x61, 0x6c, 0x41, + 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x22, 0x8e, 0x05, 0x0a, 0x08, 0x46, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x12, 0x4c, 0x0a, 0x12, 0x76, 0x61, 0x72, 0x69, 0x61, 0x64, 0x69, 0x63, 0x5f, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x11, 0x76, + 0x61, 0x72, 0x69, 0x61, 0x64, 0x69, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x52, 0x06, 0x72, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x20, + 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, + 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, + 0x6e, 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x1a, 0xf3, 0x01, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x75, 0x6e, 0x6b, + 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x1a, 0x1c, 0x0a, 0x06, 0x52, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x08, 0x44, 0x65, 0x66, 0x65, + 0x72, 0x72, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x62, 0x0a, 0x06, 0x52, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x46, + 0x49, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, + 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x42, 0x53, + 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x52, 0x45, 0x51, 0x10, 0x03, 0x22, 0xb3, 0x05, 0x0a, + 0x0b, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x09, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xd2, 0x03, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, + 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x69, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x4c, 0x0a, + 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x61, 0x74, 0x61, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0b, + 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x09, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x12, 0x45, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x75, + 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x09, + 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x61, 0x0a, 0x13, 0x65, 0x70, 0x68, + 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, + 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x12, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, + 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x26, 0x0a, 0x10, + 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x31, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, + 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, + 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x2f, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x38, 0x0a, 0x19, 0x45, 0x70, 0x68, 0x65, + 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x22, 0xab, 0x08, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x8a, 0x08, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, + 0x65, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x6c, 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x36, 0x0a, + 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, + 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, + 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x81, 0x01, 0x0a, 0x1a, 0x65, 0x70, + 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x18, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x1a, 0x55, 0x0a, + 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x51, 0x0a, + 0x0e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x5e, 0x0a, 0x1d, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0xdb, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x85, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0e, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x64, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x90, + 0x02, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x72, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x61, 0x77, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x08, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x08, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, + 0x61, 0x64, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, + 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x22, 0xba, 0x01, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb8, + 0x01, 0x0a, 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x8a, 0x02, 0x0a, 0x09, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x1a, 0xb7, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, + 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xe4, 0x03, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x8c, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0xc4, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x08, + 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, + 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0xf3, 0x05, + 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x8b, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, + 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x70, 0x72, + 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, + 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x1a, 0xce, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, + 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, + 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, + 0x68, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x61, + 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, + 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, + 0x72, 0x65, 0x64, 0x22, 0x92, 0x04, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xb6, 0x02, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, + 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, + 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, + 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, + 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x4d, 0x65, 0x74, 0x61, 0x1a, 0xc1, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, + 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, + 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, + 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0xef, 0x03, 0x0a, 0x13, 0x49, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x1a, 0x86, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x78, 0x0a, 0x10, 0x49, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, + 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x1a, 0xd4, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5e, 0x0a, 0x12, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x11, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, + 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, + 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0xe7, 0x03, 0x0a, 0x11, 0x4d, + 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x1a, 0xa8, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x17, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, + 0x0a, 0x15, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0xa6, 0x01, 0x0a, 0x08, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x25, 0x0a, + 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x22, 0x9e, 0x03, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, + 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xe5, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, + 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, + 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, + 0xa3, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, + 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0x9b, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x09, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x78, 0x0a, 0x08, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0b, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x22, 0xe5, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x73, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x5b, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x81, 0x02, 0x0a, 0x0c, 0x47, + 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x09, 0x0a, 0x07, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xe5, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, + 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x1a, 0x51, 0x0a, 0x0e, 0x46, + 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, + 0x01, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, + 0x54, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, + 0x0a, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x72, 0x67, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x6b, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x46, 0x75, + 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x22, 0xbf, 0x01, 0x0a, 0x1f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x45, + 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, + 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x22, 0xdd, 0x03, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x70, 0x68, + 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xa7, + 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, + 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, + 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x99, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x3a, + 0x0a, 0x08, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x07, + 0x72, 0x65, 0x6e, 0x65, 0x77, 0x41, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x01, 0x52, 0x07, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, + 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, + 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x22, 0xa5, 0x02, 0x0a, 0x16, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x45, 0x70, + 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, + 0x51, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, + 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, + 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x1a, 0xb7, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x3a, 0x0a, 0x08, 0x72, 0x65, 0x6e, 0x65, + 0x77, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x07, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x41, + 0x74, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x01, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x74, + 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0xb0, 0x01, 0x0a, + 0x16, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x51, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0a, + 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2a, + 0x25, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x09, 0x0a, + 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x41, 0x52, 0x4b, + 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, 0xcc, 0x0f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x1e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, + 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, + 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, + 0x15, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x65, + 0x70, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x1a, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x18, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2b, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x69, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x55, 0x70, 0x67, + 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x09, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, + 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, + 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x4d, 0x6f, + 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, + 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x12, 0x21, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x61, + 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, + 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x1f, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x33, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x70, 0x68, 0x65, + 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x28, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x70, + 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, + 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x16, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x45, 0x70, 0x68, 0x65, 0x6d, + 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x45, 0x70, + 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, + 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x16, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x45, 0x70, 0x68, 0x65, + 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x29, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x45, + 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, + 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x35, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x46, + 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, + 0x6f, 0x70, 0x12, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, + 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x86, 0x03, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x12, 0x5e, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x12, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x2c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x62, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x30, 0x01, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x17, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, + 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x47, + 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, + 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x2d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x66, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x76, 0x35, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x35, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_tfplugin5_proto_rawDescOnce sync.Once + file_tfplugin5_proto_rawDescData = file_tfplugin5_proto_rawDesc +) + +func file_tfplugin5_proto_rawDescGZIP() []byte { + file_tfplugin5_proto_rawDescOnce.Do(func() { + file_tfplugin5_proto_rawDescData = protoimpl.X.CompressGZIP(file_tfplugin5_proto_rawDescData) + }) + return file_tfplugin5_proto_rawDescData +} + +var file_tfplugin5_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_tfplugin5_proto_msgTypes = make([]protoimpl.MessageInfo, 96) +var file_tfplugin5_proto_goTypes = []any{ + (StringKind)(0), // 0: tfplugin5.StringKind + (Diagnostic_Severity)(0), // 1: tfplugin5.Diagnostic.Severity + (Schema_NestedBlock_NestingMode)(0), // 2: tfplugin5.Schema.NestedBlock.NestingMode + (Deferred_Reason)(0), // 3: tfplugin5.Deferred.Reason + (*DynamicValue)(nil), // 4: tfplugin5.DynamicValue + (*Diagnostic)(nil), // 5: tfplugin5.Diagnostic + (*FunctionError)(nil), // 6: tfplugin5.FunctionError + (*AttributePath)(nil), // 7: tfplugin5.AttributePath + (*Stop)(nil), // 8: tfplugin5.Stop + (*RawState)(nil), // 9: tfplugin5.RawState + (*Schema)(nil), // 10: tfplugin5.Schema + (*ServerCapabilities)(nil), // 11: tfplugin5.ServerCapabilities + (*ClientCapabilities)(nil), // 12: tfplugin5.ClientCapabilities + (*Function)(nil), // 13: tfplugin5.Function + (*Deferred)(nil), // 14: tfplugin5.Deferred + (*GetMetadata)(nil), // 15: tfplugin5.GetMetadata + (*GetProviderSchema)(nil), // 16: tfplugin5.GetProviderSchema + (*PrepareProviderConfig)(nil), // 17: tfplugin5.PrepareProviderConfig + (*UpgradeResourceState)(nil), // 18: tfplugin5.UpgradeResourceState + (*ValidateResourceTypeConfig)(nil), // 19: tfplugin5.ValidateResourceTypeConfig + (*ValidateDataSourceConfig)(nil), // 20: tfplugin5.ValidateDataSourceConfig + (*Configure)(nil), // 21: tfplugin5.Configure + (*ReadResource)(nil), // 22: tfplugin5.ReadResource + (*PlanResourceChange)(nil), // 23: tfplugin5.PlanResourceChange + (*ApplyResourceChange)(nil), // 24: tfplugin5.ApplyResourceChange + (*ImportResourceState)(nil), // 25: tfplugin5.ImportResourceState + (*MoveResourceState)(nil), // 26: tfplugin5.MoveResourceState + (*ReadDataSource)(nil), // 27: tfplugin5.ReadDataSource + (*GetProvisionerSchema)(nil), // 28: tfplugin5.GetProvisionerSchema + (*ValidateProvisionerConfig)(nil), // 29: tfplugin5.ValidateProvisionerConfig + (*ProvisionResource)(nil), // 30: tfplugin5.ProvisionResource + (*GetFunctions)(nil), // 31: tfplugin5.GetFunctions + (*CallFunction)(nil), // 32: tfplugin5.CallFunction + (*ValidateEphemeralResourceConfig)(nil), // 33: tfplugin5.ValidateEphemeralResourceConfig + (*OpenEphemeralResource)(nil), // 34: tfplugin5.OpenEphemeralResource + (*RenewEphemeralResource)(nil), // 35: tfplugin5.RenewEphemeralResource + (*CloseEphemeralResource)(nil), // 36: tfplugin5.CloseEphemeralResource + (*AttributePath_Step)(nil), // 37: tfplugin5.AttributePath.Step + (*Stop_Request)(nil), // 38: tfplugin5.Stop.Request + (*Stop_Response)(nil), // 39: tfplugin5.Stop.Response + nil, // 40: tfplugin5.RawState.FlatmapEntry + (*Schema_Block)(nil), // 41: tfplugin5.Schema.Block + (*Schema_Attribute)(nil), // 42: tfplugin5.Schema.Attribute + (*Schema_NestedBlock)(nil), // 43: tfplugin5.Schema.NestedBlock + (*Function_Parameter)(nil), // 44: tfplugin5.Function.Parameter + (*Function_Return)(nil), // 45: tfplugin5.Function.Return + (*GetMetadata_Request)(nil), // 46: tfplugin5.GetMetadata.Request + (*GetMetadata_Response)(nil), // 47: tfplugin5.GetMetadata.Response + (*GetMetadata_FunctionMetadata)(nil), // 48: tfplugin5.GetMetadata.FunctionMetadata + (*GetMetadata_DataSourceMetadata)(nil), // 49: tfplugin5.GetMetadata.DataSourceMetadata + (*GetMetadata_ResourceMetadata)(nil), // 50: tfplugin5.GetMetadata.ResourceMetadata + (*GetMetadata_EphemeralResourceMetadata)(nil), // 51: tfplugin5.GetMetadata.EphemeralResourceMetadata + (*GetProviderSchema_Request)(nil), // 52: tfplugin5.GetProviderSchema.Request + (*GetProviderSchema_Response)(nil), // 53: tfplugin5.GetProviderSchema.Response + nil, // 54: tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry + nil, // 55: tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry + nil, // 56: tfplugin5.GetProviderSchema.Response.FunctionsEntry + nil, // 57: tfplugin5.GetProviderSchema.Response.EphemeralResourceSchemasEntry + (*PrepareProviderConfig_Request)(nil), // 58: tfplugin5.PrepareProviderConfig.Request + (*PrepareProviderConfig_Response)(nil), // 59: tfplugin5.PrepareProviderConfig.Response + (*UpgradeResourceState_Request)(nil), // 60: tfplugin5.UpgradeResourceState.Request + (*UpgradeResourceState_Response)(nil), // 61: tfplugin5.UpgradeResourceState.Response + (*ValidateResourceTypeConfig_Request)(nil), // 62: tfplugin5.ValidateResourceTypeConfig.Request + (*ValidateResourceTypeConfig_Response)(nil), // 63: tfplugin5.ValidateResourceTypeConfig.Response + (*ValidateDataSourceConfig_Request)(nil), // 64: tfplugin5.ValidateDataSourceConfig.Request + (*ValidateDataSourceConfig_Response)(nil), // 65: tfplugin5.ValidateDataSourceConfig.Response + (*Configure_Request)(nil), // 66: tfplugin5.Configure.Request + (*Configure_Response)(nil), // 67: tfplugin5.Configure.Response + (*ReadResource_Request)(nil), // 68: tfplugin5.ReadResource.Request + (*ReadResource_Response)(nil), // 69: tfplugin5.ReadResource.Response + (*PlanResourceChange_Request)(nil), // 70: tfplugin5.PlanResourceChange.Request + (*PlanResourceChange_Response)(nil), // 71: tfplugin5.PlanResourceChange.Response + (*ApplyResourceChange_Request)(nil), // 72: tfplugin5.ApplyResourceChange.Request + (*ApplyResourceChange_Response)(nil), // 73: tfplugin5.ApplyResourceChange.Response + (*ImportResourceState_Request)(nil), // 74: tfplugin5.ImportResourceState.Request + (*ImportResourceState_ImportedResource)(nil), // 75: tfplugin5.ImportResourceState.ImportedResource + (*ImportResourceState_Response)(nil), // 76: tfplugin5.ImportResourceState.Response + (*MoveResourceState_Request)(nil), // 77: tfplugin5.MoveResourceState.Request + (*MoveResourceState_Response)(nil), // 78: tfplugin5.MoveResourceState.Response + (*ReadDataSource_Request)(nil), // 79: tfplugin5.ReadDataSource.Request + (*ReadDataSource_Response)(nil), // 80: tfplugin5.ReadDataSource.Response + (*GetProvisionerSchema_Request)(nil), // 81: tfplugin5.GetProvisionerSchema.Request + (*GetProvisionerSchema_Response)(nil), // 82: tfplugin5.GetProvisionerSchema.Response + (*ValidateProvisionerConfig_Request)(nil), // 83: tfplugin5.ValidateProvisionerConfig.Request + (*ValidateProvisionerConfig_Response)(nil), // 84: tfplugin5.ValidateProvisionerConfig.Response + (*ProvisionResource_Request)(nil), // 85: tfplugin5.ProvisionResource.Request + (*ProvisionResource_Response)(nil), // 86: tfplugin5.ProvisionResource.Response + (*GetFunctions_Request)(nil), // 87: tfplugin5.GetFunctions.Request + (*GetFunctions_Response)(nil), // 88: tfplugin5.GetFunctions.Response + nil, // 89: tfplugin5.GetFunctions.Response.FunctionsEntry + (*CallFunction_Request)(nil), // 90: tfplugin5.CallFunction.Request + (*CallFunction_Response)(nil), // 91: tfplugin5.CallFunction.Response + (*ValidateEphemeralResourceConfig_Request)(nil), // 92: tfplugin5.ValidateEphemeralResourceConfig.Request + (*ValidateEphemeralResourceConfig_Response)(nil), // 93: tfplugin5.ValidateEphemeralResourceConfig.Response + (*OpenEphemeralResource_Request)(nil), // 94: tfplugin5.OpenEphemeralResource.Request + (*OpenEphemeralResource_Response)(nil), // 95: tfplugin5.OpenEphemeralResource.Response + (*RenewEphemeralResource_Request)(nil), // 96: tfplugin5.RenewEphemeralResource.Request + (*RenewEphemeralResource_Response)(nil), // 97: tfplugin5.RenewEphemeralResource.Response + (*CloseEphemeralResource_Request)(nil), // 98: tfplugin5.CloseEphemeralResource.Request + (*CloseEphemeralResource_Response)(nil), // 99: tfplugin5.CloseEphemeralResource.Response + (*timestamppb.Timestamp)(nil), // 100: google.protobuf.Timestamp +} +var file_tfplugin5_proto_depIdxs = []int32{ + 1, // 0: tfplugin5.Diagnostic.severity:type_name -> tfplugin5.Diagnostic.Severity + 7, // 1: tfplugin5.Diagnostic.attribute:type_name -> tfplugin5.AttributePath + 37, // 2: tfplugin5.AttributePath.steps:type_name -> tfplugin5.AttributePath.Step + 40, // 3: tfplugin5.RawState.flatmap:type_name -> tfplugin5.RawState.FlatmapEntry + 41, // 4: tfplugin5.Schema.block:type_name -> tfplugin5.Schema.Block + 44, // 5: tfplugin5.Function.parameters:type_name -> tfplugin5.Function.Parameter + 44, // 6: tfplugin5.Function.variadic_parameter:type_name -> tfplugin5.Function.Parameter + 45, // 7: tfplugin5.Function.return:type_name -> tfplugin5.Function.Return + 0, // 8: tfplugin5.Function.description_kind:type_name -> tfplugin5.StringKind + 3, // 9: tfplugin5.Deferred.reason:type_name -> tfplugin5.Deferred.Reason + 42, // 10: tfplugin5.Schema.Block.attributes:type_name -> tfplugin5.Schema.Attribute + 43, // 11: tfplugin5.Schema.Block.block_types:type_name -> tfplugin5.Schema.NestedBlock + 0, // 12: tfplugin5.Schema.Block.description_kind:type_name -> tfplugin5.StringKind + 0, // 13: tfplugin5.Schema.Attribute.description_kind:type_name -> tfplugin5.StringKind + 41, // 14: tfplugin5.Schema.NestedBlock.block:type_name -> tfplugin5.Schema.Block + 2, // 15: tfplugin5.Schema.NestedBlock.nesting:type_name -> tfplugin5.Schema.NestedBlock.NestingMode + 0, // 16: tfplugin5.Function.Parameter.description_kind:type_name -> tfplugin5.StringKind + 11, // 17: tfplugin5.GetMetadata.Response.server_capabilities:type_name -> tfplugin5.ServerCapabilities + 5, // 18: tfplugin5.GetMetadata.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 49, // 19: tfplugin5.GetMetadata.Response.data_sources:type_name -> tfplugin5.GetMetadata.DataSourceMetadata + 50, // 20: tfplugin5.GetMetadata.Response.resources:type_name -> tfplugin5.GetMetadata.ResourceMetadata + 48, // 21: tfplugin5.GetMetadata.Response.functions:type_name -> tfplugin5.GetMetadata.FunctionMetadata + 51, // 22: tfplugin5.GetMetadata.Response.ephemeral_resources:type_name -> tfplugin5.GetMetadata.EphemeralResourceMetadata + 10, // 23: tfplugin5.GetProviderSchema.Response.provider:type_name -> tfplugin5.Schema + 54, // 24: tfplugin5.GetProviderSchema.Response.resource_schemas:type_name -> tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry + 55, // 25: tfplugin5.GetProviderSchema.Response.data_source_schemas:type_name -> tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry + 5, // 26: tfplugin5.GetProviderSchema.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 10, // 27: tfplugin5.GetProviderSchema.Response.provider_meta:type_name -> tfplugin5.Schema + 11, // 28: tfplugin5.GetProviderSchema.Response.server_capabilities:type_name -> tfplugin5.ServerCapabilities + 56, // 29: tfplugin5.GetProviderSchema.Response.functions:type_name -> tfplugin5.GetProviderSchema.Response.FunctionsEntry + 57, // 30: tfplugin5.GetProviderSchema.Response.ephemeral_resource_schemas:type_name -> tfplugin5.GetProviderSchema.Response.EphemeralResourceSchemasEntry + 10, // 31: tfplugin5.GetProviderSchema.Response.ResourceSchemasEntry.value:type_name -> tfplugin5.Schema + 10, // 32: tfplugin5.GetProviderSchema.Response.DataSourceSchemasEntry.value:type_name -> tfplugin5.Schema + 13, // 33: tfplugin5.GetProviderSchema.Response.FunctionsEntry.value:type_name -> tfplugin5.Function + 10, // 34: tfplugin5.GetProviderSchema.Response.EphemeralResourceSchemasEntry.value:type_name -> tfplugin5.Schema + 4, // 35: tfplugin5.PrepareProviderConfig.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 36: tfplugin5.PrepareProviderConfig.Response.prepared_config:type_name -> tfplugin5.DynamicValue + 5, // 37: tfplugin5.PrepareProviderConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 9, // 38: tfplugin5.UpgradeResourceState.Request.raw_state:type_name -> tfplugin5.RawState + 4, // 39: tfplugin5.UpgradeResourceState.Response.upgraded_state:type_name -> tfplugin5.DynamicValue + 5, // 40: tfplugin5.UpgradeResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 4, // 41: tfplugin5.ValidateResourceTypeConfig.Request.config:type_name -> tfplugin5.DynamicValue + 5, // 42: tfplugin5.ValidateResourceTypeConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 4, // 43: tfplugin5.ValidateDataSourceConfig.Request.config:type_name -> tfplugin5.DynamicValue + 5, // 44: tfplugin5.ValidateDataSourceConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 4, // 45: tfplugin5.Configure.Request.config:type_name -> tfplugin5.DynamicValue + 12, // 46: tfplugin5.Configure.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities + 5, // 47: tfplugin5.Configure.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 4, // 48: tfplugin5.ReadResource.Request.current_state:type_name -> tfplugin5.DynamicValue + 4, // 49: tfplugin5.ReadResource.Request.provider_meta:type_name -> tfplugin5.DynamicValue + 12, // 50: tfplugin5.ReadResource.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities + 4, // 51: tfplugin5.ReadResource.Response.new_state:type_name -> tfplugin5.DynamicValue + 5, // 52: tfplugin5.ReadResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 14, // 53: tfplugin5.ReadResource.Response.deferred:type_name -> tfplugin5.Deferred + 4, // 54: tfplugin5.PlanResourceChange.Request.prior_state:type_name -> tfplugin5.DynamicValue + 4, // 55: tfplugin5.PlanResourceChange.Request.proposed_new_state:type_name -> tfplugin5.DynamicValue + 4, // 56: tfplugin5.PlanResourceChange.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 57: tfplugin5.PlanResourceChange.Request.provider_meta:type_name -> tfplugin5.DynamicValue + 12, // 58: tfplugin5.PlanResourceChange.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities + 4, // 59: tfplugin5.PlanResourceChange.Response.planned_state:type_name -> tfplugin5.DynamicValue + 7, // 60: tfplugin5.PlanResourceChange.Response.requires_replace:type_name -> tfplugin5.AttributePath + 5, // 61: tfplugin5.PlanResourceChange.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 14, // 62: tfplugin5.PlanResourceChange.Response.deferred:type_name -> tfplugin5.Deferred + 4, // 63: tfplugin5.ApplyResourceChange.Request.prior_state:type_name -> tfplugin5.DynamicValue + 4, // 64: tfplugin5.ApplyResourceChange.Request.planned_state:type_name -> tfplugin5.DynamicValue + 4, // 65: tfplugin5.ApplyResourceChange.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 66: tfplugin5.ApplyResourceChange.Request.provider_meta:type_name -> tfplugin5.DynamicValue + 4, // 67: tfplugin5.ApplyResourceChange.Response.new_state:type_name -> tfplugin5.DynamicValue + 5, // 68: tfplugin5.ApplyResourceChange.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 12, // 69: tfplugin5.ImportResourceState.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities + 4, // 70: tfplugin5.ImportResourceState.ImportedResource.state:type_name -> tfplugin5.DynamicValue + 75, // 71: tfplugin5.ImportResourceState.Response.imported_resources:type_name -> tfplugin5.ImportResourceState.ImportedResource + 5, // 72: tfplugin5.ImportResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 14, // 73: tfplugin5.ImportResourceState.Response.deferred:type_name -> tfplugin5.Deferred + 9, // 74: tfplugin5.MoveResourceState.Request.source_state:type_name -> tfplugin5.RawState + 4, // 75: tfplugin5.MoveResourceState.Response.target_state:type_name -> tfplugin5.DynamicValue + 5, // 76: tfplugin5.MoveResourceState.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 4, // 77: tfplugin5.ReadDataSource.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 78: tfplugin5.ReadDataSource.Request.provider_meta:type_name -> tfplugin5.DynamicValue + 12, // 79: tfplugin5.ReadDataSource.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities + 4, // 80: tfplugin5.ReadDataSource.Response.state:type_name -> tfplugin5.DynamicValue + 5, // 81: tfplugin5.ReadDataSource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 14, // 82: tfplugin5.ReadDataSource.Response.deferred:type_name -> tfplugin5.Deferred + 10, // 83: tfplugin5.GetProvisionerSchema.Response.provisioner:type_name -> tfplugin5.Schema + 5, // 84: tfplugin5.GetProvisionerSchema.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 4, // 85: tfplugin5.ValidateProvisionerConfig.Request.config:type_name -> tfplugin5.DynamicValue + 5, // 86: tfplugin5.ValidateProvisionerConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 4, // 87: tfplugin5.ProvisionResource.Request.config:type_name -> tfplugin5.DynamicValue + 4, // 88: tfplugin5.ProvisionResource.Request.connection:type_name -> tfplugin5.DynamicValue + 5, // 89: tfplugin5.ProvisionResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 89, // 90: tfplugin5.GetFunctions.Response.functions:type_name -> tfplugin5.GetFunctions.Response.FunctionsEntry + 5, // 91: tfplugin5.GetFunctions.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 13, // 92: tfplugin5.GetFunctions.Response.FunctionsEntry.value:type_name -> tfplugin5.Function + 4, // 93: tfplugin5.CallFunction.Request.arguments:type_name -> tfplugin5.DynamicValue + 4, // 94: tfplugin5.CallFunction.Response.result:type_name -> tfplugin5.DynamicValue + 6, // 95: tfplugin5.CallFunction.Response.error:type_name -> tfplugin5.FunctionError + 4, // 96: tfplugin5.ValidateEphemeralResourceConfig.Request.config:type_name -> tfplugin5.DynamicValue + 5, // 97: tfplugin5.ValidateEphemeralResourceConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 4, // 98: tfplugin5.OpenEphemeralResource.Request.config:type_name -> tfplugin5.DynamicValue + 12, // 99: tfplugin5.OpenEphemeralResource.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities + 5, // 100: tfplugin5.OpenEphemeralResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 100, // 101: tfplugin5.OpenEphemeralResource.Response.renew_at:type_name -> google.protobuf.Timestamp + 4, // 102: tfplugin5.OpenEphemeralResource.Response.result:type_name -> tfplugin5.DynamicValue + 14, // 103: tfplugin5.OpenEphemeralResource.Response.deferred:type_name -> tfplugin5.Deferred + 5, // 104: tfplugin5.RenewEphemeralResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 100, // 105: tfplugin5.RenewEphemeralResource.Response.renew_at:type_name -> google.protobuf.Timestamp + 5, // 106: tfplugin5.CloseEphemeralResource.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 46, // 107: tfplugin5.Provider.GetMetadata:input_type -> tfplugin5.GetMetadata.Request + 52, // 108: tfplugin5.Provider.GetSchema:input_type -> tfplugin5.GetProviderSchema.Request + 58, // 109: tfplugin5.Provider.PrepareProviderConfig:input_type -> tfplugin5.PrepareProviderConfig.Request + 62, // 110: tfplugin5.Provider.ValidateResourceTypeConfig:input_type -> tfplugin5.ValidateResourceTypeConfig.Request + 64, // 111: tfplugin5.Provider.ValidateDataSourceConfig:input_type -> tfplugin5.ValidateDataSourceConfig.Request + 60, // 112: tfplugin5.Provider.UpgradeResourceState:input_type -> tfplugin5.UpgradeResourceState.Request + 66, // 113: tfplugin5.Provider.Configure:input_type -> tfplugin5.Configure.Request + 68, // 114: tfplugin5.Provider.ReadResource:input_type -> tfplugin5.ReadResource.Request + 70, // 115: tfplugin5.Provider.PlanResourceChange:input_type -> tfplugin5.PlanResourceChange.Request + 72, // 116: tfplugin5.Provider.ApplyResourceChange:input_type -> tfplugin5.ApplyResourceChange.Request + 74, // 117: tfplugin5.Provider.ImportResourceState:input_type -> tfplugin5.ImportResourceState.Request + 77, // 118: tfplugin5.Provider.MoveResourceState:input_type -> tfplugin5.MoveResourceState.Request + 79, // 119: tfplugin5.Provider.ReadDataSource:input_type -> tfplugin5.ReadDataSource.Request + 92, // 120: tfplugin5.Provider.ValidateEphemeralResourceConfig:input_type -> tfplugin5.ValidateEphemeralResourceConfig.Request + 94, // 121: tfplugin5.Provider.OpenEphemeralResource:input_type -> tfplugin5.OpenEphemeralResource.Request + 96, // 122: tfplugin5.Provider.RenewEphemeralResource:input_type -> tfplugin5.RenewEphemeralResource.Request + 98, // 123: tfplugin5.Provider.CloseEphemeralResource:input_type -> tfplugin5.CloseEphemeralResource.Request + 87, // 124: tfplugin5.Provider.GetFunctions:input_type -> tfplugin5.GetFunctions.Request + 90, // 125: tfplugin5.Provider.CallFunction:input_type -> tfplugin5.CallFunction.Request + 38, // 126: tfplugin5.Provider.Stop:input_type -> tfplugin5.Stop.Request + 81, // 127: tfplugin5.Provisioner.GetSchema:input_type -> tfplugin5.GetProvisionerSchema.Request + 83, // 128: tfplugin5.Provisioner.ValidateProvisionerConfig:input_type -> tfplugin5.ValidateProvisionerConfig.Request + 85, // 129: tfplugin5.Provisioner.ProvisionResource:input_type -> tfplugin5.ProvisionResource.Request + 38, // 130: tfplugin5.Provisioner.Stop:input_type -> tfplugin5.Stop.Request + 47, // 131: tfplugin5.Provider.GetMetadata:output_type -> tfplugin5.GetMetadata.Response + 53, // 132: tfplugin5.Provider.GetSchema:output_type -> tfplugin5.GetProviderSchema.Response + 59, // 133: tfplugin5.Provider.PrepareProviderConfig:output_type -> tfplugin5.PrepareProviderConfig.Response + 63, // 134: tfplugin5.Provider.ValidateResourceTypeConfig:output_type -> tfplugin5.ValidateResourceTypeConfig.Response + 65, // 135: tfplugin5.Provider.ValidateDataSourceConfig:output_type -> tfplugin5.ValidateDataSourceConfig.Response + 61, // 136: tfplugin5.Provider.UpgradeResourceState:output_type -> tfplugin5.UpgradeResourceState.Response + 67, // 137: tfplugin5.Provider.Configure:output_type -> tfplugin5.Configure.Response + 69, // 138: tfplugin5.Provider.ReadResource:output_type -> tfplugin5.ReadResource.Response + 71, // 139: tfplugin5.Provider.PlanResourceChange:output_type -> tfplugin5.PlanResourceChange.Response + 73, // 140: tfplugin5.Provider.ApplyResourceChange:output_type -> tfplugin5.ApplyResourceChange.Response + 76, // 141: tfplugin5.Provider.ImportResourceState:output_type -> tfplugin5.ImportResourceState.Response + 78, // 142: tfplugin5.Provider.MoveResourceState:output_type -> tfplugin5.MoveResourceState.Response + 80, // 143: tfplugin5.Provider.ReadDataSource:output_type -> tfplugin5.ReadDataSource.Response + 93, // 144: tfplugin5.Provider.ValidateEphemeralResourceConfig:output_type -> tfplugin5.ValidateEphemeralResourceConfig.Response + 95, // 145: tfplugin5.Provider.OpenEphemeralResource:output_type -> tfplugin5.OpenEphemeralResource.Response + 97, // 146: tfplugin5.Provider.RenewEphemeralResource:output_type -> tfplugin5.RenewEphemeralResource.Response + 99, // 147: tfplugin5.Provider.CloseEphemeralResource:output_type -> tfplugin5.CloseEphemeralResource.Response + 88, // 148: tfplugin5.Provider.GetFunctions:output_type -> tfplugin5.GetFunctions.Response + 91, // 149: tfplugin5.Provider.CallFunction:output_type -> tfplugin5.CallFunction.Response + 39, // 150: tfplugin5.Provider.Stop:output_type -> tfplugin5.Stop.Response + 82, // 151: tfplugin5.Provisioner.GetSchema:output_type -> tfplugin5.GetProvisionerSchema.Response + 84, // 152: tfplugin5.Provisioner.ValidateProvisionerConfig:output_type -> tfplugin5.ValidateProvisionerConfig.Response + 86, // 153: tfplugin5.Provisioner.ProvisionResource:output_type -> tfplugin5.ProvisionResource.Response + 39, // 154: tfplugin5.Provisioner.Stop:output_type -> tfplugin5.Stop.Response + 131, // [131:155] is the sub-list for method output_type + 107, // [107:131] is the sub-list for method input_type + 107, // [107:107] is the sub-list for extension type_name + 107, // [107:107] is the sub-list for extension extendee + 0, // [0:107] is the sub-list for field type_name +} + +func init() { file_tfplugin5_proto_init() } +func file_tfplugin5_proto_init() { + if File_tfplugin5_proto != nil { + return } - file_tfplugin5_proto_msgTypes[2].OneofWrappers = []interface{}{} - file_tfplugin5_proto_msgTypes[29].OneofWrappers = []interface{}{ + file_tfplugin5_proto_msgTypes[2].OneofWrappers = []any{} + file_tfplugin5_proto_msgTypes[33].OneofWrappers = []any{ (*AttributePath_Step_AttributeName)(nil), (*AttributePath_Step_ElementKeyString)(nil), (*AttributePath_Step_ElementKeyInt)(nil), } + file_tfplugin5_proto_msgTypes[91].OneofWrappers = []any{} + file_tfplugin5_proto_msgTypes[92].OneofWrappers = []any{} + file_tfplugin5_proto_msgTypes[93].OneofWrappers = []any{} + file_tfplugin5_proto_msgTypes[94].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_tfplugin5_proto_rawDesc, NumEnums: 4, - NumMessages: 82, + NumMessages: 96, NumExtensions: 0, NumServices: 2, }, diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.proto b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.proto index 3c2fa84aca60..ef4e60f24eef 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.proto +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5.proto @@ -1,9 +1,9 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 -// Terraform Plugin RPC protocol version 5.6 +// Terraform Plugin RPC protocol version 5.7 // -// This file defines version 5.6 of the RPC protocol. To implement a plugin +// This file defines version 5.7 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -22,6 +22,8 @@ syntax = "proto3"; option go_package = "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5"; +import "google/protobuf/timestamp.proto"; + package tfplugin5; // DynamicValue is an opaque encoding of terraform data, with the field name @@ -269,6 +271,12 @@ service Provider { rpc MoveResourceState(MoveResourceState.Request) returns (MoveResourceState.Response); rpc ReadDataSource(ReadDataSource.Request) returns (ReadDataSource.Response); + //////// Ephemeral Resource Lifecycle + rpc ValidateEphemeralResourceConfig(ValidateEphemeralResourceConfig.Request) returns (ValidateEphemeralResourceConfig.Response); + rpc OpenEphemeralResource(OpenEphemeralResource.Request) returns (OpenEphemeralResource.Response); + rpc RenewEphemeralResource(RenewEphemeralResource.Request) returns (RenewEphemeralResource.Response); + rpc CloseEphemeralResource(CloseEphemeralResource.Request) returns (CloseEphemeralResource.Response); + // Functions // GetFunctions returns the definitions of all functions. @@ -294,6 +302,7 @@ message GetMetadata { // functions returns metadata for any functions. repeated FunctionMetadata functions = 5; + repeated EphemeralResourceMetadata ephemeral_resources = 6; } message FunctionMetadata { @@ -308,6 +317,10 @@ message GetMetadata { message ResourceMetadata { string type_name = 1; } + + message EphemeralResourceMetadata { + string type_name = 1; + } } message GetProviderSchema { @@ -323,6 +336,7 @@ message GetProviderSchema { // functions is a mapping of function names to definitions. map functions = 7; + map ephemeral_resource_schemas = 8; } } @@ -633,3 +647,52 @@ message CallFunction { FunctionError error = 2; } } + +message ValidateEphemeralResourceConfig { + message Request { + string type_name = 1; + DynamicValue config = 2; + } + message Response { + repeated Diagnostic diagnostics = 1; + } +} + +message OpenEphemeralResource { + message Request { + string type_name = 1; + DynamicValue config = 2; + ClientCapabilities client_capabilities = 3; + } + message Response { + repeated Diagnostic diagnostics = 1; + optional google.protobuf.Timestamp renew_at = 2; + DynamicValue result = 3; + optional bytes private = 4; + // deferred is set if the provider is deferring the change. If set the caller + // needs to handle the deferral. + Deferred deferred = 5; + } +} + +message RenewEphemeralResource { + message Request { + string type_name = 1; + optional bytes private = 2; + } + message Response { + repeated Diagnostic diagnostics = 1; + optional google.protobuf.Timestamp renew_at = 2; + optional bytes private = 3; + } +} + +message CloseEphemeralResource { + message Request { + string type_name = 1; + optional bytes private = 2; + } + message Response { + repeated Diagnostic diagnostics = 1; + } +} \ No newline at end of file diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go index 8a8c8a5a0132..3f77b559a3a5 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go @@ -1,9 +1,9 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 -// Terraform Plugin RPC protocol version 5.6 +// Terraform Plugin RPC protocol version 5.7 // -// This file defines version 5.6 of the RPC protocol. To implement a plugin +// This file defines version 5.7 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -22,8 +22,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.27.3 // source: tfplugin5.proto package tfplugin5 @@ -37,26 +37,30 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( - Provider_GetMetadata_FullMethodName = "/tfplugin5.Provider/GetMetadata" - Provider_GetSchema_FullMethodName = "/tfplugin5.Provider/GetSchema" - Provider_PrepareProviderConfig_FullMethodName = "/tfplugin5.Provider/PrepareProviderConfig" - Provider_ValidateResourceTypeConfig_FullMethodName = "/tfplugin5.Provider/ValidateResourceTypeConfig" - Provider_ValidateDataSourceConfig_FullMethodName = "/tfplugin5.Provider/ValidateDataSourceConfig" - Provider_UpgradeResourceState_FullMethodName = "/tfplugin5.Provider/UpgradeResourceState" - Provider_Configure_FullMethodName = "/tfplugin5.Provider/Configure" - Provider_ReadResource_FullMethodName = "/tfplugin5.Provider/ReadResource" - Provider_PlanResourceChange_FullMethodName = "/tfplugin5.Provider/PlanResourceChange" - Provider_ApplyResourceChange_FullMethodName = "/tfplugin5.Provider/ApplyResourceChange" - Provider_ImportResourceState_FullMethodName = "/tfplugin5.Provider/ImportResourceState" - Provider_MoveResourceState_FullMethodName = "/tfplugin5.Provider/MoveResourceState" - Provider_ReadDataSource_FullMethodName = "/tfplugin5.Provider/ReadDataSource" - Provider_GetFunctions_FullMethodName = "/tfplugin5.Provider/GetFunctions" - Provider_CallFunction_FullMethodName = "/tfplugin5.Provider/CallFunction" - Provider_Stop_FullMethodName = "/tfplugin5.Provider/Stop" + Provider_GetMetadata_FullMethodName = "/tfplugin5.Provider/GetMetadata" + Provider_GetSchema_FullMethodName = "/tfplugin5.Provider/GetSchema" + Provider_PrepareProviderConfig_FullMethodName = "/tfplugin5.Provider/PrepareProviderConfig" + Provider_ValidateResourceTypeConfig_FullMethodName = "/tfplugin5.Provider/ValidateResourceTypeConfig" + Provider_ValidateDataSourceConfig_FullMethodName = "/tfplugin5.Provider/ValidateDataSourceConfig" + Provider_UpgradeResourceState_FullMethodName = "/tfplugin5.Provider/UpgradeResourceState" + Provider_Configure_FullMethodName = "/tfplugin5.Provider/Configure" + Provider_ReadResource_FullMethodName = "/tfplugin5.Provider/ReadResource" + Provider_PlanResourceChange_FullMethodName = "/tfplugin5.Provider/PlanResourceChange" + Provider_ApplyResourceChange_FullMethodName = "/tfplugin5.Provider/ApplyResourceChange" + Provider_ImportResourceState_FullMethodName = "/tfplugin5.Provider/ImportResourceState" + Provider_MoveResourceState_FullMethodName = "/tfplugin5.Provider/MoveResourceState" + Provider_ReadDataSource_FullMethodName = "/tfplugin5.Provider/ReadDataSource" + Provider_ValidateEphemeralResourceConfig_FullMethodName = "/tfplugin5.Provider/ValidateEphemeralResourceConfig" + Provider_OpenEphemeralResource_FullMethodName = "/tfplugin5.Provider/OpenEphemeralResource" + Provider_RenewEphemeralResource_FullMethodName = "/tfplugin5.Provider/RenewEphemeralResource" + Provider_CloseEphemeralResource_FullMethodName = "/tfplugin5.Provider/CloseEphemeralResource" + Provider_GetFunctions_FullMethodName = "/tfplugin5.Provider/GetFunctions" + Provider_CallFunction_FullMethodName = "/tfplugin5.Provider/CallFunction" + Provider_Stop_FullMethodName = "/tfplugin5.Provider/Stop" ) // ProviderClient is the client API for Provider service. @@ -85,6 +89,11 @@ type ProviderClient interface { ImportResourceState(ctx context.Context, in *ImportResourceState_Request, opts ...grpc.CallOption) (*ImportResourceState_Response, error) MoveResourceState(ctx context.Context, in *MoveResourceState_Request, opts ...grpc.CallOption) (*MoveResourceState_Response, error) ReadDataSource(ctx context.Context, in *ReadDataSource_Request, opts ...grpc.CallOption) (*ReadDataSource_Response, error) + // ////// Ephemeral Resource Lifecycle + ValidateEphemeralResourceConfig(ctx context.Context, in *ValidateEphemeralResourceConfig_Request, opts ...grpc.CallOption) (*ValidateEphemeralResourceConfig_Response, error) + OpenEphemeralResource(ctx context.Context, in *OpenEphemeralResource_Request, opts ...grpc.CallOption) (*OpenEphemeralResource_Response, error) + RenewEphemeralResource(ctx context.Context, in *RenewEphemeralResource_Request, opts ...grpc.CallOption) (*RenewEphemeralResource_Response, error) + CloseEphemeralResource(ctx context.Context, in *CloseEphemeralResource_Request, opts ...grpc.CallOption) (*CloseEphemeralResource_Response, error) // GetFunctions returns the definitions of all functions. GetFunctions(ctx context.Context, in *GetFunctions_Request, opts ...grpc.CallOption) (*GetFunctions_Response, error) // CallFunction runs the provider-defined function logic and returns @@ -103,8 +112,9 @@ func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient { } func (c *providerClient) GetMetadata(ctx context.Context, in *GetMetadata_Request, opts ...grpc.CallOption) (*GetMetadata_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMetadata_Response) - err := c.cc.Invoke(ctx, Provider_GetMetadata_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_GetMetadata_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -112,8 +122,9 @@ func (c *providerClient) GetMetadata(ctx context.Context, in *GetMetadata_Reques } func (c *providerClient) GetSchema(ctx context.Context, in *GetProviderSchema_Request, opts ...grpc.CallOption) (*GetProviderSchema_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetProviderSchema_Response) - err := c.cc.Invoke(ctx, Provider_GetSchema_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_GetSchema_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -121,8 +132,9 @@ func (c *providerClient) GetSchema(ctx context.Context, in *GetProviderSchema_Re } func (c *providerClient) PrepareProviderConfig(ctx context.Context, in *PrepareProviderConfig_Request, opts ...grpc.CallOption) (*PrepareProviderConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PrepareProviderConfig_Response) - err := c.cc.Invoke(ctx, Provider_PrepareProviderConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_PrepareProviderConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -130,8 +142,9 @@ func (c *providerClient) PrepareProviderConfig(ctx context.Context, in *PrepareP } func (c *providerClient) ValidateResourceTypeConfig(ctx context.Context, in *ValidateResourceTypeConfig_Request, opts ...grpc.CallOption) (*ValidateResourceTypeConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateResourceTypeConfig_Response) - err := c.cc.Invoke(ctx, Provider_ValidateResourceTypeConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ValidateResourceTypeConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -139,8 +152,9 @@ func (c *providerClient) ValidateResourceTypeConfig(ctx context.Context, in *Val } func (c *providerClient) ValidateDataSourceConfig(ctx context.Context, in *ValidateDataSourceConfig_Request, opts ...grpc.CallOption) (*ValidateDataSourceConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateDataSourceConfig_Response) - err := c.cc.Invoke(ctx, Provider_ValidateDataSourceConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ValidateDataSourceConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -148,8 +162,9 @@ func (c *providerClient) ValidateDataSourceConfig(ctx context.Context, in *Valid } func (c *providerClient) UpgradeResourceState(ctx context.Context, in *UpgradeResourceState_Request, opts ...grpc.CallOption) (*UpgradeResourceState_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpgradeResourceState_Response) - err := c.cc.Invoke(ctx, Provider_UpgradeResourceState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_UpgradeResourceState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -157,8 +172,9 @@ func (c *providerClient) UpgradeResourceState(ctx context.Context, in *UpgradeRe } func (c *providerClient) Configure(ctx context.Context, in *Configure_Request, opts ...grpc.CallOption) (*Configure_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Configure_Response) - err := c.cc.Invoke(ctx, Provider_Configure_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_Configure_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -166,8 +182,9 @@ func (c *providerClient) Configure(ctx context.Context, in *Configure_Request, o } func (c *providerClient) ReadResource(ctx context.Context, in *ReadResource_Request, opts ...grpc.CallOption) (*ReadResource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReadResource_Response) - err := c.cc.Invoke(ctx, Provider_ReadResource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ReadResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -175,8 +192,9 @@ func (c *providerClient) ReadResource(ctx context.Context, in *ReadResource_Requ } func (c *providerClient) PlanResourceChange(ctx context.Context, in *PlanResourceChange_Request, opts ...grpc.CallOption) (*PlanResourceChange_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PlanResourceChange_Response) - err := c.cc.Invoke(ctx, Provider_PlanResourceChange_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_PlanResourceChange_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -184,8 +202,9 @@ func (c *providerClient) PlanResourceChange(ctx context.Context, in *PlanResourc } func (c *providerClient) ApplyResourceChange(ctx context.Context, in *ApplyResourceChange_Request, opts ...grpc.CallOption) (*ApplyResourceChange_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ApplyResourceChange_Response) - err := c.cc.Invoke(ctx, Provider_ApplyResourceChange_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ApplyResourceChange_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -193,8 +212,9 @@ func (c *providerClient) ApplyResourceChange(ctx context.Context, in *ApplyResou } func (c *providerClient) ImportResourceState(ctx context.Context, in *ImportResourceState_Request, opts ...grpc.CallOption) (*ImportResourceState_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ImportResourceState_Response) - err := c.cc.Invoke(ctx, Provider_ImportResourceState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ImportResourceState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -202,8 +222,9 @@ func (c *providerClient) ImportResourceState(ctx context.Context, in *ImportReso } func (c *providerClient) MoveResourceState(ctx context.Context, in *MoveResourceState_Request, opts ...grpc.CallOption) (*MoveResourceState_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MoveResourceState_Response) - err := c.cc.Invoke(ctx, Provider_MoveResourceState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_MoveResourceState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -211,8 +232,49 @@ func (c *providerClient) MoveResourceState(ctx context.Context, in *MoveResource } func (c *providerClient) ReadDataSource(ctx context.Context, in *ReadDataSource_Request, opts ...grpc.CallOption) (*ReadDataSource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReadDataSource_Response) - err := c.cc.Invoke(ctx, Provider_ReadDataSource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ReadDataSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerClient) ValidateEphemeralResourceConfig(ctx context.Context, in *ValidateEphemeralResourceConfig_Request, opts ...grpc.CallOption) (*ValidateEphemeralResourceConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ValidateEphemeralResourceConfig_Response) + err := c.cc.Invoke(ctx, Provider_ValidateEphemeralResourceConfig_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerClient) OpenEphemeralResource(ctx context.Context, in *OpenEphemeralResource_Request, opts ...grpc.CallOption) (*OpenEphemeralResource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OpenEphemeralResource_Response) + err := c.cc.Invoke(ctx, Provider_OpenEphemeralResource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerClient) RenewEphemeralResource(ctx context.Context, in *RenewEphemeralResource_Request, opts ...grpc.CallOption) (*RenewEphemeralResource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(RenewEphemeralResource_Response) + err := c.cc.Invoke(ctx, Provider_RenewEphemeralResource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerClient) CloseEphemeralResource(ctx context.Context, in *CloseEphemeralResource_Request, opts ...grpc.CallOption) (*CloseEphemeralResource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CloseEphemeralResource_Response) + err := c.cc.Invoke(ctx, Provider_CloseEphemeralResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -220,8 +282,9 @@ func (c *providerClient) ReadDataSource(ctx context.Context, in *ReadDataSource_ } func (c *providerClient) GetFunctions(ctx context.Context, in *GetFunctions_Request, opts ...grpc.CallOption) (*GetFunctions_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetFunctions_Response) - err := c.cc.Invoke(ctx, Provider_GetFunctions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_GetFunctions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -229,8 +292,9 @@ func (c *providerClient) GetFunctions(ctx context.Context, in *GetFunctions_Requ } func (c *providerClient) CallFunction(ctx context.Context, in *CallFunction_Request, opts ...grpc.CallOption) (*CallFunction_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CallFunction_Response) - err := c.cc.Invoke(ctx, Provider_CallFunction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_CallFunction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -238,8 +302,9 @@ func (c *providerClient) CallFunction(ctx context.Context, in *CallFunction_Requ } func (c *providerClient) Stop(ctx context.Context, in *Stop_Request, opts ...grpc.CallOption) (*Stop_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Stop_Response) - err := c.cc.Invoke(ctx, Provider_Stop_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_Stop_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -248,7 +313,7 @@ func (c *providerClient) Stop(ctx context.Context, in *Stop_Request, opts ...grp // ProviderServer is the server API for Provider service. // All implementations must embed UnimplementedProviderServer -// for forward compatibility +// for forward compatibility. type ProviderServer interface { // GetMetadata returns upfront information about server capabilities and // supported resource types without requiring the server to instantiate all @@ -272,6 +337,11 @@ type ProviderServer interface { ImportResourceState(context.Context, *ImportResourceState_Request) (*ImportResourceState_Response, error) MoveResourceState(context.Context, *MoveResourceState_Request) (*MoveResourceState_Response, error) ReadDataSource(context.Context, *ReadDataSource_Request) (*ReadDataSource_Response, error) + // ////// Ephemeral Resource Lifecycle + ValidateEphemeralResourceConfig(context.Context, *ValidateEphemeralResourceConfig_Request) (*ValidateEphemeralResourceConfig_Response, error) + OpenEphemeralResource(context.Context, *OpenEphemeralResource_Request) (*OpenEphemeralResource_Response, error) + RenewEphemeralResource(context.Context, *RenewEphemeralResource_Request) (*RenewEphemeralResource_Response, error) + CloseEphemeralResource(context.Context, *CloseEphemeralResource_Request) (*CloseEphemeralResource_Response, error) // GetFunctions returns the definitions of all functions. GetFunctions(context.Context, *GetFunctions_Request) (*GetFunctions_Response, error) // CallFunction runs the provider-defined function logic and returns @@ -282,9 +352,12 @@ type ProviderServer interface { mustEmbedUnimplementedProviderServer() } -// UnimplementedProviderServer must be embedded to have forward compatible implementations. -type UnimplementedProviderServer struct { -} +// UnimplementedProviderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedProviderServer struct{} func (UnimplementedProviderServer) GetMetadata(context.Context, *GetMetadata_Request) (*GetMetadata_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMetadata not implemented") @@ -325,6 +398,18 @@ func (UnimplementedProviderServer) MoveResourceState(context.Context, *MoveResou func (UnimplementedProviderServer) ReadDataSource(context.Context, *ReadDataSource_Request) (*ReadDataSource_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method ReadDataSource not implemented") } +func (UnimplementedProviderServer) ValidateEphemeralResourceConfig(context.Context, *ValidateEphemeralResourceConfig_Request) (*ValidateEphemeralResourceConfig_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidateEphemeralResourceConfig not implemented") +} +func (UnimplementedProviderServer) OpenEphemeralResource(context.Context, *OpenEphemeralResource_Request) (*OpenEphemeralResource_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenEphemeralResource not implemented") +} +func (UnimplementedProviderServer) RenewEphemeralResource(context.Context, *RenewEphemeralResource_Request) (*RenewEphemeralResource_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method RenewEphemeralResource not implemented") +} +func (UnimplementedProviderServer) CloseEphemeralResource(context.Context, *CloseEphemeralResource_Request) (*CloseEphemeralResource_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseEphemeralResource not implemented") +} func (UnimplementedProviderServer) GetFunctions(context.Context, *GetFunctions_Request) (*GetFunctions_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method GetFunctions not implemented") } @@ -335,6 +420,7 @@ func (UnimplementedProviderServer) Stop(context.Context, *Stop_Request) (*Stop_R return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") } func (UnimplementedProviderServer) mustEmbedUnimplementedProviderServer() {} +func (UnimplementedProviderServer) testEmbeddedByValue() {} // UnsafeProviderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ProviderServer will @@ -344,6 +430,13 @@ type UnsafeProviderServer interface { } func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer) { + // If the following call pancis, it indicates UnimplementedProviderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Provider_ServiceDesc, srv) } @@ -581,6 +674,78 @@ func _Provider_ReadDataSource_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Provider_ValidateEphemeralResourceConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateEphemeralResourceConfig_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderServer).ValidateEphemeralResourceConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Provider_ValidateEphemeralResourceConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderServer).ValidateEphemeralResourceConfig(ctx, req.(*ValidateEphemeralResourceConfig_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Provider_OpenEphemeralResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenEphemeralResource_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderServer).OpenEphemeralResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Provider_OpenEphemeralResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderServer).OpenEphemeralResource(ctx, req.(*OpenEphemeralResource_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Provider_RenewEphemeralResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RenewEphemeralResource_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderServer).RenewEphemeralResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Provider_RenewEphemeralResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderServer).RenewEphemeralResource(ctx, req.(*RenewEphemeralResource_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Provider_CloseEphemeralResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseEphemeralResource_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderServer).CloseEphemeralResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Provider_CloseEphemeralResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderServer).CloseEphemeralResource(ctx, req.(*CloseEphemeralResource_Request)) + } + return interceptor(ctx, in, info, handler) +} + func _Provider_GetFunctions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetFunctions_Request) if err := dec(in); err != nil { @@ -694,6 +859,22 @@ var Provider_ServiceDesc = grpc.ServiceDesc{ MethodName: "ReadDataSource", Handler: _Provider_ReadDataSource_Handler, }, + { + MethodName: "ValidateEphemeralResourceConfig", + Handler: _Provider_ValidateEphemeralResourceConfig_Handler, + }, + { + MethodName: "OpenEphemeralResource", + Handler: _Provider_OpenEphemeralResource_Handler, + }, + { + MethodName: "RenewEphemeralResource", + Handler: _Provider_RenewEphemeralResource_Handler, + }, + { + MethodName: "CloseEphemeralResource", + Handler: _Provider_CloseEphemeralResource_Handler, + }, { MethodName: "GetFunctions", Handler: _Provider_GetFunctions_Handler, @@ -724,7 +905,7 @@ const ( type ProvisionerClient interface { GetSchema(ctx context.Context, in *GetProvisionerSchema_Request, opts ...grpc.CallOption) (*GetProvisionerSchema_Response, error) ValidateProvisionerConfig(ctx context.Context, in *ValidateProvisionerConfig_Request, opts ...grpc.CallOption) (*ValidateProvisionerConfig_Response, error) - ProvisionResource(ctx context.Context, in *ProvisionResource_Request, opts ...grpc.CallOption) (Provisioner_ProvisionResourceClient, error) + ProvisionResource(ctx context.Context, in *ProvisionResource_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ProvisionResource_Response], error) Stop(ctx context.Context, in *Stop_Request, opts ...grpc.CallOption) (*Stop_Response, error) } @@ -737,8 +918,9 @@ func NewProvisionerClient(cc grpc.ClientConnInterface) ProvisionerClient { } func (c *provisionerClient) GetSchema(ctx context.Context, in *GetProvisionerSchema_Request, opts ...grpc.CallOption) (*GetProvisionerSchema_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetProvisionerSchema_Response) - err := c.cc.Invoke(ctx, Provisioner_GetSchema_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provisioner_GetSchema_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -746,20 +928,22 @@ func (c *provisionerClient) GetSchema(ctx context.Context, in *GetProvisionerSch } func (c *provisionerClient) ValidateProvisionerConfig(ctx context.Context, in *ValidateProvisionerConfig_Request, opts ...grpc.CallOption) (*ValidateProvisionerConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateProvisionerConfig_Response) - err := c.cc.Invoke(ctx, Provisioner_ValidateProvisionerConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provisioner_ValidateProvisionerConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *provisionerClient) ProvisionResource(ctx context.Context, in *ProvisionResource_Request, opts ...grpc.CallOption) (Provisioner_ProvisionResourceClient, error) { - stream, err := c.cc.NewStream(ctx, &Provisioner_ServiceDesc.Streams[0], Provisioner_ProvisionResource_FullMethodName, opts...) +func (c *provisionerClient) ProvisionResource(ctx context.Context, in *ProvisionResource_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ProvisionResource_Response], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Provisioner_ServiceDesc.Streams[0], Provisioner_ProvisionResource_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &provisionerProvisionResourceClient{stream} + x := &grpc.GenericClientStream[ProvisionResource_Request, ProvisionResource_Response]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -769,26 +953,13 @@ func (c *provisionerClient) ProvisionResource(ctx context.Context, in *Provision return x, nil } -type Provisioner_ProvisionResourceClient interface { - Recv() (*ProvisionResource_Response, error) - grpc.ClientStream -} - -type provisionerProvisionResourceClient struct { - grpc.ClientStream -} - -func (x *provisionerProvisionResourceClient) Recv() (*ProvisionResource_Response, error) { - m := new(ProvisionResource_Response) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Provisioner_ProvisionResourceClient = grpc.ServerStreamingClient[ProvisionResource_Response] func (c *provisionerClient) Stop(ctx context.Context, in *Stop_Request, opts ...grpc.CallOption) (*Stop_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Stop_Response) - err := c.cc.Invoke(ctx, Provisioner_Stop_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provisioner_Stop_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -797,18 +968,21 @@ func (c *provisionerClient) Stop(ctx context.Context, in *Stop_Request, opts ... // ProvisionerServer is the server API for Provisioner service. // All implementations must embed UnimplementedProvisionerServer -// for forward compatibility +// for forward compatibility. type ProvisionerServer interface { GetSchema(context.Context, *GetProvisionerSchema_Request) (*GetProvisionerSchema_Response, error) ValidateProvisionerConfig(context.Context, *ValidateProvisionerConfig_Request) (*ValidateProvisionerConfig_Response, error) - ProvisionResource(*ProvisionResource_Request, Provisioner_ProvisionResourceServer) error + ProvisionResource(*ProvisionResource_Request, grpc.ServerStreamingServer[ProvisionResource_Response]) error Stop(context.Context, *Stop_Request) (*Stop_Response, error) mustEmbedUnimplementedProvisionerServer() } -// UnimplementedProvisionerServer must be embedded to have forward compatible implementations. -type UnimplementedProvisionerServer struct { -} +// UnimplementedProvisionerServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedProvisionerServer struct{} func (UnimplementedProvisionerServer) GetSchema(context.Context, *GetProvisionerSchema_Request) (*GetProvisionerSchema_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSchema not implemented") @@ -816,13 +990,14 @@ func (UnimplementedProvisionerServer) GetSchema(context.Context, *GetProvisioner func (UnimplementedProvisionerServer) ValidateProvisionerConfig(context.Context, *ValidateProvisionerConfig_Request) (*ValidateProvisionerConfig_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidateProvisionerConfig not implemented") } -func (UnimplementedProvisionerServer) ProvisionResource(*ProvisionResource_Request, Provisioner_ProvisionResourceServer) error { +func (UnimplementedProvisionerServer) ProvisionResource(*ProvisionResource_Request, grpc.ServerStreamingServer[ProvisionResource_Response]) error { return status.Errorf(codes.Unimplemented, "method ProvisionResource not implemented") } func (UnimplementedProvisionerServer) Stop(context.Context, *Stop_Request) (*Stop_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") } func (UnimplementedProvisionerServer) mustEmbedUnimplementedProvisionerServer() {} +func (UnimplementedProvisionerServer) testEmbeddedByValue() {} // UnsafeProvisionerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ProvisionerServer will @@ -832,6 +1007,13 @@ type UnsafeProvisionerServer interface { } func RegisterProvisionerServer(s grpc.ServiceRegistrar, srv ProvisionerServer) { + // If the following call pancis, it indicates UnimplementedProvisionerServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Provisioner_ServiceDesc, srv) } @@ -876,21 +1058,11 @@ func _Provisioner_ProvisionResource_Handler(srv interface{}, stream grpc.ServerS if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ProvisionerServer).ProvisionResource(m, &provisionerProvisionResourceServer{stream}) -} - -type Provisioner_ProvisionResourceServer interface { - Send(*ProvisionResource_Response) error - grpc.ServerStream + return srv.(ProvisionerServer).ProvisionResource(m, &grpc.GenericServerStream[ProvisionResource_Request, ProvisionResource_Response]{ServerStream: stream}) } -type provisionerProvisionResourceServer struct { - grpc.ServerStream -} - -func (x *provisionerProvisionResourceServer) Send(m *ProvisionResource_Response) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Provisioner_ProvisionResourceServer = grpc.ServerStreamingServer[ProvisionResource_Response] func _Provisioner_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Stop_Request) diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/ephemeral_resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/ephemeral_resource.go new file mode 100644 index 000000000000..952f5d96735b --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/ephemeral_resource.go @@ -0,0 +1,65 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" +) + +func GetMetadata_EphemeralResourceMetadata(in *tfprotov5.EphemeralResourceMetadata) *tfplugin5.GetMetadata_EphemeralResourceMetadata { + if in == nil { + return nil + } + + return &tfplugin5.GetMetadata_EphemeralResourceMetadata{ + TypeName: in.TypeName, + } +} + +func ValidateEphemeralResourceConfig_Response(in *tfprotov5.ValidateEphemeralResourceConfigResponse) *tfplugin5.ValidateEphemeralResourceConfig_Response { + if in == nil { + return nil + } + + return &tfplugin5.ValidateEphemeralResourceConfig_Response{ + Diagnostics: Diagnostics(in.Diagnostics), + } +} + +func OpenEphemeralResource_Response(in *tfprotov5.OpenEphemeralResourceResponse) *tfplugin5.OpenEphemeralResource_Response { + if in == nil { + return nil + } + + return &tfplugin5.OpenEphemeralResource_Response{ + Result: DynamicValue(in.Result), + Diagnostics: Diagnostics(in.Diagnostics), + Private: in.Private, + RenewAt: Timestamp(in.RenewAt), + Deferred: Deferred(in.Deferred), + } +} + +func RenewEphemeralResource_Response(in *tfprotov5.RenewEphemeralResourceResponse) *tfplugin5.RenewEphemeralResource_Response { + if in == nil { + return nil + } + + return &tfplugin5.RenewEphemeralResource_Response{ + Diagnostics: Diagnostics(in.Diagnostics), + Private: in.Private, + RenewAt: Timestamp(in.RenewAt), + } +} + +func CloseEphemeralResource_Response(in *tfprotov5.CloseEphemeralResourceResponse) *tfplugin5.CloseEphemeralResource_Response { + if in == nil { + return nil + } + + return &tfplugin5.CloseEphemeralResource_Response{ + Diagnostics: Diagnostics(in.Diagnostics), + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/provider.go index 4891c53874f5..84d579a54f12 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/provider.go @@ -16,6 +16,7 @@ func GetMetadata_Response(in *tfprotov5.GetMetadataResponse) *tfplugin5.GetMetad resp := &tfplugin5.GetMetadata_Response{ DataSources: make([]*tfplugin5.GetMetadata_DataSourceMetadata, 0, len(in.DataSources)), Diagnostics: Diagnostics(in.Diagnostics), + EphemeralResources: make([]*tfplugin5.GetMetadata_EphemeralResourceMetadata, 0, len(in.EphemeralResources)), Functions: make([]*tfplugin5.GetMetadata_FunctionMetadata, 0, len(in.Functions)), Resources: make([]*tfplugin5.GetMetadata_ResourceMetadata, 0, len(in.Resources)), ServerCapabilities: ServerCapabilities(in.ServerCapabilities), @@ -25,6 +26,10 @@ func GetMetadata_Response(in *tfprotov5.GetMetadataResponse) *tfplugin5.GetMetad resp.DataSources = append(resp.DataSources, GetMetadata_DataSourceMetadata(&datasource)) } + for _, ephemeralResource := range in.EphemeralResources { + resp.EphemeralResources = append(resp.EphemeralResources, GetMetadata_EphemeralResourceMetadata(&ephemeralResource)) + } + for _, function := range in.Functions { resp.Functions = append(resp.Functions, GetMetadata_FunctionMetadata(&function)) } @@ -42,13 +47,18 @@ func GetProviderSchema_Response(in *tfprotov5.GetProviderSchemaResponse) *tfplug } resp := &tfplugin5.GetProviderSchema_Response{ - DataSourceSchemas: make(map[string]*tfplugin5.Schema, len(in.DataSourceSchemas)), - Diagnostics: Diagnostics(in.Diagnostics), - Functions: make(map[string]*tfplugin5.Function, len(in.Functions)), - Provider: Schema(in.Provider), - ProviderMeta: Schema(in.ProviderMeta), - ResourceSchemas: make(map[string]*tfplugin5.Schema, len(in.ResourceSchemas)), - ServerCapabilities: ServerCapabilities(in.ServerCapabilities), + DataSourceSchemas: make(map[string]*tfplugin5.Schema, len(in.DataSourceSchemas)), + Diagnostics: Diagnostics(in.Diagnostics), + EphemeralResourceSchemas: make(map[string]*tfplugin5.Schema, len(in.EphemeralResourceSchemas)), + Functions: make(map[string]*tfplugin5.Function, len(in.Functions)), + Provider: Schema(in.Provider), + ProviderMeta: Schema(in.ProviderMeta), + ResourceSchemas: make(map[string]*tfplugin5.Schema, len(in.ResourceSchemas)), + ServerCapabilities: ServerCapabilities(in.ServerCapabilities), + } + + for name, schema := range in.EphemeralResourceSchemas { + resp.EphemeralResourceSchemas[name] = Schema(schema) } for name, schema := range in.ResourceSchemas { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/timestamp.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/timestamp.go new file mode 100644 index 000000000000..3ee28365e943 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/timestamp.go @@ -0,0 +1,18 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto + +import ( + "time" + + "google.golang.org/protobuf/types/known/timestamppb" +) + +func Timestamp(in time.Time) *timestamppb.Timestamp { + if in.IsZero() { + return nil + } + + return timestamppb.New(in) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/provider.go index 799f90238a22..41e850bf668b 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/provider.go @@ -56,6 +56,25 @@ type ProviderServer interface { FunctionServer } +// ProviderServerWithEphemeralResources is a temporary interface for servers +// to implement Ephemeral Resource RPC handling with: +// +// - ValidateEphemeralResourceConfig +// - OpenEphemeralResource +// - RenewEphemeralResource +// - CloseEphemeralResource +// +// Deprecated: The EphemeralResourceServer methods will be moved into the +// ProviderServer interface and this interface will be removed in a future +// version. +type ProviderServerWithEphemeralResources interface { + ProviderServer + + // EphemeralResourceServer is an interface encapsulating all the ephemeral + // resource-related RPC requests. + EphemeralResourceServer +} + // GetMetadataRequest represents a GetMetadata RPC request. type GetMetadataRequest struct{} @@ -78,6 +97,9 @@ type GetMetadataResponse struct { // Resources returns metadata for all managed resources. Resources []ResourceMetadata + + // EphemeralResources returns metadata for all ephemeral resources. + EphemeralResources []EphemeralResourceMetadata } // GetProviderSchemaRequest represents a Terraform RPC request for the @@ -124,6 +146,13 @@ type GetProviderSchemaResponse struct { // includes the provider name. Functions map[string]*Function + // EphemeralResourceSchemas is a map of ephemeral resource names to the schema for + // the configuration specified in the ephemeral resource. The name should be an + // ephemeral resource name, and should be prefixed with your provider's + // shortname and an underscore. It should match the first label after + // `ephemeral` in a user's configuration. + EphemeralResourceSchemas map[string]*Schema + // Diagnostics report errors or warnings related to returning the // provider's schemas. Returning an empty slice indicates success, with // no errors or warnings generated. diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/resource.go index 9e50a0ce6c6d..251bf135d6ef 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/resource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/resource.go @@ -65,26 +65,6 @@ type ResourceServer interface { MoveResourceState(context.Context, *MoveResourceStateRequest) (*MoveResourceStateResponse, error) } -// ResourceServerWithMoveResourceState is a temporary interface for servers -// to implement MoveResourceState RPC handling. -// -// Deprecated: This interface will be removed in a future version. Use -// ResourceServer instead. -type ResourceServerWithMoveResourceState interface { - ResourceServer - - // MoveResourceState is called when Terraform is asked to change a resource - // type for an existing resource. The provider must accept the change as - // valid by ensuring the source resource type, schema version, and provider - // address are compatible to convert the source state into the target - // resource type and latest state version. - // - // This functionality is only supported in Terraform 1.8 and later. The - // provider must have enabled the MoveResourceState server capability to - // enable these requests. - MoveResourceState(context.Context, *MoveResourceStateRequest) (*MoveResourceStateResponse, error) -} - // ValidateResourceTypeConfigRequest is the request Terraform sends when it // wants to validate a resource's configuration. type ValidateResourceTypeConfigRequest struct { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go index 17c5c147ae88..e40d49cebc47 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/server.go @@ -18,18 +18,18 @@ import ( "google.golang.org/grpc" + "github.com/hashicorp/go-hclog" + "github.com/hashicorp/go-plugin" + "github.com/hashicorp/terraform-plugin-log/tflog" + "github.com/hashicorp/terraform-plugin-log/tfsdklog" + "github.com/mitchellh/go-testing-interface" + "github.com/hashicorp/terraform-plugin-go/internal/logging" "github.com/hashicorp/terraform-plugin-go/tfprotov5" "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto" "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging" "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto" - - "github.com/hashicorp/go-hclog" - "github.com/hashicorp/go-plugin" - "github.com/hashicorp/terraform-plugin-log/tflog" - "github.com/hashicorp/terraform-plugin-log/tfsdklog" - "github.com/mitchellh/go-testing-interface" ) const ( @@ -49,7 +49,7 @@ const ( // // In the future, it may be possible to include this information directly // in the protocol buffers rather than recreating a constant here. - protocolVersionMinor uint = 6 + protocolVersionMinor uint = 7 ) // protocolVersion represents the combined major and minor version numbers of @@ -1003,6 +1003,220 @@ func (s *server) GetFunctions(ctx context.Context, protoReq *tfplugin5.GetFuncti return protoResp, nil } +func (s *server) ValidateEphemeralResourceConfig(ctx context.Context, protoReq *tfplugin5.ValidateEphemeralResourceConfig_Request) (*tfplugin5.ValidateEphemeralResourceConfig_Response, error) { + rpc := "ValidateEphemeralResourceConfig" + ctx = s.loggingContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + ctx = logging.EphemeralResourceContext(ctx, protoReq.TypeName) + ctx = s.stoppableContext(ctx) + logging.ProtocolTrace(ctx, "Received request") + defer logging.ProtocolTrace(ctx, "Served request") + + // TODO: Remove this check and error in preference of + // s.downstream.ValidateEphemeralResourceConfig below once ProviderServer interface + // implements the EphemeralResourceServer RPC methods. + // nolint:staticcheck + ephemeralResourceProviderServer, ok := s.downstream.(tfprotov5.ProviderServerWithEphemeralResources) + if !ok { + logging.ProtocolError(ctx, "ProviderServer does not implement ValidateEphemeralResourceConfig") + + protoResp := &tfplugin5.ValidateEphemeralResourceConfig_Response{ + Diagnostics: []*tfplugin5.Diagnostic{ + { + Severity: tfplugin5.Diagnostic_ERROR, + Summary: "Provider Validate Ephemeral Resource Config Not Implemented", + Detail: "A ValidateEphemeralResourceConfig call was received by the provider, however the provider does not implement the call. " + + "Either upgrade the provider to a version that implements ephemeral resource support or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return protoResp, nil + } + + req := fromproto.ValidateEphemeralResourceConfigRequest(protoReq) + + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", req.Config) + + ctx = tf5serverlogging.DownstreamRequest(ctx) + + // TODO: Update this to call downstream once optional interface is removed + // resp, err := s.downstream.ValidateEphemeralResourceConfig(ctx, req) + resp, err := ephemeralResourceProviderServer.ValidateEphemeralResourceConfig(ctx, req) + + if err != nil { + logging.ProtocolError(ctx, "Error from downstream", map[string]any{logging.KeyError: err}) + return nil, err + } + + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) + + protoResp := toproto.ValidateEphemeralResourceConfig_Response(resp) + + return protoResp, nil +} + +func (s *server) OpenEphemeralResource(ctx context.Context, protoReq *tfplugin5.OpenEphemeralResource_Request) (*tfplugin5.OpenEphemeralResource_Response, error) { + rpc := "OpenEphemeralResource" + ctx = s.loggingContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + ctx = logging.EphemeralResourceContext(ctx, protoReq.TypeName) + ctx = s.stoppableContext(ctx) + logging.ProtocolTrace(ctx, "Received request") + defer logging.ProtocolTrace(ctx, "Served request") + + // TODO: Remove this check and error in preference of + // s.downstream.OpenEphemeralResource below once ProviderServer interface + // implements the EphemeralResourceServer RPC methods. + // nolint:staticcheck + ephemeralResourceProviderServer, ok := s.downstream.(tfprotov5.ProviderServerWithEphemeralResources) + if !ok { + logging.ProtocolError(ctx, "ProviderServer does not implement OpenEphemeralResource") + + protoResp := &tfplugin5.OpenEphemeralResource_Response{ + Diagnostics: []*tfplugin5.Diagnostic{ + { + Severity: tfplugin5.Diagnostic_ERROR, + Summary: "Provider Open Ephemeral Resource Not Implemented", + Detail: "A OpenEphemeralResource call was received by the provider, however the provider does not implement the call. " + + "Either upgrade the provider to a version that implements ephemeral resource support or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return protoResp, nil + } + + req := fromproto.OpenEphemeralResourceRequest(protoReq) + + tf5serverlogging.OpenEphemeralResourceClientCapabilities(ctx, req.ClientCapabilities) + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", req.Config) + ctx = tf5serverlogging.DownstreamRequest(ctx) + + // TODO: Update this to call downstream once optional interface is removed + // resp, err := s.downstream.OpenEphemeralResource(ctx, req) + resp, err := ephemeralResourceProviderServer.OpenEphemeralResource(ctx, req) + + if err != nil { + logging.ProtocolError(ctx, "Error from downstream", map[string]any{logging.KeyError: err}) + return nil, err + } + + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "Result", resp.Result) + tf5serverlogging.Deferred(ctx, resp.Deferred) + + if resp.Deferred != nil && (req.ClientCapabilities == nil || !req.ClientCapabilities.DeferralAllowed) { + resp.Diagnostics = append(resp.Diagnostics, invalidDeferredResponseDiag(resp.Deferred.Reason)) + } + + protoResp := toproto.OpenEphemeralResource_Response(resp) + + return protoResp, nil +} + +func (s *server) RenewEphemeralResource(ctx context.Context, protoReq *tfplugin5.RenewEphemeralResource_Request) (*tfplugin5.RenewEphemeralResource_Response, error) { + rpc := "RenewEphemeralResource" + ctx = s.loggingContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + ctx = logging.EphemeralResourceContext(ctx, protoReq.TypeName) + ctx = s.stoppableContext(ctx) + logging.ProtocolTrace(ctx, "Received request") + defer logging.ProtocolTrace(ctx, "Served request") + + // TODO: Remove this check and error in preference of + // s.downstream.RenewEphemeralResource below once ProviderServer interface + // implements the EphemeralResourceServer RPC methods. + // nolint:staticcheck + ephemeralResourceProviderServer, ok := s.downstream.(tfprotov5.ProviderServerWithEphemeralResources) + if !ok { + logging.ProtocolError(ctx, "ProviderServer does not implement RenewEphemeralResource") + + protoResp := &tfplugin5.RenewEphemeralResource_Response{ + Diagnostics: []*tfplugin5.Diagnostic{ + { + Severity: tfplugin5.Diagnostic_ERROR, + Summary: "Provider Renew Ephemeral Resource Not Implemented", + Detail: "A RenewEphemeralResource call was received by the provider, however the provider does not implement the call. " + + "Either upgrade the provider to a version that implements ephemeral resource support or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return protoResp, nil + } + + req := fromproto.RenewEphemeralResourceRequest(protoReq) + + ctx = tf5serverlogging.DownstreamRequest(ctx) + + // TODO: Update this to call downstream once optional interface is removed + // resp, err := s.downstream.RenewEphemeralResource(ctx, req) + resp, err := ephemeralResourceProviderServer.RenewEphemeralResource(ctx, req) + + if err != nil { + logging.ProtocolError(ctx, "Error from downstream", map[string]any{logging.KeyError: err}) + return nil, err + } + + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) + + protoResp := toproto.RenewEphemeralResource_Response(resp) + + return protoResp, nil +} + +func (s *server) CloseEphemeralResource(ctx context.Context, protoReq *tfplugin5.CloseEphemeralResource_Request) (*tfplugin5.CloseEphemeralResource_Response, error) { + rpc := "CloseEphemeralResource" + ctx = s.loggingContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + ctx = logging.EphemeralResourceContext(ctx, protoReq.TypeName) + ctx = s.stoppableContext(ctx) + logging.ProtocolTrace(ctx, "Received request") + defer logging.ProtocolTrace(ctx, "Served request") + + // TODO: Remove this check and error in preference of + // s.downstream.CloseEphemeralResource below once ProviderServer interface + // implements the EphemeralResourceServer RPC methods. + // nolint:staticcheck + ephemeralResourceProviderServer, ok := s.downstream.(tfprotov5.ProviderServerWithEphemeralResources) + if !ok { + logging.ProtocolError(ctx, "ProviderServer does not implement CloseEphemeralResource") + + protoResp := &tfplugin5.CloseEphemeralResource_Response{ + Diagnostics: []*tfplugin5.Diagnostic{ + { + Severity: tfplugin5.Diagnostic_ERROR, + Summary: "Provider Close Ephemeral Resource Not Implemented", + Detail: "A CloseEphemeralResource call was received by the provider, however the provider does not implement the call. " + + "Either upgrade the provider to a version that implements ephemeral resource support or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return protoResp, nil + } + + req := fromproto.CloseEphemeralResourceRequest(protoReq) + + ctx = tf5serverlogging.DownstreamRequest(ctx) + + // TODO: Update this to call downstream once optional interface is removed + // resp, err := s.downstream.CloseEphemeralResource(ctx, req) + resp, err := ephemeralResourceProviderServer.CloseEphemeralResource(ctx, req) + + if err != nil { + logging.ProtocolError(ctx, "Error from downstream", map[string]any{logging.KeyError: err}) + return nil, err + } + + tf5serverlogging.DownstreamResponse(ctx, resp.Diagnostics) + + protoResp := toproto.CloseEphemeralResource_Response(resp) + + return protoResp, nil +} + func invalidDeferredResponseDiag(reason tfprotov5.DeferredReason) *tfprotov5.Diagnostic { return &tfprotov5.Diagnostic{ Severity: tfprotov5.DiagnosticSeverityError, diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/client_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/client_capabilities.go index b528c123abfa..f4d55ee9af86 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/client_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/client_capabilities.go @@ -47,3 +47,12 @@ type ImportResourceStateClientCapabilities struct { // handle deferred responses from the provider. DeferralAllowed bool } + +// OpenEphemeralResourceClientCapabilities allows Terraform to publish information +// regarding optionally supported protocol features for the OpenEphemeralResource RPC, +// such as forward-compatible Terraform behavior changes. +type OpenEphemeralResourceClientCapabilities struct { + // DeferralAllowed signals that the request from Terraform is able to + // handle deferred responses from the provider. + DeferralAllowed bool +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/ephemeral_resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/ephemeral_resource.go new file mode 100644 index 000000000000..038b21f7e18d --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/ephemeral_resource.go @@ -0,0 +1,185 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package tfprotov6 + +import ( + "context" + "time" +) + +// EphemeralResourceMetadata describes metadata for an ephemeral resource in the GetMetadata +// RPC. +type EphemeralResourceMetadata struct { + // TypeName is the name of the ephemeral resource. + TypeName string +} + +// EphemeralResourceServer is an interface containing the methods an ephemeral resource +// implementation needs to fill. +type EphemeralResourceServer interface { + // ValidateEphemeralResourceConfig is called when Terraform is checking that an + // ephemeral resource configuration is valid. It is guaranteed to have types + // conforming to your schema, but it is not guaranteed that all values + // will be known. This is your opportunity to do custom or advanced + // validation prior to an ephemeral resource being opened. + ValidateEphemeralResourceConfig(context.Context, *ValidateEphemeralResourceConfigRequest) (*ValidateEphemeralResourceConfigResponse, error) + + // OpenEphemeralResource is called when Terraform wants to open the ephemeral resource, + // usually during planning. If the config for the ephemeral resource contains unknown + // values, Terraform will defer the OpenEphemeralResource call until apply. + OpenEphemeralResource(context.Context, *OpenEphemeralResourceRequest) (*OpenEphemeralResourceResponse, error) + + // RenewEphemeralResource is called when Terraform detects that the previously specified + // RenewAt timestamp has passed. The RenewAt timestamp is supplied either from the + // OpenEphemeralResource call or a previous RenewEphemeralResource call. + RenewEphemeralResource(context.Context, *RenewEphemeralResourceRequest) (*RenewEphemeralResourceResponse, error) + + // CloseEphemeralResource is called when Terraform is closing the ephemeral resource. + CloseEphemeralResource(context.Context, *CloseEphemeralResourceRequest) (*CloseEphemeralResourceResponse, error) +} + +// ValidateEphemeralResourceConfigRequest is the request Terraform sends when it +// wants to validate an ephemeral resource's configuration. +type ValidateEphemeralResourceConfigRequest struct { + // TypeName is the type of resource Terraform is validating. + TypeName string + + // Config is the configuration the user supplied for that ephemeral resource. See + // the documentation on `DynamicValue` for more information about + // safely accessing the configuration. + // + // The configuration is represented as a tftypes.Object, with each + // attribute and nested block getting its own key and value. + // + // This configuration may contain unknown values if a user uses + // interpolation or other functionality that would prevent Terraform + // from knowing the value at request time. Any attributes not directly + // set in the configuration will be null. + Config *DynamicValue +} + +// ValidateEphemeralResourceConfigResponse is the response from the provider about +// the validity of an ephemeral resource's configuration. +type ValidateEphemeralResourceConfigResponse struct { + // Diagnostics report errors or warnings related to the given + // configuration. Returning an empty slice indicates a successful + // validation with no warnings or errors generated. + Diagnostics []*Diagnostic +} + +// OpenEphemeralResourceRequest is the request Terraform sends when it +// wants to open an ephemeral resource. +type OpenEphemeralResourceRequest struct { + // TypeName is the type of resource Terraform is opening. + TypeName string + + // Config is the configuration the user supplied for that ephemeral resource. See + // the documentation on `DynamicValue` for more information about + // safely accessing the configuration. + // + // The configuration is represented as a tftypes.Object, with each + // attribute and nested block getting its own key and value. + // + // This configuration will always be fully known. If Config contains unknown values, + // Terraform will defer the OpenEphemeralResource RPC until apply. + Config *DynamicValue + + // ClientCapabilities defines optionally supported protocol features for the + // OpenEphemeralResource RPC, such as forward-compatible Terraform behavior changes. + ClientCapabilities *OpenEphemeralResourceClientCapabilities +} + +// OpenEphemeralResourceResponse is the response from the provider about the current +// state of the opened ephemeral resource. +type OpenEphemeralResourceResponse struct { + // Result is the provider's understanding of what the ephemeral resource's + // data is after it has been opened, represented as a `DynamicValue`. + // See the documentation for `DynamicValue` for information about + // safely creating the `DynamicValue`. + // + // Any attribute, whether computed or not, that has a known value in + // the Config in the OpenEphemeralResourceRequest must be preserved + // exactly as it was in Result. + // + // Any attribute in the Config in the OpenEphemeralResourceRequest + // that is unknown must take on a known value at this time. No unknown + // values are allowed in the Result. + // + // The result should be represented as a tftypes.Object, with each + // attribute and nested block getting its own key and value. + Result *DynamicValue + + // Diagnostics report errors or warnings related to opening the + // requested ephemeral resource. Returning an empty slice + // indicates a successful creation with no warnings or errors + // generated. + Diagnostics []*Diagnostic + + // Private should be set to any private data that the provider would like to be + // sent to the next Renew or Close call. + Private []byte + + // RenewAt indicates to Terraform that the ephemeral resource + // needs to be renewed at the specified time. Terraform will + // call the RenewEphemeralResource RPC when the specified time has passed. + RenewAt time.Time + + // Deferred is used to indicate to Terraform that the OpenEphemeralResource operation + // needs to be deferred for a reason. + Deferred *Deferred +} + +// RenewEphemeralResourceRequest is the request Terraform sends when it +// wants to renew an ephemeral resource. +type RenewEphemeralResourceRequest struct { + // TypeName is the type of resource Terraform is renewing. + TypeName string + + // Private is any provider-defined private data stored with the + // ephemeral resource from the most recent Open or Renew call. + // + // To ensure private data is preserved, copy any necessary data to + // the RenewEphemeralResourceResponse type Private field. + Private []byte +} + +// RenewEphemeralResourceResponse is the response from the provider after an ephemeral resource +// has been renewed. +type RenewEphemeralResourceResponse struct { + // Diagnostics report errors or warnings related to renewing the + // requested ephemeral resource. Returning an empty slice + // indicates a successful creation with no warnings or errors + // generated. + Diagnostics []*Diagnostic + + // Private should be set to any private data that the provider would like to be + // sent to the next Renew or Close call. + Private []byte + + // RenewAt indicates to Terraform that the ephemeral resource + // needs to be renewed at the specified time. Terraform will + // call the RenewEphemeralResource RPC when the specified time has passed. + RenewAt time.Time +} + +// CloseEphemeralResourceRequest is the request Terraform sends when it +// wants to close an ephemeral resource. +type CloseEphemeralResourceRequest struct { + // TypeName is the type of resource Terraform is closing. + TypeName string + + // Private is any provider-defined private data stored with the + // ephemeral resource from the most recent Open or Renew call. + Private []byte +} + +// CloseEphemeralResourceResponse is the response from the provider about +// the closed ephemeral resource. +type CloseEphemeralResourceResponse struct { + // Diagnostics report errors or warnings related to closing the + // requested ephemeral resource. Returning an empty slice + // indicates a successful creation with no warnings or errors + // generated. + Diagnostics []*Diagnostic +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/client_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/client_capabilities.go index 06238eac048e..96fa91a2f1b5 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/client_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/client_capabilities.go @@ -67,3 +67,15 @@ func ImportResourceStateClientCapabilities(in *tfplugin6.ClientCapabilities) *tf return resp } + +func OpenEphemeralResourceClientCapabilities(in *tfplugin6.ClientCapabilities) *tfprotov6.OpenEphemeralResourceClientCapabilities { + if in == nil { + return nil + } + + resp := &tfprotov6.OpenEphemeralResourceClientCapabilities{ + DeferralAllowed: in.DeferralAllowed, + } + + return resp +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/ephemeral_resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/ephemeral_resource.go new file mode 100644 index 000000000000..103aabd833f0 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/ephemeral_resource.go @@ -0,0 +1,54 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package fromproto + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" +) + +func ValidateEphemeralResourceConfigRequest(in *tfplugin6.ValidateEphemeralResourceConfig_Request) *tfprotov6.ValidateEphemeralResourceConfigRequest { + if in == nil { + return nil + } + + return &tfprotov6.ValidateEphemeralResourceConfigRequest{ + TypeName: in.TypeName, + Config: DynamicValue(in.Config), + } +} + +func OpenEphemeralResourceRequest(in *tfplugin6.OpenEphemeralResource_Request) *tfprotov6.OpenEphemeralResourceRequest { + if in == nil { + return nil + } + + return &tfprotov6.OpenEphemeralResourceRequest{ + TypeName: in.TypeName, + Config: DynamicValue(in.Config), + ClientCapabilities: OpenEphemeralResourceClientCapabilities(in.ClientCapabilities), + } +} + +func RenewEphemeralResourceRequest(in *tfplugin6.RenewEphemeralResource_Request) *tfprotov6.RenewEphemeralResourceRequest { + if in == nil { + return nil + } + + return &tfprotov6.RenewEphemeralResourceRequest{ + TypeName: in.TypeName, + Private: in.Private, + } +} + +func CloseEphemeralResourceRequest(in *tfplugin6.CloseEphemeralResource_Request) *tfprotov6.CloseEphemeralResourceRequest { + if in == nil { + return nil + } + + return &tfprotov6.CloseEphemeralResourceRequest{ + TypeName: in.TypeName, + Private: in.Private, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/client_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/client_capabilities.go index d8d5859f43ca..a8b7f06a2cc7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/client_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/client_capabilities.go @@ -79,3 +79,17 @@ func ImportResourceStateClientCapabilities(ctx context.Context, capabilities *tf logging.ProtocolTrace(ctx, "Announced client capabilities", responseFields) } + +// OpenEphemeralResourceClientCapabilities generates a TRACE "Announced client capabilities" log. +func OpenEphemeralResourceClientCapabilities(ctx context.Context, capabilities *tfprotov6.OpenEphemeralResourceClientCapabilities) { + if capabilities == nil { + logging.ProtocolTrace(ctx, "No announced client capabilities", map[string]interface{}{}) + return + } + + responseFields := map[string]interface{}{ + logging.KeyClientCapabilityDeferralAllowed: capabilities.DeferralAllowed, + } + + logging.ProtocolTrace(ctx, "Announced client capabilities", responseFields) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/server_capabilities.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/server_capabilities.go index f6aaf953d99b..74f9931aca91 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/server_capabilities.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/server_capabilities.go @@ -14,11 +14,13 @@ import ( func ServerCapabilities(ctx context.Context, capabilities *tfprotov6.ServerCapabilities) { responseFields := map[string]interface{}{ logging.KeyServerCapabilityGetProviderSchemaOptional: false, + logging.KeyServerCapabilityMoveResourceState: false, logging.KeyServerCapabilityPlanDestroy: false, } if capabilities != nil { responseFields[logging.KeyServerCapabilityGetProviderSchemaOptional] = capabilities.GetProviderSchemaOptional + responseFields[logging.KeyServerCapabilityMoveResourceState] = capabilities.MoveResourceState responseFields[logging.KeyServerCapabilityPlanDestroy] = capabilities.PlanDestroy } diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.pb.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.pb.go index e0f55a1f5428..3757af02a936 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.pb.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.pb.go @@ -1,9 +1,9 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 -// Terraform Plugin RPC protocol version 6.6 +// Terraform Plugin RPC protocol version 6.7 // -// This file defines version 6.6 of the RPC protocol. To implement a plugin +// This file defines version 6.7 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -22,8 +22,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.0 -// protoc v5.26.1 +// protoc-gen-go v1.35.1 +// protoc v5.27.3 // source: tfplugin6.proto package tfplugin6 @@ -31,6 +31,7 @@ package tfplugin6 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" ) @@ -322,11 +323,9 @@ type DynamicValue struct { func (x *DynamicValue) Reset() { *x = DynamicValue{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DynamicValue) String() string { @@ -337,7 +336,7 @@ func (*DynamicValue) ProtoMessage() {} func (x *DynamicValue) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -379,11 +378,9 @@ type Diagnostic struct { func (x *Diagnostic) Reset() { *x = Diagnostic{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Diagnostic) String() string { @@ -394,7 +391,7 @@ func (*Diagnostic) ProtoMessage() {} func (x *Diagnostic) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -450,11 +447,9 @@ type FunctionError struct { func (x *FunctionError) Reset() { *x = FunctionError{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FunctionError) String() string { @@ -465,7 +460,7 @@ func (*FunctionError) ProtoMessage() {} func (x *FunctionError) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -504,11 +499,9 @@ type AttributePath struct { func (x *AttributePath) Reset() { *x = AttributePath{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributePath) String() string { @@ -519,7 +512,7 @@ func (*AttributePath) ProtoMessage() {} func (x *AttributePath) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -549,11 +542,9 @@ type StopProvider struct { func (x *StopProvider) Reset() { *x = StopProvider{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StopProvider) String() string { @@ -564,7 +555,7 @@ func (*StopProvider) ProtoMessage() {} func (x *StopProvider) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -593,11 +584,9 @@ type RawState struct { func (x *RawState) Reset() { *x = RawState{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RawState) String() string { @@ -608,7 +597,7 @@ func (*RawState) ProtoMessage() {} func (x *RawState) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -653,11 +642,9 @@ type Schema struct { func (x *Schema) Reset() { *x = Schema{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema) String() string { @@ -668,7 +655,7 @@ func (*Schema) ProtoMessage() {} func (x *Schema) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -723,11 +710,9 @@ type Function struct { func (x *Function) Reset() { *x = Function{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Function) String() string { @@ -738,7 +723,7 @@ func (*Function) ProtoMessage() {} func (x *Function) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -826,11 +811,9 @@ type ServerCapabilities struct { func (x *ServerCapabilities) Reset() { *x = ServerCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServerCapabilities) String() string { @@ -841,7 +824,7 @@ func (*ServerCapabilities) ProtoMessage() {} func (x *ServerCapabilities) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -893,11 +876,9 @@ type ClientCapabilities struct { func (x *ClientCapabilities) Reset() { *x = ClientCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClientCapabilities) String() string { @@ -908,7 +889,7 @@ func (*ClientCapabilities) ProtoMessage() {} func (x *ClientCapabilities) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -942,11 +923,9 @@ type Deferred struct { func (x *Deferred) Reset() { *x = Deferred{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Deferred) String() string { @@ -957,7 +936,7 @@ func (*Deferred) ProtoMessage() {} func (x *Deferred) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -987,11 +966,9 @@ type GetMetadata struct { func (x *GetMetadata) Reset() { *x = GetMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata) String() string { @@ -1002,7 +979,7 @@ func (*GetMetadata) ProtoMessage() {} func (x *GetMetadata) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1025,11 +1002,9 @@ type GetProviderSchema struct { func (x *GetProviderSchema) Reset() { *x = GetProviderSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProviderSchema) String() string { @@ -1040,7 +1015,7 @@ func (*GetProviderSchema) ProtoMessage() {} func (x *GetProviderSchema) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1063,11 +1038,9 @@ type ValidateProviderConfig struct { func (x *ValidateProviderConfig) Reset() { *x = ValidateProviderConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateProviderConfig) String() string { @@ -1078,7 +1051,7 @@ func (*ValidateProviderConfig) ProtoMessage() {} func (x *ValidateProviderConfig) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1101,11 +1074,9 @@ type UpgradeResourceState struct { func (x *UpgradeResourceState) Reset() { *x = UpgradeResourceState{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpgradeResourceState) String() string { @@ -1116,7 +1087,7 @@ func (*UpgradeResourceState) ProtoMessage() {} func (x *UpgradeResourceState) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1139,11 +1110,9 @@ type ValidateResourceConfig struct { func (x *ValidateResourceConfig) Reset() { *x = ValidateResourceConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateResourceConfig) String() string { @@ -1154,7 +1123,7 @@ func (*ValidateResourceConfig) ProtoMessage() {} func (x *ValidateResourceConfig) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1177,11 +1146,9 @@ type ValidateDataResourceConfig struct { func (x *ValidateDataResourceConfig) Reset() { *x = ValidateDataResourceConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateDataResourceConfig) String() string { @@ -1192,7 +1159,7 @@ func (*ValidateDataResourceConfig) ProtoMessage() {} func (x *ValidateDataResourceConfig) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1215,11 +1182,9 @@ type ConfigureProvider struct { func (x *ConfigureProvider) Reset() { *x = ConfigureProvider{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigureProvider) String() string { @@ -1230,7 +1195,7 @@ func (*ConfigureProvider) ProtoMessage() {} func (x *ConfigureProvider) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1253,11 +1218,9 @@ type ReadResource struct { func (x *ReadResource) Reset() { *x = ReadResource{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadResource) String() string { @@ -1268,7 +1231,7 @@ func (*ReadResource) ProtoMessage() {} func (x *ReadResource) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1291,11 +1254,9 @@ type PlanResourceChange struct { func (x *PlanResourceChange) Reset() { *x = PlanResourceChange{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PlanResourceChange) String() string { @@ -1306,7 +1267,7 @@ func (*PlanResourceChange) ProtoMessage() {} func (x *PlanResourceChange) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1329,11 +1290,9 @@ type ApplyResourceChange struct { func (x *ApplyResourceChange) Reset() { *x = ApplyResourceChange{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyResourceChange) String() string { @@ -1344,7 +1303,7 @@ func (*ApplyResourceChange) ProtoMessage() {} func (x *ApplyResourceChange) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1367,11 +1326,9 @@ type ImportResourceState struct { func (x *ImportResourceState) Reset() { *x = ImportResourceState{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportResourceState) String() string { @@ -1382,7 +1339,7 @@ func (*ImportResourceState) ProtoMessage() {} func (x *ImportResourceState) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1405,11 +1362,9 @@ type MoveResourceState struct { func (x *MoveResourceState) Reset() { *x = MoveResourceState{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MoveResourceState) String() string { @@ -1420,7 +1375,7 @@ func (*MoveResourceState) ProtoMessage() {} func (x *MoveResourceState) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1443,11 +1398,9 @@ type ReadDataSource struct { func (x *ReadDataSource) Reset() { *x = ReadDataSource{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadDataSource) String() string { @@ -1458,7 +1411,7 @@ func (*ReadDataSource) ProtoMessage() {} func (x *ReadDataSource) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1481,11 +1434,9 @@ type GetFunctions struct { func (x *GetFunctions) Reset() { *x = GetFunctions{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFunctions) String() string { @@ -1496,7 +1447,7 @@ func (*GetFunctions) ProtoMessage() {} func (x *GetFunctions) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1519,11 +1470,9 @@ type CallFunction struct { func (x *CallFunction) Reset() { *x = CallFunction{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CallFunction) String() string { @@ -1534,7 +1483,7 @@ func (*CallFunction) ProtoMessage() {} func (x *CallFunction) ProtoReflect() protoreflect.Message { mi := &file_tfplugin6_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1549,6 +1498,150 @@ func (*CallFunction) Descriptor() ([]byte, []int) { return file_tfplugin6_proto_rawDescGZIP(), []int{25} } +type ValidateEphemeralResourceConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ValidateEphemeralResourceConfig) Reset() { + *x = ValidateEphemeralResourceConfig{} + mi := &file_tfplugin6_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ValidateEphemeralResourceConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateEphemeralResourceConfig) ProtoMessage() {} + +func (x *ValidateEphemeralResourceConfig) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateEphemeralResourceConfig.ProtoReflect.Descriptor instead. +func (*ValidateEphemeralResourceConfig) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{26} +} + +type OpenEphemeralResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenEphemeralResource) Reset() { + *x = OpenEphemeralResource{} + mi := &file_tfplugin6_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OpenEphemeralResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenEphemeralResource) ProtoMessage() {} + +func (x *OpenEphemeralResource) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenEphemeralResource.ProtoReflect.Descriptor instead. +func (*OpenEphemeralResource) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{27} +} + +type RenewEphemeralResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RenewEphemeralResource) Reset() { + *x = RenewEphemeralResource{} + mi := &file_tfplugin6_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RenewEphemeralResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenewEphemeralResource) ProtoMessage() {} + +func (x *RenewEphemeralResource) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RenewEphemeralResource.ProtoReflect.Descriptor instead. +func (*RenewEphemeralResource) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{28} +} + +type CloseEphemeralResource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseEphemeralResource) Reset() { + *x = CloseEphemeralResource{} + mi := &file_tfplugin6_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CloseEphemeralResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseEphemeralResource) ProtoMessage() {} + +func (x *CloseEphemeralResource) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseEphemeralResource.ProtoReflect.Descriptor instead. +func (*CloseEphemeralResource) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{29} +} + type AttributePath_Step struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1564,11 +1657,9 @@ type AttributePath_Step struct { func (x *AttributePath_Step) Reset() { *x = AttributePath_Step{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AttributePath_Step) String() string { @@ -1578,8 +1669,8 @@ func (x *AttributePath_Step) String() string { func (*AttributePath_Step) ProtoMessage() {} func (x *AttributePath_Step) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[30] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1656,11 +1747,9 @@ type StopProvider_Request struct { func (x *StopProvider_Request) Reset() { *x = StopProvider_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StopProvider_Request) String() string { @@ -1670,8 +1759,8 @@ func (x *StopProvider_Request) String() string { func (*StopProvider_Request) ProtoMessage() {} func (x *StopProvider_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[31] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1696,11 +1785,9 @@ type StopProvider_Response struct { func (x *StopProvider_Response) Reset() { *x = StopProvider_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StopProvider_Response) String() string { @@ -1710,8 +1797,8 @@ func (x *StopProvider_Response) String() string { func (*StopProvider_Response) ProtoMessage() {} func (x *StopProvider_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[32] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1748,11 +1835,9 @@ type Schema_Block struct { func (x *Schema_Block) Reset() { *x = Schema_Block{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema_Block) String() string { @@ -1762,8 +1847,8 @@ func (x *Schema_Block) String() string { func (*Schema_Block) ProtoMessage() {} func (x *Schema_Block) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[34] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1839,11 +1924,9 @@ type Schema_Attribute struct { func (x *Schema_Attribute) Reset() { *x = Schema_Attribute{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema_Attribute) String() string { @@ -1853,8 +1936,8 @@ func (x *Schema_Attribute) String() string { func (*Schema_Attribute) ProtoMessage() {} func (x *Schema_Attribute) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[35] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1953,11 +2036,9 @@ type Schema_NestedBlock struct { func (x *Schema_NestedBlock) Reset() { *x = Schema_NestedBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema_NestedBlock) String() string { @@ -1967,8 +2048,8 @@ func (x *Schema_NestedBlock) String() string { func (*Schema_NestedBlock) ProtoMessage() {} func (x *Schema_NestedBlock) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[36] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2036,11 +2117,9 @@ type Schema_Object struct { func (x *Schema_Object) Reset() { *x = Schema_Object{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Schema_Object) String() string { @@ -2050,8 +2129,8 @@ func (x *Schema_Object) String() string { func (*Schema_Object) ProtoMessage() {} func (x *Schema_Object) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[37] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2122,11 +2201,9 @@ type Function_Parameter struct { func (x *Function_Parameter) Reset() { *x = Function_Parameter{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Function_Parameter) String() string { @@ -2136,8 +2213,8 @@ func (x *Function_Parameter) String() string { func (*Function_Parameter) ProtoMessage() {} func (x *Function_Parameter) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[38] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2205,11 +2282,9 @@ type Function_Return struct { func (x *Function_Return) Reset() { *x = Function_Return{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Function_Return) String() string { @@ -2219,8 +2294,8 @@ func (x *Function_Return) String() string { func (*Function_Return) ProtoMessage() {} func (x *Function_Return) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[39] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2250,11 +2325,9 @@ type GetMetadata_Request struct { func (x *GetMetadata_Request) Reset() { *x = GetMetadata_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_Request) String() string { @@ -2264,8 +2337,8 @@ func (x *GetMetadata_Request) String() string { func (*GetMetadata_Request) ProtoMessage() {} func (x *GetMetadata_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[40] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2290,16 +2363,15 @@ type GetMetadata_Response struct { DataSources []*GetMetadata_DataSourceMetadata `protobuf:"bytes,3,rep,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"` Resources []*GetMetadata_ResourceMetadata `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"` // functions returns metadata for any functions. - Functions []*GetMetadata_FunctionMetadata `protobuf:"bytes,5,rep,name=functions,proto3" json:"functions,omitempty"` + Functions []*GetMetadata_FunctionMetadata `protobuf:"bytes,5,rep,name=functions,proto3" json:"functions,omitempty"` + EphemeralResources []*GetMetadata_EphemeralResourceMetadata `protobuf:"bytes,6,rep,name=ephemeral_resources,json=ephemeralResources,proto3" json:"ephemeral_resources,omitempty"` } func (x *GetMetadata_Response) Reset() { *x = GetMetadata_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_Response) String() string { @@ -2309,8 +2381,8 @@ func (x *GetMetadata_Response) String() string { func (*GetMetadata_Response) ProtoMessage() {} func (x *GetMetadata_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[41] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2360,6 +2432,13 @@ func (x *GetMetadata_Response) GetFunctions() []*GetMetadata_FunctionMetadata { return nil } +func (x *GetMetadata_Response) GetEphemeralResources() []*GetMetadata_EphemeralResourceMetadata { + if x != nil { + return x.EphemeralResources + } + return nil +} + type GetMetadata_FunctionMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2371,11 +2450,9 @@ type GetMetadata_FunctionMetadata struct { func (x *GetMetadata_FunctionMetadata) Reset() { *x = GetMetadata_FunctionMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_FunctionMetadata) String() string { @@ -2385,8 +2462,8 @@ func (x *GetMetadata_FunctionMetadata) String() string { func (*GetMetadata_FunctionMetadata) ProtoMessage() {} func (x *GetMetadata_FunctionMetadata) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[42] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2418,11 +2495,9 @@ type GetMetadata_DataSourceMetadata struct { func (x *GetMetadata_DataSourceMetadata) Reset() { *x = GetMetadata_DataSourceMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_DataSourceMetadata) String() string { @@ -2432,8 +2507,8 @@ func (x *GetMetadata_DataSourceMetadata) String() string { func (*GetMetadata_DataSourceMetadata) ProtoMessage() {} func (x *GetMetadata_DataSourceMetadata) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[43] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2465,11 +2540,9 @@ type GetMetadata_ResourceMetadata struct { func (x *GetMetadata_ResourceMetadata) Reset() { *x = GetMetadata_ResourceMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetMetadata_ResourceMetadata) String() string { @@ -2479,8 +2552,8 @@ func (x *GetMetadata_ResourceMetadata) String() string { func (*GetMetadata_ResourceMetadata) ProtoMessage() {} func (x *GetMetadata_ResourceMetadata) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[44] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2502,6 +2575,51 @@ func (x *GetMetadata_ResourceMetadata) GetTypeName() string { return "" } +type GetMetadata_EphemeralResourceMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` +} + +func (x *GetMetadata_EphemeralResourceMetadata) Reset() { + *x = GetMetadata_EphemeralResourceMetadata{} + mi := &file_tfplugin6_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMetadata_EphemeralResourceMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMetadata_EphemeralResourceMetadata) ProtoMessage() {} + +func (x *GetMetadata_EphemeralResourceMetadata) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[45] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMetadata_EphemeralResourceMetadata.ProtoReflect.Descriptor instead. +func (*GetMetadata_EphemeralResourceMetadata) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{11, 5} +} + +func (x *GetMetadata_EphemeralResourceMetadata) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + type GetProviderSchema_Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2510,11 +2628,9 @@ type GetProviderSchema_Request struct { func (x *GetProviderSchema_Request) Reset() { *x = GetProviderSchema_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProviderSchema_Request) String() string { @@ -2524,8 +2640,8 @@ func (x *GetProviderSchema_Request) String() string { func (*GetProviderSchema_Request) ProtoMessage() {} func (x *GetProviderSchema_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[46] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2552,16 +2668,15 @@ type GetProviderSchema_Response struct { ProviderMeta *Schema `protobuf:"bytes,5,opt,name=provider_meta,json=providerMeta,proto3" json:"provider_meta,omitempty"` ServerCapabilities *ServerCapabilities `protobuf:"bytes,6,opt,name=server_capabilities,json=serverCapabilities,proto3" json:"server_capabilities,omitempty"` // functions is a mapping of function names to definitions. - Functions map[string]*Function `protobuf:"bytes,7,rep,name=functions,proto3" json:"functions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Functions map[string]*Function `protobuf:"bytes,7,rep,name=functions,proto3" json:"functions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EphemeralResourceSchemas map[string]*Schema `protobuf:"bytes,8,rep,name=ephemeral_resource_schemas,json=ephemeralResourceSchemas,proto3" json:"ephemeral_resource_schemas,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *GetProviderSchema_Response) Reset() { *x = GetProviderSchema_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetProviderSchema_Response) String() string { @@ -2571,8 +2686,8 @@ func (x *GetProviderSchema_Response) String() string { func (*GetProviderSchema_Response) ProtoMessage() {} func (x *GetProviderSchema_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[47] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2636,6 +2751,13 @@ func (x *GetProviderSchema_Response) GetFunctions() map[string]*Function { return nil } +func (x *GetProviderSchema_Response) GetEphemeralResourceSchemas() map[string]*Schema { + if x != nil { + return x.EphemeralResourceSchemas + } + return nil +} + type ValidateProviderConfig_Request struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2646,11 +2768,9 @@ type ValidateProviderConfig_Request struct { func (x *ValidateProviderConfig_Request) Reset() { *x = ValidateProviderConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateProviderConfig_Request) String() string { @@ -2660,8 +2780,8 @@ func (x *ValidateProviderConfig_Request) String() string { func (*ValidateProviderConfig_Request) ProtoMessage() {} func (x *ValidateProviderConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[52] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2693,11 +2813,9 @@ type ValidateProviderConfig_Response struct { func (x *ValidateProviderConfig_Response) Reset() { *x = ValidateProviderConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateProviderConfig_Response) String() string { @@ -2707,8 +2825,8 @@ func (x *ValidateProviderConfig_Response) String() string { func (*ValidateProviderConfig_Response) ProtoMessage() {} func (x *ValidateProviderConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[53] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2757,11 +2875,9 @@ type UpgradeResourceState_Request struct { func (x *UpgradeResourceState_Request) Reset() { *x = UpgradeResourceState_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpgradeResourceState_Request) String() string { @@ -2771,8 +2887,8 @@ func (x *UpgradeResourceState_Request) String() string { func (*UpgradeResourceState_Request) ProtoMessage() {} func (x *UpgradeResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[54] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2825,11 +2941,9 @@ type UpgradeResourceState_Response struct { func (x *UpgradeResourceState_Response) Reset() { *x = UpgradeResourceState_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpgradeResourceState_Response) String() string { @@ -2839,8 +2953,8 @@ func (x *UpgradeResourceState_Response) String() string { func (*UpgradeResourceState_Response) ProtoMessage() {} func (x *UpgradeResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[55] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2880,11 +2994,9 @@ type ValidateResourceConfig_Request struct { func (x *ValidateResourceConfig_Request) Reset() { *x = ValidateResourceConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateResourceConfig_Request) String() string { @@ -2894,8 +3006,8 @@ func (x *ValidateResourceConfig_Request) String() string { func (*ValidateResourceConfig_Request) ProtoMessage() {} func (x *ValidateResourceConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[56] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2934,11 +3046,9 @@ type ValidateResourceConfig_Response struct { func (x *ValidateResourceConfig_Response) Reset() { *x = ValidateResourceConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateResourceConfig_Response) String() string { @@ -2948,8 +3058,8 @@ func (x *ValidateResourceConfig_Response) String() string { func (*ValidateResourceConfig_Response) ProtoMessage() {} func (x *ValidateResourceConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[57] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2982,11 +3092,9 @@ type ValidateDataResourceConfig_Request struct { func (x *ValidateDataResourceConfig_Request) Reset() { *x = ValidateDataResourceConfig_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateDataResourceConfig_Request) String() string { @@ -2996,8 +3104,8 @@ func (x *ValidateDataResourceConfig_Request) String() string { func (*ValidateDataResourceConfig_Request) ProtoMessage() {} func (x *ValidateDataResourceConfig_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[58] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3036,11 +3144,9 @@ type ValidateDataResourceConfig_Response struct { func (x *ValidateDataResourceConfig_Response) Reset() { *x = ValidateDataResourceConfig_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateDataResourceConfig_Response) String() string { @@ -3050,8 +3156,8 @@ func (x *ValidateDataResourceConfig_Response) String() string { func (*ValidateDataResourceConfig_Response) ProtoMessage() {} func (x *ValidateDataResourceConfig_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[59] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3085,11 +3191,9 @@ type ConfigureProvider_Request struct { func (x *ConfigureProvider_Request) Reset() { *x = ConfigureProvider_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigureProvider_Request) String() string { @@ -3099,8 +3203,8 @@ func (x *ConfigureProvider_Request) String() string { func (*ConfigureProvider_Request) ProtoMessage() {} func (x *ConfigureProvider_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[60] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3146,11 +3250,9 @@ type ConfigureProvider_Response struct { func (x *ConfigureProvider_Response) Reset() { *x = ConfigureProvider_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigureProvider_Response) String() string { @@ -3160,8 +3262,8 @@ func (x *ConfigureProvider_Response) String() string { func (*ConfigureProvider_Response) ProtoMessage() {} func (x *ConfigureProvider_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[61] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3205,11 +3307,9 @@ type ReadResource_Request struct { func (x *ReadResource_Request) Reset() { *x = ReadResource_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadResource_Request) String() string { @@ -3219,8 +3319,8 @@ func (x *ReadResource_Request) String() string { func (*ReadResource_Request) ProtoMessage() {} func (x *ReadResource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[62] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3285,11 +3385,9 @@ type ReadResource_Response struct { func (x *ReadResource_Response) Reset() { *x = ReadResource_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadResource_Response) String() string { @@ -3299,8 +3397,8 @@ func (x *ReadResource_Response) String() string { func (*ReadResource_Response) ProtoMessage() {} func (x *ReadResource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[63] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3359,11 +3457,9 @@ type PlanResourceChange_Request struct { func (x *PlanResourceChange_Request) Reset() { *x = PlanResourceChange_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PlanResourceChange_Request) String() string { @@ -3373,8 +3469,8 @@ func (x *PlanResourceChange_Request) String() string { func (*PlanResourceChange_Request) ProtoMessage() {} func (x *PlanResourceChange_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[64] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3466,11 +3562,9 @@ type PlanResourceChange_Response struct { func (x *PlanResourceChange_Response) Reset() { *x = PlanResourceChange_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PlanResourceChange_Response) String() string { @@ -3480,8 +3574,8 @@ func (x *PlanResourceChange_Response) String() string { func (*PlanResourceChange_Response) ProtoMessage() {} func (x *PlanResourceChange_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[65] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3553,11 +3647,9 @@ type ApplyResourceChange_Request struct { func (x *ApplyResourceChange_Request) Reset() { *x = ApplyResourceChange_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyResourceChange_Request) String() string { @@ -3567,8 +3659,8 @@ func (x *ApplyResourceChange_Request) String() string { func (*ApplyResourceChange_Request) ProtoMessage() {} func (x *ApplyResourceChange_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[66] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3649,11 +3741,9 @@ type ApplyResourceChange_Response struct { func (x *ApplyResourceChange_Response) Reset() { *x = ApplyResourceChange_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplyResourceChange_Response) String() string { @@ -3663,8 +3753,8 @@ func (x *ApplyResourceChange_Response) String() string { func (*ApplyResourceChange_Response) ProtoMessage() {} func (x *ApplyResourceChange_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[67] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3719,11 +3809,9 @@ type ImportResourceState_Request struct { func (x *ImportResourceState_Request) Reset() { *x = ImportResourceState_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportResourceState_Request) String() string { @@ -3733,8 +3821,8 @@ func (x *ImportResourceState_Request) String() string { func (*ImportResourceState_Request) ProtoMessage() {} func (x *ImportResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[68] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3782,11 +3870,9 @@ type ImportResourceState_ImportedResource struct { func (x *ImportResourceState_ImportedResource) Reset() { *x = ImportResourceState_ImportedResource{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportResourceState_ImportedResource) String() string { @@ -3796,8 +3882,8 @@ func (x *ImportResourceState_ImportedResource) String() string { func (*ImportResourceState_ImportedResource) ProtoMessage() {} func (x *ImportResourceState_ImportedResource) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[69] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3847,11 +3933,9 @@ type ImportResourceState_Response struct { func (x *ImportResourceState_Response) Reset() { *x = ImportResourceState_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportResourceState_Response) String() string { @@ -3861,8 +3945,8 @@ func (x *ImportResourceState_Response) String() string { func (*ImportResourceState_Response) ProtoMessage() {} func (x *ImportResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[70] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3922,11 +4006,9 @@ type MoveResourceState_Request struct { func (x *MoveResourceState_Request) Reset() { *x = MoveResourceState_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MoveResourceState_Request) String() string { @@ -3936,8 +4018,8 @@ func (x *MoveResourceState_Request) String() string { func (*MoveResourceState_Request) ProtoMessage() {} func (x *MoveResourceState_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[71] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4009,11 +4091,9 @@ type MoveResourceState_Response struct { func (x *MoveResourceState_Response) Reset() { *x = MoveResourceState_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MoveResourceState_Response) String() string { @@ -4023,8 +4103,8 @@ func (x *MoveResourceState_Response) String() string { func (*MoveResourceState_Response) ProtoMessage() {} func (x *MoveResourceState_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[72] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4073,11 +4153,9 @@ type ReadDataSource_Request struct { func (x *ReadDataSource_Request) Reset() { *x = ReadDataSource_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadDataSource_Request) String() string { @@ -4087,8 +4165,8 @@ func (x *ReadDataSource_Request) String() string { func (*ReadDataSource_Request) ProtoMessage() {} func (x *ReadDataSource_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[73] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4145,11 +4223,9 @@ type ReadDataSource_Response struct { func (x *ReadDataSource_Response) Reset() { *x = ReadDataSource_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadDataSource_Response) String() string { @@ -4159,8 +4235,8 @@ func (x *ReadDataSource_Response) String() string { func (*ReadDataSource_Response) ProtoMessage() {} func (x *ReadDataSource_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[74] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4204,11 +4280,9 @@ type GetFunctions_Request struct { func (x *GetFunctions_Request) Reset() { *x = GetFunctions_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFunctions_Request) String() string { @@ -4218,8 +4292,8 @@ func (x *GetFunctions_Request) String() string { func (*GetFunctions_Request) ProtoMessage() {} func (x *GetFunctions_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[75] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4247,11 +4321,9 @@ type GetFunctions_Response struct { func (x *GetFunctions_Response) Reset() { *x = GetFunctions_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetFunctions_Response) String() string { @@ -4261,8 +4333,8 @@ func (x *GetFunctions_Response) String() string { func (*GetFunctions_Response) ProtoMessage() {} func (x *GetFunctions_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[76] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4304,11 +4376,9 @@ type CallFunction_Request struct { func (x *CallFunction_Request) Reset() { *x = CallFunction_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CallFunction_Request) String() string { @@ -4318,8 +4388,8 @@ func (x *CallFunction_Request) String() string { func (*CallFunction_Request) ProtoMessage() {} func (x *CallFunction_Request) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[78] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4355,17 +4425,15 @@ type CallFunction_Response struct { // result is result value after running the function logic. Result *DynamicValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - // error is any errors from the function logic. + // error is any error from the function logic. Error *FunctionError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` } func (x *CallFunction_Response) Reset() { *x = CallFunction_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_tfplugin6_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_tfplugin6_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CallFunction_Response) String() string { @@ -4375,8 +4443,8 @@ func (x *CallFunction_Response) String() string { func (*CallFunction_Response) ProtoMessage() {} func (x *CallFunction_Response) ProtoReflect() protoreflect.Message { - mi := &file_tfplugin6_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_tfplugin6_proto_msgTypes[79] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4405,699 +4473,1277 @@ func (x *CallFunction_Response) GetError() *FunctionError { return nil } -var File_tfplugin6_proto protoreflect.FileDescriptor +type ValidateEphemeralResourceConfig_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var file_tfplugin6_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x09, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x22, 0x3c, 0x0a, 0x0c, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, - 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xe3, 0x01, 0x0a, 0x0a, 0x44, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x3a, 0x0a, 0x08, 0x73, 0x65, 0x76, - 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, - 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, - 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x22, - 0x2f, 0x0a, 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x49, - 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, - 0x22, 0x6b, 0x0a, 0x0d, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x30, 0x0a, 0x11, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x10, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x72, 0x67, 0x75, - 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xdc, 0x01, - 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, - 0x33, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05, 0x73, - 0x74, 0x65, 0x70, 0x73, 0x1a, 0x95, 0x01, 0x0a, 0x04, 0x53, 0x74, 0x65, 0x70, 0x12, 0x27, 0x0a, - 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a, 0x0f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, - 0x00, 0x52, 0x0d, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x74, - 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x3b, 0x0a, 0x0c, - 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x09, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x96, 0x01, 0x0a, 0x08, 0x52, 0x61, - 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x66, 0x6c, - 0x61, 0x74, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x66, - 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x1a, 0x3a, 0x0a, 0x0c, 0x46, 0x6c, 0x61, 0x74, 0x6d, 0x61, - 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0x95, 0x0a, 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, - 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0xa2, 0x02, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, - 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x0a, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, - 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x1a, 0xe4, 0x02, 0x0a, 0x09, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, - 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, - 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, - 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, - 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, - 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, - 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, - 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x1a, 0xa7, 0x02, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x2d, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x43, - 0x0a, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x4e, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, - 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x4d, 0x0a, - 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, - 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, - 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, - 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, - 0x04, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x05, 0x1a, 0x8b, 0x02, 0x0a, - 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, - 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x6d, 0x69, 0x6e, - 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1f, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, 0x65, - 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x6d, 0x61, - 0x78, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x42, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, - 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, - 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, - 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x22, 0x8e, 0x05, 0x0a, 0x08, 0x46, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4c, 0x0a, 0x12, 0x76, 0x61, 0x72, 0x69, 0x61, 0x64, - 0x69, 0x63, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, - 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x52, 0x11, 0x76, 0x61, 0x72, 0x69, 0x61, 0x64, 0x69, 0x63, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, - 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x52, 0x06, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, - 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0xf3, 0x01, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, - 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, 0x75, - 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x6c, 0x6c, 0x6f, 0x77, - 0x5f, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x6b, 0x6e, - 0x6f, 0x77, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x1a, 0x1c, 0x0a, - 0x06, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x12, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x72, - 0x6f, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x44, 0x65, - 0x73, 0x74, 0x72, 0x6f, 0x79, 0x12, 0x3f, 0x0a, 0x1c, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x67, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x11, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3f, 0x0a, 0x12, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, - 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x61, 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x61, 0x6c, - 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x22, 0xa2, 0x01, 0x0a, 0x08, 0x44, 0x65, 0x66, 0x65, - 0x72, 0x72, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, - 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x62, 0x0a, 0x06, 0x52, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x46, - 0x49, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, - 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, - 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x42, 0x53, - 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x52, 0x45, 0x51, 0x10, 0x03, 0x22, 0x96, 0x04, 0x0a, - 0x0b, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x09, 0x0a, 0x07, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xef, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, - 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x4c, 0x0a, - 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x61, 0x74, 0x61, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0b, - 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x09, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x12, 0x45, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x09, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x26, 0x0a, 0x10, 0x46, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x1a, 0x31, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x2f, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc7, 0x06, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xa6, 0x06, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x12, 0x65, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x6c, 0x0a, 0x13, 0x64, 0x61, 0x74, - 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x12, 0x36, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, - 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x55, 0x0a, 0x14, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x51, 0x0a, 0x0e, - 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x99, 0x01, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, - 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x90, 0x02, 0x0a, 0x14, - 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x1a, 0x72, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x08, - 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, - 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, - 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x64, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb6, - 0x01, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, - 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Config *DynamicValue `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` +} + +func (x *ValidateEphemeralResourceConfig_Request) Reset() { + *x = ValidateEphemeralResourceConfig_Request{} + mi := &file_tfplugin6_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ValidateEphemeralResourceConfig_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateEphemeralResourceConfig_Request) ProtoMessage() {} + +func (x *ValidateEphemeralResourceConfig_Request) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[80] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateEphemeralResourceConfig_Request.ProtoReflect.Descriptor instead. +func (*ValidateEphemeralResourceConfig_Request) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{26, 0} +} + +func (x *ValidateEphemeralResourceConfig_Request) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + +func (x *ValidateEphemeralResourceConfig_Request) GetConfig() *DynamicValue { + if x != nil { + return x.Config + } + return nil +} + +type ValidateEphemeralResourceConfig_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *ValidateEphemeralResourceConfig_Response) Reset() { + *x = ValidateEphemeralResourceConfig_Response{} + mi := &file_tfplugin6_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ValidateEphemeralResourceConfig_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateEphemeralResourceConfig_Response) ProtoMessage() {} + +func (x *ValidateEphemeralResourceConfig_Response) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[81] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateEphemeralResourceConfig_Response.ProtoReflect.Descriptor instead. +func (*ValidateEphemeralResourceConfig_Response) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{26, 1} +} + +func (x *ValidateEphemeralResourceConfig_Response) GetDiagnostics() []*Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type OpenEphemeralResource_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Config *DynamicValue `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + ClientCapabilities *ClientCapabilities `protobuf:"bytes,3,opt,name=client_capabilities,json=clientCapabilities,proto3" json:"client_capabilities,omitempty"` +} + +func (x *OpenEphemeralResource_Request) Reset() { + *x = OpenEphemeralResource_Request{} + mi := &file_tfplugin6_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OpenEphemeralResource_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenEphemeralResource_Request) ProtoMessage() {} + +func (x *OpenEphemeralResource_Request) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[82] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenEphemeralResource_Request.ProtoReflect.Descriptor instead. +func (*OpenEphemeralResource_Request) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{27, 0} +} + +func (x *OpenEphemeralResource_Request) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + +func (x *OpenEphemeralResource_Request) GetConfig() *DynamicValue { + if x != nil { + return x.Config + } + return nil +} + +func (x *OpenEphemeralResource_Request) GetClientCapabilities() *ClientCapabilities { + if x != nil { + return x.ClientCapabilities + } + return nil +} + +type OpenEphemeralResource_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` + RenewAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=renew_at,json=renewAt,proto3,oneof" json:"renew_at,omitempty"` + Result *DynamicValue `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` + Private []byte `protobuf:"bytes,4,opt,name=private,proto3,oneof" json:"private,omitempty"` + // deferred is set if the provider is deferring the change. If set the caller + // needs to handle the deferral. + Deferred *Deferred `protobuf:"bytes,5,opt,name=deferred,proto3" json:"deferred,omitempty"` +} + +func (x *OpenEphemeralResource_Response) Reset() { + *x = OpenEphemeralResource_Response{} + mi := &file_tfplugin6_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OpenEphemeralResource_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenEphemeralResource_Response) ProtoMessage() {} + +func (x *OpenEphemeralResource_Response) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[83] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenEphemeralResource_Response.ProtoReflect.Descriptor instead. +func (*OpenEphemeralResource_Response) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{27, 1} +} + +func (x *OpenEphemeralResource_Response) GetDiagnostics() []*Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +func (x *OpenEphemeralResource_Response) GetRenewAt() *timestamppb.Timestamp { + if x != nil { + return x.RenewAt + } + return nil +} + +func (x *OpenEphemeralResource_Response) GetResult() *DynamicValue { + if x != nil { + return x.Result + } + return nil +} + +func (x *OpenEphemeralResource_Response) GetPrivate() []byte { + if x != nil { + return x.Private + } + return nil +} + +func (x *OpenEphemeralResource_Response) GetDeferred() *Deferred { + if x != nil { + return x.Deferred + } + return nil +} + +type RenewEphemeralResource_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Private []byte `protobuf:"bytes,2,opt,name=private,proto3,oneof" json:"private,omitempty"` +} + +func (x *RenewEphemeralResource_Request) Reset() { + *x = RenewEphemeralResource_Request{} + mi := &file_tfplugin6_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RenewEphemeralResource_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenewEphemeralResource_Request) ProtoMessage() {} + +func (x *RenewEphemeralResource_Request) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[84] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RenewEphemeralResource_Request.ProtoReflect.Descriptor instead. +func (*RenewEphemeralResource_Request) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{28, 0} +} + +func (x *RenewEphemeralResource_Request) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + +func (x *RenewEphemeralResource_Request) GetPrivate() []byte { + if x != nil { + return x.Private + } + return nil +} + +type RenewEphemeralResource_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` + RenewAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=renew_at,json=renewAt,proto3,oneof" json:"renew_at,omitempty"` + Private []byte `protobuf:"bytes,3,opt,name=private,proto3,oneof" json:"private,omitempty"` +} + +func (x *RenewEphemeralResource_Response) Reset() { + *x = RenewEphemeralResource_Response{} + mi := &file_tfplugin6_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RenewEphemeralResource_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenewEphemeralResource_Response) ProtoMessage() {} + +func (x *RenewEphemeralResource_Response) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[85] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RenewEphemeralResource_Response.ProtoReflect.Descriptor instead. +func (*RenewEphemeralResource_Response) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{28, 1} +} + +func (x *RenewEphemeralResource_Response) GetDiagnostics() []*Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +func (x *RenewEphemeralResource_Response) GetRenewAt() *timestamppb.Timestamp { + if x != nil { + return x.RenewAt + } + return nil +} + +func (x *RenewEphemeralResource_Response) GetPrivate() []byte { + if x != nil { + return x.Private + } + return nil +} + +type CloseEphemeralResource_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Private []byte `protobuf:"bytes,2,opt,name=private,proto3,oneof" json:"private,omitempty"` +} + +func (x *CloseEphemeralResource_Request) Reset() { + *x = CloseEphemeralResource_Request{} + mi := &file_tfplugin6_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CloseEphemeralResource_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseEphemeralResource_Request) ProtoMessage() {} + +func (x *CloseEphemeralResource_Request) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[86] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseEphemeralResource_Request.ProtoReflect.Descriptor instead. +func (*CloseEphemeralResource_Request) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{29, 0} +} + +func (x *CloseEphemeralResource_Request) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + +func (x *CloseEphemeralResource_Request) GetPrivate() []byte { + if x != nil { + return x.Private + } + return nil +} + +type CloseEphemeralResource_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *CloseEphemeralResource_Response) Reset() { + *x = CloseEphemeralResource_Response{} + mi := &file_tfplugin6_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CloseEphemeralResource_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseEphemeralResource_Response) ProtoMessage() {} + +func (x *CloseEphemeralResource_Response) ProtoReflect() protoreflect.Message { + mi := &file_tfplugin6_proto_msgTypes[87] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseEphemeralResource_Response.ProtoReflect.Descriptor instead. +func (*CloseEphemeralResource_Response) Descriptor() ([]byte, []int) { + return file_tfplugin6_proto_rawDescGZIP(), []int{29, 1} +} + +func (x *CloseEphemeralResource_Response) GetDiagnostics() []*Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +var File_tfplugin6_proto protoreflect.FileDescriptor + +var file_tfplugin6_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, + 0x0c, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xe3, 0x01, 0x0a, 0x0a, + 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x3a, 0x0a, 0x08, 0x73, 0x65, + 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, + 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, + 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x22, 0x2f, 0x0a, 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, + 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, + 0x02, 0x22, 0x6b, 0x0a, 0x0d, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x30, 0x0a, 0x11, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x48, 0x00, 0x52, 0x10, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x72, 0x67, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x66, 0x75, 0x6e, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xdc, + 0x01, 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x33, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05, + 0x73, 0x74, 0x65, 0x70, 0x73, 0x1a, 0x95, 0x01, 0x0a, 0x04, 0x53, 0x74, 0x65, 0x70, 0x12, 0x27, + 0x0a, 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x65, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, + 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a, 0x0f, 0x65, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x0d, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, + 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x3b, 0x0a, + 0x0c, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x09, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x96, 0x01, 0x0a, 0x08, 0x52, + 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x07, 0x66, + 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, + 0x66, 0x6c, 0x61, 0x74, 0x6d, 0x61, 0x70, 0x1a, 0x3a, 0x0a, 0x0c, 0x46, 0x6c, 0x61, 0x74, 0x6d, + 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x95, 0x0a, 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0xa2, 0x02, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0a, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x0a, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x0a, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x1a, 0xe4, 0x02, 0x0a, + 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, + 0x65, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, + 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, + 0x69, 0x6e, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x1a, 0xa7, 0x02, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x2d, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x43, 0x0a, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, + 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, + 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x4d, + 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, + 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, + 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, + 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, + 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x05, 0x1a, 0x8b, 0x02, + 0x0a, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3b, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, + 0x73, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, + 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x6d, 0x69, + 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1f, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, + 0x65, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x6d, + 0x61, 0x78, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x42, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, + 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, + 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, + 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x22, 0x8e, 0x05, 0x0a, 0x08, + 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x4c, 0x0a, 0x12, 0x76, 0x61, 0x72, 0x69, 0x61, + 0x64, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x52, 0x11, 0x76, 0x61, 0x72, 0x69, 0x61, 0x64, 0x69, 0x63, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x52, 0x06, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, + 0x6d, 0x61, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, + 0x61, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0xf3, 0x01, 0x0a, 0x09, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, + 0x0a, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, + 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x6c, 0x6c, 0x6f, + 0x77, 0x5f, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x6b, + 0x6e, 0x6f, 0x77, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x10, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x69, 0x6e, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x0f, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x1a, 0x1c, + 0x0a, 0x06, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa8, 0x01, 0x0a, + 0x12, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x74, + 0x72, 0x6f, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x44, + 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x12, 0x3f, 0x0a, 0x1c, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x67, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x6f, 0x76, 0x65, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3f, 0x0a, 0x12, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x29, 0x0a, + 0x10, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x61, 0x6c, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x61, + 0x6c, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x22, 0xa2, 0x01, 0x0a, 0x08, 0x44, 0x65, 0x66, + 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x62, 0x0a, 0x06, 0x52, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, + 0x46, 0x49, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, + 0x17, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, + 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x42, + 0x53, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x52, 0x45, 0x51, 0x10, 0x03, 0x22, 0xb3, 0x05, + 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x09, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xd2, 0x03, 0x0a, 0x08, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, + 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x4c, + 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x44, 0x61, 0x74, + 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x09, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x12, 0x45, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x46, + 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x61, 0x0a, 0x13, 0x65, 0x70, + 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x12, 0x65, 0x70, 0x68, 0x65, 0x6d, + 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x26, 0x0a, + 0x10, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x31, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x2f, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x38, 0x0a, 0x19, 0x45, 0x70, 0x68, + 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0xab, 0x08, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x8a, 0x08, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x12, 0x65, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x6c, 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x36, + 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x81, 0x01, 0x0a, 0x1a, 0x65, + 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x43, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x18, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x1a, 0x55, + 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x57, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x51, + 0x0a, 0x0e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, 0x75, + 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x5e, 0x0a, 0x1d, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x27, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x99, 0x01, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x3a, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x90, 0x02, + 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x72, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, - 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x73, 0x22, 0x92, 0x02, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0xb7, 0x01, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x08, 0x72, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x08, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, + 0x64, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, + 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, + 0x22, 0xb6, 0x01, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, - 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xe4, 0x03, 0x0a, 0x0c, 0x52, 0x65, - 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x8c, 0x02, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, - 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0xc4, 0x01, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, - 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, - 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x65, - 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, - 0x22, 0xf3, 0x05, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x8b, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x1a, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, + 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x92, 0x02, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0xb7, 0x01, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, - 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x70, 0x72, - 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x70, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6f, 0x72, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, - 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0xce, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x70, - 0x6c, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x50, 0x61, 0x74, 0x68, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x52, 0x65, - 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, - 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, - 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, - 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, - 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, - 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, - 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0x92, 0x04, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x79, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xb6, - 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, - 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, - 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, + 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, + 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xe4, 0x03, 0x0a, 0x0c, + 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x8c, 0x02, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, + 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, + 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0xc4, 0x01, 0x0a, 0x08, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, + 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, + 0x65, 0x64, 0x22, 0xf3, 0x05, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x8b, 0x03, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x12, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, - 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, + 0x65, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x4e, 0x65, 0x77, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, 0xc1, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, - 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, - 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0xef, 0x03, 0x0a, 0x13, - 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x1a, 0x86, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4e, 0x0a, 0x13, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x78, 0x0a, 0x10, - 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0xd4, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, 0x70, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, - 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, - 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x0a, 0x08, - 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0xe7, 0x03, - 0x0a, 0x11, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x1a, 0xa8, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x36, 0x0a, 0x17, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x15, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x13, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, - 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0xa6, - 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x9e, 0x03, 0x0a, 0x0e, 0x52, 0x65, 0x61, 0x64, - 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xe5, 0x01, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, + 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0xce, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, - 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x1a, 0xa3, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, - 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x43, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x72, + 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, + 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, + 0x65, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, + 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, + 0x72, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, - 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0x81, 0x02, 0x0a, 0x0c, 0x47, 0x65, 0x74, - 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0xe5, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x4d, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, - 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0x92, 0x04, 0x0a, 0x13, 0x41, 0x70, 0x70, + 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x1a, 0xb6, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x70, 0x6c, 0x61, + 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0d, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x1a, 0xc1, 0x01, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, + 0x2c, 0x0a, 0x12, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x6c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x54, 0x79, 0x70, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x22, 0xef, 0x03, + 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x86, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4e, + 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, + 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x78, + 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0xd4, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2f, + 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x65, 0x66, + 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, + 0xe7, 0x03, 0x0a, 0x11, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0xa8, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x15, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x13, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x61, 0x77, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x28, 0x0a, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x1a, 0xa6, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, + 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x9e, 0x03, 0x0a, 0x0e, 0x52, 0x65, + 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xe5, 0x01, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, + 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x4d, 0x65, 0x74, 0x61, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, + 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x69, 0x65, 0x73, 0x1a, 0xa3, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x1a, 0x51, 0x0a, 0x0e, 0x46, 0x75, 0x6e, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, 0x01, 0x0a, - 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x54, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x09, - 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x1a, 0x6b, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2f, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x2a, 0x25, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x09, - 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x41, 0x52, - 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, 0xa4, 0x0c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x1e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, 0x66, + 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, + 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0x81, 0x02, 0x0a, 0x0c, 0x47, + 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x09, 0x0a, 0x07, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xe5, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, + 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x1a, 0x51, 0x0a, 0x0e, 0x46, + 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, + 0x01, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, + 0x54, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, + 0x0a, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x61, 0x72, 0x67, 0x75, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x6b, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x46, 0x75, + 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x22, 0xbf, 0x01, 0x0a, 0x1f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x45, + 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, + 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, + 0x43, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x22, 0xdd, 0x03, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x70, 0x68, + 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xa7, + 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, + 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, + 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, + 0x74, 0x69, 0x65, 0x73, 0x52, 0x12, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x99, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x3a, + 0x0a, 0x08, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x07, + 0x72, 0x65, 0x6e, 0x65, 0x77, 0x41, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1d, 0x0a, 0x07, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x01, 0x52, 0x07, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x08, 0x64, 0x65, + 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, + 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x5f, + 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x22, 0xa5, 0x02, 0x0a, 0x16, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x45, 0x70, + 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, + 0x51, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, + 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, + 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x1a, 0xb7, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x3a, 0x0a, 0x08, 0x72, 0x65, 0x6e, 0x65, + 0x77, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x07, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x41, + 0x74, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x01, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x5f, 0x61, 0x74, + 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0xb0, 0x01, 0x0a, + 0x16, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x51, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0a, + 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x1a, 0x43, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x66, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2a, + 0x25, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x09, 0x0a, + 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x41, 0x52, 0x4b, + 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, 0x81, 0x10, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x1e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, + 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, + 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x16, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, - 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, - 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x60, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, - 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, - 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x50, - 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x4d, 0x6f, - 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x4d, 0x6f, 0x76, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x14, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x27, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0e, - 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, - 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, - 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, - 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x36, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x36, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, - 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x53, - 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, - 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x47, - 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, - 0x68, 0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x2d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x66, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x76, 0x36, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x66, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x60, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x12, 0x24, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, + 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, + 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x50, 0x6c, + 0x61, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x13, 0x41, 0x70, 0x70, + 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x70, 0x70, + 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x66, 0x0a, 0x13, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x27, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x49, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x11, 0x4d, 0x6f, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x24, + 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0e, 0x52, + 0x65, 0x61, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x2e, + 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x44, 0x61, + 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x61, + 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x1f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x45, 0x70, 0x68, + 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x74, + 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x6c, 0x0a, 0x15, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, + 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x28, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x70, 0x68, 0x65, 0x6d, + 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x6f, 0x0a, 0x16, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, + 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x74, 0x66, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x45, 0x70, 0x68, 0x65, 0x6d, + 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6f, 0x0a, 0x16, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, + 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x29, 0x2e, 0x74, 0x66, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x45, 0x70, 0x68, 0x65, + 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, 0x65, + 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x47, + 0x65, 0x74, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x36, + 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x36, 0x2e, 0x43, 0x61, 0x6c, 0x6c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x53, 0x74, 0x6f, 0x70, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x66, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x36, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x47, 0x5a, 0x45, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x63, 0x6f, + 0x72, 0x70, 0x2f, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x2d, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x66, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x76, 0x36, + 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x66, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x36, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -5113,214 +5759,251 @@ func file_tfplugin6_proto_rawDescGZIP() []byte { } var file_tfplugin6_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_tfplugin6_proto_msgTypes = make([]protoimpl.MessageInfo, 74) -var file_tfplugin6_proto_goTypes = []interface{}{ - (StringKind)(0), // 0: tfplugin6.StringKind - (Diagnostic_Severity)(0), // 1: tfplugin6.Diagnostic.Severity - (Schema_NestedBlock_NestingMode)(0), // 2: tfplugin6.Schema.NestedBlock.NestingMode - (Schema_Object_NestingMode)(0), // 3: tfplugin6.Schema.Object.NestingMode - (Deferred_Reason)(0), // 4: tfplugin6.Deferred.Reason - (*DynamicValue)(nil), // 5: tfplugin6.DynamicValue - (*Diagnostic)(nil), // 6: tfplugin6.Diagnostic - (*FunctionError)(nil), // 7: tfplugin6.FunctionError - (*AttributePath)(nil), // 8: tfplugin6.AttributePath - (*StopProvider)(nil), // 9: tfplugin6.StopProvider - (*RawState)(nil), // 10: tfplugin6.RawState - (*Schema)(nil), // 11: tfplugin6.Schema - (*Function)(nil), // 12: tfplugin6.Function - (*ServerCapabilities)(nil), // 13: tfplugin6.ServerCapabilities - (*ClientCapabilities)(nil), // 14: tfplugin6.ClientCapabilities - (*Deferred)(nil), // 15: tfplugin6.Deferred - (*GetMetadata)(nil), // 16: tfplugin6.GetMetadata - (*GetProviderSchema)(nil), // 17: tfplugin6.GetProviderSchema - (*ValidateProviderConfig)(nil), // 18: tfplugin6.ValidateProviderConfig - (*UpgradeResourceState)(nil), // 19: tfplugin6.UpgradeResourceState - (*ValidateResourceConfig)(nil), // 20: tfplugin6.ValidateResourceConfig - (*ValidateDataResourceConfig)(nil), // 21: tfplugin6.ValidateDataResourceConfig - (*ConfigureProvider)(nil), // 22: tfplugin6.ConfigureProvider - (*ReadResource)(nil), // 23: tfplugin6.ReadResource - (*PlanResourceChange)(nil), // 24: tfplugin6.PlanResourceChange - (*ApplyResourceChange)(nil), // 25: tfplugin6.ApplyResourceChange - (*ImportResourceState)(nil), // 26: tfplugin6.ImportResourceState - (*MoveResourceState)(nil), // 27: tfplugin6.MoveResourceState - (*ReadDataSource)(nil), // 28: tfplugin6.ReadDataSource - (*GetFunctions)(nil), // 29: tfplugin6.GetFunctions - (*CallFunction)(nil), // 30: tfplugin6.CallFunction - (*AttributePath_Step)(nil), // 31: tfplugin6.AttributePath.Step - (*StopProvider_Request)(nil), // 32: tfplugin6.StopProvider.Request - (*StopProvider_Response)(nil), // 33: tfplugin6.StopProvider.Response - nil, // 34: tfplugin6.RawState.FlatmapEntry - (*Schema_Block)(nil), // 35: tfplugin6.Schema.Block - (*Schema_Attribute)(nil), // 36: tfplugin6.Schema.Attribute - (*Schema_NestedBlock)(nil), // 37: tfplugin6.Schema.NestedBlock - (*Schema_Object)(nil), // 38: tfplugin6.Schema.Object - (*Function_Parameter)(nil), // 39: tfplugin6.Function.Parameter - (*Function_Return)(nil), // 40: tfplugin6.Function.Return - (*GetMetadata_Request)(nil), // 41: tfplugin6.GetMetadata.Request - (*GetMetadata_Response)(nil), // 42: tfplugin6.GetMetadata.Response - (*GetMetadata_FunctionMetadata)(nil), // 43: tfplugin6.GetMetadata.FunctionMetadata - (*GetMetadata_DataSourceMetadata)(nil), // 44: tfplugin6.GetMetadata.DataSourceMetadata - (*GetMetadata_ResourceMetadata)(nil), // 45: tfplugin6.GetMetadata.ResourceMetadata - (*GetProviderSchema_Request)(nil), // 46: tfplugin6.GetProviderSchema.Request - (*GetProviderSchema_Response)(nil), // 47: tfplugin6.GetProviderSchema.Response - nil, // 48: tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry - nil, // 49: tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry - nil, // 50: tfplugin6.GetProviderSchema.Response.FunctionsEntry - (*ValidateProviderConfig_Request)(nil), // 51: tfplugin6.ValidateProviderConfig.Request - (*ValidateProviderConfig_Response)(nil), // 52: tfplugin6.ValidateProviderConfig.Response - (*UpgradeResourceState_Request)(nil), // 53: tfplugin6.UpgradeResourceState.Request - (*UpgradeResourceState_Response)(nil), // 54: tfplugin6.UpgradeResourceState.Response - (*ValidateResourceConfig_Request)(nil), // 55: tfplugin6.ValidateResourceConfig.Request - (*ValidateResourceConfig_Response)(nil), // 56: tfplugin6.ValidateResourceConfig.Response - (*ValidateDataResourceConfig_Request)(nil), // 57: tfplugin6.ValidateDataResourceConfig.Request - (*ValidateDataResourceConfig_Response)(nil), // 58: tfplugin6.ValidateDataResourceConfig.Response - (*ConfigureProvider_Request)(nil), // 59: tfplugin6.ConfigureProvider.Request - (*ConfigureProvider_Response)(nil), // 60: tfplugin6.ConfigureProvider.Response - (*ReadResource_Request)(nil), // 61: tfplugin6.ReadResource.Request - (*ReadResource_Response)(nil), // 62: tfplugin6.ReadResource.Response - (*PlanResourceChange_Request)(nil), // 63: tfplugin6.PlanResourceChange.Request - (*PlanResourceChange_Response)(nil), // 64: tfplugin6.PlanResourceChange.Response - (*ApplyResourceChange_Request)(nil), // 65: tfplugin6.ApplyResourceChange.Request - (*ApplyResourceChange_Response)(nil), // 66: tfplugin6.ApplyResourceChange.Response - (*ImportResourceState_Request)(nil), // 67: tfplugin6.ImportResourceState.Request - (*ImportResourceState_ImportedResource)(nil), // 68: tfplugin6.ImportResourceState.ImportedResource - (*ImportResourceState_Response)(nil), // 69: tfplugin6.ImportResourceState.Response - (*MoveResourceState_Request)(nil), // 70: tfplugin6.MoveResourceState.Request - (*MoveResourceState_Response)(nil), // 71: tfplugin6.MoveResourceState.Response - (*ReadDataSource_Request)(nil), // 72: tfplugin6.ReadDataSource.Request - (*ReadDataSource_Response)(nil), // 73: tfplugin6.ReadDataSource.Response - (*GetFunctions_Request)(nil), // 74: tfplugin6.GetFunctions.Request - (*GetFunctions_Response)(nil), // 75: tfplugin6.GetFunctions.Response - nil, // 76: tfplugin6.GetFunctions.Response.FunctionsEntry - (*CallFunction_Request)(nil), // 77: tfplugin6.CallFunction.Request - (*CallFunction_Response)(nil), // 78: tfplugin6.CallFunction.Response +var file_tfplugin6_proto_msgTypes = make([]protoimpl.MessageInfo, 88) +var file_tfplugin6_proto_goTypes = []any{ + (StringKind)(0), // 0: tfplugin6.StringKind + (Diagnostic_Severity)(0), // 1: tfplugin6.Diagnostic.Severity + (Schema_NestedBlock_NestingMode)(0), // 2: tfplugin6.Schema.NestedBlock.NestingMode + (Schema_Object_NestingMode)(0), // 3: tfplugin6.Schema.Object.NestingMode + (Deferred_Reason)(0), // 4: tfplugin6.Deferred.Reason + (*DynamicValue)(nil), // 5: tfplugin6.DynamicValue + (*Diagnostic)(nil), // 6: tfplugin6.Diagnostic + (*FunctionError)(nil), // 7: tfplugin6.FunctionError + (*AttributePath)(nil), // 8: tfplugin6.AttributePath + (*StopProvider)(nil), // 9: tfplugin6.StopProvider + (*RawState)(nil), // 10: tfplugin6.RawState + (*Schema)(nil), // 11: tfplugin6.Schema + (*Function)(nil), // 12: tfplugin6.Function + (*ServerCapabilities)(nil), // 13: tfplugin6.ServerCapabilities + (*ClientCapabilities)(nil), // 14: tfplugin6.ClientCapabilities + (*Deferred)(nil), // 15: tfplugin6.Deferred + (*GetMetadata)(nil), // 16: tfplugin6.GetMetadata + (*GetProviderSchema)(nil), // 17: tfplugin6.GetProviderSchema + (*ValidateProviderConfig)(nil), // 18: tfplugin6.ValidateProviderConfig + (*UpgradeResourceState)(nil), // 19: tfplugin6.UpgradeResourceState + (*ValidateResourceConfig)(nil), // 20: tfplugin6.ValidateResourceConfig + (*ValidateDataResourceConfig)(nil), // 21: tfplugin6.ValidateDataResourceConfig + (*ConfigureProvider)(nil), // 22: tfplugin6.ConfigureProvider + (*ReadResource)(nil), // 23: tfplugin6.ReadResource + (*PlanResourceChange)(nil), // 24: tfplugin6.PlanResourceChange + (*ApplyResourceChange)(nil), // 25: tfplugin6.ApplyResourceChange + (*ImportResourceState)(nil), // 26: tfplugin6.ImportResourceState + (*MoveResourceState)(nil), // 27: tfplugin6.MoveResourceState + (*ReadDataSource)(nil), // 28: tfplugin6.ReadDataSource + (*GetFunctions)(nil), // 29: tfplugin6.GetFunctions + (*CallFunction)(nil), // 30: tfplugin6.CallFunction + (*ValidateEphemeralResourceConfig)(nil), // 31: tfplugin6.ValidateEphemeralResourceConfig + (*OpenEphemeralResource)(nil), // 32: tfplugin6.OpenEphemeralResource + (*RenewEphemeralResource)(nil), // 33: tfplugin6.RenewEphemeralResource + (*CloseEphemeralResource)(nil), // 34: tfplugin6.CloseEphemeralResource + (*AttributePath_Step)(nil), // 35: tfplugin6.AttributePath.Step + (*StopProvider_Request)(nil), // 36: tfplugin6.StopProvider.Request + (*StopProvider_Response)(nil), // 37: tfplugin6.StopProvider.Response + nil, // 38: tfplugin6.RawState.FlatmapEntry + (*Schema_Block)(nil), // 39: tfplugin6.Schema.Block + (*Schema_Attribute)(nil), // 40: tfplugin6.Schema.Attribute + (*Schema_NestedBlock)(nil), // 41: tfplugin6.Schema.NestedBlock + (*Schema_Object)(nil), // 42: tfplugin6.Schema.Object + (*Function_Parameter)(nil), // 43: tfplugin6.Function.Parameter + (*Function_Return)(nil), // 44: tfplugin6.Function.Return + (*GetMetadata_Request)(nil), // 45: tfplugin6.GetMetadata.Request + (*GetMetadata_Response)(nil), // 46: tfplugin6.GetMetadata.Response + (*GetMetadata_FunctionMetadata)(nil), // 47: tfplugin6.GetMetadata.FunctionMetadata + (*GetMetadata_DataSourceMetadata)(nil), // 48: tfplugin6.GetMetadata.DataSourceMetadata + (*GetMetadata_ResourceMetadata)(nil), // 49: tfplugin6.GetMetadata.ResourceMetadata + (*GetMetadata_EphemeralResourceMetadata)(nil), // 50: tfplugin6.GetMetadata.EphemeralResourceMetadata + (*GetProviderSchema_Request)(nil), // 51: tfplugin6.GetProviderSchema.Request + (*GetProviderSchema_Response)(nil), // 52: tfplugin6.GetProviderSchema.Response + nil, // 53: tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry + nil, // 54: tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry + nil, // 55: tfplugin6.GetProviderSchema.Response.FunctionsEntry + nil, // 56: tfplugin6.GetProviderSchema.Response.EphemeralResourceSchemasEntry + (*ValidateProviderConfig_Request)(nil), // 57: tfplugin6.ValidateProviderConfig.Request + (*ValidateProviderConfig_Response)(nil), // 58: tfplugin6.ValidateProviderConfig.Response + (*UpgradeResourceState_Request)(nil), // 59: tfplugin6.UpgradeResourceState.Request + (*UpgradeResourceState_Response)(nil), // 60: tfplugin6.UpgradeResourceState.Response + (*ValidateResourceConfig_Request)(nil), // 61: tfplugin6.ValidateResourceConfig.Request + (*ValidateResourceConfig_Response)(nil), // 62: tfplugin6.ValidateResourceConfig.Response + (*ValidateDataResourceConfig_Request)(nil), // 63: tfplugin6.ValidateDataResourceConfig.Request + (*ValidateDataResourceConfig_Response)(nil), // 64: tfplugin6.ValidateDataResourceConfig.Response + (*ConfigureProvider_Request)(nil), // 65: tfplugin6.ConfigureProvider.Request + (*ConfigureProvider_Response)(nil), // 66: tfplugin6.ConfigureProvider.Response + (*ReadResource_Request)(nil), // 67: tfplugin6.ReadResource.Request + (*ReadResource_Response)(nil), // 68: tfplugin6.ReadResource.Response + (*PlanResourceChange_Request)(nil), // 69: tfplugin6.PlanResourceChange.Request + (*PlanResourceChange_Response)(nil), // 70: tfplugin6.PlanResourceChange.Response + (*ApplyResourceChange_Request)(nil), // 71: tfplugin6.ApplyResourceChange.Request + (*ApplyResourceChange_Response)(nil), // 72: tfplugin6.ApplyResourceChange.Response + (*ImportResourceState_Request)(nil), // 73: tfplugin6.ImportResourceState.Request + (*ImportResourceState_ImportedResource)(nil), // 74: tfplugin6.ImportResourceState.ImportedResource + (*ImportResourceState_Response)(nil), // 75: tfplugin6.ImportResourceState.Response + (*MoveResourceState_Request)(nil), // 76: tfplugin6.MoveResourceState.Request + (*MoveResourceState_Response)(nil), // 77: tfplugin6.MoveResourceState.Response + (*ReadDataSource_Request)(nil), // 78: tfplugin6.ReadDataSource.Request + (*ReadDataSource_Response)(nil), // 79: tfplugin6.ReadDataSource.Response + (*GetFunctions_Request)(nil), // 80: tfplugin6.GetFunctions.Request + (*GetFunctions_Response)(nil), // 81: tfplugin6.GetFunctions.Response + nil, // 82: tfplugin6.GetFunctions.Response.FunctionsEntry + (*CallFunction_Request)(nil), // 83: tfplugin6.CallFunction.Request + (*CallFunction_Response)(nil), // 84: tfplugin6.CallFunction.Response + (*ValidateEphemeralResourceConfig_Request)(nil), // 85: tfplugin6.ValidateEphemeralResourceConfig.Request + (*ValidateEphemeralResourceConfig_Response)(nil), // 86: tfplugin6.ValidateEphemeralResourceConfig.Response + (*OpenEphemeralResource_Request)(nil), // 87: tfplugin6.OpenEphemeralResource.Request + (*OpenEphemeralResource_Response)(nil), // 88: tfplugin6.OpenEphemeralResource.Response + (*RenewEphemeralResource_Request)(nil), // 89: tfplugin6.RenewEphemeralResource.Request + (*RenewEphemeralResource_Response)(nil), // 90: tfplugin6.RenewEphemeralResource.Response + (*CloseEphemeralResource_Request)(nil), // 91: tfplugin6.CloseEphemeralResource.Request + (*CloseEphemeralResource_Response)(nil), // 92: tfplugin6.CloseEphemeralResource.Response + (*timestamppb.Timestamp)(nil), // 93: google.protobuf.Timestamp } var file_tfplugin6_proto_depIdxs = []int32{ 1, // 0: tfplugin6.Diagnostic.severity:type_name -> tfplugin6.Diagnostic.Severity 8, // 1: tfplugin6.Diagnostic.attribute:type_name -> tfplugin6.AttributePath - 31, // 2: tfplugin6.AttributePath.steps:type_name -> tfplugin6.AttributePath.Step - 34, // 3: tfplugin6.RawState.flatmap:type_name -> tfplugin6.RawState.FlatmapEntry - 35, // 4: tfplugin6.Schema.block:type_name -> tfplugin6.Schema.Block - 39, // 5: tfplugin6.Function.parameters:type_name -> tfplugin6.Function.Parameter - 39, // 6: tfplugin6.Function.variadic_parameter:type_name -> tfplugin6.Function.Parameter - 40, // 7: tfplugin6.Function.return:type_name -> tfplugin6.Function.Return + 35, // 2: tfplugin6.AttributePath.steps:type_name -> tfplugin6.AttributePath.Step + 38, // 3: tfplugin6.RawState.flatmap:type_name -> tfplugin6.RawState.FlatmapEntry + 39, // 4: tfplugin6.Schema.block:type_name -> tfplugin6.Schema.Block + 43, // 5: tfplugin6.Function.parameters:type_name -> tfplugin6.Function.Parameter + 43, // 6: tfplugin6.Function.variadic_parameter:type_name -> tfplugin6.Function.Parameter + 44, // 7: tfplugin6.Function.return:type_name -> tfplugin6.Function.Return 0, // 8: tfplugin6.Function.description_kind:type_name -> tfplugin6.StringKind 4, // 9: tfplugin6.Deferred.reason:type_name -> tfplugin6.Deferred.Reason - 36, // 10: tfplugin6.Schema.Block.attributes:type_name -> tfplugin6.Schema.Attribute - 37, // 11: tfplugin6.Schema.Block.block_types:type_name -> tfplugin6.Schema.NestedBlock + 40, // 10: tfplugin6.Schema.Block.attributes:type_name -> tfplugin6.Schema.Attribute + 41, // 11: tfplugin6.Schema.Block.block_types:type_name -> tfplugin6.Schema.NestedBlock 0, // 12: tfplugin6.Schema.Block.description_kind:type_name -> tfplugin6.StringKind - 38, // 13: tfplugin6.Schema.Attribute.nested_type:type_name -> tfplugin6.Schema.Object + 42, // 13: tfplugin6.Schema.Attribute.nested_type:type_name -> tfplugin6.Schema.Object 0, // 14: tfplugin6.Schema.Attribute.description_kind:type_name -> tfplugin6.StringKind - 35, // 15: tfplugin6.Schema.NestedBlock.block:type_name -> tfplugin6.Schema.Block + 39, // 15: tfplugin6.Schema.NestedBlock.block:type_name -> tfplugin6.Schema.Block 2, // 16: tfplugin6.Schema.NestedBlock.nesting:type_name -> tfplugin6.Schema.NestedBlock.NestingMode - 36, // 17: tfplugin6.Schema.Object.attributes:type_name -> tfplugin6.Schema.Attribute + 40, // 17: tfplugin6.Schema.Object.attributes:type_name -> tfplugin6.Schema.Attribute 3, // 18: tfplugin6.Schema.Object.nesting:type_name -> tfplugin6.Schema.Object.NestingMode 0, // 19: tfplugin6.Function.Parameter.description_kind:type_name -> tfplugin6.StringKind 13, // 20: tfplugin6.GetMetadata.Response.server_capabilities:type_name -> tfplugin6.ServerCapabilities 6, // 21: tfplugin6.GetMetadata.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 44, // 22: tfplugin6.GetMetadata.Response.data_sources:type_name -> tfplugin6.GetMetadata.DataSourceMetadata - 45, // 23: tfplugin6.GetMetadata.Response.resources:type_name -> tfplugin6.GetMetadata.ResourceMetadata - 43, // 24: tfplugin6.GetMetadata.Response.functions:type_name -> tfplugin6.GetMetadata.FunctionMetadata - 11, // 25: tfplugin6.GetProviderSchema.Response.provider:type_name -> tfplugin6.Schema - 48, // 26: tfplugin6.GetProviderSchema.Response.resource_schemas:type_name -> tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry - 49, // 27: tfplugin6.GetProviderSchema.Response.data_source_schemas:type_name -> tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry - 6, // 28: tfplugin6.GetProviderSchema.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 11, // 29: tfplugin6.GetProviderSchema.Response.provider_meta:type_name -> tfplugin6.Schema - 13, // 30: tfplugin6.GetProviderSchema.Response.server_capabilities:type_name -> tfplugin6.ServerCapabilities - 50, // 31: tfplugin6.GetProviderSchema.Response.functions:type_name -> tfplugin6.GetProviderSchema.Response.FunctionsEntry - 11, // 32: tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry.value:type_name -> tfplugin6.Schema - 11, // 33: tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry.value:type_name -> tfplugin6.Schema - 12, // 34: tfplugin6.GetProviderSchema.Response.FunctionsEntry.value:type_name -> tfplugin6.Function - 5, // 35: tfplugin6.ValidateProviderConfig.Request.config:type_name -> tfplugin6.DynamicValue - 6, // 36: tfplugin6.ValidateProviderConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 10, // 37: tfplugin6.UpgradeResourceState.Request.raw_state:type_name -> tfplugin6.RawState - 5, // 38: tfplugin6.UpgradeResourceState.Response.upgraded_state:type_name -> tfplugin6.DynamicValue - 6, // 39: tfplugin6.UpgradeResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 5, // 40: tfplugin6.ValidateResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue - 6, // 41: tfplugin6.ValidateResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 5, // 42: tfplugin6.ValidateDataResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue - 6, // 43: tfplugin6.ValidateDataResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 5, // 44: tfplugin6.ConfigureProvider.Request.config:type_name -> tfplugin6.DynamicValue - 14, // 45: tfplugin6.ConfigureProvider.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities - 6, // 46: tfplugin6.ConfigureProvider.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 5, // 47: tfplugin6.ReadResource.Request.current_state:type_name -> tfplugin6.DynamicValue - 5, // 48: tfplugin6.ReadResource.Request.provider_meta:type_name -> tfplugin6.DynamicValue - 14, // 49: tfplugin6.ReadResource.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities - 5, // 50: tfplugin6.ReadResource.Response.new_state:type_name -> tfplugin6.DynamicValue - 6, // 51: tfplugin6.ReadResource.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 15, // 52: tfplugin6.ReadResource.Response.deferred:type_name -> tfplugin6.Deferred - 5, // 53: tfplugin6.PlanResourceChange.Request.prior_state:type_name -> tfplugin6.DynamicValue - 5, // 54: tfplugin6.PlanResourceChange.Request.proposed_new_state:type_name -> tfplugin6.DynamicValue - 5, // 55: tfplugin6.PlanResourceChange.Request.config:type_name -> tfplugin6.DynamicValue - 5, // 56: tfplugin6.PlanResourceChange.Request.provider_meta:type_name -> tfplugin6.DynamicValue - 14, // 57: tfplugin6.PlanResourceChange.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities - 5, // 58: tfplugin6.PlanResourceChange.Response.planned_state:type_name -> tfplugin6.DynamicValue - 8, // 59: tfplugin6.PlanResourceChange.Response.requires_replace:type_name -> tfplugin6.AttributePath - 6, // 60: tfplugin6.PlanResourceChange.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 15, // 61: tfplugin6.PlanResourceChange.Response.deferred:type_name -> tfplugin6.Deferred - 5, // 62: tfplugin6.ApplyResourceChange.Request.prior_state:type_name -> tfplugin6.DynamicValue - 5, // 63: tfplugin6.ApplyResourceChange.Request.planned_state:type_name -> tfplugin6.DynamicValue - 5, // 64: tfplugin6.ApplyResourceChange.Request.config:type_name -> tfplugin6.DynamicValue - 5, // 65: tfplugin6.ApplyResourceChange.Request.provider_meta:type_name -> tfplugin6.DynamicValue - 5, // 66: tfplugin6.ApplyResourceChange.Response.new_state:type_name -> tfplugin6.DynamicValue - 6, // 67: tfplugin6.ApplyResourceChange.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 14, // 68: tfplugin6.ImportResourceState.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities - 5, // 69: tfplugin6.ImportResourceState.ImportedResource.state:type_name -> tfplugin6.DynamicValue - 68, // 70: tfplugin6.ImportResourceState.Response.imported_resources:type_name -> tfplugin6.ImportResourceState.ImportedResource - 6, // 71: tfplugin6.ImportResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 15, // 72: tfplugin6.ImportResourceState.Response.deferred:type_name -> tfplugin6.Deferred - 10, // 73: tfplugin6.MoveResourceState.Request.source_state:type_name -> tfplugin6.RawState - 5, // 74: tfplugin6.MoveResourceState.Response.target_state:type_name -> tfplugin6.DynamicValue - 6, // 75: tfplugin6.MoveResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 5, // 76: tfplugin6.ReadDataSource.Request.config:type_name -> tfplugin6.DynamicValue - 5, // 77: tfplugin6.ReadDataSource.Request.provider_meta:type_name -> tfplugin6.DynamicValue - 14, // 78: tfplugin6.ReadDataSource.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities - 5, // 79: tfplugin6.ReadDataSource.Response.state:type_name -> tfplugin6.DynamicValue - 6, // 80: tfplugin6.ReadDataSource.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 15, // 81: tfplugin6.ReadDataSource.Response.deferred:type_name -> tfplugin6.Deferred - 76, // 82: tfplugin6.GetFunctions.Response.functions:type_name -> tfplugin6.GetFunctions.Response.FunctionsEntry - 6, // 83: tfplugin6.GetFunctions.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 12, // 84: tfplugin6.GetFunctions.Response.FunctionsEntry.value:type_name -> tfplugin6.Function - 5, // 85: tfplugin6.CallFunction.Request.arguments:type_name -> tfplugin6.DynamicValue - 5, // 86: tfplugin6.CallFunction.Response.result:type_name -> tfplugin6.DynamicValue - 7, // 87: tfplugin6.CallFunction.Response.error:type_name -> tfplugin6.FunctionError - 41, // 88: tfplugin6.Provider.GetMetadata:input_type -> tfplugin6.GetMetadata.Request - 46, // 89: tfplugin6.Provider.GetProviderSchema:input_type -> tfplugin6.GetProviderSchema.Request - 51, // 90: tfplugin6.Provider.ValidateProviderConfig:input_type -> tfplugin6.ValidateProviderConfig.Request - 55, // 91: tfplugin6.Provider.ValidateResourceConfig:input_type -> tfplugin6.ValidateResourceConfig.Request - 57, // 92: tfplugin6.Provider.ValidateDataResourceConfig:input_type -> tfplugin6.ValidateDataResourceConfig.Request - 53, // 93: tfplugin6.Provider.UpgradeResourceState:input_type -> tfplugin6.UpgradeResourceState.Request - 59, // 94: tfplugin6.Provider.ConfigureProvider:input_type -> tfplugin6.ConfigureProvider.Request - 61, // 95: tfplugin6.Provider.ReadResource:input_type -> tfplugin6.ReadResource.Request - 63, // 96: tfplugin6.Provider.PlanResourceChange:input_type -> tfplugin6.PlanResourceChange.Request - 65, // 97: tfplugin6.Provider.ApplyResourceChange:input_type -> tfplugin6.ApplyResourceChange.Request - 67, // 98: tfplugin6.Provider.ImportResourceState:input_type -> tfplugin6.ImportResourceState.Request - 70, // 99: tfplugin6.Provider.MoveResourceState:input_type -> tfplugin6.MoveResourceState.Request - 72, // 100: tfplugin6.Provider.ReadDataSource:input_type -> tfplugin6.ReadDataSource.Request - 74, // 101: tfplugin6.Provider.GetFunctions:input_type -> tfplugin6.GetFunctions.Request - 77, // 102: tfplugin6.Provider.CallFunction:input_type -> tfplugin6.CallFunction.Request - 32, // 103: tfplugin6.Provider.StopProvider:input_type -> tfplugin6.StopProvider.Request - 42, // 104: tfplugin6.Provider.GetMetadata:output_type -> tfplugin6.GetMetadata.Response - 47, // 105: tfplugin6.Provider.GetProviderSchema:output_type -> tfplugin6.GetProviderSchema.Response - 52, // 106: tfplugin6.Provider.ValidateProviderConfig:output_type -> tfplugin6.ValidateProviderConfig.Response - 56, // 107: tfplugin6.Provider.ValidateResourceConfig:output_type -> tfplugin6.ValidateResourceConfig.Response - 58, // 108: tfplugin6.Provider.ValidateDataResourceConfig:output_type -> tfplugin6.ValidateDataResourceConfig.Response - 54, // 109: tfplugin6.Provider.UpgradeResourceState:output_type -> tfplugin6.UpgradeResourceState.Response - 60, // 110: tfplugin6.Provider.ConfigureProvider:output_type -> tfplugin6.ConfigureProvider.Response - 62, // 111: tfplugin6.Provider.ReadResource:output_type -> tfplugin6.ReadResource.Response - 64, // 112: tfplugin6.Provider.PlanResourceChange:output_type -> tfplugin6.PlanResourceChange.Response - 66, // 113: tfplugin6.Provider.ApplyResourceChange:output_type -> tfplugin6.ApplyResourceChange.Response - 69, // 114: tfplugin6.Provider.ImportResourceState:output_type -> tfplugin6.ImportResourceState.Response - 71, // 115: tfplugin6.Provider.MoveResourceState:output_type -> tfplugin6.MoveResourceState.Response - 73, // 116: tfplugin6.Provider.ReadDataSource:output_type -> tfplugin6.ReadDataSource.Response - 75, // 117: tfplugin6.Provider.GetFunctions:output_type -> tfplugin6.GetFunctions.Response - 78, // 118: tfplugin6.Provider.CallFunction:output_type -> tfplugin6.CallFunction.Response - 33, // 119: tfplugin6.Provider.StopProvider:output_type -> tfplugin6.StopProvider.Response - 104, // [104:120] is the sub-list for method output_type - 88, // [88:104] is the sub-list for method input_type - 88, // [88:88] is the sub-list for extension type_name - 88, // [88:88] is the sub-list for extension extendee - 0, // [0:88] is the sub-list for field type_name + 48, // 22: tfplugin6.GetMetadata.Response.data_sources:type_name -> tfplugin6.GetMetadata.DataSourceMetadata + 49, // 23: tfplugin6.GetMetadata.Response.resources:type_name -> tfplugin6.GetMetadata.ResourceMetadata + 47, // 24: tfplugin6.GetMetadata.Response.functions:type_name -> tfplugin6.GetMetadata.FunctionMetadata + 50, // 25: tfplugin6.GetMetadata.Response.ephemeral_resources:type_name -> tfplugin6.GetMetadata.EphemeralResourceMetadata + 11, // 26: tfplugin6.GetProviderSchema.Response.provider:type_name -> tfplugin6.Schema + 53, // 27: tfplugin6.GetProviderSchema.Response.resource_schemas:type_name -> tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry + 54, // 28: tfplugin6.GetProviderSchema.Response.data_source_schemas:type_name -> tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry + 6, // 29: tfplugin6.GetProviderSchema.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 11, // 30: tfplugin6.GetProviderSchema.Response.provider_meta:type_name -> tfplugin6.Schema + 13, // 31: tfplugin6.GetProviderSchema.Response.server_capabilities:type_name -> tfplugin6.ServerCapabilities + 55, // 32: tfplugin6.GetProviderSchema.Response.functions:type_name -> tfplugin6.GetProviderSchema.Response.FunctionsEntry + 56, // 33: tfplugin6.GetProviderSchema.Response.ephemeral_resource_schemas:type_name -> tfplugin6.GetProviderSchema.Response.EphemeralResourceSchemasEntry + 11, // 34: tfplugin6.GetProviderSchema.Response.ResourceSchemasEntry.value:type_name -> tfplugin6.Schema + 11, // 35: tfplugin6.GetProviderSchema.Response.DataSourceSchemasEntry.value:type_name -> tfplugin6.Schema + 12, // 36: tfplugin6.GetProviderSchema.Response.FunctionsEntry.value:type_name -> tfplugin6.Function + 11, // 37: tfplugin6.GetProviderSchema.Response.EphemeralResourceSchemasEntry.value:type_name -> tfplugin6.Schema + 5, // 38: tfplugin6.ValidateProviderConfig.Request.config:type_name -> tfplugin6.DynamicValue + 6, // 39: tfplugin6.ValidateProviderConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 10, // 40: tfplugin6.UpgradeResourceState.Request.raw_state:type_name -> tfplugin6.RawState + 5, // 41: tfplugin6.UpgradeResourceState.Response.upgraded_state:type_name -> tfplugin6.DynamicValue + 6, // 42: tfplugin6.UpgradeResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 5, // 43: tfplugin6.ValidateResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue + 6, // 44: tfplugin6.ValidateResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 5, // 45: tfplugin6.ValidateDataResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue + 6, // 46: tfplugin6.ValidateDataResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 5, // 47: tfplugin6.ConfigureProvider.Request.config:type_name -> tfplugin6.DynamicValue + 14, // 48: tfplugin6.ConfigureProvider.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities + 6, // 49: tfplugin6.ConfigureProvider.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 5, // 50: tfplugin6.ReadResource.Request.current_state:type_name -> tfplugin6.DynamicValue + 5, // 51: tfplugin6.ReadResource.Request.provider_meta:type_name -> tfplugin6.DynamicValue + 14, // 52: tfplugin6.ReadResource.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities + 5, // 53: tfplugin6.ReadResource.Response.new_state:type_name -> tfplugin6.DynamicValue + 6, // 54: tfplugin6.ReadResource.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 15, // 55: tfplugin6.ReadResource.Response.deferred:type_name -> tfplugin6.Deferred + 5, // 56: tfplugin6.PlanResourceChange.Request.prior_state:type_name -> tfplugin6.DynamicValue + 5, // 57: tfplugin6.PlanResourceChange.Request.proposed_new_state:type_name -> tfplugin6.DynamicValue + 5, // 58: tfplugin6.PlanResourceChange.Request.config:type_name -> tfplugin6.DynamicValue + 5, // 59: tfplugin6.PlanResourceChange.Request.provider_meta:type_name -> tfplugin6.DynamicValue + 14, // 60: tfplugin6.PlanResourceChange.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities + 5, // 61: tfplugin6.PlanResourceChange.Response.planned_state:type_name -> tfplugin6.DynamicValue + 8, // 62: tfplugin6.PlanResourceChange.Response.requires_replace:type_name -> tfplugin6.AttributePath + 6, // 63: tfplugin6.PlanResourceChange.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 15, // 64: tfplugin6.PlanResourceChange.Response.deferred:type_name -> tfplugin6.Deferred + 5, // 65: tfplugin6.ApplyResourceChange.Request.prior_state:type_name -> tfplugin6.DynamicValue + 5, // 66: tfplugin6.ApplyResourceChange.Request.planned_state:type_name -> tfplugin6.DynamicValue + 5, // 67: tfplugin6.ApplyResourceChange.Request.config:type_name -> tfplugin6.DynamicValue + 5, // 68: tfplugin6.ApplyResourceChange.Request.provider_meta:type_name -> tfplugin6.DynamicValue + 5, // 69: tfplugin6.ApplyResourceChange.Response.new_state:type_name -> tfplugin6.DynamicValue + 6, // 70: tfplugin6.ApplyResourceChange.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 14, // 71: tfplugin6.ImportResourceState.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities + 5, // 72: tfplugin6.ImportResourceState.ImportedResource.state:type_name -> tfplugin6.DynamicValue + 74, // 73: tfplugin6.ImportResourceState.Response.imported_resources:type_name -> tfplugin6.ImportResourceState.ImportedResource + 6, // 74: tfplugin6.ImportResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 15, // 75: tfplugin6.ImportResourceState.Response.deferred:type_name -> tfplugin6.Deferred + 10, // 76: tfplugin6.MoveResourceState.Request.source_state:type_name -> tfplugin6.RawState + 5, // 77: tfplugin6.MoveResourceState.Response.target_state:type_name -> tfplugin6.DynamicValue + 6, // 78: tfplugin6.MoveResourceState.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 5, // 79: tfplugin6.ReadDataSource.Request.config:type_name -> tfplugin6.DynamicValue + 5, // 80: tfplugin6.ReadDataSource.Request.provider_meta:type_name -> tfplugin6.DynamicValue + 14, // 81: tfplugin6.ReadDataSource.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities + 5, // 82: tfplugin6.ReadDataSource.Response.state:type_name -> tfplugin6.DynamicValue + 6, // 83: tfplugin6.ReadDataSource.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 15, // 84: tfplugin6.ReadDataSource.Response.deferred:type_name -> tfplugin6.Deferred + 82, // 85: tfplugin6.GetFunctions.Response.functions:type_name -> tfplugin6.GetFunctions.Response.FunctionsEntry + 6, // 86: tfplugin6.GetFunctions.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 12, // 87: tfplugin6.GetFunctions.Response.FunctionsEntry.value:type_name -> tfplugin6.Function + 5, // 88: tfplugin6.CallFunction.Request.arguments:type_name -> tfplugin6.DynamicValue + 5, // 89: tfplugin6.CallFunction.Response.result:type_name -> tfplugin6.DynamicValue + 7, // 90: tfplugin6.CallFunction.Response.error:type_name -> tfplugin6.FunctionError + 5, // 91: tfplugin6.ValidateEphemeralResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue + 6, // 92: tfplugin6.ValidateEphemeralResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 5, // 93: tfplugin6.OpenEphemeralResource.Request.config:type_name -> tfplugin6.DynamicValue + 14, // 94: tfplugin6.OpenEphemeralResource.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities + 6, // 95: tfplugin6.OpenEphemeralResource.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 93, // 96: tfplugin6.OpenEphemeralResource.Response.renew_at:type_name -> google.protobuf.Timestamp + 5, // 97: tfplugin6.OpenEphemeralResource.Response.result:type_name -> tfplugin6.DynamicValue + 15, // 98: tfplugin6.OpenEphemeralResource.Response.deferred:type_name -> tfplugin6.Deferred + 6, // 99: tfplugin6.RenewEphemeralResource.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 93, // 100: tfplugin6.RenewEphemeralResource.Response.renew_at:type_name -> google.protobuf.Timestamp + 6, // 101: tfplugin6.CloseEphemeralResource.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 45, // 102: tfplugin6.Provider.GetMetadata:input_type -> tfplugin6.GetMetadata.Request + 51, // 103: tfplugin6.Provider.GetProviderSchema:input_type -> tfplugin6.GetProviderSchema.Request + 57, // 104: tfplugin6.Provider.ValidateProviderConfig:input_type -> tfplugin6.ValidateProviderConfig.Request + 61, // 105: tfplugin6.Provider.ValidateResourceConfig:input_type -> tfplugin6.ValidateResourceConfig.Request + 63, // 106: tfplugin6.Provider.ValidateDataResourceConfig:input_type -> tfplugin6.ValidateDataResourceConfig.Request + 59, // 107: tfplugin6.Provider.UpgradeResourceState:input_type -> tfplugin6.UpgradeResourceState.Request + 65, // 108: tfplugin6.Provider.ConfigureProvider:input_type -> tfplugin6.ConfigureProvider.Request + 67, // 109: tfplugin6.Provider.ReadResource:input_type -> tfplugin6.ReadResource.Request + 69, // 110: tfplugin6.Provider.PlanResourceChange:input_type -> tfplugin6.PlanResourceChange.Request + 71, // 111: tfplugin6.Provider.ApplyResourceChange:input_type -> tfplugin6.ApplyResourceChange.Request + 73, // 112: tfplugin6.Provider.ImportResourceState:input_type -> tfplugin6.ImportResourceState.Request + 76, // 113: tfplugin6.Provider.MoveResourceState:input_type -> tfplugin6.MoveResourceState.Request + 78, // 114: tfplugin6.Provider.ReadDataSource:input_type -> tfplugin6.ReadDataSource.Request + 85, // 115: tfplugin6.Provider.ValidateEphemeralResourceConfig:input_type -> tfplugin6.ValidateEphemeralResourceConfig.Request + 87, // 116: tfplugin6.Provider.OpenEphemeralResource:input_type -> tfplugin6.OpenEphemeralResource.Request + 89, // 117: tfplugin6.Provider.RenewEphemeralResource:input_type -> tfplugin6.RenewEphemeralResource.Request + 91, // 118: tfplugin6.Provider.CloseEphemeralResource:input_type -> tfplugin6.CloseEphemeralResource.Request + 80, // 119: tfplugin6.Provider.GetFunctions:input_type -> tfplugin6.GetFunctions.Request + 83, // 120: tfplugin6.Provider.CallFunction:input_type -> tfplugin6.CallFunction.Request + 36, // 121: tfplugin6.Provider.StopProvider:input_type -> tfplugin6.StopProvider.Request + 46, // 122: tfplugin6.Provider.GetMetadata:output_type -> tfplugin6.GetMetadata.Response + 52, // 123: tfplugin6.Provider.GetProviderSchema:output_type -> tfplugin6.GetProviderSchema.Response + 58, // 124: tfplugin6.Provider.ValidateProviderConfig:output_type -> tfplugin6.ValidateProviderConfig.Response + 62, // 125: tfplugin6.Provider.ValidateResourceConfig:output_type -> tfplugin6.ValidateResourceConfig.Response + 64, // 126: tfplugin6.Provider.ValidateDataResourceConfig:output_type -> tfplugin6.ValidateDataResourceConfig.Response + 60, // 127: tfplugin6.Provider.UpgradeResourceState:output_type -> tfplugin6.UpgradeResourceState.Response + 66, // 128: tfplugin6.Provider.ConfigureProvider:output_type -> tfplugin6.ConfigureProvider.Response + 68, // 129: tfplugin6.Provider.ReadResource:output_type -> tfplugin6.ReadResource.Response + 70, // 130: tfplugin6.Provider.PlanResourceChange:output_type -> tfplugin6.PlanResourceChange.Response + 72, // 131: tfplugin6.Provider.ApplyResourceChange:output_type -> tfplugin6.ApplyResourceChange.Response + 75, // 132: tfplugin6.Provider.ImportResourceState:output_type -> tfplugin6.ImportResourceState.Response + 77, // 133: tfplugin6.Provider.MoveResourceState:output_type -> tfplugin6.MoveResourceState.Response + 79, // 134: tfplugin6.Provider.ReadDataSource:output_type -> tfplugin6.ReadDataSource.Response + 86, // 135: tfplugin6.Provider.ValidateEphemeralResourceConfig:output_type -> tfplugin6.ValidateEphemeralResourceConfig.Response + 88, // 136: tfplugin6.Provider.OpenEphemeralResource:output_type -> tfplugin6.OpenEphemeralResource.Response + 90, // 137: tfplugin6.Provider.RenewEphemeralResource:output_type -> tfplugin6.RenewEphemeralResource.Response + 92, // 138: tfplugin6.Provider.CloseEphemeralResource:output_type -> tfplugin6.CloseEphemeralResource.Response + 81, // 139: tfplugin6.Provider.GetFunctions:output_type -> tfplugin6.GetFunctions.Response + 84, // 140: tfplugin6.Provider.CallFunction:output_type -> tfplugin6.CallFunction.Response + 37, // 141: tfplugin6.Provider.StopProvider:output_type -> tfplugin6.StopProvider.Response + 122, // [122:142] is the sub-list for method output_type + 102, // [102:122] is the sub-list for method input_type + 102, // [102:102] is the sub-list for extension type_name + 102, // [102:102] is the sub-list for extension extendee + 0, // [0:102] is the sub-list for field type_name } func init() { file_tfplugin6_proto_init() } @@ -5328,849 +6011,23 @@ func file_tfplugin6_proto_init() { if File_tfplugin6_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_tfplugin6_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Diagnostic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FunctionError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributePath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopProvider); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RawState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Function); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClientCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Deferred); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProviderConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataResourceConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigureProvider); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveResourceState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFunctions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CallFunction); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributePath_Step); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopProvider_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopProvider_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_Attribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_NestedBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_Object); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Function_Parameter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Function_Return); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_FunctionMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_DataSourceMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMetadata_ResourceMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProviderConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateProviderConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeResourceState_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateResourceConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataResourceConfig_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateDataResourceConfig_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigureProvider_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConfigureProvider_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadResource_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanResourceChange_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyResourceChange_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_ImportedResource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportResourceState_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveResourceState_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MoveResourceState_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadDataSource_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFunctions_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFunctions_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CallFunction_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_tfplugin6_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CallFunction_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_tfplugin6_proto_msgTypes[2].OneofWrappers = []interface{}{} - file_tfplugin6_proto_msgTypes[26].OneofWrappers = []interface{}{ + file_tfplugin6_proto_msgTypes[2].OneofWrappers = []any{} + file_tfplugin6_proto_msgTypes[30].OneofWrappers = []any{ (*AttributePath_Step_AttributeName)(nil), (*AttributePath_Step_ElementKeyString)(nil), (*AttributePath_Step_ElementKeyInt)(nil), } + file_tfplugin6_proto_msgTypes[83].OneofWrappers = []any{} + file_tfplugin6_proto_msgTypes[84].OneofWrappers = []any{} + file_tfplugin6_proto_msgTypes[85].OneofWrappers = []any{} + file_tfplugin6_proto_msgTypes[86].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_tfplugin6_proto_rawDesc, NumEnums: 5, - NumMessages: 74, + NumMessages: 88, NumExtensions: 0, NumServices: 1, }, diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.proto b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.proto index 8504e12dccc7..d3882c2f3b1d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.proto +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6.proto @@ -1,9 +1,9 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 -// Terraform Plugin RPC protocol version 6.6 +// Terraform Plugin RPC protocol version 6.7 // -// This file defines version 6.6 of the RPC protocol. To implement a plugin +// This file defines version 6.7 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -22,6 +22,8 @@ syntax = "proto3"; option go_package = "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6"; +import "google/protobuf/timestamp.proto"; + package tfplugin6; // DynamicValue is an opaque encoding of terraform data, with the field name @@ -288,6 +290,12 @@ service Provider { rpc MoveResourceState(MoveResourceState.Request) returns (MoveResourceState.Response); rpc ReadDataSource(ReadDataSource.Request) returns (ReadDataSource.Response); + //////// Ephemeral Resource Lifecycle + rpc ValidateEphemeralResourceConfig(ValidateEphemeralResourceConfig.Request) returns (ValidateEphemeralResourceConfig.Response); + rpc OpenEphemeralResource(OpenEphemeralResource.Request) returns (OpenEphemeralResource.Response); + rpc RenewEphemeralResource(RenewEphemeralResource.Request) returns (RenewEphemeralResource.Response); + rpc CloseEphemeralResource(CloseEphemeralResource.Request) returns (CloseEphemeralResource.Response); + // Functions // GetFunctions returns the definitions of all functions. @@ -313,6 +321,7 @@ message GetMetadata { // functions returns metadata for any functions. repeated FunctionMetadata functions = 5; + repeated EphemeralResourceMetadata ephemeral_resources = 6; } message FunctionMetadata { @@ -327,6 +336,10 @@ message GetMetadata { message ResourceMetadata { string type_name = 1; } + + message EphemeralResourceMetadata { + string type_name = 1; + } } message GetProviderSchema { @@ -342,6 +355,7 @@ message GetProviderSchema { // functions is a mapping of function names to definitions. map functions = 7; + map ephemeral_resource_schemas = 8; } } @@ -464,6 +478,7 @@ message PlanResourceChange { bytes planned_private = 3; repeated Diagnostic diagnostics = 4; + // This may be set only by the helper/schema "SDK" in the main Terraform // repository, to request that Terraform Core >=0.12 permit additional // inconsistencies that can result from the legacy SDK type system @@ -610,7 +625,56 @@ message CallFunction { // result is result value after running the function logic. DynamicValue result = 1; - // error is any errors from the function logic. + // error is any error from the function logic. FunctionError error = 2; } } + +message ValidateEphemeralResourceConfig { + message Request { + string type_name = 1; + DynamicValue config = 2; + } + message Response { + repeated Diagnostic diagnostics = 1; + } +} + +message OpenEphemeralResource { + message Request { + string type_name = 1; + DynamicValue config = 2; + ClientCapabilities client_capabilities = 3; + } + message Response { + repeated Diagnostic diagnostics = 1; + optional google.protobuf.Timestamp renew_at = 2; + DynamicValue result = 3; + optional bytes private = 4; + // deferred is set if the provider is deferring the change. If set the caller + // needs to handle the deferral. + Deferred deferred = 5; + } +} + +message RenewEphemeralResource { + message Request { + string type_name = 1; + optional bytes private = 2; + } + message Response { + repeated Diagnostic diagnostics = 1; + optional google.protobuf.Timestamp renew_at = 2; + optional bytes private = 3; + } +} + +message CloseEphemeralResource { + message Request { + string type_name = 1; + optional bytes private = 2; + } + message Response { + repeated Diagnostic diagnostics = 1; + } +} \ No newline at end of file diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go index d1d31e196cf8..59fe63fb3e69 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go @@ -1,9 +1,9 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 -// Terraform Plugin RPC protocol version 6.6 +// Terraform Plugin RPC protocol version 6.7 // -// This file defines version 6.6 of the RPC protocol. To implement a plugin +// This file defines version 6.7 of the RPC protocol. To implement a plugin // against this protocol, copy this definition into your own codebase and // use protoc to generate stubs for your target language. // @@ -22,8 +22,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.26.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.27.3 // source: tfplugin6.proto package tfplugin6 @@ -37,26 +37,30 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( - Provider_GetMetadata_FullMethodName = "/tfplugin6.Provider/GetMetadata" - Provider_GetProviderSchema_FullMethodName = "/tfplugin6.Provider/GetProviderSchema" - Provider_ValidateProviderConfig_FullMethodName = "/tfplugin6.Provider/ValidateProviderConfig" - Provider_ValidateResourceConfig_FullMethodName = "/tfplugin6.Provider/ValidateResourceConfig" - Provider_ValidateDataResourceConfig_FullMethodName = "/tfplugin6.Provider/ValidateDataResourceConfig" - Provider_UpgradeResourceState_FullMethodName = "/tfplugin6.Provider/UpgradeResourceState" - Provider_ConfigureProvider_FullMethodName = "/tfplugin6.Provider/ConfigureProvider" - Provider_ReadResource_FullMethodName = "/tfplugin6.Provider/ReadResource" - Provider_PlanResourceChange_FullMethodName = "/tfplugin6.Provider/PlanResourceChange" - Provider_ApplyResourceChange_FullMethodName = "/tfplugin6.Provider/ApplyResourceChange" - Provider_ImportResourceState_FullMethodName = "/tfplugin6.Provider/ImportResourceState" - Provider_MoveResourceState_FullMethodName = "/tfplugin6.Provider/MoveResourceState" - Provider_ReadDataSource_FullMethodName = "/tfplugin6.Provider/ReadDataSource" - Provider_GetFunctions_FullMethodName = "/tfplugin6.Provider/GetFunctions" - Provider_CallFunction_FullMethodName = "/tfplugin6.Provider/CallFunction" - Provider_StopProvider_FullMethodName = "/tfplugin6.Provider/StopProvider" + Provider_GetMetadata_FullMethodName = "/tfplugin6.Provider/GetMetadata" + Provider_GetProviderSchema_FullMethodName = "/tfplugin6.Provider/GetProviderSchema" + Provider_ValidateProviderConfig_FullMethodName = "/tfplugin6.Provider/ValidateProviderConfig" + Provider_ValidateResourceConfig_FullMethodName = "/tfplugin6.Provider/ValidateResourceConfig" + Provider_ValidateDataResourceConfig_FullMethodName = "/tfplugin6.Provider/ValidateDataResourceConfig" + Provider_UpgradeResourceState_FullMethodName = "/tfplugin6.Provider/UpgradeResourceState" + Provider_ConfigureProvider_FullMethodName = "/tfplugin6.Provider/ConfigureProvider" + Provider_ReadResource_FullMethodName = "/tfplugin6.Provider/ReadResource" + Provider_PlanResourceChange_FullMethodName = "/tfplugin6.Provider/PlanResourceChange" + Provider_ApplyResourceChange_FullMethodName = "/tfplugin6.Provider/ApplyResourceChange" + Provider_ImportResourceState_FullMethodName = "/tfplugin6.Provider/ImportResourceState" + Provider_MoveResourceState_FullMethodName = "/tfplugin6.Provider/MoveResourceState" + Provider_ReadDataSource_FullMethodName = "/tfplugin6.Provider/ReadDataSource" + Provider_ValidateEphemeralResourceConfig_FullMethodName = "/tfplugin6.Provider/ValidateEphemeralResourceConfig" + Provider_OpenEphemeralResource_FullMethodName = "/tfplugin6.Provider/OpenEphemeralResource" + Provider_RenewEphemeralResource_FullMethodName = "/tfplugin6.Provider/RenewEphemeralResource" + Provider_CloseEphemeralResource_FullMethodName = "/tfplugin6.Provider/CloseEphemeralResource" + Provider_GetFunctions_FullMethodName = "/tfplugin6.Provider/GetFunctions" + Provider_CallFunction_FullMethodName = "/tfplugin6.Provider/CallFunction" + Provider_StopProvider_FullMethodName = "/tfplugin6.Provider/StopProvider" ) // ProviderClient is the client API for Provider service. @@ -85,6 +89,11 @@ type ProviderClient interface { ImportResourceState(ctx context.Context, in *ImportResourceState_Request, opts ...grpc.CallOption) (*ImportResourceState_Response, error) MoveResourceState(ctx context.Context, in *MoveResourceState_Request, opts ...grpc.CallOption) (*MoveResourceState_Response, error) ReadDataSource(ctx context.Context, in *ReadDataSource_Request, opts ...grpc.CallOption) (*ReadDataSource_Response, error) + // ////// Ephemeral Resource Lifecycle + ValidateEphemeralResourceConfig(ctx context.Context, in *ValidateEphemeralResourceConfig_Request, opts ...grpc.CallOption) (*ValidateEphemeralResourceConfig_Response, error) + OpenEphemeralResource(ctx context.Context, in *OpenEphemeralResource_Request, opts ...grpc.CallOption) (*OpenEphemeralResource_Response, error) + RenewEphemeralResource(ctx context.Context, in *RenewEphemeralResource_Request, opts ...grpc.CallOption) (*RenewEphemeralResource_Response, error) + CloseEphemeralResource(ctx context.Context, in *CloseEphemeralResource_Request, opts ...grpc.CallOption) (*CloseEphemeralResource_Response, error) // GetFunctions returns the definitions of all functions. GetFunctions(ctx context.Context, in *GetFunctions_Request, opts ...grpc.CallOption) (*GetFunctions_Response, error) // CallFunction runs the provider-defined function logic and returns @@ -103,8 +112,9 @@ func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient { } func (c *providerClient) GetMetadata(ctx context.Context, in *GetMetadata_Request, opts ...grpc.CallOption) (*GetMetadata_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMetadata_Response) - err := c.cc.Invoke(ctx, Provider_GetMetadata_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_GetMetadata_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -112,8 +122,9 @@ func (c *providerClient) GetMetadata(ctx context.Context, in *GetMetadata_Reques } func (c *providerClient) GetProviderSchema(ctx context.Context, in *GetProviderSchema_Request, opts ...grpc.CallOption) (*GetProviderSchema_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetProviderSchema_Response) - err := c.cc.Invoke(ctx, Provider_GetProviderSchema_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_GetProviderSchema_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -121,8 +132,9 @@ func (c *providerClient) GetProviderSchema(ctx context.Context, in *GetProviderS } func (c *providerClient) ValidateProviderConfig(ctx context.Context, in *ValidateProviderConfig_Request, opts ...grpc.CallOption) (*ValidateProviderConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateProviderConfig_Response) - err := c.cc.Invoke(ctx, Provider_ValidateProviderConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ValidateProviderConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -130,8 +142,9 @@ func (c *providerClient) ValidateProviderConfig(ctx context.Context, in *Validat } func (c *providerClient) ValidateResourceConfig(ctx context.Context, in *ValidateResourceConfig_Request, opts ...grpc.CallOption) (*ValidateResourceConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateResourceConfig_Response) - err := c.cc.Invoke(ctx, Provider_ValidateResourceConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ValidateResourceConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -139,8 +152,9 @@ func (c *providerClient) ValidateResourceConfig(ctx context.Context, in *Validat } func (c *providerClient) ValidateDataResourceConfig(ctx context.Context, in *ValidateDataResourceConfig_Request, opts ...grpc.CallOption) (*ValidateDataResourceConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateDataResourceConfig_Response) - err := c.cc.Invoke(ctx, Provider_ValidateDataResourceConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ValidateDataResourceConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -148,8 +162,9 @@ func (c *providerClient) ValidateDataResourceConfig(ctx context.Context, in *Val } func (c *providerClient) UpgradeResourceState(ctx context.Context, in *UpgradeResourceState_Request, opts ...grpc.CallOption) (*UpgradeResourceState_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpgradeResourceState_Response) - err := c.cc.Invoke(ctx, Provider_UpgradeResourceState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_UpgradeResourceState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -157,8 +172,9 @@ func (c *providerClient) UpgradeResourceState(ctx context.Context, in *UpgradeRe } func (c *providerClient) ConfigureProvider(ctx context.Context, in *ConfigureProvider_Request, opts ...grpc.CallOption) (*ConfigureProvider_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ConfigureProvider_Response) - err := c.cc.Invoke(ctx, Provider_ConfigureProvider_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ConfigureProvider_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -166,8 +182,9 @@ func (c *providerClient) ConfigureProvider(ctx context.Context, in *ConfigurePro } func (c *providerClient) ReadResource(ctx context.Context, in *ReadResource_Request, opts ...grpc.CallOption) (*ReadResource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReadResource_Response) - err := c.cc.Invoke(ctx, Provider_ReadResource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ReadResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -175,8 +192,9 @@ func (c *providerClient) ReadResource(ctx context.Context, in *ReadResource_Requ } func (c *providerClient) PlanResourceChange(ctx context.Context, in *PlanResourceChange_Request, opts ...grpc.CallOption) (*PlanResourceChange_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PlanResourceChange_Response) - err := c.cc.Invoke(ctx, Provider_PlanResourceChange_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_PlanResourceChange_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -184,8 +202,9 @@ func (c *providerClient) PlanResourceChange(ctx context.Context, in *PlanResourc } func (c *providerClient) ApplyResourceChange(ctx context.Context, in *ApplyResourceChange_Request, opts ...grpc.CallOption) (*ApplyResourceChange_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ApplyResourceChange_Response) - err := c.cc.Invoke(ctx, Provider_ApplyResourceChange_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ApplyResourceChange_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -193,8 +212,9 @@ func (c *providerClient) ApplyResourceChange(ctx context.Context, in *ApplyResou } func (c *providerClient) ImportResourceState(ctx context.Context, in *ImportResourceState_Request, opts ...grpc.CallOption) (*ImportResourceState_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ImportResourceState_Response) - err := c.cc.Invoke(ctx, Provider_ImportResourceState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ImportResourceState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -202,8 +222,9 @@ func (c *providerClient) ImportResourceState(ctx context.Context, in *ImportReso } func (c *providerClient) MoveResourceState(ctx context.Context, in *MoveResourceState_Request, opts ...grpc.CallOption) (*MoveResourceState_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MoveResourceState_Response) - err := c.cc.Invoke(ctx, Provider_MoveResourceState_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_MoveResourceState_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -211,8 +232,49 @@ func (c *providerClient) MoveResourceState(ctx context.Context, in *MoveResource } func (c *providerClient) ReadDataSource(ctx context.Context, in *ReadDataSource_Request, opts ...grpc.CallOption) (*ReadDataSource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReadDataSource_Response) - err := c.cc.Invoke(ctx, Provider_ReadDataSource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_ReadDataSource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerClient) ValidateEphemeralResourceConfig(ctx context.Context, in *ValidateEphemeralResourceConfig_Request, opts ...grpc.CallOption) (*ValidateEphemeralResourceConfig_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ValidateEphemeralResourceConfig_Response) + err := c.cc.Invoke(ctx, Provider_ValidateEphemeralResourceConfig_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerClient) OpenEphemeralResource(ctx context.Context, in *OpenEphemeralResource_Request, opts ...grpc.CallOption) (*OpenEphemeralResource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OpenEphemeralResource_Response) + err := c.cc.Invoke(ctx, Provider_OpenEphemeralResource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerClient) RenewEphemeralResource(ctx context.Context, in *RenewEphemeralResource_Request, opts ...grpc.CallOption) (*RenewEphemeralResource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(RenewEphemeralResource_Response) + err := c.cc.Invoke(ctx, Provider_RenewEphemeralResource_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *providerClient) CloseEphemeralResource(ctx context.Context, in *CloseEphemeralResource_Request, opts ...grpc.CallOption) (*CloseEphemeralResource_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CloseEphemeralResource_Response) + err := c.cc.Invoke(ctx, Provider_CloseEphemeralResource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -220,8 +282,9 @@ func (c *providerClient) ReadDataSource(ctx context.Context, in *ReadDataSource_ } func (c *providerClient) GetFunctions(ctx context.Context, in *GetFunctions_Request, opts ...grpc.CallOption) (*GetFunctions_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetFunctions_Response) - err := c.cc.Invoke(ctx, Provider_GetFunctions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_GetFunctions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -229,8 +292,9 @@ func (c *providerClient) GetFunctions(ctx context.Context, in *GetFunctions_Requ } func (c *providerClient) CallFunction(ctx context.Context, in *CallFunction_Request, opts ...grpc.CallOption) (*CallFunction_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CallFunction_Response) - err := c.cc.Invoke(ctx, Provider_CallFunction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_CallFunction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -238,8 +302,9 @@ func (c *providerClient) CallFunction(ctx context.Context, in *CallFunction_Requ } func (c *providerClient) StopProvider(ctx context.Context, in *StopProvider_Request, opts ...grpc.CallOption) (*StopProvider_Response, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StopProvider_Response) - err := c.cc.Invoke(ctx, Provider_StopProvider_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Provider_StopProvider_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -248,7 +313,7 @@ func (c *providerClient) StopProvider(ctx context.Context, in *StopProvider_Requ // ProviderServer is the server API for Provider service. // All implementations must embed UnimplementedProviderServer -// for forward compatibility +// for forward compatibility. type ProviderServer interface { // GetMetadata returns upfront information about server capabilities and // supported resource types without requiring the server to instantiate all @@ -272,6 +337,11 @@ type ProviderServer interface { ImportResourceState(context.Context, *ImportResourceState_Request) (*ImportResourceState_Response, error) MoveResourceState(context.Context, *MoveResourceState_Request) (*MoveResourceState_Response, error) ReadDataSource(context.Context, *ReadDataSource_Request) (*ReadDataSource_Response, error) + // ////// Ephemeral Resource Lifecycle + ValidateEphemeralResourceConfig(context.Context, *ValidateEphemeralResourceConfig_Request) (*ValidateEphemeralResourceConfig_Response, error) + OpenEphemeralResource(context.Context, *OpenEphemeralResource_Request) (*OpenEphemeralResource_Response, error) + RenewEphemeralResource(context.Context, *RenewEphemeralResource_Request) (*RenewEphemeralResource_Response, error) + CloseEphemeralResource(context.Context, *CloseEphemeralResource_Request) (*CloseEphemeralResource_Response, error) // GetFunctions returns the definitions of all functions. GetFunctions(context.Context, *GetFunctions_Request) (*GetFunctions_Response, error) // CallFunction runs the provider-defined function logic and returns @@ -282,9 +352,12 @@ type ProviderServer interface { mustEmbedUnimplementedProviderServer() } -// UnimplementedProviderServer must be embedded to have forward compatible implementations. -type UnimplementedProviderServer struct { -} +// UnimplementedProviderServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedProviderServer struct{} func (UnimplementedProviderServer) GetMetadata(context.Context, *GetMetadata_Request) (*GetMetadata_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMetadata not implemented") @@ -325,6 +398,18 @@ func (UnimplementedProviderServer) MoveResourceState(context.Context, *MoveResou func (UnimplementedProviderServer) ReadDataSource(context.Context, *ReadDataSource_Request) (*ReadDataSource_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method ReadDataSource not implemented") } +func (UnimplementedProviderServer) ValidateEphemeralResourceConfig(context.Context, *ValidateEphemeralResourceConfig_Request) (*ValidateEphemeralResourceConfig_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidateEphemeralResourceConfig not implemented") +} +func (UnimplementedProviderServer) OpenEphemeralResource(context.Context, *OpenEphemeralResource_Request) (*OpenEphemeralResource_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenEphemeralResource not implemented") +} +func (UnimplementedProviderServer) RenewEphemeralResource(context.Context, *RenewEphemeralResource_Request) (*RenewEphemeralResource_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method RenewEphemeralResource not implemented") +} +func (UnimplementedProviderServer) CloseEphemeralResource(context.Context, *CloseEphemeralResource_Request) (*CloseEphemeralResource_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseEphemeralResource not implemented") +} func (UnimplementedProviderServer) GetFunctions(context.Context, *GetFunctions_Request) (*GetFunctions_Response, error) { return nil, status.Errorf(codes.Unimplemented, "method GetFunctions not implemented") } @@ -335,6 +420,7 @@ func (UnimplementedProviderServer) StopProvider(context.Context, *StopProvider_R return nil, status.Errorf(codes.Unimplemented, "method StopProvider not implemented") } func (UnimplementedProviderServer) mustEmbedUnimplementedProviderServer() {} +func (UnimplementedProviderServer) testEmbeddedByValue() {} // UnsafeProviderServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ProviderServer will @@ -344,6 +430,13 @@ type UnsafeProviderServer interface { } func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer) { + // If the following call pancis, it indicates UnimplementedProviderServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Provider_ServiceDesc, srv) } @@ -581,6 +674,78 @@ func _Provider_ReadDataSource_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Provider_ValidateEphemeralResourceConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateEphemeralResourceConfig_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderServer).ValidateEphemeralResourceConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Provider_ValidateEphemeralResourceConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderServer).ValidateEphemeralResourceConfig(ctx, req.(*ValidateEphemeralResourceConfig_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Provider_OpenEphemeralResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenEphemeralResource_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderServer).OpenEphemeralResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Provider_OpenEphemeralResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderServer).OpenEphemeralResource(ctx, req.(*OpenEphemeralResource_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Provider_RenewEphemeralResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RenewEphemeralResource_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderServer).RenewEphemeralResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Provider_RenewEphemeralResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderServer).RenewEphemeralResource(ctx, req.(*RenewEphemeralResource_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Provider_CloseEphemeralResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseEphemeralResource_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProviderServer).CloseEphemeralResource(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Provider_CloseEphemeralResource_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProviderServer).CloseEphemeralResource(ctx, req.(*CloseEphemeralResource_Request)) + } + return interceptor(ctx, in, info, handler) +} + func _Provider_GetFunctions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetFunctions_Request) if err := dec(in); err != nil { @@ -694,6 +859,22 @@ var Provider_ServiceDesc = grpc.ServiceDesc{ MethodName: "ReadDataSource", Handler: _Provider_ReadDataSource_Handler, }, + { + MethodName: "ValidateEphemeralResourceConfig", + Handler: _Provider_ValidateEphemeralResourceConfig_Handler, + }, + { + MethodName: "OpenEphemeralResource", + Handler: _Provider_OpenEphemeralResource_Handler, + }, + { + MethodName: "RenewEphemeralResource", + Handler: _Provider_RenewEphemeralResource_Handler, + }, + { + MethodName: "CloseEphemeralResource", + Handler: _Provider_CloseEphemeralResource_Handler, + }, { MethodName: "GetFunctions", Handler: _Provider_GetFunctions_Handler, diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/ephemeral_resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/ephemeral_resource.go new file mode 100644 index 000000000000..0c0439b6bdc6 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/ephemeral_resource.go @@ -0,0 +1,65 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" +) + +func GetMetadata_EphemeralResourceMetadata(in *tfprotov6.EphemeralResourceMetadata) *tfplugin6.GetMetadata_EphemeralResourceMetadata { + if in == nil { + return nil + } + + return &tfplugin6.GetMetadata_EphemeralResourceMetadata{ + TypeName: in.TypeName, + } +} + +func ValidateEphemeralResourceConfig_Response(in *tfprotov6.ValidateEphemeralResourceConfigResponse) *tfplugin6.ValidateEphemeralResourceConfig_Response { + if in == nil { + return nil + } + + return &tfplugin6.ValidateEphemeralResourceConfig_Response{ + Diagnostics: Diagnostics(in.Diagnostics), + } +} + +func OpenEphemeralResource_Response(in *tfprotov6.OpenEphemeralResourceResponse) *tfplugin6.OpenEphemeralResource_Response { + if in == nil { + return nil + } + + return &tfplugin6.OpenEphemeralResource_Response{ + Result: DynamicValue(in.Result), + Diagnostics: Diagnostics(in.Diagnostics), + Private: in.Private, + RenewAt: Timestamp(in.RenewAt), + Deferred: Deferred(in.Deferred), + } +} + +func RenewEphemeralResource_Response(in *tfprotov6.RenewEphemeralResourceResponse) *tfplugin6.RenewEphemeralResource_Response { + if in == nil { + return nil + } + + return &tfplugin6.RenewEphemeralResource_Response{ + Diagnostics: Diagnostics(in.Diagnostics), + Private: in.Private, + RenewAt: Timestamp(in.RenewAt), + } +} + +func CloseEphemeralResource_Response(in *tfprotov6.CloseEphemeralResourceResponse) *tfplugin6.CloseEphemeralResource_Response { + if in == nil { + return nil + } + + return &tfplugin6.CloseEphemeralResource_Response{ + Diagnostics: Diagnostics(in.Diagnostics), + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/provider.go index 7b283c9d47a2..b0a4c3149056 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/provider.go @@ -16,6 +16,7 @@ func GetMetadata_Response(in *tfprotov6.GetMetadataResponse) *tfplugin6.GetMetad resp := &tfplugin6.GetMetadata_Response{ DataSources: make([]*tfplugin6.GetMetadata_DataSourceMetadata, 0, len(in.DataSources)), Diagnostics: Diagnostics(in.Diagnostics), + EphemeralResources: make([]*tfplugin6.GetMetadata_EphemeralResourceMetadata, 0, len(in.EphemeralResources)), Functions: make([]*tfplugin6.GetMetadata_FunctionMetadata, 0, len(in.Functions)), Resources: make([]*tfplugin6.GetMetadata_ResourceMetadata, 0, len(in.Resources)), ServerCapabilities: ServerCapabilities(in.ServerCapabilities), @@ -25,6 +26,10 @@ func GetMetadata_Response(in *tfprotov6.GetMetadataResponse) *tfplugin6.GetMetad resp.DataSources = append(resp.DataSources, GetMetadata_DataSourceMetadata(&datasource)) } + for _, ephemeralResource := range in.EphemeralResources { + resp.EphemeralResources = append(resp.EphemeralResources, GetMetadata_EphemeralResourceMetadata(&ephemeralResource)) + } + for _, function := range in.Functions { resp.Functions = append(resp.Functions, GetMetadata_FunctionMetadata(&function)) } @@ -42,13 +47,18 @@ func GetProviderSchema_Response(in *tfprotov6.GetProviderSchemaResponse) *tfplug } resp := &tfplugin6.GetProviderSchema_Response{ - DataSourceSchemas: make(map[string]*tfplugin6.Schema, len(in.DataSourceSchemas)), - Diagnostics: Diagnostics(in.Diagnostics), - Functions: make(map[string]*tfplugin6.Function, len(in.Functions)), - Provider: Schema(in.Provider), - ProviderMeta: Schema(in.ProviderMeta), - ResourceSchemas: make(map[string]*tfplugin6.Schema, len(in.ResourceSchemas)), - ServerCapabilities: ServerCapabilities(in.ServerCapabilities), + DataSourceSchemas: make(map[string]*tfplugin6.Schema, len(in.DataSourceSchemas)), + Diagnostics: Diagnostics(in.Diagnostics), + EphemeralResourceSchemas: make(map[string]*tfplugin6.Schema, len(in.EphemeralResourceSchemas)), + Functions: make(map[string]*tfplugin6.Function, len(in.Functions)), + Provider: Schema(in.Provider), + ProviderMeta: Schema(in.ProviderMeta), + ResourceSchemas: make(map[string]*tfplugin6.Schema, len(in.ResourceSchemas)), + ServerCapabilities: ServerCapabilities(in.ServerCapabilities), + } + + for name, schema := range in.EphemeralResourceSchemas { + resp.EphemeralResourceSchemas[name] = Schema(schema) } for name, schema := range in.ResourceSchemas { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/timestamp.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/timestamp.go new file mode 100644 index 000000000000..3ee28365e943 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/timestamp.go @@ -0,0 +1,18 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package toproto + +import ( + "time" + + "google.golang.org/protobuf/types/known/timestamppb" +) + +func Timestamp(in time.Time) *timestamppb.Timestamp { + if in.IsZero() { + return nil + } + + return timestamppb.New(in) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/provider.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/provider.go index a5185138f091..e6892bade046 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/provider.go @@ -56,6 +56,25 @@ type ProviderServer interface { FunctionServer } +// ProviderServerWithEphemeralResources is a temporary interface for servers +// to implement Ephemeral Resource RPC handling with: +// +// - ValidateEphemeralResourceConfig +// - OpenEphemeralResource +// - RenewEphemeralResource +// - CloseEphemeralResource +// +// Deprecated: The EphemeralResourceServer methods will be moved into the +// ProviderServer interface and this interface will be removed in a future +// version. +type ProviderServerWithEphemeralResources interface { + ProviderServer + + // EphemeralResourceServer is an interface encapsulating all the ephemeral + // resource-related RPC requests. + EphemeralResourceServer +} + // GetMetadataRequest represents a GetMetadata RPC request. type GetMetadataRequest struct{} @@ -78,6 +97,9 @@ type GetMetadataResponse struct { // Resources returns metadata for all managed resources. Resources []ResourceMetadata + + // EphemeralResources returns metadata for all ephemeral resources. + EphemeralResources []EphemeralResourceMetadata } // GetProviderSchemaRequest represents a Terraform RPC request for the @@ -124,6 +146,13 @@ type GetProviderSchemaResponse struct { // includes the provider name. Functions map[string]*Function + // EphemeralResourceSchemas is a map of ephemeral resource names to the schema for + // the configuration specified in the ephemeral resource. The name should be an + // ephemeral resource name, and should be prefixed with your provider's + // shortname and an underscore. It should match the first label after + // `ephemeral` in a user's configuration. + EphemeralResourceSchemas map[string]*Schema + // Diagnostics report errors or warnings related to returning the // provider's schemas. Returning an empty slice indicates success, with // no errors or warnings generated. diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/resource.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/resource.go index bf1a6e387bee..8ea02a0073a4 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/resource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/resource.go @@ -65,26 +65,6 @@ type ResourceServer interface { MoveResourceState(context.Context, *MoveResourceStateRequest) (*MoveResourceStateResponse, error) } -// ResourceServerWithMoveResourceState is a temporary interface for servers -// to implement MoveResourceState RPC handling. -// -// Deprecated: This interface will be removed in a future version. Use -// ResourceServer instead. -type ResourceServerWithMoveResourceState interface { - ResourceServer - - // MoveResourceState is called when Terraform is asked to change a resource - // type for an existing resource. The provider must accept the change as - // valid by ensuring the source resource type, schema version, and provider - // address are compatible to convert the source state into the target - // resource type and latest state version. - // - // This functionality is only supported in Terraform 1.8 and later. The - // provider must have enabled the MoveResourceState server capability to - // enable these requests. - MoveResourceState(context.Context, *MoveResourceStateRequest) (*MoveResourceStateResponse, error) -} - // ValidateResourceConfigRequest is the request Terraform sends when it // wants to validate a resource's configuration. type ValidateResourceConfigRequest struct { diff --git a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/server.go b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/server.go index cb79928c1753..2f06cc2c5dd7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/server.go +++ b/vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/server.go @@ -49,7 +49,7 @@ const ( // // In the future, it may be possible to include this information directly // in the protocol buffers rather than recreating a constant here. - protocolVersionMinor uint = 6 + protocolVersionMinor uint = 7 ) // protocolVersion represents the combined major and minor version numbers of @@ -1003,6 +1003,221 @@ func (s *server) GetFunctions(ctx context.Context, protoReq *tfplugin6.GetFuncti return protoResp, nil } +func (s *server) ValidateEphemeralResourceConfig(ctx context.Context, protoReq *tfplugin6.ValidateEphemeralResourceConfig_Request) (*tfplugin6.ValidateEphemeralResourceConfig_Response, error) { + rpc := "ValidateEphemeralResourceConfig" + ctx = s.loggingContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + ctx = logging.EphemeralResourceContext(ctx, protoReq.TypeName) + ctx = s.stoppableContext(ctx) + logging.ProtocolTrace(ctx, "Received request") + defer logging.ProtocolTrace(ctx, "Served request") + + // TODO: Remove this check and error in preference of + // s.downstream.ValidateEphemeralResourceConfig below once ProviderServer interface + // implements the EphemeralResourceServer RPC methods. + // nolint:staticcheck + ephemeralResourceProviderServer, ok := s.downstream.(tfprotov6.ProviderServerWithEphemeralResources) + if !ok { + logging.ProtocolError(ctx, "ProviderServer does not implement ValidateEphemeralResourceConfig") + + protoResp := &tfplugin6.ValidateEphemeralResourceConfig_Response{ + Diagnostics: []*tfplugin6.Diagnostic{ + { + Severity: tfplugin6.Diagnostic_ERROR, + Summary: "Provider Validate Ephemeral Resource Config Not Implemented", + Detail: "A ValidateEphemeralResourceConfig call was received by the provider, however the provider does not implement the call. " + + "Either upgrade the provider to a version that implements ephemeral resource support or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return protoResp, nil + } + + req := fromproto.ValidateEphemeralResourceConfigRequest(protoReq) + + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", req.Config) + + ctx = tf6serverlogging.DownstreamRequest(ctx) + + // TODO: Update this to call downstream once optional interface is removed + // resp, err := s.downstream.ValidateEphemeralResourceConfig(ctx, req) + resp, err := ephemeralResourceProviderServer.ValidateEphemeralResourceConfig(ctx, req) + + if err != nil { + logging.ProtocolError(ctx, "Error from downstream", map[string]any{logging.KeyError: err}) + return nil, err + } + + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) + + protoResp := toproto.ValidateEphemeralResourceConfig_Response(resp) + + return protoResp, nil +} + +func (s *server) OpenEphemeralResource(ctx context.Context, protoReq *tfplugin6.OpenEphemeralResource_Request) (*tfplugin6.OpenEphemeralResource_Response, error) { + rpc := "OpenEphemeralResource" + ctx = s.loggingContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + ctx = logging.EphemeralResourceContext(ctx, protoReq.TypeName) + ctx = s.stoppableContext(ctx) + logging.ProtocolTrace(ctx, "Received request") + defer logging.ProtocolTrace(ctx, "Served request") + + // TODO: Remove this check and error in preference of + // s.downstream.OpenEphemeralResource below once ProviderServer interface + // implements the EphemeralResourceServer RPC methods. + // nolint:staticcheck + ephemeralResourceProviderServer, ok := s.downstream.(tfprotov6.ProviderServerWithEphemeralResources) + if !ok { + logging.ProtocolError(ctx, "ProviderServer does not implement OpenEphemeralResource") + + protoResp := &tfplugin6.OpenEphemeralResource_Response{ + Diagnostics: []*tfplugin6.Diagnostic{ + { + Severity: tfplugin6.Diagnostic_ERROR, + Summary: "Provider Open Ephemeral Resource Not Implemented", + Detail: "A OpenEphemeralResource call was received by the provider, however the provider does not implement the call. " + + "Either upgrade the provider to a version that implements ephemeral resource support or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return protoResp, nil + } + + req := fromproto.OpenEphemeralResourceRequest(protoReq) + + tf6serverlogging.OpenEphemeralResourceClientCapabilities(ctx, req.ClientCapabilities) + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Request", "Config", req.Config) + + ctx = tf6serverlogging.DownstreamRequest(ctx) + + // TODO: Update this to call downstream once optional interface is removed + // resp, err := s.downstream.OpenEphemeralResource(ctx, req) + resp, err := ephemeralResourceProviderServer.OpenEphemeralResource(ctx, req) + + if err != nil { + logging.ProtocolError(ctx, "Error from downstream", map[string]any{logging.KeyError: err}) + return nil, err + } + + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) + logging.ProtocolData(ctx, s.protocolDataDir, rpc, "Response", "Result", resp.Result) + tf6serverlogging.Deferred(ctx, resp.Deferred) + + if resp.Deferred != nil && (req.ClientCapabilities == nil || !req.ClientCapabilities.DeferralAllowed) { + resp.Diagnostics = append(resp.Diagnostics, invalidDeferredResponseDiag(resp.Deferred.Reason)) + } + + protoResp := toproto.OpenEphemeralResource_Response(resp) + + return protoResp, nil +} + +func (s *server) RenewEphemeralResource(ctx context.Context, protoReq *tfplugin6.RenewEphemeralResource_Request) (*tfplugin6.RenewEphemeralResource_Response, error) { + rpc := "RenewEphemeralResource" + ctx = s.loggingContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + ctx = logging.EphemeralResourceContext(ctx, protoReq.TypeName) + ctx = s.stoppableContext(ctx) + logging.ProtocolTrace(ctx, "Received request") + defer logging.ProtocolTrace(ctx, "Served request") + + // TODO: Remove this check and error in preference of + // s.downstream.RenewEphemeralResource below once ProviderServer interface + // implements the EphemeralResourceServer RPC methods. + // nolint:staticcheck + ephemeralResourceProviderServer, ok := s.downstream.(tfprotov6.ProviderServerWithEphemeralResources) + if !ok { + logging.ProtocolError(ctx, "ProviderServer does not implement RenewEphemeralResource") + + protoResp := &tfplugin6.RenewEphemeralResource_Response{ + Diagnostics: []*tfplugin6.Diagnostic{ + { + Severity: tfplugin6.Diagnostic_ERROR, + Summary: "Provider Renew Ephemeral Resource Not Implemented", + Detail: "A RenewEphemeralResource call was received by the provider, however the provider does not implement the call. " + + "Either upgrade the provider to a version that implements ephemeral resource support or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return protoResp, nil + } + + req := fromproto.RenewEphemeralResourceRequest(protoReq) + + ctx = tf6serverlogging.DownstreamRequest(ctx) + + // TODO: Update this to call downstream once optional interface is removed + // resp, err := s.downstream.RenewEphemeralResource(ctx, req) + resp, err := ephemeralResourceProviderServer.RenewEphemeralResource(ctx, req) + + if err != nil { + logging.ProtocolError(ctx, "Error from downstream", map[string]any{logging.KeyError: err}) + return nil, err + } + + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) + + protoResp := toproto.RenewEphemeralResource_Response(resp) + + return protoResp, nil +} + +func (s *server) CloseEphemeralResource(ctx context.Context, protoReq *tfplugin6.CloseEphemeralResource_Request) (*tfplugin6.CloseEphemeralResource_Response, error) { + rpc := "CloseEphemeralResource" + ctx = s.loggingContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + ctx = logging.EphemeralResourceContext(ctx, protoReq.TypeName) + ctx = s.stoppableContext(ctx) + logging.ProtocolTrace(ctx, "Received request") + defer logging.ProtocolTrace(ctx, "Served request") + + // TODO: Remove this check and error in preference of + // s.downstream.CloseEphemeralResource below once ProviderServer interface + // implements the EphemeralResourceServer RPC methods. + // nolint:staticcheck + ephemeralResourceProviderServer, ok := s.downstream.(tfprotov6.ProviderServerWithEphemeralResources) + if !ok { + logging.ProtocolError(ctx, "ProviderServer does not implement CloseEphemeralResource") + + protoResp := &tfplugin6.CloseEphemeralResource_Response{ + Diagnostics: []*tfplugin6.Diagnostic{ + { + Severity: tfplugin6.Diagnostic_ERROR, + Summary: "Provider Close Ephemeral Resource Not Implemented", + Detail: "A CloseEphemeralResource call was received by the provider, however the provider does not implement the call. " + + "Either upgrade the provider to a version that implements ephemeral resource support or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return protoResp, nil + } + + req := fromproto.CloseEphemeralResourceRequest(protoReq) + + ctx = tf6serverlogging.DownstreamRequest(ctx) + + // TODO: Update this to call downstream once optional interface is removed + // resp, err := s.downstream.CloseEphemeralResource(ctx, req) + resp, err := ephemeralResourceProviderServer.CloseEphemeralResource(ctx, req) + + if err != nil { + logging.ProtocolError(ctx, "Error from downstream", map[string]any{logging.KeyError: err}) + return nil, err + } + + tf6serverlogging.DownstreamResponse(ctx, resp.Diagnostics) + + protoResp := toproto.CloseEphemeralResource_Response(resp) + + return protoResp, nil +} + func invalidDeferredResponseDiag(reason tfprotov6.DeferredReason) *tfprotov6.Diagnostic { return &tfprotov6.Diagnostic{ Severity: tfprotov6.DiagnosticSeverityError, diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/diagnostics.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/diagnostics.go index 4348d239f597..e0761ff26c01 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/diagnostics.go +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/diagnostics.go @@ -26,6 +26,27 @@ func dataSourceMissingError(typeName string) *tfprotov5.Diagnostic { } } +func ephemeralResourceDuplicateError(typeName string) *tfprotov5.Diagnostic { + return &tfprotov5.Diagnostic{ + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "Invalid Provider Server Combination", + Detail: "The combined provider has multiple implementations of the same ephemeral resource type across underlying providers. " + + "Ephemeral resource types must be implemented by only one underlying provider. " + + "This is always an issue in the provider implementation and should be reported to the provider developers.\n\n" + + "Duplicate ephemeral resource type: " + typeName, + } +} + +func ephemeralResourceMissingError(typeName string) *tfprotov5.Diagnostic { + return &tfprotov5.Diagnostic{ + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "Ephemeral Resource Not Implemented", + Detail: "The combined provider does not implement the requested ephemeral resource type. " + + "This is always an issue in the provider implementation and should be reported to the provider developers.\n\n" + + "Missing ephemeral resource type: " + typeName, + } +} + func diagnosticsHasError(diagnostics []*tfprotov5.Diagnostic) bool { for _, diagnostic := range diagnostics { if diagnostic == nil { diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server.go index 1d42776d603b..ba23971b405c 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server.go +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server.go @@ -8,22 +8,14 @@ import ( "sync" "github.com/hashicorp/terraform-plugin-go/tfprotov5" - "github.com/hashicorp/terraform-plugin-mux/internal/logging" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + + "github.com/hashicorp/terraform-plugin-mux/internal/logging" ) var _ tfprotov5.ProviderServer = &muxServer{} -// Temporarily verify that v5tov6Server implements new RPCs correctly. -// Reference: https://github.com/hashicorp/terraform-plugin-mux/issues/210 -// Reference: https://github.com/hashicorp/terraform-plugin-mux/issues/219 -var ( - _ tfprotov5.FunctionServer = &muxServer{} - //nolint:staticcheck // Intentional verification of interface implementation. - _ tfprotov5.ResourceServerWithMoveResourceState = &muxServer{} -) - // muxServer is a gRPC server implementation that stands in front of other // gRPC servers, routing requests to them as if they were a single server. It // should always be instantiated by calling NewMuxServer(). @@ -31,6 +23,9 @@ type muxServer struct { // Routing for data source types dataSources map[string]tfprotov5.ProviderServer + // Routing for ephemeral resource types + ephemeralResources map[string]tfprotov5.ProviderServer + // Routing for functions functions map[string]tfprotov5.ProviderServer @@ -99,6 +94,41 @@ func (s *muxServer) getDataSourceServer(ctx context.Context, typeName string) (t return server, s.serverDiscoveryDiagnostics, nil } +func (s *muxServer) getEphemeralResourceServer(ctx context.Context, typeName string) (tfprotov5.ProviderServer, []*tfprotov5.Diagnostic, error) { + s.serverDiscoveryMutex.RLock() + server, ok := s.ephemeralResources[typeName] + discoveryComplete := s.serverDiscoveryComplete + s.serverDiscoveryMutex.RUnlock() + + if discoveryComplete { + if ok { + return server, s.serverDiscoveryDiagnostics, nil + } + + return nil, []*tfprotov5.Diagnostic{ + ephemeralResourceMissingError(typeName), + }, nil + } + + err := s.serverDiscovery(ctx) + + if err != nil || diagnosticsHasError(s.serverDiscoveryDiagnostics) { + return nil, s.serverDiscoveryDiagnostics, err + } + + s.serverDiscoveryMutex.RLock() + server, ok = s.ephemeralResources[typeName] + s.serverDiscoveryMutex.RUnlock() + + if !ok { + return nil, []*tfprotov5.Diagnostic{ + ephemeralResourceMissingError(typeName), + }, nil + } + + return server, s.serverDiscoveryDiagnostics, nil +} + func (s *muxServer) getFunctionServer(ctx context.Context, name string) (tfprotov5.ProviderServer, []*tfprotov5.Diagnostic, error) { s.serverDiscoveryMutex.RLock() server, ok := s.functions[name] @@ -172,7 +202,7 @@ func (s *muxServer) getResourceServer(ctx context.Context, typeName string) (tfp // serverDiscovery will populate the mux server "routing" for functions and // resource types by calling all underlying server GetMetadata RPC and falling // back to GetProviderSchema RPC. It is intended to only be called through -// getDataSourceServer, getFunctionServer, and getResourceServer. +// getDataSourceServer, getEphemeralResourceServer, getFunctionServer, and getResourceServer. // // The error return represents gRPC errors, which except for the GetMetadata // call returning the gRPC unimplemented error, is always returned. @@ -210,6 +240,16 @@ func (s *muxServer) serverDiscovery(ctx context.Context) error { s.dataSources[serverDataSource.TypeName] = server } + for _, serverEphemeralResource := range metadataResp.EphemeralResources { + if _, ok := s.ephemeralResources[serverEphemeralResource.TypeName]; ok { + s.serverDiscoveryDiagnostics = append(s.serverDiscoveryDiagnostics, ephemeralResourceDuplicateError(serverEphemeralResource.TypeName)) + + continue + } + + s.ephemeralResources[serverEphemeralResource.TypeName] = server + } + for _, serverFunction := range metadataResp.Functions { if _, ok := s.functions[serverFunction.Name]; ok { s.serverDiscoveryDiagnostics = append(s.serverDiscoveryDiagnostics, functionDuplicateError(serverFunction.Name)) @@ -262,6 +302,16 @@ func (s *muxServer) serverDiscovery(ctx context.Context) error { s.dataSources[typeName] = server } + for typeName := range providerSchemaResp.EphemeralResourceSchemas { + if _, ok := s.ephemeralResources[typeName]; ok { + s.serverDiscoveryDiagnostics = append(s.serverDiscoveryDiagnostics, ephemeralResourceDuplicateError(typeName)) + + continue + } + + s.ephemeralResources[typeName] = server + } + for name := range providerSchemaResp.Functions { if _, ok := s.functions[name]; ok { s.serverDiscoveryDiagnostics = append(s.serverDiscoveryDiagnostics, functionDuplicateError(name)) @@ -298,9 +348,11 @@ func (s *muxServer) serverDiscovery(ctx context.Context) error { // - Only one provider implements each managed resource // - Only one provider implements each data source // - Only one provider implements each function +// - Only one provider implements each ephemeral resource func NewMuxServer(_ context.Context, servers ...func() tfprotov5.ProviderServer) (*muxServer, error) { result := muxServer{ dataSources: make(map[string]tfprotov5.ProviderServer), + ephemeralResources: make(map[string]tfprotov5.ProviderServer), functions: make(map[string]tfprotov5.ProviderServer), resources: make(map[string]tfprotov5.ProviderServer), resourceCapabilities: make(map[string]*tfprotov5.ServerCapabilities), diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_CallFunction.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_CallFunction.go index 415db35422b4..ca6039d27590 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_CallFunction.go +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_CallFunction.go @@ -46,24 +46,7 @@ func (s *muxServer) CallFunction(ctx context.Context, req *tfprotov5.CallFunctio } ctx = logging.Tfprotov5ProviderServerContext(ctx, server) - - // Remove and call server.CallFunction below directly. - // Reference: https://github.com/hashicorp/terraform-plugin-mux/issues/210 - functionServer, ok := server.(tfprotov5.FunctionServer) - - if !ok { - resp := &tfprotov5.CallFunctionResponse{ - Error: &tfprotov5.FunctionError{ - Text: "Provider Functions Not Implemented: A provider-defined function call was received by the provider, however the provider does not implement functions. " + - "Either upgrade the provider to a version that implements provider-defined functions or this is a bug in Terraform that should be reported to the Terraform maintainers.", - }, - } - - return resp, nil - } - logging.MuxTrace(ctx, "calling downstream server") - // return server.CallFunction(ctx, req) - return functionServer.CallFunction(ctx, req) + return server.CallFunction(ctx, req) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_CloseEphemeralResource.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_CloseEphemeralResource.go new file mode 100644 index 000000000000..3023b426311c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_CloseEphemeralResource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package tf5muxserver + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + + "github.com/hashicorp/terraform-plugin-mux/internal/logging" +) + +func (s *muxServer) CloseEphemeralResource(ctx context.Context, req *tfprotov5.CloseEphemeralResourceRequest) (*tfprotov5.CloseEphemeralResourceResponse, error) { + rpc := "CloseEphemeralResource" + ctx = logging.InitContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + + server, diags, err := s.getEphemeralResourceServer(ctx, req.TypeName) + + if err != nil { + return nil, err + } + + if diagnosticsHasError(diags) { + return &tfprotov5.CloseEphemeralResourceResponse{ + Diagnostics: diags, + }, nil + } + + // TODO: Remove and call server.CloseEphemeralResource below directly once interface becomes required. + ephemeralResourceServer, ok := server.(tfprotov5.EphemeralResourceServer) + if !ok { + resp := &tfprotov5.CloseEphemeralResourceResponse{ + Diagnostics: []*tfprotov5.Diagnostic{ + { + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "CloseEphemeralResource Not Implemented", + Detail: "A CloseEphemeralResource call was received by the provider, however the provider does not implement CloseEphemeralResource. " + + "Either upgrade the provider to a version that implements CloseEphemeralResource or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return resp, nil + } + + ctx = logging.Tfprotov5ProviderServerContext(ctx, server) + logging.MuxTrace(ctx, "calling downstream server") + + return ephemeralResourceServer.CloseEphemeralResource(ctx, req) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetFunctions.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetFunctions.go index c8927fc0d1a9..2dde144105e3 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetFunctions.go +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetFunctions.go @@ -30,18 +30,9 @@ func (s *muxServer) GetFunctions(ctx context.Context, req *tfprotov5.GetFunction for _, server := range s.servers { ctx := logging.Tfprotov5ProviderServerContext(ctx, server) - // Remove and call server.GetFunctions below directly. - // Reference: https://github.com/hashicorp/terraform-plugin-mux/issues/210 - functionServer, ok := server.(tfprotov5.FunctionServer) - - if !ok { - continue - } - logging.MuxTrace(ctx, "calling downstream server") - // serverResp, err := server.GetFunctions(ctx, &tfprotov5.GetFunctionsRequest{}) - serverResp, err := functionServer.GetFunctions(ctx, &tfprotov5.GetFunctionsRequest{}) + serverResp, err := server.GetFunctions(ctx, &tfprotov5.GetFunctionsRequest{}) if err != nil { return resp, fmt.Errorf("error calling GetFunctions for %T: %w", server, err) diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetMetadata.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetMetadata.go index bd3e1b44461a..4e57e6645c56 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetMetadata.go +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetMetadata.go @@ -14,8 +14,8 @@ import ( // GetMetadata merges the metadata returned by the // tfprotov5.ProviderServers associated with muxServer into a single response. -// Resources and data sources must be returned from only one server or an error -// diagnostic is returned. +// Resources, data sources, ephemeral resources, and functions must be returned +// from only one server or an error diagnostic is returned. func (s *muxServer) GetMetadata(ctx context.Context, req *tfprotov5.GetMetadataRequest) (*tfprotov5.GetMetadataResponse, error) { rpc := "GetMetadata" ctx = logging.InitContext(ctx) @@ -26,6 +26,7 @@ func (s *muxServer) GetMetadata(ctx context.Context, req *tfprotov5.GetMetadataR resp := &tfprotov5.GetMetadataResponse{ DataSources: make([]tfprotov5.DataSourceMetadata, 0), + EphemeralResources: make([]tfprotov5.EphemeralResourceMetadata, 0), Functions: make([]tfprotov5.FunctionMetadata, 0), Resources: make([]tfprotov5.ResourceMetadata, 0), ServerCapabilities: serverCapabilities, @@ -54,6 +55,17 @@ func (s *muxServer) GetMetadata(ctx context.Context, req *tfprotov5.GetMetadataR resp.DataSources = append(resp.DataSources, datasource) } + for _, ephemeralResource := range serverResp.EphemeralResources { + if ephemeralResourceMetadataContainsTypeName(resp.EphemeralResources, ephemeralResource.TypeName) { + resp.Diagnostics = append(resp.Diagnostics, ephemeralResourceDuplicateError(ephemeralResource.TypeName)) + + continue + } + + s.ephemeralResources[ephemeralResource.TypeName] = server + resp.EphemeralResources = append(resp.EphemeralResources, ephemeralResource) + } + for _, function := range serverResp.Functions { if functionMetadataContainsName(resp.Functions, function.Name) { resp.Diagnostics = append(resp.Diagnostics, functionDuplicateError(function.Name)) @@ -91,6 +103,16 @@ func datasourceMetadataContainsTypeName(metadatas []tfprotov5.DataSourceMetadata return false } +func ephemeralResourceMetadataContainsTypeName(metadatas []tfprotov5.EphemeralResourceMetadata, typeName string) bool { + for _, metadata := range metadatas { + if typeName == metadata.TypeName { + return true + } + } + + return false +} + func functionMetadataContainsName(metadatas []tfprotov5.FunctionMetadata, name string) bool { for _, metadata := range metadatas { if name == metadata.Name { diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetProviderSchema.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetProviderSchema.go index 19bfd87815cf..70b24404b0e6 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetProviderSchema.go +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_GetProviderSchema.go @@ -14,8 +14,8 @@ import ( // GetProviderSchema merges the schemas returned by the // tfprotov5.ProviderServers associated with muxServer into a single schema. -// Resources and data sources must be returned from only one server. Provider -// and ProviderMeta schemas must be identical between all servers. +// Resources, data sources, ephemeral resources, and functions must be returned +// from only one server. Provider and ProviderMeta schemas must be identical between all servers. func (s *muxServer) GetProviderSchema(ctx context.Context, req *tfprotov5.GetProviderSchemaRequest) (*tfprotov5.GetProviderSchemaResponse, error) { rpc := "GetProviderSchema" ctx = logging.InitContext(ctx) @@ -25,10 +25,11 @@ func (s *muxServer) GetProviderSchema(ctx context.Context, req *tfprotov5.GetPro defer s.serverDiscoveryMutex.Unlock() resp := &tfprotov5.GetProviderSchemaResponse{ - DataSourceSchemas: make(map[string]*tfprotov5.Schema), - Functions: make(map[string]*tfprotov5.Function), - ResourceSchemas: make(map[string]*tfprotov5.Schema), - ServerCapabilities: serverCapabilities, + DataSourceSchemas: make(map[string]*tfprotov5.Schema), + EphemeralResourceSchemas: make(map[string]*tfprotov5.Schema), + Functions: make(map[string]*tfprotov5.Function), + ResourceSchemas: make(map[string]*tfprotov5.Schema), + ServerCapabilities: serverCapabilities, } for _, server := range s.servers { @@ -106,6 +107,17 @@ func (s *muxServer) GetProviderSchema(ctx context.Context, req *tfprotov5.GetPro s.functions[name] = server resp.Functions[name] = definition } + + for ephemeralResourceType, schema := range serverResp.EphemeralResourceSchemas { + if _, ok := resp.EphemeralResourceSchemas[ephemeralResourceType]; ok { + resp.Diagnostics = append(resp.Diagnostics, ephemeralResourceDuplicateError(ephemeralResourceType)) + + continue + } + + s.ephemeralResources[ephemeralResourceType] = server + resp.EphemeralResourceSchemas[ephemeralResourceType] = schema + } } s.serverDiscoveryComplete = true diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_MoveResourceState.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_MoveResourceState.go index cad4d77e46f7..93eeed64194e 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_MoveResourceState.go +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_MoveResourceState.go @@ -30,29 +30,7 @@ func (s *muxServer) MoveResourceState(ctx context.Context, req *tfprotov5.MoveRe } ctx = logging.Tfprotov5ProviderServerContext(ctx, server) - - // Remove and call server.MoveResourceState below directly. - // Reference: https://github.com/hashicorp/terraform-plugin-mux/issues/219 - //nolint:staticcheck // Intentionally verifying interface implementation - resourceServer, ok := server.(tfprotov5.ResourceServerWithMoveResourceState) - - if !ok { - resp := &tfprotov5.MoveResourceStateResponse{ - Diagnostics: []*tfprotov5.Diagnostic{ - { - Severity: tfprotov5.DiagnosticSeverityError, - Summary: "MoveResourceState Not Implemented", - Detail: "A MoveResourceState call was received by the provider, however the provider does not implement MoveResourceState. " + - "Either upgrade the provider to a version that implements MoveResourceState or this is a bug in Terraform that should be reported to the Terraform maintainers.", - }, - }, - } - - return resp, nil - } - logging.MuxTrace(ctx, "calling downstream server") - // return server.MoveResourceState(ctx, req) - return resourceServer.MoveResourceState(ctx, req) + return server.MoveResourceState(ctx, req) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_OpenEphemeralResource.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_OpenEphemeralResource.go new file mode 100644 index 000000000000..8367f7a23b14 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_OpenEphemeralResource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package tf5muxserver + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + + "github.com/hashicorp/terraform-plugin-mux/internal/logging" +) + +func (s *muxServer) OpenEphemeralResource(ctx context.Context, req *tfprotov5.OpenEphemeralResourceRequest) (*tfprotov5.OpenEphemeralResourceResponse, error) { + rpc := "OpenEphemeralResource" + ctx = logging.InitContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + + server, diags, err := s.getEphemeralResourceServer(ctx, req.TypeName) + + if err != nil { + return nil, err + } + + if diagnosticsHasError(diags) { + return &tfprotov5.OpenEphemeralResourceResponse{ + Diagnostics: diags, + }, nil + } + + // TODO: Remove and call server.OpenEphemeralResource below directly once interface becomes required. + ephemeralResourceServer, ok := server.(tfprotov5.EphemeralResourceServer) + if !ok { + resp := &tfprotov5.OpenEphemeralResourceResponse{ + Diagnostics: []*tfprotov5.Diagnostic{ + { + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "OpenEphemeralResource Not Implemented", + Detail: "A OpenEphemeralResource call was received by the provider, however the provider does not implement OpenEphemeralResource. " + + "Either upgrade the provider to a version that implements OpenEphemeralResource or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return resp, nil + } + + ctx = logging.Tfprotov5ProviderServerContext(ctx, server) + logging.MuxTrace(ctx, "calling downstream server") + + return ephemeralResourceServer.OpenEphemeralResource(ctx, req) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_RenewEphemeralResource.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_RenewEphemeralResource.go new file mode 100644 index 000000000000..e5eb9c710efa --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_RenewEphemeralResource.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package tf5muxserver + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + + "github.com/hashicorp/terraform-plugin-mux/internal/logging" +) + +func (s *muxServer) RenewEphemeralResource(ctx context.Context, req *tfprotov5.RenewEphemeralResourceRequest) (*tfprotov5.RenewEphemeralResourceResponse, error) { + rpc := "RenewEphemeralResource" + ctx = logging.InitContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + + server, diags, err := s.getEphemeralResourceServer(ctx, req.TypeName) + + if err != nil { + return nil, err + } + + if diagnosticsHasError(diags) { + return &tfprotov5.RenewEphemeralResourceResponse{ + Diagnostics: diags, + }, nil + } + + // TODO: Remove and call server.RenewEphemeralResource below directly once interface becomes required. + ephemeralResourceServer, ok := server.(tfprotov5.EphemeralResourceServer) + if !ok { + resp := &tfprotov5.RenewEphemeralResourceResponse{ + Diagnostics: []*tfprotov5.Diagnostic{ + { + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "RenewEphemeralResource Not Implemented", + Detail: "A RenewEphemeralResource call was received by the provider, however the provider does not implement RenewEphemeralResource. " + + "Either upgrade the provider to a version that implements RenewEphemeralResource or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return resp, nil + } + + ctx = logging.Tfprotov5ProviderServerContext(ctx, server) + logging.MuxTrace(ctx, "calling downstream server") + + return ephemeralResourceServer.RenewEphemeralResource(ctx, req) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_ValidateEphemeralResourceConfig.go b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_ValidateEphemeralResourceConfig.go new file mode 100644 index 000000000000..1468f7e0b79c --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-mux/tf5muxserver/mux_server_ValidateEphemeralResourceConfig.go @@ -0,0 +1,52 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package tf5muxserver + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-go/tfprotov5" + + "github.com/hashicorp/terraform-plugin-mux/internal/logging" +) + +func (s *muxServer) ValidateEphemeralResourceConfig(ctx context.Context, req *tfprotov5.ValidateEphemeralResourceConfigRequest) (*tfprotov5.ValidateEphemeralResourceConfigResponse, error) { + rpc := "ValidateEphemeralResourceTypeConfig" + ctx = logging.InitContext(ctx) + ctx = logging.RpcContext(ctx, rpc) + + server, diags, err := s.getEphemeralResourceServer(ctx, req.TypeName) + + if err != nil { + return nil, err + } + + if diagnosticsHasError(diags) { + return &tfprotov5.ValidateEphemeralResourceConfigResponse{ + Diagnostics: diags, + }, nil + } + + // TODO: Remove and call server.ValidateEphemeralResourceConfig below directly once interface becomes required. + ephemeralResourceServer, ok := server.(tfprotov5.EphemeralResourceServer) + if !ok { + resp := &tfprotov5.ValidateEphemeralResourceConfigResponse{ + Diagnostics: []*tfprotov5.Diagnostic{ + { + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "ValidateEphemeralResourceConfig Not Implemented", + Detail: "A ValidateEphemeralResourceConfig call was received by the provider, however the provider does not implement ValidateEphemeralResourceConfig. " + + "Either upgrade the provider to a version that implements ValidateEphemeralResourceConfig or this is a bug in Terraform that should be reported to the Terraform maintainers.", + }, + }, + } + + return resp, nil + } + + ctx = logging.Tfprotov5ProviderServerContext(ctx, server) + logging.MuxTrace(ctx, "calling downstream server") + + return ephemeralResourceServer.ValidateEphemeralResourceConfig(ctx, req) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/logging.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/logging.go index ea0764d13ad2..d012245f0352 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/logging.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging/logging.go @@ -90,7 +90,7 @@ func LogOutput(t testing.T) (logOutput io.Writer, err error) { // SetOutput checks for a log destination with LogOutput, and calls // log.SetOutput with the result. If LogOutput returns nil, SetOutput uses -// io.Discard. Any error from LogOutout is fatal. +// io.Discard. Any error from LogOutput is fatal. func SetOutput(t testing.T) { out, err := LogOutput(t) if err != nil { diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/core_schema.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/core_schema.go index 736af218da24..bb91e0013df8 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/core_schema.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/core_schema.go @@ -123,7 +123,7 @@ func (m schemaMap) CoreConfigSchema() *configschema.Block { // whose elem is a whole resource. func (s *Schema) coreConfigSchemaAttribute() *configschema.Attribute { // The Schema.DefaultFunc capability adds some extra weirdness here since - // it can be combined with "Required: true" to create a sitution where + // it can be combined with "Required: true" to create a situation where // required-ness is conditional. Terraform Core doesn't share this concept, // so we must sniff for this possibility here and conditionally turn // off the "Required" flag if it looks like the DefaultFunc is going diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/deferred.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/deferred.go new file mode 100644 index 000000000000..a02efef104ef --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/deferred.go @@ -0,0 +1,45 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package schema + +// MAINTAINER NOTE: Only PROVIDER_CONFIG_UNKNOWN (enum value 2 in the plugin-protocol) is relevant +// for SDKv2. Since (Deferred).Reason is mapped directly to the plugin-protocol, +// the other enum values are intentionally omitted here. +const ( + // DeferredReasonUnknown is used to indicate an invalid `DeferredReason`. + // Provider developers should not use it. + DeferredReasonUnknown DeferredReason = 0 + + // DeferredReasonProviderConfigUnknown represents a deferred reason caused + // by unknown provider configuration. + DeferredReasonProviderConfigUnknown DeferredReason = 2 +) + +// Deferred is used to indicate to Terraform that a resource or data source is not able +// to be applied yet and should be skipped (deferred). After completing an apply that has deferred actions, +// the practitioner can then execute additional plan and apply “rounds” to eventually reach convergence +// where there are no remaining deferred actions. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type Deferred struct { + // Reason represents the deferred reason. + Reason DeferredReason +} + +// DeferredReason represents different reasons for deferring a change. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type DeferredReason int32 + +func (d DeferredReason) String() string { + switch d { + case 0: + return "Unknown" + case 2: + return "Provider Config Unknown" + } + return "Unknown" +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/field_reader_config.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/field_reader_config.go index df317c20bb0b..91b7412fcc08 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/field_reader_config.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/field_reader_config.go @@ -269,7 +269,7 @@ func (r *ConfigFieldReader) readSet( return FieldReadResult{Value: set}, nil } - // If the list is computed, the set is necessarilly computed + // If the list is computed, the set is necessarily computed if raw.Computed { return FieldReadResult{ Value: set, diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go index 70477da45aa2..d9870cbc8474 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/grpc_provider.go @@ -84,6 +84,7 @@ func (s *GRPCProviderServer) GetMetadata(ctx context.Context, req *tfprotov5.Get resp := &tfprotov5.GetMetadataResponse{ DataSources: make([]tfprotov5.DataSourceMetadata, 0, len(s.provider.DataSourcesMap)), + EphemeralResources: make([]tfprotov5.EphemeralResourceMetadata, 0), Functions: make([]tfprotov5.FunctionMetadata, 0), Resources: make([]tfprotov5.ResourceMetadata, 0, len(s.provider.ResourcesMap)), ServerCapabilities: s.serverCapabilities(), @@ -110,10 +111,11 @@ func (s *GRPCProviderServer) GetProviderSchema(ctx context.Context, req *tfproto logging.HelperSchemaTrace(ctx, "Getting provider schema") resp := &tfprotov5.GetProviderSchemaResponse{ - DataSourceSchemas: make(map[string]*tfprotov5.Schema, len(s.provider.DataSourcesMap)), - Functions: make(map[string]*tfprotov5.Function, 0), - ResourceSchemas: make(map[string]*tfprotov5.Schema, len(s.provider.ResourcesMap)), - ServerCapabilities: s.serverCapabilities(), + DataSourceSchemas: make(map[string]*tfprotov5.Schema, len(s.provider.DataSourcesMap)), + EphemeralResourceSchemas: make(map[string]*tfprotov5.Schema, 0), + Functions: make(map[string]*tfprotov5.Function, 0), + ResourceSchemas: make(map[string]*tfprotov5.Schema, len(s.provider.ResourcesMap)), + ServerCapabilities: s.serverCapabilities(), } resp.Provider = &tfprotov5.Schema{ @@ -501,7 +503,7 @@ func (s *GRPCProviderServer) upgradeJSONState(ctx context.Context, version int, // Remove any attributes no longer present in the schema, so that the json can // be correctly decoded. func (s *GRPCProviderServer) removeAttributes(ctx context.Context, v interface{}, ty cty.Type) { - // we're only concerned with finding maps that corespond to object + // we're only concerned with finding maps that correspond to object // attributes switch v := v.(type) { case []interface{}: @@ -607,12 +609,37 @@ func (s *GRPCProviderServer) ConfigureProvider(ctx context.Context, req *tfproto // request scoped contexts, however this is a large undertaking for very large providers. ctxHack := context.WithValue(ctx, StopContextKey, s.StopContext(context.Background())) + // NOTE: This is a hack to pass the deferral_allowed field from the Terraform client to the + // underlying (provider).Configure function, which cannot be changed because the function + // signature is public. (╯°□°)╯︵ ┻━┻ + s.provider.deferralAllowed = configureDeferralAllowed(req.ClientCapabilities) + logging.HelperSchemaTrace(ctx, "Calling downstream") diags := s.provider.Configure(ctxHack, config) logging.HelperSchemaTrace(ctx, "Called downstream") resp.Diagnostics = convert.AppendProtoDiag(ctx, resp.Diagnostics, diags) + if s.provider.providerDeferred != nil { + // Check if a deferred response was incorrectly set on the provider. This would cause an error during later RPCs. + if !s.provider.deferralAllowed { + resp.Diagnostics = append(resp.Diagnostics, &tfprotov5.Diagnostic{ + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "Invalid Deferred Provider Response", + Detail: "Provider configured a deferred response for all resources and data sources but the Terraform request " + + "did not indicate support for deferred actions. This is an issue with the provider and should be reported to the provider developers.", + }) + } else { + logging.HelperSchemaDebug( + ctx, + "Provider has configured a deferred response, all associated resources and data sources will automatically return a deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.provider.providerDeferred.Reason.String(), + }, + ) + } + } + return resp, nil } @@ -632,6 +659,22 @@ func (s *GRPCProviderServer) ReadResource(ctx context.Context, req *tfprotov5.Re } schemaBlock := s.getResourceSchemaBlock(req.TypeName) + if s.provider.providerDeferred != nil { + logging.HelperSchemaDebug( + ctx, + "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.provider.providerDeferred.Reason.String(), + }, + ) + + resp.NewState = req.CurrentState + resp.Deferred = &tfprotov5.Deferred{ + Reason: tfprotov5.DeferredReason(s.provider.providerDeferred.Reason), + } + return resp, nil + } + stateVal, err := msgpack.Unmarshal(req.CurrentState.MsgPack, schemaBlock.ImpliedType()) if err != nil { resp.Diagnostics = convert.AppendProtoDiag(ctx, resp.Diagnostics, err) @@ -731,6 +774,25 @@ func (s *GRPCProviderServer) PlanResourceChange(ctx context.Context, req *tfprot resp.UnsafeToUseLegacyTypeSystem = true } + // Provider deferred response is present and the resource hasn't opted-in to CustomizeDiff being called, return early + // with proposed new state as a best effort for PlannedState. + if s.provider.providerDeferred != nil && !res.ResourceBehavior.ProviderDeferred.EnablePlanModification { + logging.HelperSchemaDebug( + ctx, + "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.provider.providerDeferred.Reason.String(), + }, + ) + + resp.PlannedState = req.ProposedNewState + resp.PlannedPrivate = req.PriorPrivate + resp.Deferred = &tfprotov5.Deferred{ + Reason: tfprotov5.DeferredReason(s.provider.providerDeferred.Reason), + } + return resp, nil + } + priorStateVal, err := msgpack.Unmarshal(req.PriorState.MsgPack, schemaBlock.ImpliedType()) if err != nil { resp.Diagnostics = convert.AppendProtoDiag(ctx, resp.Diagnostics, err) @@ -951,6 +1013,21 @@ func (s *GRPCProviderServer) PlanResourceChange(ctx context.Context, req *tfprot resp.RequiresReplace = append(resp.RequiresReplace, pathToAttributePath(p)) } + // Provider deferred response is present, add the deferred response alongside the provider-modified plan + if s.provider.providerDeferred != nil { + logging.HelperSchemaDebug( + ctx, + "Provider has deferred response configured, returning deferred response with modified plan.", + map[string]interface{}{ + logging.KeyDeferredReason: s.provider.providerDeferred.Reason.String(), + }, + ) + + resp.Deferred = &tfprotov5.Deferred{ + Reason: tfprotov5.DeferredReason(s.provider.providerDeferred.Reason), + } + } + return resp, nil } @@ -1145,6 +1222,48 @@ func (s *GRPCProviderServer) ImportResourceState(ctx context.Context, req *tfpro Type: req.TypeName, } + if s.provider.providerDeferred != nil { + logging.HelperSchemaDebug( + ctx, + "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.provider.providerDeferred.Reason.String(), + }, + ) + + // The logic for ensuring the resource type is supported by this provider is inside of (provider).ImportState + // We need to check to ensure the resource type is supported before using the schema + _, ok := s.provider.ResourcesMap[req.TypeName] + if !ok { + resp.Diagnostics = convert.AppendProtoDiag(ctx, resp.Diagnostics, fmt.Errorf("unknown resource type: %s", req.TypeName)) + return resp, nil + } + + // Since we are automatically deferring, send back an unknown value for the imported object + schemaBlock := s.getResourceSchemaBlock(req.TypeName) + unknownVal := cty.UnknownVal(schemaBlock.ImpliedType()) + unknownStateMp, err := msgpack.Marshal(unknownVal, schemaBlock.ImpliedType()) + if err != nil { + resp.Diagnostics = convert.AppendProtoDiag(ctx, resp.Diagnostics, err) + return resp, nil + } + + resp.ImportedResources = []*tfprotov5.ImportedResource{ + { + TypeName: req.TypeName, + State: &tfprotov5.DynamicValue{ + MsgPack: unknownStateMp, + }, + }, + } + + resp.Deferred = &tfprotov5.Deferred{ + Reason: tfprotov5.DeferredReason(s.provider.providerDeferred.Reason), + } + + return resp, nil + } + newInstanceStates, err := s.provider.ImportState(ctx, info, req.ID) if err != nil { resp.Diagnostics = convert.AppendProtoDiag(ctx, resp.Diagnostics, err) @@ -1254,6 +1373,32 @@ func (s *GRPCProviderServer) ReadDataSource(ctx context.Context, req *tfprotov5. schemaBlock := s.getDatasourceSchemaBlock(req.TypeName) + if s.provider.providerDeferred != nil { + logging.HelperSchemaDebug( + ctx, + "Provider has deferred response configured, automatically returning deferred response.", + map[string]interface{}{ + logging.KeyDeferredReason: s.provider.providerDeferred.Reason.String(), + }, + ) + + // Send an unknown value for the data source + unknownVal := cty.UnknownVal(schemaBlock.ImpliedType()) + unknownStateMp, err := msgpack.Marshal(unknownVal, schemaBlock.ImpliedType()) + if err != nil { + resp.Diagnostics = convert.AppendProtoDiag(ctx, resp.Diagnostics, err) + return resp, nil + } + + resp.State = &tfprotov5.DynamicValue{ + MsgPack: unknownStateMp, + } + resp.Deferred = &tfprotov5.Deferred{ + Reason: tfprotov5.DeferredReason(s.provider.providerDeferred.Reason), + } + return resp, nil + } + configVal, err := msgpack.Unmarshal(req.Config.MsgPack, schemaBlock.ImpliedType()) if err != nil { resp.Diagnostics = convert.AppendProtoDiag(ctx, resp.Diagnostics, err) @@ -1339,6 +1484,78 @@ func (s *GRPCProviderServer) GetFunctions(ctx context.Context, req *tfprotov5.Ge return resp, nil } +func (s *GRPCProviderServer) ValidateEphemeralResourceConfig(ctx context.Context, req *tfprotov5.ValidateEphemeralResourceConfigRequest) (*tfprotov5.ValidateEphemeralResourceConfigResponse, error) { + ctx = logging.InitContext(ctx) + + logging.HelperSchemaTrace(ctx, "Returning error for ephemeral resource validate") + + resp := &tfprotov5.ValidateEphemeralResourceConfigResponse{ + Diagnostics: []*tfprotov5.Diagnostic{ + { + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "Unknown Ephemeral Resource Type", + Detail: fmt.Sprintf("The %q ephemeral resource type is not supported by this provider.", req.TypeName), + }, + }, + } + + return resp, nil +} + +func (s *GRPCProviderServer) OpenEphemeralResource(ctx context.Context, req *tfprotov5.OpenEphemeralResourceRequest) (*tfprotov5.OpenEphemeralResourceResponse, error) { + ctx = logging.InitContext(ctx) + + logging.HelperSchemaTrace(ctx, "Returning error for ephemeral resource open") + + resp := &tfprotov5.OpenEphemeralResourceResponse{ + Diagnostics: []*tfprotov5.Diagnostic{ + { + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "Unknown Ephemeral Resource Type", + Detail: fmt.Sprintf("The %q ephemeral resource type is not supported by this provider.", req.TypeName), + }, + }, + } + + return resp, nil +} + +func (s *GRPCProviderServer) RenewEphemeralResource(ctx context.Context, req *tfprotov5.RenewEphemeralResourceRequest) (*tfprotov5.RenewEphemeralResourceResponse, error) { + ctx = logging.InitContext(ctx) + + logging.HelperSchemaTrace(ctx, "Returning error for ephemeral resource renew") + + resp := &tfprotov5.RenewEphemeralResourceResponse{ + Diagnostics: []*tfprotov5.Diagnostic{ + { + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "Unknown Ephemeral Resource Type", + Detail: fmt.Sprintf("The %q ephemeral resource type is not supported by this provider.", req.TypeName), + }, + }, + } + + return resp, nil +} + +func (s *GRPCProviderServer) CloseEphemeralResource(ctx context.Context, req *tfprotov5.CloseEphemeralResourceRequest) (*tfprotov5.CloseEphemeralResourceResponse, error) { + ctx = logging.InitContext(ctx) + + logging.HelperSchemaTrace(ctx, "Returning error for ephemeral resource close") + + resp := &tfprotov5.CloseEphemeralResourceResponse{ + Diagnostics: []*tfprotov5.Diagnostic{ + { + Severity: tfprotov5.DiagnosticSeverityError, + Summary: "Unknown Ephemeral Resource Type", + Detail: fmt.Sprintf("The %q ephemeral resource type is not supported by this provider.", req.TypeName), + }, + }, + } + + return resp, nil +} + func pathToAttributePath(path cty.Path) *tftypes.AttributePath { var steps []tftypes.AttributePathStep @@ -1450,7 +1667,7 @@ func stripSchema(s *Schema) *Schema { } // Zero values and empty containers may be interchanged by the apply process. -// When there is a discrepency between src and dst value being null or empty, +// When there is a discrepancy between src and dst value being null or empty, // prefer the src value. This takes a little more liberty with set types, since // we can't correlate modified set values. In the case of sets, if the src set // was wholly known we assume the value was correctly applied and copy that @@ -1674,3 +1891,14 @@ func validateConfigNulls(ctx context.Context, v cty.Value, path cty.Path) []*tfp return diags } + +// Helper function that check a ConfigureProviderClientCapabilities struct to determine if a deferred response can be +// returned to the Terraform client. If no ConfigureProviderClientCapabilities have been passed from the client, then false +// is returned. +func configureDeferralAllowed(in *tfprotov5.ConfigureProviderClientCapabilities) bool { + if in == nil { + return false + } + + return in.DeferralAllowed +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/provider.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/provider.go index 55ba6e2ce805..a75ae2fc28b3 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/provider.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/provider.go @@ -92,12 +92,75 @@ type Provider struct { // cancellation signal. This function can yield Diagnostics. ConfigureContextFunc ConfigureContextFunc + // ConfigureProvider is a function for configuring the provider that + // supports additional features, such as returning a deferred response. + // + // Providers that require these additional features should use this function + // as a replacement for ConfigureContextFunc. + // + // This function receives a context.Context that will cancel when + // Terraform sends a cancellation signal. + ConfigureProvider func(context.Context, ConfigureProviderRequest, *ConfigureProviderResponse) + // configured is enabled after a Configure() call configured bool meta interface{} TerraformVersion string + + // deferralAllowed is populated by the ConfigureProvider RPC request and + // should only be used during provider configuration. + // + // MAINTAINER NOTE: Other RPCs that need to check if deferrals are allowed + // should use the relevant RPC request field in ClientCapabilities. + deferralAllowed bool + + // providerDeferred is a global deferred response that will be returned automatically + // for all resources and data sources associated to this provider server. + providerDeferred *Deferred +} + +type ConfigureProviderRequest struct { + // DeferralAllowed indicates whether the Terraform request configuring + // the provider allows a deferred response. This field should be used to determine + // if `(schema.ConfigureProviderResponse).Deferred` can be set. + // + // If true: `(schema.ConfigureProviderResponse).Deferred` can be + // set to automatically defer all resources and data sources associated + // with this provider. + // + // If false: `(schema.ConfigureProviderResponse).Deferred` + // will return an error diagnostic if set. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + DeferralAllowed bool + + // ResourceData is used to query and set the attributes of a resource. + ResourceData *ResourceData +} + +type ConfigureProviderResponse struct { + // Meta is stored and passed into the subsequent resources as the meta + // parameter. This return value is usually used to pass along a + // configured API client, a configuration structure, etc. + Meta interface{} + + // Diagnostics report errors or warnings related to configuring the + // provider. An empty slice indicates success, with no warnings or + // errors generated. + Diagnostics diag.Diagnostics + + // Deferred indicates that Terraform should automatically defer + // all resources and data sources for this provider. + // + // This field can only be set if + // `(schema.ConfigureProviderRequest).DeferralAllowed` is true. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + Deferred *Deferred } // ConfigureFunc is the function used to configure a Provider. @@ -262,7 +325,7 @@ func (p *Provider) ValidateResource( // This won't be called at all if no provider configuration is given. func (p *Provider) Configure(ctx context.Context, c *terraform.ResourceConfig) diag.Diagnostics { // No configuration - if p.ConfigureFunc == nil && p.ConfigureContextFunc == nil { + if p.ConfigureFunc == nil && p.ConfigureContextFunc == nil && p.ConfigureProvider == nil { return nil } @@ -313,6 +376,24 @@ func (p *Provider) Configure(ctx context.Context, c *terraform.ResourceConfig) d p.meta = meta } + if p.ConfigureProvider != nil { + req := ConfigureProviderRequest{ + DeferralAllowed: p.deferralAllowed, + ResourceData: data, + } + resp := ConfigureProviderResponse{} + + p.ConfigureProvider(ctx, req, &resp) + + diags = append(diags, resp.Diagnostics...) + if diags.HasError() { + return diags + } + + p.meta = resp.Meta + p.providerDeferred = resp.Deferred + } + p.configured = true return diags diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go index 7564a0aff23c..ae7bd5975262 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go @@ -189,7 +189,7 @@ type Resource struct { // This implementation is optional. If omitted, all Schema must enable // the ForceNew field and any practitioner changes that would have // caused and update will instead destroy and recreate the infrastructure - // compontent. + // component. // // The *ResourceData parameter contains the plan and state data for this // managed resource instance. The available data in the Get* methods is the @@ -321,7 +321,7 @@ type Resource struct { // This implementation is optional. If omitted, all Schema must enable // the ForceNew field and any practitioner changes that would have // caused and update will instead destroy and recreate the infrastructure - // compontent. + // component. // // The Context parameter stores SDK information, such as loggers and // timeout deadlines. It also is wired to receive any cancellation from @@ -460,7 +460,7 @@ type Resource struct { // This implementation is optional. If omitted, all Schema must enable // the ForceNew field and any practitioner changes that would have // caused and update will instead destroy and recreate the infrastructure - // compontent. + // component. // // The Context parameter stores SDK information, such as loggers. It also // is wired to receive any cancellation from Terraform such as a system or @@ -640,6 +640,34 @@ type Resource struct { // changes with it enabled. However, data-based errors typically require // logic fixes that should be applicable for both SDKs to be resolved. EnableLegacyTypeSystemPlanErrors bool + + // ResourceBehavior is used to control SDK-specific logic when + // interacting with this resource. + ResourceBehavior ResourceBehavior +} + +// ResourceBehavior controls SDK-specific logic when interacting +// with a resource. +type ResourceBehavior struct { + // ProviderDeferred enables provider-defined logic to be executed + // in the case of a deferred response from (Provider).ConfigureProvider. + // + // NOTE: This functionality is related to deferred action support, which is currently experimental and is subject + // to change or break without warning. It is not protected by version compatibility guarantees. + ProviderDeferred ProviderDeferredBehavior +} + +// ProviderDeferredBehavior enables provider-defined logic to be executed +// in the case of a deferred response from provider configuration. +// +// NOTE: This functionality is related to deferred action support, which is currently experimental and is subject +// to change or break without warning. It is not protected by version compatibility guarantees. +type ProviderDeferredBehavior struct { + // When EnablePlanModification is true, the SDK will execute provider-defined logic + // during plan (CustomizeDiff, Default, DiffSuppressFunc, etc.) if ConfigureProvider + // returns a deferred response. The SDK will then automatically return a deferred response + // along with the modified plan. + EnablePlanModification bool } // SchemaMap returns the schema information for this Resource whether it is @@ -720,7 +748,7 @@ type StateUpgrader struct { // Upgrade takes the JSON encoded state and the provider meta value, and // upgrades the state one single schema version. The provided state is - // deocded into the default json types using a map[string]interface{}. It + // decoded into the default json types using a map[string]interface{}. It // is up to the StateUpgradeFunc to ensure that the returned value can be // encoded using the new schema. Upgrade StateUpgradeFunc @@ -845,7 +873,7 @@ func (r *Resource) Apply( data.providerMeta = s.ProviderMeta } - // Instance Diff shoould have the timeout info, need to copy it over to the + // Instance Diff should have the timeout info, need to copy it over to the // ResourceData meta rt := ResourceTimeout{} if _, ok := d.Meta[TimeoutKey]; ok { diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_data.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_data.go index 4380db7e1a80..56306a190f86 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_data.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_data.go @@ -82,7 +82,7 @@ func (d *ResourceData) GetChange(key string) (interface{}, interface{}) { // GetOk returns the data for the given key and whether or not the key // has been set to a non-zero value at some point. // -// The first result will not necessarilly be nil if the value doesn't exist. +// The first result will not necessarily be nil if the value doesn't exist. // The second result should be checked to determine this information. func (d *ResourceData) GetOk(key string) (interface{}, bool) { r := d.getRaw(key, getSourceSet) diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_timeout.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_timeout.go index 90d29e6259a6..72fd6602ea8d 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_timeout.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_timeout.go @@ -132,7 +132,7 @@ func (t *ResourceTimeout) ConfigDecode(s *Resource, c *terraform.ResourceConfig) timeout = t.Default } - // If the resource has not delcared this in the definition, then error + // If the resource has not declared this in the definition, then error // with an unsupported message if timeout == nil { return unsupportedTimeoutKeyError(timeKey) diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go index 176288b0cd80..317459f65bed 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/schema.go @@ -145,7 +145,7 @@ type Schema struct { // // The key benefit of activating this flag is that the result of Read or // ReadContext will be cleaned of normalization-only changes in the same - // way as the planning result would normaly be, which therefore prevents + // way as the planning result would normally be, which therefore prevents // churn for downstream expressions deriving from this attribute and // prevents incorrect "Values changed outside of Terraform" messages // when the remote API returns values which have the same meaning as the @@ -1099,7 +1099,7 @@ func isValidFieldName(name string) bool { } // resourceDiffer is an interface that is used by the private diff functions. -// This helps facilitate diff logic for both ResourceData and ResoureDiff with +// This helps facilitate diff logic for both ResourceData and ResourceDiff with // minimal divergence in code. type resourceDiffer interface { diffChange(string) (interface{}, interface{}, bool, bool, bool) @@ -1119,24 +1119,24 @@ func (m schemaMap) diff( d resourceDiffer, all bool) error { - unsupressedDiff := new(terraform.InstanceDiff) - unsupressedDiff.Attributes = make(map[string]*terraform.ResourceAttrDiff) + unsuppressedDiff := new(terraform.InstanceDiff) + unsuppressedDiff.Attributes = make(map[string]*terraform.ResourceAttrDiff) var err error switch schema.Type { case TypeBool, TypeInt, TypeFloat, TypeString: - err = m.diffString(k, schema, unsupressedDiff, d, all) + err = m.diffString(k, schema, unsuppressedDiff, d, all) case TypeList: - err = m.diffList(ctx, k, schema, unsupressedDiff, d, all) + err = m.diffList(ctx, k, schema, unsuppressedDiff, d, all) case TypeMap: - err = m.diffMap(k, schema, unsupressedDiff, d, all) + err = m.diffMap(k, schema, unsuppressedDiff, d, all) case TypeSet: - err = m.diffSet(ctx, k, schema, unsupressedDiff, d, all) + err = m.diffSet(ctx, k, schema, unsuppressedDiff, d, all) default: err = fmt.Errorf("%s: unknown type %#v", k, schema.Type) } - for attrK, attrV := range unsupressedDiff.Attributes { + for attrK, attrV := range unsuppressedDiff.Attributes { switch rd := d.(type) { case *ResourceData: if schema.DiffSuppressFunc != nil && attrV != nil && diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/set.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/set.go index e897817fd302..6ef786bd0c46 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/set.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/set.go @@ -219,7 +219,7 @@ func (s *Set) add(item interface{}, computed bool) string { func (s *Set) hash(item interface{}) string { code := s.F(item) - // Always return a nonnegative hashcode. + // Always return a non-negative hashcode. if code < 0 { code = -code } diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/float.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/float.go index dfc261842d3b..2573c3378651 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/float.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/float.go @@ -10,8 +10,8 @@ import ( ) // FloatBetween returns a SchemaValidateFunc which tests if the provided value -// is of type float64 and is between min and max (inclusive). -func FloatBetween(min, max float64) schema.SchemaValidateFunc { +// is of type float64 and is between minVal and maxVal (inclusive). +func FloatBetween(minVal, maxVal float64) schema.SchemaValidateFunc { return func(i interface{}, k string) (s []string, es []error) { v, ok := i.(float64) if !ok { @@ -19,8 +19,8 @@ func FloatBetween(min, max float64) schema.SchemaValidateFunc { return } - if v < min || v > max { - es = append(es, fmt.Errorf("expected %s to be in the range (%f - %f), got %f", k, min, max, v)) + if v < minVal || v > maxVal { + es = append(es, fmt.Errorf("expected %s to be in the range (%f - %f), got %f", k, minVal, maxVal, v)) return } @@ -29,8 +29,8 @@ func FloatBetween(min, max float64) schema.SchemaValidateFunc { } // FloatAtLeast returns a SchemaValidateFunc which tests if the provided value -// is of type float and is at least min (inclusive) -func FloatAtLeast(min float64) schema.SchemaValidateFunc { +// is of type float and is at least minVal (inclusive) +func FloatAtLeast(minVal float64) schema.SchemaValidateFunc { return func(i interface{}, k string) (s []string, es []error) { v, ok := i.(float64) if !ok { @@ -38,8 +38,8 @@ func FloatAtLeast(min float64) schema.SchemaValidateFunc { return } - if v < min { - es = append(es, fmt.Errorf("expected %s to be at least (%f), got %f", k, min, v)) + if v < minVal { + es = append(es, fmt.Errorf("expected %s to be at least (%f), got %f", k, minVal, v)) return } @@ -48,8 +48,8 @@ func FloatAtLeast(min float64) schema.SchemaValidateFunc { } // FloatAtMost returns a SchemaValidateFunc which tests if the provided value -// is of type float and is at most max (inclusive) -func FloatAtMost(max float64) schema.SchemaValidateFunc { +// is of type float and is at most maxVal (inclusive) +func FloatAtMost(maxVal float64) schema.SchemaValidateFunc { return func(i interface{}, k string) (s []string, es []error) { v, ok := i.(float64) if !ok { @@ -57,8 +57,8 @@ func FloatAtMost(max float64) schema.SchemaValidateFunc { return } - if v > max { - es = append(es, fmt.Errorf("expected %s to be at most (%f), got %f", k, max, v)) + if v > maxVal { + es = append(es, fmt.Errorf("expected %s to be at most (%f), got %f", k, maxVal, v)) return } diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/int.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/int.go index 2873897f2764..a240e447a910 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/int.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/int.go @@ -11,8 +11,8 @@ import ( ) // IntBetween returns a SchemaValidateFunc which tests if the provided value -// is of type int and is between min and max (inclusive) -func IntBetween(min, max int) schema.SchemaValidateFunc { +// is of type int and is between minVal and maxVal (inclusive) +func IntBetween(minVal, maxVal int) schema.SchemaValidateFunc { return func(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(int) if !ok { @@ -20,8 +20,8 @@ func IntBetween(min, max int) schema.SchemaValidateFunc { return warnings, errors } - if v < min || v > max { - errors = append(errors, fmt.Errorf("expected %s to be in the range (%d - %d), got %d", k, min, max, v)) + if v < minVal || v > maxVal { + errors = append(errors, fmt.Errorf("expected %s to be in the range (%d - %d), got %d", k, minVal, maxVal, v)) return warnings, errors } @@ -30,8 +30,8 @@ func IntBetween(min, max int) schema.SchemaValidateFunc { } // IntAtLeast returns a SchemaValidateFunc which tests if the provided value -// is of type int and is at least min (inclusive) -func IntAtLeast(min int) schema.SchemaValidateFunc { +// is of type int and is at least minVal (inclusive) +func IntAtLeast(minVal int) schema.SchemaValidateFunc { return func(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(int) if !ok { @@ -39,8 +39,8 @@ func IntAtLeast(min int) schema.SchemaValidateFunc { return warnings, errors } - if v < min { - errors = append(errors, fmt.Errorf("expected %s to be at least (%d), got %d", k, min, v)) + if v < minVal { + errors = append(errors, fmt.Errorf("expected %s to be at least (%d), got %d", k, minVal, v)) return warnings, errors } @@ -49,8 +49,8 @@ func IntAtLeast(min int) schema.SchemaValidateFunc { } // IntAtMost returns a SchemaValidateFunc which tests if the provided value -// is of type int and is at most max (inclusive) -func IntAtMost(max int) schema.SchemaValidateFunc { +// is of type int and is at most maxVal (inclusive) +func IntAtMost(maxVal int) schema.SchemaValidateFunc { return func(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(int) if !ok { @@ -58,8 +58,8 @@ func IntAtMost(max int) schema.SchemaValidateFunc { return warnings, errors } - if v > max { - errors = append(errors, fmt.Errorf("expected %s to be at most (%d), got %d", k, max, v)) + if v > maxVal { + errors = append(errors, fmt.Errorf("expected %s to be at most (%d), got %d", k, maxVal, v)) return warnings, errors } diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/map.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/map.go index 7c925090541f..1465859870ec 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/map.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/map.go @@ -9,23 +9,24 @@ import ( "sort" "github.com/hashicorp/go-cty/cty" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) // MapKeyLenBetween returns a SchemaValidateDiagFunc which tests if the provided value -// is of type map and the length of all keys are between min and max (inclusive) -func MapKeyLenBetween(min, max int) schema.SchemaValidateDiagFunc { +// is of type map and the length of all keys are between minVal and maxVal (inclusive) +func MapKeyLenBetween(minVal, maxVal int) schema.SchemaValidateDiagFunc { return func(v interface{}, path cty.Path) diag.Diagnostics { var diags diag.Diagnostics for _, key := range sortedKeys(v.(map[string]interface{})) { keyLen := len(key) - if keyLen < min || keyLen > max { + if keyLen < minVal || keyLen > maxVal { diags = append(diags, diag.Diagnostic{ Severity: diag.Error, Summary: "Bad map key length", - Detail: fmt.Sprintf("Map key lengths should be in the range (%d - %d): %s (length = %d)", min, max, key, keyLen), + Detail: fmt.Sprintf("Map key lengths should be in the range (%d - %d): %s (length = %d)", minVal, maxVal, key, keyLen), AttributePath: append(path, cty.IndexStep{Key: cty.StringVal(key)}), }) } @@ -36,8 +37,8 @@ func MapKeyLenBetween(min, max int) schema.SchemaValidateDiagFunc { } // MapValueLenBetween returns a SchemaValidateDiagFunc which tests if the provided value -// is of type map and the length of all values are between min and max (inclusive) -func MapValueLenBetween(min, max int) schema.SchemaValidateDiagFunc { +// is of type map and the length of all values are between minVal and maxVal (inclusive) +func MapValueLenBetween(minVal, maxVal int) schema.SchemaValidateDiagFunc { return func(v interface{}, path cty.Path) diag.Diagnostics { var diags diag.Diagnostics @@ -57,11 +58,11 @@ func MapValueLenBetween(min, max int) schema.SchemaValidateDiagFunc { } valLen := len(val.(string)) - if valLen < min || valLen > max { + if valLen < minVal || valLen > maxVal { diags = append(diags, diag.Diagnostic{ Severity: diag.Error, Summary: "Bad map value length", - Detail: fmt.Sprintf("Map value lengths should be in the range (%d - %d): %s => %v (length = %d)", min, max, key, val, valLen), + Detail: fmt.Sprintf("Map value lengths should be in the range (%d - %d): %s => %v (length = %d)", minVal, maxVal, key, val, valLen), AttributePath: append(path, cty.IndexStep{Key: cty.StringVal(key)}), }) } diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/network.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/network.go index 9bc6da2b8eee..1aadcdb981be 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/network.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/network.go @@ -99,8 +99,8 @@ func IsCIDR(i interface{}, k string) (warnings []string, errors []error) { } // IsCIDRNetwork returns a SchemaValidateFunc which tests if the provided value -// is of type string, is in valid Value network notation, and has significant bits between min and max (inclusive) -func IsCIDRNetwork(min, max int) schema.SchemaValidateFunc { +// is of type string, is in valid Value network notation, and has significant bits between minVal and maxVal (inclusive) +func IsCIDRNetwork(minVal, maxVal int) schema.SchemaValidateFunc { return func(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(string) if !ok { @@ -120,8 +120,8 @@ func IsCIDRNetwork(min, max int) schema.SchemaValidateFunc { } sigbits, _ := ipnet.Mask.Size() - if sigbits < min || sigbits > max { - errors = append(errors, fmt.Errorf("expected %q to contain a network Value with between %d and %d significant bits, got: %d", k, min, max, sigbits)) + if sigbits < minVal || sigbits > maxVal { + errors = append(errors, fmt.Errorf("expected %q to contain a network Value with between %d and %d significant bits, got: %d", k, minVal, maxVal, sigbits)) } return warnings, errors diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/strings.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/strings.go index 375a698f2c25..d8c2243937b6 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/strings.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation/strings.go @@ -70,8 +70,8 @@ func StringIsWhiteSpace(i interface{}, k string) ([]string, []error) { } // StringLenBetween returns a SchemaValidateFunc which tests if the provided value -// is of type string and has length between min and max (inclusive) -func StringLenBetween(min, max int) schema.SchemaValidateFunc { +// is of type string and has length between minVal and maxVal (inclusive) +func StringLenBetween(minVal, maxVal int) schema.SchemaValidateFunc { return func(i interface{}, k string) (warnings []string, errors []error) { v, ok := i.(string) if !ok { @@ -79,8 +79,8 @@ func StringLenBetween(min, max int) schema.SchemaValidateFunc { return warnings, errors } - if len(v) < min || len(v) > max { - errors = append(errors, fmt.Errorf("expected length of %s to be in the range (%d - %d), got %s", k, min, max, v)) + if len(v) < minVal || len(v) > maxVal { + errors = append(errors, fmt.Errorf("expected length of %s to be in the range (%d - %d), got %s", k, minVal, maxVal, v)) } return warnings, errors diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/addrs/instance_key.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/addrs/instance_key.go index 8373297f876b..56700fc05727 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/addrs/instance_key.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/addrs/instance_key.go @@ -20,7 +20,7 @@ type instanceKey interface { String() string } -// NoKey represents the absense of an instanceKey, for the single instance +// NoKey represents the absence of an instanceKey, for the single instance // of a configuration object that does not use "count" or "for_each" at all. var NoKey instanceKey diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/coerce_value.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/coerce_value.go index d12ff8cced9b..dab927c8dd47 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/coerce_value.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/coerce_value.go @@ -11,7 +11,7 @@ import ( ) // CoerceValue attempts to force the given value to conform to the type -// implied by the receiever. +// implied by the receiver. // // This is useful in situations where a configuration must be derived from // an already-decoded value. It is always better to decode directly from diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/empty_value.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/empty_value.go index 3c9573bc56ad..cc1107fa0bdc 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/empty_value.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/empty_value.go @@ -7,12 +7,12 @@ import ( "github.com/hashicorp/go-cty/cty" ) -// EmptyValue returns the "empty value" for the recieving block, which for +// EmptyValue returns the "empty value" for the receiving block, which for // a block type is a non-null object where all of the attribute values are // the empty values of the block's attributes and nested block types. // // In other words, it returns the value that would be returned if an empty -// block were decoded against the recieving schema, assuming that no required +// block were decoded against the receiving schema, assuming that no required // attribute or block constraints were honored. func (b *Block) EmptyValue() cty.Value { vals := make(map[string]cty.Value) diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/schema.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/schema.go index c445b4ba55e9..fafe3fa91ce3 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/schema.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/schema.go @@ -125,7 +125,7 @@ const ( NestingSingle // NestingGroup is similar to NestingSingle in that it calls for only a - // single instance of a given block type with no labels, but it additonally + // single instance of a given block type with no labels, but it additionally // guarantees that its result will never be null, even if the block is // absent, and instead the nested attributes and blocks will be treated // as absent in that case. (Any required attributes or blocks within the diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim/values_equiv.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim/values_equiv.go index 6b2be2239d34..37d310497573 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim/values_equiv.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim/values_equiv.go @@ -187,8 +187,8 @@ func valuesSDKEquivalentMappings(a, b cty.Value) bool { // precision in the round-trip. // // This does _not_ attempt to allow for an epsilon difference that may be -// caused by accumulated innacuracy in a float calculation, under the -// expectation that providers generally do not actually do compuations on +// caused by accumulated inaccuracy in a float calculation, under the +// expectation that providers generally do not actually do computations on // floats and instead just pass string representations of them on verbatim // to remote APIs. A remote API _itself_ may introduce inaccuracy, but that's // a problem for the provider itself to deal with, based on its knowledge of diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/environment_variables.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/environment_variables.go index 2ffc73eee6cb..5919d373a74b 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/environment_variables.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/environment_variables.go @@ -10,7 +10,7 @@ const ( // usage, this environment variable is handled by terraform-plugin-go. // // Terraform CLI's logging must be explicitly turned on before this - // environment varable can be used to reduce the SDK logging levels. It + // environment variable can be used to reduce the SDK logging levels. It // cannot be used to show only SDK logging unless all other logging levels // are turned off. EnvTfLogSdk = "TF_LOG_SDK" diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/keys.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/keys.go index 983fde437a29..ed238ea5902c 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/keys.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging/keys.go @@ -28,6 +28,9 @@ const ( // The type of resource being operated on, such as "random_pet" KeyResourceType = "tf_resource_type" + // The Deferred reason for an RPC response + KeyDeferredReason = "tf_deferred_reason" + // The name of the test being executed. KeyTestName = "test_name" diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/meta/meta.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/meta/meta.go index 7c62ee704b66..778e62279a62 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/meta/meta.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/meta/meta.go @@ -17,7 +17,7 @@ import ( // // Deprecated: Use Go standard library [runtime/debug] package build information // instead. -var SDKVersion = "2.33.0" +var SDKVersion = "2.35.0" // A pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/diff.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/diff.go index 7b988d9f3dc9..3b4179b4b3bd 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/diff.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/diff.go @@ -183,7 +183,7 @@ func (d *InstanceDiff) applyBlockDiff(path []string, attrs map[string]string, sc // check each set candidate to see if it was removed. // we need to do this, because when entire sets are removed, they may - // have the wrong key, and ony show diffs going to "" + // have the wrong key, and only show diffs going to "" if block.Nesting == configschema.NestingSet { for k := range candidateKeys { indexPrefix := strings.Join(append(path, n, k), ".") + "." @@ -359,7 +359,7 @@ func (d *InstanceDiff) applySingleAttrDiff(path []string, attrs map[string]strin return result, nil } - // check for missmatched diff values + // check for mismatched diff values if exists && old != diff.Old && old != hcl2shim.UnknownVariableValue && @@ -892,7 +892,7 @@ func (d *InstanceDiff) Same(d2 *InstanceDiff) (bool, string) { continue } - // If the last diff was a computed value then the absense of + // If the last diff was a computed value then the absence of // that value is allowed since it may mean the value ended up // being the same. if diffOld.NewComputed { diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state.go index 7d2179358a18..60723de772a7 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state.go @@ -46,7 +46,7 @@ var rootModulePath = []string{"root"} // normalizeModulePath takes a raw module path and returns a path that // has the rootModulePath prepended to it. If I could go back in time I // would've never had a rootModulePath (empty path would be root). We can -// still fix this but thats a big refactor that my branch doesn't make sense +// still fix this but that's a big refactor that my branch doesn't make sense // for. Instead, this function normalizes paths. func normalizeModulePath(p []string) addrs.ModuleInstance { // FIXME: Remove this once everyone is using addrs.ModuleInstance. @@ -799,7 +799,7 @@ func (s *OutputState) Equal(other *OutputState) bool { // module. type ModuleState struct { // Path is the import path from the root module. Modules imports are - // always disjoint, so the path represents amodule tree + // always disjoint, so the path represents a module tree Path []string `json:"path"` // Locals are kept only transiently in-memory, because we can always diff --git a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state_filter.go b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state_filter.go index caf2c79674ba..3cb5c57e5199 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state_filter.go +++ b/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/state_filter.go @@ -263,7 +263,7 @@ func (s stateFilterResultSlice) Less(i, j int) bool { return addrA.Index < addrB.Index } - // If the addresses are different it is just lexographic sorting + // If the addresses are different it is just lexicographic sorting if a.Address != b.Address { return a.Address < b.Address } diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/compare/doc.go b/vendor/github.com/hashicorp/terraform-plugin-testing/compare/doc.go new file mode 100644 index 000000000000..feb4a4c0056e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/compare/doc.go @@ -0,0 +1,5 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +// Package compare contains the value comparer interface, and types implementing the value comparer interface. +package compare diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/compare/value_comparer.go b/vendor/github.com/hashicorp/terraform-plugin-testing/compare/value_comparer.go new file mode 100644 index 000000000000..af635898b8c8 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/compare/value_comparer.go @@ -0,0 +1,13 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package compare + +// ValueComparer defines an interface that is implemented to run comparison logic on multiple values. Individual +// implementations determine how the comparison is performed (e.g., values differ, values equal). +type ValueComparer interface { + // CompareValues should assert the given known values against any expectations. + // Values are always ordered in the order they were added. Use the error + // return to signal unexpected values or implementation errors. + CompareValues(values ...any) error +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/compare/values_differ.go b/vendor/github.com/hashicorp/terraform-plugin-testing/compare/values_differ.go new file mode 100644 index 000000000000..24bd2ae22c13 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/compare/values_differ.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package compare + +import ( + "fmt" + "reflect" +) + +var _ ValueComparer = valuesDiffer{} + +type valuesDiffer struct{} + +// CompareValues determines whether each value in the sequence of the supplied values +// differs from the preceding value. +func (v valuesDiffer) CompareValues(values ...any) error { + for i := 1; i < len(values); i++ { + if reflect.DeepEqual(values[i-1], values[i]) { + return fmt.Errorf("expected values to differ, but they are the same: %v == %v", values[i-1], values[i]) + } + } + + return nil +} + +// ValuesDiffer returns a ValueComparer for asserting that each value in the sequence of +// the values supplied to the CompareValues method differs from the preceding value. +func ValuesDiffer() valuesDiffer { + return valuesDiffer{} +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/compare/values_same.go b/vendor/github.com/hashicorp/terraform-plugin-testing/compare/values_same.go new file mode 100644 index 000000000000..46ee13f31222 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/compare/values_same.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package compare + +import ( + "fmt" + "reflect" +) + +var _ ValueComparer = valuesSame{} + +type valuesSame struct{} + +// CompareValues determines whether each value in the sequence of the supplied values +// is the same as the preceding value. +func (v valuesSame) CompareValues(values ...any) error { + for i := 1; i < len(values); i++ { + if !reflect.DeepEqual(values[i-1], values[i]) { + return fmt.Errorf("expected values to be the same, but they differ: %v != %v", values[i-1], values[i]) + } + } + + return nil +} + +// ValuesSame returns a ValueComparer for asserting that each value in the sequence of +// the values supplied to the CompareValues method is the same as the preceding value. +func ValuesSame() valuesSame { + return valuesSame{} +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/doc.go b/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/doc.go new file mode 100644 index 000000000000..753097f826b7 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/doc.go @@ -0,0 +1,20 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +// Package echoprovider contains a protocol v6 Terraform provider that can be used to transfer data from +// provider configuration to state via a managed resource. This is only meant for provider acceptance testing +// of data that cannot be stored in Terraform artifacts (plan/state), such as an ephemeral resource. +// +// Example Usage: +// +// // Ephemeral resource that is under test +// ephemeral "examplecloud_thing" "this" { +// name = "thing-one" +// } +// +// provider "echo" { +// data = ephemeral.examplecloud_thing.this +// } +// +// resource "echo" "test" {} // The `echo.test.data` attribute will contain the ephemeral data from `ephemeral.examplecloud_thing.this` +package echoprovider diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/server.go b/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/server.go new file mode 100644 index 000000000000..dc4d90c8b53e --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/server.go @@ -0,0 +1,408 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package echoprovider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +// NewProviderServer returns the "echo" provider, which is a protocol v6 Terraform provider meant only to be used for testing +// data which cannot be stored in Terraform artifacts (plan/state), such as an ephemeral resource. The "echo" provider can be included in +// an acceptance test with the `(resource.TestCase).ProtoV6ProviderFactories` field, for example: +// +// resource.UnitTest(t, resource.TestCase{ +// // .. other TestCase fields +// ProtoV6ProviderFactories: map[string]func() (tfprotov6.ProviderServer, error){ +// "echo": echoprovider.NewProviderServer(), +// }, +// +// // .. TestSteps +// }) +// +// The "echo" provider configuration accepts in a dynamic "data" attribute, which will be stored in the "echo" managed resource "data" attribute, for example: +// +// // Ephemeral resource that is under test +// ephemeral "examplecloud_thing" "this" { +// name = "thing-one" +// } +// +// provider "echo" { +// data = ephemeral.examplecloud_thing.this +// } +// +// resource "echo" "test" {} // The `echo.test.data` attribute will contain the ephemeral data from `ephemeral.examplecloud_thing.this` +func NewProviderServer() func() (tfprotov6.ProviderServer, error) { + return func() (tfprotov6.ProviderServer, error) { + return &echoProviderServer{}, nil + } +} + +// echoProviderServer is a lightweight protocol version 6 provider server that saves data from the provider configuration (which is considered ephemeral) +// and then stores that data into state during ApplyResourceChange. +// +// As provider configuration is ephemeral, it's possible for the data to change between plan and apply. As a result of this, the echo provider +// will never propose new changes after it has been created, making it immutable (during plan, echo will always use prior state for it's plan, +// regardless of what the provider configuration is set to). This prevents the managed resource from continuously proposing new planned changes +// if the ephemeral data changes. +type echoProviderServer struct { + // The value of the "data" attribute during provider configuration. Will be directly echoed to the echo.data attribute. + providerConfigData tftypes.Value +} + +const echoResourceType = "echo" + +func (e *echoProviderServer) providerSchema() *tfprotov6.Schema { + return &tfprotov6.Schema{ + Block: &tfprotov6.SchemaBlock{ + Description: "This provider is used to output the data attribute provided to the provider configuration into all resources instances of echo. " + + "This is only useful for testing ephemeral resources where the data isn't stored to state.", + DescriptionKind: tfprotov6.StringKindPlain, + Attributes: []*tfprotov6.SchemaAttribute{ + { + Name: "data", + Type: tftypes.DynamicPseudoType, + Description: "Dynamic data to provide to the echo resource.", + DescriptionKind: tfprotov6.StringKindPlain, + Optional: true, + }, + }, + }, + } +} + +func (e *echoProviderServer) testResourceSchema() *tfprotov6.Schema { + return &tfprotov6.Schema{ + Block: &tfprotov6.SchemaBlock{ + Attributes: []*tfprotov6.SchemaAttribute{ + { + Name: "data", + Type: tftypes.DynamicPseudoType, + Description: "Dynamic data that was provided to the provider configuration.", + DescriptionKind: tfprotov6.StringKindPlain, + Computed: true, + }, + }, + }, + } +} + +func (e *echoProviderServer) ApplyResourceChange(ctx context.Context, req *tfprotov6.ApplyResourceChangeRequest) (*tfprotov6.ApplyResourceChangeResponse, error) { + resp := &tfprotov6.ApplyResourceChangeResponse{} + + if req.TypeName != echoResourceType { + resp.Diagnostics = []*tfprotov6.Diagnostic{ + { + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unsupported Resource", + Detail: fmt.Sprintf("ApplyResourceChange was called for a resource type that is not supported by this provider: %q", req.TypeName), + }, + } + + return resp, nil + } + + echoTestSchema := e.testResourceSchema() + + plannedState, diag := dynamicValueToValue(echoTestSchema, req.PlannedState) + if diag != nil { + resp.Diagnostics = append(resp.Diagnostics, diag) + + return resp, nil + } + + // Destroy Op, just return planned state, which is null + if plannedState.IsNull() { + resp.NewState = req.PlannedState + return resp, nil + } + + // Take the provider config "data" attribute verbatim and put back into state. It shares the same type (DynamicPseudoType) + // as the echo "data" attribute. + newVal := tftypes.NewValue(echoTestSchema.ValueType(), map[string]tftypes.Value{ + "data": e.providerConfigData, + }) + + newState, diag := valuetoDynamicValue(echoTestSchema, newVal) + + if diag != nil { + resp.Diagnostics = append(resp.Diagnostics, diag) + + return resp, nil + } + + resp.NewState = newState + + return resp, nil +} + +func (e *echoProviderServer) CallFunction(ctx context.Context, req *tfprotov6.CallFunctionRequest) (*tfprotov6.CallFunctionResponse, error) { + return &tfprotov6.CallFunctionResponse{}, nil +} + +func (e *echoProviderServer) ConfigureProvider(ctx context.Context, req *tfprotov6.ConfigureProviderRequest) (*tfprotov6.ConfigureProviderResponse, error) { + resp := &tfprotov6.ConfigureProviderResponse{} + + configVal, diags := dynamicValueToValue(e.providerSchema(), req.Config) + if diags != nil { + resp.Diagnostics = append(resp.Diagnostics, diags) + return resp, nil + } + + objVal := map[string]tftypes.Value{} + err := configVal.As(&objVal) + if err != nil { + diag := &tfprotov6.Diagnostic{ + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Error reading Config", + Detail: err.Error(), + } + resp.Diagnostics = append(resp.Diagnostics, diag) + return resp, nil //nolint:nilerr // error via diagnostic, not gRPC + } + + dynamicDataVal, ok := objVal["data"] + if !ok { + diag := &tfprotov6.Diagnostic{ + Severity: tfprotov6.DiagnosticSeverityError, + Summary: `Attribute "data" not found in config`, + } + resp.Diagnostics = append(resp.Diagnostics, diag) + return resp, nil //nolint:nilerr // error via diagnostic, not gRPC + } + + e.providerConfigData = dynamicDataVal.Copy() + + return resp, nil +} + +func (e *echoProviderServer) GetFunctions(ctx context.Context, req *tfprotov6.GetFunctionsRequest) (*tfprotov6.GetFunctionsResponse, error) { + return &tfprotov6.GetFunctionsResponse{}, nil +} + +func (e *echoProviderServer) GetMetadata(ctx context.Context, req *tfprotov6.GetMetadataRequest) (*tfprotov6.GetMetadataResponse, error) { + return &tfprotov6.GetMetadataResponse{ + Resources: []tfprotov6.ResourceMetadata{ + { + TypeName: echoResourceType, + }, + }, + }, nil +} + +func (e *echoProviderServer) GetProviderSchema(ctx context.Context, req *tfprotov6.GetProviderSchemaRequest) (*tfprotov6.GetProviderSchemaResponse, error) { + return &tfprotov6.GetProviderSchemaResponse{ + Provider: e.providerSchema(), + // MAINTAINER NOTE: This provider is only really built to support a single special resource type ("echo"). In the future, if we want + // to add more resource types to this provider, we'll likely need to refactor other RPCs in the provider server to handle that. + ResourceSchemas: map[string]*tfprotov6.Schema{ + echoResourceType: e.testResourceSchema(), + }, + }, nil +} + +func (e *echoProviderServer) ImportResourceState(ctx context.Context, req *tfprotov6.ImportResourceStateRequest) (*tfprotov6.ImportResourceStateResponse, error) { + return &tfprotov6.ImportResourceStateResponse{ + Diagnostics: []*tfprotov6.Diagnostic{ + { + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unsupported Resource Operation", + Detail: "ImportResourceState is not supported by this provider.", + }, + }, + }, nil +} + +func (e *echoProviderServer) MoveResourceState(ctx context.Context, req *tfprotov6.MoveResourceStateRequest) (*tfprotov6.MoveResourceStateResponse, error) { + return &tfprotov6.MoveResourceStateResponse{ + Diagnostics: []*tfprotov6.Diagnostic{ + { + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unsupported Resource Operation", + Detail: "MoveResourceState is not supported by this provider.", + }, + }, + }, nil +} + +func (e *echoProviderServer) PlanResourceChange(ctx context.Context, req *tfprotov6.PlanResourceChangeRequest) (*tfprotov6.PlanResourceChangeResponse, error) { + resp := &tfprotov6.PlanResourceChangeResponse{} + + if req.TypeName != echoResourceType { + resp.Diagnostics = []*tfprotov6.Diagnostic{ + { + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unsupported Resource", + Detail: fmt.Sprintf("PlanResourceChange was called for a resource type that is not supported by this provider: %q", req.TypeName), + }, + } + + return resp, nil + } + + echoTestSchema := e.testResourceSchema() + priorState, diag := dynamicValueToValue(echoTestSchema, req.PriorState) + if diag != nil { + resp.Diagnostics = append(resp.Diagnostics, diag) + + return resp, nil + } + + proposedNewState, diag := dynamicValueToValue(echoTestSchema, req.ProposedNewState) + if diag != nil { + resp.Diagnostics = append(resp.Diagnostics, diag) + + return resp, nil + } + + // Destroying the resource, just return proposed new state (which is null) + if proposedNewState.IsNull() { + return &tfprotov6.PlanResourceChangeResponse{ + PlannedState: req.ProposedNewState, + }, nil + } + + // If the echo resource has prior state, don't plan anything new as it's valid for the ephemeral data to change + // between operations and we don't want to produce constant diffs. This resource is only for testing data, which a + // single plan/apply should suffice. + if !priorState.IsNull() { + return &tfprotov6.PlanResourceChangeResponse{ + PlannedState: req.PriorState, + }, nil + } + + // If we are creating, mark data as unknown in the plan. + // + // We can't set the proposed new state to the provider config data because it could change between plan/apply (provider config is ephemeral). + unknownVal := tftypes.NewValue(echoTestSchema.ValueType(), map[string]tftypes.Value{ + "data": tftypes.NewValue(tftypes.DynamicPseudoType, tftypes.UnknownValue), + }) + + plannedState, diag := valuetoDynamicValue(echoTestSchema, unknownVal) + if diag != nil { + resp.Diagnostics = append(resp.Diagnostics, diag) + + return resp, nil + } + + resp.PlannedState = plannedState + + return resp, nil +} + +func (e *echoProviderServer) ReadDataSource(ctx context.Context, req *tfprotov6.ReadDataSourceRequest) (*tfprotov6.ReadDataSourceResponse, error) { + return &tfprotov6.ReadDataSourceResponse{}, nil +} + +func (e *echoProviderServer) ReadResource(ctx context.Context, req *tfprotov6.ReadResourceRequest) (*tfprotov6.ReadResourceResponse, error) { + // Just return current state, since the data doesn't need to be refreshed. + return &tfprotov6.ReadResourceResponse{ + NewState: req.CurrentState, + }, nil +} + +func (e *echoProviderServer) StopProvider(ctx context.Context, req *tfprotov6.StopProviderRequest) (*tfprotov6.StopProviderResponse, error) { + return &tfprotov6.StopProviderResponse{}, nil +} + +func (e *echoProviderServer) UpgradeResourceState(ctx context.Context, req *tfprotov6.UpgradeResourceStateRequest) (*tfprotov6.UpgradeResourceStateResponse, error) { + resp := &tfprotov6.UpgradeResourceStateResponse{} + + if req.TypeName != echoResourceType { + resp.Diagnostics = []*tfprotov6.Diagnostic{ + { + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unsupported Resource", + Detail: fmt.Sprintf("UpgradeResourceState was called for a resource type that is not supported by this provider: %q", req.TypeName), + }, + } + + return resp, nil + } + + // Define options to be used when unmarshalling raw state. + // IgnoreUndefinedAttributes will silently skip over fields in the JSON + // that do not have a matching entry in the schema. + unmarshalOpts := tfprotov6.UnmarshalOpts{ + ValueFromJSONOpts: tftypes.ValueFromJSONOpts{ + IgnoreUndefinedAttributes: true, + }, + } + + providerSchema := e.providerSchema() + + if req.Version != providerSchema.Version { + resp.Diagnostics = []*tfprotov6.Diagnostic{ + { + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unsupported Resource", + Detail: "UpgradeResourceState was called for echo, which does not support multiple schema versions", + }, + } + + return resp, nil + } + + // Terraform CLI can call UpgradeResourceState even if the stored state + // version matches the current schema. Presumably this is to account for + // the previous terraform-plugin-sdk implementation, which handled some + // state fixups on behalf of Terraform CLI. This will attempt to roundtrip + // the prior RawState to a state matching the current schema. + rawStateValue, err := req.RawState.UnmarshalWithOpts(providerSchema.ValueType(), unmarshalOpts) + + if err != nil { + diag := &tfprotov6.Diagnostic{ + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unable to Read Previously Saved State for UpgradeResourceState", + Detail: "There was an error reading the saved resource state using the current resource schema: " + err.Error(), + } + + resp.Diagnostics = append(resp.Diagnostics, diag) + + return resp, nil //nolint:nilerr // error via diagnostic, not gRPC + } + + upgradedState, diag := valuetoDynamicValue(providerSchema, rawStateValue) + + if diag != nil { + resp.Diagnostics = append(resp.Diagnostics, diag) + + return resp, nil + } + + resp.UpgradedState = upgradedState + + return resp, nil +} + +func (e *echoProviderServer) ValidateDataResourceConfig(ctx context.Context, req *tfprotov6.ValidateDataResourceConfigRequest) (*tfprotov6.ValidateDataResourceConfigResponse, error) { + return &tfprotov6.ValidateDataResourceConfigResponse{}, nil +} + +func (e *echoProviderServer) ValidateProviderConfig(ctx context.Context, req *tfprotov6.ValidateProviderConfigRequest) (*tfprotov6.ValidateProviderConfigResponse, error) { + return &tfprotov6.ValidateProviderConfigResponse{}, nil +} + +func (e *echoProviderServer) ValidateResourceConfig(ctx context.Context, req *tfprotov6.ValidateResourceConfigRequest) (*tfprotov6.ValidateResourceConfigResponse, error) { + return &tfprotov6.ValidateResourceConfigResponse{}, nil +} + +func (e *echoProviderServer) OpenEphemeralResource(ctx context.Context, req *tfprotov6.OpenEphemeralResourceRequest) (*tfprotov6.OpenEphemeralResourceResponse, error) { + return &tfprotov6.OpenEphemeralResourceResponse{}, nil +} + +func (e *echoProviderServer) RenewEphemeralResource(ctx context.Context, req *tfprotov6.RenewEphemeralResourceRequest) (*tfprotov6.RenewEphemeralResourceResponse, error) { + return &tfprotov6.RenewEphemeralResourceResponse{}, nil +} + +func (e *echoProviderServer) CloseEphemeralResource(ctx context.Context, req *tfprotov6.CloseEphemeralResourceRequest) (*tfprotov6.CloseEphemeralResourceResponse, error) { + return &tfprotov6.CloseEphemeralResourceResponse{}, nil +} + +func (e *echoProviderServer) ValidateEphemeralResourceConfig(ctx context.Context, req *tfprotov6.ValidateEphemeralResourceConfigRequest) (*tfprotov6.ValidateEphemeralResourceConfigResponse, error) { + return &tfprotov6.ValidateEphemeralResourceConfigResponse{}, nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/tftypes.go b/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/tftypes.go new file mode 100644 index 000000000000..54e160a3cfaf --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/echoprovider/tftypes.go @@ -0,0 +1,64 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package echoprovider + +import ( + "github.com/hashicorp/terraform-plugin-go/tfprotov6" + "github.com/hashicorp/terraform-plugin-go/tftypes" +) + +func valuetoDynamicValue(schema *tfprotov6.Schema, value tftypes.Value) (*tfprotov6.DynamicValue, *tfprotov6.Diagnostic) { + if schema == nil { + diag := &tfprotov6.Diagnostic{ + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unable to Convert Value", + Detail: "Converting the Value to DynamicValue returned an unexpected error: missing schema", + } + + return nil, diag + } + + dynamicValue, err := tfprotov6.NewDynamicValue(schema.ValueType(), value) + if err != nil { + diag := &tfprotov6.Diagnostic{ + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unable to Convert Value", + Detail: "Converting the Value to DynamicValue returned an unexpected error: " + err.Error(), + } + + return &dynamicValue, diag + } + + return &dynamicValue, nil +} + +func dynamicValueToValue(schema *tfprotov6.Schema, dynamicValue *tfprotov6.DynamicValue) (tftypes.Value, *tfprotov6.Diagnostic) { + if schema == nil { + diag := &tfprotov6.Diagnostic{ + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unable to Convert DynamicValue", + Detail: "Converting the DynamicValue to Value returned an unexpected error: missing schema", + } + + return tftypes.NewValue(tftypes.Object{}, nil), diag + } + + if dynamicValue == nil { + return tftypes.NewValue(schema.ValueType(), nil), nil + } + + value, err := dynamicValue.Unmarshal(schema.ValueType()) + + if err != nil { + diag := &tfprotov6.Diagnostic{ + Severity: tfprotov6.DiagnosticSeverityError, + Summary: "Unable to Convert DynamicValue", + Detail: "Converting the DynamicValue to Value returned an unexpected error: " + err.Error(), + } + + return value, diag + } + + return value, nil +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/helper/acctest/random.go b/vendor/github.com/hashicorp/terraform-plugin-testing/helper/acctest/random.go index 607b1cef2e1e..102c85ddd8be 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-testing/helper/acctest/random.go +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/helper/acctest/random.go @@ -34,9 +34,9 @@ func RandomWithPrefix(name string) string { return fmt.Sprintf("%s-%d", name, RandInt()) } -// RandIntRange returns a random integer between min (inclusive) and max (exclusive) -func RandIntRange(min int, max int) int { - return rand.Intn(max-min) + min +// RandIntRange returns a random integer between minInt (inclusive) and maxInt (exclusive) +func RandIntRange(minInt int, maxInt int) int { + return rand.Intn(maxInt-minInt) + minInt } // RandString generates a random alphanumeric string of the length specified diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/knownvalue/float32.go b/vendor/github.com/hashicorp/terraform-plugin-testing/knownvalue/float32.go new file mode 100644 index 000000000000..ee02fdcb1a88 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/knownvalue/float32.go @@ -0,0 +1,51 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package knownvalue + +import ( + "encoding/json" + "fmt" + "strconv" +) + +var _ Check = float32Exact{} + +type float32Exact struct { + value float32 +} + +// CheckValue determines whether the passed value is of type float32, and +// contains a matching float32 value. +func (v float32Exact) CheckValue(other any) error { + jsonNum, ok := other.(json.Number) + + if !ok { + return fmt.Errorf("expected json.Number value for Float32Exact check, got: %T", other) + } + + otherVal, err := strconv.ParseFloat(string(jsonNum), 32) + + if err != nil { + return fmt.Errorf("expected json.Number to be parseable as float32 value for Float32Exact check: %s", err) + } + + if float32(otherVal) != v.value { + return fmt.Errorf("expected value %s for Float32Exact check, got: %s", v.String(), strconv.FormatFloat(otherVal, 'f', -1, 32)) + } + + return nil +} + +// String returns the string representation of the float32 value. +func (v float32Exact) String() string { + return strconv.FormatFloat(float64(v.value), 'f', -1, 32) +} + +// Float32Exact returns a Check for asserting equality between the +// supplied float32 and the value passed to the CheckValue method. +func Float32Exact(value float32) float32Exact { + return float32Exact{ + value: value, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/knownvalue/int32.go b/vendor/github.com/hashicorp/terraform-plugin-testing/knownvalue/int32.go new file mode 100644 index 000000000000..49dd30bb3c49 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/knownvalue/int32.go @@ -0,0 +1,51 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package knownvalue + +import ( + "encoding/json" + "fmt" + "strconv" +) + +var _ Check = int32Exact{} + +type int32Exact struct { + value int32 +} + +// CheckValue determines whether the passed value is of type int32, and +// contains a matching int32 value. +func (v int32Exact) CheckValue(other any) error { + jsonNum, ok := other.(json.Number) + + if !ok { + return fmt.Errorf("expected json.Number value for Int32Exact check, got: %T", other) + } + + otherVal, err := strconv.ParseInt(string(jsonNum), 10, 32) + + if err != nil { + return fmt.Errorf("expected json.Number to be parseable as int32 value for Int32Exact check: %s", err) + } + + if int32(otherVal) != v.value { + return fmt.Errorf("expected value %d for Int32Exact check, got: %d", v.value, otherVal) + } + + return nil +} + +// String returns the string representation of the int32 value. +func (v int32Exact) String() string { + return strconv.FormatInt(int64(v.value), 10) +} + +// Int32Exact returns a Check for asserting equality between the +// supplied int32 and the value passed to the CheckValue method. +func Int32Exact(value int32) int32Exact { + return int32Exact{ + value: value, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value.go b/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value.go new file mode 100644 index 000000000000..68a6ef9d5849 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value.go @@ -0,0 +1,114 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package statecheck + +import ( + "context" + "fmt" + + tfjson "github.com/hashicorp/terraform-json" + + "github.com/hashicorp/terraform-plugin-testing/compare" + "github.com/hashicorp/terraform-plugin-testing/tfjsonpath" +) + +// Resource State Check +var _ StateCheck = &compareValue{} + +type compareValue struct { + resourceAddresses []string + attributePaths []tfjsonpath.Path + stateValues []any + comparer compare.ValueComparer +} + +func (e *compareValue) AddStateValue(resourceAddress string, attributePath tfjsonpath.Path) StateCheck { + e.resourceAddresses = append(e.resourceAddresses, resourceAddress) + e.attributePaths = append(e.attributePaths, attributePath) + + return e +} + +// CheckState implements the state check logic. +func (e *compareValue) CheckState(ctx context.Context, req CheckStateRequest, resp *CheckStateResponse) { + var resource *tfjson.StateResource + + if req.State == nil { + resp.Error = fmt.Errorf("state is nil") + + return + } + + if req.State.Values == nil { + resp.Error = fmt.Errorf("state does not contain any state values") + + return + } + + if req.State.Values.RootModule == nil { + resp.Error = fmt.Errorf("state does not contain a root module") + + return + } + + // All calls to AddStateValue occur before any TestStep is run, populating the resourceAddresses + // and attributePaths slices. The stateValues slice is populated during execution of each TestStep. + // Each call to CheckState happens sequentially during each TestStep. + // The currentIndex is reflective of the current state value being checked. + currentIndex := len(e.stateValues) + + if len(e.resourceAddresses) <= currentIndex { + resp.Error = fmt.Errorf("resource addresses index out of bounds: %d", currentIndex) + + return + } + + resourceAddress := e.resourceAddresses[currentIndex] + + for _, r := range req.State.Values.RootModule.Resources { + if resourceAddress == r.Address { + resource = r + + break + } + } + + if resource == nil { + resp.Error = fmt.Errorf("%s - Resource not found in state", resourceAddress) + + return + } + + if len(e.attributePaths) <= currentIndex { + resp.Error = fmt.Errorf("attribute paths index out of bounds: %d", currentIndex) + + return + } + + attributePath := e.attributePaths[currentIndex] + + result, err := tfjsonpath.Traverse(resource.AttributeValues, attributePath) + + if err != nil { + resp.Error = err + + return + } + + e.stateValues = append(e.stateValues, result) + + err = e.comparer.CompareValues(e.stateValues...) + + if err != nil { + resp.Error = err + } +} + +// CompareValue returns a state check that compares values retrieved from state using the +// supplied value comparer. +func CompareValue(comparer compare.ValueComparer) *compareValue { + return &compareValue{ + comparer: comparer, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value_collection.go b/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value_collection.go new file mode 100644 index 000000000000..7a06c6010795 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value_collection.go @@ -0,0 +1,223 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package statecheck + +import ( + "context" + "errors" + "fmt" + "sort" + + tfjson "github.com/hashicorp/terraform-json" + + "github.com/hashicorp/terraform-plugin-testing/compare" + "github.com/hashicorp/terraform-plugin-testing/tfjsonpath" +) + +// Resource State Check +var _ StateCheck = &compareValueCollection{} + +type compareValueCollection struct { + resourceAddressOne string + collectionPath []tfjsonpath.Path + resourceAddressTwo string + attributePath tfjsonpath.Path + comparer compare.ValueComparer +} + +func walkCollectionPath(obj any, paths []tfjsonpath.Path, results []any) ([]any, error) { + switch t := obj.(type) { + case []any: + for _, v := range t { + if len(paths) == 0 { + results = append(results, v) + continue + } + + x, err := tfjsonpath.Traverse(v, paths[0]) + + if err != nil { + return results, err + } + + results, err = walkCollectionPath(x, paths[1:], results) + + if err != nil { + return results, err + } + } + case map[string]any: + keys := make([]string, 0, len(t)) + + for k := range t { + keys = append(keys, k) + } + + sort.Strings(keys) + + for _, key := range keys { + if len(paths) == 0 { + results = append(results, t[key]) + continue + } + + x, err := tfjsonpath.Traverse(t, paths[0]) + + if err != nil { + return results, err + } + + results, err = walkCollectionPath(x, paths[1:], results) + + if err != nil { + return results, err + } + } + default: + results = append(results, obj) + } + + return results, nil +} + +// CheckState implements the state check logic. +func (e *compareValueCollection) CheckState(ctx context.Context, req CheckStateRequest, resp *CheckStateResponse) { + var resourceOne *tfjson.StateResource + var resourceTwo *tfjson.StateResource + + if req.State == nil { + resp.Error = fmt.Errorf("state is nil") + + return + } + + if req.State.Values == nil { + resp.Error = fmt.Errorf("state does not contain any state values") + + return + } + + if req.State.Values.RootModule == nil { + resp.Error = fmt.Errorf("state does not contain a root module") + + return + } + + for _, r := range req.State.Values.RootModule.Resources { + if e.resourceAddressOne == r.Address { + resourceOne = r + + break + } + } + + if resourceOne == nil { + resp.Error = fmt.Errorf("%s - Resource not found in state", e.resourceAddressOne) + + return + } + + if len(e.collectionPath) == 0 { + resp.Error = fmt.Errorf("%s - No collection path was provided", e.resourceAddressOne) + + return + } + + resultOne, err := tfjsonpath.Traverse(resourceOne.AttributeValues, e.collectionPath[0]) + + if err != nil { + resp.Error = err + + return + } + + // Verify resultOne is a collection. + switch t := resultOne.(type) { + case []any, map[string]any: + // Collection found. + default: + var pathStr string + + for _, v := range e.collectionPath { + pathStr += fmt.Sprintf(".%s", v.String()) + } + + resp.Error = fmt.Errorf("%s%s is not a collection type: %T", e.resourceAddressOne, pathStr, t) + + return + } + + var results []any + + results, err = walkCollectionPath(resultOne, e.collectionPath[1:], results) + + if err != nil { + resp.Error = err + + return + } + + for _, r := range req.State.Values.RootModule.Resources { + if e.resourceAddressTwo == r.Address { + resourceTwo = r + + break + } + } + + if resourceTwo == nil { + resp.Error = fmt.Errorf("%s - Resource not found in state", e.resourceAddressTwo) + + return + } + + resultTwo, err := tfjsonpath.Traverse(resourceTwo.AttributeValues, e.attributePath) + + if err != nil { + resp.Error = err + + return + } + + var errs []error + + for _, v := range results { + switch resultTwo.(type) { + case []any: + errs = append(errs, e.comparer.CompareValues([]any{v}, resultTwo)) + default: + errs = append(errs, e.comparer.CompareValues(v, resultTwo)) + } + } + + for _, err = range errs { + if err == nil { + return + } + } + + errMsgs := map[string]struct{}{} + + for _, err = range errs { + if _, ok := errMsgs[err.Error()]; ok { + continue + } + + resp.Error = errors.Join(resp.Error, err) + + errMsgs[err.Error()] = struct{}{} + } +} + +// CompareValueCollection returns a state check that iterates over each element in a collection and compares the value of each element +// with the value of an attribute using the given value comparer. +func CompareValueCollection(resourceAddressOne string, collectionPath []tfjsonpath.Path, resourceAddressTwo string, attributePath tfjsonpath.Path, comparer compare.ValueComparer) StateCheck { + return &compareValueCollection{ + resourceAddressOne: resourceAddressOne, + collectionPath: collectionPath, + resourceAddressTwo: resourceAddressTwo, + attributePath: attributePath, + comparer: comparer, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value_pairs.go b/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value_pairs.go new file mode 100644 index 000000000000..8db67c5625c4 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/statecheck/compare_value_pairs.go @@ -0,0 +1,111 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package statecheck + +import ( + "context" + "fmt" + + tfjson "github.com/hashicorp/terraform-json" + + "github.com/hashicorp/terraform-plugin-testing/compare" + "github.com/hashicorp/terraform-plugin-testing/tfjsonpath" +) + +// Resource State Check +var _ StateCheck = &compareValuePairs{} + +type compareValuePairs struct { + resourceAddressOne string + attributePathOne tfjsonpath.Path + resourceAddressTwo string + attributePathTwo tfjsonpath.Path + comparer compare.ValueComparer +} + +// CheckState implements the state check logic. +func (e *compareValuePairs) CheckState(ctx context.Context, req CheckStateRequest, resp *CheckStateResponse) { + var resourceOne *tfjson.StateResource + var resourceTwo *tfjson.StateResource + + if req.State == nil { + resp.Error = fmt.Errorf("state is nil") + + return + } + + if req.State.Values == nil { + resp.Error = fmt.Errorf("state does not contain any state values") + + return + } + + if req.State.Values.RootModule == nil { + resp.Error = fmt.Errorf("state does not contain a root module") + + return + } + + for _, r := range req.State.Values.RootModule.Resources { + if e.resourceAddressOne == r.Address { + resourceOne = r + + break + } + } + + if resourceOne == nil { + resp.Error = fmt.Errorf("%s - Resource not found in state", e.resourceAddressOne) + + return + } + + resultOne, err := tfjsonpath.Traverse(resourceOne.AttributeValues, e.attributePathOne) + + if err != nil { + resp.Error = err + + return + } + + for _, r := range req.State.Values.RootModule.Resources { + if e.resourceAddressTwo == r.Address { + resourceTwo = r + + break + } + } + + if resourceTwo == nil { + resp.Error = fmt.Errorf("%s - Resource not found in state", e.resourceAddressTwo) + + return + } + + resultTwo, err := tfjsonpath.Traverse(resourceTwo.AttributeValues, e.attributePathTwo) + + if err != nil { + resp.Error = err + + return + } + + err = e.comparer.CompareValues(resultOne, resultTwo) + + if err != nil { + resp.Error = err + } +} + +// CompareValuePairs returns a state check that compares the value in state for the first given resource address and +// path with the value in state for the second given resource address and path using the supplied value comparer. +func CompareValuePairs(resourceAddressOne string, attributePathOne tfjsonpath.Path, resourceAddressTwo string, attributePathTwo tfjsonpath.Path, comparer compare.ValueComparer) StateCheck { + return &compareValuePairs{ + resourceAddressOne: resourceAddressOne, + attributePathOne: attributePathOne, + resourceAddressTwo: resourceAddressTwo, + attributePathTwo: attributePathTwo, + comparer: comparer, + } +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/tfversion/skip_if_not_alpha.go b/vendor/github.com/hashicorp/terraform-plugin-testing/tfversion/skip_if_not_alpha.go new file mode 100644 index 000000000000..413ee1b435e3 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/tfversion/skip_if_not_alpha.go @@ -0,0 +1,31 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package tfversion + +import ( + "context" + "fmt" + "strings" +) + +// SkipIfNotAlpha will skip (pass) the test if the Terraform CLI +// version is not an alpha prerelease (for example, 1.10.0-alpha20241023). +// +// Alpha builds of Terraform include experimental features, so this version check +// can be used for acceptance testing of experimental features, such as deferred actions. +func SkipIfNotAlpha() TerraformVersionCheck { + return skipIfNotAlphaCheck{} +} + +// skipIfNotAlphaCheck implements the TerraformVersionCheck interface +type skipIfNotAlphaCheck struct{} + +// CheckTerraformVersion satisfies the TerraformVersionCheck interface. +func (s skipIfNotAlphaCheck) CheckTerraformVersion(ctx context.Context, req CheckTerraformVersionRequest, resp *CheckTerraformVersionResponse) { + if strings.Contains(req.TerraformVersion.Prerelease(), "alpha") { + return + } + + resp.Skip = fmt.Sprintf("Terraform CLI version %s is not an alpha build: skipping test.", req.TerraformVersion) +} diff --git a/vendor/github.com/hashicorp/terraform-plugin-testing/tfversion/versions.go b/vendor/github.com/hashicorp/terraform-plugin-testing/tfversion/versions.go index 4dcf5d14a8d3..3db43e02eecc 100644 --- a/vendor/github.com/hashicorp/terraform-plugin-testing/tfversion/versions.go +++ b/vendor/github.com/hashicorp/terraform-plugin-testing/tfversion/versions.go @@ -30,10 +30,11 @@ var ( Version1_4_0 *version.Version = version.Must(version.NewVersion("1.4.0")) // Version1_4_6 fixed inclusion of sensitive values in `terraform show -json` output. // Reference: https://github.com/hashicorp/terraform/releases/tag/v1.4.6 - Version1_4_6 *version.Version = version.Must(version.NewVersion("1.4.6")) - Version1_5_0 *version.Version = version.Must(version.NewVersion("1.5.0")) - Version1_6_0 *version.Version = version.Must(version.NewVersion("1.6.0")) - Version1_7_0 *version.Version = version.Must(version.NewVersion("1.7.0")) - Version1_8_0 *version.Version = version.Must(version.NewVersion("1.8.0")) - Version1_9_0 *version.Version = version.Must(version.NewVersion("1.9.0")) + Version1_4_6 *version.Version = version.Must(version.NewVersion("1.4.6")) + Version1_5_0 *version.Version = version.Must(version.NewVersion("1.5.0")) + Version1_6_0 *version.Version = version.Must(version.NewVersion("1.6.0")) + Version1_7_0 *version.Version = version.Must(version.NewVersion("1.7.0")) + Version1_8_0 *version.Version = version.Must(version.NewVersion("1.8.0")) + Version1_9_0 *version.Version = version.Must(version.NewVersion("1.9.0")) + Version1_10_0 *version.Version = version.Must(version.NewVersion("1.10.0")) ) diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/attestation.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/attestation.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/attestation.go rename to vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/attestation.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/client.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/client.go rename to vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/enums.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/metadataconfiguration.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/metadataconfiguration.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/metadataconfiguration.go rename to vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/metadataconfiguration.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/models.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/models.go rename to vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/policy.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/policy.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/policy.go rename to vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/policy.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/policycertificates.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/policycertificates.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/policycertificates.go rename to vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/policycertificates.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/signingcertificates.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/signingcertificates.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/signingcertificates.go rename to vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/signingcertificates.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/version.go b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/version.go new file mode 100644 index 000000000000..5fa0ec881f44 --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation/version.go @@ -0,0 +1,19 @@ +package attestation + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " attestation/2022-08-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/account.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/account.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/account.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/account.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/application.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/application.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/application.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/application.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/certificate.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/certificate.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/certificate.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/certificate.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/client.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/client.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/computenode.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/computenode.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/computenode.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/computenode.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/computenodeextension.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/computenodeextension.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/computenodeextension.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/computenodeextension.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/enums.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/file.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/file.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/file.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/file.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/job.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/job.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/job.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/job.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/jobschedule.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/jobschedule.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/jobschedule.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/jobschedule.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/models.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/models.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/pool.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/pool.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/pool.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/pool.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/task.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/task.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/task.go rename to vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/task.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/version.go b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/version.go new file mode 100644 index 000000000000..821710ad8933 --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch/version.go @@ -0,0 +1,19 @@ +package batch + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " batch/2022-01-01.15.0" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/botconnection.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/botconnection.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/botconnection.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/botconnection.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/bots.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/bots.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/bots.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/bots.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/channels.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/channels.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/channels.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/channels.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/client.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/client.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/directline.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/directline.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/directline.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/directline.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/enums.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/hostsettings.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/hostsettings.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/hostsettings.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/hostsettings.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/models.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/models.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/operationresults.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/operationresults.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/operationresults.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/operationresults.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/operations.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/operations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/operations.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/operations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/privateendpointconnections.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/privateendpointconnections.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/privateendpointconnections.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/privateendpointconnections.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/privatelinkresources.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/privatelinkresources.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/privatelinkresources.go rename to vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/privatelinkresources.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/version.go b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/version.go new file mode 100644 index 000000000000..98315175a2f7 --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice/version.go @@ -0,0 +1,19 @@ +package botservice + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " botservice/2021-05-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/activityruns.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/activityruns.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/activityruns.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/activityruns.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/changedatacapture.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/changedatacapture.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/changedatacapture.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/changedatacapture.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/client.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/client.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/credentialoperations.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/credentialoperations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/credentialoperations.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/credentialoperations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/dataflowdebugsession.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/dataflowdebugsession.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/dataflowdebugsession.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/dataflowdebugsession.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/dataflows.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/dataflows.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/dataflows.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/dataflows.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/datasets.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/datasets.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/datasets.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/datasets.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/enums.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/enums.go similarity index 94% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/enums.go index ec11022ef5c4..122c8d5c0ede 100644 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/enums.go +++ b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/enums.go @@ -509,6 +509,25 @@ func PossibleEventSubscriptionStatusValues() []EventSubscriptionStatus { return []EventSubscriptionStatus{EventSubscriptionStatusDeprovisioning, EventSubscriptionStatusDisabled, EventSubscriptionStatusEnabled, EventSubscriptionStatusProvisioning, EventSubscriptionStatusUnknown} } +// ExpressionV2Type enumerates the values for expression v2 type. +type ExpressionV2Type string + +const ( + // ExpressionV2TypeBinary ... + ExpressionV2TypeBinary ExpressionV2Type = "Binary" + // ExpressionV2TypeConstant ... + ExpressionV2TypeConstant ExpressionV2Type = "Constant" + // ExpressionV2TypeField ... + ExpressionV2TypeField ExpressionV2Type = "Field" + // ExpressionV2TypeUnary ... + ExpressionV2TypeUnary ExpressionV2Type = "Unary" +) + +// PossibleExpressionV2TypeValues returns an array of possible values for the ExpressionV2Type const type. +func PossibleExpressionV2TypeValues() []ExpressionV2Type { + return []ExpressionV2Type{ExpressionV2TypeBinary, ExpressionV2TypeConstant, ExpressionV2TypeField, ExpressionV2TypeUnary} +} + // FactoryIdentityType enumerates the values for factory identity type. type FactoryIdentityType string @@ -611,6 +630,21 @@ func PossibleGoogleBigQueryAuthenticationTypeValues() []GoogleBigQueryAuthentica return []GoogleBigQueryAuthenticationType{GoogleBigQueryAuthenticationTypeServiceAuthentication, GoogleBigQueryAuthenticationTypeUserAuthentication} } +// GoogleBigQueryV2AuthenticationType enumerates the values for google big query v2 authentication type. +type GoogleBigQueryV2AuthenticationType string + +const ( + // GoogleBigQueryV2AuthenticationTypeServiceAuthentication ... + GoogleBigQueryV2AuthenticationTypeServiceAuthentication GoogleBigQueryV2AuthenticationType = "ServiceAuthentication" + // GoogleBigQueryV2AuthenticationTypeUserAuthentication ... + GoogleBigQueryV2AuthenticationTypeUserAuthentication GoogleBigQueryV2AuthenticationType = "UserAuthentication" +) + +// PossibleGoogleBigQueryV2AuthenticationTypeValues returns an array of possible values for the GoogleBigQueryV2AuthenticationType const type. +func PossibleGoogleBigQueryV2AuthenticationTypeValues() []GoogleBigQueryV2AuthenticationType { + return []GoogleBigQueryV2AuthenticationType{GoogleBigQueryV2AuthenticationTypeServiceAuthentication, GoogleBigQueryV2AuthenticationTypeUserAuthentication} +} + // HBaseAuthenticationType enumerates the values for h base authentication type. type HBaseAuthenticationType string @@ -1459,21 +1493,6 @@ func PossibleSalesforceV2SinkWriteBehaviorValues() []SalesforceV2SinkWriteBehavi return []SalesforceV2SinkWriteBehavior{SalesforceV2SinkWriteBehaviorInsert, SalesforceV2SinkWriteBehaviorUpsert} } -// SalesforceV2SourceReadBehavior enumerates the values for salesforce v2 source read behavior. -type SalesforceV2SourceReadBehavior string - -const ( - // SalesforceV2SourceReadBehaviorQuery ... - SalesforceV2SourceReadBehaviorQuery SalesforceV2SourceReadBehavior = "query" - // SalesforceV2SourceReadBehaviorQueryAll ... - SalesforceV2SourceReadBehaviorQueryAll SalesforceV2SourceReadBehavior = "queryAll" -) - -// PossibleSalesforceV2SourceReadBehaviorValues returns an array of possible values for the SalesforceV2SourceReadBehavior const type. -func PossibleSalesforceV2SourceReadBehaviorValues() []SalesforceV2SourceReadBehavior { - return []SalesforceV2SourceReadBehavior{SalesforceV2SourceReadBehaviorQuery, SalesforceV2SourceReadBehaviorQueryAll} -} - // SapCloudForCustomerSinkWriteBehavior enumerates the values for sap cloud for customer sink write behavior. type SapCloudForCustomerSinkWriteBehavior string @@ -1667,6 +1686,21 @@ func PossibleServiceNowAuthenticationTypeValues() []ServiceNowAuthenticationType return []ServiceNowAuthenticationType{ServiceNowAuthenticationTypeBasic, ServiceNowAuthenticationTypeOAuth2} } +// ServiceNowV2AuthenticationType enumerates the values for service now v2 authentication type. +type ServiceNowV2AuthenticationType string + +const ( + // ServiceNowV2AuthenticationTypeBasic ... + ServiceNowV2AuthenticationTypeBasic ServiceNowV2AuthenticationType = "Basic" + // ServiceNowV2AuthenticationTypeOAuth2 ... + ServiceNowV2AuthenticationTypeOAuth2 ServiceNowV2AuthenticationType = "OAuth2" +) + +// PossibleServiceNowV2AuthenticationTypeValues returns an array of possible values for the ServiceNowV2AuthenticationType const type. +func PossibleServiceNowV2AuthenticationTypeValues() []ServiceNowV2AuthenticationType { + return []ServiceNowV2AuthenticationType{ServiceNowV2AuthenticationTypeBasic, ServiceNowV2AuthenticationTypeOAuth2} +} + // ServicePrincipalCredentialType enumerates the values for service principal credential type. type ServicePrincipalCredentialType string @@ -2251,6 +2285,8 @@ const ( TypeBasicCopySourceTypeGoogleAdWordsSource TypeBasicCopySource = "GoogleAdWordsSource" // TypeBasicCopySourceTypeGoogleBigQuerySource ... TypeBasicCopySourceTypeGoogleBigQuerySource TypeBasicCopySource = "GoogleBigQuerySource" + // TypeBasicCopySourceTypeGoogleBigQueryV2Source ... + TypeBasicCopySourceTypeGoogleBigQueryV2Source TypeBasicCopySource = "GoogleBigQueryV2Source" // TypeBasicCopySourceTypeGreenplumSource ... TypeBasicCopySourceTypeGreenplumSource TypeBasicCopySource = "GreenplumSource" // TypeBasicCopySourceTypeHBaseSource ... @@ -2311,6 +2347,8 @@ const ( TypeBasicCopySourceTypePhoenixSource TypeBasicCopySource = "PhoenixSource" // TypeBasicCopySourceTypePostgreSQLSource ... TypeBasicCopySourceTypePostgreSQLSource TypeBasicCopySource = "PostgreSqlSource" + // TypeBasicCopySourceTypePostgreSQLV2Source ... + TypeBasicCopySourceTypePostgreSQLV2Source TypeBasicCopySource = "PostgreSqlV2Source" // TypeBasicCopySourceTypePrestoSource ... TypeBasicCopySourceTypePrestoSource TypeBasicCopySource = "PrestoSource" // TypeBasicCopySourceTypeQuickBooksSource ... @@ -2355,6 +2393,8 @@ const ( TypeBasicCopySourceTypeSapTableSource TypeBasicCopySource = "SapTableSource" // TypeBasicCopySourceTypeServiceNowSource ... TypeBasicCopySourceTypeServiceNowSource TypeBasicCopySource = "ServiceNowSource" + // TypeBasicCopySourceTypeServiceNowV2Source ... + TypeBasicCopySourceTypeServiceNowV2Source TypeBasicCopySource = "ServiceNowV2Source" // TypeBasicCopySourceTypeSharePointOnlineListSource ... TypeBasicCopySourceTypeSharePointOnlineListSource TypeBasicCopySource = "SharePointOnlineListSource" // TypeBasicCopySourceTypeShopifySource ... @@ -2389,7 +2429,7 @@ const ( // PossibleTypeBasicCopySourceValues returns an array of possible values for the TypeBasicCopySource const type. func PossibleTypeBasicCopySourceValues() []TypeBasicCopySource { - return []TypeBasicCopySource{TypeBasicCopySourceTypeAmazonMWSSource, TypeBasicCopySourceTypeAmazonRdsForOracleSource, TypeBasicCopySourceTypeAmazonRdsForSQLServerSource, TypeBasicCopySourceTypeAmazonRedshiftSource, TypeBasicCopySourceTypeAvroSource, TypeBasicCopySourceTypeAzureBlobFSSource, TypeBasicCopySourceTypeAzureDataExplorerSource, TypeBasicCopySourceTypeAzureDataLakeStoreSource, TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource, TypeBasicCopySourceTypeAzureMariaDBSource, TypeBasicCopySourceTypeAzureMySQLSource, TypeBasicCopySourceTypeAzurePostgreSQLSource, TypeBasicCopySourceTypeAzureSQLSource, TypeBasicCopySourceTypeAzureTableSource, TypeBasicCopySourceTypeBinarySource, TypeBasicCopySourceTypeBlobSource, TypeBasicCopySourceTypeCassandraSource, TypeBasicCopySourceTypeCommonDataServiceForAppsSource, TypeBasicCopySourceTypeConcurSource, TypeBasicCopySourceTypeCopySource, TypeBasicCopySourceTypeCosmosDbMongoDbAPISource, TypeBasicCopySourceTypeCosmosDbSQLAPISource, TypeBasicCopySourceTypeCouchbaseSource, TypeBasicCopySourceTypeDb2Source, TypeBasicCopySourceTypeDelimitedTextSource, TypeBasicCopySourceTypeDocumentDbCollectionSource, TypeBasicCopySourceTypeDrillSource, TypeBasicCopySourceTypeDynamicsAXSource, TypeBasicCopySourceTypeDynamicsCrmSource, TypeBasicCopySourceTypeDynamicsSource, TypeBasicCopySourceTypeEloquaSource, TypeBasicCopySourceTypeExcelSource, TypeBasicCopySourceTypeFileSystemSource, TypeBasicCopySourceTypeGoogleAdWordsSource, TypeBasicCopySourceTypeGoogleBigQuerySource, TypeBasicCopySourceTypeGreenplumSource, TypeBasicCopySourceTypeHBaseSource, TypeBasicCopySourceTypeHTTPSource, TypeBasicCopySourceTypeHdfsSource, TypeBasicCopySourceTypeHiveSource, TypeBasicCopySourceTypeHubspotSource, TypeBasicCopySourceTypeImpalaSource, TypeBasicCopySourceTypeInformixSource, TypeBasicCopySourceTypeJSONSource, TypeBasicCopySourceTypeJiraSource, TypeBasicCopySourceTypeLakeHouseTableSource, TypeBasicCopySourceTypeMagentoSource, TypeBasicCopySourceTypeMariaDBSource, TypeBasicCopySourceTypeMarketoSource, TypeBasicCopySourceTypeMicrosoftAccessSource, TypeBasicCopySourceTypeMongoDbAtlasSource, TypeBasicCopySourceTypeMongoDbSource, TypeBasicCopySourceTypeMongoDbV2Source, TypeBasicCopySourceTypeMySQLSource, TypeBasicCopySourceTypeNetezzaSource, TypeBasicCopySourceTypeODataSource, TypeBasicCopySourceTypeOdbcSource, TypeBasicCopySourceTypeOffice365Source, TypeBasicCopySourceTypeOracleServiceCloudSource, TypeBasicCopySourceTypeOracleSource, TypeBasicCopySourceTypeOrcSource, TypeBasicCopySourceTypeParquetSource, TypeBasicCopySourceTypePaypalSource, TypeBasicCopySourceTypePhoenixSource, TypeBasicCopySourceTypePostgreSQLSource, TypeBasicCopySourceTypePrestoSource, TypeBasicCopySourceTypeQuickBooksSource, TypeBasicCopySourceTypeRelationalSource, TypeBasicCopySourceTypeResponsysSource, TypeBasicCopySourceTypeRestSource, TypeBasicCopySourceTypeSQLDWSource, TypeBasicCopySourceTypeSQLMISource, TypeBasicCopySourceTypeSQLServerSource, TypeBasicCopySourceTypeSQLSource, TypeBasicCopySourceTypeSalesforceMarketingCloudSource, TypeBasicCopySourceTypeSalesforceServiceCloudSource, TypeBasicCopySourceTypeSalesforceServiceCloudV2Source, TypeBasicCopySourceTypeSalesforceSource, TypeBasicCopySourceTypeSalesforceV2Source, TypeBasicCopySourceTypeSapBwSource, TypeBasicCopySourceTypeSapCloudForCustomerSource, TypeBasicCopySourceTypeSapEccSource, TypeBasicCopySourceTypeSapHanaSource, TypeBasicCopySourceTypeSapOdpSource, TypeBasicCopySourceTypeSapOpenHubSource, TypeBasicCopySourceTypeSapTableSource, TypeBasicCopySourceTypeServiceNowSource, TypeBasicCopySourceTypeSharePointOnlineListSource, TypeBasicCopySourceTypeShopifySource, TypeBasicCopySourceTypeSnowflakeSource, TypeBasicCopySourceTypeSnowflakeV2Source, TypeBasicCopySourceTypeSparkSource, TypeBasicCopySourceTypeSquareSource, TypeBasicCopySourceTypeSybaseSource, TypeBasicCopySourceTypeTabularSource, TypeBasicCopySourceTypeTeradataSource, TypeBasicCopySourceTypeVerticaSource, TypeBasicCopySourceTypeWarehouseSource, TypeBasicCopySourceTypeWebSource, TypeBasicCopySourceTypeXMLSource, TypeBasicCopySourceTypeXeroSource, TypeBasicCopySourceTypeZohoSource} + return []TypeBasicCopySource{TypeBasicCopySourceTypeAmazonMWSSource, TypeBasicCopySourceTypeAmazonRdsForOracleSource, TypeBasicCopySourceTypeAmazonRdsForSQLServerSource, TypeBasicCopySourceTypeAmazonRedshiftSource, TypeBasicCopySourceTypeAvroSource, TypeBasicCopySourceTypeAzureBlobFSSource, TypeBasicCopySourceTypeAzureDataExplorerSource, TypeBasicCopySourceTypeAzureDataLakeStoreSource, TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource, TypeBasicCopySourceTypeAzureMariaDBSource, TypeBasicCopySourceTypeAzureMySQLSource, TypeBasicCopySourceTypeAzurePostgreSQLSource, TypeBasicCopySourceTypeAzureSQLSource, TypeBasicCopySourceTypeAzureTableSource, TypeBasicCopySourceTypeBinarySource, TypeBasicCopySourceTypeBlobSource, TypeBasicCopySourceTypeCassandraSource, TypeBasicCopySourceTypeCommonDataServiceForAppsSource, TypeBasicCopySourceTypeConcurSource, TypeBasicCopySourceTypeCopySource, TypeBasicCopySourceTypeCosmosDbMongoDbAPISource, TypeBasicCopySourceTypeCosmosDbSQLAPISource, TypeBasicCopySourceTypeCouchbaseSource, TypeBasicCopySourceTypeDb2Source, TypeBasicCopySourceTypeDelimitedTextSource, TypeBasicCopySourceTypeDocumentDbCollectionSource, TypeBasicCopySourceTypeDrillSource, TypeBasicCopySourceTypeDynamicsAXSource, TypeBasicCopySourceTypeDynamicsCrmSource, TypeBasicCopySourceTypeDynamicsSource, TypeBasicCopySourceTypeEloquaSource, TypeBasicCopySourceTypeExcelSource, TypeBasicCopySourceTypeFileSystemSource, TypeBasicCopySourceTypeGoogleAdWordsSource, TypeBasicCopySourceTypeGoogleBigQuerySource, TypeBasicCopySourceTypeGoogleBigQueryV2Source, TypeBasicCopySourceTypeGreenplumSource, TypeBasicCopySourceTypeHBaseSource, TypeBasicCopySourceTypeHTTPSource, TypeBasicCopySourceTypeHdfsSource, TypeBasicCopySourceTypeHiveSource, TypeBasicCopySourceTypeHubspotSource, TypeBasicCopySourceTypeImpalaSource, TypeBasicCopySourceTypeInformixSource, TypeBasicCopySourceTypeJSONSource, TypeBasicCopySourceTypeJiraSource, TypeBasicCopySourceTypeLakeHouseTableSource, TypeBasicCopySourceTypeMagentoSource, TypeBasicCopySourceTypeMariaDBSource, TypeBasicCopySourceTypeMarketoSource, TypeBasicCopySourceTypeMicrosoftAccessSource, TypeBasicCopySourceTypeMongoDbAtlasSource, TypeBasicCopySourceTypeMongoDbSource, TypeBasicCopySourceTypeMongoDbV2Source, TypeBasicCopySourceTypeMySQLSource, TypeBasicCopySourceTypeNetezzaSource, TypeBasicCopySourceTypeODataSource, TypeBasicCopySourceTypeOdbcSource, TypeBasicCopySourceTypeOffice365Source, TypeBasicCopySourceTypeOracleServiceCloudSource, TypeBasicCopySourceTypeOracleSource, TypeBasicCopySourceTypeOrcSource, TypeBasicCopySourceTypeParquetSource, TypeBasicCopySourceTypePaypalSource, TypeBasicCopySourceTypePhoenixSource, TypeBasicCopySourceTypePostgreSQLSource, TypeBasicCopySourceTypePostgreSQLV2Source, TypeBasicCopySourceTypePrestoSource, TypeBasicCopySourceTypeQuickBooksSource, TypeBasicCopySourceTypeRelationalSource, TypeBasicCopySourceTypeResponsysSource, TypeBasicCopySourceTypeRestSource, TypeBasicCopySourceTypeSQLDWSource, TypeBasicCopySourceTypeSQLMISource, TypeBasicCopySourceTypeSQLServerSource, TypeBasicCopySourceTypeSQLSource, TypeBasicCopySourceTypeSalesforceMarketingCloudSource, TypeBasicCopySourceTypeSalesforceServiceCloudSource, TypeBasicCopySourceTypeSalesforceServiceCloudV2Source, TypeBasicCopySourceTypeSalesforceSource, TypeBasicCopySourceTypeSalesforceV2Source, TypeBasicCopySourceTypeSapBwSource, TypeBasicCopySourceTypeSapCloudForCustomerSource, TypeBasicCopySourceTypeSapEccSource, TypeBasicCopySourceTypeSapHanaSource, TypeBasicCopySourceTypeSapOdpSource, TypeBasicCopySourceTypeSapOpenHubSource, TypeBasicCopySourceTypeSapTableSource, TypeBasicCopySourceTypeServiceNowSource, TypeBasicCopySourceTypeServiceNowV2Source, TypeBasicCopySourceTypeSharePointOnlineListSource, TypeBasicCopySourceTypeShopifySource, TypeBasicCopySourceTypeSnowflakeSource, TypeBasicCopySourceTypeSnowflakeV2Source, TypeBasicCopySourceTypeSparkSource, TypeBasicCopySourceTypeSquareSource, TypeBasicCopySourceTypeSybaseSource, TypeBasicCopySourceTypeTabularSource, TypeBasicCopySourceTypeTeradataSource, TypeBasicCopySourceTypeVerticaSource, TypeBasicCopySourceTypeWarehouseSource, TypeBasicCopySourceTypeWebSource, TypeBasicCopySourceTypeXMLSource, TypeBasicCopySourceTypeXeroSource, TypeBasicCopySourceTypeZohoSource} } // TypeBasicCopyTranslator enumerates the values for type basic copy translator. @@ -2548,6 +2588,8 @@ const ( TypeBasicDatasetTypeGoogleAdWordsObject TypeBasicDataset = "GoogleAdWordsObject" // TypeBasicDatasetTypeGoogleBigQueryObject ... TypeBasicDatasetTypeGoogleBigQueryObject TypeBasicDataset = "GoogleBigQueryObject" + // TypeBasicDatasetTypeGoogleBigQueryV2Object ... + TypeBasicDatasetTypeGoogleBigQueryV2Object TypeBasicDataset = "GoogleBigQueryV2Object" // TypeBasicDatasetTypeGreenplumTable ... TypeBasicDatasetTypeGreenplumTable TypeBasicDataset = "GreenplumTable" // TypeBasicDatasetTypeHBaseObject ... @@ -2606,6 +2648,8 @@ const ( TypeBasicDatasetTypePhoenixObject TypeBasicDataset = "PhoenixObject" // TypeBasicDatasetTypePostgreSQLTable ... TypeBasicDatasetTypePostgreSQLTable TypeBasicDataset = "PostgreSqlTable" + // TypeBasicDatasetTypePostgreSQLV2Table ... + TypeBasicDatasetTypePostgreSQLV2Table TypeBasicDataset = "PostgreSqlV2Table" // TypeBasicDatasetTypePrestoObject ... TypeBasicDatasetTypePrestoObject TypeBasicDataset = "PrestoObject" // TypeBasicDatasetTypeQuickBooksObject ... @@ -2644,6 +2688,8 @@ const ( TypeBasicDatasetTypeSapTableResource TypeBasicDataset = "SapTableResource" // TypeBasicDatasetTypeServiceNowObject ... TypeBasicDatasetTypeServiceNowObject TypeBasicDataset = "ServiceNowObject" + // TypeBasicDatasetTypeServiceNowV2Object ... + TypeBasicDatasetTypeServiceNowV2Object TypeBasicDataset = "ServiceNowV2Object" // TypeBasicDatasetTypeSharePointOnlineListResource ... TypeBasicDatasetTypeSharePointOnlineListResource TypeBasicDataset = "SharePointOnlineListResource" // TypeBasicDatasetTypeShopifyObject ... @@ -2676,7 +2722,7 @@ const ( // PossibleTypeBasicDatasetValues returns an array of possible values for the TypeBasicDataset const type. func PossibleTypeBasicDatasetValues() []TypeBasicDataset { - return []TypeBasicDataset{TypeBasicDatasetTypeAmazonMWSObject, TypeBasicDatasetTypeAmazonRdsForOracleTable, TypeBasicDatasetTypeAmazonRdsForSQLServerTable, TypeBasicDatasetTypeAmazonRedshiftTable, TypeBasicDatasetTypeAmazonS3Object, TypeBasicDatasetTypeAvro, TypeBasicDatasetTypeAzureBlob, TypeBasicDatasetTypeAzureBlobFSFile, TypeBasicDatasetTypeAzureDataExplorerTable, TypeBasicDatasetTypeAzureDataLakeStoreFile, TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset, TypeBasicDatasetTypeAzureMariaDBTable, TypeBasicDatasetTypeAzureMySQLTable, TypeBasicDatasetTypeAzurePostgreSQLTable, TypeBasicDatasetTypeAzureSQLDWTable, TypeBasicDatasetTypeAzureSQLMITable, TypeBasicDatasetTypeAzureSQLTable, TypeBasicDatasetTypeAzureSearchIndex, TypeBasicDatasetTypeAzureTable, TypeBasicDatasetTypeBinary, TypeBasicDatasetTypeCassandraTable, TypeBasicDatasetTypeCommonDataServiceForAppsEntity, TypeBasicDatasetTypeConcurObject, TypeBasicDatasetTypeCosmosDbMongoDbAPICollection, TypeBasicDatasetTypeCosmosDbSQLAPICollection, TypeBasicDatasetTypeCouchbaseTable, TypeBasicDatasetTypeCustomDataset, TypeBasicDatasetTypeDataset, TypeBasicDatasetTypeDb2Table, TypeBasicDatasetTypeDelimitedText, TypeBasicDatasetTypeDocumentDbCollection, TypeBasicDatasetTypeDrillTable, TypeBasicDatasetTypeDynamicsAXResource, TypeBasicDatasetTypeDynamicsCrmEntity, TypeBasicDatasetTypeDynamicsEntity, TypeBasicDatasetTypeEloquaObject, TypeBasicDatasetTypeExcel, TypeBasicDatasetTypeFileShare, TypeBasicDatasetTypeGoogleAdWordsObject, TypeBasicDatasetTypeGoogleBigQueryObject, TypeBasicDatasetTypeGreenplumTable, TypeBasicDatasetTypeHBaseObject, TypeBasicDatasetTypeHTTPFile, TypeBasicDatasetTypeHiveObject, TypeBasicDatasetTypeHubspotObject, TypeBasicDatasetTypeImpalaObject, TypeBasicDatasetTypeInformixTable, TypeBasicDatasetTypeJSON, TypeBasicDatasetTypeJiraObject, TypeBasicDatasetTypeLakeHouseTable, TypeBasicDatasetTypeMagentoObject, TypeBasicDatasetTypeMariaDBTable, TypeBasicDatasetTypeMarketoObject, TypeBasicDatasetTypeMicrosoftAccessTable, TypeBasicDatasetTypeMongoDbAtlasCollection, TypeBasicDatasetTypeMongoDbCollection, TypeBasicDatasetTypeMongoDbV2Collection, TypeBasicDatasetTypeMySQLTable, TypeBasicDatasetTypeNetezzaTable, TypeBasicDatasetTypeODataResource, TypeBasicDatasetTypeOdbcTable, TypeBasicDatasetTypeOffice365Table, TypeBasicDatasetTypeOracleServiceCloudObject, TypeBasicDatasetTypeOracleTable, TypeBasicDatasetTypeOrc, TypeBasicDatasetTypeParquet, TypeBasicDatasetTypePaypalObject, TypeBasicDatasetTypePhoenixObject, TypeBasicDatasetTypePostgreSQLTable, TypeBasicDatasetTypePrestoObject, TypeBasicDatasetTypeQuickBooksObject, TypeBasicDatasetTypeRelationalTable, TypeBasicDatasetTypeResponsysObject, TypeBasicDatasetTypeRestResource, TypeBasicDatasetTypeSQLServerTable, TypeBasicDatasetTypeSalesforceMarketingCloudObject, TypeBasicDatasetTypeSalesforceObject, TypeBasicDatasetTypeSalesforceServiceCloudObject, TypeBasicDatasetTypeSalesforceServiceCloudV2Object, TypeBasicDatasetTypeSalesforceV2Object, TypeBasicDatasetTypeSapBwCube, TypeBasicDatasetTypeSapCloudForCustomerResource, TypeBasicDatasetTypeSapEccResource, TypeBasicDatasetTypeSapHanaTable, TypeBasicDatasetTypeSapOdpResource, TypeBasicDatasetTypeSapOpenHubTable, TypeBasicDatasetTypeSapTableResource, TypeBasicDatasetTypeServiceNowObject, TypeBasicDatasetTypeSharePointOnlineListResource, TypeBasicDatasetTypeShopifyObject, TypeBasicDatasetTypeSnowflakeTable, TypeBasicDatasetTypeSnowflakeV2Table, TypeBasicDatasetTypeSparkObject, TypeBasicDatasetTypeSquareObject, TypeBasicDatasetTypeSybaseTable, TypeBasicDatasetTypeTeradataTable, TypeBasicDatasetTypeVerticaTable, TypeBasicDatasetTypeWarehouseTable, TypeBasicDatasetTypeWebTable, TypeBasicDatasetTypeXML, TypeBasicDatasetTypeXeroObject, TypeBasicDatasetTypeZohoObject} + return []TypeBasicDataset{TypeBasicDatasetTypeAmazonMWSObject, TypeBasicDatasetTypeAmazonRdsForOracleTable, TypeBasicDatasetTypeAmazonRdsForSQLServerTable, TypeBasicDatasetTypeAmazonRedshiftTable, TypeBasicDatasetTypeAmazonS3Object, TypeBasicDatasetTypeAvro, TypeBasicDatasetTypeAzureBlob, TypeBasicDatasetTypeAzureBlobFSFile, TypeBasicDatasetTypeAzureDataExplorerTable, TypeBasicDatasetTypeAzureDataLakeStoreFile, TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset, TypeBasicDatasetTypeAzureMariaDBTable, TypeBasicDatasetTypeAzureMySQLTable, TypeBasicDatasetTypeAzurePostgreSQLTable, TypeBasicDatasetTypeAzureSQLDWTable, TypeBasicDatasetTypeAzureSQLMITable, TypeBasicDatasetTypeAzureSQLTable, TypeBasicDatasetTypeAzureSearchIndex, TypeBasicDatasetTypeAzureTable, TypeBasicDatasetTypeBinary, TypeBasicDatasetTypeCassandraTable, TypeBasicDatasetTypeCommonDataServiceForAppsEntity, TypeBasicDatasetTypeConcurObject, TypeBasicDatasetTypeCosmosDbMongoDbAPICollection, TypeBasicDatasetTypeCosmosDbSQLAPICollection, TypeBasicDatasetTypeCouchbaseTable, TypeBasicDatasetTypeCustomDataset, TypeBasicDatasetTypeDataset, TypeBasicDatasetTypeDb2Table, TypeBasicDatasetTypeDelimitedText, TypeBasicDatasetTypeDocumentDbCollection, TypeBasicDatasetTypeDrillTable, TypeBasicDatasetTypeDynamicsAXResource, TypeBasicDatasetTypeDynamicsCrmEntity, TypeBasicDatasetTypeDynamicsEntity, TypeBasicDatasetTypeEloquaObject, TypeBasicDatasetTypeExcel, TypeBasicDatasetTypeFileShare, TypeBasicDatasetTypeGoogleAdWordsObject, TypeBasicDatasetTypeGoogleBigQueryObject, TypeBasicDatasetTypeGoogleBigQueryV2Object, TypeBasicDatasetTypeGreenplumTable, TypeBasicDatasetTypeHBaseObject, TypeBasicDatasetTypeHTTPFile, TypeBasicDatasetTypeHiveObject, TypeBasicDatasetTypeHubspotObject, TypeBasicDatasetTypeImpalaObject, TypeBasicDatasetTypeInformixTable, TypeBasicDatasetTypeJSON, TypeBasicDatasetTypeJiraObject, TypeBasicDatasetTypeLakeHouseTable, TypeBasicDatasetTypeMagentoObject, TypeBasicDatasetTypeMariaDBTable, TypeBasicDatasetTypeMarketoObject, TypeBasicDatasetTypeMicrosoftAccessTable, TypeBasicDatasetTypeMongoDbAtlasCollection, TypeBasicDatasetTypeMongoDbCollection, TypeBasicDatasetTypeMongoDbV2Collection, TypeBasicDatasetTypeMySQLTable, TypeBasicDatasetTypeNetezzaTable, TypeBasicDatasetTypeODataResource, TypeBasicDatasetTypeOdbcTable, TypeBasicDatasetTypeOffice365Table, TypeBasicDatasetTypeOracleServiceCloudObject, TypeBasicDatasetTypeOracleTable, TypeBasicDatasetTypeOrc, TypeBasicDatasetTypeParquet, TypeBasicDatasetTypePaypalObject, TypeBasicDatasetTypePhoenixObject, TypeBasicDatasetTypePostgreSQLTable, TypeBasicDatasetTypePostgreSQLV2Table, TypeBasicDatasetTypePrestoObject, TypeBasicDatasetTypeQuickBooksObject, TypeBasicDatasetTypeRelationalTable, TypeBasicDatasetTypeResponsysObject, TypeBasicDatasetTypeRestResource, TypeBasicDatasetTypeSQLServerTable, TypeBasicDatasetTypeSalesforceMarketingCloudObject, TypeBasicDatasetTypeSalesforceObject, TypeBasicDatasetTypeSalesforceServiceCloudObject, TypeBasicDatasetTypeSalesforceServiceCloudV2Object, TypeBasicDatasetTypeSalesforceV2Object, TypeBasicDatasetTypeSapBwCube, TypeBasicDatasetTypeSapCloudForCustomerResource, TypeBasicDatasetTypeSapEccResource, TypeBasicDatasetTypeSapHanaTable, TypeBasicDatasetTypeSapOdpResource, TypeBasicDatasetTypeSapOpenHubTable, TypeBasicDatasetTypeSapTableResource, TypeBasicDatasetTypeServiceNowObject, TypeBasicDatasetTypeServiceNowV2Object, TypeBasicDatasetTypeSharePointOnlineListResource, TypeBasicDatasetTypeShopifyObject, TypeBasicDatasetTypeSnowflakeTable, TypeBasicDatasetTypeSnowflakeV2Table, TypeBasicDatasetTypeSparkObject, TypeBasicDatasetTypeSquareObject, TypeBasicDatasetTypeSybaseTable, TypeBasicDatasetTypeTeradataTable, TypeBasicDatasetTypeVerticaTable, TypeBasicDatasetTypeWarehouseTable, TypeBasicDatasetTypeWebTable, TypeBasicDatasetTypeXML, TypeBasicDatasetTypeXeroObject, TypeBasicDatasetTypeZohoObject} } // TypeBasicDatasetLocation enumerates the values for type basic dataset location. @@ -2995,6 +3041,8 @@ const ( TypeBasicLinkedServiceTypeGoogleAdWords TypeBasicLinkedService = "GoogleAdWords" // TypeBasicLinkedServiceTypeGoogleBigQuery ... TypeBasicLinkedServiceTypeGoogleBigQuery TypeBasicLinkedService = "GoogleBigQuery" + // TypeBasicLinkedServiceTypeGoogleBigQueryV2 ... + TypeBasicLinkedServiceTypeGoogleBigQueryV2 TypeBasicLinkedService = "GoogleBigQueryV2" // TypeBasicLinkedServiceTypeGoogleCloudStorage ... TypeBasicLinkedServiceTypeGoogleCloudStorage TypeBasicLinkedService = "GoogleCloudStorage" // TypeBasicLinkedServiceTypeGoogleSheets ... @@ -3061,6 +3109,8 @@ const ( TypeBasicLinkedServiceTypePhoenix TypeBasicLinkedService = "Phoenix" // TypeBasicLinkedServiceTypePostgreSQL ... TypeBasicLinkedServiceTypePostgreSQL TypeBasicLinkedService = "PostgreSql" + // TypeBasicLinkedServiceTypePostgreSQLV2 ... + TypeBasicLinkedServiceTypePostgreSQLV2 TypeBasicLinkedService = "PostgreSqlV2" // TypeBasicLinkedServiceTypePresto ... TypeBasicLinkedServiceTypePresto TypeBasicLinkedService = "Presto" // TypeBasicLinkedServiceTypeQuickBooks ... @@ -3099,6 +3149,8 @@ const ( TypeBasicLinkedServiceTypeSapTable TypeBasicLinkedService = "SapTable" // TypeBasicLinkedServiceTypeServiceNow ... TypeBasicLinkedServiceTypeServiceNow TypeBasicLinkedService = "ServiceNow" + // TypeBasicLinkedServiceTypeServiceNowV2 ... + TypeBasicLinkedServiceTypeServiceNowV2 TypeBasicLinkedService = "ServiceNowV2" // TypeBasicLinkedServiceTypeSftp ... TypeBasicLinkedServiceTypeSftp TypeBasicLinkedService = "Sftp" // TypeBasicLinkedServiceTypeSharePointOnlineList ... @@ -3139,7 +3191,7 @@ const ( // PossibleTypeBasicLinkedServiceValues returns an array of possible values for the TypeBasicLinkedService const type. func PossibleTypeBasicLinkedServiceValues() []TypeBasicLinkedService { - return []TypeBasicLinkedService{TypeBasicLinkedServiceTypeAmazonMWS, TypeBasicLinkedServiceTypeAmazonRdsForOracle, TypeBasicLinkedServiceTypeAmazonRdsForSQLServer, TypeBasicLinkedServiceTypeAmazonRedshift, TypeBasicLinkedServiceTypeAmazonS3, TypeBasicLinkedServiceTypeAmazonS3Compatible, TypeBasicLinkedServiceTypeAppFigures, TypeBasicLinkedServiceTypeAsana, TypeBasicLinkedServiceTypeAzureBatch, TypeBasicLinkedServiceTypeAzureBlobFS, TypeBasicLinkedServiceTypeAzureBlobStorage, TypeBasicLinkedServiceTypeAzureDataExplorer, TypeBasicLinkedServiceTypeAzureDataLakeAnalytics, TypeBasicLinkedServiceTypeAzureDataLakeStore, TypeBasicLinkedServiceTypeAzureDatabricks, TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake, TypeBasicLinkedServiceTypeAzureFileStorage, TypeBasicLinkedServiceTypeAzureFunction, TypeBasicLinkedServiceTypeAzureKeyVault, TypeBasicLinkedServiceTypeAzureML, TypeBasicLinkedServiceTypeAzureMLService, TypeBasicLinkedServiceTypeAzureMariaDB, TypeBasicLinkedServiceTypeAzureMySQL, TypeBasicLinkedServiceTypeAzurePostgreSQL, TypeBasicLinkedServiceTypeAzureSQLDW, TypeBasicLinkedServiceTypeAzureSQLDatabase, TypeBasicLinkedServiceTypeAzureSQLMI, TypeBasicLinkedServiceTypeAzureSearch, TypeBasicLinkedServiceTypeAzureStorage, TypeBasicLinkedServiceTypeAzureSynapseArtifacts, TypeBasicLinkedServiceTypeAzureTableStorage, TypeBasicLinkedServiceTypeCassandra, TypeBasicLinkedServiceTypeCommonDataServiceForApps, TypeBasicLinkedServiceTypeConcur, TypeBasicLinkedServiceTypeCosmosDb, TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI, TypeBasicLinkedServiceTypeCouchbase, TypeBasicLinkedServiceTypeCustomDataSource, TypeBasicLinkedServiceTypeDataworld, TypeBasicLinkedServiceTypeDb2, TypeBasicLinkedServiceTypeDrill, TypeBasicLinkedServiceTypeDynamics, TypeBasicLinkedServiceTypeDynamicsAX, TypeBasicLinkedServiceTypeDynamicsCrm, TypeBasicLinkedServiceTypeEloqua, TypeBasicLinkedServiceTypeFileServer, TypeBasicLinkedServiceTypeFtpServer, TypeBasicLinkedServiceTypeGoogleAdWords, TypeBasicLinkedServiceTypeGoogleBigQuery, TypeBasicLinkedServiceTypeGoogleCloudStorage, TypeBasicLinkedServiceTypeGoogleSheets, TypeBasicLinkedServiceTypeGreenplum, TypeBasicLinkedServiceTypeHBase, TypeBasicLinkedServiceTypeHDInsight, TypeBasicLinkedServiceTypeHDInsightOnDemand, TypeBasicLinkedServiceTypeHTTPServer, TypeBasicLinkedServiceTypeHdfs, TypeBasicLinkedServiceTypeHive, TypeBasicLinkedServiceTypeHubspot, TypeBasicLinkedServiceTypeImpala, TypeBasicLinkedServiceTypeInformix, TypeBasicLinkedServiceTypeJira, TypeBasicLinkedServiceTypeLakeHouse, TypeBasicLinkedServiceTypeLinkedService, TypeBasicLinkedServiceTypeMagento, TypeBasicLinkedServiceTypeMariaDB, TypeBasicLinkedServiceTypeMarketo, TypeBasicLinkedServiceTypeMicrosoftAccess, TypeBasicLinkedServiceTypeMongoDb, TypeBasicLinkedServiceTypeMongoDbAtlas, TypeBasicLinkedServiceTypeMongoDbV2, TypeBasicLinkedServiceTypeMySQL, TypeBasicLinkedServiceTypeNetezza, TypeBasicLinkedServiceTypeOData, TypeBasicLinkedServiceTypeOdbc, TypeBasicLinkedServiceTypeOffice365, TypeBasicLinkedServiceTypeOracle, TypeBasicLinkedServiceTypeOracleCloudStorage, TypeBasicLinkedServiceTypeOracleServiceCloud, TypeBasicLinkedServiceTypePaypal, TypeBasicLinkedServiceTypePhoenix, TypeBasicLinkedServiceTypePostgreSQL, TypeBasicLinkedServiceTypePresto, TypeBasicLinkedServiceTypeQuickBooks, TypeBasicLinkedServiceTypeQuickbase, TypeBasicLinkedServiceTypeResponsys, TypeBasicLinkedServiceTypeRestService, TypeBasicLinkedServiceTypeSQLServer, TypeBasicLinkedServiceTypeSalesforce, TypeBasicLinkedServiceTypeSalesforceMarketingCloud, TypeBasicLinkedServiceTypeSalesforceServiceCloud, TypeBasicLinkedServiceTypeSalesforceServiceCloudV2, TypeBasicLinkedServiceTypeSalesforceV2, TypeBasicLinkedServiceTypeSapBW, TypeBasicLinkedServiceTypeSapCloudForCustomer, TypeBasicLinkedServiceTypeSapEcc, TypeBasicLinkedServiceTypeSapHana, TypeBasicLinkedServiceTypeSapOdp, TypeBasicLinkedServiceTypeSapOpenHub, TypeBasicLinkedServiceTypeSapTable, TypeBasicLinkedServiceTypeServiceNow, TypeBasicLinkedServiceTypeSftp, TypeBasicLinkedServiceTypeSharePointOnlineList, TypeBasicLinkedServiceTypeShopify, TypeBasicLinkedServiceTypeSmartsheet, TypeBasicLinkedServiceTypeSnowflake, TypeBasicLinkedServiceTypeSnowflakeV2, TypeBasicLinkedServiceTypeSpark, TypeBasicLinkedServiceTypeSquare, TypeBasicLinkedServiceTypeSybase, TypeBasicLinkedServiceTypeTeamDesk, TypeBasicLinkedServiceTypeTeradata, TypeBasicLinkedServiceTypeTwilio, TypeBasicLinkedServiceTypeVertica, TypeBasicLinkedServiceTypeWarehouse, TypeBasicLinkedServiceTypeWeb, TypeBasicLinkedServiceTypeXero, TypeBasicLinkedServiceTypeZendesk, TypeBasicLinkedServiceTypeZoho} + return []TypeBasicLinkedService{TypeBasicLinkedServiceTypeAmazonMWS, TypeBasicLinkedServiceTypeAmazonRdsForOracle, TypeBasicLinkedServiceTypeAmazonRdsForSQLServer, TypeBasicLinkedServiceTypeAmazonRedshift, TypeBasicLinkedServiceTypeAmazonS3, TypeBasicLinkedServiceTypeAmazonS3Compatible, TypeBasicLinkedServiceTypeAppFigures, TypeBasicLinkedServiceTypeAsana, TypeBasicLinkedServiceTypeAzureBatch, TypeBasicLinkedServiceTypeAzureBlobFS, TypeBasicLinkedServiceTypeAzureBlobStorage, TypeBasicLinkedServiceTypeAzureDataExplorer, TypeBasicLinkedServiceTypeAzureDataLakeAnalytics, TypeBasicLinkedServiceTypeAzureDataLakeStore, TypeBasicLinkedServiceTypeAzureDatabricks, TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake, TypeBasicLinkedServiceTypeAzureFileStorage, TypeBasicLinkedServiceTypeAzureFunction, TypeBasicLinkedServiceTypeAzureKeyVault, TypeBasicLinkedServiceTypeAzureML, TypeBasicLinkedServiceTypeAzureMLService, TypeBasicLinkedServiceTypeAzureMariaDB, TypeBasicLinkedServiceTypeAzureMySQL, TypeBasicLinkedServiceTypeAzurePostgreSQL, TypeBasicLinkedServiceTypeAzureSQLDW, TypeBasicLinkedServiceTypeAzureSQLDatabase, TypeBasicLinkedServiceTypeAzureSQLMI, TypeBasicLinkedServiceTypeAzureSearch, TypeBasicLinkedServiceTypeAzureStorage, TypeBasicLinkedServiceTypeAzureSynapseArtifacts, TypeBasicLinkedServiceTypeAzureTableStorage, TypeBasicLinkedServiceTypeCassandra, TypeBasicLinkedServiceTypeCommonDataServiceForApps, TypeBasicLinkedServiceTypeConcur, TypeBasicLinkedServiceTypeCosmosDb, TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI, TypeBasicLinkedServiceTypeCouchbase, TypeBasicLinkedServiceTypeCustomDataSource, TypeBasicLinkedServiceTypeDataworld, TypeBasicLinkedServiceTypeDb2, TypeBasicLinkedServiceTypeDrill, TypeBasicLinkedServiceTypeDynamics, TypeBasicLinkedServiceTypeDynamicsAX, TypeBasicLinkedServiceTypeDynamicsCrm, TypeBasicLinkedServiceTypeEloqua, TypeBasicLinkedServiceTypeFileServer, TypeBasicLinkedServiceTypeFtpServer, TypeBasicLinkedServiceTypeGoogleAdWords, TypeBasicLinkedServiceTypeGoogleBigQuery, TypeBasicLinkedServiceTypeGoogleBigQueryV2, TypeBasicLinkedServiceTypeGoogleCloudStorage, TypeBasicLinkedServiceTypeGoogleSheets, TypeBasicLinkedServiceTypeGreenplum, TypeBasicLinkedServiceTypeHBase, TypeBasicLinkedServiceTypeHDInsight, TypeBasicLinkedServiceTypeHDInsightOnDemand, TypeBasicLinkedServiceTypeHTTPServer, TypeBasicLinkedServiceTypeHdfs, TypeBasicLinkedServiceTypeHive, TypeBasicLinkedServiceTypeHubspot, TypeBasicLinkedServiceTypeImpala, TypeBasicLinkedServiceTypeInformix, TypeBasicLinkedServiceTypeJira, TypeBasicLinkedServiceTypeLakeHouse, TypeBasicLinkedServiceTypeLinkedService, TypeBasicLinkedServiceTypeMagento, TypeBasicLinkedServiceTypeMariaDB, TypeBasicLinkedServiceTypeMarketo, TypeBasicLinkedServiceTypeMicrosoftAccess, TypeBasicLinkedServiceTypeMongoDb, TypeBasicLinkedServiceTypeMongoDbAtlas, TypeBasicLinkedServiceTypeMongoDbV2, TypeBasicLinkedServiceTypeMySQL, TypeBasicLinkedServiceTypeNetezza, TypeBasicLinkedServiceTypeOData, TypeBasicLinkedServiceTypeOdbc, TypeBasicLinkedServiceTypeOffice365, TypeBasicLinkedServiceTypeOracle, TypeBasicLinkedServiceTypeOracleCloudStorage, TypeBasicLinkedServiceTypeOracleServiceCloud, TypeBasicLinkedServiceTypePaypal, TypeBasicLinkedServiceTypePhoenix, TypeBasicLinkedServiceTypePostgreSQL, TypeBasicLinkedServiceTypePostgreSQLV2, TypeBasicLinkedServiceTypePresto, TypeBasicLinkedServiceTypeQuickBooks, TypeBasicLinkedServiceTypeQuickbase, TypeBasicLinkedServiceTypeResponsys, TypeBasicLinkedServiceTypeRestService, TypeBasicLinkedServiceTypeSQLServer, TypeBasicLinkedServiceTypeSalesforce, TypeBasicLinkedServiceTypeSalesforceMarketingCloud, TypeBasicLinkedServiceTypeSalesforceServiceCloud, TypeBasicLinkedServiceTypeSalesforceServiceCloudV2, TypeBasicLinkedServiceTypeSalesforceV2, TypeBasicLinkedServiceTypeSapBW, TypeBasicLinkedServiceTypeSapCloudForCustomer, TypeBasicLinkedServiceTypeSapEcc, TypeBasicLinkedServiceTypeSapHana, TypeBasicLinkedServiceTypeSapOdp, TypeBasicLinkedServiceTypeSapOpenHub, TypeBasicLinkedServiceTypeSapTable, TypeBasicLinkedServiceTypeServiceNow, TypeBasicLinkedServiceTypeServiceNowV2, TypeBasicLinkedServiceTypeSftp, TypeBasicLinkedServiceTypeSharePointOnlineList, TypeBasicLinkedServiceTypeShopify, TypeBasicLinkedServiceTypeSmartsheet, TypeBasicLinkedServiceTypeSnowflake, TypeBasicLinkedServiceTypeSnowflakeV2, TypeBasicLinkedServiceTypeSpark, TypeBasicLinkedServiceTypeSquare, TypeBasicLinkedServiceTypeSybase, TypeBasicLinkedServiceTypeTeamDesk, TypeBasicLinkedServiceTypeTeradata, TypeBasicLinkedServiceTypeTwilio, TypeBasicLinkedServiceTypeVertica, TypeBasicLinkedServiceTypeWarehouse, TypeBasicLinkedServiceTypeWeb, TypeBasicLinkedServiceTypeXero, TypeBasicLinkedServiceTypeZendesk, TypeBasicLinkedServiceTypeZoho} } // TypeBasicSsisObjectMetadata enumerates the values for type basic ssis object metadata. diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/exposurecontrol.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/exposurecontrol.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/exposurecontrol.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/exposurecontrol.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/factories.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/factories.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/factories.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/factories.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/globalparameters.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/globalparameters.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/globalparameters.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/globalparameters.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimenodes.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimenodes.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimenodes.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimenodes.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimeobjectmetadata.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimeobjectmetadata.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimeobjectmetadata.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimeobjectmetadata.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimes.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimes.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimes.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/integrationruntimes.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/linkedservices.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/linkedservices.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/linkedservices.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/linkedservices.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/managedprivateendpoints.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/managedprivateendpoints.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/managedprivateendpoints.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/managedprivateendpoints.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/managedvirtualnetworks.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/managedvirtualnetworks.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/managedvirtualnetworks.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/managedvirtualnetworks.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/models.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/models.go new file mode 100644 index 000000000000..e6dda45fa80b --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/models.go @@ -0,0 +1,318096 @@ +package datafactory + +// 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. + +import ( + "context" + "encoding/json" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/date" + "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/go-autorest/tracing" + "github.com/gofrs/uuid" +) + +// The package's fully qualified name. +const fqdn = "home/runner/work/kermit/kermit/sdk/datafactory/2018-06-01/datafactory" + +// AccessPolicyResponse get Data Plane read only token response definition. +type AccessPolicyResponse struct { + autorest.Response `json:"-"` + // Policy - The user access policy. + Policy *UserAccessPolicy `json:"policy,omitempty"` + // AccessToken - Data Plane read only access token. + AccessToken *string `json:"accessToken,omitempty"` + // DataPlaneURL - Data Plane service base URL. + DataPlaneURL *string `json:"dataPlaneUrl,omitempty"` +} + +// BasicActivity a pipeline activity. +type BasicActivity interface { + AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) + AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) + AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) + AsScriptActivity() (*ScriptActivity, bool) + AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) + AsAzureFunctionActivity() (*AzureFunctionActivity, bool) + AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) + AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) + AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) + AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) + AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) + AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) + AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) + AsGetMetadataActivity() (*GetMetadataActivity, bool) + AsWebActivity() (*WebActivity, bool) + AsLookupActivity() (*LookupActivity, bool) + AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) + AsDeleteActivity() (*DeleteActivity, bool) + AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) + AsCustomActivity() (*CustomActivity, bool) + AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) + AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) + AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) + AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) + AsHDInsightPigActivity() (*HDInsightPigActivity, bool) + AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) + AsCopyActivity() (*CopyActivity, bool) + AsExecutionActivity() (*ExecutionActivity, bool) + AsBasicExecutionActivity() (BasicExecutionActivity, bool) + AsWebHookActivity() (*WebHookActivity, bool) + AsAppendVariableActivity() (*AppendVariableActivity, bool) + AsSetVariableActivity() (*SetVariableActivity, bool) + AsFilterActivity() (*FilterActivity, bool) + AsValidationActivity() (*ValidationActivity, bool) + AsUntilActivity() (*UntilActivity, bool) + AsFailActivity() (*FailActivity, bool) + AsWaitActivity() (*WaitActivity, bool) + AsForEachActivity() (*ForEachActivity, bool) + AsSwitchActivity() (*SwitchActivity, bool) + AsIfConditionActivity() (*IfConditionActivity, bool) + AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) + AsControlActivity() (*ControlActivity, bool) + AsBasicControlActivity() (BasicControlActivity, bool) + AsActivity() (*Activity, bool) +} + +// Activity a pipeline activity. +type Activity struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +func unmarshalBasicActivity(body []byte) (BasicActivity, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicActivityTypeExecuteWranglingDataflow): + var ewda ExecuteWranglingDataflowActivity + err := json.Unmarshal(body, &ewda) + return ewda, err + case string(TypeBasicActivityTypeSparkJob): + var ssjda SynapseSparkJobDefinitionActivity + err := json.Unmarshal(body, &ssjda) + return ssjda, err + case string(TypeBasicActivityTypeSynapseNotebook): + var sna SynapseNotebookActivity + err := json.Unmarshal(body, &sna) + return sna, err + case string(TypeBasicActivityTypeScript): + var sa ScriptActivity + err := json.Unmarshal(body, &sa) + return sa, err + case string(TypeBasicActivityTypeExecuteDataFlow): + var edfa ExecuteDataFlowActivity + err := json.Unmarshal(body, &edfa) + return edfa, err + case string(TypeBasicActivityTypeAzureFunctionActivity): + var afa AzureFunctionActivity + err := json.Unmarshal(body, &afa) + return afa, err + case string(TypeBasicActivityTypeDatabricksSparkPython): + var dspa DatabricksSparkPythonActivity + err := json.Unmarshal(body, &dspa) + return dspa, err + case string(TypeBasicActivityTypeDatabricksSparkJar): + var dsja DatabricksSparkJarActivity + err := json.Unmarshal(body, &dsja) + return dsja, err + case string(TypeBasicActivityTypeDatabricksNotebook): + var dna DatabricksNotebookActivity + err := json.Unmarshal(body, &dna) + return dna, err + case string(TypeBasicActivityTypeDataLakeAnalyticsUSQL): + var dlaua DataLakeAnalyticsUSQLActivity + err := json.Unmarshal(body, &dlaua) + return dlaua, err + case string(TypeBasicActivityTypeAzureMLExecutePipeline): + var amepa AzureMLExecutePipelineActivity + err := json.Unmarshal(body, &amepa) + return amepa, err + case string(TypeBasicActivityTypeAzureMLUpdateResource): + var amura AzureMLUpdateResourceActivity + err := json.Unmarshal(body, &amura) + return amura, err + case string(TypeBasicActivityTypeAzureMLBatchExecution): + var ambea AzureMLBatchExecutionActivity + err := json.Unmarshal(body, &ambea) + return ambea, err + case string(TypeBasicActivityTypeGetMetadata): + var gma GetMetadataActivity + err := json.Unmarshal(body, &gma) + return gma, err + case string(TypeBasicActivityTypeWebActivity): + var wa WebActivity + err := json.Unmarshal(body, &wa) + return wa, err + case string(TypeBasicActivityTypeLookup): + var la LookupActivity + err := json.Unmarshal(body, &la) + return la, err + case string(TypeBasicActivityTypeAzureDataExplorerCommand): + var adeca AzureDataExplorerCommandActivity + err := json.Unmarshal(body, &adeca) + return adeca, err + case string(TypeBasicActivityTypeDelete): + var da DeleteActivity + err := json.Unmarshal(body, &da) + return da, err + case string(TypeBasicActivityTypeSQLServerStoredProcedure): + var ssspa SQLServerStoredProcedureActivity + err := json.Unmarshal(body, &ssspa) + return ssspa, err + case string(TypeBasicActivityTypeCustom): + var ca CustomActivity + err := json.Unmarshal(body, &ca) + return ca, err + case string(TypeBasicActivityTypeExecuteSSISPackage): + var espa ExecuteSSISPackageActivity + err := json.Unmarshal(body, &espa) + return espa, err + case string(TypeBasicActivityTypeHDInsightSpark): + var hisa HDInsightSparkActivity + err := json.Unmarshal(body, &hisa) + return hisa, err + case string(TypeBasicActivityTypeHDInsightStreaming): + var hisa HDInsightStreamingActivity + err := json.Unmarshal(body, &hisa) + return hisa, err + case string(TypeBasicActivityTypeHDInsightMapReduce): + var himra HDInsightMapReduceActivity + err := json.Unmarshal(body, &himra) + return himra, err + case string(TypeBasicActivityTypeHDInsightPig): + var hipa HDInsightPigActivity + err := json.Unmarshal(body, &hipa) + return hipa, err + case string(TypeBasicActivityTypeHDInsightHive): + var hiha HDInsightHiveActivity + err := json.Unmarshal(body, &hiha) + return hiha, err + case string(TypeBasicActivityTypeCopy): + var ca CopyActivity + err := json.Unmarshal(body, &ca) + return ca, err + case string(TypeBasicActivityTypeExecution): + var ea ExecutionActivity + err := json.Unmarshal(body, &ea) + return ea, err + case string(TypeBasicActivityTypeWebHook): + var wha WebHookActivity + err := json.Unmarshal(body, &wha) + return wha, err + case string(TypeBasicActivityTypeAppendVariable): + var ava AppendVariableActivity + err := json.Unmarshal(body, &ava) + return ava, err + case string(TypeBasicActivityTypeSetVariable): + var sva SetVariableActivity + err := json.Unmarshal(body, &sva) + return sva, err + case string(TypeBasicActivityTypeFilter): + var fa FilterActivity + err := json.Unmarshal(body, &fa) + return fa, err + case string(TypeBasicActivityTypeValidation): + var va ValidationActivity + err := json.Unmarshal(body, &va) + return va, err + case string(TypeBasicActivityTypeUntil): + var ua UntilActivity + err := json.Unmarshal(body, &ua) + return ua, err + case string(TypeBasicActivityTypeFail): + var fa FailActivity + err := json.Unmarshal(body, &fa) + return fa, err + case string(TypeBasicActivityTypeWait): + var wa WaitActivity + err := json.Unmarshal(body, &wa) + return wa, err + case string(TypeBasicActivityTypeForEach): + var fea ForEachActivity + err := json.Unmarshal(body, &fea) + return fea, err + case string(TypeBasicActivityTypeSwitch): + var sa SwitchActivity + err := json.Unmarshal(body, &sa) + return sa, err + case string(TypeBasicActivityTypeIfCondition): + var ica IfConditionActivity + err := json.Unmarshal(body, &ica) + return ica, err + case string(TypeBasicActivityTypeExecutePipeline): + var epa ExecutePipelineActivity + err := json.Unmarshal(body, &epa) + return epa, err + case string(TypeBasicActivityTypeContainer): + var ca ControlActivity + err := json.Unmarshal(body, &ca) + return ca, err + default: + var a Activity + err := json.Unmarshal(body, &a) + return a, err + } +} +func unmarshalBasicActivityArray(body []byte) ([]BasicActivity, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + aArray := make([]BasicActivity, len(rawMessages)) + + for index, rawMessage := range rawMessages { + a, err := unmarshalBasicActivity(*rawMessage) + if err != nil { + return nil, err + } + aArray[index] = a + } + return aArray, nil +} + +// MarshalJSON is the custom marshaler for Activity. +func (a Activity) MarshalJSON() ([]byte, error) { + a.Type = TypeBasicActivityTypeActivity + objectMap := make(map[string]interface{}) + if a.Name != nil { + objectMap["name"] = a.Name + } + if a.Description != nil { + objectMap["description"] = a.Description + } + if a.State != "" { + objectMap["state"] = a.State + } + if a.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = a.OnInactiveMarkAs + } + if a.DependsOn != nil { + objectMap["dependsOn"] = a.DependsOn + } + if a.UserProperties != nil { + objectMap["userProperties"] = a.UserProperties + } + if a.Type != "" { + objectMap["type"] = a.Type + } + for k, v := range a.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for Activity. +func (a Activity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for Activity. +func (a Activity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for Activity. +func (a Activity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for Activity. +func (a Activity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for Activity. +func (a Activity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for Activity. +func (a Activity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for Activity. +func (a Activity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for Activity. +func (a Activity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for Activity. +func (a Activity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for Activity. +func (a Activity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for Activity. +func (a Activity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for Activity. +func (a Activity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for Activity. +func (a Activity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for Activity. +func (a Activity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for Activity. +func (a Activity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for Activity. +func (a Activity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for Activity. +func (a Activity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for Activity. +func (a Activity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for Activity. +func (a Activity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for Activity. +func (a Activity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for Activity. +func (a Activity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for Activity. +func (a Activity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for Activity. +func (a Activity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for Activity. +func (a Activity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for Activity. +func (a Activity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for Activity. +func (a Activity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for Activity. +func (a Activity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for Activity. +func (a Activity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for Activity. +func (a Activity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for Activity. +func (a Activity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for Activity. +func (a Activity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for Activity. +func (a Activity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for Activity. +func (a Activity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for Activity. +func (a Activity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for Activity. +func (a Activity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for Activity. +func (a Activity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for Activity. +func (a Activity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for Activity. +func (a Activity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for Activity. +func (a Activity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for Activity. +func (a Activity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for Activity. +func (a Activity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for Activity. +func (a Activity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for Activity. +func (a Activity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for Activity. +func (a Activity) AsActivity() (*Activity, bool) { + return &a, true +} + +// AsBasicActivity is the BasicActivity implementation for Activity. +func (a Activity) AsBasicActivity() (BasicActivity, bool) { + return &a, true +} + +// UnmarshalJSON is the custom unmarshaler for Activity struct. +func (a *Activity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if a.AdditionalProperties == nil { + a.AdditionalProperties = make(map[string]interface{}) + } + a.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + a.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + a.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + a.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + a.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + a.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + a.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + a.Type = typeVar + } + } + } + + return nil +} + +// ActivityDependency activity dependency information. +type ActivityDependency struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Activity - Activity name. + Activity *string `json:"activity,omitempty"` + // DependencyConditions - Match-Condition for the dependency. + DependencyConditions *[]DependencyCondition `json:"dependencyConditions,omitempty"` +} + +// MarshalJSON is the custom marshaler for ActivityDependency. +func (ad ActivityDependency) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ad.Activity != nil { + objectMap["activity"] = ad.Activity + } + if ad.DependencyConditions != nil { + objectMap["dependencyConditions"] = ad.DependencyConditions + } + for k, v := range ad.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ActivityDependency struct. +func (ad *ActivityDependency) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ad.AdditionalProperties == nil { + ad.AdditionalProperties = make(map[string]interface{}) + } + ad.AdditionalProperties[k] = additionalProperties + } + case "activity": + if v != nil { + var activity string + err = json.Unmarshal(*v, &activity) + if err != nil { + return err + } + ad.Activity = &activity + } + case "dependencyConditions": + if v != nil { + var dependencyConditions []DependencyCondition + err = json.Unmarshal(*v, &dependencyConditions) + if err != nil { + return err + } + ad.DependencyConditions = &dependencyConditions + } + } + } + + return nil +} + +// ActivityPolicy execution policy for an activity. +type ActivityPolicy struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Timeout - 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"` + // Retry - Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. + Retry interface{} `json:"retry,omitempty"` + // RetryIntervalInSeconds - Interval between each retry attempt (in seconds). The default is 30 sec. + RetryIntervalInSeconds *int32 `json:"retryIntervalInSeconds,omitempty"` + // SecureInput - When set to true, Input from activity is considered as secure and will not be logged to monitoring. + SecureInput *bool `json:"secureInput,omitempty"` + // SecureOutput - When set to true, Output from activity is considered as secure and will not be logged to monitoring. + SecureOutput *bool `json:"secureOutput,omitempty"` +} + +// MarshalJSON is the custom marshaler for ActivityPolicy. +func (ap ActivityPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ap.Timeout != nil { + objectMap["timeout"] = ap.Timeout + } + if ap.Retry != nil { + objectMap["retry"] = ap.Retry + } + if ap.RetryIntervalInSeconds != nil { + objectMap["retryIntervalInSeconds"] = ap.RetryIntervalInSeconds + } + if ap.SecureInput != nil { + objectMap["secureInput"] = ap.SecureInput + } + if ap.SecureOutput != nil { + objectMap["secureOutput"] = ap.SecureOutput + } + for k, v := range ap.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ActivityPolicy struct. +func (ap *ActivityPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ap.AdditionalProperties == nil { + ap.AdditionalProperties = make(map[string]interface{}) + } + ap.AdditionalProperties[k] = additionalProperties + } + case "timeout": + if v != nil { + var timeout interface{} + err = json.Unmarshal(*v, &timeout) + if err != nil { + return err + } + ap.Timeout = timeout + } + case "retry": + if v != nil { + var retry interface{} + err = json.Unmarshal(*v, &retry) + if err != nil { + return err + } + ap.Retry = retry + } + case "retryIntervalInSeconds": + if v != nil { + var retryIntervalInSeconds int32 + err = json.Unmarshal(*v, &retryIntervalInSeconds) + if err != nil { + return err + } + ap.RetryIntervalInSeconds = &retryIntervalInSeconds + } + case "secureInput": + if v != nil { + var secureInput bool + err = json.Unmarshal(*v, &secureInput) + if err != nil { + return err + } + ap.SecureInput = &secureInput + } + case "secureOutput": + if v != nil { + var secureOutput bool + err = json.Unmarshal(*v, &secureOutput) + if err != nil { + return err + } + ap.SecureOutput = &secureOutput + } + } + } + + return nil +} + +// ActivityRun information about an activity run in a pipeline. +type ActivityRun struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // PipelineName - READ-ONLY; The name of the pipeline. + PipelineName *string `json:"pipelineName,omitempty"` + // PipelineRunID - READ-ONLY; The id of the pipeline run. + PipelineRunID *string `json:"pipelineRunId,omitempty"` + // ActivityName - READ-ONLY; The name of the activity. + ActivityName *string `json:"activityName,omitempty"` + // ActivityType - READ-ONLY; The type of the activity. + ActivityType *string `json:"activityType,omitempty"` + // ActivityRunID - READ-ONLY; The id of the activity run. + ActivityRunID *string `json:"activityRunId,omitempty"` + // LinkedServiceName - READ-ONLY; The name of the compute linked service. + LinkedServiceName *string `json:"linkedServiceName,omitempty"` + // Status - READ-ONLY; The status of the activity run. + Status *string `json:"status,omitempty"` + // ActivityRunStart - READ-ONLY; The start time of the activity run in 'ISO 8601' format. + ActivityRunStart *date.Time `json:"activityRunStart,omitempty"` + // ActivityRunEnd - READ-ONLY; The end time of the activity run in 'ISO 8601' format. + ActivityRunEnd *date.Time `json:"activityRunEnd,omitempty"` + // DurationInMs - READ-ONLY; The duration of the activity run. + DurationInMs *int32 `json:"durationInMs,omitempty"` + // Input - READ-ONLY; The input for the activity. + Input interface{} `json:"input,omitempty"` + // Output - READ-ONLY; The output for the activity. + Output interface{} `json:"output,omitempty"` + // Error - READ-ONLY; The error if any from the activity run. + Error interface{} `json:"error,omitempty"` +} + +// MarshalJSON is the custom marshaler for ActivityRun. +func (ar ActivityRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + for k, v := range ar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ActivityRun struct. +func (ar *ActivityRun) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ar.AdditionalProperties == nil { + ar.AdditionalProperties = make(map[string]interface{}) + } + ar.AdditionalProperties[k] = additionalProperties + } + case "pipelineName": + if v != nil { + var pipelineName string + err = json.Unmarshal(*v, &pipelineName) + if err != nil { + return err + } + ar.PipelineName = &pipelineName + } + case "pipelineRunId": + if v != nil { + var pipelineRunID string + err = json.Unmarshal(*v, &pipelineRunID) + if err != nil { + return err + } + ar.PipelineRunID = &pipelineRunID + } + case "activityName": + if v != nil { + var activityName string + err = json.Unmarshal(*v, &activityName) + if err != nil { + return err + } + ar.ActivityName = &activityName + } + case "activityType": + if v != nil { + var activityType string + err = json.Unmarshal(*v, &activityType) + if err != nil { + return err + } + ar.ActivityType = &activityType + } + case "activityRunId": + if v != nil { + var activityRunID string + err = json.Unmarshal(*v, &activityRunID) + if err != nil { + return err + } + ar.ActivityRunID = &activityRunID + } + case "linkedServiceName": + if v != nil { + var linkedServiceName string + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ar.LinkedServiceName = &linkedServiceName + } + case "status": + if v != nil { + var status string + err = json.Unmarshal(*v, &status) + if err != nil { + return err + } + ar.Status = &status + } + case "activityRunStart": + if v != nil { + var activityRunStart date.Time + err = json.Unmarshal(*v, &activityRunStart) + if err != nil { + return err + } + ar.ActivityRunStart = &activityRunStart + } + case "activityRunEnd": + if v != nil { + var activityRunEnd date.Time + err = json.Unmarshal(*v, &activityRunEnd) + if err != nil { + return err + } + ar.ActivityRunEnd = &activityRunEnd + } + case "durationInMs": + if v != nil { + var durationInMs int32 + err = json.Unmarshal(*v, &durationInMs) + if err != nil { + return err + } + ar.DurationInMs = &durationInMs + } + case "input": + if v != nil { + var input interface{} + err = json.Unmarshal(*v, &input) + if err != nil { + return err + } + ar.Input = input + } + case "output": + if v != nil { + var output interface{} + err = json.Unmarshal(*v, &output) + if err != nil { + return err + } + ar.Output = output + } + case "error": + if v != nil { + var errorVar interface{} + err = json.Unmarshal(*v, &errorVar) + if err != nil { + return err + } + ar.Error = errorVar + } + } + } + + return nil +} + +// ActivityRunsQueryResponse a list activity runs. +type ActivityRunsQueryResponse struct { + autorest.Response `json:"-"` + // Value - List of activity runs. + Value *[]ActivityRun `json:"value,omitempty"` + // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + ContinuationToken *string `json:"continuationToken,omitempty"` +} + +// AddDataFlowToDebugSessionResponse response body structure for starting data flow debug session. +type AddDataFlowToDebugSessionResponse struct { + autorest.Response `json:"-"` + // JobVersion - 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 { + // Name - Additional column name. Type: string (or Expression with resultType string). + Name interface{} `json:"name,omitempty"` + // Value - Additional column value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` +} + +// AmazonMWSLinkedService amazon Marketplace Web Service linked service. +type AmazonMWSLinkedService struct { + // AmazonMWSLinkedServiceTypeProperties - Amazon Marketplace Web Service linked service properties. + *AmazonMWSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) MarshalJSON() ([]byte, error) { + amls.Type = TypeBasicLinkedServiceTypeAmazonMWS + objectMap := make(map[string]interface{}) + if amls.AmazonMWSLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = amls.AmazonMWSLinkedServiceTypeProperties + } + if amls.ConnectVia != nil { + objectMap["connectVia"] = amls.ConnectVia + } + if amls.Description != nil { + objectMap["description"] = amls.Description + } + if amls.Parameters != nil { + objectMap["parameters"] = amls.Parameters + } + if amls.Annotations != nil { + objectMap["annotations"] = amls.Annotations + } + if amls.Type != "" { + objectMap["type"] = amls.Type + } + for k, v := range amls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return &amls, true +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. +func (amls AmazonMWSLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &amls, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonMWSLinkedService struct. +func (amls *AmazonMWSLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonMWSLinkedServiceTypeProperties AmazonMWSLinkedServiceTypeProperties + err = json.Unmarshal(*v, &amazonMWSLinkedServiceTypeProperties) + if err != nil { + return err + } + amls.AmazonMWSLinkedServiceTypeProperties = &amazonMWSLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amls.AdditionalProperties == nil { + amls.AdditionalProperties = make(map[string]interface{}) + } + amls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + amls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amls.Type = typeVar + } + } + } + + return nil +} + +// AmazonMWSLinkedServiceTypeProperties amazon Marketplace Web Service linked service properties. +type AmazonMWSLinkedServiceTypeProperties struct { + // Endpoint - The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) + Endpoint interface{} `json:"endpoint,omitempty"` + // MarketplaceID - 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"` + // SellerID - The Amazon seller ID. + SellerID interface{} `json:"sellerID,omitempty"` + // MwsAuthToken - The Amazon MWS authentication token. + MwsAuthToken BasicSecretBase `json:"mwsAuthToken,omitempty"` + // AccessKeyID - The access key id used to access data. + AccessKeyID interface{} `json:"accessKeyId,omitempty"` + // SecretKey - The secret key used to access data. + SecretKey BasicSecretBase `json:"secretKey,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AmazonMWSLinkedServiceTypeProperties struct. +func (amlstp *AmazonMWSLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + amlstp.Endpoint = endpoint + } + case "marketplaceID": + if v != nil { + var marketplaceID interface{} + err = json.Unmarshal(*v, &marketplaceID) + if err != nil { + return err + } + amlstp.MarketplaceID = marketplaceID + } + case "sellerID": + if v != nil { + var sellerID interface{} + err = json.Unmarshal(*v, &sellerID) + if err != nil { + return err + } + amlstp.SellerID = sellerID + } + case "mwsAuthToken": + if v != nil { + mwsAuthToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + amlstp.MwsAuthToken = mwsAuthToken + } + case "accessKeyId": + if v != nil { + var accessKeyID interface{} + err = json.Unmarshal(*v, &accessKeyID) + if err != nil { + return err + } + amlstp.AccessKeyID = accessKeyID + } + case "secretKey": + if v != nil { + secretKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + amlstp.SecretKey = secretKey + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + amlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + amlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + amlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + amlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AmazonMWSObjectDataset amazon Marketplace Web Service dataset. +type AmazonMWSObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) MarshalJSON() ([]byte, error) { + amod.Type = TypeBasicDatasetTypeAmazonMWSObject + objectMap := make(map[string]interface{}) + if amod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = amod.GenericDatasetTypeProperties + } + if amod.Description != nil { + objectMap["description"] = amod.Description + } + if amod.Structure != nil { + objectMap["structure"] = amod.Structure + } + if amod.Schema != nil { + objectMap["schema"] = amod.Schema + } + if amod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = amod.LinkedServiceName + } + if amod.Parameters != nil { + objectMap["parameters"] = amod.Parameters + } + if amod.Annotations != nil { + objectMap["annotations"] = amod.Annotations + } + if amod.Folder != nil { + objectMap["folder"] = amod.Folder + } + if amod.Type != "" { + objectMap["type"] = amod.Type + } + for k, v := range amod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return &amod, true +} + +// AsHTTPDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AmazonMWSObjectDataset. +func (amod AmazonMWSObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &amod, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonMWSObjectDataset struct. +func (amod *AmazonMWSObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + amod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amod.AdditionalProperties == nil { + amod.AdditionalProperties = make(map[string]interface{}) + } + amod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + amod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + amod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + amod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + amod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amod.Type = typeVar + } + } + } + + return nil +} + +// AmazonMWSSource a copy activity Amazon Marketplace Web Service source. +type AmazonMWSSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonMWSSource. +func (ams AmazonMWSSource) MarshalJSON() ([]byte, error) { + ams.Type = TypeBasicCopySourceTypeAmazonMWSSource + objectMap := make(map[string]interface{}) + if ams.Query != nil { + objectMap["query"] = ams.Query + } + if ams.QueryTimeout != nil { + objectMap["queryTimeout"] = ams.QueryTimeout + } + if ams.AdditionalColumns != nil { + objectMap["additionalColumns"] = ams.AdditionalColumns + } + if ams.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ams.SourceRetryCount + } + if ams.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ams.SourceRetryWait + } + if ams.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ams.MaxConcurrentConnections + } + if ams.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ams.DisableMetricsCollection + } + if ams.Type != "" { + objectMap["type"] = ams.Type + } + for k, v := range ams.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return &ams, true +} + +// AsCassandraSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ams, true +} + +// AsBinarySource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AmazonMWSSource. +func (ams AmazonMWSSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ams, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonMWSSource struct. +func (ams *AmazonMWSSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ams.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ams.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ams.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ams.AdditionalProperties == nil { + ams.AdditionalProperties = make(map[string]interface{}) + } + ams.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ams.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ams.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ams.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ams.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ams.Type = typeVar + } + } + } + + return nil +} + +// AmazonRdsForLinkedServiceTypeProperties amazonRdsForOracle database linked service properties. +type AmazonRdsForLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRdsForLinkedServiceTypeProperties struct. +func (arflstp *AmazonRdsForLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + arflstp.ConnectionString = connectionString + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + arflstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + arflstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AmazonRdsForOracleLinkedService amazonRdsForOracle database. +type AmazonRdsForOracleLinkedService struct { + // AmazonRdsForLinkedServiceTypeProperties - AmazonRdsForOracle database linked service properties. + *AmazonRdsForLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) MarshalJSON() ([]byte, error) { + arfols.Type = TypeBasicLinkedServiceTypeAmazonRdsForOracle + objectMap := make(map[string]interface{}) + if arfols.AmazonRdsForLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = arfols.AmazonRdsForLinkedServiceTypeProperties + } + if arfols.ConnectVia != nil { + objectMap["connectVia"] = arfols.ConnectVia + } + if arfols.Description != nil { + objectMap["description"] = arfols.Description + } + if arfols.Parameters != nil { + objectMap["parameters"] = arfols.Parameters + } + if arfols.Annotations != nil { + objectMap["annotations"] = arfols.Annotations + } + if arfols.Type != "" { + objectMap["type"] = arfols.Type + } + for k, v := range arfols.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return &arfols, true +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. +func (arfols AmazonRdsForOracleLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &arfols, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRdsForOracleLinkedService struct. +func (arfols *AmazonRdsForOracleLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonRdsForLinkedServiceTypeProperties AmazonRdsForLinkedServiceTypeProperties + err = json.Unmarshal(*v, &amazonRdsForLinkedServiceTypeProperties) + if err != nil { + return err + } + arfols.AmazonRdsForLinkedServiceTypeProperties = &amazonRdsForLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if arfols.AdditionalProperties == nil { + arfols.AdditionalProperties = make(map[string]interface{}) + } + arfols.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + arfols.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + arfols.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + arfols.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + arfols.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + arfols.Type = typeVar + } + } + } + + return nil +} + +// AmazonRdsForOraclePartitionSettings the settings that will be leveraged for AmazonRdsForOracle source +// partitioning. +type AmazonRdsForOraclePartitionSettings struct { + // PartitionNames - Names of the physical partitions of AmazonRdsForOracle table. + PartitionNames interface{} `json:"partitionNames,omitempty"` + // PartitionColumnName - 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"` + // PartitionUpperBound - 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"` + // PartitionLowerBound - 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"` +} + +// AmazonRdsForOracleSource a copy activity AmazonRdsForOracle source. +type AmazonRdsForOracleSource struct { + // OracleReaderQuery - AmazonRdsForOracle reader query. Type: string (or Expression with resultType string). + OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` + // QueryTimeout - 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"` + // PartitionOption - The partition mechanism that will be used for AmazonRdsForOracle read in parallel. Type: string (or Expression with resultType string). + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for AmazonRdsForOracle source partitioning. + PartitionSettings *AmazonRdsForOraclePartitionSettings `json:"partitionSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) MarshalJSON() ([]byte, error) { + arfos.Type = TypeBasicCopySourceTypeAmazonRdsForOracleSource + objectMap := make(map[string]interface{}) + if arfos.OracleReaderQuery != nil { + objectMap["oracleReaderQuery"] = arfos.OracleReaderQuery + } + if arfos.QueryTimeout != nil { + objectMap["queryTimeout"] = arfos.QueryTimeout + } + if arfos.PartitionOption != nil { + objectMap["partitionOption"] = arfos.PartitionOption + } + if arfos.PartitionSettings != nil { + objectMap["partitionSettings"] = arfos.PartitionSettings + } + if arfos.AdditionalColumns != nil { + objectMap["additionalColumns"] = arfos.AdditionalColumns + } + if arfos.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = arfos.SourceRetryCount + } + if arfos.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = arfos.SourceRetryWait + } + if arfos.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = arfos.MaxConcurrentConnections + } + if arfos.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = arfos.DisableMetricsCollection + } + if arfos.Type != "" { + objectMap["type"] = arfos.Type + } + for k, v := range arfos.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return &arfos, true +} + +// AsOracleSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AmazonRdsForOracleSource. +func (arfos AmazonRdsForOracleSource) AsBasicCopySource() (BasicCopySource, bool) { + return &arfos, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRdsForOracleSource struct. +func (arfos *AmazonRdsForOracleSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "oracleReaderQuery": + if v != nil { + var oracleReaderQuery interface{} + err = json.Unmarshal(*v, &oracleReaderQuery) + if err != nil { + return err + } + arfos.OracleReaderQuery = oracleReaderQuery + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + arfos.QueryTimeout = queryTimeout + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + arfos.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings AmazonRdsForOraclePartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + arfos.PartitionSettings = &partitionSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + arfos.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if arfos.AdditionalProperties == nil { + arfos.AdditionalProperties = make(map[string]interface{}) + } + arfos.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + arfos.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + arfos.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + arfos.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + arfos.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + arfos.Type = typeVar + } + } + } + + return nil +} + +// AmazonRdsForOracleTableDataset the AmazonRdsForOracle database dataset. +type AmazonRdsForOracleTableDataset struct { + // AmazonRdsForOracleTableDatasetTypeProperties - AmazonRdsForOracle dataset properties. + *AmazonRdsForOracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) MarshalJSON() ([]byte, error) { + arfotd.Type = TypeBasicDatasetTypeAmazonRdsForOracleTable + objectMap := make(map[string]interface{}) + if arfotd.AmazonRdsForOracleTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = arfotd.AmazonRdsForOracleTableDatasetTypeProperties + } + if arfotd.Description != nil { + objectMap["description"] = arfotd.Description + } + if arfotd.Structure != nil { + objectMap["structure"] = arfotd.Structure + } + if arfotd.Schema != nil { + objectMap["schema"] = arfotd.Schema + } + if arfotd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = arfotd.LinkedServiceName + } + if arfotd.Parameters != nil { + objectMap["parameters"] = arfotd.Parameters + } + if arfotd.Annotations != nil { + objectMap["annotations"] = arfotd.Annotations + } + if arfotd.Folder != nil { + objectMap["folder"] = arfotd.Folder + } + if arfotd.Type != "" { + objectMap["type"] = arfotd.Type + } + for k, v := range arfotd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return &arfotd, true +} + +// AsOracleTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. +func (arfotd AmazonRdsForOracleTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &arfotd, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRdsForOracleTableDataset struct. +func (arfotd *AmazonRdsForOracleTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonRdsForOracleTableDatasetTypeProperties AmazonRdsForOracleTableDatasetTypeProperties + err = json.Unmarshal(*v, &amazonRdsForOracleTableDatasetTypeProperties) + if err != nil { + return err + } + arfotd.AmazonRdsForOracleTableDatasetTypeProperties = &amazonRdsForOracleTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if arfotd.AdditionalProperties == nil { + arfotd.AdditionalProperties = make(map[string]interface{}) + } + arfotd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + arfotd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + arfotd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + arfotd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + arfotd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + arfotd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + arfotd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + arfotd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + arfotd.Type = typeVar + } + } + } + + return nil +} + +// AmazonRdsForOracleTableDatasetTypeProperties amazonRdsForOracle dataset properties. +type AmazonRdsForOracleTableDatasetTypeProperties struct { + // Schema - The schema name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// AmazonRdsForSQLServerLinkedService amazon RDS for SQL Server linked service. +type AmazonRdsForSQLServerLinkedService struct { + // AmazonRdsForSQLServerLinkedServiceTypeProperties - Amazon RDS for SQL Server linked service properties. + *AmazonRdsForSQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) MarshalJSON() ([]byte, error) { + arfssls.Type = TypeBasicLinkedServiceTypeAmazonRdsForSQLServer + objectMap := make(map[string]interface{}) + if arfssls.AmazonRdsForSQLServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = arfssls.AmazonRdsForSQLServerLinkedServiceTypeProperties + } + if arfssls.ConnectVia != nil { + objectMap["connectVia"] = arfssls.ConnectVia + } + if arfssls.Description != nil { + objectMap["description"] = arfssls.Description + } + if arfssls.Parameters != nil { + objectMap["parameters"] = arfssls.Parameters + } + if arfssls.Annotations != nil { + objectMap["annotations"] = arfssls.Annotations + } + if arfssls.Type != "" { + objectMap["type"] = arfssls.Type + } + for k, v := range arfssls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return &arfssls, true +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. +func (arfssls AmazonRdsForSQLServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &arfssls, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRdsForSQLServerLinkedService struct. +func (arfssls *AmazonRdsForSQLServerLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonRdsForSQLServerLinkedServiceTypeProperties AmazonRdsForSQLServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &amazonRdsForSQLServerLinkedServiceTypeProperties) + if err != nil { + return err + } + arfssls.AmazonRdsForSQLServerLinkedServiceTypeProperties = &amazonRdsForSQLServerLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if arfssls.AdditionalProperties == nil { + arfssls.AdditionalProperties = make(map[string]interface{}) + } + arfssls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + arfssls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + arfssls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + arfssls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + arfssls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + arfssls.Type = typeVar + } + } + } + + return nil +} + +// AmazonRdsForSQLServerLinkedServiceTypeProperties amazon Rds for SQL Server linked service properties. +type AmazonRdsForSQLServerLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // UserName - The on-premises Windows authentication user name. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - The on-premises Windows authentication password. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // AlwaysEncryptedSettings - Sql always encrypted properties. + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRdsForSQLServerLinkedServiceTypeProperties struct. +func (arfsslstp *AmazonRdsForSQLServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + arfsslstp.ConnectionString = connectionString + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + arfsslstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + arfsslstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + arfsslstp.EncryptedCredential = &encryptedCredential + } + case "alwaysEncryptedSettings": + if v != nil { + var alwaysEncryptedSettings SQLAlwaysEncryptedProperties + err = json.Unmarshal(*v, &alwaysEncryptedSettings) + if err != nil { + return err + } + arfsslstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings + } + } + } + + return nil +} + +// AmazonRdsForSQLServerSource a copy activity Amazon RDS for SQL Server source. +type AmazonRdsForSQLServerSource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - 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"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // IsolationLevel - 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"` + // ProduceAdditionalTypes - Which additional types to produce. + ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) MarshalJSON() ([]byte, error) { + arfsss.Type = TypeBasicCopySourceTypeAmazonRdsForSQLServerSource + objectMap := make(map[string]interface{}) + if arfsss.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = arfsss.SQLReaderQuery + } + if arfsss.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = arfsss.SQLReaderStoredProcedureName + } + if arfsss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = arfsss.StoredProcedureParameters + } + if arfsss.IsolationLevel != nil { + objectMap["isolationLevel"] = arfsss.IsolationLevel + } + if arfsss.ProduceAdditionalTypes != nil { + objectMap["produceAdditionalTypes"] = arfsss.ProduceAdditionalTypes + } + if arfsss.PartitionOption != nil { + objectMap["partitionOption"] = arfsss.PartitionOption + } + if arfsss.PartitionSettings != nil { + objectMap["partitionSettings"] = arfsss.PartitionSettings + } + if arfsss.QueryTimeout != nil { + objectMap["queryTimeout"] = arfsss.QueryTimeout + } + if arfsss.AdditionalColumns != nil { + objectMap["additionalColumns"] = arfsss.AdditionalColumns + } + if arfsss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = arfsss.SourceRetryCount + } + if arfsss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = arfsss.SourceRetryWait + } + if arfsss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = arfsss.MaxConcurrentConnections + } + if arfsss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = arfsss.DisableMetricsCollection + } + if arfsss.Type != "" { + objectMap["type"] = arfsss.Type + } + for k, v := range arfsss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return &arfsss, true +} + +// AsSQLServerSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &arfsss, true +} + +// AsBinarySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. +func (arfsss AmazonRdsForSQLServerSource) AsBasicCopySource() (BasicCopySource, bool) { + return &arfsss, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRdsForSQLServerSource struct. +func (arfsss *AmazonRdsForSQLServerSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlReaderQuery": + if v != nil { + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) + if err != nil { + return err + } + arfsss.SQLReaderQuery = SQLReaderQuery + } + case "sqlReaderStoredProcedureName": + if v != nil { + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + if err != nil { + return err + } + arfsss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + arfsss.StoredProcedureParameters = storedProcedureParameters + } + case "isolationLevel": + if v != nil { + var isolationLevel interface{} + err = json.Unmarshal(*v, &isolationLevel) + if err != nil { + return err + } + arfsss.IsolationLevel = isolationLevel + } + case "produceAdditionalTypes": + if v != nil { + var produceAdditionalTypes interface{} + err = json.Unmarshal(*v, &produceAdditionalTypes) + if err != nil { + return err + } + arfsss.ProduceAdditionalTypes = produceAdditionalTypes + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + arfsss.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + arfsss.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + arfsss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + arfsss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if arfsss.AdditionalProperties == nil { + arfsss.AdditionalProperties = make(map[string]interface{}) + } + arfsss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + arfsss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + arfsss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + arfsss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + arfsss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + arfsss.Type = typeVar + } + } + } + + return nil +} + +// AmazonRdsForSQLServerTableDataset the Amazon RDS for SQL Server dataset. +type AmazonRdsForSQLServerTableDataset struct { + // AmazonRdsForSQLServerTableDatasetTypeProperties - The Amazon RDS for SQL Server dataset properties. + *AmazonRdsForSQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) MarshalJSON() ([]byte, error) { + arfsstd.Type = TypeBasicDatasetTypeAmazonRdsForSQLServerTable + objectMap := make(map[string]interface{}) + if arfsstd.AmazonRdsForSQLServerTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = arfsstd.AmazonRdsForSQLServerTableDatasetTypeProperties + } + if arfsstd.Description != nil { + objectMap["description"] = arfsstd.Description + } + if arfsstd.Structure != nil { + objectMap["structure"] = arfsstd.Structure + } + if arfsstd.Schema != nil { + objectMap["schema"] = arfsstd.Schema + } + if arfsstd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = arfsstd.LinkedServiceName + } + if arfsstd.Parameters != nil { + objectMap["parameters"] = arfsstd.Parameters + } + if arfsstd.Annotations != nil { + objectMap["annotations"] = arfsstd.Annotations + } + if arfsstd.Folder != nil { + objectMap["folder"] = arfsstd.Folder + } + if arfsstd.Type != "" { + objectMap["type"] = arfsstd.Type + } + for k, v := range arfsstd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return &arfsstd, true +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. +func (arfsstd AmazonRdsForSQLServerTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &arfsstd, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRdsForSQLServerTableDataset struct. +func (arfsstd *AmazonRdsForSQLServerTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonRdsForSQLServerTableDatasetTypeProperties AmazonRdsForSQLServerTableDatasetTypeProperties + err = json.Unmarshal(*v, &amazonRdsForSQLServerTableDatasetTypeProperties) + if err != nil { + return err + } + arfsstd.AmazonRdsForSQLServerTableDatasetTypeProperties = &amazonRdsForSQLServerTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if arfsstd.AdditionalProperties == nil { + arfsstd.AdditionalProperties = make(map[string]interface{}) + } + arfsstd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + arfsstd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + arfsstd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + arfsstd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + arfsstd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + arfsstd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + arfsstd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + arfsstd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + arfsstd.Type = typeVar + } + } + } + + return nil +} + +// AmazonRdsForSQLServerTableDatasetTypeProperties the Amazon RDS for SQL Server dataset properties. +type AmazonRdsForSQLServerTableDatasetTypeProperties struct { + // Schema - The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the SQL Server dataset. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// AmazonRedshiftLinkedService linked service for Amazon Redshift. +type AmazonRedshiftLinkedService struct { + // AmazonRedshiftLinkedServiceTypeProperties - Amazon Redshift linked service properties. + *AmazonRedshiftLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) MarshalJSON() ([]byte, error) { + arls.Type = TypeBasicLinkedServiceTypeAmazonRedshift + objectMap := make(map[string]interface{}) + if arls.AmazonRedshiftLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = arls.AmazonRedshiftLinkedServiceTypeProperties + } + if arls.ConnectVia != nil { + objectMap["connectVia"] = arls.ConnectVia + } + if arls.Description != nil { + objectMap["description"] = arls.Description + } + if arls.Parameters != nil { + objectMap["parameters"] = arls.Parameters + } + if arls.Annotations != nil { + objectMap["annotations"] = arls.Annotations + } + if arls.Type != "" { + objectMap["type"] = arls.Type + } + for k, v := range arls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return &arls, true +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. +func (arls AmazonRedshiftLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &arls, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftLinkedService struct. +func (arls *AmazonRedshiftLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonRedshiftLinkedServiceTypeProperties AmazonRedshiftLinkedServiceTypeProperties + err = json.Unmarshal(*v, &amazonRedshiftLinkedServiceTypeProperties) + if err != nil { + return err + } + arls.AmazonRedshiftLinkedServiceTypeProperties = &amazonRedshiftLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if arls.AdditionalProperties == nil { + arls.AdditionalProperties = make(map[string]interface{}) + } + arls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + arls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + arls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + arls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + arls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + arls.Type = typeVar + } + } + } + + return nil +} + +// AmazonRedshiftLinkedServiceTypeProperties amazon Redshift linked service properties. +type AmazonRedshiftLinkedServiceTypeProperties struct { + // Server - The name of the Amazon Redshift server. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // Username - The username of the Amazon Redshift source. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password of the Amazon Redshift source. + Password BasicSecretBase `json:"password,omitempty"` + // Database - The database name of the Amazon Redshift source. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` + // Port - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftLinkedServiceTypeProperties struct. +func (arlstp *AmazonRedshiftLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + arlstp.Server = server + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + arlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + arlstp.Password = password + } + case "database": + if v != nil { + var databaseVar interface{} + err = json.Unmarshal(*v, &databaseVar) + if err != nil { + return err + } + arlstp.Database = databaseVar + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + arlstp.Port = port + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + arlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AmazonRedshiftSource a copy activity source for Amazon Redshift Source. +type AmazonRedshiftSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // RedshiftUnloadSettings - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) MarshalJSON() ([]byte, error) { + ars.Type = TypeBasicCopySourceTypeAmazonRedshiftSource + objectMap := make(map[string]interface{}) + if ars.Query != nil { + objectMap["query"] = ars.Query + } + if ars.RedshiftUnloadSettings != nil { + objectMap["redshiftUnloadSettings"] = ars.RedshiftUnloadSettings + } + if ars.QueryTimeout != nil { + objectMap["queryTimeout"] = ars.QueryTimeout + } + if ars.AdditionalColumns != nil { + objectMap["additionalColumns"] = ars.AdditionalColumns + } + if ars.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ars.SourceRetryCount + } + if ars.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ars.SourceRetryWait + } + if ars.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ars.MaxConcurrentConnections + } + if ars.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ars.DisableMetricsCollection + } + if ars.Type != "" { + objectMap["type"] = ars.Type + } + for k, v := range ars.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return &ars, true +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ars, true +} + +// AsBinarySource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AmazonRedshiftSource. +func (ars AmazonRedshiftSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ars, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftSource struct. +func (ars *AmazonRedshiftSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ars.Query = query + } + case "redshiftUnloadSettings": + if v != nil { + var redshiftUnloadSettings RedshiftUnloadSettings + err = json.Unmarshal(*v, &redshiftUnloadSettings) + if err != nil { + return err + } + ars.RedshiftUnloadSettings = &redshiftUnloadSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ars.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ars.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ars.AdditionalProperties == nil { + ars.AdditionalProperties = make(map[string]interface{}) + } + ars.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ars.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ars.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ars.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ars.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ars.Type = typeVar + } + } + } + + return nil +} + +// AmazonRedshiftTableDataset the Amazon Redshift table dataset. +type AmazonRedshiftTableDataset struct { + // AmazonRedshiftTableDatasetTypeProperties - Amazon Redshift table dataset properties. + *AmazonRedshiftTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) MarshalJSON() ([]byte, error) { + artd.Type = TypeBasicDatasetTypeAmazonRedshiftTable + objectMap := make(map[string]interface{}) + if artd.AmazonRedshiftTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = artd.AmazonRedshiftTableDatasetTypeProperties + } + if artd.Description != nil { + objectMap["description"] = artd.Description + } + if artd.Structure != nil { + objectMap["structure"] = artd.Structure + } + if artd.Schema != nil { + objectMap["schema"] = artd.Schema + } + if artd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = artd.LinkedServiceName + } + if artd.Parameters != nil { + objectMap["parameters"] = artd.Parameters + } + if artd.Annotations != nil { + objectMap["annotations"] = artd.Annotations + } + if artd.Folder != nil { + objectMap["folder"] = artd.Folder + } + if artd.Type != "" { + objectMap["type"] = artd.Type + } + for k, v := range artd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return &artd, true +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. +func (artd AmazonRedshiftTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &artd, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftTableDataset struct. +func (artd *AmazonRedshiftTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonRedshiftTableDatasetTypeProperties AmazonRedshiftTableDatasetTypeProperties + err = json.Unmarshal(*v, &amazonRedshiftTableDatasetTypeProperties) + if err != nil { + return err + } + artd.AmazonRedshiftTableDatasetTypeProperties = &amazonRedshiftTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if artd.AdditionalProperties == nil { + artd.AdditionalProperties = make(map[string]interface{}) + } + artd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + artd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + artd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + artd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + artd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + artd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + artd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + artd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + artd.Type = typeVar + } + } + } + + return nil +} + +// AmazonRedshiftTableDatasetTypeProperties amazon Redshift table dataset properties. +type AmazonRedshiftTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The Amazon Redshift table name. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The Amazon Redshift schema name. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// AmazonS3CompatibleLinkedService linked service for Amazon S3 Compatible. +type AmazonS3CompatibleLinkedService struct { + // AmazonS3CompatibleLinkedServiceTypeProperties - Amazon S3 Compatible linked service properties. + *AmazonS3CompatibleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) MarshalJSON() ([]byte, error) { + ascls.Type = TypeBasicLinkedServiceTypeAmazonS3Compatible + objectMap := make(map[string]interface{}) + if ascls.AmazonS3CompatibleLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ascls.AmazonS3CompatibleLinkedServiceTypeProperties + } + if ascls.ConnectVia != nil { + objectMap["connectVia"] = ascls.ConnectVia + } + if ascls.Description != nil { + objectMap["description"] = ascls.Description + } + if ascls.Parameters != nil { + objectMap["parameters"] = ascls.Parameters + } + if ascls.Annotations != nil { + objectMap["annotations"] = ascls.Annotations + } + if ascls.Type != "" { + objectMap["type"] = ascls.Type + } + for k, v := range ascls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return &ascls, true +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. +func (ascls AmazonS3CompatibleLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ascls, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3CompatibleLinkedService struct. +func (ascls *AmazonS3CompatibleLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonS3CompatibleLinkedServiceTypeProperties AmazonS3CompatibleLinkedServiceTypeProperties + err = json.Unmarshal(*v, &amazonS3CompatibleLinkedServiceTypeProperties) + if err != nil { + return err + } + ascls.AmazonS3CompatibleLinkedServiceTypeProperties = &amazonS3CompatibleLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ascls.AdditionalProperties == nil { + ascls.AdditionalProperties = make(map[string]interface{}) + } + ascls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ascls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ascls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ascls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ascls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ascls.Type = typeVar + } + } + } + + return nil +} + +// AmazonS3CompatibleLinkedServiceTypeProperties amazon S3 Compatible linked service properties. +type AmazonS3CompatibleLinkedServiceTypeProperties struct { + // AccessKeyID - 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"` + // SecretAccessKey - The secret access key of the Amazon S3 Compatible Identity and Access Management (IAM) user. + SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` + // ServiceURL - 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"` + // ForcePathStyle - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3CompatibleLinkedServiceTypeProperties struct. +func (asclstp *AmazonS3CompatibleLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "accessKeyId": + if v != nil { + var accessKeyID interface{} + err = json.Unmarshal(*v, &accessKeyID) + if err != nil { + return err + } + asclstp.AccessKeyID = accessKeyID + } + case "secretAccessKey": + if v != nil { + secretAccessKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + asclstp.SecretAccessKey = secretAccessKey + } + case "serviceUrl": + if v != nil { + var serviceURL interface{} + err = json.Unmarshal(*v, &serviceURL) + if err != nil { + return err + } + asclstp.ServiceURL = serviceURL + } + case "forcePathStyle": + if v != nil { + var forcePathStyle interface{} + err = json.Unmarshal(*v, &forcePathStyle) + if err != nil { + return err + } + asclstp.ForcePathStyle = forcePathStyle + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + asclstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AmazonS3CompatibleLocation the location of Amazon S3 Compatible dataset. +type AmazonS3CompatibleLocation struct { + // BucketName - Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with resultType string) + BucketName interface{} `json:"bucketName,omitempty"` + // Version - Specify the version of Amazon S3 Compatible. Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) MarshalJSON() ([]byte, error) { + ascl.Type = TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation + objectMap := make(map[string]interface{}) + if ascl.BucketName != nil { + objectMap["bucketName"] = ascl.BucketName + } + if ascl.Version != nil { + objectMap["version"] = ascl.Version + } + if ascl.FolderPath != nil { + objectMap["folderPath"] = ascl.FolderPath + } + if ascl.FileName != nil { + objectMap["fileName"] = ascl.FileName + } + if ascl.Type != "" { + objectMap["type"] = ascl.Type + } + for k, v := range ascl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return &ascl, true +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. +func (ascl AmazonS3CompatibleLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &ascl, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3CompatibleLocation struct. +func (ascl *AmazonS3CompatibleLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "bucketName": + if v != nil { + var bucketName interface{} + err = json.Unmarshal(*v, &bucketName) + if err != nil { + return err + } + ascl.BucketName = bucketName + } + case "version": + if v != nil { + var version interface{} + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + ascl.Version = version + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ascl.AdditionalProperties == nil { + ascl.AdditionalProperties = make(map[string]interface{}) + } + ascl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + ascl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + ascl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ascl.Type = typeVar + } + } + } + + return nil +} + +// AmazonS3CompatibleReadSettings amazon S3 Compatible read settings. +type AmazonS3CompatibleReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Amazon S3 Compatible wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // Prefix - The prefix filter for the S3 Compatible object name. Type: string (or Expression with resultType string). + Prefix interface{} `json:"prefix,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) MarshalJSON() ([]byte, error) { + ascrs.Type = TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings + objectMap := make(map[string]interface{}) + if ascrs.Recursive != nil { + objectMap["recursive"] = ascrs.Recursive + } + if ascrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = ascrs.WildcardFolderPath + } + if ascrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = ascrs.WildcardFileName + } + if ascrs.Prefix != nil { + objectMap["prefix"] = ascrs.Prefix + } + if ascrs.FileListPath != nil { + objectMap["fileListPath"] = ascrs.FileListPath + } + if ascrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = ascrs.EnablePartitionDiscovery + } + if ascrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = ascrs.PartitionRootPath + } + if ascrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = ascrs.DeleteFilesAfterCompletion + } + if ascrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = ascrs.ModifiedDatetimeStart + } + if ascrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = ascrs.ModifiedDatetimeEnd + } + if ascrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ascrs.MaxConcurrentConnections + } + if ascrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ascrs.DisableMetricsCollection + } + if ascrs.Type != "" { + objectMap["type"] = ascrs.Type + } + for k, v := range ascrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return &ascrs, true +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. +func (ascrs AmazonS3CompatibleReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &ascrs, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3CompatibleReadSettings struct. +func (ascrs *AmazonS3CompatibleReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + ascrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + ascrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + ascrs.WildcardFileName = wildcardFileName + } + case "prefix": + if v != nil { + var prefix interface{} + err = json.Unmarshal(*v, &prefix) + if err != nil { + return err + } + ascrs.Prefix = prefix + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + ascrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + ascrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + ascrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + ascrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + ascrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + ascrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ascrs.AdditionalProperties == nil { + ascrs.AdditionalProperties = make(map[string]interface{}) + } + ascrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ascrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ascrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ascrs.Type = typeVar + } + } + } + + return nil +} + +// AmazonS3Dataset a single Amazon Simple Storage Service (S3) object or a set of S3 objects. +type AmazonS3Dataset struct { + // AmazonS3DatasetTypeProperties - Amazon S3 dataset properties. + *AmazonS3DatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonS3Dataset. +func (asd AmazonS3Dataset) MarshalJSON() ([]byte, error) { + asd.Type = TypeBasicDatasetTypeAmazonS3Object + objectMap := make(map[string]interface{}) + if asd.AmazonS3DatasetTypeProperties != nil { + objectMap["typeProperties"] = asd.AmazonS3DatasetTypeProperties + } + if asd.Description != nil { + objectMap["description"] = asd.Description + } + if asd.Structure != nil { + objectMap["structure"] = asd.Structure + } + if asd.Schema != nil { + objectMap["schema"] = asd.Schema + } + if asd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = asd.LinkedServiceName + } + if asd.Parameters != nil { + objectMap["parameters"] = asd.Parameters + } + if asd.Annotations != nil { + objectMap["annotations"] = asd.Annotations + } + if asd.Folder != nil { + objectMap["folder"] = asd.Folder + } + if asd.Type != "" { + objectMap["type"] = asd.Type + } + for k, v := range asd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return &asd, true +} + +// AsDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AmazonS3Dataset. +func (asd AmazonS3Dataset) AsBasicDataset() (BasicDataset, bool) { + return &asd, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3Dataset struct. +func (asd *AmazonS3Dataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonS3DatasetTypeProperties AmazonS3DatasetTypeProperties + err = json.Unmarshal(*v, &amazonS3DatasetTypeProperties) + if err != nil { + return err + } + asd.AmazonS3DatasetTypeProperties = &amazonS3DatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asd.AdditionalProperties == nil { + asd.AdditionalProperties = make(map[string]interface{}) + } + asd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + asd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + asd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + asd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + asd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asd.Type = typeVar + } + } + } + + return nil +} + +// AmazonS3DatasetTypeProperties amazon S3 dataset properties. +type AmazonS3DatasetTypeProperties struct { + // BucketName - The name of the Amazon S3 bucket. Type: string (or Expression with resultType string). + BucketName interface{} `json:"bucketName,omitempty"` + // Key - The key of the Amazon S3 object. Type: string (or Expression with resultType string). + Key interface{} `json:"key,omitempty"` + // Prefix - The prefix filter for the S3 object name. Type: string (or Expression with resultType string). + Prefix interface{} `json:"prefix,omitempty"` + // Version - The version for the S3 object. Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // ModifiedDatetimeStart - The start of S3 object's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of S3 object's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // Format - The format of files. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // Compression - The data compression method used for the Amazon S3 object. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3DatasetTypeProperties struct. +func (asdtp *AmazonS3DatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "bucketName": + if v != nil { + var bucketName interface{} + err = json.Unmarshal(*v, &bucketName) + if err != nil { + return err + } + asdtp.BucketName = bucketName + } + case "key": + if v != nil { + var key interface{} + err = json.Unmarshal(*v, &key) + if err != nil { + return err + } + asdtp.Key = key + } + case "prefix": + if v != nil { + var prefix interface{} + err = json.Unmarshal(*v, &prefix) + if err != nil { + return err + } + asdtp.Prefix = prefix + } + case "version": + if v != nil { + var version interface{} + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + asdtp.Version = version + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + asdtp.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + asdtp.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "format": + if v != nil { + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + if err != nil { + return err + } + asdtp.Format = formatVar + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + asdtp.Compression = &compression + } + } + } + + return nil +} + +// AmazonS3LinkedService linked service for Amazon S3. +type AmazonS3LinkedService struct { + // AmazonS3LinkedServiceTypeProperties - Amazon S3 linked service properties. + *AmazonS3LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) MarshalJSON() ([]byte, error) { + asls.Type = TypeBasicLinkedServiceTypeAmazonS3 + objectMap := make(map[string]interface{}) + if asls.AmazonS3LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asls.AmazonS3LinkedServiceTypeProperties + } + if asls.ConnectVia != nil { + objectMap["connectVia"] = asls.ConnectVia + } + if asls.Description != nil { + objectMap["description"] = asls.Description + } + if asls.Parameters != nil { + objectMap["parameters"] = asls.Parameters + } + if asls.Annotations != nil { + objectMap["annotations"] = asls.Annotations + } + if asls.Type != "" { + objectMap["type"] = asls.Type + } + for k, v := range asls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return &asls, true +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. +func (asls AmazonS3LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asls, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3LinkedService struct. +func (asls *AmazonS3LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var amazonS3LinkedServiceTypeProperties AmazonS3LinkedServiceTypeProperties + err = json.Unmarshal(*v, &amazonS3LinkedServiceTypeProperties) + if err != nil { + return err + } + asls.AmazonS3LinkedServiceTypeProperties = &amazonS3LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asls.AdditionalProperties == nil { + asls.AdditionalProperties = make(map[string]interface{}) + } + asls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + asls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asls.Type = typeVar + } + } + } + + return nil +} + +// AmazonS3LinkedServiceTypeProperties amazon S3 linked service properties. +type AmazonS3LinkedServiceTypeProperties struct { + // AuthenticationType - The authentication type of S3. Allowed value: AccessKey (default) or TemporarySecurityCredentials. Type: string (or Expression with resultType string). + AuthenticationType interface{} `json:"authenticationType,omitempty"` + // AccessKeyID - 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"` + // SecretAccessKey - The secret access key of the Amazon S3 Identity and Access Management (IAM) user. + SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` + // ServiceURL - 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"` + // SessionToken - The session token for the S3 temporary security credential. + SessionToken BasicSecretBase `json:"sessionToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3LinkedServiceTypeProperties struct. +func (aslstp *AmazonS3LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + aslstp.AuthenticationType = authenticationType + } + case "accessKeyId": + if v != nil { + var accessKeyID interface{} + err = json.Unmarshal(*v, &accessKeyID) + if err != nil { + return err + } + aslstp.AccessKeyID = accessKeyID + } + case "secretAccessKey": + if v != nil { + secretAccessKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + aslstp.SecretAccessKey = secretAccessKey + } + case "serviceUrl": + if v != nil { + var serviceURL interface{} + err = json.Unmarshal(*v, &serviceURL) + if err != nil { + return err + } + aslstp.ServiceURL = serviceURL + } + case "sessionToken": + if v != nil { + sessionToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + aslstp.SessionToken = sessionToken + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + aslstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AmazonS3Location the location of amazon S3 dataset. +type AmazonS3Location struct { + // BucketName - Specify the bucketName of amazon S3. Type: string (or Expression with resultType string) + BucketName interface{} `json:"bucketName,omitempty"` + // Version - Specify the version of amazon S3. Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonS3Location. +func (asl AmazonS3Location) MarshalJSON() ([]byte, error) { + asl.Type = TypeBasicDatasetLocationTypeAmazonS3Location + objectMap := make(map[string]interface{}) + if asl.BucketName != nil { + objectMap["bucketName"] = asl.BucketName + } + if asl.Version != nil { + objectMap["version"] = asl.Version + } + if asl.FolderPath != nil { + objectMap["folderPath"] = asl.FolderPath + } + if asl.FileName != nil { + objectMap["fileName"] = asl.FileName + } + if asl.Type != "" { + objectMap["type"] = asl.Type + } + for k, v := range asl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsAmazonS3Location() (*AmazonS3Location, bool) { + return &asl, true +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AmazonS3Location. +func (asl AmazonS3Location) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &asl, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3Location struct. +func (asl *AmazonS3Location) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "bucketName": + if v != nil { + var bucketName interface{} + err = json.Unmarshal(*v, &bucketName) + if err != nil { + return err + } + asl.BucketName = bucketName + } + case "version": + if v != nil { + var version interface{} + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + asl.Version = version + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asl.AdditionalProperties == nil { + asl.AdditionalProperties = make(map[string]interface{}) + } + asl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + asl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + asl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asl.Type = typeVar + } + } + } + + return nil +} + +// AmazonS3ReadSettings amazon S3 read settings. +type AmazonS3ReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - AmazonS3 wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // Prefix - The prefix filter for the S3 object name. Type: string (or Expression with resultType string). + Prefix interface{} `json:"prefix,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) MarshalJSON() ([]byte, error) { + asrs.Type = TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings + objectMap := make(map[string]interface{}) + if asrs.Recursive != nil { + objectMap["recursive"] = asrs.Recursive + } + if asrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = asrs.WildcardFolderPath + } + if asrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = asrs.WildcardFileName + } + if asrs.Prefix != nil { + objectMap["prefix"] = asrs.Prefix + } + if asrs.FileListPath != nil { + objectMap["fileListPath"] = asrs.FileListPath + } + if asrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = asrs.EnablePartitionDiscovery + } + if asrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = asrs.PartitionRootPath + } + if asrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = asrs.DeleteFilesAfterCompletion + } + if asrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = asrs.ModifiedDatetimeStart + } + if asrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = asrs.ModifiedDatetimeEnd + } + if asrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = asrs.MaxConcurrentConnections + } + if asrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = asrs.DisableMetricsCollection + } + if asrs.Type != "" { + objectMap["type"] = asrs.Type + } + for k, v := range asrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return &asrs, true +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. +func (asrs AmazonS3ReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &asrs, true +} + +// UnmarshalJSON is the custom unmarshaler for AmazonS3ReadSettings struct. +func (asrs *AmazonS3ReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + asrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + asrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + asrs.WildcardFileName = wildcardFileName + } + case "prefix": + if v != nil { + var prefix interface{} + err = json.Unmarshal(*v, &prefix) + if err != nil { + return err + } + asrs.Prefix = prefix + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + asrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + asrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + asrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + asrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + asrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + asrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asrs.AdditionalProperties == nil { + asrs.AdditionalProperties = make(map[string]interface{}) + } + asrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + asrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + asrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asrs.Type = typeVar + } + } + } + + return nil +} + +// AppFiguresLinkedService linked service for AppFigures. +type AppFiguresLinkedService struct { + // AppFiguresLinkedServiceTypeProperties - AppFigures linked service properties. + *AppFiguresLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) MarshalJSON() ([]byte, error) { + afls.Type = TypeBasicLinkedServiceTypeAppFigures + objectMap := make(map[string]interface{}) + if afls.AppFiguresLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = afls.AppFiguresLinkedServiceTypeProperties + } + if afls.ConnectVia != nil { + objectMap["connectVia"] = afls.ConnectVia + } + if afls.Description != nil { + objectMap["description"] = afls.Description + } + if afls.Parameters != nil { + objectMap["parameters"] = afls.Parameters + } + if afls.Annotations != nil { + objectMap["annotations"] = afls.Annotations + } + if afls.Type != "" { + objectMap["type"] = afls.Type + } + for k, v := range afls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return &afls, true +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. +func (afls AppFiguresLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &afls, true +} + +// UnmarshalJSON is the custom unmarshaler for AppFiguresLinkedService struct. +func (afls *AppFiguresLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var appFiguresLinkedServiceTypeProperties AppFiguresLinkedServiceTypeProperties + err = json.Unmarshal(*v, &appFiguresLinkedServiceTypeProperties) + if err != nil { + return err + } + afls.AppFiguresLinkedServiceTypeProperties = &appFiguresLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if afls.AdditionalProperties == nil { + afls.AdditionalProperties = make(map[string]interface{}) + } + afls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + afls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + afls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + afls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + afls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afls.Type = typeVar + } + } + } + + return nil +} + +// AppFiguresLinkedServiceTypeProperties appFigures linked service type properties. +type AppFiguresLinkedServiceTypeProperties struct { + // UserName - The username of the Appfigures source. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - The password of the AppFigures source. + Password BasicSecretBase `json:"password,omitempty"` + // ClientKey - The client key for the AppFigures source. + ClientKey BasicSecretBase `json:"clientKey,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AppFiguresLinkedServiceTypeProperties struct. +func (aflstp *AppFiguresLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + aflstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + aflstp.Password = password + } + case "clientKey": + if v != nil { + clientKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + aflstp.ClientKey = clientKey + } + } + } + + return nil +} + +// AppendVariableActivity append value for a Variable of type Array. +type AppendVariableActivity struct { + // AppendVariableActivityTypeProperties - Append Variable activity properties. + *AppendVariableActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AppendVariableActivity. +func (ava AppendVariableActivity) MarshalJSON() ([]byte, error) { + ava.Type = TypeBasicActivityTypeAppendVariable + objectMap := make(map[string]interface{}) + if ava.AppendVariableActivityTypeProperties != nil { + objectMap["typeProperties"] = ava.AppendVariableActivityTypeProperties + } + if ava.Name != nil { + objectMap["name"] = ava.Name + } + if ava.Description != nil { + objectMap["description"] = ava.Description + } + if ava.State != "" { + objectMap["state"] = ava.State + } + if ava.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ava.OnInactiveMarkAs + } + if ava.DependsOn != nil { + objectMap["dependsOn"] = ava.DependsOn + } + if ava.UserProperties != nil { + objectMap["userProperties"] = ava.UserProperties + } + if ava.Type != "" { + objectMap["type"] = ava.Type + } + for k, v := range ava.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return &ava, true +} + +// AsSetVariableActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &ava, true +} + +// AsActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for AppendVariableActivity. +func (ava AppendVariableActivity) AsBasicActivity() (BasicActivity, bool) { + return &ava, true +} + +// UnmarshalJSON is the custom unmarshaler for AppendVariableActivity struct. +func (ava *AppendVariableActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var appendVariableActivityTypeProperties AppendVariableActivityTypeProperties + err = json.Unmarshal(*v, &appendVariableActivityTypeProperties) + if err != nil { + return err + } + ava.AppendVariableActivityTypeProperties = &appendVariableActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ava.AdditionalProperties == nil { + ava.AdditionalProperties = make(map[string]interface{}) + } + ava.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ava.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ava.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ava.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ava.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ava.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ava.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ava.Type = typeVar + } + } + } + + return nil +} + +// AppendVariableActivityTypeProperties appendVariable activity properties. +type AppendVariableActivityTypeProperties struct { + // VariableName - Name of the variable whose value needs to be appended to. + VariableName *string `json:"variableName,omitempty"` + // Value - 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 interface{} `json:"value,omitempty"` +} + +// ArmIDWrapper a wrapper for an ARM resource id +type ArmIDWrapper struct { + // ID - READ-ONLY + ID *string `json:"id,omitempty"` +} + +// MarshalJSON is the custom marshaler for ArmIDWrapper. +func (aiw ArmIDWrapper) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// AsanaLinkedService linked service for Asana. +type AsanaLinkedService struct { + // AsanaLinkedServiceTypeProperties - Asana linked service properties. + *AsanaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AsanaLinkedService. +func (als AsanaLinkedService) MarshalJSON() ([]byte, error) { + als.Type = TypeBasicLinkedServiceTypeAsana + objectMap := make(map[string]interface{}) + if als.AsanaLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = als.AsanaLinkedServiceTypeProperties + } + if als.ConnectVia != nil { + objectMap["connectVia"] = als.ConnectVia + } + if als.Description != nil { + objectMap["description"] = als.Description + } + if als.Parameters != nil { + objectMap["parameters"] = als.Parameters + } + if als.Annotations != nil { + objectMap["annotations"] = als.Annotations + } + if als.Type != "" { + objectMap["type"] = als.Type + } + for k, v := range als.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return &als, true +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AsanaLinkedService. +func (als AsanaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &als, true +} + +// UnmarshalJSON is the custom unmarshaler for AsanaLinkedService struct. +func (als *AsanaLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var asanaLinkedServiceTypeProperties AsanaLinkedServiceTypeProperties + err = json.Unmarshal(*v, &asanaLinkedServiceTypeProperties) + if err != nil { + return err + } + als.AsanaLinkedServiceTypeProperties = &asanaLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if als.AdditionalProperties == nil { + als.AdditionalProperties = make(map[string]interface{}) + } + als.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + als.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + als.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + als.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + als.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + als.Type = typeVar + } + } + } + + return nil +} + +// AsanaLinkedServiceTypeProperties asana linked service type properties. +type AsanaLinkedServiceTypeProperties struct { + // APIToken - The api token for the Asana source. + APIToken BasicSecretBase `json:"apiToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AsanaLinkedServiceTypeProperties struct. +func (alstp *AsanaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "apiToken": + if v != nil { + APIToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + alstp.APIToken = APIToken + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + alstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AvroDataset avro dataset. +type AvroDataset struct { + // AvroDatasetTypeProperties - Avro dataset properties. + *AvroDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AvroDataset. +func (ad AvroDataset) MarshalJSON() ([]byte, error) { + ad.Type = TypeBasicDatasetTypeAvro + objectMap := make(map[string]interface{}) + if ad.AvroDatasetTypeProperties != nil { + objectMap["typeProperties"] = ad.AvroDatasetTypeProperties + } + if ad.Description != nil { + objectMap["description"] = ad.Description + } + if ad.Structure != nil { + objectMap["structure"] = ad.Structure + } + if ad.Schema != nil { + objectMap["schema"] = ad.Schema + } + if ad.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ad.LinkedServiceName + } + if ad.Parameters != nil { + objectMap["parameters"] = ad.Parameters + } + if ad.Annotations != nil { + objectMap["annotations"] = ad.Annotations + } + if ad.Folder != nil { + objectMap["folder"] = ad.Folder + } + if ad.Type != "" { + objectMap["type"] = ad.Type + } + for k, v := range ad.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAvroDataset() (*AvroDataset, bool) { + return &ad, true +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AvroDataset. +func (ad AvroDataset) AsBasicDataset() (BasicDataset, bool) { + return &ad, true +} + +// UnmarshalJSON is the custom unmarshaler for AvroDataset struct. +func (ad *AvroDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var avroDatasetTypeProperties AvroDatasetTypeProperties + err = json.Unmarshal(*v, &avroDatasetTypeProperties) + if err != nil { + return err + } + ad.AvroDatasetTypeProperties = &avroDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ad.AdditionalProperties == nil { + ad.AdditionalProperties = make(map[string]interface{}) + } + ad.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ad.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ad.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ad.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ad.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ad.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ad.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ad.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ad.Type = typeVar + } + } + } + + return nil +} + +// AvroDatasetTypeProperties avro dataset properties. +type AvroDatasetTypeProperties struct { + // Location - The location of the avro storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // AvroCompressionCodec - The data avroCompressionCodec. Type: string (or Expression with resultType string). + AvroCompressionCodec interface{} `json:"avroCompressionCodec,omitempty"` + AvroCompressionLevel *int32 `json:"avroCompressionLevel,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AvroDatasetTypeProperties struct. +func (adtp *AvroDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + adtp.Location = location + } + case "avroCompressionCodec": + if v != nil { + var avroCompressionCodec interface{} + err = json.Unmarshal(*v, &avroCompressionCodec) + if err != nil { + return err + } + adtp.AvroCompressionCodec = avroCompressionCodec + } + case "avroCompressionLevel": + if v != nil { + var avroCompressionLevel int32 + err = json.Unmarshal(*v, &avroCompressionLevel) + if err != nil { + return err + } + adtp.AvroCompressionLevel = &avroCompressionLevel + } + } + } + + return nil +} + +// AvroFormat the data stored in Avro format. +type AvroFormat struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Serializer - Serializer. Type: string (or Expression with resultType string). + Serializer interface{} `json:"serializer,omitempty"` + // Deserializer - Deserializer. Type: string (or Expression with resultType string). + Deserializer interface{} `json:"deserializer,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' + Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AvroFormat. +func (af AvroFormat) MarshalJSON() ([]byte, error) { + af.Type = TypeBasicDatasetStorageFormatTypeAvroFormat + objectMap := make(map[string]interface{}) + if af.Serializer != nil { + objectMap["serializer"] = af.Serializer + } + if af.Deserializer != nil { + objectMap["deserializer"] = af.Deserializer + } + if af.Type != "" { + objectMap["type"] = af.Type + } + for k, v := range af.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsParquetFormat is the BasicDatasetStorageFormat implementation for AvroFormat. +func (af AvroFormat) AsParquetFormat() (*ParquetFormat, bool) { + return nil, false +} + +// AsOrcFormat is the BasicDatasetStorageFormat implementation for AvroFormat. +func (af AvroFormat) AsOrcFormat() (*OrcFormat, bool) { + return nil, false +} + +// AsAvroFormat is the BasicDatasetStorageFormat implementation for AvroFormat. +func (af AvroFormat) AsAvroFormat() (*AvroFormat, bool) { + return &af, true +} + +// AsJSONFormat is the BasicDatasetStorageFormat implementation for AvroFormat. +func (af AvroFormat) AsJSONFormat() (*JSONFormat, bool) { + return nil, false +} + +// AsTextFormat is the BasicDatasetStorageFormat implementation for AvroFormat. +func (af AvroFormat) AsTextFormat() (*TextFormat, bool) { + return nil, false +} + +// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for AvroFormat. +func (af AvroFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { + return nil, false +} + +// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for AvroFormat. +func (af AvroFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { + return &af, true +} + +// UnmarshalJSON is the custom unmarshaler for AvroFormat struct. +func (af *AvroFormat) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if af.AdditionalProperties == nil { + af.AdditionalProperties = make(map[string]interface{}) + } + af.AdditionalProperties[k] = additionalProperties + } + case "serializer": + if v != nil { + var serializer interface{} + err = json.Unmarshal(*v, &serializer) + if err != nil { + return err + } + af.Serializer = serializer + } + case "deserializer": + if v != nil { + var deserializer interface{} + err = json.Unmarshal(*v, &deserializer) + if err != nil { + return err + } + af.Deserializer = deserializer + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetStorageFormat + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + af.Type = typeVar + } + } + } + + return nil +} + +// AvroSink a copy activity Avro sink. +type AvroSink struct { + // StoreSettings - Avro store settings. + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` + // FormatSettings - Avro format settings. + FormatSettings *AvroWriteSettings `json:"formatSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AvroSink. +func (as AvroSink) MarshalJSON() ([]byte, error) { + as.Type = TypeBasicCopySinkTypeAvroSink + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = as.StoreSettings + if as.FormatSettings != nil { + objectMap["formatSettings"] = as.FormatSettings + } + if as.WriteBatchSize != nil { + objectMap["writeBatchSize"] = as.WriteBatchSize + } + if as.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = as.WriteBatchTimeout + } + if as.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = as.SinkRetryCount + } + if as.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = as.SinkRetryWait + } + if as.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = as.MaxConcurrentConnections + } + if as.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = as.DisableMetricsCollection + } + if as.Type != "" { + objectMap["type"] = as.Type + } + for k, v := range as.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAvroSink() (*AvroSink, bool) { + return &as, true +} + +// AsAzureTableSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AvroSink. +func (as AvroSink) AsBasicCopySink() (BasicCopySink, bool) { + return &as, true +} + +// UnmarshalJSON is the custom unmarshaler for AvroSink struct. +func (as *AvroSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) + if err != nil { + return err + } + as.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings AvroWriteSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + as.FormatSettings = &formatSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if as.AdditionalProperties == nil { + as.AdditionalProperties = make(map[string]interface{}) + } + as.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + as.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + as.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + as.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + as.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + as.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + as.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + as.Type = typeVar + } + } + } + + return nil +} + +// AvroSource a copy activity Avro source. +type AvroSource struct { + // StoreSettings - Avro store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AvroSource. +func (as AvroSource) MarshalJSON() ([]byte, error) { + as.Type = TypeBasicCopySourceTypeAvroSource + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = as.StoreSettings + if as.AdditionalColumns != nil { + objectMap["additionalColumns"] = as.AdditionalColumns + } + if as.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = as.SourceRetryCount + } + if as.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = as.SourceRetryWait + } + if as.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = as.MaxConcurrentConnections + } + if as.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = as.DisableMetricsCollection + } + if as.Type != "" { + objectMap["type"] = as.Type + } + for k, v := range as.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsAvroSource() (*AvroSource, bool) { + return &as, true +} + +// AsCopySource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AvroSource. +func (as AvroSource) AsBasicCopySource() (BasicCopySource, bool) { + return &as, true +} + +// UnmarshalJSON is the custom unmarshaler for AvroSource struct. +func (as *AvroSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + as.StoreSettings = storeSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + as.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if as.AdditionalProperties == nil { + as.AdditionalProperties = make(map[string]interface{}) + } + as.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + as.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + as.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + as.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + as.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + as.Type = typeVar + } + } + } + + return nil +} + +// AvroWriteSettings avro write settings. +type AvroWriteSettings struct { + // RecordName - Top level record name in write result, which is required in AVRO spec. + RecordName *string `json:"recordName,omitempty"` + // RecordNamespace - Record namespace in the write result. + RecordNamespace *string `json:"recordNamespace,omitempty"` + // MaxRowsPerFile - 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"` + // FileNamePrefix - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AvroWriteSettings. +func (aws AvroWriteSettings) MarshalJSON() ([]byte, error) { + aws.Type = TypeBasicFormatWriteSettingsTypeAvroWriteSettings + objectMap := make(map[string]interface{}) + if aws.RecordName != nil { + objectMap["recordName"] = aws.RecordName + } + if aws.RecordNamespace != nil { + objectMap["recordNamespace"] = aws.RecordNamespace + } + if aws.MaxRowsPerFile != nil { + objectMap["maxRowsPerFile"] = aws.MaxRowsPerFile + } + if aws.FileNamePrefix != nil { + objectMap["fileNamePrefix"] = aws.FileNamePrefix + } + if aws.Type != "" { + objectMap["type"] = aws.Type + } + for k, v := range aws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. +func (aws AvroWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { + return nil, false +} + +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. +func (aws AvroWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { + return nil, false +} + +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. +func (aws AvroWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { + return nil, false +} + +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. +func (aws AvroWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { + return &aws, true +} + +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. +func (aws AvroWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { + return nil, false +} + +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. +func (aws AvroWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return nil, false +} + +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. +func (aws AvroWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &aws, true +} + +// UnmarshalJSON is the custom unmarshaler for AvroWriteSettings struct. +func (aws *AvroWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recordName": + if v != nil { + var recordName string + err = json.Unmarshal(*v, &recordName) + if err != nil { + return err + } + aws.RecordName = &recordName + } + case "recordNamespace": + if v != nil { + var recordNamespace string + err = json.Unmarshal(*v, &recordNamespace) + if err != nil { + return err + } + aws.RecordNamespace = &recordNamespace + } + case "maxRowsPerFile": + if v != nil { + var maxRowsPerFile interface{} + err = json.Unmarshal(*v, &maxRowsPerFile) + if err != nil { + return err + } + aws.MaxRowsPerFile = maxRowsPerFile + } + case "fileNamePrefix": + if v != nil { + var fileNamePrefix interface{} + err = json.Unmarshal(*v, &fileNamePrefix) + if err != nil { + return err + } + aws.FileNamePrefix = fileNamePrefix + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if aws.AdditionalProperties == nil { + aws.AdditionalProperties = make(map[string]interface{}) + } + aws.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + aws.Type = typeVar + } + } + } + + return nil +} + +// AzPowerShellSetup the express custom setup of installing Azure PowerShell. +type AzPowerShellSetup struct { + // AzPowerShellSetupTypeProperties - Install Azure PowerShell type properties. + *AzPowerShellSetupTypeProperties `json:"typeProperties,omitempty"` + // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzPowerShellSetup. +func (apss AzPowerShellSetup) MarshalJSON() ([]byte, error) { + apss.Type = TypeBasicCustomSetupBaseTypeAzPowerShellSetup + objectMap := make(map[string]interface{}) + if apss.AzPowerShellSetupTypeProperties != nil { + objectMap["typeProperties"] = apss.AzPowerShellSetupTypeProperties + } + if apss.Type != "" { + objectMap["type"] = apss.Type + } + return json.Marshal(objectMap) +} + +// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for AzPowerShellSetup. +func (apss AzPowerShellSetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { + return &apss, true +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for AzPowerShellSetup. +func (apss AzPowerShellSetup) AsComponentSetup() (*ComponentSetup, bool) { + return nil, false +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for AzPowerShellSetup. +func (apss AzPowerShellSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return nil, false +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for AzPowerShellSetup. +func (apss AzPowerShellSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { + return nil, false +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for AzPowerShellSetup. +func (apss AzPowerShellSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { + return nil, false +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for AzPowerShellSetup. +func (apss AzPowerShellSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &apss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzPowerShellSetup struct. +func (apss *AzPowerShellSetup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azPowerShellSetupTypeProperties AzPowerShellSetupTypeProperties + err = json.Unmarshal(*v, &azPowerShellSetupTypeProperties) + if err != nil { + return err + } + apss.AzPowerShellSetupTypeProperties = &azPowerShellSetupTypeProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCustomSetupBase + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + apss.Type = typeVar + } + } + } + + return nil +} + +// AzPowerShellSetupTypeProperties installation of Azure PowerShell type properties. +type AzPowerShellSetupTypeProperties struct { + // Version - The required version of Azure PowerShell to install. + Version *string `json:"version,omitempty"` +} + +// AzureBatchLinkedService azure Batch linked service. +type AzureBatchLinkedService struct { + // AzureBatchLinkedServiceTypeProperties - Azure Batch linked service properties. + *AzureBatchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) MarshalJSON() ([]byte, error) { + abls.Type = TypeBasicLinkedServiceTypeAzureBatch + objectMap := make(map[string]interface{}) + if abls.AzureBatchLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = abls.AzureBatchLinkedServiceTypeProperties + } + if abls.ConnectVia != nil { + objectMap["connectVia"] = abls.ConnectVia + } + if abls.Description != nil { + objectMap["description"] = abls.Description + } + if abls.Parameters != nil { + objectMap["parameters"] = abls.Parameters + } + if abls.Annotations != nil { + objectMap["annotations"] = abls.Annotations + } + if abls.Type != "" { + objectMap["type"] = abls.Type + } + for k, v := range abls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return &abls, true +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. +func (abls AzureBatchLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &abls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBatchLinkedService struct. +func (abls *AzureBatchLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureBatchLinkedServiceTypeProperties AzureBatchLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureBatchLinkedServiceTypeProperties) + if err != nil { + return err + } + abls.AzureBatchLinkedServiceTypeProperties = &azureBatchLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abls.AdditionalProperties == nil { + abls.AdditionalProperties = make(map[string]interface{}) + } + abls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + abls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + abls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + abls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + abls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abls.Type = typeVar + } + } + } + + return nil +} + +// AzureBatchLinkedServiceTypeProperties azure Batch linked service properties. +type AzureBatchLinkedServiceTypeProperties struct { + // AccountName - The Azure Batch account name. Type: string (or Expression with resultType string). + AccountName interface{} `json:"accountName,omitempty"` + // AccessKey - The Azure Batch account access key. + AccessKey BasicSecretBase `json:"accessKey,omitempty"` + // BatchURI - The Azure Batch URI. Type: string (or Expression with resultType string). + BatchURI interface{} `json:"batchUri,omitempty"` + // PoolName - The Azure Batch pool name. Type: string (or Expression with resultType string). + PoolName interface{} `json:"poolName,omitempty"` + // LinkedServiceName - The Azure Storage linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureBatchLinkedServiceTypeProperties struct. +func (ablstp *AzureBatchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "accountName": + if v != nil { + var accountName interface{} + err = json.Unmarshal(*v, &accountName) + if err != nil { + return err + } + ablstp.AccountName = accountName + } + case "accessKey": + if v != nil { + accessKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + ablstp.AccessKey = accessKey + } + case "batchUri": + if v != nil { + var batchURI interface{} + err = json.Unmarshal(*v, &batchURI) + if err != nil { + return err + } + ablstp.BatchURI = batchURI + } + case "poolName": + if v != nil { + var poolName interface{} + err = json.Unmarshal(*v, &poolName) + if err != nil { + return err + } + ablstp.PoolName = poolName + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ablstp.LinkedServiceName = &linkedServiceName + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + ablstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + ablstp.Credential = &credential + } + } + } + + return nil +} + +// AzureBlobDataset the Azure Blob storage. +type AzureBlobDataset struct { + // AzureBlobDatasetTypeProperties - Azure Blob dataset properties. + *AzureBlobDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobDataset. +func (abd AzureBlobDataset) MarshalJSON() ([]byte, error) { + abd.Type = TypeBasicDatasetTypeAzureBlob + objectMap := make(map[string]interface{}) + if abd.AzureBlobDatasetTypeProperties != nil { + objectMap["typeProperties"] = abd.AzureBlobDatasetTypeProperties + } + if abd.Description != nil { + objectMap["description"] = abd.Description + } + if abd.Structure != nil { + objectMap["structure"] = abd.Structure + } + if abd.Schema != nil { + objectMap["schema"] = abd.Schema + } + if abd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = abd.LinkedServiceName + } + if abd.Parameters != nil { + objectMap["parameters"] = abd.Parameters + } + if abd.Annotations != nil { + objectMap["annotations"] = abd.Annotations + } + if abd.Folder != nil { + objectMap["folder"] = abd.Folder + } + if abd.Type != "" { + objectMap["type"] = abd.Type + } + for k, v := range abd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return &abd, true +} + +// AsBinaryDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureBlobDataset. +func (abd AzureBlobDataset) AsBasicDataset() (BasicDataset, bool) { + return &abd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobDataset struct. +func (abd *AzureBlobDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureBlobDatasetTypeProperties AzureBlobDatasetTypeProperties + err = json.Unmarshal(*v, &azureBlobDatasetTypeProperties) + if err != nil { + return err + } + abd.AzureBlobDatasetTypeProperties = &azureBlobDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abd.AdditionalProperties == nil { + abd.AdditionalProperties = make(map[string]interface{}) + } + abd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + abd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + abd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + abd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + abd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + abd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + abd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + abd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abd.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobDatasetTypeProperties azure Blob dataset properties. +type AzureBlobDatasetTypeProperties struct { + // FolderPath - The path of the Azure Blob storage. Type: string (or Expression with resultType string). + FolderPath interface{} `json:"folderPath,omitempty"` + // TableRootLocation - The root of blob path. Type: string (or Expression with resultType string). + TableRootLocation interface{} `json:"tableRootLocation,omitempty"` + // FileName - The name of the Azure Blob. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // ModifiedDatetimeStart - The start of Azure Blob's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of Azure Blob's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // Format - The format of the Azure Blob storage. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // Compression - The data compression method used for the blob storage. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobDatasetTypeProperties struct. +func (abdtp *AzureBlobDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + abdtp.FolderPath = folderPath + } + case "tableRootLocation": + if v != nil { + var tableRootLocation interface{} + err = json.Unmarshal(*v, &tableRootLocation) + if err != nil { + return err + } + abdtp.TableRootLocation = tableRootLocation + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + abdtp.FileName = fileName + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + abdtp.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + abdtp.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "format": + if v != nil { + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + if err != nil { + return err + } + abdtp.Format = formatVar + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + abdtp.Compression = &compression + } + } + } + + return nil +} + +// AzureBlobFSDataset the Azure Data Lake Storage Gen2 storage. +type AzureBlobFSDataset struct { + // AzureBlobFSDatasetTypeProperties - Azure Data Lake Storage Gen2 dataset properties. + *AzureBlobFSDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) MarshalJSON() ([]byte, error) { + abfd.Type = TypeBasicDatasetTypeAzureBlobFSFile + objectMap := make(map[string]interface{}) + if abfd.AzureBlobFSDatasetTypeProperties != nil { + objectMap["typeProperties"] = abfd.AzureBlobFSDatasetTypeProperties + } + if abfd.Description != nil { + objectMap["description"] = abfd.Description + } + if abfd.Structure != nil { + objectMap["structure"] = abfd.Structure + } + if abfd.Schema != nil { + objectMap["schema"] = abfd.Schema + } + if abfd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = abfd.LinkedServiceName + } + if abfd.Parameters != nil { + objectMap["parameters"] = abfd.Parameters + } + if abfd.Annotations != nil { + objectMap["annotations"] = abfd.Annotations + } + if abfd.Folder != nil { + objectMap["folder"] = abfd.Folder + } + if abfd.Type != "" { + objectMap["type"] = abfd.Type + } + for k, v := range abfd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return &abfd, true +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureBlobFSDataset. +func (abfd AzureBlobFSDataset) AsBasicDataset() (BasicDataset, bool) { + return &abfd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSDataset struct. +func (abfd *AzureBlobFSDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureBlobFSDatasetTypeProperties AzureBlobFSDatasetTypeProperties + err = json.Unmarshal(*v, &azureBlobFSDatasetTypeProperties) + if err != nil { + return err + } + abfd.AzureBlobFSDatasetTypeProperties = &azureBlobFSDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abfd.AdditionalProperties == nil { + abfd.AdditionalProperties = make(map[string]interface{}) + } + abfd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + abfd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + abfd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + abfd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + abfd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + abfd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + abfd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + abfd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abfd.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobFSDatasetTypeProperties azure Data Lake Storage Gen2 dataset properties. +type AzureBlobFSDatasetTypeProperties struct { + // FolderPath - The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with resultType string). + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Format - The format of the Azure Data Lake Storage Gen2 storage. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // Compression - The data compression method used for the blob storage. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSDatasetTypeProperties struct. +func (abfdtp *AzureBlobFSDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + abfdtp.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + abfdtp.FileName = fileName + } + case "format": + if v != nil { + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + if err != nil { + return err + } + abfdtp.Format = formatVar + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + abfdtp.Compression = &compression + } + } + } + + return nil +} + +// AzureBlobFSLinkedService azure Data Lake Storage Gen2 linked service. +type AzureBlobFSLinkedService struct { + // AzureBlobFSLinkedServiceTypeProperties - Azure Data Lake Storage Gen2 linked service properties. + *AzureBlobFSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) MarshalJSON() ([]byte, error) { + abfls.Type = TypeBasicLinkedServiceTypeAzureBlobFS + objectMap := make(map[string]interface{}) + if abfls.AzureBlobFSLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = abfls.AzureBlobFSLinkedServiceTypeProperties + } + if abfls.ConnectVia != nil { + objectMap["connectVia"] = abfls.ConnectVia + } + if abfls.Description != nil { + objectMap["description"] = abfls.Description + } + if abfls.Parameters != nil { + objectMap["parameters"] = abfls.Parameters + } + if abfls.Annotations != nil { + objectMap["annotations"] = abfls.Annotations + } + if abfls.Type != "" { + objectMap["type"] = abfls.Type + } + for k, v := range abfls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return &abfls, true +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. +func (abfls AzureBlobFSLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &abfls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSLinkedService struct. +func (abfls *AzureBlobFSLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureBlobFSLinkedServiceTypeProperties AzureBlobFSLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureBlobFSLinkedServiceTypeProperties) + if err != nil { + return err + } + abfls.AzureBlobFSLinkedServiceTypeProperties = &azureBlobFSLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abfls.AdditionalProperties == nil { + abfls.AdditionalProperties = make(map[string]interface{}) + } + abfls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + abfls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + abfls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + abfls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + abfls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abfls.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobFSLinkedServiceTypeProperties azure Data Lake Storage Gen2 linked service properties. +type AzureBlobFSLinkedServiceTypeProperties struct { + // URL - Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // AccountKey - Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). + AccountKey interface{} `json:"accountKey,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // AzureCloudType - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` + // ServicePrincipalCredentialType - 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"` + // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` + // SasURI - SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or AzureKeyVaultSecretReference. + SasURI interface{} `json:"sasUri,omitempty"` + // SasToken - The Azure key vault secret reference of sasToken in sas uri. + SasToken BasicSecretBase `json:"sasToken,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSLinkedServiceTypeProperties struct. +func (abflstp *AzureBlobFSLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + abflstp.URL = URL + } + case "accountKey": + if v != nil { + var accountKey interface{} + err = json.Unmarshal(*v, &accountKey) + if err != nil { + return err + } + abflstp.AccountKey = accountKey + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + abflstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + abflstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + abflstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + abflstp.AzureCloudType = azureCloudType + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + abflstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + abflstp.Credential = &credential + } + case "servicePrincipalCredentialType": + if v != nil { + var servicePrincipalCredentialType interface{} + err = json.Unmarshal(*v, &servicePrincipalCredentialType) + if err != nil { + return err + } + abflstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + } + case "servicePrincipalCredential": + if v != nil { + servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + abflstp.ServicePrincipalCredential = servicePrincipalCredential + } + case "sasUri": + if v != nil { + var sasURI interface{} + err = json.Unmarshal(*v, &sasURI) + if err != nil { + return err + } + abflstp.SasURI = sasURI + } + case "sasToken": + if v != nil { + sasToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + abflstp.SasToken = sasToken + } + } + } + + return nil +} + +// AzureBlobFSLocation the location of azure blobFS dataset. +type AzureBlobFSLocation struct { + // FileSystem - Specify the fileSystem of azure blobFS. Type: string (or Expression with resultType string). + FileSystem interface{} `json:"fileSystem,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) MarshalJSON() ([]byte, error) { + abfl.Type = TypeBasicDatasetLocationTypeAzureBlobFSLocation + objectMap := make(map[string]interface{}) + if abfl.FileSystem != nil { + objectMap["fileSystem"] = abfl.FileSystem + } + if abfl.FolderPath != nil { + objectMap["folderPath"] = abfl.FolderPath + } + if abfl.FileName != nil { + objectMap["fileName"] = abfl.FileName + } + if abfl.Type != "" { + objectMap["type"] = abfl.Type + } + for k, v := range abfl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return &abfl, true +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. +func (abfl AzureBlobFSLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &abfl, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSLocation struct. +func (abfl *AzureBlobFSLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "fileSystem": + if v != nil { + var fileSystem interface{} + err = json.Unmarshal(*v, &fileSystem) + if err != nil { + return err + } + abfl.FileSystem = fileSystem + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abfl.AdditionalProperties == nil { + abfl.AdditionalProperties = make(map[string]interface{}) + } + abfl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + abfl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + abfl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abfl.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobFSReadSettings azure blobFS read settings. +type AzureBlobFSReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Azure blobFS wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Azure blobFS wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) MarshalJSON() ([]byte, error) { + abfrs.Type = TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings + objectMap := make(map[string]interface{}) + if abfrs.Recursive != nil { + objectMap["recursive"] = abfrs.Recursive + } + if abfrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = abfrs.WildcardFolderPath + } + if abfrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = abfrs.WildcardFileName + } + if abfrs.FileListPath != nil { + objectMap["fileListPath"] = abfrs.FileListPath + } + if abfrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = abfrs.EnablePartitionDiscovery + } + if abfrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = abfrs.PartitionRootPath + } + if abfrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = abfrs.DeleteFilesAfterCompletion + } + if abfrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = abfrs.ModifiedDatetimeStart + } + if abfrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = abfrs.ModifiedDatetimeEnd + } + if abfrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = abfrs.MaxConcurrentConnections + } + if abfrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = abfrs.DisableMetricsCollection + } + if abfrs.Type != "" { + objectMap["type"] = abfrs.Type + } + for k, v := range abfrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return &abfrs, true +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. +func (abfrs AzureBlobFSReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &abfrs, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSReadSettings struct. +func (abfrs *AzureBlobFSReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + abfrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + abfrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + abfrs.WildcardFileName = wildcardFileName + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + abfrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + abfrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + abfrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + abfrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + abfrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + abfrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abfrs.AdditionalProperties == nil { + abfrs.AdditionalProperties = make(map[string]interface{}) + } + abfrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + abfrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + abfrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abfrs.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobFSSink a copy activity Azure Data Lake Storage Gen2 sink. +type AzureBlobFSSink struct { + // CopyBehavior - The type of copy behavior for copy sink. Type: string (or Expression with resultType string). + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobFSSink. +func (abfs AzureBlobFSSink) MarshalJSON() ([]byte, error) { + abfs.Type = TypeBasicCopySinkTypeAzureBlobFSSink + objectMap := make(map[string]interface{}) + if abfs.CopyBehavior != nil { + objectMap["copyBehavior"] = abfs.CopyBehavior + } + if abfs.Metadata != nil { + objectMap["metadata"] = abfs.Metadata + } + if abfs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = abfs.WriteBatchSize + } + if abfs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = abfs.WriteBatchTimeout + } + if abfs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = abfs.SinkRetryCount + } + if abfs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = abfs.SinkRetryWait + } + if abfs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = abfs.MaxConcurrentConnections + } + if abfs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = abfs.DisableMetricsCollection + } + if abfs.Type != "" { + objectMap["type"] = abfs.Type + } + for k, v := range abfs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return &abfs, true +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureBlobFSSink. +func (abfs AzureBlobFSSink) AsBasicCopySink() (BasicCopySink, bool) { + return &abfs, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSSink struct. +func (abfs *AzureBlobFSSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + abfs.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + abfs.Metadata = &metadata + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abfs.AdditionalProperties == nil { + abfs.AdditionalProperties = make(map[string]interface{}) + } + abfs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + abfs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + abfs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + abfs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + abfs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + abfs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + abfs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abfs.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobFSSource a copy activity Azure BlobFS source. +type AzureBlobFSSource struct { + // TreatEmptyAsNull - Treat empty as null. Type: boolean (or Expression with resultType boolean). + TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` + // SkipHeaderLineCount - Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). + SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` + // Recursive - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobFSSource. +func (abfs AzureBlobFSSource) MarshalJSON() ([]byte, error) { + abfs.Type = TypeBasicCopySourceTypeAzureBlobFSSource + objectMap := make(map[string]interface{}) + if abfs.TreatEmptyAsNull != nil { + objectMap["treatEmptyAsNull"] = abfs.TreatEmptyAsNull + } + if abfs.SkipHeaderLineCount != nil { + objectMap["skipHeaderLineCount"] = abfs.SkipHeaderLineCount + } + if abfs.Recursive != nil { + objectMap["recursive"] = abfs.Recursive + } + if abfs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = abfs.SourceRetryCount + } + if abfs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = abfs.SourceRetryWait + } + if abfs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = abfs.MaxConcurrentConnections + } + if abfs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = abfs.DisableMetricsCollection + } + if abfs.Type != "" { + objectMap["type"] = abfs.Type + } + for k, v := range abfs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return &abfs, true +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureBlobFSSource. +func (abfs AzureBlobFSSource) AsBasicCopySource() (BasicCopySource, bool) { + return &abfs, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSSource struct. +func (abfs *AzureBlobFSSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "treatEmptyAsNull": + if v != nil { + var treatEmptyAsNull interface{} + err = json.Unmarshal(*v, &treatEmptyAsNull) + if err != nil { + return err + } + abfs.TreatEmptyAsNull = treatEmptyAsNull + } + case "skipHeaderLineCount": + if v != nil { + var skipHeaderLineCount interface{} + err = json.Unmarshal(*v, &skipHeaderLineCount) + if err != nil { + return err + } + abfs.SkipHeaderLineCount = skipHeaderLineCount + } + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + abfs.Recursive = recursive + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abfs.AdditionalProperties == nil { + abfs.AdditionalProperties = make(map[string]interface{}) + } + abfs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + abfs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + abfs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + abfs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + abfs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abfs.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobFSWriteSettings azure blobFS write settings. +type AzureBlobFSWriteSettings struct { + // BlockSizeInMB - Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). + BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) MarshalJSON() ([]byte, error) { + abfws.Type = TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings + objectMap := make(map[string]interface{}) + if abfws.BlockSizeInMB != nil { + objectMap["blockSizeInMB"] = abfws.BlockSizeInMB + } + if abfws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = abfws.MaxConcurrentConnections + } + if abfws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = abfws.DisableMetricsCollection + } + if abfws.CopyBehavior != nil { + objectMap["copyBehavior"] = abfws.CopyBehavior + } + if abfws.Metadata != nil { + objectMap["metadata"] = abfws.Metadata + } + if abfws.Type != "" { + objectMap["type"] = abfws.Type + } + for k, v := range abfws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { + return nil, false +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return &abfws, true +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. +func (abfws AzureBlobFSWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &abfws, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobFSWriteSettings struct. +func (abfws *AzureBlobFSWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "blockSizeInMB": + if v != nil { + var blockSizeInMB interface{} + err = json.Unmarshal(*v, &blockSizeInMB) + if err != nil { + return err + } + abfws.BlockSizeInMB = blockSizeInMB + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if abfws.AdditionalProperties == nil { + abfws.AdditionalProperties = make(map[string]interface{}) + } + abfws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + abfws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + abfws.DisableMetricsCollection = disableMetricsCollection + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + abfws.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + abfws.Metadata = &metadata + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + abfws.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobStorageLinkedService the azure blob storage linked service. +type AzureBlobStorageLinkedService struct { + // AzureBlobStorageLinkedServiceTypeProperties - Azure Blob Storage linked service properties. + *AzureBlobStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) MarshalJSON() ([]byte, error) { + absls.Type = TypeBasicLinkedServiceTypeAzureBlobStorage + objectMap := make(map[string]interface{}) + if absls.AzureBlobStorageLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = absls.AzureBlobStorageLinkedServiceTypeProperties + } + if absls.ConnectVia != nil { + objectMap["connectVia"] = absls.ConnectVia + } + if absls.Description != nil { + objectMap["description"] = absls.Description + } + if absls.Parameters != nil { + objectMap["parameters"] = absls.Parameters + } + if absls.Annotations != nil { + objectMap["annotations"] = absls.Annotations + } + if absls.Type != "" { + objectMap["type"] = absls.Type + } + for k, v := range absls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return &absls, true +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. +func (absls AzureBlobStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &absls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageLinkedService struct. +func (absls *AzureBlobStorageLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureBlobStorageLinkedServiceTypeProperties AzureBlobStorageLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureBlobStorageLinkedServiceTypeProperties) + if err != nil { + return err + } + absls.AzureBlobStorageLinkedServiceTypeProperties = &azureBlobStorageLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if absls.AdditionalProperties == nil { + absls.AdditionalProperties = make(map[string]interface{}) + } + absls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + absls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + absls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + absls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + absls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + absls.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobStorageLinkedServiceTypeProperties azure Blob Storage linked service properties. +type AzureBlobStorageLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // AccountKey - The Azure key vault secret reference of accountKey in connection string. + AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` + // SasURI - 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"` + // SasToken - The Azure key vault secret reference of sasToken in sas uri. + SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` + // ServiceEndpoint - Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. + ServiceEndpoint interface{} `json:"serviceEndpoint,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Data Warehouse. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // AzureCloudType - 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"` + // AccountKind - 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 interface{} `json:"accountKind,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` + // AuthenticationType - The type used for authentication. Type: string. Possible values include: 'AzureStorageAuthenticationTypeAnonymous', 'AzureStorageAuthenticationTypeAccountKey', 'AzureStorageAuthenticationTypeSasURI', 'AzureStorageAuthenticationTypeServicePrincipal', 'AzureStorageAuthenticationTypeMsi' + AuthenticationType AzureStorageAuthenticationType `json:"authenticationType,omitempty"` + // ContainerURI - Container uri of the Azure Blob Storage resource only support for anonymous access. Type: string (or Expression with resultType string). + ContainerURI interface{} `json:"containerUri,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageLinkedServiceTypeProperties struct. +func (abslstp *AzureBlobStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + abslstp.ConnectionString = connectionString + } + case "accountKey": + if v != nil { + var accountKey AzureKeyVaultSecretReference + err = json.Unmarshal(*v, &accountKey) + if err != nil { + return err + } + abslstp.AccountKey = &accountKey + } + case "sasUri": + if v != nil { + var sasURI interface{} + err = json.Unmarshal(*v, &sasURI) + if err != nil { + return err + } + abslstp.SasURI = sasURI + } + case "sasToken": + if v != nil { + var sasToken AzureKeyVaultSecretReference + err = json.Unmarshal(*v, &sasToken) + if err != nil { + return err + } + abslstp.SasToken = &sasToken + } + case "serviceEndpoint": + if v != nil { + var serviceEndpoint interface{} + err = json.Unmarshal(*v, &serviceEndpoint) + if err != nil { + return err + } + abslstp.ServiceEndpoint = serviceEndpoint + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + abslstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + abslstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + abslstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + abslstp.AzureCloudType = azureCloudType + } + case "accountKind": + if v != nil { + var accountKind interface{} + err = json.Unmarshal(*v, &accountKind) + if err != nil { + return err + } + abslstp.AccountKind = accountKind + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + abslstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + abslstp.Credential = &credential + } + case "authenticationType": + if v != nil { + var authenticationType AzureStorageAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + abslstp.AuthenticationType = authenticationType + } + case "containerUri": + if v != nil { + var containerURI interface{} + err = json.Unmarshal(*v, &containerURI) + if err != nil { + return err + } + abslstp.ContainerURI = containerURI + } + } + } + + return nil +} + +// AzureBlobStorageLocation the location of azure blob dataset. +type AzureBlobStorageLocation struct { + // Container - Specify the container of azure blob. Type: string (or Expression with resultType string). + Container interface{} `json:"container,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) MarshalJSON() ([]byte, error) { + absl.Type = TypeBasicDatasetLocationTypeAzureBlobStorageLocation + objectMap := make(map[string]interface{}) + if absl.Container != nil { + objectMap["container"] = absl.Container + } + if absl.FolderPath != nil { + objectMap["folderPath"] = absl.FolderPath + } + if absl.FileName != nil { + objectMap["fileName"] = absl.FileName + } + if absl.Type != "" { + objectMap["type"] = absl.Type + } + for k, v := range absl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return &absl, true +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. +func (absl AzureBlobStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &absl, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageLocation struct. +func (absl *AzureBlobStorageLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "container": + if v != nil { + var containerVar interface{} + err = json.Unmarshal(*v, &containerVar) + if err != nil { + return err + } + absl.Container = containerVar + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if absl.AdditionalProperties == nil { + absl.AdditionalProperties = make(map[string]interface{}) + } + absl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + absl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + absl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + absl.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobStorageReadSettings azure blob read settings. +type AzureBlobStorageReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Azure blob wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Azure blob wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // Prefix - The prefix filter for the Azure Blob name. Type: string (or Expression with resultType string). + Prefix interface{} `json:"prefix,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) MarshalJSON() ([]byte, error) { + absrs.Type = TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings + objectMap := make(map[string]interface{}) + if absrs.Recursive != nil { + objectMap["recursive"] = absrs.Recursive + } + if absrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = absrs.WildcardFolderPath + } + if absrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = absrs.WildcardFileName + } + if absrs.Prefix != nil { + objectMap["prefix"] = absrs.Prefix + } + if absrs.FileListPath != nil { + objectMap["fileListPath"] = absrs.FileListPath + } + if absrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = absrs.EnablePartitionDiscovery + } + if absrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = absrs.PartitionRootPath + } + if absrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = absrs.DeleteFilesAfterCompletion + } + if absrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = absrs.ModifiedDatetimeStart + } + if absrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = absrs.ModifiedDatetimeEnd + } + if absrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = absrs.MaxConcurrentConnections + } + if absrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = absrs.DisableMetricsCollection + } + if absrs.Type != "" { + objectMap["type"] = absrs.Type + } + for k, v := range absrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return &absrs, true +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. +func (absrs AzureBlobStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &absrs, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageReadSettings struct. +func (absrs *AzureBlobStorageReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + absrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + absrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + absrs.WildcardFileName = wildcardFileName + } + case "prefix": + if v != nil { + var prefix interface{} + err = json.Unmarshal(*v, &prefix) + if err != nil { + return err + } + absrs.Prefix = prefix + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + absrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + absrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + absrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + absrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + absrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + absrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if absrs.AdditionalProperties == nil { + absrs.AdditionalProperties = make(map[string]interface{}) + } + absrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + absrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + absrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + absrs.Type = typeVar + } + } + } + + return nil +} + +// AzureBlobStorageWriteSettings azure blob write settings. +type AzureBlobStorageWriteSettings struct { + // BlockSizeInMB - Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). + BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) MarshalJSON() ([]byte, error) { + absws.Type = TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings + objectMap := make(map[string]interface{}) + if absws.BlockSizeInMB != nil { + objectMap["blockSizeInMB"] = absws.BlockSizeInMB + } + if absws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = absws.MaxConcurrentConnections + } + if absws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = absws.DisableMetricsCollection + } + if absws.CopyBehavior != nil { + objectMap["copyBehavior"] = absws.CopyBehavior + } + if absws.Metadata != nil { + objectMap["metadata"] = absws.Metadata + } + if absws.Type != "" { + objectMap["type"] = absws.Type + } + for k, v := range absws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { + return nil, false +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return &absws, true +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. +func (absws AzureBlobStorageWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &absws, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageWriteSettings struct. +func (absws *AzureBlobStorageWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "blockSizeInMB": + if v != nil { + var blockSizeInMB interface{} + err = json.Unmarshal(*v, &blockSizeInMB) + if err != nil { + return err + } + absws.BlockSizeInMB = blockSizeInMB + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if absws.AdditionalProperties == nil { + absws.AdditionalProperties = make(map[string]interface{}) + } + absws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + absws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + absws.DisableMetricsCollection = disableMetricsCollection + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + absws.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + absws.Metadata = &metadata + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + absws.Type = typeVar + } + } + } + + return nil +} + +// AzureDataExplorerCommandActivity azure Data Explorer command activity. +type AzureDataExplorerCommandActivity struct { + // AzureDataExplorerCommandActivityTypeProperties - Azure Data Explorer command activity properties. + *AzureDataExplorerCommandActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) MarshalJSON() ([]byte, error) { + adeca.Type = TypeBasicActivityTypeAzureDataExplorerCommand + objectMap := make(map[string]interface{}) + if adeca.AzureDataExplorerCommandActivityTypeProperties != nil { + objectMap["typeProperties"] = adeca.AzureDataExplorerCommandActivityTypeProperties + } + if adeca.LinkedServiceName != nil { + objectMap["linkedServiceName"] = adeca.LinkedServiceName + } + if adeca.Policy != nil { + objectMap["policy"] = adeca.Policy + } + if adeca.Name != nil { + objectMap["name"] = adeca.Name + } + if adeca.Description != nil { + objectMap["description"] = adeca.Description + } + if adeca.State != "" { + objectMap["state"] = adeca.State + } + if adeca.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = adeca.OnInactiveMarkAs + } + if adeca.DependsOn != nil { + objectMap["dependsOn"] = adeca.DependsOn + } + if adeca.UserProperties != nil { + objectMap["userProperties"] = adeca.UserProperties + } + if adeca.Type != "" { + objectMap["type"] = adeca.Type + } + for k, v := range adeca.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return &adeca, true +} + +// AsDeleteActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &adeca, true +} + +// AsWebHookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. +func (adeca AzureDataExplorerCommandActivity) AsBasicActivity() (BasicActivity, bool) { + return &adeca, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerCommandActivity struct. +func (adeca *AzureDataExplorerCommandActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDataExplorerCommandActivityTypeProperties AzureDataExplorerCommandActivityTypeProperties + err = json.Unmarshal(*v, &azureDataExplorerCommandActivityTypeProperties) + if err != nil { + return err + } + adeca.AzureDataExplorerCommandActivityTypeProperties = &azureDataExplorerCommandActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + adeca.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + adeca.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adeca.AdditionalProperties == nil { + adeca.AdditionalProperties = make(map[string]interface{}) + } + adeca.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + adeca.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adeca.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + adeca.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + adeca.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + adeca.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + adeca.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adeca.Type = typeVar + } + } + } + + return nil +} + +// AzureDataExplorerCommandActivityTypeProperties azure Data Explorer command activity properties. +type AzureDataExplorerCommandActivityTypeProperties struct { + // Command - A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType string). + Command interface{} `json:"command,omitempty"` + // CommandTimeout - 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"` +} + +// AzureDataExplorerDatasetTypeProperties azure Data Explorer (Kusto) dataset properties. +type AzureDataExplorerDatasetTypeProperties struct { + // Table - The table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// AzureDataExplorerLinkedService azure Data Explorer (Kusto) linked service. +type AzureDataExplorerLinkedService struct { + // AzureDataExplorerLinkedServiceTypeProperties - Azure Data Explorer (Kusto) linked service properties. + *AzureDataExplorerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error) { + adels.Type = TypeBasicLinkedServiceTypeAzureDataExplorer + objectMap := make(map[string]interface{}) + if adels.AzureDataExplorerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = adels.AzureDataExplorerLinkedServiceTypeProperties + } + if adels.ConnectVia != nil { + objectMap["connectVia"] = adels.ConnectVia + } + if adels.Description != nil { + objectMap["description"] = adels.Description + } + if adels.Parameters != nil { + objectMap["parameters"] = adels.Parameters + } + if adels.Annotations != nil { + objectMap["annotations"] = adels.Annotations + } + if adels.Type != "" { + objectMap["type"] = adels.Type + } + for k, v := range adels.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return &adels, true +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. +func (adels AzureDataExplorerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &adels, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerLinkedService struct. +func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDataExplorerLinkedServiceTypeProperties AzureDataExplorerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDataExplorerLinkedServiceTypeProperties) + if err != nil { + return err + } + adels.AzureDataExplorerLinkedServiceTypeProperties = &azureDataExplorerLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adels.AdditionalProperties == nil { + adels.AdditionalProperties = make(map[string]interface{}) + } + adels.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + adels.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adels.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + adels.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + adels.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adels.Type = typeVar + } + } + } + + return nil +} + +// AzureDataExplorerLinkedServiceTypeProperties azure Data Explorer (Kusto) linked service properties. +type AzureDataExplorerLinkedServiceTypeProperties struct { + // Endpoint - 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"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Kusto. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Database - Database name for connection. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` + // Tenant - 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"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerLinkedServiceTypeProperties struct. +func (adelstp *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + adelstp.Endpoint = endpoint + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + adelstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + adelstp.ServicePrincipalKey = servicePrincipalKey + } + case "database": + if v != nil { + var databaseVar interface{} + err = json.Unmarshal(*v, &databaseVar) + if err != nil { + return err + } + adelstp.Database = databaseVar + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + adelstp.Tenant = tenant + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + adelstp.Credential = &credential + } + } + } + + return nil +} + +// AzureDataExplorerSink a copy activity Azure Data Explorer sink. +type AzureDataExplorerSink struct { + // IngestionMappingName - A name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. + IngestionMappingName interface{} `json:"ingestionMappingName,omitempty"` + // IngestionMappingAsJSON - An explicit column mapping description provided in a json format. Type: string. + IngestionMappingAsJSON interface{} `json:"ingestionMappingAsJson,omitempty"` + // FlushImmediately - If set to true, any aggregation will be skipped. Default is false. Type: boolean. + FlushImmediately interface{} `json:"flushImmediately,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) MarshalJSON() ([]byte, error) { + ades.Type = TypeBasicCopySinkTypeAzureDataExplorerSink + objectMap := make(map[string]interface{}) + if ades.IngestionMappingName != nil { + objectMap["ingestionMappingName"] = ades.IngestionMappingName + } + if ades.IngestionMappingAsJSON != nil { + objectMap["ingestionMappingAsJson"] = ades.IngestionMappingAsJSON + } + if ades.FlushImmediately != nil { + objectMap["flushImmediately"] = ades.FlushImmediately + } + if ades.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ades.WriteBatchSize + } + if ades.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ades.WriteBatchTimeout + } + if ades.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ades.SinkRetryCount + } + if ades.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ades.SinkRetryWait + } + if ades.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections + } + if ades.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ades.DisableMetricsCollection + } + if ades.Type != "" { + objectMap["type"] = ades.Type + } + for k, v := range ades.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return &ades, true +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureDataExplorerSink. +func (ades AzureDataExplorerSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ades, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerSink struct. +func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "ingestionMappingName": + if v != nil { + var ingestionMappingName interface{} + err = json.Unmarshal(*v, &ingestionMappingName) + if err != nil { + return err + } + ades.IngestionMappingName = ingestionMappingName + } + case "ingestionMappingAsJson": + if v != nil { + var ingestionMappingAsJSON interface{} + err = json.Unmarshal(*v, &ingestionMappingAsJSON) + if err != nil { + return err + } + ades.IngestionMappingAsJSON = ingestionMappingAsJSON + } + case "flushImmediately": + if v != nil { + var flushImmediately interface{} + err = json.Unmarshal(*v, &flushImmediately) + if err != nil { + return err + } + ades.FlushImmediately = flushImmediately + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ades.AdditionalProperties == nil { + ades.AdditionalProperties = make(map[string]interface{}) + } + ades.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ades.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ades.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ades.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ades.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ades.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ades.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ades.Type = typeVar + } + } + } + + return nil +} + +// AzureDataExplorerSource a copy activity Azure Data Explorer (Kusto) source. +type AzureDataExplorerSource struct { + // Query - Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // NoTruncation - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) MarshalJSON() ([]byte, error) { + ades.Type = TypeBasicCopySourceTypeAzureDataExplorerSource + objectMap := make(map[string]interface{}) + if ades.Query != nil { + objectMap["query"] = ades.Query + } + if ades.NoTruncation != nil { + objectMap["noTruncation"] = ades.NoTruncation + } + if ades.QueryTimeout != nil { + objectMap["queryTimeout"] = ades.QueryTimeout + } + if ades.AdditionalColumns != nil { + objectMap["additionalColumns"] = ades.AdditionalColumns + } + if ades.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ades.SourceRetryCount + } + if ades.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ades.SourceRetryWait + } + if ades.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections + } + if ades.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ades.DisableMetricsCollection + } + if ades.Type != "" { + objectMap["type"] = ades.Type + } + for k, v := range ades.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return &ades, true +} + +// AsHdfsSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureDataExplorerSource. +func (ades AzureDataExplorerSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ades, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerSource struct. +func (ades *AzureDataExplorerSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ades.Query = query + } + case "noTruncation": + if v != nil { + var noTruncation interface{} + err = json.Unmarshal(*v, &noTruncation) + if err != nil { + return err + } + ades.NoTruncation = noTruncation + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ades.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ades.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ades.AdditionalProperties == nil { + ades.AdditionalProperties = make(map[string]interface{}) + } + ades.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ades.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ades.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ades.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ades.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ades.Type = typeVar + } + } + } + + return nil +} + +// AzureDataExplorerTableDataset the Azure Data Explorer (Kusto) dataset. +type AzureDataExplorerTableDataset struct { + // AzureDataExplorerDatasetTypeProperties - Azure Data Explorer (Kusto) dataset properties. + *AzureDataExplorerDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) MarshalJSON() ([]byte, error) { + adetd.Type = TypeBasicDatasetTypeAzureDataExplorerTable + objectMap := make(map[string]interface{}) + if adetd.AzureDataExplorerDatasetTypeProperties != nil { + objectMap["typeProperties"] = adetd.AzureDataExplorerDatasetTypeProperties + } + if adetd.Description != nil { + objectMap["description"] = adetd.Description + } + if adetd.Structure != nil { + objectMap["structure"] = adetd.Structure + } + if adetd.Schema != nil { + objectMap["schema"] = adetd.Schema + } + if adetd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = adetd.LinkedServiceName + } + if adetd.Parameters != nil { + objectMap["parameters"] = adetd.Parameters + } + if adetd.Annotations != nil { + objectMap["annotations"] = adetd.Annotations + } + if adetd.Folder != nil { + objectMap["folder"] = adetd.Folder + } + if adetd.Type != "" { + objectMap["type"] = adetd.Type + } + for k, v := range adetd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return &adetd, true +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. +func (adetd AzureDataExplorerTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &adetd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerTableDataset struct. +func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDataExplorerDatasetTypeProperties AzureDataExplorerDatasetTypeProperties + err = json.Unmarshal(*v, &azureDataExplorerDatasetTypeProperties) + if err != nil { + return err + } + adetd.AzureDataExplorerDatasetTypeProperties = &azureDataExplorerDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adetd.AdditionalProperties == nil { + adetd.AdditionalProperties = make(map[string]interface{}) + } + adetd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adetd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + adetd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + adetd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + adetd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + adetd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + adetd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + adetd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adetd.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeAnalyticsLinkedService azure Data Lake Analytics linked service. +type AzureDataLakeAnalyticsLinkedService struct { + // AzureDataLakeAnalyticsLinkedServiceTypeProperties - Azure Data Lake Analytics linked service properties. + *AzureDataLakeAnalyticsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error) { + adlals.Type = TypeBasicLinkedServiceTypeAzureDataLakeAnalytics + objectMap := make(map[string]interface{}) + if adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties + } + if adlals.ConnectVia != nil { + objectMap["connectVia"] = adlals.ConnectVia + } + if adlals.Description != nil { + objectMap["description"] = adlals.Description + } + if adlals.Parameters != nil { + objectMap["parameters"] = adlals.Parameters + } + if adlals.Annotations != nil { + objectMap["annotations"] = adlals.Annotations + } + if adlals.Type != "" { + objectMap["type"] = adlals.Type + } + for k, v := range adlals.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return &adlals, true +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. +func (adlals AzureDataLakeAnalyticsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &adlals, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedService struct. +func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDataLakeAnalyticsLinkedServiceTypeProperties AzureDataLakeAnalyticsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDataLakeAnalyticsLinkedServiceTypeProperties) + if err != nil { + return err + } + adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties = &azureDataLakeAnalyticsLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlals.AdditionalProperties == nil { + adlals.AdditionalProperties = make(map[string]interface{}) + } + adlals.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + adlals.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adlals.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + adlals.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + adlals.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlals.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeAnalyticsLinkedServiceTypeProperties azure Data Lake Analytics linked service properties. +type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { + // AccountName - The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). + AccountName interface{} `json:"accountName,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Analytics account. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // SubscriptionID - Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). + SubscriptionID interface{} `json:"subscriptionId,omitempty"` + // ResourceGroupName - 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"` + // DataLakeAnalyticsURI - Azure Data Lake Analytics URI Type: string (or Expression with resultType string). + DataLakeAnalyticsURI interface{} `json:"dataLakeAnalyticsUri,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedServiceTypeProperties struct. +func (adlalstp *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "accountName": + if v != nil { + var accountName interface{} + err = json.Unmarshal(*v, &accountName) + if err != nil { + return err + } + adlalstp.AccountName = accountName + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + adlalstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + adlalstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + adlalstp.Tenant = tenant + } + case "subscriptionId": + if v != nil { + var subscriptionID interface{} + err = json.Unmarshal(*v, &subscriptionID) + if err != nil { + return err + } + adlalstp.SubscriptionID = subscriptionID + } + case "resourceGroupName": + if v != nil { + var resourceGroupName interface{} + err = json.Unmarshal(*v, &resourceGroupName) + if err != nil { + return err + } + adlalstp.ResourceGroupName = resourceGroupName + } + case "dataLakeAnalyticsUri": + if v != nil { + var dataLakeAnalyticsURI interface{} + err = json.Unmarshal(*v, &dataLakeAnalyticsURI) + if err != nil { + return err + } + adlalstp.DataLakeAnalyticsURI = dataLakeAnalyticsURI + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + adlalstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AzureDataLakeStoreDataset azure Data Lake Store dataset. +type AzureDataLakeStoreDataset struct { + // AzureDataLakeStoreDatasetTypeProperties - Azure Data Lake Store dataset properties. + *AzureDataLakeStoreDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) MarshalJSON() ([]byte, error) { + adlsd.Type = TypeBasicDatasetTypeAzureDataLakeStoreFile + objectMap := make(map[string]interface{}) + if adlsd.AzureDataLakeStoreDatasetTypeProperties != nil { + objectMap["typeProperties"] = adlsd.AzureDataLakeStoreDatasetTypeProperties + } + if adlsd.Description != nil { + objectMap["description"] = adlsd.Description + } + if adlsd.Structure != nil { + objectMap["structure"] = adlsd.Structure + } + if adlsd.Schema != nil { + objectMap["schema"] = adlsd.Schema + } + if adlsd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = adlsd.LinkedServiceName + } + if adlsd.Parameters != nil { + objectMap["parameters"] = adlsd.Parameters + } + if adlsd.Annotations != nil { + objectMap["annotations"] = adlsd.Annotations + } + if adlsd.Folder != nil { + objectMap["folder"] = adlsd.Folder + } + if adlsd.Type != "" { + objectMap["type"] = adlsd.Type + } + for k, v := range adlsd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return &adlsd, true +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. +func (adlsd AzureDataLakeStoreDataset) AsBasicDataset() (BasicDataset, bool) { + return &adlsd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDataset struct. +func (adlsd *AzureDataLakeStoreDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDataLakeStoreDatasetTypeProperties AzureDataLakeStoreDatasetTypeProperties + err = json.Unmarshal(*v, &azureDataLakeStoreDatasetTypeProperties) + if err != nil { + return err + } + adlsd.AzureDataLakeStoreDatasetTypeProperties = &azureDataLakeStoreDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlsd.AdditionalProperties == nil { + adlsd.AdditionalProperties = make(map[string]interface{}) + } + adlsd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adlsd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + adlsd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + adlsd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + adlsd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + adlsd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + adlsd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + adlsd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlsd.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeStoreDatasetTypeProperties azure Data Lake Store dataset properties. +type AzureDataLakeStoreDatasetTypeProperties struct { + // FolderPath - Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Format - The format of the Data Lake Store. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // Compression - The data compression method used for the item(s) in the Azure Data Lake Store. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDatasetTypeProperties struct. +func (adlsdtp *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + adlsdtp.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + adlsdtp.FileName = fileName + } + case "format": + if v != nil { + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + if err != nil { + return err + } + adlsdtp.Format = formatVar + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + adlsdtp.Compression = &compression + } + } + } + + return nil +} + +// AzureDataLakeStoreLinkedService azure Data Lake Store linked service. +type AzureDataLakeStoreLinkedService struct { + // AzureDataLakeStoreLinkedServiceTypeProperties - Azure Data Lake Store linked service properties. + *AzureDataLakeStoreLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error) { + adlsls.Type = TypeBasicLinkedServiceTypeAzureDataLakeStore + objectMap := make(map[string]interface{}) + if adlsls.AzureDataLakeStoreLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = adlsls.AzureDataLakeStoreLinkedServiceTypeProperties + } + if adlsls.ConnectVia != nil { + objectMap["connectVia"] = adlsls.ConnectVia + } + if adlsls.Description != nil { + objectMap["description"] = adlsls.Description + } + if adlsls.Parameters != nil { + objectMap["parameters"] = adlsls.Parameters + } + if adlsls.Annotations != nil { + objectMap["annotations"] = adlsls.Annotations + } + if adlsls.Type != "" { + objectMap["type"] = adlsls.Type + } + for k, v := range adlsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return &adlsls, true +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. +func (adlsls AzureDataLakeStoreLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &adlsls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedService struct. +func (adlsls *AzureDataLakeStoreLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDataLakeStoreLinkedServiceTypeProperties AzureDataLakeStoreLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDataLakeStoreLinkedServiceTypeProperties) + if err != nil { + return err + } + adlsls.AzureDataLakeStoreLinkedServiceTypeProperties = &azureDataLakeStoreLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlsls.AdditionalProperties == nil { + adlsls.AdditionalProperties = make(map[string]interface{}) + } + adlsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + adlsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adlsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + adlsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + adlsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlsls.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeStoreLinkedServiceTypeProperties azure Data Lake Store linked service properties. +type AzureDataLakeStoreLinkedServiceTypeProperties struct { + // DataLakeStoreURI - Data Lake Store service URI. Type: string (or Expression with resultType string). + DataLakeStoreURI interface{} `json:"dataLakeStoreUri,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Store account. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // AzureCloudType - 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"` + // AccountName - Data Lake Store account name. Type: string (or Expression with resultType string). + AccountName interface{} `json:"accountName,omitempty"` + // SubscriptionID - Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). + SubscriptionID interface{} `json:"subscriptionId,omitempty"` + // ResourceGroupName - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedServiceTypeProperties struct. +func (adlslstp *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "dataLakeStoreUri": + if v != nil { + var dataLakeStoreURI interface{} + err = json.Unmarshal(*v, &dataLakeStoreURI) + if err != nil { + return err + } + adlslstp.DataLakeStoreURI = dataLakeStoreURI + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + adlslstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + adlslstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + adlslstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + adlslstp.AzureCloudType = azureCloudType + } + case "accountName": + if v != nil { + var accountName interface{} + err = json.Unmarshal(*v, &accountName) + if err != nil { + return err + } + adlslstp.AccountName = accountName + } + case "subscriptionId": + if v != nil { + var subscriptionID interface{} + err = json.Unmarshal(*v, &subscriptionID) + if err != nil { + return err + } + adlslstp.SubscriptionID = subscriptionID + } + case "resourceGroupName": + if v != nil { + var resourceGroupName interface{} + err = json.Unmarshal(*v, &resourceGroupName) + if err != nil { + return err + } + adlslstp.ResourceGroupName = resourceGroupName + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + adlslstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + adlslstp.Credential = &credential + } + } + } + + return nil +} + +// AzureDataLakeStoreLocation the location of azure data lake store dataset. +type AzureDataLakeStoreLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) MarshalJSON() ([]byte, error) { + adlsl.Type = TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation + objectMap := make(map[string]interface{}) + if adlsl.FolderPath != nil { + objectMap["folderPath"] = adlsl.FolderPath + } + if adlsl.FileName != nil { + objectMap["fileName"] = adlsl.FileName + } + if adlsl.Type != "" { + objectMap["type"] = adlsl.Type + } + for k, v := range adlsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return &adlsl, true +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. +func (adlsl AzureDataLakeStoreLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &adlsl, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLocation struct. +func (adlsl *AzureDataLakeStoreLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlsl.AdditionalProperties == nil { + adlsl.AdditionalProperties = make(map[string]interface{}) + } + adlsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + adlsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + adlsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlsl.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeStoreReadSettings azure data lake store read settings. +type AzureDataLakeStoreReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - ADLS wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - ADLS wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // FileListPath - 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"` + // ListAfter - 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"` + // ListBefore - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error) { + adlsrs.Type = TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings + objectMap := make(map[string]interface{}) + if adlsrs.Recursive != nil { + objectMap["recursive"] = adlsrs.Recursive + } + if adlsrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = adlsrs.WildcardFolderPath + } + if adlsrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = adlsrs.WildcardFileName + } + if adlsrs.FileListPath != nil { + objectMap["fileListPath"] = adlsrs.FileListPath + } + if adlsrs.ListAfter != nil { + objectMap["listAfter"] = adlsrs.ListAfter + } + if adlsrs.ListBefore != nil { + objectMap["listBefore"] = adlsrs.ListBefore + } + if adlsrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = adlsrs.EnablePartitionDiscovery + } + if adlsrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = adlsrs.PartitionRootPath + } + if adlsrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = adlsrs.DeleteFilesAfterCompletion + } + if adlsrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = adlsrs.ModifiedDatetimeStart + } + if adlsrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = adlsrs.ModifiedDatetimeEnd + } + if adlsrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = adlsrs.MaxConcurrentConnections + } + if adlsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = adlsrs.DisableMetricsCollection + } + if adlsrs.Type != "" { + objectMap["type"] = adlsrs.Type + } + for k, v := range adlsrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return &adlsrs, true +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. +func (adlsrs AzureDataLakeStoreReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &adlsrs, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreReadSettings struct. +func (adlsrs *AzureDataLakeStoreReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + adlsrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + adlsrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + adlsrs.WildcardFileName = wildcardFileName + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + adlsrs.FileListPath = fileListPath + } + case "listAfter": + if v != nil { + var listAfter interface{} + err = json.Unmarshal(*v, &listAfter) + if err != nil { + return err + } + adlsrs.ListAfter = listAfter + } + case "listBefore": + if v != nil { + var listBefore interface{} + err = json.Unmarshal(*v, &listBefore) + if err != nil { + return err + } + adlsrs.ListBefore = listBefore + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + adlsrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + adlsrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + adlsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + adlsrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + adlsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlsrs.AdditionalProperties == nil { + adlsrs.AdditionalProperties = make(map[string]interface{}) + } + adlsrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + adlsrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + adlsrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlsrs.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeStoreSink a copy activity Azure Data Lake Store sink. +type AzureDataLakeStoreSink struct { + // CopyBehavior - The type of copy behavior for copy sink. Type: string (or Expression with resultType string). + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // EnableAdlsSingleFileParallel - Single File Parallel. + EnableAdlsSingleFileParallel interface{} `json:"enableAdlsSingleFileParallel,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { + adlss.Type = TypeBasicCopySinkTypeAzureDataLakeStoreSink + objectMap := make(map[string]interface{}) + if adlss.CopyBehavior != nil { + objectMap["copyBehavior"] = adlss.CopyBehavior + } + if adlss.EnableAdlsSingleFileParallel != nil { + objectMap["enableAdlsSingleFileParallel"] = adlss.EnableAdlsSingleFileParallel + } + if adlss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = adlss.WriteBatchSize + } + if adlss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = adlss.WriteBatchTimeout + } + if adlss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = adlss.SinkRetryCount + } + if adlss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = adlss.SinkRetryWait + } + if adlss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections + } + if adlss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = adlss.DisableMetricsCollection + } + if adlss.Type != "" { + objectMap["type"] = adlss.Type + } + for k, v := range adlss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return &adlss, true +} + +// AsOracleSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. +func (adlss AzureDataLakeStoreSink) AsBasicCopySink() (BasicCopySink, bool) { + return &adlss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreSink struct. +func (adlss *AzureDataLakeStoreSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + adlss.CopyBehavior = copyBehavior + } + case "enableAdlsSingleFileParallel": + if v != nil { + var enableAdlsSingleFileParallel interface{} + err = json.Unmarshal(*v, &enableAdlsSingleFileParallel) + if err != nil { + return err + } + adlss.EnableAdlsSingleFileParallel = enableAdlsSingleFileParallel + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlss.AdditionalProperties == nil { + adlss.AdditionalProperties = make(map[string]interface{}) + } + adlss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + adlss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + adlss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + adlss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + adlss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + adlss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + adlss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlss.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeStoreSource a copy activity Azure Data Lake source. +type AzureDataLakeStoreSource struct { + // Recursive - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) MarshalJSON() ([]byte, error) { + adlss.Type = TypeBasicCopySourceTypeAzureDataLakeStoreSource + objectMap := make(map[string]interface{}) + if adlss.Recursive != nil { + objectMap["recursive"] = adlss.Recursive + } + if adlss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = adlss.SourceRetryCount + } + if adlss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = adlss.SourceRetryWait + } + if adlss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections + } + if adlss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = adlss.DisableMetricsCollection + } + if adlss.Type != "" { + objectMap["type"] = adlss.Type + } + for k, v := range adlss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return &adlss, true +} + +// AsOffice365Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. +func (adlss AzureDataLakeStoreSource) AsBasicCopySource() (BasicCopySource, bool) { + return &adlss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreSource struct. +func (adlss *AzureDataLakeStoreSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + adlss.Recursive = recursive + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlss.AdditionalProperties == nil { + adlss.AdditionalProperties = make(map[string]interface{}) + } + adlss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + adlss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + adlss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + adlss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + adlss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlss.Type = typeVar + } + } + } + + return nil +} + +// AzureDataLakeStoreWriteSettings azure data lake store write settings. +type AzureDataLakeStoreWriteSettings struct { + // ExpiryDateTime - 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: string (or Expression with resultType string). + ExpiryDateTime interface{} `json:"expiryDateTime,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) MarshalJSON() ([]byte, error) { + adlsws.Type = TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings + objectMap := make(map[string]interface{}) + if adlsws.ExpiryDateTime != nil { + objectMap["expiryDateTime"] = adlsws.ExpiryDateTime + } + if adlsws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = adlsws.MaxConcurrentConnections + } + if adlsws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = adlsws.DisableMetricsCollection + } + if adlsws.CopyBehavior != nil { + objectMap["copyBehavior"] = adlsws.CopyBehavior + } + if adlsws.Metadata != nil { + objectMap["metadata"] = adlsws.Metadata + } + if adlsws.Type != "" { + objectMap["type"] = adlsws.Type + } + for k, v := range adlsws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { + return nil, false +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return &adlsws, true +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. +func (adlsws AzureDataLakeStoreWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &adlsws, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreWriteSettings struct. +func (adlsws *AzureDataLakeStoreWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "expiryDateTime": + if v != nil { + var expiryDateTime interface{} + err = json.Unmarshal(*v, &expiryDateTime) + if err != nil { + return err + } + adlsws.ExpiryDateTime = expiryDateTime + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adlsws.AdditionalProperties == nil { + adlsws.AdditionalProperties = make(map[string]interface{}) + } + adlsws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + adlsws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + adlsws.DisableMetricsCollection = disableMetricsCollection + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + adlsws.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + adlsws.Metadata = &metadata + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adlsws.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDeltaLakeDataset azure Databricks Delta Lake dataset. +type AzureDatabricksDeltaLakeDataset struct { + // AzureDatabricksDeltaLakeDatasetTypeProperties - Properties specific to this dataset type. + *AzureDatabricksDeltaLakeDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) MarshalJSON() ([]byte, error) { + addld.Type = TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset + objectMap := make(map[string]interface{}) + if addld.AzureDatabricksDeltaLakeDatasetTypeProperties != nil { + objectMap["typeProperties"] = addld.AzureDatabricksDeltaLakeDatasetTypeProperties + } + if addld.Description != nil { + objectMap["description"] = addld.Description + } + if addld.Structure != nil { + objectMap["structure"] = addld.Structure + } + if addld.Schema != nil { + objectMap["schema"] = addld.Schema + } + if addld.LinkedServiceName != nil { + objectMap["linkedServiceName"] = addld.LinkedServiceName + } + if addld.Parameters != nil { + objectMap["parameters"] = addld.Parameters + } + if addld.Annotations != nil { + objectMap["annotations"] = addld.Annotations + } + if addld.Folder != nil { + objectMap["folder"] = addld.Folder + } + if addld.Type != "" { + objectMap["type"] = addld.Type + } + for k, v := range addld.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return &addld, true +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. +func (addld AzureDatabricksDeltaLakeDataset) AsBasicDataset() (BasicDataset, bool) { + return &addld, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeDataset struct. +func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDatabricksDeltaLakeDatasetTypeProperties AzureDatabricksDeltaLakeDatasetTypeProperties + err = json.Unmarshal(*v, &azureDatabricksDeltaLakeDatasetTypeProperties) + if err != nil { + return err + } + addld.AzureDatabricksDeltaLakeDatasetTypeProperties = &azureDatabricksDeltaLakeDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if addld.AdditionalProperties == nil { + addld.AdditionalProperties = make(map[string]interface{}) + } + addld.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + addld.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + addld.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + addld.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + addld.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + addld.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + addld.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + addld.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + addld.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDeltaLakeDatasetTypeProperties azure Databricks Delta Lake Dataset Properties +type AzureDatabricksDeltaLakeDatasetTypeProperties struct { + // Table - The name of delta table. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Database - The database name of delta table. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` +} + +// AzureDatabricksDeltaLakeExportCommand azure Databricks Delta Lake export command settings. +type AzureDatabricksDeltaLakeExportCommand struct { + // DateFormat - 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"` + // TimestampFormat - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicExportSettingsTypeExportSettings', 'TypeBasicExportSettingsTypeSnowflakeExportCopyCommand', 'TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand' + Type TypeBasicExportSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) MarshalJSON() ([]byte, error) { + addlec.Type = TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand + objectMap := make(map[string]interface{}) + if addlec.DateFormat != nil { + objectMap["dateFormat"] = addlec.DateFormat + } + if addlec.TimestampFormat != nil { + objectMap["timestampFormat"] = addlec.TimestampFormat + } + if addlec.Type != "" { + objectMap["type"] = addlec.Type + } + for k, v := range addlec.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { + return &addlec, true +} + +// AsExportSettings is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) AsExportSettings() (*ExportSettings, bool) { + return nil, false +} + +// AsBasicExportSettings is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. +func (addlec AzureDatabricksDeltaLakeExportCommand) AsBasicExportSettings() (BasicExportSettings, bool) { + return &addlec, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeExportCommand struct. +func (addlec *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "dateFormat": + if v != nil { + var dateFormat interface{} + err = json.Unmarshal(*v, &dateFormat) + if err != nil { + return err + } + addlec.DateFormat = dateFormat + } + case "timestampFormat": + if v != nil { + var timestampFormat interface{} + err = json.Unmarshal(*v, ×tampFormat) + if err != nil { + return err + } + addlec.TimestampFormat = timestampFormat + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if addlec.AdditionalProperties == nil { + addlec.AdditionalProperties = make(map[string]interface{}) + } + addlec.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicExportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + addlec.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDeltaLakeImportCommand azure Databricks Delta Lake import command settings. +type AzureDatabricksDeltaLakeImportCommand struct { + // DateFormat - Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). + DateFormat interface{} `json:"dateFormat,omitempty"` + // TimestampFormat - Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). + TimestampFormat interface{} `json:"timestampFormat,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicImportSettingsTypeImportSettings', 'TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand', 'TypeBasicImportSettingsTypeSnowflakeImportCopyCommand' + Type TypeBasicImportSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) MarshalJSON() ([]byte, error) { + addlic.Type = TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand + objectMap := make(map[string]interface{}) + if addlic.DateFormat != nil { + objectMap["dateFormat"] = addlic.DateFormat + } + if addlic.TimestampFormat != nil { + objectMap["timestampFormat"] = addlic.TimestampFormat + } + if addlic.Type != "" { + objectMap["type"] = addlic.Type + } + for k, v := range addlic.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { + return &addlic, true +} + +// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { + return nil, false +} + +// AsImportSettings is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) AsImportSettings() (*ImportSettings, bool) { + return nil, false +} + +// AsBasicImportSettings is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. +func (addlic AzureDatabricksDeltaLakeImportCommand) AsBasicImportSettings() (BasicImportSettings, bool) { + return &addlic, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeImportCommand struct. +func (addlic *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "dateFormat": + if v != nil { + var dateFormat interface{} + err = json.Unmarshal(*v, &dateFormat) + if err != nil { + return err + } + addlic.DateFormat = dateFormat + } + case "timestampFormat": + if v != nil { + var timestampFormat interface{} + err = json.Unmarshal(*v, ×tampFormat) + if err != nil { + return err + } + addlic.TimestampFormat = timestampFormat + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if addlic.AdditionalProperties == nil { + addlic.AdditionalProperties = make(map[string]interface{}) + } + addlic.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicImportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + addlic.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDeltaLakeLinkedService azure Databricks Delta Lake linked service. +type AzureDatabricksDeltaLakeLinkedService struct { + // AzureDatabricksDetltaLakeLinkedServiceTypeProperties - Azure Databricks Delta Lake linked service properties. + *AzureDatabricksDetltaLakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) MarshalJSON() ([]byte, error) { + addlls.Type = TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake + objectMap := make(map[string]interface{}) + if addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties + } + if addlls.ConnectVia != nil { + objectMap["connectVia"] = addlls.ConnectVia + } + if addlls.Description != nil { + objectMap["description"] = addlls.Description + } + if addlls.Parameters != nil { + objectMap["parameters"] = addlls.Parameters + } + if addlls.Annotations != nil { + objectMap["annotations"] = addlls.Annotations + } + if addlls.Type != "" { + objectMap["type"] = addlls.Type + } + for k, v := range addlls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return &addlls, true +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. +func (addlls AzureDatabricksDeltaLakeLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &addlls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeLinkedService struct. +func (addlls *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDatabricksDetltaLakeLinkedServiceTypeProperties AzureDatabricksDetltaLakeLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDatabricksDetltaLakeLinkedServiceTypeProperties) + if err != nil { + return err + } + addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties = &azureDatabricksDetltaLakeLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if addlls.AdditionalProperties == nil { + addlls.AdditionalProperties = make(map[string]interface{}) + } + addlls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + addlls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + addlls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + addlls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + addlls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + addlls.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDeltaLakeSink a copy activity Azure Databricks Delta Lake sink. +type AzureDatabricksDeltaLakeSink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // ImportSettings - Azure Databricks Delta Lake import settings. + ImportSettings *AzureDatabricksDeltaLakeImportCommand `json:"importSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) MarshalJSON() ([]byte, error) { + addls.Type = TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink + objectMap := make(map[string]interface{}) + if addls.PreCopyScript != nil { + objectMap["preCopyScript"] = addls.PreCopyScript + } + if addls.ImportSettings != nil { + objectMap["importSettings"] = addls.ImportSettings + } + if addls.WriteBatchSize != nil { + objectMap["writeBatchSize"] = addls.WriteBatchSize + } + if addls.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = addls.WriteBatchTimeout + } + if addls.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = addls.SinkRetryCount + } + if addls.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = addls.SinkRetryWait + } + if addls.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections + } + if addls.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = addls.DisableMetricsCollection + } + if addls.Type != "" { + objectMap["type"] = addls.Type + } + for k, v := range addls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return &addls, true +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. +func (addls AzureDatabricksDeltaLakeSink) AsBasicCopySink() (BasicCopySink, bool) { + return &addls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeSink struct. +func (addls *AzureDatabricksDeltaLakeSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + addls.PreCopyScript = preCopyScript + } + case "importSettings": + if v != nil { + var importSettings AzureDatabricksDeltaLakeImportCommand + err = json.Unmarshal(*v, &importSettings) + if err != nil { + return err + } + addls.ImportSettings = &importSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if addls.AdditionalProperties == nil { + addls.AdditionalProperties = make(map[string]interface{}) + } + addls.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + addls.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + addls.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + addls.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + addls.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + addls.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + addls.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + addls.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDeltaLakeSource a copy activity Azure Databricks Delta Lake source. +type AzureDatabricksDeltaLakeSource struct { + // Query - Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // ExportSettings - Azure Databricks Delta Lake export settings. + ExportSettings *AzureDatabricksDeltaLakeExportCommand `json:"exportSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) MarshalJSON() ([]byte, error) { + addls.Type = TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource + objectMap := make(map[string]interface{}) + if addls.Query != nil { + objectMap["query"] = addls.Query + } + if addls.ExportSettings != nil { + objectMap["exportSettings"] = addls.ExportSettings + } + if addls.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = addls.SourceRetryCount + } + if addls.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = addls.SourceRetryWait + } + if addls.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections + } + if addls.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = addls.DisableMetricsCollection + } + if addls.Type != "" { + objectMap["type"] = addls.Type + } + for k, v := range addls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return &addls, true +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. +func (addls AzureDatabricksDeltaLakeSource) AsBasicCopySource() (BasicCopySource, bool) { + return &addls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeSource struct. +func (addls *AzureDatabricksDeltaLakeSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + addls.Query = query + } + case "exportSettings": + if v != nil { + var exportSettings AzureDatabricksDeltaLakeExportCommand + err = json.Unmarshal(*v, &exportSettings) + if err != nil { + return err + } + addls.ExportSettings = &exportSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if addls.AdditionalProperties == nil { + addls.AdditionalProperties = make(map[string]interface{}) + } + addls.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + addls.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + addls.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + addls.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + addls.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + addls.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksDetltaLakeLinkedServiceTypeProperties azure Databricks Delta Lake linked service +// properties. +type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { + // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). + Domain interface{} `json:"domain,omitempty"` + // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or AzureKeyVaultSecretReference. + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // ClusterID - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` + // WorkspaceResourceID - Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). + WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct. +func (addllstp *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "domain": + if v != nil { + var domain interface{} + err = json.Unmarshal(*v, &domain) + if err != nil { + return err + } + addllstp.Domain = domain + } + case "accessToken": + if v != nil { + accessToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + addllstp.AccessToken = accessToken + } + case "clusterId": + if v != nil { + var clusterID interface{} + err = json.Unmarshal(*v, &clusterID) + if err != nil { + return err + } + addllstp.ClusterID = clusterID + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + addllstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + addllstp.Credential = &credential + } + case "workspaceResourceId": + if v != nil { + var workspaceResourceID interface{} + err = json.Unmarshal(*v, &workspaceResourceID) + if err != nil { + return err + } + addllstp.WorkspaceResourceID = workspaceResourceID + } + } + } + + return nil +} + +// AzureDatabricksLinkedService azure Databricks linked service. +type AzureDatabricksLinkedService struct { + // AzureDatabricksLinkedServiceTypeProperties - Azure Databricks linked service properties. + *AzureDatabricksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) MarshalJSON() ([]byte, error) { + adls.Type = TypeBasicLinkedServiceTypeAzureDatabricks + objectMap := make(map[string]interface{}) + if adls.AzureDatabricksLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = adls.AzureDatabricksLinkedServiceTypeProperties + } + if adls.ConnectVia != nil { + objectMap["connectVia"] = adls.ConnectVia + } + if adls.Description != nil { + objectMap["description"] = adls.Description + } + if adls.Parameters != nil { + objectMap["parameters"] = adls.Parameters + } + if adls.Annotations != nil { + objectMap["annotations"] = adls.Annotations + } + if adls.Type != "" { + objectMap["type"] = adls.Type + } + for k, v := range adls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return &adls, true +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. +func (adls AzureDatabricksLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &adls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedService struct. +func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureDatabricksLinkedServiceTypeProperties AzureDatabricksLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureDatabricksLinkedServiceTypeProperties) + if err != nil { + return err + } + adls.AzureDatabricksLinkedServiceTypeProperties = &azureDatabricksLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if adls.AdditionalProperties == nil { + adls.AdditionalProperties = make(map[string]interface{}) + } + adls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + adls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + adls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + adls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + adls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + adls.Type = typeVar + } + } + } + + return nil +} + +// AzureDatabricksLinkedServiceTypeProperties azure Databricks linked service properties. +type AzureDatabricksLinkedServiceTypeProperties struct { + // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). + Domain interface{} `json:"domain,omitempty"` + // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType string). + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // Authentication - 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"` + // WorkspaceResourceID - Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). + WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` + // ExistingClusterID - 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"` + // InstancePoolID - 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"` + // NewClusterVersion - 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"` + // NewClusterNumOfWorker - 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"` + // NewClusterNodeType - 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"` + // NewClusterSparkConf - A set of optional, user-specified Spark configuration key-value pairs. + NewClusterSparkConf map[string]interface{} `json:"newClusterSparkConf"` + // NewClusterSparkEnvVars - A set of optional, user-specified Spark environment variables key-value pairs. + NewClusterSparkEnvVars map[string]interface{} `json:"newClusterSparkEnvVars"` + // NewClusterCustomTags - Additional tags for cluster resources. This property is ignored in instance pool configurations. + NewClusterCustomTags map[string]interface{} `json:"newClusterCustomTags"` + // NewClusterLogDestination - Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression with resultType string). + NewClusterLogDestination interface{} `json:"newClusterLogDestination,omitempty"` + // NewClusterDriverNodeType - 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"` + // NewClusterInitScripts - User-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of strings). + NewClusterInitScripts interface{} `json:"newClusterInitScripts,omitempty"` + // NewClusterEnableElasticDisk - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // PolicyID - 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"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureDatabricksLinkedServiceTypeProperties. +func (adlstp AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if adlstp.Domain != nil { + objectMap["domain"] = adlstp.Domain + } + objectMap["accessToken"] = adlstp.AccessToken + if adlstp.Authentication != nil { + objectMap["authentication"] = adlstp.Authentication + } + if adlstp.WorkspaceResourceID != nil { + objectMap["workspaceResourceId"] = adlstp.WorkspaceResourceID + } + if adlstp.ExistingClusterID != nil { + objectMap["existingClusterId"] = adlstp.ExistingClusterID + } + if adlstp.InstancePoolID != nil { + objectMap["instancePoolId"] = adlstp.InstancePoolID + } + if adlstp.NewClusterVersion != nil { + objectMap["newClusterVersion"] = adlstp.NewClusterVersion + } + if adlstp.NewClusterNumOfWorker != nil { + objectMap["newClusterNumOfWorker"] = adlstp.NewClusterNumOfWorker + } + if adlstp.NewClusterNodeType != nil { + objectMap["newClusterNodeType"] = adlstp.NewClusterNodeType + } + if adlstp.NewClusterSparkConf != nil { + objectMap["newClusterSparkConf"] = adlstp.NewClusterSparkConf + } + if adlstp.NewClusterSparkEnvVars != nil { + objectMap["newClusterSparkEnvVars"] = adlstp.NewClusterSparkEnvVars + } + if adlstp.NewClusterCustomTags != nil { + objectMap["newClusterCustomTags"] = adlstp.NewClusterCustomTags + } + if adlstp.NewClusterLogDestination != nil { + objectMap["newClusterLogDestination"] = adlstp.NewClusterLogDestination + } + if adlstp.NewClusterDriverNodeType != nil { + objectMap["newClusterDriverNodeType"] = adlstp.NewClusterDriverNodeType + } + if adlstp.NewClusterInitScripts != nil { + objectMap["newClusterInitScripts"] = adlstp.NewClusterInitScripts + } + if adlstp.NewClusterEnableElasticDisk != nil { + objectMap["newClusterEnableElasticDisk"] = adlstp.NewClusterEnableElasticDisk + } + if adlstp.EncryptedCredential != nil { + objectMap["encryptedCredential"] = adlstp.EncryptedCredential + } + if adlstp.PolicyID != nil { + objectMap["policyId"] = adlstp.PolicyID + } + if adlstp.Credential != nil { + objectMap["credential"] = adlstp.Credential + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedServiceTypeProperties struct. +func (adlstp *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "domain": + if v != nil { + var domain interface{} + err = json.Unmarshal(*v, &domain) + if err != nil { + return err + } + adlstp.Domain = domain + } + case "accessToken": + if v != nil { + accessToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + adlstp.AccessToken = accessToken + } + case "authentication": + if v != nil { + var authentication interface{} + err = json.Unmarshal(*v, &authentication) + if err != nil { + return err + } + adlstp.Authentication = authentication + } + case "workspaceResourceId": + if v != nil { + var workspaceResourceID interface{} + err = json.Unmarshal(*v, &workspaceResourceID) + if err != nil { + return err + } + adlstp.WorkspaceResourceID = workspaceResourceID + } + case "existingClusterId": + if v != nil { + var existingClusterID interface{} + err = json.Unmarshal(*v, &existingClusterID) + if err != nil { + return err + } + adlstp.ExistingClusterID = existingClusterID + } + case "instancePoolId": + if v != nil { + var instancePoolID interface{} + err = json.Unmarshal(*v, &instancePoolID) + if err != nil { + return err + } + adlstp.InstancePoolID = instancePoolID + } + case "newClusterVersion": + if v != nil { + var newClusterVersion interface{} + err = json.Unmarshal(*v, &newClusterVersion) + if err != nil { + return err + } + adlstp.NewClusterVersion = newClusterVersion + } + case "newClusterNumOfWorker": + if v != nil { + var newClusterNumOfWorker interface{} + err = json.Unmarshal(*v, &newClusterNumOfWorker) + if err != nil { + return err + } + adlstp.NewClusterNumOfWorker = newClusterNumOfWorker + } + case "newClusterNodeType": + if v != nil { + var newClusterNodeType interface{} + err = json.Unmarshal(*v, &newClusterNodeType) + if err != nil { + return err + } + adlstp.NewClusterNodeType = newClusterNodeType + } + case "newClusterSparkConf": + if v != nil { + var newClusterSparkConf map[string]interface{} + err = json.Unmarshal(*v, &newClusterSparkConf) + if err != nil { + return err + } + adlstp.NewClusterSparkConf = newClusterSparkConf + } + case "newClusterSparkEnvVars": + if v != nil { + var newClusterSparkEnvVars map[string]interface{} + err = json.Unmarshal(*v, &newClusterSparkEnvVars) + if err != nil { + return err + } + adlstp.NewClusterSparkEnvVars = newClusterSparkEnvVars + } + case "newClusterCustomTags": + if v != nil { + var newClusterCustomTags map[string]interface{} + err = json.Unmarshal(*v, &newClusterCustomTags) + if err != nil { + return err + } + adlstp.NewClusterCustomTags = newClusterCustomTags + } + case "newClusterLogDestination": + if v != nil { + var newClusterLogDestination interface{} + err = json.Unmarshal(*v, &newClusterLogDestination) + if err != nil { + return err + } + adlstp.NewClusterLogDestination = newClusterLogDestination + } + case "newClusterDriverNodeType": + if v != nil { + var newClusterDriverNodeType interface{} + err = json.Unmarshal(*v, &newClusterDriverNodeType) + if err != nil { + return err + } + adlstp.NewClusterDriverNodeType = newClusterDriverNodeType + } + case "newClusterInitScripts": + if v != nil { + var newClusterInitScripts interface{} + err = json.Unmarshal(*v, &newClusterInitScripts) + if err != nil { + return err + } + adlstp.NewClusterInitScripts = newClusterInitScripts + } + case "newClusterEnableElasticDisk": + if v != nil { + var newClusterEnableElasticDisk interface{} + err = json.Unmarshal(*v, &newClusterEnableElasticDisk) + if err != nil { + return err + } + adlstp.NewClusterEnableElasticDisk = newClusterEnableElasticDisk + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + adlstp.EncryptedCredential = &encryptedCredential + } + case "policyId": + if v != nil { + var policyID interface{} + err = json.Unmarshal(*v, &policyID) + if err != nil { + return err + } + adlstp.PolicyID = policyID + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + adlstp.Credential = &credential + } + } + } + + return nil +} + +// AzureFileStorageLinkedService azure File Storage linked service. +type AzureFileStorageLinkedService struct { + // AzureFileStorageLinkedServiceTypeProperties - Azure File Storage linked service properties. + *AzureFileStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) MarshalJSON() ([]byte, error) { + afsls.Type = TypeBasicLinkedServiceTypeAzureFileStorage + objectMap := make(map[string]interface{}) + if afsls.AzureFileStorageLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = afsls.AzureFileStorageLinkedServiceTypeProperties + } + if afsls.ConnectVia != nil { + objectMap["connectVia"] = afsls.ConnectVia + } + if afsls.Description != nil { + objectMap["description"] = afsls.Description + } + if afsls.Parameters != nil { + objectMap["parameters"] = afsls.Parameters + } + if afsls.Annotations != nil { + objectMap["annotations"] = afsls.Annotations + } + if afsls.Type != "" { + objectMap["type"] = afsls.Type + } + for k, v := range afsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return &afsls, true +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. +func (afsls AzureFileStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &afsls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLinkedService struct. +func (afsls *AzureFileStorageLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureFileStorageLinkedServiceTypeProperties AzureFileStorageLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureFileStorageLinkedServiceTypeProperties) + if err != nil { + return err + } + afsls.AzureFileStorageLinkedServiceTypeProperties = &azureFileStorageLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if afsls.AdditionalProperties == nil { + afsls.AdditionalProperties = make(map[string]interface{}) + } + afsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + afsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + afsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + afsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + afsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afsls.Type = typeVar + } + } + } + + return nil +} + +// AzureFileStorageLinkedServiceTypeProperties azure File Storage linked service properties. +type AzureFileStorageLinkedServiceTypeProperties struct { + // Host - Host name of the server. Type: string (or Expression with resultType string). + Host interface{} `json:"host,omitempty"` + // UserID - User ID to logon the server. Type: string (or Expression with resultType string). + UserID interface{} `json:"userId,omitempty"` + // Password - Password to logon the server. + Password BasicSecretBase `json:"password,omitempty"` + // ConnectionString - The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // AccountKey - The Azure key vault secret reference of accountKey in connection string. + AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` + // SasURI - SAS URI of the Azure File resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + SasURI interface{} `json:"sasUri,omitempty"` + // SasToken - The Azure key vault secret reference of sasToken in sas uri. + SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` + // FileShare - 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"` + // Snapshot - The azure file share snapshot version. Type: string (or Expression with resultType string). + Snapshot interface{} `json:"snapshot,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLinkedServiceTypeProperties struct. +func (afslstp *AzureFileStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + afslstp.Host = host + } + case "userId": + if v != nil { + var userID interface{} + err = json.Unmarshal(*v, &userID) + if err != nil { + return err + } + afslstp.UserID = userID + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + afslstp.Password = password + } + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + afslstp.ConnectionString = connectionString + } + case "accountKey": + if v != nil { + var accountKey AzureKeyVaultSecretReference + err = json.Unmarshal(*v, &accountKey) + if err != nil { + return err + } + afslstp.AccountKey = &accountKey + } + case "sasUri": + if v != nil { + var sasURI interface{} + err = json.Unmarshal(*v, &sasURI) + if err != nil { + return err + } + afslstp.SasURI = sasURI + } + case "sasToken": + if v != nil { + var sasToken AzureKeyVaultSecretReference + err = json.Unmarshal(*v, &sasToken) + if err != nil { + return err + } + afslstp.SasToken = &sasToken + } + case "fileShare": + if v != nil { + var fileShare interface{} + err = json.Unmarshal(*v, &fileShare) + if err != nil { + return err + } + afslstp.FileShare = fileShare + } + case "snapshot": + if v != nil { + var snapshot interface{} + err = json.Unmarshal(*v, &snapshot) + if err != nil { + return err + } + afslstp.Snapshot = snapshot + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + afslstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AzureFileStorageLocation the location of file server dataset. +type AzureFileStorageLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) MarshalJSON() ([]byte, error) { + afsl.Type = TypeBasicDatasetLocationTypeAzureFileStorageLocation + objectMap := make(map[string]interface{}) + if afsl.FolderPath != nil { + objectMap["folderPath"] = afsl.FolderPath + } + if afsl.FileName != nil { + objectMap["fileName"] = afsl.FileName + } + if afsl.Type != "" { + objectMap["type"] = afsl.Type + } + for k, v := range afsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return &afsl, true +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. +func (afsl AzureFileStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &afsl, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLocation struct. +func (afsl *AzureFileStorageLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if afsl.AdditionalProperties == nil { + afsl.AdditionalProperties = make(map[string]interface{}) + } + afsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + afsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + afsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afsl.Type = typeVar + } + } + } + + return nil +} + +// AzureFileStorageReadSettings azure File Storage read settings. +type AzureFileStorageReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Azure File Storage wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Azure File Storage wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // Prefix - The prefix filter for the Azure File name starting from root path. Type: string (or Expression with resultType string). + Prefix interface{} `json:"prefix,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) MarshalJSON() ([]byte, error) { + afsrs.Type = TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings + objectMap := make(map[string]interface{}) + if afsrs.Recursive != nil { + objectMap["recursive"] = afsrs.Recursive + } + if afsrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = afsrs.WildcardFolderPath + } + if afsrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = afsrs.WildcardFileName + } + if afsrs.Prefix != nil { + objectMap["prefix"] = afsrs.Prefix + } + if afsrs.FileListPath != nil { + objectMap["fileListPath"] = afsrs.FileListPath + } + if afsrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = afsrs.EnablePartitionDiscovery + } + if afsrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = afsrs.PartitionRootPath + } + if afsrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = afsrs.DeleteFilesAfterCompletion + } + if afsrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = afsrs.ModifiedDatetimeStart + } + if afsrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = afsrs.ModifiedDatetimeEnd + } + if afsrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = afsrs.MaxConcurrentConnections + } + if afsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = afsrs.DisableMetricsCollection + } + if afsrs.Type != "" { + objectMap["type"] = afsrs.Type + } + for k, v := range afsrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return &afsrs, true +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. +func (afsrs AzureFileStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &afsrs, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureFileStorageReadSettings struct. +func (afsrs *AzureFileStorageReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + afsrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + afsrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + afsrs.WildcardFileName = wildcardFileName + } + case "prefix": + if v != nil { + var prefix interface{} + err = json.Unmarshal(*v, &prefix) + if err != nil { + return err + } + afsrs.Prefix = prefix + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + afsrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + afsrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + afsrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + afsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + afsrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + afsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if afsrs.AdditionalProperties == nil { + afsrs.AdditionalProperties = make(map[string]interface{}) + } + afsrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + afsrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + afsrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afsrs.Type = typeVar + } + } + } + + return nil +} + +// AzureFileStorageWriteSettings azure File Storage write settings. +type AzureFileStorageWriteSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) MarshalJSON() ([]byte, error) { + afsws.Type = TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings + objectMap := make(map[string]interface{}) + if afsws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = afsws.MaxConcurrentConnections + } + if afsws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = afsws.DisableMetricsCollection + } + if afsws.CopyBehavior != nil { + objectMap["copyBehavior"] = afsws.CopyBehavior + } + if afsws.Metadata != nil { + objectMap["metadata"] = afsws.Metadata + } + if afsws.Type != "" { + objectMap["type"] = afsws.Type + } + for k, v := range afsws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { + return nil, false +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return &afsws, true +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. +func (afsws AzureFileStorageWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &afsws, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureFileStorageWriteSettings struct. +func (afsws *AzureFileStorageWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if afsws.AdditionalProperties == nil { + afsws.AdditionalProperties = make(map[string]interface{}) + } + afsws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + afsws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + afsws.DisableMetricsCollection = disableMetricsCollection + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + afsws.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + afsws.Metadata = &metadata + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afsws.Type = typeVar + } + } + } + + return nil +} + +// AzureFunctionActivity azure Function activity. +type AzureFunctionActivity struct { + // AzureFunctionActivityTypeProperties - Azure Function activity properties. + *AzureFunctionActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFunctionActivity. +func (afa AzureFunctionActivity) MarshalJSON() ([]byte, error) { + afa.Type = TypeBasicActivityTypeAzureFunctionActivity + objectMap := make(map[string]interface{}) + if afa.AzureFunctionActivityTypeProperties != nil { + objectMap["typeProperties"] = afa.AzureFunctionActivityTypeProperties + } + if afa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = afa.LinkedServiceName + } + if afa.Policy != nil { + objectMap["policy"] = afa.Policy + } + if afa.Name != nil { + objectMap["name"] = afa.Name + } + if afa.Description != nil { + objectMap["description"] = afa.Description + } + if afa.State != "" { + objectMap["state"] = afa.State + } + if afa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = afa.OnInactiveMarkAs + } + if afa.DependsOn != nil { + objectMap["dependsOn"] = afa.DependsOn + } + if afa.UserProperties != nil { + objectMap["userProperties"] = afa.UserProperties + } + if afa.Type != "" { + objectMap["type"] = afa.Type + } + for k, v := range afa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return &afa, true +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &afa, true +} + +// AsWebHookActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for AzureFunctionActivity. +func (afa AzureFunctionActivity) AsBasicActivity() (BasicActivity, bool) { + return &afa, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureFunctionActivity struct. +func (afa *AzureFunctionActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureFunctionActivityTypeProperties AzureFunctionActivityTypeProperties + err = json.Unmarshal(*v, &azureFunctionActivityTypeProperties) + if err != nil { + return err + } + afa.AzureFunctionActivityTypeProperties = &azureFunctionActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + afa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + afa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if afa.AdditionalProperties == nil { + afa.AdditionalProperties = make(map[string]interface{}) + } + afa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + afa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + afa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + afa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + afa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + afa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + afa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afa.Type = typeVar + } + } + } + + return nil +} + +// AzureFunctionActivityTypeProperties azure Function activity type properties. +type AzureFunctionActivityTypeProperties struct { + // Method - Rest API method for target endpoint. Possible values include: 'AzureFunctionActivityMethodGET', 'AzureFunctionActivityMethodPOST', 'AzureFunctionActivityMethodPUT', 'AzureFunctionActivityMethodDELETE', 'AzureFunctionActivityMethodOPTIONS', 'AzureFunctionActivityMethodHEAD', 'AzureFunctionActivityMethodTRACE' + Method AzureFunctionActivityMethod `json:"method,omitempty"` + // FunctionName - Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string) + FunctionName interface{} `json:"functionName,omitempty"` + // Headers - 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 map[string]*string `json:"headers"` + // Body - 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"` +} + +// MarshalJSON is the custom marshaler for AzureFunctionActivityTypeProperties. +func (afatp AzureFunctionActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if afatp.Method != "" { + objectMap["method"] = afatp.Method + } + if afatp.FunctionName != nil { + objectMap["functionName"] = afatp.FunctionName + } + if afatp.Headers != nil { + objectMap["headers"] = afatp.Headers + } + if afatp.Body != nil { + objectMap["body"] = afatp.Body + } + return json.Marshal(objectMap) +} + +// AzureFunctionLinkedService azure Function linked service. +type AzureFunctionLinkedService struct { + // AzureFunctionLinkedServiceTypeProperties - Azure Function linked service properties. + *AzureFunctionLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) MarshalJSON() ([]byte, error) { + afls.Type = TypeBasicLinkedServiceTypeAzureFunction + objectMap := make(map[string]interface{}) + if afls.AzureFunctionLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = afls.AzureFunctionLinkedServiceTypeProperties + } + if afls.ConnectVia != nil { + objectMap["connectVia"] = afls.ConnectVia + } + if afls.Description != nil { + objectMap["description"] = afls.Description + } + if afls.Parameters != nil { + objectMap["parameters"] = afls.Parameters + } + if afls.Annotations != nil { + objectMap["annotations"] = afls.Annotations + } + if afls.Type != "" { + objectMap["type"] = afls.Type + } + for k, v := range afls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return &afls, true +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. +func (afls AzureFunctionLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &afls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureFunctionLinkedService struct. +func (afls *AzureFunctionLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureFunctionLinkedServiceTypeProperties AzureFunctionLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureFunctionLinkedServiceTypeProperties) + if err != nil { + return err + } + afls.AzureFunctionLinkedServiceTypeProperties = &azureFunctionLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if afls.AdditionalProperties == nil { + afls.AdditionalProperties = make(map[string]interface{}) + } + afls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + afls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + afls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + afls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + afls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + afls.Type = typeVar + } + } + } + + return nil +} + +// AzureFunctionLinkedServiceTypeProperties azure Function linked service properties. +type AzureFunctionLinkedServiceTypeProperties struct { + // FunctionAppURL - The endpoint of the Azure Function App. URL will be in the format https://.azurewebsites.net. Type: string (or Expression with resultType string). + FunctionAppURL interface{} `json:"functionAppUrl,omitempty"` + // FunctionKey - Function or Host key for Azure Function App. + FunctionKey BasicSecretBase `json:"functionKey,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` + // ResourceID - Allowed token audiences for azure function. Type: string (or Expression with resultType string). + ResourceID interface{} `json:"resourceId,omitempty"` + // Authentication - Type of authentication (Required to specify MSI) used to connect to AzureFunction. Type: string (or Expression with resultType string). + Authentication interface{} `json:"authentication,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureFunctionLinkedServiceTypeProperties struct. +func (aflstp *AzureFunctionLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "functionAppUrl": + if v != nil { + var functionAppURL interface{} + err = json.Unmarshal(*v, &functionAppURL) + if err != nil { + return err + } + aflstp.FunctionAppURL = functionAppURL + } + case "functionKey": + if v != nil { + functionKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + aflstp.FunctionKey = functionKey + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + aflstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + aflstp.Credential = &credential + } + case "resourceId": + if v != nil { + var resourceID interface{} + err = json.Unmarshal(*v, &resourceID) + if err != nil { + return err + } + aflstp.ResourceID = resourceID + } + case "authentication": + if v != nil { + var authentication interface{} + err = json.Unmarshal(*v, &authentication) + if err != nil { + return err + } + aflstp.Authentication = authentication + } + } + } + + return nil +} + +// AzureKeyVaultLinkedService azure Key Vault linked service. +type AzureKeyVaultLinkedService struct { + // AzureKeyVaultLinkedServiceTypeProperties - Azure Key Vault linked service properties. + *AzureKeyVaultLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) MarshalJSON() ([]byte, error) { + akvls.Type = TypeBasicLinkedServiceTypeAzureKeyVault + objectMap := make(map[string]interface{}) + if akvls.AzureKeyVaultLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = akvls.AzureKeyVaultLinkedServiceTypeProperties + } + if akvls.ConnectVia != nil { + objectMap["connectVia"] = akvls.ConnectVia + } + if akvls.Description != nil { + objectMap["description"] = akvls.Description + } + if akvls.Parameters != nil { + objectMap["parameters"] = akvls.Parameters + } + if akvls.Annotations != nil { + objectMap["annotations"] = akvls.Annotations + } + if akvls.Type != "" { + objectMap["type"] = akvls.Type + } + for k, v := range akvls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return &akvls, true +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. +func (akvls AzureKeyVaultLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &akvls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureKeyVaultLinkedService struct. +func (akvls *AzureKeyVaultLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureKeyVaultLinkedServiceTypeProperties AzureKeyVaultLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureKeyVaultLinkedServiceTypeProperties) + if err != nil { + return err + } + akvls.AzureKeyVaultLinkedServiceTypeProperties = &azureKeyVaultLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if akvls.AdditionalProperties == nil { + akvls.AdditionalProperties = make(map[string]interface{}) + } + akvls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + akvls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + akvls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + akvls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + akvls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + akvls.Type = typeVar + } + } + } + + return nil +} + +// AzureKeyVaultLinkedServiceTypeProperties azure Key Vault linked service properties. +type AzureKeyVaultLinkedServiceTypeProperties struct { + // BaseURL - 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"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// AzureKeyVaultSecretReference azure Key Vault secret reference. +type AzureKeyVaultSecretReference struct { + // Store - The Azure Key Vault linked service reference. + Store *LinkedServiceReference `json:"store,omitempty"` + // SecretName - The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). + SecretName interface{} `json:"secretName,omitempty"` + // SecretVersion - 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"` + // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' + Type Type `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureKeyVaultSecretReference. +func (akvsr AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error) { + akvsr.Type = TypeAzureKeyVaultSecret + objectMap := make(map[string]interface{}) + if akvsr.Store != nil { + objectMap["store"] = akvsr.Store + } + if akvsr.SecretName != nil { + objectMap["secretName"] = akvsr.SecretName + } + if akvsr.SecretVersion != nil { + objectMap["secretVersion"] = akvsr.SecretVersion + } + if akvsr.Type != "" { + objectMap["type"] = akvsr.Type + } + return json.Marshal(objectMap) +} + +// AsSecureString is the BasicSecretBase implementation for AzureKeyVaultSecretReference. +func (akvsr AzureKeyVaultSecretReference) AsSecureString() (*SecureString, bool) { + return nil, false +} + +// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for AzureKeyVaultSecretReference. +func (akvsr AzureKeyVaultSecretReference) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { + return &akvsr, true +} + +// AsSecretBase is the BasicSecretBase implementation for AzureKeyVaultSecretReference. +func (akvsr AzureKeyVaultSecretReference) AsSecretBase() (*SecretBase, bool) { + return nil, false +} + +// AsBasicSecretBase is the BasicSecretBase implementation for AzureKeyVaultSecretReference. +func (akvsr AzureKeyVaultSecretReference) AsBasicSecretBase() (BasicSecretBase, bool) { + return &akvsr, true +} + +// AzureMLBatchExecutionActivity azure ML Batch Execution activity. +type AzureMLBatchExecutionActivity struct { + // AzureMLBatchExecutionActivityTypeProperties - Azure ML Batch Execution activity properties. + *AzureMLBatchExecutionActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error) { + ambea.Type = TypeBasicActivityTypeAzureMLBatchExecution + objectMap := make(map[string]interface{}) + if ambea.AzureMLBatchExecutionActivityTypeProperties != nil { + objectMap["typeProperties"] = ambea.AzureMLBatchExecutionActivityTypeProperties + } + if ambea.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ambea.LinkedServiceName + } + if ambea.Policy != nil { + objectMap["policy"] = ambea.Policy + } + if ambea.Name != nil { + objectMap["name"] = ambea.Name + } + if ambea.Description != nil { + objectMap["description"] = ambea.Description + } + if ambea.State != "" { + objectMap["state"] = ambea.State + } + if ambea.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ambea.OnInactiveMarkAs + } + if ambea.DependsOn != nil { + objectMap["dependsOn"] = ambea.DependsOn + } + if ambea.UserProperties != nil { + objectMap["userProperties"] = ambea.UserProperties + } + if ambea.Type != "" { + objectMap["type"] = ambea.Type + } + for k, v := range ambea.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return &ambea, true +} + +// AsGetMetadataActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ambea, true +} + +// AsWebHookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. +func (ambea AzureMLBatchExecutionActivity) AsBasicActivity() (BasicActivity, bool) { + return &ambea, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLBatchExecutionActivity struct. +func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMLBatchExecutionActivityTypeProperties AzureMLBatchExecutionActivityTypeProperties + err = json.Unmarshal(*v, &azureMLBatchExecutionActivityTypeProperties) + if err != nil { + return err + } + ambea.AzureMLBatchExecutionActivityTypeProperties = &azureMLBatchExecutionActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ambea.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ambea.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ambea.AdditionalProperties == nil { + ambea.AdditionalProperties = make(map[string]interface{}) + } + ambea.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ambea.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ambea.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ambea.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ambea.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ambea.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ambea.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ambea.Type = typeVar + } + } + } + + return nil +} + +// AzureMLBatchExecutionActivityTypeProperties azure ML Batch Execution activity properties. +type AzureMLBatchExecutionActivityTypeProperties struct { + // GlobalParameters - 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"` + // WebServiceOutputs - 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"` + // WebServiceInputs - 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"` +} + +// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivityTypeProperties. +func (ambeatp AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ambeatp.GlobalParameters != nil { + objectMap["globalParameters"] = ambeatp.GlobalParameters + } + if ambeatp.WebServiceOutputs != nil { + objectMap["webServiceOutputs"] = ambeatp.WebServiceOutputs + } + if ambeatp.WebServiceInputs != nil { + objectMap["webServiceInputs"] = ambeatp.WebServiceInputs + } + return json.Marshal(objectMap) +} + +// AzureMLExecutePipelineActivity azure ML Execute Pipeline activity. +type AzureMLExecutePipelineActivity struct { + // AzureMLExecutePipelineActivityTypeProperties - Azure ML Execute Pipeline activity properties. + *AzureMLExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) { + amepa.Type = TypeBasicActivityTypeAzureMLExecutePipeline + objectMap := make(map[string]interface{}) + if amepa.AzureMLExecutePipelineActivityTypeProperties != nil { + objectMap["typeProperties"] = amepa.AzureMLExecutePipelineActivityTypeProperties + } + if amepa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = amepa.LinkedServiceName + } + if amepa.Policy != nil { + objectMap["policy"] = amepa.Policy + } + if amepa.Name != nil { + objectMap["name"] = amepa.Name + } + if amepa.Description != nil { + objectMap["description"] = amepa.Description + } + if amepa.State != "" { + objectMap["state"] = amepa.State + } + if amepa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = amepa.OnInactiveMarkAs + } + if amepa.DependsOn != nil { + objectMap["dependsOn"] = amepa.DependsOn + } + if amepa.UserProperties != nil { + objectMap["userProperties"] = amepa.UserProperties + } + if amepa.Type != "" { + objectMap["type"] = amepa.Type + } + for k, v := range amepa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return &amepa, true +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &amepa, true +} + +// AsWebHookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. +func (amepa AzureMLExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { + return &amepa, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLExecutePipelineActivity struct. +func (amepa *AzureMLExecutePipelineActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMLExecutePipelineActivityTypeProperties AzureMLExecutePipelineActivityTypeProperties + err = json.Unmarshal(*v, &azureMLExecutePipelineActivityTypeProperties) + if err != nil { + return err + } + amepa.AzureMLExecutePipelineActivityTypeProperties = &azureMLExecutePipelineActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + amepa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + amepa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amepa.AdditionalProperties == nil { + amepa.AdditionalProperties = make(map[string]interface{}) + } + amepa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + amepa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amepa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + amepa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + amepa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + amepa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + amepa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amepa.Type = typeVar + } + } + } + + return nil +} + +// AzureMLExecutePipelineActivityTypeProperties azure ML Execute Pipeline activity properties. +type AzureMLExecutePipelineActivityTypeProperties struct { + // MlPipelineID - ID of the published Azure ML pipeline. Type: string (or Expression with resultType string). + MlPipelineID interface{} `json:"mlPipelineId,omitempty"` + // MlPipelineEndpointID - ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). + MlPipelineEndpointID interface{} `json:"mlPipelineEndpointId,omitempty"` + // Version - Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // ExperimentName - 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"` + // MlPipelineParameters - 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"` + // DataPathAssignments - 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 (or Expression with resultType object). + DataPathAssignments interface{} `json:"dataPathAssignments,omitempty"` + // MlParentRunID - 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"` + // ContinueOnStepFailure - 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"` +} + +// AzureMLLinkedService azure ML Studio Web Service linked service. +type AzureMLLinkedService struct { + // AzureMLLinkedServiceTypeProperties - Azure ML Studio Web Service linked service properties. + *AzureMLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMLLinkedService. +func (amls AzureMLLinkedService) MarshalJSON() ([]byte, error) { + amls.Type = TypeBasicLinkedServiceTypeAzureML + objectMap := make(map[string]interface{}) + if amls.AzureMLLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = amls.AzureMLLinkedServiceTypeProperties + } + if amls.ConnectVia != nil { + objectMap["connectVia"] = amls.ConnectVia + } + if amls.Description != nil { + objectMap["description"] = amls.Description + } + if amls.Parameters != nil { + objectMap["parameters"] = amls.Parameters + } + if amls.Annotations != nil { + objectMap["annotations"] = amls.Annotations + } + if amls.Type != "" { + objectMap["type"] = amls.Type + } + for k, v := range amls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return &amls, true +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. +func (amls AzureMLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &amls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedService struct. +func (amls *AzureMLLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMLLinkedServiceTypeProperties AzureMLLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureMLLinkedServiceTypeProperties) + if err != nil { + return err + } + amls.AzureMLLinkedServiceTypeProperties = &azureMLLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amls.AdditionalProperties == nil { + amls.AdditionalProperties = make(map[string]interface{}) + } + amls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + amls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amls.Type = typeVar + } + } + } + + return nil +} + +// AzureMLLinkedServiceTypeProperties azure ML Studio Web Service linked service properties. +type AzureMLLinkedServiceTypeProperties struct { + // MlEndpoint - 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"` + // APIKey - The API key for accessing the Azure ML model endpoint. + APIKey BasicSecretBase `json:"apiKey,omitempty"` + // UpdateResourceEndpoint - 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"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Authentication - Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). + Authentication interface{} `json:"authentication,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedServiceTypeProperties struct. +func (amlstp *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "mlEndpoint": + if v != nil { + var mlEndpoint interface{} + err = json.Unmarshal(*v, &mlEndpoint) + if err != nil { + return err + } + amlstp.MlEndpoint = mlEndpoint + } + case "apiKey": + if v != nil { + APIKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + amlstp.APIKey = APIKey + } + case "updateResourceEndpoint": + if v != nil { + var updateResourceEndpoint interface{} + err = json.Unmarshal(*v, &updateResourceEndpoint) + if err != nil { + return err + } + amlstp.UpdateResourceEndpoint = updateResourceEndpoint + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + amlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + amlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + amlstp.Tenant = tenant + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + amlstp.EncryptedCredential = &encryptedCredential + } + case "authentication": + if v != nil { + var authentication interface{} + err = json.Unmarshal(*v, &authentication) + if err != nil { + return err + } + amlstp.Authentication = authentication + } + } + } + + return nil +} + +// AzureMLServiceLinkedService azure ML Service linked service. +type AzureMLServiceLinkedService struct { + // AzureMLServiceLinkedServiceTypeProperties - Azure ML Service linked service properties. + *AzureMLServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) MarshalJSON() ([]byte, error) { + amsls.Type = TypeBasicLinkedServiceTypeAzureMLService + objectMap := make(map[string]interface{}) + if amsls.AzureMLServiceLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = amsls.AzureMLServiceLinkedServiceTypeProperties + } + if amsls.ConnectVia != nil { + objectMap["connectVia"] = amsls.ConnectVia + } + if amsls.Description != nil { + objectMap["description"] = amsls.Description + } + if amsls.Parameters != nil { + objectMap["parameters"] = amsls.Parameters + } + if amsls.Annotations != nil { + objectMap["annotations"] = amsls.Annotations + } + if amsls.Type != "" { + objectMap["type"] = amsls.Type + } + for k, v := range amsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return &amsls, true +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. +func (amsls AzureMLServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &amsls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedService struct. +func (amsls *AzureMLServiceLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMLServiceLinkedServiceTypeProperties AzureMLServiceLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureMLServiceLinkedServiceTypeProperties) + if err != nil { + return err + } + amsls.AzureMLServiceLinkedServiceTypeProperties = &azureMLServiceLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amsls.AdditionalProperties == nil { + amsls.AdditionalProperties = make(map[string]interface{}) + } + amsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + amsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amsls.Type = typeVar + } + } + } + + return nil +} + +// AzureMLServiceLinkedServiceTypeProperties azure ML Service linked service properties. +type AzureMLServiceLinkedServiceTypeProperties struct { + // SubscriptionID - Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). + SubscriptionID interface{} `json:"subscriptionId,omitempty"` + // ResourceGroupName - Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). + ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + // MlWorkspaceName - Azure ML Service workspace name. Type: string (or Expression with resultType string). + MlWorkspaceName interface{} `json:"mlWorkspaceName,omitempty"` + // Authentication - Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). + Authentication interface{} `json:"authentication,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedServiceTypeProperties struct. +func (amslstp *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "subscriptionId": + if v != nil { + var subscriptionID interface{} + err = json.Unmarshal(*v, &subscriptionID) + if err != nil { + return err + } + amslstp.SubscriptionID = subscriptionID + } + case "resourceGroupName": + if v != nil { + var resourceGroupName interface{} + err = json.Unmarshal(*v, &resourceGroupName) + if err != nil { + return err + } + amslstp.ResourceGroupName = resourceGroupName + } + case "mlWorkspaceName": + if v != nil { + var mlWorkspaceName interface{} + err = json.Unmarshal(*v, &mlWorkspaceName) + if err != nil { + return err + } + amslstp.MlWorkspaceName = mlWorkspaceName + } + case "authentication": + if v != nil { + var authentication interface{} + err = json.Unmarshal(*v, &authentication) + if err != nil { + return err + } + amslstp.Authentication = authentication + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + amslstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + amslstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + amslstp.Tenant = tenant + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + amslstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AzureMLUpdateResourceActivity azure ML Update Resource management activity. +type AzureMLUpdateResourceActivity struct { + // AzureMLUpdateResourceActivityTypeProperties - Azure ML Update Resource management activity properties. + *AzureMLUpdateResourceActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error) { + amura.Type = TypeBasicActivityTypeAzureMLUpdateResource + objectMap := make(map[string]interface{}) + if amura.AzureMLUpdateResourceActivityTypeProperties != nil { + objectMap["typeProperties"] = amura.AzureMLUpdateResourceActivityTypeProperties + } + if amura.LinkedServiceName != nil { + objectMap["linkedServiceName"] = amura.LinkedServiceName + } + if amura.Policy != nil { + objectMap["policy"] = amura.Policy + } + if amura.Name != nil { + objectMap["name"] = amura.Name + } + if amura.Description != nil { + objectMap["description"] = amura.Description + } + if amura.State != "" { + objectMap["state"] = amura.State + } + if amura.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = amura.OnInactiveMarkAs + } + if amura.DependsOn != nil { + objectMap["dependsOn"] = amura.DependsOn + } + if amura.UserProperties != nil { + objectMap["userProperties"] = amura.UserProperties + } + if amura.Type != "" { + objectMap["type"] = amura.Type + } + for k, v := range amura.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return &amura, true +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &amura, true +} + +// AsWebHookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. +func (amura AzureMLUpdateResourceActivity) AsBasicActivity() (BasicActivity, bool) { + return &amura, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMLUpdateResourceActivity struct. +func (amura *AzureMLUpdateResourceActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMLUpdateResourceActivityTypeProperties AzureMLUpdateResourceActivityTypeProperties + err = json.Unmarshal(*v, &azureMLUpdateResourceActivityTypeProperties) + if err != nil { + return err + } + amura.AzureMLUpdateResourceActivityTypeProperties = &azureMLUpdateResourceActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + amura.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + amura.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amura.AdditionalProperties == nil { + amura.AdditionalProperties = make(map[string]interface{}) + } + amura.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + amura.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amura.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + amura.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + amura.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + amura.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + amura.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amura.Type = typeVar + } + } + } + + return nil +} + +// AzureMLUpdateResourceActivityTypeProperties azure ML Update Resource activity properties. +type AzureMLUpdateResourceActivityTypeProperties struct { + // TrainedModelName - 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"` + // TrainedModelLinkedServiceName - Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. + TrainedModelLinkedServiceName *LinkedServiceReference `json:"trainedModelLinkedServiceName,omitempty"` + // TrainedModelFilePath - 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"` +} + +// AzureMLWebServiceFile azure ML WebService Input/Output file +type AzureMLWebServiceFile struct { + // FilePath - 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"` + // LinkedServiceName - Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` +} + +// AzureMariaDBLinkedService azure Database for MariaDB linked service. +type AzureMariaDBLinkedService struct { + // AzureMariaDBLinkedServiceTypeProperties - Azure Database for MariaDB linked service properties. + *AzureMariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) MarshalJSON() ([]byte, error) { + amdls.Type = TypeBasicLinkedServiceTypeAzureMariaDB + objectMap := make(map[string]interface{}) + if amdls.AzureMariaDBLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = amdls.AzureMariaDBLinkedServiceTypeProperties + } + if amdls.ConnectVia != nil { + objectMap["connectVia"] = amdls.ConnectVia + } + if amdls.Description != nil { + objectMap["description"] = amdls.Description + } + if amdls.Parameters != nil { + objectMap["parameters"] = amdls.Parameters + } + if amdls.Annotations != nil { + objectMap["annotations"] = amdls.Annotations + } + if amdls.Type != "" { + objectMap["type"] = amdls.Type + } + for k, v := range amdls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return &amdls, true +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. +func (amdls AzureMariaDBLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &amdls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMariaDBLinkedService struct. +func (amdls *AzureMariaDBLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMariaDBLinkedServiceTypeProperties AzureMariaDBLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureMariaDBLinkedServiceTypeProperties) + if err != nil { + return err + } + amdls.AzureMariaDBLinkedServiceTypeProperties = &azureMariaDBLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amdls.AdditionalProperties == nil { + amdls.AdditionalProperties = make(map[string]interface{}) + } + amdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + amdls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amdls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amdls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amdls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amdls.Type = typeVar + } + } + } + + return nil +} + +// AzureMariaDBLinkedServiceTypeProperties azure Database for MariaDB linked service properties. +type AzureMariaDBLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Pwd - The Azure key vault secret reference of password in connection string. + Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// AzureMariaDBSource a copy activity Azure MariaDB source. +type AzureMariaDBSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMariaDBSource. +func (amds AzureMariaDBSource) MarshalJSON() ([]byte, error) { + amds.Type = TypeBasicCopySourceTypeAzureMariaDBSource + objectMap := make(map[string]interface{}) + if amds.Query != nil { + objectMap["query"] = amds.Query + } + if amds.QueryTimeout != nil { + objectMap["queryTimeout"] = amds.QueryTimeout + } + if amds.AdditionalColumns != nil { + objectMap["additionalColumns"] = amds.AdditionalColumns + } + if amds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = amds.SourceRetryCount + } + if amds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = amds.SourceRetryWait + } + if amds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = amds.MaxConcurrentConnections + } + if amds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = amds.DisableMetricsCollection + } + if amds.Type != "" { + objectMap["type"] = amds.Type + } + for k, v := range amds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return &amds, true +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &amds, true +} + +// AsBinarySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureMariaDBSource. +func (amds AzureMariaDBSource) AsBasicCopySource() (BasicCopySource, bool) { + return &amds, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMariaDBSource struct. +func (amds *AzureMariaDBSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + amds.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + amds.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + amds.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amds.AdditionalProperties == nil { + amds.AdditionalProperties = make(map[string]interface{}) + } + amds.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + amds.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + amds.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + amds.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + amds.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amds.Type = typeVar + } + } + } + + return nil +} + +// AzureMariaDBTableDataset azure Database for MariaDB dataset. +type AzureMariaDBTableDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) MarshalJSON() ([]byte, error) { + amdtd.Type = TypeBasicDatasetTypeAzureMariaDBTable + objectMap := make(map[string]interface{}) + if amdtd.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = amdtd.GenericDatasetTypeProperties + } + if amdtd.Description != nil { + objectMap["description"] = amdtd.Description + } + if amdtd.Structure != nil { + objectMap["structure"] = amdtd.Structure + } + if amdtd.Schema != nil { + objectMap["schema"] = amdtd.Schema + } + if amdtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = amdtd.LinkedServiceName + } + if amdtd.Parameters != nil { + objectMap["parameters"] = amdtd.Parameters + } + if amdtd.Annotations != nil { + objectMap["annotations"] = amdtd.Annotations + } + if amdtd.Folder != nil { + objectMap["folder"] = amdtd.Folder + } + if amdtd.Type != "" { + objectMap["type"] = amdtd.Type + } + for k, v := range amdtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return &amdtd, true +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureMariaDBTableDataset. +func (amdtd AzureMariaDBTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &amdtd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMariaDBTableDataset struct. +func (amdtd *AzureMariaDBTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + amdtd.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amdtd.AdditionalProperties == nil { + amdtd.AdditionalProperties = make(map[string]interface{}) + } + amdtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amdtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + amdtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + amdtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + amdtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amdtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amdtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + amdtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amdtd.Type = typeVar + } + } + } + + return nil +} + +// AzureMySQLLinkedService azure MySQL database linked service. +type AzureMySQLLinkedService struct { + // AzureMySQLLinkedServiceTypeProperties - Azure MySQL database linked service properties. + *AzureMySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) MarshalJSON() ([]byte, error) { + amsls.Type = TypeBasicLinkedServiceTypeAzureMySQL + objectMap := make(map[string]interface{}) + if amsls.AzureMySQLLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = amsls.AzureMySQLLinkedServiceTypeProperties + } + if amsls.ConnectVia != nil { + objectMap["connectVia"] = amsls.ConnectVia + } + if amsls.Description != nil { + objectMap["description"] = amsls.Description + } + if amsls.Parameters != nil { + objectMap["parameters"] = amsls.Parameters + } + if amsls.Annotations != nil { + objectMap["annotations"] = amsls.Annotations + } + if amsls.Type != "" { + objectMap["type"] = amsls.Type + } + for k, v := range amsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return &amsls, true +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. +func (amsls AzureMySQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &amsls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMySQLLinkedService struct. +func (amsls *AzureMySQLLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMySQLLinkedServiceTypeProperties AzureMySQLLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureMySQLLinkedServiceTypeProperties) + if err != nil { + return err + } + amsls.AzureMySQLLinkedServiceTypeProperties = &azureMySQLLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amsls.AdditionalProperties == nil { + amsls.AdditionalProperties = make(map[string]interface{}) + } + amsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + amsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amsls.Type = typeVar + } + } + } + + return nil +} + +// AzureMySQLLinkedServiceTypeProperties azure MySQL database linked service properties. +type AzureMySQLLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// AzureMySQLSink a copy activity Azure MySql sink. +type AzureMySQLSink struct { + // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMySQLSink. +func (amss AzureMySQLSink) MarshalJSON() ([]byte, error) { + amss.Type = TypeBasicCopySinkTypeAzureMySQLSink + objectMap := make(map[string]interface{}) + if amss.PreCopyScript != nil { + objectMap["preCopyScript"] = amss.PreCopyScript + } + if amss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = amss.WriteBatchSize + } + if amss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = amss.WriteBatchTimeout + } + if amss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = amss.SinkRetryCount + } + if amss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = amss.SinkRetryWait + } + if amss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = amss.MaxConcurrentConnections + } + if amss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = amss.DisableMetricsCollection + } + if amss.Type != "" { + objectMap["type"] = amss.Type + } + for k, v := range amss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return &amss, true +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureMySQLSink. +func (amss AzureMySQLSink) AsBasicCopySink() (BasicCopySink, bool) { + return &amss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMySQLSink struct. +func (amss *AzureMySQLSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + amss.PreCopyScript = preCopyScript + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amss.AdditionalProperties == nil { + amss.AdditionalProperties = make(map[string]interface{}) + } + amss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + amss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + amss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + amss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + amss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + amss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + amss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amss.Type = typeVar + } + } + } + + return nil +} + +// AzureMySQLSource a copy activity Azure MySQL source. +type AzureMySQLSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMySQLSource. +func (amss AzureMySQLSource) MarshalJSON() ([]byte, error) { + amss.Type = TypeBasicCopySourceTypeAzureMySQLSource + objectMap := make(map[string]interface{}) + if amss.Query != nil { + objectMap["query"] = amss.Query + } + if amss.QueryTimeout != nil { + objectMap["queryTimeout"] = amss.QueryTimeout + } + if amss.AdditionalColumns != nil { + objectMap["additionalColumns"] = amss.AdditionalColumns + } + if amss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = amss.SourceRetryCount + } + if amss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = amss.SourceRetryWait + } + if amss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = amss.MaxConcurrentConnections + } + if amss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = amss.DisableMetricsCollection + } + if amss.Type != "" { + objectMap["type"] = amss.Type + } + for k, v := range amss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return &amss, true +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &amss, true +} + +// AsBinarySource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureMySQLSource. +func (amss AzureMySQLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &amss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMySQLSource struct. +func (amss *AzureMySQLSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + amss.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + amss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + amss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amss.AdditionalProperties == nil { + amss.AdditionalProperties = make(map[string]interface{}) + } + amss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + amss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + amss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + amss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + amss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amss.Type = typeVar + } + } + } + + return nil +} + +// AzureMySQLTableDataset the Azure MySQL database dataset. +type AzureMySQLTableDataset struct { + // AzureMySQLTableDatasetTypeProperties - Azure MySQL database dataset properties. + *AzureMySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) MarshalJSON() ([]byte, error) { + amstd.Type = TypeBasicDatasetTypeAzureMySQLTable + objectMap := make(map[string]interface{}) + if amstd.AzureMySQLTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = amstd.AzureMySQLTableDatasetTypeProperties + } + if amstd.Description != nil { + objectMap["description"] = amstd.Description + } + if amstd.Structure != nil { + objectMap["structure"] = amstd.Structure + } + if amstd.Schema != nil { + objectMap["schema"] = amstd.Schema + } + if amstd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = amstd.LinkedServiceName + } + if amstd.Parameters != nil { + objectMap["parameters"] = amstd.Parameters + } + if amstd.Annotations != nil { + objectMap["annotations"] = amstd.Annotations + } + if amstd.Folder != nil { + objectMap["folder"] = amstd.Folder + } + if amstd.Type != "" { + objectMap["type"] = amstd.Type + } + for k, v := range amstd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return &amstd, true +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureMySQLTableDataset. +func (amstd AzureMySQLTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &amstd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureMySQLTableDataset struct. +func (amstd *AzureMySQLTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureMySQLTableDatasetTypeProperties AzureMySQLTableDatasetTypeProperties + err = json.Unmarshal(*v, &azureMySQLTableDatasetTypeProperties) + if err != nil { + return err + } + amstd.AzureMySQLTableDatasetTypeProperties = &azureMySQLTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if amstd.AdditionalProperties == nil { + amstd.AdditionalProperties = make(map[string]interface{}) + } + amstd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + amstd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + amstd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + amstd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + amstd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + amstd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + amstd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + amstd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + amstd.Type = typeVar + } + } + } + + return nil +} + +// AzureMySQLTableDatasetTypeProperties azure MySQL database dataset properties. +type AzureMySQLTableDatasetTypeProperties struct { + // TableName - The Azure MySQL database table name. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` + // Table - The name of Azure MySQL database table. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// AzurePostgreSQLLinkedService azure PostgreSQL linked service. +type AzurePostgreSQLLinkedService struct { + // AzurePostgreSQLLinkedServiceTypeProperties - Azure PostgreSQL linked service properties. + *AzurePostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) MarshalJSON() ([]byte, error) { + apsls.Type = TypeBasicLinkedServiceTypeAzurePostgreSQL + objectMap := make(map[string]interface{}) + if apsls.AzurePostgreSQLLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = apsls.AzurePostgreSQLLinkedServiceTypeProperties + } + if apsls.ConnectVia != nil { + objectMap["connectVia"] = apsls.ConnectVia + } + if apsls.Description != nil { + objectMap["description"] = apsls.Description + } + if apsls.Parameters != nil { + objectMap["parameters"] = apsls.Parameters + } + if apsls.Annotations != nil { + objectMap["annotations"] = apsls.Annotations + } + if apsls.Type != "" { + objectMap["type"] = apsls.Type + } + for k, v := range apsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return &apsls, true +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. +func (apsls AzurePostgreSQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &apsls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLLinkedService struct. +func (apsls *AzurePostgreSQLLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azurePostgreSQLLinkedServiceTypeProperties AzurePostgreSQLLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azurePostgreSQLLinkedServiceTypeProperties) + if err != nil { + return err + } + apsls.AzurePostgreSQLLinkedServiceTypeProperties = &azurePostgreSQLLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if apsls.AdditionalProperties == nil { + apsls.AdditionalProperties = make(map[string]interface{}) + } + apsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + apsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + apsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + apsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + apsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + apsls.Type = typeVar + } + } + } + + return nil +} + +// AzurePostgreSQLLinkedServiceTypeProperties azure PostgreSQL linked service properties. +type AzurePostgreSQLLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// AzurePostgreSQLSink a copy activity Azure PostgreSQL sink. +type AzurePostgreSQLSink struct { + // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) MarshalJSON() ([]byte, error) { + apss.Type = TypeBasicCopySinkTypeAzurePostgreSQLSink + objectMap := make(map[string]interface{}) + if apss.PreCopyScript != nil { + objectMap["preCopyScript"] = apss.PreCopyScript + } + if apss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = apss.WriteBatchSize + } + if apss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = apss.WriteBatchTimeout + } + if apss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = apss.SinkRetryCount + } + if apss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = apss.SinkRetryWait + } + if apss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = apss.MaxConcurrentConnections + } + if apss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = apss.DisableMetricsCollection + } + if apss.Type != "" { + objectMap["type"] = apss.Type + } + for k, v := range apss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return &apss, true +} + +// AsRestSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzurePostgreSQLSink. +func (apss AzurePostgreSQLSink) AsBasicCopySink() (BasicCopySink, bool) { + return &apss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLSink struct. +func (apss *AzurePostgreSQLSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + apss.PreCopyScript = preCopyScript + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if apss.AdditionalProperties == nil { + apss.AdditionalProperties = make(map[string]interface{}) + } + apss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + apss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + apss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + apss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + apss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + apss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + apss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + apss.Type = typeVar + } + } + } + + return nil +} + +// AzurePostgreSQLSource a copy activity Azure PostgreSQL source. +type AzurePostgreSQLSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) MarshalJSON() ([]byte, error) { + apss.Type = TypeBasicCopySourceTypeAzurePostgreSQLSource + objectMap := make(map[string]interface{}) + if apss.Query != nil { + objectMap["query"] = apss.Query + } + if apss.QueryTimeout != nil { + objectMap["queryTimeout"] = apss.QueryTimeout + } + if apss.AdditionalColumns != nil { + objectMap["additionalColumns"] = apss.AdditionalColumns + } + if apss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = apss.SourceRetryCount + } + if apss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = apss.SourceRetryWait + } + if apss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = apss.MaxConcurrentConnections + } + if apss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = apss.DisableMetricsCollection + } + if apss.Type != "" { + objectMap["type"] = apss.Type + } + for k, v := range apss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return &apss, true +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &apss, true +} + +// AsBinarySource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzurePostgreSQLSource. +func (apss AzurePostgreSQLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &apss, true +} + +// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLSource struct. +func (apss *AzurePostgreSQLSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + apss.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + apss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + apss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if apss.AdditionalProperties == nil { + apss.AdditionalProperties = make(map[string]interface{}) + } + apss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + apss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + apss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + apss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + apss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + apss.Type = typeVar + } + } + } + + return nil +} + +// AzurePostgreSQLTableDataset azure PostgreSQL dataset. +type AzurePostgreSQLTableDataset struct { + // AzurePostgreSQLTableDatasetTypeProperties - Properties specific to this dataset type. + *AzurePostgreSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) MarshalJSON() ([]byte, error) { + apstd.Type = TypeBasicDatasetTypeAzurePostgreSQLTable + objectMap := make(map[string]interface{}) + if apstd.AzurePostgreSQLTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = apstd.AzurePostgreSQLTableDatasetTypeProperties + } + if apstd.Description != nil { + objectMap["description"] = apstd.Description + } + if apstd.Structure != nil { + objectMap["structure"] = apstd.Structure + } + if apstd.Schema != nil { + objectMap["schema"] = apstd.Schema + } + if apstd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = apstd.LinkedServiceName + } + if apstd.Parameters != nil { + objectMap["parameters"] = apstd.Parameters + } + if apstd.Annotations != nil { + objectMap["annotations"] = apstd.Annotations + } + if apstd.Folder != nil { + objectMap["folder"] = apstd.Folder + } + if apstd.Type != "" { + objectMap["type"] = apstd.Type + } + for k, v := range apstd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return &apstd, true +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. +func (apstd AzurePostgreSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &apstd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLTableDataset struct. +func (apstd *AzurePostgreSQLTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azurePostgreSQLTableDatasetTypeProperties AzurePostgreSQLTableDatasetTypeProperties + err = json.Unmarshal(*v, &azurePostgreSQLTableDatasetTypeProperties) + if err != nil { + return err + } + apstd.AzurePostgreSQLTableDatasetTypeProperties = &azurePostgreSQLTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if apstd.AdditionalProperties == nil { + apstd.AdditionalProperties = make(map[string]interface{}) + } + apstd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + apstd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + apstd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + apstd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + apstd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + apstd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + apstd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + apstd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + apstd.Type = typeVar + } + } + } + + return nil +} + +// AzurePostgreSQLTableDatasetTypeProperties azure PostgreSQL dataset properties. +type AzurePostgreSQLTableDatasetTypeProperties struct { + // TableName - 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"` + // Table - The table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// AzureQueueSink a copy activity Azure Queue sink. +type AzureQueueSink struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureQueueSink. +func (aqs AzureQueueSink) MarshalJSON() ([]byte, error) { + aqs.Type = TypeBasicCopySinkTypeAzureQueueSink + objectMap := make(map[string]interface{}) + if aqs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = aqs.WriteBatchSize + } + if aqs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = aqs.WriteBatchTimeout + } + if aqs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = aqs.SinkRetryCount + } + if aqs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = aqs.SinkRetryWait + } + if aqs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = aqs.MaxConcurrentConnections + } + if aqs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = aqs.DisableMetricsCollection + } + if aqs.Type != "" { + objectMap["type"] = aqs.Type + } + for k, v := range aqs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return &aqs, true +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureQueueSink. +func (aqs AzureQueueSink) AsBasicCopySink() (BasicCopySink, bool) { + return &aqs, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureQueueSink struct. +func (aqs *AzureQueueSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if aqs.AdditionalProperties == nil { + aqs.AdditionalProperties = make(map[string]interface{}) + } + aqs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + aqs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + aqs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + aqs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + aqs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + aqs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + aqs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + aqs.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLDWLinkedService azure SQL Data Warehouse linked service. +type AzureSQLDWLinkedService struct { + // AzureSQLDWLinkedServiceTypeProperties - Azure SQL Data Warehouse linked service properties. + *AzureSQLDWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) MarshalJSON() ([]byte, error) { + asdls.Type = TypeBasicLinkedServiceTypeAzureSQLDW + objectMap := make(map[string]interface{}) + if asdls.AzureSQLDWLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asdls.AzureSQLDWLinkedServiceTypeProperties + } + if asdls.ConnectVia != nil { + objectMap["connectVia"] = asdls.ConnectVia + } + if asdls.Description != nil { + objectMap["description"] = asdls.Description + } + if asdls.Parameters != nil { + objectMap["parameters"] = asdls.Parameters + } + if asdls.Annotations != nil { + objectMap["annotations"] = asdls.Annotations + } + if asdls.Type != "" { + objectMap["type"] = asdls.Type + } + for k, v := range asdls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return &asdls, true +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. +func (asdls AzureSQLDWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asdls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedService struct. +func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSQLDWLinkedServiceTypeProperties AzureSQLDWLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureSQLDWLinkedServiceTypeProperties) + if err != nil { + return err + } + asdls.AzureSQLDWLinkedServiceTypeProperties = &azureSQLDWLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asdls.AdditionalProperties == nil { + asdls.AdditionalProperties = make(map[string]interface{}) + } + asdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + asdls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asdls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asdls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asdls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asdls.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLDWLinkedServiceTypeProperties azure SQL Data Warehouse linked service properties. +type AzureSQLDWLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Data Warehouse. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // AzureCloudType - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedServiceTypeProperties struct. +func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + asdlstp.ConnectionString = connectionString + } + case "password": + if v != nil { + var password AzureKeyVaultSecretReference + err = json.Unmarshal(*v, &password) + if err != nil { + return err + } + asdlstp.Password = &password + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + asdlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + asdlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + asdlstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + asdlstp.AzureCloudType = azureCloudType + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + asdlstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + asdlstp.Credential = &credential + } + } + } + + return nil +} + +// AzureSQLDWTableDataset the Azure SQL Data Warehouse dataset. +type AzureSQLDWTableDataset struct { + // AzureSQLDWTableDatasetTypeProperties - Azure SQL Data Warehouse dataset properties. + *AzureSQLDWTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) MarshalJSON() ([]byte, error) { + asdtd.Type = TypeBasicDatasetTypeAzureSQLDWTable + objectMap := make(map[string]interface{}) + if asdtd.AzureSQLDWTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = asdtd.AzureSQLDWTableDatasetTypeProperties + } + if asdtd.Description != nil { + objectMap["description"] = asdtd.Description + } + if asdtd.Structure != nil { + objectMap["structure"] = asdtd.Structure + } + if asdtd.Schema != nil { + objectMap["schema"] = asdtd.Schema + } + if asdtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = asdtd.LinkedServiceName + } + if asdtd.Parameters != nil { + objectMap["parameters"] = asdtd.Parameters + } + if asdtd.Annotations != nil { + objectMap["annotations"] = asdtd.Annotations + } + if asdtd.Folder != nil { + objectMap["folder"] = asdtd.Folder + } + if asdtd.Type != "" { + objectMap["type"] = asdtd.Type + } + for k, v := range asdtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return &asdtd, true +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureSQLDWTableDataset. +func (asdtd AzureSQLDWTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &asdtd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLDWTableDataset struct. +func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSQLDWTableDatasetTypeProperties AzureSQLDWTableDatasetTypeProperties + err = json.Unmarshal(*v, &azureSQLDWTableDatasetTypeProperties) + if err != nil { + return err + } + asdtd.AzureSQLDWTableDatasetTypeProperties = &azureSQLDWTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asdtd.AdditionalProperties == nil { + asdtd.AdditionalProperties = make(map[string]interface{}) + } + asdtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asdtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + asdtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + asdtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + asdtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asdtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asdtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + asdtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asdtd.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLDWTableDatasetTypeProperties azure SQL Data Warehouse dataset properties. +type AzureSQLDWTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// AzureSQLDatabaseLinkedService microsoft Azure SQL Database linked service. +type AzureSQLDatabaseLinkedService struct { + // AzureSQLDatabaseLinkedServiceTypeProperties - Azure SQL Database linked service properties. + *AzureSQLDatabaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) MarshalJSON() ([]byte, error) { + asdls.Type = TypeBasicLinkedServiceTypeAzureSQLDatabase + objectMap := make(map[string]interface{}) + if asdls.AzureSQLDatabaseLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asdls.AzureSQLDatabaseLinkedServiceTypeProperties + } + if asdls.ConnectVia != nil { + objectMap["connectVia"] = asdls.ConnectVia + } + if asdls.Description != nil { + objectMap["description"] = asdls.Description + } + if asdls.Parameters != nil { + objectMap["parameters"] = asdls.Parameters + } + if asdls.Annotations != nil { + objectMap["annotations"] = asdls.Annotations + } + if asdls.Type != "" { + objectMap["type"] = asdls.Type + } + for k, v := range asdls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return &asdls, true +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. +func (asdls AzureSQLDatabaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asdls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLDatabaseLinkedService struct. +func (asdls *AzureSQLDatabaseLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSQLDatabaseLinkedServiceTypeProperties AzureSQLDatabaseLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureSQLDatabaseLinkedServiceTypeProperties) + if err != nil { + return err + } + asdls.AzureSQLDatabaseLinkedServiceTypeProperties = &azureSQLDatabaseLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asdls.AdditionalProperties == nil { + asdls.AdditionalProperties = make(map[string]interface{}) + } + asdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + asdls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asdls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asdls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asdls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asdls.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLDatabaseLinkedServiceTypeProperties azure SQL Database linked service properties. +type AzureSQLDatabaseLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Database. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // AzureCloudType - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // AlwaysEncryptedSettings - Sql always encrypted properties. + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLDatabaseLinkedServiceTypeProperties struct. +func (asdlstp *AzureSQLDatabaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + asdlstp.ConnectionString = connectionString + } + case "password": + if v != nil { + var password AzureKeyVaultSecretReference + err = json.Unmarshal(*v, &password) + if err != nil { + return err + } + asdlstp.Password = &password + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + asdlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + asdlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + asdlstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + asdlstp.AzureCloudType = azureCloudType + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + asdlstp.EncryptedCredential = &encryptedCredential + } + case "alwaysEncryptedSettings": + if v != nil { + var alwaysEncryptedSettings SQLAlwaysEncryptedProperties + err = json.Unmarshal(*v, &alwaysEncryptedSettings) + if err != nil { + return err + } + asdlstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + asdlstp.Credential = &credential + } + } + } + + return nil +} + +// AzureSQLMILinkedService azure SQL Managed Instance linked service. +type AzureSQLMILinkedService struct { + // AzureSQLMILinkedServiceTypeProperties - Azure SQL Managed Instance linked service properties. + *AzureSQLMILinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) MarshalJSON() ([]byte, error) { + asmls.Type = TypeBasicLinkedServiceTypeAzureSQLMI + objectMap := make(map[string]interface{}) + if asmls.AzureSQLMILinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asmls.AzureSQLMILinkedServiceTypeProperties + } + if asmls.ConnectVia != nil { + objectMap["connectVia"] = asmls.ConnectVia + } + if asmls.Description != nil { + objectMap["description"] = asmls.Description + } + if asmls.Parameters != nil { + objectMap["parameters"] = asmls.Parameters + } + if asmls.Annotations != nil { + objectMap["annotations"] = asmls.Annotations + } + if asmls.Type != "" { + objectMap["type"] = asmls.Type + } + for k, v := range asmls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return &asmls, true +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. +func (asmls AzureSQLMILinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asmls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLMILinkedService struct. +func (asmls *AzureSQLMILinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSQLMILinkedServiceTypeProperties AzureSQLMILinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureSQLMILinkedServiceTypeProperties) + if err != nil { + return err + } + asmls.AzureSQLMILinkedServiceTypeProperties = &azureSQLMILinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asmls.AdditionalProperties == nil { + asmls.AdditionalProperties = make(map[string]interface{}) + } + asmls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + asmls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asmls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asmls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asmls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asmls.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLMILinkedServiceTypeProperties azure SQL Managed Instance linked service properties. +type AzureSQLMILinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Managed Instance. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // AzureCloudType - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // AlwaysEncryptedSettings - Sql always encrypted properties. + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLMILinkedServiceTypeProperties struct. +func (asmlstp *AzureSQLMILinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + asmlstp.ConnectionString = connectionString + } + case "password": + if v != nil { + var password AzureKeyVaultSecretReference + err = json.Unmarshal(*v, &password) + if err != nil { + return err + } + asmlstp.Password = &password + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + asmlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + asmlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + asmlstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + asmlstp.AzureCloudType = azureCloudType + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + asmlstp.EncryptedCredential = &encryptedCredential + } + case "alwaysEncryptedSettings": + if v != nil { + var alwaysEncryptedSettings SQLAlwaysEncryptedProperties + err = json.Unmarshal(*v, &alwaysEncryptedSettings) + if err != nil { + return err + } + asmlstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + asmlstp.Credential = &credential + } + } + } + + return nil +} + +// AzureSQLMITableDataset the Azure SQL Managed Instance dataset. +type AzureSQLMITableDataset struct { + // AzureSQLMITableDatasetTypeProperties - Azure SQL Managed Instance dataset properties. + *AzureSQLMITableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) MarshalJSON() ([]byte, error) { + asmtd.Type = TypeBasicDatasetTypeAzureSQLMITable + objectMap := make(map[string]interface{}) + if asmtd.AzureSQLMITableDatasetTypeProperties != nil { + objectMap["typeProperties"] = asmtd.AzureSQLMITableDatasetTypeProperties + } + if asmtd.Description != nil { + objectMap["description"] = asmtd.Description + } + if asmtd.Structure != nil { + objectMap["structure"] = asmtd.Structure + } + if asmtd.Schema != nil { + objectMap["schema"] = asmtd.Schema + } + if asmtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = asmtd.LinkedServiceName + } + if asmtd.Parameters != nil { + objectMap["parameters"] = asmtd.Parameters + } + if asmtd.Annotations != nil { + objectMap["annotations"] = asmtd.Annotations + } + if asmtd.Folder != nil { + objectMap["folder"] = asmtd.Folder + } + if asmtd.Type != "" { + objectMap["type"] = asmtd.Type + } + for k, v := range asmtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return &asmtd, true +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureSQLMITableDataset. +func (asmtd AzureSQLMITableDataset) AsBasicDataset() (BasicDataset, bool) { + return &asmtd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLMITableDataset struct. +func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSQLMITableDatasetTypeProperties AzureSQLMITableDatasetTypeProperties + err = json.Unmarshal(*v, &azureSQLMITableDatasetTypeProperties) + if err != nil { + return err + } + asmtd.AzureSQLMITableDatasetTypeProperties = &azureSQLMITableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asmtd.AdditionalProperties == nil { + asmtd.AdditionalProperties = make(map[string]interface{}) + } + asmtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asmtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + asmtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + asmtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + asmtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asmtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asmtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + asmtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asmtd.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLMITableDatasetTypeProperties azure SQL Managed Instance dataset properties. +type AzureSQLMITableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// AzureSQLSink a copy activity Azure SQL sink. +type AzureSQLSink struct { + // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). + SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). + SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // StoredProcedureParameters - SQL stored procedure parameters. + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + // TableOption - 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"` + // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). + SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + // WriteBehavior - Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // UpsertSettings - SQL upsert settings. + UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLSink. +func (ass AzureSQLSink) MarshalJSON() ([]byte, error) { + ass.Type = TypeBasicCopySinkTypeAzureSQLSink + objectMap := make(map[string]interface{}) + if ass.SQLWriterStoredProcedureName != nil { + objectMap["sqlWriterStoredProcedureName"] = ass.SQLWriterStoredProcedureName + } + if ass.SQLWriterTableType != nil { + objectMap["sqlWriterTableType"] = ass.SQLWriterTableType + } + if ass.PreCopyScript != nil { + objectMap["preCopyScript"] = ass.PreCopyScript + } + if ass.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ass.StoredProcedureParameters + } + if ass.StoredProcedureTableTypeParameterName != nil { + objectMap["storedProcedureTableTypeParameterName"] = ass.StoredProcedureTableTypeParameterName + } + if ass.TableOption != nil { + objectMap["tableOption"] = ass.TableOption + } + if ass.SQLWriterUseTableLock != nil { + objectMap["sqlWriterUseTableLock"] = ass.SQLWriterUseTableLock + } + if ass.WriteBehavior != nil { + objectMap["writeBehavior"] = ass.WriteBehavior + } + if ass.UpsertSettings != nil { + objectMap["upsertSettings"] = ass.UpsertSettings + } + if ass.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ass.WriteBatchSize + } + if ass.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ass.WriteBatchTimeout + } + if ass.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ass.SinkRetryCount + } + if ass.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ass.SinkRetryWait + } + if ass.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections + } + if ass.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ass.DisableMetricsCollection + } + if ass.Type != "" { + objectMap["type"] = ass.Type + } + for k, v := range ass.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return &ass, true +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureSQLSink. +func (ass AzureSQLSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ass, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLSink struct. +func (ass *AzureSQLSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlWriterStoredProcedureName": + if v != nil { + var SQLWriterStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) + if err != nil { + return err + } + ass.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName + } + case "sqlWriterTableType": + if v != nil { + var SQLWriterTableType interface{} + err = json.Unmarshal(*v, &SQLWriterTableType) + if err != nil { + return err + } + ass.SQLWriterTableType = SQLWriterTableType + } + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + ass.PreCopyScript = preCopyScript + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + ass.StoredProcedureParameters = storedProcedureParameters + } + case "storedProcedureTableTypeParameterName": + if v != nil { + var storedProcedureTableTypeParameterName interface{} + err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + if err != nil { + return err + } + ass.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + ass.TableOption = tableOption + } + case "sqlWriterUseTableLock": + if v != nil { + var SQLWriterUseTableLock interface{} + err = json.Unmarshal(*v, &SQLWriterUseTableLock) + if err != nil { + return err + } + ass.SQLWriterUseTableLock = SQLWriterUseTableLock + } + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + ass.WriteBehavior = writeBehavior + } + case "upsertSettings": + if v != nil { + var upsertSettings SQLUpsertSettings + err = json.Unmarshal(*v, &upsertSettings) + if err != nil { + return err + } + ass.UpsertSettings = &upsertSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ass.AdditionalProperties == nil { + ass.AdditionalProperties = make(map[string]interface{}) + } + ass.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ass.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ass.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ass.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ass.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ass.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ass.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ass.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLSource a copy activity Azure SQL source. +type AzureSQLSource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - 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"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // IsolationLevel - 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"` + // ProduceAdditionalTypes - Which additional types to produce. + ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLSource. +func (ass AzureSQLSource) MarshalJSON() ([]byte, error) { + ass.Type = TypeBasicCopySourceTypeAzureSQLSource + objectMap := make(map[string]interface{}) + if ass.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = ass.SQLReaderQuery + } + if ass.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = ass.SQLReaderStoredProcedureName + } + if ass.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ass.StoredProcedureParameters + } + if ass.IsolationLevel != nil { + objectMap["isolationLevel"] = ass.IsolationLevel + } + if ass.ProduceAdditionalTypes != nil { + objectMap["produceAdditionalTypes"] = ass.ProduceAdditionalTypes + } + if ass.PartitionOption != nil { + objectMap["partitionOption"] = ass.PartitionOption + } + if ass.PartitionSettings != nil { + objectMap["partitionSettings"] = ass.PartitionSettings + } + if ass.QueryTimeout != nil { + objectMap["queryTimeout"] = ass.QueryTimeout + } + if ass.AdditionalColumns != nil { + objectMap["additionalColumns"] = ass.AdditionalColumns + } + if ass.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ass.SourceRetryCount + } + if ass.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ass.SourceRetryWait + } + if ass.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections + } + if ass.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ass.DisableMetricsCollection + } + if ass.Type != "" { + objectMap["type"] = ass.Type + } + for k, v := range ass.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return &ass, true +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ass, true +} + +// AsBinarySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureSQLSource. +func (ass AzureSQLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ass, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLSource struct. +func (ass *AzureSQLSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlReaderQuery": + if v != nil { + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) + if err != nil { + return err + } + ass.SQLReaderQuery = SQLReaderQuery + } + case "sqlReaderStoredProcedureName": + if v != nil { + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + if err != nil { + return err + } + ass.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + ass.StoredProcedureParameters = storedProcedureParameters + } + case "isolationLevel": + if v != nil { + var isolationLevel interface{} + err = json.Unmarshal(*v, &isolationLevel) + if err != nil { + return err + } + ass.IsolationLevel = isolationLevel + } + case "produceAdditionalTypes": + if v != nil { + var produceAdditionalTypes interface{} + err = json.Unmarshal(*v, &produceAdditionalTypes) + if err != nil { + return err + } + ass.ProduceAdditionalTypes = produceAdditionalTypes + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + ass.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + ass.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ass.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ass.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ass.AdditionalProperties == nil { + ass.AdditionalProperties = make(map[string]interface{}) + } + ass.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ass.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ass.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ass.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ass.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ass.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLTableDataset the Azure SQL Server database dataset. +type AzureSQLTableDataset struct { + // AzureSQLTableDatasetTypeProperties - Azure SQL dataset properties. + *AzureSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) MarshalJSON() ([]byte, error) { + astd.Type = TypeBasicDatasetTypeAzureSQLTable + objectMap := make(map[string]interface{}) + if astd.AzureSQLTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = astd.AzureSQLTableDatasetTypeProperties + } + if astd.Description != nil { + objectMap["description"] = astd.Description + } + if astd.Structure != nil { + objectMap["structure"] = astd.Structure + } + if astd.Schema != nil { + objectMap["schema"] = astd.Schema + } + if astd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = astd.LinkedServiceName + } + if astd.Parameters != nil { + objectMap["parameters"] = astd.Parameters + } + if astd.Annotations != nil { + objectMap["annotations"] = astd.Annotations + } + if astd.Folder != nil { + objectMap["folder"] = astd.Folder + } + if astd.Type != "" { + objectMap["type"] = astd.Type + } + for k, v := range astd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return &astd, true +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureSQLTableDataset. +func (astd AzureSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &astd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSQLTableDataset struct. +func (astd *AzureSQLTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSQLTableDatasetTypeProperties AzureSQLTableDatasetTypeProperties + err = json.Unmarshal(*v, &azureSQLTableDatasetTypeProperties) + if err != nil { + return err + } + astd.AzureSQLTableDatasetTypeProperties = &azureSQLTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if astd.AdditionalProperties == nil { + astd.AdditionalProperties = make(map[string]interface{}) + } + astd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + astd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + astd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + astd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + astd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + astd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + astd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + astd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + astd.Type = typeVar + } + } + } + + return nil +} + +// AzureSQLTableDatasetTypeProperties azure SQL dataset properties. +type AzureSQLTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The schema name of the Azure SQL database. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the Azure SQL database. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// AzureSearchIndexDataset the Azure Search Index. +type AzureSearchIndexDataset struct { + // AzureSearchIndexDatasetTypeProperties - Properties specific to this dataset type. + *AzureSearchIndexDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { + asid.Type = TypeBasicDatasetTypeAzureSearchIndex + objectMap := make(map[string]interface{}) + if asid.AzureSearchIndexDatasetTypeProperties != nil { + objectMap["typeProperties"] = asid.AzureSearchIndexDatasetTypeProperties + } + if asid.Description != nil { + objectMap["description"] = asid.Description + } + if asid.Structure != nil { + objectMap["structure"] = asid.Structure + } + if asid.Schema != nil { + objectMap["schema"] = asid.Schema + } + if asid.LinkedServiceName != nil { + objectMap["linkedServiceName"] = asid.LinkedServiceName + } + if asid.Parameters != nil { + objectMap["parameters"] = asid.Parameters + } + if asid.Annotations != nil { + objectMap["annotations"] = asid.Annotations + } + if asid.Folder != nil { + objectMap["folder"] = asid.Folder + } + if asid.Type != "" { + objectMap["type"] = asid.Type + } + for k, v := range asid.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return &asid, true +} + +// AsWebTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureSearchIndexDataset. +func (asid AzureSearchIndexDataset) AsBasicDataset() (BasicDataset, bool) { + return &asid, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexDataset struct. +func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSearchIndexDatasetTypeProperties AzureSearchIndexDatasetTypeProperties + err = json.Unmarshal(*v, &azureSearchIndexDatasetTypeProperties) + if err != nil { + return err + } + asid.AzureSearchIndexDatasetTypeProperties = &azureSearchIndexDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asid.AdditionalProperties == nil { + asid.AdditionalProperties = make(map[string]interface{}) + } + asid.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asid.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + asid.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + asid.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + asid.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asid.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asid.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + asid.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asid.Type = typeVar + } + } + } + + return nil +} + +// AzureSearchIndexDatasetTypeProperties properties specific to this dataset type. +type AzureSearchIndexDatasetTypeProperties struct { + // IndexName - The name of the Azure Search Index. Type: string (or Expression with resultType string). + IndexName interface{} `json:"indexName,omitempty"` +} + +// AzureSearchIndexSink a copy activity Azure Search Index sink. +type AzureSearchIndexSink struct { + // WriteBehavior - Specify the write behavior when upserting documents into Azure Search Index. Possible values include: 'AzureSearchIndexWriteBehaviorTypeMerge', 'AzureSearchIndexWriteBehaviorTypeUpload' + WriteBehavior AzureSearchIndexWriteBehaviorType `json:"writeBehavior,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) MarshalJSON() ([]byte, error) { + asis.Type = TypeBasicCopySinkTypeAzureSearchIndexSink + objectMap := make(map[string]interface{}) + if asis.WriteBehavior != "" { + objectMap["writeBehavior"] = asis.WriteBehavior + } + if asis.WriteBatchSize != nil { + objectMap["writeBatchSize"] = asis.WriteBatchSize + } + if asis.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = asis.WriteBatchTimeout + } + if asis.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = asis.SinkRetryCount + } + if asis.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = asis.SinkRetryWait + } + if asis.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = asis.MaxConcurrentConnections + } + if asis.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = asis.DisableMetricsCollection + } + if asis.Type != "" { + objectMap["type"] = asis.Type + } + for k, v := range asis.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return &asis, true +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureSearchIndexSink. +func (asis AzureSearchIndexSink) AsBasicCopySink() (BasicCopySink, bool) { + return &asis, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexSink struct. +func (asis *AzureSearchIndexSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior AzureSearchIndexWriteBehaviorType + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + asis.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asis.AdditionalProperties == nil { + asis.AdditionalProperties = make(map[string]interface{}) + } + asis.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + asis.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + asis.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + asis.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + asis.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + asis.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + asis.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asis.Type = typeVar + } + } + } + + return nil +} + +// AzureSearchLinkedService linked service for Windows Azure Search Service. +type AzureSearchLinkedService struct { + // AzureSearchLinkedServiceTypeProperties - Windows Azure Search Service linked service properties. + *AzureSearchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) MarshalJSON() ([]byte, error) { + asls.Type = TypeBasicLinkedServiceTypeAzureSearch + objectMap := make(map[string]interface{}) + if asls.AzureSearchLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asls.AzureSearchLinkedServiceTypeProperties + } + if asls.ConnectVia != nil { + objectMap["connectVia"] = asls.ConnectVia + } + if asls.Description != nil { + objectMap["description"] = asls.Description + } + if asls.Parameters != nil { + objectMap["parameters"] = asls.Parameters + } + if asls.Annotations != nil { + objectMap["annotations"] = asls.Annotations + } + if asls.Type != "" { + objectMap["type"] = asls.Type + } + for k, v := range asls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return &asls, true +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. +func (asls AzureSearchLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedService struct. +func (asls *AzureSearchLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSearchLinkedServiceTypeProperties AzureSearchLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureSearchLinkedServiceTypeProperties) + if err != nil { + return err + } + asls.AzureSearchLinkedServiceTypeProperties = &azureSearchLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asls.AdditionalProperties == nil { + asls.AdditionalProperties = make(map[string]interface{}) + } + asls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + asls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asls.Type = typeVar + } + } + } + + return nil +} + +// AzureSearchLinkedServiceTypeProperties windows Azure Search Service linked service properties. +type AzureSearchLinkedServiceTypeProperties struct { + // URL - URL for Azure Search service. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // Key - Admin Key for Azure Search service + Key BasicSecretBase `json:"key,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedServiceTypeProperties struct. +func (aslstp *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + aslstp.URL = URL + } + case "key": + if v != nil { + key, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + aslstp.Key = key + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + aslstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// AzureStorageLinkedService the storage account linked service. +type AzureStorageLinkedService struct { + // AzureStorageLinkedServiceTypeProperties - Azure Storage linked service properties. + *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) MarshalJSON() ([]byte, error) { + asls.Type = TypeBasicLinkedServiceTypeAzureStorage + objectMap := make(map[string]interface{}) + if asls.AzureStorageLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asls.AzureStorageLinkedServiceTypeProperties + } + if asls.ConnectVia != nil { + objectMap["connectVia"] = asls.ConnectVia + } + if asls.Description != nil { + objectMap["description"] = asls.Description + } + if asls.Parameters != nil { + objectMap["parameters"] = asls.Parameters + } + if asls.Annotations != nil { + objectMap["annotations"] = asls.Annotations + } + if asls.Type != "" { + objectMap["type"] = asls.Type + } + for k, v := range asls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return &asls, true +} + +// AsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. +func (asls AzureStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureStorageLinkedService struct. +func (asls *AzureStorageLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureStorageLinkedServiceTypeProperties AzureStorageLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureStorageLinkedServiceTypeProperties) + if err != nil { + return err + } + asls.AzureStorageLinkedServiceTypeProperties = &azureStorageLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asls.AdditionalProperties == nil { + asls.AdditionalProperties = make(map[string]interface{}) + } + asls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + asls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asls.Type = typeVar + } + } + } + + return nil +} + +// AzureStorageLinkedServiceTypeProperties azure Storage linked service properties. +type AzureStorageLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // AccountKey - The Azure key vault secret reference of accountKey in connection string. + AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` + // SasURI - SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. + SasURI interface{} `json:"sasUri,omitempty"` + // SasToken - The Azure key vault secret reference of sasToken in sas uri. + SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// AzureSynapseArtifactsLinkedService azure Synapse Analytics (Artifacts) linked service. +type AzureSynapseArtifactsLinkedService struct { + // AzureSynapseArtifactsLinkedServiceTypeProperties - Azure Synapse Analytics (Artifacts) linked service properties. + *AzureSynapseArtifactsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) MarshalJSON() ([]byte, error) { + asals.Type = TypeBasicLinkedServiceTypeAzureSynapseArtifacts + objectMap := make(map[string]interface{}) + if asals.AzureSynapseArtifactsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = asals.AzureSynapseArtifactsLinkedServiceTypeProperties + } + if asals.ConnectVia != nil { + objectMap["connectVia"] = asals.ConnectVia + } + if asals.Description != nil { + objectMap["description"] = asals.Description + } + if asals.Parameters != nil { + objectMap["parameters"] = asals.Parameters + } + if asals.Annotations != nil { + objectMap["annotations"] = asals.Annotations + } + if asals.Type != "" { + objectMap["type"] = asals.Type + } + for k, v := range asals.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return &asals, true +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. +func (asals AzureSynapseArtifactsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &asals, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureSynapseArtifactsLinkedService struct. +func (asals *AzureSynapseArtifactsLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureSynapseArtifactsLinkedServiceTypeProperties AzureSynapseArtifactsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureSynapseArtifactsLinkedServiceTypeProperties) + if err != nil { + return err + } + asals.AzureSynapseArtifactsLinkedServiceTypeProperties = &azureSynapseArtifactsLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if asals.AdditionalProperties == nil { + asals.AdditionalProperties = make(map[string]interface{}) + } + asals.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + asals.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + asals.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + asals.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + asals.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + asals.Type = typeVar + } + } + } + + return nil +} + +// AzureSynapseArtifactsLinkedServiceTypeProperties azure Synapse Analytics (Artifacts) linked service +// properties. +type AzureSynapseArtifactsLinkedServiceTypeProperties struct { + // Endpoint - https://.dev.azuresynapse.net, Azure Synapse Analytics workspace URL. Type: string (or Expression with resultType string). + Endpoint interface{} `json:"endpoint,omitempty"` + // Authentication - 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"` + // WorkspaceResourceID - 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 interface{} `json:"workspaceResourceId,omitempty"` +} + +// AzureTableDataset the Azure Table storage dataset. +type AzureTableDataset struct { + // AzureTableDatasetTypeProperties - Azure Table dataset properties. + *AzureTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureTableDataset. +func (atd AzureTableDataset) MarshalJSON() ([]byte, error) { + atd.Type = TypeBasicDatasetTypeAzureTable + objectMap := make(map[string]interface{}) + if atd.AzureTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = atd.AzureTableDatasetTypeProperties + } + if atd.Description != nil { + objectMap["description"] = atd.Description + } + if atd.Structure != nil { + objectMap["structure"] = atd.Structure + } + if atd.Schema != nil { + objectMap["schema"] = atd.Schema + } + if atd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = atd.LinkedServiceName + } + if atd.Parameters != nil { + objectMap["parameters"] = atd.Parameters + } + if atd.Annotations != nil { + objectMap["annotations"] = atd.Annotations + } + if atd.Folder != nil { + objectMap["folder"] = atd.Folder + } + if atd.Type != "" { + objectMap["type"] = atd.Type + } + for k, v := range atd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return &atd, true +} + +// AsAzureBlobDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for AzureTableDataset. +func (atd AzureTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &atd, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureTableDataset struct. +func (atd *AzureTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureTableDatasetTypeProperties AzureTableDatasetTypeProperties + err = json.Unmarshal(*v, &azureTableDatasetTypeProperties) + if err != nil { + return err + } + atd.AzureTableDatasetTypeProperties = &azureTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if atd.AdditionalProperties == nil { + atd.AdditionalProperties = make(map[string]interface{}) + } + atd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + atd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + atd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + atd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + atd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + atd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + atd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + atd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + atd.Type = typeVar + } + } + } + + return nil +} + +// AzureTableDatasetTypeProperties azure Table dataset properties. +type AzureTableDatasetTypeProperties struct { + // TableName - The table name of the Azure Table storage. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// AzureTableSink a copy activity Azure Table sink. +type AzureTableSink struct { + // AzureTableDefaultPartitionKeyValue - Azure Table default partition key value. Type: string (or Expression with resultType string). + AzureTableDefaultPartitionKeyValue interface{} `json:"azureTableDefaultPartitionKeyValue,omitempty"` + // AzureTablePartitionKeyName - Azure Table partition key name. Type: string (or Expression with resultType string). + AzureTablePartitionKeyName interface{} `json:"azureTablePartitionKeyName,omitempty"` + // AzureTableRowKeyName - Azure Table row key name. Type: string (or Expression with resultType string). + AzureTableRowKeyName interface{} `json:"azureTableRowKeyName,omitempty"` + // AzureTableInsertType - Azure Table insert type. Type: string (or Expression with resultType string). + AzureTableInsertType interface{} `json:"azureTableInsertType,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureTableSink. +func (ats AzureTableSink) MarshalJSON() ([]byte, error) { + ats.Type = TypeBasicCopySinkTypeAzureTableSink + objectMap := make(map[string]interface{}) + if ats.AzureTableDefaultPartitionKeyValue != nil { + objectMap["azureTableDefaultPartitionKeyValue"] = ats.AzureTableDefaultPartitionKeyValue + } + if ats.AzureTablePartitionKeyName != nil { + objectMap["azureTablePartitionKeyName"] = ats.AzureTablePartitionKeyName + } + if ats.AzureTableRowKeyName != nil { + objectMap["azureTableRowKeyName"] = ats.AzureTableRowKeyName + } + if ats.AzureTableInsertType != nil { + objectMap["azureTableInsertType"] = ats.AzureTableInsertType + } + if ats.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ats.WriteBatchSize + } + if ats.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ats.WriteBatchTimeout + } + if ats.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ats.SinkRetryCount + } + if ats.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ats.SinkRetryWait + } + if ats.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ats.MaxConcurrentConnections + } + if ats.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ats.DisableMetricsCollection + } + if ats.Type != "" { + objectMap["type"] = ats.Type + } + for k, v := range ats.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureTableSink() (*AzureTableSink, bool) { + return &ats, true +} + +// AsAzureQueueSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for AzureTableSink. +func (ats AzureTableSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ats, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureTableSink struct. +func (ats *AzureTableSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "azureTableDefaultPartitionKeyValue": + if v != nil { + var azureTableDefaultPartitionKeyValue interface{} + err = json.Unmarshal(*v, &azureTableDefaultPartitionKeyValue) + if err != nil { + return err + } + ats.AzureTableDefaultPartitionKeyValue = azureTableDefaultPartitionKeyValue + } + case "azureTablePartitionKeyName": + if v != nil { + var azureTablePartitionKeyName interface{} + err = json.Unmarshal(*v, &azureTablePartitionKeyName) + if err != nil { + return err + } + ats.AzureTablePartitionKeyName = azureTablePartitionKeyName + } + case "azureTableRowKeyName": + if v != nil { + var azureTableRowKeyName interface{} + err = json.Unmarshal(*v, &azureTableRowKeyName) + if err != nil { + return err + } + ats.AzureTableRowKeyName = azureTableRowKeyName + } + case "azureTableInsertType": + if v != nil { + var azureTableInsertType interface{} + err = json.Unmarshal(*v, &azureTableInsertType) + if err != nil { + return err + } + ats.AzureTableInsertType = azureTableInsertType + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ats.AdditionalProperties == nil { + ats.AdditionalProperties = make(map[string]interface{}) + } + ats.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ats.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ats.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ats.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ats.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ats.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ats.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ats.Type = typeVar + } + } + } + + return nil +} + +// AzureTableSource a copy activity Azure Table source. +type AzureTableSource struct { + // AzureTableSourceQuery - Azure Table source query. Type: string (or Expression with resultType string). + AzureTableSourceQuery interface{} `json:"azureTableSourceQuery,omitempty"` + // AzureTableSourceIgnoreTableNotFound - Azure Table source ignore table not found. Type: boolean (or Expression with resultType boolean). + AzureTableSourceIgnoreTableNotFound interface{} `json:"azureTableSourceIgnoreTableNotFound,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureTableSource. +func (ats AzureTableSource) MarshalJSON() ([]byte, error) { + ats.Type = TypeBasicCopySourceTypeAzureTableSource + objectMap := make(map[string]interface{}) + if ats.AzureTableSourceQuery != nil { + objectMap["azureTableSourceQuery"] = ats.AzureTableSourceQuery + } + if ats.AzureTableSourceIgnoreTableNotFound != nil { + objectMap["azureTableSourceIgnoreTableNotFound"] = ats.AzureTableSourceIgnoreTableNotFound + } + if ats.QueryTimeout != nil { + objectMap["queryTimeout"] = ats.QueryTimeout + } + if ats.AdditionalColumns != nil { + objectMap["additionalColumns"] = ats.AdditionalColumns + } + if ats.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ats.SourceRetryCount + } + if ats.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ats.SourceRetryWait + } + if ats.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ats.MaxConcurrentConnections + } + if ats.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ats.DisableMetricsCollection + } + if ats.Type != "" { + objectMap["type"] = ats.Type + } + for k, v := range ats.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAzureTableSource() (*AzureTableSource, bool) { + return &ats, true +} + +// AsTabularSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ats, true +} + +// AsBinarySource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for AzureTableSource. +func (ats AzureTableSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ats, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureTableSource struct. +func (ats *AzureTableSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "azureTableSourceQuery": + if v != nil { + var azureTableSourceQuery interface{} + err = json.Unmarshal(*v, &azureTableSourceQuery) + if err != nil { + return err + } + ats.AzureTableSourceQuery = azureTableSourceQuery + } + case "azureTableSourceIgnoreTableNotFound": + if v != nil { + var azureTableSourceIgnoreTableNotFound interface{} + err = json.Unmarshal(*v, &azureTableSourceIgnoreTableNotFound) + if err != nil { + return err + } + ats.AzureTableSourceIgnoreTableNotFound = azureTableSourceIgnoreTableNotFound + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ats.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ats.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ats.AdditionalProperties == nil { + ats.AdditionalProperties = make(map[string]interface{}) + } + ats.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ats.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ats.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ats.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ats.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ats.Type = typeVar + } + } + } + + return nil +} + +// AzureTableStorageLinkedService the azure table storage linked service. +type AzureTableStorageLinkedService struct { + // AzureStorageLinkedServiceTypeProperties - Azure Table Storage linked service properties. + *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) MarshalJSON() ([]byte, error) { + atsls.Type = TypeBasicLinkedServiceTypeAzureTableStorage + objectMap := make(map[string]interface{}) + if atsls.AzureStorageLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = atsls.AzureStorageLinkedServiceTypeProperties + } + if atsls.ConnectVia != nil { + objectMap["connectVia"] = atsls.ConnectVia + } + if atsls.Description != nil { + objectMap["description"] = atsls.Description + } + if atsls.Parameters != nil { + objectMap["parameters"] = atsls.Parameters + } + if atsls.Annotations != nil { + objectMap["annotations"] = atsls.Annotations + } + if atsls.Type != "" { + objectMap["type"] = atsls.Type + } + for k, v := range atsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return &atsls, true +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. +func (atsls AzureTableStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &atsls, true +} + +// UnmarshalJSON is the custom unmarshaler for AzureTableStorageLinkedService struct. +func (atsls *AzureTableStorageLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var azureStorageLinkedServiceTypeProperties AzureStorageLinkedServiceTypeProperties + err = json.Unmarshal(*v, &azureStorageLinkedServiceTypeProperties) + if err != nil { + return err + } + atsls.AzureStorageLinkedServiceTypeProperties = &azureStorageLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if atsls.AdditionalProperties == nil { + atsls.AdditionalProperties = make(map[string]interface{}) + } + atsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + atsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + atsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + atsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + atsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + atsls.Type = typeVar + } + } + } + + return nil +} + +// BigDataPoolParametrizationReference big data pool reference type. +type BigDataPoolParametrizationReference struct { + // Type - Big data pool reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference big data pool name. Type: string (or Expression with resultType string). + ReferenceName interface{} `json:"referenceName,omitempty"` +} + +// BinaryDataset binary dataset. +type BinaryDataset struct { + // BinaryDatasetTypeProperties - Binary dataset properties. + *BinaryDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BinaryDataset. +func (bd BinaryDataset) MarshalJSON() ([]byte, error) { + bd.Type = TypeBasicDatasetTypeBinary + objectMap := make(map[string]interface{}) + if bd.BinaryDatasetTypeProperties != nil { + objectMap["typeProperties"] = bd.BinaryDatasetTypeProperties + } + if bd.Description != nil { + objectMap["description"] = bd.Description + } + if bd.Structure != nil { + objectMap["structure"] = bd.Structure + } + if bd.Schema != nil { + objectMap["schema"] = bd.Schema + } + if bd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = bd.LinkedServiceName + } + if bd.Parameters != nil { + objectMap["parameters"] = bd.Parameters + } + if bd.Annotations != nil { + objectMap["annotations"] = bd.Annotations + } + if bd.Folder != nil { + objectMap["folder"] = bd.Folder + } + if bd.Type != "" { + objectMap["type"] = bd.Type + } + for k, v := range bd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return &bd, true +} + +// AsOrcDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for BinaryDataset. +func (bd BinaryDataset) AsBasicDataset() (BasicDataset, bool) { + return &bd, true +} + +// UnmarshalJSON is the custom unmarshaler for BinaryDataset struct. +func (bd *BinaryDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var binaryDatasetTypeProperties BinaryDatasetTypeProperties + err = json.Unmarshal(*v, &binaryDatasetTypeProperties) + if err != nil { + return err + } + bd.BinaryDatasetTypeProperties = &binaryDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if bd.AdditionalProperties == nil { + bd.AdditionalProperties = make(map[string]interface{}) + } + bd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + bd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + bd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + bd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + bd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + bd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + bd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + bd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bd.Type = typeVar + } + } + } + + return nil +} + +// BinaryDatasetTypeProperties binary dataset properties. +type BinaryDatasetTypeProperties struct { + // Location - The location of the Binary storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // Compression - The data compression method used for the binary dataset. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for BinaryDatasetTypeProperties struct. +func (bdtp *BinaryDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + bdtp.Location = location + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + bdtp.Compression = &compression + } + } + } + + return nil +} + +// BinaryReadSettings binary read settings. +type BinaryReadSettings struct { + // CompressionProperties - Compression settings. + CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BinaryReadSettings. +func (brs BinaryReadSettings) MarshalJSON() ([]byte, error) { + brs.Type = TypeBasicFormatReadSettingsTypeBinaryReadSettings + objectMap := make(map[string]interface{}) + objectMap["compressionProperties"] = brs.CompressionProperties + if brs.Type != "" { + objectMap["type"] = brs.Type + } + for k, v := range brs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. +func (brs BinaryReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { + return &brs, true +} + +// AsXMLReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. +func (brs BinaryReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { + return nil, false +} + +// AsJSONReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. +func (brs BinaryReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { + return nil, false +} + +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. +func (brs BinaryReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { + return nil, false +} + +// AsParquetReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. +func (brs BinaryReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { + return nil, false +} + +// AsFormatReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. +func (brs BinaryReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { + return nil, false +} + +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. +func (brs BinaryReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &brs, true +} + +// UnmarshalJSON is the custom unmarshaler for BinaryReadSettings struct. +func (brs *BinaryReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "compressionProperties": + if v != nil { + compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) + if err != nil { + return err + } + brs.CompressionProperties = compressionProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if brs.AdditionalProperties == nil { + brs.AdditionalProperties = make(map[string]interface{}) + } + brs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + brs.Type = typeVar + } + } + } + + return nil +} + +// BinarySink a copy activity Binary sink. +type BinarySink struct { + // StoreSettings - Binary store settings. + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BinarySink. +func (bs BinarySink) MarshalJSON() ([]byte, error) { + bs.Type = TypeBasicCopySinkTypeBinarySink + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = bs.StoreSettings + if bs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = bs.WriteBatchSize + } + if bs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = bs.WriteBatchTimeout + } + if bs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = bs.SinkRetryCount + } + if bs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = bs.SinkRetryWait + } + if bs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections + } + if bs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection + } + if bs.Type != "" { + objectMap["type"] = bs.Type + } + for k, v := range bs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsBinarySink() (*BinarySink, bool) { + return &bs, true +} + +// AsParquetSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for BinarySink. +func (bs BinarySink) AsBasicCopySink() (BasicCopySink, bool) { + return &bs, true +} + +// UnmarshalJSON is the custom unmarshaler for BinarySink struct. +func (bs *BinarySink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) + if err != nil { + return err + } + bs.StoreSettings = storeSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if bs.AdditionalProperties == nil { + bs.AdditionalProperties = make(map[string]interface{}) + } + bs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + bs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + bs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + bs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + bs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + bs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + bs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bs.Type = typeVar + } + } + } + + return nil +} + +// BinarySource a copy activity Binary source. +type BinarySource struct { + // StoreSettings - Binary store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - Binary format settings. + FormatSettings *BinaryReadSettings `json:"formatSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BinarySource. +func (bs BinarySource) MarshalJSON() ([]byte, error) { + bs.Type = TypeBasicCopySourceTypeBinarySource + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = bs.StoreSettings + if bs.FormatSettings != nil { + objectMap["formatSettings"] = bs.FormatSettings + } + if bs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = bs.SourceRetryCount + } + if bs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = bs.SourceRetryWait + } + if bs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections + } + if bs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection + } + if bs.Type != "" { + objectMap["type"] = bs.Type + } + for k, v := range bs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsBinarySource() (*BinarySource, bool) { + return &bs, true +} + +// AsOrcSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for BinarySource. +func (bs BinarySource) AsBasicCopySource() (BasicCopySource, bool) { + return &bs, true +} + +// UnmarshalJSON is the custom unmarshaler for BinarySource struct. +func (bs *BinarySource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + bs.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings BinaryReadSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + bs.FormatSettings = &formatSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if bs.AdditionalProperties == nil { + bs.AdditionalProperties = make(map[string]interface{}) + } + bs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + bs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + bs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + bs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + bs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bs.Type = typeVar + } + } + } + + return nil +} + +// BlobEventsTrigger trigger that runs every time a Blob event occurs. +type BlobEventsTrigger struct { + // BlobEventsTriggerTypeProperties - Blob Events Trigger properties. + *BlobEventsTriggerTypeProperties `json:"typeProperties,omitempty"` + // Pipelines - Pipelines that need to be started. + Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BlobEventsTrigger. +func (bet BlobEventsTrigger) MarshalJSON() ([]byte, error) { + bet.Type = TypeBasicTriggerTypeBlobEventsTrigger + objectMap := make(map[string]interface{}) + if bet.BlobEventsTriggerTypeProperties != nil { + objectMap["typeProperties"] = bet.BlobEventsTriggerTypeProperties + } + if bet.Pipelines != nil { + objectMap["pipelines"] = bet.Pipelines + } + if bet.Description != nil { + objectMap["description"] = bet.Description + } + if bet.Annotations != nil { + objectMap["annotations"] = bet.Annotations + } + if bet.Type != "" { + objectMap["type"] = bet.Type + } + for k, v := range bet.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return &bet, true +} + +// AsBlobTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return &bet, true +} + +// AsTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for BlobEventsTrigger. +func (bet BlobEventsTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &bet, true +} + +// UnmarshalJSON is the custom unmarshaler for BlobEventsTrigger struct. +func (bet *BlobEventsTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var blobEventsTriggerTypeProperties BlobEventsTriggerTypeProperties + err = json.Unmarshal(*v, &blobEventsTriggerTypeProperties) + if err != nil { + return err + } + bet.BlobEventsTriggerTypeProperties = &blobEventsTriggerTypeProperties + } + case "pipelines": + if v != nil { + var pipelines []TriggerPipelineReference + err = json.Unmarshal(*v, &pipelines) + if err != nil { + return err + } + bet.Pipelines = &pipelines + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if bet.AdditionalProperties == nil { + bet.AdditionalProperties = make(map[string]interface{}) + } + bet.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + bet.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + bet.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + bet.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bet.Type = typeVar + } + } + } + + return nil +} + +// BlobEventsTriggerTypeProperties blob Events Trigger properties. +type BlobEventsTriggerTypeProperties struct { + // BlobPathBeginsWith - 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"` + // BlobPathEndsWith - 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"` + // IgnoreEmptyBlobs - If set to true, blobs with zero bytes will be ignored. + IgnoreEmptyBlobs *bool `json:"ignoreEmptyBlobs,omitempty"` + // Events - The type of events that cause this trigger to fire. + Events *[]BlobEventTypes `json:"events,omitempty"` + // Scope - The ARM resource ID of the Storage Account. + Scope *string `json:"scope,omitempty"` +} + +// BlobSink a copy activity Azure Blob sink. +type BlobSink struct { + // BlobWriterOverwriteFiles - Blob writer overwrite files. Type: boolean (or Expression with resultType boolean). + BlobWriterOverwriteFiles interface{} `json:"blobWriterOverwriteFiles,omitempty"` + // BlobWriterDateTimeFormat - Blob writer date time format. Type: string (or Expression with resultType string). + BlobWriterDateTimeFormat interface{} `json:"blobWriterDateTimeFormat,omitempty"` + // BlobWriterAddHeader - Blob writer add header. Type: boolean (or Expression with resultType boolean). + BlobWriterAddHeader interface{} `json:"blobWriterAddHeader,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BlobSink. +func (bs BlobSink) MarshalJSON() ([]byte, error) { + bs.Type = TypeBasicCopySinkTypeBlobSink + objectMap := make(map[string]interface{}) + if bs.BlobWriterOverwriteFiles != nil { + objectMap["blobWriterOverwriteFiles"] = bs.BlobWriterOverwriteFiles + } + if bs.BlobWriterDateTimeFormat != nil { + objectMap["blobWriterDateTimeFormat"] = bs.BlobWriterDateTimeFormat + } + if bs.BlobWriterAddHeader != nil { + objectMap["blobWriterAddHeader"] = bs.BlobWriterAddHeader + } + if bs.CopyBehavior != nil { + objectMap["copyBehavior"] = bs.CopyBehavior + } + if bs.Metadata != nil { + objectMap["metadata"] = bs.Metadata + } + if bs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = bs.WriteBatchSize + } + if bs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = bs.WriteBatchTimeout + } + if bs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = bs.SinkRetryCount + } + if bs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = bs.SinkRetryWait + } + if bs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections + } + if bs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection + } + if bs.Type != "" { + objectMap["type"] = bs.Type + } + for k, v := range bs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsBlobSink() (*BlobSink, bool) { + return &bs, true +} + +// AsBinarySink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for BlobSink. +func (bs BlobSink) AsBasicCopySink() (BasicCopySink, bool) { + return &bs, true +} + +// UnmarshalJSON is the custom unmarshaler for BlobSink struct. +func (bs *BlobSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "blobWriterOverwriteFiles": + if v != nil { + var blobWriterOverwriteFiles interface{} + err = json.Unmarshal(*v, &blobWriterOverwriteFiles) + if err != nil { + return err + } + bs.BlobWriterOverwriteFiles = blobWriterOverwriteFiles + } + case "blobWriterDateTimeFormat": + if v != nil { + var blobWriterDateTimeFormat interface{} + err = json.Unmarshal(*v, &blobWriterDateTimeFormat) + if err != nil { + return err + } + bs.BlobWriterDateTimeFormat = blobWriterDateTimeFormat + } + case "blobWriterAddHeader": + if v != nil { + var blobWriterAddHeader interface{} + err = json.Unmarshal(*v, &blobWriterAddHeader) + if err != nil { + return err + } + bs.BlobWriterAddHeader = blobWriterAddHeader + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + bs.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + bs.Metadata = &metadata + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if bs.AdditionalProperties == nil { + bs.AdditionalProperties = make(map[string]interface{}) + } + bs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + bs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + bs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + bs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + bs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + bs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + bs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bs.Type = typeVar + } + } + } + + return nil +} + +// BlobSource a copy activity Azure Blob source. +type BlobSource struct { + // TreatEmptyAsNull - Treat empty as null. Type: boolean (or Expression with resultType boolean). + TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` + // SkipHeaderLineCount - Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). + SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` + // Recursive - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BlobSource. +func (bs BlobSource) MarshalJSON() ([]byte, error) { + bs.Type = TypeBasicCopySourceTypeBlobSource + objectMap := make(map[string]interface{}) + if bs.TreatEmptyAsNull != nil { + objectMap["treatEmptyAsNull"] = bs.TreatEmptyAsNull + } + if bs.SkipHeaderLineCount != nil { + objectMap["skipHeaderLineCount"] = bs.SkipHeaderLineCount + } + if bs.Recursive != nil { + objectMap["recursive"] = bs.Recursive + } + if bs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = bs.SourceRetryCount + } + if bs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = bs.SourceRetryWait + } + if bs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections + } + if bs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection + } + if bs.Type != "" { + objectMap["type"] = bs.Type + } + for k, v := range bs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsBlobSource() (*BlobSource, bool) { + return &bs, true +} + +// AsServiceNowV2Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for BlobSource. +func (bs BlobSource) AsBasicCopySource() (BasicCopySource, bool) { + return &bs, true +} + +// UnmarshalJSON is the custom unmarshaler for BlobSource struct. +func (bs *BlobSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "treatEmptyAsNull": + if v != nil { + var treatEmptyAsNull interface{} + err = json.Unmarshal(*v, &treatEmptyAsNull) + if err != nil { + return err + } + bs.TreatEmptyAsNull = treatEmptyAsNull + } + case "skipHeaderLineCount": + if v != nil { + var skipHeaderLineCount interface{} + err = json.Unmarshal(*v, &skipHeaderLineCount) + if err != nil { + return err + } + bs.SkipHeaderLineCount = skipHeaderLineCount + } + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + bs.Recursive = recursive + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if bs.AdditionalProperties == nil { + bs.AdditionalProperties = make(map[string]interface{}) + } + bs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + bs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + bs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + bs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + bs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bs.Type = typeVar + } + } + } + + return nil +} + +// BlobTrigger trigger that runs every time the selected Blob container changes. +type BlobTrigger struct { + // BlobTriggerTypeProperties - Blob Trigger properties. + *BlobTriggerTypeProperties `json:"typeProperties,omitempty"` + // Pipelines - Pipelines that need to be started. + Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for BlobTrigger. +func (bt BlobTrigger) MarshalJSON() ([]byte, error) { + bt.Type = TypeBasicTriggerTypeBlobTrigger + objectMap := make(map[string]interface{}) + if bt.BlobTriggerTypeProperties != nil { + objectMap["typeProperties"] = bt.BlobTriggerTypeProperties + } + if bt.Pipelines != nil { + objectMap["pipelines"] = bt.Pipelines + } + if bt.Description != nil { + objectMap["description"] = bt.Description + } + if bt.Annotations != nil { + objectMap["annotations"] = bt.Annotations + } + if bt.Type != "" { + objectMap["type"] = bt.Type + } + for k, v := range bt.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return &bt, true +} + +// AsScheduleTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return &bt, true +} + +// AsTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for BlobTrigger. +func (bt BlobTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &bt, true +} + +// UnmarshalJSON is the custom unmarshaler for BlobTrigger struct. +func (bt *BlobTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var blobTriggerTypeProperties BlobTriggerTypeProperties + err = json.Unmarshal(*v, &blobTriggerTypeProperties) + if err != nil { + return err + } + bt.BlobTriggerTypeProperties = &blobTriggerTypeProperties + } + case "pipelines": + if v != nil { + var pipelines []TriggerPipelineReference + err = json.Unmarshal(*v, &pipelines) + if err != nil { + return err + } + bt.Pipelines = &pipelines + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if bt.AdditionalProperties == nil { + bt.AdditionalProperties = make(map[string]interface{}) + } + bt.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + bt.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + bt.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + bt.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + bt.Type = typeVar + } + } + } + + return nil +} + +// BlobTriggerTypeProperties blob Trigger properties. +type BlobTriggerTypeProperties struct { + // FolderPath - The path of the container/folder that will trigger the pipeline. + FolderPath *string `json:"folderPath,omitempty"` + // MaxConcurrency - The max number of parallel files to handle when it is triggered. + MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` + // LinkedService - The Azure Storage linked service reference. + LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` +} + +// CMKIdentityDefinition managed Identity used for CMK. +type CMKIdentityDefinition struct { + // UserAssignedIdentity - The resource id of the user assigned identity to authenticate to customer's key vault. + UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` +} + +// CassandraLinkedService linked service for Cassandra data source. +type CassandraLinkedService struct { + // CassandraLinkedServiceTypeProperties - Cassandra linked service properties. + *CassandraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CassandraLinkedService. +func (cls CassandraLinkedService) MarshalJSON() ([]byte, error) { + cls.Type = TypeBasicLinkedServiceTypeCassandra + objectMap := make(map[string]interface{}) + if cls.CassandraLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = cls.CassandraLinkedServiceTypeProperties + } + if cls.ConnectVia != nil { + objectMap["connectVia"] = cls.ConnectVia + } + if cls.Description != nil { + objectMap["description"] = cls.Description + } + if cls.Parameters != nil { + objectMap["parameters"] = cls.Parameters + } + if cls.Annotations != nil { + objectMap["annotations"] = cls.Annotations + } + if cls.Type != "" { + objectMap["type"] = cls.Type + } + for k, v := range cls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return &cls, true +} + +// AsWebLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for CassandraLinkedService. +func (cls CassandraLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &cls, true +} + +// UnmarshalJSON is the custom unmarshaler for CassandraLinkedService struct. +func (cls *CassandraLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var cassandraLinkedServiceTypeProperties CassandraLinkedServiceTypeProperties + err = json.Unmarshal(*v, &cassandraLinkedServiceTypeProperties) + if err != nil { + return err + } + cls.CassandraLinkedServiceTypeProperties = &cassandraLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cls.AdditionalProperties == nil { + cls.AdditionalProperties = make(map[string]interface{}) + } + cls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + cls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cls.Type = typeVar + } + } + } + + return nil +} + +// CassandraLinkedServiceTypeProperties cassandra linked service properties. +type CassandraLinkedServiceTypeProperties struct { + // Host - Host name for connection. Type: string (or Expression with resultType string). + Host interface{} `json:"host,omitempty"` + // AuthenticationType - AuthenticationType to be used for connection. Type: string (or Expression with resultType string). + AuthenticationType interface{} `json:"authenticationType,omitempty"` + // Port - The port for the connection. Type: integer (or Expression with resultType integer). + Port interface{} `json:"port,omitempty"` + // Username - Username for authentication. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password for authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for CassandraLinkedServiceTypeProperties struct. +func (clstp *CassandraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + clstp.Host = host + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + clstp.AuthenticationType = authenticationType + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + clstp.Port = port + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + clstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + clstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + clstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// CassandraSource a copy activity source for a Cassandra database. +type CassandraSource struct { + // Query - 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"` + // ConsistencyLevel - 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. Possible values include: 'CassandraSourceReadConsistencyLevelsALL', 'CassandraSourceReadConsistencyLevelsEACHQUORUM', 'CassandraSourceReadConsistencyLevelsQUORUM', 'CassandraSourceReadConsistencyLevelsLOCALQUORUM', 'CassandraSourceReadConsistencyLevelsONE', 'CassandraSourceReadConsistencyLevelsTWO', 'CassandraSourceReadConsistencyLevelsTHREE', 'CassandraSourceReadConsistencyLevelsLOCALONE', 'CassandraSourceReadConsistencyLevelsSERIAL', 'CassandraSourceReadConsistencyLevelsLOCALSERIAL' + ConsistencyLevel CassandraSourceReadConsistencyLevels `json:"consistencyLevel,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CassandraSource. +func (cs CassandraSource) MarshalJSON() ([]byte, error) { + cs.Type = TypeBasicCopySourceTypeCassandraSource + objectMap := make(map[string]interface{}) + if cs.Query != nil { + objectMap["query"] = cs.Query + } + if cs.ConsistencyLevel != "" { + objectMap["consistencyLevel"] = cs.ConsistencyLevel + } + if cs.QueryTimeout != nil { + objectMap["queryTimeout"] = cs.QueryTimeout + } + if cs.AdditionalColumns != nil { + objectMap["additionalColumns"] = cs.AdditionalColumns + } + if cs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = cs.SourceRetryCount + } + if cs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = cs.SourceRetryWait + } + if cs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections + } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + for k, v := range cs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsCassandraSource() (*CassandraSource, bool) { + return &cs, true +} + +// AsTeradataSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &cs, true +} + +// AsBinarySource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for CassandraSource. +func (cs CassandraSource) AsBasicCopySource() (BasicCopySource, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for CassandraSource struct. +func (cs *CassandraSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + cs.Query = query + } + case "consistencyLevel": + if v != nil { + var consistencyLevel CassandraSourceReadConsistencyLevels + err = json.Unmarshal(*v, &consistencyLevel) + if err != nil { + return err + } + cs.ConsistencyLevel = consistencyLevel + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + cs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + cs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cs.AdditionalProperties == nil { + cs.AdditionalProperties = make(map[string]interface{}) + } + cs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + cs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + cs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// CassandraTableDataset the Cassandra database dataset. +type CassandraTableDataset struct { + // CassandraTableDatasetTypeProperties - Cassandra dataset properties. + *CassandraTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CassandraTableDataset. +func (ctd CassandraTableDataset) MarshalJSON() ([]byte, error) { + ctd.Type = TypeBasicDatasetTypeCassandraTable + objectMap := make(map[string]interface{}) + if ctd.CassandraTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = ctd.CassandraTableDatasetTypeProperties + } + if ctd.Description != nil { + objectMap["description"] = ctd.Description + } + if ctd.Structure != nil { + objectMap["structure"] = ctd.Structure + } + if ctd.Schema != nil { + objectMap["schema"] = ctd.Schema + } + if ctd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ctd.LinkedServiceName + } + if ctd.Parameters != nil { + objectMap["parameters"] = ctd.Parameters + } + if ctd.Annotations != nil { + objectMap["annotations"] = ctd.Annotations + } + if ctd.Folder != nil { + objectMap["folder"] = ctd.Folder + } + if ctd.Type != "" { + objectMap["type"] = ctd.Type + } + for k, v := range ctd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return &ctd, true +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for CassandraTableDataset. +func (ctd CassandraTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &ctd, true +} + +// UnmarshalJSON is the custom unmarshaler for CassandraTableDataset struct. +func (ctd *CassandraTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var cassandraTableDatasetTypeProperties CassandraTableDatasetTypeProperties + err = json.Unmarshal(*v, &cassandraTableDatasetTypeProperties) + if err != nil { + return err + } + ctd.CassandraTableDatasetTypeProperties = &cassandraTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ctd.AdditionalProperties == nil { + ctd.AdditionalProperties = make(map[string]interface{}) + } + ctd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ctd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ctd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ctd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ctd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ctd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ctd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ctd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ctd.Type = typeVar + } + } + } + + return nil +} + +// CassandraTableDatasetTypeProperties cassandra dataset properties. +type CassandraTableDatasetTypeProperties struct { + // TableName - The table name of the Cassandra database. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` + // Keyspace - The keyspace of the Cassandra database. Type: string (or Expression with resultType string). + Keyspace interface{} `json:"keyspace,omitempty"` +} + +// ChainingTrigger trigger that allows the referenced pipeline to depend on other pipeline runs based on +// runDimension Name/Value pairs. Upstream pipelines should declare the same runDimension Name and their +// runs should have the values for those runDimensions. The referenced pipeline run would be triggered if +// the values for the runDimension match for all upstream pipeline runs. +type ChainingTrigger struct { + // Pipeline - Pipeline for which runs are created when all upstream pipelines complete successfully. + Pipeline *TriggerPipelineReference `json:"pipeline,omitempty"` + // ChainingTriggerTypeProperties - Chaining Trigger properties. + *ChainingTriggerTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ChainingTrigger. +func (ct ChainingTrigger) MarshalJSON() ([]byte, error) { + ct.Type = TypeBasicTriggerTypeChainingTrigger + objectMap := make(map[string]interface{}) + if ct.Pipeline != nil { + objectMap["pipeline"] = ct.Pipeline + } + if ct.ChainingTriggerTypeProperties != nil { + objectMap["typeProperties"] = ct.ChainingTriggerTypeProperties + } + if ct.Description != nil { + objectMap["description"] = ct.Description + } + if ct.Annotations != nil { + objectMap["annotations"] = ct.Annotations + } + if ct.Type != "" { + objectMap["type"] = ct.Type + } + for k, v := range ct.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return &ct, true +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return nil, false +} + +// AsTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for ChainingTrigger. +func (ct ChainingTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &ct, true +} + +// UnmarshalJSON is the custom unmarshaler for ChainingTrigger struct. +func (ct *ChainingTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "pipeline": + if v != nil { + var pipeline TriggerPipelineReference + err = json.Unmarshal(*v, &pipeline) + if err != nil { + return err + } + ct.Pipeline = &pipeline + } + case "typeProperties": + if v != nil { + var chainingTriggerTypeProperties ChainingTriggerTypeProperties + err = json.Unmarshal(*v, &chainingTriggerTypeProperties) + if err != nil { + return err + } + ct.ChainingTriggerTypeProperties = &chainingTriggerTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ct.AdditionalProperties == nil { + ct.AdditionalProperties = make(map[string]interface{}) + } + ct.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ct.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + ct.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ct.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ct.Type = typeVar + } + } + } + + return nil +} + +// ChainingTriggerTypeProperties chaining Trigger properties. +type ChainingTriggerTypeProperties struct { + // DependsOn - Upstream Pipelines. + DependsOn *[]PipelineReference `json:"dependsOn,omitempty"` + // RunDimension - Run Dimension property that needs to be emitted by upstream pipelines. + RunDimension *string `json:"runDimension,omitempty"` +} + +// 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 { + // Folder - The folder that this CDC is in. If not specified, CDC will appear at the root level. + Folder *ChangeDataCaptureFolder `json:"folder,omitempty"` + // Description - The description of the change data capture. + Description *string `json:"description,omitempty"` + // SourceConnectionsInfo - List of sources connections that can be used as sources in the CDC. + SourceConnectionsInfo *[]MapperSourceConnectionsInfo `json:"sourceConnectionsInfo,omitempty"` + // TargetConnectionsInfo - List of target connections that can be used as sources in the CDC. + TargetConnectionsInfo *[]MapperTargetConnectionsInfo `json:"targetConnectionsInfo,omitempty"` + // Policy - CDC policy + Policy *MapperPolicy `json:"policy,omitempty"` + // AllowVNetOverride - A boolean to determine if the vnet configuration needs to be overwritten. + AllowVNetOverride *bool `json:"allowVNetOverride,omitempty"` + // Status - Status of the CDC as to if it is running or stopped. + Status *string `json:"status,omitempty"` +} + +// ChangeDataCaptureFolder the folder that this CDC is in. If not specified, CDC will appear at the root +// level. +type ChangeDataCaptureFolder struct { + // Name - The name of the folder that this CDC is in. + Name *string `json:"name,omitempty"` +} + +// ChangeDataCaptureListResponse a list of change data capture resources. +type ChangeDataCaptureListResponse struct { + autorest.Response `json:"-"` + // Value - Lists all resources of type change data capture. + Value *[]ChangeDataCaptureResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// ChangeDataCaptureListResponseIterator provides access to a complete listing of ChangeDataCaptureResource +// values. +type ChangeDataCaptureListResponseIterator struct { + i int + page ChangeDataCaptureListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ChangeDataCaptureListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ChangeDataCaptureListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ChangeDataCaptureListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ChangeDataCaptureListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ChangeDataCaptureListResponseIterator) Response() ChangeDataCaptureListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ChangeDataCaptureListResponseIterator) Value() ChangeDataCaptureResource { + if !iter.page.NotDone() { + return ChangeDataCaptureResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ChangeDataCaptureListResponseIterator type. +func NewChangeDataCaptureListResponseIterator(page ChangeDataCaptureListResponsePage) ChangeDataCaptureListResponseIterator { + return ChangeDataCaptureListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (cdclr ChangeDataCaptureListResponse) IsEmpty() bool { + return cdclr.Value == nil || len(*cdclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (cdclr ChangeDataCaptureListResponse) hasNextLink() bool { + return cdclr.NextLink != nil && len(*cdclr.NextLink) != 0 +} + +// changeDataCaptureListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (cdclr ChangeDataCaptureListResponse) changeDataCaptureListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !cdclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(cdclr.NextLink))) +} + +// ChangeDataCaptureListResponsePage contains a page of ChangeDataCaptureResource values. +type ChangeDataCaptureListResponsePage struct { + fn func(context.Context, ChangeDataCaptureListResponse) (ChangeDataCaptureListResponse, error) + cdclr ChangeDataCaptureListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ChangeDataCaptureListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ChangeDataCaptureListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.cdclr) + if err != nil { + return err + } + page.cdclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ChangeDataCaptureListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ChangeDataCaptureListResponsePage) NotDone() bool { + return !page.cdclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ChangeDataCaptureListResponsePage) Response() ChangeDataCaptureListResponse { + return page.cdclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ChangeDataCaptureListResponsePage) Values() []ChangeDataCaptureResource { + if page.cdclr.IsEmpty() { + return nil + } + return *page.cdclr.Value +} + +// Creates a new instance of the ChangeDataCaptureListResponsePage type. +func NewChangeDataCaptureListResponsePage(cur ChangeDataCaptureListResponse, getNextPage func(context.Context, ChangeDataCaptureListResponse) (ChangeDataCaptureListResponse, error)) ChangeDataCaptureListResponsePage { + return ChangeDataCaptureListResponsePage{ + fn: getNextPage, + cdclr: cur, + } +} + +// ChangeDataCaptureResource change data capture resource type. +type ChangeDataCaptureResource struct { + autorest.Response `json:"-"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ChangeDataCapture - Properties of the change data capture. + *ChangeDataCapture `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ChangeDataCaptureResource. +func (cdcr ChangeDataCaptureResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cdcr.ChangeDataCapture != nil { + objectMap["properties"] = cdcr.ChangeDataCapture + } + for k, v := range cdcr.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ChangeDataCaptureResource struct. +func (cdcr *ChangeDataCaptureResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdcr.AdditionalProperties == nil { + cdcr.AdditionalProperties = make(map[string]interface{}) + } + cdcr.AdditionalProperties[k] = additionalProperties + } + case "properties": + if v != nil { + var changeDataCapture ChangeDataCapture + err = json.Unmarshal(*v, &changeDataCapture) + if err != nil { + return err + } + cdcr.ChangeDataCapture = &changeDataCapture + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + cdcr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + cdcr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdcr.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + cdcr.Etag = &etag + } + } + } + + return nil +} + +// CloudError the object that defines the structure of an Azure Data Factory error response. +type CloudError struct { + // CloudErrorBody - Error data + *CloudErrorBody `json:"error,omitempty"` +} + +// MarshalJSON is the custom marshaler for CloudError. +func (ce CloudError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ce.CloudErrorBody != nil { + objectMap["error"] = ce.CloudErrorBody + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CloudError struct. +func (ce *CloudError) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "error": + if v != nil { + var cloudErrorBody CloudErrorBody + err = json.Unmarshal(*v, &cloudErrorBody) + if err != nil { + return err + } + ce.CloudErrorBody = &cloudErrorBody + } + } + } + + return nil +} + +// CloudErrorBody the object that defines the structure of an Azure Data Factory error. +type CloudErrorBody struct { + // Code - Error code. + Code *string `json:"code,omitempty"` + // Message - Error message. + Message *string `json:"message,omitempty"` + // Target - Property name/path in request associated with error. + Target *string `json:"target,omitempty"` + // Details - Array with additional error details. + Details *[]CloudError `json:"details,omitempty"` +} + +// CmdkeySetup the custom setup of running cmdkey commands. +type CmdkeySetup struct { + // CmdkeySetupTypeProperties - Cmdkey command custom setup type properties. + *CmdkeySetupTypeProperties `json:"typeProperties,omitempty"` + // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CmdkeySetup. +func (cs CmdkeySetup) MarshalJSON() ([]byte, error) { + cs.Type = TypeBasicCustomSetupBaseTypeCmdkeySetup + objectMap := make(map[string]interface{}) + if cs.CmdkeySetupTypeProperties != nil { + objectMap["typeProperties"] = cs.CmdkeySetupTypeProperties + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + return json.Marshal(objectMap) +} + +// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { + return nil, false +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsComponentSetup() (*ComponentSetup, bool) { + return nil, false +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return nil, false +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsCmdkeySetup() (*CmdkeySetup, bool) { + return &cs, true +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsCustomSetupBase() (*CustomSetupBase, bool) { + return nil, false +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for CmdkeySetup. +func (cs CmdkeySetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for CmdkeySetup struct. +func (cs *CmdkeySetup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var cmdkeySetupTypeProperties CmdkeySetupTypeProperties + err = json.Unmarshal(*v, &cmdkeySetupTypeProperties) + if err != nil { + return err + } + cs.CmdkeySetupTypeProperties = &cmdkeySetupTypeProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCustomSetupBase + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// CmdkeySetupTypeProperties cmdkey command custom setup type properties. +type CmdkeySetupTypeProperties struct { + // TargetName - The server name of data source access. Type: string. + TargetName interface{} `json:"targetName,omitempty"` + // UserName - The user name of data source access. Type: string. + UserName interface{} `json:"userName,omitempty"` + // Password - The password of data source access. + Password BasicSecretBase `json:"password,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for CmdkeySetupTypeProperties struct. +func (cstp *CmdkeySetupTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "targetName": + if v != nil { + var targetName interface{} + err = json.Unmarshal(*v, &targetName) + if err != nil { + return err + } + cstp.TargetName = targetName + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + cstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + cstp.Password = password + } + } + } + + return nil +} + +// CommonDataServiceForAppsEntityDataset the Common Data Service for Apps entity dataset. +type CommonDataServiceForAppsEntityDataset struct { + // CommonDataServiceForAppsEntityDatasetTypeProperties - Common Data Service for Apps entity dataset properties. + *CommonDataServiceForAppsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) MarshalJSON() ([]byte, error) { + cdsfaed.Type = TypeBasicDatasetTypeCommonDataServiceForAppsEntity + objectMap := make(map[string]interface{}) + if cdsfaed.CommonDataServiceForAppsEntityDatasetTypeProperties != nil { + objectMap["typeProperties"] = cdsfaed.CommonDataServiceForAppsEntityDatasetTypeProperties + } + if cdsfaed.Description != nil { + objectMap["description"] = cdsfaed.Description + } + if cdsfaed.Structure != nil { + objectMap["structure"] = cdsfaed.Structure + } + if cdsfaed.Schema != nil { + objectMap["schema"] = cdsfaed.Schema + } + if cdsfaed.LinkedServiceName != nil { + objectMap["linkedServiceName"] = cdsfaed.LinkedServiceName + } + if cdsfaed.Parameters != nil { + objectMap["parameters"] = cdsfaed.Parameters + } + if cdsfaed.Annotations != nil { + objectMap["annotations"] = cdsfaed.Annotations + } + if cdsfaed.Folder != nil { + objectMap["folder"] = cdsfaed.Folder + } + if cdsfaed.Type != "" { + objectMap["type"] = cdsfaed.Type + } + for k, v := range cdsfaed.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return &cdsfaed, true +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. +func (cdsfaed CommonDataServiceForAppsEntityDataset) AsBasicDataset() (BasicDataset, bool) { + return &cdsfaed, true +} + +// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsEntityDataset struct. +func (cdsfaed *CommonDataServiceForAppsEntityDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var commonDataServiceForAppsEntityDatasetTypeProperties CommonDataServiceForAppsEntityDatasetTypeProperties + err = json.Unmarshal(*v, &commonDataServiceForAppsEntityDatasetTypeProperties) + if err != nil { + return err + } + cdsfaed.CommonDataServiceForAppsEntityDatasetTypeProperties = &commonDataServiceForAppsEntityDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsfaed.AdditionalProperties == nil { + cdsfaed.AdditionalProperties = make(map[string]interface{}) + } + cdsfaed.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cdsfaed.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + cdsfaed.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + cdsfaed.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + cdsfaed.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cdsfaed.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cdsfaed.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + cdsfaed.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsfaed.Type = typeVar + } + } + } + + return nil +} + +// CommonDataServiceForAppsEntityDatasetTypeProperties common Data Service for Apps entity dataset +// properties. +type CommonDataServiceForAppsEntityDatasetTypeProperties struct { + // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). + EntityName interface{} `json:"entityName,omitempty"` +} + +// CommonDataServiceForAppsLinkedService common Data Service for Apps linked service. +type CommonDataServiceForAppsLinkedService struct { + // CommonDataServiceForAppsLinkedServiceTypeProperties - Common Data Service for Apps linked service properties. + *CommonDataServiceForAppsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) MarshalJSON() ([]byte, error) { + cdsfals.Type = TypeBasicLinkedServiceTypeCommonDataServiceForApps + objectMap := make(map[string]interface{}) + if cdsfals.CommonDataServiceForAppsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = cdsfals.CommonDataServiceForAppsLinkedServiceTypeProperties + } + if cdsfals.ConnectVia != nil { + objectMap["connectVia"] = cdsfals.ConnectVia + } + if cdsfals.Description != nil { + objectMap["description"] = cdsfals.Description + } + if cdsfals.Parameters != nil { + objectMap["parameters"] = cdsfals.Parameters + } + if cdsfals.Annotations != nil { + objectMap["annotations"] = cdsfals.Annotations + } + if cdsfals.Type != "" { + objectMap["type"] = cdsfals.Type + } + for k, v := range cdsfals.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return &cdsfals, true +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. +func (cdsfals CommonDataServiceForAppsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &cdsfals, true +} + +// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsLinkedService struct. +func (cdsfals *CommonDataServiceForAppsLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var commonDataServiceForAppsLinkedServiceTypeProperties CommonDataServiceForAppsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &commonDataServiceForAppsLinkedServiceTypeProperties) + if err != nil { + return err + } + cdsfals.CommonDataServiceForAppsLinkedServiceTypeProperties = &commonDataServiceForAppsLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsfals.AdditionalProperties == nil { + cdsfals.AdditionalProperties = make(map[string]interface{}) + } + cdsfals.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + cdsfals.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cdsfals.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cdsfals.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cdsfals.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsfals.Type = typeVar + } + } + } + + return nil +} + +// CommonDataServiceForAppsLinkedServiceTypeProperties common Data Service for Apps linked service +// properties. +type CommonDataServiceForAppsLinkedServiceTypeProperties struct { + // DeploymentType - 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"` + // HostName - 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"` + // Port - 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"` + // ServiceURI - 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"` + // OrganizationName - 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"` + // AuthenticationType - 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"` + // Username - User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password to access the Common Data Service for Apps instance. + Password BasicSecretBase `json:"password,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalCredentialType - 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"` + // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsLinkedServiceTypeProperties struct. +func (cdsfalstp *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "deploymentType": + if v != nil { + var deploymentType interface{} + err = json.Unmarshal(*v, &deploymentType) + if err != nil { + return err + } + cdsfalstp.DeploymentType = deploymentType + } + case "hostName": + if v != nil { + var hostName interface{} + err = json.Unmarshal(*v, &hostName) + if err != nil { + return err + } + cdsfalstp.HostName = hostName + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + cdsfalstp.Port = port + } + case "serviceUri": + if v != nil { + var serviceURI interface{} + err = json.Unmarshal(*v, &serviceURI) + if err != nil { + return err + } + cdsfalstp.ServiceURI = serviceURI + } + case "organizationName": + if v != nil { + var organizationName interface{} + err = json.Unmarshal(*v, &organizationName) + if err != nil { + return err + } + cdsfalstp.OrganizationName = organizationName + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + cdsfalstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + cdsfalstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + cdsfalstp.Password = password + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + cdsfalstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalCredentialType": + if v != nil { + var servicePrincipalCredentialType interface{} + err = json.Unmarshal(*v, &servicePrincipalCredentialType) + if err != nil { + return err + } + cdsfalstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + } + case "servicePrincipalCredential": + if v != nil { + servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + cdsfalstp.ServicePrincipalCredential = servicePrincipalCredential + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + cdsfalstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// CommonDataServiceForAppsSink a copy activity Common Data Service for Apps sink. +type CommonDataServiceForAppsSink struct { + // WriteBehavior - The write behavior for the operation. + WriteBehavior *string `json:"writeBehavior,omitempty"` + // IgnoreNullValues - 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"` + // AlternateKeyName - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) MarshalJSON() ([]byte, error) { + cdsfas.Type = TypeBasicCopySinkTypeCommonDataServiceForAppsSink + objectMap := make(map[string]interface{}) + if cdsfas.WriteBehavior != nil { + objectMap["writeBehavior"] = cdsfas.WriteBehavior + } + if cdsfas.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = cdsfas.IgnoreNullValues + } + if cdsfas.AlternateKeyName != nil { + objectMap["alternateKeyName"] = cdsfas.AlternateKeyName + } + if cdsfas.WriteBatchSize != nil { + objectMap["writeBatchSize"] = cdsfas.WriteBatchSize + } + if cdsfas.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = cdsfas.WriteBatchTimeout + } + if cdsfas.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = cdsfas.SinkRetryCount + } + if cdsfas.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = cdsfas.SinkRetryWait + } + if cdsfas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cdsfas.MaxConcurrentConnections + } + if cdsfas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdsfas.DisableMetricsCollection + } + if cdsfas.Type != "" { + objectMap["type"] = cdsfas.Type + } + for k, v := range cdsfas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return &cdsfas, true +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for CommonDataServiceForAppsSink. +func (cdsfas CommonDataServiceForAppsSink) AsBasicCopySink() (BasicCopySink, bool) { + return &cdsfas, true +} + +// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsSink struct. +func (cdsfas *CommonDataServiceForAppsSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior string + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + cdsfas.WriteBehavior = &writeBehavior + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + cdsfas.IgnoreNullValues = ignoreNullValues + } + case "alternateKeyName": + if v != nil { + var alternateKeyName interface{} + err = json.Unmarshal(*v, &alternateKeyName) + if err != nil { + return err + } + cdsfas.AlternateKeyName = alternateKeyName + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsfas.AdditionalProperties == nil { + cdsfas.AdditionalProperties = make(map[string]interface{}) + } + cdsfas.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + cdsfas.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + cdsfas.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + cdsfas.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + cdsfas.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cdsfas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdsfas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsfas.Type = typeVar + } + } + } + + return nil +} + +// CommonDataServiceForAppsSource a copy activity Common Data Service for Apps source. +type CommonDataServiceForAppsSource struct { + // Query - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) MarshalJSON() ([]byte, error) { + cdsfas.Type = TypeBasicCopySourceTypeCommonDataServiceForAppsSource + objectMap := make(map[string]interface{}) + if cdsfas.Query != nil { + objectMap["query"] = cdsfas.Query + } + if cdsfas.AdditionalColumns != nil { + objectMap["additionalColumns"] = cdsfas.AdditionalColumns + } + if cdsfas.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = cdsfas.SourceRetryCount + } + if cdsfas.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = cdsfas.SourceRetryWait + } + if cdsfas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cdsfas.MaxConcurrentConnections + } + if cdsfas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdsfas.DisableMetricsCollection + } + if cdsfas.Type != "" { + objectMap["type"] = cdsfas.Type + } + for k, v := range cdsfas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return &cdsfas, true +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. +func (cdsfas CommonDataServiceForAppsSource) AsBasicCopySource() (BasicCopySource, bool) { + return &cdsfas, true +} + +// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsSource struct. +func (cdsfas *CommonDataServiceForAppsSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + cdsfas.Query = query + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + cdsfas.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsfas.AdditionalProperties == nil { + cdsfas.AdditionalProperties = make(map[string]interface{}) + } + cdsfas.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + cdsfas.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + cdsfas.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cdsfas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdsfas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsfas.Type = typeVar + } + } + } + + return nil +} + +// ComponentSetup the custom setup of installing 3rd party components. +type ComponentSetup struct { + // LicensedComponentSetupTypeProperties - Install 3rd party component type properties. + *LicensedComponentSetupTypeProperties `json:"typeProperties,omitempty"` + // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ComponentSetup. +func (cs ComponentSetup) MarshalJSON() ([]byte, error) { + cs.Type = TypeBasicCustomSetupBaseTypeComponentSetup + objectMap := make(map[string]interface{}) + if cs.LicensedComponentSetupTypeProperties != nil { + objectMap["typeProperties"] = cs.LicensedComponentSetupTypeProperties + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + return json.Marshal(objectMap) +} + +// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { + return nil, false +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsComponentSetup() (*ComponentSetup, bool) { + return &cs, true +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return nil, false +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { + return nil, false +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { + return nil, false +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for ComponentSetup. +func (cs ComponentSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for ComponentSetup struct. +func (cs *ComponentSetup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var licensedComponentSetupTypeProperties LicensedComponentSetupTypeProperties + err = json.Unmarshal(*v, &licensedComponentSetupTypeProperties) + if err != nil { + return err + } + cs.LicensedComponentSetupTypeProperties = &licensedComponentSetupTypeProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCustomSetupBase + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// BasicCompressionReadSettings compression read settings. +type BasicCompressionReadSettings interface { + AsTarGZipReadSettings() (*TarGZipReadSettings, bool) + AsTarReadSettings() (*TarReadSettings, bool) + AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) + AsCompressionReadSettings() (*CompressionReadSettings, bool) +} + +// CompressionReadSettings compression read settings. +type CompressionReadSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicCompressionReadSettingsTypeCompressionReadSettings', 'TypeBasicCompressionReadSettingsTypeTarGZipReadSettings', 'TypeBasicCompressionReadSettingsTypeTarReadSettings', 'TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings' + Type TypeBasicCompressionReadSettings `json:"type,omitempty"` +} + +func unmarshalBasicCompressionReadSettings(body []byte) (BasicCompressionReadSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicCompressionReadSettingsTypeTarGZipReadSettings): + var tgzrs TarGZipReadSettings + err := json.Unmarshal(body, &tgzrs) + return tgzrs, err + case string(TypeBasicCompressionReadSettingsTypeTarReadSettings): + var trs TarReadSettings + err := json.Unmarshal(body, &trs) + return trs, err + case string(TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings): + var zdrs ZipDeflateReadSettings + err := json.Unmarshal(body, &zdrs) + return zdrs, err + default: + var crs CompressionReadSettings + err := json.Unmarshal(body, &crs) + return crs, err + } +} +func unmarshalBasicCompressionReadSettingsArray(body []byte) ([]BasicCompressionReadSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + crsArray := make([]BasicCompressionReadSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + crs, err := unmarshalBasicCompressionReadSettings(*rawMessage) + if err != nil { + return nil, err + } + crsArray[index] = crs + } + return crsArray, nil +} + +// MarshalJSON is the custom marshaler for CompressionReadSettings. +func (crs CompressionReadSettings) MarshalJSON() ([]byte, error) { + crs.Type = TypeBasicCompressionReadSettingsTypeCompressionReadSettings + objectMap := make(map[string]interface{}) + if crs.Type != "" { + objectMap["type"] = crs.Type + } + for k, v := range crs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsTarGZipReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. +func (crs CompressionReadSettings) AsTarGZipReadSettings() (*TarGZipReadSettings, bool) { + return nil, false +} + +// AsTarReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. +func (crs CompressionReadSettings) AsTarReadSettings() (*TarReadSettings, bool) { + return nil, false +} + +// AsZipDeflateReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. +func (crs CompressionReadSettings) AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) { + return nil, false +} + +// AsCompressionReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. +func (crs CompressionReadSettings) AsCompressionReadSettings() (*CompressionReadSettings, bool) { + return &crs, true +} + +// AsBasicCompressionReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. +func (crs CompressionReadSettings) AsBasicCompressionReadSettings() (BasicCompressionReadSettings, bool) { + return &crs, true +} + +// UnmarshalJSON is the custom unmarshaler for CompressionReadSettings struct. +func (crs *CompressionReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if crs.AdditionalProperties == nil { + crs.AdditionalProperties = make(map[string]interface{}) + } + crs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCompressionReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + crs.Type = typeVar + } + } + } + + return nil +} + +// ConcurLinkedService concur Service linked service. +type ConcurLinkedService struct { + // ConcurLinkedServiceTypeProperties - Concur Service linked service properties. + *ConcurLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ConcurLinkedService. +func (cls ConcurLinkedService) MarshalJSON() ([]byte, error) { + cls.Type = TypeBasicLinkedServiceTypeConcur + objectMap := make(map[string]interface{}) + if cls.ConcurLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = cls.ConcurLinkedServiceTypeProperties + } + if cls.ConnectVia != nil { + objectMap["connectVia"] = cls.ConnectVia + } + if cls.Description != nil { + objectMap["description"] = cls.Description + } + if cls.Parameters != nil { + objectMap["parameters"] = cls.Parameters + } + if cls.Annotations != nil { + objectMap["annotations"] = cls.Annotations + } + if cls.Type != "" { + objectMap["type"] = cls.Type + } + for k, v := range cls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return &cls, true +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ConcurLinkedService. +func (cls ConcurLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &cls, true +} + +// UnmarshalJSON is the custom unmarshaler for ConcurLinkedService struct. +func (cls *ConcurLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var concurLinkedServiceTypeProperties ConcurLinkedServiceTypeProperties + err = json.Unmarshal(*v, &concurLinkedServiceTypeProperties) + if err != nil { + return err + } + cls.ConcurLinkedServiceTypeProperties = &concurLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cls.AdditionalProperties == nil { + cls.AdditionalProperties = make(map[string]interface{}) + } + cls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + cls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cls.Type = typeVar + } + } + } + + return nil +} + +// ConcurLinkedServiceTypeProperties concur Service linked service properties. +type ConcurLinkedServiceTypeProperties struct { + // ConnectionProperties - 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"` + // ClientID - Application client_id supplied by Concur App Management. + ClientID interface{} `json:"clientId,omitempty"` + // Username - The user name that you use to access Concur Service. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name that you provided in the username field. + Password BasicSecretBase `json:"password,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ConcurLinkedServiceTypeProperties struct. +func (clstp *ConcurLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionProperties": + if v != nil { + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) + if err != nil { + return err + } + clstp.ConnectionProperties = connectionProperties + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + clstp.ClientID = clientID + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + clstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + clstp.Password = password + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + clstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + clstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + clstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + clstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ConcurObjectDataset concur Service dataset. +type ConcurObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ConcurObjectDataset. +func (cod ConcurObjectDataset) MarshalJSON() ([]byte, error) { + cod.Type = TypeBasicDatasetTypeConcurObject + objectMap := make(map[string]interface{}) + if cod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = cod.GenericDatasetTypeProperties + } + if cod.Description != nil { + objectMap["description"] = cod.Description + } + if cod.Structure != nil { + objectMap["structure"] = cod.Structure + } + if cod.Schema != nil { + objectMap["schema"] = cod.Schema + } + if cod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = cod.LinkedServiceName + } + if cod.Parameters != nil { + objectMap["parameters"] = cod.Parameters + } + if cod.Annotations != nil { + objectMap["annotations"] = cod.Annotations + } + if cod.Folder != nil { + objectMap["folder"] = cod.Folder + } + if cod.Type != "" { + objectMap["type"] = cod.Type + } + for k, v := range cod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return &cod, true +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ConcurObjectDataset. +func (cod ConcurObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &cod, true +} + +// UnmarshalJSON is the custom unmarshaler for ConcurObjectDataset struct. +func (cod *ConcurObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + cod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cod.AdditionalProperties == nil { + cod.AdditionalProperties = make(map[string]interface{}) + } + cod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + cod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + cod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + cod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + cod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cod.Type = typeVar + } + } + } + + return nil +} + +// ConcurSource a copy activity Concur Service source. +type ConcurSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ConcurSource. +func (cs ConcurSource) MarshalJSON() ([]byte, error) { + cs.Type = TypeBasicCopySourceTypeConcurSource + objectMap := make(map[string]interface{}) + if cs.Query != nil { + objectMap["query"] = cs.Query + } + if cs.QueryTimeout != nil { + objectMap["queryTimeout"] = cs.QueryTimeout + } + if cs.AdditionalColumns != nil { + objectMap["additionalColumns"] = cs.AdditionalColumns + } + if cs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = cs.SourceRetryCount + } + if cs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = cs.SourceRetryWait + } + if cs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections + } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + for k, v := range cs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsConcurSource() (*ConcurSource, bool) { + return &cs, true +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &cs, true +} + +// AsBinarySource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ConcurSource. +func (cs ConcurSource) AsBasicCopySource() (BasicCopySource, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for ConcurSource struct. +func (cs *ConcurSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + cs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + cs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + cs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cs.AdditionalProperties == nil { + cs.AdditionalProperties = make(map[string]interface{}) + } + cs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + cs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + cs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// ConnectionStateProperties the connection state of a managed private endpoint +type ConnectionStateProperties struct { + // ActionsRequired - READ-ONLY; The actions required on the managed private endpoint + ActionsRequired *string `json:"actionsRequired,omitempty"` + // Description - READ-ONLY; The managed private endpoint description + Description *string `json:"description,omitempty"` + // Status - READ-ONLY; The approval status + Status *string `json:"status,omitempty"` +} + +// MarshalJSON is the custom marshaler for ConnectionStateProperties. +func (csp ConnectionStateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// BasicControlActivity base class for all control activities like IfCondition, ForEach , Until. +type BasicControlActivity interface { + AsWebHookActivity() (*WebHookActivity, bool) + AsAppendVariableActivity() (*AppendVariableActivity, bool) + AsSetVariableActivity() (*SetVariableActivity, bool) + AsFilterActivity() (*FilterActivity, bool) + AsValidationActivity() (*ValidationActivity, bool) + AsUntilActivity() (*UntilActivity, bool) + AsFailActivity() (*FailActivity, bool) + AsWaitActivity() (*WaitActivity, bool) + AsForEachActivity() (*ForEachActivity, bool) + AsSwitchActivity() (*SwitchActivity, bool) + AsIfConditionActivity() (*IfConditionActivity, bool) + AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) + AsControlActivity() (*ControlActivity, bool) +} + +// ControlActivity base class for all control activities like IfCondition, ForEach , Until. +type ControlActivity struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +func unmarshalBasicControlActivity(body []byte) (BasicControlActivity, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicActivityTypeWebHook): + var wha WebHookActivity + err := json.Unmarshal(body, &wha) + return wha, err + case string(TypeBasicActivityTypeAppendVariable): + var ava AppendVariableActivity + err := json.Unmarshal(body, &ava) + return ava, err + case string(TypeBasicActivityTypeSetVariable): + var sva SetVariableActivity + err := json.Unmarshal(body, &sva) + return sva, err + case string(TypeBasicActivityTypeFilter): + var fa FilterActivity + err := json.Unmarshal(body, &fa) + return fa, err + case string(TypeBasicActivityTypeValidation): + var va ValidationActivity + err := json.Unmarshal(body, &va) + return va, err + case string(TypeBasicActivityTypeUntil): + var ua UntilActivity + err := json.Unmarshal(body, &ua) + return ua, err + case string(TypeBasicActivityTypeFail): + var fa FailActivity + err := json.Unmarshal(body, &fa) + return fa, err + case string(TypeBasicActivityTypeWait): + var wa WaitActivity + err := json.Unmarshal(body, &wa) + return wa, err + case string(TypeBasicActivityTypeForEach): + var fea ForEachActivity + err := json.Unmarshal(body, &fea) + return fea, err + case string(TypeBasicActivityTypeSwitch): + var sa SwitchActivity + err := json.Unmarshal(body, &sa) + return sa, err + case string(TypeBasicActivityTypeIfCondition): + var ica IfConditionActivity + err := json.Unmarshal(body, &ica) + return ica, err + case string(TypeBasicActivityTypeExecutePipeline): + var epa ExecutePipelineActivity + err := json.Unmarshal(body, &epa) + return epa, err + default: + var ca ControlActivity + err := json.Unmarshal(body, &ca) + return ca, err + } +} +func unmarshalBasicControlActivityArray(body []byte) ([]BasicControlActivity, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + caArray := make([]BasicControlActivity, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ca, err := unmarshalBasicControlActivity(*rawMessage) + if err != nil { + return nil, err + } + caArray[index] = ca + } + return caArray, nil +} + +// MarshalJSON is the custom marshaler for ControlActivity. +func (ca ControlActivity) MarshalJSON() ([]byte, error) { + ca.Type = TypeBasicActivityTypeContainer + objectMap := make(map[string]interface{}) + if ca.Name != nil { + objectMap["name"] = ca.Name + } + if ca.Description != nil { + objectMap["description"] = ca.Description + } + if ca.State != "" { + objectMap["state"] = ca.State + } + if ca.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ca.OnInactiveMarkAs + } + if ca.DependsOn != nil { + objectMap["dependsOn"] = ca.DependsOn + } + if ca.UserProperties != nil { + objectMap["userProperties"] = ca.UserProperties + } + if ca.Type != "" { + objectMap["type"] = ca.Type + } + for k, v := range ca.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsControlActivity() (*ControlActivity, bool) { + return &ca, true +} + +// AsBasicControlActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &ca, true +} + +// AsActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ControlActivity. +func (ca ControlActivity) AsBasicActivity() (BasicActivity, bool) { + return &ca, true +} + +// UnmarshalJSON is the custom unmarshaler for ControlActivity struct. +func (ca *ControlActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ca.AdditionalProperties == nil { + ca.AdditionalProperties = make(map[string]interface{}) + } + ca.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ca.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ca.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ca.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ca.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ca.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ca.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ca.Type = typeVar + } + } + } + + return nil +} + +// CopyActivity copy activity. +type CopyActivity struct { + // CopyActivityTypeProperties - Copy activity properties. + *CopyActivityTypeProperties `json:"typeProperties,omitempty"` + // Inputs - List of inputs for the activity. + Inputs *[]DatasetReference `json:"inputs,omitempty"` + // Outputs - List of outputs for the activity. + Outputs *[]DatasetReference `json:"outputs,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CopyActivity. +func (ca CopyActivity) MarshalJSON() ([]byte, error) { + ca.Type = TypeBasicActivityTypeCopy + objectMap := make(map[string]interface{}) + if ca.CopyActivityTypeProperties != nil { + objectMap["typeProperties"] = ca.CopyActivityTypeProperties + } + if ca.Inputs != nil { + objectMap["inputs"] = ca.Inputs + } + if ca.Outputs != nil { + objectMap["outputs"] = ca.Outputs + } + if ca.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ca.LinkedServiceName + } + if ca.Policy != nil { + objectMap["policy"] = ca.Policy + } + if ca.Name != nil { + objectMap["name"] = ca.Name + } + if ca.Description != nil { + objectMap["description"] = ca.Description + } + if ca.State != "" { + objectMap["state"] = ca.State + } + if ca.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ca.OnInactiveMarkAs + } + if ca.DependsOn != nil { + objectMap["dependsOn"] = ca.DependsOn + } + if ca.UserProperties != nil { + objectMap["userProperties"] = ca.UserProperties + } + if ca.Type != "" { + objectMap["type"] = ca.Type + } + for k, v := range ca.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsCopyActivity() (*CopyActivity, bool) { + return &ca, true +} + +// AsExecutionActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ca, true +} + +// AsWebHookActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for CopyActivity. +func (ca CopyActivity) AsBasicActivity() (BasicActivity, bool) { + return &ca, true +} + +// UnmarshalJSON is the custom unmarshaler for CopyActivity struct. +func (ca *CopyActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var copyActivityTypeProperties CopyActivityTypeProperties + err = json.Unmarshal(*v, ©ActivityTypeProperties) + if err != nil { + return err + } + ca.CopyActivityTypeProperties = ©ActivityTypeProperties + } + case "inputs": + if v != nil { + var inputs []DatasetReference + err = json.Unmarshal(*v, &inputs) + if err != nil { + return err + } + ca.Inputs = &inputs + } + case "outputs": + if v != nil { + var outputs []DatasetReference + err = json.Unmarshal(*v, &outputs) + if err != nil { + return err + } + ca.Outputs = &outputs + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ca.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ca.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ca.AdditionalProperties == nil { + ca.AdditionalProperties = make(map[string]interface{}) + } + ca.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ca.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ca.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ca.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ca.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ca.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ca.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ca.Type = typeVar + } + } + } + + return nil +} + +// CopyActivityLogSettings settings for copy activity log. +type CopyActivityLogSettings struct { + // LogLevel - Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). + LogLevel interface{} `json:"logLevel,omitempty"` + // EnableReliableLogging - Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). + EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` +} + +// CopyActivityTypeProperties copy activity properties. +type CopyActivityTypeProperties struct { + // Source - Copy activity source. + Source BasicCopySource `json:"source,omitempty"` + // Sink - Copy activity sink. + Sink BasicCopySink `json:"sink,omitempty"` + // Translator - Copy activity translator. If not specified, tabular translator is used. + Translator interface{} `json:"translator,omitempty"` + // EnableStaging - 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"` + // StagingSettings - Specifies interim staging settings when EnableStaging is true. + StagingSettings *StagingSettings `json:"stagingSettings,omitempty"` + // ParallelCopies - 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"` + // DataIntegrationUnits - 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"` + // EnableSkipIncompatibleRow - Whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean). + EnableSkipIncompatibleRow interface{} `json:"enableSkipIncompatibleRow,omitempty"` + // RedirectIncompatibleRowSettings - Redirect incompatible row settings when EnableSkipIncompatibleRow is true. + RedirectIncompatibleRowSettings *RedirectIncompatibleRowSettings `json:"redirectIncompatibleRowSettings,omitempty"` + // LogStorageSettings - (Deprecated. Please use LogSettings) Log storage settings customer need to provide when enabling session log. + LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` + // LogSettings - Log settings customer needs provide when enabling log. + LogSettings *LogSettings `json:"logSettings,omitempty"` + // PreserveRules - Preserve Rules. + PreserveRules *[]interface{} `json:"preserveRules,omitempty"` + // Preserve - Preserve rules. + Preserve *[]interface{} `json:"preserve,omitempty"` + // ValidateDataConsistency - Whether to enable Data Consistency validation. Type: boolean (or Expression with resultType boolean). + ValidateDataConsistency interface{} `json:"validateDataConsistency,omitempty"` + // SkipErrorFile - Specify the fault tolerance for data consistency. + SkipErrorFile *SkipErrorFile `json:"skipErrorFile,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for CopyActivityTypeProperties struct. +func (catp *CopyActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "source": + if v != nil { + source, err := unmarshalBasicCopySource(*v) + if err != nil { + return err + } + catp.Source = source + } + case "sink": + if v != nil { + sink, err := unmarshalBasicCopySink(*v) + if err != nil { + return err + } + catp.Sink = sink + } + case "translator": + if v != nil { + var translator interface{} + err = json.Unmarshal(*v, &translator) + if err != nil { + return err + } + catp.Translator = translator + } + case "enableStaging": + if v != nil { + var enableStaging interface{} + err = json.Unmarshal(*v, &enableStaging) + if err != nil { + return err + } + catp.EnableStaging = enableStaging + } + case "stagingSettings": + if v != nil { + var stagingSettings StagingSettings + err = json.Unmarshal(*v, &stagingSettings) + if err != nil { + return err + } + catp.StagingSettings = &stagingSettings + } + case "parallelCopies": + if v != nil { + var parallelCopies interface{} + err = json.Unmarshal(*v, ¶llelCopies) + if err != nil { + return err + } + catp.ParallelCopies = parallelCopies + } + case "dataIntegrationUnits": + if v != nil { + var dataIntegrationUnits interface{} + err = json.Unmarshal(*v, &dataIntegrationUnits) + if err != nil { + return err + } + catp.DataIntegrationUnits = dataIntegrationUnits + } + case "enableSkipIncompatibleRow": + if v != nil { + var enableSkipIncompatibleRow interface{} + err = json.Unmarshal(*v, &enableSkipIncompatibleRow) + if err != nil { + return err + } + catp.EnableSkipIncompatibleRow = enableSkipIncompatibleRow + } + case "redirectIncompatibleRowSettings": + if v != nil { + var redirectIncompatibleRowSettings RedirectIncompatibleRowSettings + err = json.Unmarshal(*v, &redirectIncompatibleRowSettings) + if err != nil { + return err + } + catp.RedirectIncompatibleRowSettings = &redirectIncompatibleRowSettings + } + case "logStorageSettings": + if v != nil { + var logStorageSettings LogStorageSettings + err = json.Unmarshal(*v, &logStorageSettings) + if err != nil { + return err + } + catp.LogStorageSettings = &logStorageSettings + } + case "logSettings": + if v != nil { + var logSettings LogSettings + err = json.Unmarshal(*v, &logSettings) + if err != nil { + return err + } + catp.LogSettings = &logSettings + } + case "preserveRules": + if v != nil { + var preserveRules []interface{} + err = json.Unmarshal(*v, &preserveRules) + if err != nil { + return err + } + catp.PreserveRules = &preserveRules + } + case "preserve": + if v != nil { + var preserve []interface{} + err = json.Unmarshal(*v, &preserve) + if err != nil { + return err + } + catp.Preserve = &preserve + } + case "validateDataConsistency": + if v != nil { + var validateDataConsistency interface{} + err = json.Unmarshal(*v, &validateDataConsistency) + if err != nil { + return err + } + catp.ValidateDataConsistency = validateDataConsistency + } + case "skipErrorFile": + if v != nil { + var skipErrorFile SkipErrorFile + err = json.Unmarshal(*v, &skipErrorFile) + if err != nil { + return err + } + catp.SkipErrorFile = &skipErrorFile + } + } + } + + return nil +} + +// CopyComputeScaleProperties copyComputeScale properties for managed integration runtime. +type CopyComputeScaleProperties struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // DataIntegrationUnit - DIU number setting reserved for copy activity execution. Supported values are multiples of 4 in range 4-256. + DataIntegrationUnit *int32 `json:"dataIntegrationUnit,omitempty"` + // TimeToLive - Time to live (in minutes) setting of integration runtime which will execute copy activity. + TimeToLive *int32 `json:"timeToLive,omitempty"` +} + +// MarshalJSON is the custom marshaler for CopyComputeScaleProperties. +func (ccsp CopyComputeScaleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ccsp.DataIntegrationUnit != nil { + objectMap["dataIntegrationUnit"] = ccsp.DataIntegrationUnit + } + if ccsp.TimeToLive != nil { + objectMap["timeToLive"] = ccsp.TimeToLive + } + for k, v := range ccsp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CopyComputeScaleProperties struct. +func (ccsp *CopyComputeScaleProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ccsp.AdditionalProperties == nil { + ccsp.AdditionalProperties = make(map[string]interface{}) + } + ccsp.AdditionalProperties[k] = additionalProperties + } + case "dataIntegrationUnit": + if v != nil { + var dataIntegrationUnit int32 + err = json.Unmarshal(*v, &dataIntegrationUnit) + if err != nil { + return err + } + ccsp.DataIntegrationUnit = &dataIntegrationUnit + } + case "timeToLive": + if v != nil { + var timeToLive int32 + err = json.Unmarshal(*v, &timeToLive) + if err != nil { + return err + } + ccsp.TimeToLive = &timeToLive + } + } + } + + return nil +} + +// BasicCopySink a copy activity sink. +type BasicCopySink interface { + AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) + AsSalesforceV2Sink() (*SalesforceV2Sink, bool) + AsLakeHouseTableSink() (*LakeHouseTableSink, bool) + AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) + AsMongoDbV2Sink() (*MongoDbV2Sink, bool) + AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) + AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) + AsSalesforceSink() (*SalesforceSink, bool) + AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) + AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) + AsDynamicsCrmSink() (*DynamicsCrmSink, bool) + AsDynamicsSink() (*DynamicsSink, bool) + AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) + AsInformixSink() (*InformixSink, bool) + AsOdbcSink() (*OdbcSink, bool) + AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) + AsAzureBlobFSSink() (*AzureBlobFSSink, bool) + AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) + AsOracleSink() (*OracleSink, bool) + AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) + AsSnowflakeSink() (*SnowflakeSink, bool) + AsSQLDWSink() (*SQLDWSink, bool) + AsSQLMISink() (*SQLMISink, bool) + AsAzureSQLSink() (*AzureSQLSink, bool) + AsSQLServerSink() (*SQLServerSink, bool) + AsSQLSink() (*SQLSink, bool) + AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) + AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) + AsFileSystemSink() (*FileSystemSink, bool) + AsBlobSink() (*BlobSink, bool) + AsBinarySink() (*BinarySink, bool) + AsParquetSink() (*ParquetSink, bool) + AsAvroSink() (*AvroSink, bool) + AsAzureTableSink() (*AzureTableSink, bool) + AsAzureQueueSink() (*AzureQueueSink, bool) + AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) + AsWarehouseSink() (*WarehouseSink, bool) + AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) + AsAzureMySQLSink() (*AzureMySQLSink, bool) + AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) + AsRestSink() (*RestSink, bool) + AsOrcSink() (*OrcSink, bool) + AsJSONSink() (*JSONSink, bool) + AsDelimitedTextSink() (*DelimitedTextSink, bool) + AsCopySink() (*CopySink, bool) +} + +// CopySink a copy activity sink. +type CopySink struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +func unmarshalBasicCopySink(body []byte) (BasicCopySink, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink): + var sscvs SalesforceServiceCloudV2Sink + err := json.Unmarshal(body, &sscvs) + return sscvs, err + case string(TypeBasicCopySinkTypeSalesforceV2Sink): + var svs SalesforceV2Sink + err := json.Unmarshal(body, &svs) + return svs, err + case string(TypeBasicCopySinkTypeLakeHouseTableSink): + var lhts LakeHouseTableSink + err := json.Unmarshal(body, &lhts) + return lhts, err + case string(TypeBasicCopySinkTypeCosmosDbMongoDbAPISink): + var cdmdas CosmosDbMongoDbAPISink + err := json.Unmarshal(body, &cdmdas) + return cdmdas, err + case string(TypeBasicCopySinkTypeMongoDbV2Sink): + var mdvs MongoDbV2Sink + err := json.Unmarshal(body, &mdvs) + return mdvs, err + case string(TypeBasicCopySinkTypeMongoDbAtlasSink): + var mdas MongoDbAtlasSink + err := json.Unmarshal(body, &mdas) + return mdas, err + case string(TypeBasicCopySinkTypeSalesforceServiceCloudSink): + var sscs SalesforceServiceCloudSink + err := json.Unmarshal(body, &sscs) + return sscs, err + case string(TypeBasicCopySinkTypeSalesforceSink): + var ss SalesforceSink + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySinkTypeAzureDataExplorerSink): + var ades AzureDataExplorerSink + err := json.Unmarshal(body, &ades) + return ades, err + case string(TypeBasicCopySinkTypeCommonDataServiceForAppsSink): + var cdsfas CommonDataServiceForAppsSink + err := json.Unmarshal(body, &cdsfas) + return cdsfas, err + case string(TypeBasicCopySinkTypeDynamicsCrmSink): + var dcs DynamicsCrmSink + err := json.Unmarshal(body, &dcs) + return dcs, err + case string(TypeBasicCopySinkTypeDynamicsSink): + var ds DynamicsSink + err := json.Unmarshal(body, &ds) + return ds, err + case string(TypeBasicCopySinkTypeMicrosoftAccessSink): + var mas MicrosoftAccessSink + err := json.Unmarshal(body, &mas) + return mas, err + case string(TypeBasicCopySinkTypeInformixSink): + var is InformixSink + err := json.Unmarshal(body, &is) + return is, err + case string(TypeBasicCopySinkTypeOdbcSink): + var osVar OdbcSink + err := json.Unmarshal(body, &osVar) + return osVar, err + case string(TypeBasicCopySinkTypeAzureSearchIndexSink): + var asis AzureSearchIndexSink + err := json.Unmarshal(body, &asis) + return asis, err + case string(TypeBasicCopySinkTypeAzureBlobFSSink): + var abfs AzureBlobFSSink + err := json.Unmarshal(body, &abfs) + return abfs, err + case string(TypeBasicCopySinkTypeAzureDataLakeStoreSink): + var adlss AzureDataLakeStoreSink + err := json.Unmarshal(body, &adlss) + return adlss, err + case string(TypeBasicCopySinkTypeOracleSink): + var osVar OracleSink + err := json.Unmarshal(body, &osVar) + return osVar, err + case string(TypeBasicCopySinkTypeSnowflakeV2Sink): + var svs SnowflakeV2Sink + err := json.Unmarshal(body, &svs) + return svs, err + case string(TypeBasicCopySinkTypeSnowflakeSink): + var ss SnowflakeSink + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySinkTypeSQLDWSink): + var sds SQLDWSink + err := json.Unmarshal(body, &sds) + return sds, err + case string(TypeBasicCopySinkTypeSQLMISink): + var sms SQLMISink + err := json.Unmarshal(body, &sms) + return sms, err + case string(TypeBasicCopySinkTypeAzureSQLSink): + var ass AzureSQLSink + err := json.Unmarshal(body, &ass) + return ass, err + case string(TypeBasicCopySinkTypeSQLServerSink): + var sss SQLServerSink + err := json.Unmarshal(body, &sss) + return sss, err + case string(TypeBasicCopySinkTypeSQLSink): + var ss SQLSink + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySinkTypeCosmosDbSQLAPISink): + var cdsas CosmosDbSQLAPISink + err := json.Unmarshal(body, &cdsas) + return cdsas, err + case string(TypeBasicCopySinkTypeDocumentDbCollectionSink): + var ddcs DocumentDbCollectionSink + err := json.Unmarshal(body, &ddcs) + return ddcs, err + case string(TypeBasicCopySinkTypeFileSystemSink): + var fss FileSystemSink + err := json.Unmarshal(body, &fss) + return fss, err + case string(TypeBasicCopySinkTypeBlobSink): + var bs BlobSink + err := json.Unmarshal(body, &bs) + return bs, err + case string(TypeBasicCopySinkTypeBinarySink): + var bs BinarySink + err := json.Unmarshal(body, &bs) + return bs, err + case string(TypeBasicCopySinkTypeParquetSink): + var ps ParquetSink + err := json.Unmarshal(body, &ps) + return ps, err + case string(TypeBasicCopySinkTypeAvroSink): + var as AvroSink + err := json.Unmarshal(body, &as) + return as, err + case string(TypeBasicCopySinkTypeAzureTableSink): + var ats AzureTableSink + err := json.Unmarshal(body, &ats) + return ats, err + case string(TypeBasicCopySinkTypeAzureQueueSink): + var aqs AzureQueueSink + err := json.Unmarshal(body, &aqs) + return aqs, err + case string(TypeBasicCopySinkTypeSapCloudForCustomerSink): + var scfcs SapCloudForCustomerSink + err := json.Unmarshal(body, &scfcs) + return scfcs, err + case string(TypeBasicCopySinkTypeWarehouseSink): + var ws WarehouseSink + err := json.Unmarshal(body, &ws) + return ws, err + case string(TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink): + var addls AzureDatabricksDeltaLakeSink + err := json.Unmarshal(body, &addls) + return addls, err + case string(TypeBasicCopySinkTypeAzureMySQLSink): + var amss AzureMySQLSink + err := json.Unmarshal(body, &amss) + return amss, err + case string(TypeBasicCopySinkTypeAzurePostgreSQLSink): + var apss AzurePostgreSQLSink + err := json.Unmarshal(body, &apss) + return apss, err + case string(TypeBasicCopySinkTypeRestSink): + var rs RestSink + err := json.Unmarshal(body, &rs) + return rs, err + case string(TypeBasicCopySinkTypeOrcSink): + var osVar OrcSink + err := json.Unmarshal(body, &osVar) + return osVar, err + case string(TypeBasicCopySinkTypeJSONSink): + var js JSONSink + err := json.Unmarshal(body, &js) + return js, err + case string(TypeBasicCopySinkTypeDelimitedTextSink): + var dts DelimitedTextSink + err := json.Unmarshal(body, &dts) + return dts, err + default: + var cs CopySink + err := json.Unmarshal(body, &cs) + return cs, err + } +} +func unmarshalBasicCopySinkArray(body []byte) ([]BasicCopySink, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + csArray := make([]BasicCopySink, len(rawMessages)) + + for index, rawMessage := range rawMessages { + cs, err := unmarshalBasicCopySink(*rawMessage) + if err != nil { + return nil, err + } + csArray[index] = cs + } + return csArray, nil +} + +// MarshalJSON is the custom marshaler for CopySink. +func (cs CopySink) MarshalJSON() ([]byte, error) { + cs.Type = TypeBasicCopySinkTypeCopySink + objectMap := make(map[string]interface{}) + if cs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = cs.WriteBatchSize + } + if cs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = cs.WriteBatchTimeout + } + if cs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = cs.SinkRetryCount + } + if cs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = cs.SinkRetryWait + } + if cs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections + } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + for k, v := range cs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsCopySink() (*CopySink, bool) { + return &cs, true +} + +// AsBasicCopySink is the BasicCopySink implementation for CopySink. +func (cs CopySink) AsBasicCopySink() (BasicCopySink, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for CopySink struct. +func (cs *CopySink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cs.AdditionalProperties == nil { + cs.AdditionalProperties = make(map[string]interface{}) + } + cs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + cs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + cs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + cs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + cs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// BasicCopySource a copy activity source. +type BasicCopySource interface { + AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) + AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) + AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) + AsSnowflakeV2Source() (*SnowflakeV2Source, bool) + AsSnowflakeSource() (*SnowflakeSource, bool) + AsLakeHouseTableSource() (*LakeHouseTableSource, bool) + AsHTTPSource() (*HTTPSource, bool) + AsAzureBlobFSSource() (*AzureBlobFSSource, bool) + AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) + AsOffice365Source() (*Office365Source, bool) + AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) + AsMongoDbV2Source() (*MongoDbV2Source, bool) + AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) + AsMongoDbSource() (*MongoDbSource, bool) + AsWebSource() (*WebSource, bool) + AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) + AsOracleSource() (*OracleSource, bool) + AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) + AsHdfsSource() (*HdfsSource, bool) + AsFileSystemSource() (*FileSystemSource, bool) + AsRestSource() (*RestSource, bool) + AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) + AsODataSource() (*ODataSource, bool) + AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) + AsRelationalSource() (*RelationalSource, bool) + AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) + AsDynamicsCrmSource() (*DynamicsCrmSource, bool) + AsDynamicsSource() (*DynamicsSource, bool) + AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) + AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) + AsBlobSource() (*BlobSource, bool) + AsServiceNowV2Source() (*ServiceNowV2Source, bool) + AsSalesforceV2Source() (*SalesforceV2Source, bool) + AsWarehouseSource() (*WarehouseSource, bool) + AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) + AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) + AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) + AsDynamicsAXSource() (*DynamicsAXSource, bool) + AsResponsysSource() (*ResponsysSource, bool) + AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) + AsVerticaSource() (*VerticaSource, bool) + AsNetezzaSource() (*NetezzaSource, bool) + AsZohoSource() (*ZohoSource, bool) + AsXeroSource() (*XeroSource, bool) + AsSquareSource() (*SquareSource, bool) + AsSparkSource() (*SparkSource, bool) + AsShopifySource() (*ShopifySource, bool) + AsServiceNowSource() (*ServiceNowSource, bool) + AsQuickBooksSource() (*QuickBooksSource, bool) + AsPrestoSource() (*PrestoSource, bool) + AsPhoenixSource() (*PhoenixSource, bool) + AsPaypalSource() (*PaypalSource, bool) + AsMarketoSource() (*MarketoSource, bool) + AsAzureMariaDBSource() (*AzureMariaDBSource, bool) + AsMariaDBSource() (*MariaDBSource, bool) + AsMagentoSource() (*MagentoSource, bool) + AsJiraSource() (*JiraSource, bool) + AsImpalaSource() (*ImpalaSource, bool) + AsHubspotSource() (*HubspotSource, bool) + AsHiveSource() (*HiveSource, bool) + AsHBaseSource() (*HBaseSource, bool) + AsGreenplumSource() (*GreenplumSource, bool) + AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) + AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) + AsEloquaSource() (*EloquaSource, bool) + AsDrillSource() (*DrillSource, bool) + AsCouchbaseSource() (*CouchbaseSource, bool) + AsConcurSource() (*ConcurSource, bool) + AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) + AsAmazonMWSSource() (*AmazonMWSSource, bool) + AsCassandraSource() (*CassandraSource, bool) + AsTeradataSource() (*TeradataSource, bool) + AsAzureMySQLSource() (*AzureMySQLSource, bool) + AsSQLDWSource() (*SQLDWSource, bool) + AsSQLMISource() (*SQLMISource, bool) + AsAzureSQLSource() (*AzureSQLSource, bool) + AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) + AsSQLServerSource() (*SQLServerSource, bool) + AsSQLSource() (*SQLSource, bool) + AsSapTableSource() (*SapTableSource, bool) + AsSapOdpSource() (*SapOdpSource, bool) + AsSapOpenHubSource() (*SapOpenHubSource, bool) + AsSapHanaSource() (*SapHanaSource, bool) + AsSapEccSource() (*SapEccSource, bool) + AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) + AsSalesforceSource() (*SalesforceSource, bool) + AsSapBwSource() (*SapBwSource, bool) + AsSybaseSource() (*SybaseSource, bool) + AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) + AsPostgreSQLSource() (*PostgreSQLSource, bool) + AsMySQLSource() (*MySQLSource, bool) + AsOdbcSource() (*OdbcSource, bool) + AsDb2Source() (*Db2Source, bool) + AsInformixSource() (*InformixSource, bool) + AsAzureTableSource() (*AzureTableSource, bool) + AsTabularSource() (*TabularSource, bool) + AsBasicTabularSource() (BasicTabularSource, bool) + AsBinarySource() (*BinarySource, bool) + AsOrcSource() (*OrcSource, bool) + AsXMLSource() (*XMLSource, bool) + AsJSONSource() (*JSONSource, bool) + AsDelimitedTextSource() (*DelimitedTextSource, bool) + AsParquetSource() (*ParquetSource, bool) + AsExcelSource() (*ExcelSource, bool) + AsAvroSource() (*AvroSource, bool) + AsCopySource() (*CopySource, bool) +} + +// CopySource a copy activity source. +type CopySource struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +func unmarshalBasicCopySource(body []byte) (BasicCopySource, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicCopySourceTypeSalesforceServiceCloudV2Source): + var sscvs SalesforceServiceCloudV2Source + err := json.Unmarshal(body, &sscvs) + return sscvs, err + case string(TypeBasicCopySourceTypeSharePointOnlineListSource): + var spols SharePointOnlineListSource + err := json.Unmarshal(body, &spols) + return spols, err + case string(TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource): + var addls AzureDatabricksDeltaLakeSource + err := json.Unmarshal(body, &addls) + return addls, err + case string(TypeBasicCopySourceTypeSnowflakeV2Source): + var svs SnowflakeV2Source + err := json.Unmarshal(body, &svs) + return svs, err + case string(TypeBasicCopySourceTypeSnowflakeSource): + var ss SnowflakeSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeLakeHouseTableSource): + var lhts LakeHouseTableSource + err := json.Unmarshal(body, &lhts) + return lhts, err + case string(TypeBasicCopySourceTypeHTTPSource): + var hs HTTPSource + err := json.Unmarshal(body, &hs) + return hs, err + case string(TypeBasicCopySourceTypeAzureBlobFSSource): + var abfs AzureBlobFSSource + err := json.Unmarshal(body, &abfs) + return abfs, err + case string(TypeBasicCopySourceTypeAzureDataLakeStoreSource): + var adlss AzureDataLakeStoreSource + err := json.Unmarshal(body, &adlss) + return adlss, err + case string(TypeBasicCopySourceTypeOffice365Source): + var o3s Office365Source + err := json.Unmarshal(body, &o3s) + return o3s, err + case string(TypeBasicCopySourceTypeCosmosDbMongoDbAPISource): + var cdmdas CosmosDbMongoDbAPISource + err := json.Unmarshal(body, &cdmdas) + return cdmdas, err + case string(TypeBasicCopySourceTypeMongoDbV2Source): + var mdvs MongoDbV2Source + err := json.Unmarshal(body, &mdvs) + return mdvs, err + case string(TypeBasicCopySourceTypeMongoDbAtlasSource): + var mdas MongoDbAtlasSource + err := json.Unmarshal(body, &mdas) + return mdas, err + case string(TypeBasicCopySourceTypeMongoDbSource): + var mds MongoDbSource + err := json.Unmarshal(body, &mds) + return mds, err + case string(TypeBasicCopySourceTypeWebSource): + var ws WebSource + err := json.Unmarshal(body, &ws) + return ws, err + case string(TypeBasicCopySourceTypeAmazonRdsForOracleSource): + var arfos AmazonRdsForOracleSource + err := json.Unmarshal(body, &arfos) + return arfos, err + case string(TypeBasicCopySourceTypeOracleSource): + var osVar OracleSource + err := json.Unmarshal(body, &osVar) + return osVar, err + case string(TypeBasicCopySourceTypeAzureDataExplorerSource): + var ades AzureDataExplorerSource + err := json.Unmarshal(body, &ades) + return ades, err + case string(TypeBasicCopySourceTypeHdfsSource): + var hs HdfsSource + err := json.Unmarshal(body, &hs) + return hs, err + case string(TypeBasicCopySourceTypeFileSystemSource): + var fss FileSystemSource + err := json.Unmarshal(body, &fss) + return fss, err + case string(TypeBasicCopySourceTypeRestSource): + var rs RestSource + err := json.Unmarshal(body, &rs) + return rs, err + case string(TypeBasicCopySourceTypeSalesforceServiceCloudSource): + var sscs SalesforceServiceCloudSource + err := json.Unmarshal(body, &sscs) + return sscs, err + case string(TypeBasicCopySourceTypeODataSource): + var ods ODataSource + err := json.Unmarshal(body, &ods) + return ods, err + case string(TypeBasicCopySourceTypeMicrosoftAccessSource): + var mas MicrosoftAccessSource + err := json.Unmarshal(body, &mas) + return mas, err + case string(TypeBasicCopySourceTypeRelationalSource): + var rs RelationalSource + err := json.Unmarshal(body, &rs) + return rs, err + case string(TypeBasicCopySourceTypeCommonDataServiceForAppsSource): + var cdsfas CommonDataServiceForAppsSource + err := json.Unmarshal(body, &cdsfas) + return cdsfas, err + case string(TypeBasicCopySourceTypeDynamicsCrmSource): + var dcs DynamicsCrmSource + err := json.Unmarshal(body, &dcs) + return dcs, err + case string(TypeBasicCopySourceTypeDynamicsSource): + var ds DynamicsSource + err := json.Unmarshal(body, &ds) + return ds, err + case string(TypeBasicCopySourceTypeCosmosDbSQLAPISource): + var cdsas CosmosDbSQLAPISource + err := json.Unmarshal(body, &cdsas) + return cdsas, err + case string(TypeBasicCopySourceTypeDocumentDbCollectionSource): + var ddcs DocumentDbCollectionSource + err := json.Unmarshal(body, &ddcs) + return ddcs, err + case string(TypeBasicCopySourceTypeBlobSource): + var bs BlobSource + err := json.Unmarshal(body, &bs) + return bs, err + case string(TypeBasicCopySourceTypeServiceNowV2Source): + var snvs ServiceNowV2Source + err := json.Unmarshal(body, &snvs) + return snvs, err + case string(TypeBasicCopySourceTypeSalesforceV2Source): + var svs SalesforceV2Source + err := json.Unmarshal(body, &svs) + return svs, err + case string(TypeBasicCopySourceTypeWarehouseSource): + var ws WarehouseSource + err := json.Unmarshal(body, &ws) + return ws, err + case string(TypeBasicCopySourceTypeAmazonRedshiftSource): + var ars AmazonRedshiftSource + err := json.Unmarshal(body, &ars) + return ars, err + case string(TypeBasicCopySourceTypeGoogleAdWordsSource): + var gaws GoogleAdWordsSource + err := json.Unmarshal(body, &gaws) + return gaws, err + case string(TypeBasicCopySourceTypeOracleServiceCloudSource): + var oscs OracleServiceCloudSource + err := json.Unmarshal(body, &oscs) + return oscs, err + case string(TypeBasicCopySourceTypeDynamicsAXSource): + var das DynamicsAXSource + err := json.Unmarshal(body, &das) + return das, err + case string(TypeBasicCopySourceTypeResponsysSource): + var rs ResponsysSource + err := json.Unmarshal(body, &rs) + return rs, err + case string(TypeBasicCopySourceTypeSalesforceMarketingCloudSource): + var smcs SalesforceMarketingCloudSource + err := json.Unmarshal(body, &smcs) + return smcs, err + case string(TypeBasicCopySourceTypeVerticaSource): + var vs VerticaSource + err := json.Unmarshal(body, &vs) + return vs, err + case string(TypeBasicCopySourceTypeNetezzaSource): + var ns NetezzaSource + err := json.Unmarshal(body, &ns) + return ns, err + case string(TypeBasicCopySourceTypeZohoSource): + var zs ZohoSource + err := json.Unmarshal(body, &zs) + return zs, err + case string(TypeBasicCopySourceTypeXeroSource): + var xs XeroSource + err := json.Unmarshal(body, &xs) + return xs, err + case string(TypeBasicCopySourceTypeSquareSource): + var ss SquareSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeSparkSource): + var ss SparkSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeShopifySource): + var ss ShopifySource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeServiceNowSource): + var sns ServiceNowSource + err := json.Unmarshal(body, &sns) + return sns, err + case string(TypeBasicCopySourceTypeQuickBooksSource): + var qbs QuickBooksSource + err := json.Unmarshal(body, &qbs) + return qbs, err + case string(TypeBasicCopySourceTypePrestoSource): + var ps PrestoSource + err := json.Unmarshal(body, &ps) + return ps, err + case string(TypeBasicCopySourceTypePhoenixSource): + var ps PhoenixSource + err := json.Unmarshal(body, &ps) + return ps, err + case string(TypeBasicCopySourceTypePaypalSource): + var ps PaypalSource + err := json.Unmarshal(body, &ps) + return ps, err + case string(TypeBasicCopySourceTypeMarketoSource): + var ms MarketoSource + err := json.Unmarshal(body, &ms) + return ms, err + case string(TypeBasicCopySourceTypeAzureMariaDBSource): + var amds AzureMariaDBSource + err := json.Unmarshal(body, &amds) + return amds, err + case string(TypeBasicCopySourceTypeMariaDBSource): + var mds MariaDBSource + err := json.Unmarshal(body, &mds) + return mds, err + case string(TypeBasicCopySourceTypeMagentoSource): + var ms MagentoSource + err := json.Unmarshal(body, &ms) + return ms, err + case string(TypeBasicCopySourceTypeJiraSource): + var js JiraSource + err := json.Unmarshal(body, &js) + return js, err + case string(TypeBasicCopySourceTypeImpalaSource): + var is ImpalaSource + err := json.Unmarshal(body, &is) + return is, err + case string(TypeBasicCopySourceTypeHubspotSource): + var hs HubspotSource + err := json.Unmarshal(body, &hs) + return hs, err + case string(TypeBasicCopySourceTypeHiveSource): + var hs HiveSource + err := json.Unmarshal(body, &hs) + return hs, err + case string(TypeBasicCopySourceTypeHBaseSource): + var hbs HBaseSource + err := json.Unmarshal(body, &hbs) + return hbs, err + case string(TypeBasicCopySourceTypeGreenplumSource): + var gs GreenplumSource + err := json.Unmarshal(body, &gs) + return gs, err + case string(TypeBasicCopySourceTypeGoogleBigQueryV2Source): + var gbqvs GoogleBigQueryV2Source + err := json.Unmarshal(body, &gbqvs) + return gbqvs, err + case string(TypeBasicCopySourceTypeGoogleBigQuerySource): + var gbqs GoogleBigQuerySource + err := json.Unmarshal(body, &gbqs) + return gbqs, err + case string(TypeBasicCopySourceTypeEloquaSource): + var es EloquaSource + err := json.Unmarshal(body, &es) + return es, err + case string(TypeBasicCopySourceTypeDrillSource): + var ds DrillSource + err := json.Unmarshal(body, &ds) + return ds, err + case string(TypeBasicCopySourceTypeCouchbaseSource): + var cs CouchbaseSource + err := json.Unmarshal(body, &cs) + return cs, err + case string(TypeBasicCopySourceTypeConcurSource): + var cs ConcurSource + err := json.Unmarshal(body, &cs) + return cs, err + case string(TypeBasicCopySourceTypeAzurePostgreSQLSource): + var apss AzurePostgreSQLSource + err := json.Unmarshal(body, &apss) + return apss, err + case string(TypeBasicCopySourceTypeAmazonMWSSource): + var ams AmazonMWSSource + err := json.Unmarshal(body, &ams) + return ams, err + case string(TypeBasicCopySourceTypeCassandraSource): + var cs CassandraSource + err := json.Unmarshal(body, &cs) + return cs, err + case string(TypeBasicCopySourceTypeTeradataSource): + var ts TeradataSource + err := json.Unmarshal(body, &ts) + return ts, err + case string(TypeBasicCopySourceTypeAzureMySQLSource): + var amss AzureMySQLSource + err := json.Unmarshal(body, &amss) + return amss, err + case string(TypeBasicCopySourceTypeSQLDWSource): + var sds SQLDWSource + err := json.Unmarshal(body, &sds) + return sds, err + case string(TypeBasicCopySourceTypeSQLMISource): + var sms SQLMISource + err := json.Unmarshal(body, &sms) + return sms, err + case string(TypeBasicCopySourceTypeAzureSQLSource): + var ass AzureSQLSource + err := json.Unmarshal(body, &ass) + return ass, err + case string(TypeBasicCopySourceTypeAmazonRdsForSQLServerSource): + var arfsss AmazonRdsForSQLServerSource + err := json.Unmarshal(body, &arfsss) + return arfsss, err + case string(TypeBasicCopySourceTypeSQLServerSource): + var sss SQLServerSource + err := json.Unmarshal(body, &sss) + return sss, err + case string(TypeBasicCopySourceTypeSQLSource): + var ss SQLSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeSapTableSource): + var sts SapTableSource + err := json.Unmarshal(body, &sts) + return sts, err + case string(TypeBasicCopySourceTypeSapOdpSource): + var sos SapOdpSource + err := json.Unmarshal(body, &sos) + return sos, err + case string(TypeBasicCopySourceTypeSapOpenHubSource): + var sohs SapOpenHubSource + err := json.Unmarshal(body, &sohs) + return sohs, err + case string(TypeBasicCopySourceTypeSapHanaSource): + var shs SapHanaSource + err := json.Unmarshal(body, &shs) + return shs, err + case string(TypeBasicCopySourceTypeSapEccSource): + var ses SapEccSource + err := json.Unmarshal(body, &ses) + return ses, err + case string(TypeBasicCopySourceTypeSapCloudForCustomerSource): + var scfcs SapCloudForCustomerSource + err := json.Unmarshal(body, &scfcs) + return scfcs, err + case string(TypeBasicCopySourceTypeSalesforceSource): + var ss SalesforceSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeSapBwSource): + var sbs SapBwSource + err := json.Unmarshal(body, &sbs) + return sbs, err + case string(TypeBasicCopySourceTypeSybaseSource): + var ss SybaseSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypePostgreSQLV2Source): + var psvs PostgreSQLV2Source + err := json.Unmarshal(body, &psvs) + return psvs, err + case string(TypeBasicCopySourceTypePostgreSQLSource): + var pss PostgreSQLSource + err := json.Unmarshal(body, &pss) + return pss, err + case string(TypeBasicCopySourceTypeMySQLSource): + var mss MySQLSource + err := json.Unmarshal(body, &mss) + return mss, err + case string(TypeBasicCopySourceTypeOdbcSource): + var osVar OdbcSource + err := json.Unmarshal(body, &osVar) + return osVar, err + case string(TypeBasicCopySourceTypeDb2Source): + var d2s Db2Source + err := json.Unmarshal(body, &d2s) + return d2s, err + case string(TypeBasicCopySourceTypeInformixSource): + var is InformixSource + err := json.Unmarshal(body, &is) + return is, err + case string(TypeBasicCopySourceTypeAzureTableSource): + var ats AzureTableSource + err := json.Unmarshal(body, &ats) + return ats, err + case string(TypeBasicCopySourceTypeTabularSource): + var ts TabularSource + err := json.Unmarshal(body, &ts) + return ts, err + case string(TypeBasicCopySourceTypeBinarySource): + var bs BinarySource + err := json.Unmarshal(body, &bs) + return bs, err + case string(TypeBasicCopySourceTypeOrcSource): + var osVar OrcSource + err := json.Unmarshal(body, &osVar) + return osVar, err + case string(TypeBasicCopySourceTypeXMLSource): + var xs XMLSource + err := json.Unmarshal(body, &xs) + return xs, err + case string(TypeBasicCopySourceTypeJSONSource): + var js JSONSource + err := json.Unmarshal(body, &js) + return js, err + case string(TypeBasicCopySourceTypeDelimitedTextSource): + var dts DelimitedTextSource + err := json.Unmarshal(body, &dts) + return dts, err + case string(TypeBasicCopySourceTypeParquetSource): + var ps ParquetSource + err := json.Unmarshal(body, &ps) + return ps, err + case string(TypeBasicCopySourceTypeExcelSource): + var es ExcelSource + err := json.Unmarshal(body, &es) + return es, err + case string(TypeBasicCopySourceTypeAvroSource): + var as AvroSource + err := json.Unmarshal(body, &as) + return as, err + default: + var cs CopySource + err := json.Unmarshal(body, &cs) + return cs, err + } +} +func unmarshalBasicCopySourceArray(body []byte) ([]BasicCopySource, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + csArray := make([]BasicCopySource, len(rawMessages)) + + for index, rawMessage := range rawMessages { + cs, err := unmarshalBasicCopySource(*rawMessage) + if err != nil { + return nil, err + } + csArray[index] = cs + } + return csArray, nil +} + +// MarshalJSON is the custom marshaler for CopySource. +func (cs CopySource) MarshalJSON() ([]byte, error) { + cs.Type = TypeBasicCopySourceTypeCopySource + objectMap := make(map[string]interface{}) + if cs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = cs.SourceRetryCount + } + if cs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = cs.SourceRetryWait + } + if cs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections + } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + for k, v := range cs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsCopySource() (*CopySource, bool) { + return &cs, true +} + +// AsBasicCopySource is the BasicCopySource implementation for CopySource. +func (cs CopySource) AsBasicCopySource() (BasicCopySource, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for CopySource struct. +func (cs *CopySource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cs.AdditionalProperties == nil { + cs.AdditionalProperties = make(map[string]interface{}) + } + cs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + cs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + cs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// BasicCopyTranslator a copy activity translator. +type BasicCopyTranslator interface { + AsTabularTranslator() (*TabularTranslator, bool) + AsCopyTranslator() (*CopyTranslator, bool) +} + +// CopyTranslator a copy activity translator. +type CopyTranslator struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicCopyTranslatorTypeCopyTranslator', 'TypeBasicCopyTranslatorTypeTabularTranslator' + Type TypeBasicCopyTranslator `json:"type,omitempty"` +} + +func unmarshalBasicCopyTranslator(body []byte) (BasicCopyTranslator, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicCopyTranslatorTypeTabularTranslator): + var tt TabularTranslator + err := json.Unmarshal(body, &tt) + return tt, err + default: + var ct CopyTranslator + err := json.Unmarshal(body, &ct) + return ct, err + } +} +func unmarshalBasicCopyTranslatorArray(body []byte) ([]BasicCopyTranslator, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + ctArray := make([]BasicCopyTranslator, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ct, err := unmarshalBasicCopyTranslator(*rawMessage) + if err != nil { + return nil, err + } + ctArray[index] = ct + } + return ctArray, nil +} + +// MarshalJSON is the custom marshaler for CopyTranslator. +func (ct CopyTranslator) MarshalJSON() ([]byte, error) { + ct.Type = TypeBasicCopyTranslatorTypeCopyTranslator + objectMap := make(map[string]interface{}) + if ct.Type != "" { + objectMap["type"] = ct.Type + } + for k, v := range ct.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsTabularTranslator is the BasicCopyTranslator implementation for CopyTranslator. +func (ct CopyTranslator) AsTabularTranslator() (*TabularTranslator, bool) { + return nil, false +} + +// AsCopyTranslator is the BasicCopyTranslator implementation for CopyTranslator. +func (ct CopyTranslator) AsCopyTranslator() (*CopyTranslator, bool) { + return &ct, true +} + +// AsBasicCopyTranslator is the BasicCopyTranslator implementation for CopyTranslator. +func (ct CopyTranslator) AsBasicCopyTranslator() (BasicCopyTranslator, bool) { + return &ct, true +} + +// UnmarshalJSON is the custom unmarshaler for CopyTranslator struct. +func (ct *CopyTranslator) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ct.AdditionalProperties == nil { + ct.AdditionalProperties = make(map[string]interface{}) + } + ct.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCopyTranslator + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ct.Type = typeVar + } + } + } + + return nil +} + +// CosmosDbLinkedService microsoft Azure Cosmos Database (CosmosDB) linked service. +type CosmosDbLinkedService struct { + // CosmosDbLinkedServiceTypeProperties - CosmosDB linked service properties. + *CosmosDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) MarshalJSON() ([]byte, error) { + cdls.Type = TypeBasicLinkedServiceTypeCosmosDb + objectMap := make(map[string]interface{}) + if cdls.CosmosDbLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = cdls.CosmosDbLinkedServiceTypeProperties + } + if cdls.ConnectVia != nil { + objectMap["connectVia"] = cdls.ConnectVia + } + if cdls.Description != nil { + objectMap["description"] = cdls.Description + } + if cdls.Parameters != nil { + objectMap["parameters"] = cdls.Parameters + } + if cdls.Annotations != nil { + objectMap["annotations"] = cdls.Annotations + } + if cdls.Type != "" { + objectMap["type"] = cdls.Type + } + for k, v := range cdls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return &cdls, true +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. +func (cdls CosmosDbLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &cdls, true +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbLinkedService struct. +func (cdls *CosmosDbLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var cosmosDbLinkedServiceTypeProperties CosmosDbLinkedServiceTypeProperties + err = json.Unmarshal(*v, &cosmosDbLinkedServiceTypeProperties) + if err != nil { + return err + } + cdls.CosmosDbLinkedServiceTypeProperties = &cosmosDbLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdls.AdditionalProperties == nil { + cdls.AdditionalProperties = make(map[string]interface{}) + } + cdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + cdls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cdls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cdls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cdls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdls.Type = typeVar + } + } + } + + return nil +} + +// CosmosDbLinkedServiceTypeProperties cosmosDB linked service properties. +type CosmosDbLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // AccountEndpoint - The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string) + AccountEndpoint interface{} `json:"accountEndpoint,omitempty"` + // Database - The name of the database. Type: string (or Expression with resultType string) + Database interface{} `json:"database,omitempty"` + // AccountKey - The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference. + AccountKey BasicSecretBase `json:"accountKey,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalCredentialType - The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string. + ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` + // Tenant - 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"` + // AzureCloudType - 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"` + // ConnectionMode - The connection mode used to access CosmosDB account. Type: string. Possible values include: 'CosmosDbConnectionModeGateway', 'CosmosDbConnectionModeDirect' + ConnectionMode CosmosDbConnectionMode `json:"connectionMode,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbLinkedServiceTypeProperties struct. +func (cdlstp *CosmosDbLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + cdlstp.ConnectionString = connectionString + } + case "accountEndpoint": + if v != nil { + var accountEndpoint interface{} + err = json.Unmarshal(*v, &accountEndpoint) + if err != nil { + return err + } + cdlstp.AccountEndpoint = accountEndpoint + } + case "database": + if v != nil { + var databaseVar interface{} + err = json.Unmarshal(*v, &databaseVar) + if err != nil { + return err + } + cdlstp.Database = databaseVar + } + case "accountKey": + if v != nil { + accountKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + cdlstp.AccountKey = accountKey + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + cdlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalCredentialType": + if v != nil { + var servicePrincipalCredentialType interface{} + err = json.Unmarshal(*v, &servicePrincipalCredentialType) + if err != nil { + return err + } + cdlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + } + case "servicePrincipalCredential": + if v != nil { + servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + cdlstp.ServicePrincipalCredential = servicePrincipalCredential + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + cdlstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + cdlstp.AzureCloudType = azureCloudType + } + case "connectionMode": + if v != nil { + var connectionMode CosmosDbConnectionMode + err = json.Unmarshal(*v, &connectionMode) + if err != nil { + return err + } + cdlstp.ConnectionMode = connectionMode + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + cdlstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + cdlstp.Credential = &credential + } + } + } + + return nil +} + +// CosmosDbMongoDbAPICollectionDataset the CosmosDB (MongoDB API) database dataset. +type CosmosDbMongoDbAPICollectionDataset struct { + // CosmosDbMongoDbAPICollectionDatasetTypeProperties - CosmosDB (MongoDB API) database dataset properties. + *CosmosDbMongoDbAPICollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) MarshalJSON() ([]byte, error) { + cdmdacd.Type = TypeBasicDatasetTypeCosmosDbMongoDbAPICollection + objectMap := make(map[string]interface{}) + if cdmdacd.CosmosDbMongoDbAPICollectionDatasetTypeProperties != nil { + objectMap["typeProperties"] = cdmdacd.CosmosDbMongoDbAPICollectionDatasetTypeProperties + } + if cdmdacd.Description != nil { + objectMap["description"] = cdmdacd.Description + } + if cdmdacd.Structure != nil { + objectMap["structure"] = cdmdacd.Structure + } + if cdmdacd.Schema != nil { + objectMap["schema"] = cdmdacd.Schema + } + if cdmdacd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = cdmdacd.LinkedServiceName + } + if cdmdacd.Parameters != nil { + objectMap["parameters"] = cdmdacd.Parameters + } + if cdmdacd.Annotations != nil { + objectMap["annotations"] = cdmdacd.Annotations + } + if cdmdacd.Folder != nil { + objectMap["folder"] = cdmdacd.Folder + } + if cdmdacd.Type != "" { + objectMap["type"] = cdmdacd.Type + } + for k, v := range cdmdacd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return &cdmdacd, true +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. +func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsBasicDataset() (BasicDataset, bool) { + return &cdmdacd, true +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbMongoDbAPICollectionDataset struct. +func (cdmdacd *CosmosDbMongoDbAPICollectionDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var cosmosDbMongoDbAPICollectionDatasetTypeProperties CosmosDbMongoDbAPICollectionDatasetTypeProperties + err = json.Unmarshal(*v, &cosmosDbMongoDbAPICollectionDatasetTypeProperties) + if err != nil { + return err + } + cdmdacd.CosmosDbMongoDbAPICollectionDatasetTypeProperties = &cosmosDbMongoDbAPICollectionDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdmdacd.AdditionalProperties == nil { + cdmdacd.AdditionalProperties = make(map[string]interface{}) + } + cdmdacd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cdmdacd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + cdmdacd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + cdmdacd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + cdmdacd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cdmdacd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cdmdacd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + cdmdacd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdmdacd.Type = typeVar + } + } + } + + return nil +} + +// CosmosDbMongoDbAPICollectionDatasetTypeProperties cosmosDB (MongoDB API) database dataset properties. +type CosmosDbMongoDbAPICollectionDatasetTypeProperties struct { + // Collection - The collection name of the CosmosDB (MongoDB API) database. Type: string (or Expression with resultType string). + Collection interface{} `json:"collection,omitempty"` +} + +// CosmosDbMongoDbAPILinkedService linked service for CosmosDB (MongoDB API) data source. +type CosmosDbMongoDbAPILinkedService struct { + // CosmosDbMongoDbAPILinkedServiceTypeProperties - CosmosDB (MongoDB API) linked service properties. + *CosmosDbMongoDbAPILinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) MarshalJSON() ([]byte, error) { + cdmdals.Type = TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI + objectMap := make(map[string]interface{}) + if cdmdals.CosmosDbMongoDbAPILinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = cdmdals.CosmosDbMongoDbAPILinkedServiceTypeProperties + } + if cdmdals.ConnectVia != nil { + objectMap["connectVia"] = cdmdals.ConnectVia + } + if cdmdals.Description != nil { + objectMap["description"] = cdmdals.Description + } + if cdmdals.Parameters != nil { + objectMap["parameters"] = cdmdals.Parameters + } + if cdmdals.Annotations != nil { + objectMap["annotations"] = cdmdals.Annotations + } + if cdmdals.Type != "" { + objectMap["type"] = cdmdals.Type + } + for k, v := range cdmdals.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return &cdmdals, true +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. +func (cdmdals CosmosDbMongoDbAPILinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &cdmdals, true +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbMongoDbAPILinkedService struct. +func (cdmdals *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var cosmosDbMongoDbAPILinkedServiceTypeProperties CosmosDbMongoDbAPILinkedServiceTypeProperties + err = json.Unmarshal(*v, &cosmosDbMongoDbAPILinkedServiceTypeProperties) + if err != nil { + return err + } + cdmdals.CosmosDbMongoDbAPILinkedServiceTypeProperties = &cosmosDbMongoDbAPILinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdmdals.AdditionalProperties == nil { + cdmdals.AdditionalProperties = make(map[string]interface{}) + } + cdmdals.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + cdmdals.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cdmdals.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cdmdals.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cdmdals.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdmdals.Type = typeVar + } + } + } + + return nil +} + +// CosmosDbMongoDbAPILinkedServiceTypeProperties cosmosDB (MongoDB API) linked service properties. +type CosmosDbMongoDbAPILinkedServiceTypeProperties struct { + // IsServerVersionAbove32 - 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"` + // ConnectionString - The CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Database - 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"` +} + +// CosmosDbMongoDbAPISink a copy activity sink for a CosmosDB (MongoDB API) database. +type CosmosDbMongoDbAPISink struct { + // WriteBehavior - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) MarshalJSON() ([]byte, error) { + cdmdas.Type = TypeBasicCopySinkTypeCosmosDbMongoDbAPISink + objectMap := make(map[string]interface{}) + if cdmdas.WriteBehavior != nil { + objectMap["writeBehavior"] = cdmdas.WriteBehavior + } + if cdmdas.WriteBatchSize != nil { + objectMap["writeBatchSize"] = cdmdas.WriteBatchSize + } + if cdmdas.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = cdmdas.WriteBatchTimeout + } + if cdmdas.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = cdmdas.SinkRetryCount + } + if cdmdas.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = cdmdas.SinkRetryWait + } + if cdmdas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cdmdas.MaxConcurrentConnections + } + if cdmdas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdmdas.DisableMetricsCollection + } + if cdmdas.Type != "" { + objectMap["type"] = cdmdas.Type + } + for k, v := range cdmdas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return &cdmdas, true +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. +func (cdmdas CosmosDbMongoDbAPISink) AsBasicCopySink() (BasicCopySink, bool) { + return &cdmdas, true +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbMongoDbAPISink struct. +func (cdmdas *CosmosDbMongoDbAPISink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + cdmdas.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdmdas.AdditionalProperties == nil { + cdmdas.AdditionalProperties = make(map[string]interface{}) + } + cdmdas.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + cdmdas.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + cdmdas.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + cdmdas.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + cdmdas.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cdmdas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdmdas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdmdas.Type = typeVar + } + } + } + + return nil +} + +// CosmosDbMongoDbAPISource a copy activity source for a CosmosDB (MongoDB API) database. +type CosmosDbMongoDbAPISource struct { + // Filter - 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"` + // CursorMethods - Cursor methods for Mongodb query. + CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` + // BatchSize - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) MarshalJSON() ([]byte, error) { + cdmdas.Type = TypeBasicCopySourceTypeCosmosDbMongoDbAPISource + objectMap := make(map[string]interface{}) + if cdmdas.Filter != nil { + objectMap["filter"] = cdmdas.Filter + } + if cdmdas.CursorMethods != nil { + objectMap["cursorMethods"] = cdmdas.CursorMethods + } + if cdmdas.BatchSize != nil { + objectMap["batchSize"] = cdmdas.BatchSize + } + if cdmdas.QueryTimeout != nil { + objectMap["queryTimeout"] = cdmdas.QueryTimeout + } + if cdmdas.AdditionalColumns != nil { + objectMap["additionalColumns"] = cdmdas.AdditionalColumns + } + if cdmdas.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = cdmdas.SourceRetryCount + } + if cdmdas.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = cdmdas.SourceRetryWait + } + if cdmdas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cdmdas.MaxConcurrentConnections + } + if cdmdas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdmdas.DisableMetricsCollection + } + if cdmdas.Type != "" { + objectMap["type"] = cdmdas.Type + } + for k, v := range cdmdas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return &cdmdas, true +} + +// AsMongoDbV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. +func (cdmdas CosmosDbMongoDbAPISource) AsBasicCopySource() (BasicCopySource, bool) { + return &cdmdas, true +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbMongoDbAPISource struct. +func (cdmdas *CosmosDbMongoDbAPISource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "filter": + if v != nil { + var filter interface{} + err = json.Unmarshal(*v, &filter) + if err != nil { + return err + } + cdmdas.Filter = filter + } + case "cursorMethods": + if v != nil { + var cursorMethods MongoDbCursorMethodsProperties + err = json.Unmarshal(*v, &cursorMethods) + if err != nil { + return err + } + cdmdas.CursorMethods = &cursorMethods + } + case "batchSize": + if v != nil { + var batchSize interface{} + err = json.Unmarshal(*v, &batchSize) + if err != nil { + return err + } + cdmdas.BatchSize = batchSize + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + cdmdas.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + cdmdas.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdmdas.AdditionalProperties == nil { + cdmdas.AdditionalProperties = make(map[string]interface{}) + } + cdmdas.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + cdmdas.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + cdmdas.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cdmdas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdmdas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdmdas.Type = typeVar + } + } + } + + return nil +} + +// CosmosDbSQLAPICollectionDataset microsoft Azure CosmosDB (SQL API) Collection dataset. +type CosmosDbSQLAPICollectionDataset struct { + // CosmosDbSQLAPICollectionDatasetTypeProperties - CosmosDB (SQL API) Collection dataset properties. + *CosmosDbSQLAPICollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) MarshalJSON() ([]byte, error) { + cdsacd.Type = TypeBasicDatasetTypeCosmosDbSQLAPICollection + objectMap := make(map[string]interface{}) + if cdsacd.CosmosDbSQLAPICollectionDatasetTypeProperties != nil { + objectMap["typeProperties"] = cdsacd.CosmosDbSQLAPICollectionDatasetTypeProperties + } + if cdsacd.Description != nil { + objectMap["description"] = cdsacd.Description + } + if cdsacd.Structure != nil { + objectMap["structure"] = cdsacd.Structure + } + if cdsacd.Schema != nil { + objectMap["schema"] = cdsacd.Schema + } + if cdsacd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = cdsacd.LinkedServiceName + } + if cdsacd.Parameters != nil { + objectMap["parameters"] = cdsacd.Parameters + } + if cdsacd.Annotations != nil { + objectMap["annotations"] = cdsacd.Annotations + } + if cdsacd.Folder != nil { + objectMap["folder"] = cdsacd.Folder + } + if cdsacd.Type != "" { + objectMap["type"] = cdsacd.Type + } + for k, v := range cdsacd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return &cdsacd, true +} + +// AsCustomDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. +func (cdsacd CosmosDbSQLAPICollectionDataset) AsBasicDataset() (BasicDataset, bool) { + return &cdsacd, true +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbSQLAPICollectionDataset struct. +func (cdsacd *CosmosDbSQLAPICollectionDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var cosmosDbSQLAPICollectionDatasetTypeProperties CosmosDbSQLAPICollectionDatasetTypeProperties + err = json.Unmarshal(*v, &cosmosDbSQLAPICollectionDatasetTypeProperties) + if err != nil { + return err + } + cdsacd.CosmosDbSQLAPICollectionDatasetTypeProperties = &cosmosDbSQLAPICollectionDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsacd.AdditionalProperties == nil { + cdsacd.AdditionalProperties = make(map[string]interface{}) + } + cdsacd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cdsacd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + cdsacd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + cdsacd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + cdsacd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cdsacd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cdsacd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + cdsacd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsacd.Type = typeVar + } + } + } + + return nil +} + +// CosmosDbSQLAPICollectionDatasetTypeProperties cosmosDB (SQL API) Collection dataset properties. +type CosmosDbSQLAPICollectionDatasetTypeProperties struct { + // CollectionName - CosmosDB (SQL API) collection name. Type: string (or Expression with resultType string). + CollectionName interface{} `json:"collectionName,omitempty"` +} + +// CosmosDbSQLAPISink a copy activity Azure CosmosDB (SQL API) Collection sink. +type CosmosDbSQLAPISink struct { + // WriteBehavior - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) MarshalJSON() ([]byte, error) { + cdsas.Type = TypeBasicCopySinkTypeCosmosDbSQLAPISink + objectMap := make(map[string]interface{}) + if cdsas.WriteBehavior != nil { + objectMap["writeBehavior"] = cdsas.WriteBehavior + } + if cdsas.WriteBatchSize != nil { + objectMap["writeBatchSize"] = cdsas.WriteBatchSize + } + if cdsas.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = cdsas.WriteBatchTimeout + } + if cdsas.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = cdsas.SinkRetryCount + } + if cdsas.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = cdsas.SinkRetryWait + } + if cdsas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cdsas.MaxConcurrentConnections + } + if cdsas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdsas.DisableMetricsCollection + } + if cdsas.Type != "" { + objectMap["type"] = cdsas.Type + } + for k, v := range cdsas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return &cdsas, true +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for CosmosDbSQLAPISink. +func (cdsas CosmosDbSQLAPISink) AsBasicCopySink() (BasicCopySink, bool) { + return &cdsas, true +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbSQLAPISink struct. +func (cdsas *CosmosDbSQLAPISink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + cdsas.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsas.AdditionalProperties == nil { + cdsas.AdditionalProperties = make(map[string]interface{}) + } + cdsas.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + cdsas.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + cdsas.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + cdsas.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + cdsas.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cdsas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdsas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsas.Type = typeVar + } + } + } + + return nil +} + +// CosmosDbSQLAPISource a copy activity Azure CosmosDB (SQL API) Collection source. +type CosmosDbSQLAPISource struct { + // Query - SQL API query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // PageSize - Page size of the result. Type: integer (or Expression with resultType integer). + PageSize interface{} `json:"pageSize,omitempty"` + // PreferredRegions - Preferred regions. Type: array of strings (or Expression with resultType array of strings). + PreferredRegions interface{} `json:"preferredRegions,omitempty"` + // DetectDatetime - Whether detect primitive values as datetime values. Type: boolean (or Expression with resultType boolean). + DetectDatetime interface{} `json:"detectDatetime,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) MarshalJSON() ([]byte, error) { + cdsas.Type = TypeBasicCopySourceTypeCosmosDbSQLAPISource + objectMap := make(map[string]interface{}) + if cdsas.Query != nil { + objectMap["query"] = cdsas.Query + } + if cdsas.PageSize != nil { + objectMap["pageSize"] = cdsas.PageSize + } + if cdsas.PreferredRegions != nil { + objectMap["preferredRegions"] = cdsas.PreferredRegions + } + if cdsas.DetectDatetime != nil { + objectMap["detectDatetime"] = cdsas.DetectDatetime + } + if cdsas.AdditionalColumns != nil { + objectMap["additionalColumns"] = cdsas.AdditionalColumns + } + if cdsas.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = cdsas.SourceRetryCount + } + if cdsas.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = cdsas.SourceRetryWait + } + if cdsas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cdsas.MaxConcurrentConnections + } + if cdsas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cdsas.DisableMetricsCollection + } + if cdsas.Type != "" { + objectMap["type"] = cdsas.Type + } + for k, v := range cdsas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return &cdsas, true +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for CosmosDbSQLAPISource. +func (cdsas CosmosDbSQLAPISource) AsBasicCopySource() (BasicCopySource, bool) { + return &cdsas, true +} + +// UnmarshalJSON is the custom unmarshaler for CosmosDbSQLAPISource struct. +func (cdsas *CosmosDbSQLAPISource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + cdsas.Query = query + } + case "pageSize": + if v != nil { + var pageSize interface{} + err = json.Unmarshal(*v, &pageSize) + if err != nil { + return err + } + cdsas.PageSize = pageSize + } + case "preferredRegions": + if v != nil { + var preferredRegions interface{} + err = json.Unmarshal(*v, &preferredRegions) + if err != nil { + return err + } + cdsas.PreferredRegions = preferredRegions + } + case "detectDatetime": + if v != nil { + var detectDatetime interface{} + err = json.Unmarshal(*v, &detectDatetime) + if err != nil { + return err + } + cdsas.DetectDatetime = detectDatetime + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + cdsas.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsas.AdditionalProperties == nil { + cdsas.AdditionalProperties = make(map[string]interface{}) + } + cdsas.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + cdsas.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + cdsas.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cdsas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cdsas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsas.Type = typeVar + } + } + } + + return nil +} + +// CouchbaseLinkedService couchbase server linked service. +type CouchbaseLinkedService struct { + // CouchbaseLinkedServiceTypeProperties - Couchbase server linked service properties. + *CouchbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) MarshalJSON() ([]byte, error) { + cls.Type = TypeBasicLinkedServiceTypeCouchbase + objectMap := make(map[string]interface{}) + if cls.CouchbaseLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = cls.CouchbaseLinkedServiceTypeProperties + } + if cls.ConnectVia != nil { + objectMap["connectVia"] = cls.ConnectVia + } + if cls.Description != nil { + objectMap["description"] = cls.Description + } + if cls.Parameters != nil { + objectMap["parameters"] = cls.Parameters + } + if cls.Annotations != nil { + objectMap["annotations"] = cls.Annotations + } + if cls.Type != "" { + objectMap["type"] = cls.Type + } + for k, v := range cls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return &cls, true +} + +// AsConcurLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. +func (cls CouchbaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &cls, true +} + +// UnmarshalJSON is the custom unmarshaler for CouchbaseLinkedService struct. +func (cls *CouchbaseLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var couchbaseLinkedServiceTypeProperties CouchbaseLinkedServiceTypeProperties + err = json.Unmarshal(*v, &couchbaseLinkedServiceTypeProperties) + if err != nil { + return err + } + cls.CouchbaseLinkedServiceTypeProperties = &couchbaseLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cls.AdditionalProperties == nil { + cls.AdditionalProperties = make(map[string]interface{}) + } + cls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + cls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cls.Type = typeVar + } + } + } + + return nil +} + +// CouchbaseLinkedServiceTypeProperties couchbase server linked service properties. +type CouchbaseLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // CredString - The Azure key vault secret reference of credString in connection string. + CredString *AzureKeyVaultSecretReference `json:"credString,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// CouchbaseSource a copy activity Couchbase server source. +type CouchbaseSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CouchbaseSource. +func (cs CouchbaseSource) MarshalJSON() ([]byte, error) { + cs.Type = TypeBasicCopySourceTypeCouchbaseSource + objectMap := make(map[string]interface{}) + if cs.Query != nil { + objectMap["query"] = cs.Query + } + if cs.QueryTimeout != nil { + objectMap["queryTimeout"] = cs.QueryTimeout + } + if cs.AdditionalColumns != nil { + objectMap["additionalColumns"] = cs.AdditionalColumns + } + if cs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = cs.SourceRetryCount + } + if cs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = cs.SourceRetryWait + } + if cs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections + } + if cs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection + } + if cs.Type != "" { + objectMap["type"] = cs.Type + } + for k, v := range cs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return &cs, true +} + +// AsConcurSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &cs, true +} + +// AsBinarySource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for CouchbaseSource. +func (cs CouchbaseSource) AsBasicCopySource() (BasicCopySource, bool) { + return &cs, true +} + +// UnmarshalJSON is the custom unmarshaler for CouchbaseSource struct. +func (cs *CouchbaseSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + cs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + cs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + cs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cs.AdditionalProperties == nil { + cs.AdditionalProperties = make(map[string]interface{}) + } + cs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + cs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + cs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + cs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + cs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cs.Type = typeVar + } + } + } + + return nil +} + +// CouchbaseTableDataset couchbase server dataset. +type CouchbaseTableDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) MarshalJSON() ([]byte, error) { + ctd.Type = TypeBasicDatasetTypeCouchbaseTable + objectMap := make(map[string]interface{}) + if ctd.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = ctd.GenericDatasetTypeProperties + } + if ctd.Description != nil { + objectMap["description"] = ctd.Description + } + if ctd.Structure != nil { + objectMap["structure"] = ctd.Structure + } + if ctd.Schema != nil { + objectMap["schema"] = ctd.Schema + } + if ctd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ctd.LinkedServiceName + } + if ctd.Parameters != nil { + objectMap["parameters"] = ctd.Parameters + } + if ctd.Annotations != nil { + objectMap["annotations"] = ctd.Annotations + } + if ctd.Folder != nil { + objectMap["folder"] = ctd.Folder + } + if ctd.Type != "" { + objectMap["type"] = ctd.Type + } + for k, v := range ctd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return &ctd, true +} + +// AsConcurObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for CouchbaseTableDataset. +func (ctd CouchbaseTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &ctd, true +} + +// UnmarshalJSON is the custom unmarshaler for CouchbaseTableDataset struct. +func (ctd *CouchbaseTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + ctd.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ctd.AdditionalProperties == nil { + ctd.AdditionalProperties = make(map[string]interface{}) + } + ctd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ctd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ctd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ctd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ctd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ctd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ctd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ctd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ctd.Type = typeVar + } + } + } + + return nil +} + +// CreateDataFlowDebugSessionRequest request body structure for creating data flow debug session. +type CreateDataFlowDebugSessionRequest struct { + // ComputeType - Compute type of the cluster. The value will be overwritten by the same setting in integration runtime if provided. + ComputeType *string `json:"computeType,omitempty"` + // CoreCount - Core count of the cluster. The value will be overwritten by the same setting in integration runtime if provided. + CoreCount *int32 `json:"coreCount,omitempty"` + // TimeToLive - Time to live setting of the cluster in minutes. + TimeToLive *int32 `json:"timeToLive,omitempty"` + // IntegrationRuntime - Set to use integration runtime setting for data flow debug session. + IntegrationRuntime *IntegrationRuntimeDebugResource `json:"integrationRuntime,omitempty"` +} + +// CreateDataFlowDebugSessionResponse response body structure for creating data flow debug session. +type CreateDataFlowDebugSessionResponse struct { + autorest.Response `json:"-"` + // Status - The state of the debug session. + Status *string `json:"status,omitempty"` + // SessionID - The ID of data flow debug session. + SessionID *string `json:"sessionId,omitempty"` +} + +// CreateLinkedIntegrationRuntimeRequest the linked integration runtime information. +type CreateLinkedIntegrationRuntimeRequest struct { + // Name - The name of the linked integration runtime. + Name *string `json:"name,omitempty"` + // SubscriptionID - The ID of the subscription that the linked integration runtime belongs to. + SubscriptionID *string `json:"subscriptionId,omitempty"` + // DataFactoryName - The name of the data factory that the linked integration runtime belongs to. + DataFactoryName *string `json:"dataFactoryName,omitempty"` + // DataFactoryLocation - The location of the data factory that the linked integration runtime belongs to. + DataFactoryLocation *string `json:"dataFactoryLocation,omitempty"` +} + +// CreateRunResponse response body with a run identifier. +type CreateRunResponse struct { + autorest.Response `json:"-"` + // RunID - Identifier of a run. + RunID *string `json:"runId,omitempty"` +} + +// BasicCredential 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 BasicCredential interface { + AsManagedIdentityCredential() (*ManagedIdentityCredential, bool) + AsServicePrincipalCredential() (*ServicePrincipalCredential, bool) + AsCredential() (*Credential, bool) +} + +// 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 { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Credential description. + Description *string `json:"description,omitempty"` + // Annotations - List of tags that can be used for describing the Credential. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicCredentialTypeCredential', 'TypeBasicCredentialTypeManagedIdentity', 'TypeBasicCredentialTypeServicePrincipal' + Type TypeBasicCredential `json:"type,omitempty"` +} + +func unmarshalBasicCredential(body []byte) (BasicCredential, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicCredentialTypeManagedIdentity): + var mic ManagedIdentityCredential + err := json.Unmarshal(body, &mic) + return mic, err + case string(TypeBasicCredentialTypeServicePrincipal): + var spc ServicePrincipalCredential + err := json.Unmarshal(body, &spc) + return spc, err + default: + var c Credential + err := json.Unmarshal(body, &c) + return c, err + } +} +func unmarshalBasicCredentialArray(body []byte) ([]BasicCredential, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + cArray := make([]BasicCredential, len(rawMessages)) + + for index, rawMessage := range rawMessages { + c, err := unmarshalBasicCredential(*rawMessage) + if err != nil { + return nil, err + } + cArray[index] = c + } + return cArray, nil +} + +// MarshalJSON is the custom marshaler for Credential. +func (c Credential) MarshalJSON() ([]byte, error) { + c.Type = TypeBasicCredentialTypeCredential + objectMap := make(map[string]interface{}) + if c.Description != nil { + objectMap["description"] = c.Description + } + if c.Annotations != nil { + objectMap["annotations"] = c.Annotations + } + if c.Type != "" { + objectMap["type"] = c.Type + } + for k, v := range c.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsManagedIdentityCredential is the BasicCredential implementation for Credential. +func (c Credential) AsManagedIdentityCredential() (*ManagedIdentityCredential, bool) { + return nil, false +} + +// AsServicePrincipalCredential is the BasicCredential implementation for Credential. +func (c Credential) AsServicePrincipalCredential() (*ServicePrincipalCredential, bool) { + return nil, false +} + +// AsCredential is the BasicCredential implementation for Credential. +func (c Credential) AsCredential() (*Credential, bool) { + return &c, true +} + +// AsBasicCredential is the BasicCredential implementation for Credential. +func (c Credential) AsBasicCredential() (BasicCredential, bool) { + return &c, true +} + +// UnmarshalJSON is the custom unmarshaler for Credential struct. +func (c *Credential) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if c.AdditionalProperties == nil { + c.AdditionalProperties = make(map[string]interface{}) + } + c.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + c.Description = &description + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + c.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicCredential + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + c.Type = typeVar + } + } + } + + return nil +} + +// CredentialListResponse a list of credential resources. +type CredentialListResponse struct { + autorest.Response `json:"-"` + // Value - List of credentials. + Value *[]ManagedIdentityCredentialResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// CredentialListResponseIterator provides access to a complete listing of +// ManagedIdentityCredentialResource values. +type CredentialListResponseIterator struct { + i int + page CredentialListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *CredentialListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CredentialListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *CredentialListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter CredentialListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter CredentialListResponseIterator) Response() CredentialListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter CredentialListResponseIterator) Value() ManagedIdentityCredentialResource { + if !iter.page.NotDone() { + return ManagedIdentityCredentialResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the CredentialListResponseIterator type. +func NewCredentialListResponseIterator(page CredentialListResponsePage) CredentialListResponseIterator { + return CredentialListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (clr CredentialListResponse) IsEmpty() bool { + return clr.Value == nil || len(*clr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (clr CredentialListResponse) hasNextLink() bool { + return clr.NextLink != nil && len(*clr.NextLink) != 0 +} + +// credentialListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (clr CredentialListResponse) credentialListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !clr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(clr.NextLink))) +} + +// CredentialListResponsePage contains a page of ManagedIdentityCredentialResource values. +type CredentialListResponsePage struct { + fn func(context.Context, CredentialListResponse) (CredentialListResponse, error) + clr CredentialListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *CredentialListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/CredentialListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.clr) + if err != nil { + return err + } + page.clr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *CredentialListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page CredentialListResponsePage) NotDone() bool { + return !page.clr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page CredentialListResponsePage) Response() CredentialListResponse { + return page.clr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page CredentialListResponsePage) Values() []ManagedIdentityCredentialResource { + if page.clr.IsEmpty() { + return nil + } + return *page.clr.Value +} + +// Creates a new instance of the CredentialListResponsePage type. +func NewCredentialListResponsePage(cur CredentialListResponse, getNextPage func(context.Context, CredentialListResponse) (CredentialListResponse, error)) CredentialListResponsePage { + return CredentialListResponsePage{ + fn: getNextPage, + clr: cur, + } +} + +// CredentialReference credential reference type. +type CredentialReference struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Credential reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference credential name. + ReferenceName *string `json:"referenceName,omitempty"` +} + +// MarshalJSON is the custom marshaler for CredentialReference. +func (cr CredentialReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cr.Type != nil { + objectMap["type"] = cr.Type + } + if cr.ReferenceName != nil { + objectMap["referenceName"] = cr.ReferenceName + } + for k, v := range cr.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CredentialReference struct. +func (cr *CredentialReference) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cr.AdditionalProperties == nil { + cr.AdditionalProperties = make(map[string]interface{}) + } + cr.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cr.Type = &typeVar + } + case "referenceName": + if v != nil { + var referenceName string + err = json.Unmarshal(*v, &referenceName) + if err != nil { + return err + } + cr.ReferenceName = &referenceName + } + } + } + + return nil +} + +// CredentialResource credential resource type. +type CredentialResource struct { + // Properties - Properties of credentials. + Properties BasicCredential `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for CredentialResource. +func (cr CredentialResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = cr.Properties + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for CredentialResource struct. +func (cr *CredentialResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicCredential(*v) + if err != nil { + return err + } + cr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + cr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + cr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cr.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + cr.Etag = &etag + } + } + } + + return nil +} + +// CustomActivity custom activity type. +type CustomActivity struct { + // CustomActivityTypeProperties - Custom activity properties. + *CustomActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomActivity. +func (ca CustomActivity) MarshalJSON() ([]byte, error) { + ca.Type = TypeBasicActivityTypeCustom + objectMap := make(map[string]interface{}) + if ca.CustomActivityTypeProperties != nil { + objectMap["typeProperties"] = ca.CustomActivityTypeProperties + } + if ca.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ca.LinkedServiceName + } + if ca.Policy != nil { + objectMap["policy"] = ca.Policy + } + if ca.Name != nil { + objectMap["name"] = ca.Name + } + if ca.Description != nil { + objectMap["description"] = ca.Description + } + if ca.State != "" { + objectMap["state"] = ca.State + } + if ca.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ca.OnInactiveMarkAs + } + if ca.DependsOn != nil { + objectMap["dependsOn"] = ca.DependsOn + } + if ca.UserProperties != nil { + objectMap["userProperties"] = ca.UserProperties + } + if ca.Type != "" { + objectMap["type"] = ca.Type + } + for k, v := range ca.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsCustomActivity() (*CustomActivity, bool) { + return &ca, true +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ca, true +} + +// AsWebHookActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for CustomActivity. +func (ca CustomActivity) AsBasicActivity() (BasicActivity, bool) { + return &ca, true +} + +// UnmarshalJSON is the custom unmarshaler for CustomActivity struct. +func (ca *CustomActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var customActivityTypeProperties CustomActivityTypeProperties + err = json.Unmarshal(*v, &customActivityTypeProperties) + if err != nil { + return err + } + ca.CustomActivityTypeProperties = &customActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ca.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ca.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ca.AdditionalProperties == nil { + ca.AdditionalProperties = make(map[string]interface{}) + } + ca.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ca.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ca.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ca.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ca.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ca.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ca.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ca.Type = typeVar + } + } + } + + return nil +} + +// CustomActivityReferenceObject reference objects for custom activity +type CustomActivityReferenceObject struct { + // LinkedServices - Linked service references. + LinkedServices *[]LinkedServiceReference `json:"linkedServices,omitempty"` + // Datasets - Dataset references. + Datasets *[]DatasetReference `json:"datasets,omitempty"` +} + +// CustomActivityTypeProperties custom activity properties. +type CustomActivityTypeProperties struct { + // Command - Command for custom activity Type: string (or Expression with resultType string). + Command interface{} `json:"command,omitempty"` + // ResourceLinkedService - Resource linked service reference. + ResourceLinkedService *LinkedServiceReference `json:"resourceLinkedService,omitempty"` + // FolderPath - Folder path for resource files Type: string (or Expression with resultType string). + FolderPath interface{} `json:"folderPath,omitempty"` + // ReferenceObjects - Reference objects + ReferenceObjects *CustomActivityReferenceObject `json:"referenceObjects,omitempty"` + // ExtendedProperties - 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"` + // RetentionTimeInDays - The retention time for the files submitted for custom activity. Type: double (or Expression with resultType double). + RetentionTimeInDays interface{} `json:"retentionTimeInDays,omitempty"` + // AutoUserSpecification - Elevation level and scope for the user, default is nonadmin task. Type: string (or Expression with resultType double). + AutoUserSpecification interface{} `json:"autoUserSpecification,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomActivityTypeProperties. +func (catp CustomActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if catp.Command != nil { + objectMap["command"] = catp.Command + } + if catp.ResourceLinkedService != nil { + objectMap["resourceLinkedService"] = catp.ResourceLinkedService + } + if catp.FolderPath != nil { + objectMap["folderPath"] = catp.FolderPath + } + if catp.ReferenceObjects != nil { + objectMap["referenceObjects"] = catp.ReferenceObjects + } + if catp.ExtendedProperties != nil { + objectMap["extendedProperties"] = catp.ExtendedProperties + } + if catp.RetentionTimeInDays != nil { + objectMap["retentionTimeInDays"] = catp.RetentionTimeInDays + } + if catp.AutoUserSpecification != nil { + objectMap["autoUserSpecification"] = catp.AutoUserSpecification + } + return json.Marshal(objectMap) +} + +// CustomDataSourceLinkedService custom linked service. +type CustomDataSourceLinkedService struct { + // TypeProperties - Custom linked service properties. + TypeProperties interface{} `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { + cdsls.Type = TypeBasicLinkedServiceTypeCustomDataSource + objectMap := make(map[string]interface{}) + if cdsls.TypeProperties != nil { + objectMap["typeProperties"] = cdsls.TypeProperties + } + if cdsls.ConnectVia != nil { + objectMap["connectVia"] = cdsls.ConnectVia + } + if cdsls.Description != nil { + objectMap["description"] = cdsls.Description + } + if cdsls.Parameters != nil { + objectMap["parameters"] = cdsls.Parameters + } + if cdsls.Annotations != nil { + objectMap["annotations"] = cdsls.Annotations + } + if cdsls.Type != "" { + objectMap["type"] = cdsls.Type + } + for k, v := range cdsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return &cdsls, true +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. +func (cdsls CustomDataSourceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &cdsls, true +} + +// UnmarshalJSON is the custom unmarshaler for CustomDataSourceLinkedService struct. +func (cdsls *CustomDataSourceLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var typeProperties interface{} + err = json.Unmarshal(*v, &typeProperties) + if err != nil { + return err + } + cdsls.TypeProperties = typeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cdsls.AdditionalProperties == nil { + cdsls.AdditionalProperties = make(map[string]interface{}) + } + cdsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + cdsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cdsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cdsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cdsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cdsls.Type = typeVar + } + } + } + + return nil +} + +// CustomDataset the custom dataset. +type CustomDataset struct { + // TypeProperties - Custom dataset properties. + TypeProperties interface{} `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomDataset. +func (cd CustomDataset) MarshalJSON() ([]byte, error) { + cd.Type = TypeBasicDatasetTypeCustomDataset + objectMap := make(map[string]interface{}) + if cd.TypeProperties != nil { + objectMap["typeProperties"] = cd.TypeProperties + } + if cd.Description != nil { + objectMap["description"] = cd.Description + } + if cd.Structure != nil { + objectMap["structure"] = cd.Structure + } + if cd.Schema != nil { + objectMap["schema"] = cd.Schema + } + if cd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = cd.LinkedServiceName + } + if cd.Parameters != nil { + objectMap["parameters"] = cd.Parameters + } + if cd.Annotations != nil { + objectMap["annotations"] = cd.Annotations + } + if cd.Folder != nil { + objectMap["folder"] = cd.Folder + } + if cd.Type != "" { + objectMap["type"] = cd.Type + } + for k, v := range cd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsCustomDataset() (*CustomDataset, bool) { + return &cd, true +} + +// AsCassandraTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for CustomDataset. +func (cd CustomDataset) AsBasicDataset() (BasicDataset, bool) { + return &cd, true +} + +// UnmarshalJSON is the custom unmarshaler for CustomDataset struct. +func (cd *CustomDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var typeProperties interface{} + err = json.Unmarshal(*v, &typeProperties) + if err != nil { + return err + } + cd.TypeProperties = typeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cd.AdditionalProperties == nil { + cd.AdditionalProperties = make(map[string]interface{}) + } + cd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + cd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + cd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + cd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + cd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + cd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cd.Type = typeVar + } + } + } + + return nil +} + +// CustomEventsTrigger trigger that runs every time a custom event is received. +type CustomEventsTrigger struct { + // CustomEventsTriggerTypeProperties - Custom Events Trigger properties. + *CustomEventsTriggerTypeProperties `json:"typeProperties,omitempty"` + // Pipelines - Pipelines that need to be started. + Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for CustomEventsTrigger. +func (cet CustomEventsTrigger) MarshalJSON() ([]byte, error) { + cet.Type = TypeBasicTriggerTypeCustomEventsTrigger + objectMap := make(map[string]interface{}) + if cet.CustomEventsTriggerTypeProperties != nil { + objectMap["typeProperties"] = cet.CustomEventsTriggerTypeProperties + } + if cet.Pipelines != nil { + objectMap["pipelines"] = cet.Pipelines + } + if cet.Description != nil { + objectMap["description"] = cet.Description + } + if cet.Annotations != nil { + objectMap["annotations"] = cet.Annotations + } + if cet.Type != "" { + objectMap["type"] = cet.Type + } + for k, v := range cet.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return &cet, true +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return &cet, true +} + +// AsTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for CustomEventsTrigger. +func (cet CustomEventsTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &cet, true +} + +// UnmarshalJSON is the custom unmarshaler for CustomEventsTrigger struct. +func (cet *CustomEventsTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var customEventsTriggerTypeProperties CustomEventsTriggerTypeProperties + err = json.Unmarshal(*v, &customEventsTriggerTypeProperties) + if err != nil { + return err + } + cet.CustomEventsTriggerTypeProperties = &customEventsTriggerTypeProperties + } + case "pipelines": + if v != nil { + var pipelines []TriggerPipelineReference + err = json.Unmarshal(*v, &pipelines) + if err != nil { + return err + } + cet.Pipelines = &pipelines + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if cet.AdditionalProperties == nil { + cet.AdditionalProperties = make(map[string]interface{}) + } + cet.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + cet.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + cet.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + cet.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + cet.Type = typeVar + } + } + } + + return nil +} + +// CustomEventsTriggerTypeProperties custom Events Trigger properties. +type CustomEventsTriggerTypeProperties struct { + // SubjectBeginsWith - 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"` + // SubjectEndsWith - 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"` + // Events - The list of event types that cause this trigger to fire. + Events *[]interface{} `json:"events,omitempty"` + // Scope - The ARM resource ID of the Azure Event Grid Topic. + Scope *string `json:"scope,omitempty"` +} + +// BasicCustomSetupBase the base definition of the custom setup. +type BasicCustomSetupBase interface { + AsAzPowerShellSetup() (*AzPowerShellSetup, bool) + AsComponentSetup() (*ComponentSetup, bool) + AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) + AsCmdkeySetup() (*CmdkeySetup, bool) + AsCustomSetupBase() (*CustomSetupBase, bool) +} + +// CustomSetupBase the base definition of the custom setup. +type CustomSetupBase struct { + // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +func unmarshalBasicCustomSetupBase(body []byte) (BasicCustomSetupBase, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicCustomSetupBaseTypeAzPowerShellSetup): + var apss AzPowerShellSetup + err := json.Unmarshal(body, &apss) + return apss, err + case string(TypeBasicCustomSetupBaseTypeComponentSetup): + var cs ComponentSetup + err := json.Unmarshal(body, &cs) + return cs, err + case string(TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup): + var evs EnvironmentVariableSetup + err := json.Unmarshal(body, &evs) + return evs, err + case string(TypeBasicCustomSetupBaseTypeCmdkeySetup): + var cs CmdkeySetup + err := json.Unmarshal(body, &cs) + return cs, err + default: + var csb CustomSetupBase + err := json.Unmarshal(body, &csb) + return csb, err + } +} +func unmarshalBasicCustomSetupBaseArray(body []byte) ([]BasicCustomSetupBase, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + csbArray := make([]BasicCustomSetupBase, len(rawMessages)) + + for index, rawMessage := range rawMessages { + csb, err := unmarshalBasicCustomSetupBase(*rawMessage) + if err != nil { + return nil, err + } + csbArray[index] = csb + } + return csbArray, nil +} + +// MarshalJSON is the custom marshaler for CustomSetupBase. +func (csb CustomSetupBase) MarshalJSON() ([]byte, error) { + csb.Type = TypeBasicCustomSetupBaseTypeCustomSetupBase + objectMap := make(map[string]interface{}) + if csb.Type != "" { + objectMap["type"] = csb.Type + } + return json.Marshal(objectMap) +} + +// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { + return nil, false +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsComponentSetup() (*ComponentSetup, bool) { + return nil, false +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return nil, false +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsCmdkeySetup() (*CmdkeySetup, bool) { + return nil, false +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsCustomSetupBase() (*CustomSetupBase, bool) { + return &csb, true +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for CustomSetupBase. +func (csb CustomSetupBase) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &csb, true +} + +// DWCopyCommandDefaultValue default value. +type DWCopyCommandDefaultValue struct { + // ColumnName - Column name. Type: object (or Expression with resultType string). + ColumnName interface{} `json:"columnName,omitempty"` + // DefaultValue - The default value of the column. Type: object (or Expression with resultType string). + DefaultValue interface{} `json:"defaultValue,omitempty"` +} + +// DWCopyCommandSettings DW Copy Command settings. +type DWCopyCommandSettings struct { + // DefaultValues - 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"` + // AdditionalOptions - 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"` +} + +// MarshalJSON is the custom marshaler for DWCopyCommandSettings. +func (dccs DWCopyCommandSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dccs.DefaultValues != nil { + objectMap["defaultValues"] = dccs.DefaultValues + } + if dccs.AdditionalOptions != nil { + objectMap["additionalOptions"] = dccs.AdditionalOptions + } + return json.Marshal(objectMap) +} + +// BasicDataFlow azure Data Factory nested object which contains a flow with data movements and transformations. +type BasicDataFlow interface { + AsWranglingDataFlow() (*WranglingDataFlow, bool) + AsFlowlet() (*Flowlet, bool) + AsMappingDataFlow() (*MappingDataFlow, bool) + AsDataFlow() (*DataFlow, bool) +} + +// DataFlow azure Data Factory nested object which contains a flow with data movements and transformations. +type DataFlow struct { + // Description - The description of the data flow. + Description *string `json:"description,omitempty"` + // Annotations - List of tags that can be used for describing the data flow. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. + Folder *DataFlowFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDataFlowTypeDataFlow', 'TypeBasicDataFlowTypeWranglingDataFlow', 'TypeBasicDataFlowTypeFlowlet', 'TypeBasicDataFlowTypeMappingDataFlow' + Type TypeBasicDataFlow `json:"type,omitempty"` +} + +func unmarshalBasicDataFlow(body []byte) (BasicDataFlow, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicDataFlowTypeWranglingDataFlow): + var wdf WranglingDataFlow + err := json.Unmarshal(body, &wdf) + return wdf, err + case string(TypeBasicDataFlowTypeFlowlet): + var f Flowlet + err := json.Unmarshal(body, &f) + return f, err + case string(TypeBasicDataFlowTypeMappingDataFlow): + var mdf MappingDataFlow + err := json.Unmarshal(body, &mdf) + return mdf, err + default: + var df DataFlow + err := json.Unmarshal(body, &df) + return df, err + } +} +func unmarshalBasicDataFlowArray(body []byte) ([]BasicDataFlow, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + dfArray := make([]BasicDataFlow, len(rawMessages)) + + for index, rawMessage := range rawMessages { + df, err := unmarshalBasicDataFlow(*rawMessage) + if err != nil { + return nil, err + } + dfArray[index] = df + } + return dfArray, nil +} + +// MarshalJSON is the custom marshaler for DataFlow. +func (df DataFlow) MarshalJSON() ([]byte, error) { + df.Type = TypeBasicDataFlowTypeDataFlow + objectMap := make(map[string]interface{}) + if df.Description != nil { + objectMap["description"] = df.Description + } + if df.Annotations != nil { + objectMap["annotations"] = df.Annotations + } + if df.Folder != nil { + objectMap["folder"] = df.Folder + } + if df.Type != "" { + objectMap["type"] = df.Type + } + return json.Marshal(objectMap) +} + +// AsWranglingDataFlow is the BasicDataFlow implementation for DataFlow. +func (df DataFlow) AsWranglingDataFlow() (*WranglingDataFlow, bool) { + return nil, false +} + +// AsFlowlet is the BasicDataFlow implementation for DataFlow. +func (df DataFlow) AsFlowlet() (*Flowlet, bool) { + return nil, false +} + +// AsMappingDataFlow is the BasicDataFlow implementation for DataFlow. +func (df DataFlow) AsMappingDataFlow() (*MappingDataFlow, bool) { + return nil, false +} + +// AsDataFlow is the BasicDataFlow implementation for DataFlow. +func (df DataFlow) AsDataFlow() (*DataFlow, bool) { + return &df, true +} + +// AsBasicDataFlow is the BasicDataFlow implementation for DataFlow. +func (df DataFlow) AsBasicDataFlow() (BasicDataFlow, bool) { + return &df, true +} + +// DataFlowDebugCommandPayload structure of command payload. +type DataFlowDebugCommandPayload struct { + // StreamName - The stream name which is used for preview. + StreamName *string `json:"streamName,omitempty"` + // RowLimits - Row limits for preview response. + RowLimits *int32 `json:"rowLimits,omitempty"` + // Columns - Array of column names. + Columns *[]string `json:"columns,omitempty"` + // Expression - The expression which is used for preview. + Expression *string `json:"expression,omitempty"` +} + +// DataFlowDebugCommandRequest request body structure for data flow debug command. +type DataFlowDebugCommandRequest struct { + // SessionID - The ID of data flow debug session. + SessionID *string `json:"sessionId,omitempty"` + // Command - The command type. Possible values include: 'DataFlowDebugCommandTypeExecutePreviewQuery', 'DataFlowDebugCommandTypeExecuteStatisticsQuery', 'DataFlowDebugCommandTypeExecuteExpressionQuery' + Command DataFlowDebugCommandType `json:"command,omitempty"` + // CommandPayload - The command payload object. + CommandPayload *DataFlowDebugCommandPayload `json:"commandPayload,omitempty"` +} + +// DataFlowDebugCommandResponse response body structure of data flow result for data preview, statistics or +// expression preview. +type DataFlowDebugCommandResponse struct { + autorest.Response `json:"-"` + // Status - The run status of data preview, statistics or expression preview. + Status *string `json:"status,omitempty"` + // Data - The result data of data preview, statistics or expression preview. + Data *string `json:"data,omitempty"` +} + +// DataFlowDebugPackage request body structure for starting data flow debug session. +type DataFlowDebugPackage struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SessionID - The ID of data flow debug session. + SessionID *string `json:"sessionId,omitempty"` + // DataFlow - Data flow instance. + DataFlow *DataFlowDebugResource `json:"dataFlow,omitempty"` + // DataFlows - List of Data flows + DataFlows *[]DataFlowDebugResource `json:"dataFlows,omitempty"` + // Datasets - List of datasets. + Datasets *[]DatasetDebugResource `json:"datasets,omitempty"` + // LinkedServices - List of linked services. + LinkedServices *[]LinkedServiceDebugResource `json:"linkedServices,omitempty"` + // Staging - Staging info for debug session. + Staging *DataFlowStagingInfo `json:"staging,omitempty"` + // DebugSettings - Data flow debug settings. + DebugSettings *DataFlowDebugPackageDebugSettings `json:"debugSettings,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataFlowDebugPackage. +func (dfdp DataFlowDebugPackage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dfdp.SessionID != nil { + objectMap["sessionId"] = dfdp.SessionID + } + if dfdp.DataFlow != nil { + objectMap["dataFlow"] = dfdp.DataFlow + } + if dfdp.DataFlows != nil { + objectMap["dataFlows"] = dfdp.DataFlows + } + if dfdp.Datasets != nil { + objectMap["datasets"] = dfdp.Datasets + } + if dfdp.LinkedServices != nil { + objectMap["linkedServices"] = dfdp.LinkedServices + } + if dfdp.Staging != nil { + objectMap["staging"] = dfdp.Staging + } + if dfdp.DebugSettings != nil { + objectMap["debugSettings"] = dfdp.DebugSettings + } + for k, v := range dfdp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DataFlowDebugPackage struct. +func (dfdp *DataFlowDebugPackage) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dfdp.AdditionalProperties == nil { + dfdp.AdditionalProperties = make(map[string]interface{}) + } + dfdp.AdditionalProperties[k] = additionalProperties + } + case "sessionId": + if v != nil { + var sessionID string + err = json.Unmarshal(*v, &sessionID) + if err != nil { + return err + } + dfdp.SessionID = &sessionID + } + case "dataFlow": + if v != nil { + var dataFlow DataFlowDebugResource + err = json.Unmarshal(*v, &dataFlow) + if err != nil { + return err + } + dfdp.DataFlow = &dataFlow + } + case "dataFlows": + if v != nil { + var dataFlows []DataFlowDebugResource + err = json.Unmarshal(*v, &dataFlows) + if err != nil { + return err + } + dfdp.DataFlows = &dataFlows + } + case "datasets": + if v != nil { + var datasets []DatasetDebugResource + err = json.Unmarshal(*v, &datasets) + if err != nil { + return err + } + dfdp.Datasets = &datasets + } + case "linkedServices": + if v != nil { + var linkedServices []LinkedServiceDebugResource + err = json.Unmarshal(*v, &linkedServices) + if err != nil { + return err + } + dfdp.LinkedServices = &linkedServices + } + case "staging": + if v != nil { + var staging DataFlowStagingInfo + err = json.Unmarshal(*v, &staging) + if err != nil { + return err + } + dfdp.Staging = &staging + } + case "debugSettings": + if v != nil { + var debugSettings DataFlowDebugPackageDebugSettings + err = json.Unmarshal(*v, &debugSettings) + if err != nil { + return err + } + dfdp.DebugSettings = &debugSettings + } + } + } + + return nil +} + +// DataFlowDebugPackageDebugSettings data flow debug settings. +type DataFlowDebugPackageDebugSettings struct { + // SourceSettings - Source setting for data flow debug. + SourceSettings *[]DataFlowSourceSetting `json:"sourceSettings,omitempty"` + // Parameters - Data flow parameters. + Parameters map[string]interface{} `json:"parameters"` + // DatasetParameters - Parameters for dataset. + DatasetParameters interface{} `json:"datasetParameters,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataFlowDebugPackageDebugSettings. +func (dfdpS DataFlowDebugPackageDebugSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dfdpS.SourceSettings != nil { + objectMap["sourceSettings"] = dfdpS.SourceSettings + } + if dfdpS.Parameters != nil { + objectMap["parameters"] = dfdpS.Parameters + } + if dfdpS.DatasetParameters != nil { + objectMap["datasetParameters"] = dfdpS.DatasetParameters + } + return json.Marshal(objectMap) +} + +// DataFlowDebugResource data flow debug resource. +type DataFlowDebugResource struct { + // Properties - Data flow properties. + Properties BasicDataFlow `json:"properties,omitempty"` + // Name - The resource name. + Name *string `json:"name,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DataFlowDebugResource struct. +func (dfdr *DataFlowDebugResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicDataFlow(*v) + if err != nil { + return err + } + dfdr.Properties = properties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dfdr.Name = &name + } + } + } + + return nil +} + +// DataFlowDebugSessionCreateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DataFlowDebugSessionCreateFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DataFlowDebugSessionClient) (CreateDataFlowDebugSessionResponse, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DataFlowDebugSessionCreateFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DataFlowDebugSessionCreateFuture.Result. +func (future *DataFlowDebugSessionCreateFuture) result(client DataFlowDebugSessionClient) (cdfdsr CreateDataFlowDebugSessionResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionCreateFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + cdfdsr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.DataFlowDebugSessionCreateFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if cdfdsr.Response.Response, err = future.GetResult(sender); err == nil && cdfdsr.Response.Response.StatusCode != http.StatusNoContent { + cdfdsr, err = client.CreateResponder(cdfdsr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionCreateFuture", "Result", cdfdsr.Response.Response, "Failure responding to request") + } + } + return +} + +// DataFlowDebugSessionExecuteCommandFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type DataFlowDebugSessionExecuteCommandFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(DataFlowDebugSessionClient) (DataFlowDebugCommandResponse, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *DataFlowDebugSessionExecuteCommandFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for DataFlowDebugSessionExecuteCommandFuture.Result. +func (future *DataFlowDebugSessionExecuteCommandFuture) result(client DataFlowDebugSessionClient) (dfdcr DataFlowDebugCommandResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionExecuteCommandFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + dfdcr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.DataFlowDebugSessionExecuteCommandFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if dfdcr.Response.Response, err = future.GetResult(sender); err == nil && dfdcr.Response.Response.StatusCode != http.StatusNoContent { + dfdcr, err = client.ExecuteCommandResponder(dfdcr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionExecuteCommandFuture", "Result", dfdcr.Response.Response, "Failure responding to request") + } + } + return +} + +// DataFlowDebugSessionInfo data flow debug session info. +type DataFlowDebugSessionInfo struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // DataFlowName - The name of the data flow. + DataFlowName *string `json:"dataFlowName,omitempty"` + // ComputeType - Compute type of the cluster. + ComputeType *string `json:"computeType,omitempty"` + // CoreCount - Core count of the cluster. + CoreCount *int32 `json:"coreCount,omitempty"` + // NodeCount - Node count of the cluster. (deprecated property) + NodeCount *int32 `json:"nodeCount,omitempty"` + // IntegrationRuntimeName - Attached integration runtime name of data flow debug session. + IntegrationRuntimeName *string `json:"integrationRuntimeName,omitempty"` + // SessionID - The ID of data flow debug session. + SessionID *string `json:"sessionId,omitempty"` + // StartTime - Start time of data flow debug session. + StartTime *string `json:"startTime,omitempty"` + // TimeToLiveInMinutes - Compute type of the cluster. + TimeToLiveInMinutes *int32 `json:"timeToLiveInMinutes,omitempty"` + // LastActivityTime - Last activity time of data flow debug session. + LastActivityTime *string `json:"lastActivityTime,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataFlowDebugSessionInfo. +func (dfdsi DataFlowDebugSessionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dfdsi.DataFlowName != nil { + objectMap["dataFlowName"] = dfdsi.DataFlowName + } + if dfdsi.ComputeType != nil { + objectMap["computeType"] = dfdsi.ComputeType + } + if dfdsi.CoreCount != nil { + objectMap["coreCount"] = dfdsi.CoreCount + } + if dfdsi.NodeCount != nil { + objectMap["nodeCount"] = dfdsi.NodeCount + } + if dfdsi.IntegrationRuntimeName != nil { + objectMap["integrationRuntimeName"] = dfdsi.IntegrationRuntimeName + } + if dfdsi.SessionID != nil { + objectMap["sessionId"] = dfdsi.SessionID + } + if dfdsi.StartTime != nil { + objectMap["startTime"] = dfdsi.StartTime + } + if dfdsi.TimeToLiveInMinutes != nil { + objectMap["timeToLiveInMinutes"] = dfdsi.TimeToLiveInMinutes + } + if dfdsi.LastActivityTime != nil { + objectMap["lastActivityTime"] = dfdsi.LastActivityTime + } + for k, v := range dfdsi.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DataFlowDebugSessionInfo struct. +func (dfdsi *DataFlowDebugSessionInfo) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dfdsi.AdditionalProperties == nil { + dfdsi.AdditionalProperties = make(map[string]interface{}) + } + dfdsi.AdditionalProperties[k] = additionalProperties + } + case "dataFlowName": + if v != nil { + var dataFlowName string + err = json.Unmarshal(*v, &dataFlowName) + if err != nil { + return err + } + dfdsi.DataFlowName = &dataFlowName + } + case "computeType": + if v != nil { + var computeType string + err = json.Unmarshal(*v, &computeType) + if err != nil { + return err + } + dfdsi.ComputeType = &computeType + } + case "coreCount": + if v != nil { + var coreCount int32 + err = json.Unmarshal(*v, &coreCount) + if err != nil { + return err + } + dfdsi.CoreCount = &coreCount + } + case "nodeCount": + if v != nil { + var nodeCount int32 + err = json.Unmarshal(*v, &nodeCount) + if err != nil { + return err + } + dfdsi.NodeCount = &nodeCount + } + case "integrationRuntimeName": + if v != nil { + var integrationRuntimeName string + err = json.Unmarshal(*v, &integrationRuntimeName) + if err != nil { + return err + } + dfdsi.IntegrationRuntimeName = &integrationRuntimeName + } + case "sessionId": + if v != nil { + var sessionID string + err = json.Unmarshal(*v, &sessionID) + if err != nil { + return err + } + dfdsi.SessionID = &sessionID + } + case "startTime": + if v != nil { + var startTime string + err = json.Unmarshal(*v, &startTime) + if err != nil { + return err + } + dfdsi.StartTime = &startTime + } + case "timeToLiveInMinutes": + if v != nil { + var timeToLiveInMinutes int32 + err = json.Unmarshal(*v, &timeToLiveInMinutes) + if err != nil { + return err + } + dfdsi.TimeToLiveInMinutes = &timeToLiveInMinutes + } + case "lastActivityTime": + if v != nil { + var lastActivityTime string + err = json.Unmarshal(*v, &lastActivityTime) + if err != nil { + return err + } + dfdsi.LastActivityTime = &lastActivityTime + } + } + } + + return nil +} + +// DataFlowFolder the folder that this data flow is in. If not specified, Data flow will appear at the root +// level. +type DataFlowFolder struct { + // Name - The name of the folder that this data flow is in. + Name *string `json:"name,omitempty"` +} + +// DataFlowListResponse a list of data flow resources. +type DataFlowListResponse struct { + autorest.Response `json:"-"` + // Value - List of data flows. + Value *[]DataFlowResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// DataFlowListResponseIterator provides access to a complete listing of DataFlowResource values. +type DataFlowListResponseIterator struct { + i int + page DataFlowListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DataFlowListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DataFlowListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DataFlowListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DataFlowListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter DataFlowListResponseIterator) Response() DataFlowListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DataFlowListResponseIterator) Value() DataFlowResource { + if !iter.page.NotDone() { + return DataFlowResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DataFlowListResponseIterator type. +func NewDataFlowListResponseIterator(page DataFlowListResponsePage) DataFlowListResponseIterator { + return DataFlowListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dflr DataFlowListResponse) IsEmpty() bool { + return dflr.Value == nil || len(*dflr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (dflr DataFlowListResponse) hasNextLink() bool { + return dflr.NextLink != nil && len(*dflr.NextLink) != 0 +} + +// dataFlowListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dflr DataFlowListResponse) dataFlowListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !dflr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dflr.NextLink))) +} + +// DataFlowListResponsePage contains a page of DataFlowResource values. +type DataFlowListResponsePage struct { + fn func(context.Context, DataFlowListResponse) (DataFlowListResponse, error) + dflr DataFlowListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DataFlowListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DataFlowListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.dflr) + if err != nil { + return err + } + page.dflr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DataFlowListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DataFlowListResponsePage) NotDone() bool { + return !page.dflr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DataFlowListResponsePage) Response() DataFlowListResponse { + return page.dflr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DataFlowListResponsePage) Values() []DataFlowResource { + if page.dflr.IsEmpty() { + return nil + } + return *page.dflr.Value +} + +// Creates a new instance of the DataFlowListResponsePage type. +func NewDataFlowListResponsePage(cur DataFlowListResponse, getNextPage func(context.Context, DataFlowListResponse) (DataFlowListResponse, error)) DataFlowListResponsePage { + return DataFlowListResponsePage{ + fn: getNextPage, + dflr: cur, + } +} + +// DataFlowReference data flow reference type. +type DataFlowReference struct { + // Type - Data flow reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference data flow name. + ReferenceName *string `json:"referenceName,omitempty"` + // DatasetParameters - Reference data flow parameters from dataset. + DatasetParameters interface{} `json:"datasetParameters,omitempty"` + // Parameters - Data flow parameters + Parameters map[string]interface{} `json:"parameters"` +} + +// MarshalJSON is the custom marshaler for DataFlowReference. +func (dfr DataFlowReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dfr.Type != nil { + objectMap["type"] = dfr.Type + } + if dfr.ReferenceName != nil { + objectMap["referenceName"] = dfr.ReferenceName + } + if dfr.DatasetParameters != nil { + objectMap["datasetParameters"] = dfr.DatasetParameters + } + if dfr.Parameters != nil { + objectMap["parameters"] = dfr.Parameters + } + return json.Marshal(objectMap) +} + +// DataFlowResource data flow resource type. +type DataFlowResource struct { + autorest.Response `json:"-"` + // Properties - Data flow properties. + Properties BasicDataFlow `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataFlowResource. +func (dfr DataFlowResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = dfr.Properties + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DataFlowResource struct. +func (dfr *DataFlowResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicDataFlow(*v) + if err != nil { + return err + } + dfr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dfr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dfr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dfr.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + dfr.Etag = &etag + } + } + } + + return nil +} + +// DataFlowSink transformation for data flow sink. +type DataFlowSink struct { + // SchemaLinkedService - Schema linked service reference. + SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` + // RejectedDataLinkedService - Rejected data linked service reference. + RejectedDataLinkedService *LinkedServiceReference `json:"rejectedDataLinkedService,omitempty"` + // Name - Transformation name. + Name *string `json:"name,omitempty"` + // Description - Transformation description. + Description *string `json:"description,omitempty"` + // Dataset - Dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // LinkedService - Linked service reference. + LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + // Flowlet - Flowlet Reference + Flowlet *DataFlowReference `json:"flowlet,omitempty"` +} + +// DataFlowSource transformation for data flow source. +type DataFlowSource struct { + // SchemaLinkedService - Schema linked service reference. + SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` + // Name - Transformation name. + Name *string `json:"name,omitempty"` + // Description - Transformation description. + Description *string `json:"description,omitempty"` + // Dataset - Dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // LinkedService - Linked service reference. + LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + // Flowlet - Flowlet Reference + Flowlet *DataFlowReference `json:"flowlet,omitempty"` +} + +// DataFlowSourceSetting definition of data flow source setting for debug. +type DataFlowSourceSetting struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceName - The data flow source name. + SourceName *string `json:"sourceName,omitempty"` + // RowLimit - Defines the row limit of data flow source in debug. + RowLimit *int32 `json:"rowLimit,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataFlowSourceSetting. +func (dfss DataFlowSourceSetting) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dfss.SourceName != nil { + objectMap["sourceName"] = dfss.SourceName + } + if dfss.RowLimit != nil { + objectMap["rowLimit"] = dfss.RowLimit + } + for k, v := range dfss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DataFlowSourceSetting struct. +func (dfss *DataFlowSourceSetting) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dfss.AdditionalProperties == nil { + dfss.AdditionalProperties = make(map[string]interface{}) + } + dfss.AdditionalProperties[k] = additionalProperties + } + case "sourceName": + if v != nil { + var sourceName string + err = json.Unmarshal(*v, &sourceName) + if err != nil { + return err + } + dfss.SourceName = &sourceName + } + case "rowLimit": + if v != nil { + var rowLimit int32 + err = json.Unmarshal(*v, &rowLimit) + if err != nil { + return err + } + dfss.RowLimit = &rowLimit + } + } + } + + return nil +} + +// DataFlowStagingInfo staging info for execute data flow activity. +type DataFlowStagingInfo struct { + // LinkedService - Staging linked service reference. + LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + // FolderPath - Folder path for staging blob. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` +} + +// DataLakeAnalyticsUSQLActivity data Lake Analytics U-SQL activity. +type DataLakeAnalyticsUSQLActivity struct { + // DataLakeAnalyticsUSQLActivityTypeProperties - Data Lake Analytics U-SQL activity properties. + *DataLakeAnalyticsUSQLActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) MarshalJSON() ([]byte, error) { + dlaua.Type = TypeBasicActivityTypeDataLakeAnalyticsUSQL + objectMap := make(map[string]interface{}) + if dlaua.DataLakeAnalyticsUSQLActivityTypeProperties != nil { + objectMap["typeProperties"] = dlaua.DataLakeAnalyticsUSQLActivityTypeProperties + } + if dlaua.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dlaua.LinkedServiceName + } + if dlaua.Policy != nil { + objectMap["policy"] = dlaua.Policy + } + if dlaua.Name != nil { + objectMap["name"] = dlaua.Name + } + if dlaua.Description != nil { + objectMap["description"] = dlaua.Description + } + if dlaua.State != "" { + objectMap["state"] = dlaua.State + } + if dlaua.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = dlaua.OnInactiveMarkAs + } + if dlaua.DependsOn != nil { + objectMap["dependsOn"] = dlaua.DependsOn + } + if dlaua.UserProperties != nil { + objectMap["userProperties"] = dlaua.UserProperties + } + if dlaua.Type != "" { + objectMap["type"] = dlaua.Type + } + for k, v := range dlaua.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return &dlaua, true +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &dlaua, true +} + +// AsWebHookActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. +func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicActivity() (BasicActivity, bool) { + return &dlaua, true +} + +// UnmarshalJSON is the custom unmarshaler for DataLakeAnalyticsUSQLActivity struct. +func (dlaua *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var dataLakeAnalyticsUSQLActivityTypeProperties DataLakeAnalyticsUSQLActivityTypeProperties + err = json.Unmarshal(*v, &dataLakeAnalyticsUSQLActivityTypeProperties) + if err != nil { + return err + } + dlaua.DataLakeAnalyticsUSQLActivityTypeProperties = &dataLakeAnalyticsUSQLActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dlaua.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + dlaua.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dlaua.AdditionalProperties == nil { + dlaua.AdditionalProperties = make(map[string]interface{}) + } + dlaua.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dlaua.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dlaua.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + dlaua.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + dlaua.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + dlaua.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + dlaua.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dlaua.Type = typeVar + } + } + } + + return nil +} + +// DataLakeAnalyticsUSQLActivityTypeProperties dataLakeAnalyticsU-SQL activity properties. +type DataLakeAnalyticsUSQLActivityTypeProperties struct { + // ScriptPath - Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string). + ScriptPath interface{} `json:"scriptPath,omitempty"` + // ScriptLinkedService - Script linked service reference. + ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` + // DegreeOfParallelism - 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"` + // Priority - 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"` + // Parameters - Parameters for U-SQL job request. + Parameters map[string]interface{} `json:"parameters"` + // RuntimeVersion - Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). + RuntimeVersion interface{} `json:"runtimeVersion,omitempty"` + // CompilationMode - 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"` +} + +// MarshalJSON is the custom marshaler for DataLakeAnalyticsUSQLActivityTypeProperties. +func (dlauatp DataLakeAnalyticsUSQLActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dlauatp.ScriptPath != nil { + objectMap["scriptPath"] = dlauatp.ScriptPath + } + if dlauatp.ScriptLinkedService != nil { + objectMap["scriptLinkedService"] = dlauatp.ScriptLinkedService + } + if dlauatp.DegreeOfParallelism != nil { + objectMap["degreeOfParallelism"] = dlauatp.DegreeOfParallelism + } + if dlauatp.Priority != nil { + objectMap["priority"] = dlauatp.Priority + } + if dlauatp.Parameters != nil { + objectMap["parameters"] = dlauatp.Parameters + } + if dlauatp.RuntimeVersion != nil { + objectMap["runtimeVersion"] = dlauatp.RuntimeVersion + } + if dlauatp.CompilationMode != nil { + objectMap["compilationMode"] = dlauatp.CompilationMode + } + return json.Marshal(objectMap) +} + +// DataMapperMapping source and target table mapping details. +type DataMapperMapping struct { + // TargetEntityName - Name of the target table + TargetEntityName *string `json:"targetEntityName,omitempty"` + // SourceEntityName - Name of the source table + SourceEntityName *string `json:"sourceEntityName,omitempty"` + // SourceConnectionReference - The connection reference for the source connection. + SourceConnectionReference *MapperConnectionReference `json:"sourceConnectionReference,omitempty"` + // AttributeMappingInfo - This holds the user provided attribute mapping information. + AttributeMappingInfo *MapperAttributeMappings `json:"attributeMappingInfo,omitempty"` + // SourceDenormalizeInfo - This holds the source denormalization information used while joining multiple sources. + SourceDenormalizeInfo interface{} `json:"sourceDenormalizeInfo,omitempty"` +} + +// DatabricksNotebookActivity databricksNotebook activity. +type DatabricksNotebookActivity struct { + // DatabricksNotebookActivityTypeProperties - Databricks Notebook activity properties. + *DatabricksNotebookActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) MarshalJSON() ([]byte, error) { + dna.Type = TypeBasicActivityTypeDatabricksNotebook + objectMap := make(map[string]interface{}) + if dna.DatabricksNotebookActivityTypeProperties != nil { + objectMap["typeProperties"] = dna.DatabricksNotebookActivityTypeProperties + } + if dna.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dna.LinkedServiceName + } + if dna.Policy != nil { + objectMap["policy"] = dna.Policy + } + if dna.Name != nil { + objectMap["name"] = dna.Name + } + if dna.Description != nil { + objectMap["description"] = dna.Description + } + if dna.State != "" { + objectMap["state"] = dna.State + } + if dna.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = dna.OnInactiveMarkAs + } + if dna.DependsOn != nil { + objectMap["dependsOn"] = dna.DependsOn + } + if dna.UserProperties != nil { + objectMap["userProperties"] = dna.UserProperties + } + if dna.Type != "" { + objectMap["type"] = dna.Type + } + for k, v := range dna.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return &dna, true +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &dna, true +} + +// AsWebHookActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for DatabricksNotebookActivity. +func (dna DatabricksNotebookActivity) AsBasicActivity() (BasicActivity, bool) { + return &dna, true +} + +// UnmarshalJSON is the custom unmarshaler for DatabricksNotebookActivity struct. +func (dna *DatabricksNotebookActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var databricksNotebookActivityTypeProperties DatabricksNotebookActivityTypeProperties + err = json.Unmarshal(*v, &databricksNotebookActivityTypeProperties) + if err != nil { + return err + } + dna.DatabricksNotebookActivityTypeProperties = &databricksNotebookActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dna.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + dna.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dna.AdditionalProperties == nil { + dna.AdditionalProperties = make(map[string]interface{}) + } + dna.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dna.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dna.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + dna.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + dna.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + dna.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + dna.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dna.Type = typeVar + } + } + } + + return nil +} + +// DatabricksNotebookActivityTypeProperties databricks Notebook activity properties. +type DatabricksNotebookActivityTypeProperties struct { + // NotebookPath - 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"` + // BaseParameters - 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"` + // Libraries - A list of libraries to be installed on the cluster that will execute the job. + Libraries *[]map[string]interface{} `json:"libraries,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatabricksNotebookActivityTypeProperties. +func (dnatp DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dnatp.NotebookPath != nil { + objectMap["notebookPath"] = dnatp.NotebookPath + } + if dnatp.BaseParameters != nil { + objectMap["baseParameters"] = dnatp.BaseParameters + } + if dnatp.Libraries != nil { + objectMap["libraries"] = dnatp.Libraries + } + return json.Marshal(objectMap) +} + +// DatabricksSparkJarActivity databricksSparkJar activity. +type DatabricksSparkJarActivity struct { + // DatabricksSparkJarActivityTypeProperties - Databricks SparkJar activity properties. + *DatabricksSparkJarActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { + dsja.Type = TypeBasicActivityTypeDatabricksSparkJar + objectMap := make(map[string]interface{}) + if dsja.DatabricksSparkJarActivityTypeProperties != nil { + objectMap["typeProperties"] = dsja.DatabricksSparkJarActivityTypeProperties + } + if dsja.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dsja.LinkedServiceName + } + if dsja.Policy != nil { + objectMap["policy"] = dsja.Policy + } + if dsja.Name != nil { + objectMap["name"] = dsja.Name + } + if dsja.Description != nil { + objectMap["description"] = dsja.Description + } + if dsja.State != "" { + objectMap["state"] = dsja.State + } + if dsja.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = dsja.OnInactiveMarkAs + } + if dsja.DependsOn != nil { + objectMap["dependsOn"] = dsja.DependsOn + } + if dsja.UserProperties != nil { + objectMap["userProperties"] = dsja.UserProperties + } + if dsja.Type != "" { + objectMap["type"] = dsja.Type + } + for k, v := range dsja.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return &dsja, true +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &dsja, true +} + +// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for DatabricksSparkJarActivity. +func (dsja DatabricksSparkJarActivity) AsBasicActivity() (BasicActivity, bool) { + return &dsja, true +} + +// UnmarshalJSON is the custom unmarshaler for DatabricksSparkJarActivity struct. +func (dsja *DatabricksSparkJarActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var databricksSparkJarActivityTypeProperties DatabricksSparkJarActivityTypeProperties + err = json.Unmarshal(*v, &databricksSparkJarActivityTypeProperties) + if err != nil { + return err + } + dsja.DatabricksSparkJarActivityTypeProperties = &databricksSparkJarActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dsja.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + dsja.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dsja.AdditionalProperties == nil { + dsja.AdditionalProperties = make(map[string]interface{}) + } + dsja.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dsja.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dsja.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + dsja.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + dsja.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + dsja.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + dsja.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dsja.Type = typeVar + } + } + } + + return nil +} + +// DatabricksSparkJarActivityTypeProperties databricks SparkJar activity properties. +type DatabricksSparkJarActivityTypeProperties struct { + // MainClassName - 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"` + // Parameters - Parameters that will be passed to the main method. + Parameters *[]interface{} `json:"parameters,omitempty"` + // Libraries - A list of libraries to be installed on the cluster that will execute the job. + Libraries *[]map[string]interface{} `json:"libraries,omitempty"` +} + +// DatabricksSparkPythonActivity databricksSparkPython activity. +type DatabricksSparkPythonActivity struct { + // DatabricksSparkPythonActivityTypeProperties - Databricks SparkPython activity properties. + *DatabricksSparkPythonActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error) { + dspa.Type = TypeBasicActivityTypeDatabricksSparkPython + objectMap := make(map[string]interface{}) + if dspa.DatabricksSparkPythonActivityTypeProperties != nil { + objectMap["typeProperties"] = dspa.DatabricksSparkPythonActivityTypeProperties + } + if dspa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dspa.LinkedServiceName + } + if dspa.Policy != nil { + objectMap["policy"] = dspa.Policy + } + if dspa.Name != nil { + objectMap["name"] = dspa.Name + } + if dspa.Description != nil { + objectMap["description"] = dspa.Description + } + if dspa.State != "" { + objectMap["state"] = dspa.State + } + if dspa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = dspa.OnInactiveMarkAs + } + if dspa.DependsOn != nil { + objectMap["dependsOn"] = dspa.DependsOn + } + if dspa.UserProperties != nil { + objectMap["userProperties"] = dspa.UserProperties + } + if dspa.Type != "" { + objectMap["type"] = dspa.Type + } + for k, v := range dspa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return &dspa, true +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &dspa, true +} + +// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. +func (dspa DatabricksSparkPythonActivity) AsBasicActivity() (BasicActivity, bool) { + return &dspa, true +} + +// UnmarshalJSON is the custom unmarshaler for DatabricksSparkPythonActivity struct. +func (dspa *DatabricksSparkPythonActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var databricksSparkPythonActivityTypeProperties DatabricksSparkPythonActivityTypeProperties + err = json.Unmarshal(*v, &databricksSparkPythonActivityTypeProperties) + if err != nil { + return err + } + dspa.DatabricksSparkPythonActivityTypeProperties = &databricksSparkPythonActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dspa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + dspa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dspa.AdditionalProperties == nil { + dspa.AdditionalProperties = make(map[string]interface{}) + } + dspa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dspa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dspa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + dspa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + dspa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + dspa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + dspa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dspa.Type = typeVar + } + } + } + + return nil +} + +// DatabricksSparkPythonActivityTypeProperties databricks SparkPython activity properties. +type DatabricksSparkPythonActivityTypeProperties struct { + // PythonFile - 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"` + // Parameters - Command line parameters that will be passed to the Python file. + Parameters *[]interface{} `json:"parameters,omitempty"` + // Libraries - A list of libraries to be installed on the cluster that will execute the job. + Libraries *[]map[string]interface{} `json:"libraries,omitempty"` +} + +// BasicDataset the Azure Data Factory nested object which identifies data within different data stores, such as +// tables, files, folders, and documents. +type BasicDataset interface { + AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) + AsWarehouseTableDataset() (*WarehouseTableDataset, bool) + AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) + AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) + AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) + AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) + AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) + AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) + AsSnowflakeDataset() (*SnowflakeDataset, bool) + AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) + AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) + AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) + AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) + AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) + AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) + AsVerticaTableDataset() (*VerticaTableDataset, bool) + AsNetezzaTableDataset() (*NetezzaTableDataset, bool) + AsZohoObjectDataset() (*ZohoObjectDataset, bool) + AsXeroObjectDataset() (*XeroObjectDataset, bool) + AsSquareObjectDataset() (*SquareObjectDataset, bool) + AsSparkObjectDataset() (*SparkObjectDataset, bool) + AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) + AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) + AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) + AsPrestoObjectDataset() (*PrestoObjectDataset, bool) + AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) + AsPaypalObjectDataset() (*PaypalObjectDataset, bool) + AsMarketoObjectDataset() (*MarketoObjectDataset, bool) + AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) + AsMariaDBTableDataset() (*MariaDBTableDataset, bool) + AsMagentoObjectDataset() (*MagentoObjectDataset, bool) + AsJiraObjectDataset() (*JiraObjectDataset, bool) + AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) + AsHubspotObjectDataset() (*HubspotObjectDataset, bool) + AsHiveObjectDataset() (*HiveObjectDataset, bool) + AsHBaseObjectDataset() (*HBaseObjectDataset, bool) + AsGreenplumTableDataset() (*GreenplumTableDataset, bool) + AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) + AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) + AsEloquaObjectDataset() (*EloquaObjectDataset, bool) + AsDrillTableDataset() (*DrillTableDataset, bool) + AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) + AsConcurObjectDataset() (*ConcurObjectDataset, bool) + AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) + AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) + AsHTTPDataset() (*HTTPDataset, bool) + AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) + AsWebTableDataset() (*WebTableDataset, bool) + AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) + AsSapTableResourceDataset() (*SapTableResourceDataset, bool) + AsRestResourceDataset() (*RestResourceDataset, bool) + AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) + AsSQLServerTableDataset() (*SQLServerTableDataset, bool) + AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) + AsSapHanaTableDataset() (*SapHanaTableDataset, bool) + AsSapEccResourceDataset() (*SapEccResourceDataset, bool) + AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) + AsSapBwCubeDataset() (*SapBwCubeDataset, bool) + AsSybaseTableDataset() (*SybaseTableDataset, bool) + AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) + AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) + AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) + AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) + AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) + AsMySQLTableDataset() (*MySQLTableDataset, bool) + AsOdbcTableDataset() (*OdbcTableDataset, bool) + AsInformixTableDataset() (*InformixTableDataset, bool) + AsRelationalTableDataset() (*RelationalTableDataset, bool) + AsDb2TableDataset() (*Db2TableDataset, bool) + AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) + AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) + AsTeradataTableDataset() (*TeradataTableDataset, bool) + AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) + AsOracleTableDataset() (*OracleTableDataset, bool) + AsODataResourceDataset() (*ODataResourceDataset, bool) + AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) + AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) + AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) + AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) + AsFileShareDataset() (*FileShareDataset, bool) + AsOffice365Dataset() (*Office365Dataset, bool) + AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) + AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) + AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) + AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) + AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) + AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) + AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) + AsCustomDataset() (*CustomDataset, bool) + AsCassandraTableDataset() (*CassandraTableDataset, bool) + AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) + AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) + AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) + AsAzureTableDataset() (*AzureTableDataset, bool) + AsAzureBlobDataset() (*AzureBlobDataset, bool) + AsBinaryDataset() (*BinaryDataset, bool) + AsOrcDataset() (*OrcDataset, bool) + AsXMLDataset() (*XMLDataset, bool) + AsJSONDataset() (*JSONDataset, bool) + AsDelimitedTextDataset() (*DelimitedTextDataset, bool) + AsParquetDataset() (*ParquetDataset, bool) + AsExcelDataset() (*ExcelDataset, bool) + AsAvroDataset() (*AvroDataset, bool) + AsAmazonS3Dataset() (*AmazonS3Dataset, bool) + AsDataset() (*Dataset, bool) +} + +// Dataset the Azure Data Factory nested object which identifies data within different data stores, such as +// tables, files, folders, and documents. +type Dataset struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +func unmarshalBasicDataset(body []byte) (BasicDataset, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicDatasetTypeServiceNowV2Object): + var snvod ServiceNowV2ObjectDataset + err := json.Unmarshal(body, &snvod) + return snvod, err + case string(TypeBasicDatasetTypeWarehouseTable): + var wtd WarehouseTableDataset + err := json.Unmarshal(body, &wtd) + return wtd, err + case string(TypeBasicDatasetTypeSalesforceServiceCloudV2Object): + var sscvod SalesforceServiceCloudV2ObjectDataset + err := json.Unmarshal(body, &sscvod) + return sscvod, err + case string(TypeBasicDatasetTypeSalesforceV2Object): + var svod SalesforceV2ObjectDataset + err := json.Unmarshal(body, &svod) + return svod, err + case string(TypeBasicDatasetTypeLakeHouseTable): + var lhtd LakeHouseTableDataset + err := json.Unmarshal(body, &lhtd) + return lhtd, err + case string(TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset): + var addld AzureDatabricksDeltaLakeDataset + err := json.Unmarshal(body, &addld) + return addld, err + case string(TypeBasicDatasetTypeSharePointOnlineListResource): + var spolrd SharePointOnlineListResourceDataset + err := json.Unmarshal(body, &spolrd) + return spolrd, err + case string(TypeBasicDatasetTypeSnowflakeV2Table): + var svd SnowflakeV2Dataset + err := json.Unmarshal(body, &svd) + return svd, err + case string(TypeBasicDatasetTypeSnowflakeTable): + var sd SnowflakeDataset + err := json.Unmarshal(body, &sd) + return sd, err + case string(TypeBasicDatasetTypeGoogleAdWordsObject): + var gawod GoogleAdWordsObjectDataset + err := json.Unmarshal(body, &gawod) + return gawod, err + case string(TypeBasicDatasetTypeAzureDataExplorerTable): + var adetd AzureDataExplorerTableDataset + err := json.Unmarshal(body, &adetd) + return adetd, err + case string(TypeBasicDatasetTypeOracleServiceCloudObject): + var oscod OracleServiceCloudObjectDataset + err := json.Unmarshal(body, &oscod) + return oscod, err + case string(TypeBasicDatasetTypeDynamicsAXResource): + var dard DynamicsAXResourceDataset + err := json.Unmarshal(body, &dard) + return dard, err + case string(TypeBasicDatasetTypeResponsysObject): + var rod ResponsysObjectDataset + err := json.Unmarshal(body, &rod) + return rod, err + case string(TypeBasicDatasetTypeSalesforceMarketingCloudObject): + var smcod SalesforceMarketingCloudObjectDataset + err := json.Unmarshal(body, &smcod) + return smcod, err + case string(TypeBasicDatasetTypeVerticaTable): + var vtd VerticaTableDataset + err := json.Unmarshal(body, &vtd) + return vtd, err + case string(TypeBasicDatasetTypeNetezzaTable): + var ntd NetezzaTableDataset + err := json.Unmarshal(body, &ntd) + return ntd, err + case string(TypeBasicDatasetTypeZohoObject): + var zod ZohoObjectDataset + err := json.Unmarshal(body, &zod) + return zod, err + case string(TypeBasicDatasetTypeXeroObject): + var xod XeroObjectDataset + err := json.Unmarshal(body, &xod) + return xod, err + case string(TypeBasicDatasetTypeSquareObject): + var sod SquareObjectDataset + err := json.Unmarshal(body, &sod) + return sod, err + case string(TypeBasicDatasetTypeSparkObject): + var sod SparkObjectDataset + err := json.Unmarshal(body, &sod) + return sod, err + case string(TypeBasicDatasetTypeShopifyObject): + var sod ShopifyObjectDataset + err := json.Unmarshal(body, &sod) + return sod, err + case string(TypeBasicDatasetTypeServiceNowObject): + var snod ServiceNowObjectDataset + err := json.Unmarshal(body, &snod) + return snod, err + case string(TypeBasicDatasetTypeQuickBooksObject): + var qbod QuickBooksObjectDataset + err := json.Unmarshal(body, &qbod) + return qbod, err + case string(TypeBasicDatasetTypePrestoObject): + var pod PrestoObjectDataset + err := json.Unmarshal(body, &pod) + return pod, err + case string(TypeBasicDatasetTypePhoenixObject): + var pod PhoenixObjectDataset + err := json.Unmarshal(body, &pod) + return pod, err + case string(TypeBasicDatasetTypePaypalObject): + var pod PaypalObjectDataset + err := json.Unmarshal(body, &pod) + return pod, err + case string(TypeBasicDatasetTypeMarketoObject): + var mod MarketoObjectDataset + err := json.Unmarshal(body, &mod) + return mod, err + case string(TypeBasicDatasetTypeAzureMariaDBTable): + var amdtd AzureMariaDBTableDataset + err := json.Unmarshal(body, &amdtd) + return amdtd, err + case string(TypeBasicDatasetTypeMariaDBTable): + var mdtd MariaDBTableDataset + err := json.Unmarshal(body, &mdtd) + return mdtd, err + case string(TypeBasicDatasetTypeMagentoObject): + var mod MagentoObjectDataset + err := json.Unmarshal(body, &mod) + return mod, err + case string(TypeBasicDatasetTypeJiraObject): + var jod JiraObjectDataset + err := json.Unmarshal(body, &jod) + return jod, err + case string(TypeBasicDatasetTypeImpalaObject): + var iod ImpalaObjectDataset + err := json.Unmarshal(body, &iod) + return iod, err + case string(TypeBasicDatasetTypeHubspotObject): + var hod HubspotObjectDataset + err := json.Unmarshal(body, &hod) + return hod, err + case string(TypeBasicDatasetTypeHiveObject): + var hod HiveObjectDataset + err := json.Unmarshal(body, &hod) + return hod, err + case string(TypeBasicDatasetTypeHBaseObject): + var hbod HBaseObjectDataset + err := json.Unmarshal(body, &hbod) + return hbod, err + case string(TypeBasicDatasetTypeGreenplumTable): + var gtd GreenplumTableDataset + err := json.Unmarshal(body, >d) + return gtd, err + case string(TypeBasicDatasetTypeGoogleBigQueryV2Object): + var gbqvod GoogleBigQueryV2ObjectDataset + err := json.Unmarshal(body, &gbqvod) + return gbqvod, err + case string(TypeBasicDatasetTypeGoogleBigQueryObject): + var gbqod GoogleBigQueryObjectDataset + err := json.Unmarshal(body, &gbqod) + return gbqod, err + case string(TypeBasicDatasetTypeEloquaObject): + var eod EloquaObjectDataset + err := json.Unmarshal(body, &eod) + return eod, err + case string(TypeBasicDatasetTypeDrillTable): + var dtd DrillTableDataset + err := json.Unmarshal(body, &dtd) + return dtd, err + case string(TypeBasicDatasetTypeCouchbaseTable): + var ctd CouchbaseTableDataset + err := json.Unmarshal(body, &ctd) + return ctd, err + case string(TypeBasicDatasetTypeConcurObject): + var cod ConcurObjectDataset + err := json.Unmarshal(body, &cod) + return cod, err + case string(TypeBasicDatasetTypeAzurePostgreSQLTable): + var apstd AzurePostgreSQLTableDataset + err := json.Unmarshal(body, &apstd) + return apstd, err + case string(TypeBasicDatasetTypeAmazonMWSObject): + var amod AmazonMWSObjectDataset + err := json.Unmarshal(body, &amod) + return amod, err + case string(TypeBasicDatasetTypeHTTPFile): + var hd HTTPDataset + err := json.Unmarshal(body, &hd) + return hd, err + case string(TypeBasicDatasetTypeAzureSearchIndex): + var asid AzureSearchIndexDataset + err := json.Unmarshal(body, &asid) + return asid, err + case string(TypeBasicDatasetTypeWebTable): + var wtd WebTableDataset + err := json.Unmarshal(body, &wtd) + return wtd, err + case string(TypeBasicDatasetTypeSapOdpResource): + var sord SapOdpResourceDataset + err := json.Unmarshal(body, &sord) + return sord, err + case string(TypeBasicDatasetTypeSapTableResource): + var strd SapTableResourceDataset + err := json.Unmarshal(body, &strd) + return strd, err + case string(TypeBasicDatasetTypeRestResource): + var rrd RestResourceDataset + err := json.Unmarshal(body, &rrd) + return rrd, err + case string(TypeBasicDatasetTypeAmazonRdsForSQLServerTable): + var arfsstd AmazonRdsForSQLServerTableDataset + err := json.Unmarshal(body, &arfsstd) + return arfsstd, err + case string(TypeBasicDatasetTypeSQLServerTable): + var sstd SQLServerTableDataset + err := json.Unmarshal(body, &sstd) + return sstd, err + case string(TypeBasicDatasetTypeSapOpenHubTable): + var sohtd SapOpenHubTableDataset + err := json.Unmarshal(body, &sohtd) + return sohtd, err + case string(TypeBasicDatasetTypeSapHanaTable): + var shtd SapHanaTableDataset + err := json.Unmarshal(body, &shtd) + return shtd, err + case string(TypeBasicDatasetTypeSapEccResource): + var serd SapEccResourceDataset + err := json.Unmarshal(body, &serd) + return serd, err + case string(TypeBasicDatasetTypeSapCloudForCustomerResource): + var scfcrd SapCloudForCustomerResourceDataset + err := json.Unmarshal(body, &scfcrd) + return scfcrd, err + case string(TypeBasicDatasetTypeSapBwCube): + var sbcd SapBwCubeDataset + err := json.Unmarshal(body, &sbcd) + return sbcd, err + case string(TypeBasicDatasetTypeSybaseTable): + var std SybaseTableDataset + err := json.Unmarshal(body, &std) + return std, err + case string(TypeBasicDatasetTypeSalesforceServiceCloudObject): + var sscod SalesforceServiceCloudObjectDataset + err := json.Unmarshal(body, &sscod) + return sscod, err + case string(TypeBasicDatasetTypeSalesforceObject): + var sod SalesforceObjectDataset + err := json.Unmarshal(body, &sod) + return sod, err + case string(TypeBasicDatasetTypeMicrosoftAccessTable): + var matd MicrosoftAccessTableDataset + err := json.Unmarshal(body, &matd) + return matd, err + case string(TypeBasicDatasetTypePostgreSQLV2Table): + var psvtd PostgreSQLV2TableDataset + err := json.Unmarshal(body, &psvtd) + return psvtd, err + case string(TypeBasicDatasetTypePostgreSQLTable): + var pstd PostgreSQLTableDataset + err := json.Unmarshal(body, &pstd) + return pstd, err + case string(TypeBasicDatasetTypeMySQLTable): + var mstd MySQLTableDataset + err := json.Unmarshal(body, &mstd) + return mstd, err + case string(TypeBasicDatasetTypeOdbcTable): + var otd OdbcTableDataset + err := json.Unmarshal(body, &otd) + return otd, err + case string(TypeBasicDatasetTypeInformixTable): + var itd InformixTableDataset + err := json.Unmarshal(body, &itd) + return itd, err + case string(TypeBasicDatasetTypeRelationalTable): + var rtd RelationalTableDataset + err := json.Unmarshal(body, &rtd) + return rtd, err + case string(TypeBasicDatasetTypeDb2Table): + var d2td Db2TableDataset + err := json.Unmarshal(body, &d2td) + return d2td, err + case string(TypeBasicDatasetTypeAmazonRedshiftTable): + var artd AmazonRedshiftTableDataset + err := json.Unmarshal(body, &artd) + return artd, err + case string(TypeBasicDatasetTypeAzureMySQLTable): + var amstd AzureMySQLTableDataset + err := json.Unmarshal(body, &amstd) + return amstd, err + case string(TypeBasicDatasetTypeTeradataTable): + var ttd TeradataTableDataset + err := json.Unmarshal(body, &ttd) + return ttd, err + case string(TypeBasicDatasetTypeAmazonRdsForOracleTable): + var arfotd AmazonRdsForOracleTableDataset + err := json.Unmarshal(body, &arfotd) + return arfotd, err + case string(TypeBasicDatasetTypeOracleTable): + var otd OracleTableDataset + err := json.Unmarshal(body, &otd) + return otd, err + case string(TypeBasicDatasetTypeODataResource): + var odrd ODataResourceDataset + err := json.Unmarshal(body, &odrd) + return odrd, err + case string(TypeBasicDatasetTypeCosmosDbMongoDbAPICollection): + var cdmdacd CosmosDbMongoDbAPICollectionDataset + err := json.Unmarshal(body, &cdmdacd) + return cdmdacd, err + case string(TypeBasicDatasetTypeMongoDbV2Collection): + var mdvcd MongoDbV2CollectionDataset + err := json.Unmarshal(body, &mdvcd) + return mdvcd, err + case string(TypeBasicDatasetTypeMongoDbAtlasCollection): + var mdacd MongoDbAtlasCollectionDataset + err := json.Unmarshal(body, &mdacd) + return mdacd, err + case string(TypeBasicDatasetTypeMongoDbCollection): + var mdcd MongoDbCollectionDataset + err := json.Unmarshal(body, &mdcd) + return mdcd, err + case string(TypeBasicDatasetTypeFileShare): + var fsd FileShareDataset + err := json.Unmarshal(body, &fsd) + return fsd, err + case string(TypeBasicDatasetTypeOffice365Table): + var o3d Office365Dataset + err := json.Unmarshal(body, &o3d) + return o3d, err + case string(TypeBasicDatasetTypeAzureBlobFSFile): + var abfd AzureBlobFSDataset + err := json.Unmarshal(body, &abfd) + return abfd, err + case string(TypeBasicDatasetTypeAzureDataLakeStoreFile): + var adlsd AzureDataLakeStoreDataset + err := json.Unmarshal(body, &adlsd) + return adlsd, err + case string(TypeBasicDatasetTypeCommonDataServiceForAppsEntity): + var cdsfaed CommonDataServiceForAppsEntityDataset + err := json.Unmarshal(body, &cdsfaed) + return cdsfaed, err + case string(TypeBasicDatasetTypeDynamicsCrmEntity): + var dced DynamicsCrmEntityDataset + err := json.Unmarshal(body, &dced) + return dced, err + case string(TypeBasicDatasetTypeDynamicsEntity): + var ded DynamicsEntityDataset + err := json.Unmarshal(body, &ded) + return ded, err + case string(TypeBasicDatasetTypeDocumentDbCollection): + var ddcd DocumentDbCollectionDataset + err := json.Unmarshal(body, &ddcd) + return ddcd, err + case string(TypeBasicDatasetTypeCosmosDbSQLAPICollection): + var cdsacd CosmosDbSQLAPICollectionDataset + err := json.Unmarshal(body, &cdsacd) + return cdsacd, err + case string(TypeBasicDatasetTypeCustomDataset): + var cd CustomDataset + err := json.Unmarshal(body, &cd) + return cd, err + case string(TypeBasicDatasetTypeCassandraTable): + var ctd CassandraTableDataset + err := json.Unmarshal(body, &ctd) + return ctd, err + case string(TypeBasicDatasetTypeAzureSQLDWTable): + var asdtd AzureSQLDWTableDataset + err := json.Unmarshal(body, &asdtd) + return asdtd, err + case string(TypeBasicDatasetTypeAzureSQLMITable): + var asmtd AzureSQLMITableDataset + err := json.Unmarshal(body, &asmtd) + return asmtd, err + case string(TypeBasicDatasetTypeAzureSQLTable): + var astd AzureSQLTableDataset + err := json.Unmarshal(body, &astd) + return astd, err + case string(TypeBasicDatasetTypeAzureTable): + var atd AzureTableDataset + err := json.Unmarshal(body, &atd) + return atd, err + case string(TypeBasicDatasetTypeAzureBlob): + var abd AzureBlobDataset + err := json.Unmarshal(body, &abd) + return abd, err + case string(TypeBasicDatasetTypeBinary): + var bd BinaryDataset + err := json.Unmarshal(body, &bd) + return bd, err + case string(TypeBasicDatasetTypeOrc): + var od OrcDataset + err := json.Unmarshal(body, &od) + return od, err + case string(TypeBasicDatasetTypeXML): + var xd XMLDataset + err := json.Unmarshal(body, &xd) + return xd, err + case string(TypeBasicDatasetTypeJSON): + var jd JSONDataset + err := json.Unmarshal(body, &jd) + return jd, err + case string(TypeBasicDatasetTypeDelimitedText): + var dtd DelimitedTextDataset + err := json.Unmarshal(body, &dtd) + return dtd, err + case string(TypeBasicDatasetTypeParquet): + var pd ParquetDataset + err := json.Unmarshal(body, &pd) + return pd, err + case string(TypeBasicDatasetTypeExcel): + var ed ExcelDataset + err := json.Unmarshal(body, &ed) + return ed, err + case string(TypeBasicDatasetTypeAvro): + var ad AvroDataset + err := json.Unmarshal(body, &ad) + return ad, err + case string(TypeBasicDatasetTypeAmazonS3Object): + var asd AmazonS3Dataset + err := json.Unmarshal(body, &asd) + return asd, err + default: + var d Dataset + err := json.Unmarshal(body, &d) + return d, err + } +} +func unmarshalBasicDatasetArray(body []byte) ([]BasicDataset, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + dArray := make([]BasicDataset, len(rawMessages)) + + for index, rawMessage := range rawMessages { + d, err := unmarshalBasicDataset(*rawMessage) + if err != nil { + return nil, err + } + dArray[index] = d + } + return dArray, nil +} + +// MarshalJSON is the custom marshaler for Dataset. +func (d Dataset) MarshalJSON() ([]byte, error) { + d.Type = TypeBasicDatasetTypeDataset + objectMap := make(map[string]interface{}) + if d.Description != nil { + objectMap["description"] = d.Description + } + if d.Structure != nil { + objectMap["structure"] = d.Structure + } + if d.Schema != nil { + objectMap["schema"] = d.Schema + } + if d.LinkedServiceName != nil { + objectMap["linkedServiceName"] = d.LinkedServiceName + } + if d.Parameters != nil { + objectMap["parameters"] = d.Parameters + } + if d.Annotations != nil { + objectMap["annotations"] = d.Annotations + } + if d.Folder != nil { + objectMap["folder"] = d.Folder + } + if d.Type != "" { + objectMap["type"] = d.Type + } + for k, v := range d.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsDataset() (*Dataset, bool) { + return &d, true +} + +// AsBasicDataset is the BasicDataset implementation for Dataset. +func (d Dataset) AsBasicDataset() (BasicDataset, bool) { + return &d, true +} + +// UnmarshalJSON is the custom unmarshaler for Dataset struct. +func (d *Dataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if d.AdditionalProperties == nil { + d.AdditionalProperties = make(map[string]interface{}) + } + d.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + d.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + d.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + d.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + d.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + d.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + d.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + d.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + d.Type = typeVar + } + } + } + + return nil +} + +// DatasetCompression the compression method used on a dataset. +type DatasetCompression struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Type of dataset compression. Type: string (or Expression with resultType string). + Type interface{} `json:"type,omitempty"` + // Level - The dataset compression level. Type: string (or Expression with resultType string). + Level interface{} `json:"level,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatasetCompression. +func (dc DatasetCompression) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dc.Type != nil { + objectMap["type"] = dc.Type + } + if dc.Level != nil { + objectMap["level"] = dc.Level + } + for k, v := range dc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatasetCompression struct. +func (dc *DatasetCompression) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dc.AdditionalProperties == nil { + dc.AdditionalProperties = make(map[string]interface{}) + } + dc.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar interface{} + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dc.Type = typeVar + } + case "level": + if v != nil { + var level interface{} + err = json.Unmarshal(*v, &level) + if err != nil { + return err + } + dc.Level = level + } + } + } + + return nil +} + +// DatasetDataElement columns that define the structure of the dataset. +type DatasetDataElement struct { + // Name - Name of the column. Type: string (or Expression with resultType string). + Name interface{} `json:"name,omitempty"` + // Type - Type of the column. Type: string (or Expression with resultType string). + Type interface{} `json:"type,omitempty"` +} + +// DatasetDebugResource dataset debug resource. +type DatasetDebugResource struct { + // Properties - Dataset properties. + Properties BasicDataset `json:"properties,omitempty"` + // Name - The resource name. + Name *string `json:"name,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DatasetDebugResource struct. +func (ddr *DatasetDebugResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicDataset(*v) + if err != nil { + return err + } + ddr.Properties = properties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ddr.Name = &name + } + } + } + + return nil +} + +// DatasetFolder the folder that this Dataset is in. If not specified, Dataset will appear at the root +// level. +type DatasetFolder struct { + // Name - The name of the folder that this Dataset is in. + Name *string `json:"name,omitempty"` +} + +// DatasetListResponse a list of dataset resources. +type DatasetListResponse struct { + autorest.Response `json:"-"` + // Value - List of datasets. + Value *[]DatasetResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// DatasetListResponseIterator provides access to a complete listing of DatasetResource values. +type DatasetListResponseIterator struct { + i int + page DatasetListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *DatasetListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatasetListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *DatasetListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter DatasetListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter DatasetListResponseIterator) Response() DatasetListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter DatasetListResponseIterator) Value() DatasetResource { + if !iter.page.NotDone() { + return DatasetResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the DatasetListResponseIterator type. +func NewDatasetListResponseIterator(page DatasetListResponsePage) DatasetListResponseIterator { + return DatasetListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (dlr DatasetListResponse) IsEmpty() bool { + return dlr.Value == nil || len(*dlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (dlr DatasetListResponse) hasNextLink() bool { + return dlr.NextLink != nil && len(*dlr.NextLink) != 0 +} + +// datasetListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (dlr DatasetListResponse) datasetListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !dlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(dlr.NextLink))) +} + +// DatasetListResponsePage contains a page of DatasetResource values. +type DatasetListResponsePage struct { + fn func(context.Context, DatasetListResponse) (DatasetListResponse, error) + dlr DatasetListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *DatasetListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DatasetListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.dlr) + if err != nil { + return err + } + page.dlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *DatasetListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page DatasetListResponsePage) NotDone() bool { + return !page.dlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page DatasetListResponsePage) Response() DatasetListResponse { + return page.dlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page DatasetListResponsePage) Values() []DatasetResource { + if page.dlr.IsEmpty() { + return nil + } + return *page.dlr.Value +} + +// Creates a new instance of the DatasetListResponsePage type. +func NewDatasetListResponsePage(cur DatasetListResponse, getNextPage func(context.Context, DatasetListResponse) (DatasetListResponse, error)) DatasetListResponsePage { + return DatasetListResponsePage{ + fn: getNextPage, + dlr: cur, + } +} + +// BasicDatasetLocation dataset location. +type BasicDatasetLocation interface { + AsLakeHouseLocation() (*LakeHouseLocation, bool) + AsHdfsLocation() (*HdfsLocation, bool) + AsHTTPServerLocation() (*HTTPServerLocation, bool) + AsSftpLocation() (*SftpLocation, bool) + AsFtpServerLocation() (*FtpServerLocation, bool) + AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) + AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) + AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) + AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) + AsFileServerLocation() (*FileServerLocation, bool) + AsAmazonS3Location() (*AmazonS3Location, bool) + AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) + AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) + AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) + AsDatasetLocation() (*DatasetLocation, bool) +} + +// DatasetLocation dataset location. +type DatasetLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +func unmarshalBasicDatasetLocation(body []byte) (BasicDatasetLocation, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicDatasetLocationTypeLakeHouseLocation): + var lhl LakeHouseLocation + err := json.Unmarshal(body, &lhl) + return lhl, err + case string(TypeBasicDatasetLocationTypeHdfsLocation): + var hl HdfsLocation + err := json.Unmarshal(body, &hl) + return hl, err + case string(TypeBasicDatasetLocationTypeHTTPServerLocation): + var hsl HTTPServerLocation + err := json.Unmarshal(body, &hsl) + return hsl, err + case string(TypeBasicDatasetLocationTypeSftpLocation): + var sl SftpLocation + err := json.Unmarshal(body, &sl) + return sl, err + case string(TypeBasicDatasetLocationTypeFtpServerLocation): + var fsl FtpServerLocation + err := json.Unmarshal(body, &fsl) + return fsl, err + case string(TypeBasicDatasetLocationTypeGoogleCloudStorageLocation): + var gcsl GoogleCloudStorageLocation + err := json.Unmarshal(body, &gcsl) + return gcsl, err + case string(TypeBasicDatasetLocationTypeOracleCloudStorageLocation): + var ocsl OracleCloudStorageLocation + err := json.Unmarshal(body, &ocsl) + return ocsl, err + case string(TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation): + var ascl AmazonS3CompatibleLocation + err := json.Unmarshal(body, &ascl) + return ascl, err + case string(TypeBasicDatasetLocationTypeAzureFileStorageLocation): + var afsl AzureFileStorageLocation + err := json.Unmarshal(body, &afsl) + return afsl, err + case string(TypeBasicDatasetLocationTypeFileServerLocation): + var fsl FileServerLocation + err := json.Unmarshal(body, &fsl) + return fsl, err + case string(TypeBasicDatasetLocationTypeAmazonS3Location): + var asl AmazonS3Location + err := json.Unmarshal(body, &asl) + return asl, err + case string(TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation): + var adlsl AzureDataLakeStoreLocation + err := json.Unmarshal(body, &adlsl) + return adlsl, err + case string(TypeBasicDatasetLocationTypeAzureBlobFSLocation): + var abfl AzureBlobFSLocation + err := json.Unmarshal(body, &abfl) + return abfl, err + case string(TypeBasicDatasetLocationTypeAzureBlobStorageLocation): + var absl AzureBlobStorageLocation + err := json.Unmarshal(body, &absl) + return absl, err + default: + var dl DatasetLocation + err := json.Unmarshal(body, &dl) + return dl, err + } +} +func unmarshalBasicDatasetLocationArray(body []byte) ([]BasicDatasetLocation, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + dlArray := make([]BasicDatasetLocation, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dl, err := unmarshalBasicDatasetLocation(*rawMessage) + if err != nil { + return nil, err + } + dlArray[index] = dl + } + return dlArray, nil +} + +// MarshalJSON is the custom marshaler for DatasetLocation. +func (dl DatasetLocation) MarshalJSON() ([]byte, error) { + dl.Type = TypeBasicDatasetLocationTypeDatasetLocation + objectMap := make(map[string]interface{}) + if dl.FolderPath != nil { + objectMap["folderPath"] = dl.FolderPath + } + if dl.FileName != nil { + objectMap["fileName"] = dl.FileName + } + if dl.Type != "" { + objectMap["type"] = dl.Type + } + for k, v := range dl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return &dl, true +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for DatasetLocation. +func (dl DatasetLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &dl, true +} + +// UnmarshalJSON is the custom unmarshaler for DatasetLocation struct. +func (dl *DatasetLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dl.AdditionalProperties == nil { + dl.AdditionalProperties = make(map[string]interface{}) + } + dl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + dl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + dl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dl.Type = typeVar + } + } + } + + return nil +} + +// DatasetReference dataset reference type. +type DatasetReference struct { + // Type - Dataset reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference dataset name. + ReferenceName *string `json:"referenceName,omitempty"` + // Parameters - Arguments for dataset. + Parameters map[string]interface{} `json:"parameters"` +} + +// MarshalJSON is the custom marshaler for DatasetReference. +func (dr DatasetReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dr.Type != nil { + objectMap["type"] = dr.Type + } + if dr.ReferenceName != nil { + objectMap["referenceName"] = dr.ReferenceName + } + if dr.Parameters != nil { + objectMap["parameters"] = dr.Parameters + } + return json.Marshal(objectMap) +} + +// DatasetResource dataset resource type. +type DatasetResource struct { + autorest.Response `json:"-"` + // Properties - Dataset properties. + Properties BasicDataset `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatasetResource. +func (dr DatasetResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = dr.Properties + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatasetResource struct. +func (dr *DatasetResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicDataset(*v) + if err != nil { + return err + } + dr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + dr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dr.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + dr.Etag = &etag + } + } + } + + return nil +} + +// DatasetSchemaDataElement columns that define the physical type schema of the dataset. +type DatasetSchemaDataElement struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Name of the schema column. Type: string (or Expression with resultType string). + Name interface{} `json:"name,omitempty"` + // Type - Type of the schema column. Type: string (or Expression with resultType string). + Type interface{} `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DatasetSchemaDataElement. +func (dsde DatasetSchemaDataElement) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if dsde.Name != nil { + objectMap["name"] = dsde.Name + } + if dsde.Type != nil { + objectMap["type"] = dsde.Type + } + for k, v := range dsde.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for DatasetSchemaDataElement struct. +func (dsde *DatasetSchemaDataElement) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dsde.AdditionalProperties == nil { + dsde.AdditionalProperties = make(map[string]interface{}) + } + dsde.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name interface{} + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + dsde.Name = name + } + case "type": + if v != nil { + var typeVar interface{} + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dsde.Type = typeVar + } + } + } + + return nil +} + +// BasicDatasetStorageFormat the format definition of a storage. +type BasicDatasetStorageFormat interface { + AsParquetFormat() (*ParquetFormat, bool) + AsOrcFormat() (*OrcFormat, bool) + AsAvroFormat() (*AvroFormat, bool) + AsJSONFormat() (*JSONFormat, bool) + AsTextFormat() (*TextFormat, bool) + AsDatasetStorageFormat() (*DatasetStorageFormat, bool) +} + +// DatasetStorageFormat the format definition of a storage. +type DatasetStorageFormat struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Serializer - Serializer. Type: string (or Expression with resultType string). + Serializer interface{} `json:"serializer,omitempty"` + // Deserializer - Deserializer. Type: string (or Expression with resultType string). + Deserializer interface{} `json:"deserializer,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' + Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` +} + +func unmarshalBasicDatasetStorageFormat(body []byte) (BasicDatasetStorageFormat, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicDatasetStorageFormatTypeParquetFormat): + var pf ParquetFormat + err := json.Unmarshal(body, &pf) + return pf, err + case string(TypeBasicDatasetStorageFormatTypeOrcFormat): + var of OrcFormat + err := json.Unmarshal(body, &of) + return of, err + case string(TypeBasicDatasetStorageFormatTypeAvroFormat): + var af AvroFormat + err := json.Unmarshal(body, &af) + return af, err + case string(TypeBasicDatasetStorageFormatTypeJSONFormat): + var jf JSONFormat + err := json.Unmarshal(body, &jf) + return jf, err + case string(TypeBasicDatasetStorageFormatTypeTextFormat): + var tf TextFormat + err := json.Unmarshal(body, &tf) + return tf, err + default: + var dsf DatasetStorageFormat + err := json.Unmarshal(body, &dsf) + return dsf, err + } +} +func unmarshalBasicDatasetStorageFormatArray(body []byte) ([]BasicDatasetStorageFormat, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + dsfArray := make([]BasicDatasetStorageFormat, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dsf, err := unmarshalBasicDatasetStorageFormat(*rawMessage) + if err != nil { + return nil, err + } + dsfArray[index] = dsf + } + return dsfArray, nil +} + +// MarshalJSON is the custom marshaler for DatasetStorageFormat. +func (dsf DatasetStorageFormat) MarshalJSON() ([]byte, error) { + dsf.Type = TypeBasicDatasetStorageFormatTypeDatasetStorageFormat + objectMap := make(map[string]interface{}) + if dsf.Serializer != nil { + objectMap["serializer"] = dsf.Serializer + } + if dsf.Deserializer != nil { + objectMap["deserializer"] = dsf.Deserializer + } + if dsf.Type != "" { + objectMap["type"] = dsf.Type + } + for k, v := range dsf.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsParquetFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsParquetFormat() (*ParquetFormat, bool) { + return nil, false +} + +// AsOrcFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsOrcFormat() (*OrcFormat, bool) { + return nil, false +} + +// AsAvroFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsAvroFormat() (*AvroFormat, bool) { + return nil, false +} + +// AsJSONFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsJSONFormat() (*JSONFormat, bool) { + return nil, false +} + +// AsTextFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsTextFormat() (*TextFormat, bool) { + return nil, false +} + +// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { + return &dsf, true +} + +// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. +func (dsf DatasetStorageFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { + return &dsf, true +} + +// UnmarshalJSON is the custom unmarshaler for DatasetStorageFormat struct. +func (dsf *DatasetStorageFormat) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dsf.AdditionalProperties == nil { + dsf.AdditionalProperties = make(map[string]interface{}) + } + dsf.AdditionalProperties[k] = additionalProperties + } + case "serializer": + if v != nil { + var serializer interface{} + err = json.Unmarshal(*v, &serializer) + if err != nil { + return err + } + dsf.Serializer = serializer + } + case "deserializer": + if v != nil { + var deserializer interface{} + err = json.Unmarshal(*v, &deserializer) + if err != nil { + return err + } + dsf.Deserializer = deserializer + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetStorageFormat + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dsf.Type = typeVar + } + } + } + + return nil +} + +// DataworldLinkedService linked service for Dataworld. +type DataworldLinkedService struct { + // DataworldLinkedServiceTypeProperties - Dataworld linked service properties. + *DataworldLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DataworldLinkedService. +func (dls DataworldLinkedService) MarshalJSON() ([]byte, error) { + dls.Type = TypeBasicLinkedServiceTypeDataworld + objectMap := make(map[string]interface{}) + if dls.DataworldLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dls.DataworldLinkedServiceTypeProperties + } + if dls.ConnectVia != nil { + objectMap["connectVia"] = dls.ConnectVia + } + if dls.Description != nil { + objectMap["description"] = dls.Description + } + if dls.Parameters != nil { + objectMap["parameters"] = dls.Parameters + } + if dls.Annotations != nil { + objectMap["annotations"] = dls.Annotations + } + if dls.Type != "" { + objectMap["type"] = dls.Type + } + for k, v := range dls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return &dls, true +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for DataworldLinkedService. +func (dls DataworldLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dls, true +} + +// UnmarshalJSON is the custom unmarshaler for DataworldLinkedService struct. +func (dls *DataworldLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var dataworldLinkedServiceTypeProperties DataworldLinkedServiceTypeProperties + err = json.Unmarshal(*v, &dataworldLinkedServiceTypeProperties) + if err != nil { + return err + } + dls.DataworldLinkedServiceTypeProperties = &dataworldLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dls.AdditionalProperties == nil { + dls.AdditionalProperties = make(map[string]interface{}) + } + dls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + dls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dls.Type = typeVar + } + } + } + + return nil +} + +// DataworldLinkedServiceTypeProperties dataworld linked service type properties. +type DataworldLinkedServiceTypeProperties struct { + // APIToken - The api token for the Dataworld source. + APIToken BasicSecretBase `json:"apiToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DataworldLinkedServiceTypeProperties struct. +func (dlstp *DataworldLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "apiToken": + if v != nil { + APIToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + dlstp.APIToken = APIToken + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + dlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// Db2LinkedService linked service for DB2 data source. +type Db2LinkedService struct { + // Db2LinkedServiceTypeProperties - DB2 linked service properties. + *Db2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Db2LinkedService. +func (d2ls Db2LinkedService) MarshalJSON() ([]byte, error) { + d2ls.Type = TypeBasicLinkedServiceTypeDb2 + objectMap := make(map[string]interface{}) + if d2ls.Db2LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = d2ls.Db2LinkedServiceTypeProperties + } + if d2ls.ConnectVia != nil { + objectMap["connectVia"] = d2ls.ConnectVia + } + if d2ls.Description != nil { + objectMap["description"] = d2ls.Description + } + if d2ls.Parameters != nil { + objectMap["parameters"] = d2ls.Parameters + } + if d2ls.Annotations != nil { + objectMap["annotations"] = d2ls.Annotations + } + if d2ls.Type != "" { + objectMap["type"] = d2ls.Type + } + for k, v := range d2ls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return &d2ls, true +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for Db2LinkedService. +func (d2ls Db2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &d2ls, true +} + +// UnmarshalJSON is the custom unmarshaler for Db2LinkedService struct. +func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var db2LinkedServiceTypeProperties Db2LinkedServiceTypeProperties + err = json.Unmarshal(*v, &db2LinkedServiceTypeProperties) + if err != nil { + return err + } + d2ls.Db2LinkedServiceTypeProperties = &db2LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if d2ls.AdditionalProperties == nil { + d2ls.AdditionalProperties = make(map[string]interface{}) + } + d2ls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + d2ls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + d2ls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + d2ls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + d2ls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + d2ls.Type = typeVar + } + } + } + + return nil +} + +// Db2LinkedServiceTypeProperties dB2 linked service properties. +type Db2LinkedServiceTypeProperties struct { + // ConnectionString - 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"` + // Server - Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // Database - Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` + // AuthenticationType - AuthenticationType to be used for connection. It is mutually exclusive with connectionString property. Possible values include: 'Db2AuthenticationTypeBasic' + AuthenticationType Db2AuthenticationType `json:"authenticationType,omitempty"` + // Username - Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password for authentication. + Password BasicSecretBase `json:"password,omitempty"` + // PackageCollection - 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"` + // CertificateCommonName - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for Db2LinkedServiceTypeProperties struct. +func (d2lstp *Db2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + d2lstp.ConnectionString = connectionString + } + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + d2lstp.Server = server + } + case "database": + if v != nil { + var databaseVar interface{} + err = json.Unmarshal(*v, &databaseVar) + if err != nil { + return err + } + d2lstp.Database = databaseVar + } + case "authenticationType": + if v != nil { + var authenticationType Db2AuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + d2lstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + d2lstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + d2lstp.Password = password + } + case "packageCollection": + if v != nil { + var packageCollection interface{} + err = json.Unmarshal(*v, &packageCollection) + if err != nil { + return err + } + d2lstp.PackageCollection = packageCollection + } + case "certificateCommonName": + if v != nil { + var certificateCommonName interface{} + err = json.Unmarshal(*v, &certificateCommonName) + if err != nil { + return err + } + d2lstp.CertificateCommonName = certificateCommonName + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + d2lstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// Db2Source a copy activity source for Db2 databases. +type Db2Source struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Db2Source. +func (d2s Db2Source) MarshalJSON() ([]byte, error) { + d2s.Type = TypeBasicCopySourceTypeDb2Source + objectMap := make(map[string]interface{}) + if d2s.Query != nil { + objectMap["query"] = d2s.Query + } + if d2s.QueryTimeout != nil { + objectMap["queryTimeout"] = d2s.QueryTimeout + } + if d2s.AdditionalColumns != nil { + objectMap["additionalColumns"] = d2s.AdditionalColumns + } + if d2s.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = d2s.SourceRetryCount + } + if d2s.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = d2s.SourceRetryWait + } + if d2s.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = d2s.MaxConcurrentConnections + } + if d2s.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = d2s.DisableMetricsCollection + } + if d2s.Type != "" { + objectMap["type"] = d2s.Type + } + for k, v := range d2s.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDb2Source() (*Db2Source, bool) { + return &d2s, true +} + +// AsInformixSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return &d2s, true +} + +// AsBinarySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for Db2Source. +func (d2s Db2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &d2s, true +} + +// UnmarshalJSON is the custom unmarshaler for Db2Source struct. +func (d2s *Db2Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + d2s.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + d2s.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + d2s.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if d2s.AdditionalProperties == nil { + d2s.AdditionalProperties = make(map[string]interface{}) + } + d2s.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + d2s.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + d2s.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + d2s.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + d2s.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + d2s.Type = typeVar + } + } + } + + return nil +} + +// Db2TableDataset the Db2 table dataset. +type Db2TableDataset struct { + // Db2TableDatasetTypeProperties - Db2 table dataset properties. + *Db2TableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Db2TableDataset. +func (d2td Db2TableDataset) MarshalJSON() ([]byte, error) { + d2td.Type = TypeBasicDatasetTypeDb2Table + objectMap := make(map[string]interface{}) + if d2td.Db2TableDatasetTypeProperties != nil { + objectMap["typeProperties"] = d2td.Db2TableDatasetTypeProperties + } + if d2td.Description != nil { + objectMap["description"] = d2td.Description + } + if d2td.Structure != nil { + objectMap["structure"] = d2td.Structure + } + if d2td.Schema != nil { + objectMap["schema"] = d2td.Schema + } + if d2td.LinkedServiceName != nil { + objectMap["linkedServiceName"] = d2td.LinkedServiceName + } + if d2td.Parameters != nil { + objectMap["parameters"] = d2td.Parameters + } + if d2td.Annotations != nil { + objectMap["annotations"] = d2td.Annotations + } + if d2td.Folder != nil { + objectMap["folder"] = d2td.Folder + } + if d2td.Type != "" { + objectMap["type"] = d2td.Type + } + for k, v := range d2td.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return &d2td, true +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for Db2TableDataset. +func (d2td Db2TableDataset) AsBasicDataset() (BasicDataset, bool) { + return &d2td, true +} + +// UnmarshalJSON is the custom unmarshaler for Db2TableDataset struct. +func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var db2TableDatasetTypeProperties Db2TableDatasetTypeProperties + err = json.Unmarshal(*v, &db2TableDatasetTypeProperties) + if err != nil { + return err + } + d2td.Db2TableDatasetTypeProperties = &db2TableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if d2td.AdditionalProperties == nil { + d2td.AdditionalProperties = make(map[string]interface{}) + } + d2td.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + d2td.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + d2td.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + d2td.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + d2td.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + d2td.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + d2td.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + d2td.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + d2td.Type = typeVar + } + } + } + + return nil +} + +// Db2TableDatasetTypeProperties db2 table dataset properties. +type Db2TableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The Db2 schema name. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The Db2 table name. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// DeleteActivity delete activity. +type DeleteActivity struct { + // DeleteActivityTypeProperties - Delete activity properties. + *DeleteActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DeleteActivity. +func (da DeleteActivity) MarshalJSON() ([]byte, error) { + da.Type = TypeBasicActivityTypeDelete + objectMap := make(map[string]interface{}) + if da.DeleteActivityTypeProperties != nil { + objectMap["typeProperties"] = da.DeleteActivityTypeProperties + } + if da.LinkedServiceName != nil { + objectMap["linkedServiceName"] = da.LinkedServiceName + } + if da.Policy != nil { + objectMap["policy"] = da.Policy + } + if da.Name != nil { + objectMap["name"] = da.Name + } + if da.Description != nil { + objectMap["description"] = da.Description + } + if da.State != "" { + objectMap["state"] = da.State + } + if da.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = da.OnInactiveMarkAs + } + if da.DependsOn != nil { + objectMap["dependsOn"] = da.DependsOn + } + if da.UserProperties != nil { + objectMap["userProperties"] = da.UserProperties + } + if da.Type != "" { + objectMap["type"] = da.Type + } + for k, v := range da.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return &da, true +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &da, true +} + +// AsWebHookActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for DeleteActivity. +func (da DeleteActivity) AsBasicActivity() (BasicActivity, bool) { + return &da, true +} + +// UnmarshalJSON is the custom unmarshaler for DeleteActivity struct. +func (da *DeleteActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var deleteActivityTypeProperties DeleteActivityTypeProperties + err = json.Unmarshal(*v, &deleteActivityTypeProperties) + if err != nil { + return err + } + da.DeleteActivityTypeProperties = &deleteActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + da.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + da.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if da.AdditionalProperties == nil { + da.AdditionalProperties = make(map[string]interface{}) + } + da.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + da.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + da.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + da.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + da.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + da.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + da.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + da.Type = typeVar + } + } + } + + return nil +} + +// DeleteActivityTypeProperties delete activity properties. +type DeleteActivityTypeProperties struct { + // Recursive - 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"` + // MaxConcurrentConnections - The max concurrent connections to connect data source at the same time. + MaxConcurrentConnections *int32 `json:"maxConcurrentConnections,omitempty"` + // EnableLogging - 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"` + // LogStorageSettings - Log storage settings customer need to provide when enableLogging is true. + LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` + // Dataset - Delete activity dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // StoreSettings - Delete activity store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DeleteActivityTypeProperties struct. +func (datp *DeleteActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + datp.Recursive = recursive + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections int32 + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + datp.MaxConcurrentConnections = &maxConcurrentConnections + } + case "enableLogging": + if v != nil { + var enableLogging interface{} + err = json.Unmarshal(*v, &enableLogging) + if err != nil { + return err + } + datp.EnableLogging = enableLogging + } + case "logStorageSettings": + if v != nil { + var logStorageSettings LogStorageSettings + err = json.Unmarshal(*v, &logStorageSettings) + if err != nil { + return err + } + datp.LogStorageSettings = &logStorageSettings + } + case "dataset": + if v != nil { + var dataset DatasetReference + err = json.Unmarshal(*v, &dataset) + if err != nil { + return err + } + datp.Dataset = &dataset + } + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + datp.StoreSettings = storeSettings + } + } + } + + return nil +} + +// DeleteDataFlowDebugSessionRequest request body structure for deleting data flow debug session. +type DeleteDataFlowDebugSessionRequest struct { + // SessionID - The ID of data flow debug session. + SessionID *string `json:"sessionId,omitempty"` +} + +// DelimitedTextDataset delimited text dataset. +type DelimitedTextDataset struct { + // DelimitedTextDatasetTypeProperties - Delimited text dataset properties. + *DelimitedTextDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextDataset. +func (dtd DelimitedTextDataset) MarshalJSON() ([]byte, error) { + dtd.Type = TypeBasicDatasetTypeDelimitedText + objectMap := make(map[string]interface{}) + if dtd.DelimitedTextDatasetTypeProperties != nil { + objectMap["typeProperties"] = dtd.DelimitedTextDatasetTypeProperties + } + if dtd.Description != nil { + objectMap["description"] = dtd.Description + } + if dtd.Structure != nil { + objectMap["structure"] = dtd.Structure + } + if dtd.Schema != nil { + objectMap["schema"] = dtd.Schema + } + if dtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dtd.LinkedServiceName + } + if dtd.Parameters != nil { + objectMap["parameters"] = dtd.Parameters + } + if dtd.Annotations != nil { + objectMap["annotations"] = dtd.Annotations + } + if dtd.Folder != nil { + objectMap["folder"] = dtd.Folder + } + if dtd.Type != "" { + objectMap["type"] = dtd.Type + } + for k, v := range dtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return &dtd, true +} + +// AsParquetDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for DelimitedTextDataset. +func (dtd DelimitedTextDataset) AsBasicDataset() (BasicDataset, bool) { + return &dtd, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextDataset struct. +func (dtd *DelimitedTextDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var delimitedTextDatasetTypeProperties DelimitedTextDatasetTypeProperties + err = json.Unmarshal(*v, &delimitedTextDatasetTypeProperties) + if err != nil { + return err + } + dtd.DelimitedTextDatasetTypeProperties = &delimitedTextDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dtd.AdditionalProperties == nil { + dtd.AdditionalProperties = make(map[string]interface{}) + } + dtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + dtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + dtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + dtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dtd.Type = typeVar + } + } + } + + return nil +} + +// DelimitedTextDatasetTypeProperties delimitedText dataset properties. +type DelimitedTextDatasetTypeProperties struct { + // Location - The location of the delimited text storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // ColumnDelimiter - The column delimiter. Type: string (or Expression with resultType string). + ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` + // RowDelimiter - The row delimiter. Type: string (or Expression with resultType string). + RowDelimiter interface{} `json:"rowDelimiter,omitempty"` + // EncodingName - 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"` + // CompressionCodec - The data compressionCodec. Type: string (or Expression with resultType string). + CompressionCodec interface{} `json:"compressionCodec,omitempty"` + // CompressionLevel - The data compression method used for DelimitedText. + CompressionLevel interface{} `json:"compressionLevel,omitempty"` + // QuoteChar - The quote character. Type: string (or Expression with resultType string). + QuoteChar interface{} `json:"quoteChar,omitempty"` + // EscapeChar - The escape character. Type: string (or Expression with resultType string). + EscapeChar interface{} `json:"escapeChar,omitempty"` + // FirstRowAsHeader - 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"` + // NullValue - The null value string. Type: string (or Expression with resultType string). + NullValue interface{} `json:"nullValue,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextDatasetTypeProperties struct. +func (dtdtp *DelimitedTextDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + dtdtp.Location = location + } + case "columnDelimiter": + if v != nil { + var columnDelimiter interface{} + err = json.Unmarshal(*v, &columnDelimiter) + if err != nil { + return err + } + dtdtp.ColumnDelimiter = columnDelimiter + } + case "rowDelimiter": + if v != nil { + var rowDelimiter interface{} + err = json.Unmarshal(*v, &rowDelimiter) + if err != nil { + return err + } + dtdtp.RowDelimiter = rowDelimiter + } + case "encodingName": + if v != nil { + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) + if err != nil { + return err + } + dtdtp.EncodingName = encodingName + } + case "compressionCodec": + if v != nil { + var compressionCodec interface{} + err = json.Unmarshal(*v, &compressionCodec) + if err != nil { + return err + } + dtdtp.CompressionCodec = compressionCodec + } + case "compressionLevel": + if v != nil { + var compressionLevel interface{} + err = json.Unmarshal(*v, &compressionLevel) + if err != nil { + return err + } + dtdtp.CompressionLevel = compressionLevel + } + case "quoteChar": + if v != nil { + var quoteChar interface{} + err = json.Unmarshal(*v, "eChar) + if err != nil { + return err + } + dtdtp.QuoteChar = quoteChar + } + case "escapeChar": + if v != nil { + var escapeChar interface{} + err = json.Unmarshal(*v, &escapeChar) + if err != nil { + return err + } + dtdtp.EscapeChar = escapeChar + } + case "firstRowAsHeader": + if v != nil { + var firstRowAsHeader interface{} + err = json.Unmarshal(*v, &firstRowAsHeader) + if err != nil { + return err + } + dtdtp.FirstRowAsHeader = firstRowAsHeader + } + case "nullValue": + if v != nil { + var nullValue interface{} + err = json.Unmarshal(*v, &nullValue) + if err != nil { + return err + } + dtdtp.NullValue = nullValue + } + } + } + + return nil +} + +// DelimitedTextReadSettings delimited text read settings. +type DelimitedTextReadSettings struct { + // SkipLineCount - 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"` + // CompressionProperties - Compression settings. + CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) MarshalJSON() ([]byte, error) { + dtrs.Type = TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings + objectMap := make(map[string]interface{}) + if dtrs.SkipLineCount != nil { + objectMap["skipLineCount"] = dtrs.SkipLineCount + } + objectMap["compressionProperties"] = dtrs.CompressionProperties + if dtrs.Type != "" { + objectMap["type"] = dtrs.Type + } + for k, v := range dtrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { + return nil, false +} + +// AsXMLReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { + return nil, false +} + +// AsJSONReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { + return nil, false +} + +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { + return &dtrs, true +} + +// AsParquetReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { + return nil, false +} + +// AsFormatReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { + return nil, false +} + +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. +func (dtrs DelimitedTextReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &dtrs, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextReadSettings struct. +func (dtrs *DelimitedTextReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "skipLineCount": + if v != nil { + var skipLineCount interface{} + err = json.Unmarshal(*v, &skipLineCount) + if err != nil { + return err + } + dtrs.SkipLineCount = skipLineCount + } + case "compressionProperties": + if v != nil { + compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) + if err != nil { + return err + } + dtrs.CompressionProperties = compressionProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dtrs.AdditionalProperties == nil { + dtrs.AdditionalProperties = make(map[string]interface{}) + } + dtrs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dtrs.Type = typeVar + } + } + } + + return nil +} + +// DelimitedTextSink a copy activity DelimitedText sink. +type DelimitedTextSink struct { + // StoreSettings - DelimitedText store settings. + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` + // FormatSettings - DelimitedText format settings. + FormatSettings *DelimitedTextWriteSettings `json:"formatSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextSink. +func (dts DelimitedTextSink) MarshalJSON() ([]byte, error) { + dts.Type = TypeBasicCopySinkTypeDelimitedTextSink + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = dts.StoreSettings + if dts.FormatSettings != nil { + objectMap["formatSettings"] = dts.FormatSettings + } + if dts.WriteBatchSize != nil { + objectMap["writeBatchSize"] = dts.WriteBatchSize + } + if dts.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = dts.WriteBatchTimeout + } + if dts.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = dts.SinkRetryCount + } + if dts.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = dts.SinkRetryWait + } + if dts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections + } + if dts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = dts.DisableMetricsCollection + } + if dts.Type != "" { + objectMap["type"] = dts.Type + } + for k, v := range dts.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return &dts, true +} + +// AsCopySink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for DelimitedTextSink. +func (dts DelimitedTextSink) AsBasicCopySink() (BasicCopySink, bool) { + return &dts, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextSink struct. +func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) + if err != nil { + return err + } + dts.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings DelimitedTextWriteSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + dts.FormatSettings = &formatSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dts.AdditionalProperties == nil { + dts.AdditionalProperties = make(map[string]interface{}) + } + dts.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + dts.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + dts.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + dts.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + dts.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + dts.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + dts.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dts.Type = typeVar + } + } + } + + return nil +} + +// DelimitedTextSource a copy activity DelimitedText source. +type DelimitedTextSource struct { + // StoreSettings - DelimitedText store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - DelimitedText format settings. + FormatSettings *DelimitedTextReadSettings `json:"formatSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextSource. +func (dts DelimitedTextSource) MarshalJSON() ([]byte, error) { + dts.Type = TypeBasicCopySourceTypeDelimitedTextSource + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = dts.StoreSettings + if dts.FormatSettings != nil { + objectMap["formatSettings"] = dts.FormatSettings + } + if dts.AdditionalColumns != nil { + objectMap["additionalColumns"] = dts.AdditionalColumns + } + if dts.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = dts.SourceRetryCount + } + if dts.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = dts.SourceRetryWait + } + if dts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections + } + if dts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = dts.DisableMetricsCollection + } + if dts.Type != "" { + objectMap["type"] = dts.Type + } + for k, v := range dts.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return &dts, true +} + +// AsParquetSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for DelimitedTextSource. +func (dts DelimitedTextSource) AsBasicCopySource() (BasicCopySource, bool) { + return &dts, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextSource struct. +func (dts *DelimitedTextSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + dts.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings DelimitedTextReadSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + dts.FormatSettings = &formatSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + dts.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dts.AdditionalProperties == nil { + dts.AdditionalProperties = make(map[string]interface{}) + } + dts.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + dts.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + dts.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + dts.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + dts.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dts.Type = typeVar + } + } + } + + return nil +} + +// DelimitedTextWriteSettings delimited text write settings. +type DelimitedTextWriteSettings struct { + // QuoteAllText - Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). + QuoteAllText interface{} `json:"quoteAllText,omitempty"` + // FileExtension - The file extension used to create the files. Type: string (or Expression with resultType string). + FileExtension interface{} `json:"fileExtension,omitempty"` + // MaxRowsPerFile - 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"` + // FileNamePrefix - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) MarshalJSON() ([]byte, error) { + dtws.Type = TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings + objectMap := make(map[string]interface{}) + if dtws.QuoteAllText != nil { + objectMap["quoteAllText"] = dtws.QuoteAllText + } + if dtws.FileExtension != nil { + objectMap["fileExtension"] = dtws.FileExtension + } + if dtws.MaxRowsPerFile != nil { + objectMap["maxRowsPerFile"] = dtws.MaxRowsPerFile + } + if dtws.FileNamePrefix != nil { + objectMap["fileNamePrefix"] = dtws.FileNamePrefix + } + if dtws.Type != "" { + objectMap["type"] = dtws.Type + } + for k, v := range dtws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { + return nil, false +} + +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { + return &dtws, true +} + +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { + return nil, false +} + +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { + return nil, false +} + +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { + return nil, false +} + +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return nil, false +} + +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. +func (dtws DelimitedTextWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &dtws, true +} + +// UnmarshalJSON is the custom unmarshaler for DelimitedTextWriteSettings struct. +func (dtws *DelimitedTextWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "quoteAllText": + if v != nil { + var quoteAllText interface{} + err = json.Unmarshal(*v, "eAllText) + if err != nil { + return err + } + dtws.QuoteAllText = quoteAllText + } + case "fileExtension": + if v != nil { + var fileExtension interface{} + err = json.Unmarshal(*v, &fileExtension) + if err != nil { + return err + } + dtws.FileExtension = fileExtension + } + case "maxRowsPerFile": + if v != nil { + var maxRowsPerFile interface{} + err = json.Unmarshal(*v, &maxRowsPerFile) + if err != nil { + return err + } + dtws.MaxRowsPerFile = maxRowsPerFile + } + case "fileNamePrefix": + if v != nil { + var fileNamePrefix interface{} + err = json.Unmarshal(*v, &fileNamePrefix) + if err != nil { + return err + } + dtws.FileNamePrefix = fileNamePrefix + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dtws.AdditionalProperties == nil { + dtws.AdditionalProperties = make(map[string]interface{}) + } + dtws.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dtws.Type = typeVar + } + } + } + + return nil +} + +// BasicDependencyReference referenced dependency. +type BasicDependencyReference interface { + AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) + AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) + AsTriggerDependencyReference() (*TriggerDependencyReference, bool) + AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) + AsDependencyReference() (*DependencyReference, bool) +} + +// DependencyReference referenced dependency. +type DependencyReference struct { + // Type - Possible values include: 'TypeBasicDependencyReferenceTypeDependencyReference', 'TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference', 'TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference', 'TypeBasicDependencyReferenceTypeTriggerDependencyReference' + Type TypeBasicDependencyReference `json:"type,omitempty"` +} + +func unmarshalBasicDependencyReference(body []byte) (BasicDependencyReference, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference): + var sdtwtr SelfDependencyTumblingWindowTriggerReference + err := json.Unmarshal(body, &sdtwtr) + return sdtwtr, err + case string(TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference): + var twtdr TumblingWindowTriggerDependencyReference + err := json.Unmarshal(body, &twtdr) + return twtdr, err + case string(TypeBasicDependencyReferenceTypeTriggerDependencyReference): + var tdr TriggerDependencyReference + err := json.Unmarshal(body, &tdr) + return tdr, err + default: + var dr DependencyReference + err := json.Unmarshal(body, &dr) + return dr, err + } +} +func unmarshalBasicDependencyReferenceArray(body []byte) ([]BasicDependencyReference, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + drArray := make([]BasicDependencyReference, len(rawMessages)) + + for index, rawMessage := range rawMessages { + dr, err := unmarshalBasicDependencyReference(*rawMessage) + if err != nil { + return nil, err + } + drArray[index] = dr + } + return drArray, nil +} + +// MarshalJSON is the custom marshaler for DependencyReference. +func (dr DependencyReference) MarshalJSON() ([]byte, error) { + dr.Type = TypeBasicDependencyReferenceTypeDependencyReference + objectMap := make(map[string]interface{}) + if dr.Type != "" { + objectMap["type"] = dr.Type + } + return json.Marshal(objectMap) +} + +// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { + return nil, false +} + +// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { + return nil, false +} + +// AsTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { + return nil, false +} + +// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { + return nil, false +} + +// AsDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsDependencyReference() (*DependencyReference, bool) { + return &dr, true +} + +// AsBasicDependencyReference is the BasicDependencyReference implementation for DependencyReference. +func (dr DependencyReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { + return &dr, true +} + +// DistcpSettings distcp settings. +type DistcpSettings struct { + // ResourceManagerEndpoint - Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). + ResourceManagerEndpoint interface{} `json:"resourceManagerEndpoint,omitempty"` + // TempScriptPath - 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"` + // DistcpOptions - Specifies the Distcp options. Type: string (or Expression with resultType string). + DistcpOptions interface{} `json:"distcpOptions,omitempty"` +} + +// DocumentDbCollectionDataset microsoft Azure Document Database Collection dataset. +type DocumentDbCollectionDataset struct { + // DocumentDbCollectionDatasetTypeProperties - DocumentDB Collection dataset properties. + *DocumentDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) MarshalJSON() ([]byte, error) { + ddcd.Type = TypeBasicDatasetTypeDocumentDbCollection + objectMap := make(map[string]interface{}) + if ddcd.DocumentDbCollectionDatasetTypeProperties != nil { + objectMap["typeProperties"] = ddcd.DocumentDbCollectionDatasetTypeProperties + } + if ddcd.Description != nil { + objectMap["description"] = ddcd.Description + } + if ddcd.Structure != nil { + objectMap["structure"] = ddcd.Structure + } + if ddcd.Schema != nil { + objectMap["schema"] = ddcd.Schema + } + if ddcd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ddcd.LinkedServiceName + } + if ddcd.Parameters != nil { + objectMap["parameters"] = ddcd.Parameters + } + if ddcd.Annotations != nil { + objectMap["annotations"] = ddcd.Annotations + } + if ddcd.Folder != nil { + objectMap["folder"] = ddcd.Folder + } + if ddcd.Type != "" { + objectMap["type"] = ddcd.Type + } + for k, v := range ddcd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return &ddcd, true +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for DocumentDbCollectionDataset. +func (ddcd DocumentDbCollectionDataset) AsBasicDataset() (BasicDataset, bool) { + return &ddcd, true +} + +// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionDataset struct. +func (ddcd *DocumentDbCollectionDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var documentDbCollectionDatasetTypeProperties DocumentDbCollectionDatasetTypeProperties + err = json.Unmarshal(*v, &documentDbCollectionDatasetTypeProperties) + if err != nil { + return err + } + ddcd.DocumentDbCollectionDatasetTypeProperties = &documentDbCollectionDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ddcd.AdditionalProperties == nil { + ddcd.AdditionalProperties = make(map[string]interface{}) + } + ddcd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ddcd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ddcd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ddcd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ddcd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ddcd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ddcd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ddcd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ddcd.Type = typeVar + } + } + } + + return nil +} + +// DocumentDbCollectionDatasetTypeProperties documentDB Collection dataset properties. +type DocumentDbCollectionDatasetTypeProperties struct { + // CollectionName - Document Database collection name. Type: string (or Expression with resultType string). + CollectionName interface{} `json:"collectionName,omitempty"` +} + +// DocumentDbCollectionSink a copy activity Document Database Collection sink. +type DocumentDbCollectionSink struct { + // NestingSeparator - Nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). + NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + // WriteBehavior - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { + ddcs.Type = TypeBasicCopySinkTypeDocumentDbCollectionSink + objectMap := make(map[string]interface{}) + if ddcs.NestingSeparator != nil { + objectMap["nestingSeparator"] = ddcs.NestingSeparator + } + if ddcs.WriteBehavior != nil { + objectMap["writeBehavior"] = ddcs.WriteBehavior + } + if ddcs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ddcs.WriteBatchSize + } + if ddcs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ddcs.WriteBatchTimeout + } + if ddcs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ddcs.SinkRetryCount + } + if ddcs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ddcs.SinkRetryWait + } + if ddcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections + } + if ddcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ddcs.DisableMetricsCollection + } + if ddcs.Type != "" { + objectMap["type"] = ddcs.Type + } + for k, v := range ddcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return &ddcs, true +} + +// AsFileSystemSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. +func (ddcs DocumentDbCollectionSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ddcs, true +} + +// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionSink struct. +func (ddcs *DocumentDbCollectionSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "nestingSeparator": + if v != nil { + var nestingSeparator interface{} + err = json.Unmarshal(*v, &nestingSeparator) + if err != nil { + return err + } + ddcs.NestingSeparator = nestingSeparator + } + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + ddcs.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ddcs.AdditionalProperties == nil { + ddcs.AdditionalProperties = make(map[string]interface{}) + } + ddcs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ddcs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ddcs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ddcs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ddcs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ddcs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ddcs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ddcs.Type = typeVar + } + } + } + + return nil +} + +// DocumentDbCollectionSource a copy activity Document Database Collection source. +type DocumentDbCollectionSource struct { + // Query - Documents query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // NestingSeparator - Nested properties separator. Type: string (or Expression with resultType string). + NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) MarshalJSON() ([]byte, error) { + ddcs.Type = TypeBasicCopySourceTypeDocumentDbCollectionSource + objectMap := make(map[string]interface{}) + if ddcs.Query != nil { + objectMap["query"] = ddcs.Query + } + if ddcs.NestingSeparator != nil { + objectMap["nestingSeparator"] = ddcs.NestingSeparator + } + if ddcs.QueryTimeout != nil { + objectMap["queryTimeout"] = ddcs.QueryTimeout + } + if ddcs.AdditionalColumns != nil { + objectMap["additionalColumns"] = ddcs.AdditionalColumns + } + if ddcs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ddcs.SourceRetryCount + } + if ddcs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ddcs.SourceRetryWait + } + if ddcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections + } + if ddcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ddcs.DisableMetricsCollection + } + if ddcs.Type != "" { + objectMap["type"] = ddcs.Type + } + for k, v := range ddcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return &ddcs, true +} + +// AsBlobSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. +func (ddcs DocumentDbCollectionSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ddcs, true +} + +// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionSource struct. +func (ddcs *DocumentDbCollectionSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ddcs.Query = query + } + case "nestingSeparator": + if v != nil { + var nestingSeparator interface{} + err = json.Unmarshal(*v, &nestingSeparator) + if err != nil { + return err + } + ddcs.NestingSeparator = nestingSeparator + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ddcs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ddcs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ddcs.AdditionalProperties == nil { + ddcs.AdditionalProperties = make(map[string]interface{}) + } + ddcs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ddcs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ddcs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ddcs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ddcs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ddcs.Type = typeVar + } + } + } + + return nil +} + +// DrillDatasetTypeProperties drill Dataset Properties +type DrillDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Drill. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Drill. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// DrillLinkedService drill server linked service. +type DrillLinkedService struct { + // DrillLinkedServiceTypeProperties - Drill server linked service properties. + *DrillLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DrillLinkedService. +func (dls DrillLinkedService) MarshalJSON() ([]byte, error) { + dls.Type = TypeBasicLinkedServiceTypeDrill + objectMap := make(map[string]interface{}) + if dls.DrillLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dls.DrillLinkedServiceTypeProperties + } + if dls.ConnectVia != nil { + objectMap["connectVia"] = dls.ConnectVia + } + if dls.Description != nil { + objectMap["description"] = dls.Description + } + if dls.Parameters != nil { + objectMap["parameters"] = dls.Parameters + } + if dls.Annotations != nil { + objectMap["annotations"] = dls.Annotations + } + if dls.Type != "" { + objectMap["type"] = dls.Type + } + for k, v := range dls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return &dls, true +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for DrillLinkedService. +func (dls DrillLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dls, true +} + +// UnmarshalJSON is the custom unmarshaler for DrillLinkedService struct. +func (dls *DrillLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var drillLinkedServiceTypeProperties DrillLinkedServiceTypeProperties + err = json.Unmarshal(*v, &drillLinkedServiceTypeProperties) + if err != nil { + return err + } + dls.DrillLinkedServiceTypeProperties = &drillLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dls.AdditionalProperties == nil { + dls.AdditionalProperties = make(map[string]interface{}) + } + dls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + dls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dls.Type = typeVar + } + } + } + + return nil +} + +// DrillLinkedServiceTypeProperties drill server linked service properties. +type DrillLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Pwd - The Azure key vault secret reference of password in connection string. + Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// DrillSource a copy activity Drill server source. +type DrillSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DrillSource. +func (ds DrillSource) MarshalJSON() ([]byte, error) { + ds.Type = TypeBasicCopySourceTypeDrillSource + objectMap := make(map[string]interface{}) + if ds.Query != nil { + objectMap["query"] = ds.Query + } + if ds.QueryTimeout != nil { + objectMap["queryTimeout"] = ds.QueryTimeout + } + if ds.AdditionalColumns != nil { + objectMap["additionalColumns"] = ds.AdditionalColumns + } + if ds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ds.SourceRetryCount + } + if ds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ds.SourceRetryWait + } + if ds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections + } + if ds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection + } + if ds.Type != "" { + objectMap["type"] = ds.Type + } + for k, v := range ds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDrillSource() (*DrillSource, bool) { + return &ds, true +} + +// AsCouchbaseSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ds, true +} + +// AsBinarySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for DrillSource. +func (ds DrillSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ds, true +} + +// UnmarshalJSON is the custom unmarshaler for DrillSource struct. +func (ds *DrillSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ds.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ds.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ds.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ds.AdditionalProperties == nil { + ds.AdditionalProperties = make(map[string]interface{}) + } + ds.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ds.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ds.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ds.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ds.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ds.Type = typeVar + } + } + } + + return nil +} + +// DrillTableDataset drill server dataset. +type DrillTableDataset struct { + // DrillDatasetTypeProperties - Properties specific to this dataset type. + *DrillDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DrillTableDataset. +func (dtd DrillTableDataset) MarshalJSON() ([]byte, error) { + dtd.Type = TypeBasicDatasetTypeDrillTable + objectMap := make(map[string]interface{}) + if dtd.DrillDatasetTypeProperties != nil { + objectMap["typeProperties"] = dtd.DrillDatasetTypeProperties + } + if dtd.Description != nil { + objectMap["description"] = dtd.Description + } + if dtd.Structure != nil { + objectMap["structure"] = dtd.Structure + } + if dtd.Schema != nil { + objectMap["schema"] = dtd.Schema + } + if dtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dtd.LinkedServiceName + } + if dtd.Parameters != nil { + objectMap["parameters"] = dtd.Parameters + } + if dtd.Annotations != nil { + objectMap["annotations"] = dtd.Annotations + } + if dtd.Folder != nil { + objectMap["folder"] = dtd.Folder + } + if dtd.Type != "" { + objectMap["type"] = dtd.Type + } + for k, v := range dtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return &dtd, true +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for DrillTableDataset. +func (dtd DrillTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &dtd, true +} + +// UnmarshalJSON is the custom unmarshaler for DrillTableDataset struct. +func (dtd *DrillTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var drillDatasetTypeProperties DrillDatasetTypeProperties + err = json.Unmarshal(*v, &drillDatasetTypeProperties) + if err != nil { + return err + } + dtd.DrillDatasetTypeProperties = &drillDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dtd.AdditionalProperties == nil { + dtd.AdditionalProperties = make(map[string]interface{}) + } + dtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + dtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + dtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + dtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dtd.Type = typeVar + } + } + } + + return nil +} + +// DynamicsAXLinkedService dynamics AX linked service. +type DynamicsAXLinkedService struct { + // DynamicsAXLinkedServiceTypeProperties - Dynamics AX linked service properties. + *DynamicsAXLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) MarshalJSON() ([]byte, error) { + dals.Type = TypeBasicLinkedServiceTypeDynamicsAX + objectMap := make(map[string]interface{}) + if dals.DynamicsAXLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dals.DynamicsAXLinkedServiceTypeProperties + } + if dals.ConnectVia != nil { + objectMap["connectVia"] = dals.ConnectVia + } + if dals.Description != nil { + objectMap["description"] = dals.Description + } + if dals.Parameters != nil { + objectMap["parameters"] = dals.Parameters + } + if dals.Annotations != nil { + objectMap["annotations"] = dals.Annotations + } + if dals.Type != "" { + objectMap["type"] = dals.Type + } + for k, v := range dals.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return &dals, true +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. +func (dals DynamicsAXLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dals, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsAXLinkedService struct. +func (dals *DynamicsAXLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var dynamicsAXLinkedServiceTypeProperties DynamicsAXLinkedServiceTypeProperties + err = json.Unmarshal(*v, &dynamicsAXLinkedServiceTypeProperties) + if err != nil { + return err + } + dals.DynamicsAXLinkedServiceTypeProperties = &dynamicsAXLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dals.AdditionalProperties == nil { + dals.AdditionalProperties = make(map[string]interface{}) + } + dals.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + dals.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dals.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dals.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dals.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dals.Type = typeVar + } + } + } + + return nil +} + +// DynamicsAXLinkedServiceTypeProperties dynamics AX linked service properties. +type DynamicsAXLinkedServiceTypeProperties struct { + // URL - The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. + URL interface{} `json:"url,omitempty"` + // ServicePrincipalID - Specify the application's client ID. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - 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 BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // AadResourceID - Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). + AadResourceID interface{} `json:"aadResourceId,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsAXLinkedServiceTypeProperties struct. +func (dalstp *DynamicsAXLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + dalstp.URL = URL + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + dalstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + dalstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + dalstp.Tenant = tenant + } + case "aadResourceId": + if v != nil { + var aadResourceID interface{} + err = json.Unmarshal(*v, &aadResourceID) + if err != nil { + return err + } + dalstp.AadResourceID = aadResourceID + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + dalstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// DynamicsAXResourceDataset the path of the Dynamics AX OData entity. +type DynamicsAXResourceDataset struct { + // DynamicsAXResourceDatasetTypeProperties - Dynamics AX OData resource dataset properties. + *DynamicsAXResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) MarshalJSON() ([]byte, error) { + dard.Type = TypeBasicDatasetTypeDynamicsAXResource + objectMap := make(map[string]interface{}) + if dard.DynamicsAXResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = dard.DynamicsAXResourceDatasetTypeProperties + } + if dard.Description != nil { + objectMap["description"] = dard.Description + } + if dard.Structure != nil { + objectMap["structure"] = dard.Structure + } + if dard.Schema != nil { + objectMap["schema"] = dard.Schema + } + if dard.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dard.LinkedServiceName + } + if dard.Parameters != nil { + objectMap["parameters"] = dard.Parameters + } + if dard.Annotations != nil { + objectMap["annotations"] = dard.Annotations + } + if dard.Folder != nil { + objectMap["folder"] = dard.Folder + } + if dard.Type != "" { + objectMap["type"] = dard.Type + } + for k, v := range dard.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return &dard, true +} + +// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for DynamicsAXResourceDataset. +func (dard DynamicsAXResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &dard, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsAXResourceDataset struct. +func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var dynamicsAXResourceDatasetTypeProperties DynamicsAXResourceDatasetTypeProperties + err = json.Unmarshal(*v, &dynamicsAXResourceDatasetTypeProperties) + if err != nil { + return err + } + dard.DynamicsAXResourceDatasetTypeProperties = &dynamicsAXResourceDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dard.AdditionalProperties == nil { + dard.AdditionalProperties = make(map[string]interface{}) + } + dard.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dard.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + dard.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + dard.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dard.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dard.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dard.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + dard.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dard.Type = typeVar + } + } + } + + return nil +} + +// DynamicsAXResourceDatasetTypeProperties dynamics AX OData resource dataset properties. +type DynamicsAXResourceDatasetTypeProperties struct { + // Path - The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` +} + +// DynamicsAXSource a copy activity Dynamics AX source. +type DynamicsAXSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // HTTPRequestTimeout - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsAXSource. +func (das DynamicsAXSource) MarshalJSON() ([]byte, error) { + das.Type = TypeBasicCopySourceTypeDynamicsAXSource + objectMap := make(map[string]interface{}) + if das.Query != nil { + objectMap["query"] = das.Query + } + if das.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = das.HTTPRequestTimeout + } + if das.QueryTimeout != nil { + objectMap["queryTimeout"] = das.QueryTimeout + } + if das.AdditionalColumns != nil { + objectMap["additionalColumns"] = das.AdditionalColumns + } + if das.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = das.SourceRetryCount + } + if das.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = das.SourceRetryWait + } + if das.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = das.MaxConcurrentConnections + } + if das.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = das.DisableMetricsCollection + } + if das.Type != "" { + objectMap["type"] = das.Type + } + for k, v := range das.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return &das, true +} + +// AsResponsysSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &das, true +} + +// AsBinarySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for DynamicsAXSource. +func (das DynamicsAXSource) AsBasicCopySource() (BasicCopySource, bool) { + return &das, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsAXSource struct. +func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + das.Query = query + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + das.HTTPRequestTimeout = HTTPRequestTimeout + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + das.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + das.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if das.AdditionalProperties == nil { + das.AdditionalProperties = make(map[string]interface{}) + } + das.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + das.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + das.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + das.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + das.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + das.Type = typeVar + } + } + } + + return nil +} + +// DynamicsCrmEntityDataset the Dynamics CRM entity dataset. +type DynamicsCrmEntityDataset struct { + // DynamicsCrmEntityDatasetTypeProperties - Dynamics CRM entity dataset properties. + *DynamicsCrmEntityDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) MarshalJSON() ([]byte, error) { + dced.Type = TypeBasicDatasetTypeDynamicsCrmEntity + objectMap := make(map[string]interface{}) + if dced.DynamicsCrmEntityDatasetTypeProperties != nil { + objectMap["typeProperties"] = dced.DynamicsCrmEntityDatasetTypeProperties + } + if dced.Description != nil { + objectMap["description"] = dced.Description + } + if dced.Structure != nil { + objectMap["structure"] = dced.Structure + } + if dced.Schema != nil { + objectMap["schema"] = dced.Schema + } + if dced.LinkedServiceName != nil { + objectMap["linkedServiceName"] = dced.LinkedServiceName + } + if dced.Parameters != nil { + objectMap["parameters"] = dced.Parameters + } + if dced.Annotations != nil { + objectMap["annotations"] = dced.Annotations + } + if dced.Folder != nil { + objectMap["folder"] = dced.Folder + } + if dced.Type != "" { + objectMap["type"] = dced.Type + } + for k, v := range dced.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return &dced, true +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. +func (dced DynamicsCrmEntityDataset) AsBasicDataset() (BasicDataset, bool) { + return &dced, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmEntityDataset struct. +func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var dynamicsCrmEntityDatasetTypeProperties DynamicsCrmEntityDatasetTypeProperties + err = json.Unmarshal(*v, &dynamicsCrmEntityDatasetTypeProperties) + if err != nil { + return err + } + dced.DynamicsCrmEntityDatasetTypeProperties = &dynamicsCrmEntityDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dced.AdditionalProperties == nil { + dced.AdditionalProperties = make(map[string]interface{}) + } + dced.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dced.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + dced.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + dced.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + dced.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dced.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dced.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + dced.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dced.Type = typeVar + } + } + } + + return nil +} + +// DynamicsCrmEntityDatasetTypeProperties dynamics CRM entity dataset properties. +type DynamicsCrmEntityDatasetTypeProperties struct { + // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). + EntityName interface{} `json:"entityName,omitempty"` +} + +// DynamicsCrmLinkedService dynamics CRM linked service. +type DynamicsCrmLinkedService struct { + // DynamicsCrmLinkedServiceTypeProperties - Dynamics CRM linked service properties. + *DynamicsCrmLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) MarshalJSON() ([]byte, error) { + dcls.Type = TypeBasicLinkedServiceTypeDynamicsCrm + objectMap := make(map[string]interface{}) + if dcls.DynamicsCrmLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dcls.DynamicsCrmLinkedServiceTypeProperties + } + if dcls.ConnectVia != nil { + objectMap["connectVia"] = dcls.ConnectVia + } + if dcls.Description != nil { + objectMap["description"] = dcls.Description + } + if dcls.Parameters != nil { + objectMap["parameters"] = dcls.Parameters + } + if dcls.Annotations != nil { + objectMap["annotations"] = dcls.Annotations + } + if dcls.Type != "" { + objectMap["type"] = dcls.Type + } + for k, v := range dcls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return &dcls, true +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. +func (dcls DynamicsCrmLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dcls, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmLinkedService struct. +func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var dynamicsCrmLinkedServiceTypeProperties DynamicsCrmLinkedServiceTypeProperties + err = json.Unmarshal(*v, &dynamicsCrmLinkedServiceTypeProperties) + if err != nil { + return err + } + dcls.DynamicsCrmLinkedServiceTypeProperties = &dynamicsCrmLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dcls.AdditionalProperties == nil { + dcls.AdditionalProperties = make(map[string]interface{}) + } + dcls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + dcls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dcls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dcls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dcls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dcls.Type = typeVar + } + } + } + + return nil +} + +// DynamicsCrmLinkedServiceTypeProperties dynamics CRM linked service properties. +type DynamicsCrmLinkedServiceTypeProperties struct { + // DeploymentType - 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"` + // HostName - 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"` + // Port - 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"` + // ServiceURI - 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"` + // OrganizationName - 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"` + // AuthenticationType - 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"` + // Username - User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password to access the Dynamics CRM instance. + Password BasicSecretBase `json:"password,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalCredentialType - 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"` + // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmLinkedServiceTypeProperties struct. +func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "deploymentType": + if v != nil { + var deploymentType interface{} + err = json.Unmarshal(*v, &deploymentType) + if err != nil { + return err + } + dclstp.DeploymentType = deploymentType + } + case "hostName": + if v != nil { + var hostName interface{} + err = json.Unmarshal(*v, &hostName) + if err != nil { + return err + } + dclstp.HostName = hostName + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + dclstp.Port = port + } + case "serviceUri": + if v != nil { + var serviceURI interface{} + err = json.Unmarshal(*v, &serviceURI) + if err != nil { + return err + } + dclstp.ServiceURI = serviceURI + } + case "organizationName": + if v != nil { + var organizationName interface{} + err = json.Unmarshal(*v, &organizationName) + if err != nil { + return err + } + dclstp.OrganizationName = organizationName + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + dclstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + dclstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + dclstp.Password = password + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + dclstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalCredentialType": + if v != nil { + var servicePrincipalCredentialType interface{} + err = json.Unmarshal(*v, &servicePrincipalCredentialType) + if err != nil { + return err + } + dclstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + } + case "servicePrincipalCredential": + if v != nil { + servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + dclstp.ServicePrincipalCredential = servicePrincipalCredential + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + dclstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// DynamicsCrmSink a copy activity Dynamics CRM sink. +type DynamicsCrmSink struct { + // WriteBehavior - The write behavior for the operation. + WriteBehavior *string `json:"writeBehavior,omitempty"` + // IgnoreNullValues - 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"` + // AlternateKeyName - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsCrmSink. +func (dcs DynamicsCrmSink) MarshalJSON() ([]byte, error) { + dcs.Type = TypeBasicCopySinkTypeDynamicsCrmSink + objectMap := make(map[string]interface{}) + if dcs.WriteBehavior != nil { + objectMap["writeBehavior"] = dcs.WriteBehavior + } + if dcs.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = dcs.IgnoreNullValues + } + if dcs.AlternateKeyName != nil { + objectMap["alternateKeyName"] = dcs.AlternateKeyName + } + if dcs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = dcs.WriteBatchSize + } + if dcs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = dcs.WriteBatchTimeout + } + if dcs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = dcs.SinkRetryCount + } + if dcs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = dcs.SinkRetryWait + } + if dcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections + } + if dcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = dcs.DisableMetricsCollection + } + if dcs.Type != "" { + objectMap["type"] = dcs.Type + } + for k, v := range dcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return &dcs, true +} + +// AsDynamicsSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for DynamicsCrmSink. +func (dcs DynamicsCrmSink) AsBasicCopySink() (BasicCopySink, bool) { + return &dcs, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmSink struct. +func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior string + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + dcs.WriteBehavior = &writeBehavior + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + dcs.IgnoreNullValues = ignoreNullValues + } + case "alternateKeyName": + if v != nil { + var alternateKeyName interface{} + err = json.Unmarshal(*v, &alternateKeyName) + if err != nil { + return err + } + dcs.AlternateKeyName = alternateKeyName + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dcs.AdditionalProperties == nil { + dcs.AdditionalProperties = make(map[string]interface{}) + } + dcs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + dcs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + dcs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + dcs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + dcs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + dcs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + dcs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dcs.Type = typeVar + } + } + } + + return nil +} + +// DynamicsCrmSource a copy activity Dynamics CRM source. +type DynamicsCrmSource struct { + // Query - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsCrmSource. +func (dcs DynamicsCrmSource) MarshalJSON() ([]byte, error) { + dcs.Type = TypeBasicCopySourceTypeDynamicsCrmSource + objectMap := make(map[string]interface{}) + if dcs.Query != nil { + objectMap["query"] = dcs.Query + } + if dcs.AdditionalColumns != nil { + objectMap["additionalColumns"] = dcs.AdditionalColumns + } + if dcs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = dcs.SourceRetryCount + } + if dcs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = dcs.SourceRetryWait + } + if dcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections + } + if dcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = dcs.DisableMetricsCollection + } + if dcs.Type != "" { + objectMap["type"] = dcs.Type + } + for k, v := range dcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return &dcs, true +} + +// AsDynamicsSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for DynamicsCrmSource. +func (dcs DynamicsCrmSource) AsBasicCopySource() (BasicCopySource, bool) { + return &dcs, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsCrmSource struct. +func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + dcs.Query = query + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + dcs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dcs.AdditionalProperties == nil { + dcs.AdditionalProperties = make(map[string]interface{}) + } + dcs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + dcs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + dcs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + dcs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + dcs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dcs.Type = typeVar + } + } + } + + return nil +} + +// DynamicsEntityDataset the Dynamics entity dataset. +type DynamicsEntityDataset struct { + // DynamicsEntityDatasetTypeProperties - Dynamics entity dataset properties. + *DynamicsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) MarshalJSON() ([]byte, error) { + ded.Type = TypeBasicDatasetTypeDynamicsEntity + objectMap := make(map[string]interface{}) + if ded.DynamicsEntityDatasetTypeProperties != nil { + objectMap["typeProperties"] = ded.DynamicsEntityDatasetTypeProperties + } + if ded.Description != nil { + objectMap["description"] = ded.Description + } + if ded.Structure != nil { + objectMap["structure"] = ded.Structure + } + if ded.Schema != nil { + objectMap["schema"] = ded.Schema + } + if ded.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ded.LinkedServiceName + } + if ded.Parameters != nil { + objectMap["parameters"] = ded.Parameters + } + if ded.Annotations != nil { + objectMap["annotations"] = ded.Annotations + } + if ded.Folder != nil { + objectMap["folder"] = ded.Folder + } + if ded.Type != "" { + objectMap["type"] = ded.Type + } + for k, v := range ded.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return &ded, true +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for DynamicsEntityDataset. +func (ded DynamicsEntityDataset) AsBasicDataset() (BasicDataset, bool) { + return &ded, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsEntityDataset struct. +func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var dynamicsEntityDatasetTypeProperties DynamicsEntityDatasetTypeProperties + err = json.Unmarshal(*v, &dynamicsEntityDatasetTypeProperties) + if err != nil { + return err + } + ded.DynamicsEntityDatasetTypeProperties = &dynamicsEntityDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ded.AdditionalProperties == nil { + ded.AdditionalProperties = make(map[string]interface{}) + } + ded.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ded.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ded.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ded.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ded.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ded.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ded.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ded.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ded.Type = typeVar + } + } + } + + return nil +} + +// DynamicsEntityDatasetTypeProperties dynamics entity dataset properties. +type DynamicsEntityDatasetTypeProperties struct { + // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). + EntityName interface{} `json:"entityName,omitempty"` +} + +// DynamicsLinkedService dynamics linked service. +type DynamicsLinkedService struct { + // DynamicsLinkedServiceTypeProperties - Dynamics linked service properties. + *DynamicsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsLinkedService. +func (dls DynamicsLinkedService) MarshalJSON() ([]byte, error) { + dls.Type = TypeBasicLinkedServiceTypeDynamics + objectMap := make(map[string]interface{}) + if dls.DynamicsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = dls.DynamicsLinkedServiceTypeProperties + } + if dls.ConnectVia != nil { + objectMap["connectVia"] = dls.ConnectVia + } + if dls.Description != nil { + objectMap["description"] = dls.Description + } + if dls.Parameters != nil { + objectMap["parameters"] = dls.Parameters + } + if dls.Annotations != nil { + objectMap["annotations"] = dls.Annotations + } + if dls.Type != "" { + objectMap["type"] = dls.Type + } + for k, v := range dls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return &dls, true +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. +func (dls DynamicsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &dls, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedService struct. +func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var dynamicsLinkedServiceTypeProperties DynamicsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &dynamicsLinkedServiceTypeProperties) + if err != nil { + return err + } + dls.DynamicsLinkedServiceTypeProperties = &dynamicsLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if dls.AdditionalProperties == nil { + dls.AdditionalProperties = make(map[string]interface{}) + } + dls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + dls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + dls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + dls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + dls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + dls.Type = typeVar + } + } + } + + return nil +} + +// DynamicsLinkedServiceTypeProperties dynamics linked service properties. +type DynamicsLinkedServiceTypeProperties struct { + // DeploymentType - 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"` + // HostName - 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"` + // Port - 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"` + // ServiceURI - 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"` + // OrganizationName - 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"` + // AuthenticationType - 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"` + // Username - User name to access the Dynamics instance. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password to access the Dynamics instance. + Password BasicSecretBase `json:"password,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalCredentialType - 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"` + // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedServiceTypeProperties struct. +func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "deploymentType": + if v != nil { + var deploymentType interface{} + err = json.Unmarshal(*v, &deploymentType) + if err != nil { + return err + } + dlstp.DeploymentType = deploymentType + } + case "hostName": + if v != nil { + var hostName interface{} + err = json.Unmarshal(*v, &hostName) + if err != nil { + return err + } + dlstp.HostName = hostName + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + dlstp.Port = port + } + case "serviceUri": + if v != nil { + var serviceURI interface{} + err = json.Unmarshal(*v, &serviceURI) + if err != nil { + return err + } + dlstp.ServiceURI = serviceURI + } + case "organizationName": + if v != nil { + var organizationName interface{} + err = json.Unmarshal(*v, &organizationName) + if err != nil { + return err + } + dlstp.OrganizationName = organizationName + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + dlstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + dlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + dlstp.Password = password + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + dlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalCredentialType": + if v != nil { + var servicePrincipalCredentialType interface{} + err = json.Unmarshal(*v, &servicePrincipalCredentialType) + if err != nil { + return err + } + dlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + } + case "servicePrincipalCredential": + if v != nil { + servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + dlstp.ServicePrincipalCredential = servicePrincipalCredential + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + dlstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + dlstp.Credential = &credential + } + } + } + + return nil +} + +// DynamicsSink a copy activity Dynamics sink. +type DynamicsSink struct { + // WriteBehavior - The write behavior for the operation. + WriteBehavior *string `json:"writeBehavior,omitempty"` + // IgnoreNullValues - 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"` + // AlternateKeyName - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsSink. +func (ds DynamicsSink) MarshalJSON() ([]byte, error) { + ds.Type = TypeBasicCopySinkTypeDynamicsSink + objectMap := make(map[string]interface{}) + if ds.WriteBehavior != nil { + objectMap["writeBehavior"] = ds.WriteBehavior + } + if ds.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = ds.IgnoreNullValues + } + if ds.AlternateKeyName != nil { + objectMap["alternateKeyName"] = ds.AlternateKeyName + } + if ds.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ds.WriteBatchSize + } + if ds.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ds.WriteBatchTimeout + } + if ds.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ds.SinkRetryCount + } + if ds.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ds.SinkRetryWait + } + if ds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections + } + if ds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection + } + if ds.Type != "" { + objectMap["type"] = ds.Type + } + for k, v := range ds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsDynamicsSink() (*DynamicsSink, bool) { + return &ds, true +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for DynamicsSink. +func (ds DynamicsSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ds, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsSink struct. +func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior string + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + ds.WriteBehavior = &writeBehavior + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + ds.IgnoreNullValues = ignoreNullValues + } + case "alternateKeyName": + if v != nil { + var alternateKeyName interface{} + err = json.Unmarshal(*v, &alternateKeyName) + if err != nil { + return err + } + ds.AlternateKeyName = alternateKeyName + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ds.AdditionalProperties == nil { + ds.AdditionalProperties = make(map[string]interface{}) + } + ds.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ds.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ds.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ds.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ds.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ds.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ds.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ds.Type = typeVar + } + } + } + + return nil +} + +// DynamicsSource a copy activity Dynamics source. +type DynamicsSource struct { + // Query - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for DynamicsSource. +func (ds DynamicsSource) MarshalJSON() ([]byte, error) { + ds.Type = TypeBasicCopySourceTypeDynamicsSource + objectMap := make(map[string]interface{}) + if ds.Query != nil { + objectMap["query"] = ds.Query + } + if ds.AdditionalColumns != nil { + objectMap["additionalColumns"] = ds.AdditionalColumns + } + if ds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ds.SourceRetryCount + } + if ds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ds.SourceRetryWait + } + if ds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections + } + if ds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection + } + if ds.Type != "" { + objectMap["type"] = ds.Type + } + for k, v := range ds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDynamicsSource() (*DynamicsSource, bool) { + return &ds, true +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for DynamicsSource. +func (ds DynamicsSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ds, true +} + +// UnmarshalJSON is the custom unmarshaler for DynamicsSource struct. +func (ds *DynamicsSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ds.Query = query + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ds.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ds.AdditionalProperties == nil { + ds.AdditionalProperties = make(map[string]interface{}) + } + ds.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ds.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ds.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ds.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ds.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ds.Type = typeVar + } + } + } + + return nil +} + +// EloquaLinkedService eloqua server linked service. +type EloquaLinkedService struct { + // EloquaLinkedServiceTypeProperties - Eloqua server linked service properties. + *EloquaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for EloquaLinkedService. +func (els EloquaLinkedService) MarshalJSON() ([]byte, error) { + els.Type = TypeBasicLinkedServiceTypeEloqua + objectMap := make(map[string]interface{}) + if els.EloquaLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = els.EloquaLinkedServiceTypeProperties + } + if els.ConnectVia != nil { + objectMap["connectVia"] = els.ConnectVia + } + if els.Description != nil { + objectMap["description"] = els.Description + } + if els.Parameters != nil { + objectMap["parameters"] = els.Parameters + } + if els.Annotations != nil { + objectMap["annotations"] = els.Annotations + } + if els.Type != "" { + objectMap["type"] = els.Type + } + for k, v := range els.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return &els, true +} + +// AsDrillLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for EloquaLinkedService. +func (els EloquaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &els, true +} + +// UnmarshalJSON is the custom unmarshaler for EloquaLinkedService struct. +func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var eloquaLinkedServiceTypeProperties EloquaLinkedServiceTypeProperties + err = json.Unmarshal(*v, &eloquaLinkedServiceTypeProperties) + if err != nil { + return err + } + els.EloquaLinkedServiceTypeProperties = &eloquaLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if els.AdditionalProperties == nil { + els.AdditionalProperties = make(map[string]interface{}) + } + els.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + els.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + els.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + els.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + els.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + els.Type = typeVar + } + } + } + + return nil +} + +// EloquaLinkedServiceTypeProperties eloqua server linked service properties. +type EloquaLinkedServiceTypeProperties struct { + // Endpoint - The endpoint of the Eloqua server. (i.e. eloqua.example.com) + Endpoint interface{} `json:"endpoint,omitempty"` + // Username - The site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice) + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name. + Password BasicSecretBase `json:"password,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for EloquaLinkedServiceTypeProperties struct. +func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + elstp.Endpoint = endpoint + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + elstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + elstp.Password = password + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + elstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + elstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + elstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + elstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// EloquaObjectDataset eloqua server dataset. +type EloquaObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for EloquaObjectDataset. +func (eod EloquaObjectDataset) MarshalJSON() ([]byte, error) { + eod.Type = TypeBasicDatasetTypeEloquaObject + objectMap := make(map[string]interface{}) + if eod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = eod.GenericDatasetTypeProperties + } + if eod.Description != nil { + objectMap["description"] = eod.Description + } + if eod.Structure != nil { + objectMap["structure"] = eod.Structure + } + if eod.Schema != nil { + objectMap["schema"] = eod.Schema + } + if eod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = eod.LinkedServiceName + } + if eod.Parameters != nil { + objectMap["parameters"] = eod.Parameters + } + if eod.Annotations != nil { + objectMap["annotations"] = eod.Annotations + } + if eod.Folder != nil { + objectMap["folder"] = eod.Folder + } + if eod.Type != "" { + objectMap["type"] = eod.Type + } + for k, v := range eod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return &eod, true +} + +// AsDrillTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for EloquaObjectDataset. +func (eod EloquaObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &eod, true +} + +// UnmarshalJSON is the custom unmarshaler for EloquaObjectDataset struct. +func (eod *EloquaObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + eod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if eod.AdditionalProperties == nil { + eod.AdditionalProperties = make(map[string]interface{}) + } + eod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + eod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + eod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + eod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + eod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + eod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + eod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + eod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + eod.Type = typeVar + } + } + } + + return nil +} + +// EloquaSource a copy activity Eloqua server source. +type EloquaSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for EloquaSource. +func (es EloquaSource) MarshalJSON() ([]byte, error) { + es.Type = TypeBasicCopySourceTypeEloquaSource + objectMap := make(map[string]interface{}) + if es.Query != nil { + objectMap["query"] = es.Query + } + if es.QueryTimeout != nil { + objectMap["queryTimeout"] = es.QueryTimeout + } + if es.AdditionalColumns != nil { + objectMap["additionalColumns"] = es.AdditionalColumns + } + if es.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = es.SourceRetryCount + } + if es.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = es.SourceRetryWait + } + if es.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections + } + if es.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = es.DisableMetricsCollection + } + if es.Type != "" { + objectMap["type"] = es.Type + } + for k, v := range es.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsEloquaSource() (*EloquaSource, bool) { + return &es, true +} + +// AsDrillSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &es, true +} + +// AsBinarySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for EloquaSource. +func (es EloquaSource) AsBasicCopySource() (BasicCopySource, bool) { + return &es, true +} + +// UnmarshalJSON is the custom unmarshaler for EloquaSource struct. +func (es *EloquaSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + es.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + es.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + es.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if es.AdditionalProperties == nil { + es.AdditionalProperties = make(map[string]interface{}) + } + es.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + es.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + es.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + es.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + es.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + es.Type = typeVar + } + } + } + + return nil +} + +// EncryptionConfiguration definition of CMK for the factory. +type EncryptionConfiguration struct { + // KeyName - The name of the key in Azure Key Vault to use as Customer Managed Key. + KeyName *string `json:"keyName,omitempty"` + // VaultBaseURL - The url of the Azure Key Vault used for CMK. + VaultBaseURL *string `json:"vaultBaseUrl,omitempty"` + // KeyVersion - The version of the key used for CMK. If not provided, latest version will be used. + KeyVersion *string `json:"keyVersion,omitempty"` + // Identity - 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"` +} + +// EntityReference the entity reference. +type EntityReference struct { + // Type - The type of this referenced entity. Possible values include: 'IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference', 'IntegrationRuntimeEntityReferenceTypeLinkedServiceReference' + Type IntegrationRuntimeEntityReferenceType `json:"type,omitempty"` + // ReferenceName - The name of this referenced entity. + ReferenceName *string `json:"referenceName,omitempty"` +} + +// EnvironmentVariableSetup the custom setup of setting environment variable. +type EnvironmentVariableSetup struct { + // EnvironmentVariableSetupTypeProperties - Add environment variable type properties. + *EnvironmentVariableSetupTypeProperties `json:"typeProperties,omitempty"` + // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' + Type TypeBasicCustomSetupBase `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { + evs.Type = TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup + objectMap := make(map[string]interface{}) + if evs.EnvironmentVariableSetupTypeProperties != nil { + objectMap["typeProperties"] = evs.EnvironmentVariableSetupTypeProperties + } + if evs.Type != "" { + objectMap["type"] = evs.Type + } + return json.Marshal(objectMap) +} + +// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { + return nil, false +} + +// AsComponentSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsComponentSetup() (*ComponentSetup, bool) { + return nil, false +} + +// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { + return &evs, true +} + +// AsCmdkeySetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { + return nil, false +} + +// AsCustomSetupBase is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { + return nil, false +} + +// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. +func (evs EnvironmentVariableSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { + return &evs, true +} + +// UnmarshalJSON is the custom unmarshaler for EnvironmentVariableSetup struct. +func (evs *EnvironmentVariableSetup) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var environmentVariableSetupTypeProperties EnvironmentVariableSetupTypeProperties + err = json.Unmarshal(*v, &environmentVariableSetupTypeProperties) + if err != nil { + return err + } + evs.EnvironmentVariableSetupTypeProperties = &environmentVariableSetupTypeProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCustomSetupBase + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + evs.Type = typeVar + } + } + } + + return nil +} + +// EnvironmentVariableSetupTypeProperties environment variable custom setup type properties. +type EnvironmentVariableSetupTypeProperties struct { + // VariableName - The name of the environment variable. + VariableName *string `json:"variableName,omitempty"` + // VariableValue - The value of the environment variable. + VariableValue *string `json:"variableValue,omitempty"` +} + +// ExcelDataset excel dataset. +type ExcelDataset struct { + // ExcelDatasetTypeProperties - Excel dataset properties. + *ExcelDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExcelDataset. +func (ed ExcelDataset) MarshalJSON() ([]byte, error) { + ed.Type = TypeBasicDatasetTypeExcel + objectMap := make(map[string]interface{}) + if ed.ExcelDatasetTypeProperties != nil { + objectMap["typeProperties"] = ed.ExcelDatasetTypeProperties + } + if ed.Description != nil { + objectMap["description"] = ed.Description + } + if ed.Structure != nil { + objectMap["structure"] = ed.Structure + } + if ed.Schema != nil { + objectMap["schema"] = ed.Schema + } + if ed.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ed.LinkedServiceName + } + if ed.Parameters != nil { + objectMap["parameters"] = ed.Parameters + } + if ed.Annotations != nil { + objectMap["annotations"] = ed.Annotations + } + if ed.Folder != nil { + objectMap["folder"] = ed.Folder + } + if ed.Type != "" { + objectMap["type"] = ed.Type + } + for k, v := range ed.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsExcelDataset() (*ExcelDataset, bool) { + return &ed, true +} + +// AsAvroDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ExcelDataset. +func (ed ExcelDataset) AsBasicDataset() (BasicDataset, bool) { + return &ed, true +} + +// UnmarshalJSON is the custom unmarshaler for ExcelDataset struct. +func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var excelDatasetTypeProperties ExcelDatasetTypeProperties + err = json.Unmarshal(*v, &excelDatasetTypeProperties) + if err != nil { + return err + } + ed.ExcelDatasetTypeProperties = &excelDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ed.AdditionalProperties == nil { + ed.AdditionalProperties = make(map[string]interface{}) + } + ed.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ed.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ed.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ed.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ed.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ed.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ed.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ed.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ed.Type = typeVar + } + } + } + + return nil +} + +// ExcelDatasetTypeProperties excel dataset properties. +type ExcelDatasetTypeProperties struct { + // Location - The location of the excel storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // SheetName - The sheet name of excel file. Type: string (or Expression with resultType string). + SheetName interface{} `json:"sheetName,omitempty"` + // SheetIndex - The sheet index of excel file and default value is 0. Type: integer (or Expression with resultType integer) + SheetIndex interface{} `json:"sheetIndex,omitempty"` + // Range - The partial data of one sheet. Type: string (or Expression with resultType string). + Range interface{} `json:"range,omitempty"` + // FirstRowAsHeader - 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"` + // Compression - The data compression method used for the json dataset. + Compression *DatasetCompression `json:"compression,omitempty"` + // NullValue - The null value string. Type: string (or Expression with resultType string). + NullValue interface{} `json:"nullValue,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ExcelDatasetTypeProperties struct. +func (edtp *ExcelDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + edtp.Location = location + } + case "sheetName": + if v != nil { + var sheetName interface{} + err = json.Unmarshal(*v, &sheetName) + if err != nil { + return err + } + edtp.SheetName = sheetName + } + case "sheetIndex": + if v != nil { + var sheetIndex interface{} + err = json.Unmarshal(*v, &sheetIndex) + if err != nil { + return err + } + edtp.SheetIndex = sheetIndex + } + case "range": + if v != nil { + var rangeVar interface{} + err = json.Unmarshal(*v, &rangeVar) + if err != nil { + return err + } + edtp.Range = rangeVar + } + case "firstRowAsHeader": + if v != nil { + var firstRowAsHeader interface{} + err = json.Unmarshal(*v, &firstRowAsHeader) + if err != nil { + return err + } + edtp.FirstRowAsHeader = firstRowAsHeader + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + edtp.Compression = &compression + } + case "nullValue": + if v != nil { + var nullValue interface{} + err = json.Unmarshal(*v, &nullValue) + if err != nil { + return err + } + edtp.NullValue = nullValue + } + } + } + + return nil +} + +// ExcelSource a copy activity excel source. +type ExcelSource struct { + // StoreSettings - Excel store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExcelSource. +func (es ExcelSource) MarshalJSON() ([]byte, error) { + es.Type = TypeBasicCopySourceTypeExcelSource + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = es.StoreSettings + if es.AdditionalColumns != nil { + objectMap["additionalColumns"] = es.AdditionalColumns + } + if es.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = es.SourceRetryCount + } + if es.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = es.SourceRetryWait + } + if es.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections + } + if es.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = es.DisableMetricsCollection + } + if es.Type != "" { + objectMap["type"] = es.Type + } + for k, v := range es.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsExcelSource() (*ExcelSource, bool) { + return &es, true +} + +// AsAvroSource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ExcelSource. +func (es ExcelSource) AsBasicCopySource() (BasicCopySource, bool) { + return &es, true +} + +// UnmarshalJSON is the custom unmarshaler for ExcelSource struct. +func (es *ExcelSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + es.StoreSettings = storeSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + es.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if es.AdditionalProperties == nil { + es.AdditionalProperties = make(map[string]interface{}) + } + es.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + es.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + es.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + es.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + es.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + es.Type = typeVar + } + } + } + + return nil +} + +// ExecuteDataFlowActivity execute data flow activity. +type ExecuteDataFlowActivity struct { + // ExecuteDataFlowActivityTypeProperties - Execute data flow activity properties. + *ExecuteDataFlowActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) MarshalJSON() ([]byte, error) { + edfa.Type = TypeBasicActivityTypeExecuteDataFlow + objectMap := make(map[string]interface{}) + if edfa.ExecuteDataFlowActivityTypeProperties != nil { + objectMap["typeProperties"] = edfa.ExecuteDataFlowActivityTypeProperties + } + if edfa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = edfa.LinkedServiceName + } + if edfa.Policy != nil { + objectMap["policy"] = edfa.Policy + } + if edfa.Name != nil { + objectMap["name"] = edfa.Name + } + if edfa.Description != nil { + objectMap["description"] = edfa.Description + } + if edfa.State != "" { + objectMap["state"] = edfa.State + } + if edfa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = edfa.OnInactiveMarkAs + } + if edfa.DependsOn != nil { + objectMap["dependsOn"] = edfa.DependsOn + } + if edfa.UserProperties != nil { + objectMap["userProperties"] = edfa.UserProperties + } + if edfa.Type != "" { + objectMap["type"] = edfa.Type + } + for k, v := range edfa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return &edfa, true +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &edfa, true +} + +// AsWebHookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ExecuteDataFlowActivity. +func (edfa ExecuteDataFlowActivity) AsBasicActivity() (BasicActivity, bool) { + return &edfa, true +} + +// UnmarshalJSON is the custom unmarshaler for ExecuteDataFlowActivity struct. +func (edfa *ExecuteDataFlowActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var executeDataFlowActivityTypeProperties ExecuteDataFlowActivityTypeProperties + err = json.Unmarshal(*v, &executeDataFlowActivityTypeProperties) + if err != nil { + return err + } + edfa.ExecuteDataFlowActivityTypeProperties = &executeDataFlowActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + edfa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + edfa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if edfa.AdditionalProperties == nil { + edfa.AdditionalProperties = make(map[string]interface{}) + } + edfa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + edfa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + edfa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + edfa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + edfa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + edfa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + edfa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + edfa.Type = typeVar + } + } + } + + return nil +} + +// ExecuteDataFlowActivityTypeProperties execute data flow activity properties. +type ExecuteDataFlowActivityTypeProperties struct { + // DataFlow - Data flow reference. + DataFlow *DataFlowReference `json:"dataFlow,omitempty"` + // Staging - Staging info for execute data flow activity. + Staging *DataFlowStagingInfo `json:"staging,omitempty"` + // IntegrationRuntime - The integration runtime reference. + IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` + // Compute - Compute properties for data flow activity. + Compute *ExecuteDataFlowActivityTypePropertiesCompute `json:"compute,omitempty"` + // TraceLevel - 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"` + // ContinueOnError - 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"` + // RunConcurrently - 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"` + // SourceStagingConcurrency - Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) + SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` +} + +// ExecuteDataFlowActivityTypePropertiesCompute compute properties for data flow activity. +type ExecuteDataFlowActivityTypePropertiesCompute struct { + // ComputeType - 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"` + // CoreCount - 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"` +} + +// ExecutePipelineActivity execute pipeline activity. +type ExecutePipelineActivity struct { + // Policy - Execute pipeline activity policy. + Policy *ExecutePipelineActivityPolicy `json:"policy,omitempty"` + // ExecutePipelineActivityTypeProperties - Execute pipeline activity properties. + *ExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) MarshalJSON() ([]byte, error) { + epa.Type = TypeBasicActivityTypeExecutePipeline + objectMap := make(map[string]interface{}) + if epa.Policy != nil { + objectMap["policy"] = epa.Policy + } + if epa.ExecutePipelineActivityTypeProperties != nil { + objectMap["typeProperties"] = epa.ExecutePipelineActivityTypeProperties + } + if epa.Name != nil { + objectMap["name"] = epa.Name + } + if epa.Description != nil { + objectMap["description"] = epa.Description + } + if epa.State != "" { + objectMap["state"] = epa.State + } + if epa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = epa.OnInactiveMarkAs + } + if epa.DependsOn != nil { + objectMap["dependsOn"] = epa.DependsOn + } + if epa.UserProperties != nil { + objectMap["userProperties"] = epa.UserProperties + } + if epa.Type != "" { + objectMap["type"] = epa.Type + } + for k, v := range epa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return &epa, true +} + +// AsControlActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &epa, true +} + +// AsActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ExecutePipelineActivity. +func (epa ExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { + return &epa, true +} + +// UnmarshalJSON is the custom unmarshaler for ExecutePipelineActivity struct. +func (epa *ExecutePipelineActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "policy": + if v != nil { + var policy ExecutePipelineActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + epa.Policy = &policy + } + case "typeProperties": + if v != nil { + var executePipelineActivityTypeProperties ExecutePipelineActivityTypeProperties + err = json.Unmarshal(*v, &executePipelineActivityTypeProperties) + if err != nil { + return err + } + epa.ExecutePipelineActivityTypeProperties = &executePipelineActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if epa.AdditionalProperties == nil { + epa.AdditionalProperties = make(map[string]interface{}) + } + epa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + epa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + epa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + epa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + epa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + epa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + epa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + epa.Type = typeVar + } + } + } + + return nil +} + +// ExecutePipelineActivityPolicy execution policy for an execute pipeline activity. +type ExecutePipelineActivityPolicy struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SecureInput - When set to true, Input from activity is considered as secure and will not be logged to monitoring. + SecureInput *bool `json:"secureInput,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecutePipelineActivityPolicy. +func (epap ExecutePipelineActivityPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if epap.SecureInput != nil { + objectMap["secureInput"] = epap.SecureInput + } + for k, v := range epap.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ExecutePipelineActivityPolicy struct. +func (epap *ExecutePipelineActivityPolicy) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if epap.AdditionalProperties == nil { + epap.AdditionalProperties = make(map[string]interface{}) + } + epap.AdditionalProperties[k] = additionalProperties + } + case "secureInput": + if v != nil { + var secureInput bool + err = json.Unmarshal(*v, &secureInput) + if err != nil { + return err + } + epap.SecureInput = &secureInput + } + } + } + + return nil +} + +// ExecutePipelineActivityTypeProperties execute pipeline activity properties. +type ExecutePipelineActivityTypeProperties struct { + // Pipeline - Pipeline reference. + Pipeline *PipelineReference `json:"pipeline,omitempty"` + // Parameters - Pipeline parameters. + Parameters map[string]interface{} `json:"parameters"` + // WaitOnCompletion - Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. + WaitOnCompletion *bool `json:"waitOnCompletion,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecutePipelineActivityTypeProperties. +func (epatp ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if epatp.Pipeline != nil { + objectMap["pipeline"] = epatp.Pipeline + } + if epatp.Parameters != nil { + objectMap["parameters"] = epatp.Parameters + } + if epatp.WaitOnCompletion != nil { + objectMap["waitOnCompletion"] = epatp.WaitOnCompletion + } + return json.Marshal(objectMap) +} + +// ExecutePowerQueryActivityTypeProperties execute power query data flow activity properties. +type ExecutePowerQueryActivityTypeProperties struct { + // Sinks - (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName. + Sinks map[string]*PowerQuerySink `json:"sinks"` + // Queries - List of mapping for Power Query mashup query to sink dataset(s). + Queries *[]PowerQuerySinkMapping `json:"queries,omitempty"` + // DataFlow - Data flow reference. + DataFlow *DataFlowReference `json:"dataFlow,omitempty"` + // Staging - Staging info for execute data flow activity. + Staging *DataFlowStagingInfo `json:"staging,omitempty"` + // IntegrationRuntime - The integration runtime reference. + IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` + // Compute - Compute properties for data flow activity. + Compute *ExecuteDataFlowActivityTypePropertiesCompute `json:"compute,omitempty"` + // TraceLevel - 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"` + // ContinueOnError - 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"` + // RunConcurrently - 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"` + // SourceStagingConcurrency - Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) + SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecutePowerQueryActivityTypeProperties. +func (epqatp ExecutePowerQueryActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if epqatp.Sinks != nil { + objectMap["sinks"] = epqatp.Sinks + } + if epqatp.Queries != nil { + objectMap["queries"] = epqatp.Queries + } + if epqatp.DataFlow != nil { + objectMap["dataFlow"] = epqatp.DataFlow + } + if epqatp.Staging != nil { + objectMap["staging"] = epqatp.Staging + } + if epqatp.IntegrationRuntime != nil { + objectMap["integrationRuntime"] = epqatp.IntegrationRuntime + } + if epqatp.Compute != nil { + objectMap["compute"] = epqatp.Compute + } + if epqatp.TraceLevel != nil { + objectMap["traceLevel"] = epqatp.TraceLevel + } + if epqatp.ContinueOnError != nil { + objectMap["continueOnError"] = epqatp.ContinueOnError + } + if epqatp.RunConcurrently != nil { + objectMap["runConcurrently"] = epqatp.RunConcurrently + } + if epqatp.SourceStagingConcurrency != nil { + objectMap["sourceStagingConcurrency"] = epqatp.SourceStagingConcurrency + } + return json.Marshal(objectMap) +} + +// ExecuteSSISPackageActivity execute SSIS package activity. +type ExecuteSSISPackageActivity struct { + // ExecuteSSISPackageActivityTypeProperties - Execute SSIS package activity properties. + *ExecuteSSISPackageActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { + espa.Type = TypeBasicActivityTypeExecuteSSISPackage + objectMap := make(map[string]interface{}) + if espa.ExecuteSSISPackageActivityTypeProperties != nil { + objectMap["typeProperties"] = espa.ExecuteSSISPackageActivityTypeProperties + } + if espa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = espa.LinkedServiceName + } + if espa.Policy != nil { + objectMap["policy"] = espa.Policy + } + if espa.Name != nil { + objectMap["name"] = espa.Name + } + if espa.Description != nil { + objectMap["description"] = espa.Description + } + if espa.State != "" { + objectMap["state"] = espa.State + } + if espa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = espa.OnInactiveMarkAs + } + if espa.DependsOn != nil { + objectMap["dependsOn"] = espa.DependsOn + } + if espa.UserProperties != nil { + objectMap["userProperties"] = espa.UserProperties + } + if espa.Type != "" { + objectMap["type"] = espa.Type + } + for k, v := range espa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return &espa, true +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &espa, true +} + +// AsWebHookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. +func (espa ExecuteSSISPackageActivity) AsBasicActivity() (BasicActivity, bool) { + return &espa, true +} + +// UnmarshalJSON is the custom unmarshaler for ExecuteSSISPackageActivity struct. +func (espa *ExecuteSSISPackageActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var executeSSISPackageActivityTypeProperties ExecuteSSISPackageActivityTypeProperties + err = json.Unmarshal(*v, &executeSSISPackageActivityTypeProperties) + if err != nil { + return err + } + espa.ExecuteSSISPackageActivityTypeProperties = &executeSSISPackageActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + espa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + espa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if espa.AdditionalProperties == nil { + espa.AdditionalProperties = make(map[string]interface{}) + } + espa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + espa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + espa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + espa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + espa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + espa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + espa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + espa.Type = typeVar + } + } + } + + return nil +} + +// ExecuteSSISPackageActivityTypeProperties execute SSIS package activity properties. +type ExecuteSSISPackageActivityTypeProperties struct { + // PackageLocation - SSIS package location. + PackageLocation *SSISPackageLocation `json:"packageLocation,omitempty"` + // Runtime - 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"` + // LoggingLevel - The logging level of SSIS package execution. Type: string (or Expression with resultType string). + LoggingLevel interface{} `json:"loggingLevel,omitempty"` + // EnvironmentPath - The environment path to execute the SSIS package. Type: string (or Expression with resultType string). + EnvironmentPath interface{} `json:"environmentPath,omitempty"` + // ExecutionCredential - The package execution credential. + ExecutionCredential *SSISExecutionCredential `json:"executionCredential,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // ProjectParameters - The project level parameters to execute the SSIS package. + ProjectParameters map[string]*SSISExecutionParameter `json:"projectParameters"` + // PackageParameters - The package level parameters to execute the SSIS package. + PackageParameters map[string]*SSISExecutionParameter `json:"packageParameters"` + // ProjectConnectionManagers - The project level connection managers to execute the SSIS package. + ProjectConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"projectConnectionManagers"` + // PackageConnectionManagers - The package level connection managers to execute the SSIS package. + PackageConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"packageConnectionManagers"` + // PropertyOverrides - The property overrides to execute the SSIS package. + PropertyOverrides map[string]*SSISPropertyOverride `json:"propertyOverrides"` + // LogLocation - SSIS package execution log location. + LogLocation *SSISLogLocation `json:"logLocation,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivityTypeProperties. +func (espatp ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if espatp.PackageLocation != nil { + objectMap["packageLocation"] = espatp.PackageLocation + } + if espatp.Runtime != nil { + objectMap["runtime"] = espatp.Runtime + } + if espatp.LoggingLevel != nil { + objectMap["loggingLevel"] = espatp.LoggingLevel + } + if espatp.EnvironmentPath != nil { + objectMap["environmentPath"] = espatp.EnvironmentPath + } + if espatp.ExecutionCredential != nil { + objectMap["executionCredential"] = espatp.ExecutionCredential + } + if espatp.ConnectVia != nil { + objectMap["connectVia"] = espatp.ConnectVia + } + if espatp.ProjectParameters != nil { + objectMap["projectParameters"] = espatp.ProjectParameters + } + if espatp.PackageParameters != nil { + objectMap["packageParameters"] = espatp.PackageParameters + } + if espatp.ProjectConnectionManagers != nil { + objectMap["projectConnectionManagers"] = espatp.ProjectConnectionManagers + } + if espatp.PackageConnectionManagers != nil { + objectMap["packageConnectionManagers"] = espatp.PackageConnectionManagers + } + if espatp.PropertyOverrides != nil { + objectMap["propertyOverrides"] = espatp.PropertyOverrides + } + if espatp.LogLocation != nil { + objectMap["logLocation"] = espatp.LogLocation + } + return json.Marshal(objectMap) +} + +// ExecuteWranglingDataflowActivity execute power query activity. +type ExecuteWranglingDataflowActivity struct { + // ExecutePowerQueryActivityTypeProperties - Execute power query activity properties. + *ExecutePowerQueryActivityTypeProperties `json:"typeProperties,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) MarshalJSON() ([]byte, error) { + ewda.Type = TypeBasicActivityTypeExecuteWranglingDataflow + objectMap := make(map[string]interface{}) + if ewda.ExecutePowerQueryActivityTypeProperties != nil { + objectMap["typeProperties"] = ewda.ExecutePowerQueryActivityTypeProperties + } + if ewda.Policy != nil { + objectMap["policy"] = ewda.Policy + } + if ewda.Name != nil { + objectMap["name"] = ewda.Name + } + if ewda.Description != nil { + objectMap["description"] = ewda.Description + } + if ewda.State != "" { + objectMap["state"] = ewda.State + } + if ewda.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ewda.OnInactiveMarkAs + } + if ewda.DependsOn != nil { + objectMap["dependsOn"] = ewda.DependsOn + } + if ewda.UserProperties != nil { + objectMap["userProperties"] = ewda.UserProperties + } + if ewda.Type != "" { + objectMap["type"] = ewda.Type + } + for k, v := range ewda.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return &ewda, true +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. +func (ewda ExecuteWranglingDataflowActivity) AsBasicActivity() (BasicActivity, bool) { + return &ewda, true +} + +// UnmarshalJSON is the custom unmarshaler for ExecuteWranglingDataflowActivity struct. +func (ewda *ExecuteWranglingDataflowActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var executePowerQueryActivityTypeProperties ExecutePowerQueryActivityTypeProperties + err = json.Unmarshal(*v, &executePowerQueryActivityTypeProperties) + if err != nil { + return err + } + ewda.ExecutePowerQueryActivityTypeProperties = &executePowerQueryActivityTypeProperties + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ewda.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ewda.AdditionalProperties == nil { + ewda.AdditionalProperties = make(map[string]interface{}) + } + ewda.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ewda.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ewda.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ewda.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ewda.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ewda.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ewda.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ewda.Type = typeVar + } + } + } + + return nil +} + +// BasicExecutionActivity base class for all execution activities. +type BasicExecutionActivity interface { + AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) + AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) + AsScriptActivity() (*ScriptActivity, bool) + AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) + AsAzureFunctionActivity() (*AzureFunctionActivity, bool) + AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) + AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) + AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) + AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) + AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) + AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) + AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) + AsGetMetadataActivity() (*GetMetadataActivity, bool) + AsWebActivity() (*WebActivity, bool) + AsLookupActivity() (*LookupActivity, bool) + AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) + AsDeleteActivity() (*DeleteActivity, bool) + AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) + AsCustomActivity() (*CustomActivity, bool) + AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) + AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) + AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) + AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) + AsHDInsightPigActivity() (*HDInsightPigActivity, bool) + AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) + AsCopyActivity() (*CopyActivity, bool) + AsExecutionActivity() (*ExecutionActivity, bool) +} + +// ExecutionActivity base class for all execution activities. +type ExecutionActivity struct { + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +func unmarshalBasicExecutionActivity(body []byte) (BasicExecutionActivity, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicActivityTypeSparkJob): + var ssjda SynapseSparkJobDefinitionActivity + err := json.Unmarshal(body, &ssjda) + return ssjda, err + case string(TypeBasicActivityTypeSynapseNotebook): + var sna SynapseNotebookActivity + err := json.Unmarshal(body, &sna) + return sna, err + case string(TypeBasicActivityTypeScript): + var sa ScriptActivity + err := json.Unmarshal(body, &sa) + return sa, err + case string(TypeBasicActivityTypeExecuteDataFlow): + var edfa ExecuteDataFlowActivity + err := json.Unmarshal(body, &edfa) + return edfa, err + case string(TypeBasicActivityTypeAzureFunctionActivity): + var afa AzureFunctionActivity + err := json.Unmarshal(body, &afa) + return afa, err + case string(TypeBasicActivityTypeDatabricksSparkPython): + var dspa DatabricksSparkPythonActivity + err := json.Unmarshal(body, &dspa) + return dspa, err + case string(TypeBasicActivityTypeDatabricksSparkJar): + var dsja DatabricksSparkJarActivity + err := json.Unmarshal(body, &dsja) + return dsja, err + case string(TypeBasicActivityTypeDatabricksNotebook): + var dna DatabricksNotebookActivity + err := json.Unmarshal(body, &dna) + return dna, err + case string(TypeBasicActivityTypeDataLakeAnalyticsUSQL): + var dlaua DataLakeAnalyticsUSQLActivity + err := json.Unmarshal(body, &dlaua) + return dlaua, err + case string(TypeBasicActivityTypeAzureMLExecutePipeline): + var amepa AzureMLExecutePipelineActivity + err := json.Unmarshal(body, &amepa) + return amepa, err + case string(TypeBasicActivityTypeAzureMLUpdateResource): + var amura AzureMLUpdateResourceActivity + err := json.Unmarshal(body, &amura) + return amura, err + case string(TypeBasicActivityTypeAzureMLBatchExecution): + var ambea AzureMLBatchExecutionActivity + err := json.Unmarshal(body, &ambea) + return ambea, err + case string(TypeBasicActivityTypeGetMetadata): + var gma GetMetadataActivity + err := json.Unmarshal(body, &gma) + return gma, err + case string(TypeBasicActivityTypeWebActivity): + var wa WebActivity + err := json.Unmarshal(body, &wa) + return wa, err + case string(TypeBasicActivityTypeLookup): + var la LookupActivity + err := json.Unmarshal(body, &la) + return la, err + case string(TypeBasicActivityTypeAzureDataExplorerCommand): + var adeca AzureDataExplorerCommandActivity + err := json.Unmarshal(body, &adeca) + return adeca, err + case string(TypeBasicActivityTypeDelete): + var da DeleteActivity + err := json.Unmarshal(body, &da) + return da, err + case string(TypeBasicActivityTypeSQLServerStoredProcedure): + var ssspa SQLServerStoredProcedureActivity + err := json.Unmarshal(body, &ssspa) + return ssspa, err + case string(TypeBasicActivityTypeCustom): + var ca CustomActivity + err := json.Unmarshal(body, &ca) + return ca, err + case string(TypeBasicActivityTypeExecuteSSISPackage): + var espa ExecuteSSISPackageActivity + err := json.Unmarshal(body, &espa) + return espa, err + case string(TypeBasicActivityTypeHDInsightSpark): + var hisa HDInsightSparkActivity + err := json.Unmarshal(body, &hisa) + return hisa, err + case string(TypeBasicActivityTypeHDInsightStreaming): + var hisa HDInsightStreamingActivity + err := json.Unmarshal(body, &hisa) + return hisa, err + case string(TypeBasicActivityTypeHDInsightMapReduce): + var himra HDInsightMapReduceActivity + err := json.Unmarshal(body, &himra) + return himra, err + case string(TypeBasicActivityTypeHDInsightPig): + var hipa HDInsightPigActivity + err := json.Unmarshal(body, &hipa) + return hipa, err + case string(TypeBasicActivityTypeHDInsightHive): + var hiha HDInsightHiveActivity + err := json.Unmarshal(body, &hiha) + return hiha, err + case string(TypeBasicActivityTypeCopy): + var ca CopyActivity + err := json.Unmarshal(body, &ca) + return ca, err + default: + var ea ExecutionActivity + err := json.Unmarshal(body, &ea) + return ea, err + } +} +func unmarshalBasicExecutionActivityArray(body []byte) ([]BasicExecutionActivity, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + eaArray := make([]BasicExecutionActivity, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ea, err := unmarshalBasicExecutionActivity(*rawMessage) + if err != nil { + return nil, err + } + eaArray[index] = ea + } + return eaArray, nil +} + +// MarshalJSON is the custom marshaler for ExecutionActivity. +func (ea ExecutionActivity) MarshalJSON() ([]byte, error) { + ea.Type = TypeBasicActivityTypeExecution + objectMap := make(map[string]interface{}) + if ea.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ea.LinkedServiceName + } + if ea.Policy != nil { + objectMap["policy"] = ea.Policy + } + if ea.Name != nil { + objectMap["name"] = ea.Name + } + if ea.Description != nil { + objectMap["description"] = ea.Description + } + if ea.State != "" { + objectMap["state"] = ea.State + } + if ea.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ea.OnInactiveMarkAs + } + if ea.DependsOn != nil { + objectMap["dependsOn"] = ea.DependsOn + } + if ea.UserProperties != nil { + objectMap["userProperties"] = ea.UserProperties + } + if ea.Type != "" { + objectMap["type"] = ea.Type + } + for k, v := range ea.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return &ea, true +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ea, true +} + +// AsWebHookActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ExecutionActivity. +func (ea ExecutionActivity) AsBasicActivity() (BasicActivity, bool) { + return &ea, true +} + +// UnmarshalJSON is the custom unmarshaler for ExecutionActivity struct. +func (ea *ExecutionActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ea.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ea.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ea.AdditionalProperties == nil { + ea.AdditionalProperties = make(map[string]interface{}) + } + ea.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ea.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ea.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ea.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ea.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ea.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ea.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ea.Type = typeVar + } + } + } + + return nil +} + +// BasicExportSettings export command settings. +type BasicExportSettings interface { + AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) + AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) + AsExportSettings() (*ExportSettings, bool) +} + +// ExportSettings export command settings. +type ExportSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicExportSettingsTypeExportSettings', 'TypeBasicExportSettingsTypeSnowflakeExportCopyCommand', 'TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand' + Type TypeBasicExportSettings `json:"type,omitempty"` +} + +func unmarshalBasicExportSettings(body []byte) (BasicExportSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicExportSettingsTypeSnowflakeExportCopyCommand): + var secc SnowflakeExportCopyCommand + err := json.Unmarshal(body, &secc) + return secc, err + case string(TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand): + var addlec AzureDatabricksDeltaLakeExportCommand + err := json.Unmarshal(body, &addlec) + return addlec, err + default: + var es ExportSettings + err := json.Unmarshal(body, &es) + return es, err + } +} +func unmarshalBasicExportSettingsArray(body []byte) ([]BasicExportSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + esArray := make([]BasicExportSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + es, err := unmarshalBasicExportSettings(*rawMessage) + if err != nil { + return nil, err + } + esArray[index] = es + } + return esArray, nil +} + +// MarshalJSON is the custom marshaler for ExportSettings. +func (es ExportSettings) MarshalJSON() ([]byte, error) { + es.Type = TypeBasicExportSettingsTypeExportSettings + objectMap := make(map[string]interface{}) + if es.Type != "" { + objectMap["type"] = es.Type + } + for k, v := range es.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for ExportSettings. +func (es ExportSettings) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for ExportSettings. +func (es ExportSettings) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { + return nil, false +} + +// AsExportSettings is the BasicExportSettings implementation for ExportSettings. +func (es ExportSettings) AsExportSettings() (*ExportSettings, bool) { + return &es, true +} + +// AsBasicExportSettings is the BasicExportSettings implementation for ExportSettings. +func (es ExportSettings) AsBasicExportSettings() (BasicExportSettings, bool) { + return &es, true +} + +// UnmarshalJSON is the custom unmarshaler for ExportSettings struct. +func (es *ExportSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if es.AdditionalProperties == nil { + es.AdditionalProperties = make(map[string]interface{}) + } + es.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicExportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + es.Type = typeVar + } + } + } + + return nil +} + +// ExposureControlBatchRequest a list of exposure control features. +type ExposureControlBatchRequest struct { + // ExposureControlRequests - List of exposure control features. + ExposureControlRequests *[]ExposureControlRequest `json:"exposureControlRequests,omitempty"` +} + +// ExposureControlBatchResponse a list of exposure control feature values. +type ExposureControlBatchResponse struct { + autorest.Response `json:"-"` + // ExposureControlResponses - List of exposure control feature values. + ExposureControlResponses *[]ExposureControlResponse `json:"exposureControlResponses,omitempty"` +} + +// ExposureControlRequest the exposure control request. +type ExposureControlRequest struct { + // FeatureName - The feature name. + FeatureName *string `json:"featureName,omitempty"` + // FeatureType - The feature type. + FeatureType *string `json:"featureType,omitempty"` +} + +// ExposureControlResponse the exposure control response. +type ExposureControlResponse struct { + autorest.Response `json:"-"` + // FeatureName - READ-ONLY; The feature name. + FeatureName *string `json:"featureName,omitempty"` + // Value - READ-ONLY; The feature value. + Value *string `json:"value,omitempty"` +} + +// MarshalJSON is the custom marshaler for ExposureControlResponse. +func (ecr ExposureControlResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// Expression azure Data Factory expression definition. +type Expression struct { + // Type - Expression type. + Type *string `json:"type,omitempty"` + // Value - Expression value. + Value *string `json:"value,omitempty"` +} + +// ExpressionV2 nested representation of a complex expression. +type ExpressionV2 struct { + // Type - Type of expressions supported by the system. Type: string. Possible values include: 'ExpressionV2TypeConstant', 'ExpressionV2TypeField', 'ExpressionV2TypeUnary', 'ExpressionV2TypeBinary' + Type ExpressionV2Type `json:"type,omitempty"` + // Value - Value for Constant/Field Type: string. + Value *string `json:"value,omitempty"` + // Operator - Expression operator value Type: string. + Operator *string `json:"operator,omitempty"` + // Operands - List of nested expressions. + Operands *[]ExpressionV2 `json:"operands,omitempty"` +} + +// Factory factory resource type. +type Factory struct { + autorest.Response `json:"-"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Identity - Managed service identity of the factory. + Identity *FactoryIdentity `json:"identity,omitempty"` + // FactoryProperties - Properties of the factory. + *FactoryProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Location - The resource location. + Location *string `json:"location,omitempty"` + // Tags - The resource tags. + Tags map[string]*string `json:"tags"` + // ETag - READ-ONLY; Etag identifies change in the resource. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for Factory. +func (f Factory) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if f.Identity != nil { + objectMap["identity"] = f.Identity + } + if f.FactoryProperties != nil { + objectMap["properties"] = f.FactoryProperties + } + if f.Location != nil { + objectMap["location"] = f.Location + } + if f.Tags != nil { + objectMap["tags"] = f.Tags + } + for k, v := range f.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Factory struct. +func (f *Factory) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if f.AdditionalProperties == nil { + f.AdditionalProperties = make(map[string]interface{}) + } + f.AdditionalProperties[k] = additionalProperties + } + case "identity": + if v != nil { + var identity FactoryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + f.Identity = &identity + } + case "properties": + if v != nil { + var factoryProperties FactoryProperties + err = json.Unmarshal(*v, &factoryProperties) + if err != nil { + return err + } + f.FactoryProperties = &factoryProperties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + f.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + f.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + f.Type = &typeVar + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + f.Location = &location + } + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + f.Tags = tags + } + case "eTag": + if v != nil { + var eTag string + err = json.Unmarshal(*v, &eTag) + if err != nil { + return err + } + f.ETag = &eTag + } + } + } + + return nil +} + +// FactoryGitHubConfiguration factory's GitHub repo information. +type FactoryGitHubConfiguration struct { + // HostName - GitHub Enterprise host name. For example: `https://github.mydomain.com` + HostName *string `json:"hostName,omitempty"` + // ClientID - GitHub bring your own app client id. + ClientID *string `json:"clientId,omitempty"` + // ClientSecret - GitHub bring your own app client secret information. + ClientSecret *GitHubClientSecret `json:"clientSecret,omitempty"` + // AccountName - Account name. + AccountName *string `json:"accountName,omitempty"` + // RepositoryName - Repository name. + RepositoryName *string `json:"repositoryName,omitempty"` + // CollaborationBranch - Collaboration branch. + CollaborationBranch *string `json:"collaborationBranch,omitempty"` + // RootFolder - Root folder. + RootFolder *string `json:"rootFolder,omitempty"` + // LastCommitID - Last commit id. + LastCommitID *string `json:"lastCommitId,omitempty"` + // DisablePublish - Disable manual publish operation in ADF studio to favor automated publish. + DisablePublish *bool `json:"disablePublish,omitempty"` + // Type - Possible values include: 'TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration' + Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) MarshalJSON() ([]byte, error) { + fghc.Type = TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration + objectMap := make(map[string]interface{}) + if fghc.HostName != nil { + objectMap["hostName"] = fghc.HostName + } + if fghc.ClientID != nil { + objectMap["clientId"] = fghc.ClientID + } + if fghc.ClientSecret != nil { + objectMap["clientSecret"] = fghc.ClientSecret + } + if fghc.AccountName != nil { + objectMap["accountName"] = fghc.AccountName + } + if fghc.RepositoryName != nil { + objectMap["repositoryName"] = fghc.RepositoryName + } + if fghc.CollaborationBranch != nil { + objectMap["collaborationBranch"] = fghc.CollaborationBranch + } + if fghc.RootFolder != nil { + objectMap["rootFolder"] = fghc.RootFolder + } + if fghc.LastCommitID != nil { + objectMap["lastCommitId"] = fghc.LastCommitID + } + if fghc.DisablePublish != nil { + objectMap["disablePublish"] = fghc.DisablePublish + } + if fghc.Type != "" { + objectMap["type"] = fghc.Type + } + return json.Marshal(objectMap) +} + +// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { + return nil, false +} + +// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { + return &fghc, true +} + +// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { + return nil, false +} + +// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. +func (fghc FactoryGitHubConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { + return &fghc, true +} + +// FactoryIdentity identity properties of the factory resource. +type FactoryIdentity struct { + // Type - The identity type. Possible values include: 'FactoryIdentityTypeSystemAssigned', 'FactoryIdentityTypeUserAssigned', 'FactoryIdentityTypeSystemAssignedUserAssigned' + Type FactoryIdentityType `json:"type,omitempty"` + // PrincipalID - READ-ONLY; The principal id of the identity. + PrincipalID *uuid.UUID `json:"principalId,omitempty"` + // TenantID - READ-ONLY; The client tenant id of the identity. + TenantID *uuid.UUID `json:"tenantId,omitempty"` + // UserAssignedIdentities - List of user assigned identities for the factory. + UserAssignedIdentities map[string]interface{} `json:"userAssignedIdentities"` +} + +// MarshalJSON is the custom marshaler for FactoryIdentity. +func (fi FactoryIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fi.Type != "" { + objectMap["type"] = fi.Type + } + if fi.UserAssignedIdentities != nil { + objectMap["userAssignedIdentities"] = fi.UserAssignedIdentities + } + return json.Marshal(objectMap) +} + +// FactoryListResponse a list of factory resources. +type FactoryListResponse struct { + autorest.Response `json:"-"` + // Value - List of factories. + Value *[]Factory `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// FactoryListResponseIterator provides access to a complete listing of Factory values. +type FactoryListResponseIterator struct { + i int + page FactoryListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *FactoryListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FactoryListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *FactoryListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter FactoryListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter FactoryListResponseIterator) Response() FactoryListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter FactoryListResponseIterator) Value() Factory { + if !iter.page.NotDone() { + return Factory{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the FactoryListResponseIterator type. +func NewFactoryListResponseIterator(page FactoryListResponsePage) FactoryListResponseIterator { + return FactoryListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (flr FactoryListResponse) IsEmpty() bool { + return flr.Value == nil || len(*flr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (flr FactoryListResponse) hasNextLink() bool { + return flr.NextLink != nil && len(*flr.NextLink) != 0 +} + +// factoryListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (flr FactoryListResponse) factoryListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !flr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(flr.NextLink))) +} + +// FactoryListResponsePage contains a page of Factory values. +type FactoryListResponsePage struct { + fn func(context.Context, FactoryListResponse) (FactoryListResponse, error) + flr FactoryListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *FactoryListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/FactoryListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.flr) + if err != nil { + return err + } + page.flr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *FactoryListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page FactoryListResponsePage) NotDone() bool { + return !page.flr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page FactoryListResponsePage) Response() FactoryListResponse { + return page.flr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page FactoryListResponsePage) Values() []Factory { + if page.flr.IsEmpty() { + return nil + } + return *page.flr.Value +} + +// Creates a new instance of the FactoryListResponsePage type. +func NewFactoryListResponsePage(cur FactoryListResponse, getNextPage func(context.Context, FactoryListResponse) (FactoryListResponse, error)) FactoryListResponsePage { + return FactoryListResponsePage{ + fn: getNextPage, + flr: cur, + } +} + +// FactoryProperties factory resource properties. +type FactoryProperties struct { + // ProvisioningState - READ-ONLY; Factory provisioning state, example Succeeded. + ProvisioningState *string `json:"provisioningState,omitempty"` + // CreateTime - READ-ONLY; Time the factory was created in ISO8601 format. + CreateTime *date.Time `json:"createTime,omitempty"` + // Version - READ-ONLY; Version of the factory. + Version *string `json:"version,omitempty"` + // PurviewConfiguration - Purview information of the factory. + PurviewConfiguration *PurviewConfiguration `json:"purviewConfiguration,omitempty"` + // RepoConfiguration - Git repo information of the factory. + RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` + // GlobalParameters - List of parameters for factory. + GlobalParameters map[string]*GlobalParameterSpecification `json:"globalParameters"` + // Encryption - Properties to enable Customer Managed Key for the factory. + Encryption *EncryptionConfiguration `json:"encryption,omitempty"` + // PublicNetworkAccess - Whether or not public network access is allowed for the data factory. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` +} + +// MarshalJSON is the custom marshaler for FactoryProperties. +func (fp FactoryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fp.PurviewConfiguration != nil { + objectMap["purviewConfiguration"] = fp.PurviewConfiguration + } + objectMap["repoConfiguration"] = fp.RepoConfiguration + if fp.GlobalParameters != nil { + objectMap["globalParameters"] = fp.GlobalParameters + } + if fp.Encryption != nil { + objectMap["encryption"] = fp.Encryption + } + if fp.PublicNetworkAccess != "" { + objectMap["publicNetworkAccess"] = fp.PublicNetworkAccess + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FactoryProperties struct. +func (fp *FactoryProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "provisioningState": + if v != nil { + var provisioningState string + err = json.Unmarshal(*v, &provisioningState) + if err != nil { + return err + } + fp.ProvisioningState = &provisioningState + } + case "createTime": + if v != nil { + var createTime date.Time + err = json.Unmarshal(*v, &createTime) + if err != nil { + return err + } + fp.CreateTime = &createTime + } + case "version": + if v != nil { + var version string + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + fp.Version = &version + } + case "purviewConfiguration": + if v != nil { + var purviewConfiguration PurviewConfiguration + err = json.Unmarshal(*v, &purviewConfiguration) + if err != nil { + return err + } + fp.PurviewConfiguration = &purviewConfiguration + } + case "repoConfiguration": + if v != nil { + repoConfiguration, err := unmarshalBasicFactoryRepoConfiguration(*v) + if err != nil { + return err + } + fp.RepoConfiguration = repoConfiguration + } + case "globalParameters": + if v != nil { + var globalParameters map[string]*GlobalParameterSpecification + err = json.Unmarshal(*v, &globalParameters) + if err != nil { + return err + } + fp.GlobalParameters = globalParameters + } + case "encryption": + if v != nil { + var encryption EncryptionConfiguration + err = json.Unmarshal(*v, &encryption) + if err != nil { + return err + } + fp.Encryption = &encryption + } + case "publicNetworkAccess": + if v != nil { + var publicNetworkAccess PublicNetworkAccess + err = json.Unmarshal(*v, &publicNetworkAccess) + if err != nil { + return err + } + fp.PublicNetworkAccess = publicNetworkAccess + } + } + } + + return nil +} + +// BasicFactoryRepoConfiguration factory's git repo information. +type BasicFactoryRepoConfiguration interface { + AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) + AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) + AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) +} + +// FactoryRepoConfiguration factory's git repo information. +type FactoryRepoConfiguration struct { + // AccountName - Account name. + AccountName *string `json:"accountName,omitempty"` + // RepositoryName - Repository name. + RepositoryName *string `json:"repositoryName,omitempty"` + // CollaborationBranch - Collaboration branch. + CollaborationBranch *string `json:"collaborationBranch,omitempty"` + // RootFolder - Root folder. + RootFolder *string `json:"rootFolder,omitempty"` + // LastCommitID - Last commit id. + LastCommitID *string `json:"lastCommitId,omitempty"` + // DisablePublish - Disable manual publish operation in ADF studio to favor automated publish. + DisablePublish *bool `json:"disablePublish,omitempty"` + // Type - Possible values include: 'TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration' + Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` +} + +func unmarshalBasicFactoryRepoConfiguration(body []byte) (BasicFactoryRepoConfiguration, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration): + var fvc FactoryVSTSConfiguration + err := json.Unmarshal(body, &fvc) + return fvc, err + case string(TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration): + var fghc FactoryGitHubConfiguration + err := json.Unmarshal(body, &fghc) + return fghc, err + default: + var frc FactoryRepoConfiguration + err := json.Unmarshal(body, &frc) + return frc, err + } +} +func unmarshalBasicFactoryRepoConfigurationArray(body []byte) ([]BasicFactoryRepoConfiguration, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + frcArray := make([]BasicFactoryRepoConfiguration, len(rawMessages)) + + for index, rawMessage := range rawMessages { + frc, err := unmarshalBasicFactoryRepoConfiguration(*rawMessage) + if err != nil { + return nil, err + } + frcArray[index] = frc + } + return frcArray, nil +} + +// MarshalJSON is the custom marshaler for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) MarshalJSON() ([]byte, error) { + frc.Type = TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration + objectMap := make(map[string]interface{}) + if frc.AccountName != nil { + objectMap["accountName"] = frc.AccountName + } + if frc.RepositoryName != nil { + objectMap["repositoryName"] = frc.RepositoryName + } + if frc.CollaborationBranch != nil { + objectMap["collaborationBranch"] = frc.CollaborationBranch + } + if frc.RootFolder != nil { + objectMap["rootFolder"] = frc.RootFolder + } + if frc.LastCommitID != nil { + objectMap["lastCommitId"] = frc.LastCommitID + } + if frc.DisablePublish != nil { + objectMap["disablePublish"] = frc.DisablePublish + } + if frc.Type != "" { + objectMap["type"] = frc.Type + } + return json.Marshal(objectMap) +} + +// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { + return nil, false +} + +// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { + return nil, false +} + +// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { + return &frc, true +} + +// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. +func (frc FactoryRepoConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { + return &frc, true +} + +// FactoryRepoUpdate factory's git repo information. +type FactoryRepoUpdate struct { + // FactoryResourceID - The factory resource id. + FactoryResourceID *string `json:"factoryResourceId,omitempty"` + // RepoConfiguration - Git repo information of the factory. + RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for FactoryRepoUpdate struct. +func (fru *FactoryRepoUpdate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "factoryResourceId": + if v != nil { + var factoryResourceID string + err = json.Unmarshal(*v, &factoryResourceID) + if err != nil { + return err + } + fru.FactoryResourceID = &factoryResourceID + } + case "repoConfiguration": + if v != nil { + repoConfiguration, err := unmarshalBasicFactoryRepoConfiguration(*v) + if err != nil { + return err + } + fru.RepoConfiguration = repoConfiguration + } + } + } + + return nil +} + +// FactoryUpdateParameters parameters for updating a factory resource. +type FactoryUpdateParameters struct { + // Tags - The resource tags. + Tags map[string]*string `json:"tags"` + // Identity - Managed service identity of the factory. + Identity *FactoryIdentity `json:"identity,omitempty"` + // FactoryUpdateProperties - Properties of update the factory. + *FactoryUpdateProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for FactoryUpdateParameters. +func (fup FactoryUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if fup.Tags != nil { + objectMap["tags"] = fup.Tags + } + if fup.Identity != nil { + objectMap["identity"] = fup.Identity + } + if fup.FactoryUpdateProperties != nil { + objectMap["properties"] = fup.FactoryUpdateProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for FactoryUpdateParameters struct. +func (fup *FactoryUpdateParameters) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + fup.Tags = tags + } + case "identity": + if v != nil { + var identity FactoryIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + fup.Identity = &identity + } + case "properties": + if v != nil { + var factoryUpdateProperties FactoryUpdateProperties + err = json.Unmarshal(*v, &factoryUpdateProperties) + if err != nil { + return err + } + fup.FactoryUpdateProperties = &factoryUpdateProperties + } + } + } + + return nil +} + +// FactoryUpdateProperties factory update resource properties. +type FactoryUpdateProperties struct { + // PublicNetworkAccess - Whether or not public network access is allowed for the data factory. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' + PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` +} + +// FactoryVSTSConfiguration factory's VSTS repo information. +type FactoryVSTSConfiguration struct { + // ProjectName - VSTS project name. + ProjectName *string `json:"projectName,omitempty"` + // TenantID - VSTS tenant id. + TenantID *string `json:"tenantId,omitempty"` + // AccountName - Account name. + AccountName *string `json:"accountName,omitempty"` + // RepositoryName - Repository name. + RepositoryName *string `json:"repositoryName,omitempty"` + // CollaborationBranch - Collaboration branch. + CollaborationBranch *string `json:"collaborationBranch,omitempty"` + // RootFolder - Root folder. + RootFolder *string `json:"rootFolder,omitempty"` + // LastCommitID - Last commit id. + LastCommitID *string `json:"lastCommitId,omitempty"` + // DisablePublish - Disable manual publish operation in ADF studio to favor automated publish. + DisablePublish *bool `json:"disablePublish,omitempty"` + // Type - Possible values include: 'TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration' + Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) MarshalJSON() ([]byte, error) { + fvc.Type = TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration + objectMap := make(map[string]interface{}) + if fvc.ProjectName != nil { + objectMap["projectName"] = fvc.ProjectName + } + if fvc.TenantID != nil { + objectMap["tenantId"] = fvc.TenantID + } + if fvc.AccountName != nil { + objectMap["accountName"] = fvc.AccountName + } + if fvc.RepositoryName != nil { + objectMap["repositoryName"] = fvc.RepositoryName + } + if fvc.CollaborationBranch != nil { + objectMap["collaborationBranch"] = fvc.CollaborationBranch + } + if fvc.RootFolder != nil { + objectMap["rootFolder"] = fvc.RootFolder + } + if fvc.LastCommitID != nil { + objectMap["lastCommitId"] = fvc.LastCommitID + } + if fvc.DisablePublish != nil { + objectMap["disablePublish"] = fvc.DisablePublish + } + if fvc.Type != "" { + objectMap["type"] = fvc.Type + } + return json.Marshal(objectMap) +} + +// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { + return &fvc, true +} + +// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { + return nil, false +} + +// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { + return nil, false +} + +// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. +func (fvc FactoryVSTSConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { + return &fvc, true +} + +// FailActivity this activity will fail within its own scope and output a custom error message and error +// code. The error message and code can provided either as a string literal or as an expression that can be +// evaluated to a string at runtime. The activity scope can be the whole pipeline or a control activity +// (e.g. foreach, switch, until), if the fail activity is contained in it. +type FailActivity struct { + // FailActivityTypeProperties - Fail activity properties. + *FailActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FailActivity. +func (fa FailActivity) MarshalJSON() ([]byte, error) { + fa.Type = TypeBasicActivityTypeFail + objectMap := make(map[string]interface{}) + if fa.FailActivityTypeProperties != nil { + objectMap["typeProperties"] = fa.FailActivityTypeProperties + } + if fa.Name != nil { + objectMap["name"] = fa.Name + } + if fa.Description != nil { + objectMap["description"] = fa.Description + } + if fa.State != "" { + objectMap["state"] = fa.State + } + if fa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = fa.OnInactiveMarkAs + } + if fa.DependsOn != nil { + objectMap["dependsOn"] = fa.DependsOn + } + if fa.UserProperties != nil { + objectMap["userProperties"] = fa.UserProperties + } + if fa.Type != "" { + objectMap["type"] = fa.Type + } + for k, v := range fa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsFailActivity() (*FailActivity, bool) { + return &fa, true +} + +// AsWaitActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &fa, true +} + +// AsActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for FailActivity. +func (fa FailActivity) AsBasicActivity() (BasicActivity, bool) { + return &fa, true +} + +// UnmarshalJSON is the custom unmarshaler for FailActivity struct. +func (fa *FailActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var failActivityTypeProperties FailActivityTypeProperties + err = json.Unmarshal(*v, &failActivityTypeProperties) + if err != nil { + return err + } + fa.FailActivityTypeProperties = &failActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fa.AdditionalProperties == nil { + fa.AdditionalProperties = make(map[string]interface{}) + } + fa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + fa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + fa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + fa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + fa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + fa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fa.Type = typeVar + } + } + } + + return nil +} + +// FailActivityTypeProperties fail activity properties. +type FailActivityTypeProperties struct { + // Message - 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"` + // ErrorCode - 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"` +} + +// FileServerLinkedService file system linked service. +type FileServerLinkedService struct { + // FileServerLinkedServiceTypeProperties - File system linked service properties. + *FileServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileServerLinkedService. +func (fsls FileServerLinkedService) MarshalJSON() ([]byte, error) { + fsls.Type = TypeBasicLinkedServiceTypeFileServer + objectMap := make(map[string]interface{}) + if fsls.FileServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = fsls.FileServerLinkedServiceTypeProperties + } + if fsls.ConnectVia != nil { + objectMap["connectVia"] = fsls.ConnectVia + } + if fsls.Description != nil { + objectMap["description"] = fsls.Description + } + if fsls.Parameters != nil { + objectMap["parameters"] = fsls.Parameters + } + if fsls.Annotations != nil { + objectMap["annotations"] = fsls.Annotations + } + if fsls.Type != "" { + objectMap["type"] = fsls.Type + } + for k, v := range fsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return &fsls, true +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for FileServerLinkedService. +func (fsls FileServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &fsls, true +} + +// UnmarshalJSON is the custom unmarshaler for FileServerLinkedService struct. +func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var fileServerLinkedServiceTypeProperties FileServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &fileServerLinkedServiceTypeProperties) + if err != nil { + return err + } + fsls.FileServerLinkedServiceTypeProperties = &fileServerLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsls.AdditionalProperties == nil { + fsls.AdditionalProperties = make(map[string]interface{}) + } + fsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + fsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + fsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + fsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + fsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsls.Type = typeVar + } + } + } + + return nil +} + +// FileServerLinkedServiceTypeProperties file system linked service properties. +type FileServerLinkedServiceTypeProperties struct { + // Host - Host name of the server. Type: string (or Expression with resultType string). + Host interface{} `json:"host,omitempty"` + // UserID - User ID to logon the server. Type: string (or Expression with resultType string). + UserID interface{} `json:"userId,omitempty"` + // Password - Password to logon the server. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for FileServerLinkedServiceTypeProperties struct. +func (fslstp *FileServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + fslstp.Host = host + } + case "userId": + if v != nil { + var userID interface{} + err = json.Unmarshal(*v, &userID) + if err != nil { + return err + } + fslstp.UserID = userID + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + fslstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + fslstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// FileServerLocation the location of file server dataset. +type FileServerLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileServerLocation. +func (fsl FileServerLocation) MarshalJSON() ([]byte, error) { + fsl.Type = TypeBasicDatasetLocationTypeFileServerLocation + objectMap := make(map[string]interface{}) + if fsl.FolderPath != nil { + objectMap["folderPath"] = fsl.FolderPath + } + if fsl.FileName != nil { + objectMap["fileName"] = fsl.FileName + } + if fsl.Type != "" { + objectMap["type"] = fsl.Type + } + for k, v := range fsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return &fsl, true +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for FileServerLocation. +func (fsl FileServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &fsl, true +} + +// UnmarshalJSON is the custom unmarshaler for FileServerLocation struct. +func (fsl *FileServerLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsl.AdditionalProperties == nil { + fsl.AdditionalProperties = make(map[string]interface{}) + } + fsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + fsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + fsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsl.Type = typeVar + } + } + } + + return nil +} + +// FileServerReadSettings file server read settings. +type FileServerReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - FileServer wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - FileServer wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // FileFilter - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileServerReadSettings. +func (fsrs FileServerReadSettings) MarshalJSON() ([]byte, error) { + fsrs.Type = TypeBasicStoreReadSettingsTypeFileServerReadSettings + objectMap := make(map[string]interface{}) + if fsrs.Recursive != nil { + objectMap["recursive"] = fsrs.Recursive + } + if fsrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = fsrs.WildcardFolderPath + } + if fsrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = fsrs.WildcardFileName + } + if fsrs.FileListPath != nil { + objectMap["fileListPath"] = fsrs.FileListPath + } + if fsrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = fsrs.EnablePartitionDiscovery + } + if fsrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = fsrs.PartitionRootPath + } + if fsrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = fsrs.DeleteFilesAfterCompletion + } + if fsrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = fsrs.ModifiedDatetimeStart + } + if fsrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = fsrs.ModifiedDatetimeEnd + } + if fsrs.FileFilter != nil { + objectMap["fileFilter"] = fsrs.FileFilter + } + if fsrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = fsrs.MaxConcurrentConnections + } + if fsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = fsrs.DisableMetricsCollection + } + if fsrs.Type != "" { + objectMap["type"] = fsrs.Type + } + for k, v := range fsrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return &fsrs, true +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. +func (fsrs FileServerReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &fsrs, true +} + +// UnmarshalJSON is the custom unmarshaler for FileServerReadSettings struct. +func (fsrs *FileServerReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + fsrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + fsrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + fsrs.WildcardFileName = wildcardFileName + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + fsrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + fsrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + fsrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + fsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + fsrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + fsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "fileFilter": + if v != nil { + var fileFilter interface{} + err = json.Unmarshal(*v, &fileFilter) + if err != nil { + return err + } + fsrs.FileFilter = fileFilter + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsrs.AdditionalProperties == nil { + fsrs.AdditionalProperties = make(map[string]interface{}) + } + fsrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + fsrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + fsrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsrs.Type = typeVar + } + } + } + + return nil +} + +// FileServerWriteSettings file server write settings. +type FileServerWriteSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileServerWriteSettings. +func (fsws FileServerWriteSettings) MarshalJSON() ([]byte, error) { + fsws.Type = TypeBasicStoreWriteSettingsTypeFileServerWriteSettings + objectMap := make(map[string]interface{}) + if fsws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = fsws.MaxConcurrentConnections + } + if fsws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = fsws.DisableMetricsCollection + } + if fsws.CopyBehavior != nil { + objectMap["copyBehavior"] = fsws.CopyBehavior + } + if fsws.Metadata != nil { + objectMap["metadata"] = fsws.Metadata + } + if fsws.Type != "" { + objectMap["type"] = fsws.Type + } + for k, v := range fsws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { + return nil, false +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return &fsws, true +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. +func (fsws FileServerWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &fsws, true +} + +// UnmarshalJSON is the custom unmarshaler for FileServerWriteSettings struct. +func (fsws *FileServerWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsws.AdditionalProperties == nil { + fsws.AdditionalProperties = make(map[string]interface{}) + } + fsws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + fsws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + fsws.DisableMetricsCollection = disableMetricsCollection + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + fsws.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + fsws.Metadata = &metadata + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsws.Type = typeVar + } + } + } + + return nil +} + +// FileShareDataset an on-premises file system dataset. +type FileShareDataset struct { + // FileShareDatasetTypeProperties - On-premises file system dataset properties. + *FileShareDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileShareDataset. +func (fsd FileShareDataset) MarshalJSON() ([]byte, error) { + fsd.Type = TypeBasicDatasetTypeFileShare + objectMap := make(map[string]interface{}) + if fsd.FileShareDatasetTypeProperties != nil { + objectMap["typeProperties"] = fsd.FileShareDatasetTypeProperties + } + if fsd.Description != nil { + objectMap["description"] = fsd.Description + } + if fsd.Structure != nil { + objectMap["structure"] = fsd.Structure + } + if fsd.Schema != nil { + objectMap["schema"] = fsd.Schema + } + if fsd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = fsd.LinkedServiceName + } + if fsd.Parameters != nil { + objectMap["parameters"] = fsd.Parameters + } + if fsd.Annotations != nil { + objectMap["annotations"] = fsd.Annotations + } + if fsd.Folder != nil { + objectMap["folder"] = fsd.Folder + } + if fsd.Type != "" { + objectMap["type"] = fsd.Type + } + for k, v := range fsd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return &fsd, true +} + +// AsOffice365Dataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for FileShareDataset. +func (fsd FileShareDataset) AsBasicDataset() (BasicDataset, bool) { + return &fsd, true +} + +// UnmarshalJSON is the custom unmarshaler for FileShareDataset struct. +func (fsd *FileShareDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var fileShareDatasetTypeProperties FileShareDatasetTypeProperties + err = json.Unmarshal(*v, &fileShareDatasetTypeProperties) + if err != nil { + return err + } + fsd.FileShareDatasetTypeProperties = &fileShareDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsd.AdditionalProperties == nil { + fsd.AdditionalProperties = make(map[string]interface{}) + } + fsd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + fsd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + fsd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + fsd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + fsd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + fsd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + fsd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + fsd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsd.Type = typeVar + } + } + } + + return nil +} + +// FileShareDatasetTypeProperties on-premises file system dataset properties. +type FileShareDatasetTypeProperties struct { + // FolderPath - The path of the on-premises file system. Type: string (or Expression with resultType string). + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - The name of the on-premises file system. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // Format - The format of the files. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // FileFilter - 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"` + // Compression - The data compression method used for the file system. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for FileShareDatasetTypeProperties struct. +func (fsdtp *FileShareDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + fsdtp.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + fsdtp.FileName = fileName + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + fsdtp.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + fsdtp.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "format": + if v != nil { + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + if err != nil { + return err + } + fsdtp.Format = formatVar + } + case "fileFilter": + if v != nil { + var fileFilter interface{} + err = json.Unmarshal(*v, &fileFilter) + if err != nil { + return err + } + fsdtp.FileFilter = fileFilter + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + fsdtp.Compression = &compression + } + } + } + + return nil +} + +// FileSystemSink a copy activity file system sink. +type FileSystemSink struct { + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileSystemSink. +func (fss FileSystemSink) MarshalJSON() ([]byte, error) { + fss.Type = TypeBasicCopySinkTypeFileSystemSink + objectMap := make(map[string]interface{}) + if fss.CopyBehavior != nil { + objectMap["copyBehavior"] = fss.CopyBehavior + } + if fss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = fss.WriteBatchSize + } + if fss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = fss.WriteBatchTimeout + } + if fss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = fss.SinkRetryCount + } + if fss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = fss.SinkRetryWait + } + if fss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections + } + if fss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = fss.DisableMetricsCollection + } + if fss.Type != "" { + objectMap["type"] = fss.Type + } + for k, v := range fss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsFileSystemSink() (*FileSystemSink, bool) { + return &fss, true +} + +// AsBlobSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for FileSystemSink. +func (fss FileSystemSink) AsBasicCopySink() (BasicCopySink, bool) { + return &fss, true +} + +// UnmarshalJSON is the custom unmarshaler for FileSystemSink struct. +func (fss *FileSystemSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + fss.CopyBehavior = copyBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fss.AdditionalProperties == nil { + fss.AdditionalProperties = make(map[string]interface{}) + } + fss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + fss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + fss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + fss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + fss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + fss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + fss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fss.Type = typeVar + } + } + } + + return nil +} + +// FileSystemSource a copy activity file system source. +type FileSystemSource struct { + // Recursive - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FileSystemSource. +func (fss FileSystemSource) MarshalJSON() ([]byte, error) { + fss.Type = TypeBasicCopySourceTypeFileSystemSource + objectMap := make(map[string]interface{}) + if fss.Recursive != nil { + objectMap["recursive"] = fss.Recursive + } + if fss.AdditionalColumns != nil { + objectMap["additionalColumns"] = fss.AdditionalColumns + } + if fss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = fss.SourceRetryCount + } + if fss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = fss.SourceRetryWait + } + if fss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections + } + if fss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = fss.DisableMetricsCollection + } + if fss.Type != "" { + objectMap["type"] = fss.Type + } + for k, v := range fss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsFileSystemSource() (*FileSystemSource, bool) { + return &fss, true +} + +// AsRestSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for FileSystemSource. +func (fss FileSystemSource) AsBasicCopySource() (BasicCopySource, bool) { + return &fss, true +} + +// UnmarshalJSON is the custom unmarshaler for FileSystemSource struct. +func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + fss.Recursive = recursive + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + fss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fss.AdditionalProperties == nil { + fss.AdditionalProperties = make(map[string]interface{}) + } + fss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + fss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + fss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + fss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + fss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fss.Type = typeVar + } + } + } + + return nil +} + +// FilterActivity filter and return results from input array based on the conditions. +type FilterActivity struct { + // FilterActivityTypeProperties - Filter activity properties. + *FilterActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FilterActivity. +func (fa FilterActivity) MarshalJSON() ([]byte, error) { + fa.Type = TypeBasicActivityTypeFilter + objectMap := make(map[string]interface{}) + if fa.FilterActivityTypeProperties != nil { + objectMap["typeProperties"] = fa.FilterActivityTypeProperties + } + if fa.Name != nil { + objectMap["name"] = fa.Name + } + if fa.Description != nil { + objectMap["description"] = fa.Description + } + if fa.State != "" { + objectMap["state"] = fa.State + } + if fa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = fa.OnInactiveMarkAs + } + if fa.DependsOn != nil { + objectMap["dependsOn"] = fa.DependsOn + } + if fa.UserProperties != nil { + objectMap["userProperties"] = fa.UserProperties + } + if fa.Type != "" { + objectMap["type"] = fa.Type + } + for k, v := range fa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsFilterActivity() (*FilterActivity, bool) { + return &fa, true +} + +// AsValidationActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &fa, true +} + +// AsActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for FilterActivity. +func (fa FilterActivity) AsBasicActivity() (BasicActivity, bool) { + return &fa, true +} + +// UnmarshalJSON is the custom unmarshaler for FilterActivity struct. +func (fa *FilterActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var filterActivityTypeProperties FilterActivityTypeProperties + err = json.Unmarshal(*v, &filterActivityTypeProperties) + if err != nil { + return err + } + fa.FilterActivityTypeProperties = &filterActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fa.AdditionalProperties == nil { + fa.AdditionalProperties = make(map[string]interface{}) + } + fa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + fa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + fa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + fa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + fa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + fa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fa.Type = typeVar + } + } + } + + return nil +} + +// FilterActivityTypeProperties filter activity properties. +type FilterActivityTypeProperties struct { + // Items - Input array on which filter should be applied. + Items *Expression `json:"items,omitempty"` + // Condition - Condition to be used for filtering the input. + Condition *Expression `json:"condition,omitempty"` +} + +// Flowlet data flow flowlet +type Flowlet struct { + // FlowletTypeProperties - Flowlet type properties. + *FlowletTypeProperties `json:"typeProperties,omitempty"` + // Description - The description of the data flow. + Description *string `json:"description,omitempty"` + // Annotations - List of tags that can be used for describing the data flow. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. + Folder *DataFlowFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDataFlowTypeDataFlow', 'TypeBasicDataFlowTypeWranglingDataFlow', 'TypeBasicDataFlowTypeFlowlet', 'TypeBasicDataFlowTypeMappingDataFlow' + Type TypeBasicDataFlow `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Flowlet. +func (f Flowlet) MarshalJSON() ([]byte, error) { + f.Type = TypeBasicDataFlowTypeFlowlet + objectMap := make(map[string]interface{}) + if f.FlowletTypeProperties != nil { + objectMap["typeProperties"] = f.FlowletTypeProperties + } + if f.Description != nil { + objectMap["description"] = f.Description + } + if f.Annotations != nil { + objectMap["annotations"] = f.Annotations + } + if f.Folder != nil { + objectMap["folder"] = f.Folder + } + if f.Type != "" { + objectMap["type"] = f.Type + } + return json.Marshal(objectMap) +} + +// AsWranglingDataFlow is the BasicDataFlow implementation for Flowlet. +func (f Flowlet) AsWranglingDataFlow() (*WranglingDataFlow, bool) { + return nil, false +} + +// AsFlowlet is the BasicDataFlow implementation for Flowlet. +func (f Flowlet) AsFlowlet() (*Flowlet, bool) { + return &f, true +} + +// AsMappingDataFlow is the BasicDataFlow implementation for Flowlet. +func (f Flowlet) AsMappingDataFlow() (*MappingDataFlow, bool) { + return nil, false +} + +// AsDataFlow is the BasicDataFlow implementation for Flowlet. +func (f Flowlet) AsDataFlow() (*DataFlow, bool) { + return nil, false +} + +// AsBasicDataFlow is the BasicDataFlow implementation for Flowlet. +func (f Flowlet) AsBasicDataFlow() (BasicDataFlow, bool) { + return &f, true +} + +// UnmarshalJSON is the custom unmarshaler for Flowlet struct. +func (f *Flowlet) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var flowletTypeProperties FlowletTypeProperties + err = json.Unmarshal(*v, &flowletTypeProperties) + if err != nil { + return err + } + f.FlowletTypeProperties = &flowletTypeProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + f.Description = &description + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + f.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DataFlowFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + f.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataFlow + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + f.Type = typeVar + } + } + } + + return nil +} + +// FlowletTypeProperties flowlet type properties. +type FlowletTypeProperties struct { + // Sources - List of sources in Flowlet. + Sources *[]DataFlowSource `json:"sources,omitempty"` + // Sinks - List of sinks in Flowlet. + Sinks *[]DataFlowSink `json:"sinks,omitempty"` + // Transformations - List of transformations in Flowlet. + Transformations *[]Transformation `json:"transformations,omitempty"` + // Script - Flowlet script. + Script *string `json:"script,omitempty"` + // ScriptLines - Flowlet script lines. + ScriptLines *[]string `json:"scriptLines,omitempty"` +} + +// ForEachActivity this activity is used for iterating over a collection and execute given activities. +type ForEachActivity struct { + // ForEachActivityTypeProperties - ForEach activity properties. + *ForEachActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ForEachActivity. +func (fea ForEachActivity) MarshalJSON() ([]byte, error) { + fea.Type = TypeBasicActivityTypeForEach + objectMap := make(map[string]interface{}) + if fea.ForEachActivityTypeProperties != nil { + objectMap["typeProperties"] = fea.ForEachActivityTypeProperties + } + if fea.Name != nil { + objectMap["name"] = fea.Name + } + if fea.Description != nil { + objectMap["description"] = fea.Description + } + if fea.State != "" { + objectMap["state"] = fea.State + } + if fea.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = fea.OnInactiveMarkAs + } + if fea.DependsOn != nil { + objectMap["dependsOn"] = fea.DependsOn + } + if fea.UserProperties != nil { + objectMap["userProperties"] = fea.UserProperties + } + if fea.Type != "" { + objectMap["type"] = fea.Type + } + for k, v := range fea.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsForEachActivity() (*ForEachActivity, bool) { + return &fea, true +} + +// AsSwitchActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &fea, true +} + +// AsActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ForEachActivity. +func (fea ForEachActivity) AsBasicActivity() (BasicActivity, bool) { + return &fea, true +} + +// UnmarshalJSON is the custom unmarshaler for ForEachActivity struct. +func (fea *ForEachActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var forEachActivityTypeProperties ForEachActivityTypeProperties + err = json.Unmarshal(*v, &forEachActivityTypeProperties) + if err != nil { + return err + } + fea.ForEachActivityTypeProperties = &forEachActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fea.AdditionalProperties == nil { + fea.AdditionalProperties = make(map[string]interface{}) + } + fea.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + fea.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + fea.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + fea.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + fea.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + fea.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + fea.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fea.Type = typeVar + } + } + } + + return nil +} + +// ForEachActivityTypeProperties forEach activity properties. +type ForEachActivityTypeProperties struct { + // IsSequential - Should the loop be executed in sequence or in parallel (max 50) + IsSequential *bool `json:"isSequential,omitempty"` + // BatchCount - Batch count to be used for controlling the number of parallel execution (when isSequential is set to false). + BatchCount *int32 `json:"batchCount,omitempty"` + // Items - Collection to iterate. + Items *Expression `json:"items,omitempty"` + // Activities - List of activities to execute . + Activities *[]BasicActivity `json:"activities,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ForEachActivityTypeProperties struct. +func (featp *ForEachActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "isSequential": + if v != nil { + var isSequential bool + err = json.Unmarshal(*v, &isSequential) + if err != nil { + return err + } + featp.IsSequential = &isSequential + } + case "batchCount": + if v != nil { + var batchCount int32 + err = json.Unmarshal(*v, &batchCount) + if err != nil { + return err + } + featp.BatchCount = &batchCount + } + case "items": + if v != nil { + var items Expression + err = json.Unmarshal(*v, &items) + if err != nil { + return err + } + featp.Items = &items + } + case "activities": + if v != nil { + activities, err := unmarshalBasicActivityArray(*v) + if err != nil { + return err + } + featp.Activities = &activities + } + } + } + + return nil +} + +// BasicFormatReadSettings format read settings. +type BasicFormatReadSettings interface { + AsBinaryReadSettings() (*BinaryReadSettings, bool) + AsXMLReadSettings() (*XMLReadSettings, bool) + AsJSONReadSettings() (*JSONReadSettings, bool) + AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) + AsParquetReadSettings() (*ParquetReadSettings, bool) + AsFormatReadSettings() (*FormatReadSettings, bool) +} + +// FormatReadSettings format read settings. +type FormatReadSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` +} + +func unmarshalBasicFormatReadSettings(body []byte) (BasicFormatReadSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicFormatReadSettingsTypeBinaryReadSettings): + var brs BinaryReadSettings + err := json.Unmarshal(body, &brs) + return brs, err + case string(TypeBasicFormatReadSettingsTypeXMLReadSettings): + var xrs XMLReadSettings + err := json.Unmarshal(body, &xrs) + return xrs, err + case string(TypeBasicFormatReadSettingsTypeJSONReadSettings): + var jrs JSONReadSettings + err := json.Unmarshal(body, &jrs) + return jrs, err + case string(TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings): + var dtrs DelimitedTextReadSettings + err := json.Unmarshal(body, &dtrs) + return dtrs, err + case string(TypeBasicFormatReadSettingsTypeParquetReadSettings): + var prs ParquetReadSettings + err := json.Unmarshal(body, &prs) + return prs, err + default: + var frs FormatReadSettings + err := json.Unmarshal(body, &frs) + return frs, err + } +} +func unmarshalBasicFormatReadSettingsArray(body []byte) ([]BasicFormatReadSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + frsArray := make([]BasicFormatReadSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + frs, err := unmarshalBasicFormatReadSettings(*rawMessage) + if err != nil { + return nil, err + } + frsArray[index] = frs + } + return frsArray, nil +} + +// MarshalJSON is the custom marshaler for FormatReadSettings. +func (frs FormatReadSettings) MarshalJSON() ([]byte, error) { + frs.Type = TypeBasicFormatReadSettingsTypeFormatReadSettings + objectMap := make(map[string]interface{}) + if frs.Type != "" { + objectMap["type"] = frs.Type + } + for k, v := range frs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { + return nil, false +} + +// AsXMLReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { + return nil, false +} + +// AsJSONReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { + return nil, false +} + +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { + return nil, false +} + +// AsParquetReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { + return nil, false +} + +// AsFormatReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { + return &frs, true +} + +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. +func (frs FormatReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &frs, true +} + +// UnmarshalJSON is the custom unmarshaler for FormatReadSettings struct. +func (frs *FormatReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if frs.AdditionalProperties == nil { + frs.AdditionalProperties = make(map[string]interface{}) + } + frs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + frs.Type = typeVar + } + } + } + + return nil +} + +// BasicFormatWriteSettings format write settings. +type BasicFormatWriteSettings interface { + AsJSONWriteSettings() (*JSONWriteSettings, bool) + AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) + AsOrcWriteSettings() (*OrcWriteSettings, bool) + AsAvroWriteSettings() (*AvroWriteSettings, bool) + AsParquetWriteSettings() (*ParquetWriteSettings, bool) + AsFormatWriteSettings() (*FormatWriteSettings, bool) +} + +// FormatWriteSettings format write settings. +type FormatWriteSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` +} + +func unmarshalBasicFormatWriteSettings(body []byte) (BasicFormatWriteSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicFormatWriteSettingsTypeJSONWriteSettings): + var jws JSONWriteSettings + err := json.Unmarshal(body, &jws) + return jws, err + case string(TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings): + var dtws DelimitedTextWriteSettings + err := json.Unmarshal(body, &dtws) + return dtws, err + case string(TypeBasicFormatWriteSettingsTypeOrcWriteSettings): + var ows OrcWriteSettings + err := json.Unmarshal(body, &ows) + return ows, err + case string(TypeBasicFormatWriteSettingsTypeAvroWriteSettings): + var aws AvroWriteSettings + err := json.Unmarshal(body, &aws) + return aws, err + case string(TypeBasicFormatWriteSettingsTypeParquetWriteSettings): + var pws ParquetWriteSettings + err := json.Unmarshal(body, &pws) + return pws, err + default: + var fws FormatWriteSettings + err := json.Unmarshal(body, &fws) + return fws, err + } +} +func unmarshalBasicFormatWriteSettingsArray(body []byte) ([]BasicFormatWriteSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + fwsArray := make([]BasicFormatWriteSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + fws, err := unmarshalBasicFormatWriteSettings(*rawMessage) + if err != nil { + return nil, err + } + fwsArray[index] = fws + } + return fwsArray, nil +} + +// MarshalJSON is the custom marshaler for FormatWriteSettings. +func (fws FormatWriteSettings) MarshalJSON() ([]byte, error) { + fws.Type = TypeBasicFormatWriteSettingsTypeFormatWriteSettings + objectMap := make(map[string]interface{}) + if fws.Type != "" { + objectMap["type"] = fws.Type + } + for k, v := range fws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { + return nil, false +} + +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { + return nil, false +} + +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { + return nil, false +} + +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { + return nil, false +} + +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { + return nil, false +} + +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return &fws, true +} + +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. +func (fws FormatWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &fws, true +} + +// UnmarshalJSON is the custom unmarshaler for FormatWriteSettings struct. +func (fws *FormatWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fws.AdditionalProperties == nil { + fws.AdditionalProperties = make(map[string]interface{}) + } + fws.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fws.Type = typeVar + } + } + } + + return nil +} + +// FtpReadSettings ftp read settings. +type FtpReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Ftp wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Ftp wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // FileListPath - 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"` + // UseBinaryTransfer - Specify whether to use binary transfer mode for FTP stores. Type: boolean (or Expression with resultType boolean). + UseBinaryTransfer interface{} `json:"useBinaryTransfer,omitempty"` + // DisableChunking - If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). + DisableChunking interface{} `json:"disableChunking,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FtpReadSettings. +func (frs FtpReadSettings) MarshalJSON() ([]byte, error) { + frs.Type = TypeBasicStoreReadSettingsTypeFtpReadSettings + objectMap := make(map[string]interface{}) + if frs.Recursive != nil { + objectMap["recursive"] = frs.Recursive + } + if frs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = frs.WildcardFolderPath + } + if frs.WildcardFileName != nil { + objectMap["wildcardFileName"] = frs.WildcardFileName + } + if frs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = frs.EnablePartitionDiscovery + } + if frs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = frs.PartitionRootPath + } + if frs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = frs.DeleteFilesAfterCompletion + } + if frs.FileListPath != nil { + objectMap["fileListPath"] = frs.FileListPath + } + if frs.UseBinaryTransfer != nil { + objectMap["useBinaryTransfer"] = frs.UseBinaryTransfer + } + if frs.DisableChunking != nil { + objectMap["disableChunking"] = frs.DisableChunking + } + if frs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = frs.MaxConcurrentConnections + } + if frs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = frs.DisableMetricsCollection + } + if frs.Type != "" { + objectMap["type"] = frs.Type + } + for k, v := range frs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return &frs, true +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. +func (frs FtpReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &frs, true +} + +// UnmarshalJSON is the custom unmarshaler for FtpReadSettings struct. +func (frs *FtpReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + frs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + frs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + frs.WildcardFileName = wildcardFileName + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + frs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + frs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + frs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + frs.FileListPath = fileListPath + } + case "useBinaryTransfer": + if v != nil { + var useBinaryTransfer interface{} + err = json.Unmarshal(*v, &useBinaryTransfer) + if err != nil { + return err + } + frs.UseBinaryTransfer = useBinaryTransfer + } + case "disableChunking": + if v != nil { + var disableChunking interface{} + err = json.Unmarshal(*v, &disableChunking) + if err != nil { + return err + } + frs.DisableChunking = disableChunking + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if frs.AdditionalProperties == nil { + frs.AdditionalProperties = make(map[string]interface{}) + } + frs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + frs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + frs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + frs.Type = typeVar + } + } + } + + return nil +} + +// FtpServerLinkedService a FTP server Linked Service. +type FtpServerLinkedService struct { + // FtpServerLinkedServiceTypeProperties - Properties specific to this linked service type. + *FtpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FtpServerLinkedService. +func (fsls FtpServerLinkedService) MarshalJSON() ([]byte, error) { + fsls.Type = TypeBasicLinkedServiceTypeFtpServer + objectMap := make(map[string]interface{}) + if fsls.FtpServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = fsls.FtpServerLinkedServiceTypeProperties + } + if fsls.ConnectVia != nil { + objectMap["connectVia"] = fsls.ConnectVia + } + if fsls.Description != nil { + objectMap["description"] = fsls.Description + } + if fsls.Parameters != nil { + objectMap["parameters"] = fsls.Parameters + } + if fsls.Annotations != nil { + objectMap["annotations"] = fsls.Annotations + } + if fsls.Type != "" { + objectMap["type"] = fsls.Type + } + for k, v := range fsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return &fsls, true +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. +func (fsls FtpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &fsls, true +} + +// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedService struct. +func (fsls *FtpServerLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var ftpServerLinkedServiceTypeProperties FtpServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &ftpServerLinkedServiceTypeProperties) + if err != nil { + return err + } + fsls.FtpServerLinkedServiceTypeProperties = &ftpServerLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsls.AdditionalProperties == nil { + fsls.AdditionalProperties = make(map[string]interface{}) + } + fsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + fsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + fsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + fsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + fsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsls.Type = typeVar + } + } + } + + return nil +} + +// FtpServerLinkedServiceTypeProperties properties specific to this linked service type. +type FtpServerLinkedServiceTypeProperties struct { + // Host - Host name of the FTP server. Type: string (or Expression with resultType string). + Host interface{} `json:"host,omitempty"` + // Port - 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"` + // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'FtpAuthenticationTypeBasic', 'FtpAuthenticationTypeAnonymous' + AuthenticationType FtpAuthenticationType `json:"authenticationType,omitempty"` + // UserName - Username to logon the FTP server. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to logon the FTP server. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // EnableSsl - 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"` + // EnableServerCertificateValidation - 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"` +} + +// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedServiceTypeProperties struct. +func (fslstp *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + fslstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + fslstp.Port = port + } + case "authenticationType": + if v != nil { + var authenticationType FtpAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + fslstp.AuthenticationType = authenticationType + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + fslstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + fslstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + fslstp.EncryptedCredential = &encryptedCredential + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + fslstp.EnableSsl = enableSsl + } + case "enableServerCertificateValidation": + if v != nil { + var enableServerCertificateValidation interface{} + err = json.Unmarshal(*v, &enableServerCertificateValidation) + if err != nil { + return err + } + fslstp.EnableServerCertificateValidation = enableServerCertificateValidation + } + } + } + + return nil +} + +// FtpServerLocation the location of ftp server dataset. +type FtpServerLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for FtpServerLocation. +func (fsl FtpServerLocation) MarshalJSON() ([]byte, error) { + fsl.Type = TypeBasicDatasetLocationTypeFtpServerLocation + objectMap := make(map[string]interface{}) + if fsl.FolderPath != nil { + objectMap["folderPath"] = fsl.FolderPath + } + if fsl.FileName != nil { + objectMap["fileName"] = fsl.FileName + } + if fsl.Type != "" { + objectMap["type"] = fsl.Type + } + for k, v := range fsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return &fsl, true +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for FtpServerLocation. +func (fsl FtpServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &fsl, true +} + +// UnmarshalJSON is the custom unmarshaler for FtpServerLocation struct. +func (fsl *FtpServerLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if fsl.AdditionalProperties == nil { + fsl.AdditionalProperties = make(map[string]interface{}) + } + fsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + fsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + fsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + fsl.Type = typeVar + } + } + } + + return nil +} + +// GenericDatasetTypeProperties properties specific to this dataset type. +type GenericDatasetTypeProperties struct { + // TableName - 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 { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Status - Status of the operation. + Status *string `json:"status,omitempty"` +} + +// MarshalJSON is the custom marshaler for GetDataFactoryOperationStatusResponse. +func (gdfosr GetDataFactoryOperationStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gdfosr.Status != nil { + objectMap["status"] = gdfosr.Status + } + for k, v := range gdfosr.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for GetDataFactoryOperationStatusResponse struct. +func (gdfosr *GetDataFactoryOperationStatusResponse) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gdfosr.AdditionalProperties == nil { + gdfosr.AdditionalProperties = make(map[string]interface{}) + } + gdfosr.AdditionalProperties[k] = additionalProperties + } + case "status": + if v != nil { + var status string + err = json.Unmarshal(*v, &status) + if err != nil { + return err + } + gdfosr.Status = &status + } + } + } + + return nil +} + +// GetMetadataActivity activity to get metadata of dataset +type GetMetadataActivity struct { + // GetMetadataActivityTypeProperties - GetMetadata activity properties. + *GetMetadataActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GetMetadataActivity. +func (gma GetMetadataActivity) MarshalJSON() ([]byte, error) { + gma.Type = TypeBasicActivityTypeGetMetadata + objectMap := make(map[string]interface{}) + if gma.GetMetadataActivityTypeProperties != nil { + objectMap["typeProperties"] = gma.GetMetadataActivityTypeProperties + } + if gma.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gma.LinkedServiceName + } + if gma.Policy != nil { + objectMap["policy"] = gma.Policy + } + if gma.Name != nil { + objectMap["name"] = gma.Name + } + if gma.Description != nil { + objectMap["description"] = gma.Description + } + if gma.State != "" { + objectMap["state"] = gma.State + } + if gma.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = gma.OnInactiveMarkAs + } + if gma.DependsOn != nil { + objectMap["dependsOn"] = gma.DependsOn + } + if gma.UserProperties != nil { + objectMap["userProperties"] = gma.UserProperties + } + if gma.Type != "" { + objectMap["type"] = gma.Type + } + for k, v := range gma.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return &gma, true +} + +// AsWebActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &gma, true +} + +// AsWebHookActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for GetMetadataActivity. +func (gma GetMetadataActivity) AsBasicActivity() (BasicActivity, bool) { + return &gma, true +} + +// UnmarshalJSON is the custom unmarshaler for GetMetadataActivity struct. +func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var getMetadataActivityTypeProperties GetMetadataActivityTypeProperties + err = json.Unmarshal(*v, &getMetadataActivityTypeProperties) + if err != nil { + return err + } + gma.GetMetadataActivityTypeProperties = &getMetadataActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + gma.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + gma.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gma.AdditionalProperties == nil { + gma.AdditionalProperties = make(map[string]interface{}) + } + gma.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + gma.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gma.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + gma.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + gma.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + gma.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + gma.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gma.Type = typeVar + } + } + } + + return nil +} + +// GetMetadataActivityTypeProperties getMetadata activity properties. +type GetMetadataActivityTypeProperties struct { + // Dataset - GetMetadata activity dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // FieldList - Fields of metadata to get from dataset. + FieldList *[]interface{} `json:"fieldList,omitempty"` + // StoreSettings - GetMetadata activity store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - GetMetadata activity format settings. + FormatSettings BasicFormatReadSettings `json:"formatSettings,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for GetMetadataActivityTypeProperties struct. +func (gmatp *GetMetadataActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "dataset": + if v != nil { + var dataset DatasetReference + err = json.Unmarshal(*v, &dataset) + if err != nil { + return err + } + gmatp.Dataset = &dataset + } + case "fieldList": + if v != nil { + var fieldList []interface{} + err = json.Unmarshal(*v, &fieldList) + if err != nil { + return err + } + gmatp.FieldList = &fieldList + } + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + gmatp.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + formatSettings, err := unmarshalBasicFormatReadSettings(*v) + if err != nil { + return err + } + gmatp.FormatSettings = formatSettings + } + } + } + + return nil +} + +// GetSsisObjectMetadataRequest the request payload of get SSIS object metadata. +type GetSsisObjectMetadataRequest struct { + // MetadataPath - Metadata path. + MetadataPath *string `json:"metadataPath,omitempty"` +} + +// GitHubAccessTokenRequest get GitHub access token request definition. +type GitHubAccessTokenRequest struct { + // GitHubAccessCode - GitHub access code. + GitHubAccessCode *string `json:"gitHubAccessCode,omitempty"` + // GitHubClientID - GitHub application client ID. + GitHubClientID *string `json:"gitHubClientId,omitempty"` + // GitHubClientSecret - GitHub bring your own app client secret information. + GitHubClientSecret *GitHubClientSecret `json:"gitHubClientSecret,omitempty"` + // GitHubAccessTokenBaseURL - GitHub access token base URL. + GitHubAccessTokenBaseURL *string `json:"gitHubAccessTokenBaseUrl,omitempty"` +} + +// GitHubAccessTokenResponse get GitHub access token response definition. +type GitHubAccessTokenResponse struct { + autorest.Response `json:"-"` + // GitHubAccessToken - GitHub access token. + GitHubAccessToken *string `json:"gitHubAccessToken,omitempty"` +} + +// GitHubClientSecret client secret information for factory's bring your own app repository configuration. +type GitHubClientSecret struct { + // ByoaSecretAkvURL - Bring your own app client secret AKV URL. + ByoaSecretAkvURL *string `json:"byoaSecretAkvUrl,omitempty"` + // ByoaSecretName - Bring your own app client secret name in AKV. + ByoaSecretName *string `json:"byoaSecretName,omitempty"` +} + +// GlobalParameterListResponse a list of Global parameters. +type GlobalParameterListResponse struct { + autorest.Response `json:"-"` + // Value - List of global parameters. + Value *[]GlobalParameterResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// GlobalParameterListResponseIterator provides access to a complete listing of GlobalParameterResource +// values. +type GlobalParameterListResponseIterator struct { + i int + page GlobalParameterListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *GlobalParameterListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GlobalParameterListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *GlobalParameterListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter GlobalParameterListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter GlobalParameterListResponseIterator) Response() GlobalParameterListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter GlobalParameterListResponseIterator) Value() GlobalParameterResource { + if !iter.page.NotDone() { + return GlobalParameterResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the GlobalParameterListResponseIterator type. +func NewGlobalParameterListResponseIterator(page GlobalParameterListResponsePage) GlobalParameterListResponseIterator { + return GlobalParameterListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (gplr GlobalParameterListResponse) IsEmpty() bool { + return gplr.Value == nil || len(*gplr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (gplr GlobalParameterListResponse) hasNextLink() bool { + return gplr.NextLink != nil && len(*gplr.NextLink) != 0 +} + +// globalParameterListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (gplr GlobalParameterListResponse) globalParameterListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !gplr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(gplr.NextLink))) +} + +// GlobalParameterListResponsePage contains a page of GlobalParameterResource values. +type GlobalParameterListResponsePage struct { + fn func(context.Context, GlobalParameterListResponse) (GlobalParameterListResponse, error) + gplr GlobalParameterListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *GlobalParameterListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/GlobalParameterListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.gplr) + if err != nil { + return err + } + page.gplr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *GlobalParameterListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page GlobalParameterListResponsePage) NotDone() bool { + return !page.gplr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page GlobalParameterListResponsePage) Response() GlobalParameterListResponse { + return page.gplr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page GlobalParameterListResponsePage) Values() []GlobalParameterResource { + if page.gplr.IsEmpty() { + return nil + } + return *page.gplr.Value +} + +// Creates a new instance of the GlobalParameterListResponsePage type. +func NewGlobalParameterListResponsePage(cur GlobalParameterListResponse, getNextPage func(context.Context, GlobalParameterListResponse) (GlobalParameterListResponse, error)) GlobalParameterListResponsePage { + return GlobalParameterListResponsePage{ + fn: getNextPage, + gplr: cur, + } +} + +// GlobalParameterResource global parameters resource type. +type GlobalParameterResource struct { + autorest.Response `json:"-"` + // Properties - Properties of the global parameter. + Properties map[string]*GlobalParameterSpecification `json:"properties"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for GlobalParameterResource. +func (gpr GlobalParameterResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if gpr.Properties != nil { + objectMap["properties"] = gpr.Properties + } + return json.Marshal(objectMap) +} + +// GlobalParameterSpecification definition of a single parameter for an entity. +type GlobalParameterSpecification struct { + // Type - Global Parameter type. Possible values include: 'GlobalParameterTypeObject', 'GlobalParameterTypeString', 'GlobalParameterTypeInt', 'GlobalParameterTypeFloat', 'GlobalParameterTypeBool', 'GlobalParameterTypeArray' + Type GlobalParameterType `json:"type,omitempty"` + // Value - Value of parameter. + Value interface{} `json:"value,omitempty"` +} + +// GoogleAdWordsLinkedService google AdWords service linked service. +type GoogleAdWordsLinkedService struct { + // GoogleAdWordsLinkedServiceTypeProperties - Google AdWords service linked service properties. + *GoogleAdWordsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error) { + gawls.Type = TypeBasicLinkedServiceTypeGoogleAdWords + objectMap := make(map[string]interface{}) + if gawls.GoogleAdWordsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gawls.GoogleAdWordsLinkedServiceTypeProperties + } + if gawls.ConnectVia != nil { + objectMap["connectVia"] = gawls.ConnectVia + } + if gawls.Description != nil { + objectMap["description"] = gawls.Description + } + if gawls.Parameters != nil { + objectMap["parameters"] = gawls.Parameters + } + if gawls.Annotations != nil { + objectMap["annotations"] = gawls.Annotations + } + if gawls.Type != "" { + objectMap["type"] = gawls.Type + } + for k, v := range gawls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return &gawls, true +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. +func (gawls GoogleAdWordsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gawls, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsLinkedService struct. +func (gawls *GoogleAdWordsLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var googleAdWordsLinkedServiceTypeProperties GoogleAdWordsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &googleAdWordsLinkedServiceTypeProperties) + if err != nil { + return err + } + gawls.GoogleAdWordsLinkedServiceTypeProperties = &googleAdWordsLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gawls.AdditionalProperties == nil { + gawls.AdditionalProperties = make(map[string]interface{}) + } + gawls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + gawls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gawls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gawls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gawls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gawls.Type = typeVar + } + } + } + + return nil +} + +// GoogleAdWordsLinkedServiceTypeProperties google AdWords service linked service properties. +type GoogleAdWordsLinkedServiceTypeProperties struct { + // ConnectionProperties - (Deprecated) 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"` + // ClientCustomerID - The Client customer ID of the AdWords account that you want to fetch report data for. Type: string (or Expression with resultType string). + ClientCustomerID interface{} `json:"clientCustomerID,omitempty"` + // DeveloperToken - The developer token associated with the manager account that you use to grant access to the AdWords API. + DeveloperToken BasicSecretBase `json:"developerToken,omitempty"` + // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'GoogleAdWordsAuthenticationTypeServiceAuthentication', 'GoogleAdWordsAuthenticationTypeUserAuthentication' + AuthenticationType GoogleAdWordsAuthenticationType `json:"authenticationType,omitempty"` + // RefreshToken - The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. + RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` + // ClientID - 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"` + // ClientSecret - The client secret of the google application used to acquire the refresh token. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // Email - 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 interface{} `json:"email,omitempty"` + // KeyFilePath - (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 interface{} `json:"keyFilePath,omitempty"` + // TrustedCertPath - (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 interface{} `json:"trustedCertPath,omitempty"` + // UseSystemTrustStore - (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 interface{} `json:"useSystemTrustStore,omitempty"` + // PrivateKey - The private key that is used to authenticate the service account email address and can only be used on self-hosted IR. + PrivateKey BasicSecretBase `json:"privateKey,omitempty"` + // LoginCustomerID - 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 interface{} `json:"loginCustomerID,omitempty"` + // GoogleAdsAPIVersion - 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 interface{} `json:"googleAdsApiVersion,omitempty"` + // SupportLegacyDataTypes - 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 interface{} `json:"supportLegacyDataTypes,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsLinkedServiceTypeProperties struct. +func (gawlstp *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionProperties": + if v != nil { + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) + if err != nil { + return err + } + gawlstp.ConnectionProperties = connectionProperties + } + case "clientCustomerID": + if v != nil { + var clientCustomerID interface{} + err = json.Unmarshal(*v, &clientCustomerID) + if err != nil { + return err + } + gawlstp.ClientCustomerID = clientCustomerID + } + case "developerToken": + if v != nil { + developerToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gawlstp.DeveloperToken = developerToken + } + case "authenticationType": + if v != nil { + var authenticationType GoogleAdWordsAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + gawlstp.AuthenticationType = authenticationType + } + case "refreshToken": + if v != nil { + refreshToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gawlstp.RefreshToken = refreshToken + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + gawlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gawlstp.ClientSecret = clientSecret + } + case "email": + if v != nil { + var email interface{} + err = json.Unmarshal(*v, &email) + if err != nil { + return err + } + gawlstp.Email = email + } + case "keyFilePath": + if v != nil { + var keyFilePath interface{} + err = json.Unmarshal(*v, &keyFilePath) + if err != nil { + return err + } + gawlstp.KeyFilePath = keyFilePath + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + gawlstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + gawlstp.UseSystemTrustStore = useSystemTrustStore + } + case "privateKey": + if v != nil { + privateKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gawlstp.PrivateKey = privateKey + } + case "loginCustomerID": + if v != nil { + var loginCustomerID interface{} + err = json.Unmarshal(*v, &loginCustomerID) + if err != nil { + return err + } + gawlstp.LoginCustomerID = loginCustomerID + } + case "googleAdsApiVersion": + if v != nil { + var googleAdsAPIVersion interface{} + err = json.Unmarshal(*v, &googleAdsAPIVersion) + if err != nil { + return err + } + gawlstp.GoogleAdsAPIVersion = googleAdsAPIVersion + } + case "supportLegacyDataTypes": + if v != nil { + var supportLegacyDataTypes interface{} + err = json.Unmarshal(*v, &supportLegacyDataTypes) + if err != nil { + return err + } + gawlstp.SupportLegacyDataTypes = supportLegacyDataTypes + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + gawlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// GoogleAdWordsObjectDataset google AdWords service dataset. +type GoogleAdWordsObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) MarshalJSON() ([]byte, error) { + gawod.Type = TypeBasicDatasetTypeGoogleAdWordsObject + objectMap := make(map[string]interface{}) + if gawod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = gawod.GenericDatasetTypeProperties + } + if gawod.Description != nil { + objectMap["description"] = gawod.Description + } + if gawod.Structure != nil { + objectMap["structure"] = gawod.Structure + } + if gawod.Schema != nil { + objectMap["schema"] = gawod.Schema + } + if gawod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gawod.LinkedServiceName + } + if gawod.Parameters != nil { + objectMap["parameters"] = gawod.Parameters + } + if gawod.Annotations != nil { + objectMap["annotations"] = gawod.Annotations + } + if gawod.Folder != nil { + objectMap["folder"] = gawod.Folder + } + if gawod.Type != "" { + objectMap["type"] = gawod.Type + } + for k, v := range gawod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return &gawod, true +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. +func (gawod GoogleAdWordsObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &gawod, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsObjectDataset struct. +func (gawod *GoogleAdWordsObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + gawod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gawod.AdditionalProperties == nil { + gawod.AdditionalProperties = make(map[string]interface{}) + } + gawod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gawod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + gawod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + gawod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + gawod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gawod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gawod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + gawod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gawod.Type = typeVar + } + } + } + + return nil +} + +// GoogleAdWordsSource a copy activity Google AdWords service source. +type GoogleAdWordsSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) MarshalJSON() ([]byte, error) { + gaws.Type = TypeBasicCopySourceTypeGoogleAdWordsSource + objectMap := make(map[string]interface{}) + if gaws.Query != nil { + objectMap["query"] = gaws.Query + } + if gaws.QueryTimeout != nil { + objectMap["queryTimeout"] = gaws.QueryTimeout + } + if gaws.AdditionalColumns != nil { + objectMap["additionalColumns"] = gaws.AdditionalColumns + } + if gaws.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = gaws.SourceRetryCount + } + if gaws.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = gaws.SourceRetryWait + } + if gaws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gaws.MaxConcurrentConnections + } + if gaws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gaws.DisableMetricsCollection + } + if gaws.Type != "" { + objectMap["type"] = gaws.Type + } + for k, v := range gaws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return &gaws, true +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &gaws, true +} + +// AsBinarySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for GoogleAdWordsSource. +func (gaws GoogleAdWordsSource) AsBasicCopySource() (BasicCopySource, bool) { + return &gaws, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsSource struct. +func (gaws *GoogleAdWordsSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + gaws.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + gaws.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + gaws.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gaws.AdditionalProperties == nil { + gaws.AdditionalProperties = make(map[string]interface{}) + } + gaws.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + gaws.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + gaws.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + gaws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gaws.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gaws.Type = typeVar + } + } + } + + return nil +} + +// GoogleBigQueryDatasetTypeProperties google BigQuery Dataset Properties +type GoogleBigQueryDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using database + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Google BigQuery. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Dataset - The database name of the Google BigQuery. Type: string (or Expression with resultType string). + Dataset interface{} `json:"dataset,omitempty"` +} + +// GoogleBigQueryLinkedService google BigQuery service linked service. +type GoogleBigQueryLinkedService struct { + // GoogleBigQueryLinkedServiceTypeProperties - Google BigQuery service linked service properties. + *GoogleBigQueryLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { + gbqls.Type = TypeBasicLinkedServiceTypeGoogleBigQuery + objectMap := make(map[string]interface{}) + if gbqls.GoogleBigQueryLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gbqls.GoogleBigQueryLinkedServiceTypeProperties + } + if gbqls.ConnectVia != nil { + objectMap["connectVia"] = gbqls.ConnectVia + } + if gbqls.Description != nil { + objectMap["description"] = gbqls.Description + } + if gbqls.Parameters != nil { + objectMap["parameters"] = gbqls.Parameters + } + if gbqls.Annotations != nil { + objectMap["annotations"] = gbqls.Annotations + } + if gbqls.Type != "" { + objectMap["type"] = gbqls.Type + } + for k, v := range gbqls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return &gbqls, true +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. +func (gbqls GoogleBigQueryLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gbqls, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedService struct. +func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var googleBigQueryLinkedServiceTypeProperties GoogleBigQueryLinkedServiceTypeProperties + err = json.Unmarshal(*v, &googleBigQueryLinkedServiceTypeProperties) + if err != nil { + return err + } + gbqls.GoogleBigQueryLinkedServiceTypeProperties = &googleBigQueryLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gbqls.AdditionalProperties == nil { + gbqls.AdditionalProperties = make(map[string]interface{}) + } + gbqls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + gbqls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gbqls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gbqls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gbqls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gbqls.Type = typeVar + } + } + } + + return nil +} + +// GoogleBigQueryLinkedServiceTypeProperties google BigQuery service linked service properties. +type GoogleBigQueryLinkedServiceTypeProperties struct { + // Project - The default BigQuery project to query against. Type: string (or Expression with resultType string). + Project interface{} `json:"project,omitempty"` + // AdditionalProjects - A comma-separated list of public BigQuery projects to access. Type: string (or Expression with resultType string). + AdditionalProjects interface{} `json:"additionalProjects,omitempty"` + // RequestGoogleDriveScope - 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. Type: string (or Expression with resultType string). + RequestGoogleDriveScope interface{} `json:"requestGoogleDriveScope,omitempty"` + // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'GoogleBigQueryAuthenticationTypeServiceAuthentication', 'GoogleBigQueryAuthenticationTypeUserAuthentication' + AuthenticationType GoogleBigQueryAuthenticationType `json:"authenticationType,omitempty"` + // RefreshToken - The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. + RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` + // ClientID - 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"` + // ClientSecret - The client secret of the google application used to acquire the refresh token. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // Email - 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 interface{} `json:"email,omitempty"` + // KeyFilePath - 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 interface{} `json:"keyFilePath,omitempty"` + // TrustedCertPath - 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 interface{} `json:"trustedCertPath,omitempty"` + // UseSystemTrustStore - 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 interface{} `json:"useSystemTrustStore,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedServiceTypeProperties struct. +func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "project": + if v != nil { + var project interface{} + err = json.Unmarshal(*v, &project) + if err != nil { + return err + } + gbqlstp.Project = project + } + case "additionalProjects": + if v != nil { + var additionalProjects interface{} + err = json.Unmarshal(*v, &additionalProjects) + if err != nil { + return err + } + gbqlstp.AdditionalProjects = additionalProjects + } + case "requestGoogleDriveScope": + if v != nil { + var requestGoogleDriveScope interface{} + err = json.Unmarshal(*v, &requestGoogleDriveScope) + if err != nil { + return err + } + gbqlstp.RequestGoogleDriveScope = requestGoogleDriveScope + } + case "authenticationType": + if v != nil { + var authenticationType GoogleBigQueryAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + gbqlstp.AuthenticationType = authenticationType + } + case "refreshToken": + if v != nil { + refreshToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gbqlstp.RefreshToken = refreshToken + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + gbqlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gbqlstp.ClientSecret = clientSecret + } + case "email": + if v != nil { + var email interface{} + err = json.Unmarshal(*v, &email) + if err != nil { + return err + } + gbqlstp.Email = email + } + case "keyFilePath": + if v != nil { + var keyFilePath interface{} + err = json.Unmarshal(*v, &keyFilePath) + if err != nil { + return err + } + gbqlstp.KeyFilePath = keyFilePath + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + gbqlstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + gbqlstp.UseSystemTrustStore = useSystemTrustStore + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + gbqlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// GoogleBigQueryObjectDataset google BigQuery service dataset. +type GoogleBigQueryObjectDataset struct { + // GoogleBigQueryDatasetTypeProperties - Properties specific to this dataset type. + *GoogleBigQueryDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) MarshalJSON() ([]byte, error) { + gbqod.Type = TypeBasicDatasetTypeGoogleBigQueryObject + objectMap := make(map[string]interface{}) + if gbqod.GoogleBigQueryDatasetTypeProperties != nil { + objectMap["typeProperties"] = gbqod.GoogleBigQueryDatasetTypeProperties + } + if gbqod.Description != nil { + objectMap["description"] = gbqod.Description + } + if gbqod.Structure != nil { + objectMap["structure"] = gbqod.Structure + } + if gbqod.Schema != nil { + objectMap["schema"] = gbqod.Schema + } + if gbqod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gbqod.LinkedServiceName + } + if gbqod.Parameters != nil { + objectMap["parameters"] = gbqod.Parameters + } + if gbqod.Annotations != nil { + objectMap["annotations"] = gbqod.Annotations + } + if gbqod.Folder != nil { + objectMap["folder"] = gbqod.Folder + } + if gbqod.Type != "" { + objectMap["type"] = gbqod.Type + } + for k, v := range gbqod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return &gbqod, true +} + +// AsEloquaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. +func (gbqod GoogleBigQueryObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &gbqod, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryObjectDataset struct. +func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var googleBigQueryDatasetTypeProperties GoogleBigQueryDatasetTypeProperties + err = json.Unmarshal(*v, &googleBigQueryDatasetTypeProperties) + if err != nil { + return err + } + gbqod.GoogleBigQueryDatasetTypeProperties = &googleBigQueryDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gbqod.AdditionalProperties == nil { + gbqod.AdditionalProperties = make(map[string]interface{}) + } + gbqod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gbqod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + gbqod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + gbqod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + gbqod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gbqod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gbqod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + gbqod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gbqod.Type = typeVar + } + } + } + + return nil +} + +// GoogleBigQuerySource a copy activity Google BigQuery service source. +type GoogleBigQuerySource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) MarshalJSON() ([]byte, error) { + gbqs.Type = TypeBasicCopySourceTypeGoogleBigQuerySource + objectMap := make(map[string]interface{}) + if gbqs.Query != nil { + objectMap["query"] = gbqs.Query + } + if gbqs.QueryTimeout != nil { + objectMap["queryTimeout"] = gbqs.QueryTimeout + } + if gbqs.AdditionalColumns != nil { + objectMap["additionalColumns"] = gbqs.AdditionalColumns + } + if gbqs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = gbqs.SourceRetryCount + } + if gbqs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = gbqs.SourceRetryWait + } + if gbqs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gbqs.MaxConcurrentConnections + } + if gbqs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gbqs.DisableMetricsCollection + } + if gbqs.Type != "" { + objectMap["type"] = gbqs.Type + } + for k, v := range gbqs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return &gbqs, true +} + +// AsEloquaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &gbqs, true +} + +// AsBinarySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for GoogleBigQuerySource. +func (gbqs GoogleBigQuerySource) AsBasicCopySource() (BasicCopySource, bool) { + return &gbqs, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQuerySource struct. +func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + gbqs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + gbqs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + gbqs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gbqs.AdditionalProperties == nil { + gbqs.AdditionalProperties = make(map[string]interface{}) + } + gbqs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + gbqs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + gbqs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + gbqs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gbqs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gbqs.Type = typeVar + } + } + } + + return nil +} + +// GoogleBigQueryV2DatasetTypeProperties google BigQuery Dataset Properties +type GoogleBigQueryV2DatasetTypeProperties struct { + // Table - The table name of the Google BigQuery. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Dataset - The database name of the Google BigQuery. Type: string (or Expression with resultType string). + Dataset interface{} `json:"dataset,omitempty"` +} + +// GoogleBigQueryV2LinkedService google BigQuery service linked service. +type GoogleBigQueryV2LinkedService struct { + // GoogleBigQueryV2LinkedServiceTypeProperties - Google BigQuery service linked service properties. + *GoogleBigQueryV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) MarshalJSON() ([]byte, error) { + gbqvls.Type = TypeBasicLinkedServiceTypeGoogleBigQueryV2 + objectMap := make(map[string]interface{}) + if gbqvls.GoogleBigQueryV2LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gbqvls.GoogleBigQueryV2LinkedServiceTypeProperties + } + if gbqvls.ConnectVia != nil { + objectMap["connectVia"] = gbqvls.ConnectVia + } + if gbqvls.Description != nil { + objectMap["description"] = gbqvls.Description + } + if gbqvls.Parameters != nil { + objectMap["parameters"] = gbqvls.Parameters + } + if gbqvls.Annotations != nil { + objectMap["annotations"] = gbqvls.Annotations + } + if gbqvls.Type != "" { + objectMap["type"] = gbqvls.Type + } + for k, v := range gbqvls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return &gbqvls, true +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for GoogleBigQueryV2LinkedService. +func (gbqvls GoogleBigQueryV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gbqvls, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryV2LinkedService struct. +func (gbqvls *GoogleBigQueryV2LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var googleBigQueryV2LinkedServiceTypeProperties GoogleBigQueryV2LinkedServiceTypeProperties + err = json.Unmarshal(*v, &googleBigQueryV2LinkedServiceTypeProperties) + if err != nil { + return err + } + gbqvls.GoogleBigQueryV2LinkedServiceTypeProperties = &googleBigQueryV2LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gbqvls.AdditionalProperties == nil { + gbqvls.AdditionalProperties = make(map[string]interface{}) + } + gbqvls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + gbqvls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gbqvls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gbqvls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gbqvls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gbqvls.Type = typeVar + } + } + } + + return nil +} + +// GoogleBigQueryV2LinkedServiceTypeProperties google BigQuery service linked service properties. +type GoogleBigQueryV2LinkedServiceTypeProperties struct { + // ProjectID - The default BigQuery project id to query against. Type: string (or Expression with resultType string). + ProjectID interface{} `json:"projectId,omitempty"` + // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. Possible values include: 'GoogleBigQueryV2AuthenticationTypeServiceAuthentication', 'GoogleBigQueryV2AuthenticationTypeUserAuthentication' + AuthenticationType GoogleBigQueryV2AuthenticationType `json:"authenticationType,omitempty"` + // ClientID - 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"` + // ClientSecret - The client secret of the google application used to acquire the refresh token. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // RefreshToken - The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. + RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` + // KeyFileContent - The content of the .json key file that is used to authenticate the service account. Type: string (or Expression with resultType string). + KeyFileContent BasicSecretBase `json:"keyFileContent,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryV2LinkedServiceTypeProperties struct. +func (gbqvlstp *GoogleBigQueryV2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "projectId": + if v != nil { + var projectID interface{} + err = json.Unmarshal(*v, &projectID) + if err != nil { + return err + } + gbqvlstp.ProjectID = projectID + } + case "authenticationType": + if v != nil { + var authenticationType GoogleBigQueryV2AuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + gbqvlstp.AuthenticationType = authenticationType + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + gbqvlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gbqvlstp.ClientSecret = clientSecret + } + case "refreshToken": + if v != nil { + refreshToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gbqvlstp.RefreshToken = refreshToken + } + case "keyFileContent": + if v != nil { + keyFileContent, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gbqvlstp.KeyFileContent = keyFileContent + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + gbqvlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// GoogleBigQueryV2ObjectDataset google BigQuery service dataset. +type GoogleBigQueryV2ObjectDataset struct { + // GoogleBigQueryV2DatasetTypeProperties - Properties specific to this dataset type. + *GoogleBigQueryV2DatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) MarshalJSON() ([]byte, error) { + gbqvod.Type = TypeBasicDatasetTypeGoogleBigQueryV2Object + objectMap := make(map[string]interface{}) + if gbqvod.GoogleBigQueryV2DatasetTypeProperties != nil { + objectMap["typeProperties"] = gbqvod.GoogleBigQueryV2DatasetTypeProperties + } + if gbqvod.Description != nil { + objectMap["description"] = gbqvod.Description + } + if gbqvod.Structure != nil { + objectMap["structure"] = gbqvod.Structure + } + if gbqvod.Schema != nil { + objectMap["schema"] = gbqvod.Schema + } + if gbqvod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gbqvod.LinkedServiceName + } + if gbqvod.Parameters != nil { + objectMap["parameters"] = gbqvod.Parameters + } + if gbqvod.Annotations != nil { + objectMap["annotations"] = gbqvod.Annotations + } + if gbqvod.Folder != nil { + objectMap["folder"] = gbqvod.Folder + } + if gbqvod.Type != "" { + objectMap["type"] = gbqvod.Type + } + for k, v := range gbqvod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return &gbqvod, true +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for GoogleBigQueryV2ObjectDataset. +func (gbqvod GoogleBigQueryV2ObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &gbqvod, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryV2ObjectDataset struct. +func (gbqvod *GoogleBigQueryV2ObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var googleBigQueryV2DatasetTypeProperties GoogleBigQueryV2DatasetTypeProperties + err = json.Unmarshal(*v, &googleBigQueryV2DatasetTypeProperties) + if err != nil { + return err + } + gbqvod.GoogleBigQueryV2DatasetTypeProperties = &googleBigQueryV2DatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gbqvod.AdditionalProperties == nil { + gbqvod.AdditionalProperties = make(map[string]interface{}) + } + gbqvod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gbqvod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + gbqvod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + gbqvod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + gbqvod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gbqvod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gbqvod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + gbqvod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gbqvod.Type = typeVar + } + } + } + + return nil +} + +// GoogleBigQueryV2Source a copy activity Google BigQuery service source. +type GoogleBigQueryV2Source struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) MarshalJSON() ([]byte, error) { + gbqvs.Type = TypeBasicCopySourceTypeGoogleBigQueryV2Source + objectMap := make(map[string]interface{}) + if gbqvs.Query != nil { + objectMap["query"] = gbqvs.Query + } + if gbqvs.QueryTimeout != nil { + objectMap["queryTimeout"] = gbqvs.QueryTimeout + } + if gbqvs.AdditionalColumns != nil { + objectMap["additionalColumns"] = gbqvs.AdditionalColumns + } + if gbqvs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = gbqvs.SourceRetryCount + } + if gbqvs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = gbqvs.SourceRetryWait + } + if gbqvs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gbqvs.MaxConcurrentConnections + } + if gbqvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gbqvs.DisableMetricsCollection + } + if gbqvs.Type != "" { + objectMap["type"] = gbqvs.Type + } + for k, v := range gbqvs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return &gbqvs, true +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return &gbqvs, true +} + +// AsBinarySource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for GoogleBigQueryV2Source. +func (gbqvs GoogleBigQueryV2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &gbqvs, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryV2Source struct. +func (gbqvs *GoogleBigQueryV2Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + gbqvs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + gbqvs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + gbqvs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gbqvs.AdditionalProperties == nil { + gbqvs.AdditionalProperties = make(map[string]interface{}) + } + gbqvs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + gbqvs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + gbqvs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + gbqvs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gbqvs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gbqvs.Type = typeVar + } + } + } + + return nil +} + +// GoogleCloudStorageLinkedService linked service for Google Cloud Storage. +type GoogleCloudStorageLinkedService struct { + // GoogleCloudStorageLinkedServiceTypeProperties - Google Cloud Storage linked service properties. + *GoogleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { + gcsls.Type = TypeBasicLinkedServiceTypeGoogleCloudStorage + objectMap := make(map[string]interface{}) + if gcsls.GoogleCloudStorageLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gcsls.GoogleCloudStorageLinkedServiceTypeProperties + } + if gcsls.ConnectVia != nil { + objectMap["connectVia"] = gcsls.ConnectVia + } + if gcsls.Description != nil { + objectMap["description"] = gcsls.Description + } + if gcsls.Parameters != nil { + objectMap["parameters"] = gcsls.Parameters + } + if gcsls.Annotations != nil { + objectMap["annotations"] = gcsls.Annotations + } + if gcsls.Type != "" { + objectMap["type"] = gcsls.Type + } + for k, v := range gcsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return &gcsls, true +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. +func (gcsls GoogleCloudStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gcsls, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedService struct. +func (gcsls *GoogleCloudStorageLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var googleCloudStorageLinkedServiceTypeProperties GoogleCloudStorageLinkedServiceTypeProperties + err = json.Unmarshal(*v, &googleCloudStorageLinkedServiceTypeProperties) + if err != nil { + return err + } + gcsls.GoogleCloudStorageLinkedServiceTypeProperties = &googleCloudStorageLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gcsls.AdditionalProperties == nil { + gcsls.AdditionalProperties = make(map[string]interface{}) + } + gcsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + gcsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gcsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gcsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gcsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gcsls.Type = typeVar + } + } + } + + return nil +} + +// GoogleCloudStorageLinkedServiceTypeProperties google Cloud Storage linked service properties. +type GoogleCloudStorageLinkedServiceTypeProperties struct { + // AccessKeyID - 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"` + // SecretAccessKey - The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. + SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` + // ServiceURL - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedServiceTypeProperties struct. +func (gcslstp *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "accessKeyId": + if v != nil { + var accessKeyID interface{} + err = json.Unmarshal(*v, &accessKeyID) + if err != nil { + return err + } + gcslstp.AccessKeyID = accessKeyID + } + case "secretAccessKey": + if v != nil { + secretAccessKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gcslstp.SecretAccessKey = secretAccessKey + } + case "serviceUrl": + if v != nil { + var serviceURL interface{} + err = json.Unmarshal(*v, &serviceURL) + if err != nil { + return err + } + gcslstp.ServiceURL = serviceURL + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + gcslstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// GoogleCloudStorageLocation the location of Google Cloud Storage dataset. +type GoogleCloudStorageLocation struct { + // BucketName - Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string) + BucketName interface{} `json:"bucketName,omitempty"` + // Version - Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) { + gcsl.Type = TypeBasicDatasetLocationTypeGoogleCloudStorageLocation + objectMap := make(map[string]interface{}) + if gcsl.BucketName != nil { + objectMap["bucketName"] = gcsl.BucketName + } + if gcsl.Version != nil { + objectMap["version"] = gcsl.Version + } + if gcsl.FolderPath != nil { + objectMap["folderPath"] = gcsl.FolderPath + } + if gcsl.FileName != nil { + objectMap["fileName"] = gcsl.FileName + } + if gcsl.Type != "" { + objectMap["type"] = gcsl.Type + } + for k, v := range gcsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return &gcsl, true +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. +func (gcsl GoogleCloudStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &gcsl, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLocation struct. +func (gcsl *GoogleCloudStorageLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "bucketName": + if v != nil { + var bucketName interface{} + err = json.Unmarshal(*v, &bucketName) + if err != nil { + return err + } + gcsl.BucketName = bucketName + } + case "version": + if v != nil { + var version interface{} + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + gcsl.Version = version + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gcsl.AdditionalProperties == nil { + gcsl.AdditionalProperties = make(map[string]interface{}) + } + gcsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + gcsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + gcsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gcsl.Type = typeVar + } + } + } + + return nil +} + +// GoogleCloudStorageReadSettings google Cloud Storage read settings. +type GoogleCloudStorageReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // Prefix - The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string). + Prefix interface{} `json:"prefix,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { + gcsrs.Type = TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings + objectMap := make(map[string]interface{}) + if gcsrs.Recursive != nil { + objectMap["recursive"] = gcsrs.Recursive + } + if gcsrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = gcsrs.WildcardFolderPath + } + if gcsrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = gcsrs.WildcardFileName + } + if gcsrs.Prefix != nil { + objectMap["prefix"] = gcsrs.Prefix + } + if gcsrs.FileListPath != nil { + objectMap["fileListPath"] = gcsrs.FileListPath + } + if gcsrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = gcsrs.EnablePartitionDiscovery + } + if gcsrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = gcsrs.PartitionRootPath + } + if gcsrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = gcsrs.DeleteFilesAfterCompletion + } + if gcsrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = gcsrs.ModifiedDatetimeStart + } + if gcsrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = gcsrs.ModifiedDatetimeEnd + } + if gcsrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gcsrs.MaxConcurrentConnections + } + if gcsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gcsrs.DisableMetricsCollection + } + if gcsrs.Type != "" { + objectMap["type"] = gcsrs.Type + } + for k, v := range gcsrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return &gcsrs, true +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. +func (gcsrs GoogleCloudStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &gcsrs, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageReadSettings struct. +func (gcsrs *GoogleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + gcsrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + gcsrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + gcsrs.WildcardFileName = wildcardFileName + } + case "prefix": + if v != nil { + var prefix interface{} + err = json.Unmarshal(*v, &prefix) + if err != nil { + return err + } + gcsrs.Prefix = prefix + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + gcsrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + gcsrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + gcsrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + gcsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + gcsrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + gcsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gcsrs.AdditionalProperties == nil { + gcsrs.AdditionalProperties = make(map[string]interface{}) + } + gcsrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + gcsrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gcsrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gcsrs.Type = typeVar + } + } + } + + return nil +} + +// GoogleSheetsLinkedService linked service for GoogleSheets. +type GoogleSheetsLinkedService struct { + // GoogleSheetsLinkedServiceTypeProperties - GoogleSheets linked service properties. + *GoogleSheetsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) MarshalJSON() ([]byte, error) { + gsls.Type = TypeBasicLinkedServiceTypeGoogleSheets + objectMap := make(map[string]interface{}) + if gsls.GoogleSheetsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gsls.GoogleSheetsLinkedServiceTypeProperties + } + if gsls.ConnectVia != nil { + objectMap["connectVia"] = gsls.ConnectVia + } + if gsls.Description != nil { + objectMap["description"] = gsls.Description + } + if gsls.Parameters != nil { + objectMap["parameters"] = gsls.Parameters + } + if gsls.Annotations != nil { + objectMap["annotations"] = gsls.Annotations + } + if gsls.Type != "" { + objectMap["type"] = gsls.Type + } + for k, v := range gsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return &gsls, true +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. +func (gsls GoogleSheetsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gsls, true +} + +// UnmarshalJSON is the custom unmarshaler for GoogleSheetsLinkedService struct. +func (gsls *GoogleSheetsLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var googleSheetsLinkedServiceTypeProperties GoogleSheetsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &googleSheetsLinkedServiceTypeProperties) + if err != nil { + return err + } + gsls.GoogleSheetsLinkedServiceTypeProperties = &googleSheetsLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gsls.AdditionalProperties == nil { + gsls.AdditionalProperties = make(map[string]interface{}) + } + gsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + gsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gsls.Type = typeVar + } + } + } + + return nil +} + +// GoogleSheetsLinkedServiceTypeProperties googleSheets linked service type properties. +type GoogleSheetsLinkedServiceTypeProperties struct { + // APIToken - The api token for the GoogleSheets source. + APIToken BasicSecretBase `json:"apiToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for GoogleSheetsLinkedServiceTypeProperties struct. +func (gslstp *GoogleSheetsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "apiToken": + if v != nil { + APIToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + gslstp.APIToken = APIToken + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + gslstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// GreenplumDatasetTypeProperties greenplum Dataset Properties +type GreenplumDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of Greenplum. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of Greenplum. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// GreenplumLinkedService greenplum Database linked service. +type GreenplumLinkedService struct { + // GreenplumLinkedServiceTypeProperties - Greenplum Database linked service properties. + *GreenplumLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GreenplumLinkedService. +func (gls GreenplumLinkedService) MarshalJSON() ([]byte, error) { + gls.Type = TypeBasicLinkedServiceTypeGreenplum + objectMap := make(map[string]interface{}) + if gls.GreenplumLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = gls.GreenplumLinkedServiceTypeProperties + } + if gls.ConnectVia != nil { + objectMap["connectVia"] = gls.ConnectVia + } + if gls.Description != nil { + objectMap["description"] = gls.Description + } + if gls.Parameters != nil { + objectMap["parameters"] = gls.Parameters + } + if gls.Annotations != nil { + objectMap["annotations"] = gls.Annotations + } + if gls.Type != "" { + objectMap["type"] = gls.Type + } + for k, v := range gls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return &gls, true +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. +func (gls GreenplumLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &gls, true +} + +// UnmarshalJSON is the custom unmarshaler for GreenplumLinkedService struct. +func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var greenplumLinkedServiceTypeProperties GreenplumLinkedServiceTypeProperties + err = json.Unmarshal(*v, &greenplumLinkedServiceTypeProperties) + if err != nil { + return err + } + gls.GreenplumLinkedServiceTypeProperties = &greenplumLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gls.AdditionalProperties == nil { + gls.AdditionalProperties = make(map[string]interface{}) + } + gls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + gls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gls.Type = typeVar + } + } + } + + return nil +} + +// GreenplumLinkedServiceTypeProperties greenplum Database linked service properties. +type GreenplumLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Pwd - The Azure key vault secret reference of password in connection string. + Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// GreenplumSource a copy activity Greenplum Database source. +type GreenplumSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GreenplumSource. +func (gs GreenplumSource) MarshalJSON() ([]byte, error) { + gs.Type = TypeBasicCopySourceTypeGreenplumSource + objectMap := make(map[string]interface{}) + if gs.Query != nil { + objectMap["query"] = gs.Query + } + if gs.QueryTimeout != nil { + objectMap["queryTimeout"] = gs.QueryTimeout + } + if gs.AdditionalColumns != nil { + objectMap["additionalColumns"] = gs.AdditionalColumns + } + if gs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = gs.SourceRetryCount + } + if gs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = gs.SourceRetryWait + } + if gs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = gs.MaxConcurrentConnections + } + if gs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = gs.DisableMetricsCollection + } + if gs.Type != "" { + objectMap["type"] = gs.Type + } + for k, v := range gs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsGreenplumSource() (*GreenplumSource, bool) { + return &gs, true +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &gs, true +} + +// AsBinarySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for GreenplumSource. +func (gs GreenplumSource) AsBasicCopySource() (BasicCopySource, bool) { + return &gs, true +} + +// UnmarshalJSON is the custom unmarshaler for GreenplumSource struct. +func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + gs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + gs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + gs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gs.AdditionalProperties == nil { + gs.AdditionalProperties = make(map[string]interface{}) + } + gs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + gs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + gs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + gs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + gs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gs.Type = typeVar + } + } + } + + return nil +} + +// GreenplumTableDataset greenplum Database dataset. +type GreenplumTableDataset struct { + // GreenplumDatasetTypeProperties - Properties specific to this dataset type. + *GreenplumDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for GreenplumTableDataset. +func (gtd GreenplumTableDataset) MarshalJSON() ([]byte, error) { + gtd.Type = TypeBasicDatasetTypeGreenplumTable + objectMap := make(map[string]interface{}) + if gtd.GreenplumDatasetTypeProperties != nil { + objectMap["typeProperties"] = gtd.GreenplumDatasetTypeProperties + } + if gtd.Description != nil { + objectMap["description"] = gtd.Description + } + if gtd.Structure != nil { + objectMap["structure"] = gtd.Structure + } + if gtd.Schema != nil { + objectMap["schema"] = gtd.Schema + } + if gtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = gtd.LinkedServiceName + } + if gtd.Parameters != nil { + objectMap["parameters"] = gtd.Parameters + } + if gtd.Annotations != nil { + objectMap["annotations"] = gtd.Annotations + } + if gtd.Folder != nil { + objectMap["folder"] = gtd.Folder + } + if gtd.Type != "" { + objectMap["type"] = gtd.Type + } + for k, v := range gtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return >d, true +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for GreenplumTableDataset. +func (gtd GreenplumTableDataset) AsBasicDataset() (BasicDataset, bool) { + return >d, true +} + +// UnmarshalJSON is the custom unmarshaler for GreenplumTableDataset struct. +func (gtd *GreenplumTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var greenplumDatasetTypeProperties GreenplumDatasetTypeProperties + err = json.Unmarshal(*v, &greenplumDatasetTypeProperties) + if err != nil { + return err + } + gtd.GreenplumDatasetTypeProperties = &greenplumDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if gtd.AdditionalProperties == nil { + gtd.AdditionalProperties = make(map[string]interface{}) + } + gtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + gtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + gtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + gtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + gtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + gtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + gtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + gtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + gtd.Type = typeVar + } + } + } + + return nil +} + +// HBaseLinkedService hBase server linked service. +type HBaseLinkedService struct { + // HBaseLinkedServiceTypeProperties - HBase server linked service properties. + *HBaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HBaseLinkedService. +func (hbls HBaseLinkedService) MarshalJSON() ([]byte, error) { + hbls.Type = TypeBasicLinkedServiceTypeHBase + objectMap := make(map[string]interface{}) + if hbls.HBaseLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hbls.HBaseLinkedServiceTypeProperties + } + if hbls.ConnectVia != nil { + objectMap["connectVia"] = hbls.ConnectVia + } + if hbls.Description != nil { + objectMap["description"] = hbls.Description + } + if hbls.Parameters != nil { + objectMap["parameters"] = hbls.Parameters + } + if hbls.Annotations != nil { + objectMap["annotations"] = hbls.Annotations + } + if hbls.Type != "" { + objectMap["type"] = hbls.Type + } + for k, v := range hbls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return &hbls, true +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for HBaseLinkedService. +func (hbls HBaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hbls, true +} + +// UnmarshalJSON is the custom unmarshaler for HBaseLinkedService struct. +func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hBaseLinkedServiceTypeProperties HBaseLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hBaseLinkedServiceTypeProperties) + if err != nil { + return err + } + hbls.HBaseLinkedServiceTypeProperties = &hBaseLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hbls.AdditionalProperties == nil { + hbls.AdditionalProperties = make(map[string]interface{}) + } + hbls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + hbls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hbls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hbls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hbls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hbls.Type = typeVar + } + } + } + + return nil +} + +// HBaseLinkedServiceTypeProperties hBase server linked service properties. +type HBaseLinkedServiceTypeProperties struct { + // Host - The IP address or host name of the HBase server. (i.e. 192.168.222.160) + Host interface{} `json:"host,omitempty"` + // Port - The TCP port that the HBase instance uses to listen for client connections. The default value is 9090. + Port interface{} `json:"port,omitempty"` + // HTTPPath - The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) + HTTPPath interface{} `json:"httpPath,omitempty"` + // AuthenticationType - The authentication mechanism to use to connect to the HBase server. Possible values include: 'HBaseAuthenticationTypeAnonymous', 'HBaseAuthenticationTypeBasic' + AuthenticationType HBaseAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name used to connect to the HBase instance. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name. + Password BasicSecretBase `json:"password,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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"` + // AllowHostNameCNMismatch - 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"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HBaseLinkedServiceTypeProperties struct. +func (hblstp *HBaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + hblstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + hblstp.Port = port + } + case "httpPath": + if v != nil { + var HTTPPath interface{} + err = json.Unmarshal(*v, &HTTPPath) + if err != nil { + return err + } + hblstp.HTTPPath = HTTPPath + } + case "authenticationType": + if v != nil { + var authenticationType HBaseAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + hblstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + hblstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hblstp.Password = password + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + hblstp.EnableSsl = enableSsl + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + hblstp.TrustedCertPath = trustedCertPath + } + case "allowHostNameCNMismatch": + if v != nil { + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) + if err != nil { + return err + } + hblstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + hblstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hblstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// HBaseObjectDataset hBase server dataset. +type HBaseObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HBaseObjectDataset. +func (hbod HBaseObjectDataset) MarshalJSON() ([]byte, error) { + hbod.Type = TypeBasicDatasetTypeHBaseObject + objectMap := make(map[string]interface{}) + if hbod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = hbod.GenericDatasetTypeProperties + } + if hbod.Description != nil { + objectMap["description"] = hbod.Description + } + if hbod.Structure != nil { + objectMap["structure"] = hbod.Structure + } + if hbod.Schema != nil { + objectMap["schema"] = hbod.Schema + } + if hbod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hbod.LinkedServiceName + } + if hbod.Parameters != nil { + objectMap["parameters"] = hbod.Parameters + } + if hbod.Annotations != nil { + objectMap["annotations"] = hbod.Annotations + } + if hbod.Folder != nil { + objectMap["folder"] = hbod.Folder + } + if hbod.Type != "" { + objectMap["type"] = hbod.Type + } + for k, v := range hbod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return &hbod, true +} + +// AsGreenplumTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for HBaseObjectDataset. +func (hbod HBaseObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &hbod, true +} + +// UnmarshalJSON is the custom unmarshaler for HBaseObjectDataset struct. +func (hbod *HBaseObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + hbod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hbod.AdditionalProperties == nil { + hbod.AdditionalProperties = make(map[string]interface{}) + } + hbod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hbod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + hbod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + hbod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hbod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hbod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hbod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + hbod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hbod.Type = typeVar + } + } + } + + return nil +} + +// HBaseSource a copy activity HBase server source. +type HBaseSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HBaseSource. +func (hbs HBaseSource) MarshalJSON() ([]byte, error) { + hbs.Type = TypeBasicCopySourceTypeHBaseSource + objectMap := make(map[string]interface{}) + if hbs.Query != nil { + objectMap["query"] = hbs.Query + } + if hbs.QueryTimeout != nil { + objectMap["queryTimeout"] = hbs.QueryTimeout + } + if hbs.AdditionalColumns != nil { + objectMap["additionalColumns"] = hbs.AdditionalColumns + } + if hbs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = hbs.SourceRetryCount + } + if hbs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = hbs.SourceRetryWait + } + if hbs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hbs.MaxConcurrentConnections + } + if hbs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hbs.DisableMetricsCollection + } + if hbs.Type != "" { + objectMap["type"] = hbs.Type + } + for k, v := range hbs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsHBaseSource() (*HBaseSource, bool) { + return &hbs, true +} + +// AsGreenplumSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &hbs, true +} + +// AsBinarySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for HBaseSource. +func (hbs HBaseSource) AsBasicCopySource() (BasicCopySource, bool) { + return &hbs, true +} + +// UnmarshalJSON is the custom unmarshaler for HBaseSource struct. +func (hbs *HBaseSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + hbs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + hbs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + hbs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hbs.AdditionalProperties == nil { + hbs.AdditionalProperties = make(map[string]interface{}) + } + hbs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + hbs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + hbs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + hbs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hbs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hbs.Type = typeVar + } + } + } + + return nil +} + +// HDInsightHiveActivity hDInsight Hive activity type. +type HDInsightHiveActivity struct { + // HDInsightHiveActivityTypeProperties - HDInsight Hive activity properties. + *HDInsightHiveActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) MarshalJSON() ([]byte, error) { + hiha.Type = TypeBasicActivityTypeHDInsightHive + objectMap := make(map[string]interface{}) + if hiha.HDInsightHiveActivityTypeProperties != nil { + objectMap["typeProperties"] = hiha.HDInsightHiveActivityTypeProperties + } + if hiha.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hiha.LinkedServiceName + } + if hiha.Policy != nil { + objectMap["policy"] = hiha.Policy + } + if hiha.Name != nil { + objectMap["name"] = hiha.Name + } + if hiha.Description != nil { + objectMap["description"] = hiha.Description + } + if hiha.State != "" { + objectMap["state"] = hiha.State + } + if hiha.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = hiha.OnInactiveMarkAs + } + if hiha.DependsOn != nil { + objectMap["dependsOn"] = hiha.DependsOn + } + if hiha.UserProperties != nil { + objectMap["userProperties"] = hiha.UserProperties + } + if hiha.Type != "" { + objectMap["type"] = hiha.Type + } + for k, v := range hiha.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return &hiha, true +} + +// AsCopyActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &hiha, true +} + +// AsWebHookActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for HDInsightHiveActivity. +func (hiha HDInsightHiveActivity) AsBasicActivity() (BasicActivity, bool) { + return &hiha, true +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightHiveActivity struct. +func (hiha *HDInsightHiveActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hDInsightHiveActivityTypeProperties HDInsightHiveActivityTypeProperties + err = json.Unmarshal(*v, &hDInsightHiveActivityTypeProperties) + if err != nil { + return err + } + hiha.HDInsightHiveActivityTypeProperties = &hDInsightHiveActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hiha.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + hiha.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hiha.AdditionalProperties == nil { + hiha.AdditionalProperties = make(map[string]interface{}) + } + hiha.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hiha.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hiha.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + hiha.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + hiha.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + hiha.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + hiha.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hiha.Type = typeVar + } + } + } + + return nil +} + +// HDInsightHiveActivityTypeProperties hDInsight Hive activity properties. +type HDInsightHiveActivityTypeProperties struct { + // StorageLinkedServices - Storage linked service references. + StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` + // Arguments - User specified arguments to HDInsightActivity. + Arguments *[]interface{} `json:"arguments,omitempty"` + // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' + GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + // ScriptPath - Script path. Type: string (or Expression with resultType string). + ScriptPath interface{} `json:"scriptPath,omitempty"` + // ScriptLinkedService - Script linked service reference. + ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` + // Defines - Allows user to specify defines for Hive job request. + Defines map[string]interface{} `json:"defines"` + // Variables - User specified arguments under hivevar namespace. + Variables map[string]interface{} `json:"variables"` + // QueryTimeout - Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package) + QueryTimeout *int32 `json:"queryTimeout,omitempty"` +} + +// MarshalJSON is the custom marshaler for HDInsightHiveActivityTypeProperties. +func (hihatp HDInsightHiveActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hihatp.StorageLinkedServices != nil { + objectMap["storageLinkedServices"] = hihatp.StorageLinkedServices + } + if hihatp.Arguments != nil { + objectMap["arguments"] = hihatp.Arguments + } + if hihatp.GetDebugInfo != "" { + objectMap["getDebugInfo"] = hihatp.GetDebugInfo + } + if hihatp.ScriptPath != nil { + objectMap["scriptPath"] = hihatp.ScriptPath + } + if hihatp.ScriptLinkedService != nil { + objectMap["scriptLinkedService"] = hihatp.ScriptLinkedService + } + if hihatp.Defines != nil { + objectMap["defines"] = hihatp.Defines + } + if hihatp.Variables != nil { + objectMap["variables"] = hihatp.Variables + } + if hihatp.QueryTimeout != nil { + objectMap["queryTimeout"] = hihatp.QueryTimeout + } + return json.Marshal(objectMap) +} + +// HDInsightLinkedService hDInsight linked service. +type HDInsightLinkedService struct { + // HDInsightLinkedServiceTypeProperties - HDInsight linked service properties. + *HDInsightLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HDInsightLinkedService. +func (hils HDInsightLinkedService) MarshalJSON() ([]byte, error) { + hils.Type = TypeBasicLinkedServiceTypeHDInsight + objectMap := make(map[string]interface{}) + if hils.HDInsightLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hils.HDInsightLinkedServiceTypeProperties + } + if hils.ConnectVia != nil { + objectMap["connectVia"] = hils.ConnectVia + } + if hils.Description != nil { + objectMap["description"] = hils.Description + } + if hils.Parameters != nil { + objectMap["parameters"] = hils.Parameters + } + if hils.Annotations != nil { + objectMap["annotations"] = hils.Annotations + } + if hils.Type != "" { + objectMap["type"] = hils.Type + } + for k, v := range hils.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return &hils, true +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. +func (hils HDInsightLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hils, true +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightLinkedService struct. +func (hils *HDInsightLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hDInsightLinkedServiceTypeProperties HDInsightLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hDInsightLinkedServiceTypeProperties) + if err != nil { + return err + } + hils.HDInsightLinkedServiceTypeProperties = &hDInsightLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hils.AdditionalProperties == nil { + hils.AdditionalProperties = make(map[string]interface{}) + } + hils.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + hils.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hils.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hils.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hils.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hils.Type = typeVar + } + } + } + + return nil +} + +// HDInsightLinkedServiceTypeProperties hDInsight linked service properties. +type HDInsightLinkedServiceTypeProperties struct { + // ClusterURI - HDInsight cluster URI. Type: string (or Expression with resultType string). + ClusterURI interface{} `json:"clusterUri,omitempty"` + // UserName - HDInsight cluster user name. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - HDInsight cluster password. + Password BasicSecretBase `json:"password,omitempty"` + // LinkedServiceName - The Azure Storage linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // HcatalogLinkedServiceName - A reference to the Azure SQL linked service that points to the HCatalog database. + HcatalogLinkedServiceName *LinkedServiceReference `json:"hcatalogLinkedServiceName,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // IsEspEnabled - Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. + IsEspEnabled interface{} `json:"isEspEnabled,omitempty"` + // FileSystem - 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"` +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightLinkedServiceTypeProperties struct. +func (hilstp *HDInsightLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "clusterUri": + if v != nil { + var clusterURI interface{} + err = json.Unmarshal(*v, &clusterURI) + if err != nil { + return err + } + hilstp.ClusterURI = clusterURI + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + hilstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hilstp.Password = password + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hilstp.LinkedServiceName = &linkedServiceName + } + case "hcatalogLinkedServiceName": + if v != nil { + var hcatalogLinkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &hcatalogLinkedServiceName) + if err != nil { + return err + } + hilstp.HcatalogLinkedServiceName = &hcatalogLinkedServiceName + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hilstp.EncryptedCredential = &encryptedCredential + } + case "isEspEnabled": + if v != nil { + var isEspEnabled interface{} + err = json.Unmarshal(*v, &isEspEnabled) + if err != nil { + return err + } + hilstp.IsEspEnabled = isEspEnabled + } + case "fileSystem": + if v != nil { + var fileSystem interface{} + err = json.Unmarshal(*v, &fileSystem) + if err != nil { + return err + } + hilstp.FileSystem = fileSystem + } + } + } + + return nil +} + +// HDInsightMapReduceActivity hDInsight MapReduce activity type. +type HDInsightMapReduceActivity struct { + // HDInsightMapReduceActivityTypeProperties - HDInsight MapReduce activity properties. + *HDInsightMapReduceActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) MarshalJSON() ([]byte, error) { + himra.Type = TypeBasicActivityTypeHDInsightMapReduce + objectMap := make(map[string]interface{}) + if himra.HDInsightMapReduceActivityTypeProperties != nil { + objectMap["typeProperties"] = himra.HDInsightMapReduceActivityTypeProperties + } + if himra.LinkedServiceName != nil { + objectMap["linkedServiceName"] = himra.LinkedServiceName + } + if himra.Policy != nil { + objectMap["policy"] = himra.Policy + } + if himra.Name != nil { + objectMap["name"] = himra.Name + } + if himra.Description != nil { + objectMap["description"] = himra.Description + } + if himra.State != "" { + objectMap["state"] = himra.State + } + if himra.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = himra.OnInactiveMarkAs + } + if himra.DependsOn != nil { + objectMap["dependsOn"] = himra.DependsOn + } + if himra.UserProperties != nil { + objectMap["userProperties"] = himra.UserProperties + } + if himra.Type != "" { + objectMap["type"] = himra.Type + } + for k, v := range himra.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return &himra, true +} + +// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &himra, true +} + +// AsWebHookActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for HDInsightMapReduceActivity. +func (himra HDInsightMapReduceActivity) AsBasicActivity() (BasicActivity, bool) { + return &himra, true +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightMapReduceActivity struct. +func (himra *HDInsightMapReduceActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hDInsightMapReduceActivityTypeProperties HDInsightMapReduceActivityTypeProperties + err = json.Unmarshal(*v, &hDInsightMapReduceActivityTypeProperties) + if err != nil { + return err + } + himra.HDInsightMapReduceActivityTypeProperties = &hDInsightMapReduceActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + himra.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + himra.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if himra.AdditionalProperties == nil { + himra.AdditionalProperties = make(map[string]interface{}) + } + himra.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + himra.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + himra.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + himra.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + himra.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + himra.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + himra.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + himra.Type = typeVar + } + } + } + + return nil +} + +// HDInsightMapReduceActivityTypeProperties hDInsight MapReduce activity properties. +type HDInsightMapReduceActivityTypeProperties struct { + // StorageLinkedServices - Storage linked service references. + StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` + // Arguments - User specified arguments to HDInsightActivity. + Arguments *[]interface{} `json:"arguments,omitempty"` + // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' + GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + // ClassName - Class name. Type: string (or Expression with resultType string). + ClassName interface{} `json:"className,omitempty"` + // JarFilePath - Jar path. Type: string (or Expression with resultType string). + JarFilePath interface{} `json:"jarFilePath,omitempty"` + // JarLinkedService - Jar linked service reference. + JarLinkedService *LinkedServiceReference `json:"jarLinkedService,omitempty"` + // JarLibs - Jar libs. + JarLibs *[]interface{} `json:"jarLibs,omitempty"` + // Defines - Allows user to specify defines for the MapReduce job request. + Defines map[string]interface{} `json:"defines"` +} + +// MarshalJSON is the custom marshaler for HDInsightMapReduceActivityTypeProperties. +func (himratp HDInsightMapReduceActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if himratp.StorageLinkedServices != nil { + objectMap["storageLinkedServices"] = himratp.StorageLinkedServices + } + if himratp.Arguments != nil { + objectMap["arguments"] = himratp.Arguments + } + if himratp.GetDebugInfo != "" { + objectMap["getDebugInfo"] = himratp.GetDebugInfo + } + if himratp.ClassName != nil { + objectMap["className"] = himratp.ClassName + } + if himratp.JarFilePath != nil { + objectMap["jarFilePath"] = himratp.JarFilePath + } + if himratp.JarLinkedService != nil { + objectMap["jarLinkedService"] = himratp.JarLinkedService + } + if himratp.JarLibs != nil { + objectMap["jarLibs"] = himratp.JarLibs + } + if himratp.Defines != nil { + objectMap["defines"] = himratp.Defines + } + return json.Marshal(objectMap) +} + +// HDInsightOnDemandLinkedService hDInsight ondemand linked service. +type HDInsightOnDemandLinkedService struct { + // HDInsightOnDemandLinkedServiceTypeProperties - HDInsight ondemand linked service properties. + *HDInsightOnDemandLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) MarshalJSON() ([]byte, error) { + hiodls.Type = TypeBasicLinkedServiceTypeHDInsightOnDemand + objectMap := make(map[string]interface{}) + if hiodls.HDInsightOnDemandLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hiodls.HDInsightOnDemandLinkedServiceTypeProperties + } + if hiodls.ConnectVia != nil { + objectMap["connectVia"] = hiodls.ConnectVia + } + if hiodls.Description != nil { + objectMap["description"] = hiodls.Description + } + if hiodls.Parameters != nil { + objectMap["parameters"] = hiodls.Parameters + } + if hiodls.Annotations != nil { + objectMap["annotations"] = hiodls.Annotations + } + if hiodls.Type != "" { + objectMap["type"] = hiodls.Type + } + for k, v := range hiodls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return &hiodls, true +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. +func (hiodls HDInsightOnDemandLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hiodls, true +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightOnDemandLinkedService struct. +func (hiodls *HDInsightOnDemandLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hDInsightOnDemandLinkedServiceTypeProperties HDInsightOnDemandLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hDInsightOnDemandLinkedServiceTypeProperties) + if err != nil { + return err + } + hiodls.HDInsightOnDemandLinkedServiceTypeProperties = &hDInsightOnDemandLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hiodls.AdditionalProperties == nil { + hiodls.AdditionalProperties = make(map[string]interface{}) + } + hiodls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + hiodls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hiodls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hiodls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hiodls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hiodls.Type = typeVar + } + } + } + + return nil +} + +// HDInsightOnDemandLinkedServiceTypeProperties hDInsight ondemand linked service properties. +type HDInsightOnDemandLinkedServiceTypeProperties struct { + // ClusterSize - Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int (or Expression with resultType int). + ClusterSize interface{} `json:"clusterSize,omitempty"` + // TimeToLive - 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"` + // Version - Version of the HDInsight cluster.  Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // LinkedServiceName - Azure Storage linked service to be used by the on-demand cluster for storing and processing data. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // HostSubscriptionID - The customer’s subscription to host the cluster. Type: string (or Expression with resultType string). + HostSubscriptionID interface{} `json:"hostSubscriptionId,omitempty"` + // ServicePrincipalID - The service principal id for the hostSubscriptionId. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The key for the service principal id. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - The Tenant id/name to which the service principal belongs. Type: string (or Expression with resultType string). + Tenant interface{} `json:"tenant,omitempty"` + // ClusterResourceGroup - The resource group where the cluster belongs. Type: string (or Expression with resultType string). + ClusterResourceGroup interface{} `json:"clusterResourceGroup,omitempty"` + // ClusterNamePrefix - The prefix of cluster name, postfix will be distinct with timestamp. Type: string (or Expression with resultType string). + ClusterNamePrefix interface{} `json:"clusterNamePrefix,omitempty"` + // ClusterUserName - The username to access the cluster. Type: string (or Expression with resultType string). + ClusterUserName interface{} `json:"clusterUserName,omitempty"` + // ClusterPassword - The password to access the cluster. + ClusterPassword BasicSecretBase `json:"clusterPassword,omitempty"` + // ClusterSSHUserName - The username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression with resultType string). + ClusterSSHUserName interface{} `json:"clusterSshUserName,omitempty"` + // ClusterSSHPassword - The password to SSH remotely connect cluster’s node (for Linux). + ClusterSSHPassword BasicSecretBase `json:"clusterSshPassword,omitempty"` + // AdditionalLinkedServiceNames - 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"` + // HcatalogLinkedServiceName - 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"` + // ClusterType - The cluster type. Type: string (or Expression with resultType string). + ClusterType interface{} `json:"clusterType,omitempty"` + // SparkVersion - The version of spark if the cluster type is 'spark'. Type: string (or Expression with resultType string). + SparkVersion interface{} `json:"sparkVersion,omitempty"` + // CoreConfiguration - Specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to be created. + CoreConfiguration interface{} `json:"coreConfiguration,omitempty"` + // HBaseConfiguration - Specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. + HBaseConfiguration interface{} `json:"hBaseConfiguration,omitempty"` + // HdfsConfiguration - Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster. + HdfsConfiguration interface{} `json:"hdfsConfiguration,omitempty"` + // HiveConfiguration - Specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster. + HiveConfiguration interface{} `json:"hiveConfiguration,omitempty"` + // MapReduceConfiguration - Specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster. + MapReduceConfiguration interface{} `json:"mapReduceConfiguration,omitempty"` + // OozieConfiguration - Specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster. + OozieConfiguration interface{} `json:"oozieConfiguration,omitempty"` + // StormConfiguration - Specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster. + StormConfiguration interface{} `json:"stormConfiguration,omitempty"` + // YarnConfiguration - Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster. + YarnConfiguration interface{} `json:"yarnConfiguration,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // HeadNodeSize - Specifies the size of the head node for the HDInsight cluster. + HeadNodeSize interface{} `json:"headNodeSize,omitempty"` + // DataNodeSize - Specifies the size of the data node for the HDInsight cluster. + DataNodeSize interface{} `json:"dataNodeSize,omitempty"` + // ZookeeperNodeSize - Specifies the size of the Zoo Keeper node for the HDInsight cluster. + ZookeeperNodeSize interface{} `json:"zookeeperNodeSize,omitempty"` + // ScriptActions - 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"` + // VirtualNetworkID - 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"` + // SubnetName - 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"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightOnDemandLinkedServiceTypeProperties struct. +func (hiodlstp *HDInsightOnDemandLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "clusterSize": + if v != nil { + var clusterSize interface{} + err = json.Unmarshal(*v, &clusterSize) + if err != nil { + return err + } + hiodlstp.ClusterSize = clusterSize + } + case "timeToLive": + if v != nil { + var timeToLive interface{} + err = json.Unmarshal(*v, &timeToLive) + if err != nil { + return err + } + hiodlstp.TimeToLive = timeToLive + } + case "version": + if v != nil { + var version interface{} + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + hiodlstp.Version = version + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hiodlstp.LinkedServiceName = &linkedServiceName + } + case "hostSubscriptionId": + if v != nil { + var hostSubscriptionID interface{} + err = json.Unmarshal(*v, &hostSubscriptionID) + if err != nil { + return err + } + hiodlstp.HostSubscriptionID = hostSubscriptionID + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + hiodlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hiodlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + hiodlstp.Tenant = tenant + } + case "clusterResourceGroup": + if v != nil { + var clusterResourceGroup interface{} + err = json.Unmarshal(*v, &clusterResourceGroup) + if err != nil { + return err + } + hiodlstp.ClusterResourceGroup = clusterResourceGroup + } + case "clusterNamePrefix": + if v != nil { + var clusterNamePrefix interface{} + err = json.Unmarshal(*v, &clusterNamePrefix) + if err != nil { + return err + } + hiodlstp.ClusterNamePrefix = clusterNamePrefix + } + case "clusterUserName": + if v != nil { + var clusterUserName interface{} + err = json.Unmarshal(*v, &clusterUserName) + if err != nil { + return err + } + hiodlstp.ClusterUserName = clusterUserName + } + case "clusterPassword": + if v != nil { + clusterPassword, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hiodlstp.ClusterPassword = clusterPassword + } + case "clusterSshUserName": + if v != nil { + var clusterSSHUserName interface{} + err = json.Unmarshal(*v, &clusterSSHUserName) + if err != nil { + return err + } + hiodlstp.ClusterSSHUserName = clusterSSHUserName + } + case "clusterSshPassword": + if v != nil { + clusterSSHPassword, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hiodlstp.ClusterSSHPassword = clusterSSHPassword + } + case "additionalLinkedServiceNames": + if v != nil { + var additionalLinkedServiceNames []LinkedServiceReference + err = json.Unmarshal(*v, &additionalLinkedServiceNames) + if err != nil { + return err + } + hiodlstp.AdditionalLinkedServiceNames = &additionalLinkedServiceNames + } + case "hcatalogLinkedServiceName": + if v != nil { + var hcatalogLinkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &hcatalogLinkedServiceName) + if err != nil { + return err + } + hiodlstp.HcatalogLinkedServiceName = &hcatalogLinkedServiceName + } + case "clusterType": + if v != nil { + var clusterType interface{} + err = json.Unmarshal(*v, &clusterType) + if err != nil { + return err + } + hiodlstp.ClusterType = clusterType + } + case "sparkVersion": + if v != nil { + var sparkVersion interface{} + err = json.Unmarshal(*v, &sparkVersion) + if err != nil { + return err + } + hiodlstp.SparkVersion = sparkVersion + } + case "coreConfiguration": + if v != nil { + var coreConfiguration interface{} + err = json.Unmarshal(*v, &coreConfiguration) + if err != nil { + return err + } + hiodlstp.CoreConfiguration = coreConfiguration + } + case "hBaseConfiguration": + if v != nil { + var hBaseConfiguration interface{} + err = json.Unmarshal(*v, &hBaseConfiguration) + if err != nil { + return err + } + hiodlstp.HBaseConfiguration = hBaseConfiguration + } + case "hdfsConfiguration": + if v != nil { + var hdfsConfiguration interface{} + err = json.Unmarshal(*v, &hdfsConfiguration) + if err != nil { + return err + } + hiodlstp.HdfsConfiguration = hdfsConfiguration + } + case "hiveConfiguration": + if v != nil { + var hiveConfiguration interface{} + err = json.Unmarshal(*v, &hiveConfiguration) + if err != nil { + return err + } + hiodlstp.HiveConfiguration = hiveConfiguration + } + case "mapReduceConfiguration": + if v != nil { + var mapReduceConfiguration interface{} + err = json.Unmarshal(*v, &mapReduceConfiguration) + if err != nil { + return err + } + hiodlstp.MapReduceConfiguration = mapReduceConfiguration + } + case "oozieConfiguration": + if v != nil { + var oozieConfiguration interface{} + err = json.Unmarshal(*v, &oozieConfiguration) + if err != nil { + return err + } + hiodlstp.OozieConfiguration = oozieConfiguration + } + case "stormConfiguration": + if v != nil { + var stormConfiguration interface{} + err = json.Unmarshal(*v, &stormConfiguration) + if err != nil { + return err + } + hiodlstp.StormConfiguration = stormConfiguration + } + case "yarnConfiguration": + if v != nil { + var yarnConfiguration interface{} + err = json.Unmarshal(*v, &yarnConfiguration) + if err != nil { + return err + } + hiodlstp.YarnConfiguration = yarnConfiguration + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hiodlstp.EncryptedCredential = &encryptedCredential + } + case "headNodeSize": + if v != nil { + var headNodeSize interface{} + err = json.Unmarshal(*v, &headNodeSize) + if err != nil { + return err + } + hiodlstp.HeadNodeSize = headNodeSize + } + case "dataNodeSize": + if v != nil { + var dataNodeSize interface{} + err = json.Unmarshal(*v, &dataNodeSize) + if err != nil { + return err + } + hiodlstp.DataNodeSize = dataNodeSize + } + case "zookeeperNodeSize": + if v != nil { + var zookeeperNodeSize interface{} + err = json.Unmarshal(*v, &zookeeperNodeSize) + if err != nil { + return err + } + hiodlstp.ZookeeperNodeSize = zookeeperNodeSize + } + case "scriptActions": + if v != nil { + var scriptActions []ScriptAction + err = json.Unmarshal(*v, &scriptActions) + if err != nil { + return err + } + hiodlstp.ScriptActions = &scriptActions + } + case "virtualNetworkId": + if v != nil { + var virtualNetworkID interface{} + err = json.Unmarshal(*v, &virtualNetworkID) + if err != nil { + return err + } + hiodlstp.VirtualNetworkID = virtualNetworkID + } + case "subnetName": + if v != nil { + var subnetName interface{} + err = json.Unmarshal(*v, &subnetName) + if err != nil { + return err + } + hiodlstp.SubnetName = subnetName + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + hiodlstp.Credential = &credential + } + } + } + + return nil +} + +// HDInsightPigActivity hDInsight Pig activity type. +type HDInsightPigActivity struct { + // HDInsightPigActivityTypeProperties - HDInsight Pig activity properties. + *HDInsightPigActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HDInsightPigActivity. +func (hipa HDInsightPigActivity) MarshalJSON() ([]byte, error) { + hipa.Type = TypeBasicActivityTypeHDInsightPig + objectMap := make(map[string]interface{}) + if hipa.HDInsightPigActivityTypeProperties != nil { + objectMap["typeProperties"] = hipa.HDInsightPigActivityTypeProperties + } + if hipa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hipa.LinkedServiceName + } + if hipa.Policy != nil { + objectMap["policy"] = hipa.Policy + } + if hipa.Name != nil { + objectMap["name"] = hipa.Name + } + if hipa.Description != nil { + objectMap["description"] = hipa.Description + } + if hipa.State != "" { + objectMap["state"] = hipa.State + } + if hipa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = hipa.OnInactiveMarkAs + } + if hipa.DependsOn != nil { + objectMap["dependsOn"] = hipa.DependsOn + } + if hipa.UserProperties != nil { + objectMap["userProperties"] = hipa.UserProperties + } + if hipa.Type != "" { + objectMap["type"] = hipa.Type + } + for k, v := range hipa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return &hipa, true +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &hipa, true +} + +// AsWebHookActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for HDInsightPigActivity. +func (hipa HDInsightPigActivity) AsBasicActivity() (BasicActivity, bool) { + return &hipa, true +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightPigActivity struct. +func (hipa *HDInsightPigActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hDInsightPigActivityTypeProperties HDInsightPigActivityTypeProperties + err = json.Unmarshal(*v, &hDInsightPigActivityTypeProperties) + if err != nil { + return err + } + hipa.HDInsightPigActivityTypeProperties = &hDInsightPigActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hipa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + hipa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hipa.AdditionalProperties == nil { + hipa.AdditionalProperties = make(map[string]interface{}) + } + hipa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hipa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hipa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + hipa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + hipa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + hipa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + hipa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hipa.Type = typeVar + } + } + } + + return nil +} + +// HDInsightPigActivityTypeProperties hDInsight Pig activity properties. +type HDInsightPigActivityTypeProperties struct { + // StorageLinkedServices - Storage linked service references. + StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` + // Arguments - User specified arguments to HDInsightActivity. Type: array (or Expression with resultType array). + Arguments interface{} `json:"arguments,omitempty"` + // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' + GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + // ScriptPath - Script path. Type: string (or Expression with resultType string). + ScriptPath interface{} `json:"scriptPath,omitempty"` + // ScriptLinkedService - Script linked service reference. + ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` + // Defines - Allows user to specify defines for Pig job request. + Defines map[string]interface{} `json:"defines"` +} + +// MarshalJSON is the custom marshaler for HDInsightPigActivityTypeProperties. +func (hipatp HDInsightPigActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hipatp.StorageLinkedServices != nil { + objectMap["storageLinkedServices"] = hipatp.StorageLinkedServices + } + if hipatp.Arguments != nil { + objectMap["arguments"] = hipatp.Arguments + } + if hipatp.GetDebugInfo != "" { + objectMap["getDebugInfo"] = hipatp.GetDebugInfo + } + if hipatp.ScriptPath != nil { + objectMap["scriptPath"] = hipatp.ScriptPath + } + if hipatp.ScriptLinkedService != nil { + objectMap["scriptLinkedService"] = hipatp.ScriptLinkedService + } + if hipatp.Defines != nil { + objectMap["defines"] = hipatp.Defines + } + return json.Marshal(objectMap) +} + +// HDInsightSparkActivity hDInsight Spark activity. +type HDInsightSparkActivity struct { + // HDInsightSparkActivityTypeProperties - HDInsight spark activity properties. + *HDInsightSparkActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) MarshalJSON() ([]byte, error) { + hisa.Type = TypeBasicActivityTypeHDInsightSpark + objectMap := make(map[string]interface{}) + if hisa.HDInsightSparkActivityTypeProperties != nil { + objectMap["typeProperties"] = hisa.HDInsightSparkActivityTypeProperties + } + if hisa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hisa.LinkedServiceName + } + if hisa.Policy != nil { + objectMap["policy"] = hisa.Policy + } + if hisa.Name != nil { + objectMap["name"] = hisa.Name + } + if hisa.Description != nil { + objectMap["description"] = hisa.Description + } + if hisa.State != "" { + objectMap["state"] = hisa.State + } + if hisa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = hisa.OnInactiveMarkAs + } + if hisa.DependsOn != nil { + objectMap["dependsOn"] = hisa.DependsOn + } + if hisa.UserProperties != nil { + objectMap["userProperties"] = hisa.UserProperties + } + if hisa.Type != "" { + objectMap["type"] = hisa.Type + } + for k, v := range hisa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return &hisa, true +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &hisa, true +} + +// AsWebHookActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for HDInsightSparkActivity. +func (hisa HDInsightSparkActivity) AsBasicActivity() (BasicActivity, bool) { + return &hisa, true +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightSparkActivity struct. +func (hisa *HDInsightSparkActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hDInsightSparkActivityTypeProperties HDInsightSparkActivityTypeProperties + err = json.Unmarshal(*v, &hDInsightSparkActivityTypeProperties) + if err != nil { + return err + } + hisa.HDInsightSparkActivityTypeProperties = &hDInsightSparkActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hisa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + hisa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hisa.AdditionalProperties == nil { + hisa.AdditionalProperties = make(map[string]interface{}) + } + hisa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hisa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hisa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + hisa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + hisa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + hisa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + hisa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hisa.Type = typeVar + } + } + } + + return nil +} + +// HDInsightSparkActivityTypeProperties hDInsight spark activity properties. +type HDInsightSparkActivityTypeProperties struct { + // RootPath - The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression with resultType string). + RootPath interface{} `json:"rootPath,omitempty"` + // EntryFilePath - 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"` + // Arguments - The user-specified arguments to HDInsightSparkActivity. + Arguments *[]interface{} `json:"arguments,omitempty"` + // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' + GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + // SparkJobLinkedService - The storage linked service for uploading the entry file and dependencies, and for receiving logs. + SparkJobLinkedService *LinkedServiceReference `json:"sparkJobLinkedService,omitempty"` + // ClassName - The application's Java/Spark main class. + ClassName *string `json:"className,omitempty"` + // ProxyUser - The user to impersonate that will execute the job. Type: string (or Expression with resultType string). + ProxyUser interface{} `json:"proxyUser,omitempty"` + // SparkConfig - Spark configuration property. + SparkConfig map[string]interface{} `json:"sparkConfig"` +} + +// MarshalJSON is the custom marshaler for HDInsightSparkActivityTypeProperties. +func (hisatp HDInsightSparkActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hisatp.RootPath != nil { + objectMap["rootPath"] = hisatp.RootPath + } + if hisatp.EntryFilePath != nil { + objectMap["entryFilePath"] = hisatp.EntryFilePath + } + if hisatp.Arguments != nil { + objectMap["arguments"] = hisatp.Arguments + } + if hisatp.GetDebugInfo != "" { + objectMap["getDebugInfo"] = hisatp.GetDebugInfo + } + if hisatp.SparkJobLinkedService != nil { + objectMap["sparkJobLinkedService"] = hisatp.SparkJobLinkedService + } + if hisatp.ClassName != nil { + objectMap["className"] = hisatp.ClassName + } + if hisatp.ProxyUser != nil { + objectMap["proxyUser"] = hisatp.ProxyUser + } + if hisatp.SparkConfig != nil { + objectMap["sparkConfig"] = hisatp.SparkConfig + } + return json.Marshal(objectMap) +} + +// HDInsightStreamingActivity hDInsight streaming activity type. +type HDInsightStreamingActivity struct { + // HDInsightStreamingActivityTypeProperties - HDInsight streaming activity properties. + *HDInsightStreamingActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) MarshalJSON() ([]byte, error) { + hisa.Type = TypeBasicActivityTypeHDInsightStreaming + objectMap := make(map[string]interface{}) + if hisa.HDInsightStreamingActivityTypeProperties != nil { + objectMap["typeProperties"] = hisa.HDInsightStreamingActivityTypeProperties + } + if hisa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hisa.LinkedServiceName + } + if hisa.Policy != nil { + objectMap["policy"] = hisa.Policy + } + if hisa.Name != nil { + objectMap["name"] = hisa.Name + } + if hisa.Description != nil { + objectMap["description"] = hisa.Description + } + if hisa.State != "" { + objectMap["state"] = hisa.State + } + if hisa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = hisa.OnInactiveMarkAs + } + if hisa.DependsOn != nil { + objectMap["dependsOn"] = hisa.DependsOn + } + if hisa.UserProperties != nil { + objectMap["userProperties"] = hisa.UserProperties + } + if hisa.Type != "" { + objectMap["type"] = hisa.Type + } + for k, v := range hisa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return &hisa, true +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &hisa, true +} + +// AsWebHookActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for HDInsightStreamingActivity. +func (hisa HDInsightStreamingActivity) AsBasicActivity() (BasicActivity, bool) { + return &hisa, true +} + +// UnmarshalJSON is the custom unmarshaler for HDInsightStreamingActivity struct. +func (hisa *HDInsightStreamingActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hDInsightStreamingActivityTypeProperties HDInsightStreamingActivityTypeProperties + err = json.Unmarshal(*v, &hDInsightStreamingActivityTypeProperties) + if err != nil { + return err + } + hisa.HDInsightStreamingActivityTypeProperties = &hDInsightStreamingActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hisa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + hisa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hisa.AdditionalProperties == nil { + hisa.AdditionalProperties = make(map[string]interface{}) + } + hisa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + hisa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hisa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + hisa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + hisa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + hisa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + hisa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hisa.Type = typeVar + } + } + } + + return nil +} + +// HDInsightStreamingActivityTypeProperties hDInsight streaming activity properties. +type HDInsightStreamingActivityTypeProperties struct { + // StorageLinkedServices - Storage linked service references. + StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` + // Arguments - User specified arguments to HDInsightActivity. + Arguments *[]interface{} `json:"arguments,omitempty"` + // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' + GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` + // Mapper - Mapper executable name. Type: string (or Expression with resultType string). + Mapper interface{} `json:"mapper,omitempty"` + // Reducer - Reducer executable name. Type: string (or Expression with resultType string). + Reducer interface{} `json:"reducer,omitempty"` + // Input - Input blob path. Type: string (or Expression with resultType string). + Input interface{} `json:"input,omitempty"` + // Output - Output blob path. Type: string (or Expression with resultType string). + Output interface{} `json:"output,omitempty"` + // FilePaths - Paths to streaming job files. Can be directories. + FilePaths *[]interface{} `json:"filePaths,omitempty"` + // FileLinkedService - Linked service reference where the files are located. + FileLinkedService *LinkedServiceReference `json:"fileLinkedService,omitempty"` + // Combiner - Combiner executable name. Type: string (or Expression with resultType string). + Combiner interface{} `json:"combiner,omitempty"` + // CommandEnvironment - Command line environment values. + CommandEnvironment *[]interface{} `json:"commandEnvironment,omitempty"` + // Defines - Allows user to specify defines for streaming job request. + Defines map[string]interface{} `json:"defines"` +} + +// MarshalJSON is the custom marshaler for HDInsightStreamingActivityTypeProperties. +func (hisatp HDInsightStreamingActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if hisatp.StorageLinkedServices != nil { + objectMap["storageLinkedServices"] = hisatp.StorageLinkedServices + } + if hisatp.Arguments != nil { + objectMap["arguments"] = hisatp.Arguments + } + if hisatp.GetDebugInfo != "" { + objectMap["getDebugInfo"] = hisatp.GetDebugInfo + } + if hisatp.Mapper != nil { + objectMap["mapper"] = hisatp.Mapper + } + if hisatp.Reducer != nil { + objectMap["reducer"] = hisatp.Reducer + } + if hisatp.Input != nil { + objectMap["input"] = hisatp.Input + } + if hisatp.Output != nil { + objectMap["output"] = hisatp.Output + } + if hisatp.FilePaths != nil { + objectMap["filePaths"] = hisatp.FilePaths + } + if hisatp.FileLinkedService != nil { + objectMap["fileLinkedService"] = hisatp.FileLinkedService + } + if hisatp.Combiner != nil { + objectMap["combiner"] = hisatp.Combiner + } + if hisatp.CommandEnvironment != nil { + objectMap["commandEnvironment"] = hisatp.CommandEnvironment + } + if hisatp.Defines != nil { + objectMap["defines"] = hisatp.Defines + } + return json.Marshal(objectMap) +} + +// HTTPDataset a file in an HTTP web server. +type HTTPDataset struct { + // HTTPDatasetTypeProperties - Properties specific to this dataset type. + *HTTPDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HTTPDataset. +func (hd HTTPDataset) MarshalJSON() ([]byte, error) { + hd.Type = TypeBasicDatasetTypeHTTPFile + objectMap := make(map[string]interface{}) + if hd.HTTPDatasetTypeProperties != nil { + objectMap["typeProperties"] = hd.HTTPDatasetTypeProperties + } + if hd.Description != nil { + objectMap["description"] = hd.Description + } + if hd.Structure != nil { + objectMap["structure"] = hd.Structure + } + if hd.Schema != nil { + objectMap["schema"] = hd.Schema + } + if hd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hd.LinkedServiceName + } + if hd.Parameters != nil { + objectMap["parameters"] = hd.Parameters + } + if hd.Annotations != nil { + objectMap["annotations"] = hd.Annotations + } + if hd.Folder != nil { + objectMap["folder"] = hd.Folder + } + if hd.Type != "" { + objectMap["type"] = hd.Type + } + for k, v := range hd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return &hd, true +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for HTTPDataset. +func (hd HTTPDataset) AsBasicDataset() (BasicDataset, bool) { + return &hd, true +} + +// UnmarshalJSON is the custom unmarshaler for HTTPDataset struct. +func (hd *HTTPDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var HTTPDatasetTypeProperties HTTPDatasetTypeProperties + err = json.Unmarshal(*v, &HTTPDatasetTypeProperties) + if err != nil { + return err + } + hd.HTTPDatasetTypeProperties = &HTTPDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hd.AdditionalProperties == nil { + hd.AdditionalProperties = make(map[string]interface{}) + } + hd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + hd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + hd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + hd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hd.Type = typeVar + } + } + } + + return nil +} + +// HTTPDatasetTypeProperties properties specific to this dataset type. +type HTTPDatasetTypeProperties struct { + // RelativeURL - 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"` + // RequestMethod - The HTTP method for the HTTP request. Type: string (or Expression with resultType string). + RequestMethod interface{} `json:"requestMethod,omitempty"` + // RequestBody - The body for the HTTP request. Type: string (or Expression with resultType string). + RequestBody interface{} `json:"requestBody,omitempty"` + // AdditionalHeaders - 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"` + // Format - The format of files. + Format BasicDatasetStorageFormat `json:"format,omitempty"` + // Compression - The data compression method used on files. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HTTPDatasetTypeProperties struct. +func (hdtp *HTTPDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "relativeUrl": + if v != nil { + var relativeURL interface{} + err = json.Unmarshal(*v, &relativeURL) + if err != nil { + return err + } + hdtp.RelativeURL = relativeURL + } + case "requestMethod": + if v != nil { + var requestMethod interface{} + err = json.Unmarshal(*v, &requestMethod) + if err != nil { + return err + } + hdtp.RequestMethod = requestMethod + } + case "requestBody": + if v != nil { + var requestBody interface{} + err = json.Unmarshal(*v, &requestBody) + if err != nil { + return err + } + hdtp.RequestBody = requestBody + } + case "additionalHeaders": + if v != nil { + var additionalHeaders interface{} + err = json.Unmarshal(*v, &additionalHeaders) + if err != nil { + return err + } + hdtp.AdditionalHeaders = additionalHeaders + } + case "format": + if v != nil { + formatVar, err := unmarshalBasicDatasetStorageFormat(*v) + if err != nil { + return err + } + hdtp.Format = formatVar + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + hdtp.Compression = &compression + } + } + } + + return nil +} + +// HTTPLinkedService linked service for an HTTP source. +type HTTPLinkedService struct { + // HTTPLinkedServiceTypeProperties - Properties specific to this linked service type. + *HTTPLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HTTPLinkedService. +func (hls HTTPLinkedService) MarshalJSON() ([]byte, error) { + hls.Type = TypeBasicLinkedServiceTypeHTTPServer + objectMap := make(map[string]interface{}) + if hls.HTTPLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hls.HTTPLinkedServiceTypeProperties + } + if hls.ConnectVia != nil { + objectMap["connectVia"] = hls.ConnectVia + } + if hls.Description != nil { + objectMap["description"] = hls.Description + } + if hls.Parameters != nil { + objectMap["parameters"] = hls.Parameters + } + if hls.Annotations != nil { + objectMap["annotations"] = hls.Annotations + } + if hls.Type != "" { + objectMap["type"] = hls.Type + } + for k, v := range hls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return &hls, true +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for HTTPLinkedService. +func (hls HTTPLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hls, true +} + +// UnmarshalJSON is the custom unmarshaler for HTTPLinkedService struct. +func (hls *HTTPLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var HTTPLinkedServiceTypeProperties HTTPLinkedServiceTypeProperties + err = json.Unmarshal(*v, &HTTPLinkedServiceTypeProperties) + if err != nil { + return err + } + hls.HTTPLinkedServiceTypeProperties = &HTTPLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hls.AdditionalProperties == nil { + hls.AdditionalProperties = make(map[string]interface{}) + } + hls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + hls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hls.Type = typeVar + } + } + } + + return nil +} + +// HTTPLinkedServiceTypeProperties properties specific to this linked service type. +type HTTPLinkedServiceTypeProperties struct { + // URL - 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"` + // AuthenticationType - The authentication type to be used to connect to the HTTP server. Possible values include: 'HTTPAuthenticationTypeBasic', 'HTTPAuthenticationTypeAnonymous', 'HTTPAuthenticationTypeDigest', 'HTTPAuthenticationTypeWindows', 'HTTPAuthenticationTypeClientCertificate' + AuthenticationType HTTPAuthenticationType `json:"authenticationType,omitempty"` + // UserName - User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. + Password BasicSecretBase `json:"password,omitempty"` + // AuthHeaders - The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type). + AuthHeaders interface{} `json:"authHeaders,omitempty"` + // EmbeddedCertData - 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"` + // CertThumbprint - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // EnableServerCertificateValidation - If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). + EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HTTPLinkedServiceTypeProperties struct. +func (hlstp *HTTPLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + hlstp.URL = URL + } + case "authenticationType": + if v != nil { + var authenticationType HTTPAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + hlstp.AuthenticationType = authenticationType + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + hlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hlstp.Password = password + } + case "authHeaders": + if v != nil { + var authHeaders interface{} + err = json.Unmarshal(*v, &authHeaders) + if err != nil { + return err + } + hlstp.AuthHeaders = authHeaders + } + case "embeddedCertData": + if v != nil { + var embeddedCertData interface{} + err = json.Unmarshal(*v, &embeddedCertData) + if err != nil { + return err + } + hlstp.EmbeddedCertData = embeddedCertData + } + case "certThumbprint": + if v != nil { + var certThumbprint interface{} + err = json.Unmarshal(*v, &certThumbprint) + if err != nil { + return err + } + hlstp.CertThumbprint = certThumbprint + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hlstp.EncryptedCredential = &encryptedCredential + } + case "enableServerCertificateValidation": + if v != nil { + var enableServerCertificateValidation interface{} + err = json.Unmarshal(*v, &enableServerCertificateValidation) + if err != nil { + return err + } + hlstp.EnableServerCertificateValidation = enableServerCertificateValidation + } + } + } + + return nil +} + +// HTTPReadSettings http read settings. +type HTTPReadSettings struct { + // RequestMethod - 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"` + // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + RequestBody interface{} `json:"requestBody,omitempty"` + // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // RequestTimeout - Specifies the timeout for a HTTP client to get HTTP response from HTTP server. Type: string (or Expression with resultType string). + RequestTimeout interface{} `json:"requestTimeout,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HTTPReadSettings. +func (hrs HTTPReadSettings) MarshalJSON() ([]byte, error) { + hrs.Type = TypeBasicStoreReadSettingsTypeHTTPReadSettings + objectMap := make(map[string]interface{}) + if hrs.RequestMethod != nil { + objectMap["requestMethod"] = hrs.RequestMethod + } + if hrs.RequestBody != nil { + objectMap["requestBody"] = hrs.RequestBody + } + if hrs.AdditionalHeaders != nil { + objectMap["additionalHeaders"] = hrs.AdditionalHeaders + } + if hrs.RequestTimeout != nil { + objectMap["requestTimeout"] = hrs.RequestTimeout + } + if hrs.AdditionalColumns != nil { + objectMap["additionalColumns"] = hrs.AdditionalColumns + } + if hrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections + } + if hrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hrs.DisableMetricsCollection + } + if hrs.Type != "" { + objectMap["type"] = hrs.Type + } + for k, v := range hrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return &hrs, true +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. +func (hrs HTTPReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &hrs, true +} + +// UnmarshalJSON is the custom unmarshaler for HTTPReadSettings struct. +func (hrs *HTTPReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "requestMethod": + if v != nil { + var requestMethod interface{} + err = json.Unmarshal(*v, &requestMethod) + if err != nil { + return err + } + hrs.RequestMethod = requestMethod + } + case "requestBody": + if v != nil { + var requestBody interface{} + err = json.Unmarshal(*v, &requestBody) + if err != nil { + return err + } + hrs.RequestBody = requestBody + } + case "additionalHeaders": + if v != nil { + var additionalHeaders interface{} + err = json.Unmarshal(*v, &additionalHeaders) + if err != nil { + return err + } + hrs.AdditionalHeaders = additionalHeaders + } + case "requestTimeout": + if v != nil { + var requestTimeout interface{} + err = json.Unmarshal(*v, &requestTimeout) + if err != nil { + return err + } + hrs.RequestTimeout = requestTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + hrs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hrs.AdditionalProperties == nil { + hrs.AdditionalProperties = make(map[string]interface{}) + } + hrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + hrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hrs.Type = typeVar + } + } + } + + return nil +} + +// HTTPServerLocation the location of http server. +type HTTPServerLocation struct { + // RelativeURL - Specify the relativeUrl of http server. Type: string (or Expression with resultType string) + RelativeURL interface{} `json:"relativeUrl,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HTTPServerLocation. +func (hsl HTTPServerLocation) MarshalJSON() ([]byte, error) { + hsl.Type = TypeBasicDatasetLocationTypeHTTPServerLocation + objectMap := make(map[string]interface{}) + if hsl.RelativeURL != nil { + objectMap["relativeUrl"] = hsl.RelativeURL + } + if hsl.FolderPath != nil { + objectMap["folderPath"] = hsl.FolderPath + } + if hsl.FileName != nil { + objectMap["fileName"] = hsl.FileName + } + if hsl.Type != "" { + objectMap["type"] = hsl.Type + } + for k, v := range hsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return &hsl, true +} + +// AsSftpLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for HTTPServerLocation. +func (hsl HTTPServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &hsl, true +} + +// UnmarshalJSON is the custom unmarshaler for HTTPServerLocation struct. +func (hsl *HTTPServerLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "relativeUrl": + if v != nil { + var relativeURL interface{} + err = json.Unmarshal(*v, &relativeURL) + if err != nil { + return err + } + hsl.RelativeURL = relativeURL + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hsl.AdditionalProperties == nil { + hsl.AdditionalProperties = make(map[string]interface{}) + } + hsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + hsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + hsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hsl.Type = typeVar + } + } + } + + return nil +} + +// HTTPSource a copy activity source for an HTTP file. +type HTTPSource struct { + // HTTPRequestTimeout - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HTTPSource. +func (hs HTTPSource) MarshalJSON() ([]byte, error) { + hs.Type = TypeBasicCopySourceTypeHTTPSource + objectMap := make(map[string]interface{}) + if hs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = hs.HTTPRequestTimeout + } + if hs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = hs.SourceRetryCount + } + if hs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = hs.SourceRetryWait + } + if hs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections + } + if hs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection + } + if hs.Type != "" { + objectMap["type"] = hs.Type + } + for k, v := range hs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHTTPSource() (*HTTPSource, bool) { + return &hs, true +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for HTTPSource. +func (hs HTTPSource) AsBasicCopySource() (BasicCopySource, bool) { + return &hs, true +} + +// UnmarshalJSON is the custom unmarshaler for HTTPSource struct. +func (hs *HTTPSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + hs.HTTPRequestTimeout = HTTPRequestTimeout + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hs.AdditionalProperties == nil { + hs.AdditionalProperties = make(map[string]interface{}) + } + hs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + hs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + hs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + hs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hs.Type = typeVar + } + } + } + + return nil +} + +// HdfsLinkedService hadoop Distributed File System (HDFS) linked service. +type HdfsLinkedService struct { + // HdfsLinkedServiceTypeProperties - HDFS linked service properties. + *HdfsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HdfsLinkedService. +func (hls HdfsLinkedService) MarshalJSON() ([]byte, error) { + hls.Type = TypeBasicLinkedServiceTypeHdfs + objectMap := make(map[string]interface{}) + if hls.HdfsLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hls.HdfsLinkedServiceTypeProperties + } + if hls.ConnectVia != nil { + objectMap["connectVia"] = hls.ConnectVia + } + if hls.Description != nil { + objectMap["description"] = hls.Description + } + if hls.Parameters != nil { + objectMap["parameters"] = hls.Parameters + } + if hls.Annotations != nil { + objectMap["annotations"] = hls.Annotations + } + if hls.Type != "" { + objectMap["type"] = hls.Type + } + for k, v := range hls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return &hls, true +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for HdfsLinkedService. +func (hls HdfsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hls, true +} + +// UnmarshalJSON is the custom unmarshaler for HdfsLinkedService struct. +func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hdfsLinkedServiceTypeProperties HdfsLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hdfsLinkedServiceTypeProperties) + if err != nil { + return err + } + hls.HdfsLinkedServiceTypeProperties = &hdfsLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hls.AdditionalProperties == nil { + hls.AdditionalProperties = make(map[string]interface{}) + } + hls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + hls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hls.Type = typeVar + } + } + } + + return nil +} + +// HdfsLinkedServiceTypeProperties HDFS linked service properties. +type HdfsLinkedServiceTypeProperties struct { + // URL - 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"` + // AuthenticationType - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // UserName - User name for Windows authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for Windows authentication. + Password BasicSecretBase `json:"password,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HdfsLinkedServiceTypeProperties struct. +func (hlstp *HdfsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + hlstp.URL = URL + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + hlstp.AuthenticationType = authenticationType + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hlstp.EncryptedCredential = &encryptedCredential + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + hlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hlstp.Password = password + } + } + } + + return nil +} + +// HdfsLocation the location of HDFS. +type HdfsLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HdfsLocation. +func (hl HdfsLocation) MarshalJSON() ([]byte, error) { + hl.Type = TypeBasicDatasetLocationTypeHdfsLocation + objectMap := make(map[string]interface{}) + if hl.FolderPath != nil { + objectMap["folderPath"] = hl.FolderPath + } + if hl.FileName != nil { + objectMap["fileName"] = hl.FileName + } + if hl.Type != "" { + objectMap["type"] = hl.Type + } + for k, v := range hl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return &hl, true +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for HdfsLocation. +func (hl HdfsLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &hl, true +} + +// UnmarshalJSON is the custom unmarshaler for HdfsLocation struct. +func (hl *HdfsLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hl.AdditionalProperties == nil { + hl.AdditionalProperties = make(map[string]interface{}) + } + hl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + hl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + hl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hl.Type = typeVar + } + } + } + + return nil +} + +// HdfsReadSettings HDFS read settings. +type HdfsReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - HDFS wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - HDFS wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // DistcpSettings - Specifies Distcp-related settings. + DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HdfsReadSettings. +func (hrs HdfsReadSettings) MarshalJSON() ([]byte, error) { + hrs.Type = TypeBasicStoreReadSettingsTypeHdfsReadSettings + objectMap := make(map[string]interface{}) + if hrs.Recursive != nil { + objectMap["recursive"] = hrs.Recursive + } + if hrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = hrs.WildcardFolderPath + } + if hrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = hrs.WildcardFileName + } + if hrs.FileListPath != nil { + objectMap["fileListPath"] = hrs.FileListPath + } + if hrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = hrs.EnablePartitionDiscovery + } + if hrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = hrs.PartitionRootPath + } + if hrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = hrs.ModifiedDatetimeStart + } + if hrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = hrs.ModifiedDatetimeEnd + } + if hrs.DistcpSettings != nil { + objectMap["distcpSettings"] = hrs.DistcpSettings + } + if hrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = hrs.DeleteFilesAfterCompletion + } + if hrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections + } + if hrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hrs.DisableMetricsCollection + } + if hrs.Type != "" { + objectMap["type"] = hrs.Type + } + for k, v := range hrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return &hrs, true +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. +func (hrs HdfsReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &hrs, true +} + +// UnmarshalJSON is the custom unmarshaler for HdfsReadSettings struct. +func (hrs *HdfsReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + hrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + hrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + hrs.WildcardFileName = wildcardFileName + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + hrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + hrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + hrs.PartitionRootPath = partitionRootPath + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + hrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + hrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "distcpSettings": + if v != nil { + var distcpSettings DistcpSettings + err = json.Unmarshal(*v, &distcpSettings) + if err != nil { + return err + } + hrs.DistcpSettings = &distcpSettings + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + hrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hrs.AdditionalProperties == nil { + hrs.AdditionalProperties = make(map[string]interface{}) + } + hrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + hrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hrs.Type = typeVar + } + } + } + + return nil +} + +// HdfsSource a copy activity HDFS source. +type HdfsSource struct { + // Recursive - 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"` + // DistcpSettings - Specifies Distcp-related settings. + DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HdfsSource. +func (hs HdfsSource) MarshalJSON() ([]byte, error) { + hs.Type = TypeBasicCopySourceTypeHdfsSource + objectMap := make(map[string]interface{}) + if hs.Recursive != nil { + objectMap["recursive"] = hs.Recursive + } + if hs.DistcpSettings != nil { + objectMap["distcpSettings"] = hs.DistcpSettings + } + if hs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = hs.SourceRetryCount + } + if hs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = hs.SourceRetryWait + } + if hs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections + } + if hs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection + } + if hs.Type != "" { + objectMap["type"] = hs.Type + } + for k, v := range hs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHdfsSource() (*HdfsSource, bool) { + return &hs, true +} + +// AsFileSystemSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for HdfsSource. +func (hs HdfsSource) AsBasicCopySource() (BasicCopySource, bool) { + return &hs, true +} + +// UnmarshalJSON is the custom unmarshaler for HdfsSource struct. +func (hs *HdfsSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + hs.Recursive = recursive + } + case "distcpSettings": + if v != nil { + var distcpSettings DistcpSettings + err = json.Unmarshal(*v, &distcpSettings) + if err != nil { + return err + } + hs.DistcpSettings = &distcpSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hs.AdditionalProperties == nil { + hs.AdditionalProperties = make(map[string]interface{}) + } + hs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + hs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + hs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + hs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hs.Type = typeVar + } + } + } + + return nil +} + +// HiveDatasetTypeProperties hive Properties +type HiveDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Hive. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Hive. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// HiveLinkedService hive Server linked service. +type HiveLinkedService struct { + // HiveLinkedServiceTypeProperties - Hive Server linked service properties. + *HiveLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HiveLinkedService. +func (hls HiveLinkedService) MarshalJSON() ([]byte, error) { + hls.Type = TypeBasicLinkedServiceTypeHive + objectMap := make(map[string]interface{}) + if hls.HiveLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hls.HiveLinkedServiceTypeProperties + } + if hls.ConnectVia != nil { + objectMap["connectVia"] = hls.ConnectVia + } + if hls.Description != nil { + objectMap["description"] = hls.Description + } + if hls.Parameters != nil { + objectMap["parameters"] = hls.Parameters + } + if hls.Annotations != nil { + objectMap["annotations"] = hls.Annotations + } + if hls.Type != "" { + objectMap["type"] = hls.Type + } + for k, v := range hls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return &hls, true +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for HiveLinkedService. +func (hls HiveLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hls, true +} + +// UnmarshalJSON is the custom unmarshaler for HiveLinkedService struct. +func (hls *HiveLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hiveLinkedServiceTypeProperties HiveLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hiveLinkedServiceTypeProperties) + if err != nil { + return err + } + hls.HiveLinkedServiceTypeProperties = &hiveLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hls.AdditionalProperties == nil { + hls.AdditionalProperties = make(map[string]interface{}) + } + hls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + hls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hls.Type = typeVar + } + } + } + + return nil +} + +// HiveLinkedServiceTypeProperties hive Server linked service properties. +type HiveLinkedServiceTypeProperties struct { + // Host - IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode is enable). + Host interface{} `json:"host,omitempty"` + // Port - The TCP port that the Hive server uses to listen for client connections. + Port interface{} `json:"port,omitempty"` + // ServerType - The type of Hive server. Possible values include: 'HiveServerTypeHiveServer1', 'HiveServerTypeHiveServer2', 'HiveServerTypeHiveThriftServer' + ServerType HiveServerType `json:"serverType,omitempty"` + // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'HiveThriftTransportProtocolBinary', 'HiveThriftTransportProtocolSASL', 'HiveThriftTransportProtocolHTTP' + ThriftTransportProtocol HiveThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` + // AuthenticationType - The authentication method used to access the Hive server. Possible values include: 'HiveAuthenticationTypeAnonymous', 'HiveAuthenticationTypeUsername', 'HiveAuthenticationTypeUsernameAndPassword', 'HiveAuthenticationTypeWindowsAzureHDInsightService' + AuthenticationType HiveAuthenticationType `json:"authenticationType,omitempty"` + // ServiceDiscoveryMode - true to indicate using the ZooKeeper service, false not. + ServiceDiscoveryMode interface{} `json:"serviceDiscoveryMode,omitempty"` + // ZooKeeperNameSpace - The namespace on ZooKeeper under which Hive Server 2 nodes are added. + ZooKeeperNameSpace interface{} `json:"zooKeeperNameSpace,omitempty"` + // UseNativeQuery - Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. + UseNativeQuery interface{} `json:"useNativeQuery,omitempty"` + // Username - The user name that you use to access Hive Server. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name that you provided in the Username field + Password BasicSecretBase `json:"password,omitempty"` + // HTTPPath - The partial URL corresponding to the Hive server. + HTTPPath interface{} `json:"httpPath,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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"` + // UseSystemTrustStore - 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"` + // AllowHostNameCNMismatch - 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"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HiveLinkedServiceTypeProperties struct. +func (hlstp *HiveLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + hlstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + hlstp.Port = port + } + case "serverType": + if v != nil { + var serverType HiveServerType + err = json.Unmarshal(*v, &serverType) + if err != nil { + return err + } + hlstp.ServerType = serverType + } + case "thriftTransportProtocol": + if v != nil { + var thriftTransportProtocol HiveThriftTransportProtocol + err = json.Unmarshal(*v, &thriftTransportProtocol) + if err != nil { + return err + } + hlstp.ThriftTransportProtocol = thriftTransportProtocol + } + case "authenticationType": + if v != nil { + var authenticationType HiveAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + hlstp.AuthenticationType = authenticationType + } + case "serviceDiscoveryMode": + if v != nil { + var serviceDiscoveryMode interface{} + err = json.Unmarshal(*v, &serviceDiscoveryMode) + if err != nil { + return err + } + hlstp.ServiceDiscoveryMode = serviceDiscoveryMode + } + case "zooKeeperNameSpace": + if v != nil { + var zooKeeperNameSpace interface{} + err = json.Unmarshal(*v, &zooKeeperNameSpace) + if err != nil { + return err + } + hlstp.ZooKeeperNameSpace = zooKeeperNameSpace + } + case "useNativeQuery": + if v != nil { + var useNativeQuery interface{} + err = json.Unmarshal(*v, &useNativeQuery) + if err != nil { + return err + } + hlstp.UseNativeQuery = useNativeQuery + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + hlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hlstp.Password = password + } + case "httpPath": + if v != nil { + var HTTPPath interface{} + err = json.Unmarshal(*v, &HTTPPath) + if err != nil { + return err + } + hlstp.HTTPPath = HTTPPath + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + hlstp.EnableSsl = enableSsl + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + hlstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + hlstp.UseSystemTrustStore = useSystemTrustStore + } + case "allowHostNameCNMismatch": + if v != nil { + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) + if err != nil { + return err + } + hlstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + hlstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// HiveObjectDataset hive Server dataset. +type HiveObjectDataset struct { + // HiveDatasetTypeProperties - Properties specific to this dataset type. + *HiveDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HiveObjectDataset. +func (hod HiveObjectDataset) MarshalJSON() ([]byte, error) { + hod.Type = TypeBasicDatasetTypeHiveObject + objectMap := make(map[string]interface{}) + if hod.HiveDatasetTypeProperties != nil { + objectMap["typeProperties"] = hod.HiveDatasetTypeProperties + } + if hod.Description != nil { + objectMap["description"] = hod.Description + } + if hod.Structure != nil { + objectMap["structure"] = hod.Structure + } + if hod.Schema != nil { + objectMap["schema"] = hod.Schema + } + if hod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hod.LinkedServiceName + } + if hod.Parameters != nil { + objectMap["parameters"] = hod.Parameters + } + if hod.Annotations != nil { + objectMap["annotations"] = hod.Annotations + } + if hod.Folder != nil { + objectMap["folder"] = hod.Folder + } + if hod.Type != "" { + objectMap["type"] = hod.Type + } + for k, v := range hod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return &hod, true +} + +// AsHBaseObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for HiveObjectDataset. +func (hod HiveObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &hod, true +} + +// UnmarshalJSON is the custom unmarshaler for HiveObjectDataset struct. +func (hod *HiveObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hiveDatasetTypeProperties HiveDatasetTypeProperties + err = json.Unmarshal(*v, &hiveDatasetTypeProperties) + if err != nil { + return err + } + hod.HiveDatasetTypeProperties = &hiveDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hod.AdditionalProperties == nil { + hod.AdditionalProperties = make(map[string]interface{}) + } + hod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + hod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + hod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + hod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hod.Type = typeVar + } + } + } + + return nil +} + +// HiveSource a copy activity Hive Server source. +type HiveSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HiveSource. +func (hs HiveSource) MarshalJSON() ([]byte, error) { + hs.Type = TypeBasicCopySourceTypeHiveSource + objectMap := make(map[string]interface{}) + if hs.Query != nil { + objectMap["query"] = hs.Query + } + if hs.QueryTimeout != nil { + objectMap["queryTimeout"] = hs.QueryTimeout + } + if hs.AdditionalColumns != nil { + objectMap["additionalColumns"] = hs.AdditionalColumns + } + if hs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = hs.SourceRetryCount + } + if hs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = hs.SourceRetryWait + } + if hs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections + } + if hs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection + } + if hs.Type != "" { + objectMap["type"] = hs.Type + } + for k, v := range hs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHiveSource() (*HiveSource, bool) { + return &hs, true +} + +// AsHBaseSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &hs, true +} + +// AsBinarySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for HiveSource. +func (hs HiveSource) AsBasicCopySource() (BasicCopySource, bool) { + return &hs, true +} + +// UnmarshalJSON is the custom unmarshaler for HiveSource struct. +func (hs *HiveSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + hs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + hs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + hs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hs.AdditionalProperties == nil { + hs.AdditionalProperties = make(map[string]interface{}) + } + hs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + hs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + hs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + hs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hs.Type = typeVar + } + } + } + + return nil +} + +// HubspotLinkedService hubspot Service linked service. +type HubspotLinkedService struct { + // HubspotLinkedServiceTypeProperties - Hubspot Service linked service properties. + *HubspotLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubspotLinkedService. +func (hls HubspotLinkedService) MarshalJSON() ([]byte, error) { + hls.Type = TypeBasicLinkedServiceTypeHubspot + objectMap := make(map[string]interface{}) + if hls.HubspotLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = hls.HubspotLinkedServiceTypeProperties + } + if hls.ConnectVia != nil { + objectMap["connectVia"] = hls.ConnectVia + } + if hls.Description != nil { + objectMap["description"] = hls.Description + } + if hls.Parameters != nil { + objectMap["parameters"] = hls.Parameters + } + if hls.Annotations != nil { + objectMap["annotations"] = hls.Annotations + } + if hls.Type != "" { + objectMap["type"] = hls.Type + } + for k, v := range hls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return &hls, true +} + +// AsHiveLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for HubspotLinkedService. +func (hls HubspotLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &hls, true +} + +// UnmarshalJSON is the custom unmarshaler for HubspotLinkedService struct. +func (hls *HubspotLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var hubspotLinkedServiceTypeProperties HubspotLinkedServiceTypeProperties + err = json.Unmarshal(*v, &hubspotLinkedServiceTypeProperties) + if err != nil { + return err + } + hls.HubspotLinkedServiceTypeProperties = &hubspotLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hls.AdditionalProperties == nil { + hls.AdditionalProperties = make(map[string]interface{}) + } + hls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + hls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hls.Type = typeVar + } + } + } + + return nil +} + +// HubspotLinkedServiceTypeProperties hubspot Service linked service properties. +type HubspotLinkedServiceTypeProperties struct { + // ClientID - The client ID associated with your Hubspot application. + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret associated with your Hubspot application. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // AccessToken - The access token obtained when initially authenticating your OAuth integration. + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // RefreshToken - The refresh token obtained when initially authenticating your OAuth integration. + RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for HubspotLinkedServiceTypeProperties struct. +func (hlstp *HubspotLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + hlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hlstp.ClientSecret = clientSecret + } + case "accessToken": + if v != nil { + accessToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hlstp.AccessToken = accessToken + } + case "refreshToken": + if v != nil { + refreshToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + hlstp.RefreshToken = refreshToken + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + hlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + hlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + hlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + hlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// HubspotObjectDataset hubspot Service dataset. +type HubspotObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubspotObjectDataset. +func (hod HubspotObjectDataset) MarshalJSON() ([]byte, error) { + hod.Type = TypeBasicDatasetTypeHubspotObject + objectMap := make(map[string]interface{}) + if hod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = hod.GenericDatasetTypeProperties + } + if hod.Description != nil { + objectMap["description"] = hod.Description + } + if hod.Structure != nil { + objectMap["structure"] = hod.Structure + } + if hod.Schema != nil { + objectMap["schema"] = hod.Schema + } + if hod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = hod.LinkedServiceName + } + if hod.Parameters != nil { + objectMap["parameters"] = hod.Parameters + } + if hod.Annotations != nil { + objectMap["annotations"] = hod.Annotations + } + if hod.Folder != nil { + objectMap["folder"] = hod.Folder + } + if hod.Type != "" { + objectMap["type"] = hod.Type + } + for k, v := range hod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return &hod, true +} + +// AsHiveObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for HubspotObjectDataset. +func (hod HubspotObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &hod, true +} + +// UnmarshalJSON is the custom unmarshaler for HubspotObjectDataset struct. +func (hod *HubspotObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + hod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hod.AdditionalProperties == nil { + hod.AdditionalProperties = make(map[string]interface{}) + } + hod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + hod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + hod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + hod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + hod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + hod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + hod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + hod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hod.Type = typeVar + } + } + } + + return nil +} + +// HubspotSource a copy activity Hubspot Service source. +type HubspotSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for HubspotSource. +func (hs HubspotSource) MarshalJSON() ([]byte, error) { + hs.Type = TypeBasicCopySourceTypeHubspotSource + objectMap := make(map[string]interface{}) + if hs.Query != nil { + objectMap["query"] = hs.Query + } + if hs.QueryTimeout != nil { + objectMap["queryTimeout"] = hs.QueryTimeout + } + if hs.AdditionalColumns != nil { + objectMap["additionalColumns"] = hs.AdditionalColumns + } + if hs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = hs.SourceRetryCount + } + if hs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = hs.SourceRetryWait + } + if hs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections + } + if hs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection + } + if hs.Type != "" { + objectMap["type"] = hs.Type + } + for k, v := range hs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsHubspotSource() (*HubspotSource, bool) { + return &hs, true +} + +// AsHiveSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &hs, true +} + +// AsBinarySource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for HubspotSource. +func (hs HubspotSource) AsBasicCopySource() (BasicCopySource, bool) { + return &hs, true +} + +// UnmarshalJSON is the custom unmarshaler for HubspotSource struct. +func (hs *HubspotSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + hs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + hs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + hs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if hs.AdditionalProperties == nil { + hs.AdditionalProperties = make(map[string]interface{}) + } + hs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + hs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + hs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + hs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + hs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + hs.Type = typeVar + } + } + } + + return nil +} + +// IfConditionActivity this activity evaluates a boolean expression and executes either the activities +// under the ifTrueActivities property or the ifFalseActivities property depending on the result of the +// expression. +type IfConditionActivity struct { + // IfConditionActivityTypeProperties - IfCondition activity properties. + *IfConditionActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for IfConditionActivity. +func (ica IfConditionActivity) MarshalJSON() ([]byte, error) { + ica.Type = TypeBasicActivityTypeIfCondition + objectMap := make(map[string]interface{}) + if ica.IfConditionActivityTypeProperties != nil { + objectMap["typeProperties"] = ica.IfConditionActivityTypeProperties + } + if ica.Name != nil { + objectMap["name"] = ica.Name + } + if ica.Description != nil { + objectMap["description"] = ica.Description + } + if ica.State != "" { + objectMap["state"] = ica.State + } + if ica.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ica.OnInactiveMarkAs + } + if ica.DependsOn != nil { + objectMap["dependsOn"] = ica.DependsOn + } + if ica.UserProperties != nil { + objectMap["userProperties"] = ica.UserProperties + } + if ica.Type != "" { + objectMap["type"] = ica.Type + } + for k, v := range ica.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return &ica, true +} + +// AsExecutePipelineActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &ica, true +} + +// AsActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for IfConditionActivity. +func (ica IfConditionActivity) AsBasicActivity() (BasicActivity, bool) { + return &ica, true +} + +// UnmarshalJSON is the custom unmarshaler for IfConditionActivity struct. +func (ica *IfConditionActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var ifConditionActivityTypeProperties IfConditionActivityTypeProperties + err = json.Unmarshal(*v, &ifConditionActivityTypeProperties) + if err != nil { + return err + } + ica.IfConditionActivityTypeProperties = &ifConditionActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ica.AdditionalProperties == nil { + ica.AdditionalProperties = make(map[string]interface{}) + } + ica.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ica.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ica.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ica.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ica.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ica.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ica.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ica.Type = typeVar + } + } + } + + return nil +} + +// IfConditionActivityTypeProperties ifCondition activity properties. +type IfConditionActivityTypeProperties struct { + // Expression - 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"` + // IfTrueActivities - 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 *[]BasicActivity `json:"ifTrueActivities,omitempty"` + // IfFalseActivities - 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 *[]BasicActivity `json:"ifFalseActivities,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for IfConditionActivityTypeProperties struct. +func (icatp *IfConditionActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "expression": + if v != nil { + var expression Expression + err = json.Unmarshal(*v, &expression) + if err != nil { + return err + } + icatp.Expression = &expression + } + case "ifTrueActivities": + if v != nil { + ifTrueActivities, err := unmarshalBasicActivityArray(*v) + if err != nil { + return err + } + icatp.IfTrueActivities = &ifTrueActivities + } + case "ifFalseActivities": + if v != nil { + ifFalseActivities, err := unmarshalBasicActivityArray(*v) + if err != nil { + return err + } + icatp.IfFalseActivities = &ifFalseActivities + } + } + } + + return nil +} + +// ImpalaDatasetTypeProperties impala Dataset Properties +type ImpalaDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Impala. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Impala. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// ImpalaLinkedService impala server linked service. +type ImpalaLinkedService struct { + // ImpalaLinkedServiceTypeProperties - Impala server linked service properties. + *ImpalaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ImpalaLinkedService. +func (ils ImpalaLinkedService) MarshalJSON() ([]byte, error) { + ils.Type = TypeBasicLinkedServiceTypeImpala + objectMap := make(map[string]interface{}) + if ils.ImpalaLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ils.ImpalaLinkedServiceTypeProperties + } + if ils.ConnectVia != nil { + objectMap["connectVia"] = ils.ConnectVia + } + if ils.Description != nil { + objectMap["description"] = ils.Description + } + if ils.Parameters != nil { + objectMap["parameters"] = ils.Parameters + } + if ils.Annotations != nil { + objectMap["annotations"] = ils.Annotations + } + if ils.Type != "" { + objectMap["type"] = ils.Type + } + for k, v := range ils.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return &ils, true +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. +func (ils ImpalaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ils, true +} + +// UnmarshalJSON is the custom unmarshaler for ImpalaLinkedService struct. +func (ils *ImpalaLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var impalaLinkedServiceTypeProperties ImpalaLinkedServiceTypeProperties + err = json.Unmarshal(*v, &impalaLinkedServiceTypeProperties) + if err != nil { + return err + } + ils.ImpalaLinkedServiceTypeProperties = &impalaLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ils.AdditionalProperties == nil { + ils.AdditionalProperties = make(map[string]interface{}) + } + ils.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ils.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ils.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ils.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ils.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ils.Type = typeVar + } + } + } + + return nil +} + +// ImpalaLinkedServiceTypeProperties impala server linked service properties. +type ImpalaLinkedServiceTypeProperties struct { + // Host - The IP address or host name of the Impala server. (i.e. 192.168.222.160) + Host interface{} `json:"host,omitempty"` + // Port - The TCP port that the Impala server uses to listen for client connections. The default value is 21050. + Port interface{} `json:"port,omitempty"` + // AuthenticationType - The authentication type to use. Possible values include: 'ImpalaAuthenticationTypeAnonymous', 'ImpalaAuthenticationTypeSASLUsername', 'ImpalaAuthenticationTypeUsernameAndPassword' + AuthenticationType ImpalaAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name used to access the Impala server. The default value is anonymous when using SASLUsername. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name when using UsernameAndPassword. + Password BasicSecretBase `json:"password,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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"` + // UseSystemTrustStore - 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"` + // AllowHostNameCNMismatch - 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"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ImpalaLinkedServiceTypeProperties struct. +func (ilstp *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + ilstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + ilstp.Port = port + } + case "authenticationType": + if v != nil { + var authenticationType ImpalaAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + ilstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + ilstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + ilstp.Password = password + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + ilstp.EnableSsl = enableSsl + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + ilstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + ilstp.UseSystemTrustStore = useSystemTrustStore + } + case "allowHostNameCNMismatch": + if v != nil { + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) + if err != nil { + return err + } + ilstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + ilstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + ilstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ImpalaObjectDataset impala server dataset. +type ImpalaObjectDataset struct { + // ImpalaDatasetTypeProperties - Properties specific to this dataset type. + *ImpalaDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) MarshalJSON() ([]byte, error) { + iod.Type = TypeBasicDatasetTypeImpalaObject + objectMap := make(map[string]interface{}) + if iod.ImpalaDatasetTypeProperties != nil { + objectMap["typeProperties"] = iod.ImpalaDatasetTypeProperties + } + if iod.Description != nil { + objectMap["description"] = iod.Description + } + if iod.Structure != nil { + objectMap["structure"] = iod.Structure + } + if iod.Schema != nil { + objectMap["schema"] = iod.Schema + } + if iod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = iod.LinkedServiceName + } + if iod.Parameters != nil { + objectMap["parameters"] = iod.Parameters + } + if iod.Annotations != nil { + objectMap["annotations"] = iod.Annotations + } + if iod.Folder != nil { + objectMap["folder"] = iod.Folder + } + if iod.Type != "" { + objectMap["type"] = iod.Type + } + for k, v := range iod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return &iod, true +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ImpalaObjectDataset. +func (iod ImpalaObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &iod, true +} + +// UnmarshalJSON is the custom unmarshaler for ImpalaObjectDataset struct. +func (iod *ImpalaObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var impalaDatasetTypeProperties ImpalaDatasetTypeProperties + err = json.Unmarshal(*v, &impalaDatasetTypeProperties) + if err != nil { + return err + } + iod.ImpalaDatasetTypeProperties = &impalaDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if iod.AdditionalProperties == nil { + iod.AdditionalProperties = make(map[string]interface{}) + } + iod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + iod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + iod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + iod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + iod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + iod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + iod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + iod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + iod.Type = typeVar + } + } + } + + return nil +} + +// ImpalaSource a copy activity Impala server source. +type ImpalaSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ImpalaSource. +func (is ImpalaSource) MarshalJSON() ([]byte, error) { + is.Type = TypeBasicCopySourceTypeImpalaSource + objectMap := make(map[string]interface{}) + if is.Query != nil { + objectMap["query"] = is.Query + } + if is.QueryTimeout != nil { + objectMap["queryTimeout"] = is.QueryTimeout + } + if is.AdditionalColumns != nil { + objectMap["additionalColumns"] = is.AdditionalColumns + } + if is.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = is.SourceRetryCount + } + if is.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = is.SourceRetryWait + } + if is.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections + } + if is.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = is.DisableMetricsCollection + } + if is.Type != "" { + objectMap["type"] = is.Type + } + for k, v := range is.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsImpalaSource() (*ImpalaSource, bool) { + return &is, true +} + +// AsHubspotSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &is, true +} + +// AsBinarySource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ImpalaSource. +func (is ImpalaSource) AsBasicCopySource() (BasicCopySource, bool) { + return &is, true +} + +// UnmarshalJSON is the custom unmarshaler for ImpalaSource struct. +func (is *ImpalaSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + is.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + is.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + is.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if is.AdditionalProperties == nil { + is.AdditionalProperties = make(map[string]interface{}) + } + is.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + is.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + is.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + is.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + is.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + is.Type = typeVar + } + } + } + + return nil +} + +// BasicImportSettings import command settings. +type BasicImportSettings interface { + AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) + AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) + AsImportSettings() (*ImportSettings, bool) +} + +// ImportSettings import command settings. +type ImportSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicImportSettingsTypeImportSettings', 'TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand', 'TypeBasicImportSettingsTypeSnowflakeImportCopyCommand' + Type TypeBasicImportSettings `json:"type,omitempty"` +} + +func unmarshalBasicImportSettings(body []byte) (BasicImportSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand): + var addlic AzureDatabricksDeltaLakeImportCommand + err := json.Unmarshal(body, &addlic) + return addlic, err + case string(TypeBasicImportSettingsTypeSnowflakeImportCopyCommand): + var sicc SnowflakeImportCopyCommand + err := json.Unmarshal(body, &sicc) + return sicc, err + default: + var is ImportSettings + err := json.Unmarshal(body, &is) + return is, err + } +} +func unmarshalBasicImportSettingsArray(body []byte) ([]BasicImportSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + isArray := make([]BasicImportSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + is, err := unmarshalBasicImportSettings(*rawMessage) + if err != nil { + return nil, err + } + isArray[index] = is + } + return isArray, nil +} + +// MarshalJSON is the custom marshaler for ImportSettings. +func (is ImportSettings) MarshalJSON() ([]byte, error) { + is.Type = TypeBasicImportSettingsTypeImportSettings + objectMap := make(map[string]interface{}) + if is.Type != "" { + objectMap["type"] = is.Type + } + for k, v := range is.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for ImportSettings. +func (is ImportSettings) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { + return nil, false +} + +// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for ImportSettings. +func (is ImportSettings) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { + return nil, false +} + +// AsImportSettings is the BasicImportSettings implementation for ImportSettings. +func (is ImportSettings) AsImportSettings() (*ImportSettings, bool) { + return &is, true +} + +// AsBasicImportSettings is the BasicImportSettings implementation for ImportSettings. +func (is ImportSettings) AsBasicImportSettings() (BasicImportSettings, bool) { + return &is, true +} + +// UnmarshalJSON is the custom unmarshaler for ImportSettings struct. +func (is *ImportSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if is.AdditionalProperties == nil { + is.AdditionalProperties = make(map[string]interface{}) + } + is.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicImportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + is.Type = typeVar + } + } + } + + return nil +} + +// InformixLinkedService informix linked service. +type InformixLinkedService struct { + // InformixLinkedServiceTypeProperties - Informix linked service properties. + *InformixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for InformixLinkedService. +func (ils InformixLinkedService) MarshalJSON() ([]byte, error) { + ils.Type = TypeBasicLinkedServiceTypeInformix + objectMap := make(map[string]interface{}) + if ils.InformixLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ils.InformixLinkedServiceTypeProperties + } + if ils.ConnectVia != nil { + objectMap["connectVia"] = ils.ConnectVia + } + if ils.Description != nil { + objectMap["description"] = ils.Description + } + if ils.Parameters != nil { + objectMap["parameters"] = ils.Parameters + } + if ils.Annotations != nil { + objectMap["annotations"] = ils.Annotations + } + if ils.Type != "" { + objectMap["type"] = ils.Type + } + for k, v := range ils.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return &ils, true +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for InformixLinkedService. +func (ils InformixLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ils, true +} + +// UnmarshalJSON is the custom unmarshaler for InformixLinkedService struct. +func (ils *InformixLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var informixLinkedServiceTypeProperties InformixLinkedServiceTypeProperties + err = json.Unmarshal(*v, &informixLinkedServiceTypeProperties) + if err != nil { + return err + } + ils.InformixLinkedServiceTypeProperties = &informixLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ils.AdditionalProperties == nil { + ils.AdditionalProperties = make(map[string]interface{}) + } + ils.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ils.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ils.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ils.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ils.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ils.Type = typeVar + } + } + } + + return nil +} + +// InformixLinkedServiceTypeProperties informix linked service properties. +type InformixLinkedServiceTypeProperties struct { + // ConnectionString - The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. + ConnectionString interface{} `json:"connectionString,omitempty"` + // AuthenticationType - 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"` + // Credential - The access credential portion of the connection string specified in driver-specific property-value format. + Credential BasicSecretBase `json:"credential,omitempty"` + // UserName - User name for Basic authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for Basic authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for InformixLinkedServiceTypeProperties struct. +func (ilstp *InformixLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + ilstp.ConnectionString = connectionString + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + ilstp.AuthenticationType = authenticationType + } + case "credential": + if v != nil { + credential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + ilstp.Credential = credential + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + ilstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + ilstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + ilstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// InformixSink a copy activity Informix sink. +type InformixSink struct { + // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for InformixSink. +func (is InformixSink) MarshalJSON() ([]byte, error) { + is.Type = TypeBasicCopySinkTypeInformixSink + objectMap := make(map[string]interface{}) + if is.PreCopyScript != nil { + objectMap["preCopyScript"] = is.PreCopyScript + } + if is.WriteBatchSize != nil { + objectMap["writeBatchSize"] = is.WriteBatchSize + } + if is.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = is.WriteBatchTimeout + } + if is.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = is.SinkRetryCount + } + if is.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = is.SinkRetryWait + } + if is.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections + } + if is.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = is.DisableMetricsCollection + } + if is.Type != "" { + objectMap["type"] = is.Type + } + for k, v := range is.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsInformixSink() (*InformixSink, bool) { + return &is, true +} + +// AsOdbcSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for InformixSink. +func (is InformixSink) AsBasicCopySink() (BasicCopySink, bool) { + return &is, true +} + +// UnmarshalJSON is the custom unmarshaler for InformixSink struct. +func (is *InformixSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + is.PreCopyScript = preCopyScript + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if is.AdditionalProperties == nil { + is.AdditionalProperties = make(map[string]interface{}) + } + is.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + is.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + is.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + is.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + is.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + is.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + is.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + is.Type = typeVar + } + } + } + + return nil +} + +// InformixSource a copy activity source for Informix. +type InformixSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for InformixSource. +func (is InformixSource) MarshalJSON() ([]byte, error) { + is.Type = TypeBasicCopySourceTypeInformixSource + objectMap := make(map[string]interface{}) + if is.Query != nil { + objectMap["query"] = is.Query + } + if is.QueryTimeout != nil { + objectMap["queryTimeout"] = is.QueryTimeout + } + if is.AdditionalColumns != nil { + objectMap["additionalColumns"] = is.AdditionalColumns + } + if is.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = is.SourceRetryCount + } + if is.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = is.SourceRetryWait + } + if is.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections + } + if is.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = is.DisableMetricsCollection + } + if is.Type != "" { + objectMap["type"] = is.Type + } + for k, v := range is.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsInformixSource() (*InformixSource, bool) { + return &is, true +} + +// AsAzureTableSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &is, true +} + +// AsBinarySource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for InformixSource. +func (is InformixSource) AsBasicCopySource() (BasicCopySource, bool) { + return &is, true +} + +// UnmarshalJSON is the custom unmarshaler for InformixSource struct. +func (is *InformixSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + is.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + is.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + is.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if is.AdditionalProperties == nil { + is.AdditionalProperties = make(map[string]interface{}) + } + is.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + is.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + is.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + is.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + is.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + is.Type = typeVar + } + } + } + + return nil +} + +// InformixTableDataset the Informix table dataset. +type InformixTableDataset struct { + // InformixTableDatasetTypeProperties - Informix table dataset properties. + *InformixTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for InformixTableDataset. +func (itd InformixTableDataset) MarshalJSON() ([]byte, error) { + itd.Type = TypeBasicDatasetTypeInformixTable + objectMap := make(map[string]interface{}) + if itd.InformixTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = itd.InformixTableDatasetTypeProperties + } + if itd.Description != nil { + objectMap["description"] = itd.Description + } + if itd.Structure != nil { + objectMap["structure"] = itd.Structure + } + if itd.Schema != nil { + objectMap["schema"] = itd.Schema + } + if itd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = itd.LinkedServiceName + } + if itd.Parameters != nil { + objectMap["parameters"] = itd.Parameters + } + if itd.Annotations != nil { + objectMap["annotations"] = itd.Annotations + } + if itd.Folder != nil { + objectMap["folder"] = itd.Folder + } + if itd.Type != "" { + objectMap["type"] = itd.Type + } + for k, v := range itd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return &itd, true +} + +// AsRelationalTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for InformixTableDataset. +func (itd InformixTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &itd, true +} + +// UnmarshalJSON is the custom unmarshaler for InformixTableDataset struct. +func (itd *InformixTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var informixTableDatasetTypeProperties InformixTableDatasetTypeProperties + err = json.Unmarshal(*v, &informixTableDatasetTypeProperties) + if err != nil { + return err + } + itd.InformixTableDatasetTypeProperties = &informixTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if itd.AdditionalProperties == nil { + itd.AdditionalProperties = make(map[string]interface{}) + } + itd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + itd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + itd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + itd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + itd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + itd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + itd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + itd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + itd.Type = typeVar + } + } + } + + return nil +} + +// InformixTableDatasetTypeProperties informix table dataset properties. +type InformixTableDatasetTypeProperties struct { + // TableName - The Informix table name. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// BasicIntegrationRuntime azure Data Factory nested object which serves as a compute resource for activities. +type BasicIntegrationRuntime interface { + AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) + AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) + AsIntegrationRuntime() (*IntegrationRuntime, bool) +} + +// IntegrationRuntime azure Data Factory nested object which serves as a compute resource for activities. +type IntegrationRuntime struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Integration runtime description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeBasicIntegrationRuntimeTypeIntegrationRuntime', 'TypeBasicIntegrationRuntimeTypeSelfHosted', 'TypeBasicIntegrationRuntimeTypeManaged' + Type TypeBasicIntegrationRuntime `json:"type,omitempty"` +} + +func unmarshalBasicIntegrationRuntime(body []byte) (BasicIntegrationRuntime, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicIntegrationRuntimeTypeSelfHosted): + var shir SelfHostedIntegrationRuntime + err := json.Unmarshal(body, &shir) + return shir, err + case string(TypeBasicIntegrationRuntimeTypeManaged): + var mir ManagedIntegrationRuntime + err := json.Unmarshal(body, &mir) + return mir, err + default: + var ir IntegrationRuntime + err := json.Unmarshal(body, &ir) + return ir, err + } +} +func unmarshalBasicIntegrationRuntimeArray(body []byte) ([]BasicIntegrationRuntime, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + irArray := make([]BasicIntegrationRuntime, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ir, err := unmarshalBasicIntegrationRuntime(*rawMessage) + if err != nil { + return nil, err + } + irArray[index] = ir + } + return irArray, nil +} + +// MarshalJSON is the custom marshaler for IntegrationRuntime. +func (ir IntegrationRuntime) MarshalJSON() ([]byte, error) { + ir.Type = TypeBasicIntegrationRuntimeTypeIntegrationRuntime + objectMap := make(map[string]interface{}) + if ir.Description != nil { + objectMap["description"] = ir.Description + } + if ir.Type != "" { + objectMap["type"] = ir.Type + } + for k, v := range ir.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. +func (ir IntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { + return nil, false +} + +// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. +func (ir IntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { + return nil, false +} + +// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. +func (ir IntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { + return &ir, true +} + +// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. +func (ir IntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { + return &ir, true +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntime struct. +func (ir *IntegrationRuntime) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ir.AdditionalProperties == nil { + ir.AdditionalProperties = make(map[string]interface{}) + } + ir.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ir.Description = &description + } + case "type": + if v != nil { + var typeVar TypeBasicIntegrationRuntime + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ir.Type = typeVar + } + } + } + + return nil +} + +// IntegrationRuntimeAuthKeys the integration runtime authentication keys. +type IntegrationRuntimeAuthKeys struct { + autorest.Response `json:"-"` + // AuthKey1 - The primary integration runtime authentication key. + AuthKey1 *string `json:"authKey1,omitempty"` + // AuthKey2 - The secondary integration runtime authentication key. + AuthKey2 *string `json:"authKey2,omitempty"` +} + +// IntegrationRuntimeComputeProperties the compute resource properties for managed integration runtime. +type IntegrationRuntimeComputeProperties struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Location - 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"` + // NodeSize - The node size requirement to managed integration runtime. + NodeSize *string `json:"nodeSize,omitempty"` + // NumberOfNodes - The required number of nodes for managed integration runtime. + NumberOfNodes *int32 `json:"numberOfNodes,omitempty"` + // MaxParallelExecutionsPerNode - Maximum parallel executions count per node for managed integration runtime. + MaxParallelExecutionsPerNode *int32 `json:"maxParallelExecutionsPerNode,omitempty"` + // DataFlowProperties - Data flow properties for managed integration runtime. + DataFlowProperties *IntegrationRuntimeDataFlowProperties `json:"dataFlowProperties,omitempty"` + // VNetProperties - VNet properties for managed integration runtime. + VNetProperties *IntegrationRuntimeVNetProperties `json:"vNetProperties,omitempty"` + // CopyComputeScaleProperties - CopyComputeScale properties for managed integration runtime. + CopyComputeScaleProperties *CopyComputeScaleProperties `json:"copyComputeScaleProperties,omitempty"` + // PipelineExternalComputeScaleProperties - PipelineExternalComputeScale properties for managed integration runtime. + PipelineExternalComputeScaleProperties *PipelineExternalComputeScaleProperties `json:"pipelineExternalComputeScaleProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeComputeProperties. +func (ircp IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ircp.Location != nil { + objectMap["location"] = ircp.Location + } + if ircp.NodeSize != nil { + objectMap["nodeSize"] = ircp.NodeSize + } + if ircp.NumberOfNodes != nil { + objectMap["numberOfNodes"] = ircp.NumberOfNodes + } + if ircp.MaxParallelExecutionsPerNode != nil { + objectMap["maxParallelExecutionsPerNode"] = ircp.MaxParallelExecutionsPerNode + } + if ircp.DataFlowProperties != nil { + objectMap["dataFlowProperties"] = ircp.DataFlowProperties + } + if ircp.VNetProperties != nil { + objectMap["vNetProperties"] = ircp.VNetProperties + } + if ircp.CopyComputeScaleProperties != nil { + objectMap["copyComputeScaleProperties"] = ircp.CopyComputeScaleProperties + } + if ircp.PipelineExternalComputeScaleProperties != nil { + objectMap["pipelineExternalComputeScaleProperties"] = ircp.PipelineExternalComputeScaleProperties + } + for k, v := range ircp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeComputeProperties struct. +func (ircp *IntegrationRuntimeComputeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ircp.AdditionalProperties == nil { + ircp.AdditionalProperties = make(map[string]interface{}) + } + ircp.AdditionalProperties[k] = additionalProperties + } + case "location": + if v != nil { + var location string + err = json.Unmarshal(*v, &location) + if err != nil { + return err + } + ircp.Location = &location + } + case "nodeSize": + if v != nil { + var nodeSize string + err = json.Unmarshal(*v, &nodeSize) + if err != nil { + return err + } + ircp.NodeSize = &nodeSize + } + case "numberOfNodes": + if v != nil { + var numberOfNodes int32 + err = json.Unmarshal(*v, &numberOfNodes) + if err != nil { + return err + } + ircp.NumberOfNodes = &numberOfNodes + } + case "maxParallelExecutionsPerNode": + if v != nil { + var maxParallelExecutionsPerNode int32 + err = json.Unmarshal(*v, &maxParallelExecutionsPerNode) + if err != nil { + return err + } + ircp.MaxParallelExecutionsPerNode = &maxParallelExecutionsPerNode + } + case "dataFlowProperties": + if v != nil { + var dataFlowProperties IntegrationRuntimeDataFlowProperties + err = json.Unmarshal(*v, &dataFlowProperties) + if err != nil { + return err + } + ircp.DataFlowProperties = &dataFlowProperties + } + case "vNetProperties": + if v != nil { + var vNetProperties IntegrationRuntimeVNetProperties + err = json.Unmarshal(*v, &vNetProperties) + if err != nil { + return err + } + ircp.VNetProperties = &vNetProperties + } + case "copyComputeScaleProperties": + if v != nil { + var copyComputeScaleProperties CopyComputeScaleProperties + err = json.Unmarshal(*v, ©ComputeScaleProperties) + if err != nil { + return err + } + ircp.CopyComputeScaleProperties = ©ComputeScaleProperties + } + case "pipelineExternalComputeScaleProperties": + if v != nil { + var pipelineExternalComputeScaleProperties PipelineExternalComputeScaleProperties + err = json.Unmarshal(*v, &pipelineExternalComputeScaleProperties) + if err != nil { + return err + } + ircp.PipelineExternalComputeScaleProperties = &pipelineExternalComputeScaleProperties + } + } + } + + return nil +} + +// IntegrationRuntimeConnectionInfo connection information for encrypting the on-premises data source +// credentials. +type IntegrationRuntimeConnectionInfo struct { + autorest.Response `json:"-"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ServiceToken - READ-ONLY; The token generated in service. Callers use this token to authenticate to integration runtime. + ServiceToken *string `json:"serviceToken,omitempty"` + // IdentityCertThumbprint - READ-ONLY; The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. + IdentityCertThumbprint *string `json:"identityCertThumbprint,omitempty"` + // HostServiceURI - READ-ONLY; The on-premises integration runtime host URL. + HostServiceURI *string `json:"hostServiceUri,omitempty"` + // Version - READ-ONLY; The integration runtime version. + Version *string `json:"version,omitempty"` + // PublicKey - READ-ONLY; The public key for encrypting a credential when transferring the credential to the integration runtime. + PublicKey *string `json:"publicKey,omitempty"` + // IsIdentityCertExprired - READ-ONLY; Whether the identity certificate is expired. + IsIdentityCertExprired *bool `json:"isIdentityCertExprired,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeConnectionInfo. +func (irci IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + for k, v := range irci.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeConnectionInfo struct. +func (irci *IntegrationRuntimeConnectionInfo) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if irci.AdditionalProperties == nil { + irci.AdditionalProperties = make(map[string]interface{}) + } + irci.AdditionalProperties[k] = additionalProperties + } + case "serviceToken": + if v != nil { + var serviceToken string + err = json.Unmarshal(*v, &serviceToken) + if err != nil { + return err + } + irci.ServiceToken = &serviceToken + } + case "identityCertThumbprint": + if v != nil { + var identityCertThumbprint string + err = json.Unmarshal(*v, &identityCertThumbprint) + if err != nil { + return err + } + irci.IdentityCertThumbprint = &identityCertThumbprint + } + case "hostServiceUri": + if v != nil { + var hostServiceURI string + err = json.Unmarshal(*v, &hostServiceURI) + if err != nil { + return err + } + irci.HostServiceURI = &hostServiceURI + } + case "version": + if v != nil { + var version string + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + irci.Version = &version + } + case "publicKey": + if v != nil { + var publicKey string + err = json.Unmarshal(*v, &publicKey) + if err != nil { + return err + } + irci.PublicKey = &publicKey + } + case "isIdentityCertExprired": + if v != nil { + var isIdentityCertExprired bool + err = json.Unmarshal(*v, &isIdentityCertExprired) + if err != nil { + return err + } + irci.IsIdentityCertExprired = &isIdentityCertExprired + } + } + } + + return nil +} + +// IntegrationRuntimeCustomSetupScriptProperties custom setup script properties for a managed dedicated +// integration runtime. +type IntegrationRuntimeCustomSetupScriptProperties struct { + // BlobContainerURI - The URI of the Azure blob container that contains the custom setup script. + BlobContainerURI *string `json:"blobContainerUri,omitempty"` + // SasToken - The SAS token of the Azure blob container. + SasToken *SecureString `json:"sasToken,omitempty"` +} + +// IntegrationRuntimeCustomerVirtualNetwork the definition and properties of virtual network to which +// Azure-SSIS integration runtime will join. +type IntegrationRuntimeCustomerVirtualNetwork struct { + // SubnetID - The ID of subnet to which Azure-SSIS integration runtime will join. + SubnetID *string `json:"subnetId,omitempty"` +} + +// IntegrationRuntimeDataFlowProperties data flow properties for managed integration runtime. +type IntegrationRuntimeDataFlowProperties struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ComputeType - Compute type of the cluster which will execute data flow job. Possible values include: 'DataFlowComputeTypeGeneral', 'DataFlowComputeTypeMemoryOptimized', 'DataFlowComputeTypeComputeOptimized' + ComputeType DataFlowComputeType `json:"computeType,omitempty"` + // CoreCount - 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"` + // TimeToLive - Time to live (in minutes) setting of the cluster which will execute data flow job. + TimeToLive *int32 `json:"timeToLive,omitempty"` + // Cleanup - 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"` + // CustomProperties - Custom properties are used to tune the data flow runtime performance. + CustomProperties *[]IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem `json:"customProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeDataFlowProperties. +func (irdfp IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if irdfp.ComputeType != "" { + objectMap["computeType"] = irdfp.ComputeType + } + if irdfp.CoreCount != nil { + objectMap["coreCount"] = irdfp.CoreCount + } + if irdfp.TimeToLive != nil { + objectMap["timeToLive"] = irdfp.TimeToLive + } + if irdfp.Cleanup != nil { + objectMap["cleanup"] = irdfp.Cleanup + } + if irdfp.CustomProperties != nil { + objectMap["customProperties"] = irdfp.CustomProperties + } + for k, v := range irdfp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeDataFlowProperties struct. +func (irdfp *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if irdfp.AdditionalProperties == nil { + irdfp.AdditionalProperties = make(map[string]interface{}) + } + irdfp.AdditionalProperties[k] = additionalProperties + } + case "computeType": + if v != nil { + var computeType DataFlowComputeType + err = json.Unmarshal(*v, &computeType) + if err != nil { + return err + } + irdfp.ComputeType = computeType + } + case "coreCount": + if v != nil { + var coreCount int32 + err = json.Unmarshal(*v, &coreCount) + if err != nil { + return err + } + irdfp.CoreCount = &coreCount + } + case "timeToLive": + if v != nil { + var timeToLive int32 + err = json.Unmarshal(*v, &timeToLive) + if err != nil { + return err + } + irdfp.TimeToLive = &timeToLive + } + case "cleanup": + if v != nil { + var cleanup bool + err = json.Unmarshal(*v, &cleanup) + if err != nil { + return err + } + irdfp.Cleanup = &cleanup + } + case "customProperties": + if v != nil { + var customProperties []IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem + err = json.Unmarshal(*v, &customProperties) + if err != nil { + return err + } + irdfp.CustomProperties = &customProperties + } + } + } + + return nil +} + +// IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem ... +type IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem struct { + // Name - Name of custom property. + Name *string `json:"name,omitempty"` + // Value - Value of custom property. + Value *string `json:"value,omitempty"` +} + +// IntegrationRuntimeDataProxyProperties data proxy properties for a managed dedicated integration runtime. +type IntegrationRuntimeDataProxyProperties struct { + // ConnectVia - The self-hosted integration runtime reference. + ConnectVia *EntityReference `json:"connectVia,omitempty"` + // StagingLinkedService - The staging linked service reference. + StagingLinkedService *EntityReference `json:"stagingLinkedService,omitempty"` + // Path - The path to contain the staged data in the Blob storage. + Path *string `json:"path,omitempty"` +} + +// IntegrationRuntimeDebugResource integration runtime debug resource. +type IntegrationRuntimeDebugResource struct { + // Properties - Integration runtime properties. + Properties BasicIntegrationRuntime `json:"properties,omitempty"` + // Name - The resource name. + Name *string `json:"name,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeDebugResource struct. +func (irdr *IntegrationRuntimeDebugResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicIntegrationRuntime(*v) + if err != nil { + return err + } + irdr.Properties = properties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + irdr.Name = &name + } + } + } + + return nil +} + +// IntegrationRuntimeListResponse a list of integration runtime resources. +type IntegrationRuntimeListResponse struct { + autorest.Response `json:"-"` + // Value - List of integration runtimes. + Value *[]IntegrationRuntimeResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// IntegrationRuntimeListResponseIterator provides access to a complete listing of +// IntegrationRuntimeResource values. +type IntegrationRuntimeListResponseIterator struct { + i int + page IntegrationRuntimeListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *IntegrationRuntimeListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IntegrationRuntimeListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *IntegrationRuntimeListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter IntegrationRuntimeListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter IntegrationRuntimeListResponseIterator) Response() IntegrationRuntimeListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter IntegrationRuntimeListResponseIterator) Value() IntegrationRuntimeResource { + if !iter.page.NotDone() { + return IntegrationRuntimeResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the IntegrationRuntimeListResponseIterator type. +func NewIntegrationRuntimeListResponseIterator(page IntegrationRuntimeListResponsePage) IntegrationRuntimeListResponseIterator { + return IntegrationRuntimeListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (irlr IntegrationRuntimeListResponse) IsEmpty() bool { + return irlr.Value == nil || len(*irlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (irlr IntegrationRuntimeListResponse) hasNextLink() bool { + return irlr.NextLink != nil && len(*irlr.NextLink) != 0 +} + +// integrationRuntimeListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (irlr IntegrationRuntimeListResponse) integrationRuntimeListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !irlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(irlr.NextLink))) +} + +// IntegrationRuntimeListResponsePage contains a page of IntegrationRuntimeResource values. +type IntegrationRuntimeListResponsePage struct { + fn func(context.Context, IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error) + irlr IntegrationRuntimeListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *IntegrationRuntimeListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/IntegrationRuntimeListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.irlr) + if err != nil { + return err + } + page.irlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *IntegrationRuntimeListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page IntegrationRuntimeListResponsePage) NotDone() bool { + return !page.irlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page IntegrationRuntimeListResponsePage) Response() IntegrationRuntimeListResponse { + return page.irlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page IntegrationRuntimeListResponsePage) Values() []IntegrationRuntimeResource { + if page.irlr.IsEmpty() { + return nil + } + return *page.irlr.Value +} + +// Creates a new instance of the IntegrationRuntimeListResponsePage type. +func NewIntegrationRuntimeListResponsePage(cur IntegrationRuntimeListResponse, getNextPage func(context.Context, IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error)) IntegrationRuntimeListResponsePage { + return IntegrationRuntimeListResponsePage{ + fn: getNextPage, + irlr: cur, + } +} + +// IntegrationRuntimeMonitoringData get monitoring data response. +type IntegrationRuntimeMonitoringData struct { + autorest.Response `json:"-"` + // Name - Integration runtime name. + Name *string `json:"name,omitempty"` + // Nodes - Integration runtime node monitoring data. + Nodes *[]IntegrationRuntimeNodeMonitoringData `json:"nodes,omitempty"` +} + +// IntegrationRuntimeNodeIPAddress the IP address of self-hosted integration runtime node. +type IntegrationRuntimeNodeIPAddress struct { + autorest.Response `json:"-"` + // IPAddress - READ-ONLY; The IP address of self-hosted integration runtime node. + IPAddress *string `json:"ipAddress,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeIPAddress. +func (irnia IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// IntegrationRuntimeNodeMonitoringData monitoring data for integration runtime node. +type IntegrationRuntimeNodeMonitoringData struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // NodeName - READ-ONLY; Name of the integration runtime node. + NodeName *string `json:"nodeName,omitempty"` + // AvailableMemoryInMB - READ-ONLY; Available memory (MB) on the integration runtime node. + AvailableMemoryInMB *int32 `json:"availableMemoryInMB,omitempty"` + // CPUUtilization - READ-ONLY; CPU percentage on the integration runtime node. + CPUUtilization *int32 `json:"cpuUtilization,omitempty"` + // ConcurrentJobsLimit - READ-ONLY; Maximum concurrent jobs on the integration runtime node. + ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` + // ConcurrentJobsRunning - READ-ONLY; The number of jobs currently running on the integration runtime node. + ConcurrentJobsRunning *int32 `json:"concurrentJobsRunning,omitempty"` + // MaxConcurrentJobs - READ-ONLY; The maximum concurrent jobs in this integration runtime. + MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` + // SentBytes - READ-ONLY; Sent bytes on the integration runtime node. + SentBytes *float64 `json:"sentBytes,omitempty"` + // ReceivedBytes - READ-ONLY; Received bytes on the integration runtime node. + ReceivedBytes *float64 `json:"receivedBytes,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeMonitoringData. +func (irnmd IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + for k, v := range irnmd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeNodeMonitoringData struct. +func (irnmd *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if irnmd.AdditionalProperties == nil { + irnmd.AdditionalProperties = make(map[string]interface{}) + } + irnmd.AdditionalProperties[k] = additionalProperties + } + case "nodeName": + if v != nil { + var nodeName string + err = json.Unmarshal(*v, &nodeName) + if err != nil { + return err + } + irnmd.NodeName = &nodeName + } + case "availableMemoryInMB": + if v != nil { + var availableMemoryInMB int32 + err = json.Unmarshal(*v, &availableMemoryInMB) + if err != nil { + return err + } + irnmd.AvailableMemoryInMB = &availableMemoryInMB + } + case "cpuUtilization": + if v != nil { + var CPUUtilization int32 + err = json.Unmarshal(*v, &CPUUtilization) + if err != nil { + return err + } + irnmd.CPUUtilization = &CPUUtilization + } + case "concurrentJobsLimit": + if v != nil { + var concurrentJobsLimit int32 + err = json.Unmarshal(*v, &concurrentJobsLimit) + if err != nil { + return err + } + irnmd.ConcurrentJobsLimit = &concurrentJobsLimit + } + case "concurrentJobsRunning": + if v != nil { + var concurrentJobsRunning int32 + err = json.Unmarshal(*v, &concurrentJobsRunning) + if err != nil { + return err + } + irnmd.ConcurrentJobsRunning = &concurrentJobsRunning + } + case "maxConcurrentJobs": + if v != nil { + var maxConcurrentJobs int32 + err = json.Unmarshal(*v, &maxConcurrentJobs) + if err != nil { + return err + } + irnmd.MaxConcurrentJobs = &maxConcurrentJobs + } + case "sentBytes": + if v != nil { + var sentBytes float64 + err = json.Unmarshal(*v, &sentBytes) + if err != nil { + return err + } + irnmd.SentBytes = &sentBytes + } + case "receivedBytes": + if v != nil { + var receivedBytes float64 + err = json.Unmarshal(*v, &receivedBytes) + if err != nil { + return err + } + irnmd.ReceivedBytes = &receivedBytes + } + } + } + + return nil +} + +// IntegrationRuntimeObjectMetadataRefreshFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. +type IntegrationRuntimeObjectMetadataRefreshFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(IntegrationRuntimeObjectMetadataClient) (SsisObjectMetadataStatusResponse, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *IntegrationRuntimeObjectMetadataRefreshFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for IntegrationRuntimeObjectMetadataRefreshFuture.Result. +func (future *IntegrationRuntimeObjectMetadataRefreshFuture) result(client IntegrationRuntimeObjectMetadataClient) (somsr SsisObjectMetadataStatusResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeObjectMetadataRefreshFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + somsr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimeObjectMetadataRefreshFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if somsr.Response.Response, err = future.GetResult(sender); err == nil && somsr.Response.Response.StatusCode != http.StatusNoContent { + somsr, err = client.RefreshResponder(somsr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeObjectMetadataRefreshFuture", "Result", somsr.Response.Response, "Failure responding to request") + } + } + return +} + +// IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint azure-SSIS integration runtime outbound +// network dependency endpoints for one category. +type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint struct { + // Category - The category of outbound network dependency. + Category *string `json:"category,omitempty"` + // Endpoints - The endpoints for outbound network dependency. + Endpoints *[]IntegrationRuntimeOutboundNetworkDependenciesEndpoint `json:"endpoints,omitempty"` +} + +// IntegrationRuntimeOutboundNetworkDependenciesEndpoint the endpoint for Azure-SSIS integration runtime +// outbound network dependency. +type IntegrationRuntimeOutboundNetworkDependenciesEndpoint struct { + // DomainName - The domain name of endpoint. + DomainName *string `json:"domainName,omitempty"` + // EndpointDetails - The details of endpoint. + EndpointDetails *[]IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails `json:"endpointDetails,omitempty"` +} + +// IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails the details of Azure-SSIS integration +// runtime outbound network dependency endpoint. +type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails struct { + // Port - The port of endpoint. + Port *int32 `json:"port,omitempty"` +} + +// IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse azure-SSIS integration runtime outbound +// network dependency endpoints. +type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse struct { + autorest.Response `json:"-"` + // Value - The list of outbound network dependency endpoints. + Value *[]IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint `json:"value,omitempty"` +} + +// IntegrationRuntimeReference integration runtime reference type. +type IntegrationRuntimeReference struct { + // Type - Type of integration runtime. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference integration runtime name. + ReferenceName *string `json:"referenceName,omitempty"` + // Parameters - Arguments for integration runtime. + Parameters map[string]interface{} `json:"parameters"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeReference. +func (irr IntegrationRuntimeReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if irr.Type != nil { + objectMap["type"] = irr.Type + } + if irr.ReferenceName != nil { + objectMap["referenceName"] = irr.ReferenceName + } + if irr.Parameters != nil { + objectMap["parameters"] = irr.Parameters + } + return json.Marshal(objectMap) +} + +// IntegrationRuntimeRegenerateKeyParameters parameters to regenerate the authentication key. +type IntegrationRuntimeRegenerateKeyParameters struct { + // KeyName - The name of the authentication key to regenerate. Possible values include: 'IntegrationRuntimeAuthKeyNameAuthKey1', 'IntegrationRuntimeAuthKeyNameAuthKey2' + KeyName IntegrationRuntimeAuthKeyName `json:"keyName,omitempty"` +} + +// IntegrationRuntimeResource integration runtime resource type. +type IntegrationRuntimeResource struct { + autorest.Response `json:"-"` + // Properties - Integration runtime properties. + Properties BasicIntegrationRuntime `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeResource. +func (irr IntegrationRuntimeResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = irr.Properties + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeResource struct. +func (irr *IntegrationRuntimeResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicIntegrationRuntime(*v) + if err != nil { + return err + } + irr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + irr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + irr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + irr.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + irr.Etag = &etag + } + } + } + + return nil +} + +// IntegrationRuntimeSsisCatalogInfo catalog information for managed dedicated integration runtime. +type IntegrationRuntimeSsisCatalogInfo struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // CatalogServerEndpoint - The catalog database server URL. + CatalogServerEndpoint *string `json:"catalogServerEndpoint,omitempty"` + // CatalogAdminUserName - The administrator user name of catalog database. + CatalogAdminUserName *string `json:"catalogAdminUserName,omitempty"` + // CatalogAdminPassword - The password of the administrator user account of the catalog database. + CatalogAdminPassword *SecureString `json:"catalogAdminPassword,omitempty"` + // CatalogPricingTier - The pricing tier for the catalog database. The valid values could be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible values include: 'IntegrationRuntimeSsisCatalogPricingTierBasic', 'IntegrationRuntimeSsisCatalogPricingTierStandard', 'IntegrationRuntimeSsisCatalogPricingTierPremium', 'IntegrationRuntimeSsisCatalogPricingTierPremiumRS' + CatalogPricingTier IntegrationRuntimeSsisCatalogPricingTier `json:"catalogPricingTier,omitempty"` + // DualStandbyPairName - The dual standby pair name of Azure-SSIS Integration Runtimes to support SSISDB failover. + DualStandbyPairName *string `json:"dualStandbyPairName,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeSsisCatalogInfo. +func (irsci IntegrationRuntimeSsisCatalogInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if irsci.CatalogServerEndpoint != nil { + objectMap["catalogServerEndpoint"] = irsci.CatalogServerEndpoint + } + if irsci.CatalogAdminUserName != nil { + objectMap["catalogAdminUserName"] = irsci.CatalogAdminUserName + } + if irsci.CatalogAdminPassword != nil { + objectMap["catalogAdminPassword"] = irsci.CatalogAdminPassword + } + if irsci.CatalogPricingTier != "" { + objectMap["catalogPricingTier"] = irsci.CatalogPricingTier + } + if irsci.DualStandbyPairName != nil { + objectMap["dualStandbyPairName"] = irsci.DualStandbyPairName + } + for k, v := range irsci.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeSsisCatalogInfo struct. +func (irsci *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if irsci.AdditionalProperties == nil { + irsci.AdditionalProperties = make(map[string]interface{}) + } + irsci.AdditionalProperties[k] = additionalProperties + } + case "catalogServerEndpoint": + if v != nil { + var catalogServerEndpoint string + err = json.Unmarshal(*v, &catalogServerEndpoint) + if err != nil { + return err + } + irsci.CatalogServerEndpoint = &catalogServerEndpoint + } + case "catalogAdminUserName": + if v != nil { + var catalogAdminUserName string + err = json.Unmarshal(*v, &catalogAdminUserName) + if err != nil { + return err + } + irsci.CatalogAdminUserName = &catalogAdminUserName + } + case "catalogAdminPassword": + if v != nil { + var catalogAdminPassword SecureString + err = json.Unmarshal(*v, &catalogAdminPassword) + if err != nil { + return err + } + irsci.CatalogAdminPassword = &catalogAdminPassword + } + case "catalogPricingTier": + if v != nil { + var catalogPricingTier IntegrationRuntimeSsisCatalogPricingTier + err = json.Unmarshal(*v, &catalogPricingTier) + if err != nil { + return err + } + irsci.CatalogPricingTier = catalogPricingTier + } + case "dualStandbyPairName": + if v != nil { + var dualStandbyPairName string + err = json.Unmarshal(*v, &dualStandbyPairName) + if err != nil { + return err + } + irsci.DualStandbyPairName = &dualStandbyPairName + } + } + } + + return nil +} + +// IntegrationRuntimeSsisProperties SSIS properties for managed integration runtime. +type IntegrationRuntimeSsisProperties struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // CatalogInfo - Catalog information for managed dedicated integration runtime. + CatalogInfo *IntegrationRuntimeSsisCatalogInfo `json:"catalogInfo,omitempty"` + // LicenseType - License type for bringing your own license scenario. Possible values include: 'IntegrationRuntimeLicenseTypeBasePrice', 'IntegrationRuntimeLicenseTypeLicenseIncluded' + LicenseType IntegrationRuntimeLicenseType `json:"licenseType,omitempty"` + // CustomSetupScriptProperties - Custom setup script properties for a managed dedicated integration runtime. + CustomSetupScriptProperties *IntegrationRuntimeCustomSetupScriptProperties `json:"customSetupScriptProperties,omitempty"` + // DataProxyProperties - Data proxy properties for a managed dedicated integration runtime. + DataProxyProperties *IntegrationRuntimeDataProxyProperties `json:"dataProxyProperties,omitempty"` + // Edition - The edition for the SSIS Integration Runtime. Possible values include: 'IntegrationRuntimeEditionStandard', 'IntegrationRuntimeEditionEnterprise' + Edition IntegrationRuntimeEdition `json:"edition,omitempty"` + // ExpressCustomSetupProperties - Custom setup without script properties for a SSIS integration runtime. + ExpressCustomSetupProperties *[]BasicCustomSetupBase `json:"expressCustomSetupProperties,omitempty"` + // PackageStores - Package stores for the SSIS Integration Runtime. + PackageStores *[]PackageStore `json:"packageStores,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeSsisProperties. +func (irsp IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if irsp.CatalogInfo != nil { + objectMap["catalogInfo"] = irsp.CatalogInfo + } + if irsp.LicenseType != "" { + objectMap["licenseType"] = irsp.LicenseType + } + if irsp.CustomSetupScriptProperties != nil { + objectMap["customSetupScriptProperties"] = irsp.CustomSetupScriptProperties + } + if irsp.DataProxyProperties != nil { + objectMap["dataProxyProperties"] = irsp.DataProxyProperties + } + if irsp.Edition != "" { + objectMap["edition"] = irsp.Edition + } + if irsp.ExpressCustomSetupProperties != nil { + objectMap["expressCustomSetupProperties"] = irsp.ExpressCustomSetupProperties + } + if irsp.PackageStores != nil { + objectMap["packageStores"] = irsp.PackageStores + } + if irsp.Credential != nil { + objectMap["credential"] = irsp.Credential + } + for k, v := range irsp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeSsisProperties struct. +func (irsp *IntegrationRuntimeSsisProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if irsp.AdditionalProperties == nil { + irsp.AdditionalProperties = make(map[string]interface{}) + } + irsp.AdditionalProperties[k] = additionalProperties + } + case "catalogInfo": + if v != nil { + var catalogInfo IntegrationRuntimeSsisCatalogInfo + err = json.Unmarshal(*v, &catalogInfo) + if err != nil { + return err + } + irsp.CatalogInfo = &catalogInfo + } + case "licenseType": + if v != nil { + var licenseType IntegrationRuntimeLicenseType + err = json.Unmarshal(*v, &licenseType) + if err != nil { + return err + } + irsp.LicenseType = licenseType + } + case "customSetupScriptProperties": + if v != nil { + var customSetupScriptProperties IntegrationRuntimeCustomSetupScriptProperties + err = json.Unmarshal(*v, &customSetupScriptProperties) + if err != nil { + return err + } + irsp.CustomSetupScriptProperties = &customSetupScriptProperties + } + case "dataProxyProperties": + if v != nil { + var dataProxyProperties IntegrationRuntimeDataProxyProperties + err = json.Unmarshal(*v, &dataProxyProperties) + if err != nil { + return err + } + irsp.DataProxyProperties = &dataProxyProperties + } + case "edition": + if v != nil { + var edition IntegrationRuntimeEdition + err = json.Unmarshal(*v, &edition) + if err != nil { + return err + } + irsp.Edition = edition + } + case "expressCustomSetupProperties": + if v != nil { + expressCustomSetupProperties, err := unmarshalBasicCustomSetupBaseArray(*v) + if err != nil { + return err + } + irsp.ExpressCustomSetupProperties = &expressCustomSetupProperties + } + case "packageStores": + if v != nil { + var packageStores []PackageStore + err = json.Unmarshal(*v, &packageStores) + if err != nil { + return err + } + irsp.PackageStores = &packageStores + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + irsp.Credential = &credential + } + } + } + + return nil +} + +// BasicIntegrationRuntimeStatus integration runtime status. +type BasicIntegrationRuntimeStatus interface { + AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) + AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) + AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) +} + +// IntegrationRuntimeStatus integration runtime status. +type IntegrationRuntimeStatus struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. + DataFactoryName *string `json:"dataFactoryName,omitempty"` + // State - READ-ONLY; The state of integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' + State IntegrationRuntimeState `json:"state,omitempty"` + // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' + Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` +} + +func unmarshalBasicIntegrationRuntimeStatus(body []byte) (BasicIntegrationRuntimeStatus, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicIntegrationRuntimeStatusTypeSelfHosted): + var shirs SelfHostedIntegrationRuntimeStatus + err := json.Unmarshal(body, &shirs) + return shirs, err + case string(TypeBasicIntegrationRuntimeStatusTypeManaged): + var mirs ManagedIntegrationRuntimeStatus + err := json.Unmarshal(body, &mirs) + return mirs, err + default: + var irs IntegrationRuntimeStatus + err := json.Unmarshal(body, &irs) + return irs, err + } +} +func unmarshalBasicIntegrationRuntimeStatusArray(body []byte) ([]BasicIntegrationRuntimeStatus, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + irsArray := make([]BasicIntegrationRuntimeStatus, len(rawMessages)) + + for index, rawMessage := range rawMessages { + irs, err := unmarshalBasicIntegrationRuntimeStatus(*rawMessage) + if err != nil { + return nil, err + } + irsArray[index] = irs + } + return irsArray, nil +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeStatus. +func (irs IntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + irs.Type = TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus + objectMap := make(map[string]interface{}) + if irs.Type != "" { + objectMap["type"] = irs.Type + } + for k, v := range irs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. +func (irs IntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { + return nil, false +} + +// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. +func (irs IntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { + return nil, false +} + +// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. +func (irs IntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { + return &irs, true +} + +// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. +func (irs IntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { + return &irs, true +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeStatus struct. +func (irs *IntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if irs.AdditionalProperties == nil { + irs.AdditionalProperties = make(map[string]interface{}) + } + irs.AdditionalProperties[k] = additionalProperties + } + case "dataFactoryName": + if v != nil { + var dataFactoryName string + err = json.Unmarshal(*v, &dataFactoryName) + if err != nil { + return err + } + irs.DataFactoryName = &dataFactoryName + } + case "state": + if v != nil { + var state IntegrationRuntimeState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + irs.State = state + } + case "type": + if v != nil { + var typeVar TypeBasicIntegrationRuntimeStatus + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + irs.Type = typeVar + } + } + } + + return nil +} + +// IntegrationRuntimeStatusListResponse a list of integration runtime status. +type IntegrationRuntimeStatusListResponse struct { + // Value - List of integration runtime status. + Value *[]IntegrationRuntimeStatusResponse `json:"value,omitempty"` + // NextLink - 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 { + autorest.Response `json:"-"` + // Name - READ-ONLY; The integration runtime name. + Name *string `json:"name,omitempty"` + // Properties - Integration runtime properties. + Properties BasicIntegrationRuntimeStatus `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeStatusResponse. +func (irsr IntegrationRuntimeStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = irsr.Properties + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeStatusResponse struct. +func (irsr *IntegrationRuntimeStatusResponse) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + irsr.Name = &name + } + case "properties": + if v != nil { + properties, err := unmarshalBasicIntegrationRuntimeStatus(*v) + if err != nil { + return err + } + irsr.Properties = properties + } + } + } + + return nil +} + +// IntegrationRuntimeVNetProperties vNet properties for managed integration runtime. +type IntegrationRuntimeVNetProperties struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // VNetID - The ID of the VNet that this integration runtime will join. + VNetID *string `json:"vNetId,omitempty"` + // Subnet - The name of the subnet this integration runtime will join. + Subnet *string `json:"subnet,omitempty"` + // PublicIPs - Resource IDs of the public IP addresses that this integration runtime will use. + PublicIPs *[]string `json:"publicIPs,omitempty"` + // SubnetID - The ID of subnet, to which this Azure-SSIS integration runtime will be joined. + SubnetID *string `json:"subnetId,omitempty"` +} + +// MarshalJSON is the custom marshaler for IntegrationRuntimeVNetProperties. +func (irvnp IntegrationRuntimeVNetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if irvnp.VNetID != nil { + objectMap["vNetId"] = irvnp.VNetID + } + if irvnp.Subnet != nil { + objectMap["subnet"] = irvnp.Subnet + } + if irvnp.PublicIPs != nil { + objectMap["publicIPs"] = irvnp.PublicIPs + } + if irvnp.SubnetID != nil { + objectMap["subnetId"] = irvnp.SubnetID + } + for k, v := range irvnp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeVNetProperties struct. +func (irvnp *IntegrationRuntimeVNetProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if irvnp.AdditionalProperties == nil { + irvnp.AdditionalProperties = make(map[string]interface{}) + } + irvnp.AdditionalProperties[k] = additionalProperties + } + case "vNetId": + if v != nil { + var vNetID string + err = json.Unmarshal(*v, &vNetID) + if err != nil { + return err + } + irvnp.VNetID = &vNetID + } + case "subnet": + if v != nil { + var subnet string + err = json.Unmarshal(*v, &subnet) + if err != nil { + return err + } + irvnp.Subnet = &subnet + } + case "publicIPs": + if v != nil { + var publicIPs []string + err = json.Unmarshal(*v, &publicIPs) + if err != nil { + return err + } + irvnp.PublicIPs = &publicIPs + } + case "subnetId": + if v != nil { + var subnetID string + err = json.Unmarshal(*v, &subnetID) + if err != nil { + return err + } + irvnp.SubnetID = &subnetID + } + } + } + + return nil +} + +// IntegrationRuntimesStartFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type IntegrationRuntimesStartFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(IntegrationRuntimesClient) (IntegrationRuntimeStatusResponse, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *IntegrationRuntimesStartFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for IntegrationRuntimesStartFuture.Result. +func (future *IntegrationRuntimesStartFuture) result(client IntegrationRuntimesClient) (irsr IntegrationRuntimeStatusResponse, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + irsr.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStartFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if irsr.Response.Response, err = future.GetResult(sender); err == nil && irsr.Response.Response.StatusCode != http.StatusNoContent { + irsr, err = client.StartResponder(irsr.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", irsr.Response.Response, "Failure responding to request") + } + } + return +} + +// IntegrationRuntimesStopFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type IntegrationRuntimesStopFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(IntegrationRuntimesClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *IntegrationRuntimesStopFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for IntegrationRuntimesStopFuture.Result. +func (future *IntegrationRuntimesStopFuture) result(client IntegrationRuntimesClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStopFuture") + return + } + ar.Response = future.Response() + return +} + +// JSONDataset json dataset. +type JSONDataset struct { + // JSONDatasetTypeProperties - Json dataset properties. + *JSONDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JSONDataset. +func (jd JSONDataset) MarshalJSON() ([]byte, error) { + jd.Type = TypeBasicDatasetTypeJSON + objectMap := make(map[string]interface{}) + if jd.JSONDatasetTypeProperties != nil { + objectMap["typeProperties"] = jd.JSONDatasetTypeProperties + } + if jd.Description != nil { + objectMap["description"] = jd.Description + } + if jd.Structure != nil { + objectMap["structure"] = jd.Structure + } + if jd.Schema != nil { + objectMap["schema"] = jd.Schema + } + if jd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = jd.LinkedServiceName + } + if jd.Parameters != nil { + objectMap["parameters"] = jd.Parameters + } + if jd.Annotations != nil { + objectMap["annotations"] = jd.Annotations + } + if jd.Folder != nil { + objectMap["folder"] = jd.Folder + } + if jd.Type != "" { + objectMap["type"] = jd.Type + } + for k, v := range jd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsJSONDataset() (*JSONDataset, bool) { + return &jd, true +} + +// AsDelimitedTextDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for JSONDataset. +func (jd JSONDataset) AsBasicDataset() (BasicDataset, bool) { + return &jd, true +} + +// UnmarshalJSON is the custom unmarshaler for JSONDataset struct. +func (jd *JSONDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var JSONDatasetTypeProperties JSONDatasetTypeProperties + err = json.Unmarshal(*v, &JSONDatasetTypeProperties) + if err != nil { + return err + } + jd.JSONDatasetTypeProperties = &JSONDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jd.AdditionalProperties == nil { + jd.AdditionalProperties = make(map[string]interface{}) + } + jd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + jd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + jd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + jd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + jd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + jd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + jd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + jd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jd.Type = typeVar + } + } + } + + return nil +} + +// JSONDatasetTypeProperties json dataset properties. +type JSONDatasetTypeProperties struct { + // Location - The location of the json data storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // EncodingName - 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"` + // Compression - The data compression method used for the json dataset. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for JSONDatasetTypeProperties struct. +func (jdtp *JSONDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + jdtp.Location = location + } + case "encodingName": + if v != nil { + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) + if err != nil { + return err + } + jdtp.EncodingName = encodingName + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + jdtp.Compression = &compression + } + } + } + + return nil +} + +// JSONFormat the data stored in JSON format. +type JSONFormat struct { + // FilePattern - 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"` + // NestingSeparator - The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string). + NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + // EncodingName - 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"` + // JSONNodeReference - The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string). + JSONNodeReference interface{} `json:"jsonNodeReference,omitempty"` + // JSONPathDefinition - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Serializer - Serializer. Type: string (or Expression with resultType string). + Serializer interface{} `json:"serializer,omitempty"` + // Deserializer - Deserializer. Type: string (or Expression with resultType string). + Deserializer interface{} `json:"deserializer,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' + Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JSONFormat. +func (jf JSONFormat) MarshalJSON() ([]byte, error) { + jf.Type = TypeBasicDatasetStorageFormatTypeJSONFormat + objectMap := make(map[string]interface{}) + if jf.FilePattern != nil { + objectMap["filePattern"] = jf.FilePattern + } + if jf.NestingSeparator != nil { + objectMap["nestingSeparator"] = jf.NestingSeparator + } + if jf.EncodingName != nil { + objectMap["encodingName"] = jf.EncodingName + } + if jf.JSONNodeReference != nil { + objectMap["jsonNodeReference"] = jf.JSONNodeReference + } + if jf.JSONPathDefinition != nil { + objectMap["jsonPathDefinition"] = jf.JSONPathDefinition + } + if jf.Serializer != nil { + objectMap["serializer"] = jf.Serializer + } + if jf.Deserializer != nil { + objectMap["deserializer"] = jf.Deserializer + } + if jf.Type != "" { + objectMap["type"] = jf.Type + } + for k, v := range jf.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsParquetFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsParquetFormat() (*ParquetFormat, bool) { + return nil, false +} + +// AsOrcFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsOrcFormat() (*OrcFormat, bool) { + return nil, false +} + +// AsAvroFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsAvroFormat() (*AvroFormat, bool) { + return nil, false +} + +// AsJSONFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsJSONFormat() (*JSONFormat, bool) { + return &jf, true +} + +// AsTextFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsTextFormat() (*TextFormat, bool) { + return nil, false +} + +// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { + return nil, false +} + +// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. +func (jf JSONFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { + return &jf, true +} + +// UnmarshalJSON is the custom unmarshaler for JSONFormat struct. +func (jf *JSONFormat) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "filePattern": + if v != nil { + var filePattern interface{} + err = json.Unmarshal(*v, &filePattern) + if err != nil { + return err + } + jf.FilePattern = filePattern + } + case "nestingSeparator": + if v != nil { + var nestingSeparator interface{} + err = json.Unmarshal(*v, &nestingSeparator) + if err != nil { + return err + } + jf.NestingSeparator = nestingSeparator + } + case "encodingName": + if v != nil { + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) + if err != nil { + return err + } + jf.EncodingName = encodingName + } + case "jsonNodeReference": + if v != nil { + var JSONNodeReference interface{} + err = json.Unmarshal(*v, &JSONNodeReference) + if err != nil { + return err + } + jf.JSONNodeReference = JSONNodeReference + } + case "jsonPathDefinition": + if v != nil { + var JSONPathDefinition interface{} + err = json.Unmarshal(*v, &JSONPathDefinition) + if err != nil { + return err + } + jf.JSONPathDefinition = JSONPathDefinition + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jf.AdditionalProperties == nil { + jf.AdditionalProperties = make(map[string]interface{}) + } + jf.AdditionalProperties[k] = additionalProperties + } + case "serializer": + if v != nil { + var serializer interface{} + err = json.Unmarshal(*v, &serializer) + if err != nil { + return err + } + jf.Serializer = serializer + } + case "deserializer": + if v != nil { + var deserializer interface{} + err = json.Unmarshal(*v, &deserializer) + if err != nil { + return err + } + jf.Deserializer = deserializer + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetStorageFormat + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jf.Type = typeVar + } + } + } + + return nil +} + +// JSONReadSettings json read settings. +type JSONReadSettings struct { + // CompressionProperties - Compression settings. + CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JSONReadSettings. +func (jrs JSONReadSettings) MarshalJSON() ([]byte, error) { + jrs.Type = TypeBasicFormatReadSettingsTypeJSONReadSettings + objectMap := make(map[string]interface{}) + objectMap["compressionProperties"] = jrs.CompressionProperties + if jrs.Type != "" { + objectMap["type"] = jrs.Type + } + for k, v := range jrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { + return nil, false +} + +// AsXMLReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { + return nil, false +} + +// AsJSONReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { + return &jrs, true +} + +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { + return nil, false +} + +// AsParquetReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { + return nil, false +} + +// AsFormatReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { + return nil, false +} + +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. +func (jrs JSONReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &jrs, true +} + +// UnmarshalJSON is the custom unmarshaler for JSONReadSettings struct. +func (jrs *JSONReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "compressionProperties": + if v != nil { + compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) + if err != nil { + return err + } + jrs.CompressionProperties = compressionProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jrs.AdditionalProperties == nil { + jrs.AdditionalProperties = make(map[string]interface{}) + } + jrs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jrs.Type = typeVar + } + } + } + + return nil +} + +// JSONSink a copy activity Json sink. +type JSONSink struct { + // StoreSettings - Json store settings. + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` + // FormatSettings - Json format settings. + FormatSettings *JSONWriteSettings `json:"formatSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JSONSink. +func (js JSONSink) MarshalJSON() ([]byte, error) { + js.Type = TypeBasicCopySinkTypeJSONSink + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = js.StoreSettings + if js.FormatSettings != nil { + objectMap["formatSettings"] = js.FormatSettings + } + if js.WriteBatchSize != nil { + objectMap["writeBatchSize"] = js.WriteBatchSize + } + if js.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = js.WriteBatchTimeout + } + if js.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = js.SinkRetryCount + } + if js.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = js.SinkRetryWait + } + if js.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections + } + if js.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = js.DisableMetricsCollection + } + if js.Type != "" { + objectMap["type"] = js.Type + } + for k, v := range js.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsJSONSink() (*JSONSink, bool) { + return &js, true +} + +// AsDelimitedTextSink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for JSONSink. +func (js JSONSink) AsBasicCopySink() (BasicCopySink, bool) { + return &js, true +} + +// UnmarshalJSON is the custom unmarshaler for JSONSink struct. +func (js *JSONSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) + if err != nil { + return err + } + js.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings JSONWriteSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + js.FormatSettings = &formatSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if js.AdditionalProperties == nil { + js.AdditionalProperties = make(map[string]interface{}) + } + js.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + js.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + js.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + js.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + js.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + js.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + js.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + js.Type = typeVar + } + } + } + + return nil +} + +// JSONSource a copy activity Json source. +type JSONSource struct { + // StoreSettings - Json store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - Json format settings. + FormatSettings *JSONReadSettings `json:"formatSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JSONSource. +func (js JSONSource) MarshalJSON() ([]byte, error) { + js.Type = TypeBasicCopySourceTypeJSONSource + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = js.StoreSettings + if js.FormatSettings != nil { + objectMap["formatSettings"] = js.FormatSettings + } + if js.AdditionalColumns != nil { + objectMap["additionalColumns"] = js.AdditionalColumns + } + if js.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = js.SourceRetryCount + } + if js.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = js.SourceRetryWait + } + if js.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections + } + if js.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = js.DisableMetricsCollection + } + if js.Type != "" { + objectMap["type"] = js.Type + } + for k, v := range js.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsJSONSource() (*JSONSource, bool) { + return &js, true +} + +// AsDelimitedTextSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for JSONSource. +func (js JSONSource) AsBasicCopySource() (BasicCopySource, bool) { + return &js, true +} + +// UnmarshalJSON is the custom unmarshaler for JSONSource struct. +func (js *JSONSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + js.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings JSONReadSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + js.FormatSettings = &formatSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + js.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if js.AdditionalProperties == nil { + js.AdditionalProperties = make(map[string]interface{}) + } + js.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + js.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + js.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + js.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + js.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + js.Type = typeVar + } + } + } + + return nil +} + +// JSONWriteSettings json write settings. +type JSONWriteSettings struct { + // FilePattern - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JSONWriteSettings. +func (jws JSONWriteSettings) MarshalJSON() ([]byte, error) { + jws.Type = TypeBasicFormatWriteSettingsTypeJSONWriteSettings + objectMap := make(map[string]interface{}) + if jws.FilePattern != nil { + objectMap["filePattern"] = jws.FilePattern + } + if jws.Type != "" { + objectMap["type"] = jws.Type + } + for k, v := range jws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { + return &jws, true +} + +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { + return nil, false +} + +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { + return nil, false +} + +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { + return nil, false +} + +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { + return nil, false +} + +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return nil, false +} + +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. +func (jws JSONWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &jws, true +} + +// UnmarshalJSON is the custom unmarshaler for JSONWriteSettings struct. +func (jws *JSONWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "filePattern": + if v != nil { + var filePattern interface{} + err = json.Unmarshal(*v, &filePattern) + if err != nil { + return err + } + jws.FilePattern = filePattern + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jws.AdditionalProperties == nil { + jws.AdditionalProperties = make(map[string]interface{}) + } + jws.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jws.Type = typeVar + } + } + } + + return nil +} + +// JiraLinkedService jira Service linked service. +type JiraLinkedService struct { + // JiraLinkedServiceTypeProperties - Jira Service linked service properties. + *JiraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JiraLinkedService. +func (jls JiraLinkedService) MarshalJSON() ([]byte, error) { + jls.Type = TypeBasicLinkedServiceTypeJira + objectMap := make(map[string]interface{}) + if jls.JiraLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = jls.JiraLinkedServiceTypeProperties + } + if jls.ConnectVia != nil { + objectMap["connectVia"] = jls.ConnectVia + } + if jls.Description != nil { + objectMap["description"] = jls.Description + } + if jls.Parameters != nil { + objectMap["parameters"] = jls.Parameters + } + if jls.Annotations != nil { + objectMap["annotations"] = jls.Annotations + } + if jls.Type != "" { + objectMap["type"] = jls.Type + } + for k, v := range jls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return &jls, true +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for JiraLinkedService. +func (jls JiraLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &jls, true +} + +// UnmarshalJSON is the custom unmarshaler for JiraLinkedService struct. +func (jls *JiraLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var jiraLinkedServiceTypeProperties JiraLinkedServiceTypeProperties + err = json.Unmarshal(*v, &jiraLinkedServiceTypeProperties) + if err != nil { + return err + } + jls.JiraLinkedServiceTypeProperties = &jiraLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jls.AdditionalProperties == nil { + jls.AdditionalProperties = make(map[string]interface{}) + } + jls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + jls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + jls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + jls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + jls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jls.Type = typeVar + } + } + } + + return nil +} + +// JiraLinkedServiceTypeProperties jira Service linked service properties. +type JiraLinkedServiceTypeProperties struct { + // Host - The IP address or host name of the Jira service. (e.g. jira.example.com) + Host interface{} `json:"host,omitempty"` + // Port - 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"` + // Username - The user name that you use to access Jira Service. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name that you provided in the username field. + Password BasicSecretBase `json:"password,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for JiraLinkedServiceTypeProperties struct. +func (jlstp *JiraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + jlstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + jlstp.Port = port + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + jlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + jlstp.Password = password + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + jlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + jlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + jlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + jlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// JiraObjectDataset jira Service dataset. +type JiraObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JiraObjectDataset. +func (jod JiraObjectDataset) MarshalJSON() ([]byte, error) { + jod.Type = TypeBasicDatasetTypeJiraObject + objectMap := make(map[string]interface{}) + if jod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = jod.GenericDatasetTypeProperties + } + if jod.Description != nil { + objectMap["description"] = jod.Description + } + if jod.Structure != nil { + objectMap["structure"] = jod.Structure + } + if jod.Schema != nil { + objectMap["schema"] = jod.Schema + } + if jod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = jod.LinkedServiceName + } + if jod.Parameters != nil { + objectMap["parameters"] = jod.Parameters + } + if jod.Annotations != nil { + objectMap["annotations"] = jod.Annotations + } + if jod.Folder != nil { + objectMap["folder"] = jod.Folder + } + if jod.Type != "" { + objectMap["type"] = jod.Type + } + for k, v := range jod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return &jod, true +} + +// AsImpalaObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for JiraObjectDataset. +func (jod JiraObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &jod, true +} + +// UnmarshalJSON is the custom unmarshaler for JiraObjectDataset struct. +func (jod *JiraObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + jod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if jod.AdditionalProperties == nil { + jod.AdditionalProperties = make(map[string]interface{}) + } + jod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + jod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + jod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + jod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + jod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + jod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + jod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + jod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + jod.Type = typeVar + } + } + } + + return nil +} + +// JiraSource a copy activity Jira Service source. +type JiraSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for JiraSource. +func (js JiraSource) MarshalJSON() ([]byte, error) { + js.Type = TypeBasicCopySourceTypeJiraSource + objectMap := make(map[string]interface{}) + if js.Query != nil { + objectMap["query"] = js.Query + } + if js.QueryTimeout != nil { + objectMap["queryTimeout"] = js.QueryTimeout + } + if js.AdditionalColumns != nil { + objectMap["additionalColumns"] = js.AdditionalColumns + } + if js.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = js.SourceRetryCount + } + if js.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = js.SourceRetryWait + } + if js.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections + } + if js.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = js.DisableMetricsCollection + } + if js.Type != "" { + objectMap["type"] = js.Type + } + for k, v := range js.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsJiraSource() (*JiraSource, bool) { + return &js, true +} + +// AsImpalaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &js, true +} + +// AsBinarySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for JiraSource. +func (js JiraSource) AsBasicCopySource() (BasicCopySource, bool) { + return &js, true +} + +// UnmarshalJSON is the custom unmarshaler for JiraSource struct. +func (js *JiraSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + js.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + js.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + js.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if js.AdditionalProperties == nil { + js.AdditionalProperties = make(map[string]interface{}) + } + js.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + js.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + js.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + js.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + js.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + js.Type = typeVar + } + } + } + + return nil +} + +// LakeHouseLinkedService microsoft Fabric LakeHouse linked service. +type LakeHouseLinkedService struct { + // LakeHouseLinkedServiceTypeProperties - Microsoft Fabric LakeHouse linked service properties. + *LakeHouseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) MarshalJSON() ([]byte, error) { + lhls.Type = TypeBasicLinkedServiceTypeLakeHouse + objectMap := make(map[string]interface{}) + if lhls.LakeHouseLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = lhls.LakeHouseLinkedServiceTypeProperties + } + if lhls.ConnectVia != nil { + objectMap["connectVia"] = lhls.ConnectVia + } + if lhls.Description != nil { + objectMap["description"] = lhls.Description + } + if lhls.Parameters != nil { + objectMap["parameters"] = lhls.Parameters + } + if lhls.Annotations != nil { + objectMap["annotations"] = lhls.Annotations + } + if lhls.Type != "" { + objectMap["type"] = lhls.Type + } + for k, v := range lhls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return &lhls, true +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. +func (lhls LakeHouseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &lhls, true +} + +// UnmarshalJSON is the custom unmarshaler for LakeHouseLinkedService struct. +func (lhls *LakeHouseLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var lakeHouseLinkedServiceTypeProperties LakeHouseLinkedServiceTypeProperties + err = json.Unmarshal(*v, &lakeHouseLinkedServiceTypeProperties) + if err != nil { + return err + } + lhls.LakeHouseLinkedServiceTypeProperties = &lakeHouseLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if lhls.AdditionalProperties == nil { + lhls.AdditionalProperties = make(map[string]interface{}) + } + lhls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + lhls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + lhls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + lhls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + lhls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lhls.Type = typeVar + } + } + } + + return nil +} + +// LakeHouseLinkedServiceTypeProperties microsoft Fabric LakeHouse linked service properties. +type LakeHouseLinkedServiceTypeProperties struct { + // WorkspaceID - The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). + WorkspaceID interface{} `json:"workspaceId,omitempty"` + // ArtifactID - The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with resultType string). + ArtifactID interface{} `json:"artifactId,omitempty"` + // ServicePrincipalID - The ID of the application used to authenticate against Microsoft Fabric LakeHouse. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The Key of the application used to authenticate against Microsoft Fabric LakeHouse. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // ServicePrincipalCredentialType - 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"` + // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for LakeHouseLinkedServiceTypeProperties struct. +func (lhlstp *LakeHouseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "workspaceId": + if v != nil { + var workspaceID interface{} + err = json.Unmarshal(*v, &workspaceID) + if err != nil { + return err + } + lhlstp.WorkspaceID = workspaceID + } + case "artifactId": + if v != nil { + var artifactID interface{} + err = json.Unmarshal(*v, &artifactID) + if err != nil { + return err + } + lhlstp.ArtifactID = artifactID + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + lhlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + lhlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + lhlstp.Tenant = tenant + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + lhlstp.EncryptedCredential = &encryptedCredential + } + case "servicePrincipalCredentialType": + if v != nil { + var servicePrincipalCredentialType interface{} + err = json.Unmarshal(*v, &servicePrincipalCredentialType) + if err != nil { + return err + } + lhlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + } + case "servicePrincipalCredential": + if v != nil { + servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + lhlstp.ServicePrincipalCredential = servicePrincipalCredential + } + } + } + + return nil +} + +// LakeHouseLocation the location of Microsoft Fabric LakeHouse Files dataset. +type LakeHouseLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LakeHouseLocation. +func (lhl LakeHouseLocation) MarshalJSON() ([]byte, error) { + lhl.Type = TypeBasicDatasetLocationTypeLakeHouseLocation + objectMap := make(map[string]interface{}) + if lhl.FolderPath != nil { + objectMap["folderPath"] = lhl.FolderPath + } + if lhl.FileName != nil { + objectMap["fileName"] = lhl.FileName + } + if lhl.Type != "" { + objectMap["type"] = lhl.Type + } + for k, v := range lhl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return &lhl, true +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for LakeHouseLocation. +func (lhl LakeHouseLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &lhl, true +} + +// UnmarshalJSON is the custom unmarshaler for LakeHouseLocation struct. +func (lhl *LakeHouseLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if lhl.AdditionalProperties == nil { + lhl.AdditionalProperties = make(map[string]interface{}) + } + lhl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + lhl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + lhl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lhl.Type = typeVar + } + } + } + + return nil +} + +// LakeHouseReadSettings microsoft Fabric LakeHouse Files read settings. +type LakeHouseReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) MarshalJSON() ([]byte, error) { + lhrs.Type = TypeBasicStoreReadSettingsTypeLakeHouseReadSettings + objectMap := make(map[string]interface{}) + if lhrs.Recursive != nil { + objectMap["recursive"] = lhrs.Recursive + } + if lhrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = lhrs.WildcardFolderPath + } + if lhrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = lhrs.WildcardFileName + } + if lhrs.FileListPath != nil { + objectMap["fileListPath"] = lhrs.FileListPath + } + if lhrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = lhrs.EnablePartitionDiscovery + } + if lhrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = lhrs.PartitionRootPath + } + if lhrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = lhrs.DeleteFilesAfterCompletion + } + if lhrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = lhrs.ModifiedDatetimeStart + } + if lhrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = lhrs.ModifiedDatetimeEnd + } + if lhrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = lhrs.MaxConcurrentConnections + } + if lhrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = lhrs.DisableMetricsCollection + } + if lhrs.Type != "" { + objectMap["type"] = lhrs.Type + } + for k, v := range lhrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return &lhrs, true +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. +func (lhrs LakeHouseReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &lhrs, true +} + +// UnmarshalJSON is the custom unmarshaler for LakeHouseReadSettings struct. +func (lhrs *LakeHouseReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + lhrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + lhrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + lhrs.WildcardFileName = wildcardFileName + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + lhrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + lhrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + lhrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + lhrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + lhrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + lhrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if lhrs.AdditionalProperties == nil { + lhrs.AdditionalProperties = make(map[string]interface{}) + } + lhrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + lhrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + lhrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lhrs.Type = typeVar + } + } + } + + return nil +} + +// LakeHouseTableDataset microsoft Fabric LakeHouse Table. +type LakeHouseTableDataset struct { + // LakeHouseTableDatasetTypeProperties - Microsoft Fabric LakeHouse Table dataset properties. + *LakeHouseTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) MarshalJSON() ([]byte, error) { + lhtd.Type = TypeBasicDatasetTypeLakeHouseTable + objectMap := make(map[string]interface{}) + if lhtd.LakeHouseTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = lhtd.LakeHouseTableDatasetTypeProperties + } + if lhtd.Description != nil { + objectMap["description"] = lhtd.Description + } + if lhtd.Structure != nil { + objectMap["structure"] = lhtd.Structure + } + if lhtd.Schema != nil { + objectMap["schema"] = lhtd.Schema + } + if lhtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = lhtd.LinkedServiceName + } + if lhtd.Parameters != nil { + objectMap["parameters"] = lhtd.Parameters + } + if lhtd.Annotations != nil { + objectMap["annotations"] = lhtd.Annotations + } + if lhtd.Folder != nil { + objectMap["folder"] = lhtd.Folder + } + if lhtd.Type != "" { + objectMap["type"] = lhtd.Type + } + for k, v := range lhtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return &lhtd, true +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for LakeHouseTableDataset. +func (lhtd LakeHouseTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &lhtd, true +} + +// UnmarshalJSON is the custom unmarshaler for LakeHouseTableDataset struct. +func (lhtd *LakeHouseTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var lakeHouseTableDatasetTypeProperties LakeHouseTableDatasetTypeProperties + err = json.Unmarshal(*v, &lakeHouseTableDatasetTypeProperties) + if err != nil { + return err + } + lhtd.LakeHouseTableDatasetTypeProperties = &lakeHouseTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if lhtd.AdditionalProperties == nil { + lhtd.AdditionalProperties = make(map[string]interface{}) + } + lhtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + lhtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + lhtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + lhtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + lhtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + lhtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + lhtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + lhtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lhtd.Type = typeVar + } + } + } + + return nil +} + +// LakeHouseTableDatasetTypeProperties microsoft Fabric LakeHouse Table dataset properties. +type LakeHouseTableDatasetTypeProperties struct { + // Table - The name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// LakeHouseTableSink a copy activity for Microsoft Fabric LakeHouse Table sink. +type LakeHouseTableSink struct { + // TableActionOption - The type of table action for LakeHouse Table sink. Possible values include: "None", "Append", "Overwrite". + TableActionOption interface{} `json:"tableActionOption,omitempty"` + // PartitionOption - 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 interface{} `json:"partitionOption,omitempty"` + // PartitionNameList - Specify the partition column names from sink columns. Type: array of objects (or Expression with resultType array of objects). + PartitionNameList interface{} `json:"partitionNameList,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LakeHouseTableSink. +func (lhts LakeHouseTableSink) MarshalJSON() ([]byte, error) { + lhts.Type = TypeBasicCopySinkTypeLakeHouseTableSink + objectMap := make(map[string]interface{}) + if lhts.TableActionOption != nil { + objectMap["tableActionOption"] = lhts.TableActionOption + } + if lhts.PartitionOption != nil { + objectMap["partitionOption"] = lhts.PartitionOption + } + if lhts.PartitionNameList != nil { + objectMap["partitionNameList"] = lhts.PartitionNameList + } + if lhts.WriteBatchSize != nil { + objectMap["writeBatchSize"] = lhts.WriteBatchSize + } + if lhts.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = lhts.WriteBatchTimeout + } + if lhts.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = lhts.SinkRetryCount + } + if lhts.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = lhts.SinkRetryWait + } + if lhts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = lhts.MaxConcurrentConnections + } + if lhts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = lhts.DisableMetricsCollection + } + if lhts.Type != "" { + objectMap["type"] = lhts.Type + } + for k, v := range lhts.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return &lhts, true +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for LakeHouseTableSink. +func (lhts LakeHouseTableSink) AsBasicCopySink() (BasicCopySink, bool) { + return &lhts, true +} + +// UnmarshalJSON is the custom unmarshaler for LakeHouseTableSink struct. +func (lhts *LakeHouseTableSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "tableActionOption": + if v != nil { + var tableActionOption interface{} + err = json.Unmarshal(*v, &tableActionOption) + if err != nil { + return err + } + lhts.TableActionOption = tableActionOption + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + lhts.PartitionOption = partitionOption + } + case "partitionNameList": + if v != nil { + var partitionNameList interface{} + err = json.Unmarshal(*v, &partitionNameList) + if err != nil { + return err + } + lhts.PartitionNameList = partitionNameList + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if lhts.AdditionalProperties == nil { + lhts.AdditionalProperties = make(map[string]interface{}) + } + lhts.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + lhts.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + lhts.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + lhts.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + lhts.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + lhts.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + lhts.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lhts.Type = typeVar + } + } + } + + return nil +} + +// LakeHouseTableSource a copy activity source for Microsoft Fabric LakeHouse Table. +type LakeHouseTableSource struct { + // TimestampAsOf - Query an older snapshot by timestamp. Type: string (or Expression with resultType string). + TimestampAsOf interface{} `json:"timestampAsOf,omitempty"` + // VersionAsOf - Query an older snapshot by version. Type: integer (or Expression with resultType integer). + VersionAsOf interface{} `json:"versionAsOf,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LakeHouseTableSource. +func (lhts LakeHouseTableSource) MarshalJSON() ([]byte, error) { + lhts.Type = TypeBasicCopySourceTypeLakeHouseTableSource + objectMap := make(map[string]interface{}) + if lhts.TimestampAsOf != nil { + objectMap["timestampAsOf"] = lhts.TimestampAsOf + } + if lhts.VersionAsOf != nil { + objectMap["versionAsOf"] = lhts.VersionAsOf + } + if lhts.AdditionalColumns != nil { + objectMap["additionalColumns"] = lhts.AdditionalColumns + } + if lhts.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = lhts.SourceRetryCount + } + if lhts.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = lhts.SourceRetryWait + } + if lhts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = lhts.MaxConcurrentConnections + } + if lhts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = lhts.DisableMetricsCollection + } + if lhts.Type != "" { + objectMap["type"] = lhts.Type + } + for k, v := range lhts.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return &lhts, true +} + +// AsHTTPSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for LakeHouseTableSource. +func (lhts LakeHouseTableSource) AsBasicCopySource() (BasicCopySource, bool) { + return &lhts, true +} + +// UnmarshalJSON is the custom unmarshaler for LakeHouseTableSource struct. +func (lhts *LakeHouseTableSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "timestampAsOf": + if v != nil { + var timestampAsOf interface{} + err = json.Unmarshal(*v, ×tampAsOf) + if err != nil { + return err + } + lhts.TimestampAsOf = timestampAsOf + } + case "versionAsOf": + if v != nil { + var versionAsOf interface{} + err = json.Unmarshal(*v, &versionAsOf) + if err != nil { + return err + } + lhts.VersionAsOf = versionAsOf + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + lhts.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if lhts.AdditionalProperties == nil { + lhts.AdditionalProperties = make(map[string]interface{}) + } + lhts.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + lhts.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + lhts.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + lhts.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + lhts.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lhts.Type = typeVar + } + } + } + + return nil +} + +// LakeHouseWriteSettings microsoft Fabric LakeHouse Files write settings. +type LakeHouseWriteSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) MarshalJSON() ([]byte, error) { + lhws.Type = TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings + objectMap := make(map[string]interface{}) + if lhws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = lhws.MaxConcurrentConnections + } + if lhws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = lhws.DisableMetricsCollection + } + if lhws.CopyBehavior != nil { + objectMap["copyBehavior"] = lhws.CopyBehavior + } + if lhws.Metadata != nil { + objectMap["metadata"] = lhws.Metadata + } + if lhws.Type != "" { + objectMap["type"] = lhws.Type + } + for k, v := range lhws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { + return &lhws, true +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. +func (lhws LakeHouseWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &lhws, true +} + +// UnmarshalJSON is the custom unmarshaler for LakeHouseWriteSettings struct. +func (lhws *LakeHouseWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if lhws.AdditionalProperties == nil { + lhws.AdditionalProperties = make(map[string]interface{}) + } + lhws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + lhws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + lhws.DisableMetricsCollection = disableMetricsCollection + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + lhws.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + lhws.Metadata = &metadata + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lhws.Type = typeVar + } + } + } + + return nil +} + +// LicensedComponentSetupTypeProperties installation of licensed component setup type properties. +type LicensedComponentSetupTypeProperties struct { + // ComponentName - The name of the 3rd party component. + ComponentName *string `json:"componentName,omitempty"` + // LicenseKey - The license key to activate the component. + LicenseKey BasicSecretBase `json:"licenseKey,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for LicensedComponentSetupTypeProperties struct. +func (lcstp *LicensedComponentSetupTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "componentName": + if v != nil { + var componentName string + err = json.Unmarshal(*v, &componentName) + if err != nil { + return err + } + lcstp.ComponentName = &componentName + } + case "licenseKey": + if v != nil { + licenseKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + lcstp.LicenseKey = licenseKey + } + } + } + + return nil +} + +// LinkedIntegrationRuntime the linked integration runtime information. +type LinkedIntegrationRuntime struct { + // Name - READ-ONLY; The name of the linked integration runtime. + Name *string `json:"name,omitempty"` + // SubscriptionID - READ-ONLY; The subscription ID for which the linked integration runtime belong to. + SubscriptionID *string `json:"subscriptionId,omitempty"` + // DataFactoryName - READ-ONLY; The name of the data factory for which the linked integration runtime belong to. + DataFactoryName *string `json:"dataFactoryName,omitempty"` + // DataFactoryLocation - READ-ONLY; The location of the data factory for which the linked integration runtime belong to. + DataFactoryLocation *string `json:"dataFactoryLocation,omitempty"` + // CreateTime - READ-ONLY; The creating time of the linked integration runtime. + CreateTime *date.Time `json:"createTime,omitempty"` +} + +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntime. +func (lir LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// LinkedIntegrationRuntimeKeyAuthorization the key authorization type integration runtime. +type LinkedIntegrationRuntimeKeyAuthorization struct { + // Key - The key used for authorization. + Key *SecureString `json:"key,omitempty"` + // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' + AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` +} + +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeKeyAuthorization. +func (lirka LinkedIntegrationRuntimeKeyAuthorization) MarshalJSON() ([]byte, error) { + lirka.AuthorizationType = AuthorizationTypeKey + objectMap := make(map[string]interface{}) + if lirka.Key != nil { + objectMap["key"] = lirka.Key + } + if lirka.AuthorizationType != "" { + objectMap["authorizationType"] = lirka.AuthorizationType + } + return json.Marshal(objectMap) +} + +// AsLinkedIntegrationRuntimeRbacAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeKeyAuthorization. +func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsLinkedIntegrationRuntimeRbacAuthorization() (*LinkedIntegrationRuntimeRbacAuthorization, bool) { + return nil, false +} + +// AsLinkedIntegrationRuntimeKeyAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeKeyAuthorization. +func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsLinkedIntegrationRuntimeKeyAuthorization() (*LinkedIntegrationRuntimeKeyAuthorization, bool) { + return &lirka, true +} + +// AsLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeKeyAuthorization. +func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsLinkedIntegrationRuntimeType() (*LinkedIntegrationRuntimeType, bool) { + return nil, false +} + +// AsBasicLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeKeyAuthorization. +func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsBasicLinkedIntegrationRuntimeType() (BasicLinkedIntegrationRuntimeType, bool) { + return &lirka, true +} + +// LinkedIntegrationRuntimeRbacAuthorization the role based access control (RBAC) authorization type +// integration runtime. +type LinkedIntegrationRuntimeRbacAuthorization struct { + // ResourceID - The resource identifier of the integration runtime to be shared. + ResourceID *string `json:"resourceId,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` + // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' + AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` +} + +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeRbacAuthorization. +func (lirra LinkedIntegrationRuntimeRbacAuthorization) MarshalJSON() ([]byte, error) { + lirra.AuthorizationType = AuthorizationTypeRBAC + objectMap := make(map[string]interface{}) + if lirra.ResourceID != nil { + objectMap["resourceId"] = lirra.ResourceID + } + if lirra.Credential != nil { + objectMap["credential"] = lirra.Credential + } + if lirra.AuthorizationType != "" { + objectMap["authorizationType"] = lirra.AuthorizationType + } + return json.Marshal(objectMap) +} + +// AsLinkedIntegrationRuntimeRbacAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeRbacAuthorization. +func (lirra LinkedIntegrationRuntimeRbacAuthorization) AsLinkedIntegrationRuntimeRbacAuthorization() (*LinkedIntegrationRuntimeRbacAuthorization, bool) { + return &lirra, true +} + +// AsLinkedIntegrationRuntimeKeyAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeRbacAuthorization. +func (lirra LinkedIntegrationRuntimeRbacAuthorization) AsLinkedIntegrationRuntimeKeyAuthorization() (*LinkedIntegrationRuntimeKeyAuthorization, bool) { + return nil, false +} + +// AsLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeRbacAuthorization. +func (lirra LinkedIntegrationRuntimeRbacAuthorization) AsLinkedIntegrationRuntimeType() (*LinkedIntegrationRuntimeType, bool) { + return nil, false +} + +// AsBasicLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeRbacAuthorization. +func (lirra LinkedIntegrationRuntimeRbacAuthorization) AsBasicLinkedIntegrationRuntimeType() (BasicLinkedIntegrationRuntimeType, bool) { + return &lirra, true +} + +// LinkedIntegrationRuntimeRequest data factory name for linked integration runtime request. +type LinkedIntegrationRuntimeRequest struct { + // LinkedFactoryName - The data factory name for linked integration runtime. + LinkedFactoryName *string `json:"factoryName,omitempty"` +} + +// BasicLinkedIntegrationRuntimeType the base definition of a linked integration runtime. +type BasicLinkedIntegrationRuntimeType interface { + AsLinkedIntegrationRuntimeRbacAuthorization() (*LinkedIntegrationRuntimeRbacAuthorization, bool) + AsLinkedIntegrationRuntimeKeyAuthorization() (*LinkedIntegrationRuntimeKeyAuthorization, bool) + AsLinkedIntegrationRuntimeType() (*LinkedIntegrationRuntimeType, bool) +} + +// LinkedIntegrationRuntimeType the base definition of a linked integration runtime. +type LinkedIntegrationRuntimeType struct { + // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' + AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` +} + +func unmarshalBasicLinkedIntegrationRuntimeType(body []byte) (BasicLinkedIntegrationRuntimeType, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["authorizationType"] { + case string(AuthorizationTypeRBAC): + var lirra LinkedIntegrationRuntimeRbacAuthorization + err := json.Unmarshal(body, &lirra) + return lirra, err + case string(AuthorizationTypeKey): + var lirka LinkedIntegrationRuntimeKeyAuthorization + err := json.Unmarshal(body, &lirka) + return lirka, err + default: + var lirt LinkedIntegrationRuntimeType + err := json.Unmarshal(body, &lirt) + return lirt, err + } +} +func unmarshalBasicLinkedIntegrationRuntimeTypeArray(body []byte) ([]BasicLinkedIntegrationRuntimeType, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + lirtArray := make([]BasicLinkedIntegrationRuntimeType, len(rawMessages)) + + for index, rawMessage := range rawMessages { + lirt, err := unmarshalBasicLinkedIntegrationRuntimeType(*rawMessage) + if err != nil { + return nil, err + } + lirtArray[index] = lirt + } + return lirtArray, nil +} + +// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeType. +func (lirt LinkedIntegrationRuntimeType) MarshalJSON() ([]byte, error) { + lirt.AuthorizationType = AuthorizationTypeLinkedIntegrationRuntimeType + objectMap := make(map[string]interface{}) + if lirt.AuthorizationType != "" { + objectMap["authorizationType"] = lirt.AuthorizationType + } + return json.Marshal(objectMap) +} + +// AsLinkedIntegrationRuntimeRbacAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeType. +func (lirt LinkedIntegrationRuntimeType) AsLinkedIntegrationRuntimeRbacAuthorization() (*LinkedIntegrationRuntimeRbacAuthorization, bool) { + return nil, false +} + +// AsLinkedIntegrationRuntimeKeyAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeType. +func (lirt LinkedIntegrationRuntimeType) AsLinkedIntegrationRuntimeKeyAuthorization() (*LinkedIntegrationRuntimeKeyAuthorization, bool) { + return nil, false +} + +// AsLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeType. +func (lirt LinkedIntegrationRuntimeType) AsLinkedIntegrationRuntimeType() (*LinkedIntegrationRuntimeType, bool) { + return &lirt, true +} + +// AsBasicLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeType. +func (lirt LinkedIntegrationRuntimeType) AsBasicLinkedIntegrationRuntimeType() (BasicLinkedIntegrationRuntimeType, bool) { + return &lirt, true +} + +// BasicLinkedService the nested object which contains the information and credential which can be used to connect with +// related store or compute resource. +type BasicLinkedService interface { + AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) + AsWarehouseLinkedService() (*WarehouseLinkedService, bool) + AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) + AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) + AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) + AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) + AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) + AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) + AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) + AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) + AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) + AsSapTableLinkedService() (*SapTableLinkedService, bool) + AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) + AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) + AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) + AsResponsysLinkedService() (*ResponsysLinkedService, bool) + AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) + AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) + AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) + AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) + AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) + AsNetezzaLinkedService() (*NetezzaLinkedService, bool) + AsVerticaLinkedService() (*VerticaLinkedService, bool) + AsZohoLinkedService() (*ZohoLinkedService, bool) + AsXeroLinkedService() (*XeroLinkedService, bool) + AsSquareLinkedService() (*SquareLinkedService, bool) + AsSparkLinkedService() (*SparkLinkedService, bool) + AsShopifyLinkedService() (*ShopifyLinkedService, bool) + AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) + AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) + AsPrestoLinkedService() (*PrestoLinkedService, bool) + AsPhoenixLinkedService() (*PhoenixLinkedService, bool) + AsPaypalLinkedService() (*PaypalLinkedService, bool) + AsMarketoLinkedService() (*MarketoLinkedService, bool) + AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) + AsMariaDBLinkedService() (*MariaDBLinkedService, bool) + AsMagentoLinkedService() (*MagentoLinkedService, bool) + AsJiraLinkedService() (*JiraLinkedService, bool) + AsImpalaLinkedService() (*ImpalaLinkedService, bool) + AsHubspotLinkedService() (*HubspotLinkedService, bool) + AsHiveLinkedService() (*HiveLinkedService, bool) + AsHBaseLinkedService() (*HBaseLinkedService, bool) + AsGreenplumLinkedService() (*GreenplumLinkedService, bool) + AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) + AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) + AsEloquaLinkedService() (*EloquaLinkedService, bool) + AsDrillLinkedService() (*DrillLinkedService, bool) + AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) + AsConcurLinkedService() (*ConcurLinkedService, bool) + AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) + AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) + AsSapHanaLinkedService() (*SapHanaLinkedService, bool) + AsSapBWLinkedService() (*SapBWLinkedService, bool) + AsSftpServerLinkedService() (*SftpServerLinkedService, bool) + AsFtpServerLinkedService() (*FtpServerLinkedService, bool) + AsHTTPLinkedService() (*HTTPLinkedService, bool) + AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) + AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) + AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) + AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) + AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) + AsTwilioLinkedService() (*TwilioLinkedService, bool) + AsAsanaLinkedService() (*AsanaLinkedService, bool) + AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) + AsDataworldLinkedService() (*DataworldLinkedService, bool) + AsZendeskLinkedService() (*ZendeskLinkedService, bool) + AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) + AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) + AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) + AsRestServiceLinkedService() (*RestServiceLinkedService, bool) + AsSapOdpLinkedService() (*SapOdpLinkedService, bool) + AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) + AsSapEccLinkedService() (*SapEccLinkedService, bool) + AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) + AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) + AsSalesforceLinkedService() (*SalesforceLinkedService, bool) + AsOffice365LinkedService() (*Office365LinkedService, bool) + AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) + AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) + AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) + AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) + AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) + AsMongoDbLinkedService() (*MongoDbLinkedService, bool) + AsCassandraLinkedService() (*CassandraLinkedService, bool) + AsWebLinkedService() (*WebLinkedService, bool) + AsODataLinkedService() (*ODataLinkedService, bool) + AsHdfsLinkedService() (*HdfsLinkedService, bool) + AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) + AsInformixLinkedService() (*InformixLinkedService, bool) + AsOdbcLinkedService() (*OdbcLinkedService, bool) + AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) + AsAzureMLLinkedService() (*AzureMLLinkedService, bool) + AsTeradataLinkedService() (*TeradataLinkedService, bool) + AsDb2LinkedService() (*Db2LinkedService, bool) + AsSybaseLinkedService() (*SybaseLinkedService, bool) + AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) + AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) + AsMySQLLinkedService() (*MySQLLinkedService, bool) + AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) + AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) + AsOracleLinkedService() (*OracleLinkedService, bool) + AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) + AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) + AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) + AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) + AsFileServerLinkedService() (*FileServerLinkedService, bool) + AsHDInsightLinkedService() (*HDInsightLinkedService, bool) + AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) + AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) + AsDynamicsLinkedService() (*DynamicsLinkedService, bool) + AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) + AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) + AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) + AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) + AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) + AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) + AsSQLServerLinkedService() (*SQLServerLinkedService, bool) + AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) + AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) + AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) + AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) + AsLinkedService() (*LinkedService, bool) +} + +// 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 { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +func unmarshalBasicLinkedService(body []byte) (BasicLinkedService, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicLinkedServiceTypeServiceNowV2): + var snvls ServiceNowV2LinkedService + err := json.Unmarshal(body, &snvls) + return snvls, err + case string(TypeBasicLinkedServiceTypeWarehouse): + var wls WarehouseLinkedService + err := json.Unmarshal(body, &wls) + return wls, err + case string(TypeBasicLinkedServiceTypeSalesforceServiceCloudV2): + var sscvls SalesforceServiceCloudV2LinkedService + err := json.Unmarshal(body, &sscvls) + return sscvls, err + case string(TypeBasicLinkedServiceTypeSalesforceV2): + var svls SalesforceV2LinkedService + err := json.Unmarshal(body, &svls) + return svls, err + case string(TypeBasicLinkedServiceTypeLakeHouse): + var lhls LakeHouseLinkedService + err := json.Unmarshal(body, &lhls) + return lhls, err + case string(TypeBasicLinkedServiceTypeAzureSynapseArtifacts): + var asals AzureSynapseArtifactsLinkedService + err := json.Unmarshal(body, &asals) + return asals, err + case string(TypeBasicLinkedServiceTypeSharePointOnlineList): + var spolls SharePointOnlineListLinkedService + err := json.Unmarshal(body, &spolls) + return spolls, err + case string(TypeBasicLinkedServiceTypeSnowflakeV2): + var svls SnowflakeV2LinkedService + err := json.Unmarshal(body, &svls) + return svls, err + case string(TypeBasicLinkedServiceTypeSnowflake): + var sls SnowflakeLinkedService + err := json.Unmarshal(body, &sls) + return sls, err + case string(TypeBasicLinkedServiceTypeAzureFunction): + var afls AzureFunctionLinkedService + err := json.Unmarshal(body, &afls) + return afls, err + case string(TypeBasicLinkedServiceTypeAzureDataExplorer): + var adels AzureDataExplorerLinkedService + err := json.Unmarshal(body, &adels) + return adels, err + case string(TypeBasicLinkedServiceTypeSapTable): + var stls SapTableLinkedService + err := json.Unmarshal(body, &stls) + return stls, err + case string(TypeBasicLinkedServiceTypeGoogleAdWords): + var gawls GoogleAdWordsLinkedService + err := json.Unmarshal(body, &gawls) + return gawls, err + case string(TypeBasicLinkedServiceTypeOracleServiceCloud): + var oscls OracleServiceCloudLinkedService + err := json.Unmarshal(body, &oscls) + return oscls, err + case string(TypeBasicLinkedServiceTypeDynamicsAX): + var dals DynamicsAXLinkedService + err := json.Unmarshal(body, &dals) + return dals, err + case string(TypeBasicLinkedServiceTypeResponsys): + var rls ResponsysLinkedService + err := json.Unmarshal(body, &rls) + return rls, err + case string(TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake): + var addlls AzureDatabricksDeltaLakeLinkedService + err := json.Unmarshal(body, &addlls) + return addlls, err + case string(TypeBasicLinkedServiceTypeAzureDatabricks): + var adls AzureDatabricksLinkedService + err := json.Unmarshal(body, &adls) + return adls, err + case string(TypeBasicLinkedServiceTypeAzureDataLakeAnalytics): + var adlals AzureDataLakeAnalyticsLinkedService + err := json.Unmarshal(body, &adlals) + return adlals, err + case string(TypeBasicLinkedServiceTypeHDInsightOnDemand): + var hiodls HDInsightOnDemandLinkedService + err := json.Unmarshal(body, &hiodls) + return hiodls, err + case string(TypeBasicLinkedServiceTypeSalesforceMarketingCloud): + var smcls SalesforceMarketingCloudLinkedService + err := json.Unmarshal(body, &smcls) + return smcls, err + case string(TypeBasicLinkedServiceTypeNetezza): + var nls NetezzaLinkedService + err := json.Unmarshal(body, &nls) + return nls, err + case string(TypeBasicLinkedServiceTypeVertica): + var vls VerticaLinkedService + err := json.Unmarshal(body, &vls) + return vls, err + case string(TypeBasicLinkedServiceTypeZoho): + var zls ZohoLinkedService + err := json.Unmarshal(body, &zls) + return zls, err + case string(TypeBasicLinkedServiceTypeXero): + var xls XeroLinkedService + err := json.Unmarshal(body, &xls) + return xls, err + case string(TypeBasicLinkedServiceTypeSquare): + var sls SquareLinkedService + err := json.Unmarshal(body, &sls) + return sls, err + case string(TypeBasicLinkedServiceTypeSpark): + var sls SparkLinkedService + err := json.Unmarshal(body, &sls) + return sls, err + case string(TypeBasicLinkedServiceTypeShopify): + var sls ShopifyLinkedService + err := json.Unmarshal(body, &sls) + return sls, err + case string(TypeBasicLinkedServiceTypeServiceNow): + var snls ServiceNowLinkedService + err := json.Unmarshal(body, &snls) + return snls, err + case string(TypeBasicLinkedServiceTypeQuickBooks): + var qbls QuickBooksLinkedService + err := json.Unmarshal(body, &qbls) + return qbls, err + case string(TypeBasicLinkedServiceTypePresto): + var pls PrestoLinkedService + err := json.Unmarshal(body, &pls) + return pls, err + case string(TypeBasicLinkedServiceTypePhoenix): + var pls PhoenixLinkedService + err := json.Unmarshal(body, &pls) + return pls, err + case string(TypeBasicLinkedServiceTypePaypal): + var pls PaypalLinkedService + err := json.Unmarshal(body, &pls) + return pls, err + case string(TypeBasicLinkedServiceTypeMarketo): + var mls MarketoLinkedService + err := json.Unmarshal(body, &mls) + return mls, err + case string(TypeBasicLinkedServiceTypeAzureMariaDB): + var amdls AzureMariaDBLinkedService + err := json.Unmarshal(body, &amdls) + return amdls, err + case string(TypeBasicLinkedServiceTypeMariaDB): + var mdls MariaDBLinkedService + err := json.Unmarshal(body, &mdls) + return mdls, err + case string(TypeBasicLinkedServiceTypeMagento): + var mls MagentoLinkedService + err := json.Unmarshal(body, &mls) + return mls, err + case string(TypeBasicLinkedServiceTypeJira): + var jls JiraLinkedService + err := json.Unmarshal(body, &jls) + return jls, err + case string(TypeBasicLinkedServiceTypeImpala): + var ils ImpalaLinkedService + err := json.Unmarshal(body, &ils) + return ils, err + case string(TypeBasicLinkedServiceTypeHubspot): + var hls HubspotLinkedService + err := json.Unmarshal(body, &hls) + return hls, err + case string(TypeBasicLinkedServiceTypeHive): + var hls HiveLinkedService + err := json.Unmarshal(body, &hls) + return hls, err + case string(TypeBasicLinkedServiceTypeHBase): + var hbls HBaseLinkedService + err := json.Unmarshal(body, &hbls) + return hbls, err + case string(TypeBasicLinkedServiceTypeGreenplum): + var gls GreenplumLinkedService + err := json.Unmarshal(body, &gls) + return gls, err + case string(TypeBasicLinkedServiceTypeGoogleBigQueryV2): + var gbqvls GoogleBigQueryV2LinkedService + err := json.Unmarshal(body, &gbqvls) + return gbqvls, err + case string(TypeBasicLinkedServiceTypeGoogleBigQuery): + var gbqls GoogleBigQueryLinkedService + err := json.Unmarshal(body, &gbqls) + return gbqls, err + case string(TypeBasicLinkedServiceTypeEloqua): + var els EloquaLinkedService + err := json.Unmarshal(body, &els) + return els, err + case string(TypeBasicLinkedServiceTypeDrill): + var dls DrillLinkedService + err := json.Unmarshal(body, &dls) + return dls, err + case string(TypeBasicLinkedServiceTypeCouchbase): + var cls CouchbaseLinkedService + err := json.Unmarshal(body, &cls) + return cls, err + case string(TypeBasicLinkedServiceTypeConcur): + var cls ConcurLinkedService + err := json.Unmarshal(body, &cls) + return cls, err + case string(TypeBasicLinkedServiceTypeAzurePostgreSQL): + var apsls AzurePostgreSQLLinkedService + err := json.Unmarshal(body, &apsls) + return apsls, err + case string(TypeBasicLinkedServiceTypeAmazonMWS): + var amls AmazonMWSLinkedService + err := json.Unmarshal(body, &amls) + return amls, err + case string(TypeBasicLinkedServiceTypeSapHana): + var shls SapHanaLinkedService + err := json.Unmarshal(body, &shls) + return shls, err + case string(TypeBasicLinkedServiceTypeSapBW): + var sbls SapBWLinkedService + err := json.Unmarshal(body, &sbls) + return sbls, err + case string(TypeBasicLinkedServiceTypeSftp): + var ssls SftpServerLinkedService + err := json.Unmarshal(body, &ssls) + return ssls, err + case string(TypeBasicLinkedServiceTypeFtpServer): + var fsls FtpServerLinkedService + err := json.Unmarshal(body, &fsls) + return fsls, err + case string(TypeBasicLinkedServiceTypeHTTPServer): + var hls HTTPLinkedService + err := json.Unmarshal(body, &hls) + return hls, err + case string(TypeBasicLinkedServiceTypeAzureSearch): + var asls AzureSearchLinkedService + err := json.Unmarshal(body, &asls) + return asls, err + case string(TypeBasicLinkedServiceTypeCustomDataSource): + var cdsls CustomDataSourceLinkedService + err := json.Unmarshal(body, &cdsls) + return cdsls, err + case string(TypeBasicLinkedServiceTypeAmazonRedshift): + var arls AmazonRedshiftLinkedService + err := json.Unmarshal(body, &arls) + return arls, err + case string(TypeBasicLinkedServiceTypeAmazonS3): + var asls AmazonS3LinkedService + err := json.Unmarshal(body, &asls) + return asls, err + case string(TypeBasicLinkedServiceTypeGoogleSheets): + var gsls GoogleSheetsLinkedService + err := json.Unmarshal(body, &gsls) + return gsls, err + case string(TypeBasicLinkedServiceTypeTwilio): + var TLSVar TwilioLinkedService + err := json.Unmarshal(body, &TLSVar) + return TLSVar, err + case string(TypeBasicLinkedServiceTypeAsana): + var als AsanaLinkedService + err := json.Unmarshal(body, &als) + return als, err + case string(TypeBasicLinkedServiceTypeAppFigures): + var afls AppFiguresLinkedService + err := json.Unmarshal(body, &afls) + return afls, err + case string(TypeBasicLinkedServiceTypeDataworld): + var dls DataworldLinkedService + err := json.Unmarshal(body, &dls) + return dls, err + case string(TypeBasicLinkedServiceTypeZendesk): + var zls ZendeskLinkedService + err := json.Unmarshal(body, &zls) + return zls, err + case string(TypeBasicLinkedServiceTypeSmartsheet): + var sls SmartsheetLinkedService + err := json.Unmarshal(body, &sls) + return sls, err + case string(TypeBasicLinkedServiceTypeQuickbase): + var qls QuickbaseLinkedService + err := json.Unmarshal(body, &qls) + return qls, err + case string(TypeBasicLinkedServiceTypeTeamDesk): + var tdls TeamDeskLinkedService + err := json.Unmarshal(body, &tdls) + return tdls, err + case string(TypeBasicLinkedServiceTypeRestService): + var rsls RestServiceLinkedService + err := json.Unmarshal(body, &rsls) + return rsls, err + case string(TypeBasicLinkedServiceTypeSapOdp): + var sols SapOdpLinkedService + err := json.Unmarshal(body, &sols) + return sols, err + case string(TypeBasicLinkedServiceTypeSapOpenHub): + var sohls SapOpenHubLinkedService + err := json.Unmarshal(body, &sohls) + return sohls, err + case string(TypeBasicLinkedServiceTypeSapEcc): + var sels SapEccLinkedService + err := json.Unmarshal(body, &sels) + return sels, err + case string(TypeBasicLinkedServiceTypeSapCloudForCustomer): + var scfcls SapCloudForCustomerLinkedService + err := json.Unmarshal(body, &scfcls) + return scfcls, err + case string(TypeBasicLinkedServiceTypeSalesforceServiceCloud): + var sscls SalesforceServiceCloudLinkedService + err := json.Unmarshal(body, &sscls) + return sscls, err + case string(TypeBasicLinkedServiceTypeSalesforce): + var sls SalesforceLinkedService + err := json.Unmarshal(body, &sls) + return sls, err + case string(TypeBasicLinkedServiceTypeOffice365): + var o3ls Office365LinkedService + err := json.Unmarshal(body, &o3ls) + return o3ls, err + case string(TypeBasicLinkedServiceTypeAzureBlobFS): + var abfls AzureBlobFSLinkedService + err := json.Unmarshal(body, &abfls) + return abfls, err + case string(TypeBasicLinkedServiceTypeAzureDataLakeStore): + var adlsls AzureDataLakeStoreLinkedService + err := json.Unmarshal(body, &adlsls) + return adlsls, err + case string(TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI): + var cdmdals CosmosDbMongoDbAPILinkedService + err := json.Unmarshal(body, &cdmdals) + return cdmdals, err + case string(TypeBasicLinkedServiceTypeMongoDbV2): + var mdvls MongoDbV2LinkedService + err := json.Unmarshal(body, &mdvls) + return mdvls, err + case string(TypeBasicLinkedServiceTypeMongoDbAtlas): + var mdals MongoDbAtlasLinkedService + err := json.Unmarshal(body, &mdals) + return mdals, err + case string(TypeBasicLinkedServiceTypeMongoDb): + var mdls MongoDbLinkedService + err := json.Unmarshal(body, &mdls) + return mdls, err + case string(TypeBasicLinkedServiceTypeCassandra): + var cls CassandraLinkedService + err := json.Unmarshal(body, &cls) + return cls, err + case string(TypeBasicLinkedServiceTypeWeb): + var wls WebLinkedService + err := json.Unmarshal(body, &wls) + return wls, err + case string(TypeBasicLinkedServiceTypeOData): + var odls ODataLinkedService + err := json.Unmarshal(body, &odls) + return odls, err + case string(TypeBasicLinkedServiceTypeHdfs): + var hls HdfsLinkedService + err := json.Unmarshal(body, &hls) + return hls, err + case string(TypeBasicLinkedServiceTypeMicrosoftAccess): + var mals MicrosoftAccessLinkedService + err := json.Unmarshal(body, &mals) + return mals, err + case string(TypeBasicLinkedServiceTypeInformix): + var ils InformixLinkedService + err := json.Unmarshal(body, &ils) + return ils, err + case string(TypeBasicLinkedServiceTypeOdbc): + var ols OdbcLinkedService + err := json.Unmarshal(body, &ols) + return ols, err + case string(TypeBasicLinkedServiceTypeAzureMLService): + var amsls AzureMLServiceLinkedService + err := json.Unmarshal(body, &amsls) + return amsls, err + case string(TypeBasicLinkedServiceTypeAzureML): + var amls AzureMLLinkedService + err := json.Unmarshal(body, &amls) + return amls, err + case string(TypeBasicLinkedServiceTypeTeradata): + var TLSVar TeradataLinkedService + err := json.Unmarshal(body, &TLSVar) + return TLSVar, err + case string(TypeBasicLinkedServiceTypeDb2): + var d2ls Db2LinkedService + err := json.Unmarshal(body, &d2ls) + return d2ls, err + case string(TypeBasicLinkedServiceTypeSybase): + var sls SybaseLinkedService + err := json.Unmarshal(body, &sls) + return sls, err + case string(TypeBasicLinkedServiceTypePostgreSQLV2): + var psvls PostgreSQLV2LinkedService + err := json.Unmarshal(body, &psvls) + return psvls, err + case string(TypeBasicLinkedServiceTypePostgreSQL): + var psls PostgreSQLLinkedService + err := json.Unmarshal(body, &psls) + return psls, err + case string(TypeBasicLinkedServiceTypeMySQL): + var msls MySQLLinkedService + err := json.Unmarshal(body, &msls) + return msls, err + case string(TypeBasicLinkedServiceTypeAzureMySQL): + var amsls AzureMySQLLinkedService + err := json.Unmarshal(body, &amsls) + return amsls, err + case string(TypeBasicLinkedServiceTypeAmazonRdsForOracle): + var arfols AmazonRdsForOracleLinkedService + err := json.Unmarshal(body, &arfols) + return arfols, err + case string(TypeBasicLinkedServiceTypeOracle): + var ols OracleLinkedService + err := json.Unmarshal(body, &ols) + return ols, err + case string(TypeBasicLinkedServiceTypeGoogleCloudStorage): + var gcsls GoogleCloudStorageLinkedService + err := json.Unmarshal(body, &gcsls) + return gcsls, err + case string(TypeBasicLinkedServiceTypeOracleCloudStorage): + var ocsls OracleCloudStorageLinkedService + err := json.Unmarshal(body, &ocsls) + return ocsls, err + case string(TypeBasicLinkedServiceTypeAmazonS3Compatible): + var ascls AmazonS3CompatibleLinkedService + err := json.Unmarshal(body, &ascls) + return ascls, err + case string(TypeBasicLinkedServiceTypeAzureFileStorage): + var afsls AzureFileStorageLinkedService + err := json.Unmarshal(body, &afsls) + return afsls, err + case string(TypeBasicLinkedServiceTypeFileServer): + var fsls FileServerLinkedService + err := json.Unmarshal(body, &fsls) + return fsls, err + case string(TypeBasicLinkedServiceTypeHDInsight): + var hils HDInsightLinkedService + err := json.Unmarshal(body, &hils) + return hils, err + case string(TypeBasicLinkedServiceTypeCommonDataServiceForApps): + var cdsfals CommonDataServiceForAppsLinkedService + err := json.Unmarshal(body, &cdsfals) + return cdsfals, err + case string(TypeBasicLinkedServiceTypeDynamicsCrm): + var dcls DynamicsCrmLinkedService + err := json.Unmarshal(body, &dcls) + return dcls, err + case string(TypeBasicLinkedServiceTypeDynamics): + var dls DynamicsLinkedService + err := json.Unmarshal(body, &dls) + return dls, err + case string(TypeBasicLinkedServiceTypeCosmosDb): + var cdls CosmosDbLinkedService + err := json.Unmarshal(body, &cdls) + return cdls, err + case string(TypeBasicLinkedServiceTypeAzureKeyVault): + var akvls AzureKeyVaultLinkedService + err := json.Unmarshal(body, &akvls) + return akvls, err + case string(TypeBasicLinkedServiceTypeAzureBatch): + var abls AzureBatchLinkedService + err := json.Unmarshal(body, &abls) + return abls, err + case string(TypeBasicLinkedServiceTypeAzureSQLMI): + var asmls AzureSQLMILinkedService + err := json.Unmarshal(body, &asmls) + return asmls, err + case string(TypeBasicLinkedServiceTypeAzureSQLDatabase): + var asdls AzureSQLDatabaseLinkedService + err := json.Unmarshal(body, &asdls) + return asdls, err + case string(TypeBasicLinkedServiceTypeAmazonRdsForSQLServer): + var arfssls AmazonRdsForSQLServerLinkedService + err := json.Unmarshal(body, &arfssls) + return arfssls, err + case string(TypeBasicLinkedServiceTypeSQLServer): + var ssls SQLServerLinkedService + err := json.Unmarshal(body, &ssls) + return ssls, err + case string(TypeBasicLinkedServiceTypeAzureSQLDW): + var asdls AzureSQLDWLinkedService + err := json.Unmarshal(body, &asdls) + return asdls, err + case string(TypeBasicLinkedServiceTypeAzureTableStorage): + var atsls AzureTableStorageLinkedService + err := json.Unmarshal(body, &atsls) + return atsls, err + case string(TypeBasicLinkedServiceTypeAzureBlobStorage): + var absls AzureBlobStorageLinkedService + err := json.Unmarshal(body, &absls) + return absls, err + case string(TypeBasicLinkedServiceTypeAzureStorage): + var asls AzureStorageLinkedService + err := json.Unmarshal(body, &asls) + return asls, err + default: + var ls LinkedService + err := json.Unmarshal(body, &ls) + return ls, err + } +} +func unmarshalBasicLinkedServiceArray(body []byte) ([]BasicLinkedService, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + lsArray := make([]BasicLinkedService, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ls, err := unmarshalBasicLinkedService(*rawMessage) + if err != nil { + return nil, err + } + lsArray[index] = ls + } + return lsArray, nil +} + +// MarshalJSON is the custom marshaler for LinkedService. +func (ls LinkedService) MarshalJSON() ([]byte, error) { + ls.Type = TypeBasicLinkedServiceTypeLinkedService + objectMap := make(map[string]interface{}) + if ls.ConnectVia != nil { + objectMap["connectVia"] = ls.ConnectVia + } + if ls.Description != nil { + objectMap["description"] = ls.Description + } + if ls.Parameters != nil { + objectMap["parameters"] = ls.Parameters + } + if ls.Annotations != nil { + objectMap["annotations"] = ls.Annotations + } + if ls.Type != "" { + objectMap["type"] = ls.Type + } + for k, v := range ls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsLinkedService() (*LinkedService, bool) { + return &ls, true +} + +// AsBasicLinkedService is the BasicLinkedService implementation for LinkedService. +func (ls LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ls, true +} + +// UnmarshalJSON is the custom unmarshaler for LinkedService struct. +func (ls *LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ls.AdditionalProperties == nil { + ls.AdditionalProperties = make(map[string]interface{}) + } + ls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ls.Type = typeVar + } + } + } + + return nil +} + +// LinkedServiceDebugResource linked service debug resource. +type LinkedServiceDebugResource struct { + // Properties - Properties of linked service. + Properties BasicLinkedService `json:"properties,omitempty"` + // Name - The resource name. + Name *string `json:"name,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for LinkedServiceDebugResource struct. +func (lsdr *LinkedServiceDebugResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicLinkedService(*v) + if err != nil { + return err + } + lsdr.Properties = properties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lsdr.Name = &name + } + } + } + + return nil +} + +// LinkedServiceListResponse a list of linked service resources. +type LinkedServiceListResponse struct { + autorest.Response `json:"-"` + // Value - List of linked services. + Value *[]LinkedServiceResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// LinkedServiceListResponseIterator provides access to a complete listing of LinkedServiceResource values. +type LinkedServiceListResponseIterator struct { + i int + page LinkedServiceListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *LinkedServiceListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServiceListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *LinkedServiceListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter LinkedServiceListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter LinkedServiceListResponseIterator) Response() LinkedServiceListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter LinkedServiceListResponseIterator) Value() LinkedServiceResource { + if !iter.page.NotDone() { + return LinkedServiceResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the LinkedServiceListResponseIterator type. +func NewLinkedServiceListResponseIterator(page LinkedServiceListResponsePage) LinkedServiceListResponseIterator { + return LinkedServiceListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (lslr LinkedServiceListResponse) IsEmpty() bool { + return lslr.Value == nil || len(*lslr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (lslr LinkedServiceListResponse) hasNextLink() bool { + return lslr.NextLink != nil && len(*lslr.NextLink) != 0 +} + +// linkedServiceListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (lslr LinkedServiceListResponse) linkedServiceListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !lslr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(lslr.NextLink))) +} + +// LinkedServiceListResponsePage contains a page of LinkedServiceResource values. +type LinkedServiceListResponsePage struct { + fn func(context.Context, LinkedServiceListResponse) (LinkedServiceListResponse, error) + lslr LinkedServiceListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *LinkedServiceListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServiceListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.lslr) + if err != nil { + return err + } + page.lslr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *LinkedServiceListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page LinkedServiceListResponsePage) NotDone() bool { + return !page.lslr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page LinkedServiceListResponsePage) Response() LinkedServiceListResponse { + return page.lslr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page LinkedServiceListResponsePage) Values() []LinkedServiceResource { + if page.lslr.IsEmpty() { + return nil + } + return *page.lslr.Value +} + +// Creates a new instance of the LinkedServiceListResponsePage type. +func NewLinkedServiceListResponsePage(cur LinkedServiceListResponse, getNextPage func(context.Context, LinkedServiceListResponse) (LinkedServiceListResponse, error)) LinkedServiceListResponsePage { + return LinkedServiceListResponsePage{ + fn: getNextPage, + lslr: cur, + } +} + +// LinkedServiceReference linked service reference type. +type LinkedServiceReference struct { + // Type - Linked service reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference LinkedService name. + ReferenceName *string `json:"referenceName,omitempty"` + // Parameters - Arguments for LinkedService. + Parameters map[string]interface{} `json:"parameters"` +} + +// MarshalJSON is the custom marshaler for LinkedServiceReference. +func (lsr LinkedServiceReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lsr.Type != nil { + objectMap["type"] = lsr.Type + } + if lsr.ReferenceName != nil { + objectMap["referenceName"] = lsr.ReferenceName + } + if lsr.Parameters != nil { + objectMap["parameters"] = lsr.Parameters + } + return json.Marshal(objectMap) +} + +// LinkedServiceResource linked service resource type. +type LinkedServiceResource struct { + autorest.Response `json:"-"` + // Properties - Properties of linked service. + Properties BasicLinkedService `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for LinkedServiceResource. +func (lsr LinkedServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = lsr.Properties + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LinkedServiceResource struct. +func (lsr *LinkedServiceResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicLinkedService(*v) + if err != nil { + return err + } + lsr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + lsr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + lsr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + lsr.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + lsr.Etag = &etag + } + } + } + + return nil +} + +// LogLocationSettings log location settings. +type LogLocationSettings struct { + // LinkedServiceName - Log storage linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Path - The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` +} + +// LogSettings log settings. +type LogSettings struct { + // EnableCopyActivityLog - Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean). + EnableCopyActivityLog interface{} `json:"enableCopyActivityLog,omitempty"` + // CopyActivityLogSettings - Specifies settings for copy activity log. + CopyActivityLogSettings *CopyActivityLogSettings `json:"copyActivityLogSettings,omitempty"` + // LogLocationSettings - Log location settings customer needs to provide when enabling log. + LogLocationSettings *LogLocationSettings `json:"logLocationSettings,omitempty"` +} + +// LogStorageSettings (Deprecated. Please use LogSettings) Log storage settings. +type LogStorageSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // LinkedServiceName - Log storage linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Path - The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` + // LogLevel - Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). + LogLevel interface{} `json:"logLevel,omitempty"` + // EnableReliableLogging - Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). + EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` +} + +// MarshalJSON is the custom marshaler for LogStorageSettings. +func (lss LogStorageSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if lss.LinkedServiceName != nil { + objectMap["linkedServiceName"] = lss.LinkedServiceName + } + if lss.Path != nil { + objectMap["path"] = lss.Path + } + if lss.LogLevel != nil { + objectMap["logLevel"] = lss.LogLevel + } + if lss.EnableReliableLogging != nil { + objectMap["enableReliableLogging"] = lss.EnableReliableLogging + } + for k, v := range lss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for LogStorageSettings struct. +func (lss *LogStorageSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if lss.AdditionalProperties == nil { + lss.AdditionalProperties = make(map[string]interface{}) + } + lss.AdditionalProperties[k] = additionalProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + lss.LinkedServiceName = &linkedServiceName + } + case "path": + if v != nil { + var pathVar interface{} + err = json.Unmarshal(*v, &pathVar) + if err != nil { + return err + } + lss.Path = pathVar + } + case "logLevel": + if v != nil { + var logLevel interface{} + err = json.Unmarshal(*v, &logLevel) + if err != nil { + return err + } + lss.LogLevel = logLevel + } + case "enableReliableLogging": + if v != nil { + var enableReliableLogging interface{} + err = json.Unmarshal(*v, &enableReliableLogging) + if err != nil { + return err + } + lss.EnableReliableLogging = enableReliableLogging + } + } + } + + return nil +} + +// LookupActivity lookup activity. +type LookupActivity struct { + // LookupActivityTypeProperties - Lookup activity properties. + *LookupActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for LookupActivity. +func (la LookupActivity) MarshalJSON() ([]byte, error) { + la.Type = TypeBasicActivityTypeLookup + objectMap := make(map[string]interface{}) + if la.LookupActivityTypeProperties != nil { + objectMap["typeProperties"] = la.LookupActivityTypeProperties + } + if la.LinkedServiceName != nil { + objectMap["linkedServiceName"] = la.LinkedServiceName + } + if la.Policy != nil { + objectMap["policy"] = la.Policy + } + if la.Name != nil { + objectMap["name"] = la.Name + } + if la.Description != nil { + objectMap["description"] = la.Description + } + if la.State != "" { + objectMap["state"] = la.State + } + if la.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = la.OnInactiveMarkAs + } + if la.DependsOn != nil { + objectMap["dependsOn"] = la.DependsOn + } + if la.UserProperties != nil { + objectMap["userProperties"] = la.UserProperties + } + if la.Type != "" { + objectMap["type"] = la.Type + } + for k, v := range la.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsLookupActivity() (*LookupActivity, bool) { + return &la, true +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &la, true +} + +// AsWebHookActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for LookupActivity. +func (la LookupActivity) AsBasicActivity() (BasicActivity, bool) { + return &la, true +} + +// UnmarshalJSON is the custom unmarshaler for LookupActivity struct. +func (la *LookupActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var lookupActivityTypeProperties LookupActivityTypeProperties + err = json.Unmarshal(*v, &lookupActivityTypeProperties) + if err != nil { + return err + } + la.LookupActivityTypeProperties = &lookupActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + la.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + la.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if la.AdditionalProperties == nil { + la.AdditionalProperties = make(map[string]interface{}) + } + la.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + la.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + la.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + la.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + la.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + la.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + la.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + la.Type = typeVar + } + } + } + + return nil +} + +// LookupActivityTypeProperties lookup activity properties. +type LookupActivityTypeProperties struct { + // Source - Dataset-specific source properties, same as copy activity source. + Source BasicCopySource `json:"source,omitempty"` + // Dataset - Lookup activity dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // FirstRowOnly - Whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). + FirstRowOnly interface{} `json:"firstRowOnly,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for LookupActivityTypeProperties struct. +func (latp *LookupActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "source": + if v != nil { + source, err := unmarshalBasicCopySource(*v) + if err != nil { + return err + } + latp.Source = source + } + case "dataset": + if v != nil { + var dataset DatasetReference + err = json.Unmarshal(*v, &dataset) + if err != nil { + return err + } + latp.Dataset = &dataset + } + case "firstRowOnly": + if v != nil { + var firstRowOnly interface{} + err = json.Unmarshal(*v, &firstRowOnly) + if err != nil { + return err + } + latp.FirstRowOnly = firstRowOnly + } + } + } + + return nil +} + +// MagentoLinkedService magento server linked service. +type MagentoLinkedService struct { + // MagentoLinkedServiceTypeProperties - Magento server linked service properties. + *MagentoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MagentoLinkedService. +func (mls MagentoLinkedService) MarshalJSON() ([]byte, error) { + mls.Type = TypeBasicLinkedServiceTypeMagento + objectMap := make(map[string]interface{}) + if mls.MagentoLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = mls.MagentoLinkedServiceTypeProperties + } + if mls.ConnectVia != nil { + objectMap["connectVia"] = mls.ConnectVia + } + if mls.Description != nil { + objectMap["description"] = mls.Description + } + if mls.Parameters != nil { + objectMap["parameters"] = mls.Parameters + } + if mls.Annotations != nil { + objectMap["annotations"] = mls.Annotations + } + if mls.Type != "" { + objectMap["type"] = mls.Type + } + for k, v := range mls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return &mls, true +} + +// AsJiraLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for MagentoLinkedService. +func (mls MagentoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &mls, true +} + +// UnmarshalJSON is the custom unmarshaler for MagentoLinkedService struct. +func (mls *MagentoLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var magentoLinkedServiceTypeProperties MagentoLinkedServiceTypeProperties + err = json.Unmarshal(*v, &magentoLinkedServiceTypeProperties) + if err != nil { + return err + } + mls.MagentoLinkedServiceTypeProperties = &magentoLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mls.AdditionalProperties == nil { + mls.AdditionalProperties = make(map[string]interface{}) + } + mls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + mls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mls.Type = typeVar + } + } + } + + return nil +} + +// MagentoLinkedServiceTypeProperties magento server linked service properties. +type MagentoLinkedServiceTypeProperties struct { + // Host - The URL of the Magento instance. (i.e. 192.168.222.110/magento3) + Host interface{} `json:"host,omitempty"` + // AccessToken - The access token from Magento. + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for MagentoLinkedServiceTypeProperties struct. +func (mlstp *MagentoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + mlstp.Host = host + } + case "accessToken": + if v != nil { + accessToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + mlstp.AccessToken = accessToken + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + mlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + mlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + mlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + mlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// MagentoObjectDataset magento server dataset. +type MagentoObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MagentoObjectDataset. +func (mod MagentoObjectDataset) MarshalJSON() ([]byte, error) { + mod.Type = TypeBasicDatasetTypeMagentoObject + objectMap := make(map[string]interface{}) + if mod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = mod.GenericDatasetTypeProperties + } + if mod.Description != nil { + objectMap["description"] = mod.Description + } + if mod.Structure != nil { + objectMap["structure"] = mod.Structure + } + if mod.Schema != nil { + objectMap["schema"] = mod.Schema + } + if mod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = mod.LinkedServiceName + } + if mod.Parameters != nil { + objectMap["parameters"] = mod.Parameters + } + if mod.Annotations != nil { + objectMap["annotations"] = mod.Annotations + } + if mod.Folder != nil { + objectMap["folder"] = mod.Folder + } + if mod.Type != "" { + objectMap["type"] = mod.Type + } + for k, v := range mod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return &mod, true +} + +// AsJiraObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for MagentoObjectDataset. +func (mod MagentoObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &mod, true +} + +// UnmarshalJSON is the custom unmarshaler for MagentoObjectDataset struct. +func (mod *MagentoObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + mod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mod.AdditionalProperties == nil { + mod.AdditionalProperties = make(map[string]interface{}) + } + mod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + mod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + mod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + mod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + mod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mod.Type = typeVar + } + } + } + + return nil +} + +// MagentoSource a copy activity Magento server source. +type MagentoSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MagentoSource. +func (ms MagentoSource) MarshalJSON() ([]byte, error) { + ms.Type = TypeBasicCopySourceTypeMagentoSource + objectMap := make(map[string]interface{}) + if ms.Query != nil { + objectMap["query"] = ms.Query + } + if ms.QueryTimeout != nil { + objectMap["queryTimeout"] = ms.QueryTimeout + } + if ms.AdditionalColumns != nil { + objectMap["additionalColumns"] = ms.AdditionalColumns + } + if ms.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ms.SourceRetryCount + } + if ms.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ms.SourceRetryWait + } + if ms.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ms.MaxConcurrentConnections + } + if ms.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ms.DisableMetricsCollection + } + if ms.Type != "" { + objectMap["type"] = ms.Type + } + for k, v := range ms.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsMagentoSource() (*MagentoSource, bool) { + return &ms, true +} + +// AsJiraSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ms, true +} + +// AsBinarySource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for MagentoSource. +func (ms MagentoSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ms, true +} + +// UnmarshalJSON is the custom unmarshaler for MagentoSource struct. +func (ms *MagentoSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ms.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ms.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ms.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ms.AdditionalProperties == nil { + ms.AdditionalProperties = make(map[string]interface{}) + } + ms.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ms.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ms.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ms.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ms.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ms.Type = typeVar + } + } + } + + return nil +} + +// ManagedIdentityCredential managed identity credential. +type ManagedIdentityCredential struct { + // ManagedIdentityTypeProperties - Managed identity credential properties. + *ManagedIdentityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Credential description. + Description *string `json:"description,omitempty"` + // Annotations - List of tags that can be used for describing the Credential. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicCredentialTypeCredential', 'TypeBasicCredentialTypeManagedIdentity', 'TypeBasicCredentialTypeServicePrincipal' + Type TypeBasicCredential `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIdentityCredential. +func (mic ManagedIdentityCredential) MarshalJSON() ([]byte, error) { + mic.Type = TypeBasicCredentialTypeManagedIdentity + objectMap := make(map[string]interface{}) + if mic.ManagedIdentityTypeProperties != nil { + objectMap["typeProperties"] = mic.ManagedIdentityTypeProperties + } + if mic.Description != nil { + objectMap["description"] = mic.Description + } + if mic.Annotations != nil { + objectMap["annotations"] = mic.Annotations + } + if mic.Type != "" { + objectMap["type"] = mic.Type + } + for k, v := range mic.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsManagedIdentityCredential is the BasicCredential implementation for ManagedIdentityCredential. +func (mic ManagedIdentityCredential) AsManagedIdentityCredential() (*ManagedIdentityCredential, bool) { + return &mic, true +} + +// AsServicePrincipalCredential is the BasicCredential implementation for ManagedIdentityCredential. +func (mic ManagedIdentityCredential) AsServicePrincipalCredential() (*ServicePrincipalCredential, bool) { + return nil, false +} + +// AsCredential is the BasicCredential implementation for ManagedIdentityCredential. +func (mic ManagedIdentityCredential) AsCredential() (*Credential, bool) { + return nil, false +} + +// AsBasicCredential is the BasicCredential implementation for ManagedIdentityCredential. +func (mic ManagedIdentityCredential) AsBasicCredential() (BasicCredential, bool) { + return &mic, true +} + +// UnmarshalJSON is the custom unmarshaler for ManagedIdentityCredential struct. +func (mic *ManagedIdentityCredential) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var managedIdentityTypeProperties ManagedIdentityTypeProperties + err = json.Unmarshal(*v, &managedIdentityTypeProperties) + if err != nil { + return err + } + mic.ManagedIdentityTypeProperties = &managedIdentityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mic.AdditionalProperties == nil { + mic.AdditionalProperties = make(map[string]interface{}) + } + mic.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mic.Description = &description + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mic.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicCredential + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mic.Type = typeVar + } + } + } + + return nil +} + +// ManagedIdentityCredentialResource credential resource type. +type ManagedIdentityCredentialResource struct { + autorest.Response `json:"-"` + // Properties - Managed Identity Credential properties. + Properties *ManagedIdentityCredential `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIdentityCredentialResource. +func (micr ManagedIdentityCredentialResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if micr.Properties != nil { + objectMap["properties"] = micr.Properties + } + return json.Marshal(objectMap) +} + +// ManagedIdentityTypeProperties managed identity type properties. +type ManagedIdentityTypeProperties struct { + // ResourceID - 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 { + // State - READ-ONLY; Integration runtime state, only valid for managed dedicated integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' + State IntegrationRuntimeState `json:"state,omitempty"` + // ManagedIntegrationRuntimeTypeProperties - Managed integration runtime properties. + *ManagedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` + // ManagedVirtualNetwork - Managed Virtual Network reference. + ManagedVirtualNetwork *ManagedVirtualNetworkReference `json:"managedVirtualNetwork,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Integration runtime description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeBasicIntegrationRuntimeTypeIntegrationRuntime', 'TypeBasicIntegrationRuntimeTypeSelfHosted', 'TypeBasicIntegrationRuntimeTypeManaged' + Type TypeBasicIntegrationRuntime `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntime. +func (mir ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { + mir.Type = TypeBasicIntegrationRuntimeTypeManaged + objectMap := make(map[string]interface{}) + if mir.ManagedIntegrationRuntimeTypeProperties != nil { + objectMap["typeProperties"] = mir.ManagedIntegrationRuntimeTypeProperties + } + if mir.ManagedVirtualNetwork != nil { + objectMap["managedVirtualNetwork"] = mir.ManagedVirtualNetwork + } + if mir.Description != nil { + objectMap["description"] = mir.Description + } + if mir.Type != "" { + objectMap["type"] = mir.Type + } + for k, v := range mir.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. +func (mir ManagedIntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { + return nil, false +} + +// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. +func (mir ManagedIntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { + return &mir, true +} + +// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. +func (mir ManagedIntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { + return nil, false +} + +// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. +func (mir ManagedIntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { + return &mir, true +} + +// UnmarshalJSON is the custom unmarshaler for ManagedIntegrationRuntime struct. +func (mir *ManagedIntegrationRuntime) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "state": + if v != nil { + var state IntegrationRuntimeState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + mir.State = state + } + case "typeProperties": + if v != nil { + var managedIntegrationRuntimeTypeProperties ManagedIntegrationRuntimeTypeProperties + err = json.Unmarshal(*v, &managedIntegrationRuntimeTypeProperties) + if err != nil { + return err + } + mir.ManagedIntegrationRuntimeTypeProperties = &managedIntegrationRuntimeTypeProperties + } + case "managedVirtualNetwork": + if v != nil { + var managedVirtualNetwork ManagedVirtualNetworkReference + err = json.Unmarshal(*v, &managedVirtualNetwork) + if err != nil { + return err + } + mir.ManagedVirtualNetwork = &managedVirtualNetwork + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mir.AdditionalProperties == nil { + mir.AdditionalProperties = make(map[string]interface{}) + } + mir.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mir.Description = &description + } + case "type": + if v != nil { + var typeVar TypeBasicIntegrationRuntime + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mir.Type = typeVar + } + } + } + + return nil +} + +// ManagedIntegrationRuntimeError error definition for managed integration runtime. +type ManagedIntegrationRuntimeError struct { + // Time - READ-ONLY; The time when the error occurred. + Time *date.Time `json:"time,omitempty"` + // Code - READ-ONLY; Error code. + Code *string `json:"code,omitempty"` + // Parameters - READ-ONLY; Managed integration runtime error parameters. + Parameters *[]string `json:"parameters,omitempty"` + // Message - READ-ONLY; Error message. + Message *string `json:"message,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeError. +func (mire ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ManagedIntegrationRuntimeNode properties of integration runtime node. +type ManagedIntegrationRuntimeNode struct { + // NodeID - READ-ONLY; The managed integration runtime node id. + NodeID *string `json:"nodeId,omitempty"` + // Status - READ-ONLY; The managed integration runtime node status. Possible values include: 'ManagedIntegrationRuntimeNodeStatusStarting', 'ManagedIntegrationRuntimeNodeStatusAvailable', 'ManagedIntegrationRuntimeNodeStatusRecycling', 'ManagedIntegrationRuntimeNodeStatusUnavailable' + Status ManagedIntegrationRuntimeNodeStatus `json:"status,omitempty"` + // Errors - The errors that occurred on this integration runtime node. + Errors *[]ManagedIntegrationRuntimeError `json:"errors,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeNode. +func (mirn ManagedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mirn.Errors != nil { + objectMap["errors"] = mirn.Errors + } + return json.Marshal(objectMap) +} + +// ManagedIntegrationRuntimeOperationResult properties of managed integration runtime operation result. +type ManagedIntegrationRuntimeOperationResult struct { + // Type - READ-ONLY; The operation type. Could be start or stop. + Type *string `json:"type,omitempty"` + // StartTime - READ-ONLY; The start time of the operation. + StartTime *date.Time `json:"startTime,omitempty"` + // Result - READ-ONLY; The operation result. + Result *string `json:"result,omitempty"` + // ErrorCode - READ-ONLY; The error code. + ErrorCode *string `json:"errorCode,omitempty"` + // Parameters - READ-ONLY; Managed integration runtime error parameters. + Parameters *[]string `json:"parameters,omitempty"` + // ActivityID - READ-ONLY; The activity id for the operation request. + ActivityID *string `json:"activityId,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeOperationResult. +func (miror ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ManagedIntegrationRuntimeStatus managed integration runtime status. +type ManagedIntegrationRuntimeStatus struct { + // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. + *ManagedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. + DataFactoryName *string `json:"dataFactoryName,omitempty"` + // State - READ-ONLY; The state of integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' + State IntegrationRuntimeState `json:"state,omitempty"` + // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' + Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatus. +func (mirs ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + mirs.Type = TypeBasicIntegrationRuntimeStatusTypeManaged + objectMap := make(map[string]interface{}) + if mirs.ManagedIntegrationRuntimeStatusTypeProperties != nil { + objectMap["typeProperties"] = mirs.ManagedIntegrationRuntimeStatusTypeProperties + } + if mirs.Type != "" { + objectMap["type"] = mirs.Type + } + for k, v := range mirs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. +func (mirs ManagedIntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { + return nil, false +} + +// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. +func (mirs ManagedIntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { + return &mirs, true +} + +// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. +func (mirs ManagedIntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { + return nil, false +} + +// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. +func (mirs ManagedIntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { + return &mirs, true +} + +// UnmarshalJSON is the custom unmarshaler for ManagedIntegrationRuntimeStatus struct. +func (mirs *ManagedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var managedIntegrationRuntimeStatusTypeProperties ManagedIntegrationRuntimeStatusTypeProperties + err = json.Unmarshal(*v, &managedIntegrationRuntimeStatusTypeProperties) + if err != nil { + return err + } + mirs.ManagedIntegrationRuntimeStatusTypeProperties = &managedIntegrationRuntimeStatusTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mirs.AdditionalProperties == nil { + mirs.AdditionalProperties = make(map[string]interface{}) + } + mirs.AdditionalProperties[k] = additionalProperties + } + case "dataFactoryName": + if v != nil { + var dataFactoryName string + err = json.Unmarshal(*v, &dataFactoryName) + if err != nil { + return err + } + mirs.DataFactoryName = &dataFactoryName + } + case "state": + if v != nil { + var state IntegrationRuntimeState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + mirs.State = state + } + case "type": + if v != nil { + var typeVar TypeBasicIntegrationRuntimeStatus + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mirs.Type = typeVar + } + } + } + + return nil +} + +// ManagedIntegrationRuntimeStatusTypeProperties managed integration runtime status type properties. +type ManagedIntegrationRuntimeStatusTypeProperties struct { + // CreateTime - READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. + CreateTime *date.Time `json:"createTime,omitempty"` + // Nodes - READ-ONLY; The list of nodes for managed integration runtime. + Nodes *[]ManagedIntegrationRuntimeNode `json:"nodes,omitempty"` + // OtherErrors - READ-ONLY; The errors that occurred on this integration runtime. + OtherErrors *[]ManagedIntegrationRuntimeError `json:"otherErrors,omitempty"` + // LastOperation - READ-ONLY; The last operation result that occurred on this integration runtime. + LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatusTypeProperties. +func (mirstp ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ManagedIntegrationRuntimeTypeProperties managed integration runtime type properties. +type ManagedIntegrationRuntimeTypeProperties struct { + // ComputeProperties - The compute resource for managed integration runtime. + ComputeProperties *IntegrationRuntimeComputeProperties `json:"computeProperties,omitempty"` + // SsisProperties - SSIS properties for managed integration runtime. + SsisProperties *IntegrationRuntimeSsisProperties `json:"ssisProperties,omitempty"` + // CustomerVirtualNetwork - The name of virtual network to which Azure-SSIS integration runtime will join + CustomerVirtualNetwork *IntegrationRuntimeCustomerVirtualNetwork `json:"customerVirtualNetwork,omitempty"` +} + +// ManagedPrivateEndpoint properties of a managed private endpoint +type ManagedPrivateEndpoint struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectionState - The managed private endpoint connection state + ConnectionState *ConnectionStateProperties `json:"connectionState,omitempty"` + // Fqdns - Fully qualified domain names + Fqdns *[]string `json:"fqdns,omitempty"` + // GroupID - The groupId to which the managed private endpoint is created + GroupID *string `json:"groupId,omitempty"` + // IsReserved - READ-ONLY; Denotes whether the managed private endpoint is reserved + IsReserved *bool `json:"isReserved,omitempty"` + // PrivateLinkResourceID - The ARM resource ID of the resource to which the managed private endpoint is created + PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` + // ProvisioningState - READ-ONLY; The managed private endpoint provisioning state + ProvisioningState *string `json:"provisioningState,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedPrivateEndpoint. +func (mpe ManagedPrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mpe.ConnectionState != nil { + objectMap["connectionState"] = mpe.ConnectionState + } + if mpe.Fqdns != nil { + objectMap["fqdns"] = mpe.Fqdns + } + if mpe.GroupID != nil { + objectMap["groupId"] = mpe.GroupID + } + if mpe.PrivateLinkResourceID != nil { + objectMap["privateLinkResourceId"] = mpe.PrivateLinkResourceID + } + for k, v := range mpe.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ManagedPrivateEndpoint struct. +func (mpe *ManagedPrivateEndpoint) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mpe.AdditionalProperties == nil { + mpe.AdditionalProperties = make(map[string]interface{}) + } + mpe.AdditionalProperties[k] = additionalProperties + } + case "connectionState": + if v != nil { + var connectionState ConnectionStateProperties + err = json.Unmarshal(*v, &connectionState) + if err != nil { + return err + } + mpe.ConnectionState = &connectionState + } + case "fqdns": + if v != nil { + var fqdns []string + err = json.Unmarshal(*v, &fqdns) + if err != nil { + return err + } + mpe.Fqdns = &fqdns + } + case "groupId": + if v != nil { + var groupID string + err = json.Unmarshal(*v, &groupID) + if err != nil { + return err + } + mpe.GroupID = &groupID + } + case "isReserved": + if v != nil { + var isReserved bool + err = json.Unmarshal(*v, &isReserved) + if err != nil { + return err + } + mpe.IsReserved = &isReserved + } + case "privateLinkResourceId": + if v != nil { + var privateLinkResourceID string + err = json.Unmarshal(*v, &privateLinkResourceID) + if err != nil { + return err + } + mpe.PrivateLinkResourceID = &privateLinkResourceID + } + case "provisioningState": + if v != nil { + var provisioningState string + err = json.Unmarshal(*v, &provisioningState) + if err != nil { + return err + } + mpe.ProvisioningState = &provisioningState + } + } + } + + return nil +} + +// ManagedPrivateEndpointListResponse a list of managed private endpoint resources. +type ManagedPrivateEndpointListResponse struct { + autorest.Response `json:"-"` + // Value - List of managed private endpoints. + Value *[]ManagedPrivateEndpointResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// ManagedPrivateEndpointListResponseIterator provides access to a complete listing of +// ManagedPrivateEndpointResource values. +type ManagedPrivateEndpointListResponseIterator struct { + i int + page ManagedPrivateEndpointListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ManagedPrivateEndpointListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedPrivateEndpointListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ManagedPrivateEndpointListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ManagedPrivateEndpointListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ManagedPrivateEndpointListResponseIterator) Response() ManagedPrivateEndpointListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ManagedPrivateEndpointListResponseIterator) Value() ManagedPrivateEndpointResource { + if !iter.page.NotDone() { + return ManagedPrivateEndpointResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ManagedPrivateEndpointListResponseIterator type. +func NewManagedPrivateEndpointListResponseIterator(page ManagedPrivateEndpointListResponsePage) ManagedPrivateEndpointListResponseIterator { + return ManagedPrivateEndpointListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (mpelr ManagedPrivateEndpointListResponse) IsEmpty() bool { + return mpelr.Value == nil || len(*mpelr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (mpelr ManagedPrivateEndpointListResponse) hasNextLink() bool { + return mpelr.NextLink != nil && len(*mpelr.NextLink) != 0 +} + +// managedPrivateEndpointListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (mpelr ManagedPrivateEndpointListResponse) managedPrivateEndpointListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !mpelr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(mpelr.NextLink))) +} + +// ManagedPrivateEndpointListResponsePage contains a page of ManagedPrivateEndpointResource values. +type ManagedPrivateEndpointListResponsePage struct { + fn func(context.Context, ManagedPrivateEndpointListResponse) (ManagedPrivateEndpointListResponse, error) + mpelr ManagedPrivateEndpointListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ManagedPrivateEndpointListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedPrivateEndpointListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.mpelr) + if err != nil { + return err + } + page.mpelr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ManagedPrivateEndpointListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ManagedPrivateEndpointListResponsePage) NotDone() bool { + return !page.mpelr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ManagedPrivateEndpointListResponsePage) Response() ManagedPrivateEndpointListResponse { + return page.mpelr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ManagedPrivateEndpointListResponsePage) Values() []ManagedPrivateEndpointResource { + if page.mpelr.IsEmpty() { + return nil + } + return *page.mpelr.Value +} + +// Creates a new instance of the ManagedPrivateEndpointListResponsePage type. +func NewManagedPrivateEndpointListResponsePage(cur ManagedPrivateEndpointListResponse, getNextPage func(context.Context, ManagedPrivateEndpointListResponse) (ManagedPrivateEndpointListResponse, error)) ManagedPrivateEndpointListResponsePage { + return ManagedPrivateEndpointListResponsePage{ + fn: getNextPage, + mpelr: cur, + } +} + +// ManagedPrivateEndpointResource managed private endpoint resource type. +type ManagedPrivateEndpointResource struct { + autorest.Response `json:"-"` + // Properties - Managed private endpoint properties. + Properties *ManagedPrivateEndpoint `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedPrivateEndpointResource. +func (mper ManagedPrivateEndpointResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mper.Properties != nil { + objectMap["properties"] = mper.Properties + } + return json.Marshal(objectMap) +} + +// ManagedVirtualNetwork a managed Virtual Network associated with the Azure Data Factory +type ManagedVirtualNetwork struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // VNetID - READ-ONLY; Managed Virtual Network ID. + VNetID *string `json:"vNetId,omitempty"` + // Alias - READ-ONLY; Managed Virtual Network alias. + Alias *string `json:"alias,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedVirtualNetwork. +func (mvn ManagedVirtualNetwork) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + for k, v := range mvn.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ManagedVirtualNetwork struct. +func (mvn *ManagedVirtualNetwork) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mvn.AdditionalProperties == nil { + mvn.AdditionalProperties = make(map[string]interface{}) + } + mvn.AdditionalProperties[k] = additionalProperties + } + case "vNetId": + if v != nil { + var vNetID string + err = json.Unmarshal(*v, &vNetID) + if err != nil { + return err + } + mvn.VNetID = &vNetID + } + case "alias": + if v != nil { + var alias string + err = json.Unmarshal(*v, &alias) + if err != nil { + return err + } + mvn.Alias = &alias + } + } + } + + return nil +} + +// ManagedVirtualNetworkListResponse a list of managed Virtual Network resources. +type ManagedVirtualNetworkListResponse struct { + autorest.Response `json:"-"` + // Value - List of managed Virtual Networks. + Value *[]ManagedVirtualNetworkResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// ManagedVirtualNetworkListResponseIterator provides access to a complete listing of +// ManagedVirtualNetworkResource values. +type ManagedVirtualNetworkListResponseIterator struct { + i int + page ManagedVirtualNetworkListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *ManagedVirtualNetworkListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedVirtualNetworkListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *ManagedVirtualNetworkListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter ManagedVirtualNetworkListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter ManagedVirtualNetworkListResponseIterator) Response() ManagedVirtualNetworkListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter ManagedVirtualNetworkListResponseIterator) Value() ManagedVirtualNetworkResource { + if !iter.page.NotDone() { + return ManagedVirtualNetworkResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the ManagedVirtualNetworkListResponseIterator type. +func NewManagedVirtualNetworkListResponseIterator(page ManagedVirtualNetworkListResponsePage) ManagedVirtualNetworkListResponseIterator { + return ManagedVirtualNetworkListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (mvnlr ManagedVirtualNetworkListResponse) IsEmpty() bool { + return mvnlr.Value == nil || len(*mvnlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (mvnlr ManagedVirtualNetworkListResponse) hasNextLink() bool { + return mvnlr.NextLink != nil && len(*mvnlr.NextLink) != 0 +} + +// managedVirtualNetworkListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (mvnlr ManagedVirtualNetworkListResponse) managedVirtualNetworkListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !mvnlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(mvnlr.NextLink))) +} + +// ManagedVirtualNetworkListResponsePage contains a page of ManagedVirtualNetworkResource values. +type ManagedVirtualNetworkListResponsePage struct { + fn func(context.Context, ManagedVirtualNetworkListResponse) (ManagedVirtualNetworkListResponse, error) + mvnlr ManagedVirtualNetworkListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *ManagedVirtualNetworkListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/ManagedVirtualNetworkListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.mvnlr) + if err != nil { + return err + } + page.mvnlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *ManagedVirtualNetworkListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page ManagedVirtualNetworkListResponsePage) NotDone() bool { + return !page.mvnlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page ManagedVirtualNetworkListResponsePage) Response() ManagedVirtualNetworkListResponse { + return page.mvnlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page ManagedVirtualNetworkListResponsePage) Values() []ManagedVirtualNetworkResource { + if page.mvnlr.IsEmpty() { + return nil + } + return *page.mvnlr.Value +} + +// Creates a new instance of the ManagedVirtualNetworkListResponsePage type. +func NewManagedVirtualNetworkListResponsePage(cur ManagedVirtualNetworkListResponse, getNextPage func(context.Context, ManagedVirtualNetworkListResponse) (ManagedVirtualNetworkListResponse, error)) ManagedVirtualNetworkListResponsePage { + return ManagedVirtualNetworkListResponsePage{ + fn: getNextPage, + mvnlr: cur, + } +} + +// ManagedVirtualNetworkReference managed Virtual Network reference type. +type ManagedVirtualNetworkReference struct { + // Type - Managed Virtual Network reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference ManagedVirtualNetwork name. + ReferenceName *string `json:"referenceName,omitempty"` +} + +// ManagedVirtualNetworkResource managed Virtual Network resource type. +type ManagedVirtualNetworkResource struct { + autorest.Response `json:"-"` + // Properties - Managed Virtual Network properties. + Properties *ManagedVirtualNetwork `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for ManagedVirtualNetworkResource. +func (mvnr ManagedVirtualNetworkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mvnr.Properties != nil { + objectMap["properties"] = mvnr.Properties + } + return json.Marshal(objectMap) +} + +// MapperAttributeMapping source and target column mapping details. +type MapperAttributeMapping struct { + // Name - Name of the target column. + Name *string `json:"name,omitempty"` + // Type - Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'. Possible values include: 'MappingTypeDirect', 'MappingTypeDerived', 'MappingTypeAggregate' + Type MappingType `json:"type,omitempty"` + // FunctionName - Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping. + FunctionName *string `json:"functionName,omitempty"` + // Expression - Expression used for 'Aggregate' and 'Derived' type mapping. + Expression *string `json:"expression,omitempty"` + // AttributeReference - Reference of the source column used in the mapping. It is used for 'Direct' mapping type only. + AttributeReference *MapperAttributeReference `json:"attributeReference,omitempty"` + // AttributeReferences - List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only. + AttributeReferences *[]MapperAttributeReference `json:"attributeReferences,omitempty"` +} + +// MapperAttributeMappings attribute mapping details. +type MapperAttributeMappings struct { + // AttributeMappings - List of attribute mappings. + AttributeMappings *[]MapperAttributeMapping `json:"attributeMappings,omitempty"` +} + +// MapperAttributeReference attribute reference details for the referred column. +type MapperAttributeReference struct { + // Name - Name of the column. + Name *string `json:"name,omitempty"` + // Entity - Name of the table. + Entity *string `json:"entity,omitempty"` + // EntityConnectionReference - The connection reference for the connection. + EntityConnectionReference *MapperConnectionReference `json:"entityConnectionReference,omitempty"` +} + +// MapperConnection source connection details. +type MapperConnection struct { + // LinkedService - Linked service reference. + LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + // LinkedServiceType - Type of the linked service e.g.: AzureBlobFS. + LinkedServiceType *string `json:"linkedServiceType,omitempty"` + // Type - Type of connection via linked service or dataset. + Type *string `json:"type,omitempty"` + // IsInlineDataset - A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported. + IsInlineDataset *bool `json:"isInlineDataset,omitempty"` + // CommonDslConnectorProperties - List of name/value pairs for connection properties. + CommonDslConnectorProperties *[]MapperDslConnectorProperties `json:"commonDslConnectorProperties,omitempty"` +} + +// MapperConnectionReference source or target connection reference details. +type MapperConnectionReference struct { + // ConnectionName - Name of the connection + ConnectionName *string `json:"connectionName,omitempty"` + // Type - Type of connection via linked service or dataset. Possible values include: 'ConnectionTypeLinkedservicetype' + Type ConnectionType `json:"type,omitempty"` +} + +// MapperDslConnectorProperties connector properties of a CDC table in terms of name / value pairs. +type MapperDslConnectorProperties struct { + // Name - Name of the property. + Name *string `json:"name,omitempty"` + // Value - Value of the property. + Value interface{} `json:"value,omitempty"` +} + +// MapperPolicy CDC Policy. +type MapperPolicy struct { + // Mode - Mode of running the CDC: batch vs continuous. + Mode *string `json:"mode,omitempty"` + // Recurrence - Defines the frequency and interval for running the CDC for batch mode. + Recurrence *MapperPolicyRecurrence `json:"recurrence,omitempty"` +} + +// MapperPolicyRecurrence CDC policy recurrence details. +type MapperPolicyRecurrence struct { + // Frequency - Frequency of period in terms of 'Hour', 'Minute' or 'Second'. Possible values include: 'FrequencyTypeHour', 'FrequencyTypeMinute', 'FrequencyTypeSecond' + Frequency FrequencyType `json:"frequency,omitempty"` + // Interval - Actual interval value as per chosen frequency. + Interval *int32 `json:"interval,omitempty"` +} + +// MapperSourceConnectionsInfo a object which contains list of tables and connection details for a source +// connection. +type MapperSourceConnectionsInfo struct { + // SourceEntities - List of source tables for a source connection. + SourceEntities *[]MapperTable `json:"sourceEntities,omitempty"` + Connection *MapperConnection `json:"connection,omitempty"` +} + +// MapperTable CDC table details. +type MapperTable struct { + // Name - Name of the table. + Name *string `json:"name,omitempty"` + // MapperTableProperties - Table properties. + *MapperTableProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for MapperTable. +func (mt MapperTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mt.Name != nil { + objectMap["name"] = mt.Name + } + if mt.MapperTableProperties != nil { + objectMap["properties"] = mt.MapperTableProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for MapperTable struct. +func (mt *MapperTable) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + mt.Name = &name + } + case "properties": + if v != nil { + var mapperTableProperties MapperTableProperties + err = json.Unmarshal(*v, &mapperTableProperties) + if err != nil { + return err + } + mt.MapperTableProperties = &mapperTableProperties + } + } + } + + return nil +} + +// MapperTableProperties properties for a CDC table. +type MapperTableProperties struct { + // Schema - List of columns for the source table. + Schema *[]MapperTableSchema `json:"schema,omitempty"` + // DslConnectorProperties - List of name/value pairs for connection properties. + DslConnectorProperties *[]MapperDslConnectorProperties `json:"dslConnectorProperties,omitempty"` +} + +// MapperTableSchema schema of a CDC table in terms of column names and their corresponding data types. +type MapperTableSchema struct { + // Name - Name of the column. + Name *string `json:"name,omitempty"` + // DataType - Data type of the column. + DataType *string `json:"dataType,omitempty"` +} + +// MapperTargetConnectionsInfo a object which contains list of tables and connection details for a target +// connection. +type MapperTargetConnectionsInfo struct { + // TargetEntities - List of source tables for a target connection. + TargetEntities *[]MapperTable `json:"targetEntities,omitempty"` + Connection *MapperConnection `json:"connection,omitempty"` + // DataMapperMappings - List of table mappings. + DataMapperMappings *[]DataMapperMapping `json:"dataMapperMappings,omitempty"` + // Relationships - List of relationship info among the tables. + Relationships *[]interface{} `json:"relationships,omitempty"` +} + +// MappingDataFlow mapping data flow. +type MappingDataFlow struct { + // MappingDataFlowTypeProperties - Mapping data flow type properties. + *MappingDataFlowTypeProperties `json:"typeProperties,omitempty"` + // Description - The description of the data flow. + Description *string `json:"description,omitempty"` + // Annotations - List of tags that can be used for describing the data flow. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. + Folder *DataFlowFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDataFlowTypeDataFlow', 'TypeBasicDataFlowTypeWranglingDataFlow', 'TypeBasicDataFlowTypeFlowlet', 'TypeBasicDataFlowTypeMappingDataFlow' + Type TypeBasicDataFlow `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MappingDataFlow. +func (mdf MappingDataFlow) MarshalJSON() ([]byte, error) { + mdf.Type = TypeBasicDataFlowTypeMappingDataFlow + objectMap := make(map[string]interface{}) + if mdf.MappingDataFlowTypeProperties != nil { + objectMap["typeProperties"] = mdf.MappingDataFlowTypeProperties + } + if mdf.Description != nil { + objectMap["description"] = mdf.Description + } + if mdf.Annotations != nil { + objectMap["annotations"] = mdf.Annotations + } + if mdf.Folder != nil { + objectMap["folder"] = mdf.Folder + } + if mdf.Type != "" { + objectMap["type"] = mdf.Type + } + return json.Marshal(objectMap) +} + +// AsWranglingDataFlow is the BasicDataFlow implementation for MappingDataFlow. +func (mdf MappingDataFlow) AsWranglingDataFlow() (*WranglingDataFlow, bool) { + return nil, false +} + +// AsFlowlet is the BasicDataFlow implementation for MappingDataFlow. +func (mdf MappingDataFlow) AsFlowlet() (*Flowlet, bool) { + return nil, false +} + +// AsMappingDataFlow is the BasicDataFlow implementation for MappingDataFlow. +func (mdf MappingDataFlow) AsMappingDataFlow() (*MappingDataFlow, bool) { + return &mdf, true +} + +// AsDataFlow is the BasicDataFlow implementation for MappingDataFlow. +func (mdf MappingDataFlow) AsDataFlow() (*DataFlow, bool) { + return nil, false +} + +// AsBasicDataFlow is the BasicDataFlow implementation for MappingDataFlow. +func (mdf MappingDataFlow) AsBasicDataFlow() (BasicDataFlow, bool) { + return &mdf, true +} + +// UnmarshalJSON is the custom unmarshaler for MappingDataFlow struct. +func (mdf *MappingDataFlow) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mappingDataFlowTypeProperties MappingDataFlowTypeProperties + err = json.Unmarshal(*v, &mappingDataFlowTypeProperties) + if err != nil { + return err + } + mdf.MappingDataFlowTypeProperties = &mappingDataFlowTypeProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdf.Description = &description + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdf.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DataFlowFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + mdf.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataFlow + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdf.Type = typeVar + } + } + } + + return nil +} + +// MappingDataFlowTypeProperties mapping data flow type properties. +type MappingDataFlowTypeProperties struct { + // Sources - List of sources in data flow. + Sources *[]DataFlowSource `json:"sources,omitempty"` + // Sinks - List of sinks in data flow. + Sinks *[]DataFlowSink `json:"sinks,omitempty"` + // Transformations - List of transformations in data flow. + Transformations *[]Transformation `json:"transformations,omitempty"` + // Script - DataFlow script. + Script *string `json:"script,omitempty"` + // ScriptLines - Data flow script lines. + ScriptLines *[]string `json:"scriptLines,omitempty"` +} + +// MariaDBLinkedService mariaDB server linked service. +type MariaDBLinkedService struct { + // MariaDBLinkedServiceTypeProperties - MariaDB server linked service properties. + *MariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MariaDBLinkedService. +func (mdls MariaDBLinkedService) MarshalJSON() ([]byte, error) { + mdls.Type = TypeBasicLinkedServiceTypeMariaDB + objectMap := make(map[string]interface{}) + if mdls.MariaDBLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = mdls.MariaDBLinkedServiceTypeProperties + } + if mdls.ConnectVia != nil { + objectMap["connectVia"] = mdls.ConnectVia + } + if mdls.Description != nil { + objectMap["description"] = mdls.Description + } + if mdls.Parameters != nil { + objectMap["parameters"] = mdls.Parameters + } + if mdls.Annotations != nil { + objectMap["annotations"] = mdls.Annotations + } + if mdls.Type != "" { + objectMap["type"] = mdls.Type + } + for k, v := range mdls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return &mdls, true +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. +func (mdls MariaDBLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &mdls, true +} + +// UnmarshalJSON is the custom unmarshaler for MariaDBLinkedService struct. +func (mdls *MariaDBLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mariaDBLinkedServiceTypeProperties MariaDBLinkedServiceTypeProperties + err = json.Unmarshal(*v, &mariaDBLinkedServiceTypeProperties) + if err != nil { + return err + } + mdls.MariaDBLinkedServiceTypeProperties = &mariaDBLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdls.AdditionalProperties == nil { + mdls.AdditionalProperties = make(map[string]interface{}) + } + mdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + mdls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mdls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdls.Type = typeVar + } + } + } + + return nil +} + +// MariaDBLinkedServiceTypeProperties mariaDB server linked service properties. +type MariaDBLinkedServiceTypeProperties struct { + // DriverVersion - 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 interface{} `json:"driverVersion,omitempty"` + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Server - Server name for connection. Type: string. + Server interface{} `json:"server,omitempty"` + // Port - The port for the connection. Type: integer. + Port interface{} `json:"port,omitempty"` + // Username - Username for authentication. Type: string. + Username interface{} `json:"username,omitempty"` + // Database - Database name for connection. Type: string. + Database interface{} `json:"database,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// MariaDBSource a copy activity MariaDB server source. +type MariaDBSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MariaDBSource. +func (mds MariaDBSource) MarshalJSON() ([]byte, error) { + mds.Type = TypeBasicCopySourceTypeMariaDBSource + objectMap := make(map[string]interface{}) + if mds.Query != nil { + objectMap["query"] = mds.Query + } + if mds.QueryTimeout != nil { + objectMap["queryTimeout"] = mds.QueryTimeout + } + if mds.AdditionalColumns != nil { + objectMap["additionalColumns"] = mds.AdditionalColumns + } + if mds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = mds.SourceRetryCount + } + if mds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = mds.SourceRetryWait + } + if mds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mds.MaxConcurrentConnections + } + if mds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mds.DisableMetricsCollection + } + if mds.Type != "" { + objectMap["type"] = mds.Type + } + for k, v := range mds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsMariaDBSource() (*MariaDBSource, bool) { + return &mds, true +} + +// AsMagentoSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &mds, true +} + +// AsBinarySource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for MariaDBSource. +func (mds MariaDBSource) AsBasicCopySource() (BasicCopySource, bool) { + return &mds, true +} + +// UnmarshalJSON is the custom unmarshaler for MariaDBSource struct. +func (mds *MariaDBSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + mds.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + mds.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + mds.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mds.AdditionalProperties == nil { + mds.AdditionalProperties = make(map[string]interface{}) + } + mds.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + mds.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + mds.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mds.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mds.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mds.Type = typeVar + } + } + } + + return nil +} + +// MariaDBTableDataset mariaDB server dataset. +type MariaDBTableDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) MarshalJSON() ([]byte, error) { + mdtd.Type = TypeBasicDatasetTypeMariaDBTable + objectMap := make(map[string]interface{}) + if mdtd.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = mdtd.GenericDatasetTypeProperties + } + if mdtd.Description != nil { + objectMap["description"] = mdtd.Description + } + if mdtd.Structure != nil { + objectMap["structure"] = mdtd.Structure + } + if mdtd.Schema != nil { + objectMap["schema"] = mdtd.Schema + } + if mdtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = mdtd.LinkedServiceName + } + if mdtd.Parameters != nil { + objectMap["parameters"] = mdtd.Parameters + } + if mdtd.Annotations != nil { + objectMap["annotations"] = mdtd.Annotations + } + if mdtd.Folder != nil { + objectMap["folder"] = mdtd.Folder + } + if mdtd.Type != "" { + objectMap["type"] = mdtd.Type + } + for k, v := range mdtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return &mdtd, true +} + +// AsMagentoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for MariaDBTableDataset. +func (mdtd MariaDBTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &mdtd, true +} + +// UnmarshalJSON is the custom unmarshaler for MariaDBTableDataset struct. +func (mdtd *MariaDBTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + mdtd.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdtd.AdditionalProperties == nil { + mdtd.AdditionalProperties = make(map[string]interface{}) + } + mdtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + mdtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + mdtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + mdtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mdtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + mdtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdtd.Type = typeVar + } + } + } + + return nil +} + +// MarketoLinkedService marketo server linked service. +type MarketoLinkedService struct { + // MarketoLinkedServiceTypeProperties - Marketo server linked service properties. + *MarketoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MarketoLinkedService. +func (mls MarketoLinkedService) MarshalJSON() ([]byte, error) { + mls.Type = TypeBasicLinkedServiceTypeMarketo + objectMap := make(map[string]interface{}) + if mls.MarketoLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = mls.MarketoLinkedServiceTypeProperties + } + if mls.ConnectVia != nil { + objectMap["connectVia"] = mls.ConnectVia + } + if mls.Description != nil { + objectMap["description"] = mls.Description + } + if mls.Parameters != nil { + objectMap["parameters"] = mls.Parameters + } + if mls.Annotations != nil { + objectMap["annotations"] = mls.Annotations + } + if mls.Type != "" { + objectMap["type"] = mls.Type + } + for k, v := range mls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return &mls, true +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for MarketoLinkedService. +func (mls MarketoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &mls, true +} + +// UnmarshalJSON is the custom unmarshaler for MarketoLinkedService struct. +func (mls *MarketoLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var marketoLinkedServiceTypeProperties MarketoLinkedServiceTypeProperties + err = json.Unmarshal(*v, &marketoLinkedServiceTypeProperties) + if err != nil { + return err + } + mls.MarketoLinkedServiceTypeProperties = &marketoLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mls.AdditionalProperties == nil { + mls.AdditionalProperties = make(map[string]interface{}) + } + mls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + mls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mls.Type = typeVar + } + } + } + + return nil +} + +// MarketoLinkedServiceTypeProperties marketo server linked service properties. +type MarketoLinkedServiceTypeProperties struct { + // Endpoint - The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) + Endpoint interface{} `json:"endpoint,omitempty"` + // ClientID - The client Id of your Marketo service. + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret of your Marketo service. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for MarketoLinkedServiceTypeProperties struct. +func (mlstp *MarketoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + mlstp.Endpoint = endpoint + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + mlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + mlstp.ClientSecret = clientSecret + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + mlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + mlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + mlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + mlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// MarketoObjectDataset marketo server dataset. +type MarketoObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MarketoObjectDataset. +func (mod MarketoObjectDataset) MarshalJSON() ([]byte, error) { + mod.Type = TypeBasicDatasetTypeMarketoObject + objectMap := make(map[string]interface{}) + if mod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = mod.GenericDatasetTypeProperties + } + if mod.Description != nil { + objectMap["description"] = mod.Description + } + if mod.Structure != nil { + objectMap["structure"] = mod.Structure + } + if mod.Schema != nil { + objectMap["schema"] = mod.Schema + } + if mod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = mod.LinkedServiceName + } + if mod.Parameters != nil { + objectMap["parameters"] = mod.Parameters + } + if mod.Annotations != nil { + objectMap["annotations"] = mod.Annotations + } + if mod.Folder != nil { + objectMap["folder"] = mod.Folder + } + if mod.Type != "" { + objectMap["type"] = mod.Type + } + for k, v := range mod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return &mod, true +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for MarketoObjectDataset. +func (mod MarketoObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &mod, true +} + +// UnmarshalJSON is the custom unmarshaler for MarketoObjectDataset struct. +func (mod *MarketoObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + mod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mod.AdditionalProperties == nil { + mod.AdditionalProperties = make(map[string]interface{}) + } + mod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + mod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + mod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + mod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + mod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mod.Type = typeVar + } + } + } + + return nil +} + +// MarketoSource a copy activity Marketo server source. +type MarketoSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MarketoSource. +func (ms MarketoSource) MarshalJSON() ([]byte, error) { + ms.Type = TypeBasicCopySourceTypeMarketoSource + objectMap := make(map[string]interface{}) + if ms.Query != nil { + objectMap["query"] = ms.Query + } + if ms.QueryTimeout != nil { + objectMap["queryTimeout"] = ms.QueryTimeout + } + if ms.AdditionalColumns != nil { + objectMap["additionalColumns"] = ms.AdditionalColumns + } + if ms.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ms.SourceRetryCount + } + if ms.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ms.SourceRetryWait + } + if ms.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ms.MaxConcurrentConnections + } + if ms.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ms.DisableMetricsCollection + } + if ms.Type != "" { + objectMap["type"] = ms.Type + } + for k, v := range ms.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsMarketoSource() (*MarketoSource, bool) { + return &ms, true +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ms, true +} + +// AsBinarySource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for MarketoSource. +func (ms MarketoSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ms, true +} + +// UnmarshalJSON is the custom unmarshaler for MarketoSource struct. +func (ms *MarketoSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ms.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ms.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ms.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ms.AdditionalProperties == nil { + ms.AdditionalProperties = make(map[string]interface{}) + } + ms.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ms.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ms.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ms.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ms.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ms.Type = typeVar + } + } + } + + return nil +} + +// MetadataItem specify the name and value of custom metadata item. +type MetadataItem struct { + // Name - Metadata item key name. Type: string (or Expression with resultType string). + Name interface{} `json:"name,omitempty"` + // Value - Metadata item value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` +} + +// MicrosoftAccessLinkedService microsoft Access linked service. +type MicrosoftAccessLinkedService struct { + // MicrosoftAccessLinkedServiceTypeProperties - Microsoft Access linked service properties. + *MicrosoftAccessLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) MarshalJSON() ([]byte, error) { + mals.Type = TypeBasicLinkedServiceTypeMicrosoftAccess + objectMap := make(map[string]interface{}) + if mals.MicrosoftAccessLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = mals.MicrosoftAccessLinkedServiceTypeProperties + } + if mals.ConnectVia != nil { + objectMap["connectVia"] = mals.ConnectVia + } + if mals.Description != nil { + objectMap["description"] = mals.Description + } + if mals.Parameters != nil { + objectMap["parameters"] = mals.Parameters + } + if mals.Annotations != nil { + objectMap["annotations"] = mals.Annotations + } + if mals.Type != "" { + objectMap["type"] = mals.Type + } + for k, v := range mals.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return &mals, true +} + +// AsInformixLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. +func (mals MicrosoftAccessLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &mals, true +} + +// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessLinkedService struct. +func (mals *MicrosoftAccessLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var microsoftAccessLinkedServiceTypeProperties MicrosoftAccessLinkedServiceTypeProperties + err = json.Unmarshal(*v, µsoftAccessLinkedServiceTypeProperties) + if err != nil { + return err + } + mals.MicrosoftAccessLinkedServiceTypeProperties = µsoftAccessLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mals.AdditionalProperties == nil { + mals.AdditionalProperties = make(map[string]interface{}) + } + mals.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + mals.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mals.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mals.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mals.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mals.Type = typeVar + } + } + } + + return nil +} + +// MicrosoftAccessLinkedServiceTypeProperties microsoft Access linked service properties. +type MicrosoftAccessLinkedServiceTypeProperties struct { + // ConnectionString - The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. + ConnectionString interface{} `json:"connectionString,omitempty"` + // AuthenticationType - 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"` + // Credential - The access credential portion of the connection string specified in driver-specific property-value format. + Credential BasicSecretBase `json:"credential,omitempty"` + // UserName - User name for Basic authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for Basic authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessLinkedServiceTypeProperties struct. +func (malstp *MicrosoftAccessLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + malstp.ConnectionString = connectionString + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + malstp.AuthenticationType = authenticationType + } + case "credential": + if v != nil { + credential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + malstp.Credential = credential + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + malstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + malstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + malstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// MicrosoftAccessSink a copy activity Microsoft Access sink. +type MicrosoftAccessSink struct { + // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) MarshalJSON() ([]byte, error) { + mas.Type = TypeBasicCopySinkTypeMicrosoftAccessSink + objectMap := make(map[string]interface{}) + if mas.PreCopyScript != nil { + objectMap["preCopyScript"] = mas.PreCopyScript + } + if mas.WriteBatchSize != nil { + objectMap["writeBatchSize"] = mas.WriteBatchSize + } + if mas.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = mas.WriteBatchTimeout + } + if mas.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = mas.SinkRetryCount + } + if mas.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = mas.SinkRetryWait + } + if mas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mas.MaxConcurrentConnections + } + if mas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mas.DisableMetricsCollection + } + if mas.Type != "" { + objectMap["type"] = mas.Type + } + for k, v := range mas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return &mas, true +} + +// AsInformixSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for MicrosoftAccessSink. +func (mas MicrosoftAccessSink) AsBasicCopySink() (BasicCopySink, bool) { + return &mas, true +} + +// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessSink struct. +func (mas *MicrosoftAccessSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + mas.PreCopyScript = preCopyScript + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mas.AdditionalProperties == nil { + mas.AdditionalProperties = make(map[string]interface{}) + } + mas.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + mas.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + mas.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + mas.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + mas.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mas.Type = typeVar + } + } + } + + return nil +} + +// MicrosoftAccessSource a copy activity source for Microsoft Access. +type MicrosoftAccessSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) MarshalJSON() ([]byte, error) { + mas.Type = TypeBasicCopySourceTypeMicrosoftAccessSource + objectMap := make(map[string]interface{}) + if mas.Query != nil { + objectMap["query"] = mas.Query + } + if mas.AdditionalColumns != nil { + objectMap["additionalColumns"] = mas.AdditionalColumns + } + if mas.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = mas.SourceRetryCount + } + if mas.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = mas.SourceRetryWait + } + if mas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mas.MaxConcurrentConnections + } + if mas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mas.DisableMetricsCollection + } + if mas.Type != "" { + objectMap["type"] = mas.Type + } + for k, v := range mas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return &mas, true +} + +// AsRelationalSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for MicrosoftAccessSource. +func (mas MicrosoftAccessSource) AsBasicCopySource() (BasicCopySource, bool) { + return &mas, true +} + +// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessSource struct. +func (mas *MicrosoftAccessSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + mas.Query = query + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + mas.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mas.AdditionalProperties == nil { + mas.AdditionalProperties = make(map[string]interface{}) + } + mas.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + mas.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + mas.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mas.Type = typeVar + } + } + } + + return nil +} + +// MicrosoftAccessTableDataset the Microsoft Access table dataset. +type MicrosoftAccessTableDataset struct { + // MicrosoftAccessTableDatasetTypeProperties - Microsoft Access table dataset properties. + *MicrosoftAccessTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) MarshalJSON() ([]byte, error) { + matd.Type = TypeBasicDatasetTypeMicrosoftAccessTable + objectMap := make(map[string]interface{}) + if matd.MicrosoftAccessTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = matd.MicrosoftAccessTableDatasetTypeProperties + } + if matd.Description != nil { + objectMap["description"] = matd.Description + } + if matd.Structure != nil { + objectMap["structure"] = matd.Structure + } + if matd.Schema != nil { + objectMap["schema"] = matd.Schema + } + if matd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = matd.LinkedServiceName + } + if matd.Parameters != nil { + objectMap["parameters"] = matd.Parameters + } + if matd.Annotations != nil { + objectMap["annotations"] = matd.Annotations + } + if matd.Folder != nil { + objectMap["folder"] = matd.Folder + } + if matd.Type != "" { + objectMap["type"] = matd.Type + } + for k, v := range matd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return &matd, true +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. +func (matd MicrosoftAccessTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &matd, true +} + +// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessTableDataset struct. +func (matd *MicrosoftAccessTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var microsoftAccessTableDatasetTypeProperties MicrosoftAccessTableDatasetTypeProperties + err = json.Unmarshal(*v, µsoftAccessTableDatasetTypeProperties) + if err != nil { + return err + } + matd.MicrosoftAccessTableDatasetTypeProperties = µsoftAccessTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if matd.AdditionalProperties == nil { + matd.AdditionalProperties = make(map[string]interface{}) + } + matd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + matd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + matd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + matd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + matd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + matd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + matd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + matd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + matd.Type = typeVar + } + } + } + + return nil +} + +// MicrosoftAccessTableDatasetTypeProperties microsoft Access table dataset properties. +type MicrosoftAccessTableDatasetTypeProperties struct { + // TableName - The Microsoft Access table name. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// MongoDbAtlasCollectionDataset the MongoDB Atlas database dataset. +type MongoDbAtlasCollectionDataset struct { + // MongoDbAtlasCollectionDatasetTypeProperties - MongoDB Atlas database dataset properties. + *MongoDbAtlasCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) MarshalJSON() ([]byte, error) { + mdacd.Type = TypeBasicDatasetTypeMongoDbAtlasCollection + objectMap := make(map[string]interface{}) + if mdacd.MongoDbAtlasCollectionDatasetTypeProperties != nil { + objectMap["typeProperties"] = mdacd.MongoDbAtlasCollectionDatasetTypeProperties + } + if mdacd.Description != nil { + objectMap["description"] = mdacd.Description + } + if mdacd.Structure != nil { + objectMap["structure"] = mdacd.Structure + } + if mdacd.Schema != nil { + objectMap["schema"] = mdacd.Schema + } + if mdacd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = mdacd.LinkedServiceName + } + if mdacd.Parameters != nil { + objectMap["parameters"] = mdacd.Parameters + } + if mdacd.Annotations != nil { + objectMap["annotations"] = mdacd.Annotations + } + if mdacd.Folder != nil { + objectMap["folder"] = mdacd.Folder + } + if mdacd.Type != "" { + objectMap["type"] = mdacd.Type + } + for k, v := range mdacd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return &mdacd, true +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. +func (mdacd MongoDbAtlasCollectionDataset) AsBasicDataset() (BasicDataset, bool) { + return &mdacd, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasCollectionDataset struct. +func (mdacd *MongoDbAtlasCollectionDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mongoDbAtlasCollectionDatasetTypeProperties MongoDbAtlasCollectionDatasetTypeProperties + err = json.Unmarshal(*v, &mongoDbAtlasCollectionDatasetTypeProperties) + if err != nil { + return err + } + mdacd.MongoDbAtlasCollectionDatasetTypeProperties = &mongoDbAtlasCollectionDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdacd.AdditionalProperties == nil { + mdacd.AdditionalProperties = make(map[string]interface{}) + } + mdacd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdacd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + mdacd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + mdacd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + mdacd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mdacd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdacd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + mdacd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdacd.Type = typeVar + } + } + } + + return nil +} + +// MongoDbAtlasCollectionDatasetTypeProperties mongoDB Atlas database dataset properties. +type MongoDbAtlasCollectionDatasetTypeProperties struct { + // Collection - The collection name of the MongoDB Atlas database. Type: string (or Expression with resultType string). + Collection interface{} `json:"collection,omitempty"` +} + +// MongoDbAtlasLinkedService linked service for MongoDB Atlas data source. +type MongoDbAtlasLinkedService struct { + // MongoDbAtlasLinkedServiceTypeProperties - MongoDB Atlas linked service properties. + *MongoDbAtlasLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) MarshalJSON() ([]byte, error) { + mdals.Type = TypeBasicLinkedServiceTypeMongoDbAtlas + objectMap := make(map[string]interface{}) + if mdals.MongoDbAtlasLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = mdals.MongoDbAtlasLinkedServiceTypeProperties + } + if mdals.ConnectVia != nil { + objectMap["connectVia"] = mdals.ConnectVia + } + if mdals.Description != nil { + objectMap["description"] = mdals.Description + } + if mdals.Parameters != nil { + objectMap["parameters"] = mdals.Parameters + } + if mdals.Annotations != nil { + objectMap["annotations"] = mdals.Annotations + } + if mdals.Type != "" { + objectMap["type"] = mdals.Type + } + for k, v := range mdals.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return &mdals, true +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. +func (mdals MongoDbAtlasLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &mdals, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasLinkedService struct. +func (mdals *MongoDbAtlasLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mongoDbAtlasLinkedServiceTypeProperties MongoDbAtlasLinkedServiceTypeProperties + err = json.Unmarshal(*v, &mongoDbAtlasLinkedServiceTypeProperties) + if err != nil { + return err + } + mdals.MongoDbAtlasLinkedServiceTypeProperties = &mongoDbAtlasLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdals.AdditionalProperties == nil { + mdals.AdditionalProperties = make(map[string]interface{}) + } + mdals.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + mdals.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdals.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mdals.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdals.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdals.Type = typeVar + } + } + } + + return nil +} + +// MongoDbAtlasLinkedServiceTypeProperties mongoDB Atlas linked service properties. +type MongoDbAtlasLinkedServiceTypeProperties struct { + // ConnectionString - The MongoDB Atlas connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Database - The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` + // DriverVersion - The driver version that you want to choose. Allowed value are v1 and v2. Type: string (or Expression with resultType string). + DriverVersion interface{} `json:"driverVersion,omitempty"` +} + +// MongoDbAtlasSink a copy activity MongoDB Atlas sink. +type MongoDbAtlasSink struct { + // WriteBehavior - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) MarshalJSON() ([]byte, error) { + mdas.Type = TypeBasicCopySinkTypeMongoDbAtlasSink + objectMap := make(map[string]interface{}) + if mdas.WriteBehavior != nil { + objectMap["writeBehavior"] = mdas.WriteBehavior + } + if mdas.WriteBatchSize != nil { + objectMap["writeBatchSize"] = mdas.WriteBatchSize + } + if mdas.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = mdas.WriteBatchTimeout + } + if mdas.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = mdas.SinkRetryCount + } + if mdas.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = mdas.SinkRetryWait + } + if mdas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mdas.MaxConcurrentConnections + } + if mdas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mdas.DisableMetricsCollection + } + if mdas.Type != "" { + objectMap["type"] = mdas.Type + } + for k, v := range mdas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return &mdas, true +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for MongoDbAtlasSink. +func (mdas MongoDbAtlasSink) AsBasicCopySink() (BasicCopySink, bool) { + return &mdas, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasSink struct. +func (mdas *MongoDbAtlasSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + mdas.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdas.AdditionalProperties == nil { + mdas.AdditionalProperties = make(map[string]interface{}) + } + mdas.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + mdas.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + mdas.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + mdas.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + mdas.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mdas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mdas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdas.Type = typeVar + } + } + } + + return nil +} + +// MongoDbAtlasSource a copy activity source for a MongoDB Atlas database. +type MongoDbAtlasSource struct { + // Filter - 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"` + // CursorMethods - Cursor methods for Mongodb query + CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` + // BatchSize - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) MarshalJSON() ([]byte, error) { + mdas.Type = TypeBasicCopySourceTypeMongoDbAtlasSource + objectMap := make(map[string]interface{}) + if mdas.Filter != nil { + objectMap["filter"] = mdas.Filter + } + if mdas.CursorMethods != nil { + objectMap["cursorMethods"] = mdas.CursorMethods + } + if mdas.BatchSize != nil { + objectMap["batchSize"] = mdas.BatchSize + } + if mdas.QueryTimeout != nil { + objectMap["queryTimeout"] = mdas.QueryTimeout + } + if mdas.AdditionalColumns != nil { + objectMap["additionalColumns"] = mdas.AdditionalColumns + } + if mdas.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = mdas.SourceRetryCount + } + if mdas.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = mdas.SourceRetryWait + } + if mdas.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mdas.MaxConcurrentConnections + } + if mdas.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mdas.DisableMetricsCollection + } + if mdas.Type != "" { + objectMap["type"] = mdas.Type + } + for k, v := range mdas.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return &mdas, true +} + +// AsMongoDbSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for MongoDbAtlasSource. +func (mdas MongoDbAtlasSource) AsBasicCopySource() (BasicCopySource, bool) { + return &mdas, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasSource struct. +func (mdas *MongoDbAtlasSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "filter": + if v != nil { + var filter interface{} + err = json.Unmarshal(*v, &filter) + if err != nil { + return err + } + mdas.Filter = filter + } + case "cursorMethods": + if v != nil { + var cursorMethods MongoDbCursorMethodsProperties + err = json.Unmarshal(*v, &cursorMethods) + if err != nil { + return err + } + mdas.CursorMethods = &cursorMethods + } + case "batchSize": + if v != nil { + var batchSize interface{} + err = json.Unmarshal(*v, &batchSize) + if err != nil { + return err + } + mdas.BatchSize = batchSize + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + mdas.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + mdas.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdas.AdditionalProperties == nil { + mdas.AdditionalProperties = make(map[string]interface{}) + } + mdas.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + mdas.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + mdas.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mdas.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mdas.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdas.Type = typeVar + } + } + } + + return nil +} + +// MongoDbCollectionDataset the MongoDB database dataset. +type MongoDbCollectionDataset struct { + // MongoDbCollectionDatasetTypeProperties - MongoDB database dataset properties. + *MongoDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) MarshalJSON() ([]byte, error) { + mdcd.Type = TypeBasicDatasetTypeMongoDbCollection + objectMap := make(map[string]interface{}) + if mdcd.MongoDbCollectionDatasetTypeProperties != nil { + objectMap["typeProperties"] = mdcd.MongoDbCollectionDatasetTypeProperties + } + if mdcd.Description != nil { + objectMap["description"] = mdcd.Description + } + if mdcd.Structure != nil { + objectMap["structure"] = mdcd.Structure + } + if mdcd.Schema != nil { + objectMap["schema"] = mdcd.Schema + } + if mdcd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = mdcd.LinkedServiceName + } + if mdcd.Parameters != nil { + objectMap["parameters"] = mdcd.Parameters + } + if mdcd.Annotations != nil { + objectMap["annotations"] = mdcd.Annotations + } + if mdcd.Folder != nil { + objectMap["folder"] = mdcd.Folder + } + if mdcd.Type != "" { + objectMap["type"] = mdcd.Type + } + for k, v := range mdcd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return &mdcd, true +} + +// AsFileShareDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for MongoDbCollectionDataset. +func (mdcd MongoDbCollectionDataset) AsBasicDataset() (BasicDataset, bool) { + return &mdcd, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbCollectionDataset struct. +func (mdcd *MongoDbCollectionDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mongoDbCollectionDatasetTypeProperties MongoDbCollectionDatasetTypeProperties + err = json.Unmarshal(*v, &mongoDbCollectionDatasetTypeProperties) + if err != nil { + return err + } + mdcd.MongoDbCollectionDatasetTypeProperties = &mongoDbCollectionDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdcd.AdditionalProperties == nil { + mdcd.AdditionalProperties = make(map[string]interface{}) + } + mdcd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdcd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + mdcd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + mdcd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + mdcd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mdcd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdcd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + mdcd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdcd.Type = typeVar + } + } + } + + return nil +} + +// MongoDbCollectionDatasetTypeProperties mongoDB database dataset properties. +type MongoDbCollectionDatasetTypeProperties struct { + // CollectionName - The table name of the MongoDB database. Type: string (or Expression with resultType string). + CollectionName interface{} `json:"collectionName,omitempty"` +} + +// MongoDbCursorMethodsProperties cursor methods for Mongodb query +type MongoDbCursorMethodsProperties struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Project - 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"` + // Sort - 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"` + // Skip - 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"` + // Limit - 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"` +} + +// MarshalJSON is the custom marshaler for MongoDbCursorMethodsProperties. +func (mdcmp MongoDbCursorMethodsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mdcmp.Project != nil { + objectMap["project"] = mdcmp.Project + } + if mdcmp.Sort != nil { + objectMap["sort"] = mdcmp.Sort + } + if mdcmp.Skip != nil { + objectMap["skip"] = mdcmp.Skip + } + if mdcmp.Limit != nil { + objectMap["limit"] = mdcmp.Limit + } + for k, v := range mdcmp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbCursorMethodsProperties struct. +func (mdcmp *MongoDbCursorMethodsProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdcmp.AdditionalProperties == nil { + mdcmp.AdditionalProperties = make(map[string]interface{}) + } + mdcmp.AdditionalProperties[k] = additionalProperties + } + case "project": + if v != nil { + var project interface{} + err = json.Unmarshal(*v, &project) + if err != nil { + return err + } + mdcmp.Project = project + } + case "sort": + if v != nil { + var sortVar interface{} + err = json.Unmarshal(*v, &sortVar) + if err != nil { + return err + } + mdcmp.Sort = sortVar + } + case "skip": + if v != nil { + var skip interface{} + err = json.Unmarshal(*v, &skip) + if err != nil { + return err + } + mdcmp.Skip = skip + } + case "limit": + if v != nil { + var limit interface{} + err = json.Unmarshal(*v, &limit) + if err != nil { + return err + } + mdcmp.Limit = limit + } + } + } + + return nil +} + +// MongoDbLinkedService linked service for MongoDb data source. +type MongoDbLinkedService struct { + // MongoDbLinkedServiceTypeProperties - MongoDB linked service properties. + *MongoDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbLinkedService. +func (mdls MongoDbLinkedService) MarshalJSON() ([]byte, error) { + mdls.Type = TypeBasicLinkedServiceTypeMongoDb + objectMap := make(map[string]interface{}) + if mdls.MongoDbLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = mdls.MongoDbLinkedServiceTypeProperties + } + if mdls.ConnectVia != nil { + objectMap["connectVia"] = mdls.ConnectVia + } + if mdls.Description != nil { + objectMap["description"] = mdls.Description + } + if mdls.Parameters != nil { + objectMap["parameters"] = mdls.Parameters + } + if mdls.Annotations != nil { + objectMap["annotations"] = mdls.Annotations + } + if mdls.Type != "" { + objectMap["type"] = mdls.Type + } + for k, v := range mdls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return &mdls, true +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. +func (mdls MongoDbLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &mdls, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbLinkedService struct. +func (mdls *MongoDbLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mongoDbLinkedServiceTypeProperties MongoDbLinkedServiceTypeProperties + err = json.Unmarshal(*v, &mongoDbLinkedServiceTypeProperties) + if err != nil { + return err + } + mdls.MongoDbLinkedServiceTypeProperties = &mongoDbLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdls.AdditionalProperties == nil { + mdls.AdditionalProperties = make(map[string]interface{}) + } + mdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + mdls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mdls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdls.Type = typeVar + } + } + } + + return nil +} + +// MongoDbLinkedServiceTypeProperties mongoDB linked service properties. +type MongoDbLinkedServiceTypeProperties struct { + // Server - The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the MongoDB database. Possible values include: 'MongoDbAuthenticationTypeBasic', 'MongoDbAuthenticationTypeAnonymous' + AuthenticationType MongoDbAuthenticationType `json:"authenticationType,omitempty"` + // DatabaseName - The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). + DatabaseName interface{} `json:"databaseName,omitempty"` + // Username - Username for authentication. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password for authentication. + Password BasicSecretBase `json:"password,omitempty"` + // AuthSource - Database to verify the username and password. Type: string (or Expression with resultType string). + AuthSource interface{} `json:"authSource,omitempty"` + // Port - 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"` + // EnableSsl - 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"` + // AllowSelfSignedServerCert - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbLinkedServiceTypeProperties struct. +func (mdlstp *MongoDbLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + mdlstp.Server = server + } + case "authenticationType": + if v != nil { + var authenticationType MongoDbAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + mdlstp.AuthenticationType = authenticationType + } + case "databaseName": + if v != nil { + var databaseName interface{} + err = json.Unmarshal(*v, &databaseName) + if err != nil { + return err + } + mdlstp.DatabaseName = databaseName + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + mdlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + mdlstp.Password = password + } + case "authSource": + if v != nil { + var authSource interface{} + err = json.Unmarshal(*v, &authSource) + if err != nil { + return err + } + mdlstp.AuthSource = authSource + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + mdlstp.Port = port + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + mdlstp.EnableSsl = enableSsl + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + mdlstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + mdlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// MongoDbSource a copy activity source for a MongoDB database. +type MongoDbSource struct { + // Query - Database query. Should be a SQL-92 query expression. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbSource. +func (mds MongoDbSource) MarshalJSON() ([]byte, error) { + mds.Type = TypeBasicCopySourceTypeMongoDbSource + objectMap := make(map[string]interface{}) + if mds.Query != nil { + objectMap["query"] = mds.Query + } + if mds.AdditionalColumns != nil { + objectMap["additionalColumns"] = mds.AdditionalColumns + } + if mds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = mds.SourceRetryCount + } + if mds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = mds.SourceRetryWait + } + if mds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mds.MaxConcurrentConnections + } + if mds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mds.DisableMetricsCollection + } + if mds.Type != "" { + objectMap["type"] = mds.Type + } + for k, v := range mds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsMongoDbSource() (*MongoDbSource, bool) { + return &mds, true +} + +// AsWebSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for MongoDbSource. +func (mds MongoDbSource) AsBasicCopySource() (BasicCopySource, bool) { + return &mds, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbSource struct. +func (mds *MongoDbSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + mds.Query = query + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + mds.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mds.AdditionalProperties == nil { + mds.AdditionalProperties = make(map[string]interface{}) + } + mds.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + mds.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + mds.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mds.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mds.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mds.Type = typeVar + } + } + } + + return nil +} + +// MongoDbV2CollectionDataset the MongoDB database dataset. +type MongoDbV2CollectionDataset struct { + // MongoDbV2CollectionDatasetTypeProperties - MongoDB database dataset properties. + *MongoDbV2CollectionDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) MarshalJSON() ([]byte, error) { + mdvcd.Type = TypeBasicDatasetTypeMongoDbV2Collection + objectMap := make(map[string]interface{}) + if mdvcd.MongoDbV2CollectionDatasetTypeProperties != nil { + objectMap["typeProperties"] = mdvcd.MongoDbV2CollectionDatasetTypeProperties + } + if mdvcd.Description != nil { + objectMap["description"] = mdvcd.Description + } + if mdvcd.Structure != nil { + objectMap["structure"] = mdvcd.Structure + } + if mdvcd.Schema != nil { + objectMap["schema"] = mdvcd.Schema + } + if mdvcd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = mdvcd.LinkedServiceName + } + if mdvcd.Parameters != nil { + objectMap["parameters"] = mdvcd.Parameters + } + if mdvcd.Annotations != nil { + objectMap["annotations"] = mdvcd.Annotations + } + if mdvcd.Folder != nil { + objectMap["folder"] = mdvcd.Folder + } + if mdvcd.Type != "" { + objectMap["type"] = mdvcd.Type + } + for k, v := range mdvcd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return &mdvcd, true +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. +func (mdvcd MongoDbV2CollectionDataset) AsBasicDataset() (BasicDataset, bool) { + return &mdvcd, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbV2CollectionDataset struct. +func (mdvcd *MongoDbV2CollectionDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mongoDbV2CollectionDatasetTypeProperties MongoDbV2CollectionDatasetTypeProperties + err = json.Unmarshal(*v, &mongoDbV2CollectionDatasetTypeProperties) + if err != nil { + return err + } + mdvcd.MongoDbV2CollectionDatasetTypeProperties = &mongoDbV2CollectionDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdvcd.AdditionalProperties == nil { + mdvcd.AdditionalProperties = make(map[string]interface{}) + } + mdvcd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdvcd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + mdvcd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + mdvcd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + mdvcd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mdvcd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdvcd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + mdvcd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdvcd.Type = typeVar + } + } + } + + return nil +} + +// MongoDbV2CollectionDatasetTypeProperties mongoDB database dataset properties. +type MongoDbV2CollectionDatasetTypeProperties struct { + // Collection - The collection name of the MongoDB database. Type: string (or Expression with resultType string). + Collection interface{} `json:"collection,omitempty"` +} + +// MongoDbV2LinkedService linked service for MongoDB data source. +type MongoDbV2LinkedService struct { + // MongoDbV2LinkedServiceTypeProperties - MongoDB linked service properties. + *MongoDbV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) MarshalJSON() ([]byte, error) { + mdvls.Type = TypeBasicLinkedServiceTypeMongoDbV2 + objectMap := make(map[string]interface{}) + if mdvls.MongoDbV2LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = mdvls.MongoDbV2LinkedServiceTypeProperties + } + if mdvls.ConnectVia != nil { + objectMap["connectVia"] = mdvls.ConnectVia + } + if mdvls.Description != nil { + objectMap["description"] = mdvls.Description + } + if mdvls.Parameters != nil { + objectMap["parameters"] = mdvls.Parameters + } + if mdvls.Annotations != nil { + objectMap["annotations"] = mdvls.Annotations + } + if mdvls.Type != "" { + objectMap["type"] = mdvls.Type + } + for k, v := range mdvls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return &mdvls, true +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. +func (mdvls MongoDbV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &mdvls, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbV2LinkedService struct. +func (mdvls *MongoDbV2LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mongoDbV2LinkedServiceTypeProperties MongoDbV2LinkedServiceTypeProperties + err = json.Unmarshal(*v, &mongoDbV2LinkedServiceTypeProperties) + if err != nil { + return err + } + mdvls.MongoDbV2LinkedServiceTypeProperties = &mongoDbV2LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdvls.AdditionalProperties == nil { + mdvls.AdditionalProperties = make(map[string]interface{}) + } + mdvls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + mdvls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mdvls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mdvls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mdvls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdvls.Type = typeVar + } + } + } + + return nil +} + +// MongoDbV2LinkedServiceTypeProperties mongoDB linked service properties. +type MongoDbV2LinkedServiceTypeProperties struct { + // ConnectionString - The MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Database - The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` +} + +// MongoDbV2Sink a copy activity MongoDB sink. +type MongoDbV2Sink struct { + // WriteBehavior - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) MarshalJSON() ([]byte, error) { + mdvs.Type = TypeBasicCopySinkTypeMongoDbV2Sink + objectMap := make(map[string]interface{}) + if mdvs.WriteBehavior != nil { + objectMap["writeBehavior"] = mdvs.WriteBehavior + } + if mdvs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = mdvs.WriteBatchSize + } + if mdvs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = mdvs.WriteBatchTimeout + } + if mdvs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = mdvs.SinkRetryCount + } + if mdvs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = mdvs.SinkRetryWait + } + if mdvs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mdvs.MaxConcurrentConnections + } + if mdvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mdvs.DisableMetricsCollection + } + if mdvs.Type != "" { + objectMap["type"] = mdvs.Type + } + for k, v := range mdvs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return &mdvs, true +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for MongoDbV2Sink. +func (mdvs MongoDbV2Sink) AsBasicCopySink() (BasicCopySink, bool) { + return &mdvs, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbV2Sink struct. +func (mdvs *MongoDbV2Sink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + mdvs.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdvs.AdditionalProperties == nil { + mdvs.AdditionalProperties = make(map[string]interface{}) + } + mdvs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + mdvs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + mdvs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + mdvs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + mdvs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mdvs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mdvs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdvs.Type = typeVar + } + } + } + + return nil +} + +// MongoDbV2Source a copy activity source for a MongoDB database. +type MongoDbV2Source struct { + // Filter - 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"` + // CursorMethods - Cursor methods for Mongodb query + CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` + // BatchSize - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MongoDbV2Source. +func (mdvs MongoDbV2Source) MarshalJSON() ([]byte, error) { + mdvs.Type = TypeBasicCopySourceTypeMongoDbV2Source + objectMap := make(map[string]interface{}) + if mdvs.Filter != nil { + objectMap["filter"] = mdvs.Filter + } + if mdvs.CursorMethods != nil { + objectMap["cursorMethods"] = mdvs.CursorMethods + } + if mdvs.BatchSize != nil { + objectMap["batchSize"] = mdvs.BatchSize + } + if mdvs.QueryTimeout != nil { + objectMap["queryTimeout"] = mdvs.QueryTimeout + } + if mdvs.AdditionalColumns != nil { + objectMap["additionalColumns"] = mdvs.AdditionalColumns + } + if mdvs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = mdvs.SourceRetryCount + } + if mdvs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = mdvs.SourceRetryWait + } + if mdvs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mdvs.MaxConcurrentConnections + } + if mdvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mdvs.DisableMetricsCollection + } + if mdvs.Type != "" { + objectMap["type"] = mdvs.Type + } + for k, v := range mdvs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return &mdvs, true +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for MongoDbV2Source. +func (mdvs MongoDbV2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &mdvs, true +} + +// UnmarshalJSON is the custom unmarshaler for MongoDbV2Source struct. +func (mdvs *MongoDbV2Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "filter": + if v != nil { + var filter interface{} + err = json.Unmarshal(*v, &filter) + if err != nil { + return err + } + mdvs.Filter = filter + } + case "cursorMethods": + if v != nil { + var cursorMethods MongoDbCursorMethodsProperties + err = json.Unmarshal(*v, &cursorMethods) + if err != nil { + return err + } + mdvs.CursorMethods = &cursorMethods + } + case "batchSize": + if v != nil { + var batchSize interface{} + err = json.Unmarshal(*v, &batchSize) + if err != nil { + return err + } + mdvs.BatchSize = batchSize + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + mdvs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + mdvs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mdvs.AdditionalProperties == nil { + mdvs.AdditionalProperties = make(map[string]interface{}) + } + mdvs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + mdvs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + mdvs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mdvs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mdvs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mdvs.Type = typeVar + } + } + } + + return nil +} + +// BasicMultiplePipelineTrigger base class for all triggers that support one to many model for trigger to pipeline. +type BasicMultiplePipelineTrigger interface { + AsCustomEventsTrigger() (*CustomEventsTrigger, bool) + AsBlobEventsTrigger() (*BlobEventsTrigger, bool) + AsBlobTrigger() (*BlobTrigger, bool) + AsScheduleTrigger() (*ScheduleTrigger, bool) + AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) +} + +// MultiplePipelineTrigger base class for all triggers that support one to many model for trigger to pipeline. +type MultiplePipelineTrigger struct { + // Pipelines - Pipelines that need to be started. + Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +func unmarshalBasicMultiplePipelineTrigger(body []byte) (BasicMultiplePipelineTrigger, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicTriggerTypeCustomEventsTrigger): + var cet CustomEventsTrigger + err := json.Unmarshal(body, &cet) + return cet, err + case string(TypeBasicTriggerTypeBlobEventsTrigger): + var bet BlobEventsTrigger + err := json.Unmarshal(body, &bet) + return bet, err + case string(TypeBasicTriggerTypeBlobTrigger): + var bt BlobTrigger + err := json.Unmarshal(body, &bt) + return bt, err + case string(TypeBasicTriggerTypeScheduleTrigger): + var st ScheduleTrigger + err := json.Unmarshal(body, &st) + return st, err + default: + var mpt MultiplePipelineTrigger + err := json.Unmarshal(body, &mpt) + return mpt, err + } +} +func unmarshalBasicMultiplePipelineTriggerArray(body []byte) ([]BasicMultiplePipelineTrigger, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + mptArray := make([]BasicMultiplePipelineTrigger, len(rawMessages)) + + for index, rawMessage := range rawMessages { + mpt, err := unmarshalBasicMultiplePipelineTrigger(*rawMessage) + if err != nil { + return nil, err + } + mptArray[index] = mpt + } + return mptArray, nil +} + +// MarshalJSON is the custom marshaler for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) MarshalJSON() ([]byte, error) { + mpt.Type = TypeBasicTriggerTypeMultiplePipelineTrigger + objectMap := make(map[string]interface{}) + if mpt.Pipelines != nil { + objectMap["pipelines"] = mpt.Pipelines + } + if mpt.Description != nil { + objectMap["description"] = mpt.Description + } + if mpt.Annotations != nil { + objectMap["annotations"] = mpt.Annotations + } + if mpt.Type != "" { + objectMap["type"] = mpt.Type + } + for k, v := range mpt.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return &mpt, true +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return &mpt, true +} + +// AsTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. +func (mpt MultiplePipelineTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &mpt, true +} + +// UnmarshalJSON is the custom unmarshaler for MultiplePipelineTrigger struct. +func (mpt *MultiplePipelineTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "pipelines": + if v != nil { + var pipelines []TriggerPipelineReference + err = json.Unmarshal(*v, &pipelines) + if err != nil { + return err + } + mpt.Pipelines = &pipelines + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mpt.AdditionalProperties == nil { + mpt.AdditionalProperties = make(map[string]interface{}) + } + mpt.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mpt.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + mpt.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mpt.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mpt.Type = typeVar + } + } + } + + return nil +} + +// MySQLLinkedService linked service for MySQL data source. +type MySQLLinkedService struct { + // MySQLLinkedServiceTypeProperties - MySQL linked service properties. + *MySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MySQLLinkedService. +func (msls MySQLLinkedService) MarshalJSON() ([]byte, error) { + msls.Type = TypeBasicLinkedServiceTypeMySQL + objectMap := make(map[string]interface{}) + if msls.MySQLLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = msls.MySQLLinkedServiceTypeProperties + } + if msls.ConnectVia != nil { + objectMap["connectVia"] = msls.ConnectVia + } + if msls.Description != nil { + objectMap["description"] = msls.Description + } + if msls.Parameters != nil { + objectMap["parameters"] = msls.Parameters + } + if msls.Annotations != nil { + objectMap["annotations"] = msls.Annotations + } + if msls.Type != "" { + objectMap["type"] = msls.Type + } + for k, v := range msls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return &msls, true +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for MySQLLinkedService. +func (msls MySQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &msls, true +} + +// UnmarshalJSON is the custom unmarshaler for MySQLLinkedService struct. +func (msls *MySQLLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mySQLLinkedServiceTypeProperties MySQLLinkedServiceTypeProperties + err = json.Unmarshal(*v, &mySQLLinkedServiceTypeProperties) + if err != nil { + return err + } + msls.MySQLLinkedServiceTypeProperties = &mySQLLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if msls.AdditionalProperties == nil { + msls.AdditionalProperties = make(map[string]interface{}) + } + msls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + msls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + msls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + msls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + msls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + msls.Type = typeVar + } + } + } + + return nil +} + +// MySQLLinkedServiceTypeProperties mySQL linked service properties. +type MySQLLinkedServiceTypeProperties struct { + // DriverVersion - 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 interface{} `json:"driverVersion,omitempty"` + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Server - Server name for connection. Type: string. + Server interface{} `json:"server,omitempty"` + // Port - The port for the connection. Type: integer. + Port interface{} `json:"port,omitempty"` + // Username - Username for authentication. Type: string. + Username interface{} `json:"username,omitempty"` + // Database - Database name for connection. Type: string. + Database interface{} `json:"database,omitempty"` + // SslMode - SSL mode for connection. Type: integer. 0: disable, 1: prefer, 2: require, 3: verify-ca, 4: verify-full. + SslMode interface{} `json:"sslMode,omitempty"` + // UseSystemTrustStore - Use system trust store for connection. Type: integer. 0: enable, 1: disable. + UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// MySQLSource a copy activity source for MySQL databases. +type MySQLSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MySQLSource. +func (mss MySQLSource) MarshalJSON() ([]byte, error) { + mss.Type = TypeBasicCopySourceTypeMySQLSource + objectMap := make(map[string]interface{}) + if mss.Query != nil { + objectMap["query"] = mss.Query + } + if mss.QueryTimeout != nil { + objectMap["queryTimeout"] = mss.QueryTimeout + } + if mss.AdditionalColumns != nil { + objectMap["additionalColumns"] = mss.AdditionalColumns + } + if mss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = mss.SourceRetryCount + } + if mss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = mss.SourceRetryWait + } + if mss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = mss.MaxConcurrentConnections + } + if mss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = mss.DisableMetricsCollection + } + if mss.Type != "" { + objectMap["type"] = mss.Type + } + for k, v := range mss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsMySQLSource() (*MySQLSource, bool) { + return &mss, true +} + +// AsOdbcSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &mss, true +} + +// AsBinarySource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for MySQLSource. +func (mss MySQLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &mss, true +} + +// UnmarshalJSON is the custom unmarshaler for MySQLSource struct. +func (mss *MySQLSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + mss.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + mss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + mss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mss.AdditionalProperties == nil { + mss.AdditionalProperties = make(map[string]interface{}) + } + mss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + mss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + mss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + mss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + mss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mss.Type = typeVar + } + } + } + + return nil +} + +// MySQLTableDataset the MySQL table dataset. +type MySQLTableDataset struct { + // MySQLTableDatasetTypeProperties - MySQL table dataset properties. + *MySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for MySQLTableDataset. +func (mstd MySQLTableDataset) MarshalJSON() ([]byte, error) { + mstd.Type = TypeBasicDatasetTypeMySQLTable + objectMap := make(map[string]interface{}) + if mstd.MySQLTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = mstd.MySQLTableDatasetTypeProperties + } + if mstd.Description != nil { + objectMap["description"] = mstd.Description + } + if mstd.Structure != nil { + objectMap["structure"] = mstd.Structure + } + if mstd.Schema != nil { + objectMap["schema"] = mstd.Schema + } + if mstd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = mstd.LinkedServiceName + } + if mstd.Parameters != nil { + objectMap["parameters"] = mstd.Parameters + } + if mstd.Annotations != nil { + objectMap["annotations"] = mstd.Annotations + } + if mstd.Folder != nil { + objectMap["folder"] = mstd.Folder + } + if mstd.Type != "" { + objectMap["type"] = mstd.Type + } + for k, v := range mstd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return &mstd, true +} + +// AsOdbcTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for MySQLTableDataset. +func (mstd MySQLTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &mstd, true +} + +// UnmarshalJSON is the custom unmarshaler for MySQLTableDataset struct. +func (mstd *MySQLTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var mySQLTableDatasetTypeProperties MySQLTableDatasetTypeProperties + err = json.Unmarshal(*v, &mySQLTableDatasetTypeProperties) + if err != nil { + return err + } + mstd.MySQLTableDatasetTypeProperties = &mySQLTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if mstd.AdditionalProperties == nil { + mstd.AdditionalProperties = make(map[string]interface{}) + } + mstd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + mstd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + mstd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + mstd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + mstd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + mstd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + mstd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + mstd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + mstd.Type = typeVar + } + } + } + + return nil +} + +// MySQLTableDatasetTypeProperties mySql table dataset properties. +type MySQLTableDatasetTypeProperties struct { + // TableName - The MySQL table name. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// NetezzaLinkedService netezza linked service. +type NetezzaLinkedService struct { + // NetezzaLinkedServiceTypeProperties - Netezza linked service properties. + *NetezzaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for NetezzaLinkedService. +func (nls NetezzaLinkedService) MarshalJSON() ([]byte, error) { + nls.Type = TypeBasicLinkedServiceTypeNetezza + objectMap := make(map[string]interface{}) + if nls.NetezzaLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = nls.NetezzaLinkedServiceTypeProperties + } + if nls.ConnectVia != nil { + objectMap["connectVia"] = nls.ConnectVia + } + if nls.Description != nil { + objectMap["description"] = nls.Description + } + if nls.Parameters != nil { + objectMap["parameters"] = nls.Parameters + } + if nls.Annotations != nil { + objectMap["annotations"] = nls.Annotations + } + if nls.Type != "" { + objectMap["type"] = nls.Type + } + for k, v := range nls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return &nls, true +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. +func (nls NetezzaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &nls, true +} + +// UnmarshalJSON is the custom unmarshaler for NetezzaLinkedService struct. +func (nls *NetezzaLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var netezzaLinkedServiceTypeProperties NetezzaLinkedServiceTypeProperties + err = json.Unmarshal(*v, &netezzaLinkedServiceTypeProperties) + if err != nil { + return err + } + nls.NetezzaLinkedServiceTypeProperties = &netezzaLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if nls.AdditionalProperties == nil { + nls.AdditionalProperties = make(map[string]interface{}) + } + nls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + nls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + nls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + nls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + nls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + nls.Type = typeVar + } + } + } + + return nil +} + +// NetezzaLinkedServiceTypeProperties netezza linked service properties. +type NetezzaLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Pwd - The Azure key vault secret reference of password in connection string. + Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// NetezzaPartitionSettings the settings that will be leveraged for Netezza source partitioning. +type NetezzaPartitionSettings struct { + // PartitionColumnName - 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"` + // PartitionUpperBound - 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"` + // PartitionLowerBound - 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"` +} + +// NetezzaSource a copy activity Netezza source. +type NetezzaSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // PartitionOption - The partition mechanism that will be used for Netezza read in parallel. Possible values include: "None", "DataSlice", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Netezza source partitioning. + PartitionSettings *NetezzaPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for NetezzaSource. +func (ns NetezzaSource) MarshalJSON() ([]byte, error) { + ns.Type = TypeBasicCopySourceTypeNetezzaSource + objectMap := make(map[string]interface{}) + if ns.Query != nil { + objectMap["query"] = ns.Query + } + if ns.PartitionOption != nil { + objectMap["partitionOption"] = ns.PartitionOption + } + if ns.PartitionSettings != nil { + objectMap["partitionSettings"] = ns.PartitionSettings + } + if ns.QueryTimeout != nil { + objectMap["queryTimeout"] = ns.QueryTimeout + } + if ns.AdditionalColumns != nil { + objectMap["additionalColumns"] = ns.AdditionalColumns + } + if ns.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ns.SourceRetryCount + } + if ns.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ns.SourceRetryWait + } + if ns.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ns.MaxConcurrentConnections + } + if ns.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ns.DisableMetricsCollection + } + if ns.Type != "" { + objectMap["type"] = ns.Type + } + for k, v := range ns.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsNetezzaSource() (*NetezzaSource, bool) { + return &ns, true +} + +// AsZohoSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ns, true +} + +// AsBinarySource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for NetezzaSource. +func (ns NetezzaSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ns, true +} + +// UnmarshalJSON is the custom unmarshaler for NetezzaSource struct. +func (ns *NetezzaSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ns.Query = query + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + ns.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings NetezzaPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + ns.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ns.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ns.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ns.AdditionalProperties == nil { + ns.AdditionalProperties = make(map[string]interface{}) + } + ns.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ns.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ns.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ns.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ns.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ns.Type = typeVar + } + } + } + + return nil +} + +// NetezzaTableDataset netezza dataset. +type NetezzaTableDataset struct { + // NetezzaTableDatasetTypeProperties - Properties specific to this dataset type. + *NetezzaTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for NetezzaTableDataset. +func (ntd NetezzaTableDataset) MarshalJSON() ([]byte, error) { + ntd.Type = TypeBasicDatasetTypeNetezzaTable + objectMap := make(map[string]interface{}) + if ntd.NetezzaTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = ntd.NetezzaTableDatasetTypeProperties + } + if ntd.Description != nil { + objectMap["description"] = ntd.Description + } + if ntd.Structure != nil { + objectMap["structure"] = ntd.Structure + } + if ntd.Schema != nil { + objectMap["schema"] = ntd.Schema + } + if ntd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ntd.LinkedServiceName + } + if ntd.Parameters != nil { + objectMap["parameters"] = ntd.Parameters + } + if ntd.Annotations != nil { + objectMap["annotations"] = ntd.Annotations + } + if ntd.Folder != nil { + objectMap["folder"] = ntd.Folder + } + if ntd.Type != "" { + objectMap["type"] = ntd.Type + } + for k, v := range ntd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return &ntd, true +} + +// AsZohoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for NetezzaTableDataset. +func (ntd NetezzaTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &ntd, true +} + +// UnmarshalJSON is the custom unmarshaler for NetezzaTableDataset struct. +func (ntd *NetezzaTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var netezzaTableDatasetTypeProperties NetezzaTableDatasetTypeProperties + err = json.Unmarshal(*v, &netezzaTableDatasetTypeProperties) + if err != nil { + return err + } + ntd.NetezzaTableDatasetTypeProperties = &netezzaTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ntd.AdditionalProperties == nil { + ntd.AdditionalProperties = make(map[string]interface{}) + } + ntd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ntd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ntd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ntd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ntd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ntd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ntd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ntd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ntd.Type = typeVar + } + } + } + + return nil +} + +// NetezzaTableDatasetTypeProperties netezza dataset properties. +type NetezzaTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Netezza. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Netezza. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// NotebookParameter notebook parameter. +type NotebookParameter struct { + // Value - Notebook parameter value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` + // Type - Notebook parameter type. Possible values include: 'NotebookParameterTypeString', 'NotebookParameterTypeInt', 'NotebookParameterTypeFloat', 'NotebookParameterTypeBool' + Type NotebookParameterType `json:"type,omitempty"` +} + +// ODataLinkedService open Data Protocol (OData) linked service. +type ODataLinkedService struct { + // ODataLinkedServiceTypeProperties - OData linked service properties. + *ODataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ODataLinkedService. +func (odls ODataLinkedService) MarshalJSON() ([]byte, error) { + odls.Type = TypeBasicLinkedServiceTypeOData + objectMap := make(map[string]interface{}) + if odls.ODataLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = odls.ODataLinkedServiceTypeProperties + } + if odls.ConnectVia != nil { + objectMap["connectVia"] = odls.ConnectVia + } + if odls.Description != nil { + objectMap["description"] = odls.Description + } + if odls.Parameters != nil { + objectMap["parameters"] = odls.Parameters + } + if odls.Annotations != nil { + objectMap["annotations"] = odls.Annotations + } + if odls.Type != "" { + objectMap["type"] = odls.Type + } + for k, v := range odls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return &odls, true +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ODataLinkedService. +func (odls ODataLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &odls, true +} + +// UnmarshalJSON is the custom unmarshaler for ODataLinkedService struct. +func (odls *ODataLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var oDataLinkedServiceTypeProperties ODataLinkedServiceTypeProperties + err = json.Unmarshal(*v, &oDataLinkedServiceTypeProperties) + if err != nil { + return err + } + odls.ODataLinkedServiceTypeProperties = &oDataLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if odls.AdditionalProperties == nil { + odls.AdditionalProperties = make(map[string]interface{}) + } + odls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + odls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + odls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + odls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + odls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + odls.Type = typeVar + } + } + } + + return nil +} + +// ODataLinkedServiceTypeProperties oData linked service properties. +type ODataLinkedServiceTypeProperties struct { + // URL - The URL of the OData service endpoint. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // AuthenticationType - Type of authentication used to connect to the OData service. Possible values include: 'ODataAuthenticationTypeBasic', 'ODataAuthenticationTypeAnonymous', 'ODataAuthenticationTypeWindows', 'ODataAuthenticationTypeAadServicePrincipal', 'ODataAuthenticationTypeManagedServiceIdentity' + AuthenticationType ODataAuthenticationType `json:"authenticationType,omitempty"` + // UserName - User name of the OData service. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password of the OData service. + Password BasicSecretBase `json:"password,omitempty"` + // AuthHeaders - The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type). + AuthHeaders interface{} `json:"authHeaders,omitempty"` + // Tenant - 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"` + // ServicePrincipalID - Specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // AzureCloudType - 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"` + // AadResourceID - Specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). + AadResourceID interface{} `json:"aadResourceId,omitempty"` + // AadServicePrincipalCredentialType - Specify the credential type (key or cert) is used for service principal. Possible values include: 'ODataAadServicePrincipalCredentialTypeServicePrincipalKey', 'ODataAadServicePrincipalCredentialTypeServicePrincipalCert' + AadServicePrincipalCredentialType ODataAadServicePrincipalCredentialType `json:"aadServicePrincipalCredentialType,omitempty"` + // ServicePrincipalKey - Specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // ServicePrincipalEmbeddedCert - Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + ServicePrincipalEmbeddedCert BasicSecretBase `json:"servicePrincipalEmbeddedCert,omitempty"` + // ServicePrincipalEmbeddedCertPassword - 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 BasicSecretBase `json:"servicePrincipalEmbeddedCertPassword,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ODataLinkedServiceTypeProperties struct. +func (odlstp *ODataLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + odlstp.URL = URL + } + case "authenticationType": + if v != nil { + var authenticationType ODataAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + odlstp.AuthenticationType = authenticationType + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + odlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + odlstp.Password = password + } + case "authHeaders": + if v != nil { + var authHeaders interface{} + err = json.Unmarshal(*v, &authHeaders) + if err != nil { + return err + } + odlstp.AuthHeaders = authHeaders + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + odlstp.Tenant = tenant + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + odlstp.ServicePrincipalID = servicePrincipalID + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + odlstp.AzureCloudType = azureCloudType + } + case "aadResourceId": + if v != nil { + var aadResourceID interface{} + err = json.Unmarshal(*v, &aadResourceID) + if err != nil { + return err + } + odlstp.AadResourceID = aadResourceID + } + case "aadServicePrincipalCredentialType": + if v != nil { + var aadServicePrincipalCredentialType ODataAadServicePrincipalCredentialType + err = json.Unmarshal(*v, &aadServicePrincipalCredentialType) + if err != nil { + return err + } + odlstp.AadServicePrincipalCredentialType = aadServicePrincipalCredentialType + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + odlstp.ServicePrincipalKey = servicePrincipalKey + } + case "servicePrincipalEmbeddedCert": + if v != nil { + servicePrincipalEmbeddedCert, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + odlstp.ServicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert + } + case "servicePrincipalEmbeddedCertPassword": + if v != nil { + servicePrincipalEmbeddedCertPassword, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + odlstp.ServicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + odlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ODataResourceDataset the Open Data Protocol (OData) resource dataset. +type ODataResourceDataset struct { + // ODataResourceDatasetTypeProperties - OData dataset properties. + *ODataResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ODataResourceDataset. +func (odrd ODataResourceDataset) MarshalJSON() ([]byte, error) { + odrd.Type = TypeBasicDatasetTypeODataResource + objectMap := make(map[string]interface{}) + if odrd.ODataResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = odrd.ODataResourceDatasetTypeProperties + } + if odrd.Description != nil { + objectMap["description"] = odrd.Description + } + if odrd.Structure != nil { + objectMap["structure"] = odrd.Structure + } + if odrd.Schema != nil { + objectMap["schema"] = odrd.Schema + } + if odrd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = odrd.LinkedServiceName + } + if odrd.Parameters != nil { + objectMap["parameters"] = odrd.Parameters + } + if odrd.Annotations != nil { + objectMap["annotations"] = odrd.Annotations + } + if odrd.Folder != nil { + objectMap["folder"] = odrd.Folder + } + if odrd.Type != "" { + objectMap["type"] = odrd.Type + } + for k, v := range odrd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return &odrd, true +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ODataResourceDataset. +func (odrd ODataResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &odrd, true +} + +// UnmarshalJSON is the custom unmarshaler for ODataResourceDataset struct. +func (odrd *ODataResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var oDataResourceDatasetTypeProperties ODataResourceDatasetTypeProperties + err = json.Unmarshal(*v, &oDataResourceDatasetTypeProperties) + if err != nil { + return err + } + odrd.ODataResourceDatasetTypeProperties = &oDataResourceDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if odrd.AdditionalProperties == nil { + odrd.AdditionalProperties = make(map[string]interface{}) + } + odrd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + odrd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + odrd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + odrd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + odrd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + odrd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + odrd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + odrd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + odrd.Type = typeVar + } + } + } + + return nil +} + +// ODataResourceDatasetTypeProperties oData dataset properties. +type ODataResourceDatasetTypeProperties struct { + // Path - The OData resource path. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` +} + +// ODataSource a copy activity source for OData source. +type ODataSource struct { + // Query - OData query. For example, "$top=1". Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // HTTPRequestTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ODataSource. +func (ods ODataSource) MarshalJSON() ([]byte, error) { + ods.Type = TypeBasicCopySourceTypeODataSource + objectMap := make(map[string]interface{}) + if ods.Query != nil { + objectMap["query"] = ods.Query + } + if ods.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = ods.HTTPRequestTimeout + } + if ods.AdditionalColumns != nil { + objectMap["additionalColumns"] = ods.AdditionalColumns + } + if ods.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ods.SourceRetryCount + } + if ods.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ods.SourceRetryWait + } + if ods.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ods.MaxConcurrentConnections + } + if ods.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ods.DisableMetricsCollection + } + if ods.Type != "" { + objectMap["type"] = ods.Type + } + for k, v := range ods.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsODataSource() (*ODataSource, bool) { + return &ods, true +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ODataSource. +func (ods ODataSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ods, true +} + +// UnmarshalJSON is the custom unmarshaler for ODataSource struct. +func (ods *ODataSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ods.Query = query + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + ods.HTTPRequestTimeout = HTTPRequestTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ods.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ods.AdditionalProperties == nil { + ods.AdditionalProperties = make(map[string]interface{}) + } + ods.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ods.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ods.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ods.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ods.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ods.Type = typeVar + } + } + } + + return nil +} + +// OdbcLinkedService open Database Connectivity (ODBC) linked service. +type OdbcLinkedService struct { + // OdbcLinkedServiceTypeProperties - ODBC linked service properties. + *OdbcLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OdbcLinkedService. +func (ols OdbcLinkedService) MarshalJSON() ([]byte, error) { + ols.Type = TypeBasicLinkedServiceTypeOdbc + objectMap := make(map[string]interface{}) + if ols.OdbcLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ols.OdbcLinkedServiceTypeProperties + } + if ols.ConnectVia != nil { + objectMap["connectVia"] = ols.ConnectVia + } + if ols.Description != nil { + objectMap["description"] = ols.Description + } + if ols.Parameters != nil { + objectMap["parameters"] = ols.Parameters + } + if ols.Annotations != nil { + objectMap["annotations"] = ols.Annotations + } + if ols.Type != "" { + objectMap["type"] = ols.Type + } + for k, v := range ols.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return &ols, true +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for OdbcLinkedService. +func (ols OdbcLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ols, true +} + +// UnmarshalJSON is the custom unmarshaler for OdbcLinkedService struct. +func (ols *OdbcLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var odbcLinkedServiceTypeProperties OdbcLinkedServiceTypeProperties + err = json.Unmarshal(*v, &odbcLinkedServiceTypeProperties) + if err != nil { + return err + } + ols.OdbcLinkedServiceTypeProperties = &odbcLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ols.AdditionalProperties == nil { + ols.AdditionalProperties = make(map[string]interface{}) + } + ols.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ols.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ols.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ols.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ols.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ols.Type = typeVar + } + } + } + + return nil +} + +// OdbcLinkedServiceTypeProperties ODBC linked service properties. +type OdbcLinkedServiceTypeProperties struct { + // ConnectionString - The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. + ConnectionString interface{} `json:"connectionString,omitempty"` + // AuthenticationType - 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"` + // Credential - The access credential portion of the connection string specified in driver-specific property-value format. + Credential BasicSecretBase `json:"credential,omitempty"` + // UserName - User name for Basic authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for Basic authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for OdbcLinkedServiceTypeProperties struct. +func (olstp *OdbcLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + olstp.ConnectionString = connectionString + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + olstp.AuthenticationType = authenticationType + } + case "credential": + if v != nil { + credential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + olstp.Credential = credential + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + olstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + olstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + olstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// OdbcSink a copy activity ODBC sink. +type OdbcSink struct { + // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OdbcSink. +func (osVar OdbcSink) MarshalJSON() ([]byte, error) { + osVar.Type = TypeBasicCopySinkTypeOdbcSink + objectMap := make(map[string]interface{}) + if osVar.PreCopyScript != nil { + objectMap["preCopyScript"] = osVar.PreCopyScript + } + if osVar.WriteBatchSize != nil { + objectMap["writeBatchSize"] = osVar.WriteBatchSize + } + if osVar.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = osVar.WriteBatchTimeout + } + if osVar.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = osVar.SinkRetryCount + } + if osVar.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = osVar.SinkRetryWait + } + if osVar.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections + } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } + if osVar.Type != "" { + objectMap["type"] = osVar.Type + } + for k, v := range osVar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsOdbcSink() (*OdbcSink, bool) { + return &osVar, true +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for OdbcSink. +func (osVar OdbcSink) AsBasicCopySink() (BasicCopySink, bool) { + return &osVar, true +} + +// UnmarshalJSON is the custom unmarshaler for OdbcSink struct. +func (osVar *OdbcSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + osVar.PreCopyScript = preCopyScript + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if osVar.AdditionalProperties == nil { + osVar.AdditionalProperties = make(map[string]interface{}) + } + osVar.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + osVar.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + osVar.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + osVar.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + osVar.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + osVar.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + osVar.Type = typeVar + } + } + } + + return nil +} + +// OdbcSource a copy activity source for ODBC databases. +type OdbcSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OdbcSource. +func (osVar OdbcSource) MarshalJSON() ([]byte, error) { + osVar.Type = TypeBasicCopySourceTypeOdbcSource + objectMap := make(map[string]interface{}) + if osVar.Query != nil { + objectMap["query"] = osVar.Query + } + if osVar.QueryTimeout != nil { + objectMap["queryTimeout"] = osVar.QueryTimeout + } + if osVar.AdditionalColumns != nil { + objectMap["additionalColumns"] = osVar.AdditionalColumns + } + if osVar.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = osVar.SourceRetryCount + } + if osVar.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = osVar.SourceRetryWait + } + if osVar.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections + } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } + if osVar.Type != "" { + objectMap["type"] = osVar.Type + } + for k, v := range osVar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsOdbcSource() (*OdbcSource, bool) { + return &osVar, true +} + +// AsDb2Source is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &osVar, true +} + +// AsBinarySource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for OdbcSource. +func (osVar OdbcSource) AsBasicCopySource() (BasicCopySource, bool) { + return &osVar, true +} + +// UnmarshalJSON is the custom unmarshaler for OdbcSource struct. +func (osVar *OdbcSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + osVar.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + osVar.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + osVar.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if osVar.AdditionalProperties == nil { + osVar.AdditionalProperties = make(map[string]interface{}) + } + osVar.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + osVar.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + osVar.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + osVar.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + osVar.Type = typeVar + } + } + } + + return nil +} + +// OdbcTableDataset the ODBC table dataset. +type OdbcTableDataset struct { + // OdbcTableDatasetTypeProperties - ODBC table dataset properties. + *OdbcTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OdbcTableDataset. +func (otd OdbcTableDataset) MarshalJSON() ([]byte, error) { + otd.Type = TypeBasicDatasetTypeOdbcTable + objectMap := make(map[string]interface{}) + if otd.OdbcTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = otd.OdbcTableDatasetTypeProperties + } + if otd.Description != nil { + objectMap["description"] = otd.Description + } + if otd.Structure != nil { + objectMap["structure"] = otd.Structure + } + if otd.Schema != nil { + objectMap["schema"] = otd.Schema + } + if otd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = otd.LinkedServiceName + } + if otd.Parameters != nil { + objectMap["parameters"] = otd.Parameters + } + if otd.Annotations != nil { + objectMap["annotations"] = otd.Annotations + } + if otd.Folder != nil { + objectMap["folder"] = otd.Folder + } + if otd.Type != "" { + objectMap["type"] = otd.Type + } + for k, v := range otd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return &otd, true +} + +// AsInformixTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for OdbcTableDataset. +func (otd OdbcTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &otd, true +} + +// UnmarshalJSON is the custom unmarshaler for OdbcTableDataset struct. +func (otd *OdbcTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var odbcTableDatasetTypeProperties OdbcTableDatasetTypeProperties + err = json.Unmarshal(*v, &odbcTableDatasetTypeProperties) + if err != nil { + return err + } + otd.OdbcTableDatasetTypeProperties = &odbcTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if otd.AdditionalProperties == nil { + otd.AdditionalProperties = make(map[string]interface{}) + } + otd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + otd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + otd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + otd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + otd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + otd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + otd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + otd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + otd.Type = typeVar + } + } + } + + return nil +} + +// OdbcTableDatasetTypeProperties ODBC table dataset properties. +type OdbcTableDatasetTypeProperties struct { + // TableName - The ODBC table name. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// Office365Dataset the Office365 account. +type Office365Dataset struct { + // Office365DatasetTypeProperties - Office365 dataset properties. + *Office365DatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Office365Dataset. +func (o3d Office365Dataset) MarshalJSON() ([]byte, error) { + o3d.Type = TypeBasicDatasetTypeOffice365Table + objectMap := make(map[string]interface{}) + if o3d.Office365DatasetTypeProperties != nil { + objectMap["typeProperties"] = o3d.Office365DatasetTypeProperties + } + if o3d.Description != nil { + objectMap["description"] = o3d.Description + } + if o3d.Structure != nil { + objectMap["structure"] = o3d.Structure + } + if o3d.Schema != nil { + objectMap["schema"] = o3d.Schema + } + if o3d.LinkedServiceName != nil { + objectMap["linkedServiceName"] = o3d.LinkedServiceName + } + if o3d.Parameters != nil { + objectMap["parameters"] = o3d.Parameters + } + if o3d.Annotations != nil { + objectMap["annotations"] = o3d.Annotations + } + if o3d.Folder != nil { + objectMap["folder"] = o3d.Folder + } + if o3d.Type != "" { + objectMap["type"] = o3d.Type + } + for k, v := range o3d.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return &o3d, true +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for Office365Dataset. +func (o3d Office365Dataset) AsBasicDataset() (BasicDataset, bool) { + return &o3d, true +} + +// UnmarshalJSON is the custom unmarshaler for Office365Dataset struct. +func (o3d *Office365Dataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var office365DatasetTypeProperties Office365DatasetTypeProperties + err = json.Unmarshal(*v, &office365DatasetTypeProperties) + if err != nil { + return err + } + o3d.Office365DatasetTypeProperties = &office365DatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if o3d.AdditionalProperties == nil { + o3d.AdditionalProperties = make(map[string]interface{}) + } + o3d.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + o3d.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + o3d.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + o3d.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + o3d.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + o3d.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + o3d.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + o3d.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + o3d.Type = typeVar + } + } + } + + return nil +} + +// Office365DatasetTypeProperties office365 dataset properties. +type Office365DatasetTypeProperties struct { + // TableName - Name of the dataset to extract from Office 365. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` + // Predicate - 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"` +} + +// Office365LinkedService office365 linked service. +type Office365LinkedService struct { + // Office365LinkedServiceTypeProperties - Office365 linked service properties. + *Office365LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Office365LinkedService. +func (o3ls Office365LinkedService) MarshalJSON() ([]byte, error) { + o3ls.Type = TypeBasicLinkedServiceTypeOffice365 + objectMap := make(map[string]interface{}) + if o3ls.Office365LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = o3ls.Office365LinkedServiceTypeProperties + } + if o3ls.ConnectVia != nil { + objectMap["connectVia"] = o3ls.ConnectVia + } + if o3ls.Description != nil { + objectMap["description"] = o3ls.Description + } + if o3ls.Parameters != nil { + objectMap["parameters"] = o3ls.Parameters + } + if o3ls.Annotations != nil { + objectMap["annotations"] = o3ls.Annotations + } + if o3ls.Type != "" { + objectMap["type"] = o3ls.Type + } + for k, v := range o3ls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return &o3ls, true +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for Office365LinkedService. +func (o3ls Office365LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &o3ls, true +} + +// UnmarshalJSON is the custom unmarshaler for Office365LinkedService struct. +func (o3ls *Office365LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var office365LinkedServiceTypeProperties Office365LinkedServiceTypeProperties + err = json.Unmarshal(*v, &office365LinkedServiceTypeProperties) + if err != nil { + return err + } + o3ls.Office365LinkedServiceTypeProperties = &office365LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if o3ls.AdditionalProperties == nil { + o3ls.AdditionalProperties = make(map[string]interface{}) + } + o3ls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + o3ls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + o3ls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + o3ls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + o3ls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + o3ls.Type = typeVar + } + } + } + + return nil +} + +// Office365LinkedServiceTypeProperties office365 linked service properties. +type Office365LinkedServiceTypeProperties struct { + // Office365TenantID - Azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with resultType string). + Office365TenantID interface{} `json:"office365TenantId,omitempty"` + // ServicePrincipalTenantID - Specify the tenant information under which your Azure AD web application resides. Type: string (or Expression with resultType string). + ServicePrincipalTenantID interface{} `json:"servicePrincipalTenantId,omitempty"` + // ServicePrincipalID - Specify the application's client ID. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - Specify the application's key. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for Office365LinkedServiceTypeProperties struct. +func (o3lstp *Office365LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "office365TenantId": + if v != nil { + var office365TenantID interface{} + err = json.Unmarshal(*v, &office365TenantID) + if err != nil { + return err + } + o3lstp.Office365TenantID = office365TenantID + } + case "servicePrincipalTenantId": + if v != nil { + var servicePrincipalTenantID interface{} + err = json.Unmarshal(*v, &servicePrincipalTenantID) + if err != nil { + return err + } + o3lstp.ServicePrincipalTenantID = servicePrincipalTenantID + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + o3lstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + o3lstp.ServicePrincipalKey = servicePrincipalKey + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + o3lstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// Office365Source a copy activity source for an Office 365 service. +type Office365Source struct { + // AllowedGroups - The groups containing all the users. Type: array of strings (or Expression with resultType array of strings). + AllowedGroups interface{} `json:"allowedGroups,omitempty"` + // UserScopeFilterURI - The user scope uri. Type: string (or Expression with resultType string). + UserScopeFilterURI interface{} `json:"userScopeFilterUri,omitempty"` + // DateFilterColumn - The Column to apply the and . Type: string (or Expression with resultType string). + DateFilterColumn interface{} `json:"dateFilterColumn,omitempty"` + // StartTime - Start time of the requested range for this dataset. Type: string (or Expression with resultType string). + StartTime interface{} `json:"startTime,omitempty"` + // EndTime - End time of the requested range for this dataset. Type: string (or Expression with resultType string). + EndTime interface{} `json:"endTime,omitempty"` + // OutputColumns - The columns to be read out from the Office 365 table. Type: array of objects (or Expression with resultType array of objects). itemType: OutputColumn. Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ] + OutputColumns interface{} `json:"outputColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for Office365Source. +func (o3s Office365Source) MarshalJSON() ([]byte, error) { + o3s.Type = TypeBasicCopySourceTypeOffice365Source + objectMap := make(map[string]interface{}) + if o3s.AllowedGroups != nil { + objectMap["allowedGroups"] = o3s.AllowedGroups + } + if o3s.UserScopeFilterURI != nil { + objectMap["userScopeFilterUri"] = o3s.UserScopeFilterURI + } + if o3s.DateFilterColumn != nil { + objectMap["dateFilterColumn"] = o3s.DateFilterColumn + } + if o3s.StartTime != nil { + objectMap["startTime"] = o3s.StartTime + } + if o3s.EndTime != nil { + objectMap["endTime"] = o3s.EndTime + } + if o3s.OutputColumns != nil { + objectMap["outputColumns"] = o3s.OutputColumns + } + if o3s.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = o3s.SourceRetryCount + } + if o3s.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = o3s.SourceRetryWait + } + if o3s.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = o3s.MaxConcurrentConnections + } + if o3s.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = o3s.DisableMetricsCollection + } + if o3s.Type != "" { + objectMap["type"] = o3s.Type + } + for k, v := range o3s.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsOffice365Source() (*Office365Source, bool) { + return &o3s, true +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for Office365Source. +func (o3s Office365Source) AsBasicCopySource() (BasicCopySource, bool) { + return &o3s, true +} + +// UnmarshalJSON is the custom unmarshaler for Office365Source struct. +func (o3s *Office365Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "allowedGroups": + if v != nil { + var allowedGroups interface{} + err = json.Unmarshal(*v, &allowedGroups) + if err != nil { + return err + } + o3s.AllowedGroups = allowedGroups + } + case "userScopeFilterUri": + if v != nil { + var userScopeFilterURI interface{} + err = json.Unmarshal(*v, &userScopeFilterURI) + if err != nil { + return err + } + o3s.UserScopeFilterURI = userScopeFilterURI + } + case "dateFilterColumn": + if v != nil { + var dateFilterColumn interface{} + err = json.Unmarshal(*v, &dateFilterColumn) + if err != nil { + return err + } + o3s.DateFilterColumn = dateFilterColumn + } + case "startTime": + if v != nil { + var startTime interface{} + err = json.Unmarshal(*v, &startTime) + if err != nil { + return err + } + o3s.StartTime = startTime + } + case "endTime": + if v != nil { + var endTime interface{} + err = json.Unmarshal(*v, &endTime) + if err != nil { + return err + } + o3s.EndTime = endTime + } + case "outputColumns": + if v != nil { + var outputColumns interface{} + err = json.Unmarshal(*v, &outputColumns) + if err != nil { + return err + } + o3s.OutputColumns = outputColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if o3s.AdditionalProperties == nil { + o3s.AdditionalProperties = make(map[string]interface{}) + } + o3s.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + o3s.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + o3s.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + o3s.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + o3s.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + o3s.Type = typeVar + } + } + } + + return nil +} + +// Operation azure Data Factory API operation definition. +type Operation struct { + // Name - Operation name: {provider}/{resource}/{operation} + Name *string `json:"name,omitempty"` + // Origin - The intended executor of the operation. + Origin *string `json:"origin,omitempty"` + // Display - Metadata associated with the operation. + Display *OperationDisplay `json:"display,omitempty"` + // OperationProperties - Additional details about the operation. + *OperationProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if o.Name != nil { + objectMap["name"] = o.Name + } + if o.Origin != nil { + objectMap["origin"] = o.Origin + } + if o.Display != nil { + objectMap["display"] = o.Display + } + if o.OperationProperties != nil { + objectMap["properties"] = o.OperationProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Operation struct. +func (o *Operation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + o.Name = &name + } + case "origin": + if v != nil { + var origin string + err = json.Unmarshal(*v, &origin) + if err != nil { + return err + } + o.Origin = &origin + } + case "display": + if v != nil { + var display OperationDisplay + err = json.Unmarshal(*v, &display) + if err != nil { + return err + } + o.Display = &display + } + case "properties": + if v != nil { + var operationProperties OperationProperties + err = json.Unmarshal(*v, &operationProperties) + if err != nil { + return err + } + o.OperationProperties = &operationProperties + } + } + } + + return nil +} + +// OperationDisplay metadata associated with the operation. +type OperationDisplay struct { + // Description - The description of the operation. + Description *string `json:"description,omitempty"` + // Provider - The name of the provider. + Provider *string `json:"provider,omitempty"` + // Resource - The name of the resource type on which the operation is performed. + Resource *string `json:"resource,omitempty"` + // Operation - The type of operation: get, read, delete, etc. + Operation *string `json:"operation,omitempty"` +} + +// OperationListResponse a list of operations that can be performed by the Data Factory service. +type OperationListResponse struct { + autorest.Response `json:"-"` + // Value - List of Data Factory operations supported by the Data Factory resource provider. + Value *[]Operation `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// OperationListResponseIterator provides access to a complete listing of Operation values. +type OperationListResponseIterator struct { + i int + page OperationListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *OperationListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *OperationListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter OperationListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter OperationListResponseIterator) Response() OperationListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter OperationListResponseIterator) Value() Operation { + if !iter.page.NotDone() { + return Operation{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the OperationListResponseIterator type. +func NewOperationListResponseIterator(page OperationListResponsePage) OperationListResponseIterator { + return OperationListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (olr OperationListResponse) IsEmpty() bool { + return olr.Value == nil || len(*olr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (olr OperationListResponse) hasNextLink() bool { + return olr.NextLink != nil && len(*olr.NextLink) != 0 +} + +// operationListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (olr OperationListResponse) operationListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !olr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(olr.NextLink))) +} + +// OperationListResponsePage contains a page of Operation values. +type OperationListResponsePage struct { + fn func(context.Context, OperationListResponse) (OperationListResponse, error) + olr OperationListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *OperationListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.olr) + if err != nil { + return err + } + page.olr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *OperationListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page OperationListResponsePage) NotDone() bool { + return !page.olr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page OperationListResponsePage) Response() OperationListResponse { + return page.olr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page OperationListResponsePage) Values() []Operation { + if page.olr.IsEmpty() { + return nil + } + return *page.olr.Value +} + +// Creates a new instance of the OperationListResponsePage type. +func NewOperationListResponsePage(cur OperationListResponse, getNextPage func(context.Context, OperationListResponse) (OperationListResponse, error)) OperationListResponsePage { + return OperationListResponsePage{ + fn: getNextPage, + olr: cur, + } +} + +// OperationLogSpecification details about an operation related to logs. +type OperationLogSpecification struct { + // Name - The name of the log category. + Name *string `json:"name,omitempty"` + // DisplayName - Localized display name. + DisplayName *string `json:"displayName,omitempty"` + // BlobDuration - Blobs created in the customer storage account, per hour. + BlobDuration *string `json:"blobDuration,omitempty"` +} + +// OperationMetricAvailability defines how often data for a metric becomes available. +type OperationMetricAvailability struct { + // TimeGrain - The granularity for the metric. + TimeGrain *string `json:"timeGrain,omitempty"` + // BlobDuration - Blob created in the customer storage account, per hour. + BlobDuration *string `json:"blobDuration,omitempty"` +} + +// OperationMetricDimension defines the metric dimension. +type OperationMetricDimension struct { + // Name - The name of the dimension for the metric. + Name *string `json:"name,omitempty"` + // DisplayName - The display name of the metric dimension. + DisplayName *string `json:"displayName,omitempty"` + // ToBeExportedForShoebox - Whether the dimension should be exported to Azure Monitor. + ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` +} + +// OperationMetricSpecification details about an operation related to metrics. +type OperationMetricSpecification struct { + // Name - The name of the metric. + Name *string `json:"name,omitempty"` + // DisplayName - Localized display name of the metric. + DisplayName *string `json:"displayName,omitempty"` + // DisplayDescription - The description of the metric. + DisplayDescription *string `json:"displayDescription,omitempty"` + // Unit - The unit that the metric is measured in. + Unit *string `json:"unit,omitempty"` + // AggregationType - The type of metric aggregation. + AggregationType *string `json:"aggregationType,omitempty"` + // EnableRegionalMdmAccount - Whether or not the service is using regional MDM accounts. + EnableRegionalMdmAccount *string `json:"enableRegionalMdmAccount,omitempty"` + // SourceMdmAccount - The name of the MDM account. + SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` + // SourceMdmNamespace - The name of the MDM namespace. + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + // Availabilities - Defines how often data for metrics becomes available. + Availabilities *[]OperationMetricAvailability `json:"availabilities,omitempty"` + // Dimensions - Defines the metric dimension. + Dimensions *[]OperationMetricDimension `json:"dimensions,omitempty"` +} + +// OperationProperties additional details about an operation. +type OperationProperties struct { + // ServiceSpecification - Details about a service operation. + ServiceSpecification *OperationServiceSpecification `json:"serviceSpecification,omitempty"` +} + +// OperationServiceSpecification details about a service operation. +type OperationServiceSpecification struct { + // LogSpecifications - Details about operations related to logs. + LogSpecifications *[]OperationLogSpecification `json:"logSpecifications,omitempty"` + // MetricSpecifications - Details about operations related to metrics. + MetricSpecifications *[]OperationMetricSpecification `json:"metricSpecifications,omitempty"` +} + +// OracleCloudStorageLinkedService linked service for Oracle Cloud Storage. +type OracleCloudStorageLinkedService struct { + // OracleCloudStorageLinkedServiceTypeProperties - Oracle Cloud Storage linked service properties. + *OracleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { + ocsls.Type = TypeBasicLinkedServiceTypeOracleCloudStorage + objectMap := make(map[string]interface{}) + if ocsls.OracleCloudStorageLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ocsls.OracleCloudStorageLinkedServiceTypeProperties + } + if ocsls.ConnectVia != nil { + objectMap["connectVia"] = ocsls.ConnectVia + } + if ocsls.Description != nil { + objectMap["description"] = ocsls.Description + } + if ocsls.Parameters != nil { + objectMap["parameters"] = ocsls.Parameters + } + if ocsls.Annotations != nil { + objectMap["annotations"] = ocsls.Annotations + } + if ocsls.Type != "" { + objectMap["type"] = ocsls.Type + } + for k, v := range ocsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return &ocsls, true +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. +func (ocsls OracleCloudStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ocsls, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleCloudStorageLinkedService struct. +func (ocsls *OracleCloudStorageLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var oracleCloudStorageLinkedServiceTypeProperties OracleCloudStorageLinkedServiceTypeProperties + err = json.Unmarshal(*v, &oracleCloudStorageLinkedServiceTypeProperties) + if err != nil { + return err + } + ocsls.OracleCloudStorageLinkedServiceTypeProperties = &oracleCloudStorageLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ocsls.AdditionalProperties == nil { + ocsls.AdditionalProperties = make(map[string]interface{}) + } + ocsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ocsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ocsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ocsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ocsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ocsls.Type = typeVar + } + } + } + + return nil +} + +// OracleCloudStorageLinkedServiceTypeProperties oracle Cloud Storage linked service properties. +type OracleCloudStorageLinkedServiceTypeProperties struct { + // AccessKeyID - 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"` + // SecretAccessKey - The secret access key of the Oracle Cloud Storage Identity and Access Management (IAM) user. + SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` + // ServiceURL - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for OracleCloudStorageLinkedServiceTypeProperties struct. +func (ocslstp *OracleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "accessKeyId": + if v != nil { + var accessKeyID interface{} + err = json.Unmarshal(*v, &accessKeyID) + if err != nil { + return err + } + ocslstp.AccessKeyID = accessKeyID + } + case "secretAccessKey": + if v != nil { + secretAccessKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + ocslstp.SecretAccessKey = secretAccessKey + } + case "serviceUrl": + if v != nil { + var serviceURL interface{} + err = json.Unmarshal(*v, &serviceURL) + if err != nil { + return err + } + ocslstp.ServiceURL = serviceURL + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + ocslstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// OracleCloudStorageLocation the location of Oracle Cloud Storage dataset. +type OracleCloudStorageLocation struct { + // BucketName - Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression with resultType string) + BucketName interface{} `json:"bucketName,omitempty"` + // Version - Specify the version of Oracle Cloud Storage. Type: string (or Expression with resultType string). + Version interface{} `json:"version,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) MarshalJSON() ([]byte, error) { + ocsl.Type = TypeBasicDatasetLocationTypeOracleCloudStorageLocation + objectMap := make(map[string]interface{}) + if ocsl.BucketName != nil { + objectMap["bucketName"] = ocsl.BucketName + } + if ocsl.Version != nil { + objectMap["version"] = ocsl.Version + } + if ocsl.FolderPath != nil { + objectMap["folderPath"] = ocsl.FolderPath + } + if ocsl.FileName != nil { + objectMap["fileName"] = ocsl.FileName + } + if ocsl.Type != "" { + objectMap["type"] = ocsl.Type + } + for k, v := range ocsl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsSftpLocation() (*SftpLocation, bool) { + return nil, false +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return &ocsl, true +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. +func (ocsl OracleCloudStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &ocsl, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleCloudStorageLocation struct. +func (ocsl *OracleCloudStorageLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "bucketName": + if v != nil { + var bucketName interface{} + err = json.Unmarshal(*v, &bucketName) + if err != nil { + return err + } + ocsl.BucketName = bucketName + } + case "version": + if v != nil { + var version interface{} + err = json.Unmarshal(*v, &version) + if err != nil { + return err + } + ocsl.Version = version + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ocsl.AdditionalProperties == nil { + ocsl.AdditionalProperties = make(map[string]interface{}) + } + ocsl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + ocsl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + ocsl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ocsl.Type = typeVar + } + } + } + + return nil +} + +// OracleCloudStorageReadSettings oracle Cloud Storage read settings. +type OracleCloudStorageReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Oracle Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // Prefix - The prefix filter for the Oracle Cloud Storage object name. Type: string (or Expression with resultType string). + Prefix interface{} `json:"prefix,omitempty"` + // FileListPath - 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"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { + ocsrs.Type = TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings + objectMap := make(map[string]interface{}) + if ocsrs.Recursive != nil { + objectMap["recursive"] = ocsrs.Recursive + } + if ocsrs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = ocsrs.WildcardFolderPath + } + if ocsrs.WildcardFileName != nil { + objectMap["wildcardFileName"] = ocsrs.WildcardFileName + } + if ocsrs.Prefix != nil { + objectMap["prefix"] = ocsrs.Prefix + } + if ocsrs.FileListPath != nil { + objectMap["fileListPath"] = ocsrs.FileListPath + } + if ocsrs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = ocsrs.EnablePartitionDiscovery + } + if ocsrs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = ocsrs.PartitionRootPath + } + if ocsrs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = ocsrs.DeleteFilesAfterCompletion + } + if ocsrs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = ocsrs.ModifiedDatetimeStart + } + if ocsrs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = ocsrs.ModifiedDatetimeEnd + } + if ocsrs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ocsrs.MaxConcurrentConnections + } + if ocsrs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ocsrs.DisableMetricsCollection + } + if ocsrs.Type != "" { + objectMap["type"] = ocsrs.Type + } + for k, v := range ocsrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return &ocsrs, true +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. +func (ocsrs OracleCloudStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &ocsrs, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleCloudStorageReadSettings struct. +func (ocsrs *OracleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + ocsrs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + ocsrs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + ocsrs.WildcardFileName = wildcardFileName + } + case "prefix": + if v != nil { + var prefix interface{} + err = json.Unmarshal(*v, &prefix) + if err != nil { + return err + } + ocsrs.Prefix = prefix + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + ocsrs.FileListPath = fileListPath + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + ocsrs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + ocsrs.PartitionRootPath = partitionRootPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + ocsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + ocsrs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + ocsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ocsrs.AdditionalProperties == nil { + ocsrs.AdditionalProperties = make(map[string]interface{}) + } + ocsrs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ocsrs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ocsrs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ocsrs.Type = typeVar + } + } + } + + return nil +} + +// OracleLinkedService oracle database. +type OracleLinkedService struct { + // OracleLinkedServiceTypeProperties - Oracle database linked service properties. + *OracleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleLinkedService. +func (ols OracleLinkedService) MarshalJSON() ([]byte, error) { + ols.Type = TypeBasicLinkedServiceTypeOracle + objectMap := make(map[string]interface{}) + if ols.OracleLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ols.OracleLinkedServiceTypeProperties + } + if ols.ConnectVia != nil { + objectMap["connectVia"] = ols.ConnectVia + } + if ols.Description != nil { + objectMap["description"] = ols.Description + } + if ols.Parameters != nil { + objectMap["parameters"] = ols.Parameters + } + if ols.Annotations != nil { + objectMap["annotations"] = ols.Annotations + } + if ols.Type != "" { + objectMap["type"] = ols.Type + } + for k, v := range ols.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return &ols, true +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for OracleLinkedService. +func (ols OracleLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ols, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleLinkedService struct. +func (ols *OracleLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var oracleLinkedServiceTypeProperties OracleLinkedServiceTypeProperties + err = json.Unmarshal(*v, &oracleLinkedServiceTypeProperties) + if err != nil { + return err + } + ols.OracleLinkedServiceTypeProperties = &oracleLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ols.AdditionalProperties == nil { + ols.AdditionalProperties = make(map[string]interface{}) + } + ols.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ols.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ols.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ols.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ols.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ols.Type = typeVar + } + } + } + + return nil +} + +// OracleLinkedServiceTypeProperties oracle database linked service properties. +type OracleLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// OraclePartitionSettings the settings that will be leveraged for Oracle source partitioning. +type OraclePartitionSettings struct { + // PartitionNames - Names of the physical partitions of Oracle table. + PartitionNames interface{} `json:"partitionNames,omitempty"` + // PartitionColumnName - 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"` + // PartitionUpperBound - 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"` + // PartitionLowerBound - 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"` +} + +// OracleServiceCloudLinkedService oracle Service Cloud linked service. +type OracleServiceCloudLinkedService struct { + // OracleServiceCloudLinkedServiceTypeProperties - Oracle Service Cloud linked service properties. + *OracleServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) MarshalJSON() ([]byte, error) { + oscls.Type = TypeBasicLinkedServiceTypeOracleServiceCloud + objectMap := make(map[string]interface{}) + if oscls.OracleServiceCloudLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = oscls.OracleServiceCloudLinkedServiceTypeProperties + } + if oscls.ConnectVia != nil { + objectMap["connectVia"] = oscls.ConnectVia + } + if oscls.Description != nil { + objectMap["description"] = oscls.Description + } + if oscls.Parameters != nil { + objectMap["parameters"] = oscls.Parameters + } + if oscls.Annotations != nil { + objectMap["annotations"] = oscls.Annotations + } + if oscls.Type != "" { + objectMap["type"] = oscls.Type + } + for k, v := range oscls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return &oscls, true +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. +func (oscls OracleServiceCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &oscls, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleServiceCloudLinkedService struct. +func (oscls *OracleServiceCloudLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var oracleServiceCloudLinkedServiceTypeProperties OracleServiceCloudLinkedServiceTypeProperties + err = json.Unmarshal(*v, &oracleServiceCloudLinkedServiceTypeProperties) + if err != nil { + return err + } + oscls.OracleServiceCloudLinkedServiceTypeProperties = &oracleServiceCloudLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if oscls.AdditionalProperties == nil { + oscls.AdditionalProperties = make(map[string]interface{}) + } + oscls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + oscls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + oscls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + oscls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + oscls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + oscls.Type = typeVar + } + } + } + + return nil +} + +// OracleServiceCloudLinkedServiceTypeProperties oracle Service Cloud linked service properties. +type OracleServiceCloudLinkedServiceTypeProperties struct { + // Host - The URL of the Oracle Service Cloud instance. + Host interface{} `json:"host,omitempty"` + // Username - The user name that you use to access Oracle Service Cloud server. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name that you provided in the username key. + Password BasicSecretBase `json:"password,omitempty"` + // UseEncryptedEndpoints - 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"` + // UseHostVerification - 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"` + // UsePeerVerification - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for OracleServiceCloudLinkedServiceTypeProperties struct. +func (osclstp *OracleServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + osclstp.Host = host + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + osclstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + osclstp.Password = password + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + osclstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + osclstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + osclstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + osclstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// OracleServiceCloudObjectDataset oracle Service Cloud dataset. +type OracleServiceCloudObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { + oscod.Type = TypeBasicDatasetTypeOracleServiceCloudObject + objectMap := make(map[string]interface{}) + if oscod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = oscod.GenericDatasetTypeProperties + } + if oscod.Description != nil { + objectMap["description"] = oscod.Description + } + if oscod.Structure != nil { + objectMap["structure"] = oscod.Structure + } + if oscod.Schema != nil { + objectMap["schema"] = oscod.Schema + } + if oscod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = oscod.LinkedServiceName + } + if oscod.Parameters != nil { + objectMap["parameters"] = oscod.Parameters + } + if oscod.Annotations != nil { + objectMap["annotations"] = oscod.Annotations + } + if oscod.Folder != nil { + objectMap["folder"] = oscod.Folder + } + if oscod.Type != "" { + objectMap["type"] = oscod.Type + } + for k, v := range oscod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return &oscod, true +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. +func (oscod OracleServiceCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &oscod, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleServiceCloudObjectDataset struct. +func (oscod *OracleServiceCloudObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + oscod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if oscod.AdditionalProperties == nil { + oscod.AdditionalProperties = make(map[string]interface{}) + } + oscod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + oscod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + oscod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + oscod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + oscod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + oscod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + oscod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + oscod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + oscod.Type = typeVar + } + } + } + + return nil +} + +// OracleServiceCloudSource a copy activity Oracle Service Cloud source. +type OracleServiceCloudSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) MarshalJSON() ([]byte, error) { + oscs.Type = TypeBasicCopySourceTypeOracleServiceCloudSource + objectMap := make(map[string]interface{}) + if oscs.Query != nil { + objectMap["query"] = oscs.Query + } + if oscs.QueryTimeout != nil { + objectMap["queryTimeout"] = oscs.QueryTimeout + } + if oscs.AdditionalColumns != nil { + objectMap["additionalColumns"] = oscs.AdditionalColumns + } + if oscs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = oscs.SourceRetryCount + } + if oscs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = oscs.SourceRetryWait + } + if oscs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = oscs.MaxConcurrentConnections + } + if oscs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = oscs.DisableMetricsCollection + } + if oscs.Type != "" { + objectMap["type"] = oscs.Type + } + for k, v := range oscs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return &oscs, true +} + +// AsDynamicsAXSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &oscs, true +} + +// AsBinarySource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for OracleServiceCloudSource. +func (oscs OracleServiceCloudSource) AsBasicCopySource() (BasicCopySource, bool) { + return &oscs, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleServiceCloudSource struct. +func (oscs *OracleServiceCloudSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + oscs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + oscs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + oscs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if oscs.AdditionalProperties == nil { + oscs.AdditionalProperties = make(map[string]interface{}) + } + oscs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + oscs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + oscs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + oscs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + oscs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + oscs.Type = typeVar + } + } + } + + return nil +} + +// OracleSink a copy activity Oracle sink. +type OracleSink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleSink. +func (osVar OracleSink) MarshalJSON() ([]byte, error) { + osVar.Type = TypeBasicCopySinkTypeOracleSink + objectMap := make(map[string]interface{}) + if osVar.PreCopyScript != nil { + objectMap["preCopyScript"] = osVar.PreCopyScript + } + if osVar.WriteBatchSize != nil { + objectMap["writeBatchSize"] = osVar.WriteBatchSize + } + if osVar.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = osVar.WriteBatchTimeout + } + if osVar.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = osVar.SinkRetryCount + } + if osVar.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = osVar.SinkRetryWait + } + if osVar.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections + } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } + if osVar.Type != "" { + objectMap["type"] = osVar.Type + } + for k, v := range osVar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsOracleSink() (*OracleSink, bool) { + return &osVar, true +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for OracleSink. +func (osVar OracleSink) AsBasicCopySink() (BasicCopySink, bool) { + return &osVar, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleSink struct. +func (osVar *OracleSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + osVar.PreCopyScript = preCopyScript + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if osVar.AdditionalProperties == nil { + osVar.AdditionalProperties = make(map[string]interface{}) + } + osVar.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + osVar.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + osVar.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + osVar.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + osVar.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + osVar.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + osVar.Type = typeVar + } + } + } + + return nil +} + +// OracleSource a copy activity Oracle source. +type OracleSource struct { + // OracleReaderQuery - Oracle reader query. Type: string (or Expression with resultType string). + OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` + // QueryTimeout - 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"` + // PartitionOption - The partition mechanism that will be used for Oracle read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Oracle source partitioning. + PartitionSettings *OraclePartitionSettings `json:"partitionSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleSource. +func (osVar OracleSource) MarshalJSON() ([]byte, error) { + osVar.Type = TypeBasicCopySourceTypeOracleSource + objectMap := make(map[string]interface{}) + if osVar.OracleReaderQuery != nil { + objectMap["oracleReaderQuery"] = osVar.OracleReaderQuery + } + if osVar.QueryTimeout != nil { + objectMap["queryTimeout"] = osVar.QueryTimeout + } + if osVar.PartitionOption != nil { + objectMap["partitionOption"] = osVar.PartitionOption + } + if osVar.PartitionSettings != nil { + objectMap["partitionSettings"] = osVar.PartitionSettings + } + if osVar.AdditionalColumns != nil { + objectMap["additionalColumns"] = osVar.AdditionalColumns + } + if osVar.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = osVar.SourceRetryCount + } + if osVar.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = osVar.SourceRetryWait + } + if osVar.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections + } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } + if osVar.Type != "" { + objectMap["type"] = osVar.Type + } + for k, v := range osVar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsOracleSource() (*OracleSource, bool) { + return &osVar, true +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for OracleSource. +func (osVar OracleSource) AsBasicCopySource() (BasicCopySource, bool) { + return &osVar, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleSource struct. +func (osVar *OracleSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "oracleReaderQuery": + if v != nil { + var oracleReaderQuery interface{} + err = json.Unmarshal(*v, &oracleReaderQuery) + if err != nil { + return err + } + osVar.OracleReaderQuery = oracleReaderQuery + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + osVar.QueryTimeout = queryTimeout + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + osVar.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings OraclePartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + osVar.PartitionSettings = &partitionSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + osVar.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if osVar.AdditionalProperties == nil { + osVar.AdditionalProperties = make(map[string]interface{}) + } + osVar.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + osVar.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + osVar.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + osVar.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + osVar.Type = typeVar + } + } + } + + return nil +} + +// OracleTableDataset the on-premises Oracle database dataset. +type OracleTableDataset struct { + // OracleTableDatasetTypeProperties - On-premises Oracle dataset properties. + *OracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OracleTableDataset. +func (otd OracleTableDataset) MarshalJSON() ([]byte, error) { + otd.Type = TypeBasicDatasetTypeOracleTable + objectMap := make(map[string]interface{}) + if otd.OracleTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = otd.OracleTableDatasetTypeProperties + } + if otd.Description != nil { + objectMap["description"] = otd.Description + } + if otd.Structure != nil { + objectMap["structure"] = otd.Structure + } + if otd.Schema != nil { + objectMap["schema"] = otd.Schema + } + if otd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = otd.LinkedServiceName + } + if otd.Parameters != nil { + objectMap["parameters"] = otd.Parameters + } + if otd.Annotations != nil { + objectMap["annotations"] = otd.Annotations + } + if otd.Folder != nil { + objectMap["folder"] = otd.Folder + } + if otd.Type != "" { + objectMap["type"] = otd.Type + } + for k, v := range otd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return &otd, true +} + +// AsODataResourceDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for OracleTableDataset. +func (otd OracleTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &otd, true +} + +// UnmarshalJSON is the custom unmarshaler for OracleTableDataset struct. +func (otd *OracleTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var oracleTableDatasetTypeProperties OracleTableDatasetTypeProperties + err = json.Unmarshal(*v, &oracleTableDatasetTypeProperties) + if err != nil { + return err + } + otd.OracleTableDatasetTypeProperties = &oracleTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if otd.AdditionalProperties == nil { + otd.AdditionalProperties = make(map[string]interface{}) + } + otd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + otd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + otd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + otd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + otd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + otd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + otd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + otd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + otd.Type = typeVar + } + } + } + + return nil +} + +// OracleTableDatasetTypeProperties on-premises Oracle dataset properties. +type OracleTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The schema name of the on-premises Oracle database. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the on-premises Oracle database. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// OrcDataset ORC dataset. +type OrcDataset struct { + // OrcDatasetTypeProperties - ORC dataset properties. + *OrcDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OrcDataset. +func (od OrcDataset) MarshalJSON() ([]byte, error) { + od.Type = TypeBasicDatasetTypeOrc + objectMap := make(map[string]interface{}) + if od.OrcDatasetTypeProperties != nil { + objectMap["typeProperties"] = od.OrcDatasetTypeProperties + } + if od.Description != nil { + objectMap["description"] = od.Description + } + if od.Structure != nil { + objectMap["structure"] = od.Structure + } + if od.Schema != nil { + objectMap["schema"] = od.Schema + } + if od.LinkedServiceName != nil { + objectMap["linkedServiceName"] = od.LinkedServiceName + } + if od.Parameters != nil { + objectMap["parameters"] = od.Parameters + } + if od.Annotations != nil { + objectMap["annotations"] = od.Annotations + } + if od.Folder != nil { + objectMap["folder"] = od.Folder + } + if od.Type != "" { + objectMap["type"] = od.Type + } + for k, v := range od.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsOrcDataset() (*OrcDataset, bool) { + return &od, true +} + +// AsXMLDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for OrcDataset. +func (od OrcDataset) AsBasicDataset() (BasicDataset, bool) { + return &od, true +} + +// UnmarshalJSON is the custom unmarshaler for OrcDataset struct. +func (od *OrcDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var orcDatasetTypeProperties OrcDatasetTypeProperties + err = json.Unmarshal(*v, &orcDatasetTypeProperties) + if err != nil { + return err + } + od.OrcDatasetTypeProperties = &orcDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if od.AdditionalProperties == nil { + od.AdditionalProperties = make(map[string]interface{}) + } + od.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + od.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + od.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + od.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + od.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + od.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + od.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + od.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + od.Type = typeVar + } + } + } + + return nil +} + +// OrcDatasetTypeProperties ORC dataset properties. +type OrcDatasetTypeProperties struct { + // Location - The location of the ORC data storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // OrcCompressionCodec - The data orcCompressionCodec. Type: string (or Expression with resultType string). + OrcCompressionCodec interface{} `json:"orcCompressionCodec,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for OrcDatasetTypeProperties struct. +func (odtp *OrcDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + odtp.Location = location + } + case "orcCompressionCodec": + if v != nil { + var orcCompressionCodec interface{} + err = json.Unmarshal(*v, &orcCompressionCodec) + if err != nil { + return err + } + odtp.OrcCompressionCodec = orcCompressionCodec + } + } + } + + return nil +} + +// OrcFormat the data stored in Optimized Row Columnar (ORC) format. +type OrcFormat struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Serializer - Serializer. Type: string (or Expression with resultType string). + Serializer interface{} `json:"serializer,omitempty"` + // Deserializer - Deserializer. Type: string (or Expression with resultType string). + Deserializer interface{} `json:"deserializer,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' + Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OrcFormat. +func (of OrcFormat) MarshalJSON() ([]byte, error) { + of.Type = TypeBasicDatasetStorageFormatTypeOrcFormat + objectMap := make(map[string]interface{}) + if of.Serializer != nil { + objectMap["serializer"] = of.Serializer + } + if of.Deserializer != nil { + objectMap["deserializer"] = of.Deserializer + } + if of.Type != "" { + objectMap["type"] = of.Type + } + for k, v := range of.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsParquetFormat is the BasicDatasetStorageFormat implementation for OrcFormat. +func (of OrcFormat) AsParquetFormat() (*ParquetFormat, bool) { + return nil, false +} + +// AsOrcFormat is the BasicDatasetStorageFormat implementation for OrcFormat. +func (of OrcFormat) AsOrcFormat() (*OrcFormat, bool) { + return &of, true +} + +// AsAvroFormat is the BasicDatasetStorageFormat implementation for OrcFormat. +func (of OrcFormat) AsAvroFormat() (*AvroFormat, bool) { + return nil, false +} + +// AsJSONFormat is the BasicDatasetStorageFormat implementation for OrcFormat. +func (of OrcFormat) AsJSONFormat() (*JSONFormat, bool) { + return nil, false +} + +// AsTextFormat is the BasicDatasetStorageFormat implementation for OrcFormat. +func (of OrcFormat) AsTextFormat() (*TextFormat, bool) { + return nil, false +} + +// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for OrcFormat. +func (of OrcFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { + return nil, false +} + +// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for OrcFormat. +func (of OrcFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { + return &of, true +} + +// UnmarshalJSON is the custom unmarshaler for OrcFormat struct. +func (of *OrcFormat) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if of.AdditionalProperties == nil { + of.AdditionalProperties = make(map[string]interface{}) + } + of.AdditionalProperties[k] = additionalProperties + } + case "serializer": + if v != nil { + var serializer interface{} + err = json.Unmarshal(*v, &serializer) + if err != nil { + return err + } + of.Serializer = serializer + } + case "deserializer": + if v != nil { + var deserializer interface{} + err = json.Unmarshal(*v, &deserializer) + if err != nil { + return err + } + of.Deserializer = deserializer + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetStorageFormat + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + of.Type = typeVar + } + } + } + + return nil +} + +// OrcSink a copy activity ORC sink. +type OrcSink struct { + // StoreSettings - ORC store settings. + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` + // FormatSettings - ORC format settings. + FormatSettings *OrcWriteSettings `json:"formatSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OrcSink. +func (osVar OrcSink) MarshalJSON() ([]byte, error) { + osVar.Type = TypeBasicCopySinkTypeOrcSink + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = osVar.StoreSettings + if osVar.FormatSettings != nil { + objectMap["formatSettings"] = osVar.FormatSettings + } + if osVar.WriteBatchSize != nil { + objectMap["writeBatchSize"] = osVar.WriteBatchSize + } + if osVar.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = osVar.WriteBatchTimeout + } + if osVar.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = osVar.SinkRetryCount + } + if osVar.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = osVar.SinkRetryWait + } + if osVar.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections + } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } + if osVar.Type != "" { + objectMap["type"] = osVar.Type + } + for k, v := range osVar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsOrcSink() (*OrcSink, bool) { + return &osVar, true +} + +// AsJSONSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for OrcSink. +func (osVar OrcSink) AsBasicCopySink() (BasicCopySink, bool) { + return &osVar, true +} + +// UnmarshalJSON is the custom unmarshaler for OrcSink struct. +func (osVar *OrcSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) + if err != nil { + return err + } + osVar.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings OrcWriteSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + osVar.FormatSettings = &formatSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if osVar.AdditionalProperties == nil { + osVar.AdditionalProperties = make(map[string]interface{}) + } + osVar.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + osVar.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + osVar.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + osVar.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + osVar.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + osVar.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + osVar.Type = typeVar + } + } + } + + return nil +} + +// OrcSource a copy activity ORC source. +type OrcSource struct { + // StoreSettings - ORC store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OrcSource. +func (osVar OrcSource) MarshalJSON() ([]byte, error) { + osVar.Type = TypeBasicCopySourceTypeOrcSource + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = osVar.StoreSettings + if osVar.AdditionalColumns != nil { + objectMap["additionalColumns"] = osVar.AdditionalColumns + } + if osVar.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = osVar.SourceRetryCount + } + if osVar.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = osVar.SourceRetryWait + } + if osVar.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections + } + if osVar.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection + } + if osVar.Type != "" { + objectMap["type"] = osVar.Type + } + for k, v := range osVar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsOrcSource() (*OrcSource, bool) { + return &osVar, true +} + +// AsXMLSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for OrcSource. +func (osVar OrcSource) AsBasicCopySource() (BasicCopySource, bool) { + return &osVar, true +} + +// UnmarshalJSON is the custom unmarshaler for OrcSource struct. +func (osVar *OrcSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + osVar.StoreSettings = storeSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + osVar.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if osVar.AdditionalProperties == nil { + osVar.AdditionalProperties = make(map[string]interface{}) + } + osVar.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + osVar.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + osVar.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + osVar.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + osVar.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + osVar.Type = typeVar + } + } + } + + return nil +} + +// OrcWriteSettings orc write settings. +type OrcWriteSettings struct { + // MaxRowsPerFile - 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"` + // FileNamePrefix - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for OrcWriteSettings. +func (ows OrcWriteSettings) MarshalJSON() ([]byte, error) { + ows.Type = TypeBasicFormatWriteSettingsTypeOrcWriteSettings + objectMap := make(map[string]interface{}) + if ows.MaxRowsPerFile != nil { + objectMap["maxRowsPerFile"] = ows.MaxRowsPerFile + } + if ows.FileNamePrefix != nil { + objectMap["fileNamePrefix"] = ows.FileNamePrefix + } + if ows.Type != "" { + objectMap["type"] = ows.Type + } + for k, v := range ows.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. +func (ows OrcWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { + return nil, false +} + +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. +func (ows OrcWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { + return nil, false +} + +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. +func (ows OrcWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { + return &ows, true +} + +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. +func (ows OrcWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { + return nil, false +} + +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. +func (ows OrcWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { + return nil, false +} + +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. +func (ows OrcWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return nil, false +} + +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. +func (ows OrcWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &ows, true +} + +// UnmarshalJSON is the custom unmarshaler for OrcWriteSettings struct. +func (ows *OrcWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "maxRowsPerFile": + if v != nil { + var maxRowsPerFile interface{} + err = json.Unmarshal(*v, &maxRowsPerFile) + if err != nil { + return err + } + ows.MaxRowsPerFile = maxRowsPerFile + } + case "fileNamePrefix": + if v != nil { + var fileNamePrefix interface{} + err = json.Unmarshal(*v, &fileNamePrefix) + if err != nil { + return err + } + ows.FileNamePrefix = fileNamePrefix + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ows.AdditionalProperties == nil { + ows.AdditionalProperties = make(map[string]interface{}) + } + ows.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ows.Type = typeVar + } + } + } + + return nil +} + +// OutputColumn the columns to be read out from the Office 365 table. +type OutputColumn struct { + // Name - Name of the table column. Type: string. + Name *string `json:"name,omitempty"` +} + +// PackageStore package store for the SSIS integration runtime. +type PackageStore struct { + // Name - The name of the package store + Name *string `json:"name,omitempty"` + // PackageStoreLinkedService - The package store linked service reference. + PackageStoreLinkedService *EntityReference `json:"packageStoreLinkedService,omitempty"` +} + +// ParameterSpecification definition of a single parameter for an entity. +type ParameterSpecification struct { + // Type - Parameter type. Possible values include: 'ParameterTypeObject', 'ParameterTypeString', 'ParameterTypeInt', 'ParameterTypeFloat', 'ParameterTypeBool', 'ParameterTypeArray', 'ParameterTypeSecureString' + Type ParameterType `json:"type,omitempty"` + // DefaultValue - Default value of parameter. + DefaultValue interface{} `json:"defaultValue,omitempty"` +} + +// ParquetDataset parquet dataset. +type ParquetDataset struct { + // ParquetDatasetTypeProperties - Parquet dataset properties. + *ParquetDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ParquetDataset. +func (pd ParquetDataset) MarshalJSON() ([]byte, error) { + pd.Type = TypeBasicDatasetTypeParquet + objectMap := make(map[string]interface{}) + if pd.ParquetDatasetTypeProperties != nil { + objectMap["typeProperties"] = pd.ParquetDatasetTypeProperties + } + if pd.Description != nil { + objectMap["description"] = pd.Description + } + if pd.Structure != nil { + objectMap["structure"] = pd.Structure + } + if pd.Schema != nil { + objectMap["schema"] = pd.Schema + } + if pd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = pd.LinkedServiceName + } + if pd.Parameters != nil { + objectMap["parameters"] = pd.Parameters + } + if pd.Annotations != nil { + objectMap["annotations"] = pd.Annotations + } + if pd.Folder != nil { + objectMap["folder"] = pd.Folder + } + if pd.Type != "" { + objectMap["type"] = pd.Type + } + for k, v := range pd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsParquetDataset() (*ParquetDataset, bool) { + return &pd, true +} + +// AsExcelDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ParquetDataset. +func (pd ParquetDataset) AsBasicDataset() (BasicDataset, bool) { + return &pd, true +} + +// UnmarshalJSON is the custom unmarshaler for ParquetDataset struct. +func (pd *ParquetDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var parquetDatasetTypeProperties ParquetDatasetTypeProperties + err = json.Unmarshal(*v, &parquetDatasetTypeProperties) + if err != nil { + return err + } + pd.ParquetDatasetTypeProperties = &parquetDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pd.AdditionalProperties == nil { + pd.AdditionalProperties = make(map[string]interface{}) + } + pd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + pd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + pd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + pd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + pd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + pd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + pd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pd.Type = typeVar + } + } + } + + return nil +} + +// ParquetDatasetTypeProperties parquet dataset properties. +type ParquetDatasetTypeProperties struct { + // Location - The location of the parquet storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // CompressionCodec - The data compressionCodec. Type: string (or Expression with resultType string). + CompressionCodec interface{} `json:"compressionCodec,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ParquetDatasetTypeProperties struct. +func (pdtp *ParquetDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + pdtp.Location = location + } + case "compressionCodec": + if v != nil { + var compressionCodec interface{} + err = json.Unmarshal(*v, &compressionCodec) + if err != nil { + return err + } + pdtp.CompressionCodec = compressionCodec + } + } + } + + return nil +} + +// ParquetFormat the data stored in Parquet format. +type ParquetFormat struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Serializer - Serializer. Type: string (or Expression with resultType string). + Serializer interface{} `json:"serializer,omitempty"` + // Deserializer - Deserializer. Type: string (or Expression with resultType string). + Deserializer interface{} `json:"deserializer,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' + Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ParquetFormat. +func (pf ParquetFormat) MarshalJSON() ([]byte, error) { + pf.Type = TypeBasicDatasetStorageFormatTypeParquetFormat + objectMap := make(map[string]interface{}) + if pf.Serializer != nil { + objectMap["serializer"] = pf.Serializer + } + if pf.Deserializer != nil { + objectMap["deserializer"] = pf.Deserializer + } + if pf.Type != "" { + objectMap["type"] = pf.Type + } + for k, v := range pf.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsParquetFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. +func (pf ParquetFormat) AsParquetFormat() (*ParquetFormat, bool) { + return &pf, true +} + +// AsOrcFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. +func (pf ParquetFormat) AsOrcFormat() (*OrcFormat, bool) { + return nil, false +} + +// AsAvroFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. +func (pf ParquetFormat) AsAvroFormat() (*AvroFormat, bool) { + return nil, false +} + +// AsJSONFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. +func (pf ParquetFormat) AsJSONFormat() (*JSONFormat, bool) { + return nil, false +} + +// AsTextFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. +func (pf ParquetFormat) AsTextFormat() (*TextFormat, bool) { + return nil, false +} + +// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. +func (pf ParquetFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { + return nil, false +} + +// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. +func (pf ParquetFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { + return &pf, true +} + +// UnmarshalJSON is the custom unmarshaler for ParquetFormat struct. +func (pf *ParquetFormat) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pf.AdditionalProperties == nil { + pf.AdditionalProperties = make(map[string]interface{}) + } + pf.AdditionalProperties[k] = additionalProperties + } + case "serializer": + if v != nil { + var serializer interface{} + err = json.Unmarshal(*v, &serializer) + if err != nil { + return err + } + pf.Serializer = serializer + } + case "deserializer": + if v != nil { + var deserializer interface{} + err = json.Unmarshal(*v, &deserializer) + if err != nil { + return err + } + pf.Deserializer = deserializer + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetStorageFormat + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pf.Type = typeVar + } + } + } + + return nil +} + +// ParquetReadSettings parquet read settings. +type ParquetReadSettings struct { + // CompressionProperties - Compression settings. + CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ParquetReadSettings. +func (prs ParquetReadSettings) MarshalJSON() ([]byte, error) { + prs.Type = TypeBasicFormatReadSettingsTypeParquetReadSettings + objectMap := make(map[string]interface{}) + objectMap["compressionProperties"] = prs.CompressionProperties + if prs.Type != "" { + objectMap["type"] = prs.Type + } + for k, v := range prs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. +func (prs ParquetReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { + return nil, false +} + +// AsXMLReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. +func (prs ParquetReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { + return nil, false +} + +// AsJSONReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. +func (prs ParquetReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { + return nil, false +} + +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. +func (prs ParquetReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { + return nil, false +} + +// AsParquetReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. +func (prs ParquetReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { + return &prs, true +} + +// AsFormatReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. +func (prs ParquetReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { + return nil, false +} + +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. +func (prs ParquetReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &prs, true +} + +// UnmarshalJSON is the custom unmarshaler for ParquetReadSettings struct. +func (prs *ParquetReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "compressionProperties": + if v != nil { + compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) + if err != nil { + return err + } + prs.CompressionProperties = compressionProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if prs.AdditionalProperties == nil { + prs.AdditionalProperties = make(map[string]interface{}) + } + prs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + prs.Type = typeVar + } + } + } + + return nil +} + +// ParquetSink a copy activity Parquet sink. +type ParquetSink struct { + // StoreSettings - Parquet store settings. + StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` + // FormatSettings - Parquet format settings. + FormatSettings *ParquetWriteSettings `json:"formatSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ParquetSink. +func (ps ParquetSink) MarshalJSON() ([]byte, error) { + ps.Type = TypeBasicCopySinkTypeParquetSink + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = ps.StoreSettings + if ps.FormatSettings != nil { + objectMap["formatSettings"] = ps.FormatSettings + } + if ps.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ps.WriteBatchSize + } + if ps.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ps.WriteBatchTimeout + } + if ps.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ps.SinkRetryCount + } + if ps.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ps.SinkRetryWait + } + if ps.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections + } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } + if ps.Type != "" { + objectMap["type"] = ps.Type + } + for k, v := range ps.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsParquetSink() (*ParquetSink, bool) { + return &ps, true +} + +// AsAvroSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for ParquetSink. +func (ps ParquetSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ps, true +} + +// UnmarshalJSON is the custom unmarshaler for ParquetSink struct. +func (ps *ParquetSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreWriteSettings(*v) + if err != nil { + return err + } + ps.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings ParquetWriteSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + ps.FormatSettings = &formatSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ps.AdditionalProperties == nil { + ps.AdditionalProperties = make(map[string]interface{}) + } + ps.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ps.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ps.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ps.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ps.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ps.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ps.Type = typeVar + } + } + } + + return nil +} + +// ParquetSource a copy activity Parquet source. +type ParquetSource struct { + // StoreSettings - Parquet store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - Parquet format settings. + FormatSettings *ParquetReadSettings `json:"formatSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ParquetSource. +func (ps ParquetSource) MarshalJSON() ([]byte, error) { + ps.Type = TypeBasicCopySourceTypeParquetSource + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = ps.StoreSettings + if ps.FormatSettings != nil { + objectMap["formatSettings"] = ps.FormatSettings + } + if ps.AdditionalColumns != nil { + objectMap["additionalColumns"] = ps.AdditionalColumns + } + if ps.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ps.SourceRetryCount + } + if ps.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ps.SourceRetryWait + } + if ps.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections + } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } + if ps.Type != "" { + objectMap["type"] = ps.Type + } + for k, v := range ps.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsParquetSource() (*ParquetSource, bool) { + return &ps, true +} + +// AsExcelSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ParquetSource. +func (ps ParquetSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ps, true +} + +// UnmarshalJSON is the custom unmarshaler for ParquetSource struct. +func (ps *ParquetSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + ps.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings ParquetReadSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + ps.FormatSettings = &formatSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ps.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ps.AdditionalProperties == nil { + ps.AdditionalProperties = make(map[string]interface{}) + } + ps.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ps.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ps.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ps.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ps.Type = typeVar + } + } + } + + return nil +} + +// ParquetWriteSettings parquet write settings. +type ParquetWriteSettings struct { + // MaxRowsPerFile - 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"` + // FileNamePrefix - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' + Type TypeBasicFormatWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ParquetWriteSettings. +func (pws ParquetWriteSettings) MarshalJSON() ([]byte, error) { + pws.Type = TypeBasicFormatWriteSettingsTypeParquetWriteSettings + objectMap := make(map[string]interface{}) + if pws.MaxRowsPerFile != nil { + objectMap["maxRowsPerFile"] = pws.MaxRowsPerFile + } + if pws.FileNamePrefix != nil { + objectMap["fileNamePrefix"] = pws.FileNamePrefix + } + if pws.Type != "" { + objectMap["type"] = pws.Type + } + for k, v := range pws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. +func (pws ParquetWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { + return nil, false +} + +// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. +func (pws ParquetWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { + return nil, false +} + +// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. +func (pws ParquetWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { + return nil, false +} + +// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. +func (pws ParquetWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { + return nil, false +} + +// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. +func (pws ParquetWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { + return &pws, true +} + +// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. +func (pws ParquetWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { + return nil, false +} + +// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. +func (pws ParquetWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { + return &pws, true +} + +// UnmarshalJSON is the custom unmarshaler for ParquetWriteSettings struct. +func (pws *ParquetWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "maxRowsPerFile": + if v != nil { + var maxRowsPerFile interface{} + err = json.Unmarshal(*v, &maxRowsPerFile) + if err != nil { + return err + } + pws.MaxRowsPerFile = maxRowsPerFile + } + case "fileNamePrefix": + if v != nil { + var fileNamePrefix interface{} + err = json.Unmarshal(*v, &fileNamePrefix) + if err != nil { + return err + } + pws.FileNamePrefix = fileNamePrefix + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pws.AdditionalProperties == nil { + pws.AdditionalProperties = make(map[string]interface{}) + } + pws.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pws.Type = typeVar + } + } + } + + return nil +} + +// PaypalLinkedService paypal Service linked service. +type PaypalLinkedService struct { + // PaypalLinkedServiceTypeProperties - Paypal Service linked service properties. + *PaypalLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PaypalLinkedService. +func (pls PaypalLinkedService) MarshalJSON() ([]byte, error) { + pls.Type = TypeBasicLinkedServiceTypePaypal + objectMap := make(map[string]interface{}) + if pls.PaypalLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = pls.PaypalLinkedServiceTypeProperties + } + if pls.ConnectVia != nil { + objectMap["connectVia"] = pls.ConnectVia + } + if pls.Description != nil { + objectMap["description"] = pls.Description + } + if pls.Parameters != nil { + objectMap["parameters"] = pls.Parameters + } + if pls.Annotations != nil { + objectMap["annotations"] = pls.Annotations + } + if pls.Type != "" { + objectMap["type"] = pls.Type + } + for k, v := range pls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return &pls, true +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for PaypalLinkedService. +func (pls PaypalLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &pls, true +} + +// UnmarshalJSON is the custom unmarshaler for PaypalLinkedService struct. +func (pls *PaypalLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var paypalLinkedServiceTypeProperties PaypalLinkedServiceTypeProperties + err = json.Unmarshal(*v, &paypalLinkedServiceTypeProperties) + if err != nil { + return err + } + pls.PaypalLinkedServiceTypeProperties = &paypalLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pls.AdditionalProperties == nil { + pls.AdditionalProperties = make(map[string]interface{}) + } + pls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + pls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + pls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + pls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pls.Type = typeVar + } + } + } + + return nil +} + +// PaypalLinkedServiceTypeProperties paypal Service linked service properties. +type PaypalLinkedServiceTypeProperties struct { + // Host - The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) + Host interface{} `json:"host,omitempty"` + // ClientID - The client ID associated with your PayPal application. + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret associated with your PayPal application. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for PaypalLinkedServiceTypeProperties struct. +func (plstp *PaypalLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + plstp.Host = host + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + plstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + plstp.ClientSecret = clientSecret + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + plstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + plstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + plstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + plstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// PaypalObjectDataset paypal Service dataset. +type PaypalObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PaypalObjectDataset. +func (pod PaypalObjectDataset) MarshalJSON() ([]byte, error) { + pod.Type = TypeBasicDatasetTypePaypalObject + objectMap := make(map[string]interface{}) + if pod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = pod.GenericDatasetTypeProperties + } + if pod.Description != nil { + objectMap["description"] = pod.Description + } + if pod.Structure != nil { + objectMap["structure"] = pod.Structure + } + if pod.Schema != nil { + objectMap["schema"] = pod.Schema + } + if pod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = pod.LinkedServiceName + } + if pod.Parameters != nil { + objectMap["parameters"] = pod.Parameters + } + if pod.Annotations != nil { + objectMap["annotations"] = pod.Annotations + } + if pod.Folder != nil { + objectMap["folder"] = pod.Folder + } + if pod.Type != "" { + objectMap["type"] = pod.Type + } + for k, v := range pod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return &pod, true +} + +// AsMarketoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for PaypalObjectDataset. +func (pod PaypalObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &pod, true +} + +// UnmarshalJSON is the custom unmarshaler for PaypalObjectDataset struct. +func (pod *PaypalObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + pod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pod.AdditionalProperties == nil { + pod.AdditionalProperties = make(map[string]interface{}) + } + pod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + pod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + pod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + pod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + pod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + pod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + pod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pod.Type = typeVar + } + } + } + + return nil +} + +// PaypalSource a copy activity Paypal Service source. +type PaypalSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PaypalSource. +func (ps PaypalSource) MarshalJSON() ([]byte, error) { + ps.Type = TypeBasicCopySourceTypePaypalSource + objectMap := make(map[string]interface{}) + if ps.Query != nil { + objectMap["query"] = ps.Query + } + if ps.QueryTimeout != nil { + objectMap["queryTimeout"] = ps.QueryTimeout + } + if ps.AdditionalColumns != nil { + objectMap["additionalColumns"] = ps.AdditionalColumns + } + if ps.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ps.SourceRetryCount + } + if ps.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ps.SourceRetryWait + } + if ps.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections + } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } + if ps.Type != "" { + objectMap["type"] = ps.Type + } + for k, v := range ps.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsPaypalSource() (*PaypalSource, bool) { + return &ps, true +} + +// AsMarketoSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ps, true +} + +// AsBinarySource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for PaypalSource. +func (ps PaypalSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ps, true +} + +// UnmarshalJSON is the custom unmarshaler for PaypalSource struct. +func (ps *PaypalSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ps.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ps.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ps.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ps.AdditionalProperties == nil { + ps.AdditionalProperties = make(map[string]interface{}) + } + ps.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ps.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ps.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ps.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ps.Type = typeVar + } + } + } + + return nil +} + +// PhoenixDatasetTypeProperties phoenix Dataset Properties +type PhoenixDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Phoenix. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Phoenix. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// PhoenixLinkedService phoenix server linked service. +type PhoenixLinkedService struct { + // PhoenixLinkedServiceTypeProperties - Phoenix server linked service properties. + *PhoenixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PhoenixLinkedService. +func (pls PhoenixLinkedService) MarshalJSON() ([]byte, error) { + pls.Type = TypeBasicLinkedServiceTypePhoenix + objectMap := make(map[string]interface{}) + if pls.PhoenixLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = pls.PhoenixLinkedServiceTypeProperties + } + if pls.ConnectVia != nil { + objectMap["connectVia"] = pls.ConnectVia + } + if pls.Description != nil { + objectMap["description"] = pls.Description + } + if pls.Parameters != nil { + objectMap["parameters"] = pls.Parameters + } + if pls.Annotations != nil { + objectMap["annotations"] = pls.Annotations + } + if pls.Type != "" { + objectMap["type"] = pls.Type + } + for k, v := range pls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return &pls, true +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. +func (pls PhoenixLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &pls, true +} + +// UnmarshalJSON is the custom unmarshaler for PhoenixLinkedService struct. +func (pls *PhoenixLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var phoenixLinkedServiceTypeProperties PhoenixLinkedServiceTypeProperties + err = json.Unmarshal(*v, &phoenixLinkedServiceTypeProperties) + if err != nil { + return err + } + pls.PhoenixLinkedServiceTypeProperties = &phoenixLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pls.AdditionalProperties == nil { + pls.AdditionalProperties = make(map[string]interface{}) + } + pls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + pls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + pls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + pls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pls.Type = typeVar + } + } + } + + return nil +} + +// PhoenixLinkedServiceTypeProperties phoenix server linked service properties. +type PhoenixLinkedServiceTypeProperties struct { + // Host - The IP address or host name of the Phoenix server. (i.e. 192.168.222.160) + Host interface{} `json:"host,omitempty"` + // Port - The TCP port that the Phoenix server uses to listen for client connections. The default value is 8765. + Port interface{} `json:"port,omitempty"` + // HTTPPath - 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"` + // AuthenticationType - The authentication mechanism used to connect to the Phoenix server. Possible values include: 'PhoenixAuthenticationTypeAnonymous', 'PhoenixAuthenticationTypeUsernameAndPassword', 'PhoenixAuthenticationTypeWindowsAzureHDInsightService' + AuthenticationType PhoenixAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name used to connect to the Phoenix server. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name. + Password BasicSecretBase `json:"password,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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"` + // UseSystemTrustStore - 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"` + // AllowHostNameCNMismatch - 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"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for PhoenixLinkedServiceTypeProperties struct. +func (plstp *PhoenixLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + plstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + plstp.Port = port + } + case "httpPath": + if v != nil { + var HTTPPath interface{} + err = json.Unmarshal(*v, &HTTPPath) + if err != nil { + return err + } + plstp.HTTPPath = HTTPPath + } + case "authenticationType": + if v != nil { + var authenticationType PhoenixAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + plstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + plstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + plstp.Password = password + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + plstp.EnableSsl = enableSsl + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + plstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + plstp.UseSystemTrustStore = useSystemTrustStore + } + case "allowHostNameCNMismatch": + if v != nil { + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) + if err != nil { + return err + } + plstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + plstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + plstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// PhoenixObjectDataset phoenix server dataset. +type PhoenixObjectDataset struct { + // PhoenixDatasetTypeProperties - Properties specific to this dataset type. + *PhoenixDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) MarshalJSON() ([]byte, error) { + pod.Type = TypeBasicDatasetTypePhoenixObject + objectMap := make(map[string]interface{}) + if pod.PhoenixDatasetTypeProperties != nil { + objectMap["typeProperties"] = pod.PhoenixDatasetTypeProperties + } + if pod.Description != nil { + objectMap["description"] = pod.Description + } + if pod.Structure != nil { + objectMap["structure"] = pod.Structure + } + if pod.Schema != nil { + objectMap["schema"] = pod.Schema + } + if pod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = pod.LinkedServiceName + } + if pod.Parameters != nil { + objectMap["parameters"] = pod.Parameters + } + if pod.Annotations != nil { + objectMap["annotations"] = pod.Annotations + } + if pod.Folder != nil { + objectMap["folder"] = pod.Folder + } + if pod.Type != "" { + objectMap["type"] = pod.Type + } + for k, v := range pod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return &pod, true +} + +// AsPaypalObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for PhoenixObjectDataset. +func (pod PhoenixObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &pod, true +} + +// UnmarshalJSON is the custom unmarshaler for PhoenixObjectDataset struct. +func (pod *PhoenixObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var phoenixDatasetTypeProperties PhoenixDatasetTypeProperties + err = json.Unmarshal(*v, &phoenixDatasetTypeProperties) + if err != nil { + return err + } + pod.PhoenixDatasetTypeProperties = &phoenixDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pod.AdditionalProperties == nil { + pod.AdditionalProperties = make(map[string]interface{}) + } + pod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + pod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + pod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + pod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + pod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + pod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + pod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pod.Type = typeVar + } + } + } + + return nil +} + +// PhoenixSource a copy activity Phoenix server source. +type PhoenixSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PhoenixSource. +func (ps PhoenixSource) MarshalJSON() ([]byte, error) { + ps.Type = TypeBasicCopySourceTypePhoenixSource + objectMap := make(map[string]interface{}) + if ps.Query != nil { + objectMap["query"] = ps.Query + } + if ps.QueryTimeout != nil { + objectMap["queryTimeout"] = ps.QueryTimeout + } + if ps.AdditionalColumns != nil { + objectMap["additionalColumns"] = ps.AdditionalColumns + } + if ps.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ps.SourceRetryCount + } + if ps.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ps.SourceRetryWait + } + if ps.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections + } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } + if ps.Type != "" { + objectMap["type"] = ps.Type + } + for k, v := range ps.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsPhoenixSource() (*PhoenixSource, bool) { + return &ps, true +} + +// AsPaypalSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ps, true +} + +// AsBinarySource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for PhoenixSource. +func (ps PhoenixSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ps, true +} + +// UnmarshalJSON is the custom unmarshaler for PhoenixSource struct. +func (ps *PhoenixSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ps.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ps.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ps.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ps.AdditionalProperties == nil { + ps.AdditionalProperties = make(map[string]interface{}) + } + ps.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ps.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ps.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ps.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ps.Type = typeVar + } + } + } + + return nil +} + +// Pipeline a data factory pipeline. +type Pipeline struct { + // Description - The description of the pipeline. + Description *string `json:"description,omitempty"` + // Activities - List of activities in pipeline. + Activities *[]BasicActivity `json:"activities,omitempty"` + // Parameters - List of parameters for pipeline. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Variables - List of variables for pipeline. + Variables map[string]*VariableSpecification `json:"variables"` + // Concurrency - The max number of concurrent runs for the pipeline. + Concurrency *int32 `json:"concurrency,omitempty"` + // Annotations - List of tags that can be used for describing the Pipeline. + Annotations *[]interface{} `json:"annotations,omitempty"` + // RunDimensions - Dimensions emitted by Pipeline. + RunDimensions map[string]interface{} `json:"runDimensions"` + // Folder - The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. + Folder *PipelineFolder `json:"folder,omitempty"` + Policy *PipelinePolicy `json:"policy,omitempty"` +} + +// MarshalJSON is the custom marshaler for Pipeline. +func (p Pipeline) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if p.Description != nil { + objectMap["description"] = p.Description + } + if p.Activities != nil { + objectMap["activities"] = p.Activities + } + if p.Parameters != nil { + objectMap["parameters"] = p.Parameters + } + if p.Variables != nil { + objectMap["variables"] = p.Variables + } + if p.Concurrency != nil { + objectMap["concurrency"] = p.Concurrency + } + if p.Annotations != nil { + objectMap["annotations"] = p.Annotations + } + if p.RunDimensions != nil { + objectMap["runDimensions"] = p.RunDimensions + } + if p.Folder != nil { + objectMap["folder"] = p.Folder + } + if p.Policy != nil { + objectMap["policy"] = p.Policy + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for Pipeline struct. +func (p *Pipeline) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + p.Description = &description + } + case "activities": + if v != nil { + activities, err := unmarshalBasicActivityArray(*v) + if err != nil { + return err + } + p.Activities = &activities + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + p.Parameters = parameters + } + case "variables": + if v != nil { + var variables map[string]*VariableSpecification + err = json.Unmarshal(*v, &variables) + if err != nil { + return err + } + p.Variables = variables + } + case "concurrency": + if v != nil { + var concurrency int32 + err = json.Unmarshal(*v, &concurrency) + if err != nil { + return err + } + p.Concurrency = &concurrency + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + p.Annotations = &annotations + } + case "runDimensions": + if v != nil { + var runDimensions map[string]interface{} + err = json.Unmarshal(*v, &runDimensions) + if err != nil { + return err + } + p.RunDimensions = runDimensions + } + case "folder": + if v != nil { + var folder PipelineFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + p.Folder = &folder + } + case "policy": + if v != nil { + var policy PipelinePolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + p.Policy = &policy + } + } + } + + return nil +} + +// PipelineElapsedTimeMetricPolicy pipeline ElapsedTime Metric Policy. +type PipelineElapsedTimeMetricPolicy struct { + // Duration - TimeSpan value, after which an Azure Monitoring Metric is fired. + Duration interface{} `json:"duration,omitempty"` +} + +// PipelineExternalComputeScaleProperties pipelineExternalComputeScale properties for managed integration +// runtime. +type PipelineExternalComputeScaleProperties struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // TimeToLive - Time to live (in minutes) setting of integration runtime which will execute pipeline and external activity. + TimeToLive *int32 `json:"timeToLive,omitempty"` + // NumberOfPipelineNodes - Number of the pipeline nodes, which should be greater than 0 and less than 11. + NumberOfPipelineNodes *int32 `json:"numberOfPipelineNodes,omitempty"` + // NumberOfExternalNodes - Number of the the external nodes, which should be greater than 0 and less than 11. + NumberOfExternalNodes *int32 `json:"numberOfExternalNodes,omitempty"` +} + +// MarshalJSON is the custom marshaler for PipelineExternalComputeScaleProperties. +func (pecsp PipelineExternalComputeScaleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pecsp.TimeToLive != nil { + objectMap["timeToLive"] = pecsp.TimeToLive + } + if pecsp.NumberOfPipelineNodes != nil { + objectMap["numberOfPipelineNodes"] = pecsp.NumberOfPipelineNodes + } + if pecsp.NumberOfExternalNodes != nil { + objectMap["numberOfExternalNodes"] = pecsp.NumberOfExternalNodes + } + for k, v := range pecsp.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PipelineExternalComputeScaleProperties struct. +func (pecsp *PipelineExternalComputeScaleProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pecsp.AdditionalProperties == nil { + pecsp.AdditionalProperties = make(map[string]interface{}) + } + pecsp.AdditionalProperties[k] = additionalProperties + } + case "timeToLive": + if v != nil { + var timeToLive int32 + err = json.Unmarshal(*v, &timeToLive) + if err != nil { + return err + } + pecsp.TimeToLive = &timeToLive + } + case "numberOfPipelineNodes": + if v != nil { + var numberOfPipelineNodes int32 + err = json.Unmarshal(*v, &numberOfPipelineNodes) + if err != nil { + return err + } + pecsp.NumberOfPipelineNodes = &numberOfPipelineNodes + } + case "numberOfExternalNodes": + if v != nil { + var numberOfExternalNodes int32 + err = json.Unmarshal(*v, &numberOfExternalNodes) + if err != nil { + return err + } + pecsp.NumberOfExternalNodes = &numberOfExternalNodes + } + } + } + + return nil +} + +// PipelineFolder the folder that this Pipeline is in. If not specified, Pipeline will appear at the root +// level. +type PipelineFolder struct { + // Name - The name of the folder that this Pipeline is in. + Name *string `json:"name,omitempty"` +} + +// PipelineListResponse a list of pipeline resources. +type PipelineListResponse struct { + autorest.Response `json:"-"` + // Value - List of pipelines. + Value *[]PipelineResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// PipelineListResponseIterator provides access to a complete listing of PipelineResource values. +type PipelineListResponseIterator struct { + i int + page PipelineListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PipelineListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PipelineListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PipelineListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PipelineListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PipelineListResponseIterator) Response() PipelineListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PipelineListResponseIterator) Value() PipelineResource { + if !iter.page.NotDone() { + return PipelineResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PipelineListResponseIterator type. +func NewPipelineListResponseIterator(page PipelineListResponsePage) PipelineListResponseIterator { + return PipelineListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (plr PipelineListResponse) IsEmpty() bool { + return plr.Value == nil || len(*plr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (plr PipelineListResponse) hasNextLink() bool { + return plr.NextLink != nil && len(*plr.NextLink) != 0 +} + +// pipelineListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (plr PipelineListResponse) pipelineListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !plr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(plr.NextLink))) +} + +// PipelineListResponsePage contains a page of PipelineResource values. +type PipelineListResponsePage struct { + fn func(context.Context, PipelineListResponse) (PipelineListResponse, error) + plr PipelineListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PipelineListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PipelineListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.plr) + if err != nil { + return err + } + page.plr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PipelineListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PipelineListResponsePage) NotDone() bool { + return !page.plr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PipelineListResponsePage) Response() PipelineListResponse { + return page.plr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PipelineListResponsePage) Values() []PipelineResource { + if page.plr.IsEmpty() { + return nil + } + return *page.plr.Value +} + +// Creates a new instance of the PipelineListResponsePage type. +func NewPipelineListResponsePage(cur PipelineListResponse, getNextPage func(context.Context, PipelineListResponse) (PipelineListResponse, error)) PipelineListResponsePage { + return PipelineListResponsePage{ + fn: getNextPage, + plr: cur, + } +} + +// PipelinePolicy pipeline Policy. +type PipelinePolicy struct { + ElapsedTimeMetric *PipelineElapsedTimeMetricPolicy `json:"elapsedTimeMetric,omitempty"` +} + +// PipelineReference pipeline reference type. +type PipelineReference struct { + // Type - Pipeline reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference pipeline name. + ReferenceName *string `json:"referenceName,omitempty"` + // Name - Reference name. + Name *string `json:"name,omitempty"` +} + +// PipelineResource pipeline resource type. +type PipelineResource struct { + autorest.Response `json:"-"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Pipeline - Properties of the pipeline. + *Pipeline `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for PipelineResource. +func (pr PipelineResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pr.Pipeline != nil { + objectMap["properties"] = pr.Pipeline + } + for k, v := range pr.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PipelineResource struct. +func (pr *PipelineResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pr.AdditionalProperties == nil { + pr.AdditionalProperties = make(map[string]interface{}) + } + pr.AdditionalProperties[k] = additionalProperties + } + case "properties": + if v != nil { + var pipeline Pipeline + err = json.Unmarshal(*v, &pipeline) + if err != nil { + return err + } + pr.Pipeline = &pipeline + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + pr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + pr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pr.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + pr.Etag = &etag + } + } + } + + return nil +} + +// PipelineRun information about a pipeline run. +type PipelineRun struct { + autorest.Response `json:"-"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // RunID - READ-ONLY; Identifier of a run. + RunID *string `json:"runId,omitempty"` + // RunGroupID - READ-ONLY; Identifier that correlates all the recovery runs of a pipeline run. + RunGroupID *string `json:"runGroupId,omitempty"` + // IsLatest - READ-ONLY; Indicates if the recovered pipeline run is the latest in its group. + IsLatest *bool `json:"isLatest,omitempty"` + // PipelineName - READ-ONLY; The pipeline name. + PipelineName *string `json:"pipelineName,omitempty"` + // Parameters - READ-ONLY; The full or partial list of parameter name, value pair used in the pipeline run. + Parameters map[string]*string `json:"parameters"` + // RunDimensions - READ-ONLY; Run dimensions emitted by Pipeline run. + RunDimensions map[string]*string `json:"runDimensions"` + // InvokedBy - READ-ONLY; Entity that started the pipeline run. + InvokedBy *PipelineRunInvokedBy `json:"invokedBy,omitempty"` + // LastUpdated - READ-ONLY; The last updated timestamp for the pipeline run event in ISO8601 format. + LastUpdated *date.Time `json:"lastUpdated,omitempty"` + // RunStart - READ-ONLY; The start time of a pipeline run in ISO8601 format. + RunStart *date.Time `json:"runStart,omitempty"` + // RunEnd - READ-ONLY; The end time of a pipeline run in ISO8601 format. + RunEnd *date.Time `json:"runEnd,omitempty"` + // DurationInMs - READ-ONLY; The duration of a pipeline run. + DurationInMs *int32 `json:"durationInMs,omitempty"` + // Status - READ-ONLY; The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, Canceling, Cancelled + Status *string `json:"status,omitempty"` + // Message - READ-ONLY; The message from a pipeline run. + Message *string `json:"message,omitempty"` +} + +// MarshalJSON is the custom marshaler for PipelineRun. +func (pr PipelineRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + for k, v := range pr.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PipelineRun struct. +func (pr *PipelineRun) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pr.AdditionalProperties == nil { + pr.AdditionalProperties = make(map[string]interface{}) + } + pr.AdditionalProperties[k] = additionalProperties + } + case "runId": + if v != nil { + var runID string + err = json.Unmarshal(*v, &runID) + if err != nil { + return err + } + pr.RunID = &runID + } + case "runGroupId": + if v != nil { + var runGroupID string + err = json.Unmarshal(*v, &runGroupID) + if err != nil { + return err + } + pr.RunGroupID = &runGroupID + } + case "isLatest": + if v != nil { + var isLatest bool + err = json.Unmarshal(*v, &isLatest) + if err != nil { + return err + } + pr.IsLatest = &isLatest + } + case "pipelineName": + if v != nil { + var pipelineName string + err = json.Unmarshal(*v, &pipelineName) + if err != nil { + return err + } + pr.PipelineName = &pipelineName + } + case "parameters": + if v != nil { + var parameters map[string]*string + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pr.Parameters = parameters + } + case "runDimensions": + if v != nil { + var runDimensions map[string]*string + err = json.Unmarshal(*v, &runDimensions) + if err != nil { + return err + } + pr.RunDimensions = runDimensions + } + case "invokedBy": + if v != nil { + var invokedBy PipelineRunInvokedBy + err = json.Unmarshal(*v, &invokedBy) + if err != nil { + return err + } + pr.InvokedBy = &invokedBy + } + case "lastUpdated": + if v != nil { + var lastUpdated date.Time + err = json.Unmarshal(*v, &lastUpdated) + if err != nil { + return err + } + pr.LastUpdated = &lastUpdated + } + case "runStart": + if v != nil { + var runStart date.Time + err = json.Unmarshal(*v, &runStart) + if err != nil { + return err + } + pr.RunStart = &runStart + } + case "runEnd": + if v != nil { + var runEnd date.Time + err = json.Unmarshal(*v, &runEnd) + if err != nil { + return err + } + pr.RunEnd = &runEnd + } + case "durationInMs": + if v != nil { + var durationInMs int32 + err = json.Unmarshal(*v, &durationInMs) + if err != nil { + return err + } + pr.DurationInMs = &durationInMs + } + case "status": + if v != nil { + var status string + err = json.Unmarshal(*v, &status) + if err != nil { + return err + } + pr.Status = &status + } + case "message": + if v != nil { + var message string + err = json.Unmarshal(*v, &message) + if err != nil { + return err + } + pr.Message = &message + } + } + } + + return nil +} + +// PipelineRunInvokedBy provides entity name and id that started the pipeline run. +type PipelineRunInvokedBy struct { + // Name - READ-ONLY; Name of the entity that started the pipeline run. + Name *string `json:"name,omitempty"` + // ID - READ-ONLY; The ID of the entity that started the run. + ID *string `json:"id,omitempty"` + // InvokedByType - READ-ONLY; The type of the entity that started the run. + InvokedByType *string `json:"invokedByType,omitempty"` + // PipelineName - READ-ONLY; The name of the pipeline that triggered the run, if any. + PipelineName *string `json:"pipelineName,omitempty"` + // PipelineRunID - READ-ONLY; The run id of the pipeline that triggered the run, if any. + PipelineRunID *string `json:"pipelineRunId,omitempty"` +} + +// MarshalJSON is the custom marshaler for PipelineRunInvokedBy. +func (prib PipelineRunInvokedBy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// PipelineRunsQueryResponse a list pipeline runs. +type PipelineRunsQueryResponse struct { + autorest.Response `json:"-"` + // Value - List of pipeline runs. + Value *[]PipelineRun `json:"value,omitempty"` + // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + ContinuationToken *string `json:"continuationToken,omitempty"` +} + +// PolybaseSettings polyBase settings. +type PolybaseSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // RejectType - Reject type. Possible values include: 'PolybaseSettingsRejectTypeValue', 'PolybaseSettingsRejectTypePercentage' + RejectType PolybaseSettingsRejectType `json:"rejectType,omitempty"` + // RejectValue - 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"` + // RejectSampleValue - 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"` + // UseTypeDefault - 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"` +} + +// MarshalJSON is the custom marshaler for PolybaseSettings. +func (ps PolybaseSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ps.RejectType != "" { + objectMap["rejectType"] = ps.RejectType + } + if ps.RejectValue != nil { + objectMap["rejectValue"] = ps.RejectValue + } + if ps.RejectSampleValue != nil { + objectMap["rejectSampleValue"] = ps.RejectSampleValue + } + if ps.UseTypeDefault != nil { + objectMap["useTypeDefault"] = ps.UseTypeDefault + } + for k, v := range ps.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for PolybaseSettings struct. +func (ps *PolybaseSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ps.AdditionalProperties == nil { + ps.AdditionalProperties = make(map[string]interface{}) + } + ps.AdditionalProperties[k] = additionalProperties + } + case "rejectType": + if v != nil { + var rejectType PolybaseSettingsRejectType + err = json.Unmarshal(*v, &rejectType) + if err != nil { + return err + } + ps.RejectType = rejectType + } + case "rejectValue": + if v != nil { + var rejectValue interface{} + err = json.Unmarshal(*v, &rejectValue) + if err != nil { + return err + } + ps.RejectValue = rejectValue + } + case "rejectSampleValue": + if v != nil { + var rejectSampleValue interface{} + err = json.Unmarshal(*v, &rejectSampleValue) + if err != nil { + return err + } + ps.RejectSampleValue = rejectSampleValue + } + case "useTypeDefault": + if v != nil { + var useTypeDefault interface{} + err = json.Unmarshal(*v, &useTypeDefault) + if err != nil { + return err + } + ps.UseTypeDefault = useTypeDefault + } + } + } + + return nil +} + +// PostgreSQLLinkedService linked service for PostgreSQL data source. +type PostgreSQLLinkedService struct { + // PostgreSQLLinkedServiceTypeProperties - PostgreSQL linked service properties. + *PostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) MarshalJSON() ([]byte, error) { + psls.Type = TypeBasicLinkedServiceTypePostgreSQL + objectMap := make(map[string]interface{}) + if psls.PostgreSQLLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = psls.PostgreSQLLinkedServiceTypeProperties + } + if psls.ConnectVia != nil { + objectMap["connectVia"] = psls.ConnectVia + } + if psls.Description != nil { + objectMap["description"] = psls.Description + } + if psls.Parameters != nil { + objectMap["parameters"] = psls.Parameters + } + if psls.Annotations != nil { + objectMap["annotations"] = psls.Annotations + } + if psls.Type != "" { + objectMap["type"] = psls.Type + } + for k, v := range psls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return &psls, true +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. +func (psls PostgreSQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &psls, true +} + +// UnmarshalJSON is the custom unmarshaler for PostgreSQLLinkedService struct. +func (psls *PostgreSQLLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var postgreSQLLinkedServiceTypeProperties PostgreSQLLinkedServiceTypeProperties + err = json.Unmarshal(*v, &postgreSQLLinkedServiceTypeProperties) + if err != nil { + return err + } + psls.PostgreSQLLinkedServiceTypeProperties = &postgreSQLLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if psls.AdditionalProperties == nil { + psls.AdditionalProperties = make(map[string]interface{}) + } + psls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + psls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + psls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + psls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + psls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + psls.Type = typeVar + } + } + } + + return nil +} + +// PostgreSQLLinkedServiceTypeProperties postgreSQL linked service properties. +type PostgreSQLLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// PostgreSQLSource a copy activity source for PostgreSQL databases. +type PostgreSQLSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PostgreSQLSource. +func (pss PostgreSQLSource) MarshalJSON() ([]byte, error) { + pss.Type = TypeBasicCopySourceTypePostgreSQLSource + objectMap := make(map[string]interface{}) + if pss.Query != nil { + objectMap["query"] = pss.Query + } + if pss.QueryTimeout != nil { + objectMap["queryTimeout"] = pss.QueryTimeout + } + if pss.AdditionalColumns != nil { + objectMap["additionalColumns"] = pss.AdditionalColumns + } + if pss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = pss.SourceRetryCount + } + if pss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = pss.SourceRetryWait + } + if pss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = pss.MaxConcurrentConnections + } + if pss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = pss.DisableMetricsCollection + } + if pss.Type != "" { + objectMap["type"] = pss.Type + } + for k, v := range pss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return &pss, true +} + +// AsMySQLSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &pss, true +} + +// AsBinarySource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for PostgreSQLSource. +func (pss PostgreSQLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &pss, true +} + +// UnmarshalJSON is the custom unmarshaler for PostgreSQLSource struct. +func (pss *PostgreSQLSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + pss.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + pss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + pss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pss.AdditionalProperties == nil { + pss.AdditionalProperties = make(map[string]interface{}) + } + pss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + pss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + pss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + pss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + pss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pss.Type = typeVar + } + } + } + + return nil +} + +// PostgreSQLTableDataset the PostgreSQL table dataset. +type PostgreSQLTableDataset struct { + // PostgreSQLTableDatasetTypeProperties - PostgreSQL table dataset properties. + *PostgreSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) MarshalJSON() ([]byte, error) { + pstd.Type = TypeBasicDatasetTypePostgreSQLTable + objectMap := make(map[string]interface{}) + if pstd.PostgreSQLTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = pstd.PostgreSQLTableDatasetTypeProperties + } + if pstd.Description != nil { + objectMap["description"] = pstd.Description + } + if pstd.Structure != nil { + objectMap["structure"] = pstd.Structure + } + if pstd.Schema != nil { + objectMap["schema"] = pstd.Schema + } + if pstd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = pstd.LinkedServiceName + } + if pstd.Parameters != nil { + objectMap["parameters"] = pstd.Parameters + } + if pstd.Annotations != nil { + objectMap["annotations"] = pstd.Annotations + } + if pstd.Folder != nil { + objectMap["folder"] = pstd.Folder + } + if pstd.Type != "" { + objectMap["type"] = pstd.Type + } + for k, v := range pstd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return &pstd, true +} + +// AsMySQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for PostgreSQLTableDataset. +func (pstd PostgreSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &pstd, true +} + +// UnmarshalJSON is the custom unmarshaler for PostgreSQLTableDataset struct. +func (pstd *PostgreSQLTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var postgreSQLTableDatasetTypeProperties PostgreSQLTableDatasetTypeProperties + err = json.Unmarshal(*v, &postgreSQLTableDatasetTypeProperties) + if err != nil { + return err + } + pstd.PostgreSQLTableDatasetTypeProperties = &postgreSQLTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pstd.AdditionalProperties == nil { + pstd.AdditionalProperties = make(map[string]interface{}) + } + pstd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + pstd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + pstd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + pstd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + pstd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pstd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + pstd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + pstd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pstd.Type = typeVar + } + } + } + + return nil +} + +// PostgreSQLTableDatasetTypeProperties postgreSQL table dataset properties. +type PostgreSQLTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The PostgreSQL table name. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The PostgreSQL schema name. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// PostgreSQLV2LinkedService linked service for PostgreSQLV2 data source. +type PostgreSQLV2LinkedService struct { + // PostgreSQLV2LinkedServiceTypeProperties - PostgreSQLV2 linked service properties. + *PostgreSQLV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) MarshalJSON() ([]byte, error) { + psvls.Type = TypeBasicLinkedServiceTypePostgreSQLV2 + objectMap := make(map[string]interface{}) + if psvls.PostgreSQLV2LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = psvls.PostgreSQLV2LinkedServiceTypeProperties + } + if psvls.ConnectVia != nil { + objectMap["connectVia"] = psvls.ConnectVia + } + if psvls.Description != nil { + objectMap["description"] = psvls.Description + } + if psvls.Parameters != nil { + objectMap["parameters"] = psvls.Parameters + } + if psvls.Annotations != nil { + objectMap["annotations"] = psvls.Annotations + } + if psvls.Type != "" { + objectMap["type"] = psvls.Type + } + for k, v := range psvls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return &psvls, true +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for PostgreSQLV2LinkedService. +func (psvls PostgreSQLV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &psvls, true +} + +// UnmarshalJSON is the custom unmarshaler for PostgreSQLV2LinkedService struct. +func (psvls *PostgreSQLV2LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var postgreSQLV2LinkedServiceTypeProperties PostgreSQLV2LinkedServiceTypeProperties + err = json.Unmarshal(*v, &postgreSQLV2LinkedServiceTypeProperties) + if err != nil { + return err + } + psvls.PostgreSQLV2LinkedServiceTypeProperties = &postgreSQLV2LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if psvls.AdditionalProperties == nil { + psvls.AdditionalProperties = make(map[string]interface{}) + } + psvls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + psvls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + psvls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + psvls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + psvls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + psvls.Type = typeVar + } + } + } + + return nil +} + +// PostgreSQLV2LinkedServiceTypeProperties postgreSqlV2 linked service properties. +type PostgreSQLV2LinkedServiceTypeProperties struct { + // Server - Server name for connection. Type: string. + Server interface{} `json:"server,omitempty"` + // Port - The port for the connection. Type: integer. + Port interface{} `json:"port,omitempty"` + // Username - Username for authentication. Type: string. + Username interface{} `json:"username,omitempty"` + // Database - Database name for connection. Type: string. + Database interface{} `json:"database,omitempty"` + // SslMode - SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer. + SslMode interface{} `json:"sslMode,omitempty"` + // Schema - Sets the schema search path. Type: string. + Schema interface{} `json:"schema,omitempty"` + // Pooling - Whether connection pooling should be used. Type: boolean. + Pooling interface{} `json:"pooling,omitempty"` + // ConnectionTimeout - The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. Type: integer. + ConnectionTimeout interface{} `json:"connectionTimeout,omitempty"` + // CommandTimeout - 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 interface{} `json:"commandTimeout,omitempty"` + // TrustServerCertificate - Whether to trust the server certificate without validating it. Type: boolean. + TrustServerCertificate interface{} `json:"trustServerCertificate,omitempty"` + // SslCertificate - Location of a client certificate to be sent to the server. Type: string. + SslCertificate interface{} `json:"sslCertificate,omitempty"` + // SslKey - Location of a client key for a client certificate to be sent to the server. Type: string. + SslKey interface{} `json:"sslKey,omitempty"` + // SslPassword - Password for a key for a client certificate. Type: string. + SslPassword interface{} `json:"sslPassword,omitempty"` + // ReadBufferSize - Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring large values from the database. Type: integer. + ReadBufferSize interface{} `json:"readBufferSize,omitempty"` + // LogParameters - When enabled, parameter values are logged when commands are executed. Type: boolean. + LogParameters interface{} `json:"logParameters,omitempty"` + // Timezone - Gets or sets the session timezone. Type: string. + Timezone interface{} `json:"timezone,omitempty"` + // Encoding - Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string + Encoding interface{} `json:"encoding,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. Type: string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// PostgreSQLV2Source a copy activity source for PostgreSQL databases. +type PostgreSQLV2Source struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) MarshalJSON() ([]byte, error) { + psvs.Type = TypeBasicCopySourceTypePostgreSQLV2Source + objectMap := make(map[string]interface{}) + if psvs.Query != nil { + objectMap["query"] = psvs.Query + } + if psvs.QueryTimeout != nil { + objectMap["queryTimeout"] = psvs.QueryTimeout + } + if psvs.AdditionalColumns != nil { + objectMap["additionalColumns"] = psvs.AdditionalColumns + } + if psvs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = psvs.SourceRetryCount + } + if psvs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = psvs.SourceRetryWait + } + if psvs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = psvs.MaxConcurrentConnections + } + if psvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = psvs.DisableMetricsCollection + } + if psvs.Type != "" { + objectMap["type"] = psvs.Type + } + for k, v := range psvs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return &psvs, true +} + +// AsPostgreSQLSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return &psvs, true +} + +// AsBinarySource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for PostgreSQLV2Source. +func (psvs PostgreSQLV2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &psvs, true +} + +// UnmarshalJSON is the custom unmarshaler for PostgreSQLV2Source struct. +func (psvs *PostgreSQLV2Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + psvs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + psvs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + psvs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if psvs.AdditionalProperties == nil { + psvs.AdditionalProperties = make(map[string]interface{}) + } + psvs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + psvs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + psvs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + psvs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + psvs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + psvs.Type = typeVar + } + } + } + + return nil +} + +// PostgreSQLV2TableDataset the PostgreSQLV2 table dataset. +type PostgreSQLV2TableDataset struct { + // PostgreSQLV2TableDatasetTypeProperties - PostgreSQLV2 table dataset properties. + *PostgreSQLV2TableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) MarshalJSON() ([]byte, error) { + psvtd.Type = TypeBasicDatasetTypePostgreSQLV2Table + objectMap := make(map[string]interface{}) + if psvtd.PostgreSQLV2TableDatasetTypeProperties != nil { + objectMap["typeProperties"] = psvtd.PostgreSQLV2TableDatasetTypeProperties + } + if psvtd.Description != nil { + objectMap["description"] = psvtd.Description + } + if psvtd.Structure != nil { + objectMap["structure"] = psvtd.Structure + } + if psvtd.Schema != nil { + objectMap["schema"] = psvtd.Schema + } + if psvtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = psvtd.LinkedServiceName + } + if psvtd.Parameters != nil { + objectMap["parameters"] = psvtd.Parameters + } + if psvtd.Annotations != nil { + objectMap["annotations"] = psvtd.Annotations + } + if psvtd.Folder != nil { + objectMap["folder"] = psvtd.Folder + } + if psvtd.Type != "" { + objectMap["type"] = psvtd.Type + } + for k, v := range psvtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return &psvtd, true +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for PostgreSQLV2TableDataset. +func (psvtd PostgreSQLV2TableDataset) AsBasicDataset() (BasicDataset, bool) { + return &psvtd, true +} + +// UnmarshalJSON is the custom unmarshaler for PostgreSQLV2TableDataset struct. +func (psvtd *PostgreSQLV2TableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var postgreSQLV2TableDatasetTypeProperties PostgreSQLV2TableDatasetTypeProperties + err = json.Unmarshal(*v, &postgreSQLV2TableDatasetTypeProperties) + if err != nil { + return err + } + psvtd.PostgreSQLV2TableDatasetTypeProperties = &postgreSQLV2TableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if psvtd.AdditionalProperties == nil { + psvtd.AdditionalProperties = make(map[string]interface{}) + } + psvtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + psvtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + psvtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + psvtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + psvtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + psvtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + psvtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + psvtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + psvtd.Type = typeVar + } + } + } + + return nil +} + +// PostgreSQLV2TableDatasetTypeProperties postgreSQLV2 table dataset properties. +type PostgreSQLV2TableDatasetTypeProperties struct { + // Table - The PostgreSQL table name. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The PostgreSQL schema name. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// PowerQuerySink power query sink. +type PowerQuerySink struct { + // Script - sink script. + Script *string `json:"script,omitempty"` + // SchemaLinkedService - Schema linked service reference. + SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` + // RejectedDataLinkedService - Rejected data linked service reference. + RejectedDataLinkedService *LinkedServiceReference `json:"rejectedDataLinkedService,omitempty"` + // Name - Transformation name. + Name *string `json:"name,omitempty"` + // Description - Transformation description. + Description *string `json:"description,omitempty"` + // Dataset - Dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // LinkedService - Linked service reference. + LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + // Flowlet - Flowlet Reference + Flowlet *DataFlowReference `json:"flowlet,omitempty"` +} + +// PowerQuerySinkMapping map Power Query mashup query to sink dataset(s). +type PowerQuerySinkMapping struct { + // QueryName - Name of the query in Power Query mashup document. + QueryName *string `json:"queryName,omitempty"` + // DataflowSinks - List of sinks mapped to Power Query mashup query. + DataflowSinks *[]PowerQuerySink `json:"dataflowSinks,omitempty"` +} + +// PowerQuerySource power query source. +type PowerQuerySource struct { + // Script - source script. + Script *string `json:"script,omitempty"` + // SchemaLinkedService - Schema linked service reference. + SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` + // Name - Transformation name. + Name *string `json:"name,omitempty"` + // Description - Transformation description. + Description *string `json:"description,omitempty"` + // Dataset - Dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // LinkedService - Linked service reference. + LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + // Flowlet - Flowlet Reference + Flowlet *DataFlowReference `json:"flowlet,omitempty"` +} + +// PowerQueryTypeProperties power Query data flow type properties. +type PowerQueryTypeProperties struct { + // Sources - List of sources in Power Query. + Sources *[]PowerQuerySource `json:"sources,omitempty"` + // Script - Power query mashup script. + Script *string `json:"script,omitempty"` + // DocumentLocale - Locale of the Power query mashup document. + DocumentLocale *string `json:"documentLocale,omitempty"` +} + +// PrestoDatasetTypeProperties presto Dataset Properties +type PrestoDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Presto. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Presto. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// PrestoLinkedService presto server linked service. +type PrestoLinkedService struct { + // PrestoLinkedServiceTypeProperties - Presto server linked service properties. + *PrestoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrestoLinkedService. +func (pls PrestoLinkedService) MarshalJSON() ([]byte, error) { + pls.Type = TypeBasicLinkedServiceTypePresto + objectMap := make(map[string]interface{}) + if pls.PrestoLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = pls.PrestoLinkedServiceTypeProperties + } + if pls.ConnectVia != nil { + objectMap["connectVia"] = pls.ConnectVia + } + if pls.Description != nil { + objectMap["description"] = pls.Description + } + if pls.Parameters != nil { + objectMap["parameters"] = pls.Parameters + } + if pls.Annotations != nil { + objectMap["annotations"] = pls.Annotations + } + if pls.Type != "" { + objectMap["type"] = pls.Type + } + for k, v := range pls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return &pls, true +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for PrestoLinkedService. +func (pls PrestoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &pls, true +} + +// UnmarshalJSON is the custom unmarshaler for PrestoLinkedService struct. +func (pls *PrestoLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var prestoLinkedServiceTypeProperties PrestoLinkedServiceTypeProperties + err = json.Unmarshal(*v, &prestoLinkedServiceTypeProperties) + if err != nil { + return err + } + pls.PrestoLinkedServiceTypeProperties = &prestoLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pls.AdditionalProperties == nil { + pls.AdditionalProperties = make(map[string]interface{}) + } + pls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + pls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + pls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + pls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pls.Type = typeVar + } + } + } + + return nil +} + +// PrestoLinkedServiceTypeProperties presto server linked service properties. +type PrestoLinkedServiceTypeProperties struct { + // Host - The IP address or host name of the Presto server. (i.e. 192.168.222.160) + Host interface{} `json:"host,omitempty"` + // ServerVersion - The version of the Presto server. (i.e. 0.148-t) + ServerVersion interface{} `json:"serverVersion,omitempty"` + // Catalog - The catalog context for all request against the server. + Catalog interface{} `json:"catalog,omitempty"` + // Port - The TCP port that the Presto server uses to listen for client connections. The default value is 8080. + Port interface{} `json:"port,omitempty"` + // AuthenticationType - The authentication mechanism used to connect to the Presto server. Possible values include: 'PrestoAuthenticationTypeAnonymous', 'PrestoAuthenticationTypeLDAP' + AuthenticationType PrestoAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name used to connect to the Presto server. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name. + Password BasicSecretBase `json:"password,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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"` + // UseSystemTrustStore - 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"` + // AllowHostNameCNMismatch - 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"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // TimeZoneID - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for PrestoLinkedServiceTypeProperties struct. +func (plstp *PrestoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + plstp.Host = host + } + case "serverVersion": + if v != nil { + var serverVersion interface{} + err = json.Unmarshal(*v, &serverVersion) + if err != nil { + return err + } + plstp.ServerVersion = serverVersion + } + case "catalog": + if v != nil { + var catalog interface{} + err = json.Unmarshal(*v, &catalog) + if err != nil { + return err + } + plstp.Catalog = catalog + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + plstp.Port = port + } + case "authenticationType": + if v != nil { + var authenticationType PrestoAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + plstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + plstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + plstp.Password = password + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + plstp.EnableSsl = enableSsl + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + plstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + plstp.UseSystemTrustStore = useSystemTrustStore + } + case "allowHostNameCNMismatch": + if v != nil { + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) + if err != nil { + return err + } + plstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + plstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "timeZoneID": + if v != nil { + var timeZoneID interface{} + err = json.Unmarshal(*v, &timeZoneID) + if err != nil { + return err + } + plstp.TimeZoneID = timeZoneID + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + plstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// PrestoObjectDataset presto server dataset. +type PrestoObjectDataset struct { + // PrestoDatasetTypeProperties - Properties specific to this dataset type. + *PrestoDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrestoObjectDataset. +func (pod PrestoObjectDataset) MarshalJSON() ([]byte, error) { + pod.Type = TypeBasicDatasetTypePrestoObject + objectMap := make(map[string]interface{}) + if pod.PrestoDatasetTypeProperties != nil { + objectMap["typeProperties"] = pod.PrestoDatasetTypeProperties + } + if pod.Description != nil { + objectMap["description"] = pod.Description + } + if pod.Structure != nil { + objectMap["structure"] = pod.Structure + } + if pod.Schema != nil { + objectMap["schema"] = pod.Schema + } + if pod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = pod.LinkedServiceName + } + if pod.Parameters != nil { + objectMap["parameters"] = pod.Parameters + } + if pod.Annotations != nil { + objectMap["annotations"] = pod.Annotations + } + if pod.Folder != nil { + objectMap["folder"] = pod.Folder + } + if pod.Type != "" { + objectMap["type"] = pod.Type + } + for k, v := range pod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return &pod, true +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for PrestoObjectDataset. +func (pod PrestoObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &pod, true +} + +// UnmarshalJSON is the custom unmarshaler for PrestoObjectDataset struct. +func (pod *PrestoObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var prestoDatasetTypeProperties PrestoDatasetTypeProperties + err = json.Unmarshal(*v, &prestoDatasetTypeProperties) + if err != nil { + return err + } + pod.PrestoDatasetTypeProperties = &prestoDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if pod.AdditionalProperties == nil { + pod.AdditionalProperties = make(map[string]interface{}) + } + pod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + pod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + pod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + pod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + pod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + pod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + pod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + pod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + pod.Type = typeVar + } + } + } + + return nil +} + +// PrestoSource a copy activity Presto server source. +type PrestoSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrestoSource. +func (ps PrestoSource) MarshalJSON() ([]byte, error) { + ps.Type = TypeBasicCopySourceTypePrestoSource + objectMap := make(map[string]interface{}) + if ps.Query != nil { + objectMap["query"] = ps.Query + } + if ps.QueryTimeout != nil { + objectMap["queryTimeout"] = ps.QueryTimeout + } + if ps.AdditionalColumns != nil { + objectMap["additionalColumns"] = ps.AdditionalColumns + } + if ps.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ps.SourceRetryCount + } + if ps.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ps.SourceRetryWait + } + if ps.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections + } + if ps.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection + } + if ps.Type != "" { + objectMap["type"] = ps.Type + } + for k, v := range ps.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsPrestoSource() (*PrestoSource, bool) { + return &ps, true +} + +// AsPhoenixSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ps, true +} + +// AsBinarySource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for PrestoSource. +func (ps PrestoSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ps, true +} + +// UnmarshalJSON is the custom unmarshaler for PrestoSource struct. +func (ps *PrestoSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ps.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ps.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ps.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ps.AdditionalProperties == nil { + ps.AdditionalProperties = make(map[string]interface{}) + } + ps.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ps.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ps.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ps.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ps.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ps.Type = typeVar + } + } + } + + return nil +} + +// PrivateEndpoint private endpoint which a connection belongs to. +type PrivateEndpoint struct { + // ID - The resource Id for private endpoint + ID *string `json:"id,omitempty"` +} + +// PrivateEndpointConnectionListResponse a list of linked service resources. +type PrivateEndpointConnectionListResponse struct { + autorest.Response `json:"-"` + // Value - List of Private Endpoint Connections. + Value *[]PrivateEndpointConnectionResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// PrivateEndpointConnectionListResponseIterator provides access to a complete listing of +// PrivateEndpointConnectionResource values. +type PrivateEndpointConnectionListResponseIterator struct { + i int + page PrivateEndpointConnectionListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *PrivateEndpointConnectionListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *PrivateEndpointConnectionListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter PrivateEndpointConnectionListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter PrivateEndpointConnectionListResponseIterator) Response() PrivateEndpointConnectionListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter PrivateEndpointConnectionListResponseIterator) Value() PrivateEndpointConnectionResource { + if !iter.page.NotDone() { + return PrivateEndpointConnectionResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the PrivateEndpointConnectionListResponseIterator type. +func NewPrivateEndpointConnectionListResponseIterator(page PrivateEndpointConnectionListResponsePage) PrivateEndpointConnectionListResponseIterator { + return PrivateEndpointConnectionListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (peclr PrivateEndpointConnectionListResponse) IsEmpty() bool { + return peclr.Value == nil || len(*peclr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (peclr PrivateEndpointConnectionListResponse) hasNextLink() bool { + return peclr.NextLink != nil && len(*peclr.NextLink) != 0 +} + +// privateEndpointConnectionListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (peclr PrivateEndpointConnectionListResponse) privateEndpointConnectionListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !peclr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(peclr.NextLink))) +} + +// PrivateEndpointConnectionListResponsePage contains a page of PrivateEndpointConnectionResource values. +type PrivateEndpointConnectionListResponsePage struct { + fn func(context.Context, PrivateEndpointConnectionListResponse) (PrivateEndpointConnectionListResponse, error) + peclr PrivateEndpointConnectionListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *PrivateEndpointConnectionListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.peclr) + if err != nil { + return err + } + page.peclr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *PrivateEndpointConnectionListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page PrivateEndpointConnectionListResponsePage) NotDone() bool { + return !page.peclr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page PrivateEndpointConnectionListResponsePage) Response() PrivateEndpointConnectionListResponse { + return page.peclr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page PrivateEndpointConnectionListResponsePage) Values() []PrivateEndpointConnectionResource { + if page.peclr.IsEmpty() { + return nil + } + return *page.peclr.Value +} + +// Creates a new instance of the PrivateEndpointConnectionListResponsePage type. +func NewPrivateEndpointConnectionListResponsePage(cur PrivateEndpointConnectionListResponse, getNextPage func(context.Context, PrivateEndpointConnectionListResponse) (PrivateEndpointConnectionListResponse, error)) PrivateEndpointConnectionListResponsePage { + return PrivateEndpointConnectionListResponsePage{ + fn: getNextPage, + peclr: cur, + } +} + +// PrivateEndpointConnectionResource private Endpoint Connection ARM resource. +type PrivateEndpointConnectionResource struct { + autorest.Response `json:"-"` + // Properties - Core resource properties + Properties *RemotePrivateEndpointConnection `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateEndpointConnectionResource. +func (pecr PrivateEndpointConnectionResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pecr.Properties != nil { + objectMap["properties"] = pecr.Properties + } + return json.Marshal(objectMap) +} + +// PrivateLinkConnectionApprovalRequest a request to approve or reject a private endpoint connection +type PrivateLinkConnectionApprovalRequest struct { + PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` + // PrivateEndpoint - The resource of private endpoint. + PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` +} + +// PrivateLinkConnectionApprovalRequestResource private Endpoint Connection Approval ARM resource. +type PrivateLinkConnectionApprovalRequestResource struct { + // Properties - Core resource properties + Properties *PrivateLinkConnectionApprovalRequest `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkConnectionApprovalRequestResource. +func (plcarr PrivateLinkConnectionApprovalRequestResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plcarr.Properties != nil { + objectMap["properties"] = plcarr.Properties + } + return json.Marshal(objectMap) +} + +// PrivateLinkConnectionState the state of a private link connection +type PrivateLinkConnectionState struct { + // Status - Status of a private link connection + Status *string `json:"status,omitempty"` + // Description - Description of a private link connection + Description *string `json:"description,omitempty"` + // ActionsRequired - ActionsRequired for a private link connection + ActionsRequired *string `json:"actionsRequired,omitempty"` +} + +// PrivateLinkResource a private link resource +type PrivateLinkResource struct { + // Properties - Core resource properties + Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResource. +func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if plr.Properties != nil { + objectMap["properties"] = plr.Properties + } + return json.Marshal(objectMap) +} + +// PrivateLinkResourceProperties properties of a private link resource +type PrivateLinkResourceProperties struct { + // GroupID - READ-ONLY; GroupId of a private link resource + GroupID *string `json:"groupId,omitempty"` + // RequiredMembers - READ-ONLY; RequiredMembers of a private link resource + RequiredMembers *[]string `json:"requiredMembers,omitempty"` + // RequiredZoneNames - READ-ONLY; RequiredZoneNames of a private link resource + RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` +} + +// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. +func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// PrivateLinkResourcesWrapper wrapper for a collection of private link resources +type PrivateLinkResourcesWrapper struct { + autorest.Response `json:"-"` + Value *[]PrivateLinkResource `json:"value,omitempty"` +} + +// PurviewConfiguration purview configuration. +type PurviewConfiguration struct { + // PurviewResourceID - Purview resource id. + PurviewResourceID *string `json:"purviewResourceId,omitempty"` +} + +// QueryDataFlowDebugSessionsResponse a list of active debug sessions. +type QueryDataFlowDebugSessionsResponse struct { + autorest.Response `json:"-"` + // Value - Array with all active debug sessions. + Value *[]DataFlowDebugSessionInfo `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// QueryDataFlowDebugSessionsResponseIterator provides access to a complete listing of +// DataFlowDebugSessionInfo values. +type QueryDataFlowDebugSessionsResponseIterator struct { + i int + page QueryDataFlowDebugSessionsResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *QueryDataFlowDebugSessionsResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueryDataFlowDebugSessionsResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *QueryDataFlowDebugSessionsResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter QueryDataFlowDebugSessionsResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter QueryDataFlowDebugSessionsResponseIterator) Response() QueryDataFlowDebugSessionsResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter QueryDataFlowDebugSessionsResponseIterator) Value() DataFlowDebugSessionInfo { + if !iter.page.NotDone() { + return DataFlowDebugSessionInfo{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the QueryDataFlowDebugSessionsResponseIterator type. +func NewQueryDataFlowDebugSessionsResponseIterator(page QueryDataFlowDebugSessionsResponsePage) QueryDataFlowDebugSessionsResponseIterator { + return QueryDataFlowDebugSessionsResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (qdfdsr QueryDataFlowDebugSessionsResponse) IsEmpty() bool { + return qdfdsr.Value == nil || len(*qdfdsr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (qdfdsr QueryDataFlowDebugSessionsResponse) hasNextLink() bool { + return qdfdsr.NextLink != nil && len(*qdfdsr.NextLink) != 0 +} + +// queryDataFlowDebugSessionsResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (qdfdsr QueryDataFlowDebugSessionsResponse) queryDataFlowDebugSessionsResponsePreparer(ctx context.Context) (*http.Request, error) { + if !qdfdsr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(qdfdsr.NextLink))) +} + +// QueryDataFlowDebugSessionsResponsePage contains a page of DataFlowDebugSessionInfo values. +type QueryDataFlowDebugSessionsResponsePage struct { + fn func(context.Context, QueryDataFlowDebugSessionsResponse) (QueryDataFlowDebugSessionsResponse, error) + qdfdsr QueryDataFlowDebugSessionsResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *QueryDataFlowDebugSessionsResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/QueryDataFlowDebugSessionsResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.qdfdsr) + if err != nil { + return err + } + page.qdfdsr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *QueryDataFlowDebugSessionsResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page QueryDataFlowDebugSessionsResponsePage) NotDone() bool { + return !page.qdfdsr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page QueryDataFlowDebugSessionsResponsePage) Response() QueryDataFlowDebugSessionsResponse { + return page.qdfdsr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page QueryDataFlowDebugSessionsResponsePage) Values() []DataFlowDebugSessionInfo { + if page.qdfdsr.IsEmpty() { + return nil + } + return *page.qdfdsr.Value +} + +// Creates a new instance of the QueryDataFlowDebugSessionsResponsePage type. +func NewQueryDataFlowDebugSessionsResponsePage(cur QueryDataFlowDebugSessionsResponse, getNextPage func(context.Context, QueryDataFlowDebugSessionsResponse) (QueryDataFlowDebugSessionsResponse, error)) QueryDataFlowDebugSessionsResponsePage { + return QueryDataFlowDebugSessionsResponsePage{ + fn: getNextPage, + qdfdsr: cur, + } +} + +// QuickBooksLinkedService quickBooks server linked service. +type QuickBooksLinkedService struct { + // QuickBooksLinkedServiceTypeProperties - QuickBooks server linked service properties. + *QuickBooksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) MarshalJSON() ([]byte, error) { + qbls.Type = TypeBasicLinkedServiceTypeQuickBooks + objectMap := make(map[string]interface{}) + if qbls.QuickBooksLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = qbls.QuickBooksLinkedServiceTypeProperties + } + if qbls.ConnectVia != nil { + objectMap["connectVia"] = qbls.ConnectVia + } + if qbls.Description != nil { + objectMap["description"] = qbls.Description + } + if qbls.Parameters != nil { + objectMap["parameters"] = qbls.Parameters + } + if qbls.Annotations != nil { + objectMap["annotations"] = qbls.Annotations + } + if qbls.Type != "" { + objectMap["type"] = qbls.Type + } + for k, v := range qbls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return &qbls, true +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. +func (qbls QuickBooksLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &qbls, true +} + +// UnmarshalJSON is the custom unmarshaler for QuickBooksLinkedService struct. +func (qbls *QuickBooksLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var quickBooksLinkedServiceTypeProperties QuickBooksLinkedServiceTypeProperties + err = json.Unmarshal(*v, &quickBooksLinkedServiceTypeProperties) + if err != nil { + return err + } + qbls.QuickBooksLinkedServiceTypeProperties = &quickBooksLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if qbls.AdditionalProperties == nil { + qbls.AdditionalProperties = make(map[string]interface{}) + } + qbls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + qbls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + qbls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + qbls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + qbls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + qbls.Type = typeVar + } + } + } + + return nil +} + +// QuickBooksLinkedServiceTypeProperties quickBooks server linked service properties. +type QuickBooksLinkedServiceTypeProperties struct { + // ConnectionProperties - 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"` + // Endpoint - The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) + Endpoint interface{} `json:"endpoint,omitempty"` + // CompanyID - The company ID of the QuickBooks company to authorize. + CompanyID interface{} `json:"companyId,omitempty"` + // ConsumerKey - The consumer key for OAuth 1.0 authentication. + ConsumerKey interface{} `json:"consumerKey,omitempty"` + // ConsumerSecret - The consumer secret for OAuth 1.0 authentication. + ConsumerSecret BasicSecretBase `json:"consumerSecret,omitempty"` + // AccessToken - The access token for OAuth 1.0 authentication. + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // AccessTokenSecret - The access token secret for OAuth 1.0 authentication. + AccessTokenSecret BasicSecretBase `json:"accessTokenSecret,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for QuickBooksLinkedServiceTypeProperties struct. +func (qblstp *QuickBooksLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionProperties": + if v != nil { + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) + if err != nil { + return err + } + qblstp.ConnectionProperties = connectionProperties + } + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + qblstp.Endpoint = endpoint + } + case "companyId": + if v != nil { + var companyID interface{} + err = json.Unmarshal(*v, &companyID) + if err != nil { + return err + } + qblstp.CompanyID = companyID + } + case "consumerKey": + if v != nil { + var consumerKey interface{} + err = json.Unmarshal(*v, &consumerKey) + if err != nil { + return err + } + qblstp.ConsumerKey = consumerKey + } + case "consumerSecret": + if v != nil { + consumerSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + qblstp.ConsumerSecret = consumerSecret + } + case "accessToken": + if v != nil { + accessToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + qblstp.AccessToken = accessToken + } + case "accessTokenSecret": + if v != nil { + accessTokenSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + qblstp.AccessTokenSecret = accessTokenSecret + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + qblstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + qblstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// QuickBooksObjectDataset quickBooks server dataset. +type QuickBooksObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) MarshalJSON() ([]byte, error) { + qbod.Type = TypeBasicDatasetTypeQuickBooksObject + objectMap := make(map[string]interface{}) + if qbod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = qbod.GenericDatasetTypeProperties + } + if qbod.Description != nil { + objectMap["description"] = qbod.Description + } + if qbod.Structure != nil { + objectMap["structure"] = qbod.Structure + } + if qbod.Schema != nil { + objectMap["schema"] = qbod.Schema + } + if qbod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = qbod.LinkedServiceName + } + if qbod.Parameters != nil { + objectMap["parameters"] = qbod.Parameters + } + if qbod.Annotations != nil { + objectMap["annotations"] = qbod.Annotations + } + if qbod.Folder != nil { + objectMap["folder"] = qbod.Folder + } + if qbod.Type != "" { + objectMap["type"] = qbod.Type + } + for k, v := range qbod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return &qbod, true +} + +// AsPrestoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for QuickBooksObjectDataset. +func (qbod QuickBooksObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &qbod, true +} + +// UnmarshalJSON is the custom unmarshaler for QuickBooksObjectDataset struct. +func (qbod *QuickBooksObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + qbod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if qbod.AdditionalProperties == nil { + qbod.AdditionalProperties = make(map[string]interface{}) + } + qbod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + qbod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + qbod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + qbod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + qbod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + qbod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + qbod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + qbod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + qbod.Type = typeVar + } + } + } + + return nil +} + +// QuickBooksSource a copy activity QuickBooks server source. +type QuickBooksSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for QuickBooksSource. +func (qbs QuickBooksSource) MarshalJSON() ([]byte, error) { + qbs.Type = TypeBasicCopySourceTypeQuickBooksSource + objectMap := make(map[string]interface{}) + if qbs.Query != nil { + objectMap["query"] = qbs.Query + } + if qbs.QueryTimeout != nil { + objectMap["queryTimeout"] = qbs.QueryTimeout + } + if qbs.AdditionalColumns != nil { + objectMap["additionalColumns"] = qbs.AdditionalColumns + } + if qbs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = qbs.SourceRetryCount + } + if qbs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = qbs.SourceRetryWait + } + if qbs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = qbs.MaxConcurrentConnections + } + if qbs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = qbs.DisableMetricsCollection + } + if qbs.Type != "" { + objectMap["type"] = qbs.Type + } + for k, v := range qbs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return &qbs, true +} + +// AsPrestoSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &qbs, true +} + +// AsBinarySource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for QuickBooksSource. +func (qbs QuickBooksSource) AsBasicCopySource() (BasicCopySource, bool) { + return &qbs, true +} + +// UnmarshalJSON is the custom unmarshaler for QuickBooksSource struct. +func (qbs *QuickBooksSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + qbs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + qbs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + qbs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if qbs.AdditionalProperties == nil { + qbs.AdditionalProperties = make(map[string]interface{}) + } + qbs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + qbs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + qbs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + qbs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + qbs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + qbs.Type = typeVar + } + } + } + + return nil +} + +// QuickbaseLinkedService linked service for Quickbase. +type QuickbaseLinkedService struct { + // QuickbaseLinkedServiceTypeProperties - Quickbase linked service properties. + *QuickbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) MarshalJSON() ([]byte, error) { + qls.Type = TypeBasicLinkedServiceTypeQuickbase + objectMap := make(map[string]interface{}) + if qls.QuickbaseLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = qls.QuickbaseLinkedServiceTypeProperties + } + if qls.ConnectVia != nil { + objectMap["connectVia"] = qls.ConnectVia + } + if qls.Description != nil { + objectMap["description"] = qls.Description + } + if qls.Parameters != nil { + objectMap["parameters"] = qls.Parameters + } + if qls.Annotations != nil { + objectMap["annotations"] = qls.Annotations + } + if qls.Type != "" { + objectMap["type"] = qls.Type + } + for k, v := range qls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return &qls, true +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. +func (qls QuickbaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &qls, true +} + +// UnmarshalJSON is the custom unmarshaler for QuickbaseLinkedService struct. +func (qls *QuickbaseLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var quickbaseLinkedServiceTypeProperties QuickbaseLinkedServiceTypeProperties + err = json.Unmarshal(*v, &quickbaseLinkedServiceTypeProperties) + if err != nil { + return err + } + qls.QuickbaseLinkedServiceTypeProperties = &quickbaseLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if qls.AdditionalProperties == nil { + qls.AdditionalProperties = make(map[string]interface{}) + } + qls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + qls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + qls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + qls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + qls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + qls.Type = typeVar + } + } + } + + return nil +} + +// QuickbaseLinkedServiceTypeProperties quickbase linked service type properties. +type QuickbaseLinkedServiceTypeProperties struct { + // URL - The url to connect Quickbase source. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // UserToken - The user token for the Quickbase source. + UserToken BasicSecretBase `json:"userToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for QuickbaseLinkedServiceTypeProperties struct. +func (qlstp *QuickbaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + qlstp.URL = URL + } + case "userToken": + if v != nil { + userToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + qlstp.UserToken = userToken + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + qlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// RecurrenceSchedule the recurrence schedule. +type RecurrenceSchedule struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Minutes - The minutes. + Minutes *[]int32 `json:"minutes,omitempty"` + // Hours - The hours. + Hours *[]int32 `json:"hours,omitempty"` + // WeekDays - The days of the week. + WeekDays *[]DaysOfWeek `json:"weekDays,omitempty"` + // MonthDays - The month days. + MonthDays *[]int32 `json:"monthDays,omitempty"` + // MonthlyOccurrences - The monthly occurrences. + MonthlyOccurrences *[]RecurrenceScheduleOccurrence `json:"monthlyOccurrences,omitempty"` +} + +// MarshalJSON is the custom marshaler for RecurrenceSchedule. +func (rs RecurrenceSchedule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rs.Minutes != nil { + objectMap["minutes"] = rs.Minutes + } + if rs.Hours != nil { + objectMap["hours"] = rs.Hours + } + if rs.WeekDays != nil { + objectMap["weekDays"] = rs.WeekDays + } + if rs.MonthDays != nil { + objectMap["monthDays"] = rs.MonthDays + } + if rs.MonthlyOccurrences != nil { + objectMap["monthlyOccurrences"] = rs.MonthlyOccurrences + } + for k, v := range rs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RecurrenceSchedule struct. +func (rs *RecurrenceSchedule) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rs.AdditionalProperties == nil { + rs.AdditionalProperties = make(map[string]interface{}) + } + rs.AdditionalProperties[k] = additionalProperties + } + case "minutes": + if v != nil { + var minutes []int32 + err = json.Unmarshal(*v, &minutes) + if err != nil { + return err + } + rs.Minutes = &minutes + } + case "hours": + if v != nil { + var hours []int32 + err = json.Unmarshal(*v, &hours) + if err != nil { + return err + } + rs.Hours = &hours + } + case "weekDays": + if v != nil { + var weekDays []DaysOfWeek + err = json.Unmarshal(*v, &weekDays) + if err != nil { + return err + } + rs.WeekDays = &weekDays + } + case "monthDays": + if v != nil { + var monthDays []int32 + err = json.Unmarshal(*v, &monthDays) + if err != nil { + return err + } + rs.MonthDays = &monthDays + } + case "monthlyOccurrences": + if v != nil { + var monthlyOccurrences []RecurrenceScheduleOccurrence + err = json.Unmarshal(*v, &monthlyOccurrences) + if err != nil { + return err + } + rs.MonthlyOccurrences = &monthlyOccurrences + } + } + } + + return nil +} + +// RecurrenceScheduleOccurrence the recurrence schedule occurrence. +type RecurrenceScheduleOccurrence struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Day - The day of the week. Possible values include: 'DayOfWeekSunday', 'DayOfWeekMonday', 'DayOfWeekTuesday', 'DayOfWeekWednesday', 'DayOfWeekThursday', 'DayOfWeekFriday', 'DayOfWeekSaturday' + Day DayOfWeek `json:"day,omitempty"` + // Occurrence - The occurrence. + Occurrence *int32 `json:"occurrence,omitempty"` +} + +// MarshalJSON is the custom marshaler for RecurrenceScheduleOccurrence. +func (rso RecurrenceScheduleOccurrence) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rso.Day != "" { + objectMap["day"] = rso.Day + } + if rso.Occurrence != nil { + objectMap["occurrence"] = rso.Occurrence + } + for k, v := range rso.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RecurrenceScheduleOccurrence struct. +func (rso *RecurrenceScheduleOccurrence) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rso.AdditionalProperties == nil { + rso.AdditionalProperties = make(map[string]interface{}) + } + rso.AdditionalProperties[k] = additionalProperties + } + case "day": + if v != nil { + var day DayOfWeek + err = json.Unmarshal(*v, &day) + if err != nil { + return err + } + rso.Day = day + } + case "occurrence": + if v != nil { + var occurrence int32 + err = json.Unmarshal(*v, &occurrence) + if err != nil { + return err + } + rso.Occurrence = &occurrence + } + } + } + + return nil +} + +// RedirectIncompatibleRowSettings redirect incompatible row settings +type RedirectIncompatibleRowSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // LinkedServiceName - 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"` + // Path - The path for storing the redirect incompatible row data. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` +} + +// MarshalJSON is the custom marshaler for RedirectIncompatibleRowSettings. +func (rirs RedirectIncompatibleRowSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rirs.LinkedServiceName != nil { + objectMap["linkedServiceName"] = rirs.LinkedServiceName + } + if rirs.Path != nil { + objectMap["path"] = rirs.Path + } + for k, v := range rirs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for RedirectIncompatibleRowSettings struct. +func (rirs *RedirectIncompatibleRowSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rirs.AdditionalProperties == nil { + rirs.AdditionalProperties = make(map[string]interface{}) + } + rirs.AdditionalProperties[k] = additionalProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName interface{} + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + rirs.LinkedServiceName = linkedServiceName + } + case "path": + if v != nil { + var pathVar interface{} + err = json.Unmarshal(*v, &pathVar) + if err != nil { + return err + } + rirs.Path = pathVar + } + } + } + + return nil +} + +// RedshiftUnloadSettings 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. +type RedshiftUnloadSettings struct { + // S3LinkedServiceName - 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"` + // BucketName - 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"` +} + +// RelationalSource a copy activity source for various relational databases. +type RelationalSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RelationalSource. +func (rs RelationalSource) MarshalJSON() ([]byte, error) { + rs.Type = TypeBasicCopySourceTypeRelationalSource + objectMap := make(map[string]interface{}) + if rs.Query != nil { + objectMap["query"] = rs.Query + } + if rs.AdditionalColumns != nil { + objectMap["additionalColumns"] = rs.AdditionalColumns + } + if rs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = rs.SourceRetryCount + } + if rs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = rs.SourceRetryWait + } + if rs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections + } + if rs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection + } + if rs.Type != "" { + objectMap["type"] = rs.Type + } + for k, v := range rs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsRelationalSource() (*RelationalSource, bool) { + return &rs, true +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for RelationalSource. +func (rs RelationalSource) AsBasicCopySource() (BasicCopySource, bool) { + return &rs, true +} + +// UnmarshalJSON is the custom unmarshaler for RelationalSource struct. +func (rs *RelationalSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + rs.Query = query + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + rs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rs.AdditionalProperties == nil { + rs.AdditionalProperties = make(map[string]interface{}) + } + rs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + rs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + rs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + rs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + rs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rs.Type = typeVar + } + } + } + + return nil +} + +// RelationalTableDataset the relational table dataset. +type RelationalTableDataset struct { + // RelationalTableDatasetTypeProperties - Relational table dataset properties. + *RelationalTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RelationalTableDataset. +func (rtd RelationalTableDataset) MarshalJSON() ([]byte, error) { + rtd.Type = TypeBasicDatasetTypeRelationalTable + objectMap := make(map[string]interface{}) + if rtd.RelationalTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = rtd.RelationalTableDatasetTypeProperties + } + if rtd.Description != nil { + objectMap["description"] = rtd.Description + } + if rtd.Structure != nil { + objectMap["structure"] = rtd.Structure + } + if rtd.Schema != nil { + objectMap["schema"] = rtd.Schema + } + if rtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = rtd.LinkedServiceName + } + if rtd.Parameters != nil { + objectMap["parameters"] = rtd.Parameters + } + if rtd.Annotations != nil { + objectMap["annotations"] = rtd.Annotations + } + if rtd.Folder != nil { + objectMap["folder"] = rtd.Folder + } + if rtd.Type != "" { + objectMap["type"] = rtd.Type + } + for k, v := range rtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return &rtd, true +} + +// AsDb2TableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for RelationalTableDataset. +func (rtd RelationalTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &rtd, true +} + +// UnmarshalJSON is the custom unmarshaler for RelationalTableDataset struct. +func (rtd *RelationalTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var relationalTableDatasetTypeProperties RelationalTableDatasetTypeProperties + err = json.Unmarshal(*v, &relationalTableDatasetTypeProperties) + if err != nil { + return err + } + rtd.RelationalTableDatasetTypeProperties = &relationalTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rtd.AdditionalProperties == nil { + rtd.AdditionalProperties = make(map[string]interface{}) + } + rtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + rtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + rtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + rtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + rtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + rtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + rtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + rtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rtd.Type = typeVar + } + } + } + + return nil +} + +// RelationalTableDatasetTypeProperties relational table dataset properties. +type RelationalTableDatasetTypeProperties struct { + // TableName - The relational table name. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// RemotePrivateEndpointConnection a remote private endpoint connection +type RemotePrivateEndpointConnection struct { + // ProvisioningState - READ-ONLY + ProvisioningState *string `json:"provisioningState,omitempty"` + // PrivateEndpoint - PrivateEndpoint of a remote private endpoint connection + PrivateEndpoint *ArmIDWrapper `json:"privateEndpoint,omitempty"` + PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` +} + +// MarshalJSON is the custom marshaler for RemotePrivateEndpointConnection. +func (rpec RemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rpec.PrivateEndpoint != nil { + objectMap["privateEndpoint"] = rpec.PrivateEndpoint + } + if rpec.PrivateLinkServiceConnectionState != nil { + objectMap["privateLinkServiceConnectionState"] = rpec.PrivateLinkServiceConnectionState + } + return json.Marshal(objectMap) +} + +// RerunTumblingWindowTrigger trigger that schedules pipeline reruns for all fixed time interval windows +// from a requested start time to requested end time. +type RerunTumblingWindowTrigger struct { + // RerunTumblingWindowTriggerTypeProperties - Rerun Trigger properties. + *RerunTumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) MarshalJSON() ([]byte, error) { + rtwt.Type = TypeBasicTriggerTypeRerunTumblingWindowTrigger + objectMap := make(map[string]interface{}) + if rtwt.RerunTumblingWindowTriggerTypeProperties != nil { + objectMap["typeProperties"] = rtwt.RerunTumblingWindowTriggerTypeProperties + } + if rtwt.Description != nil { + objectMap["description"] = rtwt.Description + } + if rtwt.Annotations != nil { + objectMap["annotations"] = rtwt.Annotations + } + if rtwt.Type != "" { + objectMap["type"] = rtwt.Type + } + for k, v := range rtwt.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return &rtwt, true +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return nil, false +} + +// AsTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. +func (rtwt RerunTumblingWindowTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &rtwt, true +} + +// UnmarshalJSON is the custom unmarshaler for RerunTumblingWindowTrigger struct. +func (rtwt *RerunTumblingWindowTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var rerunTumblingWindowTriggerTypeProperties RerunTumblingWindowTriggerTypeProperties + err = json.Unmarshal(*v, &rerunTumblingWindowTriggerTypeProperties) + if err != nil { + return err + } + rtwt.RerunTumblingWindowTriggerTypeProperties = &rerunTumblingWindowTriggerTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rtwt.AdditionalProperties == nil { + rtwt.AdditionalProperties = make(map[string]interface{}) + } + rtwt.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + rtwt.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + rtwt.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + rtwt.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rtwt.Type = typeVar + } + } + } + + return nil +} + +// RerunTumblingWindowTriggerTypeProperties rerun Trigger properties. +type RerunTumblingWindowTriggerTypeProperties struct { + // ParentTrigger - The parent trigger reference. + ParentTrigger interface{} `json:"parentTrigger,omitempty"` + // RequestedStartTime - The start time for the time period for which restatement is initiated. Only UTC time is currently supported. + RequestedStartTime *date.Time `json:"requestedStartTime,omitempty"` + // RequestedEndTime - The end time for the time period for which restatement is initiated. Only UTC time is currently supported. + RequestedEndTime *date.Time `json:"requestedEndTime,omitempty"` + // RerunConcurrency - 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 { + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Location - The resource location. + Location *string `json:"location,omitempty"` + // Tags - The resource tags. + Tags map[string]*string `json:"tags"` + // ETag - READ-ONLY; Etag identifies change in the resource. + ETag *string `json:"eTag,omitempty"` +} + +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if r.Location != nil { + objectMap["location"] = r.Location + } + if r.Tags != nil { + objectMap["tags"] = r.Tags + } + return json.Marshal(objectMap) +} + +// ResponsysLinkedService responsys linked service. +type ResponsysLinkedService struct { + // ResponsysLinkedServiceTypeProperties - Responsys linked service properties. + *ResponsysLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResponsysLinkedService. +func (rls ResponsysLinkedService) MarshalJSON() ([]byte, error) { + rls.Type = TypeBasicLinkedServiceTypeResponsys + objectMap := make(map[string]interface{}) + if rls.ResponsysLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = rls.ResponsysLinkedServiceTypeProperties + } + if rls.ConnectVia != nil { + objectMap["connectVia"] = rls.ConnectVia + } + if rls.Description != nil { + objectMap["description"] = rls.Description + } + if rls.Parameters != nil { + objectMap["parameters"] = rls.Parameters + } + if rls.Annotations != nil { + objectMap["annotations"] = rls.Annotations + } + if rls.Type != "" { + objectMap["type"] = rls.Type + } + for k, v := range rls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return &rls, true +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. +func (rls ResponsysLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &rls, true +} + +// UnmarshalJSON is the custom unmarshaler for ResponsysLinkedService struct. +func (rls *ResponsysLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var responsysLinkedServiceTypeProperties ResponsysLinkedServiceTypeProperties + err = json.Unmarshal(*v, &responsysLinkedServiceTypeProperties) + if err != nil { + return err + } + rls.ResponsysLinkedServiceTypeProperties = &responsysLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rls.AdditionalProperties == nil { + rls.AdditionalProperties = make(map[string]interface{}) + } + rls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + rls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + rls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + rls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + rls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rls.Type = typeVar + } + } + } + + return nil +} + +// ResponsysLinkedServiceTypeProperties responsys linked service properties. +type ResponsysLinkedServiceTypeProperties struct { + // Endpoint - The endpoint of the Responsys server. + Endpoint interface{} `json:"endpoint,omitempty"` + // ClientID - The client ID associated with the Responsys application. Type: string (or Expression with resultType string). + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret associated with the Responsys application. Type: string (or Expression with resultType string). + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // UseEncryptedEndpoints - 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"` + // UseHostVerification - 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"` + // UsePeerVerification - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ResponsysLinkedServiceTypeProperties struct. +func (rlstp *ResponsysLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + rlstp.Endpoint = endpoint + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + rlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + rlstp.ClientSecret = clientSecret + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + rlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + rlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + rlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + rlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ResponsysObjectDataset responsys dataset. +type ResponsysObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) MarshalJSON() ([]byte, error) { + rod.Type = TypeBasicDatasetTypeResponsysObject + objectMap := make(map[string]interface{}) + if rod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = rod.GenericDatasetTypeProperties + } + if rod.Description != nil { + objectMap["description"] = rod.Description + } + if rod.Structure != nil { + objectMap["structure"] = rod.Structure + } + if rod.Schema != nil { + objectMap["schema"] = rod.Schema + } + if rod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = rod.LinkedServiceName + } + if rod.Parameters != nil { + objectMap["parameters"] = rod.Parameters + } + if rod.Annotations != nil { + objectMap["annotations"] = rod.Annotations + } + if rod.Folder != nil { + objectMap["folder"] = rod.Folder + } + if rod.Type != "" { + objectMap["type"] = rod.Type + } + for k, v := range rod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return &rod, true +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ResponsysObjectDataset. +func (rod ResponsysObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &rod, true +} + +// UnmarshalJSON is the custom unmarshaler for ResponsysObjectDataset struct. +func (rod *ResponsysObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + rod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rod.AdditionalProperties == nil { + rod.AdditionalProperties = make(map[string]interface{}) + } + rod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + rod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + rod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + rod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + rod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + rod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + rod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + rod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rod.Type = typeVar + } + } + } + + return nil +} + +// ResponsysSource a copy activity Responsys source. +type ResponsysSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ResponsysSource. +func (rs ResponsysSource) MarshalJSON() ([]byte, error) { + rs.Type = TypeBasicCopySourceTypeResponsysSource + objectMap := make(map[string]interface{}) + if rs.Query != nil { + objectMap["query"] = rs.Query + } + if rs.QueryTimeout != nil { + objectMap["queryTimeout"] = rs.QueryTimeout + } + if rs.AdditionalColumns != nil { + objectMap["additionalColumns"] = rs.AdditionalColumns + } + if rs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = rs.SourceRetryCount + } + if rs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = rs.SourceRetryWait + } + if rs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections + } + if rs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection + } + if rs.Type != "" { + objectMap["type"] = rs.Type + } + for k, v := range rs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsResponsysSource() (*ResponsysSource, bool) { + return &rs, true +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &rs, true +} + +// AsBinarySource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ResponsysSource. +func (rs ResponsysSource) AsBasicCopySource() (BasicCopySource, bool) { + return &rs, true +} + +// UnmarshalJSON is the custom unmarshaler for ResponsysSource struct. +func (rs *ResponsysSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + rs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + rs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + rs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rs.AdditionalProperties == nil { + rs.AdditionalProperties = make(map[string]interface{}) + } + rs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + rs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + rs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + rs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + rs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rs.Type = typeVar + } + } + } + + return nil +} + +// RestResourceDataset a Rest service dataset. +type RestResourceDataset struct { + // RestResourceDatasetTypeProperties - Properties specific to this dataset type. + *RestResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RestResourceDataset. +func (rrd RestResourceDataset) MarshalJSON() ([]byte, error) { + rrd.Type = TypeBasicDatasetTypeRestResource + objectMap := make(map[string]interface{}) + if rrd.RestResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = rrd.RestResourceDatasetTypeProperties + } + if rrd.Description != nil { + objectMap["description"] = rrd.Description + } + if rrd.Structure != nil { + objectMap["structure"] = rrd.Structure + } + if rrd.Schema != nil { + objectMap["schema"] = rrd.Schema + } + if rrd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = rrd.LinkedServiceName + } + if rrd.Parameters != nil { + objectMap["parameters"] = rrd.Parameters + } + if rrd.Annotations != nil { + objectMap["annotations"] = rrd.Annotations + } + if rrd.Folder != nil { + objectMap["folder"] = rrd.Folder + } + if rrd.Type != "" { + objectMap["type"] = rrd.Type + } + for k, v := range rrd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return &rrd, true +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for RestResourceDataset. +func (rrd RestResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &rrd, true +} + +// UnmarshalJSON is the custom unmarshaler for RestResourceDataset struct. +func (rrd *RestResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var restResourceDatasetTypeProperties RestResourceDatasetTypeProperties + err = json.Unmarshal(*v, &restResourceDatasetTypeProperties) + if err != nil { + return err + } + rrd.RestResourceDatasetTypeProperties = &restResourceDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rrd.AdditionalProperties == nil { + rrd.AdditionalProperties = make(map[string]interface{}) + } + rrd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + rrd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + rrd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + rrd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + rrd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + rrd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + rrd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + rrd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rrd.Type = typeVar + } + } + } + + return nil +} + +// RestResourceDatasetTypeProperties properties specific to this dataset type. +type RestResourceDatasetTypeProperties struct { + // RelativeURL - The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). + RelativeURL interface{} `json:"relativeUrl,omitempty"` + // RequestMethod - 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"` + // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + RequestBody interface{} `json:"requestBody,omitempty"` + // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. + AdditionalHeaders map[string]interface{} `json:"additionalHeaders"` + // PaginationRules - The pagination rules to compose next page requests. + PaginationRules map[string]interface{} `json:"paginationRules"` +} + +// MarshalJSON is the custom marshaler for RestResourceDatasetTypeProperties. +func (rrdtp RestResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if rrdtp.RelativeURL != nil { + objectMap["relativeUrl"] = rrdtp.RelativeURL + } + if rrdtp.RequestMethod != nil { + objectMap["requestMethod"] = rrdtp.RequestMethod + } + if rrdtp.RequestBody != nil { + objectMap["requestBody"] = rrdtp.RequestBody + } + if rrdtp.AdditionalHeaders != nil { + objectMap["additionalHeaders"] = rrdtp.AdditionalHeaders + } + if rrdtp.PaginationRules != nil { + objectMap["paginationRules"] = rrdtp.PaginationRules + } + return json.Marshal(objectMap) +} + +// RestServiceLinkedService rest Service linked service. +type RestServiceLinkedService struct { + // RestServiceLinkedServiceTypeProperties - Rest Service linked service properties. + *RestServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RestServiceLinkedService. +func (rsls RestServiceLinkedService) MarshalJSON() ([]byte, error) { + rsls.Type = TypeBasicLinkedServiceTypeRestService + objectMap := make(map[string]interface{}) + if rsls.RestServiceLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = rsls.RestServiceLinkedServiceTypeProperties + } + if rsls.ConnectVia != nil { + objectMap["connectVia"] = rsls.ConnectVia + } + if rsls.Description != nil { + objectMap["description"] = rsls.Description + } + if rsls.Parameters != nil { + objectMap["parameters"] = rsls.Parameters + } + if rsls.Annotations != nil { + objectMap["annotations"] = rsls.Annotations + } + if rsls.Type != "" { + objectMap["type"] = rsls.Type + } + for k, v := range rsls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return &rsls, true +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. +func (rsls RestServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &rsls, true +} + +// UnmarshalJSON is the custom unmarshaler for RestServiceLinkedService struct. +func (rsls *RestServiceLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var restServiceLinkedServiceTypeProperties RestServiceLinkedServiceTypeProperties + err = json.Unmarshal(*v, &restServiceLinkedServiceTypeProperties) + if err != nil { + return err + } + rsls.RestServiceLinkedServiceTypeProperties = &restServiceLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rsls.AdditionalProperties == nil { + rsls.AdditionalProperties = make(map[string]interface{}) + } + rsls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + rsls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + rsls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + rsls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + rsls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rsls.Type = typeVar + } + } + } + + return nil +} + +// RestServiceLinkedServiceTypeProperties rest Service linked service properties. +type RestServiceLinkedServiceTypeProperties struct { + // URL - The base URL of the REST service. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // EnableServerCertificateValidation - 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"` + // AuthenticationType - Type of authentication used to connect to the REST service. Possible values include: 'RestServiceAuthenticationTypeAnonymous', 'RestServiceAuthenticationTypeBasic', 'RestServiceAuthenticationTypeAadServicePrincipal', 'RestServiceAuthenticationTypeManagedServiceIdentity', 'RestServiceAuthenticationTypeOAuth2ClientCredential' + AuthenticationType RestServiceAuthenticationType `json:"authenticationType,omitempty"` + // UserName - The user name used in Basic authentication type. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - The password used in Basic authentication type. + Password BasicSecretBase `json:"password,omitempty"` + // AuthHeaders - 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"` + // ServicePrincipalID - The application's client ID used in AadServicePrincipal authentication type. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The application's key used in AadServicePrincipal authentication type. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides. Type: string (or Expression with resultType string). + Tenant interface{} `json:"tenant,omitempty"` + // AzureCloudType - 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"` + // AadResourceID - The resource you are requesting authorization to use. Type: string (or Expression with resultType string). + AadResourceID interface{} `json:"aadResourceId,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` + // ClientID - The client ID associated with your application. Type: string (or Expression with resultType string). + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret associated with your application. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // TokenEndpoint - The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string). + TokenEndpoint interface{} `json:"tokenEndpoint,omitempty"` + // Resource - The target service or resource to which the access will be requested. Type: string (or Expression with resultType string). + Resource interface{} `json:"resource,omitempty"` + // Scope - 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"` +} + +// UnmarshalJSON is the custom unmarshaler for RestServiceLinkedServiceTypeProperties struct. +func (rslstp *RestServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + rslstp.URL = URL + } + case "enableServerCertificateValidation": + if v != nil { + var enableServerCertificateValidation interface{} + err = json.Unmarshal(*v, &enableServerCertificateValidation) + if err != nil { + return err + } + rslstp.EnableServerCertificateValidation = enableServerCertificateValidation + } + case "authenticationType": + if v != nil { + var authenticationType RestServiceAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + rslstp.AuthenticationType = authenticationType + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + rslstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + rslstp.Password = password + } + case "authHeaders": + if v != nil { + var authHeaders interface{} + err = json.Unmarshal(*v, &authHeaders) + if err != nil { + return err + } + rslstp.AuthHeaders = authHeaders + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + rslstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + rslstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + rslstp.Tenant = tenant + } + case "azureCloudType": + if v != nil { + var azureCloudType interface{} + err = json.Unmarshal(*v, &azureCloudType) + if err != nil { + return err + } + rslstp.AzureCloudType = azureCloudType + } + case "aadResourceId": + if v != nil { + var aadResourceID interface{} + err = json.Unmarshal(*v, &aadResourceID) + if err != nil { + return err + } + rslstp.AadResourceID = aadResourceID + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + rslstp.EncryptedCredential = &encryptedCredential + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + rslstp.Credential = &credential + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + rslstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + rslstp.ClientSecret = clientSecret + } + case "tokenEndpoint": + if v != nil { + var tokenEndpoint interface{} + err = json.Unmarshal(*v, &tokenEndpoint) + if err != nil { + return err + } + rslstp.TokenEndpoint = tokenEndpoint + } + case "resource": + if v != nil { + var resource interface{} + err = json.Unmarshal(*v, &resource) + if err != nil { + return err + } + rslstp.Resource = resource + } + case "scope": + if v != nil { + var scope interface{} + err = json.Unmarshal(*v, &scope) + if err != nil { + return err + } + rslstp.Scope = scope + } + } + } + + return nil +} + +// RestSink a copy activity Rest service Sink. +type RestSink struct { + // RequestMethod - 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"` + // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: key value pairs (value should be string type). + AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // HTTPRequestTimeout - 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"` + // RequestInterval - The time to await before sending next request, in milliseconds + RequestInterval interface{} `json:"requestInterval,omitempty"` + // HTTPCompressionType - Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported option is Gzip. Type: string (or Expression with resultType string). + HTTPCompressionType interface{} `json:"httpCompressionType,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RestSink. +func (rs RestSink) MarshalJSON() ([]byte, error) { + rs.Type = TypeBasicCopySinkTypeRestSink + objectMap := make(map[string]interface{}) + if rs.RequestMethod != nil { + objectMap["requestMethod"] = rs.RequestMethod + } + if rs.AdditionalHeaders != nil { + objectMap["additionalHeaders"] = rs.AdditionalHeaders + } + if rs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = rs.HTTPRequestTimeout + } + if rs.RequestInterval != nil { + objectMap["requestInterval"] = rs.RequestInterval + } + if rs.HTTPCompressionType != nil { + objectMap["httpCompressionType"] = rs.HTTPCompressionType + } + if rs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = rs.WriteBatchSize + } + if rs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = rs.WriteBatchTimeout + } + if rs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = rs.SinkRetryCount + } + if rs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = rs.SinkRetryWait + } + if rs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections + } + if rs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection + } + if rs.Type != "" { + objectMap["type"] = rs.Type + } + for k, v := range rs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsRestSink() (*RestSink, bool) { + return &rs, true +} + +// AsOrcSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for RestSink. +func (rs RestSink) AsBasicCopySink() (BasicCopySink, bool) { + return &rs, true +} + +// UnmarshalJSON is the custom unmarshaler for RestSink struct. +func (rs *RestSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "requestMethod": + if v != nil { + var requestMethod interface{} + err = json.Unmarshal(*v, &requestMethod) + if err != nil { + return err + } + rs.RequestMethod = requestMethod + } + case "additionalHeaders": + if v != nil { + var additionalHeaders interface{} + err = json.Unmarshal(*v, &additionalHeaders) + if err != nil { + return err + } + rs.AdditionalHeaders = additionalHeaders + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + rs.HTTPRequestTimeout = HTTPRequestTimeout + } + case "requestInterval": + if v != nil { + var requestInterval interface{} + err = json.Unmarshal(*v, &requestInterval) + if err != nil { + return err + } + rs.RequestInterval = requestInterval + } + case "httpCompressionType": + if v != nil { + var HTTPCompressionType interface{} + err = json.Unmarshal(*v, &HTTPCompressionType) + if err != nil { + return err + } + rs.HTTPCompressionType = HTTPCompressionType + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rs.AdditionalProperties == nil { + rs.AdditionalProperties = make(map[string]interface{}) + } + rs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + rs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + rs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + rs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + rs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + rs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + rs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rs.Type = typeVar + } + } + } + + return nil +} + +// RestSource a copy activity Rest service source. +type RestSource struct { + // RequestMethod - 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"` + // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). + RequestBody interface{} `json:"requestBody,omitempty"` + // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). + AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + // PaginationRules - The pagination rules to compose next page requests. Type: string (or Expression with resultType string). + PaginationRules interface{} `json:"paginationRules,omitempty"` + // HTTPRequestTimeout - 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"` + // RequestInterval - The time to await before sending next page request. + RequestInterval interface{} `json:"requestInterval,omitempty"` + // AdditionalColumns - Specifies the additional columns to be added to source data. Type: key value pairs (value should be string type). + AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for RestSource. +func (rs RestSource) MarshalJSON() ([]byte, error) { + rs.Type = TypeBasicCopySourceTypeRestSource + objectMap := make(map[string]interface{}) + if rs.RequestMethod != nil { + objectMap["requestMethod"] = rs.RequestMethod + } + if rs.RequestBody != nil { + objectMap["requestBody"] = rs.RequestBody + } + if rs.AdditionalHeaders != nil { + objectMap["additionalHeaders"] = rs.AdditionalHeaders + } + if rs.PaginationRules != nil { + objectMap["paginationRules"] = rs.PaginationRules + } + if rs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = rs.HTTPRequestTimeout + } + if rs.RequestInterval != nil { + objectMap["requestInterval"] = rs.RequestInterval + } + if rs.AdditionalColumns != nil { + objectMap["additionalColumns"] = rs.AdditionalColumns + } + if rs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = rs.SourceRetryCount + } + if rs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = rs.SourceRetryWait + } + if rs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections + } + if rs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection + } + if rs.Type != "" { + objectMap["type"] = rs.Type + } + for k, v := range rs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsRestSource() (*RestSource, bool) { + return &rs, true +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for RestSource. +func (rs RestSource) AsBasicCopySource() (BasicCopySource, bool) { + return &rs, true +} + +// UnmarshalJSON is the custom unmarshaler for RestSource struct. +func (rs *RestSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "requestMethod": + if v != nil { + var requestMethod interface{} + err = json.Unmarshal(*v, &requestMethod) + if err != nil { + return err + } + rs.RequestMethod = requestMethod + } + case "requestBody": + if v != nil { + var requestBody interface{} + err = json.Unmarshal(*v, &requestBody) + if err != nil { + return err + } + rs.RequestBody = requestBody + } + case "additionalHeaders": + if v != nil { + var additionalHeaders interface{} + err = json.Unmarshal(*v, &additionalHeaders) + if err != nil { + return err + } + rs.AdditionalHeaders = additionalHeaders + } + case "paginationRules": + if v != nil { + var paginationRules interface{} + err = json.Unmarshal(*v, &paginationRules) + if err != nil { + return err + } + rs.PaginationRules = paginationRules + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + rs.HTTPRequestTimeout = HTTPRequestTimeout + } + case "requestInterval": + if v != nil { + var requestInterval interface{} + err = json.Unmarshal(*v, &requestInterval) + if err != nil { + return err + } + rs.RequestInterval = requestInterval + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + rs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if rs.AdditionalProperties == nil { + rs.AdditionalProperties = make(map[string]interface{}) + } + rs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + rs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + rs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + rs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + rs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + rs.Type = typeVar + } + } + } + + return nil +} + +// RetryPolicy execution policy for an activity. +type RetryPolicy struct { + // Count - Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. + Count interface{} `json:"count,omitempty"` + // IntervalInSeconds - Interval between retries in seconds. Default is 30. + IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` +} + +// RunFilterParameters query parameters for listing runs. +type RunFilterParameters struct { + // ContinuationToken - The continuation token for getting the next page of results. Null for first page. + ContinuationToken *string `json:"continuationToken,omitempty"` + // LastUpdatedAfter - The time at or after which the run event was updated in 'ISO 8601' format. + LastUpdatedAfter *date.Time `json:"lastUpdatedAfter,omitempty"` + // LastUpdatedBefore - The time at or before which the run event was updated in 'ISO 8601' format. + LastUpdatedBefore *date.Time `json:"lastUpdatedBefore,omitempty"` + // Filters - List of filters. + Filters *[]RunQueryFilter `json:"filters,omitempty"` + // OrderBy - List of OrderBy option. + OrderBy *[]RunQueryOrderBy `json:"orderBy,omitempty"` +} + +// RunQueryFilter query filter option for listing runs. +type RunQueryFilter struct { + // Operand - 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. Possible values include: 'RunQueryFilterOperandPipelineName', 'RunQueryFilterOperandStatus', 'RunQueryFilterOperandRunStart', 'RunQueryFilterOperandRunEnd', 'RunQueryFilterOperandActivityName', 'RunQueryFilterOperandActivityRunStart', 'RunQueryFilterOperandActivityRunEnd', 'RunQueryFilterOperandActivityType', 'RunQueryFilterOperandTriggerName', 'RunQueryFilterOperandTriggerRunTimestamp', 'RunQueryFilterOperandRunGroupID', 'RunQueryFilterOperandLatestOnly' + Operand RunQueryFilterOperand `json:"operand,omitempty"` + // Operator - Operator to be used for filter. Possible values include: 'RunQueryFilterOperatorEquals', 'RunQueryFilterOperatorNotEquals', 'RunQueryFilterOperatorIn', 'RunQueryFilterOperatorNotIn' + Operator RunQueryFilterOperator `json:"operator,omitempty"` + // Values - List of filter values. + Values *[]string `json:"values,omitempty"` +} + +// RunQueryOrderBy an object to provide order by options for listing runs. +type RunQueryOrderBy struct { + // OrderBy - 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. Possible values include: 'RunQueryOrderByFieldRunStart', 'RunQueryOrderByFieldRunEnd', 'RunQueryOrderByFieldPipelineName', 'RunQueryOrderByFieldStatus', 'RunQueryOrderByFieldActivityName', 'RunQueryOrderByFieldActivityRunStart', 'RunQueryOrderByFieldActivityRunEnd', 'RunQueryOrderByFieldTriggerName', 'RunQueryOrderByFieldTriggerRunTimestamp' + OrderBy RunQueryOrderByField `json:"orderBy,omitempty"` + // Order - Sorting order of the parameter. Possible values include: 'RunQueryOrderASC', 'RunQueryOrderDESC' + Order RunQueryOrder `json:"order,omitempty"` +} + +// SQLAlwaysEncryptedProperties sql always encrypted properties. +type SQLAlwaysEncryptedProperties struct { + // AlwaysEncryptedAkvAuthType - Sql always encrypted AKV authentication type. Type: string. Possible values include: 'SQLAlwaysEncryptedAkvAuthTypeServicePrincipal', 'SQLAlwaysEncryptedAkvAuthTypeManagedIdentity', 'SQLAlwaysEncryptedAkvAuthTypeUserAssignedManagedIdentity' + AlwaysEncryptedAkvAuthType SQLAlwaysEncryptedAkvAuthType `json:"alwaysEncryptedAkvAuthType,omitempty"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The key of the service principal used to authenticate against Azure Key Vault. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SQLAlwaysEncryptedProperties struct. +func (saep *SQLAlwaysEncryptedProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "alwaysEncryptedAkvAuthType": + if v != nil { + var alwaysEncryptedAkvAuthType SQLAlwaysEncryptedAkvAuthType + err = json.Unmarshal(*v, &alwaysEncryptedAkvAuthType) + if err != nil { + return err + } + saep.AlwaysEncryptedAkvAuthType = alwaysEncryptedAkvAuthType + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + saep.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + saep.ServicePrincipalKey = servicePrincipalKey + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + saep.Credential = &credential + } + } + } + + return nil +} + +// SQLDWSink a copy activity SQL Data Warehouse sink. +type SQLDWSink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AllowPolyBase - 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"` + // PolyBaseSettings - Specifies PolyBase-related settings when allowPolyBase is true. + PolyBaseSettings *PolybaseSettings `json:"polyBaseSettings,omitempty"` + // AllowCopyCommand - Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). + AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` + // CopyCommandSettings - Specifies Copy Command related settings when allowCopyCommand is true. + CopyCommandSettings *DWCopyCommandSettings `json:"copyCommandSettings,omitempty"` + // TableOption - 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"` + // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). + SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + // WriteBehavior - Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum) + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // UpsertSettings - SQL DW upsert settings. + UpsertSettings *SQLDWUpsertSettings `json:"upsertSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLDWSink. +func (sds SQLDWSink) MarshalJSON() ([]byte, error) { + sds.Type = TypeBasicCopySinkTypeSQLDWSink + objectMap := make(map[string]interface{}) + if sds.PreCopyScript != nil { + objectMap["preCopyScript"] = sds.PreCopyScript + } + if sds.AllowPolyBase != nil { + objectMap["allowPolyBase"] = sds.AllowPolyBase + } + if sds.PolyBaseSettings != nil { + objectMap["polyBaseSettings"] = sds.PolyBaseSettings + } + if sds.AllowCopyCommand != nil { + objectMap["allowCopyCommand"] = sds.AllowCopyCommand + } + if sds.CopyCommandSettings != nil { + objectMap["copyCommandSettings"] = sds.CopyCommandSettings + } + if sds.TableOption != nil { + objectMap["tableOption"] = sds.TableOption + } + if sds.SQLWriterUseTableLock != nil { + objectMap["sqlWriterUseTableLock"] = sds.SQLWriterUseTableLock + } + if sds.WriteBehavior != nil { + objectMap["writeBehavior"] = sds.WriteBehavior + } + if sds.UpsertSettings != nil { + objectMap["upsertSettings"] = sds.UpsertSettings + } + if sds.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sds.WriteBatchSize + } + if sds.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sds.WriteBatchTimeout + } + if sds.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sds.SinkRetryCount + } + if sds.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sds.SinkRetryWait + } + if sds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections + } + if sds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sds.DisableMetricsCollection + } + if sds.Type != "" { + objectMap["type"] = sds.Type + } + for k, v := range sds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSQLDWSink() (*SQLDWSink, bool) { + return &sds, true +} + +// AsSQLMISink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SQLDWSink. +func (sds SQLDWSink) AsBasicCopySink() (BasicCopySink, bool) { + return &sds, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLDWSink struct. +func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + sds.PreCopyScript = preCopyScript + } + case "allowPolyBase": + if v != nil { + var allowPolyBase interface{} + err = json.Unmarshal(*v, &allowPolyBase) + if err != nil { + return err + } + sds.AllowPolyBase = allowPolyBase + } + case "polyBaseSettings": + if v != nil { + var polyBaseSettings PolybaseSettings + err = json.Unmarshal(*v, &polyBaseSettings) + if err != nil { + return err + } + sds.PolyBaseSettings = &polyBaseSettings + } + case "allowCopyCommand": + if v != nil { + var allowCopyCommand interface{} + err = json.Unmarshal(*v, &allowCopyCommand) + if err != nil { + return err + } + sds.AllowCopyCommand = allowCopyCommand + } + case "copyCommandSettings": + if v != nil { + var copyCommandSettings DWCopyCommandSettings + err = json.Unmarshal(*v, ©CommandSettings) + if err != nil { + return err + } + sds.CopyCommandSettings = ©CommandSettings + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + sds.TableOption = tableOption + } + case "sqlWriterUseTableLock": + if v != nil { + var SQLWriterUseTableLock interface{} + err = json.Unmarshal(*v, &SQLWriterUseTableLock) + if err != nil { + return err + } + sds.SQLWriterUseTableLock = SQLWriterUseTableLock + } + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + sds.WriteBehavior = writeBehavior + } + case "upsertSettings": + if v != nil { + var upsertSettings SQLDWUpsertSettings + err = json.Unmarshal(*v, &upsertSettings) + if err != nil { + return err + } + sds.UpsertSettings = &upsertSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sds.AdditionalProperties == nil { + sds.AdditionalProperties = make(map[string]interface{}) + } + sds.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + sds.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + sds.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sds.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sds.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sds.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sds.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sds.Type = typeVar + } + } + } + + return nil +} + +// SQLDWSource a copy activity SQL Data Warehouse source. +type SQLDWSource struct { + // SQLReaderQuery - SQL Data Warehouse reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - 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"` + // StoredProcedureParameters - 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"` + // IsolationLevel - 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"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLDWSource. +func (sds SQLDWSource) MarshalJSON() ([]byte, error) { + sds.Type = TypeBasicCopySourceTypeSQLDWSource + objectMap := make(map[string]interface{}) + if sds.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = sds.SQLReaderQuery + } + if sds.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = sds.SQLReaderStoredProcedureName + } + if sds.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sds.StoredProcedureParameters + } + if sds.IsolationLevel != nil { + objectMap["isolationLevel"] = sds.IsolationLevel + } + if sds.PartitionOption != nil { + objectMap["partitionOption"] = sds.PartitionOption + } + if sds.PartitionSettings != nil { + objectMap["partitionSettings"] = sds.PartitionSettings + } + if sds.QueryTimeout != nil { + objectMap["queryTimeout"] = sds.QueryTimeout + } + if sds.AdditionalColumns != nil { + objectMap["additionalColumns"] = sds.AdditionalColumns + } + if sds.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sds.SourceRetryCount + } + if sds.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sds.SourceRetryWait + } + if sds.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections + } + if sds.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sds.DisableMetricsCollection + } + if sds.Type != "" { + objectMap["type"] = sds.Type + } + for k, v := range sds.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSQLDWSource() (*SQLDWSource, bool) { + return &sds, true +} + +// AsSQLMISource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sds, true +} + +// AsBinarySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SQLDWSource. +func (sds SQLDWSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sds, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLDWSource struct. +func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlReaderQuery": + if v != nil { + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) + if err != nil { + return err + } + sds.SQLReaderQuery = SQLReaderQuery + } + case "sqlReaderStoredProcedureName": + if v != nil { + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + if err != nil { + return err + } + sds.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + sds.StoredProcedureParameters = storedProcedureParameters + } + case "isolationLevel": + if v != nil { + var isolationLevel interface{} + err = json.Unmarshal(*v, &isolationLevel) + if err != nil { + return err + } + sds.IsolationLevel = isolationLevel + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + sds.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + sds.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sds.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sds.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sds.AdditionalProperties == nil { + sds.AdditionalProperties = make(map[string]interface{}) + } + sds.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sds.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sds.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sds.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sds.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sds.Type = typeVar + } + } + } + + return nil +} + +// SQLDWUpsertSettings sql DW upsert option settings +type SQLDWUpsertSettings struct { + // InterimSchemaName - Schema name for interim table. Type: string (or Expression with resultType string). + InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` + // Keys - Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). + Keys interface{} `json:"keys,omitempty"` +} + +// SQLMISink a copy activity Azure SQL Managed Instance sink. +type SQLMISink struct { + // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). + SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). + SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // StoredProcedureParameters - SQL stored procedure parameters. + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + // TableOption - 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"` + // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). + SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + // WriteBehavior - White behavior when copying data into azure SQL MI. Type: string (or Expression with resultType string) + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // UpsertSettings - SQL upsert settings. + UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLMISink. +func (sms SQLMISink) MarshalJSON() ([]byte, error) { + sms.Type = TypeBasicCopySinkTypeSQLMISink + objectMap := make(map[string]interface{}) + if sms.SQLWriterStoredProcedureName != nil { + objectMap["sqlWriterStoredProcedureName"] = sms.SQLWriterStoredProcedureName + } + if sms.SQLWriterTableType != nil { + objectMap["sqlWriterTableType"] = sms.SQLWriterTableType + } + if sms.PreCopyScript != nil { + objectMap["preCopyScript"] = sms.PreCopyScript + } + if sms.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sms.StoredProcedureParameters + } + if sms.StoredProcedureTableTypeParameterName != nil { + objectMap["storedProcedureTableTypeParameterName"] = sms.StoredProcedureTableTypeParameterName + } + if sms.TableOption != nil { + objectMap["tableOption"] = sms.TableOption + } + if sms.SQLWriterUseTableLock != nil { + objectMap["sqlWriterUseTableLock"] = sms.SQLWriterUseTableLock + } + if sms.WriteBehavior != nil { + objectMap["writeBehavior"] = sms.WriteBehavior + } + if sms.UpsertSettings != nil { + objectMap["upsertSettings"] = sms.UpsertSettings + } + if sms.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sms.WriteBatchSize + } + if sms.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sms.WriteBatchTimeout + } + if sms.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sms.SinkRetryCount + } + if sms.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sms.SinkRetryWait + } + if sms.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections + } + if sms.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sms.DisableMetricsCollection + } + if sms.Type != "" { + objectMap["type"] = sms.Type + } + for k, v := range sms.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSQLMISink() (*SQLMISink, bool) { + return &sms, true +} + +// AsAzureSQLSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SQLMISink. +func (sms SQLMISink) AsBasicCopySink() (BasicCopySink, bool) { + return &sms, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLMISink struct. +func (sms *SQLMISink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlWriterStoredProcedureName": + if v != nil { + var SQLWriterStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) + if err != nil { + return err + } + sms.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName + } + case "sqlWriterTableType": + if v != nil { + var SQLWriterTableType interface{} + err = json.Unmarshal(*v, &SQLWriterTableType) + if err != nil { + return err + } + sms.SQLWriterTableType = SQLWriterTableType + } + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + sms.PreCopyScript = preCopyScript + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + sms.StoredProcedureParameters = storedProcedureParameters + } + case "storedProcedureTableTypeParameterName": + if v != nil { + var storedProcedureTableTypeParameterName interface{} + err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + if err != nil { + return err + } + sms.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + sms.TableOption = tableOption + } + case "sqlWriterUseTableLock": + if v != nil { + var SQLWriterUseTableLock interface{} + err = json.Unmarshal(*v, &SQLWriterUseTableLock) + if err != nil { + return err + } + sms.SQLWriterUseTableLock = SQLWriterUseTableLock + } + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + sms.WriteBehavior = writeBehavior + } + case "upsertSettings": + if v != nil { + var upsertSettings SQLUpsertSettings + err = json.Unmarshal(*v, &upsertSettings) + if err != nil { + return err + } + sms.UpsertSettings = &upsertSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sms.AdditionalProperties == nil { + sms.AdditionalProperties = make(map[string]interface{}) + } + sms.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + sms.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + sms.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sms.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sms.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sms.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sms.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sms.Type = typeVar + } + } + } + + return nil +} + +// SQLMISource a copy activity Azure SQL Managed Instance source. +type SQLMISource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - 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"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // IsolationLevel - 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"` + // ProduceAdditionalTypes - Which additional types to produce. + ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLMISource. +func (sms SQLMISource) MarshalJSON() ([]byte, error) { + sms.Type = TypeBasicCopySourceTypeSQLMISource + objectMap := make(map[string]interface{}) + if sms.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = sms.SQLReaderQuery + } + if sms.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = sms.SQLReaderStoredProcedureName + } + if sms.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sms.StoredProcedureParameters + } + if sms.IsolationLevel != nil { + objectMap["isolationLevel"] = sms.IsolationLevel + } + if sms.ProduceAdditionalTypes != nil { + objectMap["produceAdditionalTypes"] = sms.ProduceAdditionalTypes + } + if sms.PartitionOption != nil { + objectMap["partitionOption"] = sms.PartitionOption + } + if sms.PartitionSettings != nil { + objectMap["partitionSettings"] = sms.PartitionSettings + } + if sms.QueryTimeout != nil { + objectMap["queryTimeout"] = sms.QueryTimeout + } + if sms.AdditionalColumns != nil { + objectMap["additionalColumns"] = sms.AdditionalColumns + } + if sms.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sms.SourceRetryCount + } + if sms.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sms.SourceRetryWait + } + if sms.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections + } + if sms.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sms.DisableMetricsCollection + } + if sms.Type != "" { + objectMap["type"] = sms.Type + } + for k, v := range sms.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSQLMISource() (*SQLMISource, bool) { + return &sms, true +} + +// AsAzureSQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sms, true +} + +// AsBinarySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SQLMISource. +func (sms SQLMISource) AsBasicCopySource() (BasicCopySource, bool) { + return &sms, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLMISource struct. +func (sms *SQLMISource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlReaderQuery": + if v != nil { + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) + if err != nil { + return err + } + sms.SQLReaderQuery = SQLReaderQuery + } + case "sqlReaderStoredProcedureName": + if v != nil { + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + if err != nil { + return err + } + sms.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + sms.StoredProcedureParameters = storedProcedureParameters + } + case "isolationLevel": + if v != nil { + var isolationLevel interface{} + err = json.Unmarshal(*v, &isolationLevel) + if err != nil { + return err + } + sms.IsolationLevel = isolationLevel + } + case "produceAdditionalTypes": + if v != nil { + var produceAdditionalTypes interface{} + err = json.Unmarshal(*v, &produceAdditionalTypes) + if err != nil { + return err + } + sms.ProduceAdditionalTypes = produceAdditionalTypes + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + sms.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + sms.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sms.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sms.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sms.AdditionalProperties == nil { + sms.AdditionalProperties = make(map[string]interface{}) + } + sms.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sms.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sms.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sms.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sms.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sms.Type = typeVar + } + } + } + + return nil +} + +// SQLPartitionSettings the settings that will be leveraged for Sql source partitioning. +type SQLPartitionSettings struct { + // PartitionColumnName - 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"` + // PartitionUpperBound - 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"` + // PartitionLowerBound - 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"` +} + +// SQLServerLinkedService SQL Server linked service. +type SQLServerLinkedService struct { + // SQLServerLinkedServiceTypeProperties - SQL Server linked service properties. + *SQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLServerLinkedService. +func (ssls SQLServerLinkedService) MarshalJSON() ([]byte, error) { + ssls.Type = TypeBasicLinkedServiceTypeSQLServer + objectMap := make(map[string]interface{}) + if ssls.SQLServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ssls.SQLServerLinkedServiceTypeProperties + } + if ssls.ConnectVia != nil { + objectMap["connectVia"] = ssls.ConnectVia + } + if ssls.Description != nil { + objectMap["description"] = ssls.Description + } + if ssls.Parameters != nil { + objectMap["parameters"] = ssls.Parameters + } + if ssls.Annotations != nil { + objectMap["annotations"] = ssls.Annotations + } + if ssls.Type != "" { + objectMap["type"] = ssls.Type + } + for k, v := range ssls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return &ssls, true +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. +func (ssls SQLServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ssls, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedService struct. +func (ssls *SQLServerLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var SQLServerLinkedServiceTypeProperties SQLServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &SQLServerLinkedServiceTypeProperties) + if err != nil { + return err + } + ssls.SQLServerLinkedServiceTypeProperties = &SQLServerLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ssls.AdditionalProperties == nil { + ssls.AdditionalProperties = make(map[string]interface{}) + } + ssls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ssls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ssls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ssls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ssls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ssls.Type = typeVar + } + } + } + + return nil +} + +// SQLServerLinkedServiceTypeProperties SQL Server linked service properties. +type SQLServerLinkedServiceTypeProperties struct { + // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // UserName - The on-premises Windows authentication user name. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - The on-premises Windows authentication password. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // AlwaysEncryptedSettings - Sql always encrypted properties. + AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedServiceTypeProperties struct. +func (sslstp *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + sslstp.ConnectionString = connectionString + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + sslstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sslstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + sslstp.EncryptedCredential = &encryptedCredential + } + case "alwaysEncryptedSettings": + if v != nil { + var alwaysEncryptedSettings SQLAlwaysEncryptedProperties + err = json.Unmarshal(*v, &alwaysEncryptedSettings) + if err != nil { + return err + } + sslstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings + } + } + } + + return nil +} + +// SQLServerSink a copy activity SQL server sink. +type SQLServerSink struct { + // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). + SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). + SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // StoredProcedureParameters - SQL stored procedure parameters. + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + // TableOption - 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"` + // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). + SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + // WriteBehavior - Write behavior when copying data into sql server. Type: string (or Expression with resultType string). + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // UpsertSettings - SQL upsert settings. + UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLServerSink. +func (sss SQLServerSink) MarshalJSON() ([]byte, error) { + sss.Type = TypeBasicCopySinkTypeSQLServerSink + objectMap := make(map[string]interface{}) + if sss.SQLWriterStoredProcedureName != nil { + objectMap["sqlWriterStoredProcedureName"] = sss.SQLWriterStoredProcedureName + } + if sss.SQLWriterTableType != nil { + objectMap["sqlWriterTableType"] = sss.SQLWriterTableType + } + if sss.PreCopyScript != nil { + objectMap["preCopyScript"] = sss.PreCopyScript + } + if sss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sss.StoredProcedureParameters + } + if sss.StoredProcedureTableTypeParameterName != nil { + objectMap["storedProcedureTableTypeParameterName"] = sss.StoredProcedureTableTypeParameterName + } + if sss.TableOption != nil { + objectMap["tableOption"] = sss.TableOption + } + if sss.SQLWriterUseTableLock != nil { + objectMap["sqlWriterUseTableLock"] = sss.SQLWriterUseTableLock + } + if sss.WriteBehavior != nil { + objectMap["writeBehavior"] = sss.WriteBehavior + } + if sss.UpsertSettings != nil { + objectMap["upsertSettings"] = sss.UpsertSettings + } + if sss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sss.WriteBatchSize + } + if sss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sss.WriteBatchTimeout + } + if sss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sss.SinkRetryCount + } + if sss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sss.SinkRetryWait + } + if sss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections + } + if sss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sss.DisableMetricsCollection + } + if sss.Type != "" { + objectMap["type"] = sss.Type + } + for k, v := range sss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSQLServerSink() (*SQLServerSink, bool) { + return &sss, true +} + +// AsSQLSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SQLServerSink. +func (sss SQLServerSink) AsBasicCopySink() (BasicCopySink, bool) { + return &sss, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLServerSink struct. +func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlWriterStoredProcedureName": + if v != nil { + var SQLWriterStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) + if err != nil { + return err + } + sss.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName + } + case "sqlWriterTableType": + if v != nil { + var SQLWriterTableType interface{} + err = json.Unmarshal(*v, &SQLWriterTableType) + if err != nil { + return err + } + sss.SQLWriterTableType = SQLWriterTableType + } + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + sss.PreCopyScript = preCopyScript + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + sss.StoredProcedureParameters = storedProcedureParameters + } + case "storedProcedureTableTypeParameterName": + if v != nil { + var storedProcedureTableTypeParameterName interface{} + err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + if err != nil { + return err + } + sss.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + sss.TableOption = tableOption + } + case "sqlWriterUseTableLock": + if v != nil { + var SQLWriterUseTableLock interface{} + err = json.Unmarshal(*v, &SQLWriterUseTableLock) + if err != nil { + return err + } + sss.SQLWriterUseTableLock = SQLWriterUseTableLock + } + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + sss.WriteBehavior = writeBehavior + } + case "upsertSettings": + if v != nil { + var upsertSettings SQLUpsertSettings + err = json.Unmarshal(*v, &upsertSettings) + if err != nil { + return err + } + sss.UpsertSettings = &upsertSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sss.AdditionalProperties == nil { + sss.AdditionalProperties = make(map[string]interface{}) + } + sss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + sss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + sss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sss.Type = typeVar + } + } + } + + return nil +} + +// SQLServerSource a copy activity SQL server source. +type SQLServerSource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - 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"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // IsolationLevel - 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"` + // ProduceAdditionalTypes - Which additional types to produce. + ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLServerSource. +func (sss SQLServerSource) MarshalJSON() ([]byte, error) { + sss.Type = TypeBasicCopySourceTypeSQLServerSource + objectMap := make(map[string]interface{}) + if sss.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = sss.SQLReaderQuery + } + if sss.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = sss.SQLReaderStoredProcedureName + } + if sss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = sss.StoredProcedureParameters + } + if sss.IsolationLevel != nil { + objectMap["isolationLevel"] = sss.IsolationLevel + } + if sss.ProduceAdditionalTypes != nil { + objectMap["produceAdditionalTypes"] = sss.ProduceAdditionalTypes + } + if sss.PartitionOption != nil { + objectMap["partitionOption"] = sss.PartitionOption + } + if sss.PartitionSettings != nil { + objectMap["partitionSettings"] = sss.PartitionSettings + } + if sss.QueryTimeout != nil { + objectMap["queryTimeout"] = sss.QueryTimeout + } + if sss.AdditionalColumns != nil { + objectMap["additionalColumns"] = sss.AdditionalColumns + } + if sss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sss.SourceRetryCount + } + if sss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sss.SourceRetryWait + } + if sss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections + } + if sss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sss.DisableMetricsCollection + } + if sss.Type != "" { + objectMap["type"] = sss.Type + } + for k, v := range sss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSQLServerSource() (*SQLServerSource, bool) { + return &sss, true +} + +// AsSQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sss, true +} + +// AsBinarySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SQLServerSource. +func (sss SQLServerSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sss, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLServerSource struct. +func (sss *SQLServerSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlReaderQuery": + if v != nil { + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) + if err != nil { + return err + } + sss.SQLReaderQuery = SQLReaderQuery + } + case "sqlReaderStoredProcedureName": + if v != nil { + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + if err != nil { + return err + } + sss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + sss.StoredProcedureParameters = storedProcedureParameters + } + case "isolationLevel": + if v != nil { + var isolationLevel interface{} + err = json.Unmarshal(*v, &isolationLevel) + if err != nil { + return err + } + sss.IsolationLevel = isolationLevel + } + case "produceAdditionalTypes": + if v != nil { + var produceAdditionalTypes interface{} + err = json.Unmarshal(*v, &produceAdditionalTypes) + if err != nil { + return err + } + sss.ProduceAdditionalTypes = produceAdditionalTypes + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + sss.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + sss.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sss.AdditionalProperties == nil { + sss.AdditionalProperties = make(map[string]interface{}) + } + sss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sss.Type = typeVar + } + } + } + + return nil +} + +// SQLServerStoredProcedureActivity SQL stored procedure activity type. +type SQLServerStoredProcedureActivity struct { + // SQLServerStoredProcedureActivityTypeProperties - SQL stored procedure activity properties. + *SQLServerStoredProcedureActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error) { + ssspa.Type = TypeBasicActivityTypeSQLServerStoredProcedure + objectMap := make(map[string]interface{}) + if ssspa.SQLServerStoredProcedureActivityTypeProperties != nil { + objectMap["typeProperties"] = ssspa.SQLServerStoredProcedureActivityTypeProperties + } + if ssspa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ssspa.LinkedServiceName + } + if ssspa.Policy != nil { + objectMap["policy"] = ssspa.Policy + } + if ssspa.Name != nil { + objectMap["name"] = ssspa.Name + } + if ssspa.Description != nil { + objectMap["description"] = ssspa.Description + } + if ssspa.State != "" { + objectMap["state"] = ssspa.State + } + if ssspa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ssspa.OnInactiveMarkAs + } + if ssspa.DependsOn != nil { + objectMap["dependsOn"] = ssspa.DependsOn + } + if ssspa.UserProperties != nil { + objectMap["userProperties"] = ssspa.UserProperties + } + if ssspa.Type != "" { + objectMap["type"] = ssspa.Type + } + for k, v := range ssspa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return &ssspa, true +} + +// AsCustomActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ssspa, true +} + +// AsWebHookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. +func (ssspa SQLServerStoredProcedureActivity) AsBasicActivity() (BasicActivity, bool) { + return &ssspa, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLServerStoredProcedureActivity struct. +func (ssspa *SQLServerStoredProcedureActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var SQLServerStoredProcedureActivityTypeProperties SQLServerStoredProcedureActivityTypeProperties + err = json.Unmarshal(*v, &SQLServerStoredProcedureActivityTypeProperties) + if err != nil { + return err + } + ssspa.SQLServerStoredProcedureActivityTypeProperties = &SQLServerStoredProcedureActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ssspa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ssspa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ssspa.AdditionalProperties == nil { + ssspa.AdditionalProperties = make(map[string]interface{}) + } + ssspa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ssspa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ssspa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ssspa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ssspa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ssspa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ssspa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ssspa.Type = typeVar + } + } + } + + return nil +} + +// SQLServerStoredProcedureActivityTypeProperties SQL stored procedure activity properties. +type SQLServerStoredProcedureActivityTypeProperties struct { + // StoredProcedureName - Stored procedure name. Type: string (or Expression with resultType string). + StoredProcedureName interface{} `json:"storedProcedureName,omitempty"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` +} + +// SQLServerTableDataset the on-premises SQL Server dataset. +type SQLServerTableDataset struct { + // SQLServerTableDatasetTypeProperties - On-premises SQL Server dataset properties. + *SQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLServerTableDataset. +func (sstd SQLServerTableDataset) MarshalJSON() ([]byte, error) { + sstd.Type = TypeBasicDatasetTypeSQLServerTable + objectMap := make(map[string]interface{}) + if sstd.SQLServerTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = sstd.SQLServerTableDatasetTypeProperties + } + if sstd.Description != nil { + objectMap["description"] = sstd.Description + } + if sstd.Structure != nil { + objectMap["structure"] = sstd.Structure + } + if sstd.Schema != nil { + objectMap["schema"] = sstd.Schema + } + if sstd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sstd.LinkedServiceName + } + if sstd.Parameters != nil { + objectMap["parameters"] = sstd.Parameters + } + if sstd.Annotations != nil { + objectMap["annotations"] = sstd.Annotations + } + if sstd.Folder != nil { + objectMap["folder"] = sstd.Folder + } + if sstd.Type != "" { + objectMap["type"] = sstd.Type + } + for k, v := range sstd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return &sstd, true +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SQLServerTableDataset. +func (sstd SQLServerTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &sstd, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLServerTableDataset struct. +func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var SQLServerTableDatasetTypeProperties SQLServerTableDatasetTypeProperties + err = json.Unmarshal(*v, &SQLServerTableDatasetTypeProperties) + if err != nil { + return err + } + sstd.SQLServerTableDatasetTypeProperties = &SQLServerTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sstd.AdditionalProperties == nil { + sstd.AdditionalProperties = make(map[string]interface{}) + } + sstd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sstd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sstd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sstd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sstd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sstd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sstd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sstd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sstd.Type = typeVar + } + } + } + + return nil +} + +// SQLServerTableDatasetTypeProperties on-premises SQL Server dataset properties. +type SQLServerTableDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Schema - The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the SQL Server dataset. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// SQLSink a copy activity SQL sink. +type SQLSink struct { + // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). + SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). + SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // StoredProcedureParameters - SQL stored procedure parameters. + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). + StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + // TableOption - 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"` + // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). + SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + // WriteBehavior - Write behavior when copying data into sql. Type: string (or Expression with resultType string). + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // UpsertSettings - SQL upsert settings. + UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLSink. +func (ss SQLSink) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySinkTypeSQLSink + objectMap := make(map[string]interface{}) + if ss.SQLWriterStoredProcedureName != nil { + objectMap["sqlWriterStoredProcedureName"] = ss.SQLWriterStoredProcedureName + } + if ss.SQLWriterTableType != nil { + objectMap["sqlWriterTableType"] = ss.SQLWriterTableType + } + if ss.PreCopyScript != nil { + objectMap["preCopyScript"] = ss.PreCopyScript + } + if ss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters + } + if ss.StoredProcedureTableTypeParameterName != nil { + objectMap["storedProcedureTableTypeParameterName"] = ss.StoredProcedureTableTypeParameterName + } + if ss.TableOption != nil { + objectMap["tableOption"] = ss.TableOption + } + if ss.SQLWriterUseTableLock != nil { + objectMap["sqlWriterUseTableLock"] = ss.SQLWriterUseTableLock + } + if ss.WriteBehavior != nil { + objectMap["writeBehavior"] = ss.WriteBehavior + } + if ss.UpsertSettings != nil { + objectMap["upsertSettings"] = ss.UpsertSettings + } + if ss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ss.WriteBatchSize + } + if ss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout + } + if ss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ss.SinkRetryCount + } + if ss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ss.SinkRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSQLSink() (*SQLSink, bool) { + return &ss, true +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SQLSink. +func (ss SQLSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLSink struct. +func (ss *SQLSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlWriterStoredProcedureName": + if v != nil { + var SQLWriterStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) + if err != nil { + return err + } + ss.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName + } + case "sqlWriterTableType": + if v != nil { + var SQLWriterTableType interface{} + err = json.Unmarshal(*v, &SQLWriterTableType) + if err != nil { + return err + } + ss.SQLWriterTableType = SQLWriterTableType + } + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + ss.PreCopyScript = preCopyScript + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + ss.StoredProcedureParameters = storedProcedureParameters + } + case "storedProcedureTableTypeParameterName": + if v != nil { + var storedProcedureTableTypeParameterName interface{} + err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) + if err != nil { + return err + } + ss.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + ss.TableOption = tableOption + } + case "sqlWriterUseTableLock": + if v != nil { + var SQLWriterUseTableLock interface{} + err = json.Unmarshal(*v, &SQLWriterUseTableLock) + if err != nil { + return err + } + ss.SQLWriterUseTableLock = SQLWriterUseTableLock + } + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + ss.WriteBehavior = writeBehavior + } + case "upsertSettings": + if v != nil { + var upsertSettings SQLUpsertSettings + err = json.Unmarshal(*v, &upsertSettings) + if err != nil { + return err + } + ss.UpsertSettings = &upsertSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SQLSource a copy activity SQL source. +type SQLSource struct { + // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - 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"` + // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". + StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + // IsolationLevel - 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"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SQLSource. +func (ss SQLSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySourceTypeSQLSource + objectMap := make(map[string]interface{}) + if ss.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = ss.SQLReaderQuery + } + if ss.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = ss.SQLReaderStoredProcedureName + } + if ss.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters + } + if ss.IsolationLevel != nil { + objectMap["isolationLevel"] = ss.IsolationLevel + } + if ss.PartitionOption != nil { + objectMap["partitionOption"] = ss.PartitionOption + } + if ss.PartitionSettings != nil { + objectMap["partitionSettings"] = ss.PartitionSettings + } + if ss.QueryTimeout != nil { + objectMap["queryTimeout"] = ss.QueryTimeout + } + if ss.AdditionalColumns != nil { + objectMap["additionalColumns"] = ss.AdditionalColumns + } + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount + } + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSQLSource() (*SQLSource, bool) { + return &ss, true +} + +// AsSapTableSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ss, true +} + +// AsBinarySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SQLSource. +func (ss SQLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SQLSource struct. +func (ss *SQLSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlReaderQuery": + if v != nil { + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) + if err != nil { + return err + } + ss.SQLReaderQuery = SQLReaderQuery + } + case "sqlReaderStoredProcedureName": + if v != nil { + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + if err != nil { + return err + } + ss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + ss.StoredProcedureParameters = storedProcedureParameters + } + case "isolationLevel": + if v != nil { + var isolationLevel interface{} + err = json.Unmarshal(*v, &isolationLevel) + if err != nil { + return err + } + ss.IsolationLevel = isolationLevel + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + ss.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + ss.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SQLUpsertSettings sql upsert option settings +type SQLUpsertSettings struct { + // UseTempDB - Specifies whether to use temp db for upsert interim table. Type: boolean (or Expression with resultType boolean). + UseTempDB interface{} `json:"useTempDB,omitempty"` + // InterimSchemaName - Schema name for interim table. Type: string (or Expression with resultType string). + InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` + // Keys - Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). + Keys interface{} `json:"keys,omitempty"` +} + +// SSISAccessCredential SSIS access credential. +type SSISAccessCredential struct { + // Domain - Domain for windows authentication. Type: string (or Expression with resultType string). + Domain interface{} `json:"domain,omitempty"` + // UserName - UseName for windows authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for windows authentication. + Password BasicSecretBase `json:"password,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SSISAccessCredential struct. +func (sac *SSISAccessCredential) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "domain": + if v != nil { + var domain interface{} + err = json.Unmarshal(*v, &domain) + if err != nil { + return err + } + sac.Domain = domain + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + sac.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sac.Password = password + } + } + } + + return nil +} + +// SSISChildPackage SSIS embedded child package. +type SSISChildPackage struct { + // PackagePath - Path for embedded child package. Type: string (or Expression with resultType string). + PackagePath interface{} `json:"packagePath,omitempty"` + // PackageName - Name for embedded child package. + PackageName *string `json:"packageName,omitempty"` + // PackageContent - Content for embedded child package. Type: string (or Expression with resultType string). + PackageContent interface{} `json:"packageContent,omitempty"` + // PackageLastModifiedDate - Last modified date for embedded child package. + PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` +} + +// SSISExecutionCredential SSIS package execution credential. +type SSISExecutionCredential struct { + // Domain - Domain for windows authentication. Type: string (or Expression with resultType string). + Domain interface{} `json:"domain,omitempty"` + // UserName - UseName for windows authentication. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password for windows authentication. + Password *SecureString `json:"password,omitempty"` +} + +// SSISExecutionParameter SSIS execution parameter. +type SSISExecutionParameter struct { + // Value - SSIS package execution parameter value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` +} + +// SSISLogLocation SSIS package execution log location +type SSISLogLocation struct { + // LogPath - The SSIS package execution log path. Type: string (or Expression with resultType string). + LogPath interface{} `json:"logPath,omitempty"` + // Type - The type of SSIS log location. + Type *string `json:"type,omitempty"` + // SSISLogLocationTypeProperties - SSIS package execution log location properties. + *SSISLogLocationTypeProperties `json:"typeProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for SSISLogLocation. +func (sll SSISLogLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if sll.LogPath != nil { + objectMap["logPath"] = sll.LogPath + } + if sll.Type != nil { + objectMap["type"] = sll.Type + } + if sll.SSISLogLocationTypeProperties != nil { + objectMap["typeProperties"] = sll.SSISLogLocationTypeProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SSISLogLocation struct. +func (sll *SSISLogLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "logPath": + if v != nil { + var logPath interface{} + err = json.Unmarshal(*v, &logPath) + if err != nil { + return err + } + sll.LogPath = logPath + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sll.Type = &typeVar + } + case "typeProperties": + if v != nil { + var sSISLogLocationTypeProperties SSISLogLocationTypeProperties + err = json.Unmarshal(*v, &sSISLogLocationTypeProperties) + if err != nil { + return err + } + sll.SSISLogLocationTypeProperties = &sSISLogLocationTypeProperties + } + } + } + + return nil +} + +// SSISLogLocationTypeProperties SSIS package execution log location properties. +type SSISLogLocationTypeProperties struct { + // AccessCredential - The package execution log access credential. + AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` + // LogRefreshInterval - 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"` +} + +// SSISPackageLocation SSIS package location. +type SSISPackageLocation struct { + // PackagePath - The SSIS package path. Type: string (or Expression with resultType string). + PackagePath interface{} `json:"packagePath,omitempty"` + // Type - The type of SSIS package location. Possible values include: 'SsisPackageLocationTypeSSISDB', 'SsisPackageLocationTypeFile', 'SsisPackageLocationTypeInlinePackage', 'SsisPackageLocationTypePackageStore' + Type SsisPackageLocationType `json:"type,omitempty"` + // SSISPackageLocationTypeProperties - SSIS package location properties. + *SSISPackageLocationTypeProperties `json:"typeProperties,omitempty"` +} + +// MarshalJSON is the custom marshaler for SSISPackageLocation. +func (spl SSISPackageLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if spl.PackagePath != nil { + objectMap["packagePath"] = spl.PackagePath + } + if spl.Type != "" { + objectMap["type"] = spl.Type + } + if spl.SSISPackageLocationTypeProperties != nil { + objectMap["typeProperties"] = spl.SSISPackageLocationTypeProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for SSISPackageLocation struct. +func (spl *SSISPackageLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "packagePath": + if v != nil { + var packagePath interface{} + err = json.Unmarshal(*v, &packagePath) + if err != nil { + return err + } + spl.PackagePath = packagePath + } + case "type": + if v != nil { + var typeVar SsisPackageLocationType + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + spl.Type = typeVar + } + case "typeProperties": + if v != nil { + var sSISPackageLocationTypeProperties SSISPackageLocationTypeProperties + err = json.Unmarshal(*v, &sSISPackageLocationTypeProperties) + if err != nil { + return err + } + spl.SSISPackageLocationTypeProperties = &sSISPackageLocationTypeProperties + } + } + } + + return nil +} + +// SSISPackageLocationTypeProperties SSIS package location properties. +type SSISPackageLocationTypeProperties struct { + // PackagePassword - Password of the package. + PackagePassword BasicSecretBase `json:"packagePassword,omitempty"` + // AccessCredential - The package access credential. + AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` + // ConfigurationPath - The configuration file of the package execution. Type: string (or Expression with resultType string). + ConfigurationPath interface{} `json:"configurationPath,omitempty"` + // ConfigurationAccessCredential - The configuration file access credential. + ConfigurationAccessCredential *SSISAccessCredential `json:"configurationAccessCredential,omitempty"` + // PackageName - The package name. + PackageName *string `json:"packageName,omitempty"` + // PackageContent - The embedded package content. Type: string (or Expression with resultType string). + PackageContent interface{} `json:"packageContent,omitempty"` + // PackageLastModifiedDate - The embedded package last modified date. + PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` + // ChildPackages - The embedded child package list. + ChildPackages *[]SSISChildPackage `json:"childPackages,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SSISPackageLocationTypeProperties struct. +func (spltp *SSISPackageLocationTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "packagePassword": + if v != nil { + packagePassword, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + spltp.PackagePassword = packagePassword + } + case "accessCredential": + if v != nil { + var accessCredential SSISAccessCredential + err = json.Unmarshal(*v, &accessCredential) + if err != nil { + return err + } + spltp.AccessCredential = &accessCredential + } + case "configurationPath": + if v != nil { + var configurationPath interface{} + err = json.Unmarshal(*v, &configurationPath) + if err != nil { + return err + } + spltp.ConfigurationPath = configurationPath + } + case "configurationAccessCredential": + if v != nil { + var configurationAccessCredential SSISAccessCredential + err = json.Unmarshal(*v, &configurationAccessCredential) + if err != nil { + return err + } + spltp.ConfigurationAccessCredential = &configurationAccessCredential + } + case "packageName": + if v != nil { + var packageName string + err = json.Unmarshal(*v, &packageName) + if err != nil { + return err + } + spltp.PackageName = &packageName + } + case "packageContent": + if v != nil { + var packageContent interface{} + err = json.Unmarshal(*v, &packageContent) + if err != nil { + return err + } + spltp.PackageContent = packageContent + } + case "packageLastModifiedDate": + if v != nil { + var packageLastModifiedDate string + err = json.Unmarshal(*v, &packageLastModifiedDate) + if err != nil { + return err + } + spltp.PackageLastModifiedDate = &packageLastModifiedDate + } + case "childPackages": + if v != nil { + var childPackages []SSISChildPackage + err = json.Unmarshal(*v, &childPackages) + if err != nil { + return err + } + spltp.ChildPackages = &childPackages + } + } + } + + return nil +} + +// SSISPropertyOverride SSIS property override. +type SSISPropertyOverride struct { + // Value - SSIS package property override value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` + // IsSensitive - Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true + IsSensitive *bool `json:"isSensitive,omitempty"` +} + +// SalesforceLinkedService linked service for Salesforce. +type SalesforceLinkedService struct { + // SalesforceLinkedServiceTypeProperties - Salesforce linked service properties. + *SalesforceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceLinkedService. +func (sls SalesforceLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeBasicLinkedServiceTypeSalesforce + objectMap := make(map[string]interface{}) + if sls.SalesforceLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SalesforceLinkedServiceTypeProperties + } + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia + } + if sls.Description != nil { + objectMap["description"] = sls.Description + } + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters + } + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations + } + if sls.Type != "" { + objectMap["type"] = sls.Type + } + for k, v := range sls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return &sls, true +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. +func (sls SalesforceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedService struct. +func (sls *SalesforceLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceLinkedServiceTypeProperties SalesforceLinkedServiceTypeProperties + err = json.Unmarshal(*v, &salesforceLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.SalesforceLinkedServiceTypeProperties = &salesforceLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) + } + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sls.Type = typeVar + } + } + } + + return nil +} + +// SalesforceLinkedServiceTypeProperties salesforce linked service properties. +type SalesforceLinkedServiceTypeProperties struct { + // EnvironmentURL - 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"` + // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password for Basic authentication of the Salesforce instance. + Password BasicSecretBase `json:"password,omitempty"` + // SecurityToken - The security token is optional to remotely access Salesforce instance. + SecurityToken BasicSecretBase `json:"securityToken,omitempty"` + // APIVersion - The Salesforce API version used in ADF. Type: string (or Expression with resultType string). + APIVersion interface{} `json:"apiVersion,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedServiceTypeProperties struct. +func (slstp *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "environmentUrl": + if v != nil { + var environmentURL interface{} + err = json.Unmarshal(*v, &environmentURL) + if err != nil { + return err + } + slstp.EnvironmentURL = environmentURL + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + slstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slstp.Password = password + } + case "securityToken": + if v != nil { + securityToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slstp.SecurityToken = securityToken + } + case "apiVersion": + if v != nil { + var APIVersion interface{} + err = json.Unmarshal(*v, &APIVersion) + if err != nil { + return err + } + slstp.APIVersion = APIVersion + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SalesforceMarketingCloudLinkedService salesforce Marketing Cloud linked service. +type SalesforceMarketingCloudLinkedService struct { + // SalesforceMarketingCloudLinkedServiceTypeProperties - Salesforce Marketing Cloud linked service properties. + *SalesforceMarketingCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error) { + smcls.Type = TypeBasicLinkedServiceTypeSalesforceMarketingCloud + objectMap := make(map[string]interface{}) + if smcls.SalesforceMarketingCloudLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = smcls.SalesforceMarketingCloudLinkedServiceTypeProperties + } + if smcls.ConnectVia != nil { + objectMap["connectVia"] = smcls.ConnectVia + } + if smcls.Description != nil { + objectMap["description"] = smcls.Description + } + if smcls.Parameters != nil { + objectMap["parameters"] = smcls.Parameters + } + if smcls.Annotations != nil { + objectMap["annotations"] = smcls.Annotations + } + if smcls.Type != "" { + objectMap["type"] = smcls.Type + } + for k, v := range smcls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return &smcls, true +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. +func (smcls SalesforceMarketingCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &smcls, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedService struct. +func (smcls *SalesforceMarketingCloudLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceMarketingCloudLinkedServiceTypeProperties SalesforceMarketingCloudLinkedServiceTypeProperties + err = json.Unmarshal(*v, &salesforceMarketingCloudLinkedServiceTypeProperties) + if err != nil { + return err + } + smcls.SalesforceMarketingCloudLinkedServiceTypeProperties = &salesforceMarketingCloudLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if smcls.AdditionalProperties == nil { + smcls.AdditionalProperties = make(map[string]interface{}) + } + smcls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + smcls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + smcls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + smcls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + smcls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + smcls.Type = typeVar + } + } + } + + return nil +} + +// SalesforceMarketingCloudLinkedServiceTypeProperties salesforce Marketing Cloud linked service +// properties. +type SalesforceMarketingCloudLinkedServiceTypeProperties struct { + // ConnectionProperties - 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"` + // ClientID - The client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // UseEncryptedEndpoints - 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"` + // UseHostVerification - 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"` + // UsePeerVerification - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedServiceTypeProperties struct. +func (smclstp *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionProperties": + if v != nil { + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) + if err != nil { + return err + } + smclstp.ConnectionProperties = connectionProperties + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + smclstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + smclstp.ClientSecret = clientSecret + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + smclstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + smclstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + smclstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + smclstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SalesforceMarketingCloudObjectDataset salesforce Marketing Cloud dataset. +type SalesforceMarketingCloudObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) MarshalJSON() ([]byte, error) { + smcod.Type = TypeBasicDatasetTypeSalesforceMarketingCloudObject + objectMap := make(map[string]interface{}) + if smcod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = smcod.GenericDatasetTypeProperties + } + if smcod.Description != nil { + objectMap["description"] = smcod.Description + } + if smcod.Structure != nil { + objectMap["structure"] = smcod.Structure + } + if smcod.Schema != nil { + objectMap["schema"] = smcod.Schema + } + if smcod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = smcod.LinkedServiceName + } + if smcod.Parameters != nil { + objectMap["parameters"] = smcod.Parameters + } + if smcod.Annotations != nil { + objectMap["annotations"] = smcod.Annotations + } + if smcod.Folder != nil { + objectMap["folder"] = smcod.Folder + } + if smcod.Type != "" { + objectMap["type"] = smcod.Type + } + for k, v := range smcod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return &smcod, true +} + +// AsVerticaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. +func (smcod SalesforceMarketingCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &smcod, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudObjectDataset struct. +func (smcod *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + smcod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if smcod.AdditionalProperties == nil { + smcod.AdditionalProperties = make(map[string]interface{}) + } + smcod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + smcod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + smcod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + smcod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + smcod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + smcod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + smcod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + smcod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + smcod.Type = typeVar + } + } + } + + return nil +} + +// SalesforceMarketingCloudSource a copy activity Salesforce Marketing Cloud source. +type SalesforceMarketingCloudSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error) { + smcs.Type = TypeBasicCopySourceTypeSalesforceMarketingCloudSource + objectMap := make(map[string]interface{}) + if smcs.Query != nil { + objectMap["query"] = smcs.Query + } + if smcs.QueryTimeout != nil { + objectMap["queryTimeout"] = smcs.QueryTimeout + } + if smcs.AdditionalColumns != nil { + objectMap["additionalColumns"] = smcs.AdditionalColumns + } + if smcs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = smcs.SourceRetryCount + } + if smcs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = smcs.SourceRetryWait + } + if smcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = smcs.MaxConcurrentConnections + } + if smcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = smcs.DisableMetricsCollection + } + if smcs.Type != "" { + objectMap["type"] = smcs.Type + } + for k, v := range smcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return &smcs, true +} + +// AsVerticaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &smcs, true +} + +// AsBinarySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. +func (smcs SalesforceMarketingCloudSource) AsBasicCopySource() (BasicCopySource, bool) { + return &smcs, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudSource struct. +func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + smcs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + smcs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + smcs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if smcs.AdditionalProperties == nil { + smcs.AdditionalProperties = make(map[string]interface{}) + } + smcs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + smcs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + smcs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + smcs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + smcs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + smcs.Type = typeVar + } + } + } + + return nil +} + +// SalesforceObjectDataset the Salesforce object dataset. +type SalesforceObjectDataset struct { + // SalesforceObjectDatasetTypeProperties - Salesforce object dataset properties. + *SalesforceObjectDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) MarshalJSON() ([]byte, error) { + sod.Type = TypeBasicDatasetTypeSalesforceObject + objectMap := make(map[string]interface{}) + if sod.SalesforceObjectDatasetTypeProperties != nil { + objectMap["typeProperties"] = sod.SalesforceObjectDatasetTypeProperties + } + if sod.Description != nil { + objectMap["description"] = sod.Description + } + if sod.Structure != nil { + objectMap["structure"] = sod.Structure + } + if sod.Schema != nil { + objectMap["schema"] = sod.Schema + } + if sod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sod.LinkedServiceName + } + if sod.Parameters != nil { + objectMap["parameters"] = sod.Parameters + } + if sod.Annotations != nil { + objectMap["annotations"] = sod.Annotations + } + if sod.Folder != nil { + objectMap["folder"] = sod.Folder + } + if sod.Type != "" { + objectMap["type"] = sod.Type + } + for k, v := range sod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return &sod, true +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SalesforceObjectDataset. +func (sod SalesforceObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sod, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceObjectDataset struct. +func (sod *SalesforceObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceObjectDatasetTypeProperties SalesforceObjectDatasetTypeProperties + err = json.Unmarshal(*v, &salesforceObjectDatasetTypeProperties) + if err != nil { + return err + } + sod.SalesforceObjectDatasetTypeProperties = &salesforceObjectDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sod.AdditionalProperties == nil { + sod.AdditionalProperties = make(map[string]interface{}) + } + sod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sod.Type = typeVar + } + } + } + + return nil +} + +// SalesforceObjectDatasetTypeProperties salesforce object dataset properties. +type SalesforceObjectDatasetTypeProperties struct { + // ObjectAPIName - The Salesforce object API name. Type: string (or Expression with resultType string). + ObjectAPIName interface{} `json:"objectApiName,omitempty"` +} + +// SalesforceServiceCloudLinkedService linked service for Salesforce Service Cloud. +type SalesforceServiceCloudLinkedService struct { + // SalesforceServiceCloudLinkedServiceTypeProperties - Salesforce Service Cloud linked service properties. + *SalesforceServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { + sscls.Type = TypeBasicLinkedServiceTypeSalesforceServiceCloud + objectMap := make(map[string]interface{}) + if sscls.SalesforceServiceCloudLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sscls.SalesforceServiceCloudLinkedServiceTypeProperties + } + if sscls.ConnectVia != nil { + objectMap["connectVia"] = sscls.ConnectVia + } + if sscls.Description != nil { + objectMap["description"] = sscls.Description + } + if sscls.Parameters != nil { + objectMap["parameters"] = sscls.Parameters + } + if sscls.Annotations != nil { + objectMap["annotations"] = sscls.Annotations + } + if sscls.Type != "" { + objectMap["type"] = sscls.Type + } + for k, v := range sscls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return &sscls, true +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. +func (sscls SalesforceServiceCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sscls, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudLinkedService struct. +func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceServiceCloudLinkedServiceTypeProperties SalesforceServiceCloudLinkedServiceTypeProperties + err = json.Unmarshal(*v, &salesforceServiceCloudLinkedServiceTypeProperties) + if err != nil { + return err + } + sscls.SalesforceServiceCloudLinkedServiceTypeProperties = &salesforceServiceCloudLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscls.AdditionalProperties == nil { + sscls.AdditionalProperties = make(map[string]interface{}) + } + sscls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sscls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sscls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sscls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sscls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscls.Type = typeVar + } + } + } + + return nil +} + +// SalesforceServiceCloudLinkedServiceTypeProperties salesforce Service Cloud linked service properties. +type SalesforceServiceCloudLinkedServiceTypeProperties struct { + // EnvironmentURL - 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"` + // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password for Basic authentication of the Salesforce instance. + Password BasicSecretBase `json:"password,omitempty"` + // SecurityToken - The security token is optional to remotely access Salesforce instance. + SecurityToken BasicSecretBase `json:"securityToken,omitempty"` + // APIVersion - The Salesforce API version used in ADF. Type: string (or Expression with resultType string). + APIVersion interface{} `json:"apiVersion,omitempty"` + // ExtendedProperties - Extended properties appended to the connection string. Type: string (or Expression with resultType string). + ExtendedProperties interface{} `json:"extendedProperties,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudLinkedServiceTypeProperties struct. +func (ssclstp *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "environmentUrl": + if v != nil { + var environmentURL interface{} + err = json.Unmarshal(*v, &environmentURL) + if err != nil { + return err + } + ssclstp.EnvironmentURL = environmentURL + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + ssclstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + ssclstp.Password = password + } + case "securityToken": + if v != nil { + securityToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + ssclstp.SecurityToken = securityToken + } + case "apiVersion": + if v != nil { + var APIVersion interface{} + err = json.Unmarshal(*v, &APIVersion) + if err != nil { + return err + } + ssclstp.APIVersion = APIVersion + } + case "extendedProperties": + if v != nil { + var extendedProperties interface{} + err = json.Unmarshal(*v, &extendedProperties) + if err != nil { + return err + } + ssclstp.ExtendedProperties = extendedProperties + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + ssclstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SalesforceServiceCloudObjectDataset the Salesforce Service Cloud object dataset. +type SalesforceServiceCloudObjectDataset struct { + // SalesforceServiceCloudObjectDatasetTypeProperties - Salesforce Service Cloud object dataset properties. + *SalesforceServiceCloudObjectDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { + sscod.Type = TypeBasicDatasetTypeSalesforceServiceCloudObject + objectMap := make(map[string]interface{}) + if sscod.SalesforceServiceCloudObjectDatasetTypeProperties != nil { + objectMap["typeProperties"] = sscod.SalesforceServiceCloudObjectDatasetTypeProperties + } + if sscod.Description != nil { + objectMap["description"] = sscod.Description + } + if sscod.Structure != nil { + objectMap["structure"] = sscod.Structure + } + if sscod.Schema != nil { + objectMap["schema"] = sscod.Schema + } + if sscod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sscod.LinkedServiceName + } + if sscod.Parameters != nil { + objectMap["parameters"] = sscod.Parameters + } + if sscod.Annotations != nil { + objectMap["annotations"] = sscod.Annotations + } + if sscod.Folder != nil { + objectMap["folder"] = sscod.Folder + } + if sscod.Type != "" { + objectMap["type"] = sscod.Type + } + for k, v := range sscod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return &sscod, true +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. +func (sscod SalesforceServiceCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sscod, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudObjectDataset struct. +func (sscod *SalesforceServiceCloudObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceServiceCloudObjectDatasetTypeProperties SalesforceServiceCloudObjectDatasetTypeProperties + err = json.Unmarshal(*v, &salesforceServiceCloudObjectDatasetTypeProperties) + if err != nil { + return err + } + sscod.SalesforceServiceCloudObjectDatasetTypeProperties = &salesforceServiceCloudObjectDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscod.AdditionalProperties == nil { + sscod.AdditionalProperties = make(map[string]interface{}) + } + sscod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sscod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sscod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sscod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sscod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sscod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sscod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sscod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscod.Type = typeVar + } + } + } + + return nil +} + +// SalesforceServiceCloudObjectDatasetTypeProperties salesforce Service Cloud object dataset properties. +type SalesforceServiceCloudObjectDatasetTypeProperties struct { + // ObjectAPIName - The Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). + ObjectAPIName interface{} `json:"objectApiName,omitempty"` +} + +// SalesforceServiceCloudSink a copy activity Salesforce Service Cloud sink. +type SalesforceServiceCloudSink struct { + // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceSinkWriteBehaviorInsert', 'SalesforceSinkWriteBehaviorUpsert' + WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` + // ExternalIDFieldName - 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"` + // IgnoreNullValues - 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 interface{} `json:"ignoreNullValues,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { + sscs.Type = TypeBasicCopySinkTypeSalesforceServiceCloudSink + objectMap := make(map[string]interface{}) + if sscs.WriteBehavior != "" { + objectMap["writeBehavior"] = sscs.WriteBehavior + } + if sscs.ExternalIDFieldName != nil { + objectMap["externalIdFieldName"] = sscs.ExternalIDFieldName + } + if sscs.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = sscs.IgnoreNullValues + } + if sscs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sscs.WriteBatchSize + } + if sscs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sscs.WriteBatchTimeout + } + if sscs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sscs.SinkRetryCount + } + if sscs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sscs.SinkRetryWait + } + if sscs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections + } + if sscs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sscs.DisableMetricsCollection + } + if sscs.Type != "" { + objectMap["type"] = sscs.Type + } + for k, v := range sscs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return &sscs, true +} + +// AsSalesforceSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SalesforceServiceCloudSink. +func (sscs SalesforceServiceCloudSink) AsBasicCopySink() (BasicCopySink, bool) { + return &sscs, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudSink struct. +func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior SalesforceSinkWriteBehavior + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + sscs.WriteBehavior = writeBehavior + } + case "externalIdFieldName": + if v != nil { + var externalIDFieldName interface{} + err = json.Unmarshal(*v, &externalIDFieldName) + if err != nil { + return err + } + sscs.ExternalIDFieldName = externalIDFieldName + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + sscs.IgnoreNullValues = ignoreNullValues + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscs.AdditionalProperties == nil { + sscs.AdditionalProperties = make(map[string]interface{}) + } + sscs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + sscs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + sscs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sscs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sscs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sscs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sscs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscs.Type = typeVar + } + } + } + + return nil +} + +// SalesforceServiceCloudSource a copy activity Salesforce Service Cloud source. +type SalesforceServiceCloudSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // ReadBehavior - The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with resultType string). + ReadBehavior interface{} `json:"readBehavior,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) MarshalJSON() ([]byte, error) { + sscs.Type = TypeBasicCopySourceTypeSalesforceServiceCloudSource + objectMap := make(map[string]interface{}) + if sscs.Query != nil { + objectMap["query"] = sscs.Query + } + if sscs.ReadBehavior != nil { + objectMap["readBehavior"] = sscs.ReadBehavior + } + if sscs.AdditionalColumns != nil { + objectMap["additionalColumns"] = sscs.AdditionalColumns + } + if sscs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sscs.SourceRetryCount + } + if sscs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sscs.SourceRetryWait + } + if sscs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections + } + if sscs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sscs.DisableMetricsCollection + } + if sscs.Type != "" { + objectMap["type"] = sscs.Type + } + for k, v := range sscs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return &sscs, true +} + +// AsODataSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SalesforceServiceCloudSource. +func (sscs SalesforceServiceCloudSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sscs, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudSource struct. +func (sscs *SalesforceServiceCloudSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + sscs.Query = query + } + case "readBehavior": + if v != nil { + var readBehavior interface{} + err = json.Unmarshal(*v, &readBehavior) + if err != nil { + return err + } + sscs.ReadBehavior = readBehavior + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sscs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscs.AdditionalProperties == nil { + sscs.AdditionalProperties = make(map[string]interface{}) + } + sscs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sscs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sscs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sscs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sscs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscs.Type = typeVar + } + } + } + + return nil +} + +// SalesforceServiceCloudV2LinkedService linked service for Salesforce Service Cloud V2. +type SalesforceServiceCloudV2LinkedService struct { + // SalesforceServiceCloudV2LinkedServiceTypeProperties - Salesforce Service Cloud V2 linked service properties. + *SalesforceServiceCloudV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) MarshalJSON() ([]byte, error) { + sscvls.Type = TypeBasicLinkedServiceTypeSalesforceServiceCloudV2 + objectMap := make(map[string]interface{}) + if sscvls.SalesforceServiceCloudV2LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sscvls.SalesforceServiceCloudV2LinkedServiceTypeProperties + } + if sscvls.ConnectVia != nil { + objectMap["connectVia"] = sscvls.ConnectVia + } + if sscvls.Description != nil { + objectMap["description"] = sscvls.Description + } + if sscvls.Parameters != nil { + objectMap["parameters"] = sscvls.Parameters + } + if sscvls.Annotations != nil { + objectMap["annotations"] = sscvls.Annotations + } + if sscvls.Type != "" { + objectMap["type"] = sscvls.Type + } + for k, v := range sscvls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return &sscvls, true +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. +func (sscvls SalesforceServiceCloudV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sscvls, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2LinkedService struct. +func (sscvls *SalesforceServiceCloudV2LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceServiceCloudV2LinkedServiceTypeProperties SalesforceServiceCloudV2LinkedServiceTypeProperties + err = json.Unmarshal(*v, &salesforceServiceCloudV2LinkedServiceTypeProperties) + if err != nil { + return err + } + sscvls.SalesforceServiceCloudV2LinkedServiceTypeProperties = &salesforceServiceCloudV2LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscvls.AdditionalProperties == nil { + sscvls.AdditionalProperties = make(map[string]interface{}) + } + sscvls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sscvls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sscvls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sscvls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sscvls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscvls.Type = typeVar + } + } + } + + return nil +} + +// SalesforceServiceCloudV2LinkedServiceTypeProperties salesforce Service Cloud V2 linked service +// properties. +type SalesforceServiceCloudV2LinkedServiceTypeProperties struct { + // EnvironmentURL - The URL of Salesforce Service Cloud instance. For example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). + EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the Salesforce. Currently, we only support OAuth2ClientCredentials, it is also the default value + AuthenticationType interface{} `json:"authenticationType,omitempty"` + // ClientID - The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. Type: string (or Expression with resultType string). + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // APIVersion - 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 interface{} `json:"apiVersion,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2LinkedServiceTypeProperties struct. +func (sscvlstp *SalesforceServiceCloudV2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "environmentUrl": + if v != nil { + var environmentURL interface{} + err = json.Unmarshal(*v, &environmentURL) + if err != nil { + return err + } + sscvlstp.EnvironmentURL = environmentURL + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + sscvlstp.AuthenticationType = authenticationType + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + sscvlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sscvlstp.ClientSecret = clientSecret + } + case "apiVersion": + if v != nil { + var APIVersion interface{} + err = json.Unmarshal(*v, &APIVersion) + if err != nil { + return err + } + sscvlstp.APIVersion = APIVersion + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + sscvlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SalesforceServiceCloudV2ObjectDataset the Salesforce Service Cloud V2 object dataset. +type SalesforceServiceCloudV2ObjectDataset struct { + // SalesforceServiceCloudV2ObjectDatasetTypeProperties - Salesforce Service Cloud V2 object dataset properties. + *SalesforceServiceCloudV2ObjectDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) MarshalJSON() ([]byte, error) { + sscvod.Type = TypeBasicDatasetTypeSalesforceServiceCloudV2Object + objectMap := make(map[string]interface{}) + if sscvod.SalesforceServiceCloudV2ObjectDatasetTypeProperties != nil { + objectMap["typeProperties"] = sscvod.SalesforceServiceCloudV2ObjectDatasetTypeProperties + } + if sscvod.Description != nil { + objectMap["description"] = sscvod.Description + } + if sscvod.Structure != nil { + objectMap["structure"] = sscvod.Structure + } + if sscvod.Schema != nil { + objectMap["schema"] = sscvod.Schema + } + if sscvod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sscvod.LinkedServiceName + } + if sscvod.Parameters != nil { + objectMap["parameters"] = sscvod.Parameters + } + if sscvod.Annotations != nil { + objectMap["annotations"] = sscvod.Annotations + } + if sscvod.Folder != nil { + objectMap["folder"] = sscvod.Folder + } + if sscvod.Type != "" { + objectMap["type"] = sscvod.Type + } + for k, v := range sscvod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return &sscvod, true +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. +func (sscvod SalesforceServiceCloudV2ObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sscvod, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2ObjectDataset struct. +func (sscvod *SalesforceServiceCloudV2ObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceServiceCloudV2ObjectDatasetTypeProperties SalesforceServiceCloudV2ObjectDatasetTypeProperties + err = json.Unmarshal(*v, &salesforceServiceCloudV2ObjectDatasetTypeProperties) + if err != nil { + return err + } + sscvod.SalesforceServiceCloudV2ObjectDatasetTypeProperties = &salesforceServiceCloudV2ObjectDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscvod.AdditionalProperties == nil { + sscvod.AdditionalProperties = make(map[string]interface{}) + } + sscvod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sscvod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sscvod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sscvod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sscvod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sscvod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sscvod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sscvod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscvod.Type = typeVar + } + } + } + + return nil +} + +// SalesforceServiceCloudV2ObjectDatasetTypeProperties salesforce Service Cloud V2 object dataset +// properties. +type SalesforceServiceCloudV2ObjectDatasetTypeProperties struct { + // ObjectAPIName - The Salesforce Service Cloud V2 object API name. Type: string (or Expression with resultType string). + ObjectAPIName interface{} `json:"objectApiName,omitempty"` + // ReportID - The Salesforce Service Cloud V2 reportId. Type: string (or Expression with resultType string). + ReportID interface{} `json:"reportId,omitempty"` +} + +// SalesforceServiceCloudV2Sink a copy activity Salesforce Service Cloud V2 sink. +type SalesforceServiceCloudV2Sink struct { + // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceV2SinkWriteBehaviorInsert', 'SalesforceV2SinkWriteBehaviorUpsert' + WriteBehavior SalesforceV2SinkWriteBehavior `json:"writeBehavior,omitempty"` + // ExternalIDFieldName - 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"` + // IgnoreNullValues - 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 interface{} `json:"ignoreNullValues,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) MarshalJSON() ([]byte, error) { + sscvs.Type = TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink + objectMap := make(map[string]interface{}) + if sscvs.WriteBehavior != "" { + objectMap["writeBehavior"] = sscvs.WriteBehavior + } + if sscvs.ExternalIDFieldName != nil { + objectMap["externalIdFieldName"] = sscvs.ExternalIDFieldName + } + if sscvs.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = sscvs.IgnoreNullValues + } + if sscvs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = sscvs.WriteBatchSize + } + if sscvs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = sscvs.WriteBatchTimeout + } + if sscvs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = sscvs.SinkRetryCount + } + if sscvs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = sscvs.SinkRetryWait + } + if sscvs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sscvs.MaxConcurrentConnections + } + if sscvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sscvs.DisableMetricsCollection + } + if sscvs.Type != "" { + objectMap["type"] = sscvs.Type + } + for k, v := range sscvs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return &sscvs, true +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. +func (sscvs SalesforceServiceCloudV2Sink) AsBasicCopySink() (BasicCopySink, bool) { + return &sscvs, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2Sink struct. +func (sscvs *SalesforceServiceCloudV2Sink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior SalesforceV2SinkWriteBehavior + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + sscvs.WriteBehavior = writeBehavior + } + case "externalIdFieldName": + if v != nil { + var externalIDFieldName interface{} + err = json.Unmarshal(*v, &externalIDFieldName) + if err != nil { + return err + } + sscvs.ExternalIDFieldName = externalIDFieldName + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + sscvs.IgnoreNullValues = ignoreNullValues + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscvs.AdditionalProperties == nil { + sscvs.AdditionalProperties = make(map[string]interface{}) + } + sscvs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + sscvs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + sscvs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + sscvs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + sscvs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sscvs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sscvs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscvs.Type = typeVar + } + } + } + + return nil +} + +// SalesforceServiceCloudV2Source a copy activity Salesforce Service Cloud V2 source. +type SalesforceServiceCloudV2Source struct { + // SOQLQuery - Database query. Type: string (or Expression with resultType string). + SOQLQuery interface{} `json:"SOQLQuery,omitempty"` + // IncludeDeletedObjects - This property control whether query result contains Deleted objects. Default is false. Type: boolean (or Expression with resultType boolean). + IncludeDeletedObjects interface{} `json:"includeDeletedObjects,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) MarshalJSON() ([]byte, error) { + sscvs.Type = TypeBasicCopySourceTypeSalesforceServiceCloudV2Source + objectMap := make(map[string]interface{}) + if sscvs.SOQLQuery != nil { + objectMap["SOQLQuery"] = sscvs.SOQLQuery + } + if sscvs.IncludeDeletedObjects != nil { + objectMap["includeDeletedObjects"] = sscvs.IncludeDeletedObjects + } + if sscvs.AdditionalColumns != nil { + objectMap["additionalColumns"] = sscvs.AdditionalColumns + } + if sscvs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sscvs.SourceRetryCount + } + if sscvs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sscvs.SourceRetryWait + } + if sscvs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sscvs.MaxConcurrentConnections + } + if sscvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sscvs.DisableMetricsCollection + } + if sscvs.Type != "" { + objectMap["type"] = sscvs.Type + } + for k, v := range sscvs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return &sscvs, true +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. +func (sscvs SalesforceServiceCloudV2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &sscvs, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2Source struct. +func (sscvs *SalesforceServiceCloudV2Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "SOQLQuery": + if v != nil { + var sOQLQuery interface{} + err = json.Unmarshal(*v, &sOQLQuery) + if err != nil { + return err + } + sscvs.SOQLQuery = sOQLQuery + } + case "includeDeletedObjects": + if v != nil { + var includeDeletedObjects interface{} + err = json.Unmarshal(*v, &includeDeletedObjects) + if err != nil { + return err + } + sscvs.IncludeDeletedObjects = includeDeletedObjects + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sscvs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sscvs.AdditionalProperties == nil { + sscvs.AdditionalProperties = make(map[string]interface{}) + } + sscvs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sscvs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sscvs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sscvs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sscvs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sscvs.Type = typeVar + } + } + } + + return nil +} + +// SalesforceSink a copy activity Salesforce sink. +type SalesforceSink struct { + // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceSinkWriteBehaviorInsert', 'SalesforceSinkWriteBehaviorUpsert' + WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` + // ExternalIDFieldName - 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"` + // IgnoreNullValues - 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 interface{} `json:"ignoreNullValues,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceSink. +func (ss SalesforceSink) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySinkTypeSalesforceSink + objectMap := make(map[string]interface{}) + if ss.WriteBehavior != "" { + objectMap["writeBehavior"] = ss.WriteBehavior + } + if ss.ExternalIDFieldName != nil { + objectMap["externalIdFieldName"] = ss.ExternalIDFieldName + } + if ss.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = ss.IgnoreNullValues + } + if ss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ss.WriteBatchSize + } + if ss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout + } + if ss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ss.SinkRetryCount + } + if ss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ss.SinkRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSalesforceSink() (*SalesforceSink, bool) { + return &ss, true +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SalesforceSink. +func (ss SalesforceSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceSink struct. +func (ss *SalesforceSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior SalesforceSinkWriteBehavior + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + ss.WriteBehavior = writeBehavior + } + case "externalIdFieldName": + if v != nil { + var externalIDFieldName interface{} + err = json.Unmarshal(*v, &externalIDFieldName) + if err != nil { + return err + } + ss.ExternalIDFieldName = externalIDFieldName + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + ss.IgnoreNullValues = ignoreNullValues + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SalesforceSource a copy activity Salesforce source. +type SalesforceSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // ReadBehavior - The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with resultType string). + ReadBehavior interface{} `json:"readBehavior,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceSource. +func (ss SalesforceSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySourceTypeSalesforceSource + objectMap := make(map[string]interface{}) + if ss.Query != nil { + objectMap["query"] = ss.Query + } + if ss.ReadBehavior != nil { + objectMap["readBehavior"] = ss.ReadBehavior + } + if ss.QueryTimeout != nil { + objectMap["queryTimeout"] = ss.QueryTimeout + } + if ss.AdditionalColumns != nil { + objectMap["additionalColumns"] = ss.AdditionalColumns + } + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount + } + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSalesforceSource() (*SalesforceSource, bool) { + return &ss, true +} + +// AsSapBwSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ss, true +} + +// AsBinarySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SalesforceSource. +func (ss SalesforceSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceSource struct. +func (ss *SalesforceSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ss.Query = query + } + case "readBehavior": + if v != nil { + var readBehavior interface{} + err = json.Unmarshal(*v, &readBehavior) + if err != nil { + return err + } + ss.ReadBehavior = readBehavior + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SalesforceV2LinkedService linked service for Salesforce V2. +type SalesforceV2LinkedService struct { + // SalesforceV2LinkedServiceTypeProperties - Salesforce V2 linked service properties. + *SalesforceV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) MarshalJSON() ([]byte, error) { + svls.Type = TypeBasicLinkedServiceTypeSalesforceV2 + objectMap := make(map[string]interface{}) + if svls.SalesforceV2LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = svls.SalesforceV2LinkedServiceTypeProperties + } + if svls.ConnectVia != nil { + objectMap["connectVia"] = svls.ConnectVia + } + if svls.Description != nil { + objectMap["description"] = svls.Description + } + if svls.Parameters != nil { + objectMap["parameters"] = svls.Parameters + } + if svls.Annotations != nil { + objectMap["annotations"] = svls.Annotations + } + if svls.Type != "" { + objectMap["type"] = svls.Type + } + for k, v := range svls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return &svls, true +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. +func (svls SalesforceV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &svls, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceV2LinkedService struct. +func (svls *SalesforceV2LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceV2LinkedServiceTypeProperties SalesforceV2LinkedServiceTypeProperties + err = json.Unmarshal(*v, &salesforceV2LinkedServiceTypeProperties) + if err != nil { + return err + } + svls.SalesforceV2LinkedServiceTypeProperties = &salesforceV2LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if svls.AdditionalProperties == nil { + svls.AdditionalProperties = make(map[string]interface{}) + } + svls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + svls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + svls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + svls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + svls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + svls.Type = typeVar + } + } + } + + return nil +} + +// SalesforceV2LinkedServiceTypeProperties salesforce V2 linked service properties. +type SalesforceV2LinkedServiceTypeProperties struct { + // EnvironmentURL - The URL of Salesforce instance. For example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). + EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the Salesforce. Currently, we only support OAuth2ClientCredentials, it is also the default value + AuthenticationType interface{} `json:"authenticationType,omitempty"` + // ClientID - The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. Type: string (or Expression with resultType string). + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // APIVersion - 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 interface{} `json:"apiVersion,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceV2LinkedServiceTypeProperties struct. +func (svlstp *SalesforceV2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "environmentUrl": + if v != nil { + var environmentURL interface{} + err = json.Unmarshal(*v, &environmentURL) + if err != nil { + return err + } + svlstp.EnvironmentURL = environmentURL + } + case "authenticationType": + if v != nil { + var authenticationType interface{} + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + svlstp.AuthenticationType = authenticationType + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + svlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + svlstp.ClientSecret = clientSecret + } + case "apiVersion": + if v != nil { + var APIVersion interface{} + err = json.Unmarshal(*v, &APIVersion) + if err != nil { + return err + } + svlstp.APIVersion = APIVersion + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + svlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SalesforceV2ObjectDataset the Salesforce V2 object dataset. +type SalesforceV2ObjectDataset struct { + // SalesforceV2ObjectDatasetTypeProperties - Salesforce V2 object dataset properties. + *SalesforceV2ObjectDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) MarshalJSON() ([]byte, error) { + svod.Type = TypeBasicDatasetTypeSalesforceV2Object + objectMap := make(map[string]interface{}) + if svod.SalesforceV2ObjectDatasetTypeProperties != nil { + objectMap["typeProperties"] = svod.SalesforceV2ObjectDatasetTypeProperties + } + if svod.Description != nil { + objectMap["description"] = svod.Description + } + if svod.Structure != nil { + objectMap["structure"] = svod.Structure + } + if svod.Schema != nil { + objectMap["schema"] = svod.Schema + } + if svod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = svod.LinkedServiceName + } + if svod.Parameters != nil { + objectMap["parameters"] = svod.Parameters + } + if svod.Annotations != nil { + objectMap["annotations"] = svod.Annotations + } + if svod.Folder != nil { + objectMap["folder"] = svod.Folder + } + if svod.Type != "" { + objectMap["type"] = svod.Type + } + for k, v := range svod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return &svod, true +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. +func (svod SalesforceV2ObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &svod, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceV2ObjectDataset struct. +func (svod *SalesforceV2ObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var salesforceV2ObjectDatasetTypeProperties SalesforceV2ObjectDatasetTypeProperties + err = json.Unmarshal(*v, &salesforceV2ObjectDatasetTypeProperties) + if err != nil { + return err + } + svod.SalesforceV2ObjectDatasetTypeProperties = &salesforceV2ObjectDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if svod.AdditionalProperties == nil { + svod.AdditionalProperties = make(map[string]interface{}) + } + svod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + svod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + svod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + svod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + svod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + svod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + svod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + svod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + svod.Type = typeVar + } + } + } + + return nil +} + +// SalesforceV2ObjectDatasetTypeProperties salesforce V2 object dataset properties. +type SalesforceV2ObjectDatasetTypeProperties struct { + // ObjectAPIName - The Salesforce V2 object API name. Type: string (or Expression with resultType string). + ObjectAPIName interface{} `json:"objectApiName,omitempty"` + // ReportID - The Salesforce V2 report Id. Type: string (or Expression with resultType string). + ReportID interface{} `json:"reportId,omitempty"` +} + +// SalesforceV2Sink a copy activity Salesforce V2 sink. +type SalesforceV2Sink struct { + // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceV2SinkWriteBehaviorInsert', 'SalesforceV2SinkWriteBehaviorUpsert' + WriteBehavior SalesforceV2SinkWriteBehavior `json:"writeBehavior,omitempty"` + // ExternalIDFieldName - 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"` + // IgnoreNullValues - 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 interface{} `json:"ignoreNullValues,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceV2Sink. +func (svs SalesforceV2Sink) MarshalJSON() ([]byte, error) { + svs.Type = TypeBasicCopySinkTypeSalesforceV2Sink + objectMap := make(map[string]interface{}) + if svs.WriteBehavior != "" { + objectMap["writeBehavior"] = svs.WriteBehavior + } + if svs.ExternalIDFieldName != nil { + objectMap["externalIdFieldName"] = svs.ExternalIDFieldName + } + if svs.IgnoreNullValues != nil { + objectMap["ignoreNullValues"] = svs.IgnoreNullValues + } + if svs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = svs.WriteBatchSize + } + if svs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = svs.WriteBatchTimeout + } + if svs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = svs.SinkRetryCount + } + if svs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = svs.SinkRetryWait + } + if svs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = svs.MaxConcurrentConnections + } + if svs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = svs.DisableMetricsCollection + } + if svs.Type != "" { + objectMap["type"] = svs.Type + } + for k, v := range svs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return &svs, true +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SalesforceV2Sink. +func (svs SalesforceV2Sink) AsBasicCopySink() (BasicCopySink, bool) { + return &svs, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceV2Sink struct. +func (svs *SalesforceV2Sink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior SalesforceV2SinkWriteBehavior + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + svs.WriteBehavior = writeBehavior + } + case "externalIdFieldName": + if v != nil { + var externalIDFieldName interface{} + err = json.Unmarshal(*v, &externalIDFieldName) + if err != nil { + return err + } + svs.ExternalIDFieldName = externalIDFieldName + } + case "ignoreNullValues": + if v != nil { + var ignoreNullValues interface{} + err = json.Unmarshal(*v, &ignoreNullValues) + if err != nil { + return err + } + svs.IgnoreNullValues = ignoreNullValues + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if svs.AdditionalProperties == nil { + svs.AdditionalProperties = make(map[string]interface{}) + } + svs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + svs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + svs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + svs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + svs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + svs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + svs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + svs.Type = typeVar + } + } + } + + return nil +} + +// SalesforceV2Source a copy activity Salesforce V2 source. +type SalesforceV2Source struct { + // SOQLQuery - Database query. Type: string (or Expression with resultType string). + SOQLQuery interface{} `json:"SOQLQuery,omitempty"` + // IncludeDeletedObjects - This property control whether query result contains Deleted objects. Default is false. Type: boolean (or Expression with resultType boolean). + IncludeDeletedObjects interface{} `json:"includeDeletedObjects,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SalesforceV2Source. +func (svs SalesforceV2Source) MarshalJSON() ([]byte, error) { + svs.Type = TypeBasicCopySourceTypeSalesforceV2Source + objectMap := make(map[string]interface{}) + if svs.SOQLQuery != nil { + objectMap["SOQLQuery"] = svs.SOQLQuery + } + if svs.IncludeDeletedObjects != nil { + objectMap["includeDeletedObjects"] = svs.IncludeDeletedObjects + } + if svs.QueryTimeout != nil { + objectMap["queryTimeout"] = svs.QueryTimeout + } + if svs.AdditionalColumns != nil { + objectMap["additionalColumns"] = svs.AdditionalColumns + } + if svs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = svs.SourceRetryCount + } + if svs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = svs.SourceRetryWait + } + if svs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = svs.MaxConcurrentConnections + } + if svs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = svs.DisableMetricsCollection + } + if svs.Type != "" { + objectMap["type"] = svs.Type + } + for k, v := range svs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return &svs, true +} + +// AsWarehouseSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return &svs, true +} + +// AsBinarySource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SalesforceV2Source. +func (svs SalesforceV2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &svs, true +} + +// UnmarshalJSON is the custom unmarshaler for SalesforceV2Source struct. +func (svs *SalesforceV2Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "SOQLQuery": + if v != nil { + var sOQLQuery interface{} + err = json.Unmarshal(*v, &sOQLQuery) + if err != nil { + return err + } + svs.SOQLQuery = sOQLQuery + } + case "includeDeletedObjects": + if v != nil { + var includeDeletedObjects interface{} + err = json.Unmarshal(*v, &includeDeletedObjects) + if err != nil { + return err + } + svs.IncludeDeletedObjects = includeDeletedObjects + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + svs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + svs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if svs.AdditionalProperties == nil { + svs.AdditionalProperties = make(map[string]interface{}) + } + svs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + svs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + svs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + svs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + svs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + svs.Type = typeVar + } + } + } + + return nil +} + +// SapBWLinkedService SAP Business Warehouse Linked Service. +type SapBWLinkedService struct { + // SapBWLinkedServiceTypeProperties - Properties specific to this linked service type. + *SapBWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapBWLinkedService. +func (sbls SapBWLinkedService) MarshalJSON() ([]byte, error) { + sbls.Type = TypeBasicLinkedServiceTypeSapBW + objectMap := make(map[string]interface{}) + if sbls.SapBWLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sbls.SapBWLinkedServiceTypeProperties + } + if sbls.ConnectVia != nil { + objectMap["connectVia"] = sbls.ConnectVia + } + if sbls.Description != nil { + objectMap["description"] = sbls.Description + } + if sbls.Parameters != nil { + objectMap["parameters"] = sbls.Parameters + } + if sbls.Annotations != nil { + objectMap["annotations"] = sbls.Annotations + } + if sbls.Type != "" { + objectMap["type"] = sbls.Type + } + for k, v := range sbls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return &sbls, true +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SapBWLinkedService. +func (sbls SapBWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sbls, true +} + +// UnmarshalJSON is the custom unmarshaler for SapBWLinkedService struct. +func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapBWLinkedServiceTypeProperties SapBWLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapBWLinkedServiceTypeProperties) + if err != nil { + return err + } + sbls.SapBWLinkedServiceTypeProperties = &sapBWLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sbls.AdditionalProperties == nil { + sbls.AdditionalProperties = make(map[string]interface{}) + } + sbls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sbls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sbls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sbls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sbls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sbls.Type = typeVar + } + } + } + + return nil +} + +// SapBWLinkedServiceTypeProperties properties specific to this linked service type. +type SapBWLinkedServiceTypeProperties struct { + // Server - Host name of the SAP BW instance. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // SystemNumber - 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"` + // ClientID - 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"` + // UserName - Username to access the SAP BW server. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to access the SAP BW server. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SapBWLinkedServiceTypeProperties struct. +func (sblstp *SapBWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + sblstp.Server = server + } + case "systemNumber": + if v != nil { + var systemNumber interface{} + err = json.Unmarshal(*v, &systemNumber) + if err != nil { + return err + } + sblstp.SystemNumber = systemNumber + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + sblstp.ClientID = clientID + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + sblstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sblstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + sblstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SapBwCubeDataset the SAP BW cube dataset. +type SapBwCubeDataset struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) MarshalJSON() ([]byte, error) { + sbcd.Type = TypeBasicDatasetTypeSapBwCube + objectMap := make(map[string]interface{}) + if sbcd.Description != nil { + objectMap["description"] = sbcd.Description + } + if sbcd.Structure != nil { + objectMap["structure"] = sbcd.Structure + } + if sbcd.Schema != nil { + objectMap["schema"] = sbcd.Schema + } + if sbcd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sbcd.LinkedServiceName + } + if sbcd.Parameters != nil { + objectMap["parameters"] = sbcd.Parameters + } + if sbcd.Annotations != nil { + objectMap["annotations"] = sbcd.Annotations + } + if sbcd.Folder != nil { + objectMap["folder"] = sbcd.Folder + } + if sbcd.Type != "" { + objectMap["type"] = sbcd.Type + } + for k, v := range sbcd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return &sbcd, true +} + +// AsSybaseTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SapBwCubeDataset. +func (sbcd SapBwCubeDataset) AsBasicDataset() (BasicDataset, bool) { + return &sbcd, true +} + +// UnmarshalJSON is the custom unmarshaler for SapBwCubeDataset struct. +func (sbcd *SapBwCubeDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sbcd.AdditionalProperties == nil { + sbcd.AdditionalProperties = make(map[string]interface{}) + } + sbcd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sbcd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sbcd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sbcd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sbcd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sbcd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sbcd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sbcd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sbcd.Type = typeVar + } + } + } + + return nil +} + +// SapBwSource a copy activity source for SapBW server via MDX. +type SapBwSource struct { + // Query - MDX query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapBwSource. +func (sbs SapBwSource) MarshalJSON() ([]byte, error) { + sbs.Type = TypeBasicCopySourceTypeSapBwSource + objectMap := make(map[string]interface{}) + if sbs.Query != nil { + objectMap["query"] = sbs.Query + } + if sbs.QueryTimeout != nil { + objectMap["queryTimeout"] = sbs.QueryTimeout + } + if sbs.AdditionalColumns != nil { + objectMap["additionalColumns"] = sbs.AdditionalColumns + } + if sbs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sbs.SourceRetryCount + } + if sbs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sbs.SourceRetryWait + } + if sbs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sbs.MaxConcurrentConnections + } + if sbs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sbs.DisableMetricsCollection + } + if sbs.Type != "" { + objectMap["type"] = sbs.Type + } + for k, v := range sbs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSapBwSource() (*SapBwSource, bool) { + return &sbs, true +} + +// AsSybaseSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sbs, true +} + +// AsBinarySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SapBwSource. +func (sbs SapBwSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sbs, true +} + +// UnmarshalJSON is the custom unmarshaler for SapBwSource struct. +func (sbs *SapBwSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + sbs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sbs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sbs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sbs.AdditionalProperties == nil { + sbs.AdditionalProperties = make(map[string]interface{}) + } + sbs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sbs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sbs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sbs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sbs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sbs.Type = typeVar + } + } + } + + return nil +} + +// SapCloudForCustomerLinkedService linked service for SAP Cloud for Customer. +type SapCloudForCustomerLinkedService struct { + // SapCloudForCustomerLinkedServiceTypeProperties - SAP Cloud for Customer linked service properties. + *SapCloudForCustomerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error) { + scfcls.Type = TypeBasicLinkedServiceTypeSapCloudForCustomer + objectMap := make(map[string]interface{}) + if scfcls.SapCloudForCustomerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = scfcls.SapCloudForCustomerLinkedServiceTypeProperties + } + if scfcls.ConnectVia != nil { + objectMap["connectVia"] = scfcls.ConnectVia + } + if scfcls.Description != nil { + objectMap["description"] = scfcls.Description + } + if scfcls.Parameters != nil { + objectMap["parameters"] = scfcls.Parameters + } + if scfcls.Annotations != nil { + objectMap["annotations"] = scfcls.Annotations + } + if scfcls.Type != "" { + objectMap["type"] = scfcls.Type + } + for k, v := range scfcls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return &scfcls, true +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. +func (scfcls SapCloudForCustomerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &scfcls, true +} + +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedService struct. +func (scfcls *SapCloudForCustomerLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapCloudForCustomerLinkedServiceTypeProperties SapCloudForCustomerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapCloudForCustomerLinkedServiceTypeProperties) + if err != nil { + return err + } + scfcls.SapCloudForCustomerLinkedServiceTypeProperties = &sapCloudForCustomerLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if scfcls.AdditionalProperties == nil { + scfcls.AdditionalProperties = make(map[string]interface{}) + } + scfcls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + scfcls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + scfcls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + scfcls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + scfcls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + scfcls.Type = typeVar + } + } + } + + return nil +} + +// SapCloudForCustomerLinkedServiceTypeProperties SAP Cloud for Customer linked service properties. +type SapCloudForCustomerLinkedServiceTypeProperties struct { + // URL - 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"` + // Username - The username for Basic authentication. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password for Basic authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - 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 `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedServiceTypeProperties struct. +func (scfclstp *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + scfclstp.URL = URL + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + scfclstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + scfclstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + scfclstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SapCloudForCustomerResourceDataset the path of the SAP Cloud for Customer OData entity. +type SapCloudForCustomerResourceDataset struct { + // SapCloudForCustomerResourceDatasetTypeProperties - SAP Cloud For Customer OData resource dataset properties. + *SapCloudForCustomerResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) MarshalJSON() ([]byte, error) { + scfcrd.Type = TypeBasicDatasetTypeSapCloudForCustomerResource + objectMap := make(map[string]interface{}) + if scfcrd.SapCloudForCustomerResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = scfcrd.SapCloudForCustomerResourceDatasetTypeProperties + } + if scfcrd.Description != nil { + objectMap["description"] = scfcrd.Description + } + if scfcrd.Structure != nil { + objectMap["structure"] = scfcrd.Structure + } + if scfcrd.Schema != nil { + objectMap["schema"] = scfcrd.Schema + } + if scfcrd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = scfcrd.LinkedServiceName + } + if scfcrd.Parameters != nil { + objectMap["parameters"] = scfcrd.Parameters + } + if scfcrd.Annotations != nil { + objectMap["annotations"] = scfcrd.Annotations + } + if scfcrd.Folder != nil { + objectMap["folder"] = scfcrd.Folder + } + if scfcrd.Type != "" { + objectMap["type"] = scfcrd.Type + } + for k, v := range scfcrd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return &scfcrd, true +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. +func (scfcrd SapCloudForCustomerResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &scfcrd, true +} + +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerResourceDataset struct. +func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapCloudForCustomerResourceDatasetTypeProperties SapCloudForCustomerResourceDatasetTypeProperties + err = json.Unmarshal(*v, &sapCloudForCustomerResourceDatasetTypeProperties) + if err != nil { + return err + } + scfcrd.SapCloudForCustomerResourceDatasetTypeProperties = &sapCloudForCustomerResourceDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if scfcrd.AdditionalProperties == nil { + scfcrd.AdditionalProperties = make(map[string]interface{}) + } + scfcrd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + scfcrd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + scfcrd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + scfcrd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + scfcrd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + scfcrd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + scfcrd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + scfcrd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + scfcrd.Type = typeVar + } + } + } + + return nil +} + +// SapCloudForCustomerResourceDatasetTypeProperties sap Cloud For Customer OData resource dataset +// properties. +type SapCloudForCustomerResourceDatasetTypeProperties struct { + // Path - The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` +} + +// SapCloudForCustomerSink a copy activity SAP Cloud for Customer sink. +type SapCloudForCustomerSink struct { + // WriteBehavior - The write behavior for the operation. Default is 'Insert'. Possible values include: 'SapCloudForCustomerSinkWriteBehaviorInsert', 'SapCloudForCustomerSinkWriteBehaviorUpdate' + WriteBehavior SapCloudForCustomerSinkWriteBehavior `json:"writeBehavior,omitempty"` + // HTTPRequestTimeout - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { + scfcs.Type = TypeBasicCopySinkTypeSapCloudForCustomerSink + objectMap := make(map[string]interface{}) + if scfcs.WriteBehavior != "" { + objectMap["writeBehavior"] = scfcs.WriteBehavior + } + if scfcs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = scfcs.HTTPRequestTimeout + } + if scfcs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = scfcs.WriteBatchSize + } + if scfcs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = scfcs.WriteBatchTimeout + } + if scfcs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = scfcs.SinkRetryCount + } + if scfcs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = scfcs.SinkRetryWait + } + if scfcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections + } + if scfcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = scfcs.DisableMetricsCollection + } + if scfcs.Type != "" { + objectMap["type"] = scfcs.Type + } + for k, v := range scfcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return &scfcs, true +} + +// AsWarehouseSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. +func (scfcs SapCloudForCustomerSink) AsBasicCopySink() (BasicCopySink, bool) { + return &scfcs, true +} + +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerSink struct. +func (scfcs *SapCloudForCustomerSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "writeBehavior": + if v != nil { + var writeBehavior SapCloudForCustomerSinkWriteBehavior + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + scfcs.WriteBehavior = writeBehavior + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + scfcs.HTTPRequestTimeout = HTTPRequestTimeout + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if scfcs.AdditionalProperties == nil { + scfcs.AdditionalProperties = make(map[string]interface{}) + } + scfcs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + scfcs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + scfcs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + scfcs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + scfcs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + scfcs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + scfcs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + scfcs.Type = typeVar + } + } + } + + return nil +} + +// SapCloudForCustomerSource a copy activity source for SAP Cloud for Customer source. +type SapCloudForCustomerSource struct { + // Query - SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // HTTPRequestTimeout - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) MarshalJSON() ([]byte, error) { + scfcs.Type = TypeBasicCopySourceTypeSapCloudForCustomerSource + objectMap := make(map[string]interface{}) + if scfcs.Query != nil { + objectMap["query"] = scfcs.Query + } + if scfcs.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = scfcs.HTTPRequestTimeout + } + if scfcs.QueryTimeout != nil { + objectMap["queryTimeout"] = scfcs.QueryTimeout + } + if scfcs.AdditionalColumns != nil { + objectMap["additionalColumns"] = scfcs.AdditionalColumns + } + if scfcs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = scfcs.SourceRetryCount + } + if scfcs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = scfcs.SourceRetryWait + } + if scfcs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections + } + if scfcs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = scfcs.DisableMetricsCollection + } + if scfcs.Type != "" { + objectMap["type"] = scfcs.Type + } + for k, v := range scfcs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return &scfcs, true +} + +// AsSalesforceSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &scfcs, true +} + +// AsBinarySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. +func (scfcs SapCloudForCustomerSource) AsBasicCopySource() (BasicCopySource, bool) { + return &scfcs, true +} + +// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerSource struct. +func (scfcs *SapCloudForCustomerSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + scfcs.Query = query + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + scfcs.HTTPRequestTimeout = HTTPRequestTimeout + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + scfcs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + scfcs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if scfcs.AdditionalProperties == nil { + scfcs.AdditionalProperties = make(map[string]interface{}) + } + scfcs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + scfcs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + scfcs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + scfcs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + scfcs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + scfcs.Type = typeVar + } + } + } + + return nil +} + +// SapEccLinkedService linked service for SAP ERP Central Component(SAP ECC). +type SapEccLinkedService struct { + // SapEccLinkedServiceTypeProperties - SAP ECC linked service properties. + *SapEccLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapEccLinkedService. +func (sels SapEccLinkedService) MarshalJSON() ([]byte, error) { + sels.Type = TypeBasicLinkedServiceTypeSapEcc + objectMap := make(map[string]interface{}) + if sels.SapEccLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sels.SapEccLinkedServiceTypeProperties + } + if sels.ConnectVia != nil { + objectMap["connectVia"] = sels.ConnectVia + } + if sels.Description != nil { + objectMap["description"] = sels.Description + } + if sels.Parameters != nil { + objectMap["parameters"] = sels.Parameters + } + if sels.Annotations != nil { + objectMap["annotations"] = sels.Annotations + } + if sels.Type != "" { + objectMap["type"] = sels.Type + } + for k, v := range sels.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return &sels, true +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SapEccLinkedService. +func (sels SapEccLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sels, true +} + +// UnmarshalJSON is the custom unmarshaler for SapEccLinkedService struct. +func (sels *SapEccLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapEccLinkedServiceTypeProperties SapEccLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapEccLinkedServiceTypeProperties) + if err != nil { + return err + } + sels.SapEccLinkedServiceTypeProperties = &sapEccLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sels.AdditionalProperties == nil { + sels.AdditionalProperties = make(map[string]interface{}) + } + sels.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sels.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sels.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sels.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sels.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sels.Type = typeVar + } + } + } + + return nil +} + +// SapEccLinkedServiceTypeProperties SAP ECC linked service properties. +type SapEccLinkedServiceTypeProperties struct { + // URL - 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 interface{} `json:"url,omitempty"` + // Username - The username for Basic authentication. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password for Basic authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - 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 `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SapEccLinkedServiceTypeProperties struct. +func (selstp *SapEccLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + selstp.URL = URL + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + selstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + selstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + selstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SapEccResourceDataset the path of the SAP ECC OData entity. +type SapEccResourceDataset struct { + // SapEccResourceDatasetTypeProperties - SAP ECC OData resource dataset properties. + *SapEccResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapEccResourceDataset. +func (serd SapEccResourceDataset) MarshalJSON() ([]byte, error) { + serd.Type = TypeBasicDatasetTypeSapEccResource + objectMap := make(map[string]interface{}) + if serd.SapEccResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = serd.SapEccResourceDatasetTypeProperties + } + if serd.Description != nil { + objectMap["description"] = serd.Description + } + if serd.Structure != nil { + objectMap["structure"] = serd.Structure + } + if serd.Schema != nil { + objectMap["schema"] = serd.Schema + } + if serd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = serd.LinkedServiceName + } + if serd.Parameters != nil { + objectMap["parameters"] = serd.Parameters + } + if serd.Annotations != nil { + objectMap["annotations"] = serd.Annotations + } + if serd.Folder != nil { + objectMap["folder"] = serd.Folder + } + if serd.Type != "" { + objectMap["type"] = serd.Type + } + for k, v := range serd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return &serd, true +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SapEccResourceDataset. +func (serd SapEccResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &serd, true +} + +// UnmarshalJSON is the custom unmarshaler for SapEccResourceDataset struct. +func (serd *SapEccResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapEccResourceDatasetTypeProperties SapEccResourceDatasetTypeProperties + err = json.Unmarshal(*v, &sapEccResourceDatasetTypeProperties) + if err != nil { + return err + } + serd.SapEccResourceDatasetTypeProperties = &sapEccResourceDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if serd.AdditionalProperties == nil { + serd.AdditionalProperties = make(map[string]interface{}) + } + serd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + serd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + serd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + serd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + serd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + serd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + serd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + serd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + serd.Type = typeVar + } + } + } + + return nil +} + +// SapEccResourceDatasetTypeProperties sap ECC OData resource dataset properties. +type SapEccResourceDatasetTypeProperties struct { + // Path - The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` +} + +// SapEccSource a copy activity source for SAP ECC source. +type SapEccSource struct { + // Query - SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // HTTPRequestTimeout - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapEccSource. +func (ses SapEccSource) MarshalJSON() ([]byte, error) { + ses.Type = TypeBasicCopySourceTypeSapEccSource + objectMap := make(map[string]interface{}) + if ses.Query != nil { + objectMap["query"] = ses.Query + } + if ses.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = ses.HTTPRequestTimeout + } + if ses.QueryTimeout != nil { + objectMap["queryTimeout"] = ses.QueryTimeout + } + if ses.AdditionalColumns != nil { + objectMap["additionalColumns"] = ses.AdditionalColumns + } + if ses.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ses.SourceRetryCount + } + if ses.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ses.SourceRetryWait + } + if ses.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ses.MaxConcurrentConnections + } + if ses.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ses.DisableMetricsCollection + } + if ses.Type != "" { + objectMap["type"] = ses.Type + } + for k, v := range ses.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapEccSource() (*SapEccSource, bool) { + return &ses, true +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ses, true +} + +// AsBinarySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SapEccSource. +func (ses SapEccSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ses, true +} + +// UnmarshalJSON is the custom unmarshaler for SapEccSource struct. +func (ses *SapEccSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ses.Query = query + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + ses.HTTPRequestTimeout = HTTPRequestTimeout + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ses.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ses.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ses.AdditionalProperties == nil { + ses.AdditionalProperties = make(map[string]interface{}) + } + ses.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ses.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ses.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ses.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ses.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ses.Type = typeVar + } + } + } + + return nil +} + +// SapHanaLinkedService SAP HANA Linked Service. +type SapHanaLinkedService struct { + // SapHanaLinkedServiceProperties - Properties specific to this linked service type. + *SapHanaLinkedServiceProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapHanaLinkedService. +func (shls SapHanaLinkedService) MarshalJSON() ([]byte, error) { + shls.Type = TypeBasicLinkedServiceTypeSapHana + objectMap := make(map[string]interface{}) + if shls.SapHanaLinkedServiceProperties != nil { + objectMap["typeProperties"] = shls.SapHanaLinkedServiceProperties + } + if shls.ConnectVia != nil { + objectMap["connectVia"] = shls.ConnectVia + } + if shls.Description != nil { + objectMap["description"] = shls.Description + } + if shls.Parameters != nil { + objectMap["parameters"] = shls.Parameters + } + if shls.Annotations != nil { + objectMap["annotations"] = shls.Annotations + } + if shls.Type != "" { + objectMap["type"] = shls.Type + } + for k, v := range shls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return &shls, true +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. +func (shls SapHanaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &shls, true +} + +// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedService struct. +func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapHanaLinkedServiceProperties SapHanaLinkedServiceProperties + err = json.Unmarshal(*v, &sapHanaLinkedServiceProperties) + if err != nil { + return err + } + shls.SapHanaLinkedServiceProperties = &sapHanaLinkedServiceProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if shls.AdditionalProperties == nil { + shls.AdditionalProperties = make(map[string]interface{}) + } + shls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + shls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + shls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + shls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + shls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + shls.Type = typeVar + } + } + } + + return nil +} + +// SapHanaLinkedServiceProperties properties specific to this linked service type. +type SapHanaLinkedServiceProperties struct { + // ConnectionString - SAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Server - Host name of the SAP HANA server. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // AuthenticationType - The authentication type to be used to connect to the SAP HANA server. Possible values include: 'SapHanaAuthenticationTypeBasic', 'SapHanaAuthenticationTypeWindows' + AuthenticationType SapHanaAuthenticationType `json:"authenticationType,omitempty"` + // UserName - Username to access the SAP HANA server. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to access the SAP HANA server. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedServiceProperties struct. +func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + shlsp.ConnectionString = connectionString + } + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + shlsp.Server = server + } + case "authenticationType": + if v != nil { + var authenticationType SapHanaAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + shlsp.AuthenticationType = authenticationType + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + shlsp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + shlsp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + shlsp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SapHanaPartitionSettings the settings that will be leveraged for SAP HANA source partitioning. +type SapHanaPartitionSettings struct { + // PartitionColumnName - 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"` +} + +// SapHanaSource a copy activity source for SAP HANA source. +type SapHanaSource struct { + // Query - SAP HANA Sql query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // PacketSize - The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). + PacketSize interface{} `json:"packetSize,omitempty"` + // PartitionOption - The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for SAP HANA source partitioning. + PartitionSettings *SapHanaPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapHanaSource. +func (shs SapHanaSource) MarshalJSON() ([]byte, error) { + shs.Type = TypeBasicCopySourceTypeSapHanaSource + objectMap := make(map[string]interface{}) + if shs.Query != nil { + objectMap["query"] = shs.Query + } + if shs.PacketSize != nil { + objectMap["packetSize"] = shs.PacketSize + } + if shs.PartitionOption != nil { + objectMap["partitionOption"] = shs.PartitionOption + } + if shs.PartitionSettings != nil { + objectMap["partitionSettings"] = shs.PartitionSettings + } + if shs.QueryTimeout != nil { + objectMap["queryTimeout"] = shs.QueryTimeout + } + if shs.AdditionalColumns != nil { + objectMap["additionalColumns"] = shs.AdditionalColumns + } + if shs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = shs.SourceRetryCount + } + if shs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = shs.SourceRetryWait + } + if shs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = shs.MaxConcurrentConnections + } + if shs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = shs.DisableMetricsCollection + } + if shs.Type != "" { + objectMap["type"] = shs.Type + } + for k, v := range shs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapHanaSource() (*SapHanaSource, bool) { + return &shs, true +} + +// AsSapEccSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &shs, true +} + +// AsBinarySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SapHanaSource. +func (shs SapHanaSource) AsBasicCopySource() (BasicCopySource, bool) { + return &shs, true +} + +// UnmarshalJSON is the custom unmarshaler for SapHanaSource struct. +func (shs *SapHanaSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + shs.Query = query + } + case "packetSize": + if v != nil { + var packetSize interface{} + err = json.Unmarshal(*v, &packetSize) + if err != nil { + return err + } + shs.PacketSize = packetSize + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + shs.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SapHanaPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + shs.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + shs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + shs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if shs.AdditionalProperties == nil { + shs.AdditionalProperties = make(map[string]interface{}) + } + shs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + shs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + shs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + shs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + shs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + shs.Type = typeVar + } + } + } + + return nil +} + +// SapHanaTableDataset SAP HANA Table properties. +type SapHanaTableDataset struct { + // SapHanaTableDatasetTypeProperties - SAP HANA Table properties. + *SapHanaTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapHanaTableDataset. +func (shtd SapHanaTableDataset) MarshalJSON() ([]byte, error) { + shtd.Type = TypeBasicDatasetTypeSapHanaTable + objectMap := make(map[string]interface{}) + if shtd.SapHanaTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = shtd.SapHanaTableDatasetTypeProperties + } + if shtd.Description != nil { + objectMap["description"] = shtd.Description + } + if shtd.Structure != nil { + objectMap["structure"] = shtd.Structure + } + if shtd.Schema != nil { + objectMap["schema"] = shtd.Schema + } + if shtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = shtd.LinkedServiceName + } + if shtd.Parameters != nil { + objectMap["parameters"] = shtd.Parameters + } + if shtd.Annotations != nil { + objectMap["annotations"] = shtd.Annotations + } + if shtd.Folder != nil { + objectMap["folder"] = shtd.Folder + } + if shtd.Type != "" { + objectMap["type"] = shtd.Type + } + for k, v := range shtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return &shtd, true +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SapHanaTableDataset. +func (shtd SapHanaTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &shtd, true +} + +// UnmarshalJSON is the custom unmarshaler for SapHanaTableDataset struct. +func (shtd *SapHanaTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapHanaTableDatasetTypeProperties SapHanaTableDatasetTypeProperties + err = json.Unmarshal(*v, &sapHanaTableDatasetTypeProperties) + if err != nil { + return err + } + shtd.SapHanaTableDatasetTypeProperties = &sapHanaTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if shtd.AdditionalProperties == nil { + shtd.AdditionalProperties = make(map[string]interface{}) + } + shtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + shtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + shtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + shtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + shtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + shtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + shtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + shtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + shtd.Type = typeVar + } + } + } + + return nil +} + +// SapHanaTableDatasetTypeProperties SAP HANA Table properties. +type SapHanaTableDatasetTypeProperties struct { + // Schema - The schema name of SAP HANA. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of SAP HANA. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// SapOdpLinkedService SAP ODP Linked Service. +type SapOdpLinkedService struct { + // SapOdpLinkedServiceTypeProperties - Properties specific to SAP ODP linked service type. + *SapOdpLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapOdpLinkedService. +func (sols SapOdpLinkedService) MarshalJSON() ([]byte, error) { + sols.Type = TypeBasicLinkedServiceTypeSapOdp + objectMap := make(map[string]interface{}) + if sols.SapOdpLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sols.SapOdpLinkedServiceTypeProperties + } + if sols.ConnectVia != nil { + objectMap["connectVia"] = sols.ConnectVia + } + if sols.Description != nil { + objectMap["description"] = sols.Description + } + if sols.Parameters != nil { + objectMap["parameters"] = sols.Parameters + } + if sols.Annotations != nil { + objectMap["annotations"] = sols.Annotations + } + if sols.Type != "" { + objectMap["type"] = sols.Type + } + for k, v := range sols.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return &sols, true +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. +func (sols SapOdpLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sols, true +} + +// UnmarshalJSON is the custom unmarshaler for SapOdpLinkedService struct. +func (sols *SapOdpLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapOdpLinkedServiceTypeProperties SapOdpLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapOdpLinkedServiceTypeProperties) + if err != nil { + return err + } + sols.SapOdpLinkedServiceTypeProperties = &sapOdpLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sols.AdditionalProperties == nil { + sols.AdditionalProperties = make(map[string]interface{}) + } + sols.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sols.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sols.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sols.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sols.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sols.Type = typeVar + } + } + } + + return nil +} + +// SapOdpLinkedServiceTypeProperties properties specific to this linked service type. +type SapOdpLinkedServiceTypeProperties struct { + // Server - Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // SystemNumber - 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"` + // ClientID - 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"` + // Language - 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"` + // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). + SystemID interface{} `json:"systemId,omitempty"` + // UserName - Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to access the SAP server where the table is located. + Password BasicSecretBase `json:"password,omitempty"` + // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). + MessageServer interface{} `json:"messageServer,omitempty"` + // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). + MessageServerService interface{} `json:"messageServerService,omitempty"` + // SncMode - 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"` + // SncMyName - 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"` + // SncPartnerName - 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"` + // SncLibraryPath - 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"` + // SncQop - SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). + SncQop interface{} `json:"sncQop,omitempty"` + // X509CertificatePath - SNC X509 certificate file path. Type: string (or Expression with resultType string). + X509CertificatePath interface{} `json:"x509CertificatePath,omitempty"` + // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). + LogonGroup interface{} `json:"logonGroup,omitempty"` + // SubscriberName - The subscriber name. Type: string (or Expression with resultType string). + SubscriberName interface{} `json:"subscriberName,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SapOdpLinkedServiceTypeProperties struct. +func (solstp *SapOdpLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + solstp.Server = server + } + case "systemNumber": + if v != nil { + var systemNumber interface{} + err = json.Unmarshal(*v, &systemNumber) + if err != nil { + return err + } + solstp.SystemNumber = systemNumber + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + solstp.ClientID = clientID + } + case "language": + if v != nil { + var language interface{} + err = json.Unmarshal(*v, &language) + if err != nil { + return err + } + solstp.Language = language + } + case "systemId": + if v != nil { + var systemID interface{} + err = json.Unmarshal(*v, &systemID) + if err != nil { + return err + } + solstp.SystemID = systemID + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + solstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + solstp.Password = password + } + case "messageServer": + if v != nil { + var messageServer interface{} + err = json.Unmarshal(*v, &messageServer) + if err != nil { + return err + } + solstp.MessageServer = messageServer + } + case "messageServerService": + if v != nil { + var messageServerService interface{} + err = json.Unmarshal(*v, &messageServerService) + if err != nil { + return err + } + solstp.MessageServerService = messageServerService + } + case "sncMode": + if v != nil { + var sncMode interface{} + err = json.Unmarshal(*v, &sncMode) + if err != nil { + return err + } + solstp.SncMode = sncMode + } + case "sncMyName": + if v != nil { + var sncMyName interface{} + err = json.Unmarshal(*v, &sncMyName) + if err != nil { + return err + } + solstp.SncMyName = sncMyName + } + case "sncPartnerName": + if v != nil { + var sncPartnerName interface{} + err = json.Unmarshal(*v, &sncPartnerName) + if err != nil { + return err + } + solstp.SncPartnerName = sncPartnerName + } + case "sncLibraryPath": + if v != nil { + var sncLibraryPath interface{} + err = json.Unmarshal(*v, &sncLibraryPath) + if err != nil { + return err + } + solstp.SncLibraryPath = sncLibraryPath + } + case "sncQop": + if v != nil { + var sncQop interface{} + err = json.Unmarshal(*v, &sncQop) + if err != nil { + return err + } + solstp.SncQop = sncQop + } + case "x509CertificatePath": + if v != nil { + var x509CertificatePath interface{} + err = json.Unmarshal(*v, &x509CertificatePath) + if err != nil { + return err + } + solstp.X509CertificatePath = x509CertificatePath + } + case "logonGroup": + if v != nil { + var logonGroup interface{} + err = json.Unmarshal(*v, &logonGroup) + if err != nil { + return err + } + solstp.LogonGroup = logonGroup + } + case "subscriberName": + if v != nil { + var subscriberName interface{} + err = json.Unmarshal(*v, &subscriberName) + if err != nil { + return err + } + solstp.SubscriberName = subscriberName + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + solstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SapOdpResourceDataset SAP ODP Resource properties. +type SapOdpResourceDataset struct { + // SapOdpResourceDatasetTypeProperties - SAP ODP Resource properties. + *SapOdpResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) MarshalJSON() ([]byte, error) { + sord.Type = TypeBasicDatasetTypeSapOdpResource + objectMap := make(map[string]interface{}) + if sord.SapOdpResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = sord.SapOdpResourceDatasetTypeProperties + } + if sord.Description != nil { + objectMap["description"] = sord.Description + } + if sord.Structure != nil { + objectMap["structure"] = sord.Structure + } + if sord.Schema != nil { + objectMap["schema"] = sord.Schema + } + if sord.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sord.LinkedServiceName + } + if sord.Parameters != nil { + objectMap["parameters"] = sord.Parameters + } + if sord.Annotations != nil { + objectMap["annotations"] = sord.Annotations + } + if sord.Folder != nil { + objectMap["folder"] = sord.Folder + } + if sord.Type != "" { + objectMap["type"] = sord.Type + } + for k, v := range sord.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return &sord, true +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SapOdpResourceDataset. +func (sord SapOdpResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &sord, true +} + +// UnmarshalJSON is the custom unmarshaler for SapOdpResourceDataset struct. +func (sord *SapOdpResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapOdpResourceDatasetTypeProperties SapOdpResourceDatasetTypeProperties + err = json.Unmarshal(*v, &sapOdpResourceDatasetTypeProperties) + if err != nil { + return err + } + sord.SapOdpResourceDatasetTypeProperties = &sapOdpResourceDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sord.AdditionalProperties == nil { + sord.AdditionalProperties = make(map[string]interface{}) + } + sord.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sord.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sord.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sord.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sord.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sord.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sord.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sord.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sord.Type = typeVar + } + } + } + + return nil +} + +// SapOdpResourceDatasetTypeProperties SAP ODP Resource properties. +type SapOdpResourceDatasetTypeProperties struct { + // Context - The context of the SAP ODP Object. Type: string (or Expression with resultType string). + Context interface{} `json:"context,omitempty"` + // ObjectName - The name of the SAP ODP Object. Type: string (or Expression with resultType string). + ObjectName interface{} `json:"objectName,omitempty"` +} + +// SapOdpSource a copy activity source for SAP ODP source. +type SapOdpSource struct { + // ExtractionMode - 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"` + // SubscriberProcess - The subscriber process to manage the delta process. Type: string (or Expression with resultType string). + SubscriberProcess interface{} `json:"subscriberProcess,omitempty"` + // Selection - Specifies the selection conditions from source data. Type: array of objects(selection) (or Expression with resultType array of objects). + Selection interface{} `json:"selection,omitempty"` + // Projection - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapOdpSource. +func (sos SapOdpSource) MarshalJSON() ([]byte, error) { + sos.Type = TypeBasicCopySourceTypeSapOdpSource + objectMap := make(map[string]interface{}) + if sos.ExtractionMode != nil { + objectMap["extractionMode"] = sos.ExtractionMode + } + if sos.SubscriberProcess != nil { + objectMap["subscriberProcess"] = sos.SubscriberProcess + } + if sos.Selection != nil { + objectMap["selection"] = sos.Selection + } + if sos.Projection != nil { + objectMap["projection"] = sos.Projection + } + if sos.QueryTimeout != nil { + objectMap["queryTimeout"] = sos.QueryTimeout + } + if sos.AdditionalColumns != nil { + objectMap["additionalColumns"] = sos.AdditionalColumns + } + if sos.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sos.SourceRetryCount + } + if sos.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sos.SourceRetryWait + } + if sos.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sos.MaxConcurrentConnections + } + if sos.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sos.DisableMetricsCollection + } + if sos.Type != "" { + objectMap["type"] = sos.Type + } + for k, v := range sos.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSapOdpSource() (*SapOdpSource, bool) { + return &sos, true +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sos, true +} + +// AsBinarySource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SapOdpSource. +func (sos SapOdpSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sos, true +} + +// UnmarshalJSON is the custom unmarshaler for SapOdpSource struct. +func (sos *SapOdpSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "extractionMode": + if v != nil { + var extractionMode interface{} + err = json.Unmarshal(*v, &extractionMode) + if err != nil { + return err + } + sos.ExtractionMode = extractionMode + } + case "subscriberProcess": + if v != nil { + var subscriberProcess interface{} + err = json.Unmarshal(*v, &subscriberProcess) + if err != nil { + return err + } + sos.SubscriberProcess = subscriberProcess + } + case "selection": + if v != nil { + var selection interface{} + err = json.Unmarshal(*v, &selection) + if err != nil { + return err + } + sos.Selection = selection + } + case "projection": + if v != nil { + var projection interface{} + err = json.Unmarshal(*v, &projection) + if err != nil { + return err + } + sos.Projection = projection + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sos.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sos.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sos.AdditionalProperties == nil { + sos.AdditionalProperties = make(map[string]interface{}) + } + sos.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sos.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sos.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sos.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sos.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sos.Type = typeVar + } + } + } + + return nil +} + +// SapOpenHubLinkedService SAP Business Warehouse Open Hub Destination Linked Service. +type SapOpenHubLinkedService struct { + // SapOpenHubLinkedServiceTypeProperties - Properties specific to SAP Business Warehouse Open Hub Destination linked service type. + *SapOpenHubLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) MarshalJSON() ([]byte, error) { + sohls.Type = TypeBasicLinkedServiceTypeSapOpenHub + objectMap := make(map[string]interface{}) + if sohls.SapOpenHubLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sohls.SapOpenHubLinkedServiceTypeProperties + } + if sohls.ConnectVia != nil { + objectMap["connectVia"] = sohls.ConnectVia + } + if sohls.Description != nil { + objectMap["description"] = sohls.Description + } + if sohls.Parameters != nil { + objectMap["parameters"] = sohls.Parameters + } + if sohls.Annotations != nil { + objectMap["annotations"] = sohls.Annotations + } + if sohls.Type != "" { + objectMap["type"] = sohls.Type + } + for k, v := range sohls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return &sohls, true +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. +func (sohls SapOpenHubLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sohls, true +} + +// UnmarshalJSON is the custom unmarshaler for SapOpenHubLinkedService struct. +func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapOpenHubLinkedServiceTypeProperties SapOpenHubLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapOpenHubLinkedServiceTypeProperties) + if err != nil { + return err + } + sohls.SapOpenHubLinkedServiceTypeProperties = &sapOpenHubLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sohls.AdditionalProperties == nil { + sohls.AdditionalProperties = make(map[string]interface{}) + } + sohls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sohls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sohls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sohls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sohls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sohls.Type = typeVar + } + } + } + + return nil +} + +// SapOpenHubLinkedServiceTypeProperties properties specific to SAP Business Warehouse Open Hub Destination +// linked service type. +type SapOpenHubLinkedServiceTypeProperties struct { + // Server - 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"` + // SystemNumber - 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"` + // ClientID - 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"` + // Language - 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"` + // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). + SystemID interface{} `json:"systemId,omitempty"` + // UserName - 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"` + // Password - Password to access the SAP BW server where the open hub destination is located. + Password BasicSecretBase `json:"password,omitempty"` + // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). + MessageServer interface{} `json:"messageServer,omitempty"` + // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). + MessageServerService interface{} `json:"messageServerService,omitempty"` + // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). + LogonGroup interface{} `json:"logonGroup,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SapOpenHubLinkedServiceTypeProperties struct. +func (sohlstp *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + sohlstp.Server = server + } + case "systemNumber": + if v != nil { + var systemNumber interface{} + err = json.Unmarshal(*v, &systemNumber) + if err != nil { + return err + } + sohlstp.SystemNumber = systemNumber + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + sohlstp.ClientID = clientID + } + case "language": + if v != nil { + var language interface{} + err = json.Unmarshal(*v, &language) + if err != nil { + return err + } + sohlstp.Language = language + } + case "systemId": + if v != nil { + var systemID interface{} + err = json.Unmarshal(*v, &systemID) + if err != nil { + return err + } + sohlstp.SystemID = systemID + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + sohlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sohlstp.Password = password + } + case "messageServer": + if v != nil { + var messageServer interface{} + err = json.Unmarshal(*v, &messageServer) + if err != nil { + return err + } + sohlstp.MessageServer = messageServer + } + case "messageServerService": + if v != nil { + var messageServerService interface{} + err = json.Unmarshal(*v, &messageServerService) + if err != nil { + return err + } + sohlstp.MessageServerService = messageServerService + } + case "logonGroup": + if v != nil { + var logonGroup interface{} + err = json.Unmarshal(*v, &logonGroup) + if err != nil { + return err + } + sohlstp.LogonGroup = logonGroup + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + sohlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SapOpenHubSource a copy activity source for SAP Business Warehouse Open Hub Destination source. +type SapOpenHubSource struct { + // ExcludeLastRequest - 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"` + // BaseRequestID - 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"` + // CustomRfcReadTableFunctionModule - 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"` + // SapDataColumnDelimiter - 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"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapOpenHubSource. +func (sohs SapOpenHubSource) MarshalJSON() ([]byte, error) { + sohs.Type = TypeBasicCopySourceTypeSapOpenHubSource + objectMap := make(map[string]interface{}) + if sohs.ExcludeLastRequest != nil { + objectMap["excludeLastRequest"] = sohs.ExcludeLastRequest + } + if sohs.BaseRequestID != nil { + objectMap["baseRequestId"] = sohs.BaseRequestID + } + if sohs.CustomRfcReadTableFunctionModule != nil { + objectMap["customRfcReadTableFunctionModule"] = sohs.CustomRfcReadTableFunctionModule + } + if sohs.SapDataColumnDelimiter != nil { + objectMap["sapDataColumnDelimiter"] = sohs.SapDataColumnDelimiter + } + if sohs.QueryTimeout != nil { + objectMap["queryTimeout"] = sohs.QueryTimeout + } + if sohs.AdditionalColumns != nil { + objectMap["additionalColumns"] = sohs.AdditionalColumns + } + if sohs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sohs.SourceRetryCount + } + if sohs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sohs.SourceRetryWait + } + if sohs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sohs.MaxConcurrentConnections + } + if sohs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sohs.DisableMetricsCollection + } + if sohs.Type != "" { + objectMap["type"] = sohs.Type + } + for k, v := range sohs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return &sohs, true +} + +// AsSapHanaSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sohs, true +} + +// AsBinarySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SapOpenHubSource. +func (sohs SapOpenHubSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sohs, true +} + +// UnmarshalJSON is the custom unmarshaler for SapOpenHubSource struct. +func (sohs *SapOpenHubSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "excludeLastRequest": + if v != nil { + var excludeLastRequest interface{} + err = json.Unmarshal(*v, &excludeLastRequest) + if err != nil { + return err + } + sohs.ExcludeLastRequest = excludeLastRequest + } + case "baseRequestId": + if v != nil { + var baseRequestID interface{} + err = json.Unmarshal(*v, &baseRequestID) + if err != nil { + return err + } + sohs.BaseRequestID = baseRequestID + } + case "customRfcReadTableFunctionModule": + if v != nil { + var customRfcReadTableFunctionModule interface{} + err = json.Unmarshal(*v, &customRfcReadTableFunctionModule) + if err != nil { + return err + } + sohs.CustomRfcReadTableFunctionModule = customRfcReadTableFunctionModule + } + case "sapDataColumnDelimiter": + if v != nil { + var sapDataColumnDelimiter interface{} + err = json.Unmarshal(*v, &sapDataColumnDelimiter) + if err != nil { + return err + } + sohs.SapDataColumnDelimiter = sapDataColumnDelimiter + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sohs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sohs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sohs.AdditionalProperties == nil { + sohs.AdditionalProperties = make(map[string]interface{}) + } + sohs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sohs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sohs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sohs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sohs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sohs.Type = typeVar + } + } + } + + return nil +} + +// SapOpenHubTableDataset sap Business Warehouse Open Hub Destination Table properties. +type SapOpenHubTableDataset struct { + // SapOpenHubTableDatasetTypeProperties - Sap Business Warehouse Open Hub Destination Table properties. + *SapOpenHubTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) MarshalJSON() ([]byte, error) { + sohtd.Type = TypeBasicDatasetTypeSapOpenHubTable + objectMap := make(map[string]interface{}) + if sohtd.SapOpenHubTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = sohtd.SapOpenHubTableDatasetTypeProperties + } + if sohtd.Description != nil { + objectMap["description"] = sohtd.Description + } + if sohtd.Structure != nil { + objectMap["structure"] = sohtd.Structure + } + if sohtd.Schema != nil { + objectMap["schema"] = sohtd.Schema + } + if sohtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sohtd.LinkedServiceName + } + if sohtd.Parameters != nil { + objectMap["parameters"] = sohtd.Parameters + } + if sohtd.Annotations != nil { + objectMap["annotations"] = sohtd.Annotations + } + if sohtd.Folder != nil { + objectMap["folder"] = sohtd.Folder + } + if sohtd.Type != "" { + objectMap["type"] = sohtd.Type + } + for k, v := range sohtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return &sohtd, true +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SapOpenHubTableDataset. +func (sohtd SapOpenHubTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &sohtd, true +} + +// UnmarshalJSON is the custom unmarshaler for SapOpenHubTableDataset struct. +func (sohtd *SapOpenHubTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapOpenHubTableDatasetTypeProperties SapOpenHubTableDatasetTypeProperties + err = json.Unmarshal(*v, &sapOpenHubTableDatasetTypeProperties) + if err != nil { + return err + } + sohtd.SapOpenHubTableDatasetTypeProperties = &sapOpenHubTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sohtd.AdditionalProperties == nil { + sohtd.AdditionalProperties = make(map[string]interface{}) + } + sohtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sohtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sohtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sohtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sohtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sohtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sohtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sohtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sohtd.Type = typeVar + } + } + } + + return nil +} + +// SapOpenHubTableDatasetTypeProperties sap Business Warehouse Open Hub Destination Table properties. +type SapOpenHubTableDatasetTypeProperties struct { + // OpenHubDestinationName - 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"` + // ExcludeLastRequest - 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"` + // BaseRequestID - 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"` +} + +// SapTableLinkedService SAP Table Linked Service. +type SapTableLinkedService struct { + // SapTableLinkedServiceTypeProperties - Properties specific to this linked service type. + *SapTableLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapTableLinkedService. +func (stls SapTableLinkedService) MarshalJSON() ([]byte, error) { + stls.Type = TypeBasicLinkedServiceTypeSapTable + objectMap := make(map[string]interface{}) + if stls.SapTableLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = stls.SapTableLinkedServiceTypeProperties + } + if stls.ConnectVia != nil { + objectMap["connectVia"] = stls.ConnectVia + } + if stls.Description != nil { + objectMap["description"] = stls.Description + } + if stls.Parameters != nil { + objectMap["parameters"] = stls.Parameters + } + if stls.Annotations != nil { + objectMap["annotations"] = stls.Annotations + } + if stls.Type != "" { + objectMap["type"] = stls.Type + } + for k, v := range stls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return &stls, true +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SapTableLinkedService. +func (stls SapTableLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &stls, true +} + +// UnmarshalJSON is the custom unmarshaler for SapTableLinkedService struct. +func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapTableLinkedServiceTypeProperties SapTableLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sapTableLinkedServiceTypeProperties) + if err != nil { + return err + } + stls.SapTableLinkedServiceTypeProperties = &sapTableLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if stls.AdditionalProperties == nil { + stls.AdditionalProperties = make(map[string]interface{}) + } + stls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + stls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + stls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + stls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + stls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + stls.Type = typeVar + } + } + } + + return nil +} + +// SapTableLinkedServiceTypeProperties properties specific to this linked service type. +type SapTableLinkedServiceTypeProperties struct { + // Server - Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // SystemNumber - 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"` + // ClientID - 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"` + // Language - 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"` + // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). + SystemID interface{} `json:"systemId,omitempty"` + // UserName - Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to access the SAP server where the table is located. + Password BasicSecretBase `json:"password,omitempty"` + // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). + MessageServer interface{} `json:"messageServer,omitempty"` + // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). + MessageServerService interface{} `json:"messageServerService,omitempty"` + // SncMode - 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"` + // SncMyName - 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"` + // SncPartnerName - 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"` + // SncLibraryPath - 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"` + // SncQop - SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). + SncQop interface{} `json:"sncQop,omitempty"` + // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). + LogonGroup interface{} `json:"logonGroup,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SapTableLinkedServiceTypeProperties struct. +func (stlstp *SapTableLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + stlstp.Server = server + } + case "systemNumber": + if v != nil { + var systemNumber interface{} + err = json.Unmarshal(*v, &systemNumber) + if err != nil { + return err + } + stlstp.SystemNumber = systemNumber + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + stlstp.ClientID = clientID + } + case "language": + if v != nil { + var language interface{} + err = json.Unmarshal(*v, &language) + if err != nil { + return err + } + stlstp.Language = language + } + case "systemId": + if v != nil { + var systemID interface{} + err = json.Unmarshal(*v, &systemID) + if err != nil { + return err + } + stlstp.SystemID = systemID + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + stlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + stlstp.Password = password + } + case "messageServer": + if v != nil { + var messageServer interface{} + err = json.Unmarshal(*v, &messageServer) + if err != nil { + return err + } + stlstp.MessageServer = messageServer + } + case "messageServerService": + if v != nil { + var messageServerService interface{} + err = json.Unmarshal(*v, &messageServerService) + if err != nil { + return err + } + stlstp.MessageServerService = messageServerService + } + case "sncMode": + if v != nil { + var sncMode interface{} + err = json.Unmarshal(*v, &sncMode) + if err != nil { + return err + } + stlstp.SncMode = sncMode + } + case "sncMyName": + if v != nil { + var sncMyName interface{} + err = json.Unmarshal(*v, &sncMyName) + if err != nil { + return err + } + stlstp.SncMyName = sncMyName + } + case "sncPartnerName": + if v != nil { + var sncPartnerName interface{} + err = json.Unmarshal(*v, &sncPartnerName) + if err != nil { + return err + } + stlstp.SncPartnerName = sncPartnerName + } + case "sncLibraryPath": + if v != nil { + var sncLibraryPath interface{} + err = json.Unmarshal(*v, &sncLibraryPath) + if err != nil { + return err + } + stlstp.SncLibraryPath = sncLibraryPath + } + case "sncQop": + if v != nil { + var sncQop interface{} + err = json.Unmarshal(*v, &sncQop) + if err != nil { + return err + } + stlstp.SncQop = sncQop + } + case "logonGroup": + if v != nil { + var logonGroup interface{} + err = json.Unmarshal(*v, &logonGroup) + if err != nil { + return err + } + stlstp.LogonGroup = logonGroup + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + stlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SapTablePartitionSettings the settings that will be leveraged for SAP table source partitioning. +type SapTablePartitionSettings struct { + // PartitionColumnName - 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"` + // PartitionUpperBound - 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"` + // PartitionLowerBound - 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"` + // MaxPartitionsNumber - The maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). + MaxPartitionsNumber interface{} `json:"maxPartitionsNumber,omitempty"` +} + +// SapTableResourceDataset SAP Table Resource properties. +type SapTableResourceDataset struct { + // SapTableResourceDatasetTypeProperties - SAP Table Resource properties. + *SapTableResourceDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapTableResourceDataset. +func (strd SapTableResourceDataset) MarshalJSON() ([]byte, error) { + strd.Type = TypeBasicDatasetTypeSapTableResource + objectMap := make(map[string]interface{}) + if strd.SapTableResourceDatasetTypeProperties != nil { + objectMap["typeProperties"] = strd.SapTableResourceDatasetTypeProperties + } + if strd.Description != nil { + objectMap["description"] = strd.Description + } + if strd.Structure != nil { + objectMap["structure"] = strd.Structure + } + if strd.Schema != nil { + objectMap["schema"] = strd.Schema + } + if strd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = strd.LinkedServiceName + } + if strd.Parameters != nil { + objectMap["parameters"] = strd.Parameters + } + if strd.Annotations != nil { + objectMap["annotations"] = strd.Annotations + } + if strd.Folder != nil { + objectMap["folder"] = strd.Folder + } + if strd.Type != "" { + objectMap["type"] = strd.Type + } + for k, v := range strd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return &strd, true +} + +// AsRestResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SapTableResourceDataset. +func (strd SapTableResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &strd, true +} + +// UnmarshalJSON is the custom unmarshaler for SapTableResourceDataset struct. +func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sapTableResourceDatasetTypeProperties SapTableResourceDatasetTypeProperties + err = json.Unmarshal(*v, &sapTableResourceDatasetTypeProperties) + if err != nil { + return err + } + strd.SapTableResourceDatasetTypeProperties = &sapTableResourceDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if strd.AdditionalProperties == nil { + strd.AdditionalProperties = make(map[string]interface{}) + } + strd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + strd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + strd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + strd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + strd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + strd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + strd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + strd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + strd.Type = typeVar + } + } + } + + return nil +} + +// SapTableResourceDatasetTypeProperties SAP Table Resource properties. +type SapTableResourceDatasetTypeProperties struct { + // TableName - The name of the SAP Table. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// SapTableSource a copy activity source for SAP Table source. +type SapTableSource struct { + // RowCount - The number of rows to be retrieved. Type: integer(or Expression with resultType integer). + RowCount interface{} `json:"rowCount,omitempty"` + // RowSkips - The number of rows that will be skipped. Type: integer (or Expression with resultType integer). + RowSkips interface{} `json:"rowSkips,omitempty"` + // RfcTableFields - 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"` + // RfcTableOptions - 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"` + // BatchSize - 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"` + // CustomRfcReadTableFunctionModule - 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"` + // SapDataColumnDelimiter - 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"` + // PartitionOption - 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"` + // PartitionSettings - The settings that will be leveraged for SAP table source partitioning. + PartitionSettings *SapTablePartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SapTableSource. +func (sts SapTableSource) MarshalJSON() ([]byte, error) { + sts.Type = TypeBasicCopySourceTypeSapTableSource + objectMap := make(map[string]interface{}) + if sts.RowCount != nil { + objectMap["rowCount"] = sts.RowCount + } + if sts.RowSkips != nil { + objectMap["rowSkips"] = sts.RowSkips + } + if sts.RfcTableFields != nil { + objectMap["rfcTableFields"] = sts.RfcTableFields + } + if sts.RfcTableOptions != nil { + objectMap["rfcTableOptions"] = sts.RfcTableOptions + } + if sts.BatchSize != nil { + objectMap["batchSize"] = sts.BatchSize + } + if sts.CustomRfcReadTableFunctionModule != nil { + objectMap["customRfcReadTableFunctionModule"] = sts.CustomRfcReadTableFunctionModule + } + if sts.SapDataColumnDelimiter != nil { + objectMap["sapDataColumnDelimiter"] = sts.SapDataColumnDelimiter + } + if sts.PartitionOption != nil { + objectMap["partitionOption"] = sts.PartitionOption + } + if sts.PartitionSettings != nil { + objectMap["partitionSettings"] = sts.PartitionSettings + } + if sts.QueryTimeout != nil { + objectMap["queryTimeout"] = sts.QueryTimeout + } + if sts.AdditionalColumns != nil { + objectMap["additionalColumns"] = sts.AdditionalColumns + } + if sts.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sts.SourceRetryCount + } + if sts.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sts.SourceRetryWait + } + if sts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sts.MaxConcurrentConnections + } + if sts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sts.DisableMetricsCollection + } + if sts.Type != "" { + objectMap["type"] = sts.Type + } + for k, v := range sts.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapTableSource() (*SapTableSource, bool) { + return &sts, true +} + +// AsSapOdpSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sts, true +} + +// AsBinarySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SapTableSource. +func (sts SapTableSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sts, true +} + +// UnmarshalJSON is the custom unmarshaler for SapTableSource struct. +func (sts *SapTableSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "rowCount": + if v != nil { + var rowCount interface{} + err = json.Unmarshal(*v, &rowCount) + if err != nil { + return err + } + sts.RowCount = rowCount + } + case "rowSkips": + if v != nil { + var rowSkips interface{} + err = json.Unmarshal(*v, &rowSkips) + if err != nil { + return err + } + sts.RowSkips = rowSkips + } + case "rfcTableFields": + if v != nil { + var rfcTableFields interface{} + err = json.Unmarshal(*v, &rfcTableFields) + if err != nil { + return err + } + sts.RfcTableFields = rfcTableFields + } + case "rfcTableOptions": + if v != nil { + var rfcTableOptions interface{} + err = json.Unmarshal(*v, &rfcTableOptions) + if err != nil { + return err + } + sts.RfcTableOptions = rfcTableOptions + } + case "batchSize": + if v != nil { + var batchSize interface{} + err = json.Unmarshal(*v, &batchSize) + if err != nil { + return err + } + sts.BatchSize = batchSize + } + case "customRfcReadTableFunctionModule": + if v != nil { + var customRfcReadTableFunctionModule interface{} + err = json.Unmarshal(*v, &customRfcReadTableFunctionModule) + if err != nil { + return err + } + sts.CustomRfcReadTableFunctionModule = customRfcReadTableFunctionModule + } + case "sapDataColumnDelimiter": + if v != nil { + var sapDataColumnDelimiter interface{} + err = json.Unmarshal(*v, &sapDataColumnDelimiter) + if err != nil { + return err + } + sts.SapDataColumnDelimiter = sapDataColumnDelimiter + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + sts.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SapTablePartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + sts.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sts.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sts.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sts.AdditionalProperties == nil { + sts.AdditionalProperties = make(map[string]interface{}) + } + sts.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sts.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sts.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sts.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sts.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sts.Type = typeVar + } + } + } + + return nil +} + +// ScheduleTrigger trigger that creates pipeline runs periodically, on schedule. +type ScheduleTrigger struct { + // ScheduleTriggerTypeProperties - Schedule Trigger properties. + *ScheduleTriggerTypeProperties `json:"typeProperties,omitempty"` + // Pipelines - Pipelines that need to be started. + Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ScheduleTrigger. +func (st ScheduleTrigger) MarshalJSON() ([]byte, error) { + st.Type = TypeBasicTriggerTypeScheduleTrigger + objectMap := make(map[string]interface{}) + if st.ScheduleTriggerTypeProperties != nil { + objectMap["typeProperties"] = st.ScheduleTriggerTypeProperties + } + if st.Pipelines != nil { + objectMap["pipelines"] = st.Pipelines + } + if st.Description != nil { + objectMap["description"] = st.Description + } + if st.Annotations != nil { + objectMap["annotations"] = st.Annotations + } + if st.Type != "" { + objectMap["type"] = st.Type + } + for k, v := range st.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return &st, true +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return &st, true +} + +// AsTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for ScheduleTrigger. +func (st ScheduleTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &st, true +} + +// UnmarshalJSON is the custom unmarshaler for ScheduleTrigger struct. +func (st *ScheduleTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var scheduleTriggerTypeProperties ScheduleTriggerTypeProperties + err = json.Unmarshal(*v, &scheduleTriggerTypeProperties) + if err != nil { + return err + } + st.ScheduleTriggerTypeProperties = &scheduleTriggerTypeProperties + } + case "pipelines": + if v != nil { + var pipelines []TriggerPipelineReference + err = json.Unmarshal(*v, &pipelines) + if err != nil { + return err + } + st.Pipelines = &pipelines + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if st.AdditionalProperties == nil { + st.AdditionalProperties = make(map[string]interface{}) + } + st.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + st.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + st.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + st.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + st.Type = typeVar + } + } + } + + return nil +} + +// ScheduleTriggerRecurrence the workflow trigger recurrence. +type ScheduleTriggerRecurrence struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Frequency - The frequency. Possible values include: 'RecurrenceFrequencyNotSpecified', 'RecurrenceFrequencyMinute', 'RecurrenceFrequencyHour', 'RecurrenceFrequencyDay', 'RecurrenceFrequencyWeek', 'RecurrenceFrequencyMonth', 'RecurrenceFrequencyYear' + Frequency RecurrenceFrequency `json:"frequency,omitempty"` + // Interval - The interval. + Interval *int32 `json:"interval,omitempty"` + // StartTime - The start time. + StartTime *date.Time `json:"startTime,omitempty"` + // EndTime - The end time. + EndTime *date.Time `json:"endTime,omitempty"` + // TimeZone - The time zone. + TimeZone *string `json:"timeZone,omitempty"` + // Schedule - The recurrence schedule. + Schedule *RecurrenceSchedule `json:"schedule,omitempty"` +} + +// MarshalJSON is the custom marshaler for ScheduleTriggerRecurrence. +func (str ScheduleTriggerRecurrence) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if str.Frequency != "" { + objectMap["frequency"] = str.Frequency + } + if str.Interval != nil { + objectMap["interval"] = str.Interval + } + if str.StartTime != nil { + objectMap["startTime"] = str.StartTime + } + if str.EndTime != nil { + objectMap["endTime"] = str.EndTime + } + if str.TimeZone != nil { + objectMap["timeZone"] = str.TimeZone + } + if str.Schedule != nil { + objectMap["schedule"] = str.Schedule + } + for k, v := range str.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ScheduleTriggerRecurrence struct. +func (str *ScheduleTriggerRecurrence) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if str.AdditionalProperties == nil { + str.AdditionalProperties = make(map[string]interface{}) + } + str.AdditionalProperties[k] = additionalProperties + } + case "frequency": + if v != nil { + var frequency RecurrenceFrequency + err = json.Unmarshal(*v, &frequency) + if err != nil { + return err + } + str.Frequency = frequency + } + case "interval": + if v != nil { + var interval int32 + err = json.Unmarshal(*v, &interval) + if err != nil { + return err + } + str.Interval = &interval + } + case "startTime": + if v != nil { + var startTime date.Time + err = json.Unmarshal(*v, &startTime) + if err != nil { + return err + } + str.StartTime = &startTime + } + case "endTime": + if v != nil { + var endTime date.Time + err = json.Unmarshal(*v, &endTime) + if err != nil { + return err + } + str.EndTime = &endTime + } + case "timeZone": + if v != nil { + var timeZone string + err = json.Unmarshal(*v, &timeZone) + if err != nil { + return err + } + str.TimeZone = &timeZone + } + case "schedule": + if v != nil { + var schedule RecurrenceSchedule + err = json.Unmarshal(*v, &schedule) + if err != nil { + return err + } + str.Schedule = &schedule + } + } + } + + return nil +} + +// ScheduleTriggerTypeProperties schedule Trigger properties. +type ScheduleTriggerTypeProperties struct { + // Recurrence - Recurrence schedule configuration. + Recurrence *ScheduleTriggerRecurrence `json:"recurrence,omitempty"` +} + +// ScriptAction custom script action to run on HDI ondemand cluster once it's up. +type ScriptAction struct { + // Name - The user provided name of the script action. + Name *string `json:"name,omitempty"` + // URI - The URI for the script action. + URI *string `json:"uri,omitempty"` + // Roles - The node types on which the script action should be executed. + Roles interface{} `json:"roles,omitempty"` + // Parameters - The parameters for the script action. + Parameters *string `json:"parameters,omitempty"` +} + +// ScriptActivity script activity type. +type ScriptActivity struct { + // ScriptActivityTypeProperties - Script activity properties. + *ScriptActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ScriptActivity. +func (sa ScriptActivity) MarshalJSON() ([]byte, error) { + sa.Type = TypeBasicActivityTypeScript + objectMap := make(map[string]interface{}) + if sa.ScriptActivityTypeProperties != nil { + objectMap["typeProperties"] = sa.ScriptActivityTypeProperties + } + if sa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sa.LinkedServiceName + } + if sa.Policy != nil { + objectMap["policy"] = sa.Policy + } + if sa.Name != nil { + objectMap["name"] = sa.Name + } + if sa.Description != nil { + objectMap["description"] = sa.Description + } + if sa.State != "" { + objectMap["state"] = sa.State + } + if sa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = sa.OnInactiveMarkAs + } + if sa.DependsOn != nil { + objectMap["dependsOn"] = sa.DependsOn + } + if sa.UserProperties != nil { + objectMap["userProperties"] = sa.UserProperties + } + if sa.Type != "" { + objectMap["type"] = sa.Type + } + for k, v := range sa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsScriptActivity() (*ScriptActivity, bool) { + return &sa, true +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &sa, true +} + +// AsWebHookActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ScriptActivity. +func (sa ScriptActivity) AsBasicActivity() (BasicActivity, bool) { + return &sa, true +} + +// UnmarshalJSON is the custom unmarshaler for ScriptActivity struct. +func (sa *ScriptActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var scriptActivityTypeProperties ScriptActivityTypeProperties + err = json.Unmarshal(*v, &scriptActivityTypeProperties) + if err != nil { + return err + } + sa.ScriptActivityTypeProperties = &scriptActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + sa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sa.AdditionalProperties == nil { + sa.AdditionalProperties = make(map[string]interface{}) + } + sa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + sa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + sa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + sa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + sa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sa.Type = typeVar + } + } + } + + return nil +} + +// ScriptActivityParameter parameters of a script block. +type ScriptActivityParameter struct { + // Name - The name of the parameter. Type: string (or Expression with resultType string). + Name interface{} `json:"name,omitempty"` + // Type - The type of the parameter. Possible values include: 'ScriptActivityParameterTypeBoolean', 'ScriptActivityParameterTypeDateTime', 'ScriptActivityParameterTypeDateTimeOffset', 'ScriptActivityParameterTypeDecimal', 'ScriptActivityParameterTypeDouble', 'ScriptActivityParameterTypeGUID', 'ScriptActivityParameterTypeInt16', 'ScriptActivityParameterTypeInt32', 'ScriptActivityParameterTypeInt64', 'ScriptActivityParameterTypeSingle', 'ScriptActivityParameterTypeString', 'ScriptActivityParameterTypeTimespan' + Type ScriptActivityParameterType `json:"type,omitempty"` + // Value - The value of the parameter. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` + // Direction - The direction of the parameter. Possible values include: 'ScriptActivityParameterDirectionInput', 'ScriptActivityParameterDirectionOutput', 'ScriptActivityParameterDirectionInputOutput' + Direction ScriptActivityParameterDirection `json:"direction,omitempty"` + // Size - The size of the output direction parameter. + Size *int32 `json:"size,omitempty"` +} + +// ScriptActivityScriptBlock script block of scripts. +type ScriptActivityScriptBlock struct { + // Text - The query text. Type: string (or Expression with resultType string). + Text interface{} `json:"text,omitempty"` + // Type - The type of the query. Type: string. Possible values include: 'ScriptTypeQuery', 'ScriptTypeNonQuery' + Type ScriptType `json:"type,omitempty"` + // Parameters - Array of script parameters. Type: array. + Parameters *[]ScriptActivityParameter `json:"parameters,omitempty"` +} + +// ScriptActivityTypeProperties script activity properties. +type ScriptActivityTypeProperties struct { + // ScriptBlockExecutionTimeout - 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 interface{} `json:"scriptBlockExecutionTimeout,omitempty"` + // Scripts - Array of script blocks. Type: array. + Scripts *[]ScriptActivityScriptBlock `json:"scripts,omitempty"` + // LogSettings - Log settings of script activity. + LogSettings *ScriptActivityTypePropertiesLogSettings `json:"logSettings,omitempty"` +} + +// ScriptActivityTypePropertiesLogSettings log settings of script activity. +type ScriptActivityTypePropertiesLogSettings struct { + // LogDestination - The destination of logs. Type: string. Possible values include: 'ScriptActivityLogDestinationActivityOutput', 'ScriptActivityLogDestinationExternalStore' + LogDestination ScriptActivityLogDestination `json:"logDestination,omitempty"` + // LogLocationSettings - Log location settings customer needs to provide when enabling log. + LogLocationSettings *LogLocationSettings `json:"logLocationSettings,omitempty"` +} + +// BasicSecretBase the base definition of a secret type. +type BasicSecretBase interface { + AsSecureString() (*SecureString, bool) + AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) + AsSecretBase() (*SecretBase, bool) +} + +// SecretBase the base definition of a secret type. +type SecretBase struct { + // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' + Type Type `json:"type,omitempty"` +} + +func unmarshalBasicSecretBase(body []byte) (BasicSecretBase, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeSecureString): + var ss SecureString + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeAzureKeyVaultSecret): + var akvsr AzureKeyVaultSecretReference + err := json.Unmarshal(body, &akvsr) + return akvsr, err + default: + var sb SecretBase + err := json.Unmarshal(body, &sb) + return sb, err + } +} +func unmarshalBasicSecretBaseArray(body []byte) ([]BasicSecretBase, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + sbArray := make([]BasicSecretBase, len(rawMessages)) + + for index, rawMessage := range rawMessages { + sb, err := unmarshalBasicSecretBase(*rawMessage) + if err != nil { + return nil, err + } + sbArray[index] = sb + } + return sbArray, nil +} + +// MarshalJSON is the custom marshaler for SecretBase. +func (sb SecretBase) MarshalJSON() ([]byte, error) { + sb.Type = TypeSecretBase + objectMap := make(map[string]interface{}) + if sb.Type != "" { + objectMap["type"] = sb.Type + } + return json.Marshal(objectMap) +} + +// AsSecureString is the BasicSecretBase implementation for SecretBase. +func (sb SecretBase) AsSecureString() (*SecureString, bool) { + return nil, false +} + +// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecretBase. +func (sb SecretBase) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { + return nil, false +} + +// AsSecretBase is the BasicSecretBase implementation for SecretBase. +func (sb SecretBase) AsSecretBase() (*SecretBase, bool) { + return &sb, true +} + +// AsBasicSecretBase is the BasicSecretBase implementation for SecretBase. +func (sb SecretBase) AsBasicSecretBase() (BasicSecretBase, bool) { + return &sb, true +} + +// SecureInputOutputPolicy execution policy for an activity that supports secure input and output. +type SecureInputOutputPolicy struct { + // SecureInput - When set to true, Input from activity is considered as secure and will not be logged to monitoring. + SecureInput *bool `json:"secureInput,omitempty"` + // SecureOutput - When set to true, Output from activity is considered as secure and will not be logged to monitoring. + SecureOutput *bool `json:"secureOutput,omitempty"` +} + +// SecureString azure Data Factory secure string definition. The string value will be masked with asterisks +// '*' during Get or List API calls. +type SecureString struct { + // Value - Value of secure string. + Value *string `json:"value,omitempty"` + // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' + Type Type `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SecureString. +func (ss SecureString) MarshalJSON() ([]byte, error) { + ss.Type = TypeSecureString + objectMap := make(map[string]interface{}) + if ss.Value != nil { + objectMap["value"] = ss.Value + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + return json.Marshal(objectMap) +} + +// AsSecureString is the BasicSecretBase implementation for SecureString. +func (ss SecureString) AsSecureString() (*SecureString, bool) { + return &ss, true +} + +// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecureString. +func (ss SecureString) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { + return nil, false +} + +// AsSecretBase is the BasicSecretBase implementation for SecureString. +func (ss SecureString) AsSecretBase() (*SecretBase, bool) { + return nil, false +} + +// AsBasicSecretBase is the BasicSecretBase implementation for SecureString. +func (ss SecureString) AsBasicSecretBase() (BasicSecretBase, bool) { + return &ss, true +} + +// SelfDependencyTumblingWindowTriggerReference self referenced tumbling window trigger dependency. +type SelfDependencyTumblingWindowTriggerReference struct { + // Offset - Timespan applied to the start time of a tumbling window when evaluating dependency. + Offset *string `json:"offset,omitempty"` + // Size - 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"` + // Type - Possible values include: 'TypeBasicDependencyReferenceTypeDependencyReference', 'TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference', 'TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference', 'TypeBasicDependencyReferenceTypeTriggerDependencyReference' + Type TypeBasicDependencyReference `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) MarshalJSON() ([]byte, error) { + sdtwtr.Type = TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference + objectMap := make(map[string]interface{}) + if sdtwtr.Offset != nil { + objectMap["offset"] = sdtwtr.Offset + } + if sdtwtr.Size != nil { + objectMap["size"] = sdtwtr.Size + } + if sdtwtr.Type != "" { + objectMap["type"] = sdtwtr.Type + } + return json.Marshal(objectMap) +} + +// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { + return &sdtwtr, true +} + +// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { + return nil, false +} + +// AsTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { + return nil, false +} + +// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { + return nil, false +} + +// AsDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsDependencyReference() (*DependencyReference, bool) { + return nil, false +} + +// AsBasicDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. +func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { + return &sdtwtr, true +} + +// SelfHostedIntegrationRuntime self-hosted integration runtime. +type SelfHostedIntegrationRuntime struct { + // SelfHostedIntegrationRuntimeTypeProperties - When this property is not null, means this is a linked integration runtime. The property is used to access original integration runtime. + *SelfHostedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Integration runtime description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeBasicIntegrationRuntimeTypeIntegrationRuntime', 'TypeBasicIntegrationRuntimeTypeSelfHosted', 'TypeBasicIntegrationRuntimeTypeManaged' + Type TypeBasicIntegrationRuntime `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { + shir.Type = TypeBasicIntegrationRuntimeTypeSelfHosted + objectMap := make(map[string]interface{}) + if shir.SelfHostedIntegrationRuntimeTypeProperties != nil { + objectMap["typeProperties"] = shir.SelfHostedIntegrationRuntimeTypeProperties + } + if shir.Description != nil { + objectMap["description"] = shir.Description + } + if shir.Type != "" { + objectMap["type"] = shir.Type + } + for k, v := range shir.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { + return &shir, true +} + +// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { + return nil, false +} + +// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { + return nil, false +} + +// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. +func (shir SelfHostedIntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { + return &shir, true +} + +// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntime struct. +func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var selfHostedIntegrationRuntimeTypeProperties SelfHostedIntegrationRuntimeTypeProperties + err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeTypeProperties) + if err != nil { + return err + } + shir.SelfHostedIntegrationRuntimeTypeProperties = &selfHostedIntegrationRuntimeTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if shir.AdditionalProperties == nil { + shir.AdditionalProperties = make(map[string]interface{}) + } + shir.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + shir.Description = &description + } + case "type": + if v != nil { + var typeVar TypeBasicIntegrationRuntime + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + shir.Type = typeVar + } + } + } + + return nil +} + +// SelfHostedIntegrationRuntimeNode properties of Self-hosted integration runtime node. +type SelfHostedIntegrationRuntimeNode struct { + autorest.Response `json:"-"` + // NodeName - READ-ONLY; Name of the integration runtime node. + NodeName *string `json:"nodeName,omitempty"` + // MachineName - READ-ONLY; Machine name of the integration runtime node. + MachineName *string `json:"machineName,omitempty"` + // HostServiceURI - READ-ONLY; URI for the host machine of the integration runtime. + HostServiceURI *string `json:"hostServiceUri,omitempty"` + // Status - READ-ONLY; Status of the integration runtime node. Possible values include: 'SelfHostedIntegrationRuntimeNodeStatusNeedRegistration', 'SelfHostedIntegrationRuntimeNodeStatusOnline', 'SelfHostedIntegrationRuntimeNodeStatusLimited', 'SelfHostedIntegrationRuntimeNodeStatusOffline', 'SelfHostedIntegrationRuntimeNodeStatusUpgrading', 'SelfHostedIntegrationRuntimeNodeStatusInitializing', 'SelfHostedIntegrationRuntimeNodeStatusInitializeFailed' + Status SelfHostedIntegrationRuntimeNodeStatus `json:"status,omitempty"` + // Capabilities - READ-ONLY; The integration runtime capabilities dictionary + Capabilities map[string]*string `json:"capabilities"` + // VersionStatus - READ-ONLY; Status of the integration runtime node version. + VersionStatus *string `json:"versionStatus,omitempty"` + // Version - READ-ONLY; Version of the integration runtime node. + Version *string `json:"version,omitempty"` + // RegisterTime - READ-ONLY; The time at which the integration runtime node was registered in ISO8601 format. + RegisterTime *date.Time `json:"registerTime,omitempty"` + // LastConnectTime - READ-ONLY; The most recent time at which the integration runtime was connected in ISO8601 format. + LastConnectTime *date.Time `json:"lastConnectTime,omitempty"` + // ExpiryTime - READ-ONLY; The time at which the integration runtime will expire in ISO8601 format. + ExpiryTime *date.Time `json:"expiryTime,omitempty"` + // LastStartTime - READ-ONLY; The time the node last started up. + LastStartTime *date.Time `json:"lastStartTime,omitempty"` + // LastStopTime - READ-ONLY; The integration runtime node last stop time. + LastStopTime *date.Time `json:"lastStopTime,omitempty"` + // LastUpdateResult - READ-ONLY; The result of the last integration runtime node update. Possible values include: 'IntegrationRuntimeUpdateResultNone', 'IntegrationRuntimeUpdateResultSucceed', 'IntegrationRuntimeUpdateResultFail' + LastUpdateResult IntegrationRuntimeUpdateResult `json:"lastUpdateResult,omitempty"` + // LastStartUpdateTime - READ-ONLY; The last time for the integration runtime node update start. + LastStartUpdateTime *date.Time `json:"lastStartUpdateTime,omitempty"` + // LastEndUpdateTime - READ-ONLY; The last time for the integration runtime node update end. + LastEndUpdateTime *date.Time `json:"lastEndUpdateTime,omitempty"` + // IsActiveDispatcher - READ-ONLY; Indicates whether this node is the active dispatcher for integration runtime requests. + IsActiveDispatcher *bool `json:"isActiveDispatcher,omitempty"` + // ConcurrentJobsLimit - READ-ONLY; Maximum concurrent jobs on the integration runtime node. + ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` + // MaxConcurrentJobs - READ-ONLY; The maximum concurrent jobs in this integration runtime. + MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` +} + +// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeNode. +func (shirn SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// SelfHostedIntegrationRuntimeStatus self-hosted integration runtime status. +type SelfHostedIntegrationRuntimeStatus struct { + // SelfHostedIntegrationRuntimeStatusTypeProperties - Self-hosted integration runtime status type properties. + *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. + DataFactoryName *string `json:"dataFactoryName,omitempty"` + // State - READ-ONLY; The state of integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' + State IntegrationRuntimeState `json:"state,omitempty"` + // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' + Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + shirs.Type = TypeBasicIntegrationRuntimeStatusTypeSelfHosted + objectMap := make(map[string]interface{}) + if shirs.SelfHostedIntegrationRuntimeStatusTypeProperties != nil { + objectMap["typeProperties"] = shirs.SelfHostedIntegrationRuntimeStatusTypeProperties + } + if shirs.Type != "" { + objectMap["type"] = shirs.Type + } + for k, v := range shirs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { + return &shirs, true +} + +// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { + return nil, false +} + +// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { + return nil, false +} + +// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. +func (shirs SelfHostedIntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { + return &shirs, true +} + +// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeStatus struct. +func (shirs *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var selfHostedIntegrationRuntimeStatusTypeProperties SelfHostedIntegrationRuntimeStatusTypeProperties + err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeStatusTypeProperties) + if err != nil { + return err + } + shirs.SelfHostedIntegrationRuntimeStatusTypeProperties = &selfHostedIntegrationRuntimeStatusTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if shirs.AdditionalProperties == nil { + shirs.AdditionalProperties = make(map[string]interface{}) + } + shirs.AdditionalProperties[k] = additionalProperties + } + case "dataFactoryName": + if v != nil { + var dataFactoryName string + err = json.Unmarshal(*v, &dataFactoryName) + if err != nil { + return err + } + shirs.DataFactoryName = &dataFactoryName + } + case "state": + if v != nil { + var state IntegrationRuntimeState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + shirs.State = state + } + case "type": + if v != nil { + var typeVar TypeBasicIntegrationRuntimeStatus + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + shirs.Type = typeVar + } + } + } + + return nil +} + +// SelfHostedIntegrationRuntimeStatusTypeProperties self-hosted integration runtime status type properties. +type SelfHostedIntegrationRuntimeStatusTypeProperties struct { + // CreateTime - READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. + CreateTime *date.Time `json:"createTime,omitempty"` + // TaskQueueID - READ-ONLY; The task queue id of the integration runtime. + TaskQueueID *string `json:"taskQueueId,omitempty"` + // InternalChannelEncryption - 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). Possible values include: 'IntegrationRuntimeInternalChannelEncryptionModeNotSet', 'IntegrationRuntimeInternalChannelEncryptionModeSslEncrypted', 'IntegrationRuntimeInternalChannelEncryptionModeNotEncrypted' + InternalChannelEncryption IntegrationRuntimeInternalChannelEncryptionMode `json:"internalChannelEncryption,omitempty"` + // Version - READ-ONLY; Version of the integration runtime. + Version *string `json:"version,omitempty"` + // Nodes - The list of nodes for this integration runtime. + Nodes *[]SelfHostedIntegrationRuntimeNode `json:"nodes,omitempty"` + // ScheduledUpdateDate - READ-ONLY; The date at which the integration runtime will be scheduled to update, in ISO8601 format. + ScheduledUpdateDate *date.Time `json:"scheduledUpdateDate,omitempty"` + // UpdateDelayOffset - 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"` + // LocalTimeZoneOffset - READ-ONLY; The local time zone offset in hours. + LocalTimeZoneOffset *string `json:"localTimeZoneOffset,omitempty"` + // Capabilities - READ-ONLY; Object with additional information about integration runtime capabilities. + Capabilities map[string]*string `json:"capabilities"` + // ServiceUrls - READ-ONLY; The URLs for the services used in integration runtime backend service. + ServiceUrls *[]string `json:"serviceUrls,omitempty"` + // AutoUpdate - READ-ONLY; Whether Self-hosted integration runtime auto update has been turned on. Possible values include: 'IntegrationRuntimeAutoUpdateOn', 'IntegrationRuntimeAutoUpdateOff' + AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` + // VersionStatus - READ-ONLY; Status of the integration runtime version. + VersionStatus *string `json:"versionStatus,omitempty"` + // Links - The list of linked integration runtimes that are created to share with this integration runtime. + Links *[]LinkedIntegrationRuntime `json:"links,omitempty"` + // PushedVersion - READ-ONLY; The version that the integration runtime is going to update to. + PushedVersion *string `json:"pushedVersion,omitempty"` + // LatestVersion - READ-ONLY; The latest version on download center. + LatestVersion *string `json:"latestVersion,omitempty"` + // AutoUpdateETA - READ-ONLY; The estimated time when the self-hosted integration runtime will be updated. + AutoUpdateETA *date.Time `json:"autoUpdateETA,omitempty"` + // SelfContainedInteractiveAuthoringEnabled - 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 `json:"selfContainedInteractiveAuthoringEnabled,omitempty"` +} + +// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatusTypeProperties. +func (shirstp SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if shirstp.Nodes != nil { + objectMap["nodes"] = shirstp.Nodes + } + if shirstp.Links != nil { + objectMap["links"] = shirstp.Links + } + return json.Marshal(objectMap) +} + +// SelfHostedIntegrationRuntimeTypeProperties the self-hosted integration runtime properties. +type SelfHostedIntegrationRuntimeTypeProperties struct { + LinkedInfo BasicLinkedIntegrationRuntimeType `json:"linkedInfo,omitempty"` + // SelfContainedInteractiveAuthoringEnabled - 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 `json:"selfContainedInteractiveAuthoringEnabled,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeTypeProperties struct. +func (shirtp *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "linkedInfo": + if v != nil { + linkedInfo, err := unmarshalBasicLinkedIntegrationRuntimeType(*v) + if err != nil { + return err + } + shirtp.LinkedInfo = linkedInfo + } + case "selfContainedInteractiveAuthoringEnabled": + if v != nil { + var selfContainedInteractiveAuthoringEnabled bool + err = json.Unmarshal(*v, &selfContainedInteractiveAuthoringEnabled) + if err != nil { + return err + } + shirtp.SelfContainedInteractiveAuthoringEnabled = &selfContainedInteractiveAuthoringEnabled + } + } + } + + return nil +} + +// ServiceNowLinkedService serviceNow server linked service. +type ServiceNowLinkedService struct { + // ServiceNowLinkedServiceTypeProperties - ServiceNow server linked service properties. + *ServiceNowLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) MarshalJSON() ([]byte, error) { + snls.Type = TypeBasicLinkedServiceTypeServiceNow + objectMap := make(map[string]interface{}) + if snls.ServiceNowLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = snls.ServiceNowLinkedServiceTypeProperties + } + if snls.ConnectVia != nil { + objectMap["connectVia"] = snls.ConnectVia + } + if snls.Description != nil { + objectMap["description"] = snls.Description + } + if snls.Parameters != nil { + objectMap["parameters"] = snls.Parameters + } + if snls.Annotations != nil { + objectMap["annotations"] = snls.Annotations + } + if snls.Type != "" { + objectMap["type"] = snls.Type + } + for k, v := range snls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return &snls, true +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. +func (snls ServiceNowLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &snls, true +} + +// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedService struct. +func (snls *ServiceNowLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var serviceNowLinkedServiceTypeProperties ServiceNowLinkedServiceTypeProperties + err = json.Unmarshal(*v, &serviceNowLinkedServiceTypeProperties) + if err != nil { + return err + } + snls.ServiceNowLinkedServiceTypeProperties = &serviceNowLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if snls.AdditionalProperties == nil { + snls.AdditionalProperties = make(map[string]interface{}) + } + snls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + snls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + snls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + snls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + snls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + snls.Type = typeVar + } + } + } + + return nil +} + +// ServiceNowLinkedServiceTypeProperties serviceNow server linked service properties. +type ServiceNowLinkedServiceTypeProperties struct { + // Endpoint - The endpoint of the ServiceNow server. (i.e. .service-now.com) + Endpoint interface{} `json:"endpoint,omitempty"` + // AuthenticationType - The authentication type to use. Possible values include: 'ServiceNowAuthenticationTypeBasic', 'ServiceNowAuthenticationTypeOAuth2' + AuthenticationType ServiceNowAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name for Basic and OAuth2 authentication. + Password BasicSecretBase `json:"password,omitempty"` + // ClientID - The client id for OAuth2 authentication. + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret for OAuth2 authentication. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedServiceTypeProperties struct. +func (snlstp *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + snlstp.Endpoint = endpoint + } + case "authenticationType": + if v != nil { + var authenticationType ServiceNowAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + snlstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + snlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + snlstp.Password = password + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + snlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + snlstp.ClientSecret = clientSecret + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + snlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + snlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + snlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + snlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ServiceNowObjectDataset serviceNow server dataset. +type ServiceNowObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) MarshalJSON() ([]byte, error) { + snod.Type = TypeBasicDatasetTypeServiceNowObject + objectMap := make(map[string]interface{}) + if snod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = snod.GenericDatasetTypeProperties + } + if snod.Description != nil { + objectMap["description"] = snod.Description + } + if snod.Structure != nil { + objectMap["structure"] = snod.Structure + } + if snod.Schema != nil { + objectMap["schema"] = snod.Schema + } + if snod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = snod.LinkedServiceName + } + if snod.Parameters != nil { + objectMap["parameters"] = snod.Parameters + } + if snod.Annotations != nil { + objectMap["annotations"] = snod.Annotations + } + if snod.Folder != nil { + objectMap["folder"] = snod.Folder + } + if snod.Type != "" { + objectMap["type"] = snod.Type + } + for k, v := range snod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return &snod, true +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ServiceNowObjectDataset. +func (snod ServiceNowObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &snod, true +} + +// UnmarshalJSON is the custom unmarshaler for ServiceNowObjectDataset struct. +func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + snod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if snod.AdditionalProperties == nil { + snod.AdditionalProperties = make(map[string]interface{}) + } + snod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + snod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + snod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + snod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + snod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + snod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + snod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + snod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + snod.Type = typeVar + } + } + } + + return nil +} + +// ServiceNowSource a copy activity ServiceNow server source. +type ServiceNowSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceNowSource. +func (sns ServiceNowSource) MarshalJSON() ([]byte, error) { + sns.Type = TypeBasicCopySourceTypeServiceNowSource + objectMap := make(map[string]interface{}) + if sns.Query != nil { + objectMap["query"] = sns.Query + } + if sns.QueryTimeout != nil { + objectMap["queryTimeout"] = sns.QueryTimeout + } + if sns.AdditionalColumns != nil { + objectMap["additionalColumns"] = sns.AdditionalColumns + } + if sns.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = sns.SourceRetryCount + } + if sns.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = sns.SourceRetryWait + } + if sns.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sns.MaxConcurrentConnections + } + if sns.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sns.DisableMetricsCollection + } + if sns.Type != "" { + objectMap["type"] = sns.Type + } + for k, v := range sns.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return &sns, true +} + +// AsQuickBooksSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &sns, true +} + +// AsBinarySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ServiceNowSource. +func (sns ServiceNowSource) AsBasicCopySource() (BasicCopySource, bool) { + return &sns, true +} + +// UnmarshalJSON is the custom unmarshaler for ServiceNowSource struct. +func (sns *ServiceNowSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + sns.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + sns.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + sns.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sns.AdditionalProperties == nil { + sns.AdditionalProperties = make(map[string]interface{}) + } + sns.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + sns.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + sns.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sns.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sns.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sns.Type = typeVar + } + } + } + + return nil +} + +// ServiceNowV2LinkedService serviceNowV2 server linked service. +type ServiceNowV2LinkedService struct { + // ServiceNowV2LinkedServiceTypeProperties - ServiceNowV2 server linked service properties. + *ServiceNowV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) MarshalJSON() ([]byte, error) { + snvls.Type = TypeBasicLinkedServiceTypeServiceNowV2 + objectMap := make(map[string]interface{}) + if snvls.ServiceNowV2LinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = snvls.ServiceNowV2LinkedServiceTypeProperties + } + if snvls.ConnectVia != nil { + objectMap["connectVia"] = snvls.ConnectVia + } + if snvls.Description != nil { + objectMap["description"] = snvls.Description + } + if snvls.Parameters != nil { + objectMap["parameters"] = snvls.Parameters + } + if snvls.Annotations != nil { + objectMap["annotations"] = snvls.Annotations + } + if snvls.Type != "" { + objectMap["type"] = snvls.Type + } + for k, v := range snvls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return &snvls, true +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ServiceNowV2LinkedService. +func (snvls ServiceNowV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &snvls, true +} + +// UnmarshalJSON is the custom unmarshaler for ServiceNowV2LinkedService struct. +func (snvls *ServiceNowV2LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var serviceNowV2LinkedServiceTypeProperties ServiceNowV2LinkedServiceTypeProperties + err = json.Unmarshal(*v, &serviceNowV2LinkedServiceTypeProperties) + if err != nil { + return err + } + snvls.ServiceNowV2LinkedServiceTypeProperties = &serviceNowV2LinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if snvls.AdditionalProperties == nil { + snvls.AdditionalProperties = make(map[string]interface{}) + } + snvls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + snvls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + snvls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + snvls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + snvls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + snvls.Type = typeVar + } + } + } + + return nil +} + +// ServiceNowV2LinkedServiceTypeProperties serviceNowV2 server linked service properties. +type ServiceNowV2LinkedServiceTypeProperties struct { + // Endpoint - The endpoint of the ServiceNowV2 server. (i.e. .service-now.com) + Endpoint interface{} `json:"endpoint,omitempty"` + // AuthenticationType - The authentication type to use. Possible values include: 'ServiceNowV2AuthenticationTypeBasic', 'ServiceNowV2AuthenticationTypeOAuth2' + AuthenticationType ServiceNowV2AuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name for Basic and OAuth2 authentication. + Password BasicSecretBase `json:"password,omitempty"` + // ClientID - The client id for OAuth2 authentication. + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret for OAuth2 authentication. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // GrantType - GrantType for OAuth2 authentication. Default value is password. + GrantType interface{} `json:"grantType,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ServiceNowV2LinkedServiceTypeProperties struct. +func (snvlstp *ServiceNowV2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + snvlstp.Endpoint = endpoint + } + case "authenticationType": + if v != nil { + var authenticationType ServiceNowV2AuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + snvlstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + snvlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + snvlstp.Password = password + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + snvlstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + snvlstp.ClientSecret = clientSecret + } + case "grantType": + if v != nil { + var grantType interface{} + err = json.Unmarshal(*v, &grantType) + if err != nil { + return err + } + snvlstp.GrantType = grantType + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + snvlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ServiceNowV2ObjectDataset serviceNowV2 server dataset. +type ServiceNowV2ObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) MarshalJSON() ([]byte, error) { + snvod.Type = TypeBasicDatasetTypeServiceNowV2Object + objectMap := make(map[string]interface{}) + if snvod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = snvod.GenericDatasetTypeProperties + } + if snvod.Description != nil { + objectMap["description"] = snvod.Description + } + if snvod.Structure != nil { + objectMap["structure"] = snvod.Structure + } + if snvod.Schema != nil { + objectMap["schema"] = snvod.Schema + } + if snvod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = snvod.LinkedServiceName + } + if snvod.Parameters != nil { + objectMap["parameters"] = snvod.Parameters + } + if snvod.Annotations != nil { + objectMap["annotations"] = snvod.Annotations + } + if snvod.Folder != nil { + objectMap["folder"] = snvod.Folder + } + if snvod.Type != "" { + objectMap["type"] = snvod.Type + } + for k, v := range snvod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return &snvod, true +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ServiceNowV2ObjectDataset. +func (snvod ServiceNowV2ObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &snvod, true +} + +// UnmarshalJSON is the custom unmarshaler for ServiceNowV2ObjectDataset struct. +func (snvod *ServiceNowV2ObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + snvod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if snvod.AdditionalProperties == nil { + snvod.AdditionalProperties = make(map[string]interface{}) + } + snvod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + snvod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + snvod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + snvod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + snvod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + snvod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + snvod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + snvod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + snvod.Type = typeVar + } + } + } + + return nil +} + +// ServiceNowV2Source a copy activity ServiceNowV2 server source. +type ServiceNowV2Source struct { + // Expression - Expression to filter data from source. + Expression *ExpressionV2 `json:"expression,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceNowV2Source. +func (snvs ServiceNowV2Source) MarshalJSON() ([]byte, error) { + snvs.Type = TypeBasicCopySourceTypeServiceNowV2Source + objectMap := make(map[string]interface{}) + if snvs.Expression != nil { + objectMap["expression"] = snvs.Expression + } + if snvs.QueryTimeout != nil { + objectMap["queryTimeout"] = snvs.QueryTimeout + } + if snvs.AdditionalColumns != nil { + objectMap["additionalColumns"] = snvs.AdditionalColumns + } + if snvs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = snvs.SourceRetryCount + } + if snvs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = snvs.SourceRetryWait + } + if snvs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = snvs.MaxConcurrentConnections + } + if snvs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = snvs.DisableMetricsCollection + } + if snvs.Type != "" { + objectMap["type"] = snvs.Type + } + for k, v := range snvs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return &snvs, true +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return &snvs, true +} + +// AsBinarySource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ServiceNowV2Source. +func (snvs ServiceNowV2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &snvs, true +} + +// UnmarshalJSON is the custom unmarshaler for ServiceNowV2Source struct. +func (snvs *ServiceNowV2Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "expression": + if v != nil { + var expression ExpressionV2 + err = json.Unmarshal(*v, &expression) + if err != nil { + return err + } + snvs.Expression = &expression + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + snvs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + snvs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if snvs.AdditionalProperties == nil { + snvs.AdditionalProperties = make(map[string]interface{}) + } + snvs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + snvs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + snvs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + snvs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + snvs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + snvs.Type = typeVar + } + } + } + + return nil +} + +// ServicePrincipalCredential service principal credential. +type ServicePrincipalCredential struct { + // ServicePrincipalCredentialTypeProperties - Service Principal credential properties. + *ServicePrincipalCredentialTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Credential description. + Description *string `json:"description,omitempty"` + // Annotations - List of tags that can be used for describing the Credential. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicCredentialTypeCredential', 'TypeBasicCredentialTypeManagedIdentity', 'TypeBasicCredentialTypeServicePrincipal' + Type TypeBasicCredential `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServicePrincipalCredential. +func (spc ServicePrincipalCredential) MarshalJSON() ([]byte, error) { + spc.Type = TypeBasicCredentialTypeServicePrincipal + objectMap := make(map[string]interface{}) + if spc.ServicePrincipalCredentialTypeProperties != nil { + objectMap["typeProperties"] = spc.ServicePrincipalCredentialTypeProperties + } + if spc.Description != nil { + objectMap["description"] = spc.Description + } + if spc.Annotations != nil { + objectMap["annotations"] = spc.Annotations + } + if spc.Type != "" { + objectMap["type"] = spc.Type + } + for k, v := range spc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsManagedIdentityCredential is the BasicCredential implementation for ServicePrincipalCredential. +func (spc ServicePrincipalCredential) AsManagedIdentityCredential() (*ManagedIdentityCredential, bool) { + return nil, false +} + +// AsServicePrincipalCredential is the BasicCredential implementation for ServicePrincipalCredential. +func (spc ServicePrincipalCredential) AsServicePrincipalCredential() (*ServicePrincipalCredential, bool) { + return &spc, true +} + +// AsCredential is the BasicCredential implementation for ServicePrincipalCredential. +func (spc ServicePrincipalCredential) AsCredential() (*Credential, bool) { + return nil, false +} + +// AsBasicCredential is the BasicCredential implementation for ServicePrincipalCredential. +func (spc ServicePrincipalCredential) AsBasicCredential() (BasicCredential, bool) { + return &spc, true +} + +// UnmarshalJSON is the custom unmarshaler for ServicePrincipalCredential struct. +func (spc *ServicePrincipalCredential) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var servicePrincipalCredentialTypeProperties ServicePrincipalCredentialTypeProperties + err = json.Unmarshal(*v, &servicePrincipalCredentialTypeProperties) + if err != nil { + return err + } + spc.ServicePrincipalCredentialTypeProperties = &servicePrincipalCredentialTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if spc.AdditionalProperties == nil { + spc.AdditionalProperties = make(map[string]interface{}) + } + spc.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + spc.Description = &description + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + spc.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicCredential + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + spc.Type = typeVar + } + } + } + + return nil +} + +// ServicePrincipalCredentialTypeProperties service Principal credential type properties. +type ServicePrincipalCredentialTypeProperties struct { + // ServicePrincipalID - The app ID of the service principal used to authenticate + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The key of the service principal used to authenticate. + ServicePrincipalKey *AzureKeyVaultSecretReference `json:"servicePrincipalKey,omitempty"` + // Tenant - The ID of the tenant to which the service principal belongs + Tenant interface{} `json:"tenant,omitempty"` +} + +// SetVariableActivity set value for a Variable. +type SetVariableActivity struct { + // SetVariableActivityTypeProperties - Set Variable activity properties. + *SetVariableActivityTypeProperties `json:"typeProperties,omitempty"` + // Policy - Activity policy. + Policy *SecureInputOutputPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SetVariableActivity. +func (sva SetVariableActivity) MarshalJSON() ([]byte, error) { + sva.Type = TypeBasicActivityTypeSetVariable + objectMap := make(map[string]interface{}) + if sva.SetVariableActivityTypeProperties != nil { + objectMap["typeProperties"] = sva.SetVariableActivityTypeProperties + } + if sva.Policy != nil { + objectMap["policy"] = sva.Policy + } + if sva.Name != nil { + objectMap["name"] = sva.Name + } + if sva.Description != nil { + objectMap["description"] = sva.Description + } + if sva.State != "" { + objectMap["state"] = sva.State + } + if sva.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = sva.OnInactiveMarkAs + } + if sva.DependsOn != nil { + objectMap["dependsOn"] = sva.DependsOn + } + if sva.UserProperties != nil { + objectMap["userProperties"] = sva.UserProperties + } + if sva.Type != "" { + objectMap["type"] = sva.Type + } + for k, v := range sva.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return &sva, true +} + +// AsFilterActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &sva, true +} + +// AsActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for SetVariableActivity. +func (sva SetVariableActivity) AsBasicActivity() (BasicActivity, bool) { + return &sva, true +} + +// UnmarshalJSON is the custom unmarshaler for SetVariableActivity struct. +func (sva *SetVariableActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var setVariableActivityTypeProperties SetVariableActivityTypeProperties + err = json.Unmarshal(*v, &setVariableActivityTypeProperties) + if err != nil { + return err + } + sva.SetVariableActivityTypeProperties = &setVariableActivityTypeProperties + } + case "policy": + if v != nil { + var policy SecureInputOutputPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + sva.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sva.AdditionalProperties == nil { + sva.AdditionalProperties = make(map[string]interface{}) + } + sva.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sva.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sva.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + sva.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + sva.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + sva.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + sva.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sva.Type = typeVar + } + } + } + + return nil +} + +// SetVariableActivityTypeProperties setVariable activity properties. +type SetVariableActivityTypeProperties struct { + // VariableName - Name of the variable whose value needs to be set. + VariableName *string `json:"variableName,omitempty"` + // Value - Value to be set. Could be a static value or Expression. + Value interface{} `json:"value,omitempty"` + // SetSystemVariable - If set to true, it sets the pipeline run return value. + SetSystemVariable *bool `json:"setSystemVariable,omitempty"` +} + +// SftpLocation the location of SFTP dataset. +type SftpLocation struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) + FolderPath interface{} `json:"folderPath,omitempty"` + // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). + FileName interface{} `json:"fileName,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' + Type TypeBasicDatasetLocation `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SftpLocation. +func (sl SftpLocation) MarshalJSON() ([]byte, error) { + sl.Type = TypeBasicDatasetLocationTypeSftpLocation + objectMap := make(map[string]interface{}) + if sl.FolderPath != nil { + objectMap["folderPath"] = sl.FolderPath + } + if sl.FileName != nil { + objectMap["fileName"] = sl.FileName + } + if sl.Type != "" { + objectMap["type"] = sl.Type + } + for k, v := range sl.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { + return nil, false +} + +// AsHdfsLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsHdfsLocation() (*HdfsLocation, bool) { + return nil, false +} + +// AsHTTPServerLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { + return nil, false +} + +// AsSftpLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsSftpLocation() (*SftpLocation, bool) { + return &sl, true +} + +// AsFtpServerLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { + return nil, false +} + +// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { + return nil, false +} + +// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { + return nil, false +} + +// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { + return nil, false +} + +// AsFileServerLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsFileServerLocation() (*FileServerLocation, bool) { + return nil, false +} + +// AsAmazonS3Location is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { + return nil, false +} + +// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { + return nil, false +} + +// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { + return nil, false +} + +// AsDatasetLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsDatasetLocation() (*DatasetLocation, bool) { + return nil, false +} + +// AsBasicDatasetLocation is the BasicDatasetLocation implementation for SftpLocation. +func (sl SftpLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { + return &sl, true +} + +// UnmarshalJSON is the custom unmarshaler for SftpLocation struct. +func (sl *SftpLocation) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sl.AdditionalProperties == nil { + sl.AdditionalProperties = make(map[string]interface{}) + } + sl.AdditionalProperties[k] = additionalProperties + } + case "folderPath": + if v != nil { + var folderPath interface{} + err = json.Unmarshal(*v, &folderPath) + if err != nil { + return err + } + sl.FolderPath = folderPath + } + case "fileName": + if v != nil { + var fileName interface{} + err = json.Unmarshal(*v, &fileName) + if err != nil { + return err + } + sl.FileName = fileName + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetLocation + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sl.Type = typeVar + } + } + } + + return nil +} + +// SftpReadSettings sftp read settings. +type SftpReadSettings struct { + // Recursive - 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"` + // WildcardFolderPath - Sftp wildcardFolderPath. Type: string (or Expression with resultType string). + WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + // WildcardFileName - Sftp wildcardFileName. Type: string (or Expression with resultType string). + WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` + // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). + PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + // FileListPath - 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"` + // DeleteFilesAfterCompletion - 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"` + // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). + ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + // DisableChunking - If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). + DisableChunking interface{} `json:"disableChunking,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SftpReadSettings. +func (srs SftpReadSettings) MarshalJSON() ([]byte, error) { + srs.Type = TypeBasicStoreReadSettingsTypeSftpReadSettings + objectMap := make(map[string]interface{}) + if srs.Recursive != nil { + objectMap["recursive"] = srs.Recursive + } + if srs.WildcardFolderPath != nil { + objectMap["wildcardFolderPath"] = srs.WildcardFolderPath + } + if srs.WildcardFileName != nil { + objectMap["wildcardFileName"] = srs.WildcardFileName + } + if srs.EnablePartitionDiscovery != nil { + objectMap["enablePartitionDiscovery"] = srs.EnablePartitionDiscovery + } + if srs.PartitionRootPath != nil { + objectMap["partitionRootPath"] = srs.PartitionRootPath + } + if srs.FileListPath != nil { + objectMap["fileListPath"] = srs.FileListPath + } + if srs.DeleteFilesAfterCompletion != nil { + objectMap["deleteFilesAfterCompletion"] = srs.DeleteFilesAfterCompletion + } + if srs.ModifiedDatetimeStart != nil { + objectMap["modifiedDatetimeStart"] = srs.ModifiedDatetimeStart + } + if srs.ModifiedDatetimeEnd != nil { + objectMap["modifiedDatetimeEnd"] = srs.ModifiedDatetimeEnd + } + if srs.DisableChunking != nil { + objectMap["disableChunking"] = srs.DisableChunking + } + if srs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = srs.MaxConcurrentConnections + } + if srs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = srs.DisableMetricsCollection + } + if srs.Type != "" { + objectMap["type"] = srs.Type + } + for k, v := range srs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return &srs, true +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return nil, false +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. +func (srs SftpReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &srs, true +} + +// UnmarshalJSON is the custom unmarshaler for SftpReadSettings struct. +func (srs *SftpReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "recursive": + if v != nil { + var recursive interface{} + err = json.Unmarshal(*v, &recursive) + if err != nil { + return err + } + srs.Recursive = recursive + } + case "wildcardFolderPath": + if v != nil { + var wildcardFolderPath interface{} + err = json.Unmarshal(*v, &wildcardFolderPath) + if err != nil { + return err + } + srs.WildcardFolderPath = wildcardFolderPath + } + case "wildcardFileName": + if v != nil { + var wildcardFileName interface{} + err = json.Unmarshal(*v, &wildcardFileName) + if err != nil { + return err + } + srs.WildcardFileName = wildcardFileName + } + case "enablePartitionDiscovery": + if v != nil { + var enablePartitionDiscovery interface{} + err = json.Unmarshal(*v, &enablePartitionDiscovery) + if err != nil { + return err + } + srs.EnablePartitionDiscovery = enablePartitionDiscovery + } + case "partitionRootPath": + if v != nil { + var partitionRootPath interface{} + err = json.Unmarshal(*v, &partitionRootPath) + if err != nil { + return err + } + srs.PartitionRootPath = partitionRootPath + } + case "fileListPath": + if v != nil { + var fileListPath interface{} + err = json.Unmarshal(*v, &fileListPath) + if err != nil { + return err + } + srs.FileListPath = fileListPath + } + case "deleteFilesAfterCompletion": + if v != nil { + var deleteFilesAfterCompletion interface{} + err = json.Unmarshal(*v, &deleteFilesAfterCompletion) + if err != nil { + return err + } + srs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion + } + case "modifiedDatetimeStart": + if v != nil { + var modifiedDatetimeStart interface{} + err = json.Unmarshal(*v, &modifiedDatetimeStart) + if err != nil { + return err + } + srs.ModifiedDatetimeStart = modifiedDatetimeStart + } + case "modifiedDatetimeEnd": + if v != nil { + var modifiedDatetimeEnd interface{} + err = json.Unmarshal(*v, &modifiedDatetimeEnd) + if err != nil { + return err + } + srs.ModifiedDatetimeEnd = modifiedDatetimeEnd + } + case "disableChunking": + if v != nil { + var disableChunking interface{} + err = json.Unmarshal(*v, &disableChunking) + if err != nil { + return err + } + srs.DisableChunking = disableChunking + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if srs.AdditionalProperties == nil { + srs.AdditionalProperties = make(map[string]interface{}) + } + srs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + srs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + srs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + srs.Type = typeVar + } + } + } + + return nil +} + +// SftpServerLinkedService a linked service for an SSH File Transfer Protocol (SFTP) server. +type SftpServerLinkedService struct { + // SftpServerLinkedServiceTypeProperties - Properties specific to this linked service type. + *SftpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SftpServerLinkedService. +func (ssls SftpServerLinkedService) MarshalJSON() ([]byte, error) { + ssls.Type = TypeBasicLinkedServiceTypeSftp + objectMap := make(map[string]interface{}) + if ssls.SftpServerLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = ssls.SftpServerLinkedServiceTypeProperties + } + if ssls.ConnectVia != nil { + objectMap["connectVia"] = ssls.ConnectVia + } + if ssls.Description != nil { + objectMap["description"] = ssls.Description + } + if ssls.Parameters != nil { + objectMap["parameters"] = ssls.Parameters + } + if ssls.Annotations != nil { + objectMap["annotations"] = ssls.Annotations + } + if ssls.Type != "" { + objectMap["type"] = ssls.Type + } + for k, v := range ssls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return &ssls, true +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. +func (ssls SftpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &ssls, true +} + +// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedService struct. +func (ssls *SftpServerLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sftpServerLinkedServiceTypeProperties SftpServerLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sftpServerLinkedServiceTypeProperties) + if err != nil { + return err + } + ssls.SftpServerLinkedServiceTypeProperties = &sftpServerLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ssls.AdditionalProperties == nil { + ssls.AdditionalProperties = make(map[string]interface{}) + } + ssls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + ssls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ssls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ssls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ssls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ssls.Type = typeVar + } + } + } + + return nil +} + +// SftpServerLinkedServiceTypeProperties properties specific to this linked service type. +type SftpServerLinkedServiceTypeProperties struct { + // Host - The SFTP server host name. Type: string (or Expression with resultType string). + Host interface{} `json:"host,omitempty"` + // Port - 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"` + // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'SftpAuthenticationTypeBasic', 'SftpAuthenticationTypeSSHPublicKey', 'SftpAuthenticationTypeMultiFactor' + AuthenticationType SftpAuthenticationType `json:"authenticationType,omitempty"` + // UserName - The username used to log on to the SFTP server. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - Password to logon the SFTP server for Basic authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // PrivateKeyPath - 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"` + // PrivateKeyContent - 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 BasicSecretBase `json:"privateKeyContent,omitempty"` + // PassPhrase - The password to decrypt the SSH private key if the SSH private key is encrypted. + PassPhrase BasicSecretBase `json:"passPhrase,omitempty"` + // SkipHostKeyValidation - If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). + SkipHostKeyValidation interface{} `json:"skipHostKeyValidation,omitempty"` + // HostKeyFingerprint - 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"` +} + +// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedServiceTypeProperties struct. +func (sslstp *SftpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + sslstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + sslstp.Port = port + } + case "authenticationType": + if v != nil { + var authenticationType SftpAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + sslstp.AuthenticationType = authenticationType + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + sslstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sslstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + sslstp.EncryptedCredential = &encryptedCredential + } + case "privateKeyPath": + if v != nil { + var privateKeyPath interface{} + err = json.Unmarshal(*v, &privateKeyPath) + if err != nil { + return err + } + sslstp.PrivateKeyPath = privateKeyPath + } + case "privateKeyContent": + if v != nil { + privateKeyContent, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sslstp.PrivateKeyContent = privateKeyContent + } + case "passPhrase": + if v != nil { + passPhrase, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + sslstp.PassPhrase = passPhrase + } + case "skipHostKeyValidation": + if v != nil { + var skipHostKeyValidation interface{} + err = json.Unmarshal(*v, &skipHostKeyValidation) + if err != nil { + return err + } + sslstp.SkipHostKeyValidation = skipHostKeyValidation + } + case "hostKeyFingerprint": + if v != nil { + var hostKeyFingerprint interface{} + err = json.Unmarshal(*v, &hostKeyFingerprint) + if err != nil { + return err + } + sslstp.HostKeyFingerprint = hostKeyFingerprint + } + } + } + + return nil +} + +// SftpWriteSettings sftp write settings. +type SftpWriteSettings struct { + // OperationTimeout - 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"` + // UseTempFileRename - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SftpWriteSettings. +func (sws SftpWriteSettings) MarshalJSON() ([]byte, error) { + sws.Type = TypeBasicStoreWriteSettingsTypeSftpWriteSettings + objectMap := make(map[string]interface{}) + if sws.OperationTimeout != nil { + objectMap["operationTimeout"] = sws.OperationTimeout + } + if sws.UseTempFileRename != nil { + objectMap["useTempFileRename"] = sws.UseTempFileRename + } + if sws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sws.MaxConcurrentConnections + } + if sws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sws.DisableMetricsCollection + } + if sws.CopyBehavior != nil { + objectMap["copyBehavior"] = sws.CopyBehavior + } + if sws.Metadata != nil { + objectMap["metadata"] = sws.Metadata + } + if sws.Type != "" { + objectMap["type"] = sws.Type + } + for k, v := range sws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { + return nil, false +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return &sws, true +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return nil, false +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. +func (sws SftpWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &sws, true +} + +// UnmarshalJSON is the custom unmarshaler for SftpWriteSettings struct. +func (sws *SftpWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "operationTimeout": + if v != nil { + var operationTimeout interface{} + err = json.Unmarshal(*v, &operationTimeout) + if err != nil { + return err + } + sws.OperationTimeout = operationTimeout + } + case "useTempFileRename": + if v != nil { + var useTempFileRename interface{} + err = json.Unmarshal(*v, &useTempFileRename) + if err != nil { + return err + } + sws.UseTempFileRename = useTempFileRename + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sws.AdditionalProperties == nil { + sws.AdditionalProperties = make(map[string]interface{}) + } + sws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sws.DisableMetricsCollection = disableMetricsCollection + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + sws.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + sws.Metadata = &metadata + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sws.Type = typeVar + } + } + } + + return nil +} + +// SharePointOnlineListDatasetTypeProperties sharepoint online list dataset properties. +type SharePointOnlineListDatasetTypeProperties struct { + // ListName - The name of the SharePoint Online list. Type: string (or Expression with resultType string). + ListName interface{} `json:"listName,omitempty"` +} + +// SharePointOnlineListLinkedService sharePoint Online List linked service. +type SharePointOnlineListLinkedService struct { + // SharePointOnlineListLinkedServiceTypeProperties - SharePoint Online List linked service properties. + *SharePointOnlineListLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error) { + spolls.Type = TypeBasicLinkedServiceTypeSharePointOnlineList + objectMap := make(map[string]interface{}) + if spolls.SharePointOnlineListLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = spolls.SharePointOnlineListLinkedServiceTypeProperties + } + if spolls.ConnectVia != nil { + objectMap["connectVia"] = spolls.ConnectVia + } + if spolls.Description != nil { + objectMap["description"] = spolls.Description + } + if spolls.Parameters != nil { + objectMap["parameters"] = spolls.Parameters + } + if spolls.Annotations != nil { + objectMap["annotations"] = spolls.Annotations + } + if spolls.Type != "" { + objectMap["type"] = spolls.Type + } + for k, v := range spolls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return &spolls, true +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. +func (spolls SharePointOnlineListLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &spolls, true +} + +// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListLinkedService struct. +func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sharePointOnlineListLinkedServiceTypeProperties SharePointOnlineListLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sharePointOnlineListLinkedServiceTypeProperties) + if err != nil { + return err + } + spolls.SharePointOnlineListLinkedServiceTypeProperties = &sharePointOnlineListLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if spolls.AdditionalProperties == nil { + spolls.AdditionalProperties = make(map[string]interface{}) + } + spolls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + spolls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + spolls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + spolls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + spolls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + spolls.Type = typeVar + } + } + } + + return nil +} + +// SharePointOnlineListLinkedServiceTypeProperties sharePoint Online List linked service properties. +type SharePointOnlineListLinkedServiceTypeProperties struct { + // SiteURL - 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"` + // TenantID - 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"` + // ServicePrincipalID - 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"` + // ServicePrincipalKey - The client secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListLinkedServiceTypeProperties struct. +func (spollstp *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "siteUrl": + if v != nil { + var siteURL interface{} + err = json.Unmarshal(*v, &siteURL) + if err != nil { + return err + } + spollstp.SiteURL = siteURL + } + case "tenantId": + if v != nil { + var tenantID interface{} + err = json.Unmarshal(*v, &tenantID) + if err != nil { + return err + } + spollstp.TenantID = tenantID + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + spollstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + spollstp.ServicePrincipalKey = servicePrincipalKey + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + spollstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SharePointOnlineListResourceDataset the sharepoint online list resource dataset. +type SharePointOnlineListResourceDataset struct { + // SharePointOnlineListDatasetTypeProperties - Sharepoint online list dataset properties. + *SharePointOnlineListDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) MarshalJSON() ([]byte, error) { + spolrd.Type = TypeBasicDatasetTypeSharePointOnlineListResource + objectMap := make(map[string]interface{}) + if spolrd.SharePointOnlineListDatasetTypeProperties != nil { + objectMap["typeProperties"] = spolrd.SharePointOnlineListDatasetTypeProperties + } + if spolrd.Description != nil { + objectMap["description"] = spolrd.Description + } + if spolrd.Structure != nil { + objectMap["structure"] = spolrd.Structure + } + if spolrd.Schema != nil { + objectMap["schema"] = spolrd.Schema + } + if spolrd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = spolrd.LinkedServiceName + } + if spolrd.Parameters != nil { + objectMap["parameters"] = spolrd.Parameters + } + if spolrd.Annotations != nil { + objectMap["annotations"] = spolrd.Annotations + } + if spolrd.Folder != nil { + objectMap["folder"] = spolrd.Folder + } + if spolrd.Type != "" { + objectMap["type"] = spolrd.Type + } + for k, v := range spolrd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return &spolrd, true +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. +func (spolrd SharePointOnlineListResourceDataset) AsBasicDataset() (BasicDataset, bool) { + return &spolrd, true +} + +// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListResourceDataset struct. +func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sharePointOnlineListDatasetTypeProperties SharePointOnlineListDatasetTypeProperties + err = json.Unmarshal(*v, &sharePointOnlineListDatasetTypeProperties) + if err != nil { + return err + } + spolrd.SharePointOnlineListDatasetTypeProperties = &sharePointOnlineListDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if spolrd.AdditionalProperties == nil { + spolrd.AdditionalProperties = make(map[string]interface{}) + } + spolrd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + spolrd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + spolrd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + spolrd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + spolrd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + spolrd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + spolrd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + spolrd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + spolrd.Type = typeVar + } + } + } + + return nil +} + +// SharePointOnlineListSource a copy activity source for sharePoint online list source. +type SharePointOnlineListSource struct { + // Query - 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"` + // HTTPRequestTimeout - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) MarshalJSON() ([]byte, error) { + spols.Type = TypeBasicCopySourceTypeSharePointOnlineListSource + objectMap := make(map[string]interface{}) + if spols.Query != nil { + objectMap["query"] = spols.Query + } + if spols.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = spols.HTTPRequestTimeout + } + if spols.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = spols.SourceRetryCount + } + if spols.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = spols.SourceRetryWait + } + if spols.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = spols.MaxConcurrentConnections + } + if spols.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = spols.DisableMetricsCollection + } + if spols.Type != "" { + objectMap["type"] = spols.Type + } + for k, v := range spols.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return &spols, true +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SharePointOnlineListSource. +func (spols SharePointOnlineListSource) AsBasicCopySource() (BasicCopySource, bool) { + return &spols, true +} + +// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListSource struct. +func (spols *SharePointOnlineListSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + spols.Query = query + } + case "httpRequestTimeout": + if v != nil { + var HTTPRequestTimeout interface{} + err = json.Unmarshal(*v, &HTTPRequestTimeout) + if err != nil { + return err + } + spols.HTTPRequestTimeout = HTTPRequestTimeout + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if spols.AdditionalProperties == nil { + spols.AdditionalProperties = make(map[string]interface{}) + } + spols.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + spols.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + spols.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + spols.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + spols.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + spols.Type = typeVar + } + } + } + + return nil +} + +// ShopifyLinkedService shopify Service linked service. +type ShopifyLinkedService struct { + // ShopifyLinkedServiceTypeProperties - Shopify Service linked service properties. + *ShopifyLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ShopifyLinkedService. +func (sls ShopifyLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeBasicLinkedServiceTypeShopify + objectMap := make(map[string]interface{}) + if sls.ShopifyLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.ShopifyLinkedServiceTypeProperties + } + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia + } + if sls.Description != nil { + objectMap["description"] = sls.Description + } + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters + } + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations + } + if sls.Type != "" { + objectMap["type"] = sls.Type + } + for k, v := range sls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return &sls, true +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. +func (sls ShopifyLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedService struct. +func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var shopifyLinkedServiceTypeProperties ShopifyLinkedServiceTypeProperties + err = json.Unmarshal(*v, &shopifyLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.ShopifyLinkedServiceTypeProperties = &shopifyLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) + } + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sls.Type = typeVar + } + } + } + + return nil +} + +// ShopifyLinkedServiceTypeProperties shopify Service linked service properties. +type ShopifyLinkedServiceTypeProperties struct { + // Host - The endpoint of the Shopify server. (i.e. mystore.myshopify.com) + Host interface{} `json:"host,omitempty"` + // AccessToken - The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedServiceTypeProperties struct. +func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + slstp.Host = host + } + case "accessToken": + if v != nil { + accessToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slstp.AccessToken = accessToken + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + slstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + slstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + slstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ShopifyObjectDataset shopify Service dataset. +type ShopifyObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) MarshalJSON() ([]byte, error) { + sod.Type = TypeBasicDatasetTypeShopifyObject + objectMap := make(map[string]interface{}) + if sod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = sod.GenericDatasetTypeProperties + } + if sod.Description != nil { + objectMap["description"] = sod.Description + } + if sod.Structure != nil { + objectMap["structure"] = sod.Structure + } + if sod.Schema != nil { + objectMap["schema"] = sod.Schema + } + if sod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sod.LinkedServiceName + } + if sod.Parameters != nil { + objectMap["parameters"] = sod.Parameters + } + if sod.Annotations != nil { + objectMap["annotations"] = sod.Annotations + } + if sod.Folder != nil { + objectMap["folder"] = sod.Folder + } + if sod.Type != "" { + objectMap["type"] = sod.Type + } + for k, v := range sod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return &sod, true +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ShopifyObjectDataset. +func (sod ShopifyObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sod, true +} + +// UnmarshalJSON is the custom unmarshaler for ShopifyObjectDataset struct. +func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + sod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sod.AdditionalProperties == nil { + sod.AdditionalProperties = make(map[string]interface{}) + } + sod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sod.Type = typeVar + } + } + } + + return nil +} + +// ShopifySource a copy activity Shopify Service source. +type ShopifySource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ShopifySource. +func (ss ShopifySource) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySourceTypeShopifySource + objectMap := make(map[string]interface{}) + if ss.Query != nil { + objectMap["query"] = ss.Query + } + if ss.QueryTimeout != nil { + objectMap["queryTimeout"] = ss.QueryTimeout + } + if ss.AdditionalColumns != nil { + objectMap["additionalColumns"] = ss.AdditionalColumns + } + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount + } + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsShopifySource() (*ShopifySource, bool) { + return &ss, true +} + +// AsServiceNowSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ss, true +} + +// AsBinarySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ShopifySource. +func (ss ShopifySource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for ShopifySource struct. +func (ss *ShopifySource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ss.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SkipErrorFile skip error file. +type SkipErrorFile struct { + // FileMissing - 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"` + // DataInconsistency - 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"` +} + +// SmartsheetLinkedService linked service for Smartsheet. +type SmartsheetLinkedService struct { + // SmartsheetLinkedServiceTypeProperties - Smartsheet linked service properties. + *SmartsheetLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeBasicLinkedServiceTypeSmartsheet + objectMap := make(map[string]interface{}) + if sls.SmartsheetLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SmartsheetLinkedServiceTypeProperties + } + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia + } + if sls.Description != nil { + objectMap["description"] = sls.Description + } + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters + } + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations + } + if sls.Type != "" { + objectMap["type"] = sls.Type + } + for k, v := range sls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return &sls, true +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. +func (sls SmartsheetLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SmartsheetLinkedService struct. +func (sls *SmartsheetLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var smartsheetLinkedServiceTypeProperties SmartsheetLinkedServiceTypeProperties + err = json.Unmarshal(*v, &smartsheetLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.SmartsheetLinkedServiceTypeProperties = &smartsheetLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) + } + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sls.Type = typeVar + } + } + } + + return nil +} + +// SmartsheetLinkedServiceTypeProperties smartsheet linked service type properties. +type SmartsheetLinkedServiceTypeProperties struct { + // APIToken - The api token for the Smartsheet source. + APIToken BasicSecretBase `json:"apiToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SmartsheetLinkedServiceTypeProperties struct. +func (slstp *SmartsheetLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "apiToken": + if v != nil { + APIToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slstp.APIToken = APIToken + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SnowflakeDataset the snowflake dataset. +type SnowflakeDataset struct { + // SnowflakeDatasetTypeProperties - Snowflake dataset properties. + *SnowflakeDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeDataset. +func (sd SnowflakeDataset) MarshalJSON() ([]byte, error) { + sd.Type = TypeBasicDatasetTypeSnowflakeTable + objectMap := make(map[string]interface{}) + if sd.SnowflakeDatasetTypeProperties != nil { + objectMap["typeProperties"] = sd.SnowflakeDatasetTypeProperties + } + if sd.Description != nil { + objectMap["description"] = sd.Description + } + if sd.Structure != nil { + objectMap["structure"] = sd.Structure + } + if sd.Schema != nil { + objectMap["schema"] = sd.Schema + } + if sd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sd.LinkedServiceName + } + if sd.Parameters != nil { + objectMap["parameters"] = sd.Parameters + } + if sd.Annotations != nil { + objectMap["annotations"] = sd.Annotations + } + if sd.Folder != nil { + objectMap["folder"] = sd.Folder + } + if sd.Type != "" { + objectMap["type"] = sd.Type + } + for k, v := range sd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return &sd, true +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SnowflakeDataset. +func (sd SnowflakeDataset) AsBasicDataset() (BasicDataset, bool) { + return &sd, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeDataset struct. +func (sd *SnowflakeDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var snowflakeDatasetTypeProperties SnowflakeDatasetTypeProperties + err = json.Unmarshal(*v, &snowflakeDatasetTypeProperties) + if err != nil { + return err + } + sd.SnowflakeDatasetTypeProperties = &snowflakeDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sd.AdditionalProperties == nil { + sd.AdditionalProperties = make(map[string]interface{}) + } + sd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sd.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeDatasetTypeProperties snowflake dataset properties. +type SnowflakeDatasetTypeProperties struct { + // Schema - The schema name of the Snowflake database. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - 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 { + // AdditionalCopyOptions - 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", "TIME_FORMAT": "'HH24:MI:SS.FF'" } + AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions"` + // AdditionalFormatOptions - 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", "MAX_FILE_SIZE": "'FALSE'" } + AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicExportSettingsTypeExportSettings', 'TypeBasicExportSettingsTypeSnowflakeExportCopyCommand', 'TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand' + Type TypeBasicExportSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error) { + secc.Type = TypeBasicExportSettingsTypeSnowflakeExportCopyCommand + objectMap := make(map[string]interface{}) + if secc.AdditionalCopyOptions != nil { + objectMap["additionalCopyOptions"] = secc.AdditionalCopyOptions + } + if secc.AdditionalFormatOptions != nil { + objectMap["additionalFormatOptions"] = secc.AdditionalFormatOptions + } + if secc.Type != "" { + objectMap["type"] = secc.Type + } + for k, v := range secc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { + return &secc, true +} + +// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { + return nil, false +} + +// AsExportSettings is the BasicExportSettings implementation for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) AsExportSettings() (*ExportSettings, bool) { + return nil, false +} + +// AsBasicExportSettings is the BasicExportSettings implementation for SnowflakeExportCopyCommand. +func (secc SnowflakeExportCopyCommand) AsBasicExportSettings() (BasicExportSettings, bool) { + return &secc, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeExportCopyCommand struct. +func (secc *SnowflakeExportCopyCommand) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "additionalCopyOptions": + if v != nil { + var additionalCopyOptions map[string]interface{} + err = json.Unmarshal(*v, &additionalCopyOptions) + if err != nil { + return err + } + secc.AdditionalCopyOptions = additionalCopyOptions + } + case "additionalFormatOptions": + if v != nil { + var additionalFormatOptions map[string]interface{} + err = json.Unmarshal(*v, &additionalFormatOptions) + if err != nil { + return err + } + secc.AdditionalFormatOptions = additionalFormatOptions + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if secc.AdditionalProperties == nil { + secc.AdditionalProperties = make(map[string]interface{}) + } + secc.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicExportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + secc.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeImportCopyCommand snowflake import command settings. +type SnowflakeImportCopyCommand struct { + // AdditionalCopyOptions - 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", "TIME_FORMAT": "'HH24:MI:SS.FF'" } + AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions"` + // AdditionalFormatOptions - 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", "LOAD_UNCERTAIN_FILES": "'FALSE'" } + AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicImportSettingsTypeImportSettings', 'TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand', 'TypeBasicImportSettingsTypeSnowflakeImportCopyCommand' + Type TypeBasicImportSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) MarshalJSON() ([]byte, error) { + sicc.Type = TypeBasicImportSettingsTypeSnowflakeImportCopyCommand + objectMap := make(map[string]interface{}) + if sicc.AdditionalCopyOptions != nil { + objectMap["additionalCopyOptions"] = sicc.AdditionalCopyOptions + } + if sicc.AdditionalFormatOptions != nil { + objectMap["additionalFormatOptions"] = sicc.AdditionalFormatOptions + } + if sicc.Type != "" { + objectMap["type"] = sicc.Type + } + for k, v := range sicc.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { + return nil, false +} + +// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { + return &sicc, true +} + +// AsImportSettings is the BasicImportSettings implementation for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) AsImportSettings() (*ImportSettings, bool) { + return nil, false +} + +// AsBasicImportSettings is the BasicImportSettings implementation for SnowflakeImportCopyCommand. +func (sicc SnowflakeImportCopyCommand) AsBasicImportSettings() (BasicImportSettings, bool) { + return &sicc, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeImportCopyCommand struct. +func (sicc *SnowflakeImportCopyCommand) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "additionalCopyOptions": + if v != nil { + var additionalCopyOptions map[string]interface{} + err = json.Unmarshal(*v, &additionalCopyOptions) + if err != nil { + return err + } + sicc.AdditionalCopyOptions = additionalCopyOptions + } + case "additionalFormatOptions": + if v != nil { + var additionalFormatOptions map[string]interface{} + err = json.Unmarshal(*v, &additionalFormatOptions) + if err != nil { + return err + } + sicc.AdditionalFormatOptions = additionalFormatOptions + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sicc.AdditionalProperties == nil { + sicc.AdditionalProperties = make(map[string]interface{}) + } + sicc.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicImportSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sicc.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeLinkedService snowflake linked service. +type SnowflakeLinkedService struct { + // SnowflakeLinkedServiceTypeProperties - Snowflake linked service properties. + *SnowflakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeBasicLinkedServiceTypeSnowflake + objectMap := make(map[string]interface{}) + if sls.SnowflakeLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SnowflakeLinkedServiceTypeProperties + } + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia + } + if sls.Description != nil { + objectMap["description"] = sls.Description + } + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters + } + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations + } + if sls.Type != "" { + objectMap["type"] = sls.Type + } + for k, v := range sls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return &sls, true +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. +func (sls SnowflakeLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeLinkedService struct. +func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var snowflakeLinkedServiceTypeProperties SnowflakeLinkedServiceTypeProperties + err = json.Unmarshal(*v, &snowflakeLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.SnowflakeLinkedServiceTypeProperties = &snowflakeLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) + } + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sls.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeLinkedServiceTypeProperties snowflake linked service properties. +type SnowflakeLinkedServiceTypeProperties struct { + // ConnectionString - The connection string of snowflake. Type: string, SecureString. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password *AzureKeyVaultSecretReference `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// SnowflakeLinkedV2ServiceTypeProperties snowflake linked service properties. +type SnowflakeLinkedV2ServiceTypeProperties struct { + // AccountIdentifier - The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure + AccountIdentifier interface{} `json:"accountIdentifier,omitempty"` + // User - The name of the Snowflake user. + User interface{} `json:"user,omitempty"` + // Password - The Azure key vault secret reference of password in connection string. + Password BasicSecretBase `json:"password,omitempty"` + // Database - The name of the Snowflake database. + Database interface{} `json:"database,omitempty"` + // Warehouse - The name of the Snowflake warehouse. + Warehouse interface{} `json:"warehouse,omitempty"` + // AuthenticationType - The type used for authentication. Type: string. Possible values include: 'SnowflakeAuthenticationTypeBasic', 'SnowflakeAuthenticationTypeKeyPair', 'SnowflakeAuthenticationTypeAADServicePrincipal' + AuthenticationType SnowflakeAuthenticationType `json:"authenticationType,omitempty"` + // ClientID - The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication. + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The Azure key vault secret reference of client secret for AADServicePrincipal authentication. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // TenantID - The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication. + TenantID interface{} `json:"tenantId,omitempty"` + // Scope - The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication. + Scope interface{} `json:"scope,omitempty"` + // PrivateKey - The Azure key vault secret reference of privateKey for KeyPair auth. + PrivateKey BasicSecretBase `json:"privateKey,omitempty"` + // PrivateKeyPassphrase - The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key. + PrivateKeyPassphrase BasicSecretBase `json:"privateKeyPassphrase,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeLinkedV2ServiceTypeProperties struct. +func (slvstp *SnowflakeLinkedV2ServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "accountIdentifier": + if v != nil { + var accountIdentifier interface{} + err = json.Unmarshal(*v, &accountIdentifier) + if err != nil { + return err + } + slvstp.AccountIdentifier = accountIdentifier + } + case "user": + if v != nil { + var userVar interface{} + err = json.Unmarshal(*v, &userVar) + if err != nil { + return err + } + slvstp.User = userVar + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slvstp.Password = password + } + case "database": + if v != nil { + var databaseVar interface{} + err = json.Unmarshal(*v, &databaseVar) + if err != nil { + return err + } + slvstp.Database = databaseVar + } + case "warehouse": + if v != nil { + var warehouse interface{} + err = json.Unmarshal(*v, &warehouse) + if err != nil { + return err + } + slvstp.Warehouse = warehouse + } + case "authenticationType": + if v != nil { + var authenticationType SnowflakeAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + slvstp.AuthenticationType = authenticationType + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + slvstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slvstp.ClientSecret = clientSecret + } + case "tenantId": + if v != nil { + var tenantID interface{} + err = json.Unmarshal(*v, &tenantID) + if err != nil { + return err + } + slvstp.TenantID = tenantID + } + case "scope": + if v != nil { + var scope interface{} + err = json.Unmarshal(*v, &scope) + if err != nil { + return err + } + slvstp.Scope = scope + } + case "privateKey": + if v != nil { + privateKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slvstp.PrivateKey = privateKey + } + case "privateKeyPassphrase": + if v != nil { + privateKeyPassphrase, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slvstp.PrivateKeyPassphrase = privateKeyPassphrase + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slvstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SnowflakeSink a copy activity snowflake sink. +type SnowflakeSink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // ImportSettings - Snowflake import settings. + ImportSettings *SnowflakeImportCopyCommand `json:"importSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeSink. +func (ss SnowflakeSink) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySinkTypeSnowflakeSink + objectMap := make(map[string]interface{}) + if ss.PreCopyScript != nil { + objectMap["preCopyScript"] = ss.PreCopyScript + } + if ss.ImportSettings != nil { + objectMap["importSettings"] = ss.ImportSettings + } + if ss.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ss.WriteBatchSize + } + if ss.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout + } + if ss.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ss.SinkRetryCount + } + if ss.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ss.SinkRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return &ss, true +} + +// AsSQLDWSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SnowflakeSink. +func (ss SnowflakeSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeSink struct. +func (ss *SnowflakeSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + ss.PreCopyScript = preCopyScript + } + case "importSettings": + if v != nil { + var importSettings SnowflakeImportCopyCommand + err = json.Unmarshal(*v, &importSettings) + if err != nil { + return err + } + ss.ImportSettings = &importSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ss.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ss.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ss.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ss.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeSource a copy activity snowflake source. +type SnowflakeSource struct { + // Query - Snowflake Sql query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // ExportSettings - Snowflake export settings. + ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeSource. +func (ss SnowflakeSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySourceTypeSnowflakeSource + objectMap := make(map[string]interface{}) + if ss.Query != nil { + objectMap["query"] = ss.Query + } + if ss.ExportSettings != nil { + objectMap["exportSettings"] = ss.ExportSettings + } + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount + } + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return &ss, true +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SnowflakeSource. +func (ss SnowflakeSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeSource struct. +func (ss *SnowflakeSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ss.Query = query + } + case "exportSettings": + if v != nil { + var exportSettings SnowflakeExportCopyCommand + err = json.Unmarshal(*v, &exportSettings) + if err != nil { + return err + } + ss.ExportSettings = &exportSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeV2Dataset the snowflake dataset. +type SnowflakeV2Dataset struct { + // SnowflakeDatasetTypeProperties - Snowflake dataset properties. + *SnowflakeDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) MarshalJSON() ([]byte, error) { + svd.Type = TypeBasicDatasetTypeSnowflakeV2Table + objectMap := make(map[string]interface{}) + if svd.SnowflakeDatasetTypeProperties != nil { + objectMap["typeProperties"] = svd.SnowflakeDatasetTypeProperties + } + if svd.Description != nil { + objectMap["description"] = svd.Description + } + if svd.Structure != nil { + objectMap["structure"] = svd.Structure + } + if svd.Schema != nil { + objectMap["schema"] = svd.Schema + } + if svd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = svd.LinkedServiceName + } + if svd.Parameters != nil { + objectMap["parameters"] = svd.Parameters + } + if svd.Annotations != nil { + objectMap["annotations"] = svd.Annotations + } + if svd.Folder != nil { + objectMap["folder"] = svd.Folder + } + if svd.Type != "" { + objectMap["type"] = svd.Type + } + for k, v := range svd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return &svd, true +} + +// AsSnowflakeDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SnowflakeV2Dataset. +func (svd SnowflakeV2Dataset) AsBasicDataset() (BasicDataset, bool) { + return &svd, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeV2Dataset struct. +func (svd *SnowflakeV2Dataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var snowflakeDatasetTypeProperties SnowflakeDatasetTypeProperties + err = json.Unmarshal(*v, &snowflakeDatasetTypeProperties) + if err != nil { + return err + } + svd.SnowflakeDatasetTypeProperties = &snowflakeDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if svd.AdditionalProperties == nil { + svd.AdditionalProperties = make(map[string]interface{}) + } + svd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + svd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + svd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + svd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + svd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + svd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + svd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + svd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + svd.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeV2LinkedService snowflake linked service. +type SnowflakeV2LinkedService struct { + // SnowflakeLinkedV2ServiceTypeProperties - Snowflake linked service properties. + *SnowflakeLinkedV2ServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) MarshalJSON() ([]byte, error) { + svls.Type = TypeBasicLinkedServiceTypeSnowflakeV2 + objectMap := make(map[string]interface{}) + if svls.SnowflakeLinkedV2ServiceTypeProperties != nil { + objectMap["typeProperties"] = svls.SnowflakeLinkedV2ServiceTypeProperties + } + if svls.ConnectVia != nil { + objectMap["connectVia"] = svls.ConnectVia + } + if svls.Description != nil { + objectMap["description"] = svls.Description + } + if svls.Parameters != nil { + objectMap["parameters"] = svls.Parameters + } + if svls.Annotations != nil { + objectMap["annotations"] = svls.Annotations + } + if svls.Type != "" { + objectMap["type"] = svls.Type + } + for k, v := range svls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return &svls, true +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. +func (svls SnowflakeV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &svls, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeV2LinkedService struct. +func (svls *SnowflakeV2LinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var snowflakeLinkedV2ServiceTypeProperties SnowflakeLinkedV2ServiceTypeProperties + err = json.Unmarshal(*v, &snowflakeLinkedV2ServiceTypeProperties) + if err != nil { + return err + } + svls.SnowflakeLinkedV2ServiceTypeProperties = &snowflakeLinkedV2ServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if svls.AdditionalProperties == nil { + svls.AdditionalProperties = make(map[string]interface{}) + } + svls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + svls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + svls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + svls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + svls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + svls.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeV2Sink a copy activity snowflake sink. +type SnowflakeV2Sink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // ImportSettings - Snowflake import settings. + ImportSettings *SnowflakeImportCopyCommand `json:"importSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) MarshalJSON() ([]byte, error) { + svs.Type = TypeBasicCopySinkTypeSnowflakeV2Sink + objectMap := make(map[string]interface{}) + if svs.PreCopyScript != nil { + objectMap["preCopyScript"] = svs.PreCopyScript + } + if svs.ImportSettings != nil { + objectMap["importSettings"] = svs.ImportSettings + } + if svs.WriteBatchSize != nil { + objectMap["writeBatchSize"] = svs.WriteBatchSize + } + if svs.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = svs.WriteBatchTimeout + } + if svs.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = svs.SinkRetryCount + } + if svs.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = svs.SinkRetryWait + } + if svs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = svs.MaxConcurrentConnections + } + if svs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = svs.DisableMetricsCollection + } + if svs.Type != "" { + objectMap["type"] = svs.Type + } + for k, v := range svs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return &svs, true +} + +// AsSnowflakeSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsWarehouseSink() (*WarehouseSink, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for SnowflakeV2Sink. +func (svs SnowflakeV2Sink) AsBasicCopySink() (BasicCopySink, bool) { + return &svs, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeV2Sink struct. +func (svs *SnowflakeV2Sink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + svs.PreCopyScript = preCopyScript + } + case "importSettings": + if v != nil { + var importSettings SnowflakeImportCopyCommand + err = json.Unmarshal(*v, &importSettings) + if err != nil { + return err + } + svs.ImportSettings = &importSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if svs.AdditionalProperties == nil { + svs.AdditionalProperties = make(map[string]interface{}) + } + svs.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + svs.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + svs.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + svs.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + svs.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + svs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + svs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + svs.Type = typeVar + } + } + } + + return nil +} + +// SnowflakeV2Source a copy activity snowflake source. +type SnowflakeV2Source struct { + // Query - Snowflake Sql query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // ExportSettings - Snowflake export settings. + ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SnowflakeV2Source. +func (svs SnowflakeV2Source) MarshalJSON() ([]byte, error) { + svs.Type = TypeBasicCopySourceTypeSnowflakeV2Source + objectMap := make(map[string]interface{}) + if svs.Query != nil { + objectMap["query"] = svs.Query + } + if svs.ExportSettings != nil { + objectMap["exportSettings"] = svs.ExportSettings + } + if svs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = svs.SourceRetryCount + } + if svs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = svs.SourceRetryWait + } + if svs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = svs.MaxConcurrentConnections + } + if svs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = svs.DisableMetricsCollection + } + if svs.Type != "" { + objectMap["type"] = svs.Type + } + for k, v := range svs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return &svs, true +} + +// AsSnowflakeSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SnowflakeV2Source. +func (svs SnowflakeV2Source) AsBasicCopySource() (BasicCopySource, bool) { + return &svs, true +} + +// UnmarshalJSON is the custom unmarshaler for SnowflakeV2Source struct. +func (svs *SnowflakeV2Source) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + svs.Query = query + } + case "exportSettings": + if v != nil { + var exportSettings SnowflakeExportCopyCommand + err = json.Unmarshal(*v, &exportSettings) + if err != nil { + return err + } + svs.ExportSettings = &exportSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if svs.AdditionalProperties == nil { + svs.AdditionalProperties = make(map[string]interface{}) + } + svs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + svs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + svs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + svs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + svs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + svs.Type = typeVar + } + } + } + + return nil +} + +// SparkConfigurationParametrizationReference spark configuration reference. +type SparkConfigurationParametrizationReference struct { + // Type - Spark configuration reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference spark configuration name. Type: string (or Expression with resultType string). + ReferenceName interface{} `json:"referenceName,omitempty"` +} + +// SparkDatasetTypeProperties spark Properties +type SparkDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Spark. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Spark. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// SparkLinkedService spark Server linked service. +type SparkLinkedService struct { + // SparkLinkedServiceTypeProperties - Spark Server linked service properties. + *SparkLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SparkLinkedService. +func (sls SparkLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeBasicLinkedServiceTypeSpark + objectMap := make(map[string]interface{}) + if sls.SparkLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SparkLinkedServiceTypeProperties + } + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia + } + if sls.Description != nil { + objectMap["description"] = sls.Description + } + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters + } + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations + } + if sls.Type != "" { + objectMap["type"] = sls.Type + } + for k, v := range sls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return &sls, true +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SparkLinkedService. +func (sls SparkLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SparkLinkedService struct. +func (sls *SparkLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sparkLinkedServiceTypeProperties SparkLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sparkLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.SparkLinkedServiceTypeProperties = &sparkLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) + } + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sls.Type = typeVar + } + } + } + + return nil +} + +// SparkLinkedServiceTypeProperties spark Server linked service properties. +type SparkLinkedServiceTypeProperties struct { + // Host - IP address or host name of the Spark server + Host interface{} `json:"host,omitempty"` + // Port - The TCP port that the Spark server uses to listen for client connections. + Port interface{} `json:"port,omitempty"` + // ServerType - The type of Spark server. Possible values include: 'SparkServerTypeSharkServer', 'SparkServerTypeSharkServer2', 'SparkServerTypeSparkThriftServer' + ServerType SparkServerType `json:"serverType,omitempty"` + // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'SparkThriftTransportProtocolBinary', 'SparkThriftTransportProtocolSASL', 'SparkThriftTransportProtocolHTTP' + ThriftTransportProtocol SparkThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` + // AuthenticationType - The authentication method used to access the Spark server. Possible values include: 'SparkAuthenticationTypeAnonymous', 'SparkAuthenticationTypeUsername', 'SparkAuthenticationTypeUsernameAndPassword', 'SparkAuthenticationTypeWindowsAzureHDInsightService' + AuthenticationType SparkAuthenticationType `json:"authenticationType,omitempty"` + // Username - The user name that you use to access Spark Server. + Username interface{} `json:"username,omitempty"` + // Password - The password corresponding to the user name that you provided in the Username field + Password BasicSecretBase `json:"password,omitempty"` + // HTTPPath - The partial URL corresponding to the Spark server. + HTTPPath interface{} `json:"httpPath,omitempty"` + // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. + EnableSsl interface{} `json:"enableSsl,omitempty"` + // TrustedCertPath - 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"` + // UseSystemTrustStore - 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"` + // AllowHostNameCNMismatch - 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"` + // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. + AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SparkLinkedServiceTypeProperties struct. +func (slstp *SparkLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + slstp.Host = host + } + case "port": + if v != nil { + var port interface{} + err = json.Unmarshal(*v, &port) + if err != nil { + return err + } + slstp.Port = port + } + case "serverType": + if v != nil { + var serverType SparkServerType + err = json.Unmarshal(*v, &serverType) + if err != nil { + return err + } + slstp.ServerType = serverType + } + case "thriftTransportProtocol": + if v != nil { + var thriftTransportProtocol SparkThriftTransportProtocol + err = json.Unmarshal(*v, &thriftTransportProtocol) + if err != nil { + return err + } + slstp.ThriftTransportProtocol = thriftTransportProtocol + } + case "authenticationType": + if v != nil { + var authenticationType SparkAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + slstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + slstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slstp.Password = password + } + case "httpPath": + if v != nil { + var HTTPPath interface{} + err = json.Unmarshal(*v, &HTTPPath) + if err != nil { + return err + } + slstp.HTTPPath = HTTPPath + } + case "enableSsl": + if v != nil { + var enableSsl interface{} + err = json.Unmarshal(*v, &enableSsl) + if err != nil { + return err + } + slstp.EnableSsl = enableSsl + } + case "trustedCertPath": + if v != nil { + var trustedCertPath interface{} + err = json.Unmarshal(*v, &trustedCertPath) + if err != nil { + return err + } + slstp.TrustedCertPath = trustedCertPath + } + case "useSystemTrustStore": + if v != nil { + var useSystemTrustStore interface{} + err = json.Unmarshal(*v, &useSystemTrustStore) + if err != nil { + return err + } + slstp.UseSystemTrustStore = useSystemTrustStore + } + case "allowHostNameCNMismatch": + if v != nil { + var allowHostNameCNMismatch interface{} + err = json.Unmarshal(*v, &allowHostNameCNMismatch) + if err != nil { + return err + } + slstp.AllowHostNameCNMismatch = allowHostNameCNMismatch + } + case "allowSelfSignedServerCert": + if v != nil { + var allowSelfSignedServerCert interface{} + err = json.Unmarshal(*v, &allowSelfSignedServerCert) + if err != nil { + return err + } + slstp.AllowSelfSignedServerCert = allowSelfSignedServerCert + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SparkObjectDataset spark Server dataset. +type SparkObjectDataset struct { + // SparkDatasetTypeProperties - Properties specific to this dataset type. + *SparkDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SparkObjectDataset. +func (sod SparkObjectDataset) MarshalJSON() ([]byte, error) { + sod.Type = TypeBasicDatasetTypeSparkObject + objectMap := make(map[string]interface{}) + if sod.SparkDatasetTypeProperties != nil { + objectMap["typeProperties"] = sod.SparkDatasetTypeProperties + } + if sod.Description != nil { + objectMap["description"] = sod.Description + } + if sod.Structure != nil { + objectMap["structure"] = sod.Structure + } + if sod.Schema != nil { + objectMap["schema"] = sod.Schema + } + if sod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sod.LinkedServiceName + } + if sod.Parameters != nil { + objectMap["parameters"] = sod.Parameters + } + if sod.Annotations != nil { + objectMap["annotations"] = sod.Annotations + } + if sod.Folder != nil { + objectMap["folder"] = sod.Folder + } + if sod.Type != "" { + objectMap["type"] = sod.Type + } + for k, v := range sod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return &sod, true +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SparkObjectDataset. +func (sod SparkObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sod, true +} + +// UnmarshalJSON is the custom unmarshaler for SparkObjectDataset struct. +func (sod *SparkObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sparkDatasetTypeProperties SparkDatasetTypeProperties + err = json.Unmarshal(*v, &sparkDatasetTypeProperties) + if err != nil { + return err + } + sod.SparkDatasetTypeProperties = &sparkDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sod.AdditionalProperties == nil { + sod.AdditionalProperties = make(map[string]interface{}) + } + sod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sod.Type = typeVar + } + } + } + + return nil +} + +// SparkSource a copy activity Spark Server source. +type SparkSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SparkSource. +func (ss SparkSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySourceTypeSparkSource + objectMap := make(map[string]interface{}) + if ss.Query != nil { + objectMap["query"] = ss.Query + } + if ss.QueryTimeout != nil { + objectMap["queryTimeout"] = ss.QueryTimeout + } + if ss.AdditionalColumns != nil { + objectMap["additionalColumns"] = ss.AdditionalColumns + } + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount + } + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSparkSource() (*SparkSource, bool) { + return &ss, true +} + +// AsShopifySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ss, true +} + +// AsBinarySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SparkSource. +func (ss SparkSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SparkSource struct. +func (ss *SparkSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ss.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SquareLinkedService square Service linked service. +type SquareLinkedService struct { + // SquareLinkedServiceTypeProperties - Square Service linked service properties. + *SquareLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SquareLinkedService. +func (sls SquareLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeBasicLinkedServiceTypeSquare + objectMap := make(map[string]interface{}) + if sls.SquareLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SquareLinkedServiceTypeProperties + } + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia + } + if sls.Description != nil { + objectMap["description"] = sls.Description + } + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters + } + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations + } + if sls.Type != "" { + objectMap["type"] = sls.Type + } + for k, v := range sls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return &sls, true +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SquareLinkedService. +func (sls SquareLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SquareLinkedService struct. +func (sls *SquareLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var squareLinkedServiceTypeProperties SquareLinkedServiceTypeProperties + err = json.Unmarshal(*v, &squareLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.SquareLinkedServiceTypeProperties = &squareLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) + } + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sls.Type = typeVar + } + } + } + + return nil +} + +// SquareLinkedServiceTypeProperties square Service linked service properties. +type SquareLinkedServiceTypeProperties struct { + // ConnectionProperties - 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"` + // Host - The URL of the Square instance. (i.e. mystore.mysquare.com) + Host interface{} `json:"host,omitempty"` + // ClientID - The client ID associated with your Square application. + ClientID interface{} `json:"clientId,omitempty"` + // ClientSecret - The client secret associated with your Square application. + ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` + // RedirectURI - The redirect URL assigned in the Square application dashboard. (i.e. http://localhost:2500) + RedirectURI interface{} `json:"redirectUri,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SquareLinkedServiceTypeProperties struct. +func (slstp *SquareLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionProperties": + if v != nil { + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) + if err != nil { + return err + } + slstp.ConnectionProperties = connectionProperties + } + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + slstp.Host = host + } + case "clientId": + if v != nil { + var clientID interface{} + err = json.Unmarshal(*v, &clientID) + if err != nil { + return err + } + slstp.ClientID = clientID + } + case "clientSecret": + if v != nil { + clientSecret, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slstp.ClientSecret = clientSecret + } + case "redirectUri": + if v != nil { + var redirectURI interface{} + err = json.Unmarshal(*v, &redirectURI) + if err != nil { + return err + } + slstp.RedirectURI = redirectURI + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + slstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + slstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + slstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SquareObjectDataset square Service dataset. +type SquareObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SquareObjectDataset. +func (sod SquareObjectDataset) MarshalJSON() ([]byte, error) { + sod.Type = TypeBasicDatasetTypeSquareObject + objectMap := make(map[string]interface{}) + if sod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = sod.GenericDatasetTypeProperties + } + if sod.Description != nil { + objectMap["description"] = sod.Description + } + if sod.Structure != nil { + objectMap["structure"] = sod.Structure + } + if sod.Schema != nil { + objectMap["schema"] = sod.Schema + } + if sod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sod.LinkedServiceName + } + if sod.Parameters != nil { + objectMap["parameters"] = sod.Parameters + } + if sod.Annotations != nil { + objectMap["annotations"] = sod.Annotations + } + if sod.Folder != nil { + objectMap["folder"] = sod.Folder + } + if sod.Type != "" { + objectMap["type"] = sod.Type + } + for k, v := range sod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return &sod, true +} + +// AsSparkObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SquareObjectDataset. +func (sod SquareObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &sod, true +} + +// UnmarshalJSON is the custom unmarshaler for SquareObjectDataset struct. +func (sod *SquareObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + sod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sod.AdditionalProperties == nil { + sod.AdditionalProperties = make(map[string]interface{}) + } + sod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + sod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + sod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + sod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sod.Type = typeVar + } + } + } + + return nil +} + +// SquareSource a copy activity Square Service source. +type SquareSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SquareSource. +func (ss SquareSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySourceTypeSquareSource + objectMap := make(map[string]interface{}) + if ss.Query != nil { + objectMap["query"] = ss.Query + } + if ss.QueryTimeout != nil { + objectMap["queryTimeout"] = ss.QueryTimeout + } + if ss.AdditionalColumns != nil { + objectMap["additionalColumns"] = ss.AdditionalColumns + } + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount + } + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSquareSource() (*SquareSource, bool) { + return &ss, true +} + +// AsSparkSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ss, true +} + +// AsBinarySource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SquareSource. +func (ss SquareSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SquareSource struct. +func (ss *SquareSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ss.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SsisEnvironment ssis environment. +type SsisEnvironment struct { + // FolderID - Folder id which contains environment. + FolderID *int64 `json:"folderId,omitempty"` + // Variables - Variable in environment + Variables *[]SsisVariable `json:"variables,omitempty"` + // ID - Metadata id. + ID *int64 `json:"id,omitempty"` + // Name - Metadata name. + Name *string `json:"name,omitempty"` + // Description - Metadata description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' + Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SsisEnvironment. +func (se SsisEnvironment) MarshalJSON() ([]byte, error) { + se.Type = TypeBasicSsisObjectMetadataTypeEnvironment + objectMap := make(map[string]interface{}) + if se.FolderID != nil { + objectMap["folderId"] = se.FolderID + } + if se.Variables != nil { + objectMap["variables"] = se.Variables + } + if se.ID != nil { + objectMap["id"] = se.ID + } + if se.Name != nil { + objectMap["name"] = se.Name + } + if se.Description != nil { + objectMap["description"] = se.Description + } + if se.Type != "" { + objectMap["type"] = se.Type + } + return json.Marshal(objectMap) +} + +// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisEnvironment. +func (se SsisEnvironment) AsSsisEnvironment() (*SsisEnvironment, bool) { + return &se, true +} + +// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisEnvironment. +func (se SsisEnvironment) AsSsisPackage() (*SsisPackage, bool) { + return nil, false +} + +// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisEnvironment. +func (se SsisEnvironment) AsSsisProject() (*SsisProject, bool) { + return nil, false +} + +// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisEnvironment. +func (se SsisEnvironment) AsSsisFolder() (*SsisFolder, bool) { + return nil, false +} + +// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisEnvironment. +func (se SsisEnvironment) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { + return nil, false +} + +// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisEnvironment. +func (se SsisEnvironment) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { + return &se, true +} + +// SsisEnvironmentReference ssis environment reference. +type SsisEnvironmentReference struct { + // ID - Environment reference id. + ID *int64 `json:"id,omitempty"` + // EnvironmentFolderName - Environment folder name. + EnvironmentFolderName *string `json:"environmentFolderName,omitempty"` + // EnvironmentName - Environment name. + EnvironmentName *string `json:"environmentName,omitempty"` + // ReferenceType - Reference type + ReferenceType *string `json:"referenceType,omitempty"` +} + +// SsisFolder ssis folder. +type SsisFolder struct { + // ID - Metadata id. + ID *int64 `json:"id,omitempty"` + // Name - Metadata name. + Name *string `json:"name,omitempty"` + // Description - Metadata description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' + Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SsisFolder. +func (sf SsisFolder) MarshalJSON() ([]byte, error) { + sf.Type = TypeBasicSsisObjectMetadataTypeFolder + objectMap := make(map[string]interface{}) + if sf.ID != nil { + objectMap["id"] = sf.ID + } + if sf.Name != nil { + objectMap["name"] = sf.Name + } + if sf.Description != nil { + objectMap["description"] = sf.Description + } + if sf.Type != "" { + objectMap["type"] = sf.Type + } + return json.Marshal(objectMap) +} + +// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisFolder. +func (sf SsisFolder) AsSsisEnvironment() (*SsisEnvironment, bool) { + return nil, false +} + +// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisFolder. +func (sf SsisFolder) AsSsisPackage() (*SsisPackage, bool) { + return nil, false +} + +// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisFolder. +func (sf SsisFolder) AsSsisProject() (*SsisProject, bool) { + return nil, false +} + +// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisFolder. +func (sf SsisFolder) AsSsisFolder() (*SsisFolder, bool) { + return &sf, true +} + +// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisFolder. +func (sf SsisFolder) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { + return nil, false +} + +// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisFolder. +func (sf SsisFolder) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { + return &sf, true +} + +// BasicSsisObjectMetadata SSIS object metadata. +type BasicSsisObjectMetadata interface { + AsSsisEnvironment() (*SsisEnvironment, bool) + AsSsisPackage() (*SsisPackage, bool) + AsSsisProject() (*SsisProject, bool) + AsSsisFolder() (*SsisFolder, bool) + AsSsisObjectMetadata() (*SsisObjectMetadata, bool) +} + +// SsisObjectMetadata SSIS object metadata. +type SsisObjectMetadata struct { + // ID - Metadata id. + ID *int64 `json:"id,omitempty"` + // Name - Metadata name. + Name *string `json:"name,omitempty"` + // Description - Metadata description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' + Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` +} + +func unmarshalBasicSsisObjectMetadata(body []byte) (BasicSsisObjectMetadata, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicSsisObjectMetadataTypeEnvironment): + var se SsisEnvironment + err := json.Unmarshal(body, &se) + return se, err + case string(TypeBasicSsisObjectMetadataTypePackage): + var sp SsisPackage + err := json.Unmarshal(body, &sp) + return sp, err + case string(TypeBasicSsisObjectMetadataTypeProject): + var sp SsisProject + err := json.Unmarshal(body, &sp) + return sp, err + case string(TypeBasicSsisObjectMetadataTypeFolder): + var sf SsisFolder + err := json.Unmarshal(body, &sf) + return sf, err + default: + var som SsisObjectMetadata + err := json.Unmarshal(body, &som) + return som, err + } +} +func unmarshalBasicSsisObjectMetadataArray(body []byte) ([]BasicSsisObjectMetadata, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + somArray := make([]BasicSsisObjectMetadata, len(rawMessages)) + + for index, rawMessage := range rawMessages { + som, err := unmarshalBasicSsisObjectMetadata(*rawMessage) + if err != nil { + return nil, err + } + somArray[index] = som + } + return somArray, nil +} + +// MarshalJSON is the custom marshaler for SsisObjectMetadata. +func (som SsisObjectMetadata) MarshalJSON() ([]byte, error) { + som.Type = TypeBasicSsisObjectMetadataTypeSsisObjectMetadata + objectMap := make(map[string]interface{}) + if som.ID != nil { + objectMap["id"] = som.ID + } + if som.Name != nil { + objectMap["name"] = som.Name + } + if som.Description != nil { + objectMap["description"] = som.Description + } + if som.Type != "" { + objectMap["type"] = som.Type + } + return json.Marshal(objectMap) +} + +// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. +func (som SsisObjectMetadata) AsSsisEnvironment() (*SsisEnvironment, bool) { + return nil, false +} + +// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. +func (som SsisObjectMetadata) AsSsisPackage() (*SsisPackage, bool) { + return nil, false +} + +// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. +func (som SsisObjectMetadata) AsSsisProject() (*SsisProject, bool) { + return nil, false +} + +// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. +func (som SsisObjectMetadata) AsSsisFolder() (*SsisFolder, bool) { + return nil, false +} + +// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. +func (som SsisObjectMetadata) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { + return &som, true +} + +// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. +func (som SsisObjectMetadata) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { + return &som, true +} + +// SsisObjectMetadataListResponse a list of SSIS object metadata. +type SsisObjectMetadataListResponse struct { + autorest.Response `json:"-"` + // Value - List of SSIS object metadata. + Value *[]BasicSsisObjectMetadata `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SsisObjectMetadataListResponse struct. +func (somlr *SsisObjectMetadataListResponse) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "value": + if v != nil { + value, err := unmarshalBasicSsisObjectMetadataArray(*v) + if err != nil { + return err + } + somlr.Value = &value + } + case "nextLink": + if v != nil { + var nextLink string + err = json.Unmarshal(*v, &nextLink) + if err != nil { + return err + } + somlr.NextLink = &nextLink + } + } + } + + return nil +} + +// SsisObjectMetadataStatusResponse the status of the operation. +type SsisObjectMetadataStatusResponse struct { + autorest.Response `json:"-"` + // Status - The status of the operation. + Status *string `json:"status,omitempty"` + // Name - The operation name. + Name *string `json:"name,omitempty"` + // Properties - The operation properties. + Properties *string `json:"properties,omitempty"` + // Error - The operation error message. + Error *string `json:"error,omitempty"` +} + +// SsisPackage ssis Package. +type SsisPackage struct { + // FolderID - Folder id which contains package. + FolderID *int64 `json:"folderId,omitempty"` + // ProjectVersion - Project version which contains package. + ProjectVersion *int64 `json:"projectVersion,omitempty"` + // ProjectID - Project id which contains package. + ProjectID *int64 `json:"projectId,omitempty"` + // Parameters - Parameters in package + Parameters *[]SsisParameter `json:"parameters,omitempty"` + // ID - Metadata id. + ID *int64 `json:"id,omitempty"` + // Name - Metadata name. + Name *string `json:"name,omitempty"` + // Description - Metadata description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' + Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SsisPackage. +func (sp SsisPackage) MarshalJSON() ([]byte, error) { + sp.Type = TypeBasicSsisObjectMetadataTypePackage + objectMap := make(map[string]interface{}) + if sp.FolderID != nil { + objectMap["folderId"] = sp.FolderID + } + if sp.ProjectVersion != nil { + objectMap["projectVersion"] = sp.ProjectVersion + } + if sp.ProjectID != nil { + objectMap["projectId"] = sp.ProjectID + } + if sp.Parameters != nil { + objectMap["parameters"] = sp.Parameters + } + if sp.ID != nil { + objectMap["id"] = sp.ID + } + if sp.Name != nil { + objectMap["name"] = sp.Name + } + if sp.Description != nil { + objectMap["description"] = sp.Description + } + if sp.Type != "" { + objectMap["type"] = sp.Type + } + return json.Marshal(objectMap) +} + +// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisPackage. +func (sp SsisPackage) AsSsisEnvironment() (*SsisEnvironment, bool) { + return nil, false +} + +// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisPackage. +func (sp SsisPackage) AsSsisPackage() (*SsisPackage, bool) { + return &sp, true +} + +// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisPackage. +func (sp SsisPackage) AsSsisProject() (*SsisProject, bool) { + return nil, false +} + +// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisPackage. +func (sp SsisPackage) AsSsisFolder() (*SsisFolder, bool) { + return nil, false +} + +// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisPackage. +func (sp SsisPackage) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { + return nil, false +} + +// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisPackage. +func (sp SsisPackage) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { + return &sp, true +} + +// SsisParameter ssis parameter. +type SsisParameter struct { + // ID - Parameter id. + ID *int64 `json:"id,omitempty"` + // Name - Parameter name. + Name *string `json:"name,omitempty"` + // Description - Parameter description. + Description *string `json:"description,omitempty"` + // DataType - Parameter type. + DataType *string `json:"dataType,omitempty"` + // Required - Whether parameter is required. + Required *bool `json:"required,omitempty"` + // Sensitive - Whether parameter is sensitive. + Sensitive *bool `json:"sensitive,omitempty"` + // DesignDefaultValue - Design default value of parameter. + DesignDefaultValue *string `json:"designDefaultValue,omitempty"` + // DefaultValue - Default value of parameter. + DefaultValue *string `json:"defaultValue,omitempty"` + // SensitiveDefaultValue - Default sensitive value of parameter. + SensitiveDefaultValue *string `json:"sensitiveDefaultValue,omitempty"` + // ValueType - Parameter value type. + ValueType *string `json:"valueType,omitempty"` + // ValueSet - Parameter value set. + ValueSet *bool `json:"valueSet,omitempty"` + // Variable - Parameter reference variable. + Variable *string `json:"variable,omitempty"` +} + +// SsisProject ssis project. +type SsisProject struct { + // FolderID - Folder id which contains project. + FolderID *int64 `json:"folderId,omitempty"` + // Version - Project version. + Version *int64 `json:"version,omitempty"` + // EnvironmentRefs - Environment reference in project + EnvironmentRefs *[]SsisEnvironmentReference `json:"environmentRefs,omitempty"` + // Parameters - Parameters in project + Parameters *[]SsisParameter `json:"parameters,omitempty"` + // ID - Metadata id. + ID *int64 `json:"id,omitempty"` + // Name - Metadata name. + Name *string `json:"name,omitempty"` + // Description - Metadata description. + Description *string `json:"description,omitempty"` + // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' + Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SsisProject. +func (sp SsisProject) MarshalJSON() ([]byte, error) { + sp.Type = TypeBasicSsisObjectMetadataTypeProject + objectMap := make(map[string]interface{}) + if sp.FolderID != nil { + objectMap["folderId"] = sp.FolderID + } + if sp.Version != nil { + objectMap["version"] = sp.Version + } + if sp.EnvironmentRefs != nil { + objectMap["environmentRefs"] = sp.EnvironmentRefs + } + if sp.Parameters != nil { + objectMap["parameters"] = sp.Parameters + } + if sp.ID != nil { + objectMap["id"] = sp.ID + } + if sp.Name != nil { + objectMap["name"] = sp.Name + } + if sp.Description != nil { + objectMap["description"] = sp.Description + } + if sp.Type != "" { + objectMap["type"] = sp.Type + } + return json.Marshal(objectMap) +} + +// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisProject. +func (sp SsisProject) AsSsisEnvironment() (*SsisEnvironment, bool) { + return nil, false +} + +// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisProject. +func (sp SsisProject) AsSsisPackage() (*SsisPackage, bool) { + return nil, false +} + +// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisProject. +func (sp SsisProject) AsSsisProject() (*SsisProject, bool) { + return &sp, true +} + +// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisProject. +func (sp SsisProject) AsSsisFolder() (*SsisFolder, bool) { + return nil, false +} + +// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisProject. +func (sp SsisProject) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { + return nil, false +} + +// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisProject. +func (sp SsisProject) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { + return &sp, true +} + +// SsisVariable ssis variable. +type SsisVariable struct { + // ID - Variable id. + ID *int64 `json:"id,omitempty"` + // Name - Variable name. + Name *string `json:"name,omitempty"` + // Description - Variable description. + Description *string `json:"description,omitempty"` + // DataType - Variable type. + DataType *string `json:"dataType,omitempty"` + // Sensitive - Whether variable is sensitive. + Sensitive *bool `json:"sensitive,omitempty"` + // Value - Variable value. + Value *string `json:"value,omitempty"` + // SensitiveValue - Variable sensitive value. + SensitiveValue *string `json:"sensitiveValue,omitempty"` +} + +// StagingSettings staging settings. +type StagingSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // LinkedServiceName - Staging linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Path - The path to storage for storing the interim data. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` + // EnableCompression - 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"` +} + +// MarshalJSON is the custom marshaler for StagingSettings. +func (ss StagingSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ss.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ss.LinkedServiceName + } + if ss.Path != nil { + objectMap["path"] = ss.Path + } + if ss.EnableCompression != nil { + objectMap["enableCompression"] = ss.EnableCompression + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for StagingSettings struct. +func (ss *StagingSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ss.LinkedServiceName = &linkedServiceName + } + case "path": + if v != nil { + var pathVar interface{} + err = json.Unmarshal(*v, &pathVar) + if err != nil { + return err + } + ss.Path = pathVar + } + case "enableCompression": + if v != nil { + var enableCompression interface{} + err = json.Unmarshal(*v, &enableCompression) + if err != nil { + return err + } + ss.EnableCompression = enableCompression + } + } + } + + return nil +} + +// BasicStoreReadSettings connector read setting. +type BasicStoreReadSettings interface { + AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) + AsHdfsReadSettings() (*HdfsReadSettings, bool) + AsHTTPReadSettings() (*HTTPReadSettings, bool) + AsSftpReadSettings() (*SftpReadSettings, bool) + AsFtpReadSettings() (*FtpReadSettings, bool) + AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) + AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) + AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) + AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) + AsFileServerReadSettings() (*FileServerReadSettings, bool) + AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) + AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) + AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) + AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) + AsStoreReadSettings() (*StoreReadSettings, bool) +} + +// StoreReadSettings connector read setting. +type StoreReadSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' + Type TypeBasicStoreReadSettings `json:"type,omitempty"` +} + +func unmarshalBasicStoreReadSettings(body []byte) (BasicStoreReadSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicStoreReadSettingsTypeLakeHouseReadSettings): + var lhrs LakeHouseReadSettings + err := json.Unmarshal(body, &lhrs) + return lhrs, err + case string(TypeBasicStoreReadSettingsTypeHdfsReadSettings): + var hrs HdfsReadSettings + err := json.Unmarshal(body, &hrs) + return hrs, err + case string(TypeBasicStoreReadSettingsTypeHTTPReadSettings): + var hrs HTTPReadSettings + err := json.Unmarshal(body, &hrs) + return hrs, err + case string(TypeBasicStoreReadSettingsTypeSftpReadSettings): + var srs SftpReadSettings + err := json.Unmarshal(body, &srs) + return srs, err + case string(TypeBasicStoreReadSettingsTypeFtpReadSettings): + var frs FtpReadSettings + err := json.Unmarshal(body, &frs) + return frs, err + case string(TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings): + var gcsrs GoogleCloudStorageReadSettings + err := json.Unmarshal(body, &gcsrs) + return gcsrs, err + case string(TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings): + var ocsrs OracleCloudStorageReadSettings + err := json.Unmarshal(body, &ocsrs) + return ocsrs, err + case string(TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings): + var ascrs AmazonS3CompatibleReadSettings + err := json.Unmarshal(body, &ascrs) + return ascrs, err + case string(TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings): + var afsrs AzureFileStorageReadSettings + err := json.Unmarshal(body, &afsrs) + return afsrs, err + case string(TypeBasicStoreReadSettingsTypeFileServerReadSettings): + var fsrs FileServerReadSettings + err := json.Unmarshal(body, &fsrs) + return fsrs, err + case string(TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings): + var asrs AmazonS3ReadSettings + err := json.Unmarshal(body, &asrs) + return asrs, err + case string(TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings): + var adlsrs AzureDataLakeStoreReadSettings + err := json.Unmarshal(body, &adlsrs) + return adlsrs, err + case string(TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings): + var abfrs AzureBlobFSReadSettings + err := json.Unmarshal(body, &abfrs) + return abfrs, err + case string(TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings): + var absrs AzureBlobStorageReadSettings + err := json.Unmarshal(body, &absrs) + return absrs, err + default: + var srs StoreReadSettings + err := json.Unmarshal(body, &srs) + return srs, err + } +} +func unmarshalBasicStoreReadSettingsArray(body []byte) ([]BasicStoreReadSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + srsArray := make([]BasicStoreReadSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + srs, err := unmarshalBasicStoreReadSettings(*rawMessage) + if err != nil { + return nil, err + } + srsArray[index] = srs + } + return srsArray, nil +} + +// MarshalJSON is the custom marshaler for StoreReadSettings. +func (srs StoreReadSettings) MarshalJSON() ([]byte, error) { + srs.Type = TypeBasicStoreReadSettingsTypeStoreReadSettings + objectMap := make(map[string]interface{}) + if srs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = srs.MaxConcurrentConnections + } + if srs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = srs.DisableMetricsCollection + } + if srs.Type != "" { + objectMap["type"] = srs.Type + } + for k, v := range srs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { + return nil, false +} + +// AsHdfsReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { + return nil, false +} + +// AsHTTPReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { + return nil, false +} + +// AsSftpReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { + return nil, false +} + +// AsFtpReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { + return nil, false +} + +// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { + return nil, false +} + +// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { + return nil, false +} + +// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { + return nil, false +} + +// AsFileServerReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { + return nil, false +} + +// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { + return nil, false +} + +// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { + return nil, false +} + +// AsStoreReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { + return &srs, true +} + +// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. +func (srs StoreReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { + return &srs, true +} + +// UnmarshalJSON is the custom unmarshaler for StoreReadSettings struct. +func (srs *StoreReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if srs.AdditionalProperties == nil { + srs.AdditionalProperties = make(map[string]interface{}) + } + srs.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + srs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + srs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicStoreReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + srs.Type = typeVar + } + } + } + + return nil +} + +// BasicStoreWriteSettings connector write settings. +type BasicStoreWriteSettings interface { + AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) + AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) + AsFileServerWriteSettings() (*FileServerWriteSettings, bool) + AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) + AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) + AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) + AsSftpWriteSettings() (*SftpWriteSettings, bool) + AsStoreWriteSettings() (*StoreWriteSettings, bool) +} + +// StoreWriteSettings connector write settings. +type StoreWriteSettings struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // CopyBehavior - The type of copy behavior for copy sink. + CopyBehavior interface{} `json:"copyBehavior,omitempty"` + // Metadata - 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"` + // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' + Type TypeBasicStoreWriteSettings `json:"type,omitempty"` +} + +func unmarshalBasicStoreWriteSettings(body []byte) (BasicStoreWriteSettings, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings): + var lhws LakeHouseWriteSettings + err := json.Unmarshal(body, &lhws) + return lhws, err + case string(TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings): + var afsws AzureFileStorageWriteSettings + err := json.Unmarshal(body, &afsws) + return afsws, err + case string(TypeBasicStoreWriteSettingsTypeFileServerWriteSettings): + var fsws FileServerWriteSettings + err := json.Unmarshal(body, &fsws) + return fsws, err + case string(TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings): + var adlsws AzureDataLakeStoreWriteSettings + err := json.Unmarshal(body, &adlsws) + return adlsws, err + case string(TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings): + var abfws AzureBlobFSWriteSettings + err := json.Unmarshal(body, &abfws) + return abfws, err + case string(TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings): + var absws AzureBlobStorageWriteSettings + err := json.Unmarshal(body, &absws) + return absws, err + case string(TypeBasicStoreWriteSettingsTypeSftpWriteSettings): + var sws SftpWriteSettings + err := json.Unmarshal(body, &sws) + return sws, err + default: + var sws StoreWriteSettings + err := json.Unmarshal(body, &sws) + return sws, err + } +} +func unmarshalBasicStoreWriteSettingsArray(body []byte) ([]BasicStoreWriteSettings, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + swsArray := make([]BasicStoreWriteSettings, len(rawMessages)) + + for index, rawMessage := range rawMessages { + sws, err := unmarshalBasicStoreWriteSettings(*rawMessage) + if err != nil { + return nil, err + } + swsArray[index] = sws + } + return swsArray, nil +} + +// MarshalJSON is the custom marshaler for StoreWriteSettings. +func (sws StoreWriteSettings) MarshalJSON() ([]byte, error) { + sws.Type = TypeBasicStoreWriteSettingsTypeStoreWriteSettings + objectMap := make(map[string]interface{}) + if sws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = sws.MaxConcurrentConnections + } + if sws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = sws.DisableMetricsCollection + } + if sws.CopyBehavior != nil { + objectMap["copyBehavior"] = sws.CopyBehavior + } + if sws.Metadata != nil { + objectMap["metadata"] = sws.Metadata + } + if sws.Type != "" { + objectMap["type"] = sws.Type + } + for k, v := range sws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { + return nil, false +} + +// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { + return nil, false +} + +// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { + return nil, false +} + +// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { + return nil, false +} + +// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { + return nil, false +} + +// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { + return nil, false +} + +// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { + return &sws, true +} + +// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. +func (sws StoreWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { + return &sws, true +} + +// UnmarshalJSON is the custom unmarshaler for StoreWriteSettings struct. +func (sws *StoreWriteSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sws.AdditionalProperties == nil { + sws.AdditionalProperties = make(map[string]interface{}) + } + sws.AdditionalProperties[k] = additionalProperties + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + sws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + sws.DisableMetricsCollection = disableMetricsCollection + } + case "copyBehavior": + if v != nil { + var copyBehavior interface{} + err = json.Unmarshal(*v, ©Behavior) + if err != nil { + return err + } + sws.CopyBehavior = copyBehavior + } + case "metadata": + if v != nil { + var metadata []MetadataItem + err = json.Unmarshal(*v, &metadata) + if err != nil { + return err + } + sws.Metadata = &metadata + } + case "type": + if v != nil { + var typeVar TypeBasicStoreWriteSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sws.Type = typeVar + } + } + } + + return nil +} + +// StoredProcedureParameter SQL stored procedure parameter. +type StoredProcedureParameter struct { + // Value - Stored procedure parameter value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` + // Type - Stored procedure parameter type. Possible values include: 'StoredProcedureParameterTypeString', 'StoredProcedureParameterTypeInt', 'StoredProcedureParameterTypeInt64', 'StoredProcedureParameterTypeDecimal', 'StoredProcedureParameterTypeGUID', 'StoredProcedureParameterTypeBoolean', 'StoredProcedureParameterTypeDate' + Type StoredProcedureParameterType `json:"type,omitempty"` +} + +// String ... +type String struct { + autorest.Response `json:"-"` + Value *string `json:"value,omitempty"` +} + +// SubResource azure Data Factory nested resource, which belongs to a factory. +type SubResource struct { + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for SubResource. +func (sr SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// SubResourceDebugResource azure Data Factory nested debug resource. +type SubResourceDebugResource struct { + // Name - The resource name. + Name *string `json:"name,omitempty"` +} + +// 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 { + // SwitchActivityTypeProperties - Switch activity properties. + *SwitchActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SwitchActivity. +func (sa SwitchActivity) MarshalJSON() ([]byte, error) { + sa.Type = TypeBasicActivityTypeSwitch + objectMap := make(map[string]interface{}) + if sa.SwitchActivityTypeProperties != nil { + objectMap["typeProperties"] = sa.SwitchActivityTypeProperties + } + if sa.Name != nil { + objectMap["name"] = sa.Name + } + if sa.Description != nil { + objectMap["description"] = sa.Description + } + if sa.State != "" { + objectMap["state"] = sa.State + } + if sa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = sa.OnInactiveMarkAs + } + if sa.DependsOn != nil { + objectMap["dependsOn"] = sa.DependsOn + } + if sa.UserProperties != nil { + objectMap["userProperties"] = sa.UserProperties + } + if sa.Type != "" { + objectMap["type"] = sa.Type + } + for k, v := range sa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return &sa, true +} + +// AsIfConditionActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &sa, true +} + +// AsActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for SwitchActivity. +func (sa SwitchActivity) AsBasicActivity() (BasicActivity, bool) { + return &sa, true +} + +// UnmarshalJSON is the custom unmarshaler for SwitchActivity struct. +func (sa *SwitchActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var switchActivityTypeProperties SwitchActivityTypeProperties + err = json.Unmarshal(*v, &switchActivityTypeProperties) + if err != nil { + return err + } + sa.SwitchActivityTypeProperties = &switchActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sa.AdditionalProperties == nil { + sa.AdditionalProperties = make(map[string]interface{}) + } + sa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + sa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + sa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + sa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + sa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sa.Type = typeVar + } + } + } + + return nil +} + +// SwitchActivityTypeProperties switch activity properties. +type SwitchActivityTypeProperties struct { + // On - 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"` + // Cases - 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"` + // DefaultActivities - 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 *[]BasicActivity `json:"defaultActivities,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SwitchActivityTypeProperties struct. +func (satp *SwitchActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "on": + if v != nil { + var on Expression + err = json.Unmarshal(*v, &on) + if err != nil { + return err + } + satp.On = &on + } + case "cases": + if v != nil { + var cases []SwitchCase + err = json.Unmarshal(*v, &cases) + if err != nil { + return err + } + satp.Cases = &cases + } + case "defaultActivities": + if v != nil { + defaultActivities, err := unmarshalBasicActivityArray(*v) + if err != nil { + return err + } + satp.DefaultActivities = &defaultActivities + } + } + } + + return nil +} + +// SwitchCase switch cases with have a value and corresponding activities. +type SwitchCase struct { + // Value - Expected value that satisfies the expression result of the 'on' property. + Value *string `json:"value,omitempty"` + // Activities - List of activities to execute for satisfied case condition. + Activities *[]BasicActivity `json:"activities,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SwitchCase struct. +func (sc *SwitchCase) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "value": + if v != nil { + var value string + err = json.Unmarshal(*v, &value) + if err != nil { + return err + } + sc.Value = &value + } + case "activities": + if v != nil { + activities, err := unmarshalBasicActivityArray(*v) + if err != nil { + return err + } + sc.Activities = &activities + } + } + } + + return nil +} + +// SybaseLinkedService linked service for Sybase data source. +type SybaseLinkedService struct { + // SybaseLinkedServiceTypeProperties - Sybase linked service properties. + *SybaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SybaseLinkedService. +func (sls SybaseLinkedService) MarshalJSON() ([]byte, error) { + sls.Type = TypeBasicLinkedServiceTypeSybase + objectMap := make(map[string]interface{}) + if sls.SybaseLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = sls.SybaseLinkedServiceTypeProperties + } + if sls.ConnectVia != nil { + objectMap["connectVia"] = sls.ConnectVia + } + if sls.Description != nil { + objectMap["description"] = sls.Description + } + if sls.Parameters != nil { + objectMap["parameters"] = sls.Parameters + } + if sls.Annotations != nil { + objectMap["annotations"] = sls.Annotations + } + if sls.Type != "" { + objectMap["type"] = sls.Type + } + for k, v := range sls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return &sls, true +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for SybaseLinkedService. +func (sls SybaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &sls, true +} + +// UnmarshalJSON is the custom unmarshaler for SybaseLinkedService struct. +func (sls *SybaseLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sybaseLinkedServiceTypeProperties SybaseLinkedServiceTypeProperties + err = json.Unmarshal(*v, &sybaseLinkedServiceTypeProperties) + if err != nil { + return err + } + sls.SybaseLinkedServiceTypeProperties = &sybaseLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sls.AdditionalProperties == nil { + sls.AdditionalProperties = make(map[string]interface{}) + } + sls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + sls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + sls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + sls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sls.Type = typeVar + } + } + } + + return nil +} + +// SybaseLinkedServiceTypeProperties sybase linked service properties. +type SybaseLinkedServiceTypeProperties struct { + // Server - Server name for connection. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // Database - Database name for connection. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` + // Schema - Schema name for connection. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // AuthenticationType - AuthenticationType to be used for connection. Possible values include: 'SybaseAuthenticationTypeBasic', 'SybaseAuthenticationTypeWindows' + AuthenticationType SybaseAuthenticationType `json:"authenticationType,omitempty"` + // Username - Username for authentication. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password for authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for SybaseLinkedServiceTypeProperties struct. +func (slstp *SybaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + slstp.Server = server + } + case "database": + if v != nil { + var databaseVar interface{} + err = json.Unmarshal(*v, &databaseVar) + if err != nil { + return err + } + slstp.Database = databaseVar + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + slstp.Schema = schema + } + case "authenticationType": + if v != nil { + var authenticationType SybaseAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + slstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + slstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + slstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + slstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// SybaseSource a copy activity source for Sybase databases. +type SybaseSource struct { + // Query - Database query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SybaseSource. +func (ss SybaseSource) MarshalJSON() ([]byte, error) { + ss.Type = TypeBasicCopySourceTypeSybaseSource + objectMap := make(map[string]interface{}) + if ss.Query != nil { + objectMap["query"] = ss.Query + } + if ss.QueryTimeout != nil { + objectMap["queryTimeout"] = ss.QueryTimeout + } + if ss.AdditionalColumns != nil { + objectMap["additionalColumns"] = ss.AdditionalColumns + } + if ss.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ss.SourceRetryCount + } + if ss.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ss.SourceRetryWait + } + if ss.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections + } + if ss.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection + } + if ss.Type != "" { + objectMap["type"] = ss.Type + } + for k, v := range ss.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsSybaseSource() (*SybaseSource, bool) { + return &ss, true +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ss, true +} + +// AsBinarySource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for SybaseSource. +func (ss SybaseSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ss, true +} + +// UnmarshalJSON is the custom unmarshaler for SybaseSource struct. +func (ss *SybaseSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ss.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ss.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ss.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ss.AdditionalProperties == nil { + ss.AdditionalProperties = make(map[string]interface{}) + } + ss.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ss.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ss.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ss.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ss.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ss.Type = typeVar + } + } + } + + return nil +} + +// SybaseTableDataset the Sybase table dataset. +type SybaseTableDataset struct { + // SybaseTableDatasetTypeProperties - Sybase table dataset properties. + *SybaseTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SybaseTableDataset. +func (std SybaseTableDataset) MarshalJSON() ([]byte, error) { + std.Type = TypeBasicDatasetTypeSybaseTable + objectMap := make(map[string]interface{}) + if std.SybaseTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = std.SybaseTableDatasetTypeProperties + } + if std.Description != nil { + objectMap["description"] = std.Description + } + if std.Structure != nil { + objectMap["structure"] = std.Structure + } + if std.Schema != nil { + objectMap["schema"] = std.Schema + } + if std.LinkedServiceName != nil { + objectMap["linkedServiceName"] = std.LinkedServiceName + } + if std.Parameters != nil { + objectMap["parameters"] = std.Parameters + } + if std.Annotations != nil { + objectMap["annotations"] = std.Annotations + } + if std.Folder != nil { + objectMap["folder"] = std.Folder + } + if std.Type != "" { + objectMap["type"] = std.Type + } + for k, v := range std.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return &std, true +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for SybaseTableDataset. +func (std SybaseTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &std, true +} + +// UnmarshalJSON is the custom unmarshaler for SybaseTableDataset struct. +func (std *SybaseTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var sybaseTableDatasetTypeProperties SybaseTableDatasetTypeProperties + err = json.Unmarshal(*v, &sybaseTableDatasetTypeProperties) + if err != nil { + return err + } + std.SybaseTableDatasetTypeProperties = &sybaseTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if std.AdditionalProperties == nil { + std.AdditionalProperties = make(map[string]interface{}) + } + std.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + std.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + std.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + std.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + std.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + std.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + std.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + std.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + std.Type = typeVar + } + } + } + + return nil +} + +// SybaseTableDatasetTypeProperties sybase table dataset properties. +type SybaseTableDatasetTypeProperties struct { + // TableName - The Sybase table name. Type: string (or Expression with resultType string). + TableName interface{} `json:"tableName,omitempty"` +} + +// SynapseNotebookActivity execute Synapse notebook activity. +type SynapseNotebookActivity struct { + // SynapseNotebookActivityTypeProperties - Execute Synapse notebook activity properties. + *SynapseNotebookActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) MarshalJSON() ([]byte, error) { + sna.Type = TypeBasicActivityTypeSynapseNotebook + objectMap := make(map[string]interface{}) + if sna.SynapseNotebookActivityTypeProperties != nil { + objectMap["typeProperties"] = sna.SynapseNotebookActivityTypeProperties + } + if sna.LinkedServiceName != nil { + objectMap["linkedServiceName"] = sna.LinkedServiceName + } + if sna.Policy != nil { + objectMap["policy"] = sna.Policy + } + if sna.Name != nil { + objectMap["name"] = sna.Name + } + if sna.Description != nil { + objectMap["description"] = sna.Description + } + if sna.State != "" { + objectMap["state"] = sna.State + } + if sna.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = sna.OnInactiveMarkAs + } + if sna.DependsOn != nil { + objectMap["dependsOn"] = sna.DependsOn + } + if sna.UserProperties != nil { + objectMap["userProperties"] = sna.UserProperties + } + if sna.Type != "" { + objectMap["type"] = sna.Type + } + for k, v := range sna.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return &sna, true +} + +// AsScriptActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &sna, true +} + +// AsWebHookActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for SynapseNotebookActivity. +func (sna SynapseNotebookActivity) AsBasicActivity() (BasicActivity, bool) { + return &sna, true +} + +// UnmarshalJSON is the custom unmarshaler for SynapseNotebookActivity struct. +func (sna *SynapseNotebookActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var synapseNotebookActivityTypeProperties SynapseNotebookActivityTypeProperties + err = json.Unmarshal(*v, &synapseNotebookActivityTypeProperties) + if err != nil { + return err + } + sna.SynapseNotebookActivityTypeProperties = &synapseNotebookActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + sna.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + sna.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if sna.AdditionalProperties == nil { + sna.AdditionalProperties = make(map[string]interface{}) + } + sna.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + sna.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + sna.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + sna.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + sna.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + sna.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + sna.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + sna.Type = typeVar + } + } + } + + return nil +} + +// SynapseNotebookActivityTypeProperties execute Synapse notebook activity properties. +type SynapseNotebookActivityTypeProperties struct { + // Notebook - Synapse notebook reference. + Notebook *SynapseNotebookReference `json:"notebook,omitempty"` + // SparkPool - The name of the big data pool which will be used to execute the notebook. + SparkPool *BigDataPoolParametrizationReference `json:"sparkPool,omitempty"` + // Parameters - Notebook parameters. + Parameters map[string]*NotebookParameter `json:"parameters"` + // ExecutorSize - 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"` + // Conf - Spark configuration properties, which will override the 'conf' of the notebook you provide. + Conf interface{} `json:"conf,omitempty"` + // DriverSize - 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"` + // NumExecutors - 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 interface{} `json:"numExecutors,omitempty"` + // ConfigurationType - The type of the spark config. Possible values include: 'ConfigurationTypeDefault', 'ConfigurationTypeCustomized', 'ConfigurationTypeArtifact' + ConfigurationType ConfigurationType `json:"configurationType,omitempty"` + // TargetSparkConfiguration - The spark configuration of the spark job. + TargetSparkConfiguration *SparkConfigurationParametrizationReference `json:"targetSparkConfiguration,omitempty"` + // SparkConfig - Spark configuration property. + SparkConfig map[string]interface{} `json:"sparkConfig"` +} + +// MarshalJSON is the custom marshaler for SynapseNotebookActivityTypeProperties. +func (snatp SynapseNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if snatp.Notebook != nil { + objectMap["notebook"] = snatp.Notebook + } + if snatp.SparkPool != nil { + objectMap["sparkPool"] = snatp.SparkPool + } + if snatp.Parameters != nil { + objectMap["parameters"] = snatp.Parameters + } + if snatp.ExecutorSize != nil { + objectMap["executorSize"] = snatp.ExecutorSize + } + if snatp.Conf != nil { + objectMap["conf"] = snatp.Conf + } + if snatp.DriverSize != nil { + objectMap["driverSize"] = snatp.DriverSize + } + if snatp.NumExecutors != nil { + objectMap["numExecutors"] = snatp.NumExecutors + } + if snatp.ConfigurationType != "" { + objectMap["configurationType"] = snatp.ConfigurationType + } + if snatp.TargetSparkConfiguration != nil { + objectMap["targetSparkConfiguration"] = snatp.TargetSparkConfiguration + } + if snatp.SparkConfig != nil { + objectMap["sparkConfig"] = snatp.SparkConfig + } + return json.Marshal(objectMap) +} + +// SynapseNotebookReference synapse notebook reference type. +type SynapseNotebookReference struct { + // Type - Synapse notebook reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference notebook name. Type: string (or Expression with resultType string). + ReferenceName interface{} `json:"referenceName,omitempty"` +} + +// SynapseSparkJobActivityTypeProperties execute spark job activity properties. +type SynapseSparkJobActivityTypeProperties struct { + // SparkJob - Synapse spark job reference. + SparkJob *SynapseSparkJobReference `json:"sparkJob,omitempty"` + // Arguments - User specified arguments to SynapseSparkJobDefinitionActivity. + Arguments *[]interface{} `json:"args,omitempty"` + // File - 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"` + // ScanFolder - 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 interface{} `json:"scanFolder,omitempty"` + // ClassName - 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"` + // Files - (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 *[]interface{} `json:"files,omitempty"` + // PythonCodeReference - 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 *[]interface{} `json:"pythonCodeReference,omitempty"` + // FilesV2 - 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 *[]interface{} `json:"filesV2,omitempty"` + // TargetBigDataPool - 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"` + // ExecutorSize - 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"` + // Conf - Spark configuration properties, which will override the 'conf' of the spark job definition you provide. + Conf interface{} `json:"conf,omitempty"` + // DriverSize - 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"` + // NumExecutors - Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. Type: integer (or Expression with resultType integer). + NumExecutors interface{} `json:"numExecutors,omitempty"` + // ConfigurationType - The type of the spark config. Possible values include: 'ConfigurationTypeDefault', 'ConfigurationTypeCustomized', 'ConfigurationTypeArtifact' + ConfigurationType ConfigurationType `json:"configurationType,omitempty"` + // TargetSparkConfiguration - The spark configuration of the spark job. + TargetSparkConfiguration *SparkConfigurationParametrizationReference `json:"targetSparkConfiguration,omitempty"` + // SparkConfig - Spark configuration property. + SparkConfig map[string]interface{} `json:"sparkConfig"` +} + +// MarshalJSON is the custom marshaler for SynapseSparkJobActivityTypeProperties. +func (ssjatp SynapseSparkJobActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if ssjatp.SparkJob != nil { + objectMap["sparkJob"] = ssjatp.SparkJob + } + if ssjatp.Arguments != nil { + objectMap["args"] = ssjatp.Arguments + } + if ssjatp.File != nil { + objectMap["file"] = ssjatp.File + } + if ssjatp.ScanFolder != nil { + objectMap["scanFolder"] = ssjatp.ScanFolder + } + if ssjatp.ClassName != nil { + objectMap["className"] = ssjatp.ClassName + } + if ssjatp.Files != nil { + objectMap["files"] = ssjatp.Files + } + if ssjatp.PythonCodeReference != nil { + objectMap["pythonCodeReference"] = ssjatp.PythonCodeReference + } + if ssjatp.FilesV2 != nil { + objectMap["filesV2"] = ssjatp.FilesV2 + } + if ssjatp.TargetBigDataPool != nil { + objectMap["targetBigDataPool"] = ssjatp.TargetBigDataPool + } + if ssjatp.ExecutorSize != nil { + objectMap["executorSize"] = ssjatp.ExecutorSize + } + if ssjatp.Conf != nil { + objectMap["conf"] = ssjatp.Conf + } + if ssjatp.DriverSize != nil { + objectMap["driverSize"] = ssjatp.DriverSize + } + if ssjatp.NumExecutors != nil { + objectMap["numExecutors"] = ssjatp.NumExecutors + } + if ssjatp.ConfigurationType != "" { + objectMap["configurationType"] = ssjatp.ConfigurationType + } + if ssjatp.TargetSparkConfiguration != nil { + objectMap["targetSparkConfiguration"] = ssjatp.TargetSparkConfiguration + } + if ssjatp.SparkConfig != nil { + objectMap["sparkConfig"] = ssjatp.SparkConfig + } + return json.Marshal(objectMap) +} + +// SynapseSparkJobDefinitionActivity execute spark job activity. +type SynapseSparkJobDefinitionActivity struct { + // SynapseSparkJobActivityTypeProperties - Execute spark job activity properties. + *SynapseSparkJobActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) MarshalJSON() ([]byte, error) { + ssjda.Type = TypeBasicActivityTypeSparkJob + objectMap := make(map[string]interface{}) + if ssjda.SynapseSparkJobActivityTypeProperties != nil { + objectMap["typeProperties"] = ssjda.SynapseSparkJobActivityTypeProperties + } + if ssjda.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ssjda.LinkedServiceName + } + if ssjda.Policy != nil { + objectMap["policy"] = ssjda.Policy + } + if ssjda.Name != nil { + objectMap["name"] = ssjda.Name + } + if ssjda.Description != nil { + objectMap["description"] = ssjda.Description + } + if ssjda.State != "" { + objectMap["state"] = ssjda.State + } + if ssjda.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ssjda.OnInactiveMarkAs + } + if ssjda.DependsOn != nil { + objectMap["dependsOn"] = ssjda.DependsOn + } + if ssjda.UserProperties != nil { + objectMap["userProperties"] = ssjda.UserProperties + } + if ssjda.Type != "" { + objectMap["type"] = ssjda.Type + } + for k, v := range ssjda.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return &ssjda, true +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &ssjda, true +} + +// AsWebHookActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. +func (ssjda SynapseSparkJobDefinitionActivity) AsBasicActivity() (BasicActivity, bool) { + return &ssjda, true +} + +// UnmarshalJSON is the custom unmarshaler for SynapseSparkJobDefinitionActivity struct. +func (ssjda *SynapseSparkJobDefinitionActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var synapseSparkJobActivityTypeProperties SynapseSparkJobActivityTypeProperties + err = json.Unmarshal(*v, &synapseSparkJobActivityTypeProperties) + if err != nil { + return err + } + ssjda.SynapseSparkJobActivityTypeProperties = &synapseSparkJobActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ssjda.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + ssjda.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ssjda.AdditionalProperties == nil { + ssjda.AdditionalProperties = make(map[string]interface{}) + } + ssjda.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ssjda.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ssjda.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ssjda.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ssjda.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ssjda.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ssjda.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ssjda.Type = typeVar + } + } + } + + return nil +} + +// SynapseSparkJobReference synapse spark job reference type. +type SynapseSparkJobReference struct { + // Type - Synapse spark job reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference spark job name. Expression with resultType string. + ReferenceName interface{} `json:"referenceName,omitempty"` +} + +// BasicTabularSource copy activity sources of tabular type. +type BasicTabularSource interface { + AsServiceNowV2Source() (*ServiceNowV2Source, bool) + AsSalesforceV2Source() (*SalesforceV2Source, bool) + AsWarehouseSource() (*WarehouseSource, bool) + AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) + AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) + AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) + AsDynamicsAXSource() (*DynamicsAXSource, bool) + AsResponsysSource() (*ResponsysSource, bool) + AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) + AsVerticaSource() (*VerticaSource, bool) + AsNetezzaSource() (*NetezzaSource, bool) + AsZohoSource() (*ZohoSource, bool) + AsXeroSource() (*XeroSource, bool) + AsSquareSource() (*SquareSource, bool) + AsSparkSource() (*SparkSource, bool) + AsShopifySource() (*ShopifySource, bool) + AsServiceNowSource() (*ServiceNowSource, bool) + AsQuickBooksSource() (*QuickBooksSource, bool) + AsPrestoSource() (*PrestoSource, bool) + AsPhoenixSource() (*PhoenixSource, bool) + AsPaypalSource() (*PaypalSource, bool) + AsMarketoSource() (*MarketoSource, bool) + AsAzureMariaDBSource() (*AzureMariaDBSource, bool) + AsMariaDBSource() (*MariaDBSource, bool) + AsMagentoSource() (*MagentoSource, bool) + AsJiraSource() (*JiraSource, bool) + AsImpalaSource() (*ImpalaSource, bool) + AsHubspotSource() (*HubspotSource, bool) + AsHiveSource() (*HiveSource, bool) + AsHBaseSource() (*HBaseSource, bool) + AsGreenplumSource() (*GreenplumSource, bool) + AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) + AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) + AsEloquaSource() (*EloquaSource, bool) + AsDrillSource() (*DrillSource, bool) + AsCouchbaseSource() (*CouchbaseSource, bool) + AsConcurSource() (*ConcurSource, bool) + AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) + AsAmazonMWSSource() (*AmazonMWSSource, bool) + AsCassandraSource() (*CassandraSource, bool) + AsTeradataSource() (*TeradataSource, bool) + AsAzureMySQLSource() (*AzureMySQLSource, bool) + AsSQLDWSource() (*SQLDWSource, bool) + AsSQLMISource() (*SQLMISource, bool) + AsAzureSQLSource() (*AzureSQLSource, bool) + AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) + AsSQLServerSource() (*SQLServerSource, bool) + AsSQLSource() (*SQLSource, bool) + AsSapTableSource() (*SapTableSource, bool) + AsSapOdpSource() (*SapOdpSource, bool) + AsSapOpenHubSource() (*SapOpenHubSource, bool) + AsSapHanaSource() (*SapHanaSource, bool) + AsSapEccSource() (*SapEccSource, bool) + AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) + AsSalesforceSource() (*SalesforceSource, bool) + AsSapBwSource() (*SapBwSource, bool) + AsSybaseSource() (*SybaseSource, bool) + AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) + AsPostgreSQLSource() (*PostgreSQLSource, bool) + AsMySQLSource() (*MySQLSource, bool) + AsOdbcSource() (*OdbcSource, bool) + AsDb2Source() (*Db2Source, bool) + AsInformixSource() (*InformixSource, bool) + AsAzureTableSource() (*AzureTableSource, bool) + AsTabularSource() (*TabularSource, bool) +} + +// TabularSource copy activity sources of tabular type. +type TabularSource struct { + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +func unmarshalBasicTabularSource(body []byte) (BasicTabularSource, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicCopySourceTypeServiceNowV2Source): + var snvs ServiceNowV2Source + err := json.Unmarshal(body, &snvs) + return snvs, err + case string(TypeBasicCopySourceTypeSalesforceV2Source): + var svs SalesforceV2Source + err := json.Unmarshal(body, &svs) + return svs, err + case string(TypeBasicCopySourceTypeWarehouseSource): + var ws WarehouseSource + err := json.Unmarshal(body, &ws) + return ws, err + case string(TypeBasicCopySourceTypeAmazonRedshiftSource): + var ars AmazonRedshiftSource + err := json.Unmarshal(body, &ars) + return ars, err + case string(TypeBasicCopySourceTypeGoogleAdWordsSource): + var gaws GoogleAdWordsSource + err := json.Unmarshal(body, &gaws) + return gaws, err + case string(TypeBasicCopySourceTypeOracleServiceCloudSource): + var oscs OracleServiceCloudSource + err := json.Unmarshal(body, &oscs) + return oscs, err + case string(TypeBasicCopySourceTypeDynamicsAXSource): + var das DynamicsAXSource + err := json.Unmarshal(body, &das) + return das, err + case string(TypeBasicCopySourceTypeResponsysSource): + var rs ResponsysSource + err := json.Unmarshal(body, &rs) + return rs, err + case string(TypeBasicCopySourceTypeSalesforceMarketingCloudSource): + var smcs SalesforceMarketingCloudSource + err := json.Unmarshal(body, &smcs) + return smcs, err + case string(TypeBasicCopySourceTypeVerticaSource): + var vs VerticaSource + err := json.Unmarshal(body, &vs) + return vs, err + case string(TypeBasicCopySourceTypeNetezzaSource): + var ns NetezzaSource + err := json.Unmarshal(body, &ns) + return ns, err + case string(TypeBasicCopySourceTypeZohoSource): + var zs ZohoSource + err := json.Unmarshal(body, &zs) + return zs, err + case string(TypeBasicCopySourceTypeXeroSource): + var xs XeroSource + err := json.Unmarshal(body, &xs) + return xs, err + case string(TypeBasicCopySourceTypeSquareSource): + var ss SquareSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeSparkSource): + var ss SparkSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeShopifySource): + var ss ShopifySource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeServiceNowSource): + var sns ServiceNowSource + err := json.Unmarshal(body, &sns) + return sns, err + case string(TypeBasicCopySourceTypeQuickBooksSource): + var qbs QuickBooksSource + err := json.Unmarshal(body, &qbs) + return qbs, err + case string(TypeBasicCopySourceTypePrestoSource): + var ps PrestoSource + err := json.Unmarshal(body, &ps) + return ps, err + case string(TypeBasicCopySourceTypePhoenixSource): + var ps PhoenixSource + err := json.Unmarshal(body, &ps) + return ps, err + case string(TypeBasicCopySourceTypePaypalSource): + var ps PaypalSource + err := json.Unmarshal(body, &ps) + return ps, err + case string(TypeBasicCopySourceTypeMarketoSource): + var ms MarketoSource + err := json.Unmarshal(body, &ms) + return ms, err + case string(TypeBasicCopySourceTypeAzureMariaDBSource): + var amds AzureMariaDBSource + err := json.Unmarshal(body, &amds) + return amds, err + case string(TypeBasicCopySourceTypeMariaDBSource): + var mds MariaDBSource + err := json.Unmarshal(body, &mds) + return mds, err + case string(TypeBasicCopySourceTypeMagentoSource): + var ms MagentoSource + err := json.Unmarshal(body, &ms) + return ms, err + case string(TypeBasicCopySourceTypeJiraSource): + var js JiraSource + err := json.Unmarshal(body, &js) + return js, err + case string(TypeBasicCopySourceTypeImpalaSource): + var is ImpalaSource + err := json.Unmarshal(body, &is) + return is, err + case string(TypeBasicCopySourceTypeHubspotSource): + var hs HubspotSource + err := json.Unmarshal(body, &hs) + return hs, err + case string(TypeBasicCopySourceTypeHiveSource): + var hs HiveSource + err := json.Unmarshal(body, &hs) + return hs, err + case string(TypeBasicCopySourceTypeHBaseSource): + var hbs HBaseSource + err := json.Unmarshal(body, &hbs) + return hbs, err + case string(TypeBasicCopySourceTypeGreenplumSource): + var gs GreenplumSource + err := json.Unmarshal(body, &gs) + return gs, err + case string(TypeBasicCopySourceTypeGoogleBigQueryV2Source): + var gbqvs GoogleBigQueryV2Source + err := json.Unmarshal(body, &gbqvs) + return gbqvs, err + case string(TypeBasicCopySourceTypeGoogleBigQuerySource): + var gbqs GoogleBigQuerySource + err := json.Unmarshal(body, &gbqs) + return gbqs, err + case string(TypeBasicCopySourceTypeEloquaSource): + var es EloquaSource + err := json.Unmarshal(body, &es) + return es, err + case string(TypeBasicCopySourceTypeDrillSource): + var ds DrillSource + err := json.Unmarshal(body, &ds) + return ds, err + case string(TypeBasicCopySourceTypeCouchbaseSource): + var cs CouchbaseSource + err := json.Unmarshal(body, &cs) + return cs, err + case string(TypeBasicCopySourceTypeConcurSource): + var cs ConcurSource + err := json.Unmarshal(body, &cs) + return cs, err + case string(TypeBasicCopySourceTypeAzurePostgreSQLSource): + var apss AzurePostgreSQLSource + err := json.Unmarshal(body, &apss) + return apss, err + case string(TypeBasicCopySourceTypeAmazonMWSSource): + var ams AmazonMWSSource + err := json.Unmarshal(body, &ams) + return ams, err + case string(TypeBasicCopySourceTypeCassandraSource): + var cs CassandraSource + err := json.Unmarshal(body, &cs) + return cs, err + case string(TypeBasicCopySourceTypeTeradataSource): + var ts TeradataSource + err := json.Unmarshal(body, &ts) + return ts, err + case string(TypeBasicCopySourceTypeAzureMySQLSource): + var amss AzureMySQLSource + err := json.Unmarshal(body, &amss) + return amss, err + case string(TypeBasicCopySourceTypeSQLDWSource): + var sds SQLDWSource + err := json.Unmarshal(body, &sds) + return sds, err + case string(TypeBasicCopySourceTypeSQLMISource): + var sms SQLMISource + err := json.Unmarshal(body, &sms) + return sms, err + case string(TypeBasicCopySourceTypeAzureSQLSource): + var ass AzureSQLSource + err := json.Unmarshal(body, &ass) + return ass, err + case string(TypeBasicCopySourceTypeAmazonRdsForSQLServerSource): + var arfsss AmazonRdsForSQLServerSource + err := json.Unmarshal(body, &arfsss) + return arfsss, err + case string(TypeBasicCopySourceTypeSQLServerSource): + var sss SQLServerSource + err := json.Unmarshal(body, &sss) + return sss, err + case string(TypeBasicCopySourceTypeSQLSource): + var ss SQLSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeSapTableSource): + var sts SapTableSource + err := json.Unmarshal(body, &sts) + return sts, err + case string(TypeBasicCopySourceTypeSapOdpSource): + var sos SapOdpSource + err := json.Unmarshal(body, &sos) + return sos, err + case string(TypeBasicCopySourceTypeSapOpenHubSource): + var sohs SapOpenHubSource + err := json.Unmarshal(body, &sohs) + return sohs, err + case string(TypeBasicCopySourceTypeSapHanaSource): + var shs SapHanaSource + err := json.Unmarshal(body, &shs) + return shs, err + case string(TypeBasicCopySourceTypeSapEccSource): + var ses SapEccSource + err := json.Unmarshal(body, &ses) + return ses, err + case string(TypeBasicCopySourceTypeSapCloudForCustomerSource): + var scfcs SapCloudForCustomerSource + err := json.Unmarshal(body, &scfcs) + return scfcs, err + case string(TypeBasicCopySourceTypeSalesforceSource): + var ss SalesforceSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypeSapBwSource): + var sbs SapBwSource + err := json.Unmarshal(body, &sbs) + return sbs, err + case string(TypeBasicCopySourceTypeSybaseSource): + var ss SybaseSource + err := json.Unmarshal(body, &ss) + return ss, err + case string(TypeBasicCopySourceTypePostgreSQLV2Source): + var psvs PostgreSQLV2Source + err := json.Unmarshal(body, &psvs) + return psvs, err + case string(TypeBasicCopySourceTypePostgreSQLSource): + var pss PostgreSQLSource + err := json.Unmarshal(body, &pss) + return pss, err + case string(TypeBasicCopySourceTypeMySQLSource): + var mss MySQLSource + err := json.Unmarshal(body, &mss) + return mss, err + case string(TypeBasicCopySourceTypeOdbcSource): + var osVar OdbcSource + err := json.Unmarshal(body, &osVar) + return osVar, err + case string(TypeBasicCopySourceTypeDb2Source): + var d2s Db2Source + err := json.Unmarshal(body, &d2s) + return d2s, err + case string(TypeBasicCopySourceTypeInformixSource): + var is InformixSource + err := json.Unmarshal(body, &is) + return is, err + case string(TypeBasicCopySourceTypeAzureTableSource): + var ats AzureTableSource + err := json.Unmarshal(body, &ats) + return ats, err + default: + var ts TabularSource + err := json.Unmarshal(body, &ts) + return ts, err + } +} +func unmarshalBasicTabularSourceArray(body []byte) ([]BasicTabularSource, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + tsArray := make([]BasicTabularSource, len(rawMessages)) + + for index, rawMessage := range rawMessages { + ts, err := unmarshalBasicTabularSource(*rawMessage) + if err != nil { + return nil, err + } + tsArray[index] = ts + } + return tsArray, nil +} + +// MarshalJSON is the custom marshaler for TabularSource. +func (ts TabularSource) MarshalJSON() ([]byte, error) { + ts.Type = TypeBasicCopySourceTypeTabularSource + objectMap := make(map[string]interface{}) + if ts.QueryTimeout != nil { + objectMap["queryTimeout"] = ts.QueryTimeout + } + if ts.AdditionalColumns != nil { + objectMap["additionalColumns"] = ts.AdditionalColumns + } + if ts.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ts.SourceRetryCount + } + if ts.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ts.SourceRetryWait + } + if ts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ts.MaxConcurrentConnections + } + if ts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ts.DisableMetricsCollection + } + if ts.Type != "" { + objectMap["type"] = ts.Type + } + for k, v := range ts.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsTabularSource() (*TabularSource, bool) { + return &ts, true +} + +// AsBasicTabularSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ts, true +} + +// AsBinarySource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for TabularSource. +func (ts TabularSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ts, true +} + +// UnmarshalJSON is the custom unmarshaler for TabularSource struct. +func (ts *TabularSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ts.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ts.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ts.AdditionalProperties == nil { + ts.AdditionalProperties = make(map[string]interface{}) + } + ts.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ts.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ts.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ts.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ts.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ts.Type = typeVar + } + } + } + + return nil +} + +// TabularTranslator a copy activity tabular translator. +type TabularTranslator struct { + // ColumnMappings - 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"` + // SchemaMapping - 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"` + // CollectionReference - 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"` + // MapComplexValuesToString - 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"` + // Mappings - 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"` + // TypeConversion - Whether to enable the advanced type conversion feature in the Copy activity. Type: boolean (or Expression with resultType boolean). + TypeConversion interface{} `json:"typeConversion,omitempty"` + // TypeConversionSettings - Type conversion settings + TypeConversionSettings *TypeConversionSettings `json:"typeConversionSettings,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicCopyTranslatorTypeCopyTranslator', 'TypeBasicCopyTranslatorTypeTabularTranslator' + Type TypeBasicCopyTranslator `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TabularTranslator. +func (tt TabularTranslator) MarshalJSON() ([]byte, error) { + tt.Type = TypeBasicCopyTranslatorTypeTabularTranslator + objectMap := make(map[string]interface{}) + if tt.ColumnMappings != nil { + objectMap["columnMappings"] = tt.ColumnMappings + } + if tt.SchemaMapping != nil { + objectMap["schemaMapping"] = tt.SchemaMapping + } + if tt.CollectionReference != nil { + objectMap["collectionReference"] = tt.CollectionReference + } + if tt.MapComplexValuesToString != nil { + objectMap["mapComplexValuesToString"] = tt.MapComplexValuesToString + } + if tt.Mappings != nil { + objectMap["mappings"] = tt.Mappings + } + if tt.TypeConversion != nil { + objectMap["typeConversion"] = tt.TypeConversion + } + if tt.TypeConversionSettings != nil { + objectMap["typeConversionSettings"] = tt.TypeConversionSettings + } + if tt.Type != "" { + objectMap["type"] = tt.Type + } + for k, v := range tt.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsTabularTranslator is the BasicCopyTranslator implementation for TabularTranslator. +func (tt TabularTranslator) AsTabularTranslator() (*TabularTranslator, bool) { + return &tt, true +} + +// AsCopyTranslator is the BasicCopyTranslator implementation for TabularTranslator. +func (tt TabularTranslator) AsCopyTranslator() (*CopyTranslator, bool) { + return nil, false +} + +// AsBasicCopyTranslator is the BasicCopyTranslator implementation for TabularTranslator. +func (tt TabularTranslator) AsBasicCopyTranslator() (BasicCopyTranslator, bool) { + return &tt, true +} + +// UnmarshalJSON is the custom unmarshaler for TabularTranslator struct. +func (tt *TabularTranslator) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "columnMappings": + if v != nil { + var columnMappings interface{} + err = json.Unmarshal(*v, &columnMappings) + if err != nil { + return err + } + tt.ColumnMappings = columnMappings + } + case "schemaMapping": + if v != nil { + var schemaMapping interface{} + err = json.Unmarshal(*v, &schemaMapping) + if err != nil { + return err + } + tt.SchemaMapping = schemaMapping + } + case "collectionReference": + if v != nil { + var collectionReference interface{} + err = json.Unmarshal(*v, &collectionReference) + if err != nil { + return err + } + tt.CollectionReference = collectionReference + } + case "mapComplexValuesToString": + if v != nil { + var mapComplexValuesToString interface{} + err = json.Unmarshal(*v, &mapComplexValuesToString) + if err != nil { + return err + } + tt.MapComplexValuesToString = mapComplexValuesToString + } + case "mappings": + if v != nil { + var mappings interface{} + err = json.Unmarshal(*v, &mappings) + if err != nil { + return err + } + tt.Mappings = mappings + } + case "typeConversion": + if v != nil { + var typeConversion interface{} + err = json.Unmarshal(*v, &typeConversion) + if err != nil { + return err + } + tt.TypeConversion = typeConversion + } + case "typeConversionSettings": + if v != nil { + var typeConversionSettings TypeConversionSettings + err = json.Unmarshal(*v, &typeConversionSettings) + if err != nil { + return err + } + tt.TypeConversionSettings = &typeConversionSettings + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if tt.AdditionalProperties == nil { + tt.AdditionalProperties = make(map[string]interface{}) + } + tt.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCopyTranslator + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + tt.Type = typeVar + } + } + } + + return nil +} + +// TarGZipReadSettings the TarGZip compression read settings. +type TarGZipReadSettings struct { + // PreserveCompressionFileNameAsFolder - Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). + PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicCompressionReadSettingsTypeCompressionReadSettings', 'TypeBasicCompressionReadSettingsTypeTarGZipReadSettings', 'TypeBasicCompressionReadSettingsTypeTarReadSettings', 'TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings' + Type TypeBasicCompressionReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TarGZipReadSettings. +func (tgzrs TarGZipReadSettings) MarshalJSON() ([]byte, error) { + tgzrs.Type = TypeBasicCompressionReadSettingsTypeTarGZipReadSettings + objectMap := make(map[string]interface{}) + if tgzrs.PreserveCompressionFileNameAsFolder != nil { + objectMap["preserveCompressionFileNameAsFolder"] = tgzrs.PreserveCompressionFileNameAsFolder + } + if tgzrs.Type != "" { + objectMap["type"] = tgzrs.Type + } + for k, v := range tgzrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsTarGZipReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. +func (tgzrs TarGZipReadSettings) AsTarGZipReadSettings() (*TarGZipReadSettings, bool) { + return &tgzrs, true +} + +// AsTarReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. +func (tgzrs TarGZipReadSettings) AsTarReadSettings() (*TarReadSettings, bool) { + return nil, false +} + +// AsZipDeflateReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. +func (tgzrs TarGZipReadSettings) AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) { + return nil, false +} + +// AsCompressionReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. +func (tgzrs TarGZipReadSettings) AsCompressionReadSettings() (*CompressionReadSettings, bool) { + return nil, false +} + +// AsBasicCompressionReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. +func (tgzrs TarGZipReadSettings) AsBasicCompressionReadSettings() (BasicCompressionReadSettings, bool) { + return &tgzrs, true +} + +// UnmarshalJSON is the custom unmarshaler for TarGZipReadSettings struct. +func (tgzrs *TarGZipReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preserveCompressionFileNameAsFolder": + if v != nil { + var preserveCompressionFileNameAsFolder interface{} + err = json.Unmarshal(*v, &preserveCompressionFileNameAsFolder) + if err != nil { + return err + } + tgzrs.PreserveCompressionFileNameAsFolder = preserveCompressionFileNameAsFolder + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if tgzrs.AdditionalProperties == nil { + tgzrs.AdditionalProperties = make(map[string]interface{}) + } + tgzrs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCompressionReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + tgzrs.Type = typeVar + } + } + } + + return nil +} + +// TarReadSettings the Tar compression read settings. +type TarReadSettings struct { + // PreserveCompressionFileNameAsFolder - Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). + PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicCompressionReadSettingsTypeCompressionReadSettings', 'TypeBasicCompressionReadSettingsTypeTarGZipReadSettings', 'TypeBasicCompressionReadSettingsTypeTarReadSettings', 'TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings' + Type TypeBasicCompressionReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TarReadSettings. +func (trs TarReadSettings) MarshalJSON() ([]byte, error) { + trs.Type = TypeBasicCompressionReadSettingsTypeTarReadSettings + objectMap := make(map[string]interface{}) + if trs.PreserveCompressionFileNameAsFolder != nil { + objectMap["preserveCompressionFileNameAsFolder"] = trs.PreserveCompressionFileNameAsFolder + } + if trs.Type != "" { + objectMap["type"] = trs.Type + } + for k, v := range trs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsTarGZipReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. +func (trs TarReadSettings) AsTarGZipReadSettings() (*TarGZipReadSettings, bool) { + return nil, false +} + +// AsTarReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. +func (trs TarReadSettings) AsTarReadSettings() (*TarReadSettings, bool) { + return &trs, true +} + +// AsZipDeflateReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. +func (trs TarReadSettings) AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) { + return nil, false +} + +// AsCompressionReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. +func (trs TarReadSettings) AsCompressionReadSettings() (*CompressionReadSettings, bool) { + return nil, false +} + +// AsBasicCompressionReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. +func (trs TarReadSettings) AsBasicCompressionReadSettings() (BasicCompressionReadSettings, bool) { + return &trs, true +} + +// UnmarshalJSON is the custom unmarshaler for TarReadSettings struct. +func (trs *TarReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preserveCompressionFileNameAsFolder": + if v != nil { + var preserveCompressionFileNameAsFolder interface{} + err = json.Unmarshal(*v, &preserveCompressionFileNameAsFolder) + if err != nil { + return err + } + trs.PreserveCompressionFileNameAsFolder = preserveCompressionFileNameAsFolder + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if trs.AdditionalProperties == nil { + trs.AdditionalProperties = make(map[string]interface{}) + } + trs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCompressionReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + trs.Type = typeVar + } + } + } + + return nil +} + +// TeamDeskLinkedService linked service for TeamDesk. +type TeamDeskLinkedService struct { + // TeamDeskLinkedServiceTypeProperties - TeamDesk linked service properties. + *TeamDeskLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) MarshalJSON() ([]byte, error) { + tdls.Type = TypeBasicLinkedServiceTypeTeamDesk + objectMap := make(map[string]interface{}) + if tdls.TeamDeskLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = tdls.TeamDeskLinkedServiceTypeProperties + } + if tdls.ConnectVia != nil { + objectMap["connectVia"] = tdls.ConnectVia + } + if tdls.Description != nil { + objectMap["description"] = tdls.Description + } + if tdls.Parameters != nil { + objectMap["parameters"] = tdls.Parameters + } + if tdls.Annotations != nil { + objectMap["annotations"] = tdls.Annotations + } + if tdls.Type != "" { + objectMap["type"] = tdls.Type + } + for k, v := range tdls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return &tdls, true +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. +func (tdls TeamDeskLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &tdls, true +} + +// UnmarshalJSON is the custom unmarshaler for TeamDeskLinkedService struct. +func (tdls *TeamDeskLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var teamDeskLinkedServiceTypeProperties TeamDeskLinkedServiceTypeProperties + err = json.Unmarshal(*v, &teamDeskLinkedServiceTypeProperties) + if err != nil { + return err + } + tdls.TeamDeskLinkedServiceTypeProperties = &teamDeskLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if tdls.AdditionalProperties == nil { + tdls.AdditionalProperties = make(map[string]interface{}) + } + tdls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + tdls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + tdls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + tdls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + tdls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + tdls.Type = typeVar + } + } + } + + return nil +} + +// TeamDeskLinkedServiceTypeProperties teamDesk linked service type properties. +type TeamDeskLinkedServiceTypeProperties struct { + // AuthenticationType - The authentication type to use. Possible values include: 'TeamDeskAuthenticationTypeBasic', 'TeamDeskAuthenticationTypeToken' + AuthenticationType TeamDeskAuthenticationType `json:"authenticationType,omitempty"` + // URL - The url to connect TeamDesk source. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // UserName - The username of the TeamDesk source. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - The password of the TeamDesk source. + Password BasicSecretBase `json:"password,omitempty"` + // APIToken - The api token for the TeamDesk source. + APIToken BasicSecretBase `json:"apiToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for TeamDeskLinkedServiceTypeProperties struct. +func (tdlstp *TeamDeskLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "authenticationType": + if v != nil { + var authenticationType TeamDeskAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + tdlstp.AuthenticationType = authenticationType + } + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + tdlstp.URL = URL + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + tdlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + tdlstp.Password = password + } + case "apiToken": + if v != nil { + APIToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + tdlstp.APIToken = APIToken + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + tdlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// TeradataLinkedService linked service for Teradata data source. +type TeradataLinkedService struct { + // TeradataLinkedServiceTypeProperties - Teradata linked service properties. + *TeradataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TeradataLinkedService. +func (TLSVar TeradataLinkedService) MarshalJSON() ([]byte, error) { + TLSVar.Type = TypeBasicLinkedServiceTypeTeradata + objectMap := make(map[string]interface{}) + if TLSVar.TeradataLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = TLSVar.TeradataLinkedServiceTypeProperties + } + if TLSVar.ConnectVia != nil { + objectMap["connectVia"] = TLSVar.ConnectVia + } + if TLSVar.Description != nil { + objectMap["description"] = TLSVar.Description + } + if TLSVar.Parameters != nil { + objectMap["parameters"] = TLSVar.Parameters + } + if TLSVar.Annotations != nil { + objectMap["annotations"] = TLSVar.Annotations + } + if TLSVar.Type != "" { + objectMap["type"] = TLSVar.Type + } + for k, v := range TLSVar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return &TLSVar, true +} + +// AsDb2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for TeradataLinkedService. +func (TLSVar TeradataLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &TLSVar, true +} + +// UnmarshalJSON is the custom unmarshaler for TeradataLinkedService struct. +func (TLSVar *TeradataLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var teradataLinkedServiceTypeProperties TeradataLinkedServiceTypeProperties + err = json.Unmarshal(*v, &teradataLinkedServiceTypeProperties) + if err != nil { + return err + } + TLSVar.TeradataLinkedServiceTypeProperties = &teradataLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if TLSVar.AdditionalProperties == nil { + TLSVar.AdditionalProperties = make(map[string]interface{}) + } + TLSVar.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + TLSVar.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + TLSVar.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + TLSVar.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + TLSVar.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + TLSVar.Type = typeVar + } + } + } + + return nil +} + +// TeradataLinkedServiceTypeProperties teradata linked service properties. +type TeradataLinkedServiceTypeProperties struct { + // ConnectionString - Teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Server - Server name for connection. Type: string (or Expression with resultType string). + Server interface{} `json:"server,omitempty"` + // AuthenticationType - AuthenticationType to be used for connection. Possible values include: 'TeradataAuthenticationTypeBasic', 'TeradataAuthenticationTypeWindows' + AuthenticationType TeradataAuthenticationType `json:"authenticationType,omitempty"` + // Username - Username for authentication. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - Password for authentication. + Password BasicSecretBase `json:"password,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for TeradataLinkedServiceTypeProperties struct. +func (tlstp *TeradataLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionString": + if v != nil { + var connectionString interface{} + err = json.Unmarshal(*v, &connectionString) + if err != nil { + return err + } + tlstp.ConnectionString = connectionString + } + case "server": + if v != nil { + var server interface{} + err = json.Unmarshal(*v, &server) + if err != nil { + return err + } + tlstp.Server = server + } + case "authenticationType": + if v != nil { + var authenticationType TeradataAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + tlstp.AuthenticationType = authenticationType + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + tlstp.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + tlstp.Password = password + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + tlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// TeradataPartitionSettings the settings that will be leveraged for teradata source partitioning. +type TeradataPartitionSettings struct { + // PartitionColumnName - 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"` + // PartitionUpperBound - 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"` + // PartitionLowerBound - 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"` +} + +// TeradataSource a copy activity Teradata source. +type TeradataSource struct { + // Query - Teradata query. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // PartitionOption - The partition mechanism that will be used for teradata read in parallel. Possible values include: "None", "Hash", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for teradata source partitioning. + PartitionSettings *TeradataPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TeradataSource. +func (ts TeradataSource) MarshalJSON() ([]byte, error) { + ts.Type = TypeBasicCopySourceTypeTeradataSource + objectMap := make(map[string]interface{}) + if ts.Query != nil { + objectMap["query"] = ts.Query + } + if ts.PartitionOption != nil { + objectMap["partitionOption"] = ts.PartitionOption + } + if ts.PartitionSettings != nil { + objectMap["partitionSettings"] = ts.PartitionSettings + } + if ts.QueryTimeout != nil { + objectMap["queryTimeout"] = ts.QueryTimeout + } + if ts.AdditionalColumns != nil { + objectMap["additionalColumns"] = ts.AdditionalColumns + } + if ts.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ts.SourceRetryCount + } + if ts.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ts.SourceRetryWait + } + if ts.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ts.MaxConcurrentConnections + } + if ts.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ts.DisableMetricsCollection + } + if ts.Type != "" { + objectMap["type"] = ts.Type + } + for k, v := range ts.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsTeradataSource() (*TeradataSource, bool) { + return &ts, true +} + +// AsAzureMySQLSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ts, true +} + +// AsBinarySource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for TeradataSource. +func (ts TeradataSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ts, true +} + +// UnmarshalJSON is the custom unmarshaler for TeradataSource struct. +func (ts *TeradataSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + ts.Query = query + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + ts.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings TeradataPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + ts.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ts.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ts.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ts.AdditionalProperties == nil { + ts.AdditionalProperties = make(map[string]interface{}) + } + ts.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ts.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ts.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ts.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ts.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ts.Type = typeVar + } + } + } + + return nil +} + +// TeradataTableDataset the Teradata database dataset. +type TeradataTableDataset struct { + // TeradataTableDatasetTypeProperties - Teradata dataset properties. + *TeradataTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TeradataTableDataset. +func (ttd TeradataTableDataset) MarshalJSON() ([]byte, error) { + ttd.Type = TypeBasicDatasetTypeTeradataTable + objectMap := make(map[string]interface{}) + if ttd.TeradataTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = ttd.TeradataTableDatasetTypeProperties + } + if ttd.Description != nil { + objectMap["description"] = ttd.Description + } + if ttd.Structure != nil { + objectMap["structure"] = ttd.Structure + } + if ttd.Schema != nil { + objectMap["schema"] = ttd.Schema + } + if ttd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = ttd.LinkedServiceName + } + if ttd.Parameters != nil { + objectMap["parameters"] = ttd.Parameters + } + if ttd.Annotations != nil { + objectMap["annotations"] = ttd.Annotations + } + if ttd.Folder != nil { + objectMap["folder"] = ttd.Folder + } + if ttd.Type != "" { + objectMap["type"] = ttd.Type + } + for k, v := range ttd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return &ttd, true +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for TeradataTableDataset. +func (ttd TeradataTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &ttd, true +} + +// UnmarshalJSON is the custom unmarshaler for TeradataTableDataset struct. +func (ttd *TeradataTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var teradataTableDatasetTypeProperties TeradataTableDatasetTypeProperties + err = json.Unmarshal(*v, &teradataTableDatasetTypeProperties) + if err != nil { + return err + } + ttd.TeradataTableDatasetTypeProperties = &teradataTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ttd.AdditionalProperties == nil { + ttd.AdditionalProperties = make(map[string]interface{}) + } + ttd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ttd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + ttd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + ttd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + ttd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + ttd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + ttd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + ttd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ttd.Type = typeVar + } + } + } + + return nil +} + +// TeradataTableDatasetTypeProperties teradata dataset properties. +type TeradataTableDatasetTypeProperties struct { + // Database - The database name of Teradata. Type: string (or Expression with resultType string). + Database interface{} `json:"database,omitempty"` + // Table - The table name of Teradata. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// TextFormat the data stored in text format. +type TextFormat struct { + // ColumnDelimiter - The column delimiter. Type: string (or Expression with resultType string). + ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` + // RowDelimiter - The row delimiter. Type: string (or Expression with resultType string). + RowDelimiter interface{} `json:"rowDelimiter,omitempty"` + // EscapeChar - The escape character. Type: string (or Expression with resultType string). + EscapeChar interface{} `json:"escapeChar,omitempty"` + // QuoteChar - The quote character. Type: string (or Expression with resultType string). + QuoteChar interface{} `json:"quoteChar,omitempty"` + // NullValue - The null value string. Type: string (or Expression with resultType string). + NullValue interface{} `json:"nullValue,omitempty"` + // EncodingName - 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"` + // TreatEmptyAsNull - 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"` + // SkipLineCount - 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"` + // FirstRowAsHeader - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Serializer - Serializer. Type: string (or Expression with resultType string). + Serializer interface{} `json:"serializer,omitempty"` + // Deserializer - Deserializer. Type: string (or Expression with resultType string). + Deserializer interface{} `json:"deserializer,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' + Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TextFormat. +func (tf TextFormat) MarshalJSON() ([]byte, error) { + tf.Type = TypeBasicDatasetStorageFormatTypeTextFormat + objectMap := make(map[string]interface{}) + if tf.ColumnDelimiter != nil { + objectMap["columnDelimiter"] = tf.ColumnDelimiter + } + if tf.RowDelimiter != nil { + objectMap["rowDelimiter"] = tf.RowDelimiter + } + if tf.EscapeChar != nil { + objectMap["escapeChar"] = tf.EscapeChar + } + if tf.QuoteChar != nil { + objectMap["quoteChar"] = tf.QuoteChar + } + if tf.NullValue != nil { + objectMap["nullValue"] = tf.NullValue + } + if tf.EncodingName != nil { + objectMap["encodingName"] = tf.EncodingName + } + if tf.TreatEmptyAsNull != nil { + objectMap["treatEmptyAsNull"] = tf.TreatEmptyAsNull + } + if tf.SkipLineCount != nil { + objectMap["skipLineCount"] = tf.SkipLineCount + } + if tf.FirstRowAsHeader != nil { + objectMap["firstRowAsHeader"] = tf.FirstRowAsHeader + } + if tf.Serializer != nil { + objectMap["serializer"] = tf.Serializer + } + if tf.Deserializer != nil { + objectMap["deserializer"] = tf.Deserializer + } + if tf.Type != "" { + objectMap["type"] = tf.Type + } + for k, v := range tf.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsParquetFormat is the BasicDatasetStorageFormat implementation for TextFormat. +func (tf TextFormat) AsParquetFormat() (*ParquetFormat, bool) { + return nil, false +} + +// AsOrcFormat is the BasicDatasetStorageFormat implementation for TextFormat. +func (tf TextFormat) AsOrcFormat() (*OrcFormat, bool) { + return nil, false +} + +// AsAvroFormat is the BasicDatasetStorageFormat implementation for TextFormat. +func (tf TextFormat) AsAvroFormat() (*AvroFormat, bool) { + return nil, false +} + +// AsJSONFormat is the BasicDatasetStorageFormat implementation for TextFormat. +func (tf TextFormat) AsJSONFormat() (*JSONFormat, bool) { + return nil, false +} + +// AsTextFormat is the BasicDatasetStorageFormat implementation for TextFormat. +func (tf TextFormat) AsTextFormat() (*TextFormat, bool) { + return &tf, true +} + +// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for TextFormat. +func (tf TextFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { + return nil, false +} + +// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for TextFormat. +func (tf TextFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { + return &tf, true +} + +// UnmarshalJSON is the custom unmarshaler for TextFormat struct. +func (tf *TextFormat) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "columnDelimiter": + if v != nil { + var columnDelimiter interface{} + err = json.Unmarshal(*v, &columnDelimiter) + if err != nil { + return err + } + tf.ColumnDelimiter = columnDelimiter + } + case "rowDelimiter": + if v != nil { + var rowDelimiter interface{} + err = json.Unmarshal(*v, &rowDelimiter) + if err != nil { + return err + } + tf.RowDelimiter = rowDelimiter + } + case "escapeChar": + if v != nil { + var escapeChar interface{} + err = json.Unmarshal(*v, &escapeChar) + if err != nil { + return err + } + tf.EscapeChar = escapeChar + } + case "quoteChar": + if v != nil { + var quoteChar interface{} + err = json.Unmarshal(*v, "eChar) + if err != nil { + return err + } + tf.QuoteChar = quoteChar + } + case "nullValue": + if v != nil { + var nullValue interface{} + err = json.Unmarshal(*v, &nullValue) + if err != nil { + return err + } + tf.NullValue = nullValue + } + case "encodingName": + if v != nil { + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) + if err != nil { + return err + } + tf.EncodingName = encodingName + } + case "treatEmptyAsNull": + if v != nil { + var treatEmptyAsNull interface{} + err = json.Unmarshal(*v, &treatEmptyAsNull) + if err != nil { + return err + } + tf.TreatEmptyAsNull = treatEmptyAsNull + } + case "skipLineCount": + if v != nil { + var skipLineCount interface{} + err = json.Unmarshal(*v, &skipLineCount) + if err != nil { + return err + } + tf.SkipLineCount = skipLineCount + } + case "firstRowAsHeader": + if v != nil { + var firstRowAsHeader interface{} + err = json.Unmarshal(*v, &firstRowAsHeader) + if err != nil { + return err + } + tf.FirstRowAsHeader = firstRowAsHeader + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if tf.AdditionalProperties == nil { + tf.AdditionalProperties = make(map[string]interface{}) + } + tf.AdditionalProperties[k] = additionalProperties + } + case "serializer": + if v != nil { + var serializer interface{} + err = json.Unmarshal(*v, &serializer) + if err != nil { + return err + } + tf.Serializer = serializer + } + case "deserializer": + if v != nil { + var deserializer interface{} + err = json.Unmarshal(*v, &deserializer) + if err != nil { + return err + } + tf.Deserializer = deserializer + } + case "type": + if v != nil { + var typeVar TypeBasicDatasetStorageFormat + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + tf.Type = typeVar + } + } + } + + return nil +} + +// Transformation a data flow transformation. +type Transformation struct { + // Name - Transformation name. + Name *string `json:"name,omitempty"` + // Description - Transformation description. + Description *string `json:"description,omitempty"` + // Dataset - Dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` + // LinkedService - Linked service reference. + LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` + // Flowlet - Flowlet Reference + Flowlet *DataFlowReference `json:"flowlet,omitempty"` +} + +// BasicTrigger azure data factory nested object which contains information about creating pipeline run +type BasicTrigger interface { + AsChainingTrigger() (*ChainingTrigger, bool) + AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) + AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) + AsCustomEventsTrigger() (*CustomEventsTrigger, bool) + AsBlobEventsTrigger() (*BlobEventsTrigger, bool) + AsBlobTrigger() (*BlobTrigger, bool) + AsScheduleTrigger() (*ScheduleTrigger, bool) + AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) + AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) + AsTrigger() (*Trigger, bool) +} + +// Trigger azure data factory nested object which contains information about creating pipeline run +type Trigger struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +func unmarshalBasicTrigger(body []byte) (BasicTrigger, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicTriggerTypeChainingTrigger): + var ct ChainingTrigger + err := json.Unmarshal(body, &ct) + return ct, err + case string(TypeBasicTriggerTypeRerunTumblingWindowTrigger): + var rtwt RerunTumblingWindowTrigger + err := json.Unmarshal(body, &rtwt) + return rtwt, err + case string(TypeBasicTriggerTypeTumblingWindowTrigger): + var twt TumblingWindowTrigger + err := json.Unmarshal(body, &twt) + return twt, err + case string(TypeBasicTriggerTypeCustomEventsTrigger): + var cet CustomEventsTrigger + err := json.Unmarshal(body, &cet) + return cet, err + case string(TypeBasicTriggerTypeBlobEventsTrigger): + var bet BlobEventsTrigger + err := json.Unmarshal(body, &bet) + return bet, err + case string(TypeBasicTriggerTypeBlobTrigger): + var bt BlobTrigger + err := json.Unmarshal(body, &bt) + return bt, err + case string(TypeBasicTriggerTypeScheduleTrigger): + var st ScheduleTrigger + err := json.Unmarshal(body, &st) + return st, err + case string(TypeBasicTriggerTypeMultiplePipelineTrigger): + var mpt MultiplePipelineTrigger + err := json.Unmarshal(body, &mpt) + return mpt, err + default: + var t Trigger + err := json.Unmarshal(body, &t) + return t, err + } +} +func unmarshalBasicTriggerArray(body []byte) ([]BasicTrigger, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + tArray := make([]BasicTrigger, len(rawMessages)) + + for index, rawMessage := range rawMessages { + t, err := unmarshalBasicTrigger(*rawMessage) + if err != nil { + return nil, err + } + tArray[index] = t + } + return tArray, nil +} + +// MarshalJSON is the custom marshaler for Trigger. +func (t Trigger) MarshalJSON() ([]byte, error) { + t.Type = TypeBasicTriggerTypeTrigger + objectMap := make(map[string]interface{}) + if t.Description != nil { + objectMap["description"] = t.Description + } + if t.Annotations != nil { + objectMap["annotations"] = t.Annotations + } + if t.Type != "" { + objectMap["type"] = t.Type + } + for k, v := range t.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return nil, false +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return nil, false +} + +// AsTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsTrigger() (*Trigger, bool) { + return &t, true +} + +// AsBasicTrigger is the BasicTrigger implementation for Trigger. +func (t Trigger) AsBasicTrigger() (BasicTrigger, bool) { + return &t, true +} + +// UnmarshalJSON is the custom unmarshaler for Trigger struct. +func (t *Trigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if t.AdditionalProperties == nil { + t.AdditionalProperties = make(map[string]interface{}) + } + t.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + t.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + t.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + t.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + t.Type = typeVar + } + } + } + + return nil +} + +// BasicTriggerDependencyReference trigger referenced dependency. +type BasicTriggerDependencyReference interface { + AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) + AsTriggerDependencyReference() (*TriggerDependencyReference, bool) +} + +// TriggerDependencyReference trigger referenced dependency. +type TriggerDependencyReference struct { + // ReferenceTrigger - Referenced trigger. + ReferenceTrigger *TriggerReference `json:"referenceTrigger,omitempty"` + // Type - Possible values include: 'TypeBasicDependencyReferenceTypeDependencyReference', 'TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference', 'TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference', 'TypeBasicDependencyReferenceTypeTriggerDependencyReference' + Type TypeBasicDependencyReference `json:"type,omitempty"` +} + +func unmarshalBasicTriggerDependencyReference(body []byte) (BasicTriggerDependencyReference, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["type"] { + case string(TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference): + var twtdr TumblingWindowTriggerDependencyReference + err := json.Unmarshal(body, &twtdr) + return twtdr, err + default: + var tdr TriggerDependencyReference + err := json.Unmarshal(body, &tdr) + return tdr, err + } +} +func unmarshalBasicTriggerDependencyReferenceArray(body []byte) ([]BasicTriggerDependencyReference, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + tdrArray := make([]BasicTriggerDependencyReference, len(rawMessages)) + + for index, rawMessage := range rawMessages { + tdr, err := unmarshalBasicTriggerDependencyReference(*rawMessage) + if err != nil { + return nil, err + } + tdrArray[index] = tdr + } + return tdrArray, nil +} + +// MarshalJSON is the custom marshaler for TriggerDependencyReference. +func (tdr TriggerDependencyReference) MarshalJSON() ([]byte, error) { + tdr.Type = TypeBasicDependencyReferenceTypeTriggerDependencyReference + objectMap := make(map[string]interface{}) + if tdr.ReferenceTrigger != nil { + objectMap["referenceTrigger"] = tdr.ReferenceTrigger + } + if tdr.Type != "" { + objectMap["type"] = tdr.Type + } + return json.Marshal(objectMap) +} + +// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for TriggerDependencyReference. +func (tdr TriggerDependencyReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { + return nil, false +} + +// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. +func (tdr TriggerDependencyReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { + return nil, false +} + +// AsTriggerDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. +func (tdr TriggerDependencyReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { + return &tdr, true +} + +// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. +func (tdr TriggerDependencyReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { + return &tdr, true +} + +// AsDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. +func (tdr TriggerDependencyReference) AsDependencyReference() (*DependencyReference, bool) { + return nil, false +} + +// AsBasicDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. +func (tdr TriggerDependencyReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { + return &tdr, true +} + +// TriggerFilterParameters query parameters for triggers. +type TriggerFilterParameters struct { + // ContinuationToken - The continuation token for getting the next page of results. Null for first page. + ContinuationToken *string `json:"continuationToken,omitempty"` + // ParentTriggerName - The name of the parent TumblingWindowTrigger to get the child rerun triggers + ParentTriggerName *string `json:"parentTriggerName,omitempty"` +} + +// TriggerListResponse a list of trigger resources. +type TriggerListResponse struct { + autorest.Response `json:"-"` + // Value - List of triggers. + Value *[]TriggerResource `json:"value,omitempty"` + // NextLink - The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// TriggerListResponseIterator provides access to a complete listing of TriggerResource values. +type TriggerListResponseIterator struct { + i int + page TriggerListResponsePage +} + +// NextWithContext advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +func (iter *TriggerListResponseIterator) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggerListResponseIterator.NextWithContext") + defer func() { + sc := -1 + if iter.Response().Response.Response != nil { + sc = iter.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + iter.i++ + if iter.i < len(iter.page.Values()) { + return nil + } + err = iter.page.NextWithContext(ctx) + if err != nil { + iter.i-- + return err + } + iter.i = 0 + return nil +} + +// Next advances to the next value. If there was an error making +// the request the iterator does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (iter *TriggerListResponseIterator) Next() error { + return iter.NextWithContext(context.Background()) +} + +// NotDone returns true if the enumeration should be started or is not yet complete. +func (iter TriggerListResponseIterator) NotDone() bool { + return iter.page.NotDone() && iter.i < len(iter.page.Values()) +} + +// Response returns the raw server response from the last page request. +func (iter TriggerListResponseIterator) Response() TriggerListResponse { + return iter.page.Response() +} + +// Value returns the current value or a zero-initialized value if the +// iterator has advanced beyond the end of the collection. +func (iter TriggerListResponseIterator) Value() TriggerResource { + if !iter.page.NotDone() { + return TriggerResource{} + } + return iter.page.Values()[iter.i] +} + +// Creates a new instance of the TriggerListResponseIterator type. +func NewTriggerListResponseIterator(page TriggerListResponsePage) TriggerListResponseIterator { + return TriggerListResponseIterator{page: page} +} + +// IsEmpty returns true if the ListResult contains no values. +func (tlr TriggerListResponse) IsEmpty() bool { + return tlr.Value == nil || len(*tlr.Value) == 0 +} + +// hasNextLink returns true if the NextLink is not empty. +func (tlr TriggerListResponse) hasNextLink() bool { + return tlr.NextLink != nil && len(*tlr.NextLink) != 0 +} + +// triggerListResponsePreparer prepares a request to retrieve the next set of results. +// It returns nil if no more results exist. +func (tlr TriggerListResponse) triggerListResponsePreparer(ctx context.Context) (*http.Request, error) { + if !tlr.hasNextLink() { + return nil, nil + } + return autorest.Prepare((&http.Request{}).WithContext(ctx), + autorest.AsJSON(), + autorest.AsGet(), + autorest.WithBaseURL(to.String(tlr.NextLink))) +} + +// TriggerListResponsePage contains a page of TriggerResource values. +type TriggerListResponsePage struct { + fn func(context.Context, TriggerListResponse) (TriggerListResponse, error) + tlr TriggerListResponse +} + +// NextWithContext advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +func (page *TriggerListResponsePage) NextWithContext(ctx context.Context) (err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/TriggerListResponsePage.NextWithContext") + defer func() { + sc := -1 + if page.Response().Response.Response != nil { + sc = page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + for { + next, err := page.fn(ctx, page.tlr) + if err != nil { + return err + } + page.tlr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } + } + return nil +} + +// Next advances to the next page of values. If there was an error making +// the request the page does not advance and the error is returned. +// Deprecated: Use NextWithContext() instead. +func (page *TriggerListResponsePage) Next() error { + return page.NextWithContext(context.Background()) +} + +// NotDone returns true if the page enumeration should be started or is not yet complete. +func (page TriggerListResponsePage) NotDone() bool { + return !page.tlr.IsEmpty() +} + +// Response returns the raw server response from the last page request. +func (page TriggerListResponsePage) Response() TriggerListResponse { + return page.tlr +} + +// Values returns the slice of values for the current page or nil if there are no values. +func (page TriggerListResponsePage) Values() []TriggerResource { + if page.tlr.IsEmpty() { + return nil + } + return *page.tlr.Value +} + +// Creates a new instance of the TriggerListResponsePage type. +func NewTriggerListResponsePage(cur TriggerListResponse, getNextPage func(context.Context, TriggerListResponse) (TriggerListResponse, error)) TriggerListResponsePage { + return TriggerListResponsePage{ + fn: getNextPage, + tlr: cur, + } +} + +// TriggerPipelineReference pipeline that needs to be triggered with the given parameters. +type TriggerPipelineReference struct { + // PipelineReference - Pipeline reference. + PipelineReference *PipelineReference `json:"pipelineReference,omitempty"` + // Parameters - Pipeline parameters. + Parameters map[string]interface{} `json:"parameters"` +} + +// MarshalJSON is the custom marshaler for TriggerPipelineReference. +func (tpr TriggerPipelineReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if tpr.PipelineReference != nil { + objectMap["pipelineReference"] = tpr.PipelineReference + } + if tpr.Parameters != nil { + objectMap["parameters"] = tpr.Parameters + } + return json.Marshal(objectMap) +} + +// TriggerQueryResponse a query of triggers. +type TriggerQueryResponse struct { + autorest.Response `json:"-"` + // Value - List of triggers. + Value *[]TriggerResource `json:"value,omitempty"` + // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + ContinuationToken *string `json:"continuationToken,omitempty"` +} + +// TriggerReference trigger reference type. +type TriggerReference struct { + // Type - Trigger reference type. + Type *string `json:"type,omitempty"` + // ReferenceName - Reference trigger name. + ReferenceName *string `json:"referenceName,omitempty"` +} + +// TriggerResource trigger resource type. +type TriggerResource struct { + autorest.Response `json:"-"` + // Properties - Properties of the trigger. + Properties BasicTrigger `json:"properties,omitempty"` + // ID - READ-ONLY; The resource identifier. + ID *string `json:"id,omitempty"` + // Name - READ-ONLY; The resource name. + Name *string `json:"name,omitempty"` + // Type - READ-ONLY; The resource type. + Type *string `json:"type,omitempty"` + // Etag - READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty"` +} + +// MarshalJSON is the custom marshaler for TriggerResource. +func (tr TriggerResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + objectMap["properties"] = tr.Properties + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for TriggerResource struct. +func (tr *TriggerResource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + properties, err := unmarshalBasicTrigger(*v) + if err != nil { + return err + } + tr.Properties = properties + } + case "id": + if v != nil { + var ID string + err = json.Unmarshal(*v, &ID) + if err != nil { + return err + } + tr.ID = &ID + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + tr.Name = &name + } + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + tr.Type = &typeVar + } + case "etag": + if v != nil { + var etag string + err = json.Unmarshal(*v, &etag) + if err != nil { + return err + } + tr.Etag = &etag + } + } + } + + return nil +} + +// TriggerRun trigger runs. +type TriggerRun struct { + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // TriggerRunID - READ-ONLY; Trigger run id. + TriggerRunID *string `json:"triggerRunId,omitempty"` + // TriggerName - READ-ONLY; Trigger name. + TriggerName *string `json:"triggerName,omitempty"` + // TriggerType - READ-ONLY; Trigger type. + TriggerType *string `json:"triggerType,omitempty"` + // TriggerRunTimestamp - READ-ONLY; Trigger run start time. + TriggerRunTimestamp *date.Time `json:"triggerRunTimestamp,omitempty"` + // Status - READ-ONLY; Trigger run status. Possible values include: 'TriggerRunStatusSucceeded', 'TriggerRunStatusFailed', 'TriggerRunStatusInprogress' + Status TriggerRunStatus `json:"status,omitempty"` + // Message - READ-ONLY; Trigger error message. + Message *string `json:"message,omitempty"` + // Properties - 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"` + // TriggeredPipelines - READ-ONLY; List of pipeline name and run Id triggered by the trigger run. + TriggeredPipelines map[string]*string `json:"triggeredPipelines"` + // RunDimension - READ-ONLY; Run dimension for which trigger was fired. + RunDimension map[string]*string `json:"runDimension"` + // DependencyStatus - READ-ONLY; Status of the upstream pipelines. + DependencyStatus map[string]interface{} `json:"dependencyStatus"` +} + +// MarshalJSON is the custom marshaler for TriggerRun. +func (tr TriggerRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + for k, v := range tr.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for TriggerRun struct. +func (tr *TriggerRun) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if tr.AdditionalProperties == nil { + tr.AdditionalProperties = make(map[string]interface{}) + } + tr.AdditionalProperties[k] = additionalProperties + } + case "triggerRunId": + if v != nil { + var triggerRunID string + err = json.Unmarshal(*v, &triggerRunID) + if err != nil { + return err + } + tr.TriggerRunID = &triggerRunID + } + case "triggerName": + if v != nil { + var triggerName string + err = json.Unmarshal(*v, &triggerName) + if err != nil { + return err + } + tr.TriggerName = &triggerName + } + case "triggerType": + if v != nil { + var triggerType string + err = json.Unmarshal(*v, &triggerType) + if err != nil { + return err + } + tr.TriggerType = &triggerType + } + case "triggerRunTimestamp": + if v != nil { + var triggerRunTimestamp date.Time + err = json.Unmarshal(*v, &triggerRunTimestamp) + if err != nil { + return err + } + tr.TriggerRunTimestamp = &triggerRunTimestamp + } + case "status": + if v != nil { + var status TriggerRunStatus + err = json.Unmarshal(*v, &status) + if err != nil { + return err + } + tr.Status = status + } + case "message": + if v != nil { + var message string + err = json.Unmarshal(*v, &message) + if err != nil { + return err + } + tr.Message = &message + } + case "properties": + if v != nil { + var properties map[string]*string + err = json.Unmarshal(*v, &properties) + if err != nil { + return err + } + tr.Properties = properties + } + case "triggeredPipelines": + if v != nil { + var triggeredPipelines map[string]*string + err = json.Unmarshal(*v, &triggeredPipelines) + if err != nil { + return err + } + tr.TriggeredPipelines = triggeredPipelines + } + case "runDimension": + if v != nil { + var runDimension map[string]*string + err = json.Unmarshal(*v, &runDimension) + if err != nil { + return err + } + tr.RunDimension = runDimension + } + case "dependencyStatus": + if v != nil { + var dependencyStatus map[string]interface{} + err = json.Unmarshal(*v, &dependencyStatus) + if err != nil { + return err + } + tr.DependencyStatus = dependencyStatus + } + } + } + + return nil +} + +// TriggerRunsQueryResponse a list of trigger runs. +type TriggerRunsQueryResponse struct { + autorest.Response `json:"-"` + // Value - List of trigger runs. + Value *[]TriggerRun `json:"value,omitempty"` + // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + ContinuationToken *string `json:"continuationToken,omitempty"` +} + +// TriggerSubscriptionOperationStatus defines the response of a trigger subscription operation. +type TriggerSubscriptionOperationStatus struct { + autorest.Response `json:"-"` + // TriggerName - READ-ONLY; Trigger name. + TriggerName *string `json:"triggerName,omitempty"` + // Status - READ-ONLY; Event Subscription Status. Possible values include: 'EventSubscriptionStatusEnabled', 'EventSubscriptionStatusProvisioning', 'EventSubscriptionStatusDeprovisioning', 'EventSubscriptionStatusDisabled', 'EventSubscriptionStatusUnknown' + Status EventSubscriptionStatus `json:"status,omitempty"` +} + +// MarshalJSON is the custom marshaler for TriggerSubscriptionOperationStatus. +func (tsos TriggerSubscriptionOperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// TriggersStartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. +type TriggersStartFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(TriggersClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *TriggersStartFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for TriggersStartFuture.Result. +func (future *TriggersStartFuture) result(client TriggersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.TriggersStartFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.TriggersStartFuture") + return + } + ar.Response = future.Response() + return +} + +// TriggersStopFuture an abstraction for monitoring and retrieving the results of a long-running operation. +type TriggersStopFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(TriggersClient) (autorest.Response, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *TriggersStopFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for TriggersStopFuture.Result. +func (future *TriggersStopFuture) result(client TriggersClient) (ar autorest.Response, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.TriggersStopFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + ar.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.TriggersStopFuture") + return + } + ar.Response = future.Response() + return +} + +// TriggersSubscribeToEventsFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type TriggersSubscribeToEventsFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(TriggersClient) (TriggerSubscriptionOperationStatus, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *TriggersSubscribeToEventsFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for TriggersSubscribeToEventsFuture.Result. +func (future *TriggersSubscribeToEventsFuture) result(client TriggersClient) (tsos TriggerSubscriptionOperationStatus, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.TriggersSubscribeToEventsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + tsos.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.TriggersSubscribeToEventsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if tsos.Response.Response, err = future.GetResult(sender); err == nil && tsos.Response.Response.StatusCode != http.StatusNoContent { + tsos, err = client.SubscribeToEventsResponder(tsos.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.TriggersSubscribeToEventsFuture", "Result", tsos.Response.Response, "Failure responding to request") + } + } + return +} + +// TriggersUnsubscribeFromEventsFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. +type TriggersUnsubscribeFromEventsFuture struct { + azure.FutureAPI + // Result returns the result of the asynchronous operation. + // If the operation has not completed it will return an error. + Result func(TriggersClient) (TriggerSubscriptionOperationStatus, error) +} + +// UnmarshalJSON is the custom unmarshaller for CreateFuture. +func (future *TriggersUnsubscribeFromEventsFuture) UnmarshalJSON(body []byte) error { + var azFuture azure.Future + if err := json.Unmarshal(body, &azFuture); err != nil { + return err + } + future.FutureAPI = &azFuture + future.Result = future.result + return nil +} + +// result is the default implementation for TriggersUnsubscribeFromEventsFuture.Result. +func (future *TriggersUnsubscribeFromEventsFuture) result(client TriggersClient) (tsos TriggerSubscriptionOperationStatus, err error) { + var done bool + done, err = future.DoneWithContext(context.Background(), client) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.TriggersUnsubscribeFromEventsFuture", "Result", future.Response(), "Polling failure") + return + } + if !done { + tsos.Response.Response = future.Response() + err = azure.NewAsyncOpIncompleteError("datafactory.TriggersUnsubscribeFromEventsFuture") + return + } + sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) + if tsos.Response.Response, err = future.GetResult(sender); err == nil && tsos.Response.Response.StatusCode != http.StatusNoContent { + tsos, err = client.UnsubscribeFromEventsResponder(tsos.Response.Response) + if err != nil { + err = autorest.NewErrorWithError(err, "datafactory.TriggersUnsubscribeFromEventsFuture", "Result", tsos.Response.Response, "Failure responding to request") + } + } + return +} + +// 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 { + // Pipeline - Pipeline for which runs are created when an event is fired for trigger window that is ready. + Pipeline *TriggerPipelineReference `json:"pipeline,omitempty"` + // TumblingWindowTriggerTypeProperties - Tumbling Window Trigger properties. + *TumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Trigger description. + Description *string `json:"description,omitempty"` + // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' + RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` + // Annotations - List of tags that can be used for describing the trigger. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' + Type TypeBasicTrigger `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) MarshalJSON() ([]byte, error) { + twt.Type = TypeBasicTriggerTypeTumblingWindowTrigger + objectMap := make(map[string]interface{}) + if twt.Pipeline != nil { + objectMap["pipeline"] = twt.Pipeline + } + if twt.TumblingWindowTriggerTypeProperties != nil { + objectMap["typeProperties"] = twt.TumblingWindowTriggerTypeProperties + } + if twt.Description != nil { + objectMap["description"] = twt.Description + } + if twt.Annotations != nil { + objectMap["annotations"] = twt.Annotations + } + if twt.Type != "" { + objectMap["type"] = twt.Type + } + for k, v := range twt.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsChainingTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { + return nil, false +} + +// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { + return nil, false +} + +// AsTumblingWindowTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { + return &twt, true +} + +// AsCustomEventsTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { + return nil, false +} + +// AsBlobEventsTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { + return nil, false +} + +// AsBlobTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsBlobTrigger() (*BlobTrigger, bool) { + return nil, false +} + +// AsScheduleTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { + return nil, false +} + +// AsMultiplePipelineTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { + return nil, false +} + +// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { + return nil, false +} + +// AsTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsTrigger() (*Trigger, bool) { + return nil, false +} + +// AsBasicTrigger is the BasicTrigger implementation for TumblingWindowTrigger. +func (twt TumblingWindowTrigger) AsBasicTrigger() (BasicTrigger, bool) { + return &twt, true +} + +// UnmarshalJSON is the custom unmarshaler for TumblingWindowTrigger struct. +func (twt *TumblingWindowTrigger) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "pipeline": + if v != nil { + var pipeline TriggerPipelineReference + err = json.Unmarshal(*v, &pipeline) + if err != nil { + return err + } + twt.Pipeline = &pipeline + } + case "typeProperties": + if v != nil { + var tumblingWindowTriggerTypeProperties TumblingWindowTriggerTypeProperties + err = json.Unmarshal(*v, &tumblingWindowTriggerTypeProperties) + if err != nil { + return err + } + twt.TumblingWindowTriggerTypeProperties = &tumblingWindowTriggerTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if twt.AdditionalProperties == nil { + twt.AdditionalProperties = make(map[string]interface{}) + } + twt.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + twt.Description = &description + } + case "runtimeState": + if v != nil { + var runtimeState TriggerRuntimeState + err = json.Unmarshal(*v, &runtimeState) + if err != nil { + return err + } + twt.RuntimeState = runtimeState + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + twt.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicTrigger + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + twt.Type = typeVar + } + } + } + + return nil +} + +// TumblingWindowTriggerDependencyReference referenced tumbling window trigger dependency. +type TumblingWindowTriggerDependencyReference struct { + // Offset - Timespan applied to the start time of a tumbling window when evaluating dependency. + Offset *string `json:"offset,omitempty"` + // Size - 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"` + // ReferenceTrigger - Referenced trigger. + ReferenceTrigger *TriggerReference `json:"referenceTrigger,omitempty"` + // Type - Possible values include: 'TypeBasicDependencyReferenceTypeDependencyReference', 'TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference', 'TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference', 'TypeBasicDependencyReferenceTypeTriggerDependencyReference' + Type TypeBasicDependencyReference `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TumblingWindowTriggerDependencyReference. +func (twtdr TumblingWindowTriggerDependencyReference) MarshalJSON() ([]byte, error) { + twtdr.Type = TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference + objectMap := make(map[string]interface{}) + if twtdr.Offset != nil { + objectMap["offset"] = twtdr.Offset + } + if twtdr.Size != nil { + objectMap["size"] = twtdr.Size + } + if twtdr.ReferenceTrigger != nil { + objectMap["referenceTrigger"] = twtdr.ReferenceTrigger + } + if twtdr.Type != "" { + objectMap["type"] = twtdr.Type + } + return json.Marshal(objectMap) +} + +// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. +func (twtdr TumblingWindowTriggerDependencyReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { + return nil, false +} + +// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. +func (twtdr TumblingWindowTriggerDependencyReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { + return &twtdr, true +} + +// AsTriggerDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. +func (twtdr TumblingWindowTriggerDependencyReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { + return nil, false +} + +// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. +func (twtdr TumblingWindowTriggerDependencyReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { + return &twtdr, true +} + +// AsDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. +func (twtdr TumblingWindowTriggerDependencyReference) AsDependencyReference() (*DependencyReference, bool) { + return nil, false +} + +// AsBasicDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. +func (twtdr TumblingWindowTriggerDependencyReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { + return &twtdr, true +} + +// TumblingWindowTriggerTypeProperties tumbling Window Trigger properties. +type TumblingWindowTriggerTypeProperties struct { + // Frequency - The frequency of the time windows. Possible values include: 'TumblingWindowFrequencyMinute', 'TumblingWindowFrequencyHour', 'TumblingWindowFrequencyMonth' + Frequency TumblingWindowFrequency `json:"frequency,omitempty"` + // Interval - The interval of the time windows. The minimum interval allowed is 15 Minutes. + Interval *int32 `json:"interval,omitempty"` + // StartTime - 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 *date.Time `json:"startTime,omitempty"` + // EndTime - 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 *date.Time `json:"endTime,omitempty"` + // Delay - 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"` + // MaxConcurrency - The max number of parallel time windows (ready for execution) for which a new run is triggered. + MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` + // RetryPolicy - Retry policy that will be applied for failed pipeline runs. + RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` + // DependsOn - Triggers that this trigger depends on. Only tumbling window triggers are supported. + DependsOn *[]BasicDependencyReference `json:"dependsOn,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for TumblingWindowTriggerTypeProperties struct. +func (twtP *TumblingWindowTriggerTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "frequency": + if v != nil { + var frequency TumblingWindowFrequency + err = json.Unmarshal(*v, &frequency) + if err != nil { + return err + } + twtP.Frequency = frequency + } + case "interval": + if v != nil { + var interval int32 + err = json.Unmarshal(*v, &interval) + if err != nil { + return err + } + twtP.Interval = &interval + } + case "startTime": + if v != nil { + var startTime date.Time + err = json.Unmarshal(*v, &startTime) + if err != nil { + return err + } + twtP.StartTime = &startTime + } + case "endTime": + if v != nil { + var endTime date.Time + err = json.Unmarshal(*v, &endTime) + if err != nil { + return err + } + twtP.EndTime = &endTime + } + case "delay": + if v != nil { + var delay interface{} + err = json.Unmarshal(*v, &delay) + if err != nil { + return err + } + twtP.Delay = delay + } + case "maxConcurrency": + if v != nil { + var maxConcurrency int32 + err = json.Unmarshal(*v, &maxConcurrency) + if err != nil { + return err + } + twtP.MaxConcurrency = &maxConcurrency + } + case "retryPolicy": + if v != nil { + var retryPolicy RetryPolicy + err = json.Unmarshal(*v, &retryPolicy) + if err != nil { + return err + } + twtP.RetryPolicy = &retryPolicy + } + case "dependsOn": + if v != nil { + dependsOn, err := unmarshalBasicDependencyReferenceArray(*v) + if err != nil { + return err + } + twtP.DependsOn = &dependsOn + } + } + } + + return nil +} + +// TwilioLinkedService linked service for Twilio. +type TwilioLinkedService struct { + // TwilioLinkedServiceTypeProperties - Twilio linked service properties. + *TwilioLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for TwilioLinkedService. +func (TLSVar TwilioLinkedService) MarshalJSON() ([]byte, error) { + TLSVar.Type = TypeBasicLinkedServiceTypeTwilio + objectMap := make(map[string]interface{}) + if TLSVar.TwilioLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = TLSVar.TwilioLinkedServiceTypeProperties + } + if TLSVar.ConnectVia != nil { + objectMap["connectVia"] = TLSVar.ConnectVia + } + if TLSVar.Description != nil { + objectMap["description"] = TLSVar.Description + } + if TLSVar.Parameters != nil { + objectMap["parameters"] = TLSVar.Parameters + } + if TLSVar.Annotations != nil { + objectMap["annotations"] = TLSVar.Annotations + } + if TLSVar.Type != "" { + objectMap["type"] = TLSVar.Type + } + for k, v := range TLSVar.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return &TLSVar, true +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for TwilioLinkedService. +func (TLSVar TwilioLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &TLSVar, true +} + +// UnmarshalJSON is the custom unmarshaler for TwilioLinkedService struct. +func (TLSVar *TwilioLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var twilioLinkedServiceTypeProperties TwilioLinkedServiceTypeProperties + err = json.Unmarshal(*v, &twilioLinkedServiceTypeProperties) + if err != nil { + return err + } + TLSVar.TwilioLinkedServiceTypeProperties = &twilioLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if TLSVar.AdditionalProperties == nil { + TLSVar.AdditionalProperties = make(map[string]interface{}) + } + TLSVar.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + TLSVar.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + TLSVar.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + TLSVar.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + TLSVar.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + TLSVar.Type = typeVar + } + } + } + + return nil +} + +// TwilioLinkedServiceTypeProperties twilio linked service type properties. +type TwilioLinkedServiceTypeProperties struct { + // UserName - The Account SID of Twilio service. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - The auth token of Twilio service. + Password BasicSecretBase `json:"password,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for TwilioLinkedServiceTypeProperties struct. +func (tlstp *TwilioLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + tlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + tlstp.Password = password + } + } + } + + return nil +} + +// TypeConversionSettings type conversion settings +type TypeConversionSettings struct { + // AllowDataTruncation - Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean). + AllowDataTruncation interface{} `json:"allowDataTruncation,omitempty"` + // TreatBooleanAsNumber - Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean). + TreatBooleanAsNumber interface{} `json:"treatBooleanAsNumber,omitempty"` + // DateTimeFormat - The format for DateTime values. Type: string (or Expression with resultType string). + DateTimeFormat interface{} `json:"dateTimeFormat,omitempty"` + // DateTimeOffsetFormat - The format for DateTimeOffset values. Type: string (or Expression with resultType string). + DateTimeOffsetFormat interface{} `json:"dateTimeOffsetFormat,omitempty"` + // TimeSpanFormat - The format for TimeSpan values. Type: string (or Expression with resultType string). + TimeSpanFormat interface{} `json:"timeSpanFormat,omitempty"` + // Culture - The culture used to convert data from/to string. Type: string (or Expression with resultType string). + Culture interface{} `json:"culture,omitempty"` +} + +// UntilActivity this activity executes inner activities until the specified boolean expression results to +// true or timeout is reached, whichever is earlier. +type UntilActivity struct { + // UntilActivityTypeProperties - Until activity properties. + *UntilActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for UntilActivity. +func (ua UntilActivity) MarshalJSON() ([]byte, error) { + ua.Type = TypeBasicActivityTypeUntil + objectMap := make(map[string]interface{}) + if ua.UntilActivityTypeProperties != nil { + objectMap["typeProperties"] = ua.UntilActivityTypeProperties + } + if ua.Name != nil { + objectMap["name"] = ua.Name + } + if ua.Description != nil { + objectMap["description"] = ua.Description + } + if ua.State != "" { + objectMap["state"] = ua.State + } + if ua.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = ua.OnInactiveMarkAs + } + if ua.DependsOn != nil { + objectMap["dependsOn"] = ua.DependsOn + } + if ua.UserProperties != nil { + objectMap["userProperties"] = ua.UserProperties + } + if ua.Type != "" { + objectMap["type"] = ua.Type + } + for k, v := range ua.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsUntilActivity() (*UntilActivity, bool) { + return &ua, true +} + +// AsFailActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &ua, true +} + +// AsActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for UntilActivity. +func (ua UntilActivity) AsBasicActivity() (BasicActivity, bool) { + return &ua, true +} + +// UnmarshalJSON is the custom unmarshaler for UntilActivity struct. +func (ua *UntilActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var untilActivityTypeProperties UntilActivityTypeProperties + err = json.Unmarshal(*v, &untilActivityTypeProperties) + if err != nil { + return err + } + ua.UntilActivityTypeProperties = &untilActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ua.AdditionalProperties == nil { + ua.AdditionalProperties = make(map[string]interface{}) + } + ua.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + ua.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + ua.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + ua.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + ua.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + ua.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + ua.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ua.Type = typeVar + } + } + } + + return nil +} + +// UntilActivityTypeProperties until activity properties. +type UntilActivityTypeProperties struct { + // Expression - An expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true + Expression *Expression `json:"expression,omitempty"` + // Timeout - 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"` + // Activities - List of activities to execute. + Activities *[]BasicActivity `json:"activities,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for UntilActivityTypeProperties struct. +func (uatp *UntilActivityTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "expression": + if v != nil { + var expression Expression + err = json.Unmarshal(*v, &expression) + if err != nil { + return err + } + uatp.Expression = &expression + } + case "timeout": + if v != nil { + var timeout interface{} + err = json.Unmarshal(*v, &timeout) + if err != nil { + return err + } + uatp.Timeout = timeout + } + case "activities": + if v != nil { + activities, err := unmarshalBasicActivityArray(*v) + if err != nil { + return err + } + uatp.Activities = &activities + } + } + } + + return nil +} + +// UpdateIntegrationRuntimeNodeRequest update integration runtime node request. +type UpdateIntegrationRuntimeNodeRequest struct { + // ConcurrentJobsLimit - 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"` +} + +// UpdateIntegrationRuntimeRequest update integration runtime request. +type UpdateIntegrationRuntimeRequest struct { + // AutoUpdate - Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: 'IntegrationRuntimeAutoUpdateOn', 'IntegrationRuntimeAutoUpdateOff' + AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` + // UpdateDelayOffset - 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"` +} + +// UserAccessPolicy get Data Plane read only token request definition. +type UserAccessPolicy struct { + // Permissions - The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access. + Permissions *string `json:"permissions,omitempty"` + // AccessResourcePath - 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"` + // ProfileName - The name of the profile. Currently only the default is supported. The default value is DefaultProfile. + ProfileName *string `json:"profileName,omitempty"` + // StartTime - Start time for the token. If not specified the current time will be used. + StartTime *string `json:"startTime,omitempty"` + // ExpireTime - 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"` +} + +// UserProperty user property. +type UserProperty struct { + // Name - User property name. + Name *string `json:"name,omitempty"` + // Value - User property value. Type: string (or Expression with resultType string). + Value interface{} `json:"value,omitempty"` +} + +// ValidationActivity this activity verifies that an external resource exists. +type ValidationActivity struct { + // ValidationActivityTypeProperties - Validation activity properties. + *ValidationActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ValidationActivity. +func (va ValidationActivity) MarshalJSON() ([]byte, error) { + va.Type = TypeBasicActivityTypeValidation + objectMap := make(map[string]interface{}) + if va.ValidationActivityTypeProperties != nil { + objectMap["typeProperties"] = va.ValidationActivityTypeProperties + } + if va.Name != nil { + objectMap["name"] = va.Name + } + if va.Description != nil { + objectMap["description"] = va.Description + } + if va.State != "" { + objectMap["state"] = va.State + } + if va.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = va.OnInactiveMarkAs + } + if va.DependsOn != nil { + objectMap["dependsOn"] = va.DependsOn + } + if va.UserProperties != nil { + objectMap["userProperties"] = va.UserProperties + } + if va.Type != "" { + objectMap["type"] = va.Type + } + for k, v := range va.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsValidationActivity() (*ValidationActivity, bool) { + return &va, true +} + +// AsUntilActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &va, true +} + +// AsActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for ValidationActivity. +func (va ValidationActivity) AsBasicActivity() (BasicActivity, bool) { + return &va, true +} + +// UnmarshalJSON is the custom unmarshaler for ValidationActivity struct. +func (va *ValidationActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var validationActivityTypeProperties ValidationActivityTypeProperties + err = json.Unmarshal(*v, &validationActivityTypeProperties) + if err != nil { + return err + } + va.ValidationActivityTypeProperties = &validationActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if va.AdditionalProperties == nil { + va.AdditionalProperties = make(map[string]interface{}) + } + va.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + va.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + va.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + va.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + va.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + va.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + va.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + va.Type = typeVar + } + } + } + + return nil +} + +// ValidationActivityTypeProperties validation activity properties. +type ValidationActivityTypeProperties struct { + // Timeout - 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"` + // Sleep - 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"` + // MinimumSize - 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"` + // ChildItems - 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"` + // Dataset - Validation activity dataset reference. + Dataset *DatasetReference `json:"dataset,omitempty"` +} + +// VariableSpecification definition of a single variable for a Pipeline. +type VariableSpecification struct { + // Type - Variable type. Possible values include: 'VariableTypeString', 'VariableTypeBool', 'VariableTypeArray' + Type VariableType `json:"type,omitempty"` + // DefaultValue - Default value of variable. + DefaultValue interface{} `json:"defaultValue,omitempty"` +} + +// VerticaDatasetTypeProperties vertica Properties +type VerticaDatasetTypeProperties struct { + // TableName - This property will be retired. Please consider using schema + table properties instead. + TableName interface{} `json:"tableName,omitempty"` + // Table - The table name of the Vertica. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` + // Schema - The schema name of the Vertica. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` +} + +// VerticaLinkedService vertica linked service. +type VerticaLinkedService struct { + // VerticaLinkedServiceTypeProperties - Vertica linked service properties. + *VerticaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for VerticaLinkedService. +func (vls VerticaLinkedService) MarshalJSON() ([]byte, error) { + vls.Type = TypeBasicLinkedServiceTypeVertica + objectMap := make(map[string]interface{}) + if vls.VerticaLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = vls.VerticaLinkedServiceTypeProperties + } + if vls.ConnectVia != nil { + objectMap["connectVia"] = vls.ConnectVia + } + if vls.Description != nil { + objectMap["description"] = vls.Description + } + if vls.Parameters != nil { + objectMap["parameters"] = vls.Parameters + } + if vls.Annotations != nil { + objectMap["annotations"] = vls.Annotations + } + if vls.Type != "" { + objectMap["type"] = vls.Type + } + for k, v := range vls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return &vls, true +} + +// AsZohoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for VerticaLinkedService. +func (vls VerticaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &vls, true +} + +// UnmarshalJSON is the custom unmarshaler for VerticaLinkedService struct. +func (vls *VerticaLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var verticaLinkedServiceTypeProperties VerticaLinkedServiceTypeProperties + err = json.Unmarshal(*v, &verticaLinkedServiceTypeProperties) + if err != nil { + return err + } + vls.VerticaLinkedServiceTypeProperties = &verticaLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if vls.AdditionalProperties == nil { + vls.AdditionalProperties = make(map[string]interface{}) + } + vls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + vls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + vls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + vls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + vls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vls.Type = typeVar + } + } + } + + return nil +} + +// VerticaLinkedServiceTypeProperties vertica linked service properties. +type VerticaLinkedServiceTypeProperties struct { + // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. + ConnectionString interface{} `json:"connectionString,omitempty"` + // Pwd - The Azure key vault secret reference of password in connection string. + Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// VerticaSource a copy activity Vertica source. +type VerticaSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for VerticaSource. +func (vs VerticaSource) MarshalJSON() ([]byte, error) { + vs.Type = TypeBasicCopySourceTypeVerticaSource + objectMap := make(map[string]interface{}) + if vs.Query != nil { + objectMap["query"] = vs.Query + } + if vs.QueryTimeout != nil { + objectMap["queryTimeout"] = vs.QueryTimeout + } + if vs.AdditionalColumns != nil { + objectMap["additionalColumns"] = vs.AdditionalColumns + } + if vs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = vs.SourceRetryCount + } + if vs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = vs.SourceRetryWait + } + if vs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = vs.MaxConcurrentConnections + } + if vs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = vs.DisableMetricsCollection + } + if vs.Type != "" { + objectMap["type"] = vs.Type + } + for k, v := range vs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsVerticaSource() (*VerticaSource, bool) { + return &vs, true +} + +// AsNetezzaSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &vs, true +} + +// AsBinarySource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for VerticaSource. +func (vs VerticaSource) AsBasicCopySource() (BasicCopySource, bool) { + return &vs, true +} + +// UnmarshalJSON is the custom unmarshaler for VerticaSource struct. +func (vs *VerticaSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + vs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + vs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + vs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if vs.AdditionalProperties == nil { + vs.AdditionalProperties = make(map[string]interface{}) + } + vs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + vs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + vs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + vs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + vs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vs.Type = typeVar + } + } + } + + return nil +} + +// VerticaTableDataset vertica dataset. +type VerticaTableDataset struct { + // VerticaDatasetTypeProperties - Properties specific to this dataset type. + *VerticaDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for VerticaTableDataset. +func (vtd VerticaTableDataset) MarshalJSON() ([]byte, error) { + vtd.Type = TypeBasicDatasetTypeVerticaTable + objectMap := make(map[string]interface{}) + if vtd.VerticaDatasetTypeProperties != nil { + objectMap["typeProperties"] = vtd.VerticaDatasetTypeProperties + } + if vtd.Description != nil { + objectMap["description"] = vtd.Description + } + if vtd.Structure != nil { + objectMap["structure"] = vtd.Structure + } + if vtd.Schema != nil { + objectMap["schema"] = vtd.Schema + } + if vtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = vtd.LinkedServiceName + } + if vtd.Parameters != nil { + objectMap["parameters"] = vtd.Parameters + } + if vtd.Annotations != nil { + objectMap["annotations"] = vtd.Annotations + } + if vtd.Folder != nil { + objectMap["folder"] = vtd.Folder + } + if vtd.Type != "" { + objectMap["type"] = vtd.Type + } + for k, v := range vtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return &vtd, true +} + +// AsNetezzaTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for VerticaTableDataset. +func (vtd VerticaTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &vtd, true +} + +// UnmarshalJSON is the custom unmarshaler for VerticaTableDataset struct. +func (vtd *VerticaTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var verticaDatasetTypeProperties VerticaDatasetTypeProperties + err = json.Unmarshal(*v, &verticaDatasetTypeProperties) + if err != nil { + return err + } + vtd.VerticaDatasetTypeProperties = &verticaDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if vtd.AdditionalProperties == nil { + vtd.AdditionalProperties = make(map[string]interface{}) + } + vtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + vtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + vtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + vtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + vtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + vtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + vtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + vtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + vtd.Type = typeVar + } + } + } + + return nil +} + +// WaitActivity this activity suspends pipeline execution for the specified interval. +type WaitActivity struct { + // WaitActivityTypeProperties - Wait activity properties. + *WaitActivityTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WaitActivity. +func (wa WaitActivity) MarshalJSON() ([]byte, error) { + wa.Type = TypeBasicActivityTypeWait + objectMap := make(map[string]interface{}) + if wa.WaitActivityTypeProperties != nil { + objectMap["typeProperties"] = wa.WaitActivityTypeProperties + } + if wa.Name != nil { + objectMap["name"] = wa.Name + } + if wa.Description != nil { + objectMap["description"] = wa.Description + } + if wa.State != "" { + objectMap["state"] = wa.State + } + if wa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = wa.OnInactiveMarkAs + } + if wa.DependsOn != nil { + objectMap["dependsOn"] = wa.DependsOn + } + if wa.UserProperties != nil { + objectMap["userProperties"] = wa.UserProperties + } + if wa.Type != "" { + objectMap["type"] = wa.Type + } + for k, v := range wa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsWaitActivity() (*WaitActivity, bool) { + return &wa, true +} + +// AsForEachActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &wa, true +} + +// AsActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for WaitActivity. +func (wa WaitActivity) AsBasicActivity() (BasicActivity, bool) { + return &wa, true +} + +// UnmarshalJSON is the custom unmarshaler for WaitActivity struct. +func (wa *WaitActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var waitActivityTypeProperties WaitActivityTypeProperties + err = json.Unmarshal(*v, &waitActivityTypeProperties) + if err != nil { + return err + } + wa.WaitActivityTypeProperties = &waitActivityTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if wa.AdditionalProperties == nil { + wa.AdditionalProperties = make(map[string]interface{}) + } + wa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + wa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + wa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + wa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + wa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wa.Type = typeVar + } + } + } + + return nil +} + +// WaitActivityTypeProperties wait activity properties. +type WaitActivityTypeProperties struct { + // WaitTimeInSeconds - Duration in seconds. Type: integer (or Expression with resultType integer). + WaitTimeInSeconds interface{} `json:"waitTimeInSeconds,omitempty"` +} + +// WarehouseLinkedService microsoft Fabric Warehouse linked service. +type WarehouseLinkedService struct { + // WarehouseLinkedServiceTypeProperties - Microsoft Fabric Warehouse linked service properties. + *WarehouseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WarehouseLinkedService. +func (wls WarehouseLinkedService) MarshalJSON() ([]byte, error) { + wls.Type = TypeBasicLinkedServiceTypeWarehouse + objectMap := make(map[string]interface{}) + if wls.WarehouseLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = wls.WarehouseLinkedServiceTypeProperties + } + if wls.ConnectVia != nil { + objectMap["connectVia"] = wls.ConnectVia + } + if wls.Description != nil { + objectMap["description"] = wls.Description + } + if wls.Parameters != nil { + objectMap["parameters"] = wls.Parameters + } + if wls.Annotations != nil { + objectMap["annotations"] = wls.Annotations + } + if wls.Type != "" { + objectMap["type"] = wls.Type + } + for k, v := range wls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return &wls, true +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. +func (wls WarehouseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &wls, true +} + +// UnmarshalJSON is the custom unmarshaler for WarehouseLinkedService struct. +func (wls *WarehouseLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var warehouseLinkedServiceTypeProperties WarehouseLinkedServiceTypeProperties + err = json.Unmarshal(*v, &warehouseLinkedServiceTypeProperties) + if err != nil { + return err + } + wls.WarehouseLinkedServiceTypeProperties = &warehouseLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if wls.AdditionalProperties == nil { + wls.AdditionalProperties = make(map[string]interface{}) + } + wls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + wls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + wls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + wls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wls.Type = typeVar + } + } + } + + return nil +} + +// WarehouseLinkedServiceTypeProperties microsoft Fabric Warehouse linked service properties. +type WarehouseLinkedServiceTypeProperties struct { + // ArtifactID - The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression with resultType string). + ArtifactID interface{} `json:"artifactId,omitempty"` + // Endpoint - The endpoint of Microsoft Fabric Warehouse server. Type: string (or Expression with resultType string). + Endpoint interface{} `json:"endpoint,omitempty"` + // WorkspaceID - The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). + WorkspaceID interface{} `json:"workspaceId,omitempty"` + // ServicePrincipalID - The ID of the application used to authenticate against Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). + ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + // ServicePrincipalKey - The Key of the application used to authenticate against Microsoft Fabric Warehouse. + ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` + // Tenant - 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"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` + // ServicePrincipalCredentialType - 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"` + // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for WarehouseLinkedServiceTypeProperties struct. +func (wlstp *WarehouseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "artifactId": + if v != nil { + var artifactID interface{} + err = json.Unmarshal(*v, &artifactID) + if err != nil { + return err + } + wlstp.ArtifactID = artifactID + } + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + wlstp.Endpoint = endpoint + } + case "workspaceId": + if v != nil { + var workspaceID interface{} + err = json.Unmarshal(*v, &workspaceID) + if err != nil { + return err + } + wlstp.WorkspaceID = workspaceID + } + case "servicePrincipalId": + if v != nil { + var servicePrincipalID interface{} + err = json.Unmarshal(*v, &servicePrincipalID) + if err != nil { + return err + } + wlstp.ServicePrincipalID = servicePrincipalID + } + case "servicePrincipalKey": + if v != nil { + servicePrincipalKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + wlstp.ServicePrincipalKey = servicePrincipalKey + } + case "tenant": + if v != nil { + var tenant interface{} + err = json.Unmarshal(*v, &tenant) + if err != nil { + return err + } + wlstp.Tenant = tenant + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + wlstp.EncryptedCredential = &encryptedCredential + } + case "servicePrincipalCredentialType": + if v != nil { + var servicePrincipalCredentialType interface{} + err = json.Unmarshal(*v, &servicePrincipalCredentialType) + if err != nil { + return err + } + wlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType + } + case "servicePrincipalCredential": + if v != nil { + servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + wlstp.ServicePrincipalCredential = servicePrincipalCredential + } + } + } + + return nil +} + +// WarehouseSink a copy activity Microsoft Fabric Warehouse sink. +type WarehouseSink struct { + // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). + PreCopyScript interface{} `json:"preCopyScript,omitempty"` + // AllowCopyCommand - Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). + AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` + // CopyCommandSettings - Specifies Copy Command related settings when allowCopyCommand is true. + CopyCommandSettings *DWCopyCommandSettings `json:"copyCommandSettings,omitempty"` + // TableOption - 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"` + // WriteBehavior - Write behavior when copying data into azure Microsoft Fabric Data Warehouse. Type: DWWriteBehaviorEnum (or Expression with resultType DWWriteBehaviorEnum) + WriteBehavior interface{} `json:"writeBehavior,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. + WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + // WriteBatchTimeout - 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"` + // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). + SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + // SinkRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' + Type TypeBasicCopySink `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WarehouseSink. +func (ws WarehouseSink) MarshalJSON() ([]byte, error) { + ws.Type = TypeBasicCopySinkTypeWarehouseSink + objectMap := make(map[string]interface{}) + if ws.PreCopyScript != nil { + objectMap["preCopyScript"] = ws.PreCopyScript + } + if ws.AllowCopyCommand != nil { + objectMap["allowCopyCommand"] = ws.AllowCopyCommand + } + if ws.CopyCommandSettings != nil { + objectMap["copyCommandSettings"] = ws.CopyCommandSettings + } + if ws.TableOption != nil { + objectMap["tableOption"] = ws.TableOption + } + if ws.WriteBehavior != nil { + objectMap["writeBehavior"] = ws.WriteBehavior + } + if ws.WriteBatchSize != nil { + objectMap["writeBatchSize"] = ws.WriteBatchSize + } + if ws.WriteBatchTimeout != nil { + objectMap["writeBatchTimeout"] = ws.WriteBatchTimeout + } + if ws.SinkRetryCount != nil { + objectMap["sinkRetryCount"] = ws.SinkRetryCount + } + if ws.SinkRetryWait != nil { + objectMap["sinkRetryWait"] = ws.SinkRetryWait + } + if ws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ws.MaxConcurrentConnections + } + if ws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ws.DisableMetricsCollection + } + if ws.Type != "" { + objectMap["type"] = ws.Type + } + for k, v := range ws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { + return nil, false +} + +// AsSalesforceV2Sink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { + return nil, false +} + +// AsLakeHouseTableSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { + return nil, false +} + +// AsMongoDbV2Sink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { + return nil, false +} + +// AsMongoDbAtlasSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { + return nil, false +} + +// AsSalesforceSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSalesforceSink() (*SalesforceSink, bool) { + return nil, false +} + +// AsAzureDataExplorerSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { + return nil, false +} + +// AsDynamicsCrmSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { + return nil, false +} + +// AsDynamicsSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsDynamicsSink() (*DynamicsSink, bool) { + return nil, false +} + +// AsMicrosoftAccessSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { + return nil, false +} + +// AsInformixSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsInformixSink() (*InformixSink, bool) { + return nil, false +} + +// AsOdbcSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsOdbcSink() (*OdbcSink, bool) { + return nil, false +} + +// AsAzureSearchIndexSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { + return nil, false +} + +// AsAzureBlobFSSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { + return nil, false +} + +// AsOracleSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsOracleSink() (*OracleSink, bool) { + return nil, false +} + +// AsSnowflakeV2Sink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { + return nil, false +} + +// AsSnowflakeSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSnowflakeSink() (*SnowflakeSink, bool) { + return nil, false +} + +// AsSQLDWSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSQLDWSink() (*SQLDWSink, bool) { + return nil, false +} + +// AsSQLMISink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSQLMISink() (*SQLMISink, bool) { + return nil, false +} + +// AsAzureSQLSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureSQLSink() (*AzureSQLSink, bool) { + return nil, false +} + +// AsSQLServerSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSQLServerSink() (*SQLServerSink, bool) { + return nil, false +} + +// AsSQLSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSQLSink() (*SQLSink, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { + return nil, false +} + +// AsDocumentDbCollectionSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { + return nil, false +} + +// AsFileSystemSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsFileSystemSink() (*FileSystemSink, bool) { + return nil, false +} + +// AsBlobSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsBlobSink() (*BlobSink, bool) { + return nil, false +} + +// AsBinarySink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsBinarySink() (*BinarySink, bool) { + return nil, false +} + +// AsParquetSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsParquetSink() (*ParquetSink, bool) { + return nil, false +} + +// AsAvroSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAvroSink() (*AvroSink, bool) { + return nil, false +} + +// AsAzureTableSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureTableSink() (*AzureTableSink, bool) { + return nil, false +} + +// AsAzureQueueSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureQueueSink() (*AzureQueueSink, bool) { + return nil, false +} + +// AsSapCloudForCustomerSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { + return nil, false +} + +// AsWarehouseSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsWarehouseSink() (*WarehouseSink, bool) { + return &ws, true +} + +// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { + return nil, false +} + +// AsAzureMySQLSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { + return nil, false +} + +// AsAzurePostgreSQLSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { + return nil, false +} + +// AsRestSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsRestSink() (*RestSink, bool) { + return nil, false +} + +// AsOrcSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsOrcSink() (*OrcSink, bool) { + return nil, false +} + +// AsJSONSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsJSONSink() (*JSONSink, bool) { + return nil, false +} + +// AsDelimitedTextSink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { + return nil, false +} + +// AsCopySink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsCopySink() (*CopySink, bool) { + return nil, false +} + +// AsBasicCopySink is the BasicCopySink implementation for WarehouseSink. +func (ws WarehouseSink) AsBasicCopySink() (BasicCopySink, bool) { + return &ws, true +} + +// UnmarshalJSON is the custom unmarshaler for WarehouseSink struct. +func (ws *WarehouseSink) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preCopyScript": + if v != nil { + var preCopyScript interface{} + err = json.Unmarshal(*v, &preCopyScript) + if err != nil { + return err + } + ws.PreCopyScript = preCopyScript + } + case "allowCopyCommand": + if v != nil { + var allowCopyCommand interface{} + err = json.Unmarshal(*v, &allowCopyCommand) + if err != nil { + return err + } + ws.AllowCopyCommand = allowCopyCommand + } + case "copyCommandSettings": + if v != nil { + var copyCommandSettings DWCopyCommandSettings + err = json.Unmarshal(*v, ©CommandSettings) + if err != nil { + return err + } + ws.CopyCommandSettings = ©CommandSettings + } + case "tableOption": + if v != nil { + var tableOption interface{} + err = json.Unmarshal(*v, &tableOption) + if err != nil { + return err + } + ws.TableOption = tableOption + } + case "writeBehavior": + if v != nil { + var writeBehavior interface{} + err = json.Unmarshal(*v, &writeBehavior) + if err != nil { + return err + } + ws.WriteBehavior = writeBehavior + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ws.AdditionalProperties == nil { + ws.AdditionalProperties = make(map[string]interface{}) + } + ws.AdditionalProperties[k] = additionalProperties + } + case "writeBatchSize": + if v != nil { + var writeBatchSize interface{} + err = json.Unmarshal(*v, &writeBatchSize) + if err != nil { + return err + } + ws.WriteBatchSize = writeBatchSize + } + case "writeBatchTimeout": + if v != nil { + var writeBatchTimeout interface{} + err = json.Unmarshal(*v, &writeBatchTimeout) + if err != nil { + return err + } + ws.WriteBatchTimeout = writeBatchTimeout + } + case "sinkRetryCount": + if v != nil { + var sinkRetryCount interface{} + err = json.Unmarshal(*v, &sinkRetryCount) + if err != nil { + return err + } + ws.SinkRetryCount = sinkRetryCount + } + case "sinkRetryWait": + if v != nil { + var sinkRetryWait interface{} + err = json.Unmarshal(*v, &sinkRetryWait) + if err != nil { + return err + } + ws.SinkRetryWait = sinkRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ws.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySink + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ws.Type = typeVar + } + } + } + + return nil +} + +// WarehouseSource a copy activity Microsoft Fabric Warehouse source. +type WarehouseSource struct { + // SQLReaderQuery - Microsoft Fabric Warehouse reader query. Type: string (or Expression with resultType string). + SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + // SQLReaderStoredProcedureName - 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 interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + // StoredProcedureParameters - 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"` + // IsolationLevel - 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 interface{} `json:"isolationLevel,omitempty"` + // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". + PartitionOption interface{} `json:"partitionOption,omitempty"` + // PartitionSettings - The settings that will be leveraged for Sql source partitioning. + PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WarehouseSource. +func (ws WarehouseSource) MarshalJSON() ([]byte, error) { + ws.Type = TypeBasicCopySourceTypeWarehouseSource + objectMap := make(map[string]interface{}) + if ws.SQLReaderQuery != nil { + objectMap["sqlReaderQuery"] = ws.SQLReaderQuery + } + if ws.SQLReaderStoredProcedureName != nil { + objectMap["sqlReaderStoredProcedureName"] = ws.SQLReaderStoredProcedureName + } + if ws.StoredProcedureParameters != nil { + objectMap["storedProcedureParameters"] = ws.StoredProcedureParameters + } + if ws.IsolationLevel != nil { + objectMap["isolationLevel"] = ws.IsolationLevel + } + if ws.PartitionOption != nil { + objectMap["partitionOption"] = ws.PartitionOption + } + if ws.PartitionSettings != nil { + objectMap["partitionSettings"] = ws.PartitionSettings + } + if ws.QueryTimeout != nil { + objectMap["queryTimeout"] = ws.QueryTimeout + } + if ws.AdditionalColumns != nil { + objectMap["additionalColumns"] = ws.AdditionalColumns + } + if ws.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ws.SourceRetryCount + } + if ws.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ws.SourceRetryWait + } + if ws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ws.MaxConcurrentConnections + } + if ws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ws.DisableMetricsCollection + } + if ws.Type != "" { + objectMap["type"] = ws.Type + } + for k, v := range ws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsWarehouseSource() (*WarehouseSource, bool) { + return &ws, true +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &ws, true +} + +// AsBinarySource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for WarehouseSource. +func (ws WarehouseSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ws, true +} + +// UnmarshalJSON is the custom unmarshaler for WarehouseSource struct. +func (ws *WarehouseSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "sqlReaderQuery": + if v != nil { + var SQLReaderQuery interface{} + err = json.Unmarshal(*v, &SQLReaderQuery) + if err != nil { + return err + } + ws.SQLReaderQuery = SQLReaderQuery + } + case "sqlReaderStoredProcedureName": + if v != nil { + var SQLReaderStoredProcedureName interface{} + err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) + if err != nil { + return err + } + ws.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName + } + case "storedProcedureParameters": + if v != nil { + var storedProcedureParameters interface{} + err = json.Unmarshal(*v, &storedProcedureParameters) + if err != nil { + return err + } + ws.StoredProcedureParameters = storedProcedureParameters + } + case "isolationLevel": + if v != nil { + var isolationLevel interface{} + err = json.Unmarshal(*v, &isolationLevel) + if err != nil { + return err + } + ws.IsolationLevel = isolationLevel + } + case "partitionOption": + if v != nil { + var partitionOption interface{} + err = json.Unmarshal(*v, &partitionOption) + if err != nil { + return err + } + ws.PartitionOption = partitionOption + } + case "partitionSettings": + if v != nil { + var partitionSettings SQLPartitionSettings + err = json.Unmarshal(*v, &partitionSettings) + if err != nil { + return err + } + ws.PartitionSettings = &partitionSettings + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + ws.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ws.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ws.AdditionalProperties == nil { + ws.AdditionalProperties = make(map[string]interface{}) + } + ws.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ws.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ws.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ws.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ws.Type = typeVar + } + } + } + + return nil +} + +// WarehouseTableDataset microsoft Fabric Warehouse dataset. +type WarehouseTableDataset struct { + // WarehouseTableDatasetTypeProperties - Microsoft Fabric Warehouse dataset properties. + *WarehouseTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WarehouseTableDataset. +func (wtd WarehouseTableDataset) MarshalJSON() ([]byte, error) { + wtd.Type = TypeBasicDatasetTypeWarehouseTable + objectMap := make(map[string]interface{}) + if wtd.WarehouseTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = wtd.WarehouseTableDatasetTypeProperties + } + if wtd.Description != nil { + objectMap["description"] = wtd.Description + } + if wtd.Structure != nil { + objectMap["structure"] = wtd.Structure + } + if wtd.Schema != nil { + objectMap["schema"] = wtd.Schema + } + if wtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = wtd.LinkedServiceName + } + if wtd.Parameters != nil { + objectMap["parameters"] = wtd.Parameters + } + if wtd.Annotations != nil { + objectMap["annotations"] = wtd.Annotations + } + if wtd.Folder != nil { + objectMap["folder"] = wtd.Folder + } + if wtd.Type != "" { + objectMap["type"] = wtd.Type + } + for k, v := range wtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return &wtd, true +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for WarehouseTableDataset. +func (wtd WarehouseTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &wtd, true +} + +// UnmarshalJSON is the custom unmarshaler for WarehouseTableDataset struct. +func (wtd *WarehouseTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var warehouseTableDatasetTypeProperties WarehouseTableDatasetTypeProperties + err = json.Unmarshal(*v, &warehouseTableDatasetTypeProperties) + if err != nil { + return err + } + wtd.WarehouseTableDatasetTypeProperties = &warehouseTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if wtd.AdditionalProperties == nil { + wtd.AdditionalProperties = make(map[string]interface{}) + } + wtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + wtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + wtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + wtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + wtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + wtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + wtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wtd.Type = typeVar + } + } + } + + return nil +} + +// WarehouseTableDatasetTypeProperties microsoft Fabric Warehouse dataset properties. +type WarehouseTableDatasetTypeProperties struct { + // Schema - The schema name of the Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). + Schema interface{} `json:"schema,omitempty"` + // Table - The table name of the Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). + Table interface{} `json:"table,omitempty"` +} + +// WebActivity web activity. +type WebActivity struct { + // WebActivityTypeProperties - Web activity properties. + *WebActivityTypeProperties `json:"typeProperties,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Policy - Activity policy. + Policy *ActivityPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebActivity. +func (wa WebActivity) MarshalJSON() ([]byte, error) { + wa.Type = TypeBasicActivityTypeWebActivity + objectMap := make(map[string]interface{}) + if wa.WebActivityTypeProperties != nil { + objectMap["typeProperties"] = wa.WebActivityTypeProperties + } + if wa.LinkedServiceName != nil { + objectMap["linkedServiceName"] = wa.LinkedServiceName + } + if wa.Policy != nil { + objectMap["policy"] = wa.Policy + } + if wa.Name != nil { + objectMap["name"] = wa.Name + } + if wa.Description != nil { + objectMap["description"] = wa.Description + } + if wa.State != "" { + objectMap["state"] = wa.State + } + if wa.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = wa.OnInactiveMarkAs + } + if wa.DependsOn != nil { + objectMap["dependsOn"] = wa.DependsOn + } + if wa.UserProperties != nil { + objectMap["userProperties"] = wa.UserProperties + } + if wa.Type != "" { + objectMap["type"] = wa.Type + } + for k, v := range wa.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsWebActivity() (*WebActivity, bool) { + return &wa, true +} + +// AsLookupActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return &wa, true +} + +// AsWebHookActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return nil, false +} + +// AsAppendVariableActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return nil, false +} + +// AsActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for WebActivity. +func (wa WebActivity) AsBasicActivity() (BasicActivity, bool) { + return &wa, true +} + +// UnmarshalJSON is the custom unmarshaler for WebActivity struct. +func (wa *WebActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var webActivityTypeProperties WebActivityTypeProperties + err = json.Unmarshal(*v, &webActivityTypeProperties) + if err != nil { + return err + } + wa.WebActivityTypeProperties = &webActivityTypeProperties + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + wa.LinkedServiceName = &linkedServiceName + } + case "policy": + if v != nil { + var policy ActivityPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + wa.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if wa.AdditionalProperties == nil { + wa.AdditionalProperties = make(map[string]interface{}) + } + wa.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wa.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wa.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + wa.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + wa.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + wa.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + wa.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wa.Type = typeVar + } + } + } + + return nil +} + +// WebActivityAuthentication web activity authentication properties. +type WebActivityAuthentication struct { + // Type - Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal) + Type *string `json:"type,omitempty"` + // Pfx - Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal + Pfx BasicSecretBase `json:"pfx,omitempty"` + // Username - 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"` + // Password - Password for the PFX file or basic authentication / Secret when used for ServicePrincipal + Password BasicSecretBase `json:"password,omitempty"` + // Resource - 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"` + // UserTenant - 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"` + // Credential - The credential reference containing authentication information. + Credential *CredentialReference `json:"credential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for WebActivityAuthentication struct. +func (waa *WebActivityAuthentication) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "type": + if v != nil { + var typeVar string + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + waa.Type = &typeVar + } + case "pfx": + if v != nil { + pfx, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + waa.Pfx = pfx + } + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + waa.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + waa.Password = password + } + case "resource": + if v != nil { + var resource interface{} + err = json.Unmarshal(*v, &resource) + if err != nil { + return err + } + waa.Resource = resource + } + case "userTenant": + if v != nil { + var userTenant interface{} + err = json.Unmarshal(*v, &userTenant) + if err != nil { + return err + } + waa.UserTenant = userTenant + } + case "credential": + if v != nil { + var credential CredentialReference + err = json.Unmarshal(*v, &credential) + if err != nil { + return err + } + waa.Credential = &credential + } + } + } + + return nil +} + +// WebActivityTypeProperties web activity type properties. +type WebActivityTypeProperties struct { + // Method - Rest API method for target endpoint. Possible values include: 'WebActivityMethodGET', 'WebActivityMethodPOST', 'WebActivityMethodPUT', 'WebActivityMethodDELETE' + Method WebActivityMethod `json:"method,omitempty"` + // URL - Web activity target endpoint and path. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // Headers - 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 map[string]*string `json:"headers"` + // Body - 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"` + // Authentication - Authentication method used for calling the endpoint. + Authentication *WebActivityAuthentication `json:"authentication,omitempty"` + // DisableCertValidation - When set to true, Certificate validation will be disabled. + DisableCertValidation *bool `json:"disableCertValidation,omitempty"` + // HTTPRequestTimeout - 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 interface{} `json:"httpRequestTimeout,omitempty"` + // TurnOffAsync - 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 `json:"turnOffAsync,omitempty"` + // Datasets - List of datasets passed to web endpoint. + Datasets *[]DatasetReference `json:"datasets,omitempty"` + // LinkedServices - List of linked services passed to web endpoint. + LinkedServices *[]LinkedServiceReference `json:"linkedServices,omitempty"` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebActivityTypeProperties. +func (watp WebActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if watp.Method != "" { + objectMap["method"] = watp.Method + } + if watp.URL != nil { + objectMap["url"] = watp.URL + } + if watp.Headers != nil { + objectMap["headers"] = watp.Headers + } + if watp.Body != nil { + objectMap["body"] = watp.Body + } + if watp.Authentication != nil { + objectMap["authentication"] = watp.Authentication + } + if watp.DisableCertValidation != nil { + objectMap["disableCertValidation"] = watp.DisableCertValidation + } + if watp.HTTPRequestTimeout != nil { + objectMap["httpRequestTimeout"] = watp.HTTPRequestTimeout + } + if watp.TurnOffAsync != nil { + objectMap["turnOffAsync"] = watp.TurnOffAsync + } + if watp.Datasets != nil { + objectMap["datasets"] = watp.Datasets + } + if watp.LinkedServices != nil { + objectMap["linkedServices"] = watp.LinkedServices + } + if watp.ConnectVia != nil { + objectMap["connectVia"] = watp.ConnectVia + } + return json.Marshal(objectMap) +} + +// WebAnonymousAuthentication a WebLinkedService that uses anonymous authentication to communicate with an +// HTTP endpoint. +type WebAnonymousAuthentication struct { + // URL - 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"` + // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' + AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebAnonymousAuthentication. +func (waa WebAnonymousAuthentication) MarshalJSON() ([]byte, error) { + waa.AuthenticationType = AuthenticationTypeAnonymous + objectMap := make(map[string]interface{}) + if waa.URL != nil { + objectMap["url"] = waa.URL + } + if waa.AuthenticationType != "" { + objectMap["authenticationType"] = waa.AuthenticationType + } + return json.Marshal(objectMap) +} + +// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. +func (waa WebAnonymousAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { + return nil, false +} + +// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. +func (waa WebAnonymousAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { + return nil, false +} + +// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. +func (waa WebAnonymousAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { + return &waa, true +} + +// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. +func (waa WebAnonymousAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { + return nil, false +} + +// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. +func (waa WebAnonymousAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { + return &waa, true +} + +// WebBasicAuthentication a WebLinkedService that uses basic authentication to communicate with an HTTP +// endpoint. +type WebBasicAuthentication struct { + // Username - User name for Basic authentication. Type: string (or Expression with resultType string). + Username interface{} `json:"username,omitempty"` + // Password - The password for Basic authentication. + Password BasicSecretBase `json:"password,omitempty"` + // URL - 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"` + // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' + AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebBasicAuthentication. +func (wba WebBasicAuthentication) MarshalJSON() ([]byte, error) { + wba.AuthenticationType = AuthenticationTypeBasic + objectMap := make(map[string]interface{}) + if wba.Username != nil { + objectMap["username"] = wba.Username + } + objectMap["password"] = wba.Password + if wba.URL != nil { + objectMap["url"] = wba.URL + } + if wba.AuthenticationType != "" { + objectMap["authenticationType"] = wba.AuthenticationType + } + return json.Marshal(objectMap) +} + +// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. +func (wba WebBasicAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { + return nil, false +} + +// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. +func (wba WebBasicAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { + return &wba, true +} + +// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. +func (wba WebBasicAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { + return nil, false +} + +// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. +func (wba WebBasicAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { + return nil, false +} + +// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. +func (wba WebBasicAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { + return &wba, true +} + +// UnmarshalJSON is the custom unmarshaler for WebBasicAuthentication struct. +func (wba *WebBasicAuthentication) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "username": + if v != nil { + var username interface{} + err = json.Unmarshal(*v, &username) + if err != nil { + return err + } + wba.Username = username + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + wba.Password = password + } + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + wba.URL = URL + } + case "authenticationType": + if v != nil { + var authenticationType AuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + wba.AuthenticationType = authenticationType + } + } + } + + return nil +} + +// WebClientCertificateAuthentication a WebLinkedService that uses client certificate based authentication +// to communicate with an HTTP endpoint. This scheme follows mutual authentication; the server must also +// provide valid credentials to the client. +type WebClientCertificateAuthentication struct { + // Pfx - Base64-encoded contents of a PFX file. + Pfx BasicSecretBase `json:"pfx,omitempty"` + // Password - Password for the PFX file. + Password BasicSecretBase `json:"password,omitempty"` + // URL - 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"` + // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' + AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebClientCertificateAuthentication. +func (wcca WebClientCertificateAuthentication) MarshalJSON() ([]byte, error) { + wcca.AuthenticationType = AuthenticationTypeClientCertificate + objectMap := make(map[string]interface{}) + objectMap["pfx"] = wcca.Pfx + objectMap["password"] = wcca.Password + if wcca.URL != nil { + objectMap["url"] = wcca.URL + } + if wcca.AuthenticationType != "" { + objectMap["authenticationType"] = wcca.AuthenticationType + } + return json.Marshal(objectMap) +} + +// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. +func (wcca WebClientCertificateAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { + return &wcca, true +} + +// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. +func (wcca WebClientCertificateAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { + return nil, false +} + +// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. +func (wcca WebClientCertificateAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { + return nil, false +} + +// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. +func (wcca WebClientCertificateAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { + return nil, false +} + +// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. +func (wcca WebClientCertificateAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { + return &wcca, true +} + +// UnmarshalJSON is the custom unmarshaler for WebClientCertificateAuthentication struct. +func (wcca *WebClientCertificateAuthentication) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "pfx": + if v != nil { + pfx, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + wcca.Pfx = pfx + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + wcca.Password = password + } + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + wcca.URL = URL + } + case "authenticationType": + if v != nil { + var authenticationType AuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + wcca.AuthenticationType = authenticationType + } + } + } + + return nil +} + +// WebHookActivity webHook activity. +type WebHookActivity struct { + // WebHookActivityTypeProperties - WebHook activity properties. + *WebHookActivityTypeProperties `json:"typeProperties,omitempty"` + // Policy - Activity policy. + Policy *SecureInputOutputPolicy `json:"policy,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Name - Activity name. + Name *string `json:"name,omitempty"` + // Description - Activity description. + Description *string `json:"description,omitempty"` + // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' + State ActivityState `json:"state,omitempty"` + // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' + OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` + // DependsOn - Activity depends on condition. + DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` + // UserProperties - Activity user properties. + UserProperties *[]UserProperty `json:"userProperties,omitempty"` + // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' + Type TypeBasicActivity `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebHookActivity. +func (wha WebHookActivity) MarshalJSON() ([]byte, error) { + wha.Type = TypeBasicActivityTypeWebHook + objectMap := make(map[string]interface{}) + if wha.WebHookActivityTypeProperties != nil { + objectMap["typeProperties"] = wha.WebHookActivityTypeProperties + } + if wha.Policy != nil { + objectMap["policy"] = wha.Policy + } + if wha.Name != nil { + objectMap["name"] = wha.Name + } + if wha.Description != nil { + objectMap["description"] = wha.Description + } + if wha.State != "" { + objectMap["state"] = wha.State + } + if wha.OnInactiveMarkAs != "" { + objectMap["onInactiveMarkAs"] = wha.OnInactiveMarkAs + } + if wha.DependsOn != nil { + objectMap["dependsOn"] = wha.DependsOn + } + if wha.UserProperties != nil { + objectMap["userProperties"] = wha.UserProperties + } + if wha.Type != "" { + objectMap["type"] = wha.Type + } + for k, v := range wha.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { + return nil, false +} + +// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { + return nil, false +} + +// AsSynapseNotebookActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { + return nil, false +} + +// AsScriptActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsScriptActivity() (*ScriptActivity, bool) { + return nil, false +} + +// AsExecuteDataFlowActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { + return nil, false +} + +// AsAzureFunctionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { + return nil, false +} + +// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { + return nil, false +} + +// AsDatabricksSparkJarActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { + return nil, false +} + +// AsDatabricksNotebookActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { + return nil, false +} + +// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { + return nil, false +} + +// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { + return nil, false +} + +// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { + return nil, false +} + +// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { + return nil, false +} + +// AsGetMetadataActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { + return nil, false +} + +// AsWebActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsWebActivity() (*WebActivity, bool) { + return nil, false +} + +// AsLookupActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsLookupActivity() (*LookupActivity, bool) { + return nil, false +} + +// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { + return nil, false +} + +// AsDeleteActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsDeleteActivity() (*DeleteActivity, bool) { + return nil, false +} + +// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { + return nil, false +} + +// AsCustomActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsCustomActivity() (*CustomActivity, bool) { + return nil, false +} + +// AsExecuteSSISPackageActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { + return nil, false +} + +// AsHDInsightSparkActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { + return nil, false +} + +// AsHDInsightStreamingActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { + return nil, false +} + +// AsHDInsightMapReduceActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { + return nil, false +} + +// AsHDInsightPigActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { + return nil, false +} + +// AsHDInsightHiveActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { + return nil, false +} + +// AsCopyActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsCopyActivity() (*CopyActivity, bool) { + return nil, false +} + +// AsExecutionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { + return nil, false +} + +// AsBasicExecutionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { + return nil, false +} + +// AsWebHookActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsWebHookActivity() (*WebHookActivity, bool) { + return &wha, true +} + +// AsAppendVariableActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { + return nil, false +} + +// AsSetVariableActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { + return nil, false +} + +// AsFilterActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsFilterActivity() (*FilterActivity, bool) { + return nil, false +} + +// AsValidationActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsValidationActivity() (*ValidationActivity, bool) { + return nil, false +} + +// AsUntilActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsUntilActivity() (*UntilActivity, bool) { + return nil, false +} + +// AsFailActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsFailActivity() (*FailActivity, bool) { + return nil, false +} + +// AsWaitActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsWaitActivity() (*WaitActivity, bool) { + return nil, false +} + +// AsForEachActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsForEachActivity() (*ForEachActivity, bool) { + return nil, false +} + +// AsSwitchActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsSwitchActivity() (*SwitchActivity, bool) { + return nil, false +} + +// AsIfConditionActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { + return nil, false +} + +// AsExecutePipelineActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { + return nil, false +} + +// AsControlActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsControlActivity() (*ControlActivity, bool) { + return nil, false +} + +// AsBasicControlActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { + return &wha, true +} + +// AsActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsActivity() (*Activity, bool) { + return nil, false +} + +// AsBasicActivity is the BasicActivity implementation for WebHookActivity. +func (wha WebHookActivity) AsBasicActivity() (BasicActivity, bool) { + return &wha, true +} + +// UnmarshalJSON is the custom unmarshaler for WebHookActivity struct. +func (wha *WebHookActivity) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var webHookActivityTypeProperties WebHookActivityTypeProperties + err = json.Unmarshal(*v, &webHookActivityTypeProperties) + if err != nil { + return err + } + wha.WebHookActivityTypeProperties = &webHookActivityTypeProperties + } + case "policy": + if v != nil { + var policy SecureInputOutputPolicy + err = json.Unmarshal(*v, &policy) + if err != nil { + return err + } + wha.Policy = &policy + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if wha.AdditionalProperties == nil { + wha.AdditionalProperties = make(map[string]interface{}) + } + wha.AdditionalProperties[k] = additionalProperties + } + case "name": + if v != nil { + var name string + err = json.Unmarshal(*v, &name) + if err != nil { + return err + } + wha.Name = &name + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wha.Description = &description + } + case "state": + if v != nil { + var state ActivityState + err = json.Unmarshal(*v, &state) + if err != nil { + return err + } + wha.State = state + } + case "onInactiveMarkAs": + if v != nil { + var onInactiveMarkAs ActivityOnInactiveMarkAs + err = json.Unmarshal(*v, &onInactiveMarkAs) + if err != nil { + return err + } + wha.OnInactiveMarkAs = onInactiveMarkAs + } + case "dependsOn": + if v != nil { + var dependsOn []ActivityDependency + err = json.Unmarshal(*v, &dependsOn) + if err != nil { + return err + } + wha.DependsOn = &dependsOn + } + case "userProperties": + if v != nil { + var userProperties []UserProperty + err = json.Unmarshal(*v, &userProperties) + if err != nil { + return err + } + wha.UserProperties = &userProperties + } + case "type": + if v != nil { + var typeVar TypeBasicActivity + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wha.Type = typeVar + } + } + } + + return nil +} + +// WebHookActivityTypeProperties webHook activity type properties. +type WebHookActivityTypeProperties struct { + // Method - Rest API method for target endpoint. + Method *string `json:"method,omitempty"` + // URL - WebHook activity target endpoint and path. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // Timeout - 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"` + // Headers - 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 map[string]*string `json:"headers"` + // Body - 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"` + // Authentication - Authentication method used for calling the endpoint. + Authentication *WebActivityAuthentication `json:"authentication,omitempty"` + // ReportStatusOnCallBack - 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"` +} + +// MarshalJSON is the custom marshaler for WebHookActivityTypeProperties. +func (whatp WebHookActivityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if whatp.Method != nil { + objectMap["method"] = whatp.Method + } + if whatp.URL != nil { + objectMap["url"] = whatp.URL + } + if whatp.Timeout != nil { + objectMap["timeout"] = whatp.Timeout + } + if whatp.Headers != nil { + objectMap["headers"] = whatp.Headers + } + if whatp.Body != nil { + objectMap["body"] = whatp.Body + } + if whatp.Authentication != nil { + objectMap["authentication"] = whatp.Authentication + } + if whatp.ReportStatusOnCallBack != nil { + objectMap["reportStatusOnCallBack"] = whatp.ReportStatusOnCallBack + } + return json.Marshal(objectMap) +} + +// WebLinkedService web linked service. +type WebLinkedService struct { + // TypeProperties - Web linked service properties. + TypeProperties BasicWebLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebLinkedService. +func (wls WebLinkedService) MarshalJSON() ([]byte, error) { + wls.Type = TypeBasicLinkedServiceTypeWeb + objectMap := make(map[string]interface{}) + objectMap["typeProperties"] = wls.TypeProperties + if wls.ConnectVia != nil { + objectMap["connectVia"] = wls.ConnectVia + } + if wls.Description != nil { + objectMap["description"] = wls.Description + } + if wls.Parameters != nil { + objectMap["parameters"] = wls.Parameters + } + if wls.Annotations != nil { + objectMap["annotations"] = wls.Annotations + } + if wls.Type != "" { + objectMap["type"] = wls.Type + } + for k, v := range wls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return &wls, true +} + +// AsODataLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for WebLinkedService. +func (wls WebLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &wls, true +} + +// UnmarshalJSON is the custom unmarshaler for WebLinkedService struct. +func (wls *WebLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + typeProperties, err := unmarshalBasicWebLinkedServiceTypeProperties(*v) + if err != nil { + return err + } + wls.TypeProperties = typeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if wls.AdditionalProperties == nil { + wls.AdditionalProperties = make(map[string]interface{}) + } + wls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + wls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + wls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + wls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wls.Type = typeVar + } + } + } + + return nil +} + +// BasicWebLinkedServiceTypeProperties base definition of WebLinkedServiceTypeProperties, this typeProperties is +// polymorphic based on authenticationType, so not flattened in SDK models. +type BasicWebLinkedServiceTypeProperties interface { + AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) + AsWebBasicAuthentication() (*WebBasicAuthentication, bool) + AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) + AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) +} + +// WebLinkedServiceTypeProperties base definition of WebLinkedServiceTypeProperties, this typeProperties is +// polymorphic based on authenticationType, so not flattened in SDK models. +type WebLinkedServiceTypeProperties struct { + // URL - 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"` + // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' + AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` +} + +func unmarshalBasicWebLinkedServiceTypeProperties(body []byte) (BasicWebLinkedServiceTypeProperties, error) { + var m map[string]interface{} + err := json.Unmarshal(body, &m) + if err != nil { + return nil, err + } + + switch m["authenticationType"] { + case string(AuthenticationTypeClientCertificate): + var wcca WebClientCertificateAuthentication + err := json.Unmarshal(body, &wcca) + return wcca, err + case string(AuthenticationTypeBasic): + var wba WebBasicAuthentication + err := json.Unmarshal(body, &wba) + return wba, err + case string(AuthenticationTypeAnonymous): + var waa WebAnonymousAuthentication + err := json.Unmarshal(body, &waa) + return waa, err + default: + var wlstp WebLinkedServiceTypeProperties + err := json.Unmarshal(body, &wlstp) + return wlstp, err + } +} +func unmarshalBasicWebLinkedServiceTypePropertiesArray(body []byte) ([]BasicWebLinkedServiceTypeProperties, error) { + var rawMessages []*json.RawMessage + err := json.Unmarshal(body, &rawMessages) + if err != nil { + return nil, err + } + + wlstpArray := make([]BasicWebLinkedServiceTypeProperties, len(rawMessages)) + + for index, rawMessage := range rawMessages { + wlstp, err := unmarshalBasicWebLinkedServiceTypeProperties(*rawMessage) + if err != nil { + return nil, err + } + wlstpArray[index] = wlstp + } + return wlstpArray, nil +} + +// MarshalJSON is the custom marshaler for WebLinkedServiceTypeProperties. +func (wlstp WebLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { + wlstp.AuthenticationType = AuthenticationTypeWebLinkedServiceTypeProperties + objectMap := make(map[string]interface{}) + if wlstp.URL != nil { + objectMap["url"] = wlstp.URL + } + if wlstp.AuthenticationType != "" { + objectMap["authenticationType"] = wlstp.AuthenticationType + } + return json.Marshal(objectMap) +} + +// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. +func (wlstp WebLinkedServiceTypeProperties) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { + return nil, false +} + +// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. +func (wlstp WebLinkedServiceTypeProperties) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { + return nil, false +} + +// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. +func (wlstp WebLinkedServiceTypeProperties) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { + return nil, false +} + +// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. +func (wlstp WebLinkedServiceTypeProperties) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { + return &wlstp, true +} + +// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. +func (wlstp WebLinkedServiceTypeProperties) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { + return &wlstp, true +} + +// WebSource a copy activity source for web page table. +type WebSource struct { + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebSource. +func (ws WebSource) MarshalJSON() ([]byte, error) { + ws.Type = TypeBasicCopySourceTypeWebSource + objectMap := make(map[string]interface{}) + if ws.AdditionalColumns != nil { + objectMap["additionalColumns"] = ws.AdditionalColumns + } + if ws.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = ws.SourceRetryCount + } + if ws.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = ws.SourceRetryWait + } + if ws.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = ws.MaxConcurrentConnections + } + if ws.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = ws.DisableMetricsCollection + } + if ws.Type != "" { + objectMap["type"] = ws.Type + } + for k, v := range ws.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsWebSource() (*WebSource, bool) { + return &ws, true +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for WebSource. +func (ws WebSource) AsBasicCopySource() (BasicCopySource, bool) { + return &ws, true +} + +// UnmarshalJSON is the custom unmarshaler for WebSource struct. +func (ws *WebSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + ws.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if ws.AdditionalProperties == nil { + ws.AdditionalProperties = make(map[string]interface{}) + } + ws.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + ws.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + ws.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + ws.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + ws.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + ws.Type = typeVar + } + } + } + + return nil +} + +// WebTableDataset the dataset points to a HTML table in the web page. +type WebTableDataset struct { + // WebTableDatasetTypeProperties - Web table dataset properties. + *WebTableDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WebTableDataset. +func (wtd WebTableDataset) MarshalJSON() ([]byte, error) { + wtd.Type = TypeBasicDatasetTypeWebTable + objectMap := make(map[string]interface{}) + if wtd.WebTableDatasetTypeProperties != nil { + objectMap["typeProperties"] = wtd.WebTableDatasetTypeProperties + } + if wtd.Description != nil { + objectMap["description"] = wtd.Description + } + if wtd.Structure != nil { + objectMap["structure"] = wtd.Structure + } + if wtd.Schema != nil { + objectMap["schema"] = wtd.Schema + } + if wtd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = wtd.LinkedServiceName + } + if wtd.Parameters != nil { + objectMap["parameters"] = wtd.Parameters + } + if wtd.Annotations != nil { + objectMap["annotations"] = wtd.Annotations + } + if wtd.Folder != nil { + objectMap["folder"] = wtd.Folder + } + if wtd.Type != "" { + objectMap["type"] = wtd.Type + } + for k, v := range wtd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return &wtd, true +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for WebTableDataset. +func (wtd WebTableDataset) AsBasicDataset() (BasicDataset, bool) { + return &wtd, true +} + +// UnmarshalJSON is the custom unmarshaler for WebTableDataset struct. +func (wtd *WebTableDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var webTableDatasetTypeProperties WebTableDatasetTypeProperties + err = json.Unmarshal(*v, &webTableDatasetTypeProperties) + if err != nil { + return err + } + wtd.WebTableDatasetTypeProperties = &webTableDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if wtd.AdditionalProperties == nil { + wtd.AdditionalProperties = make(map[string]interface{}) + } + wtd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wtd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + wtd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + wtd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + wtd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + wtd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + wtd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + wtd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wtd.Type = typeVar + } + } + } + + return nil +} + +// WebTableDatasetTypeProperties web table dataset properties. +type WebTableDatasetTypeProperties struct { + // Index - 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"` + // Path - The relative URL to the web page from the linked service URL. Type: string (or Expression with resultType string). + Path interface{} `json:"path,omitempty"` +} + +// WranglingDataFlow power Query data flow. +type WranglingDataFlow struct { + // PowerQueryTypeProperties - PowerQuery data flow type properties. + *PowerQueryTypeProperties `json:"typeProperties,omitempty"` + // Description - The description of the data flow. + Description *string `json:"description,omitempty"` + // Annotations - List of tags that can be used for describing the data flow. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. + Folder *DataFlowFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDataFlowTypeDataFlow', 'TypeBasicDataFlowTypeWranglingDataFlow', 'TypeBasicDataFlowTypeFlowlet', 'TypeBasicDataFlowTypeMappingDataFlow' + Type TypeBasicDataFlow `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for WranglingDataFlow. +func (wdf WranglingDataFlow) MarshalJSON() ([]byte, error) { + wdf.Type = TypeBasicDataFlowTypeWranglingDataFlow + objectMap := make(map[string]interface{}) + if wdf.PowerQueryTypeProperties != nil { + objectMap["typeProperties"] = wdf.PowerQueryTypeProperties + } + if wdf.Description != nil { + objectMap["description"] = wdf.Description + } + if wdf.Annotations != nil { + objectMap["annotations"] = wdf.Annotations + } + if wdf.Folder != nil { + objectMap["folder"] = wdf.Folder + } + if wdf.Type != "" { + objectMap["type"] = wdf.Type + } + return json.Marshal(objectMap) +} + +// AsWranglingDataFlow is the BasicDataFlow implementation for WranglingDataFlow. +func (wdf WranglingDataFlow) AsWranglingDataFlow() (*WranglingDataFlow, bool) { + return &wdf, true +} + +// AsFlowlet is the BasicDataFlow implementation for WranglingDataFlow. +func (wdf WranglingDataFlow) AsFlowlet() (*Flowlet, bool) { + return nil, false +} + +// AsMappingDataFlow is the BasicDataFlow implementation for WranglingDataFlow. +func (wdf WranglingDataFlow) AsMappingDataFlow() (*MappingDataFlow, bool) { + return nil, false +} + +// AsDataFlow is the BasicDataFlow implementation for WranglingDataFlow. +func (wdf WranglingDataFlow) AsDataFlow() (*DataFlow, bool) { + return nil, false +} + +// AsBasicDataFlow is the BasicDataFlow implementation for WranglingDataFlow. +func (wdf WranglingDataFlow) AsBasicDataFlow() (BasicDataFlow, bool) { + return &wdf, true +} + +// UnmarshalJSON is the custom unmarshaler for WranglingDataFlow struct. +func (wdf *WranglingDataFlow) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var powerQueryTypeProperties PowerQueryTypeProperties + err = json.Unmarshal(*v, &powerQueryTypeProperties) + if err != nil { + return err + } + wdf.PowerQueryTypeProperties = &powerQueryTypeProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + wdf.Description = &description + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + wdf.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DataFlowFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + wdf.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataFlow + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + wdf.Type = typeVar + } + } + } + + return nil +} + +// XMLDataset xml dataset. +type XMLDataset struct { + // XMLDatasetTypeProperties - Xml dataset properties. + *XMLDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for XMLDataset. +func (xd XMLDataset) MarshalJSON() ([]byte, error) { + xd.Type = TypeBasicDatasetTypeXML + objectMap := make(map[string]interface{}) + if xd.XMLDatasetTypeProperties != nil { + objectMap["typeProperties"] = xd.XMLDatasetTypeProperties + } + if xd.Description != nil { + objectMap["description"] = xd.Description + } + if xd.Structure != nil { + objectMap["structure"] = xd.Structure + } + if xd.Schema != nil { + objectMap["schema"] = xd.Schema + } + if xd.LinkedServiceName != nil { + objectMap["linkedServiceName"] = xd.LinkedServiceName + } + if xd.Parameters != nil { + objectMap["parameters"] = xd.Parameters + } + if xd.Annotations != nil { + objectMap["annotations"] = xd.Annotations + } + if xd.Folder != nil { + objectMap["folder"] = xd.Folder + } + if xd.Type != "" { + objectMap["type"] = xd.Type + } + for k, v := range xd.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsXMLDataset() (*XMLDataset, bool) { + return &xd, true +} + +// AsJSONDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for XMLDataset. +func (xd XMLDataset) AsBasicDataset() (BasicDataset, bool) { + return &xd, true +} + +// UnmarshalJSON is the custom unmarshaler for XMLDataset struct. +func (xd *XMLDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var XMLDatasetTypeProperties XMLDatasetTypeProperties + err = json.Unmarshal(*v, &XMLDatasetTypeProperties) + if err != nil { + return err + } + xd.XMLDatasetTypeProperties = &XMLDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if xd.AdditionalProperties == nil { + xd.AdditionalProperties = make(map[string]interface{}) + } + xd.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + xd.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + xd.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + xd.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + xd.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + xd.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + xd.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + xd.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + xd.Type = typeVar + } + } + } + + return nil +} + +// XMLDatasetTypeProperties xml dataset properties. +type XMLDatasetTypeProperties struct { + // Location - The location of the json data storage. + Location BasicDatasetLocation `json:"location,omitempty"` + // EncodingName - 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"` + // NullValue - The null value string. Type: string (or Expression with resultType string). + NullValue interface{} `json:"nullValue,omitempty"` + // Compression - The data compression method used for the json dataset. + Compression *DatasetCompression `json:"compression,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for XMLDatasetTypeProperties struct. +func (xdtp *XMLDatasetTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "location": + if v != nil { + location, err := unmarshalBasicDatasetLocation(*v) + if err != nil { + return err + } + xdtp.Location = location + } + case "encodingName": + if v != nil { + var encodingName interface{} + err = json.Unmarshal(*v, &encodingName) + if err != nil { + return err + } + xdtp.EncodingName = encodingName + } + case "nullValue": + if v != nil { + var nullValue interface{} + err = json.Unmarshal(*v, &nullValue) + if err != nil { + return err + } + xdtp.NullValue = nullValue + } + case "compression": + if v != nil { + var compression DatasetCompression + err = json.Unmarshal(*v, &compression) + if err != nil { + return err + } + xdtp.Compression = &compression + } + } + } + + return nil +} + +// XMLReadSettings xml read settings. +type XMLReadSettings struct { + // CompressionProperties - Compression settings. + CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` + // ValidationMode - 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"` + // DetectDataType - Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). + DetectDataType interface{} `json:"detectDataType,omitempty"` + // Namespaces - Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). + Namespaces interface{} `json:"namespaces,omitempty"` + // NamespacePrefixes - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' + Type TypeBasicFormatReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for XMLReadSettings. +func (xrs XMLReadSettings) MarshalJSON() ([]byte, error) { + xrs.Type = TypeBasicFormatReadSettingsTypeXMLReadSettings + objectMap := make(map[string]interface{}) + objectMap["compressionProperties"] = xrs.CompressionProperties + if xrs.ValidationMode != nil { + objectMap["validationMode"] = xrs.ValidationMode + } + if xrs.DetectDataType != nil { + objectMap["detectDataType"] = xrs.DetectDataType + } + if xrs.Namespaces != nil { + objectMap["namespaces"] = xrs.Namespaces + } + if xrs.NamespacePrefixes != nil { + objectMap["namespacePrefixes"] = xrs.NamespacePrefixes + } + if xrs.Type != "" { + objectMap["type"] = xrs.Type + } + for k, v := range xrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsBinaryReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { + return nil, false +} + +// AsXMLReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { + return &xrs, true +} + +// AsJSONReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { + return nil, false +} + +// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { + return nil, false +} + +// AsParquetReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { + return nil, false +} + +// AsFormatReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { + return nil, false +} + +// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. +func (xrs XMLReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { + return &xrs, true +} + +// UnmarshalJSON is the custom unmarshaler for XMLReadSettings struct. +func (xrs *XMLReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "compressionProperties": + if v != nil { + compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) + if err != nil { + return err + } + xrs.CompressionProperties = compressionProperties + } + case "validationMode": + if v != nil { + var validationMode interface{} + err = json.Unmarshal(*v, &validationMode) + if err != nil { + return err + } + xrs.ValidationMode = validationMode + } + case "detectDataType": + if v != nil { + var detectDataType interface{} + err = json.Unmarshal(*v, &detectDataType) + if err != nil { + return err + } + xrs.DetectDataType = detectDataType + } + case "namespaces": + if v != nil { + var namespaces interface{} + err = json.Unmarshal(*v, &namespaces) + if err != nil { + return err + } + xrs.Namespaces = namespaces + } + case "namespacePrefixes": + if v != nil { + var namespacePrefixes interface{} + err = json.Unmarshal(*v, &namespacePrefixes) + if err != nil { + return err + } + xrs.NamespacePrefixes = namespacePrefixes + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if xrs.AdditionalProperties == nil { + xrs.AdditionalProperties = make(map[string]interface{}) + } + xrs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicFormatReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + xrs.Type = typeVar + } + } + } + + return nil +} + +// XMLSource a copy activity Xml source. +type XMLSource struct { + // StoreSettings - Xml store settings. + StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` + // FormatSettings - Xml format settings. + FormatSettings *XMLReadSettings `json:"formatSettings,omitempty"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for XMLSource. +func (xs XMLSource) MarshalJSON() ([]byte, error) { + xs.Type = TypeBasicCopySourceTypeXMLSource + objectMap := make(map[string]interface{}) + objectMap["storeSettings"] = xs.StoreSettings + if xs.FormatSettings != nil { + objectMap["formatSettings"] = xs.FormatSettings + } + if xs.AdditionalColumns != nil { + objectMap["additionalColumns"] = xs.AdditionalColumns + } + if xs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = xs.SourceRetryCount + } + if xs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = xs.SourceRetryWait + } + if xs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = xs.MaxConcurrentConnections + } + if xs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = xs.DisableMetricsCollection + } + if xs.Type != "" { + objectMap["type"] = xs.Type + } + for k, v := range xs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return nil, false +} + +// AsBinarySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsXMLSource() (*XMLSource, bool) { + return &xs, true +} + +// AsJSONSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for XMLSource. +func (xs XMLSource) AsBasicCopySource() (BasicCopySource, bool) { + return &xs, true +} + +// UnmarshalJSON is the custom unmarshaler for XMLSource struct. +func (xs *XMLSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "storeSettings": + if v != nil { + storeSettings, err := unmarshalBasicStoreReadSettings(*v) + if err != nil { + return err + } + xs.StoreSettings = storeSettings + } + case "formatSettings": + if v != nil { + var formatSettings XMLReadSettings + err = json.Unmarshal(*v, &formatSettings) + if err != nil { + return err + } + xs.FormatSettings = &formatSettings + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + xs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if xs.AdditionalProperties == nil { + xs.AdditionalProperties = make(map[string]interface{}) + } + xs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + xs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + xs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + xs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + xs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + xs.Type = typeVar + } + } + } + + return nil +} + +// XeroLinkedService xero Service linked service. +type XeroLinkedService struct { + // XeroLinkedServiceTypeProperties - Xero Service linked service properties. + *XeroLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for XeroLinkedService. +func (xls XeroLinkedService) MarshalJSON() ([]byte, error) { + xls.Type = TypeBasicLinkedServiceTypeXero + objectMap := make(map[string]interface{}) + if xls.XeroLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = xls.XeroLinkedServiceTypeProperties + } + if xls.ConnectVia != nil { + objectMap["connectVia"] = xls.ConnectVia + } + if xls.Description != nil { + objectMap["description"] = xls.Description + } + if xls.Parameters != nil { + objectMap["parameters"] = xls.Parameters + } + if xls.Annotations != nil { + objectMap["annotations"] = xls.Annotations + } + if xls.Type != "" { + objectMap["type"] = xls.Type + } + for k, v := range xls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return &xls, true +} + +// AsSquareLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for XeroLinkedService. +func (xls XeroLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &xls, true +} + +// UnmarshalJSON is the custom unmarshaler for XeroLinkedService struct. +func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var xeroLinkedServiceTypeProperties XeroLinkedServiceTypeProperties + err = json.Unmarshal(*v, &xeroLinkedServiceTypeProperties) + if err != nil { + return err + } + xls.XeroLinkedServiceTypeProperties = &xeroLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if xls.AdditionalProperties == nil { + xls.AdditionalProperties = make(map[string]interface{}) + } + xls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + xls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + xls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + xls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + xls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + xls.Type = typeVar + } + } + } + + return nil +} + +// XeroLinkedServiceTypeProperties xero Service linked service properties. +type XeroLinkedServiceTypeProperties struct { + // ConnectionProperties - 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"` + // Host - The endpoint of the Xero server. (i.e. api.xero.com) + Host interface{} `json:"host,omitempty"` + // ConsumerKey - The consumer key associated with the Xero application. + ConsumerKey BasicSecretBase `json:"consumerKey,omitempty"` + // PrivateKey - 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 BasicSecretBase `json:"privateKey,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for XeroLinkedServiceTypeProperties struct. +func (xlstp *XeroLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionProperties": + if v != nil { + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) + if err != nil { + return err + } + xlstp.ConnectionProperties = connectionProperties + } + case "host": + if v != nil { + var host interface{} + err = json.Unmarshal(*v, &host) + if err != nil { + return err + } + xlstp.Host = host + } + case "consumerKey": + if v != nil { + consumerKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + xlstp.ConsumerKey = consumerKey + } + case "privateKey": + if v != nil { + privateKey, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + xlstp.PrivateKey = privateKey + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + xlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + xlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + xlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + xlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// XeroObjectDataset xero Service dataset. +type XeroObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for XeroObjectDataset. +func (xod XeroObjectDataset) MarshalJSON() ([]byte, error) { + xod.Type = TypeBasicDatasetTypeXeroObject + objectMap := make(map[string]interface{}) + if xod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = xod.GenericDatasetTypeProperties + } + if xod.Description != nil { + objectMap["description"] = xod.Description + } + if xod.Structure != nil { + objectMap["structure"] = xod.Structure + } + if xod.Schema != nil { + objectMap["schema"] = xod.Schema + } + if xod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = xod.LinkedServiceName + } + if xod.Parameters != nil { + objectMap["parameters"] = xod.Parameters + } + if xod.Annotations != nil { + objectMap["annotations"] = xod.Annotations + } + if xod.Folder != nil { + objectMap["folder"] = xod.Folder + } + if xod.Type != "" { + objectMap["type"] = xod.Type + } + for k, v := range xod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return nil, false +} + +// AsXeroObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return &xod, true +} + +// AsSquareObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for XeroObjectDataset. +func (xod XeroObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &xod, true +} + +// UnmarshalJSON is the custom unmarshaler for XeroObjectDataset struct. +func (xod *XeroObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + xod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if xod.AdditionalProperties == nil { + xod.AdditionalProperties = make(map[string]interface{}) + } + xod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + xod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + xod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + xod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + xod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + xod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + xod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + xod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + xod.Type = typeVar + } + } + } + + return nil +} + +// XeroSource a copy activity Xero Service source. +type XeroSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for XeroSource. +func (xs XeroSource) MarshalJSON() ([]byte, error) { + xs.Type = TypeBasicCopySourceTypeXeroSource + objectMap := make(map[string]interface{}) + if xs.Query != nil { + objectMap["query"] = xs.Query + } + if xs.QueryTimeout != nil { + objectMap["queryTimeout"] = xs.QueryTimeout + } + if xs.AdditionalColumns != nil { + objectMap["additionalColumns"] = xs.AdditionalColumns + } + if xs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = xs.SourceRetryCount + } + if xs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = xs.SourceRetryWait + } + if xs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = xs.MaxConcurrentConnections + } + if xs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = xs.DisableMetricsCollection + } + if xs.Type != "" { + objectMap["type"] = xs.Type + } + for k, v := range xs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsZohoSource() (*ZohoSource, bool) { + return nil, false +} + +// AsXeroSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsXeroSource() (*XeroSource, bool) { + return &xs, true +} + +// AsSquareSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &xs, true +} + +// AsBinarySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for XeroSource. +func (xs XeroSource) AsBasicCopySource() (BasicCopySource, bool) { + return &xs, true +} + +// UnmarshalJSON is the custom unmarshaler for XeroSource struct. +func (xs *XeroSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + xs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + xs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + xs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if xs.AdditionalProperties == nil { + xs.AdditionalProperties = make(map[string]interface{}) + } + xs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + xs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + xs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + xs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + xs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + xs.Type = typeVar + } + } + } + + return nil +} + +// ZendeskLinkedService linked service for Zendesk. +type ZendeskLinkedService struct { + // ZendeskLinkedServiceTypeProperties - Zendesk linked service properties. + *ZendeskLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ZendeskLinkedService. +func (zls ZendeskLinkedService) MarshalJSON() ([]byte, error) { + zls.Type = TypeBasicLinkedServiceTypeZendesk + objectMap := make(map[string]interface{}) + if zls.ZendeskLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = zls.ZendeskLinkedServiceTypeProperties + } + if zls.ConnectVia != nil { + objectMap["connectVia"] = zls.ConnectVia + } + if zls.Description != nil { + objectMap["description"] = zls.Description + } + if zls.Parameters != nil { + objectMap["parameters"] = zls.Parameters + } + if zls.Annotations != nil { + objectMap["annotations"] = zls.Annotations + } + if zls.Type != "" { + objectMap["type"] = zls.Type + } + for k, v := range zls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return nil, false +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return &zls, true +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. +func (zls ZendeskLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &zls, true +} + +// UnmarshalJSON is the custom unmarshaler for ZendeskLinkedService struct. +func (zls *ZendeskLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var zendeskLinkedServiceTypeProperties ZendeskLinkedServiceTypeProperties + err = json.Unmarshal(*v, &zendeskLinkedServiceTypeProperties) + if err != nil { + return err + } + zls.ZendeskLinkedServiceTypeProperties = &zendeskLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if zls.AdditionalProperties == nil { + zls.AdditionalProperties = make(map[string]interface{}) + } + zls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + zls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + zls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + zls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + zls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + zls.Type = typeVar + } + } + } + + return nil +} + +// ZendeskLinkedServiceTypeProperties zendesk linked service type properties. +type ZendeskLinkedServiceTypeProperties struct { + // AuthenticationType - The authentication type to use. Possible values include: 'ZendeskAuthenticationTypeBasic', 'ZendeskAuthenticationTypeToken' + AuthenticationType ZendeskAuthenticationType `json:"authenticationType,omitempty"` + // URL - The url to connect Zendesk source. Type: string (or Expression with resultType string). + URL interface{} `json:"url,omitempty"` + // UserName - The username of the Zendesk source. Type: string (or Expression with resultType string). + UserName interface{} `json:"userName,omitempty"` + // Password - The password of the Zendesk source. + Password BasicSecretBase `json:"password,omitempty"` + // APIToken - The api token for the Zendesk source. + APIToken BasicSecretBase `json:"apiToken,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ZendeskLinkedServiceTypeProperties struct. +func (zlstp *ZendeskLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "authenticationType": + if v != nil { + var authenticationType ZendeskAuthenticationType + err = json.Unmarshal(*v, &authenticationType) + if err != nil { + return err + } + zlstp.AuthenticationType = authenticationType + } + case "url": + if v != nil { + var URL interface{} + err = json.Unmarshal(*v, &URL) + if err != nil { + return err + } + zlstp.URL = URL + } + case "userName": + if v != nil { + var userName interface{} + err = json.Unmarshal(*v, &userName) + if err != nil { + return err + } + zlstp.UserName = userName + } + case "password": + if v != nil { + password, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + zlstp.Password = password + } + case "apiToken": + if v != nil { + APIToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + zlstp.APIToken = APIToken + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + zlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ZipDeflateReadSettings the ZipDeflate compression read settings. +type ZipDeflateReadSettings struct { + // PreserveZipFileNameAsFolder - Preserve the zip file name as folder path. Type: boolean (or Expression with resultType boolean). + PreserveZipFileNameAsFolder interface{} `json:"preserveZipFileNameAsFolder,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Type - Possible values include: 'TypeBasicCompressionReadSettingsTypeCompressionReadSettings', 'TypeBasicCompressionReadSettingsTypeTarGZipReadSettings', 'TypeBasicCompressionReadSettingsTypeTarReadSettings', 'TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings' + Type TypeBasicCompressionReadSettings `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ZipDeflateReadSettings. +func (zdrs ZipDeflateReadSettings) MarshalJSON() ([]byte, error) { + zdrs.Type = TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings + objectMap := make(map[string]interface{}) + if zdrs.PreserveZipFileNameAsFolder != nil { + objectMap["preserveZipFileNameAsFolder"] = zdrs.PreserveZipFileNameAsFolder + } + if zdrs.Type != "" { + objectMap["type"] = zdrs.Type + } + for k, v := range zdrs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsTarGZipReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. +func (zdrs ZipDeflateReadSettings) AsTarGZipReadSettings() (*TarGZipReadSettings, bool) { + return nil, false +} + +// AsTarReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. +func (zdrs ZipDeflateReadSettings) AsTarReadSettings() (*TarReadSettings, bool) { + return nil, false +} + +// AsZipDeflateReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. +func (zdrs ZipDeflateReadSettings) AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) { + return &zdrs, true +} + +// AsCompressionReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. +func (zdrs ZipDeflateReadSettings) AsCompressionReadSettings() (*CompressionReadSettings, bool) { + return nil, false +} + +// AsBasicCompressionReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. +func (zdrs ZipDeflateReadSettings) AsBasicCompressionReadSettings() (BasicCompressionReadSettings, bool) { + return &zdrs, true +} + +// UnmarshalJSON is the custom unmarshaler for ZipDeflateReadSettings struct. +func (zdrs *ZipDeflateReadSettings) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "preserveZipFileNameAsFolder": + if v != nil { + var preserveZipFileNameAsFolder interface{} + err = json.Unmarshal(*v, &preserveZipFileNameAsFolder) + if err != nil { + return err + } + zdrs.PreserveZipFileNameAsFolder = preserveZipFileNameAsFolder + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if zdrs.AdditionalProperties == nil { + zdrs.AdditionalProperties = make(map[string]interface{}) + } + zdrs.AdditionalProperties[k] = additionalProperties + } + case "type": + if v != nil { + var typeVar TypeBasicCompressionReadSettings + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + zdrs.Type = typeVar + } + } + } + + return nil +} + +// ZohoLinkedService zoho server linked service. +type ZohoLinkedService struct { + // ZohoLinkedServiceTypeProperties - Zoho server linked service properties. + *ZohoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // ConnectVia - The integration runtime reference. + ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` + // Description - Linked service description. + Description *string `json:"description,omitempty"` + // Parameters - Parameters for linked service. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the linked service. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeServiceNowV2', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQueryV2', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQLV2', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' + Type TypeBasicLinkedService `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ZohoLinkedService. +func (zls ZohoLinkedService) MarshalJSON() ([]byte, error) { + zls.Type = TypeBasicLinkedServiceTypeZoho + objectMap := make(map[string]interface{}) + if zls.ZohoLinkedServiceTypeProperties != nil { + objectMap["typeProperties"] = zls.ZohoLinkedServiceTypeProperties + } + if zls.ConnectVia != nil { + objectMap["connectVia"] = zls.ConnectVia + } + if zls.Description != nil { + objectMap["description"] = zls.Description + } + if zls.Parameters != nil { + objectMap["parameters"] = zls.Parameters + } + if zls.Annotations != nil { + objectMap["annotations"] = zls.Annotations + } + if zls.Type != "" { + objectMap["type"] = zls.Type + } + for k, v := range zls.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsServiceNowV2LinkedService() (*ServiceNowV2LinkedService, bool) { + return nil, false +} + +// AsWarehouseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { + return nil, false +} + +// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { + return nil, false +} + +// AsLakeHouseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { + return nil, false +} + +// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { + return nil, false +} + +// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { + return nil, false +} + +// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { + return nil, false +} + +// AsSnowflakeLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { + return nil, false +} + +// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { + return nil, false +} + +// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { + return nil, false +} + +// AsSapTableLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { + return nil, false +} + +// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { + return nil, false +} + +// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { + return nil, false +} + +// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { + return nil, false +} + +// AsResponsysLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { + return nil, false +} + +// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { + return nil, false +} + +// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { + return nil, false +} + +// AsNetezzaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { + return nil, false +} + +// AsVerticaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { + return nil, false +} + +// AsZohoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { + return &zls, true +} + +// AsXeroLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { + return nil, false +} + +// AsSquareLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { + return nil, false +} + +// AsSparkLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { + return nil, false +} + +// AsShopifyLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { + return nil, false +} + +// AsServiceNowLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { + return nil, false +} + +// AsQuickBooksLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { + return nil, false +} + +// AsPrestoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { + return nil, false +} + +// AsPhoenixLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { + return nil, false +} + +// AsPaypalLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { + return nil, false +} + +// AsMarketoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { + return nil, false +} + +// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { + return nil, false +} + +// AsMariaDBLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { + return nil, false +} + +// AsMagentoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { + return nil, false +} + +// AsJiraLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { + return nil, false +} + +// AsImpalaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { + return nil, false +} + +// AsHubspotLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { + return nil, false +} + +// AsHiveLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { + return nil, false +} + +// AsHBaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { + return nil, false +} + +// AsGreenplumLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsGoogleBigQueryV2LinkedService() (*GoogleBigQueryV2LinkedService, bool) { + return nil, false +} + +// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { + return nil, false +} + +// AsEloquaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { + return nil, false +} + +// AsDrillLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { + return nil, false +} + +// AsCouchbaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { + return nil, false +} + +// AsConcurLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { + return nil, false +} + +// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { + return nil, false +} + +// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { + return nil, false +} + +// AsSapHanaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { + return nil, false +} + +// AsSapBWLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { + return nil, false +} + +// AsSftpServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { + return nil, false +} + +// AsFtpServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { + return nil, false +} + +// AsHTTPLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { + return nil, false +} + +// AsAzureSearchLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { + return nil, false +} + +// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { + return nil, false +} + +// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { + return nil, false +} + +// AsAmazonS3LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { + return nil, false +} + +// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { + return nil, false +} + +// AsTwilioLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { + return nil, false +} + +// AsAsanaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { + return nil, false +} + +// AsAppFiguresLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { + return nil, false +} + +// AsDataworldLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { + return nil, false +} + +// AsZendeskLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { + return nil, false +} + +// AsSmartsheetLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { + return nil, false +} + +// AsQuickbaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { + return nil, false +} + +// AsTeamDeskLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { + return nil, false +} + +// AsRestServiceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { + return nil, false +} + +// AsSapOdpLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { + return nil, false +} + +// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { + return nil, false +} + +// AsSapEccLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { + return nil, false +} + +// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { + return nil, false +} + +// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { + return nil, false +} + +// AsSalesforceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { + return nil, false +} + +// AsOffice365LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { + return nil, false +} + +// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { + return nil, false +} + +// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { + return nil, false +} + +// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { + return nil, false +} + +// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { + return nil, false +} + +// AsMongoDbLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { + return nil, false +} + +// AsCassandraLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { + return nil, false +} + +// AsWebLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { + return nil, false +} + +// AsODataLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { + return nil, false +} + +// AsHdfsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { + return nil, false +} + +// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { + return nil, false +} + +// AsInformixLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { + return nil, false +} + +// AsOdbcLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { + return nil, false +} + +// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { + return nil, false +} + +// AsAzureMLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { + return nil, false +} + +// AsTeradataLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { + return nil, false +} + +// AsDb2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { + return nil, false +} + +// AsSybaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { + return nil, false +} + +// AsPostgreSQLV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsPostgreSQLV2LinkedService() (*PostgreSQLV2LinkedService, bool) { + return nil, false +} + +// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { + return nil, false +} + +// AsMySQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { + return nil, false +} + +// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { + return nil, false +} + +// AsOracleLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { + return nil, false +} + +// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { + return nil, false +} + +// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { + return nil, false +} + +// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { + return nil, false +} + +// AsFileServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { + return nil, false +} + +// AsHDInsightLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { + return nil, false +} + +// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { + return nil, false +} + +// AsDynamicsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { + return nil, false +} + +// AsCosmosDbLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { + return nil, false +} + +// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { + return nil, false +} + +// AsAzureBatchLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { + return nil, false +} + +// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { + return nil, false +} + +// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { + return nil, false +} + +// AsSQLServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { + return nil, false +} + +// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { + return nil, false +} + +// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { + return nil, false +} + +// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { + return nil, false +} + +// AsAzureStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { + return nil, false +} + +// AsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsLinkedService() (*LinkedService, bool) { + return nil, false +} + +// AsBasicLinkedService is the BasicLinkedService implementation for ZohoLinkedService. +func (zls ZohoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { + return &zls, true +} + +// UnmarshalJSON is the custom unmarshaler for ZohoLinkedService struct. +func (zls *ZohoLinkedService) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var zohoLinkedServiceTypeProperties ZohoLinkedServiceTypeProperties + err = json.Unmarshal(*v, &zohoLinkedServiceTypeProperties) + if err != nil { + return err + } + zls.ZohoLinkedServiceTypeProperties = &zohoLinkedServiceTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if zls.AdditionalProperties == nil { + zls.AdditionalProperties = make(map[string]interface{}) + } + zls.AdditionalProperties[k] = additionalProperties + } + case "connectVia": + if v != nil { + var connectVia IntegrationRuntimeReference + err = json.Unmarshal(*v, &connectVia) + if err != nil { + return err + } + zls.ConnectVia = &connectVia + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + zls.Description = &description + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + zls.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + zls.Annotations = &annotations + } + case "type": + if v != nil { + var typeVar TypeBasicLinkedService + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + zls.Type = typeVar + } + } + } + + return nil +} + +// ZohoLinkedServiceTypeProperties zoho server linked service properties. +type ZohoLinkedServiceTypeProperties struct { + // ConnectionProperties - 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"` + // Endpoint - The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) + Endpoint interface{} `json:"endpoint,omitempty"` + // AccessToken - The access token for Zoho authentication. + AccessToken BasicSecretBase `json:"accessToken,omitempty"` + // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. + UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + // UseHostVerification - 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"` + // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. + UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. + EncryptedCredential *string `json:"encryptedCredential,omitempty"` +} + +// UnmarshalJSON is the custom unmarshaler for ZohoLinkedServiceTypeProperties struct. +func (zlstp *ZohoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "connectionProperties": + if v != nil { + var connectionProperties interface{} + err = json.Unmarshal(*v, &connectionProperties) + if err != nil { + return err + } + zlstp.ConnectionProperties = connectionProperties + } + case "endpoint": + if v != nil { + var endpoint interface{} + err = json.Unmarshal(*v, &endpoint) + if err != nil { + return err + } + zlstp.Endpoint = endpoint + } + case "accessToken": + if v != nil { + accessToken, err := unmarshalBasicSecretBase(*v) + if err != nil { + return err + } + zlstp.AccessToken = accessToken + } + case "useEncryptedEndpoints": + if v != nil { + var useEncryptedEndpoints interface{} + err = json.Unmarshal(*v, &useEncryptedEndpoints) + if err != nil { + return err + } + zlstp.UseEncryptedEndpoints = useEncryptedEndpoints + } + case "useHostVerification": + if v != nil { + var useHostVerification interface{} + err = json.Unmarshal(*v, &useHostVerification) + if err != nil { + return err + } + zlstp.UseHostVerification = useHostVerification + } + case "usePeerVerification": + if v != nil { + var usePeerVerification interface{} + err = json.Unmarshal(*v, &usePeerVerification) + if err != nil { + return err + } + zlstp.UsePeerVerification = usePeerVerification + } + case "encryptedCredential": + if v != nil { + var encryptedCredential string + err = json.Unmarshal(*v, &encryptedCredential) + if err != nil { + return err + } + zlstp.EncryptedCredential = &encryptedCredential + } + } + } + + return nil +} + +// ZohoObjectDataset zoho server dataset. +type ZohoObjectDataset struct { + // GenericDatasetTypeProperties - Properties specific to this dataset type. + *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // Description - Dataset description. + Description *string `json:"description,omitempty"` + // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. + Structure interface{} `json:"structure,omitempty"` + // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. + Schema interface{} `json:"schema,omitempty"` + // LinkedServiceName - Linked service reference. + LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` + // Parameters - Parameters for dataset. + Parameters map[string]*ParameterSpecification `json:"parameters"` + // Annotations - List of tags that can be used for describing the Dataset. + Annotations *[]interface{} `json:"annotations,omitempty"` + // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. + Folder *DatasetFolder `json:"folder,omitempty"` + // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeServiceNowV2Object', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryV2Object', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLV2Table', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' + Type TypeBasicDataset `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ZohoObjectDataset. +func (zod ZohoObjectDataset) MarshalJSON() ([]byte, error) { + zod.Type = TypeBasicDatasetTypeZohoObject + objectMap := make(map[string]interface{}) + if zod.GenericDatasetTypeProperties != nil { + objectMap["typeProperties"] = zod.GenericDatasetTypeProperties + } + if zod.Description != nil { + objectMap["description"] = zod.Description + } + if zod.Structure != nil { + objectMap["structure"] = zod.Structure + } + if zod.Schema != nil { + objectMap["schema"] = zod.Schema + } + if zod.LinkedServiceName != nil { + objectMap["linkedServiceName"] = zod.LinkedServiceName + } + if zod.Parameters != nil { + objectMap["parameters"] = zod.Parameters + } + if zod.Annotations != nil { + objectMap["annotations"] = zod.Annotations + } + if zod.Folder != nil { + objectMap["folder"] = zod.Folder + } + if zod.Type != "" { + objectMap["type"] = zod.Type + } + for k, v := range zod.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsServiceNowV2ObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsServiceNowV2ObjectDataset() (*ServiceNowV2ObjectDataset, bool) { + return nil, false +} + +// AsWarehouseTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { + return nil, false +} + +// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { + return nil, false +} + +// AsLakeHouseTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { + return nil, false +} + +// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { + return nil, false +} + +// AsSnowflakeV2Dataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { + return nil, false +} + +// AsSnowflakeDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { + return nil, false +} + +// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { + return nil, false +} + +// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { + return nil, false +} + +// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsDynamicsAXResourceDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { + return nil, false +} + +// AsResponsysObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { + return nil, false +} + +// AsVerticaTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { + return nil, false +} + +// AsNetezzaTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { + return nil, false +} + +// AsZohoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { + return &zod, true +} + +// AsXeroObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { + return nil, false +} + +// AsSquareObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { + return nil, false +} + +// AsSparkObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { + return nil, false +} + +// AsShopifyObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { + return nil, false +} + +// AsServiceNowObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { + return nil, false +} + +// AsQuickBooksObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { + return nil, false +} + +// AsPrestoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { + return nil, false +} + +// AsPhoenixObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { + return nil, false +} + +// AsPaypalObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { + return nil, false +} + +// AsMarketoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { + return nil, false +} + +// AsAzureMariaDBTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { + return nil, false +} + +// AsMariaDBTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { + return nil, false +} + +// AsMagentoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { + return nil, false +} + +// AsJiraObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { + return nil, false +} + +// AsImpalaObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { + return nil, false +} + +// AsHubspotObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { + return nil, false +} + +// AsHiveObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { + return nil, false +} + +// AsHBaseObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { + return nil, false +} + +// AsGreenplumTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryV2ObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsGoogleBigQueryV2ObjectDataset() (*GoogleBigQueryV2ObjectDataset, bool) { + return nil, false +} + +// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { + return nil, false +} + +// AsEloquaObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { + return nil, false +} + +// AsDrillTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { + return nil, false +} + +// AsCouchbaseTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { + return nil, false +} + +// AsConcurObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { + return nil, false +} + +// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { + return nil, false +} + +// AsAmazonMWSObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { + return nil, false +} + +// AsHTTPDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { + return nil, false +} + +// AsAzureSearchIndexDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { + return nil, false +} + +// AsWebTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { + return nil, false +} + +// AsSapOdpResourceDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { + return nil, false +} + +// AsSapTableResourceDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { + return nil, false +} + +// AsRestResourceDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { + return nil, false +} + +// AsSQLServerTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { + return nil, false +} + +// AsSapOpenHubTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { + return nil, false +} + +// AsSapHanaTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { + return nil, false +} + +// AsSapEccResourceDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { + return nil, false +} + +// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { + return nil, false +} + +// AsSapBwCubeDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { + return nil, false +} + +// AsSybaseTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { + return nil, false +} + +// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { + return nil, false +} + +// AsSalesforceObjectDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { + return nil, false +} + +// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { + return nil, false +} + +// AsPostgreSQLV2TableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsPostgreSQLV2TableDataset() (*PostgreSQLV2TableDataset, bool) { + return nil, false +} + +// AsPostgreSQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { + return nil, false +} + +// AsMySQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { + return nil, false +} + +// AsOdbcTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { + return nil, false +} + +// AsInformixTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { + return nil, false +} + +// AsRelationalTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { + return nil, false +} + +// AsDb2TableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { + return nil, false +} + +// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { + return nil, false +} + +// AsAzureMySQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { + return nil, false +} + +// AsTeradataTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { + return nil, false +} + +// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { + return nil, false +} + +// AsOracleTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { + return nil, false +} + +// AsODataResourceDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { + return nil, false +} + +// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { + return nil, false +} + +// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { + return nil, false +} + +// AsMongoDbCollectionDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { + return nil, false +} + +// AsFileShareDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { + return nil, false +} + +// AsOffice365Dataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { + return nil, false +} + +// AsAzureBlobFSDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { + return nil, false +} + +// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { + return nil, false +} + +// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { + return nil, false +} + +// AsDynamicsEntityDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { + return nil, false +} + +// AsDocumentDbCollectionDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { + return nil, false +} + +// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { + return nil, false +} + +// AsCustomDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { + return nil, false +} + +// AsCassandraTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { + return nil, false +} + +// AsAzureSQLDWTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { + return nil, false +} + +// AsAzureSQLMITableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { + return nil, false +} + +// AsAzureSQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { + return nil, false +} + +// AsAzureTableDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { + return nil, false +} + +// AsAzureBlobDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { + return nil, false +} + +// AsBinaryDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { + return nil, false +} + +// AsOrcDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsOrcDataset() (*OrcDataset, bool) { + return nil, false +} + +// AsXMLDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsXMLDataset() (*XMLDataset, bool) { + return nil, false +} + +// AsJSONDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsJSONDataset() (*JSONDataset, bool) { + return nil, false +} + +// AsDelimitedTextDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { + return nil, false +} + +// AsParquetDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { + return nil, false +} + +// AsExcelDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { + return nil, false +} + +// AsAvroDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAvroDataset() (*AvroDataset, bool) { + return nil, false +} + +// AsAmazonS3Dataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { + return nil, false +} + +// AsDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsDataset() (*Dataset, bool) { + return nil, false +} + +// AsBasicDataset is the BasicDataset implementation for ZohoObjectDataset. +func (zod ZohoObjectDataset) AsBasicDataset() (BasicDataset, bool) { + return &zod, true +} + +// UnmarshalJSON is the custom unmarshaler for ZohoObjectDataset struct. +func (zod *ZohoObjectDataset) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "typeProperties": + if v != nil { + var genericDatasetTypeProperties GenericDatasetTypeProperties + err = json.Unmarshal(*v, &genericDatasetTypeProperties) + if err != nil { + return err + } + zod.GenericDatasetTypeProperties = &genericDatasetTypeProperties + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if zod.AdditionalProperties == nil { + zod.AdditionalProperties = make(map[string]interface{}) + } + zod.AdditionalProperties[k] = additionalProperties + } + case "description": + if v != nil { + var description string + err = json.Unmarshal(*v, &description) + if err != nil { + return err + } + zod.Description = &description + } + case "structure": + if v != nil { + var structure interface{} + err = json.Unmarshal(*v, &structure) + if err != nil { + return err + } + zod.Structure = structure + } + case "schema": + if v != nil { + var schema interface{} + err = json.Unmarshal(*v, &schema) + if err != nil { + return err + } + zod.Schema = schema + } + case "linkedServiceName": + if v != nil { + var linkedServiceName LinkedServiceReference + err = json.Unmarshal(*v, &linkedServiceName) + if err != nil { + return err + } + zod.LinkedServiceName = &linkedServiceName + } + case "parameters": + if v != nil { + var parameters map[string]*ParameterSpecification + err = json.Unmarshal(*v, ¶meters) + if err != nil { + return err + } + zod.Parameters = parameters + } + case "annotations": + if v != nil { + var annotations []interface{} + err = json.Unmarshal(*v, &annotations) + if err != nil { + return err + } + zod.Annotations = &annotations + } + case "folder": + if v != nil { + var folder DatasetFolder + err = json.Unmarshal(*v, &folder) + if err != nil { + return err + } + zod.Folder = &folder + } + case "type": + if v != nil { + var typeVar TypeBasicDataset + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + zod.Type = typeVar + } + } + } + + return nil +} + +// ZohoSource a copy activity Zoho server source. +type ZohoSource struct { + // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). + Query interface{} `json:"query,omitempty"` + // QueryTimeout - 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"` + // AdditionalColumns - 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"` + // AdditionalProperties - Unmatched properties from the message are deserialized this collection + AdditionalProperties map[string]interface{} `json:""` + // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). + SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + // SourceRetryWait - 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"` + // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). + MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). + DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeServiceNowV2Source', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQueryV2Source', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLV2Source', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' + Type TypeBasicCopySource `json:"type,omitempty"` +} + +// MarshalJSON is the custom marshaler for ZohoSource. +func (zs ZohoSource) MarshalJSON() ([]byte, error) { + zs.Type = TypeBasicCopySourceTypeZohoSource + objectMap := make(map[string]interface{}) + if zs.Query != nil { + objectMap["query"] = zs.Query + } + if zs.QueryTimeout != nil { + objectMap["queryTimeout"] = zs.QueryTimeout + } + if zs.AdditionalColumns != nil { + objectMap["additionalColumns"] = zs.AdditionalColumns + } + if zs.SourceRetryCount != nil { + objectMap["sourceRetryCount"] = zs.SourceRetryCount + } + if zs.SourceRetryWait != nil { + objectMap["sourceRetryWait"] = zs.SourceRetryWait + } + if zs.MaxConcurrentConnections != nil { + objectMap["maxConcurrentConnections"] = zs.MaxConcurrentConnections + } + if zs.DisableMetricsCollection != nil { + objectMap["disableMetricsCollection"] = zs.DisableMetricsCollection + } + if zs.Type != "" { + objectMap["type"] = zs.Type + } + for k, v := range zs.AdditionalProperties { + objectMap[k] = v + } + return json.Marshal(objectMap) +} + +// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { + return nil, false +} + +// AsSharePointOnlineListSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { + return nil, false +} + +// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { + return nil, false +} + +// AsSnowflakeV2Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { + return nil, false +} + +// AsSnowflakeSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSnowflakeSource() (*SnowflakeSource, bool) { + return nil, false +} + +// AsLakeHouseTableSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { + return nil, false +} + +// AsHTTPSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsHTTPSource() (*HTTPSource, bool) { + return nil, false +} + +// AsAzureBlobFSSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { + return nil, false +} + +// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { + return nil, false +} + +// AsOffice365Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsOffice365Source() (*Office365Source, bool) { + return nil, false +} + +// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { + return nil, false +} + +// AsMongoDbV2Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { + return nil, false +} + +// AsMongoDbAtlasSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { + return nil, false +} + +// AsMongoDbSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsMongoDbSource() (*MongoDbSource, bool) { + return nil, false +} + +// AsWebSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsWebSource() (*WebSource, bool) { + return nil, false +} + +// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { + return nil, false +} + +// AsOracleSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsOracleSource() (*OracleSource, bool) { + return nil, false +} + +// AsAzureDataExplorerSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { + return nil, false +} + +// AsHdfsSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsHdfsSource() (*HdfsSource, bool) { + return nil, false +} + +// AsFileSystemSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsFileSystemSource() (*FileSystemSource, bool) { + return nil, false +} + +// AsRestSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsRestSource() (*RestSource, bool) { + return nil, false +} + +// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { + return nil, false +} + +// AsODataSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsODataSource() (*ODataSource, bool) { + return nil, false +} + +// AsMicrosoftAccessSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { + return nil, false +} + +// AsRelationalSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsRelationalSource() (*RelationalSource, bool) { + return nil, false +} + +// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { + return nil, false +} + +// AsDynamicsCrmSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { + return nil, false +} + +// AsDynamicsSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsDynamicsSource() (*DynamicsSource, bool) { + return nil, false +} + +// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { + return nil, false +} + +// AsDocumentDbCollectionSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { + return nil, false +} + +// AsBlobSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsBlobSource() (*BlobSource, bool) { + return nil, false +} + +// AsServiceNowV2Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsServiceNowV2Source() (*ServiceNowV2Source, bool) { + return nil, false +} + +// AsSalesforceV2Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { + return nil, false +} + +// AsWarehouseSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsWarehouseSource() (*WarehouseSource, bool) { + return nil, false +} + +// AsAmazonRedshiftSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { + return nil, false +} + +// AsGoogleAdWordsSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { + return nil, false +} + +// AsOracleServiceCloudSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { + return nil, false +} + +// AsDynamicsAXSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { + return nil, false +} + +// AsResponsysSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsResponsysSource() (*ResponsysSource, bool) { + return nil, false +} + +// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { + return nil, false +} + +// AsVerticaSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsVerticaSource() (*VerticaSource, bool) { + return nil, false +} + +// AsNetezzaSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsNetezzaSource() (*NetezzaSource, bool) { + return nil, false +} + +// AsZohoSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsZohoSource() (*ZohoSource, bool) { + return &zs, true +} + +// AsXeroSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsXeroSource() (*XeroSource, bool) { + return nil, false +} + +// AsSquareSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSquareSource() (*SquareSource, bool) { + return nil, false +} + +// AsSparkSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSparkSource() (*SparkSource, bool) { + return nil, false +} + +// AsShopifySource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsShopifySource() (*ShopifySource, bool) { + return nil, false +} + +// AsServiceNowSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsServiceNowSource() (*ServiceNowSource, bool) { + return nil, false +} + +// AsQuickBooksSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { + return nil, false +} + +// AsPrestoSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsPrestoSource() (*PrestoSource, bool) { + return nil, false +} + +// AsPhoenixSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsPhoenixSource() (*PhoenixSource, bool) { + return nil, false +} + +// AsPaypalSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsPaypalSource() (*PaypalSource, bool) { + return nil, false +} + +// AsMarketoSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsMarketoSource() (*MarketoSource, bool) { + return nil, false +} + +// AsAzureMariaDBSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { + return nil, false +} + +// AsMariaDBSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsMariaDBSource() (*MariaDBSource, bool) { + return nil, false +} + +// AsMagentoSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsMagentoSource() (*MagentoSource, bool) { + return nil, false +} + +// AsJiraSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsJiraSource() (*JiraSource, bool) { + return nil, false +} + +// AsImpalaSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsImpalaSource() (*ImpalaSource, bool) { + return nil, false +} + +// AsHubspotSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsHubspotSource() (*HubspotSource, bool) { + return nil, false +} + +// AsHiveSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsHiveSource() (*HiveSource, bool) { + return nil, false +} + +// AsHBaseSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsHBaseSource() (*HBaseSource, bool) { + return nil, false +} + +// AsGreenplumSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsGreenplumSource() (*GreenplumSource, bool) { + return nil, false +} + +// AsGoogleBigQueryV2Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsGoogleBigQueryV2Source() (*GoogleBigQueryV2Source, bool) { + return nil, false +} + +// AsGoogleBigQuerySource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { + return nil, false +} + +// AsEloquaSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsEloquaSource() (*EloquaSource, bool) { + return nil, false +} + +// AsDrillSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsDrillSource() (*DrillSource, bool) { + return nil, false +} + +// AsCouchbaseSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { + return nil, false +} + +// AsConcurSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsConcurSource() (*ConcurSource, bool) { + return nil, false +} + +// AsAzurePostgreSQLSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { + return nil, false +} + +// AsAmazonMWSSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { + return nil, false +} + +// AsCassandraSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsCassandraSource() (*CassandraSource, bool) { + return nil, false +} + +// AsTeradataSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsTeradataSource() (*TeradataSource, bool) { + return nil, false +} + +// AsAzureMySQLSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { + return nil, false +} + +// AsSQLDWSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSQLDWSource() (*SQLDWSource, bool) { + return nil, false +} + +// AsSQLMISource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSQLMISource() (*SQLMISource, bool) { + return nil, false +} + +// AsAzureSQLSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzureSQLSource() (*AzureSQLSource, bool) { + return nil, false +} + +// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { + return nil, false +} + +// AsSQLServerSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSQLServerSource() (*SQLServerSource, bool) { + return nil, false +} + +// AsSQLSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSQLSource() (*SQLSource, bool) { + return nil, false +} + +// AsSapTableSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSapTableSource() (*SapTableSource, bool) { + return nil, false +} + +// AsSapOdpSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSapOdpSource() (*SapOdpSource, bool) { + return nil, false +} + +// AsSapOpenHubSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { + return nil, false +} + +// AsSapHanaSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSapHanaSource() (*SapHanaSource, bool) { + return nil, false +} + +// AsSapEccSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSapEccSource() (*SapEccSource, bool) { + return nil, false +} + +// AsSapCloudForCustomerSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { + return nil, false +} + +// AsSalesforceSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSalesforceSource() (*SalesforceSource, bool) { + return nil, false +} + +// AsSapBwSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSapBwSource() (*SapBwSource, bool) { + return nil, false +} + +// AsSybaseSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsSybaseSource() (*SybaseSource, bool) { + return nil, false +} + +// AsPostgreSQLV2Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsPostgreSQLV2Source() (*PostgreSQLV2Source, bool) { + return nil, false +} + +// AsPostgreSQLSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { + return nil, false +} + +// AsMySQLSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsMySQLSource() (*MySQLSource, bool) { + return nil, false +} + +// AsOdbcSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsOdbcSource() (*OdbcSource, bool) { + return nil, false +} + +// AsDb2Source is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsDb2Source() (*Db2Source, bool) { + return nil, false +} + +// AsInformixSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsInformixSource() (*InformixSource, bool) { + return nil, false +} + +// AsAzureTableSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAzureTableSource() (*AzureTableSource, bool) { + return nil, false +} + +// AsTabularSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsTabularSource() (*TabularSource, bool) { + return nil, false +} + +// AsBasicTabularSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsBasicTabularSource() (BasicTabularSource, bool) { + return &zs, true +} + +// AsBinarySource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsBinarySource() (*BinarySource, bool) { + return nil, false +} + +// AsOrcSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsOrcSource() (*OrcSource, bool) { + return nil, false +} + +// AsXMLSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsXMLSource() (*XMLSource, bool) { + return nil, false +} + +// AsJSONSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsJSONSource() (*JSONSource, bool) { + return nil, false +} + +// AsDelimitedTextSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { + return nil, false +} + +// AsParquetSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsParquetSource() (*ParquetSource, bool) { + return nil, false +} + +// AsExcelSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsExcelSource() (*ExcelSource, bool) { + return nil, false +} + +// AsAvroSource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsAvroSource() (*AvroSource, bool) { + return nil, false +} + +// AsCopySource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsCopySource() (*CopySource, bool) { + return nil, false +} + +// AsBasicCopySource is the BasicCopySource implementation for ZohoSource. +func (zs ZohoSource) AsBasicCopySource() (BasicCopySource, bool) { + return &zs, true +} + +// UnmarshalJSON is the custom unmarshaler for ZohoSource struct. +func (zs *ZohoSource) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "query": + if v != nil { + var query interface{} + err = json.Unmarshal(*v, &query) + if err != nil { + return err + } + zs.Query = query + } + case "queryTimeout": + if v != nil { + var queryTimeout interface{} + err = json.Unmarshal(*v, &queryTimeout) + if err != nil { + return err + } + zs.QueryTimeout = queryTimeout + } + case "additionalColumns": + if v != nil { + var additionalColumns interface{} + err = json.Unmarshal(*v, &additionalColumns) + if err != nil { + return err + } + zs.AdditionalColumns = additionalColumns + } + default: + if v != nil { + var additionalProperties interface{} + err = json.Unmarshal(*v, &additionalProperties) + if err != nil { + return err + } + if zs.AdditionalProperties == nil { + zs.AdditionalProperties = make(map[string]interface{}) + } + zs.AdditionalProperties[k] = additionalProperties + } + case "sourceRetryCount": + if v != nil { + var sourceRetryCount interface{} + err = json.Unmarshal(*v, &sourceRetryCount) + if err != nil { + return err + } + zs.SourceRetryCount = sourceRetryCount + } + case "sourceRetryWait": + if v != nil { + var sourceRetryWait interface{} + err = json.Unmarshal(*v, &sourceRetryWait) + if err != nil { + return err + } + zs.SourceRetryWait = sourceRetryWait + } + case "maxConcurrentConnections": + if v != nil { + var maxConcurrentConnections interface{} + err = json.Unmarshal(*v, &maxConcurrentConnections) + if err != nil { + return err + } + zs.MaxConcurrentConnections = maxConcurrentConnections + } + case "disableMetricsCollection": + if v != nil { + var disableMetricsCollection interface{} + err = json.Unmarshal(*v, &disableMetricsCollection) + if err != nil { + return err + } + zs.DisableMetricsCollection = disableMetricsCollection + } + case "type": + if v != nil { + var typeVar TypeBasicCopySource + err = json.Unmarshal(*v, &typeVar) + if err != nil { + return err + } + zs.Type = typeVar + } + } + } + + return nil +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/operations.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/operations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/operations.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/operations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/pipelineruns.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/pipelineruns.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/pipelineruns.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/pipelineruns.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/pipelines.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/pipelines.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/pipelines.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/pipelines.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/privateendpointconnection.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/privateendpointconnection.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/privateendpointconnection.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/privateendpointconnection.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/privateendpointconnections.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/privateendpointconnections.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/privateendpointconnections.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/privateendpointconnections.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/privatelinkresources.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/privatelinkresources.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/privatelinkresources.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/privatelinkresources.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/triggerruns.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/triggerruns.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/triggerruns.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/triggerruns.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/triggers.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/triggers.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/triggers.go rename to vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/triggers.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/version.go b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/version.go new file mode 100644 index 000000000000..766a13468bf3 --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory/version.go @@ -0,0 +1,19 @@ +package datafactory + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " datafactory/2018-06-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/apitokens.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/apitokens.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/apitokens.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/apitokens.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/client.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/client.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/dashboards.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/dashboards.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/dashboards.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/dashboards.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/deploymentmanifests.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/deploymentmanifests.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/deploymentmanifests.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/deploymentmanifests.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/destinations.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/destinations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/destinations.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/destinations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devicegroups.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devicegroups.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devicegroups.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devicegroups.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devices.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devices.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devices.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devices.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devicetemplates.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devicetemplates.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devicetemplates.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/devicetemplates.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/enrollmentgroups.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/enrollmentgroups.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/enrollmentgroups.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/enrollmentgroups.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/enums.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/exports.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/exports.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/exports.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/exports.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/fileuploads.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/fileuploads.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/fileuploads.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/fileuploads.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/jobs.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/jobs.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/jobs.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/jobs.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/models.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/models.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/organizations.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/organizations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/organizations.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/organizations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/query.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/query.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/query.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/query.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/roles.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/roles.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/roles.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/roles.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/scheduledjobs.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/scheduledjobs.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/scheduledjobs.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/scheduledjobs.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/users.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/users.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/users.go rename to vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/users.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/version.go b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/version.go new file mode 100644 index 000000000000..d77f25768dac --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/version.go @@ -0,0 +1,19 @@ +package iotcentral + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " iotcentral/2022-10-31-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/certificates.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/certificates.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/certificates.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/certificates.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/client.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/client.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/enums.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/iothub.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/iothub.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/iothub.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/iothub.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/iothubresource.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/iothubresource.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/iothubresource.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/iothubresource.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/models.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/models.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/operations.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/operations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/operations.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/operations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/privateendpointconnections.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/privateendpointconnections.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/privateendpointconnections.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/privateendpointconnections.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/privatelinkresources.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/privatelinkresources.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/privatelinkresources.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/privatelinkresources.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/resourceprovidercommon.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/resourceprovidercommon.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/resourceprovidercommon.go rename to vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/resourceprovidercommon.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/version.go b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/version.go new file mode 100644 index 000000000000..8021a83c3776 --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub/version.go @@ -0,0 +1,19 @@ +package devices + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " devices/2022-04-30-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/client.go b/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/client.go rename to vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/enums.go b/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/hsmsecuritydomain.go b/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/hsmsecuritydomain.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/hsmsecuritydomain.go rename to vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/hsmsecuritydomain.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/models.go b/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/models.go rename to vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/roleassignments.go b/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/roleassignments.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/roleassignments.go rename to vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/roleassignments.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/roledefinitions.go b/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/roledefinitions.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/roledefinitions.go rename to vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/roledefinitions.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/version.go b/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/version.go new file mode 100644 index 000000000000..b13a307a3186 --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault/version.go @@ -0,0 +1,19 @@ +package keyvault + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " keyvault/7.4" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/actions.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/actions.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/actions.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/actions.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/alertrules.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/alertrules.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/alertrules.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/alertrules.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/alertruletemplates.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/alertruletemplates.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/alertruletemplates.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/alertruletemplates.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/automationrules.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/automationrules.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/automationrules.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/automationrules.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmark.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmark.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmark.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmark.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmarkrelations.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmarkrelations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmarkrelations.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmarkrelations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmarks.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmarks.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmarks.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/bookmarks.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/client.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/client.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/dataconnectors.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/dataconnectors.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/dataconnectors.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/dataconnectors.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/dataconnectorscheckrequirements.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/dataconnectorscheckrequirements.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/dataconnectorscheckrequirements.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/dataconnectorscheckrequirements.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/domainwhois.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/domainwhois.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/domainwhois.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/domainwhois.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entities.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entities.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entities.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entities.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entitiesgettimeline.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entitiesgettimeline.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entitiesgettimeline.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entitiesgettimeline.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entitiesrelations.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entitiesrelations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entitiesrelations.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entitiesrelations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityqueries.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityqueries.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityqueries.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityqueries.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityquerytemplates.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityquerytemplates.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityquerytemplates.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityquerytemplates.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityrelations.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityrelations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityrelations.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/entityrelations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/enums.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/fileimports.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/fileimports.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/fileimports.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/fileimports.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidentcomments.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidentcomments.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidentcomments.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidentcomments.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidentrelations.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidentrelations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidentrelations.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidentrelations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidents.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidents.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidents.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/incidents.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/ipgeodata.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/ipgeodata.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/ipgeodata.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/ipgeodata.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/metadata.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/metadata.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/metadata.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/metadata.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/models.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/models.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/officeconsents.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/officeconsents.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/officeconsents.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/officeconsents.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/operations.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/operations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/operations.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/operations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/productsettings.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/productsettings.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/productsettings.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/productsettings.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/securitymlanalyticssettings.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/securitymlanalyticssettings.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/securitymlanalyticssettings.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/securitymlanalyticssettings.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sentinelonboardingstates.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sentinelonboardingstates.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sentinelonboardingstates.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sentinelonboardingstates.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sourcecontrol.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sourcecontrol.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sourcecontrol.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sourcecontrol.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sourcecontrols.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sourcecontrols.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sourcecontrols.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/sourcecontrols.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicator.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicator.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicator.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicator.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicatormetrics.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicatormetrics.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicatormetrics.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicatormetrics.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicators.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicators.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicators.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/threatintelligenceindicators.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/version.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/version.go new file mode 100644 index 000000000000..96f8430422ef --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/version.go @@ -0,0 +1,19 @@ +package securityinsight + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " securityinsight/2022-10-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/watchlistitems.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/watchlistitems.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/watchlistitems.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/watchlistitems.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/watchlists.go b/vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/watchlists.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/watchlists.go rename to vendor/github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/watchlists.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/client.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/client.go new file mode 100644 index 000000000000..062eb9bc492e --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/client.go @@ -0,0 +1,31 @@ +// Package synapse implements the Azure ARM Synapse service API version 2019-06-01-preview. +package synapse + +// 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. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +// BaseClient is the base client for Synapse. +type BaseClient struct { + autorest.Client + Endpoint string +} + +// New creates an instance of the BaseClient client. +func New(endpoint string) BaseClient { + return NewWithoutDefaults(endpoint) +} + +// NewWithoutDefaults creates an instance of the BaseClient client. +func NewWithoutDefaults(endpoint string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + Endpoint: endpoint, + } +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/managedprivateendpoints.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/managedprivateendpoints.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/managedprivateendpoints.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/managedprivateendpoints.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/models.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/models.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/models.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/version.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/version.go new file mode 100644 index 000000000000..3efd4330ab6d --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse/version.go @@ -0,0 +1,19 @@ +package synapse + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " synapse/2019-06-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/client.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/client.go new file mode 100644 index 000000000000..49a3c9dc1dbf --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/client.go @@ -0,0 +1,31 @@ +// Package synapse implements the Azure ARM Synapse service API version 2020-08-01-preview. +package synapse + +// 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. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +// BaseClient is the base client for Synapse. +type BaseClient struct { + autorest.Client + Endpoint string +} + +// New creates an instance of the BaseClient client. +func New(endpoint string) BaseClient { + return NewWithoutDefaults(endpoint) +} + +// NewWithoutDefaults creates an instance of the BaseClient client. +func NewWithoutDefaults(endpoint string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + Endpoint: endpoint, + } +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/models.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/models.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/roleassignments.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/roleassignments.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/roleassignments.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/roleassignments.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/roledefinitions.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/roledefinitions.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/roledefinitions.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/roledefinitions.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/version.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/version.go new file mode 100644 index 000000000000..0cdbd11c828d --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse/version.go @@ -0,0 +1,19 @@ +package synapse + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " synapse/2020-08-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/bigdatapools.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/bigdatapools.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/bigdatapools.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/bigdatapools.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/client.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/client.go new file mode 100644 index 000000000000..ef75d81d0b1b --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/client.go @@ -0,0 +1,31 @@ +// Package synapse implements the Azure ARM Synapse service API version 2021-06-01-preview. +package synapse + +// 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. + +import ( + "github.com/Azure/go-autorest/autorest" +) + +// BaseClient is the base client for Synapse. +type BaseClient struct { + autorest.Client + Endpoint string +} + +// New creates an instance of the BaseClient client. +func New(endpoint string) BaseClient { + return NewWithoutDefaults(endpoint) +} + +// NewWithoutDefaults creates an instance of the BaseClient client. +func NewWithoutDefaults(endpoint string) BaseClient { + return BaseClient{ + Client: autorest.NewClientWithUserAgent(UserAgent()), + Endpoint: endpoint, + } +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/dataflow.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/dataflow.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/dataflow.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/dataflow.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/dataflowdebugsession.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/dataflowdebugsession.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/dataflowdebugsession.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/dataflowdebugsession.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/dataset.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/dataset.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/dataset.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/dataset.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/enums.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/integrationruntimes.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/integrationruntimes.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/integrationruntimes.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/integrationruntimes.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/library.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/library.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/library.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/library.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/linkedservice.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/linkedservice.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/linkedservice.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/linkedservice.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/models.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/models.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/notebook.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/notebook.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/notebook.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/notebook.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/notebookoperationresult.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/notebookoperationresult.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/notebookoperationresult.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/notebookoperationresult.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/operationresult.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/operationresult.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/operationresult.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/operationresult.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/operationstatus.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/operationstatus.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/operationstatus.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/operationstatus.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/pipeline.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/pipeline.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/pipeline.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/pipeline.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/pipelinerun.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/pipelinerun.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/pipelinerun.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/pipelinerun.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/sparkconfiguration.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/sparkconfiguration.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/sparkconfiguration.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/sparkconfiguration.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/sparkjobdefinition.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/sparkjobdefinition.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/sparkjobdefinition.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/sparkjobdefinition.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/sqlpools.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/sqlpools.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/sqlpools.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/sqlpools.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/sqlscript.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/sqlscript.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/sqlscript.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/sqlscript.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/trigger.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/trigger.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/trigger.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/trigger.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/triggerrun.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/triggerrun.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/triggerrun.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/triggerrun.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/version.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/version.go new file mode 100644 index 000000000000..8ed465abdd23 --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/version.go @@ -0,0 +1,19 @@ +package synapse + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " synapse/2021-06-01-preview" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/workspace.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/workspace.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/workspace.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/workspace.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/workspacegitrepomanagement.go b/vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/workspacegitrepomanagement.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/workspacegitrepomanagement.go rename to vendor/github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse/workspacegitrepomanagement.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/apps.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/apps.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/apps.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/apps.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/appservicecertificateorders.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/appservicecertificateorders.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/appservicecertificateorders.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/appservicecertificateorders.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/appserviceenvironments.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/appserviceenvironments.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/appserviceenvironments.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/appserviceenvironments.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/appserviceplans.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/appserviceplans.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/appserviceplans.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/appserviceplans.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/certificateordersdiagnostics.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/certificateordersdiagnostics.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/certificateordersdiagnostics.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/certificateordersdiagnostics.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/certificateregistrationprovider.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/certificateregistrationprovider.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/certificateregistrationprovider.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/certificateregistrationprovider.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/certificates.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/certificates.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/certificates.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/certificates.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/client.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/client.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/client.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/client.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/containerapps.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/containerapps.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/containerapps.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/containerapps.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/containerappsrevisions.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/containerappsrevisions.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/containerappsrevisions.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/containerappsrevisions.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/deletedwebapps.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/deletedwebapps.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/deletedwebapps.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/deletedwebapps.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/diagnostics.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/diagnostics.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/diagnostics.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/diagnostics.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/domainregistrationprovider.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/domainregistrationprovider.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/domainregistrationprovider.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/domainregistrationprovider.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/domains.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/domains.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/domains.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/domains.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/enums.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/enums.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/enums.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/enums.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/global.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/global.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/global.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/global.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/kubeenvironments.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/kubeenvironments.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/kubeenvironments.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/kubeenvironments.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/models.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/models.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/models.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/models.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/provider.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/provider.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/provider.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/provider.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/recommendations.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/recommendations.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/recommendations.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/recommendations.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/resourcehealthmetadata.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/resourcehealthmetadata.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/resourcehealthmetadata.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/resourcehealthmetadata.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/staticsites.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/staticsites.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/staticsites.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/staticsites.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/topleveldomains.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/topleveldomains.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/topleveldomains.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/topleveldomains.go diff --git a/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/version.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/version.go new file mode 100644 index 000000000000..a1f3c150d449 --- /dev/null +++ b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/version.go @@ -0,0 +1,19 @@ +package web + +import "github.com/jackofallops/kermit/version" + +// 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. + +// UserAgent returns the UserAgent string to use when sending http.Requests. +func UserAgent() string { + return "jackofallops/kermit/" + Version() + " web/2022-09-01" +} + +// Version returns the semantic version (see http://semver.org) of the client. +func Version() string { + return version.Number +} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowrunactionrepetitions.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowrunactionrepetitions.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowrunactionrepetitions.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowrunactionrepetitions.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowrunactionrepetitionsrequesthistories.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowrunactionrepetitionsrequesthistories.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowrunactionrepetitionsrequesthistories.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowrunactionrepetitionsrequesthistories.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowrunactions.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowrunactions.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowrunactions.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowrunactions.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowrunactionscoperepetitions.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowrunactionscoperepetitions.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowrunactionscoperepetitions.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowrunactionscoperepetitions.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowruns.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowruns.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowruns.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowruns.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflows.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflows.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflows.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflows.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowtriggerhistories.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowtriggerhistories.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowtriggerhistories.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowtriggerhistories.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowtriggers.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowtriggers.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowtriggers.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowtriggers.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowversions.go b/vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowversions.go similarity index 100% rename from vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/workflowversions.go rename to vendor/github.com/jackofallops/kermit/sdk/web/2022-09-01/web/workflowversions.go diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/version.go deleted file mode 100644 index a9a9d12a5069..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package attestation - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " attestation/2022-08-01" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/version.go deleted file mode 100644 index 1edacc16e178..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package batch - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " batch/2022-01-01.15.0" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/version.go deleted file mode 100644 index d4714935f268..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package botservice - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " botservice/2021-05-01-preview" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/models.go b/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/models.go deleted file mode 100644 index 2898b461d63c..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/models.go +++ /dev/null @@ -1,306508 +0,0 @@ -package datafactory - -// 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. - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/Azure/go-autorest/autorest" - "github.com/Azure/go-autorest/autorest/azure" - "github.com/Azure/go-autorest/autorest/date" - "github.com/Azure/go-autorest/autorest/to" - "github.com/Azure/go-autorest/tracing" - "github.com/gofrs/uuid" -) - -// The package's fully qualified name. -const fqdn = "home/runner/work/kermit/kermit/sdk/datafactory/2018-06-01/datafactory" - -// AccessPolicyResponse get Data Plane read only token response definition. -type AccessPolicyResponse struct { - autorest.Response `json:"-"` - // Policy - The user access policy. - Policy *UserAccessPolicy `json:"policy,omitempty"` - // AccessToken - Data Plane read only access token. - AccessToken *string `json:"accessToken,omitempty"` - // DataPlaneURL - Data Plane service base URL. - DataPlaneURL *string `json:"dataPlaneUrl,omitempty"` -} - -// BasicActivity a pipeline activity. -type BasicActivity interface { - AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) - AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) - AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) - AsScriptActivity() (*ScriptActivity, bool) - AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) - AsAzureFunctionActivity() (*AzureFunctionActivity, bool) - AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) - AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) - AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) - AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) - AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) - AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) - AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) - AsGetMetadataActivity() (*GetMetadataActivity, bool) - AsWebActivity() (*WebActivity, bool) - AsLookupActivity() (*LookupActivity, bool) - AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) - AsDeleteActivity() (*DeleteActivity, bool) - AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) - AsCustomActivity() (*CustomActivity, bool) - AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) - AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) - AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) - AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) - AsHDInsightPigActivity() (*HDInsightPigActivity, bool) - AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) - AsCopyActivity() (*CopyActivity, bool) - AsExecutionActivity() (*ExecutionActivity, bool) - AsBasicExecutionActivity() (BasicExecutionActivity, bool) - AsWebHookActivity() (*WebHookActivity, bool) - AsAppendVariableActivity() (*AppendVariableActivity, bool) - AsSetVariableActivity() (*SetVariableActivity, bool) - AsFilterActivity() (*FilterActivity, bool) - AsValidationActivity() (*ValidationActivity, bool) - AsUntilActivity() (*UntilActivity, bool) - AsFailActivity() (*FailActivity, bool) - AsWaitActivity() (*WaitActivity, bool) - AsForEachActivity() (*ForEachActivity, bool) - AsSwitchActivity() (*SwitchActivity, bool) - AsIfConditionActivity() (*IfConditionActivity, bool) - AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) - AsControlActivity() (*ControlActivity, bool) - AsBasicControlActivity() (BasicControlActivity, bool) - AsActivity() (*Activity, bool) -} - -// Activity a pipeline activity. -type Activity struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -func unmarshalBasicActivity(body []byte) (BasicActivity, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicActivityTypeExecuteWranglingDataflow): - var ewda ExecuteWranglingDataflowActivity - err := json.Unmarshal(body, &ewda) - return ewda, err - case string(TypeBasicActivityTypeSparkJob): - var ssjda SynapseSparkJobDefinitionActivity - err := json.Unmarshal(body, &ssjda) - return ssjda, err - case string(TypeBasicActivityTypeSynapseNotebook): - var sna SynapseNotebookActivity - err := json.Unmarshal(body, &sna) - return sna, err - case string(TypeBasicActivityTypeScript): - var sa ScriptActivity - err := json.Unmarshal(body, &sa) - return sa, err - case string(TypeBasicActivityTypeExecuteDataFlow): - var edfa ExecuteDataFlowActivity - err := json.Unmarshal(body, &edfa) - return edfa, err - case string(TypeBasicActivityTypeAzureFunctionActivity): - var afa AzureFunctionActivity - err := json.Unmarshal(body, &afa) - return afa, err - case string(TypeBasicActivityTypeDatabricksSparkPython): - var dspa DatabricksSparkPythonActivity - err := json.Unmarshal(body, &dspa) - return dspa, err - case string(TypeBasicActivityTypeDatabricksSparkJar): - var dsja DatabricksSparkJarActivity - err := json.Unmarshal(body, &dsja) - return dsja, err - case string(TypeBasicActivityTypeDatabricksNotebook): - var dna DatabricksNotebookActivity - err := json.Unmarshal(body, &dna) - return dna, err - case string(TypeBasicActivityTypeDataLakeAnalyticsUSQL): - var dlaua DataLakeAnalyticsUSQLActivity - err := json.Unmarshal(body, &dlaua) - return dlaua, err - case string(TypeBasicActivityTypeAzureMLExecutePipeline): - var amepa AzureMLExecutePipelineActivity - err := json.Unmarshal(body, &amepa) - return amepa, err - case string(TypeBasicActivityTypeAzureMLUpdateResource): - var amura AzureMLUpdateResourceActivity - err := json.Unmarshal(body, &amura) - return amura, err - case string(TypeBasicActivityTypeAzureMLBatchExecution): - var ambea AzureMLBatchExecutionActivity - err := json.Unmarshal(body, &ambea) - return ambea, err - case string(TypeBasicActivityTypeGetMetadata): - var gma GetMetadataActivity - err := json.Unmarshal(body, &gma) - return gma, err - case string(TypeBasicActivityTypeWebActivity): - var wa WebActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeBasicActivityTypeLookup): - var la LookupActivity - err := json.Unmarshal(body, &la) - return la, err - case string(TypeBasicActivityTypeAzureDataExplorerCommand): - var adeca AzureDataExplorerCommandActivity - err := json.Unmarshal(body, &adeca) - return adeca, err - case string(TypeBasicActivityTypeDelete): - var da DeleteActivity - err := json.Unmarshal(body, &da) - return da, err - case string(TypeBasicActivityTypeSQLServerStoredProcedure): - var ssspa SQLServerStoredProcedureActivity - err := json.Unmarshal(body, &ssspa) - return ssspa, err - case string(TypeBasicActivityTypeCustom): - var ca CustomActivity - err := json.Unmarshal(body, &ca) - return ca, err - case string(TypeBasicActivityTypeExecuteSSISPackage): - var espa ExecuteSSISPackageActivity - err := json.Unmarshal(body, &espa) - return espa, err - case string(TypeBasicActivityTypeHDInsightSpark): - var hisa HDInsightSparkActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeBasicActivityTypeHDInsightStreaming): - var hisa HDInsightStreamingActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeBasicActivityTypeHDInsightMapReduce): - var himra HDInsightMapReduceActivity - err := json.Unmarshal(body, &himra) - return himra, err - case string(TypeBasicActivityTypeHDInsightPig): - var hipa HDInsightPigActivity - err := json.Unmarshal(body, &hipa) - return hipa, err - case string(TypeBasicActivityTypeHDInsightHive): - var hiha HDInsightHiveActivity - err := json.Unmarshal(body, &hiha) - return hiha, err - case string(TypeBasicActivityTypeCopy): - var ca CopyActivity - err := json.Unmarshal(body, &ca) - return ca, err - case string(TypeBasicActivityTypeExecution): - var ea ExecutionActivity - err := json.Unmarshal(body, &ea) - return ea, err - case string(TypeBasicActivityTypeWebHook): - var wha WebHookActivity - err := json.Unmarshal(body, &wha) - return wha, err - case string(TypeBasicActivityTypeAppendVariable): - var ava AppendVariableActivity - err := json.Unmarshal(body, &ava) - return ava, err - case string(TypeBasicActivityTypeSetVariable): - var sva SetVariableActivity - err := json.Unmarshal(body, &sva) - return sva, err - case string(TypeBasicActivityTypeFilter): - var fa FilterActivity - err := json.Unmarshal(body, &fa) - return fa, err - case string(TypeBasicActivityTypeValidation): - var va ValidationActivity - err := json.Unmarshal(body, &va) - return va, err - case string(TypeBasicActivityTypeUntil): - var ua UntilActivity - err := json.Unmarshal(body, &ua) - return ua, err - case string(TypeBasicActivityTypeFail): - var fa FailActivity - err := json.Unmarshal(body, &fa) - return fa, err - case string(TypeBasicActivityTypeWait): - var wa WaitActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeBasicActivityTypeForEach): - var fea ForEachActivity - err := json.Unmarshal(body, &fea) - return fea, err - case string(TypeBasicActivityTypeSwitch): - var sa SwitchActivity - err := json.Unmarshal(body, &sa) - return sa, err - case string(TypeBasicActivityTypeIfCondition): - var ica IfConditionActivity - err := json.Unmarshal(body, &ica) - return ica, err - case string(TypeBasicActivityTypeExecutePipeline): - var epa ExecutePipelineActivity - err := json.Unmarshal(body, &epa) - return epa, err - case string(TypeBasicActivityTypeContainer): - var ca ControlActivity - err := json.Unmarshal(body, &ca) - return ca, err - default: - var a Activity - err := json.Unmarshal(body, &a) - return a, err - } -} -func unmarshalBasicActivityArray(body []byte) ([]BasicActivity, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - aArray := make([]BasicActivity, len(rawMessages)) - - for index, rawMessage := range rawMessages { - a, err := unmarshalBasicActivity(*rawMessage) - if err != nil { - return nil, err - } - aArray[index] = a - } - return aArray, nil -} - -// MarshalJSON is the custom marshaler for Activity. -func (a Activity) MarshalJSON() ([]byte, error) { - a.Type = TypeBasicActivityTypeActivity - objectMap := make(map[string]interface{}) - if a.Name != nil { - objectMap["name"] = a.Name - } - if a.Description != nil { - objectMap["description"] = a.Description - } - if a.State != "" { - objectMap["state"] = a.State - } - if a.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = a.OnInactiveMarkAs - } - if a.DependsOn != nil { - objectMap["dependsOn"] = a.DependsOn - } - if a.UserProperties != nil { - objectMap["userProperties"] = a.UserProperties - } - if a.Type != "" { - objectMap["type"] = a.Type - } - for k, v := range a.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for Activity. -func (a Activity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for Activity. -func (a Activity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for Activity. -func (a Activity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for Activity. -func (a Activity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for Activity. -func (a Activity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for Activity. -func (a Activity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for Activity. -func (a Activity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for Activity. -func (a Activity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for Activity. -func (a Activity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for Activity. -func (a Activity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for Activity. -func (a Activity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for Activity. -func (a Activity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for Activity. -func (a Activity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for Activity. -func (a Activity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for Activity. -func (a Activity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for Activity. -func (a Activity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for Activity. -func (a Activity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for Activity. -func (a Activity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for Activity. -func (a Activity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for Activity. -func (a Activity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for Activity. -func (a Activity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for Activity. -func (a Activity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for Activity. -func (a Activity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for Activity. -func (a Activity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for Activity. -func (a Activity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for Activity. -func (a Activity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for Activity. -func (a Activity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for Activity. -func (a Activity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for Activity. -func (a Activity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for Activity. -func (a Activity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for Activity. -func (a Activity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for Activity. -func (a Activity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for Activity. -func (a Activity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for Activity. -func (a Activity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for Activity. -func (a Activity) AsActivity() (*Activity, bool) { - return &a, true -} - -// AsBasicActivity is the BasicActivity implementation for Activity. -func (a Activity) AsBasicActivity() (BasicActivity, bool) { - return &a, true -} - -// UnmarshalJSON is the custom unmarshaler for Activity struct. -func (a *Activity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if a.AdditionalProperties == nil { - a.AdditionalProperties = make(map[string]interface{}) - } - a.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - a.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - a.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - a.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - a.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - a.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - a.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - a.Type = typeVar - } - } - } - - return nil -} - -// ActivityDependency activity dependency information. -type ActivityDependency struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Activity - Activity name. - Activity *string `json:"activity,omitempty"` - // DependencyConditions - Match-Condition for the dependency. - DependencyConditions *[]DependencyCondition `json:"dependencyConditions,omitempty"` -} - -// MarshalJSON is the custom marshaler for ActivityDependency. -func (ad ActivityDependency) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ad.Activity != nil { - objectMap["activity"] = ad.Activity - } - if ad.DependencyConditions != nil { - objectMap["dependencyConditions"] = ad.DependencyConditions - } - for k, v := range ad.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ActivityDependency struct. -func (ad *ActivityDependency) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ad.AdditionalProperties == nil { - ad.AdditionalProperties = make(map[string]interface{}) - } - ad.AdditionalProperties[k] = additionalProperties - } - case "activity": - if v != nil { - var activity string - err = json.Unmarshal(*v, &activity) - if err != nil { - return err - } - ad.Activity = &activity - } - case "dependencyConditions": - if v != nil { - var dependencyConditions []DependencyCondition - err = json.Unmarshal(*v, &dependencyConditions) - if err != nil { - return err - } - ad.DependencyConditions = &dependencyConditions - } - } - } - - return nil -} - -// ActivityPolicy execution policy for an activity. -type ActivityPolicy struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Timeout - 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"` - // Retry - Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Retry interface{} `json:"retry,omitempty"` - // RetryIntervalInSeconds - Interval between each retry attempt (in seconds). The default is 30 sec. - RetryIntervalInSeconds *int32 `json:"retryIntervalInSeconds,omitempty"` - // SecureInput - When set to true, Input from activity is considered as secure and will not be logged to monitoring. - SecureInput *bool `json:"secureInput,omitempty"` - // SecureOutput - When set to true, Output from activity is considered as secure and will not be logged to monitoring. - SecureOutput *bool `json:"secureOutput,omitempty"` -} - -// MarshalJSON is the custom marshaler for ActivityPolicy. -func (ap ActivityPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ap.Timeout != nil { - objectMap["timeout"] = ap.Timeout - } - if ap.Retry != nil { - objectMap["retry"] = ap.Retry - } - if ap.RetryIntervalInSeconds != nil { - objectMap["retryIntervalInSeconds"] = ap.RetryIntervalInSeconds - } - if ap.SecureInput != nil { - objectMap["secureInput"] = ap.SecureInput - } - if ap.SecureOutput != nil { - objectMap["secureOutput"] = ap.SecureOutput - } - for k, v := range ap.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ActivityPolicy struct. -func (ap *ActivityPolicy) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ap.AdditionalProperties == nil { - ap.AdditionalProperties = make(map[string]interface{}) - } - ap.AdditionalProperties[k] = additionalProperties - } - case "timeout": - if v != nil { - var timeout interface{} - err = json.Unmarshal(*v, &timeout) - if err != nil { - return err - } - ap.Timeout = timeout - } - case "retry": - if v != nil { - var retry interface{} - err = json.Unmarshal(*v, &retry) - if err != nil { - return err - } - ap.Retry = retry - } - case "retryIntervalInSeconds": - if v != nil { - var retryIntervalInSeconds int32 - err = json.Unmarshal(*v, &retryIntervalInSeconds) - if err != nil { - return err - } - ap.RetryIntervalInSeconds = &retryIntervalInSeconds - } - case "secureInput": - if v != nil { - var secureInput bool - err = json.Unmarshal(*v, &secureInput) - if err != nil { - return err - } - ap.SecureInput = &secureInput - } - case "secureOutput": - if v != nil { - var secureOutput bool - err = json.Unmarshal(*v, &secureOutput) - if err != nil { - return err - } - ap.SecureOutput = &secureOutput - } - } - } - - return nil -} - -// ActivityRun information about an activity run in a pipeline. -type ActivityRun struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // PipelineName - READ-ONLY; The name of the pipeline. - PipelineName *string `json:"pipelineName,omitempty"` - // PipelineRunID - READ-ONLY; The id of the pipeline run. - PipelineRunID *string `json:"pipelineRunId,omitempty"` - // ActivityName - READ-ONLY; The name of the activity. - ActivityName *string `json:"activityName,omitempty"` - // ActivityType - READ-ONLY; The type of the activity. - ActivityType *string `json:"activityType,omitempty"` - // ActivityRunID - READ-ONLY; The id of the activity run. - ActivityRunID *string `json:"activityRunId,omitempty"` - // LinkedServiceName - READ-ONLY; The name of the compute linked service. - LinkedServiceName *string `json:"linkedServiceName,omitempty"` - // Status - READ-ONLY; The status of the activity run. - Status *string `json:"status,omitempty"` - // ActivityRunStart - READ-ONLY; The start time of the activity run in 'ISO 8601' format. - ActivityRunStart *date.Time `json:"activityRunStart,omitempty"` - // ActivityRunEnd - READ-ONLY; The end time of the activity run in 'ISO 8601' format. - ActivityRunEnd *date.Time `json:"activityRunEnd,omitempty"` - // DurationInMs - READ-ONLY; The duration of the activity run. - DurationInMs *int32 `json:"durationInMs,omitempty"` - // Input - READ-ONLY; The input for the activity. - Input interface{} `json:"input,omitempty"` - // Output - READ-ONLY; The output for the activity. - Output interface{} `json:"output,omitempty"` - // Error - READ-ONLY; The error if any from the activity run. - Error interface{} `json:"error,omitempty"` -} - -// MarshalJSON is the custom marshaler for ActivityRun. -func (ar ActivityRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - for k, v := range ar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ActivityRun struct. -func (ar *ActivityRun) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ar.AdditionalProperties == nil { - ar.AdditionalProperties = make(map[string]interface{}) - } - ar.AdditionalProperties[k] = additionalProperties - } - case "pipelineName": - if v != nil { - var pipelineName string - err = json.Unmarshal(*v, &pipelineName) - if err != nil { - return err - } - ar.PipelineName = &pipelineName - } - case "pipelineRunId": - if v != nil { - var pipelineRunID string - err = json.Unmarshal(*v, &pipelineRunID) - if err != nil { - return err - } - ar.PipelineRunID = &pipelineRunID - } - case "activityName": - if v != nil { - var activityName string - err = json.Unmarshal(*v, &activityName) - if err != nil { - return err - } - ar.ActivityName = &activityName - } - case "activityType": - if v != nil { - var activityType string - err = json.Unmarshal(*v, &activityType) - if err != nil { - return err - } - ar.ActivityType = &activityType - } - case "activityRunId": - if v != nil { - var activityRunID string - err = json.Unmarshal(*v, &activityRunID) - if err != nil { - return err - } - ar.ActivityRunID = &activityRunID - } - case "linkedServiceName": - if v != nil { - var linkedServiceName string - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ar.LinkedServiceName = &linkedServiceName - } - case "status": - if v != nil { - var status string - err = json.Unmarshal(*v, &status) - if err != nil { - return err - } - ar.Status = &status - } - case "activityRunStart": - if v != nil { - var activityRunStart date.Time - err = json.Unmarshal(*v, &activityRunStart) - if err != nil { - return err - } - ar.ActivityRunStart = &activityRunStart - } - case "activityRunEnd": - if v != nil { - var activityRunEnd date.Time - err = json.Unmarshal(*v, &activityRunEnd) - if err != nil { - return err - } - ar.ActivityRunEnd = &activityRunEnd - } - case "durationInMs": - if v != nil { - var durationInMs int32 - err = json.Unmarshal(*v, &durationInMs) - if err != nil { - return err - } - ar.DurationInMs = &durationInMs - } - case "input": - if v != nil { - var input interface{} - err = json.Unmarshal(*v, &input) - if err != nil { - return err - } - ar.Input = input - } - case "output": - if v != nil { - var output interface{} - err = json.Unmarshal(*v, &output) - if err != nil { - return err - } - ar.Output = output - } - case "error": - if v != nil { - var errorVar interface{} - err = json.Unmarshal(*v, &errorVar) - if err != nil { - return err - } - ar.Error = errorVar - } - } - } - - return nil -} - -// ActivityRunsQueryResponse a list activity runs. -type ActivityRunsQueryResponse struct { - autorest.Response `json:"-"` - // Value - List of activity runs. - Value *[]ActivityRun `json:"value,omitempty"` - // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` -} - -// AddDataFlowToDebugSessionResponse response body structure for starting data flow debug session. -type AddDataFlowToDebugSessionResponse struct { - autorest.Response `json:"-"` - // JobVersion - 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 { - // Name - Additional column name. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - // Value - Additional column value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} - -// AmazonMWSLinkedService amazon Marketplace Web Service linked service. -type AmazonMWSLinkedService struct { - // AmazonMWSLinkedServiceTypeProperties - Amazon Marketplace Web Service linked service properties. - *AmazonMWSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) MarshalJSON() ([]byte, error) { - amls.Type = TypeBasicLinkedServiceTypeAmazonMWS - objectMap := make(map[string]interface{}) - if amls.AmazonMWSLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amls.AmazonMWSLinkedServiceTypeProperties - } - if amls.ConnectVia != nil { - objectMap["connectVia"] = amls.ConnectVia - } - if amls.Description != nil { - objectMap["description"] = amls.Description - } - if amls.Parameters != nil { - objectMap["parameters"] = amls.Parameters - } - if amls.Annotations != nil { - objectMap["annotations"] = amls.Annotations - } - if amls.Type != "" { - objectMap["type"] = amls.Type - } - for k, v := range amls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return &amls, true -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonMWSLinkedService. -func (amls AmazonMWSLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amls, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonMWSLinkedService struct. -func (amls *AmazonMWSLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonMWSLinkedServiceTypeProperties AmazonMWSLinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonMWSLinkedServiceTypeProperties) - if err != nil { - return err - } - amls.AmazonMWSLinkedServiceTypeProperties = &amazonMWSLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amls.AdditionalProperties == nil { - amls.AdditionalProperties = make(map[string]interface{}) - } - amls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amls.Type = typeVar - } - } - } - - return nil -} - -// AmazonMWSLinkedServiceTypeProperties amazon Marketplace Web Service linked service properties. -type AmazonMWSLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // MarketplaceID - 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"` - // SellerID - The Amazon seller ID. - SellerID interface{} `json:"sellerID,omitempty"` - // MwsAuthToken - The Amazon MWS authentication token. - MwsAuthToken BasicSecretBase `json:"mwsAuthToken,omitempty"` - // AccessKeyID - The access key id used to access data. - AccessKeyID interface{} `json:"accessKeyId,omitempty"` - // SecretKey - The secret key used to access data. - SecretKey BasicSecretBase `json:"secretKey,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AmazonMWSLinkedServiceTypeProperties struct. -func (amlstp *AmazonMWSLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - amlstp.Endpoint = endpoint - } - case "marketplaceID": - if v != nil { - var marketplaceID interface{} - err = json.Unmarshal(*v, &marketplaceID) - if err != nil { - return err - } - amlstp.MarketplaceID = marketplaceID - } - case "sellerID": - if v != nil { - var sellerID interface{} - err = json.Unmarshal(*v, &sellerID) - if err != nil { - return err - } - amlstp.SellerID = sellerID - } - case "mwsAuthToken": - if v != nil { - mwsAuthToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.MwsAuthToken = mwsAuthToken - } - case "accessKeyId": - if v != nil { - var accessKeyID interface{} - err = json.Unmarshal(*v, &accessKeyID) - if err != nil { - return err - } - amlstp.AccessKeyID = accessKeyID - } - case "secretKey": - if v != nil { - secretKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.SecretKey = secretKey - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - amlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - amlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - amlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - amlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AmazonMWSObjectDataset amazon Marketplace Web Service dataset. -type AmazonMWSObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) MarshalJSON() ([]byte, error) { - amod.Type = TypeBasicDatasetTypeAmazonMWSObject - objectMap := make(map[string]interface{}) - if amod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = amod.GenericDatasetTypeProperties - } - if amod.Description != nil { - objectMap["description"] = amod.Description - } - if amod.Structure != nil { - objectMap["structure"] = amod.Structure - } - if amod.Schema != nil { - objectMap["schema"] = amod.Schema - } - if amod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amod.LinkedServiceName - } - if amod.Parameters != nil { - objectMap["parameters"] = amod.Parameters - } - if amod.Annotations != nil { - objectMap["annotations"] = amod.Annotations - } - if amod.Folder != nil { - objectMap["folder"] = amod.Folder - } - if amod.Type != "" { - objectMap["type"] = amod.Type - } - for k, v := range amod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return &amod, true -} - -// AsHTTPDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AmazonMWSObjectDataset. -func (amod AmazonMWSObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &amod, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonMWSObjectDataset struct. -func (amod *AmazonMWSObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - amod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amod.AdditionalProperties == nil { - amod.AdditionalProperties = make(map[string]interface{}) - } - amod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - amod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - amod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - amod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - amod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amod.Type = typeVar - } - } - } - - return nil -} - -// AmazonMWSSource a copy activity Amazon Marketplace Web Service source. -type AmazonMWSSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonMWSSource. -func (ams AmazonMWSSource) MarshalJSON() ([]byte, error) { - ams.Type = TypeBasicCopySourceTypeAmazonMWSSource - objectMap := make(map[string]interface{}) - if ams.Query != nil { - objectMap["query"] = ams.Query - } - if ams.QueryTimeout != nil { - objectMap["queryTimeout"] = ams.QueryTimeout - } - if ams.AdditionalColumns != nil { - objectMap["additionalColumns"] = ams.AdditionalColumns - } - if ams.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ams.SourceRetryCount - } - if ams.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ams.SourceRetryWait - } - if ams.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ams.MaxConcurrentConnections - } - if ams.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ams.DisableMetricsCollection - } - if ams.Type != "" { - objectMap["type"] = ams.Type - } - for k, v := range ams.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return &ams, true -} - -// AsCassandraSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ams, true -} - -// AsBinarySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AmazonMWSSource. -func (ams AmazonMWSSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ams, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonMWSSource struct. -func (ams *AmazonMWSSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ams.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ams.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ams.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ams.AdditionalProperties == nil { - ams.AdditionalProperties = make(map[string]interface{}) - } - ams.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ams.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ams.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ams.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ams.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ams.Type = typeVar - } - } - } - - return nil -} - -// AmazonRdsForLinkedServiceTypeProperties amazonRdsForOracle database linked service properties. -type AmazonRdsForLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRdsForLinkedServiceTypeProperties struct. -func (arflstp *AmazonRdsForLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - arflstp.ConnectionString = connectionString - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - arflstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - arflstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AmazonRdsForOracleLinkedService amazonRdsForOracle database. -type AmazonRdsForOracleLinkedService struct { - // AmazonRdsForLinkedServiceTypeProperties - AmazonRdsForOracle database linked service properties. - *AmazonRdsForLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) MarshalJSON() ([]byte, error) { - arfols.Type = TypeBasicLinkedServiceTypeAmazonRdsForOracle - objectMap := make(map[string]interface{}) - if arfols.AmazonRdsForLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = arfols.AmazonRdsForLinkedServiceTypeProperties - } - if arfols.ConnectVia != nil { - objectMap["connectVia"] = arfols.ConnectVia - } - if arfols.Description != nil { - objectMap["description"] = arfols.Description - } - if arfols.Parameters != nil { - objectMap["parameters"] = arfols.Parameters - } - if arfols.Annotations != nil { - objectMap["annotations"] = arfols.Annotations - } - if arfols.Type != "" { - objectMap["type"] = arfols.Type - } - for k, v := range arfols.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return &arfols, true -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonRdsForOracleLinkedService. -func (arfols AmazonRdsForOracleLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &arfols, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRdsForOracleLinkedService struct. -func (arfols *AmazonRdsForOracleLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonRdsForLinkedServiceTypeProperties AmazonRdsForLinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonRdsForLinkedServiceTypeProperties) - if err != nil { - return err - } - arfols.AmazonRdsForLinkedServiceTypeProperties = &amazonRdsForLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if arfols.AdditionalProperties == nil { - arfols.AdditionalProperties = make(map[string]interface{}) - } - arfols.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - arfols.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - arfols.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - arfols.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - arfols.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arfols.Type = typeVar - } - } - } - - return nil -} - -// AmazonRdsForOraclePartitionSettings the settings that will be leveraged for AmazonRdsForOracle source -// partitioning. -type AmazonRdsForOraclePartitionSettings struct { - // PartitionNames - Names of the physical partitions of AmazonRdsForOracle table. - PartitionNames interface{} `json:"partitionNames,omitempty"` - // PartitionColumnName - 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"` - // PartitionUpperBound - 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"` - // PartitionLowerBound - 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"` -} - -// AmazonRdsForOracleSource a copy activity AmazonRdsForOracle source. -type AmazonRdsForOracleSource struct { - // OracleReaderQuery - AmazonRdsForOracle reader query. Type: string (or Expression with resultType string). - OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` - // QueryTimeout - 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"` - // PartitionOption - The partition mechanism that will be used for AmazonRdsForOracle read in parallel. Type: string (or Expression with resultType string). - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for AmazonRdsForOracle source partitioning. - PartitionSettings *AmazonRdsForOraclePartitionSettings `json:"partitionSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) MarshalJSON() ([]byte, error) { - arfos.Type = TypeBasicCopySourceTypeAmazonRdsForOracleSource - objectMap := make(map[string]interface{}) - if arfos.OracleReaderQuery != nil { - objectMap["oracleReaderQuery"] = arfos.OracleReaderQuery - } - if arfos.QueryTimeout != nil { - objectMap["queryTimeout"] = arfos.QueryTimeout - } - if arfos.PartitionOption != nil { - objectMap["partitionOption"] = arfos.PartitionOption - } - if arfos.PartitionSettings != nil { - objectMap["partitionSettings"] = arfos.PartitionSettings - } - if arfos.AdditionalColumns != nil { - objectMap["additionalColumns"] = arfos.AdditionalColumns - } - if arfos.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = arfos.SourceRetryCount - } - if arfos.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = arfos.SourceRetryWait - } - if arfos.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = arfos.MaxConcurrentConnections - } - if arfos.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = arfos.DisableMetricsCollection - } - if arfos.Type != "" { - objectMap["type"] = arfos.Type - } - for k, v := range arfos.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return &arfos, true -} - -// AsOracleSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AmazonRdsForOracleSource. -func (arfos AmazonRdsForOracleSource) AsBasicCopySource() (BasicCopySource, bool) { - return &arfos, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRdsForOracleSource struct. -func (arfos *AmazonRdsForOracleSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "oracleReaderQuery": - if v != nil { - var oracleReaderQuery interface{} - err = json.Unmarshal(*v, &oracleReaderQuery) - if err != nil { - return err - } - arfos.OracleReaderQuery = oracleReaderQuery - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - arfos.QueryTimeout = queryTimeout - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - arfos.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings AmazonRdsForOraclePartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - arfos.PartitionSettings = &partitionSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - arfos.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if arfos.AdditionalProperties == nil { - arfos.AdditionalProperties = make(map[string]interface{}) - } - arfos.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - arfos.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - arfos.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - arfos.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - arfos.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arfos.Type = typeVar - } - } - } - - return nil -} - -// AmazonRdsForOracleTableDataset the AmazonRdsForOracle database dataset. -type AmazonRdsForOracleTableDataset struct { - // AmazonRdsForOracleTableDatasetTypeProperties - AmazonRdsForOracle dataset properties. - *AmazonRdsForOracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) MarshalJSON() ([]byte, error) { - arfotd.Type = TypeBasicDatasetTypeAmazonRdsForOracleTable - objectMap := make(map[string]interface{}) - if arfotd.AmazonRdsForOracleTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = arfotd.AmazonRdsForOracleTableDatasetTypeProperties - } - if arfotd.Description != nil { - objectMap["description"] = arfotd.Description - } - if arfotd.Structure != nil { - objectMap["structure"] = arfotd.Structure - } - if arfotd.Schema != nil { - objectMap["schema"] = arfotd.Schema - } - if arfotd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = arfotd.LinkedServiceName - } - if arfotd.Parameters != nil { - objectMap["parameters"] = arfotd.Parameters - } - if arfotd.Annotations != nil { - objectMap["annotations"] = arfotd.Annotations - } - if arfotd.Folder != nil { - objectMap["folder"] = arfotd.Folder - } - if arfotd.Type != "" { - objectMap["type"] = arfotd.Type - } - for k, v := range arfotd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return &arfotd, true -} - -// AsOracleTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AmazonRdsForOracleTableDataset. -func (arfotd AmazonRdsForOracleTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &arfotd, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRdsForOracleTableDataset struct. -func (arfotd *AmazonRdsForOracleTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonRdsForOracleTableDatasetTypeProperties AmazonRdsForOracleTableDatasetTypeProperties - err = json.Unmarshal(*v, &amazonRdsForOracleTableDatasetTypeProperties) - if err != nil { - return err - } - arfotd.AmazonRdsForOracleTableDatasetTypeProperties = &amazonRdsForOracleTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if arfotd.AdditionalProperties == nil { - arfotd.AdditionalProperties = make(map[string]interface{}) - } - arfotd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - arfotd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - arfotd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - arfotd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - arfotd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - arfotd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - arfotd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - arfotd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arfotd.Type = typeVar - } - } - } - - return nil -} - -// AmazonRdsForOracleTableDatasetTypeProperties amazonRdsForOracle dataset properties. -type AmazonRdsForOracleTableDatasetTypeProperties struct { - // Schema - The schema name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// AmazonRdsForSQLServerLinkedService amazon RDS for SQL Server linked service. -type AmazonRdsForSQLServerLinkedService struct { - // AmazonRdsForSQLServerLinkedServiceTypeProperties - Amazon RDS for SQL Server linked service properties. - *AmazonRdsForSQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) MarshalJSON() ([]byte, error) { - arfssls.Type = TypeBasicLinkedServiceTypeAmazonRdsForSQLServer - objectMap := make(map[string]interface{}) - if arfssls.AmazonRdsForSQLServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = arfssls.AmazonRdsForSQLServerLinkedServiceTypeProperties - } - if arfssls.ConnectVia != nil { - objectMap["connectVia"] = arfssls.ConnectVia - } - if arfssls.Description != nil { - objectMap["description"] = arfssls.Description - } - if arfssls.Parameters != nil { - objectMap["parameters"] = arfssls.Parameters - } - if arfssls.Annotations != nil { - objectMap["annotations"] = arfssls.Annotations - } - if arfssls.Type != "" { - objectMap["type"] = arfssls.Type - } - for k, v := range arfssls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return &arfssls, true -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonRdsForSQLServerLinkedService. -func (arfssls AmazonRdsForSQLServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &arfssls, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRdsForSQLServerLinkedService struct. -func (arfssls *AmazonRdsForSQLServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonRdsForSQLServerLinkedServiceTypeProperties AmazonRdsForSQLServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonRdsForSQLServerLinkedServiceTypeProperties) - if err != nil { - return err - } - arfssls.AmazonRdsForSQLServerLinkedServiceTypeProperties = &amazonRdsForSQLServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if arfssls.AdditionalProperties == nil { - arfssls.AdditionalProperties = make(map[string]interface{}) - } - arfssls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - arfssls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - arfssls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - arfssls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - arfssls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arfssls.Type = typeVar - } - } - } - - return nil -} - -// AmazonRdsForSQLServerLinkedServiceTypeProperties amazon Rds for SQL Server linked service properties. -type AmazonRdsForSQLServerLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // UserName - The on-premises Windows authentication user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The on-premises Windows authentication password. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // AlwaysEncryptedSettings - Sql always encrypted properties. - AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRdsForSQLServerLinkedServiceTypeProperties struct. -func (arfsslstp *AmazonRdsForSQLServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - arfsslstp.ConnectionString = connectionString - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - arfsslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - arfsslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - arfsslstp.EncryptedCredential = &encryptedCredential - } - case "alwaysEncryptedSettings": - if v != nil { - var alwaysEncryptedSettings SQLAlwaysEncryptedProperties - err = json.Unmarshal(*v, &alwaysEncryptedSettings) - if err != nil { - return err - } - arfsslstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings - } - } - } - - return nil -} - -// AmazonRdsForSQLServerSource a copy activity Amazon RDS for SQL Server source. -type AmazonRdsForSQLServerSource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - 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"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // IsolationLevel - 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"` - // ProduceAdditionalTypes - Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) MarshalJSON() ([]byte, error) { - arfsss.Type = TypeBasicCopySourceTypeAmazonRdsForSQLServerSource - objectMap := make(map[string]interface{}) - if arfsss.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = arfsss.SQLReaderQuery - } - if arfsss.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = arfsss.SQLReaderStoredProcedureName - } - if arfsss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = arfsss.StoredProcedureParameters - } - if arfsss.IsolationLevel != nil { - objectMap["isolationLevel"] = arfsss.IsolationLevel - } - if arfsss.ProduceAdditionalTypes != nil { - objectMap["produceAdditionalTypes"] = arfsss.ProduceAdditionalTypes - } - if arfsss.PartitionOption != nil { - objectMap["partitionOption"] = arfsss.PartitionOption - } - if arfsss.PartitionSettings != nil { - objectMap["partitionSettings"] = arfsss.PartitionSettings - } - if arfsss.QueryTimeout != nil { - objectMap["queryTimeout"] = arfsss.QueryTimeout - } - if arfsss.AdditionalColumns != nil { - objectMap["additionalColumns"] = arfsss.AdditionalColumns - } - if arfsss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = arfsss.SourceRetryCount - } - if arfsss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = arfsss.SourceRetryWait - } - if arfsss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = arfsss.MaxConcurrentConnections - } - if arfsss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = arfsss.DisableMetricsCollection - } - if arfsss.Type != "" { - objectMap["type"] = arfsss.Type - } - for k, v := range arfsss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return &arfsss, true -} - -// AsSQLServerSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &arfsss, true -} - -// AsBinarySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AmazonRdsForSQLServerSource. -func (arfsss AmazonRdsForSQLServerSource) AsBasicCopySource() (BasicCopySource, bool) { - return &arfsss, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRdsForSQLServerSource struct. -func (arfsss *AmazonRdsForSQLServerSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - arfsss.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - arfsss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - arfsss.StoredProcedureParameters = storedProcedureParameters - } - case "isolationLevel": - if v != nil { - var isolationLevel interface{} - err = json.Unmarshal(*v, &isolationLevel) - if err != nil { - return err - } - arfsss.IsolationLevel = isolationLevel - } - case "produceAdditionalTypes": - if v != nil { - var produceAdditionalTypes interface{} - err = json.Unmarshal(*v, &produceAdditionalTypes) - if err != nil { - return err - } - arfsss.ProduceAdditionalTypes = produceAdditionalTypes - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - arfsss.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - arfsss.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - arfsss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - arfsss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if arfsss.AdditionalProperties == nil { - arfsss.AdditionalProperties = make(map[string]interface{}) - } - arfsss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - arfsss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - arfsss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - arfsss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - arfsss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arfsss.Type = typeVar - } - } - } - - return nil -} - -// AmazonRdsForSQLServerTableDataset the Amazon RDS for SQL Server dataset. -type AmazonRdsForSQLServerTableDataset struct { - // AmazonRdsForSQLServerTableDatasetTypeProperties - The Amazon RDS for SQL Server dataset properties. - *AmazonRdsForSQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) MarshalJSON() ([]byte, error) { - arfsstd.Type = TypeBasicDatasetTypeAmazonRdsForSQLServerTable - objectMap := make(map[string]interface{}) - if arfsstd.AmazonRdsForSQLServerTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = arfsstd.AmazonRdsForSQLServerTableDatasetTypeProperties - } - if arfsstd.Description != nil { - objectMap["description"] = arfsstd.Description - } - if arfsstd.Structure != nil { - objectMap["structure"] = arfsstd.Structure - } - if arfsstd.Schema != nil { - objectMap["schema"] = arfsstd.Schema - } - if arfsstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = arfsstd.LinkedServiceName - } - if arfsstd.Parameters != nil { - objectMap["parameters"] = arfsstd.Parameters - } - if arfsstd.Annotations != nil { - objectMap["annotations"] = arfsstd.Annotations - } - if arfsstd.Folder != nil { - objectMap["folder"] = arfsstd.Folder - } - if arfsstd.Type != "" { - objectMap["type"] = arfsstd.Type - } - for k, v := range arfsstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return &arfsstd, true -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AmazonRdsForSQLServerTableDataset. -func (arfsstd AmazonRdsForSQLServerTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &arfsstd, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRdsForSQLServerTableDataset struct. -func (arfsstd *AmazonRdsForSQLServerTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonRdsForSQLServerTableDatasetTypeProperties AmazonRdsForSQLServerTableDatasetTypeProperties - err = json.Unmarshal(*v, &amazonRdsForSQLServerTableDatasetTypeProperties) - if err != nil { - return err - } - arfsstd.AmazonRdsForSQLServerTableDatasetTypeProperties = &amazonRdsForSQLServerTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if arfsstd.AdditionalProperties == nil { - arfsstd.AdditionalProperties = make(map[string]interface{}) - } - arfsstd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - arfsstd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - arfsstd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - arfsstd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - arfsstd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - arfsstd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - arfsstd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - arfsstd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arfsstd.Type = typeVar - } - } - } - - return nil -} - -// AmazonRdsForSQLServerTableDatasetTypeProperties the Amazon RDS for SQL Server dataset properties. -type AmazonRdsForSQLServerTableDatasetTypeProperties struct { - // Schema - The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the SQL Server dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// AmazonRedshiftLinkedService linked service for Amazon Redshift. -type AmazonRedshiftLinkedService struct { - // AmazonRedshiftLinkedServiceTypeProperties - Amazon Redshift linked service properties. - *AmazonRedshiftLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) MarshalJSON() ([]byte, error) { - arls.Type = TypeBasicLinkedServiceTypeAmazonRedshift - objectMap := make(map[string]interface{}) - if arls.AmazonRedshiftLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = arls.AmazonRedshiftLinkedServiceTypeProperties - } - if arls.ConnectVia != nil { - objectMap["connectVia"] = arls.ConnectVia - } - if arls.Description != nil { - objectMap["description"] = arls.Description - } - if arls.Parameters != nil { - objectMap["parameters"] = arls.Parameters - } - if arls.Annotations != nil { - objectMap["annotations"] = arls.Annotations - } - if arls.Type != "" { - objectMap["type"] = arls.Type - } - for k, v := range arls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return &arls, true -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonRedshiftLinkedService. -func (arls AmazonRedshiftLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &arls, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftLinkedService struct. -func (arls *AmazonRedshiftLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonRedshiftLinkedServiceTypeProperties AmazonRedshiftLinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonRedshiftLinkedServiceTypeProperties) - if err != nil { - return err - } - arls.AmazonRedshiftLinkedServiceTypeProperties = &amazonRedshiftLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if arls.AdditionalProperties == nil { - arls.AdditionalProperties = make(map[string]interface{}) - } - arls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - arls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - arls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - arls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - arls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - arls.Type = typeVar - } - } - } - - return nil -} - -// AmazonRedshiftLinkedServiceTypeProperties amazon Redshift linked service properties. -type AmazonRedshiftLinkedServiceTypeProperties struct { - // Server - The name of the Amazon Redshift server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Username - The username of the Amazon Redshift source. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password of the Amazon Redshift source. - Password BasicSecretBase `json:"password,omitempty"` - // Database - The database name of the Amazon Redshift source. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Port - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftLinkedServiceTypeProperties struct. -func (arlstp *AmazonRedshiftLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - arlstp.Server = server - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - arlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - arlstp.Password = password - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - arlstp.Database = databaseVar - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - arlstp.Port = port - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - arlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AmazonRedshiftSource a copy activity source for Amazon Redshift Source. -type AmazonRedshiftSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // RedshiftUnloadSettings - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) MarshalJSON() ([]byte, error) { - ars.Type = TypeBasicCopySourceTypeAmazonRedshiftSource - objectMap := make(map[string]interface{}) - if ars.Query != nil { - objectMap["query"] = ars.Query - } - if ars.RedshiftUnloadSettings != nil { - objectMap["redshiftUnloadSettings"] = ars.RedshiftUnloadSettings - } - if ars.QueryTimeout != nil { - objectMap["queryTimeout"] = ars.QueryTimeout - } - if ars.AdditionalColumns != nil { - objectMap["additionalColumns"] = ars.AdditionalColumns - } - if ars.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ars.SourceRetryCount - } - if ars.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ars.SourceRetryWait - } - if ars.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ars.MaxConcurrentConnections - } - if ars.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ars.DisableMetricsCollection - } - if ars.Type != "" { - objectMap["type"] = ars.Type - } - for k, v := range ars.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return &ars, true -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ars, true -} - -// AsBinarySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AmazonRedshiftSource. -func (ars AmazonRedshiftSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ars, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftSource struct. -func (ars *AmazonRedshiftSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ars.Query = query - } - case "redshiftUnloadSettings": - if v != nil { - var redshiftUnloadSettings RedshiftUnloadSettings - err = json.Unmarshal(*v, &redshiftUnloadSettings) - if err != nil { - return err - } - ars.RedshiftUnloadSettings = &redshiftUnloadSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ars.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ars.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ars.AdditionalProperties == nil { - ars.AdditionalProperties = make(map[string]interface{}) - } - ars.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ars.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ars.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ars.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ars.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ars.Type = typeVar - } - } - } - - return nil -} - -// AmazonRedshiftTableDataset the Amazon Redshift table dataset. -type AmazonRedshiftTableDataset struct { - // AmazonRedshiftTableDatasetTypeProperties - Amazon Redshift table dataset properties. - *AmazonRedshiftTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) MarshalJSON() ([]byte, error) { - artd.Type = TypeBasicDatasetTypeAmazonRedshiftTable - objectMap := make(map[string]interface{}) - if artd.AmazonRedshiftTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = artd.AmazonRedshiftTableDatasetTypeProperties - } - if artd.Description != nil { - objectMap["description"] = artd.Description - } - if artd.Structure != nil { - objectMap["structure"] = artd.Structure - } - if artd.Schema != nil { - objectMap["schema"] = artd.Schema - } - if artd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = artd.LinkedServiceName - } - if artd.Parameters != nil { - objectMap["parameters"] = artd.Parameters - } - if artd.Annotations != nil { - objectMap["annotations"] = artd.Annotations - } - if artd.Folder != nil { - objectMap["folder"] = artd.Folder - } - if artd.Type != "" { - objectMap["type"] = artd.Type - } - for k, v := range artd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return &artd, true -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AmazonRedshiftTableDataset. -func (artd AmazonRedshiftTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &artd, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonRedshiftTableDataset struct. -func (artd *AmazonRedshiftTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonRedshiftTableDatasetTypeProperties AmazonRedshiftTableDatasetTypeProperties - err = json.Unmarshal(*v, &amazonRedshiftTableDatasetTypeProperties) - if err != nil { - return err - } - artd.AmazonRedshiftTableDatasetTypeProperties = &amazonRedshiftTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if artd.AdditionalProperties == nil { - artd.AdditionalProperties = make(map[string]interface{}) - } - artd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - artd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - artd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - artd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - artd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - artd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - artd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - artd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - artd.Type = typeVar - } - } - } - - return nil -} - -// AmazonRedshiftTableDatasetTypeProperties amazon Redshift table dataset properties. -type AmazonRedshiftTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The Amazon Redshift table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The Amazon Redshift schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// AmazonS3CompatibleLinkedService linked service for Amazon S3 Compatible. -type AmazonS3CompatibleLinkedService struct { - // AmazonS3CompatibleLinkedServiceTypeProperties - Amazon S3 Compatible linked service properties. - *AmazonS3CompatibleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) MarshalJSON() ([]byte, error) { - ascls.Type = TypeBasicLinkedServiceTypeAmazonS3Compatible - objectMap := make(map[string]interface{}) - if ascls.AmazonS3CompatibleLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ascls.AmazonS3CompatibleLinkedServiceTypeProperties - } - if ascls.ConnectVia != nil { - objectMap["connectVia"] = ascls.ConnectVia - } - if ascls.Description != nil { - objectMap["description"] = ascls.Description - } - if ascls.Parameters != nil { - objectMap["parameters"] = ascls.Parameters - } - if ascls.Annotations != nil { - objectMap["annotations"] = ascls.Annotations - } - if ascls.Type != "" { - objectMap["type"] = ascls.Type - } - for k, v := range ascls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return &ascls, true -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonS3CompatibleLinkedService. -func (ascls AmazonS3CompatibleLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ascls, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3CompatibleLinkedService struct. -func (ascls *AmazonS3CompatibleLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonS3CompatibleLinkedServiceTypeProperties AmazonS3CompatibleLinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonS3CompatibleLinkedServiceTypeProperties) - if err != nil { - return err - } - ascls.AmazonS3CompatibleLinkedServiceTypeProperties = &amazonS3CompatibleLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ascls.AdditionalProperties == nil { - ascls.AdditionalProperties = make(map[string]interface{}) - } - ascls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ascls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ascls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ascls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ascls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ascls.Type = typeVar - } - } - } - - return nil -} - -// AmazonS3CompatibleLinkedServiceTypeProperties amazon S3 Compatible linked service properties. -type AmazonS3CompatibleLinkedServiceTypeProperties struct { - // AccessKeyID - 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"` - // SecretAccessKey - The secret access key of the Amazon S3 Compatible Identity and Access Management (IAM) user. - SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` - // ServiceURL - 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"` - // ForcePathStyle - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3CompatibleLinkedServiceTypeProperties struct. -func (asclstp *AmazonS3CompatibleLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accessKeyId": - if v != nil { - var accessKeyID interface{} - err = json.Unmarshal(*v, &accessKeyID) - if err != nil { - return err - } - asclstp.AccessKeyID = accessKeyID - } - case "secretAccessKey": - if v != nil { - secretAccessKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - asclstp.SecretAccessKey = secretAccessKey - } - case "serviceUrl": - if v != nil { - var serviceURL interface{} - err = json.Unmarshal(*v, &serviceURL) - if err != nil { - return err - } - asclstp.ServiceURL = serviceURL - } - case "forcePathStyle": - if v != nil { - var forcePathStyle interface{} - err = json.Unmarshal(*v, &forcePathStyle) - if err != nil { - return err - } - asclstp.ForcePathStyle = forcePathStyle - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - asclstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AmazonS3CompatibleLocation the location of Amazon S3 Compatible dataset. -type AmazonS3CompatibleLocation struct { - // BucketName - Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` - // Version - Specify the version of Amazon S3 Compatible. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) MarshalJSON() ([]byte, error) { - ascl.Type = TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation - objectMap := make(map[string]interface{}) - if ascl.BucketName != nil { - objectMap["bucketName"] = ascl.BucketName - } - if ascl.Version != nil { - objectMap["version"] = ascl.Version - } - if ascl.FolderPath != nil { - objectMap["folderPath"] = ascl.FolderPath - } - if ascl.FileName != nil { - objectMap["fileName"] = ascl.FileName - } - if ascl.Type != "" { - objectMap["type"] = ascl.Type - } - for k, v := range ascl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return &ascl, true -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AmazonS3CompatibleLocation. -func (ascl AmazonS3CompatibleLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &ascl, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3CompatibleLocation struct. -func (ascl *AmazonS3CompatibleLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "bucketName": - if v != nil { - var bucketName interface{} - err = json.Unmarshal(*v, &bucketName) - if err != nil { - return err - } - ascl.BucketName = bucketName - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - ascl.Version = version - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ascl.AdditionalProperties == nil { - ascl.AdditionalProperties = make(map[string]interface{}) - } - ascl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - ascl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - ascl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ascl.Type = typeVar - } - } - } - - return nil -} - -// AmazonS3CompatibleReadSettings amazon S3 Compatible read settings. -type AmazonS3CompatibleReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Amazon S3 Compatible wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // Prefix - The prefix filter for the S3 Compatible object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) MarshalJSON() ([]byte, error) { - ascrs.Type = TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings - objectMap := make(map[string]interface{}) - if ascrs.Recursive != nil { - objectMap["recursive"] = ascrs.Recursive - } - if ascrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = ascrs.WildcardFolderPath - } - if ascrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = ascrs.WildcardFileName - } - if ascrs.Prefix != nil { - objectMap["prefix"] = ascrs.Prefix - } - if ascrs.FileListPath != nil { - objectMap["fileListPath"] = ascrs.FileListPath - } - if ascrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = ascrs.EnablePartitionDiscovery - } - if ascrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = ascrs.PartitionRootPath - } - if ascrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = ascrs.DeleteFilesAfterCompletion - } - if ascrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = ascrs.ModifiedDatetimeStart - } - if ascrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = ascrs.ModifiedDatetimeEnd - } - if ascrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ascrs.MaxConcurrentConnections - } - if ascrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ascrs.DisableMetricsCollection - } - if ascrs.Type != "" { - objectMap["type"] = ascrs.Type - } - for k, v := range ascrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return &ascrs, true -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3CompatibleReadSettings. -func (ascrs AmazonS3CompatibleReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &ascrs, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3CompatibleReadSettings struct. -func (ascrs *AmazonS3CompatibleReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - ascrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - ascrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - ascrs.WildcardFileName = wildcardFileName - } - case "prefix": - if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) - if err != nil { - return err - } - ascrs.Prefix = prefix - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - ascrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - ascrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - ascrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - ascrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - ascrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - ascrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ascrs.AdditionalProperties == nil { - ascrs.AdditionalProperties = make(map[string]interface{}) - } - ascrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ascrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ascrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ascrs.Type = typeVar - } - } - } - - return nil -} - -// AmazonS3Dataset a single Amazon Simple Storage Service (S3) object or a set of S3 objects. -type AmazonS3Dataset struct { - // AmazonS3DatasetTypeProperties - Amazon S3 dataset properties. - *AmazonS3DatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonS3Dataset. -func (asd AmazonS3Dataset) MarshalJSON() ([]byte, error) { - asd.Type = TypeBasicDatasetTypeAmazonS3Object - objectMap := make(map[string]interface{}) - if asd.AmazonS3DatasetTypeProperties != nil { - objectMap["typeProperties"] = asd.AmazonS3DatasetTypeProperties - } - if asd.Description != nil { - objectMap["description"] = asd.Description - } - if asd.Structure != nil { - objectMap["structure"] = asd.Structure - } - if asd.Schema != nil { - objectMap["schema"] = asd.Schema - } - if asd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asd.LinkedServiceName - } - if asd.Parameters != nil { - objectMap["parameters"] = asd.Parameters - } - if asd.Annotations != nil { - objectMap["annotations"] = asd.Annotations - } - if asd.Folder != nil { - objectMap["folder"] = asd.Folder - } - if asd.Type != "" { - objectMap["type"] = asd.Type - } - for k, v := range asd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return &asd, true -} - -// AsDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AmazonS3Dataset. -func (asd AmazonS3Dataset) AsBasicDataset() (BasicDataset, bool) { - return &asd, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3Dataset struct. -func (asd *AmazonS3Dataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonS3DatasetTypeProperties AmazonS3DatasetTypeProperties - err = json.Unmarshal(*v, &amazonS3DatasetTypeProperties) - if err != nil { - return err - } - asd.AmazonS3DatasetTypeProperties = &amazonS3DatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asd.AdditionalProperties == nil { - asd.AdditionalProperties = make(map[string]interface{}) - } - asd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - asd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - asd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - asd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - asd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asd.Type = typeVar - } - } - } - - return nil -} - -// AmazonS3DatasetTypeProperties amazon S3 dataset properties. -type AmazonS3DatasetTypeProperties struct { - // BucketName - The name of the Amazon S3 bucket. Type: string (or Expression with resultType string). - BucketName interface{} `json:"bucketName,omitempty"` - // Key - The key of the Amazon S3 object. Type: string (or Expression with resultType string). - Key interface{} `json:"key,omitempty"` - // Prefix - The prefix filter for the S3 object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // Version - The version for the S3 object. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // ModifiedDatetimeStart - The start of S3 object's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of S3 object's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // Format - The format of files. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used for the Amazon S3 object. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3DatasetTypeProperties struct. -func (asdtp *AmazonS3DatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "bucketName": - if v != nil { - var bucketName interface{} - err = json.Unmarshal(*v, &bucketName) - if err != nil { - return err - } - asdtp.BucketName = bucketName - } - case "key": - if v != nil { - var key interface{} - err = json.Unmarshal(*v, &key) - if err != nil { - return err - } - asdtp.Key = key - } - case "prefix": - if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) - if err != nil { - return err - } - asdtp.Prefix = prefix - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - asdtp.Version = version - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - asdtp.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - asdtp.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - asdtp.Format = formatVar - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - asdtp.Compression = &compression - } - } - } - - return nil -} - -// AmazonS3LinkedService linked service for Amazon S3. -type AmazonS3LinkedService struct { - // AmazonS3LinkedServiceTypeProperties - Amazon S3 linked service properties. - *AmazonS3LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) MarshalJSON() ([]byte, error) { - asls.Type = TypeBasicLinkedServiceTypeAmazonS3 - objectMap := make(map[string]interface{}) - if asls.AmazonS3LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asls.AmazonS3LinkedServiceTypeProperties - } - if asls.ConnectVia != nil { - objectMap["connectVia"] = asls.ConnectVia - } - if asls.Description != nil { - objectMap["description"] = asls.Description - } - if asls.Parameters != nil { - objectMap["parameters"] = asls.Parameters - } - if asls.Annotations != nil { - objectMap["annotations"] = asls.Annotations - } - if asls.Type != "" { - objectMap["type"] = asls.Type - } - for k, v := range asls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return &asls, true -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AmazonS3LinkedService. -func (asls AmazonS3LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asls, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3LinkedService struct. -func (asls *AmazonS3LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var amazonS3LinkedServiceTypeProperties AmazonS3LinkedServiceTypeProperties - err = json.Unmarshal(*v, &amazonS3LinkedServiceTypeProperties) - if err != nil { - return err - } - asls.AmazonS3LinkedServiceTypeProperties = &amazonS3LinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asls.AdditionalProperties == nil { - asls.AdditionalProperties = make(map[string]interface{}) - } - asls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asls.Type = typeVar - } - } - } - - return nil -} - -// AmazonS3LinkedServiceTypeProperties amazon S3 linked service properties. -type AmazonS3LinkedServiceTypeProperties struct { - // AuthenticationType - The authentication type of S3. Allowed value: AccessKey (default) or TemporarySecurityCredentials. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` - // AccessKeyID - 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"` - // SecretAccessKey - The secret access key of the Amazon S3 Identity and Access Management (IAM) user. - SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` - // ServiceURL - 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"` - // SessionToken - The session token for the S3 temporary security credential. - SessionToken BasicSecretBase `json:"sessionToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3LinkedServiceTypeProperties struct. -func (aslstp *AmazonS3LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - aslstp.AuthenticationType = authenticationType - } - case "accessKeyId": - if v != nil { - var accessKeyID interface{} - err = json.Unmarshal(*v, &accessKeyID) - if err != nil { - return err - } - aslstp.AccessKeyID = accessKeyID - } - case "secretAccessKey": - if v != nil { - secretAccessKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aslstp.SecretAccessKey = secretAccessKey - } - case "serviceUrl": - if v != nil { - var serviceURL interface{} - err = json.Unmarshal(*v, &serviceURL) - if err != nil { - return err - } - aslstp.ServiceURL = serviceURL - } - case "sessionToken": - if v != nil { - sessionToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aslstp.SessionToken = sessionToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - aslstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AmazonS3Location the location of amazon S3 dataset. -type AmazonS3Location struct { - // BucketName - Specify the bucketName of amazon S3. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` - // Version - Specify the version of amazon S3. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonS3Location. -func (asl AmazonS3Location) MarshalJSON() ([]byte, error) { - asl.Type = TypeBasicDatasetLocationTypeAmazonS3Location - objectMap := make(map[string]interface{}) - if asl.BucketName != nil { - objectMap["bucketName"] = asl.BucketName - } - if asl.Version != nil { - objectMap["version"] = asl.Version - } - if asl.FolderPath != nil { - objectMap["folderPath"] = asl.FolderPath - } - if asl.FileName != nil { - objectMap["fileName"] = asl.FileName - } - if asl.Type != "" { - objectMap["type"] = asl.Type - } - for k, v := range asl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsAmazonS3Location() (*AmazonS3Location, bool) { - return &asl, true -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AmazonS3Location. -func (asl AmazonS3Location) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &asl, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3Location struct. -func (asl *AmazonS3Location) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "bucketName": - if v != nil { - var bucketName interface{} - err = json.Unmarshal(*v, &bucketName) - if err != nil { - return err - } - asl.BucketName = bucketName - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - asl.Version = version - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asl.AdditionalProperties == nil { - asl.AdditionalProperties = make(map[string]interface{}) - } - asl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - asl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - asl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asl.Type = typeVar - } - } - } - - return nil -} - -// AmazonS3ReadSettings amazon S3 read settings. -type AmazonS3ReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - AmazonS3 wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // Prefix - The prefix filter for the S3 object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) MarshalJSON() ([]byte, error) { - asrs.Type = TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings - objectMap := make(map[string]interface{}) - if asrs.Recursive != nil { - objectMap["recursive"] = asrs.Recursive - } - if asrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = asrs.WildcardFolderPath - } - if asrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = asrs.WildcardFileName - } - if asrs.Prefix != nil { - objectMap["prefix"] = asrs.Prefix - } - if asrs.FileListPath != nil { - objectMap["fileListPath"] = asrs.FileListPath - } - if asrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = asrs.EnablePartitionDiscovery - } - if asrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = asrs.PartitionRootPath - } - if asrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = asrs.DeleteFilesAfterCompletion - } - if asrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = asrs.ModifiedDatetimeStart - } - if asrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = asrs.ModifiedDatetimeEnd - } - if asrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = asrs.MaxConcurrentConnections - } - if asrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = asrs.DisableMetricsCollection - } - if asrs.Type != "" { - objectMap["type"] = asrs.Type - } - for k, v := range asrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return &asrs, true -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AmazonS3ReadSettings. -func (asrs AmazonS3ReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &asrs, true -} - -// UnmarshalJSON is the custom unmarshaler for AmazonS3ReadSettings struct. -func (asrs *AmazonS3ReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - asrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - asrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - asrs.WildcardFileName = wildcardFileName - } - case "prefix": - if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) - if err != nil { - return err - } - asrs.Prefix = prefix - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - asrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - asrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - asrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - asrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - asrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - asrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asrs.AdditionalProperties == nil { - asrs.AdditionalProperties = make(map[string]interface{}) - } - asrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - asrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - asrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asrs.Type = typeVar - } - } - } - - return nil -} - -// AppFiguresLinkedService linked service for AppFigures. -type AppFiguresLinkedService struct { - // AppFiguresLinkedServiceTypeProperties - AppFigures linked service properties. - *AppFiguresLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) MarshalJSON() ([]byte, error) { - afls.Type = TypeBasicLinkedServiceTypeAppFigures - objectMap := make(map[string]interface{}) - if afls.AppFiguresLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = afls.AppFiguresLinkedServiceTypeProperties - } - if afls.ConnectVia != nil { - objectMap["connectVia"] = afls.ConnectVia - } - if afls.Description != nil { - objectMap["description"] = afls.Description - } - if afls.Parameters != nil { - objectMap["parameters"] = afls.Parameters - } - if afls.Annotations != nil { - objectMap["annotations"] = afls.Annotations - } - if afls.Type != "" { - objectMap["type"] = afls.Type - } - for k, v := range afls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return &afls, true -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AppFiguresLinkedService. -func (afls AppFiguresLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &afls, true -} - -// UnmarshalJSON is the custom unmarshaler for AppFiguresLinkedService struct. -func (afls *AppFiguresLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var appFiguresLinkedServiceTypeProperties AppFiguresLinkedServiceTypeProperties - err = json.Unmarshal(*v, &appFiguresLinkedServiceTypeProperties) - if err != nil { - return err - } - afls.AppFiguresLinkedServiceTypeProperties = &appFiguresLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if afls.AdditionalProperties == nil { - afls.AdditionalProperties = make(map[string]interface{}) - } - afls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - afls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - afls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - afls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - afls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - afls.Type = typeVar - } - } - } - - return nil -} - -// AppFiguresLinkedServiceTypeProperties appFigures linked service type properties. -type AppFiguresLinkedServiceTypeProperties struct { - // UserName - The username of the Appfigures source. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The password of the AppFigures source. - Password BasicSecretBase `json:"password,omitempty"` - // ClientKey - The client key for the AppFigures source. - ClientKey BasicSecretBase `json:"clientKey,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AppFiguresLinkedServiceTypeProperties struct. -func (aflstp *AppFiguresLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - aflstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aflstp.Password = password - } - case "clientKey": - if v != nil { - clientKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aflstp.ClientKey = clientKey - } - } - } - - return nil -} - -// AppendVariableActivity append value for a Variable of type Array. -type AppendVariableActivity struct { - // AppendVariableActivityTypeProperties - Append Variable activity properties. - *AppendVariableActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AppendVariableActivity. -func (ava AppendVariableActivity) MarshalJSON() ([]byte, error) { - ava.Type = TypeBasicActivityTypeAppendVariable - objectMap := make(map[string]interface{}) - if ava.AppendVariableActivityTypeProperties != nil { - objectMap["typeProperties"] = ava.AppendVariableActivityTypeProperties - } - if ava.Name != nil { - objectMap["name"] = ava.Name - } - if ava.Description != nil { - objectMap["description"] = ava.Description - } - if ava.State != "" { - objectMap["state"] = ava.State - } - if ava.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ava.OnInactiveMarkAs - } - if ava.DependsOn != nil { - objectMap["dependsOn"] = ava.DependsOn - } - if ava.UserProperties != nil { - objectMap["userProperties"] = ava.UserProperties - } - if ava.Type != "" { - objectMap["type"] = ava.Type - } - for k, v := range ava.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return &ava, true -} - -// AsSetVariableActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &ava, true -} - -// AsActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for AppendVariableActivity. -func (ava AppendVariableActivity) AsBasicActivity() (BasicActivity, bool) { - return &ava, true -} - -// UnmarshalJSON is the custom unmarshaler for AppendVariableActivity struct. -func (ava *AppendVariableActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var appendVariableActivityTypeProperties AppendVariableActivityTypeProperties - err = json.Unmarshal(*v, &appendVariableActivityTypeProperties) - if err != nil { - return err - } - ava.AppendVariableActivityTypeProperties = &appendVariableActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ava.AdditionalProperties == nil { - ava.AdditionalProperties = make(map[string]interface{}) - } - ava.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ava.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ava.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ava.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ava.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ava.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ava.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ava.Type = typeVar - } - } - } - - return nil -} - -// AppendVariableActivityTypeProperties appendVariable activity properties. -type AppendVariableActivityTypeProperties struct { - // VariableName - Name of the variable whose value needs to be appended to. - VariableName *string `json:"variableName,omitempty"` - // Value - 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 interface{} `json:"value,omitempty"` -} - -// ArmIDWrapper a wrapper for an ARM resource id -type ArmIDWrapper struct { - // ID - READ-ONLY - ID *string `json:"id,omitempty"` -} - -// MarshalJSON is the custom marshaler for ArmIDWrapper. -func (aiw ArmIDWrapper) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// AsanaLinkedService linked service for Asana. -type AsanaLinkedService struct { - // AsanaLinkedServiceTypeProperties - Asana linked service properties. - *AsanaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AsanaLinkedService. -func (als AsanaLinkedService) MarshalJSON() ([]byte, error) { - als.Type = TypeBasicLinkedServiceTypeAsana - objectMap := make(map[string]interface{}) - if als.AsanaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = als.AsanaLinkedServiceTypeProperties - } - if als.ConnectVia != nil { - objectMap["connectVia"] = als.ConnectVia - } - if als.Description != nil { - objectMap["description"] = als.Description - } - if als.Parameters != nil { - objectMap["parameters"] = als.Parameters - } - if als.Annotations != nil { - objectMap["annotations"] = als.Annotations - } - if als.Type != "" { - objectMap["type"] = als.Type - } - for k, v := range als.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return &als, true -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AsanaLinkedService. -func (als AsanaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &als, true -} - -// UnmarshalJSON is the custom unmarshaler for AsanaLinkedService struct. -func (als *AsanaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var asanaLinkedServiceTypeProperties AsanaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &asanaLinkedServiceTypeProperties) - if err != nil { - return err - } - als.AsanaLinkedServiceTypeProperties = &asanaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if als.AdditionalProperties == nil { - als.AdditionalProperties = make(map[string]interface{}) - } - als.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - als.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - als.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - als.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - als.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - als.Type = typeVar - } - } - } - - return nil -} - -// AsanaLinkedServiceTypeProperties asana linked service type properties. -type AsanaLinkedServiceTypeProperties struct { - // APIToken - The api token for the Asana source. - APIToken BasicSecretBase `json:"apiToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AsanaLinkedServiceTypeProperties struct. -func (alstp *AsanaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "apiToken": - if v != nil { - APIToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - alstp.APIToken = APIToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - alstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AvroDataset avro dataset. -type AvroDataset struct { - // AvroDatasetTypeProperties - Avro dataset properties. - *AvroDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AvroDataset. -func (ad AvroDataset) MarshalJSON() ([]byte, error) { - ad.Type = TypeBasicDatasetTypeAvro - objectMap := make(map[string]interface{}) - if ad.AvroDatasetTypeProperties != nil { - objectMap["typeProperties"] = ad.AvroDatasetTypeProperties - } - if ad.Description != nil { - objectMap["description"] = ad.Description - } - if ad.Structure != nil { - objectMap["structure"] = ad.Structure - } - if ad.Schema != nil { - objectMap["schema"] = ad.Schema - } - if ad.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ad.LinkedServiceName - } - if ad.Parameters != nil { - objectMap["parameters"] = ad.Parameters - } - if ad.Annotations != nil { - objectMap["annotations"] = ad.Annotations - } - if ad.Folder != nil { - objectMap["folder"] = ad.Folder - } - if ad.Type != "" { - objectMap["type"] = ad.Type - } - for k, v := range ad.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAvroDataset() (*AvroDataset, bool) { - return &ad, true -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AvroDataset. -func (ad AvroDataset) AsBasicDataset() (BasicDataset, bool) { - return &ad, true -} - -// UnmarshalJSON is the custom unmarshaler for AvroDataset struct. -func (ad *AvroDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var avroDatasetTypeProperties AvroDatasetTypeProperties - err = json.Unmarshal(*v, &avroDatasetTypeProperties) - if err != nil { - return err - } - ad.AvroDatasetTypeProperties = &avroDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ad.AdditionalProperties == nil { - ad.AdditionalProperties = make(map[string]interface{}) - } - ad.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ad.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ad.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - ad.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ad.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ad.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ad.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ad.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ad.Type = typeVar - } - } - } - - return nil -} - -// AvroDatasetTypeProperties avro dataset properties. -type AvroDatasetTypeProperties struct { - // Location - The location of the avro storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // AvroCompressionCodec - The data avroCompressionCodec. Type: string (or Expression with resultType string). - AvroCompressionCodec interface{} `json:"avroCompressionCodec,omitempty"` - AvroCompressionLevel *int32 `json:"avroCompressionLevel,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AvroDatasetTypeProperties struct. -func (adtp *AvroDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - adtp.Location = location - } - case "avroCompressionCodec": - if v != nil { - var avroCompressionCodec interface{} - err = json.Unmarshal(*v, &avroCompressionCodec) - if err != nil { - return err - } - adtp.AvroCompressionCodec = avroCompressionCodec - } - case "avroCompressionLevel": - if v != nil { - var avroCompressionLevel int32 - err = json.Unmarshal(*v, &avroCompressionLevel) - if err != nil { - return err - } - adtp.AvroCompressionLevel = &avroCompressionLevel - } - } - } - - return nil -} - -// AvroFormat the data stored in Avro format. -type AvroFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AvroFormat. -func (af AvroFormat) MarshalJSON() ([]byte, error) { - af.Type = TypeBasicDatasetStorageFormatTypeAvroFormat - objectMap := make(map[string]interface{}) - if af.Serializer != nil { - objectMap["serializer"] = af.Serializer - } - if af.Deserializer != nil { - objectMap["deserializer"] = af.Deserializer - } - if af.Type != "" { - objectMap["type"] = af.Type - } - for k, v := range af.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsParquetFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// AsOrcFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// AsAvroFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsAvroFormat() (*AvroFormat, bool) { - return &af, true -} - -// AsJSONFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// AsTextFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for AvroFormat. -func (af AvroFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &af, true -} - -// UnmarshalJSON is the custom unmarshaler for AvroFormat struct. -func (af *AvroFormat) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if af.AdditionalProperties == nil { - af.AdditionalProperties = make(map[string]interface{}) - } - af.AdditionalProperties[k] = additionalProperties - } - case "serializer": - if v != nil { - var serializer interface{} - err = json.Unmarshal(*v, &serializer) - if err != nil { - return err - } - af.Serializer = serializer - } - case "deserializer": - if v != nil { - var deserializer interface{} - err = json.Unmarshal(*v, &deserializer) - if err != nil { - return err - } - af.Deserializer = deserializer - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetStorageFormat - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - af.Type = typeVar - } - } - } - - return nil -} - -// AvroSink a copy activity Avro sink. -type AvroSink struct { - // StoreSettings - Avro store settings. - StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` - // FormatSettings - Avro format settings. - FormatSettings *AvroWriteSettings `json:"formatSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AvroSink. -func (as AvroSink) MarshalJSON() ([]byte, error) { - as.Type = TypeBasicCopySinkTypeAvroSink - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = as.StoreSettings - if as.FormatSettings != nil { - objectMap["formatSettings"] = as.FormatSettings - } - if as.WriteBatchSize != nil { - objectMap["writeBatchSize"] = as.WriteBatchSize - } - if as.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = as.WriteBatchTimeout - } - if as.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = as.SinkRetryCount - } - if as.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = as.SinkRetryWait - } - if as.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = as.MaxConcurrentConnections - } - if as.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = as.DisableMetricsCollection - } - if as.Type != "" { - objectMap["type"] = as.Type - } - for k, v := range as.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAvroSink() (*AvroSink, bool) { - return &as, true -} - -// AsAzureTableSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AvroSink. -func (as AvroSink) AsBasicCopySink() (BasicCopySink, bool) { - return &as, true -} - -// UnmarshalJSON is the custom unmarshaler for AvroSink struct. -func (as *AvroSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreWriteSettings(*v) - if err != nil { - return err - } - as.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings AvroWriteSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - as.FormatSettings = &formatSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if as.AdditionalProperties == nil { - as.AdditionalProperties = make(map[string]interface{}) - } - as.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - as.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - as.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - as.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - as.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - as.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - as.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - as.Type = typeVar - } - } - } - - return nil -} - -// AvroSource a copy activity Avro source. -type AvroSource struct { - // StoreSettings - Avro store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AvroSource. -func (as AvroSource) MarshalJSON() ([]byte, error) { - as.Type = TypeBasicCopySourceTypeAvroSource - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = as.StoreSettings - if as.AdditionalColumns != nil { - objectMap["additionalColumns"] = as.AdditionalColumns - } - if as.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = as.SourceRetryCount - } - if as.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = as.SourceRetryWait - } - if as.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = as.MaxConcurrentConnections - } - if as.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = as.DisableMetricsCollection - } - if as.Type != "" { - objectMap["type"] = as.Type - } - for k, v := range as.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsAvroSource() (*AvroSource, bool) { - return &as, true -} - -// AsCopySource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AvroSource. -func (as AvroSource) AsBasicCopySource() (BasicCopySource, bool) { - return &as, true -} - -// UnmarshalJSON is the custom unmarshaler for AvroSource struct. -func (as *AvroSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - as.StoreSettings = storeSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - as.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if as.AdditionalProperties == nil { - as.AdditionalProperties = make(map[string]interface{}) - } - as.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - as.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - as.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - as.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - as.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - as.Type = typeVar - } - } - } - - return nil -} - -// AvroWriteSettings avro write settings. -type AvroWriteSettings struct { - // RecordName - Top level record name in write result, which is required in AVRO spec. - RecordName *string `json:"recordName,omitempty"` - // RecordNamespace - Record namespace in the write result. - RecordNamespace *string `json:"recordNamespace,omitempty"` - // MaxRowsPerFile - 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"` - // FileNamePrefix - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AvroWriteSettings. -func (aws AvroWriteSettings) MarshalJSON() ([]byte, error) { - aws.Type = TypeBasicFormatWriteSettingsTypeAvroWriteSettings - objectMap := make(map[string]interface{}) - if aws.RecordName != nil { - objectMap["recordName"] = aws.RecordName - } - if aws.RecordNamespace != nil { - objectMap["recordNamespace"] = aws.RecordNamespace - } - if aws.MaxRowsPerFile != nil { - objectMap["maxRowsPerFile"] = aws.MaxRowsPerFile - } - if aws.FileNamePrefix != nil { - objectMap["fileNamePrefix"] = aws.FileNamePrefix - } - if aws.Type != "" { - objectMap["type"] = aws.Type - } - for k, v := range aws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. -func (aws AvroWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { - return nil, false -} - -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. -func (aws AvroWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { - return nil, false -} - -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. -func (aws AvroWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { - return nil, false -} - -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. -func (aws AvroWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { - return &aws, true -} - -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. -func (aws AvroWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { - return nil, false -} - -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. -func (aws AvroWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return nil, false -} - -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for AvroWriteSettings. -func (aws AvroWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &aws, true -} - -// UnmarshalJSON is the custom unmarshaler for AvroWriteSettings struct. -func (aws *AvroWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recordName": - if v != nil { - var recordName string - err = json.Unmarshal(*v, &recordName) - if err != nil { - return err - } - aws.RecordName = &recordName - } - case "recordNamespace": - if v != nil { - var recordNamespace string - err = json.Unmarshal(*v, &recordNamespace) - if err != nil { - return err - } - aws.RecordNamespace = &recordNamespace - } - case "maxRowsPerFile": - if v != nil { - var maxRowsPerFile interface{} - err = json.Unmarshal(*v, &maxRowsPerFile) - if err != nil { - return err - } - aws.MaxRowsPerFile = maxRowsPerFile - } - case "fileNamePrefix": - if v != nil { - var fileNamePrefix interface{} - err = json.Unmarshal(*v, &fileNamePrefix) - if err != nil { - return err - } - aws.FileNamePrefix = fileNamePrefix - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if aws.AdditionalProperties == nil { - aws.AdditionalProperties = make(map[string]interface{}) - } - aws.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - aws.Type = typeVar - } - } - } - - return nil -} - -// AzPowerShellSetup the express custom setup of installing Azure PowerShell. -type AzPowerShellSetup struct { - // AzPowerShellSetupTypeProperties - Install Azure PowerShell type properties. - *AzPowerShellSetupTypeProperties `json:"typeProperties,omitempty"` - // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' - Type TypeBasicCustomSetupBase `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzPowerShellSetup. -func (apss AzPowerShellSetup) MarshalJSON() ([]byte, error) { - apss.Type = TypeBasicCustomSetupBaseTypeAzPowerShellSetup - objectMap := make(map[string]interface{}) - if apss.AzPowerShellSetupTypeProperties != nil { - objectMap["typeProperties"] = apss.AzPowerShellSetupTypeProperties - } - if apss.Type != "" { - objectMap["type"] = apss.Type - } - return json.Marshal(objectMap) -} - -// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for AzPowerShellSetup. -func (apss AzPowerShellSetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { - return &apss, true -} - -// AsComponentSetup is the BasicCustomSetupBase implementation for AzPowerShellSetup. -func (apss AzPowerShellSetup) AsComponentSetup() (*ComponentSetup, bool) { - return nil, false -} - -// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for AzPowerShellSetup. -func (apss AzPowerShellSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { - return nil, false -} - -// AsCmdkeySetup is the BasicCustomSetupBase implementation for AzPowerShellSetup. -func (apss AzPowerShellSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { - return nil, false -} - -// AsCustomSetupBase is the BasicCustomSetupBase implementation for AzPowerShellSetup. -func (apss AzPowerShellSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { - return nil, false -} - -// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for AzPowerShellSetup. -func (apss AzPowerShellSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { - return &apss, true -} - -// UnmarshalJSON is the custom unmarshaler for AzPowerShellSetup struct. -func (apss *AzPowerShellSetup) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azPowerShellSetupTypeProperties AzPowerShellSetupTypeProperties - err = json.Unmarshal(*v, &azPowerShellSetupTypeProperties) - if err != nil { - return err - } - apss.AzPowerShellSetupTypeProperties = &azPowerShellSetupTypeProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCustomSetupBase - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - apss.Type = typeVar - } - } - } - - return nil -} - -// AzPowerShellSetupTypeProperties installation of Azure PowerShell type properties. -type AzPowerShellSetupTypeProperties struct { - // Version - The required version of Azure PowerShell to install. - Version *string `json:"version,omitempty"` -} - -// AzureBatchLinkedService azure Batch linked service. -type AzureBatchLinkedService struct { - // AzureBatchLinkedServiceTypeProperties - Azure Batch linked service properties. - *AzureBatchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) MarshalJSON() ([]byte, error) { - abls.Type = TypeBasicLinkedServiceTypeAzureBatch - objectMap := make(map[string]interface{}) - if abls.AzureBatchLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = abls.AzureBatchLinkedServiceTypeProperties - } - if abls.ConnectVia != nil { - objectMap["connectVia"] = abls.ConnectVia - } - if abls.Description != nil { - objectMap["description"] = abls.Description - } - if abls.Parameters != nil { - objectMap["parameters"] = abls.Parameters - } - if abls.Annotations != nil { - objectMap["annotations"] = abls.Annotations - } - if abls.Type != "" { - objectMap["type"] = abls.Type - } - for k, v := range abls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return &abls, true -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureBatchLinkedService. -func (abls AzureBatchLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &abls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBatchLinkedService struct. -func (abls *AzureBatchLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureBatchLinkedServiceTypeProperties AzureBatchLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureBatchLinkedServiceTypeProperties) - if err != nil { - return err - } - abls.AzureBatchLinkedServiceTypeProperties = &azureBatchLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abls.AdditionalProperties == nil { - abls.AdditionalProperties = make(map[string]interface{}) - } - abls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - abls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - abls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - abls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - abls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abls.Type = typeVar - } - } - } - - return nil -} - -// AzureBatchLinkedServiceTypeProperties azure Batch linked service properties. -type AzureBatchLinkedServiceTypeProperties struct { - // AccountName - The Azure Batch account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` - // AccessKey - The Azure Batch account access key. - AccessKey BasicSecretBase `json:"accessKey,omitempty"` - // BatchURI - The Azure Batch URI. Type: string (or Expression with resultType string). - BatchURI interface{} `json:"batchUri,omitempty"` - // PoolName - The Azure Batch pool name. Type: string (or Expression with resultType string). - PoolName interface{} `json:"poolName,omitempty"` - // LinkedServiceName - The Azure Storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureBatchLinkedServiceTypeProperties struct. -func (ablstp *AzureBatchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accountName": - if v != nil { - var accountName interface{} - err = json.Unmarshal(*v, &accountName) - if err != nil { - return err - } - ablstp.AccountName = accountName - } - case "accessKey": - if v != nil { - accessKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ablstp.AccessKey = accessKey - } - case "batchUri": - if v != nil { - var batchURI interface{} - err = json.Unmarshal(*v, &batchURI) - if err != nil { - return err - } - ablstp.BatchURI = batchURI - } - case "poolName": - if v != nil { - var poolName interface{} - err = json.Unmarshal(*v, &poolName) - if err != nil { - return err - } - ablstp.PoolName = poolName - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ablstp.LinkedServiceName = &linkedServiceName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - ablstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - ablstp.Credential = &credential - } - } - } - - return nil -} - -// AzureBlobDataset the Azure Blob storage. -type AzureBlobDataset struct { - // AzureBlobDatasetTypeProperties - Azure Blob dataset properties. - *AzureBlobDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobDataset. -func (abd AzureBlobDataset) MarshalJSON() ([]byte, error) { - abd.Type = TypeBasicDatasetTypeAzureBlob - objectMap := make(map[string]interface{}) - if abd.AzureBlobDatasetTypeProperties != nil { - objectMap["typeProperties"] = abd.AzureBlobDatasetTypeProperties - } - if abd.Description != nil { - objectMap["description"] = abd.Description - } - if abd.Structure != nil { - objectMap["structure"] = abd.Structure - } - if abd.Schema != nil { - objectMap["schema"] = abd.Schema - } - if abd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = abd.LinkedServiceName - } - if abd.Parameters != nil { - objectMap["parameters"] = abd.Parameters - } - if abd.Annotations != nil { - objectMap["annotations"] = abd.Annotations - } - if abd.Folder != nil { - objectMap["folder"] = abd.Folder - } - if abd.Type != "" { - objectMap["type"] = abd.Type - } - for k, v := range abd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return &abd, true -} - -// AsBinaryDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureBlobDataset. -func (abd AzureBlobDataset) AsBasicDataset() (BasicDataset, bool) { - return &abd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobDataset struct. -func (abd *AzureBlobDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureBlobDatasetTypeProperties AzureBlobDatasetTypeProperties - err = json.Unmarshal(*v, &azureBlobDatasetTypeProperties) - if err != nil { - return err - } - abd.AzureBlobDatasetTypeProperties = &azureBlobDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abd.AdditionalProperties == nil { - abd.AdditionalProperties = make(map[string]interface{}) - } - abd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - abd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - abd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - abd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - abd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - abd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - abd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - abd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abd.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobDatasetTypeProperties azure Blob dataset properties. -type AzureBlobDatasetTypeProperties struct { - // FolderPath - The path of the Azure Blob storage. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // TableRootLocation - The root of blob path. Type: string (or Expression with resultType string). - TableRootLocation interface{} `json:"tableRootLocation,omitempty"` - // FileName - The name of the Azure Blob. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // ModifiedDatetimeStart - The start of Azure Blob's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of Azure Blob's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // Format - The format of the Azure Blob storage. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used for the blob storage. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobDatasetTypeProperties struct. -func (abdtp *AzureBlobDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - abdtp.FolderPath = folderPath - } - case "tableRootLocation": - if v != nil { - var tableRootLocation interface{} - err = json.Unmarshal(*v, &tableRootLocation) - if err != nil { - return err - } - abdtp.TableRootLocation = tableRootLocation - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - abdtp.FileName = fileName - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - abdtp.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - abdtp.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - abdtp.Format = formatVar - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - abdtp.Compression = &compression - } - } - } - - return nil -} - -// AzureBlobFSDataset the Azure Data Lake Storage Gen2 storage. -type AzureBlobFSDataset struct { - // AzureBlobFSDatasetTypeProperties - Azure Data Lake Storage Gen2 dataset properties. - *AzureBlobFSDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) MarshalJSON() ([]byte, error) { - abfd.Type = TypeBasicDatasetTypeAzureBlobFSFile - objectMap := make(map[string]interface{}) - if abfd.AzureBlobFSDatasetTypeProperties != nil { - objectMap["typeProperties"] = abfd.AzureBlobFSDatasetTypeProperties - } - if abfd.Description != nil { - objectMap["description"] = abfd.Description - } - if abfd.Structure != nil { - objectMap["structure"] = abfd.Structure - } - if abfd.Schema != nil { - objectMap["schema"] = abfd.Schema - } - if abfd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = abfd.LinkedServiceName - } - if abfd.Parameters != nil { - objectMap["parameters"] = abfd.Parameters - } - if abfd.Annotations != nil { - objectMap["annotations"] = abfd.Annotations - } - if abfd.Folder != nil { - objectMap["folder"] = abfd.Folder - } - if abfd.Type != "" { - objectMap["type"] = abfd.Type - } - for k, v := range abfd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return &abfd, true -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureBlobFSDataset. -func (abfd AzureBlobFSDataset) AsBasicDataset() (BasicDataset, bool) { - return &abfd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSDataset struct. -func (abfd *AzureBlobFSDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureBlobFSDatasetTypeProperties AzureBlobFSDatasetTypeProperties - err = json.Unmarshal(*v, &azureBlobFSDatasetTypeProperties) - if err != nil { - return err - } - abfd.AzureBlobFSDatasetTypeProperties = &azureBlobFSDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abfd.AdditionalProperties == nil { - abfd.AdditionalProperties = make(map[string]interface{}) - } - abfd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - abfd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - abfd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - abfd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - abfd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - abfd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - abfd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - abfd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abfd.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobFSDatasetTypeProperties azure Data Lake Storage Gen2 dataset properties. -type AzureBlobFSDatasetTypeProperties struct { - // FolderPath - The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Format - The format of the Azure Data Lake Storage Gen2 storage. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used for the blob storage. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSDatasetTypeProperties struct. -func (abfdtp *AzureBlobFSDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - abfdtp.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - abfdtp.FileName = fileName - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - abfdtp.Format = formatVar - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - abfdtp.Compression = &compression - } - } - } - - return nil -} - -// AzureBlobFSLinkedService azure Data Lake Storage Gen2 linked service. -type AzureBlobFSLinkedService struct { - // AzureBlobFSLinkedServiceTypeProperties - Azure Data Lake Storage Gen2 linked service properties. - *AzureBlobFSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) MarshalJSON() ([]byte, error) { - abfls.Type = TypeBasicLinkedServiceTypeAzureBlobFS - objectMap := make(map[string]interface{}) - if abfls.AzureBlobFSLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = abfls.AzureBlobFSLinkedServiceTypeProperties - } - if abfls.ConnectVia != nil { - objectMap["connectVia"] = abfls.ConnectVia - } - if abfls.Description != nil { - objectMap["description"] = abfls.Description - } - if abfls.Parameters != nil { - objectMap["parameters"] = abfls.Parameters - } - if abfls.Annotations != nil { - objectMap["annotations"] = abfls.Annotations - } - if abfls.Type != "" { - objectMap["type"] = abfls.Type - } - for k, v := range abfls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return &abfls, true -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureBlobFSLinkedService. -func (abfls AzureBlobFSLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &abfls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSLinkedService struct. -func (abfls *AzureBlobFSLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureBlobFSLinkedServiceTypeProperties AzureBlobFSLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureBlobFSLinkedServiceTypeProperties) - if err != nil { - return err - } - abfls.AzureBlobFSLinkedServiceTypeProperties = &azureBlobFSLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abfls.AdditionalProperties == nil { - abfls.AdditionalProperties = make(map[string]interface{}) - } - abfls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - abfls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - abfls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - abfls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - abfls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abfls.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobFSLinkedServiceTypeProperties azure Data Lake Storage Gen2 linked service properties. -type AzureBlobFSLinkedServiceTypeProperties struct { - // URL - Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AccountKey - Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). - AccountKey interface{} `json:"accountKey,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // AzureCloudType - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` - // ServicePrincipalCredentialType - 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"` - // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` - // SasURI - SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` - // SasToken - The Azure key vault secret reference of sasToken in sas uri. - SasToken BasicSecretBase `json:"sasToken,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSLinkedServiceTypeProperties struct. -func (abflstp *AzureBlobFSLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - abflstp.URL = URL - } - case "accountKey": - if v != nil { - var accountKey interface{} - err = json.Unmarshal(*v, &accountKey) - if err != nil { - return err - } - abflstp.AccountKey = accountKey - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - abflstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - abflstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - abflstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - abflstp.AzureCloudType = azureCloudType - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - abflstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - abflstp.Credential = &credential - } - case "servicePrincipalCredentialType": - if v != nil { - var servicePrincipalCredentialType interface{} - err = json.Unmarshal(*v, &servicePrincipalCredentialType) - if err != nil { - return err - } - abflstp.ServicePrincipalCredentialType = servicePrincipalCredentialType - } - case "servicePrincipalCredential": - if v != nil { - servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - abflstp.ServicePrincipalCredential = servicePrincipalCredential - } - case "sasUri": - if v != nil { - var sasURI interface{} - err = json.Unmarshal(*v, &sasURI) - if err != nil { - return err - } - abflstp.SasURI = sasURI - } - case "sasToken": - if v != nil { - sasToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - abflstp.SasToken = sasToken - } - } - } - - return nil -} - -// AzureBlobFSLocation the location of azure blobFS dataset. -type AzureBlobFSLocation struct { - // FileSystem - Specify the fileSystem of azure blobFS. Type: string (or Expression with resultType string). - FileSystem interface{} `json:"fileSystem,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) MarshalJSON() ([]byte, error) { - abfl.Type = TypeBasicDatasetLocationTypeAzureBlobFSLocation - objectMap := make(map[string]interface{}) - if abfl.FileSystem != nil { - objectMap["fileSystem"] = abfl.FileSystem - } - if abfl.FolderPath != nil { - objectMap["folderPath"] = abfl.FolderPath - } - if abfl.FileName != nil { - objectMap["fileName"] = abfl.FileName - } - if abfl.Type != "" { - objectMap["type"] = abfl.Type - } - for k, v := range abfl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return &abfl, true -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureBlobFSLocation. -func (abfl AzureBlobFSLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &abfl, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSLocation struct. -func (abfl *AzureBlobFSLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "fileSystem": - if v != nil { - var fileSystem interface{} - err = json.Unmarshal(*v, &fileSystem) - if err != nil { - return err - } - abfl.FileSystem = fileSystem - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abfl.AdditionalProperties == nil { - abfl.AdditionalProperties = make(map[string]interface{}) - } - abfl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - abfl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - abfl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abfl.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobFSReadSettings azure blobFS read settings. -type AzureBlobFSReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Azure blobFS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Azure blobFS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) MarshalJSON() ([]byte, error) { - abfrs.Type = TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings - objectMap := make(map[string]interface{}) - if abfrs.Recursive != nil { - objectMap["recursive"] = abfrs.Recursive - } - if abfrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = abfrs.WildcardFolderPath - } - if abfrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = abfrs.WildcardFileName - } - if abfrs.FileListPath != nil { - objectMap["fileListPath"] = abfrs.FileListPath - } - if abfrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = abfrs.EnablePartitionDiscovery - } - if abfrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = abfrs.PartitionRootPath - } - if abfrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = abfrs.DeleteFilesAfterCompletion - } - if abfrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = abfrs.ModifiedDatetimeStart - } - if abfrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = abfrs.ModifiedDatetimeEnd - } - if abfrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = abfrs.MaxConcurrentConnections - } - if abfrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = abfrs.DisableMetricsCollection - } - if abfrs.Type != "" { - objectMap["type"] = abfrs.Type - } - for k, v := range abfrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return &abfrs, true -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobFSReadSettings. -func (abfrs AzureBlobFSReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &abfrs, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSReadSettings struct. -func (abfrs *AzureBlobFSReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - abfrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - abfrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - abfrs.WildcardFileName = wildcardFileName - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - abfrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - abfrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - abfrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - abfrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - abfrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - abfrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abfrs.AdditionalProperties == nil { - abfrs.AdditionalProperties = make(map[string]interface{}) - } - abfrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - abfrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - abfrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abfrs.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobFSSink a copy activity Azure Data Lake Storage Gen2 sink. -type AzureBlobFSSink struct { - // CopyBehavior - The type of copy behavior for copy sink. Type: string (or Expression with resultType string). - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobFSSink. -func (abfs AzureBlobFSSink) MarshalJSON() ([]byte, error) { - abfs.Type = TypeBasicCopySinkTypeAzureBlobFSSink - objectMap := make(map[string]interface{}) - if abfs.CopyBehavior != nil { - objectMap["copyBehavior"] = abfs.CopyBehavior - } - if abfs.Metadata != nil { - objectMap["metadata"] = abfs.Metadata - } - if abfs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = abfs.WriteBatchSize - } - if abfs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = abfs.WriteBatchTimeout - } - if abfs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = abfs.SinkRetryCount - } - if abfs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = abfs.SinkRetryWait - } - if abfs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = abfs.MaxConcurrentConnections - } - if abfs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = abfs.DisableMetricsCollection - } - if abfs.Type != "" { - objectMap["type"] = abfs.Type - } - for k, v := range abfs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return &abfs, true -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureBlobFSSink. -func (abfs AzureBlobFSSink) AsBasicCopySink() (BasicCopySink, bool) { - return &abfs, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSSink struct. -func (abfs *AzureBlobFSSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - abfs.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - abfs.Metadata = &metadata - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abfs.AdditionalProperties == nil { - abfs.AdditionalProperties = make(map[string]interface{}) - } - abfs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - abfs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - abfs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - abfs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - abfs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - abfs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - abfs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abfs.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobFSSource a copy activity Azure BlobFS source. -type AzureBlobFSSource struct { - // TreatEmptyAsNull - Treat empty as null. Type: boolean (or Expression with resultType boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` - // SkipHeaderLineCount - Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). - SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` - // Recursive - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobFSSource. -func (abfs AzureBlobFSSource) MarshalJSON() ([]byte, error) { - abfs.Type = TypeBasicCopySourceTypeAzureBlobFSSource - objectMap := make(map[string]interface{}) - if abfs.TreatEmptyAsNull != nil { - objectMap["treatEmptyAsNull"] = abfs.TreatEmptyAsNull - } - if abfs.SkipHeaderLineCount != nil { - objectMap["skipHeaderLineCount"] = abfs.SkipHeaderLineCount - } - if abfs.Recursive != nil { - objectMap["recursive"] = abfs.Recursive - } - if abfs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = abfs.SourceRetryCount - } - if abfs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = abfs.SourceRetryWait - } - if abfs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = abfs.MaxConcurrentConnections - } - if abfs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = abfs.DisableMetricsCollection - } - if abfs.Type != "" { - objectMap["type"] = abfs.Type - } - for k, v := range abfs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return &abfs, true -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzureBlobFSSource. -func (abfs AzureBlobFSSource) AsBasicCopySource() (BasicCopySource, bool) { - return &abfs, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSSource struct. -func (abfs *AzureBlobFSSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "treatEmptyAsNull": - if v != nil { - var treatEmptyAsNull interface{} - err = json.Unmarshal(*v, &treatEmptyAsNull) - if err != nil { - return err - } - abfs.TreatEmptyAsNull = treatEmptyAsNull - } - case "skipHeaderLineCount": - if v != nil { - var skipHeaderLineCount interface{} - err = json.Unmarshal(*v, &skipHeaderLineCount) - if err != nil { - return err - } - abfs.SkipHeaderLineCount = skipHeaderLineCount - } - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - abfs.Recursive = recursive - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abfs.AdditionalProperties == nil { - abfs.AdditionalProperties = make(map[string]interface{}) - } - abfs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - abfs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - abfs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - abfs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - abfs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abfs.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobFSWriteSettings azure blobFS write settings. -type AzureBlobFSWriteSettings struct { - // BlockSizeInMB - Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). - BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) MarshalJSON() ([]byte, error) { - abfws.Type = TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings - objectMap := make(map[string]interface{}) - if abfws.BlockSizeInMB != nil { - objectMap["blockSizeInMB"] = abfws.BlockSizeInMB - } - if abfws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = abfws.MaxConcurrentConnections - } - if abfws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = abfws.DisableMetricsCollection - } - if abfws.CopyBehavior != nil { - objectMap["copyBehavior"] = abfws.CopyBehavior - } - if abfws.Metadata != nil { - objectMap["metadata"] = abfws.Metadata - } - if abfws.Type != "" { - objectMap["type"] = abfws.Type - } - for k, v := range abfws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { - return nil, false -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return &abfws, true -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobFSWriteSettings. -func (abfws AzureBlobFSWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &abfws, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobFSWriteSettings struct. -func (abfws *AzureBlobFSWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "blockSizeInMB": - if v != nil { - var blockSizeInMB interface{} - err = json.Unmarshal(*v, &blockSizeInMB) - if err != nil { - return err - } - abfws.BlockSizeInMB = blockSizeInMB - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if abfws.AdditionalProperties == nil { - abfws.AdditionalProperties = make(map[string]interface{}) - } - abfws.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - abfws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - abfws.DisableMetricsCollection = disableMetricsCollection - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - abfws.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - abfws.Metadata = &metadata - } - case "type": - if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - abfws.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobStorageLinkedService the azure blob storage linked service. -type AzureBlobStorageLinkedService struct { - // AzureBlobStorageLinkedServiceTypeProperties - Azure Blob Storage linked service properties. - *AzureBlobStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) MarshalJSON() ([]byte, error) { - absls.Type = TypeBasicLinkedServiceTypeAzureBlobStorage - objectMap := make(map[string]interface{}) - if absls.AzureBlobStorageLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = absls.AzureBlobStorageLinkedServiceTypeProperties - } - if absls.ConnectVia != nil { - objectMap["connectVia"] = absls.ConnectVia - } - if absls.Description != nil { - objectMap["description"] = absls.Description - } - if absls.Parameters != nil { - objectMap["parameters"] = absls.Parameters - } - if absls.Annotations != nil { - objectMap["annotations"] = absls.Annotations - } - if absls.Type != "" { - objectMap["type"] = absls.Type - } - for k, v := range absls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return &absls, true -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureBlobStorageLinkedService. -func (absls AzureBlobStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &absls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageLinkedService struct. -func (absls *AzureBlobStorageLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureBlobStorageLinkedServiceTypeProperties AzureBlobStorageLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureBlobStorageLinkedServiceTypeProperties) - if err != nil { - return err - } - absls.AzureBlobStorageLinkedServiceTypeProperties = &azureBlobStorageLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if absls.AdditionalProperties == nil { - absls.AdditionalProperties = make(map[string]interface{}) - } - absls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - absls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - absls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - absls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - absls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - absls.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobStorageLinkedServiceTypeProperties azure Blob Storage linked service properties. -type AzureBlobStorageLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // AccountKey - The Azure key vault secret reference of accountKey in connection string. - AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` - // SasURI - 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"` - // SasToken - The Azure key vault secret reference of sasToken in sas uri. - SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` - // ServiceEndpoint - Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. - ServiceEndpoint interface{} `json:"serviceEndpoint,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Data Warehouse. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // AzureCloudType - 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"` - // AccountKind - 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 interface{} `json:"accountKind,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` - // AuthenticationType - The type used for authentication. Type: string. Possible values include: 'AzureStorageAuthenticationTypeAnonymous', 'AzureStorageAuthenticationTypeAccountKey', 'AzureStorageAuthenticationTypeSasURI', 'AzureStorageAuthenticationTypeServicePrincipal', 'AzureStorageAuthenticationTypeMsi' - AuthenticationType AzureStorageAuthenticationType `json:"authenticationType,omitempty"` - // ContainerURI - Container uri of the Azure Blob Storage resource only support for anonymous access. Type: string (or Expression with resultType string). - ContainerURI interface{} `json:"containerUri,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageLinkedServiceTypeProperties struct. -func (abslstp *AzureBlobStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - abslstp.ConnectionString = connectionString - } - case "accountKey": - if v != nil { - var accountKey AzureKeyVaultSecretReference - err = json.Unmarshal(*v, &accountKey) - if err != nil { - return err - } - abslstp.AccountKey = &accountKey - } - case "sasUri": - if v != nil { - var sasURI interface{} - err = json.Unmarshal(*v, &sasURI) - if err != nil { - return err - } - abslstp.SasURI = sasURI - } - case "sasToken": - if v != nil { - var sasToken AzureKeyVaultSecretReference - err = json.Unmarshal(*v, &sasToken) - if err != nil { - return err - } - abslstp.SasToken = &sasToken - } - case "serviceEndpoint": - if v != nil { - var serviceEndpoint interface{} - err = json.Unmarshal(*v, &serviceEndpoint) - if err != nil { - return err - } - abslstp.ServiceEndpoint = serviceEndpoint - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - abslstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - abslstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - abslstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - abslstp.AzureCloudType = azureCloudType - } - case "accountKind": - if v != nil { - var accountKind interface{} - err = json.Unmarshal(*v, &accountKind) - if err != nil { - return err - } - abslstp.AccountKind = accountKind - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - abslstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - abslstp.Credential = &credential - } - case "authenticationType": - if v != nil { - var authenticationType AzureStorageAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - abslstp.AuthenticationType = authenticationType - } - case "containerUri": - if v != nil { - var containerURI interface{} - err = json.Unmarshal(*v, &containerURI) - if err != nil { - return err - } - abslstp.ContainerURI = containerURI - } - } - } - - return nil -} - -// AzureBlobStorageLocation the location of azure blob dataset. -type AzureBlobStorageLocation struct { - // Container - Specify the container of azure blob. Type: string (or Expression with resultType string). - Container interface{} `json:"container,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) MarshalJSON() ([]byte, error) { - absl.Type = TypeBasicDatasetLocationTypeAzureBlobStorageLocation - objectMap := make(map[string]interface{}) - if absl.Container != nil { - objectMap["container"] = absl.Container - } - if absl.FolderPath != nil { - objectMap["folderPath"] = absl.FolderPath - } - if absl.FileName != nil { - objectMap["fileName"] = absl.FileName - } - if absl.Type != "" { - objectMap["type"] = absl.Type - } - for k, v := range absl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return &absl, true -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureBlobStorageLocation. -func (absl AzureBlobStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &absl, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageLocation struct. -func (absl *AzureBlobStorageLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "container": - if v != nil { - var containerVar interface{} - err = json.Unmarshal(*v, &containerVar) - if err != nil { - return err - } - absl.Container = containerVar - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if absl.AdditionalProperties == nil { - absl.AdditionalProperties = make(map[string]interface{}) - } - absl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - absl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - absl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - absl.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobStorageReadSettings azure blob read settings. -type AzureBlobStorageReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Azure blob wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Azure blob wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // Prefix - The prefix filter for the Azure Blob name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) MarshalJSON() ([]byte, error) { - absrs.Type = TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings - objectMap := make(map[string]interface{}) - if absrs.Recursive != nil { - objectMap["recursive"] = absrs.Recursive - } - if absrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = absrs.WildcardFolderPath - } - if absrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = absrs.WildcardFileName - } - if absrs.Prefix != nil { - objectMap["prefix"] = absrs.Prefix - } - if absrs.FileListPath != nil { - objectMap["fileListPath"] = absrs.FileListPath - } - if absrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = absrs.EnablePartitionDiscovery - } - if absrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = absrs.PartitionRootPath - } - if absrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = absrs.DeleteFilesAfterCompletion - } - if absrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = absrs.ModifiedDatetimeStart - } - if absrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = absrs.ModifiedDatetimeEnd - } - if absrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = absrs.MaxConcurrentConnections - } - if absrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = absrs.DisableMetricsCollection - } - if absrs.Type != "" { - objectMap["type"] = absrs.Type - } - for k, v := range absrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return &absrs, true -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureBlobStorageReadSettings. -func (absrs AzureBlobStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &absrs, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageReadSettings struct. -func (absrs *AzureBlobStorageReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - absrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - absrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - absrs.WildcardFileName = wildcardFileName - } - case "prefix": - if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) - if err != nil { - return err - } - absrs.Prefix = prefix - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - absrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - absrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - absrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - absrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - absrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - absrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if absrs.AdditionalProperties == nil { - absrs.AdditionalProperties = make(map[string]interface{}) - } - absrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - absrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - absrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - absrs.Type = typeVar - } - } - } - - return nil -} - -// AzureBlobStorageWriteSettings azure blob write settings. -type AzureBlobStorageWriteSettings struct { - // BlockSizeInMB - Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). - BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) MarshalJSON() ([]byte, error) { - absws.Type = TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings - objectMap := make(map[string]interface{}) - if absws.BlockSizeInMB != nil { - objectMap["blockSizeInMB"] = absws.BlockSizeInMB - } - if absws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = absws.MaxConcurrentConnections - } - if absws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = absws.DisableMetricsCollection - } - if absws.CopyBehavior != nil { - objectMap["copyBehavior"] = absws.CopyBehavior - } - if absws.Metadata != nil { - objectMap["metadata"] = absws.Metadata - } - if absws.Type != "" { - objectMap["type"] = absws.Type - } - for k, v := range absws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { - return nil, false -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return &absws, true -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureBlobStorageWriteSettings. -func (absws AzureBlobStorageWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &absws, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureBlobStorageWriteSettings struct. -func (absws *AzureBlobStorageWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "blockSizeInMB": - if v != nil { - var blockSizeInMB interface{} - err = json.Unmarshal(*v, &blockSizeInMB) - if err != nil { - return err - } - absws.BlockSizeInMB = blockSizeInMB - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if absws.AdditionalProperties == nil { - absws.AdditionalProperties = make(map[string]interface{}) - } - absws.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - absws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - absws.DisableMetricsCollection = disableMetricsCollection - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - absws.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - absws.Metadata = &metadata - } - case "type": - if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - absws.Type = typeVar - } - } - } - - return nil -} - -// AzureDataExplorerCommandActivity azure Data Explorer command activity. -type AzureDataExplorerCommandActivity struct { - // AzureDataExplorerCommandActivityTypeProperties - Azure Data Explorer command activity properties. - *AzureDataExplorerCommandActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) MarshalJSON() ([]byte, error) { - adeca.Type = TypeBasicActivityTypeAzureDataExplorerCommand - objectMap := make(map[string]interface{}) - if adeca.AzureDataExplorerCommandActivityTypeProperties != nil { - objectMap["typeProperties"] = adeca.AzureDataExplorerCommandActivityTypeProperties - } - if adeca.LinkedServiceName != nil { - objectMap["linkedServiceName"] = adeca.LinkedServiceName - } - if adeca.Policy != nil { - objectMap["policy"] = adeca.Policy - } - if adeca.Name != nil { - objectMap["name"] = adeca.Name - } - if adeca.Description != nil { - objectMap["description"] = adeca.Description - } - if adeca.State != "" { - objectMap["state"] = adeca.State - } - if adeca.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = adeca.OnInactiveMarkAs - } - if adeca.DependsOn != nil { - objectMap["dependsOn"] = adeca.DependsOn - } - if adeca.UserProperties != nil { - objectMap["userProperties"] = adeca.UserProperties - } - if adeca.Type != "" { - objectMap["type"] = adeca.Type - } - for k, v := range adeca.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return &adeca, true -} - -// AsDeleteActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &adeca, true -} - -// AsWebHookActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for AzureDataExplorerCommandActivity. -func (adeca AzureDataExplorerCommandActivity) AsBasicActivity() (BasicActivity, bool) { - return &adeca, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerCommandActivity struct. -func (adeca *AzureDataExplorerCommandActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataExplorerCommandActivityTypeProperties AzureDataExplorerCommandActivityTypeProperties - err = json.Unmarshal(*v, &azureDataExplorerCommandActivityTypeProperties) - if err != nil { - return err - } - adeca.AzureDataExplorerCommandActivityTypeProperties = &azureDataExplorerCommandActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - adeca.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - adeca.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adeca.AdditionalProperties == nil { - adeca.AdditionalProperties = make(map[string]interface{}) - } - adeca.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - adeca.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adeca.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - adeca.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - adeca.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - adeca.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - adeca.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adeca.Type = typeVar - } - } - } - - return nil -} - -// AzureDataExplorerCommandActivityTypeProperties azure Data Explorer command activity properties. -type AzureDataExplorerCommandActivityTypeProperties struct { - // Command - A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType string). - Command interface{} `json:"command,omitempty"` - // CommandTimeout - 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"` -} - -// AzureDataExplorerDatasetTypeProperties azure Data Explorer (Kusto) dataset properties. -type AzureDataExplorerDatasetTypeProperties struct { - // Table - The table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// AzureDataExplorerLinkedService azure Data Explorer (Kusto) linked service. -type AzureDataExplorerLinkedService struct { - // AzureDataExplorerLinkedServiceTypeProperties - Azure Data Explorer (Kusto) linked service properties. - *AzureDataExplorerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error) { - adels.Type = TypeBasicLinkedServiceTypeAzureDataExplorer - objectMap := make(map[string]interface{}) - if adels.AzureDataExplorerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adels.AzureDataExplorerLinkedServiceTypeProperties - } - if adels.ConnectVia != nil { - objectMap["connectVia"] = adels.ConnectVia - } - if adels.Description != nil { - objectMap["description"] = adels.Description - } - if adels.Parameters != nil { - objectMap["parameters"] = adels.Parameters - } - if adels.Annotations != nil { - objectMap["annotations"] = adels.Annotations - } - if adels.Type != "" { - objectMap["type"] = adels.Type - } - for k, v := range adels.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return &adels, true -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataExplorerLinkedService. -func (adels AzureDataExplorerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adels, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerLinkedService struct. -func (adels *AzureDataExplorerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataExplorerLinkedServiceTypeProperties AzureDataExplorerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDataExplorerLinkedServiceTypeProperties) - if err != nil { - return err - } - adels.AzureDataExplorerLinkedServiceTypeProperties = &azureDataExplorerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adels.AdditionalProperties == nil { - adels.AdditionalProperties = make(map[string]interface{}) - } - adels.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - adels.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adels.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adels.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adels.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adels.Type = typeVar - } - } - } - - return nil -} - -// AzureDataExplorerLinkedServiceTypeProperties azure Data Explorer (Kusto) linked service properties. -type AzureDataExplorerLinkedServiceTypeProperties struct { - // Endpoint - 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"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Kusto. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Database - Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Tenant - 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"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerLinkedServiceTypeProperties struct. -func (adelstp *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - adelstp.Endpoint = endpoint - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - adelstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adelstp.ServicePrincipalKey = servicePrincipalKey - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - adelstp.Database = databaseVar - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - adelstp.Tenant = tenant - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - adelstp.Credential = &credential - } - } - } - - return nil -} - -// AzureDataExplorerSink a copy activity Azure Data Explorer sink. -type AzureDataExplorerSink struct { - // IngestionMappingName - A name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. - IngestionMappingName interface{} `json:"ingestionMappingName,omitempty"` - // IngestionMappingAsJSON - An explicit column mapping description provided in a json format. Type: string. - IngestionMappingAsJSON interface{} `json:"ingestionMappingAsJson,omitempty"` - // FlushImmediately - If set to true, any aggregation will be skipped. Default is false. Type: boolean. - FlushImmediately interface{} `json:"flushImmediately,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) MarshalJSON() ([]byte, error) { - ades.Type = TypeBasicCopySinkTypeAzureDataExplorerSink - objectMap := make(map[string]interface{}) - if ades.IngestionMappingName != nil { - objectMap["ingestionMappingName"] = ades.IngestionMappingName - } - if ades.IngestionMappingAsJSON != nil { - objectMap["ingestionMappingAsJson"] = ades.IngestionMappingAsJSON - } - if ades.FlushImmediately != nil { - objectMap["flushImmediately"] = ades.FlushImmediately - } - if ades.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ades.WriteBatchSize - } - if ades.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ades.WriteBatchTimeout - } - if ades.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ades.SinkRetryCount - } - if ades.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ades.SinkRetryWait - } - if ades.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections - } - if ades.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ades.DisableMetricsCollection - } - if ades.Type != "" { - objectMap["type"] = ades.Type - } - for k, v := range ades.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return &ades, true -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureDataExplorerSink. -func (ades AzureDataExplorerSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ades, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerSink struct. -func (ades *AzureDataExplorerSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "ingestionMappingName": - if v != nil { - var ingestionMappingName interface{} - err = json.Unmarshal(*v, &ingestionMappingName) - if err != nil { - return err - } - ades.IngestionMappingName = ingestionMappingName - } - case "ingestionMappingAsJson": - if v != nil { - var ingestionMappingAsJSON interface{} - err = json.Unmarshal(*v, &ingestionMappingAsJSON) - if err != nil { - return err - } - ades.IngestionMappingAsJSON = ingestionMappingAsJSON - } - case "flushImmediately": - if v != nil { - var flushImmediately interface{} - err = json.Unmarshal(*v, &flushImmediately) - if err != nil { - return err - } - ades.FlushImmediately = flushImmediately - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ades.AdditionalProperties == nil { - ades.AdditionalProperties = make(map[string]interface{}) - } - ades.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ades.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ades.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ades.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ades.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ades.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ades.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ades.Type = typeVar - } - } - } - - return nil -} - -// AzureDataExplorerSource a copy activity Azure Data Explorer (Kusto) source. -type AzureDataExplorerSource struct { - // Query - Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // NoTruncation - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) MarshalJSON() ([]byte, error) { - ades.Type = TypeBasicCopySourceTypeAzureDataExplorerSource - objectMap := make(map[string]interface{}) - if ades.Query != nil { - objectMap["query"] = ades.Query - } - if ades.NoTruncation != nil { - objectMap["noTruncation"] = ades.NoTruncation - } - if ades.QueryTimeout != nil { - objectMap["queryTimeout"] = ades.QueryTimeout - } - if ades.AdditionalColumns != nil { - objectMap["additionalColumns"] = ades.AdditionalColumns - } - if ades.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ades.SourceRetryCount - } - if ades.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ades.SourceRetryWait - } - if ades.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ades.MaxConcurrentConnections - } - if ades.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ades.DisableMetricsCollection - } - if ades.Type != "" { - objectMap["type"] = ades.Type - } - for k, v := range ades.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return &ades, true -} - -// AsHdfsSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzureDataExplorerSource. -func (ades AzureDataExplorerSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ades, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerSource struct. -func (ades *AzureDataExplorerSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ades.Query = query - } - case "noTruncation": - if v != nil { - var noTruncation interface{} - err = json.Unmarshal(*v, &noTruncation) - if err != nil { - return err - } - ades.NoTruncation = noTruncation - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ades.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ades.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ades.AdditionalProperties == nil { - ades.AdditionalProperties = make(map[string]interface{}) - } - ades.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ades.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ades.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ades.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ades.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ades.Type = typeVar - } - } - } - - return nil -} - -// AzureDataExplorerTableDataset the Azure Data Explorer (Kusto) dataset. -type AzureDataExplorerTableDataset struct { - // AzureDataExplorerDatasetTypeProperties - Azure Data Explorer (Kusto) dataset properties. - *AzureDataExplorerDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) MarshalJSON() ([]byte, error) { - adetd.Type = TypeBasicDatasetTypeAzureDataExplorerTable - objectMap := make(map[string]interface{}) - if adetd.AzureDataExplorerDatasetTypeProperties != nil { - objectMap["typeProperties"] = adetd.AzureDataExplorerDatasetTypeProperties - } - if adetd.Description != nil { - objectMap["description"] = adetd.Description - } - if adetd.Structure != nil { - objectMap["structure"] = adetd.Structure - } - if adetd.Schema != nil { - objectMap["schema"] = adetd.Schema - } - if adetd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = adetd.LinkedServiceName - } - if adetd.Parameters != nil { - objectMap["parameters"] = adetd.Parameters - } - if adetd.Annotations != nil { - objectMap["annotations"] = adetd.Annotations - } - if adetd.Folder != nil { - objectMap["folder"] = adetd.Folder - } - if adetd.Type != "" { - objectMap["type"] = adetd.Type - } - for k, v := range adetd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return &adetd, true -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureDataExplorerTableDataset. -func (adetd AzureDataExplorerTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &adetd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataExplorerTableDataset struct. -func (adetd *AzureDataExplorerTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataExplorerDatasetTypeProperties AzureDataExplorerDatasetTypeProperties - err = json.Unmarshal(*v, &azureDataExplorerDatasetTypeProperties) - if err != nil { - return err - } - adetd.AzureDataExplorerDatasetTypeProperties = &azureDataExplorerDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adetd.AdditionalProperties == nil { - adetd.AdditionalProperties = make(map[string]interface{}) - } - adetd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adetd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - adetd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - adetd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - adetd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adetd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adetd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - adetd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adetd.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeAnalyticsLinkedService azure Data Lake Analytics linked service. -type AzureDataLakeAnalyticsLinkedService struct { - // AzureDataLakeAnalyticsLinkedServiceTypeProperties - Azure Data Lake Analytics linked service properties. - *AzureDataLakeAnalyticsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error) { - adlals.Type = TypeBasicLinkedServiceTypeAzureDataLakeAnalytics - objectMap := make(map[string]interface{}) - if adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties - } - if adlals.ConnectVia != nil { - objectMap["connectVia"] = adlals.ConnectVia - } - if adlals.Description != nil { - objectMap["description"] = adlals.Description - } - if adlals.Parameters != nil { - objectMap["parameters"] = adlals.Parameters - } - if adlals.Annotations != nil { - objectMap["annotations"] = adlals.Annotations - } - if adlals.Type != "" { - objectMap["type"] = adlals.Type - } - for k, v := range adlals.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return &adlals, true -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeAnalyticsLinkedService. -func (adlals AzureDataLakeAnalyticsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adlals, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedService struct. -func (adlals *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataLakeAnalyticsLinkedServiceTypeProperties AzureDataLakeAnalyticsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDataLakeAnalyticsLinkedServiceTypeProperties) - if err != nil { - return err - } - adlals.AzureDataLakeAnalyticsLinkedServiceTypeProperties = &azureDataLakeAnalyticsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlals.AdditionalProperties == nil { - adlals.AdditionalProperties = make(map[string]interface{}) - } - adlals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - adlals.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adlals.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adlals.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adlals.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlals.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeAnalyticsLinkedServiceTypeProperties azure Data Lake Analytics linked service properties. -type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { - // AccountName - The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Analytics account. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // SubscriptionID - Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` - // ResourceGroupName - 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"` - // DataLakeAnalyticsURI - Azure Data Lake Analytics URI Type: string (or Expression with resultType string). - DataLakeAnalyticsURI interface{} `json:"dataLakeAnalyticsUri,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeAnalyticsLinkedServiceTypeProperties struct. -func (adlalstp *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accountName": - if v != nil { - var accountName interface{} - err = json.Unmarshal(*v, &accountName) - if err != nil { - return err - } - adlalstp.AccountName = accountName - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - adlalstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlalstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - adlalstp.Tenant = tenant - } - case "subscriptionId": - if v != nil { - var subscriptionID interface{} - err = json.Unmarshal(*v, &subscriptionID) - if err != nil { - return err - } - adlalstp.SubscriptionID = subscriptionID - } - case "resourceGroupName": - if v != nil { - var resourceGroupName interface{} - err = json.Unmarshal(*v, &resourceGroupName) - if err != nil { - return err - } - adlalstp.ResourceGroupName = resourceGroupName - } - case "dataLakeAnalyticsUri": - if v != nil { - var dataLakeAnalyticsURI interface{} - err = json.Unmarshal(*v, &dataLakeAnalyticsURI) - if err != nil { - return err - } - adlalstp.DataLakeAnalyticsURI = dataLakeAnalyticsURI - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - adlalstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AzureDataLakeStoreDataset azure Data Lake Store dataset. -type AzureDataLakeStoreDataset struct { - // AzureDataLakeStoreDatasetTypeProperties - Azure Data Lake Store dataset properties. - *AzureDataLakeStoreDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) MarshalJSON() ([]byte, error) { - adlsd.Type = TypeBasicDatasetTypeAzureDataLakeStoreFile - objectMap := make(map[string]interface{}) - if adlsd.AzureDataLakeStoreDatasetTypeProperties != nil { - objectMap["typeProperties"] = adlsd.AzureDataLakeStoreDatasetTypeProperties - } - if adlsd.Description != nil { - objectMap["description"] = adlsd.Description - } - if adlsd.Structure != nil { - objectMap["structure"] = adlsd.Structure - } - if adlsd.Schema != nil { - objectMap["schema"] = adlsd.Schema - } - if adlsd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = adlsd.LinkedServiceName - } - if adlsd.Parameters != nil { - objectMap["parameters"] = adlsd.Parameters - } - if adlsd.Annotations != nil { - objectMap["annotations"] = adlsd.Annotations - } - if adlsd.Folder != nil { - objectMap["folder"] = adlsd.Folder - } - if adlsd.Type != "" { - objectMap["type"] = adlsd.Type - } - for k, v := range adlsd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return &adlsd, true -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureDataLakeStoreDataset. -func (adlsd AzureDataLakeStoreDataset) AsBasicDataset() (BasicDataset, bool) { - return &adlsd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDataset struct. -func (adlsd *AzureDataLakeStoreDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataLakeStoreDatasetTypeProperties AzureDataLakeStoreDatasetTypeProperties - err = json.Unmarshal(*v, &azureDataLakeStoreDatasetTypeProperties) - if err != nil { - return err - } - adlsd.AzureDataLakeStoreDatasetTypeProperties = &azureDataLakeStoreDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsd.AdditionalProperties == nil { - adlsd.AdditionalProperties = make(map[string]interface{}) - } - adlsd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adlsd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - adlsd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - adlsd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - adlsd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adlsd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adlsd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - adlsd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsd.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreDatasetTypeProperties azure Data Lake Store dataset properties. -type AzureDataLakeStoreDatasetTypeProperties struct { - // FolderPath - Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Format - The format of the Data Lake Store. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used for the item(s) in the Azure Data Lake Store. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreDatasetTypeProperties struct. -func (adlsdtp *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - adlsdtp.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - adlsdtp.FileName = fileName - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - adlsdtp.Format = formatVar - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - adlsdtp.Compression = &compression - } - } - } - - return nil -} - -// AzureDataLakeStoreLinkedService azure Data Lake Store linked service. -type AzureDataLakeStoreLinkedService struct { - // AzureDataLakeStoreLinkedServiceTypeProperties - Azure Data Lake Store linked service properties. - *AzureDataLakeStoreLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error) { - adlsls.Type = TypeBasicLinkedServiceTypeAzureDataLakeStore - objectMap := make(map[string]interface{}) - if adlsls.AzureDataLakeStoreLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adlsls.AzureDataLakeStoreLinkedServiceTypeProperties - } - if adlsls.ConnectVia != nil { - objectMap["connectVia"] = adlsls.ConnectVia - } - if adlsls.Description != nil { - objectMap["description"] = adlsls.Description - } - if adlsls.Parameters != nil { - objectMap["parameters"] = adlsls.Parameters - } - if adlsls.Annotations != nil { - objectMap["annotations"] = adlsls.Annotations - } - if adlsls.Type != "" { - objectMap["type"] = adlsls.Type - } - for k, v := range adlsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return &adlsls, true -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDataLakeStoreLinkedService. -func (adlsls AzureDataLakeStoreLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adlsls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedService struct. -func (adlsls *AzureDataLakeStoreLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDataLakeStoreLinkedServiceTypeProperties AzureDataLakeStoreLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDataLakeStoreLinkedServiceTypeProperties) - if err != nil { - return err - } - adlsls.AzureDataLakeStoreLinkedServiceTypeProperties = &azureDataLakeStoreLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsls.AdditionalProperties == nil { - adlsls.AdditionalProperties = make(map[string]interface{}) - } - adlsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - adlsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adlsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adlsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adlsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsls.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreLinkedServiceTypeProperties azure Data Lake Store linked service properties. -type AzureDataLakeStoreLinkedServiceTypeProperties struct { - // DataLakeStoreURI - Data Lake Store service URI. Type: string (or Expression with resultType string). - DataLakeStoreURI interface{} `json:"dataLakeStoreUri,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The Key of the application used to authenticate against the Azure Data Lake Store account. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // AzureCloudType - 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"` - // AccountName - Data Lake Store account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` - // SubscriptionID - Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` - // ResourceGroupName - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLinkedServiceTypeProperties struct. -func (adlslstp *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "dataLakeStoreUri": - if v != nil { - var dataLakeStoreURI interface{} - err = json.Unmarshal(*v, &dataLakeStoreURI) - if err != nil { - return err - } - adlslstp.DataLakeStoreURI = dataLakeStoreURI - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - adlslstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlslstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - adlslstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - adlslstp.AzureCloudType = azureCloudType - } - case "accountName": - if v != nil { - var accountName interface{} - err = json.Unmarshal(*v, &accountName) - if err != nil { - return err - } - adlslstp.AccountName = accountName - } - case "subscriptionId": - if v != nil { - var subscriptionID interface{} - err = json.Unmarshal(*v, &subscriptionID) - if err != nil { - return err - } - adlslstp.SubscriptionID = subscriptionID - } - case "resourceGroupName": - if v != nil { - var resourceGroupName interface{} - err = json.Unmarshal(*v, &resourceGroupName) - if err != nil { - return err - } - adlslstp.ResourceGroupName = resourceGroupName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - adlslstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - adlslstp.Credential = &credential - } - } - } - - return nil -} - -// AzureDataLakeStoreLocation the location of azure data lake store dataset. -type AzureDataLakeStoreLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) MarshalJSON() ([]byte, error) { - adlsl.Type = TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation - objectMap := make(map[string]interface{}) - if adlsl.FolderPath != nil { - objectMap["folderPath"] = adlsl.FolderPath - } - if adlsl.FileName != nil { - objectMap["fileName"] = adlsl.FileName - } - if adlsl.Type != "" { - objectMap["type"] = adlsl.Type - } - for k, v := range adlsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return &adlsl, true -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureDataLakeStoreLocation. -func (adlsl AzureDataLakeStoreLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &adlsl, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreLocation struct. -func (adlsl *AzureDataLakeStoreLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsl.AdditionalProperties == nil { - adlsl.AdditionalProperties = make(map[string]interface{}) - } - adlsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - adlsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - adlsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsl.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreReadSettings azure data lake store read settings. -type AzureDataLakeStoreReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - ADLS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - ADLS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // FileListPath - 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"` - // ListAfter - 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"` - // ListBefore - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error) { - adlsrs.Type = TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings - objectMap := make(map[string]interface{}) - if adlsrs.Recursive != nil { - objectMap["recursive"] = adlsrs.Recursive - } - if adlsrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = adlsrs.WildcardFolderPath - } - if adlsrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = adlsrs.WildcardFileName - } - if adlsrs.FileListPath != nil { - objectMap["fileListPath"] = adlsrs.FileListPath - } - if adlsrs.ListAfter != nil { - objectMap["listAfter"] = adlsrs.ListAfter - } - if adlsrs.ListBefore != nil { - objectMap["listBefore"] = adlsrs.ListBefore - } - if adlsrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = adlsrs.EnablePartitionDiscovery - } - if adlsrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = adlsrs.PartitionRootPath - } - if adlsrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = adlsrs.DeleteFilesAfterCompletion - } - if adlsrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = adlsrs.ModifiedDatetimeStart - } - if adlsrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = adlsrs.ModifiedDatetimeEnd - } - if adlsrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = adlsrs.MaxConcurrentConnections - } - if adlsrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = adlsrs.DisableMetricsCollection - } - if adlsrs.Type != "" { - objectMap["type"] = adlsrs.Type - } - for k, v := range adlsrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return &adlsrs, true -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureDataLakeStoreReadSettings. -func (adlsrs AzureDataLakeStoreReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &adlsrs, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreReadSettings struct. -func (adlsrs *AzureDataLakeStoreReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - adlsrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - adlsrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - adlsrs.WildcardFileName = wildcardFileName - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - adlsrs.FileListPath = fileListPath - } - case "listAfter": - if v != nil { - var listAfter interface{} - err = json.Unmarshal(*v, &listAfter) - if err != nil { - return err - } - adlsrs.ListAfter = listAfter - } - case "listBefore": - if v != nil { - var listBefore interface{} - err = json.Unmarshal(*v, &listBefore) - if err != nil { - return err - } - adlsrs.ListBefore = listBefore - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - adlsrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - adlsrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - adlsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - adlsrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - adlsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsrs.AdditionalProperties == nil { - adlsrs.AdditionalProperties = make(map[string]interface{}) - } - adlsrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - adlsrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - adlsrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsrs.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreSink a copy activity Azure Data Lake Store sink. -type AzureDataLakeStoreSink struct { - // CopyBehavior - The type of copy behavior for copy sink. Type: string (or Expression with resultType string). - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // EnableAdlsSingleFileParallel - Single File Parallel. - EnableAdlsSingleFileParallel interface{} `json:"enableAdlsSingleFileParallel,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { - adlss.Type = TypeBasicCopySinkTypeAzureDataLakeStoreSink - objectMap := make(map[string]interface{}) - if adlss.CopyBehavior != nil { - objectMap["copyBehavior"] = adlss.CopyBehavior - } - if adlss.EnableAdlsSingleFileParallel != nil { - objectMap["enableAdlsSingleFileParallel"] = adlss.EnableAdlsSingleFileParallel - } - if adlss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = adlss.WriteBatchSize - } - if adlss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = adlss.WriteBatchTimeout - } - if adlss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = adlss.SinkRetryCount - } - if adlss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = adlss.SinkRetryWait - } - if adlss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections - } - if adlss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = adlss.DisableMetricsCollection - } - if adlss.Type != "" { - objectMap["type"] = adlss.Type - } - for k, v := range adlss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return &adlss, true -} - -// AsOracleSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureDataLakeStoreSink. -func (adlss AzureDataLakeStoreSink) AsBasicCopySink() (BasicCopySink, bool) { - return &adlss, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreSink struct. -func (adlss *AzureDataLakeStoreSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - adlss.CopyBehavior = copyBehavior - } - case "enableAdlsSingleFileParallel": - if v != nil { - var enableAdlsSingleFileParallel interface{} - err = json.Unmarshal(*v, &enableAdlsSingleFileParallel) - if err != nil { - return err - } - adlss.EnableAdlsSingleFileParallel = enableAdlsSingleFileParallel - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlss.AdditionalProperties == nil { - adlss.AdditionalProperties = make(map[string]interface{}) - } - adlss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - adlss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - adlss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - adlss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - adlss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - adlss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - adlss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlss.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreSource a copy activity Azure Data Lake source. -type AzureDataLakeStoreSource struct { - // Recursive - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) MarshalJSON() ([]byte, error) { - adlss.Type = TypeBasicCopySourceTypeAzureDataLakeStoreSource - objectMap := make(map[string]interface{}) - if adlss.Recursive != nil { - objectMap["recursive"] = adlss.Recursive - } - if adlss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = adlss.SourceRetryCount - } - if adlss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = adlss.SourceRetryWait - } - if adlss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = adlss.MaxConcurrentConnections - } - if adlss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = adlss.DisableMetricsCollection - } - if adlss.Type != "" { - objectMap["type"] = adlss.Type - } - for k, v := range adlss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return &adlss, true -} - -// AsOffice365Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzureDataLakeStoreSource. -func (adlss AzureDataLakeStoreSource) AsBasicCopySource() (BasicCopySource, bool) { - return &adlss, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreSource struct. -func (adlss *AzureDataLakeStoreSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - adlss.Recursive = recursive - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlss.AdditionalProperties == nil { - adlss.AdditionalProperties = make(map[string]interface{}) - } - adlss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - adlss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - adlss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - adlss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - adlss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlss.Type = typeVar - } - } - } - - return nil -} - -// AzureDataLakeStoreWriteSettings azure data lake store write settings. -type AzureDataLakeStoreWriteSettings struct { - // ExpiryDateTime - 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: string (or Expression with resultType string). - ExpiryDateTime interface{} `json:"expiryDateTime,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) MarshalJSON() ([]byte, error) { - adlsws.Type = TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings - objectMap := make(map[string]interface{}) - if adlsws.ExpiryDateTime != nil { - objectMap["expiryDateTime"] = adlsws.ExpiryDateTime - } - if adlsws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = adlsws.MaxConcurrentConnections - } - if adlsws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = adlsws.DisableMetricsCollection - } - if adlsws.CopyBehavior != nil { - objectMap["copyBehavior"] = adlsws.CopyBehavior - } - if adlsws.Metadata != nil { - objectMap["metadata"] = adlsws.Metadata - } - if adlsws.Type != "" { - objectMap["type"] = adlsws.Type - } - for k, v := range adlsws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { - return nil, false -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return &adlsws, true -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureDataLakeStoreWriteSettings. -func (adlsws AzureDataLakeStoreWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &adlsws, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDataLakeStoreWriteSettings struct. -func (adlsws *AzureDataLakeStoreWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "expiryDateTime": - if v != nil { - var expiryDateTime interface{} - err = json.Unmarshal(*v, &expiryDateTime) - if err != nil { - return err - } - adlsws.ExpiryDateTime = expiryDateTime - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adlsws.AdditionalProperties == nil { - adlsws.AdditionalProperties = make(map[string]interface{}) - } - adlsws.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - adlsws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - adlsws.DisableMetricsCollection = disableMetricsCollection - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - adlsws.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - adlsws.Metadata = &metadata - } - case "type": - if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adlsws.Type = typeVar - } - } - } - - return nil -} - -// AzureDatabricksDeltaLakeDataset azure Databricks Delta Lake dataset. -type AzureDatabricksDeltaLakeDataset struct { - // AzureDatabricksDeltaLakeDatasetTypeProperties - Properties specific to this dataset type. - *AzureDatabricksDeltaLakeDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) MarshalJSON() ([]byte, error) { - addld.Type = TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset - objectMap := make(map[string]interface{}) - if addld.AzureDatabricksDeltaLakeDatasetTypeProperties != nil { - objectMap["typeProperties"] = addld.AzureDatabricksDeltaLakeDatasetTypeProperties - } - if addld.Description != nil { - objectMap["description"] = addld.Description - } - if addld.Structure != nil { - objectMap["structure"] = addld.Structure - } - if addld.Schema != nil { - objectMap["schema"] = addld.Schema - } - if addld.LinkedServiceName != nil { - objectMap["linkedServiceName"] = addld.LinkedServiceName - } - if addld.Parameters != nil { - objectMap["parameters"] = addld.Parameters - } - if addld.Annotations != nil { - objectMap["annotations"] = addld.Annotations - } - if addld.Folder != nil { - objectMap["folder"] = addld.Folder - } - if addld.Type != "" { - objectMap["type"] = addld.Type - } - for k, v := range addld.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return &addld, true -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureDatabricksDeltaLakeDataset. -func (addld AzureDatabricksDeltaLakeDataset) AsBasicDataset() (BasicDataset, bool) { - return &addld, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeDataset struct. -func (addld *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDatabricksDeltaLakeDatasetTypeProperties AzureDatabricksDeltaLakeDatasetTypeProperties - err = json.Unmarshal(*v, &azureDatabricksDeltaLakeDatasetTypeProperties) - if err != nil { - return err - } - addld.AzureDatabricksDeltaLakeDatasetTypeProperties = &azureDatabricksDeltaLakeDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if addld.AdditionalProperties == nil { - addld.AdditionalProperties = make(map[string]interface{}) - } - addld.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - addld.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - addld.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - addld.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - addld.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - addld.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - addld.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - addld.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - addld.Type = typeVar - } - } - } - - return nil -} - -// AzureDatabricksDeltaLakeDatasetTypeProperties azure Databricks Delta Lake Dataset Properties -type AzureDatabricksDeltaLakeDatasetTypeProperties struct { - // Table - The name of delta table. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Database - The database name of delta table. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` -} - -// AzureDatabricksDeltaLakeExportCommand azure Databricks Delta Lake export command settings. -type AzureDatabricksDeltaLakeExportCommand struct { - // DateFormat - 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"` - // TimestampFormat - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicExportSettingsTypeExportSettings', 'TypeBasicExportSettingsTypeSnowflakeExportCopyCommand', 'TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand' - Type TypeBasicExportSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) MarshalJSON() ([]byte, error) { - addlec.Type = TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand - objectMap := make(map[string]interface{}) - if addlec.DateFormat != nil { - objectMap["dateFormat"] = addlec.DateFormat - } - if addlec.TimestampFormat != nil { - objectMap["timestampFormat"] = addlec.TimestampFormat - } - if addlec.Type != "" { - objectMap["type"] = addlec.Type - } - for k, v := range addlec.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { - return &addlec, true -} - -// AsExportSettings is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) AsExportSettings() (*ExportSettings, bool) { - return nil, false -} - -// AsBasicExportSettings is the BasicExportSettings implementation for AzureDatabricksDeltaLakeExportCommand. -func (addlec AzureDatabricksDeltaLakeExportCommand) AsBasicExportSettings() (BasicExportSettings, bool) { - return &addlec, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeExportCommand struct. -func (addlec *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "dateFormat": - if v != nil { - var dateFormat interface{} - err = json.Unmarshal(*v, &dateFormat) - if err != nil { - return err - } - addlec.DateFormat = dateFormat - } - case "timestampFormat": - if v != nil { - var timestampFormat interface{} - err = json.Unmarshal(*v, ×tampFormat) - if err != nil { - return err - } - addlec.TimestampFormat = timestampFormat - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if addlec.AdditionalProperties == nil { - addlec.AdditionalProperties = make(map[string]interface{}) - } - addlec.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicExportSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - addlec.Type = typeVar - } - } - } - - return nil -} - -// AzureDatabricksDeltaLakeImportCommand azure Databricks Delta Lake import command settings. -type AzureDatabricksDeltaLakeImportCommand struct { - // DateFormat - Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - DateFormat interface{} `json:"dateFormat,omitempty"` - // TimestampFormat - Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - TimestampFormat interface{} `json:"timestampFormat,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicImportSettingsTypeImportSettings', 'TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand', 'TypeBasicImportSettingsTypeSnowflakeImportCopyCommand' - Type TypeBasicImportSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) MarshalJSON() ([]byte, error) { - addlic.Type = TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand - objectMap := make(map[string]interface{}) - if addlic.DateFormat != nil { - objectMap["dateFormat"] = addlic.DateFormat - } - if addlic.TimestampFormat != nil { - objectMap["timestampFormat"] = addlic.TimestampFormat - } - if addlic.Type != "" { - objectMap["type"] = addlic.Type - } - for k, v := range addlic.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { - return &addlic, true -} - -// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { - return nil, false -} - -// AsImportSettings is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) AsImportSettings() (*ImportSettings, bool) { - return nil, false -} - -// AsBasicImportSettings is the BasicImportSettings implementation for AzureDatabricksDeltaLakeImportCommand. -func (addlic AzureDatabricksDeltaLakeImportCommand) AsBasicImportSettings() (BasicImportSettings, bool) { - return &addlic, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeImportCommand struct. -func (addlic *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "dateFormat": - if v != nil { - var dateFormat interface{} - err = json.Unmarshal(*v, &dateFormat) - if err != nil { - return err - } - addlic.DateFormat = dateFormat - } - case "timestampFormat": - if v != nil { - var timestampFormat interface{} - err = json.Unmarshal(*v, ×tampFormat) - if err != nil { - return err - } - addlic.TimestampFormat = timestampFormat - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if addlic.AdditionalProperties == nil { - addlic.AdditionalProperties = make(map[string]interface{}) - } - addlic.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicImportSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - addlic.Type = typeVar - } - } - } - - return nil -} - -// AzureDatabricksDeltaLakeLinkedService azure Databricks Delta Lake linked service. -type AzureDatabricksDeltaLakeLinkedService struct { - // AzureDatabricksDetltaLakeLinkedServiceTypeProperties - Azure Databricks Delta Lake linked service properties. - *AzureDatabricksDetltaLakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) MarshalJSON() ([]byte, error) { - addlls.Type = TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake - objectMap := make(map[string]interface{}) - if addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties - } - if addlls.ConnectVia != nil { - objectMap["connectVia"] = addlls.ConnectVia - } - if addlls.Description != nil { - objectMap["description"] = addlls.Description - } - if addlls.Parameters != nil { - objectMap["parameters"] = addlls.Parameters - } - if addlls.Annotations != nil { - objectMap["annotations"] = addlls.Annotations - } - if addlls.Type != "" { - objectMap["type"] = addlls.Type - } - for k, v := range addlls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return &addlls, true -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksDeltaLakeLinkedService. -func (addlls AzureDatabricksDeltaLakeLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &addlls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeLinkedService struct. -func (addlls *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDatabricksDetltaLakeLinkedServiceTypeProperties AzureDatabricksDetltaLakeLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDatabricksDetltaLakeLinkedServiceTypeProperties) - if err != nil { - return err - } - addlls.AzureDatabricksDetltaLakeLinkedServiceTypeProperties = &azureDatabricksDetltaLakeLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if addlls.AdditionalProperties == nil { - addlls.AdditionalProperties = make(map[string]interface{}) - } - addlls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - addlls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - addlls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - addlls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - addlls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - addlls.Type = typeVar - } - } - } - - return nil -} - -// AzureDatabricksDeltaLakeSink a copy activity Azure Databricks Delta Lake sink. -type AzureDatabricksDeltaLakeSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // ImportSettings - Azure Databricks Delta Lake import settings. - ImportSettings *AzureDatabricksDeltaLakeImportCommand `json:"importSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) MarshalJSON() ([]byte, error) { - addls.Type = TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink - objectMap := make(map[string]interface{}) - if addls.PreCopyScript != nil { - objectMap["preCopyScript"] = addls.PreCopyScript - } - if addls.ImportSettings != nil { - objectMap["importSettings"] = addls.ImportSettings - } - if addls.WriteBatchSize != nil { - objectMap["writeBatchSize"] = addls.WriteBatchSize - } - if addls.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = addls.WriteBatchTimeout - } - if addls.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = addls.SinkRetryCount - } - if addls.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = addls.SinkRetryWait - } - if addls.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections - } - if addls.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = addls.DisableMetricsCollection - } - if addls.Type != "" { - objectMap["type"] = addls.Type - } - for k, v := range addls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return &addls, true -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureDatabricksDeltaLakeSink. -func (addls AzureDatabricksDeltaLakeSink) AsBasicCopySink() (BasicCopySink, bool) { - return &addls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeSink struct. -func (addls *AzureDatabricksDeltaLakeSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - addls.PreCopyScript = preCopyScript - } - case "importSettings": - if v != nil { - var importSettings AzureDatabricksDeltaLakeImportCommand - err = json.Unmarshal(*v, &importSettings) - if err != nil { - return err - } - addls.ImportSettings = &importSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if addls.AdditionalProperties == nil { - addls.AdditionalProperties = make(map[string]interface{}) - } - addls.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - addls.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - addls.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - addls.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - addls.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - addls.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - addls.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - addls.Type = typeVar - } - } - } - - return nil -} - -// AzureDatabricksDeltaLakeSource a copy activity Azure Databricks Delta Lake source. -type AzureDatabricksDeltaLakeSource struct { - // Query - Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ExportSettings - Azure Databricks Delta Lake export settings. - ExportSettings *AzureDatabricksDeltaLakeExportCommand `json:"exportSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) MarshalJSON() ([]byte, error) { - addls.Type = TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource - objectMap := make(map[string]interface{}) - if addls.Query != nil { - objectMap["query"] = addls.Query - } - if addls.ExportSettings != nil { - objectMap["exportSettings"] = addls.ExportSettings - } - if addls.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = addls.SourceRetryCount - } - if addls.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = addls.SourceRetryWait - } - if addls.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = addls.MaxConcurrentConnections - } - if addls.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = addls.DisableMetricsCollection - } - if addls.Type != "" { - objectMap["type"] = addls.Type - } - for k, v := range addls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return &addls, true -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzureDatabricksDeltaLakeSource. -func (addls AzureDatabricksDeltaLakeSource) AsBasicCopySource() (BasicCopySource, bool) { - return &addls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDeltaLakeSource struct. -func (addls *AzureDatabricksDeltaLakeSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - addls.Query = query - } - case "exportSettings": - if v != nil { - var exportSettings AzureDatabricksDeltaLakeExportCommand - err = json.Unmarshal(*v, &exportSettings) - if err != nil { - return err - } - addls.ExportSettings = &exportSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if addls.AdditionalProperties == nil { - addls.AdditionalProperties = make(map[string]interface{}) - } - addls.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - addls.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - addls.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - addls.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - addls.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - addls.Type = typeVar - } - } - } - - return nil -} - -// AzureDatabricksDetltaLakeLinkedServiceTypeProperties azure Databricks Delta Lake linked service -// properties. -type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { - // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). - Domain interface{} `json:"domain,omitempty"` - // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, SecureString or AzureKeyVaultSecretReference. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // ClusterID - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` - // WorkspaceResourceID - Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct. -func (addllstp *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "domain": - if v != nil { - var domain interface{} - err = json.Unmarshal(*v, &domain) - if err != nil { - return err - } - addllstp.Domain = domain - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - addllstp.AccessToken = accessToken - } - case "clusterId": - if v != nil { - var clusterID interface{} - err = json.Unmarshal(*v, &clusterID) - if err != nil { - return err - } - addllstp.ClusterID = clusterID - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - addllstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - addllstp.Credential = &credential - } - case "workspaceResourceId": - if v != nil { - var workspaceResourceID interface{} - err = json.Unmarshal(*v, &workspaceResourceID) - if err != nil { - return err - } - addllstp.WorkspaceResourceID = workspaceResourceID - } - } - } - - return nil -} - -// AzureDatabricksLinkedService azure Databricks linked service. -type AzureDatabricksLinkedService struct { - // AzureDatabricksLinkedServiceTypeProperties - Azure Databricks linked service properties. - *AzureDatabricksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) MarshalJSON() ([]byte, error) { - adls.Type = TypeBasicLinkedServiceTypeAzureDatabricks - objectMap := make(map[string]interface{}) - if adls.AzureDatabricksLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = adls.AzureDatabricksLinkedServiceTypeProperties - } - if adls.ConnectVia != nil { - objectMap["connectVia"] = adls.ConnectVia - } - if adls.Description != nil { - objectMap["description"] = adls.Description - } - if adls.Parameters != nil { - objectMap["parameters"] = adls.Parameters - } - if adls.Annotations != nil { - objectMap["annotations"] = adls.Annotations - } - if adls.Type != "" { - objectMap["type"] = adls.Type - } - for k, v := range adls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return &adls, true -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureDatabricksLinkedService. -func (adls AzureDatabricksLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &adls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedService struct. -func (adls *AzureDatabricksLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureDatabricksLinkedServiceTypeProperties AzureDatabricksLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureDatabricksLinkedServiceTypeProperties) - if err != nil { - return err - } - adls.AzureDatabricksLinkedServiceTypeProperties = &azureDatabricksLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if adls.AdditionalProperties == nil { - adls.AdditionalProperties = make(map[string]interface{}) - } - adls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - adls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - adls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - adls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - adls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - adls.Type = typeVar - } - } - } - - return nil -} - -// AzureDatabricksLinkedServiceTypeProperties azure Databricks linked service properties. -type AzureDatabricksLinkedServiceTypeProperties struct { - // Domain - .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType string). - Domain interface{} `json:"domain,omitempty"` - // AccessToken - Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string (or Expression with resultType string). - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // Authentication - 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"` - // WorkspaceResourceID - Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` - // ExistingClusterID - 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"` - // InstancePoolID - 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"` - // NewClusterVersion - 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"` - // NewClusterNumOfWorker - 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"` - // NewClusterNodeType - 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"` - // NewClusterSparkConf - A set of optional, user-specified Spark configuration key-value pairs. - NewClusterSparkConf map[string]interface{} `json:"newClusterSparkConf"` - // NewClusterSparkEnvVars - A set of optional, user-specified Spark environment variables key-value pairs. - NewClusterSparkEnvVars map[string]interface{} `json:"newClusterSparkEnvVars"` - // NewClusterCustomTags - Additional tags for cluster resources. This property is ignored in instance pool configurations. - NewClusterCustomTags map[string]interface{} `json:"newClusterCustomTags"` - // NewClusterLogDestination - Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression with resultType string). - NewClusterLogDestination interface{} `json:"newClusterLogDestination,omitempty"` - // NewClusterDriverNodeType - 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"` - // NewClusterInitScripts - User-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of strings). - NewClusterInitScripts interface{} `json:"newClusterInitScripts,omitempty"` - // NewClusterEnableElasticDisk - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // PolicyID - 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"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureDatabricksLinkedServiceTypeProperties. -func (adlstp AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if adlstp.Domain != nil { - objectMap["domain"] = adlstp.Domain - } - objectMap["accessToken"] = adlstp.AccessToken - if adlstp.Authentication != nil { - objectMap["authentication"] = adlstp.Authentication - } - if adlstp.WorkspaceResourceID != nil { - objectMap["workspaceResourceId"] = adlstp.WorkspaceResourceID - } - if adlstp.ExistingClusterID != nil { - objectMap["existingClusterId"] = adlstp.ExistingClusterID - } - if adlstp.InstancePoolID != nil { - objectMap["instancePoolId"] = adlstp.InstancePoolID - } - if adlstp.NewClusterVersion != nil { - objectMap["newClusterVersion"] = adlstp.NewClusterVersion - } - if adlstp.NewClusterNumOfWorker != nil { - objectMap["newClusterNumOfWorker"] = adlstp.NewClusterNumOfWorker - } - if adlstp.NewClusterNodeType != nil { - objectMap["newClusterNodeType"] = adlstp.NewClusterNodeType - } - if adlstp.NewClusterSparkConf != nil { - objectMap["newClusterSparkConf"] = adlstp.NewClusterSparkConf - } - if adlstp.NewClusterSparkEnvVars != nil { - objectMap["newClusterSparkEnvVars"] = adlstp.NewClusterSparkEnvVars - } - if adlstp.NewClusterCustomTags != nil { - objectMap["newClusterCustomTags"] = adlstp.NewClusterCustomTags - } - if adlstp.NewClusterLogDestination != nil { - objectMap["newClusterLogDestination"] = adlstp.NewClusterLogDestination - } - if adlstp.NewClusterDriverNodeType != nil { - objectMap["newClusterDriverNodeType"] = adlstp.NewClusterDriverNodeType - } - if adlstp.NewClusterInitScripts != nil { - objectMap["newClusterInitScripts"] = adlstp.NewClusterInitScripts - } - if adlstp.NewClusterEnableElasticDisk != nil { - objectMap["newClusterEnableElasticDisk"] = adlstp.NewClusterEnableElasticDisk - } - if adlstp.EncryptedCredential != nil { - objectMap["encryptedCredential"] = adlstp.EncryptedCredential - } - if adlstp.PolicyID != nil { - objectMap["policyId"] = adlstp.PolicyID - } - if adlstp.Credential != nil { - objectMap["credential"] = adlstp.Credential - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for AzureDatabricksLinkedServiceTypeProperties struct. -func (adlstp *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "domain": - if v != nil { - var domain interface{} - err = json.Unmarshal(*v, &domain) - if err != nil { - return err - } - adlstp.Domain = domain - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - adlstp.AccessToken = accessToken - } - case "authentication": - if v != nil { - var authentication interface{} - err = json.Unmarshal(*v, &authentication) - if err != nil { - return err - } - adlstp.Authentication = authentication - } - case "workspaceResourceId": - if v != nil { - var workspaceResourceID interface{} - err = json.Unmarshal(*v, &workspaceResourceID) - if err != nil { - return err - } - adlstp.WorkspaceResourceID = workspaceResourceID - } - case "existingClusterId": - if v != nil { - var existingClusterID interface{} - err = json.Unmarshal(*v, &existingClusterID) - if err != nil { - return err - } - adlstp.ExistingClusterID = existingClusterID - } - case "instancePoolId": - if v != nil { - var instancePoolID interface{} - err = json.Unmarshal(*v, &instancePoolID) - if err != nil { - return err - } - adlstp.InstancePoolID = instancePoolID - } - case "newClusterVersion": - if v != nil { - var newClusterVersion interface{} - err = json.Unmarshal(*v, &newClusterVersion) - if err != nil { - return err - } - adlstp.NewClusterVersion = newClusterVersion - } - case "newClusterNumOfWorker": - if v != nil { - var newClusterNumOfWorker interface{} - err = json.Unmarshal(*v, &newClusterNumOfWorker) - if err != nil { - return err - } - adlstp.NewClusterNumOfWorker = newClusterNumOfWorker - } - case "newClusterNodeType": - if v != nil { - var newClusterNodeType interface{} - err = json.Unmarshal(*v, &newClusterNodeType) - if err != nil { - return err - } - adlstp.NewClusterNodeType = newClusterNodeType - } - case "newClusterSparkConf": - if v != nil { - var newClusterSparkConf map[string]interface{} - err = json.Unmarshal(*v, &newClusterSparkConf) - if err != nil { - return err - } - adlstp.NewClusterSparkConf = newClusterSparkConf - } - case "newClusterSparkEnvVars": - if v != nil { - var newClusterSparkEnvVars map[string]interface{} - err = json.Unmarshal(*v, &newClusterSparkEnvVars) - if err != nil { - return err - } - adlstp.NewClusterSparkEnvVars = newClusterSparkEnvVars - } - case "newClusterCustomTags": - if v != nil { - var newClusterCustomTags map[string]interface{} - err = json.Unmarshal(*v, &newClusterCustomTags) - if err != nil { - return err - } - adlstp.NewClusterCustomTags = newClusterCustomTags - } - case "newClusterLogDestination": - if v != nil { - var newClusterLogDestination interface{} - err = json.Unmarshal(*v, &newClusterLogDestination) - if err != nil { - return err - } - adlstp.NewClusterLogDestination = newClusterLogDestination - } - case "newClusterDriverNodeType": - if v != nil { - var newClusterDriverNodeType interface{} - err = json.Unmarshal(*v, &newClusterDriverNodeType) - if err != nil { - return err - } - adlstp.NewClusterDriverNodeType = newClusterDriverNodeType - } - case "newClusterInitScripts": - if v != nil { - var newClusterInitScripts interface{} - err = json.Unmarshal(*v, &newClusterInitScripts) - if err != nil { - return err - } - adlstp.NewClusterInitScripts = newClusterInitScripts - } - case "newClusterEnableElasticDisk": - if v != nil { - var newClusterEnableElasticDisk interface{} - err = json.Unmarshal(*v, &newClusterEnableElasticDisk) - if err != nil { - return err - } - adlstp.NewClusterEnableElasticDisk = newClusterEnableElasticDisk - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - adlstp.EncryptedCredential = &encryptedCredential - } - case "policyId": - if v != nil { - var policyID interface{} - err = json.Unmarshal(*v, &policyID) - if err != nil { - return err - } - adlstp.PolicyID = policyID - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - adlstp.Credential = &credential - } - } - } - - return nil -} - -// AzureFileStorageLinkedService azure File Storage linked service. -type AzureFileStorageLinkedService struct { - // AzureFileStorageLinkedServiceTypeProperties - Azure File Storage linked service properties. - *AzureFileStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) MarshalJSON() ([]byte, error) { - afsls.Type = TypeBasicLinkedServiceTypeAzureFileStorage - objectMap := make(map[string]interface{}) - if afsls.AzureFileStorageLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = afsls.AzureFileStorageLinkedServiceTypeProperties - } - if afsls.ConnectVia != nil { - objectMap["connectVia"] = afsls.ConnectVia - } - if afsls.Description != nil { - objectMap["description"] = afsls.Description - } - if afsls.Parameters != nil { - objectMap["parameters"] = afsls.Parameters - } - if afsls.Annotations != nil { - objectMap["annotations"] = afsls.Annotations - } - if afsls.Type != "" { - objectMap["type"] = afsls.Type - } - for k, v := range afsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return &afsls, true -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureFileStorageLinkedService. -func (afsls AzureFileStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &afsls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLinkedService struct. -func (afsls *AzureFileStorageLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureFileStorageLinkedServiceTypeProperties AzureFileStorageLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureFileStorageLinkedServiceTypeProperties) - if err != nil { - return err - } - afsls.AzureFileStorageLinkedServiceTypeProperties = &azureFileStorageLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if afsls.AdditionalProperties == nil { - afsls.AdditionalProperties = make(map[string]interface{}) - } - afsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - afsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - afsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - afsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - afsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - afsls.Type = typeVar - } - } - } - - return nil -} - -// AzureFileStorageLinkedServiceTypeProperties azure File Storage linked service properties. -type AzureFileStorageLinkedServiceTypeProperties struct { - // Host - Host name of the server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // UserID - User ID to logon the server. Type: string (or Expression with resultType string). - UserID interface{} `json:"userId,omitempty"` - // Password - Password to logon the server. - Password BasicSecretBase `json:"password,omitempty"` - // ConnectionString - The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // AccountKey - The Azure key vault secret reference of accountKey in connection string. - AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` - // SasURI - SAS URI of the Azure File resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` - // SasToken - The Azure key vault secret reference of sasToken in sas uri. - SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` - // FileShare - 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"` - // Snapshot - The azure file share snapshot version. Type: string (or Expression with resultType string). - Snapshot interface{} `json:"snapshot,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLinkedServiceTypeProperties struct. -func (afslstp *AzureFileStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - afslstp.Host = host - } - case "userId": - if v != nil { - var userID interface{} - err = json.Unmarshal(*v, &userID) - if err != nil { - return err - } - afslstp.UserID = userID - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - afslstp.Password = password - } - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - afslstp.ConnectionString = connectionString - } - case "accountKey": - if v != nil { - var accountKey AzureKeyVaultSecretReference - err = json.Unmarshal(*v, &accountKey) - if err != nil { - return err - } - afslstp.AccountKey = &accountKey - } - case "sasUri": - if v != nil { - var sasURI interface{} - err = json.Unmarshal(*v, &sasURI) - if err != nil { - return err - } - afslstp.SasURI = sasURI - } - case "sasToken": - if v != nil { - var sasToken AzureKeyVaultSecretReference - err = json.Unmarshal(*v, &sasToken) - if err != nil { - return err - } - afslstp.SasToken = &sasToken - } - case "fileShare": - if v != nil { - var fileShare interface{} - err = json.Unmarshal(*v, &fileShare) - if err != nil { - return err - } - afslstp.FileShare = fileShare - } - case "snapshot": - if v != nil { - var snapshot interface{} - err = json.Unmarshal(*v, &snapshot) - if err != nil { - return err - } - afslstp.Snapshot = snapshot - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - afslstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AzureFileStorageLocation the location of file server dataset. -type AzureFileStorageLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) MarshalJSON() ([]byte, error) { - afsl.Type = TypeBasicDatasetLocationTypeAzureFileStorageLocation - objectMap := make(map[string]interface{}) - if afsl.FolderPath != nil { - objectMap["folderPath"] = afsl.FolderPath - } - if afsl.FileName != nil { - objectMap["fileName"] = afsl.FileName - } - if afsl.Type != "" { - objectMap["type"] = afsl.Type - } - for k, v := range afsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return &afsl, true -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for AzureFileStorageLocation. -func (afsl AzureFileStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &afsl, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureFileStorageLocation struct. -func (afsl *AzureFileStorageLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if afsl.AdditionalProperties == nil { - afsl.AdditionalProperties = make(map[string]interface{}) - } - afsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - afsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - afsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - afsl.Type = typeVar - } - } - } - - return nil -} - -// AzureFileStorageReadSettings azure File Storage read settings. -type AzureFileStorageReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Azure File Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Azure File Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // Prefix - The prefix filter for the Azure File name starting from root path. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) MarshalJSON() ([]byte, error) { - afsrs.Type = TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings - objectMap := make(map[string]interface{}) - if afsrs.Recursive != nil { - objectMap["recursive"] = afsrs.Recursive - } - if afsrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = afsrs.WildcardFolderPath - } - if afsrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = afsrs.WildcardFileName - } - if afsrs.Prefix != nil { - objectMap["prefix"] = afsrs.Prefix - } - if afsrs.FileListPath != nil { - objectMap["fileListPath"] = afsrs.FileListPath - } - if afsrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = afsrs.EnablePartitionDiscovery - } - if afsrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = afsrs.PartitionRootPath - } - if afsrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = afsrs.DeleteFilesAfterCompletion - } - if afsrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = afsrs.ModifiedDatetimeStart - } - if afsrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = afsrs.ModifiedDatetimeEnd - } - if afsrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = afsrs.MaxConcurrentConnections - } - if afsrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = afsrs.DisableMetricsCollection - } - if afsrs.Type != "" { - objectMap["type"] = afsrs.Type - } - for k, v := range afsrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return &afsrs, true -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for AzureFileStorageReadSettings. -func (afsrs AzureFileStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &afsrs, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureFileStorageReadSettings struct. -func (afsrs *AzureFileStorageReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - afsrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - afsrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - afsrs.WildcardFileName = wildcardFileName - } - case "prefix": - if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) - if err != nil { - return err - } - afsrs.Prefix = prefix - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - afsrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - afsrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - afsrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - afsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - afsrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - afsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if afsrs.AdditionalProperties == nil { - afsrs.AdditionalProperties = make(map[string]interface{}) - } - afsrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - afsrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - afsrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - afsrs.Type = typeVar - } - } - } - - return nil -} - -// AzureFileStorageWriteSettings azure File Storage write settings. -type AzureFileStorageWriteSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) MarshalJSON() ([]byte, error) { - afsws.Type = TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings - objectMap := make(map[string]interface{}) - if afsws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = afsws.MaxConcurrentConnections - } - if afsws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = afsws.DisableMetricsCollection - } - if afsws.CopyBehavior != nil { - objectMap["copyBehavior"] = afsws.CopyBehavior - } - if afsws.Metadata != nil { - objectMap["metadata"] = afsws.Metadata - } - if afsws.Type != "" { - objectMap["type"] = afsws.Type - } - for k, v := range afsws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { - return nil, false -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return &afsws, true -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for AzureFileStorageWriteSettings. -func (afsws AzureFileStorageWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &afsws, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureFileStorageWriteSettings struct. -func (afsws *AzureFileStorageWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if afsws.AdditionalProperties == nil { - afsws.AdditionalProperties = make(map[string]interface{}) - } - afsws.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - afsws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - afsws.DisableMetricsCollection = disableMetricsCollection - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - afsws.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - afsws.Metadata = &metadata - } - case "type": - if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - afsws.Type = typeVar - } - } - } - - return nil -} - -// AzureFunctionActivity azure Function activity. -type AzureFunctionActivity struct { - // AzureFunctionActivityTypeProperties - Azure Function activity properties. - *AzureFunctionActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureFunctionActivity. -func (afa AzureFunctionActivity) MarshalJSON() ([]byte, error) { - afa.Type = TypeBasicActivityTypeAzureFunctionActivity - objectMap := make(map[string]interface{}) - if afa.AzureFunctionActivityTypeProperties != nil { - objectMap["typeProperties"] = afa.AzureFunctionActivityTypeProperties - } - if afa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = afa.LinkedServiceName - } - if afa.Policy != nil { - objectMap["policy"] = afa.Policy - } - if afa.Name != nil { - objectMap["name"] = afa.Name - } - if afa.Description != nil { - objectMap["description"] = afa.Description - } - if afa.State != "" { - objectMap["state"] = afa.State - } - if afa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = afa.OnInactiveMarkAs - } - if afa.DependsOn != nil { - objectMap["dependsOn"] = afa.DependsOn - } - if afa.UserProperties != nil { - objectMap["userProperties"] = afa.UserProperties - } - if afa.Type != "" { - objectMap["type"] = afa.Type - } - for k, v := range afa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return &afa, true -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &afa, true -} - -// AsWebHookActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for AzureFunctionActivity. -func (afa AzureFunctionActivity) AsBasicActivity() (BasicActivity, bool) { - return &afa, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureFunctionActivity struct. -func (afa *AzureFunctionActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureFunctionActivityTypeProperties AzureFunctionActivityTypeProperties - err = json.Unmarshal(*v, &azureFunctionActivityTypeProperties) - if err != nil { - return err - } - afa.AzureFunctionActivityTypeProperties = &azureFunctionActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - afa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - afa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if afa.AdditionalProperties == nil { - afa.AdditionalProperties = make(map[string]interface{}) - } - afa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - afa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - afa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - afa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - afa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - afa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - afa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - afa.Type = typeVar - } - } - } - - return nil -} - -// AzureFunctionActivityTypeProperties azure Function activity type properties. -type AzureFunctionActivityTypeProperties struct { - // Method - Rest API method for target endpoint. Possible values include: 'AzureFunctionActivityMethodGET', 'AzureFunctionActivityMethodPOST', 'AzureFunctionActivityMethodPUT', 'AzureFunctionActivityMethodDELETE', 'AzureFunctionActivityMethodOPTIONS', 'AzureFunctionActivityMethodHEAD', 'AzureFunctionActivityMethodTRACE' - Method AzureFunctionActivityMethod `json:"method,omitempty"` - // FunctionName - Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string) - FunctionName interface{} `json:"functionName,omitempty"` - // Headers - 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 map[string]*string `json:"headers"` - // Body - 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"` -} - -// MarshalJSON is the custom marshaler for AzureFunctionActivityTypeProperties. -func (afatp AzureFunctionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if afatp.Method != "" { - objectMap["method"] = afatp.Method - } - if afatp.FunctionName != nil { - objectMap["functionName"] = afatp.FunctionName - } - if afatp.Headers != nil { - objectMap["headers"] = afatp.Headers - } - if afatp.Body != nil { - objectMap["body"] = afatp.Body - } - return json.Marshal(objectMap) -} - -// AzureFunctionLinkedService azure Function linked service. -type AzureFunctionLinkedService struct { - // AzureFunctionLinkedServiceTypeProperties - Azure Function linked service properties. - *AzureFunctionLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) MarshalJSON() ([]byte, error) { - afls.Type = TypeBasicLinkedServiceTypeAzureFunction - objectMap := make(map[string]interface{}) - if afls.AzureFunctionLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = afls.AzureFunctionLinkedServiceTypeProperties - } - if afls.ConnectVia != nil { - objectMap["connectVia"] = afls.ConnectVia - } - if afls.Description != nil { - objectMap["description"] = afls.Description - } - if afls.Parameters != nil { - objectMap["parameters"] = afls.Parameters - } - if afls.Annotations != nil { - objectMap["annotations"] = afls.Annotations - } - if afls.Type != "" { - objectMap["type"] = afls.Type - } - for k, v := range afls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return &afls, true -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureFunctionLinkedService. -func (afls AzureFunctionLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &afls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureFunctionLinkedService struct. -func (afls *AzureFunctionLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureFunctionLinkedServiceTypeProperties AzureFunctionLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureFunctionLinkedServiceTypeProperties) - if err != nil { - return err - } - afls.AzureFunctionLinkedServiceTypeProperties = &azureFunctionLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if afls.AdditionalProperties == nil { - afls.AdditionalProperties = make(map[string]interface{}) - } - afls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - afls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - afls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - afls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - afls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - afls.Type = typeVar - } - } - } - - return nil -} - -// AzureFunctionLinkedServiceTypeProperties azure Function linked service properties. -type AzureFunctionLinkedServiceTypeProperties struct { - // FunctionAppURL - The endpoint of the Azure Function App. URL will be in the format https://.azurewebsites.net. Type: string (or Expression with resultType string). - FunctionAppURL interface{} `json:"functionAppUrl,omitempty"` - // FunctionKey - Function or Host key for Azure Function App. - FunctionKey BasicSecretBase `json:"functionKey,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` - // ResourceID - Allowed token audiences for azure function. Type: string (or Expression with resultType string). - ResourceID interface{} `json:"resourceId,omitempty"` - // Authentication - Type of authentication (Required to specify MSI) used to connect to AzureFunction. Type: string (or Expression with resultType string). - Authentication interface{} `json:"authentication,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureFunctionLinkedServiceTypeProperties struct. -func (aflstp *AzureFunctionLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "functionAppUrl": - if v != nil { - var functionAppURL interface{} - err = json.Unmarshal(*v, &functionAppURL) - if err != nil { - return err - } - aflstp.FunctionAppURL = functionAppURL - } - case "functionKey": - if v != nil { - functionKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aflstp.FunctionKey = functionKey - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - aflstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - aflstp.Credential = &credential - } - case "resourceId": - if v != nil { - var resourceID interface{} - err = json.Unmarshal(*v, &resourceID) - if err != nil { - return err - } - aflstp.ResourceID = resourceID - } - case "authentication": - if v != nil { - var authentication interface{} - err = json.Unmarshal(*v, &authentication) - if err != nil { - return err - } - aflstp.Authentication = authentication - } - } - } - - return nil -} - -// AzureKeyVaultLinkedService azure Key Vault linked service. -type AzureKeyVaultLinkedService struct { - // AzureKeyVaultLinkedServiceTypeProperties - Azure Key Vault linked service properties. - *AzureKeyVaultLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) MarshalJSON() ([]byte, error) { - akvls.Type = TypeBasicLinkedServiceTypeAzureKeyVault - objectMap := make(map[string]interface{}) - if akvls.AzureKeyVaultLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = akvls.AzureKeyVaultLinkedServiceTypeProperties - } - if akvls.ConnectVia != nil { - objectMap["connectVia"] = akvls.ConnectVia - } - if akvls.Description != nil { - objectMap["description"] = akvls.Description - } - if akvls.Parameters != nil { - objectMap["parameters"] = akvls.Parameters - } - if akvls.Annotations != nil { - objectMap["annotations"] = akvls.Annotations - } - if akvls.Type != "" { - objectMap["type"] = akvls.Type - } - for k, v := range akvls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return &akvls, true -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureKeyVaultLinkedService. -func (akvls AzureKeyVaultLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &akvls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureKeyVaultLinkedService struct. -func (akvls *AzureKeyVaultLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureKeyVaultLinkedServiceTypeProperties AzureKeyVaultLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureKeyVaultLinkedServiceTypeProperties) - if err != nil { - return err - } - akvls.AzureKeyVaultLinkedServiceTypeProperties = &azureKeyVaultLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if akvls.AdditionalProperties == nil { - akvls.AdditionalProperties = make(map[string]interface{}) - } - akvls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - akvls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - akvls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - akvls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - akvls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - akvls.Type = typeVar - } - } - } - - return nil -} - -// AzureKeyVaultLinkedServiceTypeProperties azure Key Vault linked service properties. -type AzureKeyVaultLinkedServiceTypeProperties struct { - // BaseURL - 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"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// AzureKeyVaultSecretReference azure Key Vault secret reference. -type AzureKeyVaultSecretReference struct { - // Store - The Azure Key Vault linked service reference. - Store *LinkedServiceReference `json:"store,omitempty"` - // SecretName - The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). - SecretName interface{} `json:"secretName,omitempty"` - // SecretVersion - 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"` - // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' - Type Type `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error) { - akvsr.Type = TypeAzureKeyVaultSecret - objectMap := make(map[string]interface{}) - if akvsr.Store != nil { - objectMap["store"] = akvsr.Store - } - if akvsr.SecretName != nil { - objectMap["secretName"] = akvsr.SecretName - } - if akvsr.SecretVersion != nil { - objectMap["secretVersion"] = akvsr.SecretVersion - } - if akvsr.Type != "" { - objectMap["type"] = akvsr.Type - } - return json.Marshal(objectMap) -} - -// AsSecureString is the BasicSecretBase implementation for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) AsSecureString() (*SecureString, bool) { - return nil, false -} - -// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { - return &akvsr, true -} - -// AsSecretBase is the BasicSecretBase implementation for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) AsSecretBase() (*SecretBase, bool) { - return nil, false -} - -// AsBasicSecretBase is the BasicSecretBase implementation for AzureKeyVaultSecretReference. -func (akvsr AzureKeyVaultSecretReference) AsBasicSecretBase() (BasicSecretBase, bool) { - return &akvsr, true -} - -// AzureMLBatchExecutionActivity azure ML Batch Execution activity. -type AzureMLBatchExecutionActivity struct { - // AzureMLBatchExecutionActivityTypeProperties - Azure ML Batch Execution activity properties. - *AzureMLBatchExecutionActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error) { - ambea.Type = TypeBasicActivityTypeAzureMLBatchExecution - objectMap := make(map[string]interface{}) - if ambea.AzureMLBatchExecutionActivityTypeProperties != nil { - objectMap["typeProperties"] = ambea.AzureMLBatchExecutionActivityTypeProperties - } - if ambea.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ambea.LinkedServiceName - } - if ambea.Policy != nil { - objectMap["policy"] = ambea.Policy - } - if ambea.Name != nil { - objectMap["name"] = ambea.Name - } - if ambea.Description != nil { - objectMap["description"] = ambea.Description - } - if ambea.State != "" { - objectMap["state"] = ambea.State - } - if ambea.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ambea.OnInactiveMarkAs - } - if ambea.DependsOn != nil { - objectMap["dependsOn"] = ambea.DependsOn - } - if ambea.UserProperties != nil { - objectMap["userProperties"] = ambea.UserProperties - } - if ambea.Type != "" { - objectMap["type"] = ambea.Type - } - for k, v := range ambea.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return &ambea, true -} - -// AsGetMetadataActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ambea, true -} - -// AsWebHookActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for AzureMLBatchExecutionActivity. -func (ambea AzureMLBatchExecutionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ambea, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMLBatchExecutionActivity struct. -func (ambea *AzureMLBatchExecutionActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLBatchExecutionActivityTypeProperties AzureMLBatchExecutionActivityTypeProperties - err = json.Unmarshal(*v, &azureMLBatchExecutionActivityTypeProperties) - if err != nil { - return err - } - ambea.AzureMLBatchExecutionActivityTypeProperties = &azureMLBatchExecutionActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ambea.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ambea.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ambea.AdditionalProperties == nil { - ambea.AdditionalProperties = make(map[string]interface{}) - } - ambea.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ambea.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ambea.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ambea.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ambea.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ambea.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ambea.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ambea.Type = typeVar - } - } - } - - return nil -} - -// AzureMLBatchExecutionActivityTypeProperties azure ML Batch Execution activity properties. -type AzureMLBatchExecutionActivityTypeProperties struct { - // GlobalParameters - 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"` - // WebServiceOutputs - 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"` - // WebServiceInputs - 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"` -} - -// MarshalJSON is the custom marshaler for AzureMLBatchExecutionActivityTypeProperties. -func (ambeatp AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ambeatp.GlobalParameters != nil { - objectMap["globalParameters"] = ambeatp.GlobalParameters - } - if ambeatp.WebServiceOutputs != nil { - objectMap["webServiceOutputs"] = ambeatp.WebServiceOutputs - } - if ambeatp.WebServiceInputs != nil { - objectMap["webServiceInputs"] = ambeatp.WebServiceInputs - } - return json.Marshal(objectMap) -} - -// AzureMLExecutePipelineActivity azure ML Execute Pipeline activity. -type AzureMLExecutePipelineActivity struct { - // AzureMLExecutePipelineActivityTypeProperties - Azure ML Execute Pipeline activity properties. - *AzureMLExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) { - amepa.Type = TypeBasicActivityTypeAzureMLExecutePipeline - objectMap := make(map[string]interface{}) - if amepa.AzureMLExecutePipelineActivityTypeProperties != nil { - objectMap["typeProperties"] = amepa.AzureMLExecutePipelineActivityTypeProperties - } - if amepa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amepa.LinkedServiceName - } - if amepa.Policy != nil { - objectMap["policy"] = amepa.Policy - } - if amepa.Name != nil { - objectMap["name"] = amepa.Name - } - if amepa.Description != nil { - objectMap["description"] = amepa.Description - } - if amepa.State != "" { - objectMap["state"] = amepa.State - } - if amepa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = amepa.OnInactiveMarkAs - } - if amepa.DependsOn != nil { - objectMap["dependsOn"] = amepa.DependsOn - } - if amepa.UserProperties != nil { - objectMap["userProperties"] = amepa.UserProperties - } - if amepa.Type != "" { - objectMap["type"] = amepa.Type - } - for k, v := range amepa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return &amepa, true -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &amepa, true -} - -// AsWebHookActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for AzureMLExecutePipelineActivity. -func (amepa AzureMLExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { - return &amepa, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMLExecutePipelineActivity struct. -func (amepa *AzureMLExecutePipelineActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLExecutePipelineActivityTypeProperties AzureMLExecutePipelineActivityTypeProperties - err = json.Unmarshal(*v, &azureMLExecutePipelineActivityTypeProperties) - if err != nil { - return err - } - amepa.AzureMLExecutePipelineActivityTypeProperties = &azureMLExecutePipelineActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - amepa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - amepa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amepa.AdditionalProperties == nil { - amepa.AdditionalProperties = make(map[string]interface{}) - } - amepa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - amepa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amepa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - amepa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - amepa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - amepa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - amepa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amepa.Type = typeVar - } - } - } - - return nil -} - -// AzureMLExecutePipelineActivityTypeProperties azure ML Execute Pipeline activity properties. -type AzureMLExecutePipelineActivityTypeProperties struct { - // MlPipelineID - ID of the published Azure ML pipeline. Type: string (or Expression with resultType string). - MlPipelineID interface{} `json:"mlPipelineId,omitempty"` - // MlPipelineEndpointID - ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - MlPipelineEndpointID interface{} `json:"mlPipelineEndpointId,omitempty"` - // Version - Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // ExperimentName - 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"` - // MlPipelineParameters - 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"` - // DataPathAssignments - 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 (or Expression with resultType object). - DataPathAssignments interface{} `json:"dataPathAssignments,omitempty"` - // MlParentRunID - 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"` - // ContinueOnStepFailure - 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"` -} - -// AzureMLLinkedService azure ML Studio Web Service linked service. -type AzureMLLinkedService struct { - // AzureMLLinkedServiceTypeProperties - Azure ML Studio Web Service linked service properties. - *AzureMLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMLLinkedService. -func (amls AzureMLLinkedService) MarshalJSON() ([]byte, error) { - amls.Type = TypeBasicLinkedServiceTypeAzureML - objectMap := make(map[string]interface{}) - if amls.AzureMLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amls.AzureMLLinkedServiceTypeProperties - } - if amls.ConnectVia != nil { - objectMap["connectVia"] = amls.ConnectVia - } - if amls.Description != nil { - objectMap["description"] = amls.Description - } - if amls.Parameters != nil { - objectMap["parameters"] = amls.Parameters - } - if amls.Annotations != nil { - objectMap["annotations"] = amls.Annotations - } - if amls.Type != "" { - objectMap["type"] = amls.Type - } - for k, v := range amls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return &amls, true -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLLinkedService. -func (amls AzureMLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedService struct. -func (amls *AzureMLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLLinkedServiceTypeProperties AzureMLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMLLinkedServiceTypeProperties) - if err != nil { - return err - } - amls.AzureMLLinkedServiceTypeProperties = &azureMLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amls.AdditionalProperties == nil { - amls.AdditionalProperties = make(map[string]interface{}) - } - amls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amls.Type = typeVar - } - } - } - - return nil -} - -// AzureMLLinkedServiceTypeProperties azure ML Studio Web Service linked service properties. -type AzureMLLinkedServiceTypeProperties struct { - // MlEndpoint - 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"` - // APIKey - The API key for accessing the Azure ML model endpoint. - APIKey BasicSecretBase `json:"apiKey,omitempty"` - // UpdateResourceEndpoint - 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"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio web service. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Authentication - Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). - Authentication interface{} `json:"authentication,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureMLLinkedServiceTypeProperties struct. -func (amlstp *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "mlEndpoint": - if v != nil { - var mlEndpoint interface{} - err = json.Unmarshal(*v, &mlEndpoint) - if err != nil { - return err - } - amlstp.MlEndpoint = mlEndpoint - } - case "apiKey": - if v != nil { - APIKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.APIKey = APIKey - } - case "updateResourceEndpoint": - if v != nil { - var updateResourceEndpoint interface{} - err = json.Unmarshal(*v, &updateResourceEndpoint) - if err != nil { - return err - } - amlstp.UpdateResourceEndpoint = updateResourceEndpoint - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - amlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - amlstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - amlstp.EncryptedCredential = &encryptedCredential - } - case "authentication": - if v != nil { - var authentication interface{} - err = json.Unmarshal(*v, &authentication) - if err != nil { - return err - } - amlstp.Authentication = authentication - } - } - } - - return nil -} - -// AzureMLServiceLinkedService azure ML Service linked service. -type AzureMLServiceLinkedService struct { - // AzureMLServiceLinkedServiceTypeProperties - Azure ML Service linked service properties. - *AzureMLServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) MarshalJSON() ([]byte, error) { - amsls.Type = TypeBasicLinkedServiceTypeAzureMLService - objectMap := make(map[string]interface{}) - if amsls.AzureMLServiceLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amsls.AzureMLServiceLinkedServiceTypeProperties - } - if amsls.ConnectVia != nil { - objectMap["connectVia"] = amsls.ConnectVia - } - if amsls.Description != nil { - objectMap["description"] = amsls.Description - } - if amsls.Parameters != nil { - objectMap["parameters"] = amsls.Parameters - } - if amsls.Annotations != nil { - objectMap["annotations"] = amsls.Annotations - } - if amsls.Type != "" { - objectMap["type"] = amsls.Type - } - for k, v := range amsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return &amsls, true -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMLServiceLinkedService. -func (amsls AzureMLServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amsls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedService struct. -func (amsls *AzureMLServiceLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLServiceLinkedServiceTypeProperties AzureMLServiceLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMLServiceLinkedServiceTypeProperties) - if err != nil { - return err - } - amsls.AzureMLServiceLinkedServiceTypeProperties = &azureMLServiceLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amsls.AdditionalProperties == nil { - amsls.AdditionalProperties = make(map[string]interface{}) - } - amsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amsls.Type = typeVar - } - } - } - - return nil -} - -// AzureMLServiceLinkedServiceTypeProperties azure ML Service linked service properties. -type AzureMLServiceLinkedServiceTypeProperties struct { - // SubscriptionID - Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` - // ResourceGroupName - Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` - // MlWorkspaceName - Azure ML Service workspace name. Type: string (or Expression with resultType string). - MlWorkspaceName interface{} `json:"mlWorkspaceName,omitempty"` - // Authentication - Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). - Authentication interface{} `json:"authentication,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureMLServiceLinkedServiceTypeProperties struct. -func (amslstp *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "subscriptionId": - if v != nil { - var subscriptionID interface{} - err = json.Unmarshal(*v, &subscriptionID) - if err != nil { - return err - } - amslstp.SubscriptionID = subscriptionID - } - case "resourceGroupName": - if v != nil { - var resourceGroupName interface{} - err = json.Unmarshal(*v, &resourceGroupName) - if err != nil { - return err - } - amslstp.ResourceGroupName = resourceGroupName - } - case "mlWorkspaceName": - if v != nil { - var mlWorkspaceName interface{} - err = json.Unmarshal(*v, &mlWorkspaceName) - if err != nil { - return err - } - amslstp.MlWorkspaceName = mlWorkspaceName - } - case "authentication": - if v != nil { - var authentication interface{} - err = json.Unmarshal(*v, &authentication) - if err != nil { - return err - } - amslstp.Authentication = authentication - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - amslstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - amslstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - amslstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - amslstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AzureMLUpdateResourceActivity azure ML Update Resource management activity. -type AzureMLUpdateResourceActivity struct { - // AzureMLUpdateResourceActivityTypeProperties - Azure ML Update Resource management activity properties. - *AzureMLUpdateResourceActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error) { - amura.Type = TypeBasicActivityTypeAzureMLUpdateResource - objectMap := make(map[string]interface{}) - if amura.AzureMLUpdateResourceActivityTypeProperties != nil { - objectMap["typeProperties"] = amura.AzureMLUpdateResourceActivityTypeProperties - } - if amura.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amura.LinkedServiceName - } - if amura.Policy != nil { - objectMap["policy"] = amura.Policy - } - if amura.Name != nil { - objectMap["name"] = amura.Name - } - if amura.Description != nil { - objectMap["description"] = amura.Description - } - if amura.State != "" { - objectMap["state"] = amura.State - } - if amura.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = amura.OnInactiveMarkAs - } - if amura.DependsOn != nil { - objectMap["dependsOn"] = amura.DependsOn - } - if amura.UserProperties != nil { - objectMap["userProperties"] = amura.UserProperties - } - if amura.Type != "" { - objectMap["type"] = amura.Type - } - for k, v := range amura.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return &amura, true -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &amura, true -} - -// AsWebHookActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for AzureMLUpdateResourceActivity. -func (amura AzureMLUpdateResourceActivity) AsBasicActivity() (BasicActivity, bool) { - return &amura, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMLUpdateResourceActivity struct. -func (amura *AzureMLUpdateResourceActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMLUpdateResourceActivityTypeProperties AzureMLUpdateResourceActivityTypeProperties - err = json.Unmarshal(*v, &azureMLUpdateResourceActivityTypeProperties) - if err != nil { - return err - } - amura.AzureMLUpdateResourceActivityTypeProperties = &azureMLUpdateResourceActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - amura.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - amura.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amura.AdditionalProperties == nil { - amura.AdditionalProperties = make(map[string]interface{}) - } - amura.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - amura.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amura.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - amura.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - amura.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - amura.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - amura.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amura.Type = typeVar - } - } - } - - return nil -} - -// AzureMLUpdateResourceActivityTypeProperties azure ML Update Resource activity properties. -type AzureMLUpdateResourceActivityTypeProperties struct { - // TrainedModelName - 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"` - // TrainedModelLinkedServiceName - Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. - TrainedModelLinkedServiceName *LinkedServiceReference `json:"trainedModelLinkedServiceName,omitempty"` - // TrainedModelFilePath - 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"` -} - -// AzureMLWebServiceFile azure ML WebService Input/Output file -type AzureMLWebServiceFile struct { - // FilePath - 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"` - // LinkedServiceName - Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` -} - -// AzureMariaDBLinkedService azure Database for MariaDB linked service. -type AzureMariaDBLinkedService struct { - // AzureMariaDBLinkedServiceTypeProperties - Azure Database for MariaDB linked service properties. - *AzureMariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) MarshalJSON() ([]byte, error) { - amdls.Type = TypeBasicLinkedServiceTypeAzureMariaDB - objectMap := make(map[string]interface{}) - if amdls.AzureMariaDBLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amdls.AzureMariaDBLinkedServiceTypeProperties - } - if amdls.ConnectVia != nil { - objectMap["connectVia"] = amdls.ConnectVia - } - if amdls.Description != nil { - objectMap["description"] = amdls.Description - } - if amdls.Parameters != nil { - objectMap["parameters"] = amdls.Parameters - } - if amdls.Annotations != nil { - objectMap["annotations"] = amdls.Annotations - } - if amdls.Type != "" { - objectMap["type"] = amdls.Type - } - for k, v := range amdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return &amdls, true -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMariaDBLinkedService. -func (amdls AzureMariaDBLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amdls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMariaDBLinkedService struct. -func (amdls *AzureMariaDBLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMariaDBLinkedServiceTypeProperties AzureMariaDBLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMariaDBLinkedServiceTypeProperties) - if err != nil { - return err - } - amdls.AzureMariaDBLinkedServiceTypeProperties = &azureMariaDBLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amdls.AdditionalProperties == nil { - amdls.AdditionalProperties = make(map[string]interface{}) - } - amdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amdls.Type = typeVar - } - } - } - - return nil -} - -// AzureMariaDBLinkedServiceTypeProperties azure Database for MariaDB linked service properties. -type AzureMariaDBLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Pwd - The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// AzureMariaDBSource a copy activity Azure MariaDB source. -type AzureMariaDBSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMariaDBSource. -func (amds AzureMariaDBSource) MarshalJSON() ([]byte, error) { - amds.Type = TypeBasicCopySourceTypeAzureMariaDBSource - objectMap := make(map[string]interface{}) - if amds.Query != nil { - objectMap["query"] = amds.Query - } - if amds.QueryTimeout != nil { - objectMap["queryTimeout"] = amds.QueryTimeout - } - if amds.AdditionalColumns != nil { - objectMap["additionalColumns"] = amds.AdditionalColumns - } - if amds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = amds.SourceRetryCount - } - if amds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = amds.SourceRetryWait - } - if amds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = amds.MaxConcurrentConnections - } - if amds.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = amds.DisableMetricsCollection - } - if amds.Type != "" { - objectMap["type"] = amds.Type - } - for k, v := range amds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return &amds, true -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &amds, true -} - -// AsBinarySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzureMariaDBSource. -func (amds AzureMariaDBSource) AsBasicCopySource() (BasicCopySource, bool) { - return &amds, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMariaDBSource struct. -func (amds *AzureMariaDBSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - amds.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - amds.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - amds.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amds.AdditionalProperties == nil { - amds.AdditionalProperties = make(map[string]interface{}) - } - amds.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - amds.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - amds.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - amds.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - amds.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amds.Type = typeVar - } - } - } - - return nil -} - -// AzureMariaDBTableDataset azure Database for MariaDB dataset. -type AzureMariaDBTableDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) MarshalJSON() ([]byte, error) { - amdtd.Type = TypeBasicDatasetTypeAzureMariaDBTable - objectMap := make(map[string]interface{}) - if amdtd.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = amdtd.GenericDatasetTypeProperties - } - if amdtd.Description != nil { - objectMap["description"] = amdtd.Description - } - if amdtd.Structure != nil { - objectMap["structure"] = amdtd.Structure - } - if amdtd.Schema != nil { - objectMap["schema"] = amdtd.Schema - } - if amdtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amdtd.LinkedServiceName - } - if amdtd.Parameters != nil { - objectMap["parameters"] = amdtd.Parameters - } - if amdtd.Annotations != nil { - objectMap["annotations"] = amdtd.Annotations - } - if amdtd.Folder != nil { - objectMap["folder"] = amdtd.Folder - } - if amdtd.Type != "" { - objectMap["type"] = amdtd.Type - } - for k, v := range amdtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return &amdtd, true -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureMariaDBTableDataset. -func (amdtd AzureMariaDBTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &amdtd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMariaDBTableDataset struct. -func (amdtd *AzureMariaDBTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - amdtd.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amdtd.AdditionalProperties == nil { - amdtd.AdditionalProperties = make(map[string]interface{}) - } - amdtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amdtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - amdtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - amdtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - amdtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amdtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amdtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - amdtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amdtd.Type = typeVar - } - } - } - - return nil -} - -// AzureMySQLLinkedService azure MySQL database linked service. -type AzureMySQLLinkedService struct { - // AzureMySQLLinkedServiceTypeProperties - Azure MySQL database linked service properties. - *AzureMySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) MarshalJSON() ([]byte, error) { - amsls.Type = TypeBasicLinkedServiceTypeAzureMySQL - objectMap := make(map[string]interface{}) - if amsls.AzureMySQLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = amsls.AzureMySQLLinkedServiceTypeProperties - } - if amsls.ConnectVia != nil { - objectMap["connectVia"] = amsls.ConnectVia - } - if amsls.Description != nil { - objectMap["description"] = amsls.Description - } - if amsls.Parameters != nil { - objectMap["parameters"] = amsls.Parameters - } - if amsls.Annotations != nil { - objectMap["annotations"] = amsls.Annotations - } - if amsls.Type != "" { - objectMap["type"] = amsls.Type - } - for k, v := range amsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return &amsls, true -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureMySQLLinkedService. -func (amsls AzureMySQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &amsls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMySQLLinkedService struct. -func (amsls *AzureMySQLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMySQLLinkedServiceTypeProperties AzureMySQLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureMySQLLinkedServiceTypeProperties) - if err != nil { - return err - } - amsls.AzureMySQLLinkedServiceTypeProperties = &azureMySQLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amsls.AdditionalProperties == nil { - amsls.AdditionalProperties = make(map[string]interface{}) - } - amsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - amsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amsls.Type = typeVar - } - } - } - - return nil -} - -// AzureMySQLLinkedServiceTypeProperties azure MySQL database linked service properties. -type AzureMySQLLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// AzureMySQLSink a copy activity Azure MySql sink. -type AzureMySQLSink struct { - // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMySQLSink. -func (amss AzureMySQLSink) MarshalJSON() ([]byte, error) { - amss.Type = TypeBasicCopySinkTypeAzureMySQLSink - objectMap := make(map[string]interface{}) - if amss.PreCopyScript != nil { - objectMap["preCopyScript"] = amss.PreCopyScript - } - if amss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = amss.WriteBatchSize - } - if amss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = amss.WriteBatchTimeout - } - if amss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = amss.SinkRetryCount - } - if amss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = amss.SinkRetryWait - } - if amss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = amss.MaxConcurrentConnections - } - if amss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = amss.DisableMetricsCollection - } - if amss.Type != "" { - objectMap["type"] = amss.Type - } - for k, v := range amss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return &amss, true -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureMySQLSink. -func (amss AzureMySQLSink) AsBasicCopySink() (BasicCopySink, bool) { - return &amss, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMySQLSink struct. -func (amss *AzureMySQLSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - amss.PreCopyScript = preCopyScript - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amss.AdditionalProperties == nil { - amss.AdditionalProperties = make(map[string]interface{}) - } - amss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - amss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - amss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - amss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - amss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - amss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - amss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amss.Type = typeVar - } - } - } - - return nil -} - -// AzureMySQLSource a copy activity Azure MySQL source. -type AzureMySQLSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMySQLSource. -func (amss AzureMySQLSource) MarshalJSON() ([]byte, error) { - amss.Type = TypeBasicCopySourceTypeAzureMySQLSource - objectMap := make(map[string]interface{}) - if amss.Query != nil { - objectMap["query"] = amss.Query - } - if amss.QueryTimeout != nil { - objectMap["queryTimeout"] = amss.QueryTimeout - } - if amss.AdditionalColumns != nil { - objectMap["additionalColumns"] = amss.AdditionalColumns - } - if amss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = amss.SourceRetryCount - } - if amss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = amss.SourceRetryWait - } - if amss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = amss.MaxConcurrentConnections - } - if amss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = amss.DisableMetricsCollection - } - if amss.Type != "" { - objectMap["type"] = amss.Type - } - for k, v := range amss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return &amss, true -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &amss, true -} - -// AsBinarySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzureMySQLSource. -func (amss AzureMySQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &amss, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMySQLSource struct. -func (amss *AzureMySQLSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - amss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - amss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - amss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amss.AdditionalProperties == nil { - amss.AdditionalProperties = make(map[string]interface{}) - } - amss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - amss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - amss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - amss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - amss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amss.Type = typeVar - } - } - } - - return nil -} - -// AzureMySQLTableDataset the Azure MySQL database dataset. -type AzureMySQLTableDataset struct { - // AzureMySQLTableDatasetTypeProperties - Azure MySQL database dataset properties. - *AzureMySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) MarshalJSON() ([]byte, error) { - amstd.Type = TypeBasicDatasetTypeAzureMySQLTable - objectMap := make(map[string]interface{}) - if amstd.AzureMySQLTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = amstd.AzureMySQLTableDatasetTypeProperties - } - if amstd.Description != nil { - objectMap["description"] = amstd.Description - } - if amstd.Structure != nil { - objectMap["structure"] = amstd.Structure - } - if amstd.Schema != nil { - objectMap["schema"] = amstd.Schema - } - if amstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = amstd.LinkedServiceName - } - if amstd.Parameters != nil { - objectMap["parameters"] = amstd.Parameters - } - if amstd.Annotations != nil { - objectMap["annotations"] = amstd.Annotations - } - if amstd.Folder != nil { - objectMap["folder"] = amstd.Folder - } - if amstd.Type != "" { - objectMap["type"] = amstd.Type - } - for k, v := range amstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return &amstd, true -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureMySQLTableDataset. -func (amstd AzureMySQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &amstd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureMySQLTableDataset struct. -func (amstd *AzureMySQLTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureMySQLTableDatasetTypeProperties AzureMySQLTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureMySQLTableDatasetTypeProperties) - if err != nil { - return err - } - amstd.AzureMySQLTableDatasetTypeProperties = &azureMySQLTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if amstd.AdditionalProperties == nil { - amstd.AdditionalProperties = make(map[string]interface{}) - } - amstd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - amstd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - amstd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - amstd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - amstd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - amstd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - amstd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - amstd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - amstd.Type = typeVar - } - } - } - - return nil -} - -// AzureMySQLTableDatasetTypeProperties azure MySQL database dataset properties. -type AzureMySQLTableDatasetTypeProperties struct { - // TableName - The Azure MySQL database table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` - // Table - The name of Azure MySQL database table. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// AzurePostgreSQLLinkedService azure PostgreSQL linked service. -type AzurePostgreSQLLinkedService struct { - // AzurePostgreSQLLinkedServiceTypeProperties - Azure PostgreSQL linked service properties. - *AzurePostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) MarshalJSON() ([]byte, error) { - apsls.Type = TypeBasicLinkedServiceTypeAzurePostgreSQL - objectMap := make(map[string]interface{}) - if apsls.AzurePostgreSQLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = apsls.AzurePostgreSQLLinkedServiceTypeProperties - } - if apsls.ConnectVia != nil { - objectMap["connectVia"] = apsls.ConnectVia - } - if apsls.Description != nil { - objectMap["description"] = apsls.Description - } - if apsls.Parameters != nil { - objectMap["parameters"] = apsls.Parameters - } - if apsls.Annotations != nil { - objectMap["annotations"] = apsls.Annotations - } - if apsls.Type != "" { - objectMap["type"] = apsls.Type - } - for k, v := range apsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return &apsls, true -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzurePostgreSQLLinkedService. -func (apsls AzurePostgreSQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &apsls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLLinkedService struct. -func (apsls *AzurePostgreSQLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azurePostgreSQLLinkedServiceTypeProperties AzurePostgreSQLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azurePostgreSQLLinkedServiceTypeProperties) - if err != nil { - return err - } - apsls.AzurePostgreSQLLinkedServiceTypeProperties = &azurePostgreSQLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if apsls.AdditionalProperties == nil { - apsls.AdditionalProperties = make(map[string]interface{}) - } - apsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - apsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - apsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - apsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - apsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - apsls.Type = typeVar - } - } - } - - return nil -} - -// AzurePostgreSQLLinkedServiceTypeProperties azure PostgreSQL linked service properties. -type AzurePostgreSQLLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// AzurePostgreSQLSink a copy activity Azure PostgreSQL sink. -type AzurePostgreSQLSink struct { - // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) MarshalJSON() ([]byte, error) { - apss.Type = TypeBasicCopySinkTypeAzurePostgreSQLSink - objectMap := make(map[string]interface{}) - if apss.PreCopyScript != nil { - objectMap["preCopyScript"] = apss.PreCopyScript - } - if apss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = apss.WriteBatchSize - } - if apss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = apss.WriteBatchTimeout - } - if apss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = apss.SinkRetryCount - } - if apss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = apss.SinkRetryWait - } - if apss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = apss.MaxConcurrentConnections - } - if apss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = apss.DisableMetricsCollection - } - if apss.Type != "" { - objectMap["type"] = apss.Type - } - for k, v := range apss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return &apss, true -} - -// AsRestSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzurePostgreSQLSink. -func (apss AzurePostgreSQLSink) AsBasicCopySink() (BasicCopySink, bool) { - return &apss, true -} - -// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLSink struct. -func (apss *AzurePostgreSQLSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - apss.PreCopyScript = preCopyScript - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if apss.AdditionalProperties == nil { - apss.AdditionalProperties = make(map[string]interface{}) - } - apss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - apss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - apss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - apss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - apss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - apss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - apss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - apss.Type = typeVar - } - } - } - - return nil -} - -// AzurePostgreSQLSource a copy activity Azure PostgreSQL source. -type AzurePostgreSQLSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) MarshalJSON() ([]byte, error) { - apss.Type = TypeBasicCopySourceTypeAzurePostgreSQLSource - objectMap := make(map[string]interface{}) - if apss.Query != nil { - objectMap["query"] = apss.Query - } - if apss.QueryTimeout != nil { - objectMap["queryTimeout"] = apss.QueryTimeout - } - if apss.AdditionalColumns != nil { - objectMap["additionalColumns"] = apss.AdditionalColumns - } - if apss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = apss.SourceRetryCount - } - if apss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = apss.SourceRetryWait - } - if apss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = apss.MaxConcurrentConnections - } - if apss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = apss.DisableMetricsCollection - } - if apss.Type != "" { - objectMap["type"] = apss.Type - } - for k, v := range apss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return &apss, true -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &apss, true -} - -// AsBinarySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzurePostgreSQLSource. -func (apss AzurePostgreSQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &apss, true -} - -// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLSource struct. -func (apss *AzurePostgreSQLSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - apss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - apss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - apss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if apss.AdditionalProperties == nil { - apss.AdditionalProperties = make(map[string]interface{}) - } - apss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - apss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - apss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - apss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - apss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - apss.Type = typeVar - } - } - } - - return nil -} - -// AzurePostgreSQLTableDataset azure PostgreSQL dataset. -type AzurePostgreSQLTableDataset struct { - // AzurePostgreSQLTableDatasetTypeProperties - Properties specific to this dataset type. - *AzurePostgreSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) MarshalJSON() ([]byte, error) { - apstd.Type = TypeBasicDatasetTypeAzurePostgreSQLTable - objectMap := make(map[string]interface{}) - if apstd.AzurePostgreSQLTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = apstd.AzurePostgreSQLTableDatasetTypeProperties - } - if apstd.Description != nil { - objectMap["description"] = apstd.Description - } - if apstd.Structure != nil { - objectMap["structure"] = apstd.Structure - } - if apstd.Schema != nil { - objectMap["schema"] = apstd.Schema - } - if apstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = apstd.LinkedServiceName - } - if apstd.Parameters != nil { - objectMap["parameters"] = apstd.Parameters - } - if apstd.Annotations != nil { - objectMap["annotations"] = apstd.Annotations - } - if apstd.Folder != nil { - objectMap["folder"] = apstd.Folder - } - if apstd.Type != "" { - objectMap["type"] = apstd.Type - } - for k, v := range apstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return &apstd, true -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzurePostgreSQLTableDataset. -func (apstd AzurePostgreSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &apstd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzurePostgreSQLTableDataset struct. -func (apstd *AzurePostgreSQLTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azurePostgreSQLTableDatasetTypeProperties AzurePostgreSQLTableDatasetTypeProperties - err = json.Unmarshal(*v, &azurePostgreSQLTableDatasetTypeProperties) - if err != nil { - return err - } - apstd.AzurePostgreSQLTableDatasetTypeProperties = &azurePostgreSQLTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if apstd.AdditionalProperties == nil { - apstd.AdditionalProperties = make(map[string]interface{}) - } - apstd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - apstd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - apstd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - apstd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - apstd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - apstd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - apstd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - apstd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - apstd.Type = typeVar - } - } - } - - return nil -} - -// AzurePostgreSQLTableDatasetTypeProperties azure PostgreSQL dataset properties. -type AzurePostgreSQLTableDatasetTypeProperties struct { - // TableName - 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"` - // Table - The table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// AzureQueueSink a copy activity Azure Queue sink. -type AzureQueueSink struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureQueueSink. -func (aqs AzureQueueSink) MarshalJSON() ([]byte, error) { - aqs.Type = TypeBasicCopySinkTypeAzureQueueSink - objectMap := make(map[string]interface{}) - if aqs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = aqs.WriteBatchSize - } - if aqs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = aqs.WriteBatchTimeout - } - if aqs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = aqs.SinkRetryCount - } - if aqs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = aqs.SinkRetryWait - } - if aqs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = aqs.MaxConcurrentConnections - } - if aqs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = aqs.DisableMetricsCollection - } - if aqs.Type != "" { - objectMap["type"] = aqs.Type - } - for k, v := range aqs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return &aqs, true -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureQueueSink. -func (aqs AzureQueueSink) AsBasicCopySink() (BasicCopySink, bool) { - return &aqs, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureQueueSink struct. -func (aqs *AzureQueueSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if aqs.AdditionalProperties == nil { - aqs.AdditionalProperties = make(map[string]interface{}) - } - aqs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - aqs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - aqs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - aqs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - aqs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - aqs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - aqs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - aqs.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLDWLinkedService azure SQL Data Warehouse linked service. -type AzureSQLDWLinkedService struct { - // AzureSQLDWLinkedServiceTypeProperties - Azure SQL Data Warehouse linked service properties. - *AzureSQLDWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) MarshalJSON() ([]byte, error) { - asdls.Type = TypeBasicLinkedServiceTypeAzureSQLDW - objectMap := make(map[string]interface{}) - if asdls.AzureSQLDWLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asdls.AzureSQLDWLinkedServiceTypeProperties - } - if asdls.ConnectVia != nil { - objectMap["connectVia"] = asdls.ConnectVia - } - if asdls.Description != nil { - objectMap["description"] = asdls.Description - } - if asdls.Parameters != nil { - objectMap["parameters"] = asdls.Parameters - } - if asdls.Annotations != nil { - objectMap["annotations"] = asdls.Annotations - } - if asdls.Type != "" { - objectMap["type"] = asdls.Type - } - for k, v := range asdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return &asdls, true -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLDWLinkedService. -func (asdls AzureSQLDWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asdls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedService struct. -func (asdls *AzureSQLDWLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLDWLinkedServiceTypeProperties AzureSQLDWLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSQLDWLinkedServiceTypeProperties) - if err != nil { - return err - } - asdls.AzureSQLDWLinkedServiceTypeProperties = &azureSQLDWLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asdls.AdditionalProperties == nil { - asdls.AdditionalProperties = make(map[string]interface{}) - } - asdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asdls.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLDWLinkedServiceTypeProperties azure SQL Data Warehouse linked service properties. -type AzureSQLDWLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Data Warehouse. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // AzureCloudType - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWLinkedServiceTypeProperties struct. -func (asdlstp *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - asdlstp.ConnectionString = connectionString - } - case "password": - if v != nil { - var password AzureKeyVaultSecretReference - err = json.Unmarshal(*v, &password) - if err != nil { - return err - } - asdlstp.Password = &password - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - asdlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - asdlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - asdlstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - asdlstp.AzureCloudType = azureCloudType - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - asdlstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - asdlstp.Credential = &credential - } - } - } - - return nil -} - -// AzureSQLDWTableDataset the Azure SQL Data Warehouse dataset. -type AzureSQLDWTableDataset struct { - // AzureSQLDWTableDatasetTypeProperties - Azure SQL Data Warehouse dataset properties. - *AzureSQLDWTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) MarshalJSON() ([]byte, error) { - asdtd.Type = TypeBasicDatasetTypeAzureSQLDWTable - objectMap := make(map[string]interface{}) - if asdtd.AzureSQLDWTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = asdtd.AzureSQLDWTableDatasetTypeProperties - } - if asdtd.Description != nil { - objectMap["description"] = asdtd.Description - } - if asdtd.Structure != nil { - objectMap["structure"] = asdtd.Structure - } - if asdtd.Schema != nil { - objectMap["schema"] = asdtd.Schema - } - if asdtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asdtd.LinkedServiceName - } - if asdtd.Parameters != nil { - objectMap["parameters"] = asdtd.Parameters - } - if asdtd.Annotations != nil { - objectMap["annotations"] = asdtd.Annotations - } - if asdtd.Folder != nil { - objectMap["folder"] = asdtd.Folder - } - if asdtd.Type != "" { - objectMap["type"] = asdtd.Type - } - for k, v := range asdtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return &asdtd, true -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureSQLDWTableDataset. -func (asdtd AzureSQLDWTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &asdtd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLDWTableDataset struct. -func (asdtd *AzureSQLDWTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLDWTableDatasetTypeProperties AzureSQLDWTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureSQLDWTableDatasetTypeProperties) - if err != nil { - return err - } - asdtd.AzureSQLDWTableDatasetTypeProperties = &azureSQLDWTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asdtd.AdditionalProperties == nil { - asdtd.AdditionalProperties = make(map[string]interface{}) - } - asdtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asdtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - asdtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - asdtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - asdtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asdtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asdtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - asdtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asdtd.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLDWTableDatasetTypeProperties azure SQL Data Warehouse dataset properties. -type AzureSQLDWTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// AzureSQLDatabaseLinkedService microsoft Azure SQL Database linked service. -type AzureSQLDatabaseLinkedService struct { - // AzureSQLDatabaseLinkedServiceTypeProperties - Azure SQL Database linked service properties. - *AzureSQLDatabaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) MarshalJSON() ([]byte, error) { - asdls.Type = TypeBasicLinkedServiceTypeAzureSQLDatabase - objectMap := make(map[string]interface{}) - if asdls.AzureSQLDatabaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asdls.AzureSQLDatabaseLinkedServiceTypeProperties - } - if asdls.ConnectVia != nil { - objectMap["connectVia"] = asdls.ConnectVia - } - if asdls.Description != nil { - objectMap["description"] = asdls.Description - } - if asdls.Parameters != nil { - objectMap["parameters"] = asdls.Parameters - } - if asdls.Annotations != nil { - objectMap["annotations"] = asdls.Annotations - } - if asdls.Type != "" { - objectMap["type"] = asdls.Type - } - for k, v := range asdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return &asdls, true -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLDatabaseLinkedService. -func (asdls AzureSQLDatabaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asdls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLDatabaseLinkedService struct. -func (asdls *AzureSQLDatabaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLDatabaseLinkedServiceTypeProperties AzureSQLDatabaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSQLDatabaseLinkedServiceTypeProperties) - if err != nil { - return err - } - asdls.AzureSQLDatabaseLinkedServiceTypeProperties = &azureSQLDatabaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asdls.AdditionalProperties == nil { - asdls.AdditionalProperties = make(map[string]interface{}) - } - asdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asdls.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLDatabaseLinkedServiceTypeProperties azure SQL Database linked service properties. -type AzureSQLDatabaseLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Database. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // AzureCloudType - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // AlwaysEncryptedSettings - Sql always encrypted properties. - AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLDatabaseLinkedServiceTypeProperties struct. -func (asdlstp *AzureSQLDatabaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - asdlstp.ConnectionString = connectionString - } - case "password": - if v != nil { - var password AzureKeyVaultSecretReference - err = json.Unmarshal(*v, &password) - if err != nil { - return err - } - asdlstp.Password = &password - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - asdlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - asdlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - asdlstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - asdlstp.AzureCloudType = azureCloudType - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - asdlstp.EncryptedCredential = &encryptedCredential - } - case "alwaysEncryptedSettings": - if v != nil { - var alwaysEncryptedSettings SQLAlwaysEncryptedProperties - err = json.Unmarshal(*v, &alwaysEncryptedSettings) - if err != nil { - return err - } - asdlstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - asdlstp.Credential = &credential - } - } - } - - return nil -} - -// AzureSQLMILinkedService azure SQL Managed Instance linked service. -type AzureSQLMILinkedService struct { - // AzureSQLMILinkedServiceTypeProperties - Azure SQL Managed Instance linked service properties. - *AzureSQLMILinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) MarshalJSON() ([]byte, error) { - asmls.Type = TypeBasicLinkedServiceTypeAzureSQLMI - objectMap := make(map[string]interface{}) - if asmls.AzureSQLMILinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asmls.AzureSQLMILinkedServiceTypeProperties - } - if asmls.ConnectVia != nil { - objectMap["connectVia"] = asmls.ConnectVia - } - if asmls.Description != nil { - objectMap["description"] = asmls.Description - } - if asmls.Parameters != nil { - objectMap["parameters"] = asmls.Parameters - } - if asmls.Annotations != nil { - objectMap["annotations"] = asmls.Annotations - } - if asmls.Type != "" { - objectMap["type"] = asmls.Type - } - for k, v := range asmls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return &asmls, true -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSQLMILinkedService. -func (asmls AzureSQLMILinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asmls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLMILinkedService struct. -func (asmls *AzureSQLMILinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLMILinkedServiceTypeProperties AzureSQLMILinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSQLMILinkedServiceTypeProperties) - if err != nil { - return err - } - asmls.AzureSQLMILinkedServiceTypeProperties = &azureSQLMILinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asmls.AdditionalProperties == nil { - asmls.AdditionalProperties = make(map[string]interface{}) - } - asmls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asmls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asmls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asmls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asmls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asmls.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLMILinkedServiceTypeProperties azure SQL Managed Instance linked service properties. -type AzureSQLMILinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure SQL Managed Instance. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // AzureCloudType - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // AlwaysEncryptedSettings - Sql always encrypted properties. - AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLMILinkedServiceTypeProperties struct. -func (asmlstp *AzureSQLMILinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - asmlstp.ConnectionString = connectionString - } - case "password": - if v != nil { - var password AzureKeyVaultSecretReference - err = json.Unmarshal(*v, &password) - if err != nil { - return err - } - asmlstp.Password = &password - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - asmlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - asmlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - asmlstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - asmlstp.AzureCloudType = azureCloudType - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - asmlstp.EncryptedCredential = &encryptedCredential - } - case "alwaysEncryptedSettings": - if v != nil { - var alwaysEncryptedSettings SQLAlwaysEncryptedProperties - err = json.Unmarshal(*v, &alwaysEncryptedSettings) - if err != nil { - return err - } - asmlstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - asmlstp.Credential = &credential - } - } - } - - return nil -} - -// AzureSQLMITableDataset the Azure SQL Managed Instance dataset. -type AzureSQLMITableDataset struct { - // AzureSQLMITableDatasetTypeProperties - Azure SQL Managed Instance dataset properties. - *AzureSQLMITableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) MarshalJSON() ([]byte, error) { - asmtd.Type = TypeBasicDatasetTypeAzureSQLMITable - objectMap := make(map[string]interface{}) - if asmtd.AzureSQLMITableDatasetTypeProperties != nil { - objectMap["typeProperties"] = asmtd.AzureSQLMITableDatasetTypeProperties - } - if asmtd.Description != nil { - objectMap["description"] = asmtd.Description - } - if asmtd.Structure != nil { - objectMap["structure"] = asmtd.Structure - } - if asmtd.Schema != nil { - objectMap["schema"] = asmtd.Schema - } - if asmtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asmtd.LinkedServiceName - } - if asmtd.Parameters != nil { - objectMap["parameters"] = asmtd.Parameters - } - if asmtd.Annotations != nil { - objectMap["annotations"] = asmtd.Annotations - } - if asmtd.Folder != nil { - objectMap["folder"] = asmtd.Folder - } - if asmtd.Type != "" { - objectMap["type"] = asmtd.Type - } - for k, v := range asmtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return &asmtd, true -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureSQLMITableDataset. -func (asmtd AzureSQLMITableDataset) AsBasicDataset() (BasicDataset, bool) { - return &asmtd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLMITableDataset struct. -func (asmtd *AzureSQLMITableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLMITableDatasetTypeProperties AzureSQLMITableDatasetTypeProperties - err = json.Unmarshal(*v, &azureSQLMITableDatasetTypeProperties) - if err != nil { - return err - } - asmtd.AzureSQLMITableDatasetTypeProperties = &azureSQLMITableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asmtd.AdditionalProperties == nil { - asmtd.AdditionalProperties = make(map[string]interface{}) - } - asmtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asmtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - asmtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - asmtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - asmtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asmtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asmtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - asmtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asmtd.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLMITableDatasetTypeProperties azure SQL Managed Instance dataset properties. -type AzureSQLMITableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// AzureSQLSink a copy activity Azure SQL sink. -type AzureSQLSink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` - // TableOption - 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"` - // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` - // WriteBehavior - Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` - // UpsertSettings - SQL upsert settings. - UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSQLSink. -func (ass AzureSQLSink) MarshalJSON() ([]byte, error) { - ass.Type = TypeBasicCopySinkTypeAzureSQLSink - objectMap := make(map[string]interface{}) - if ass.SQLWriterStoredProcedureName != nil { - objectMap["sqlWriterStoredProcedureName"] = ass.SQLWriterStoredProcedureName - } - if ass.SQLWriterTableType != nil { - objectMap["sqlWriterTableType"] = ass.SQLWriterTableType - } - if ass.PreCopyScript != nil { - objectMap["preCopyScript"] = ass.PreCopyScript - } - if ass.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ass.StoredProcedureParameters - } - if ass.StoredProcedureTableTypeParameterName != nil { - objectMap["storedProcedureTableTypeParameterName"] = ass.StoredProcedureTableTypeParameterName - } - if ass.TableOption != nil { - objectMap["tableOption"] = ass.TableOption - } - if ass.SQLWriterUseTableLock != nil { - objectMap["sqlWriterUseTableLock"] = ass.SQLWriterUseTableLock - } - if ass.WriteBehavior != nil { - objectMap["writeBehavior"] = ass.WriteBehavior - } - if ass.UpsertSettings != nil { - objectMap["upsertSettings"] = ass.UpsertSettings - } - if ass.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ass.WriteBatchSize - } - if ass.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ass.WriteBatchTimeout - } - if ass.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ass.SinkRetryCount - } - if ass.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ass.SinkRetryWait - } - if ass.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections - } - if ass.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ass.DisableMetricsCollection - } - if ass.Type != "" { - objectMap["type"] = ass.Type - } - for k, v := range ass.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return &ass, true -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureSQLSink. -func (ass AzureSQLSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ass, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLSink struct. -func (ass *AzureSQLSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlWriterStoredProcedureName": - if v != nil { - var SQLWriterStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) - if err != nil { - return err - } - ass.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName - } - case "sqlWriterTableType": - if v != nil { - var SQLWriterTableType interface{} - err = json.Unmarshal(*v, &SQLWriterTableType) - if err != nil { - return err - } - ass.SQLWriterTableType = SQLWriterTableType - } - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - ass.PreCopyScript = preCopyScript - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ass.StoredProcedureParameters = storedProcedureParameters - } - case "storedProcedureTableTypeParameterName": - if v != nil { - var storedProcedureTableTypeParameterName interface{} - err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) - if err != nil { - return err - } - ass.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName - } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ass.TableOption = tableOption - } - case "sqlWriterUseTableLock": - if v != nil { - var SQLWriterUseTableLock interface{} - err = json.Unmarshal(*v, &SQLWriterUseTableLock) - if err != nil { - return err - } - ass.SQLWriterUseTableLock = SQLWriterUseTableLock - } - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - ass.WriteBehavior = writeBehavior - } - case "upsertSettings": - if v != nil { - var upsertSettings SQLUpsertSettings - err = json.Unmarshal(*v, &upsertSettings) - if err != nil { - return err - } - ass.UpsertSettings = &upsertSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ass.AdditionalProperties == nil { - ass.AdditionalProperties = make(map[string]interface{}) - } - ass.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ass.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ass.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ass.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ass.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ass.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ass.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ass.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLSource a copy activity Azure SQL source. -type AzureSQLSource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - 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"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // IsolationLevel - 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"` - // ProduceAdditionalTypes - Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSQLSource. -func (ass AzureSQLSource) MarshalJSON() ([]byte, error) { - ass.Type = TypeBasicCopySourceTypeAzureSQLSource - objectMap := make(map[string]interface{}) - if ass.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = ass.SQLReaderQuery - } - if ass.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = ass.SQLReaderStoredProcedureName - } - if ass.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ass.StoredProcedureParameters - } - if ass.IsolationLevel != nil { - objectMap["isolationLevel"] = ass.IsolationLevel - } - if ass.ProduceAdditionalTypes != nil { - objectMap["produceAdditionalTypes"] = ass.ProduceAdditionalTypes - } - if ass.PartitionOption != nil { - objectMap["partitionOption"] = ass.PartitionOption - } - if ass.PartitionSettings != nil { - objectMap["partitionSettings"] = ass.PartitionSettings - } - if ass.QueryTimeout != nil { - objectMap["queryTimeout"] = ass.QueryTimeout - } - if ass.AdditionalColumns != nil { - objectMap["additionalColumns"] = ass.AdditionalColumns - } - if ass.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ass.SourceRetryCount - } - if ass.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ass.SourceRetryWait - } - if ass.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ass.MaxConcurrentConnections - } - if ass.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ass.DisableMetricsCollection - } - if ass.Type != "" { - objectMap["type"] = ass.Type - } - for k, v := range ass.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return &ass, true -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ass, true -} - -// AsBinarySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzureSQLSource. -func (ass AzureSQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ass, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLSource struct. -func (ass *AzureSQLSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - ass.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - ass.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ass.StoredProcedureParameters = storedProcedureParameters - } - case "isolationLevel": - if v != nil { - var isolationLevel interface{} - err = json.Unmarshal(*v, &isolationLevel) - if err != nil { - return err - } - ass.IsolationLevel = isolationLevel - } - case "produceAdditionalTypes": - if v != nil { - var produceAdditionalTypes interface{} - err = json.Unmarshal(*v, &produceAdditionalTypes) - if err != nil { - return err - } - ass.ProduceAdditionalTypes = produceAdditionalTypes - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - ass.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - ass.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ass.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ass.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ass.AdditionalProperties == nil { - ass.AdditionalProperties = make(map[string]interface{}) - } - ass.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ass.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ass.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ass.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ass.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ass.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLTableDataset the Azure SQL Server database dataset. -type AzureSQLTableDataset struct { - // AzureSQLTableDatasetTypeProperties - Azure SQL dataset properties. - *AzureSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) MarshalJSON() ([]byte, error) { - astd.Type = TypeBasicDatasetTypeAzureSQLTable - objectMap := make(map[string]interface{}) - if astd.AzureSQLTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = astd.AzureSQLTableDatasetTypeProperties - } - if astd.Description != nil { - objectMap["description"] = astd.Description - } - if astd.Structure != nil { - objectMap["structure"] = astd.Structure - } - if astd.Schema != nil { - objectMap["schema"] = astd.Schema - } - if astd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = astd.LinkedServiceName - } - if astd.Parameters != nil { - objectMap["parameters"] = astd.Parameters - } - if astd.Annotations != nil { - objectMap["annotations"] = astd.Annotations - } - if astd.Folder != nil { - objectMap["folder"] = astd.Folder - } - if astd.Type != "" { - objectMap["type"] = astd.Type - } - for k, v := range astd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return &astd, true -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureSQLTableDataset. -func (astd AzureSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &astd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSQLTableDataset struct. -func (astd *AzureSQLTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSQLTableDatasetTypeProperties AzureSQLTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureSQLTableDatasetTypeProperties) - if err != nil { - return err - } - astd.AzureSQLTableDatasetTypeProperties = &azureSQLTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if astd.AdditionalProperties == nil { - astd.AdditionalProperties = make(map[string]interface{}) - } - astd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - astd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - astd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - astd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - astd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - astd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - astd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - astd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - astd.Type = typeVar - } - } - } - - return nil -} - -// AzureSQLTableDatasetTypeProperties azure SQL dataset properties. -type AzureSQLTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the Azure SQL database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the Azure SQL database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// AzureSearchIndexDataset the Azure Search Index. -type AzureSearchIndexDataset struct { - // AzureSearchIndexDatasetTypeProperties - Properties specific to this dataset type. - *AzureSearchIndexDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { - asid.Type = TypeBasicDatasetTypeAzureSearchIndex - objectMap := make(map[string]interface{}) - if asid.AzureSearchIndexDatasetTypeProperties != nil { - objectMap["typeProperties"] = asid.AzureSearchIndexDatasetTypeProperties - } - if asid.Description != nil { - objectMap["description"] = asid.Description - } - if asid.Structure != nil { - objectMap["structure"] = asid.Structure - } - if asid.Schema != nil { - objectMap["schema"] = asid.Schema - } - if asid.LinkedServiceName != nil { - objectMap["linkedServiceName"] = asid.LinkedServiceName - } - if asid.Parameters != nil { - objectMap["parameters"] = asid.Parameters - } - if asid.Annotations != nil { - objectMap["annotations"] = asid.Annotations - } - if asid.Folder != nil { - objectMap["folder"] = asid.Folder - } - if asid.Type != "" { - objectMap["type"] = asid.Type - } - for k, v := range asid.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return &asid, true -} - -// AsWebTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureSearchIndexDataset. -func (asid AzureSearchIndexDataset) AsBasicDataset() (BasicDataset, bool) { - return &asid, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexDataset struct. -func (asid *AzureSearchIndexDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSearchIndexDatasetTypeProperties AzureSearchIndexDatasetTypeProperties - err = json.Unmarshal(*v, &azureSearchIndexDatasetTypeProperties) - if err != nil { - return err - } - asid.AzureSearchIndexDatasetTypeProperties = &azureSearchIndexDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asid.AdditionalProperties == nil { - asid.AdditionalProperties = make(map[string]interface{}) - } - asid.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asid.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - asid.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - asid.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - asid.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asid.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asid.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - asid.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asid.Type = typeVar - } - } - } - - return nil -} - -// AzureSearchIndexDatasetTypeProperties properties specific to this dataset type. -type AzureSearchIndexDatasetTypeProperties struct { - // IndexName - The name of the Azure Search Index. Type: string (or Expression with resultType string). - IndexName interface{} `json:"indexName,omitempty"` -} - -// AzureSearchIndexSink a copy activity Azure Search Index sink. -type AzureSearchIndexSink struct { - // WriteBehavior - Specify the write behavior when upserting documents into Azure Search Index. Possible values include: 'AzureSearchIndexWriteBehaviorTypeMerge', 'AzureSearchIndexWriteBehaviorTypeUpload' - WriteBehavior AzureSearchIndexWriteBehaviorType `json:"writeBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) MarshalJSON() ([]byte, error) { - asis.Type = TypeBasicCopySinkTypeAzureSearchIndexSink - objectMap := make(map[string]interface{}) - if asis.WriteBehavior != "" { - objectMap["writeBehavior"] = asis.WriteBehavior - } - if asis.WriteBatchSize != nil { - objectMap["writeBatchSize"] = asis.WriteBatchSize - } - if asis.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = asis.WriteBatchTimeout - } - if asis.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = asis.SinkRetryCount - } - if asis.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = asis.SinkRetryWait - } - if asis.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = asis.MaxConcurrentConnections - } - if asis.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = asis.DisableMetricsCollection - } - if asis.Type != "" { - objectMap["type"] = asis.Type - } - for k, v := range asis.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return &asis, true -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureSearchIndexSink. -func (asis AzureSearchIndexSink) AsBasicCopySink() (BasicCopySink, bool) { - return &asis, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSearchIndexSink struct. -func (asis *AzureSearchIndexSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior AzureSearchIndexWriteBehaviorType - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - asis.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asis.AdditionalProperties == nil { - asis.AdditionalProperties = make(map[string]interface{}) - } - asis.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - asis.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - asis.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - asis.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - asis.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - asis.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - asis.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asis.Type = typeVar - } - } - } - - return nil -} - -// AzureSearchLinkedService linked service for Windows Azure Search Service. -type AzureSearchLinkedService struct { - // AzureSearchLinkedServiceTypeProperties - Windows Azure Search Service linked service properties. - *AzureSearchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) MarshalJSON() ([]byte, error) { - asls.Type = TypeBasicLinkedServiceTypeAzureSearch - objectMap := make(map[string]interface{}) - if asls.AzureSearchLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asls.AzureSearchLinkedServiceTypeProperties - } - if asls.ConnectVia != nil { - objectMap["connectVia"] = asls.ConnectVia - } - if asls.Description != nil { - objectMap["description"] = asls.Description - } - if asls.Parameters != nil { - objectMap["parameters"] = asls.Parameters - } - if asls.Annotations != nil { - objectMap["annotations"] = asls.Annotations - } - if asls.Type != "" { - objectMap["type"] = asls.Type - } - for k, v := range asls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return &asls, true -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSearchLinkedService. -func (asls AzureSearchLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedService struct. -func (asls *AzureSearchLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSearchLinkedServiceTypeProperties AzureSearchLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSearchLinkedServiceTypeProperties) - if err != nil { - return err - } - asls.AzureSearchLinkedServiceTypeProperties = &azureSearchLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asls.AdditionalProperties == nil { - asls.AdditionalProperties = make(map[string]interface{}) - } - asls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asls.Type = typeVar - } - } - } - - return nil -} - -// AzureSearchLinkedServiceTypeProperties windows Azure Search Service linked service properties. -type AzureSearchLinkedServiceTypeProperties struct { - // URL - URL for Azure Search service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // Key - Admin Key for Azure Search service - Key BasicSecretBase `json:"key,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for AzureSearchLinkedServiceTypeProperties struct. -func (aslstp *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - aslstp.URL = URL - } - case "key": - if v != nil { - key, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - aslstp.Key = key - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - aslstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// AzureStorageLinkedService the storage account linked service. -type AzureStorageLinkedService struct { - // AzureStorageLinkedServiceTypeProperties - Azure Storage linked service properties. - *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) MarshalJSON() ([]byte, error) { - asls.Type = TypeBasicLinkedServiceTypeAzureStorage - objectMap := make(map[string]interface{}) - if asls.AzureStorageLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asls.AzureStorageLinkedServiceTypeProperties - } - if asls.ConnectVia != nil { - objectMap["connectVia"] = asls.ConnectVia - } - if asls.Description != nil { - objectMap["description"] = asls.Description - } - if asls.Parameters != nil { - objectMap["parameters"] = asls.Parameters - } - if asls.Annotations != nil { - objectMap["annotations"] = asls.Annotations - } - if asls.Type != "" { - objectMap["type"] = asls.Type - } - for k, v := range asls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return &asls, true -} - -// AsLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureStorageLinkedService. -func (asls AzureStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureStorageLinkedService struct. -func (asls *AzureStorageLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureStorageLinkedServiceTypeProperties AzureStorageLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureStorageLinkedServiceTypeProperties) - if err != nil { - return err - } - asls.AzureStorageLinkedServiceTypeProperties = &azureStorageLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asls.AdditionalProperties == nil { - asls.AdditionalProperties = make(map[string]interface{}) - } - asls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asls.Type = typeVar - } - } - } - - return nil -} - -// AzureStorageLinkedServiceTypeProperties azure Storage linked service properties. -type AzureStorageLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // AccountKey - The Azure key vault secret reference of accountKey in connection string. - AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` - // SasURI - SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` - // SasToken - The Azure key vault secret reference of sasToken in sas uri. - SasToken *AzureKeyVaultSecretReference `json:"sasToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// AzureSynapseArtifactsLinkedService azure Synapse Analytics (Artifacts) linked service. -type AzureSynapseArtifactsLinkedService struct { - // AzureSynapseArtifactsLinkedServiceTypeProperties - Azure Synapse Analytics (Artifacts) linked service properties. - *AzureSynapseArtifactsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) MarshalJSON() ([]byte, error) { - asals.Type = TypeBasicLinkedServiceTypeAzureSynapseArtifacts - objectMap := make(map[string]interface{}) - if asals.AzureSynapseArtifactsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = asals.AzureSynapseArtifactsLinkedServiceTypeProperties - } - if asals.ConnectVia != nil { - objectMap["connectVia"] = asals.ConnectVia - } - if asals.Description != nil { - objectMap["description"] = asals.Description - } - if asals.Parameters != nil { - objectMap["parameters"] = asals.Parameters - } - if asals.Annotations != nil { - objectMap["annotations"] = asals.Annotations - } - if asals.Type != "" { - objectMap["type"] = asals.Type - } - for k, v := range asals.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return &asals, true -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureSynapseArtifactsLinkedService. -func (asals AzureSynapseArtifactsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &asals, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureSynapseArtifactsLinkedService struct. -func (asals *AzureSynapseArtifactsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureSynapseArtifactsLinkedServiceTypeProperties AzureSynapseArtifactsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureSynapseArtifactsLinkedServiceTypeProperties) - if err != nil { - return err - } - asals.AzureSynapseArtifactsLinkedServiceTypeProperties = &azureSynapseArtifactsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if asals.AdditionalProperties == nil { - asals.AdditionalProperties = make(map[string]interface{}) - } - asals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - asals.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - asals.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - asals.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - asals.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - asals.Type = typeVar - } - } - } - - return nil -} - -// AzureSynapseArtifactsLinkedServiceTypeProperties azure Synapse Analytics (Artifacts) linked service -// properties. -type AzureSynapseArtifactsLinkedServiceTypeProperties struct { - // Endpoint - https://.dev.azuresynapse.net, Azure Synapse Analytics workspace URL. Type: string (or Expression with resultType string). - Endpoint interface{} `json:"endpoint,omitempty"` - // Authentication - 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"` - // WorkspaceResourceID - 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 interface{} `json:"workspaceResourceId,omitempty"` -} - -// AzureTableDataset the Azure Table storage dataset. -type AzureTableDataset struct { - // AzureTableDatasetTypeProperties - Azure Table dataset properties. - *AzureTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureTableDataset. -func (atd AzureTableDataset) MarshalJSON() ([]byte, error) { - atd.Type = TypeBasicDatasetTypeAzureTable - objectMap := make(map[string]interface{}) - if atd.AzureTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = atd.AzureTableDatasetTypeProperties - } - if atd.Description != nil { - objectMap["description"] = atd.Description - } - if atd.Structure != nil { - objectMap["structure"] = atd.Structure - } - if atd.Schema != nil { - objectMap["schema"] = atd.Schema - } - if atd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = atd.LinkedServiceName - } - if atd.Parameters != nil { - objectMap["parameters"] = atd.Parameters - } - if atd.Annotations != nil { - objectMap["annotations"] = atd.Annotations - } - if atd.Folder != nil { - objectMap["folder"] = atd.Folder - } - if atd.Type != "" { - objectMap["type"] = atd.Type - } - for k, v := range atd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return &atd, true -} - -// AsAzureBlobDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for AzureTableDataset. -func (atd AzureTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &atd, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureTableDataset struct. -func (atd *AzureTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureTableDatasetTypeProperties AzureTableDatasetTypeProperties - err = json.Unmarshal(*v, &azureTableDatasetTypeProperties) - if err != nil { - return err - } - atd.AzureTableDatasetTypeProperties = &azureTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if atd.AdditionalProperties == nil { - atd.AdditionalProperties = make(map[string]interface{}) - } - atd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - atd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - atd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - atd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - atd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - atd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - atd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - atd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - atd.Type = typeVar - } - } - } - - return nil -} - -// AzureTableDatasetTypeProperties azure Table dataset properties. -type AzureTableDatasetTypeProperties struct { - // TableName - The table name of the Azure Table storage. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// AzureTableSink a copy activity Azure Table sink. -type AzureTableSink struct { - // AzureTableDefaultPartitionKeyValue - Azure Table default partition key value. Type: string (or Expression with resultType string). - AzureTableDefaultPartitionKeyValue interface{} `json:"azureTableDefaultPartitionKeyValue,omitempty"` - // AzureTablePartitionKeyName - Azure Table partition key name. Type: string (or Expression with resultType string). - AzureTablePartitionKeyName interface{} `json:"azureTablePartitionKeyName,omitempty"` - // AzureTableRowKeyName - Azure Table row key name. Type: string (or Expression with resultType string). - AzureTableRowKeyName interface{} `json:"azureTableRowKeyName,omitempty"` - // AzureTableInsertType - Azure Table insert type. Type: string (or Expression with resultType string). - AzureTableInsertType interface{} `json:"azureTableInsertType,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureTableSink. -func (ats AzureTableSink) MarshalJSON() ([]byte, error) { - ats.Type = TypeBasicCopySinkTypeAzureTableSink - objectMap := make(map[string]interface{}) - if ats.AzureTableDefaultPartitionKeyValue != nil { - objectMap["azureTableDefaultPartitionKeyValue"] = ats.AzureTableDefaultPartitionKeyValue - } - if ats.AzureTablePartitionKeyName != nil { - objectMap["azureTablePartitionKeyName"] = ats.AzureTablePartitionKeyName - } - if ats.AzureTableRowKeyName != nil { - objectMap["azureTableRowKeyName"] = ats.AzureTableRowKeyName - } - if ats.AzureTableInsertType != nil { - objectMap["azureTableInsertType"] = ats.AzureTableInsertType - } - if ats.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ats.WriteBatchSize - } - if ats.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ats.WriteBatchTimeout - } - if ats.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ats.SinkRetryCount - } - if ats.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ats.SinkRetryWait - } - if ats.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ats.MaxConcurrentConnections - } - if ats.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ats.DisableMetricsCollection - } - if ats.Type != "" { - objectMap["type"] = ats.Type - } - for k, v := range ats.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureTableSink() (*AzureTableSink, bool) { - return &ats, true -} - -// AsAzureQueueSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for AzureTableSink. -func (ats AzureTableSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ats, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureTableSink struct. -func (ats *AzureTableSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "azureTableDefaultPartitionKeyValue": - if v != nil { - var azureTableDefaultPartitionKeyValue interface{} - err = json.Unmarshal(*v, &azureTableDefaultPartitionKeyValue) - if err != nil { - return err - } - ats.AzureTableDefaultPartitionKeyValue = azureTableDefaultPartitionKeyValue - } - case "azureTablePartitionKeyName": - if v != nil { - var azureTablePartitionKeyName interface{} - err = json.Unmarshal(*v, &azureTablePartitionKeyName) - if err != nil { - return err - } - ats.AzureTablePartitionKeyName = azureTablePartitionKeyName - } - case "azureTableRowKeyName": - if v != nil { - var azureTableRowKeyName interface{} - err = json.Unmarshal(*v, &azureTableRowKeyName) - if err != nil { - return err - } - ats.AzureTableRowKeyName = azureTableRowKeyName - } - case "azureTableInsertType": - if v != nil { - var azureTableInsertType interface{} - err = json.Unmarshal(*v, &azureTableInsertType) - if err != nil { - return err - } - ats.AzureTableInsertType = azureTableInsertType - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ats.AdditionalProperties == nil { - ats.AdditionalProperties = make(map[string]interface{}) - } - ats.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ats.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ats.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ats.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ats.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ats.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ats.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ats.Type = typeVar - } - } - } - - return nil -} - -// AzureTableSource a copy activity Azure Table source. -type AzureTableSource struct { - // AzureTableSourceQuery - Azure Table source query. Type: string (or Expression with resultType string). - AzureTableSourceQuery interface{} `json:"azureTableSourceQuery,omitempty"` - // AzureTableSourceIgnoreTableNotFound - Azure Table source ignore table not found. Type: boolean (or Expression with resultType boolean). - AzureTableSourceIgnoreTableNotFound interface{} `json:"azureTableSourceIgnoreTableNotFound,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureTableSource. -func (ats AzureTableSource) MarshalJSON() ([]byte, error) { - ats.Type = TypeBasicCopySourceTypeAzureTableSource - objectMap := make(map[string]interface{}) - if ats.AzureTableSourceQuery != nil { - objectMap["azureTableSourceQuery"] = ats.AzureTableSourceQuery - } - if ats.AzureTableSourceIgnoreTableNotFound != nil { - objectMap["azureTableSourceIgnoreTableNotFound"] = ats.AzureTableSourceIgnoreTableNotFound - } - if ats.QueryTimeout != nil { - objectMap["queryTimeout"] = ats.QueryTimeout - } - if ats.AdditionalColumns != nil { - objectMap["additionalColumns"] = ats.AdditionalColumns - } - if ats.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ats.SourceRetryCount - } - if ats.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ats.SourceRetryWait - } - if ats.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ats.MaxConcurrentConnections - } - if ats.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ats.DisableMetricsCollection - } - if ats.Type != "" { - objectMap["type"] = ats.Type - } - for k, v := range ats.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAzureTableSource() (*AzureTableSource, bool) { - return &ats, true -} - -// AsTabularSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ats, true -} - -// AsBinarySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for AzureTableSource. -func (ats AzureTableSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ats, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureTableSource struct. -func (ats *AzureTableSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "azureTableSourceQuery": - if v != nil { - var azureTableSourceQuery interface{} - err = json.Unmarshal(*v, &azureTableSourceQuery) - if err != nil { - return err - } - ats.AzureTableSourceQuery = azureTableSourceQuery - } - case "azureTableSourceIgnoreTableNotFound": - if v != nil { - var azureTableSourceIgnoreTableNotFound interface{} - err = json.Unmarshal(*v, &azureTableSourceIgnoreTableNotFound) - if err != nil { - return err - } - ats.AzureTableSourceIgnoreTableNotFound = azureTableSourceIgnoreTableNotFound - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ats.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ats.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ats.AdditionalProperties == nil { - ats.AdditionalProperties = make(map[string]interface{}) - } - ats.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ats.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ats.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ats.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ats.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ats.Type = typeVar - } - } - } - - return nil -} - -// AzureTableStorageLinkedService the azure table storage linked service. -type AzureTableStorageLinkedService struct { - // AzureStorageLinkedServiceTypeProperties - Azure Table Storage linked service properties. - *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) MarshalJSON() ([]byte, error) { - atsls.Type = TypeBasicLinkedServiceTypeAzureTableStorage - objectMap := make(map[string]interface{}) - if atsls.AzureStorageLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = atsls.AzureStorageLinkedServiceTypeProperties - } - if atsls.ConnectVia != nil { - objectMap["connectVia"] = atsls.ConnectVia - } - if atsls.Description != nil { - objectMap["description"] = atsls.Description - } - if atsls.Parameters != nil { - objectMap["parameters"] = atsls.Parameters - } - if atsls.Annotations != nil { - objectMap["annotations"] = atsls.Annotations - } - if atsls.Type != "" { - objectMap["type"] = atsls.Type - } - for k, v := range atsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return &atsls, true -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for AzureTableStorageLinkedService. -func (atsls AzureTableStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &atsls, true -} - -// UnmarshalJSON is the custom unmarshaler for AzureTableStorageLinkedService struct. -func (atsls *AzureTableStorageLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var azureStorageLinkedServiceTypeProperties AzureStorageLinkedServiceTypeProperties - err = json.Unmarshal(*v, &azureStorageLinkedServiceTypeProperties) - if err != nil { - return err - } - atsls.AzureStorageLinkedServiceTypeProperties = &azureStorageLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if atsls.AdditionalProperties == nil { - atsls.AdditionalProperties = make(map[string]interface{}) - } - atsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - atsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - atsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - atsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - atsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - atsls.Type = typeVar - } - } - } - - return nil -} - -// BigDataPoolParametrizationReference big data pool reference type. -type BigDataPoolParametrizationReference struct { - // Type - Big data pool reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference big data pool name. Type: string (or Expression with resultType string). - ReferenceName interface{} `json:"referenceName,omitempty"` -} - -// BinaryDataset binary dataset. -type BinaryDataset struct { - // BinaryDatasetTypeProperties - Binary dataset properties. - *BinaryDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BinaryDataset. -func (bd BinaryDataset) MarshalJSON() ([]byte, error) { - bd.Type = TypeBasicDatasetTypeBinary - objectMap := make(map[string]interface{}) - if bd.BinaryDatasetTypeProperties != nil { - objectMap["typeProperties"] = bd.BinaryDatasetTypeProperties - } - if bd.Description != nil { - objectMap["description"] = bd.Description - } - if bd.Structure != nil { - objectMap["structure"] = bd.Structure - } - if bd.Schema != nil { - objectMap["schema"] = bd.Schema - } - if bd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = bd.LinkedServiceName - } - if bd.Parameters != nil { - objectMap["parameters"] = bd.Parameters - } - if bd.Annotations != nil { - objectMap["annotations"] = bd.Annotations - } - if bd.Folder != nil { - objectMap["folder"] = bd.Folder - } - if bd.Type != "" { - objectMap["type"] = bd.Type - } - for k, v := range bd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return &bd, true -} - -// AsOrcDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for BinaryDataset. -func (bd BinaryDataset) AsBasicDataset() (BasicDataset, bool) { - return &bd, true -} - -// UnmarshalJSON is the custom unmarshaler for BinaryDataset struct. -func (bd *BinaryDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var binaryDatasetTypeProperties BinaryDatasetTypeProperties - err = json.Unmarshal(*v, &binaryDatasetTypeProperties) - if err != nil { - return err - } - bd.BinaryDatasetTypeProperties = &binaryDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if bd.AdditionalProperties == nil { - bd.AdditionalProperties = make(map[string]interface{}) - } - bd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - bd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - bd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - bd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - bd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - bd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - bd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - bd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bd.Type = typeVar - } - } - } - - return nil -} - -// BinaryDatasetTypeProperties binary dataset properties. -type BinaryDatasetTypeProperties struct { - // Location - The location of the Binary storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // Compression - The data compression method used for the binary dataset. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for BinaryDatasetTypeProperties struct. -func (bdtp *BinaryDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - bdtp.Location = location - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - bdtp.Compression = &compression - } - } - } - - return nil -} - -// BinaryReadSettings binary read settings. -type BinaryReadSettings struct { - // CompressionProperties - Compression settings. - CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BinaryReadSettings. -func (brs BinaryReadSettings) MarshalJSON() ([]byte, error) { - brs.Type = TypeBasicFormatReadSettingsTypeBinaryReadSettings - objectMap := make(map[string]interface{}) - objectMap["compressionProperties"] = brs.CompressionProperties - if brs.Type != "" { - objectMap["type"] = brs.Type - } - for k, v := range brs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. -func (brs BinaryReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { - return &brs, true -} - -// AsXMLReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. -func (brs BinaryReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { - return nil, false -} - -// AsJSONReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. -func (brs BinaryReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { - return nil, false -} - -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. -func (brs BinaryReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { - return nil, false -} - -// AsParquetReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. -func (brs BinaryReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { - return nil, false -} - -// AsFormatReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. -func (brs BinaryReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { - return nil, false -} - -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for BinaryReadSettings. -func (brs BinaryReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &brs, true -} - -// UnmarshalJSON is the custom unmarshaler for BinaryReadSettings struct. -func (brs *BinaryReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "compressionProperties": - if v != nil { - compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) - if err != nil { - return err - } - brs.CompressionProperties = compressionProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if brs.AdditionalProperties == nil { - brs.AdditionalProperties = make(map[string]interface{}) - } - brs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - brs.Type = typeVar - } - } - } - - return nil -} - -// BinarySink a copy activity Binary sink. -type BinarySink struct { - // StoreSettings - Binary store settings. - StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BinarySink. -func (bs BinarySink) MarshalJSON() ([]byte, error) { - bs.Type = TypeBasicCopySinkTypeBinarySink - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = bs.StoreSettings - if bs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = bs.WriteBatchSize - } - if bs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = bs.WriteBatchTimeout - } - if bs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = bs.SinkRetryCount - } - if bs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = bs.SinkRetryWait - } - if bs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections - } - if bs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection - } - if bs.Type != "" { - objectMap["type"] = bs.Type - } - for k, v := range bs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsBinarySink() (*BinarySink, bool) { - return &bs, true -} - -// AsParquetSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for BinarySink. -func (bs BinarySink) AsBasicCopySink() (BasicCopySink, bool) { - return &bs, true -} - -// UnmarshalJSON is the custom unmarshaler for BinarySink struct. -func (bs *BinarySink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreWriteSettings(*v) - if err != nil { - return err - } - bs.StoreSettings = storeSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if bs.AdditionalProperties == nil { - bs.AdditionalProperties = make(map[string]interface{}) - } - bs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - bs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - bs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - bs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - bs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - bs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - bs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bs.Type = typeVar - } - } - } - - return nil -} - -// BinarySource a copy activity Binary source. -type BinarySource struct { - // StoreSettings - Binary store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - Binary format settings. - FormatSettings *BinaryReadSettings `json:"formatSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BinarySource. -func (bs BinarySource) MarshalJSON() ([]byte, error) { - bs.Type = TypeBasicCopySourceTypeBinarySource - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = bs.StoreSettings - if bs.FormatSettings != nil { - objectMap["formatSettings"] = bs.FormatSettings - } - if bs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = bs.SourceRetryCount - } - if bs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = bs.SourceRetryWait - } - if bs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections - } - if bs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection - } - if bs.Type != "" { - objectMap["type"] = bs.Type - } - for k, v := range bs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsBinarySource() (*BinarySource, bool) { - return &bs, true -} - -// AsOrcSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for BinarySource. -func (bs BinarySource) AsBasicCopySource() (BasicCopySource, bool) { - return &bs, true -} - -// UnmarshalJSON is the custom unmarshaler for BinarySource struct. -func (bs *BinarySource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - bs.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings BinaryReadSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - bs.FormatSettings = &formatSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if bs.AdditionalProperties == nil { - bs.AdditionalProperties = make(map[string]interface{}) - } - bs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - bs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - bs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - bs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - bs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bs.Type = typeVar - } - } - } - - return nil -} - -// BlobEventsTrigger trigger that runs every time a Blob event occurs. -type BlobEventsTrigger struct { - // BlobEventsTriggerTypeProperties - Blob Events Trigger properties. - *BlobEventsTriggerTypeProperties `json:"typeProperties,omitempty"` - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BlobEventsTrigger. -func (bet BlobEventsTrigger) MarshalJSON() ([]byte, error) { - bet.Type = TypeBasicTriggerTypeBlobEventsTrigger - objectMap := make(map[string]interface{}) - if bet.BlobEventsTriggerTypeProperties != nil { - objectMap["typeProperties"] = bet.BlobEventsTriggerTypeProperties - } - if bet.Pipelines != nil { - objectMap["pipelines"] = bet.Pipelines - } - if bet.Description != nil { - objectMap["description"] = bet.Description - } - if bet.Annotations != nil { - objectMap["annotations"] = bet.Annotations - } - if bet.Type != "" { - objectMap["type"] = bet.Type - } - for k, v := range bet.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return nil, false -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return nil, false -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return nil, false -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return &bet, true -} - -// AsBlobTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// AsScheduleTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &bet, true -} - -// AsTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// AsBasicTrigger is the BasicTrigger implementation for BlobEventsTrigger. -func (bet BlobEventsTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &bet, true -} - -// UnmarshalJSON is the custom unmarshaler for BlobEventsTrigger struct. -func (bet *BlobEventsTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var blobEventsTriggerTypeProperties BlobEventsTriggerTypeProperties - err = json.Unmarshal(*v, &blobEventsTriggerTypeProperties) - if err != nil { - return err - } - bet.BlobEventsTriggerTypeProperties = &blobEventsTriggerTypeProperties - } - case "pipelines": - if v != nil { - var pipelines []TriggerPipelineReference - err = json.Unmarshal(*v, &pipelines) - if err != nil { - return err - } - bet.Pipelines = &pipelines - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if bet.AdditionalProperties == nil { - bet.AdditionalProperties = make(map[string]interface{}) - } - bet.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - bet.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - bet.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - bet.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bet.Type = typeVar - } - } - } - - return nil -} - -// BlobEventsTriggerTypeProperties blob Events Trigger properties. -type BlobEventsTriggerTypeProperties struct { - // BlobPathBeginsWith - 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"` - // BlobPathEndsWith - 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"` - // IgnoreEmptyBlobs - If set to true, blobs with zero bytes will be ignored. - IgnoreEmptyBlobs *bool `json:"ignoreEmptyBlobs,omitempty"` - // Events - The type of events that cause this trigger to fire. - Events *[]BlobEventTypes `json:"events,omitempty"` - // Scope - The ARM resource ID of the Storage Account. - Scope *string `json:"scope,omitempty"` -} - -// BlobSink a copy activity Azure Blob sink. -type BlobSink struct { - // BlobWriterOverwriteFiles - Blob writer overwrite files. Type: boolean (or Expression with resultType boolean). - BlobWriterOverwriteFiles interface{} `json:"blobWriterOverwriteFiles,omitempty"` - // BlobWriterDateTimeFormat - Blob writer date time format. Type: string (or Expression with resultType string). - BlobWriterDateTimeFormat interface{} `json:"blobWriterDateTimeFormat,omitempty"` - // BlobWriterAddHeader - Blob writer add header. Type: boolean (or Expression with resultType boolean). - BlobWriterAddHeader interface{} `json:"blobWriterAddHeader,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BlobSink. -func (bs BlobSink) MarshalJSON() ([]byte, error) { - bs.Type = TypeBasicCopySinkTypeBlobSink - objectMap := make(map[string]interface{}) - if bs.BlobWriterOverwriteFiles != nil { - objectMap["blobWriterOverwriteFiles"] = bs.BlobWriterOverwriteFiles - } - if bs.BlobWriterDateTimeFormat != nil { - objectMap["blobWriterDateTimeFormat"] = bs.BlobWriterDateTimeFormat - } - if bs.BlobWriterAddHeader != nil { - objectMap["blobWriterAddHeader"] = bs.BlobWriterAddHeader - } - if bs.CopyBehavior != nil { - objectMap["copyBehavior"] = bs.CopyBehavior - } - if bs.Metadata != nil { - objectMap["metadata"] = bs.Metadata - } - if bs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = bs.WriteBatchSize - } - if bs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = bs.WriteBatchTimeout - } - if bs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = bs.SinkRetryCount - } - if bs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = bs.SinkRetryWait - } - if bs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections - } - if bs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection - } - if bs.Type != "" { - objectMap["type"] = bs.Type - } - for k, v := range bs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsBlobSink() (*BlobSink, bool) { - return &bs, true -} - -// AsBinarySink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for BlobSink. -func (bs BlobSink) AsBasicCopySink() (BasicCopySink, bool) { - return &bs, true -} - -// UnmarshalJSON is the custom unmarshaler for BlobSink struct. -func (bs *BlobSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "blobWriterOverwriteFiles": - if v != nil { - var blobWriterOverwriteFiles interface{} - err = json.Unmarshal(*v, &blobWriterOverwriteFiles) - if err != nil { - return err - } - bs.BlobWriterOverwriteFiles = blobWriterOverwriteFiles - } - case "blobWriterDateTimeFormat": - if v != nil { - var blobWriterDateTimeFormat interface{} - err = json.Unmarshal(*v, &blobWriterDateTimeFormat) - if err != nil { - return err - } - bs.BlobWriterDateTimeFormat = blobWriterDateTimeFormat - } - case "blobWriterAddHeader": - if v != nil { - var blobWriterAddHeader interface{} - err = json.Unmarshal(*v, &blobWriterAddHeader) - if err != nil { - return err - } - bs.BlobWriterAddHeader = blobWriterAddHeader - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - bs.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - bs.Metadata = &metadata - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if bs.AdditionalProperties == nil { - bs.AdditionalProperties = make(map[string]interface{}) - } - bs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - bs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - bs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - bs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - bs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - bs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - bs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bs.Type = typeVar - } - } - } - - return nil -} - -// BlobSource a copy activity Azure Blob source. -type BlobSource struct { - // TreatEmptyAsNull - Treat empty as null. Type: boolean (or Expression with resultType boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` - // SkipHeaderLineCount - Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). - SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` - // Recursive - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BlobSource. -func (bs BlobSource) MarshalJSON() ([]byte, error) { - bs.Type = TypeBasicCopySourceTypeBlobSource - objectMap := make(map[string]interface{}) - if bs.TreatEmptyAsNull != nil { - objectMap["treatEmptyAsNull"] = bs.TreatEmptyAsNull - } - if bs.SkipHeaderLineCount != nil { - objectMap["skipHeaderLineCount"] = bs.SkipHeaderLineCount - } - if bs.Recursive != nil { - objectMap["recursive"] = bs.Recursive - } - if bs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = bs.SourceRetryCount - } - if bs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = bs.SourceRetryWait - } - if bs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = bs.MaxConcurrentConnections - } - if bs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = bs.DisableMetricsCollection - } - if bs.Type != "" { - objectMap["type"] = bs.Type - } - for k, v := range bs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsBlobSource() (*BlobSource, bool) { - return &bs, true -} - -// AsSalesforceV2Source is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for BlobSource. -func (bs BlobSource) AsBasicCopySource() (BasicCopySource, bool) { - return &bs, true -} - -// UnmarshalJSON is the custom unmarshaler for BlobSource struct. -func (bs *BlobSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "treatEmptyAsNull": - if v != nil { - var treatEmptyAsNull interface{} - err = json.Unmarshal(*v, &treatEmptyAsNull) - if err != nil { - return err - } - bs.TreatEmptyAsNull = treatEmptyAsNull - } - case "skipHeaderLineCount": - if v != nil { - var skipHeaderLineCount interface{} - err = json.Unmarshal(*v, &skipHeaderLineCount) - if err != nil { - return err - } - bs.SkipHeaderLineCount = skipHeaderLineCount - } - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - bs.Recursive = recursive - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if bs.AdditionalProperties == nil { - bs.AdditionalProperties = make(map[string]interface{}) - } - bs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - bs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - bs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - bs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - bs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bs.Type = typeVar - } - } - } - - return nil -} - -// BlobTrigger trigger that runs every time the selected Blob container changes. -type BlobTrigger struct { - // BlobTriggerTypeProperties - Blob Trigger properties. - *BlobTriggerTypeProperties `json:"typeProperties,omitempty"` - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for BlobTrigger. -func (bt BlobTrigger) MarshalJSON() ([]byte, error) { - bt.Type = TypeBasicTriggerTypeBlobTrigger - objectMap := make(map[string]interface{}) - if bt.BlobTriggerTypeProperties != nil { - objectMap["typeProperties"] = bt.BlobTriggerTypeProperties - } - if bt.Pipelines != nil { - objectMap["pipelines"] = bt.Pipelines - } - if bt.Description != nil { - objectMap["description"] = bt.Description - } - if bt.Annotations != nil { - objectMap["annotations"] = bt.Annotations - } - if bt.Type != "" { - objectMap["type"] = bt.Type - } - for k, v := range bt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return nil, false -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return nil, false -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return nil, false -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return nil, false -} - -// AsBlobTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return &bt, true -} - -// AsScheduleTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &bt, true -} - -// AsTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// AsBasicTrigger is the BasicTrigger implementation for BlobTrigger. -func (bt BlobTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &bt, true -} - -// UnmarshalJSON is the custom unmarshaler for BlobTrigger struct. -func (bt *BlobTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var blobTriggerTypeProperties BlobTriggerTypeProperties - err = json.Unmarshal(*v, &blobTriggerTypeProperties) - if err != nil { - return err - } - bt.BlobTriggerTypeProperties = &blobTriggerTypeProperties - } - case "pipelines": - if v != nil { - var pipelines []TriggerPipelineReference - err = json.Unmarshal(*v, &pipelines) - if err != nil { - return err - } - bt.Pipelines = &pipelines - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if bt.AdditionalProperties == nil { - bt.AdditionalProperties = make(map[string]interface{}) - } - bt.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - bt.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - bt.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - bt.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - bt.Type = typeVar - } - } - } - - return nil -} - -// BlobTriggerTypeProperties blob Trigger properties. -type BlobTriggerTypeProperties struct { - // FolderPath - The path of the container/folder that will trigger the pipeline. - FolderPath *string `json:"folderPath,omitempty"` - // MaxConcurrency - The max number of parallel files to handle when it is triggered. - MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` - // LinkedService - The Azure Storage linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` -} - -// CMKIdentityDefinition managed Identity used for CMK. -type CMKIdentityDefinition struct { - // UserAssignedIdentity - The resource id of the user assigned identity to authenticate to customer's key vault. - UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` -} - -// CassandraLinkedService linked service for Cassandra data source. -type CassandraLinkedService struct { - // CassandraLinkedServiceTypeProperties - Cassandra linked service properties. - *CassandraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CassandraLinkedService. -func (cls CassandraLinkedService) MarshalJSON() ([]byte, error) { - cls.Type = TypeBasicLinkedServiceTypeCassandra - objectMap := make(map[string]interface{}) - if cls.CassandraLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cls.CassandraLinkedServiceTypeProperties - } - if cls.ConnectVia != nil { - objectMap["connectVia"] = cls.ConnectVia - } - if cls.Description != nil { - objectMap["description"] = cls.Description - } - if cls.Parameters != nil { - objectMap["parameters"] = cls.Parameters - } - if cls.Annotations != nil { - objectMap["annotations"] = cls.Annotations - } - if cls.Type != "" { - objectMap["type"] = cls.Type - } - for k, v := range cls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return &cls, true -} - -// AsWebLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for CassandraLinkedService. -func (cls CassandraLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cls, true -} - -// UnmarshalJSON is the custom unmarshaler for CassandraLinkedService struct. -func (cls *CassandraLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cassandraLinkedServiceTypeProperties CassandraLinkedServiceTypeProperties - err = json.Unmarshal(*v, &cassandraLinkedServiceTypeProperties) - if err != nil { - return err - } - cls.CassandraLinkedServiceTypeProperties = &cassandraLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cls.AdditionalProperties == nil { - cls.AdditionalProperties = make(map[string]interface{}) - } - cls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cls.Type = typeVar - } - } - } - - return nil -} - -// CassandraLinkedServiceTypeProperties cassandra linked service properties. -type CassandraLinkedServiceTypeProperties struct { - // Host - Host name for connection. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` - // Port - The port for the connection. Type: integer (or Expression with resultType integer). - Port interface{} `json:"port,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for CassandraLinkedServiceTypeProperties struct. -func (clstp *CassandraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - clstp.Host = host - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - clstp.AuthenticationType = authenticationType - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - clstp.Port = port - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - clstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - clstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - clstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// CassandraSource a copy activity source for a Cassandra database. -type CassandraSource struct { - // Query - 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"` - // ConsistencyLevel - 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. Possible values include: 'CassandraSourceReadConsistencyLevelsALL', 'CassandraSourceReadConsistencyLevelsEACHQUORUM', 'CassandraSourceReadConsistencyLevelsQUORUM', 'CassandraSourceReadConsistencyLevelsLOCALQUORUM', 'CassandraSourceReadConsistencyLevelsONE', 'CassandraSourceReadConsistencyLevelsTWO', 'CassandraSourceReadConsistencyLevelsTHREE', 'CassandraSourceReadConsistencyLevelsLOCALONE', 'CassandraSourceReadConsistencyLevelsSERIAL', 'CassandraSourceReadConsistencyLevelsLOCALSERIAL' - ConsistencyLevel CassandraSourceReadConsistencyLevels `json:"consistencyLevel,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CassandraSource. -func (cs CassandraSource) MarshalJSON() ([]byte, error) { - cs.Type = TypeBasicCopySourceTypeCassandraSource - objectMap := make(map[string]interface{}) - if cs.Query != nil { - objectMap["query"] = cs.Query - } - if cs.ConsistencyLevel != "" { - objectMap["consistencyLevel"] = cs.ConsistencyLevel - } - if cs.QueryTimeout != nil { - objectMap["queryTimeout"] = cs.QueryTimeout - } - if cs.AdditionalColumns != nil { - objectMap["additionalColumns"] = cs.AdditionalColumns - } - if cs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = cs.SourceRetryCount - } - if cs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = cs.SourceRetryWait - } - if cs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections - } - if cs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection - } - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCassandraSource() (*CassandraSource, bool) { - return &cs, true -} - -// AsTeradataSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &cs, true -} - -// AsBinarySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for CassandraSource. -func (cs CassandraSource) AsBasicCopySource() (BasicCopySource, bool) { - return &cs, true -} - -// UnmarshalJSON is the custom unmarshaler for CassandraSource struct. -func (cs *CassandraSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - cs.Query = query - } - case "consistencyLevel": - if v != nil { - var consistencyLevel CassandraSourceReadConsistencyLevels - err = json.Unmarshal(*v, &consistencyLevel) - if err != nil { - return err - } - cs.ConsistencyLevel = consistencyLevel - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - cs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - cs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cs.AdditionalProperties == nil { - cs.AdditionalProperties = make(map[string]interface{}) - } - cs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - cs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - cs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cs.Type = typeVar - } - } - } - - return nil -} - -// CassandraTableDataset the Cassandra database dataset. -type CassandraTableDataset struct { - // CassandraTableDatasetTypeProperties - Cassandra dataset properties. - *CassandraTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CassandraTableDataset. -func (ctd CassandraTableDataset) MarshalJSON() ([]byte, error) { - ctd.Type = TypeBasicDatasetTypeCassandraTable - objectMap := make(map[string]interface{}) - if ctd.CassandraTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = ctd.CassandraTableDatasetTypeProperties - } - if ctd.Description != nil { - objectMap["description"] = ctd.Description - } - if ctd.Structure != nil { - objectMap["structure"] = ctd.Structure - } - if ctd.Schema != nil { - objectMap["schema"] = ctd.Schema - } - if ctd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ctd.LinkedServiceName - } - if ctd.Parameters != nil { - objectMap["parameters"] = ctd.Parameters - } - if ctd.Annotations != nil { - objectMap["annotations"] = ctd.Annotations - } - if ctd.Folder != nil { - objectMap["folder"] = ctd.Folder - } - if ctd.Type != "" { - objectMap["type"] = ctd.Type - } - for k, v := range ctd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return &ctd, true -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for CassandraTableDataset. -func (ctd CassandraTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &ctd, true -} - -// UnmarshalJSON is the custom unmarshaler for CassandraTableDataset struct. -func (ctd *CassandraTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cassandraTableDatasetTypeProperties CassandraTableDatasetTypeProperties - err = json.Unmarshal(*v, &cassandraTableDatasetTypeProperties) - if err != nil { - return err - } - ctd.CassandraTableDatasetTypeProperties = &cassandraTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ctd.AdditionalProperties == nil { - ctd.AdditionalProperties = make(map[string]interface{}) - } - ctd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ctd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ctd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - ctd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ctd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ctd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ctd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ctd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ctd.Type = typeVar - } - } - } - - return nil -} - -// CassandraTableDatasetTypeProperties cassandra dataset properties. -type CassandraTableDatasetTypeProperties struct { - // TableName - The table name of the Cassandra database. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` - // Keyspace - The keyspace of the Cassandra database. Type: string (or Expression with resultType string). - Keyspace interface{} `json:"keyspace,omitempty"` -} - -// ChainingTrigger trigger that allows the referenced pipeline to depend on other pipeline runs based on -// runDimension Name/Value pairs. Upstream pipelines should declare the same runDimension Name and their -// runs should have the values for those runDimensions. The referenced pipeline run would be triggered if -// the values for the runDimension match for all upstream pipeline runs. -type ChainingTrigger struct { - // Pipeline - Pipeline for which runs are created when all upstream pipelines complete successfully. - Pipeline *TriggerPipelineReference `json:"pipeline,omitempty"` - // ChainingTriggerTypeProperties - Chaining Trigger properties. - *ChainingTriggerTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ChainingTrigger. -func (ct ChainingTrigger) MarshalJSON() ([]byte, error) { - ct.Type = TypeBasicTriggerTypeChainingTrigger - objectMap := make(map[string]interface{}) - if ct.Pipeline != nil { - objectMap["pipeline"] = ct.Pipeline - } - if ct.ChainingTriggerTypeProperties != nil { - objectMap["typeProperties"] = ct.ChainingTriggerTypeProperties - } - if ct.Description != nil { - objectMap["description"] = ct.Description - } - if ct.Annotations != nil { - objectMap["annotations"] = ct.Annotations - } - if ct.Type != "" { - objectMap["type"] = ct.Type - } - for k, v := range ct.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return &ct, true -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return nil, false -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return nil, false -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return nil, false -} - -// AsBlobTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// AsScheduleTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return nil, false -} - -// AsTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// AsBasicTrigger is the BasicTrigger implementation for ChainingTrigger. -func (ct ChainingTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &ct, true -} - -// UnmarshalJSON is the custom unmarshaler for ChainingTrigger struct. -func (ct *ChainingTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "pipeline": - if v != nil { - var pipeline TriggerPipelineReference - err = json.Unmarshal(*v, &pipeline) - if err != nil { - return err - } - ct.Pipeline = &pipeline - } - case "typeProperties": - if v != nil { - var chainingTriggerTypeProperties ChainingTriggerTypeProperties - err = json.Unmarshal(*v, &chainingTriggerTypeProperties) - if err != nil { - return err - } - ct.ChainingTriggerTypeProperties = &chainingTriggerTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ct.AdditionalProperties == nil { - ct.AdditionalProperties = make(map[string]interface{}) - } - ct.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ct.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - ct.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ct.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ct.Type = typeVar - } - } - } - - return nil -} - -// ChainingTriggerTypeProperties chaining Trigger properties. -type ChainingTriggerTypeProperties struct { - // DependsOn - Upstream Pipelines. - DependsOn *[]PipelineReference `json:"dependsOn,omitempty"` - // RunDimension - Run Dimension property that needs to be emitted by upstream pipelines. - RunDimension *string `json:"runDimension,omitempty"` -} - -// 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 { - // Folder - The folder that this CDC is in. If not specified, CDC will appear at the root level. - Folder *ChangeDataCaptureFolder `json:"folder,omitempty"` - // Description - The description of the change data capture. - Description *string `json:"description,omitempty"` - // SourceConnectionsInfo - List of sources connections that can be used as sources in the CDC. - SourceConnectionsInfo *[]MapperSourceConnectionsInfo `json:"sourceConnectionsInfo,omitempty"` - // TargetConnectionsInfo - List of target connections that can be used as sources in the CDC. - TargetConnectionsInfo *[]MapperTargetConnectionsInfo `json:"targetConnectionsInfo,omitempty"` - // Policy - CDC policy - Policy *MapperPolicy `json:"policy,omitempty"` - // AllowVNetOverride - A boolean to determine if the vnet configuration needs to be overwritten. - AllowVNetOverride *bool `json:"allowVNetOverride,omitempty"` - // Status - Status of the CDC as to if it is running or stopped. - Status *string `json:"status,omitempty"` -} - -// ChangeDataCaptureFolder the folder that this CDC is in. If not specified, CDC will appear at the root -// level. -type ChangeDataCaptureFolder struct { - // Name - The name of the folder that this CDC is in. - Name *string `json:"name,omitempty"` -} - -// ChangeDataCaptureListResponse a list of change data capture resources. -type ChangeDataCaptureListResponse struct { - autorest.Response `json:"-"` - // Value - Lists all resources of type change data capture. - Value *[]ChangeDataCaptureResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// ChangeDataCaptureListResponseIterator provides access to a complete listing of ChangeDataCaptureResource -// values. -type ChangeDataCaptureListResponseIterator struct { - i int - page ChangeDataCaptureListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ChangeDataCaptureListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ChangeDataCaptureListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *ChangeDataCaptureListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ChangeDataCaptureListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter ChangeDataCaptureListResponseIterator) Response() ChangeDataCaptureListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ChangeDataCaptureListResponseIterator) Value() ChangeDataCaptureResource { - if !iter.page.NotDone() { - return ChangeDataCaptureResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the ChangeDataCaptureListResponseIterator type. -func NewChangeDataCaptureListResponseIterator(page ChangeDataCaptureListResponsePage) ChangeDataCaptureListResponseIterator { - return ChangeDataCaptureListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (cdclr ChangeDataCaptureListResponse) IsEmpty() bool { - return cdclr.Value == nil || len(*cdclr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (cdclr ChangeDataCaptureListResponse) hasNextLink() bool { - return cdclr.NextLink != nil && len(*cdclr.NextLink) != 0 -} - -// changeDataCaptureListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (cdclr ChangeDataCaptureListResponse) changeDataCaptureListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !cdclr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(cdclr.NextLink))) -} - -// ChangeDataCaptureListResponsePage contains a page of ChangeDataCaptureResource values. -type ChangeDataCaptureListResponsePage struct { - fn func(context.Context, ChangeDataCaptureListResponse) (ChangeDataCaptureListResponse, error) - cdclr ChangeDataCaptureListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ChangeDataCaptureListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ChangeDataCaptureListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.cdclr) - if err != nil { - return err - } - page.cdclr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *ChangeDataCaptureListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ChangeDataCaptureListResponsePage) NotDone() bool { - return !page.cdclr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page ChangeDataCaptureListResponsePage) Response() ChangeDataCaptureListResponse { - return page.cdclr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page ChangeDataCaptureListResponsePage) Values() []ChangeDataCaptureResource { - if page.cdclr.IsEmpty() { - return nil - } - return *page.cdclr.Value -} - -// Creates a new instance of the ChangeDataCaptureListResponsePage type. -func NewChangeDataCaptureListResponsePage(cur ChangeDataCaptureListResponse, getNextPage func(context.Context, ChangeDataCaptureListResponse) (ChangeDataCaptureListResponse, error)) ChangeDataCaptureListResponsePage { - return ChangeDataCaptureListResponsePage{ - fn: getNextPage, - cdclr: cur, - } -} - -// ChangeDataCaptureResource change data capture resource type. -type ChangeDataCaptureResource struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ChangeDataCapture - Properties of the change data capture. - *ChangeDataCapture `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for ChangeDataCaptureResource. -func (cdcr ChangeDataCaptureResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if cdcr.ChangeDataCapture != nil { - objectMap["properties"] = cdcr.ChangeDataCapture - } - for k, v := range cdcr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ChangeDataCaptureResource struct. -func (cdcr *ChangeDataCaptureResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdcr.AdditionalProperties == nil { - cdcr.AdditionalProperties = make(map[string]interface{}) - } - cdcr.AdditionalProperties[k] = additionalProperties - } - case "properties": - if v != nil { - var changeDataCapture ChangeDataCapture - err = json.Unmarshal(*v, &changeDataCapture) - if err != nil { - return err - } - cdcr.ChangeDataCapture = &changeDataCapture - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - cdcr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - cdcr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdcr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - cdcr.Etag = &etag - } - } - } - - return nil -} - -// CloudError the object that defines the structure of an Azure Data Factory error response. -type CloudError struct { - // CloudErrorBody - Error data - *CloudErrorBody `json:"error,omitempty"` -} - -// MarshalJSON is the custom marshaler for CloudError. -func (ce CloudError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ce.CloudErrorBody != nil { - objectMap["error"] = ce.CloudErrorBody - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for CloudError struct. -func (ce *CloudError) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "error": - if v != nil { - var cloudErrorBody CloudErrorBody - err = json.Unmarshal(*v, &cloudErrorBody) - if err != nil { - return err - } - ce.CloudErrorBody = &cloudErrorBody - } - } - } - - return nil -} - -// CloudErrorBody the object that defines the structure of an Azure Data Factory error. -type CloudErrorBody struct { - // Code - Error code. - Code *string `json:"code,omitempty"` - // Message - Error message. - Message *string `json:"message,omitempty"` - // Target - Property name/path in request associated with error. - Target *string `json:"target,omitempty"` - // Details - Array with additional error details. - Details *[]CloudError `json:"details,omitempty"` -} - -// CmdkeySetup the custom setup of running cmdkey commands. -type CmdkeySetup struct { - // CmdkeySetupTypeProperties - Cmdkey command custom setup type properties. - *CmdkeySetupTypeProperties `json:"typeProperties,omitempty"` - // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' - Type TypeBasicCustomSetupBase `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CmdkeySetup. -func (cs CmdkeySetup) MarshalJSON() ([]byte, error) { - cs.Type = TypeBasicCustomSetupBaseTypeCmdkeySetup - objectMap := make(map[string]interface{}) - if cs.CmdkeySetupTypeProperties != nil { - objectMap["typeProperties"] = cs.CmdkeySetupTypeProperties - } - if cs.Type != "" { - objectMap["type"] = cs.Type - } - return json.Marshal(objectMap) -} - -// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for CmdkeySetup. -func (cs CmdkeySetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { - return nil, false -} - -// AsComponentSetup is the BasicCustomSetupBase implementation for CmdkeySetup. -func (cs CmdkeySetup) AsComponentSetup() (*ComponentSetup, bool) { - return nil, false -} - -// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for CmdkeySetup. -func (cs CmdkeySetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { - return nil, false -} - -// AsCmdkeySetup is the BasicCustomSetupBase implementation for CmdkeySetup. -func (cs CmdkeySetup) AsCmdkeySetup() (*CmdkeySetup, bool) { - return &cs, true -} - -// AsCustomSetupBase is the BasicCustomSetupBase implementation for CmdkeySetup. -func (cs CmdkeySetup) AsCustomSetupBase() (*CustomSetupBase, bool) { - return nil, false -} - -// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for CmdkeySetup. -func (cs CmdkeySetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { - return &cs, true -} - -// UnmarshalJSON is the custom unmarshaler for CmdkeySetup struct. -func (cs *CmdkeySetup) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cmdkeySetupTypeProperties CmdkeySetupTypeProperties - err = json.Unmarshal(*v, &cmdkeySetupTypeProperties) - if err != nil { - return err - } - cs.CmdkeySetupTypeProperties = &cmdkeySetupTypeProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCustomSetupBase - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cs.Type = typeVar - } - } - } - - return nil -} - -// CmdkeySetupTypeProperties cmdkey command custom setup type properties. -type CmdkeySetupTypeProperties struct { - // TargetName - The server name of data source access. Type: string. - TargetName interface{} `json:"targetName,omitempty"` - // UserName - The user name of data source access. Type: string. - UserName interface{} `json:"userName,omitempty"` - // Password - The password of data source access. - Password BasicSecretBase `json:"password,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for CmdkeySetupTypeProperties struct. -func (cstp *CmdkeySetupTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "targetName": - if v != nil { - var targetName interface{} - err = json.Unmarshal(*v, &targetName) - if err != nil { - return err - } - cstp.TargetName = targetName - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - cstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - cstp.Password = password - } - } - } - - return nil -} - -// CommonDataServiceForAppsEntityDataset the Common Data Service for Apps entity dataset. -type CommonDataServiceForAppsEntityDataset struct { - // CommonDataServiceForAppsEntityDatasetTypeProperties - Common Data Service for Apps entity dataset properties. - *CommonDataServiceForAppsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) MarshalJSON() ([]byte, error) { - cdsfaed.Type = TypeBasicDatasetTypeCommonDataServiceForAppsEntity - objectMap := make(map[string]interface{}) - if cdsfaed.CommonDataServiceForAppsEntityDatasetTypeProperties != nil { - objectMap["typeProperties"] = cdsfaed.CommonDataServiceForAppsEntityDatasetTypeProperties - } - if cdsfaed.Description != nil { - objectMap["description"] = cdsfaed.Description - } - if cdsfaed.Structure != nil { - objectMap["structure"] = cdsfaed.Structure - } - if cdsfaed.Schema != nil { - objectMap["schema"] = cdsfaed.Schema - } - if cdsfaed.LinkedServiceName != nil { - objectMap["linkedServiceName"] = cdsfaed.LinkedServiceName - } - if cdsfaed.Parameters != nil { - objectMap["parameters"] = cdsfaed.Parameters - } - if cdsfaed.Annotations != nil { - objectMap["annotations"] = cdsfaed.Annotations - } - if cdsfaed.Folder != nil { - objectMap["folder"] = cdsfaed.Folder - } - if cdsfaed.Type != "" { - objectMap["type"] = cdsfaed.Type - } - for k, v := range cdsfaed.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return &cdsfaed, true -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for CommonDataServiceForAppsEntityDataset. -func (cdsfaed CommonDataServiceForAppsEntityDataset) AsBasicDataset() (BasicDataset, bool) { - return &cdsfaed, true -} - -// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsEntityDataset struct. -func (cdsfaed *CommonDataServiceForAppsEntityDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var commonDataServiceForAppsEntityDatasetTypeProperties CommonDataServiceForAppsEntityDatasetTypeProperties - err = json.Unmarshal(*v, &commonDataServiceForAppsEntityDatasetTypeProperties) - if err != nil { - return err - } - cdsfaed.CommonDataServiceForAppsEntityDatasetTypeProperties = &commonDataServiceForAppsEntityDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsfaed.AdditionalProperties == nil { - cdsfaed.AdditionalProperties = make(map[string]interface{}) - } - cdsfaed.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdsfaed.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - cdsfaed.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - cdsfaed.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - cdsfaed.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdsfaed.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdsfaed.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - cdsfaed.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsfaed.Type = typeVar - } - } - } - - return nil -} - -// CommonDataServiceForAppsEntityDatasetTypeProperties common Data Service for Apps entity dataset -// properties. -type CommonDataServiceForAppsEntityDatasetTypeProperties struct { - // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` -} - -// CommonDataServiceForAppsLinkedService common Data Service for Apps linked service. -type CommonDataServiceForAppsLinkedService struct { - // CommonDataServiceForAppsLinkedServiceTypeProperties - Common Data Service for Apps linked service properties. - *CommonDataServiceForAppsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) MarshalJSON() ([]byte, error) { - cdsfals.Type = TypeBasicLinkedServiceTypeCommonDataServiceForApps - objectMap := make(map[string]interface{}) - if cdsfals.CommonDataServiceForAppsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cdsfals.CommonDataServiceForAppsLinkedServiceTypeProperties - } - if cdsfals.ConnectVia != nil { - objectMap["connectVia"] = cdsfals.ConnectVia - } - if cdsfals.Description != nil { - objectMap["description"] = cdsfals.Description - } - if cdsfals.Parameters != nil { - objectMap["parameters"] = cdsfals.Parameters - } - if cdsfals.Annotations != nil { - objectMap["annotations"] = cdsfals.Annotations - } - if cdsfals.Type != "" { - objectMap["type"] = cdsfals.Type - } - for k, v := range cdsfals.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return &cdsfals, true -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for CommonDataServiceForAppsLinkedService. -func (cdsfals CommonDataServiceForAppsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cdsfals, true -} - -// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsLinkedService struct. -func (cdsfals *CommonDataServiceForAppsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var commonDataServiceForAppsLinkedServiceTypeProperties CommonDataServiceForAppsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &commonDataServiceForAppsLinkedServiceTypeProperties) - if err != nil { - return err - } - cdsfals.CommonDataServiceForAppsLinkedServiceTypeProperties = &commonDataServiceForAppsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsfals.AdditionalProperties == nil { - cdsfals.AdditionalProperties = make(map[string]interface{}) - } - cdsfals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cdsfals.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdsfals.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdsfals.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdsfals.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsfals.Type = typeVar - } - } - } - - return nil -} - -// CommonDataServiceForAppsLinkedServiceTypeProperties common Data Service for Apps linked service -// properties. -type CommonDataServiceForAppsLinkedServiceTypeProperties struct { - // DeploymentType - 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"` - // HostName - 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"` - // Port - 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"` - // ServiceURI - 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"` - // OrganizationName - 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"` - // AuthenticationType - 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"` - // Username - User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password to access the Common Data Service for Apps instance. - Password BasicSecretBase `json:"password,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalCredentialType - 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"` - // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsLinkedServiceTypeProperties struct. -func (cdsfalstp *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "deploymentType": - if v != nil { - var deploymentType interface{} - err = json.Unmarshal(*v, &deploymentType) - if err != nil { - return err - } - cdsfalstp.DeploymentType = deploymentType - } - case "hostName": - if v != nil { - var hostName interface{} - err = json.Unmarshal(*v, &hostName) - if err != nil { - return err - } - cdsfalstp.HostName = hostName - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - cdsfalstp.Port = port - } - case "serviceUri": - if v != nil { - var serviceURI interface{} - err = json.Unmarshal(*v, &serviceURI) - if err != nil { - return err - } - cdsfalstp.ServiceURI = serviceURI - } - case "organizationName": - if v != nil { - var organizationName interface{} - err = json.Unmarshal(*v, &organizationName) - if err != nil { - return err - } - cdsfalstp.OrganizationName = organizationName - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - cdsfalstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - cdsfalstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - cdsfalstp.Password = password - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - cdsfalstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalCredentialType": - if v != nil { - var servicePrincipalCredentialType interface{} - err = json.Unmarshal(*v, &servicePrincipalCredentialType) - if err != nil { - return err - } - cdsfalstp.ServicePrincipalCredentialType = servicePrincipalCredentialType - } - case "servicePrincipalCredential": - if v != nil { - servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - cdsfalstp.ServicePrincipalCredential = servicePrincipalCredential - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - cdsfalstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// CommonDataServiceForAppsSink a copy activity Common Data Service for Apps sink. -type CommonDataServiceForAppsSink struct { - // WriteBehavior - The write behavior for the operation. - WriteBehavior *string `json:"writeBehavior,omitempty"` - // IgnoreNullValues - 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"` - // AlternateKeyName - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) MarshalJSON() ([]byte, error) { - cdsfas.Type = TypeBasicCopySinkTypeCommonDataServiceForAppsSink - objectMap := make(map[string]interface{}) - if cdsfas.WriteBehavior != nil { - objectMap["writeBehavior"] = cdsfas.WriteBehavior - } - if cdsfas.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = cdsfas.IgnoreNullValues - } - if cdsfas.AlternateKeyName != nil { - objectMap["alternateKeyName"] = cdsfas.AlternateKeyName - } - if cdsfas.WriteBatchSize != nil { - objectMap["writeBatchSize"] = cdsfas.WriteBatchSize - } - if cdsfas.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = cdsfas.WriteBatchTimeout - } - if cdsfas.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = cdsfas.SinkRetryCount - } - if cdsfas.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = cdsfas.SinkRetryWait - } - if cdsfas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cdsfas.MaxConcurrentConnections - } - if cdsfas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cdsfas.DisableMetricsCollection - } - if cdsfas.Type != "" { - objectMap["type"] = cdsfas.Type - } - for k, v := range cdsfas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return &cdsfas, true -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for CommonDataServiceForAppsSink. -func (cdsfas CommonDataServiceForAppsSink) AsBasicCopySink() (BasicCopySink, bool) { - return &cdsfas, true -} - -// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsSink struct. -func (cdsfas *CommonDataServiceForAppsSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior string - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - cdsfas.WriteBehavior = &writeBehavior - } - case "ignoreNullValues": - if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) - if err != nil { - return err - } - cdsfas.IgnoreNullValues = ignoreNullValues - } - case "alternateKeyName": - if v != nil { - var alternateKeyName interface{} - err = json.Unmarshal(*v, &alternateKeyName) - if err != nil { - return err - } - cdsfas.AlternateKeyName = alternateKeyName - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsfas.AdditionalProperties == nil { - cdsfas.AdditionalProperties = make(map[string]interface{}) - } - cdsfas.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - cdsfas.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - cdsfas.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - cdsfas.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - cdsfas.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cdsfas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cdsfas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsfas.Type = typeVar - } - } - } - - return nil -} - -// CommonDataServiceForAppsSource a copy activity Common Data Service for Apps source. -type CommonDataServiceForAppsSource struct { - // Query - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) MarshalJSON() ([]byte, error) { - cdsfas.Type = TypeBasicCopySourceTypeCommonDataServiceForAppsSource - objectMap := make(map[string]interface{}) - if cdsfas.Query != nil { - objectMap["query"] = cdsfas.Query - } - if cdsfas.AdditionalColumns != nil { - objectMap["additionalColumns"] = cdsfas.AdditionalColumns - } - if cdsfas.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = cdsfas.SourceRetryCount - } - if cdsfas.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = cdsfas.SourceRetryWait - } - if cdsfas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cdsfas.MaxConcurrentConnections - } - if cdsfas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cdsfas.DisableMetricsCollection - } - if cdsfas.Type != "" { - objectMap["type"] = cdsfas.Type - } - for k, v := range cdsfas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return &cdsfas, true -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for CommonDataServiceForAppsSource. -func (cdsfas CommonDataServiceForAppsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &cdsfas, true -} - -// UnmarshalJSON is the custom unmarshaler for CommonDataServiceForAppsSource struct. -func (cdsfas *CommonDataServiceForAppsSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - cdsfas.Query = query - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - cdsfas.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsfas.AdditionalProperties == nil { - cdsfas.AdditionalProperties = make(map[string]interface{}) - } - cdsfas.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - cdsfas.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - cdsfas.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cdsfas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cdsfas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsfas.Type = typeVar - } - } - } - - return nil -} - -// ComponentSetup the custom setup of installing 3rd party components. -type ComponentSetup struct { - // LicensedComponentSetupTypeProperties - Install 3rd party component type properties. - *LicensedComponentSetupTypeProperties `json:"typeProperties,omitempty"` - // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' - Type TypeBasicCustomSetupBase `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ComponentSetup. -func (cs ComponentSetup) MarshalJSON() ([]byte, error) { - cs.Type = TypeBasicCustomSetupBaseTypeComponentSetup - objectMap := make(map[string]interface{}) - if cs.LicensedComponentSetupTypeProperties != nil { - objectMap["typeProperties"] = cs.LicensedComponentSetupTypeProperties - } - if cs.Type != "" { - objectMap["type"] = cs.Type - } - return json.Marshal(objectMap) -} - -// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for ComponentSetup. -func (cs ComponentSetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { - return nil, false -} - -// AsComponentSetup is the BasicCustomSetupBase implementation for ComponentSetup. -func (cs ComponentSetup) AsComponentSetup() (*ComponentSetup, bool) { - return &cs, true -} - -// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for ComponentSetup. -func (cs ComponentSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { - return nil, false -} - -// AsCmdkeySetup is the BasicCustomSetupBase implementation for ComponentSetup. -func (cs ComponentSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { - return nil, false -} - -// AsCustomSetupBase is the BasicCustomSetupBase implementation for ComponentSetup. -func (cs ComponentSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { - return nil, false -} - -// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for ComponentSetup. -func (cs ComponentSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { - return &cs, true -} - -// UnmarshalJSON is the custom unmarshaler for ComponentSetup struct. -func (cs *ComponentSetup) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var licensedComponentSetupTypeProperties LicensedComponentSetupTypeProperties - err = json.Unmarshal(*v, &licensedComponentSetupTypeProperties) - if err != nil { - return err - } - cs.LicensedComponentSetupTypeProperties = &licensedComponentSetupTypeProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCustomSetupBase - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cs.Type = typeVar - } - } - } - - return nil -} - -// BasicCompressionReadSettings compression read settings. -type BasicCompressionReadSettings interface { - AsTarGZipReadSettings() (*TarGZipReadSettings, bool) - AsTarReadSettings() (*TarReadSettings, bool) - AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) - AsCompressionReadSettings() (*CompressionReadSettings, bool) -} - -// CompressionReadSettings compression read settings. -type CompressionReadSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicCompressionReadSettingsTypeCompressionReadSettings', 'TypeBasicCompressionReadSettingsTypeTarGZipReadSettings', 'TypeBasicCompressionReadSettingsTypeTarReadSettings', 'TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings' - Type TypeBasicCompressionReadSettings `json:"type,omitempty"` -} - -func unmarshalBasicCompressionReadSettings(body []byte) (BasicCompressionReadSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicCompressionReadSettingsTypeTarGZipReadSettings): - var tgzrs TarGZipReadSettings - err := json.Unmarshal(body, &tgzrs) - return tgzrs, err - case string(TypeBasicCompressionReadSettingsTypeTarReadSettings): - var trs TarReadSettings - err := json.Unmarshal(body, &trs) - return trs, err - case string(TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings): - var zdrs ZipDeflateReadSettings - err := json.Unmarshal(body, &zdrs) - return zdrs, err - default: - var crs CompressionReadSettings - err := json.Unmarshal(body, &crs) - return crs, err - } -} -func unmarshalBasicCompressionReadSettingsArray(body []byte) ([]BasicCompressionReadSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - crsArray := make([]BasicCompressionReadSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - crs, err := unmarshalBasicCompressionReadSettings(*rawMessage) - if err != nil { - return nil, err - } - crsArray[index] = crs - } - return crsArray, nil -} - -// MarshalJSON is the custom marshaler for CompressionReadSettings. -func (crs CompressionReadSettings) MarshalJSON() ([]byte, error) { - crs.Type = TypeBasicCompressionReadSettingsTypeCompressionReadSettings - objectMap := make(map[string]interface{}) - if crs.Type != "" { - objectMap["type"] = crs.Type - } - for k, v := range crs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsTarGZipReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. -func (crs CompressionReadSettings) AsTarGZipReadSettings() (*TarGZipReadSettings, bool) { - return nil, false -} - -// AsTarReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. -func (crs CompressionReadSettings) AsTarReadSettings() (*TarReadSettings, bool) { - return nil, false -} - -// AsZipDeflateReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. -func (crs CompressionReadSettings) AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) { - return nil, false -} - -// AsCompressionReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. -func (crs CompressionReadSettings) AsCompressionReadSettings() (*CompressionReadSettings, bool) { - return &crs, true -} - -// AsBasicCompressionReadSettings is the BasicCompressionReadSettings implementation for CompressionReadSettings. -func (crs CompressionReadSettings) AsBasicCompressionReadSettings() (BasicCompressionReadSettings, bool) { - return &crs, true -} - -// UnmarshalJSON is the custom unmarshaler for CompressionReadSettings struct. -func (crs *CompressionReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if crs.AdditionalProperties == nil { - crs.AdditionalProperties = make(map[string]interface{}) - } - crs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCompressionReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - crs.Type = typeVar - } - } - } - - return nil -} - -// ConcurLinkedService concur Service linked service. -type ConcurLinkedService struct { - // ConcurLinkedServiceTypeProperties - Concur Service linked service properties. - *ConcurLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ConcurLinkedService. -func (cls ConcurLinkedService) MarshalJSON() ([]byte, error) { - cls.Type = TypeBasicLinkedServiceTypeConcur - objectMap := make(map[string]interface{}) - if cls.ConcurLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cls.ConcurLinkedServiceTypeProperties - } - if cls.ConnectVia != nil { - objectMap["connectVia"] = cls.ConnectVia - } - if cls.Description != nil { - objectMap["description"] = cls.Description - } - if cls.Parameters != nil { - objectMap["parameters"] = cls.Parameters - } - if cls.Annotations != nil { - objectMap["annotations"] = cls.Annotations - } - if cls.Type != "" { - objectMap["type"] = cls.Type - } - for k, v := range cls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return &cls, true -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for ConcurLinkedService. -func (cls ConcurLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cls, true -} - -// UnmarshalJSON is the custom unmarshaler for ConcurLinkedService struct. -func (cls *ConcurLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var concurLinkedServiceTypeProperties ConcurLinkedServiceTypeProperties - err = json.Unmarshal(*v, &concurLinkedServiceTypeProperties) - if err != nil { - return err - } - cls.ConcurLinkedServiceTypeProperties = &concurLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cls.AdditionalProperties == nil { - cls.AdditionalProperties = make(map[string]interface{}) - } - cls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cls.Type = typeVar - } - } - } - - return nil -} - -// ConcurLinkedServiceTypeProperties concur Service linked service properties. -type ConcurLinkedServiceTypeProperties struct { - // ConnectionProperties - 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"` - // ClientID - Application client_id supplied by Concur App Management. - ClientID interface{} `json:"clientId,omitempty"` - // Username - The user name that you use to access Concur Service. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the username field. - Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ConcurLinkedServiceTypeProperties struct. -func (clstp *ConcurLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionProperties": - if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) - if err != nil { - return err - } - clstp.ConnectionProperties = connectionProperties - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - clstp.ClientID = clientID - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - clstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - clstp.Password = password - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - clstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - clstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - clstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - clstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// ConcurObjectDataset concur Service dataset. -type ConcurObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ConcurObjectDataset. -func (cod ConcurObjectDataset) MarshalJSON() ([]byte, error) { - cod.Type = TypeBasicDatasetTypeConcurObject - objectMap := make(map[string]interface{}) - if cod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = cod.GenericDatasetTypeProperties - } - if cod.Description != nil { - objectMap["description"] = cod.Description - } - if cod.Structure != nil { - objectMap["structure"] = cod.Structure - } - if cod.Schema != nil { - objectMap["schema"] = cod.Schema - } - if cod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = cod.LinkedServiceName - } - if cod.Parameters != nil { - objectMap["parameters"] = cod.Parameters - } - if cod.Annotations != nil { - objectMap["annotations"] = cod.Annotations - } - if cod.Folder != nil { - objectMap["folder"] = cod.Folder - } - if cod.Type != "" { - objectMap["type"] = cod.Type - } - for k, v := range cod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return &cod, true -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ConcurObjectDataset. -func (cod ConcurObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &cod, true -} - -// UnmarshalJSON is the custom unmarshaler for ConcurObjectDataset struct. -func (cod *ConcurObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - cod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cod.AdditionalProperties == nil { - cod.AdditionalProperties = make(map[string]interface{}) - } - cod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - cod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - cod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - cod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - cod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cod.Type = typeVar - } - } - } - - return nil -} - -// ConcurSource a copy activity Concur Service source. -type ConcurSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ConcurSource. -func (cs ConcurSource) MarshalJSON() ([]byte, error) { - cs.Type = TypeBasicCopySourceTypeConcurSource - objectMap := make(map[string]interface{}) - if cs.Query != nil { - objectMap["query"] = cs.Query - } - if cs.QueryTimeout != nil { - objectMap["queryTimeout"] = cs.QueryTimeout - } - if cs.AdditionalColumns != nil { - objectMap["additionalColumns"] = cs.AdditionalColumns - } - if cs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = cs.SourceRetryCount - } - if cs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = cs.SourceRetryWait - } - if cs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections - } - if cs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection - } - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsConcurSource() (*ConcurSource, bool) { - return &cs, true -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &cs, true -} - -// AsBinarySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ConcurSource. -func (cs ConcurSource) AsBasicCopySource() (BasicCopySource, bool) { - return &cs, true -} - -// UnmarshalJSON is the custom unmarshaler for ConcurSource struct. -func (cs *ConcurSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - cs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - cs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - cs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cs.AdditionalProperties == nil { - cs.AdditionalProperties = make(map[string]interface{}) - } - cs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - cs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - cs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cs.Type = typeVar - } - } - } - - return nil -} - -// ConnectionStateProperties the connection state of a managed private endpoint -type ConnectionStateProperties struct { - // ActionsRequired - READ-ONLY; The actions required on the managed private endpoint - ActionsRequired *string `json:"actionsRequired,omitempty"` - // Description - READ-ONLY; The managed private endpoint description - Description *string `json:"description,omitempty"` - // Status - READ-ONLY; The approval status - Status *string `json:"status,omitempty"` -} - -// MarshalJSON is the custom marshaler for ConnectionStateProperties. -func (csp ConnectionStateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// BasicControlActivity base class for all control activities like IfCondition, ForEach , Until. -type BasicControlActivity interface { - AsWebHookActivity() (*WebHookActivity, bool) - AsAppendVariableActivity() (*AppendVariableActivity, bool) - AsSetVariableActivity() (*SetVariableActivity, bool) - AsFilterActivity() (*FilterActivity, bool) - AsValidationActivity() (*ValidationActivity, bool) - AsUntilActivity() (*UntilActivity, bool) - AsFailActivity() (*FailActivity, bool) - AsWaitActivity() (*WaitActivity, bool) - AsForEachActivity() (*ForEachActivity, bool) - AsSwitchActivity() (*SwitchActivity, bool) - AsIfConditionActivity() (*IfConditionActivity, bool) - AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) - AsControlActivity() (*ControlActivity, bool) -} - -// ControlActivity base class for all control activities like IfCondition, ForEach , Until. -type ControlActivity struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -func unmarshalBasicControlActivity(body []byte) (BasicControlActivity, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicActivityTypeWebHook): - var wha WebHookActivity - err := json.Unmarshal(body, &wha) - return wha, err - case string(TypeBasicActivityTypeAppendVariable): - var ava AppendVariableActivity - err := json.Unmarshal(body, &ava) - return ava, err - case string(TypeBasicActivityTypeSetVariable): - var sva SetVariableActivity - err := json.Unmarshal(body, &sva) - return sva, err - case string(TypeBasicActivityTypeFilter): - var fa FilterActivity - err := json.Unmarshal(body, &fa) - return fa, err - case string(TypeBasicActivityTypeValidation): - var va ValidationActivity - err := json.Unmarshal(body, &va) - return va, err - case string(TypeBasicActivityTypeUntil): - var ua UntilActivity - err := json.Unmarshal(body, &ua) - return ua, err - case string(TypeBasicActivityTypeFail): - var fa FailActivity - err := json.Unmarshal(body, &fa) - return fa, err - case string(TypeBasicActivityTypeWait): - var wa WaitActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeBasicActivityTypeForEach): - var fea ForEachActivity - err := json.Unmarshal(body, &fea) - return fea, err - case string(TypeBasicActivityTypeSwitch): - var sa SwitchActivity - err := json.Unmarshal(body, &sa) - return sa, err - case string(TypeBasicActivityTypeIfCondition): - var ica IfConditionActivity - err := json.Unmarshal(body, &ica) - return ica, err - case string(TypeBasicActivityTypeExecutePipeline): - var epa ExecutePipelineActivity - err := json.Unmarshal(body, &epa) - return epa, err - default: - var ca ControlActivity - err := json.Unmarshal(body, &ca) - return ca, err - } -} -func unmarshalBasicControlActivityArray(body []byte) ([]BasicControlActivity, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - caArray := make([]BasicControlActivity, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ca, err := unmarshalBasicControlActivity(*rawMessage) - if err != nil { - return nil, err - } - caArray[index] = ca - } - return caArray, nil -} - -// MarshalJSON is the custom marshaler for ControlActivity. -func (ca ControlActivity) MarshalJSON() ([]byte, error) { - ca.Type = TypeBasicActivityTypeContainer - objectMap := make(map[string]interface{}) - if ca.Name != nil { - objectMap["name"] = ca.Name - } - if ca.Description != nil { - objectMap["description"] = ca.Description - } - if ca.State != "" { - objectMap["state"] = ca.State - } - if ca.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ca.OnInactiveMarkAs - } - if ca.DependsOn != nil { - objectMap["dependsOn"] = ca.DependsOn - } - if ca.UserProperties != nil { - objectMap["userProperties"] = ca.UserProperties - } - if ca.Type != "" { - objectMap["type"] = ca.Type - } - for k, v := range ca.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsControlActivity() (*ControlActivity, bool) { - return &ca, true -} - -// AsBasicControlActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &ca, true -} - -// AsActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ControlActivity. -func (ca ControlActivity) AsBasicActivity() (BasicActivity, bool) { - return &ca, true -} - -// UnmarshalJSON is the custom unmarshaler for ControlActivity struct. -func (ca *ControlActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ca.AdditionalProperties == nil { - ca.AdditionalProperties = make(map[string]interface{}) - } - ca.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ca.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ca.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ca.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ca.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ca.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ca.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ca.Type = typeVar - } - } - } - - return nil -} - -// CopyActivity copy activity. -type CopyActivity struct { - // CopyActivityTypeProperties - Copy activity properties. - *CopyActivityTypeProperties `json:"typeProperties,omitempty"` - // Inputs - List of inputs for the activity. - Inputs *[]DatasetReference `json:"inputs,omitempty"` - // Outputs - List of outputs for the activity. - Outputs *[]DatasetReference `json:"outputs,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CopyActivity. -func (ca CopyActivity) MarshalJSON() ([]byte, error) { - ca.Type = TypeBasicActivityTypeCopy - objectMap := make(map[string]interface{}) - if ca.CopyActivityTypeProperties != nil { - objectMap["typeProperties"] = ca.CopyActivityTypeProperties - } - if ca.Inputs != nil { - objectMap["inputs"] = ca.Inputs - } - if ca.Outputs != nil { - objectMap["outputs"] = ca.Outputs - } - if ca.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ca.LinkedServiceName - } - if ca.Policy != nil { - objectMap["policy"] = ca.Policy - } - if ca.Name != nil { - objectMap["name"] = ca.Name - } - if ca.Description != nil { - objectMap["description"] = ca.Description - } - if ca.State != "" { - objectMap["state"] = ca.State - } - if ca.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ca.OnInactiveMarkAs - } - if ca.DependsOn != nil { - objectMap["dependsOn"] = ca.DependsOn - } - if ca.UserProperties != nil { - objectMap["userProperties"] = ca.UserProperties - } - if ca.Type != "" { - objectMap["type"] = ca.Type - } - for k, v := range ca.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsCopyActivity() (*CopyActivity, bool) { - return &ca, true -} - -// AsExecutionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ca, true -} - -// AsWebHookActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for CopyActivity. -func (ca CopyActivity) AsBasicActivity() (BasicActivity, bool) { - return &ca, true -} - -// UnmarshalJSON is the custom unmarshaler for CopyActivity struct. -func (ca *CopyActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var copyActivityTypeProperties CopyActivityTypeProperties - err = json.Unmarshal(*v, ©ActivityTypeProperties) - if err != nil { - return err - } - ca.CopyActivityTypeProperties = ©ActivityTypeProperties - } - case "inputs": - if v != nil { - var inputs []DatasetReference - err = json.Unmarshal(*v, &inputs) - if err != nil { - return err - } - ca.Inputs = &inputs - } - case "outputs": - if v != nil { - var outputs []DatasetReference - err = json.Unmarshal(*v, &outputs) - if err != nil { - return err - } - ca.Outputs = &outputs - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ca.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ca.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ca.AdditionalProperties == nil { - ca.AdditionalProperties = make(map[string]interface{}) - } - ca.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ca.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ca.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ca.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ca.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ca.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ca.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ca.Type = typeVar - } - } - } - - return nil -} - -// CopyActivityLogSettings settings for copy activity log. -type CopyActivityLogSettings struct { - // LogLevel - Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). - LogLevel interface{} `json:"logLevel,omitempty"` - // EnableReliableLogging - Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). - EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` -} - -// CopyActivityTypeProperties copy activity properties. -type CopyActivityTypeProperties struct { - // Source - Copy activity source. - Source BasicCopySource `json:"source,omitempty"` - // Sink - Copy activity sink. - Sink BasicCopySink `json:"sink,omitempty"` - // Translator - Copy activity translator. If not specified, tabular translator is used. - Translator interface{} `json:"translator,omitempty"` - // EnableStaging - 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"` - // StagingSettings - Specifies interim staging settings when EnableStaging is true. - StagingSettings *StagingSettings `json:"stagingSettings,omitempty"` - // ParallelCopies - 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"` - // DataIntegrationUnits - 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"` - // EnableSkipIncompatibleRow - Whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean). - EnableSkipIncompatibleRow interface{} `json:"enableSkipIncompatibleRow,omitempty"` - // RedirectIncompatibleRowSettings - Redirect incompatible row settings when EnableSkipIncompatibleRow is true. - RedirectIncompatibleRowSettings *RedirectIncompatibleRowSettings `json:"redirectIncompatibleRowSettings,omitempty"` - // LogStorageSettings - (Deprecated. Please use LogSettings) Log storage settings customer need to provide when enabling session log. - LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` - // LogSettings - Log settings customer needs provide when enabling log. - LogSettings *LogSettings `json:"logSettings,omitempty"` - // PreserveRules - Preserve Rules. - PreserveRules *[]interface{} `json:"preserveRules,omitempty"` - // Preserve - Preserve rules. - Preserve *[]interface{} `json:"preserve,omitempty"` - // ValidateDataConsistency - Whether to enable Data Consistency validation. Type: boolean (or Expression with resultType boolean). - ValidateDataConsistency interface{} `json:"validateDataConsistency,omitempty"` - // SkipErrorFile - Specify the fault tolerance for data consistency. - SkipErrorFile *SkipErrorFile `json:"skipErrorFile,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for CopyActivityTypeProperties struct. -func (catp *CopyActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "source": - if v != nil { - source, err := unmarshalBasicCopySource(*v) - if err != nil { - return err - } - catp.Source = source - } - case "sink": - if v != nil { - sink, err := unmarshalBasicCopySink(*v) - if err != nil { - return err - } - catp.Sink = sink - } - case "translator": - if v != nil { - var translator interface{} - err = json.Unmarshal(*v, &translator) - if err != nil { - return err - } - catp.Translator = translator - } - case "enableStaging": - if v != nil { - var enableStaging interface{} - err = json.Unmarshal(*v, &enableStaging) - if err != nil { - return err - } - catp.EnableStaging = enableStaging - } - case "stagingSettings": - if v != nil { - var stagingSettings StagingSettings - err = json.Unmarshal(*v, &stagingSettings) - if err != nil { - return err - } - catp.StagingSettings = &stagingSettings - } - case "parallelCopies": - if v != nil { - var parallelCopies interface{} - err = json.Unmarshal(*v, ¶llelCopies) - if err != nil { - return err - } - catp.ParallelCopies = parallelCopies - } - case "dataIntegrationUnits": - if v != nil { - var dataIntegrationUnits interface{} - err = json.Unmarshal(*v, &dataIntegrationUnits) - if err != nil { - return err - } - catp.DataIntegrationUnits = dataIntegrationUnits - } - case "enableSkipIncompatibleRow": - if v != nil { - var enableSkipIncompatibleRow interface{} - err = json.Unmarshal(*v, &enableSkipIncompatibleRow) - if err != nil { - return err - } - catp.EnableSkipIncompatibleRow = enableSkipIncompatibleRow - } - case "redirectIncompatibleRowSettings": - if v != nil { - var redirectIncompatibleRowSettings RedirectIncompatibleRowSettings - err = json.Unmarshal(*v, &redirectIncompatibleRowSettings) - if err != nil { - return err - } - catp.RedirectIncompatibleRowSettings = &redirectIncompatibleRowSettings - } - case "logStorageSettings": - if v != nil { - var logStorageSettings LogStorageSettings - err = json.Unmarshal(*v, &logStorageSettings) - if err != nil { - return err - } - catp.LogStorageSettings = &logStorageSettings - } - case "logSettings": - if v != nil { - var logSettings LogSettings - err = json.Unmarshal(*v, &logSettings) - if err != nil { - return err - } - catp.LogSettings = &logSettings - } - case "preserveRules": - if v != nil { - var preserveRules []interface{} - err = json.Unmarshal(*v, &preserveRules) - if err != nil { - return err - } - catp.PreserveRules = &preserveRules - } - case "preserve": - if v != nil { - var preserve []interface{} - err = json.Unmarshal(*v, &preserve) - if err != nil { - return err - } - catp.Preserve = &preserve - } - case "validateDataConsistency": - if v != nil { - var validateDataConsistency interface{} - err = json.Unmarshal(*v, &validateDataConsistency) - if err != nil { - return err - } - catp.ValidateDataConsistency = validateDataConsistency - } - case "skipErrorFile": - if v != nil { - var skipErrorFile SkipErrorFile - err = json.Unmarshal(*v, &skipErrorFile) - if err != nil { - return err - } - catp.SkipErrorFile = &skipErrorFile - } - } - } - - return nil -} - -// CopyComputeScaleProperties copyComputeScale properties for managed integration runtime. -type CopyComputeScaleProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataIntegrationUnit - DIU number setting reserved for copy activity execution. Supported values are multiples of 4 in range 4-256. - DataIntegrationUnit *int32 `json:"dataIntegrationUnit,omitempty"` - // TimeToLive - Time to live (in minutes) setting of integration runtime which will execute copy activity. - TimeToLive *int32 `json:"timeToLive,omitempty"` -} - -// MarshalJSON is the custom marshaler for CopyComputeScaleProperties. -func (ccsp CopyComputeScaleProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ccsp.DataIntegrationUnit != nil { - objectMap["dataIntegrationUnit"] = ccsp.DataIntegrationUnit - } - if ccsp.TimeToLive != nil { - objectMap["timeToLive"] = ccsp.TimeToLive - } - for k, v := range ccsp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for CopyComputeScaleProperties struct. -func (ccsp *CopyComputeScaleProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ccsp.AdditionalProperties == nil { - ccsp.AdditionalProperties = make(map[string]interface{}) - } - ccsp.AdditionalProperties[k] = additionalProperties - } - case "dataIntegrationUnit": - if v != nil { - var dataIntegrationUnit int32 - err = json.Unmarshal(*v, &dataIntegrationUnit) - if err != nil { - return err - } - ccsp.DataIntegrationUnit = &dataIntegrationUnit - } - case "timeToLive": - if v != nil { - var timeToLive int32 - err = json.Unmarshal(*v, &timeToLive) - if err != nil { - return err - } - ccsp.TimeToLive = &timeToLive - } - } - } - - return nil -} - -// BasicCopySink a copy activity sink. -type BasicCopySink interface { - AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) - AsSalesforceV2Sink() (*SalesforceV2Sink, bool) - AsLakeHouseTableSink() (*LakeHouseTableSink, bool) - AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) - AsMongoDbV2Sink() (*MongoDbV2Sink, bool) - AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) - AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) - AsSalesforceSink() (*SalesforceSink, bool) - AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) - AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) - AsDynamicsCrmSink() (*DynamicsCrmSink, bool) - AsDynamicsSink() (*DynamicsSink, bool) - AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) - AsInformixSink() (*InformixSink, bool) - AsOdbcSink() (*OdbcSink, bool) - AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) - AsAzureBlobFSSink() (*AzureBlobFSSink, bool) - AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) - AsOracleSink() (*OracleSink, bool) - AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) - AsSnowflakeSink() (*SnowflakeSink, bool) - AsSQLDWSink() (*SQLDWSink, bool) - AsSQLMISink() (*SQLMISink, bool) - AsAzureSQLSink() (*AzureSQLSink, bool) - AsSQLServerSink() (*SQLServerSink, bool) - AsSQLSink() (*SQLSink, bool) - AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) - AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) - AsFileSystemSink() (*FileSystemSink, bool) - AsBlobSink() (*BlobSink, bool) - AsBinarySink() (*BinarySink, bool) - AsParquetSink() (*ParquetSink, bool) - AsAvroSink() (*AvroSink, bool) - AsAzureTableSink() (*AzureTableSink, bool) - AsAzureQueueSink() (*AzureQueueSink, bool) - AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) - AsWarehouseSink() (*WarehouseSink, bool) - AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) - AsAzureMySQLSink() (*AzureMySQLSink, bool) - AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) - AsRestSink() (*RestSink, bool) - AsOrcSink() (*OrcSink, bool) - AsJSONSink() (*JSONSink, bool) - AsDelimitedTextSink() (*DelimitedTextSink, bool) - AsCopySink() (*CopySink, bool) -} - -// CopySink a copy activity sink. -type CopySink struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -func unmarshalBasicCopySink(body []byte) (BasicCopySink, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink): - var sscvs SalesforceServiceCloudV2Sink - err := json.Unmarshal(body, &sscvs) - return sscvs, err - case string(TypeBasicCopySinkTypeSalesforceV2Sink): - var svs SalesforceV2Sink - err := json.Unmarshal(body, &svs) - return svs, err - case string(TypeBasicCopySinkTypeLakeHouseTableSink): - var lhts LakeHouseTableSink - err := json.Unmarshal(body, &lhts) - return lhts, err - case string(TypeBasicCopySinkTypeCosmosDbMongoDbAPISink): - var cdmdas CosmosDbMongoDbAPISink - err := json.Unmarshal(body, &cdmdas) - return cdmdas, err - case string(TypeBasicCopySinkTypeMongoDbV2Sink): - var mdvs MongoDbV2Sink - err := json.Unmarshal(body, &mdvs) - return mdvs, err - case string(TypeBasicCopySinkTypeMongoDbAtlasSink): - var mdas MongoDbAtlasSink - err := json.Unmarshal(body, &mdas) - return mdas, err - case string(TypeBasicCopySinkTypeSalesforceServiceCloudSink): - var sscs SalesforceServiceCloudSink - err := json.Unmarshal(body, &sscs) - return sscs, err - case string(TypeBasicCopySinkTypeSalesforceSink): - var ss SalesforceSink - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySinkTypeAzureDataExplorerSink): - var ades AzureDataExplorerSink - err := json.Unmarshal(body, &ades) - return ades, err - case string(TypeBasicCopySinkTypeCommonDataServiceForAppsSink): - var cdsfas CommonDataServiceForAppsSink - err := json.Unmarshal(body, &cdsfas) - return cdsfas, err - case string(TypeBasicCopySinkTypeDynamicsCrmSink): - var dcs DynamicsCrmSink - err := json.Unmarshal(body, &dcs) - return dcs, err - case string(TypeBasicCopySinkTypeDynamicsSink): - var ds DynamicsSink - err := json.Unmarshal(body, &ds) - return ds, err - case string(TypeBasicCopySinkTypeMicrosoftAccessSink): - var mas MicrosoftAccessSink - err := json.Unmarshal(body, &mas) - return mas, err - case string(TypeBasicCopySinkTypeInformixSink): - var is InformixSink - err := json.Unmarshal(body, &is) - return is, err - case string(TypeBasicCopySinkTypeOdbcSink): - var osVar OdbcSink - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeBasicCopySinkTypeAzureSearchIndexSink): - var asis AzureSearchIndexSink - err := json.Unmarshal(body, &asis) - return asis, err - case string(TypeBasicCopySinkTypeAzureBlobFSSink): - var abfs AzureBlobFSSink - err := json.Unmarshal(body, &abfs) - return abfs, err - case string(TypeBasicCopySinkTypeAzureDataLakeStoreSink): - var adlss AzureDataLakeStoreSink - err := json.Unmarshal(body, &adlss) - return adlss, err - case string(TypeBasicCopySinkTypeOracleSink): - var osVar OracleSink - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeBasicCopySinkTypeSnowflakeV2Sink): - var svs SnowflakeV2Sink - err := json.Unmarshal(body, &svs) - return svs, err - case string(TypeBasicCopySinkTypeSnowflakeSink): - var ss SnowflakeSink - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySinkTypeSQLDWSink): - var sds SQLDWSink - err := json.Unmarshal(body, &sds) - return sds, err - case string(TypeBasicCopySinkTypeSQLMISink): - var sms SQLMISink - err := json.Unmarshal(body, &sms) - return sms, err - case string(TypeBasicCopySinkTypeAzureSQLSink): - var ass AzureSQLSink - err := json.Unmarshal(body, &ass) - return ass, err - case string(TypeBasicCopySinkTypeSQLServerSink): - var sss SQLServerSink - err := json.Unmarshal(body, &sss) - return sss, err - case string(TypeBasicCopySinkTypeSQLSink): - var ss SQLSink - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySinkTypeCosmosDbSQLAPISink): - var cdsas CosmosDbSQLAPISink - err := json.Unmarshal(body, &cdsas) - return cdsas, err - case string(TypeBasicCopySinkTypeDocumentDbCollectionSink): - var ddcs DocumentDbCollectionSink - err := json.Unmarshal(body, &ddcs) - return ddcs, err - case string(TypeBasicCopySinkTypeFileSystemSink): - var fss FileSystemSink - err := json.Unmarshal(body, &fss) - return fss, err - case string(TypeBasicCopySinkTypeBlobSink): - var bs BlobSink - err := json.Unmarshal(body, &bs) - return bs, err - case string(TypeBasicCopySinkTypeBinarySink): - var bs BinarySink - err := json.Unmarshal(body, &bs) - return bs, err - case string(TypeBasicCopySinkTypeParquetSink): - var ps ParquetSink - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeBasicCopySinkTypeAvroSink): - var as AvroSink - err := json.Unmarshal(body, &as) - return as, err - case string(TypeBasicCopySinkTypeAzureTableSink): - var ats AzureTableSink - err := json.Unmarshal(body, &ats) - return ats, err - case string(TypeBasicCopySinkTypeAzureQueueSink): - var aqs AzureQueueSink - err := json.Unmarshal(body, &aqs) - return aqs, err - case string(TypeBasicCopySinkTypeSapCloudForCustomerSink): - var scfcs SapCloudForCustomerSink - err := json.Unmarshal(body, &scfcs) - return scfcs, err - case string(TypeBasicCopySinkTypeWarehouseSink): - var ws WarehouseSink - err := json.Unmarshal(body, &ws) - return ws, err - case string(TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink): - var addls AzureDatabricksDeltaLakeSink - err := json.Unmarshal(body, &addls) - return addls, err - case string(TypeBasicCopySinkTypeAzureMySQLSink): - var amss AzureMySQLSink - err := json.Unmarshal(body, &amss) - return amss, err - case string(TypeBasicCopySinkTypeAzurePostgreSQLSink): - var apss AzurePostgreSQLSink - err := json.Unmarshal(body, &apss) - return apss, err - case string(TypeBasicCopySinkTypeRestSink): - var rs RestSink - err := json.Unmarshal(body, &rs) - return rs, err - case string(TypeBasicCopySinkTypeOrcSink): - var osVar OrcSink - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeBasicCopySinkTypeJSONSink): - var js JSONSink - err := json.Unmarshal(body, &js) - return js, err - case string(TypeBasicCopySinkTypeDelimitedTextSink): - var dts DelimitedTextSink - err := json.Unmarshal(body, &dts) - return dts, err - default: - var cs CopySink - err := json.Unmarshal(body, &cs) - return cs, err - } -} -func unmarshalBasicCopySinkArray(body []byte) ([]BasicCopySink, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - csArray := make([]BasicCopySink, len(rawMessages)) - - for index, rawMessage := range rawMessages { - cs, err := unmarshalBasicCopySink(*rawMessage) - if err != nil { - return nil, err - } - csArray[index] = cs - } - return csArray, nil -} - -// MarshalJSON is the custom marshaler for CopySink. -func (cs CopySink) MarshalJSON() ([]byte, error) { - cs.Type = TypeBasicCopySinkTypeCopySink - objectMap := make(map[string]interface{}) - if cs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = cs.WriteBatchSize - } - if cs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = cs.WriteBatchTimeout - } - if cs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = cs.SinkRetryCount - } - if cs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = cs.SinkRetryWait - } - if cs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections - } - if cs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection - } - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsCopySink() (*CopySink, bool) { - return &cs, true -} - -// AsBasicCopySink is the BasicCopySink implementation for CopySink. -func (cs CopySink) AsBasicCopySink() (BasicCopySink, bool) { - return &cs, true -} - -// UnmarshalJSON is the custom unmarshaler for CopySink struct. -func (cs *CopySink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cs.AdditionalProperties == nil { - cs.AdditionalProperties = make(map[string]interface{}) - } - cs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - cs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - cs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - cs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - cs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cs.Type = typeVar - } - } - } - - return nil -} - -// BasicCopySource a copy activity source. -type BasicCopySource interface { - AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) - AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) - AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) - AsSnowflakeV2Source() (*SnowflakeV2Source, bool) - AsSnowflakeSource() (*SnowflakeSource, bool) - AsLakeHouseTableSource() (*LakeHouseTableSource, bool) - AsHTTPSource() (*HTTPSource, bool) - AsAzureBlobFSSource() (*AzureBlobFSSource, bool) - AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) - AsOffice365Source() (*Office365Source, bool) - AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) - AsMongoDbV2Source() (*MongoDbV2Source, bool) - AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) - AsMongoDbSource() (*MongoDbSource, bool) - AsWebSource() (*WebSource, bool) - AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) - AsOracleSource() (*OracleSource, bool) - AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) - AsHdfsSource() (*HdfsSource, bool) - AsFileSystemSource() (*FileSystemSource, bool) - AsRestSource() (*RestSource, bool) - AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) - AsODataSource() (*ODataSource, bool) - AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) - AsRelationalSource() (*RelationalSource, bool) - AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) - AsDynamicsCrmSource() (*DynamicsCrmSource, bool) - AsDynamicsSource() (*DynamicsSource, bool) - AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) - AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) - AsBlobSource() (*BlobSource, bool) - AsSalesforceV2Source() (*SalesforceV2Source, bool) - AsWarehouseSource() (*WarehouseSource, bool) - AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) - AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) - AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) - AsDynamicsAXSource() (*DynamicsAXSource, bool) - AsResponsysSource() (*ResponsysSource, bool) - AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) - AsVerticaSource() (*VerticaSource, bool) - AsNetezzaSource() (*NetezzaSource, bool) - AsZohoSource() (*ZohoSource, bool) - AsXeroSource() (*XeroSource, bool) - AsSquareSource() (*SquareSource, bool) - AsSparkSource() (*SparkSource, bool) - AsShopifySource() (*ShopifySource, bool) - AsServiceNowSource() (*ServiceNowSource, bool) - AsQuickBooksSource() (*QuickBooksSource, bool) - AsPrestoSource() (*PrestoSource, bool) - AsPhoenixSource() (*PhoenixSource, bool) - AsPaypalSource() (*PaypalSource, bool) - AsMarketoSource() (*MarketoSource, bool) - AsAzureMariaDBSource() (*AzureMariaDBSource, bool) - AsMariaDBSource() (*MariaDBSource, bool) - AsMagentoSource() (*MagentoSource, bool) - AsJiraSource() (*JiraSource, bool) - AsImpalaSource() (*ImpalaSource, bool) - AsHubspotSource() (*HubspotSource, bool) - AsHiveSource() (*HiveSource, bool) - AsHBaseSource() (*HBaseSource, bool) - AsGreenplumSource() (*GreenplumSource, bool) - AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) - AsEloquaSource() (*EloquaSource, bool) - AsDrillSource() (*DrillSource, bool) - AsCouchbaseSource() (*CouchbaseSource, bool) - AsConcurSource() (*ConcurSource, bool) - AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) - AsAmazonMWSSource() (*AmazonMWSSource, bool) - AsCassandraSource() (*CassandraSource, bool) - AsTeradataSource() (*TeradataSource, bool) - AsAzureMySQLSource() (*AzureMySQLSource, bool) - AsSQLDWSource() (*SQLDWSource, bool) - AsSQLMISource() (*SQLMISource, bool) - AsAzureSQLSource() (*AzureSQLSource, bool) - AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) - AsSQLServerSource() (*SQLServerSource, bool) - AsSQLSource() (*SQLSource, bool) - AsSapTableSource() (*SapTableSource, bool) - AsSapOdpSource() (*SapOdpSource, bool) - AsSapOpenHubSource() (*SapOpenHubSource, bool) - AsSapHanaSource() (*SapHanaSource, bool) - AsSapEccSource() (*SapEccSource, bool) - AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) - AsSalesforceSource() (*SalesforceSource, bool) - AsSapBwSource() (*SapBwSource, bool) - AsSybaseSource() (*SybaseSource, bool) - AsPostgreSQLSource() (*PostgreSQLSource, bool) - AsMySQLSource() (*MySQLSource, bool) - AsOdbcSource() (*OdbcSource, bool) - AsDb2Source() (*Db2Source, bool) - AsInformixSource() (*InformixSource, bool) - AsAzureTableSource() (*AzureTableSource, bool) - AsTabularSource() (*TabularSource, bool) - AsBasicTabularSource() (BasicTabularSource, bool) - AsBinarySource() (*BinarySource, bool) - AsOrcSource() (*OrcSource, bool) - AsXMLSource() (*XMLSource, bool) - AsJSONSource() (*JSONSource, bool) - AsDelimitedTextSource() (*DelimitedTextSource, bool) - AsParquetSource() (*ParquetSource, bool) - AsExcelSource() (*ExcelSource, bool) - AsAvroSource() (*AvroSource, bool) - AsCopySource() (*CopySource, bool) -} - -// CopySource a copy activity source. -type CopySource struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -func unmarshalBasicCopySource(body []byte) (BasicCopySource, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicCopySourceTypeSalesforceServiceCloudV2Source): - var sscvs SalesforceServiceCloudV2Source - err := json.Unmarshal(body, &sscvs) - return sscvs, err - case string(TypeBasicCopySourceTypeSharePointOnlineListSource): - var spols SharePointOnlineListSource - err := json.Unmarshal(body, &spols) - return spols, err - case string(TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource): - var addls AzureDatabricksDeltaLakeSource - err := json.Unmarshal(body, &addls) - return addls, err - case string(TypeBasicCopySourceTypeSnowflakeV2Source): - var svs SnowflakeV2Source - err := json.Unmarshal(body, &svs) - return svs, err - case string(TypeBasicCopySourceTypeSnowflakeSource): - var ss SnowflakeSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeLakeHouseTableSource): - var lhts LakeHouseTableSource - err := json.Unmarshal(body, &lhts) - return lhts, err - case string(TypeBasicCopySourceTypeHTTPSource): - var hs HTTPSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeBasicCopySourceTypeAzureBlobFSSource): - var abfs AzureBlobFSSource - err := json.Unmarshal(body, &abfs) - return abfs, err - case string(TypeBasicCopySourceTypeAzureDataLakeStoreSource): - var adlss AzureDataLakeStoreSource - err := json.Unmarshal(body, &adlss) - return adlss, err - case string(TypeBasicCopySourceTypeOffice365Source): - var o3s Office365Source - err := json.Unmarshal(body, &o3s) - return o3s, err - case string(TypeBasicCopySourceTypeCosmosDbMongoDbAPISource): - var cdmdas CosmosDbMongoDbAPISource - err := json.Unmarshal(body, &cdmdas) - return cdmdas, err - case string(TypeBasicCopySourceTypeMongoDbV2Source): - var mdvs MongoDbV2Source - err := json.Unmarshal(body, &mdvs) - return mdvs, err - case string(TypeBasicCopySourceTypeMongoDbAtlasSource): - var mdas MongoDbAtlasSource - err := json.Unmarshal(body, &mdas) - return mdas, err - case string(TypeBasicCopySourceTypeMongoDbSource): - var mds MongoDbSource - err := json.Unmarshal(body, &mds) - return mds, err - case string(TypeBasicCopySourceTypeWebSource): - var ws WebSource - err := json.Unmarshal(body, &ws) - return ws, err - case string(TypeBasicCopySourceTypeAmazonRdsForOracleSource): - var arfos AmazonRdsForOracleSource - err := json.Unmarshal(body, &arfos) - return arfos, err - case string(TypeBasicCopySourceTypeOracleSource): - var osVar OracleSource - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeBasicCopySourceTypeAzureDataExplorerSource): - var ades AzureDataExplorerSource - err := json.Unmarshal(body, &ades) - return ades, err - case string(TypeBasicCopySourceTypeHdfsSource): - var hs HdfsSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeBasicCopySourceTypeFileSystemSource): - var fss FileSystemSource - err := json.Unmarshal(body, &fss) - return fss, err - case string(TypeBasicCopySourceTypeRestSource): - var rs RestSource - err := json.Unmarshal(body, &rs) - return rs, err - case string(TypeBasicCopySourceTypeSalesforceServiceCloudSource): - var sscs SalesforceServiceCloudSource - err := json.Unmarshal(body, &sscs) - return sscs, err - case string(TypeBasicCopySourceTypeODataSource): - var ods ODataSource - err := json.Unmarshal(body, &ods) - return ods, err - case string(TypeBasicCopySourceTypeMicrosoftAccessSource): - var mas MicrosoftAccessSource - err := json.Unmarshal(body, &mas) - return mas, err - case string(TypeBasicCopySourceTypeRelationalSource): - var rs RelationalSource - err := json.Unmarshal(body, &rs) - return rs, err - case string(TypeBasicCopySourceTypeCommonDataServiceForAppsSource): - var cdsfas CommonDataServiceForAppsSource - err := json.Unmarshal(body, &cdsfas) - return cdsfas, err - case string(TypeBasicCopySourceTypeDynamicsCrmSource): - var dcs DynamicsCrmSource - err := json.Unmarshal(body, &dcs) - return dcs, err - case string(TypeBasicCopySourceTypeDynamicsSource): - var ds DynamicsSource - err := json.Unmarshal(body, &ds) - return ds, err - case string(TypeBasicCopySourceTypeCosmosDbSQLAPISource): - var cdsas CosmosDbSQLAPISource - err := json.Unmarshal(body, &cdsas) - return cdsas, err - case string(TypeBasicCopySourceTypeDocumentDbCollectionSource): - var ddcs DocumentDbCollectionSource - err := json.Unmarshal(body, &ddcs) - return ddcs, err - case string(TypeBasicCopySourceTypeBlobSource): - var bs BlobSource - err := json.Unmarshal(body, &bs) - return bs, err - case string(TypeBasicCopySourceTypeSalesforceV2Source): - var svs SalesforceV2Source - err := json.Unmarshal(body, &svs) - return svs, err - case string(TypeBasicCopySourceTypeWarehouseSource): - var ws WarehouseSource - err := json.Unmarshal(body, &ws) - return ws, err - case string(TypeBasicCopySourceTypeAmazonRedshiftSource): - var ars AmazonRedshiftSource - err := json.Unmarshal(body, &ars) - return ars, err - case string(TypeBasicCopySourceTypeGoogleAdWordsSource): - var gaws GoogleAdWordsSource - err := json.Unmarshal(body, &gaws) - return gaws, err - case string(TypeBasicCopySourceTypeOracleServiceCloudSource): - var oscs OracleServiceCloudSource - err := json.Unmarshal(body, &oscs) - return oscs, err - case string(TypeBasicCopySourceTypeDynamicsAXSource): - var das DynamicsAXSource - err := json.Unmarshal(body, &das) - return das, err - case string(TypeBasicCopySourceTypeResponsysSource): - var rs ResponsysSource - err := json.Unmarshal(body, &rs) - return rs, err - case string(TypeBasicCopySourceTypeSalesforceMarketingCloudSource): - var smcs SalesforceMarketingCloudSource - err := json.Unmarshal(body, &smcs) - return smcs, err - case string(TypeBasicCopySourceTypeVerticaSource): - var vs VerticaSource - err := json.Unmarshal(body, &vs) - return vs, err - case string(TypeBasicCopySourceTypeNetezzaSource): - var ns NetezzaSource - err := json.Unmarshal(body, &ns) - return ns, err - case string(TypeBasicCopySourceTypeZohoSource): - var zs ZohoSource - err := json.Unmarshal(body, &zs) - return zs, err - case string(TypeBasicCopySourceTypeXeroSource): - var xs XeroSource - err := json.Unmarshal(body, &xs) - return xs, err - case string(TypeBasicCopySourceTypeSquareSource): - var ss SquareSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeSparkSource): - var ss SparkSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeShopifySource): - var ss ShopifySource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeServiceNowSource): - var sns ServiceNowSource - err := json.Unmarshal(body, &sns) - return sns, err - case string(TypeBasicCopySourceTypeQuickBooksSource): - var qbs QuickBooksSource - err := json.Unmarshal(body, &qbs) - return qbs, err - case string(TypeBasicCopySourceTypePrestoSource): - var ps PrestoSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeBasicCopySourceTypePhoenixSource): - var ps PhoenixSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeBasicCopySourceTypePaypalSource): - var ps PaypalSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeBasicCopySourceTypeMarketoSource): - var ms MarketoSource - err := json.Unmarshal(body, &ms) - return ms, err - case string(TypeBasicCopySourceTypeAzureMariaDBSource): - var amds AzureMariaDBSource - err := json.Unmarshal(body, &amds) - return amds, err - case string(TypeBasicCopySourceTypeMariaDBSource): - var mds MariaDBSource - err := json.Unmarshal(body, &mds) - return mds, err - case string(TypeBasicCopySourceTypeMagentoSource): - var ms MagentoSource - err := json.Unmarshal(body, &ms) - return ms, err - case string(TypeBasicCopySourceTypeJiraSource): - var js JiraSource - err := json.Unmarshal(body, &js) - return js, err - case string(TypeBasicCopySourceTypeImpalaSource): - var is ImpalaSource - err := json.Unmarshal(body, &is) - return is, err - case string(TypeBasicCopySourceTypeHubspotSource): - var hs HubspotSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeBasicCopySourceTypeHiveSource): - var hs HiveSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeBasicCopySourceTypeHBaseSource): - var hbs HBaseSource - err := json.Unmarshal(body, &hbs) - return hbs, err - case string(TypeBasicCopySourceTypeGreenplumSource): - var gs GreenplumSource - err := json.Unmarshal(body, &gs) - return gs, err - case string(TypeBasicCopySourceTypeGoogleBigQuerySource): - var gbqs GoogleBigQuerySource - err := json.Unmarshal(body, &gbqs) - return gbqs, err - case string(TypeBasicCopySourceTypeEloquaSource): - var es EloquaSource - err := json.Unmarshal(body, &es) - return es, err - case string(TypeBasicCopySourceTypeDrillSource): - var ds DrillSource - err := json.Unmarshal(body, &ds) - return ds, err - case string(TypeBasicCopySourceTypeCouchbaseSource): - var cs CouchbaseSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeBasicCopySourceTypeConcurSource): - var cs ConcurSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeBasicCopySourceTypeAzurePostgreSQLSource): - var apss AzurePostgreSQLSource - err := json.Unmarshal(body, &apss) - return apss, err - case string(TypeBasicCopySourceTypeAmazonMWSSource): - var ams AmazonMWSSource - err := json.Unmarshal(body, &ams) - return ams, err - case string(TypeBasicCopySourceTypeCassandraSource): - var cs CassandraSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeBasicCopySourceTypeTeradataSource): - var ts TeradataSource - err := json.Unmarshal(body, &ts) - return ts, err - case string(TypeBasicCopySourceTypeAzureMySQLSource): - var amss AzureMySQLSource - err := json.Unmarshal(body, &amss) - return amss, err - case string(TypeBasicCopySourceTypeSQLDWSource): - var sds SQLDWSource - err := json.Unmarshal(body, &sds) - return sds, err - case string(TypeBasicCopySourceTypeSQLMISource): - var sms SQLMISource - err := json.Unmarshal(body, &sms) - return sms, err - case string(TypeBasicCopySourceTypeAzureSQLSource): - var ass AzureSQLSource - err := json.Unmarshal(body, &ass) - return ass, err - case string(TypeBasicCopySourceTypeAmazonRdsForSQLServerSource): - var arfsss AmazonRdsForSQLServerSource - err := json.Unmarshal(body, &arfsss) - return arfsss, err - case string(TypeBasicCopySourceTypeSQLServerSource): - var sss SQLServerSource - err := json.Unmarshal(body, &sss) - return sss, err - case string(TypeBasicCopySourceTypeSQLSource): - var ss SQLSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeSapTableSource): - var sts SapTableSource - err := json.Unmarshal(body, &sts) - return sts, err - case string(TypeBasicCopySourceTypeSapOdpSource): - var sos SapOdpSource - err := json.Unmarshal(body, &sos) - return sos, err - case string(TypeBasicCopySourceTypeSapOpenHubSource): - var sohs SapOpenHubSource - err := json.Unmarshal(body, &sohs) - return sohs, err - case string(TypeBasicCopySourceTypeSapHanaSource): - var shs SapHanaSource - err := json.Unmarshal(body, &shs) - return shs, err - case string(TypeBasicCopySourceTypeSapEccSource): - var ses SapEccSource - err := json.Unmarshal(body, &ses) - return ses, err - case string(TypeBasicCopySourceTypeSapCloudForCustomerSource): - var scfcs SapCloudForCustomerSource - err := json.Unmarshal(body, &scfcs) - return scfcs, err - case string(TypeBasicCopySourceTypeSalesforceSource): - var ss SalesforceSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeSapBwSource): - var sbs SapBwSource - err := json.Unmarshal(body, &sbs) - return sbs, err - case string(TypeBasicCopySourceTypeSybaseSource): - var ss SybaseSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypePostgreSQLSource): - var pss PostgreSQLSource - err := json.Unmarshal(body, &pss) - return pss, err - case string(TypeBasicCopySourceTypeMySQLSource): - var mss MySQLSource - err := json.Unmarshal(body, &mss) - return mss, err - case string(TypeBasicCopySourceTypeOdbcSource): - var osVar OdbcSource - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeBasicCopySourceTypeDb2Source): - var d2s Db2Source - err := json.Unmarshal(body, &d2s) - return d2s, err - case string(TypeBasicCopySourceTypeInformixSource): - var is InformixSource - err := json.Unmarshal(body, &is) - return is, err - case string(TypeBasicCopySourceTypeAzureTableSource): - var ats AzureTableSource - err := json.Unmarshal(body, &ats) - return ats, err - case string(TypeBasicCopySourceTypeTabularSource): - var ts TabularSource - err := json.Unmarshal(body, &ts) - return ts, err - case string(TypeBasicCopySourceTypeBinarySource): - var bs BinarySource - err := json.Unmarshal(body, &bs) - return bs, err - case string(TypeBasicCopySourceTypeOrcSource): - var osVar OrcSource - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeBasicCopySourceTypeXMLSource): - var xs XMLSource - err := json.Unmarshal(body, &xs) - return xs, err - case string(TypeBasicCopySourceTypeJSONSource): - var js JSONSource - err := json.Unmarshal(body, &js) - return js, err - case string(TypeBasicCopySourceTypeDelimitedTextSource): - var dts DelimitedTextSource - err := json.Unmarshal(body, &dts) - return dts, err - case string(TypeBasicCopySourceTypeParquetSource): - var ps ParquetSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeBasicCopySourceTypeExcelSource): - var es ExcelSource - err := json.Unmarshal(body, &es) - return es, err - case string(TypeBasicCopySourceTypeAvroSource): - var as AvroSource - err := json.Unmarshal(body, &as) - return as, err - default: - var cs CopySource - err := json.Unmarshal(body, &cs) - return cs, err - } -} -func unmarshalBasicCopySourceArray(body []byte) ([]BasicCopySource, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - csArray := make([]BasicCopySource, len(rawMessages)) - - for index, rawMessage := range rawMessages { - cs, err := unmarshalBasicCopySource(*rawMessage) - if err != nil { - return nil, err - } - csArray[index] = cs - } - return csArray, nil -} - -// MarshalJSON is the custom marshaler for CopySource. -func (cs CopySource) MarshalJSON() ([]byte, error) { - cs.Type = TypeBasicCopySourceTypeCopySource - objectMap := make(map[string]interface{}) - if cs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = cs.SourceRetryCount - } - if cs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = cs.SourceRetryWait - } - if cs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections - } - if cs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection - } - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsCopySource() (*CopySource, bool) { - return &cs, true -} - -// AsBasicCopySource is the BasicCopySource implementation for CopySource. -func (cs CopySource) AsBasicCopySource() (BasicCopySource, bool) { - return &cs, true -} - -// UnmarshalJSON is the custom unmarshaler for CopySource struct. -func (cs *CopySource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cs.AdditionalProperties == nil { - cs.AdditionalProperties = make(map[string]interface{}) - } - cs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - cs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - cs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cs.Type = typeVar - } - } - } - - return nil -} - -// BasicCopyTranslator a copy activity translator. -type BasicCopyTranslator interface { - AsTabularTranslator() (*TabularTranslator, bool) - AsCopyTranslator() (*CopyTranslator, bool) -} - -// CopyTranslator a copy activity translator. -type CopyTranslator struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicCopyTranslatorTypeCopyTranslator', 'TypeBasicCopyTranslatorTypeTabularTranslator' - Type TypeBasicCopyTranslator `json:"type,omitempty"` -} - -func unmarshalBasicCopyTranslator(body []byte) (BasicCopyTranslator, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicCopyTranslatorTypeTabularTranslator): - var tt TabularTranslator - err := json.Unmarshal(body, &tt) - return tt, err - default: - var ct CopyTranslator - err := json.Unmarshal(body, &ct) - return ct, err - } -} -func unmarshalBasicCopyTranslatorArray(body []byte) ([]BasicCopyTranslator, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - ctArray := make([]BasicCopyTranslator, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ct, err := unmarshalBasicCopyTranslator(*rawMessage) - if err != nil { - return nil, err - } - ctArray[index] = ct - } - return ctArray, nil -} - -// MarshalJSON is the custom marshaler for CopyTranslator. -func (ct CopyTranslator) MarshalJSON() ([]byte, error) { - ct.Type = TypeBasicCopyTranslatorTypeCopyTranslator - objectMap := make(map[string]interface{}) - if ct.Type != "" { - objectMap["type"] = ct.Type - } - for k, v := range ct.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsTabularTranslator is the BasicCopyTranslator implementation for CopyTranslator. -func (ct CopyTranslator) AsTabularTranslator() (*TabularTranslator, bool) { - return nil, false -} - -// AsCopyTranslator is the BasicCopyTranslator implementation for CopyTranslator. -func (ct CopyTranslator) AsCopyTranslator() (*CopyTranslator, bool) { - return &ct, true -} - -// AsBasicCopyTranslator is the BasicCopyTranslator implementation for CopyTranslator. -func (ct CopyTranslator) AsBasicCopyTranslator() (BasicCopyTranslator, bool) { - return &ct, true -} - -// UnmarshalJSON is the custom unmarshaler for CopyTranslator struct. -func (ct *CopyTranslator) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ct.AdditionalProperties == nil { - ct.AdditionalProperties = make(map[string]interface{}) - } - ct.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCopyTranslator - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ct.Type = typeVar - } - } - } - - return nil -} - -// CosmosDbLinkedService microsoft Azure Cosmos Database (CosmosDB) linked service. -type CosmosDbLinkedService struct { - // CosmosDbLinkedServiceTypeProperties - CosmosDB linked service properties. - *CosmosDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) MarshalJSON() ([]byte, error) { - cdls.Type = TypeBasicLinkedServiceTypeCosmosDb - objectMap := make(map[string]interface{}) - if cdls.CosmosDbLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cdls.CosmosDbLinkedServiceTypeProperties - } - if cdls.ConnectVia != nil { - objectMap["connectVia"] = cdls.ConnectVia - } - if cdls.Description != nil { - objectMap["description"] = cdls.Description - } - if cdls.Parameters != nil { - objectMap["parameters"] = cdls.Parameters - } - if cdls.Annotations != nil { - objectMap["annotations"] = cdls.Annotations - } - if cdls.Type != "" { - objectMap["type"] = cdls.Type - } - for k, v := range cdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return &cdls, true -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for CosmosDbLinkedService. -func (cdls CosmosDbLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cdls, true -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbLinkedService struct. -func (cdls *CosmosDbLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cosmosDbLinkedServiceTypeProperties CosmosDbLinkedServiceTypeProperties - err = json.Unmarshal(*v, &cosmosDbLinkedServiceTypeProperties) - if err != nil { - return err - } - cdls.CosmosDbLinkedServiceTypeProperties = &cosmosDbLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdls.AdditionalProperties == nil { - cdls.AdditionalProperties = make(map[string]interface{}) - } - cdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdls.Type = typeVar - } - } - } - - return nil -} - -// CosmosDbLinkedServiceTypeProperties cosmosDB linked service properties. -type CosmosDbLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // AccountEndpoint - The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string) - AccountEndpoint interface{} `json:"accountEndpoint,omitempty"` - // Database - The name of the database. Type: string (or Expression with resultType string) - Database interface{} `json:"database,omitempty"` - // AccountKey - The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference. - AccountKey BasicSecretBase `json:"accountKey,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalCredentialType - The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string. - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` - // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` - // Tenant - 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"` - // AzureCloudType - 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"` - // ConnectionMode - The connection mode used to access CosmosDB account. Type: string. Possible values include: 'CosmosDbConnectionModeGateway', 'CosmosDbConnectionModeDirect' - ConnectionMode CosmosDbConnectionMode `json:"connectionMode,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbLinkedServiceTypeProperties struct. -func (cdlstp *CosmosDbLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - cdlstp.ConnectionString = connectionString - } - case "accountEndpoint": - if v != nil { - var accountEndpoint interface{} - err = json.Unmarshal(*v, &accountEndpoint) - if err != nil { - return err - } - cdlstp.AccountEndpoint = accountEndpoint - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - cdlstp.Database = databaseVar - } - case "accountKey": - if v != nil { - accountKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - cdlstp.AccountKey = accountKey - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - cdlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalCredentialType": - if v != nil { - var servicePrincipalCredentialType interface{} - err = json.Unmarshal(*v, &servicePrincipalCredentialType) - if err != nil { - return err - } - cdlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType - } - case "servicePrincipalCredential": - if v != nil { - servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - cdlstp.ServicePrincipalCredential = servicePrincipalCredential - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - cdlstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - cdlstp.AzureCloudType = azureCloudType - } - case "connectionMode": - if v != nil { - var connectionMode CosmosDbConnectionMode - err = json.Unmarshal(*v, &connectionMode) - if err != nil { - return err - } - cdlstp.ConnectionMode = connectionMode - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - cdlstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - cdlstp.Credential = &credential - } - } - } - - return nil -} - -// CosmosDbMongoDbAPICollectionDataset the CosmosDB (MongoDB API) database dataset. -type CosmosDbMongoDbAPICollectionDataset struct { - // CosmosDbMongoDbAPICollectionDatasetTypeProperties - CosmosDB (MongoDB API) database dataset properties. - *CosmosDbMongoDbAPICollectionDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) MarshalJSON() ([]byte, error) { - cdmdacd.Type = TypeBasicDatasetTypeCosmosDbMongoDbAPICollection - objectMap := make(map[string]interface{}) - if cdmdacd.CosmosDbMongoDbAPICollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = cdmdacd.CosmosDbMongoDbAPICollectionDatasetTypeProperties - } - if cdmdacd.Description != nil { - objectMap["description"] = cdmdacd.Description - } - if cdmdacd.Structure != nil { - objectMap["structure"] = cdmdacd.Structure - } - if cdmdacd.Schema != nil { - objectMap["schema"] = cdmdacd.Schema - } - if cdmdacd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = cdmdacd.LinkedServiceName - } - if cdmdacd.Parameters != nil { - objectMap["parameters"] = cdmdacd.Parameters - } - if cdmdacd.Annotations != nil { - objectMap["annotations"] = cdmdacd.Annotations - } - if cdmdacd.Folder != nil { - objectMap["folder"] = cdmdacd.Folder - } - if cdmdacd.Type != "" { - objectMap["type"] = cdmdacd.Type - } - for k, v := range cdmdacd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return &cdmdacd, true -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for CosmosDbMongoDbAPICollectionDataset. -func (cdmdacd CosmosDbMongoDbAPICollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &cdmdacd, true -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbMongoDbAPICollectionDataset struct. -func (cdmdacd *CosmosDbMongoDbAPICollectionDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cosmosDbMongoDbAPICollectionDatasetTypeProperties CosmosDbMongoDbAPICollectionDatasetTypeProperties - err = json.Unmarshal(*v, &cosmosDbMongoDbAPICollectionDatasetTypeProperties) - if err != nil { - return err - } - cdmdacd.CosmosDbMongoDbAPICollectionDatasetTypeProperties = &cosmosDbMongoDbAPICollectionDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdmdacd.AdditionalProperties == nil { - cdmdacd.AdditionalProperties = make(map[string]interface{}) - } - cdmdacd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdmdacd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - cdmdacd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - cdmdacd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - cdmdacd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdmdacd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdmdacd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - cdmdacd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdmdacd.Type = typeVar - } - } - } - - return nil -} - -// CosmosDbMongoDbAPICollectionDatasetTypeProperties cosmosDB (MongoDB API) database dataset properties. -type CosmosDbMongoDbAPICollectionDatasetTypeProperties struct { - // Collection - The collection name of the CosmosDB (MongoDB API) database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` -} - -// CosmosDbMongoDbAPILinkedService linked service for CosmosDB (MongoDB API) data source. -type CosmosDbMongoDbAPILinkedService struct { - // CosmosDbMongoDbAPILinkedServiceTypeProperties - CosmosDB (MongoDB API) linked service properties. - *CosmosDbMongoDbAPILinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) MarshalJSON() ([]byte, error) { - cdmdals.Type = TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI - objectMap := make(map[string]interface{}) - if cdmdals.CosmosDbMongoDbAPILinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cdmdals.CosmosDbMongoDbAPILinkedServiceTypeProperties - } - if cdmdals.ConnectVia != nil { - objectMap["connectVia"] = cdmdals.ConnectVia - } - if cdmdals.Description != nil { - objectMap["description"] = cdmdals.Description - } - if cdmdals.Parameters != nil { - objectMap["parameters"] = cdmdals.Parameters - } - if cdmdals.Annotations != nil { - objectMap["annotations"] = cdmdals.Annotations - } - if cdmdals.Type != "" { - objectMap["type"] = cdmdals.Type - } - for k, v := range cdmdals.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return &cdmdals, true -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for CosmosDbMongoDbAPILinkedService. -func (cdmdals CosmosDbMongoDbAPILinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cdmdals, true -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbMongoDbAPILinkedService struct. -func (cdmdals *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cosmosDbMongoDbAPILinkedServiceTypeProperties CosmosDbMongoDbAPILinkedServiceTypeProperties - err = json.Unmarshal(*v, &cosmosDbMongoDbAPILinkedServiceTypeProperties) - if err != nil { - return err - } - cdmdals.CosmosDbMongoDbAPILinkedServiceTypeProperties = &cosmosDbMongoDbAPILinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdmdals.AdditionalProperties == nil { - cdmdals.AdditionalProperties = make(map[string]interface{}) - } - cdmdals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cdmdals.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdmdals.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdmdals.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdmdals.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdmdals.Type = typeVar - } - } - } - - return nil -} - -// CosmosDbMongoDbAPILinkedServiceTypeProperties cosmosDB (MongoDB API) linked service properties. -type CosmosDbMongoDbAPILinkedServiceTypeProperties struct { - // IsServerVersionAbove32 - 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"` - // ConnectionString - The CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Database - 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"` -} - -// CosmosDbMongoDbAPISink a copy activity sink for a CosmosDB (MongoDB API) database. -type CosmosDbMongoDbAPISink struct { - // WriteBehavior - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) MarshalJSON() ([]byte, error) { - cdmdas.Type = TypeBasicCopySinkTypeCosmosDbMongoDbAPISink - objectMap := make(map[string]interface{}) - if cdmdas.WriteBehavior != nil { - objectMap["writeBehavior"] = cdmdas.WriteBehavior - } - if cdmdas.WriteBatchSize != nil { - objectMap["writeBatchSize"] = cdmdas.WriteBatchSize - } - if cdmdas.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = cdmdas.WriteBatchTimeout - } - if cdmdas.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = cdmdas.SinkRetryCount - } - if cdmdas.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = cdmdas.SinkRetryWait - } - if cdmdas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cdmdas.MaxConcurrentConnections - } - if cdmdas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cdmdas.DisableMetricsCollection - } - if cdmdas.Type != "" { - objectMap["type"] = cdmdas.Type - } - for k, v := range cdmdas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return &cdmdas, true -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for CosmosDbMongoDbAPISink. -func (cdmdas CosmosDbMongoDbAPISink) AsBasicCopySink() (BasicCopySink, bool) { - return &cdmdas, true -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbMongoDbAPISink struct. -func (cdmdas *CosmosDbMongoDbAPISink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - cdmdas.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdmdas.AdditionalProperties == nil { - cdmdas.AdditionalProperties = make(map[string]interface{}) - } - cdmdas.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - cdmdas.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - cdmdas.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - cdmdas.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - cdmdas.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cdmdas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cdmdas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdmdas.Type = typeVar - } - } - } - - return nil -} - -// CosmosDbMongoDbAPISource a copy activity source for a CosmosDB (MongoDB API) database. -type CosmosDbMongoDbAPISource struct { - // Filter - 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"` - // CursorMethods - Cursor methods for Mongodb query. - CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` - // BatchSize - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) MarshalJSON() ([]byte, error) { - cdmdas.Type = TypeBasicCopySourceTypeCosmosDbMongoDbAPISource - objectMap := make(map[string]interface{}) - if cdmdas.Filter != nil { - objectMap["filter"] = cdmdas.Filter - } - if cdmdas.CursorMethods != nil { - objectMap["cursorMethods"] = cdmdas.CursorMethods - } - if cdmdas.BatchSize != nil { - objectMap["batchSize"] = cdmdas.BatchSize - } - if cdmdas.QueryTimeout != nil { - objectMap["queryTimeout"] = cdmdas.QueryTimeout - } - if cdmdas.AdditionalColumns != nil { - objectMap["additionalColumns"] = cdmdas.AdditionalColumns - } - if cdmdas.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = cdmdas.SourceRetryCount - } - if cdmdas.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = cdmdas.SourceRetryWait - } - if cdmdas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cdmdas.MaxConcurrentConnections - } - if cdmdas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cdmdas.DisableMetricsCollection - } - if cdmdas.Type != "" { - objectMap["type"] = cdmdas.Type - } - for k, v := range cdmdas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return &cdmdas, true -} - -// AsMongoDbV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for CosmosDbMongoDbAPISource. -func (cdmdas CosmosDbMongoDbAPISource) AsBasicCopySource() (BasicCopySource, bool) { - return &cdmdas, true -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbMongoDbAPISource struct. -func (cdmdas *CosmosDbMongoDbAPISource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "filter": - if v != nil { - var filter interface{} - err = json.Unmarshal(*v, &filter) - if err != nil { - return err - } - cdmdas.Filter = filter - } - case "cursorMethods": - if v != nil { - var cursorMethods MongoDbCursorMethodsProperties - err = json.Unmarshal(*v, &cursorMethods) - if err != nil { - return err - } - cdmdas.CursorMethods = &cursorMethods - } - case "batchSize": - if v != nil { - var batchSize interface{} - err = json.Unmarshal(*v, &batchSize) - if err != nil { - return err - } - cdmdas.BatchSize = batchSize - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - cdmdas.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - cdmdas.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdmdas.AdditionalProperties == nil { - cdmdas.AdditionalProperties = make(map[string]interface{}) - } - cdmdas.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - cdmdas.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - cdmdas.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cdmdas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cdmdas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdmdas.Type = typeVar - } - } - } - - return nil -} - -// CosmosDbSQLAPICollectionDataset microsoft Azure CosmosDB (SQL API) Collection dataset. -type CosmosDbSQLAPICollectionDataset struct { - // CosmosDbSQLAPICollectionDatasetTypeProperties - CosmosDB (SQL API) Collection dataset properties. - *CosmosDbSQLAPICollectionDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) MarshalJSON() ([]byte, error) { - cdsacd.Type = TypeBasicDatasetTypeCosmosDbSQLAPICollection - objectMap := make(map[string]interface{}) - if cdsacd.CosmosDbSQLAPICollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = cdsacd.CosmosDbSQLAPICollectionDatasetTypeProperties - } - if cdsacd.Description != nil { - objectMap["description"] = cdsacd.Description - } - if cdsacd.Structure != nil { - objectMap["structure"] = cdsacd.Structure - } - if cdsacd.Schema != nil { - objectMap["schema"] = cdsacd.Schema - } - if cdsacd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = cdsacd.LinkedServiceName - } - if cdsacd.Parameters != nil { - objectMap["parameters"] = cdsacd.Parameters - } - if cdsacd.Annotations != nil { - objectMap["annotations"] = cdsacd.Annotations - } - if cdsacd.Folder != nil { - objectMap["folder"] = cdsacd.Folder - } - if cdsacd.Type != "" { - objectMap["type"] = cdsacd.Type - } - for k, v := range cdsacd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return &cdsacd, true -} - -// AsCustomDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for CosmosDbSQLAPICollectionDataset. -func (cdsacd CosmosDbSQLAPICollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &cdsacd, true -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbSQLAPICollectionDataset struct. -func (cdsacd *CosmosDbSQLAPICollectionDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var cosmosDbSQLAPICollectionDatasetTypeProperties CosmosDbSQLAPICollectionDatasetTypeProperties - err = json.Unmarshal(*v, &cosmosDbSQLAPICollectionDatasetTypeProperties) - if err != nil { - return err - } - cdsacd.CosmosDbSQLAPICollectionDatasetTypeProperties = &cosmosDbSQLAPICollectionDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsacd.AdditionalProperties == nil { - cdsacd.AdditionalProperties = make(map[string]interface{}) - } - cdsacd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdsacd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - cdsacd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - cdsacd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - cdsacd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdsacd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdsacd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - cdsacd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsacd.Type = typeVar - } - } - } - - return nil -} - -// CosmosDbSQLAPICollectionDatasetTypeProperties cosmosDB (SQL API) Collection dataset properties. -type CosmosDbSQLAPICollectionDatasetTypeProperties struct { - // CollectionName - CosmosDB (SQL API) collection name. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` -} - -// CosmosDbSQLAPISink a copy activity Azure CosmosDB (SQL API) Collection sink. -type CosmosDbSQLAPISink struct { - // WriteBehavior - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) MarshalJSON() ([]byte, error) { - cdsas.Type = TypeBasicCopySinkTypeCosmosDbSQLAPISink - objectMap := make(map[string]interface{}) - if cdsas.WriteBehavior != nil { - objectMap["writeBehavior"] = cdsas.WriteBehavior - } - if cdsas.WriteBatchSize != nil { - objectMap["writeBatchSize"] = cdsas.WriteBatchSize - } - if cdsas.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = cdsas.WriteBatchTimeout - } - if cdsas.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = cdsas.SinkRetryCount - } - if cdsas.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = cdsas.SinkRetryWait - } - if cdsas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cdsas.MaxConcurrentConnections - } - if cdsas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cdsas.DisableMetricsCollection - } - if cdsas.Type != "" { - objectMap["type"] = cdsas.Type - } - for k, v := range cdsas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return &cdsas, true -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for CosmosDbSQLAPISink. -func (cdsas CosmosDbSQLAPISink) AsBasicCopySink() (BasicCopySink, bool) { - return &cdsas, true -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbSQLAPISink struct. -func (cdsas *CosmosDbSQLAPISink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - cdsas.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsas.AdditionalProperties == nil { - cdsas.AdditionalProperties = make(map[string]interface{}) - } - cdsas.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - cdsas.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - cdsas.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - cdsas.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - cdsas.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cdsas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cdsas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsas.Type = typeVar - } - } - } - - return nil -} - -// CosmosDbSQLAPISource a copy activity Azure CosmosDB (SQL API) Collection source. -type CosmosDbSQLAPISource struct { - // Query - SQL API query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // PageSize - Page size of the result. Type: integer (or Expression with resultType integer). - PageSize interface{} `json:"pageSize,omitempty"` - // PreferredRegions - Preferred regions. Type: array of strings (or Expression with resultType array of strings). - PreferredRegions interface{} `json:"preferredRegions,omitempty"` - // DetectDatetime - Whether detect primitive values as datetime values. Type: boolean (or Expression with resultType boolean). - DetectDatetime interface{} `json:"detectDatetime,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) MarshalJSON() ([]byte, error) { - cdsas.Type = TypeBasicCopySourceTypeCosmosDbSQLAPISource - objectMap := make(map[string]interface{}) - if cdsas.Query != nil { - objectMap["query"] = cdsas.Query - } - if cdsas.PageSize != nil { - objectMap["pageSize"] = cdsas.PageSize - } - if cdsas.PreferredRegions != nil { - objectMap["preferredRegions"] = cdsas.PreferredRegions - } - if cdsas.DetectDatetime != nil { - objectMap["detectDatetime"] = cdsas.DetectDatetime - } - if cdsas.AdditionalColumns != nil { - objectMap["additionalColumns"] = cdsas.AdditionalColumns - } - if cdsas.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = cdsas.SourceRetryCount - } - if cdsas.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = cdsas.SourceRetryWait - } - if cdsas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cdsas.MaxConcurrentConnections - } - if cdsas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cdsas.DisableMetricsCollection - } - if cdsas.Type != "" { - objectMap["type"] = cdsas.Type - } - for k, v := range cdsas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return &cdsas, true -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for CosmosDbSQLAPISource. -func (cdsas CosmosDbSQLAPISource) AsBasicCopySource() (BasicCopySource, bool) { - return &cdsas, true -} - -// UnmarshalJSON is the custom unmarshaler for CosmosDbSQLAPISource struct. -func (cdsas *CosmosDbSQLAPISource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - cdsas.Query = query - } - case "pageSize": - if v != nil { - var pageSize interface{} - err = json.Unmarshal(*v, &pageSize) - if err != nil { - return err - } - cdsas.PageSize = pageSize - } - case "preferredRegions": - if v != nil { - var preferredRegions interface{} - err = json.Unmarshal(*v, &preferredRegions) - if err != nil { - return err - } - cdsas.PreferredRegions = preferredRegions - } - case "detectDatetime": - if v != nil { - var detectDatetime interface{} - err = json.Unmarshal(*v, &detectDatetime) - if err != nil { - return err - } - cdsas.DetectDatetime = detectDatetime - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - cdsas.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsas.AdditionalProperties == nil { - cdsas.AdditionalProperties = make(map[string]interface{}) - } - cdsas.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - cdsas.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - cdsas.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cdsas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cdsas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsas.Type = typeVar - } - } - } - - return nil -} - -// CouchbaseLinkedService couchbase server linked service. -type CouchbaseLinkedService struct { - // CouchbaseLinkedServiceTypeProperties - Couchbase server linked service properties. - *CouchbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) MarshalJSON() ([]byte, error) { - cls.Type = TypeBasicLinkedServiceTypeCouchbase - objectMap := make(map[string]interface{}) - if cls.CouchbaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = cls.CouchbaseLinkedServiceTypeProperties - } - if cls.ConnectVia != nil { - objectMap["connectVia"] = cls.ConnectVia - } - if cls.Description != nil { - objectMap["description"] = cls.Description - } - if cls.Parameters != nil { - objectMap["parameters"] = cls.Parameters - } - if cls.Annotations != nil { - objectMap["annotations"] = cls.Annotations - } - if cls.Type != "" { - objectMap["type"] = cls.Type - } - for k, v := range cls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return &cls, true -} - -// AsConcurLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for CouchbaseLinkedService. -func (cls CouchbaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cls, true -} - -// UnmarshalJSON is the custom unmarshaler for CouchbaseLinkedService struct. -func (cls *CouchbaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var couchbaseLinkedServiceTypeProperties CouchbaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &couchbaseLinkedServiceTypeProperties) - if err != nil { - return err - } - cls.CouchbaseLinkedServiceTypeProperties = &couchbaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cls.AdditionalProperties == nil { - cls.AdditionalProperties = make(map[string]interface{}) - } - cls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cls.Type = typeVar - } - } - } - - return nil -} - -// CouchbaseLinkedServiceTypeProperties couchbase server linked service properties. -type CouchbaseLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // CredString - The Azure key vault secret reference of credString in connection string. - CredString *AzureKeyVaultSecretReference `json:"credString,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// CouchbaseSource a copy activity Couchbase server source. -type CouchbaseSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CouchbaseSource. -func (cs CouchbaseSource) MarshalJSON() ([]byte, error) { - cs.Type = TypeBasicCopySourceTypeCouchbaseSource - objectMap := make(map[string]interface{}) - if cs.Query != nil { - objectMap["query"] = cs.Query - } - if cs.QueryTimeout != nil { - objectMap["queryTimeout"] = cs.QueryTimeout - } - if cs.AdditionalColumns != nil { - objectMap["additionalColumns"] = cs.AdditionalColumns - } - if cs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = cs.SourceRetryCount - } - if cs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = cs.SourceRetryWait - } - if cs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = cs.MaxConcurrentConnections - } - if cs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = cs.DisableMetricsCollection - } - if cs.Type != "" { - objectMap["type"] = cs.Type - } - for k, v := range cs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return &cs, true -} - -// AsConcurSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &cs, true -} - -// AsBinarySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for CouchbaseSource. -func (cs CouchbaseSource) AsBasicCopySource() (BasicCopySource, bool) { - return &cs, true -} - -// UnmarshalJSON is the custom unmarshaler for CouchbaseSource struct. -func (cs *CouchbaseSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - cs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - cs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - cs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cs.AdditionalProperties == nil { - cs.AdditionalProperties = make(map[string]interface{}) - } - cs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - cs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - cs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - cs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - cs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cs.Type = typeVar - } - } - } - - return nil -} - -// CouchbaseTableDataset couchbase server dataset. -type CouchbaseTableDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) MarshalJSON() ([]byte, error) { - ctd.Type = TypeBasicDatasetTypeCouchbaseTable - objectMap := make(map[string]interface{}) - if ctd.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = ctd.GenericDatasetTypeProperties - } - if ctd.Description != nil { - objectMap["description"] = ctd.Description - } - if ctd.Structure != nil { - objectMap["structure"] = ctd.Structure - } - if ctd.Schema != nil { - objectMap["schema"] = ctd.Schema - } - if ctd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ctd.LinkedServiceName - } - if ctd.Parameters != nil { - objectMap["parameters"] = ctd.Parameters - } - if ctd.Annotations != nil { - objectMap["annotations"] = ctd.Annotations - } - if ctd.Folder != nil { - objectMap["folder"] = ctd.Folder - } - if ctd.Type != "" { - objectMap["type"] = ctd.Type - } - for k, v := range ctd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return &ctd, true -} - -// AsConcurObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for CouchbaseTableDataset. -func (ctd CouchbaseTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &ctd, true -} - -// UnmarshalJSON is the custom unmarshaler for CouchbaseTableDataset struct. -func (ctd *CouchbaseTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - ctd.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ctd.AdditionalProperties == nil { - ctd.AdditionalProperties = make(map[string]interface{}) - } - ctd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ctd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ctd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - ctd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ctd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ctd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ctd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ctd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ctd.Type = typeVar - } - } - } - - return nil -} - -// CreateDataFlowDebugSessionRequest request body structure for creating data flow debug session. -type CreateDataFlowDebugSessionRequest struct { - // ComputeType - Compute type of the cluster. The value will be overwritten by the same setting in integration runtime if provided. - ComputeType *string `json:"computeType,omitempty"` - // CoreCount - Core count of the cluster. The value will be overwritten by the same setting in integration runtime if provided. - CoreCount *int32 `json:"coreCount,omitempty"` - // TimeToLive - Time to live setting of the cluster in minutes. - TimeToLive *int32 `json:"timeToLive,omitempty"` - // IntegrationRuntime - Set to use integration runtime setting for data flow debug session. - IntegrationRuntime *IntegrationRuntimeDebugResource `json:"integrationRuntime,omitempty"` -} - -// CreateDataFlowDebugSessionResponse response body structure for creating data flow debug session. -type CreateDataFlowDebugSessionResponse struct { - autorest.Response `json:"-"` - // Status - The state of the debug session. - Status *string `json:"status,omitempty"` - // SessionID - The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` -} - -// CreateLinkedIntegrationRuntimeRequest the linked integration runtime information. -type CreateLinkedIntegrationRuntimeRequest struct { - // Name - The name of the linked integration runtime. - Name *string `json:"name,omitempty"` - // SubscriptionID - The ID of the subscription that the linked integration runtime belongs to. - SubscriptionID *string `json:"subscriptionId,omitempty"` - // DataFactoryName - The name of the data factory that the linked integration runtime belongs to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // DataFactoryLocation - The location of the data factory that the linked integration runtime belongs to. - DataFactoryLocation *string `json:"dataFactoryLocation,omitempty"` -} - -// CreateRunResponse response body with a run identifier. -type CreateRunResponse struct { - autorest.Response `json:"-"` - // RunID - Identifier of a run. - RunID *string `json:"runId,omitempty"` -} - -// BasicCredential 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 BasicCredential interface { - AsManagedIdentityCredential() (*ManagedIdentityCredential, bool) - AsServicePrincipalCredential() (*ServicePrincipalCredential, bool) - AsCredential() (*Credential, bool) -} - -// 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 { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Credential description. - Description *string `json:"description,omitempty"` - // Annotations - List of tags that can be used for describing the Credential. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicCredentialTypeCredential', 'TypeBasicCredentialTypeManagedIdentity', 'TypeBasicCredentialTypeServicePrincipal' - Type TypeBasicCredential `json:"type,omitempty"` -} - -func unmarshalBasicCredential(body []byte) (BasicCredential, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicCredentialTypeManagedIdentity): - var mic ManagedIdentityCredential - err := json.Unmarshal(body, &mic) - return mic, err - case string(TypeBasicCredentialTypeServicePrincipal): - var spc ServicePrincipalCredential - err := json.Unmarshal(body, &spc) - return spc, err - default: - var c Credential - err := json.Unmarshal(body, &c) - return c, err - } -} -func unmarshalBasicCredentialArray(body []byte) ([]BasicCredential, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - cArray := make([]BasicCredential, len(rawMessages)) - - for index, rawMessage := range rawMessages { - c, err := unmarshalBasicCredential(*rawMessage) - if err != nil { - return nil, err - } - cArray[index] = c - } - return cArray, nil -} - -// MarshalJSON is the custom marshaler for Credential. -func (c Credential) MarshalJSON() ([]byte, error) { - c.Type = TypeBasicCredentialTypeCredential - objectMap := make(map[string]interface{}) - if c.Description != nil { - objectMap["description"] = c.Description - } - if c.Annotations != nil { - objectMap["annotations"] = c.Annotations - } - if c.Type != "" { - objectMap["type"] = c.Type - } - for k, v := range c.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsManagedIdentityCredential is the BasicCredential implementation for Credential. -func (c Credential) AsManagedIdentityCredential() (*ManagedIdentityCredential, bool) { - return nil, false -} - -// AsServicePrincipalCredential is the BasicCredential implementation for Credential. -func (c Credential) AsServicePrincipalCredential() (*ServicePrincipalCredential, bool) { - return nil, false -} - -// AsCredential is the BasicCredential implementation for Credential. -func (c Credential) AsCredential() (*Credential, bool) { - return &c, true -} - -// AsBasicCredential is the BasicCredential implementation for Credential. -func (c Credential) AsBasicCredential() (BasicCredential, bool) { - return &c, true -} - -// UnmarshalJSON is the custom unmarshaler for Credential struct. -func (c *Credential) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if c.AdditionalProperties == nil { - c.AdditionalProperties = make(map[string]interface{}) - } - c.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - c.Description = &description - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - c.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicCredential - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - c.Type = typeVar - } - } - } - - return nil -} - -// CredentialListResponse a list of credential resources. -type CredentialListResponse struct { - autorest.Response `json:"-"` - // Value - List of credentials. - Value *[]ManagedIdentityCredentialResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// CredentialListResponseIterator provides access to a complete listing of -// ManagedIdentityCredentialResource values. -type CredentialListResponseIterator struct { - i int - page CredentialListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *CredentialListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CredentialListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *CredentialListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter CredentialListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter CredentialListResponseIterator) Response() CredentialListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter CredentialListResponseIterator) Value() ManagedIdentityCredentialResource { - if !iter.page.NotDone() { - return ManagedIdentityCredentialResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the CredentialListResponseIterator type. -func NewCredentialListResponseIterator(page CredentialListResponsePage) CredentialListResponseIterator { - return CredentialListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (clr CredentialListResponse) IsEmpty() bool { - return clr.Value == nil || len(*clr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (clr CredentialListResponse) hasNextLink() bool { - return clr.NextLink != nil && len(*clr.NextLink) != 0 -} - -// credentialListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (clr CredentialListResponse) credentialListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !clr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(clr.NextLink))) -} - -// CredentialListResponsePage contains a page of ManagedIdentityCredentialResource values. -type CredentialListResponsePage struct { - fn func(context.Context, CredentialListResponse) (CredentialListResponse, error) - clr CredentialListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *CredentialListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/CredentialListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.clr) - if err != nil { - return err - } - page.clr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *CredentialListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page CredentialListResponsePage) NotDone() bool { - return !page.clr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page CredentialListResponsePage) Response() CredentialListResponse { - return page.clr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page CredentialListResponsePage) Values() []ManagedIdentityCredentialResource { - if page.clr.IsEmpty() { - return nil - } - return *page.clr.Value -} - -// Creates a new instance of the CredentialListResponsePage type. -func NewCredentialListResponsePage(cur CredentialListResponse, getNextPage func(context.Context, CredentialListResponse) (CredentialListResponse, error)) CredentialListResponsePage { - return CredentialListResponsePage{ - fn: getNextPage, - clr: cur, - } -} - -// CredentialReference credential reference type. -type CredentialReference struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Credential reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference credential name. - ReferenceName *string `json:"referenceName,omitempty"` -} - -// MarshalJSON is the custom marshaler for CredentialReference. -func (cr CredentialReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if cr.Type != nil { - objectMap["type"] = cr.Type - } - if cr.ReferenceName != nil { - objectMap["referenceName"] = cr.ReferenceName - } - for k, v := range cr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for CredentialReference struct. -func (cr *CredentialReference) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cr.AdditionalProperties == nil { - cr.AdditionalProperties = make(map[string]interface{}) - } - cr.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cr.Type = &typeVar - } - case "referenceName": - if v != nil { - var referenceName string - err = json.Unmarshal(*v, &referenceName) - if err != nil { - return err - } - cr.ReferenceName = &referenceName - } - } - } - - return nil -} - -// CredentialResource credential resource type. -type CredentialResource struct { - // Properties - Properties of credentials. - Properties BasicCredential `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for CredentialResource. -func (cr CredentialResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["properties"] = cr.Properties - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for CredentialResource struct. -func (cr *CredentialResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicCredential(*v) - if err != nil { - return err - } - cr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - cr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - cr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - cr.Etag = &etag - } - } - } - - return nil -} - -// CustomActivity custom activity type. -type CustomActivity struct { - // CustomActivityTypeProperties - Custom activity properties. - *CustomActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CustomActivity. -func (ca CustomActivity) MarshalJSON() ([]byte, error) { - ca.Type = TypeBasicActivityTypeCustom - objectMap := make(map[string]interface{}) - if ca.CustomActivityTypeProperties != nil { - objectMap["typeProperties"] = ca.CustomActivityTypeProperties - } - if ca.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ca.LinkedServiceName - } - if ca.Policy != nil { - objectMap["policy"] = ca.Policy - } - if ca.Name != nil { - objectMap["name"] = ca.Name - } - if ca.Description != nil { - objectMap["description"] = ca.Description - } - if ca.State != "" { - objectMap["state"] = ca.State - } - if ca.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ca.OnInactiveMarkAs - } - if ca.DependsOn != nil { - objectMap["dependsOn"] = ca.DependsOn - } - if ca.UserProperties != nil { - objectMap["userProperties"] = ca.UserProperties - } - if ca.Type != "" { - objectMap["type"] = ca.Type - } - for k, v := range ca.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsCustomActivity() (*CustomActivity, bool) { - return &ca, true -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ca, true -} - -// AsWebHookActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for CustomActivity. -func (ca CustomActivity) AsBasicActivity() (BasicActivity, bool) { - return &ca, true -} - -// UnmarshalJSON is the custom unmarshaler for CustomActivity struct. -func (ca *CustomActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var customActivityTypeProperties CustomActivityTypeProperties - err = json.Unmarshal(*v, &customActivityTypeProperties) - if err != nil { - return err - } - ca.CustomActivityTypeProperties = &customActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ca.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ca.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ca.AdditionalProperties == nil { - ca.AdditionalProperties = make(map[string]interface{}) - } - ca.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ca.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ca.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ca.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ca.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ca.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ca.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ca.Type = typeVar - } - } - } - - return nil -} - -// CustomActivityReferenceObject reference objects for custom activity -type CustomActivityReferenceObject struct { - // LinkedServices - Linked service references. - LinkedServices *[]LinkedServiceReference `json:"linkedServices,omitempty"` - // Datasets - Dataset references. - Datasets *[]DatasetReference `json:"datasets,omitempty"` -} - -// CustomActivityTypeProperties custom activity properties. -type CustomActivityTypeProperties struct { - // Command - Command for custom activity Type: string (or Expression with resultType string). - Command interface{} `json:"command,omitempty"` - // ResourceLinkedService - Resource linked service reference. - ResourceLinkedService *LinkedServiceReference `json:"resourceLinkedService,omitempty"` - // FolderPath - Folder path for resource files Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // ReferenceObjects - Reference objects - ReferenceObjects *CustomActivityReferenceObject `json:"referenceObjects,omitempty"` - // ExtendedProperties - 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"` - // RetentionTimeInDays - The retention time for the files submitted for custom activity. Type: double (or Expression with resultType double). - RetentionTimeInDays interface{} `json:"retentionTimeInDays,omitempty"` - // AutoUserSpecification - Elevation level and scope for the user, default is nonadmin task. Type: string (or Expression with resultType double). - AutoUserSpecification interface{} `json:"autoUserSpecification,omitempty"` -} - -// MarshalJSON is the custom marshaler for CustomActivityTypeProperties. -func (catp CustomActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if catp.Command != nil { - objectMap["command"] = catp.Command - } - if catp.ResourceLinkedService != nil { - objectMap["resourceLinkedService"] = catp.ResourceLinkedService - } - if catp.FolderPath != nil { - objectMap["folderPath"] = catp.FolderPath - } - if catp.ReferenceObjects != nil { - objectMap["referenceObjects"] = catp.ReferenceObjects - } - if catp.ExtendedProperties != nil { - objectMap["extendedProperties"] = catp.ExtendedProperties - } - if catp.RetentionTimeInDays != nil { - objectMap["retentionTimeInDays"] = catp.RetentionTimeInDays - } - if catp.AutoUserSpecification != nil { - objectMap["autoUserSpecification"] = catp.AutoUserSpecification - } - return json.Marshal(objectMap) -} - -// CustomDataSourceLinkedService custom linked service. -type CustomDataSourceLinkedService struct { - // TypeProperties - Custom linked service properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { - cdsls.Type = TypeBasicLinkedServiceTypeCustomDataSource - objectMap := make(map[string]interface{}) - if cdsls.TypeProperties != nil { - objectMap["typeProperties"] = cdsls.TypeProperties - } - if cdsls.ConnectVia != nil { - objectMap["connectVia"] = cdsls.ConnectVia - } - if cdsls.Description != nil { - objectMap["description"] = cdsls.Description - } - if cdsls.Parameters != nil { - objectMap["parameters"] = cdsls.Parameters - } - if cdsls.Annotations != nil { - objectMap["annotations"] = cdsls.Annotations - } - if cdsls.Type != "" { - objectMap["type"] = cdsls.Type - } - for k, v := range cdsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return &cdsls, true -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for CustomDataSourceLinkedService. -func (cdsls CustomDataSourceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &cdsls, true -} - -// UnmarshalJSON is the custom unmarshaler for CustomDataSourceLinkedService struct. -func (cdsls *CustomDataSourceLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var typeProperties interface{} - err = json.Unmarshal(*v, &typeProperties) - if err != nil { - return err - } - cdsls.TypeProperties = typeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cdsls.AdditionalProperties == nil { - cdsls.AdditionalProperties = make(map[string]interface{}) - } - cdsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - cdsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cdsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cdsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cdsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cdsls.Type = typeVar - } - } - } - - return nil -} - -// CustomDataset the custom dataset. -type CustomDataset struct { - // TypeProperties - Custom dataset properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CustomDataset. -func (cd CustomDataset) MarshalJSON() ([]byte, error) { - cd.Type = TypeBasicDatasetTypeCustomDataset - objectMap := make(map[string]interface{}) - if cd.TypeProperties != nil { - objectMap["typeProperties"] = cd.TypeProperties - } - if cd.Description != nil { - objectMap["description"] = cd.Description - } - if cd.Structure != nil { - objectMap["structure"] = cd.Structure - } - if cd.Schema != nil { - objectMap["schema"] = cd.Schema - } - if cd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = cd.LinkedServiceName - } - if cd.Parameters != nil { - objectMap["parameters"] = cd.Parameters - } - if cd.Annotations != nil { - objectMap["annotations"] = cd.Annotations - } - if cd.Folder != nil { - objectMap["folder"] = cd.Folder - } - if cd.Type != "" { - objectMap["type"] = cd.Type - } - for k, v := range cd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCustomDataset() (*CustomDataset, bool) { - return &cd, true -} - -// AsCassandraTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for CustomDataset. -func (cd CustomDataset) AsBasicDataset() (BasicDataset, bool) { - return &cd, true -} - -// UnmarshalJSON is the custom unmarshaler for CustomDataset struct. -func (cd *CustomDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var typeProperties interface{} - err = json.Unmarshal(*v, &typeProperties) - if err != nil { - return err - } - cd.TypeProperties = typeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cd.AdditionalProperties == nil { - cd.AdditionalProperties = make(map[string]interface{}) - } - cd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - cd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - cd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - cd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - cd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - cd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cd.Type = typeVar - } - } - } - - return nil -} - -// CustomEventsTrigger trigger that runs every time a custom event is received. -type CustomEventsTrigger struct { - // CustomEventsTriggerTypeProperties - Custom Events Trigger properties. - *CustomEventsTriggerTypeProperties `json:"typeProperties,omitempty"` - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for CustomEventsTrigger. -func (cet CustomEventsTrigger) MarshalJSON() ([]byte, error) { - cet.Type = TypeBasicTriggerTypeCustomEventsTrigger - objectMap := make(map[string]interface{}) - if cet.CustomEventsTriggerTypeProperties != nil { - objectMap["typeProperties"] = cet.CustomEventsTriggerTypeProperties - } - if cet.Pipelines != nil { - objectMap["pipelines"] = cet.Pipelines - } - if cet.Description != nil { - objectMap["description"] = cet.Description - } - if cet.Annotations != nil { - objectMap["annotations"] = cet.Annotations - } - if cet.Type != "" { - objectMap["type"] = cet.Type - } - for k, v := range cet.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return nil, false -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return nil, false -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return &cet, true -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return nil, false -} - -// AsBlobTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// AsScheduleTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &cet, true -} - -// AsTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// AsBasicTrigger is the BasicTrigger implementation for CustomEventsTrigger. -func (cet CustomEventsTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &cet, true -} - -// UnmarshalJSON is the custom unmarshaler for CustomEventsTrigger struct. -func (cet *CustomEventsTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var customEventsTriggerTypeProperties CustomEventsTriggerTypeProperties - err = json.Unmarshal(*v, &customEventsTriggerTypeProperties) - if err != nil { - return err - } - cet.CustomEventsTriggerTypeProperties = &customEventsTriggerTypeProperties - } - case "pipelines": - if v != nil { - var pipelines []TriggerPipelineReference - err = json.Unmarshal(*v, &pipelines) - if err != nil { - return err - } - cet.Pipelines = &pipelines - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if cet.AdditionalProperties == nil { - cet.AdditionalProperties = make(map[string]interface{}) - } - cet.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - cet.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - cet.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - cet.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - cet.Type = typeVar - } - } - } - - return nil -} - -// CustomEventsTriggerTypeProperties custom Events Trigger properties. -type CustomEventsTriggerTypeProperties struct { - // SubjectBeginsWith - 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"` - // SubjectEndsWith - 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"` - // Events - The list of event types that cause this trigger to fire. - Events *[]interface{} `json:"events,omitempty"` - // Scope - The ARM resource ID of the Azure Event Grid Topic. - Scope *string `json:"scope,omitempty"` -} - -// BasicCustomSetupBase the base definition of the custom setup. -type BasicCustomSetupBase interface { - AsAzPowerShellSetup() (*AzPowerShellSetup, bool) - AsComponentSetup() (*ComponentSetup, bool) - AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) - AsCmdkeySetup() (*CmdkeySetup, bool) - AsCustomSetupBase() (*CustomSetupBase, bool) -} - -// CustomSetupBase the base definition of the custom setup. -type CustomSetupBase struct { - // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' - Type TypeBasicCustomSetupBase `json:"type,omitempty"` -} - -func unmarshalBasicCustomSetupBase(body []byte) (BasicCustomSetupBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicCustomSetupBaseTypeAzPowerShellSetup): - var apss AzPowerShellSetup - err := json.Unmarshal(body, &apss) - return apss, err - case string(TypeBasicCustomSetupBaseTypeComponentSetup): - var cs ComponentSetup - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup): - var evs EnvironmentVariableSetup - err := json.Unmarshal(body, &evs) - return evs, err - case string(TypeBasicCustomSetupBaseTypeCmdkeySetup): - var cs CmdkeySetup - err := json.Unmarshal(body, &cs) - return cs, err - default: - var csb CustomSetupBase - err := json.Unmarshal(body, &csb) - return csb, err - } -} -func unmarshalBasicCustomSetupBaseArray(body []byte) ([]BasicCustomSetupBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - csbArray := make([]BasicCustomSetupBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - csb, err := unmarshalBasicCustomSetupBase(*rawMessage) - if err != nil { - return nil, err - } - csbArray[index] = csb - } - return csbArray, nil -} - -// MarshalJSON is the custom marshaler for CustomSetupBase. -func (csb CustomSetupBase) MarshalJSON() ([]byte, error) { - csb.Type = TypeBasicCustomSetupBaseTypeCustomSetupBase - objectMap := make(map[string]interface{}) - if csb.Type != "" { - objectMap["type"] = csb.Type - } - return json.Marshal(objectMap) -} - -// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for CustomSetupBase. -func (csb CustomSetupBase) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { - return nil, false -} - -// AsComponentSetup is the BasicCustomSetupBase implementation for CustomSetupBase. -func (csb CustomSetupBase) AsComponentSetup() (*ComponentSetup, bool) { - return nil, false -} - -// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for CustomSetupBase. -func (csb CustomSetupBase) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { - return nil, false -} - -// AsCmdkeySetup is the BasicCustomSetupBase implementation for CustomSetupBase. -func (csb CustomSetupBase) AsCmdkeySetup() (*CmdkeySetup, bool) { - return nil, false -} - -// AsCustomSetupBase is the BasicCustomSetupBase implementation for CustomSetupBase. -func (csb CustomSetupBase) AsCustomSetupBase() (*CustomSetupBase, bool) { - return &csb, true -} - -// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for CustomSetupBase. -func (csb CustomSetupBase) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { - return &csb, true -} - -// DWCopyCommandDefaultValue default value. -type DWCopyCommandDefaultValue struct { - // ColumnName - Column name. Type: object (or Expression with resultType string). - ColumnName interface{} `json:"columnName,omitempty"` - // DefaultValue - The default value of the column. Type: object (or Expression with resultType string). - DefaultValue interface{} `json:"defaultValue,omitempty"` -} - -// DWCopyCommandSettings DW Copy Command settings. -type DWCopyCommandSettings struct { - // DefaultValues - 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"` - // AdditionalOptions - 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"` -} - -// MarshalJSON is the custom marshaler for DWCopyCommandSettings. -func (dccs DWCopyCommandSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dccs.DefaultValues != nil { - objectMap["defaultValues"] = dccs.DefaultValues - } - if dccs.AdditionalOptions != nil { - objectMap["additionalOptions"] = dccs.AdditionalOptions - } - return json.Marshal(objectMap) -} - -// BasicDataFlow azure Data Factory nested object which contains a flow with data movements and transformations. -type BasicDataFlow interface { - AsWranglingDataFlow() (*WranglingDataFlow, bool) - AsFlowlet() (*Flowlet, bool) - AsMappingDataFlow() (*MappingDataFlow, bool) - AsDataFlow() (*DataFlow, bool) -} - -// DataFlow azure Data Factory nested object which contains a flow with data movements and transformations. -type DataFlow struct { - // Description - The description of the data flow. - Description *string `json:"description,omitempty"` - // Annotations - List of tags that can be used for describing the data flow. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDataFlowTypeDataFlow', 'TypeBasicDataFlowTypeWranglingDataFlow', 'TypeBasicDataFlowTypeFlowlet', 'TypeBasicDataFlowTypeMappingDataFlow' - Type TypeBasicDataFlow `json:"type,omitempty"` -} - -func unmarshalBasicDataFlow(body []byte) (BasicDataFlow, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicDataFlowTypeWranglingDataFlow): - var wdf WranglingDataFlow - err := json.Unmarshal(body, &wdf) - return wdf, err - case string(TypeBasicDataFlowTypeFlowlet): - var f Flowlet - err := json.Unmarshal(body, &f) - return f, err - case string(TypeBasicDataFlowTypeMappingDataFlow): - var mdf MappingDataFlow - err := json.Unmarshal(body, &mdf) - return mdf, err - default: - var df DataFlow - err := json.Unmarshal(body, &df) - return df, err - } -} -func unmarshalBasicDataFlowArray(body []byte) ([]BasicDataFlow, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dfArray := make([]BasicDataFlow, len(rawMessages)) - - for index, rawMessage := range rawMessages { - df, err := unmarshalBasicDataFlow(*rawMessage) - if err != nil { - return nil, err - } - dfArray[index] = df - } - return dfArray, nil -} - -// MarshalJSON is the custom marshaler for DataFlow. -func (df DataFlow) MarshalJSON() ([]byte, error) { - df.Type = TypeBasicDataFlowTypeDataFlow - objectMap := make(map[string]interface{}) - if df.Description != nil { - objectMap["description"] = df.Description - } - if df.Annotations != nil { - objectMap["annotations"] = df.Annotations - } - if df.Folder != nil { - objectMap["folder"] = df.Folder - } - if df.Type != "" { - objectMap["type"] = df.Type - } - return json.Marshal(objectMap) -} - -// AsWranglingDataFlow is the BasicDataFlow implementation for DataFlow. -func (df DataFlow) AsWranglingDataFlow() (*WranglingDataFlow, bool) { - return nil, false -} - -// AsFlowlet is the BasicDataFlow implementation for DataFlow. -func (df DataFlow) AsFlowlet() (*Flowlet, bool) { - return nil, false -} - -// AsMappingDataFlow is the BasicDataFlow implementation for DataFlow. -func (df DataFlow) AsMappingDataFlow() (*MappingDataFlow, bool) { - return nil, false -} - -// AsDataFlow is the BasicDataFlow implementation for DataFlow. -func (df DataFlow) AsDataFlow() (*DataFlow, bool) { - return &df, true -} - -// AsBasicDataFlow is the BasicDataFlow implementation for DataFlow. -func (df DataFlow) AsBasicDataFlow() (BasicDataFlow, bool) { - return &df, true -} - -// DataFlowDebugCommandPayload structure of command payload. -type DataFlowDebugCommandPayload struct { - // StreamName - The stream name which is used for preview. - StreamName *string `json:"streamName,omitempty"` - // RowLimits - Row limits for preview response. - RowLimits *int32 `json:"rowLimits,omitempty"` - // Columns - Array of column names. - Columns *[]string `json:"columns,omitempty"` - // Expression - The expression which is used for preview. - Expression *string `json:"expression,omitempty"` -} - -// DataFlowDebugCommandRequest request body structure for data flow debug command. -type DataFlowDebugCommandRequest struct { - // SessionID - The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` - // Command - The command type. Possible values include: 'DataFlowDebugCommandTypeExecutePreviewQuery', 'DataFlowDebugCommandTypeExecuteStatisticsQuery', 'DataFlowDebugCommandTypeExecuteExpressionQuery' - Command DataFlowDebugCommandType `json:"command,omitempty"` - // CommandPayload - The command payload object. - CommandPayload *DataFlowDebugCommandPayload `json:"commandPayload,omitempty"` -} - -// DataFlowDebugCommandResponse response body structure of data flow result for data preview, statistics or -// expression preview. -type DataFlowDebugCommandResponse struct { - autorest.Response `json:"-"` - // Status - The run status of data preview, statistics or expression preview. - Status *string `json:"status,omitempty"` - // Data - The result data of data preview, statistics or expression preview. - Data *string `json:"data,omitempty"` -} - -// DataFlowDebugPackage request body structure for starting data flow debug session. -type DataFlowDebugPackage struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SessionID - The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` - // DataFlow - Data flow instance. - DataFlow *DataFlowDebugResource `json:"dataFlow,omitempty"` - // DataFlows - List of Data flows - DataFlows *[]DataFlowDebugResource `json:"dataFlows,omitempty"` - // Datasets - List of datasets. - Datasets *[]DatasetDebugResource `json:"datasets,omitempty"` - // LinkedServices - List of linked services. - LinkedServices *[]LinkedServiceDebugResource `json:"linkedServices,omitempty"` - // Staging - Staging info for debug session. - Staging *DataFlowStagingInfo `json:"staging,omitempty"` - // DebugSettings - Data flow debug settings. - DebugSettings *DataFlowDebugPackageDebugSettings `json:"debugSettings,omitempty"` -} - -// MarshalJSON is the custom marshaler for DataFlowDebugPackage. -func (dfdp DataFlowDebugPackage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dfdp.SessionID != nil { - objectMap["sessionId"] = dfdp.SessionID - } - if dfdp.DataFlow != nil { - objectMap["dataFlow"] = dfdp.DataFlow - } - if dfdp.DataFlows != nil { - objectMap["dataFlows"] = dfdp.DataFlows - } - if dfdp.Datasets != nil { - objectMap["datasets"] = dfdp.Datasets - } - if dfdp.LinkedServices != nil { - objectMap["linkedServices"] = dfdp.LinkedServices - } - if dfdp.Staging != nil { - objectMap["staging"] = dfdp.Staging - } - if dfdp.DebugSettings != nil { - objectMap["debugSettings"] = dfdp.DebugSettings - } - for k, v := range dfdp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DataFlowDebugPackage struct. -func (dfdp *DataFlowDebugPackage) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dfdp.AdditionalProperties == nil { - dfdp.AdditionalProperties = make(map[string]interface{}) - } - dfdp.AdditionalProperties[k] = additionalProperties - } - case "sessionId": - if v != nil { - var sessionID string - err = json.Unmarshal(*v, &sessionID) - if err != nil { - return err - } - dfdp.SessionID = &sessionID - } - case "dataFlow": - if v != nil { - var dataFlow DataFlowDebugResource - err = json.Unmarshal(*v, &dataFlow) - if err != nil { - return err - } - dfdp.DataFlow = &dataFlow - } - case "dataFlows": - if v != nil { - var dataFlows []DataFlowDebugResource - err = json.Unmarshal(*v, &dataFlows) - if err != nil { - return err - } - dfdp.DataFlows = &dataFlows - } - case "datasets": - if v != nil { - var datasets []DatasetDebugResource - err = json.Unmarshal(*v, &datasets) - if err != nil { - return err - } - dfdp.Datasets = &datasets - } - case "linkedServices": - if v != nil { - var linkedServices []LinkedServiceDebugResource - err = json.Unmarshal(*v, &linkedServices) - if err != nil { - return err - } - dfdp.LinkedServices = &linkedServices - } - case "staging": - if v != nil { - var staging DataFlowStagingInfo - err = json.Unmarshal(*v, &staging) - if err != nil { - return err - } - dfdp.Staging = &staging - } - case "debugSettings": - if v != nil { - var debugSettings DataFlowDebugPackageDebugSettings - err = json.Unmarshal(*v, &debugSettings) - if err != nil { - return err - } - dfdp.DebugSettings = &debugSettings - } - } - } - - return nil -} - -// DataFlowDebugPackageDebugSettings data flow debug settings. -type DataFlowDebugPackageDebugSettings struct { - // SourceSettings - Source setting for data flow debug. - SourceSettings *[]DataFlowSourceSetting `json:"sourceSettings,omitempty"` - // Parameters - Data flow parameters. - Parameters map[string]interface{} `json:"parameters"` - // DatasetParameters - Parameters for dataset. - DatasetParameters interface{} `json:"datasetParameters,omitempty"` -} - -// MarshalJSON is the custom marshaler for DataFlowDebugPackageDebugSettings. -func (dfdpS DataFlowDebugPackageDebugSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dfdpS.SourceSettings != nil { - objectMap["sourceSettings"] = dfdpS.SourceSettings - } - if dfdpS.Parameters != nil { - objectMap["parameters"] = dfdpS.Parameters - } - if dfdpS.DatasetParameters != nil { - objectMap["datasetParameters"] = dfdpS.DatasetParameters - } - return json.Marshal(objectMap) -} - -// DataFlowDebugResource data flow debug resource. -type DataFlowDebugResource struct { - // Properties - Data flow properties. - Properties BasicDataFlow `json:"properties,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DataFlowDebugResource struct. -func (dfdr *DataFlowDebugResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicDataFlow(*v) - if err != nil { - return err - } - dfdr.Properties = properties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dfdr.Name = &name - } - } - } - - return nil -} - -// DataFlowDebugSessionCreateFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type DataFlowDebugSessionCreateFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(DataFlowDebugSessionClient) (CreateDataFlowDebugSessionResponse, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *DataFlowDebugSessionCreateFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for DataFlowDebugSessionCreateFuture.Result. -func (future *DataFlowDebugSessionCreateFuture) result(client DataFlowDebugSessionClient) (cdfdsr CreateDataFlowDebugSessionResponse, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionCreateFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - cdfdsr.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.DataFlowDebugSessionCreateFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if cdfdsr.Response.Response, err = future.GetResult(sender); err == nil && cdfdsr.Response.Response.StatusCode != http.StatusNoContent { - cdfdsr, err = client.CreateResponder(cdfdsr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionCreateFuture", "Result", cdfdsr.Response.Response, "Failure responding to request") - } - } - return -} - -// DataFlowDebugSessionExecuteCommandFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type DataFlowDebugSessionExecuteCommandFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(DataFlowDebugSessionClient) (DataFlowDebugCommandResponse, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *DataFlowDebugSessionExecuteCommandFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for DataFlowDebugSessionExecuteCommandFuture.Result. -func (future *DataFlowDebugSessionExecuteCommandFuture) result(client DataFlowDebugSessionClient) (dfdcr DataFlowDebugCommandResponse, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionExecuteCommandFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - dfdcr.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.DataFlowDebugSessionExecuteCommandFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if dfdcr.Response.Response, err = future.GetResult(sender); err == nil && dfdcr.Response.Response.StatusCode != http.StatusNoContent { - dfdcr, err = client.ExecuteCommandResponder(dfdcr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.DataFlowDebugSessionExecuteCommandFuture", "Result", dfdcr.Response.Response, "Failure responding to request") - } - } - return -} - -// DataFlowDebugSessionInfo data flow debug session info. -type DataFlowDebugSessionInfo struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataFlowName - The name of the data flow. - DataFlowName *string `json:"dataFlowName,omitempty"` - // ComputeType - Compute type of the cluster. - ComputeType *string `json:"computeType,omitempty"` - // CoreCount - Core count of the cluster. - CoreCount *int32 `json:"coreCount,omitempty"` - // NodeCount - Node count of the cluster. (deprecated property) - NodeCount *int32 `json:"nodeCount,omitempty"` - // IntegrationRuntimeName - Attached integration runtime name of data flow debug session. - IntegrationRuntimeName *string `json:"integrationRuntimeName,omitempty"` - // SessionID - The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` - // StartTime - Start time of data flow debug session. - StartTime *string `json:"startTime,omitempty"` - // TimeToLiveInMinutes - Compute type of the cluster. - TimeToLiveInMinutes *int32 `json:"timeToLiveInMinutes,omitempty"` - // LastActivityTime - Last activity time of data flow debug session. - LastActivityTime *string `json:"lastActivityTime,omitempty"` -} - -// MarshalJSON is the custom marshaler for DataFlowDebugSessionInfo. -func (dfdsi DataFlowDebugSessionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dfdsi.DataFlowName != nil { - objectMap["dataFlowName"] = dfdsi.DataFlowName - } - if dfdsi.ComputeType != nil { - objectMap["computeType"] = dfdsi.ComputeType - } - if dfdsi.CoreCount != nil { - objectMap["coreCount"] = dfdsi.CoreCount - } - if dfdsi.NodeCount != nil { - objectMap["nodeCount"] = dfdsi.NodeCount - } - if dfdsi.IntegrationRuntimeName != nil { - objectMap["integrationRuntimeName"] = dfdsi.IntegrationRuntimeName - } - if dfdsi.SessionID != nil { - objectMap["sessionId"] = dfdsi.SessionID - } - if dfdsi.StartTime != nil { - objectMap["startTime"] = dfdsi.StartTime - } - if dfdsi.TimeToLiveInMinutes != nil { - objectMap["timeToLiveInMinutes"] = dfdsi.TimeToLiveInMinutes - } - if dfdsi.LastActivityTime != nil { - objectMap["lastActivityTime"] = dfdsi.LastActivityTime - } - for k, v := range dfdsi.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DataFlowDebugSessionInfo struct. -func (dfdsi *DataFlowDebugSessionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dfdsi.AdditionalProperties == nil { - dfdsi.AdditionalProperties = make(map[string]interface{}) - } - dfdsi.AdditionalProperties[k] = additionalProperties - } - case "dataFlowName": - if v != nil { - var dataFlowName string - err = json.Unmarshal(*v, &dataFlowName) - if err != nil { - return err - } - dfdsi.DataFlowName = &dataFlowName - } - case "computeType": - if v != nil { - var computeType string - err = json.Unmarshal(*v, &computeType) - if err != nil { - return err - } - dfdsi.ComputeType = &computeType - } - case "coreCount": - if v != nil { - var coreCount int32 - err = json.Unmarshal(*v, &coreCount) - if err != nil { - return err - } - dfdsi.CoreCount = &coreCount - } - case "nodeCount": - if v != nil { - var nodeCount int32 - err = json.Unmarshal(*v, &nodeCount) - if err != nil { - return err - } - dfdsi.NodeCount = &nodeCount - } - case "integrationRuntimeName": - if v != nil { - var integrationRuntimeName string - err = json.Unmarshal(*v, &integrationRuntimeName) - if err != nil { - return err - } - dfdsi.IntegrationRuntimeName = &integrationRuntimeName - } - case "sessionId": - if v != nil { - var sessionID string - err = json.Unmarshal(*v, &sessionID) - if err != nil { - return err - } - dfdsi.SessionID = &sessionID - } - case "startTime": - if v != nil { - var startTime string - err = json.Unmarshal(*v, &startTime) - if err != nil { - return err - } - dfdsi.StartTime = &startTime - } - case "timeToLiveInMinutes": - if v != nil { - var timeToLiveInMinutes int32 - err = json.Unmarshal(*v, &timeToLiveInMinutes) - if err != nil { - return err - } - dfdsi.TimeToLiveInMinutes = &timeToLiveInMinutes - } - case "lastActivityTime": - if v != nil { - var lastActivityTime string - err = json.Unmarshal(*v, &lastActivityTime) - if err != nil { - return err - } - dfdsi.LastActivityTime = &lastActivityTime - } - } - } - - return nil -} - -// DataFlowFolder the folder that this data flow is in. If not specified, Data flow will appear at the root -// level. -type DataFlowFolder struct { - // Name - The name of the folder that this data flow is in. - Name *string `json:"name,omitempty"` -} - -// DataFlowListResponse a list of data flow resources. -type DataFlowListResponse struct { - autorest.Response `json:"-"` - // Value - List of data flows. - Value *[]DataFlowResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// DataFlowListResponseIterator provides access to a complete listing of DataFlowResource values. -type DataFlowListResponseIterator struct { - i int - page DataFlowListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *DataFlowListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DataFlowListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *DataFlowListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter DataFlowListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter DataFlowListResponseIterator) Response() DataFlowListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter DataFlowListResponseIterator) Value() DataFlowResource { - if !iter.page.NotDone() { - return DataFlowResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the DataFlowListResponseIterator type. -func NewDataFlowListResponseIterator(page DataFlowListResponsePage) DataFlowListResponseIterator { - return DataFlowListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (dflr DataFlowListResponse) IsEmpty() bool { - return dflr.Value == nil || len(*dflr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (dflr DataFlowListResponse) hasNextLink() bool { - return dflr.NextLink != nil && len(*dflr.NextLink) != 0 -} - -// dataFlowListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (dflr DataFlowListResponse) dataFlowListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !dflr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(dflr.NextLink))) -} - -// DataFlowListResponsePage contains a page of DataFlowResource values. -type DataFlowListResponsePage struct { - fn func(context.Context, DataFlowListResponse) (DataFlowListResponse, error) - dflr DataFlowListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *DataFlowListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DataFlowListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.dflr) - if err != nil { - return err - } - page.dflr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *DataFlowListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page DataFlowListResponsePage) NotDone() bool { - return !page.dflr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page DataFlowListResponsePage) Response() DataFlowListResponse { - return page.dflr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page DataFlowListResponsePage) Values() []DataFlowResource { - if page.dflr.IsEmpty() { - return nil - } - return *page.dflr.Value -} - -// Creates a new instance of the DataFlowListResponsePage type. -func NewDataFlowListResponsePage(cur DataFlowListResponse, getNextPage func(context.Context, DataFlowListResponse) (DataFlowListResponse, error)) DataFlowListResponsePage { - return DataFlowListResponsePage{ - fn: getNextPage, - dflr: cur, - } -} - -// DataFlowReference data flow reference type. -type DataFlowReference struct { - // Type - Data flow reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference data flow name. - ReferenceName *string `json:"referenceName,omitempty"` - // DatasetParameters - Reference data flow parameters from dataset. - DatasetParameters interface{} `json:"datasetParameters,omitempty"` - // Parameters - Data flow parameters - Parameters map[string]interface{} `json:"parameters"` -} - -// MarshalJSON is the custom marshaler for DataFlowReference. -func (dfr DataFlowReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dfr.Type != nil { - objectMap["type"] = dfr.Type - } - if dfr.ReferenceName != nil { - objectMap["referenceName"] = dfr.ReferenceName - } - if dfr.DatasetParameters != nil { - objectMap["datasetParameters"] = dfr.DatasetParameters - } - if dfr.Parameters != nil { - objectMap["parameters"] = dfr.Parameters - } - return json.Marshal(objectMap) -} - -// DataFlowResource data flow resource type. -type DataFlowResource struct { - autorest.Response `json:"-"` - // Properties - Data flow properties. - Properties BasicDataFlow `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for DataFlowResource. -func (dfr DataFlowResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["properties"] = dfr.Properties - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DataFlowResource struct. -func (dfr *DataFlowResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicDataFlow(*v) - if err != nil { - return err - } - dfr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - dfr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dfr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dfr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - dfr.Etag = &etag - } - } - } - - return nil -} - -// DataFlowSink transformation for data flow sink. -type DataFlowSink struct { - // SchemaLinkedService - Schema linked service reference. - SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` - // RejectedDataLinkedService - Rejected data linked service reference. - RejectedDataLinkedService *LinkedServiceReference `json:"rejectedDataLinkedService,omitempty"` - // Name - Transformation name. - Name *string `json:"name,omitempty"` - // Description - Transformation description. - Description *string `json:"description,omitempty"` - // Dataset - Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // LinkedService - Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` - // Flowlet - Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` -} - -// DataFlowSource transformation for data flow source. -type DataFlowSource struct { - // SchemaLinkedService - Schema linked service reference. - SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` - // Name - Transformation name. - Name *string `json:"name,omitempty"` - // Description - Transformation description. - Description *string `json:"description,omitempty"` - // Dataset - Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // LinkedService - Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` - // Flowlet - Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` -} - -// DataFlowSourceSetting definition of data flow source setting for debug. -type DataFlowSourceSetting struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceName - The data flow source name. - SourceName *string `json:"sourceName,omitempty"` - // RowLimit - Defines the row limit of data flow source in debug. - RowLimit *int32 `json:"rowLimit,omitempty"` -} - -// MarshalJSON is the custom marshaler for DataFlowSourceSetting. -func (dfss DataFlowSourceSetting) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dfss.SourceName != nil { - objectMap["sourceName"] = dfss.SourceName - } - if dfss.RowLimit != nil { - objectMap["rowLimit"] = dfss.RowLimit - } - for k, v := range dfss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DataFlowSourceSetting struct. -func (dfss *DataFlowSourceSetting) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dfss.AdditionalProperties == nil { - dfss.AdditionalProperties = make(map[string]interface{}) - } - dfss.AdditionalProperties[k] = additionalProperties - } - case "sourceName": - if v != nil { - var sourceName string - err = json.Unmarshal(*v, &sourceName) - if err != nil { - return err - } - dfss.SourceName = &sourceName - } - case "rowLimit": - if v != nil { - var rowLimit int32 - err = json.Unmarshal(*v, &rowLimit) - if err != nil { - return err - } - dfss.RowLimit = &rowLimit - } - } - } - - return nil -} - -// DataFlowStagingInfo staging info for execute data flow activity. -type DataFlowStagingInfo struct { - // LinkedService - Staging linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` - // FolderPath - Folder path for staging blob. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` -} - -// DataLakeAnalyticsUSQLActivity data Lake Analytics U-SQL activity. -type DataLakeAnalyticsUSQLActivity struct { - // DataLakeAnalyticsUSQLActivityTypeProperties - Data Lake Analytics U-SQL activity properties. - *DataLakeAnalyticsUSQLActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) MarshalJSON() ([]byte, error) { - dlaua.Type = TypeBasicActivityTypeDataLakeAnalyticsUSQL - objectMap := make(map[string]interface{}) - if dlaua.DataLakeAnalyticsUSQLActivityTypeProperties != nil { - objectMap["typeProperties"] = dlaua.DataLakeAnalyticsUSQLActivityTypeProperties - } - if dlaua.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dlaua.LinkedServiceName - } - if dlaua.Policy != nil { - objectMap["policy"] = dlaua.Policy - } - if dlaua.Name != nil { - objectMap["name"] = dlaua.Name - } - if dlaua.Description != nil { - objectMap["description"] = dlaua.Description - } - if dlaua.State != "" { - objectMap["state"] = dlaua.State - } - if dlaua.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = dlaua.OnInactiveMarkAs - } - if dlaua.DependsOn != nil { - objectMap["dependsOn"] = dlaua.DependsOn - } - if dlaua.UserProperties != nil { - objectMap["userProperties"] = dlaua.UserProperties - } - if dlaua.Type != "" { - objectMap["type"] = dlaua.Type - } - for k, v := range dlaua.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return &dlaua, true -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dlaua, true -} - -// AsWebHookActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for DataLakeAnalyticsUSQLActivity. -func (dlaua DataLakeAnalyticsUSQLActivity) AsBasicActivity() (BasicActivity, bool) { - return &dlaua, true -} - -// UnmarshalJSON is the custom unmarshaler for DataLakeAnalyticsUSQLActivity struct. -func (dlaua *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dataLakeAnalyticsUSQLActivityTypeProperties DataLakeAnalyticsUSQLActivityTypeProperties - err = json.Unmarshal(*v, &dataLakeAnalyticsUSQLActivityTypeProperties) - if err != nil { - return err - } - dlaua.DataLakeAnalyticsUSQLActivityTypeProperties = &dataLakeAnalyticsUSQLActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dlaua.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dlaua.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dlaua.AdditionalProperties == nil { - dlaua.AdditionalProperties = make(map[string]interface{}) - } - dlaua.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dlaua.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dlaua.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - dlaua.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - dlaua.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dlaua.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - dlaua.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dlaua.Type = typeVar - } - } - } - - return nil -} - -// DataLakeAnalyticsUSQLActivityTypeProperties dataLakeAnalyticsU-SQL activity properties. -type DataLakeAnalyticsUSQLActivityTypeProperties struct { - // ScriptPath - Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` - // ScriptLinkedService - Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` - // DegreeOfParallelism - 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"` - // Priority - 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"` - // Parameters - Parameters for U-SQL job request. - Parameters map[string]interface{} `json:"parameters"` - // RuntimeVersion - Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). - RuntimeVersion interface{} `json:"runtimeVersion,omitempty"` - // CompilationMode - 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"` -} - -// MarshalJSON is the custom marshaler for DataLakeAnalyticsUSQLActivityTypeProperties. -func (dlauatp DataLakeAnalyticsUSQLActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dlauatp.ScriptPath != nil { - objectMap["scriptPath"] = dlauatp.ScriptPath - } - if dlauatp.ScriptLinkedService != nil { - objectMap["scriptLinkedService"] = dlauatp.ScriptLinkedService - } - if dlauatp.DegreeOfParallelism != nil { - objectMap["degreeOfParallelism"] = dlauatp.DegreeOfParallelism - } - if dlauatp.Priority != nil { - objectMap["priority"] = dlauatp.Priority - } - if dlauatp.Parameters != nil { - objectMap["parameters"] = dlauatp.Parameters - } - if dlauatp.RuntimeVersion != nil { - objectMap["runtimeVersion"] = dlauatp.RuntimeVersion - } - if dlauatp.CompilationMode != nil { - objectMap["compilationMode"] = dlauatp.CompilationMode - } - return json.Marshal(objectMap) -} - -// DataMapperMapping source and target table mapping details. -type DataMapperMapping struct { - // TargetEntityName - Name of the target table - TargetEntityName *string `json:"targetEntityName,omitempty"` - // SourceEntityName - Name of the source table - SourceEntityName *string `json:"sourceEntityName,omitempty"` - // SourceConnectionReference - The connection reference for the source connection. - SourceConnectionReference *MapperConnectionReference `json:"sourceConnectionReference,omitempty"` - // AttributeMappingInfo - This holds the user provided attribute mapping information. - AttributeMappingInfo *MapperAttributeMappings `json:"attributeMappingInfo,omitempty"` - // SourceDenormalizeInfo - This holds the source denormalization information used while joining multiple sources. - SourceDenormalizeInfo interface{} `json:"sourceDenormalizeInfo,omitempty"` -} - -// DatabricksNotebookActivity databricksNotebook activity. -type DatabricksNotebookActivity struct { - // DatabricksNotebookActivityTypeProperties - Databricks Notebook activity properties. - *DatabricksNotebookActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) MarshalJSON() ([]byte, error) { - dna.Type = TypeBasicActivityTypeDatabricksNotebook - objectMap := make(map[string]interface{}) - if dna.DatabricksNotebookActivityTypeProperties != nil { - objectMap["typeProperties"] = dna.DatabricksNotebookActivityTypeProperties - } - if dna.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dna.LinkedServiceName - } - if dna.Policy != nil { - objectMap["policy"] = dna.Policy - } - if dna.Name != nil { - objectMap["name"] = dna.Name - } - if dna.Description != nil { - objectMap["description"] = dna.Description - } - if dna.State != "" { - objectMap["state"] = dna.State - } - if dna.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = dna.OnInactiveMarkAs - } - if dna.DependsOn != nil { - objectMap["dependsOn"] = dna.DependsOn - } - if dna.UserProperties != nil { - objectMap["userProperties"] = dna.UserProperties - } - if dna.Type != "" { - objectMap["type"] = dna.Type - } - for k, v := range dna.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return &dna, true -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dna, true -} - -// AsWebHookActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for DatabricksNotebookActivity. -func (dna DatabricksNotebookActivity) AsBasicActivity() (BasicActivity, bool) { - return &dna, true -} - -// UnmarshalJSON is the custom unmarshaler for DatabricksNotebookActivity struct. -func (dna *DatabricksNotebookActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var databricksNotebookActivityTypeProperties DatabricksNotebookActivityTypeProperties - err = json.Unmarshal(*v, &databricksNotebookActivityTypeProperties) - if err != nil { - return err - } - dna.DatabricksNotebookActivityTypeProperties = &databricksNotebookActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dna.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dna.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dna.AdditionalProperties == nil { - dna.AdditionalProperties = make(map[string]interface{}) - } - dna.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dna.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dna.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - dna.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - dna.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dna.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - dna.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dna.Type = typeVar - } - } - } - - return nil -} - -// DatabricksNotebookActivityTypeProperties databricks Notebook activity properties. -type DatabricksNotebookActivityTypeProperties struct { - // NotebookPath - 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"` - // BaseParameters - 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"` - // Libraries - A list of libraries to be installed on the cluster that will execute the job. - Libraries *[]map[string]interface{} `json:"libraries,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatabricksNotebookActivityTypeProperties. -func (dnatp DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dnatp.NotebookPath != nil { - objectMap["notebookPath"] = dnatp.NotebookPath - } - if dnatp.BaseParameters != nil { - objectMap["baseParameters"] = dnatp.BaseParameters - } - if dnatp.Libraries != nil { - objectMap["libraries"] = dnatp.Libraries - } - return json.Marshal(objectMap) -} - -// DatabricksSparkJarActivity databricksSparkJar activity. -type DatabricksSparkJarActivity struct { - // DatabricksSparkJarActivityTypeProperties - Databricks SparkJar activity properties. - *DatabricksSparkJarActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { - dsja.Type = TypeBasicActivityTypeDatabricksSparkJar - objectMap := make(map[string]interface{}) - if dsja.DatabricksSparkJarActivityTypeProperties != nil { - objectMap["typeProperties"] = dsja.DatabricksSparkJarActivityTypeProperties - } - if dsja.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dsja.LinkedServiceName - } - if dsja.Policy != nil { - objectMap["policy"] = dsja.Policy - } - if dsja.Name != nil { - objectMap["name"] = dsja.Name - } - if dsja.Description != nil { - objectMap["description"] = dsja.Description - } - if dsja.State != "" { - objectMap["state"] = dsja.State - } - if dsja.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = dsja.OnInactiveMarkAs - } - if dsja.DependsOn != nil { - objectMap["dependsOn"] = dsja.DependsOn - } - if dsja.UserProperties != nil { - objectMap["userProperties"] = dsja.UserProperties - } - if dsja.Type != "" { - objectMap["type"] = dsja.Type - } - for k, v := range dsja.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return &dsja, true -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dsja, true -} - -// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for DatabricksSparkJarActivity. -func (dsja DatabricksSparkJarActivity) AsBasicActivity() (BasicActivity, bool) { - return &dsja, true -} - -// UnmarshalJSON is the custom unmarshaler for DatabricksSparkJarActivity struct. -func (dsja *DatabricksSparkJarActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var databricksSparkJarActivityTypeProperties DatabricksSparkJarActivityTypeProperties - err = json.Unmarshal(*v, &databricksSparkJarActivityTypeProperties) - if err != nil { - return err - } - dsja.DatabricksSparkJarActivityTypeProperties = &databricksSparkJarActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dsja.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dsja.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dsja.AdditionalProperties == nil { - dsja.AdditionalProperties = make(map[string]interface{}) - } - dsja.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dsja.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dsja.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - dsja.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - dsja.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dsja.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - dsja.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dsja.Type = typeVar - } - } - } - - return nil -} - -// DatabricksSparkJarActivityTypeProperties databricks SparkJar activity properties. -type DatabricksSparkJarActivityTypeProperties struct { - // MainClassName - 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"` - // Parameters - Parameters that will be passed to the main method. - Parameters *[]interface{} `json:"parameters,omitempty"` - // Libraries - A list of libraries to be installed on the cluster that will execute the job. - Libraries *[]map[string]interface{} `json:"libraries,omitempty"` -} - -// DatabricksSparkPythonActivity databricksSparkPython activity. -type DatabricksSparkPythonActivity struct { - // DatabricksSparkPythonActivityTypeProperties - Databricks SparkPython activity properties. - *DatabricksSparkPythonActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error) { - dspa.Type = TypeBasicActivityTypeDatabricksSparkPython - objectMap := make(map[string]interface{}) - if dspa.DatabricksSparkPythonActivityTypeProperties != nil { - objectMap["typeProperties"] = dspa.DatabricksSparkPythonActivityTypeProperties - } - if dspa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dspa.LinkedServiceName - } - if dspa.Policy != nil { - objectMap["policy"] = dspa.Policy - } - if dspa.Name != nil { - objectMap["name"] = dspa.Name - } - if dspa.Description != nil { - objectMap["description"] = dspa.Description - } - if dspa.State != "" { - objectMap["state"] = dspa.State - } - if dspa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = dspa.OnInactiveMarkAs - } - if dspa.DependsOn != nil { - objectMap["dependsOn"] = dspa.DependsOn - } - if dspa.UserProperties != nil { - objectMap["userProperties"] = dspa.UserProperties - } - if dspa.Type != "" { - objectMap["type"] = dspa.Type - } - for k, v := range dspa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return &dspa, true -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &dspa, true -} - -// AsWebHookActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for DatabricksSparkPythonActivity. -func (dspa DatabricksSparkPythonActivity) AsBasicActivity() (BasicActivity, bool) { - return &dspa, true -} - -// UnmarshalJSON is the custom unmarshaler for DatabricksSparkPythonActivity struct. -func (dspa *DatabricksSparkPythonActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var databricksSparkPythonActivityTypeProperties DatabricksSparkPythonActivityTypeProperties - err = json.Unmarshal(*v, &databricksSparkPythonActivityTypeProperties) - if err != nil { - return err - } - dspa.DatabricksSparkPythonActivityTypeProperties = &databricksSparkPythonActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dspa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - dspa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dspa.AdditionalProperties == nil { - dspa.AdditionalProperties = make(map[string]interface{}) - } - dspa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dspa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dspa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - dspa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - dspa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - dspa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - dspa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dspa.Type = typeVar - } - } - } - - return nil -} - -// DatabricksSparkPythonActivityTypeProperties databricks SparkPython activity properties. -type DatabricksSparkPythonActivityTypeProperties struct { - // PythonFile - 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"` - // Parameters - Command line parameters that will be passed to the Python file. - Parameters *[]interface{} `json:"parameters,omitempty"` - // Libraries - A list of libraries to be installed on the cluster that will execute the job. - Libraries *[]map[string]interface{} `json:"libraries,omitempty"` -} - -// BasicDataset the Azure Data Factory nested object which identifies data within different data stores, such as -// tables, files, folders, and documents. -type BasicDataset interface { - AsWarehouseTableDataset() (*WarehouseTableDataset, bool) - AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) - AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) - AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) - AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) - AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) - AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) - AsSnowflakeDataset() (*SnowflakeDataset, bool) - AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) - AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) - AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) - AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) - AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) - AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) - AsVerticaTableDataset() (*VerticaTableDataset, bool) - AsNetezzaTableDataset() (*NetezzaTableDataset, bool) - AsZohoObjectDataset() (*ZohoObjectDataset, bool) - AsXeroObjectDataset() (*XeroObjectDataset, bool) - AsSquareObjectDataset() (*SquareObjectDataset, bool) - AsSparkObjectDataset() (*SparkObjectDataset, bool) - AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) - AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) - AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) - AsPrestoObjectDataset() (*PrestoObjectDataset, bool) - AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) - AsPaypalObjectDataset() (*PaypalObjectDataset, bool) - AsMarketoObjectDataset() (*MarketoObjectDataset, bool) - AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) - AsMariaDBTableDataset() (*MariaDBTableDataset, bool) - AsMagentoObjectDataset() (*MagentoObjectDataset, bool) - AsJiraObjectDataset() (*JiraObjectDataset, bool) - AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) - AsHubspotObjectDataset() (*HubspotObjectDataset, bool) - AsHiveObjectDataset() (*HiveObjectDataset, bool) - AsHBaseObjectDataset() (*HBaseObjectDataset, bool) - AsGreenplumTableDataset() (*GreenplumTableDataset, bool) - AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) - AsEloquaObjectDataset() (*EloquaObjectDataset, bool) - AsDrillTableDataset() (*DrillTableDataset, bool) - AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) - AsConcurObjectDataset() (*ConcurObjectDataset, bool) - AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) - AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) - AsHTTPDataset() (*HTTPDataset, bool) - AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) - AsWebTableDataset() (*WebTableDataset, bool) - AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) - AsSapTableResourceDataset() (*SapTableResourceDataset, bool) - AsRestResourceDataset() (*RestResourceDataset, bool) - AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) - AsSQLServerTableDataset() (*SQLServerTableDataset, bool) - AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) - AsSapHanaTableDataset() (*SapHanaTableDataset, bool) - AsSapEccResourceDataset() (*SapEccResourceDataset, bool) - AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) - AsSapBwCubeDataset() (*SapBwCubeDataset, bool) - AsSybaseTableDataset() (*SybaseTableDataset, bool) - AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) - AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) - AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) - AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) - AsMySQLTableDataset() (*MySQLTableDataset, bool) - AsOdbcTableDataset() (*OdbcTableDataset, bool) - AsInformixTableDataset() (*InformixTableDataset, bool) - AsRelationalTableDataset() (*RelationalTableDataset, bool) - AsDb2TableDataset() (*Db2TableDataset, bool) - AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) - AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) - AsTeradataTableDataset() (*TeradataTableDataset, bool) - AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) - AsOracleTableDataset() (*OracleTableDataset, bool) - AsODataResourceDataset() (*ODataResourceDataset, bool) - AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) - AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) - AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) - AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) - AsFileShareDataset() (*FileShareDataset, bool) - AsOffice365Dataset() (*Office365Dataset, bool) - AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) - AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) - AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) - AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) - AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) - AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) - AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) - AsCustomDataset() (*CustomDataset, bool) - AsCassandraTableDataset() (*CassandraTableDataset, bool) - AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) - AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) - AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) - AsAzureTableDataset() (*AzureTableDataset, bool) - AsAzureBlobDataset() (*AzureBlobDataset, bool) - AsBinaryDataset() (*BinaryDataset, bool) - AsOrcDataset() (*OrcDataset, bool) - AsXMLDataset() (*XMLDataset, bool) - AsJSONDataset() (*JSONDataset, bool) - AsDelimitedTextDataset() (*DelimitedTextDataset, bool) - AsParquetDataset() (*ParquetDataset, bool) - AsExcelDataset() (*ExcelDataset, bool) - AsAvroDataset() (*AvroDataset, bool) - AsAmazonS3Dataset() (*AmazonS3Dataset, bool) - AsDataset() (*Dataset, bool) -} - -// Dataset the Azure Data Factory nested object which identifies data within different data stores, such as -// tables, files, folders, and documents. -type Dataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -func unmarshalBasicDataset(body []byte) (BasicDataset, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicDatasetTypeWarehouseTable): - var wtd WarehouseTableDataset - err := json.Unmarshal(body, &wtd) - return wtd, err - case string(TypeBasicDatasetTypeSalesforceServiceCloudV2Object): - var sscvod SalesforceServiceCloudV2ObjectDataset - err := json.Unmarshal(body, &sscvod) - return sscvod, err - case string(TypeBasicDatasetTypeSalesforceV2Object): - var svod SalesforceV2ObjectDataset - err := json.Unmarshal(body, &svod) - return svod, err - case string(TypeBasicDatasetTypeLakeHouseTable): - var lhtd LakeHouseTableDataset - err := json.Unmarshal(body, &lhtd) - return lhtd, err - case string(TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset): - var addld AzureDatabricksDeltaLakeDataset - err := json.Unmarshal(body, &addld) - return addld, err - case string(TypeBasicDatasetTypeSharePointOnlineListResource): - var spolrd SharePointOnlineListResourceDataset - err := json.Unmarshal(body, &spolrd) - return spolrd, err - case string(TypeBasicDatasetTypeSnowflakeV2Table): - var svd SnowflakeV2Dataset - err := json.Unmarshal(body, &svd) - return svd, err - case string(TypeBasicDatasetTypeSnowflakeTable): - var sd SnowflakeDataset - err := json.Unmarshal(body, &sd) - return sd, err - case string(TypeBasicDatasetTypeGoogleAdWordsObject): - var gawod GoogleAdWordsObjectDataset - err := json.Unmarshal(body, &gawod) - return gawod, err - case string(TypeBasicDatasetTypeAzureDataExplorerTable): - var adetd AzureDataExplorerTableDataset - err := json.Unmarshal(body, &adetd) - return adetd, err - case string(TypeBasicDatasetTypeOracleServiceCloudObject): - var oscod OracleServiceCloudObjectDataset - err := json.Unmarshal(body, &oscod) - return oscod, err - case string(TypeBasicDatasetTypeDynamicsAXResource): - var dard DynamicsAXResourceDataset - err := json.Unmarshal(body, &dard) - return dard, err - case string(TypeBasicDatasetTypeResponsysObject): - var rod ResponsysObjectDataset - err := json.Unmarshal(body, &rod) - return rod, err - case string(TypeBasicDatasetTypeSalesforceMarketingCloudObject): - var smcod SalesforceMarketingCloudObjectDataset - err := json.Unmarshal(body, &smcod) - return smcod, err - case string(TypeBasicDatasetTypeVerticaTable): - var vtd VerticaTableDataset - err := json.Unmarshal(body, &vtd) - return vtd, err - case string(TypeBasicDatasetTypeNetezzaTable): - var ntd NetezzaTableDataset - err := json.Unmarshal(body, &ntd) - return ntd, err - case string(TypeBasicDatasetTypeZohoObject): - var zod ZohoObjectDataset - err := json.Unmarshal(body, &zod) - return zod, err - case string(TypeBasicDatasetTypeXeroObject): - var xod XeroObjectDataset - err := json.Unmarshal(body, &xod) - return xod, err - case string(TypeBasicDatasetTypeSquareObject): - var sod SquareObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeBasicDatasetTypeSparkObject): - var sod SparkObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeBasicDatasetTypeShopifyObject): - var sod ShopifyObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeBasicDatasetTypeServiceNowObject): - var snod ServiceNowObjectDataset - err := json.Unmarshal(body, &snod) - return snod, err - case string(TypeBasicDatasetTypeQuickBooksObject): - var qbod QuickBooksObjectDataset - err := json.Unmarshal(body, &qbod) - return qbod, err - case string(TypeBasicDatasetTypePrestoObject): - var pod PrestoObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypeBasicDatasetTypePhoenixObject): - var pod PhoenixObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypeBasicDatasetTypePaypalObject): - var pod PaypalObjectDataset - err := json.Unmarshal(body, &pod) - return pod, err - case string(TypeBasicDatasetTypeMarketoObject): - var mod MarketoObjectDataset - err := json.Unmarshal(body, &mod) - return mod, err - case string(TypeBasicDatasetTypeAzureMariaDBTable): - var amdtd AzureMariaDBTableDataset - err := json.Unmarshal(body, &amdtd) - return amdtd, err - case string(TypeBasicDatasetTypeMariaDBTable): - var mdtd MariaDBTableDataset - err := json.Unmarshal(body, &mdtd) - return mdtd, err - case string(TypeBasicDatasetTypeMagentoObject): - var mod MagentoObjectDataset - err := json.Unmarshal(body, &mod) - return mod, err - case string(TypeBasicDatasetTypeJiraObject): - var jod JiraObjectDataset - err := json.Unmarshal(body, &jod) - return jod, err - case string(TypeBasicDatasetTypeImpalaObject): - var iod ImpalaObjectDataset - err := json.Unmarshal(body, &iod) - return iod, err - case string(TypeBasicDatasetTypeHubspotObject): - var hod HubspotObjectDataset - err := json.Unmarshal(body, &hod) - return hod, err - case string(TypeBasicDatasetTypeHiveObject): - var hod HiveObjectDataset - err := json.Unmarshal(body, &hod) - return hod, err - case string(TypeBasicDatasetTypeHBaseObject): - var hbod HBaseObjectDataset - err := json.Unmarshal(body, &hbod) - return hbod, err - case string(TypeBasicDatasetTypeGreenplumTable): - var gtd GreenplumTableDataset - err := json.Unmarshal(body, >d) - return gtd, err - case string(TypeBasicDatasetTypeGoogleBigQueryObject): - var gbqod GoogleBigQueryObjectDataset - err := json.Unmarshal(body, &gbqod) - return gbqod, err - case string(TypeBasicDatasetTypeEloquaObject): - var eod EloquaObjectDataset - err := json.Unmarshal(body, &eod) - return eod, err - case string(TypeBasicDatasetTypeDrillTable): - var dtd DrillTableDataset - err := json.Unmarshal(body, &dtd) - return dtd, err - case string(TypeBasicDatasetTypeCouchbaseTable): - var ctd CouchbaseTableDataset - err := json.Unmarshal(body, &ctd) - return ctd, err - case string(TypeBasicDatasetTypeConcurObject): - var cod ConcurObjectDataset - err := json.Unmarshal(body, &cod) - return cod, err - case string(TypeBasicDatasetTypeAzurePostgreSQLTable): - var apstd AzurePostgreSQLTableDataset - err := json.Unmarshal(body, &apstd) - return apstd, err - case string(TypeBasicDatasetTypeAmazonMWSObject): - var amod AmazonMWSObjectDataset - err := json.Unmarshal(body, &amod) - return amod, err - case string(TypeBasicDatasetTypeHTTPFile): - var hd HTTPDataset - err := json.Unmarshal(body, &hd) - return hd, err - case string(TypeBasicDatasetTypeAzureSearchIndex): - var asid AzureSearchIndexDataset - err := json.Unmarshal(body, &asid) - return asid, err - case string(TypeBasicDatasetTypeWebTable): - var wtd WebTableDataset - err := json.Unmarshal(body, &wtd) - return wtd, err - case string(TypeBasicDatasetTypeSapOdpResource): - var sord SapOdpResourceDataset - err := json.Unmarshal(body, &sord) - return sord, err - case string(TypeBasicDatasetTypeSapTableResource): - var strd SapTableResourceDataset - err := json.Unmarshal(body, &strd) - return strd, err - case string(TypeBasicDatasetTypeRestResource): - var rrd RestResourceDataset - err := json.Unmarshal(body, &rrd) - return rrd, err - case string(TypeBasicDatasetTypeAmazonRdsForSQLServerTable): - var arfsstd AmazonRdsForSQLServerTableDataset - err := json.Unmarshal(body, &arfsstd) - return arfsstd, err - case string(TypeBasicDatasetTypeSQLServerTable): - var sstd SQLServerTableDataset - err := json.Unmarshal(body, &sstd) - return sstd, err - case string(TypeBasicDatasetTypeSapOpenHubTable): - var sohtd SapOpenHubTableDataset - err := json.Unmarshal(body, &sohtd) - return sohtd, err - case string(TypeBasicDatasetTypeSapHanaTable): - var shtd SapHanaTableDataset - err := json.Unmarshal(body, &shtd) - return shtd, err - case string(TypeBasicDatasetTypeSapEccResource): - var serd SapEccResourceDataset - err := json.Unmarshal(body, &serd) - return serd, err - case string(TypeBasicDatasetTypeSapCloudForCustomerResource): - var scfcrd SapCloudForCustomerResourceDataset - err := json.Unmarshal(body, &scfcrd) - return scfcrd, err - case string(TypeBasicDatasetTypeSapBwCube): - var sbcd SapBwCubeDataset - err := json.Unmarshal(body, &sbcd) - return sbcd, err - case string(TypeBasicDatasetTypeSybaseTable): - var std SybaseTableDataset - err := json.Unmarshal(body, &std) - return std, err - case string(TypeBasicDatasetTypeSalesforceServiceCloudObject): - var sscod SalesforceServiceCloudObjectDataset - err := json.Unmarshal(body, &sscod) - return sscod, err - case string(TypeBasicDatasetTypeSalesforceObject): - var sod SalesforceObjectDataset - err := json.Unmarshal(body, &sod) - return sod, err - case string(TypeBasicDatasetTypeMicrosoftAccessTable): - var matd MicrosoftAccessTableDataset - err := json.Unmarshal(body, &matd) - return matd, err - case string(TypeBasicDatasetTypePostgreSQLTable): - var pstd PostgreSQLTableDataset - err := json.Unmarshal(body, &pstd) - return pstd, err - case string(TypeBasicDatasetTypeMySQLTable): - var mstd MySQLTableDataset - err := json.Unmarshal(body, &mstd) - return mstd, err - case string(TypeBasicDatasetTypeOdbcTable): - var otd OdbcTableDataset - err := json.Unmarshal(body, &otd) - return otd, err - case string(TypeBasicDatasetTypeInformixTable): - var itd InformixTableDataset - err := json.Unmarshal(body, &itd) - return itd, err - case string(TypeBasicDatasetTypeRelationalTable): - var rtd RelationalTableDataset - err := json.Unmarshal(body, &rtd) - return rtd, err - case string(TypeBasicDatasetTypeDb2Table): - var d2td Db2TableDataset - err := json.Unmarshal(body, &d2td) - return d2td, err - case string(TypeBasicDatasetTypeAmazonRedshiftTable): - var artd AmazonRedshiftTableDataset - err := json.Unmarshal(body, &artd) - return artd, err - case string(TypeBasicDatasetTypeAzureMySQLTable): - var amstd AzureMySQLTableDataset - err := json.Unmarshal(body, &amstd) - return amstd, err - case string(TypeBasicDatasetTypeTeradataTable): - var ttd TeradataTableDataset - err := json.Unmarshal(body, &ttd) - return ttd, err - case string(TypeBasicDatasetTypeAmazonRdsForOracleTable): - var arfotd AmazonRdsForOracleTableDataset - err := json.Unmarshal(body, &arfotd) - return arfotd, err - case string(TypeBasicDatasetTypeOracleTable): - var otd OracleTableDataset - err := json.Unmarshal(body, &otd) - return otd, err - case string(TypeBasicDatasetTypeODataResource): - var odrd ODataResourceDataset - err := json.Unmarshal(body, &odrd) - return odrd, err - case string(TypeBasicDatasetTypeCosmosDbMongoDbAPICollection): - var cdmdacd CosmosDbMongoDbAPICollectionDataset - err := json.Unmarshal(body, &cdmdacd) - return cdmdacd, err - case string(TypeBasicDatasetTypeMongoDbV2Collection): - var mdvcd MongoDbV2CollectionDataset - err := json.Unmarshal(body, &mdvcd) - return mdvcd, err - case string(TypeBasicDatasetTypeMongoDbAtlasCollection): - var mdacd MongoDbAtlasCollectionDataset - err := json.Unmarshal(body, &mdacd) - return mdacd, err - case string(TypeBasicDatasetTypeMongoDbCollection): - var mdcd MongoDbCollectionDataset - err := json.Unmarshal(body, &mdcd) - return mdcd, err - case string(TypeBasicDatasetTypeFileShare): - var fsd FileShareDataset - err := json.Unmarshal(body, &fsd) - return fsd, err - case string(TypeBasicDatasetTypeOffice365Table): - var o3d Office365Dataset - err := json.Unmarshal(body, &o3d) - return o3d, err - case string(TypeBasicDatasetTypeAzureBlobFSFile): - var abfd AzureBlobFSDataset - err := json.Unmarshal(body, &abfd) - return abfd, err - case string(TypeBasicDatasetTypeAzureDataLakeStoreFile): - var adlsd AzureDataLakeStoreDataset - err := json.Unmarshal(body, &adlsd) - return adlsd, err - case string(TypeBasicDatasetTypeCommonDataServiceForAppsEntity): - var cdsfaed CommonDataServiceForAppsEntityDataset - err := json.Unmarshal(body, &cdsfaed) - return cdsfaed, err - case string(TypeBasicDatasetTypeDynamicsCrmEntity): - var dced DynamicsCrmEntityDataset - err := json.Unmarshal(body, &dced) - return dced, err - case string(TypeBasicDatasetTypeDynamicsEntity): - var ded DynamicsEntityDataset - err := json.Unmarshal(body, &ded) - return ded, err - case string(TypeBasicDatasetTypeDocumentDbCollection): - var ddcd DocumentDbCollectionDataset - err := json.Unmarshal(body, &ddcd) - return ddcd, err - case string(TypeBasicDatasetTypeCosmosDbSQLAPICollection): - var cdsacd CosmosDbSQLAPICollectionDataset - err := json.Unmarshal(body, &cdsacd) - return cdsacd, err - case string(TypeBasicDatasetTypeCustomDataset): - var cd CustomDataset - err := json.Unmarshal(body, &cd) - return cd, err - case string(TypeBasicDatasetTypeCassandraTable): - var ctd CassandraTableDataset - err := json.Unmarshal(body, &ctd) - return ctd, err - case string(TypeBasicDatasetTypeAzureSQLDWTable): - var asdtd AzureSQLDWTableDataset - err := json.Unmarshal(body, &asdtd) - return asdtd, err - case string(TypeBasicDatasetTypeAzureSQLMITable): - var asmtd AzureSQLMITableDataset - err := json.Unmarshal(body, &asmtd) - return asmtd, err - case string(TypeBasicDatasetTypeAzureSQLTable): - var astd AzureSQLTableDataset - err := json.Unmarshal(body, &astd) - return astd, err - case string(TypeBasicDatasetTypeAzureTable): - var atd AzureTableDataset - err := json.Unmarshal(body, &atd) - return atd, err - case string(TypeBasicDatasetTypeAzureBlob): - var abd AzureBlobDataset - err := json.Unmarshal(body, &abd) - return abd, err - case string(TypeBasicDatasetTypeBinary): - var bd BinaryDataset - err := json.Unmarshal(body, &bd) - return bd, err - case string(TypeBasicDatasetTypeOrc): - var od OrcDataset - err := json.Unmarshal(body, &od) - return od, err - case string(TypeBasicDatasetTypeXML): - var xd XMLDataset - err := json.Unmarshal(body, &xd) - return xd, err - case string(TypeBasicDatasetTypeJSON): - var jd JSONDataset - err := json.Unmarshal(body, &jd) - return jd, err - case string(TypeBasicDatasetTypeDelimitedText): - var dtd DelimitedTextDataset - err := json.Unmarshal(body, &dtd) - return dtd, err - case string(TypeBasicDatasetTypeParquet): - var pd ParquetDataset - err := json.Unmarshal(body, &pd) - return pd, err - case string(TypeBasicDatasetTypeExcel): - var ed ExcelDataset - err := json.Unmarshal(body, &ed) - return ed, err - case string(TypeBasicDatasetTypeAvro): - var ad AvroDataset - err := json.Unmarshal(body, &ad) - return ad, err - case string(TypeBasicDatasetTypeAmazonS3Object): - var asd AmazonS3Dataset - err := json.Unmarshal(body, &asd) - return asd, err - default: - var d Dataset - err := json.Unmarshal(body, &d) - return d, err - } -} -func unmarshalBasicDatasetArray(body []byte) ([]BasicDataset, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dArray := make([]BasicDataset, len(rawMessages)) - - for index, rawMessage := range rawMessages { - d, err := unmarshalBasicDataset(*rawMessage) - if err != nil { - return nil, err - } - dArray[index] = d - } - return dArray, nil -} - -// MarshalJSON is the custom marshaler for Dataset. -func (d Dataset) MarshalJSON() ([]byte, error) { - d.Type = TypeBasicDatasetTypeDataset - objectMap := make(map[string]interface{}) - if d.Description != nil { - objectMap["description"] = d.Description - } - if d.Structure != nil { - objectMap["structure"] = d.Structure - } - if d.Schema != nil { - objectMap["schema"] = d.Schema - } - if d.LinkedServiceName != nil { - objectMap["linkedServiceName"] = d.LinkedServiceName - } - if d.Parameters != nil { - objectMap["parameters"] = d.Parameters - } - if d.Annotations != nil { - objectMap["annotations"] = d.Annotations - } - if d.Folder != nil { - objectMap["folder"] = d.Folder - } - if d.Type != "" { - objectMap["type"] = d.Type - } - for k, v := range d.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsDataset() (*Dataset, bool) { - return &d, true -} - -// AsBasicDataset is the BasicDataset implementation for Dataset. -func (d Dataset) AsBasicDataset() (BasicDataset, bool) { - return &d, true -} - -// UnmarshalJSON is the custom unmarshaler for Dataset struct. -func (d *Dataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if d.AdditionalProperties == nil { - d.AdditionalProperties = make(map[string]interface{}) - } - d.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - d.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - d.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - d.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - d.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - d.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - d.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - d.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - d.Type = typeVar - } - } - } - - return nil -} - -// DatasetCompression the compression method used on a dataset. -type DatasetCompression struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Type of dataset compression. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` - // Level - The dataset compression level. Type: string (or Expression with resultType string). - Level interface{} `json:"level,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetCompression. -func (dc DatasetCompression) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dc.Type != nil { - objectMap["type"] = dc.Type - } - if dc.Level != nil { - objectMap["level"] = dc.Level - } - for k, v := range dc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DatasetCompression struct. -func (dc *DatasetCompression) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dc.AdditionalProperties == nil { - dc.AdditionalProperties = make(map[string]interface{}) - } - dc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar interface{} - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dc.Type = typeVar - } - case "level": - if v != nil { - var level interface{} - err = json.Unmarshal(*v, &level) - if err != nil { - return err - } - dc.Level = level - } - } - } - - return nil -} - -// DatasetDataElement columns that define the structure of the dataset. -type DatasetDataElement struct { - // Name - Name of the column. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - // Type - Type of the column. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` -} - -// DatasetDebugResource dataset debug resource. -type DatasetDebugResource struct { - // Properties - Dataset properties. - Properties BasicDataset `json:"properties,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DatasetDebugResource struct. -func (ddr *DatasetDebugResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicDataset(*v) - if err != nil { - return err - } - ddr.Properties = properties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ddr.Name = &name - } - } - } - - return nil -} - -// DatasetFolder the folder that this Dataset is in. If not specified, Dataset will appear at the root -// level. -type DatasetFolder struct { - // Name - The name of the folder that this Dataset is in. - Name *string `json:"name,omitempty"` -} - -// DatasetListResponse a list of dataset resources. -type DatasetListResponse struct { - autorest.Response `json:"-"` - // Value - List of datasets. - Value *[]DatasetResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// DatasetListResponseIterator provides access to a complete listing of DatasetResource values. -type DatasetListResponseIterator struct { - i int - page DatasetListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *DatasetListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatasetListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *DatasetListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter DatasetListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter DatasetListResponseIterator) Response() DatasetListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter DatasetListResponseIterator) Value() DatasetResource { - if !iter.page.NotDone() { - return DatasetResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the DatasetListResponseIterator type. -func NewDatasetListResponseIterator(page DatasetListResponsePage) DatasetListResponseIterator { - return DatasetListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (dlr DatasetListResponse) IsEmpty() bool { - return dlr.Value == nil || len(*dlr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (dlr DatasetListResponse) hasNextLink() bool { - return dlr.NextLink != nil && len(*dlr.NextLink) != 0 -} - -// datasetListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (dlr DatasetListResponse) datasetListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !dlr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(dlr.NextLink))) -} - -// DatasetListResponsePage contains a page of DatasetResource values. -type DatasetListResponsePage struct { - fn func(context.Context, DatasetListResponse) (DatasetListResponse, error) - dlr DatasetListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *DatasetListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/DatasetListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.dlr) - if err != nil { - return err - } - page.dlr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *DatasetListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page DatasetListResponsePage) NotDone() bool { - return !page.dlr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page DatasetListResponsePage) Response() DatasetListResponse { - return page.dlr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page DatasetListResponsePage) Values() []DatasetResource { - if page.dlr.IsEmpty() { - return nil - } - return *page.dlr.Value -} - -// Creates a new instance of the DatasetListResponsePage type. -func NewDatasetListResponsePage(cur DatasetListResponse, getNextPage func(context.Context, DatasetListResponse) (DatasetListResponse, error)) DatasetListResponsePage { - return DatasetListResponsePage{ - fn: getNextPage, - dlr: cur, - } -} - -// BasicDatasetLocation dataset location. -type BasicDatasetLocation interface { - AsLakeHouseLocation() (*LakeHouseLocation, bool) - AsHdfsLocation() (*HdfsLocation, bool) - AsHTTPServerLocation() (*HTTPServerLocation, bool) - AsSftpLocation() (*SftpLocation, bool) - AsFtpServerLocation() (*FtpServerLocation, bool) - AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) - AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) - AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) - AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) - AsFileServerLocation() (*FileServerLocation, bool) - AsAmazonS3Location() (*AmazonS3Location, bool) - AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) - AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) - AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) - AsDatasetLocation() (*DatasetLocation, bool) -} - -// DatasetLocation dataset location. -type DatasetLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -func unmarshalBasicDatasetLocation(body []byte) (BasicDatasetLocation, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicDatasetLocationTypeLakeHouseLocation): - var lhl LakeHouseLocation - err := json.Unmarshal(body, &lhl) - return lhl, err - case string(TypeBasicDatasetLocationTypeHdfsLocation): - var hl HdfsLocation - err := json.Unmarshal(body, &hl) - return hl, err - case string(TypeBasicDatasetLocationTypeHTTPServerLocation): - var hsl HTTPServerLocation - err := json.Unmarshal(body, &hsl) - return hsl, err - case string(TypeBasicDatasetLocationTypeSftpLocation): - var sl SftpLocation - err := json.Unmarshal(body, &sl) - return sl, err - case string(TypeBasicDatasetLocationTypeFtpServerLocation): - var fsl FtpServerLocation - err := json.Unmarshal(body, &fsl) - return fsl, err - case string(TypeBasicDatasetLocationTypeGoogleCloudStorageLocation): - var gcsl GoogleCloudStorageLocation - err := json.Unmarshal(body, &gcsl) - return gcsl, err - case string(TypeBasicDatasetLocationTypeOracleCloudStorageLocation): - var ocsl OracleCloudStorageLocation - err := json.Unmarshal(body, &ocsl) - return ocsl, err - case string(TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation): - var ascl AmazonS3CompatibleLocation - err := json.Unmarshal(body, &ascl) - return ascl, err - case string(TypeBasicDatasetLocationTypeAzureFileStorageLocation): - var afsl AzureFileStorageLocation - err := json.Unmarshal(body, &afsl) - return afsl, err - case string(TypeBasicDatasetLocationTypeFileServerLocation): - var fsl FileServerLocation - err := json.Unmarshal(body, &fsl) - return fsl, err - case string(TypeBasicDatasetLocationTypeAmazonS3Location): - var asl AmazonS3Location - err := json.Unmarshal(body, &asl) - return asl, err - case string(TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation): - var adlsl AzureDataLakeStoreLocation - err := json.Unmarshal(body, &adlsl) - return adlsl, err - case string(TypeBasicDatasetLocationTypeAzureBlobFSLocation): - var abfl AzureBlobFSLocation - err := json.Unmarshal(body, &abfl) - return abfl, err - case string(TypeBasicDatasetLocationTypeAzureBlobStorageLocation): - var absl AzureBlobStorageLocation - err := json.Unmarshal(body, &absl) - return absl, err - default: - var dl DatasetLocation - err := json.Unmarshal(body, &dl) - return dl, err - } -} -func unmarshalBasicDatasetLocationArray(body []byte) ([]BasicDatasetLocation, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dlArray := make([]BasicDatasetLocation, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dl, err := unmarshalBasicDatasetLocation(*rawMessage) - if err != nil { - return nil, err - } - dlArray[index] = dl - } - return dlArray, nil -} - -// MarshalJSON is the custom marshaler for DatasetLocation. -func (dl DatasetLocation) MarshalJSON() ([]byte, error) { - dl.Type = TypeBasicDatasetLocationTypeDatasetLocation - objectMap := make(map[string]interface{}) - if dl.FolderPath != nil { - objectMap["folderPath"] = dl.FolderPath - } - if dl.FileName != nil { - objectMap["fileName"] = dl.FileName - } - if dl.Type != "" { - objectMap["type"] = dl.Type - } - for k, v := range dl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return &dl, true -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for DatasetLocation. -func (dl DatasetLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &dl, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetLocation struct. -func (dl *DatasetLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dl.AdditionalProperties == nil { - dl.AdditionalProperties = make(map[string]interface{}) - } - dl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - dl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - dl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dl.Type = typeVar - } - } - } - - return nil -} - -// DatasetReference dataset reference type. -type DatasetReference struct { - // Type - Dataset reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference dataset name. - ReferenceName *string `json:"referenceName,omitempty"` - // Parameters - Arguments for dataset. - Parameters map[string]interface{} `json:"parameters"` -} - -// MarshalJSON is the custom marshaler for DatasetReference. -func (dr DatasetReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dr.Type != nil { - objectMap["type"] = dr.Type - } - if dr.ReferenceName != nil { - objectMap["referenceName"] = dr.ReferenceName - } - if dr.Parameters != nil { - objectMap["parameters"] = dr.Parameters - } - return json.Marshal(objectMap) -} - -// DatasetResource dataset resource type. -type DatasetResource struct { - autorest.Response `json:"-"` - // Properties - Dataset properties. - Properties BasicDataset `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetResource. -func (dr DatasetResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["properties"] = dr.Properties - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DatasetResource struct. -func (dr *DatasetResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicDataset(*v) - if err != nil { - return err - } - dr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - dr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - dr.Etag = &etag - } - } - } - - return nil -} - -// DatasetSchemaDataElement columns that define the physical type schema of the dataset. -type DatasetSchemaDataElement struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Name of the schema column. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - // Type - Type of the schema column. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DatasetSchemaDataElement. -func (dsde DatasetSchemaDataElement) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if dsde.Name != nil { - objectMap["name"] = dsde.Name - } - if dsde.Type != nil { - objectMap["type"] = dsde.Type - } - for k, v := range dsde.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for DatasetSchemaDataElement struct. -func (dsde *DatasetSchemaDataElement) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dsde.AdditionalProperties == nil { - dsde.AdditionalProperties = make(map[string]interface{}) - } - dsde.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name interface{} - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - dsde.Name = name - } - case "type": - if v != nil { - var typeVar interface{} - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dsde.Type = typeVar - } - } - } - - return nil -} - -// BasicDatasetStorageFormat the format definition of a storage. -type BasicDatasetStorageFormat interface { - AsParquetFormat() (*ParquetFormat, bool) - AsOrcFormat() (*OrcFormat, bool) - AsAvroFormat() (*AvroFormat, bool) - AsJSONFormat() (*JSONFormat, bool) - AsTextFormat() (*TextFormat, bool) - AsDatasetStorageFormat() (*DatasetStorageFormat, bool) -} - -// DatasetStorageFormat the format definition of a storage. -type DatasetStorageFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -func unmarshalBasicDatasetStorageFormat(body []byte) (BasicDatasetStorageFormat, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicDatasetStorageFormatTypeParquetFormat): - var pf ParquetFormat - err := json.Unmarshal(body, &pf) - return pf, err - case string(TypeBasicDatasetStorageFormatTypeOrcFormat): - var of OrcFormat - err := json.Unmarshal(body, &of) - return of, err - case string(TypeBasicDatasetStorageFormatTypeAvroFormat): - var af AvroFormat - err := json.Unmarshal(body, &af) - return af, err - case string(TypeBasicDatasetStorageFormatTypeJSONFormat): - var jf JSONFormat - err := json.Unmarshal(body, &jf) - return jf, err - case string(TypeBasicDatasetStorageFormatTypeTextFormat): - var tf TextFormat - err := json.Unmarshal(body, &tf) - return tf, err - default: - var dsf DatasetStorageFormat - err := json.Unmarshal(body, &dsf) - return dsf, err - } -} -func unmarshalBasicDatasetStorageFormatArray(body []byte) ([]BasicDatasetStorageFormat, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - dsfArray := make([]BasicDatasetStorageFormat, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dsf, err := unmarshalBasicDatasetStorageFormat(*rawMessage) - if err != nil { - return nil, err - } - dsfArray[index] = dsf - } - return dsfArray, nil -} - -// MarshalJSON is the custom marshaler for DatasetStorageFormat. -func (dsf DatasetStorageFormat) MarshalJSON() ([]byte, error) { - dsf.Type = TypeBasicDatasetStorageFormatTypeDatasetStorageFormat - objectMap := make(map[string]interface{}) - if dsf.Serializer != nil { - objectMap["serializer"] = dsf.Serializer - } - if dsf.Deserializer != nil { - objectMap["deserializer"] = dsf.Deserializer - } - if dsf.Type != "" { - objectMap["type"] = dsf.Type - } - for k, v := range dsf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsParquetFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// AsOrcFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// AsAvroFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// AsJSONFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// AsTextFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return &dsf, true -} - -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for DatasetStorageFormat. -func (dsf DatasetStorageFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &dsf, true -} - -// UnmarshalJSON is the custom unmarshaler for DatasetStorageFormat struct. -func (dsf *DatasetStorageFormat) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dsf.AdditionalProperties == nil { - dsf.AdditionalProperties = make(map[string]interface{}) - } - dsf.AdditionalProperties[k] = additionalProperties - } - case "serializer": - if v != nil { - var serializer interface{} - err = json.Unmarshal(*v, &serializer) - if err != nil { - return err - } - dsf.Serializer = serializer - } - case "deserializer": - if v != nil { - var deserializer interface{} - err = json.Unmarshal(*v, &deserializer) - if err != nil { - return err - } - dsf.Deserializer = deserializer - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetStorageFormat - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dsf.Type = typeVar - } - } - } - - return nil -} - -// DataworldLinkedService linked service for Dataworld. -type DataworldLinkedService struct { - // DataworldLinkedServiceTypeProperties - Dataworld linked service properties. - *DataworldLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DataworldLinkedService. -func (dls DataworldLinkedService) MarshalJSON() ([]byte, error) { - dls.Type = TypeBasicLinkedServiceTypeDataworld - objectMap := make(map[string]interface{}) - if dls.DataworldLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dls.DataworldLinkedServiceTypeProperties - } - if dls.ConnectVia != nil { - objectMap["connectVia"] = dls.ConnectVia - } - if dls.Description != nil { - objectMap["description"] = dls.Description - } - if dls.Parameters != nil { - objectMap["parameters"] = dls.Parameters - } - if dls.Annotations != nil { - objectMap["annotations"] = dls.Annotations - } - if dls.Type != "" { - objectMap["type"] = dls.Type - } - for k, v := range dls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return &dls, true -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for DataworldLinkedService. -func (dls DataworldLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dls, true -} - -// UnmarshalJSON is the custom unmarshaler for DataworldLinkedService struct. -func (dls *DataworldLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dataworldLinkedServiceTypeProperties DataworldLinkedServiceTypeProperties - err = json.Unmarshal(*v, &dataworldLinkedServiceTypeProperties) - if err != nil { - return err - } - dls.DataworldLinkedServiceTypeProperties = &dataworldLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dls.AdditionalProperties == nil { - dls.AdditionalProperties = make(map[string]interface{}) - } - dls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - dls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dls.Type = typeVar - } - } - } - - return nil -} - -// DataworldLinkedServiceTypeProperties dataworld linked service type properties. -type DataworldLinkedServiceTypeProperties struct { - // APIToken - The api token for the Dataworld source. - APIToken BasicSecretBase `json:"apiToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DataworldLinkedServiceTypeProperties struct. -func (dlstp *DataworldLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "apiToken": - if v != nil { - APIToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - dlstp.APIToken = APIToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - dlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// Db2LinkedService linked service for DB2 data source. -type Db2LinkedService struct { - // Db2LinkedServiceTypeProperties - DB2 linked service properties. - *Db2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Db2LinkedService. -func (d2ls Db2LinkedService) MarshalJSON() ([]byte, error) { - d2ls.Type = TypeBasicLinkedServiceTypeDb2 - objectMap := make(map[string]interface{}) - if d2ls.Db2LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = d2ls.Db2LinkedServiceTypeProperties - } - if d2ls.ConnectVia != nil { - objectMap["connectVia"] = d2ls.ConnectVia - } - if d2ls.Description != nil { - objectMap["description"] = d2ls.Description - } - if d2ls.Parameters != nil { - objectMap["parameters"] = d2ls.Parameters - } - if d2ls.Annotations != nil { - objectMap["annotations"] = d2ls.Annotations - } - if d2ls.Type != "" { - objectMap["type"] = d2ls.Type - } - for k, v := range d2ls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return &d2ls, true -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for Db2LinkedService. -func (d2ls Db2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &d2ls, true -} - -// UnmarshalJSON is the custom unmarshaler for Db2LinkedService struct. -func (d2ls *Db2LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var db2LinkedServiceTypeProperties Db2LinkedServiceTypeProperties - err = json.Unmarshal(*v, &db2LinkedServiceTypeProperties) - if err != nil { - return err - } - d2ls.Db2LinkedServiceTypeProperties = &db2LinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if d2ls.AdditionalProperties == nil { - d2ls.AdditionalProperties = make(map[string]interface{}) - } - d2ls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - d2ls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - d2ls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - d2ls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - d2ls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - d2ls.Type = typeVar - } - } - } - - return nil -} - -// Db2LinkedServiceTypeProperties dB2 linked service properties. -type Db2LinkedServiceTypeProperties struct { - // ConnectionString - 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"` - // Server - Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Database - Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. It is mutually exclusive with connectionString property. Possible values include: 'Db2AuthenticationTypeBasic' - AuthenticationType Db2AuthenticationType `json:"authenticationType,omitempty"` - // Username - Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // PackageCollection - 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"` - // CertificateCommonName - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with connectionString property. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for Db2LinkedServiceTypeProperties struct. -func (d2lstp *Db2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - d2lstp.ConnectionString = connectionString - } - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - d2lstp.Server = server - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - d2lstp.Database = databaseVar - } - case "authenticationType": - if v != nil { - var authenticationType Db2AuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - d2lstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - d2lstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - d2lstp.Password = password - } - case "packageCollection": - if v != nil { - var packageCollection interface{} - err = json.Unmarshal(*v, &packageCollection) - if err != nil { - return err - } - d2lstp.PackageCollection = packageCollection - } - case "certificateCommonName": - if v != nil { - var certificateCommonName interface{} - err = json.Unmarshal(*v, &certificateCommonName) - if err != nil { - return err - } - d2lstp.CertificateCommonName = certificateCommonName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - d2lstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// Db2Source a copy activity source for Db2 databases. -type Db2Source struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Db2Source. -func (d2s Db2Source) MarshalJSON() ([]byte, error) { - d2s.Type = TypeBasicCopySourceTypeDb2Source - objectMap := make(map[string]interface{}) - if d2s.Query != nil { - objectMap["query"] = d2s.Query - } - if d2s.QueryTimeout != nil { - objectMap["queryTimeout"] = d2s.QueryTimeout - } - if d2s.AdditionalColumns != nil { - objectMap["additionalColumns"] = d2s.AdditionalColumns - } - if d2s.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = d2s.SourceRetryCount - } - if d2s.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = d2s.SourceRetryWait - } - if d2s.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = d2s.MaxConcurrentConnections - } - if d2s.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = d2s.DisableMetricsCollection - } - if d2s.Type != "" { - objectMap["type"] = d2s.Type - } - for k, v := range d2s.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDb2Source() (*Db2Source, bool) { - return &d2s, true -} - -// AsInformixSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsBasicTabularSource() (BasicTabularSource, bool) { - return &d2s, true -} - -// AsBinarySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for Db2Source. -func (d2s Db2Source) AsBasicCopySource() (BasicCopySource, bool) { - return &d2s, true -} - -// UnmarshalJSON is the custom unmarshaler for Db2Source struct. -func (d2s *Db2Source) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - d2s.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - d2s.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - d2s.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if d2s.AdditionalProperties == nil { - d2s.AdditionalProperties = make(map[string]interface{}) - } - d2s.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - d2s.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - d2s.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - d2s.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - d2s.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - d2s.Type = typeVar - } - } - } - - return nil -} - -// Db2TableDataset the Db2 table dataset. -type Db2TableDataset struct { - // Db2TableDatasetTypeProperties - Db2 table dataset properties. - *Db2TableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Db2TableDataset. -func (d2td Db2TableDataset) MarshalJSON() ([]byte, error) { - d2td.Type = TypeBasicDatasetTypeDb2Table - objectMap := make(map[string]interface{}) - if d2td.Db2TableDatasetTypeProperties != nil { - objectMap["typeProperties"] = d2td.Db2TableDatasetTypeProperties - } - if d2td.Description != nil { - objectMap["description"] = d2td.Description - } - if d2td.Structure != nil { - objectMap["structure"] = d2td.Structure - } - if d2td.Schema != nil { - objectMap["schema"] = d2td.Schema - } - if d2td.LinkedServiceName != nil { - objectMap["linkedServiceName"] = d2td.LinkedServiceName - } - if d2td.Parameters != nil { - objectMap["parameters"] = d2td.Parameters - } - if d2td.Annotations != nil { - objectMap["annotations"] = d2td.Annotations - } - if d2td.Folder != nil { - objectMap["folder"] = d2td.Folder - } - if d2td.Type != "" { - objectMap["type"] = d2td.Type - } - for k, v := range d2td.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return &d2td, true -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for Db2TableDataset. -func (d2td Db2TableDataset) AsBasicDataset() (BasicDataset, bool) { - return &d2td, true -} - -// UnmarshalJSON is the custom unmarshaler for Db2TableDataset struct. -func (d2td *Db2TableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var db2TableDatasetTypeProperties Db2TableDatasetTypeProperties - err = json.Unmarshal(*v, &db2TableDatasetTypeProperties) - if err != nil { - return err - } - d2td.Db2TableDatasetTypeProperties = &db2TableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if d2td.AdditionalProperties == nil { - d2td.AdditionalProperties = make(map[string]interface{}) - } - d2td.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - d2td.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - d2td.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - d2td.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - d2td.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - d2td.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - d2td.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - d2td.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - d2td.Type = typeVar - } - } - } - - return nil -} - -// Db2TableDatasetTypeProperties db2 table dataset properties. -type Db2TableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The Db2 schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The Db2 table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// DeleteActivity delete activity. -type DeleteActivity struct { - // DeleteActivityTypeProperties - Delete activity properties. - *DeleteActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DeleteActivity. -func (da DeleteActivity) MarshalJSON() ([]byte, error) { - da.Type = TypeBasicActivityTypeDelete - objectMap := make(map[string]interface{}) - if da.DeleteActivityTypeProperties != nil { - objectMap["typeProperties"] = da.DeleteActivityTypeProperties - } - if da.LinkedServiceName != nil { - objectMap["linkedServiceName"] = da.LinkedServiceName - } - if da.Policy != nil { - objectMap["policy"] = da.Policy - } - if da.Name != nil { - objectMap["name"] = da.Name - } - if da.Description != nil { - objectMap["description"] = da.Description - } - if da.State != "" { - objectMap["state"] = da.State - } - if da.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = da.OnInactiveMarkAs - } - if da.DependsOn != nil { - objectMap["dependsOn"] = da.DependsOn - } - if da.UserProperties != nil { - objectMap["userProperties"] = da.UserProperties - } - if da.Type != "" { - objectMap["type"] = da.Type - } - for k, v := range da.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return &da, true -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &da, true -} - -// AsWebHookActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for DeleteActivity. -func (da DeleteActivity) AsBasicActivity() (BasicActivity, bool) { - return &da, true -} - -// UnmarshalJSON is the custom unmarshaler for DeleteActivity struct. -func (da *DeleteActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var deleteActivityTypeProperties DeleteActivityTypeProperties - err = json.Unmarshal(*v, &deleteActivityTypeProperties) - if err != nil { - return err - } - da.DeleteActivityTypeProperties = &deleteActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - da.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - da.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if da.AdditionalProperties == nil { - da.AdditionalProperties = make(map[string]interface{}) - } - da.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - da.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - da.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - da.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - da.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - da.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - da.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - da.Type = typeVar - } - } - } - - return nil -} - -// DeleteActivityTypeProperties delete activity properties. -type DeleteActivityTypeProperties struct { - // Recursive - 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"` - // MaxConcurrentConnections - The max concurrent connections to connect data source at the same time. - MaxConcurrentConnections *int32 `json:"maxConcurrentConnections,omitempty"` - // EnableLogging - 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"` - // LogStorageSettings - Log storage settings customer need to provide when enableLogging is true. - LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` - // Dataset - Delete activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // StoreSettings - Delete activity store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DeleteActivityTypeProperties struct. -func (datp *DeleteActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - datp.Recursive = recursive - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections int32 - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - datp.MaxConcurrentConnections = &maxConcurrentConnections - } - case "enableLogging": - if v != nil { - var enableLogging interface{} - err = json.Unmarshal(*v, &enableLogging) - if err != nil { - return err - } - datp.EnableLogging = enableLogging - } - case "logStorageSettings": - if v != nil { - var logStorageSettings LogStorageSettings - err = json.Unmarshal(*v, &logStorageSettings) - if err != nil { - return err - } - datp.LogStorageSettings = &logStorageSettings - } - case "dataset": - if v != nil { - var dataset DatasetReference - err = json.Unmarshal(*v, &dataset) - if err != nil { - return err - } - datp.Dataset = &dataset - } - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - datp.StoreSettings = storeSettings - } - } - } - - return nil -} - -// DeleteDataFlowDebugSessionRequest request body structure for deleting data flow debug session. -type DeleteDataFlowDebugSessionRequest struct { - // SessionID - The ID of data flow debug session. - SessionID *string `json:"sessionId,omitempty"` -} - -// DelimitedTextDataset delimited text dataset. -type DelimitedTextDataset struct { - // DelimitedTextDatasetTypeProperties - Delimited text dataset properties. - *DelimitedTextDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DelimitedTextDataset. -func (dtd DelimitedTextDataset) MarshalJSON() ([]byte, error) { - dtd.Type = TypeBasicDatasetTypeDelimitedText - objectMap := make(map[string]interface{}) - if dtd.DelimitedTextDatasetTypeProperties != nil { - objectMap["typeProperties"] = dtd.DelimitedTextDatasetTypeProperties - } - if dtd.Description != nil { - objectMap["description"] = dtd.Description - } - if dtd.Structure != nil { - objectMap["structure"] = dtd.Structure - } - if dtd.Schema != nil { - objectMap["schema"] = dtd.Schema - } - if dtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dtd.LinkedServiceName - } - if dtd.Parameters != nil { - objectMap["parameters"] = dtd.Parameters - } - if dtd.Annotations != nil { - objectMap["annotations"] = dtd.Annotations - } - if dtd.Folder != nil { - objectMap["folder"] = dtd.Folder - } - if dtd.Type != "" { - objectMap["type"] = dtd.Type - } - for k, v := range dtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return &dtd, true -} - -// AsParquetDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for DelimitedTextDataset. -func (dtd DelimitedTextDataset) AsBasicDataset() (BasicDataset, bool) { - return &dtd, true -} - -// UnmarshalJSON is the custom unmarshaler for DelimitedTextDataset struct. -func (dtd *DelimitedTextDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var delimitedTextDatasetTypeProperties DelimitedTextDatasetTypeProperties - err = json.Unmarshal(*v, &delimitedTextDatasetTypeProperties) - if err != nil { - return err - } - dtd.DelimitedTextDatasetTypeProperties = &delimitedTextDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dtd.AdditionalProperties == nil { - dtd.AdditionalProperties = make(map[string]interface{}) - } - dtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - dtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - dtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - dtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dtd.Type = typeVar - } - } - } - - return nil -} - -// DelimitedTextDatasetTypeProperties delimitedText dataset properties. -type DelimitedTextDatasetTypeProperties struct { - // Location - The location of the delimited text storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // ColumnDelimiter - The column delimiter. Type: string (or Expression with resultType string). - ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` - // RowDelimiter - The row delimiter. Type: string (or Expression with resultType string). - RowDelimiter interface{} `json:"rowDelimiter,omitempty"` - // EncodingName - 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"` - // CompressionCodec - The data compressionCodec. Type: string (or Expression with resultType string). - CompressionCodec interface{} `json:"compressionCodec,omitempty"` - // CompressionLevel - The data compression method used for DelimitedText. - CompressionLevel interface{} `json:"compressionLevel,omitempty"` - // QuoteChar - The quote character. Type: string (or Expression with resultType string). - QuoteChar interface{} `json:"quoteChar,omitempty"` - // EscapeChar - The escape character. Type: string (or Expression with resultType string). - EscapeChar interface{} `json:"escapeChar,omitempty"` - // FirstRowAsHeader - 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"` - // NullValue - The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DelimitedTextDatasetTypeProperties struct. -func (dtdtp *DelimitedTextDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - dtdtp.Location = location - } - case "columnDelimiter": - if v != nil { - var columnDelimiter interface{} - err = json.Unmarshal(*v, &columnDelimiter) - if err != nil { - return err - } - dtdtp.ColumnDelimiter = columnDelimiter - } - case "rowDelimiter": - if v != nil { - var rowDelimiter interface{} - err = json.Unmarshal(*v, &rowDelimiter) - if err != nil { - return err - } - dtdtp.RowDelimiter = rowDelimiter - } - case "encodingName": - if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) - if err != nil { - return err - } - dtdtp.EncodingName = encodingName - } - case "compressionCodec": - if v != nil { - var compressionCodec interface{} - err = json.Unmarshal(*v, &compressionCodec) - if err != nil { - return err - } - dtdtp.CompressionCodec = compressionCodec - } - case "compressionLevel": - if v != nil { - var compressionLevel interface{} - err = json.Unmarshal(*v, &compressionLevel) - if err != nil { - return err - } - dtdtp.CompressionLevel = compressionLevel - } - case "quoteChar": - if v != nil { - var quoteChar interface{} - err = json.Unmarshal(*v, "eChar) - if err != nil { - return err - } - dtdtp.QuoteChar = quoteChar - } - case "escapeChar": - if v != nil { - var escapeChar interface{} - err = json.Unmarshal(*v, &escapeChar) - if err != nil { - return err - } - dtdtp.EscapeChar = escapeChar - } - case "firstRowAsHeader": - if v != nil { - var firstRowAsHeader interface{} - err = json.Unmarshal(*v, &firstRowAsHeader) - if err != nil { - return err - } - dtdtp.FirstRowAsHeader = firstRowAsHeader - } - case "nullValue": - if v != nil { - var nullValue interface{} - err = json.Unmarshal(*v, &nullValue) - if err != nil { - return err - } - dtdtp.NullValue = nullValue - } - } - } - - return nil -} - -// DelimitedTextReadSettings delimited text read settings. -type DelimitedTextReadSettings struct { - // SkipLineCount - 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"` - // CompressionProperties - Compression settings. - CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) MarshalJSON() ([]byte, error) { - dtrs.Type = TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings - objectMap := make(map[string]interface{}) - if dtrs.SkipLineCount != nil { - objectMap["skipLineCount"] = dtrs.SkipLineCount - } - objectMap["compressionProperties"] = dtrs.CompressionProperties - if dtrs.Type != "" { - objectMap["type"] = dtrs.Type - } - for k, v := range dtrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { - return nil, false -} - -// AsXMLReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { - return nil, false -} - -// AsJSONReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { - return nil, false -} - -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { - return &dtrs, true -} - -// AsParquetReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { - return nil, false -} - -// AsFormatReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { - return nil, false -} - -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for DelimitedTextReadSettings. -func (dtrs DelimitedTextReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &dtrs, true -} - -// UnmarshalJSON is the custom unmarshaler for DelimitedTextReadSettings struct. -func (dtrs *DelimitedTextReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "skipLineCount": - if v != nil { - var skipLineCount interface{} - err = json.Unmarshal(*v, &skipLineCount) - if err != nil { - return err - } - dtrs.SkipLineCount = skipLineCount - } - case "compressionProperties": - if v != nil { - compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) - if err != nil { - return err - } - dtrs.CompressionProperties = compressionProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dtrs.AdditionalProperties == nil { - dtrs.AdditionalProperties = make(map[string]interface{}) - } - dtrs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dtrs.Type = typeVar - } - } - } - - return nil -} - -// DelimitedTextSink a copy activity DelimitedText sink. -type DelimitedTextSink struct { - // StoreSettings - DelimitedText store settings. - StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` - // FormatSettings - DelimitedText format settings. - FormatSettings *DelimitedTextWriteSettings `json:"formatSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DelimitedTextSink. -func (dts DelimitedTextSink) MarshalJSON() ([]byte, error) { - dts.Type = TypeBasicCopySinkTypeDelimitedTextSink - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = dts.StoreSettings - if dts.FormatSettings != nil { - objectMap["formatSettings"] = dts.FormatSettings - } - if dts.WriteBatchSize != nil { - objectMap["writeBatchSize"] = dts.WriteBatchSize - } - if dts.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = dts.WriteBatchTimeout - } - if dts.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = dts.SinkRetryCount - } - if dts.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = dts.SinkRetryWait - } - if dts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections - } - if dts.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = dts.DisableMetricsCollection - } - if dts.Type != "" { - objectMap["type"] = dts.Type - } - for k, v := range dts.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return &dts, true -} - -// AsCopySink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for DelimitedTextSink. -func (dts DelimitedTextSink) AsBasicCopySink() (BasicCopySink, bool) { - return &dts, true -} - -// UnmarshalJSON is the custom unmarshaler for DelimitedTextSink struct. -func (dts *DelimitedTextSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreWriteSettings(*v) - if err != nil { - return err - } - dts.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings DelimitedTextWriteSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - dts.FormatSettings = &formatSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dts.AdditionalProperties == nil { - dts.AdditionalProperties = make(map[string]interface{}) - } - dts.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - dts.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - dts.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - dts.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - dts.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - dts.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - dts.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dts.Type = typeVar - } - } - } - - return nil -} - -// DelimitedTextSource a copy activity DelimitedText source. -type DelimitedTextSource struct { - // StoreSettings - DelimitedText store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - DelimitedText format settings. - FormatSettings *DelimitedTextReadSettings `json:"formatSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DelimitedTextSource. -func (dts DelimitedTextSource) MarshalJSON() ([]byte, error) { - dts.Type = TypeBasicCopySourceTypeDelimitedTextSource - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = dts.StoreSettings - if dts.FormatSettings != nil { - objectMap["formatSettings"] = dts.FormatSettings - } - if dts.AdditionalColumns != nil { - objectMap["additionalColumns"] = dts.AdditionalColumns - } - if dts.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = dts.SourceRetryCount - } - if dts.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = dts.SourceRetryWait - } - if dts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = dts.MaxConcurrentConnections - } - if dts.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = dts.DisableMetricsCollection - } - if dts.Type != "" { - objectMap["type"] = dts.Type - } - for k, v := range dts.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return &dts, true -} - -// AsParquetSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for DelimitedTextSource. -func (dts DelimitedTextSource) AsBasicCopySource() (BasicCopySource, bool) { - return &dts, true -} - -// UnmarshalJSON is the custom unmarshaler for DelimitedTextSource struct. -func (dts *DelimitedTextSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - dts.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings DelimitedTextReadSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - dts.FormatSettings = &formatSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - dts.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dts.AdditionalProperties == nil { - dts.AdditionalProperties = make(map[string]interface{}) - } - dts.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - dts.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - dts.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - dts.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - dts.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dts.Type = typeVar - } - } - } - - return nil -} - -// DelimitedTextWriteSettings delimited text write settings. -type DelimitedTextWriteSettings struct { - // QuoteAllText - Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). - QuoteAllText interface{} `json:"quoteAllText,omitempty"` - // FileExtension - The file extension used to create the files. Type: string (or Expression with resultType string). - FileExtension interface{} `json:"fileExtension,omitempty"` - // MaxRowsPerFile - 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"` - // FileNamePrefix - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) MarshalJSON() ([]byte, error) { - dtws.Type = TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings - objectMap := make(map[string]interface{}) - if dtws.QuoteAllText != nil { - objectMap["quoteAllText"] = dtws.QuoteAllText - } - if dtws.FileExtension != nil { - objectMap["fileExtension"] = dtws.FileExtension - } - if dtws.MaxRowsPerFile != nil { - objectMap["maxRowsPerFile"] = dtws.MaxRowsPerFile - } - if dtws.FileNamePrefix != nil { - objectMap["fileNamePrefix"] = dtws.FileNamePrefix - } - if dtws.Type != "" { - objectMap["type"] = dtws.Type - } - for k, v := range dtws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { - return nil, false -} - -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { - return &dtws, true -} - -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { - return nil, false -} - -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { - return nil, false -} - -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { - return nil, false -} - -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return nil, false -} - -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for DelimitedTextWriteSettings. -func (dtws DelimitedTextWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &dtws, true -} - -// UnmarshalJSON is the custom unmarshaler for DelimitedTextWriteSettings struct. -func (dtws *DelimitedTextWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "quoteAllText": - if v != nil { - var quoteAllText interface{} - err = json.Unmarshal(*v, "eAllText) - if err != nil { - return err - } - dtws.QuoteAllText = quoteAllText - } - case "fileExtension": - if v != nil { - var fileExtension interface{} - err = json.Unmarshal(*v, &fileExtension) - if err != nil { - return err - } - dtws.FileExtension = fileExtension - } - case "maxRowsPerFile": - if v != nil { - var maxRowsPerFile interface{} - err = json.Unmarshal(*v, &maxRowsPerFile) - if err != nil { - return err - } - dtws.MaxRowsPerFile = maxRowsPerFile - } - case "fileNamePrefix": - if v != nil { - var fileNamePrefix interface{} - err = json.Unmarshal(*v, &fileNamePrefix) - if err != nil { - return err - } - dtws.FileNamePrefix = fileNamePrefix - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dtws.AdditionalProperties == nil { - dtws.AdditionalProperties = make(map[string]interface{}) - } - dtws.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dtws.Type = typeVar - } - } - } - - return nil -} - -// BasicDependencyReference referenced dependency. -type BasicDependencyReference interface { - AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) - AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) - AsTriggerDependencyReference() (*TriggerDependencyReference, bool) - AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) - AsDependencyReference() (*DependencyReference, bool) -} - -// DependencyReference referenced dependency. -type DependencyReference struct { - // Type - Possible values include: 'TypeBasicDependencyReferenceTypeDependencyReference', 'TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference', 'TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference', 'TypeBasicDependencyReferenceTypeTriggerDependencyReference' - Type TypeBasicDependencyReference `json:"type,omitempty"` -} - -func unmarshalBasicDependencyReference(body []byte) (BasicDependencyReference, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference): - var sdtwtr SelfDependencyTumblingWindowTriggerReference - err := json.Unmarshal(body, &sdtwtr) - return sdtwtr, err - case string(TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference): - var twtdr TumblingWindowTriggerDependencyReference - err := json.Unmarshal(body, &twtdr) - return twtdr, err - case string(TypeBasicDependencyReferenceTypeTriggerDependencyReference): - var tdr TriggerDependencyReference - err := json.Unmarshal(body, &tdr) - return tdr, err - default: - var dr DependencyReference - err := json.Unmarshal(body, &dr) - return dr, err - } -} -func unmarshalBasicDependencyReferenceArray(body []byte) ([]BasicDependencyReference, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - drArray := make([]BasicDependencyReference, len(rawMessages)) - - for index, rawMessage := range rawMessages { - dr, err := unmarshalBasicDependencyReference(*rawMessage) - if err != nil { - return nil, err - } - drArray[index] = dr - } - return drArray, nil -} - -// MarshalJSON is the custom marshaler for DependencyReference. -func (dr DependencyReference) MarshalJSON() ([]byte, error) { - dr.Type = TypeBasicDependencyReferenceTypeDependencyReference - objectMap := make(map[string]interface{}) - if dr.Type != "" { - objectMap["type"] = dr.Type - } - return json.Marshal(objectMap) -} - -// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { - return nil, false -} - -// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { - return nil, false -} - -// AsTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { - return nil, false -} - -// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { - return nil, false -} - -// AsDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsDependencyReference() (*DependencyReference, bool) { - return &dr, true -} - -// AsBasicDependencyReference is the BasicDependencyReference implementation for DependencyReference. -func (dr DependencyReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { - return &dr, true -} - -// DistcpSettings distcp settings. -type DistcpSettings struct { - // ResourceManagerEndpoint - Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). - ResourceManagerEndpoint interface{} `json:"resourceManagerEndpoint,omitempty"` - // TempScriptPath - 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"` - // DistcpOptions - Specifies the Distcp options. Type: string (or Expression with resultType string). - DistcpOptions interface{} `json:"distcpOptions,omitempty"` -} - -// DocumentDbCollectionDataset microsoft Azure Document Database Collection dataset. -type DocumentDbCollectionDataset struct { - // DocumentDbCollectionDatasetTypeProperties - DocumentDB Collection dataset properties. - *DocumentDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) MarshalJSON() ([]byte, error) { - ddcd.Type = TypeBasicDatasetTypeDocumentDbCollection - objectMap := make(map[string]interface{}) - if ddcd.DocumentDbCollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = ddcd.DocumentDbCollectionDatasetTypeProperties - } - if ddcd.Description != nil { - objectMap["description"] = ddcd.Description - } - if ddcd.Structure != nil { - objectMap["structure"] = ddcd.Structure - } - if ddcd.Schema != nil { - objectMap["schema"] = ddcd.Schema - } - if ddcd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ddcd.LinkedServiceName - } - if ddcd.Parameters != nil { - objectMap["parameters"] = ddcd.Parameters - } - if ddcd.Annotations != nil { - objectMap["annotations"] = ddcd.Annotations - } - if ddcd.Folder != nil { - objectMap["folder"] = ddcd.Folder - } - if ddcd.Type != "" { - objectMap["type"] = ddcd.Type - } - for k, v := range ddcd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return &ddcd, true -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for DocumentDbCollectionDataset. -func (ddcd DocumentDbCollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &ddcd, true -} - -// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionDataset struct. -func (ddcd *DocumentDbCollectionDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var documentDbCollectionDatasetTypeProperties DocumentDbCollectionDatasetTypeProperties - err = json.Unmarshal(*v, &documentDbCollectionDatasetTypeProperties) - if err != nil { - return err - } - ddcd.DocumentDbCollectionDatasetTypeProperties = &documentDbCollectionDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ddcd.AdditionalProperties == nil { - ddcd.AdditionalProperties = make(map[string]interface{}) - } - ddcd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ddcd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ddcd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - ddcd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ddcd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ddcd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ddcd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ddcd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ddcd.Type = typeVar - } - } - } - - return nil -} - -// DocumentDbCollectionDatasetTypeProperties documentDB Collection dataset properties. -type DocumentDbCollectionDatasetTypeProperties struct { - // CollectionName - Document Database collection name. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` -} - -// DocumentDbCollectionSink a copy activity Document Database Collection sink. -type DocumentDbCollectionSink struct { - // NestingSeparator - Nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // WriteBehavior - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { - ddcs.Type = TypeBasicCopySinkTypeDocumentDbCollectionSink - objectMap := make(map[string]interface{}) - if ddcs.NestingSeparator != nil { - objectMap["nestingSeparator"] = ddcs.NestingSeparator - } - if ddcs.WriteBehavior != nil { - objectMap["writeBehavior"] = ddcs.WriteBehavior - } - if ddcs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ddcs.WriteBatchSize - } - if ddcs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ddcs.WriteBatchTimeout - } - if ddcs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ddcs.SinkRetryCount - } - if ddcs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ddcs.SinkRetryWait - } - if ddcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections - } - if ddcs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ddcs.DisableMetricsCollection - } - if ddcs.Type != "" { - objectMap["type"] = ddcs.Type - } - for k, v := range ddcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return &ddcs, true -} - -// AsFileSystemSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for DocumentDbCollectionSink. -func (ddcs DocumentDbCollectionSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ddcs, true -} - -// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionSink struct. -func (ddcs *DocumentDbCollectionSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "nestingSeparator": - if v != nil { - var nestingSeparator interface{} - err = json.Unmarshal(*v, &nestingSeparator) - if err != nil { - return err - } - ddcs.NestingSeparator = nestingSeparator - } - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - ddcs.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ddcs.AdditionalProperties == nil { - ddcs.AdditionalProperties = make(map[string]interface{}) - } - ddcs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ddcs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ddcs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ddcs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ddcs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ddcs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ddcs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ddcs.Type = typeVar - } - } - } - - return nil -} - -// DocumentDbCollectionSource a copy activity Document Database Collection source. -type DocumentDbCollectionSource struct { - // Query - Documents query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // NestingSeparator - Nested properties separator. Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) MarshalJSON() ([]byte, error) { - ddcs.Type = TypeBasicCopySourceTypeDocumentDbCollectionSource - objectMap := make(map[string]interface{}) - if ddcs.Query != nil { - objectMap["query"] = ddcs.Query - } - if ddcs.NestingSeparator != nil { - objectMap["nestingSeparator"] = ddcs.NestingSeparator - } - if ddcs.QueryTimeout != nil { - objectMap["queryTimeout"] = ddcs.QueryTimeout - } - if ddcs.AdditionalColumns != nil { - objectMap["additionalColumns"] = ddcs.AdditionalColumns - } - if ddcs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ddcs.SourceRetryCount - } - if ddcs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ddcs.SourceRetryWait - } - if ddcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ddcs.MaxConcurrentConnections - } - if ddcs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ddcs.DisableMetricsCollection - } - if ddcs.Type != "" { - objectMap["type"] = ddcs.Type - } - for k, v := range ddcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return &ddcs, true -} - -// AsBlobSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for DocumentDbCollectionSource. -func (ddcs DocumentDbCollectionSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ddcs, true -} - -// UnmarshalJSON is the custom unmarshaler for DocumentDbCollectionSource struct. -func (ddcs *DocumentDbCollectionSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ddcs.Query = query - } - case "nestingSeparator": - if v != nil { - var nestingSeparator interface{} - err = json.Unmarshal(*v, &nestingSeparator) - if err != nil { - return err - } - ddcs.NestingSeparator = nestingSeparator - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ddcs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ddcs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ddcs.AdditionalProperties == nil { - ddcs.AdditionalProperties = make(map[string]interface{}) - } - ddcs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ddcs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ddcs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ddcs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ddcs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ddcs.Type = typeVar - } - } - } - - return nil -} - -// DrillDatasetTypeProperties drill Dataset Properties -type DrillDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Drill. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Drill. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// DrillLinkedService drill server linked service. -type DrillLinkedService struct { - // DrillLinkedServiceTypeProperties - Drill server linked service properties. - *DrillLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DrillLinkedService. -func (dls DrillLinkedService) MarshalJSON() ([]byte, error) { - dls.Type = TypeBasicLinkedServiceTypeDrill - objectMap := make(map[string]interface{}) - if dls.DrillLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dls.DrillLinkedServiceTypeProperties - } - if dls.ConnectVia != nil { - objectMap["connectVia"] = dls.ConnectVia - } - if dls.Description != nil { - objectMap["description"] = dls.Description - } - if dls.Parameters != nil { - objectMap["parameters"] = dls.Parameters - } - if dls.Annotations != nil { - objectMap["annotations"] = dls.Annotations - } - if dls.Type != "" { - objectMap["type"] = dls.Type - } - for k, v := range dls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return &dls, true -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for DrillLinkedService. -func (dls DrillLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dls, true -} - -// UnmarshalJSON is the custom unmarshaler for DrillLinkedService struct. -func (dls *DrillLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var drillLinkedServiceTypeProperties DrillLinkedServiceTypeProperties - err = json.Unmarshal(*v, &drillLinkedServiceTypeProperties) - if err != nil { - return err - } - dls.DrillLinkedServiceTypeProperties = &drillLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dls.AdditionalProperties == nil { - dls.AdditionalProperties = make(map[string]interface{}) - } - dls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - dls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dls.Type = typeVar - } - } - } - - return nil -} - -// DrillLinkedServiceTypeProperties drill server linked service properties. -type DrillLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Pwd - The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// DrillSource a copy activity Drill server source. -type DrillSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DrillSource. -func (ds DrillSource) MarshalJSON() ([]byte, error) { - ds.Type = TypeBasicCopySourceTypeDrillSource - objectMap := make(map[string]interface{}) - if ds.Query != nil { - objectMap["query"] = ds.Query - } - if ds.QueryTimeout != nil { - objectMap["queryTimeout"] = ds.QueryTimeout - } - if ds.AdditionalColumns != nil { - objectMap["additionalColumns"] = ds.AdditionalColumns - } - if ds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ds.SourceRetryCount - } - if ds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ds.SourceRetryWait - } - if ds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections - } - if ds.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection - } - if ds.Type != "" { - objectMap["type"] = ds.Type - } - for k, v := range ds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDrillSource() (*DrillSource, bool) { - return &ds, true -} - -// AsCouchbaseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ds, true -} - -// AsBinarySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for DrillSource. -func (ds DrillSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ds, true -} - -// UnmarshalJSON is the custom unmarshaler for DrillSource struct. -func (ds *DrillSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ds.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ds.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ds.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ds.AdditionalProperties == nil { - ds.AdditionalProperties = make(map[string]interface{}) - } - ds.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ds.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ds.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ds.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ds.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ds.Type = typeVar - } - } - } - - return nil -} - -// DrillTableDataset drill server dataset. -type DrillTableDataset struct { - // DrillDatasetTypeProperties - Properties specific to this dataset type. - *DrillDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DrillTableDataset. -func (dtd DrillTableDataset) MarshalJSON() ([]byte, error) { - dtd.Type = TypeBasicDatasetTypeDrillTable - objectMap := make(map[string]interface{}) - if dtd.DrillDatasetTypeProperties != nil { - objectMap["typeProperties"] = dtd.DrillDatasetTypeProperties - } - if dtd.Description != nil { - objectMap["description"] = dtd.Description - } - if dtd.Structure != nil { - objectMap["structure"] = dtd.Structure - } - if dtd.Schema != nil { - objectMap["schema"] = dtd.Schema - } - if dtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dtd.LinkedServiceName - } - if dtd.Parameters != nil { - objectMap["parameters"] = dtd.Parameters - } - if dtd.Annotations != nil { - objectMap["annotations"] = dtd.Annotations - } - if dtd.Folder != nil { - objectMap["folder"] = dtd.Folder - } - if dtd.Type != "" { - objectMap["type"] = dtd.Type - } - for k, v := range dtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return &dtd, true -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for DrillTableDataset. -func (dtd DrillTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &dtd, true -} - -// UnmarshalJSON is the custom unmarshaler for DrillTableDataset struct. -func (dtd *DrillTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var drillDatasetTypeProperties DrillDatasetTypeProperties - err = json.Unmarshal(*v, &drillDatasetTypeProperties) - if err != nil { - return err - } - dtd.DrillDatasetTypeProperties = &drillDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dtd.AdditionalProperties == nil { - dtd.AdditionalProperties = make(map[string]interface{}) - } - dtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - dtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - dtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - dtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dtd.Type = typeVar - } - } - } - - return nil -} - -// DynamicsAXLinkedService dynamics AX linked service. -type DynamicsAXLinkedService struct { - // DynamicsAXLinkedServiceTypeProperties - Dynamics AX linked service properties. - *DynamicsAXLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) MarshalJSON() ([]byte, error) { - dals.Type = TypeBasicLinkedServiceTypeDynamicsAX - objectMap := make(map[string]interface{}) - if dals.DynamicsAXLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dals.DynamicsAXLinkedServiceTypeProperties - } - if dals.ConnectVia != nil { - objectMap["connectVia"] = dals.ConnectVia - } - if dals.Description != nil { - objectMap["description"] = dals.Description - } - if dals.Parameters != nil { - objectMap["parameters"] = dals.Parameters - } - if dals.Annotations != nil { - objectMap["annotations"] = dals.Annotations - } - if dals.Type != "" { - objectMap["type"] = dals.Type - } - for k, v := range dals.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return &dals, true -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsAXLinkedService. -func (dals DynamicsAXLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dals, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsAXLinkedService struct. -func (dals *DynamicsAXLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dynamicsAXLinkedServiceTypeProperties DynamicsAXLinkedServiceTypeProperties - err = json.Unmarshal(*v, &dynamicsAXLinkedServiceTypeProperties) - if err != nil { - return err - } - dals.DynamicsAXLinkedServiceTypeProperties = &dynamicsAXLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dals.AdditionalProperties == nil { - dals.AdditionalProperties = make(map[string]interface{}) - } - dals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - dals.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dals.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dals.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dals.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dals.Type = typeVar - } - } - } - - return nil -} - -// DynamicsAXLinkedServiceTypeProperties dynamics AX linked service properties. -type DynamicsAXLinkedServiceTypeProperties struct { - // URL - The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - URL interface{} `json:"url,omitempty"` - // ServicePrincipalID - Specify the application's client ID. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - 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 BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // AadResourceID - Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). - AadResourceID interface{} `json:"aadResourceId,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsAXLinkedServiceTypeProperties struct. -func (dalstp *DynamicsAXLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - dalstp.URL = URL - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - dalstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - dalstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - dalstp.Tenant = tenant - } - case "aadResourceId": - if v != nil { - var aadResourceID interface{} - err = json.Unmarshal(*v, &aadResourceID) - if err != nil { - return err - } - dalstp.AadResourceID = aadResourceID - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - dalstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// DynamicsAXResourceDataset the path of the Dynamics AX OData entity. -type DynamicsAXResourceDataset struct { - // DynamicsAXResourceDatasetTypeProperties - Dynamics AX OData resource dataset properties. - *DynamicsAXResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) MarshalJSON() ([]byte, error) { - dard.Type = TypeBasicDatasetTypeDynamicsAXResource - objectMap := make(map[string]interface{}) - if dard.DynamicsAXResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = dard.DynamicsAXResourceDatasetTypeProperties - } - if dard.Description != nil { - objectMap["description"] = dard.Description - } - if dard.Structure != nil { - objectMap["structure"] = dard.Structure - } - if dard.Schema != nil { - objectMap["schema"] = dard.Schema - } - if dard.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dard.LinkedServiceName - } - if dard.Parameters != nil { - objectMap["parameters"] = dard.Parameters - } - if dard.Annotations != nil { - objectMap["annotations"] = dard.Annotations - } - if dard.Folder != nil { - objectMap["folder"] = dard.Folder - } - if dard.Type != "" { - objectMap["type"] = dard.Type - } - for k, v := range dard.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return &dard, true -} - -// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for DynamicsAXResourceDataset. -func (dard DynamicsAXResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &dard, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsAXResourceDataset struct. -func (dard *DynamicsAXResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dynamicsAXResourceDatasetTypeProperties DynamicsAXResourceDatasetTypeProperties - err = json.Unmarshal(*v, &dynamicsAXResourceDatasetTypeProperties) - if err != nil { - return err - } - dard.DynamicsAXResourceDatasetTypeProperties = &dynamicsAXResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dard.AdditionalProperties == nil { - dard.AdditionalProperties = make(map[string]interface{}) - } - dard.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dard.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - dard.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - dard.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dard.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dard.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dard.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - dard.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dard.Type = typeVar - } - } - } - - return nil -} - -// DynamicsAXResourceDatasetTypeProperties dynamics AX OData resource dataset properties. -type DynamicsAXResourceDatasetTypeProperties struct { - // Path - The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// DynamicsAXSource a copy activity Dynamics AX source. -type DynamicsAXSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // HTTPRequestTimeout - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsAXSource. -func (das DynamicsAXSource) MarshalJSON() ([]byte, error) { - das.Type = TypeBasicCopySourceTypeDynamicsAXSource - objectMap := make(map[string]interface{}) - if das.Query != nil { - objectMap["query"] = das.Query - } - if das.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = das.HTTPRequestTimeout - } - if das.QueryTimeout != nil { - objectMap["queryTimeout"] = das.QueryTimeout - } - if das.AdditionalColumns != nil { - objectMap["additionalColumns"] = das.AdditionalColumns - } - if das.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = das.SourceRetryCount - } - if das.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = das.SourceRetryWait - } - if das.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = das.MaxConcurrentConnections - } - if das.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = das.DisableMetricsCollection - } - if das.Type != "" { - objectMap["type"] = das.Type - } - for k, v := range das.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return &das, true -} - -// AsResponsysSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &das, true -} - -// AsBinarySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for DynamicsAXSource. -func (das DynamicsAXSource) AsBasicCopySource() (BasicCopySource, bool) { - return &das, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsAXSource struct. -func (das *DynamicsAXSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - das.Query = query - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - das.HTTPRequestTimeout = HTTPRequestTimeout - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - das.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - das.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if das.AdditionalProperties == nil { - das.AdditionalProperties = make(map[string]interface{}) - } - das.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - das.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - das.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - das.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - das.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - das.Type = typeVar - } - } - } - - return nil -} - -// DynamicsCrmEntityDataset the Dynamics CRM entity dataset. -type DynamicsCrmEntityDataset struct { - // DynamicsCrmEntityDatasetTypeProperties - Dynamics CRM entity dataset properties. - *DynamicsCrmEntityDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) MarshalJSON() ([]byte, error) { - dced.Type = TypeBasicDatasetTypeDynamicsCrmEntity - objectMap := make(map[string]interface{}) - if dced.DynamicsCrmEntityDatasetTypeProperties != nil { - objectMap["typeProperties"] = dced.DynamicsCrmEntityDatasetTypeProperties - } - if dced.Description != nil { - objectMap["description"] = dced.Description - } - if dced.Structure != nil { - objectMap["structure"] = dced.Structure - } - if dced.Schema != nil { - objectMap["schema"] = dced.Schema - } - if dced.LinkedServiceName != nil { - objectMap["linkedServiceName"] = dced.LinkedServiceName - } - if dced.Parameters != nil { - objectMap["parameters"] = dced.Parameters - } - if dced.Annotations != nil { - objectMap["annotations"] = dced.Annotations - } - if dced.Folder != nil { - objectMap["folder"] = dced.Folder - } - if dced.Type != "" { - objectMap["type"] = dced.Type - } - for k, v := range dced.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return &dced, true -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for DynamicsCrmEntityDataset. -func (dced DynamicsCrmEntityDataset) AsBasicDataset() (BasicDataset, bool) { - return &dced, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmEntityDataset struct. -func (dced *DynamicsCrmEntityDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dynamicsCrmEntityDatasetTypeProperties DynamicsCrmEntityDatasetTypeProperties - err = json.Unmarshal(*v, &dynamicsCrmEntityDatasetTypeProperties) - if err != nil { - return err - } - dced.DynamicsCrmEntityDatasetTypeProperties = &dynamicsCrmEntityDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dced.AdditionalProperties == nil { - dced.AdditionalProperties = make(map[string]interface{}) - } - dced.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dced.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - dced.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - dced.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - dced.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dced.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dced.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - dced.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dced.Type = typeVar - } - } - } - - return nil -} - -// DynamicsCrmEntityDatasetTypeProperties dynamics CRM entity dataset properties. -type DynamicsCrmEntityDatasetTypeProperties struct { - // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` -} - -// DynamicsCrmLinkedService dynamics CRM linked service. -type DynamicsCrmLinkedService struct { - // DynamicsCrmLinkedServiceTypeProperties - Dynamics CRM linked service properties. - *DynamicsCrmLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) MarshalJSON() ([]byte, error) { - dcls.Type = TypeBasicLinkedServiceTypeDynamicsCrm - objectMap := make(map[string]interface{}) - if dcls.DynamicsCrmLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dcls.DynamicsCrmLinkedServiceTypeProperties - } - if dcls.ConnectVia != nil { - objectMap["connectVia"] = dcls.ConnectVia - } - if dcls.Description != nil { - objectMap["description"] = dcls.Description - } - if dcls.Parameters != nil { - objectMap["parameters"] = dcls.Parameters - } - if dcls.Annotations != nil { - objectMap["annotations"] = dcls.Annotations - } - if dcls.Type != "" { - objectMap["type"] = dcls.Type - } - for k, v := range dcls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return &dcls, true -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsCrmLinkedService. -func (dcls DynamicsCrmLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dcls, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmLinkedService struct. -func (dcls *DynamicsCrmLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dynamicsCrmLinkedServiceTypeProperties DynamicsCrmLinkedServiceTypeProperties - err = json.Unmarshal(*v, &dynamicsCrmLinkedServiceTypeProperties) - if err != nil { - return err - } - dcls.DynamicsCrmLinkedServiceTypeProperties = &dynamicsCrmLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dcls.AdditionalProperties == nil { - dcls.AdditionalProperties = make(map[string]interface{}) - } - dcls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - dcls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dcls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dcls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dcls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dcls.Type = typeVar - } - } - } - - return nil -} - -// DynamicsCrmLinkedServiceTypeProperties dynamics CRM linked service properties. -type DynamicsCrmLinkedServiceTypeProperties struct { - // DeploymentType - 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"` - // HostName - 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"` - // Port - 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"` - // ServiceURI - 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"` - // OrganizationName - 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"` - // AuthenticationType - 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"` - // Username - User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password to access the Dynamics CRM instance. - Password BasicSecretBase `json:"password,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalCredentialType - 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"` - // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmLinkedServiceTypeProperties struct. -func (dclstp *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "deploymentType": - if v != nil { - var deploymentType interface{} - err = json.Unmarshal(*v, &deploymentType) - if err != nil { - return err - } - dclstp.DeploymentType = deploymentType - } - case "hostName": - if v != nil { - var hostName interface{} - err = json.Unmarshal(*v, &hostName) - if err != nil { - return err - } - dclstp.HostName = hostName - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - dclstp.Port = port - } - case "serviceUri": - if v != nil { - var serviceURI interface{} - err = json.Unmarshal(*v, &serviceURI) - if err != nil { - return err - } - dclstp.ServiceURI = serviceURI - } - case "organizationName": - if v != nil { - var organizationName interface{} - err = json.Unmarshal(*v, &organizationName) - if err != nil { - return err - } - dclstp.OrganizationName = organizationName - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - dclstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - dclstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - dclstp.Password = password - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - dclstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalCredentialType": - if v != nil { - var servicePrincipalCredentialType interface{} - err = json.Unmarshal(*v, &servicePrincipalCredentialType) - if err != nil { - return err - } - dclstp.ServicePrincipalCredentialType = servicePrincipalCredentialType - } - case "servicePrincipalCredential": - if v != nil { - servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - dclstp.ServicePrincipalCredential = servicePrincipalCredential - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - dclstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// DynamicsCrmSink a copy activity Dynamics CRM sink. -type DynamicsCrmSink struct { - // WriteBehavior - The write behavior for the operation. - WriteBehavior *string `json:"writeBehavior,omitempty"` - // IgnoreNullValues - 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"` - // AlternateKeyName - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsCrmSink. -func (dcs DynamicsCrmSink) MarshalJSON() ([]byte, error) { - dcs.Type = TypeBasicCopySinkTypeDynamicsCrmSink - objectMap := make(map[string]interface{}) - if dcs.WriteBehavior != nil { - objectMap["writeBehavior"] = dcs.WriteBehavior - } - if dcs.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = dcs.IgnoreNullValues - } - if dcs.AlternateKeyName != nil { - objectMap["alternateKeyName"] = dcs.AlternateKeyName - } - if dcs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = dcs.WriteBatchSize - } - if dcs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = dcs.WriteBatchTimeout - } - if dcs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = dcs.SinkRetryCount - } - if dcs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = dcs.SinkRetryWait - } - if dcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections - } - if dcs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = dcs.DisableMetricsCollection - } - if dcs.Type != "" { - objectMap["type"] = dcs.Type - } - for k, v := range dcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return &dcs, true -} - -// AsDynamicsSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for DynamicsCrmSink. -func (dcs DynamicsCrmSink) AsBasicCopySink() (BasicCopySink, bool) { - return &dcs, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmSink struct. -func (dcs *DynamicsCrmSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior string - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - dcs.WriteBehavior = &writeBehavior - } - case "ignoreNullValues": - if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) - if err != nil { - return err - } - dcs.IgnoreNullValues = ignoreNullValues - } - case "alternateKeyName": - if v != nil { - var alternateKeyName interface{} - err = json.Unmarshal(*v, &alternateKeyName) - if err != nil { - return err - } - dcs.AlternateKeyName = alternateKeyName - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dcs.AdditionalProperties == nil { - dcs.AdditionalProperties = make(map[string]interface{}) - } - dcs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - dcs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - dcs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - dcs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - dcs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - dcs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - dcs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dcs.Type = typeVar - } - } - } - - return nil -} - -// DynamicsCrmSource a copy activity Dynamics CRM source. -type DynamicsCrmSource struct { - // Query - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsCrmSource. -func (dcs DynamicsCrmSource) MarshalJSON() ([]byte, error) { - dcs.Type = TypeBasicCopySourceTypeDynamicsCrmSource - objectMap := make(map[string]interface{}) - if dcs.Query != nil { - objectMap["query"] = dcs.Query - } - if dcs.AdditionalColumns != nil { - objectMap["additionalColumns"] = dcs.AdditionalColumns - } - if dcs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = dcs.SourceRetryCount - } - if dcs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = dcs.SourceRetryWait - } - if dcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = dcs.MaxConcurrentConnections - } - if dcs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = dcs.DisableMetricsCollection - } - if dcs.Type != "" { - objectMap["type"] = dcs.Type - } - for k, v := range dcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return &dcs, true -} - -// AsDynamicsSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for DynamicsCrmSource. -func (dcs DynamicsCrmSource) AsBasicCopySource() (BasicCopySource, bool) { - return &dcs, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsCrmSource struct. -func (dcs *DynamicsCrmSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - dcs.Query = query - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - dcs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dcs.AdditionalProperties == nil { - dcs.AdditionalProperties = make(map[string]interface{}) - } - dcs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - dcs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - dcs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - dcs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - dcs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dcs.Type = typeVar - } - } - } - - return nil -} - -// DynamicsEntityDataset the Dynamics entity dataset. -type DynamicsEntityDataset struct { - // DynamicsEntityDatasetTypeProperties - Dynamics entity dataset properties. - *DynamicsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) MarshalJSON() ([]byte, error) { - ded.Type = TypeBasicDatasetTypeDynamicsEntity - objectMap := make(map[string]interface{}) - if ded.DynamicsEntityDatasetTypeProperties != nil { - objectMap["typeProperties"] = ded.DynamicsEntityDatasetTypeProperties - } - if ded.Description != nil { - objectMap["description"] = ded.Description - } - if ded.Structure != nil { - objectMap["structure"] = ded.Structure - } - if ded.Schema != nil { - objectMap["schema"] = ded.Schema - } - if ded.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ded.LinkedServiceName - } - if ded.Parameters != nil { - objectMap["parameters"] = ded.Parameters - } - if ded.Annotations != nil { - objectMap["annotations"] = ded.Annotations - } - if ded.Folder != nil { - objectMap["folder"] = ded.Folder - } - if ded.Type != "" { - objectMap["type"] = ded.Type - } - for k, v := range ded.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return &ded, true -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for DynamicsEntityDataset. -func (ded DynamicsEntityDataset) AsBasicDataset() (BasicDataset, bool) { - return &ded, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsEntityDataset struct. -func (ded *DynamicsEntityDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dynamicsEntityDatasetTypeProperties DynamicsEntityDatasetTypeProperties - err = json.Unmarshal(*v, &dynamicsEntityDatasetTypeProperties) - if err != nil { - return err - } - ded.DynamicsEntityDatasetTypeProperties = &dynamicsEntityDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ded.AdditionalProperties == nil { - ded.AdditionalProperties = make(map[string]interface{}) - } - ded.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ded.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ded.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - ded.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ded.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ded.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ded.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ded.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ded.Type = typeVar - } - } - } - - return nil -} - -// DynamicsEntityDatasetTypeProperties dynamics entity dataset properties. -type DynamicsEntityDatasetTypeProperties struct { - // EntityName - The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` -} - -// DynamicsLinkedService dynamics linked service. -type DynamicsLinkedService struct { - // DynamicsLinkedServiceTypeProperties - Dynamics linked service properties. - *DynamicsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsLinkedService. -func (dls DynamicsLinkedService) MarshalJSON() ([]byte, error) { - dls.Type = TypeBasicLinkedServiceTypeDynamics - objectMap := make(map[string]interface{}) - if dls.DynamicsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = dls.DynamicsLinkedServiceTypeProperties - } - if dls.ConnectVia != nil { - objectMap["connectVia"] = dls.ConnectVia - } - if dls.Description != nil { - objectMap["description"] = dls.Description - } - if dls.Parameters != nil { - objectMap["parameters"] = dls.Parameters - } - if dls.Annotations != nil { - objectMap["annotations"] = dls.Annotations - } - if dls.Type != "" { - objectMap["type"] = dls.Type - } - for k, v := range dls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return &dls, true -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for DynamicsLinkedService. -func (dls DynamicsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &dls, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedService struct. -func (dls *DynamicsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var dynamicsLinkedServiceTypeProperties DynamicsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &dynamicsLinkedServiceTypeProperties) - if err != nil { - return err - } - dls.DynamicsLinkedServiceTypeProperties = &dynamicsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if dls.AdditionalProperties == nil { - dls.AdditionalProperties = make(map[string]interface{}) - } - dls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - dls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - dls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - dls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - dls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - dls.Type = typeVar - } - } - } - - return nil -} - -// DynamicsLinkedServiceTypeProperties dynamics linked service properties. -type DynamicsLinkedServiceTypeProperties struct { - // DeploymentType - 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"` - // HostName - 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"` - // Port - 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"` - // ServiceURI - 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"` - // OrganizationName - 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"` - // AuthenticationType - 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"` - // Username - User name to access the Dynamics instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password to access the Dynamics instance. - Password BasicSecretBase `json:"password,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalCredentialType - 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"` - // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsLinkedServiceTypeProperties struct. -func (dlstp *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "deploymentType": - if v != nil { - var deploymentType interface{} - err = json.Unmarshal(*v, &deploymentType) - if err != nil { - return err - } - dlstp.DeploymentType = deploymentType - } - case "hostName": - if v != nil { - var hostName interface{} - err = json.Unmarshal(*v, &hostName) - if err != nil { - return err - } - dlstp.HostName = hostName - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - dlstp.Port = port - } - case "serviceUri": - if v != nil { - var serviceURI interface{} - err = json.Unmarshal(*v, &serviceURI) - if err != nil { - return err - } - dlstp.ServiceURI = serviceURI - } - case "organizationName": - if v != nil { - var organizationName interface{} - err = json.Unmarshal(*v, &organizationName) - if err != nil { - return err - } - dlstp.OrganizationName = organizationName - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - dlstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - dlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - dlstp.Password = password - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - dlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalCredentialType": - if v != nil { - var servicePrincipalCredentialType interface{} - err = json.Unmarshal(*v, &servicePrincipalCredentialType) - if err != nil { - return err - } - dlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType - } - case "servicePrincipalCredential": - if v != nil { - servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - dlstp.ServicePrincipalCredential = servicePrincipalCredential - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - dlstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - dlstp.Credential = &credential - } - } - } - - return nil -} - -// DynamicsSink a copy activity Dynamics sink. -type DynamicsSink struct { - // WriteBehavior - The write behavior for the operation. - WriteBehavior *string `json:"writeBehavior,omitempty"` - // IgnoreNullValues - 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"` - // AlternateKeyName - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsSink. -func (ds DynamicsSink) MarshalJSON() ([]byte, error) { - ds.Type = TypeBasicCopySinkTypeDynamicsSink - objectMap := make(map[string]interface{}) - if ds.WriteBehavior != nil { - objectMap["writeBehavior"] = ds.WriteBehavior - } - if ds.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = ds.IgnoreNullValues - } - if ds.AlternateKeyName != nil { - objectMap["alternateKeyName"] = ds.AlternateKeyName - } - if ds.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ds.WriteBatchSize - } - if ds.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ds.WriteBatchTimeout - } - if ds.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ds.SinkRetryCount - } - if ds.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ds.SinkRetryWait - } - if ds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections - } - if ds.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection - } - if ds.Type != "" { - objectMap["type"] = ds.Type - } - for k, v := range ds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDynamicsSink() (*DynamicsSink, bool) { - return &ds, true -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for DynamicsSink. -func (ds DynamicsSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ds, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsSink struct. -func (ds *DynamicsSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior string - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - ds.WriteBehavior = &writeBehavior - } - case "ignoreNullValues": - if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) - if err != nil { - return err - } - ds.IgnoreNullValues = ignoreNullValues - } - case "alternateKeyName": - if v != nil { - var alternateKeyName interface{} - err = json.Unmarshal(*v, &alternateKeyName) - if err != nil { - return err - } - ds.AlternateKeyName = alternateKeyName - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ds.AdditionalProperties == nil { - ds.AdditionalProperties = make(map[string]interface{}) - } - ds.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ds.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ds.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ds.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ds.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ds.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ds.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ds.Type = typeVar - } - } - } - - return nil -} - -// DynamicsSource a copy activity Dynamics source. -type DynamicsSource struct { - // Query - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for DynamicsSource. -func (ds DynamicsSource) MarshalJSON() ([]byte, error) { - ds.Type = TypeBasicCopySourceTypeDynamicsSource - objectMap := make(map[string]interface{}) - if ds.Query != nil { - objectMap["query"] = ds.Query - } - if ds.AdditionalColumns != nil { - objectMap["additionalColumns"] = ds.AdditionalColumns - } - if ds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ds.SourceRetryCount - } - if ds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ds.SourceRetryWait - } - if ds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ds.MaxConcurrentConnections - } - if ds.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ds.DisableMetricsCollection - } - if ds.Type != "" { - objectMap["type"] = ds.Type - } - for k, v := range ds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDynamicsSource() (*DynamicsSource, bool) { - return &ds, true -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for DynamicsSource. -func (ds DynamicsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ds, true -} - -// UnmarshalJSON is the custom unmarshaler for DynamicsSource struct. -func (ds *DynamicsSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ds.Query = query - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ds.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ds.AdditionalProperties == nil { - ds.AdditionalProperties = make(map[string]interface{}) - } - ds.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ds.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ds.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ds.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ds.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ds.Type = typeVar - } - } - } - - return nil -} - -// EloquaLinkedService eloqua server linked service. -type EloquaLinkedService struct { - // EloquaLinkedServiceTypeProperties - Eloqua server linked service properties. - *EloquaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for EloquaLinkedService. -func (els EloquaLinkedService) MarshalJSON() ([]byte, error) { - els.Type = TypeBasicLinkedServiceTypeEloqua - objectMap := make(map[string]interface{}) - if els.EloquaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = els.EloquaLinkedServiceTypeProperties - } - if els.ConnectVia != nil { - objectMap["connectVia"] = els.ConnectVia - } - if els.Description != nil { - objectMap["description"] = els.Description - } - if els.Parameters != nil { - objectMap["parameters"] = els.Parameters - } - if els.Annotations != nil { - objectMap["annotations"] = els.Annotations - } - if els.Type != "" { - objectMap["type"] = els.Type - } - for k, v := range els.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return &els, true -} - -// AsDrillLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for EloquaLinkedService. -func (els EloquaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &els, true -} - -// UnmarshalJSON is the custom unmarshaler for EloquaLinkedService struct. -func (els *EloquaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var eloquaLinkedServiceTypeProperties EloquaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &eloquaLinkedServiceTypeProperties) - if err != nil { - return err - } - els.EloquaLinkedServiceTypeProperties = &eloquaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if els.AdditionalProperties == nil { - els.AdditionalProperties = make(map[string]interface{}) - } - els.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - els.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - els.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - els.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - els.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - els.Type = typeVar - } - } - } - - return nil -} - -// EloquaLinkedServiceTypeProperties eloqua server linked service properties. -type EloquaLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Eloqua server. (i.e. eloqua.example.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // Username - The site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice) - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for EloquaLinkedServiceTypeProperties struct. -func (elstp *EloquaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - elstp.Endpoint = endpoint - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - elstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - elstp.Password = password - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - elstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - elstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - elstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - elstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// EloquaObjectDataset eloqua server dataset. -type EloquaObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for EloquaObjectDataset. -func (eod EloquaObjectDataset) MarshalJSON() ([]byte, error) { - eod.Type = TypeBasicDatasetTypeEloquaObject - objectMap := make(map[string]interface{}) - if eod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = eod.GenericDatasetTypeProperties - } - if eod.Description != nil { - objectMap["description"] = eod.Description - } - if eod.Structure != nil { - objectMap["structure"] = eod.Structure - } - if eod.Schema != nil { - objectMap["schema"] = eod.Schema - } - if eod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = eod.LinkedServiceName - } - if eod.Parameters != nil { - objectMap["parameters"] = eod.Parameters - } - if eod.Annotations != nil { - objectMap["annotations"] = eod.Annotations - } - if eod.Folder != nil { - objectMap["folder"] = eod.Folder - } - if eod.Type != "" { - objectMap["type"] = eod.Type - } - for k, v := range eod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return &eod, true -} - -// AsDrillTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for EloquaObjectDataset. -func (eod EloquaObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &eod, true -} - -// UnmarshalJSON is the custom unmarshaler for EloquaObjectDataset struct. -func (eod *EloquaObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - eod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if eod.AdditionalProperties == nil { - eod.AdditionalProperties = make(map[string]interface{}) - } - eod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - eod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - eod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - eod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - eod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - eod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - eod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - eod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - eod.Type = typeVar - } - } - } - - return nil -} - -// EloquaSource a copy activity Eloqua server source. -type EloquaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for EloquaSource. -func (es EloquaSource) MarshalJSON() ([]byte, error) { - es.Type = TypeBasicCopySourceTypeEloquaSource - objectMap := make(map[string]interface{}) - if es.Query != nil { - objectMap["query"] = es.Query - } - if es.QueryTimeout != nil { - objectMap["queryTimeout"] = es.QueryTimeout - } - if es.AdditionalColumns != nil { - objectMap["additionalColumns"] = es.AdditionalColumns - } - if es.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = es.SourceRetryCount - } - if es.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = es.SourceRetryWait - } - if es.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections - } - if es.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = es.DisableMetricsCollection - } - if es.Type != "" { - objectMap["type"] = es.Type - } - for k, v := range es.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsEloquaSource() (*EloquaSource, bool) { - return &es, true -} - -// AsDrillSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &es, true -} - -// AsBinarySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for EloquaSource. -func (es EloquaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &es, true -} - -// UnmarshalJSON is the custom unmarshaler for EloquaSource struct. -func (es *EloquaSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - es.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - es.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - es.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if es.AdditionalProperties == nil { - es.AdditionalProperties = make(map[string]interface{}) - } - es.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - es.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - es.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - es.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - es.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - es.Type = typeVar - } - } - } - - return nil -} - -// EncryptionConfiguration definition of CMK for the factory. -type EncryptionConfiguration struct { - // KeyName - The name of the key in Azure Key Vault to use as Customer Managed Key. - KeyName *string `json:"keyName,omitempty"` - // VaultBaseURL - The url of the Azure Key Vault used for CMK. - VaultBaseURL *string `json:"vaultBaseUrl,omitempty"` - // KeyVersion - The version of the key used for CMK. If not provided, latest version will be used. - KeyVersion *string `json:"keyVersion,omitempty"` - // Identity - 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"` -} - -// EntityReference the entity reference. -type EntityReference struct { - // Type - The type of this referenced entity. Possible values include: 'IntegrationRuntimeEntityReferenceTypeIntegrationRuntimeReference', 'IntegrationRuntimeEntityReferenceTypeLinkedServiceReference' - Type IntegrationRuntimeEntityReferenceType `json:"type,omitempty"` - // ReferenceName - The name of this referenced entity. - ReferenceName *string `json:"referenceName,omitempty"` -} - -// EnvironmentVariableSetup the custom setup of setting environment variable. -type EnvironmentVariableSetup struct { - // EnvironmentVariableSetupTypeProperties - Add environment variable type properties. - *EnvironmentVariableSetupTypeProperties `json:"typeProperties,omitempty"` - // Type - Possible values include: 'TypeBasicCustomSetupBaseTypeCustomSetupBase', 'TypeBasicCustomSetupBaseTypeAzPowerShellSetup', 'TypeBasicCustomSetupBaseTypeComponentSetup', 'TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup', 'TypeBasicCustomSetupBaseTypeCmdkeySetup' - Type TypeBasicCustomSetupBase `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { - evs.Type = TypeBasicCustomSetupBaseTypeEnvironmentVariableSetup - objectMap := make(map[string]interface{}) - if evs.EnvironmentVariableSetupTypeProperties != nil { - objectMap["typeProperties"] = evs.EnvironmentVariableSetupTypeProperties - } - if evs.Type != "" { - objectMap["type"] = evs.Type - } - return json.Marshal(objectMap) -} - -// AsAzPowerShellSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsAzPowerShellSetup() (*AzPowerShellSetup, bool) { - return nil, false -} - -// AsComponentSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsComponentSetup() (*ComponentSetup, bool) { - return nil, false -} - -// AsEnvironmentVariableSetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsEnvironmentVariableSetup() (*EnvironmentVariableSetup, bool) { - return &evs, true -} - -// AsCmdkeySetup is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsCmdkeySetup() (*CmdkeySetup, bool) { - return nil, false -} - -// AsCustomSetupBase is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsCustomSetupBase() (*CustomSetupBase, bool) { - return nil, false -} - -// AsBasicCustomSetupBase is the BasicCustomSetupBase implementation for EnvironmentVariableSetup. -func (evs EnvironmentVariableSetup) AsBasicCustomSetupBase() (BasicCustomSetupBase, bool) { - return &evs, true -} - -// UnmarshalJSON is the custom unmarshaler for EnvironmentVariableSetup struct. -func (evs *EnvironmentVariableSetup) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var environmentVariableSetupTypeProperties EnvironmentVariableSetupTypeProperties - err = json.Unmarshal(*v, &environmentVariableSetupTypeProperties) - if err != nil { - return err - } - evs.EnvironmentVariableSetupTypeProperties = &environmentVariableSetupTypeProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCustomSetupBase - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - evs.Type = typeVar - } - } - } - - return nil -} - -// EnvironmentVariableSetupTypeProperties environment variable custom setup type properties. -type EnvironmentVariableSetupTypeProperties struct { - // VariableName - The name of the environment variable. - VariableName *string `json:"variableName,omitempty"` - // VariableValue - The value of the environment variable. - VariableValue *string `json:"variableValue,omitempty"` -} - -// ExcelDataset excel dataset. -type ExcelDataset struct { - // ExcelDatasetTypeProperties - Excel dataset properties. - *ExcelDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExcelDataset. -func (ed ExcelDataset) MarshalJSON() ([]byte, error) { - ed.Type = TypeBasicDatasetTypeExcel - objectMap := make(map[string]interface{}) - if ed.ExcelDatasetTypeProperties != nil { - objectMap["typeProperties"] = ed.ExcelDatasetTypeProperties - } - if ed.Description != nil { - objectMap["description"] = ed.Description - } - if ed.Structure != nil { - objectMap["structure"] = ed.Structure - } - if ed.Schema != nil { - objectMap["schema"] = ed.Schema - } - if ed.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ed.LinkedServiceName - } - if ed.Parameters != nil { - objectMap["parameters"] = ed.Parameters - } - if ed.Annotations != nil { - objectMap["annotations"] = ed.Annotations - } - if ed.Folder != nil { - objectMap["folder"] = ed.Folder - } - if ed.Type != "" { - objectMap["type"] = ed.Type - } - for k, v := range ed.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsExcelDataset() (*ExcelDataset, bool) { - return &ed, true -} - -// AsAvroDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ExcelDataset. -func (ed ExcelDataset) AsBasicDataset() (BasicDataset, bool) { - return &ed, true -} - -// UnmarshalJSON is the custom unmarshaler for ExcelDataset struct. -func (ed *ExcelDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var excelDatasetTypeProperties ExcelDatasetTypeProperties - err = json.Unmarshal(*v, &excelDatasetTypeProperties) - if err != nil { - return err - } - ed.ExcelDatasetTypeProperties = &excelDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ed.AdditionalProperties == nil { - ed.AdditionalProperties = make(map[string]interface{}) - } - ed.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ed.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ed.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - ed.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ed.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ed.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ed.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ed.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ed.Type = typeVar - } - } - } - - return nil -} - -// ExcelDatasetTypeProperties excel dataset properties. -type ExcelDatasetTypeProperties struct { - // Location - The location of the excel storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // SheetName - The sheet name of excel file. Type: string (or Expression with resultType string). - SheetName interface{} `json:"sheetName,omitempty"` - // SheetIndex - The sheet index of excel file and default value is 0. Type: integer (or Expression with resultType integer) - SheetIndex interface{} `json:"sheetIndex,omitempty"` - // Range - The partial data of one sheet. Type: string (or Expression with resultType string). - Range interface{} `json:"range,omitempty"` - // FirstRowAsHeader - 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"` - // Compression - The data compression method used for the json dataset. - Compression *DatasetCompression `json:"compression,omitempty"` - // NullValue - The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ExcelDatasetTypeProperties struct. -func (edtp *ExcelDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - edtp.Location = location - } - case "sheetName": - if v != nil { - var sheetName interface{} - err = json.Unmarshal(*v, &sheetName) - if err != nil { - return err - } - edtp.SheetName = sheetName - } - case "sheetIndex": - if v != nil { - var sheetIndex interface{} - err = json.Unmarshal(*v, &sheetIndex) - if err != nil { - return err - } - edtp.SheetIndex = sheetIndex - } - case "range": - if v != nil { - var rangeVar interface{} - err = json.Unmarshal(*v, &rangeVar) - if err != nil { - return err - } - edtp.Range = rangeVar - } - case "firstRowAsHeader": - if v != nil { - var firstRowAsHeader interface{} - err = json.Unmarshal(*v, &firstRowAsHeader) - if err != nil { - return err - } - edtp.FirstRowAsHeader = firstRowAsHeader - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - edtp.Compression = &compression - } - case "nullValue": - if v != nil { - var nullValue interface{} - err = json.Unmarshal(*v, &nullValue) - if err != nil { - return err - } - edtp.NullValue = nullValue - } - } - } - - return nil -} - -// ExcelSource a copy activity excel source. -type ExcelSource struct { - // StoreSettings - Excel store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExcelSource. -func (es ExcelSource) MarshalJSON() ([]byte, error) { - es.Type = TypeBasicCopySourceTypeExcelSource - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = es.StoreSettings - if es.AdditionalColumns != nil { - objectMap["additionalColumns"] = es.AdditionalColumns - } - if es.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = es.SourceRetryCount - } - if es.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = es.SourceRetryWait - } - if es.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = es.MaxConcurrentConnections - } - if es.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = es.DisableMetricsCollection - } - if es.Type != "" { - objectMap["type"] = es.Type - } - for k, v := range es.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsExcelSource() (*ExcelSource, bool) { - return &es, true -} - -// AsAvroSource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ExcelSource. -func (es ExcelSource) AsBasicCopySource() (BasicCopySource, bool) { - return &es, true -} - -// UnmarshalJSON is the custom unmarshaler for ExcelSource struct. -func (es *ExcelSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - es.StoreSettings = storeSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - es.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if es.AdditionalProperties == nil { - es.AdditionalProperties = make(map[string]interface{}) - } - es.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - es.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - es.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - es.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - es.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - es.Type = typeVar - } - } - } - - return nil -} - -// ExecuteDataFlowActivity execute data flow activity. -type ExecuteDataFlowActivity struct { - // ExecuteDataFlowActivityTypeProperties - Execute data flow activity properties. - *ExecuteDataFlowActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) MarshalJSON() ([]byte, error) { - edfa.Type = TypeBasicActivityTypeExecuteDataFlow - objectMap := make(map[string]interface{}) - if edfa.ExecuteDataFlowActivityTypeProperties != nil { - objectMap["typeProperties"] = edfa.ExecuteDataFlowActivityTypeProperties - } - if edfa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = edfa.LinkedServiceName - } - if edfa.Policy != nil { - objectMap["policy"] = edfa.Policy - } - if edfa.Name != nil { - objectMap["name"] = edfa.Name - } - if edfa.Description != nil { - objectMap["description"] = edfa.Description - } - if edfa.State != "" { - objectMap["state"] = edfa.State - } - if edfa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = edfa.OnInactiveMarkAs - } - if edfa.DependsOn != nil { - objectMap["dependsOn"] = edfa.DependsOn - } - if edfa.UserProperties != nil { - objectMap["userProperties"] = edfa.UserProperties - } - if edfa.Type != "" { - objectMap["type"] = edfa.Type - } - for k, v := range edfa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return &edfa, true -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &edfa, true -} - -// AsWebHookActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ExecuteDataFlowActivity. -func (edfa ExecuteDataFlowActivity) AsBasicActivity() (BasicActivity, bool) { - return &edfa, true -} - -// UnmarshalJSON is the custom unmarshaler for ExecuteDataFlowActivity struct. -func (edfa *ExecuteDataFlowActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var executeDataFlowActivityTypeProperties ExecuteDataFlowActivityTypeProperties - err = json.Unmarshal(*v, &executeDataFlowActivityTypeProperties) - if err != nil { - return err - } - edfa.ExecuteDataFlowActivityTypeProperties = &executeDataFlowActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - edfa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - edfa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if edfa.AdditionalProperties == nil { - edfa.AdditionalProperties = make(map[string]interface{}) - } - edfa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - edfa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - edfa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - edfa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - edfa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - edfa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - edfa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - edfa.Type = typeVar - } - } - } - - return nil -} - -// ExecuteDataFlowActivityTypeProperties execute data flow activity properties. -type ExecuteDataFlowActivityTypeProperties struct { - // DataFlow - Data flow reference. - DataFlow *DataFlowReference `json:"dataFlow,omitempty"` - // Staging - Staging info for execute data flow activity. - Staging *DataFlowStagingInfo `json:"staging,omitempty"` - // IntegrationRuntime - The integration runtime reference. - IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` - // Compute - Compute properties for data flow activity. - Compute *ExecuteDataFlowActivityTypePropertiesCompute `json:"compute,omitempty"` - // TraceLevel - 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"` - // ContinueOnError - 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"` - // RunConcurrently - 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"` - // SourceStagingConcurrency - Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) - SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` -} - -// ExecuteDataFlowActivityTypePropertiesCompute compute properties for data flow activity. -type ExecuteDataFlowActivityTypePropertiesCompute struct { - // ComputeType - 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"` - // CoreCount - 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"` -} - -// ExecutePipelineActivity execute pipeline activity. -type ExecutePipelineActivity struct { - // Policy - Execute pipeline activity policy. - Policy *ExecutePipelineActivityPolicy `json:"policy,omitempty"` - // ExecutePipelineActivityTypeProperties - Execute pipeline activity properties. - *ExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) MarshalJSON() ([]byte, error) { - epa.Type = TypeBasicActivityTypeExecutePipeline - objectMap := make(map[string]interface{}) - if epa.Policy != nil { - objectMap["policy"] = epa.Policy - } - if epa.ExecutePipelineActivityTypeProperties != nil { - objectMap["typeProperties"] = epa.ExecutePipelineActivityTypeProperties - } - if epa.Name != nil { - objectMap["name"] = epa.Name - } - if epa.Description != nil { - objectMap["description"] = epa.Description - } - if epa.State != "" { - objectMap["state"] = epa.State - } - if epa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = epa.OnInactiveMarkAs - } - if epa.DependsOn != nil { - objectMap["dependsOn"] = epa.DependsOn - } - if epa.UserProperties != nil { - objectMap["userProperties"] = epa.UserProperties - } - if epa.Type != "" { - objectMap["type"] = epa.Type - } - for k, v := range epa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return &epa, true -} - -// AsControlActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &epa, true -} - -// AsActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ExecutePipelineActivity. -func (epa ExecutePipelineActivity) AsBasicActivity() (BasicActivity, bool) { - return &epa, true -} - -// UnmarshalJSON is the custom unmarshaler for ExecutePipelineActivity struct. -func (epa *ExecutePipelineActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "policy": - if v != nil { - var policy ExecutePipelineActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - epa.Policy = &policy - } - case "typeProperties": - if v != nil { - var executePipelineActivityTypeProperties ExecutePipelineActivityTypeProperties - err = json.Unmarshal(*v, &executePipelineActivityTypeProperties) - if err != nil { - return err - } - epa.ExecutePipelineActivityTypeProperties = &executePipelineActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if epa.AdditionalProperties == nil { - epa.AdditionalProperties = make(map[string]interface{}) - } - epa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - epa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - epa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - epa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - epa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - epa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - epa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - epa.Type = typeVar - } - } - } - - return nil -} - -// ExecutePipelineActivityPolicy execution policy for an execute pipeline activity. -type ExecutePipelineActivityPolicy struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SecureInput - When set to true, Input from activity is considered as secure and will not be logged to monitoring. - SecureInput *bool `json:"secureInput,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExecutePipelineActivityPolicy. -func (epap ExecutePipelineActivityPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if epap.SecureInput != nil { - objectMap["secureInput"] = epap.SecureInput - } - for k, v := range epap.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ExecutePipelineActivityPolicy struct. -func (epap *ExecutePipelineActivityPolicy) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if epap.AdditionalProperties == nil { - epap.AdditionalProperties = make(map[string]interface{}) - } - epap.AdditionalProperties[k] = additionalProperties - } - case "secureInput": - if v != nil { - var secureInput bool - err = json.Unmarshal(*v, &secureInput) - if err != nil { - return err - } - epap.SecureInput = &secureInput - } - } - } - - return nil -} - -// ExecutePipelineActivityTypeProperties execute pipeline activity properties. -type ExecutePipelineActivityTypeProperties struct { - // Pipeline - Pipeline reference. - Pipeline *PipelineReference `json:"pipeline,omitempty"` - // Parameters - Pipeline parameters. - Parameters map[string]interface{} `json:"parameters"` - // WaitOnCompletion - Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. - WaitOnCompletion *bool `json:"waitOnCompletion,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExecutePipelineActivityTypeProperties. -func (epatp ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if epatp.Pipeline != nil { - objectMap["pipeline"] = epatp.Pipeline - } - if epatp.Parameters != nil { - objectMap["parameters"] = epatp.Parameters - } - if epatp.WaitOnCompletion != nil { - objectMap["waitOnCompletion"] = epatp.WaitOnCompletion - } - return json.Marshal(objectMap) -} - -// ExecutePowerQueryActivityTypeProperties execute power query data flow activity properties. -type ExecutePowerQueryActivityTypeProperties struct { - // Sinks - (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName. - Sinks map[string]*PowerQuerySink `json:"sinks"` - // Queries - List of mapping for Power Query mashup query to sink dataset(s). - Queries *[]PowerQuerySinkMapping `json:"queries,omitempty"` - // DataFlow - Data flow reference. - DataFlow *DataFlowReference `json:"dataFlow,omitempty"` - // Staging - Staging info for execute data flow activity. - Staging *DataFlowStagingInfo `json:"staging,omitempty"` - // IntegrationRuntime - The integration runtime reference. - IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` - // Compute - Compute properties for data flow activity. - Compute *ExecuteDataFlowActivityTypePropertiesCompute `json:"compute,omitempty"` - // TraceLevel - 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"` - // ContinueOnError - 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"` - // RunConcurrently - 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"` - // SourceStagingConcurrency - Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) - SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExecutePowerQueryActivityTypeProperties. -func (epqatp ExecutePowerQueryActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if epqatp.Sinks != nil { - objectMap["sinks"] = epqatp.Sinks - } - if epqatp.Queries != nil { - objectMap["queries"] = epqatp.Queries - } - if epqatp.DataFlow != nil { - objectMap["dataFlow"] = epqatp.DataFlow - } - if epqatp.Staging != nil { - objectMap["staging"] = epqatp.Staging - } - if epqatp.IntegrationRuntime != nil { - objectMap["integrationRuntime"] = epqatp.IntegrationRuntime - } - if epqatp.Compute != nil { - objectMap["compute"] = epqatp.Compute - } - if epqatp.TraceLevel != nil { - objectMap["traceLevel"] = epqatp.TraceLevel - } - if epqatp.ContinueOnError != nil { - objectMap["continueOnError"] = epqatp.ContinueOnError - } - if epqatp.RunConcurrently != nil { - objectMap["runConcurrently"] = epqatp.RunConcurrently - } - if epqatp.SourceStagingConcurrency != nil { - objectMap["sourceStagingConcurrency"] = epqatp.SourceStagingConcurrency - } - return json.Marshal(objectMap) -} - -// ExecuteSSISPackageActivity execute SSIS package activity. -type ExecuteSSISPackageActivity struct { - // ExecuteSSISPackageActivityTypeProperties - Execute SSIS package activity properties. - *ExecuteSSISPackageActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { - espa.Type = TypeBasicActivityTypeExecuteSSISPackage - objectMap := make(map[string]interface{}) - if espa.ExecuteSSISPackageActivityTypeProperties != nil { - objectMap["typeProperties"] = espa.ExecuteSSISPackageActivityTypeProperties - } - if espa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = espa.LinkedServiceName - } - if espa.Policy != nil { - objectMap["policy"] = espa.Policy - } - if espa.Name != nil { - objectMap["name"] = espa.Name - } - if espa.Description != nil { - objectMap["description"] = espa.Description - } - if espa.State != "" { - objectMap["state"] = espa.State - } - if espa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = espa.OnInactiveMarkAs - } - if espa.DependsOn != nil { - objectMap["dependsOn"] = espa.DependsOn - } - if espa.UserProperties != nil { - objectMap["userProperties"] = espa.UserProperties - } - if espa.Type != "" { - objectMap["type"] = espa.Type - } - for k, v := range espa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return &espa, true -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &espa, true -} - -// AsWebHookActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ExecuteSSISPackageActivity. -func (espa ExecuteSSISPackageActivity) AsBasicActivity() (BasicActivity, bool) { - return &espa, true -} - -// UnmarshalJSON is the custom unmarshaler for ExecuteSSISPackageActivity struct. -func (espa *ExecuteSSISPackageActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var executeSSISPackageActivityTypeProperties ExecuteSSISPackageActivityTypeProperties - err = json.Unmarshal(*v, &executeSSISPackageActivityTypeProperties) - if err != nil { - return err - } - espa.ExecuteSSISPackageActivityTypeProperties = &executeSSISPackageActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - espa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - espa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if espa.AdditionalProperties == nil { - espa.AdditionalProperties = make(map[string]interface{}) - } - espa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - espa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - espa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - espa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - espa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - espa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - espa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - espa.Type = typeVar - } - } - } - - return nil -} - -// ExecuteSSISPackageActivityTypeProperties execute SSIS package activity properties. -type ExecuteSSISPackageActivityTypeProperties struct { - // PackageLocation - SSIS package location. - PackageLocation *SSISPackageLocation `json:"packageLocation,omitempty"` - // Runtime - 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"` - // LoggingLevel - The logging level of SSIS package execution. Type: string (or Expression with resultType string). - LoggingLevel interface{} `json:"loggingLevel,omitempty"` - // EnvironmentPath - The environment path to execute the SSIS package. Type: string (or Expression with resultType string). - EnvironmentPath interface{} `json:"environmentPath,omitempty"` - // ExecutionCredential - The package execution credential. - ExecutionCredential *SSISExecutionCredential `json:"executionCredential,omitempty"` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // ProjectParameters - The project level parameters to execute the SSIS package. - ProjectParameters map[string]*SSISExecutionParameter `json:"projectParameters"` - // PackageParameters - The package level parameters to execute the SSIS package. - PackageParameters map[string]*SSISExecutionParameter `json:"packageParameters"` - // ProjectConnectionManagers - The project level connection managers to execute the SSIS package. - ProjectConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"projectConnectionManagers"` - // PackageConnectionManagers - The package level connection managers to execute the SSIS package. - PackageConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"packageConnectionManagers"` - // PropertyOverrides - The property overrides to execute the SSIS package. - PropertyOverrides map[string]*SSISPropertyOverride `json:"propertyOverrides"` - // LogLocation - SSIS package execution log location. - LogLocation *SSISLogLocation `json:"logLocation,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExecuteSSISPackageActivityTypeProperties. -func (espatp ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if espatp.PackageLocation != nil { - objectMap["packageLocation"] = espatp.PackageLocation - } - if espatp.Runtime != nil { - objectMap["runtime"] = espatp.Runtime - } - if espatp.LoggingLevel != nil { - objectMap["loggingLevel"] = espatp.LoggingLevel - } - if espatp.EnvironmentPath != nil { - objectMap["environmentPath"] = espatp.EnvironmentPath - } - if espatp.ExecutionCredential != nil { - objectMap["executionCredential"] = espatp.ExecutionCredential - } - if espatp.ConnectVia != nil { - objectMap["connectVia"] = espatp.ConnectVia - } - if espatp.ProjectParameters != nil { - objectMap["projectParameters"] = espatp.ProjectParameters - } - if espatp.PackageParameters != nil { - objectMap["packageParameters"] = espatp.PackageParameters - } - if espatp.ProjectConnectionManagers != nil { - objectMap["projectConnectionManagers"] = espatp.ProjectConnectionManagers - } - if espatp.PackageConnectionManagers != nil { - objectMap["packageConnectionManagers"] = espatp.PackageConnectionManagers - } - if espatp.PropertyOverrides != nil { - objectMap["propertyOverrides"] = espatp.PropertyOverrides - } - if espatp.LogLocation != nil { - objectMap["logLocation"] = espatp.LogLocation - } - return json.Marshal(objectMap) -} - -// ExecuteWranglingDataflowActivity execute power query activity. -type ExecuteWranglingDataflowActivity struct { - // ExecutePowerQueryActivityTypeProperties - Execute power query activity properties. - *ExecutePowerQueryActivityTypeProperties `json:"typeProperties,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) MarshalJSON() ([]byte, error) { - ewda.Type = TypeBasicActivityTypeExecuteWranglingDataflow - objectMap := make(map[string]interface{}) - if ewda.ExecutePowerQueryActivityTypeProperties != nil { - objectMap["typeProperties"] = ewda.ExecutePowerQueryActivityTypeProperties - } - if ewda.Policy != nil { - objectMap["policy"] = ewda.Policy - } - if ewda.Name != nil { - objectMap["name"] = ewda.Name - } - if ewda.Description != nil { - objectMap["description"] = ewda.Description - } - if ewda.State != "" { - objectMap["state"] = ewda.State - } - if ewda.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ewda.OnInactiveMarkAs - } - if ewda.DependsOn != nil { - objectMap["dependsOn"] = ewda.DependsOn - } - if ewda.UserProperties != nil { - objectMap["userProperties"] = ewda.UserProperties - } - if ewda.Type != "" { - objectMap["type"] = ewda.Type - } - for k, v := range ewda.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return &ewda, true -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ExecuteWranglingDataflowActivity. -func (ewda ExecuteWranglingDataflowActivity) AsBasicActivity() (BasicActivity, bool) { - return &ewda, true -} - -// UnmarshalJSON is the custom unmarshaler for ExecuteWranglingDataflowActivity struct. -func (ewda *ExecuteWranglingDataflowActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var executePowerQueryActivityTypeProperties ExecutePowerQueryActivityTypeProperties - err = json.Unmarshal(*v, &executePowerQueryActivityTypeProperties) - if err != nil { - return err - } - ewda.ExecutePowerQueryActivityTypeProperties = &executePowerQueryActivityTypeProperties - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ewda.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ewda.AdditionalProperties == nil { - ewda.AdditionalProperties = make(map[string]interface{}) - } - ewda.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ewda.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ewda.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ewda.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ewda.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ewda.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ewda.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ewda.Type = typeVar - } - } - } - - return nil -} - -// BasicExecutionActivity base class for all execution activities. -type BasicExecutionActivity interface { - AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) - AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) - AsScriptActivity() (*ScriptActivity, bool) - AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) - AsAzureFunctionActivity() (*AzureFunctionActivity, bool) - AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) - AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) - AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) - AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) - AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) - AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) - AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) - AsGetMetadataActivity() (*GetMetadataActivity, bool) - AsWebActivity() (*WebActivity, bool) - AsLookupActivity() (*LookupActivity, bool) - AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) - AsDeleteActivity() (*DeleteActivity, bool) - AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) - AsCustomActivity() (*CustomActivity, bool) - AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) - AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) - AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) - AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) - AsHDInsightPigActivity() (*HDInsightPigActivity, bool) - AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) - AsCopyActivity() (*CopyActivity, bool) - AsExecutionActivity() (*ExecutionActivity, bool) -} - -// ExecutionActivity base class for all execution activities. -type ExecutionActivity struct { - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -func unmarshalBasicExecutionActivity(body []byte) (BasicExecutionActivity, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicActivityTypeSparkJob): - var ssjda SynapseSparkJobDefinitionActivity - err := json.Unmarshal(body, &ssjda) - return ssjda, err - case string(TypeBasicActivityTypeSynapseNotebook): - var sna SynapseNotebookActivity - err := json.Unmarshal(body, &sna) - return sna, err - case string(TypeBasicActivityTypeScript): - var sa ScriptActivity - err := json.Unmarshal(body, &sa) - return sa, err - case string(TypeBasicActivityTypeExecuteDataFlow): - var edfa ExecuteDataFlowActivity - err := json.Unmarshal(body, &edfa) - return edfa, err - case string(TypeBasicActivityTypeAzureFunctionActivity): - var afa AzureFunctionActivity - err := json.Unmarshal(body, &afa) - return afa, err - case string(TypeBasicActivityTypeDatabricksSparkPython): - var dspa DatabricksSparkPythonActivity - err := json.Unmarshal(body, &dspa) - return dspa, err - case string(TypeBasicActivityTypeDatabricksSparkJar): - var dsja DatabricksSparkJarActivity - err := json.Unmarshal(body, &dsja) - return dsja, err - case string(TypeBasicActivityTypeDatabricksNotebook): - var dna DatabricksNotebookActivity - err := json.Unmarshal(body, &dna) - return dna, err - case string(TypeBasicActivityTypeDataLakeAnalyticsUSQL): - var dlaua DataLakeAnalyticsUSQLActivity - err := json.Unmarshal(body, &dlaua) - return dlaua, err - case string(TypeBasicActivityTypeAzureMLExecutePipeline): - var amepa AzureMLExecutePipelineActivity - err := json.Unmarshal(body, &amepa) - return amepa, err - case string(TypeBasicActivityTypeAzureMLUpdateResource): - var amura AzureMLUpdateResourceActivity - err := json.Unmarshal(body, &amura) - return amura, err - case string(TypeBasicActivityTypeAzureMLBatchExecution): - var ambea AzureMLBatchExecutionActivity - err := json.Unmarshal(body, &ambea) - return ambea, err - case string(TypeBasicActivityTypeGetMetadata): - var gma GetMetadataActivity - err := json.Unmarshal(body, &gma) - return gma, err - case string(TypeBasicActivityTypeWebActivity): - var wa WebActivity - err := json.Unmarshal(body, &wa) - return wa, err - case string(TypeBasicActivityTypeLookup): - var la LookupActivity - err := json.Unmarshal(body, &la) - return la, err - case string(TypeBasicActivityTypeAzureDataExplorerCommand): - var adeca AzureDataExplorerCommandActivity - err := json.Unmarshal(body, &adeca) - return adeca, err - case string(TypeBasicActivityTypeDelete): - var da DeleteActivity - err := json.Unmarshal(body, &da) - return da, err - case string(TypeBasicActivityTypeSQLServerStoredProcedure): - var ssspa SQLServerStoredProcedureActivity - err := json.Unmarshal(body, &ssspa) - return ssspa, err - case string(TypeBasicActivityTypeCustom): - var ca CustomActivity - err := json.Unmarshal(body, &ca) - return ca, err - case string(TypeBasicActivityTypeExecuteSSISPackage): - var espa ExecuteSSISPackageActivity - err := json.Unmarshal(body, &espa) - return espa, err - case string(TypeBasicActivityTypeHDInsightSpark): - var hisa HDInsightSparkActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeBasicActivityTypeHDInsightStreaming): - var hisa HDInsightStreamingActivity - err := json.Unmarshal(body, &hisa) - return hisa, err - case string(TypeBasicActivityTypeHDInsightMapReduce): - var himra HDInsightMapReduceActivity - err := json.Unmarshal(body, &himra) - return himra, err - case string(TypeBasicActivityTypeHDInsightPig): - var hipa HDInsightPigActivity - err := json.Unmarshal(body, &hipa) - return hipa, err - case string(TypeBasicActivityTypeHDInsightHive): - var hiha HDInsightHiveActivity - err := json.Unmarshal(body, &hiha) - return hiha, err - case string(TypeBasicActivityTypeCopy): - var ca CopyActivity - err := json.Unmarshal(body, &ca) - return ca, err - default: - var ea ExecutionActivity - err := json.Unmarshal(body, &ea) - return ea, err - } -} -func unmarshalBasicExecutionActivityArray(body []byte) ([]BasicExecutionActivity, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - eaArray := make([]BasicExecutionActivity, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ea, err := unmarshalBasicExecutionActivity(*rawMessage) - if err != nil { - return nil, err - } - eaArray[index] = ea - } - return eaArray, nil -} - -// MarshalJSON is the custom marshaler for ExecutionActivity. -func (ea ExecutionActivity) MarshalJSON() ([]byte, error) { - ea.Type = TypeBasicActivityTypeExecution - objectMap := make(map[string]interface{}) - if ea.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ea.LinkedServiceName - } - if ea.Policy != nil { - objectMap["policy"] = ea.Policy - } - if ea.Name != nil { - objectMap["name"] = ea.Name - } - if ea.Description != nil { - objectMap["description"] = ea.Description - } - if ea.State != "" { - objectMap["state"] = ea.State - } - if ea.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ea.OnInactiveMarkAs - } - if ea.DependsOn != nil { - objectMap["dependsOn"] = ea.DependsOn - } - if ea.UserProperties != nil { - objectMap["userProperties"] = ea.UserProperties - } - if ea.Type != "" { - objectMap["type"] = ea.Type - } - for k, v := range ea.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return &ea, true -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ea, true -} - -// AsWebHookActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ExecutionActivity. -func (ea ExecutionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ea, true -} - -// UnmarshalJSON is the custom unmarshaler for ExecutionActivity struct. -func (ea *ExecutionActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ea.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ea.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ea.AdditionalProperties == nil { - ea.AdditionalProperties = make(map[string]interface{}) - } - ea.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ea.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ea.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ea.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ea.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ea.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ea.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ea.Type = typeVar - } - } - } - - return nil -} - -// BasicExportSettings export command settings. -type BasicExportSettings interface { - AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) - AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) - AsExportSettings() (*ExportSettings, bool) -} - -// ExportSettings export command settings. -type ExportSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicExportSettingsTypeExportSettings', 'TypeBasicExportSettingsTypeSnowflakeExportCopyCommand', 'TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand' - Type TypeBasicExportSettings `json:"type,omitempty"` -} - -func unmarshalBasicExportSettings(body []byte) (BasicExportSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicExportSettingsTypeSnowflakeExportCopyCommand): - var secc SnowflakeExportCopyCommand - err := json.Unmarshal(body, &secc) - return secc, err - case string(TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand): - var addlec AzureDatabricksDeltaLakeExportCommand - err := json.Unmarshal(body, &addlec) - return addlec, err - default: - var es ExportSettings - err := json.Unmarshal(body, &es) - return es, err - } -} -func unmarshalBasicExportSettingsArray(body []byte) ([]BasicExportSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - esArray := make([]BasicExportSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - es, err := unmarshalBasicExportSettings(*rawMessage) - if err != nil { - return nil, err - } - esArray[index] = es - } - return esArray, nil -} - -// MarshalJSON is the custom marshaler for ExportSettings. -func (es ExportSettings) MarshalJSON() ([]byte, error) { - es.Type = TypeBasicExportSettingsTypeExportSettings - objectMap := make(map[string]interface{}) - if es.Type != "" { - objectMap["type"] = es.Type - } - for k, v := range es.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for ExportSettings. -func (es ExportSettings) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for ExportSettings. -func (es ExportSettings) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { - return nil, false -} - -// AsExportSettings is the BasicExportSettings implementation for ExportSettings. -func (es ExportSettings) AsExportSettings() (*ExportSettings, bool) { - return &es, true -} - -// AsBasicExportSettings is the BasicExportSettings implementation for ExportSettings. -func (es ExportSettings) AsBasicExportSettings() (BasicExportSettings, bool) { - return &es, true -} - -// UnmarshalJSON is the custom unmarshaler for ExportSettings struct. -func (es *ExportSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if es.AdditionalProperties == nil { - es.AdditionalProperties = make(map[string]interface{}) - } - es.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicExportSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - es.Type = typeVar - } - } - } - - return nil -} - -// ExposureControlBatchRequest a list of exposure control features. -type ExposureControlBatchRequest struct { - // ExposureControlRequests - List of exposure control features. - ExposureControlRequests *[]ExposureControlRequest `json:"exposureControlRequests,omitempty"` -} - -// ExposureControlBatchResponse a list of exposure control feature values. -type ExposureControlBatchResponse struct { - autorest.Response `json:"-"` - // ExposureControlResponses - List of exposure control feature values. - ExposureControlResponses *[]ExposureControlResponse `json:"exposureControlResponses,omitempty"` -} - -// ExposureControlRequest the exposure control request. -type ExposureControlRequest struct { - // FeatureName - The feature name. - FeatureName *string `json:"featureName,omitempty"` - // FeatureType - The feature type. - FeatureType *string `json:"featureType,omitempty"` -} - -// ExposureControlResponse the exposure control response. -type ExposureControlResponse struct { - autorest.Response `json:"-"` - // FeatureName - READ-ONLY; The feature name. - FeatureName *string `json:"featureName,omitempty"` - // Value - READ-ONLY; The feature value. - Value *string `json:"value,omitempty"` -} - -// MarshalJSON is the custom marshaler for ExposureControlResponse. -func (ecr ExposureControlResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// Expression azure Data Factory expression definition. -type Expression struct { - // Type - Expression type. - Type *string `json:"type,omitempty"` - // Value - Expression value. - Value *string `json:"value,omitempty"` -} - -// Factory factory resource type. -type Factory struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Identity - Managed service identity of the factory. - Identity *FactoryIdentity `json:"identity,omitempty"` - // FactoryProperties - Properties of the factory. - *FactoryProperties `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Location - The resource location. - Location *string `json:"location,omitempty"` - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` - // ETag - READ-ONLY; Etag identifies change in the resource. - ETag *string `json:"eTag,omitempty"` -} - -// MarshalJSON is the custom marshaler for Factory. -func (f Factory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if f.Identity != nil { - objectMap["identity"] = f.Identity - } - if f.FactoryProperties != nil { - objectMap["properties"] = f.FactoryProperties - } - if f.Location != nil { - objectMap["location"] = f.Location - } - if f.Tags != nil { - objectMap["tags"] = f.Tags - } - for k, v := range f.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for Factory struct. -func (f *Factory) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if f.AdditionalProperties == nil { - f.AdditionalProperties = make(map[string]interface{}) - } - f.AdditionalProperties[k] = additionalProperties - } - case "identity": - if v != nil { - var identity FactoryIdentity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - f.Identity = &identity - } - case "properties": - if v != nil { - var factoryProperties FactoryProperties - err = json.Unmarshal(*v, &factoryProperties) - if err != nil { - return err - } - f.FactoryProperties = &factoryProperties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - f.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - f.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - f.Type = &typeVar - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - f.Location = &location - } - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - f.Tags = tags - } - case "eTag": - if v != nil { - var eTag string - err = json.Unmarshal(*v, &eTag) - if err != nil { - return err - } - f.ETag = &eTag - } - } - } - - return nil -} - -// FactoryGitHubConfiguration factory's GitHub repo information. -type FactoryGitHubConfiguration struct { - // HostName - GitHub Enterprise host name. For example: `https://github.mydomain.com` - HostName *string `json:"hostName,omitempty"` - // ClientID - GitHub bring your own app client id. - ClientID *string `json:"clientId,omitempty"` - // ClientSecret - GitHub bring your own app client secret information. - ClientSecret *GitHubClientSecret `json:"clientSecret,omitempty"` - // AccountName - Account name. - AccountName *string `json:"accountName,omitempty"` - // RepositoryName - Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` - // CollaborationBranch - Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` - // RootFolder - Root folder. - RootFolder *string `json:"rootFolder,omitempty"` - // LastCommitID - Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` - // DisablePublish - Disable manual publish operation in ADF studio to favor automated publish. - DisablePublish *bool `json:"disablePublish,omitempty"` - // Type - Possible values include: 'TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration' - Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) MarshalJSON() ([]byte, error) { - fghc.Type = TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration - objectMap := make(map[string]interface{}) - if fghc.HostName != nil { - objectMap["hostName"] = fghc.HostName - } - if fghc.ClientID != nil { - objectMap["clientId"] = fghc.ClientID - } - if fghc.ClientSecret != nil { - objectMap["clientSecret"] = fghc.ClientSecret - } - if fghc.AccountName != nil { - objectMap["accountName"] = fghc.AccountName - } - if fghc.RepositoryName != nil { - objectMap["repositoryName"] = fghc.RepositoryName - } - if fghc.CollaborationBranch != nil { - objectMap["collaborationBranch"] = fghc.CollaborationBranch - } - if fghc.RootFolder != nil { - objectMap["rootFolder"] = fghc.RootFolder - } - if fghc.LastCommitID != nil { - objectMap["lastCommitId"] = fghc.LastCommitID - } - if fghc.DisablePublish != nil { - objectMap["disablePublish"] = fghc.DisablePublish - } - if fghc.Type != "" { - objectMap["type"] = fghc.Type - } - return json.Marshal(objectMap) -} - -// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { - return nil, false -} - -// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { - return &fghc, true -} - -// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { - return nil, false -} - -// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryGitHubConfiguration. -func (fghc FactoryGitHubConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { - return &fghc, true -} - -// FactoryIdentity identity properties of the factory resource. -type FactoryIdentity struct { - // Type - The identity type. Possible values include: 'FactoryIdentityTypeSystemAssigned', 'FactoryIdentityTypeUserAssigned', 'FactoryIdentityTypeSystemAssignedUserAssigned' - Type FactoryIdentityType `json:"type,omitempty"` - // PrincipalID - READ-ONLY; The principal id of the identity. - PrincipalID *uuid.UUID `json:"principalId,omitempty"` - // TenantID - READ-ONLY; The client tenant id of the identity. - TenantID *uuid.UUID `json:"tenantId,omitempty"` - // UserAssignedIdentities - List of user assigned identities for the factory. - UserAssignedIdentities map[string]interface{} `json:"userAssignedIdentities"` -} - -// MarshalJSON is the custom marshaler for FactoryIdentity. -func (fi FactoryIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if fi.Type != "" { - objectMap["type"] = fi.Type - } - if fi.UserAssignedIdentities != nil { - objectMap["userAssignedIdentities"] = fi.UserAssignedIdentities - } - return json.Marshal(objectMap) -} - -// FactoryListResponse a list of factory resources. -type FactoryListResponse struct { - autorest.Response `json:"-"` - // Value - List of factories. - Value *[]Factory `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// FactoryListResponseIterator provides access to a complete listing of Factory values. -type FactoryListResponseIterator struct { - i int - page FactoryListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *FactoryListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/FactoryListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *FactoryListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter FactoryListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter FactoryListResponseIterator) Response() FactoryListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter FactoryListResponseIterator) Value() Factory { - if !iter.page.NotDone() { - return Factory{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the FactoryListResponseIterator type. -func NewFactoryListResponseIterator(page FactoryListResponsePage) FactoryListResponseIterator { - return FactoryListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (flr FactoryListResponse) IsEmpty() bool { - return flr.Value == nil || len(*flr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (flr FactoryListResponse) hasNextLink() bool { - return flr.NextLink != nil && len(*flr.NextLink) != 0 -} - -// factoryListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (flr FactoryListResponse) factoryListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !flr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(flr.NextLink))) -} - -// FactoryListResponsePage contains a page of Factory values. -type FactoryListResponsePage struct { - fn func(context.Context, FactoryListResponse) (FactoryListResponse, error) - flr FactoryListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *FactoryListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/FactoryListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.flr) - if err != nil { - return err - } - page.flr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *FactoryListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page FactoryListResponsePage) NotDone() bool { - return !page.flr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page FactoryListResponsePage) Response() FactoryListResponse { - return page.flr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page FactoryListResponsePage) Values() []Factory { - if page.flr.IsEmpty() { - return nil - } - return *page.flr.Value -} - -// Creates a new instance of the FactoryListResponsePage type. -func NewFactoryListResponsePage(cur FactoryListResponse, getNextPage func(context.Context, FactoryListResponse) (FactoryListResponse, error)) FactoryListResponsePage { - return FactoryListResponsePage{ - fn: getNextPage, - flr: cur, - } -} - -// FactoryProperties factory resource properties. -type FactoryProperties struct { - // ProvisioningState - READ-ONLY; Factory provisioning state, example Succeeded. - ProvisioningState *string `json:"provisioningState,omitempty"` - // CreateTime - READ-ONLY; Time the factory was created in ISO8601 format. - CreateTime *date.Time `json:"createTime,omitempty"` - // Version - READ-ONLY; Version of the factory. - Version *string `json:"version,omitempty"` - // PurviewConfiguration - Purview information of the factory. - PurviewConfiguration *PurviewConfiguration `json:"purviewConfiguration,omitempty"` - // RepoConfiguration - Git repo information of the factory. - RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` - // GlobalParameters - List of parameters for factory. - GlobalParameters map[string]*GlobalParameterSpecification `json:"globalParameters"` - // Encryption - Properties to enable Customer Managed Key for the factory. - Encryption *EncryptionConfiguration `json:"encryption,omitempty"` - // PublicNetworkAccess - Whether or not public network access is allowed for the data factory. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' - PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` -} - -// MarshalJSON is the custom marshaler for FactoryProperties. -func (fp FactoryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if fp.PurviewConfiguration != nil { - objectMap["purviewConfiguration"] = fp.PurviewConfiguration - } - objectMap["repoConfiguration"] = fp.RepoConfiguration - if fp.GlobalParameters != nil { - objectMap["globalParameters"] = fp.GlobalParameters - } - if fp.Encryption != nil { - objectMap["encryption"] = fp.Encryption - } - if fp.PublicNetworkAccess != "" { - objectMap["publicNetworkAccess"] = fp.PublicNetworkAccess - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for FactoryProperties struct. -func (fp *FactoryProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "provisioningState": - if v != nil { - var provisioningState string - err = json.Unmarshal(*v, &provisioningState) - if err != nil { - return err - } - fp.ProvisioningState = &provisioningState - } - case "createTime": - if v != nil { - var createTime date.Time - err = json.Unmarshal(*v, &createTime) - if err != nil { - return err - } - fp.CreateTime = &createTime - } - case "version": - if v != nil { - var version string - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - fp.Version = &version - } - case "purviewConfiguration": - if v != nil { - var purviewConfiguration PurviewConfiguration - err = json.Unmarshal(*v, &purviewConfiguration) - if err != nil { - return err - } - fp.PurviewConfiguration = &purviewConfiguration - } - case "repoConfiguration": - if v != nil { - repoConfiguration, err := unmarshalBasicFactoryRepoConfiguration(*v) - if err != nil { - return err - } - fp.RepoConfiguration = repoConfiguration - } - case "globalParameters": - if v != nil { - var globalParameters map[string]*GlobalParameterSpecification - err = json.Unmarshal(*v, &globalParameters) - if err != nil { - return err - } - fp.GlobalParameters = globalParameters - } - case "encryption": - if v != nil { - var encryption EncryptionConfiguration - err = json.Unmarshal(*v, &encryption) - if err != nil { - return err - } - fp.Encryption = &encryption - } - case "publicNetworkAccess": - if v != nil { - var publicNetworkAccess PublicNetworkAccess - err = json.Unmarshal(*v, &publicNetworkAccess) - if err != nil { - return err - } - fp.PublicNetworkAccess = publicNetworkAccess - } - } - } - - return nil -} - -// BasicFactoryRepoConfiguration factory's git repo information. -type BasicFactoryRepoConfiguration interface { - AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) - AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) - AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) -} - -// FactoryRepoConfiguration factory's git repo information. -type FactoryRepoConfiguration struct { - // AccountName - Account name. - AccountName *string `json:"accountName,omitempty"` - // RepositoryName - Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` - // CollaborationBranch - Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` - // RootFolder - Root folder. - RootFolder *string `json:"rootFolder,omitempty"` - // LastCommitID - Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` - // DisablePublish - Disable manual publish operation in ADF studio to favor automated publish. - DisablePublish *bool `json:"disablePublish,omitempty"` - // Type - Possible values include: 'TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration' - Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` -} - -func unmarshalBasicFactoryRepoConfiguration(body []byte) (BasicFactoryRepoConfiguration, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration): - var fvc FactoryVSTSConfiguration - err := json.Unmarshal(body, &fvc) - return fvc, err - case string(TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration): - var fghc FactoryGitHubConfiguration - err := json.Unmarshal(body, &fghc) - return fghc, err - default: - var frc FactoryRepoConfiguration - err := json.Unmarshal(body, &frc) - return frc, err - } -} -func unmarshalBasicFactoryRepoConfigurationArray(body []byte) ([]BasicFactoryRepoConfiguration, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - frcArray := make([]BasicFactoryRepoConfiguration, len(rawMessages)) - - for index, rawMessage := range rawMessages { - frc, err := unmarshalBasicFactoryRepoConfiguration(*rawMessage) - if err != nil { - return nil, err - } - frcArray[index] = frc - } - return frcArray, nil -} - -// MarshalJSON is the custom marshaler for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) MarshalJSON() ([]byte, error) { - frc.Type = TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration - objectMap := make(map[string]interface{}) - if frc.AccountName != nil { - objectMap["accountName"] = frc.AccountName - } - if frc.RepositoryName != nil { - objectMap["repositoryName"] = frc.RepositoryName - } - if frc.CollaborationBranch != nil { - objectMap["collaborationBranch"] = frc.CollaborationBranch - } - if frc.RootFolder != nil { - objectMap["rootFolder"] = frc.RootFolder - } - if frc.LastCommitID != nil { - objectMap["lastCommitId"] = frc.LastCommitID - } - if frc.DisablePublish != nil { - objectMap["disablePublish"] = frc.DisablePublish - } - if frc.Type != "" { - objectMap["type"] = frc.Type - } - return json.Marshal(objectMap) -} - -// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { - return nil, false -} - -// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { - return nil, false -} - -// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { - return &frc, true -} - -// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryRepoConfiguration. -func (frc FactoryRepoConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { - return &frc, true -} - -// FactoryRepoUpdate factory's git repo information. -type FactoryRepoUpdate struct { - // FactoryResourceID - The factory resource id. - FactoryResourceID *string `json:"factoryResourceId,omitempty"` - // RepoConfiguration - Git repo information of the factory. - RepoConfiguration BasicFactoryRepoConfiguration `json:"repoConfiguration,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for FactoryRepoUpdate struct. -func (fru *FactoryRepoUpdate) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "factoryResourceId": - if v != nil { - var factoryResourceID string - err = json.Unmarshal(*v, &factoryResourceID) - if err != nil { - return err - } - fru.FactoryResourceID = &factoryResourceID - } - case "repoConfiguration": - if v != nil { - repoConfiguration, err := unmarshalBasicFactoryRepoConfiguration(*v) - if err != nil { - return err - } - fru.RepoConfiguration = repoConfiguration - } - } - } - - return nil -} - -// FactoryUpdateParameters parameters for updating a factory resource. -type FactoryUpdateParameters struct { - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` - // Identity - Managed service identity of the factory. - Identity *FactoryIdentity `json:"identity,omitempty"` - // FactoryUpdateProperties - Properties of update the factory. - *FactoryUpdateProperties `json:"properties,omitempty"` -} - -// MarshalJSON is the custom marshaler for FactoryUpdateParameters. -func (fup FactoryUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if fup.Tags != nil { - objectMap["tags"] = fup.Tags - } - if fup.Identity != nil { - objectMap["identity"] = fup.Identity - } - if fup.FactoryUpdateProperties != nil { - objectMap["properties"] = fup.FactoryUpdateProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for FactoryUpdateParameters struct. -func (fup *FactoryUpdateParameters) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "tags": - if v != nil { - var tags map[string]*string - err = json.Unmarshal(*v, &tags) - if err != nil { - return err - } - fup.Tags = tags - } - case "identity": - if v != nil { - var identity FactoryIdentity - err = json.Unmarshal(*v, &identity) - if err != nil { - return err - } - fup.Identity = &identity - } - case "properties": - if v != nil { - var factoryUpdateProperties FactoryUpdateProperties - err = json.Unmarshal(*v, &factoryUpdateProperties) - if err != nil { - return err - } - fup.FactoryUpdateProperties = &factoryUpdateProperties - } - } - } - - return nil -} - -// FactoryUpdateProperties factory update resource properties. -type FactoryUpdateProperties struct { - // PublicNetworkAccess - Whether or not public network access is allowed for the data factory. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled' - PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` -} - -// FactoryVSTSConfiguration factory's VSTS repo information. -type FactoryVSTSConfiguration struct { - // ProjectName - VSTS project name. - ProjectName *string `json:"projectName,omitempty"` - // TenantID - VSTS tenant id. - TenantID *string `json:"tenantId,omitempty"` - // AccountName - Account name. - AccountName *string `json:"accountName,omitempty"` - // RepositoryName - Repository name. - RepositoryName *string `json:"repositoryName,omitempty"` - // CollaborationBranch - Collaboration branch. - CollaborationBranch *string `json:"collaborationBranch,omitempty"` - // RootFolder - Root folder. - RootFolder *string `json:"rootFolder,omitempty"` - // LastCommitID - Last commit id. - LastCommitID *string `json:"lastCommitId,omitempty"` - // DisablePublish - Disable manual publish operation in ADF studio to favor automated publish. - DisablePublish *bool `json:"disablePublish,omitempty"` - // Type - Possible values include: 'TypeBasicFactoryRepoConfigurationTypeFactoryRepoConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration', 'TypeBasicFactoryRepoConfigurationTypeFactoryGitHubConfiguration' - Type TypeBasicFactoryRepoConfiguration `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) MarshalJSON() ([]byte, error) { - fvc.Type = TypeBasicFactoryRepoConfigurationTypeFactoryVSTSConfiguration - objectMap := make(map[string]interface{}) - if fvc.ProjectName != nil { - objectMap["projectName"] = fvc.ProjectName - } - if fvc.TenantID != nil { - objectMap["tenantId"] = fvc.TenantID - } - if fvc.AccountName != nil { - objectMap["accountName"] = fvc.AccountName - } - if fvc.RepositoryName != nil { - objectMap["repositoryName"] = fvc.RepositoryName - } - if fvc.CollaborationBranch != nil { - objectMap["collaborationBranch"] = fvc.CollaborationBranch - } - if fvc.RootFolder != nil { - objectMap["rootFolder"] = fvc.RootFolder - } - if fvc.LastCommitID != nil { - objectMap["lastCommitId"] = fvc.LastCommitID - } - if fvc.DisablePublish != nil { - objectMap["disablePublish"] = fvc.DisablePublish - } - if fvc.Type != "" { - objectMap["type"] = fvc.Type - } - return json.Marshal(objectMap) -} - -// AsFactoryVSTSConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) AsFactoryVSTSConfiguration() (*FactoryVSTSConfiguration, bool) { - return &fvc, true -} - -// AsFactoryGitHubConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) AsFactoryGitHubConfiguration() (*FactoryGitHubConfiguration, bool) { - return nil, false -} - -// AsFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) AsFactoryRepoConfiguration() (*FactoryRepoConfiguration, bool) { - return nil, false -} - -// AsBasicFactoryRepoConfiguration is the BasicFactoryRepoConfiguration implementation for FactoryVSTSConfiguration. -func (fvc FactoryVSTSConfiguration) AsBasicFactoryRepoConfiguration() (BasicFactoryRepoConfiguration, bool) { - return &fvc, true -} - -// FailActivity this activity will fail within its own scope and output a custom error message and error -// code. The error message and code can provided either as a string literal or as an expression that can be -// evaluated to a string at runtime. The activity scope can be the whole pipeline or a control activity -// (e.g. foreach, switch, until), if the fail activity is contained in it. -type FailActivity struct { - // FailActivityTypeProperties - Fail activity properties. - *FailActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FailActivity. -func (fa FailActivity) MarshalJSON() ([]byte, error) { - fa.Type = TypeBasicActivityTypeFail - objectMap := make(map[string]interface{}) - if fa.FailActivityTypeProperties != nil { - objectMap["typeProperties"] = fa.FailActivityTypeProperties - } - if fa.Name != nil { - objectMap["name"] = fa.Name - } - if fa.Description != nil { - objectMap["description"] = fa.Description - } - if fa.State != "" { - objectMap["state"] = fa.State - } - if fa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = fa.OnInactiveMarkAs - } - if fa.DependsOn != nil { - objectMap["dependsOn"] = fa.DependsOn - } - if fa.UserProperties != nil { - objectMap["userProperties"] = fa.UserProperties - } - if fa.Type != "" { - objectMap["type"] = fa.Type - } - for k, v := range fa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsFailActivity() (*FailActivity, bool) { - return &fa, true -} - -// AsWaitActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &fa, true -} - -// AsActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for FailActivity. -func (fa FailActivity) AsBasicActivity() (BasicActivity, bool) { - return &fa, true -} - -// UnmarshalJSON is the custom unmarshaler for FailActivity struct. -func (fa *FailActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var failActivityTypeProperties FailActivityTypeProperties - err = json.Unmarshal(*v, &failActivityTypeProperties) - if err != nil { - return err - } - fa.FailActivityTypeProperties = &failActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fa.AdditionalProperties == nil { - fa.AdditionalProperties = make(map[string]interface{}) - } - fa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - fa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - fa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - fa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - fa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - fa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fa.Type = typeVar - } - } - } - - return nil -} - -// FailActivityTypeProperties fail activity properties. -type FailActivityTypeProperties struct { - // Message - 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"` - // ErrorCode - 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"` -} - -// FileServerLinkedService file system linked service. -type FileServerLinkedService struct { - // FileServerLinkedServiceTypeProperties - File system linked service properties. - *FileServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FileServerLinkedService. -func (fsls FileServerLinkedService) MarshalJSON() ([]byte, error) { - fsls.Type = TypeBasicLinkedServiceTypeFileServer - objectMap := make(map[string]interface{}) - if fsls.FileServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = fsls.FileServerLinkedServiceTypeProperties - } - if fsls.ConnectVia != nil { - objectMap["connectVia"] = fsls.ConnectVia - } - if fsls.Description != nil { - objectMap["description"] = fsls.Description - } - if fsls.Parameters != nil { - objectMap["parameters"] = fsls.Parameters - } - if fsls.Annotations != nil { - objectMap["annotations"] = fsls.Annotations - } - if fsls.Type != "" { - objectMap["type"] = fsls.Type - } - for k, v := range fsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return &fsls, true -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for FileServerLinkedService. -func (fsls FileServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &fsls, true -} - -// UnmarshalJSON is the custom unmarshaler for FileServerLinkedService struct. -func (fsls *FileServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var fileServerLinkedServiceTypeProperties FileServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &fileServerLinkedServiceTypeProperties) - if err != nil { - return err - } - fsls.FileServerLinkedServiceTypeProperties = &fileServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsls.AdditionalProperties == nil { - fsls.AdditionalProperties = make(map[string]interface{}) - } - fsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - fsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - fsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - fsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsls.Type = typeVar - } - } - } - - return nil -} - -// FileServerLinkedServiceTypeProperties file system linked service properties. -type FileServerLinkedServiceTypeProperties struct { - // Host - Host name of the server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // UserID - User ID to logon the server. Type: string (or Expression with resultType string). - UserID interface{} `json:"userId,omitempty"` - // Password - Password to logon the server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for FileServerLinkedServiceTypeProperties struct. -func (fslstp *FileServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - fslstp.Host = host - } - case "userId": - if v != nil { - var userID interface{} - err = json.Unmarshal(*v, &userID) - if err != nil { - return err - } - fslstp.UserID = userID - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - fslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - fslstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// FileServerLocation the location of file server dataset. -type FileServerLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FileServerLocation. -func (fsl FileServerLocation) MarshalJSON() ([]byte, error) { - fsl.Type = TypeBasicDatasetLocationTypeFileServerLocation - objectMap := make(map[string]interface{}) - if fsl.FolderPath != nil { - objectMap["folderPath"] = fsl.FolderPath - } - if fsl.FileName != nil { - objectMap["fileName"] = fsl.FileName - } - if fsl.Type != "" { - objectMap["type"] = fsl.Type - } - for k, v := range fsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return &fsl, true -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for FileServerLocation. -func (fsl FileServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &fsl, true -} - -// UnmarshalJSON is the custom unmarshaler for FileServerLocation struct. -func (fsl *FileServerLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsl.AdditionalProperties == nil { - fsl.AdditionalProperties = make(map[string]interface{}) - } - fsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - fsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - fsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsl.Type = typeVar - } - } - } - - return nil -} - -// FileServerReadSettings file server read settings. -type FileServerReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - FileServer wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - FileServer wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // FileFilter - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FileServerReadSettings. -func (fsrs FileServerReadSettings) MarshalJSON() ([]byte, error) { - fsrs.Type = TypeBasicStoreReadSettingsTypeFileServerReadSettings - objectMap := make(map[string]interface{}) - if fsrs.Recursive != nil { - objectMap["recursive"] = fsrs.Recursive - } - if fsrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = fsrs.WildcardFolderPath - } - if fsrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = fsrs.WildcardFileName - } - if fsrs.FileListPath != nil { - objectMap["fileListPath"] = fsrs.FileListPath - } - if fsrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = fsrs.EnablePartitionDiscovery - } - if fsrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = fsrs.PartitionRootPath - } - if fsrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = fsrs.DeleteFilesAfterCompletion - } - if fsrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = fsrs.ModifiedDatetimeStart - } - if fsrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = fsrs.ModifiedDatetimeEnd - } - if fsrs.FileFilter != nil { - objectMap["fileFilter"] = fsrs.FileFilter - } - if fsrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = fsrs.MaxConcurrentConnections - } - if fsrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = fsrs.DisableMetricsCollection - } - if fsrs.Type != "" { - objectMap["type"] = fsrs.Type - } - for k, v := range fsrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return &fsrs, true -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for FileServerReadSettings. -func (fsrs FileServerReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &fsrs, true -} - -// UnmarshalJSON is the custom unmarshaler for FileServerReadSettings struct. -func (fsrs *FileServerReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - fsrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - fsrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - fsrs.WildcardFileName = wildcardFileName - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - fsrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - fsrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - fsrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - fsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - fsrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - fsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - case "fileFilter": - if v != nil { - var fileFilter interface{} - err = json.Unmarshal(*v, &fileFilter) - if err != nil { - return err - } - fsrs.FileFilter = fileFilter - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsrs.AdditionalProperties == nil { - fsrs.AdditionalProperties = make(map[string]interface{}) - } - fsrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - fsrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - fsrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsrs.Type = typeVar - } - } - } - - return nil -} - -// FileServerWriteSettings file server write settings. -type FileServerWriteSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FileServerWriteSettings. -func (fsws FileServerWriteSettings) MarshalJSON() ([]byte, error) { - fsws.Type = TypeBasicStoreWriteSettingsTypeFileServerWriteSettings - objectMap := make(map[string]interface{}) - if fsws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = fsws.MaxConcurrentConnections - } - if fsws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = fsws.DisableMetricsCollection - } - if fsws.CopyBehavior != nil { - objectMap["copyBehavior"] = fsws.CopyBehavior - } - if fsws.Metadata != nil { - objectMap["metadata"] = fsws.Metadata - } - if fsws.Type != "" { - objectMap["type"] = fsws.Type - } - for k, v := range fsws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { - return nil, false -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return &fsws, true -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for FileServerWriteSettings. -func (fsws FileServerWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &fsws, true -} - -// UnmarshalJSON is the custom unmarshaler for FileServerWriteSettings struct. -func (fsws *FileServerWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsws.AdditionalProperties == nil { - fsws.AdditionalProperties = make(map[string]interface{}) - } - fsws.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - fsws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - fsws.DisableMetricsCollection = disableMetricsCollection - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - fsws.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - fsws.Metadata = &metadata - } - case "type": - if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsws.Type = typeVar - } - } - } - - return nil -} - -// FileShareDataset an on-premises file system dataset. -type FileShareDataset struct { - // FileShareDatasetTypeProperties - On-premises file system dataset properties. - *FileShareDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FileShareDataset. -func (fsd FileShareDataset) MarshalJSON() ([]byte, error) { - fsd.Type = TypeBasicDatasetTypeFileShare - objectMap := make(map[string]interface{}) - if fsd.FileShareDatasetTypeProperties != nil { - objectMap["typeProperties"] = fsd.FileShareDatasetTypeProperties - } - if fsd.Description != nil { - objectMap["description"] = fsd.Description - } - if fsd.Structure != nil { - objectMap["structure"] = fsd.Structure - } - if fsd.Schema != nil { - objectMap["schema"] = fsd.Schema - } - if fsd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = fsd.LinkedServiceName - } - if fsd.Parameters != nil { - objectMap["parameters"] = fsd.Parameters - } - if fsd.Annotations != nil { - objectMap["annotations"] = fsd.Annotations - } - if fsd.Folder != nil { - objectMap["folder"] = fsd.Folder - } - if fsd.Type != "" { - objectMap["type"] = fsd.Type - } - for k, v := range fsd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return &fsd, true -} - -// AsOffice365Dataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for FileShareDataset. -func (fsd FileShareDataset) AsBasicDataset() (BasicDataset, bool) { - return &fsd, true -} - -// UnmarshalJSON is the custom unmarshaler for FileShareDataset struct. -func (fsd *FileShareDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var fileShareDatasetTypeProperties FileShareDatasetTypeProperties - err = json.Unmarshal(*v, &fileShareDatasetTypeProperties) - if err != nil { - return err - } - fsd.FileShareDatasetTypeProperties = &fileShareDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsd.AdditionalProperties == nil { - fsd.AdditionalProperties = make(map[string]interface{}) - } - fsd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fsd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - fsd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - fsd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - fsd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - fsd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - fsd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - fsd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsd.Type = typeVar - } - } - } - - return nil -} - -// FileShareDatasetTypeProperties on-premises file system dataset properties. -type FileShareDatasetTypeProperties struct { - // FolderPath - The path of the on-premises file system. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - The name of the on-premises file system. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // Format - The format of the files. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // FileFilter - 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"` - // Compression - The data compression method used for the file system. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for FileShareDatasetTypeProperties struct. -func (fsdtp *FileShareDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - fsdtp.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - fsdtp.FileName = fileName - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - fsdtp.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - fsdtp.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - fsdtp.Format = formatVar - } - case "fileFilter": - if v != nil { - var fileFilter interface{} - err = json.Unmarshal(*v, &fileFilter) - if err != nil { - return err - } - fsdtp.FileFilter = fileFilter - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - fsdtp.Compression = &compression - } - } - } - - return nil -} - -// FileSystemSink a copy activity file system sink. -type FileSystemSink struct { - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FileSystemSink. -func (fss FileSystemSink) MarshalJSON() ([]byte, error) { - fss.Type = TypeBasicCopySinkTypeFileSystemSink - objectMap := make(map[string]interface{}) - if fss.CopyBehavior != nil { - objectMap["copyBehavior"] = fss.CopyBehavior - } - if fss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = fss.WriteBatchSize - } - if fss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = fss.WriteBatchTimeout - } - if fss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = fss.SinkRetryCount - } - if fss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = fss.SinkRetryWait - } - if fss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections - } - if fss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = fss.DisableMetricsCollection - } - if fss.Type != "" { - objectMap["type"] = fss.Type - } - for k, v := range fss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsFileSystemSink() (*FileSystemSink, bool) { - return &fss, true -} - -// AsBlobSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for FileSystemSink. -func (fss FileSystemSink) AsBasicCopySink() (BasicCopySink, bool) { - return &fss, true -} - -// UnmarshalJSON is the custom unmarshaler for FileSystemSink struct. -func (fss *FileSystemSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - fss.CopyBehavior = copyBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fss.AdditionalProperties == nil { - fss.AdditionalProperties = make(map[string]interface{}) - } - fss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - fss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - fss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - fss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - fss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - fss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - fss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fss.Type = typeVar - } - } - } - - return nil -} - -// FileSystemSource a copy activity file system source. -type FileSystemSource struct { - // Recursive - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FileSystemSource. -func (fss FileSystemSource) MarshalJSON() ([]byte, error) { - fss.Type = TypeBasicCopySourceTypeFileSystemSource - objectMap := make(map[string]interface{}) - if fss.Recursive != nil { - objectMap["recursive"] = fss.Recursive - } - if fss.AdditionalColumns != nil { - objectMap["additionalColumns"] = fss.AdditionalColumns - } - if fss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = fss.SourceRetryCount - } - if fss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = fss.SourceRetryWait - } - if fss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = fss.MaxConcurrentConnections - } - if fss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = fss.DisableMetricsCollection - } - if fss.Type != "" { - objectMap["type"] = fss.Type - } - for k, v := range fss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsFileSystemSource() (*FileSystemSource, bool) { - return &fss, true -} - -// AsRestSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for FileSystemSource. -func (fss FileSystemSource) AsBasicCopySource() (BasicCopySource, bool) { - return &fss, true -} - -// UnmarshalJSON is the custom unmarshaler for FileSystemSource struct. -func (fss *FileSystemSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - fss.Recursive = recursive - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - fss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fss.AdditionalProperties == nil { - fss.AdditionalProperties = make(map[string]interface{}) - } - fss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - fss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - fss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - fss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - fss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fss.Type = typeVar - } - } - } - - return nil -} - -// FilterActivity filter and return results from input array based on the conditions. -type FilterActivity struct { - // FilterActivityTypeProperties - Filter activity properties. - *FilterActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FilterActivity. -func (fa FilterActivity) MarshalJSON() ([]byte, error) { - fa.Type = TypeBasicActivityTypeFilter - objectMap := make(map[string]interface{}) - if fa.FilterActivityTypeProperties != nil { - objectMap["typeProperties"] = fa.FilterActivityTypeProperties - } - if fa.Name != nil { - objectMap["name"] = fa.Name - } - if fa.Description != nil { - objectMap["description"] = fa.Description - } - if fa.State != "" { - objectMap["state"] = fa.State - } - if fa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = fa.OnInactiveMarkAs - } - if fa.DependsOn != nil { - objectMap["dependsOn"] = fa.DependsOn - } - if fa.UserProperties != nil { - objectMap["userProperties"] = fa.UserProperties - } - if fa.Type != "" { - objectMap["type"] = fa.Type - } - for k, v := range fa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsFilterActivity() (*FilterActivity, bool) { - return &fa, true -} - -// AsValidationActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &fa, true -} - -// AsActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for FilterActivity. -func (fa FilterActivity) AsBasicActivity() (BasicActivity, bool) { - return &fa, true -} - -// UnmarshalJSON is the custom unmarshaler for FilterActivity struct. -func (fa *FilterActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var filterActivityTypeProperties FilterActivityTypeProperties - err = json.Unmarshal(*v, &filterActivityTypeProperties) - if err != nil { - return err - } - fa.FilterActivityTypeProperties = &filterActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fa.AdditionalProperties == nil { - fa.AdditionalProperties = make(map[string]interface{}) - } - fa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - fa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - fa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - fa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - fa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - fa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fa.Type = typeVar - } - } - } - - return nil -} - -// FilterActivityTypeProperties filter activity properties. -type FilterActivityTypeProperties struct { - // Items - Input array on which filter should be applied. - Items *Expression `json:"items,omitempty"` - // Condition - Condition to be used for filtering the input. - Condition *Expression `json:"condition,omitempty"` -} - -// Flowlet data flow flowlet -type Flowlet struct { - // FlowletTypeProperties - Flowlet type properties. - *FlowletTypeProperties `json:"typeProperties,omitempty"` - // Description - The description of the data flow. - Description *string `json:"description,omitempty"` - // Annotations - List of tags that can be used for describing the data flow. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDataFlowTypeDataFlow', 'TypeBasicDataFlowTypeWranglingDataFlow', 'TypeBasicDataFlowTypeFlowlet', 'TypeBasicDataFlowTypeMappingDataFlow' - Type TypeBasicDataFlow `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Flowlet. -func (f Flowlet) MarshalJSON() ([]byte, error) { - f.Type = TypeBasicDataFlowTypeFlowlet - objectMap := make(map[string]interface{}) - if f.FlowletTypeProperties != nil { - objectMap["typeProperties"] = f.FlowletTypeProperties - } - if f.Description != nil { - objectMap["description"] = f.Description - } - if f.Annotations != nil { - objectMap["annotations"] = f.Annotations - } - if f.Folder != nil { - objectMap["folder"] = f.Folder - } - if f.Type != "" { - objectMap["type"] = f.Type - } - return json.Marshal(objectMap) -} - -// AsWranglingDataFlow is the BasicDataFlow implementation for Flowlet. -func (f Flowlet) AsWranglingDataFlow() (*WranglingDataFlow, bool) { - return nil, false -} - -// AsFlowlet is the BasicDataFlow implementation for Flowlet. -func (f Flowlet) AsFlowlet() (*Flowlet, bool) { - return &f, true -} - -// AsMappingDataFlow is the BasicDataFlow implementation for Flowlet. -func (f Flowlet) AsMappingDataFlow() (*MappingDataFlow, bool) { - return nil, false -} - -// AsDataFlow is the BasicDataFlow implementation for Flowlet. -func (f Flowlet) AsDataFlow() (*DataFlow, bool) { - return nil, false -} - -// AsBasicDataFlow is the BasicDataFlow implementation for Flowlet. -func (f Flowlet) AsBasicDataFlow() (BasicDataFlow, bool) { - return &f, true -} - -// UnmarshalJSON is the custom unmarshaler for Flowlet struct. -func (f *Flowlet) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var flowletTypeProperties FlowletTypeProperties - err = json.Unmarshal(*v, &flowletTypeProperties) - if err != nil { - return err - } - f.FlowletTypeProperties = &flowletTypeProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - f.Description = &description - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - f.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DataFlowFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - f.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataFlow - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - f.Type = typeVar - } - } - } - - return nil -} - -// FlowletTypeProperties flowlet type properties. -type FlowletTypeProperties struct { - // Sources - List of sources in Flowlet. - Sources *[]DataFlowSource `json:"sources,omitempty"` - // Sinks - List of sinks in Flowlet. - Sinks *[]DataFlowSink `json:"sinks,omitempty"` - // Transformations - List of transformations in Flowlet. - Transformations *[]Transformation `json:"transformations,omitempty"` - // Script - Flowlet script. - Script *string `json:"script,omitempty"` - // ScriptLines - Flowlet script lines. - ScriptLines *[]string `json:"scriptLines,omitempty"` -} - -// ForEachActivity this activity is used for iterating over a collection and execute given activities. -type ForEachActivity struct { - // ForEachActivityTypeProperties - ForEach activity properties. - *ForEachActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ForEachActivity. -func (fea ForEachActivity) MarshalJSON() ([]byte, error) { - fea.Type = TypeBasicActivityTypeForEach - objectMap := make(map[string]interface{}) - if fea.ForEachActivityTypeProperties != nil { - objectMap["typeProperties"] = fea.ForEachActivityTypeProperties - } - if fea.Name != nil { - objectMap["name"] = fea.Name - } - if fea.Description != nil { - objectMap["description"] = fea.Description - } - if fea.State != "" { - objectMap["state"] = fea.State - } - if fea.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = fea.OnInactiveMarkAs - } - if fea.DependsOn != nil { - objectMap["dependsOn"] = fea.DependsOn - } - if fea.UserProperties != nil { - objectMap["userProperties"] = fea.UserProperties - } - if fea.Type != "" { - objectMap["type"] = fea.Type - } - for k, v := range fea.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsForEachActivity() (*ForEachActivity, bool) { - return &fea, true -} - -// AsSwitchActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &fea, true -} - -// AsActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ForEachActivity. -func (fea ForEachActivity) AsBasicActivity() (BasicActivity, bool) { - return &fea, true -} - -// UnmarshalJSON is the custom unmarshaler for ForEachActivity struct. -func (fea *ForEachActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var forEachActivityTypeProperties ForEachActivityTypeProperties - err = json.Unmarshal(*v, &forEachActivityTypeProperties) - if err != nil { - return err - } - fea.ForEachActivityTypeProperties = &forEachActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fea.AdditionalProperties == nil { - fea.AdditionalProperties = make(map[string]interface{}) - } - fea.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - fea.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fea.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - fea.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - fea.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - fea.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - fea.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fea.Type = typeVar - } - } - } - - return nil -} - -// ForEachActivityTypeProperties forEach activity properties. -type ForEachActivityTypeProperties struct { - // IsSequential - Should the loop be executed in sequence or in parallel (max 50) - IsSequential *bool `json:"isSequential,omitempty"` - // BatchCount - Batch count to be used for controlling the number of parallel execution (when isSequential is set to false). - BatchCount *int32 `json:"batchCount,omitempty"` - // Items - Collection to iterate. - Items *Expression `json:"items,omitempty"` - // Activities - List of activities to execute . - Activities *[]BasicActivity `json:"activities,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ForEachActivityTypeProperties struct. -func (featp *ForEachActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "isSequential": - if v != nil { - var isSequential bool - err = json.Unmarshal(*v, &isSequential) - if err != nil { - return err - } - featp.IsSequential = &isSequential - } - case "batchCount": - if v != nil { - var batchCount int32 - err = json.Unmarshal(*v, &batchCount) - if err != nil { - return err - } - featp.BatchCount = &batchCount - } - case "items": - if v != nil { - var items Expression - err = json.Unmarshal(*v, &items) - if err != nil { - return err - } - featp.Items = &items - } - case "activities": - if v != nil { - activities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - featp.Activities = &activities - } - } - } - - return nil -} - -// BasicFormatReadSettings format read settings. -type BasicFormatReadSettings interface { - AsBinaryReadSettings() (*BinaryReadSettings, bool) - AsXMLReadSettings() (*XMLReadSettings, bool) - AsJSONReadSettings() (*JSONReadSettings, bool) - AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) - AsParquetReadSettings() (*ParquetReadSettings, bool) - AsFormatReadSettings() (*FormatReadSettings, bool) -} - -// FormatReadSettings format read settings. -type FormatReadSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` -} - -func unmarshalBasicFormatReadSettings(body []byte) (BasicFormatReadSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicFormatReadSettingsTypeBinaryReadSettings): - var brs BinaryReadSettings - err := json.Unmarshal(body, &brs) - return brs, err - case string(TypeBasicFormatReadSettingsTypeXMLReadSettings): - var xrs XMLReadSettings - err := json.Unmarshal(body, &xrs) - return xrs, err - case string(TypeBasicFormatReadSettingsTypeJSONReadSettings): - var jrs JSONReadSettings - err := json.Unmarshal(body, &jrs) - return jrs, err - case string(TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings): - var dtrs DelimitedTextReadSettings - err := json.Unmarshal(body, &dtrs) - return dtrs, err - case string(TypeBasicFormatReadSettingsTypeParquetReadSettings): - var prs ParquetReadSettings - err := json.Unmarshal(body, &prs) - return prs, err - default: - var frs FormatReadSettings - err := json.Unmarshal(body, &frs) - return frs, err - } -} -func unmarshalBasicFormatReadSettingsArray(body []byte) ([]BasicFormatReadSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - frsArray := make([]BasicFormatReadSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - frs, err := unmarshalBasicFormatReadSettings(*rawMessage) - if err != nil { - return nil, err - } - frsArray[index] = frs - } - return frsArray, nil -} - -// MarshalJSON is the custom marshaler for FormatReadSettings. -func (frs FormatReadSettings) MarshalJSON() ([]byte, error) { - frs.Type = TypeBasicFormatReadSettingsTypeFormatReadSettings - objectMap := make(map[string]interface{}) - if frs.Type != "" { - objectMap["type"] = frs.Type - } - for k, v := range frs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { - return nil, false -} - -// AsXMLReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { - return nil, false -} - -// AsJSONReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { - return nil, false -} - -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { - return nil, false -} - -// AsParquetReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { - return nil, false -} - -// AsFormatReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { - return &frs, true -} - -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for FormatReadSettings. -func (frs FormatReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &frs, true -} - -// UnmarshalJSON is the custom unmarshaler for FormatReadSettings struct. -func (frs *FormatReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if frs.AdditionalProperties == nil { - frs.AdditionalProperties = make(map[string]interface{}) - } - frs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - frs.Type = typeVar - } - } - } - - return nil -} - -// BasicFormatWriteSettings format write settings. -type BasicFormatWriteSettings interface { - AsJSONWriteSettings() (*JSONWriteSettings, bool) - AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) - AsOrcWriteSettings() (*OrcWriteSettings, bool) - AsAvroWriteSettings() (*AvroWriteSettings, bool) - AsParquetWriteSettings() (*ParquetWriteSettings, bool) - AsFormatWriteSettings() (*FormatWriteSettings, bool) -} - -// FormatWriteSettings format write settings. -type FormatWriteSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` -} - -func unmarshalBasicFormatWriteSettings(body []byte) (BasicFormatWriteSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicFormatWriteSettingsTypeJSONWriteSettings): - var jws JSONWriteSettings - err := json.Unmarshal(body, &jws) - return jws, err - case string(TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings): - var dtws DelimitedTextWriteSettings - err := json.Unmarshal(body, &dtws) - return dtws, err - case string(TypeBasicFormatWriteSettingsTypeOrcWriteSettings): - var ows OrcWriteSettings - err := json.Unmarshal(body, &ows) - return ows, err - case string(TypeBasicFormatWriteSettingsTypeAvroWriteSettings): - var aws AvroWriteSettings - err := json.Unmarshal(body, &aws) - return aws, err - case string(TypeBasicFormatWriteSettingsTypeParquetWriteSettings): - var pws ParquetWriteSettings - err := json.Unmarshal(body, &pws) - return pws, err - default: - var fws FormatWriteSettings - err := json.Unmarshal(body, &fws) - return fws, err - } -} -func unmarshalBasicFormatWriteSettingsArray(body []byte) ([]BasicFormatWriteSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - fwsArray := make([]BasicFormatWriteSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - fws, err := unmarshalBasicFormatWriteSettings(*rawMessage) - if err != nil { - return nil, err - } - fwsArray[index] = fws - } - return fwsArray, nil -} - -// MarshalJSON is the custom marshaler for FormatWriteSettings. -func (fws FormatWriteSettings) MarshalJSON() ([]byte, error) { - fws.Type = TypeBasicFormatWriteSettingsTypeFormatWriteSettings - objectMap := make(map[string]interface{}) - if fws.Type != "" { - objectMap["type"] = fws.Type - } - for k, v := range fws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { - return nil, false -} - -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { - return nil, false -} - -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { - return nil, false -} - -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { - return nil, false -} - -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { - return nil, false -} - -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return &fws, true -} - -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for FormatWriteSettings. -func (fws FormatWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &fws, true -} - -// UnmarshalJSON is the custom unmarshaler for FormatWriteSettings struct. -func (fws *FormatWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fws.AdditionalProperties == nil { - fws.AdditionalProperties = make(map[string]interface{}) - } - fws.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fws.Type = typeVar - } - } - } - - return nil -} - -// FtpReadSettings ftp read settings. -type FtpReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Ftp wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Ftp wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // FileListPath - 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"` - // UseBinaryTransfer - Specify whether to use binary transfer mode for FTP stores. Type: boolean (or Expression with resultType boolean). - UseBinaryTransfer interface{} `json:"useBinaryTransfer,omitempty"` - // DisableChunking - If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). - DisableChunking interface{} `json:"disableChunking,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FtpReadSettings. -func (frs FtpReadSettings) MarshalJSON() ([]byte, error) { - frs.Type = TypeBasicStoreReadSettingsTypeFtpReadSettings - objectMap := make(map[string]interface{}) - if frs.Recursive != nil { - objectMap["recursive"] = frs.Recursive - } - if frs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = frs.WildcardFolderPath - } - if frs.WildcardFileName != nil { - objectMap["wildcardFileName"] = frs.WildcardFileName - } - if frs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = frs.EnablePartitionDiscovery - } - if frs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = frs.PartitionRootPath - } - if frs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = frs.DeleteFilesAfterCompletion - } - if frs.FileListPath != nil { - objectMap["fileListPath"] = frs.FileListPath - } - if frs.UseBinaryTransfer != nil { - objectMap["useBinaryTransfer"] = frs.UseBinaryTransfer - } - if frs.DisableChunking != nil { - objectMap["disableChunking"] = frs.DisableChunking - } - if frs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = frs.MaxConcurrentConnections - } - if frs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = frs.DisableMetricsCollection - } - if frs.Type != "" { - objectMap["type"] = frs.Type - } - for k, v := range frs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return &frs, true -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for FtpReadSettings. -func (frs FtpReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &frs, true -} - -// UnmarshalJSON is the custom unmarshaler for FtpReadSettings struct. -func (frs *FtpReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - frs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - frs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - frs.WildcardFileName = wildcardFileName - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - frs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - frs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - frs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - frs.FileListPath = fileListPath - } - case "useBinaryTransfer": - if v != nil { - var useBinaryTransfer interface{} - err = json.Unmarshal(*v, &useBinaryTransfer) - if err != nil { - return err - } - frs.UseBinaryTransfer = useBinaryTransfer - } - case "disableChunking": - if v != nil { - var disableChunking interface{} - err = json.Unmarshal(*v, &disableChunking) - if err != nil { - return err - } - frs.DisableChunking = disableChunking - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if frs.AdditionalProperties == nil { - frs.AdditionalProperties = make(map[string]interface{}) - } - frs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - frs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - frs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - frs.Type = typeVar - } - } - } - - return nil -} - -// FtpServerLinkedService a FTP server Linked Service. -type FtpServerLinkedService struct { - // FtpServerLinkedServiceTypeProperties - Properties specific to this linked service type. - *FtpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FtpServerLinkedService. -func (fsls FtpServerLinkedService) MarshalJSON() ([]byte, error) { - fsls.Type = TypeBasicLinkedServiceTypeFtpServer - objectMap := make(map[string]interface{}) - if fsls.FtpServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = fsls.FtpServerLinkedServiceTypeProperties - } - if fsls.ConnectVia != nil { - objectMap["connectVia"] = fsls.ConnectVia - } - if fsls.Description != nil { - objectMap["description"] = fsls.Description - } - if fsls.Parameters != nil { - objectMap["parameters"] = fsls.Parameters - } - if fsls.Annotations != nil { - objectMap["annotations"] = fsls.Annotations - } - if fsls.Type != "" { - objectMap["type"] = fsls.Type - } - for k, v := range fsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return &fsls, true -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for FtpServerLinkedService. -func (fsls FtpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &fsls, true -} - -// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedService struct. -func (fsls *FtpServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var ftpServerLinkedServiceTypeProperties FtpServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &ftpServerLinkedServiceTypeProperties) - if err != nil { - return err - } - fsls.FtpServerLinkedServiceTypeProperties = &ftpServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsls.AdditionalProperties == nil { - fsls.AdditionalProperties = make(map[string]interface{}) - } - fsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - fsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - fsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - fsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - fsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsls.Type = typeVar - } - } - } - - return nil -} - -// FtpServerLinkedServiceTypeProperties properties specific to this linked service type. -type FtpServerLinkedServiceTypeProperties struct { - // Host - Host name of the FTP server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // Port - 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"` - // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'FtpAuthenticationTypeBasic', 'FtpAuthenticationTypeAnonymous' - AuthenticationType FtpAuthenticationType `json:"authenticationType,omitempty"` - // UserName - Username to logon the FTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to logon the FTP server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // EnableSsl - 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"` - // EnableServerCertificateValidation - 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"` -} - -// UnmarshalJSON is the custom unmarshaler for FtpServerLinkedServiceTypeProperties struct. -func (fslstp *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - fslstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - fslstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType FtpAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - fslstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - fslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - fslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - fslstp.EncryptedCredential = &encryptedCredential - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - fslstp.EnableSsl = enableSsl - } - case "enableServerCertificateValidation": - if v != nil { - var enableServerCertificateValidation interface{} - err = json.Unmarshal(*v, &enableServerCertificateValidation) - if err != nil { - return err - } - fslstp.EnableServerCertificateValidation = enableServerCertificateValidation - } - } - } - - return nil -} - -// FtpServerLocation the location of ftp server dataset. -type FtpServerLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for FtpServerLocation. -func (fsl FtpServerLocation) MarshalJSON() ([]byte, error) { - fsl.Type = TypeBasicDatasetLocationTypeFtpServerLocation - objectMap := make(map[string]interface{}) - if fsl.FolderPath != nil { - objectMap["folderPath"] = fsl.FolderPath - } - if fsl.FileName != nil { - objectMap["fileName"] = fsl.FileName - } - if fsl.Type != "" { - objectMap["type"] = fsl.Type - } - for k, v := range fsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return &fsl, true -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for FtpServerLocation. -func (fsl FtpServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &fsl, true -} - -// UnmarshalJSON is the custom unmarshaler for FtpServerLocation struct. -func (fsl *FtpServerLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if fsl.AdditionalProperties == nil { - fsl.AdditionalProperties = make(map[string]interface{}) - } - fsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - fsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - fsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - fsl.Type = typeVar - } - } - } - - return nil -} - -// GenericDatasetTypeProperties properties specific to this dataset type. -type GenericDatasetTypeProperties struct { - // TableName - 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 { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Status - Status of the operation. - Status *string `json:"status,omitempty"` -} - -// MarshalJSON is the custom marshaler for GetDataFactoryOperationStatusResponse. -func (gdfosr GetDataFactoryOperationStatusResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if gdfosr.Status != nil { - objectMap["status"] = gdfosr.Status - } - for k, v := range gdfosr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for GetDataFactoryOperationStatusResponse struct. -func (gdfosr *GetDataFactoryOperationStatusResponse) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gdfosr.AdditionalProperties == nil { - gdfosr.AdditionalProperties = make(map[string]interface{}) - } - gdfosr.AdditionalProperties[k] = additionalProperties - } - case "status": - if v != nil { - var status string - err = json.Unmarshal(*v, &status) - if err != nil { - return err - } - gdfosr.Status = &status - } - } - } - - return nil -} - -// GetMetadataActivity activity to get metadata of dataset -type GetMetadataActivity struct { - // GetMetadataActivityTypeProperties - GetMetadata activity properties. - *GetMetadataActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GetMetadataActivity. -func (gma GetMetadataActivity) MarshalJSON() ([]byte, error) { - gma.Type = TypeBasicActivityTypeGetMetadata - objectMap := make(map[string]interface{}) - if gma.GetMetadataActivityTypeProperties != nil { - objectMap["typeProperties"] = gma.GetMetadataActivityTypeProperties - } - if gma.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gma.LinkedServiceName - } - if gma.Policy != nil { - objectMap["policy"] = gma.Policy - } - if gma.Name != nil { - objectMap["name"] = gma.Name - } - if gma.Description != nil { - objectMap["description"] = gma.Description - } - if gma.State != "" { - objectMap["state"] = gma.State - } - if gma.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = gma.OnInactiveMarkAs - } - if gma.DependsOn != nil { - objectMap["dependsOn"] = gma.DependsOn - } - if gma.UserProperties != nil { - objectMap["userProperties"] = gma.UserProperties - } - if gma.Type != "" { - objectMap["type"] = gma.Type - } - for k, v := range gma.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return &gma, true -} - -// AsWebActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &gma, true -} - -// AsWebHookActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for GetMetadataActivity. -func (gma GetMetadataActivity) AsBasicActivity() (BasicActivity, bool) { - return &gma, true -} - -// UnmarshalJSON is the custom unmarshaler for GetMetadataActivity struct. -func (gma *GetMetadataActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var getMetadataActivityTypeProperties GetMetadataActivityTypeProperties - err = json.Unmarshal(*v, &getMetadataActivityTypeProperties) - if err != nil { - return err - } - gma.GetMetadataActivityTypeProperties = &getMetadataActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - gma.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - gma.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gma.AdditionalProperties == nil { - gma.AdditionalProperties = make(map[string]interface{}) - } - gma.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - gma.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gma.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - gma.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - gma.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - gma.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - gma.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gma.Type = typeVar - } - } - } - - return nil -} - -// GetMetadataActivityTypeProperties getMetadata activity properties. -type GetMetadataActivityTypeProperties struct { - // Dataset - GetMetadata activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // FieldList - Fields of metadata to get from dataset. - FieldList *[]interface{} `json:"fieldList,omitempty"` - // StoreSettings - GetMetadata activity store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - GetMetadata activity format settings. - FormatSettings BasicFormatReadSettings `json:"formatSettings,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for GetMetadataActivityTypeProperties struct. -func (gmatp *GetMetadataActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "dataset": - if v != nil { - var dataset DatasetReference - err = json.Unmarshal(*v, &dataset) - if err != nil { - return err - } - gmatp.Dataset = &dataset - } - case "fieldList": - if v != nil { - var fieldList []interface{} - err = json.Unmarshal(*v, &fieldList) - if err != nil { - return err - } - gmatp.FieldList = &fieldList - } - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - gmatp.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - formatSettings, err := unmarshalBasicFormatReadSettings(*v) - if err != nil { - return err - } - gmatp.FormatSettings = formatSettings - } - } - } - - return nil -} - -// GetSsisObjectMetadataRequest the request payload of get SSIS object metadata. -type GetSsisObjectMetadataRequest struct { - // MetadataPath - Metadata path. - MetadataPath *string `json:"metadataPath,omitempty"` -} - -// GitHubAccessTokenRequest get GitHub access token request definition. -type GitHubAccessTokenRequest struct { - // GitHubAccessCode - GitHub access code. - GitHubAccessCode *string `json:"gitHubAccessCode,omitempty"` - // GitHubClientID - GitHub application client ID. - GitHubClientID *string `json:"gitHubClientId,omitempty"` - // GitHubClientSecret - GitHub bring your own app client secret information. - GitHubClientSecret *GitHubClientSecret `json:"gitHubClientSecret,omitempty"` - // GitHubAccessTokenBaseURL - GitHub access token base URL. - GitHubAccessTokenBaseURL *string `json:"gitHubAccessTokenBaseUrl,omitempty"` -} - -// GitHubAccessTokenResponse get GitHub access token response definition. -type GitHubAccessTokenResponse struct { - autorest.Response `json:"-"` - // GitHubAccessToken - GitHub access token. - GitHubAccessToken *string `json:"gitHubAccessToken,omitempty"` -} - -// GitHubClientSecret client secret information for factory's bring your own app repository configuration. -type GitHubClientSecret struct { - // ByoaSecretAkvURL - Bring your own app client secret AKV URL. - ByoaSecretAkvURL *string `json:"byoaSecretAkvUrl,omitempty"` - // ByoaSecretName - Bring your own app client secret name in AKV. - ByoaSecretName *string `json:"byoaSecretName,omitempty"` -} - -// GlobalParameterListResponse a list of Global parameters. -type GlobalParameterListResponse struct { - autorest.Response `json:"-"` - // Value - List of global parameters. - Value *[]GlobalParameterResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// GlobalParameterListResponseIterator provides access to a complete listing of GlobalParameterResource -// values. -type GlobalParameterListResponseIterator struct { - i int - page GlobalParameterListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *GlobalParameterListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GlobalParameterListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *GlobalParameterListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter GlobalParameterListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter GlobalParameterListResponseIterator) Response() GlobalParameterListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter GlobalParameterListResponseIterator) Value() GlobalParameterResource { - if !iter.page.NotDone() { - return GlobalParameterResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the GlobalParameterListResponseIterator type. -func NewGlobalParameterListResponseIterator(page GlobalParameterListResponsePage) GlobalParameterListResponseIterator { - return GlobalParameterListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (gplr GlobalParameterListResponse) IsEmpty() bool { - return gplr.Value == nil || len(*gplr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (gplr GlobalParameterListResponse) hasNextLink() bool { - return gplr.NextLink != nil && len(*gplr.NextLink) != 0 -} - -// globalParameterListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (gplr GlobalParameterListResponse) globalParameterListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !gplr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(gplr.NextLink))) -} - -// GlobalParameterListResponsePage contains a page of GlobalParameterResource values. -type GlobalParameterListResponsePage struct { - fn func(context.Context, GlobalParameterListResponse) (GlobalParameterListResponse, error) - gplr GlobalParameterListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *GlobalParameterListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/GlobalParameterListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.gplr) - if err != nil { - return err - } - page.gplr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *GlobalParameterListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page GlobalParameterListResponsePage) NotDone() bool { - return !page.gplr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page GlobalParameterListResponsePage) Response() GlobalParameterListResponse { - return page.gplr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page GlobalParameterListResponsePage) Values() []GlobalParameterResource { - if page.gplr.IsEmpty() { - return nil - } - return *page.gplr.Value -} - -// Creates a new instance of the GlobalParameterListResponsePage type. -func NewGlobalParameterListResponsePage(cur GlobalParameterListResponse, getNextPage func(context.Context, GlobalParameterListResponse) (GlobalParameterListResponse, error)) GlobalParameterListResponsePage { - return GlobalParameterListResponsePage{ - fn: getNextPage, - gplr: cur, - } -} - -// GlobalParameterResource global parameters resource type. -type GlobalParameterResource struct { - autorest.Response `json:"-"` - // Properties - Properties of the global parameter. - Properties map[string]*GlobalParameterSpecification `json:"properties"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for GlobalParameterResource. -func (gpr GlobalParameterResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if gpr.Properties != nil { - objectMap["properties"] = gpr.Properties - } - return json.Marshal(objectMap) -} - -// GlobalParameterSpecification definition of a single parameter for an entity. -type GlobalParameterSpecification struct { - // Type - Global Parameter type. Possible values include: 'GlobalParameterTypeObject', 'GlobalParameterTypeString', 'GlobalParameterTypeInt', 'GlobalParameterTypeFloat', 'GlobalParameterTypeBool', 'GlobalParameterTypeArray' - Type GlobalParameterType `json:"type,omitempty"` - // Value - Value of parameter. - Value interface{} `json:"value,omitempty"` -} - -// GoogleAdWordsLinkedService google AdWords service linked service. -type GoogleAdWordsLinkedService struct { - // GoogleAdWordsLinkedServiceTypeProperties - Google AdWords service linked service properties. - *GoogleAdWordsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error) { - gawls.Type = TypeBasicLinkedServiceTypeGoogleAdWords - objectMap := make(map[string]interface{}) - if gawls.GoogleAdWordsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gawls.GoogleAdWordsLinkedServiceTypeProperties - } - if gawls.ConnectVia != nil { - objectMap["connectVia"] = gawls.ConnectVia - } - if gawls.Description != nil { - objectMap["description"] = gawls.Description - } - if gawls.Parameters != nil { - objectMap["parameters"] = gawls.Parameters - } - if gawls.Annotations != nil { - objectMap["annotations"] = gawls.Annotations - } - if gawls.Type != "" { - objectMap["type"] = gawls.Type - } - for k, v := range gawls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return &gawls, true -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for GoogleAdWordsLinkedService. -func (gawls GoogleAdWordsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gawls, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsLinkedService struct. -func (gawls *GoogleAdWordsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var googleAdWordsLinkedServiceTypeProperties GoogleAdWordsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &googleAdWordsLinkedServiceTypeProperties) - if err != nil { - return err - } - gawls.GoogleAdWordsLinkedServiceTypeProperties = &googleAdWordsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gawls.AdditionalProperties == nil { - gawls.AdditionalProperties = make(map[string]interface{}) - } - gawls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gawls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gawls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gawls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gawls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gawls.Type = typeVar - } - } - } - - return nil -} - -// GoogleAdWordsLinkedServiceTypeProperties google AdWords service linked service properties. -type GoogleAdWordsLinkedServiceTypeProperties struct { - // ConnectionProperties - (Deprecated) 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"` - // ClientCustomerID - The Client customer ID of the AdWords account that you want to fetch report data for. Type: string (or Expression with resultType string). - ClientCustomerID interface{} `json:"clientCustomerID,omitempty"` - // DeveloperToken - The developer token associated with the manager account that you use to grant access to the AdWords API. - DeveloperToken BasicSecretBase `json:"developerToken,omitempty"` - // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'GoogleAdWordsAuthenticationTypeServiceAuthentication', 'GoogleAdWordsAuthenticationTypeUserAuthentication' - AuthenticationType GoogleAdWordsAuthenticationType `json:"authenticationType,omitempty"` - // RefreshToken - The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. - RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` - // ClientID - 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"` - // ClientSecret - The client secret of the google application used to acquire the refresh token. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // Email - 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 interface{} `json:"email,omitempty"` - // KeyFilePath - (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 interface{} `json:"keyFilePath,omitempty"` - // TrustedCertPath - (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 interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - (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 interface{} `json:"useSystemTrustStore,omitempty"` - // PrivateKey - The private key that is used to authenticate the service account email address and can only be used on self-hosted IR. - PrivateKey BasicSecretBase `json:"privateKey,omitempty"` - // LoginCustomerID - 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 interface{} `json:"loginCustomerID,omitempty"` - // GoogleAdsAPIVersion - 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 interface{} `json:"googleAdsApiVersion,omitempty"` - // SupportLegacyDataTypes - 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 interface{} `json:"supportLegacyDataTypes,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsLinkedServiceTypeProperties struct. -func (gawlstp *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionProperties": - if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) - if err != nil { - return err - } - gawlstp.ConnectionProperties = connectionProperties - } - case "clientCustomerID": - if v != nil { - var clientCustomerID interface{} - err = json.Unmarshal(*v, &clientCustomerID) - if err != nil { - return err - } - gawlstp.ClientCustomerID = clientCustomerID - } - case "developerToken": - if v != nil { - developerToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gawlstp.DeveloperToken = developerToken - } - case "authenticationType": - if v != nil { - var authenticationType GoogleAdWordsAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - gawlstp.AuthenticationType = authenticationType - } - case "refreshToken": - if v != nil { - refreshToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gawlstp.RefreshToken = refreshToken - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - gawlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gawlstp.ClientSecret = clientSecret - } - case "email": - if v != nil { - var email interface{} - err = json.Unmarshal(*v, &email) - if err != nil { - return err - } - gawlstp.Email = email - } - case "keyFilePath": - if v != nil { - var keyFilePath interface{} - err = json.Unmarshal(*v, &keyFilePath) - if err != nil { - return err - } - gawlstp.KeyFilePath = keyFilePath - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - gawlstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - gawlstp.UseSystemTrustStore = useSystemTrustStore - } - case "privateKey": - if v != nil { - privateKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gawlstp.PrivateKey = privateKey - } - case "loginCustomerID": - if v != nil { - var loginCustomerID interface{} - err = json.Unmarshal(*v, &loginCustomerID) - if err != nil { - return err - } - gawlstp.LoginCustomerID = loginCustomerID - } - case "googleAdsApiVersion": - if v != nil { - var googleAdsAPIVersion interface{} - err = json.Unmarshal(*v, &googleAdsAPIVersion) - if err != nil { - return err - } - gawlstp.GoogleAdsAPIVersion = googleAdsAPIVersion - } - case "supportLegacyDataTypes": - if v != nil { - var supportLegacyDataTypes interface{} - err = json.Unmarshal(*v, &supportLegacyDataTypes) - if err != nil { - return err - } - gawlstp.SupportLegacyDataTypes = supportLegacyDataTypes - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - gawlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// GoogleAdWordsObjectDataset google AdWords service dataset. -type GoogleAdWordsObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) MarshalJSON() ([]byte, error) { - gawod.Type = TypeBasicDatasetTypeGoogleAdWordsObject - objectMap := make(map[string]interface{}) - if gawod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = gawod.GenericDatasetTypeProperties - } - if gawod.Description != nil { - objectMap["description"] = gawod.Description - } - if gawod.Structure != nil { - objectMap["structure"] = gawod.Structure - } - if gawod.Schema != nil { - objectMap["schema"] = gawod.Schema - } - if gawod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gawod.LinkedServiceName - } - if gawod.Parameters != nil { - objectMap["parameters"] = gawod.Parameters - } - if gawod.Annotations != nil { - objectMap["annotations"] = gawod.Annotations - } - if gawod.Folder != nil { - objectMap["folder"] = gawod.Folder - } - if gawod.Type != "" { - objectMap["type"] = gawod.Type - } - for k, v := range gawod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return &gawod, true -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for GoogleAdWordsObjectDataset. -func (gawod GoogleAdWordsObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &gawod, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsObjectDataset struct. -func (gawod *GoogleAdWordsObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - gawod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gawod.AdditionalProperties == nil { - gawod.AdditionalProperties = make(map[string]interface{}) - } - gawod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gawod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - gawod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - gawod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - gawod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gawod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gawod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - gawod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gawod.Type = typeVar - } - } - } - - return nil -} - -// GoogleAdWordsSource a copy activity Google AdWords service source. -type GoogleAdWordsSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) MarshalJSON() ([]byte, error) { - gaws.Type = TypeBasicCopySourceTypeGoogleAdWordsSource - objectMap := make(map[string]interface{}) - if gaws.Query != nil { - objectMap["query"] = gaws.Query - } - if gaws.QueryTimeout != nil { - objectMap["queryTimeout"] = gaws.QueryTimeout - } - if gaws.AdditionalColumns != nil { - objectMap["additionalColumns"] = gaws.AdditionalColumns - } - if gaws.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = gaws.SourceRetryCount - } - if gaws.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = gaws.SourceRetryWait - } - if gaws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = gaws.MaxConcurrentConnections - } - if gaws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = gaws.DisableMetricsCollection - } - if gaws.Type != "" { - objectMap["type"] = gaws.Type - } - for k, v := range gaws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return &gaws, true -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &gaws, true -} - -// AsBinarySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for GoogleAdWordsSource. -func (gaws GoogleAdWordsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &gaws, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleAdWordsSource struct. -func (gaws *GoogleAdWordsSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - gaws.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - gaws.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - gaws.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gaws.AdditionalProperties == nil { - gaws.AdditionalProperties = make(map[string]interface{}) - } - gaws.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - gaws.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - gaws.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - gaws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - gaws.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gaws.Type = typeVar - } - } - } - - return nil -} - -// GoogleBigQueryDatasetTypeProperties google BigQuery Dataset Properties -type GoogleBigQueryDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using database + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Google BigQuery. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Dataset - The database name of the Google BigQuery. Type: string (or Expression with resultType string). - Dataset interface{} `json:"dataset,omitempty"` -} - -// GoogleBigQueryLinkedService google BigQuery service linked service. -type GoogleBigQueryLinkedService struct { - // GoogleBigQueryLinkedServiceTypeProperties - Google BigQuery service linked service properties. - *GoogleBigQueryLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { - gbqls.Type = TypeBasicLinkedServiceTypeGoogleBigQuery - objectMap := make(map[string]interface{}) - if gbqls.GoogleBigQueryLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gbqls.GoogleBigQueryLinkedServiceTypeProperties - } - if gbqls.ConnectVia != nil { - objectMap["connectVia"] = gbqls.ConnectVia - } - if gbqls.Description != nil { - objectMap["description"] = gbqls.Description - } - if gbqls.Parameters != nil { - objectMap["parameters"] = gbqls.Parameters - } - if gbqls.Annotations != nil { - objectMap["annotations"] = gbqls.Annotations - } - if gbqls.Type != "" { - objectMap["type"] = gbqls.Type - } - for k, v := range gbqls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return &gbqls, true -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for GoogleBigQueryLinkedService. -func (gbqls GoogleBigQueryLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gbqls, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedService struct. -func (gbqls *GoogleBigQueryLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var googleBigQueryLinkedServiceTypeProperties GoogleBigQueryLinkedServiceTypeProperties - err = json.Unmarshal(*v, &googleBigQueryLinkedServiceTypeProperties) - if err != nil { - return err - } - gbqls.GoogleBigQueryLinkedServiceTypeProperties = &googleBigQueryLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gbqls.AdditionalProperties == nil { - gbqls.AdditionalProperties = make(map[string]interface{}) - } - gbqls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gbqls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gbqls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gbqls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gbqls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gbqls.Type = typeVar - } - } - } - - return nil -} - -// GoogleBigQueryLinkedServiceTypeProperties google BigQuery service linked service properties. -type GoogleBigQueryLinkedServiceTypeProperties struct { - // Project - The default BigQuery project to query against. Type: string (or Expression with resultType string). - Project interface{} `json:"project,omitempty"` - // AdditionalProjects - A comma-separated list of public BigQuery projects to access. Type: string (or Expression with resultType string). - AdditionalProjects interface{} `json:"additionalProjects,omitempty"` - // RequestGoogleDriveScope - 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. Type: string (or Expression with resultType string). - RequestGoogleDriveScope interface{} `json:"requestGoogleDriveScope,omitempty"` - // AuthenticationType - The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Possible values include: 'GoogleBigQueryAuthenticationTypeServiceAuthentication', 'GoogleBigQueryAuthenticationTypeUserAuthentication' - AuthenticationType GoogleBigQueryAuthenticationType `json:"authenticationType,omitempty"` - // RefreshToken - The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. - RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` - // ClientID - 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"` - // ClientSecret - The client secret of the google application used to acquire the refresh token. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // Email - 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 interface{} `json:"email,omitempty"` - // KeyFilePath - 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 interface{} `json:"keyFilePath,omitempty"` - // TrustedCertPath - 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 interface{} `json:"trustedCertPath,omitempty"` - // UseSystemTrustStore - 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 interface{} `json:"useSystemTrustStore,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryLinkedServiceTypeProperties struct. -func (gbqlstp *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "project": - if v != nil { - var project interface{} - err = json.Unmarshal(*v, &project) - if err != nil { - return err - } - gbqlstp.Project = project - } - case "additionalProjects": - if v != nil { - var additionalProjects interface{} - err = json.Unmarshal(*v, &additionalProjects) - if err != nil { - return err - } - gbqlstp.AdditionalProjects = additionalProjects - } - case "requestGoogleDriveScope": - if v != nil { - var requestGoogleDriveScope interface{} - err = json.Unmarshal(*v, &requestGoogleDriveScope) - if err != nil { - return err - } - gbqlstp.RequestGoogleDriveScope = requestGoogleDriveScope - } - case "authenticationType": - if v != nil { - var authenticationType GoogleBigQueryAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - gbqlstp.AuthenticationType = authenticationType - } - case "refreshToken": - if v != nil { - refreshToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gbqlstp.RefreshToken = refreshToken - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - gbqlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gbqlstp.ClientSecret = clientSecret - } - case "email": - if v != nil { - var email interface{} - err = json.Unmarshal(*v, &email) - if err != nil { - return err - } - gbqlstp.Email = email - } - case "keyFilePath": - if v != nil { - var keyFilePath interface{} - err = json.Unmarshal(*v, &keyFilePath) - if err != nil { - return err - } - gbqlstp.KeyFilePath = keyFilePath - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - gbqlstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - gbqlstp.UseSystemTrustStore = useSystemTrustStore - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - gbqlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// GoogleBigQueryObjectDataset google BigQuery service dataset. -type GoogleBigQueryObjectDataset struct { - // GoogleBigQueryDatasetTypeProperties - Properties specific to this dataset type. - *GoogleBigQueryDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) MarshalJSON() ([]byte, error) { - gbqod.Type = TypeBasicDatasetTypeGoogleBigQueryObject - objectMap := make(map[string]interface{}) - if gbqod.GoogleBigQueryDatasetTypeProperties != nil { - objectMap["typeProperties"] = gbqod.GoogleBigQueryDatasetTypeProperties - } - if gbqod.Description != nil { - objectMap["description"] = gbqod.Description - } - if gbqod.Structure != nil { - objectMap["structure"] = gbqod.Structure - } - if gbqod.Schema != nil { - objectMap["schema"] = gbqod.Schema - } - if gbqod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gbqod.LinkedServiceName - } - if gbqod.Parameters != nil { - objectMap["parameters"] = gbqod.Parameters - } - if gbqod.Annotations != nil { - objectMap["annotations"] = gbqod.Annotations - } - if gbqod.Folder != nil { - objectMap["folder"] = gbqod.Folder - } - if gbqod.Type != "" { - objectMap["type"] = gbqod.Type - } - for k, v := range gbqod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return &gbqod, true -} - -// AsEloquaObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for GoogleBigQueryObjectDataset. -func (gbqod GoogleBigQueryObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &gbqod, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleBigQueryObjectDataset struct. -func (gbqod *GoogleBigQueryObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var googleBigQueryDatasetTypeProperties GoogleBigQueryDatasetTypeProperties - err = json.Unmarshal(*v, &googleBigQueryDatasetTypeProperties) - if err != nil { - return err - } - gbqod.GoogleBigQueryDatasetTypeProperties = &googleBigQueryDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gbqod.AdditionalProperties == nil { - gbqod.AdditionalProperties = make(map[string]interface{}) - } - gbqod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gbqod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - gbqod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - gbqod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - gbqod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gbqod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gbqod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - gbqod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gbqod.Type = typeVar - } - } - } - - return nil -} - -// GoogleBigQuerySource a copy activity Google BigQuery service source. -type GoogleBigQuerySource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) MarshalJSON() ([]byte, error) { - gbqs.Type = TypeBasicCopySourceTypeGoogleBigQuerySource - objectMap := make(map[string]interface{}) - if gbqs.Query != nil { - objectMap["query"] = gbqs.Query - } - if gbqs.QueryTimeout != nil { - objectMap["queryTimeout"] = gbqs.QueryTimeout - } - if gbqs.AdditionalColumns != nil { - objectMap["additionalColumns"] = gbqs.AdditionalColumns - } - if gbqs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = gbqs.SourceRetryCount - } - if gbqs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = gbqs.SourceRetryWait - } - if gbqs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = gbqs.MaxConcurrentConnections - } - if gbqs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = gbqs.DisableMetricsCollection - } - if gbqs.Type != "" { - objectMap["type"] = gbqs.Type - } - for k, v := range gbqs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return &gbqs, true -} - -// AsEloquaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &gbqs, true -} - -// AsBinarySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for GoogleBigQuerySource. -func (gbqs GoogleBigQuerySource) AsBasicCopySource() (BasicCopySource, bool) { - return &gbqs, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleBigQuerySource struct. -func (gbqs *GoogleBigQuerySource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - gbqs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - gbqs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - gbqs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gbqs.AdditionalProperties == nil { - gbqs.AdditionalProperties = make(map[string]interface{}) - } - gbqs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - gbqs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - gbqs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - gbqs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - gbqs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gbqs.Type = typeVar - } - } - } - - return nil -} - -// GoogleCloudStorageLinkedService linked service for Google Cloud Storage. -type GoogleCloudStorageLinkedService struct { - // GoogleCloudStorageLinkedServiceTypeProperties - Google Cloud Storage linked service properties. - *GoogleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { - gcsls.Type = TypeBasicLinkedServiceTypeGoogleCloudStorage - objectMap := make(map[string]interface{}) - if gcsls.GoogleCloudStorageLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gcsls.GoogleCloudStorageLinkedServiceTypeProperties - } - if gcsls.ConnectVia != nil { - objectMap["connectVia"] = gcsls.ConnectVia - } - if gcsls.Description != nil { - objectMap["description"] = gcsls.Description - } - if gcsls.Parameters != nil { - objectMap["parameters"] = gcsls.Parameters - } - if gcsls.Annotations != nil { - objectMap["annotations"] = gcsls.Annotations - } - if gcsls.Type != "" { - objectMap["type"] = gcsls.Type - } - for k, v := range gcsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return &gcsls, true -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for GoogleCloudStorageLinkedService. -func (gcsls GoogleCloudStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gcsls, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedService struct. -func (gcsls *GoogleCloudStorageLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var googleCloudStorageLinkedServiceTypeProperties GoogleCloudStorageLinkedServiceTypeProperties - err = json.Unmarshal(*v, &googleCloudStorageLinkedServiceTypeProperties) - if err != nil { - return err - } - gcsls.GoogleCloudStorageLinkedServiceTypeProperties = &googleCloudStorageLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gcsls.AdditionalProperties == nil { - gcsls.AdditionalProperties = make(map[string]interface{}) - } - gcsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gcsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gcsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gcsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gcsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gcsls.Type = typeVar - } - } - } - - return nil -} - -// GoogleCloudStorageLinkedServiceTypeProperties google Cloud Storage linked service properties. -type GoogleCloudStorageLinkedServiceTypeProperties struct { - // AccessKeyID - 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"` - // SecretAccessKey - The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. - SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` - // ServiceURL - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLinkedServiceTypeProperties struct. -func (gcslstp *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accessKeyId": - if v != nil { - var accessKeyID interface{} - err = json.Unmarshal(*v, &accessKeyID) - if err != nil { - return err - } - gcslstp.AccessKeyID = accessKeyID - } - case "secretAccessKey": - if v != nil { - secretAccessKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gcslstp.SecretAccessKey = secretAccessKey - } - case "serviceUrl": - if v != nil { - var serviceURL interface{} - err = json.Unmarshal(*v, &serviceURL) - if err != nil { - return err - } - gcslstp.ServiceURL = serviceURL - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - gcslstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// GoogleCloudStorageLocation the location of Google Cloud Storage dataset. -type GoogleCloudStorageLocation struct { - // BucketName - Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` - // Version - Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) { - gcsl.Type = TypeBasicDatasetLocationTypeGoogleCloudStorageLocation - objectMap := make(map[string]interface{}) - if gcsl.BucketName != nil { - objectMap["bucketName"] = gcsl.BucketName - } - if gcsl.Version != nil { - objectMap["version"] = gcsl.Version - } - if gcsl.FolderPath != nil { - objectMap["folderPath"] = gcsl.FolderPath - } - if gcsl.FileName != nil { - objectMap["fileName"] = gcsl.FileName - } - if gcsl.Type != "" { - objectMap["type"] = gcsl.Type - } - for k, v := range gcsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return &gcsl, true -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for GoogleCloudStorageLocation. -func (gcsl GoogleCloudStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &gcsl, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageLocation struct. -func (gcsl *GoogleCloudStorageLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "bucketName": - if v != nil { - var bucketName interface{} - err = json.Unmarshal(*v, &bucketName) - if err != nil { - return err - } - gcsl.BucketName = bucketName - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - gcsl.Version = version - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gcsl.AdditionalProperties == nil { - gcsl.AdditionalProperties = make(map[string]interface{}) - } - gcsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - gcsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - gcsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gcsl.Type = typeVar - } - } - } - - return nil -} - -// GoogleCloudStorageReadSettings google Cloud Storage read settings. -type GoogleCloudStorageReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // Prefix - The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { - gcsrs.Type = TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings - objectMap := make(map[string]interface{}) - if gcsrs.Recursive != nil { - objectMap["recursive"] = gcsrs.Recursive - } - if gcsrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = gcsrs.WildcardFolderPath - } - if gcsrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = gcsrs.WildcardFileName - } - if gcsrs.Prefix != nil { - objectMap["prefix"] = gcsrs.Prefix - } - if gcsrs.FileListPath != nil { - objectMap["fileListPath"] = gcsrs.FileListPath - } - if gcsrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = gcsrs.EnablePartitionDiscovery - } - if gcsrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = gcsrs.PartitionRootPath - } - if gcsrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = gcsrs.DeleteFilesAfterCompletion - } - if gcsrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = gcsrs.ModifiedDatetimeStart - } - if gcsrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = gcsrs.ModifiedDatetimeEnd - } - if gcsrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = gcsrs.MaxConcurrentConnections - } - if gcsrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = gcsrs.DisableMetricsCollection - } - if gcsrs.Type != "" { - objectMap["type"] = gcsrs.Type - } - for k, v := range gcsrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return &gcsrs, true -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for GoogleCloudStorageReadSettings. -func (gcsrs GoogleCloudStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &gcsrs, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleCloudStorageReadSettings struct. -func (gcsrs *GoogleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - gcsrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - gcsrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - gcsrs.WildcardFileName = wildcardFileName - } - case "prefix": - if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) - if err != nil { - return err - } - gcsrs.Prefix = prefix - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - gcsrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - gcsrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - gcsrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - gcsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - gcsrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - gcsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gcsrs.AdditionalProperties == nil { - gcsrs.AdditionalProperties = make(map[string]interface{}) - } - gcsrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - gcsrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - gcsrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gcsrs.Type = typeVar - } - } - } - - return nil -} - -// GoogleSheetsLinkedService linked service for GoogleSheets. -type GoogleSheetsLinkedService struct { - // GoogleSheetsLinkedServiceTypeProperties - GoogleSheets linked service properties. - *GoogleSheetsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) MarshalJSON() ([]byte, error) { - gsls.Type = TypeBasicLinkedServiceTypeGoogleSheets - objectMap := make(map[string]interface{}) - if gsls.GoogleSheetsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gsls.GoogleSheetsLinkedServiceTypeProperties - } - if gsls.ConnectVia != nil { - objectMap["connectVia"] = gsls.ConnectVia - } - if gsls.Description != nil { - objectMap["description"] = gsls.Description - } - if gsls.Parameters != nil { - objectMap["parameters"] = gsls.Parameters - } - if gsls.Annotations != nil { - objectMap["annotations"] = gsls.Annotations - } - if gsls.Type != "" { - objectMap["type"] = gsls.Type - } - for k, v := range gsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return &gsls, true -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for GoogleSheetsLinkedService. -func (gsls GoogleSheetsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gsls, true -} - -// UnmarshalJSON is the custom unmarshaler for GoogleSheetsLinkedService struct. -func (gsls *GoogleSheetsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var googleSheetsLinkedServiceTypeProperties GoogleSheetsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &googleSheetsLinkedServiceTypeProperties) - if err != nil { - return err - } - gsls.GoogleSheetsLinkedServiceTypeProperties = &googleSheetsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gsls.AdditionalProperties == nil { - gsls.AdditionalProperties = make(map[string]interface{}) - } - gsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gsls.Type = typeVar - } - } - } - - return nil -} - -// GoogleSheetsLinkedServiceTypeProperties googleSheets linked service type properties. -type GoogleSheetsLinkedServiceTypeProperties struct { - // APIToken - The api token for the GoogleSheets source. - APIToken BasicSecretBase `json:"apiToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for GoogleSheetsLinkedServiceTypeProperties struct. -func (gslstp *GoogleSheetsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "apiToken": - if v != nil { - APIToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - gslstp.APIToken = APIToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - gslstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// GreenplumDatasetTypeProperties greenplum Dataset Properties -type GreenplumDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of Greenplum. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of Greenplum. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// GreenplumLinkedService greenplum Database linked service. -type GreenplumLinkedService struct { - // GreenplumLinkedServiceTypeProperties - Greenplum Database linked service properties. - *GreenplumLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GreenplumLinkedService. -func (gls GreenplumLinkedService) MarshalJSON() ([]byte, error) { - gls.Type = TypeBasicLinkedServiceTypeGreenplum - objectMap := make(map[string]interface{}) - if gls.GreenplumLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = gls.GreenplumLinkedServiceTypeProperties - } - if gls.ConnectVia != nil { - objectMap["connectVia"] = gls.ConnectVia - } - if gls.Description != nil { - objectMap["description"] = gls.Description - } - if gls.Parameters != nil { - objectMap["parameters"] = gls.Parameters - } - if gls.Annotations != nil { - objectMap["annotations"] = gls.Annotations - } - if gls.Type != "" { - objectMap["type"] = gls.Type - } - for k, v := range gls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return &gls, true -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for GreenplumLinkedService. -func (gls GreenplumLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &gls, true -} - -// UnmarshalJSON is the custom unmarshaler for GreenplumLinkedService struct. -func (gls *GreenplumLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var greenplumLinkedServiceTypeProperties GreenplumLinkedServiceTypeProperties - err = json.Unmarshal(*v, &greenplumLinkedServiceTypeProperties) - if err != nil { - return err - } - gls.GreenplumLinkedServiceTypeProperties = &greenplumLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gls.AdditionalProperties == nil { - gls.AdditionalProperties = make(map[string]interface{}) - } - gls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - gls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gls.Type = typeVar - } - } - } - - return nil -} - -// GreenplumLinkedServiceTypeProperties greenplum Database linked service properties. -type GreenplumLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Pwd - The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// GreenplumSource a copy activity Greenplum Database source. -type GreenplumSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GreenplumSource. -func (gs GreenplumSource) MarshalJSON() ([]byte, error) { - gs.Type = TypeBasicCopySourceTypeGreenplumSource - objectMap := make(map[string]interface{}) - if gs.Query != nil { - objectMap["query"] = gs.Query - } - if gs.QueryTimeout != nil { - objectMap["queryTimeout"] = gs.QueryTimeout - } - if gs.AdditionalColumns != nil { - objectMap["additionalColumns"] = gs.AdditionalColumns - } - if gs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = gs.SourceRetryCount - } - if gs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = gs.SourceRetryWait - } - if gs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = gs.MaxConcurrentConnections - } - if gs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = gs.DisableMetricsCollection - } - if gs.Type != "" { - objectMap["type"] = gs.Type - } - for k, v := range gs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsGreenplumSource() (*GreenplumSource, bool) { - return &gs, true -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &gs, true -} - -// AsBinarySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for GreenplumSource. -func (gs GreenplumSource) AsBasicCopySource() (BasicCopySource, bool) { - return &gs, true -} - -// UnmarshalJSON is the custom unmarshaler for GreenplumSource struct. -func (gs *GreenplumSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - gs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - gs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - gs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gs.AdditionalProperties == nil { - gs.AdditionalProperties = make(map[string]interface{}) - } - gs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - gs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - gs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - gs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - gs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gs.Type = typeVar - } - } - } - - return nil -} - -// GreenplumTableDataset greenplum Database dataset. -type GreenplumTableDataset struct { - // GreenplumDatasetTypeProperties - Properties specific to this dataset type. - *GreenplumDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for GreenplumTableDataset. -func (gtd GreenplumTableDataset) MarshalJSON() ([]byte, error) { - gtd.Type = TypeBasicDatasetTypeGreenplumTable - objectMap := make(map[string]interface{}) - if gtd.GreenplumDatasetTypeProperties != nil { - objectMap["typeProperties"] = gtd.GreenplumDatasetTypeProperties - } - if gtd.Description != nil { - objectMap["description"] = gtd.Description - } - if gtd.Structure != nil { - objectMap["structure"] = gtd.Structure - } - if gtd.Schema != nil { - objectMap["schema"] = gtd.Schema - } - if gtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = gtd.LinkedServiceName - } - if gtd.Parameters != nil { - objectMap["parameters"] = gtd.Parameters - } - if gtd.Annotations != nil { - objectMap["annotations"] = gtd.Annotations - } - if gtd.Folder != nil { - objectMap["folder"] = gtd.Folder - } - if gtd.Type != "" { - objectMap["type"] = gtd.Type - } - for k, v := range gtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return >d, true -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for GreenplumTableDataset. -func (gtd GreenplumTableDataset) AsBasicDataset() (BasicDataset, bool) { - return >d, true -} - -// UnmarshalJSON is the custom unmarshaler for GreenplumTableDataset struct. -func (gtd *GreenplumTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var greenplumDatasetTypeProperties GreenplumDatasetTypeProperties - err = json.Unmarshal(*v, &greenplumDatasetTypeProperties) - if err != nil { - return err - } - gtd.GreenplumDatasetTypeProperties = &greenplumDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if gtd.AdditionalProperties == nil { - gtd.AdditionalProperties = make(map[string]interface{}) - } - gtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - gtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - gtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - gtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - gtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - gtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - gtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - gtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - gtd.Type = typeVar - } - } - } - - return nil -} - -// HBaseLinkedService hBase server linked service. -type HBaseLinkedService struct { - // HBaseLinkedServiceTypeProperties - HBase server linked service properties. - *HBaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HBaseLinkedService. -func (hbls HBaseLinkedService) MarshalJSON() ([]byte, error) { - hbls.Type = TypeBasicLinkedServiceTypeHBase - objectMap := make(map[string]interface{}) - if hbls.HBaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hbls.HBaseLinkedServiceTypeProperties - } - if hbls.ConnectVia != nil { - objectMap["connectVia"] = hbls.ConnectVia - } - if hbls.Description != nil { - objectMap["description"] = hbls.Description - } - if hbls.Parameters != nil { - objectMap["parameters"] = hbls.Parameters - } - if hbls.Annotations != nil { - objectMap["annotations"] = hbls.Annotations - } - if hbls.Type != "" { - objectMap["type"] = hbls.Type - } - for k, v := range hbls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return &hbls, true -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for HBaseLinkedService. -func (hbls HBaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hbls, true -} - -// UnmarshalJSON is the custom unmarshaler for HBaseLinkedService struct. -func (hbls *HBaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hBaseLinkedServiceTypeProperties HBaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hBaseLinkedServiceTypeProperties) - if err != nil { - return err - } - hbls.HBaseLinkedServiceTypeProperties = &hBaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hbls.AdditionalProperties == nil { - hbls.AdditionalProperties = make(map[string]interface{}) - } - hbls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hbls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hbls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hbls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hbls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hbls.Type = typeVar - } - } - } - - return nil -} - -// HBaseLinkedServiceTypeProperties hBase server linked service properties. -type HBaseLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the HBase server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the HBase instance uses to listen for client connections. The default value is 9090. - Port interface{} `json:"port,omitempty"` - // HTTPPath - The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) - HTTPPath interface{} `json:"httpPath,omitempty"` - // AuthenticationType - The authentication mechanism to use to connect to the HBase server. Possible values include: 'HBaseAuthenticationTypeAnonymous', 'HBaseAuthenticationTypeBasic' - AuthenticationType HBaseAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the HBase instance. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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"` - // AllowHostNameCNMismatch - 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"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for HBaseLinkedServiceTypeProperties struct. -func (hblstp *HBaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - hblstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - hblstp.Port = port - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - hblstp.HTTPPath = HTTPPath - } - case "authenticationType": - if v != nil { - var authenticationType HBaseAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hblstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - hblstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hblstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - hblstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - hblstp.TrustedCertPath = trustedCertPath - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - hblstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - hblstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hblstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// HBaseObjectDataset hBase server dataset. -type HBaseObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HBaseObjectDataset. -func (hbod HBaseObjectDataset) MarshalJSON() ([]byte, error) { - hbod.Type = TypeBasicDatasetTypeHBaseObject - objectMap := make(map[string]interface{}) - if hbod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = hbod.GenericDatasetTypeProperties - } - if hbod.Description != nil { - objectMap["description"] = hbod.Description - } - if hbod.Structure != nil { - objectMap["structure"] = hbod.Structure - } - if hbod.Schema != nil { - objectMap["schema"] = hbod.Schema - } - if hbod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hbod.LinkedServiceName - } - if hbod.Parameters != nil { - objectMap["parameters"] = hbod.Parameters - } - if hbod.Annotations != nil { - objectMap["annotations"] = hbod.Annotations - } - if hbod.Folder != nil { - objectMap["folder"] = hbod.Folder - } - if hbod.Type != "" { - objectMap["type"] = hbod.Type - } - for k, v := range hbod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return &hbod, true -} - -// AsGreenplumTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for HBaseObjectDataset. -func (hbod HBaseObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &hbod, true -} - -// UnmarshalJSON is the custom unmarshaler for HBaseObjectDataset struct. -func (hbod *HBaseObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - hbod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hbod.AdditionalProperties == nil { - hbod.AdditionalProperties = make(map[string]interface{}) - } - hbod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hbod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - hbod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - hbod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hbod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hbod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hbod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - hbod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hbod.Type = typeVar - } - } - } - - return nil -} - -// HBaseSource a copy activity HBase server source. -type HBaseSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HBaseSource. -func (hbs HBaseSource) MarshalJSON() ([]byte, error) { - hbs.Type = TypeBasicCopySourceTypeHBaseSource - objectMap := make(map[string]interface{}) - if hbs.Query != nil { - objectMap["query"] = hbs.Query - } - if hbs.QueryTimeout != nil { - objectMap["queryTimeout"] = hbs.QueryTimeout - } - if hbs.AdditionalColumns != nil { - objectMap["additionalColumns"] = hbs.AdditionalColumns - } - if hbs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = hbs.SourceRetryCount - } - if hbs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = hbs.SourceRetryWait - } - if hbs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hbs.MaxConcurrentConnections - } - if hbs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = hbs.DisableMetricsCollection - } - if hbs.Type != "" { - objectMap["type"] = hbs.Type - } - for k, v := range hbs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsHBaseSource() (*HBaseSource, bool) { - return &hbs, true -} - -// AsGreenplumSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &hbs, true -} - -// AsBinarySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for HBaseSource. -func (hbs HBaseSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hbs, true -} - -// UnmarshalJSON is the custom unmarshaler for HBaseSource struct. -func (hbs *HBaseSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - hbs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - hbs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - hbs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hbs.AdditionalProperties == nil { - hbs.AdditionalProperties = make(map[string]interface{}) - } - hbs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - hbs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - hbs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - hbs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - hbs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hbs.Type = typeVar - } - } - } - - return nil -} - -// HDInsightHiveActivity hDInsight Hive activity type. -type HDInsightHiveActivity struct { - // HDInsightHiveActivityTypeProperties - HDInsight Hive activity properties. - *HDInsightHiveActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) MarshalJSON() ([]byte, error) { - hiha.Type = TypeBasicActivityTypeHDInsightHive - objectMap := make(map[string]interface{}) - if hiha.HDInsightHiveActivityTypeProperties != nil { - objectMap["typeProperties"] = hiha.HDInsightHiveActivityTypeProperties - } - if hiha.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hiha.LinkedServiceName - } - if hiha.Policy != nil { - objectMap["policy"] = hiha.Policy - } - if hiha.Name != nil { - objectMap["name"] = hiha.Name - } - if hiha.Description != nil { - objectMap["description"] = hiha.Description - } - if hiha.State != "" { - objectMap["state"] = hiha.State - } - if hiha.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = hiha.OnInactiveMarkAs - } - if hiha.DependsOn != nil { - objectMap["dependsOn"] = hiha.DependsOn - } - if hiha.UserProperties != nil { - objectMap["userProperties"] = hiha.UserProperties - } - if hiha.Type != "" { - objectMap["type"] = hiha.Type - } - for k, v := range hiha.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return &hiha, true -} - -// AsCopyActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &hiha, true -} - -// AsWebHookActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for HDInsightHiveActivity. -func (hiha HDInsightHiveActivity) AsBasicActivity() (BasicActivity, bool) { - return &hiha, true -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightHiveActivity struct. -func (hiha *HDInsightHiveActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightHiveActivityTypeProperties HDInsightHiveActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightHiveActivityTypeProperties) - if err != nil { - return err - } - hiha.HDInsightHiveActivityTypeProperties = &hDInsightHiveActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hiha.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - hiha.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hiha.AdditionalProperties == nil { - hiha.AdditionalProperties = make(map[string]interface{}) - } - hiha.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - hiha.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hiha.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - hiha.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - hiha.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - hiha.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - hiha.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hiha.Type = typeVar - } - } - } - - return nil -} - -// HDInsightHiveActivityTypeProperties hDInsight Hive activity properties. -type HDInsightHiveActivityTypeProperties struct { - // StorageLinkedServices - Storage linked service references. - StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` - // Arguments - User specified arguments to HDInsightActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // ScriptPath - Script path. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` - // ScriptLinkedService - Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` - // Defines - Allows user to specify defines for Hive job request. - Defines map[string]interface{} `json:"defines"` - // Variables - User specified arguments under hivevar namespace. - Variables map[string]interface{} `json:"variables"` - // QueryTimeout - Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package) - QueryTimeout *int32 `json:"queryTimeout,omitempty"` -} - -// MarshalJSON is the custom marshaler for HDInsightHiveActivityTypeProperties. -func (hihatp HDInsightHiveActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if hihatp.StorageLinkedServices != nil { - objectMap["storageLinkedServices"] = hihatp.StorageLinkedServices - } - if hihatp.Arguments != nil { - objectMap["arguments"] = hihatp.Arguments - } - if hihatp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = hihatp.GetDebugInfo - } - if hihatp.ScriptPath != nil { - objectMap["scriptPath"] = hihatp.ScriptPath - } - if hihatp.ScriptLinkedService != nil { - objectMap["scriptLinkedService"] = hihatp.ScriptLinkedService - } - if hihatp.Defines != nil { - objectMap["defines"] = hihatp.Defines - } - if hihatp.Variables != nil { - objectMap["variables"] = hihatp.Variables - } - if hihatp.QueryTimeout != nil { - objectMap["queryTimeout"] = hihatp.QueryTimeout - } - return json.Marshal(objectMap) -} - -// HDInsightLinkedService hDInsight linked service. -type HDInsightLinkedService struct { - // HDInsightLinkedServiceTypeProperties - HDInsight linked service properties. - *HDInsightLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HDInsightLinkedService. -func (hils HDInsightLinkedService) MarshalJSON() ([]byte, error) { - hils.Type = TypeBasicLinkedServiceTypeHDInsight - objectMap := make(map[string]interface{}) - if hils.HDInsightLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hils.HDInsightLinkedServiceTypeProperties - } - if hils.ConnectVia != nil { - objectMap["connectVia"] = hils.ConnectVia - } - if hils.Description != nil { - objectMap["description"] = hils.Description - } - if hils.Parameters != nil { - objectMap["parameters"] = hils.Parameters - } - if hils.Annotations != nil { - objectMap["annotations"] = hils.Annotations - } - if hils.Type != "" { - objectMap["type"] = hils.Type - } - for k, v := range hils.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return &hils, true -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for HDInsightLinkedService. -func (hils HDInsightLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hils, true -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightLinkedService struct. -func (hils *HDInsightLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightLinkedServiceTypeProperties HDInsightLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hDInsightLinkedServiceTypeProperties) - if err != nil { - return err - } - hils.HDInsightLinkedServiceTypeProperties = &hDInsightLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hils.AdditionalProperties == nil { - hils.AdditionalProperties = make(map[string]interface{}) - } - hils.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hils.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hils.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hils.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hils.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hils.Type = typeVar - } - } - } - - return nil -} - -// HDInsightLinkedServiceTypeProperties hDInsight linked service properties. -type HDInsightLinkedServiceTypeProperties struct { - // ClusterURI - HDInsight cluster URI. Type: string (or Expression with resultType string). - ClusterURI interface{} `json:"clusterUri,omitempty"` - // UserName - HDInsight cluster user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - HDInsight cluster password. - Password BasicSecretBase `json:"password,omitempty"` - // LinkedServiceName - The Azure Storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // HcatalogLinkedServiceName - A reference to the Azure SQL linked service that points to the HCatalog database. - HcatalogLinkedServiceName *LinkedServiceReference `json:"hcatalogLinkedServiceName,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // IsEspEnabled - Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. - IsEspEnabled interface{} `json:"isEspEnabled,omitempty"` - // FileSystem - 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"` -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightLinkedServiceTypeProperties struct. -func (hilstp *HDInsightLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clusterUri": - if v != nil { - var clusterURI interface{} - err = json.Unmarshal(*v, &clusterURI) - if err != nil { - return err - } - hilstp.ClusterURI = clusterURI - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - hilstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hilstp.Password = password - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hilstp.LinkedServiceName = &linkedServiceName - } - case "hcatalogLinkedServiceName": - if v != nil { - var hcatalogLinkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &hcatalogLinkedServiceName) - if err != nil { - return err - } - hilstp.HcatalogLinkedServiceName = &hcatalogLinkedServiceName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hilstp.EncryptedCredential = &encryptedCredential - } - case "isEspEnabled": - if v != nil { - var isEspEnabled interface{} - err = json.Unmarshal(*v, &isEspEnabled) - if err != nil { - return err - } - hilstp.IsEspEnabled = isEspEnabled - } - case "fileSystem": - if v != nil { - var fileSystem interface{} - err = json.Unmarshal(*v, &fileSystem) - if err != nil { - return err - } - hilstp.FileSystem = fileSystem - } - } - } - - return nil -} - -// HDInsightMapReduceActivity hDInsight MapReduce activity type. -type HDInsightMapReduceActivity struct { - // HDInsightMapReduceActivityTypeProperties - HDInsight MapReduce activity properties. - *HDInsightMapReduceActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) MarshalJSON() ([]byte, error) { - himra.Type = TypeBasicActivityTypeHDInsightMapReduce - objectMap := make(map[string]interface{}) - if himra.HDInsightMapReduceActivityTypeProperties != nil { - objectMap["typeProperties"] = himra.HDInsightMapReduceActivityTypeProperties - } - if himra.LinkedServiceName != nil { - objectMap["linkedServiceName"] = himra.LinkedServiceName - } - if himra.Policy != nil { - objectMap["policy"] = himra.Policy - } - if himra.Name != nil { - objectMap["name"] = himra.Name - } - if himra.Description != nil { - objectMap["description"] = himra.Description - } - if himra.State != "" { - objectMap["state"] = himra.State - } - if himra.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = himra.OnInactiveMarkAs - } - if himra.DependsOn != nil { - objectMap["dependsOn"] = himra.DependsOn - } - if himra.UserProperties != nil { - objectMap["userProperties"] = himra.UserProperties - } - if himra.Type != "" { - objectMap["type"] = himra.Type - } - for k, v := range himra.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return &himra, true -} - -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &himra, true -} - -// AsWebHookActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for HDInsightMapReduceActivity. -func (himra HDInsightMapReduceActivity) AsBasicActivity() (BasicActivity, bool) { - return &himra, true -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightMapReduceActivity struct. -func (himra *HDInsightMapReduceActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightMapReduceActivityTypeProperties HDInsightMapReduceActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightMapReduceActivityTypeProperties) - if err != nil { - return err - } - himra.HDInsightMapReduceActivityTypeProperties = &hDInsightMapReduceActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - himra.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - himra.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if himra.AdditionalProperties == nil { - himra.AdditionalProperties = make(map[string]interface{}) - } - himra.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - himra.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - himra.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - himra.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - himra.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - himra.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - himra.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - himra.Type = typeVar - } - } - } - - return nil -} - -// HDInsightMapReduceActivityTypeProperties hDInsight MapReduce activity properties. -type HDInsightMapReduceActivityTypeProperties struct { - // StorageLinkedServices - Storage linked service references. - StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` - // Arguments - User specified arguments to HDInsightActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // ClassName - Class name. Type: string (or Expression with resultType string). - ClassName interface{} `json:"className,omitempty"` - // JarFilePath - Jar path. Type: string (or Expression with resultType string). - JarFilePath interface{} `json:"jarFilePath,omitempty"` - // JarLinkedService - Jar linked service reference. - JarLinkedService *LinkedServiceReference `json:"jarLinkedService,omitempty"` - // JarLibs - Jar libs. - JarLibs *[]interface{} `json:"jarLibs,omitempty"` - // Defines - Allows user to specify defines for the MapReduce job request. - Defines map[string]interface{} `json:"defines"` -} - -// MarshalJSON is the custom marshaler for HDInsightMapReduceActivityTypeProperties. -func (himratp HDInsightMapReduceActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if himratp.StorageLinkedServices != nil { - objectMap["storageLinkedServices"] = himratp.StorageLinkedServices - } - if himratp.Arguments != nil { - objectMap["arguments"] = himratp.Arguments - } - if himratp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = himratp.GetDebugInfo - } - if himratp.ClassName != nil { - objectMap["className"] = himratp.ClassName - } - if himratp.JarFilePath != nil { - objectMap["jarFilePath"] = himratp.JarFilePath - } - if himratp.JarLinkedService != nil { - objectMap["jarLinkedService"] = himratp.JarLinkedService - } - if himratp.JarLibs != nil { - objectMap["jarLibs"] = himratp.JarLibs - } - if himratp.Defines != nil { - objectMap["defines"] = himratp.Defines - } - return json.Marshal(objectMap) -} - -// HDInsightOnDemandLinkedService hDInsight ondemand linked service. -type HDInsightOnDemandLinkedService struct { - // HDInsightOnDemandLinkedServiceTypeProperties - HDInsight ondemand linked service properties. - *HDInsightOnDemandLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) MarshalJSON() ([]byte, error) { - hiodls.Type = TypeBasicLinkedServiceTypeHDInsightOnDemand - objectMap := make(map[string]interface{}) - if hiodls.HDInsightOnDemandLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hiodls.HDInsightOnDemandLinkedServiceTypeProperties - } - if hiodls.ConnectVia != nil { - objectMap["connectVia"] = hiodls.ConnectVia - } - if hiodls.Description != nil { - objectMap["description"] = hiodls.Description - } - if hiodls.Parameters != nil { - objectMap["parameters"] = hiodls.Parameters - } - if hiodls.Annotations != nil { - objectMap["annotations"] = hiodls.Annotations - } - if hiodls.Type != "" { - objectMap["type"] = hiodls.Type - } - for k, v := range hiodls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return &hiodls, true -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for HDInsightOnDemandLinkedService. -func (hiodls HDInsightOnDemandLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hiodls, true -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightOnDemandLinkedService struct. -func (hiodls *HDInsightOnDemandLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightOnDemandLinkedServiceTypeProperties HDInsightOnDemandLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hDInsightOnDemandLinkedServiceTypeProperties) - if err != nil { - return err - } - hiodls.HDInsightOnDemandLinkedServiceTypeProperties = &hDInsightOnDemandLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hiodls.AdditionalProperties == nil { - hiodls.AdditionalProperties = make(map[string]interface{}) - } - hiodls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hiodls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hiodls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hiodls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hiodls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hiodls.Type = typeVar - } - } - } - - return nil -} - -// HDInsightOnDemandLinkedServiceTypeProperties hDInsight ondemand linked service properties. -type HDInsightOnDemandLinkedServiceTypeProperties struct { - // ClusterSize - Number of worker/data nodes in the cluster. Suggestion value: 4. Type: int (or Expression with resultType int). - ClusterSize interface{} `json:"clusterSize,omitempty"` - // TimeToLive - 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"` - // Version - Version of the HDInsight cluster.  Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // LinkedServiceName - Azure Storage linked service to be used by the on-demand cluster for storing and processing data. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // HostSubscriptionID - The customer’s subscription to host the cluster. Type: string (or Expression with resultType string). - HostSubscriptionID interface{} `json:"hostSubscriptionId,omitempty"` - // ServicePrincipalID - The service principal id for the hostSubscriptionId. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key for the service principal id. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The Tenant id/name to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // ClusterResourceGroup - The resource group where the cluster belongs. Type: string (or Expression with resultType string). - ClusterResourceGroup interface{} `json:"clusterResourceGroup,omitempty"` - // ClusterNamePrefix - The prefix of cluster name, postfix will be distinct with timestamp. Type: string (or Expression with resultType string). - ClusterNamePrefix interface{} `json:"clusterNamePrefix,omitempty"` - // ClusterUserName - The username to access the cluster. Type: string (or Expression with resultType string). - ClusterUserName interface{} `json:"clusterUserName,omitempty"` - // ClusterPassword - The password to access the cluster. - ClusterPassword BasicSecretBase `json:"clusterPassword,omitempty"` - // ClusterSSHUserName - The username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression with resultType string). - ClusterSSHUserName interface{} `json:"clusterSshUserName,omitempty"` - // ClusterSSHPassword - The password to SSH remotely connect cluster’s node (for Linux). - ClusterSSHPassword BasicSecretBase `json:"clusterSshPassword,omitempty"` - // AdditionalLinkedServiceNames - 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"` - // HcatalogLinkedServiceName - 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"` - // ClusterType - The cluster type. Type: string (or Expression with resultType string). - ClusterType interface{} `json:"clusterType,omitempty"` - // SparkVersion - The version of spark if the cluster type is 'spark'. Type: string (or Expression with resultType string). - SparkVersion interface{} `json:"sparkVersion,omitempty"` - // CoreConfiguration - Specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to be created. - CoreConfiguration interface{} `json:"coreConfiguration,omitempty"` - // HBaseConfiguration - Specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. - HBaseConfiguration interface{} `json:"hBaseConfiguration,omitempty"` - // HdfsConfiguration - Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster. - HdfsConfiguration interface{} `json:"hdfsConfiguration,omitempty"` - // HiveConfiguration - Specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster. - HiveConfiguration interface{} `json:"hiveConfiguration,omitempty"` - // MapReduceConfiguration - Specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster. - MapReduceConfiguration interface{} `json:"mapReduceConfiguration,omitempty"` - // OozieConfiguration - Specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster. - OozieConfiguration interface{} `json:"oozieConfiguration,omitempty"` - // StormConfiguration - Specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster. - StormConfiguration interface{} `json:"stormConfiguration,omitempty"` - // YarnConfiguration - Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster. - YarnConfiguration interface{} `json:"yarnConfiguration,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // HeadNodeSize - Specifies the size of the head node for the HDInsight cluster. - HeadNodeSize interface{} `json:"headNodeSize,omitempty"` - // DataNodeSize - Specifies the size of the data node for the HDInsight cluster. - DataNodeSize interface{} `json:"dataNodeSize,omitempty"` - // ZookeeperNodeSize - Specifies the size of the Zoo Keeper node for the HDInsight cluster. - ZookeeperNodeSize interface{} `json:"zookeeperNodeSize,omitempty"` - // ScriptActions - 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"` - // VirtualNetworkID - 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"` - // SubnetName - 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"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightOnDemandLinkedServiceTypeProperties struct. -func (hiodlstp *HDInsightOnDemandLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clusterSize": - if v != nil { - var clusterSize interface{} - err = json.Unmarshal(*v, &clusterSize) - if err != nil { - return err - } - hiodlstp.ClusterSize = clusterSize - } - case "timeToLive": - if v != nil { - var timeToLive interface{} - err = json.Unmarshal(*v, &timeToLive) - if err != nil { - return err - } - hiodlstp.TimeToLive = timeToLive - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - hiodlstp.Version = version - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hiodlstp.LinkedServiceName = &linkedServiceName - } - case "hostSubscriptionId": - if v != nil { - var hostSubscriptionID interface{} - err = json.Unmarshal(*v, &hostSubscriptionID) - if err != nil { - return err - } - hiodlstp.HostSubscriptionID = hostSubscriptionID - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - hiodlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hiodlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - hiodlstp.Tenant = tenant - } - case "clusterResourceGroup": - if v != nil { - var clusterResourceGroup interface{} - err = json.Unmarshal(*v, &clusterResourceGroup) - if err != nil { - return err - } - hiodlstp.ClusterResourceGroup = clusterResourceGroup - } - case "clusterNamePrefix": - if v != nil { - var clusterNamePrefix interface{} - err = json.Unmarshal(*v, &clusterNamePrefix) - if err != nil { - return err - } - hiodlstp.ClusterNamePrefix = clusterNamePrefix - } - case "clusterUserName": - if v != nil { - var clusterUserName interface{} - err = json.Unmarshal(*v, &clusterUserName) - if err != nil { - return err - } - hiodlstp.ClusterUserName = clusterUserName - } - case "clusterPassword": - if v != nil { - clusterPassword, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hiodlstp.ClusterPassword = clusterPassword - } - case "clusterSshUserName": - if v != nil { - var clusterSSHUserName interface{} - err = json.Unmarshal(*v, &clusterSSHUserName) - if err != nil { - return err - } - hiodlstp.ClusterSSHUserName = clusterSSHUserName - } - case "clusterSshPassword": - if v != nil { - clusterSSHPassword, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hiodlstp.ClusterSSHPassword = clusterSSHPassword - } - case "additionalLinkedServiceNames": - if v != nil { - var additionalLinkedServiceNames []LinkedServiceReference - err = json.Unmarshal(*v, &additionalLinkedServiceNames) - if err != nil { - return err - } - hiodlstp.AdditionalLinkedServiceNames = &additionalLinkedServiceNames - } - case "hcatalogLinkedServiceName": - if v != nil { - var hcatalogLinkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &hcatalogLinkedServiceName) - if err != nil { - return err - } - hiodlstp.HcatalogLinkedServiceName = &hcatalogLinkedServiceName - } - case "clusterType": - if v != nil { - var clusterType interface{} - err = json.Unmarshal(*v, &clusterType) - if err != nil { - return err - } - hiodlstp.ClusterType = clusterType - } - case "sparkVersion": - if v != nil { - var sparkVersion interface{} - err = json.Unmarshal(*v, &sparkVersion) - if err != nil { - return err - } - hiodlstp.SparkVersion = sparkVersion - } - case "coreConfiguration": - if v != nil { - var coreConfiguration interface{} - err = json.Unmarshal(*v, &coreConfiguration) - if err != nil { - return err - } - hiodlstp.CoreConfiguration = coreConfiguration - } - case "hBaseConfiguration": - if v != nil { - var hBaseConfiguration interface{} - err = json.Unmarshal(*v, &hBaseConfiguration) - if err != nil { - return err - } - hiodlstp.HBaseConfiguration = hBaseConfiguration - } - case "hdfsConfiguration": - if v != nil { - var hdfsConfiguration interface{} - err = json.Unmarshal(*v, &hdfsConfiguration) - if err != nil { - return err - } - hiodlstp.HdfsConfiguration = hdfsConfiguration - } - case "hiveConfiguration": - if v != nil { - var hiveConfiguration interface{} - err = json.Unmarshal(*v, &hiveConfiguration) - if err != nil { - return err - } - hiodlstp.HiveConfiguration = hiveConfiguration - } - case "mapReduceConfiguration": - if v != nil { - var mapReduceConfiguration interface{} - err = json.Unmarshal(*v, &mapReduceConfiguration) - if err != nil { - return err - } - hiodlstp.MapReduceConfiguration = mapReduceConfiguration - } - case "oozieConfiguration": - if v != nil { - var oozieConfiguration interface{} - err = json.Unmarshal(*v, &oozieConfiguration) - if err != nil { - return err - } - hiodlstp.OozieConfiguration = oozieConfiguration - } - case "stormConfiguration": - if v != nil { - var stormConfiguration interface{} - err = json.Unmarshal(*v, &stormConfiguration) - if err != nil { - return err - } - hiodlstp.StormConfiguration = stormConfiguration - } - case "yarnConfiguration": - if v != nil { - var yarnConfiguration interface{} - err = json.Unmarshal(*v, &yarnConfiguration) - if err != nil { - return err - } - hiodlstp.YarnConfiguration = yarnConfiguration - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hiodlstp.EncryptedCredential = &encryptedCredential - } - case "headNodeSize": - if v != nil { - var headNodeSize interface{} - err = json.Unmarshal(*v, &headNodeSize) - if err != nil { - return err - } - hiodlstp.HeadNodeSize = headNodeSize - } - case "dataNodeSize": - if v != nil { - var dataNodeSize interface{} - err = json.Unmarshal(*v, &dataNodeSize) - if err != nil { - return err - } - hiodlstp.DataNodeSize = dataNodeSize - } - case "zookeeperNodeSize": - if v != nil { - var zookeeperNodeSize interface{} - err = json.Unmarshal(*v, &zookeeperNodeSize) - if err != nil { - return err - } - hiodlstp.ZookeeperNodeSize = zookeeperNodeSize - } - case "scriptActions": - if v != nil { - var scriptActions []ScriptAction - err = json.Unmarshal(*v, &scriptActions) - if err != nil { - return err - } - hiodlstp.ScriptActions = &scriptActions - } - case "virtualNetworkId": - if v != nil { - var virtualNetworkID interface{} - err = json.Unmarshal(*v, &virtualNetworkID) - if err != nil { - return err - } - hiodlstp.VirtualNetworkID = virtualNetworkID - } - case "subnetName": - if v != nil { - var subnetName interface{} - err = json.Unmarshal(*v, &subnetName) - if err != nil { - return err - } - hiodlstp.SubnetName = subnetName - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - hiodlstp.Credential = &credential - } - } - } - - return nil -} - -// HDInsightPigActivity hDInsight Pig activity type. -type HDInsightPigActivity struct { - // HDInsightPigActivityTypeProperties - HDInsight Pig activity properties. - *HDInsightPigActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HDInsightPigActivity. -func (hipa HDInsightPigActivity) MarshalJSON() ([]byte, error) { - hipa.Type = TypeBasicActivityTypeHDInsightPig - objectMap := make(map[string]interface{}) - if hipa.HDInsightPigActivityTypeProperties != nil { - objectMap["typeProperties"] = hipa.HDInsightPigActivityTypeProperties - } - if hipa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hipa.LinkedServiceName - } - if hipa.Policy != nil { - objectMap["policy"] = hipa.Policy - } - if hipa.Name != nil { - objectMap["name"] = hipa.Name - } - if hipa.Description != nil { - objectMap["description"] = hipa.Description - } - if hipa.State != "" { - objectMap["state"] = hipa.State - } - if hipa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = hipa.OnInactiveMarkAs - } - if hipa.DependsOn != nil { - objectMap["dependsOn"] = hipa.DependsOn - } - if hipa.UserProperties != nil { - objectMap["userProperties"] = hipa.UserProperties - } - if hipa.Type != "" { - objectMap["type"] = hipa.Type - } - for k, v := range hipa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return &hipa, true -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &hipa, true -} - -// AsWebHookActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for HDInsightPigActivity. -func (hipa HDInsightPigActivity) AsBasicActivity() (BasicActivity, bool) { - return &hipa, true -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightPigActivity struct. -func (hipa *HDInsightPigActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightPigActivityTypeProperties HDInsightPigActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightPigActivityTypeProperties) - if err != nil { - return err - } - hipa.HDInsightPigActivityTypeProperties = &hDInsightPigActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hipa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - hipa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hipa.AdditionalProperties == nil { - hipa.AdditionalProperties = make(map[string]interface{}) - } - hipa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - hipa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hipa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - hipa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - hipa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - hipa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - hipa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hipa.Type = typeVar - } - } - } - - return nil -} - -// HDInsightPigActivityTypeProperties hDInsight Pig activity properties. -type HDInsightPigActivityTypeProperties struct { - // StorageLinkedServices - Storage linked service references. - StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` - // Arguments - User specified arguments to HDInsightActivity. Type: array (or Expression with resultType array). - Arguments interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // ScriptPath - Script path. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` - // ScriptLinkedService - Script linked service reference. - ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` - // Defines - Allows user to specify defines for Pig job request. - Defines map[string]interface{} `json:"defines"` -} - -// MarshalJSON is the custom marshaler for HDInsightPigActivityTypeProperties. -func (hipatp HDInsightPigActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if hipatp.StorageLinkedServices != nil { - objectMap["storageLinkedServices"] = hipatp.StorageLinkedServices - } - if hipatp.Arguments != nil { - objectMap["arguments"] = hipatp.Arguments - } - if hipatp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = hipatp.GetDebugInfo - } - if hipatp.ScriptPath != nil { - objectMap["scriptPath"] = hipatp.ScriptPath - } - if hipatp.ScriptLinkedService != nil { - objectMap["scriptLinkedService"] = hipatp.ScriptLinkedService - } - if hipatp.Defines != nil { - objectMap["defines"] = hipatp.Defines - } - return json.Marshal(objectMap) -} - -// HDInsightSparkActivity hDInsight Spark activity. -type HDInsightSparkActivity struct { - // HDInsightSparkActivityTypeProperties - HDInsight spark activity properties. - *HDInsightSparkActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) MarshalJSON() ([]byte, error) { - hisa.Type = TypeBasicActivityTypeHDInsightSpark - objectMap := make(map[string]interface{}) - if hisa.HDInsightSparkActivityTypeProperties != nil { - objectMap["typeProperties"] = hisa.HDInsightSparkActivityTypeProperties - } - if hisa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hisa.LinkedServiceName - } - if hisa.Policy != nil { - objectMap["policy"] = hisa.Policy - } - if hisa.Name != nil { - objectMap["name"] = hisa.Name - } - if hisa.Description != nil { - objectMap["description"] = hisa.Description - } - if hisa.State != "" { - objectMap["state"] = hisa.State - } - if hisa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = hisa.OnInactiveMarkAs - } - if hisa.DependsOn != nil { - objectMap["dependsOn"] = hisa.DependsOn - } - if hisa.UserProperties != nil { - objectMap["userProperties"] = hisa.UserProperties - } - if hisa.Type != "" { - objectMap["type"] = hisa.Type - } - for k, v := range hisa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return &hisa, true -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &hisa, true -} - -// AsWebHookActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for HDInsightSparkActivity. -func (hisa HDInsightSparkActivity) AsBasicActivity() (BasicActivity, bool) { - return &hisa, true -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightSparkActivity struct. -func (hisa *HDInsightSparkActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightSparkActivityTypeProperties HDInsightSparkActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightSparkActivityTypeProperties) - if err != nil { - return err - } - hisa.HDInsightSparkActivityTypeProperties = &hDInsightSparkActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hisa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - hisa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hisa.AdditionalProperties == nil { - hisa.AdditionalProperties = make(map[string]interface{}) - } - hisa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - hisa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hisa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - hisa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - hisa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - hisa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - hisa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hisa.Type = typeVar - } - } - } - - return nil -} - -// HDInsightSparkActivityTypeProperties hDInsight spark activity properties. -type HDInsightSparkActivityTypeProperties struct { - // RootPath - The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression with resultType string). - RootPath interface{} `json:"rootPath,omitempty"` - // EntryFilePath - 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"` - // Arguments - The user-specified arguments to HDInsightSparkActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // SparkJobLinkedService - The storage linked service for uploading the entry file and dependencies, and for receiving logs. - SparkJobLinkedService *LinkedServiceReference `json:"sparkJobLinkedService,omitempty"` - // ClassName - The application's Java/Spark main class. - ClassName *string `json:"className,omitempty"` - // ProxyUser - The user to impersonate that will execute the job. Type: string (or Expression with resultType string). - ProxyUser interface{} `json:"proxyUser,omitempty"` - // SparkConfig - Spark configuration property. - SparkConfig map[string]interface{} `json:"sparkConfig"` -} - -// MarshalJSON is the custom marshaler for HDInsightSparkActivityTypeProperties. -func (hisatp HDInsightSparkActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if hisatp.RootPath != nil { - objectMap["rootPath"] = hisatp.RootPath - } - if hisatp.EntryFilePath != nil { - objectMap["entryFilePath"] = hisatp.EntryFilePath - } - if hisatp.Arguments != nil { - objectMap["arguments"] = hisatp.Arguments - } - if hisatp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = hisatp.GetDebugInfo - } - if hisatp.SparkJobLinkedService != nil { - objectMap["sparkJobLinkedService"] = hisatp.SparkJobLinkedService - } - if hisatp.ClassName != nil { - objectMap["className"] = hisatp.ClassName - } - if hisatp.ProxyUser != nil { - objectMap["proxyUser"] = hisatp.ProxyUser - } - if hisatp.SparkConfig != nil { - objectMap["sparkConfig"] = hisatp.SparkConfig - } - return json.Marshal(objectMap) -} - -// HDInsightStreamingActivity hDInsight streaming activity type. -type HDInsightStreamingActivity struct { - // HDInsightStreamingActivityTypeProperties - HDInsight streaming activity properties. - *HDInsightStreamingActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) MarshalJSON() ([]byte, error) { - hisa.Type = TypeBasicActivityTypeHDInsightStreaming - objectMap := make(map[string]interface{}) - if hisa.HDInsightStreamingActivityTypeProperties != nil { - objectMap["typeProperties"] = hisa.HDInsightStreamingActivityTypeProperties - } - if hisa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hisa.LinkedServiceName - } - if hisa.Policy != nil { - objectMap["policy"] = hisa.Policy - } - if hisa.Name != nil { - objectMap["name"] = hisa.Name - } - if hisa.Description != nil { - objectMap["description"] = hisa.Description - } - if hisa.State != "" { - objectMap["state"] = hisa.State - } - if hisa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = hisa.OnInactiveMarkAs - } - if hisa.DependsOn != nil { - objectMap["dependsOn"] = hisa.DependsOn - } - if hisa.UserProperties != nil { - objectMap["userProperties"] = hisa.UserProperties - } - if hisa.Type != "" { - objectMap["type"] = hisa.Type - } - for k, v := range hisa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return &hisa, true -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &hisa, true -} - -// AsWebHookActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for HDInsightStreamingActivity. -func (hisa HDInsightStreamingActivity) AsBasicActivity() (BasicActivity, bool) { - return &hisa, true -} - -// UnmarshalJSON is the custom unmarshaler for HDInsightStreamingActivity struct. -func (hisa *HDInsightStreamingActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hDInsightStreamingActivityTypeProperties HDInsightStreamingActivityTypeProperties - err = json.Unmarshal(*v, &hDInsightStreamingActivityTypeProperties) - if err != nil { - return err - } - hisa.HDInsightStreamingActivityTypeProperties = &hDInsightStreamingActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hisa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - hisa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hisa.AdditionalProperties == nil { - hisa.AdditionalProperties = make(map[string]interface{}) - } - hisa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - hisa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hisa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - hisa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - hisa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - hisa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - hisa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hisa.Type = typeVar - } - } - } - - return nil -} - -// HDInsightStreamingActivityTypeProperties hDInsight streaming activity properties. -type HDInsightStreamingActivityTypeProperties struct { - // StorageLinkedServices - Storage linked service references. - StorageLinkedServices *[]LinkedServiceReference `json:"storageLinkedServices,omitempty"` - // Arguments - User specified arguments to HDInsightActivity. - Arguments *[]interface{} `json:"arguments,omitempty"` - // GetDebugInfo - Debug info option. Possible values include: 'HDInsightActivityDebugInfoOptionNone', 'HDInsightActivityDebugInfoOptionAlways', 'HDInsightActivityDebugInfoOptionFailure' - GetDebugInfo HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` - // Mapper - Mapper executable name. Type: string (or Expression with resultType string). - Mapper interface{} `json:"mapper,omitempty"` - // Reducer - Reducer executable name. Type: string (or Expression with resultType string). - Reducer interface{} `json:"reducer,omitempty"` - // Input - Input blob path. Type: string (or Expression with resultType string). - Input interface{} `json:"input,omitempty"` - // Output - Output blob path. Type: string (or Expression with resultType string). - Output interface{} `json:"output,omitempty"` - // FilePaths - Paths to streaming job files. Can be directories. - FilePaths *[]interface{} `json:"filePaths,omitempty"` - // FileLinkedService - Linked service reference where the files are located. - FileLinkedService *LinkedServiceReference `json:"fileLinkedService,omitempty"` - // Combiner - Combiner executable name. Type: string (or Expression with resultType string). - Combiner interface{} `json:"combiner,omitempty"` - // CommandEnvironment - Command line environment values. - CommandEnvironment *[]interface{} `json:"commandEnvironment,omitempty"` - // Defines - Allows user to specify defines for streaming job request. - Defines map[string]interface{} `json:"defines"` -} - -// MarshalJSON is the custom marshaler for HDInsightStreamingActivityTypeProperties. -func (hisatp HDInsightStreamingActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if hisatp.StorageLinkedServices != nil { - objectMap["storageLinkedServices"] = hisatp.StorageLinkedServices - } - if hisatp.Arguments != nil { - objectMap["arguments"] = hisatp.Arguments - } - if hisatp.GetDebugInfo != "" { - objectMap["getDebugInfo"] = hisatp.GetDebugInfo - } - if hisatp.Mapper != nil { - objectMap["mapper"] = hisatp.Mapper - } - if hisatp.Reducer != nil { - objectMap["reducer"] = hisatp.Reducer - } - if hisatp.Input != nil { - objectMap["input"] = hisatp.Input - } - if hisatp.Output != nil { - objectMap["output"] = hisatp.Output - } - if hisatp.FilePaths != nil { - objectMap["filePaths"] = hisatp.FilePaths - } - if hisatp.FileLinkedService != nil { - objectMap["fileLinkedService"] = hisatp.FileLinkedService - } - if hisatp.Combiner != nil { - objectMap["combiner"] = hisatp.Combiner - } - if hisatp.CommandEnvironment != nil { - objectMap["commandEnvironment"] = hisatp.CommandEnvironment - } - if hisatp.Defines != nil { - objectMap["defines"] = hisatp.Defines - } - return json.Marshal(objectMap) -} - -// HTTPDataset a file in an HTTP web server. -type HTTPDataset struct { - // HTTPDatasetTypeProperties - Properties specific to this dataset type. - *HTTPDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HTTPDataset. -func (hd HTTPDataset) MarshalJSON() ([]byte, error) { - hd.Type = TypeBasicDatasetTypeHTTPFile - objectMap := make(map[string]interface{}) - if hd.HTTPDatasetTypeProperties != nil { - objectMap["typeProperties"] = hd.HTTPDatasetTypeProperties - } - if hd.Description != nil { - objectMap["description"] = hd.Description - } - if hd.Structure != nil { - objectMap["structure"] = hd.Structure - } - if hd.Schema != nil { - objectMap["schema"] = hd.Schema - } - if hd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hd.LinkedServiceName - } - if hd.Parameters != nil { - objectMap["parameters"] = hd.Parameters - } - if hd.Annotations != nil { - objectMap["annotations"] = hd.Annotations - } - if hd.Folder != nil { - objectMap["folder"] = hd.Folder - } - if hd.Type != "" { - objectMap["type"] = hd.Type - } - for k, v := range hd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return &hd, true -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for HTTPDataset. -func (hd HTTPDataset) AsBasicDataset() (BasicDataset, bool) { - return &hd, true -} - -// UnmarshalJSON is the custom unmarshaler for HTTPDataset struct. -func (hd *HTTPDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var HTTPDatasetTypeProperties HTTPDatasetTypeProperties - err = json.Unmarshal(*v, &HTTPDatasetTypeProperties) - if err != nil { - return err - } - hd.HTTPDatasetTypeProperties = &HTTPDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hd.AdditionalProperties == nil { - hd.AdditionalProperties = make(map[string]interface{}) - } - hd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - hd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - hd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - hd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hd.Type = typeVar - } - } - } - - return nil -} - -// HTTPDatasetTypeProperties properties specific to this dataset type. -type HTTPDatasetTypeProperties struct { - // RelativeURL - 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"` - // RequestMethod - The HTTP method for the HTTP request. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` - // RequestBody - The body for the HTTP request. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` - // AdditionalHeaders - 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"` - // Format - The format of files. - Format BasicDatasetStorageFormat `json:"format,omitempty"` - // Compression - The data compression method used on files. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for HTTPDatasetTypeProperties struct. -func (hdtp *HTTPDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "relativeUrl": - if v != nil { - var relativeURL interface{} - err = json.Unmarshal(*v, &relativeURL) - if err != nil { - return err - } - hdtp.RelativeURL = relativeURL - } - case "requestMethod": - if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) - if err != nil { - return err - } - hdtp.RequestMethod = requestMethod - } - case "requestBody": - if v != nil { - var requestBody interface{} - err = json.Unmarshal(*v, &requestBody) - if err != nil { - return err - } - hdtp.RequestBody = requestBody - } - case "additionalHeaders": - if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) - if err != nil { - return err - } - hdtp.AdditionalHeaders = additionalHeaders - } - case "format": - if v != nil { - formatVar, err := unmarshalBasicDatasetStorageFormat(*v) - if err != nil { - return err - } - hdtp.Format = formatVar - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - hdtp.Compression = &compression - } - } - } - - return nil -} - -// HTTPLinkedService linked service for an HTTP source. -type HTTPLinkedService struct { - // HTTPLinkedServiceTypeProperties - Properties specific to this linked service type. - *HTTPLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HTTPLinkedService. -func (hls HTTPLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeBasicLinkedServiceTypeHTTPServer - objectMap := make(map[string]interface{}) - if hls.HTTPLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HTTPLinkedServiceTypeProperties - } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia - } - if hls.Description != nil { - objectMap["description"] = hls.Description - } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters - } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations - } - if hls.Type != "" { - objectMap["type"] = hls.Type - } - for k, v := range hls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return &hls, true -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for HTTPLinkedService. -func (hls HTTPLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true -} - -// UnmarshalJSON is the custom unmarshaler for HTTPLinkedService struct. -func (hls *HTTPLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var HTTPLinkedServiceTypeProperties HTTPLinkedServiceTypeProperties - err = json.Unmarshal(*v, &HTTPLinkedServiceTypeProperties) - if err != nil { - return err - } - hls.HTTPLinkedServiceTypeProperties = &HTTPLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) - } - hls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hls.Type = typeVar - } - } - } - - return nil -} - -// HTTPLinkedServiceTypeProperties properties specific to this linked service type. -type HTTPLinkedServiceTypeProperties struct { - // URL - 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"` - // AuthenticationType - The authentication type to be used to connect to the HTTP server. Possible values include: 'HTTPAuthenticationTypeBasic', 'HTTPAuthenticationTypeAnonymous', 'HTTPAuthenticationTypeDigest', 'HTTPAuthenticationTypeWindows', 'HTTPAuthenticationTypeClientCertificate' - AuthenticationType HTTPAuthenticationType `json:"authenticationType,omitempty"` - // UserName - User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. - Password BasicSecretBase `json:"password,omitempty"` - // AuthHeaders - The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type). - AuthHeaders interface{} `json:"authHeaders,omitempty"` - // EmbeddedCertData - 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"` - // CertThumbprint - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // EnableServerCertificateValidation - If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for HTTPLinkedServiceTypeProperties struct. -func (hlstp *HTTPLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - hlstp.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType HTTPAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hlstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - hlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.Password = password - } - case "authHeaders": - if v != nil { - var authHeaders interface{} - err = json.Unmarshal(*v, &authHeaders) - if err != nil { - return err - } - hlstp.AuthHeaders = authHeaders - } - case "embeddedCertData": - if v != nil { - var embeddedCertData interface{} - err = json.Unmarshal(*v, &embeddedCertData) - if err != nil { - return err - } - hlstp.EmbeddedCertData = embeddedCertData - } - case "certThumbprint": - if v != nil { - var certThumbprint interface{} - err = json.Unmarshal(*v, &certThumbprint) - if err != nil { - return err - } - hlstp.CertThumbprint = certThumbprint - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = &encryptedCredential - } - case "enableServerCertificateValidation": - if v != nil { - var enableServerCertificateValidation interface{} - err = json.Unmarshal(*v, &enableServerCertificateValidation) - if err != nil { - return err - } - hlstp.EnableServerCertificateValidation = enableServerCertificateValidation - } - } - } - - return nil -} - -// HTTPReadSettings http read settings. -type HTTPReadSettings struct { - // RequestMethod - 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"` - // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` - // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` - // RequestTimeout - Specifies the timeout for a HTTP client to get HTTP response from HTTP server. Type: string (or Expression with resultType string). - RequestTimeout interface{} `json:"requestTimeout,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HTTPReadSettings. -func (hrs HTTPReadSettings) MarshalJSON() ([]byte, error) { - hrs.Type = TypeBasicStoreReadSettingsTypeHTTPReadSettings - objectMap := make(map[string]interface{}) - if hrs.RequestMethod != nil { - objectMap["requestMethod"] = hrs.RequestMethod - } - if hrs.RequestBody != nil { - objectMap["requestBody"] = hrs.RequestBody - } - if hrs.AdditionalHeaders != nil { - objectMap["additionalHeaders"] = hrs.AdditionalHeaders - } - if hrs.RequestTimeout != nil { - objectMap["requestTimeout"] = hrs.RequestTimeout - } - if hrs.AdditionalColumns != nil { - objectMap["additionalColumns"] = hrs.AdditionalColumns - } - if hrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections - } - if hrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = hrs.DisableMetricsCollection - } - if hrs.Type != "" { - objectMap["type"] = hrs.Type - } - for k, v := range hrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return &hrs, true -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for HTTPReadSettings. -func (hrs HTTPReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &hrs, true -} - -// UnmarshalJSON is the custom unmarshaler for HTTPReadSettings struct. -func (hrs *HTTPReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "requestMethod": - if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) - if err != nil { - return err - } - hrs.RequestMethod = requestMethod - } - case "requestBody": - if v != nil { - var requestBody interface{} - err = json.Unmarshal(*v, &requestBody) - if err != nil { - return err - } - hrs.RequestBody = requestBody - } - case "additionalHeaders": - if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) - if err != nil { - return err - } - hrs.AdditionalHeaders = additionalHeaders - } - case "requestTimeout": - if v != nil { - var requestTimeout interface{} - err = json.Unmarshal(*v, &requestTimeout) - if err != nil { - return err - } - hrs.RequestTimeout = requestTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - hrs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hrs.AdditionalProperties == nil { - hrs.AdditionalProperties = make(map[string]interface{}) - } - hrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - hrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - hrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hrs.Type = typeVar - } - } - } - - return nil -} - -// HTTPServerLocation the location of http server. -type HTTPServerLocation struct { - // RelativeURL - Specify the relativeUrl of http server. Type: string (or Expression with resultType string) - RelativeURL interface{} `json:"relativeUrl,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HTTPServerLocation. -func (hsl HTTPServerLocation) MarshalJSON() ([]byte, error) { - hsl.Type = TypeBasicDatasetLocationTypeHTTPServerLocation - objectMap := make(map[string]interface{}) - if hsl.RelativeURL != nil { - objectMap["relativeUrl"] = hsl.RelativeURL - } - if hsl.FolderPath != nil { - objectMap["folderPath"] = hsl.FolderPath - } - if hsl.FileName != nil { - objectMap["fileName"] = hsl.FileName - } - if hsl.Type != "" { - objectMap["type"] = hsl.Type - } - for k, v := range hsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return &hsl, true -} - -// AsSftpLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for HTTPServerLocation. -func (hsl HTTPServerLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &hsl, true -} - -// UnmarshalJSON is the custom unmarshaler for HTTPServerLocation struct. -func (hsl *HTTPServerLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "relativeUrl": - if v != nil { - var relativeURL interface{} - err = json.Unmarshal(*v, &relativeURL) - if err != nil { - return err - } - hsl.RelativeURL = relativeURL - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hsl.AdditionalProperties == nil { - hsl.AdditionalProperties = make(map[string]interface{}) - } - hsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - hsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - hsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hsl.Type = typeVar - } - } - } - - return nil -} - -// HTTPSource a copy activity source for an HTTP file. -type HTTPSource struct { - // HTTPRequestTimeout - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HTTPSource. -func (hs HTTPSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeBasicCopySourceTypeHTTPSource - objectMap := make(map[string]interface{}) - if hs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = hs.HTTPRequestTimeout - } - if hs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = hs.SourceRetryCount - } - if hs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = hs.SourceRetryWait - } - if hs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections - } - if hs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection - } - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHTTPSource() (*HTTPSource, bool) { - return &hs, true -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for HTTPSource. -func (hs HTTPSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true -} - -// UnmarshalJSON is the custom unmarshaler for HTTPSource struct. -func (hs *HTTPSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - hs.HTTPRequestTimeout = HTTPRequestTimeout - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hs.AdditionalProperties == nil { - hs.AdditionalProperties = make(map[string]interface{}) - } - hs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - hs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - hs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - hs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - hs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hs.Type = typeVar - } - } - } - - return nil -} - -// HdfsLinkedService hadoop Distributed File System (HDFS) linked service. -type HdfsLinkedService struct { - // HdfsLinkedServiceTypeProperties - HDFS linked service properties. - *HdfsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HdfsLinkedService. -func (hls HdfsLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeBasicLinkedServiceTypeHdfs - objectMap := make(map[string]interface{}) - if hls.HdfsLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HdfsLinkedServiceTypeProperties - } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia - } - if hls.Description != nil { - objectMap["description"] = hls.Description - } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters - } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations - } - if hls.Type != "" { - objectMap["type"] = hls.Type - } - for k, v := range hls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return &hls, true -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for HdfsLinkedService. -func (hls HdfsLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true -} - -// UnmarshalJSON is the custom unmarshaler for HdfsLinkedService struct. -func (hls *HdfsLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hdfsLinkedServiceTypeProperties HdfsLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hdfsLinkedServiceTypeProperties) - if err != nil { - return err - } - hls.HdfsLinkedServiceTypeProperties = &hdfsLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) - } - hls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hls.Type = typeVar - } - } - } - - return nil -} - -// HdfsLinkedServiceTypeProperties HDFS linked service properties. -type HdfsLinkedServiceTypeProperties struct { - // URL - 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"` - // AuthenticationType - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // UserName - User name for Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Windows authentication. - Password BasicSecretBase `json:"password,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for HdfsLinkedServiceTypeProperties struct. -func (hlstp *HdfsLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - hlstp.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hlstp.AuthenticationType = authenticationType - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = &encryptedCredential - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - hlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.Password = password - } - } - } - - return nil -} - -// HdfsLocation the location of HDFS. -type HdfsLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HdfsLocation. -func (hl HdfsLocation) MarshalJSON() ([]byte, error) { - hl.Type = TypeBasicDatasetLocationTypeHdfsLocation - objectMap := make(map[string]interface{}) - if hl.FolderPath != nil { - objectMap["folderPath"] = hl.FolderPath - } - if hl.FileName != nil { - objectMap["fileName"] = hl.FileName - } - if hl.Type != "" { - objectMap["type"] = hl.Type - } - for k, v := range hl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return &hl, true -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for HdfsLocation. -func (hl HdfsLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &hl, true -} - -// UnmarshalJSON is the custom unmarshaler for HdfsLocation struct. -func (hl *HdfsLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hl.AdditionalProperties == nil { - hl.AdditionalProperties = make(map[string]interface{}) - } - hl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - hl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - hl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hl.Type = typeVar - } - } - } - - return nil -} - -// HdfsReadSettings HDFS read settings. -type HdfsReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - HDFS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - HDFS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // DistcpSettings - Specifies Distcp-related settings. - DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HdfsReadSettings. -func (hrs HdfsReadSettings) MarshalJSON() ([]byte, error) { - hrs.Type = TypeBasicStoreReadSettingsTypeHdfsReadSettings - objectMap := make(map[string]interface{}) - if hrs.Recursive != nil { - objectMap["recursive"] = hrs.Recursive - } - if hrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = hrs.WildcardFolderPath - } - if hrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = hrs.WildcardFileName - } - if hrs.FileListPath != nil { - objectMap["fileListPath"] = hrs.FileListPath - } - if hrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = hrs.EnablePartitionDiscovery - } - if hrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = hrs.PartitionRootPath - } - if hrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = hrs.ModifiedDatetimeStart - } - if hrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = hrs.ModifiedDatetimeEnd - } - if hrs.DistcpSettings != nil { - objectMap["distcpSettings"] = hrs.DistcpSettings - } - if hrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = hrs.DeleteFilesAfterCompletion - } - if hrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hrs.MaxConcurrentConnections - } - if hrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = hrs.DisableMetricsCollection - } - if hrs.Type != "" { - objectMap["type"] = hrs.Type - } - for k, v := range hrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return &hrs, true -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for HdfsReadSettings. -func (hrs HdfsReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &hrs, true -} - -// UnmarshalJSON is the custom unmarshaler for HdfsReadSettings struct. -func (hrs *HdfsReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - hrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - hrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - hrs.WildcardFileName = wildcardFileName - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - hrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - hrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - hrs.PartitionRootPath = partitionRootPath - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - hrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - hrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - case "distcpSettings": - if v != nil { - var distcpSettings DistcpSettings - err = json.Unmarshal(*v, &distcpSettings) - if err != nil { - return err - } - hrs.DistcpSettings = &distcpSettings - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - hrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hrs.AdditionalProperties == nil { - hrs.AdditionalProperties = make(map[string]interface{}) - } - hrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - hrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - hrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hrs.Type = typeVar - } - } - } - - return nil -} - -// HdfsSource a copy activity HDFS source. -type HdfsSource struct { - // Recursive - 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"` - // DistcpSettings - Specifies Distcp-related settings. - DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HdfsSource. -func (hs HdfsSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeBasicCopySourceTypeHdfsSource - objectMap := make(map[string]interface{}) - if hs.Recursive != nil { - objectMap["recursive"] = hs.Recursive - } - if hs.DistcpSettings != nil { - objectMap["distcpSettings"] = hs.DistcpSettings - } - if hs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = hs.SourceRetryCount - } - if hs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = hs.SourceRetryWait - } - if hs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections - } - if hs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection - } - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHdfsSource() (*HdfsSource, bool) { - return &hs, true -} - -// AsFileSystemSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for HdfsSource. -func (hs HdfsSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true -} - -// UnmarshalJSON is the custom unmarshaler for HdfsSource struct. -func (hs *HdfsSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - hs.Recursive = recursive - } - case "distcpSettings": - if v != nil { - var distcpSettings DistcpSettings - err = json.Unmarshal(*v, &distcpSettings) - if err != nil { - return err - } - hs.DistcpSettings = &distcpSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hs.AdditionalProperties == nil { - hs.AdditionalProperties = make(map[string]interface{}) - } - hs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - hs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - hs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - hs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - hs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hs.Type = typeVar - } - } - } - - return nil -} - -// HiveDatasetTypeProperties hive Properties -type HiveDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Hive. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Hive. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// HiveLinkedService hive Server linked service. -type HiveLinkedService struct { - // HiveLinkedServiceTypeProperties - Hive Server linked service properties. - *HiveLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HiveLinkedService. -func (hls HiveLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeBasicLinkedServiceTypeHive - objectMap := make(map[string]interface{}) - if hls.HiveLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HiveLinkedServiceTypeProperties - } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia - } - if hls.Description != nil { - objectMap["description"] = hls.Description - } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters - } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations - } - if hls.Type != "" { - objectMap["type"] = hls.Type - } - for k, v := range hls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return &hls, true -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for HiveLinkedService. -func (hls HiveLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true -} - -// UnmarshalJSON is the custom unmarshaler for HiveLinkedService struct. -func (hls *HiveLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hiveLinkedServiceTypeProperties HiveLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hiveLinkedServiceTypeProperties) - if err != nil { - return err - } - hls.HiveLinkedServiceTypeProperties = &hiveLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) - } - hls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hls.Type = typeVar - } - } - } - - return nil -} - -// HiveLinkedServiceTypeProperties hive Server linked service properties. -type HiveLinkedServiceTypeProperties struct { - // Host - IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode is enable). - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Hive server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` - // ServerType - The type of Hive server. Possible values include: 'HiveServerTypeHiveServer1', 'HiveServerTypeHiveServer2', 'HiveServerTypeHiveThriftServer' - ServerType HiveServerType `json:"serverType,omitempty"` - // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'HiveThriftTransportProtocolBinary', 'HiveThriftTransportProtocolSASL', 'HiveThriftTransportProtocolHTTP' - ThriftTransportProtocol HiveThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` - // AuthenticationType - The authentication method used to access the Hive server. Possible values include: 'HiveAuthenticationTypeAnonymous', 'HiveAuthenticationTypeUsername', 'HiveAuthenticationTypeUsernameAndPassword', 'HiveAuthenticationTypeWindowsAzureHDInsightService' - AuthenticationType HiveAuthenticationType `json:"authenticationType,omitempty"` - // ServiceDiscoveryMode - true to indicate using the ZooKeeper service, false not. - ServiceDiscoveryMode interface{} `json:"serviceDiscoveryMode,omitempty"` - // ZooKeeperNameSpace - The namespace on ZooKeeper under which Hive Server 2 nodes are added. - ZooKeeperNameSpace interface{} `json:"zooKeeperNameSpace,omitempty"` - // UseNativeQuery - Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. - UseNativeQuery interface{} `json:"useNativeQuery,omitempty"` - // Username - The user name that you use to access Hive Server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the Username field - Password BasicSecretBase `json:"password,omitempty"` - // HTTPPath - The partial URL corresponding to the Hive server. - HTTPPath interface{} `json:"httpPath,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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"` - // UseSystemTrustStore - 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"` - // AllowHostNameCNMismatch - 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"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for HiveLinkedServiceTypeProperties struct. -func (hlstp *HiveLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - hlstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - hlstp.Port = port - } - case "serverType": - if v != nil { - var serverType HiveServerType - err = json.Unmarshal(*v, &serverType) - if err != nil { - return err - } - hlstp.ServerType = serverType - } - case "thriftTransportProtocol": - if v != nil { - var thriftTransportProtocol HiveThriftTransportProtocol - err = json.Unmarshal(*v, &thriftTransportProtocol) - if err != nil { - return err - } - hlstp.ThriftTransportProtocol = thriftTransportProtocol - } - case "authenticationType": - if v != nil { - var authenticationType HiveAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - hlstp.AuthenticationType = authenticationType - } - case "serviceDiscoveryMode": - if v != nil { - var serviceDiscoveryMode interface{} - err = json.Unmarshal(*v, &serviceDiscoveryMode) - if err != nil { - return err - } - hlstp.ServiceDiscoveryMode = serviceDiscoveryMode - } - case "zooKeeperNameSpace": - if v != nil { - var zooKeeperNameSpace interface{} - err = json.Unmarshal(*v, &zooKeeperNameSpace) - if err != nil { - return err - } - hlstp.ZooKeeperNameSpace = zooKeeperNameSpace - } - case "useNativeQuery": - if v != nil { - var useNativeQuery interface{} - err = json.Unmarshal(*v, &useNativeQuery) - if err != nil { - return err - } - hlstp.UseNativeQuery = useNativeQuery - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - hlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.Password = password - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - hlstp.HTTPPath = HTTPPath - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - hlstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - hlstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - hlstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - hlstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - hlstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// HiveObjectDataset hive Server dataset. -type HiveObjectDataset struct { - // HiveDatasetTypeProperties - Properties specific to this dataset type. - *HiveDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HiveObjectDataset. -func (hod HiveObjectDataset) MarshalJSON() ([]byte, error) { - hod.Type = TypeBasicDatasetTypeHiveObject - objectMap := make(map[string]interface{}) - if hod.HiveDatasetTypeProperties != nil { - objectMap["typeProperties"] = hod.HiveDatasetTypeProperties - } - if hod.Description != nil { - objectMap["description"] = hod.Description - } - if hod.Structure != nil { - objectMap["structure"] = hod.Structure - } - if hod.Schema != nil { - objectMap["schema"] = hod.Schema - } - if hod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hod.LinkedServiceName - } - if hod.Parameters != nil { - objectMap["parameters"] = hod.Parameters - } - if hod.Annotations != nil { - objectMap["annotations"] = hod.Annotations - } - if hod.Folder != nil { - objectMap["folder"] = hod.Folder - } - if hod.Type != "" { - objectMap["type"] = hod.Type - } - for k, v := range hod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return &hod, true -} - -// AsHBaseObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for HiveObjectDataset. -func (hod HiveObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &hod, true -} - -// UnmarshalJSON is the custom unmarshaler for HiveObjectDataset struct. -func (hod *HiveObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hiveDatasetTypeProperties HiveDatasetTypeProperties - err = json.Unmarshal(*v, &hiveDatasetTypeProperties) - if err != nil { - return err - } - hod.HiveDatasetTypeProperties = &hiveDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hod.AdditionalProperties == nil { - hod.AdditionalProperties = make(map[string]interface{}) - } - hod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - hod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - hod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - hod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hod.Type = typeVar - } - } - } - - return nil -} - -// HiveSource a copy activity Hive Server source. -type HiveSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HiveSource. -func (hs HiveSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeBasicCopySourceTypeHiveSource - objectMap := make(map[string]interface{}) - if hs.Query != nil { - objectMap["query"] = hs.Query - } - if hs.QueryTimeout != nil { - objectMap["queryTimeout"] = hs.QueryTimeout - } - if hs.AdditionalColumns != nil { - objectMap["additionalColumns"] = hs.AdditionalColumns - } - if hs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = hs.SourceRetryCount - } - if hs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = hs.SourceRetryWait - } - if hs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections - } - if hs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection - } - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHiveSource() (*HiveSource, bool) { - return &hs, true -} - -// AsHBaseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &hs, true -} - -// AsBinarySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for HiveSource. -func (hs HiveSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true -} - -// UnmarshalJSON is the custom unmarshaler for HiveSource struct. -func (hs *HiveSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - hs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - hs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - hs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hs.AdditionalProperties == nil { - hs.AdditionalProperties = make(map[string]interface{}) - } - hs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - hs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - hs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - hs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - hs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hs.Type = typeVar - } - } - } - - return nil -} - -// HubspotLinkedService hubspot Service linked service. -type HubspotLinkedService struct { - // HubspotLinkedServiceTypeProperties - Hubspot Service linked service properties. - *HubspotLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HubspotLinkedService. -func (hls HubspotLinkedService) MarshalJSON() ([]byte, error) { - hls.Type = TypeBasicLinkedServiceTypeHubspot - objectMap := make(map[string]interface{}) - if hls.HubspotLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = hls.HubspotLinkedServiceTypeProperties - } - if hls.ConnectVia != nil { - objectMap["connectVia"] = hls.ConnectVia - } - if hls.Description != nil { - objectMap["description"] = hls.Description - } - if hls.Parameters != nil { - objectMap["parameters"] = hls.Parameters - } - if hls.Annotations != nil { - objectMap["annotations"] = hls.Annotations - } - if hls.Type != "" { - objectMap["type"] = hls.Type - } - for k, v := range hls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return &hls, true -} - -// AsHiveLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for HubspotLinkedService. -func (hls HubspotLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &hls, true -} - -// UnmarshalJSON is the custom unmarshaler for HubspotLinkedService struct. -func (hls *HubspotLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var hubspotLinkedServiceTypeProperties HubspotLinkedServiceTypeProperties - err = json.Unmarshal(*v, &hubspotLinkedServiceTypeProperties) - if err != nil { - return err - } - hls.HubspotLinkedServiceTypeProperties = &hubspotLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hls.AdditionalProperties == nil { - hls.AdditionalProperties = make(map[string]interface{}) - } - hls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - hls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hls.Type = typeVar - } - } - } - - return nil -} - -// HubspotLinkedServiceTypeProperties hubspot Service linked service properties. -type HubspotLinkedServiceTypeProperties struct { - // ClientID - The client ID associated with your Hubspot application. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with your Hubspot application. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // AccessToken - The access token obtained when initially authenticating your OAuth integration. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // RefreshToken - The refresh token obtained when initially authenticating your OAuth integration. - RefreshToken BasicSecretBase `json:"refreshToken,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for HubspotLinkedServiceTypeProperties struct. -func (hlstp *HubspotLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - hlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.ClientSecret = clientSecret - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.AccessToken = accessToken - } - case "refreshToken": - if v != nil { - refreshToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - hlstp.RefreshToken = refreshToken - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - hlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - hlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - hlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - hlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// HubspotObjectDataset hubspot Service dataset. -type HubspotObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HubspotObjectDataset. -func (hod HubspotObjectDataset) MarshalJSON() ([]byte, error) { - hod.Type = TypeBasicDatasetTypeHubspotObject - objectMap := make(map[string]interface{}) - if hod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = hod.GenericDatasetTypeProperties - } - if hod.Description != nil { - objectMap["description"] = hod.Description - } - if hod.Structure != nil { - objectMap["structure"] = hod.Structure - } - if hod.Schema != nil { - objectMap["schema"] = hod.Schema - } - if hod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = hod.LinkedServiceName - } - if hod.Parameters != nil { - objectMap["parameters"] = hod.Parameters - } - if hod.Annotations != nil { - objectMap["annotations"] = hod.Annotations - } - if hod.Folder != nil { - objectMap["folder"] = hod.Folder - } - if hod.Type != "" { - objectMap["type"] = hod.Type - } - for k, v := range hod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return &hod, true -} - -// AsHiveObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for HubspotObjectDataset. -func (hod HubspotObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &hod, true -} - -// UnmarshalJSON is the custom unmarshaler for HubspotObjectDataset struct. -func (hod *HubspotObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - hod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hod.AdditionalProperties == nil { - hod.AdditionalProperties = make(map[string]interface{}) - } - hod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - hod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - hod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - hod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - hod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - hod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - hod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - hod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hod.Type = typeVar - } - } - } - - return nil -} - -// HubspotSource a copy activity Hubspot Service source. -type HubspotSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for HubspotSource. -func (hs HubspotSource) MarshalJSON() ([]byte, error) { - hs.Type = TypeBasicCopySourceTypeHubspotSource - objectMap := make(map[string]interface{}) - if hs.Query != nil { - objectMap["query"] = hs.Query - } - if hs.QueryTimeout != nil { - objectMap["queryTimeout"] = hs.QueryTimeout - } - if hs.AdditionalColumns != nil { - objectMap["additionalColumns"] = hs.AdditionalColumns - } - if hs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = hs.SourceRetryCount - } - if hs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = hs.SourceRetryWait - } - if hs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = hs.MaxConcurrentConnections - } - if hs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = hs.DisableMetricsCollection - } - if hs.Type != "" { - objectMap["type"] = hs.Type - } - for k, v := range hs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHubspotSource() (*HubspotSource, bool) { - return &hs, true -} - -// AsHiveSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &hs, true -} - -// AsBinarySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for HubspotSource. -func (hs HubspotSource) AsBasicCopySource() (BasicCopySource, bool) { - return &hs, true -} - -// UnmarshalJSON is the custom unmarshaler for HubspotSource struct. -func (hs *HubspotSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - hs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - hs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - hs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if hs.AdditionalProperties == nil { - hs.AdditionalProperties = make(map[string]interface{}) - } - hs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - hs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - hs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - hs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - hs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - hs.Type = typeVar - } - } - } - - return nil -} - -// IfConditionActivity this activity evaluates a boolean expression and executes either the activities -// under the ifTrueActivities property or the ifFalseActivities property depending on the result of the -// expression. -type IfConditionActivity struct { - // IfConditionActivityTypeProperties - IfCondition activity properties. - *IfConditionActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for IfConditionActivity. -func (ica IfConditionActivity) MarshalJSON() ([]byte, error) { - ica.Type = TypeBasicActivityTypeIfCondition - objectMap := make(map[string]interface{}) - if ica.IfConditionActivityTypeProperties != nil { - objectMap["typeProperties"] = ica.IfConditionActivityTypeProperties - } - if ica.Name != nil { - objectMap["name"] = ica.Name - } - if ica.Description != nil { - objectMap["description"] = ica.Description - } - if ica.State != "" { - objectMap["state"] = ica.State - } - if ica.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ica.OnInactiveMarkAs - } - if ica.DependsOn != nil { - objectMap["dependsOn"] = ica.DependsOn - } - if ica.UserProperties != nil { - objectMap["userProperties"] = ica.UserProperties - } - if ica.Type != "" { - objectMap["type"] = ica.Type - } - for k, v := range ica.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return &ica, true -} - -// AsExecutePipelineActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &ica, true -} - -// AsActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for IfConditionActivity. -func (ica IfConditionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ica, true -} - -// UnmarshalJSON is the custom unmarshaler for IfConditionActivity struct. -func (ica *IfConditionActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var ifConditionActivityTypeProperties IfConditionActivityTypeProperties - err = json.Unmarshal(*v, &ifConditionActivityTypeProperties) - if err != nil { - return err - } - ica.IfConditionActivityTypeProperties = &ifConditionActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ica.AdditionalProperties == nil { - ica.AdditionalProperties = make(map[string]interface{}) - } - ica.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ica.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ica.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ica.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ica.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ica.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ica.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ica.Type = typeVar - } - } - } - - return nil -} - -// IfConditionActivityTypeProperties ifCondition activity properties. -type IfConditionActivityTypeProperties struct { - // Expression - 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"` - // IfTrueActivities - 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 *[]BasicActivity `json:"ifTrueActivities,omitempty"` - // IfFalseActivities - 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 *[]BasicActivity `json:"ifFalseActivities,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for IfConditionActivityTypeProperties struct. -func (icatp *IfConditionActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "expression": - if v != nil { - var expression Expression - err = json.Unmarshal(*v, &expression) - if err != nil { - return err - } - icatp.Expression = &expression - } - case "ifTrueActivities": - if v != nil { - ifTrueActivities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - icatp.IfTrueActivities = &ifTrueActivities - } - case "ifFalseActivities": - if v != nil { - ifFalseActivities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - icatp.IfFalseActivities = &ifFalseActivities - } - } - } - - return nil -} - -// ImpalaDatasetTypeProperties impala Dataset Properties -type ImpalaDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Impala. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Impala. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// ImpalaLinkedService impala server linked service. -type ImpalaLinkedService struct { - // ImpalaLinkedServiceTypeProperties - Impala server linked service properties. - *ImpalaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ImpalaLinkedService. -func (ils ImpalaLinkedService) MarshalJSON() ([]byte, error) { - ils.Type = TypeBasicLinkedServiceTypeImpala - objectMap := make(map[string]interface{}) - if ils.ImpalaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ils.ImpalaLinkedServiceTypeProperties - } - if ils.ConnectVia != nil { - objectMap["connectVia"] = ils.ConnectVia - } - if ils.Description != nil { - objectMap["description"] = ils.Description - } - if ils.Parameters != nil { - objectMap["parameters"] = ils.Parameters - } - if ils.Annotations != nil { - objectMap["annotations"] = ils.Annotations - } - if ils.Type != "" { - objectMap["type"] = ils.Type - } - for k, v := range ils.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return &ils, true -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for ImpalaLinkedService. -func (ils ImpalaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ils, true -} - -// UnmarshalJSON is the custom unmarshaler for ImpalaLinkedService struct. -func (ils *ImpalaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var impalaLinkedServiceTypeProperties ImpalaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &impalaLinkedServiceTypeProperties) - if err != nil { - return err - } - ils.ImpalaLinkedServiceTypeProperties = &impalaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ils.AdditionalProperties == nil { - ils.AdditionalProperties = make(map[string]interface{}) - } - ils.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ils.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ils.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ils.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ils.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ils.Type = typeVar - } - } - } - - return nil -} - -// ImpalaLinkedServiceTypeProperties impala server linked service properties. -type ImpalaLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Impala server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Impala server uses to listen for client connections. The default value is 21050. - Port interface{} `json:"port,omitempty"` - // AuthenticationType - The authentication type to use. Possible values include: 'ImpalaAuthenticationTypeAnonymous', 'ImpalaAuthenticationTypeSASLUsername', 'ImpalaAuthenticationTypeUsernameAndPassword' - AuthenticationType ImpalaAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to access the Impala server. The default value is anonymous when using SASLUsername. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name when using UsernameAndPassword. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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"` - // UseSystemTrustStore - 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"` - // AllowHostNameCNMismatch - 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"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ImpalaLinkedServiceTypeProperties struct. -func (ilstp *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - ilstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - ilstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType ImpalaAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - ilstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - ilstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ilstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - ilstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - ilstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - ilstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - ilstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - ilstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - ilstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// ImpalaObjectDataset impala server dataset. -type ImpalaObjectDataset struct { - // ImpalaDatasetTypeProperties - Properties specific to this dataset type. - *ImpalaDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) MarshalJSON() ([]byte, error) { - iod.Type = TypeBasicDatasetTypeImpalaObject - objectMap := make(map[string]interface{}) - if iod.ImpalaDatasetTypeProperties != nil { - objectMap["typeProperties"] = iod.ImpalaDatasetTypeProperties - } - if iod.Description != nil { - objectMap["description"] = iod.Description - } - if iod.Structure != nil { - objectMap["structure"] = iod.Structure - } - if iod.Schema != nil { - objectMap["schema"] = iod.Schema - } - if iod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = iod.LinkedServiceName - } - if iod.Parameters != nil { - objectMap["parameters"] = iod.Parameters - } - if iod.Annotations != nil { - objectMap["annotations"] = iod.Annotations - } - if iod.Folder != nil { - objectMap["folder"] = iod.Folder - } - if iod.Type != "" { - objectMap["type"] = iod.Type - } - for k, v := range iod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return &iod, true -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ImpalaObjectDataset. -func (iod ImpalaObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &iod, true -} - -// UnmarshalJSON is the custom unmarshaler for ImpalaObjectDataset struct. -func (iod *ImpalaObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var impalaDatasetTypeProperties ImpalaDatasetTypeProperties - err = json.Unmarshal(*v, &impalaDatasetTypeProperties) - if err != nil { - return err - } - iod.ImpalaDatasetTypeProperties = &impalaDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if iod.AdditionalProperties == nil { - iod.AdditionalProperties = make(map[string]interface{}) - } - iod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - iod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - iod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - iod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - iod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - iod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - iod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - iod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - iod.Type = typeVar - } - } - } - - return nil -} - -// ImpalaSource a copy activity Impala server source. -type ImpalaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ImpalaSource. -func (is ImpalaSource) MarshalJSON() ([]byte, error) { - is.Type = TypeBasicCopySourceTypeImpalaSource - objectMap := make(map[string]interface{}) - if is.Query != nil { - objectMap["query"] = is.Query - } - if is.QueryTimeout != nil { - objectMap["queryTimeout"] = is.QueryTimeout - } - if is.AdditionalColumns != nil { - objectMap["additionalColumns"] = is.AdditionalColumns - } - if is.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = is.SourceRetryCount - } - if is.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = is.SourceRetryWait - } - if is.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections - } - if is.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = is.DisableMetricsCollection - } - if is.Type != "" { - objectMap["type"] = is.Type - } - for k, v := range is.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsImpalaSource() (*ImpalaSource, bool) { - return &is, true -} - -// AsHubspotSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &is, true -} - -// AsBinarySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ImpalaSource. -func (is ImpalaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &is, true -} - -// UnmarshalJSON is the custom unmarshaler for ImpalaSource struct. -func (is *ImpalaSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - is.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - is.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - is.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if is.AdditionalProperties == nil { - is.AdditionalProperties = make(map[string]interface{}) - } - is.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - is.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - is.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - is.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - is.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - is.Type = typeVar - } - } - } - - return nil -} - -// BasicImportSettings import command settings. -type BasicImportSettings interface { - AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) - AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) - AsImportSettings() (*ImportSettings, bool) -} - -// ImportSettings import command settings. -type ImportSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicImportSettingsTypeImportSettings', 'TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand', 'TypeBasicImportSettingsTypeSnowflakeImportCopyCommand' - Type TypeBasicImportSettings `json:"type,omitempty"` -} - -func unmarshalBasicImportSettings(body []byte) (BasicImportSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand): - var addlic AzureDatabricksDeltaLakeImportCommand - err := json.Unmarshal(body, &addlic) - return addlic, err - case string(TypeBasicImportSettingsTypeSnowflakeImportCopyCommand): - var sicc SnowflakeImportCopyCommand - err := json.Unmarshal(body, &sicc) - return sicc, err - default: - var is ImportSettings - err := json.Unmarshal(body, &is) - return is, err - } -} -func unmarshalBasicImportSettingsArray(body []byte) ([]BasicImportSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - isArray := make([]BasicImportSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - is, err := unmarshalBasicImportSettings(*rawMessage) - if err != nil { - return nil, err - } - isArray[index] = is - } - return isArray, nil -} - -// MarshalJSON is the custom marshaler for ImportSettings. -func (is ImportSettings) MarshalJSON() ([]byte, error) { - is.Type = TypeBasicImportSettingsTypeImportSettings - objectMap := make(map[string]interface{}) - if is.Type != "" { - objectMap["type"] = is.Type - } - for k, v := range is.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for ImportSettings. -func (is ImportSettings) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { - return nil, false -} - -// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for ImportSettings. -func (is ImportSettings) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { - return nil, false -} - -// AsImportSettings is the BasicImportSettings implementation for ImportSettings. -func (is ImportSettings) AsImportSettings() (*ImportSettings, bool) { - return &is, true -} - -// AsBasicImportSettings is the BasicImportSettings implementation for ImportSettings. -func (is ImportSettings) AsBasicImportSettings() (BasicImportSettings, bool) { - return &is, true -} - -// UnmarshalJSON is the custom unmarshaler for ImportSettings struct. -func (is *ImportSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if is.AdditionalProperties == nil { - is.AdditionalProperties = make(map[string]interface{}) - } - is.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicImportSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - is.Type = typeVar - } - } - } - - return nil -} - -// InformixLinkedService informix linked service. -type InformixLinkedService struct { - // InformixLinkedServiceTypeProperties - Informix linked service properties. - *InformixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for InformixLinkedService. -func (ils InformixLinkedService) MarshalJSON() ([]byte, error) { - ils.Type = TypeBasicLinkedServiceTypeInformix - objectMap := make(map[string]interface{}) - if ils.InformixLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ils.InformixLinkedServiceTypeProperties - } - if ils.ConnectVia != nil { - objectMap["connectVia"] = ils.ConnectVia - } - if ils.Description != nil { - objectMap["description"] = ils.Description - } - if ils.Parameters != nil { - objectMap["parameters"] = ils.Parameters - } - if ils.Annotations != nil { - objectMap["annotations"] = ils.Annotations - } - if ils.Type != "" { - objectMap["type"] = ils.Type - } - for k, v := range ils.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return &ils, true -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for InformixLinkedService. -func (ils InformixLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ils, true -} - -// UnmarshalJSON is the custom unmarshaler for InformixLinkedService struct. -func (ils *InformixLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var informixLinkedServiceTypeProperties InformixLinkedServiceTypeProperties - err = json.Unmarshal(*v, &informixLinkedServiceTypeProperties) - if err != nil { - return err - } - ils.InformixLinkedServiceTypeProperties = &informixLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ils.AdditionalProperties == nil { - ils.AdditionalProperties = make(map[string]interface{}) - } - ils.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ils.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ils.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ils.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ils.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ils.Type = typeVar - } - } - } - - return nil -} - -// InformixLinkedServiceTypeProperties informix linked service properties. -type InformixLinkedServiceTypeProperties struct { - // ConnectionString - The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. - ConnectionString interface{} `json:"connectionString,omitempty"` - // AuthenticationType - 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"` - // Credential - The access credential portion of the connection string specified in driver-specific property-value format. - Credential BasicSecretBase `json:"credential,omitempty"` - // UserName - User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for InformixLinkedServiceTypeProperties struct. -func (ilstp *InformixLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - ilstp.ConnectionString = connectionString - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - ilstp.AuthenticationType = authenticationType - } - case "credential": - if v != nil { - credential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ilstp.Credential = credential - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - ilstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ilstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - ilstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// InformixSink a copy activity Informix sink. -type InformixSink struct { - // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for InformixSink. -func (is InformixSink) MarshalJSON() ([]byte, error) { - is.Type = TypeBasicCopySinkTypeInformixSink - objectMap := make(map[string]interface{}) - if is.PreCopyScript != nil { - objectMap["preCopyScript"] = is.PreCopyScript - } - if is.WriteBatchSize != nil { - objectMap["writeBatchSize"] = is.WriteBatchSize - } - if is.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = is.WriteBatchTimeout - } - if is.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = is.SinkRetryCount - } - if is.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = is.SinkRetryWait - } - if is.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections - } - if is.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = is.DisableMetricsCollection - } - if is.Type != "" { - objectMap["type"] = is.Type - } - for k, v := range is.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsInformixSink() (*InformixSink, bool) { - return &is, true -} - -// AsOdbcSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for InformixSink. -func (is InformixSink) AsBasicCopySink() (BasicCopySink, bool) { - return &is, true -} - -// UnmarshalJSON is the custom unmarshaler for InformixSink struct. -func (is *InformixSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - is.PreCopyScript = preCopyScript - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if is.AdditionalProperties == nil { - is.AdditionalProperties = make(map[string]interface{}) - } - is.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - is.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - is.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - is.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - is.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - is.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - is.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - is.Type = typeVar - } - } - } - - return nil -} - -// InformixSource a copy activity source for Informix. -type InformixSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for InformixSource. -func (is InformixSource) MarshalJSON() ([]byte, error) { - is.Type = TypeBasicCopySourceTypeInformixSource - objectMap := make(map[string]interface{}) - if is.Query != nil { - objectMap["query"] = is.Query - } - if is.QueryTimeout != nil { - objectMap["queryTimeout"] = is.QueryTimeout - } - if is.AdditionalColumns != nil { - objectMap["additionalColumns"] = is.AdditionalColumns - } - if is.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = is.SourceRetryCount - } - if is.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = is.SourceRetryWait - } - if is.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = is.MaxConcurrentConnections - } - if is.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = is.DisableMetricsCollection - } - if is.Type != "" { - objectMap["type"] = is.Type - } - for k, v := range is.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsInformixSource() (*InformixSource, bool) { - return &is, true -} - -// AsAzureTableSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &is, true -} - -// AsBinarySource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for InformixSource. -func (is InformixSource) AsBasicCopySource() (BasicCopySource, bool) { - return &is, true -} - -// UnmarshalJSON is the custom unmarshaler for InformixSource struct. -func (is *InformixSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - is.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - is.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - is.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if is.AdditionalProperties == nil { - is.AdditionalProperties = make(map[string]interface{}) - } - is.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - is.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - is.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - is.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - is.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - is.Type = typeVar - } - } - } - - return nil -} - -// InformixTableDataset the Informix table dataset. -type InformixTableDataset struct { - // InformixTableDatasetTypeProperties - Informix table dataset properties. - *InformixTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for InformixTableDataset. -func (itd InformixTableDataset) MarshalJSON() ([]byte, error) { - itd.Type = TypeBasicDatasetTypeInformixTable - objectMap := make(map[string]interface{}) - if itd.InformixTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = itd.InformixTableDatasetTypeProperties - } - if itd.Description != nil { - objectMap["description"] = itd.Description - } - if itd.Structure != nil { - objectMap["structure"] = itd.Structure - } - if itd.Schema != nil { - objectMap["schema"] = itd.Schema - } - if itd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = itd.LinkedServiceName - } - if itd.Parameters != nil { - objectMap["parameters"] = itd.Parameters - } - if itd.Annotations != nil { - objectMap["annotations"] = itd.Annotations - } - if itd.Folder != nil { - objectMap["folder"] = itd.Folder - } - if itd.Type != "" { - objectMap["type"] = itd.Type - } - for k, v := range itd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return &itd, true -} - -// AsRelationalTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for InformixTableDataset. -func (itd InformixTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &itd, true -} - -// UnmarshalJSON is the custom unmarshaler for InformixTableDataset struct. -func (itd *InformixTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var informixTableDatasetTypeProperties InformixTableDatasetTypeProperties - err = json.Unmarshal(*v, &informixTableDatasetTypeProperties) - if err != nil { - return err - } - itd.InformixTableDatasetTypeProperties = &informixTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if itd.AdditionalProperties == nil { - itd.AdditionalProperties = make(map[string]interface{}) - } - itd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - itd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - itd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - itd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - itd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - itd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - itd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - itd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - itd.Type = typeVar - } - } - } - - return nil -} - -// InformixTableDatasetTypeProperties informix table dataset properties. -type InformixTableDatasetTypeProperties struct { - // TableName - The Informix table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// BasicIntegrationRuntime azure Data Factory nested object which serves as a compute resource for activities. -type BasicIntegrationRuntime interface { - AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) - AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) - AsIntegrationRuntime() (*IntegrationRuntime, bool) -} - -// IntegrationRuntime azure Data Factory nested object which serves as a compute resource for activities. -type IntegrationRuntime struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Integration runtime description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeTypeIntegrationRuntime', 'TypeBasicIntegrationRuntimeTypeSelfHosted', 'TypeBasicIntegrationRuntimeTypeManaged' - Type TypeBasicIntegrationRuntime `json:"type,omitempty"` -} - -func unmarshalBasicIntegrationRuntime(body []byte) (BasicIntegrationRuntime, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicIntegrationRuntimeTypeSelfHosted): - var shir SelfHostedIntegrationRuntime - err := json.Unmarshal(body, &shir) - return shir, err - case string(TypeBasicIntegrationRuntimeTypeManaged): - var mir ManagedIntegrationRuntime - err := json.Unmarshal(body, &mir) - return mir, err - default: - var ir IntegrationRuntime - err := json.Unmarshal(body, &ir) - return ir, err - } -} -func unmarshalBasicIntegrationRuntimeArray(body []byte) ([]BasicIntegrationRuntime, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - irArray := make([]BasicIntegrationRuntime, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ir, err := unmarshalBasicIntegrationRuntime(*rawMessage) - if err != nil { - return nil, err - } - irArray[index] = ir - } - return irArray, nil -} - -// MarshalJSON is the custom marshaler for IntegrationRuntime. -func (ir IntegrationRuntime) MarshalJSON() ([]byte, error) { - ir.Type = TypeBasicIntegrationRuntimeTypeIntegrationRuntime - objectMap := make(map[string]interface{}) - if ir.Description != nil { - objectMap["description"] = ir.Description - } - if ir.Type != "" { - objectMap["type"] = ir.Type - } - for k, v := range ir.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. -func (ir IntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { - return nil, false -} - -// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. -func (ir IntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { - return nil, false -} - -// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. -func (ir IntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { - return &ir, true -} - -// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for IntegrationRuntime. -func (ir IntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { - return &ir, true -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntime struct. -func (ir *IntegrationRuntime) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ir.AdditionalProperties == nil { - ir.AdditionalProperties = make(map[string]interface{}) - } - ir.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ir.Description = &description - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntime - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ir.Type = typeVar - } - } - } - - return nil -} - -// IntegrationRuntimeAuthKeys the integration runtime authentication keys. -type IntegrationRuntimeAuthKeys struct { - autorest.Response `json:"-"` - // AuthKey1 - The primary integration runtime authentication key. - AuthKey1 *string `json:"authKey1,omitempty"` - // AuthKey2 - The secondary integration runtime authentication key. - AuthKey2 *string `json:"authKey2,omitempty"` -} - -// IntegrationRuntimeComputeProperties the compute resource properties for managed integration runtime. -type IntegrationRuntimeComputeProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Location - 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"` - // NodeSize - The node size requirement to managed integration runtime. - NodeSize *string `json:"nodeSize,omitempty"` - // NumberOfNodes - The required number of nodes for managed integration runtime. - NumberOfNodes *int32 `json:"numberOfNodes,omitempty"` - // MaxParallelExecutionsPerNode - Maximum parallel executions count per node for managed integration runtime. - MaxParallelExecutionsPerNode *int32 `json:"maxParallelExecutionsPerNode,omitempty"` - // DataFlowProperties - Data flow properties for managed integration runtime. - DataFlowProperties *IntegrationRuntimeDataFlowProperties `json:"dataFlowProperties,omitempty"` - // VNetProperties - VNet properties for managed integration runtime. - VNetProperties *IntegrationRuntimeVNetProperties `json:"vNetProperties,omitempty"` - // CopyComputeScaleProperties - CopyComputeScale properties for managed integration runtime. - CopyComputeScaleProperties *CopyComputeScaleProperties `json:"copyComputeScaleProperties,omitempty"` - // PipelineExternalComputeScaleProperties - PipelineExternalComputeScale properties for managed integration runtime. - PipelineExternalComputeScaleProperties *PipelineExternalComputeScaleProperties `json:"pipelineExternalComputeScaleProperties,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeComputeProperties. -func (ircp IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ircp.Location != nil { - objectMap["location"] = ircp.Location - } - if ircp.NodeSize != nil { - objectMap["nodeSize"] = ircp.NodeSize - } - if ircp.NumberOfNodes != nil { - objectMap["numberOfNodes"] = ircp.NumberOfNodes - } - if ircp.MaxParallelExecutionsPerNode != nil { - objectMap["maxParallelExecutionsPerNode"] = ircp.MaxParallelExecutionsPerNode - } - if ircp.DataFlowProperties != nil { - objectMap["dataFlowProperties"] = ircp.DataFlowProperties - } - if ircp.VNetProperties != nil { - objectMap["vNetProperties"] = ircp.VNetProperties - } - if ircp.CopyComputeScaleProperties != nil { - objectMap["copyComputeScaleProperties"] = ircp.CopyComputeScaleProperties - } - if ircp.PipelineExternalComputeScaleProperties != nil { - objectMap["pipelineExternalComputeScaleProperties"] = ircp.PipelineExternalComputeScaleProperties - } - for k, v := range ircp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeComputeProperties struct. -func (ircp *IntegrationRuntimeComputeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ircp.AdditionalProperties == nil { - ircp.AdditionalProperties = make(map[string]interface{}) - } - ircp.AdditionalProperties[k] = additionalProperties - } - case "location": - if v != nil { - var location string - err = json.Unmarshal(*v, &location) - if err != nil { - return err - } - ircp.Location = &location - } - case "nodeSize": - if v != nil { - var nodeSize string - err = json.Unmarshal(*v, &nodeSize) - if err != nil { - return err - } - ircp.NodeSize = &nodeSize - } - case "numberOfNodes": - if v != nil { - var numberOfNodes int32 - err = json.Unmarshal(*v, &numberOfNodes) - if err != nil { - return err - } - ircp.NumberOfNodes = &numberOfNodes - } - case "maxParallelExecutionsPerNode": - if v != nil { - var maxParallelExecutionsPerNode int32 - err = json.Unmarshal(*v, &maxParallelExecutionsPerNode) - if err != nil { - return err - } - ircp.MaxParallelExecutionsPerNode = &maxParallelExecutionsPerNode - } - case "dataFlowProperties": - if v != nil { - var dataFlowProperties IntegrationRuntimeDataFlowProperties - err = json.Unmarshal(*v, &dataFlowProperties) - if err != nil { - return err - } - ircp.DataFlowProperties = &dataFlowProperties - } - case "vNetProperties": - if v != nil { - var vNetProperties IntegrationRuntimeVNetProperties - err = json.Unmarshal(*v, &vNetProperties) - if err != nil { - return err - } - ircp.VNetProperties = &vNetProperties - } - case "copyComputeScaleProperties": - if v != nil { - var copyComputeScaleProperties CopyComputeScaleProperties - err = json.Unmarshal(*v, ©ComputeScaleProperties) - if err != nil { - return err - } - ircp.CopyComputeScaleProperties = ©ComputeScaleProperties - } - case "pipelineExternalComputeScaleProperties": - if v != nil { - var pipelineExternalComputeScaleProperties PipelineExternalComputeScaleProperties - err = json.Unmarshal(*v, &pipelineExternalComputeScaleProperties) - if err != nil { - return err - } - ircp.PipelineExternalComputeScaleProperties = &pipelineExternalComputeScaleProperties - } - } - } - - return nil -} - -// IntegrationRuntimeConnectionInfo connection information for encrypting the on-premises data source -// credentials. -type IntegrationRuntimeConnectionInfo struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ServiceToken - READ-ONLY; The token generated in service. Callers use this token to authenticate to integration runtime. - ServiceToken *string `json:"serviceToken,omitempty"` - // IdentityCertThumbprint - READ-ONLY; The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. - IdentityCertThumbprint *string `json:"identityCertThumbprint,omitempty"` - // HostServiceURI - READ-ONLY; The on-premises integration runtime host URL. - HostServiceURI *string `json:"hostServiceUri,omitempty"` - // Version - READ-ONLY; The integration runtime version. - Version *string `json:"version,omitempty"` - // PublicKey - READ-ONLY; The public key for encrypting a credential when transferring the credential to the integration runtime. - PublicKey *string `json:"publicKey,omitempty"` - // IsIdentityCertExprired - READ-ONLY; Whether the identity certificate is expired. - IsIdentityCertExprired *bool `json:"isIdentityCertExprired,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeConnectionInfo. -func (irci IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - for k, v := range irci.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeConnectionInfo struct. -func (irci *IntegrationRuntimeConnectionInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if irci.AdditionalProperties == nil { - irci.AdditionalProperties = make(map[string]interface{}) - } - irci.AdditionalProperties[k] = additionalProperties - } - case "serviceToken": - if v != nil { - var serviceToken string - err = json.Unmarshal(*v, &serviceToken) - if err != nil { - return err - } - irci.ServiceToken = &serviceToken - } - case "identityCertThumbprint": - if v != nil { - var identityCertThumbprint string - err = json.Unmarshal(*v, &identityCertThumbprint) - if err != nil { - return err - } - irci.IdentityCertThumbprint = &identityCertThumbprint - } - case "hostServiceUri": - if v != nil { - var hostServiceURI string - err = json.Unmarshal(*v, &hostServiceURI) - if err != nil { - return err - } - irci.HostServiceURI = &hostServiceURI - } - case "version": - if v != nil { - var version string - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - irci.Version = &version - } - case "publicKey": - if v != nil { - var publicKey string - err = json.Unmarshal(*v, &publicKey) - if err != nil { - return err - } - irci.PublicKey = &publicKey - } - case "isIdentityCertExprired": - if v != nil { - var isIdentityCertExprired bool - err = json.Unmarshal(*v, &isIdentityCertExprired) - if err != nil { - return err - } - irci.IsIdentityCertExprired = &isIdentityCertExprired - } - } - } - - return nil -} - -// IntegrationRuntimeCustomSetupScriptProperties custom setup script properties for a managed dedicated -// integration runtime. -type IntegrationRuntimeCustomSetupScriptProperties struct { - // BlobContainerURI - The URI of the Azure blob container that contains the custom setup script. - BlobContainerURI *string `json:"blobContainerUri,omitempty"` - // SasToken - The SAS token of the Azure blob container. - SasToken *SecureString `json:"sasToken,omitempty"` -} - -// IntegrationRuntimeCustomerVirtualNetwork the definition and properties of virtual network to which -// Azure-SSIS integration runtime will join. -type IntegrationRuntimeCustomerVirtualNetwork struct { - // SubnetID - The ID of subnet to which Azure-SSIS integration runtime will join. - SubnetID *string `json:"subnetId,omitempty"` -} - -// IntegrationRuntimeDataFlowProperties data flow properties for managed integration runtime. -type IntegrationRuntimeDataFlowProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ComputeType - Compute type of the cluster which will execute data flow job. Possible values include: 'DataFlowComputeTypeGeneral', 'DataFlowComputeTypeMemoryOptimized', 'DataFlowComputeTypeComputeOptimized' - ComputeType DataFlowComputeType `json:"computeType,omitempty"` - // CoreCount - 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"` - // TimeToLive - Time to live (in minutes) setting of the cluster which will execute data flow job. - TimeToLive *int32 `json:"timeToLive,omitempty"` - // Cleanup - 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"` - // CustomProperties - Custom properties are used to tune the data flow runtime performance. - CustomProperties *[]IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem `json:"customProperties,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeDataFlowProperties. -func (irdfp IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irdfp.ComputeType != "" { - objectMap["computeType"] = irdfp.ComputeType - } - if irdfp.CoreCount != nil { - objectMap["coreCount"] = irdfp.CoreCount - } - if irdfp.TimeToLive != nil { - objectMap["timeToLive"] = irdfp.TimeToLive - } - if irdfp.Cleanup != nil { - objectMap["cleanup"] = irdfp.Cleanup - } - if irdfp.CustomProperties != nil { - objectMap["customProperties"] = irdfp.CustomProperties - } - for k, v := range irdfp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeDataFlowProperties struct. -func (irdfp *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if irdfp.AdditionalProperties == nil { - irdfp.AdditionalProperties = make(map[string]interface{}) - } - irdfp.AdditionalProperties[k] = additionalProperties - } - case "computeType": - if v != nil { - var computeType DataFlowComputeType - err = json.Unmarshal(*v, &computeType) - if err != nil { - return err - } - irdfp.ComputeType = computeType - } - case "coreCount": - if v != nil { - var coreCount int32 - err = json.Unmarshal(*v, &coreCount) - if err != nil { - return err - } - irdfp.CoreCount = &coreCount - } - case "timeToLive": - if v != nil { - var timeToLive int32 - err = json.Unmarshal(*v, &timeToLive) - if err != nil { - return err - } - irdfp.TimeToLive = &timeToLive - } - case "cleanup": - if v != nil { - var cleanup bool - err = json.Unmarshal(*v, &cleanup) - if err != nil { - return err - } - irdfp.Cleanup = &cleanup - } - case "customProperties": - if v != nil { - var customProperties []IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem - err = json.Unmarshal(*v, &customProperties) - if err != nil { - return err - } - irdfp.CustomProperties = &customProperties - } - } - } - - return nil -} - -// IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem ... -type IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem struct { - // Name - Name of custom property. - Name *string `json:"name,omitempty"` - // Value - Value of custom property. - Value *string `json:"value,omitempty"` -} - -// IntegrationRuntimeDataProxyProperties data proxy properties for a managed dedicated integration runtime. -type IntegrationRuntimeDataProxyProperties struct { - // ConnectVia - The self-hosted integration runtime reference. - ConnectVia *EntityReference `json:"connectVia,omitempty"` - // StagingLinkedService - The staging linked service reference. - StagingLinkedService *EntityReference `json:"stagingLinkedService,omitempty"` - // Path - The path to contain the staged data in the Blob storage. - Path *string `json:"path,omitempty"` -} - -// IntegrationRuntimeDebugResource integration runtime debug resource. -type IntegrationRuntimeDebugResource struct { - // Properties - Integration runtime properties. - Properties BasicIntegrationRuntime `json:"properties,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeDebugResource struct. -func (irdr *IntegrationRuntimeDebugResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicIntegrationRuntime(*v) - if err != nil { - return err - } - irdr.Properties = properties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - irdr.Name = &name - } - } - } - - return nil -} - -// IntegrationRuntimeListResponse a list of integration runtime resources. -type IntegrationRuntimeListResponse struct { - autorest.Response `json:"-"` - // Value - List of integration runtimes. - Value *[]IntegrationRuntimeResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// IntegrationRuntimeListResponseIterator provides access to a complete listing of -// IntegrationRuntimeResource values. -type IntegrationRuntimeListResponseIterator struct { - i int - page IntegrationRuntimeListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *IntegrationRuntimeListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IntegrationRuntimeListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *IntegrationRuntimeListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter IntegrationRuntimeListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter IntegrationRuntimeListResponseIterator) Response() IntegrationRuntimeListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter IntegrationRuntimeListResponseIterator) Value() IntegrationRuntimeResource { - if !iter.page.NotDone() { - return IntegrationRuntimeResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the IntegrationRuntimeListResponseIterator type. -func NewIntegrationRuntimeListResponseIterator(page IntegrationRuntimeListResponsePage) IntegrationRuntimeListResponseIterator { - return IntegrationRuntimeListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (irlr IntegrationRuntimeListResponse) IsEmpty() bool { - return irlr.Value == nil || len(*irlr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (irlr IntegrationRuntimeListResponse) hasNextLink() bool { - return irlr.NextLink != nil && len(*irlr.NextLink) != 0 -} - -// integrationRuntimeListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (irlr IntegrationRuntimeListResponse) integrationRuntimeListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !irlr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(irlr.NextLink))) -} - -// IntegrationRuntimeListResponsePage contains a page of IntegrationRuntimeResource values. -type IntegrationRuntimeListResponsePage struct { - fn func(context.Context, IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error) - irlr IntegrationRuntimeListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *IntegrationRuntimeListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/IntegrationRuntimeListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.irlr) - if err != nil { - return err - } - page.irlr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *IntegrationRuntimeListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page IntegrationRuntimeListResponsePage) NotDone() bool { - return !page.irlr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page IntegrationRuntimeListResponsePage) Response() IntegrationRuntimeListResponse { - return page.irlr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page IntegrationRuntimeListResponsePage) Values() []IntegrationRuntimeResource { - if page.irlr.IsEmpty() { - return nil - } - return *page.irlr.Value -} - -// Creates a new instance of the IntegrationRuntimeListResponsePage type. -func NewIntegrationRuntimeListResponsePage(cur IntegrationRuntimeListResponse, getNextPage func(context.Context, IntegrationRuntimeListResponse) (IntegrationRuntimeListResponse, error)) IntegrationRuntimeListResponsePage { - return IntegrationRuntimeListResponsePage{ - fn: getNextPage, - irlr: cur, - } -} - -// IntegrationRuntimeMonitoringData get monitoring data response. -type IntegrationRuntimeMonitoringData struct { - autorest.Response `json:"-"` - // Name - Integration runtime name. - Name *string `json:"name,omitempty"` - // Nodes - Integration runtime node monitoring data. - Nodes *[]IntegrationRuntimeNodeMonitoringData `json:"nodes,omitempty"` -} - -// IntegrationRuntimeNodeIPAddress the IP address of self-hosted integration runtime node. -type IntegrationRuntimeNodeIPAddress struct { - autorest.Response `json:"-"` - // IPAddress - READ-ONLY; The IP address of self-hosted integration runtime node. - IPAddress *string `json:"ipAddress,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeIPAddress. -func (irnia IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// IntegrationRuntimeNodeMonitoringData monitoring data for integration runtime node. -type IntegrationRuntimeNodeMonitoringData struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // NodeName - READ-ONLY; Name of the integration runtime node. - NodeName *string `json:"nodeName,omitempty"` - // AvailableMemoryInMB - READ-ONLY; Available memory (MB) on the integration runtime node. - AvailableMemoryInMB *int32 `json:"availableMemoryInMB,omitempty"` - // CPUUtilization - READ-ONLY; CPU percentage on the integration runtime node. - CPUUtilization *int32 `json:"cpuUtilization,omitempty"` - // ConcurrentJobsLimit - READ-ONLY; Maximum concurrent jobs on the integration runtime node. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` - // ConcurrentJobsRunning - READ-ONLY; The number of jobs currently running on the integration runtime node. - ConcurrentJobsRunning *int32 `json:"concurrentJobsRunning,omitempty"` - // MaxConcurrentJobs - READ-ONLY; The maximum concurrent jobs in this integration runtime. - MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` - // SentBytes - READ-ONLY; Sent bytes on the integration runtime node. - SentBytes *float64 `json:"sentBytes,omitempty"` - // ReceivedBytes - READ-ONLY; Received bytes on the integration runtime node. - ReceivedBytes *float64 `json:"receivedBytes,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeNodeMonitoringData. -func (irnmd IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - for k, v := range irnmd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeNodeMonitoringData struct. -func (irnmd *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if irnmd.AdditionalProperties == nil { - irnmd.AdditionalProperties = make(map[string]interface{}) - } - irnmd.AdditionalProperties[k] = additionalProperties - } - case "nodeName": - if v != nil { - var nodeName string - err = json.Unmarshal(*v, &nodeName) - if err != nil { - return err - } - irnmd.NodeName = &nodeName - } - case "availableMemoryInMB": - if v != nil { - var availableMemoryInMB int32 - err = json.Unmarshal(*v, &availableMemoryInMB) - if err != nil { - return err - } - irnmd.AvailableMemoryInMB = &availableMemoryInMB - } - case "cpuUtilization": - if v != nil { - var CPUUtilization int32 - err = json.Unmarshal(*v, &CPUUtilization) - if err != nil { - return err - } - irnmd.CPUUtilization = &CPUUtilization - } - case "concurrentJobsLimit": - if v != nil { - var concurrentJobsLimit int32 - err = json.Unmarshal(*v, &concurrentJobsLimit) - if err != nil { - return err - } - irnmd.ConcurrentJobsLimit = &concurrentJobsLimit - } - case "concurrentJobsRunning": - if v != nil { - var concurrentJobsRunning int32 - err = json.Unmarshal(*v, &concurrentJobsRunning) - if err != nil { - return err - } - irnmd.ConcurrentJobsRunning = &concurrentJobsRunning - } - case "maxConcurrentJobs": - if v != nil { - var maxConcurrentJobs int32 - err = json.Unmarshal(*v, &maxConcurrentJobs) - if err != nil { - return err - } - irnmd.MaxConcurrentJobs = &maxConcurrentJobs - } - case "sentBytes": - if v != nil { - var sentBytes float64 - err = json.Unmarshal(*v, &sentBytes) - if err != nil { - return err - } - irnmd.SentBytes = &sentBytes - } - case "receivedBytes": - if v != nil { - var receivedBytes float64 - err = json.Unmarshal(*v, &receivedBytes) - if err != nil { - return err - } - irnmd.ReceivedBytes = &receivedBytes - } - } - } - - return nil -} - -// IntegrationRuntimeObjectMetadataRefreshFuture an abstraction for monitoring and retrieving the results -// of a long-running operation. -type IntegrationRuntimeObjectMetadataRefreshFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(IntegrationRuntimeObjectMetadataClient) (SsisObjectMetadataStatusResponse, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *IntegrationRuntimeObjectMetadataRefreshFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for IntegrationRuntimeObjectMetadataRefreshFuture.Result. -func (future *IntegrationRuntimeObjectMetadataRefreshFuture) result(client IntegrationRuntimeObjectMetadataClient) (somsr SsisObjectMetadataStatusResponse, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeObjectMetadataRefreshFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - somsr.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimeObjectMetadataRefreshFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if somsr.Response.Response, err = future.GetResult(sender); err == nil && somsr.Response.Response.StatusCode != http.StatusNoContent { - somsr, err = client.RefreshResponder(somsr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimeObjectMetadataRefreshFuture", "Result", somsr.Response.Response, "Failure responding to request") - } - } - return -} - -// IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint azure-SSIS integration runtime outbound -// network dependency endpoints for one category. -type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint struct { - // Category - The category of outbound network dependency. - Category *string `json:"category,omitempty"` - // Endpoints - The endpoints for outbound network dependency. - Endpoints *[]IntegrationRuntimeOutboundNetworkDependenciesEndpoint `json:"endpoints,omitempty"` -} - -// IntegrationRuntimeOutboundNetworkDependenciesEndpoint the endpoint for Azure-SSIS integration runtime -// outbound network dependency. -type IntegrationRuntimeOutboundNetworkDependenciesEndpoint struct { - // DomainName - The domain name of endpoint. - DomainName *string `json:"domainName,omitempty"` - // EndpointDetails - The details of endpoint. - EndpointDetails *[]IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails `json:"endpointDetails,omitempty"` -} - -// IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails the details of Azure-SSIS integration -// runtime outbound network dependency endpoint. -type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails struct { - // Port - The port of endpoint. - Port *int32 `json:"port,omitempty"` -} - -// IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse azure-SSIS integration runtime outbound -// network dependency endpoints. -type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse struct { - autorest.Response `json:"-"` - // Value - The list of outbound network dependency endpoints. - Value *[]IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint `json:"value,omitempty"` -} - -// IntegrationRuntimeReference integration runtime reference type. -type IntegrationRuntimeReference struct { - // Type - Type of integration runtime. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference integration runtime name. - ReferenceName *string `json:"referenceName,omitempty"` - // Parameters - Arguments for integration runtime. - Parameters map[string]interface{} `json:"parameters"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeReference. -func (irr IntegrationRuntimeReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irr.Type != nil { - objectMap["type"] = irr.Type - } - if irr.ReferenceName != nil { - objectMap["referenceName"] = irr.ReferenceName - } - if irr.Parameters != nil { - objectMap["parameters"] = irr.Parameters - } - return json.Marshal(objectMap) -} - -// IntegrationRuntimeRegenerateKeyParameters parameters to regenerate the authentication key. -type IntegrationRuntimeRegenerateKeyParameters struct { - // KeyName - The name of the authentication key to regenerate. Possible values include: 'IntegrationRuntimeAuthKeyNameAuthKey1', 'IntegrationRuntimeAuthKeyNameAuthKey2' - KeyName IntegrationRuntimeAuthKeyName `json:"keyName,omitempty"` -} - -// IntegrationRuntimeResource integration runtime resource type. -type IntegrationRuntimeResource struct { - autorest.Response `json:"-"` - // Properties - Integration runtime properties. - Properties BasicIntegrationRuntime `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeResource. -func (irr IntegrationRuntimeResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["properties"] = irr.Properties - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeResource struct. -func (irr *IntegrationRuntimeResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicIntegrationRuntime(*v) - if err != nil { - return err - } - irr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - irr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - irr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - irr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - irr.Etag = &etag - } - } - } - - return nil -} - -// IntegrationRuntimeSsisCatalogInfo catalog information for managed dedicated integration runtime. -type IntegrationRuntimeSsisCatalogInfo struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // CatalogServerEndpoint - The catalog database server URL. - CatalogServerEndpoint *string `json:"catalogServerEndpoint,omitempty"` - // CatalogAdminUserName - The administrator user name of catalog database. - CatalogAdminUserName *string `json:"catalogAdminUserName,omitempty"` - // CatalogAdminPassword - The password of the administrator user account of the catalog database. - CatalogAdminPassword *SecureString `json:"catalogAdminPassword,omitempty"` - // CatalogPricingTier - The pricing tier for the catalog database. The valid values could be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible values include: 'IntegrationRuntimeSsisCatalogPricingTierBasic', 'IntegrationRuntimeSsisCatalogPricingTierStandard', 'IntegrationRuntimeSsisCatalogPricingTierPremium', 'IntegrationRuntimeSsisCatalogPricingTierPremiumRS' - CatalogPricingTier IntegrationRuntimeSsisCatalogPricingTier `json:"catalogPricingTier,omitempty"` - // DualStandbyPairName - The dual standby pair name of Azure-SSIS Integration Runtimes to support SSISDB failover. - DualStandbyPairName *string `json:"dualStandbyPairName,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeSsisCatalogInfo. -func (irsci IntegrationRuntimeSsisCatalogInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irsci.CatalogServerEndpoint != nil { - objectMap["catalogServerEndpoint"] = irsci.CatalogServerEndpoint - } - if irsci.CatalogAdminUserName != nil { - objectMap["catalogAdminUserName"] = irsci.CatalogAdminUserName - } - if irsci.CatalogAdminPassword != nil { - objectMap["catalogAdminPassword"] = irsci.CatalogAdminPassword - } - if irsci.CatalogPricingTier != "" { - objectMap["catalogPricingTier"] = irsci.CatalogPricingTier - } - if irsci.DualStandbyPairName != nil { - objectMap["dualStandbyPairName"] = irsci.DualStandbyPairName - } - for k, v := range irsci.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeSsisCatalogInfo struct. -func (irsci *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if irsci.AdditionalProperties == nil { - irsci.AdditionalProperties = make(map[string]interface{}) - } - irsci.AdditionalProperties[k] = additionalProperties - } - case "catalogServerEndpoint": - if v != nil { - var catalogServerEndpoint string - err = json.Unmarshal(*v, &catalogServerEndpoint) - if err != nil { - return err - } - irsci.CatalogServerEndpoint = &catalogServerEndpoint - } - case "catalogAdminUserName": - if v != nil { - var catalogAdminUserName string - err = json.Unmarshal(*v, &catalogAdminUserName) - if err != nil { - return err - } - irsci.CatalogAdminUserName = &catalogAdminUserName - } - case "catalogAdminPassword": - if v != nil { - var catalogAdminPassword SecureString - err = json.Unmarshal(*v, &catalogAdminPassword) - if err != nil { - return err - } - irsci.CatalogAdminPassword = &catalogAdminPassword - } - case "catalogPricingTier": - if v != nil { - var catalogPricingTier IntegrationRuntimeSsisCatalogPricingTier - err = json.Unmarshal(*v, &catalogPricingTier) - if err != nil { - return err - } - irsci.CatalogPricingTier = catalogPricingTier - } - case "dualStandbyPairName": - if v != nil { - var dualStandbyPairName string - err = json.Unmarshal(*v, &dualStandbyPairName) - if err != nil { - return err - } - irsci.DualStandbyPairName = &dualStandbyPairName - } - } - } - - return nil -} - -// IntegrationRuntimeSsisProperties SSIS properties for managed integration runtime. -type IntegrationRuntimeSsisProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // CatalogInfo - Catalog information for managed dedicated integration runtime. - CatalogInfo *IntegrationRuntimeSsisCatalogInfo `json:"catalogInfo,omitempty"` - // LicenseType - License type for bringing your own license scenario. Possible values include: 'IntegrationRuntimeLicenseTypeBasePrice', 'IntegrationRuntimeLicenseTypeLicenseIncluded' - LicenseType IntegrationRuntimeLicenseType `json:"licenseType,omitempty"` - // CustomSetupScriptProperties - Custom setup script properties for a managed dedicated integration runtime. - CustomSetupScriptProperties *IntegrationRuntimeCustomSetupScriptProperties `json:"customSetupScriptProperties,omitempty"` - // DataProxyProperties - Data proxy properties for a managed dedicated integration runtime. - DataProxyProperties *IntegrationRuntimeDataProxyProperties `json:"dataProxyProperties,omitempty"` - // Edition - The edition for the SSIS Integration Runtime. Possible values include: 'IntegrationRuntimeEditionStandard', 'IntegrationRuntimeEditionEnterprise' - Edition IntegrationRuntimeEdition `json:"edition,omitempty"` - // ExpressCustomSetupProperties - Custom setup without script properties for a SSIS integration runtime. - ExpressCustomSetupProperties *[]BasicCustomSetupBase `json:"expressCustomSetupProperties,omitempty"` - // PackageStores - Package stores for the SSIS Integration Runtime. - PackageStores *[]PackageStore `json:"packageStores,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeSsisProperties. -func (irsp IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irsp.CatalogInfo != nil { - objectMap["catalogInfo"] = irsp.CatalogInfo - } - if irsp.LicenseType != "" { - objectMap["licenseType"] = irsp.LicenseType - } - if irsp.CustomSetupScriptProperties != nil { - objectMap["customSetupScriptProperties"] = irsp.CustomSetupScriptProperties - } - if irsp.DataProxyProperties != nil { - objectMap["dataProxyProperties"] = irsp.DataProxyProperties - } - if irsp.Edition != "" { - objectMap["edition"] = irsp.Edition - } - if irsp.ExpressCustomSetupProperties != nil { - objectMap["expressCustomSetupProperties"] = irsp.ExpressCustomSetupProperties - } - if irsp.PackageStores != nil { - objectMap["packageStores"] = irsp.PackageStores - } - if irsp.Credential != nil { - objectMap["credential"] = irsp.Credential - } - for k, v := range irsp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeSsisProperties struct. -func (irsp *IntegrationRuntimeSsisProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if irsp.AdditionalProperties == nil { - irsp.AdditionalProperties = make(map[string]interface{}) - } - irsp.AdditionalProperties[k] = additionalProperties - } - case "catalogInfo": - if v != nil { - var catalogInfo IntegrationRuntimeSsisCatalogInfo - err = json.Unmarshal(*v, &catalogInfo) - if err != nil { - return err - } - irsp.CatalogInfo = &catalogInfo - } - case "licenseType": - if v != nil { - var licenseType IntegrationRuntimeLicenseType - err = json.Unmarshal(*v, &licenseType) - if err != nil { - return err - } - irsp.LicenseType = licenseType - } - case "customSetupScriptProperties": - if v != nil { - var customSetupScriptProperties IntegrationRuntimeCustomSetupScriptProperties - err = json.Unmarshal(*v, &customSetupScriptProperties) - if err != nil { - return err - } - irsp.CustomSetupScriptProperties = &customSetupScriptProperties - } - case "dataProxyProperties": - if v != nil { - var dataProxyProperties IntegrationRuntimeDataProxyProperties - err = json.Unmarshal(*v, &dataProxyProperties) - if err != nil { - return err - } - irsp.DataProxyProperties = &dataProxyProperties - } - case "edition": - if v != nil { - var edition IntegrationRuntimeEdition - err = json.Unmarshal(*v, &edition) - if err != nil { - return err - } - irsp.Edition = edition - } - case "expressCustomSetupProperties": - if v != nil { - expressCustomSetupProperties, err := unmarshalBasicCustomSetupBaseArray(*v) - if err != nil { - return err - } - irsp.ExpressCustomSetupProperties = &expressCustomSetupProperties - } - case "packageStores": - if v != nil { - var packageStores []PackageStore - err = json.Unmarshal(*v, &packageStores) - if err != nil { - return err - } - irsp.PackageStores = &packageStores - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - irsp.Credential = &credential - } - } - } - - return nil -} - -// BasicIntegrationRuntimeStatus integration runtime status. -type BasicIntegrationRuntimeStatus interface { - AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) - AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) - AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) -} - -// IntegrationRuntimeStatus integration runtime status. -type IntegrationRuntimeStatus struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - READ-ONLY; The state of integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' - State IntegrationRuntimeState `json:"state,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' - Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` -} - -func unmarshalBasicIntegrationRuntimeStatus(body []byte) (BasicIntegrationRuntimeStatus, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicIntegrationRuntimeStatusTypeSelfHosted): - var shirs SelfHostedIntegrationRuntimeStatus - err := json.Unmarshal(body, &shirs) - return shirs, err - case string(TypeBasicIntegrationRuntimeStatusTypeManaged): - var mirs ManagedIntegrationRuntimeStatus - err := json.Unmarshal(body, &mirs) - return mirs, err - default: - var irs IntegrationRuntimeStatus - err := json.Unmarshal(body, &irs) - return irs, err - } -} -func unmarshalBasicIntegrationRuntimeStatusArray(body []byte) ([]BasicIntegrationRuntimeStatus, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - irsArray := make([]BasicIntegrationRuntimeStatus, len(rawMessages)) - - for index, rawMessage := range rawMessages { - irs, err := unmarshalBasicIntegrationRuntimeStatus(*rawMessage) - if err != nil { - return nil, err - } - irsArray[index] = irs - } - return irsArray, nil -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - irs.Type = TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus - objectMap := make(map[string]interface{}) - if irs.Type != "" { - objectMap["type"] = irs.Type - } - for k, v := range irs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { - return &irs, true -} - -// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for IntegrationRuntimeStatus. -func (irs IntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { - return &irs, true -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeStatus struct. -func (irs *IntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if irs.AdditionalProperties == nil { - irs.AdditionalProperties = make(map[string]interface{}) - } - irs.AdditionalProperties[k] = additionalProperties - } - case "dataFactoryName": - if v != nil { - var dataFactoryName string - err = json.Unmarshal(*v, &dataFactoryName) - if err != nil { - return err - } - irs.DataFactoryName = &dataFactoryName - } - case "state": - if v != nil { - var state IntegrationRuntimeState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - irs.State = state - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntimeStatus - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - irs.Type = typeVar - } - } - } - - return nil -} - -// IntegrationRuntimeStatusListResponse a list of integration runtime status. -type IntegrationRuntimeStatusListResponse struct { - // Value - List of integration runtime status. - Value *[]IntegrationRuntimeStatusResponse `json:"value,omitempty"` - // NextLink - 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 { - autorest.Response `json:"-"` - // Name - READ-ONLY; The integration runtime name. - Name *string `json:"name,omitempty"` - // Properties - Integration runtime properties. - Properties BasicIntegrationRuntimeStatus `json:"properties,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeStatusResponse. -func (irsr IntegrationRuntimeStatusResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["properties"] = irsr.Properties - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeStatusResponse struct. -func (irsr *IntegrationRuntimeStatusResponse) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - irsr.Name = &name - } - case "properties": - if v != nil { - properties, err := unmarshalBasicIntegrationRuntimeStatus(*v) - if err != nil { - return err - } - irsr.Properties = properties - } - } - } - - return nil -} - -// IntegrationRuntimeVNetProperties vNet properties for managed integration runtime. -type IntegrationRuntimeVNetProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // VNetID - The ID of the VNet that this integration runtime will join. - VNetID *string `json:"vNetId,omitempty"` - // Subnet - The name of the subnet this integration runtime will join. - Subnet *string `json:"subnet,omitempty"` - // PublicIPs - Resource IDs of the public IP addresses that this integration runtime will use. - PublicIPs *[]string `json:"publicIPs,omitempty"` - // SubnetID - The ID of subnet, to which this Azure-SSIS integration runtime will be joined. - SubnetID *string `json:"subnetId,omitempty"` -} - -// MarshalJSON is the custom marshaler for IntegrationRuntimeVNetProperties. -func (irvnp IntegrationRuntimeVNetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if irvnp.VNetID != nil { - objectMap["vNetId"] = irvnp.VNetID - } - if irvnp.Subnet != nil { - objectMap["subnet"] = irvnp.Subnet - } - if irvnp.PublicIPs != nil { - objectMap["publicIPs"] = irvnp.PublicIPs - } - if irvnp.SubnetID != nil { - objectMap["subnetId"] = irvnp.SubnetID - } - for k, v := range irvnp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for IntegrationRuntimeVNetProperties struct. -func (irvnp *IntegrationRuntimeVNetProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if irvnp.AdditionalProperties == nil { - irvnp.AdditionalProperties = make(map[string]interface{}) - } - irvnp.AdditionalProperties[k] = additionalProperties - } - case "vNetId": - if v != nil { - var vNetID string - err = json.Unmarshal(*v, &vNetID) - if err != nil { - return err - } - irvnp.VNetID = &vNetID - } - case "subnet": - if v != nil { - var subnet string - err = json.Unmarshal(*v, &subnet) - if err != nil { - return err - } - irvnp.Subnet = &subnet - } - case "publicIPs": - if v != nil { - var publicIPs []string - err = json.Unmarshal(*v, &publicIPs) - if err != nil { - return err - } - irvnp.PublicIPs = &publicIPs - } - case "subnetId": - if v != nil { - var subnetID string - err = json.Unmarshal(*v, &subnetID) - if err != nil { - return err - } - irvnp.SubnetID = &subnetID - } - } - } - - return nil -} - -// IntegrationRuntimesStartFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type IntegrationRuntimesStartFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(IntegrationRuntimesClient) (IntegrationRuntimeStatusResponse, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *IntegrationRuntimesStartFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for IntegrationRuntimesStartFuture.Result. -func (future *IntegrationRuntimesStartFuture) result(client IntegrationRuntimesClient) (irsr IntegrationRuntimeStatusResponse, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - irsr.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStartFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if irsr.Response.Response, err = future.GetResult(sender); err == nil && irsr.Response.Response.StatusCode != http.StatusNoContent { - irsr, err = client.StartResponder(irsr.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStartFuture", "Result", irsr.Response.Response, "Failure responding to request") - } - } - return -} - -// IntegrationRuntimesStopFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type IntegrationRuntimesStopFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(IntegrationRuntimesClient) (autorest.Response, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *IntegrationRuntimesStopFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for IntegrationRuntimesStopFuture.Result. -func (future *IntegrationRuntimesStopFuture) result(client IntegrationRuntimesClient) (ar autorest.Response, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.IntegrationRuntimesStopFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - ar.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.IntegrationRuntimesStopFuture") - return - } - ar.Response = future.Response() - return -} - -// JSONDataset json dataset. -type JSONDataset struct { - // JSONDatasetTypeProperties - Json dataset properties. - *JSONDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JSONDataset. -func (jd JSONDataset) MarshalJSON() ([]byte, error) { - jd.Type = TypeBasicDatasetTypeJSON - objectMap := make(map[string]interface{}) - if jd.JSONDatasetTypeProperties != nil { - objectMap["typeProperties"] = jd.JSONDatasetTypeProperties - } - if jd.Description != nil { - objectMap["description"] = jd.Description - } - if jd.Structure != nil { - objectMap["structure"] = jd.Structure - } - if jd.Schema != nil { - objectMap["schema"] = jd.Schema - } - if jd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = jd.LinkedServiceName - } - if jd.Parameters != nil { - objectMap["parameters"] = jd.Parameters - } - if jd.Annotations != nil { - objectMap["annotations"] = jd.Annotations - } - if jd.Folder != nil { - objectMap["folder"] = jd.Folder - } - if jd.Type != "" { - objectMap["type"] = jd.Type - } - for k, v := range jd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsJSONDataset() (*JSONDataset, bool) { - return &jd, true -} - -// AsDelimitedTextDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for JSONDataset. -func (jd JSONDataset) AsBasicDataset() (BasicDataset, bool) { - return &jd, true -} - -// UnmarshalJSON is the custom unmarshaler for JSONDataset struct. -func (jd *JSONDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var JSONDatasetTypeProperties JSONDatasetTypeProperties - err = json.Unmarshal(*v, &JSONDatasetTypeProperties) - if err != nil { - return err - } - jd.JSONDatasetTypeProperties = &JSONDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jd.AdditionalProperties == nil { - jd.AdditionalProperties = make(map[string]interface{}) - } - jd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - jd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - jd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - jd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - jd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - jd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - jd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - jd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jd.Type = typeVar - } - } - } - - return nil -} - -// JSONDatasetTypeProperties json dataset properties. -type JSONDatasetTypeProperties struct { - // Location - The location of the json data storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // EncodingName - 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"` - // Compression - The data compression method used for the json dataset. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for JSONDatasetTypeProperties struct. -func (jdtp *JSONDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - jdtp.Location = location - } - case "encodingName": - if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) - if err != nil { - return err - } - jdtp.EncodingName = encodingName - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - jdtp.Compression = &compression - } - } - } - - return nil -} - -// JSONFormat the data stored in JSON format. -type JSONFormat struct { - // FilePattern - 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"` - // NestingSeparator - The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` - // EncodingName - 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"` - // JSONNodeReference - The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType string). - JSONNodeReference interface{} `json:"jsonNodeReference,omitempty"` - // JSONPathDefinition - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JSONFormat. -func (jf JSONFormat) MarshalJSON() ([]byte, error) { - jf.Type = TypeBasicDatasetStorageFormatTypeJSONFormat - objectMap := make(map[string]interface{}) - if jf.FilePattern != nil { - objectMap["filePattern"] = jf.FilePattern - } - if jf.NestingSeparator != nil { - objectMap["nestingSeparator"] = jf.NestingSeparator - } - if jf.EncodingName != nil { - objectMap["encodingName"] = jf.EncodingName - } - if jf.JSONNodeReference != nil { - objectMap["jsonNodeReference"] = jf.JSONNodeReference - } - if jf.JSONPathDefinition != nil { - objectMap["jsonPathDefinition"] = jf.JSONPathDefinition - } - if jf.Serializer != nil { - objectMap["serializer"] = jf.Serializer - } - if jf.Deserializer != nil { - objectMap["deserializer"] = jf.Deserializer - } - if jf.Type != "" { - objectMap["type"] = jf.Type - } - for k, v := range jf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsParquetFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// AsOrcFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// AsAvroFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// AsJSONFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsJSONFormat() (*JSONFormat, bool) { - return &jf, true -} - -// AsTextFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for JSONFormat. -func (jf JSONFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &jf, true -} - -// UnmarshalJSON is the custom unmarshaler for JSONFormat struct. -func (jf *JSONFormat) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "filePattern": - if v != nil { - var filePattern interface{} - err = json.Unmarshal(*v, &filePattern) - if err != nil { - return err - } - jf.FilePattern = filePattern - } - case "nestingSeparator": - if v != nil { - var nestingSeparator interface{} - err = json.Unmarshal(*v, &nestingSeparator) - if err != nil { - return err - } - jf.NestingSeparator = nestingSeparator - } - case "encodingName": - if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) - if err != nil { - return err - } - jf.EncodingName = encodingName - } - case "jsonNodeReference": - if v != nil { - var JSONNodeReference interface{} - err = json.Unmarshal(*v, &JSONNodeReference) - if err != nil { - return err - } - jf.JSONNodeReference = JSONNodeReference - } - case "jsonPathDefinition": - if v != nil { - var JSONPathDefinition interface{} - err = json.Unmarshal(*v, &JSONPathDefinition) - if err != nil { - return err - } - jf.JSONPathDefinition = JSONPathDefinition - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jf.AdditionalProperties == nil { - jf.AdditionalProperties = make(map[string]interface{}) - } - jf.AdditionalProperties[k] = additionalProperties - } - case "serializer": - if v != nil { - var serializer interface{} - err = json.Unmarshal(*v, &serializer) - if err != nil { - return err - } - jf.Serializer = serializer - } - case "deserializer": - if v != nil { - var deserializer interface{} - err = json.Unmarshal(*v, &deserializer) - if err != nil { - return err - } - jf.Deserializer = deserializer - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetStorageFormat - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jf.Type = typeVar - } - } - } - - return nil -} - -// JSONReadSettings json read settings. -type JSONReadSettings struct { - // CompressionProperties - Compression settings. - CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JSONReadSettings. -func (jrs JSONReadSettings) MarshalJSON() ([]byte, error) { - jrs.Type = TypeBasicFormatReadSettingsTypeJSONReadSettings - objectMap := make(map[string]interface{}) - objectMap["compressionProperties"] = jrs.CompressionProperties - if jrs.Type != "" { - objectMap["type"] = jrs.Type - } - for k, v := range jrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { - return nil, false -} - -// AsXMLReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { - return nil, false -} - -// AsJSONReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { - return &jrs, true -} - -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { - return nil, false -} - -// AsParquetReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { - return nil, false -} - -// AsFormatReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { - return nil, false -} - -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for JSONReadSettings. -func (jrs JSONReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &jrs, true -} - -// UnmarshalJSON is the custom unmarshaler for JSONReadSettings struct. -func (jrs *JSONReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "compressionProperties": - if v != nil { - compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) - if err != nil { - return err - } - jrs.CompressionProperties = compressionProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jrs.AdditionalProperties == nil { - jrs.AdditionalProperties = make(map[string]interface{}) - } - jrs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jrs.Type = typeVar - } - } - } - - return nil -} - -// JSONSink a copy activity Json sink. -type JSONSink struct { - // StoreSettings - Json store settings. - StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` - // FormatSettings - Json format settings. - FormatSettings *JSONWriteSettings `json:"formatSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JSONSink. -func (js JSONSink) MarshalJSON() ([]byte, error) { - js.Type = TypeBasicCopySinkTypeJSONSink - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = js.StoreSettings - if js.FormatSettings != nil { - objectMap["formatSettings"] = js.FormatSettings - } - if js.WriteBatchSize != nil { - objectMap["writeBatchSize"] = js.WriteBatchSize - } - if js.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = js.WriteBatchTimeout - } - if js.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = js.SinkRetryCount - } - if js.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = js.SinkRetryWait - } - if js.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections - } - if js.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = js.DisableMetricsCollection - } - if js.Type != "" { - objectMap["type"] = js.Type - } - for k, v := range js.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsJSONSink() (*JSONSink, bool) { - return &js, true -} - -// AsDelimitedTextSink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for JSONSink. -func (js JSONSink) AsBasicCopySink() (BasicCopySink, bool) { - return &js, true -} - -// UnmarshalJSON is the custom unmarshaler for JSONSink struct. -func (js *JSONSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreWriteSettings(*v) - if err != nil { - return err - } - js.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings JSONWriteSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - js.FormatSettings = &formatSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if js.AdditionalProperties == nil { - js.AdditionalProperties = make(map[string]interface{}) - } - js.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - js.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - js.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - js.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - js.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - js.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - js.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - js.Type = typeVar - } - } - } - - return nil -} - -// JSONSource a copy activity Json source. -type JSONSource struct { - // StoreSettings - Json store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - Json format settings. - FormatSettings *JSONReadSettings `json:"formatSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JSONSource. -func (js JSONSource) MarshalJSON() ([]byte, error) { - js.Type = TypeBasicCopySourceTypeJSONSource - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = js.StoreSettings - if js.FormatSettings != nil { - objectMap["formatSettings"] = js.FormatSettings - } - if js.AdditionalColumns != nil { - objectMap["additionalColumns"] = js.AdditionalColumns - } - if js.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = js.SourceRetryCount - } - if js.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = js.SourceRetryWait - } - if js.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections - } - if js.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = js.DisableMetricsCollection - } - if js.Type != "" { - objectMap["type"] = js.Type - } - for k, v := range js.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsJSONSource() (*JSONSource, bool) { - return &js, true -} - -// AsDelimitedTextSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for JSONSource. -func (js JSONSource) AsBasicCopySource() (BasicCopySource, bool) { - return &js, true -} - -// UnmarshalJSON is the custom unmarshaler for JSONSource struct. -func (js *JSONSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - js.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings JSONReadSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - js.FormatSettings = &formatSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - js.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if js.AdditionalProperties == nil { - js.AdditionalProperties = make(map[string]interface{}) - } - js.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - js.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - js.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - js.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - js.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - js.Type = typeVar - } - } - } - - return nil -} - -// JSONWriteSettings json write settings. -type JSONWriteSettings struct { - // FilePattern - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JSONWriteSettings. -func (jws JSONWriteSettings) MarshalJSON() ([]byte, error) { - jws.Type = TypeBasicFormatWriteSettingsTypeJSONWriteSettings - objectMap := make(map[string]interface{}) - if jws.FilePattern != nil { - objectMap["filePattern"] = jws.FilePattern - } - if jws.Type != "" { - objectMap["type"] = jws.Type - } - for k, v := range jws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { - return &jws, true -} - -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { - return nil, false -} - -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { - return nil, false -} - -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { - return nil, false -} - -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { - return nil, false -} - -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return nil, false -} - -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for JSONWriteSettings. -func (jws JSONWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &jws, true -} - -// UnmarshalJSON is the custom unmarshaler for JSONWriteSettings struct. -func (jws *JSONWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "filePattern": - if v != nil { - var filePattern interface{} - err = json.Unmarshal(*v, &filePattern) - if err != nil { - return err - } - jws.FilePattern = filePattern - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jws.AdditionalProperties == nil { - jws.AdditionalProperties = make(map[string]interface{}) - } - jws.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jws.Type = typeVar - } - } - } - - return nil -} - -// JiraLinkedService jira Service linked service. -type JiraLinkedService struct { - // JiraLinkedServiceTypeProperties - Jira Service linked service properties. - *JiraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JiraLinkedService. -func (jls JiraLinkedService) MarshalJSON() ([]byte, error) { - jls.Type = TypeBasicLinkedServiceTypeJira - objectMap := make(map[string]interface{}) - if jls.JiraLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = jls.JiraLinkedServiceTypeProperties - } - if jls.ConnectVia != nil { - objectMap["connectVia"] = jls.ConnectVia - } - if jls.Description != nil { - objectMap["description"] = jls.Description - } - if jls.Parameters != nil { - objectMap["parameters"] = jls.Parameters - } - if jls.Annotations != nil { - objectMap["annotations"] = jls.Annotations - } - if jls.Type != "" { - objectMap["type"] = jls.Type - } - for k, v := range jls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return &jls, true -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for JiraLinkedService. -func (jls JiraLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &jls, true -} - -// UnmarshalJSON is the custom unmarshaler for JiraLinkedService struct. -func (jls *JiraLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var jiraLinkedServiceTypeProperties JiraLinkedServiceTypeProperties - err = json.Unmarshal(*v, &jiraLinkedServiceTypeProperties) - if err != nil { - return err - } - jls.JiraLinkedServiceTypeProperties = &jiraLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jls.AdditionalProperties == nil { - jls.AdditionalProperties = make(map[string]interface{}) - } - jls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - jls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - jls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - jls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - jls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jls.Type = typeVar - } - } - } - - return nil -} - -// JiraLinkedServiceTypeProperties jira Service linked service properties. -type JiraLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Jira service. (e.g. jira.example.com) - Host interface{} `json:"host,omitempty"` - // Port - 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"` - // Username - The user name that you use to access Jira Service. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the username field. - Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for JiraLinkedServiceTypeProperties struct. -func (jlstp *JiraLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - jlstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - jlstp.Port = port - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - jlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - jlstp.Password = password - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - jlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - jlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - jlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - jlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// JiraObjectDataset jira Service dataset. -type JiraObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JiraObjectDataset. -func (jod JiraObjectDataset) MarshalJSON() ([]byte, error) { - jod.Type = TypeBasicDatasetTypeJiraObject - objectMap := make(map[string]interface{}) - if jod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = jod.GenericDatasetTypeProperties - } - if jod.Description != nil { - objectMap["description"] = jod.Description - } - if jod.Structure != nil { - objectMap["structure"] = jod.Structure - } - if jod.Schema != nil { - objectMap["schema"] = jod.Schema - } - if jod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = jod.LinkedServiceName - } - if jod.Parameters != nil { - objectMap["parameters"] = jod.Parameters - } - if jod.Annotations != nil { - objectMap["annotations"] = jod.Annotations - } - if jod.Folder != nil { - objectMap["folder"] = jod.Folder - } - if jod.Type != "" { - objectMap["type"] = jod.Type - } - for k, v := range jod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return &jod, true -} - -// AsImpalaObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for JiraObjectDataset. -func (jod JiraObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &jod, true -} - -// UnmarshalJSON is the custom unmarshaler for JiraObjectDataset struct. -func (jod *JiraObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - jod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if jod.AdditionalProperties == nil { - jod.AdditionalProperties = make(map[string]interface{}) - } - jod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - jod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - jod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - jod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - jod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - jod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - jod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - jod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - jod.Type = typeVar - } - } - } - - return nil -} - -// JiraSource a copy activity Jira Service source. -type JiraSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for JiraSource. -func (js JiraSource) MarshalJSON() ([]byte, error) { - js.Type = TypeBasicCopySourceTypeJiraSource - objectMap := make(map[string]interface{}) - if js.Query != nil { - objectMap["query"] = js.Query - } - if js.QueryTimeout != nil { - objectMap["queryTimeout"] = js.QueryTimeout - } - if js.AdditionalColumns != nil { - objectMap["additionalColumns"] = js.AdditionalColumns - } - if js.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = js.SourceRetryCount - } - if js.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = js.SourceRetryWait - } - if js.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = js.MaxConcurrentConnections - } - if js.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = js.DisableMetricsCollection - } - if js.Type != "" { - objectMap["type"] = js.Type - } - for k, v := range js.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsJiraSource() (*JiraSource, bool) { - return &js, true -} - -// AsImpalaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &js, true -} - -// AsBinarySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for JiraSource. -func (js JiraSource) AsBasicCopySource() (BasicCopySource, bool) { - return &js, true -} - -// UnmarshalJSON is the custom unmarshaler for JiraSource struct. -func (js *JiraSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - js.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - js.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - js.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if js.AdditionalProperties == nil { - js.AdditionalProperties = make(map[string]interface{}) - } - js.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - js.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - js.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - js.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - js.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - js.Type = typeVar - } - } - } - - return nil -} - -// LakeHouseLinkedService microsoft Fabric LakeHouse linked service. -type LakeHouseLinkedService struct { - // LakeHouseLinkedServiceTypeProperties - Microsoft Fabric LakeHouse linked service properties. - *LakeHouseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) MarshalJSON() ([]byte, error) { - lhls.Type = TypeBasicLinkedServiceTypeLakeHouse - objectMap := make(map[string]interface{}) - if lhls.LakeHouseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = lhls.LakeHouseLinkedServiceTypeProperties - } - if lhls.ConnectVia != nil { - objectMap["connectVia"] = lhls.ConnectVia - } - if lhls.Description != nil { - objectMap["description"] = lhls.Description - } - if lhls.Parameters != nil { - objectMap["parameters"] = lhls.Parameters - } - if lhls.Annotations != nil { - objectMap["annotations"] = lhls.Annotations - } - if lhls.Type != "" { - objectMap["type"] = lhls.Type - } - for k, v := range lhls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return &lhls, true -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for LakeHouseLinkedService. -func (lhls LakeHouseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &lhls, true -} - -// UnmarshalJSON is the custom unmarshaler for LakeHouseLinkedService struct. -func (lhls *LakeHouseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var lakeHouseLinkedServiceTypeProperties LakeHouseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &lakeHouseLinkedServiceTypeProperties) - if err != nil { - return err - } - lhls.LakeHouseLinkedServiceTypeProperties = &lakeHouseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if lhls.AdditionalProperties == nil { - lhls.AdditionalProperties = make(map[string]interface{}) - } - lhls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - lhls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - lhls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - lhls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - lhls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lhls.Type = typeVar - } - } - } - - return nil -} - -// LakeHouseLinkedServiceTypeProperties microsoft Fabric LakeHouse linked service properties. -type LakeHouseLinkedServiceTypeProperties struct { - // WorkspaceID - The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). - WorkspaceID interface{} `json:"workspaceId,omitempty"` - // ArtifactID - The ID of Microsoft Fabric LakeHouse artifact. Type: string (or Expression with resultType string). - ArtifactID interface{} `json:"artifactId,omitempty"` - // ServicePrincipalID - The ID of the application used to authenticate against Microsoft Fabric LakeHouse. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The Key of the application used to authenticate against Microsoft Fabric LakeHouse. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // ServicePrincipalCredentialType - 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"` - // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for LakeHouseLinkedServiceTypeProperties struct. -func (lhlstp *LakeHouseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "workspaceId": - if v != nil { - var workspaceID interface{} - err = json.Unmarshal(*v, &workspaceID) - if err != nil { - return err - } - lhlstp.WorkspaceID = workspaceID - } - case "artifactId": - if v != nil { - var artifactID interface{} - err = json.Unmarshal(*v, &artifactID) - if err != nil { - return err - } - lhlstp.ArtifactID = artifactID - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - lhlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - lhlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - lhlstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - lhlstp.EncryptedCredential = &encryptedCredential - } - case "servicePrincipalCredentialType": - if v != nil { - var servicePrincipalCredentialType interface{} - err = json.Unmarshal(*v, &servicePrincipalCredentialType) - if err != nil { - return err - } - lhlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType - } - case "servicePrincipalCredential": - if v != nil { - servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - lhlstp.ServicePrincipalCredential = servicePrincipalCredential - } - } - } - - return nil -} - -// LakeHouseLocation the location of Microsoft Fabric LakeHouse Files dataset. -type LakeHouseLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for LakeHouseLocation. -func (lhl LakeHouseLocation) MarshalJSON() ([]byte, error) { - lhl.Type = TypeBasicDatasetLocationTypeLakeHouseLocation - objectMap := make(map[string]interface{}) - if lhl.FolderPath != nil { - objectMap["folderPath"] = lhl.FolderPath - } - if lhl.FileName != nil { - objectMap["fileName"] = lhl.FileName - } - if lhl.Type != "" { - objectMap["type"] = lhl.Type - } - for k, v := range lhl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return &lhl, true -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for LakeHouseLocation. -func (lhl LakeHouseLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &lhl, true -} - -// UnmarshalJSON is the custom unmarshaler for LakeHouseLocation struct. -func (lhl *LakeHouseLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if lhl.AdditionalProperties == nil { - lhl.AdditionalProperties = make(map[string]interface{}) - } - lhl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - lhl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - lhl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lhl.Type = typeVar - } - } - } - - return nil -} - -// LakeHouseReadSettings microsoft Fabric LakeHouse Files read settings. -type LakeHouseReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Microsoft Fabric LakeHouse Files wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Microsoft Fabric LakeHouse Files wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) MarshalJSON() ([]byte, error) { - lhrs.Type = TypeBasicStoreReadSettingsTypeLakeHouseReadSettings - objectMap := make(map[string]interface{}) - if lhrs.Recursive != nil { - objectMap["recursive"] = lhrs.Recursive - } - if lhrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = lhrs.WildcardFolderPath - } - if lhrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = lhrs.WildcardFileName - } - if lhrs.FileListPath != nil { - objectMap["fileListPath"] = lhrs.FileListPath - } - if lhrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = lhrs.EnablePartitionDiscovery - } - if lhrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = lhrs.PartitionRootPath - } - if lhrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = lhrs.DeleteFilesAfterCompletion - } - if lhrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = lhrs.ModifiedDatetimeStart - } - if lhrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = lhrs.ModifiedDatetimeEnd - } - if lhrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = lhrs.MaxConcurrentConnections - } - if lhrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = lhrs.DisableMetricsCollection - } - if lhrs.Type != "" { - objectMap["type"] = lhrs.Type - } - for k, v := range lhrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return &lhrs, true -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for LakeHouseReadSettings. -func (lhrs LakeHouseReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &lhrs, true -} - -// UnmarshalJSON is the custom unmarshaler for LakeHouseReadSettings struct. -func (lhrs *LakeHouseReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - lhrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - lhrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - lhrs.WildcardFileName = wildcardFileName - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - lhrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - lhrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - lhrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - lhrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - lhrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - lhrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if lhrs.AdditionalProperties == nil { - lhrs.AdditionalProperties = make(map[string]interface{}) - } - lhrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - lhrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - lhrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lhrs.Type = typeVar - } - } - } - - return nil -} - -// LakeHouseTableDataset microsoft Fabric LakeHouse Table. -type LakeHouseTableDataset struct { - // LakeHouseTableDatasetTypeProperties - Microsoft Fabric LakeHouse Table dataset properties. - *LakeHouseTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) MarshalJSON() ([]byte, error) { - lhtd.Type = TypeBasicDatasetTypeLakeHouseTable - objectMap := make(map[string]interface{}) - if lhtd.LakeHouseTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = lhtd.LakeHouseTableDatasetTypeProperties - } - if lhtd.Description != nil { - objectMap["description"] = lhtd.Description - } - if lhtd.Structure != nil { - objectMap["structure"] = lhtd.Structure - } - if lhtd.Schema != nil { - objectMap["schema"] = lhtd.Schema - } - if lhtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = lhtd.LinkedServiceName - } - if lhtd.Parameters != nil { - objectMap["parameters"] = lhtd.Parameters - } - if lhtd.Annotations != nil { - objectMap["annotations"] = lhtd.Annotations - } - if lhtd.Folder != nil { - objectMap["folder"] = lhtd.Folder - } - if lhtd.Type != "" { - objectMap["type"] = lhtd.Type - } - for k, v := range lhtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return &lhtd, true -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for LakeHouseTableDataset. -func (lhtd LakeHouseTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &lhtd, true -} - -// UnmarshalJSON is the custom unmarshaler for LakeHouseTableDataset struct. -func (lhtd *LakeHouseTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var lakeHouseTableDatasetTypeProperties LakeHouseTableDatasetTypeProperties - err = json.Unmarshal(*v, &lakeHouseTableDatasetTypeProperties) - if err != nil { - return err - } - lhtd.LakeHouseTableDatasetTypeProperties = &lakeHouseTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if lhtd.AdditionalProperties == nil { - lhtd.AdditionalProperties = make(map[string]interface{}) - } - lhtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - lhtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - lhtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - lhtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - lhtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - lhtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - lhtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - lhtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lhtd.Type = typeVar - } - } - } - - return nil -} - -// LakeHouseTableDatasetTypeProperties microsoft Fabric LakeHouse Table dataset properties. -type LakeHouseTableDatasetTypeProperties struct { - // Table - The name of Microsoft Fabric LakeHouse Table. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// LakeHouseTableSink a copy activity for Microsoft Fabric LakeHouse Table sink. -type LakeHouseTableSink struct { - // TableActionOption - The type of table action for LakeHouse Table sink. Possible values include: "None", "Append", "Overwrite". - TableActionOption interface{} `json:"tableActionOption,omitempty"` - // PartitionOption - 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 interface{} `json:"partitionOption,omitempty"` - // PartitionNameList - Specify the partition column names from sink columns. Type: array of objects (or Expression with resultType array of objects). - PartitionNameList interface{} `json:"partitionNameList,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for LakeHouseTableSink. -func (lhts LakeHouseTableSink) MarshalJSON() ([]byte, error) { - lhts.Type = TypeBasicCopySinkTypeLakeHouseTableSink - objectMap := make(map[string]interface{}) - if lhts.TableActionOption != nil { - objectMap["tableActionOption"] = lhts.TableActionOption - } - if lhts.PartitionOption != nil { - objectMap["partitionOption"] = lhts.PartitionOption - } - if lhts.PartitionNameList != nil { - objectMap["partitionNameList"] = lhts.PartitionNameList - } - if lhts.WriteBatchSize != nil { - objectMap["writeBatchSize"] = lhts.WriteBatchSize - } - if lhts.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = lhts.WriteBatchTimeout - } - if lhts.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = lhts.SinkRetryCount - } - if lhts.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = lhts.SinkRetryWait - } - if lhts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = lhts.MaxConcurrentConnections - } - if lhts.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = lhts.DisableMetricsCollection - } - if lhts.Type != "" { - objectMap["type"] = lhts.Type - } - for k, v := range lhts.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return &lhts, true -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for LakeHouseTableSink. -func (lhts LakeHouseTableSink) AsBasicCopySink() (BasicCopySink, bool) { - return &lhts, true -} - -// UnmarshalJSON is the custom unmarshaler for LakeHouseTableSink struct. -func (lhts *LakeHouseTableSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "tableActionOption": - if v != nil { - var tableActionOption interface{} - err = json.Unmarshal(*v, &tableActionOption) - if err != nil { - return err - } - lhts.TableActionOption = tableActionOption - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - lhts.PartitionOption = partitionOption - } - case "partitionNameList": - if v != nil { - var partitionNameList interface{} - err = json.Unmarshal(*v, &partitionNameList) - if err != nil { - return err - } - lhts.PartitionNameList = partitionNameList - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if lhts.AdditionalProperties == nil { - lhts.AdditionalProperties = make(map[string]interface{}) - } - lhts.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - lhts.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - lhts.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - lhts.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - lhts.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - lhts.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - lhts.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lhts.Type = typeVar - } - } - } - - return nil -} - -// LakeHouseTableSource a copy activity source for Microsoft Fabric LakeHouse Table. -type LakeHouseTableSource struct { - // TimestampAsOf - Query an older snapshot by timestamp. Type: string (or Expression with resultType string). - TimestampAsOf interface{} `json:"timestampAsOf,omitempty"` - // VersionAsOf - Query an older snapshot by version. Type: integer (or Expression with resultType integer). - VersionAsOf interface{} `json:"versionAsOf,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for LakeHouseTableSource. -func (lhts LakeHouseTableSource) MarshalJSON() ([]byte, error) { - lhts.Type = TypeBasicCopySourceTypeLakeHouseTableSource - objectMap := make(map[string]interface{}) - if lhts.TimestampAsOf != nil { - objectMap["timestampAsOf"] = lhts.TimestampAsOf - } - if lhts.VersionAsOf != nil { - objectMap["versionAsOf"] = lhts.VersionAsOf - } - if lhts.AdditionalColumns != nil { - objectMap["additionalColumns"] = lhts.AdditionalColumns - } - if lhts.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = lhts.SourceRetryCount - } - if lhts.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = lhts.SourceRetryWait - } - if lhts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = lhts.MaxConcurrentConnections - } - if lhts.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = lhts.DisableMetricsCollection - } - if lhts.Type != "" { - objectMap["type"] = lhts.Type - } - for k, v := range lhts.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return &lhts, true -} - -// AsHTTPSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for LakeHouseTableSource. -func (lhts LakeHouseTableSource) AsBasicCopySource() (BasicCopySource, bool) { - return &lhts, true -} - -// UnmarshalJSON is the custom unmarshaler for LakeHouseTableSource struct. -func (lhts *LakeHouseTableSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "timestampAsOf": - if v != nil { - var timestampAsOf interface{} - err = json.Unmarshal(*v, ×tampAsOf) - if err != nil { - return err - } - lhts.TimestampAsOf = timestampAsOf - } - case "versionAsOf": - if v != nil { - var versionAsOf interface{} - err = json.Unmarshal(*v, &versionAsOf) - if err != nil { - return err - } - lhts.VersionAsOf = versionAsOf - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - lhts.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if lhts.AdditionalProperties == nil { - lhts.AdditionalProperties = make(map[string]interface{}) - } - lhts.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - lhts.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - lhts.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - lhts.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - lhts.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lhts.Type = typeVar - } - } - } - - return nil -} - -// LakeHouseWriteSettings microsoft Fabric LakeHouse Files write settings. -type LakeHouseWriteSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) MarshalJSON() ([]byte, error) { - lhws.Type = TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings - objectMap := make(map[string]interface{}) - if lhws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = lhws.MaxConcurrentConnections - } - if lhws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = lhws.DisableMetricsCollection - } - if lhws.CopyBehavior != nil { - objectMap["copyBehavior"] = lhws.CopyBehavior - } - if lhws.Metadata != nil { - objectMap["metadata"] = lhws.Metadata - } - if lhws.Type != "" { - objectMap["type"] = lhws.Type - } - for k, v := range lhws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { - return &lhws, true -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for LakeHouseWriteSettings. -func (lhws LakeHouseWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &lhws, true -} - -// UnmarshalJSON is the custom unmarshaler for LakeHouseWriteSettings struct. -func (lhws *LakeHouseWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if lhws.AdditionalProperties == nil { - lhws.AdditionalProperties = make(map[string]interface{}) - } - lhws.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - lhws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - lhws.DisableMetricsCollection = disableMetricsCollection - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - lhws.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - lhws.Metadata = &metadata - } - case "type": - if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lhws.Type = typeVar - } - } - } - - return nil -} - -// LicensedComponentSetupTypeProperties installation of licensed component setup type properties. -type LicensedComponentSetupTypeProperties struct { - // ComponentName - The name of the 3rd party component. - ComponentName *string `json:"componentName,omitempty"` - // LicenseKey - The license key to activate the component. - LicenseKey BasicSecretBase `json:"licenseKey,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for LicensedComponentSetupTypeProperties struct. -func (lcstp *LicensedComponentSetupTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "componentName": - if v != nil { - var componentName string - err = json.Unmarshal(*v, &componentName) - if err != nil { - return err - } - lcstp.ComponentName = &componentName - } - case "licenseKey": - if v != nil { - licenseKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - lcstp.LicenseKey = licenseKey - } - } - } - - return nil -} - -// LinkedIntegrationRuntime the linked integration runtime information. -type LinkedIntegrationRuntime struct { - // Name - READ-ONLY; The name of the linked integration runtime. - Name *string `json:"name,omitempty"` - // SubscriptionID - READ-ONLY; The subscription ID for which the linked integration runtime belong to. - SubscriptionID *string `json:"subscriptionId,omitempty"` - // DataFactoryName - READ-ONLY; The name of the data factory for which the linked integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // DataFactoryLocation - READ-ONLY; The location of the data factory for which the linked integration runtime belong to. - DataFactoryLocation *string `json:"dataFactoryLocation,omitempty"` - // CreateTime - READ-ONLY; The creating time of the linked integration runtime. - CreateTime *date.Time `json:"createTime,omitempty"` -} - -// MarshalJSON is the custom marshaler for LinkedIntegrationRuntime. -func (lir LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// LinkedIntegrationRuntimeKeyAuthorization the key authorization type integration runtime. -type LinkedIntegrationRuntimeKeyAuthorization struct { - // Key - The key used for authorization. - Key *SecureString `json:"key,omitempty"` - // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' - AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` -} - -// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeKeyAuthorization. -func (lirka LinkedIntegrationRuntimeKeyAuthorization) MarshalJSON() ([]byte, error) { - lirka.AuthorizationType = AuthorizationTypeKey - objectMap := make(map[string]interface{}) - if lirka.Key != nil { - objectMap["key"] = lirka.Key - } - if lirka.AuthorizationType != "" { - objectMap["authorizationType"] = lirka.AuthorizationType - } - return json.Marshal(objectMap) -} - -// AsLinkedIntegrationRuntimeRbacAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeKeyAuthorization. -func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsLinkedIntegrationRuntimeRbacAuthorization() (*LinkedIntegrationRuntimeRbacAuthorization, bool) { - return nil, false -} - -// AsLinkedIntegrationRuntimeKeyAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeKeyAuthorization. -func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsLinkedIntegrationRuntimeKeyAuthorization() (*LinkedIntegrationRuntimeKeyAuthorization, bool) { - return &lirka, true -} - -// AsLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeKeyAuthorization. -func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsLinkedIntegrationRuntimeType() (*LinkedIntegrationRuntimeType, bool) { - return nil, false -} - -// AsBasicLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeKeyAuthorization. -func (lirka LinkedIntegrationRuntimeKeyAuthorization) AsBasicLinkedIntegrationRuntimeType() (BasicLinkedIntegrationRuntimeType, bool) { - return &lirka, true -} - -// LinkedIntegrationRuntimeRbacAuthorization the role based access control (RBAC) authorization type -// integration runtime. -type LinkedIntegrationRuntimeRbacAuthorization struct { - // ResourceID - The resource identifier of the integration runtime to be shared. - ResourceID *string `json:"resourceId,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` - // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' - AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` -} - -// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeRbacAuthorization. -func (lirra LinkedIntegrationRuntimeRbacAuthorization) MarshalJSON() ([]byte, error) { - lirra.AuthorizationType = AuthorizationTypeRBAC - objectMap := make(map[string]interface{}) - if lirra.ResourceID != nil { - objectMap["resourceId"] = lirra.ResourceID - } - if lirra.Credential != nil { - objectMap["credential"] = lirra.Credential - } - if lirra.AuthorizationType != "" { - objectMap["authorizationType"] = lirra.AuthorizationType - } - return json.Marshal(objectMap) -} - -// AsLinkedIntegrationRuntimeRbacAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeRbacAuthorization. -func (lirra LinkedIntegrationRuntimeRbacAuthorization) AsLinkedIntegrationRuntimeRbacAuthorization() (*LinkedIntegrationRuntimeRbacAuthorization, bool) { - return &lirra, true -} - -// AsLinkedIntegrationRuntimeKeyAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeRbacAuthorization. -func (lirra LinkedIntegrationRuntimeRbacAuthorization) AsLinkedIntegrationRuntimeKeyAuthorization() (*LinkedIntegrationRuntimeKeyAuthorization, bool) { - return nil, false -} - -// AsLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeRbacAuthorization. -func (lirra LinkedIntegrationRuntimeRbacAuthorization) AsLinkedIntegrationRuntimeType() (*LinkedIntegrationRuntimeType, bool) { - return nil, false -} - -// AsBasicLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeRbacAuthorization. -func (lirra LinkedIntegrationRuntimeRbacAuthorization) AsBasicLinkedIntegrationRuntimeType() (BasicLinkedIntegrationRuntimeType, bool) { - return &lirra, true -} - -// LinkedIntegrationRuntimeRequest data factory name for linked integration runtime request. -type LinkedIntegrationRuntimeRequest struct { - // LinkedFactoryName - The data factory name for linked integration runtime. - LinkedFactoryName *string `json:"factoryName,omitempty"` -} - -// BasicLinkedIntegrationRuntimeType the base definition of a linked integration runtime. -type BasicLinkedIntegrationRuntimeType interface { - AsLinkedIntegrationRuntimeRbacAuthorization() (*LinkedIntegrationRuntimeRbacAuthorization, bool) - AsLinkedIntegrationRuntimeKeyAuthorization() (*LinkedIntegrationRuntimeKeyAuthorization, bool) - AsLinkedIntegrationRuntimeType() (*LinkedIntegrationRuntimeType, bool) -} - -// LinkedIntegrationRuntimeType the base definition of a linked integration runtime. -type LinkedIntegrationRuntimeType struct { - // AuthorizationType - Possible values include: 'AuthorizationTypeLinkedIntegrationRuntimeType', 'AuthorizationTypeRBAC', 'AuthorizationTypeKey' - AuthorizationType AuthorizationType `json:"authorizationType,omitempty"` -} - -func unmarshalBasicLinkedIntegrationRuntimeType(body []byte) (BasicLinkedIntegrationRuntimeType, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["authorizationType"] { - case string(AuthorizationTypeRBAC): - var lirra LinkedIntegrationRuntimeRbacAuthorization - err := json.Unmarshal(body, &lirra) - return lirra, err - case string(AuthorizationTypeKey): - var lirka LinkedIntegrationRuntimeKeyAuthorization - err := json.Unmarshal(body, &lirka) - return lirka, err - default: - var lirt LinkedIntegrationRuntimeType - err := json.Unmarshal(body, &lirt) - return lirt, err - } -} -func unmarshalBasicLinkedIntegrationRuntimeTypeArray(body []byte) ([]BasicLinkedIntegrationRuntimeType, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - lirtArray := make([]BasicLinkedIntegrationRuntimeType, len(rawMessages)) - - for index, rawMessage := range rawMessages { - lirt, err := unmarshalBasicLinkedIntegrationRuntimeType(*rawMessage) - if err != nil { - return nil, err - } - lirtArray[index] = lirt - } - return lirtArray, nil -} - -// MarshalJSON is the custom marshaler for LinkedIntegrationRuntimeType. -func (lirt LinkedIntegrationRuntimeType) MarshalJSON() ([]byte, error) { - lirt.AuthorizationType = AuthorizationTypeLinkedIntegrationRuntimeType - objectMap := make(map[string]interface{}) - if lirt.AuthorizationType != "" { - objectMap["authorizationType"] = lirt.AuthorizationType - } - return json.Marshal(objectMap) -} - -// AsLinkedIntegrationRuntimeRbacAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeType. -func (lirt LinkedIntegrationRuntimeType) AsLinkedIntegrationRuntimeRbacAuthorization() (*LinkedIntegrationRuntimeRbacAuthorization, bool) { - return nil, false -} - -// AsLinkedIntegrationRuntimeKeyAuthorization is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeType. -func (lirt LinkedIntegrationRuntimeType) AsLinkedIntegrationRuntimeKeyAuthorization() (*LinkedIntegrationRuntimeKeyAuthorization, bool) { - return nil, false -} - -// AsLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeType. -func (lirt LinkedIntegrationRuntimeType) AsLinkedIntegrationRuntimeType() (*LinkedIntegrationRuntimeType, bool) { - return &lirt, true -} - -// AsBasicLinkedIntegrationRuntimeType is the BasicLinkedIntegrationRuntimeType implementation for LinkedIntegrationRuntimeType. -func (lirt LinkedIntegrationRuntimeType) AsBasicLinkedIntegrationRuntimeType() (BasicLinkedIntegrationRuntimeType, bool) { - return &lirt, true -} - -// BasicLinkedService the nested object which contains the information and credential which can be used to connect with -// related store or compute resource. -type BasicLinkedService interface { - AsWarehouseLinkedService() (*WarehouseLinkedService, bool) - AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) - AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) - AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) - AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) - AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) - AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) - AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) - AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) - AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) - AsSapTableLinkedService() (*SapTableLinkedService, bool) - AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) - AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) - AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) - AsResponsysLinkedService() (*ResponsysLinkedService, bool) - AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) - AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) - AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) - AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) - AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) - AsNetezzaLinkedService() (*NetezzaLinkedService, bool) - AsVerticaLinkedService() (*VerticaLinkedService, bool) - AsZohoLinkedService() (*ZohoLinkedService, bool) - AsXeroLinkedService() (*XeroLinkedService, bool) - AsSquareLinkedService() (*SquareLinkedService, bool) - AsSparkLinkedService() (*SparkLinkedService, bool) - AsShopifyLinkedService() (*ShopifyLinkedService, bool) - AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) - AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) - AsPrestoLinkedService() (*PrestoLinkedService, bool) - AsPhoenixLinkedService() (*PhoenixLinkedService, bool) - AsPaypalLinkedService() (*PaypalLinkedService, bool) - AsMarketoLinkedService() (*MarketoLinkedService, bool) - AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) - AsMariaDBLinkedService() (*MariaDBLinkedService, bool) - AsMagentoLinkedService() (*MagentoLinkedService, bool) - AsJiraLinkedService() (*JiraLinkedService, bool) - AsImpalaLinkedService() (*ImpalaLinkedService, bool) - AsHubspotLinkedService() (*HubspotLinkedService, bool) - AsHiveLinkedService() (*HiveLinkedService, bool) - AsHBaseLinkedService() (*HBaseLinkedService, bool) - AsGreenplumLinkedService() (*GreenplumLinkedService, bool) - AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) - AsEloquaLinkedService() (*EloquaLinkedService, bool) - AsDrillLinkedService() (*DrillLinkedService, bool) - AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) - AsConcurLinkedService() (*ConcurLinkedService, bool) - AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) - AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) - AsSapHanaLinkedService() (*SapHanaLinkedService, bool) - AsSapBWLinkedService() (*SapBWLinkedService, bool) - AsSftpServerLinkedService() (*SftpServerLinkedService, bool) - AsFtpServerLinkedService() (*FtpServerLinkedService, bool) - AsHTTPLinkedService() (*HTTPLinkedService, bool) - AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) - AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) - AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) - AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) - AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) - AsTwilioLinkedService() (*TwilioLinkedService, bool) - AsAsanaLinkedService() (*AsanaLinkedService, bool) - AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) - AsDataworldLinkedService() (*DataworldLinkedService, bool) - AsZendeskLinkedService() (*ZendeskLinkedService, bool) - AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) - AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) - AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) - AsRestServiceLinkedService() (*RestServiceLinkedService, bool) - AsSapOdpLinkedService() (*SapOdpLinkedService, bool) - AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) - AsSapEccLinkedService() (*SapEccLinkedService, bool) - AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) - AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) - AsSalesforceLinkedService() (*SalesforceLinkedService, bool) - AsOffice365LinkedService() (*Office365LinkedService, bool) - AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) - AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) - AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) - AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) - AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) - AsMongoDbLinkedService() (*MongoDbLinkedService, bool) - AsCassandraLinkedService() (*CassandraLinkedService, bool) - AsWebLinkedService() (*WebLinkedService, bool) - AsODataLinkedService() (*ODataLinkedService, bool) - AsHdfsLinkedService() (*HdfsLinkedService, bool) - AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) - AsInformixLinkedService() (*InformixLinkedService, bool) - AsOdbcLinkedService() (*OdbcLinkedService, bool) - AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) - AsAzureMLLinkedService() (*AzureMLLinkedService, bool) - AsTeradataLinkedService() (*TeradataLinkedService, bool) - AsDb2LinkedService() (*Db2LinkedService, bool) - AsSybaseLinkedService() (*SybaseLinkedService, bool) - AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) - AsMySQLLinkedService() (*MySQLLinkedService, bool) - AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) - AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) - AsOracleLinkedService() (*OracleLinkedService, bool) - AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) - AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) - AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) - AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) - AsFileServerLinkedService() (*FileServerLinkedService, bool) - AsHDInsightLinkedService() (*HDInsightLinkedService, bool) - AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) - AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) - AsDynamicsLinkedService() (*DynamicsLinkedService, bool) - AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) - AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) - AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) - AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) - AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) - AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) - AsSQLServerLinkedService() (*SQLServerLinkedService, bool) - AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) - AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) - AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) - AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) - AsLinkedService() (*LinkedService, bool) -} - -// 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 { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -func unmarshalBasicLinkedService(body []byte) (BasicLinkedService, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicLinkedServiceTypeWarehouse): - var wls WarehouseLinkedService - err := json.Unmarshal(body, &wls) - return wls, err - case string(TypeBasicLinkedServiceTypeSalesforceServiceCloudV2): - var sscvls SalesforceServiceCloudV2LinkedService - err := json.Unmarshal(body, &sscvls) - return sscvls, err - case string(TypeBasicLinkedServiceTypeSalesforceV2): - var svls SalesforceV2LinkedService - err := json.Unmarshal(body, &svls) - return svls, err - case string(TypeBasicLinkedServiceTypeLakeHouse): - var lhls LakeHouseLinkedService - err := json.Unmarshal(body, &lhls) - return lhls, err - case string(TypeBasicLinkedServiceTypeAzureSynapseArtifacts): - var asals AzureSynapseArtifactsLinkedService - err := json.Unmarshal(body, &asals) - return asals, err - case string(TypeBasicLinkedServiceTypeSharePointOnlineList): - var spolls SharePointOnlineListLinkedService - err := json.Unmarshal(body, &spolls) - return spolls, err - case string(TypeBasicLinkedServiceTypeSnowflakeV2): - var svls SnowflakeV2LinkedService - err := json.Unmarshal(body, &svls) - return svls, err - case string(TypeBasicLinkedServiceTypeSnowflake): - var sls SnowflakeLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeBasicLinkedServiceTypeAzureFunction): - var afls AzureFunctionLinkedService - err := json.Unmarshal(body, &afls) - return afls, err - case string(TypeBasicLinkedServiceTypeAzureDataExplorer): - var adels AzureDataExplorerLinkedService - err := json.Unmarshal(body, &adels) - return adels, err - case string(TypeBasicLinkedServiceTypeSapTable): - var stls SapTableLinkedService - err := json.Unmarshal(body, &stls) - return stls, err - case string(TypeBasicLinkedServiceTypeGoogleAdWords): - var gawls GoogleAdWordsLinkedService - err := json.Unmarshal(body, &gawls) - return gawls, err - case string(TypeBasicLinkedServiceTypeOracleServiceCloud): - var oscls OracleServiceCloudLinkedService - err := json.Unmarshal(body, &oscls) - return oscls, err - case string(TypeBasicLinkedServiceTypeDynamicsAX): - var dals DynamicsAXLinkedService - err := json.Unmarshal(body, &dals) - return dals, err - case string(TypeBasicLinkedServiceTypeResponsys): - var rls ResponsysLinkedService - err := json.Unmarshal(body, &rls) - return rls, err - case string(TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake): - var addlls AzureDatabricksDeltaLakeLinkedService - err := json.Unmarshal(body, &addlls) - return addlls, err - case string(TypeBasicLinkedServiceTypeAzureDatabricks): - var adls AzureDatabricksLinkedService - err := json.Unmarshal(body, &adls) - return adls, err - case string(TypeBasicLinkedServiceTypeAzureDataLakeAnalytics): - var adlals AzureDataLakeAnalyticsLinkedService - err := json.Unmarshal(body, &adlals) - return adlals, err - case string(TypeBasicLinkedServiceTypeHDInsightOnDemand): - var hiodls HDInsightOnDemandLinkedService - err := json.Unmarshal(body, &hiodls) - return hiodls, err - case string(TypeBasicLinkedServiceTypeSalesforceMarketingCloud): - var smcls SalesforceMarketingCloudLinkedService - err := json.Unmarshal(body, &smcls) - return smcls, err - case string(TypeBasicLinkedServiceTypeNetezza): - var nls NetezzaLinkedService - err := json.Unmarshal(body, &nls) - return nls, err - case string(TypeBasicLinkedServiceTypeVertica): - var vls VerticaLinkedService - err := json.Unmarshal(body, &vls) - return vls, err - case string(TypeBasicLinkedServiceTypeZoho): - var zls ZohoLinkedService - err := json.Unmarshal(body, &zls) - return zls, err - case string(TypeBasicLinkedServiceTypeXero): - var xls XeroLinkedService - err := json.Unmarshal(body, &xls) - return xls, err - case string(TypeBasicLinkedServiceTypeSquare): - var sls SquareLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeBasicLinkedServiceTypeSpark): - var sls SparkLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeBasicLinkedServiceTypeShopify): - var sls ShopifyLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeBasicLinkedServiceTypeServiceNow): - var snls ServiceNowLinkedService - err := json.Unmarshal(body, &snls) - return snls, err - case string(TypeBasicLinkedServiceTypeQuickBooks): - var qbls QuickBooksLinkedService - err := json.Unmarshal(body, &qbls) - return qbls, err - case string(TypeBasicLinkedServiceTypePresto): - var pls PrestoLinkedService - err := json.Unmarshal(body, &pls) - return pls, err - case string(TypeBasicLinkedServiceTypePhoenix): - var pls PhoenixLinkedService - err := json.Unmarshal(body, &pls) - return pls, err - case string(TypeBasicLinkedServiceTypePaypal): - var pls PaypalLinkedService - err := json.Unmarshal(body, &pls) - return pls, err - case string(TypeBasicLinkedServiceTypeMarketo): - var mls MarketoLinkedService - err := json.Unmarshal(body, &mls) - return mls, err - case string(TypeBasicLinkedServiceTypeAzureMariaDB): - var amdls AzureMariaDBLinkedService - err := json.Unmarshal(body, &amdls) - return amdls, err - case string(TypeBasicLinkedServiceTypeMariaDB): - var mdls MariaDBLinkedService - err := json.Unmarshal(body, &mdls) - return mdls, err - case string(TypeBasicLinkedServiceTypeMagento): - var mls MagentoLinkedService - err := json.Unmarshal(body, &mls) - return mls, err - case string(TypeBasicLinkedServiceTypeJira): - var jls JiraLinkedService - err := json.Unmarshal(body, &jls) - return jls, err - case string(TypeBasicLinkedServiceTypeImpala): - var ils ImpalaLinkedService - err := json.Unmarshal(body, &ils) - return ils, err - case string(TypeBasicLinkedServiceTypeHubspot): - var hls HubspotLinkedService - err := json.Unmarshal(body, &hls) - return hls, err - case string(TypeBasicLinkedServiceTypeHive): - var hls HiveLinkedService - err := json.Unmarshal(body, &hls) - return hls, err - case string(TypeBasicLinkedServiceTypeHBase): - var hbls HBaseLinkedService - err := json.Unmarshal(body, &hbls) - return hbls, err - case string(TypeBasicLinkedServiceTypeGreenplum): - var gls GreenplumLinkedService - err := json.Unmarshal(body, &gls) - return gls, err - case string(TypeBasicLinkedServiceTypeGoogleBigQuery): - var gbqls GoogleBigQueryLinkedService - err := json.Unmarshal(body, &gbqls) - return gbqls, err - case string(TypeBasicLinkedServiceTypeEloqua): - var els EloquaLinkedService - err := json.Unmarshal(body, &els) - return els, err - case string(TypeBasicLinkedServiceTypeDrill): - var dls DrillLinkedService - err := json.Unmarshal(body, &dls) - return dls, err - case string(TypeBasicLinkedServiceTypeCouchbase): - var cls CouchbaseLinkedService - err := json.Unmarshal(body, &cls) - return cls, err - case string(TypeBasicLinkedServiceTypeConcur): - var cls ConcurLinkedService - err := json.Unmarshal(body, &cls) - return cls, err - case string(TypeBasicLinkedServiceTypeAzurePostgreSQL): - var apsls AzurePostgreSQLLinkedService - err := json.Unmarshal(body, &apsls) - return apsls, err - case string(TypeBasicLinkedServiceTypeAmazonMWS): - var amls AmazonMWSLinkedService - err := json.Unmarshal(body, &amls) - return amls, err - case string(TypeBasicLinkedServiceTypeSapHana): - var shls SapHanaLinkedService - err := json.Unmarshal(body, &shls) - return shls, err - case string(TypeBasicLinkedServiceTypeSapBW): - var sbls SapBWLinkedService - err := json.Unmarshal(body, &sbls) - return sbls, err - case string(TypeBasicLinkedServiceTypeSftp): - var ssls SftpServerLinkedService - err := json.Unmarshal(body, &ssls) - return ssls, err - case string(TypeBasicLinkedServiceTypeFtpServer): - var fsls FtpServerLinkedService - err := json.Unmarshal(body, &fsls) - return fsls, err - case string(TypeBasicLinkedServiceTypeHTTPServer): - var hls HTTPLinkedService - err := json.Unmarshal(body, &hls) - return hls, err - case string(TypeBasicLinkedServiceTypeAzureSearch): - var asls AzureSearchLinkedService - err := json.Unmarshal(body, &asls) - return asls, err - case string(TypeBasicLinkedServiceTypeCustomDataSource): - var cdsls CustomDataSourceLinkedService - err := json.Unmarshal(body, &cdsls) - return cdsls, err - case string(TypeBasicLinkedServiceTypeAmazonRedshift): - var arls AmazonRedshiftLinkedService - err := json.Unmarshal(body, &arls) - return arls, err - case string(TypeBasicLinkedServiceTypeAmazonS3): - var asls AmazonS3LinkedService - err := json.Unmarshal(body, &asls) - return asls, err - case string(TypeBasicLinkedServiceTypeGoogleSheets): - var gsls GoogleSheetsLinkedService - err := json.Unmarshal(body, &gsls) - return gsls, err - case string(TypeBasicLinkedServiceTypeTwilio): - var TLSVar TwilioLinkedService - err := json.Unmarshal(body, &TLSVar) - return TLSVar, err - case string(TypeBasicLinkedServiceTypeAsana): - var als AsanaLinkedService - err := json.Unmarshal(body, &als) - return als, err - case string(TypeBasicLinkedServiceTypeAppFigures): - var afls AppFiguresLinkedService - err := json.Unmarshal(body, &afls) - return afls, err - case string(TypeBasicLinkedServiceTypeDataworld): - var dls DataworldLinkedService - err := json.Unmarshal(body, &dls) - return dls, err - case string(TypeBasicLinkedServiceTypeZendesk): - var zls ZendeskLinkedService - err := json.Unmarshal(body, &zls) - return zls, err - case string(TypeBasicLinkedServiceTypeSmartsheet): - var sls SmartsheetLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeBasicLinkedServiceTypeQuickbase): - var qls QuickbaseLinkedService - err := json.Unmarshal(body, &qls) - return qls, err - case string(TypeBasicLinkedServiceTypeTeamDesk): - var tdls TeamDeskLinkedService - err := json.Unmarshal(body, &tdls) - return tdls, err - case string(TypeBasicLinkedServiceTypeRestService): - var rsls RestServiceLinkedService - err := json.Unmarshal(body, &rsls) - return rsls, err - case string(TypeBasicLinkedServiceTypeSapOdp): - var sols SapOdpLinkedService - err := json.Unmarshal(body, &sols) - return sols, err - case string(TypeBasicLinkedServiceTypeSapOpenHub): - var sohls SapOpenHubLinkedService - err := json.Unmarshal(body, &sohls) - return sohls, err - case string(TypeBasicLinkedServiceTypeSapEcc): - var sels SapEccLinkedService - err := json.Unmarshal(body, &sels) - return sels, err - case string(TypeBasicLinkedServiceTypeSapCloudForCustomer): - var scfcls SapCloudForCustomerLinkedService - err := json.Unmarshal(body, &scfcls) - return scfcls, err - case string(TypeBasicLinkedServiceTypeSalesforceServiceCloud): - var sscls SalesforceServiceCloudLinkedService - err := json.Unmarshal(body, &sscls) - return sscls, err - case string(TypeBasicLinkedServiceTypeSalesforce): - var sls SalesforceLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeBasicLinkedServiceTypeOffice365): - var o3ls Office365LinkedService - err := json.Unmarshal(body, &o3ls) - return o3ls, err - case string(TypeBasicLinkedServiceTypeAzureBlobFS): - var abfls AzureBlobFSLinkedService - err := json.Unmarshal(body, &abfls) - return abfls, err - case string(TypeBasicLinkedServiceTypeAzureDataLakeStore): - var adlsls AzureDataLakeStoreLinkedService - err := json.Unmarshal(body, &adlsls) - return adlsls, err - case string(TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI): - var cdmdals CosmosDbMongoDbAPILinkedService - err := json.Unmarshal(body, &cdmdals) - return cdmdals, err - case string(TypeBasicLinkedServiceTypeMongoDbV2): - var mdvls MongoDbV2LinkedService - err := json.Unmarshal(body, &mdvls) - return mdvls, err - case string(TypeBasicLinkedServiceTypeMongoDbAtlas): - var mdals MongoDbAtlasLinkedService - err := json.Unmarshal(body, &mdals) - return mdals, err - case string(TypeBasicLinkedServiceTypeMongoDb): - var mdls MongoDbLinkedService - err := json.Unmarshal(body, &mdls) - return mdls, err - case string(TypeBasicLinkedServiceTypeCassandra): - var cls CassandraLinkedService - err := json.Unmarshal(body, &cls) - return cls, err - case string(TypeBasicLinkedServiceTypeWeb): - var wls WebLinkedService - err := json.Unmarshal(body, &wls) - return wls, err - case string(TypeBasicLinkedServiceTypeOData): - var odls ODataLinkedService - err := json.Unmarshal(body, &odls) - return odls, err - case string(TypeBasicLinkedServiceTypeHdfs): - var hls HdfsLinkedService - err := json.Unmarshal(body, &hls) - return hls, err - case string(TypeBasicLinkedServiceTypeMicrosoftAccess): - var mals MicrosoftAccessLinkedService - err := json.Unmarshal(body, &mals) - return mals, err - case string(TypeBasicLinkedServiceTypeInformix): - var ils InformixLinkedService - err := json.Unmarshal(body, &ils) - return ils, err - case string(TypeBasicLinkedServiceTypeOdbc): - var ols OdbcLinkedService - err := json.Unmarshal(body, &ols) - return ols, err - case string(TypeBasicLinkedServiceTypeAzureMLService): - var amsls AzureMLServiceLinkedService - err := json.Unmarshal(body, &amsls) - return amsls, err - case string(TypeBasicLinkedServiceTypeAzureML): - var amls AzureMLLinkedService - err := json.Unmarshal(body, &amls) - return amls, err - case string(TypeBasicLinkedServiceTypeTeradata): - var TLSVar TeradataLinkedService - err := json.Unmarshal(body, &TLSVar) - return TLSVar, err - case string(TypeBasicLinkedServiceTypeDb2): - var d2ls Db2LinkedService - err := json.Unmarshal(body, &d2ls) - return d2ls, err - case string(TypeBasicLinkedServiceTypeSybase): - var sls SybaseLinkedService - err := json.Unmarshal(body, &sls) - return sls, err - case string(TypeBasicLinkedServiceTypePostgreSQL): - var psls PostgreSQLLinkedService - err := json.Unmarshal(body, &psls) - return psls, err - case string(TypeBasicLinkedServiceTypeMySQL): - var msls MySQLLinkedService - err := json.Unmarshal(body, &msls) - return msls, err - case string(TypeBasicLinkedServiceTypeAzureMySQL): - var amsls AzureMySQLLinkedService - err := json.Unmarshal(body, &amsls) - return amsls, err - case string(TypeBasicLinkedServiceTypeAmazonRdsForOracle): - var arfols AmazonRdsForOracleLinkedService - err := json.Unmarshal(body, &arfols) - return arfols, err - case string(TypeBasicLinkedServiceTypeOracle): - var ols OracleLinkedService - err := json.Unmarshal(body, &ols) - return ols, err - case string(TypeBasicLinkedServiceTypeGoogleCloudStorage): - var gcsls GoogleCloudStorageLinkedService - err := json.Unmarshal(body, &gcsls) - return gcsls, err - case string(TypeBasicLinkedServiceTypeOracleCloudStorage): - var ocsls OracleCloudStorageLinkedService - err := json.Unmarshal(body, &ocsls) - return ocsls, err - case string(TypeBasicLinkedServiceTypeAmazonS3Compatible): - var ascls AmazonS3CompatibleLinkedService - err := json.Unmarshal(body, &ascls) - return ascls, err - case string(TypeBasicLinkedServiceTypeAzureFileStorage): - var afsls AzureFileStorageLinkedService - err := json.Unmarshal(body, &afsls) - return afsls, err - case string(TypeBasicLinkedServiceTypeFileServer): - var fsls FileServerLinkedService - err := json.Unmarshal(body, &fsls) - return fsls, err - case string(TypeBasicLinkedServiceTypeHDInsight): - var hils HDInsightLinkedService - err := json.Unmarshal(body, &hils) - return hils, err - case string(TypeBasicLinkedServiceTypeCommonDataServiceForApps): - var cdsfals CommonDataServiceForAppsLinkedService - err := json.Unmarshal(body, &cdsfals) - return cdsfals, err - case string(TypeBasicLinkedServiceTypeDynamicsCrm): - var dcls DynamicsCrmLinkedService - err := json.Unmarshal(body, &dcls) - return dcls, err - case string(TypeBasicLinkedServiceTypeDynamics): - var dls DynamicsLinkedService - err := json.Unmarshal(body, &dls) - return dls, err - case string(TypeBasicLinkedServiceTypeCosmosDb): - var cdls CosmosDbLinkedService - err := json.Unmarshal(body, &cdls) - return cdls, err - case string(TypeBasicLinkedServiceTypeAzureKeyVault): - var akvls AzureKeyVaultLinkedService - err := json.Unmarshal(body, &akvls) - return akvls, err - case string(TypeBasicLinkedServiceTypeAzureBatch): - var abls AzureBatchLinkedService - err := json.Unmarshal(body, &abls) - return abls, err - case string(TypeBasicLinkedServiceTypeAzureSQLMI): - var asmls AzureSQLMILinkedService - err := json.Unmarshal(body, &asmls) - return asmls, err - case string(TypeBasicLinkedServiceTypeAzureSQLDatabase): - var asdls AzureSQLDatabaseLinkedService - err := json.Unmarshal(body, &asdls) - return asdls, err - case string(TypeBasicLinkedServiceTypeAmazonRdsForSQLServer): - var arfssls AmazonRdsForSQLServerLinkedService - err := json.Unmarshal(body, &arfssls) - return arfssls, err - case string(TypeBasicLinkedServiceTypeSQLServer): - var ssls SQLServerLinkedService - err := json.Unmarshal(body, &ssls) - return ssls, err - case string(TypeBasicLinkedServiceTypeAzureSQLDW): - var asdls AzureSQLDWLinkedService - err := json.Unmarshal(body, &asdls) - return asdls, err - case string(TypeBasicLinkedServiceTypeAzureTableStorage): - var atsls AzureTableStorageLinkedService - err := json.Unmarshal(body, &atsls) - return atsls, err - case string(TypeBasicLinkedServiceTypeAzureBlobStorage): - var absls AzureBlobStorageLinkedService - err := json.Unmarshal(body, &absls) - return absls, err - case string(TypeBasicLinkedServiceTypeAzureStorage): - var asls AzureStorageLinkedService - err := json.Unmarshal(body, &asls) - return asls, err - default: - var ls LinkedService - err := json.Unmarshal(body, &ls) - return ls, err - } -} -func unmarshalBasicLinkedServiceArray(body []byte) ([]BasicLinkedService, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - lsArray := make([]BasicLinkedService, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ls, err := unmarshalBasicLinkedService(*rawMessage) - if err != nil { - return nil, err - } - lsArray[index] = ls - } - return lsArray, nil -} - -// MarshalJSON is the custom marshaler for LinkedService. -func (ls LinkedService) MarshalJSON() ([]byte, error) { - ls.Type = TypeBasicLinkedServiceTypeLinkedService - objectMap := make(map[string]interface{}) - if ls.ConnectVia != nil { - objectMap["connectVia"] = ls.ConnectVia - } - if ls.Description != nil { - objectMap["description"] = ls.Description - } - if ls.Parameters != nil { - objectMap["parameters"] = ls.Parameters - } - if ls.Annotations != nil { - objectMap["annotations"] = ls.Annotations - } - if ls.Type != "" { - objectMap["type"] = ls.Type - } - for k, v := range ls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsLinkedService() (*LinkedService, bool) { - return &ls, true -} - -// AsBasicLinkedService is the BasicLinkedService implementation for LinkedService. -func (ls LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ls, true -} - -// UnmarshalJSON is the custom unmarshaler for LinkedService struct. -func (ls *LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ls.AdditionalProperties == nil { - ls.AdditionalProperties = make(map[string]interface{}) - } - ls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ls.Type = typeVar - } - } - } - - return nil -} - -// LinkedServiceDebugResource linked service debug resource. -type LinkedServiceDebugResource struct { - // Properties - Properties of linked service. - Properties BasicLinkedService `json:"properties,omitempty"` - // Name - The resource name. - Name *string `json:"name,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for LinkedServiceDebugResource struct. -func (lsdr *LinkedServiceDebugResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicLinkedService(*v) - if err != nil { - return err - } - lsdr.Properties = properties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - lsdr.Name = &name - } - } - } - - return nil -} - -// LinkedServiceListResponse a list of linked service resources. -type LinkedServiceListResponse struct { - autorest.Response `json:"-"` - // Value - List of linked services. - Value *[]LinkedServiceResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// LinkedServiceListResponseIterator provides access to a complete listing of LinkedServiceResource values. -type LinkedServiceListResponseIterator struct { - i int - page LinkedServiceListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *LinkedServiceListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServiceListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *LinkedServiceListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter LinkedServiceListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter LinkedServiceListResponseIterator) Response() LinkedServiceListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter LinkedServiceListResponseIterator) Value() LinkedServiceResource { - if !iter.page.NotDone() { - return LinkedServiceResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the LinkedServiceListResponseIterator type. -func NewLinkedServiceListResponseIterator(page LinkedServiceListResponsePage) LinkedServiceListResponseIterator { - return LinkedServiceListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (lslr LinkedServiceListResponse) IsEmpty() bool { - return lslr.Value == nil || len(*lslr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (lslr LinkedServiceListResponse) hasNextLink() bool { - return lslr.NextLink != nil && len(*lslr.NextLink) != 0 -} - -// linkedServiceListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (lslr LinkedServiceListResponse) linkedServiceListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !lslr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(lslr.NextLink))) -} - -// LinkedServiceListResponsePage contains a page of LinkedServiceResource values. -type LinkedServiceListResponsePage struct { - fn func(context.Context, LinkedServiceListResponse) (LinkedServiceListResponse, error) - lslr LinkedServiceListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *LinkedServiceListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/LinkedServiceListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.lslr) - if err != nil { - return err - } - page.lslr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *LinkedServiceListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page LinkedServiceListResponsePage) NotDone() bool { - return !page.lslr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page LinkedServiceListResponsePage) Response() LinkedServiceListResponse { - return page.lslr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page LinkedServiceListResponsePage) Values() []LinkedServiceResource { - if page.lslr.IsEmpty() { - return nil - } - return *page.lslr.Value -} - -// Creates a new instance of the LinkedServiceListResponsePage type. -func NewLinkedServiceListResponsePage(cur LinkedServiceListResponse, getNextPage func(context.Context, LinkedServiceListResponse) (LinkedServiceListResponse, error)) LinkedServiceListResponsePage { - return LinkedServiceListResponsePage{ - fn: getNextPage, - lslr: cur, - } -} - -// LinkedServiceReference linked service reference type. -type LinkedServiceReference struct { - // Type - Linked service reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference LinkedService name. - ReferenceName *string `json:"referenceName,omitempty"` - // Parameters - Arguments for LinkedService. - Parameters map[string]interface{} `json:"parameters"` -} - -// MarshalJSON is the custom marshaler for LinkedServiceReference. -func (lsr LinkedServiceReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if lsr.Type != nil { - objectMap["type"] = lsr.Type - } - if lsr.ReferenceName != nil { - objectMap["referenceName"] = lsr.ReferenceName - } - if lsr.Parameters != nil { - objectMap["parameters"] = lsr.Parameters - } - return json.Marshal(objectMap) -} - -// LinkedServiceResource linked service resource type. -type LinkedServiceResource struct { - autorest.Response `json:"-"` - // Properties - Properties of linked service. - Properties BasicLinkedService `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for LinkedServiceResource. -func (lsr LinkedServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["properties"] = lsr.Properties - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for LinkedServiceResource struct. -func (lsr *LinkedServiceResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicLinkedService(*v) - if err != nil { - return err - } - lsr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - lsr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - lsr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - lsr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - lsr.Etag = &etag - } - } - } - - return nil -} - -// LogLocationSettings log location settings. -type LogLocationSettings struct { - // LinkedServiceName - Log storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Path - The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// LogSettings log settings. -type LogSettings struct { - // EnableCopyActivityLog - Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean). - EnableCopyActivityLog interface{} `json:"enableCopyActivityLog,omitempty"` - // CopyActivityLogSettings - Specifies settings for copy activity log. - CopyActivityLogSettings *CopyActivityLogSettings `json:"copyActivityLogSettings,omitempty"` - // LogLocationSettings - Log location settings customer needs to provide when enabling log. - LogLocationSettings *LogLocationSettings `json:"logLocationSettings,omitempty"` -} - -// LogStorageSettings (Deprecated. Please use LogSettings) Log storage settings. -type LogStorageSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // LinkedServiceName - Log storage linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Path - The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` - // LogLevel - Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). - LogLevel interface{} `json:"logLevel,omitempty"` - // EnableReliableLogging - Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). - EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` -} - -// MarshalJSON is the custom marshaler for LogStorageSettings. -func (lss LogStorageSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if lss.LinkedServiceName != nil { - objectMap["linkedServiceName"] = lss.LinkedServiceName - } - if lss.Path != nil { - objectMap["path"] = lss.Path - } - if lss.LogLevel != nil { - objectMap["logLevel"] = lss.LogLevel - } - if lss.EnableReliableLogging != nil { - objectMap["enableReliableLogging"] = lss.EnableReliableLogging - } - for k, v := range lss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for LogStorageSettings struct. -func (lss *LogStorageSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if lss.AdditionalProperties == nil { - lss.AdditionalProperties = make(map[string]interface{}) - } - lss.AdditionalProperties[k] = additionalProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - lss.LinkedServiceName = &linkedServiceName - } - case "path": - if v != nil { - var pathVar interface{} - err = json.Unmarshal(*v, &pathVar) - if err != nil { - return err - } - lss.Path = pathVar - } - case "logLevel": - if v != nil { - var logLevel interface{} - err = json.Unmarshal(*v, &logLevel) - if err != nil { - return err - } - lss.LogLevel = logLevel - } - case "enableReliableLogging": - if v != nil { - var enableReliableLogging interface{} - err = json.Unmarshal(*v, &enableReliableLogging) - if err != nil { - return err - } - lss.EnableReliableLogging = enableReliableLogging - } - } - } - - return nil -} - -// LookupActivity lookup activity. -type LookupActivity struct { - // LookupActivityTypeProperties - Lookup activity properties. - *LookupActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for LookupActivity. -func (la LookupActivity) MarshalJSON() ([]byte, error) { - la.Type = TypeBasicActivityTypeLookup - objectMap := make(map[string]interface{}) - if la.LookupActivityTypeProperties != nil { - objectMap["typeProperties"] = la.LookupActivityTypeProperties - } - if la.LinkedServiceName != nil { - objectMap["linkedServiceName"] = la.LinkedServiceName - } - if la.Policy != nil { - objectMap["policy"] = la.Policy - } - if la.Name != nil { - objectMap["name"] = la.Name - } - if la.Description != nil { - objectMap["description"] = la.Description - } - if la.State != "" { - objectMap["state"] = la.State - } - if la.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = la.OnInactiveMarkAs - } - if la.DependsOn != nil { - objectMap["dependsOn"] = la.DependsOn - } - if la.UserProperties != nil { - objectMap["userProperties"] = la.UserProperties - } - if la.Type != "" { - objectMap["type"] = la.Type - } - for k, v := range la.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsLookupActivity() (*LookupActivity, bool) { - return &la, true -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &la, true -} - -// AsWebHookActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for LookupActivity. -func (la LookupActivity) AsBasicActivity() (BasicActivity, bool) { - return &la, true -} - -// UnmarshalJSON is the custom unmarshaler for LookupActivity struct. -func (la *LookupActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var lookupActivityTypeProperties LookupActivityTypeProperties - err = json.Unmarshal(*v, &lookupActivityTypeProperties) - if err != nil { - return err - } - la.LookupActivityTypeProperties = &lookupActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - la.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - la.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if la.AdditionalProperties == nil { - la.AdditionalProperties = make(map[string]interface{}) - } - la.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - la.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - la.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - la.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - la.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - la.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - la.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - la.Type = typeVar - } - } - } - - return nil -} - -// LookupActivityTypeProperties lookup activity properties. -type LookupActivityTypeProperties struct { - // Source - Dataset-specific source properties, same as copy activity source. - Source BasicCopySource `json:"source,omitempty"` - // Dataset - Lookup activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // FirstRowOnly - Whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). - FirstRowOnly interface{} `json:"firstRowOnly,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for LookupActivityTypeProperties struct. -func (latp *LookupActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "source": - if v != nil { - source, err := unmarshalBasicCopySource(*v) - if err != nil { - return err - } - latp.Source = source - } - case "dataset": - if v != nil { - var dataset DatasetReference - err = json.Unmarshal(*v, &dataset) - if err != nil { - return err - } - latp.Dataset = &dataset - } - case "firstRowOnly": - if v != nil { - var firstRowOnly interface{} - err = json.Unmarshal(*v, &firstRowOnly) - if err != nil { - return err - } - latp.FirstRowOnly = firstRowOnly - } - } - } - - return nil -} - -// MagentoLinkedService magento server linked service. -type MagentoLinkedService struct { - // MagentoLinkedServiceTypeProperties - Magento server linked service properties. - *MagentoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MagentoLinkedService. -func (mls MagentoLinkedService) MarshalJSON() ([]byte, error) { - mls.Type = TypeBasicLinkedServiceTypeMagento - objectMap := make(map[string]interface{}) - if mls.MagentoLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mls.MagentoLinkedServiceTypeProperties - } - if mls.ConnectVia != nil { - objectMap["connectVia"] = mls.ConnectVia - } - if mls.Description != nil { - objectMap["description"] = mls.Description - } - if mls.Parameters != nil { - objectMap["parameters"] = mls.Parameters - } - if mls.Annotations != nil { - objectMap["annotations"] = mls.Annotations - } - if mls.Type != "" { - objectMap["type"] = mls.Type - } - for k, v := range mls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return &mls, true -} - -// AsJiraLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for MagentoLinkedService. -func (mls MagentoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mls, true -} - -// UnmarshalJSON is the custom unmarshaler for MagentoLinkedService struct. -func (mls *MagentoLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var magentoLinkedServiceTypeProperties MagentoLinkedServiceTypeProperties - err = json.Unmarshal(*v, &magentoLinkedServiceTypeProperties) - if err != nil { - return err - } - mls.MagentoLinkedServiceTypeProperties = &magentoLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mls.AdditionalProperties == nil { - mls.AdditionalProperties = make(map[string]interface{}) - } - mls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mls.Type = typeVar - } - } - } - - return nil -} - -// MagentoLinkedServiceTypeProperties magento server linked service properties. -type MagentoLinkedServiceTypeProperties struct { - // Host - The URL of the Magento instance. (i.e. 192.168.222.110/magento3) - Host interface{} `json:"host,omitempty"` - // AccessToken - The access token from Magento. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for MagentoLinkedServiceTypeProperties struct. -func (mlstp *MagentoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - mlstp.Host = host - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - mlstp.AccessToken = accessToken - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - mlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - mlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - mlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - mlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// MagentoObjectDataset magento server dataset. -type MagentoObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MagentoObjectDataset. -func (mod MagentoObjectDataset) MarshalJSON() ([]byte, error) { - mod.Type = TypeBasicDatasetTypeMagentoObject - objectMap := make(map[string]interface{}) - if mod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = mod.GenericDatasetTypeProperties - } - if mod.Description != nil { - objectMap["description"] = mod.Description - } - if mod.Structure != nil { - objectMap["structure"] = mod.Structure - } - if mod.Schema != nil { - objectMap["schema"] = mod.Schema - } - if mod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mod.LinkedServiceName - } - if mod.Parameters != nil { - objectMap["parameters"] = mod.Parameters - } - if mod.Annotations != nil { - objectMap["annotations"] = mod.Annotations - } - if mod.Folder != nil { - objectMap["folder"] = mod.Folder - } - if mod.Type != "" { - objectMap["type"] = mod.Type - } - for k, v := range mod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return &mod, true -} - -// AsJiraObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for MagentoObjectDataset. -func (mod MagentoObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &mod, true -} - -// UnmarshalJSON is the custom unmarshaler for MagentoObjectDataset struct. -func (mod *MagentoObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - mod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mod.AdditionalProperties == nil { - mod.AdditionalProperties = make(map[string]interface{}) - } - mod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - mod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - mod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - mod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - mod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mod.Type = typeVar - } - } - } - - return nil -} - -// MagentoSource a copy activity Magento server source. -type MagentoSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MagentoSource. -func (ms MagentoSource) MarshalJSON() ([]byte, error) { - ms.Type = TypeBasicCopySourceTypeMagentoSource - objectMap := make(map[string]interface{}) - if ms.Query != nil { - objectMap["query"] = ms.Query - } - if ms.QueryTimeout != nil { - objectMap["queryTimeout"] = ms.QueryTimeout - } - if ms.AdditionalColumns != nil { - objectMap["additionalColumns"] = ms.AdditionalColumns - } - if ms.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ms.SourceRetryCount - } - if ms.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ms.SourceRetryWait - } - if ms.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ms.MaxConcurrentConnections - } - if ms.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ms.DisableMetricsCollection - } - if ms.Type != "" { - objectMap["type"] = ms.Type - } - for k, v := range ms.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMagentoSource() (*MagentoSource, bool) { - return &ms, true -} - -// AsJiraSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ms, true -} - -// AsBinarySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for MagentoSource. -func (ms MagentoSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ms, true -} - -// UnmarshalJSON is the custom unmarshaler for MagentoSource struct. -func (ms *MagentoSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ms.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ms.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ms.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ms.AdditionalProperties == nil { - ms.AdditionalProperties = make(map[string]interface{}) - } - ms.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ms.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ms.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ms.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ms.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ms.Type = typeVar - } - } - } - - return nil -} - -// ManagedIdentityCredential managed identity credential. -type ManagedIdentityCredential struct { - // ManagedIdentityTypeProperties - Managed identity credential properties. - *ManagedIdentityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Credential description. - Description *string `json:"description,omitempty"` - // Annotations - List of tags that can be used for describing the Credential. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicCredentialTypeCredential', 'TypeBasicCredentialTypeManagedIdentity', 'TypeBasicCredentialTypeServicePrincipal' - Type TypeBasicCredential `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedIdentityCredential. -func (mic ManagedIdentityCredential) MarshalJSON() ([]byte, error) { - mic.Type = TypeBasicCredentialTypeManagedIdentity - objectMap := make(map[string]interface{}) - if mic.ManagedIdentityTypeProperties != nil { - objectMap["typeProperties"] = mic.ManagedIdentityTypeProperties - } - if mic.Description != nil { - objectMap["description"] = mic.Description - } - if mic.Annotations != nil { - objectMap["annotations"] = mic.Annotations - } - if mic.Type != "" { - objectMap["type"] = mic.Type - } - for k, v := range mic.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsManagedIdentityCredential is the BasicCredential implementation for ManagedIdentityCredential. -func (mic ManagedIdentityCredential) AsManagedIdentityCredential() (*ManagedIdentityCredential, bool) { - return &mic, true -} - -// AsServicePrincipalCredential is the BasicCredential implementation for ManagedIdentityCredential. -func (mic ManagedIdentityCredential) AsServicePrincipalCredential() (*ServicePrincipalCredential, bool) { - return nil, false -} - -// AsCredential is the BasicCredential implementation for ManagedIdentityCredential. -func (mic ManagedIdentityCredential) AsCredential() (*Credential, bool) { - return nil, false -} - -// AsBasicCredential is the BasicCredential implementation for ManagedIdentityCredential. -func (mic ManagedIdentityCredential) AsBasicCredential() (BasicCredential, bool) { - return &mic, true -} - -// UnmarshalJSON is the custom unmarshaler for ManagedIdentityCredential struct. -func (mic *ManagedIdentityCredential) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var managedIdentityTypeProperties ManagedIdentityTypeProperties - err = json.Unmarshal(*v, &managedIdentityTypeProperties) - if err != nil { - return err - } - mic.ManagedIdentityTypeProperties = &managedIdentityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mic.AdditionalProperties == nil { - mic.AdditionalProperties = make(map[string]interface{}) - } - mic.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mic.Description = &description - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mic.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicCredential - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mic.Type = typeVar - } - } - } - - return nil -} - -// ManagedIdentityCredentialResource credential resource type. -type ManagedIdentityCredentialResource struct { - autorest.Response `json:"-"` - // Properties - Managed Identity Credential properties. - Properties *ManagedIdentityCredential `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedIdentityCredentialResource. -func (micr ManagedIdentityCredentialResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if micr.Properties != nil { - objectMap["properties"] = micr.Properties - } - return json.Marshal(objectMap) -} - -// ManagedIdentityTypeProperties managed identity type properties. -type ManagedIdentityTypeProperties struct { - // ResourceID - 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 { - // State - READ-ONLY; Integration runtime state, only valid for managed dedicated integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' - State IntegrationRuntimeState `json:"state,omitempty"` - // ManagedIntegrationRuntimeTypeProperties - Managed integration runtime properties. - *ManagedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` - // ManagedVirtualNetwork - Managed Virtual Network reference. - ManagedVirtualNetwork *ManagedVirtualNetworkReference `json:"managedVirtualNetwork,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Integration runtime description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeTypeIntegrationRuntime', 'TypeBasicIntegrationRuntimeTypeSelfHosted', 'TypeBasicIntegrationRuntimeTypeManaged' - Type TypeBasicIntegrationRuntime `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { - mir.Type = TypeBasicIntegrationRuntimeTypeManaged - objectMap := make(map[string]interface{}) - if mir.ManagedIntegrationRuntimeTypeProperties != nil { - objectMap["typeProperties"] = mir.ManagedIntegrationRuntimeTypeProperties - } - if mir.ManagedVirtualNetwork != nil { - objectMap["managedVirtualNetwork"] = mir.ManagedVirtualNetwork - } - if mir.Description != nil { - objectMap["description"] = mir.Description - } - if mir.Type != "" { - objectMap["type"] = mir.Type - } - for k, v := range mir.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { - return nil, false -} - -// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { - return &mir, true -} - -// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { - return nil, false -} - -// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for ManagedIntegrationRuntime. -func (mir ManagedIntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { - return &mir, true -} - -// UnmarshalJSON is the custom unmarshaler for ManagedIntegrationRuntime struct. -func (mir *ManagedIntegrationRuntime) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "state": - if v != nil { - var state IntegrationRuntimeState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - mir.State = state - } - case "typeProperties": - if v != nil { - var managedIntegrationRuntimeTypeProperties ManagedIntegrationRuntimeTypeProperties - err = json.Unmarshal(*v, &managedIntegrationRuntimeTypeProperties) - if err != nil { - return err - } - mir.ManagedIntegrationRuntimeTypeProperties = &managedIntegrationRuntimeTypeProperties - } - case "managedVirtualNetwork": - if v != nil { - var managedVirtualNetwork ManagedVirtualNetworkReference - err = json.Unmarshal(*v, &managedVirtualNetwork) - if err != nil { - return err - } - mir.ManagedVirtualNetwork = &managedVirtualNetwork - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mir.AdditionalProperties == nil { - mir.AdditionalProperties = make(map[string]interface{}) - } - mir.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mir.Description = &description - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntime - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mir.Type = typeVar - } - } - } - - return nil -} - -// ManagedIntegrationRuntimeError error definition for managed integration runtime. -type ManagedIntegrationRuntimeError struct { - // Time - READ-ONLY; The time when the error occurred. - Time *date.Time `json:"time,omitempty"` - // Code - READ-ONLY; Error code. - Code *string `json:"code,omitempty"` - // Parameters - READ-ONLY; Managed integration runtime error parameters. - Parameters *[]string `json:"parameters,omitempty"` - // Message - READ-ONLY; Error message. - Message *string `json:"message,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeError. -func (mire ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// ManagedIntegrationRuntimeNode properties of integration runtime node. -type ManagedIntegrationRuntimeNode struct { - // NodeID - READ-ONLY; The managed integration runtime node id. - NodeID *string `json:"nodeId,omitempty"` - // Status - READ-ONLY; The managed integration runtime node status. Possible values include: 'ManagedIntegrationRuntimeNodeStatusStarting', 'ManagedIntegrationRuntimeNodeStatusAvailable', 'ManagedIntegrationRuntimeNodeStatusRecycling', 'ManagedIntegrationRuntimeNodeStatusUnavailable' - Status ManagedIntegrationRuntimeNodeStatus `json:"status,omitempty"` - // Errors - The errors that occurred on this integration runtime node. - Errors *[]ManagedIntegrationRuntimeError `json:"errors,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeNode. -func (mirn ManagedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mirn.Errors != nil { - objectMap["errors"] = mirn.Errors - } - return json.Marshal(objectMap) -} - -// ManagedIntegrationRuntimeOperationResult properties of managed integration runtime operation result. -type ManagedIntegrationRuntimeOperationResult struct { - // Type - READ-ONLY; The operation type. Could be start or stop. - Type *string `json:"type,omitempty"` - // StartTime - READ-ONLY; The start time of the operation. - StartTime *date.Time `json:"startTime,omitempty"` - // Result - READ-ONLY; The operation result. - Result *string `json:"result,omitempty"` - // ErrorCode - READ-ONLY; The error code. - ErrorCode *string `json:"errorCode,omitempty"` - // Parameters - READ-ONLY; Managed integration runtime error parameters. - Parameters *[]string `json:"parameters,omitempty"` - // ActivityID - READ-ONLY; The activity id for the operation request. - ActivityID *string `json:"activityId,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeOperationResult. -func (miror ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// ManagedIntegrationRuntimeStatus managed integration runtime status. -type ManagedIntegrationRuntimeStatus struct { - // ManagedIntegrationRuntimeStatusTypeProperties - Managed integration runtime status type properties. - *ManagedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - READ-ONLY; The state of integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' - State IntegrationRuntimeState `json:"state,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' - Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - mirs.Type = TypeBasicIntegrationRuntimeStatusTypeManaged - objectMap := make(map[string]interface{}) - if mirs.ManagedIntegrationRuntimeStatusTypeProperties != nil { - objectMap["typeProperties"] = mirs.ManagedIntegrationRuntimeStatusTypeProperties - } - if mirs.Type != "" { - objectMap["type"] = mirs.Type - } - for k, v := range mirs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { - return &mirs, true -} - -// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { - return nil, false -} - -// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for ManagedIntegrationRuntimeStatus. -func (mirs ManagedIntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { - return &mirs, true -} - -// UnmarshalJSON is the custom unmarshaler for ManagedIntegrationRuntimeStatus struct. -func (mirs *ManagedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var managedIntegrationRuntimeStatusTypeProperties ManagedIntegrationRuntimeStatusTypeProperties - err = json.Unmarshal(*v, &managedIntegrationRuntimeStatusTypeProperties) - if err != nil { - return err - } - mirs.ManagedIntegrationRuntimeStatusTypeProperties = &managedIntegrationRuntimeStatusTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mirs.AdditionalProperties == nil { - mirs.AdditionalProperties = make(map[string]interface{}) - } - mirs.AdditionalProperties[k] = additionalProperties - } - case "dataFactoryName": - if v != nil { - var dataFactoryName string - err = json.Unmarshal(*v, &dataFactoryName) - if err != nil { - return err - } - mirs.DataFactoryName = &dataFactoryName - } - case "state": - if v != nil { - var state IntegrationRuntimeState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - mirs.State = state - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntimeStatus - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mirs.Type = typeVar - } - } - } - - return nil -} - -// ManagedIntegrationRuntimeStatusTypeProperties managed integration runtime status type properties. -type ManagedIntegrationRuntimeStatusTypeProperties struct { - // CreateTime - READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. - CreateTime *date.Time `json:"createTime,omitempty"` - // Nodes - READ-ONLY; The list of nodes for managed integration runtime. - Nodes *[]ManagedIntegrationRuntimeNode `json:"nodes,omitempty"` - // OtherErrors - READ-ONLY; The errors that occurred on this integration runtime. - OtherErrors *[]ManagedIntegrationRuntimeError `json:"otherErrors,omitempty"` - // LastOperation - READ-ONLY; The last operation result that occurred on this integration runtime. - LastOperation *ManagedIntegrationRuntimeOperationResult `json:"lastOperation,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedIntegrationRuntimeStatusTypeProperties. -func (mirstp ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// ManagedIntegrationRuntimeTypeProperties managed integration runtime type properties. -type ManagedIntegrationRuntimeTypeProperties struct { - // ComputeProperties - The compute resource for managed integration runtime. - ComputeProperties *IntegrationRuntimeComputeProperties `json:"computeProperties,omitempty"` - // SsisProperties - SSIS properties for managed integration runtime. - SsisProperties *IntegrationRuntimeSsisProperties `json:"ssisProperties,omitempty"` - // CustomerVirtualNetwork - The name of virtual network to which Azure-SSIS integration runtime will join - CustomerVirtualNetwork *IntegrationRuntimeCustomerVirtualNetwork `json:"customerVirtualNetwork,omitempty"` -} - -// ManagedPrivateEndpoint properties of a managed private endpoint -type ManagedPrivateEndpoint struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectionState - The managed private endpoint connection state - ConnectionState *ConnectionStateProperties `json:"connectionState,omitempty"` - // Fqdns - Fully qualified domain names - Fqdns *[]string `json:"fqdns,omitempty"` - // GroupID - The groupId to which the managed private endpoint is created - GroupID *string `json:"groupId,omitempty"` - // IsReserved - READ-ONLY; Denotes whether the managed private endpoint is reserved - IsReserved *bool `json:"isReserved,omitempty"` - // PrivateLinkResourceID - The ARM resource ID of the resource to which the managed private endpoint is created - PrivateLinkResourceID *string `json:"privateLinkResourceId,omitempty"` - // ProvisioningState - READ-ONLY; The managed private endpoint provisioning state - ProvisioningState *string `json:"provisioningState,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedPrivateEndpoint. -func (mpe ManagedPrivateEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mpe.ConnectionState != nil { - objectMap["connectionState"] = mpe.ConnectionState - } - if mpe.Fqdns != nil { - objectMap["fqdns"] = mpe.Fqdns - } - if mpe.GroupID != nil { - objectMap["groupId"] = mpe.GroupID - } - if mpe.PrivateLinkResourceID != nil { - objectMap["privateLinkResourceId"] = mpe.PrivateLinkResourceID - } - for k, v := range mpe.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ManagedPrivateEndpoint struct. -func (mpe *ManagedPrivateEndpoint) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mpe.AdditionalProperties == nil { - mpe.AdditionalProperties = make(map[string]interface{}) - } - mpe.AdditionalProperties[k] = additionalProperties - } - case "connectionState": - if v != nil { - var connectionState ConnectionStateProperties - err = json.Unmarshal(*v, &connectionState) - if err != nil { - return err - } - mpe.ConnectionState = &connectionState - } - case "fqdns": - if v != nil { - var fqdns []string - err = json.Unmarshal(*v, &fqdns) - if err != nil { - return err - } - mpe.Fqdns = &fqdns - } - case "groupId": - if v != nil { - var groupID string - err = json.Unmarshal(*v, &groupID) - if err != nil { - return err - } - mpe.GroupID = &groupID - } - case "isReserved": - if v != nil { - var isReserved bool - err = json.Unmarshal(*v, &isReserved) - if err != nil { - return err - } - mpe.IsReserved = &isReserved - } - case "privateLinkResourceId": - if v != nil { - var privateLinkResourceID string - err = json.Unmarshal(*v, &privateLinkResourceID) - if err != nil { - return err - } - mpe.PrivateLinkResourceID = &privateLinkResourceID - } - case "provisioningState": - if v != nil { - var provisioningState string - err = json.Unmarshal(*v, &provisioningState) - if err != nil { - return err - } - mpe.ProvisioningState = &provisioningState - } - } - } - - return nil -} - -// ManagedPrivateEndpointListResponse a list of managed private endpoint resources. -type ManagedPrivateEndpointListResponse struct { - autorest.Response `json:"-"` - // Value - List of managed private endpoints. - Value *[]ManagedPrivateEndpointResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// ManagedPrivateEndpointListResponseIterator provides access to a complete listing of -// ManagedPrivateEndpointResource values. -type ManagedPrivateEndpointListResponseIterator struct { - i int - page ManagedPrivateEndpointListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ManagedPrivateEndpointListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedPrivateEndpointListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *ManagedPrivateEndpointListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ManagedPrivateEndpointListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter ManagedPrivateEndpointListResponseIterator) Response() ManagedPrivateEndpointListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ManagedPrivateEndpointListResponseIterator) Value() ManagedPrivateEndpointResource { - if !iter.page.NotDone() { - return ManagedPrivateEndpointResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the ManagedPrivateEndpointListResponseIterator type. -func NewManagedPrivateEndpointListResponseIterator(page ManagedPrivateEndpointListResponsePage) ManagedPrivateEndpointListResponseIterator { - return ManagedPrivateEndpointListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (mpelr ManagedPrivateEndpointListResponse) IsEmpty() bool { - return mpelr.Value == nil || len(*mpelr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (mpelr ManagedPrivateEndpointListResponse) hasNextLink() bool { - return mpelr.NextLink != nil && len(*mpelr.NextLink) != 0 -} - -// managedPrivateEndpointListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (mpelr ManagedPrivateEndpointListResponse) managedPrivateEndpointListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !mpelr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(mpelr.NextLink))) -} - -// ManagedPrivateEndpointListResponsePage contains a page of ManagedPrivateEndpointResource values. -type ManagedPrivateEndpointListResponsePage struct { - fn func(context.Context, ManagedPrivateEndpointListResponse) (ManagedPrivateEndpointListResponse, error) - mpelr ManagedPrivateEndpointListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ManagedPrivateEndpointListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedPrivateEndpointListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.mpelr) - if err != nil { - return err - } - page.mpelr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *ManagedPrivateEndpointListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ManagedPrivateEndpointListResponsePage) NotDone() bool { - return !page.mpelr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page ManagedPrivateEndpointListResponsePage) Response() ManagedPrivateEndpointListResponse { - return page.mpelr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page ManagedPrivateEndpointListResponsePage) Values() []ManagedPrivateEndpointResource { - if page.mpelr.IsEmpty() { - return nil - } - return *page.mpelr.Value -} - -// Creates a new instance of the ManagedPrivateEndpointListResponsePage type. -func NewManagedPrivateEndpointListResponsePage(cur ManagedPrivateEndpointListResponse, getNextPage func(context.Context, ManagedPrivateEndpointListResponse) (ManagedPrivateEndpointListResponse, error)) ManagedPrivateEndpointListResponsePage { - return ManagedPrivateEndpointListResponsePage{ - fn: getNextPage, - mpelr: cur, - } -} - -// ManagedPrivateEndpointResource managed private endpoint resource type. -type ManagedPrivateEndpointResource struct { - autorest.Response `json:"-"` - // Properties - Managed private endpoint properties. - Properties *ManagedPrivateEndpoint `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedPrivateEndpointResource. -func (mper ManagedPrivateEndpointResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mper.Properties != nil { - objectMap["properties"] = mper.Properties - } - return json.Marshal(objectMap) -} - -// ManagedVirtualNetwork a managed Virtual Network associated with the Azure Data Factory -type ManagedVirtualNetwork struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // VNetID - READ-ONLY; Managed Virtual Network ID. - VNetID *string `json:"vNetId,omitempty"` - // Alias - READ-ONLY; Managed Virtual Network alias. - Alias *string `json:"alias,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedVirtualNetwork. -func (mvn ManagedVirtualNetwork) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - for k, v := range mvn.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ManagedVirtualNetwork struct. -func (mvn *ManagedVirtualNetwork) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mvn.AdditionalProperties == nil { - mvn.AdditionalProperties = make(map[string]interface{}) - } - mvn.AdditionalProperties[k] = additionalProperties - } - case "vNetId": - if v != nil { - var vNetID string - err = json.Unmarshal(*v, &vNetID) - if err != nil { - return err - } - mvn.VNetID = &vNetID - } - case "alias": - if v != nil { - var alias string - err = json.Unmarshal(*v, &alias) - if err != nil { - return err - } - mvn.Alias = &alias - } - } - } - - return nil -} - -// ManagedVirtualNetworkListResponse a list of managed Virtual Network resources. -type ManagedVirtualNetworkListResponse struct { - autorest.Response `json:"-"` - // Value - List of managed Virtual Networks. - Value *[]ManagedVirtualNetworkResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// ManagedVirtualNetworkListResponseIterator provides access to a complete listing of -// ManagedVirtualNetworkResource values. -type ManagedVirtualNetworkListResponseIterator struct { - i int - page ManagedVirtualNetworkListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *ManagedVirtualNetworkListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedVirtualNetworkListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *ManagedVirtualNetworkListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter ManagedVirtualNetworkListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter ManagedVirtualNetworkListResponseIterator) Response() ManagedVirtualNetworkListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter ManagedVirtualNetworkListResponseIterator) Value() ManagedVirtualNetworkResource { - if !iter.page.NotDone() { - return ManagedVirtualNetworkResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the ManagedVirtualNetworkListResponseIterator type. -func NewManagedVirtualNetworkListResponseIterator(page ManagedVirtualNetworkListResponsePage) ManagedVirtualNetworkListResponseIterator { - return ManagedVirtualNetworkListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (mvnlr ManagedVirtualNetworkListResponse) IsEmpty() bool { - return mvnlr.Value == nil || len(*mvnlr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (mvnlr ManagedVirtualNetworkListResponse) hasNextLink() bool { - return mvnlr.NextLink != nil && len(*mvnlr.NextLink) != 0 -} - -// managedVirtualNetworkListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (mvnlr ManagedVirtualNetworkListResponse) managedVirtualNetworkListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !mvnlr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(mvnlr.NextLink))) -} - -// ManagedVirtualNetworkListResponsePage contains a page of ManagedVirtualNetworkResource values. -type ManagedVirtualNetworkListResponsePage struct { - fn func(context.Context, ManagedVirtualNetworkListResponse) (ManagedVirtualNetworkListResponse, error) - mvnlr ManagedVirtualNetworkListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *ManagedVirtualNetworkListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/ManagedVirtualNetworkListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.mvnlr) - if err != nil { - return err - } - page.mvnlr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *ManagedVirtualNetworkListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page ManagedVirtualNetworkListResponsePage) NotDone() bool { - return !page.mvnlr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page ManagedVirtualNetworkListResponsePage) Response() ManagedVirtualNetworkListResponse { - return page.mvnlr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page ManagedVirtualNetworkListResponsePage) Values() []ManagedVirtualNetworkResource { - if page.mvnlr.IsEmpty() { - return nil - } - return *page.mvnlr.Value -} - -// Creates a new instance of the ManagedVirtualNetworkListResponsePage type. -func NewManagedVirtualNetworkListResponsePage(cur ManagedVirtualNetworkListResponse, getNextPage func(context.Context, ManagedVirtualNetworkListResponse) (ManagedVirtualNetworkListResponse, error)) ManagedVirtualNetworkListResponsePage { - return ManagedVirtualNetworkListResponsePage{ - fn: getNextPage, - mvnlr: cur, - } -} - -// ManagedVirtualNetworkReference managed Virtual Network reference type. -type ManagedVirtualNetworkReference struct { - // Type - Managed Virtual Network reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference ManagedVirtualNetwork name. - ReferenceName *string `json:"referenceName,omitempty"` -} - -// ManagedVirtualNetworkResource managed Virtual Network resource type. -type ManagedVirtualNetworkResource struct { - autorest.Response `json:"-"` - // Properties - Managed Virtual Network properties. - Properties *ManagedVirtualNetwork `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for ManagedVirtualNetworkResource. -func (mvnr ManagedVirtualNetworkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mvnr.Properties != nil { - objectMap["properties"] = mvnr.Properties - } - return json.Marshal(objectMap) -} - -// MapperAttributeMapping source and target column mapping details. -type MapperAttributeMapping struct { - // Name - Name of the target column. - Name *string `json:"name,omitempty"` - // Type - Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'. Possible values include: 'MappingTypeDirect', 'MappingTypeDerived', 'MappingTypeAggregate' - Type MappingType `json:"type,omitempty"` - // FunctionName - Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping. - FunctionName *string `json:"functionName,omitempty"` - // Expression - Expression used for 'Aggregate' and 'Derived' type mapping. - Expression *string `json:"expression,omitempty"` - // AttributeReference - Reference of the source column used in the mapping. It is used for 'Direct' mapping type only. - AttributeReference *MapperAttributeReference `json:"attributeReference,omitempty"` - // AttributeReferences - List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only. - AttributeReferences *[]MapperAttributeReference `json:"attributeReferences,omitempty"` -} - -// MapperAttributeMappings attribute mapping details. -type MapperAttributeMappings struct { - // AttributeMappings - List of attribute mappings. - AttributeMappings *[]MapperAttributeMapping `json:"attributeMappings,omitempty"` -} - -// MapperAttributeReference attribute reference details for the referred column. -type MapperAttributeReference struct { - // Name - Name of the column. - Name *string `json:"name,omitempty"` - // Entity - Name of the table. - Entity *string `json:"entity,omitempty"` - // EntityConnectionReference - The connection reference for the connection. - EntityConnectionReference *MapperConnectionReference `json:"entityConnectionReference,omitempty"` -} - -// MapperConnection source connection details. -type MapperConnection struct { - // LinkedService - Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` - // LinkedServiceType - Type of the linked service e.g.: AzureBlobFS. - LinkedServiceType *string `json:"linkedServiceType,omitempty"` - // Type - Type of connection via linked service or dataset. - Type *string `json:"type,omitempty"` - // IsInlineDataset - A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported. - IsInlineDataset *bool `json:"isInlineDataset,omitempty"` - // CommonDslConnectorProperties - List of name/value pairs for connection properties. - CommonDslConnectorProperties *[]MapperDslConnectorProperties `json:"commonDslConnectorProperties,omitempty"` -} - -// MapperConnectionReference source or target connection reference details. -type MapperConnectionReference struct { - // ConnectionName - Name of the connection - ConnectionName *string `json:"connectionName,omitempty"` - // Type - Type of connection via linked service or dataset. Possible values include: 'ConnectionTypeLinkedservicetype' - Type ConnectionType `json:"type,omitempty"` -} - -// MapperDslConnectorProperties connector properties of a CDC table in terms of name / value pairs. -type MapperDslConnectorProperties struct { - // Name - Name of the property. - Name *string `json:"name,omitempty"` - // Value - Value of the property. - Value interface{} `json:"value,omitempty"` -} - -// MapperPolicy CDC Policy. -type MapperPolicy struct { - // Mode - Mode of running the CDC: batch vs continuous. - Mode *string `json:"mode,omitempty"` - // Recurrence - Defines the frequency and interval for running the CDC for batch mode. - Recurrence *MapperPolicyRecurrence `json:"recurrence,omitempty"` -} - -// MapperPolicyRecurrence CDC policy recurrence details. -type MapperPolicyRecurrence struct { - // Frequency - Frequency of period in terms of 'Hour', 'Minute' or 'Second'. Possible values include: 'FrequencyTypeHour', 'FrequencyTypeMinute', 'FrequencyTypeSecond' - Frequency FrequencyType `json:"frequency,omitempty"` - // Interval - Actual interval value as per chosen frequency. - Interval *int32 `json:"interval,omitempty"` -} - -// MapperSourceConnectionsInfo a object which contains list of tables and connection details for a source -// connection. -type MapperSourceConnectionsInfo struct { - // SourceEntities - List of source tables for a source connection. - SourceEntities *[]MapperTable `json:"sourceEntities,omitempty"` - Connection *MapperConnection `json:"connection,omitempty"` -} - -// MapperTable CDC table details. -type MapperTable struct { - // Name - Name of the table. - Name *string `json:"name,omitempty"` - // MapperTableProperties - Table properties. - *MapperTableProperties `json:"properties,omitempty"` -} - -// MarshalJSON is the custom marshaler for MapperTable. -func (mt MapperTable) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mt.Name != nil { - objectMap["name"] = mt.Name - } - if mt.MapperTableProperties != nil { - objectMap["properties"] = mt.MapperTableProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for MapperTable struct. -func (mt *MapperTable) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - mt.Name = &name - } - case "properties": - if v != nil { - var mapperTableProperties MapperTableProperties - err = json.Unmarshal(*v, &mapperTableProperties) - if err != nil { - return err - } - mt.MapperTableProperties = &mapperTableProperties - } - } - } - - return nil -} - -// MapperTableProperties properties for a CDC table. -type MapperTableProperties struct { - // Schema - List of columns for the source table. - Schema *[]MapperTableSchema `json:"schema,omitempty"` - // DslConnectorProperties - List of name/value pairs for connection properties. - DslConnectorProperties *[]MapperDslConnectorProperties `json:"dslConnectorProperties,omitempty"` -} - -// MapperTableSchema schema of a CDC table in terms of column names and their corresponding data types. -type MapperTableSchema struct { - // Name - Name of the column. - Name *string `json:"name,omitempty"` - // DataType - Data type of the column. - DataType *string `json:"dataType,omitempty"` -} - -// MapperTargetConnectionsInfo a object which contains list of tables and connection details for a target -// connection. -type MapperTargetConnectionsInfo struct { - // TargetEntities - List of source tables for a target connection. - TargetEntities *[]MapperTable `json:"targetEntities,omitempty"` - Connection *MapperConnection `json:"connection,omitempty"` - // DataMapperMappings - List of table mappings. - DataMapperMappings *[]DataMapperMapping `json:"dataMapperMappings,omitempty"` - // Relationships - List of relationship info among the tables. - Relationships *[]interface{} `json:"relationships,omitempty"` -} - -// MappingDataFlow mapping data flow. -type MappingDataFlow struct { - // MappingDataFlowTypeProperties - Mapping data flow type properties. - *MappingDataFlowTypeProperties `json:"typeProperties,omitempty"` - // Description - The description of the data flow. - Description *string `json:"description,omitempty"` - // Annotations - List of tags that can be used for describing the data flow. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDataFlowTypeDataFlow', 'TypeBasicDataFlowTypeWranglingDataFlow', 'TypeBasicDataFlowTypeFlowlet', 'TypeBasicDataFlowTypeMappingDataFlow' - Type TypeBasicDataFlow `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MappingDataFlow. -func (mdf MappingDataFlow) MarshalJSON() ([]byte, error) { - mdf.Type = TypeBasicDataFlowTypeMappingDataFlow - objectMap := make(map[string]interface{}) - if mdf.MappingDataFlowTypeProperties != nil { - objectMap["typeProperties"] = mdf.MappingDataFlowTypeProperties - } - if mdf.Description != nil { - objectMap["description"] = mdf.Description - } - if mdf.Annotations != nil { - objectMap["annotations"] = mdf.Annotations - } - if mdf.Folder != nil { - objectMap["folder"] = mdf.Folder - } - if mdf.Type != "" { - objectMap["type"] = mdf.Type - } - return json.Marshal(objectMap) -} - -// AsWranglingDataFlow is the BasicDataFlow implementation for MappingDataFlow. -func (mdf MappingDataFlow) AsWranglingDataFlow() (*WranglingDataFlow, bool) { - return nil, false -} - -// AsFlowlet is the BasicDataFlow implementation for MappingDataFlow. -func (mdf MappingDataFlow) AsFlowlet() (*Flowlet, bool) { - return nil, false -} - -// AsMappingDataFlow is the BasicDataFlow implementation for MappingDataFlow. -func (mdf MappingDataFlow) AsMappingDataFlow() (*MappingDataFlow, bool) { - return &mdf, true -} - -// AsDataFlow is the BasicDataFlow implementation for MappingDataFlow. -func (mdf MappingDataFlow) AsDataFlow() (*DataFlow, bool) { - return nil, false -} - -// AsBasicDataFlow is the BasicDataFlow implementation for MappingDataFlow. -func (mdf MappingDataFlow) AsBasicDataFlow() (BasicDataFlow, bool) { - return &mdf, true -} - -// UnmarshalJSON is the custom unmarshaler for MappingDataFlow struct. -func (mdf *MappingDataFlow) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mappingDataFlowTypeProperties MappingDataFlowTypeProperties - err = json.Unmarshal(*v, &mappingDataFlowTypeProperties) - if err != nil { - return err - } - mdf.MappingDataFlowTypeProperties = &mappingDataFlowTypeProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdf.Description = &description - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdf.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DataFlowFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - mdf.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataFlow - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdf.Type = typeVar - } - } - } - - return nil -} - -// MappingDataFlowTypeProperties mapping data flow type properties. -type MappingDataFlowTypeProperties struct { - // Sources - List of sources in data flow. - Sources *[]DataFlowSource `json:"sources,omitempty"` - // Sinks - List of sinks in data flow. - Sinks *[]DataFlowSink `json:"sinks,omitempty"` - // Transformations - List of transformations in data flow. - Transformations *[]Transformation `json:"transformations,omitempty"` - // Script - DataFlow script. - Script *string `json:"script,omitempty"` - // ScriptLines - Data flow script lines. - ScriptLines *[]string `json:"scriptLines,omitempty"` -} - -// MariaDBLinkedService mariaDB server linked service. -type MariaDBLinkedService struct { - // MariaDBLinkedServiceTypeProperties - MariaDB server linked service properties. - *MariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MariaDBLinkedService. -func (mdls MariaDBLinkedService) MarshalJSON() ([]byte, error) { - mdls.Type = TypeBasicLinkedServiceTypeMariaDB - objectMap := make(map[string]interface{}) - if mdls.MariaDBLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mdls.MariaDBLinkedServiceTypeProperties - } - if mdls.ConnectVia != nil { - objectMap["connectVia"] = mdls.ConnectVia - } - if mdls.Description != nil { - objectMap["description"] = mdls.Description - } - if mdls.Parameters != nil { - objectMap["parameters"] = mdls.Parameters - } - if mdls.Annotations != nil { - objectMap["annotations"] = mdls.Annotations - } - if mdls.Type != "" { - objectMap["type"] = mdls.Type - } - for k, v := range mdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return &mdls, true -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for MariaDBLinkedService. -func (mdls MariaDBLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mdls, true -} - -// UnmarshalJSON is the custom unmarshaler for MariaDBLinkedService struct. -func (mdls *MariaDBLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mariaDBLinkedServiceTypeProperties MariaDBLinkedServiceTypeProperties - err = json.Unmarshal(*v, &mariaDBLinkedServiceTypeProperties) - if err != nil { - return err - } - mdls.MariaDBLinkedServiceTypeProperties = &mariaDBLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdls.AdditionalProperties == nil { - mdls.AdditionalProperties = make(map[string]interface{}) - } - mdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdls.Type = typeVar - } - } - } - - return nil -} - -// MariaDBLinkedServiceTypeProperties mariaDB server linked service properties. -type MariaDBLinkedServiceTypeProperties struct { - // DriverVersion - 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 interface{} `json:"driverVersion,omitempty"` - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Server - Server name for connection. Type: string. - Server interface{} `json:"server,omitempty"` - // Port - The port for the connection. Type: integer. - Port interface{} `json:"port,omitempty"` - // Username - Username for authentication. Type: string. - Username interface{} `json:"username,omitempty"` - // Database - Database name for connection. Type: string. - Database interface{} `json:"database,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// MariaDBSource a copy activity MariaDB server source. -type MariaDBSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MariaDBSource. -func (mds MariaDBSource) MarshalJSON() ([]byte, error) { - mds.Type = TypeBasicCopySourceTypeMariaDBSource - objectMap := make(map[string]interface{}) - if mds.Query != nil { - objectMap["query"] = mds.Query - } - if mds.QueryTimeout != nil { - objectMap["queryTimeout"] = mds.QueryTimeout - } - if mds.AdditionalColumns != nil { - objectMap["additionalColumns"] = mds.AdditionalColumns - } - if mds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = mds.SourceRetryCount - } - if mds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = mds.SourceRetryWait - } - if mds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mds.MaxConcurrentConnections - } - if mds.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mds.DisableMetricsCollection - } - if mds.Type != "" { - objectMap["type"] = mds.Type - } - for k, v := range mds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMariaDBSource() (*MariaDBSource, bool) { - return &mds, true -} - -// AsMagentoSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &mds, true -} - -// AsBinarySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for MariaDBSource. -func (mds MariaDBSource) AsBasicCopySource() (BasicCopySource, bool) { - return &mds, true -} - -// UnmarshalJSON is the custom unmarshaler for MariaDBSource struct. -func (mds *MariaDBSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - mds.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - mds.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - mds.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mds.AdditionalProperties == nil { - mds.AdditionalProperties = make(map[string]interface{}) - } - mds.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - mds.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - mds.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mds.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mds.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mds.Type = typeVar - } - } - } - - return nil -} - -// MariaDBTableDataset mariaDB server dataset. -type MariaDBTableDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) MarshalJSON() ([]byte, error) { - mdtd.Type = TypeBasicDatasetTypeMariaDBTable - objectMap := make(map[string]interface{}) - if mdtd.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = mdtd.GenericDatasetTypeProperties - } - if mdtd.Description != nil { - objectMap["description"] = mdtd.Description - } - if mdtd.Structure != nil { - objectMap["structure"] = mdtd.Structure - } - if mdtd.Schema != nil { - objectMap["schema"] = mdtd.Schema - } - if mdtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mdtd.LinkedServiceName - } - if mdtd.Parameters != nil { - objectMap["parameters"] = mdtd.Parameters - } - if mdtd.Annotations != nil { - objectMap["annotations"] = mdtd.Annotations - } - if mdtd.Folder != nil { - objectMap["folder"] = mdtd.Folder - } - if mdtd.Type != "" { - objectMap["type"] = mdtd.Type - } - for k, v := range mdtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return &mdtd, true -} - -// AsMagentoObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for MariaDBTableDataset. -func (mdtd MariaDBTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &mdtd, true -} - -// UnmarshalJSON is the custom unmarshaler for MariaDBTableDataset struct. -func (mdtd *MariaDBTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - mdtd.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdtd.AdditionalProperties == nil { - mdtd.AdditionalProperties = make(map[string]interface{}) - } - mdtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - mdtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - mdtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - mdtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - mdtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdtd.Type = typeVar - } - } - } - - return nil -} - -// MarketoLinkedService marketo server linked service. -type MarketoLinkedService struct { - // MarketoLinkedServiceTypeProperties - Marketo server linked service properties. - *MarketoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MarketoLinkedService. -func (mls MarketoLinkedService) MarshalJSON() ([]byte, error) { - mls.Type = TypeBasicLinkedServiceTypeMarketo - objectMap := make(map[string]interface{}) - if mls.MarketoLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mls.MarketoLinkedServiceTypeProperties - } - if mls.ConnectVia != nil { - objectMap["connectVia"] = mls.ConnectVia - } - if mls.Description != nil { - objectMap["description"] = mls.Description - } - if mls.Parameters != nil { - objectMap["parameters"] = mls.Parameters - } - if mls.Annotations != nil { - objectMap["annotations"] = mls.Annotations - } - if mls.Type != "" { - objectMap["type"] = mls.Type - } - for k, v := range mls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return &mls, true -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for MarketoLinkedService. -func (mls MarketoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mls, true -} - -// UnmarshalJSON is the custom unmarshaler for MarketoLinkedService struct. -func (mls *MarketoLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var marketoLinkedServiceTypeProperties MarketoLinkedServiceTypeProperties - err = json.Unmarshal(*v, &marketoLinkedServiceTypeProperties) - if err != nil { - return err - } - mls.MarketoLinkedServiceTypeProperties = &marketoLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mls.AdditionalProperties == nil { - mls.AdditionalProperties = make(map[string]interface{}) - } - mls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mls.Type = typeVar - } - } - } - - return nil -} - -// MarketoLinkedServiceTypeProperties marketo server linked service properties. -type MarketoLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // ClientID - The client Id of your Marketo service. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret of your Marketo service. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for MarketoLinkedServiceTypeProperties struct. -func (mlstp *MarketoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - mlstp.Endpoint = endpoint - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - mlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - mlstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - mlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - mlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - mlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - mlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// MarketoObjectDataset marketo server dataset. -type MarketoObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MarketoObjectDataset. -func (mod MarketoObjectDataset) MarshalJSON() ([]byte, error) { - mod.Type = TypeBasicDatasetTypeMarketoObject - objectMap := make(map[string]interface{}) - if mod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = mod.GenericDatasetTypeProperties - } - if mod.Description != nil { - objectMap["description"] = mod.Description - } - if mod.Structure != nil { - objectMap["structure"] = mod.Structure - } - if mod.Schema != nil { - objectMap["schema"] = mod.Schema - } - if mod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mod.LinkedServiceName - } - if mod.Parameters != nil { - objectMap["parameters"] = mod.Parameters - } - if mod.Annotations != nil { - objectMap["annotations"] = mod.Annotations - } - if mod.Folder != nil { - objectMap["folder"] = mod.Folder - } - if mod.Type != "" { - objectMap["type"] = mod.Type - } - for k, v := range mod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return &mod, true -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for MarketoObjectDataset. -func (mod MarketoObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &mod, true -} - -// UnmarshalJSON is the custom unmarshaler for MarketoObjectDataset struct. -func (mod *MarketoObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - mod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mod.AdditionalProperties == nil { - mod.AdditionalProperties = make(map[string]interface{}) - } - mod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - mod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - mod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - mod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - mod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mod.Type = typeVar - } - } - } - - return nil -} - -// MarketoSource a copy activity Marketo server source. -type MarketoSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MarketoSource. -func (ms MarketoSource) MarshalJSON() ([]byte, error) { - ms.Type = TypeBasicCopySourceTypeMarketoSource - objectMap := make(map[string]interface{}) - if ms.Query != nil { - objectMap["query"] = ms.Query - } - if ms.QueryTimeout != nil { - objectMap["queryTimeout"] = ms.QueryTimeout - } - if ms.AdditionalColumns != nil { - objectMap["additionalColumns"] = ms.AdditionalColumns - } - if ms.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ms.SourceRetryCount - } - if ms.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ms.SourceRetryWait - } - if ms.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ms.MaxConcurrentConnections - } - if ms.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ms.DisableMetricsCollection - } - if ms.Type != "" { - objectMap["type"] = ms.Type - } - for k, v := range ms.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMarketoSource() (*MarketoSource, bool) { - return &ms, true -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ms, true -} - -// AsBinarySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for MarketoSource. -func (ms MarketoSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ms, true -} - -// UnmarshalJSON is the custom unmarshaler for MarketoSource struct. -func (ms *MarketoSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ms.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ms.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ms.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ms.AdditionalProperties == nil { - ms.AdditionalProperties = make(map[string]interface{}) - } - ms.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ms.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ms.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ms.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ms.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ms.Type = typeVar - } - } - } - - return nil -} - -// MetadataItem specify the name and value of custom metadata item. -type MetadataItem struct { - // Name - Metadata item key name. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - // Value - Metadata item value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} - -// MicrosoftAccessLinkedService microsoft Access linked service. -type MicrosoftAccessLinkedService struct { - // MicrosoftAccessLinkedServiceTypeProperties - Microsoft Access linked service properties. - *MicrosoftAccessLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) MarshalJSON() ([]byte, error) { - mals.Type = TypeBasicLinkedServiceTypeMicrosoftAccess - objectMap := make(map[string]interface{}) - if mals.MicrosoftAccessLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mals.MicrosoftAccessLinkedServiceTypeProperties - } - if mals.ConnectVia != nil { - objectMap["connectVia"] = mals.ConnectVia - } - if mals.Description != nil { - objectMap["description"] = mals.Description - } - if mals.Parameters != nil { - objectMap["parameters"] = mals.Parameters - } - if mals.Annotations != nil { - objectMap["annotations"] = mals.Annotations - } - if mals.Type != "" { - objectMap["type"] = mals.Type - } - for k, v := range mals.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return &mals, true -} - -// AsInformixLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for MicrosoftAccessLinkedService. -func (mals MicrosoftAccessLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mals, true -} - -// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessLinkedService struct. -func (mals *MicrosoftAccessLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var microsoftAccessLinkedServiceTypeProperties MicrosoftAccessLinkedServiceTypeProperties - err = json.Unmarshal(*v, µsoftAccessLinkedServiceTypeProperties) - if err != nil { - return err - } - mals.MicrosoftAccessLinkedServiceTypeProperties = µsoftAccessLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mals.AdditionalProperties == nil { - mals.AdditionalProperties = make(map[string]interface{}) - } - mals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mals.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mals.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mals.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mals.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mals.Type = typeVar - } - } - } - - return nil -} - -// MicrosoftAccessLinkedServiceTypeProperties microsoft Access linked service properties. -type MicrosoftAccessLinkedServiceTypeProperties struct { - // ConnectionString - The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. - ConnectionString interface{} `json:"connectionString,omitempty"` - // AuthenticationType - 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"` - // Credential - The access credential portion of the connection string specified in driver-specific property-value format. - Credential BasicSecretBase `json:"credential,omitempty"` - // UserName - User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessLinkedServiceTypeProperties struct. -func (malstp *MicrosoftAccessLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - malstp.ConnectionString = connectionString - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - malstp.AuthenticationType = authenticationType - } - case "credential": - if v != nil { - credential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - malstp.Credential = credential - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - malstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - malstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - malstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// MicrosoftAccessSink a copy activity Microsoft Access sink. -type MicrosoftAccessSink struct { - // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) MarshalJSON() ([]byte, error) { - mas.Type = TypeBasicCopySinkTypeMicrosoftAccessSink - objectMap := make(map[string]interface{}) - if mas.PreCopyScript != nil { - objectMap["preCopyScript"] = mas.PreCopyScript - } - if mas.WriteBatchSize != nil { - objectMap["writeBatchSize"] = mas.WriteBatchSize - } - if mas.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = mas.WriteBatchTimeout - } - if mas.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = mas.SinkRetryCount - } - if mas.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = mas.SinkRetryWait - } - if mas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mas.MaxConcurrentConnections - } - if mas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mas.DisableMetricsCollection - } - if mas.Type != "" { - objectMap["type"] = mas.Type - } - for k, v := range mas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return &mas, true -} - -// AsInformixSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for MicrosoftAccessSink. -func (mas MicrosoftAccessSink) AsBasicCopySink() (BasicCopySink, bool) { - return &mas, true -} - -// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessSink struct. -func (mas *MicrosoftAccessSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - mas.PreCopyScript = preCopyScript - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mas.AdditionalProperties == nil { - mas.AdditionalProperties = make(map[string]interface{}) - } - mas.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - mas.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - mas.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - mas.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - mas.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mas.Type = typeVar - } - } - } - - return nil -} - -// MicrosoftAccessSource a copy activity source for Microsoft Access. -type MicrosoftAccessSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) MarshalJSON() ([]byte, error) { - mas.Type = TypeBasicCopySourceTypeMicrosoftAccessSource - objectMap := make(map[string]interface{}) - if mas.Query != nil { - objectMap["query"] = mas.Query - } - if mas.AdditionalColumns != nil { - objectMap["additionalColumns"] = mas.AdditionalColumns - } - if mas.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = mas.SourceRetryCount - } - if mas.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = mas.SourceRetryWait - } - if mas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mas.MaxConcurrentConnections - } - if mas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mas.DisableMetricsCollection - } - if mas.Type != "" { - objectMap["type"] = mas.Type - } - for k, v := range mas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return &mas, true -} - -// AsRelationalSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for MicrosoftAccessSource. -func (mas MicrosoftAccessSource) AsBasicCopySource() (BasicCopySource, bool) { - return &mas, true -} - -// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessSource struct. -func (mas *MicrosoftAccessSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - mas.Query = query - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - mas.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mas.AdditionalProperties == nil { - mas.AdditionalProperties = make(map[string]interface{}) - } - mas.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - mas.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - mas.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mas.Type = typeVar - } - } - } - - return nil -} - -// MicrosoftAccessTableDataset the Microsoft Access table dataset. -type MicrosoftAccessTableDataset struct { - // MicrosoftAccessTableDatasetTypeProperties - Microsoft Access table dataset properties. - *MicrosoftAccessTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) MarshalJSON() ([]byte, error) { - matd.Type = TypeBasicDatasetTypeMicrosoftAccessTable - objectMap := make(map[string]interface{}) - if matd.MicrosoftAccessTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = matd.MicrosoftAccessTableDatasetTypeProperties - } - if matd.Description != nil { - objectMap["description"] = matd.Description - } - if matd.Structure != nil { - objectMap["structure"] = matd.Structure - } - if matd.Schema != nil { - objectMap["schema"] = matd.Schema - } - if matd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = matd.LinkedServiceName - } - if matd.Parameters != nil { - objectMap["parameters"] = matd.Parameters - } - if matd.Annotations != nil { - objectMap["annotations"] = matd.Annotations - } - if matd.Folder != nil { - objectMap["folder"] = matd.Folder - } - if matd.Type != "" { - objectMap["type"] = matd.Type - } - for k, v := range matd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return &matd, true -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for MicrosoftAccessTableDataset. -func (matd MicrosoftAccessTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &matd, true -} - -// UnmarshalJSON is the custom unmarshaler for MicrosoftAccessTableDataset struct. -func (matd *MicrosoftAccessTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var microsoftAccessTableDatasetTypeProperties MicrosoftAccessTableDatasetTypeProperties - err = json.Unmarshal(*v, µsoftAccessTableDatasetTypeProperties) - if err != nil { - return err - } - matd.MicrosoftAccessTableDatasetTypeProperties = µsoftAccessTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if matd.AdditionalProperties == nil { - matd.AdditionalProperties = make(map[string]interface{}) - } - matd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - matd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - matd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - matd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - matd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - matd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - matd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - matd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - matd.Type = typeVar - } - } - } - - return nil -} - -// MicrosoftAccessTableDatasetTypeProperties microsoft Access table dataset properties. -type MicrosoftAccessTableDatasetTypeProperties struct { - // TableName - The Microsoft Access table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// MongoDbAtlasCollectionDataset the MongoDB Atlas database dataset. -type MongoDbAtlasCollectionDataset struct { - // MongoDbAtlasCollectionDatasetTypeProperties - MongoDB Atlas database dataset properties. - *MongoDbAtlasCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) MarshalJSON() ([]byte, error) { - mdacd.Type = TypeBasicDatasetTypeMongoDbAtlasCollection - objectMap := make(map[string]interface{}) - if mdacd.MongoDbAtlasCollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = mdacd.MongoDbAtlasCollectionDatasetTypeProperties - } - if mdacd.Description != nil { - objectMap["description"] = mdacd.Description - } - if mdacd.Structure != nil { - objectMap["structure"] = mdacd.Structure - } - if mdacd.Schema != nil { - objectMap["schema"] = mdacd.Schema - } - if mdacd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mdacd.LinkedServiceName - } - if mdacd.Parameters != nil { - objectMap["parameters"] = mdacd.Parameters - } - if mdacd.Annotations != nil { - objectMap["annotations"] = mdacd.Annotations - } - if mdacd.Folder != nil { - objectMap["folder"] = mdacd.Folder - } - if mdacd.Type != "" { - objectMap["type"] = mdacd.Type - } - for k, v := range mdacd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return &mdacd, true -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for MongoDbAtlasCollectionDataset. -func (mdacd MongoDbAtlasCollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &mdacd, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasCollectionDataset struct. -func (mdacd *MongoDbAtlasCollectionDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mongoDbAtlasCollectionDatasetTypeProperties MongoDbAtlasCollectionDatasetTypeProperties - err = json.Unmarshal(*v, &mongoDbAtlasCollectionDatasetTypeProperties) - if err != nil { - return err - } - mdacd.MongoDbAtlasCollectionDatasetTypeProperties = &mongoDbAtlasCollectionDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdacd.AdditionalProperties == nil { - mdacd.AdditionalProperties = make(map[string]interface{}) - } - mdacd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdacd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - mdacd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - mdacd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - mdacd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdacd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdacd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - mdacd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdacd.Type = typeVar - } - } - } - - return nil -} - -// MongoDbAtlasCollectionDatasetTypeProperties mongoDB Atlas database dataset properties. -type MongoDbAtlasCollectionDatasetTypeProperties struct { - // Collection - The collection name of the MongoDB Atlas database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` -} - -// MongoDbAtlasLinkedService linked service for MongoDB Atlas data source. -type MongoDbAtlasLinkedService struct { - // MongoDbAtlasLinkedServiceTypeProperties - MongoDB Atlas linked service properties. - *MongoDbAtlasLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) MarshalJSON() ([]byte, error) { - mdals.Type = TypeBasicLinkedServiceTypeMongoDbAtlas - objectMap := make(map[string]interface{}) - if mdals.MongoDbAtlasLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mdals.MongoDbAtlasLinkedServiceTypeProperties - } - if mdals.ConnectVia != nil { - objectMap["connectVia"] = mdals.ConnectVia - } - if mdals.Description != nil { - objectMap["description"] = mdals.Description - } - if mdals.Parameters != nil { - objectMap["parameters"] = mdals.Parameters - } - if mdals.Annotations != nil { - objectMap["annotations"] = mdals.Annotations - } - if mdals.Type != "" { - objectMap["type"] = mdals.Type - } - for k, v := range mdals.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return &mdals, true -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for MongoDbAtlasLinkedService. -func (mdals MongoDbAtlasLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mdals, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasLinkedService struct. -func (mdals *MongoDbAtlasLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mongoDbAtlasLinkedServiceTypeProperties MongoDbAtlasLinkedServiceTypeProperties - err = json.Unmarshal(*v, &mongoDbAtlasLinkedServiceTypeProperties) - if err != nil { - return err - } - mdals.MongoDbAtlasLinkedServiceTypeProperties = &mongoDbAtlasLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdals.AdditionalProperties == nil { - mdals.AdditionalProperties = make(map[string]interface{}) - } - mdals.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mdals.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdals.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdals.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdals.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdals.Type = typeVar - } - } - } - - return nil -} - -// MongoDbAtlasLinkedServiceTypeProperties mongoDB Atlas linked service properties. -type MongoDbAtlasLinkedServiceTypeProperties struct { - // ConnectionString - The MongoDB Atlas connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Database - The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // DriverVersion - The driver version that you want to choose. Allowed value are v1 and v2. Type: string (or Expression with resultType string). - DriverVersion interface{} `json:"driverVersion,omitempty"` -} - -// MongoDbAtlasSink a copy activity MongoDB Atlas sink. -type MongoDbAtlasSink struct { - // WriteBehavior - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) MarshalJSON() ([]byte, error) { - mdas.Type = TypeBasicCopySinkTypeMongoDbAtlasSink - objectMap := make(map[string]interface{}) - if mdas.WriteBehavior != nil { - objectMap["writeBehavior"] = mdas.WriteBehavior - } - if mdas.WriteBatchSize != nil { - objectMap["writeBatchSize"] = mdas.WriteBatchSize - } - if mdas.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = mdas.WriteBatchTimeout - } - if mdas.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = mdas.SinkRetryCount - } - if mdas.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = mdas.SinkRetryWait - } - if mdas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mdas.MaxConcurrentConnections - } - if mdas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mdas.DisableMetricsCollection - } - if mdas.Type != "" { - objectMap["type"] = mdas.Type - } - for k, v := range mdas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return &mdas, true -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for MongoDbAtlasSink. -func (mdas MongoDbAtlasSink) AsBasicCopySink() (BasicCopySink, bool) { - return &mdas, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasSink struct. -func (mdas *MongoDbAtlasSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - mdas.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdas.AdditionalProperties == nil { - mdas.AdditionalProperties = make(map[string]interface{}) - } - mdas.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - mdas.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - mdas.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - mdas.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - mdas.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mdas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mdas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdas.Type = typeVar - } - } - } - - return nil -} - -// MongoDbAtlasSource a copy activity source for a MongoDB Atlas database. -type MongoDbAtlasSource struct { - // Filter - 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"` - // CursorMethods - Cursor methods for Mongodb query - CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` - // BatchSize - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) MarshalJSON() ([]byte, error) { - mdas.Type = TypeBasicCopySourceTypeMongoDbAtlasSource - objectMap := make(map[string]interface{}) - if mdas.Filter != nil { - objectMap["filter"] = mdas.Filter - } - if mdas.CursorMethods != nil { - objectMap["cursorMethods"] = mdas.CursorMethods - } - if mdas.BatchSize != nil { - objectMap["batchSize"] = mdas.BatchSize - } - if mdas.QueryTimeout != nil { - objectMap["queryTimeout"] = mdas.QueryTimeout - } - if mdas.AdditionalColumns != nil { - objectMap["additionalColumns"] = mdas.AdditionalColumns - } - if mdas.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = mdas.SourceRetryCount - } - if mdas.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = mdas.SourceRetryWait - } - if mdas.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mdas.MaxConcurrentConnections - } - if mdas.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mdas.DisableMetricsCollection - } - if mdas.Type != "" { - objectMap["type"] = mdas.Type - } - for k, v := range mdas.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return &mdas, true -} - -// AsMongoDbSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for MongoDbAtlasSource. -func (mdas MongoDbAtlasSource) AsBasicCopySource() (BasicCopySource, bool) { - return &mdas, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbAtlasSource struct. -func (mdas *MongoDbAtlasSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "filter": - if v != nil { - var filter interface{} - err = json.Unmarshal(*v, &filter) - if err != nil { - return err - } - mdas.Filter = filter - } - case "cursorMethods": - if v != nil { - var cursorMethods MongoDbCursorMethodsProperties - err = json.Unmarshal(*v, &cursorMethods) - if err != nil { - return err - } - mdas.CursorMethods = &cursorMethods - } - case "batchSize": - if v != nil { - var batchSize interface{} - err = json.Unmarshal(*v, &batchSize) - if err != nil { - return err - } - mdas.BatchSize = batchSize - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - mdas.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - mdas.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdas.AdditionalProperties == nil { - mdas.AdditionalProperties = make(map[string]interface{}) - } - mdas.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - mdas.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - mdas.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mdas.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mdas.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdas.Type = typeVar - } - } - } - - return nil -} - -// MongoDbCollectionDataset the MongoDB database dataset. -type MongoDbCollectionDataset struct { - // MongoDbCollectionDatasetTypeProperties - MongoDB database dataset properties. - *MongoDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) MarshalJSON() ([]byte, error) { - mdcd.Type = TypeBasicDatasetTypeMongoDbCollection - objectMap := make(map[string]interface{}) - if mdcd.MongoDbCollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = mdcd.MongoDbCollectionDatasetTypeProperties - } - if mdcd.Description != nil { - objectMap["description"] = mdcd.Description - } - if mdcd.Structure != nil { - objectMap["structure"] = mdcd.Structure - } - if mdcd.Schema != nil { - objectMap["schema"] = mdcd.Schema - } - if mdcd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mdcd.LinkedServiceName - } - if mdcd.Parameters != nil { - objectMap["parameters"] = mdcd.Parameters - } - if mdcd.Annotations != nil { - objectMap["annotations"] = mdcd.Annotations - } - if mdcd.Folder != nil { - objectMap["folder"] = mdcd.Folder - } - if mdcd.Type != "" { - objectMap["type"] = mdcd.Type - } - for k, v := range mdcd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return &mdcd, true -} - -// AsFileShareDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for MongoDbCollectionDataset. -func (mdcd MongoDbCollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &mdcd, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbCollectionDataset struct. -func (mdcd *MongoDbCollectionDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mongoDbCollectionDatasetTypeProperties MongoDbCollectionDatasetTypeProperties - err = json.Unmarshal(*v, &mongoDbCollectionDatasetTypeProperties) - if err != nil { - return err - } - mdcd.MongoDbCollectionDatasetTypeProperties = &mongoDbCollectionDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdcd.AdditionalProperties == nil { - mdcd.AdditionalProperties = make(map[string]interface{}) - } - mdcd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdcd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - mdcd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - mdcd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - mdcd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdcd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdcd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - mdcd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdcd.Type = typeVar - } - } - } - - return nil -} - -// MongoDbCollectionDatasetTypeProperties mongoDB database dataset properties. -type MongoDbCollectionDatasetTypeProperties struct { - // CollectionName - The table name of the MongoDB database. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` -} - -// MongoDbCursorMethodsProperties cursor methods for Mongodb query -type MongoDbCursorMethodsProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Project - 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"` - // Sort - 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"` - // Skip - 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"` - // Limit - 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"` -} - -// MarshalJSON is the custom marshaler for MongoDbCursorMethodsProperties. -func (mdcmp MongoDbCursorMethodsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if mdcmp.Project != nil { - objectMap["project"] = mdcmp.Project - } - if mdcmp.Sort != nil { - objectMap["sort"] = mdcmp.Sort - } - if mdcmp.Skip != nil { - objectMap["skip"] = mdcmp.Skip - } - if mdcmp.Limit != nil { - objectMap["limit"] = mdcmp.Limit - } - for k, v := range mdcmp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbCursorMethodsProperties struct. -func (mdcmp *MongoDbCursorMethodsProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdcmp.AdditionalProperties == nil { - mdcmp.AdditionalProperties = make(map[string]interface{}) - } - mdcmp.AdditionalProperties[k] = additionalProperties - } - case "project": - if v != nil { - var project interface{} - err = json.Unmarshal(*v, &project) - if err != nil { - return err - } - mdcmp.Project = project - } - case "sort": - if v != nil { - var sortVar interface{} - err = json.Unmarshal(*v, &sortVar) - if err != nil { - return err - } - mdcmp.Sort = sortVar - } - case "skip": - if v != nil { - var skip interface{} - err = json.Unmarshal(*v, &skip) - if err != nil { - return err - } - mdcmp.Skip = skip - } - case "limit": - if v != nil { - var limit interface{} - err = json.Unmarshal(*v, &limit) - if err != nil { - return err - } - mdcmp.Limit = limit - } - } - } - - return nil -} - -// MongoDbLinkedService linked service for MongoDb data source. -type MongoDbLinkedService struct { - // MongoDbLinkedServiceTypeProperties - MongoDB linked service properties. - *MongoDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbLinkedService. -func (mdls MongoDbLinkedService) MarshalJSON() ([]byte, error) { - mdls.Type = TypeBasicLinkedServiceTypeMongoDb - objectMap := make(map[string]interface{}) - if mdls.MongoDbLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mdls.MongoDbLinkedServiceTypeProperties - } - if mdls.ConnectVia != nil { - objectMap["connectVia"] = mdls.ConnectVia - } - if mdls.Description != nil { - objectMap["description"] = mdls.Description - } - if mdls.Parameters != nil { - objectMap["parameters"] = mdls.Parameters - } - if mdls.Annotations != nil { - objectMap["annotations"] = mdls.Annotations - } - if mdls.Type != "" { - objectMap["type"] = mdls.Type - } - for k, v := range mdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return &mdls, true -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for MongoDbLinkedService. -func (mdls MongoDbLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mdls, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbLinkedService struct. -func (mdls *MongoDbLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mongoDbLinkedServiceTypeProperties MongoDbLinkedServiceTypeProperties - err = json.Unmarshal(*v, &mongoDbLinkedServiceTypeProperties) - if err != nil { - return err - } - mdls.MongoDbLinkedServiceTypeProperties = &mongoDbLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdls.AdditionalProperties == nil { - mdls.AdditionalProperties = make(map[string]interface{}) - } - mdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdls.Type = typeVar - } - } - } - - return nil -} - -// MongoDbLinkedServiceTypeProperties mongoDB linked service properties. -type MongoDbLinkedServiceTypeProperties struct { - // Server - The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the MongoDB database. Possible values include: 'MongoDbAuthenticationTypeBasic', 'MongoDbAuthenticationTypeAnonymous' - AuthenticationType MongoDbAuthenticationType `json:"authenticationType,omitempty"` - // DatabaseName - The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). - DatabaseName interface{} `json:"databaseName,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // AuthSource - Database to verify the username and password. Type: string (or Expression with resultType string). - AuthSource interface{} `json:"authSource,omitempty"` - // Port - 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"` - // EnableSsl - 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"` - // AllowSelfSignedServerCert - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbLinkedServiceTypeProperties struct. -func (mdlstp *MongoDbLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - mdlstp.Server = server - } - case "authenticationType": - if v != nil { - var authenticationType MongoDbAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - mdlstp.AuthenticationType = authenticationType - } - case "databaseName": - if v != nil { - var databaseName interface{} - err = json.Unmarshal(*v, &databaseName) - if err != nil { - return err - } - mdlstp.DatabaseName = databaseName - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - mdlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - mdlstp.Password = password - } - case "authSource": - if v != nil { - var authSource interface{} - err = json.Unmarshal(*v, &authSource) - if err != nil { - return err - } - mdlstp.AuthSource = authSource - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - mdlstp.Port = port - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - mdlstp.EnableSsl = enableSsl - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - mdlstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - mdlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// MongoDbSource a copy activity source for a MongoDB database. -type MongoDbSource struct { - // Query - Database query. Should be a SQL-92 query expression. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbSource. -func (mds MongoDbSource) MarshalJSON() ([]byte, error) { - mds.Type = TypeBasicCopySourceTypeMongoDbSource - objectMap := make(map[string]interface{}) - if mds.Query != nil { - objectMap["query"] = mds.Query - } - if mds.AdditionalColumns != nil { - objectMap["additionalColumns"] = mds.AdditionalColumns - } - if mds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = mds.SourceRetryCount - } - if mds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = mds.SourceRetryWait - } - if mds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mds.MaxConcurrentConnections - } - if mds.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mds.DisableMetricsCollection - } - if mds.Type != "" { - objectMap["type"] = mds.Type - } - for k, v := range mds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMongoDbSource() (*MongoDbSource, bool) { - return &mds, true -} - -// AsWebSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for MongoDbSource. -func (mds MongoDbSource) AsBasicCopySource() (BasicCopySource, bool) { - return &mds, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbSource struct. -func (mds *MongoDbSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - mds.Query = query - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - mds.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mds.AdditionalProperties == nil { - mds.AdditionalProperties = make(map[string]interface{}) - } - mds.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - mds.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - mds.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mds.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mds.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mds.Type = typeVar - } - } - } - - return nil -} - -// MongoDbV2CollectionDataset the MongoDB database dataset. -type MongoDbV2CollectionDataset struct { - // MongoDbV2CollectionDatasetTypeProperties - MongoDB database dataset properties. - *MongoDbV2CollectionDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) MarshalJSON() ([]byte, error) { - mdvcd.Type = TypeBasicDatasetTypeMongoDbV2Collection - objectMap := make(map[string]interface{}) - if mdvcd.MongoDbV2CollectionDatasetTypeProperties != nil { - objectMap["typeProperties"] = mdvcd.MongoDbV2CollectionDatasetTypeProperties - } - if mdvcd.Description != nil { - objectMap["description"] = mdvcd.Description - } - if mdvcd.Structure != nil { - objectMap["structure"] = mdvcd.Structure - } - if mdvcd.Schema != nil { - objectMap["schema"] = mdvcd.Schema - } - if mdvcd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mdvcd.LinkedServiceName - } - if mdvcd.Parameters != nil { - objectMap["parameters"] = mdvcd.Parameters - } - if mdvcd.Annotations != nil { - objectMap["annotations"] = mdvcd.Annotations - } - if mdvcd.Folder != nil { - objectMap["folder"] = mdvcd.Folder - } - if mdvcd.Type != "" { - objectMap["type"] = mdvcd.Type - } - for k, v := range mdvcd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return &mdvcd, true -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for MongoDbV2CollectionDataset. -func (mdvcd MongoDbV2CollectionDataset) AsBasicDataset() (BasicDataset, bool) { - return &mdvcd, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbV2CollectionDataset struct. -func (mdvcd *MongoDbV2CollectionDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mongoDbV2CollectionDatasetTypeProperties MongoDbV2CollectionDatasetTypeProperties - err = json.Unmarshal(*v, &mongoDbV2CollectionDatasetTypeProperties) - if err != nil { - return err - } - mdvcd.MongoDbV2CollectionDatasetTypeProperties = &mongoDbV2CollectionDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdvcd.AdditionalProperties == nil { - mdvcd.AdditionalProperties = make(map[string]interface{}) - } - mdvcd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdvcd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - mdvcd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - mdvcd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - mdvcd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdvcd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdvcd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - mdvcd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdvcd.Type = typeVar - } - } - } - - return nil -} - -// MongoDbV2CollectionDatasetTypeProperties mongoDB database dataset properties. -type MongoDbV2CollectionDatasetTypeProperties struct { - // Collection - The collection name of the MongoDB database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` -} - -// MongoDbV2LinkedService linked service for MongoDB data source. -type MongoDbV2LinkedService struct { - // MongoDbV2LinkedServiceTypeProperties - MongoDB linked service properties. - *MongoDbV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) MarshalJSON() ([]byte, error) { - mdvls.Type = TypeBasicLinkedServiceTypeMongoDbV2 - objectMap := make(map[string]interface{}) - if mdvls.MongoDbV2LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = mdvls.MongoDbV2LinkedServiceTypeProperties - } - if mdvls.ConnectVia != nil { - objectMap["connectVia"] = mdvls.ConnectVia - } - if mdvls.Description != nil { - objectMap["description"] = mdvls.Description - } - if mdvls.Parameters != nil { - objectMap["parameters"] = mdvls.Parameters - } - if mdvls.Annotations != nil { - objectMap["annotations"] = mdvls.Annotations - } - if mdvls.Type != "" { - objectMap["type"] = mdvls.Type - } - for k, v := range mdvls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return &mdvls, true -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for MongoDbV2LinkedService. -func (mdvls MongoDbV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &mdvls, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbV2LinkedService struct. -func (mdvls *MongoDbV2LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mongoDbV2LinkedServiceTypeProperties MongoDbV2LinkedServiceTypeProperties - err = json.Unmarshal(*v, &mongoDbV2LinkedServiceTypeProperties) - if err != nil { - return err - } - mdvls.MongoDbV2LinkedServiceTypeProperties = &mongoDbV2LinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdvls.AdditionalProperties == nil { - mdvls.AdditionalProperties = make(map[string]interface{}) - } - mdvls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - mdvls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mdvls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mdvls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mdvls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdvls.Type = typeVar - } - } - } - - return nil -} - -// MongoDbV2LinkedServiceTypeProperties mongoDB linked service properties. -type MongoDbV2LinkedServiceTypeProperties struct { - // ConnectionString - The MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Database - The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` -} - -// MongoDbV2Sink a copy activity MongoDB sink. -type MongoDbV2Sink struct { - // WriteBehavior - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) MarshalJSON() ([]byte, error) { - mdvs.Type = TypeBasicCopySinkTypeMongoDbV2Sink - objectMap := make(map[string]interface{}) - if mdvs.WriteBehavior != nil { - objectMap["writeBehavior"] = mdvs.WriteBehavior - } - if mdvs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = mdvs.WriteBatchSize - } - if mdvs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = mdvs.WriteBatchTimeout - } - if mdvs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = mdvs.SinkRetryCount - } - if mdvs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = mdvs.SinkRetryWait - } - if mdvs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mdvs.MaxConcurrentConnections - } - if mdvs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mdvs.DisableMetricsCollection - } - if mdvs.Type != "" { - objectMap["type"] = mdvs.Type - } - for k, v := range mdvs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return &mdvs, true -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for MongoDbV2Sink. -func (mdvs MongoDbV2Sink) AsBasicCopySink() (BasicCopySink, bool) { - return &mdvs, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbV2Sink struct. -func (mdvs *MongoDbV2Sink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - mdvs.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdvs.AdditionalProperties == nil { - mdvs.AdditionalProperties = make(map[string]interface{}) - } - mdvs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - mdvs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - mdvs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - mdvs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - mdvs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mdvs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mdvs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdvs.Type = typeVar - } - } - } - - return nil -} - -// MongoDbV2Source a copy activity source for a MongoDB database. -type MongoDbV2Source struct { - // Filter - 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"` - // CursorMethods - Cursor methods for Mongodb query - CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` - // BatchSize - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MongoDbV2Source. -func (mdvs MongoDbV2Source) MarshalJSON() ([]byte, error) { - mdvs.Type = TypeBasicCopySourceTypeMongoDbV2Source - objectMap := make(map[string]interface{}) - if mdvs.Filter != nil { - objectMap["filter"] = mdvs.Filter - } - if mdvs.CursorMethods != nil { - objectMap["cursorMethods"] = mdvs.CursorMethods - } - if mdvs.BatchSize != nil { - objectMap["batchSize"] = mdvs.BatchSize - } - if mdvs.QueryTimeout != nil { - objectMap["queryTimeout"] = mdvs.QueryTimeout - } - if mdvs.AdditionalColumns != nil { - objectMap["additionalColumns"] = mdvs.AdditionalColumns - } - if mdvs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = mdvs.SourceRetryCount - } - if mdvs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = mdvs.SourceRetryWait - } - if mdvs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mdvs.MaxConcurrentConnections - } - if mdvs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mdvs.DisableMetricsCollection - } - if mdvs.Type != "" { - objectMap["type"] = mdvs.Type - } - for k, v := range mdvs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return &mdvs, true -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for MongoDbV2Source. -func (mdvs MongoDbV2Source) AsBasicCopySource() (BasicCopySource, bool) { - return &mdvs, true -} - -// UnmarshalJSON is the custom unmarshaler for MongoDbV2Source struct. -func (mdvs *MongoDbV2Source) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "filter": - if v != nil { - var filter interface{} - err = json.Unmarshal(*v, &filter) - if err != nil { - return err - } - mdvs.Filter = filter - } - case "cursorMethods": - if v != nil { - var cursorMethods MongoDbCursorMethodsProperties - err = json.Unmarshal(*v, &cursorMethods) - if err != nil { - return err - } - mdvs.CursorMethods = &cursorMethods - } - case "batchSize": - if v != nil { - var batchSize interface{} - err = json.Unmarshal(*v, &batchSize) - if err != nil { - return err - } - mdvs.BatchSize = batchSize - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - mdvs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - mdvs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mdvs.AdditionalProperties == nil { - mdvs.AdditionalProperties = make(map[string]interface{}) - } - mdvs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - mdvs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - mdvs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mdvs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mdvs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mdvs.Type = typeVar - } - } - } - - return nil -} - -// BasicMultiplePipelineTrigger base class for all triggers that support one to many model for trigger to pipeline. -type BasicMultiplePipelineTrigger interface { - AsCustomEventsTrigger() (*CustomEventsTrigger, bool) - AsBlobEventsTrigger() (*BlobEventsTrigger, bool) - AsBlobTrigger() (*BlobTrigger, bool) - AsScheduleTrigger() (*ScheduleTrigger, bool) - AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) -} - -// MultiplePipelineTrigger base class for all triggers that support one to many model for trigger to pipeline. -type MultiplePipelineTrigger struct { - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -func unmarshalBasicMultiplePipelineTrigger(body []byte) (BasicMultiplePipelineTrigger, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicTriggerTypeCustomEventsTrigger): - var cet CustomEventsTrigger - err := json.Unmarshal(body, &cet) - return cet, err - case string(TypeBasicTriggerTypeBlobEventsTrigger): - var bet BlobEventsTrigger - err := json.Unmarshal(body, &bet) - return bet, err - case string(TypeBasicTriggerTypeBlobTrigger): - var bt BlobTrigger - err := json.Unmarshal(body, &bt) - return bt, err - case string(TypeBasicTriggerTypeScheduleTrigger): - var st ScheduleTrigger - err := json.Unmarshal(body, &st) - return st, err - default: - var mpt MultiplePipelineTrigger - err := json.Unmarshal(body, &mpt) - return mpt, err - } -} -func unmarshalBasicMultiplePipelineTriggerArray(body []byte) ([]BasicMultiplePipelineTrigger, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - mptArray := make([]BasicMultiplePipelineTrigger, len(rawMessages)) - - for index, rawMessage := range rawMessages { - mpt, err := unmarshalBasicMultiplePipelineTrigger(*rawMessage) - if err != nil { - return nil, err - } - mptArray[index] = mpt - } - return mptArray, nil -} - -// MarshalJSON is the custom marshaler for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) MarshalJSON() ([]byte, error) { - mpt.Type = TypeBasicTriggerTypeMultiplePipelineTrigger - objectMap := make(map[string]interface{}) - if mpt.Pipelines != nil { - objectMap["pipelines"] = mpt.Pipelines - } - if mpt.Description != nil { - objectMap["description"] = mpt.Description - } - if mpt.Annotations != nil { - objectMap["annotations"] = mpt.Annotations - } - if mpt.Type != "" { - objectMap["type"] = mpt.Type - } - for k, v := range mpt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return nil, false -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return nil, false -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return nil, false -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return nil, false -} - -// AsBlobTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// AsScheduleTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return &mpt, true -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &mpt, true -} - -// AsTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// AsBasicTrigger is the BasicTrigger implementation for MultiplePipelineTrigger. -func (mpt MultiplePipelineTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &mpt, true -} - -// UnmarshalJSON is the custom unmarshaler for MultiplePipelineTrigger struct. -func (mpt *MultiplePipelineTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "pipelines": - if v != nil { - var pipelines []TriggerPipelineReference - err = json.Unmarshal(*v, &pipelines) - if err != nil { - return err - } - mpt.Pipelines = &pipelines - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mpt.AdditionalProperties == nil { - mpt.AdditionalProperties = make(map[string]interface{}) - } - mpt.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mpt.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - mpt.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mpt.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mpt.Type = typeVar - } - } - } - - return nil -} - -// MySQLLinkedService linked service for MySQL data source. -type MySQLLinkedService struct { - // MySQLLinkedServiceTypeProperties - MySQL linked service properties. - *MySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MySQLLinkedService. -func (msls MySQLLinkedService) MarshalJSON() ([]byte, error) { - msls.Type = TypeBasicLinkedServiceTypeMySQL - objectMap := make(map[string]interface{}) - if msls.MySQLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = msls.MySQLLinkedServiceTypeProperties - } - if msls.ConnectVia != nil { - objectMap["connectVia"] = msls.ConnectVia - } - if msls.Description != nil { - objectMap["description"] = msls.Description - } - if msls.Parameters != nil { - objectMap["parameters"] = msls.Parameters - } - if msls.Annotations != nil { - objectMap["annotations"] = msls.Annotations - } - if msls.Type != "" { - objectMap["type"] = msls.Type - } - for k, v := range msls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return &msls, true -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for MySQLLinkedService. -func (msls MySQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &msls, true -} - -// UnmarshalJSON is the custom unmarshaler for MySQLLinkedService struct. -func (msls *MySQLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mySQLLinkedServiceTypeProperties MySQLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &mySQLLinkedServiceTypeProperties) - if err != nil { - return err - } - msls.MySQLLinkedServiceTypeProperties = &mySQLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if msls.AdditionalProperties == nil { - msls.AdditionalProperties = make(map[string]interface{}) - } - msls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - msls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - msls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - msls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - msls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - msls.Type = typeVar - } - } - } - - return nil -} - -// MySQLLinkedServiceTypeProperties mySQL linked service properties. -type MySQLLinkedServiceTypeProperties struct { - // DriverVersion - 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 interface{} `json:"driverVersion,omitempty"` - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Server - Server name for connection. Type: string. - Server interface{} `json:"server,omitempty"` - // Port - The port for the connection. Type: integer. - Port interface{} `json:"port,omitempty"` - // Username - Username for authentication. Type: string. - Username interface{} `json:"username,omitempty"` - // Database - Database name for connection. Type: string. - Database interface{} `json:"database,omitempty"` - // SslMode - SSL mode for connection. Type: integer. 0: disable, 1: prefer, 2: require, 3: verify-ca, 4: verify-full. - SslMode interface{} `json:"sslMode,omitempty"` - // UseSystemTrustStore - Use system trust store for connection. Type: integer. 0: enable, 1: disable. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// MySQLSource a copy activity source for MySQL databases. -type MySQLSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MySQLSource. -func (mss MySQLSource) MarshalJSON() ([]byte, error) { - mss.Type = TypeBasicCopySourceTypeMySQLSource - objectMap := make(map[string]interface{}) - if mss.Query != nil { - objectMap["query"] = mss.Query - } - if mss.QueryTimeout != nil { - objectMap["queryTimeout"] = mss.QueryTimeout - } - if mss.AdditionalColumns != nil { - objectMap["additionalColumns"] = mss.AdditionalColumns - } - if mss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = mss.SourceRetryCount - } - if mss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = mss.SourceRetryWait - } - if mss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = mss.MaxConcurrentConnections - } - if mss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = mss.DisableMetricsCollection - } - if mss.Type != "" { - objectMap["type"] = mss.Type - } - for k, v := range mss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsMySQLSource() (*MySQLSource, bool) { - return &mss, true -} - -// AsOdbcSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &mss, true -} - -// AsBinarySource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for MySQLSource. -func (mss MySQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &mss, true -} - -// UnmarshalJSON is the custom unmarshaler for MySQLSource struct. -func (mss *MySQLSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - mss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - mss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - mss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mss.AdditionalProperties == nil { - mss.AdditionalProperties = make(map[string]interface{}) - } - mss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - mss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - mss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - mss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - mss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mss.Type = typeVar - } - } - } - - return nil -} - -// MySQLTableDataset the MySQL table dataset. -type MySQLTableDataset struct { - // MySQLTableDatasetTypeProperties - MySQL table dataset properties. - *MySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for MySQLTableDataset. -func (mstd MySQLTableDataset) MarshalJSON() ([]byte, error) { - mstd.Type = TypeBasicDatasetTypeMySQLTable - objectMap := make(map[string]interface{}) - if mstd.MySQLTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = mstd.MySQLTableDatasetTypeProperties - } - if mstd.Description != nil { - objectMap["description"] = mstd.Description - } - if mstd.Structure != nil { - objectMap["structure"] = mstd.Structure - } - if mstd.Schema != nil { - objectMap["schema"] = mstd.Schema - } - if mstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = mstd.LinkedServiceName - } - if mstd.Parameters != nil { - objectMap["parameters"] = mstd.Parameters - } - if mstd.Annotations != nil { - objectMap["annotations"] = mstd.Annotations - } - if mstd.Folder != nil { - objectMap["folder"] = mstd.Folder - } - if mstd.Type != "" { - objectMap["type"] = mstd.Type - } - for k, v := range mstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return &mstd, true -} - -// AsOdbcTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for MySQLTableDataset. -func (mstd MySQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &mstd, true -} - -// UnmarshalJSON is the custom unmarshaler for MySQLTableDataset struct. -func (mstd *MySQLTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var mySQLTableDatasetTypeProperties MySQLTableDatasetTypeProperties - err = json.Unmarshal(*v, &mySQLTableDatasetTypeProperties) - if err != nil { - return err - } - mstd.MySQLTableDatasetTypeProperties = &mySQLTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if mstd.AdditionalProperties == nil { - mstd.AdditionalProperties = make(map[string]interface{}) - } - mstd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - mstd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - mstd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - mstd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - mstd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - mstd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - mstd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - mstd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - mstd.Type = typeVar - } - } - } - - return nil -} - -// MySQLTableDatasetTypeProperties mySql table dataset properties. -type MySQLTableDatasetTypeProperties struct { - // TableName - The MySQL table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// NetezzaLinkedService netezza linked service. -type NetezzaLinkedService struct { - // NetezzaLinkedServiceTypeProperties - Netezza linked service properties. - *NetezzaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for NetezzaLinkedService. -func (nls NetezzaLinkedService) MarshalJSON() ([]byte, error) { - nls.Type = TypeBasicLinkedServiceTypeNetezza - objectMap := make(map[string]interface{}) - if nls.NetezzaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = nls.NetezzaLinkedServiceTypeProperties - } - if nls.ConnectVia != nil { - objectMap["connectVia"] = nls.ConnectVia - } - if nls.Description != nil { - objectMap["description"] = nls.Description - } - if nls.Parameters != nil { - objectMap["parameters"] = nls.Parameters - } - if nls.Annotations != nil { - objectMap["annotations"] = nls.Annotations - } - if nls.Type != "" { - objectMap["type"] = nls.Type - } - for k, v := range nls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return &nls, true -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for NetezzaLinkedService. -func (nls NetezzaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &nls, true -} - -// UnmarshalJSON is the custom unmarshaler for NetezzaLinkedService struct. -func (nls *NetezzaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var netezzaLinkedServiceTypeProperties NetezzaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &netezzaLinkedServiceTypeProperties) - if err != nil { - return err - } - nls.NetezzaLinkedServiceTypeProperties = &netezzaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if nls.AdditionalProperties == nil { - nls.AdditionalProperties = make(map[string]interface{}) - } - nls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - nls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - nls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - nls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - nls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - nls.Type = typeVar - } - } - } - - return nil -} - -// NetezzaLinkedServiceTypeProperties netezza linked service properties. -type NetezzaLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Pwd - The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// NetezzaPartitionSettings the settings that will be leveraged for Netezza source partitioning. -type NetezzaPartitionSettings struct { - // PartitionColumnName - 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"` - // PartitionUpperBound - 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"` - // PartitionLowerBound - 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"` -} - -// NetezzaSource a copy activity Netezza source. -type NetezzaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // PartitionOption - The partition mechanism that will be used for Netezza read in parallel. Possible values include: "None", "DataSlice", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Netezza source partitioning. - PartitionSettings *NetezzaPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for NetezzaSource. -func (ns NetezzaSource) MarshalJSON() ([]byte, error) { - ns.Type = TypeBasicCopySourceTypeNetezzaSource - objectMap := make(map[string]interface{}) - if ns.Query != nil { - objectMap["query"] = ns.Query - } - if ns.PartitionOption != nil { - objectMap["partitionOption"] = ns.PartitionOption - } - if ns.PartitionSettings != nil { - objectMap["partitionSettings"] = ns.PartitionSettings - } - if ns.QueryTimeout != nil { - objectMap["queryTimeout"] = ns.QueryTimeout - } - if ns.AdditionalColumns != nil { - objectMap["additionalColumns"] = ns.AdditionalColumns - } - if ns.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ns.SourceRetryCount - } - if ns.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ns.SourceRetryWait - } - if ns.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ns.MaxConcurrentConnections - } - if ns.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ns.DisableMetricsCollection - } - if ns.Type != "" { - objectMap["type"] = ns.Type - } - for k, v := range ns.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return &ns, true -} - -// AsZohoSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ns, true -} - -// AsBinarySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for NetezzaSource. -func (ns NetezzaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ns, true -} - -// UnmarshalJSON is the custom unmarshaler for NetezzaSource struct. -func (ns *NetezzaSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ns.Query = query - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - ns.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings NetezzaPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - ns.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ns.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ns.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ns.AdditionalProperties == nil { - ns.AdditionalProperties = make(map[string]interface{}) - } - ns.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ns.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ns.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ns.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ns.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ns.Type = typeVar - } - } - } - - return nil -} - -// NetezzaTableDataset netezza dataset. -type NetezzaTableDataset struct { - // NetezzaTableDatasetTypeProperties - Properties specific to this dataset type. - *NetezzaTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for NetezzaTableDataset. -func (ntd NetezzaTableDataset) MarshalJSON() ([]byte, error) { - ntd.Type = TypeBasicDatasetTypeNetezzaTable - objectMap := make(map[string]interface{}) - if ntd.NetezzaTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = ntd.NetezzaTableDatasetTypeProperties - } - if ntd.Description != nil { - objectMap["description"] = ntd.Description - } - if ntd.Structure != nil { - objectMap["structure"] = ntd.Structure - } - if ntd.Schema != nil { - objectMap["schema"] = ntd.Schema - } - if ntd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ntd.LinkedServiceName - } - if ntd.Parameters != nil { - objectMap["parameters"] = ntd.Parameters - } - if ntd.Annotations != nil { - objectMap["annotations"] = ntd.Annotations - } - if ntd.Folder != nil { - objectMap["folder"] = ntd.Folder - } - if ntd.Type != "" { - objectMap["type"] = ntd.Type - } - for k, v := range ntd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return &ntd, true -} - -// AsZohoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for NetezzaTableDataset. -func (ntd NetezzaTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &ntd, true -} - -// UnmarshalJSON is the custom unmarshaler for NetezzaTableDataset struct. -func (ntd *NetezzaTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var netezzaTableDatasetTypeProperties NetezzaTableDatasetTypeProperties - err = json.Unmarshal(*v, &netezzaTableDatasetTypeProperties) - if err != nil { - return err - } - ntd.NetezzaTableDatasetTypeProperties = &netezzaTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ntd.AdditionalProperties == nil { - ntd.AdditionalProperties = make(map[string]interface{}) - } - ntd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ntd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ntd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - ntd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ntd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ntd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ntd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ntd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ntd.Type = typeVar - } - } - } - - return nil -} - -// NetezzaTableDatasetTypeProperties netezza dataset properties. -type NetezzaTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Netezza. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Netezza. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// NotebookParameter notebook parameter. -type NotebookParameter struct { - // Value - Notebook parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` - // Type - Notebook parameter type. Possible values include: 'NotebookParameterTypeString', 'NotebookParameterTypeInt', 'NotebookParameterTypeFloat', 'NotebookParameterTypeBool' - Type NotebookParameterType `json:"type,omitempty"` -} - -// ODataLinkedService open Data Protocol (OData) linked service. -type ODataLinkedService struct { - // ODataLinkedServiceTypeProperties - OData linked service properties. - *ODataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ODataLinkedService. -func (odls ODataLinkedService) MarshalJSON() ([]byte, error) { - odls.Type = TypeBasicLinkedServiceTypeOData - objectMap := make(map[string]interface{}) - if odls.ODataLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = odls.ODataLinkedServiceTypeProperties - } - if odls.ConnectVia != nil { - objectMap["connectVia"] = odls.ConnectVia - } - if odls.Description != nil { - objectMap["description"] = odls.Description - } - if odls.Parameters != nil { - objectMap["parameters"] = odls.Parameters - } - if odls.Annotations != nil { - objectMap["annotations"] = odls.Annotations - } - if odls.Type != "" { - objectMap["type"] = odls.Type - } - for k, v := range odls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return &odls, true -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for ODataLinkedService. -func (odls ODataLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &odls, true -} - -// UnmarshalJSON is the custom unmarshaler for ODataLinkedService struct. -func (odls *ODataLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oDataLinkedServiceTypeProperties ODataLinkedServiceTypeProperties - err = json.Unmarshal(*v, &oDataLinkedServiceTypeProperties) - if err != nil { - return err - } - odls.ODataLinkedServiceTypeProperties = &oDataLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if odls.AdditionalProperties == nil { - odls.AdditionalProperties = make(map[string]interface{}) - } - odls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - odls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - odls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - odls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - odls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - odls.Type = typeVar - } - } - } - - return nil -} - -// ODataLinkedServiceTypeProperties oData linked service properties. -type ODataLinkedServiceTypeProperties struct { - // URL - The URL of the OData service endpoint. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // AuthenticationType - Type of authentication used to connect to the OData service. Possible values include: 'ODataAuthenticationTypeBasic', 'ODataAuthenticationTypeAnonymous', 'ODataAuthenticationTypeWindows', 'ODataAuthenticationTypeAadServicePrincipal', 'ODataAuthenticationTypeManagedServiceIdentity' - AuthenticationType ODataAuthenticationType `json:"authenticationType,omitempty"` - // UserName - User name of the OData service. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password of the OData service. - Password BasicSecretBase `json:"password,omitempty"` - // AuthHeaders - The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type). - AuthHeaders interface{} `json:"authHeaders,omitempty"` - // Tenant - 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"` - // ServicePrincipalID - Specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // AzureCloudType - 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"` - // AadResourceID - Specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). - AadResourceID interface{} `json:"aadResourceId,omitempty"` - // AadServicePrincipalCredentialType - Specify the credential type (key or cert) is used for service principal. Possible values include: 'ODataAadServicePrincipalCredentialTypeServicePrincipalKey', 'ODataAadServicePrincipalCredentialTypeServicePrincipalCert' - AadServicePrincipalCredentialType ODataAadServicePrincipalCredentialType `json:"aadServicePrincipalCredentialType,omitempty"` - // ServicePrincipalKey - Specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // ServicePrincipalEmbeddedCert - Specify the base64 encoded certificate of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). - ServicePrincipalEmbeddedCert BasicSecretBase `json:"servicePrincipalEmbeddedCert,omitempty"` - // ServicePrincipalEmbeddedCertPassword - 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 BasicSecretBase `json:"servicePrincipalEmbeddedCertPassword,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ODataLinkedServiceTypeProperties struct. -func (odlstp *ODataLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - odlstp.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType ODataAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - odlstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - odlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - odlstp.Password = password - } - case "authHeaders": - if v != nil { - var authHeaders interface{} - err = json.Unmarshal(*v, &authHeaders) - if err != nil { - return err - } - odlstp.AuthHeaders = authHeaders - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - odlstp.Tenant = tenant - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - odlstp.ServicePrincipalID = servicePrincipalID - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - odlstp.AzureCloudType = azureCloudType - } - case "aadResourceId": - if v != nil { - var aadResourceID interface{} - err = json.Unmarshal(*v, &aadResourceID) - if err != nil { - return err - } - odlstp.AadResourceID = aadResourceID - } - case "aadServicePrincipalCredentialType": - if v != nil { - var aadServicePrincipalCredentialType ODataAadServicePrincipalCredentialType - err = json.Unmarshal(*v, &aadServicePrincipalCredentialType) - if err != nil { - return err - } - odlstp.AadServicePrincipalCredentialType = aadServicePrincipalCredentialType - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - odlstp.ServicePrincipalKey = servicePrincipalKey - } - case "servicePrincipalEmbeddedCert": - if v != nil { - servicePrincipalEmbeddedCert, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - odlstp.ServicePrincipalEmbeddedCert = servicePrincipalEmbeddedCert - } - case "servicePrincipalEmbeddedCertPassword": - if v != nil { - servicePrincipalEmbeddedCertPassword, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - odlstp.ServicePrincipalEmbeddedCertPassword = servicePrincipalEmbeddedCertPassword - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - odlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// ODataResourceDataset the Open Data Protocol (OData) resource dataset. -type ODataResourceDataset struct { - // ODataResourceDatasetTypeProperties - OData dataset properties. - *ODataResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ODataResourceDataset. -func (odrd ODataResourceDataset) MarshalJSON() ([]byte, error) { - odrd.Type = TypeBasicDatasetTypeODataResource - objectMap := make(map[string]interface{}) - if odrd.ODataResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = odrd.ODataResourceDatasetTypeProperties - } - if odrd.Description != nil { - objectMap["description"] = odrd.Description - } - if odrd.Structure != nil { - objectMap["structure"] = odrd.Structure - } - if odrd.Schema != nil { - objectMap["schema"] = odrd.Schema - } - if odrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = odrd.LinkedServiceName - } - if odrd.Parameters != nil { - objectMap["parameters"] = odrd.Parameters - } - if odrd.Annotations != nil { - objectMap["annotations"] = odrd.Annotations - } - if odrd.Folder != nil { - objectMap["folder"] = odrd.Folder - } - if odrd.Type != "" { - objectMap["type"] = odrd.Type - } - for k, v := range odrd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return &odrd, true -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ODataResourceDataset. -func (odrd ODataResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &odrd, true -} - -// UnmarshalJSON is the custom unmarshaler for ODataResourceDataset struct. -func (odrd *ODataResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oDataResourceDatasetTypeProperties ODataResourceDatasetTypeProperties - err = json.Unmarshal(*v, &oDataResourceDatasetTypeProperties) - if err != nil { - return err - } - odrd.ODataResourceDatasetTypeProperties = &oDataResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if odrd.AdditionalProperties == nil { - odrd.AdditionalProperties = make(map[string]interface{}) - } - odrd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - odrd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - odrd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - odrd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - odrd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - odrd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - odrd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - odrd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - odrd.Type = typeVar - } - } - } - - return nil -} - -// ODataResourceDatasetTypeProperties oData dataset properties. -type ODataResourceDatasetTypeProperties struct { - // Path - The OData resource path. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// ODataSource a copy activity source for OData source. -type ODataSource struct { - // Query - OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // HTTPRequestTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ODataSource. -func (ods ODataSource) MarshalJSON() ([]byte, error) { - ods.Type = TypeBasicCopySourceTypeODataSource - objectMap := make(map[string]interface{}) - if ods.Query != nil { - objectMap["query"] = ods.Query - } - if ods.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = ods.HTTPRequestTimeout - } - if ods.AdditionalColumns != nil { - objectMap["additionalColumns"] = ods.AdditionalColumns - } - if ods.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ods.SourceRetryCount - } - if ods.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ods.SourceRetryWait - } - if ods.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ods.MaxConcurrentConnections - } - if ods.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ods.DisableMetricsCollection - } - if ods.Type != "" { - objectMap["type"] = ods.Type - } - for k, v := range ods.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsODataSource() (*ODataSource, bool) { - return &ods, true -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ODataSource. -func (ods ODataSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ods, true -} - -// UnmarshalJSON is the custom unmarshaler for ODataSource struct. -func (ods *ODataSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ods.Query = query - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - ods.HTTPRequestTimeout = HTTPRequestTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ods.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ods.AdditionalProperties == nil { - ods.AdditionalProperties = make(map[string]interface{}) - } - ods.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ods.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ods.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ods.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ods.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ods.Type = typeVar - } - } - } - - return nil -} - -// OdbcLinkedService open Database Connectivity (ODBC) linked service. -type OdbcLinkedService struct { - // OdbcLinkedServiceTypeProperties - ODBC linked service properties. - *OdbcLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OdbcLinkedService. -func (ols OdbcLinkedService) MarshalJSON() ([]byte, error) { - ols.Type = TypeBasicLinkedServiceTypeOdbc - objectMap := make(map[string]interface{}) - if ols.OdbcLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ols.OdbcLinkedServiceTypeProperties - } - if ols.ConnectVia != nil { - objectMap["connectVia"] = ols.ConnectVia - } - if ols.Description != nil { - objectMap["description"] = ols.Description - } - if ols.Parameters != nil { - objectMap["parameters"] = ols.Parameters - } - if ols.Annotations != nil { - objectMap["annotations"] = ols.Annotations - } - if ols.Type != "" { - objectMap["type"] = ols.Type - } - for k, v := range ols.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return &ols, true -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for OdbcLinkedService. -func (ols OdbcLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ols, true -} - -// UnmarshalJSON is the custom unmarshaler for OdbcLinkedService struct. -func (ols *OdbcLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var odbcLinkedServiceTypeProperties OdbcLinkedServiceTypeProperties - err = json.Unmarshal(*v, &odbcLinkedServiceTypeProperties) - if err != nil { - return err - } - ols.OdbcLinkedServiceTypeProperties = &odbcLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ols.AdditionalProperties == nil { - ols.AdditionalProperties = make(map[string]interface{}) - } - ols.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ols.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ols.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ols.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ols.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ols.Type = typeVar - } - } - } - - return nil -} - -// OdbcLinkedServiceTypeProperties ODBC linked service properties. -type OdbcLinkedServiceTypeProperties struct { - // ConnectionString - The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string. - ConnectionString interface{} `json:"connectionString,omitempty"` - // AuthenticationType - 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"` - // Credential - The access credential portion of the connection string specified in driver-specific property-value format. - Credential BasicSecretBase `json:"credential,omitempty"` - // UserName - User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for OdbcLinkedServiceTypeProperties struct. -func (olstp *OdbcLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - olstp.ConnectionString = connectionString - } - case "authenticationType": - if v != nil { - var authenticationType interface{} - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - olstp.AuthenticationType = authenticationType - } - case "credential": - if v != nil { - credential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - olstp.Credential = credential - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - olstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - olstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - olstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// OdbcSink a copy activity ODBC sink. -type OdbcSink struct { - // PreCopyScript - A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OdbcSink. -func (osVar OdbcSink) MarshalJSON() ([]byte, error) { - osVar.Type = TypeBasicCopySinkTypeOdbcSink - objectMap := make(map[string]interface{}) - if osVar.PreCopyScript != nil { - objectMap["preCopyScript"] = osVar.PreCopyScript - } - if osVar.WriteBatchSize != nil { - objectMap["writeBatchSize"] = osVar.WriteBatchSize - } - if osVar.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = osVar.WriteBatchTimeout - } - if osVar.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = osVar.SinkRetryCount - } - if osVar.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = osVar.SinkRetryWait - } - if osVar.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections - } - if osVar.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection - } - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsOdbcSink() (*OdbcSink, bool) { - return &osVar, true -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for OdbcSink. -func (osVar OdbcSink) AsBasicCopySink() (BasicCopySink, bool) { - return &osVar, true -} - -// UnmarshalJSON is the custom unmarshaler for OdbcSink struct. -func (osVar *OdbcSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - osVar.PreCopyScript = preCopyScript - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if osVar.AdditionalProperties == nil { - osVar.AdditionalProperties = make(map[string]interface{}) - } - osVar.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - osVar.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - osVar.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - osVar.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - osVar.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - osVar.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - osVar.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - osVar.Type = typeVar - } - } - } - - return nil -} - -// OdbcSource a copy activity source for ODBC databases. -type OdbcSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OdbcSource. -func (osVar OdbcSource) MarshalJSON() ([]byte, error) { - osVar.Type = TypeBasicCopySourceTypeOdbcSource - objectMap := make(map[string]interface{}) - if osVar.Query != nil { - objectMap["query"] = osVar.Query - } - if osVar.QueryTimeout != nil { - objectMap["queryTimeout"] = osVar.QueryTimeout - } - if osVar.AdditionalColumns != nil { - objectMap["additionalColumns"] = osVar.AdditionalColumns - } - if osVar.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = osVar.SourceRetryCount - } - if osVar.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = osVar.SourceRetryWait - } - if osVar.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections - } - if osVar.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection - } - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsOdbcSource() (*OdbcSource, bool) { - return &osVar, true -} - -// AsDb2Source is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &osVar, true -} - -// AsBinarySource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for OdbcSource. -func (osVar OdbcSource) AsBasicCopySource() (BasicCopySource, bool) { - return &osVar, true -} - -// UnmarshalJSON is the custom unmarshaler for OdbcSource struct. -func (osVar *OdbcSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - osVar.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - osVar.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - osVar.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if osVar.AdditionalProperties == nil { - osVar.AdditionalProperties = make(map[string]interface{}) - } - osVar.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - osVar.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - osVar.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - osVar.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - osVar.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - osVar.Type = typeVar - } - } - } - - return nil -} - -// OdbcTableDataset the ODBC table dataset. -type OdbcTableDataset struct { - // OdbcTableDatasetTypeProperties - ODBC table dataset properties. - *OdbcTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OdbcTableDataset. -func (otd OdbcTableDataset) MarshalJSON() ([]byte, error) { - otd.Type = TypeBasicDatasetTypeOdbcTable - objectMap := make(map[string]interface{}) - if otd.OdbcTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = otd.OdbcTableDatasetTypeProperties - } - if otd.Description != nil { - objectMap["description"] = otd.Description - } - if otd.Structure != nil { - objectMap["structure"] = otd.Structure - } - if otd.Schema != nil { - objectMap["schema"] = otd.Schema - } - if otd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = otd.LinkedServiceName - } - if otd.Parameters != nil { - objectMap["parameters"] = otd.Parameters - } - if otd.Annotations != nil { - objectMap["annotations"] = otd.Annotations - } - if otd.Folder != nil { - objectMap["folder"] = otd.Folder - } - if otd.Type != "" { - objectMap["type"] = otd.Type - } - for k, v := range otd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return &otd, true -} - -// AsInformixTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for OdbcTableDataset. -func (otd OdbcTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &otd, true -} - -// UnmarshalJSON is the custom unmarshaler for OdbcTableDataset struct. -func (otd *OdbcTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var odbcTableDatasetTypeProperties OdbcTableDatasetTypeProperties - err = json.Unmarshal(*v, &odbcTableDatasetTypeProperties) - if err != nil { - return err - } - otd.OdbcTableDatasetTypeProperties = &odbcTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if otd.AdditionalProperties == nil { - otd.AdditionalProperties = make(map[string]interface{}) - } - otd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - otd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - otd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - otd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - otd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - otd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - otd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - otd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - otd.Type = typeVar - } - } - } - - return nil -} - -// OdbcTableDatasetTypeProperties ODBC table dataset properties. -type OdbcTableDatasetTypeProperties struct { - // TableName - The ODBC table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// Office365Dataset the Office365 account. -type Office365Dataset struct { - // Office365DatasetTypeProperties - Office365 dataset properties. - *Office365DatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Office365Dataset. -func (o3d Office365Dataset) MarshalJSON() ([]byte, error) { - o3d.Type = TypeBasicDatasetTypeOffice365Table - objectMap := make(map[string]interface{}) - if o3d.Office365DatasetTypeProperties != nil { - objectMap["typeProperties"] = o3d.Office365DatasetTypeProperties - } - if o3d.Description != nil { - objectMap["description"] = o3d.Description - } - if o3d.Structure != nil { - objectMap["structure"] = o3d.Structure - } - if o3d.Schema != nil { - objectMap["schema"] = o3d.Schema - } - if o3d.LinkedServiceName != nil { - objectMap["linkedServiceName"] = o3d.LinkedServiceName - } - if o3d.Parameters != nil { - objectMap["parameters"] = o3d.Parameters - } - if o3d.Annotations != nil { - objectMap["annotations"] = o3d.Annotations - } - if o3d.Folder != nil { - objectMap["folder"] = o3d.Folder - } - if o3d.Type != "" { - objectMap["type"] = o3d.Type - } - for k, v := range o3d.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return &o3d, true -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for Office365Dataset. -func (o3d Office365Dataset) AsBasicDataset() (BasicDataset, bool) { - return &o3d, true -} - -// UnmarshalJSON is the custom unmarshaler for Office365Dataset struct. -func (o3d *Office365Dataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var office365DatasetTypeProperties Office365DatasetTypeProperties - err = json.Unmarshal(*v, &office365DatasetTypeProperties) - if err != nil { - return err - } - o3d.Office365DatasetTypeProperties = &office365DatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if o3d.AdditionalProperties == nil { - o3d.AdditionalProperties = make(map[string]interface{}) - } - o3d.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - o3d.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - o3d.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - o3d.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - o3d.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - o3d.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - o3d.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - o3d.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - o3d.Type = typeVar - } - } - } - - return nil -} - -// Office365DatasetTypeProperties office365 dataset properties. -type Office365DatasetTypeProperties struct { - // TableName - Name of the dataset to extract from Office 365. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` - // Predicate - 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"` -} - -// Office365LinkedService office365 linked service. -type Office365LinkedService struct { - // Office365LinkedServiceTypeProperties - Office365 linked service properties. - *Office365LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Office365LinkedService. -func (o3ls Office365LinkedService) MarshalJSON() ([]byte, error) { - o3ls.Type = TypeBasicLinkedServiceTypeOffice365 - objectMap := make(map[string]interface{}) - if o3ls.Office365LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = o3ls.Office365LinkedServiceTypeProperties - } - if o3ls.ConnectVia != nil { - objectMap["connectVia"] = o3ls.ConnectVia - } - if o3ls.Description != nil { - objectMap["description"] = o3ls.Description - } - if o3ls.Parameters != nil { - objectMap["parameters"] = o3ls.Parameters - } - if o3ls.Annotations != nil { - objectMap["annotations"] = o3ls.Annotations - } - if o3ls.Type != "" { - objectMap["type"] = o3ls.Type - } - for k, v := range o3ls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return &o3ls, true -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for Office365LinkedService. -func (o3ls Office365LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &o3ls, true -} - -// UnmarshalJSON is the custom unmarshaler for Office365LinkedService struct. -func (o3ls *Office365LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var office365LinkedServiceTypeProperties Office365LinkedServiceTypeProperties - err = json.Unmarshal(*v, &office365LinkedServiceTypeProperties) - if err != nil { - return err - } - o3ls.Office365LinkedServiceTypeProperties = &office365LinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if o3ls.AdditionalProperties == nil { - o3ls.AdditionalProperties = make(map[string]interface{}) - } - o3ls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - o3ls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - o3ls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - o3ls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - o3ls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - o3ls.Type = typeVar - } - } - } - - return nil -} - -// Office365LinkedServiceTypeProperties office365 linked service properties. -type Office365LinkedServiceTypeProperties struct { - // Office365TenantID - Azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with resultType string). - Office365TenantID interface{} `json:"office365TenantId,omitempty"` - // ServicePrincipalTenantID - Specify the tenant information under which your Azure AD web application resides. Type: string (or Expression with resultType string). - ServicePrincipalTenantID interface{} `json:"servicePrincipalTenantId,omitempty"` - // ServicePrincipalID - Specify the application's client ID. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - Specify the application's key. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for Office365LinkedServiceTypeProperties struct. -func (o3lstp *Office365LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "office365TenantId": - if v != nil { - var office365TenantID interface{} - err = json.Unmarshal(*v, &office365TenantID) - if err != nil { - return err - } - o3lstp.Office365TenantID = office365TenantID - } - case "servicePrincipalTenantId": - if v != nil { - var servicePrincipalTenantID interface{} - err = json.Unmarshal(*v, &servicePrincipalTenantID) - if err != nil { - return err - } - o3lstp.ServicePrincipalTenantID = servicePrincipalTenantID - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - o3lstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - o3lstp.ServicePrincipalKey = servicePrincipalKey - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - o3lstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// Office365Source a copy activity source for an Office 365 service. -type Office365Source struct { - // AllowedGroups - The groups containing all the users. Type: array of strings (or Expression with resultType array of strings). - AllowedGroups interface{} `json:"allowedGroups,omitempty"` - // UserScopeFilterURI - The user scope uri. Type: string (or Expression with resultType string). - UserScopeFilterURI interface{} `json:"userScopeFilterUri,omitempty"` - // DateFilterColumn - The Column to apply the and . Type: string (or Expression with resultType string). - DateFilterColumn interface{} `json:"dateFilterColumn,omitempty"` - // StartTime - Start time of the requested range for this dataset. Type: string (or Expression with resultType string). - StartTime interface{} `json:"startTime,omitempty"` - // EndTime - End time of the requested range for this dataset. Type: string (or Expression with resultType string). - EndTime interface{} `json:"endTime,omitempty"` - // OutputColumns - The columns to be read out from the Office 365 table. Type: array of objects (or Expression with resultType array of objects). itemType: OutputColumn. Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ] - OutputColumns interface{} `json:"outputColumns,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for Office365Source. -func (o3s Office365Source) MarshalJSON() ([]byte, error) { - o3s.Type = TypeBasicCopySourceTypeOffice365Source - objectMap := make(map[string]interface{}) - if o3s.AllowedGroups != nil { - objectMap["allowedGroups"] = o3s.AllowedGroups - } - if o3s.UserScopeFilterURI != nil { - objectMap["userScopeFilterUri"] = o3s.UserScopeFilterURI - } - if o3s.DateFilterColumn != nil { - objectMap["dateFilterColumn"] = o3s.DateFilterColumn - } - if o3s.StartTime != nil { - objectMap["startTime"] = o3s.StartTime - } - if o3s.EndTime != nil { - objectMap["endTime"] = o3s.EndTime - } - if o3s.OutputColumns != nil { - objectMap["outputColumns"] = o3s.OutputColumns - } - if o3s.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = o3s.SourceRetryCount - } - if o3s.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = o3s.SourceRetryWait - } - if o3s.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = o3s.MaxConcurrentConnections - } - if o3s.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = o3s.DisableMetricsCollection - } - if o3s.Type != "" { - objectMap["type"] = o3s.Type - } - for k, v := range o3s.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsOffice365Source() (*Office365Source, bool) { - return &o3s, true -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for Office365Source. -func (o3s Office365Source) AsBasicCopySource() (BasicCopySource, bool) { - return &o3s, true -} - -// UnmarshalJSON is the custom unmarshaler for Office365Source struct. -func (o3s *Office365Source) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "allowedGroups": - if v != nil { - var allowedGroups interface{} - err = json.Unmarshal(*v, &allowedGroups) - if err != nil { - return err - } - o3s.AllowedGroups = allowedGroups - } - case "userScopeFilterUri": - if v != nil { - var userScopeFilterURI interface{} - err = json.Unmarshal(*v, &userScopeFilterURI) - if err != nil { - return err - } - o3s.UserScopeFilterURI = userScopeFilterURI - } - case "dateFilterColumn": - if v != nil { - var dateFilterColumn interface{} - err = json.Unmarshal(*v, &dateFilterColumn) - if err != nil { - return err - } - o3s.DateFilterColumn = dateFilterColumn - } - case "startTime": - if v != nil { - var startTime interface{} - err = json.Unmarshal(*v, &startTime) - if err != nil { - return err - } - o3s.StartTime = startTime - } - case "endTime": - if v != nil { - var endTime interface{} - err = json.Unmarshal(*v, &endTime) - if err != nil { - return err - } - o3s.EndTime = endTime - } - case "outputColumns": - if v != nil { - var outputColumns interface{} - err = json.Unmarshal(*v, &outputColumns) - if err != nil { - return err - } - o3s.OutputColumns = outputColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if o3s.AdditionalProperties == nil { - o3s.AdditionalProperties = make(map[string]interface{}) - } - o3s.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - o3s.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - o3s.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - o3s.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - o3s.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - o3s.Type = typeVar - } - } - } - - return nil -} - -// Operation azure Data Factory API operation definition. -type Operation struct { - // Name - Operation name: {provider}/{resource}/{operation} - Name *string `json:"name,omitempty"` - // Origin - The intended executor of the operation. - Origin *string `json:"origin,omitempty"` - // Display - Metadata associated with the operation. - Display *OperationDisplay `json:"display,omitempty"` - // OperationProperties - Additional details about the operation. - *OperationProperties `json:"properties,omitempty"` -} - -// MarshalJSON is the custom marshaler for Operation. -func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if o.Name != nil { - objectMap["name"] = o.Name - } - if o.Origin != nil { - objectMap["origin"] = o.Origin - } - if o.Display != nil { - objectMap["display"] = o.Display - } - if o.OperationProperties != nil { - objectMap["properties"] = o.OperationProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for Operation struct. -func (o *Operation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - o.Name = &name - } - case "origin": - if v != nil { - var origin string - err = json.Unmarshal(*v, &origin) - if err != nil { - return err - } - o.Origin = &origin - } - case "display": - if v != nil { - var display OperationDisplay - err = json.Unmarshal(*v, &display) - if err != nil { - return err - } - o.Display = &display - } - case "properties": - if v != nil { - var operationProperties OperationProperties - err = json.Unmarshal(*v, &operationProperties) - if err != nil { - return err - } - o.OperationProperties = &operationProperties - } - } - } - - return nil -} - -// OperationDisplay metadata associated with the operation. -type OperationDisplay struct { - // Description - The description of the operation. - Description *string `json:"description,omitempty"` - // Provider - The name of the provider. - Provider *string `json:"provider,omitempty"` - // Resource - The name of the resource type on which the operation is performed. - Resource *string `json:"resource,omitempty"` - // Operation - The type of operation: get, read, delete, etc. - Operation *string `json:"operation,omitempty"` -} - -// OperationListResponse a list of operations that can be performed by the Data Factory service. -type OperationListResponse struct { - autorest.Response `json:"-"` - // Value - List of Data Factory operations supported by the Data Factory resource provider. - Value *[]Operation `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// OperationListResponseIterator provides access to a complete listing of Operation values. -type OperationListResponseIterator struct { - i int - page OperationListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *OperationListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *OperationListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter OperationListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter OperationListResponseIterator) Response() OperationListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter OperationListResponseIterator) Value() Operation { - if !iter.page.NotDone() { - return Operation{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the OperationListResponseIterator type. -func NewOperationListResponseIterator(page OperationListResponsePage) OperationListResponseIterator { - return OperationListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (olr OperationListResponse) IsEmpty() bool { - return olr.Value == nil || len(*olr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (olr OperationListResponse) hasNextLink() bool { - return olr.NextLink != nil && len(*olr.NextLink) != 0 -} - -// operationListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (olr OperationListResponse) operationListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !olr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(olr.NextLink))) -} - -// OperationListResponsePage contains a page of Operation values. -type OperationListResponsePage struct { - fn func(context.Context, OperationListResponse) (OperationListResponse, error) - olr OperationListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *OperationListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/OperationListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.olr) - if err != nil { - return err - } - page.olr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *OperationListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page OperationListResponsePage) NotDone() bool { - return !page.olr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page OperationListResponsePage) Response() OperationListResponse { - return page.olr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page OperationListResponsePage) Values() []Operation { - if page.olr.IsEmpty() { - return nil - } - return *page.olr.Value -} - -// Creates a new instance of the OperationListResponsePage type. -func NewOperationListResponsePage(cur OperationListResponse, getNextPage func(context.Context, OperationListResponse) (OperationListResponse, error)) OperationListResponsePage { - return OperationListResponsePage{ - fn: getNextPage, - olr: cur, - } -} - -// OperationLogSpecification details about an operation related to logs. -type OperationLogSpecification struct { - // Name - The name of the log category. - Name *string `json:"name,omitempty"` - // DisplayName - Localized display name. - DisplayName *string `json:"displayName,omitempty"` - // BlobDuration - Blobs created in the customer storage account, per hour. - BlobDuration *string `json:"blobDuration,omitempty"` -} - -// OperationMetricAvailability defines how often data for a metric becomes available. -type OperationMetricAvailability struct { - // TimeGrain - The granularity for the metric. - TimeGrain *string `json:"timeGrain,omitempty"` - // BlobDuration - Blob created in the customer storage account, per hour. - BlobDuration *string `json:"blobDuration,omitempty"` -} - -// OperationMetricDimension defines the metric dimension. -type OperationMetricDimension struct { - // Name - The name of the dimension for the metric. - Name *string `json:"name,omitempty"` - // DisplayName - The display name of the metric dimension. - DisplayName *string `json:"displayName,omitempty"` - // ToBeExportedForShoebox - Whether the dimension should be exported to Azure Monitor. - ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` -} - -// OperationMetricSpecification details about an operation related to metrics. -type OperationMetricSpecification struct { - // Name - The name of the metric. - Name *string `json:"name,omitempty"` - // DisplayName - Localized display name of the metric. - DisplayName *string `json:"displayName,omitempty"` - // DisplayDescription - The description of the metric. - DisplayDescription *string `json:"displayDescription,omitempty"` - // Unit - The unit that the metric is measured in. - Unit *string `json:"unit,omitempty"` - // AggregationType - The type of metric aggregation. - AggregationType *string `json:"aggregationType,omitempty"` - // EnableRegionalMdmAccount - Whether or not the service is using regional MDM accounts. - EnableRegionalMdmAccount *string `json:"enableRegionalMdmAccount,omitempty"` - // SourceMdmAccount - The name of the MDM account. - SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` - // SourceMdmNamespace - The name of the MDM namespace. - SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` - // Availabilities - Defines how often data for metrics becomes available. - Availabilities *[]OperationMetricAvailability `json:"availabilities,omitempty"` - // Dimensions - Defines the metric dimension. - Dimensions *[]OperationMetricDimension `json:"dimensions,omitempty"` -} - -// OperationProperties additional details about an operation. -type OperationProperties struct { - // ServiceSpecification - Details about a service operation. - ServiceSpecification *OperationServiceSpecification `json:"serviceSpecification,omitempty"` -} - -// OperationServiceSpecification details about a service operation. -type OperationServiceSpecification struct { - // LogSpecifications - Details about operations related to logs. - LogSpecifications *[]OperationLogSpecification `json:"logSpecifications,omitempty"` - // MetricSpecifications - Details about operations related to metrics. - MetricSpecifications *[]OperationMetricSpecification `json:"metricSpecifications,omitempty"` -} - -// OracleCloudStorageLinkedService linked service for Oracle Cloud Storage. -type OracleCloudStorageLinkedService struct { - // OracleCloudStorageLinkedServiceTypeProperties - Oracle Cloud Storage linked service properties. - *OracleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { - ocsls.Type = TypeBasicLinkedServiceTypeOracleCloudStorage - objectMap := make(map[string]interface{}) - if ocsls.OracleCloudStorageLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ocsls.OracleCloudStorageLinkedServiceTypeProperties - } - if ocsls.ConnectVia != nil { - objectMap["connectVia"] = ocsls.ConnectVia - } - if ocsls.Description != nil { - objectMap["description"] = ocsls.Description - } - if ocsls.Parameters != nil { - objectMap["parameters"] = ocsls.Parameters - } - if ocsls.Annotations != nil { - objectMap["annotations"] = ocsls.Annotations - } - if ocsls.Type != "" { - objectMap["type"] = ocsls.Type - } - for k, v := range ocsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return &ocsls, true -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for OracleCloudStorageLinkedService. -func (ocsls OracleCloudStorageLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ocsls, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleCloudStorageLinkedService struct. -func (ocsls *OracleCloudStorageLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oracleCloudStorageLinkedServiceTypeProperties OracleCloudStorageLinkedServiceTypeProperties - err = json.Unmarshal(*v, &oracleCloudStorageLinkedServiceTypeProperties) - if err != nil { - return err - } - ocsls.OracleCloudStorageLinkedServiceTypeProperties = &oracleCloudStorageLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ocsls.AdditionalProperties == nil { - ocsls.AdditionalProperties = make(map[string]interface{}) - } - ocsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ocsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ocsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ocsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ocsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ocsls.Type = typeVar - } - } - } - - return nil -} - -// OracleCloudStorageLinkedServiceTypeProperties oracle Cloud Storage linked service properties. -type OracleCloudStorageLinkedServiceTypeProperties struct { - // AccessKeyID - 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"` - // SecretAccessKey - The secret access key of the Oracle Cloud Storage Identity and Access Management (IAM) user. - SecretAccessKey BasicSecretBase `json:"secretAccessKey,omitempty"` - // ServiceURL - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for OracleCloudStorageLinkedServiceTypeProperties struct. -func (ocslstp *OracleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accessKeyId": - if v != nil { - var accessKeyID interface{} - err = json.Unmarshal(*v, &accessKeyID) - if err != nil { - return err - } - ocslstp.AccessKeyID = accessKeyID - } - case "secretAccessKey": - if v != nil { - secretAccessKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ocslstp.SecretAccessKey = secretAccessKey - } - case "serviceUrl": - if v != nil { - var serviceURL interface{} - err = json.Unmarshal(*v, &serviceURL) - if err != nil { - return err - } - ocslstp.ServiceURL = serviceURL - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - ocslstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// OracleCloudStorageLocation the location of Oracle Cloud Storage dataset. -type OracleCloudStorageLocation struct { - // BucketName - Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` - // Version - Specify the version of Oracle Cloud Storage. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) MarshalJSON() ([]byte, error) { - ocsl.Type = TypeBasicDatasetLocationTypeOracleCloudStorageLocation - objectMap := make(map[string]interface{}) - if ocsl.BucketName != nil { - objectMap["bucketName"] = ocsl.BucketName - } - if ocsl.Version != nil { - objectMap["version"] = ocsl.Version - } - if ocsl.FolderPath != nil { - objectMap["folderPath"] = ocsl.FolderPath - } - if ocsl.FileName != nil { - objectMap["fileName"] = ocsl.FileName - } - if ocsl.Type != "" { - objectMap["type"] = ocsl.Type - } - for k, v := range ocsl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsSftpLocation() (*SftpLocation, bool) { - return nil, false -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return &ocsl, true -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for OracleCloudStorageLocation. -func (ocsl OracleCloudStorageLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &ocsl, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleCloudStorageLocation struct. -func (ocsl *OracleCloudStorageLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "bucketName": - if v != nil { - var bucketName interface{} - err = json.Unmarshal(*v, &bucketName) - if err != nil { - return err - } - ocsl.BucketName = bucketName - } - case "version": - if v != nil { - var version interface{} - err = json.Unmarshal(*v, &version) - if err != nil { - return err - } - ocsl.Version = version - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ocsl.AdditionalProperties == nil { - ocsl.AdditionalProperties = make(map[string]interface{}) - } - ocsl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - ocsl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - ocsl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ocsl.Type = typeVar - } - } - } - - return nil -} - -// OracleCloudStorageReadSettings oracle Cloud Storage read settings. -type OracleCloudStorageReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Oracle Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // Prefix - The prefix filter for the Oracle Cloud Storage object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` - // FileListPath - 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"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { - ocsrs.Type = TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings - objectMap := make(map[string]interface{}) - if ocsrs.Recursive != nil { - objectMap["recursive"] = ocsrs.Recursive - } - if ocsrs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = ocsrs.WildcardFolderPath - } - if ocsrs.WildcardFileName != nil { - objectMap["wildcardFileName"] = ocsrs.WildcardFileName - } - if ocsrs.Prefix != nil { - objectMap["prefix"] = ocsrs.Prefix - } - if ocsrs.FileListPath != nil { - objectMap["fileListPath"] = ocsrs.FileListPath - } - if ocsrs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = ocsrs.EnablePartitionDiscovery - } - if ocsrs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = ocsrs.PartitionRootPath - } - if ocsrs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = ocsrs.DeleteFilesAfterCompletion - } - if ocsrs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = ocsrs.ModifiedDatetimeStart - } - if ocsrs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = ocsrs.ModifiedDatetimeEnd - } - if ocsrs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ocsrs.MaxConcurrentConnections - } - if ocsrs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ocsrs.DisableMetricsCollection - } - if ocsrs.Type != "" { - objectMap["type"] = ocsrs.Type - } - for k, v := range ocsrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return &ocsrs, true -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for OracleCloudStorageReadSettings. -func (ocsrs OracleCloudStorageReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &ocsrs, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleCloudStorageReadSettings struct. -func (ocsrs *OracleCloudStorageReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - ocsrs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - ocsrs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - ocsrs.WildcardFileName = wildcardFileName - } - case "prefix": - if v != nil { - var prefix interface{} - err = json.Unmarshal(*v, &prefix) - if err != nil { - return err - } - ocsrs.Prefix = prefix - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - ocsrs.FileListPath = fileListPath - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - ocsrs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - ocsrs.PartitionRootPath = partitionRootPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - ocsrs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - ocsrs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - ocsrs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ocsrs.AdditionalProperties == nil { - ocsrs.AdditionalProperties = make(map[string]interface{}) - } - ocsrs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ocsrs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ocsrs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ocsrs.Type = typeVar - } - } - } - - return nil -} - -// OracleLinkedService oracle database. -type OracleLinkedService struct { - // OracleLinkedServiceTypeProperties - Oracle database linked service properties. - *OracleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleLinkedService. -func (ols OracleLinkedService) MarshalJSON() ([]byte, error) { - ols.Type = TypeBasicLinkedServiceTypeOracle - objectMap := make(map[string]interface{}) - if ols.OracleLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ols.OracleLinkedServiceTypeProperties - } - if ols.ConnectVia != nil { - objectMap["connectVia"] = ols.ConnectVia - } - if ols.Description != nil { - objectMap["description"] = ols.Description - } - if ols.Parameters != nil { - objectMap["parameters"] = ols.Parameters - } - if ols.Annotations != nil { - objectMap["annotations"] = ols.Annotations - } - if ols.Type != "" { - objectMap["type"] = ols.Type - } - for k, v := range ols.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return &ols, true -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for OracleLinkedService. -func (ols OracleLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ols, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleLinkedService struct. -func (ols *OracleLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oracleLinkedServiceTypeProperties OracleLinkedServiceTypeProperties - err = json.Unmarshal(*v, &oracleLinkedServiceTypeProperties) - if err != nil { - return err - } - ols.OracleLinkedServiceTypeProperties = &oracleLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ols.AdditionalProperties == nil { - ols.AdditionalProperties = make(map[string]interface{}) - } - ols.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ols.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ols.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ols.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ols.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ols.Type = typeVar - } - } - } - - return nil -} - -// OracleLinkedServiceTypeProperties oracle database linked service properties. -type OracleLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// OraclePartitionSettings the settings that will be leveraged for Oracle source partitioning. -type OraclePartitionSettings struct { - // PartitionNames - Names of the physical partitions of Oracle table. - PartitionNames interface{} `json:"partitionNames,omitempty"` - // PartitionColumnName - 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"` - // PartitionUpperBound - 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"` - // PartitionLowerBound - 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"` -} - -// OracleServiceCloudLinkedService oracle Service Cloud linked service. -type OracleServiceCloudLinkedService struct { - // OracleServiceCloudLinkedServiceTypeProperties - Oracle Service Cloud linked service properties. - *OracleServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) MarshalJSON() ([]byte, error) { - oscls.Type = TypeBasicLinkedServiceTypeOracleServiceCloud - objectMap := make(map[string]interface{}) - if oscls.OracleServiceCloudLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = oscls.OracleServiceCloudLinkedServiceTypeProperties - } - if oscls.ConnectVia != nil { - objectMap["connectVia"] = oscls.ConnectVia - } - if oscls.Description != nil { - objectMap["description"] = oscls.Description - } - if oscls.Parameters != nil { - objectMap["parameters"] = oscls.Parameters - } - if oscls.Annotations != nil { - objectMap["annotations"] = oscls.Annotations - } - if oscls.Type != "" { - objectMap["type"] = oscls.Type - } - for k, v := range oscls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return &oscls, true -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for OracleServiceCloudLinkedService. -func (oscls OracleServiceCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &oscls, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleServiceCloudLinkedService struct. -func (oscls *OracleServiceCloudLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oracleServiceCloudLinkedServiceTypeProperties OracleServiceCloudLinkedServiceTypeProperties - err = json.Unmarshal(*v, &oracleServiceCloudLinkedServiceTypeProperties) - if err != nil { - return err - } - oscls.OracleServiceCloudLinkedServiceTypeProperties = &oracleServiceCloudLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if oscls.AdditionalProperties == nil { - oscls.AdditionalProperties = make(map[string]interface{}) - } - oscls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - oscls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - oscls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - oscls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - oscls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - oscls.Type = typeVar - } - } - } - - return nil -} - -// OracleServiceCloudLinkedServiceTypeProperties oracle Service Cloud linked service properties. -type OracleServiceCloudLinkedServiceTypeProperties struct { - // Host - The URL of the Oracle Service Cloud instance. - Host interface{} `json:"host,omitempty"` - // Username - The user name that you use to access Oracle Service Cloud server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the username key. - Password BasicSecretBase `json:"password,omitempty"` - // UseEncryptedEndpoints - 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"` - // UseHostVerification - 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"` - // UsePeerVerification - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for OracleServiceCloudLinkedServiceTypeProperties struct. -func (osclstp *OracleServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - osclstp.Host = host - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - osclstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - osclstp.Password = password - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - osclstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - osclstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - osclstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - osclstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// OracleServiceCloudObjectDataset oracle Service Cloud dataset. -type OracleServiceCloudObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { - oscod.Type = TypeBasicDatasetTypeOracleServiceCloudObject - objectMap := make(map[string]interface{}) - if oscod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = oscod.GenericDatasetTypeProperties - } - if oscod.Description != nil { - objectMap["description"] = oscod.Description - } - if oscod.Structure != nil { - objectMap["structure"] = oscod.Structure - } - if oscod.Schema != nil { - objectMap["schema"] = oscod.Schema - } - if oscod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = oscod.LinkedServiceName - } - if oscod.Parameters != nil { - objectMap["parameters"] = oscod.Parameters - } - if oscod.Annotations != nil { - objectMap["annotations"] = oscod.Annotations - } - if oscod.Folder != nil { - objectMap["folder"] = oscod.Folder - } - if oscod.Type != "" { - objectMap["type"] = oscod.Type - } - for k, v := range oscod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return &oscod, true -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for OracleServiceCloudObjectDataset. -func (oscod OracleServiceCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &oscod, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleServiceCloudObjectDataset struct. -func (oscod *OracleServiceCloudObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - oscod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if oscod.AdditionalProperties == nil { - oscod.AdditionalProperties = make(map[string]interface{}) - } - oscod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - oscod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - oscod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - oscod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - oscod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - oscod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - oscod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - oscod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - oscod.Type = typeVar - } - } - } - - return nil -} - -// OracleServiceCloudSource a copy activity Oracle Service Cloud source. -type OracleServiceCloudSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) MarshalJSON() ([]byte, error) { - oscs.Type = TypeBasicCopySourceTypeOracleServiceCloudSource - objectMap := make(map[string]interface{}) - if oscs.Query != nil { - objectMap["query"] = oscs.Query - } - if oscs.QueryTimeout != nil { - objectMap["queryTimeout"] = oscs.QueryTimeout - } - if oscs.AdditionalColumns != nil { - objectMap["additionalColumns"] = oscs.AdditionalColumns - } - if oscs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = oscs.SourceRetryCount - } - if oscs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = oscs.SourceRetryWait - } - if oscs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = oscs.MaxConcurrentConnections - } - if oscs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = oscs.DisableMetricsCollection - } - if oscs.Type != "" { - objectMap["type"] = oscs.Type - } - for k, v := range oscs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return &oscs, true -} - -// AsDynamicsAXSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &oscs, true -} - -// AsBinarySource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for OracleServiceCloudSource. -func (oscs OracleServiceCloudSource) AsBasicCopySource() (BasicCopySource, bool) { - return &oscs, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleServiceCloudSource struct. -func (oscs *OracleServiceCloudSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - oscs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - oscs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - oscs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if oscs.AdditionalProperties == nil { - oscs.AdditionalProperties = make(map[string]interface{}) - } - oscs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - oscs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - oscs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - oscs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - oscs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - oscs.Type = typeVar - } - } - } - - return nil -} - -// OracleSink a copy activity Oracle sink. -type OracleSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleSink. -func (osVar OracleSink) MarshalJSON() ([]byte, error) { - osVar.Type = TypeBasicCopySinkTypeOracleSink - objectMap := make(map[string]interface{}) - if osVar.PreCopyScript != nil { - objectMap["preCopyScript"] = osVar.PreCopyScript - } - if osVar.WriteBatchSize != nil { - objectMap["writeBatchSize"] = osVar.WriteBatchSize - } - if osVar.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = osVar.WriteBatchTimeout - } - if osVar.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = osVar.SinkRetryCount - } - if osVar.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = osVar.SinkRetryWait - } - if osVar.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections - } - if osVar.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection - } - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsOracleSink() (*OracleSink, bool) { - return &osVar, true -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for OracleSink. -func (osVar OracleSink) AsBasicCopySink() (BasicCopySink, bool) { - return &osVar, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleSink struct. -func (osVar *OracleSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - osVar.PreCopyScript = preCopyScript - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if osVar.AdditionalProperties == nil { - osVar.AdditionalProperties = make(map[string]interface{}) - } - osVar.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - osVar.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - osVar.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - osVar.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - osVar.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - osVar.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - osVar.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - osVar.Type = typeVar - } - } - } - - return nil -} - -// OracleSource a copy activity Oracle source. -type OracleSource struct { - // OracleReaderQuery - Oracle reader query. Type: string (or Expression with resultType string). - OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` - // QueryTimeout - 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"` - // PartitionOption - The partition mechanism that will be used for Oracle read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Oracle source partitioning. - PartitionSettings *OraclePartitionSettings `json:"partitionSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleSource. -func (osVar OracleSource) MarshalJSON() ([]byte, error) { - osVar.Type = TypeBasicCopySourceTypeOracleSource - objectMap := make(map[string]interface{}) - if osVar.OracleReaderQuery != nil { - objectMap["oracleReaderQuery"] = osVar.OracleReaderQuery - } - if osVar.QueryTimeout != nil { - objectMap["queryTimeout"] = osVar.QueryTimeout - } - if osVar.PartitionOption != nil { - objectMap["partitionOption"] = osVar.PartitionOption - } - if osVar.PartitionSettings != nil { - objectMap["partitionSettings"] = osVar.PartitionSettings - } - if osVar.AdditionalColumns != nil { - objectMap["additionalColumns"] = osVar.AdditionalColumns - } - if osVar.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = osVar.SourceRetryCount - } - if osVar.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = osVar.SourceRetryWait - } - if osVar.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections - } - if osVar.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection - } - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsOracleSource() (*OracleSource, bool) { - return &osVar, true -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for OracleSource. -func (osVar OracleSource) AsBasicCopySource() (BasicCopySource, bool) { - return &osVar, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleSource struct. -func (osVar *OracleSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "oracleReaderQuery": - if v != nil { - var oracleReaderQuery interface{} - err = json.Unmarshal(*v, &oracleReaderQuery) - if err != nil { - return err - } - osVar.OracleReaderQuery = oracleReaderQuery - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - osVar.QueryTimeout = queryTimeout - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - osVar.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings OraclePartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - osVar.PartitionSettings = &partitionSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - osVar.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if osVar.AdditionalProperties == nil { - osVar.AdditionalProperties = make(map[string]interface{}) - } - osVar.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - osVar.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - osVar.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - osVar.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - osVar.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - osVar.Type = typeVar - } - } - } - - return nil -} - -// OracleTableDataset the on-premises Oracle database dataset. -type OracleTableDataset struct { - // OracleTableDatasetTypeProperties - On-premises Oracle dataset properties. - *OracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OracleTableDataset. -func (otd OracleTableDataset) MarshalJSON() ([]byte, error) { - otd.Type = TypeBasicDatasetTypeOracleTable - objectMap := make(map[string]interface{}) - if otd.OracleTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = otd.OracleTableDatasetTypeProperties - } - if otd.Description != nil { - objectMap["description"] = otd.Description - } - if otd.Structure != nil { - objectMap["structure"] = otd.Structure - } - if otd.Schema != nil { - objectMap["schema"] = otd.Schema - } - if otd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = otd.LinkedServiceName - } - if otd.Parameters != nil { - objectMap["parameters"] = otd.Parameters - } - if otd.Annotations != nil { - objectMap["annotations"] = otd.Annotations - } - if otd.Folder != nil { - objectMap["folder"] = otd.Folder - } - if otd.Type != "" { - objectMap["type"] = otd.Type - } - for k, v := range otd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return &otd, true -} - -// AsODataResourceDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for OracleTableDataset. -func (otd OracleTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &otd, true -} - -// UnmarshalJSON is the custom unmarshaler for OracleTableDataset struct. -func (otd *OracleTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var oracleTableDatasetTypeProperties OracleTableDatasetTypeProperties - err = json.Unmarshal(*v, &oracleTableDatasetTypeProperties) - if err != nil { - return err - } - otd.OracleTableDatasetTypeProperties = &oracleTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if otd.AdditionalProperties == nil { - otd.AdditionalProperties = make(map[string]interface{}) - } - otd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - otd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - otd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - otd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - otd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - otd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - otd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - otd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - otd.Type = typeVar - } - } - } - - return nil -} - -// OracleTableDatasetTypeProperties on-premises Oracle dataset properties. -type OracleTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the on-premises Oracle database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the on-premises Oracle database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// OrcDataset ORC dataset. -type OrcDataset struct { - // OrcDatasetTypeProperties - ORC dataset properties. - *OrcDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OrcDataset. -func (od OrcDataset) MarshalJSON() ([]byte, error) { - od.Type = TypeBasicDatasetTypeOrc - objectMap := make(map[string]interface{}) - if od.OrcDatasetTypeProperties != nil { - objectMap["typeProperties"] = od.OrcDatasetTypeProperties - } - if od.Description != nil { - objectMap["description"] = od.Description - } - if od.Structure != nil { - objectMap["structure"] = od.Structure - } - if od.Schema != nil { - objectMap["schema"] = od.Schema - } - if od.LinkedServiceName != nil { - objectMap["linkedServiceName"] = od.LinkedServiceName - } - if od.Parameters != nil { - objectMap["parameters"] = od.Parameters - } - if od.Annotations != nil { - objectMap["annotations"] = od.Annotations - } - if od.Folder != nil { - objectMap["folder"] = od.Folder - } - if od.Type != "" { - objectMap["type"] = od.Type - } - for k, v := range od.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsOrcDataset() (*OrcDataset, bool) { - return &od, true -} - -// AsXMLDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for OrcDataset. -func (od OrcDataset) AsBasicDataset() (BasicDataset, bool) { - return &od, true -} - -// UnmarshalJSON is the custom unmarshaler for OrcDataset struct. -func (od *OrcDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var orcDatasetTypeProperties OrcDatasetTypeProperties - err = json.Unmarshal(*v, &orcDatasetTypeProperties) - if err != nil { - return err - } - od.OrcDatasetTypeProperties = &orcDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if od.AdditionalProperties == nil { - od.AdditionalProperties = make(map[string]interface{}) - } - od.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - od.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - od.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - od.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - od.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - od.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - od.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - od.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - od.Type = typeVar - } - } - } - - return nil -} - -// OrcDatasetTypeProperties ORC dataset properties. -type OrcDatasetTypeProperties struct { - // Location - The location of the ORC data storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // OrcCompressionCodec - The data orcCompressionCodec. Type: string (or Expression with resultType string). - OrcCompressionCodec interface{} `json:"orcCompressionCodec,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for OrcDatasetTypeProperties struct. -func (odtp *OrcDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - odtp.Location = location - } - case "orcCompressionCodec": - if v != nil { - var orcCompressionCodec interface{} - err = json.Unmarshal(*v, &orcCompressionCodec) - if err != nil { - return err - } - odtp.OrcCompressionCodec = orcCompressionCodec - } - } - } - - return nil -} - -// OrcFormat the data stored in Optimized Row Columnar (ORC) format. -type OrcFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OrcFormat. -func (of OrcFormat) MarshalJSON() ([]byte, error) { - of.Type = TypeBasicDatasetStorageFormatTypeOrcFormat - objectMap := make(map[string]interface{}) - if of.Serializer != nil { - objectMap["serializer"] = of.Serializer - } - if of.Deserializer != nil { - objectMap["deserializer"] = of.Deserializer - } - if of.Type != "" { - objectMap["type"] = of.Type - } - for k, v := range of.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsParquetFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// AsOrcFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsOrcFormat() (*OrcFormat, bool) { - return &of, true -} - -// AsAvroFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// AsJSONFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// AsTextFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for OrcFormat. -func (of OrcFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &of, true -} - -// UnmarshalJSON is the custom unmarshaler for OrcFormat struct. -func (of *OrcFormat) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if of.AdditionalProperties == nil { - of.AdditionalProperties = make(map[string]interface{}) - } - of.AdditionalProperties[k] = additionalProperties - } - case "serializer": - if v != nil { - var serializer interface{} - err = json.Unmarshal(*v, &serializer) - if err != nil { - return err - } - of.Serializer = serializer - } - case "deserializer": - if v != nil { - var deserializer interface{} - err = json.Unmarshal(*v, &deserializer) - if err != nil { - return err - } - of.Deserializer = deserializer - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetStorageFormat - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - of.Type = typeVar - } - } - } - - return nil -} - -// OrcSink a copy activity ORC sink. -type OrcSink struct { - // StoreSettings - ORC store settings. - StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` - // FormatSettings - ORC format settings. - FormatSettings *OrcWriteSettings `json:"formatSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OrcSink. -func (osVar OrcSink) MarshalJSON() ([]byte, error) { - osVar.Type = TypeBasicCopySinkTypeOrcSink - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = osVar.StoreSettings - if osVar.FormatSettings != nil { - objectMap["formatSettings"] = osVar.FormatSettings - } - if osVar.WriteBatchSize != nil { - objectMap["writeBatchSize"] = osVar.WriteBatchSize - } - if osVar.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = osVar.WriteBatchTimeout - } - if osVar.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = osVar.SinkRetryCount - } - if osVar.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = osVar.SinkRetryWait - } - if osVar.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections - } - if osVar.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection - } - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsOrcSink() (*OrcSink, bool) { - return &osVar, true -} - -// AsJSONSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for OrcSink. -func (osVar OrcSink) AsBasicCopySink() (BasicCopySink, bool) { - return &osVar, true -} - -// UnmarshalJSON is the custom unmarshaler for OrcSink struct. -func (osVar *OrcSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreWriteSettings(*v) - if err != nil { - return err - } - osVar.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings OrcWriteSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - osVar.FormatSettings = &formatSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if osVar.AdditionalProperties == nil { - osVar.AdditionalProperties = make(map[string]interface{}) - } - osVar.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - osVar.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - osVar.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - osVar.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - osVar.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - osVar.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - osVar.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - osVar.Type = typeVar - } - } - } - - return nil -} - -// OrcSource a copy activity ORC source. -type OrcSource struct { - // StoreSettings - ORC store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OrcSource. -func (osVar OrcSource) MarshalJSON() ([]byte, error) { - osVar.Type = TypeBasicCopySourceTypeOrcSource - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = osVar.StoreSettings - if osVar.AdditionalColumns != nil { - objectMap["additionalColumns"] = osVar.AdditionalColumns - } - if osVar.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = osVar.SourceRetryCount - } - if osVar.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = osVar.SourceRetryWait - } - if osVar.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = osVar.MaxConcurrentConnections - } - if osVar.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = osVar.DisableMetricsCollection - } - if osVar.Type != "" { - objectMap["type"] = osVar.Type - } - for k, v := range osVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsOrcSource() (*OrcSource, bool) { - return &osVar, true -} - -// AsXMLSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for OrcSource. -func (osVar OrcSource) AsBasicCopySource() (BasicCopySource, bool) { - return &osVar, true -} - -// UnmarshalJSON is the custom unmarshaler for OrcSource struct. -func (osVar *OrcSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - osVar.StoreSettings = storeSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - osVar.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if osVar.AdditionalProperties == nil { - osVar.AdditionalProperties = make(map[string]interface{}) - } - osVar.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - osVar.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - osVar.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - osVar.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - osVar.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - osVar.Type = typeVar - } - } - } - - return nil -} - -// OrcWriteSettings orc write settings. -type OrcWriteSettings struct { - // MaxRowsPerFile - 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"` - // FileNamePrefix - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for OrcWriteSettings. -func (ows OrcWriteSettings) MarshalJSON() ([]byte, error) { - ows.Type = TypeBasicFormatWriteSettingsTypeOrcWriteSettings - objectMap := make(map[string]interface{}) - if ows.MaxRowsPerFile != nil { - objectMap["maxRowsPerFile"] = ows.MaxRowsPerFile - } - if ows.FileNamePrefix != nil { - objectMap["fileNamePrefix"] = ows.FileNamePrefix - } - if ows.Type != "" { - objectMap["type"] = ows.Type - } - for k, v := range ows.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. -func (ows OrcWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { - return nil, false -} - -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. -func (ows OrcWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { - return nil, false -} - -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. -func (ows OrcWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { - return &ows, true -} - -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. -func (ows OrcWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { - return nil, false -} - -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. -func (ows OrcWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { - return nil, false -} - -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. -func (ows OrcWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return nil, false -} - -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for OrcWriteSettings. -func (ows OrcWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &ows, true -} - -// UnmarshalJSON is the custom unmarshaler for OrcWriteSettings struct. -func (ows *OrcWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "maxRowsPerFile": - if v != nil { - var maxRowsPerFile interface{} - err = json.Unmarshal(*v, &maxRowsPerFile) - if err != nil { - return err - } - ows.MaxRowsPerFile = maxRowsPerFile - } - case "fileNamePrefix": - if v != nil { - var fileNamePrefix interface{} - err = json.Unmarshal(*v, &fileNamePrefix) - if err != nil { - return err - } - ows.FileNamePrefix = fileNamePrefix - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ows.AdditionalProperties == nil { - ows.AdditionalProperties = make(map[string]interface{}) - } - ows.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ows.Type = typeVar - } - } - } - - return nil -} - -// OutputColumn the columns to be read out from the Office 365 table. -type OutputColumn struct { - // Name - Name of the table column. Type: string. - Name *string `json:"name,omitempty"` -} - -// PackageStore package store for the SSIS integration runtime. -type PackageStore struct { - // Name - The name of the package store - Name *string `json:"name,omitempty"` - // PackageStoreLinkedService - The package store linked service reference. - PackageStoreLinkedService *EntityReference `json:"packageStoreLinkedService,omitempty"` -} - -// ParameterSpecification definition of a single parameter for an entity. -type ParameterSpecification struct { - // Type - Parameter type. Possible values include: 'ParameterTypeObject', 'ParameterTypeString', 'ParameterTypeInt', 'ParameterTypeFloat', 'ParameterTypeBool', 'ParameterTypeArray', 'ParameterTypeSecureString' - Type ParameterType `json:"type,omitempty"` - // DefaultValue - Default value of parameter. - DefaultValue interface{} `json:"defaultValue,omitempty"` -} - -// ParquetDataset parquet dataset. -type ParquetDataset struct { - // ParquetDatasetTypeProperties - Parquet dataset properties. - *ParquetDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ParquetDataset. -func (pd ParquetDataset) MarshalJSON() ([]byte, error) { - pd.Type = TypeBasicDatasetTypeParquet - objectMap := make(map[string]interface{}) - if pd.ParquetDatasetTypeProperties != nil { - objectMap["typeProperties"] = pd.ParquetDatasetTypeProperties - } - if pd.Description != nil { - objectMap["description"] = pd.Description - } - if pd.Structure != nil { - objectMap["structure"] = pd.Structure - } - if pd.Schema != nil { - objectMap["schema"] = pd.Schema - } - if pd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = pd.LinkedServiceName - } - if pd.Parameters != nil { - objectMap["parameters"] = pd.Parameters - } - if pd.Annotations != nil { - objectMap["annotations"] = pd.Annotations - } - if pd.Folder != nil { - objectMap["folder"] = pd.Folder - } - if pd.Type != "" { - objectMap["type"] = pd.Type - } - for k, v := range pd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsParquetDataset() (*ParquetDataset, bool) { - return &pd, true -} - -// AsExcelDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ParquetDataset. -func (pd ParquetDataset) AsBasicDataset() (BasicDataset, bool) { - return &pd, true -} - -// UnmarshalJSON is the custom unmarshaler for ParquetDataset struct. -func (pd *ParquetDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var parquetDatasetTypeProperties ParquetDatasetTypeProperties - err = json.Unmarshal(*v, &parquetDatasetTypeProperties) - if err != nil { - return err - } - pd.ParquetDatasetTypeProperties = &parquetDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pd.AdditionalProperties == nil { - pd.AdditionalProperties = make(map[string]interface{}) - } - pd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - pd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - pd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - pd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - pd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pd.Type = typeVar - } - } - } - - return nil -} - -// ParquetDatasetTypeProperties parquet dataset properties. -type ParquetDatasetTypeProperties struct { - // Location - The location of the parquet storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // CompressionCodec - The data compressionCodec. Type: string (or Expression with resultType string). - CompressionCodec interface{} `json:"compressionCodec,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ParquetDatasetTypeProperties struct. -func (pdtp *ParquetDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - pdtp.Location = location - } - case "compressionCodec": - if v != nil { - var compressionCodec interface{} - err = json.Unmarshal(*v, &compressionCodec) - if err != nil { - return err - } - pdtp.CompressionCodec = compressionCodec - } - } - } - - return nil -} - -// ParquetFormat the data stored in Parquet format. -type ParquetFormat struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ParquetFormat. -func (pf ParquetFormat) MarshalJSON() ([]byte, error) { - pf.Type = TypeBasicDatasetStorageFormatTypeParquetFormat - objectMap := make(map[string]interface{}) - if pf.Serializer != nil { - objectMap["serializer"] = pf.Serializer - } - if pf.Deserializer != nil { - objectMap["deserializer"] = pf.Deserializer - } - if pf.Type != "" { - objectMap["type"] = pf.Type - } - for k, v := range pf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsParquetFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsParquetFormat() (*ParquetFormat, bool) { - return &pf, true -} - -// AsOrcFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// AsAvroFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// AsJSONFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// AsTextFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsTextFormat() (*TextFormat, bool) { - return nil, false -} - -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for ParquetFormat. -func (pf ParquetFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &pf, true -} - -// UnmarshalJSON is the custom unmarshaler for ParquetFormat struct. -func (pf *ParquetFormat) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pf.AdditionalProperties == nil { - pf.AdditionalProperties = make(map[string]interface{}) - } - pf.AdditionalProperties[k] = additionalProperties - } - case "serializer": - if v != nil { - var serializer interface{} - err = json.Unmarshal(*v, &serializer) - if err != nil { - return err - } - pf.Serializer = serializer - } - case "deserializer": - if v != nil { - var deserializer interface{} - err = json.Unmarshal(*v, &deserializer) - if err != nil { - return err - } - pf.Deserializer = deserializer - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetStorageFormat - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pf.Type = typeVar - } - } - } - - return nil -} - -// ParquetReadSettings parquet read settings. -type ParquetReadSettings struct { - // CompressionProperties - Compression settings. - CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ParquetReadSettings. -func (prs ParquetReadSettings) MarshalJSON() ([]byte, error) { - prs.Type = TypeBasicFormatReadSettingsTypeParquetReadSettings - objectMap := make(map[string]interface{}) - objectMap["compressionProperties"] = prs.CompressionProperties - if prs.Type != "" { - objectMap["type"] = prs.Type - } - for k, v := range prs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. -func (prs ParquetReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { - return nil, false -} - -// AsXMLReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. -func (prs ParquetReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { - return nil, false -} - -// AsJSONReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. -func (prs ParquetReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { - return nil, false -} - -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. -func (prs ParquetReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { - return nil, false -} - -// AsParquetReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. -func (prs ParquetReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { - return &prs, true -} - -// AsFormatReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. -func (prs ParquetReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { - return nil, false -} - -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for ParquetReadSettings. -func (prs ParquetReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &prs, true -} - -// UnmarshalJSON is the custom unmarshaler for ParquetReadSettings struct. -func (prs *ParquetReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "compressionProperties": - if v != nil { - compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) - if err != nil { - return err - } - prs.CompressionProperties = compressionProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if prs.AdditionalProperties == nil { - prs.AdditionalProperties = make(map[string]interface{}) - } - prs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - prs.Type = typeVar - } - } - } - - return nil -} - -// ParquetSink a copy activity Parquet sink. -type ParquetSink struct { - // StoreSettings - Parquet store settings. - StoreSettings BasicStoreWriteSettings `json:"storeSettings,omitempty"` - // FormatSettings - Parquet format settings. - FormatSettings *ParquetWriteSettings `json:"formatSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ParquetSink. -func (ps ParquetSink) MarshalJSON() ([]byte, error) { - ps.Type = TypeBasicCopySinkTypeParquetSink - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = ps.StoreSettings - if ps.FormatSettings != nil { - objectMap["formatSettings"] = ps.FormatSettings - } - if ps.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ps.WriteBatchSize - } - if ps.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ps.WriteBatchTimeout - } - if ps.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ps.SinkRetryCount - } - if ps.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ps.SinkRetryWait - } - if ps.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections - } - if ps.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection - } - if ps.Type != "" { - objectMap["type"] = ps.Type - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsParquetSink() (*ParquetSink, bool) { - return &ps, true -} - -// AsAvroSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for ParquetSink. -func (ps ParquetSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ps, true -} - -// UnmarshalJSON is the custom unmarshaler for ParquetSink struct. -func (ps *ParquetSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreWriteSettings(*v) - if err != nil { - return err - } - ps.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings ParquetWriteSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - ps.FormatSettings = &formatSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ps.AdditionalProperties == nil { - ps.AdditionalProperties = make(map[string]interface{}) - } - ps.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ps.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ps.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ps.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ps.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ps.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ps.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ps.Type = typeVar - } - } - } - - return nil -} - -// ParquetSource a copy activity Parquet source. -type ParquetSource struct { - // StoreSettings - Parquet store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - Parquet format settings. - FormatSettings *ParquetReadSettings `json:"formatSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ParquetSource. -func (ps ParquetSource) MarshalJSON() ([]byte, error) { - ps.Type = TypeBasicCopySourceTypeParquetSource - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = ps.StoreSettings - if ps.FormatSettings != nil { - objectMap["formatSettings"] = ps.FormatSettings - } - if ps.AdditionalColumns != nil { - objectMap["additionalColumns"] = ps.AdditionalColumns - } - if ps.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ps.SourceRetryCount - } - if ps.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ps.SourceRetryWait - } - if ps.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections - } - if ps.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection - } - if ps.Type != "" { - objectMap["type"] = ps.Type - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsParquetSource() (*ParquetSource, bool) { - return &ps, true -} - -// AsExcelSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ParquetSource. -func (ps ParquetSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ps, true -} - -// UnmarshalJSON is the custom unmarshaler for ParquetSource struct. -func (ps *ParquetSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - ps.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings ParquetReadSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - ps.FormatSettings = &formatSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ps.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ps.AdditionalProperties == nil { - ps.AdditionalProperties = make(map[string]interface{}) - } - ps.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ps.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ps.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ps.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ps.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ps.Type = typeVar - } - } - } - - return nil -} - -// ParquetWriteSettings parquet write settings. -type ParquetWriteSettings struct { - // MaxRowsPerFile - 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"` - // FileNamePrefix - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatWriteSettingsTypeFormatWriteSettings', 'TypeBasicFormatWriteSettingsTypeJSONWriteSettings', 'TypeBasicFormatWriteSettingsTypeDelimitedTextWriteSettings', 'TypeBasicFormatWriteSettingsTypeOrcWriteSettings', 'TypeBasicFormatWriteSettingsTypeAvroWriteSettings', 'TypeBasicFormatWriteSettingsTypeParquetWriteSettings' - Type TypeBasicFormatWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ParquetWriteSettings. -func (pws ParquetWriteSettings) MarshalJSON() ([]byte, error) { - pws.Type = TypeBasicFormatWriteSettingsTypeParquetWriteSettings - objectMap := make(map[string]interface{}) - if pws.MaxRowsPerFile != nil { - objectMap["maxRowsPerFile"] = pws.MaxRowsPerFile - } - if pws.FileNamePrefix != nil { - objectMap["fileNamePrefix"] = pws.FileNamePrefix - } - if pws.Type != "" { - objectMap["type"] = pws.Type - } - for k, v := range pws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsJSONWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. -func (pws ParquetWriteSettings) AsJSONWriteSettings() (*JSONWriteSettings, bool) { - return nil, false -} - -// AsDelimitedTextWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. -func (pws ParquetWriteSettings) AsDelimitedTextWriteSettings() (*DelimitedTextWriteSettings, bool) { - return nil, false -} - -// AsOrcWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. -func (pws ParquetWriteSettings) AsOrcWriteSettings() (*OrcWriteSettings, bool) { - return nil, false -} - -// AsAvroWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. -func (pws ParquetWriteSettings) AsAvroWriteSettings() (*AvroWriteSettings, bool) { - return nil, false -} - -// AsParquetWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. -func (pws ParquetWriteSettings) AsParquetWriteSettings() (*ParquetWriteSettings, bool) { - return &pws, true -} - -// AsFormatWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. -func (pws ParquetWriteSettings) AsFormatWriteSettings() (*FormatWriteSettings, bool) { - return nil, false -} - -// AsBasicFormatWriteSettings is the BasicFormatWriteSettings implementation for ParquetWriteSettings. -func (pws ParquetWriteSettings) AsBasicFormatWriteSettings() (BasicFormatWriteSettings, bool) { - return &pws, true -} - -// UnmarshalJSON is the custom unmarshaler for ParquetWriteSettings struct. -func (pws *ParquetWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "maxRowsPerFile": - if v != nil { - var maxRowsPerFile interface{} - err = json.Unmarshal(*v, &maxRowsPerFile) - if err != nil { - return err - } - pws.MaxRowsPerFile = maxRowsPerFile - } - case "fileNamePrefix": - if v != nil { - var fileNamePrefix interface{} - err = json.Unmarshal(*v, &fileNamePrefix) - if err != nil { - return err - } - pws.FileNamePrefix = fileNamePrefix - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pws.AdditionalProperties == nil { - pws.AdditionalProperties = make(map[string]interface{}) - } - pws.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pws.Type = typeVar - } - } - } - - return nil -} - -// PaypalLinkedService paypal Service linked service. -type PaypalLinkedService struct { - // PaypalLinkedServiceTypeProperties - Paypal Service linked service properties. - *PaypalLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PaypalLinkedService. -func (pls PaypalLinkedService) MarshalJSON() ([]byte, error) { - pls.Type = TypeBasicLinkedServiceTypePaypal - objectMap := make(map[string]interface{}) - if pls.PaypalLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = pls.PaypalLinkedServiceTypeProperties - } - if pls.ConnectVia != nil { - objectMap["connectVia"] = pls.ConnectVia - } - if pls.Description != nil { - objectMap["description"] = pls.Description - } - if pls.Parameters != nil { - objectMap["parameters"] = pls.Parameters - } - if pls.Annotations != nil { - objectMap["annotations"] = pls.Annotations - } - if pls.Type != "" { - objectMap["type"] = pls.Type - } - for k, v := range pls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return &pls, true -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for PaypalLinkedService. -func (pls PaypalLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &pls, true -} - -// UnmarshalJSON is the custom unmarshaler for PaypalLinkedService struct. -func (pls *PaypalLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var paypalLinkedServiceTypeProperties PaypalLinkedServiceTypeProperties - err = json.Unmarshal(*v, &paypalLinkedServiceTypeProperties) - if err != nil { - return err - } - pls.PaypalLinkedServiceTypeProperties = &paypalLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pls.AdditionalProperties == nil { - pls.AdditionalProperties = make(map[string]interface{}) - } - pls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - pls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pls.Type = typeVar - } - } - } - - return nil -} - -// PaypalLinkedServiceTypeProperties paypal Service linked service properties. -type PaypalLinkedServiceTypeProperties struct { - // Host - The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) - Host interface{} `json:"host,omitempty"` - // ClientID - The client ID associated with your PayPal application. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with your PayPal application. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for PaypalLinkedServiceTypeProperties struct. -func (plstp *PaypalLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - plstp.Host = host - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - plstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - plstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - plstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - plstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - plstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - plstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// PaypalObjectDataset paypal Service dataset. -type PaypalObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PaypalObjectDataset. -func (pod PaypalObjectDataset) MarshalJSON() ([]byte, error) { - pod.Type = TypeBasicDatasetTypePaypalObject - objectMap := make(map[string]interface{}) - if pod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = pod.GenericDatasetTypeProperties - } - if pod.Description != nil { - objectMap["description"] = pod.Description - } - if pod.Structure != nil { - objectMap["structure"] = pod.Structure - } - if pod.Schema != nil { - objectMap["schema"] = pod.Schema - } - if pod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = pod.LinkedServiceName - } - if pod.Parameters != nil { - objectMap["parameters"] = pod.Parameters - } - if pod.Annotations != nil { - objectMap["annotations"] = pod.Annotations - } - if pod.Folder != nil { - objectMap["folder"] = pod.Folder - } - if pod.Type != "" { - objectMap["type"] = pod.Type - } - for k, v := range pod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return &pod, true -} - -// AsMarketoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for PaypalObjectDataset. -func (pod PaypalObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &pod, true -} - -// UnmarshalJSON is the custom unmarshaler for PaypalObjectDataset struct. -func (pod *PaypalObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - pod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pod.AdditionalProperties == nil { - pod.AdditionalProperties = make(map[string]interface{}) - } - pod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - pod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - pod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - pod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - pod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pod.Type = typeVar - } - } - } - - return nil -} - -// PaypalSource a copy activity Paypal Service source. -type PaypalSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PaypalSource. -func (ps PaypalSource) MarshalJSON() ([]byte, error) { - ps.Type = TypeBasicCopySourceTypePaypalSource - objectMap := make(map[string]interface{}) - if ps.Query != nil { - objectMap["query"] = ps.Query - } - if ps.QueryTimeout != nil { - objectMap["queryTimeout"] = ps.QueryTimeout - } - if ps.AdditionalColumns != nil { - objectMap["additionalColumns"] = ps.AdditionalColumns - } - if ps.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ps.SourceRetryCount - } - if ps.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ps.SourceRetryWait - } - if ps.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections - } - if ps.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection - } - if ps.Type != "" { - objectMap["type"] = ps.Type - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsPaypalSource() (*PaypalSource, bool) { - return &ps, true -} - -// AsMarketoSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ps, true -} - -// AsBinarySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for PaypalSource. -func (ps PaypalSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ps, true -} - -// UnmarshalJSON is the custom unmarshaler for PaypalSource struct. -func (ps *PaypalSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ps.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ps.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ps.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ps.AdditionalProperties == nil { - ps.AdditionalProperties = make(map[string]interface{}) - } - ps.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ps.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ps.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ps.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ps.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ps.Type = typeVar - } - } - } - - return nil -} - -// PhoenixDatasetTypeProperties phoenix Dataset Properties -type PhoenixDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Phoenix. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Phoenix. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// PhoenixLinkedService phoenix server linked service. -type PhoenixLinkedService struct { - // PhoenixLinkedServiceTypeProperties - Phoenix server linked service properties. - *PhoenixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PhoenixLinkedService. -func (pls PhoenixLinkedService) MarshalJSON() ([]byte, error) { - pls.Type = TypeBasicLinkedServiceTypePhoenix - objectMap := make(map[string]interface{}) - if pls.PhoenixLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = pls.PhoenixLinkedServiceTypeProperties - } - if pls.ConnectVia != nil { - objectMap["connectVia"] = pls.ConnectVia - } - if pls.Description != nil { - objectMap["description"] = pls.Description - } - if pls.Parameters != nil { - objectMap["parameters"] = pls.Parameters - } - if pls.Annotations != nil { - objectMap["annotations"] = pls.Annotations - } - if pls.Type != "" { - objectMap["type"] = pls.Type - } - for k, v := range pls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return &pls, true -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for PhoenixLinkedService. -func (pls PhoenixLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &pls, true -} - -// UnmarshalJSON is the custom unmarshaler for PhoenixLinkedService struct. -func (pls *PhoenixLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var phoenixLinkedServiceTypeProperties PhoenixLinkedServiceTypeProperties - err = json.Unmarshal(*v, &phoenixLinkedServiceTypeProperties) - if err != nil { - return err - } - pls.PhoenixLinkedServiceTypeProperties = &phoenixLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pls.AdditionalProperties == nil { - pls.AdditionalProperties = make(map[string]interface{}) - } - pls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - pls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pls.Type = typeVar - } - } - } - - return nil -} - -// PhoenixLinkedServiceTypeProperties phoenix server linked service properties. -type PhoenixLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Phoenix server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Phoenix server uses to listen for client connections. The default value is 8765. - Port interface{} `json:"port,omitempty"` - // HTTPPath - 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"` - // AuthenticationType - The authentication mechanism used to connect to the Phoenix server. Possible values include: 'PhoenixAuthenticationTypeAnonymous', 'PhoenixAuthenticationTypeUsernameAndPassword', 'PhoenixAuthenticationTypeWindowsAzureHDInsightService' - AuthenticationType PhoenixAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the Phoenix server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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"` - // UseSystemTrustStore - 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"` - // AllowHostNameCNMismatch - 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"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for PhoenixLinkedServiceTypeProperties struct. -func (plstp *PhoenixLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - plstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - plstp.Port = port - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - plstp.HTTPPath = HTTPPath - } - case "authenticationType": - if v != nil { - var authenticationType PhoenixAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - plstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - plstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - plstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - plstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - plstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - plstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - plstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - plstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - plstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// PhoenixObjectDataset phoenix server dataset. -type PhoenixObjectDataset struct { - // PhoenixDatasetTypeProperties - Properties specific to this dataset type. - *PhoenixDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) MarshalJSON() ([]byte, error) { - pod.Type = TypeBasicDatasetTypePhoenixObject - objectMap := make(map[string]interface{}) - if pod.PhoenixDatasetTypeProperties != nil { - objectMap["typeProperties"] = pod.PhoenixDatasetTypeProperties - } - if pod.Description != nil { - objectMap["description"] = pod.Description - } - if pod.Structure != nil { - objectMap["structure"] = pod.Structure - } - if pod.Schema != nil { - objectMap["schema"] = pod.Schema - } - if pod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = pod.LinkedServiceName - } - if pod.Parameters != nil { - objectMap["parameters"] = pod.Parameters - } - if pod.Annotations != nil { - objectMap["annotations"] = pod.Annotations - } - if pod.Folder != nil { - objectMap["folder"] = pod.Folder - } - if pod.Type != "" { - objectMap["type"] = pod.Type - } - for k, v := range pod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return &pod, true -} - -// AsPaypalObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for PhoenixObjectDataset. -func (pod PhoenixObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &pod, true -} - -// UnmarshalJSON is the custom unmarshaler for PhoenixObjectDataset struct. -func (pod *PhoenixObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var phoenixDatasetTypeProperties PhoenixDatasetTypeProperties - err = json.Unmarshal(*v, &phoenixDatasetTypeProperties) - if err != nil { - return err - } - pod.PhoenixDatasetTypeProperties = &phoenixDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pod.AdditionalProperties == nil { - pod.AdditionalProperties = make(map[string]interface{}) - } - pod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - pod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - pod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - pod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - pod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pod.Type = typeVar - } - } - } - - return nil -} - -// PhoenixSource a copy activity Phoenix server source. -type PhoenixSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PhoenixSource. -func (ps PhoenixSource) MarshalJSON() ([]byte, error) { - ps.Type = TypeBasicCopySourceTypePhoenixSource - objectMap := make(map[string]interface{}) - if ps.Query != nil { - objectMap["query"] = ps.Query - } - if ps.QueryTimeout != nil { - objectMap["queryTimeout"] = ps.QueryTimeout - } - if ps.AdditionalColumns != nil { - objectMap["additionalColumns"] = ps.AdditionalColumns - } - if ps.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ps.SourceRetryCount - } - if ps.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ps.SourceRetryWait - } - if ps.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections - } - if ps.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection - } - if ps.Type != "" { - objectMap["type"] = ps.Type - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsPhoenixSource() (*PhoenixSource, bool) { - return &ps, true -} - -// AsPaypalSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ps, true -} - -// AsBinarySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for PhoenixSource. -func (ps PhoenixSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ps, true -} - -// UnmarshalJSON is the custom unmarshaler for PhoenixSource struct. -func (ps *PhoenixSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ps.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ps.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ps.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ps.AdditionalProperties == nil { - ps.AdditionalProperties = make(map[string]interface{}) - } - ps.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ps.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ps.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ps.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ps.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ps.Type = typeVar - } - } - } - - return nil -} - -// Pipeline a data factory pipeline. -type Pipeline struct { - // Description - The description of the pipeline. - Description *string `json:"description,omitempty"` - // Activities - List of activities in pipeline. - Activities *[]BasicActivity `json:"activities,omitempty"` - // Parameters - List of parameters for pipeline. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Variables - List of variables for pipeline. - Variables map[string]*VariableSpecification `json:"variables"` - // Concurrency - The max number of concurrent runs for the pipeline. - Concurrency *int32 `json:"concurrency,omitempty"` - // Annotations - List of tags that can be used for describing the Pipeline. - Annotations *[]interface{} `json:"annotations,omitempty"` - // RunDimensions - Dimensions emitted by Pipeline. - RunDimensions map[string]interface{} `json:"runDimensions"` - // Folder - The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. - Folder *PipelineFolder `json:"folder,omitempty"` - Policy *PipelinePolicy `json:"policy,omitempty"` -} - -// MarshalJSON is the custom marshaler for Pipeline. -func (p Pipeline) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if p.Description != nil { - objectMap["description"] = p.Description - } - if p.Activities != nil { - objectMap["activities"] = p.Activities - } - if p.Parameters != nil { - objectMap["parameters"] = p.Parameters - } - if p.Variables != nil { - objectMap["variables"] = p.Variables - } - if p.Concurrency != nil { - objectMap["concurrency"] = p.Concurrency - } - if p.Annotations != nil { - objectMap["annotations"] = p.Annotations - } - if p.RunDimensions != nil { - objectMap["runDimensions"] = p.RunDimensions - } - if p.Folder != nil { - objectMap["folder"] = p.Folder - } - if p.Policy != nil { - objectMap["policy"] = p.Policy - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for Pipeline struct. -func (p *Pipeline) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - p.Description = &description - } - case "activities": - if v != nil { - activities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - p.Activities = &activities - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - p.Parameters = parameters - } - case "variables": - if v != nil { - var variables map[string]*VariableSpecification - err = json.Unmarshal(*v, &variables) - if err != nil { - return err - } - p.Variables = variables - } - case "concurrency": - if v != nil { - var concurrency int32 - err = json.Unmarshal(*v, &concurrency) - if err != nil { - return err - } - p.Concurrency = &concurrency - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - p.Annotations = &annotations - } - case "runDimensions": - if v != nil { - var runDimensions map[string]interface{} - err = json.Unmarshal(*v, &runDimensions) - if err != nil { - return err - } - p.RunDimensions = runDimensions - } - case "folder": - if v != nil { - var folder PipelineFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - p.Folder = &folder - } - case "policy": - if v != nil { - var policy PipelinePolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - p.Policy = &policy - } - } - } - - return nil -} - -// PipelineElapsedTimeMetricPolicy pipeline ElapsedTime Metric Policy. -type PipelineElapsedTimeMetricPolicy struct { - // Duration - TimeSpan value, after which an Azure Monitoring Metric is fired. - Duration interface{} `json:"duration,omitempty"` -} - -// PipelineExternalComputeScaleProperties pipelineExternalComputeScale properties for managed integration -// runtime. -type PipelineExternalComputeScaleProperties struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // TimeToLive - Time to live (in minutes) setting of integration runtime which will execute pipeline and external activity. - TimeToLive *int32 `json:"timeToLive,omitempty"` - // NumberOfPipelineNodes - Number of the pipeline nodes, which should be greater than 0 and less than 11. - NumberOfPipelineNodes *int32 `json:"numberOfPipelineNodes,omitempty"` - // NumberOfExternalNodes - Number of the the external nodes, which should be greater than 0 and less than 11. - NumberOfExternalNodes *int32 `json:"numberOfExternalNodes,omitempty"` -} - -// MarshalJSON is the custom marshaler for PipelineExternalComputeScaleProperties. -func (pecsp PipelineExternalComputeScaleProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pecsp.TimeToLive != nil { - objectMap["timeToLive"] = pecsp.TimeToLive - } - if pecsp.NumberOfPipelineNodes != nil { - objectMap["numberOfPipelineNodes"] = pecsp.NumberOfPipelineNodes - } - if pecsp.NumberOfExternalNodes != nil { - objectMap["numberOfExternalNodes"] = pecsp.NumberOfExternalNodes - } - for k, v := range pecsp.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for PipelineExternalComputeScaleProperties struct. -func (pecsp *PipelineExternalComputeScaleProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pecsp.AdditionalProperties == nil { - pecsp.AdditionalProperties = make(map[string]interface{}) - } - pecsp.AdditionalProperties[k] = additionalProperties - } - case "timeToLive": - if v != nil { - var timeToLive int32 - err = json.Unmarshal(*v, &timeToLive) - if err != nil { - return err - } - pecsp.TimeToLive = &timeToLive - } - case "numberOfPipelineNodes": - if v != nil { - var numberOfPipelineNodes int32 - err = json.Unmarshal(*v, &numberOfPipelineNodes) - if err != nil { - return err - } - pecsp.NumberOfPipelineNodes = &numberOfPipelineNodes - } - case "numberOfExternalNodes": - if v != nil { - var numberOfExternalNodes int32 - err = json.Unmarshal(*v, &numberOfExternalNodes) - if err != nil { - return err - } - pecsp.NumberOfExternalNodes = &numberOfExternalNodes - } - } - } - - return nil -} - -// PipelineFolder the folder that this Pipeline is in. If not specified, Pipeline will appear at the root -// level. -type PipelineFolder struct { - // Name - The name of the folder that this Pipeline is in. - Name *string `json:"name,omitempty"` -} - -// PipelineListResponse a list of pipeline resources. -type PipelineListResponse struct { - autorest.Response `json:"-"` - // Value - List of pipelines. - Value *[]PipelineResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// PipelineListResponseIterator provides access to a complete listing of PipelineResource values. -type PipelineListResponseIterator struct { - i int - page PipelineListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *PipelineListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PipelineListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *PipelineListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter PipelineListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter PipelineListResponseIterator) Response() PipelineListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter PipelineListResponseIterator) Value() PipelineResource { - if !iter.page.NotDone() { - return PipelineResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the PipelineListResponseIterator type. -func NewPipelineListResponseIterator(page PipelineListResponsePage) PipelineListResponseIterator { - return PipelineListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (plr PipelineListResponse) IsEmpty() bool { - return plr.Value == nil || len(*plr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (plr PipelineListResponse) hasNextLink() bool { - return plr.NextLink != nil && len(*plr.NextLink) != 0 -} - -// pipelineListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (plr PipelineListResponse) pipelineListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !plr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(plr.NextLink))) -} - -// PipelineListResponsePage contains a page of PipelineResource values. -type PipelineListResponsePage struct { - fn func(context.Context, PipelineListResponse) (PipelineListResponse, error) - plr PipelineListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *PipelineListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PipelineListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.plr) - if err != nil { - return err - } - page.plr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *PipelineListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page PipelineListResponsePage) NotDone() bool { - return !page.plr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page PipelineListResponsePage) Response() PipelineListResponse { - return page.plr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page PipelineListResponsePage) Values() []PipelineResource { - if page.plr.IsEmpty() { - return nil - } - return *page.plr.Value -} - -// Creates a new instance of the PipelineListResponsePage type. -func NewPipelineListResponsePage(cur PipelineListResponse, getNextPage func(context.Context, PipelineListResponse) (PipelineListResponse, error)) PipelineListResponsePage { - return PipelineListResponsePage{ - fn: getNextPage, - plr: cur, - } -} - -// PipelinePolicy pipeline Policy. -type PipelinePolicy struct { - ElapsedTimeMetric *PipelineElapsedTimeMetricPolicy `json:"elapsedTimeMetric,omitempty"` -} - -// PipelineReference pipeline reference type. -type PipelineReference struct { - // Type - Pipeline reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference pipeline name. - ReferenceName *string `json:"referenceName,omitempty"` - // Name - Reference name. - Name *string `json:"name,omitempty"` -} - -// PipelineResource pipeline resource type. -type PipelineResource struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Pipeline - Properties of the pipeline. - *Pipeline `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for PipelineResource. -func (pr PipelineResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pr.Pipeline != nil { - objectMap["properties"] = pr.Pipeline - } - for k, v := range pr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for PipelineResource struct. -func (pr *PipelineResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pr.AdditionalProperties == nil { - pr.AdditionalProperties = make(map[string]interface{}) - } - pr.AdditionalProperties[k] = additionalProperties - } - case "properties": - if v != nil { - var pipeline Pipeline - err = json.Unmarshal(*v, &pipeline) - if err != nil { - return err - } - pr.Pipeline = &pipeline - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - pr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - pr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - pr.Etag = &etag - } - } - } - - return nil -} - -// PipelineRun information about a pipeline run. -type PipelineRun struct { - autorest.Response `json:"-"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // RunID - READ-ONLY; Identifier of a run. - RunID *string `json:"runId,omitempty"` - // RunGroupID - READ-ONLY; Identifier that correlates all the recovery runs of a pipeline run. - RunGroupID *string `json:"runGroupId,omitempty"` - // IsLatest - READ-ONLY; Indicates if the recovered pipeline run is the latest in its group. - IsLatest *bool `json:"isLatest,omitempty"` - // PipelineName - READ-ONLY; The pipeline name. - PipelineName *string `json:"pipelineName,omitempty"` - // Parameters - READ-ONLY; The full or partial list of parameter name, value pair used in the pipeline run. - Parameters map[string]*string `json:"parameters"` - // RunDimensions - READ-ONLY; Run dimensions emitted by Pipeline run. - RunDimensions map[string]*string `json:"runDimensions"` - // InvokedBy - READ-ONLY; Entity that started the pipeline run. - InvokedBy *PipelineRunInvokedBy `json:"invokedBy,omitempty"` - // LastUpdated - READ-ONLY; The last updated timestamp for the pipeline run event in ISO8601 format. - LastUpdated *date.Time `json:"lastUpdated,omitempty"` - // RunStart - READ-ONLY; The start time of a pipeline run in ISO8601 format. - RunStart *date.Time `json:"runStart,omitempty"` - // RunEnd - READ-ONLY; The end time of a pipeline run in ISO8601 format. - RunEnd *date.Time `json:"runEnd,omitempty"` - // DurationInMs - READ-ONLY; The duration of a pipeline run. - DurationInMs *int32 `json:"durationInMs,omitempty"` - // Status - READ-ONLY; The status of a pipeline run. Possible values: Queued, InProgress, Succeeded, Failed, Canceling, Cancelled - Status *string `json:"status,omitempty"` - // Message - READ-ONLY; The message from a pipeline run. - Message *string `json:"message,omitempty"` -} - -// MarshalJSON is the custom marshaler for PipelineRun. -func (pr PipelineRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - for k, v := range pr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for PipelineRun struct. -func (pr *PipelineRun) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pr.AdditionalProperties == nil { - pr.AdditionalProperties = make(map[string]interface{}) - } - pr.AdditionalProperties[k] = additionalProperties - } - case "runId": - if v != nil { - var runID string - err = json.Unmarshal(*v, &runID) - if err != nil { - return err - } - pr.RunID = &runID - } - case "runGroupId": - if v != nil { - var runGroupID string - err = json.Unmarshal(*v, &runGroupID) - if err != nil { - return err - } - pr.RunGroupID = &runGroupID - } - case "isLatest": - if v != nil { - var isLatest bool - err = json.Unmarshal(*v, &isLatest) - if err != nil { - return err - } - pr.IsLatest = &isLatest - } - case "pipelineName": - if v != nil { - var pipelineName string - err = json.Unmarshal(*v, &pipelineName) - if err != nil { - return err - } - pr.PipelineName = &pipelineName - } - case "parameters": - if v != nil { - var parameters map[string]*string - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pr.Parameters = parameters - } - case "runDimensions": - if v != nil { - var runDimensions map[string]*string - err = json.Unmarshal(*v, &runDimensions) - if err != nil { - return err - } - pr.RunDimensions = runDimensions - } - case "invokedBy": - if v != nil { - var invokedBy PipelineRunInvokedBy - err = json.Unmarshal(*v, &invokedBy) - if err != nil { - return err - } - pr.InvokedBy = &invokedBy - } - case "lastUpdated": - if v != nil { - var lastUpdated date.Time - err = json.Unmarshal(*v, &lastUpdated) - if err != nil { - return err - } - pr.LastUpdated = &lastUpdated - } - case "runStart": - if v != nil { - var runStart date.Time - err = json.Unmarshal(*v, &runStart) - if err != nil { - return err - } - pr.RunStart = &runStart - } - case "runEnd": - if v != nil { - var runEnd date.Time - err = json.Unmarshal(*v, &runEnd) - if err != nil { - return err - } - pr.RunEnd = &runEnd - } - case "durationInMs": - if v != nil { - var durationInMs int32 - err = json.Unmarshal(*v, &durationInMs) - if err != nil { - return err - } - pr.DurationInMs = &durationInMs - } - case "status": - if v != nil { - var status string - err = json.Unmarshal(*v, &status) - if err != nil { - return err - } - pr.Status = &status - } - case "message": - if v != nil { - var message string - err = json.Unmarshal(*v, &message) - if err != nil { - return err - } - pr.Message = &message - } - } - } - - return nil -} - -// PipelineRunInvokedBy provides entity name and id that started the pipeline run. -type PipelineRunInvokedBy struct { - // Name - READ-ONLY; Name of the entity that started the pipeline run. - Name *string `json:"name,omitempty"` - // ID - READ-ONLY; The ID of the entity that started the run. - ID *string `json:"id,omitempty"` - // InvokedByType - READ-ONLY; The type of the entity that started the run. - InvokedByType *string `json:"invokedByType,omitempty"` - // PipelineName - READ-ONLY; The name of the pipeline that triggered the run, if any. - PipelineName *string `json:"pipelineName,omitempty"` - // PipelineRunID - READ-ONLY; The run id of the pipeline that triggered the run, if any. - PipelineRunID *string `json:"pipelineRunId,omitempty"` -} - -// MarshalJSON is the custom marshaler for PipelineRunInvokedBy. -func (prib PipelineRunInvokedBy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// PipelineRunsQueryResponse a list pipeline runs. -type PipelineRunsQueryResponse struct { - autorest.Response `json:"-"` - // Value - List of pipeline runs. - Value *[]PipelineRun `json:"value,omitempty"` - // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` -} - -// PolybaseSettings polyBase settings. -type PolybaseSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // RejectType - Reject type. Possible values include: 'PolybaseSettingsRejectTypeValue', 'PolybaseSettingsRejectTypePercentage' - RejectType PolybaseSettingsRejectType `json:"rejectType,omitempty"` - // RejectValue - 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"` - // RejectSampleValue - 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"` - // UseTypeDefault - 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"` -} - -// MarshalJSON is the custom marshaler for PolybaseSettings. -func (ps PolybaseSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ps.RejectType != "" { - objectMap["rejectType"] = ps.RejectType - } - if ps.RejectValue != nil { - objectMap["rejectValue"] = ps.RejectValue - } - if ps.RejectSampleValue != nil { - objectMap["rejectSampleValue"] = ps.RejectSampleValue - } - if ps.UseTypeDefault != nil { - objectMap["useTypeDefault"] = ps.UseTypeDefault - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for PolybaseSettings struct. -func (ps *PolybaseSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ps.AdditionalProperties == nil { - ps.AdditionalProperties = make(map[string]interface{}) - } - ps.AdditionalProperties[k] = additionalProperties - } - case "rejectType": - if v != nil { - var rejectType PolybaseSettingsRejectType - err = json.Unmarshal(*v, &rejectType) - if err != nil { - return err - } - ps.RejectType = rejectType - } - case "rejectValue": - if v != nil { - var rejectValue interface{} - err = json.Unmarshal(*v, &rejectValue) - if err != nil { - return err - } - ps.RejectValue = rejectValue - } - case "rejectSampleValue": - if v != nil { - var rejectSampleValue interface{} - err = json.Unmarshal(*v, &rejectSampleValue) - if err != nil { - return err - } - ps.RejectSampleValue = rejectSampleValue - } - case "useTypeDefault": - if v != nil { - var useTypeDefault interface{} - err = json.Unmarshal(*v, &useTypeDefault) - if err != nil { - return err - } - ps.UseTypeDefault = useTypeDefault - } - } - } - - return nil -} - -// PostgreSQLLinkedService linked service for PostgreSQL data source. -type PostgreSQLLinkedService struct { - // PostgreSQLLinkedServiceTypeProperties - PostgreSQL linked service properties. - *PostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) MarshalJSON() ([]byte, error) { - psls.Type = TypeBasicLinkedServiceTypePostgreSQL - objectMap := make(map[string]interface{}) - if psls.PostgreSQLLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = psls.PostgreSQLLinkedServiceTypeProperties - } - if psls.ConnectVia != nil { - objectMap["connectVia"] = psls.ConnectVia - } - if psls.Description != nil { - objectMap["description"] = psls.Description - } - if psls.Parameters != nil { - objectMap["parameters"] = psls.Parameters - } - if psls.Annotations != nil { - objectMap["annotations"] = psls.Annotations - } - if psls.Type != "" { - objectMap["type"] = psls.Type - } - for k, v := range psls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return &psls, true -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for PostgreSQLLinkedService. -func (psls PostgreSQLLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &psls, true -} - -// UnmarshalJSON is the custom unmarshaler for PostgreSQLLinkedService struct. -func (psls *PostgreSQLLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var postgreSQLLinkedServiceTypeProperties PostgreSQLLinkedServiceTypeProperties - err = json.Unmarshal(*v, &postgreSQLLinkedServiceTypeProperties) - if err != nil { - return err - } - psls.PostgreSQLLinkedServiceTypeProperties = &postgreSQLLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if psls.AdditionalProperties == nil { - psls.AdditionalProperties = make(map[string]interface{}) - } - psls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - psls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - psls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - psls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - psls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - psls.Type = typeVar - } - } - } - - return nil -} - -// PostgreSQLLinkedServiceTypeProperties postgreSQL linked service properties. -type PostgreSQLLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// PostgreSQLSource a copy activity source for PostgreSQL databases. -type PostgreSQLSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PostgreSQLSource. -func (pss PostgreSQLSource) MarshalJSON() ([]byte, error) { - pss.Type = TypeBasicCopySourceTypePostgreSQLSource - objectMap := make(map[string]interface{}) - if pss.Query != nil { - objectMap["query"] = pss.Query - } - if pss.QueryTimeout != nil { - objectMap["queryTimeout"] = pss.QueryTimeout - } - if pss.AdditionalColumns != nil { - objectMap["additionalColumns"] = pss.AdditionalColumns - } - if pss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = pss.SourceRetryCount - } - if pss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = pss.SourceRetryWait - } - if pss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = pss.MaxConcurrentConnections - } - if pss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = pss.DisableMetricsCollection - } - if pss.Type != "" { - objectMap["type"] = pss.Type - } - for k, v := range pss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return &pss, true -} - -// AsMySQLSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &pss, true -} - -// AsBinarySource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for PostgreSQLSource. -func (pss PostgreSQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &pss, true -} - -// UnmarshalJSON is the custom unmarshaler for PostgreSQLSource struct. -func (pss *PostgreSQLSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - pss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - pss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - pss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pss.AdditionalProperties == nil { - pss.AdditionalProperties = make(map[string]interface{}) - } - pss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - pss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - pss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - pss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - pss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pss.Type = typeVar - } - } - } - - return nil -} - -// PostgreSQLTableDataset the PostgreSQL table dataset. -type PostgreSQLTableDataset struct { - // PostgreSQLTableDatasetTypeProperties - PostgreSQL table dataset properties. - *PostgreSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) MarshalJSON() ([]byte, error) { - pstd.Type = TypeBasicDatasetTypePostgreSQLTable - objectMap := make(map[string]interface{}) - if pstd.PostgreSQLTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = pstd.PostgreSQLTableDatasetTypeProperties - } - if pstd.Description != nil { - objectMap["description"] = pstd.Description - } - if pstd.Structure != nil { - objectMap["structure"] = pstd.Structure - } - if pstd.Schema != nil { - objectMap["schema"] = pstd.Schema - } - if pstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = pstd.LinkedServiceName - } - if pstd.Parameters != nil { - objectMap["parameters"] = pstd.Parameters - } - if pstd.Annotations != nil { - objectMap["annotations"] = pstd.Annotations - } - if pstd.Folder != nil { - objectMap["folder"] = pstd.Folder - } - if pstd.Type != "" { - objectMap["type"] = pstd.Type - } - for k, v := range pstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return &pstd, true -} - -// AsMySQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for PostgreSQLTableDataset. -func (pstd PostgreSQLTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &pstd, true -} - -// UnmarshalJSON is the custom unmarshaler for PostgreSQLTableDataset struct. -func (pstd *PostgreSQLTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var postgreSQLTableDatasetTypeProperties PostgreSQLTableDatasetTypeProperties - err = json.Unmarshal(*v, &postgreSQLTableDatasetTypeProperties) - if err != nil { - return err - } - pstd.PostgreSQLTableDatasetTypeProperties = &postgreSQLTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pstd.AdditionalProperties == nil { - pstd.AdditionalProperties = make(map[string]interface{}) - } - pstd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pstd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - pstd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - pstd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - pstd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pstd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pstd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - pstd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pstd.Type = typeVar - } - } - } - - return nil -} - -// PostgreSQLTableDatasetTypeProperties postgreSQL table dataset properties. -type PostgreSQLTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The PostgreSQL table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The PostgreSQL schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// PowerQuerySink power query sink. -type PowerQuerySink struct { - // Script - sink script. - Script *string `json:"script,omitempty"` - // SchemaLinkedService - Schema linked service reference. - SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` - // RejectedDataLinkedService - Rejected data linked service reference. - RejectedDataLinkedService *LinkedServiceReference `json:"rejectedDataLinkedService,omitempty"` - // Name - Transformation name. - Name *string `json:"name,omitempty"` - // Description - Transformation description. - Description *string `json:"description,omitempty"` - // Dataset - Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // LinkedService - Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` - // Flowlet - Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` -} - -// PowerQuerySinkMapping map Power Query mashup query to sink dataset(s). -type PowerQuerySinkMapping struct { - // QueryName - Name of the query in Power Query mashup document. - QueryName *string `json:"queryName,omitempty"` - // DataflowSinks - List of sinks mapped to Power Query mashup query. - DataflowSinks *[]PowerQuerySink `json:"dataflowSinks,omitempty"` -} - -// PowerQuerySource power query source. -type PowerQuerySource struct { - // Script - source script. - Script *string `json:"script,omitempty"` - // SchemaLinkedService - Schema linked service reference. - SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` - // Name - Transformation name. - Name *string `json:"name,omitempty"` - // Description - Transformation description. - Description *string `json:"description,omitempty"` - // Dataset - Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // LinkedService - Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` - // Flowlet - Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` -} - -// PowerQueryTypeProperties power Query data flow type properties. -type PowerQueryTypeProperties struct { - // Sources - List of sources in Power Query. - Sources *[]PowerQuerySource `json:"sources,omitempty"` - // Script - Power query mashup script. - Script *string `json:"script,omitempty"` - // DocumentLocale - Locale of the Power query mashup document. - DocumentLocale *string `json:"documentLocale,omitempty"` -} - -// PrestoDatasetTypeProperties presto Dataset Properties -type PrestoDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Presto. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Presto. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// PrestoLinkedService presto server linked service. -type PrestoLinkedService struct { - // PrestoLinkedServiceTypeProperties - Presto server linked service properties. - *PrestoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PrestoLinkedService. -func (pls PrestoLinkedService) MarshalJSON() ([]byte, error) { - pls.Type = TypeBasicLinkedServiceTypePresto - objectMap := make(map[string]interface{}) - if pls.PrestoLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = pls.PrestoLinkedServiceTypeProperties - } - if pls.ConnectVia != nil { - objectMap["connectVia"] = pls.ConnectVia - } - if pls.Description != nil { - objectMap["description"] = pls.Description - } - if pls.Parameters != nil { - objectMap["parameters"] = pls.Parameters - } - if pls.Annotations != nil { - objectMap["annotations"] = pls.Annotations - } - if pls.Type != "" { - objectMap["type"] = pls.Type - } - for k, v := range pls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return &pls, true -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for PrestoLinkedService. -func (pls PrestoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &pls, true -} - -// UnmarshalJSON is the custom unmarshaler for PrestoLinkedService struct. -func (pls *PrestoLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var prestoLinkedServiceTypeProperties PrestoLinkedServiceTypeProperties - err = json.Unmarshal(*v, &prestoLinkedServiceTypeProperties) - if err != nil { - return err - } - pls.PrestoLinkedServiceTypeProperties = &prestoLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pls.AdditionalProperties == nil { - pls.AdditionalProperties = make(map[string]interface{}) - } - pls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - pls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pls.Type = typeVar - } - } - } - - return nil -} - -// PrestoLinkedServiceTypeProperties presto server linked service properties. -type PrestoLinkedServiceTypeProperties struct { - // Host - The IP address or host name of the Presto server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` - // ServerVersion - The version of the Presto server. (i.e. 0.148-t) - ServerVersion interface{} `json:"serverVersion,omitempty"` - // Catalog - The catalog context for all request against the server. - Catalog interface{} `json:"catalog,omitempty"` - // Port - The TCP port that the Presto server uses to listen for client connections. The default value is 8080. - Port interface{} `json:"port,omitempty"` - // AuthenticationType - The authentication mechanism used to connect to the Presto server. Possible values include: 'PrestoAuthenticationTypeAnonymous', 'PrestoAuthenticationTypeLDAP' - AuthenticationType PrestoAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the Presto server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name. - Password BasicSecretBase `json:"password,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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"` - // UseSystemTrustStore - 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"` - // AllowHostNameCNMismatch - 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"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // TimeZoneID - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for PrestoLinkedServiceTypeProperties struct. -func (plstp *PrestoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - plstp.Host = host - } - case "serverVersion": - if v != nil { - var serverVersion interface{} - err = json.Unmarshal(*v, &serverVersion) - if err != nil { - return err - } - plstp.ServerVersion = serverVersion - } - case "catalog": - if v != nil { - var catalog interface{} - err = json.Unmarshal(*v, &catalog) - if err != nil { - return err - } - plstp.Catalog = catalog - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - plstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType PrestoAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - plstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - plstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - plstp.Password = password - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - plstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - plstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - plstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - plstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - plstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "timeZoneID": - if v != nil { - var timeZoneID interface{} - err = json.Unmarshal(*v, &timeZoneID) - if err != nil { - return err - } - plstp.TimeZoneID = timeZoneID - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - plstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// PrestoObjectDataset presto server dataset. -type PrestoObjectDataset struct { - // PrestoDatasetTypeProperties - Properties specific to this dataset type. - *PrestoDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PrestoObjectDataset. -func (pod PrestoObjectDataset) MarshalJSON() ([]byte, error) { - pod.Type = TypeBasicDatasetTypePrestoObject - objectMap := make(map[string]interface{}) - if pod.PrestoDatasetTypeProperties != nil { - objectMap["typeProperties"] = pod.PrestoDatasetTypeProperties - } - if pod.Description != nil { - objectMap["description"] = pod.Description - } - if pod.Structure != nil { - objectMap["structure"] = pod.Structure - } - if pod.Schema != nil { - objectMap["schema"] = pod.Schema - } - if pod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = pod.LinkedServiceName - } - if pod.Parameters != nil { - objectMap["parameters"] = pod.Parameters - } - if pod.Annotations != nil { - objectMap["annotations"] = pod.Annotations - } - if pod.Folder != nil { - objectMap["folder"] = pod.Folder - } - if pod.Type != "" { - objectMap["type"] = pod.Type - } - for k, v := range pod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return &pod, true -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for PrestoObjectDataset. -func (pod PrestoObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &pod, true -} - -// UnmarshalJSON is the custom unmarshaler for PrestoObjectDataset struct. -func (pod *PrestoObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var prestoDatasetTypeProperties PrestoDatasetTypeProperties - err = json.Unmarshal(*v, &prestoDatasetTypeProperties) - if err != nil { - return err - } - pod.PrestoDatasetTypeProperties = &prestoDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if pod.AdditionalProperties == nil { - pod.AdditionalProperties = make(map[string]interface{}) - } - pod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - pod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - pod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - pod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - pod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - pod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - pod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - pod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - pod.Type = typeVar - } - } - } - - return nil -} - -// PrestoSource a copy activity Presto server source. -type PrestoSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for PrestoSource. -func (ps PrestoSource) MarshalJSON() ([]byte, error) { - ps.Type = TypeBasicCopySourceTypePrestoSource - objectMap := make(map[string]interface{}) - if ps.Query != nil { - objectMap["query"] = ps.Query - } - if ps.QueryTimeout != nil { - objectMap["queryTimeout"] = ps.QueryTimeout - } - if ps.AdditionalColumns != nil { - objectMap["additionalColumns"] = ps.AdditionalColumns - } - if ps.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ps.SourceRetryCount - } - if ps.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ps.SourceRetryWait - } - if ps.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ps.MaxConcurrentConnections - } - if ps.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ps.DisableMetricsCollection - } - if ps.Type != "" { - objectMap["type"] = ps.Type - } - for k, v := range ps.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsPrestoSource() (*PrestoSource, bool) { - return &ps, true -} - -// AsPhoenixSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ps, true -} - -// AsBinarySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for PrestoSource. -func (ps PrestoSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ps, true -} - -// UnmarshalJSON is the custom unmarshaler for PrestoSource struct. -func (ps *PrestoSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ps.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ps.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ps.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ps.AdditionalProperties == nil { - ps.AdditionalProperties = make(map[string]interface{}) - } - ps.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ps.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ps.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ps.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ps.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ps.Type = typeVar - } - } - } - - return nil -} - -// PrivateEndpoint private endpoint which a connection belongs to. -type PrivateEndpoint struct { - // ID - The resource Id for private endpoint - ID *string `json:"id,omitempty"` -} - -// PrivateEndpointConnectionListResponse a list of linked service resources. -type PrivateEndpointConnectionListResponse struct { - autorest.Response `json:"-"` - // Value - List of Private Endpoint Connections. - Value *[]PrivateEndpointConnectionResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// PrivateEndpointConnectionListResponseIterator provides access to a complete listing of -// PrivateEndpointConnectionResource values. -type PrivateEndpointConnectionListResponseIterator struct { - i int - page PrivateEndpointConnectionListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *PrivateEndpointConnectionListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *PrivateEndpointConnectionListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter PrivateEndpointConnectionListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter PrivateEndpointConnectionListResponseIterator) Response() PrivateEndpointConnectionListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter PrivateEndpointConnectionListResponseIterator) Value() PrivateEndpointConnectionResource { - if !iter.page.NotDone() { - return PrivateEndpointConnectionResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the PrivateEndpointConnectionListResponseIterator type. -func NewPrivateEndpointConnectionListResponseIterator(page PrivateEndpointConnectionListResponsePage) PrivateEndpointConnectionListResponseIterator { - return PrivateEndpointConnectionListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (peclr PrivateEndpointConnectionListResponse) IsEmpty() bool { - return peclr.Value == nil || len(*peclr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (peclr PrivateEndpointConnectionListResponse) hasNextLink() bool { - return peclr.NextLink != nil && len(*peclr.NextLink) != 0 -} - -// privateEndpointConnectionListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (peclr PrivateEndpointConnectionListResponse) privateEndpointConnectionListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !peclr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(peclr.NextLink))) -} - -// PrivateEndpointConnectionListResponsePage contains a page of PrivateEndpointConnectionResource values. -type PrivateEndpointConnectionListResponsePage struct { - fn func(context.Context, PrivateEndpointConnectionListResponse) (PrivateEndpointConnectionListResponse, error) - peclr PrivateEndpointConnectionListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *PrivateEndpointConnectionListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/PrivateEndpointConnectionListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.peclr) - if err != nil { - return err - } - page.peclr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *PrivateEndpointConnectionListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page PrivateEndpointConnectionListResponsePage) NotDone() bool { - return !page.peclr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page PrivateEndpointConnectionListResponsePage) Response() PrivateEndpointConnectionListResponse { - return page.peclr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page PrivateEndpointConnectionListResponsePage) Values() []PrivateEndpointConnectionResource { - if page.peclr.IsEmpty() { - return nil - } - return *page.peclr.Value -} - -// Creates a new instance of the PrivateEndpointConnectionListResponsePage type. -func NewPrivateEndpointConnectionListResponsePage(cur PrivateEndpointConnectionListResponse, getNextPage func(context.Context, PrivateEndpointConnectionListResponse) (PrivateEndpointConnectionListResponse, error)) PrivateEndpointConnectionListResponsePage { - return PrivateEndpointConnectionListResponsePage{ - fn: getNextPage, - peclr: cur, - } -} - -// PrivateEndpointConnectionResource private Endpoint Connection ARM resource. -type PrivateEndpointConnectionResource struct { - autorest.Response `json:"-"` - // Properties - Core resource properties - Properties *RemotePrivateEndpointConnection `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for PrivateEndpointConnectionResource. -func (pecr PrivateEndpointConnectionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if pecr.Properties != nil { - objectMap["properties"] = pecr.Properties - } - return json.Marshal(objectMap) -} - -// PrivateLinkConnectionApprovalRequest a request to approve or reject a private endpoint connection -type PrivateLinkConnectionApprovalRequest struct { - PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` - // PrivateEndpoint - The resource of private endpoint. - PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` -} - -// PrivateLinkConnectionApprovalRequestResource private Endpoint Connection Approval ARM resource. -type PrivateLinkConnectionApprovalRequestResource struct { - // Properties - Core resource properties - Properties *PrivateLinkConnectionApprovalRequest `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for PrivateLinkConnectionApprovalRequestResource. -func (plcarr PrivateLinkConnectionApprovalRequestResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if plcarr.Properties != nil { - objectMap["properties"] = plcarr.Properties - } - return json.Marshal(objectMap) -} - -// PrivateLinkConnectionState the state of a private link connection -type PrivateLinkConnectionState struct { - // Status - Status of a private link connection - Status *string `json:"status,omitempty"` - // Description - Description of a private link connection - Description *string `json:"description,omitempty"` - // ActionsRequired - ActionsRequired for a private link connection - ActionsRequired *string `json:"actionsRequired,omitempty"` -} - -// PrivateLinkResource a private link resource -type PrivateLinkResource struct { - // Properties - Core resource properties - Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for PrivateLinkResource. -func (plr PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if plr.Properties != nil { - objectMap["properties"] = plr.Properties - } - return json.Marshal(objectMap) -} - -// PrivateLinkResourceProperties properties of a private link resource -type PrivateLinkResourceProperties struct { - // GroupID - READ-ONLY; GroupId of a private link resource - GroupID *string `json:"groupId,omitempty"` - // RequiredMembers - READ-ONLY; RequiredMembers of a private link resource - RequiredMembers *[]string `json:"requiredMembers,omitempty"` - // RequiredZoneNames - READ-ONLY; RequiredZoneNames of a private link resource - RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` -} - -// MarshalJSON is the custom marshaler for PrivateLinkResourceProperties. -func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// PrivateLinkResourcesWrapper wrapper for a collection of private link resources -type PrivateLinkResourcesWrapper struct { - autorest.Response `json:"-"` - Value *[]PrivateLinkResource `json:"value,omitempty"` -} - -// PurviewConfiguration purview configuration. -type PurviewConfiguration struct { - // PurviewResourceID - Purview resource id. - PurviewResourceID *string `json:"purviewResourceId,omitempty"` -} - -// QueryDataFlowDebugSessionsResponse a list of active debug sessions. -type QueryDataFlowDebugSessionsResponse struct { - autorest.Response `json:"-"` - // Value - Array with all active debug sessions. - Value *[]DataFlowDebugSessionInfo `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// QueryDataFlowDebugSessionsResponseIterator provides access to a complete listing of -// DataFlowDebugSessionInfo values. -type QueryDataFlowDebugSessionsResponseIterator struct { - i int - page QueryDataFlowDebugSessionsResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *QueryDataFlowDebugSessionsResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/QueryDataFlowDebugSessionsResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *QueryDataFlowDebugSessionsResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter QueryDataFlowDebugSessionsResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter QueryDataFlowDebugSessionsResponseIterator) Response() QueryDataFlowDebugSessionsResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter QueryDataFlowDebugSessionsResponseIterator) Value() DataFlowDebugSessionInfo { - if !iter.page.NotDone() { - return DataFlowDebugSessionInfo{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the QueryDataFlowDebugSessionsResponseIterator type. -func NewQueryDataFlowDebugSessionsResponseIterator(page QueryDataFlowDebugSessionsResponsePage) QueryDataFlowDebugSessionsResponseIterator { - return QueryDataFlowDebugSessionsResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (qdfdsr QueryDataFlowDebugSessionsResponse) IsEmpty() bool { - return qdfdsr.Value == nil || len(*qdfdsr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (qdfdsr QueryDataFlowDebugSessionsResponse) hasNextLink() bool { - return qdfdsr.NextLink != nil && len(*qdfdsr.NextLink) != 0 -} - -// queryDataFlowDebugSessionsResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (qdfdsr QueryDataFlowDebugSessionsResponse) queryDataFlowDebugSessionsResponsePreparer(ctx context.Context) (*http.Request, error) { - if !qdfdsr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(qdfdsr.NextLink))) -} - -// QueryDataFlowDebugSessionsResponsePage contains a page of DataFlowDebugSessionInfo values. -type QueryDataFlowDebugSessionsResponsePage struct { - fn func(context.Context, QueryDataFlowDebugSessionsResponse) (QueryDataFlowDebugSessionsResponse, error) - qdfdsr QueryDataFlowDebugSessionsResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *QueryDataFlowDebugSessionsResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/QueryDataFlowDebugSessionsResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.qdfdsr) - if err != nil { - return err - } - page.qdfdsr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *QueryDataFlowDebugSessionsResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page QueryDataFlowDebugSessionsResponsePage) NotDone() bool { - return !page.qdfdsr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page QueryDataFlowDebugSessionsResponsePage) Response() QueryDataFlowDebugSessionsResponse { - return page.qdfdsr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page QueryDataFlowDebugSessionsResponsePage) Values() []DataFlowDebugSessionInfo { - if page.qdfdsr.IsEmpty() { - return nil - } - return *page.qdfdsr.Value -} - -// Creates a new instance of the QueryDataFlowDebugSessionsResponsePage type. -func NewQueryDataFlowDebugSessionsResponsePage(cur QueryDataFlowDebugSessionsResponse, getNextPage func(context.Context, QueryDataFlowDebugSessionsResponse) (QueryDataFlowDebugSessionsResponse, error)) QueryDataFlowDebugSessionsResponsePage { - return QueryDataFlowDebugSessionsResponsePage{ - fn: getNextPage, - qdfdsr: cur, - } -} - -// QuickBooksLinkedService quickBooks server linked service. -type QuickBooksLinkedService struct { - // QuickBooksLinkedServiceTypeProperties - QuickBooks server linked service properties. - *QuickBooksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) MarshalJSON() ([]byte, error) { - qbls.Type = TypeBasicLinkedServiceTypeQuickBooks - objectMap := make(map[string]interface{}) - if qbls.QuickBooksLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = qbls.QuickBooksLinkedServiceTypeProperties - } - if qbls.ConnectVia != nil { - objectMap["connectVia"] = qbls.ConnectVia - } - if qbls.Description != nil { - objectMap["description"] = qbls.Description - } - if qbls.Parameters != nil { - objectMap["parameters"] = qbls.Parameters - } - if qbls.Annotations != nil { - objectMap["annotations"] = qbls.Annotations - } - if qbls.Type != "" { - objectMap["type"] = qbls.Type - } - for k, v := range qbls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return &qbls, true -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for QuickBooksLinkedService. -func (qbls QuickBooksLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &qbls, true -} - -// UnmarshalJSON is the custom unmarshaler for QuickBooksLinkedService struct. -func (qbls *QuickBooksLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var quickBooksLinkedServiceTypeProperties QuickBooksLinkedServiceTypeProperties - err = json.Unmarshal(*v, &quickBooksLinkedServiceTypeProperties) - if err != nil { - return err - } - qbls.QuickBooksLinkedServiceTypeProperties = &quickBooksLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if qbls.AdditionalProperties == nil { - qbls.AdditionalProperties = make(map[string]interface{}) - } - qbls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - qbls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - qbls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - qbls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - qbls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - qbls.Type = typeVar - } - } - } - - return nil -} - -// QuickBooksLinkedServiceTypeProperties quickBooks server linked service properties. -type QuickBooksLinkedServiceTypeProperties struct { - // ConnectionProperties - 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"` - // Endpoint - The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // CompanyID - The company ID of the QuickBooks company to authorize. - CompanyID interface{} `json:"companyId,omitempty"` - // ConsumerKey - The consumer key for OAuth 1.0 authentication. - ConsumerKey interface{} `json:"consumerKey,omitempty"` - // ConsumerSecret - The consumer secret for OAuth 1.0 authentication. - ConsumerSecret BasicSecretBase `json:"consumerSecret,omitempty"` - // AccessToken - The access token for OAuth 1.0 authentication. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // AccessTokenSecret - The access token secret for OAuth 1.0 authentication. - AccessTokenSecret BasicSecretBase `json:"accessTokenSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for QuickBooksLinkedServiceTypeProperties struct. -func (qblstp *QuickBooksLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionProperties": - if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) - if err != nil { - return err - } - qblstp.ConnectionProperties = connectionProperties - } - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - qblstp.Endpoint = endpoint - } - case "companyId": - if v != nil { - var companyID interface{} - err = json.Unmarshal(*v, &companyID) - if err != nil { - return err - } - qblstp.CompanyID = companyID - } - case "consumerKey": - if v != nil { - var consumerKey interface{} - err = json.Unmarshal(*v, &consumerKey) - if err != nil { - return err - } - qblstp.ConsumerKey = consumerKey - } - case "consumerSecret": - if v != nil { - consumerSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - qblstp.ConsumerSecret = consumerSecret - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - qblstp.AccessToken = accessToken - } - case "accessTokenSecret": - if v != nil { - accessTokenSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - qblstp.AccessTokenSecret = accessTokenSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - qblstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - qblstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// QuickBooksObjectDataset quickBooks server dataset. -type QuickBooksObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) MarshalJSON() ([]byte, error) { - qbod.Type = TypeBasicDatasetTypeQuickBooksObject - objectMap := make(map[string]interface{}) - if qbod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = qbod.GenericDatasetTypeProperties - } - if qbod.Description != nil { - objectMap["description"] = qbod.Description - } - if qbod.Structure != nil { - objectMap["structure"] = qbod.Structure - } - if qbod.Schema != nil { - objectMap["schema"] = qbod.Schema - } - if qbod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = qbod.LinkedServiceName - } - if qbod.Parameters != nil { - objectMap["parameters"] = qbod.Parameters - } - if qbod.Annotations != nil { - objectMap["annotations"] = qbod.Annotations - } - if qbod.Folder != nil { - objectMap["folder"] = qbod.Folder - } - if qbod.Type != "" { - objectMap["type"] = qbod.Type - } - for k, v := range qbod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return &qbod, true -} - -// AsPrestoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for QuickBooksObjectDataset. -func (qbod QuickBooksObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &qbod, true -} - -// UnmarshalJSON is the custom unmarshaler for QuickBooksObjectDataset struct. -func (qbod *QuickBooksObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - qbod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if qbod.AdditionalProperties == nil { - qbod.AdditionalProperties = make(map[string]interface{}) - } - qbod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - qbod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - qbod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - qbod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - qbod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - qbod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - qbod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - qbod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - qbod.Type = typeVar - } - } - } - - return nil -} - -// QuickBooksSource a copy activity QuickBooks server source. -type QuickBooksSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for QuickBooksSource. -func (qbs QuickBooksSource) MarshalJSON() ([]byte, error) { - qbs.Type = TypeBasicCopySourceTypeQuickBooksSource - objectMap := make(map[string]interface{}) - if qbs.Query != nil { - objectMap["query"] = qbs.Query - } - if qbs.QueryTimeout != nil { - objectMap["queryTimeout"] = qbs.QueryTimeout - } - if qbs.AdditionalColumns != nil { - objectMap["additionalColumns"] = qbs.AdditionalColumns - } - if qbs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = qbs.SourceRetryCount - } - if qbs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = qbs.SourceRetryWait - } - if qbs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = qbs.MaxConcurrentConnections - } - if qbs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = qbs.DisableMetricsCollection - } - if qbs.Type != "" { - objectMap["type"] = qbs.Type - } - for k, v := range qbs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return &qbs, true -} - -// AsPrestoSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &qbs, true -} - -// AsBinarySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for QuickBooksSource. -func (qbs QuickBooksSource) AsBasicCopySource() (BasicCopySource, bool) { - return &qbs, true -} - -// UnmarshalJSON is the custom unmarshaler for QuickBooksSource struct. -func (qbs *QuickBooksSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - qbs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - qbs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - qbs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if qbs.AdditionalProperties == nil { - qbs.AdditionalProperties = make(map[string]interface{}) - } - qbs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - qbs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - qbs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - qbs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - qbs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - qbs.Type = typeVar - } - } - } - - return nil -} - -// QuickbaseLinkedService linked service for Quickbase. -type QuickbaseLinkedService struct { - // QuickbaseLinkedServiceTypeProperties - Quickbase linked service properties. - *QuickbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) MarshalJSON() ([]byte, error) { - qls.Type = TypeBasicLinkedServiceTypeQuickbase - objectMap := make(map[string]interface{}) - if qls.QuickbaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = qls.QuickbaseLinkedServiceTypeProperties - } - if qls.ConnectVia != nil { - objectMap["connectVia"] = qls.ConnectVia - } - if qls.Description != nil { - objectMap["description"] = qls.Description - } - if qls.Parameters != nil { - objectMap["parameters"] = qls.Parameters - } - if qls.Annotations != nil { - objectMap["annotations"] = qls.Annotations - } - if qls.Type != "" { - objectMap["type"] = qls.Type - } - for k, v := range qls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return &qls, true -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for QuickbaseLinkedService. -func (qls QuickbaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &qls, true -} - -// UnmarshalJSON is the custom unmarshaler for QuickbaseLinkedService struct. -func (qls *QuickbaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var quickbaseLinkedServiceTypeProperties QuickbaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &quickbaseLinkedServiceTypeProperties) - if err != nil { - return err - } - qls.QuickbaseLinkedServiceTypeProperties = &quickbaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if qls.AdditionalProperties == nil { - qls.AdditionalProperties = make(map[string]interface{}) - } - qls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - qls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - qls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - qls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - qls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - qls.Type = typeVar - } - } - } - - return nil -} - -// QuickbaseLinkedServiceTypeProperties quickbase linked service type properties. -type QuickbaseLinkedServiceTypeProperties struct { - // URL - The url to connect Quickbase source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // UserToken - The user token for the Quickbase source. - UserToken BasicSecretBase `json:"userToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for QuickbaseLinkedServiceTypeProperties struct. -func (qlstp *QuickbaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - qlstp.URL = URL - } - case "userToken": - if v != nil { - userToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - qlstp.UserToken = userToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - qlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// RecurrenceSchedule the recurrence schedule. -type RecurrenceSchedule struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Minutes - The minutes. - Minutes *[]int32 `json:"minutes,omitempty"` - // Hours - The hours. - Hours *[]int32 `json:"hours,omitempty"` - // WeekDays - The days of the week. - WeekDays *[]DaysOfWeek `json:"weekDays,omitempty"` - // MonthDays - The month days. - MonthDays *[]int32 `json:"monthDays,omitempty"` - // MonthlyOccurrences - The monthly occurrences. - MonthlyOccurrences *[]RecurrenceScheduleOccurrence `json:"monthlyOccurrences,omitempty"` -} - -// MarshalJSON is the custom marshaler for RecurrenceSchedule. -func (rs RecurrenceSchedule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rs.Minutes != nil { - objectMap["minutes"] = rs.Minutes - } - if rs.Hours != nil { - objectMap["hours"] = rs.Hours - } - if rs.WeekDays != nil { - objectMap["weekDays"] = rs.WeekDays - } - if rs.MonthDays != nil { - objectMap["monthDays"] = rs.MonthDays - } - if rs.MonthlyOccurrences != nil { - objectMap["monthlyOccurrences"] = rs.MonthlyOccurrences - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for RecurrenceSchedule struct. -func (rs *RecurrenceSchedule) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rs.AdditionalProperties == nil { - rs.AdditionalProperties = make(map[string]interface{}) - } - rs.AdditionalProperties[k] = additionalProperties - } - case "minutes": - if v != nil { - var minutes []int32 - err = json.Unmarshal(*v, &minutes) - if err != nil { - return err - } - rs.Minutes = &minutes - } - case "hours": - if v != nil { - var hours []int32 - err = json.Unmarshal(*v, &hours) - if err != nil { - return err - } - rs.Hours = &hours - } - case "weekDays": - if v != nil { - var weekDays []DaysOfWeek - err = json.Unmarshal(*v, &weekDays) - if err != nil { - return err - } - rs.WeekDays = &weekDays - } - case "monthDays": - if v != nil { - var monthDays []int32 - err = json.Unmarshal(*v, &monthDays) - if err != nil { - return err - } - rs.MonthDays = &monthDays - } - case "monthlyOccurrences": - if v != nil { - var monthlyOccurrences []RecurrenceScheduleOccurrence - err = json.Unmarshal(*v, &monthlyOccurrences) - if err != nil { - return err - } - rs.MonthlyOccurrences = &monthlyOccurrences - } - } - } - - return nil -} - -// RecurrenceScheduleOccurrence the recurrence schedule occurrence. -type RecurrenceScheduleOccurrence struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Day - The day of the week. Possible values include: 'DayOfWeekSunday', 'DayOfWeekMonday', 'DayOfWeekTuesday', 'DayOfWeekWednesday', 'DayOfWeekThursday', 'DayOfWeekFriday', 'DayOfWeekSaturday' - Day DayOfWeek `json:"day,omitempty"` - // Occurrence - The occurrence. - Occurrence *int32 `json:"occurrence,omitempty"` -} - -// MarshalJSON is the custom marshaler for RecurrenceScheduleOccurrence. -func (rso RecurrenceScheduleOccurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rso.Day != "" { - objectMap["day"] = rso.Day - } - if rso.Occurrence != nil { - objectMap["occurrence"] = rso.Occurrence - } - for k, v := range rso.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for RecurrenceScheduleOccurrence struct. -func (rso *RecurrenceScheduleOccurrence) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rso.AdditionalProperties == nil { - rso.AdditionalProperties = make(map[string]interface{}) - } - rso.AdditionalProperties[k] = additionalProperties - } - case "day": - if v != nil { - var day DayOfWeek - err = json.Unmarshal(*v, &day) - if err != nil { - return err - } - rso.Day = day - } - case "occurrence": - if v != nil { - var occurrence int32 - err = json.Unmarshal(*v, &occurrence) - if err != nil { - return err - } - rso.Occurrence = &occurrence - } - } - } - - return nil -} - -// RedirectIncompatibleRowSettings redirect incompatible row settings -type RedirectIncompatibleRowSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // LinkedServiceName - 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"` - // Path - The path for storing the redirect incompatible row data. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// MarshalJSON is the custom marshaler for RedirectIncompatibleRowSettings. -func (rirs RedirectIncompatibleRowSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rirs.LinkedServiceName != nil { - objectMap["linkedServiceName"] = rirs.LinkedServiceName - } - if rirs.Path != nil { - objectMap["path"] = rirs.Path - } - for k, v := range rirs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for RedirectIncompatibleRowSettings struct. -func (rirs *RedirectIncompatibleRowSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rirs.AdditionalProperties == nil { - rirs.AdditionalProperties = make(map[string]interface{}) - } - rirs.AdditionalProperties[k] = additionalProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName interface{} - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - rirs.LinkedServiceName = linkedServiceName - } - case "path": - if v != nil { - var pathVar interface{} - err = json.Unmarshal(*v, &pathVar) - if err != nil { - return err - } - rirs.Path = pathVar - } - } - } - - return nil -} - -// RedshiftUnloadSettings 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. -type RedshiftUnloadSettings struct { - // S3LinkedServiceName - 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"` - // BucketName - 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"` -} - -// RelationalSource a copy activity source for various relational databases. -type RelationalSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RelationalSource. -func (rs RelationalSource) MarshalJSON() ([]byte, error) { - rs.Type = TypeBasicCopySourceTypeRelationalSource - objectMap := make(map[string]interface{}) - if rs.Query != nil { - objectMap["query"] = rs.Query - } - if rs.AdditionalColumns != nil { - objectMap["additionalColumns"] = rs.AdditionalColumns - } - if rs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = rs.SourceRetryCount - } - if rs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = rs.SourceRetryWait - } - if rs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections - } - if rs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection - } - if rs.Type != "" { - objectMap["type"] = rs.Type - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsRelationalSource() (*RelationalSource, bool) { - return &rs, true -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for RelationalSource. -func (rs RelationalSource) AsBasicCopySource() (BasicCopySource, bool) { - return &rs, true -} - -// UnmarshalJSON is the custom unmarshaler for RelationalSource struct. -func (rs *RelationalSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - rs.Query = query - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - rs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rs.AdditionalProperties == nil { - rs.AdditionalProperties = make(map[string]interface{}) - } - rs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - rs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - rs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - rs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - rs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rs.Type = typeVar - } - } - } - - return nil -} - -// RelationalTableDataset the relational table dataset. -type RelationalTableDataset struct { - // RelationalTableDatasetTypeProperties - Relational table dataset properties. - *RelationalTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RelationalTableDataset. -func (rtd RelationalTableDataset) MarshalJSON() ([]byte, error) { - rtd.Type = TypeBasicDatasetTypeRelationalTable - objectMap := make(map[string]interface{}) - if rtd.RelationalTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = rtd.RelationalTableDatasetTypeProperties - } - if rtd.Description != nil { - objectMap["description"] = rtd.Description - } - if rtd.Structure != nil { - objectMap["structure"] = rtd.Structure - } - if rtd.Schema != nil { - objectMap["schema"] = rtd.Schema - } - if rtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = rtd.LinkedServiceName - } - if rtd.Parameters != nil { - objectMap["parameters"] = rtd.Parameters - } - if rtd.Annotations != nil { - objectMap["annotations"] = rtd.Annotations - } - if rtd.Folder != nil { - objectMap["folder"] = rtd.Folder - } - if rtd.Type != "" { - objectMap["type"] = rtd.Type - } - for k, v := range rtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return &rtd, true -} - -// AsDb2TableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for RelationalTableDataset. -func (rtd RelationalTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &rtd, true -} - -// UnmarshalJSON is the custom unmarshaler for RelationalTableDataset struct. -func (rtd *RelationalTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var relationalTableDatasetTypeProperties RelationalTableDatasetTypeProperties - err = json.Unmarshal(*v, &relationalTableDatasetTypeProperties) - if err != nil { - return err - } - rtd.RelationalTableDatasetTypeProperties = &relationalTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rtd.AdditionalProperties == nil { - rtd.AdditionalProperties = make(map[string]interface{}) - } - rtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - rtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - rtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - rtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - rtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rtd.Type = typeVar - } - } - } - - return nil -} - -// RelationalTableDatasetTypeProperties relational table dataset properties. -type RelationalTableDatasetTypeProperties struct { - // TableName - The relational table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// RemotePrivateEndpointConnection a remote private endpoint connection -type RemotePrivateEndpointConnection struct { - // ProvisioningState - READ-ONLY - ProvisioningState *string `json:"provisioningState,omitempty"` - // PrivateEndpoint - PrivateEndpoint of a remote private endpoint connection - PrivateEndpoint *ArmIDWrapper `json:"privateEndpoint,omitempty"` - PrivateLinkServiceConnectionState *PrivateLinkConnectionState `json:"privateLinkServiceConnectionState,omitempty"` -} - -// MarshalJSON is the custom marshaler for RemotePrivateEndpointConnection. -func (rpec RemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rpec.PrivateEndpoint != nil { - objectMap["privateEndpoint"] = rpec.PrivateEndpoint - } - if rpec.PrivateLinkServiceConnectionState != nil { - objectMap["privateLinkServiceConnectionState"] = rpec.PrivateLinkServiceConnectionState - } - return json.Marshal(objectMap) -} - -// RerunTumblingWindowTrigger trigger that schedules pipeline reruns for all fixed time interval windows -// from a requested start time to requested end time. -type RerunTumblingWindowTrigger struct { - // RerunTumblingWindowTriggerTypeProperties - Rerun Trigger properties. - *RerunTumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) MarshalJSON() ([]byte, error) { - rtwt.Type = TypeBasicTriggerTypeRerunTumblingWindowTrigger - objectMap := make(map[string]interface{}) - if rtwt.RerunTumblingWindowTriggerTypeProperties != nil { - objectMap["typeProperties"] = rtwt.RerunTumblingWindowTriggerTypeProperties - } - if rtwt.Description != nil { - objectMap["description"] = rtwt.Description - } - if rtwt.Annotations != nil { - objectMap["annotations"] = rtwt.Annotations - } - if rtwt.Type != "" { - objectMap["type"] = rtwt.Type - } - for k, v := range rtwt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return nil, false -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return &rtwt, true -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return nil, false -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return nil, false -} - -// AsBlobTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// AsScheduleTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return nil, false -} - -// AsTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// AsBasicTrigger is the BasicTrigger implementation for RerunTumblingWindowTrigger. -func (rtwt RerunTumblingWindowTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &rtwt, true -} - -// UnmarshalJSON is the custom unmarshaler for RerunTumblingWindowTrigger struct. -func (rtwt *RerunTumblingWindowTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var rerunTumblingWindowTriggerTypeProperties RerunTumblingWindowTriggerTypeProperties - err = json.Unmarshal(*v, &rerunTumblingWindowTriggerTypeProperties) - if err != nil { - return err - } - rtwt.RerunTumblingWindowTriggerTypeProperties = &rerunTumblingWindowTriggerTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rtwt.AdditionalProperties == nil { - rtwt.AdditionalProperties = make(map[string]interface{}) - } - rtwt.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rtwt.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - rtwt.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rtwt.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rtwt.Type = typeVar - } - } - } - - return nil -} - -// RerunTumblingWindowTriggerTypeProperties rerun Trigger properties. -type RerunTumblingWindowTriggerTypeProperties struct { - // ParentTrigger - The parent trigger reference. - ParentTrigger interface{} `json:"parentTrigger,omitempty"` - // RequestedStartTime - The start time for the time period for which restatement is initiated. Only UTC time is currently supported. - RequestedStartTime *date.Time `json:"requestedStartTime,omitempty"` - // RequestedEndTime - The end time for the time period for which restatement is initiated. Only UTC time is currently supported. - RequestedEndTime *date.Time `json:"requestedEndTime,omitempty"` - // RerunConcurrency - 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 { - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Location - The resource location. - Location *string `json:"location,omitempty"` - // Tags - The resource tags. - Tags map[string]*string `json:"tags"` - // ETag - READ-ONLY; Etag identifies change in the resource. - ETag *string `json:"eTag,omitempty"` -} - -// MarshalJSON is the custom marshaler for Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if r.Location != nil { - objectMap["location"] = r.Location - } - if r.Tags != nil { - objectMap["tags"] = r.Tags - } - return json.Marshal(objectMap) -} - -// ResponsysLinkedService responsys linked service. -type ResponsysLinkedService struct { - // ResponsysLinkedServiceTypeProperties - Responsys linked service properties. - *ResponsysLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ResponsysLinkedService. -func (rls ResponsysLinkedService) MarshalJSON() ([]byte, error) { - rls.Type = TypeBasicLinkedServiceTypeResponsys - objectMap := make(map[string]interface{}) - if rls.ResponsysLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = rls.ResponsysLinkedServiceTypeProperties - } - if rls.ConnectVia != nil { - objectMap["connectVia"] = rls.ConnectVia - } - if rls.Description != nil { - objectMap["description"] = rls.Description - } - if rls.Parameters != nil { - objectMap["parameters"] = rls.Parameters - } - if rls.Annotations != nil { - objectMap["annotations"] = rls.Annotations - } - if rls.Type != "" { - objectMap["type"] = rls.Type - } - for k, v := range rls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return &rls, true -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for ResponsysLinkedService. -func (rls ResponsysLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &rls, true -} - -// UnmarshalJSON is the custom unmarshaler for ResponsysLinkedService struct. -func (rls *ResponsysLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var responsysLinkedServiceTypeProperties ResponsysLinkedServiceTypeProperties - err = json.Unmarshal(*v, &responsysLinkedServiceTypeProperties) - if err != nil { - return err - } - rls.ResponsysLinkedServiceTypeProperties = &responsysLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rls.AdditionalProperties == nil { - rls.AdditionalProperties = make(map[string]interface{}) - } - rls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - rls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rls.Type = typeVar - } - } - } - - return nil -} - -// ResponsysLinkedServiceTypeProperties responsys linked service properties. -type ResponsysLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the Responsys server. - Endpoint interface{} `json:"endpoint,omitempty"` - // ClientID - The client ID associated with the Responsys application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with the Responsys application. Type: string (or Expression with resultType string). - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - 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"` - // UseHostVerification - 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"` - // UsePeerVerification - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ResponsysLinkedServiceTypeProperties struct. -func (rlstp *ResponsysLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - rlstp.Endpoint = endpoint - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - rlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - rlstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - rlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - rlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - rlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - rlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// ResponsysObjectDataset responsys dataset. -type ResponsysObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) MarshalJSON() ([]byte, error) { - rod.Type = TypeBasicDatasetTypeResponsysObject - objectMap := make(map[string]interface{}) - if rod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = rod.GenericDatasetTypeProperties - } - if rod.Description != nil { - objectMap["description"] = rod.Description - } - if rod.Structure != nil { - objectMap["structure"] = rod.Structure - } - if rod.Schema != nil { - objectMap["schema"] = rod.Schema - } - if rod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = rod.LinkedServiceName - } - if rod.Parameters != nil { - objectMap["parameters"] = rod.Parameters - } - if rod.Annotations != nil { - objectMap["annotations"] = rod.Annotations - } - if rod.Folder != nil { - objectMap["folder"] = rod.Folder - } - if rod.Type != "" { - objectMap["type"] = rod.Type - } - for k, v := range rod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return &rod, true -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ResponsysObjectDataset. -func (rod ResponsysObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &rod, true -} - -// UnmarshalJSON is the custom unmarshaler for ResponsysObjectDataset struct. -func (rod *ResponsysObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - rod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rod.AdditionalProperties == nil { - rod.AdditionalProperties = make(map[string]interface{}) - } - rod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - rod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - rod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - rod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - rod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rod.Type = typeVar - } - } - } - - return nil -} - -// ResponsysSource a copy activity Responsys source. -type ResponsysSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ResponsysSource. -func (rs ResponsysSource) MarshalJSON() ([]byte, error) { - rs.Type = TypeBasicCopySourceTypeResponsysSource - objectMap := make(map[string]interface{}) - if rs.Query != nil { - objectMap["query"] = rs.Query - } - if rs.QueryTimeout != nil { - objectMap["queryTimeout"] = rs.QueryTimeout - } - if rs.AdditionalColumns != nil { - objectMap["additionalColumns"] = rs.AdditionalColumns - } - if rs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = rs.SourceRetryCount - } - if rs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = rs.SourceRetryWait - } - if rs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections - } - if rs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection - } - if rs.Type != "" { - objectMap["type"] = rs.Type - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsResponsysSource() (*ResponsysSource, bool) { - return &rs, true -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &rs, true -} - -// AsBinarySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ResponsysSource. -func (rs ResponsysSource) AsBasicCopySource() (BasicCopySource, bool) { - return &rs, true -} - -// UnmarshalJSON is the custom unmarshaler for ResponsysSource struct. -func (rs *ResponsysSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - rs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - rs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - rs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rs.AdditionalProperties == nil { - rs.AdditionalProperties = make(map[string]interface{}) - } - rs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - rs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - rs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - rs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - rs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rs.Type = typeVar - } - } - } - - return nil -} - -// RestResourceDataset a Rest service dataset. -type RestResourceDataset struct { - // RestResourceDatasetTypeProperties - Properties specific to this dataset type. - *RestResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RestResourceDataset. -func (rrd RestResourceDataset) MarshalJSON() ([]byte, error) { - rrd.Type = TypeBasicDatasetTypeRestResource - objectMap := make(map[string]interface{}) - if rrd.RestResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = rrd.RestResourceDatasetTypeProperties - } - if rrd.Description != nil { - objectMap["description"] = rrd.Description - } - if rrd.Structure != nil { - objectMap["structure"] = rrd.Structure - } - if rrd.Schema != nil { - objectMap["schema"] = rrd.Schema - } - if rrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = rrd.LinkedServiceName - } - if rrd.Parameters != nil { - objectMap["parameters"] = rrd.Parameters - } - if rrd.Annotations != nil { - objectMap["annotations"] = rrd.Annotations - } - if rrd.Folder != nil { - objectMap["folder"] = rrd.Folder - } - if rrd.Type != "" { - objectMap["type"] = rrd.Type - } - for k, v := range rrd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return &rrd, true -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for RestResourceDataset. -func (rrd RestResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &rrd, true -} - -// UnmarshalJSON is the custom unmarshaler for RestResourceDataset struct. -func (rrd *RestResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var restResourceDatasetTypeProperties RestResourceDatasetTypeProperties - err = json.Unmarshal(*v, &restResourceDatasetTypeProperties) - if err != nil { - return err - } - rrd.RestResourceDatasetTypeProperties = &restResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rrd.AdditionalProperties == nil { - rrd.AdditionalProperties = make(map[string]interface{}) - } - rrd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rrd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - rrd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - rrd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - rrd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rrd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rrd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - rrd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rrd.Type = typeVar - } - } - } - - return nil -} - -// RestResourceDatasetTypeProperties properties specific to this dataset type. -type RestResourceDatasetTypeProperties struct { - // RelativeURL - The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). - RelativeURL interface{} `json:"relativeUrl,omitempty"` - // RequestMethod - 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"` - // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` - // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. - AdditionalHeaders map[string]interface{} `json:"additionalHeaders"` - // PaginationRules - The pagination rules to compose next page requests. - PaginationRules map[string]interface{} `json:"paginationRules"` -} - -// MarshalJSON is the custom marshaler for RestResourceDatasetTypeProperties. -func (rrdtp RestResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if rrdtp.RelativeURL != nil { - objectMap["relativeUrl"] = rrdtp.RelativeURL - } - if rrdtp.RequestMethod != nil { - objectMap["requestMethod"] = rrdtp.RequestMethod - } - if rrdtp.RequestBody != nil { - objectMap["requestBody"] = rrdtp.RequestBody - } - if rrdtp.AdditionalHeaders != nil { - objectMap["additionalHeaders"] = rrdtp.AdditionalHeaders - } - if rrdtp.PaginationRules != nil { - objectMap["paginationRules"] = rrdtp.PaginationRules - } - return json.Marshal(objectMap) -} - -// RestServiceLinkedService rest Service linked service. -type RestServiceLinkedService struct { - // RestServiceLinkedServiceTypeProperties - Rest Service linked service properties. - *RestServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RestServiceLinkedService. -func (rsls RestServiceLinkedService) MarshalJSON() ([]byte, error) { - rsls.Type = TypeBasicLinkedServiceTypeRestService - objectMap := make(map[string]interface{}) - if rsls.RestServiceLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = rsls.RestServiceLinkedServiceTypeProperties - } - if rsls.ConnectVia != nil { - objectMap["connectVia"] = rsls.ConnectVia - } - if rsls.Description != nil { - objectMap["description"] = rsls.Description - } - if rsls.Parameters != nil { - objectMap["parameters"] = rsls.Parameters - } - if rsls.Annotations != nil { - objectMap["annotations"] = rsls.Annotations - } - if rsls.Type != "" { - objectMap["type"] = rsls.Type - } - for k, v := range rsls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return &rsls, true -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for RestServiceLinkedService. -func (rsls RestServiceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &rsls, true -} - -// UnmarshalJSON is the custom unmarshaler for RestServiceLinkedService struct. -func (rsls *RestServiceLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var restServiceLinkedServiceTypeProperties RestServiceLinkedServiceTypeProperties - err = json.Unmarshal(*v, &restServiceLinkedServiceTypeProperties) - if err != nil { - return err - } - rsls.RestServiceLinkedServiceTypeProperties = &restServiceLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rsls.AdditionalProperties == nil { - rsls.AdditionalProperties = make(map[string]interface{}) - } - rsls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - rsls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - rsls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - rsls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - rsls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rsls.Type = typeVar - } - } - } - - return nil -} - -// RestServiceLinkedServiceTypeProperties rest Service linked service properties. -type RestServiceLinkedServiceTypeProperties struct { - // URL - The base URL of the REST service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // EnableServerCertificateValidation - 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"` - // AuthenticationType - Type of authentication used to connect to the REST service. Possible values include: 'RestServiceAuthenticationTypeAnonymous', 'RestServiceAuthenticationTypeBasic', 'RestServiceAuthenticationTypeAadServicePrincipal', 'RestServiceAuthenticationTypeManagedServiceIdentity', 'RestServiceAuthenticationTypeOAuth2ClientCredential' - AuthenticationType RestServiceAuthenticationType `json:"authenticationType,omitempty"` - // UserName - The user name used in Basic authentication type. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The password used in Basic authentication type. - Password BasicSecretBase `json:"password,omitempty"` - // AuthHeaders - 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"` - // ServicePrincipalID - The application's client ID used in AadServicePrincipal authentication type. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The application's key used in AadServicePrincipal authentication type. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` - // AzureCloudType - 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"` - // AadResourceID - The resource you are requesting authorization to use. Type: string (or Expression with resultType string). - AadResourceID interface{} `json:"aadResourceId,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` - // ClientID - The client ID associated with your application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with your application. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // TokenEndpoint - The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string). - TokenEndpoint interface{} `json:"tokenEndpoint,omitempty"` - // Resource - The target service or resource to which the access will be requested. Type: string (or Expression with resultType string). - Resource interface{} `json:"resource,omitempty"` - // Scope - 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"` -} - -// UnmarshalJSON is the custom unmarshaler for RestServiceLinkedServiceTypeProperties struct. -func (rslstp *RestServiceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - rslstp.URL = URL - } - case "enableServerCertificateValidation": - if v != nil { - var enableServerCertificateValidation interface{} - err = json.Unmarshal(*v, &enableServerCertificateValidation) - if err != nil { - return err - } - rslstp.EnableServerCertificateValidation = enableServerCertificateValidation - } - case "authenticationType": - if v != nil { - var authenticationType RestServiceAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - rslstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - rslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - rslstp.Password = password - } - case "authHeaders": - if v != nil { - var authHeaders interface{} - err = json.Unmarshal(*v, &authHeaders) - if err != nil { - return err - } - rslstp.AuthHeaders = authHeaders - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - rslstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - rslstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - rslstp.Tenant = tenant - } - case "azureCloudType": - if v != nil { - var azureCloudType interface{} - err = json.Unmarshal(*v, &azureCloudType) - if err != nil { - return err - } - rslstp.AzureCloudType = azureCloudType - } - case "aadResourceId": - if v != nil { - var aadResourceID interface{} - err = json.Unmarshal(*v, &aadResourceID) - if err != nil { - return err - } - rslstp.AadResourceID = aadResourceID - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - rslstp.EncryptedCredential = &encryptedCredential - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - rslstp.Credential = &credential - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - rslstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - rslstp.ClientSecret = clientSecret - } - case "tokenEndpoint": - if v != nil { - var tokenEndpoint interface{} - err = json.Unmarshal(*v, &tokenEndpoint) - if err != nil { - return err - } - rslstp.TokenEndpoint = tokenEndpoint - } - case "resource": - if v != nil { - var resource interface{} - err = json.Unmarshal(*v, &resource) - if err != nil { - return err - } - rslstp.Resource = resource - } - case "scope": - if v != nil { - var scope interface{} - err = json.Unmarshal(*v, &scope) - if err != nil { - return err - } - rslstp.Scope = scope - } - } - } - - return nil -} - -// RestSink a copy activity Rest service Sink. -type RestSink struct { - // RequestMethod - 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"` - // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: key value pairs (value should be string type). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` - // HTTPRequestTimeout - 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"` - // RequestInterval - The time to await before sending next request, in milliseconds - RequestInterval interface{} `json:"requestInterval,omitempty"` - // HTTPCompressionType - Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported option is Gzip. Type: string (or Expression with resultType string). - HTTPCompressionType interface{} `json:"httpCompressionType,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RestSink. -func (rs RestSink) MarshalJSON() ([]byte, error) { - rs.Type = TypeBasicCopySinkTypeRestSink - objectMap := make(map[string]interface{}) - if rs.RequestMethod != nil { - objectMap["requestMethod"] = rs.RequestMethod - } - if rs.AdditionalHeaders != nil { - objectMap["additionalHeaders"] = rs.AdditionalHeaders - } - if rs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = rs.HTTPRequestTimeout - } - if rs.RequestInterval != nil { - objectMap["requestInterval"] = rs.RequestInterval - } - if rs.HTTPCompressionType != nil { - objectMap["httpCompressionType"] = rs.HTTPCompressionType - } - if rs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = rs.WriteBatchSize - } - if rs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = rs.WriteBatchTimeout - } - if rs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = rs.SinkRetryCount - } - if rs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = rs.SinkRetryWait - } - if rs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections - } - if rs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection - } - if rs.Type != "" { - objectMap["type"] = rs.Type - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsRestSink() (*RestSink, bool) { - return &rs, true -} - -// AsOrcSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for RestSink. -func (rs RestSink) AsBasicCopySink() (BasicCopySink, bool) { - return &rs, true -} - -// UnmarshalJSON is the custom unmarshaler for RestSink struct. -func (rs *RestSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "requestMethod": - if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) - if err != nil { - return err - } - rs.RequestMethod = requestMethod - } - case "additionalHeaders": - if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) - if err != nil { - return err - } - rs.AdditionalHeaders = additionalHeaders - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - rs.HTTPRequestTimeout = HTTPRequestTimeout - } - case "requestInterval": - if v != nil { - var requestInterval interface{} - err = json.Unmarshal(*v, &requestInterval) - if err != nil { - return err - } - rs.RequestInterval = requestInterval - } - case "httpCompressionType": - if v != nil { - var HTTPCompressionType interface{} - err = json.Unmarshal(*v, &HTTPCompressionType) - if err != nil { - return err - } - rs.HTTPCompressionType = HTTPCompressionType - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rs.AdditionalProperties == nil { - rs.AdditionalProperties = make(map[string]interface{}) - } - rs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - rs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - rs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - rs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - rs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - rs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - rs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rs.Type = typeVar - } - } - } - - return nil -} - -// RestSource a copy activity Rest service source. -type RestSource struct { - // RequestMethod - 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"` - // RequestBody - The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` - // AdditionalHeaders - The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` - // PaginationRules - The pagination rules to compose next page requests. Type: string (or Expression with resultType string). - PaginationRules interface{} `json:"paginationRules,omitempty"` - // HTTPRequestTimeout - 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"` - // RequestInterval - The time to await before sending next page request. - RequestInterval interface{} `json:"requestInterval,omitempty"` - // AdditionalColumns - Specifies the additional columns to be added to source data. Type: key value pairs (value should be string type). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for RestSource. -func (rs RestSource) MarshalJSON() ([]byte, error) { - rs.Type = TypeBasicCopySourceTypeRestSource - objectMap := make(map[string]interface{}) - if rs.RequestMethod != nil { - objectMap["requestMethod"] = rs.RequestMethod - } - if rs.RequestBody != nil { - objectMap["requestBody"] = rs.RequestBody - } - if rs.AdditionalHeaders != nil { - objectMap["additionalHeaders"] = rs.AdditionalHeaders - } - if rs.PaginationRules != nil { - objectMap["paginationRules"] = rs.PaginationRules - } - if rs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = rs.HTTPRequestTimeout - } - if rs.RequestInterval != nil { - objectMap["requestInterval"] = rs.RequestInterval - } - if rs.AdditionalColumns != nil { - objectMap["additionalColumns"] = rs.AdditionalColumns - } - if rs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = rs.SourceRetryCount - } - if rs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = rs.SourceRetryWait - } - if rs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = rs.MaxConcurrentConnections - } - if rs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = rs.DisableMetricsCollection - } - if rs.Type != "" { - objectMap["type"] = rs.Type - } - for k, v := range rs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsRestSource() (*RestSource, bool) { - return &rs, true -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for RestSource. -func (rs RestSource) AsBasicCopySource() (BasicCopySource, bool) { - return &rs, true -} - -// UnmarshalJSON is the custom unmarshaler for RestSource struct. -func (rs *RestSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "requestMethod": - if v != nil { - var requestMethod interface{} - err = json.Unmarshal(*v, &requestMethod) - if err != nil { - return err - } - rs.RequestMethod = requestMethod - } - case "requestBody": - if v != nil { - var requestBody interface{} - err = json.Unmarshal(*v, &requestBody) - if err != nil { - return err - } - rs.RequestBody = requestBody - } - case "additionalHeaders": - if v != nil { - var additionalHeaders interface{} - err = json.Unmarshal(*v, &additionalHeaders) - if err != nil { - return err - } - rs.AdditionalHeaders = additionalHeaders - } - case "paginationRules": - if v != nil { - var paginationRules interface{} - err = json.Unmarshal(*v, &paginationRules) - if err != nil { - return err - } - rs.PaginationRules = paginationRules - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - rs.HTTPRequestTimeout = HTTPRequestTimeout - } - case "requestInterval": - if v != nil { - var requestInterval interface{} - err = json.Unmarshal(*v, &requestInterval) - if err != nil { - return err - } - rs.RequestInterval = requestInterval - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - rs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if rs.AdditionalProperties == nil { - rs.AdditionalProperties = make(map[string]interface{}) - } - rs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - rs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - rs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - rs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - rs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - rs.Type = typeVar - } - } - } - - return nil -} - -// RetryPolicy execution policy for an activity. -type RetryPolicy struct { - // Count - Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Count interface{} `json:"count,omitempty"` - // IntervalInSeconds - Interval between retries in seconds. Default is 30. - IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` -} - -// RunFilterParameters query parameters for listing runs. -type RunFilterParameters struct { - // ContinuationToken - The continuation token for getting the next page of results. Null for first page. - ContinuationToken *string `json:"continuationToken,omitempty"` - // LastUpdatedAfter - The time at or after which the run event was updated in 'ISO 8601' format. - LastUpdatedAfter *date.Time `json:"lastUpdatedAfter,omitempty"` - // LastUpdatedBefore - The time at or before which the run event was updated in 'ISO 8601' format. - LastUpdatedBefore *date.Time `json:"lastUpdatedBefore,omitempty"` - // Filters - List of filters. - Filters *[]RunQueryFilter `json:"filters,omitempty"` - // OrderBy - List of OrderBy option. - OrderBy *[]RunQueryOrderBy `json:"orderBy,omitempty"` -} - -// RunQueryFilter query filter option for listing runs. -type RunQueryFilter struct { - // Operand - 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. Possible values include: 'RunQueryFilterOperandPipelineName', 'RunQueryFilterOperandStatus', 'RunQueryFilterOperandRunStart', 'RunQueryFilterOperandRunEnd', 'RunQueryFilterOperandActivityName', 'RunQueryFilterOperandActivityRunStart', 'RunQueryFilterOperandActivityRunEnd', 'RunQueryFilterOperandActivityType', 'RunQueryFilterOperandTriggerName', 'RunQueryFilterOperandTriggerRunTimestamp', 'RunQueryFilterOperandRunGroupID', 'RunQueryFilterOperandLatestOnly' - Operand RunQueryFilterOperand `json:"operand,omitempty"` - // Operator - Operator to be used for filter. Possible values include: 'RunQueryFilterOperatorEquals', 'RunQueryFilterOperatorNotEquals', 'RunQueryFilterOperatorIn', 'RunQueryFilterOperatorNotIn' - Operator RunQueryFilterOperator `json:"operator,omitempty"` - // Values - List of filter values. - Values *[]string `json:"values,omitempty"` -} - -// RunQueryOrderBy an object to provide order by options for listing runs. -type RunQueryOrderBy struct { - // OrderBy - 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. Possible values include: 'RunQueryOrderByFieldRunStart', 'RunQueryOrderByFieldRunEnd', 'RunQueryOrderByFieldPipelineName', 'RunQueryOrderByFieldStatus', 'RunQueryOrderByFieldActivityName', 'RunQueryOrderByFieldActivityRunStart', 'RunQueryOrderByFieldActivityRunEnd', 'RunQueryOrderByFieldTriggerName', 'RunQueryOrderByFieldTriggerRunTimestamp' - OrderBy RunQueryOrderByField `json:"orderBy,omitempty"` - // Order - Sorting order of the parameter. Possible values include: 'RunQueryOrderASC', 'RunQueryOrderDESC' - Order RunQueryOrder `json:"order,omitempty"` -} - -// SQLAlwaysEncryptedProperties sql always encrypted properties. -type SQLAlwaysEncryptedProperties struct { - // AlwaysEncryptedAkvAuthType - Sql always encrypted AKV authentication type. Type: string. Possible values include: 'SQLAlwaysEncryptedAkvAuthTypeServicePrincipal', 'SQLAlwaysEncryptedAkvAuthTypeManagedIdentity', 'SQLAlwaysEncryptedAkvAuthTypeUserAssignedManagedIdentity' - AlwaysEncryptedAkvAuthType SQLAlwaysEncryptedAkvAuthType `json:"alwaysEncryptedAkvAuthType,omitempty"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The key of the service principal used to authenticate against Azure Key Vault. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SQLAlwaysEncryptedProperties struct. -func (saep *SQLAlwaysEncryptedProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "alwaysEncryptedAkvAuthType": - if v != nil { - var alwaysEncryptedAkvAuthType SQLAlwaysEncryptedAkvAuthType - err = json.Unmarshal(*v, &alwaysEncryptedAkvAuthType) - if err != nil { - return err - } - saep.AlwaysEncryptedAkvAuthType = alwaysEncryptedAkvAuthType - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - saep.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - saep.ServicePrincipalKey = servicePrincipalKey - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - saep.Credential = &credential - } - } - } - - return nil -} - -// SQLDWSink a copy activity SQL Data Warehouse sink. -type SQLDWSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AllowPolyBase - 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"` - // PolyBaseSettings - Specifies PolyBase-related settings when allowPolyBase is true. - PolyBaseSettings *PolybaseSettings `json:"polyBaseSettings,omitempty"` - // AllowCopyCommand - Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). - AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` - // CopyCommandSettings - Specifies Copy Command related settings when allowCopyCommand is true. - CopyCommandSettings *DWCopyCommandSettings `json:"copyCommandSettings,omitempty"` - // TableOption - 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"` - // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` - // WriteBehavior - Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` - // UpsertSettings - SQL DW upsert settings. - UpsertSettings *SQLDWUpsertSettings `json:"upsertSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLDWSink. -func (sds SQLDWSink) MarshalJSON() ([]byte, error) { - sds.Type = TypeBasicCopySinkTypeSQLDWSink - objectMap := make(map[string]interface{}) - if sds.PreCopyScript != nil { - objectMap["preCopyScript"] = sds.PreCopyScript - } - if sds.AllowPolyBase != nil { - objectMap["allowPolyBase"] = sds.AllowPolyBase - } - if sds.PolyBaseSettings != nil { - objectMap["polyBaseSettings"] = sds.PolyBaseSettings - } - if sds.AllowCopyCommand != nil { - objectMap["allowCopyCommand"] = sds.AllowCopyCommand - } - if sds.CopyCommandSettings != nil { - objectMap["copyCommandSettings"] = sds.CopyCommandSettings - } - if sds.TableOption != nil { - objectMap["tableOption"] = sds.TableOption - } - if sds.SQLWriterUseTableLock != nil { - objectMap["sqlWriterUseTableLock"] = sds.SQLWriterUseTableLock - } - if sds.WriteBehavior != nil { - objectMap["writeBehavior"] = sds.WriteBehavior - } - if sds.UpsertSettings != nil { - objectMap["upsertSettings"] = sds.UpsertSettings - } - if sds.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sds.WriteBatchSize - } - if sds.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sds.WriteBatchTimeout - } - if sds.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sds.SinkRetryCount - } - if sds.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sds.SinkRetryWait - } - if sds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections - } - if sds.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sds.DisableMetricsCollection - } - if sds.Type != "" { - objectMap["type"] = sds.Type - } - for k, v := range sds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLDWSink() (*SQLDWSink, bool) { - return &sds, true -} - -// AsSQLMISink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SQLDWSink. -func (sds SQLDWSink) AsBasicCopySink() (BasicCopySink, bool) { - return &sds, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLDWSink struct. -func (sds *SQLDWSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - sds.PreCopyScript = preCopyScript - } - case "allowPolyBase": - if v != nil { - var allowPolyBase interface{} - err = json.Unmarshal(*v, &allowPolyBase) - if err != nil { - return err - } - sds.AllowPolyBase = allowPolyBase - } - case "polyBaseSettings": - if v != nil { - var polyBaseSettings PolybaseSettings - err = json.Unmarshal(*v, &polyBaseSettings) - if err != nil { - return err - } - sds.PolyBaseSettings = &polyBaseSettings - } - case "allowCopyCommand": - if v != nil { - var allowCopyCommand interface{} - err = json.Unmarshal(*v, &allowCopyCommand) - if err != nil { - return err - } - sds.AllowCopyCommand = allowCopyCommand - } - case "copyCommandSettings": - if v != nil { - var copyCommandSettings DWCopyCommandSettings - err = json.Unmarshal(*v, ©CommandSettings) - if err != nil { - return err - } - sds.CopyCommandSettings = ©CommandSettings - } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - sds.TableOption = tableOption - } - case "sqlWriterUseTableLock": - if v != nil { - var SQLWriterUseTableLock interface{} - err = json.Unmarshal(*v, &SQLWriterUseTableLock) - if err != nil { - return err - } - sds.SQLWriterUseTableLock = SQLWriterUseTableLock - } - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - sds.WriteBehavior = writeBehavior - } - case "upsertSettings": - if v != nil { - var upsertSettings SQLDWUpsertSettings - err = json.Unmarshal(*v, &upsertSettings) - if err != nil { - return err - } - sds.UpsertSettings = &upsertSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sds.AdditionalProperties == nil { - sds.AdditionalProperties = make(map[string]interface{}) - } - sds.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - sds.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - sds.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - sds.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - sds.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sds.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sds.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sds.Type = typeVar - } - } - } - - return nil -} - -// SQLDWSource a copy activity SQL Data Warehouse source. -type SQLDWSource struct { - // SQLReaderQuery - SQL Data Warehouse reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - 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"` - // StoredProcedureParameters - 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"` - // IsolationLevel - 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"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLDWSource. -func (sds SQLDWSource) MarshalJSON() ([]byte, error) { - sds.Type = TypeBasicCopySourceTypeSQLDWSource - objectMap := make(map[string]interface{}) - if sds.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = sds.SQLReaderQuery - } - if sds.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = sds.SQLReaderStoredProcedureName - } - if sds.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sds.StoredProcedureParameters - } - if sds.IsolationLevel != nil { - objectMap["isolationLevel"] = sds.IsolationLevel - } - if sds.PartitionOption != nil { - objectMap["partitionOption"] = sds.PartitionOption - } - if sds.PartitionSettings != nil { - objectMap["partitionSettings"] = sds.PartitionSettings - } - if sds.QueryTimeout != nil { - objectMap["queryTimeout"] = sds.QueryTimeout - } - if sds.AdditionalColumns != nil { - objectMap["additionalColumns"] = sds.AdditionalColumns - } - if sds.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sds.SourceRetryCount - } - if sds.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sds.SourceRetryWait - } - if sds.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sds.MaxConcurrentConnections - } - if sds.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sds.DisableMetricsCollection - } - if sds.Type != "" { - objectMap["type"] = sds.Type - } - for k, v := range sds.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLDWSource() (*SQLDWSource, bool) { - return &sds, true -} - -// AsSQLMISource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sds, true -} - -// AsBinarySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SQLDWSource. -func (sds SQLDWSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sds, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLDWSource struct. -func (sds *SQLDWSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - sds.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - sds.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - sds.StoredProcedureParameters = storedProcedureParameters - } - case "isolationLevel": - if v != nil { - var isolationLevel interface{} - err = json.Unmarshal(*v, &isolationLevel) - if err != nil { - return err - } - sds.IsolationLevel = isolationLevel - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - sds.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - sds.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sds.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sds.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sds.AdditionalProperties == nil { - sds.AdditionalProperties = make(map[string]interface{}) - } - sds.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sds.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sds.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sds.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sds.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sds.Type = typeVar - } - } - } - - return nil -} - -// SQLDWUpsertSettings sql DW upsert option settings -type SQLDWUpsertSettings struct { - // InterimSchemaName - Schema name for interim table. Type: string (or Expression with resultType string). - InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` - // Keys - Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). - Keys interface{} `json:"keys,omitempty"` -} - -// SQLMISink a copy activity Azure SQL Managed Instance sink. -type SQLMISink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` - // TableOption - 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"` - // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` - // WriteBehavior - White behavior when copying data into azure SQL MI. Type: string (or Expression with resultType string) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` - // UpsertSettings - SQL upsert settings. - UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLMISink. -func (sms SQLMISink) MarshalJSON() ([]byte, error) { - sms.Type = TypeBasicCopySinkTypeSQLMISink - objectMap := make(map[string]interface{}) - if sms.SQLWriterStoredProcedureName != nil { - objectMap["sqlWriterStoredProcedureName"] = sms.SQLWriterStoredProcedureName - } - if sms.SQLWriterTableType != nil { - objectMap["sqlWriterTableType"] = sms.SQLWriterTableType - } - if sms.PreCopyScript != nil { - objectMap["preCopyScript"] = sms.PreCopyScript - } - if sms.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sms.StoredProcedureParameters - } - if sms.StoredProcedureTableTypeParameterName != nil { - objectMap["storedProcedureTableTypeParameterName"] = sms.StoredProcedureTableTypeParameterName - } - if sms.TableOption != nil { - objectMap["tableOption"] = sms.TableOption - } - if sms.SQLWriterUseTableLock != nil { - objectMap["sqlWriterUseTableLock"] = sms.SQLWriterUseTableLock - } - if sms.WriteBehavior != nil { - objectMap["writeBehavior"] = sms.WriteBehavior - } - if sms.UpsertSettings != nil { - objectMap["upsertSettings"] = sms.UpsertSettings - } - if sms.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sms.WriteBatchSize - } - if sms.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sms.WriteBatchTimeout - } - if sms.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sms.SinkRetryCount - } - if sms.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sms.SinkRetryWait - } - if sms.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections - } - if sms.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sms.DisableMetricsCollection - } - if sms.Type != "" { - objectMap["type"] = sms.Type - } - for k, v := range sms.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSQLMISink() (*SQLMISink, bool) { - return &sms, true -} - -// AsAzureSQLSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SQLMISink. -func (sms SQLMISink) AsBasicCopySink() (BasicCopySink, bool) { - return &sms, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLMISink struct. -func (sms *SQLMISink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlWriterStoredProcedureName": - if v != nil { - var SQLWriterStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) - if err != nil { - return err - } - sms.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName - } - case "sqlWriterTableType": - if v != nil { - var SQLWriterTableType interface{} - err = json.Unmarshal(*v, &SQLWriterTableType) - if err != nil { - return err - } - sms.SQLWriterTableType = SQLWriterTableType - } - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - sms.PreCopyScript = preCopyScript - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - sms.StoredProcedureParameters = storedProcedureParameters - } - case "storedProcedureTableTypeParameterName": - if v != nil { - var storedProcedureTableTypeParameterName interface{} - err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) - if err != nil { - return err - } - sms.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName - } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - sms.TableOption = tableOption - } - case "sqlWriterUseTableLock": - if v != nil { - var SQLWriterUseTableLock interface{} - err = json.Unmarshal(*v, &SQLWriterUseTableLock) - if err != nil { - return err - } - sms.SQLWriterUseTableLock = SQLWriterUseTableLock - } - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - sms.WriteBehavior = writeBehavior - } - case "upsertSettings": - if v != nil { - var upsertSettings SQLUpsertSettings - err = json.Unmarshal(*v, &upsertSettings) - if err != nil { - return err - } - sms.UpsertSettings = &upsertSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sms.AdditionalProperties == nil { - sms.AdditionalProperties = make(map[string]interface{}) - } - sms.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - sms.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - sms.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - sms.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - sms.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sms.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sms.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sms.Type = typeVar - } - } - } - - return nil -} - -// SQLMISource a copy activity Azure SQL Managed Instance source. -type SQLMISource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - 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"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // IsolationLevel - 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"` - // ProduceAdditionalTypes - Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLMISource. -func (sms SQLMISource) MarshalJSON() ([]byte, error) { - sms.Type = TypeBasicCopySourceTypeSQLMISource - objectMap := make(map[string]interface{}) - if sms.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = sms.SQLReaderQuery - } - if sms.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = sms.SQLReaderStoredProcedureName - } - if sms.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sms.StoredProcedureParameters - } - if sms.IsolationLevel != nil { - objectMap["isolationLevel"] = sms.IsolationLevel - } - if sms.ProduceAdditionalTypes != nil { - objectMap["produceAdditionalTypes"] = sms.ProduceAdditionalTypes - } - if sms.PartitionOption != nil { - objectMap["partitionOption"] = sms.PartitionOption - } - if sms.PartitionSettings != nil { - objectMap["partitionSettings"] = sms.PartitionSettings - } - if sms.QueryTimeout != nil { - objectMap["queryTimeout"] = sms.QueryTimeout - } - if sms.AdditionalColumns != nil { - objectMap["additionalColumns"] = sms.AdditionalColumns - } - if sms.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sms.SourceRetryCount - } - if sms.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sms.SourceRetryWait - } - if sms.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sms.MaxConcurrentConnections - } - if sms.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sms.DisableMetricsCollection - } - if sms.Type != "" { - objectMap["type"] = sms.Type - } - for k, v := range sms.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSQLMISource() (*SQLMISource, bool) { - return &sms, true -} - -// AsAzureSQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sms, true -} - -// AsBinarySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SQLMISource. -func (sms SQLMISource) AsBasicCopySource() (BasicCopySource, bool) { - return &sms, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLMISource struct. -func (sms *SQLMISource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - sms.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - sms.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - sms.StoredProcedureParameters = storedProcedureParameters - } - case "isolationLevel": - if v != nil { - var isolationLevel interface{} - err = json.Unmarshal(*v, &isolationLevel) - if err != nil { - return err - } - sms.IsolationLevel = isolationLevel - } - case "produceAdditionalTypes": - if v != nil { - var produceAdditionalTypes interface{} - err = json.Unmarshal(*v, &produceAdditionalTypes) - if err != nil { - return err - } - sms.ProduceAdditionalTypes = produceAdditionalTypes - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - sms.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - sms.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sms.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sms.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sms.AdditionalProperties == nil { - sms.AdditionalProperties = make(map[string]interface{}) - } - sms.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sms.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sms.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sms.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sms.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sms.Type = typeVar - } - } - } - - return nil -} - -// SQLPartitionSettings the settings that will be leveraged for Sql source partitioning. -type SQLPartitionSettings struct { - // PartitionColumnName - 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"` - // PartitionUpperBound - 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"` - // PartitionLowerBound - 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"` -} - -// SQLServerLinkedService SQL Server linked service. -type SQLServerLinkedService struct { - // SQLServerLinkedServiceTypeProperties - SQL Server linked service properties. - *SQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLServerLinkedService. -func (ssls SQLServerLinkedService) MarshalJSON() ([]byte, error) { - ssls.Type = TypeBasicLinkedServiceTypeSQLServer - objectMap := make(map[string]interface{}) - if ssls.SQLServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ssls.SQLServerLinkedServiceTypeProperties - } - if ssls.ConnectVia != nil { - objectMap["connectVia"] = ssls.ConnectVia - } - if ssls.Description != nil { - objectMap["description"] = ssls.Description - } - if ssls.Parameters != nil { - objectMap["parameters"] = ssls.Parameters - } - if ssls.Annotations != nil { - objectMap["annotations"] = ssls.Annotations - } - if ssls.Type != "" { - objectMap["type"] = ssls.Type - } - for k, v := range ssls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return &ssls, true -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SQLServerLinkedService. -func (ssls SQLServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ssls, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedService struct. -func (ssls *SQLServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var SQLServerLinkedServiceTypeProperties SQLServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &SQLServerLinkedServiceTypeProperties) - if err != nil { - return err - } - ssls.SQLServerLinkedServiceTypeProperties = &SQLServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ssls.AdditionalProperties == nil { - ssls.AdditionalProperties = make(map[string]interface{}) - } - ssls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ssls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ssls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ssls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ssls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssls.Type = typeVar - } - } - } - - return nil -} - -// SQLServerLinkedServiceTypeProperties SQL Server linked service properties. -type SQLServerLinkedServiceTypeProperties struct { - // ConnectionString - The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // UserName - The on-premises Windows authentication user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The on-premises Windows authentication password. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // AlwaysEncryptedSettings - Sql always encrypted properties. - AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerLinkedServiceTypeProperties struct. -func (sslstp *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - sslstp.ConnectionString = connectionString - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sslstp.EncryptedCredential = &encryptedCredential - } - case "alwaysEncryptedSettings": - if v != nil { - var alwaysEncryptedSettings SQLAlwaysEncryptedProperties - err = json.Unmarshal(*v, &alwaysEncryptedSettings) - if err != nil { - return err - } - sslstp.AlwaysEncryptedSettings = &alwaysEncryptedSettings - } - } - } - - return nil -} - -// SQLServerSink a copy activity SQL server sink. -type SQLServerSink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` - // TableOption - 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"` - // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` - // WriteBehavior - Write behavior when copying data into sql server. Type: string (or Expression with resultType string). - WriteBehavior interface{} `json:"writeBehavior,omitempty"` - // UpsertSettings - SQL upsert settings. - UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLServerSink. -func (sss SQLServerSink) MarshalJSON() ([]byte, error) { - sss.Type = TypeBasicCopySinkTypeSQLServerSink - objectMap := make(map[string]interface{}) - if sss.SQLWriterStoredProcedureName != nil { - objectMap["sqlWriterStoredProcedureName"] = sss.SQLWriterStoredProcedureName - } - if sss.SQLWriterTableType != nil { - objectMap["sqlWriterTableType"] = sss.SQLWriterTableType - } - if sss.PreCopyScript != nil { - objectMap["preCopyScript"] = sss.PreCopyScript - } - if sss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sss.StoredProcedureParameters - } - if sss.StoredProcedureTableTypeParameterName != nil { - objectMap["storedProcedureTableTypeParameterName"] = sss.StoredProcedureTableTypeParameterName - } - if sss.TableOption != nil { - objectMap["tableOption"] = sss.TableOption - } - if sss.SQLWriterUseTableLock != nil { - objectMap["sqlWriterUseTableLock"] = sss.SQLWriterUseTableLock - } - if sss.WriteBehavior != nil { - objectMap["writeBehavior"] = sss.WriteBehavior - } - if sss.UpsertSettings != nil { - objectMap["upsertSettings"] = sss.UpsertSettings - } - if sss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sss.WriteBatchSize - } - if sss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sss.WriteBatchTimeout - } - if sss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sss.SinkRetryCount - } - if sss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sss.SinkRetryWait - } - if sss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections - } - if sss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sss.DisableMetricsCollection - } - if sss.Type != "" { - objectMap["type"] = sss.Type - } - for k, v := range sss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSQLServerSink() (*SQLServerSink, bool) { - return &sss, true -} - -// AsSQLSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SQLServerSink. -func (sss SQLServerSink) AsBasicCopySink() (BasicCopySink, bool) { - return &sss, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerSink struct. -func (sss *SQLServerSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlWriterStoredProcedureName": - if v != nil { - var SQLWriterStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) - if err != nil { - return err - } - sss.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName - } - case "sqlWriterTableType": - if v != nil { - var SQLWriterTableType interface{} - err = json.Unmarshal(*v, &SQLWriterTableType) - if err != nil { - return err - } - sss.SQLWriterTableType = SQLWriterTableType - } - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - sss.PreCopyScript = preCopyScript - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - sss.StoredProcedureParameters = storedProcedureParameters - } - case "storedProcedureTableTypeParameterName": - if v != nil { - var storedProcedureTableTypeParameterName interface{} - err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) - if err != nil { - return err - } - sss.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName - } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - sss.TableOption = tableOption - } - case "sqlWriterUseTableLock": - if v != nil { - var SQLWriterUseTableLock interface{} - err = json.Unmarshal(*v, &SQLWriterUseTableLock) - if err != nil { - return err - } - sss.SQLWriterUseTableLock = SQLWriterUseTableLock - } - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - sss.WriteBehavior = writeBehavior - } - case "upsertSettings": - if v != nil { - var upsertSettings SQLUpsertSettings - err = json.Unmarshal(*v, &upsertSettings) - if err != nil { - return err - } - sss.UpsertSettings = &upsertSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sss.AdditionalProperties == nil { - sss.AdditionalProperties = make(map[string]interface{}) - } - sss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - sss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - sss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - sss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - sss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sss.Type = typeVar - } - } - } - - return nil -} - -// SQLServerSource a copy activity SQL server source. -type SQLServerSource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - 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"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // IsolationLevel - 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"` - // ProduceAdditionalTypes - Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLServerSource. -func (sss SQLServerSource) MarshalJSON() ([]byte, error) { - sss.Type = TypeBasicCopySourceTypeSQLServerSource - objectMap := make(map[string]interface{}) - if sss.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = sss.SQLReaderQuery - } - if sss.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = sss.SQLReaderStoredProcedureName - } - if sss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = sss.StoredProcedureParameters - } - if sss.IsolationLevel != nil { - objectMap["isolationLevel"] = sss.IsolationLevel - } - if sss.ProduceAdditionalTypes != nil { - objectMap["produceAdditionalTypes"] = sss.ProduceAdditionalTypes - } - if sss.PartitionOption != nil { - objectMap["partitionOption"] = sss.PartitionOption - } - if sss.PartitionSettings != nil { - objectMap["partitionSettings"] = sss.PartitionSettings - } - if sss.QueryTimeout != nil { - objectMap["queryTimeout"] = sss.QueryTimeout - } - if sss.AdditionalColumns != nil { - objectMap["additionalColumns"] = sss.AdditionalColumns - } - if sss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sss.SourceRetryCount - } - if sss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sss.SourceRetryWait - } - if sss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sss.MaxConcurrentConnections - } - if sss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sss.DisableMetricsCollection - } - if sss.Type != "" { - objectMap["type"] = sss.Type - } - for k, v := range sss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSQLServerSource() (*SQLServerSource, bool) { - return &sss, true -} - -// AsSQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sss, true -} - -// AsBinarySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SQLServerSource. -func (sss SQLServerSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sss, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerSource struct. -func (sss *SQLServerSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - sss.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - sss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - sss.StoredProcedureParameters = storedProcedureParameters - } - case "isolationLevel": - if v != nil { - var isolationLevel interface{} - err = json.Unmarshal(*v, &isolationLevel) - if err != nil { - return err - } - sss.IsolationLevel = isolationLevel - } - case "produceAdditionalTypes": - if v != nil { - var produceAdditionalTypes interface{} - err = json.Unmarshal(*v, &produceAdditionalTypes) - if err != nil { - return err - } - sss.ProduceAdditionalTypes = produceAdditionalTypes - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - sss.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - sss.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sss.AdditionalProperties == nil { - sss.AdditionalProperties = make(map[string]interface{}) - } - sss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sss.Type = typeVar - } - } - } - - return nil -} - -// SQLServerStoredProcedureActivity SQL stored procedure activity type. -type SQLServerStoredProcedureActivity struct { - // SQLServerStoredProcedureActivityTypeProperties - SQL stored procedure activity properties. - *SQLServerStoredProcedureActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error) { - ssspa.Type = TypeBasicActivityTypeSQLServerStoredProcedure - objectMap := make(map[string]interface{}) - if ssspa.SQLServerStoredProcedureActivityTypeProperties != nil { - objectMap["typeProperties"] = ssspa.SQLServerStoredProcedureActivityTypeProperties - } - if ssspa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ssspa.LinkedServiceName - } - if ssspa.Policy != nil { - objectMap["policy"] = ssspa.Policy - } - if ssspa.Name != nil { - objectMap["name"] = ssspa.Name - } - if ssspa.Description != nil { - objectMap["description"] = ssspa.Description - } - if ssspa.State != "" { - objectMap["state"] = ssspa.State - } - if ssspa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ssspa.OnInactiveMarkAs - } - if ssspa.DependsOn != nil { - objectMap["dependsOn"] = ssspa.DependsOn - } - if ssspa.UserProperties != nil { - objectMap["userProperties"] = ssspa.UserProperties - } - if ssspa.Type != "" { - objectMap["type"] = ssspa.Type - } - for k, v := range ssspa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return &ssspa, true -} - -// AsCustomActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ssspa, true -} - -// AsWebHookActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for SQLServerStoredProcedureActivity. -func (ssspa SQLServerStoredProcedureActivity) AsBasicActivity() (BasicActivity, bool) { - return &ssspa, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerStoredProcedureActivity struct. -func (ssspa *SQLServerStoredProcedureActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var SQLServerStoredProcedureActivityTypeProperties SQLServerStoredProcedureActivityTypeProperties - err = json.Unmarshal(*v, &SQLServerStoredProcedureActivityTypeProperties) - if err != nil { - return err - } - ssspa.SQLServerStoredProcedureActivityTypeProperties = &SQLServerStoredProcedureActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ssspa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ssspa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ssspa.AdditionalProperties == nil { - ssspa.AdditionalProperties = make(map[string]interface{}) - } - ssspa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ssspa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ssspa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ssspa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ssspa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ssspa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ssspa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssspa.Type = typeVar - } - } - } - - return nil -} - -// SQLServerStoredProcedureActivityTypeProperties SQL stored procedure activity properties. -type SQLServerStoredProcedureActivityTypeProperties struct { - // StoredProcedureName - Stored procedure name. Type: string (or Expression with resultType string). - StoredProcedureName interface{} `json:"storedProcedureName,omitempty"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` -} - -// SQLServerTableDataset the on-premises SQL Server dataset. -type SQLServerTableDataset struct { - // SQLServerTableDatasetTypeProperties - On-premises SQL Server dataset properties. - *SQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLServerTableDataset. -func (sstd SQLServerTableDataset) MarshalJSON() ([]byte, error) { - sstd.Type = TypeBasicDatasetTypeSQLServerTable - objectMap := make(map[string]interface{}) - if sstd.SQLServerTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = sstd.SQLServerTableDatasetTypeProperties - } - if sstd.Description != nil { - objectMap["description"] = sstd.Description - } - if sstd.Structure != nil { - objectMap["structure"] = sstd.Structure - } - if sstd.Schema != nil { - objectMap["schema"] = sstd.Schema - } - if sstd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sstd.LinkedServiceName - } - if sstd.Parameters != nil { - objectMap["parameters"] = sstd.Parameters - } - if sstd.Annotations != nil { - objectMap["annotations"] = sstd.Annotations - } - if sstd.Folder != nil { - objectMap["folder"] = sstd.Folder - } - if sstd.Type != "" { - objectMap["type"] = sstd.Type - } - for k, v := range sstd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return &sstd, true -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SQLServerTableDataset. -func (sstd SQLServerTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &sstd, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLServerTableDataset struct. -func (sstd *SQLServerTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var SQLServerTableDatasetTypeProperties SQLServerTableDatasetTypeProperties - err = json.Unmarshal(*v, &SQLServerTableDatasetTypeProperties) - if err != nil { - return err - } - sstd.SQLServerTableDatasetTypeProperties = &SQLServerTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sstd.AdditionalProperties == nil { - sstd.AdditionalProperties = make(map[string]interface{}) - } - sstd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sstd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sstd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sstd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sstd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sstd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sstd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sstd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sstd.Type = typeVar - } - } - } - - return nil -} - -// SQLServerTableDatasetTypeProperties on-premises SQL Server dataset properties. -type SQLServerTableDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Schema - The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the SQL Server dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// SQLSink a copy activity SQL sink. -type SQLSink struct { - // SQLWriterStoredProcedureName - SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` - // SQLWriterTableType - SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // StoredProcedureParameters - SQL stored procedure parameters. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // StoredProcedureTableTypeParameterName - The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` - // TableOption - 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"` - // SQLWriterUseTableLock - Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` - // WriteBehavior - Write behavior when copying data into sql. Type: string (or Expression with resultType string). - WriteBehavior interface{} `json:"writeBehavior,omitempty"` - // UpsertSettings - SQL upsert settings. - UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLSink. -func (ss SQLSink) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySinkTypeSQLSink - objectMap := make(map[string]interface{}) - if ss.SQLWriterStoredProcedureName != nil { - objectMap["sqlWriterStoredProcedureName"] = ss.SQLWriterStoredProcedureName - } - if ss.SQLWriterTableType != nil { - objectMap["sqlWriterTableType"] = ss.SQLWriterTableType - } - if ss.PreCopyScript != nil { - objectMap["preCopyScript"] = ss.PreCopyScript - } - if ss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters - } - if ss.StoredProcedureTableTypeParameterName != nil { - objectMap["storedProcedureTableTypeParameterName"] = ss.StoredProcedureTableTypeParameterName - } - if ss.TableOption != nil { - objectMap["tableOption"] = ss.TableOption - } - if ss.SQLWriterUseTableLock != nil { - objectMap["sqlWriterUseTableLock"] = ss.SQLWriterUseTableLock - } - if ss.WriteBehavior != nil { - objectMap["writeBehavior"] = ss.WriteBehavior - } - if ss.UpsertSettings != nil { - objectMap["upsertSettings"] = ss.UpsertSettings - } - if ss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ss.WriteBatchSize - } - if ss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout - } - if ss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ss.SinkRetryCount - } - if ss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ss.SinkRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSQLSink() (*SQLSink, bool) { - return &ss, true -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SQLSink. -func (ss SQLSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLSink struct. -func (ss *SQLSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlWriterStoredProcedureName": - if v != nil { - var SQLWriterStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLWriterStoredProcedureName) - if err != nil { - return err - } - ss.SQLWriterStoredProcedureName = SQLWriterStoredProcedureName - } - case "sqlWriterTableType": - if v != nil { - var SQLWriterTableType interface{} - err = json.Unmarshal(*v, &SQLWriterTableType) - if err != nil { - return err - } - ss.SQLWriterTableType = SQLWriterTableType - } - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - ss.PreCopyScript = preCopyScript - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ss.StoredProcedureParameters = storedProcedureParameters - } - case "storedProcedureTableTypeParameterName": - if v != nil { - var storedProcedureTableTypeParameterName interface{} - err = json.Unmarshal(*v, &storedProcedureTableTypeParameterName) - if err != nil { - return err - } - ss.StoredProcedureTableTypeParameterName = storedProcedureTableTypeParameterName - } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ss.TableOption = tableOption - } - case "sqlWriterUseTableLock": - if v != nil { - var SQLWriterUseTableLock interface{} - err = json.Unmarshal(*v, &SQLWriterUseTableLock) - if err != nil { - return err - } - ss.SQLWriterUseTableLock = SQLWriterUseTableLock - } - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - ss.WriteBehavior = writeBehavior - } - case "upsertSettings": - if v != nil { - var upsertSettings SQLUpsertSettings - err = json.Unmarshal(*v, &upsertSettings) - if err != nil { - return err - } - ss.UpsertSettings = &upsertSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SQLSource a copy activity SQL source. -type SQLSource struct { - // SQLReaderQuery - SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - 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"` - // StoredProcedureParameters - Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` - // IsolationLevel - 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"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". Type: string (or Expression with resultType string). - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SQLSource. -func (ss SQLSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySourceTypeSQLSource - objectMap := make(map[string]interface{}) - if ss.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = ss.SQLReaderQuery - } - if ss.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = ss.SQLReaderStoredProcedureName - } - if ss.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ss.StoredProcedureParameters - } - if ss.IsolationLevel != nil { - objectMap["isolationLevel"] = ss.IsolationLevel - } - if ss.PartitionOption != nil { - objectMap["partitionOption"] = ss.PartitionOption - } - if ss.PartitionSettings != nil { - objectMap["partitionSettings"] = ss.PartitionSettings - } - if ss.QueryTimeout != nil { - objectMap["queryTimeout"] = ss.QueryTimeout - } - if ss.AdditionalColumns != nil { - objectMap["additionalColumns"] = ss.AdditionalColumns - } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount - } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSQLSource() (*SQLSource, bool) { - return &ss, true -} - -// AsSapTableSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ss, true -} - -// AsBinarySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SQLSource. -func (ss SQLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SQLSource struct. -func (ss *SQLSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - ss.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - ss.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ss.StoredProcedureParameters = storedProcedureParameters - } - case "isolationLevel": - if v != nil { - var isolationLevel interface{} - err = json.Unmarshal(*v, &isolationLevel) - if err != nil { - return err - } - ss.IsolationLevel = isolationLevel - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - ss.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - ss.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SQLUpsertSettings sql upsert option settings -type SQLUpsertSettings struct { - // UseTempDB - Specifies whether to use temp db for upsert interim table. Type: boolean (or Expression with resultType boolean). - UseTempDB interface{} `json:"useTempDB,omitempty"` - // InterimSchemaName - Schema name for interim table. Type: string (or Expression with resultType string). - InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` - // Keys - Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). - Keys interface{} `json:"keys,omitempty"` -} - -// SSISAccessCredential SSIS access credential. -type SSISAccessCredential struct { - // Domain - Domain for windows authentication. Type: string (or Expression with resultType string). - Domain interface{} `json:"domain,omitempty"` - // UserName - UseName for windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for windows authentication. - Password BasicSecretBase `json:"password,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SSISAccessCredential struct. -func (sac *SSISAccessCredential) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "domain": - if v != nil { - var domain interface{} - err = json.Unmarshal(*v, &domain) - if err != nil { - return err - } - sac.Domain = domain - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sac.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sac.Password = password - } - } - } - - return nil -} - -// SSISChildPackage SSIS embedded child package. -type SSISChildPackage struct { - // PackagePath - Path for embedded child package. Type: string (or Expression with resultType string). - PackagePath interface{} `json:"packagePath,omitempty"` - // PackageName - Name for embedded child package. - PackageName *string `json:"packageName,omitempty"` - // PackageContent - Content for embedded child package. Type: string (or Expression with resultType string). - PackageContent interface{} `json:"packageContent,omitempty"` - // PackageLastModifiedDate - Last modified date for embedded child package. - PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` -} - -// SSISExecutionCredential SSIS package execution credential. -type SSISExecutionCredential struct { - // Domain - Domain for windows authentication. Type: string (or Expression with resultType string). - Domain interface{} `json:"domain,omitempty"` - // UserName - UseName for windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password for windows authentication. - Password *SecureString `json:"password,omitempty"` -} - -// SSISExecutionParameter SSIS execution parameter. -type SSISExecutionParameter struct { - // Value - SSIS package execution parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} - -// SSISLogLocation SSIS package execution log location -type SSISLogLocation struct { - // LogPath - The SSIS package execution log path. Type: string (or Expression with resultType string). - LogPath interface{} `json:"logPath,omitempty"` - // Type - The type of SSIS log location. - Type *string `json:"type,omitempty"` - // SSISLogLocationTypeProperties - SSIS package execution log location properties. - *SSISLogLocationTypeProperties `json:"typeProperties,omitempty"` -} - -// MarshalJSON is the custom marshaler for SSISLogLocation. -func (sll SSISLogLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if sll.LogPath != nil { - objectMap["logPath"] = sll.LogPath - } - if sll.Type != nil { - objectMap["type"] = sll.Type - } - if sll.SSISLogLocationTypeProperties != nil { - objectMap["typeProperties"] = sll.SSISLogLocationTypeProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for SSISLogLocation struct. -func (sll *SSISLogLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "logPath": - if v != nil { - var logPath interface{} - err = json.Unmarshal(*v, &logPath) - if err != nil { - return err - } - sll.LogPath = logPath - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sll.Type = &typeVar - } - case "typeProperties": - if v != nil { - var sSISLogLocationTypeProperties SSISLogLocationTypeProperties - err = json.Unmarshal(*v, &sSISLogLocationTypeProperties) - if err != nil { - return err - } - sll.SSISLogLocationTypeProperties = &sSISLogLocationTypeProperties - } - } - } - - return nil -} - -// SSISLogLocationTypeProperties SSIS package execution log location properties. -type SSISLogLocationTypeProperties struct { - // AccessCredential - The package execution log access credential. - AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` - // LogRefreshInterval - 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"` -} - -// SSISPackageLocation SSIS package location. -type SSISPackageLocation struct { - // PackagePath - The SSIS package path. Type: string (or Expression with resultType string). - PackagePath interface{} `json:"packagePath,omitempty"` - // Type - The type of SSIS package location. Possible values include: 'SsisPackageLocationTypeSSISDB', 'SsisPackageLocationTypeFile', 'SsisPackageLocationTypeInlinePackage', 'SsisPackageLocationTypePackageStore' - Type SsisPackageLocationType `json:"type,omitempty"` - // SSISPackageLocationTypeProperties - SSIS package location properties. - *SSISPackageLocationTypeProperties `json:"typeProperties,omitempty"` -} - -// MarshalJSON is the custom marshaler for SSISPackageLocation. -func (spl SSISPackageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if spl.PackagePath != nil { - objectMap["packagePath"] = spl.PackagePath - } - if spl.Type != "" { - objectMap["type"] = spl.Type - } - if spl.SSISPackageLocationTypeProperties != nil { - objectMap["typeProperties"] = spl.SSISPackageLocationTypeProperties - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for SSISPackageLocation struct. -func (spl *SSISPackageLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "packagePath": - if v != nil { - var packagePath interface{} - err = json.Unmarshal(*v, &packagePath) - if err != nil { - return err - } - spl.PackagePath = packagePath - } - case "type": - if v != nil { - var typeVar SsisPackageLocationType - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - spl.Type = typeVar - } - case "typeProperties": - if v != nil { - var sSISPackageLocationTypeProperties SSISPackageLocationTypeProperties - err = json.Unmarshal(*v, &sSISPackageLocationTypeProperties) - if err != nil { - return err - } - spl.SSISPackageLocationTypeProperties = &sSISPackageLocationTypeProperties - } - } - } - - return nil -} - -// SSISPackageLocationTypeProperties SSIS package location properties. -type SSISPackageLocationTypeProperties struct { - // PackagePassword - Password of the package. - PackagePassword BasicSecretBase `json:"packagePassword,omitempty"` - // AccessCredential - The package access credential. - AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"` - // ConfigurationPath - The configuration file of the package execution. Type: string (or Expression with resultType string). - ConfigurationPath interface{} `json:"configurationPath,omitempty"` - // ConfigurationAccessCredential - The configuration file access credential. - ConfigurationAccessCredential *SSISAccessCredential `json:"configurationAccessCredential,omitempty"` - // PackageName - The package name. - PackageName *string `json:"packageName,omitempty"` - // PackageContent - The embedded package content. Type: string (or Expression with resultType string). - PackageContent interface{} `json:"packageContent,omitempty"` - // PackageLastModifiedDate - The embedded package last modified date. - PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` - // ChildPackages - The embedded child package list. - ChildPackages *[]SSISChildPackage `json:"childPackages,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SSISPackageLocationTypeProperties struct. -func (spltp *SSISPackageLocationTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "packagePassword": - if v != nil { - packagePassword, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - spltp.PackagePassword = packagePassword - } - case "accessCredential": - if v != nil { - var accessCredential SSISAccessCredential - err = json.Unmarshal(*v, &accessCredential) - if err != nil { - return err - } - spltp.AccessCredential = &accessCredential - } - case "configurationPath": - if v != nil { - var configurationPath interface{} - err = json.Unmarshal(*v, &configurationPath) - if err != nil { - return err - } - spltp.ConfigurationPath = configurationPath - } - case "configurationAccessCredential": - if v != nil { - var configurationAccessCredential SSISAccessCredential - err = json.Unmarshal(*v, &configurationAccessCredential) - if err != nil { - return err - } - spltp.ConfigurationAccessCredential = &configurationAccessCredential - } - case "packageName": - if v != nil { - var packageName string - err = json.Unmarshal(*v, &packageName) - if err != nil { - return err - } - spltp.PackageName = &packageName - } - case "packageContent": - if v != nil { - var packageContent interface{} - err = json.Unmarshal(*v, &packageContent) - if err != nil { - return err - } - spltp.PackageContent = packageContent - } - case "packageLastModifiedDate": - if v != nil { - var packageLastModifiedDate string - err = json.Unmarshal(*v, &packageLastModifiedDate) - if err != nil { - return err - } - spltp.PackageLastModifiedDate = &packageLastModifiedDate - } - case "childPackages": - if v != nil { - var childPackages []SSISChildPackage - err = json.Unmarshal(*v, &childPackages) - if err != nil { - return err - } - spltp.ChildPackages = &childPackages - } - } - } - - return nil -} - -// SSISPropertyOverride SSIS property override. -type SSISPropertyOverride struct { - // Value - SSIS package property override value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` - // IsSensitive - Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true - IsSensitive *bool `json:"isSensitive,omitempty"` -} - -// SalesforceLinkedService linked service for Salesforce. -type SalesforceLinkedService struct { - // SalesforceLinkedServiceTypeProperties - Salesforce linked service properties. - *SalesforceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceLinkedService. -func (sls SalesforceLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeBasicLinkedServiceTypeSalesforce - objectMap := make(map[string]interface{}) - if sls.SalesforceLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SalesforceLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return &sls, true -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceLinkedService. -func (sls SalesforceLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedService struct. -func (sls *SalesforceLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceLinkedServiceTypeProperties SalesforceLinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SalesforceLinkedServiceTypeProperties = &salesforceLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// SalesforceLinkedServiceTypeProperties salesforce linked service properties. -type SalesforceLinkedServiceTypeProperties struct { - // EnvironmentURL - 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"` - // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication of the Salesforce instance. - Password BasicSecretBase `json:"password,omitempty"` - // SecurityToken - The security token is optional to remotely access Salesforce instance. - SecurityToken BasicSecretBase `json:"securityToken,omitempty"` - // APIVersion - The Salesforce API version used in ADF. Type: string (or Expression with resultType string). - APIVersion interface{} `json:"apiVersion,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceLinkedServiceTypeProperties struct. -func (slstp *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "environmentUrl": - if v != nil { - var environmentURL interface{} - err = json.Unmarshal(*v, &environmentURL) - if err != nil { - return err - } - slstp.EnvironmentURL = environmentURL - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - slstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.Password = password - } - case "securityToken": - if v != nil { - securityToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.SecurityToken = securityToken - } - case "apiVersion": - if v != nil { - var APIVersion interface{} - err = json.Unmarshal(*v, &APIVersion) - if err != nil { - return err - } - slstp.APIVersion = APIVersion - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SalesforceMarketingCloudLinkedService salesforce Marketing Cloud linked service. -type SalesforceMarketingCloudLinkedService struct { - // SalesforceMarketingCloudLinkedServiceTypeProperties - Salesforce Marketing Cloud linked service properties. - *SalesforceMarketingCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error) { - smcls.Type = TypeBasicLinkedServiceTypeSalesforceMarketingCloud - objectMap := make(map[string]interface{}) - if smcls.SalesforceMarketingCloudLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = smcls.SalesforceMarketingCloudLinkedServiceTypeProperties - } - if smcls.ConnectVia != nil { - objectMap["connectVia"] = smcls.ConnectVia - } - if smcls.Description != nil { - objectMap["description"] = smcls.Description - } - if smcls.Parameters != nil { - objectMap["parameters"] = smcls.Parameters - } - if smcls.Annotations != nil { - objectMap["annotations"] = smcls.Annotations - } - if smcls.Type != "" { - objectMap["type"] = smcls.Type - } - for k, v := range smcls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return &smcls, true -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceMarketingCloudLinkedService. -func (smcls SalesforceMarketingCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &smcls, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedService struct. -func (smcls *SalesforceMarketingCloudLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceMarketingCloudLinkedServiceTypeProperties SalesforceMarketingCloudLinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceMarketingCloudLinkedServiceTypeProperties) - if err != nil { - return err - } - smcls.SalesforceMarketingCloudLinkedServiceTypeProperties = &salesforceMarketingCloudLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if smcls.AdditionalProperties == nil { - smcls.AdditionalProperties = make(map[string]interface{}) - } - smcls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - smcls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - smcls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - smcls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - smcls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - smcls.Type = typeVar - } - } - } - - return nil -} - -// SalesforceMarketingCloudLinkedServiceTypeProperties salesforce Marketing Cloud linked service -// properties. -type SalesforceMarketingCloudLinkedServiceTypeProperties struct { - // ConnectionProperties - 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"` - // ClientID - The client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - 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"` - // UseHostVerification - 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"` - // UsePeerVerification - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudLinkedServiceTypeProperties struct. -func (smclstp *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionProperties": - if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) - if err != nil { - return err - } - smclstp.ConnectionProperties = connectionProperties - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - smclstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - smclstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - smclstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - smclstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - smclstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - smclstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SalesforceMarketingCloudObjectDataset salesforce Marketing Cloud dataset. -type SalesforceMarketingCloudObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) MarshalJSON() ([]byte, error) { - smcod.Type = TypeBasicDatasetTypeSalesforceMarketingCloudObject - objectMap := make(map[string]interface{}) - if smcod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = smcod.GenericDatasetTypeProperties - } - if smcod.Description != nil { - objectMap["description"] = smcod.Description - } - if smcod.Structure != nil { - objectMap["structure"] = smcod.Structure - } - if smcod.Schema != nil { - objectMap["schema"] = smcod.Schema - } - if smcod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = smcod.LinkedServiceName - } - if smcod.Parameters != nil { - objectMap["parameters"] = smcod.Parameters - } - if smcod.Annotations != nil { - objectMap["annotations"] = smcod.Annotations - } - if smcod.Folder != nil { - objectMap["folder"] = smcod.Folder - } - if smcod.Type != "" { - objectMap["type"] = smcod.Type - } - for k, v := range smcod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return &smcod, true -} - -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SalesforceMarketingCloudObjectDataset. -func (smcod SalesforceMarketingCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &smcod, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudObjectDataset struct. -func (smcod *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - smcod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if smcod.AdditionalProperties == nil { - smcod.AdditionalProperties = make(map[string]interface{}) - } - smcod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - smcod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - smcod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - smcod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - smcod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - smcod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - smcod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - smcod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - smcod.Type = typeVar - } - } - } - - return nil -} - -// SalesforceMarketingCloudSource a copy activity Salesforce Marketing Cloud source. -type SalesforceMarketingCloudSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error) { - smcs.Type = TypeBasicCopySourceTypeSalesforceMarketingCloudSource - objectMap := make(map[string]interface{}) - if smcs.Query != nil { - objectMap["query"] = smcs.Query - } - if smcs.QueryTimeout != nil { - objectMap["queryTimeout"] = smcs.QueryTimeout - } - if smcs.AdditionalColumns != nil { - objectMap["additionalColumns"] = smcs.AdditionalColumns - } - if smcs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = smcs.SourceRetryCount - } - if smcs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = smcs.SourceRetryWait - } - if smcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = smcs.MaxConcurrentConnections - } - if smcs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = smcs.DisableMetricsCollection - } - if smcs.Type != "" { - objectMap["type"] = smcs.Type - } - for k, v := range smcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return &smcs, true -} - -// AsVerticaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &smcs, true -} - -// AsBinarySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SalesforceMarketingCloudSource. -func (smcs SalesforceMarketingCloudSource) AsBasicCopySource() (BasicCopySource, bool) { - return &smcs, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceMarketingCloudSource struct. -func (smcs *SalesforceMarketingCloudSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - smcs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - smcs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - smcs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if smcs.AdditionalProperties == nil { - smcs.AdditionalProperties = make(map[string]interface{}) - } - smcs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - smcs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - smcs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - smcs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - smcs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - smcs.Type = typeVar - } - } - } - - return nil -} - -// SalesforceObjectDataset the Salesforce object dataset. -type SalesforceObjectDataset struct { - // SalesforceObjectDatasetTypeProperties - Salesforce object dataset properties. - *SalesforceObjectDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeBasicDatasetTypeSalesforceObject - objectMap := make(map[string]interface{}) - if sod.SalesforceObjectDatasetTypeProperties != nil { - objectMap["typeProperties"] = sod.SalesforceObjectDatasetTypeProperties - } - if sod.Description != nil { - objectMap["description"] = sod.Description - } - if sod.Structure != nil { - objectMap["structure"] = sod.Structure - } - if sod.Schema != nil { - objectMap["schema"] = sod.Schema - } - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName - } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters - } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations - } - if sod.Folder != nil { - objectMap["folder"] = sod.Folder - } - if sod.Type != "" { - objectMap["type"] = sod.Type - } - for k, v := range sod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return &sod, true -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SalesforceObjectDataset. -func (sod SalesforceObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceObjectDataset struct. -func (sod *SalesforceObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceObjectDatasetTypeProperties SalesforceObjectDatasetTypeProperties - err = json.Unmarshal(*v, &salesforceObjectDatasetTypeProperties) - if err != nil { - return err - } - sod.SalesforceObjectDatasetTypeProperties = &salesforceObjectDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sod.AdditionalProperties == nil { - sod.AdditionalProperties = make(map[string]interface{}) - } - sod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sod.Type = typeVar - } - } - } - - return nil -} - -// SalesforceObjectDatasetTypeProperties salesforce object dataset properties. -type SalesforceObjectDatasetTypeProperties struct { - // ObjectAPIName - The Salesforce object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` -} - -// SalesforceServiceCloudLinkedService linked service for Salesforce Service Cloud. -type SalesforceServiceCloudLinkedService struct { - // SalesforceServiceCloudLinkedServiceTypeProperties - Salesforce Service Cloud linked service properties. - *SalesforceServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { - sscls.Type = TypeBasicLinkedServiceTypeSalesforceServiceCloud - objectMap := make(map[string]interface{}) - if sscls.SalesforceServiceCloudLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sscls.SalesforceServiceCloudLinkedServiceTypeProperties - } - if sscls.ConnectVia != nil { - objectMap["connectVia"] = sscls.ConnectVia - } - if sscls.Description != nil { - objectMap["description"] = sscls.Description - } - if sscls.Parameters != nil { - objectMap["parameters"] = sscls.Parameters - } - if sscls.Annotations != nil { - objectMap["annotations"] = sscls.Annotations - } - if sscls.Type != "" { - objectMap["type"] = sscls.Type - } - for k, v := range sscls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return &sscls, true -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudLinkedService. -func (sscls SalesforceServiceCloudLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sscls, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudLinkedService struct. -func (sscls *SalesforceServiceCloudLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceServiceCloudLinkedServiceTypeProperties SalesforceServiceCloudLinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceServiceCloudLinkedServiceTypeProperties) - if err != nil { - return err - } - sscls.SalesforceServiceCloudLinkedServiceTypeProperties = &salesforceServiceCloudLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sscls.AdditionalProperties == nil { - sscls.AdditionalProperties = make(map[string]interface{}) - } - sscls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sscls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sscls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sscls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sscls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sscls.Type = typeVar - } - } - } - - return nil -} - -// SalesforceServiceCloudLinkedServiceTypeProperties salesforce Service Cloud linked service properties. -type SalesforceServiceCloudLinkedServiceTypeProperties struct { - // EnvironmentURL - 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"` - // Username - The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication of the Salesforce instance. - Password BasicSecretBase `json:"password,omitempty"` - // SecurityToken - The security token is optional to remotely access Salesforce instance. - SecurityToken BasicSecretBase `json:"securityToken,omitempty"` - // APIVersion - The Salesforce API version used in ADF. Type: string (or Expression with resultType string). - APIVersion interface{} `json:"apiVersion,omitempty"` - // ExtendedProperties - Extended properties appended to the connection string. Type: string (or Expression with resultType string). - ExtendedProperties interface{} `json:"extendedProperties,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudLinkedServiceTypeProperties struct. -func (ssclstp *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "environmentUrl": - if v != nil { - var environmentURL interface{} - err = json.Unmarshal(*v, &environmentURL) - if err != nil { - return err - } - ssclstp.EnvironmentURL = environmentURL - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - ssclstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ssclstp.Password = password - } - case "securityToken": - if v != nil { - securityToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - ssclstp.SecurityToken = securityToken - } - case "apiVersion": - if v != nil { - var APIVersion interface{} - err = json.Unmarshal(*v, &APIVersion) - if err != nil { - return err - } - ssclstp.APIVersion = APIVersion - } - case "extendedProperties": - if v != nil { - var extendedProperties interface{} - err = json.Unmarshal(*v, &extendedProperties) - if err != nil { - return err - } - ssclstp.ExtendedProperties = extendedProperties - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - ssclstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SalesforceServiceCloudObjectDataset the Salesforce Service Cloud object dataset. -type SalesforceServiceCloudObjectDataset struct { - // SalesforceServiceCloudObjectDatasetTypeProperties - Salesforce Service Cloud object dataset properties. - *SalesforceServiceCloudObjectDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { - sscod.Type = TypeBasicDatasetTypeSalesforceServiceCloudObject - objectMap := make(map[string]interface{}) - if sscod.SalesforceServiceCloudObjectDatasetTypeProperties != nil { - objectMap["typeProperties"] = sscod.SalesforceServiceCloudObjectDatasetTypeProperties - } - if sscod.Description != nil { - objectMap["description"] = sscod.Description - } - if sscod.Structure != nil { - objectMap["structure"] = sscod.Structure - } - if sscod.Schema != nil { - objectMap["schema"] = sscod.Schema - } - if sscod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sscod.LinkedServiceName - } - if sscod.Parameters != nil { - objectMap["parameters"] = sscod.Parameters - } - if sscod.Annotations != nil { - objectMap["annotations"] = sscod.Annotations - } - if sscod.Folder != nil { - objectMap["folder"] = sscod.Folder - } - if sscod.Type != "" { - objectMap["type"] = sscod.Type - } - for k, v := range sscod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return &sscod, true -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SalesforceServiceCloudObjectDataset. -func (sscod SalesforceServiceCloudObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sscod, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudObjectDataset struct. -func (sscod *SalesforceServiceCloudObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceServiceCloudObjectDatasetTypeProperties SalesforceServiceCloudObjectDatasetTypeProperties - err = json.Unmarshal(*v, &salesforceServiceCloudObjectDatasetTypeProperties) - if err != nil { - return err - } - sscod.SalesforceServiceCloudObjectDatasetTypeProperties = &salesforceServiceCloudObjectDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sscod.AdditionalProperties == nil { - sscod.AdditionalProperties = make(map[string]interface{}) - } - sscod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sscod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sscod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sscod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sscod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sscod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sscod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sscod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sscod.Type = typeVar - } - } - } - - return nil -} - -// SalesforceServiceCloudObjectDatasetTypeProperties salesforce Service Cloud object dataset properties. -type SalesforceServiceCloudObjectDatasetTypeProperties struct { - // ObjectAPIName - The Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` -} - -// SalesforceServiceCloudSink a copy activity Salesforce Service Cloud sink. -type SalesforceServiceCloudSink struct { - // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceSinkWriteBehaviorInsert', 'SalesforceSinkWriteBehaviorUpsert' - WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` - // ExternalIDFieldName - 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"` - // IgnoreNullValues - 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 interface{} `json:"ignoreNullValues,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { - sscs.Type = TypeBasicCopySinkTypeSalesforceServiceCloudSink - objectMap := make(map[string]interface{}) - if sscs.WriteBehavior != "" { - objectMap["writeBehavior"] = sscs.WriteBehavior - } - if sscs.ExternalIDFieldName != nil { - objectMap["externalIdFieldName"] = sscs.ExternalIDFieldName - } - if sscs.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = sscs.IgnoreNullValues - } - if sscs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sscs.WriteBatchSize - } - if sscs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sscs.WriteBatchTimeout - } - if sscs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sscs.SinkRetryCount - } - if sscs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sscs.SinkRetryWait - } - if sscs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections - } - if sscs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sscs.DisableMetricsCollection - } - if sscs.Type != "" { - objectMap["type"] = sscs.Type - } - for k, v := range sscs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return &sscs, true -} - -// AsSalesforceSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SalesforceServiceCloudSink. -func (sscs SalesforceServiceCloudSink) AsBasicCopySink() (BasicCopySink, bool) { - return &sscs, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudSink struct. -func (sscs *SalesforceServiceCloudSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior SalesforceSinkWriteBehavior - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - sscs.WriteBehavior = writeBehavior - } - case "externalIdFieldName": - if v != nil { - var externalIDFieldName interface{} - err = json.Unmarshal(*v, &externalIDFieldName) - if err != nil { - return err - } - sscs.ExternalIDFieldName = externalIDFieldName - } - case "ignoreNullValues": - if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) - if err != nil { - return err - } - sscs.IgnoreNullValues = ignoreNullValues - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sscs.AdditionalProperties == nil { - sscs.AdditionalProperties = make(map[string]interface{}) - } - sscs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - sscs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - sscs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - sscs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - sscs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sscs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sscs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sscs.Type = typeVar - } - } - } - - return nil -} - -// SalesforceServiceCloudSource a copy activity Salesforce Service Cloud source. -type SalesforceServiceCloudSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with resultType string). - ReadBehavior interface{} `json:"readBehavior,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) MarshalJSON() ([]byte, error) { - sscs.Type = TypeBasicCopySourceTypeSalesforceServiceCloudSource - objectMap := make(map[string]interface{}) - if sscs.Query != nil { - objectMap["query"] = sscs.Query - } - if sscs.ReadBehavior != nil { - objectMap["readBehavior"] = sscs.ReadBehavior - } - if sscs.AdditionalColumns != nil { - objectMap["additionalColumns"] = sscs.AdditionalColumns - } - if sscs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sscs.SourceRetryCount - } - if sscs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sscs.SourceRetryWait - } - if sscs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sscs.MaxConcurrentConnections - } - if sscs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sscs.DisableMetricsCollection - } - if sscs.Type != "" { - objectMap["type"] = sscs.Type - } - for k, v := range sscs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return &sscs, true -} - -// AsODataSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SalesforceServiceCloudSource. -func (sscs SalesforceServiceCloudSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sscs, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudSource struct. -func (sscs *SalesforceServiceCloudSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - sscs.Query = query - } - case "readBehavior": - if v != nil { - var readBehavior interface{} - err = json.Unmarshal(*v, &readBehavior) - if err != nil { - return err - } - sscs.ReadBehavior = readBehavior - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sscs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sscs.AdditionalProperties == nil { - sscs.AdditionalProperties = make(map[string]interface{}) - } - sscs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sscs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sscs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sscs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sscs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sscs.Type = typeVar - } - } - } - - return nil -} - -// SalesforceServiceCloudV2LinkedService linked service for Salesforce Service Cloud V2. -type SalesforceServiceCloudV2LinkedService struct { - // SalesforceServiceCloudV2LinkedServiceTypeProperties - Salesforce Service Cloud V2 linked service properties. - *SalesforceServiceCloudV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) MarshalJSON() ([]byte, error) { - sscvls.Type = TypeBasicLinkedServiceTypeSalesforceServiceCloudV2 - objectMap := make(map[string]interface{}) - if sscvls.SalesforceServiceCloudV2LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sscvls.SalesforceServiceCloudV2LinkedServiceTypeProperties - } - if sscvls.ConnectVia != nil { - objectMap["connectVia"] = sscvls.ConnectVia - } - if sscvls.Description != nil { - objectMap["description"] = sscvls.Description - } - if sscvls.Parameters != nil { - objectMap["parameters"] = sscvls.Parameters - } - if sscvls.Annotations != nil { - objectMap["annotations"] = sscvls.Annotations - } - if sscvls.Type != "" { - objectMap["type"] = sscvls.Type - } - for k, v := range sscvls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return &sscvls, true -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceServiceCloudV2LinkedService. -func (sscvls SalesforceServiceCloudV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sscvls, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2LinkedService struct. -func (sscvls *SalesforceServiceCloudV2LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceServiceCloudV2LinkedServiceTypeProperties SalesforceServiceCloudV2LinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceServiceCloudV2LinkedServiceTypeProperties) - if err != nil { - return err - } - sscvls.SalesforceServiceCloudV2LinkedServiceTypeProperties = &salesforceServiceCloudV2LinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sscvls.AdditionalProperties == nil { - sscvls.AdditionalProperties = make(map[string]interface{}) - } - sscvls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sscvls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sscvls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sscvls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sscvls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sscvls.Type = typeVar - } - } - } - - return nil -} - -// SalesforceServiceCloudV2LinkedServiceTypeProperties salesforce Service Cloud V2 linked service -// properties. -type SalesforceServiceCloudV2LinkedServiceTypeProperties struct { - // EnvironmentURL - The URL of Salesforce Service Cloud instance. For example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` - // ClientID - The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // APIVersion - 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 interface{} `json:"apiVersion,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2LinkedServiceTypeProperties struct. -func (sscvlstp *SalesforceServiceCloudV2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "environmentUrl": - if v != nil { - var environmentURL interface{} - err = json.Unmarshal(*v, &environmentURL) - if err != nil { - return err - } - sscvlstp.EnvironmentURL = environmentURL - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - sscvlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sscvlstp.ClientSecret = clientSecret - } - case "apiVersion": - if v != nil { - var APIVersion interface{} - err = json.Unmarshal(*v, &APIVersion) - if err != nil { - return err - } - sscvlstp.APIVersion = APIVersion - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sscvlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SalesforceServiceCloudV2ObjectDataset the Salesforce Service Cloud V2 object dataset. -type SalesforceServiceCloudV2ObjectDataset struct { - // SalesforceServiceCloudV2ObjectDatasetTypeProperties - Salesforce Service Cloud V2 object dataset properties. - *SalesforceServiceCloudV2ObjectDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) MarshalJSON() ([]byte, error) { - sscvod.Type = TypeBasicDatasetTypeSalesforceServiceCloudV2Object - objectMap := make(map[string]interface{}) - if sscvod.SalesforceServiceCloudV2ObjectDatasetTypeProperties != nil { - objectMap["typeProperties"] = sscvod.SalesforceServiceCloudV2ObjectDatasetTypeProperties - } - if sscvod.Description != nil { - objectMap["description"] = sscvod.Description - } - if sscvod.Structure != nil { - objectMap["structure"] = sscvod.Structure - } - if sscvod.Schema != nil { - objectMap["schema"] = sscvod.Schema - } - if sscvod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sscvod.LinkedServiceName - } - if sscvod.Parameters != nil { - objectMap["parameters"] = sscvod.Parameters - } - if sscvod.Annotations != nil { - objectMap["annotations"] = sscvod.Annotations - } - if sscvod.Folder != nil { - objectMap["folder"] = sscvod.Folder - } - if sscvod.Type != "" { - objectMap["type"] = sscvod.Type - } - for k, v := range sscvod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return &sscvod, true -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SalesforceServiceCloudV2ObjectDataset. -func (sscvod SalesforceServiceCloudV2ObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sscvod, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2ObjectDataset struct. -func (sscvod *SalesforceServiceCloudV2ObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceServiceCloudV2ObjectDatasetTypeProperties SalesforceServiceCloudV2ObjectDatasetTypeProperties - err = json.Unmarshal(*v, &salesforceServiceCloudV2ObjectDatasetTypeProperties) - if err != nil { - return err - } - sscvod.SalesforceServiceCloudV2ObjectDatasetTypeProperties = &salesforceServiceCloudV2ObjectDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sscvod.AdditionalProperties == nil { - sscvod.AdditionalProperties = make(map[string]interface{}) - } - sscvod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sscvod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sscvod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sscvod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sscvod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sscvod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sscvod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sscvod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sscvod.Type = typeVar - } - } - } - - return nil -} - -// SalesforceServiceCloudV2ObjectDatasetTypeProperties salesforce Service Cloud V2 object dataset -// properties. -type SalesforceServiceCloudV2ObjectDatasetTypeProperties struct { - // ObjectAPIName - The Salesforce Service Cloud V2 object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` - // ReportID - The Salesforce Service Cloud V2 reportId. Type: string (or Expression with resultType string). - ReportID interface{} `json:"reportId,omitempty"` -} - -// SalesforceServiceCloudV2Sink a copy activity Salesforce Service Cloud V2 sink. -type SalesforceServiceCloudV2Sink struct { - // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceV2SinkWriteBehaviorInsert', 'SalesforceV2SinkWriteBehaviorUpsert' - WriteBehavior SalesforceV2SinkWriteBehavior `json:"writeBehavior,omitempty"` - // ExternalIDFieldName - 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"` - // IgnoreNullValues - 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 interface{} `json:"ignoreNullValues,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) MarshalJSON() ([]byte, error) { - sscvs.Type = TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink - objectMap := make(map[string]interface{}) - if sscvs.WriteBehavior != "" { - objectMap["writeBehavior"] = sscvs.WriteBehavior - } - if sscvs.ExternalIDFieldName != nil { - objectMap["externalIdFieldName"] = sscvs.ExternalIDFieldName - } - if sscvs.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = sscvs.IgnoreNullValues - } - if sscvs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = sscvs.WriteBatchSize - } - if sscvs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = sscvs.WriteBatchTimeout - } - if sscvs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = sscvs.SinkRetryCount - } - if sscvs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = sscvs.SinkRetryWait - } - if sscvs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sscvs.MaxConcurrentConnections - } - if sscvs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sscvs.DisableMetricsCollection - } - if sscvs.Type != "" { - objectMap["type"] = sscvs.Type - } - for k, v := range sscvs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return &sscvs, true -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SalesforceServiceCloudV2Sink. -func (sscvs SalesforceServiceCloudV2Sink) AsBasicCopySink() (BasicCopySink, bool) { - return &sscvs, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2Sink struct. -func (sscvs *SalesforceServiceCloudV2Sink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior SalesforceV2SinkWriteBehavior - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - sscvs.WriteBehavior = writeBehavior - } - case "externalIdFieldName": - if v != nil { - var externalIDFieldName interface{} - err = json.Unmarshal(*v, &externalIDFieldName) - if err != nil { - return err - } - sscvs.ExternalIDFieldName = externalIDFieldName - } - case "ignoreNullValues": - if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) - if err != nil { - return err - } - sscvs.IgnoreNullValues = ignoreNullValues - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sscvs.AdditionalProperties == nil { - sscvs.AdditionalProperties = make(map[string]interface{}) - } - sscvs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - sscvs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - sscvs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - sscvs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - sscvs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sscvs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sscvs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sscvs.Type = typeVar - } - } - } - - return nil -} - -// SalesforceServiceCloudV2Source a copy activity Salesforce Service Cloud V2 source. -type SalesforceServiceCloudV2Source struct { - // SOQLQuery - Database query. Type: string (or Expression with resultType string). - SOQLQuery interface{} `json:"SOQLQuery,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is query. Allowed values: query/queryAll. Type: string (or Expression with resultType string). - ReadBehavior interface{} `json:"readBehavior,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) MarshalJSON() ([]byte, error) { - sscvs.Type = TypeBasicCopySourceTypeSalesforceServiceCloudV2Source - objectMap := make(map[string]interface{}) - if sscvs.SOQLQuery != nil { - objectMap["SOQLQuery"] = sscvs.SOQLQuery - } - if sscvs.ReadBehavior != nil { - objectMap["readBehavior"] = sscvs.ReadBehavior - } - if sscvs.AdditionalColumns != nil { - objectMap["additionalColumns"] = sscvs.AdditionalColumns - } - if sscvs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sscvs.SourceRetryCount - } - if sscvs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sscvs.SourceRetryWait - } - if sscvs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sscvs.MaxConcurrentConnections - } - if sscvs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sscvs.DisableMetricsCollection - } - if sscvs.Type != "" { - objectMap["type"] = sscvs.Type - } - for k, v := range sscvs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return &sscvs, true -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SalesforceServiceCloudV2Source. -func (sscvs SalesforceServiceCloudV2Source) AsBasicCopySource() (BasicCopySource, bool) { - return &sscvs, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceServiceCloudV2Source struct. -func (sscvs *SalesforceServiceCloudV2Source) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "SOQLQuery": - if v != nil { - var sOQLQuery interface{} - err = json.Unmarshal(*v, &sOQLQuery) - if err != nil { - return err - } - sscvs.SOQLQuery = sOQLQuery - } - case "readBehavior": - if v != nil { - var readBehavior interface{} - err = json.Unmarshal(*v, &readBehavior) - if err != nil { - return err - } - sscvs.ReadBehavior = readBehavior - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sscvs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sscvs.AdditionalProperties == nil { - sscvs.AdditionalProperties = make(map[string]interface{}) - } - sscvs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sscvs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sscvs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sscvs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sscvs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sscvs.Type = typeVar - } - } - } - - return nil -} - -// SalesforceSink a copy activity Salesforce sink. -type SalesforceSink struct { - // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceSinkWriteBehaviorInsert', 'SalesforceSinkWriteBehaviorUpsert' - WriteBehavior SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` - // ExternalIDFieldName - 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"` - // IgnoreNullValues - 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 interface{} `json:"ignoreNullValues,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceSink. -func (ss SalesforceSink) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySinkTypeSalesforceSink - objectMap := make(map[string]interface{}) - if ss.WriteBehavior != "" { - objectMap["writeBehavior"] = ss.WriteBehavior - } - if ss.ExternalIDFieldName != nil { - objectMap["externalIdFieldName"] = ss.ExternalIDFieldName - } - if ss.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = ss.IgnoreNullValues - } - if ss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ss.WriteBatchSize - } - if ss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout - } - if ss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ss.SinkRetryCount - } - if ss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ss.SinkRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSalesforceSink() (*SalesforceSink, bool) { - return &ss, true -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SalesforceSink. -func (ss SalesforceSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceSink struct. -func (ss *SalesforceSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior SalesforceSinkWriteBehavior - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - ss.WriteBehavior = writeBehavior - } - case "externalIdFieldName": - if v != nil { - var externalIDFieldName interface{} - err = json.Unmarshal(*v, &externalIDFieldName) - if err != nil { - return err - } - ss.ExternalIDFieldName = externalIDFieldName - } - case "ignoreNullValues": - if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) - if err != nil { - return err - } - ss.IgnoreNullValues = ignoreNullValues - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SalesforceSource a copy activity Salesforce source. -type SalesforceSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is Query. Allowed values: Query/QueryAll. Type: string (or Expression with resultType string). - ReadBehavior interface{} `json:"readBehavior,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceSource. -func (ss SalesforceSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySourceTypeSalesforceSource - objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query - } - if ss.ReadBehavior != nil { - objectMap["readBehavior"] = ss.ReadBehavior - } - if ss.QueryTimeout != nil { - objectMap["queryTimeout"] = ss.QueryTimeout - } - if ss.AdditionalColumns != nil { - objectMap["additionalColumns"] = ss.AdditionalColumns - } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount - } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSalesforceSource() (*SalesforceSource, bool) { - return &ss, true -} - -// AsSapBwSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ss, true -} - -// AsBinarySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SalesforceSource. -func (ss SalesforceSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceSource struct. -func (ss *SalesforceSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ss.Query = query - } - case "readBehavior": - if v != nil { - var readBehavior interface{} - err = json.Unmarshal(*v, &readBehavior) - if err != nil { - return err - } - ss.ReadBehavior = readBehavior - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SalesforceV2LinkedService linked service for Salesforce V2. -type SalesforceV2LinkedService struct { - // SalesforceV2LinkedServiceTypeProperties - Salesforce V2 linked service properties. - *SalesforceV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) MarshalJSON() ([]byte, error) { - svls.Type = TypeBasicLinkedServiceTypeSalesforceV2 - objectMap := make(map[string]interface{}) - if svls.SalesforceV2LinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = svls.SalesforceV2LinkedServiceTypeProperties - } - if svls.ConnectVia != nil { - objectMap["connectVia"] = svls.ConnectVia - } - if svls.Description != nil { - objectMap["description"] = svls.Description - } - if svls.Parameters != nil { - objectMap["parameters"] = svls.Parameters - } - if svls.Annotations != nil { - objectMap["annotations"] = svls.Annotations - } - if svls.Type != "" { - objectMap["type"] = svls.Type - } - for k, v := range svls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return &svls, true -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SalesforceV2LinkedService. -func (svls SalesforceV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &svls, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceV2LinkedService struct. -func (svls *SalesforceV2LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceV2LinkedServiceTypeProperties SalesforceV2LinkedServiceTypeProperties - err = json.Unmarshal(*v, &salesforceV2LinkedServiceTypeProperties) - if err != nil { - return err - } - svls.SalesforceV2LinkedServiceTypeProperties = &salesforceV2LinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if svls.AdditionalProperties == nil { - svls.AdditionalProperties = make(map[string]interface{}) - } - svls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - svls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - svls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - svls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - svls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - svls.Type = typeVar - } - } - } - - return nil -} - -// SalesforceV2LinkedServiceTypeProperties salesforce V2 linked service properties. -type SalesforceV2LinkedServiceTypeProperties struct { - // EnvironmentURL - The URL of Salesforce instance. For example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` - // ClientID - The client Id for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret for OAuth 2.0 Client Credentials Flow authentication of the Salesforce instance. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // APIVersion - 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 interface{} `json:"apiVersion,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceV2LinkedServiceTypeProperties struct. -func (svlstp *SalesforceV2LinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "environmentUrl": - if v != nil { - var environmentURL interface{} - err = json.Unmarshal(*v, &environmentURL) - if err != nil { - return err - } - svlstp.EnvironmentURL = environmentURL - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - svlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - svlstp.ClientSecret = clientSecret - } - case "apiVersion": - if v != nil { - var APIVersion interface{} - err = json.Unmarshal(*v, &APIVersion) - if err != nil { - return err - } - svlstp.APIVersion = APIVersion - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - svlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SalesforceV2ObjectDataset the Salesforce V2 object dataset. -type SalesforceV2ObjectDataset struct { - // SalesforceV2ObjectDatasetTypeProperties - Salesforce V2 object dataset properties. - *SalesforceV2ObjectDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) MarshalJSON() ([]byte, error) { - svod.Type = TypeBasicDatasetTypeSalesforceV2Object - objectMap := make(map[string]interface{}) - if svod.SalesforceV2ObjectDatasetTypeProperties != nil { - objectMap["typeProperties"] = svod.SalesforceV2ObjectDatasetTypeProperties - } - if svod.Description != nil { - objectMap["description"] = svod.Description - } - if svod.Structure != nil { - objectMap["structure"] = svod.Structure - } - if svod.Schema != nil { - objectMap["schema"] = svod.Schema - } - if svod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = svod.LinkedServiceName - } - if svod.Parameters != nil { - objectMap["parameters"] = svod.Parameters - } - if svod.Annotations != nil { - objectMap["annotations"] = svod.Annotations - } - if svod.Folder != nil { - objectMap["folder"] = svod.Folder - } - if svod.Type != "" { - objectMap["type"] = svod.Type - } - for k, v := range svod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return &svod, true -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SalesforceV2ObjectDataset. -func (svod SalesforceV2ObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &svod, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceV2ObjectDataset struct. -func (svod *SalesforceV2ObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var salesforceV2ObjectDatasetTypeProperties SalesforceV2ObjectDatasetTypeProperties - err = json.Unmarshal(*v, &salesforceV2ObjectDatasetTypeProperties) - if err != nil { - return err - } - svod.SalesforceV2ObjectDatasetTypeProperties = &salesforceV2ObjectDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if svod.AdditionalProperties == nil { - svod.AdditionalProperties = make(map[string]interface{}) - } - svod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - svod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - svod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - svod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - svod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - svod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - svod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - svod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - svod.Type = typeVar - } - } - } - - return nil -} - -// SalesforceV2ObjectDatasetTypeProperties salesforce V2 object dataset properties. -type SalesforceV2ObjectDatasetTypeProperties struct { - // ObjectAPIName - The Salesforce V2 object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` - // ReportID - The Salesforce V2 report Id. Type: string (or Expression with resultType string). - ReportID interface{} `json:"reportId,omitempty"` -} - -// SalesforceV2Sink a copy activity Salesforce V2 sink. -type SalesforceV2Sink struct { - // WriteBehavior - The write behavior for the operation. Default is Insert. Possible values include: 'SalesforceV2SinkWriteBehaviorInsert', 'SalesforceV2SinkWriteBehaviorUpsert' - WriteBehavior SalesforceV2SinkWriteBehavior `json:"writeBehavior,omitempty"` - // ExternalIDFieldName - 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"` - // IgnoreNullValues - 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 interface{} `json:"ignoreNullValues,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceV2Sink. -func (svs SalesforceV2Sink) MarshalJSON() ([]byte, error) { - svs.Type = TypeBasicCopySinkTypeSalesforceV2Sink - objectMap := make(map[string]interface{}) - if svs.WriteBehavior != "" { - objectMap["writeBehavior"] = svs.WriteBehavior - } - if svs.ExternalIDFieldName != nil { - objectMap["externalIdFieldName"] = svs.ExternalIDFieldName - } - if svs.IgnoreNullValues != nil { - objectMap["ignoreNullValues"] = svs.IgnoreNullValues - } - if svs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = svs.WriteBatchSize - } - if svs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = svs.WriteBatchTimeout - } - if svs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = svs.SinkRetryCount - } - if svs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = svs.SinkRetryWait - } - if svs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = svs.MaxConcurrentConnections - } - if svs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = svs.DisableMetricsCollection - } - if svs.Type != "" { - objectMap["type"] = svs.Type - } - for k, v := range svs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return &svs, true -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SalesforceV2Sink. -func (svs SalesforceV2Sink) AsBasicCopySink() (BasicCopySink, bool) { - return &svs, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceV2Sink struct. -func (svs *SalesforceV2Sink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior SalesforceV2SinkWriteBehavior - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - svs.WriteBehavior = writeBehavior - } - case "externalIdFieldName": - if v != nil { - var externalIDFieldName interface{} - err = json.Unmarshal(*v, &externalIDFieldName) - if err != nil { - return err - } - svs.ExternalIDFieldName = externalIDFieldName - } - case "ignoreNullValues": - if v != nil { - var ignoreNullValues interface{} - err = json.Unmarshal(*v, &ignoreNullValues) - if err != nil { - return err - } - svs.IgnoreNullValues = ignoreNullValues - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if svs.AdditionalProperties == nil { - svs.AdditionalProperties = make(map[string]interface{}) - } - svs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - svs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - svs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - svs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - svs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - svs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - svs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - svs.Type = typeVar - } - } - } - - return nil -} - -// SalesforceV2Source a copy activity Salesforce V2 source. -type SalesforceV2Source struct { - // SOQLQuery - Database query. Type: string (or Expression with resultType string). - SOQLQuery interface{} `json:"SOQLQuery,omitempty"` - // ReadBehavior - The read behavior for the operation. Default is query. Allowed values: query/queryAll. Type: string (or Expression with resultType string). - ReadBehavior interface{} `json:"readBehavior,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SalesforceV2Source. -func (svs SalesforceV2Source) MarshalJSON() ([]byte, error) { - svs.Type = TypeBasicCopySourceTypeSalesforceV2Source - objectMap := make(map[string]interface{}) - if svs.SOQLQuery != nil { - objectMap["SOQLQuery"] = svs.SOQLQuery - } - if svs.ReadBehavior != nil { - objectMap["readBehavior"] = svs.ReadBehavior - } - if svs.QueryTimeout != nil { - objectMap["queryTimeout"] = svs.QueryTimeout - } - if svs.AdditionalColumns != nil { - objectMap["additionalColumns"] = svs.AdditionalColumns - } - if svs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = svs.SourceRetryCount - } - if svs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = svs.SourceRetryWait - } - if svs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = svs.MaxConcurrentConnections - } - if svs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = svs.DisableMetricsCollection - } - if svs.Type != "" { - objectMap["type"] = svs.Type - } - for k, v := range svs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return &svs, true -} - -// AsWarehouseSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { - return &svs, true -} - -// AsBinarySource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SalesforceV2Source. -func (svs SalesforceV2Source) AsBasicCopySource() (BasicCopySource, bool) { - return &svs, true -} - -// UnmarshalJSON is the custom unmarshaler for SalesforceV2Source struct. -func (svs *SalesforceV2Source) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "SOQLQuery": - if v != nil { - var sOQLQuery interface{} - err = json.Unmarshal(*v, &sOQLQuery) - if err != nil { - return err - } - svs.SOQLQuery = sOQLQuery - } - case "readBehavior": - if v != nil { - var readBehavior interface{} - err = json.Unmarshal(*v, &readBehavior) - if err != nil { - return err - } - svs.ReadBehavior = readBehavior - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - svs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - svs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if svs.AdditionalProperties == nil { - svs.AdditionalProperties = make(map[string]interface{}) - } - svs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - svs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - svs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - svs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - svs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - svs.Type = typeVar - } - } - } - - return nil -} - -// SapBWLinkedService SAP Business Warehouse Linked Service. -type SapBWLinkedService struct { - // SapBWLinkedServiceTypeProperties - Properties specific to this linked service type. - *SapBWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapBWLinkedService. -func (sbls SapBWLinkedService) MarshalJSON() ([]byte, error) { - sbls.Type = TypeBasicLinkedServiceTypeSapBW - objectMap := make(map[string]interface{}) - if sbls.SapBWLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sbls.SapBWLinkedServiceTypeProperties - } - if sbls.ConnectVia != nil { - objectMap["connectVia"] = sbls.ConnectVia - } - if sbls.Description != nil { - objectMap["description"] = sbls.Description - } - if sbls.Parameters != nil { - objectMap["parameters"] = sbls.Parameters - } - if sbls.Annotations != nil { - objectMap["annotations"] = sbls.Annotations - } - if sbls.Type != "" { - objectMap["type"] = sbls.Type - } - for k, v := range sbls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return &sbls, true -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SapBWLinkedService. -func (sbls SapBWLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sbls, true -} - -// UnmarshalJSON is the custom unmarshaler for SapBWLinkedService struct. -func (sbls *SapBWLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapBWLinkedServiceTypeProperties SapBWLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapBWLinkedServiceTypeProperties) - if err != nil { - return err - } - sbls.SapBWLinkedServiceTypeProperties = &sapBWLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sbls.AdditionalProperties == nil { - sbls.AdditionalProperties = make(map[string]interface{}) - } - sbls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sbls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sbls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sbls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sbls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sbls.Type = typeVar - } - } - } - - return nil -} - -// SapBWLinkedServiceTypeProperties properties specific to this linked service type. -type SapBWLinkedServiceTypeProperties struct { - // Server - Host name of the SAP BW instance. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // SystemNumber - 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"` - // ClientID - 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"` - // UserName - Username to access the SAP BW server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP BW server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SapBWLinkedServiceTypeProperties struct. -func (sblstp *SapBWLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - sblstp.Server = server - } - case "systemNumber": - if v != nil { - var systemNumber interface{} - err = json.Unmarshal(*v, &systemNumber) - if err != nil { - return err - } - sblstp.SystemNumber = systemNumber - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - sblstp.ClientID = clientID - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sblstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sblstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sblstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SapBwCubeDataset the SAP BW cube dataset. -type SapBwCubeDataset struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) MarshalJSON() ([]byte, error) { - sbcd.Type = TypeBasicDatasetTypeSapBwCube - objectMap := make(map[string]interface{}) - if sbcd.Description != nil { - objectMap["description"] = sbcd.Description - } - if sbcd.Structure != nil { - objectMap["structure"] = sbcd.Structure - } - if sbcd.Schema != nil { - objectMap["schema"] = sbcd.Schema - } - if sbcd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sbcd.LinkedServiceName - } - if sbcd.Parameters != nil { - objectMap["parameters"] = sbcd.Parameters - } - if sbcd.Annotations != nil { - objectMap["annotations"] = sbcd.Annotations - } - if sbcd.Folder != nil { - objectMap["folder"] = sbcd.Folder - } - if sbcd.Type != "" { - objectMap["type"] = sbcd.Type - } - for k, v := range sbcd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return &sbcd, true -} - -// AsSybaseTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SapBwCubeDataset. -func (sbcd SapBwCubeDataset) AsBasicDataset() (BasicDataset, bool) { - return &sbcd, true -} - -// UnmarshalJSON is the custom unmarshaler for SapBwCubeDataset struct. -func (sbcd *SapBwCubeDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sbcd.AdditionalProperties == nil { - sbcd.AdditionalProperties = make(map[string]interface{}) - } - sbcd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sbcd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sbcd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sbcd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sbcd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sbcd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sbcd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sbcd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sbcd.Type = typeVar - } - } - } - - return nil -} - -// SapBwSource a copy activity source for SapBW server via MDX. -type SapBwSource struct { - // Query - MDX query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapBwSource. -func (sbs SapBwSource) MarshalJSON() ([]byte, error) { - sbs.Type = TypeBasicCopySourceTypeSapBwSource - objectMap := make(map[string]interface{}) - if sbs.Query != nil { - objectMap["query"] = sbs.Query - } - if sbs.QueryTimeout != nil { - objectMap["queryTimeout"] = sbs.QueryTimeout - } - if sbs.AdditionalColumns != nil { - objectMap["additionalColumns"] = sbs.AdditionalColumns - } - if sbs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sbs.SourceRetryCount - } - if sbs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sbs.SourceRetryWait - } - if sbs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sbs.MaxConcurrentConnections - } - if sbs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sbs.DisableMetricsCollection - } - if sbs.Type != "" { - objectMap["type"] = sbs.Type - } - for k, v := range sbs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSapBwSource() (*SapBwSource, bool) { - return &sbs, true -} - -// AsSybaseSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sbs, true -} - -// AsBinarySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SapBwSource. -func (sbs SapBwSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sbs, true -} - -// UnmarshalJSON is the custom unmarshaler for SapBwSource struct. -func (sbs *SapBwSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - sbs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sbs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sbs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sbs.AdditionalProperties == nil { - sbs.AdditionalProperties = make(map[string]interface{}) - } - sbs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sbs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sbs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sbs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sbs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sbs.Type = typeVar - } - } - } - - return nil -} - -// SapCloudForCustomerLinkedService linked service for SAP Cloud for Customer. -type SapCloudForCustomerLinkedService struct { - // SapCloudForCustomerLinkedServiceTypeProperties - SAP Cloud for Customer linked service properties. - *SapCloudForCustomerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error) { - scfcls.Type = TypeBasicLinkedServiceTypeSapCloudForCustomer - objectMap := make(map[string]interface{}) - if scfcls.SapCloudForCustomerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = scfcls.SapCloudForCustomerLinkedServiceTypeProperties - } - if scfcls.ConnectVia != nil { - objectMap["connectVia"] = scfcls.ConnectVia - } - if scfcls.Description != nil { - objectMap["description"] = scfcls.Description - } - if scfcls.Parameters != nil { - objectMap["parameters"] = scfcls.Parameters - } - if scfcls.Annotations != nil { - objectMap["annotations"] = scfcls.Annotations - } - if scfcls.Type != "" { - objectMap["type"] = scfcls.Type - } - for k, v := range scfcls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return &scfcls, true -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SapCloudForCustomerLinkedService. -func (scfcls SapCloudForCustomerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &scfcls, true -} - -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedService struct. -func (scfcls *SapCloudForCustomerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapCloudForCustomerLinkedServiceTypeProperties SapCloudForCustomerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapCloudForCustomerLinkedServiceTypeProperties) - if err != nil { - return err - } - scfcls.SapCloudForCustomerLinkedServiceTypeProperties = &sapCloudForCustomerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if scfcls.AdditionalProperties == nil { - scfcls.AdditionalProperties = make(map[string]interface{}) - } - scfcls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - scfcls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - scfcls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - scfcls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - scfcls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - scfcls.Type = typeVar - } - } - } - - return nil -} - -// SapCloudForCustomerLinkedServiceTypeProperties SAP Cloud for Customer linked service properties. -type SapCloudForCustomerLinkedServiceTypeProperties struct { - // URL - 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"` - // Username - The username for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - 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 `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerLinkedServiceTypeProperties struct. -func (scfclstp *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - scfclstp.URL = URL - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - scfclstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - scfclstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - scfclstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SapCloudForCustomerResourceDataset the path of the SAP Cloud for Customer OData entity. -type SapCloudForCustomerResourceDataset struct { - // SapCloudForCustomerResourceDatasetTypeProperties - SAP Cloud For Customer OData resource dataset properties. - *SapCloudForCustomerResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) MarshalJSON() ([]byte, error) { - scfcrd.Type = TypeBasicDatasetTypeSapCloudForCustomerResource - objectMap := make(map[string]interface{}) - if scfcrd.SapCloudForCustomerResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = scfcrd.SapCloudForCustomerResourceDatasetTypeProperties - } - if scfcrd.Description != nil { - objectMap["description"] = scfcrd.Description - } - if scfcrd.Structure != nil { - objectMap["structure"] = scfcrd.Structure - } - if scfcrd.Schema != nil { - objectMap["schema"] = scfcrd.Schema - } - if scfcrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = scfcrd.LinkedServiceName - } - if scfcrd.Parameters != nil { - objectMap["parameters"] = scfcrd.Parameters - } - if scfcrd.Annotations != nil { - objectMap["annotations"] = scfcrd.Annotations - } - if scfcrd.Folder != nil { - objectMap["folder"] = scfcrd.Folder - } - if scfcrd.Type != "" { - objectMap["type"] = scfcrd.Type - } - for k, v := range scfcrd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return &scfcrd, true -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SapCloudForCustomerResourceDataset. -func (scfcrd SapCloudForCustomerResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &scfcrd, true -} - -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerResourceDataset struct. -func (scfcrd *SapCloudForCustomerResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapCloudForCustomerResourceDatasetTypeProperties SapCloudForCustomerResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapCloudForCustomerResourceDatasetTypeProperties) - if err != nil { - return err - } - scfcrd.SapCloudForCustomerResourceDatasetTypeProperties = &sapCloudForCustomerResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if scfcrd.AdditionalProperties == nil { - scfcrd.AdditionalProperties = make(map[string]interface{}) - } - scfcrd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - scfcrd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - scfcrd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - scfcrd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - scfcrd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - scfcrd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - scfcrd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - scfcrd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - scfcrd.Type = typeVar - } - } - } - - return nil -} - -// SapCloudForCustomerResourceDatasetTypeProperties sap Cloud For Customer OData resource dataset -// properties. -type SapCloudForCustomerResourceDatasetTypeProperties struct { - // Path - The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// SapCloudForCustomerSink a copy activity SAP Cloud for Customer sink. -type SapCloudForCustomerSink struct { - // WriteBehavior - The write behavior for the operation. Default is 'Insert'. Possible values include: 'SapCloudForCustomerSinkWriteBehaviorInsert', 'SapCloudForCustomerSinkWriteBehaviorUpdate' - WriteBehavior SapCloudForCustomerSinkWriteBehavior `json:"writeBehavior,omitempty"` - // HTTPRequestTimeout - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { - scfcs.Type = TypeBasicCopySinkTypeSapCloudForCustomerSink - objectMap := make(map[string]interface{}) - if scfcs.WriteBehavior != "" { - objectMap["writeBehavior"] = scfcs.WriteBehavior - } - if scfcs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = scfcs.HTTPRequestTimeout - } - if scfcs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = scfcs.WriteBatchSize - } - if scfcs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = scfcs.WriteBatchTimeout - } - if scfcs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = scfcs.SinkRetryCount - } - if scfcs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = scfcs.SinkRetryWait - } - if scfcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections - } - if scfcs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = scfcs.DisableMetricsCollection - } - if scfcs.Type != "" { - objectMap["type"] = scfcs.Type - } - for k, v := range scfcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return &scfcs, true -} - -// AsWarehouseSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SapCloudForCustomerSink. -func (scfcs SapCloudForCustomerSink) AsBasicCopySink() (BasicCopySink, bool) { - return &scfcs, true -} - -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerSink struct. -func (scfcs *SapCloudForCustomerSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "writeBehavior": - if v != nil { - var writeBehavior SapCloudForCustomerSinkWriteBehavior - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - scfcs.WriteBehavior = writeBehavior - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - scfcs.HTTPRequestTimeout = HTTPRequestTimeout - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if scfcs.AdditionalProperties == nil { - scfcs.AdditionalProperties = make(map[string]interface{}) - } - scfcs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - scfcs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - scfcs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - scfcs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - scfcs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - scfcs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - scfcs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - scfcs.Type = typeVar - } - } - } - - return nil -} - -// SapCloudForCustomerSource a copy activity source for SAP Cloud for Customer source. -type SapCloudForCustomerSource struct { - // Query - SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // HTTPRequestTimeout - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) MarshalJSON() ([]byte, error) { - scfcs.Type = TypeBasicCopySourceTypeSapCloudForCustomerSource - objectMap := make(map[string]interface{}) - if scfcs.Query != nil { - objectMap["query"] = scfcs.Query - } - if scfcs.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = scfcs.HTTPRequestTimeout - } - if scfcs.QueryTimeout != nil { - objectMap["queryTimeout"] = scfcs.QueryTimeout - } - if scfcs.AdditionalColumns != nil { - objectMap["additionalColumns"] = scfcs.AdditionalColumns - } - if scfcs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = scfcs.SourceRetryCount - } - if scfcs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = scfcs.SourceRetryWait - } - if scfcs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = scfcs.MaxConcurrentConnections - } - if scfcs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = scfcs.DisableMetricsCollection - } - if scfcs.Type != "" { - objectMap["type"] = scfcs.Type - } - for k, v := range scfcs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return &scfcs, true -} - -// AsSalesforceSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &scfcs, true -} - -// AsBinarySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SapCloudForCustomerSource. -func (scfcs SapCloudForCustomerSource) AsBasicCopySource() (BasicCopySource, bool) { - return &scfcs, true -} - -// UnmarshalJSON is the custom unmarshaler for SapCloudForCustomerSource struct. -func (scfcs *SapCloudForCustomerSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - scfcs.Query = query - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - scfcs.HTTPRequestTimeout = HTTPRequestTimeout - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - scfcs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - scfcs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if scfcs.AdditionalProperties == nil { - scfcs.AdditionalProperties = make(map[string]interface{}) - } - scfcs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - scfcs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - scfcs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - scfcs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - scfcs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - scfcs.Type = typeVar - } - } - } - - return nil -} - -// SapEccLinkedService linked service for SAP ERP Central Component(SAP ECC). -type SapEccLinkedService struct { - // SapEccLinkedServiceTypeProperties - SAP ECC linked service properties. - *SapEccLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapEccLinkedService. -func (sels SapEccLinkedService) MarshalJSON() ([]byte, error) { - sels.Type = TypeBasicLinkedServiceTypeSapEcc - objectMap := make(map[string]interface{}) - if sels.SapEccLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sels.SapEccLinkedServiceTypeProperties - } - if sels.ConnectVia != nil { - objectMap["connectVia"] = sels.ConnectVia - } - if sels.Description != nil { - objectMap["description"] = sels.Description - } - if sels.Parameters != nil { - objectMap["parameters"] = sels.Parameters - } - if sels.Annotations != nil { - objectMap["annotations"] = sels.Annotations - } - if sels.Type != "" { - objectMap["type"] = sels.Type - } - for k, v := range sels.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return &sels, true -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SapEccLinkedService. -func (sels SapEccLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sels, true -} - -// UnmarshalJSON is the custom unmarshaler for SapEccLinkedService struct. -func (sels *SapEccLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapEccLinkedServiceTypeProperties SapEccLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapEccLinkedServiceTypeProperties) - if err != nil { - return err - } - sels.SapEccLinkedServiceTypeProperties = &sapEccLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sels.AdditionalProperties == nil { - sels.AdditionalProperties = make(map[string]interface{}) - } - sels.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sels.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sels.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sels.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sels.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sels.Type = typeVar - } - } - } - - return nil -} - -// SapEccLinkedServiceTypeProperties SAP ECC linked service properties. -type SapEccLinkedServiceTypeProperties struct { - // URL - 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 interface{} `json:"url,omitempty"` - // Username - The username for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - 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 `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SapEccLinkedServiceTypeProperties struct. -func (selstp *SapEccLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - selstp.URL = URL - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - selstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - selstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - selstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SapEccResourceDataset the path of the SAP ECC OData entity. -type SapEccResourceDataset struct { - // SapEccResourceDatasetTypeProperties - SAP ECC OData resource dataset properties. - *SapEccResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapEccResourceDataset. -func (serd SapEccResourceDataset) MarshalJSON() ([]byte, error) { - serd.Type = TypeBasicDatasetTypeSapEccResource - objectMap := make(map[string]interface{}) - if serd.SapEccResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = serd.SapEccResourceDatasetTypeProperties - } - if serd.Description != nil { - objectMap["description"] = serd.Description - } - if serd.Structure != nil { - objectMap["structure"] = serd.Structure - } - if serd.Schema != nil { - objectMap["schema"] = serd.Schema - } - if serd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = serd.LinkedServiceName - } - if serd.Parameters != nil { - objectMap["parameters"] = serd.Parameters - } - if serd.Annotations != nil { - objectMap["annotations"] = serd.Annotations - } - if serd.Folder != nil { - objectMap["folder"] = serd.Folder - } - if serd.Type != "" { - objectMap["type"] = serd.Type - } - for k, v := range serd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return &serd, true -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SapEccResourceDataset. -func (serd SapEccResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &serd, true -} - -// UnmarshalJSON is the custom unmarshaler for SapEccResourceDataset struct. -func (serd *SapEccResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapEccResourceDatasetTypeProperties SapEccResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapEccResourceDatasetTypeProperties) - if err != nil { - return err - } - serd.SapEccResourceDatasetTypeProperties = &sapEccResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if serd.AdditionalProperties == nil { - serd.AdditionalProperties = make(map[string]interface{}) - } - serd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - serd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - serd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - serd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - serd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - serd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - serd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - serd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - serd.Type = typeVar - } - } - } - - return nil -} - -// SapEccResourceDatasetTypeProperties sap ECC OData resource dataset properties. -type SapEccResourceDatasetTypeProperties struct { - // Path - The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// SapEccSource a copy activity source for SAP ECC source. -type SapEccSource struct { - // Query - SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // HTTPRequestTimeout - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapEccSource. -func (ses SapEccSource) MarshalJSON() ([]byte, error) { - ses.Type = TypeBasicCopySourceTypeSapEccSource - objectMap := make(map[string]interface{}) - if ses.Query != nil { - objectMap["query"] = ses.Query - } - if ses.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = ses.HTTPRequestTimeout - } - if ses.QueryTimeout != nil { - objectMap["queryTimeout"] = ses.QueryTimeout - } - if ses.AdditionalColumns != nil { - objectMap["additionalColumns"] = ses.AdditionalColumns - } - if ses.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ses.SourceRetryCount - } - if ses.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ses.SourceRetryWait - } - if ses.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ses.MaxConcurrentConnections - } - if ses.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ses.DisableMetricsCollection - } - if ses.Type != "" { - objectMap["type"] = ses.Type - } - for k, v := range ses.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapEccSource() (*SapEccSource, bool) { - return &ses, true -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ses, true -} - -// AsBinarySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SapEccSource. -func (ses SapEccSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ses, true -} - -// UnmarshalJSON is the custom unmarshaler for SapEccSource struct. -func (ses *SapEccSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ses.Query = query - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - ses.HTTPRequestTimeout = HTTPRequestTimeout - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ses.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ses.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ses.AdditionalProperties == nil { - ses.AdditionalProperties = make(map[string]interface{}) - } - ses.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ses.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ses.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ses.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ses.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ses.Type = typeVar - } - } - } - - return nil -} - -// SapHanaLinkedService SAP HANA Linked Service. -type SapHanaLinkedService struct { - // SapHanaLinkedServiceProperties - Properties specific to this linked service type. - *SapHanaLinkedServiceProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapHanaLinkedService. -func (shls SapHanaLinkedService) MarshalJSON() ([]byte, error) { - shls.Type = TypeBasicLinkedServiceTypeSapHana - objectMap := make(map[string]interface{}) - if shls.SapHanaLinkedServiceProperties != nil { - objectMap["typeProperties"] = shls.SapHanaLinkedServiceProperties - } - if shls.ConnectVia != nil { - objectMap["connectVia"] = shls.ConnectVia - } - if shls.Description != nil { - objectMap["description"] = shls.Description - } - if shls.Parameters != nil { - objectMap["parameters"] = shls.Parameters - } - if shls.Annotations != nil { - objectMap["annotations"] = shls.Annotations - } - if shls.Type != "" { - objectMap["type"] = shls.Type - } - for k, v := range shls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return &shls, true -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SapHanaLinkedService. -func (shls SapHanaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &shls, true -} - -// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedService struct. -func (shls *SapHanaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapHanaLinkedServiceProperties SapHanaLinkedServiceProperties - err = json.Unmarshal(*v, &sapHanaLinkedServiceProperties) - if err != nil { - return err - } - shls.SapHanaLinkedServiceProperties = &sapHanaLinkedServiceProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shls.AdditionalProperties == nil { - shls.AdditionalProperties = make(map[string]interface{}) - } - shls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - shls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - shls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - shls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - shls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - shls.Type = typeVar - } - } - } - - return nil -} - -// SapHanaLinkedServiceProperties properties specific to this linked service type. -type SapHanaLinkedServiceProperties struct { - // ConnectionString - SAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Server - Host name of the SAP HANA server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // AuthenticationType - The authentication type to be used to connect to the SAP HANA server. Possible values include: 'SapHanaAuthenticationTypeBasic', 'SapHanaAuthenticationTypeWindows' - AuthenticationType SapHanaAuthenticationType `json:"authenticationType,omitempty"` - // UserName - Username to access the SAP HANA server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP HANA server. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SapHanaLinkedServiceProperties struct. -func (shlsp *SapHanaLinkedServiceProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - shlsp.ConnectionString = connectionString - } - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - shlsp.Server = server - } - case "authenticationType": - if v != nil { - var authenticationType SapHanaAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - shlsp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - shlsp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - shlsp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - shlsp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SapHanaPartitionSettings the settings that will be leveraged for SAP HANA source partitioning. -type SapHanaPartitionSettings struct { - // PartitionColumnName - 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"` -} - -// SapHanaSource a copy activity source for SAP HANA source. -type SapHanaSource struct { - // Query - SAP HANA Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // PacketSize - The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). - PacketSize interface{} `json:"packetSize,omitempty"` - // PartitionOption - The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for SAP HANA source partitioning. - PartitionSettings *SapHanaPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapHanaSource. -func (shs SapHanaSource) MarshalJSON() ([]byte, error) { - shs.Type = TypeBasicCopySourceTypeSapHanaSource - objectMap := make(map[string]interface{}) - if shs.Query != nil { - objectMap["query"] = shs.Query - } - if shs.PacketSize != nil { - objectMap["packetSize"] = shs.PacketSize - } - if shs.PartitionOption != nil { - objectMap["partitionOption"] = shs.PartitionOption - } - if shs.PartitionSettings != nil { - objectMap["partitionSettings"] = shs.PartitionSettings - } - if shs.QueryTimeout != nil { - objectMap["queryTimeout"] = shs.QueryTimeout - } - if shs.AdditionalColumns != nil { - objectMap["additionalColumns"] = shs.AdditionalColumns - } - if shs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = shs.SourceRetryCount - } - if shs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = shs.SourceRetryWait - } - if shs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = shs.MaxConcurrentConnections - } - if shs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = shs.DisableMetricsCollection - } - if shs.Type != "" { - objectMap["type"] = shs.Type - } - for k, v := range shs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapHanaSource() (*SapHanaSource, bool) { - return &shs, true -} - -// AsSapEccSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &shs, true -} - -// AsBinarySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SapHanaSource. -func (shs SapHanaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &shs, true -} - -// UnmarshalJSON is the custom unmarshaler for SapHanaSource struct. -func (shs *SapHanaSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - shs.Query = query - } - case "packetSize": - if v != nil { - var packetSize interface{} - err = json.Unmarshal(*v, &packetSize) - if err != nil { - return err - } - shs.PacketSize = packetSize - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - shs.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SapHanaPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - shs.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - shs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - shs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shs.AdditionalProperties == nil { - shs.AdditionalProperties = make(map[string]interface{}) - } - shs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - shs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - shs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - shs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - shs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - shs.Type = typeVar - } - } - } - - return nil -} - -// SapHanaTableDataset SAP HANA Table properties. -type SapHanaTableDataset struct { - // SapHanaTableDatasetTypeProperties - SAP HANA Table properties. - *SapHanaTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapHanaTableDataset. -func (shtd SapHanaTableDataset) MarshalJSON() ([]byte, error) { - shtd.Type = TypeBasicDatasetTypeSapHanaTable - objectMap := make(map[string]interface{}) - if shtd.SapHanaTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = shtd.SapHanaTableDatasetTypeProperties - } - if shtd.Description != nil { - objectMap["description"] = shtd.Description - } - if shtd.Structure != nil { - objectMap["structure"] = shtd.Structure - } - if shtd.Schema != nil { - objectMap["schema"] = shtd.Schema - } - if shtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = shtd.LinkedServiceName - } - if shtd.Parameters != nil { - objectMap["parameters"] = shtd.Parameters - } - if shtd.Annotations != nil { - objectMap["annotations"] = shtd.Annotations - } - if shtd.Folder != nil { - objectMap["folder"] = shtd.Folder - } - if shtd.Type != "" { - objectMap["type"] = shtd.Type - } - for k, v := range shtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return &shtd, true -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SapHanaTableDataset. -func (shtd SapHanaTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &shtd, true -} - -// UnmarshalJSON is the custom unmarshaler for SapHanaTableDataset struct. -func (shtd *SapHanaTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapHanaTableDatasetTypeProperties SapHanaTableDatasetTypeProperties - err = json.Unmarshal(*v, &sapHanaTableDatasetTypeProperties) - if err != nil { - return err - } - shtd.SapHanaTableDatasetTypeProperties = &sapHanaTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shtd.AdditionalProperties == nil { - shtd.AdditionalProperties = make(map[string]interface{}) - } - shtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - shtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - shtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - shtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - shtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - shtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - shtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - shtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - shtd.Type = typeVar - } - } - } - - return nil -} - -// SapHanaTableDatasetTypeProperties SAP HANA Table properties. -type SapHanaTableDatasetTypeProperties struct { - // Schema - The schema name of SAP HANA. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of SAP HANA. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// SapOdpLinkedService SAP ODP Linked Service. -type SapOdpLinkedService struct { - // SapOdpLinkedServiceTypeProperties - Properties specific to SAP ODP linked service type. - *SapOdpLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapOdpLinkedService. -func (sols SapOdpLinkedService) MarshalJSON() ([]byte, error) { - sols.Type = TypeBasicLinkedServiceTypeSapOdp - objectMap := make(map[string]interface{}) - if sols.SapOdpLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sols.SapOdpLinkedServiceTypeProperties - } - if sols.ConnectVia != nil { - objectMap["connectVia"] = sols.ConnectVia - } - if sols.Description != nil { - objectMap["description"] = sols.Description - } - if sols.Parameters != nil { - objectMap["parameters"] = sols.Parameters - } - if sols.Annotations != nil { - objectMap["annotations"] = sols.Annotations - } - if sols.Type != "" { - objectMap["type"] = sols.Type - } - for k, v := range sols.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return &sols, true -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SapOdpLinkedService. -func (sols SapOdpLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sols, true -} - -// UnmarshalJSON is the custom unmarshaler for SapOdpLinkedService struct. -func (sols *SapOdpLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapOdpLinkedServiceTypeProperties SapOdpLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapOdpLinkedServiceTypeProperties) - if err != nil { - return err - } - sols.SapOdpLinkedServiceTypeProperties = &sapOdpLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sols.AdditionalProperties == nil { - sols.AdditionalProperties = make(map[string]interface{}) - } - sols.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sols.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sols.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sols.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sols.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sols.Type = typeVar - } - } - } - - return nil -} - -// SapOdpLinkedServiceTypeProperties properties specific to this linked service type. -type SapOdpLinkedServiceTypeProperties struct { - // Server - Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // SystemNumber - 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"` - // ClientID - 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"` - // Language - 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"` - // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` - // UserName - Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP server where the table is located. - Password BasicSecretBase `json:"password,omitempty"` - // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` - // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` - // SncMode - 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"` - // SncMyName - 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"` - // SncPartnerName - 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"` - // SncLibraryPath - 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"` - // SncQop - SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). - SncQop interface{} `json:"sncQop,omitempty"` - // X509CertificatePath - SNC X509 certificate file path. Type: string (or Expression with resultType string). - X509CertificatePath interface{} `json:"x509CertificatePath,omitempty"` - // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` - // SubscriberName - The subscriber name. Type: string (or Expression with resultType string). - SubscriberName interface{} `json:"subscriberName,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SapOdpLinkedServiceTypeProperties struct. -func (solstp *SapOdpLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - solstp.Server = server - } - case "systemNumber": - if v != nil { - var systemNumber interface{} - err = json.Unmarshal(*v, &systemNumber) - if err != nil { - return err - } - solstp.SystemNumber = systemNumber - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - solstp.ClientID = clientID - } - case "language": - if v != nil { - var language interface{} - err = json.Unmarshal(*v, &language) - if err != nil { - return err - } - solstp.Language = language - } - case "systemId": - if v != nil { - var systemID interface{} - err = json.Unmarshal(*v, &systemID) - if err != nil { - return err - } - solstp.SystemID = systemID - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - solstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - solstp.Password = password - } - case "messageServer": - if v != nil { - var messageServer interface{} - err = json.Unmarshal(*v, &messageServer) - if err != nil { - return err - } - solstp.MessageServer = messageServer - } - case "messageServerService": - if v != nil { - var messageServerService interface{} - err = json.Unmarshal(*v, &messageServerService) - if err != nil { - return err - } - solstp.MessageServerService = messageServerService - } - case "sncMode": - if v != nil { - var sncMode interface{} - err = json.Unmarshal(*v, &sncMode) - if err != nil { - return err - } - solstp.SncMode = sncMode - } - case "sncMyName": - if v != nil { - var sncMyName interface{} - err = json.Unmarshal(*v, &sncMyName) - if err != nil { - return err - } - solstp.SncMyName = sncMyName - } - case "sncPartnerName": - if v != nil { - var sncPartnerName interface{} - err = json.Unmarshal(*v, &sncPartnerName) - if err != nil { - return err - } - solstp.SncPartnerName = sncPartnerName - } - case "sncLibraryPath": - if v != nil { - var sncLibraryPath interface{} - err = json.Unmarshal(*v, &sncLibraryPath) - if err != nil { - return err - } - solstp.SncLibraryPath = sncLibraryPath - } - case "sncQop": - if v != nil { - var sncQop interface{} - err = json.Unmarshal(*v, &sncQop) - if err != nil { - return err - } - solstp.SncQop = sncQop - } - case "x509CertificatePath": - if v != nil { - var x509CertificatePath interface{} - err = json.Unmarshal(*v, &x509CertificatePath) - if err != nil { - return err - } - solstp.X509CertificatePath = x509CertificatePath - } - case "logonGroup": - if v != nil { - var logonGroup interface{} - err = json.Unmarshal(*v, &logonGroup) - if err != nil { - return err - } - solstp.LogonGroup = logonGroup - } - case "subscriberName": - if v != nil { - var subscriberName interface{} - err = json.Unmarshal(*v, &subscriberName) - if err != nil { - return err - } - solstp.SubscriberName = subscriberName - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - solstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SapOdpResourceDataset SAP ODP Resource properties. -type SapOdpResourceDataset struct { - // SapOdpResourceDatasetTypeProperties - SAP ODP Resource properties. - *SapOdpResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) MarshalJSON() ([]byte, error) { - sord.Type = TypeBasicDatasetTypeSapOdpResource - objectMap := make(map[string]interface{}) - if sord.SapOdpResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = sord.SapOdpResourceDatasetTypeProperties - } - if sord.Description != nil { - objectMap["description"] = sord.Description - } - if sord.Structure != nil { - objectMap["structure"] = sord.Structure - } - if sord.Schema != nil { - objectMap["schema"] = sord.Schema - } - if sord.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sord.LinkedServiceName - } - if sord.Parameters != nil { - objectMap["parameters"] = sord.Parameters - } - if sord.Annotations != nil { - objectMap["annotations"] = sord.Annotations - } - if sord.Folder != nil { - objectMap["folder"] = sord.Folder - } - if sord.Type != "" { - objectMap["type"] = sord.Type - } - for k, v := range sord.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return &sord, true -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SapOdpResourceDataset. -func (sord SapOdpResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &sord, true -} - -// UnmarshalJSON is the custom unmarshaler for SapOdpResourceDataset struct. -func (sord *SapOdpResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapOdpResourceDatasetTypeProperties SapOdpResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapOdpResourceDatasetTypeProperties) - if err != nil { - return err - } - sord.SapOdpResourceDatasetTypeProperties = &sapOdpResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sord.AdditionalProperties == nil { - sord.AdditionalProperties = make(map[string]interface{}) - } - sord.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sord.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sord.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sord.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sord.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sord.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sord.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sord.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sord.Type = typeVar - } - } - } - - return nil -} - -// SapOdpResourceDatasetTypeProperties SAP ODP Resource properties. -type SapOdpResourceDatasetTypeProperties struct { - // Context - The context of the SAP ODP Object. Type: string (or Expression with resultType string). - Context interface{} `json:"context,omitempty"` - // ObjectName - The name of the SAP ODP Object. Type: string (or Expression with resultType string). - ObjectName interface{} `json:"objectName,omitempty"` -} - -// SapOdpSource a copy activity source for SAP ODP source. -type SapOdpSource struct { - // ExtractionMode - 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"` - // SubscriberProcess - The subscriber process to manage the delta process. Type: string (or Expression with resultType string). - SubscriberProcess interface{} `json:"subscriberProcess,omitempty"` - // Selection - Specifies the selection conditions from source data. Type: array of objects(selection) (or Expression with resultType array of objects). - Selection interface{} `json:"selection,omitempty"` - // Projection - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapOdpSource. -func (sos SapOdpSource) MarshalJSON() ([]byte, error) { - sos.Type = TypeBasicCopySourceTypeSapOdpSource - objectMap := make(map[string]interface{}) - if sos.ExtractionMode != nil { - objectMap["extractionMode"] = sos.ExtractionMode - } - if sos.SubscriberProcess != nil { - objectMap["subscriberProcess"] = sos.SubscriberProcess - } - if sos.Selection != nil { - objectMap["selection"] = sos.Selection - } - if sos.Projection != nil { - objectMap["projection"] = sos.Projection - } - if sos.QueryTimeout != nil { - objectMap["queryTimeout"] = sos.QueryTimeout - } - if sos.AdditionalColumns != nil { - objectMap["additionalColumns"] = sos.AdditionalColumns - } - if sos.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sos.SourceRetryCount - } - if sos.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sos.SourceRetryWait - } - if sos.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sos.MaxConcurrentConnections - } - if sos.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sos.DisableMetricsCollection - } - if sos.Type != "" { - objectMap["type"] = sos.Type - } - for k, v := range sos.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSapOdpSource() (*SapOdpSource, bool) { - return &sos, true -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sos, true -} - -// AsBinarySource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SapOdpSource. -func (sos SapOdpSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sos, true -} - -// UnmarshalJSON is the custom unmarshaler for SapOdpSource struct. -func (sos *SapOdpSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "extractionMode": - if v != nil { - var extractionMode interface{} - err = json.Unmarshal(*v, &extractionMode) - if err != nil { - return err - } - sos.ExtractionMode = extractionMode - } - case "subscriberProcess": - if v != nil { - var subscriberProcess interface{} - err = json.Unmarshal(*v, &subscriberProcess) - if err != nil { - return err - } - sos.SubscriberProcess = subscriberProcess - } - case "selection": - if v != nil { - var selection interface{} - err = json.Unmarshal(*v, &selection) - if err != nil { - return err - } - sos.Selection = selection - } - case "projection": - if v != nil { - var projection interface{} - err = json.Unmarshal(*v, &projection) - if err != nil { - return err - } - sos.Projection = projection - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sos.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sos.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sos.AdditionalProperties == nil { - sos.AdditionalProperties = make(map[string]interface{}) - } - sos.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sos.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sos.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sos.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sos.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sos.Type = typeVar - } - } - } - - return nil -} - -// SapOpenHubLinkedService SAP Business Warehouse Open Hub Destination Linked Service. -type SapOpenHubLinkedService struct { - // SapOpenHubLinkedServiceTypeProperties - Properties specific to SAP Business Warehouse Open Hub Destination linked service type. - *SapOpenHubLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) MarshalJSON() ([]byte, error) { - sohls.Type = TypeBasicLinkedServiceTypeSapOpenHub - objectMap := make(map[string]interface{}) - if sohls.SapOpenHubLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sohls.SapOpenHubLinkedServiceTypeProperties - } - if sohls.ConnectVia != nil { - objectMap["connectVia"] = sohls.ConnectVia - } - if sohls.Description != nil { - objectMap["description"] = sohls.Description - } - if sohls.Parameters != nil { - objectMap["parameters"] = sohls.Parameters - } - if sohls.Annotations != nil { - objectMap["annotations"] = sohls.Annotations - } - if sohls.Type != "" { - objectMap["type"] = sohls.Type - } - for k, v := range sohls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return &sohls, true -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SapOpenHubLinkedService. -func (sohls SapOpenHubLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sohls, true -} - -// UnmarshalJSON is the custom unmarshaler for SapOpenHubLinkedService struct. -func (sohls *SapOpenHubLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapOpenHubLinkedServiceTypeProperties SapOpenHubLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapOpenHubLinkedServiceTypeProperties) - if err != nil { - return err - } - sohls.SapOpenHubLinkedServiceTypeProperties = &sapOpenHubLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sohls.AdditionalProperties == nil { - sohls.AdditionalProperties = make(map[string]interface{}) - } - sohls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sohls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sohls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sohls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sohls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sohls.Type = typeVar - } - } - } - - return nil -} - -// SapOpenHubLinkedServiceTypeProperties properties specific to SAP Business Warehouse Open Hub Destination -// linked service type. -type SapOpenHubLinkedServiceTypeProperties struct { - // Server - 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"` - // SystemNumber - 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"` - // ClientID - 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"` - // Language - 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"` - // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` - // UserName - 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"` - // Password - Password to access the SAP BW server where the open hub destination is located. - Password BasicSecretBase `json:"password,omitempty"` - // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` - // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` - // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SapOpenHubLinkedServiceTypeProperties struct. -func (sohlstp *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - sohlstp.Server = server - } - case "systemNumber": - if v != nil { - var systemNumber interface{} - err = json.Unmarshal(*v, &systemNumber) - if err != nil { - return err - } - sohlstp.SystemNumber = systemNumber - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - sohlstp.ClientID = clientID - } - case "language": - if v != nil { - var language interface{} - err = json.Unmarshal(*v, &language) - if err != nil { - return err - } - sohlstp.Language = language - } - case "systemId": - if v != nil { - var systemID interface{} - err = json.Unmarshal(*v, &systemID) - if err != nil { - return err - } - sohlstp.SystemID = systemID - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sohlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sohlstp.Password = password - } - case "messageServer": - if v != nil { - var messageServer interface{} - err = json.Unmarshal(*v, &messageServer) - if err != nil { - return err - } - sohlstp.MessageServer = messageServer - } - case "messageServerService": - if v != nil { - var messageServerService interface{} - err = json.Unmarshal(*v, &messageServerService) - if err != nil { - return err - } - sohlstp.MessageServerService = messageServerService - } - case "logonGroup": - if v != nil { - var logonGroup interface{} - err = json.Unmarshal(*v, &logonGroup) - if err != nil { - return err - } - sohlstp.LogonGroup = logonGroup - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sohlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SapOpenHubSource a copy activity source for SAP Business Warehouse Open Hub Destination source. -type SapOpenHubSource struct { - // ExcludeLastRequest - 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"` - // BaseRequestID - 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"` - // CustomRfcReadTableFunctionModule - 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"` - // SapDataColumnDelimiter - 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"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapOpenHubSource. -func (sohs SapOpenHubSource) MarshalJSON() ([]byte, error) { - sohs.Type = TypeBasicCopySourceTypeSapOpenHubSource - objectMap := make(map[string]interface{}) - if sohs.ExcludeLastRequest != nil { - objectMap["excludeLastRequest"] = sohs.ExcludeLastRequest - } - if sohs.BaseRequestID != nil { - objectMap["baseRequestId"] = sohs.BaseRequestID - } - if sohs.CustomRfcReadTableFunctionModule != nil { - objectMap["customRfcReadTableFunctionModule"] = sohs.CustomRfcReadTableFunctionModule - } - if sohs.SapDataColumnDelimiter != nil { - objectMap["sapDataColumnDelimiter"] = sohs.SapDataColumnDelimiter - } - if sohs.QueryTimeout != nil { - objectMap["queryTimeout"] = sohs.QueryTimeout - } - if sohs.AdditionalColumns != nil { - objectMap["additionalColumns"] = sohs.AdditionalColumns - } - if sohs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sohs.SourceRetryCount - } - if sohs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sohs.SourceRetryWait - } - if sohs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sohs.MaxConcurrentConnections - } - if sohs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sohs.DisableMetricsCollection - } - if sohs.Type != "" { - objectMap["type"] = sohs.Type - } - for k, v := range sohs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return &sohs, true -} - -// AsSapHanaSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sohs, true -} - -// AsBinarySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SapOpenHubSource. -func (sohs SapOpenHubSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sohs, true -} - -// UnmarshalJSON is the custom unmarshaler for SapOpenHubSource struct. -func (sohs *SapOpenHubSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "excludeLastRequest": - if v != nil { - var excludeLastRequest interface{} - err = json.Unmarshal(*v, &excludeLastRequest) - if err != nil { - return err - } - sohs.ExcludeLastRequest = excludeLastRequest - } - case "baseRequestId": - if v != nil { - var baseRequestID interface{} - err = json.Unmarshal(*v, &baseRequestID) - if err != nil { - return err - } - sohs.BaseRequestID = baseRequestID - } - case "customRfcReadTableFunctionModule": - if v != nil { - var customRfcReadTableFunctionModule interface{} - err = json.Unmarshal(*v, &customRfcReadTableFunctionModule) - if err != nil { - return err - } - sohs.CustomRfcReadTableFunctionModule = customRfcReadTableFunctionModule - } - case "sapDataColumnDelimiter": - if v != nil { - var sapDataColumnDelimiter interface{} - err = json.Unmarshal(*v, &sapDataColumnDelimiter) - if err != nil { - return err - } - sohs.SapDataColumnDelimiter = sapDataColumnDelimiter - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sohs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sohs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sohs.AdditionalProperties == nil { - sohs.AdditionalProperties = make(map[string]interface{}) - } - sohs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sohs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sohs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sohs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sohs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sohs.Type = typeVar - } - } - } - - return nil -} - -// SapOpenHubTableDataset sap Business Warehouse Open Hub Destination Table properties. -type SapOpenHubTableDataset struct { - // SapOpenHubTableDatasetTypeProperties - Sap Business Warehouse Open Hub Destination Table properties. - *SapOpenHubTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) MarshalJSON() ([]byte, error) { - sohtd.Type = TypeBasicDatasetTypeSapOpenHubTable - objectMap := make(map[string]interface{}) - if sohtd.SapOpenHubTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = sohtd.SapOpenHubTableDatasetTypeProperties - } - if sohtd.Description != nil { - objectMap["description"] = sohtd.Description - } - if sohtd.Structure != nil { - objectMap["structure"] = sohtd.Structure - } - if sohtd.Schema != nil { - objectMap["schema"] = sohtd.Schema - } - if sohtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sohtd.LinkedServiceName - } - if sohtd.Parameters != nil { - objectMap["parameters"] = sohtd.Parameters - } - if sohtd.Annotations != nil { - objectMap["annotations"] = sohtd.Annotations - } - if sohtd.Folder != nil { - objectMap["folder"] = sohtd.Folder - } - if sohtd.Type != "" { - objectMap["type"] = sohtd.Type - } - for k, v := range sohtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return &sohtd, true -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SapOpenHubTableDataset. -func (sohtd SapOpenHubTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &sohtd, true -} - -// UnmarshalJSON is the custom unmarshaler for SapOpenHubTableDataset struct. -func (sohtd *SapOpenHubTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapOpenHubTableDatasetTypeProperties SapOpenHubTableDatasetTypeProperties - err = json.Unmarshal(*v, &sapOpenHubTableDatasetTypeProperties) - if err != nil { - return err - } - sohtd.SapOpenHubTableDatasetTypeProperties = &sapOpenHubTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sohtd.AdditionalProperties == nil { - sohtd.AdditionalProperties = make(map[string]interface{}) - } - sohtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sohtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sohtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sohtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sohtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sohtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sohtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sohtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sohtd.Type = typeVar - } - } - } - - return nil -} - -// SapOpenHubTableDatasetTypeProperties sap Business Warehouse Open Hub Destination Table properties. -type SapOpenHubTableDatasetTypeProperties struct { - // OpenHubDestinationName - 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"` - // ExcludeLastRequest - 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"` - // BaseRequestID - 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"` -} - -// SapTableLinkedService SAP Table Linked Service. -type SapTableLinkedService struct { - // SapTableLinkedServiceTypeProperties - Properties specific to this linked service type. - *SapTableLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapTableLinkedService. -func (stls SapTableLinkedService) MarshalJSON() ([]byte, error) { - stls.Type = TypeBasicLinkedServiceTypeSapTable - objectMap := make(map[string]interface{}) - if stls.SapTableLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = stls.SapTableLinkedServiceTypeProperties - } - if stls.ConnectVia != nil { - objectMap["connectVia"] = stls.ConnectVia - } - if stls.Description != nil { - objectMap["description"] = stls.Description - } - if stls.Parameters != nil { - objectMap["parameters"] = stls.Parameters - } - if stls.Annotations != nil { - objectMap["annotations"] = stls.Annotations - } - if stls.Type != "" { - objectMap["type"] = stls.Type - } - for k, v := range stls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return &stls, true -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SapTableLinkedService. -func (stls SapTableLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &stls, true -} - -// UnmarshalJSON is the custom unmarshaler for SapTableLinkedService struct. -func (stls *SapTableLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapTableLinkedServiceTypeProperties SapTableLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sapTableLinkedServiceTypeProperties) - if err != nil { - return err - } - stls.SapTableLinkedServiceTypeProperties = &sapTableLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if stls.AdditionalProperties == nil { - stls.AdditionalProperties = make(map[string]interface{}) - } - stls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - stls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - stls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - stls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - stls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - stls.Type = typeVar - } - } - } - - return nil -} - -// SapTableLinkedServiceTypeProperties properties specific to this linked service type. -type SapTableLinkedServiceTypeProperties struct { - // Server - Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // SystemNumber - 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"` - // ClientID - 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"` - // Language - 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"` - // SystemID - SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` - // UserName - Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to access the SAP server where the table is located. - Password BasicSecretBase `json:"password,omitempty"` - // MessageServer - The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` - // MessageServerService - The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` - // SncMode - 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"` - // SncMyName - 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"` - // SncPartnerName - 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"` - // SncLibraryPath - 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"` - // SncQop - SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). - SncQop interface{} `json:"sncQop,omitempty"` - // LogonGroup - The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SapTableLinkedServiceTypeProperties struct. -func (stlstp *SapTableLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - stlstp.Server = server - } - case "systemNumber": - if v != nil { - var systemNumber interface{} - err = json.Unmarshal(*v, &systemNumber) - if err != nil { - return err - } - stlstp.SystemNumber = systemNumber - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - stlstp.ClientID = clientID - } - case "language": - if v != nil { - var language interface{} - err = json.Unmarshal(*v, &language) - if err != nil { - return err - } - stlstp.Language = language - } - case "systemId": - if v != nil { - var systemID interface{} - err = json.Unmarshal(*v, &systemID) - if err != nil { - return err - } - stlstp.SystemID = systemID - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - stlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - stlstp.Password = password - } - case "messageServer": - if v != nil { - var messageServer interface{} - err = json.Unmarshal(*v, &messageServer) - if err != nil { - return err - } - stlstp.MessageServer = messageServer - } - case "messageServerService": - if v != nil { - var messageServerService interface{} - err = json.Unmarshal(*v, &messageServerService) - if err != nil { - return err - } - stlstp.MessageServerService = messageServerService - } - case "sncMode": - if v != nil { - var sncMode interface{} - err = json.Unmarshal(*v, &sncMode) - if err != nil { - return err - } - stlstp.SncMode = sncMode - } - case "sncMyName": - if v != nil { - var sncMyName interface{} - err = json.Unmarshal(*v, &sncMyName) - if err != nil { - return err - } - stlstp.SncMyName = sncMyName - } - case "sncPartnerName": - if v != nil { - var sncPartnerName interface{} - err = json.Unmarshal(*v, &sncPartnerName) - if err != nil { - return err - } - stlstp.SncPartnerName = sncPartnerName - } - case "sncLibraryPath": - if v != nil { - var sncLibraryPath interface{} - err = json.Unmarshal(*v, &sncLibraryPath) - if err != nil { - return err - } - stlstp.SncLibraryPath = sncLibraryPath - } - case "sncQop": - if v != nil { - var sncQop interface{} - err = json.Unmarshal(*v, &sncQop) - if err != nil { - return err - } - stlstp.SncQop = sncQop - } - case "logonGroup": - if v != nil { - var logonGroup interface{} - err = json.Unmarshal(*v, &logonGroup) - if err != nil { - return err - } - stlstp.LogonGroup = logonGroup - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - stlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SapTablePartitionSettings the settings that will be leveraged for SAP table source partitioning. -type SapTablePartitionSettings struct { - // PartitionColumnName - 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"` - // PartitionUpperBound - 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"` - // PartitionLowerBound - 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"` - // MaxPartitionsNumber - The maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). - MaxPartitionsNumber interface{} `json:"maxPartitionsNumber,omitempty"` -} - -// SapTableResourceDataset SAP Table Resource properties. -type SapTableResourceDataset struct { - // SapTableResourceDatasetTypeProperties - SAP Table Resource properties. - *SapTableResourceDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapTableResourceDataset. -func (strd SapTableResourceDataset) MarshalJSON() ([]byte, error) { - strd.Type = TypeBasicDatasetTypeSapTableResource - objectMap := make(map[string]interface{}) - if strd.SapTableResourceDatasetTypeProperties != nil { - objectMap["typeProperties"] = strd.SapTableResourceDatasetTypeProperties - } - if strd.Description != nil { - objectMap["description"] = strd.Description - } - if strd.Structure != nil { - objectMap["structure"] = strd.Structure - } - if strd.Schema != nil { - objectMap["schema"] = strd.Schema - } - if strd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = strd.LinkedServiceName - } - if strd.Parameters != nil { - objectMap["parameters"] = strd.Parameters - } - if strd.Annotations != nil { - objectMap["annotations"] = strd.Annotations - } - if strd.Folder != nil { - objectMap["folder"] = strd.Folder - } - if strd.Type != "" { - objectMap["type"] = strd.Type - } - for k, v := range strd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return &strd, true -} - -// AsRestResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SapTableResourceDataset. -func (strd SapTableResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &strd, true -} - -// UnmarshalJSON is the custom unmarshaler for SapTableResourceDataset struct. -func (strd *SapTableResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sapTableResourceDatasetTypeProperties SapTableResourceDatasetTypeProperties - err = json.Unmarshal(*v, &sapTableResourceDatasetTypeProperties) - if err != nil { - return err - } - strd.SapTableResourceDatasetTypeProperties = &sapTableResourceDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if strd.AdditionalProperties == nil { - strd.AdditionalProperties = make(map[string]interface{}) - } - strd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - strd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - strd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - strd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - strd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - strd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - strd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - strd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - strd.Type = typeVar - } - } - } - - return nil -} - -// SapTableResourceDatasetTypeProperties SAP Table Resource properties. -type SapTableResourceDatasetTypeProperties struct { - // TableName - The name of the SAP Table. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// SapTableSource a copy activity source for SAP Table source. -type SapTableSource struct { - // RowCount - The number of rows to be retrieved. Type: integer(or Expression with resultType integer). - RowCount interface{} `json:"rowCount,omitempty"` - // RowSkips - The number of rows that will be skipped. Type: integer (or Expression with resultType integer). - RowSkips interface{} `json:"rowSkips,omitempty"` - // RfcTableFields - 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"` - // RfcTableOptions - 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"` - // BatchSize - 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"` - // CustomRfcReadTableFunctionModule - 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"` - // SapDataColumnDelimiter - 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"` - // PartitionOption - 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"` - // PartitionSettings - The settings that will be leveraged for SAP table source partitioning. - PartitionSettings *SapTablePartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SapTableSource. -func (sts SapTableSource) MarshalJSON() ([]byte, error) { - sts.Type = TypeBasicCopySourceTypeSapTableSource - objectMap := make(map[string]interface{}) - if sts.RowCount != nil { - objectMap["rowCount"] = sts.RowCount - } - if sts.RowSkips != nil { - objectMap["rowSkips"] = sts.RowSkips - } - if sts.RfcTableFields != nil { - objectMap["rfcTableFields"] = sts.RfcTableFields - } - if sts.RfcTableOptions != nil { - objectMap["rfcTableOptions"] = sts.RfcTableOptions - } - if sts.BatchSize != nil { - objectMap["batchSize"] = sts.BatchSize - } - if sts.CustomRfcReadTableFunctionModule != nil { - objectMap["customRfcReadTableFunctionModule"] = sts.CustomRfcReadTableFunctionModule - } - if sts.SapDataColumnDelimiter != nil { - objectMap["sapDataColumnDelimiter"] = sts.SapDataColumnDelimiter - } - if sts.PartitionOption != nil { - objectMap["partitionOption"] = sts.PartitionOption - } - if sts.PartitionSettings != nil { - objectMap["partitionSettings"] = sts.PartitionSettings - } - if sts.QueryTimeout != nil { - objectMap["queryTimeout"] = sts.QueryTimeout - } - if sts.AdditionalColumns != nil { - objectMap["additionalColumns"] = sts.AdditionalColumns - } - if sts.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sts.SourceRetryCount - } - if sts.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sts.SourceRetryWait - } - if sts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sts.MaxConcurrentConnections - } - if sts.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sts.DisableMetricsCollection - } - if sts.Type != "" { - objectMap["type"] = sts.Type - } - for k, v := range sts.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapTableSource() (*SapTableSource, bool) { - return &sts, true -} - -// AsSapOdpSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sts, true -} - -// AsBinarySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SapTableSource. -func (sts SapTableSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sts, true -} - -// UnmarshalJSON is the custom unmarshaler for SapTableSource struct. -func (sts *SapTableSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "rowCount": - if v != nil { - var rowCount interface{} - err = json.Unmarshal(*v, &rowCount) - if err != nil { - return err - } - sts.RowCount = rowCount - } - case "rowSkips": - if v != nil { - var rowSkips interface{} - err = json.Unmarshal(*v, &rowSkips) - if err != nil { - return err - } - sts.RowSkips = rowSkips - } - case "rfcTableFields": - if v != nil { - var rfcTableFields interface{} - err = json.Unmarshal(*v, &rfcTableFields) - if err != nil { - return err - } - sts.RfcTableFields = rfcTableFields - } - case "rfcTableOptions": - if v != nil { - var rfcTableOptions interface{} - err = json.Unmarshal(*v, &rfcTableOptions) - if err != nil { - return err - } - sts.RfcTableOptions = rfcTableOptions - } - case "batchSize": - if v != nil { - var batchSize interface{} - err = json.Unmarshal(*v, &batchSize) - if err != nil { - return err - } - sts.BatchSize = batchSize - } - case "customRfcReadTableFunctionModule": - if v != nil { - var customRfcReadTableFunctionModule interface{} - err = json.Unmarshal(*v, &customRfcReadTableFunctionModule) - if err != nil { - return err - } - sts.CustomRfcReadTableFunctionModule = customRfcReadTableFunctionModule - } - case "sapDataColumnDelimiter": - if v != nil { - var sapDataColumnDelimiter interface{} - err = json.Unmarshal(*v, &sapDataColumnDelimiter) - if err != nil { - return err - } - sts.SapDataColumnDelimiter = sapDataColumnDelimiter - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - sts.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SapTablePartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - sts.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sts.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sts.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sts.AdditionalProperties == nil { - sts.AdditionalProperties = make(map[string]interface{}) - } - sts.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sts.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sts.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sts.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sts.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sts.Type = typeVar - } - } - } - - return nil -} - -// ScheduleTrigger trigger that creates pipeline runs periodically, on schedule. -type ScheduleTrigger struct { - // ScheduleTriggerTypeProperties - Schedule Trigger properties. - *ScheduleTriggerTypeProperties `json:"typeProperties,omitempty"` - // Pipelines - Pipelines that need to be started. - Pipelines *[]TriggerPipelineReference `json:"pipelines,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ScheduleTrigger. -func (st ScheduleTrigger) MarshalJSON() ([]byte, error) { - st.Type = TypeBasicTriggerTypeScheduleTrigger - objectMap := make(map[string]interface{}) - if st.ScheduleTriggerTypeProperties != nil { - objectMap["typeProperties"] = st.ScheduleTriggerTypeProperties - } - if st.Pipelines != nil { - objectMap["pipelines"] = st.Pipelines - } - if st.Description != nil { - objectMap["description"] = st.Description - } - if st.Annotations != nil { - objectMap["annotations"] = st.Annotations - } - if st.Type != "" { - objectMap["type"] = st.Type - } - for k, v := range st.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return nil, false -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return nil, false -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return nil, false -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return nil, false -} - -// AsBlobTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// AsScheduleTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return &st, true -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return &st, true -} - -// AsTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// AsBasicTrigger is the BasicTrigger implementation for ScheduleTrigger. -func (st ScheduleTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &st, true -} - -// UnmarshalJSON is the custom unmarshaler for ScheduleTrigger struct. -func (st *ScheduleTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var scheduleTriggerTypeProperties ScheduleTriggerTypeProperties - err = json.Unmarshal(*v, &scheduleTriggerTypeProperties) - if err != nil { - return err - } - st.ScheduleTriggerTypeProperties = &scheduleTriggerTypeProperties - } - case "pipelines": - if v != nil { - var pipelines []TriggerPipelineReference - err = json.Unmarshal(*v, &pipelines) - if err != nil { - return err - } - st.Pipelines = &pipelines - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if st.AdditionalProperties == nil { - st.AdditionalProperties = make(map[string]interface{}) - } - st.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - st.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - st.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - st.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - st.Type = typeVar - } - } - } - - return nil -} - -// ScheduleTriggerRecurrence the workflow trigger recurrence. -type ScheduleTriggerRecurrence struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Frequency - The frequency. Possible values include: 'RecurrenceFrequencyNotSpecified', 'RecurrenceFrequencyMinute', 'RecurrenceFrequencyHour', 'RecurrenceFrequencyDay', 'RecurrenceFrequencyWeek', 'RecurrenceFrequencyMonth', 'RecurrenceFrequencyYear' - Frequency RecurrenceFrequency `json:"frequency,omitempty"` - // Interval - The interval. - Interval *int32 `json:"interval,omitempty"` - // StartTime - The start time. - StartTime *date.Time `json:"startTime,omitempty"` - // EndTime - The end time. - EndTime *date.Time `json:"endTime,omitempty"` - // TimeZone - The time zone. - TimeZone *string `json:"timeZone,omitempty"` - // Schedule - The recurrence schedule. - Schedule *RecurrenceSchedule `json:"schedule,omitempty"` -} - -// MarshalJSON is the custom marshaler for ScheduleTriggerRecurrence. -func (str ScheduleTriggerRecurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if str.Frequency != "" { - objectMap["frequency"] = str.Frequency - } - if str.Interval != nil { - objectMap["interval"] = str.Interval - } - if str.StartTime != nil { - objectMap["startTime"] = str.StartTime - } - if str.EndTime != nil { - objectMap["endTime"] = str.EndTime - } - if str.TimeZone != nil { - objectMap["timeZone"] = str.TimeZone - } - if str.Schedule != nil { - objectMap["schedule"] = str.Schedule - } - for k, v := range str.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for ScheduleTriggerRecurrence struct. -func (str *ScheduleTriggerRecurrence) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if str.AdditionalProperties == nil { - str.AdditionalProperties = make(map[string]interface{}) - } - str.AdditionalProperties[k] = additionalProperties - } - case "frequency": - if v != nil { - var frequency RecurrenceFrequency - err = json.Unmarshal(*v, &frequency) - if err != nil { - return err - } - str.Frequency = frequency - } - case "interval": - if v != nil { - var interval int32 - err = json.Unmarshal(*v, &interval) - if err != nil { - return err - } - str.Interval = &interval - } - case "startTime": - if v != nil { - var startTime date.Time - err = json.Unmarshal(*v, &startTime) - if err != nil { - return err - } - str.StartTime = &startTime - } - case "endTime": - if v != nil { - var endTime date.Time - err = json.Unmarshal(*v, &endTime) - if err != nil { - return err - } - str.EndTime = &endTime - } - case "timeZone": - if v != nil { - var timeZone string - err = json.Unmarshal(*v, &timeZone) - if err != nil { - return err - } - str.TimeZone = &timeZone - } - case "schedule": - if v != nil { - var schedule RecurrenceSchedule - err = json.Unmarshal(*v, &schedule) - if err != nil { - return err - } - str.Schedule = &schedule - } - } - } - - return nil -} - -// ScheduleTriggerTypeProperties schedule Trigger properties. -type ScheduleTriggerTypeProperties struct { - // Recurrence - Recurrence schedule configuration. - Recurrence *ScheduleTriggerRecurrence `json:"recurrence,omitempty"` -} - -// ScriptAction custom script action to run on HDI ondemand cluster once it's up. -type ScriptAction struct { - // Name - The user provided name of the script action. - Name *string `json:"name,omitempty"` - // URI - The URI for the script action. - URI *string `json:"uri,omitempty"` - // Roles - The node types on which the script action should be executed. - Roles interface{} `json:"roles,omitempty"` - // Parameters - The parameters for the script action. - Parameters *string `json:"parameters,omitempty"` -} - -// ScriptActivity script activity type. -type ScriptActivity struct { - // ScriptActivityTypeProperties - Script activity properties. - *ScriptActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ScriptActivity. -func (sa ScriptActivity) MarshalJSON() ([]byte, error) { - sa.Type = TypeBasicActivityTypeScript - objectMap := make(map[string]interface{}) - if sa.ScriptActivityTypeProperties != nil { - objectMap["typeProperties"] = sa.ScriptActivityTypeProperties - } - if sa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sa.LinkedServiceName - } - if sa.Policy != nil { - objectMap["policy"] = sa.Policy - } - if sa.Name != nil { - objectMap["name"] = sa.Name - } - if sa.Description != nil { - objectMap["description"] = sa.Description - } - if sa.State != "" { - objectMap["state"] = sa.State - } - if sa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = sa.OnInactiveMarkAs - } - if sa.DependsOn != nil { - objectMap["dependsOn"] = sa.DependsOn - } - if sa.UserProperties != nil { - objectMap["userProperties"] = sa.UserProperties - } - if sa.Type != "" { - objectMap["type"] = sa.Type - } - for k, v := range sa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsScriptActivity() (*ScriptActivity, bool) { - return &sa, true -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &sa, true -} - -// AsWebHookActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ScriptActivity. -func (sa ScriptActivity) AsBasicActivity() (BasicActivity, bool) { - return &sa, true -} - -// UnmarshalJSON is the custom unmarshaler for ScriptActivity struct. -func (sa *ScriptActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var scriptActivityTypeProperties ScriptActivityTypeProperties - err = json.Unmarshal(*v, &scriptActivityTypeProperties) - if err != nil { - return err - } - sa.ScriptActivityTypeProperties = &scriptActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - sa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sa.AdditionalProperties == nil { - sa.AdditionalProperties = make(map[string]interface{}) - } - sa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - sa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - sa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - sa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - sa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sa.Type = typeVar - } - } - } - - return nil -} - -// ScriptActivityParameter parameters of a script block. -type ScriptActivityParameter struct { - // Name - The name of the parameter. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` - // Type - The type of the parameter. Possible values include: 'ScriptActivityParameterTypeBoolean', 'ScriptActivityParameterTypeDateTime', 'ScriptActivityParameterTypeDateTimeOffset', 'ScriptActivityParameterTypeDecimal', 'ScriptActivityParameterTypeDouble', 'ScriptActivityParameterTypeGUID', 'ScriptActivityParameterTypeInt16', 'ScriptActivityParameterTypeInt32', 'ScriptActivityParameterTypeInt64', 'ScriptActivityParameterTypeSingle', 'ScriptActivityParameterTypeString', 'ScriptActivityParameterTypeTimespan' - Type ScriptActivityParameterType `json:"type,omitempty"` - // Value - The value of the parameter. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` - // Direction - The direction of the parameter. Possible values include: 'ScriptActivityParameterDirectionInput', 'ScriptActivityParameterDirectionOutput', 'ScriptActivityParameterDirectionInputOutput' - Direction ScriptActivityParameterDirection `json:"direction,omitempty"` - // Size - The size of the output direction parameter. - Size *int32 `json:"size,omitempty"` -} - -// ScriptActivityScriptBlock script block of scripts. -type ScriptActivityScriptBlock struct { - // Text - The query text. Type: string (or Expression with resultType string). - Text interface{} `json:"text,omitempty"` - // Type - The type of the query. Type: string. Possible values include: 'ScriptTypeQuery', 'ScriptTypeNonQuery' - Type ScriptType `json:"type,omitempty"` - // Parameters - Array of script parameters. Type: array. - Parameters *[]ScriptActivityParameter `json:"parameters,omitempty"` -} - -// ScriptActivityTypeProperties script activity properties. -type ScriptActivityTypeProperties struct { - // ScriptBlockExecutionTimeout - 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 interface{} `json:"scriptBlockExecutionTimeout,omitempty"` - // Scripts - Array of script blocks. Type: array. - Scripts *[]ScriptActivityScriptBlock `json:"scripts,omitempty"` - // LogSettings - Log settings of script activity. - LogSettings *ScriptActivityTypePropertiesLogSettings `json:"logSettings,omitempty"` -} - -// ScriptActivityTypePropertiesLogSettings log settings of script activity. -type ScriptActivityTypePropertiesLogSettings struct { - // LogDestination - The destination of logs. Type: string. Possible values include: 'ScriptActivityLogDestinationActivityOutput', 'ScriptActivityLogDestinationExternalStore' - LogDestination ScriptActivityLogDestination `json:"logDestination,omitempty"` - // LogLocationSettings - Log location settings customer needs to provide when enabling log. - LogLocationSettings *LogLocationSettings `json:"logLocationSettings,omitempty"` -} - -// BasicSecretBase the base definition of a secret type. -type BasicSecretBase interface { - AsSecureString() (*SecureString, bool) - AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) - AsSecretBase() (*SecretBase, bool) -} - -// SecretBase the base definition of a secret type. -type SecretBase struct { - // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' - Type Type `json:"type,omitempty"` -} - -func unmarshalBasicSecretBase(body []byte) (BasicSecretBase, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeSecureString): - var ss SecureString - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeAzureKeyVaultSecret): - var akvsr AzureKeyVaultSecretReference - err := json.Unmarshal(body, &akvsr) - return akvsr, err - default: - var sb SecretBase - err := json.Unmarshal(body, &sb) - return sb, err - } -} -func unmarshalBasicSecretBaseArray(body []byte) ([]BasicSecretBase, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - sbArray := make([]BasicSecretBase, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sb, err := unmarshalBasicSecretBase(*rawMessage) - if err != nil { - return nil, err - } - sbArray[index] = sb - } - return sbArray, nil -} - -// MarshalJSON is the custom marshaler for SecretBase. -func (sb SecretBase) MarshalJSON() ([]byte, error) { - sb.Type = TypeSecretBase - objectMap := make(map[string]interface{}) - if sb.Type != "" { - objectMap["type"] = sb.Type - } - return json.Marshal(objectMap) -} - -// AsSecureString is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsSecureString() (*SecureString, bool) { - return nil, false -} - -// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { - return nil, false -} - -// AsSecretBase is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsSecretBase() (*SecretBase, bool) { - return &sb, true -} - -// AsBasicSecretBase is the BasicSecretBase implementation for SecretBase. -func (sb SecretBase) AsBasicSecretBase() (BasicSecretBase, bool) { - return &sb, true -} - -// SecureInputOutputPolicy execution policy for an activity that supports secure input and output. -type SecureInputOutputPolicy struct { - // SecureInput - When set to true, Input from activity is considered as secure and will not be logged to monitoring. - SecureInput *bool `json:"secureInput,omitempty"` - // SecureOutput - When set to true, Output from activity is considered as secure and will not be logged to monitoring. - SecureOutput *bool `json:"secureOutput,omitempty"` -} - -// SecureString azure Data Factory secure string definition. The string value will be masked with asterisks -// '*' during Get or List API calls. -type SecureString struct { - // Value - Value of secure string. - Value *string `json:"value,omitempty"` - // Type - Possible values include: 'TypeSecretBase', 'TypeSecureString', 'TypeAzureKeyVaultSecret' - Type Type `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SecureString. -func (ss SecureString) MarshalJSON() ([]byte, error) { - ss.Type = TypeSecureString - objectMap := make(map[string]interface{}) - if ss.Value != nil { - objectMap["value"] = ss.Value - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - return json.Marshal(objectMap) -} - -// AsSecureString is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsSecureString() (*SecureString, bool) { - return &ss, true -} - -// AsAzureKeyVaultSecretReference is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsAzureKeyVaultSecretReference() (*AzureKeyVaultSecretReference, bool) { - return nil, false -} - -// AsSecretBase is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsSecretBase() (*SecretBase, bool) { - return nil, false -} - -// AsBasicSecretBase is the BasicSecretBase implementation for SecureString. -func (ss SecureString) AsBasicSecretBase() (BasicSecretBase, bool) { - return &ss, true -} - -// SelfDependencyTumblingWindowTriggerReference self referenced tumbling window trigger dependency. -type SelfDependencyTumblingWindowTriggerReference struct { - // Offset - Timespan applied to the start time of a tumbling window when evaluating dependency. - Offset *string `json:"offset,omitempty"` - // Size - 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"` - // Type - Possible values include: 'TypeBasicDependencyReferenceTypeDependencyReference', 'TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference', 'TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference', 'TypeBasicDependencyReferenceTypeTriggerDependencyReference' - Type TypeBasicDependencyReference `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) MarshalJSON() ([]byte, error) { - sdtwtr.Type = TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference - objectMap := make(map[string]interface{}) - if sdtwtr.Offset != nil { - objectMap["offset"] = sdtwtr.Offset - } - if sdtwtr.Size != nil { - objectMap["size"] = sdtwtr.Size - } - if sdtwtr.Type != "" { - objectMap["type"] = sdtwtr.Type - } - return json.Marshal(objectMap) -} - -// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { - return &sdtwtr, true -} - -// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { - return nil, false -} - -// AsTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { - return nil, false -} - -// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { - return nil, false -} - -// AsDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsDependencyReference() (*DependencyReference, bool) { - return nil, false -} - -// AsBasicDependencyReference is the BasicDependencyReference implementation for SelfDependencyTumblingWindowTriggerReference. -func (sdtwtr SelfDependencyTumblingWindowTriggerReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { - return &sdtwtr, true -} - -// SelfHostedIntegrationRuntime self-hosted integration runtime. -type SelfHostedIntegrationRuntime struct { - // SelfHostedIntegrationRuntimeTypeProperties - When this property is not null, means this is a linked integration runtime. The property is used to access original integration runtime. - *SelfHostedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Integration runtime description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeTypeIntegrationRuntime', 'TypeBasicIntegrationRuntimeTypeSelfHosted', 'TypeBasicIntegrationRuntimeTypeManaged' - Type TypeBasicIntegrationRuntime `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { - shir.Type = TypeBasicIntegrationRuntimeTypeSelfHosted - objectMap := make(map[string]interface{}) - if shir.SelfHostedIntegrationRuntimeTypeProperties != nil { - objectMap["typeProperties"] = shir.SelfHostedIntegrationRuntimeTypeProperties - } - if shir.Description != nil { - objectMap["description"] = shir.Description - } - if shir.Type != "" { - objectMap["type"] = shir.Type - } - for k, v := range shir.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSelfHostedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsSelfHostedIntegrationRuntime() (*SelfHostedIntegrationRuntime, bool) { - return &shir, true -} - -// AsManagedIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsManagedIntegrationRuntime() (*ManagedIntegrationRuntime, bool) { - return nil, false -} - -// AsIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsIntegrationRuntime() (*IntegrationRuntime, bool) { - return nil, false -} - -// AsBasicIntegrationRuntime is the BasicIntegrationRuntime implementation for SelfHostedIntegrationRuntime. -func (shir SelfHostedIntegrationRuntime) AsBasicIntegrationRuntime() (BasicIntegrationRuntime, bool) { - return &shir, true -} - -// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntime struct. -func (shir *SelfHostedIntegrationRuntime) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var selfHostedIntegrationRuntimeTypeProperties SelfHostedIntegrationRuntimeTypeProperties - err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeTypeProperties) - if err != nil { - return err - } - shir.SelfHostedIntegrationRuntimeTypeProperties = &selfHostedIntegrationRuntimeTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shir.AdditionalProperties == nil { - shir.AdditionalProperties = make(map[string]interface{}) - } - shir.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - shir.Description = &description - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntime - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - shir.Type = typeVar - } - } - } - - return nil -} - -// SelfHostedIntegrationRuntimeNode properties of Self-hosted integration runtime node. -type SelfHostedIntegrationRuntimeNode struct { - autorest.Response `json:"-"` - // NodeName - READ-ONLY; Name of the integration runtime node. - NodeName *string `json:"nodeName,omitempty"` - // MachineName - READ-ONLY; Machine name of the integration runtime node. - MachineName *string `json:"machineName,omitempty"` - // HostServiceURI - READ-ONLY; URI for the host machine of the integration runtime. - HostServiceURI *string `json:"hostServiceUri,omitempty"` - // Status - READ-ONLY; Status of the integration runtime node. Possible values include: 'SelfHostedIntegrationRuntimeNodeStatusNeedRegistration', 'SelfHostedIntegrationRuntimeNodeStatusOnline', 'SelfHostedIntegrationRuntimeNodeStatusLimited', 'SelfHostedIntegrationRuntimeNodeStatusOffline', 'SelfHostedIntegrationRuntimeNodeStatusUpgrading', 'SelfHostedIntegrationRuntimeNodeStatusInitializing', 'SelfHostedIntegrationRuntimeNodeStatusInitializeFailed' - Status SelfHostedIntegrationRuntimeNodeStatus `json:"status,omitempty"` - // Capabilities - READ-ONLY; The integration runtime capabilities dictionary - Capabilities map[string]*string `json:"capabilities"` - // VersionStatus - READ-ONLY; Status of the integration runtime node version. - VersionStatus *string `json:"versionStatus,omitempty"` - // Version - READ-ONLY; Version of the integration runtime node. - Version *string `json:"version,omitempty"` - // RegisterTime - READ-ONLY; The time at which the integration runtime node was registered in ISO8601 format. - RegisterTime *date.Time `json:"registerTime,omitempty"` - // LastConnectTime - READ-ONLY; The most recent time at which the integration runtime was connected in ISO8601 format. - LastConnectTime *date.Time `json:"lastConnectTime,omitempty"` - // ExpiryTime - READ-ONLY; The time at which the integration runtime will expire in ISO8601 format. - ExpiryTime *date.Time `json:"expiryTime,omitempty"` - // LastStartTime - READ-ONLY; The time the node last started up. - LastStartTime *date.Time `json:"lastStartTime,omitempty"` - // LastStopTime - READ-ONLY; The integration runtime node last stop time. - LastStopTime *date.Time `json:"lastStopTime,omitempty"` - // LastUpdateResult - READ-ONLY; The result of the last integration runtime node update. Possible values include: 'IntegrationRuntimeUpdateResultNone', 'IntegrationRuntimeUpdateResultSucceed', 'IntegrationRuntimeUpdateResultFail' - LastUpdateResult IntegrationRuntimeUpdateResult `json:"lastUpdateResult,omitempty"` - // LastStartUpdateTime - READ-ONLY; The last time for the integration runtime node update start. - LastStartUpdateTime *date.Time `json:"lastStartUpdateTime,omitempty"` - // LastEndUpdateTime - READ-ONLY; The last time for the integration runtime node update end. - LastEndUpdateTime *date.Time `json:"lastEndUpdateTime,omitempty"` - // IsActiveDispatcher - READ-ONLY; Indicates whether this node is the active dispatcher for integration runtime requests. - IsActiveDispatcher *bool `json:"isActiveDispatcher,omitempty"` - // ConcurrentJobsLimit - READ-ONLY; Maximum concurrent jobs on the integration runtime node. - ConcurrentJobsLimit *int32 `json:"concurrentJobsLimit,omitempty"` - // MaxConcurrentJobs - READ-ONLY; The maximum concurrent jobs in this integration runtime. - MaxConcurrentJobs *int32 `json:"maxConcurrentJobs,omitempty"` -} - -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeNode. -func (shirn SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// SelfHostedIntegrationRuntimeStatus self-hosted integration runtime status. -type SelfHostedIntegrationRuntimeStatus struct { - // SelfHostedIntegrationRuntimeStatusTypeProperties - Self-hosted integration runtime status type properties. - *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // DataFactoryName - READ-ONLY; The data factory name which the integration runtime belong to. - DataFactoryName *string `json:"dataFactoryName,omitempty"` - // State - READ-ONLY; The state of integration runtime. Possible values include: 'IntegrationRuntimeStateInitial', 'IntegrationRuntimeStateStopped', 'IntegrationRuntimeStateStarted', 'IntegrationRuntimeStateStarting', 'IntegrationRuntimeStateStopping', 'IntegrationRuntimeStateNeedRegistration', 'IntegrationRuntimeStateOnline', 'IntegrationRuntimeStateLimited', 'IntegrationRuntimeStateOffline', 'IntegrationRuntimeStateAccessDenied' - State IntegrationRuntimeState `json:"state,omitempty"` - // Type - Possible values include: 'TypeBasicIntegrationRuntimeStatusTypeIntegrationRuntimeStatus', 'TypeBasicIntegrationRuntimeStatusTypeSelfHosted', 'TypeBasicIntegrationRuntimeStatusTypeManaged' - Type TypeBasicIntegrationRuntimeStatus `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - shirs.Type = TypeBasicIntegrationRuntimeStatusTypeSelfHosted - objectMap := make(map[string]interface{}) - if shirs.SelfHostedIntegrationRuntimeStatusTypeProperties != nil { - objectMap["typeProperties"] = shirs.SelfHostedIntegrationRuntimeStatusTypeProperties - } - if shirs.Type != "" { - objectMap["type"] = shirs.Type - } - for k, v := range shirs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSelfHostedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsSelfHostedIntegrationRuntimeStatus() (*SelfHostedIntegrationRuntimeStatus, bool) { - return &shirs, true -} - -// AsManagedIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsManagedIntegrationRuntimeStatus() (*ManagedIntegrationRuntimeStatus, bool) { - return nil, false -} - -// AsIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsIntegrationRuntimeStatus() (*IntegrationRuntimeStatus, bool) { - return nil, false -} - -// AsBasicIntegrationRuntimeStatus is the BasicIntegrationRuntimeStatus implementation for SelfHostedIntegrationRuntimeStatus. -func (shirs SelfHostedIntegrationRuntimeStatus) AsBasicIntegrationRuntimeStatus() (BasicIntegrationRuntimeStatus, bool) { - return &shirs, true -} - -// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeStatus struct. -func (shirs *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var selfHostedIntegrationRuntimeStatusTypeProperties SelfHostedIntegrationRuntimeStatusTypeProperties - err = json.Unmarshal(*v, &selfHostedIntegrationRuntimeStatusTypeProperties) - if err != nil { - return err - } - shirs.SelfHostedIntegrationRuntimeStatusTypeProperties = &selfHostedIntegrationRuntimeStatusTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if shirs.AdditionalProperties == nil { - shirs.AdditionalProperties = make(map[string]interface{}) - } - shirs.AdditionalProperties[k] = additionalProperties - } - case "dataFactoryName": - if v != nil { - var dataFactoryName string - err = json.Unmarshal(*v, &dataFactoryName) - if err != nil { - return err - } - shirs.DataFactoryName = &dataFactoryName - } - case "state": - if v != nil { - var state IntegrationRuntimeState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - shirs.State = state - } - case "type": - if v != nil { - var typeVar TypeBasicIntegrationRuntimeStatus - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - shirs.Type = typeVar - } - } - } - - return nil -} - -// SelfHostedIntegrationRuntimeStatusTypeProperties self-hosted integration runtime status type properties. -type SelfHostedIntegrationRuntimeStatusTypeProperties struct { - // CreateTime - READ-ONLY; The time at which the integration runtime was created, in ISO8601 format. - CreateTime *date.Time `json:"createTime,omitempty"` - // TaskQueueID - READ-ONLY; The task queue id of the integration runtime. - TaskQueueID *string `json:"taskQueueId,omitempty"` - // InternalChannelEncryption - 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). Possible values include: 'IntegrationRuntimeInternalChannelEncryptionModeNotSet', 'IntegrationRuntimeInternalChannelEncryptionModeSslEncrypted', 'IntegrationRuntimeInternalChannelEncryptionModeNotEncrypted' - InternalChannelEncryption IntegrationRuntimeInternalChannelEncryptionMode `json:"internalChannelEncryption,omitempty"` - // Version - READ-ONLY; Version of the integration runtime. - Version *string `json:"version,omitempty"` - // Nodes - The list of nodes for this integration runtime. - Nodes *[]SelfHostedIntegrationRuntimeNode `json:"nodes,omitempty"` - // ScheduledUpdateDate - READ-ONLY; The date at which the integration runtime will be scheduled to update, in ISO8601 format. - ScheduledUpdateDate *date.Time `json:"scheduledUpdateDate,omitempty"` - // UpdateDelayOffset - 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"` - // LocalTimeZoneOffset - READ-ONLY; The local time zone offset in hours. - LocalTimeZoneOffset *string `json:"localTimeZoneOffset,omitempty"` - // Capabilities - READ-ONLY; Object with additional information about integration runtime capabilities. - Capabilities map[string]*string `json:"capabilities"` - // ServiceUrls - READ-ONLY; The URLs for the services used in integration runtime backend service. - ServiceUrls *[]string `json:"serviceUrls,omitempty"` - // AutoUpdate - READ-ONLY; Whether Self-hosted integration runtime auto update has been turned on. Possible values include: 'IntegrationRuntimeAutoUpdateOn', 'IntegrationRuntimeAutoUpdateOff' - AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` - // VersionStatus - READ-ONLY; Status of the integration runtime version. - VersionStatus *string `json:"versionStatus,omitempty"` - // Links - The list of linked integration runtimes that are created to share with this integration runtime. - Links *[]LinkedIntegrationRuntime `json:"links,omitempty"` - // PushedVersion - READ-ONLY; The version that the integration runtime is going to update to. - PushedVersion *string `json:"pushedVersion,omitempty"` - // LatestVersion - READ-ONLY; The latest version on download center. - LatestVersion *string `json:"latestVersion,omitempty"` - // AutoUpdateETA - READ-ONLY; The estimated time when the self-hosted integration runtime will be updated. - AutoUpdateETA *date.Time `json:"autoUpdateETA,omitempty"` - // SelfContainedInteractiveAuthoringEnabled - 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 `json:"selfContainedInteractiveAuthoringEnabled,omitempty"` -} - -// MarshalJSON is the custom marshaler for SelfHostedIntegrationRuntimeStatusTypeProperties. -func (shirstp SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if shirstp.Nodes != nil { - objectMap["nodes"] = shirstp.Nodes - } - if shirstp.Links != nil { - objectMap["links"] = shirstp.Links - } - return json.Marshal(objectMap) -} - -// SelfHostedIntegrationRuntimeTypeProperties the self-hosted integration runtime properties. -type SelfHostedIntegrationRuntimeTypeProperties struct { - LinkedInfo BasicLinkedIntegrationRuntimeType `json:"linkedInfo,omitempty"` - // SelfContainedInteractiveAuthoringEnabled - 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 `json:"selfContainedInteractiveAuthoringEnabled,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SelfHostedIntegrationRuntimeTypeProperties struct. -func (shirtp *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "linkedInfo": - if v != nil { - linkedInfo, err := unmarshalBasicLinkedIntegrationRuntimeType(*v) - if err != nil { - return err - } - shirtp.LinkedInfo = linkedInfo - } - case "selfContainedInteractiveAuthoringEnabled": - if v != nil { - var selfContainedInteractiveAuthoringEnabled bool - err = json.Unmarshal(*v, &selfContainedInteractiveAuthoringEnabled) - if err != nil { - return err - } - shirtp.SelfContainedInteractiveAuthoringEnabled = &selfContainedInteractiveAuthoringEnabled - } - } - } - - return nil -} - -// ServiceNowLinkedService serviceNow server linked service. -type ServiceNowLinkedService struct { - // ServiceNowLinkedServiceTypeProperties - ServiceNow server linked service properties. - *ServiceNowLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) MarshalJSON() ([]byte, error) { - snls.Type = TypeBasicLinkedServiceTypeServiceNow - objectMap := make(map[string]interface{}) - if snls.ServiceNowLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = snls.ServiceNowLinkedServiceTypeProperties - } - if snls.ConnectVia != nil { - objectMap["connectVia"] = snls.ConnectVia - } - if snls.Description != nil { - objectMap["description"] = snls.Description - } - if snls.Parameters != nil { - objectMap["parameters"] = snls.Parameters - } - if snls.Annotations != nil { - objectMap["annotations"] = snls.Annotations - } - if snls.Type != "" { - objectMap["type"] = snls.Type - } - for k, v := range snls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return &snls, true -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for ServiceNowLinkedService. -func (snls ServiceNowLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &snls, true -} - -// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedService struct. -func (snls *ServiceNowLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var serviceNowLinkedServiceTypeProperties ServiceNowLinkedServiceTypeProperties - err = json.Unmarshal(*v, &serviceNowLinkedServiceTypeProperties) - if err != nil { - return err - } - snls.ServiceNowLinkedServiceTypeProperties = &serviceNowLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if snls.AdditionalProperties == nil { - snls.AdditionalProperties = make(map[string]interface{}) - } - snls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - snls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - snls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - snls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - snls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - snls.Type = typeVar - } - } - } - - return nil -} - -// ServiceNowLinkedServiceTypeProperties serviceNow server linked service properties. -type ServiceNowLinkedServiceTypeProperties struct { - // Endpoint - The endpoint of the ServiceNow server. (i.e. .service-now.com) - Endpoint interface{} `json:"endpoint,omitempty"` - // AuthenticationType - The authentication type to use. Possible values include: 'ServiceNowAuthenticationTypeBasic', 'ServiceNowAuthenticationTypeOAuth2' - AuthenticationType ServiceNowAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name for Basic and OAuth2 authentication. - Password BasicSecretBase `json:"password,omitempty"` - // ClientID - The client id for OAuth2 authentication. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret for OAuth2 authentication. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ServiceNowLinkedServiceTypeProperties struct. -func (snlstp *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - snlstp.Endpoint = endpoint - } - case "authenticationType": - if v != nil { - var authenticationType ServiceNowAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - snlstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - snlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - snlstp.Password = password - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - snlstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - snlstp.ClientSecret = clientSecret - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - snlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - snlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - snlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - snlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// ServiceNowObjectDataset serviceNow server dataset. -type ServiceNowObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) MarshalJSON() ([]byte, error) { - snod.Type = TypeBasicDatasetTypeServiceNowObject - objectMap := make(map[string]interface{}) - if snod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = snod.GenericDatasetTypeProperties - } - if snod.Description != nil { - objectMap["description"] = snod.Description - } - if snod.Structure != nil { - objectMap["structure"] = snod.Structure - } - if snod.Schema != nil { - objectMap["schema"] = snod.Schema - } - if snod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = snod.LinkedServiceName - } - if snod.Parameters != nil { - objectMap["parameters"] = snod.Parameters - } - if snod.Annotations != nil { - objectMap["annotations"] = snod.Annotations - } - if snod.Folder != nil { - objectMap["folder"] = snod.Folder - } - if snod.Type != "" { - objectMap["type"] = snod.Type - } - for k, v := range snod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return &snod, true -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ServiceNowObjectDataset. -func (snod ServiceNowObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &snod, true -} - -// UnmarshalJSON is the custom unmarshaler for ServiceNowObjectDataset struct. -func (snod *ServiceNowObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - snod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if snod.AdditionalProperties == nil { - snod.AdditionalProperties = make(map[string]interface{}) - } - snod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - snod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - snod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - snod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - snod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - snod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - snod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - snod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - snod.Type = typeVar - } - } - } - - return nil -} - -// ServiceNowSource a copy activity ServiceNow server source. -type ServiceNowSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ServiceNowSource. -func (sns ServiceNowSource) MarshalJSON() ([]byte, error) { - sns.Type = TypeBasicCopySourceTypeServiceNowSource - objectMap := make(map[string]interface{}) - if sns.Query != nil { - objectMap["query"] = sns.Query - } - if sns.QueryTimeout != nil { - objectMap["queryTimeout"] = sns.QueryTimeout - } - if sns.AdditionalColumns != nil { - objectMap["additionalColumns"] = sns.AdditionalColumns - } - if sns.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = sns.SourceRetryCount - } - if sns.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = sns.SourceRetryWait - } - if sns.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sns.MaxConcurrentConnections - } - if sns.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sns.DisableMetricsCollection - } - if sns.Type != "" { - objectMap["type"] = sns.Type - } - for k, v := range sns.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return &sns, true -} - -// AsQuickBooksSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &sns, true -} - -// AsBinarySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ServiceNowSource. -func (sns ServiceNowSource) AsBasicCopySource() (BasicCopySource, bool) { - return &sns, true -} - -// UnmarshalJSON is the custom unmarshaler for ServiceNowSource struct. -func (sns *ServiceNowSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - sns.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - sns.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - sns.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sns.AdditionalProperties == nil { - sns.AdditionalProperties = make(map[string]interface{}) - } - sns.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - sns.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - sns.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sns.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sns.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sns.Type = typeVar - } - } - } - - return nil -} - -// ServicePrincipalCredential service principal credential. -type ServicePrincipalCredential struct { - // ServicePrincipalCredentialTypeProperties - Service Principal credential properties. - *ServicePrincipalCredentialTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Credential description. - Description *string `json:"description,omitempty"` - // Annotations - List of tags that can be used for describing the Credential. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicCredentialTypeCredential', 'TypeBasicCredentialTypeManagedIdentity', 'TypeBasicCredentialTypeServicePrincipal' - Type TypeBasicCredential `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ServicePrincipalCredential. -func (spc ServicePrincipalCredential) MarshalJSON() ([]byte, error) { - spc.Type = TypeBasicCredentialTypeServicePrincipal - objectMap := make(map[string]interface{}) - if spc.ServicePrincipalCredentialTypeProperties != nil { - objectMap["typeProperties"] = spc.ServicePrincipalCredentialTypeProperties - } - if spc.Description != nil { - objectMap["description"] = spc.Description - } - if spc.Annotations != nil { - objectMap["annotations"] = spc.Annotations - } - if spc.Type != "" { - objectMap["type"] = spc.Type - } - for k, v := range spc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsManagedIdentityCredential is the BasicCredential implementation for ServicePrincipalCredential. -func (spc ServicePrincipalCredential) AsManagedIdentityCredential() (*ManagedIdentityCredential, bool) { - return nil, false -} - -// AsServicePrincipalCredential is the BasicCredential implementation for ServicePrincipalCredential. -func (spc ServicePrincipalCredential) AsServicePrincipalCredential() (*ServicePrincipalCredential, bool) { - return &spc, true -} - -// AsCredential is the BasicCredential implementation for ServicePrincipalCredential. -func (spc ServicePrincipalCredential) AsCredential() (*Credential, bool) { - return nil, false -} - -// AsBasicCredential is the BasicCredential implementation for ServicePrincipalCredential. -func (spc ServicePrincipalCredential) AsBasicCredential() (BasicCredential, bool) { - return &spc, true -} - -// UnmarshalJSON is the custom unmarshaler for ServicePrincipalCredential struct. -func (spc *ServicePrincipalCredential) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var servicePrincipalCredentialTypeProperties ServicePrincipalCredentialTypeProperties - err = json.Unmarshal(*v, &servicePrincipalCredentialTypeProperties) - if err != nil { - return err - } - spc.ServicePrincipalCredentialTypeProperties = &servicePrincipalCredentialTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if spc.AdditionalProperties == nil { - spc.AdditionalProperties = make(map[string]interface{}) - } - spc.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - spc.Description = &description - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - spc.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicCredential - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - spc.Type = typeVar - } - } - } - - return nil -} - -// ServicePrincipalCredentialTypeProperties service Principal credential type properties. -type ServicePrincipalCredentialTypeProperties struct { - // ServicePrincipalID - The app ID of the service principal used to authenticate - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The key of the service principal used to authenticate. - ServicePrincipalKey *AzureKeyVaultSecretReference `json:"servicePrincipalKey,omitempty"` - // Tenant - The ID of the tenant to which the service principal belongs - Tenant interface{} `json:"tenant,omitempty"` -} - -// SetVariableActivity set value for a Variable. -type SetVariableActivity struct { - // SetVariableActivityTypeProperties - Set Variable activity properties. - *SetVariableActivityTypeProperties `json:"typeProperties,omitempty"` - // Policy - Activity policy. - Policy *SecureInputOutputPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SetVariableActivity. -func (sva SetVariableActivity) MarshalJSON() ([]byte, error) { - sva.Type = TypeBasicActivityTypeSetVariable - objectMap := make(map[string]interface{}) - if sva.SetVariableActivityTypeProperties != nil { - objectMap["typeProperties"] = sva.SetVariableActivityTypeProperties - } - if sva.Policy != nil { - objectMap["policy"] = sva.Policy - } - if sva.Name != nil { - objectMap["name"] = sva.Name - } - if sva.Description != nil { - objectMap["description"] = sva.Description - } - if sva.State != "" { - objectMap["state"] = sva.State - } - if sva.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = sva.OnInactiveMarkAs - } - if sva.DependsOn != nil { - objectMap["dependsOn"] = sva.DependsOn - } - if sva.UserProperties != nil { - objectMap["userProperties"] = sva.UserProperties - } - if sva.Type != "" { - objectMap["type"] = sva.Type - } - for k, v := range sva.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return &sva, true -} - -// AsFilterActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &sva, true -} - -// AsActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for SetVariableActivity. -func (sva SetVariableActivity) AsBasicActivity() (BasicActivity, bool) { - return &sva, true -} - -// UnmarshalJSON is the custom unmarshaler for SetVariableActivity struct. -func (sva *SetVariableActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var setVariableActivityTypeProperties SetVariableActivityTypeProperties - err = json.Unmarshal(*v, &setVariableActivityTypeProperties) - if err != nil { - return err - } - sva.SetVariableActivityTypeProperties = &setVariableActivityTypeProperties - } - case "policy": - if v != nil { - var policy SecureInputOutputPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - sva.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sva.AdditionalProperties == nil { - sva.AdditionalProperties = make(map[string]interface{}) - } - sva.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sva.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sva.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - sva.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - sva.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - sva.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - sva.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sva.Type = typeVar - } - } - } - - return nil -} - -// SetVariableActivityTypeProperties setVariable activity properties. -type SetVariableActivityTypeProperties struct { - // VariableName - Name of the variable whose value needs to be set. - VariableName *string `json:"variableName,omitempty"` - // Value - Value to be set. Could be a static value or Expression. - Value interface{} `json:"value,omitempty"` - // SetSystemVariable - If set to true, it sets the pipeline run return value. - SetSystemVariable *bool `json:"setSystemVariable,omitempty"` -} - -// SftpLocation the location of SFTP dataset. -type SftpLocation struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // FolderPath - Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` - // FileName - Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetLocationTypeDatasetLocation', 'TypeBasicDatasetLocationTypeLakeHouseLocation', 'TypeBasicDatasetLocationTypeHdfsLocation', 'TypeBasicDatasetLocationTypeHTTPServerLocation', 'TypeBasicDatasetLocationTypeSftpLocation', 'TypeBasicDatasetLocationTypeFtpServerLocation', 'TypeBasicDatasetLocationTypeGoogleCloudStorageLocation', 'TypeBasicDatasetLocationTypeOracleCloudStorageLocation', 'TypeBasicDatasetLocationTypeAmazonS3CompatibleLocation', 'TypeBasicDatasetLocationTypeAzureFileStorageLocation', 'TypeBasicDatasetLocationTypeFileServerLocation', 'TypeBasicDatasetLocationTypeAmazonS3Location', 'TypeBasicDatasetLocationTypeAzureDataLakeStoreLocation', 'TypeBasicDatasetLocationTypeAzureBlobFSLocation', 'TypeBasicDatasetLocationTypeAzureBlobStorageLocation' - Type TypeBasicDatasetLocation `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SftpLocation. -func (sl SftpLocation) MarshalJSON() ([]byte, error) { - sl.Type = TypeBasicDatasetLocationTypeSftpLocation - objectMap := make(map[string]interface{}) - if sl.FolderPath != nil { - objectMap["folderPath"] = sl.FolderPath - } - if sl.FileName != nil { - objectMap["fileName"] = sl.FileName - } - if sl.Type != "" { - objectMap["type"] = sl.Type - } - for k, v := range sl.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsLakeHouseLocation() (*LakeHouseLocation, bool) { - return nil, false -} - -// AsHdfsLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsHdfsLocation() (*HdfsLocation, bool) { - return nil, false -} - -// AsHTTPServerLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsHTTPServerLocation() (*HTTPServerLocation, bool) { - return nil, false -} - -// AsSftpLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsSftpLocation() (*SftpLocation, bool) { - return &sl, true -} - -// AsFtpServerLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsFtpServerLocation() (*FtpServerLocation, bool) { - return nil, false -} - -// AsGoogleCloudStorageLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsGoogleCloudStorageLocation() (*GoogleCloudStorageLocation, bool) { - return nil, false -} - -// AsOracleCloudStorageLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsOracleCloudStorageLocation() (*OracleCloudStorageLocation, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAmazonS3CompatibleLocation() (*AmazonS3CompatibleLocation, bool) { - return nil, false -} - -// AsAzureFileStorageLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAzureFileStorageLocation() (*AzureFileStorageLocation, bool) { - return nil, false -} - -// AsFileServerLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsFileServerLocation() (*FileServerLocation, bool) { - return nil, false -} - -// AsAmazonS3Location is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAmazonS3Location() (*AmazonS3Location, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAzureDataLakeStoreLocation() (*AzureDataLakeStoreLocation, bool) { - return nil, false -} - -// AsAzureBlobFSLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAzureBlobFSLocation() (*AzureBlobFSLocation, bool) { - return nil, false -} - -// AsAzureBlobStorageLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsAzureBlobStorageLocation() (*AzureBlobStorageLocation, bool) { - return nil, false -} - -// AsDatasetLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsDatasetLocation() (*DatasetLocation, bool) { - return nil, false -} - -// AsBasicDatasetLocation is the BasicDatasetLocation implementation for SftpLocation. -func (sl SftpLocation) AsBasicDatasetLocation() (BasicDatasetLocation, bool) { - return &sl, true -} - -// UnmarshalJSON is the custom unmarshaler for SftpLocation struct. -func (sl *SftpLocation) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sl.AdditionalProperties == nil { - sl.AdditionalProperties = make(map[string]interface{}) - } - sl.AdditionalProperties[k] = additionalProperties - } - case "folderPath": - if v != nil { - var folderPath interface{} - err = json.Unmarshal(*v, &folderPath) - if err != nil { - return err - } - sl.FolderPath = folderPath - } - case "fileName": - if v != nil { - var fileName interface{} - err = json.Unmarshal(*v, &fileName) - if err != nil { - return err - } - sl.FileName = fileName - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetLocation - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sl.Type = typeVar - } - } - } - - return nil -} - -// SftpReadSettings sftp read settings. -type SftpReadSettings struct { - // Recursive - 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"` - // WildcardFolderPath - Sftp wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` - // WildcardFileName - Sftp wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` - // EnablePartitionDiscovery - Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). - EnablePartitionDiscovery interface{} `json:"enablePartitionDiscovery,omitempty"` - // PartitionRootPath - Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` - // FileListPath - 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"` - // DeleteFilesAfterCompletion - 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"` - // ModifiedDatetimeStart - The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` - // ModifiedDatetimeEnd - The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` - // DisableChunking - If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). - DisableChunking interface{} `json:"disableChunking,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SftpReadSettings. -func (srs SftpReadSettings) MarshalJSON() ([]byte, error) { - srs.Type = TypeBasicStoreReadSettingsTypeSftpReadSettings - objectMap := make(map[string]interface{}) - if srs.Recursive != nil { - objectMap["recursive"] = srs.Recursive - } - if srs.WildcardFolderPath != nil { - objectMap["wildcardFolderPath"] = srs.WildcardFolderPath - } - if srs.WildcardFileName != nil { - objectMap["wildcardFileName"] = srs.WildcardFileName - } - if srs.EnablePartitionDiscovery != nil { - objectMap["enablePartitionDiscovery"] = srs.EnablePartitionDiscovery - } - if srs.PartitionRootPath != nil { - objectMap["partitionRootPath"] = srs.PartitionRootPath - } - if srs.FileListPath != nil { - objectMap["fileListPath"] = srs.FileListPath - } - if srs.DeleteFilesAfterCompletion != nil { - objectMap["deleteFilesAfterCompletion"] = srs.DeleteFilesAfterCompletion - } - if srs.ModifiedDatetimeStart != nil { - objectMap["modifiedDatetimeStart"] = srs.ModifiedDatetimeStart - } - if srs.ModifiedDatetimeEnd != nil { - objectMap["modifiedDatetimeEnd"] = srs.ModifiedDatetimeEnd - } - if srs.DisableChunking != nil { - objectMap["disableChunking"] = srs.DisableChunking - } - if srs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = srs.MaxConcurrentConnections - } - if srs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = srs.DisableMetricsCollection - } - if srs.Type != "" { - objectMap["type"] = srs.Type - } - for k, v := range srs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return &srs, true -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return nil, false -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for SftpReadSettings. -func (srs SftpReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &srs, true -} - -// UnmarshalJSON is the custom unmarshaler for SftpReadSettings struct. -func (srs *SftpReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "recursive": - if v != nil { - var recursive interface{} - err = json.Unmarshal(*v, &recursive) - if err != nil { - return err - } - srs.Recursive = recursive - } - case "wildcardFolderPath": - if v != nil { - var wildcardFolderPath interface{} - err = json.Unmarshal(*v, &wildcardFolderPath) - if err != nil { - return err - } - srs.WildcardFolderPath = wildcardFolderPath - } - case "wildcardFileName": - if v != nil { - var wildcardFileName interface{} - err = json.Unmarshal(*v, &wildcardFileName) - if err != nil { - return err - } - srs.WildcardFileName = wildcardFileName - } - case "enablePartitionDiscovery": - if v != nil { - var enablePartitionDiscovery interface{} - err = json.Unmarshal(*v, &enablePartitionDiscovery) - if err != nil { - return err - } - srs.EnablePartitionDiscovery = enablePartitionDiscovery - } - case "partitionRootPath": - if v != nil { - var partitionRootPath interface{} - err = json.Unmarshal(*v, &partitionRootPath) - if err != nil { - return err - } - srs.PartitionRootPath = partitionRootPath - } - case "fileListPath": - if v != nil { - var fileListPath interface{} - err = json.Unmarshal(*v, &fileListPath) - if err != nil { - return err - } - srs.FileListPath = fileListPath - } - case "deleteFilesAfterCompletion": - if v != nil { - var deleteFilesAfterCompletion interface{} - err = json.Unmarshal(*v, &deleteFilesAfterCompletion) - if err != nil { - return err - } - srs.DeleteFilesAfterCompletion = deleteFilesAfterCompletion - } - case "modifiedDatetimeStart": - if v != nil { - var modifiedDatetimeStart interface{} - err = json.Unmarshal(*v, &modifiedDatetimeStart) - if err != nil { - return err - } - srs.ModifiedDatetimeStart = modifiedDatetimeStart - } - case "modifiedDatetimeEnd": - if v != nil { - var modifiedDatetimeEnd interface{} - err = json.Unmarshal(*v, &modifiedDatetimeEnd) - if err != nil { - return err - } - srs.ModifiedDatetimeEnd = modifiedDatetimeEnd - } - case "disableChunking": - if v != nil { - var disableChunking interface{} - err = json.Unmarshal(*v, &disableChunking) - if err != nil { - return err - } - srs.DisableChunking = disableChunking - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if srs.AdditionalProperties == nil { - srs.AdditionalProperties = make(map[string]interface{}) - } - srs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - srs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - srs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - srs.Type = typeVar - } - } - } - - return nil -} - -// SftpServerLinkedService a linked service for an SSH File Transfer Protocol (SFTP) server. -type SftpServerLinkedService struct { - // SftpServerLinkedServiceTypeProperties - Properties specific to this linked service type. - *SftpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SftpServerLinkedService. -func (ssls SftpServerLinkedService) MarshalJSON() ([]byte, error) { - ssls.Type = TypeBasicLinkedServiceTypeSftp - objectMap := make(map[string]interface{}) - if ssls.SftpServerLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = ssls.SftpServerLinkedServiceTypeProperties - } - if ssls.ConnectVia != nil { - objectMap["connectVia"] = ssls.ConnectVia - } - if ssls.Description != nil { - objectMap["description"] = ssls.Description - } - if ssls.Parameters != nil { - objectMap["parameters"] = ssls.Parameters - } - if ssls.Annotations != nil { - objectMap["annotations"] = ssls.Annotations - } - if ssls.Type != "" { - objectMap["type"] = ssls.Type - } - for k, v := range ssls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return &ssls, true -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SftpServerLinkedService. -func (ssls SftpServerLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &ssls, true -} - -// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedService struct. -func (ssls *SftpServerLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sftpServerLinkedServiceTypeProperties SftpServerLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sftpServerLinkedServiceTypeProperties) - if err != nil { - return err - } - ssls.SftpServerLinkedServiceTypeProperties = &sftpServerLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ssls.AdditionalProperties == nil { - ssls.AdditionalProperties = make(map[string]interface{}) - } - ssls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - ssls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ssls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ssls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ssls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssls.Type = typeVar - } - } - } - - return nil -} - -// SftpServerLinkedServiceTypeProperties properties specific to this linked service type. -type SftpServerLinkedServiceTypeProperties struct { - // Host - The SFTP server host name. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` - // Port - 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"` - // AuthenticationType - The authentication type to be used to connect to the FTP server. Possible values include: 'SftpAuthenticationTypeBasic', 'SftpAuthenticationTypeSSHPublicKey', 'SftpAuthenticationTypeMultiFactor' - AuthenticationType SftpAuthenticationType `json:"authenticationType,omitempty"` - // UserName - The username used to log on to the SFTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - Password to logon the SFTP server for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // PrivateKeyPath - 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"` - // PrivateKeyContent - 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 BasicSecretBase `json:"privateKeyContent,omitempty"` - // PassPhrase - The password to decrypt the SSH private key if the SSH private key is encrypted. - PassPhrase BasicSecretBase `json:"passPhrase,omitempty"` - // SkipHostKeyValidation - If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). - SkipHostKeyValidation interface{} `json:"skipHostKeyValidation,omitempty"` - // HostKeyFingerprint - 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"` -} - -// UnmarshalJSON is the custom unmarshaler for SftpServerLinkedServiceTypeProperties struct. -func (sslstp *SftpServerLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - sslstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - sslstp.Port = port - } - case "authenticationType": - if v != nil { - var authenticationType SftpAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - sslstp.AuthenticationType = authenticationType - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - sslstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - sslstp.EncryptedCredential = &encryptedCredential - } - case "privateKeyPath": - if v != nil { - var privateKeyPath interface{} - err = json.Unmarshal(*v, &privateKeyPath) - if err != nil { - return err - } - sslstp.PrivateKeyPath = privateKeyPath - } - case "privateKeyContent": - if v != nil { - privateKeyContent, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.PrivateKeyContent = privateKeyContent - } - case "passPhrase": - if v != nil { - passPhrase, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - sslstp.PassPhrase = passPhrase - } - case "skipHostKeyValidation": - if v != nil { - var skipHostKeyValidation interface{} - err = json.Unmarshal(*v, &skipHostKeyValidation) - if err != nil { - return err - } - sslstp.SkipHostKeyValidation = skipHostKeyValidation - } - case "hostKeyFingerprint": - if v != nil { - var hostKeyFingerprint interface{} - err = json.Unmarshal(*v, &hostKeyFingerprint) - if err != nil { - return err - } - sslstp.HostKeyFingerprint = hostKeyFingerprint - } - } - } - - return nil -} - -// SftpWriteSettings sftp write settings. -type SftpWriteSettings struct { - // OperationTimeout - 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"` - // UseTempFileRename - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SftpWriteSettings. -func (sws SftpWriteSettings) MarshalJSON() ([]byte, error) { - sws.Type = TypeBasicStoreWriteSettingsTypeSftpWriteSettings - objectMap := make(map[string]interface{}) - if sws.OperationTimeout != nil { - objectMap["operationTimeout"] = sws.OperationTimeout - } - if sws.UseTempFileRename != nil { - objectMap["useTempFileRename"] = sws.UseTempFileRename - } - if sws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sws.MaxConcurrentConnections - } - if sws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sws.DisableMetricsCollection - } - if sws.CopyBehavior != nil { - objectMap["copyBehavior"] = sws.CopyBehavior - } - if sws.Metadata != nil { - objectMap["metadata"] = sws.Metadata - } - if sws.Type != "" { - objectMap["type"] = sws.Type - } - for k, v := range sws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { - return nil, false -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return &sws, true -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return nil, false -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for SftpWriteSettings. -func (sws SftpWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &sws, true -} - -// UnmarshalJSON is the custom unmarshaler for SftpWriteSettings struct. -func (sws *SftpWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "operationTimeout": - if v != nil { - var operationTimeout interface{} - err = json.Unmarshal(*v, &operationTimeout) - if err != nil { - return err - } - sws.OperationTimeout = operationTimeout - } - case "useTempFileRename": - if v != nil { - var useTempFileRename interface{} - err = json.Unmarshal(*v, &useTempFileRename) - if err != nil { - return err - } - sws.UseTempFileRename = useTempFileRename - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sws.AdditionalProperties == nil { - sws.AdditionalProperties = make(map[string]interface{}) - } - sws.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sws.DisableMetricsCollection = disableMetricsCollection - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - sws.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - sws.Metadata = &metadata - } - case "type": - if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sws.Type = typeVar - } - } - } - - return nil -} - -// SharePointOnlineListDatasetTypeProperties sharepoint online list dataset properties. -type SharePointOnlineListDatasetTypeProperties struct { - // ListName - The name of the SharePoint Online list. Type: string (or Expression with resultType string). - ListName interface{} `json:"listName,omitempty"` -} - -// SharePointOnlineListLinkedService sharePoint Online List linked service. -type SharePointOnlineListLinkedService struct { - // SharePointOnlineListLinkedServiceTypeProperties - SharePoint Online List linked service properties. - *SharePointOnlineListLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error) { - spolls.Type = TypeBasicLinkedServiceTypeSharePointOnlineList - objectMap := make(map[string]interface{}) - if spolls.SharePointOnlineListLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = spolls.SharePointOnlineListLinkedServiceTypeProperties - } - if spolls.ConnectVia != nil { - objectMap["connectVia"] = spolls.ConnectVia - } - if spolls.Description != nil { - objectMap["description"] = spolls.Description - } - if spolls.Parameters != nil { - objectMap["parameters"] = spolls.Parameters - } - if spolls.Annotations != nil { - objectMap["annotations"] = spolls.Annotations - } - if spolls.Type != "" { - objectMap["type"] = spolls.Type - } - for k, v := range spolls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return &spolls, true -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SharePointOnlineListLinkedService. -func (spolls SharePointOnlineListLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &spolls, true -} - -// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListLinkedService struct. -func (spolls *SharePointOnlineListLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sharePointOnlineListLinkedServiceTypeProperties SharePointOnlineListLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sharePointOnlineListLinkedServiceTypeProperties) - if err != nil { - return err - } - spolls.SharePointOnlineListLinkedServiceTypeProperties = &sharePointOnlineListLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if spolls.AdditionalProperties == nil { - spolls.AdditionalProperties = make(map[string]interface{}) - } - spolls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - spolls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - spolls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - spolls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - spolls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - spolls.Type = typeVar - } - } - } - - return nil -} - -// SharePointOnlineListLinkedServiceTypeProperties sharePoint Online List linked service properties. -type SharePointOnlineListLinkedServiceTypeProperties struct { - // SiteURL - 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"` - // TenantID - 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"` - // ServicePrincipalID - 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"` - // ServicePrincipalKey - The client secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType string). - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListLinkedServiceTypeProperties struct. -func (spollstp *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "siteUrl": - if v != nil { - var siteURL interface{} - err = json.Unmarshal(*v, &siteURL) - if err != nil { - return err - } - spollstp.SiteURL = siteURL - } - case "tenantId": - if v != nil { - var tenantID interface{} - err = json.Unmarshal(*v, &tenantID) - if err != nil { - return err - } - spollstp.TenantID = tenantID - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - spollstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - spollstp.ServicePrincipalKey = servicePrincipalKey - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - spollstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SharePointOnlineListResourceDataset the sharepoint online list resource dataset. -type SharePointOnlineListResourceDataset struct { - // SharePointOnlineListDatasetTypeProperties - Sharepoint online list dataset properties. - *SharePointOnlineListDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) MarshalJSON() ([]byte, error) { - spolrd.Type = TypeBasicDatasetTypeSharePointOnlineListResource - objectMap := make(map[string]interface{}) - if spolrd.SharePointOnlineListDatasetTypeProperties != nil { - objectMap["typeProperties"] = spolrd.SharePointOnlineListDatasetTypeProperties - } - if spolrd.Description != nil { - objectMap["description"] = spolrd.Description - } - if spolrd.Structure != nil { - objectMap["structure"] = spolrd.Structure - } - if spolrd.Schema != nil { - objectMap["schema"] = spolrd.Schema - } - if spolrd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = spolrd.LinkedServiceName - } - if spolrd.Parameters != nil { - objectMap["parameters"] = spolrd.Parameters - } - if spolrd.Annotations != nil { - objectMap["annotations"] = spolrd.Annotations - } - if spolrd.Folder != nil { - objectMap["folder"] = spolrd.Folder - } - if spolrd.Type != "" { - objectMap["type"] = spolrd.Type - } - for k, v := range spolrd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return &spolrd, true -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SharePointOnlineListResourceDataset. -func (spolrd SharePointOnlineListResourceDataset) AsBasicDataset() (BasicDataset, bool) { - return &spolrd, true -} - -// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListResourceDataset struct. -func (spolrd *SharePointOnlineListResourceDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sharePointOnlineListDatasetTypeProperties SharePointOnlineListDatasetTypeProperties - err = json.Unmarshal(*v, &sharePointOnlineListDatasetTypeProperties) - if err != nil { - return err - } - spolrd.SharePointOnlineListDatasetTypeProperties = &sharePointOnlineListDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if spolrd.AdditionalProperties == nil { - spolrd.AdditionalProperties = make(map[string]interface{}) - } - spolrd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - spolrd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - spolrd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - spolrd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - spolrd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - spolrd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - spolrd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - spolrd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - spolrd.Type = typeVar - } - } - } - - return nil -} - -// SharePointOnlineListSource a copy activity source for sharePoint online list source. -type SharePointOnlineListSource struct { - // Query - 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"` - // HTTPRequestTimeout - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) MarshalJSON() ([]byte, error) { - spols.Type = TypeBasicCopySourceTypeSharePointOnlineListSource - objectMap := make(map[string]interface{}) - if spols.Query != nil { - objectMap["query"] = spols.Query - } - if spols.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = spols.HTTPRequestTimeout - } - if spols.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = spols.SourceRetryCount - } - if spols.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = spols.SourceRetryWait - } - if spols.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = spols.MaxConcurrentConnections - } - if spols.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = spols.DisableMetricsCollection - } - if spols.Type != "" { - objectMap["type"] = spols.Type - } - for k, v := range spols.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return &spols, true -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SharePointOnlineListSource. -func (spols SharePointOnlineListSource) AsBasicCopySource() (BasicCopySource, bool) { - return &spols, true -} - -// UnmarshalJSON is the custom unmarshaler for SharePointOnlineListSource struct. -func (spols *SharePointOnlineListSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - spols.Query = query - } - case "httpRequestTimeout": - if v != nil { - var HTTPRequestTimeout interface{} - err = json.Unmarshal(*v, &HTTPRequestTimeout) - if err != nil { - return err - } - spols.HTTPRequestTimeout = HTTPRequestTimeout - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if spols.AdditionalProperties == nil { - spols.AdditionalProperties = make(map[string]interface{}) - } - spols.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - spols.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - spols.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - spols.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - spols.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - spols.Type = typeVar - } - } - } - - return nil -} - -// ShopifyLinkedService shopify Service linked service. -type ShopifyLinkedService struct { - // ShopifyLinkedServiceTypeProperties - Shopify Service linked service properties. - *ShopifyLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ShopifyLinkedService. -func (sls ShopifyLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeBasicLinkedServiceTypeShopify - objectMap := make(map[string]interface{}) - if sls.ShopifyLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.ShopifyLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return &sls, true -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for ShopifyLinkedService. -func (sls ShopifyLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedService struct. -func (sls *ShopifyLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var shopifyLinkedServiceTypeProperties ShopifyLinkedServiceTypeProperties - err = json.Unmarshal(*v, &shopifyLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.ShopifyLinkedServiceTypeProperties = &shopifyLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// ShopifyLinkedServiceTypeProperties shopify Service linked service properties. -type ShopifyLinkedServiceTypeProperties struct { - // Host - The endpoint of the Shopify server. (i.e. mystore.myshopify.com) - Host interface{} `json:"host,omitempty"` - // AccessToken - The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ShopifyLinkedServiceTypeProperties struct. -func (slstp *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - slstp.Host = host - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.AccessToken = accessToken - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - slstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - slstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - slstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// ShopifyObjectDataset shopify Service dataset. -type ShopifyObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeBasicDatasetTypeShopifyObject - objectMap := make(map[string]interface{}) - if sod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = sod.GenericDatasetTypeProperties - } - if sod.Description != nil { - objectMap["description"] = sod.Description - } - if sod.Structure != nil { - objectMap["structure"] = sod.Structure - } - if sod.Schema != nil { - objectMap["schema"] = sod.Schema - } - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName - } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters - } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations - } - if sod.Folder != nil { - objectMap["folder"] = sod.Folder - } - if sod.Type != "" { - objectMap["type"] = sod.Type - } - for k, v := range sod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return &sod, true -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ShopifyObjectDataset. -func (sod ShopifyObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true -} - -// UnmarshalJSON is the custom unmarshaler for ShopifyObjectDataset struct. -func (sod *ShopifyObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - sod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sod.AdditionalProperties == nil { - sod.AdditionalProperties = make(map[string]interface{}) - } - sod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sod.Type = typeVar - } - } - } - - return nil -} - -// ShopifySource a copy activity Shopify Service source. -type ShopifySource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ShopifySource. -func (ss ShopifySource) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySourceTypeShopifySource - objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query - } - if ss.QueryTimeout != nil { - objectMap["queryTimeout"] = ss.QueryTimeout - } - if ss.AdditionalColumns != nil { - objectMap["additionalColumns"] = ss.AdditionalColumns - } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount - } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsShopifySource() (*ShopifySource, bool) { - return &ss, true -} - -// AsServiceNowSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ss, true -} - -// AsBinarySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ShopifySource. -func (ss ShopifySource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for ShopifySource struct. -func (ss *ShopifySource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SkipErrorFile skip error file. -type SkipErrorFile struct { - // FileMissing - 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"` - // DataInconsistency - 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"` -} - -// SmartsheetLinkedService linked service for Smartsheet. -type SmartsheetLinkedService struct { - // SmartsheetLinkedServiceTypeProperties - Smartsheet linked service properties. - *SmartsheetLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeBasicLinkedServiceTypeSmartsheet - objectMap := make(map[string]interface{}) - if sls.SmartsheetLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SmartsheetLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return &sls, true -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SmartsheetLinkedService. -func (sls SmartsheetLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// UnmarshalJSON is the custom unmarshaler for SmartsheetLinkedService struct. -func (sls *SmartsheetLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var smartsheetLinkedServiceTypeProperties SmartsheetLinkedServiceTypeProperties - err = json.Unmarshal(*v, &smartsheetLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SmartsheetLinkedServiceTypeProperties = &smartsheetLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// SmartsheetLinkedServiceTypeProperties smartsheet linked service type properties. -type SmartsheetLinkedServiceTypeProperties struct { - // APIToken - The api token for the Smartsheet source. - APIToken BasicSecretBase `json:"apiToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SmartsheetLinkedServiceTypeProperties struct. -func (slstp *SmartsheetLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "apiToken": - if v != nil { - APIToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.APIToken = APIToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SnowflakeDataset the snowflake dataset. -type SnowflakeDataset struct { - // SnowflakeDatasetTypeProperties - Snowflake dataset properties. - *SnowflakeDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeDataset. -func (sd SnowflakeDataset) MarshalJSON() ([]byte, error) { - sd.Type = TypeBasicDatasetTypeSnowflakeTable - objectMap := make(map[string]interface{}) - if sd.SnowflakeDatasetTypeProperties != nil { - objectMap["typeProperties"] = sd.SnowflakeDatasetTypeProperties - } - if sd.Description != nil { - objectMap["description"] = sd.Description - } - if sd.Structure != nil { - objectMap["structure"] = sd.Structure - } - if sd.Schema != nil { - objectMap["schema"] = sd.Schema - } - if sd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sd.LinkedServiceName - } - if sd.Parameters != nil { - objectMap["parameters"] = sd.Parameters - } - if sd.Annotations != nil { - objectMap["annotations"] = sd.Annotations - } - if sd.Folder != nil { - objectMap["folder"] = sd.Folder - } - if sd.Type != "" { - objectMap["type"] = sd.Type - } - for k, v := range sd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return &sd, true -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SnowflakeDataset. -func (sd SnowflakeDataset) AsBasicDataset() (BasicDataset, bool) { - return &sd, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeDataset struct. -func (sd *SnowflakeDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var snowflakeDatasetTypeProperties SnowflakeDatasetTypeProperties - err = json.Unmarshal(*v, &snowflakeDatasetTypeProperties) - if err != nil { - return err - } - sd.SnowflakeDatasetTypeProperties = &snowflakeDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sd.AdditionalProperties == nil { - sd.AdditionalProperties = make(map[string]interface{}) - } - sd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sd.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeDatasetTypeProperties snowflake dataset properties. -type SnowflakeDatasetTypeProperties struct { - // Schema - The schema name of the Snowflake database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - 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 { - // AdditionalCopyOptions - 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", "TIME_FORMAT": "'HH24:MI:SS.FF'" } - AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions"` - // AdditionalFormatOptions - 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", "MAX_FILE_SIZE": "'FALSE'" } - AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicExportSettingsTypeExportSettings', 'TypeBasicExportSettingsTypeSnowflakeExportCopyCommand', 'TypeBasicExportSettingsTypeAzureDatabricksDeltaLakeExportCommand' - Type TypeBasicExportSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error) { - secc.Type = TypeBasicExportSettingsTypeSnowflakeExportCopyCommand - objectMap := make(map[string]interface{}) - if secc.AdditionalCopyOptions != nil { - objectMap["additionalCopyOptions"] = secc.AdditionalCopyOptions - } - if secc.AdditionalFormatOptions != nil { - objectMap["additionalFormatOptions"] = secc.AdditionalFormatOptions - } - if secc.Type != "" { - objectMap["type"] = secc.Type - } - for k, v := range secc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSnowflakeExportCopyCommand is the BasicExportSettings implementation for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) AsSnowflakeExportCopyCommand() (*SnowflakeExportCopyCommand, bool) { - return &secc, true -} - -// AsAzureDatabricksDeltaLakeExportCommand is the BasicExportSettings implementation for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) AsAzureDatabricksDeltaLakeExportCommand() (*AzureDatabricksDeltaLakeExportCommand, bool) { - return nil, false -} - -// AsExportSettings is the BasicExportSettings implementation for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) AsExportSettings() (*ExportSettings, bool) { - return nil, false -} - -// AsBasicExportSettings is the BasicExportSettings implementation for SnowflakeExportCopyCommand. -func (secc SnowflakeExportCopyCommand) AsBasicExportSettings() (BasicExportSettings, bool) { - return &secc, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeExportCopyCommand struct. -func (secc *SnowflakeExportCopyCommand) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "additionalCopyOptions": - if v != nil { - var additionalCopyOptions map[string]interface{} - err = json.Unmarshal(*v, &additionalCopyOptions) - if err != nil { - return err - } - secc.AdditionalCopyOptions = additionalCopyOptions - } - case "additionalFormatOptions": - if v != nil { - var additionalFormatOptions map[string]interface{} - err = json.Unmarshal(*v, &additionalFormatOptions) - if err != nil { - return err - } - secc.AdditionalFormatOptions = additionalFormatOptions - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if secc.AdditionalProperties == nil { - secc.AdditionalProperties = make(map[string]interface{}) - } - secc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicExportSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - secc.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeImportCopyCommand snowflake import command settings. -type SnowflakeImportCopyCommand struct { - // AdditionalCopyOptions - 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", "TIME_FORMAT": "'HH24:MI:SS.FF'" } - AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions"` - // AdditionalFormatOptions - 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", "LOAD_UNCERTAIN_FILES": "'FALSE'" } - AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicImportSettingsTypeImportSettings', 'TypeBasicImportSettingsTypeAzureDatabricksDeltaLakeImportCommand', 'TypeBasicImportSettingsTypeSnowflakeImportCopyCommand' - Type TypeBasicImportSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) MarshalJSON() ([]byte, error) { - sicc.Type = TypeBasicImportSettingsTypeSnowflakeImportCopyCommand - objectMap := make(map[string]interface{}) - if sicc.AdditionalCopyOptions != nil { - objectMap["additionalCopyOptions"] = sicc.AdditionalCopyOptions - } - if sicc.AdditionalFormatOptions != nil { - objectMap["additionalFormatOptions"] = sicc.AdditionalFormatOptions - } - if sicc.Type != "" { - objectMap["type"] = sicc.Type - } - for k, v := range sicc.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsAzureDatabricksDeltaLakeImportCommand is the BasicImportSettings implementation for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) AsAzureDatabricksDeltaLakeImportCommand() (*AzureDatabricksDeltaLakeImportCommand, bool) { - return nil, false -} - -// AsSnowflakeImportCopyCommand is the BasicImportSettings implementation for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) AsSnowflakeImportCopyCommand() (*SnowflakeImportCopyCommand, bool) { - return &sicc, true -} - -// AsImportSettings is the BasicImportSettings implementation for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) AsImportSettings() (*ImportSettings, bool) { - return nil, false -} - -// AsBasicImportSettings is the BasicImportSettings implementation for SnowflakeImportCopyCommand. -func (sicc SnowflakeImportCopyCommand) AsBasicImportSettings() (BasicImportSettings, bool) { - return &sicc, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeImportCopyCommand struct. -func (sicc *SnowflakeImportCopyCommand) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "additionalCopyOptions": - if v != nil { - var additionalCopyOptions map[string]interface{} - err = json.Unmarshal(*v, &additionalCopyOptions) - if err != nil { - return err - } - sicc.AdditionalCopyOptions = additionalCopyOptions - } - case "additionalFormatOptions": - if v != nil { - var additionalFormatOptions map[string]interface{} - err = json.Unmarshal(*v, &additionalFormatOptions) - if err != nil { - return err - } - sicc.AdditionalFormatOptions = additionalFormatOptions - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sicc.AdditionalProperties == nil { - sicc.AdditionalProperties = make(map[string]interface{}) - } - sicc.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicImportSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sicc.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeLinkedService snowflake linked service. -type SnowflakeLinkedService struct { - // SnowflakeLinkedServiceTypeProperties - Snowflake linked service properties. - *SnowflakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeBasicLinkedServiceTypeSnowflake - objectMap := make(map[string]interface{}) - if sls.SnowflakeLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SnowflakeLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return &sls, true -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SnowflakeLinkedService. -func (sls SnowflakeLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeLinkedService struct. -func (sls *SnowflakeLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var snowflakeLinkedServiceTypeProperties SnowflakeLinkedServiceTypeProperties - err = json.Unmarshal(*v, &snowflakeLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SnowflakeLinkedServiceTypeProperties = &snowflakeLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeLinkedServiceTypeProperties snowflake linked service properties. -type SnowflakeLinkedServiceTypeProperties struct { - // ConnectionString - The connection string of snowflake. Type: string, SecureString. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password *AzureKeyVaultSecretReference `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// SnowflakeLinkedV2ServiceTypeProperties snowflake linked service properties. -type SnowflakeLinkedV2ServiceTypeProperties struct { - // AccountIdentifier - The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure - AccountIdentifier interface{} `json:"accountIdentifier,omitempty"` - // User - The name of the Snowflake user. - User interface{} `json:"user,omitempty"` - // Password - The Azure key vault secret reference of password in connection string. - Password BasicSecretBase `json:"password,omitempty"` - // Database - The name of the Snowflake database. - Database interface{} `json:"database,omitempty"` - // Warehouse - The name of the Snowflake warehouse. - Warehouse interface{} `json:"warehouse,omitempty"` - // AuthenticationType - The type used for authentication. Type: string. Possible values include: 'SnowflakeAuthenticationTypeBasic', 'SnowflakeAuthenticationTypeKeyPair', 'SnowflakeAuthenticationTypeAADServicePrincipal' - AuthenticationType SnowflakeAuthenticationType `json:"authenticationType,omitempty"` - // ClientID - The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The Azure key vault secret reference of client secret for AADServicePrincipal authentication. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // TenantID - The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication. - TenantID interface{} `json:"tenantId,omitempty"` - // Scope - The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication. - Scope interface{} `json:"scope,omitempty"` - // PrivateKey - The Azure key vault secret reference of privateKey for KeyPair auth. - PrivateKey BasicSecretBase `json:"privateKey,omitempty"` - // PrivateKeyPassphrase - The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key. - PrivateKeyPassphrase BasicSecretBase `json:"privateKeyPassphrase,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeLinkedV2ServiceTypeProperties struct. -func (slvstp *SnowflakeLinkedV2ServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "accountIdentifier": - if v != nil { - var accountIdentifier interface{} - err = json.Unmarshal(*v, &accountIdentifier) - if err != nil { - return err - } - slvstp.AccountIdentifier = accountIdentifier - } - case "user": - if v != nil { - var userVar interface{} - err = json.Unmarshal(*v, &userVar) - if err != nil { - return err - } - slvstp.User = userVar - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slvstp.Password = password - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - slvstp.Database = databaseVar - } - case "warehouse": - if v != nil { - var warehouse interface{} - err = json.Unmarshal(*v, &warehouse) - if err != nil { - return err - } - slvstp.Warehouse = warehouse - } - case "authenticationType": - if v != nil { - var authenticationType SnowflakeAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - slvstp.AuthenticationType = authenticationType - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - slvstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slvstp.ClientSecret = clientSecret - } - case "tenantId": - if v != nil { - var tenantID interface{} - err = json.Unmarshal(*v, &tenantID) - if err != nil { - return err - } - slvstp.TenantID = tenantID - } - case "scope": - if v != nil { - var scope interface{} - err = json.Unmarshal(*v, &scope) - if err != nil { - return err - } - slvstp.Scope = scope - } - case "privateKey": - if v != nil { - privateKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slvstp.PrivateKey = privateKey - } - case "privateKeyPassphrase": - if v != nil { - privateKeyPassphrase, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slvstp.PrivateKeyPassphrase = privateKeyPassphrase - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slvstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SnowflakeSink a copy activity snowflake sink. -type SnowflakeSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // ImportSettings - Snowflake import settings. - ImportSettings *SnowflakeImportCopyCommand `json:"importSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeSink. -func (ss SnowflakeSink) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySinkTypeSnowflakeSink - objectMap := make(map[string]interface{}) - if ss.PreCopyScript != nil { - objectMap["preCopyScript"] = ss.PreCopyScript - } - if ss.ImportSettings != nil { - objectMap["importSettings"] = ss.ImportSettings - } - if ss.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ss.WriteBatchSize - } - if ss.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ss.WriteBatchTimeout - } - if ss.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ss.SinkRetryCount - } - if ss.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ss.SinkRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return &ss, true -} - -// AsSQLDWSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SnowflakeSink. -func (ss SnowflakeSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeSink struct. -func (ss *SnowflakeSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - ss.PreCopyScript = preCopyScript - } - case "importSettings": - if v != nil { - var importSettings SnowflakeImportCopyCommand - err = json.Unmarshal(*v, &importSettings) - if err != nil { - return err - } - ss.ImportSettings = &importSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ss.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ss.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ss.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ss.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeSource a copy activity snowflake source. -type SnowflakeSource struct { - // Query - Snowflake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ExportSettings - Snowflake export settings. - ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeSource. -func (ss SnowflakeSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySourceTypeSnowflakeSource - objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query - } - if ss.ExportSettings != nil { - objectMap["exportSettings"] = ss.ExportSettings - } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount - } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return &ss, true -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SnowflakeSource. -func (ss SnowflakeSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeSource struct. -func (ss *SnowflakeSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ss.Query = query - } - case "exportSettings": - if v != nil { - var exportSettings SnowflakeExportCopyCommand - err = json.Unmarshal(*v, &exportSettings) - if err != nil { - return err - } - ss.ExportSettings = &exportSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeV2Dataset the snowflake dataset. -type SnowflakeV2Dataset struct { - // SnowflakeDatasetTypeProperties - Snowflake dataset properties. - *SnowflakeDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) MarshalJSON() ([]byte, error) { - svd.Type = TypeBasicDatasetTypeSnowflakeV2Table - objectMap := make(map[string]interface{}) - if svd.SnowflakeDatasetTypeProperties != nil { - objectMap["typeProperties"] = svd.SnowflakeDatasetTypeProperties - } - if svd.Description != nil { - objectMap["description"] = svd.Description - } - if svd.Structure != nil { - objectMap["structure"] = svd.Structure - } - if svd.Schema != nil { - objectMap["schema"] = svd.Schema - } - if svd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = svd.LinkedServiceName - } - if svd.Parameters != nil { - objectMap["parameters"] = svd.Parameters - } - if svd.Annotations != nil { - objectMap["annotations"] = svd.Annotations - } - if svd.Folder != nil { - objectMap["folder"] = svd.Folder - } - if svd.Type != "" { - objectMap["type"] = svd.Type - } - for k, v := range svd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return &svd, true -} - -// AsSnowflakeDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SnowflakeV2Dataset. -func (svd SnowflakeV2Dataset) AsBasicDataset() (BasicDataset, bool) { - return &svd, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeV2Dataset struct. -func (svd *SnowflakeV2Dataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var snowflakeDatasetTypeProperties SnowflakeDatasetTypeProperties - err = json.Unmarshal(*v, &snowflakeDatasetTypeProperties) - if err != nil { - return err - } - svd.SnowflakeDatasetTypeProperties = &snowflakeDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if svd.AdditionalProperties == nil { - svd.AdditionalProperties = make(map[string]interface{}) - } - svd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - svd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - svd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - svd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - svd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - svd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - svd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - svd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - svd.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeV2LinkedService snowflake linked service. -type SnowflakeV2LinkedService struct { - // SnowflakeLinkedV2ServiceTypeProperties - Snowflake linked service properties. - *SnowflakeLinkedV2ServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) MarshalJSON() ([]byte, error) { - svls.Type = TypeBasicLinkedServiceTypeSnowflakeV2 - objectMap := make(map[string]interface{}) - if svls.SnowflakeLinkedV2ServiceTypeProperties != nil { - objectMap["typeProperties"] = svls.SnowflakeLinkedV2ServiceTypeProperties - } - if svls.ConnectVia != nil { - objectMap["connectVia"] = svls.ConnectVia - } - if svls.Description != nil { - objectMap["description"] = svls.Description - } - if svls.Parameters != nil { - objectMap["parameters"] = svls.Parameters - } - if svls.Annotations != nil { - objectMap["annotations"] = svls.Annotations - } - if svls.Type != "" { - objectMap["type"] = svls.Type - } - for k, v := range svls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return &svls, true -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SnowflakeV2LinkedService. -func (svls SnowflakeV2LinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &svls, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeV2LinkedService struct. -func (svls *SnowflakeV2LinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var snowflakeLinkedV2ServiceTypeProperties SnowflakeLinkedV2ServiceTypeProperties - err = json.Unmarshal(*v, &snowflakeLinkedV2ServiceTypeProperties) - if err != nil { - return err - } - svls.SnowflakeLinkedV2ServiceTypeProperties = &snowflakeLinkedV2ServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if svls.AdditionalProperties == nil { - svls.AdditionalProperties = make(map[string]interface{}) - } - svls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - svls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - svls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - svls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - svls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - svls.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeV2Sink a copy activity snowflake sink. -type SnowflakeV2Sink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // ImportSettings - Snowflake import settings. - ImportSettings *SnowflakeImportCopyCommand `json:"importSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) MarshalJSON() ([]byte, error) { - svs.Type = TypeBasicCopySinkTypeSnowflakeV2Sink - objectMap := make(map[string]interface{}) - if svs.PreCopyScript != nil { - objectMap["preCopyScript"] = svs.PreCopyScript - } - if svs.ImportSettings != nil { - objectMap["importSettings"] = svs.ImportSettings - } - if svs.WriteBatchSize != nil { - objectMap["writeBatchSize"] = svs.WriteBatchSize - } - if svs.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = svs.WriteBatchTimeout - } - if svs.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = svs.SinkRetryCount - } - if svs.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = svs.SinkRetryWait - } - if svs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = svs.MaxConcurrentConnections - } - if svs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = svs.DisableMetricsCollection - } - if svs.Type != "" { - objectMap["type"] = svs.Type - } - for k, v := range svs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return &svs, true -} - -// AsSnowflakeSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsWarehouseSink() (*WarehouseSink, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for SnowflakeV2Sink. -func (svs SnowflakeV2Sink) AsBasicCopySink() (BasicCopySink, bool) { - return &svs, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeV2Sink struct. -func (svs *SnowflakeV2Sink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - svs.PreCopyScript = preCopyScript - } - case "importSettings": - if v != nil { - var importSettings SnowflakeImportCopyCommand - err = json.Unmarshal(*v, &importSettings) - if err != nil { - return err - } - svs.ImportSettings = &importSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if svs.AdditionalProperties == nil { - svs.AdditionalProperties = make(map[string]interface{}) - } - svs.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - svs.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - svs.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - svs.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - svs.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - svs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - svs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - svs.Type = typeVar - } - } - } - - return nil -} - -// SnowflakeV2Source a copy activity snowflake source. -type SnowflakeV2Source struct { - // Query - Snowflake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // ExportSettings - Snowflake export settings. - ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SnowflakeV2Source. -func (svs SnowflakeV2Source) MarshalJSON() ([]byte, error) { - svs.Type = TypeBasicCopySourceTypeSnowflakeV2Source - objectMap := make(map[string]interface{}) - if svs.Query != nil { - objectMap["query"] = svs.Query - } - if svs.ExportSettings != nil { - objectMap["exportSettings"] = svs.ExportSettings - } - if svs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = svs.SourceRetryCount - } - if svs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = svs.SourceRetryWait - } - if svs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = svs.MaxConcurrentConnections - } - if svs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = svs.DisableMetricsCollection - } - if svs.Type != "" { - objectMap["type"] = svs.Type - } - for k, v := range svs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return &svs, true -} - -// AsSnowflakeSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SnowflakeV2Source. -func (svs SnowflakeV2Source) AsBasicCopySource() (BasicCopySource, bool) { - return &svs, true -} - -// UnmarshalJSON is the custom unmarshaler for SnowflakeV2Source struct. -func (svs *SnowflakeV2Source) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - svs.Query = query - } - case "exportSettings": - if v != nil { - var exportSettings SnowflakeExportCopyCommand - err = json.Unmarshal(*v, &exportSettings) - if err != nil { - return err - } - svs.ExportSettings = &exportSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if svs.AdditionalProperties == nil { - svs.AdditionalProperties = make(map[string]interface{}) - } - svs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - svs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - svs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - svs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - svs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - svs.Type = typeVar - } - } - } - - return nil -} - -// SparkConfigurationParametrizationReference spark configuration reference. -type SparkConfigurationParametrizationReference struct { - // Type - Spark configuration reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference spark configuration name. Type: string (or Expression with resultType string). - ReferenceName interface{} `json:"referenceName,omitempty"` -} - -// SparkDatasetTypeProperties spark Properties -type SparkDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Spark. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Spark. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// SparkLinkedService spark Server linked service. -type SparkLinkedService struct { - // SparkLinkedServiceTypeProperties - Spark Server linked service properties. - *SparkLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SparkLinkedService. -func (sls SparkLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeBasicLinkedServiceTypeSpark - objectMap := make(map[string]interface{}) - if sls.SparkLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SparkLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return &sls, true -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SparkLinkedService. -func (sls SparkLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// UnmarshalJSON is the custom unmarshaler for SparkLinkedService struct. -func (sls *SparkLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sparkLinkedServiceTypeProperties SparkLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sparkLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SparkLinkedServiceTypeProperties = &sparkLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// SparkLinkedServiceTypeProperties spark Server linked service properties. -type SparkLinkedServiceTypeProperties struct { - // Host - IP address or host name of the Spark server - Host interface{} `json:"host,omitempty"` - // Port - The TCP port that the Spark server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` - // ServerType - The type of Spark server. Possible values include: 'SparkServerTypeSharkServer', 'SparkServerTypeSharkServer2', 'SparkServerTypeSparkThriftServer' - ServerType SparkServerType `json:"serverType,omitempty"` - // ThriftTransportProtocol - The transport protocol to use in the Thrift layer. Possible values include: 'SparkThriftTransportProtocolBinary', 'SparkThriftTransportProtocolSASL', 'SparkThriftTransportProtocolHTTP' - ThriftTransportProtocol SparkThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` - // AuthenticationType - The authentication method used to access the Spark server. Possible values include: 'SparkAuthenticationTypeAnonymous', 'SparkAuthenticationTypeUsername', 'SparkAuthenticationTypeUsernameAndPassword', 'SparkAuthenticationTypeWindowsAzureHDInsightService' - AuthenticationType SparkAuthenticationType `json:"authenticationType,omitempty"` - // Username - The user name that you use to access Spark Server. - Username interface{} `json:"username,omitempty"` - // Password - The password corresponding to the user name that you provided in the Username field - Password BasicSecretBase `json:"password,omitempty"` - // HTTPPath - The partial URL corresponding to the Spark server. - HTTPPath interface{} `json:"httpPath,omitempty"` - // EnableSsl - Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSsl interface{} `json:"enableSsl,omitempty"` - // TrustedCertPath - 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"` - // UseSystemTrustStore - 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"` - // AllowHostNameCNMismatch - 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"` - // AllowSelfSignedServerCert - Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SparkLinkedServiceTypeProperties struct. -func (slstp *SparkLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - slstp.Host = host - } - case "port": - if v != nil { - var port interface{} - err = json.Unmarshal(*v, &port) - if err != nil { - return err - } - slstp.Port = port - } - case "serverType": - if v != nil { - var serverType SparkServerType - err = json.Unmarshal(*v, &serverType) - if err != nil { - return err - } - slstp.ServerType = serverType - } - case "thriftTransportProtocol": - if v != nil { - var thriftTransportProtocol SparkThriftTransportProtocol - err = json.Unmarshal(*v, &thriftTransportProtocol) - if err != nil { - return err - } - slstp.ThriftTransportProtocol = thriftTransportProtocol - } - case "authenticationType": - if v != nil { - var authenticationType SparkAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - slstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - slstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.Password = password - } - case "httpPath": - if v != nil { - var HTTPPath interface{} - err = json.Unmarshal(*v, &HTTPPath) - if err != nil { - return err - } - slstp.HTTPPath = HTTPPath - } - case "enableSsl": - if v != nil { - var enableSsl interface{} - err = json.Unmarshal(*v, &enableSsl) - if err != nil { - return err - } - slstp.EnableSsl = enableSsl - } - case "trustedCertPath": - if v != nil { - var trustedCertPath interface{} - err = json.Unmarshal(*v, &trustedCertPath) - if err != nil { - return err - } - slstp.TrustedCertPath = trustedCertPath - } - case "useSystemTrustStore": - if v != nil { - var useSystemTrustStore interface{} - err = json.Unmarshal(*v, &useSystemTrustStore) - if err != nil { - return err - } - slstp.UseSystemTrustStore = useSystemTrustStore - } - case "allowHostNameCNMismatch": - if v != nil { - var allowHostNameCNMismatch interface{} - err = json.Unmarshal(*v, &allowHostNameCNMismatch) - if err != nil { - return err - } - slstp.AllowHostNameCNMismatch = allowHostNameCNMismatch - } - case "allowSelfSignedServerCert": - if v != nil { - var allowSelfSignedServerCert interface{} - err = json.Unmarshal(*v, &allowSelfSignedServerCert) - if err != nil { - return err - } - slstp.AllowSelfSignedServerCert = allowSelfSignedServerCert - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SparkObjectDataset spark Server dataset. -type SparkObjectDataset struct { - // SparkDatasetTypeProperties - Properties specific to this dataset type. - *SparkDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SparkObjectDataset. -func (sod SparkObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeBasicDatasetTypeSparkObject - objectMap := make(map[string]interface{}) - if sod.SparkDatasetTypeProperties != nil { - objectMap["typeProperties"] = sod.SparkDatasetTypeProperties - } - if sod.Description != nil { - objectMap["description"] = sod.Description - } - if sod.Structure != nil { - objectMap["structure"] = sod.Structure - } - if sod.Schema != nil { - objectMap["schema"] = sod.Schema - } - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName - } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters - } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations - } - if sod.Folder != nil { - objectMap["folder"] = sod.Folder - } - if sod.Type != "" { - objectMap["type"] = sod.Type - } - for k, v := range sod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return &sod, true -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SparkObjectDataset. -func (sod SparkObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true -} - -// UnmarshalJSON is the custom unmarshaler for SparkObjectDataset struct. -func (sod *SparkObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sparkDatasetTypeProperties SparkDatasetTypeProperties - err = json.Unmarshal(*v, &sparkDatasetTypeProperties) - if err != nil { - return err - } - sod.SparkDatasetTypeProperties = &sparkDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sod.AdditionalProperties == nil { - sod.AdditionalProperties = make(map[string]interface{}) - } - sod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sod.Type = typeVar - } - } - } - - return nil -} - -// SparkSource a copy activity Spark Server source. -type SparkSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SparkSource. -func (ss SparkSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySourceTypeSparkSource - objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query - } - if ss.QueryTimeout != nil { - objectMap["queryTimeout"] = ss.QueryTimeout - } - if ss.AdditionalColumns != nil { - objectMap["additionalColumns"] = ss.AdditionalColumns - } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount - } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSparkSource() (*SparkSource, bool) { - return &ss, true -} - -// AsShopifySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ss, true -} - -// AsBinarySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SparkSource. -func (ss SparkSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SparkSource struct. -func (ss *SparkSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SquareLinkedService square Service linked service. -type SquareLinkedService struct { - // SquareLinkedServiceTypeProperties - Square Service linked service properties. - *SquareLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SquareLinkedService. -func (sls SquareLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeBasicLinkedServiceTypeSquare - objectMap := make(map[string]interface{}) - if sls.SquareLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SquareLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return &sls, true -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SquareLinkedService. -func (sls SquareLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// UnmarshalJSON is the custom unmarshaler for SquareLinkedService struct. -func (sls *SquareLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var squareLinkedServiceTypeProperties SquareLinkedServiceTypeProperties - err = json.Unmarshal(*v, &squareLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SquareLinkedServiceTypeProperties = &squareLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// SquareLinkedServiceTypeProperties square Service linked service properties. -type SquareLinkedServiceTypeProperties struct { - // ConnectionProperties - 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"` - // Host - The URL of the Square instance. (i.e. mystore.mysquare.com) - Host interface{} `json:"host,omitempty"` - // ClientID - The client ID associated with your Square application. - ClientID interface{} `json:"clientId,omitempty"` - // ClientSecret - The client secret associated with your Square application. - ClientSecret BasicSecretBase `json:"clientSecret,omitempty"` - // RedirectURI - The redirect URL assigned in the Square application dashboard. (i.e. http://localhost:2500) - RedirectURI interface{} `json:"redirectUri,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SquareLinkedServiceTypeProperties struct. -func (slstp *SquareLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionProperties": - if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) - if err != nil { - return err - } - slstp.ConnectionProperties = connectionProperties - } - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - slstp.Host = host - } - case "clientId": - if v != nil { - var clientID interface{} - err = json.Unmarshal(*v, &clientID) - if err != nil { - return err - } - slstp.ClientID = clientID - } - case "clientSecret": - if v != nil { - clientSecret, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.ClientSecret = clientSecret - } - case "redirectUri": - if v != nil { - var redirectURI interface{} - err = json.Unmarshal(*v, &redirectURI) - if err != nil { - return err - } - slstp.RedirectURI = redirectURI - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - slstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - slstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - slstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SquareObjectDataset square Service dataset. -type SquareObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SquareObjectDataset. -func (sod SquareObjectDataset) MarshalJSON() ([]byte, error) { - sod.Type = TypeBasicDatasetTypeSquareObject - objectMap := make(map[string]interface{}) - if sod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = sod.GenericDatasetTypeProperties - } - if sod.Description != nil { - objectMap["description"] = sod.Description - } - if sod.Structure != nil { - objectMap["structure"] = sod.Structure - } - if sod.Schema != nil { - objectMap["schema"] = sod.Schema - } - if sod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sod.LinkedServiceName - } - if sod.Parameters != nil { - objectMap["parameters"] = sod.Parameters - } - if sod.Annotations != nil { - objectMap["annotations"] = sod.Annotations - } - if sod.Folder != nil { - objectMap["folder"] = sod.Folder - } - if sod.Type != "" { - objectMap["type"] = sod.Type - } - for k, v := range sod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return &sod, true -} - -// AsSparkObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SquareObjectDataset. -func (sod SquareObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &sod, true -} - -// UnmarshalJSON is the custom unmarshaler for SquareObjectDataset struct. -func (sod *SquareObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - sod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sod.AdditionalProperties == nil { - sod.AdditionalProperties = make(map[string]interface{}) - } - sod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - sod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - sod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - sod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sod.Type = typeVar - } - } - } - - return nil -} - -// SquareSource a copy activity Square Service source. -type SquareSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SquareSource. -func (ss SquareSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySourceTypeSquareSource - objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query - } - if ss.QueryTimeout != nil { - objectMap["queryTimeout"] = ss.QueryTimeout - } - if ss.AdditionalColumns != nil { - objectMap["additionalColumns"] = ss.AdditionalColumns - } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount - } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSquareSource() (*SquareSource, bool) { - return &ss, true -} - -// AsSparkSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ss, true -} - -// AsBinarySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SquareSource. -func (ss SquareSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SquareSource struct. -func (ss *SquareSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SsisEnvironment ssis environment. -type SsisEnvironment struct { - // FolderID - Folder id which contains environment. - FolderID *int64 `json:"folderId,omitempty"` - // Variables - Variable in environment - Variables *[]SsisVariable `json:"variables,omitempty"` - // ID - Metadata id. - ID *int64 `json:"id,omitempty"` - // Name - Metadata name. - Name *string `json:"name,omitempty"` - // Description - Metadata description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' - Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SsisEnvironment. -func (se SsisEnvironment) MarshalJSON() ([]byte, error) { - se.Type = TypeBasicSsisObjectMetadataTypeEnvironment - objectMap := make(map[string]interface{}) - if se.FolderID != nil { - objectMap["folderId"] = se.FolderID - } - if se.Variables != nil { - objectMap["variables"] = se.Variables - } - if se.ID != nil { - objectMap["id"] = se.ID - } - if se.Name != nil { - objectMap["name"] = se.Name - } - if se.Description != nil { - objectMap["description"] = se.Description - } - if se.Type != "" { - objectMap["type"] = se.Type - } - return json.Marshal(objectMap) -} - -// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisEnvironment. -func (se SsisEnvironment) AsSsisEnvironment() (*SsisEnvironment, bool) { - return &se, true -} - -// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisEnvironment. -func (se SsisEnvironment) AsSsisPackage() (*SsisPackage, bool) { - return nil, false -} - -// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisEnvironment. -func (se SsisEnvironment) AsSsisProject() (*SsisProject, bool) { - return nil, false -} - -// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisEnvironment. -func (se SsisEnvironment) AsSsisFolder() (*SsisFolder, bool) { - return nil, false -} - -// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisEnvironment. -func (se SsisEnvironment) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { - return nil, false -} - -// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisEnvironment. -func (se SsisEnvironment) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { - return &se, true -} - -// SsisEnvironmentReference ssis environment reference. -type SsisEnvironmentReference struct { - // ID - Environment reference id. - ID *int64 `json:"id,omitempty"` - // EnvironmentFolderName - Environment folder name. - EnvironmentFolderName *string `json:"environmentFolderName,omitempty"` - // EnvironmentName - Environment name. - EnvironmentName *string `json:"environmentName,omitempty"` - // ReferenceType - Reference type - ReferenceType *string `json:"referenceType,omitempty"` -} - -// SsisFolder ssis folder. -type SsisFolder struct { - // ID - Metadata id. - ID *int64 `json:"id,omitempty"` - // Name - Metadata name. - Name *string `json:"name,omitempty"` - // Description - Metadata description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' - Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SsisFolder. -func (sf SsisFolder) MarshalJSON() ([]byte, error) { - sf.Type = TypeBasicSsisObjectMetadataTypeFolder - objectMap := make(map[string]interface{}) - if sf.ID != nil { - objectMap["id"] = sf.ID - } - if sf.Name != nil { - objectMap["name"] = sf.Name - } - if sf.Description != nil { - objectMap["description"] = sf.Description - } - if sf.Type != "" { - objectMap["type"] = sf.Type - } - return json.Marshal(objectMap) -} - -// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisFolder. -func (sf SsisFolder) AsSsisEnvironment() (*SsisEnvironment, bool) { - return nil, false -} - -// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisFolder. -func (sf SsisFolder) AsSsisPackage() (*SsisPackage, bool) { - return nil, false -} - -// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisFolder. -func (sf SsisFolder) AsSsisProject() (*SsisProject, bool) { - return nil, false -} - -// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisFolder. -func (sf SsisFolder) AsSsisFolder() (*SsisFolder, bool) { - return &sf, true -} - -// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisFolder. -func (sf SsisFolder) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { - return nil, false -} - -// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisFolder. -func (sf SsisFolder) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { - return &sf, true -} - -// BasicSsisObjectMetadata SSIS object metadata. -type BasicSsisObjectMetadata interface { - AsSsisEnvironment() (*SsisEnvironment, bool) - AsSsisPackage() (*SsisPackage, bool) - AsSsisProject() (*SsisProject, bool) - AsSsisFolder() (*SsisFolder, bool) - AsSsisObjectMetadata() (*SsisObjectMetadata, bool) -} - -// SsisObjectMetadata SSIS object metadata. -type SsisObjectMetadata struct { - // ID - Metadata id. - ID *int64 `json:"id,omitempty"` - // Name - Metadata name. - Name *string `json:"name,omitempty"` - // Description - Metadata description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' - Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` -} - -func unmarshalBasicSsisObjectMetadata(body []byte) (BasicSsisObjectMetadata, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicSsisObjectMetadataTypeEnvironment): - var se SsisEnvironment - err := json.Unmarshal(body, &se) - return se, err - case string(TypeBasicSsisObjectMetadataTypePackage): - var sp SsisPackage - err := json.Unmarshal(body, &sp) - return sp, err - case string(TypeBasicSsisObjectMetadataTypeProject): - var sp SsisProject - err := json.Unmarshal(body, &sp) - return sp, err - case string(TypeBasicSsisObjectMetadataTypeFolder): - var sf SsisFolder - err := json.Unmarshal(body, &sf) - return sf, err - default: - var som SsisObjectMetadata - err := json.Unmarshal(body, &som) - return som, err - } -} -func unmarshalBasicSsisObjectMetadataArray(body []byte) ([]BasicSsisObjectMetadata, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - somArray := make([]BasicSsisObjectMetadata, len(rawMessages)) - - for index, rawMessage := range rawMessages { - som, err := unmarshalBasicSsisObjectMetadata(*rawMessage) - if err != nil { - return nil, err - } - somArray[index] = som - } - return somArray, nil -} - -// MarshalJSON is the custom marshaler for SsisObjectMetadata. -func (som SsisObjectMetadata) MarshalJSON() ([]byte, error) { - som.Type = TypeBasicSsisObjectMetadataTypeSsisObjectMetadata - objectMap := make(map[string]interface{}) - if som.ID != nil { - objectMap["id"] = som.ID - } - if som.Name != nil { - objectMap["name"] = som.Name - } - if som.Description != nil { - objectMap["description"] = som.Description - } - if som.Type != "" { - objectMap["type"] = som.Type - } - return json.Marshal(objectMap) -} - -// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. -func (som SsisObjectMetadata) AsSsisEnvironment() (*SsisEnvironment, bool) { - return nil, false -} - -// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. -func (som SsisObjectMetadata) AsSsisPackage() (*SsisPackage, bool) { - return nil, false -} - -// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. -func (som SsisObjectMetadata) AsSsisProject() (*SsisProject, bool) { - return nil, false -} - -// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. -func (som SsisObjectMetadata) AsSsisFolder() (*SsisFolder, bool) { - return nil, false -} - -// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. -func (som SsisObjectMetadata) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { - return &som, true -} - -// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisObjectMetadata. -func (som SsisObjectMetadata) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { - return &som, true -} - -// SsisObjectMetadataListResponse a list of SSIS object metadata. -type SsisObjectMetadataListResponse struct { - autorest.Response `json:"-"` - // Value - List of SSIS object metadata. - Value *[]BasicSsisObjectMetadata `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SsisObjectMetadataListResponse struct. -func (somlr *SsisObjectMetadataListResponse) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "value": - if v != nil { - value, err := unmarshalBasicSsisObjectMetadataArray(*v) - if err != nil { - return err - } - somlr.Value = &value - } - case "nextLink": - if v != nil { - var nextLink string - err = json.Unmarshal(*v, &nextLink) - if err != nil { - return err - } - somlr.NextLink = &nextLink - } - } - } - - return nil -} - -// SsisObjectMetadataStatusResponse the status of the operation. -type SsisObjectMetadataStatusResponse struct { - autorest.Response `json:"-"` - // Status - The status of the operation. - Status *string `json:"status,omitempty"` - // Name - The operation name. - Name *string `json:"name,omitempty"` - // Properties - The operation properties. - Properties *string `json:"properties,omitempty"` - // Error - The operation error message. - Error *string `json:"error,omitempty"` -} - -// SsisPackage ssis Package. -type SsisPackage struct { - // FolderID - Folder id which contains package. - FolderID *int64 `json:"folderId,omitempty"` - // ProjectVersion - Project version which contains package. - ProjectVersion *int64 `json:"projectVersion,omitempty"` - // ProjectID - Project id which contains package. - ProjectID *int64 `json:"projectId,omitempty"` - // Parameters - Parameters in package - Parameters *[]SsisParameter `json:"parameters,omitempty"` - // ID - Metadata id. - ID *int64 `json:"id,omitempty"` - // Name - Metadata name. - Name *string `json:"name,omitempty"` - // Description - Metadata description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' - Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SsisPackage. -func (sp SsisPackage) MarshalJSON() ([]byte, error) { - sp.Type = TypeBasicSsisObjectMetadataTypePackage - objectMap := make(map[string]interface{}) - if sp.FolderID != nil { - objectMap["folderId"] = sp.FolderID - } - if sp.ProjectVersion != nil { - objectMap["projectVersion"] = sp.ProjectVersion - } - if sp.ProjectID != nil { - objectMap["projectId"] = sp.ProjectID - } - if sp.Parameters != nil { - objectMap["parameters"] = sp.Parameters - } - if sp.ID != nil { - objectMap["id"] = sp.ID - } - if sp.Name != nil { - objectMap["name"] = sp.Name - } - if sp.Description != nil { - objectMap["description"] = sp.Description - } - if sp.Type != "" { - objectMap["type"] = sp.Type - } - return json.Marshal(objectMap) -} - -// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisPackage. -func (sp SsisPackage) AsSsisEnvironment() (*SsisEnvironment, bool) { - return nil, false -} - -// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisPackage. -func (sp SsisPackage) AsSsisPackage() (*SsisPackage, bool) { - return &sp, true -} - -// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisPackage. -func (sp SsisPackage) AsSsisProject() (*SsisProject, bool) { - return nil, false -} - -// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisPackage. -func (sp SsisPackage) AsSsisFolder() (*SsisFolder, bool) { - return nil, false -} - -// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisPackage. -func (sp SsisPackage) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { - return nil, false -} - -// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisPackage. -func (sp SsisPackage) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { - return &sp, true -} - -// SsisParameter ssis parameter. -type SsisParameter struct { - // ID - Parameter id. - ID *int64 `json:"id,omitempty"` - // Name - Parameter name. - Name *string `json:"name,omitempty"` - // Description - Parameter description. - Description *string `json:"description,omitempty"` - // DataType - Parameter type. - DataType *string `json:"dataType,omitempty"` - // Required - Whether parameter is required. - Required *bool `json:"required,omitempty"` - // Sensitive - Whether parameter is sensitive. - Sensitive *bool `json:"sensitive,omitempty"` - // DesignDefaultValue - Design default value of parameter. - DesignDefaultValue *string `json:"designDefaultValue,omitempty"` - // DefaultValue - Default value of parameter. - DefaultValue *string `json:"defaultValue,omitempty"` - // SensitiveDefaultValue - Default sensitive value of parameter. - SensitiveDefaultValue *string `json:"sensitiveDefaultValue,omitempty"` - // ValueType - Parameter value type. - ValueType *string `json:"valueType,omitempty"` - // ValueSet - Parameter value set. - ValueSet *bool `json:"valueSet,omitempty"` - // Variable - Parameter reference variable. - Variable *string `json:"variable,omitempty"` -} - -// SsisProject ssis project. -type SsisProject struct { - // FolderID - Folder id which contains project. - FolderID *int64 `json:"folderId,omitempty"` - // Version - Project version. - Version *int64 `json:"version,omitempty"` - // EnvironmentRefs - Environment reference in project - EnvironmentRefs *[]SsisEnvironmentReference `json:"environmentRefs,omitempty"` - // Parameters - Parameters in project - Parameters *[]SsisParameter `json:"parameters,omitempty"` - // ID - Metadata id. - ID *int64 `json:"id,omitempty"` - // Name - Metadata name. - Name *string `json:"name,omitempty"` - // Description - Metadata description. - Description *string `json:"description,omitempty"` - // Type - Possible values include: 'TypeBasicSsisObjectMetadataTypeSsisObjectMetadata', 'TypeBasicSsisObjectMetadataTypeEnvironment', 'TypeBasicSsisObjectMetadataTypePackage', 'TypeBasicSsisObjectMetadataTypeProject', 'TypeBasicSsisObjectMetadataTypeFolder' - Type TypeBasicSsisObjectMetadata `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SsisProject. -func (sp SsisProject) MarshalJSON() ([]byte, error) { - sp.Type = TypeBasicSsisObjectMetadataTypeProject - objectMap := make(map[string]interface{}) - if sp.FolderID != nil { - objectMap["folderId"] = sp.FolderID - } - if sp.Version != nil { - objectMap["version"] = sp.Version - } - if sp.EnvironmentRefs != nil { - objectMap["environmentRefs"] = sp.EnvironmentRefs - } - if sp.Parameters != nil { - objectMap["parameters"] = sp.Parameters - } - if sp.ID != nil { - objectMap["id"] = sp.ID - } - if sp.Name != nil { - objectMap["name"] = sp.Name - } - if sp.Description != nil { - objectMap["description"] = sp.Description - } - if sp.Type != "" { - objectMap["type"] = sp.Type - } - return json.Marshal(objectMap) -} - -// AsSsisEnvironment is the BasicSsisObjectMetadata implementation for SsisProject. -func (sp SsisProject) AsSsisEnvironment() (*SsisEnvironment, bool) { - return nil, false -} - -// AsSsisPackage is the BasicSsisObjectMetadata implementation for SsisProject. -func (sp SsisProject) AsSsisPackage() (*SsisPackage, bool) { - return nil, false -} - -// AsSsisProject is the BasicSsisObjectMetadata implementation for SsisProject. -func (sp SsisProject) AsSsisProject() (*SsisProject, bool) { - return &sp, true -} - -// AsSsisFolder is the BasicSsisObjectMetadata implementation for SsisProject. -func (sp SsisProject) AsSsisFolder() (*SsisFolder, bool) { - return nil, false -} - -// AsSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisProject. -func (sp SsisProject) AsSsisObjectMetadata() (*SsisObjectMetadata, bool) { - return nil, false -} - -// AsBasicSsisObjectMetadata is the BasicSsisObjectMetadata implementation for SsisProject. -func (sp SsisProject) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool) { - return &sp, true -} - -// SsisVariable ssis variable. -type SsisVariable struct { - // ID - Variable id. - ID *int64 `json:"id,omitempty"` - // Name - Variable name. - Name *string `json:"name,omitempty"` - // Description - Variable description. - Description *string `json:"description,omitempty"` - // DataType - Variable type. - DataType *string `json:"dataType,omitempty"` - // Sensitive - Whether variable is sensitive. - Sensitive *bool `json:"sensitive,omitempty"` - // Value - Variable value. - Value *string `json:"value,omitempty"` - // SensitiveValue - Variable sensitive value. - SensitiveValue *string `json:"sensitiveValue,omitempty"` -} - -// StagingSettings staging settings. -type StagingSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // LinkedServiceName - Staging linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Path - The path to storage for storing the interim data. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` - // EnableCompression - 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"` -} - -// MarshalJSON is the custom marshaler for StagingSettings. -func (ss StagingSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ss.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ss.LinkedServiceName - } - if ss.Path != nil { - objectMap["path"] = ss.Path - } - if ss.EnableCompression != nil { - objectMap["enableCompression"] = ss.EnableCompression - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for StagingSettings struct. -func (ss *StagingSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ss.LinkedServiceName = &linkedServiceName - } - case "path": - if v != nil { - var pathVar interface{} - err = json.Unmarshal(*v, &pathVar) - if err != nil { - return err - } - ss.Path = pathVar - } - case "enableCompression": - if v != nil { - var enableCompression interface{} - err = json.Unmarshal(*v, &enableCompression) - if err != nil { - return err - } - ss.EnableCompression = enableCompression - } - } - } - - return nil -} - -// BasicStoreReadSettings connector read setting. -type BasicStoreReadSettings interface { - AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) - AsHdfsReadSettings() (*HdfsReadSettings, bool) - AsHTTPReadSettings() (*HTTPReadSettings, bool) - AsSftpReadSettings() (*SftpReadSettings, bool) - AsFtpReadSettings() (*FtpReadSettings, bool) - AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) - AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) - AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) - AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) - AsFileServerReadSettings() (*FileServerReadSettings, bool) - AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) - AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) - AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) - AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) - AsStoreReadSettings() (*StoreReadSettings, bool) -} - -// StoreReadSettings connector read setting. -type StoreReadSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicStoreReadSettingsTypeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeLakeHouseReadSettings', 'TypeBasicStoreReadSettingsTypeHdfsReadSettings', 'TypeBasicStoreReadSettingsTypeHTTPReadSettings', 'TypeBasicStoreReadSettingsTypeSftpReadSettings', 'TypeBasicStoreReadSettingsTypeFtpReadSettings', 'TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings', 'TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings', 'TypeBasicStoreReadSettingsTypeFileServerReadSettings', 'TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings', 'TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings', 'TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings' - Type TypeBasicStoreReadSettings `json:"type,omitempty"` -} - -func unmarshalBasicStoreReadSettings(body []byte) (BasicStoreReadSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicStoreReadSettingsTypeLakeHouseReadSettings): - var lhrs LakeHouseReadSettings - err := json.Unmarshal(body, &lhrs) - return lhrs, err - case string(TypeBasicStoreReadSettingsTypeHdfsReadSettings): - var hrs HdfsReadSettings - err := json.Unmarshal(body, &hrs) - return hrs, err - case string(TypeBasicStoreReadSettingsTypeHTTPReadSettings): - var hrs HTTPReadSettings - err := json.Unmarshal(body, &hrs) - return hrs, err - case string(TypeBasicStoreReadSettingsTypeSftpReadSettings): - var srs SftpReadSettings - err := json.Unmarshal(body, &srs) - return srs, err - case string(TypeBasicStoreReadSettingsTypeFtpReadSettings): - var frs FtpReadSettings - err := json.Unmarshal(body, &frs) - return frs, err - case string(TypeBasicStoreReadSettingsTypeGoogleCloudStorageReadSettings): - var gcsrs GoogleCloudStorageReadSettings - err := json.Unmarshal(body, &gcsrs) - return gcsrs, err - case string(TypeBasicStoreReadSettingsTypeOracleCloudStorageReadSettings): - var ocsrs OracleCloudStorageReadSettings - err := json.Unmarshal(body, &ocsrs) - return ocsrs, err - case string(TypeBasicStoreReadSettingsTypeAmazonS3CompatibleReadSettings): - var ascrs AmazonS3CompatibleReadSettings - err := json.Unmarshal(body, &ascrs) - return ascrs, err - case string(TypeBasicStoreReadSettingsTypeAzureFileStorageReadSettings): - var afsrs AzureFileStorageReadSettings - err := json.Unmarshal(body, &afsrs) - return afsrs, err - case string(TypeBasicStoreReadSettingsTypeFileServerReadSettings): - var fsrs FileServerReadSettings - err := json.Unmarshal(body, &fsrs) - return fsrs, err - case string(TypeBasicStoreReadSettingsTypeAmazonS3ReadSettings): - var asrs AmazonS3ReadSettings - err := json.Unmarshal(body, &asrs) - return asrs, err - case string(TypeBasicStoreReadSettingsTypeAzureDataLakeStoreReadSettings): - var adlsrs AzureDataLakeStoreReadSettings - err := json.Unmarshal(body, &adlsrs) - return adlsrs, err - case string(TypeBasicStoreReadSettingsTypeAzureBlobFSReadSettings): - var abfrs AzureBlobFSReadSettings - err := json.Unmarshal(body, &abfrs) - return abfrs, err - case string(TypeBasicStoreReadSettingsTypeAzureBlobStorageReadSettings): - var absrs AzureBlobStorageReadSettings - err := json.Unmarshal(body, &absrs) - return absrs, err - default: - var srs StoreReadSettings - err := json.Unmarshal(body, &srs) - return srs, err - } -} -func unmarshalBasicStoreReadSettingsArray(body []byte) ([]BasicStoreReadSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - srsArray := make([]BasicStoreReadSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - srs, err := unmarshalBasicStoreReadSettings(*rawMessage) - if err != nil { - return nil, err - } - srsArray[index] = srs - } - return srsArray, nil -} - -// MarshalJSON is the custom marshaler for StoreReadSettings. -func (srs StoreReadSettings) MarshalJSON() ([]byte, error) { - srs.Type = TypeBasicStoreReadSettingsTypeStoreReadSettings - objectMap := make(map[string]interface{}) - if srs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = srs.MaxConcurrentConnections - } - if srs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = srs.DisableMetricsCollection - } - if srs.Type != "" { - objectMap["type"] = srs.Type - } - for k, v := range srs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsLakeHouseReadSettings() (*LakeHouseReadSettings, bool) { - return nil, false -} - -// AsHdfsReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsHdfsReadSettings() (*HdfsReadSettings, bool) { - return nil, false -} - -// AsHTTPReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsHTTPReadSettings() (*HTTPReadSettings, bool) { - return nil, false -} - -// AsSftpReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsSftpReadSettings() (*SftpReadSettings, bool) { - return nil, false -} - -// AsFtpReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsFtpReadSettings() (*FtpReadSettings, bool) { - return nil, false -} - -// AsGoogleCloudStorageReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsGoogleCloudStorageReadSettings() (*GoogleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsOracleCloudStorageReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsOracleCloudStorageReadSettings() (*OracleCloudStorageReadSettings, bool) { - return nil, false -} - -// AsAmazonS3CompatibleReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsAmazonS3CompatibleReadSettings() (*AmazonS3CompatibleReadSettings, bool) { - return nil, false -} - -// AsAzureFileStorageReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsAzureFileStorageReadSettings() (*AzureFileStorageReadSettings, bool) { - return nil, false -} - -// AsFileServerReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsFileServerReadSettings() (*FileServerReadSettings, bool) { - return nil, false -} - -// AsAmazonS3ReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsAmazonS3ReadSettings() (*AmazonS3ReadSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsAzureDataLakeStoreReadSettings() (*AzureDataLakeStoreReadSettings, bool) { - return nil, false -} - -// AsAzureBlobFSReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsAzureBlobFSReadSettings() (*AzureBlobFSReadSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsAzureBlobStorageReadSettings() (*AzureBlobStorageReadSettings, bool) { - return nil, false -} - -// AsStoreReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsStoreReadSettings() (*StoreReadSettings, bool) { - return &srs, true -} - -// AsBasicStoreReadSettings is the BasicStoreReadSettings implementation for StoreReadSettings. -func (srs StoreReadSettings) AsBasicStoreReadSettings() (BasicStoreReadSettings, bool) { - return &srs, true -} - -// UnmarshalJSON is the custom unmarshaler for StoreReadSettings struct. -func (srs *StoreReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if srs.AdditionalProperties == nil { - srs.AdditionalProperties = make(map[string]interface{}) - } - srs.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - srs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - srs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicStoreReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - srs.Type = typeVar - } - } - } - - return nil -} - -// BasicStoreWriteSettings connector write settings. -type BasicStoreWriteSettings interface { - AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) - AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) - AsFileServerWriteSettings() (*FileServerWriteSettings, bool) - AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) - AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) - AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) - AsSftpWriteSettings() (*SftpWriteSettings, bool) - AsStoreWriteSettings() (*StoreWriteSettings, bool) -} - -// StoreWriteSettings connector write settings. -type StoreWriteSettings struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // CopyBehavior - The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` - // Metadata - 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"` - // Type - Possible values include: 'TypeBasicStoreWriteSettingsTypeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeFileServerWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings', 'TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings', 'TypeBasicStoreWriteSettingsTypeSftpWriteSettings' - Type TypeBasicStoreWriteSettings `json:"type,omitempty"` -} - -func unmarshalBasicStoreWriteSettings(body []byte) (BasicStoreWriteSettings, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicStoreWriteSettingsTypeLakeHouseWriteSettings): - var lhws LakeHouseWriteSettings - err := json.Unmarshal(body, &lhws) - return lhws, err - case string(TypeBasicStoreWriteSettingsTypeAzureFileStorageWriteSettings): - var afsws AzureFileStorageWriteSettings - err := json.Unmarshal(body, &afsws) - return afsws, err - case string(TypeBasicStoreWriteSettingsTypeFileServerWriteSettings): - var fsws FileServerWriteSettings - err := json.Unmarshal(body, &fsws) - return fsws, err - case string(TypeBasicStoreWriteSettingsTypeAzureDataLakeStoreWriteSettings): - var adlsws AzureDataLakeStoreWriteSettings - err := json.Unmarshal(body, &adlsws) - return adlsws, err - case string(TypeBasicStoreWriteSettingsTypeAzureBlobFSWriteSettings): - var abfws AzureBlobFSWriteSettings - err := json.Unmarshal(body, &abfws) - return abfws, err - case string(TypeBasicStoreWriteSettingsTypeAzureBlobStorageWriteSettings): - var absws AzureBlobStorageWriteSettings - err := json.Unmarshal(body, &absws) - return absws, err - case string(TypeBasicStoreWriteSettingsTypeSftpWriteSettings): - var sws SftpWriteSettings - err := json.Unmarshal(body, &sws) - return sws, err - default: - var sws StoreWriteSettings - err := json.Unmarshal(body, &sws) - return sws, err - } -} -func unmarshalBasicStoreWriteSettingsArray(body []byte) ([]BasicStoreWriteSettings, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - swsArray := make([]BasicStoreWriteSettings, len(rawMessages)) - - for index, rawMessage := range rawMessages { - sws, err := unmarshalBasicStoreWriteSettings(*rawMessage) - if err != nil { - return nil, err - } - swsArray[index] = sws - } - return swsArray, nil -} - -// MarshalJSON is the custom marshaler for StoreWriteSettings. -func (sws StoreWriteSettings) MarshalJSON() ([]byte, error) { - sws.Type = TypeBasicStoreWriteSettingsTypeStoreWriteSettings - objectMap := make(map[string]interface{}) - if sws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = sws.MaxConcurrentConnections - } - if sws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = sws.DisableMetricsCollection - } - if sws.CopyBehavior != nil { - objectMap["copyBehavior"] = sws.CopyBehavior - } - if sws.Metadata != nil { - objectMap["metadata"] = sws.Metadata - } - if sws.Type != "" { - objectMap["type"] = sws.Type - } - for k, v := range sws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsLakeHouseWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsLakeHouseWriteSettings() (*LakeHouseWriteSettings, bool) { - return nil, false -} - -// AsAzureFileStorageWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsAzureFileStorageWriteSettings() (*AzureFileStorageWriteSettings, bool) { - return nil, false -} - -// AsFileServerWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsFileServerWriteSettings() (*FileServerWriteSettings, bool) { - return nil, false -} - -// AsAzureDataLakeStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsAzureDataLakeStoreWriteSettings() (*AzureDataLakeStoreWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobFSWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsAzureBlobFSWriteSettings() (*AzureBlobFSWriteSettings, bool) { - return nil, false -} - -// AsAzureBlobStorageWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsAzureBlobStorageWriteSettings() (*AzureBlobStorageWriteSettings, bool) { - return nil, false -} - -// AsSftpWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsSftpWriteSettings() (*SftpWriteSettings, bool) { - return nil, false -} - -// AsStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsStoreWriteSettings() (*StoreWriteSettings, bool) { - return &sws, true -} - -// AsBasicStoreWriteSettings is the BasicStoreWriteSettings implementation for StoreWriteSettings. -func (sws StoreWriteSettings) AsBasicStoreWriteSettings() (BasicStoreWriteSettings, bool) { - return &sws, true -} - -// UnmarshalJSON is the custom unmarshaler for StoreWriteSettings struct. -func (sws *StoreWriteSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sws.AdditionalProperties == nil { - sws.AdditionalProperties = make(map[string]interface{}) - } - sws.AdditionalProperties[k] = additionalProperties - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - sws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - sws.DisableMetricsCollection = disableMetricsCollection - } - case "copyBehavior": - if v != nil { - var copyBehavior interface{} - err = json.Unmarshal(*v, ©Behavior) - if err != nil { - return err - } - sws.CopyBehavior = copyBehavior - } - case "metadata": - if v != nil { - var metadata []MetadataItem - err = json.Unmarshal(*v, &metadata) - if err != nil { - return err - } - sws.Metadata = &metadata - } - case "type": - if v != nil { - var typeVar TypeBasicStoreWriteSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sws.Type = typeVar - } - } - } - - return nil -} - -// StoredProcedureParameter SQL stored procedure parameter. -type StoredProcedureParameter struct { - // Value - Stored procedure parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` - // Type - Stored procedure parameter type. Possible values include: 'StoredProcedureParameterTypeString', 'StoredProcedureParameterTypeInt', 'StoredProcedureParameterTypeInt64', 'StoredProcedureParameterTypeDecimal', 'StoredProcedureParameterTypeGUID', 'StoredProcedureParameterTypeBoolean', 'StoredProcedureParameterTypeDate' - Type StoredProcedureParameterType `json:"type,omitempty"` -} - -// String ... -type String struct { - autorest.Response `json:"-"` - Value *string `json:"value,omitempty"` -} - -// SubResource azure Data Factory nested resource, which belongs to a factory. -type SubResource struct { - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for SubResource. -func (sr SubResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// SubResourceDebugResource azure Data Factory nested debug resource. -type SubResourceDebugResource struct { - // Name - The resource name. - Name *string `json:"name,omitempty"` -} - -// 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 { - // SwitchActivityTypeProperties - Switch activity properties. - *SwitchActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SwitchActivity. -func (sa SwitchActivity) MarshalJSON() ([]byte, error) { - sa.Type = TypeBasicActivityTypeSwitch - objectMap := make(map[string]interface{}) - if sa.SwitchActivityTypeProperties != nil { - objectMap["typeProperties"] = sa.SwitchActivityTypeProperties - } - if sa.Name != nil { - objectMap["name"] = sa.Name - } - if sa.Description != nil { - objectMap["description"] = sa.Description - } - if sa.State != "" { - objectMap["state"] = sa.State - } - if sa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = sa.OnInactiveMarkAs - } - if sa.DependsOn != nil { - objectMap["dependsOn"] = sa.DependsOn - } - if sa.UserProperties != nil { - objectMap["userProperties"] = sa.UserProperties - } - if sa.Type != "" { - objectMap["type"] = sa.Type - } - for k, v := range sa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return &sa, true -} - -// AsIfConditionActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &sa, true -} - -// AsActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for SwitchActivity. -func (sa SwitchActivity) AsBasicActivity() (BasicActivity, bool) { - return &sa, true -} - -// UnmarshalJSON is the custom unmarshaler for SwitchActivity struct. -func (sa *SwitchActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var switchActivityTypeProperties SwitchActivityTypeProperties - err = json.Unmarshal(*v, &switchActivityTypeProperties) - if err != nil { - return err - } - sa.SwitchActivityTypeProperties = &switchActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sa.AdditionalProperties == nil { - sa.AdditionalProperties = make(map[string]interface{}) - } - sa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - sa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - sa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - sa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - sa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sa.Type = typeVar - } - } - } - - return nil -} - -// SwitchActivityTypeProperties switch activity properties. -type SwitchActivityTypeProperties struct { - // On - 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"` - // Cases - 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"` - // DefaultActivities - 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 *[]BasicActivity `json:"defaultActivities,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SwitchActivityTypeProperties struct. -func (satp *SwitchActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "on": - if v != nil { - var on Expression - err = json.Unmarshal(*v, &on) - if err != nil { - return err - } - satp.On = &on - } - case "cases": - if v != nil { - var cases []SwitchCase - err = json.Unmarshal(*v, &cases) - if err != nil { - return err - } - satp.Cases = &cases - } - case "defaultActivities": - if v != nil { - defaultActivities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - satp.DefaultActivities = &defaultActivities - } - } - } - - return nil -} - -// SwitchCase switch cases with have a value and corresponding activities. -type SwitchCase struct { - // Value - Expected value that satisfies the expression result of the 'on' property. - Value *string `json:"value,omitempty"` - // Activities - List of activities to execute for satisfied case condition. - Activities *[]BasicActivity `json:"activities,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SwitchCase struct. -func (sc *SwitchCase) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "value": - if v != nil { - var value string - err = json.Unmarshal(*v, &value) - if err != nil { - return err - } - sc.Value = &value - } - case "activities": - if v != nil { - activities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - sc.Activities = &activities - } - } - } - - return nil -} - -// SybaseLinkedService linked service for Sybase data source. -type SybaseLinkedService struct { - // SybaseLinkedServiceTypeProperties - Sybase linked service properties. - *SybaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SybaseLinkedService. -func (sls SybaseLinkedService) MarshalJSON() ([]byte, error) { - sls.Type = TypeBasicLinkedServiceTypeSybase - objectMap := make(map[string]interface{}) - if sls.SybaseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = sls.SybaseLinkedServiceTypeProperties - } - if sls.ConnectVia != nil { - objectMap["connectVia"] = sls.ConnectVia - } - if sls.Description != nil { - objectMap["description"] = sls.Description - } - if sls.Parameters != nil { - objectMap["parameters"] = sls.Parameters - } - if sls.Annotations != nil { - objectMap["annotations"] = sls.Annotations - } - if sls.Type != "" { - objectMap["type"] = sls.Type - } - for k, v := range sls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return &sls, true -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for SybaseLinkedService. -func (sls SybaseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &sls, true -} - -// UnmarshalJSON is the custom unmarshaler for SybaseLinkedService struct. -func (sls *SybaseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sybaseLinkedServiceTypeProperties SybaseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &sybaseLinkedServiceTypeProperties) - if err != nil { - return err - } - sls.SybaseLinkedServiceTypeProperties = &sybaseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sls.AdditionalProperties == nil { - sls.AdditionalProperties = make(map[string]interface{}) - } - sls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - sls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - sls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - sls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sls.Type = typeVar - } - } - } - - return nil -} - -// SybaseLinkedServiceTypeProperties sybase linked service properties. -type SybaseLinkedServiceTypeProperties struct { - // Server - Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // Database - Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Schema - Schema name for connection. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. Possible values include: 'SybaseAuthenticationTypeBasic', 'SybaseAuthenticationTypeWindows' - AuthenticationType SybaseAuthenticationType `json:"authenticationType,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for SybaseLinkedServiceTypeProperties struct. -func (slstp *SybaseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - slstp.Server = server - } - case "database": - if v != nil { - var databaseVar interface{} - err = json.Unmarshal(*v, &databaseVar) - if err != nil { - return err - } - slstp.Database = databaseVar - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - slstp.Schema = schema - } - case "authenticationType": - if v != nil { - var authenticationType SybaseAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - slstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - slstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - slstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - slstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// SybaseSource a copy activity source for Sybase databases. -type SybaseSource struct { - // Query - Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SybaseSource. -func (ss SybaseSource) MarshalJSON() ([]byte, error) { - ss.Type = TypeBasicCopySourceTypeSybaseSource - objectMap := make(map[string]interface{}) - if ss.Query != nil { - objectMap["query"] = ss.Query - } - if ss.QueryTimeout != nil { - objectMap["queryTimeout"] = ss.QueryTimeout - } - if ss.AdditionalColumns != nil { - objectMap["additionalColumns"] = ss.AdditionalColumns - } - if ss.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ss.SourceRetryCount - } - if ss.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ss.SourceRetryWait - } - if ss.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ss.MaxConcurrentConnections - } - if ss.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ss.DisableMetricsCollection - } - if ss.Type != "" { - objectMap["type"] = ss.Type - } - for k, v := range ss.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsSybaseSource() (*SybaseSource, bool) { - return &ss, true -} - -// AsPostgreSQLSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ss, true -} - -// AsBinarySource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for SybaseSource. -func (ss SybaseSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ss, true -} - -// UnmarshalJSON is the custom unmarshaler for SybaseSource struct. -func (ss *SybaseSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ss.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ss.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ss.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ss.AdditionalProperties == nil { - ss.AdditionalProperties = make(map[string]interface{}) - } - ss.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ss.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ss.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ss.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ss.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ss.Type = typeVar - } - } - } - - return nil -} - -// SybaseTableDataset the Sybase table dataset. -type SybaseTableDataset struct { - // SybaseTableDatasetTypeProperties - Sybase table dataset properties. - *SybaseTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SybaseTableDataset. -func (std SybaseTableDataset) MarshalJSON() ([]byte, error) { - std.Type = TypeBasicDatasetTypeSybaseTable - objectMap := make(map[string]interface{}) - if std.SybaseTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = std.SybaseTableDatasetTypeProperties - } - if std.Description != nil { - objectMap["description"] = std.Description - } - if std.Structure != nil { - objectMap["structure"] = std.Structure - } - if std.Schema != nil { - objectMap["schema"] = std.Schema - } - if std.LinkedServiceName != nil { - objectMap["linkedServiceName"] = std.LinkedServiceName - } - if std.Parameters != nil { - objectMap["parameters"] = std.Parameters - } - if std.Annotations != nil { - objectMap["annotations"] = std.Annotations - } - if std.Folder != nil { - objectMap["folder"] = std.Folder - } - if std.Type != "" { - objectMap["type"] = std.Type - } - for k, v := range std.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return &std, true -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for SybaseTableDataset. -func (std SybaseTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &std, true -} - -// UnmarshalJSON is the custom unmarshaler for SybaseTableDataset struct. -func (std *SybaseTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var sybaseTableDatasetTypeProperties SybaseTableDatasetTypeProperties - err = json.Unmarshal(*v, &sybaseTableDatasetTypeProperties) - if err != nil { - return err - } - std.SybaseTableDatasetTypeProperties = &sybaseTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if std.AdditionalProperties == nil { - std.AdditionalProperties = make(map[string]interface{}) - } - std.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - std.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - std.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - std.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - std.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - std.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - std.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - std.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - std.Type = typeVar - } - } - } - - return nil -} - -// SybaseTableDatasetTypeProperties sybase table dataset properties. -type SybaseTableDatasetTypeProperties struct { - // TableName - The Sybase table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` -} - -// SynapseNotebookActivity execute Synapse notebook activity. -type SynapseNotebookActivity struct { - // SynapseNotebookActivityTypeProperties - Execute Synapse notebook activity properties. - *SynapseNotebookActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) MarshalJSON() ([]byte, error) { - sna.Type = TypeBasicActivityTypeSynapseNotebook - objectMap := make(map[string]interface{}) - if sna.SynapseNotebookActivityTypeProperties != nil { - objectMap["typeProperties"] = sna.SynapseNotebookActivityTypeProperties - } - if sna.LinkedServiceName != nil { - objectMap["linkedServiceName"] = sna.LinkedServiceName - } - if sna.Policy != nil { - objectMap["policy"] = sna.Policy - } - if sna.Name != nil { - objectMap["name"] = sna.Name - } - if sna.Description != nil { - objectMap["description"] = sna.Description - } - if sna.State != "" { - objectMap["state"] = sna.State - } - if sna.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = sna.OnInactiveMarkAs - } - if sna.DependsOn != nil { - objectMap["dependsOn"] = sna.DependsOn - } - if sna.UserProperties != nil { - objectMap["userProperties"] = sna.UserProperties - } - if sna.Type != "" { - objectMap["type"] = sna.Type - } - for k, v := range sna.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return &sna, true -} - -// AsScriptActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &sna, true -} - -// AsWebHookActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for SynapseNotebookActivity. -func (sna SynapseNotebookActivity) AsBasicActivity() (BasicActivity, bool) { - return &sna, true -} - -// UnmarshalJSON is the custom unmarshaler for SynapseNotebookActivity struct. -func (sna *SynapseNotebookActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var synapseNotebookActivityTypeProperties SynapseNotebookActivityTypeProperties - err = json.Unmarshal(*v, &synapseNotebookActivityTypeProperties) - if err != nil { - return err - } - sna.SynapseNotebookActivityTypeProperties = &synapseNotebookActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - sna.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - sna.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if sna.AdditionalProperties == nil { - sna.AdditionalProperties = make(map[string]interface{}) - } - sna.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - sna.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - sna.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - sna.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - sna.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - sna.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - sna.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - sna.Type = typeVar - } - } - } - - return nil -} - -// SynapseNotebookActivityTypeProperties execute Synapse notebook activity properties. -type SynapseNotebookActivityTypeProperties struct { - // Notebook - Synapse notebook reference. - Notebook *SynapseNotebookReference `json:"notebook,omitempty"` - // SparkPool - The name of the big data pool which will be used to execute the notebook. - SparkPool *BigDataPoolParametrizationReference `json:"sparkPool,omitempty"` - // Parameters - Notebook parameters. - Parameters map[string]*NotebookParameter `json:"parameters"` - // ExecutorSize - 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"` - // Conf - Spark configuration properties, which will override the 'conf' of the notebook you provide. - Conf interface{} `json:"conf,omitempty"` - // DriverSize - 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"` - // NumExecutors - 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 interface{} `json:"numExecutors,omitempty"` - // ConfigurationType - The type of the spark config. Possible values include: 'ConfigurationTypeDefault', 'ConfigurationTypeCustomized', 'ConfigurationTypeArtifact' - ConfigurationType ConfigurationType `json:"configurationType,omitempty"` - // TargetSparkConfiguration - The spark configuration of the spark job. - TargetSparkConfiguration *SparkConfigurationParametrizationReference `json:"targetSparkConfiguration,omitempty"` - // SparkConfig - Spark configuration property. - SparkConfig map[string]interface{} `json:"sparkConfig"` -} - -// MarshalJSON is the custom marshaler for SynapseNotebookActivityTypeProperties. -func (snatp SynapseNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if snatp.Notebook != nil { - objectMap["notebook"] = snatp.Notebook - } - if snatp.SparkPool != nil { - objectMap["sparkPool"] = snatp.SparkPool - } - if snatp.Parameters != nil { - objectMap["parameters"] = snatp.Parameters - } - if snatp.ExecutorSize != nil { - objectMap["executorSize"] = snatp.ExecutorSize - } - if snatp.Conf != nil { - objectMap["conf"] = snatp.Conf - } - if snatp.DriverSize != nil { - objectMap["driverSize"] = snatp.DriverSize - } - if snatp.NumExecutors != nil { - objectMap["numExecutors"] = snatp.NumExecutors - } - if snatp.ConfigurationType != "" { - objectMap["configurationType"] = snatp.ConfigurationType - } - if snatp.TargetSparkConfiguration != nil { - objectMap["targetSparkConfiguration"] = snatp.TargetSparkConfiguration - } - if snatp.SparkConfig != nil { - objectMap["sparkConfig"] = snatp.SparkConfig - } - return json.Marshal(objectMap) -} - -// SynapseNotebookReference synapse notebook reference type. -type SynapseNotebookReference struct { - // Type - Synapse notebook reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference notebook name. Type: string (or Expression with resultType string). - ReferenceName interface{} `json:"referenceName,omitempty"` -} - -// SynapseSparkJobActivityTypeProperties execute spark job activity properties. -type SynapseSparkJobActivityTypeProperties struct { - // SparkJob - Synapse spark job reference. - SparkJob *SynapseSparkJobReference `json:"sparkJob,omitempty"` - // Arguments - User specified arguments to SynapseSparkJobDefinitionActivity. - Arguments *[]interface{} `json:"args,omitempty"` - // File - 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"` - // ScanFolder - 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 interface{} `json:"scanFolder,omitempty"` - // ClassName - 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"` - // Files - (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 *[]interface{} `json:"files,omitempty"` - // PythonCodeReference - 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 *[]interface{} `json:"pythonCodeReference,omitempty"` - // FilesV2 - 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 *[]interface{} `json:"filesV2,omitempty"` - // TargetBigDataPool - 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"` - // ExecutorSize - 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"` - // Conf - Spark configuration properties, which will override the 'conf' of the spark job definition you provide. - Conf interface{} `json:"conf,omitempty"` - // DriverSize - 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"` - // NumExecutors - Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. Type: integer (or Expression with resultType integer). - NumExecutors interface{} `json:"numExecutors,omitempty"` - // ConfigurationType - The type of the spark config. Possible values include: 'ConfigurationTypeDefault', 'ConfigurationTypeCustomized', 'ConfigurationTypeArtifact' - ConfigurationType ConfigurationType `json:"configurationType,omitempty"` - // TargetSparkConfiguration - The spark configuration of the spark job. - TargetSparkConfiguration *SparkConfigurationParametrizationReference `json:"targetSparkConfiguration,omitempty"` - // SparkConfig - Spark configuration property. - SparkConfig map[string]interface{} `json:"sparkConfig"` -} - -// MarshalJSON is the custom marshaler for SynapseSparkJobActivityTypeProperties. -func (ssjatp SynapseSparkJobActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if ssjatp.SparkJob != nil { - objectMap["sparkJob"] = ssjatp.SparkJob - } - if ssjatp.Arguments != nil { - objectMap["args"] = ssjatp.Arguments - } - if ssjatp.File != nil { - objectMap["file"] = ssjatp.File - } - if ssjatp.ScanFolder != nil { - objectMap["scanFolder"] = ssjatp.ScanFolder - } - if ssjatp.ClassName != nil { - objectMap["className"] = ssjatp.ClassName - } - if ssjatp.Files != nil { - objectMap["files"] = ssjatp.Files - } - if ssjatp.PythonCodeReference != nil { - objectMap["pythonCodeReference"] = ssjatp.PythonCodeReference - } - if ssjatp.FilesV2 != nil { - objectMap["filesV2"] = ssjatp.FilesV2 - } - if ssjatp.TargetBigDataPool != nil { - objectMap["targetBigDataPool"] = ssjatp.TargetBigDataPool - } - if ssjatp.ExecutorSize != nil { - objectMap["executorSize"] = ssjatp.ExecutorSize - } - if ssjatp.Conf != nil { - objectMap["conf"] = ssjatp.Conf - } - if ssjatp.DriverSize != nil { - objectMap["driverSize"] = ssjatp.DriverSize - } - if ssjatp.NumExecutors != nil { - objectMap["numExecutors"] = ssjatp.NumExecutors - } - if ssjatp.ConfigurationType != "" { - objectMap["configurationType"] = ssjatp.ConfigurationType - } - if ssjatp.TargetSparkConfiguration != nil { - objectMap["targetSparkConfiguration"] = ssjatp.TargetSparkConfiguration - } - if ssjatp.SparkConfig != nil { - objectMap["sparkConfig"] = ssjatp.SparkConfig - } - return json.Marshal(objectMap) -} - -// SynapseSparkJobDefinitionActivity execute spark job activity. -type SynapseSparkJobDefinitionActivity struct { - // SynapseSparkJobActivityTypeProperties - Execute spark job activity properties. - *SynapseSparkJobActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) MarshalJSON() ([]byte, error) { - ssjda.Type = TypeBasicActivityTypeSparkJob - objectMap := make(map[string]interface{}) - if ssjda.SynapseSparkJobActivityTypeProperties != nil { - objectMap["typeProperties"] = ssjda.SynapseSparkJobActivityTypeProperties - } - if ssjda.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ssjda.LinkedServiceName - } - if ssjda.Policy != nil { - objectMap["policy"] = ssjda.Policy - } - if ssjda.Name != nil { - objectMap["name"] = ssjda.Name - } - if ssjda.Description != nil { - objectMap["description"] = ssjda.Description - } - if ssjda.State != "" { - objectMap["state"] = ssjda.State - } - if ssjda.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ssjda.OnInactiveMarkAs - } - if ssjda.DependsOn != nil { - objectMap["dependsOn"] = ssjda.DependsOn - } - if ssjda.UserProperties != nil { - objectMap["userProperties"] = ssjda.UserProperties - } - if ssjda.Type != "" { - objectMap["type"] = ssjda.Type - } - for k, v := range ssjda.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return &ssjda, true -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &ssjda, true -} - -// AsWebHookActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for SynapseSparkJobDefinitionActivity. -func (ssjda SynapseSparkJobDefinitionActivity) AsBasicActivity() (BasicActivity, bool) { - return &ssjda, true -} - -// UnmarshalJSON is the custom unmarshaler for SynapseSparkJobDefinitionActivity struct. -func (ssjda *SynapseSparkJobDefinitionActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var synapseSparkJobActivityTypeProperties SynapseSparkJobActivityTypeProperties - err = json.Unmarshal(*v, &synapseSparkJobActivityTypeProperties) - if err != nil { - return err - } - ssjda.SynapseSparkJobActivityTypeProperties = &synapseSparkJobActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ssjda.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - ssjda.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ssjda.AdditionalProperties == nil { - ssjda.AdditionalProperties = make(map[string]interface{}) - } - ssjda.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ssjda.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ssjda.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ssjda.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ssjda.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ssjda.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ssjda.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ssjda.Type = typeVar - } - } - } - - return nil -} - -// SynapseSparkJobReference synapse spark job reference type. -type SynapseSparkJobReference struct { - // Type - Synapse spark job reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference spark job name. Expression with resultType string. - ReferenceName interface{} `json:"referenceName,omitempty"` -} - -// BasicTabularSource copy activity sources of tabular type. -type BasicTabularSource interface { - AsSalesforceV2Source() (*SalesforceV2Source, bool) - AsWarehouseSource() (*WarehouseSource, bool) - AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) - AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) - AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) - AsDynamicsAXSource() (*DynamicsAXSource, bool) - AsResponsysSource() (*ResponsysSource, bool) - AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) - AsVerticaSource() (*VerticaSource, bool) - AsNetezzaSource() (*NetezzaSource, bool) - AsZohoSource() (*ZohoSource, bool) - AsXeroSource() (*XeroSource, bool) - AsSquareSource() (*SquareSource, bool) - AsSparkSource() (*SparkSource, bool) - AsShopifySource() (*ShopifySource, bool) - AsServiceNowSource() (*ServiceNowSource, bool) - AsQuickBooksSource() (*QuickBooksSource, bool) - AsPrestoSource() (*PrestoSource, bool) - AsPhoenixSource() (*PhoenixSource, bool) - AsPaypalSource() (*PaypalSource, bool) - AsMarketoSource() (*MarketoSource, bool) - AsAzureMariaDBSource() (*AzureMariaDBSource, bool) - AsMariaDBSource() (*MariaDBSource, bool) - AsMagentoSource() (*MagentoSource, bool) - AsJiraSource() (*JiraSource, bool) - AsImpalaSource() (*ImpalaSource, bool) - AsHubspotSource() (*HubspotSource, bool) - AsHiveSource() (*HiveSource, bool) - AsHBaseSource() (*HBaseSource, bool) - AsGreenplumSource() (*GreenplumSource, bool) - AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) - AsEloquaSource() (*EloquaSource, bool) - AsDrillSource() (*DrillSource, bool) - AsCouchbaseSource() (*CouchbaseSource, bool) - AsConcurSource() (*ConcurSource, bool) - AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) - AsAmazonMWSSource() (*AmazonMWSSource, bool) - AsCassandraSource() (*CassandraSource, bool) - AsTeradataSource() (*TeradataSource, bool) - AsAzureMySQLSource() (*AzureMySQLSource, bool) - AsSQLDWSource() (*SQLDWSource, bool) - AsSQLMISource() (*SQLMISource, bool) - AsAzureSQLSource() (*AzureSQLSource, bool) - AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) - AsSQLServerSource() (*SQLServerSource, bool) - AsSQLSource() (*SQLSource, bool) - AsSapTableSource() (*SapTableSource, bool) - AsSapOdpSource() (*SapOdpSource, bool) - AsSapOpenHubSource() (*SapOpenHubSource, bool) - AsSapHanaSource() (*SapHanaSource, bool) - AsSapEccSource() (*SapEccSource, bool) - AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) - AsSalesforceSource() (*SalesforceSource, bool) - AsSapBwSource() (*SapBwSource, bool) - AsSybaseSource() (*SybaseSource, bool) - AsPostgreSQLSource() (*PostgreSQLSource, bool) - AsMySQLSource() (*MySQLSource, bool) - AsOdbcSource() (*OdbcSource, bool) - AsDb2Source() (*Db2Source, bool) - AsInformixSource() (*InformixSource, bool) - AsAzureTableSource() (*AzureTableSource, bool) - AsTabularSource() (*TabularSource, bool) -} - -// TabularSource copy activity sources of tabular type. -type TabularSource struct { - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -func unmarshalBasicTabularSource(body []byte) (BasicTabularSource, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicCopySourceTypeSalesforceV2Source): - var svs SalesforceV2Source - err := json.Unmarshal(body, &svs) - return svs, err - case string(TypeBasicCopySourceTypeWarehouseSource): - var ws WarehouseSource - err := json.Unmarshal(body, &ws) - return ws, err - case string(TypeBasicCopySourceTypeAmazonRedshiftSource): - var ars AmazonRedshiftSource - err := json.Unmarshal(body, &ars) - return ars, err - case string(TypeBasicCopySourceTypeGoogleAdWordsSource): - var gaws GoogleAdWordsSource - err := json.Unmarshal(body, &gaws) - return gaws, err - case string(TypeBasicCopySourceTypeOracleServiceCloudSource): - var oscs OracleServiceCloudSource - err := json.Unmarshal(body, &oscs) - return oscs, err - case string(TypeBasicCopySourceTypeDynamicsAXSource): - var das DynamicsAXSource - err := json.Unmarshal(body, &das) - return das, err - case string(TypeBasicCopySourceTypeResponsysSource): - var rs ResponsysSource - err := json.Unmarshal(body, &rs) - return rs, err - case string(TypeBasicCopySourceTypeSalesforceMarketingCloudSource): - var smcs SalesforceMarketingCloudSource - err := json.Unmarshal(body, &smcs) - return smcs, err - case string(TypeBasicCopySourceTypeVerticaSource): - var vs VerticaSource - err := json.Unmarshal(body, &vs) - return vs, err - case string(TypeBasicCopySourceTypeNetezzaSource): - var ns NetezzaSource - err := json.Unmarshal(body, &ns) - return ns, err - case string(TypeBasicCopySourceTypeZohoSource): - var zs ZohoSource - err := json.Unmarshal(body, &zs) - return zs, err - case string(TypeBasicCopySourceTypeXeroSource): - var xs XeroSource - err := json.Unmarshal(body, &xs) - return xs, err - case string(TypeBasicCopySourceTypeSquareSource): - var ss SquareSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeSparkSource): - var ss SparkSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeShopifySource): - var ss ShopifySource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeServiceNowSource): - var sns ServiceNowSource - err := json.Unmarshal(body, &sns) - return sns, err - case string(TypeBasicCopySourceTypeQuickBooksSource): - var qbs QuickBooksSource - err := json.Unmarshal(body, &qbs) - return qbs, err - case string(TypeBasicCopySourceTypePrestoSource): - var ps PrestoSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeBasicCopySourceTypePhoenixSource): - var ps PhoenixSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeBasicCopySourceTypePaypalSource): - var ps PaypalSource - err := json.Unmarshal(body, &ps) - return ps, err - case string(TypeBasicCopySourceTypeMarketoSource): - var ms MarketoSource - err := json.Unmarshal(body, &ms) - return ms, err - case string(TypeBasicCopySourceTypeAzureMariaDBSource): - var amds AzureMariaDBSource - err := json.Unmarshal(body, &amds) - return amds, err - case string(TypeBasicCopySourceTypeMariaDBSource): - var mds MariaDBSource - err := json.Unmarshal(body, &mds) - return mds, err - case string(TypeBasicCopySourceTypeMagentoSource): - var ms MagentoSource - err := json.Unmarshal(body, &ms) - return ms, err - case string(TypeBasicCopySourceTypeJiraSource): - var js JiraSource - err := json.Unmarshal(body, &js) - return js, err - case string(TypeBasicCopySourceTypeImpalaSource): - var is ImpalaSource - err := json.Unmarshal(body, &is) - return is, err - case string(TypeBasicCopySourceTypeHubspotSource): - var hs HubspotSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeBasicCopySourceTypeHiveSource): - var hs HiveSource - err := json.Unmarshal(body, &hs) - return hs, err - case string(TypeBasicCopySourceTypeHBaseSource): - var hbs HBaseSource - err := json.Unmarshal(body, &hbs) - return hbs, err - case string(TypeBasicCopySourceTypeGreenplumSource): - var gs GreenplumSource - err := json.Unmarshal(body, &gs) - return gs, err - case string(TypeBasicCopySourceTypeGoogleBigQuerySource): - var gbqs GoogleBigQuerySource - err := json.Unmarshal(body, &gbqs) - return gbqs, err - case string(TypeBasicCopySourceTypeEloquaSource): - var es EloquaSource - err := json.Unmarshal(body, &es) - return es, err - case string(TypeBasicCopySourceTypeDrillSource): - var ds DrillSource - err := json.Unmarshal(body, &ds) - return ds, err - case string(TypeBasicCopySourceTypeCouchbaseSource): - var cs CouchbaseSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeBasicCopySourceTypeConcurSource): - var cs ConcurSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeBasicCopySourceTypeAzurePostgreSQLSource): - var apss AzurePostgreSQLSource - err := json.Unmarshal(body, &apss) - return apss, err - case string(TypeBasicCopySourceTypeAmazonMWSSource): - var ams AmazonMWSSource - err := json.Unmarshal(body, &ams) - return ams, err - case string(TypeBasicCopySourceTypeCassandraSource): - var cs CassandraSource - err := json.Unmarshal(body, &cs) - return cs, err - case string(TypeBasicCopySourceTypeTeradataSource): - var ts TeradataSource - err := json.Unmarshal(body, &ts) - return ts, err - case string(TypeBasicCopySourceTypeAzureMySQLSource): - var amss AzureMySQLSource - err := json.Unmarshal(body, &amss) - return amss, err - case string(TypeBasicCopySourceTypeSQLDWSource): - var sds SQLDWSource - err := json.Unmarshal(body, &sds) - return sds, err - case string(TypeBasicCopySourceTypeSQLMISource): - var sms SQLMISource - err := json.Unmarshal(body, &sms) - return sms, err - case string(TypeBasicCopySourceTypeAzureSQLSource): - var ass AzureSQLSource - err := json.Unmarshal(body, &ass) - return ass, err - case string(TypeBasicCopySourceTypeAmazonRdsForSQLServerSource): - var arfsss AmazonRdsForSQLServerSource - err := json.Unmarshal(body, &arfsss) - return arfsss, err - case string(TypeBasicCopySourceTypeSQLServerSource): - var sss SQLServerSource - err := json.Unmarshal(body, &sss) - return sss, err - case string(TypeBasicCopySourceTypeSQLSource): - var ss SQLSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeSapTableSource): - var sts SapTableSource - err := json.Unmarshal(body, &sts) - return sts, err - case string(TypeBasicCopySourceTypeSapOdpSource): - var sos SapOdpSource - err := json.Unmarshal(body, &sos) - return sos, err - case string(TypeBasicCopySourceTypeSapOpenHubSource): - var sohs SapOpenHubSource - err := json.Unmarshal(body, &sohs) - return sohs, err - case string(TypeBasicCopySourceTypeSapHanaSource): - var shs SapHanaSource - err := json.Unmarshal(body, &shs) - return shs, err - case string(TypeBasicCopySourceTypeSapEccSource): - var ses SapEccSource - err := json.Unmarshal(body, &ses) - return ses, err - case string(TypeBasicCopySourceTypeSapCloudForCustomerSource): - var scfcs SapCloudForCustomerSource - err := json.Unmarshal(body, &scfcs) - return scfcs, err - case string(TypeBasicCopySourceTypeSalesforceSource): - var ss SalesforceSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypeSapBwSource): - var sbs SapBwSource - err := json.Unmarshal(body, &sbs) - return sbs, err - case string(TypeBasicCopySourceTypeSybaseSource): - var ss SybaseSource - err := json.Unmarshal(body, &ss) - return ss, err - case string(TypeBasicCopySourceTypePostgreSQLSource): - var pss PostgreSQLSource - err := json.Unmarshal(body, &pss) - return pss, err - case string(TypeBasicCopySourceTypeMySQLSource): - var mss MySQLSource - err := json.Unmarshal(body, &mss) - return mss, err - case string(TypeBasicCopySourceTypeOdbcSource): - var osVar OdbcSource - err := json.Unmarshal(body, &osVar) - return osVar, err - case string(TypeBasicCopySourceTypeDb2Source): - var d2s Db2Source - err := json.Unmarshal(body, &d2s) - return d2s, err - case string(TypeBasicCopySourceTypeInformixSource): - var is InformixSource - err := json.Unmarshal(body, &is) - return is, err - case string(TypeBasicCopySourceTypeAzureTableSource): - var ats AzureTableSource - err := json.Unmarshal(body, &ats) - return ats, err - default: - var ts TabularSource - err := json.Unmarshal(body, &ts) - return ts, err - } -} -func unmarshalBasicTabularSourceArray(body []byte) ([]BasicTabularSource, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - tsArray := make([]BasicTabularSource, len(rawMessages)) - - for index, rawMessage := range rawMessages { - ts, err := unmarshalBasicTabularSource(*rawMessage) - if err != nil { - return nil, err - } - tsArray[index] = ts - } - return tsArray, nil -} - -// MarshalJSON is the custom marshaler for TabularSource. -func (ts TabularSource) MarshalJSON() ([]byte, error) { - ts.Type = TypeBasicCopySourceTypeTabularSource - objectMap := make(map[string]interface{}) - if ts.QueryTimeout != nil { - objectMap["queryTimeout"] = ts.QueryTimeout - } - if ts.AdditionalColumns != nil { - objectMap["additionalColumns"] = ts.AdditionalColumns - } - if ts.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ts.SourceRetryCount - } - if ts.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ts.SourceRetryWait - } - if ts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ts.MaxConcurrentConnections - } - if ts.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ts.DisableMetricsCollection - } - if ts.Type != "" { - objectMap["type"] = ts.Type - } - for k, v := range ts.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsTabularSource() (*TabularSource, bool) { - return &ts, true -} - -// AsBasicTabularSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ts, true -} - -// AsBinarySource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for TabularSource. -func (ts TabularSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ts, true -} - -// UnmarshalJSON is the custom unmarshaler for TabularSource struct. -func (ts *TabularSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ts.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ts.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ts.AdditionalProperties == nil { - ts.AdditionalProperties = make(map[string]interface{}) - } - ts.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ts.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ts.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ts.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ts.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ts.Type = typeVar - } - } - } - - return nil -} - -// TabularTranslator a copy activity tabular translator. -type TabularTranslator struct { - // ColumnMappings - 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"` - // SchemaMapping - 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"` - // CollectionReference - 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"` - // MapComplexValuesToString - 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"` - // Mappings - 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"` - // TypeConversion - Whether to enable the advanced type conversion feature in the Copy activity. Type: boolean (or Expression with resultType boolean). - TypeConversion interface{} `json:"typeConversion,omitempty"` - // TypeConversionSettings - Type conversion settings - TypeConversionSettings *TypeConversionSettings `json:"typeConversionSettings,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicCopyTranslatorTypeCopyTranslator', 'TypeBasicCopyTranslatorTypeTabularTranslator' - Type TypeBasicCopyTranslator `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TabularTranslator. -func (tt TabularTranslator) MarshalJSON() ([]byte, error) { - tt.Type = TypeBasicCopyTranslatorTypeTabularTranslator - objectMap := make(map[string]interface{}) - if tt.ColumnMappings != nil { - objectMap["columnMappings"] = tt.ColumnMappings - } - if tt.SchemaMapping != nil { - objectMap["schemaMapping"] = tt.SchemaMapping - } - if tt.CollectionReference != nil { - objectMap["collectionReference"] = tt.CollectionReference - } - if tt.MapComplexValuesToString != nil { - objectMap["mapComplexValuesToString"] = tt.MapComplexValuesToString - } - if tt.Mappings != nil { - objectMap["mappings"] = tt.Mappings - } - if tt.TypeConversion != nil { - objectMap["typeConversion"] = tt.TypeConversion - } - if tt.TypeConversionSettings != nil { - objectMap["typeConversionSettings"] = tt.TypeConversionSettings - } - if tt.Type != "" { - objectMap["type"] = tt.Type - } - for k, v := range tt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsTabularTranslator is the BasicCopyTranslator implementation for TabularTranslator. -func (tt TabularTranslator) AsTabularTranslator() (*TabularTranslator, bool) { - return &tt, true -} - -// AsCopyTranslator is the BasicCopyTranslator implementation for TabularTranslator. -func (tt TabularTranslator) AsCopyTranslator() (*CopyTranslator, bool) { - return nil, false -} - -// AsBasicCopyTranslator is the BasicCopyTranslator implementation for TabularTranslator. -func (tt TabularTranslator) AsBasicCopyTranslator() (BasicCopyTranslator, bool) { - return &tt, true -} - -// UnmarshalJSON is the custom unmarshaler for TabularTranslator struct. -func (tt *TabularTranslator) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "columnMappings": - if v != nil { - var columnMappings interface{} - err = json.Unmarshal(*v, &columnMappings) - if err != nil { - return err - } - tt.ColumnMappings = columnMappings - } - case "schemaMapping": - if v != nil { - var schemaMapping interface{} - err = json.Unmarshal(*v, &schemaMapping) - if err != nil { - return err - } - tt.SchemaMapping = schemaMapping - } - case "collectionReference": - if v != nil { - var collectionReference interface{} - err = json.Unmarshal(*v, &collectionReference) - if err != nil { - return err - } - tt.CollectionReference = collectionReference - } - case "mapComplexValuesToString": - if v != nil { - var mapComplexValuesToString interface{} - err = json.Unmarshal(*v, &mapComplexValuesToString) - if err != nil { - return err - } - tt.MapComplexValuesToString = mapComplexValuesToString - } - case "mappings": - if v != nil { - var mappings interface{} - err = json.Unmarshal(*v, &mappings) - if err != nil { - return err - } - tt.Mappings = mappings - } - case "typeConversion": - if v != nil { - var typeConversion interface{} - err = json.Unmarshal(*v, &typeConversion) - if err != nil { - return err - } - tt.TypeConversion = typeConversion - } - case "typeConversionSettings": - if v != nil { - var typeConversionSettings TypeConversionSettings - err = json.Unmarshal(*v, &typeConversionSettings) - if err != nil { - return err - } - tt.TypeConversionSettings = &typeConversionSettings - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if tt.AdditionalProperties == nil { - tt.AdditionalProperties = make(map[string]interface{}) - } - tt.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCopyTranslator - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - tt.Type = typeVar - } - } - } - - return nil -} - -// TarGZipReadSettings the TarGZip compression read settings. -type TarGZipReadSettings struct { - // PreserveCompressionFileNameAsFolder - Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicCompressionReadSettingsTypeCompressionReadSettings', 'TypeBasicCompressionReadSettingsTypeTarGZipReadSettings', 'TypeBasicCompressionReadSettingsTypeTarReadSettings', 'TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings' - Type TypeBasicCompressionReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TarGZipReadSettings. -func (tgzrs TarGZipReadSettings) MarshalJSON() ([]byte, error) { - tgzrs.Type = TypeBasicCompressionReadSettingsTypeTarGZipReadSettings - objectMap := make(map[string]interface{}) - if tgzrs.PreserveCompressionFileNameAsFolder != nil { - objectMap["preserveCompressionFileNameAsFolder"] = tgzrs.PreserveCompressionFileNameAsFolder - } - if tgzrs.Type != "" { - objectMap["type"] = tgzrs.Type - } - for k, v := range tgzrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsTarGZipReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. -func (tgzrs TarGZipReadSettings) AsTarGZipReadSettings() (*TarGZipReadSettings, bool) { - return &tgzrs, true -} - -// AsTarReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. -func (tgzrs TarGZipReadSettings) AsTarReadSettings() (*TarReadSettings, bool) { - return nil, false -} - -// AsZipDeflateReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. -func (tgzrs TarGZipReadSettings) AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) { - return nil, false -} - -// AsCompressionReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. -func (tgzrs TarGZipReadSettings) AsCompressionReadSettings() (*CompressionReadSettings, bool) { - return nil, false -} - -// AsBasicCompressionReadSettings is the BasicCompressionReadSettings implementation for TarGZipReadSettings. -func (tgzrs TarGZipReadSettings) AsBasicCompressionReadSettings() (BasicCompressionReadSettings, bool) { - return &tgzrs, true -} - -// UnmarshalJSON is the custom unmarshaler for TarGZipReadSettings struct. -func (tgzrs *TarGZipReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preserveCompressionFileNameAsFolder": - if v != nil { - var preserveCompressionFileNameAsFolder interface{} - err = json.Unmarshal(*v, &preserveCompressionFileNameAsFolder) - if err != nil { - return err - } - tgzrs.PreserveCompressionFileNameAsFolder = preserveCompressionFileNameAsFolder - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if tgzrs.AdditionalProperties == nil { - tgzrs.AdditionalProperties = make(map[string]interface{}) - } - tgzrs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCompressionReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - tgzrs.Type = typeVar - } - } - } - - return nil -} - -// TarReadSettings the Tar compression read settings. -type TarReadSettings struct { - // PreserveCompressionFileNameAsFolder - Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicCompressionReadSettingsTypeCompressionReadSettings', 'TypeBasicCompressionReadSettingsTypeTarGZipReadSettings', 'TypeBasicCompressionReadSettingsTypeTarReadSettings', 'TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings' - Type TypeBasicCompressionReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TarReadSettings. -func (trs TarReadSettings) MarshalJSON() ([]byte, error) { - trs.Type = TypeBasicCompressionReadSettingsTypeTarReadSettings - objectMap := make(map[string]interface{}) - if trs.PreserveCompressionFileNameAsFolder != nil { - objectMap["preserveCompressionFileNameAsFolder"] = trs.PreserveCompressionFileNameAsFolder - } - if trs.Type != "" { - objectMap["type"] = trs.Type - } - for k, v := range trs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsTarGZipReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. -func (trs TarReadSettings) AsTarGZipReadSettings() (*TarGZipReadSettings, bool) { - return nil, false -} - -// AsTarReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. -func (trs TarReadSettings) AsTarReadSettings() (*TarReadSettings, bool) { - return &trs, true -} - -// AsZipDeflateReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. -func (trs TarReadSettings) AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) { - return nil, false -} - -// AsCompressionReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. -func (trs TarReadSettings) AsCompressionReadSettings() (*CompressionReadSettings, bool) { - return nil, false -} - -// AsBasicCompressionReadSettings is the BasicCompressionReadSettings implementation for TarReadSettings. -func (trs TarReadSettings) AsBasicCompressionReadSettings() (BasicCompressionReadSettings, bool) { - return &trs, true -} - -// UnmarshalJSON is the custom unmarshaler for TarReadSettings struct. -func (trs *TarReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preserveCompressionFileNameAsFolder": - if v != nil { - var preserveCompressionFileNameAsFolder interface{} - err = json.Unmarshal(*v, &preserveCompressionFileNameAsFolder) - if err != nil { - return err - } - trs.PreserveCompressionFileNameAsFolder = preserveCompressionFileNameAsFolder - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if trs.AdditionalProperties == nil { - trs.AdditionalProperties = make(map[string]interface{}) - } - trs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCompressionReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - trs.Type = typeVar - } - } - } - - return nil -} - -// TeamDeskLinkedService linked service for TeamDesk. -type TeamDeskLinkedService struct { - // TeamDeskLinkedServiceTypeProperties - TeamDesk linked service properties. - *TeamDeskLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) MarshalJSON() ([]byte, error) { - tdls.Type = TypeBasicLinkedServiceTypeTeamDesk - objectMap := make(map[string]interface{}) - if tdls.TeamDeskLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = tdls.TeamDeskLinkedServiceTypeProperties - } - if tdls.ConnectVia != nil { - objectMap["connectVia"] = tdls.ConnectVia - } - if tdls.Description != nil { - objectMap["description"] = tdls.Description - } - if tdls.Parameters != nil { - objectMap["parameters"] = tdls.Parameters - } - if tdls.Annotations != nil { - objectMap["annotations"] = tdls.Annotations - } - if tdls.Type != "" { - objectMap["type"] = tdls.Type - } - for k, v := range tdls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return &tdls, true -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for TeamDeskLinkedService. -func (tdls TeamDeskLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &tdls, true -} - -// UnmarshalJSON is the custom unmarshaler for TeamDeskLinkedService struct. -func (tdls *TeamDeskLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var teamDeskLinkedServiceTypeProperties TeamDeskLinkedServiceTypeProperties - err = json.Unmarshal(*v, &teamDeskLinkedServiceTypeProperties) - if err != nil { - return err - } - tdls.TeamDeskLinkedServiceTypeProperties = &teamDeskLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if tdls.AdditionalProperties == nil { - tdls.AdditionalProperties = make(map[string]interface{}) - } - tdls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - tdls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - tdls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - tdls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - tdls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - tdls.Type = typeVar - } - } - } - - return nil -} - -// TeamDeskLinkedServiceTypeProperties teamDesk linked service type properties. -type TeamDeskLinkedServiceTypeProperties struct { - // AuthenticationType - The authentication type to use. Possible values include: 'TeamDeskAuthenticationTypeBasic', 'TeamDeskAuthenticationTypeToken' - AuthenticationType TeamDeskAuthenticationType `json:"authenticationType,omitempty"` - // URL - The url to connect TeamDesk source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // UserName - The username of the TeamDesk source. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The password of the TeamDesk source. - Password BasicSecretBase `json:"password,omitempty"` - // APIToken - The api token for the TeamDesk source. - APIToken BasicSecretBase `json:"apiToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for TeamDeskLinkedServiceTypeProperties struct. -func (tdlstp *TeamDeskLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "authenticationType": - if v != nil { - var authenticationType TeamDeskAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - tdlstp.AuthenticationType = authenticationType - } - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - tdlstp.URL = URL - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - tdlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - tdlstp.Password = password - } - case "apiToken": - if v != nil { - APIToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - tdlstp.APIToken = APIToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - tdlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// TeradataLinkedService linked service for Teradata data source. -type TeradataLinkedService struct { - // TeradataLinkedServiceTypeProperties - Teradata linked service properties. - *TeradataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TeradataLinkedService. -func (TLSVar TeradataLinkedService) MarshalJSON() ([]byte, error) { - TLSVar.Type = TypeBasicLinkedServiceTypeTeradata - objectMap := make(map[string]interface{}) - if TLSVar.TeradataLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = TLSVar.TeradataLinkedServiceTypeProperties - } - if TLSVar.ConnectVia != nil { - objectMap["connectVia"] = TLSVar.ConnectVia - } - if TLSVar.Description != nil { - objectMap["description"] = TLSVar.Description - } - if TLSVar.Parameters != nil { - objectMap["parameters"] = TLSVar.Parameters - } - if TLSVar.Annotations != nil { - objectMap["annotations"] = TLSVar.Annotations - } - if TLSVar.Type != "" { - objectMap["type"] = TLSVar.Type - } - for k, v := range TLSVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return &TLSVar, true -} - -// AsDb2LinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for TeradataLinkedService. -func (TLSVar TeradataLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &TLSVar, true -} - -// UnmarshalJSON is the custom unmarshaler for TeradataLinkedService struct. -func (TLSVar *TeradataLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var teradataLinkedServiceTypeProperties TeradataLinkedServiceTypeProperties - err = json.Unmarshal(*v, &teradataLinkedServiceTypeProperties) - if err != nil { - return err - } - TLSVar.TeradataLinkedServiceTypeProperties = &teradataLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if TLSVar.AdditionalProperties == nil { - TLSVar.AdditionalProperties = make(map[string]interface{}) - } - TLSVar.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - TLSVar.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - TLSVar.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - TLSVar.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - TLSVar.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - TLSVar.Type = typeVar - } - } - } - - return nil -} - -// TeradataLinkedServiceTypeProperties teradata linked service properties. -type TeradataLinkedServiceTypeProperties struct { - // ConnectionString - Teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Server - Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` - // AuthenticationType - AuthenticationType to be used for connection. Possible values include: 'TeradataAuthenticationTypeBasic', 'TeradataAuthenticationTypeWindows' - AuthenticationType TeradataAuthenticationType `json:"authenticationType,omitempty"` - // Username - Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - Password for authentication. - Password BasicSecretBase `json:"password,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for TeradataLinkedServiceTypeProperties struct. -func (tlstp *TeradataLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionString": - if v != nil { - var connectionString interface{} - err = json.Unmarshal(*v, &connectionString) - if err != nil { - return err - } - tlstp.ConnectionString = connectionString - } - case "server": - if v != nil { - var server interface{} - err = json.Unmarshal(*v, &server) - if err != nil { - return err - } - tlstp.Server = server - } - case "authenticationType": - if v != nil { - var authenticationType TeradataAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - tlstp.AuthenticationType = authenticationType - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - tlstp.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - tlstp.Password = password - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - tlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// TeradataPartitionSettings the settings that will be leveraged for teradata source partitioning. -type TeradataPartitionSettings struct { - // PartitionColumnName - 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"` - // PartitionUpperBound - 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"` - // PartitionLowerBound - 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"` -} - -// TeradataSource a copy activity Teradata source. -type TeradataSource struct { - // Query - Teradata query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // PartitionOption - The partition mechanism that will be used for teradata read in parallel. Possible values include: "None", "Hash", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for teradata source partitioning. - PartitionSettings *TeradataPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TeradataSource. -func (ts TeradataSource) MarshalJSON() ([]byte, error) { - ts.Type = TypeBasicCopySourceTypeTeradataSource - objectMap := make(map[string]interface{}) - if ts.Query != nil { - objectMap["query"] = ts.Query - } - if ts.PartitionOption != nil { - objectMap["partitionOption"] = ts.PartitionOption - } - if ts.PartitionSettings != nil { - objectMap["partitionSettings"] = ts.PartitionSettings - } - if ts.QueryTimeout != nil { - objectMap["queryTimeout"] = ts.QueryTimeout - } - if ts.AdditionalColumns != nil { - objectMap["additionalColumns"] = ts.AdditionalColumns - } - if ts.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ts.SourceRetryCount - } - if ts.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ts.SourceRetryWait - } - if ts.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ts.MaxConcurrentConnections - } - if ts.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ts.DisableMetricsCollection - } - if ts.Type != "" { - objectMap["type"] = ts.Type - } - for k, v := range ts.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsTeradataSource() (*TeradataSource, bool) { - return &ts, true -} - -// AsAzureMySQLSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ts, true -} - -// AsBinarySource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for TeradataSource. -func (ts TeradataSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ts, true -} - -// UnmarshalJSON is the custom unmarshaler for TeradataSource struct. -func (ts *TeradataSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - ts.Query = query - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - ts.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings TeradataPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - ts.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ts.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ts.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ts.AdditionalProperties == nil { - ts.AdditionalProperties = make(map[string]interface{}) - } - ts.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ts.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ts.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ts.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ts.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ts.Type = typeVar - } - } - } - - return nil -} - -// TeradataTableDataset the Teradata database dataset. -type TeradataTableDataset struct { - // TeradataTableDatasetTypeProperties - Teradata dataset properties. - *TeradataTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TeradataTableDataset. -func (ttd TeradataTableDataset) MarshalJSON() ([]byte, error) { - ttd.Type = TypeBasicDatasetTypeTeradataTable - objectMap := make(map[string]interface{}) - if ttd.TeradataTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = ttd.TeradataTableDatasetTypeProperties - } - if ttd.Description != nil { - objectMap["description"] = ttd.Description - } - if ttd.Structure != nil { - objectMap["structure"] = ttd.Structure - } - if ttd.Schema != nil { - objectMap["schema"] = ttd.Schema - } - if ttd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = ttd.LinkedServiceName - } - if ttd.Parameters != nil { - objectMap["parameters"] = ttd.Parameters - } - if ttd.Annotations != nil { - objectMap["annotations"] = ttd.Annotations - } - if ttd.Folder != nil { - objectMap["folder"] = ttd.Folder - } - if ttd.Type != "" { - objectMap["type"] = ttd.Type - } - for k, v := range ttd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return &ttd, true -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for TeradataTableDataset. -func (ttd TeradataTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &ttd, true -} - -// UnmarshalJSON is the custom unmarshaler for TeradataTableDataset struct. -func (ttd *TeradataTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var teradataTableDatasetTypeProperties TeradataTableDatasetTypeProperties - err = json.Unmarshal(*v, &teradataTableDatasetTypeProperties) - if err != nil { - return err - } - ttd.TeradataTableDatasetTypeProperties = &teradataTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ttd.AdditionalProperties == nil { - ttd.AdditionalProperties = make(map[string]interface{}) - } - ttd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ttd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - ttd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - ttd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - ttd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - ttd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - ttd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - ttd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ttd.Type = typeVar - } - } - } - - return nil -} - -// TeradataTableDatasetTypeProperties teradata dataset properties. -type TeradataTableDatasetTypeProperties struct { - // Database - The database name of Teradata. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` - // Table - The table name of Teradata. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// TextFormat the data stored in text format. -type TextFormat struct { - // ColumnDelimiter - The column delimiter. Type: string (or Expression with resultType string). - ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` - // RowDelimiter - The row delimiter. Type: string (or Expression with resultType string). - RowDelimiter interface{} `json:"rowDelimiter,omitempty"` - // EscapeChar - The escape character. Type: string (or Expression with resultType string). - EscapeChar interface{} `json:"escapeChar,omitempty"` - // QuoteChar - The quote character. Type: string (or Expression with resultType string). - QuoteChar interface{} `json:"quoteChar,omitempty"` - // NullValue - The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` - // EncodingName - 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"` - // TreatEmptyAsNull - 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"` - // SkipLineCount - 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"` - // FirstRowAsHeader - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Serializer - Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` - // Deserializer - Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetStorageFormatTypeDatasetStorageFormat', 'TypeBasicDatasetStorageFormatTypeParquetFormat', 'TypeBasicDatasetStorageFormatTypeOrcFormat', 'TypeBasicDatasetStorageFormatTypeAvroFormat', 'TypeBasicDatasetStorageFormatTypeJSONFormat', 'TypeBasicDatasetStorageFormatTypeTextFormat' - Type TypeBasicDatasetStorageFormat `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TextFormat. -func (tf TextFormat) MarshalJSON() ([]byte, error) { - tf.Type = TypeBasicDatasetStorageFormatTypeTextFormat - objectMap := make(map[string]interface{}) - if tf.ColumnDelimiter != nil { - objectMap["columnDelimiter"] = tf.ColumnDelimiter - } - if tf.RowDelimiter != nil { - objectMap["rowDelimiter"] = tf.RowDelimiter - } - if tf.EscapeChar != nil { - objectMap["escapeChar"] = tf.EscapeChar - } - if tf.QuoteChar != nil { - objectMap["quoteChar"] = tf.QuoteChar - } - if tf.NullValue != nil { - objectMap["nullValue"] = tf.NullValue - } - if tf.EncodingName != nil { - objectMap["encodingName"] = tf.EncodingName - } - if tf.TreatEmptyAsNull != nil { - objectMap["treatEmptyAsNull"] = tf.TreatEmptyAsNull - } - if tf.SkipLineCount != nil { - objectMap["skipLineCount"] = tf.SkipLineCount - } - if tf.FirstRowAsHeader != nil { - objectMap["firstRowAsHeader"] = tf.FirstRowAsHeader - } - if tf.Serializer != nil { - objectMap["serializer"] = tf.Serializer - } - if tf.Deserializer != nil { - objectMap["deserializer"] = tf.Deserializer - } - if tf.Type != "" { - objectMap["type"] = tf.Type - } - for k, v := range tf.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsParquetFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsParquetFormat() (*ParquetFormat, bool) { - return nil, false -} - -// AsOrcFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsOrcFormat() (*OrcFormat, bool) { - return nil, false -} - -// AsAvroFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsAvroFormat() (*AvroFormat, bool) { - return nil, false -} - -// AsJSONFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsJSONFormat() (*JSONFormat, bool) { - return nil, false -} - -// AsTextFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsTextFormat() (*TextFormat, bool) { - return &tf, true -} - -// AsDatasetStorageFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsDatasetStorageFormat() (*DatasetStorageFormat, bool) { - return nil, false -} - -// AsBasicDatasetStorageFormat is the BasicDatasetStorageFormat implementation for TextFormat. -func (tf TextFormat) AsBasicDatasetStorageFormat() (BasicDatasetStorageFormat, bool) { - return &tf, true -} - -// UnmarshalJSON is the custom unmarshaler for TextFormat struct. -func (tf *TextFormat) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "columnDelimiter": - if v != nil { - var columnDelimiter interface{} - err = json.Unmarshal(*v, &columnDelimiter) - if err != nil { - return err - } - tf.ColumnDelimiter = columnDelimiter - } - case "rowDelimiter": - if v != nil { - var rowDelimiter interface{} - err = json.Unmarshal(*v, &rowDelimiter) - if err != nil { - return err - } - tf.RowDelimiter = rowDelimiter - } - case "escapeChar": - if v != nil { - var escapeChar interface{} - err = json.Unmarshal(*v, &escapeChar) - if err != nil { - return err - } - tf.EscapeChar = escapeChar - } - case "quoteChar": - if v != nil { - var quoteChar interface{} - err = json.Unmarshal(*v, "eChar) - if err != nil { - return err - } - tf.QuoteChar = quoteChar - } - case "nullValue": - if v != nil { - var nullValue interface{} - err = json.Unmarshal(*v, &nullValue) - if err != nil { - return err - } - tf.NullValue = nullValue - } - case "encodingName": - if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) - if err != nil { - return err - } - tf.EncodingName = encodingName - } - case "treatEmptyAsNull": - if v != nil { - var treatEmptyAsNull interface{} - err = json.Unmarshal(*v, &treatEmptyAsNull) - if err != nil { - return err - } - tf.TreatEmptyAsNull = treatEmptyAsNull - } - case "skipLineCount": - if v != nil { - var skipLineCount interface{} - err = json.Unmarshal(*v, &skipLineCount) - if err != nil { - return err - } - tf.SkipLineCount = skipLineCount - } - case "firstRowAsHeader": - if v != nil { - var firstRowAsHeader interface{} - err = json.Unmarshal(*v, &firstRowAsHeader) - if err != nil { - return err - } - tf.FirstRowAsHeader = firstRowAsHeader - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if tf.AdditionalProperties == nil { - tf.AdditionalProperties = make(map[string]interface{}) - } - tf.AdditionalProperties[k] = additionalProperties - } - case "serializer": - if v != nil { - var serializer interface{} - err = json.Unmarshal(*v, &serializer) - if err != nil { - return err - } - tf.Serializer = serializer - } - case "deserializer": - if v != nil { - var deserializer interface{} - err = json.Unmarshal(*v, &deserializer) - if err != nil { - return err - } - tf.Deserializer = deserializer - } - case "type": - if v != nil { - var typeVar TypeBasicDatasetStorageFormat - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - tf.Type = typeVar - } - } - } - - return nil -} - -// Transformation a data flow transformation. -type Transformation struct { - // Name - Transformation name. - Name *string `json:"name,omitempty"` - // Description - Transformation description. - Description *string `json:"description,omitempty"` - // Dataset - Dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` - // LinkedService - Linked service reference. - LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` - // Flowlet - Flowlet Reference - Flowlet *DataFlowReference `json:"flowlet,omitempty"` -} - -// BasicTrigger azure data factory nested object which contains information about creating pipeline run -type BasicTrigger interface { - AsChainingTrigger() (*ChainingTrigger, bool) - AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) - AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) - AsCustomEventsTrigger() (*CustomEventsTrigger, bool) - AsBlobEventsTrigger() (*BlobEventsTrigger, bool) - AsBlobTrigger() (*BlobTrigger, bool) - AsScheduleTrigger() (*ScheduleTrigger, bool) - AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) - AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) - AsTrigger() (*Trigger, bool) -} - -// Trigger azure data factory nested object which contains information about creating pipeline run -type Trigger struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -func unmarshalBasicTrigger(body []byte) (BasicTrigger, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicTriggerTypeChainingTrigger): - var ct ChainingTrigger - err := json.Unmarshal(body, &ct) - return ct, err - case string(TypeBasicTriggerTypeRerunTumblingWindowTrigger): - var rtwt RerunTumblingWindowTrigger - err := json.Unmarshal(body, &rtwt) - return rtwt, err - case string(TypeBasicTriggerTypeTumblingWindowTrigger): - var twt TumblingWindowTrigger - err := json.Unmarshal(body, &twt) - return twt, err - case string(TypeBasicTriggerTypeCustomEventsTrigger): - var cet CustomEventsTrigger - err := json.Unmarshal(body, &cet) - return cet, err - case string(TypeBasicTriggerTypeBlobEventsTrigger): - var bet BlobEventsTrigger - err := json.Unmarshal(body, &bet) - return bet, err - case string(TypeBasicTriggerTypeBlobTrigger): - var bt BlobTrigger - err := json.Unmarshal(body, &bt) - return bt, err - case string(TypeBasicTriggerTypeScheduleTrigger): - var st ScheduleTrigger - err := json.Unmarshal(body, &st) - return st, err - case string(TypeBasicTriggerTypeMultiplePipelineTrigger): - var mpt MultiplePipelineTrigger - err := json.Unmarshal(body, &mpt) - return mpt, err - default: - var t Trigger - err := json.Unmarshal(body, &t) - return t, err - } -} -func unmarshalBasicTriggerArray(body []byte) ([]BasicTrigger, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - tArray := make([]BasicTrigger, len(rawMessages)) - - for index, rawMessage := range rawMessages { - t, err := unmarshalBasicTrigger(*rawMessage) - if err != nil { - return nil, err - } - tArray[index] = t - } - return tArray, nil -} - -// MarshalJSON is the custom marshaler for Trigger. -func (t Trigger) MarshalJSON() ([]byte, error) { - t.Type = TypeBasicTriggerTypeTrigger - objectMap := make(map[string]interface{}) - if t.Description != nil { - objectMap["description"] = t.Description - } - if t.Annotations != nil { - objectMap["annotations"] = t.Annotations - } - if t.Type != "" { - objectMap["type"] = t.Type - } - for k, v := range t.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return nil, false -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return nil, false -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return nil, false -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return nil, false -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return nil, false -} - -// AsBlobTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// AsScheduleTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return nil, false -} - -// AsTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsTrigger() (*Trigger, bool) { - return &t, true -} - -// AsBasicTrigger is the BasicTrigger implementation for Trigger. -func (t Trigger) AsBasicTrigger() (BasicTrigger, bool) { - return &t, true -} - -// UnmarshalJSON is the custom unmarshaler for Trigger struct. -func (t *Trigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if t.AdditionalProperties == nil { - t.AdditionalProperties = make(map[string]interface{}) - } - t.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - t.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - t.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - t.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - t.Type = typeVar - } - } - } - - return nil -} - -// BasicTriggerDependencyReference trigger referenced dependency. -type BasicTriggerDependencyReference interface { - AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) - AsTriggerDependencyReference() (*TriggerDependencyReference, bool) -} - -// TriggerDependencyReference trigger referenced dependency. -type TriggerDependencyReference struct { - // ReferenceTrigger - Referenced trigger. - ReferenceTrigger *TriggerReference `json:"referenceTrigger,omitempty"` - // Type - Possible values include: 'TypeBasicDependencyReferenceTypeDependencyReference', 'TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference', 'TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference', 'TypeBasicDependencyReferenceTypeTriggerDependencyReference' - Type TypeBasicDependencyReference `json:"type,omitempty"` -} - -func unmarshalBasicTriggerDependencyReference(body []byte) (BasicTriggerDependencyReference, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["type"] { - case string(TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference): - var twtdr TumblingWindowTriggerDependencyReference - err := json.Unmarshal(body, &twtdr) - return twtdr, err - default: - var tdr TriggerDependencyReference - err := json.Unmarshal(body, &tdr) - return tdr, err - } -} -func unmarshalBasicTriggerDependencyReferenceArray(body []byte) ([]BasicTriggerDependencyReference, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - tdrArray := make([]BasicTriggerDependencyReference, len(rawMessages)) - - for index, rawMessage := range rawMessages { - tdr, err := unmarshalBasicTriggerDependencyReference(*rawMessage) - if err != nil { - return nil, err - } - tdrArray[index] = tdr - } - return tdrArray, nil -} - -// MarshalJSON is the custom marshaler for TriggerDependencyReference. -func (tdr TriggerDependencyReference) MarshalJSON() ([]byte, error) { - tdr.Type = TypeBasicDependencyReferenceTypeTriggerDependencyReference - objectMap := make(map[string]interface{}) - if tdr.ReferenceTrigger != nil { - objectMap["referenceTrigger"] = tdr.ReferenceTrigger - } - if tdr.Type != "" { - objectMap["type"] = tdr.Type - } - return json.Marshal(objectMap) -} - -// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for TriggerDependencyReference. -func (tdr TriggerDependencyReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { - return nil, false -} - -// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. -func (tdr TriggerDependencyReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { - return nil, false -} - -// AsTriggerDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. -func (tdr TriggerDependencyReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { - return &tdr, true -} - -// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. -func (tdr TriggerDependencyReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { - return &tdr, true -} - -// AsDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. -func (tdr TriggerDependencyReference) AsDependencyReference() (*DependencyReference, bool) { - return nil, false -} - -// AsBasicDependencyReference is the BasicDependencyReference implementation for TriggerDependencyReference. -func (tdr TriggerDependencyReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { - return &tdr, true -} - -// TriggerFilterParameters query parameters for triggers. -type TriggerFilterParameters struct { - // ContinuationToken - The continuation token for getting the next page of results. Null for first page. - ContinuationToken *string `json:"continuationToken,omitempty"` - // ParentTriggerName - The name of the parent TumblingWindowTrigger to get the child rerun triggers - ParentTriggerName *string `json:"parentTriggerName,omitempty"` -} - -// TriggerListResponse a list of trigger resources. -type TriggerListResponse struct { - autorest.Response `json:"-"` - // Value - List of triggers. - Value *[]TriggerResource `json:"value,omitempty"` - // NextLink - The link to the next page of results, if any remaining results exist. - NextLink *string `json:"nextLink,omitempty"` -} - -// TriggerListResponseIterator provides access to a complete listing of TriggerResource values. -type TriggerListResponseIterator struct { - i int - page TriggerListResponsePage -} - -// NextWithContext advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -func (iter *TriggerListResponseIterator) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TriggerListResponseIterator.NextWithContext") - defer func() { - sc := -1 - if iter.Response().Response.Response != nil { - sc = iter.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - iter.i++ - if iter.i < len(iter.page.Values()) { - return nil - } - err = iter.page.NextWithContext(ctx) - if err != nil { - iter.i-- - return err - } - iter.i = 0 - return nil -} - -// Next advances to the next value. If there was an error making -// the request the iterator does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (iter *TriggerListResponseIterator) Next() error { - return iter.NextWithContext(context.Background()) -} - -// NotDone returns true if the enumeration should be started or is not yet complete. -func (iter TriggerListResponseIterator) NotDone() bool { - return iter.page.NotDone() && iter.i < len(iter.page.Values()) -} - -// Response returns the raw server response from the last page request. -func (iter TriggerListResponseIterator) Response() TriggerListResponse { - return iter.page.Response() -} - -// Value returns the current value or a zero-initialized value if the -// iterator has advanced beyond the end of the collection. -func (iter TriggerListResponseIterator) Value() TriggerResource { - if !iter.page.NotDone() { - return TriggerResource{} - } - return iter.page.Values()[iter.i] -} - -// Creates a new instance of the TriggerListResponseIterator type. -func NewTriggerListResponseIterator(page TriggerListResponsePage) TriggerListResponseIterator { - return TriggerListResponseIterator{page: page} -} - -// IsEmpty returns true if the ListResult contains no values. -func (tlr TriggerListResponse) IsEmpty() bool { - return tlr.Value == nil || len(*tlr.Value) == 0 -} - -// hasNextLink returns true if the NextLink is not empty. -func (tlr TriggerListResponse) hasNextLink() bool { - return tlr.NextLink != nil && len(*tlr.NextLink) != 0 -} - -// triggerListResponsePreparer prepares a request to retrieve the next set of results. -// It returns nil if no more results exist. -func (tlr TriggerListResponse) triggerListResponsePreparer(ctx context.Context) (*http.Request, error) { - if !tlr.hasNextLink() { - return nil, nil - } - return autorest.Prepare((&http.Request{}).WithContext(ctx), - autorest.AsJSON(), - autorest.AsGet(), - autorest.WithBaseURL(to.String(tlr.NextLink))) -} - -// TriggerListResponsePage contains a page of TriggerResource values. -type TriggerListResponsePage struct { - fn func(context.Context, TriggerListResponse) (TriggerListResponse, error) - tlr TriggerListResponse -} - -// NextWithContext advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -func (page *TriggerListResponsePage) NextWithContext(ctx context.Context) (err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/TriggerListResponsePage.NextWithContext") - defer func() { - sc := -1 - if page.Response().Response.Response != nil { - sc = page.Response().Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - for { - next, err := page.fn(ctx, page.tlr) - if err != nil { - return err - } - page.tlr = next - if !next.hasNextLink() || !next.IsEmpty() { - break - } - } - return nil -} - -// Next advances to the next page of values. If there was an error making -// the request the page does not advance and the error is returned. -// Deprecated: Use NextWithContext() instead. -func (page *TriggerListResponsePage) Next() error { - return page.NextWithContext(context.Background()) -} - -// NotDone returns true if the page enumeration should be started or is not yet complete. -func (page TriggerListResponsePage) NotDone() bool { - return !page.tlr.IsEmpty() -} - -// Response returns the raw server response from the last page request. -func (page TriggerListResponsePage) Response() TriggerListResponse { - return page.tlr -} - -// Values returns the slice of values for the current page or nil if there are no values. -func (page TriggerListResponsePage) Values() []TriggerResource { - if page.tlr.IsEmpty() { - return nil - } - return *page.tlr.Value -} - -// Creates a new instance of the TriggerListResponsePage type. -func NewTriggerListResponsePage(cur TriggerListResponse, getNextPage func(context.Context, TriggerListResponse) (TriggerListResponse, error)) TriggerListResponsePage { - return TriggerListResponsePage{ - fn: getNextPage, - tlr: cur, - } -} - -// TriggerPipelineReference pipeline that needs to be triggered with the given parameters. -type TriggerPipelineReference struct { - // PipelineReference - Pipeline reference. - PipelineReference *PipelineReference `json:"pipelineReference,omitempty"` - // Parameters - Pipeline parameters. - Parameters map[string]interface{} `json:"parameters"` -} - -// MarshalJSON is the custom marshaler for TriggerPipelineReference. -func (tpr TriggerPipelineReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if tpr.PipelineReference != nil { - objectMap["pipelineReference"] = tpr.PipelineReference - } - if tpr.Parameters != nil { - objectMap["parameters"] = tpr.Parameters - } - return json.Marshal(objectMap) -} - -// TriggerQueryResponse a query of triggers. -type TriggerQueryResponse struct { - autorest.Response `json:"-"` - // Value - List of triggers. - Value *[]TriggerResource `json:"value,omitempty"` - // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` -} - -// TriggerReference trigger reference type. -type TriggerReference struct { - // Type - Trigger reference type. - Type *string `json:"type,omitempty"` - // ReferenceName - Reference trigger name. - ReferenceName *string `json:"referenceName,omitempty"` -} - -// TriggerResource trigger resource type. -type TriggerResource struct { - autorest.Response `json:"-"` - // Properties - Properties of the trigger. - Properties BasicTrigger `json:"properties,omitempty"` - // ID - READ-ONLY; The resource identifier. - ID *string `json:"id,omitempty"` - // Name - READ-ONLY; The resource name. - Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The resource type. - Type *string `json:"type,omitempty"` - // Etag - READ-ONLY; Etag identifies change in the resource. - Etag *string `json:"etag,omitempty"` -} - -// MarshalJSON is the custom marshaler for TriggerResource. -func (tr TriggerResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["properties"] = tr.Properties - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for TriggerResource struct. -func (tr *TriggerResource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "properties": - if v != nil { - properties, err := unmarshalBasicTrigger(*v) - if err != nil { - return err - } - tr.Properties = properties - } - case "id": - if v != nil { - var ID string - err = json.Unmarshal(*v, &ID) - if err != nil { - return err - } - tr.ID = &ID - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - tr.Name = &name - } - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - tr.Type = &typeVar - } - case "etag": - if v != nil { - var etag string - err = json.Unmarshal(*v, &etag) - if err != nil { - return err - } - tr.Etag = &etag - } - } - } - - return nil -} - -// TriggerRun trigger runs. -type TriggerRun struct { - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // TriggerRunID - READ-ONLY; Trigger run id. - TriggerRunID *string `json:"triggerRunId,omitempty"` - // TriggerName - READ-ONLY; Trigger name. - TriggerName *string `json:"triggerName,omitempty"` - // TriggerType - READ-ONLY; Trigger type. - TriggerType *string `json:"triggerType,omitempty"` - // TriggerRunTimestamp - READ-ONLY; Trigger run start time. - TriggerRunTimestamp *date.Time `json:"triggerRunTimestamp,omitempty"` - // Status - READ-ONLY; Trigger run status. Possible values include: 'TriggerRunStatusSucceeded', 'TriggerRunStatusFailed', 'TriggerRunStatusInprogress' - Status TriggerRunStatus `json:"status,omitempty"` - // Message - READ-ONLY; Trigger error message. - Message *string `json:"message,omitempty"` - // Properties - 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"` - // TriggeredPipelines - READ-ONLY; List of pipeline name and run Id triggered by the trigger run. - TriggeredPipelines map[string]*string `json:"triggeredPipelines"` - // RunDimension - READ-ONLY; Run dimension for which trigger was fired. - RunDimension map[string]*string `json:"runDimension"` - // DependencyStatus - READ-ONLY; Status of the upstream pipelines. - DependencyStatus map[string]interface{} `json:"dependencyStatus"` -} - -// MarshalJSON is the custom marshaler for TriggerRun. -func (tr TriggerRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - for k, v := range tr.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON is the custom unmarshaler for TriggerRun struct. -func (tr *TriggerRun) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if tr.AdditionalProperties == nil { - tr.AdditionalProperties = make(map[string]interface{}) - } - tr.AdditionalProperties[k] = additionalProperties - } - case "triggerRunId": - if v != nil { - var triggerRunID string - err = json.Unmarshal(*v, &triggerRunID) - if err != nil { - return err - } - tr.TriggerRunID = &triggerRunID - } - case "triggerName": - if v != nil { - var triggerName string - err = json.Unmarshal(*v, &triggerName) - if err != nil { - return err - } - tr.TriggerName = &triggerName - } - case "triggerType": - if v != nil { - var triggerType string - err = json.Unmarshal(*v, &triggerType) - if err != nil { - return err - } - tr.TriggerType = &triggerType - } - case "triggerRunTimestamp": - if v != nil { - var triggerRunTimestamp date.Time - err = json.Unmarshal(*v, &triggerRunTimestamp) - if err != nil { - return err - } - tr.TriggerRunTimestamp = &triggerRunTimestamp - } - case "status": - if v != nil { - var status TriggerRunStatus - err = json.Unmarshal(*v, &status) - if err != nil { - return err - } - tr.Status = status - } - case "message": - if v != nil { - var message string - err = json.Unmarshal(*v, &message) - if err != nil { - return err - } - tr.Message = &message - } - case "properties": - if v != nil { - var properties map[string]*string - err = json.Unmarshal(*v, &properties) - if err != nil { - return err - } - tr.Properties = properties - } - case "triggeredPipelines": - if v != nil { - var triggeredPipelines map[string]*string - err = json.Unmarshal(*v, &triggeredPipelines) - if err != nil { - return err - } - tr.TriggeredPipelines = triggeredPipelines - } - case "runDimension": - if v != nil { - var runDimension map[string]*string - err = json.Unmarshal(*v, &runDimension) - if err != nil { - return err - } - tr.RunDimension = runDimension - } - case "dependencyStatus": - if v != nil { - var dependencyStatus map[string]interface{} - err = json.Unmarshal(*v, &dependencyStatus) - if err != nil { - return err - } - tr.DependencyStatus = dependencyStatus - } - } - } - - return nil -} - -// TriggerRunsQueryResponse a list of trigger runs. -type TriggerRunsQueryResponse struct { - autorest.Response `json:"-"` - // Value - List of trigger runs. - Value *[]TriggerRun `json:"value,omitempty"` - // ContinuationToken - The continuation token for getting the next page of results, if any remaining results exist, null otherwise. - ContinuationToken *string `json:"continuationToken,omitempty"` -} - -// TriggerSubscriptionOperationStatus defines the response of a trigger subscription operation. -type TriggerSubscriptionOperationStatus struct { - autorest.Response `json:"-"` - // TriggerName - READ-ONLY; Trigger name. - TriggerName *string `json:"triggerName,omitempty"` - // Status - READ-ONLY; Event Subscription Status. Possible values include: 'EventSubscriptionStatusEnabled', 'EventSubscriptionStatusProvisioning', 'EventSubscriptionStatusDeprovisioning', 'EventSubscriptionStatusDisabled', 'EventSubscriptionStatusUnknown' - Status EventSubscriptionStatus `json:"status,omitempty"` -} - -// MarshalJSON is the custom marshaler for TriggerSubscriptionOperationStatus. -func (tsos TriggerSubscriptionOperationStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - return json.Marshal(objectMap) -} - -// TriggersStartFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. -type TriggersStartFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(TriggersClient) (autorest.Response, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *TriggersStartFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for TriggersStartFuture.Result. -func (future *TriggersStartFuture) result(client TriggersClient) (ar autorest.Response, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStartFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - ar.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.TriggersStartFuture") - return - } - ar.Response = future.Response() - return -} - -// TriggersStopFuture an abstraction for monitoring and retrieving the results of a long-running operation. -type TriggersStopFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(TriggersClient) (autorest.Response, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *TriggersStopFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for TriggersStopFuture.Result. -func (future *TriggersStopFuture) result(client TriggersClient) (ar autorest.Response, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersStopFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - ar.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.TriggersStopFuture") - return - } - ar.Response = future.Response() - return -} - -// TriggersSubscribeToEventsFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type TriggersSubscribeToEventsFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(TriggersClient) (TriggerSubscriptionOperationStatus, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *TriggersSubscribeToEventsFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for TriggersSubscribeToEventsFuture.Result. -func (future *TriggersSubscribeToEventsFuture) result(client TriggersClient) (tsos TriggerSubscriptionOperationStatus, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersSubscribeToEventsFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - tsos.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.TriggersSubscribeToEventsFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if tsos.Response.Response, err = future.GetResult(sender); err == nil && tsos.Response.Response.StatusCode != http.StatusNoContent { - tsos, err = client.SubscribeToEventsResponder(tsos.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersSubscribeToEventsFuture", "Result", tsos.Response.Response, "Failure responding to request") - } - } - return -} - -// TriggersUnsubscribeFromEventsFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. -type TriggersUnsubscribeFromEventsFuture struct { - azure.FutureAPI - // Result returns the result of the asynchronous operation. - // If the operation has not completed it will return an error. - Result func(TriggersClient) (TriggerSubscriptionOperationStatus, error) -} - -// UnmarshalJSON is the custom unmarshaller for CreateFuture. -func (future *TriggersUnsubscribeFromEventsFuture) UnmarshalJSON(body []byte) error { - var azFuture azure.Future - if err := json.Unmarshal(body, &azFuture); err != nil { - return err - } - future.FutureAPI = &azFuture - future.Result = future.result - return nil -} - -// result is the default implementation for TriggersUnsubscribeFromEventsFuture.Result. -func (future *TriggersUnsubscribeFromEventsFuture) result(client TriggersClient) (tsos TriggerSubscriptionOperationStatus, err error) { - var done bool - done, err = future.DoneWithContext(context.Background(), client) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersUnsubscribeFromEventsFuture", "Result", future.Response(), "Polling failure") - return - } - if !done { - tsos.Response.Response = future.Response() - err = azure.NewAsyncOpIncompleteError("datafactory.TriggersUnsubscribeFromEventsFuture") - return - } - sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - if tsos.Response.Response, err = future.GetResult(sender); err == nil && tsos.Response.Response.StatusCode != http.StatusNoContent { - tsos, err = client.UnsubscribeFromEventsResponder(tsos.Response.Response) - if err != nil { - err = autorest.NewErrorWithError(err, "datafactory.TriggersUnsubscribeFromEventsFuture", "Result", tsos.Response.Response, "Failure responding to request") - } - } - return -} - -// 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 { - // Pipeline - Pipeline for which runs are created when an event is fired for trigger window that is ready. - Pipeline *TriggerPipelineReference `json:"pipeline,omitempty"` - // TumblingWindowTriggerTypeProperties - Tumbling Window Trigger properties. - *TumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Trigger description. - Description *string `json:"description,omitempty"` - // RuntimeState - READ-ONLY; Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. Possible values include: 'TriggerRuntimeStateStarted', 'TriggerRuntimeStateStopped', 'TriggerRuntimeStateDisabled' - RuntimeState TriggerRuntimeState `json:"runtimeState,omitempty"` - // Annotations - List of tags that can be used for describing the trigger. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicTriggerTypeTrigger', 'TypeBasicTriggerTypeChainingTrigger', 'TypeBasicTriggerTypeRerunTumblingWindowTrigger', 'TypeBasicTriggerTypeTumblingWindowTrigger', 'TypeBasicTriggerTypeCustomEventsTrigger', 'TypeBasicTriggerTypeBlobEventsTrigger', 'TypeBasicTriggerTypeBlobTrigger', 'TypeBasicTriggerTypeScheduleTrigger', 'TypeBasicTriggerTypeMultiplePipelineTrigger' - Type TypeBasicTrigger `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) MarshalJSON() ([]byte, error) { - twt.Type = TypeBasicTriggerTypeTumblingWindowTrigger - objectMap := make(map[string]interface{}) - if twt.Pipeline != nil { - objectMap["pipeline"] = twt.Pipeline - } - if twt.TumblingWindowTriggerTypeProperties != nil { - objectMap["typeProperties"] = twt.TumblingWindowTriggerTypeProperties - } - if twt.Description != nil { - objectMap["description"] = twt.Description - } - if twt.Annotations != nil { - objectMap["annotations"] = twt.Annotations - } - if twt.Type != "" { - objectMap["type"] = twt.Type - } - for k, v := range twt.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsChainingTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsChainingTrigger() (*ChainingTrigger, bool) { - return nil, false -} - -// AsRerunTumblingWindowTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsRerunTumblingWindowTrigger() (*RerunTumblingWindowTrigger, bool) { - return nil, false -} - -// AsTumblingWindowTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsTumblingWindowTrigger() (*TumblingWindowTrigger, bool) { - return &twt, true -} - -// AsCustomEventsTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsCustomEventsTrigger() (*CustomEventsTrigger, bool) { - return nil, false -} - -// AsBlobEventsTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsBlobEventsTrigger() (*BlobEventsTrigger, bool) { - return nil, false -} - -// AsBlobTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsBlobTrigger() (*BlobTrigger, bool) { - return nil, false -} - -// AsScheduleTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsScheduleTrigger() (*ScheduleTrigger, bool) { - return nil, false -} - -// AsMultiplePipelineTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsMultiplePipelineTrigger() (*MultiplePipelineTrigger, bool) { - return nil, false -} - -// AsBasicMultiplePipelineTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsBasicMultiplePipelineTrigger() (BasicMultiplePipelineTrigger, bool) { - return nil, false -} - -// AsTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsTrigger() (*Trigger, bool) { - return nil, false -} - -// AsBasicTrigger is the BasicTrigger implementation for TumblingWindowTrigger. -func (twt TumblingWindowTrigger) AsBasicTrigger() (BasicTrigger, bool) { - return &twt, true -} - -// UnmarshalJSON is the custom unmarshaler for TumblingWindowTrigger struct. -func (twt *TumblingWindowTrigger) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "pipeline": - if v != nil { - var pipeline TriggerPipelineReference - err = json.Unmarshal(*v, &pipeline) - if err != nil { - return err - } - twt.Pipeline = &pipeline - } - case "typeProperties": - if v != nil { - var tumblingWindowTriggerTypeProperties TumblingWindowTriggerTypeProperties - err = json.Unmarshal(*v, &tumblingWindowTriggerTypeProperties) - if err != nil { - return err - } - twt.TumblingWindowTriggerTypeProperties = &tumblingWindowTriggerTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if twt.AdditionalProperties == nil { - twt.AdditionalProperties = make(map[string]interface{}) - } - twt.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - twt.Description = &description - } - case "runtimeState": - if v != nil { - var runtimeState TriggerRuntimeState - err = json.Unmarshal(*v, &runtimeState) - if err != nil { - return err - } - twt.RuntimeState = runtimeState - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - twt.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicTrigger - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - twt.Type = typeVar - } - } - } - - return nil -} - -// TumblingWindowTriggerDependencyReference referenced tumbling window trigger dependency. -type TumblingWindowTriggerDependencyReference struct { - // Offset - Timespan applied to the start time of a tumbling window when evaluating dependency. - Offset *string `json:"offset,omitempty"` - // Size - 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"` - // ReferenceTrigger - Referenced trigger. - ReferenceTrigger *TriggerReference `json:"referenceTrigger,omitempty"` - // Type - Possible values include: 'TypeBasicDependencyReferenceTypeDependencyReference', 'TypeBasicDependencyReferenceTypeSelfDependencyTumblingWindowTriggerReference', 'TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference', 'TypeBasicDependencyReferenceTypeTriggerDependencyReference' - Type TypeBasicDependencyReference `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TumblingWindowTriggerDependencyReference. -func (twtdr TumblingWindowTriggerDependencyReference) MarshalJSON() ([]byte, error) { - twtdr.Type = TypeBasicDependencyReferenceTypeTumblingWindowTriggerDependencyReference - objectMap := make(map[string]interface{}) - if twtdr.Offset != nil { - objectMap["offset"] = twtdr.Offset - } - if twtdr.Size != nil { - objectMap["size"] = twtdr.Size - } - if twtdr.ReferenceTrigger != nil { - objectMap["referenceTrigger"] = twtdr.ReferenceTrigger - } - if twtdr.Type != "" { - objectMap["type"] = twtdr.Type - } - return json.Marshal(objectMap) -} - -// AsSelfDependencyTumblingWindowTriggerReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. -func (twtdr TumblingWindowTriggerDependencyReference) AsSelfDependencyTumblingWindowTriggerReference() (*SelfDependencyTumblingWindowTriggerReference, bool) { - return nil, false -} - -// AsTumblingWindowTriggerDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. -func (twtdr TumblingWindowTriggerDependencyReference) AsTumblingWindowTriggerDependencyReference() (*TumblingWindowTriggerDependencyReference, bool) { - return &twtdr, true -} - -// AsTriggerDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. -func (twtdr TumblingWindowTriggerDependencyReference) AsTriggerDependencyReference() (*TriggerDependencyReference, bool) { - return nil, false -} - -// AsBasicTriggerDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. -func (twtdr TumblingWindowTriggerDependencyReference) AsBasicTriggerDependencyReference() (BasicTriggerDependencyReference, bool) { - return &twtdr, true -} - -// AsDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. -func (twtdr TumblingWindowTriggerDependencyReference) AsDependencyReference() (*DependencyReference, bool) { - return nil, false -} - -// AsBasicDependencyReference is the BasicDependencyReference implementation for TumblingWindowTriggerDependencyReference. -func (twtdr TumblingWindowTriggerDependencyReference) AsBasicDependencyReference() (BasicDependencyReference, bool) { - return &twtdr, true -} - -// TumblingWindowTriggerTypeProperties tumbling Window Trigger properties. -type TumblingWindowTriggerTypeProperties struct { - // Frequency - The frequency of the time windows. Possible values include: 'TumblingWindowFrequencyMinute', 'TumblingWindowFrequencyHour', 'TumblingWindowFrequencyMonth' - Frequency TumblingWindowFrequency `json:"frequency,omitempty"` - // Interval - The interval of the time windows. The minimum interval allowed is 15 Minutes. - Interval *int32 `json:"interval,omitempty"` - // StartTime - 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 *date.Time `json:"startTime,omitempty"` - // EndTime - 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 *date.Time `json:"endTime,omitempty"` - // Delay - 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"` - // MaxConcurrency - The max number of parallel time windows (ready for execution) for which a new run is triggered. - MaxConcurrency *int32 `json:"maxConcurrency,omitempty"` - // RetryPolicy - Retry policy that will be applied for failed pipeline runs. - RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` - // DependsOn - Triggers that this trigger depends on. Only tumbling window triggers are supported. - DependsOn *[]BasicDependencyReference `json:"dependsOn,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for TumblingWindowTriggerTypeProperties struct. -func (twtP *TumblingWindowTriggerTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "frequency": - if v != nil { - var frequency TumblingWindowFrequency - err = json.Unmarshal(*v, &frequency) - if err != nil { - return err - } - twtP.Frequency = frequency - } - case "interval": - if v != nil { - var interval int32 - err = json.Unmarshal(*v, &interval) - if err != nil { - return err - } - twtP.Interval = &interval - } - case "startTime": - if v != nil { - var startTime date.Time - err = json.Unmarshal(*v, &startTime) - if err != nil { - return err - } - twtP.StartTime = &startTime - } - case "endTime": - if v != nil { - var endTime date.Time - err = json.Unmarshal(*v, &endTime) - if err != nil { - return err - } - twtP.EndTime = &endTime - } - case "delay": - if v != nil { - var delay interface{} - err = json.Unmarshal(*v, &delay) - if err != nil { - return err - } - twtP.Delay = delay - } - case "maxConcurrency": - if v != nil { - var maxConcurrency int32 - err = json.Unmarshal(*v, &maxConcurrency) - if err != nil { - return err - } - twtP.MaxConcurrency = &maxConcurrency - } - case "retryPolicy": - if v != nil { - var retryPolicy RetryPolicy - err = json.Unmarshal(*v, &retryPolicy) - if err != nil { - return err - } - twtP.RetryPolicy = &retryPolicy - } - case "dependsOn": - if v != nil { - dependsOn, err := unmarshalBasicDependencyReferenceArray(*v) - if err != nil { - return err - } - twtP.DependsOn = &dependsOn - } - } - } - - return nil -} - -// TwilioLinkedService linked service for Twilio. -type TwilioLinkedService struct { - // TwilioLinkedServiceTypeProperties - Twilio linked service properties. - *TwilioLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for TwilioLinkedService. -func (TLSVar TwilioLinkedService) MarshalJSON() ([]byte, error) { - TLSVar.Type = TypeBasicLinkedServiceTypeTwilio - objectMap := make(map[string]interface{}) - if TLSVar.TwilioLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = TLSVar.TwilioLinkedServiceTypeProperties - } - if TLSVar.ConnectVia != nil { - objectMap["connectVia"] = TLSVar.ConnectVia - } - if TLSVar.Description != nil { - objectMap["description"] = TLSVar.Description - } - if TLSVar.Parameters != nil { - objectMap["parameters"] = TLSVar.Parameters - } - if TLSVar.Annotations != nil { - objectMap["annotations"] = TLSVar.Annotations - } - if TLSVar.Type != "" { - objectMap["type"] = TLSVar.Type - } - for k, v := range TLSVar.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return &TLSVar, true -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for TwilioLinkedService. -func (TLSVar TwilioLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &TLSVar, true -} - -// UnmarshalJSON is the custom unmarshaler for TwilioLinkedService struct. -func (TLSVar *TwilioLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var twilioLinkedServiceTypeProperties TwilioLinkedServiceTypeProperties - err = json.Unmarshal(*v, &twilioLinkedServiceTypeProperties) - if err != nil { - return err - } - TLSVar.TwilioLinkedServiceTypeProperties = &twilioLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if TLSVar.AdditionalProperties == nil { - TLSVar.AdditionalProperties = make(map[string]interface{}) - } - TLSVar.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - TLSVar.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - TLSVar.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - TLSVar.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - TLSVar.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - TLSVar.Type = typeVar - } - } - } - - return nil -} - -// TwilioLinkedServiceTypeProperties twilio linked service type properties. -type TwilioLinkedServiceTypeProperties struct { - // UserName - The Account SID of Twilio service. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The auth token of Twilio service. - Password BasicSecretBase `json:"password,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for TwilioLinkedServiceTypeProperties struct. -func (tlstp *TwilioLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - tlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - tlstp.Password = password - } - } - } - - return nil -} - -// TypeConversionSettings type conversion settings -type TypeConversionSettings struct { - // AllowDataTruncation - Whether to allow data truncation when converting the data. Type: boolean (or Expression with resultType boolean). - AllowDataTruncation interface{} `json:"allowDataTruncation,omitempty"` - // TreatBooleanAsNumber - Whether to treat boolean values as numbers. Type: boolean (or Expression with resultType boolean). - TreatBooleanAsNumber interface{} `json:"treatBooleanAsNumber,omitempty"` - // DateTimeFormat - The format for DateTime values. Type: string (or Expression with resultType string). - DateTimeFormat interface{} `json:"dateTimeFormat,omitempty"` - // DateTimeOffsetFormat - The format for DateTimeOffset values. Type: string (or Expression with resultType string). - DateTimeOffsetFormat interface{} `json:"dateTimeOffsetFormat,omitempty"` - // TimeSpanFormat - The format for TimeSpan values. Type: string (or Expression with resultType string). - TimeSpanFormat interface{} `json:"timeSpanFormat,omitempty"` - // Culture - The culture used to convert data from/to string. Type: string (or Expression with resultType string). - Culture interface{} `json:"culture,omitempty"` -} - -// UntilActivity this activity executes inner activities until the specified boolean expression results to -// true or timeout is reached, whichever is earlier. -type UntilActivity struct { - // UntilActivityTypeProperties - Until activity properties. - *UntilActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for UntilActivity. -func (ua UntilActivity) MarshalJSON() ([]byte, error) { - ua.Type = TypeBasicActivityTypeUntil - objectMap := make(map[string]interface{}) - if ua.UntilActivityTypeProperties != nil { - objectMap["typeProperties"] = ua.UntilActivityTypeProperties - } - if ua.Name != nil { - objectMap["name"] = ua.Name - } - if ua.Description != nil { - objectMap["description"] = ua.Description - } - if ua.State != "" { - objectMap["state"] = ua.State - } - if ua.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = ua.OnInactiveMarkAs - } - if ua.DependsOn != nil { - objectMap["dependsOn"] = ua.DependsOn - } - if ua.UserProperties != nil { - objectMap["userProperties"] = ua.UserProperties - } - if ua.Type != "" { - objectMap["type"] = ua.Type - } - for k, v := range ua.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsUntilActivity() (*UntilActivity, bool) { - return &ua, true -} - -// AsFailActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &ua, true -} - -// AsActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for UntilActivity. -func (ua UntilActivity) AsBasicActivity() (BasicActivity, bool) { - return &ua, true -} - -// UnmarshalJSON is the custom unmarshaler for UntilActivity struct. -func (ua *UntilActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var untilActivityTypeProperties UntilActivityTypeProperties - err = json.Unmarshal(*v, &untilActivityTypeProperties) - if err != nil { - return err - } - ua.UntilActivityTypeProperties = &untilActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ua.AdditionalProperties == nil { - ua.AdditionalProperties = make(map[string]interface{}) - } - ua.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - ua.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - ua.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - ua.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - ua.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - ua.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - ua.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ua.Type = typeVar - } - } - } - - return nil -} - -// UntilActivityTypeProperties until activity properties. -type UntilActivityTypeProperties struct { - // Expression - An expression that would evaluate to Boolean. The loop will continue until this expression evaluates to true - Expression *Expression `json:"expression,omitempty"` - // Timeout - 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"` - // Activities - List of activities to execute. - Activities *[]BasicActivity `json:"activities,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for UntilActivityTypeProperties struct. -func (uatp *UntilActivityTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "expression": - if v != nil { - var expression Expression - err = json.Unmarshal(*v, &expression) - if err != nil { - return err - } - uatp.Expression = &expression - } - case "timeout": - if v != nil { - var timeout interface{} - err = json.Unmarshal(*v, &timeout) - if err != nil { - return err - } - uatp.Timeout = timeout - } - case "activities": - if v != nil { - activities, err := unmarshalBasicActivityArray(*v) - if err != nil { - return err - } - uatp.Activities = &activities - } - } - } - - return nil -} - -// UpdateIntegrationRuntimeNodeRequest update integration runtime node request. -type UpdateIntegrationRuntimeNodeRequest struct { - // ConcurrentJobsLimit - 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"` -} - -// UpdateIntegrationRuntimeRequest update integration runtime request. -type UpdateIntegrationRuntimeRequest struct { - // AutoUpdate - Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: 'IntegrationRuntimeAutoUpdateOn', 'IntegrationRuntimeAutoUpdateOff' - AutoUpdate IntegrationRuntimeAutoUpdate `json:"autoUpdate,omitempty"` - // UpdateDelayOffset - 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"` -} - -// UserAccessPolicy get Data Plane read only token request definition. -type UserAccessPolicy struct { - // Permissions - The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access. - Permissions *string `json:"permissions,omitempty"` - // AccessResourcePath - 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"` - // ProfileName - The name of the profile. Currently only the default is supported. The default value is DefaultProfile. - ProfileName *string `json:"profileName,omitempty"` - // StartTime - Start time for the token. If not specified the current time will be used. - StartTime *string `json:"startTime,omitempty"` - // ExpireTime - 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"` -} - -// UserProperty user property. -type UserProperty struct { - // Name - User property name. - Name *string `json:"name,omitempty"` - // Value - User property value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` -} - -// ValidationActivity this activity verifies that an external resource exists. -type ValidationActivity struct { - // ValidationActivityTypeProperties - Validation activity properties. - *ValidationActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ValidationActivity. -func (va ValidationActivity) MarshalJSON() ([]byte, error) { - va.Type = TypeBasicActivityTypeValidation - objectMap := make(map[string]interface{}) - if va.ValidationActivityTypeProperties != nil { - objectMap["typeProperties"] = va.ValidationActivityTypeProperties - } - if va.Name != nil { - objectMap["name"] = va.Name - } - if va.Description != nil { - objectMap["description"] = va.Description - } - if va.State != "" { - objectMap["state"] = va.State - } - if va.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = va.OnInactiveMarkAs - } - if va.DependsOn != nil { - objectMap["dependsOn"] = va.DependsOn - } - if va.UserProperties != nil { - objectMap["userProperties"] = va.UserProperties - } - if va.Type != "" { - objectMap["type"] = va.Type - } - for k, v := range va.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsValidationActivity() (*ValidationActivity, bool) { - return &va, true -} - -// AsUntilActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &va, true -} - -// AsActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for ValidationActivity. -func (va ValidationActivity) AsBasicActivity() (BasicActivity, bool) { - return &va, true -} - -// UnmarshalJSON is the custom unmarshaler for ValidationActivity struct. -func (va *ValidationActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var validationActivityTypeProperties ValidationActivityTypeProperties - err = json.Unmarshal(*v, &validationActivityTypeProperties) - if err != nil { - return err - } - va.ValidationActivityTypeProperties = &validationActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if va.AdditionalProperties == nil { - va.AdditionalProperties = make(map[string]interface{}) - } - va.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - va.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - va.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - va.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - va.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - va.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - va.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - va.Type = typeVar - } - } - } - - return nil -} - -// ValidationActivityTypeProperties validation activity properties. -type ValidationActivityTypeProperties struct { - // Timeout - 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"` - // Sleep - 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"` - // MinimumSize - 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"` - // ChildItems - 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"` - // Dataset - Validation activity dataset reference. - Dataset *DatasetReference `json:"dataset,omitempty"` -} - -// VariableSpecification definition of a single variable for a Pipeline. -type VariableSpecification struct { - // Type - Variable type. Possible values include: 'VariableTypeString', 'VariableTypeBool', 'VariableTypeArray' - Type VariableType `json:"type,omitempty"` - // DefaultValue - Default value of variable. - DefaultValue interface{} `json:"defaultValue,omitempty"` -} - -// VerticaDatasetTypeProperties vertica Properties -type VerticaDatasetTypeProperties struct { - // TableName - This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` - // Table - The table name of the Vertica. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` - // Schema - The schema name of the Vertica. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` -} - -// VerticaLinkedService vertica linked service. -type VerticaLinkedService struct { - // VerticaLinkedServiceTypeProperties - Vertica linked service properties. - *VerticaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for VerticaLinkedService. -func (vls VerticaLinkedService) MarshalJSON() ([]byte, error) { - vls.Type = TypeBasicLinkedServiceTypeVertica - objectMap := make(map[string]interface{}) - if vls.VerticaLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = vls.VerticaLinkedServiceTypeProperties - } - if vls.ConnectVia != nil { - objectMap["connectVia"] = vls.ConnectVia - } - if vls.Description != nil { - objectMap["description"] = vls.Description - } - if vls.Parameters != nil { - objectMap["parameters"] = vls.Parameters - } - if vls.Annotations != nil { - objectMap["annotations"] = vls.Annotations - } - if vls.Type != "" { - objectMap["type"] = vls.Type - } - for k, v := range vls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return &vls, true -} - -// AsZohoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for VerticaLinkedService. -func (vls VerticaLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &vls, true -} - -// UnmarshalJSON is the custom unmarshaler for VerticaLinkedService struct. -func (vls *VerticaLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var verticaLinkedServiceTypeProperties VerticaLinkedServiceTypeProperties - err = json.Unmarshal(*v, &verticaLinkedServiceTypeProperties) - if err != nil { - return err - } - vls.VerticaLinkedServiceTypeProperties = &verticaLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if vls.AdditionalProperties == nil { - vls.AdditionalProperties = make(map[string]interface{}) - } - vls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - vls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - vls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - vls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - vls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - vls.Type = typeVar - } - } - } - - return nil -} - -// VerticaLinkedServiceTypeProperties vertica linked service properties. -type VerticaLinkedServiceTypeProperties struct { - // ConnectionString - An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` - // Pwd - The Azure key vault secret reference of password in connection string. - Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// VerticaSource a copy activity Vertica source. -type VerticaSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for VerticaSource. -func (vs VerticaSource) MarshalJSON() ([]byte, error) { - vs.Type = TypeBasicCopySourceTypeVerticaSource - objectMap := make(map[string]interface{}) - if vs.Query != nil { - objectMap["query"] = vs.Query - } - if vs.QueryTimeout != nil { - objectMap["queryTimeout"] = vs.QueryTimeout - } - if vs.AdditionalColumns != nil { - objectMap["additionalColumns"] = vs.AdditionalColumns - } - if vs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = vs.SourceRetryCount - } - if vs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = vs.SourceRetryWait - } - if vs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = vs.MaxConcurrentConnections - } - if vs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = vs.DisableMetricsCollection - } - if vs.Type != "" { - objectMap["type"] = vs.Type - } - for k, v := range vs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsVerticaSource() (*VerticaSource, bool) { - return &vs, true -} - -// AsNetezzaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &vs, true -} - -// AsBinarySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for VerticaSource. -func (vs VerticaSource) AsBasicCopySource() (BasicCopySource, bool) { - return &vs, true -} - -// UnmarshalJSON is the custom unmarshaler for VerticaSource struct. -func (vs *VerticaSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - vs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - vs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - vs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if vs.AdditionalProperties == nil { - vs.AdditionalProperties = make(map[string]interface{}) - } - vs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - vs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - vs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - vs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - vs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - vs.Type = typeVar - } - } - } - - return nil -} - -// VerticaTableDataset vertica dataset. -type VerticaTableDataset struct { - // VerticaDatasetTypeProperties - Properties specific to this dataset type. - *VerticaDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for VerticaTableDataset. -func (vtd VerticaTableDataset) MarshalJSON() ([]byte, error) { - vtd.Type = TypeBasicDatasetTypeVerticaTable - objectMap := make(map[string]interface{}) - if vtd.VerticaDatasetTypeProperties != nil { - objectMap["typeProperties"] = vtd.VerticaDatasetTypeProperties - } - if vtd.Description != nil { - objectMap["description"] = vtd.Description - } - if vtd.Structure != nil { - objectMap["structure"] = vtd.Structure - } - if vtd.Schema != nil { - objectMap["schema"] = vtd.Schema - } - if vtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = vtd.LinkedServiceName - } - if vtd.Parameters != nil { - objectMap["parameters"] = vtd.Parameters - } - if vtd.Annotations != nil { - objectMap["annotations"] = vtd.Annotations - } - if vtd.Folder != nil { - objectMap["folder"] = vtd.Folder - } - if vtd.Type != "" { - objectMap["type"] = vtd.Type - } - for k, v := range vtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return &vtd, true -} - -// AsNetezzaTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for VerticaTableDataset. -func (vtd VerticaTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &vtd, true -} - -// UnmarshalJSON is the custom unmarshaler for VerticaTableDataset struct. -func (vtd *VerticaTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var verticaDatasetTypeProperties VerticaDatasetTypeProperties - err = json.Unmarshal(*v, &verticaDatasetTypeProperties) - if err != nil { - return err - } - vtd.VerticaDatasetTypeProperties = &verticaDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if vtd.AdditionalProperties == nil { - vtd.AdditionalProperties = make(map[string]interface{}) - } - vtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - vtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - vtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - vtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - vtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - vtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - vtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - vtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - vtd.Type = typeVar - } - } - } - - return nil -} - -// WaitActivity this activity suspends pipeline execution for the specified interval. -type WaitActivity struct { - // WaitActivityTypeProperties - Wait activity properties. - *WaitActivityTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WaitActivity. -func (wa WaitActivity) MarshalJSON() ([]byte, error) { - wa.Type = TypeBasicActivityTypeWait - objectMap := make(map[string]interface{}) - if wa.WaitActivityTypeProperties != nil { - objectMap["typeProperties"] = wa.WaitActivityTypeProperties - } - if wa.Name != nil { - objectMap["name"] = wa.Name - } - if wa.Description != nil { - objectMap["description"] = wa.Description - } - if wa.State != "" { - objectMap["state"] = wa.State - } - if wa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = wa.OnInactiveMarkAs - } - if wa.DependsOn != nil { - objectMap["dependsOn"] = wa.DependsOn - } - if wa.UserProperties != nil { - objectMap["userProperties"] = wa.UserProperties - } - if wa.Type != "" { - objectMap["type"] = wa.Type - } - for k, v := range wa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsWaitActivity() (*WaitActivity, bool) { - return &wa, true -} - -// AsForEachActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &wa, true -} - -// AsActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for WaitActivity. -func (wa WaitActivity) AsBasicActivity() (BasicActivity, bool) { - return &wa, true -} - -// UnmarshalJSON is the custom unmarshaler for WaitActivity struct. -func (wa *WaitActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var waitActivityTypeProperties WaitActivityTypeProperties - err = json.Unmarshal(*v, &waitActivityTypeProperties) - if err != nil { - return err - } - wa.WaitActivityTypeProperties = &waitActivityTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wa.AdditionalProperties == nil { - wa.AdditionalProperties = make(map[string]interface{}) - } - wa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - wa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - wa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - wa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - wa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - wa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wa.Type = typeVar - } - } - } - - return nil -} - -// WaitActivityTypeProperties wait activity properties. -type WaitActivityTypeProperties struct { - // WaitTimeInSeconds - Duration in seconds. Type: integer (or Expression with resultType integer). - WaitTimeInSeconds interface{} `json:"waitTimeInSeconds,omitempty"` -} - -// WarehouseLinkedService microsoft Fabric Warehouse linked service. -type WarehouseLinkedService struct { - // WarehouseLinkedServiceTypeProperties - Microsoft Fabric Warehouse linked service properties. - *WarehouseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WarehouseLinkedService. -func (wls WarehouseLinkedService) MarshalJSON() ([]byte, error) { - wls.Type = TypeBasicLinkedServiceTypeWarehouse - objectMap := make(map[string]interface{}) - if wls.WarehouseLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = wls.WarehouseLinkedServiceTypeProperties - } - if wls.ConnectVia != nil { - objectMap["connectVia"] = wls.ConnectVia - } - if wls.Description != nil { - objectMap["description"] = wls.Description - } - if wls.Parameters != nil { - objectMap["parameters"] = wls.Parameters - } - if wls.Annotations != nil { - objectMap["annotations"] = wls.Annotations - } - if wls.Type != "" { - objectMap["type"] = wls.Type - } - for k, v := range wls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return &wls, true -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for WarehouseLinkedService. -func (wls WarehouseLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &wls, true -} - -// UnmarshalJSON is the custom unmarshaler for WarehouseLinkedService struct. -func (wls *WarehouseLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var warehouseLinkedServiceTypeProperties WarehouseLinkedServiceTypeProperties - err = json.Unmarshal(*v, &warehouseLinkedServiceTypeProperties) - if err != nil { - return err - } - wls.WarehouseLinkedServiceTypeProperties = &warehouseLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wls.AdditionalProperties == nil { - wls.AdditionalProperties = make(map[string]interface{}) - } - wls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - wls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - wls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - wls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wls.Type = typeVar - } - } - } - - return nil -} - -// WarehouseLinkedServiceTypeProperties microsoft Fabric Warehouse linked service properties. -type WarehouseLinkedServiceTypeProperties struct { - // ArtifactID - The ID of Microsoft Fabric Warehouse artifact. Type: string (or Expression with resultType string). - ArtifactID interface{} `json:"artifactId,omitempty"` - // Endpoint - The endpoint of Microsoft Fabric Warehouse server. Type: string (or Expression with resultType string). - Endpoint interface{} `json:"endpoint,omitempty"` - // WorkspaceID - The ID of Microsoft Fabric workspace. Type: string (or Expression with resultType string). - WorkspaceID interface{} `json:"workspaceId,omitempty"` - // ServicePrincipalID - The ID of the application used to authenticate against Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` - // ServicePrincipalKey - The Key of the application used to authenticate against Microsoft Fabric Warehouse. - ServicePrincipalKey BasicSecretBase `json:"servicePrincipalKey,omitempty"` - // Tenant - 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"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` - // ServicePrincipalCredentialType - 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"` - // ServicePrincipalCredential - 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 BasicSecretBase `json:"servicePrincipalCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for WarehouseLinkedServiceTypeProperties struct. -func (wlstp *WarehouseLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "artifactId": - if v != nil { - var artifactID interface{} - err = json.Unmarshal(*v, &artifactID) - if err != nil { - return err - } - wlstp.ArtifactID = artifactID - } - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - wlstp.Endpoint = endpoint - } - case "workspaceId": - if v != nil { - var workspaceID interface{} - err = json.Unmarshal(*v, &workspaceID) - if err != nil { - return err - } - wlstp.WorkspaceID = workspaceID - } - case "servicePrincipalId": - if v != nil { - var servicePrincipalID interface{} - err = json.Unmarshal(*v, &servicePrincipalID) - if err != nil { - return err - } - wlstp.ServicePrincipalID = servicePrincipalID - } - case "servicePrincipalKey": - if v != nil { - servicePrincipalKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - wlstp.ServicePrincipalKey = servicePrincipalKey - } - case "tenant": - if v != nil { - var tenant interface{} - err = json.Unmarshal(*v, &tenant) - if err != nil { - return err - } - wlstp.Tenant = tenant - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - wlstp.EncryptedCredential = &encryptedCredential - } - case "servicePrincipalCredentialType": - if v != nil { - var servicePrincipalCredentialType interface{} - err = json.Unmarshal(*v, &servicePrincipalCredentialType) - if err != nil { - return err - } - wlstp.ServicePrincipalCredentialType = servicePrincipalCredentialType - } - case "servicePrincipalCredential": - if v != nil { - servicePrincipalCredential, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - wlstp.ServicePrincipalCredential = servicePrincipalCredential - } - } - } - - return nil -} - -// WarehouseSink a copy activity Microsoft Fabric Warehouse sink. -type WarehouseSink struct { - // PreCopyScript - SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` - // AllowCopyCommand - Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). - AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` - // CopyCommandSettings - Specifies Copy Command related settings when allowCopyCommand is true. - CopyCommandSettings *DWCopyCommandSettings `json:"copyCommandSettings,omitempty"` - // TableOption - 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"` - // WriteBehavior - Write behavior when copying data into azure Microsoft Fabric Data Warehouse. Type: DWWriteBehaviorEnum (or Expression with resultType DWWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // WriteBatchSize - Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` - // WriteBatchTimeout - 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"` - // SinkRetryCount - Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` - // SinkRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySinkTypeCopySink', 'TypeBasicCopySinkTypeSalesforceServiceCloudV2Sink', 'TypeBasicCopySinkTypeSalesforceV2Sink', 'TypeBasicCopySinkTypeLakeHouseTableSink', 'TypeBasicCopySinkTypeCosmosDbMongoDbAPISink', 'TypeBasicCopySinkTypeMongoDbV2Sink', 'TypeBasicCopySinkTypeMongoDbAtlasSink', 'TypeBasicCopySinkTypeSalesforceServiceCloudSink', 'TypeBasicCopySinkTypeSalesforceSink', 'TypeBasicCopySinkTypeAzureDataExplorerSink', 'TypeBasicCopySinkTypeCommonDataServiceForAppsSink', 'TypeBasicCopySinkTypeDynamicsCrmSink', 'TypeBasicCopySinkTypeDynamicsSink', 'TypeBasicCopySinkTypeMicrosoftAccessSink', 'TypeBasicCopySinkTypeInformixSink', 'TypeBasicCopySinkTypeOdbcSink', 'TypeBasicCopySinkTypeAzureSearchIndexSink', 'TypeBasicCopySinkTypeAzureBlobFSSink', 'TypeBasicCopySinkTypeAzureDataLakeStoreSink', 'TypeBasicCopySinkTypeOracleSink', 'TypeBasicCopySinkTypeSnowflakeV2Sink', 'TypeBasicCopySinkTypeSnowflakeSink', 'TypeBasicCopySinkTypeSQLDWSink', 'TypeBasicCopySinkTypeSQLMISink', 'TypeBasicCopySinkTypeAzureSQLSink', 'TypeBasicCopySinkTypeSQLServerSink', 'TypeBasicCopySinkTypeSQLSink', 'TypeBasicCopySinkTypeCosmosDbSQLAPISink', 'TypeBasicCopySinkTypeDocumentDbCollectionSink', 'TypeBasicCopySinkTypeFileSystemSink', 'TypeBasicCopySinkTypeBlobSink', 'TypeBasicCopySinkTypeBinarySink', 'TypeBasicCopySinkTypeParquetSink', 'TypeBasicCopySinkTypeAvroSink', 'TypeBasicCopySinkTypeAzureTableSink', 'TypeBasicCopySinkTypeAzureQueueSink', 'TypeBasicCopySinkTypeSapCloudForCustomerSink', 'TypeBasicCopySinkTypeWarehouseSink', 'TypeBasicCopySinkTypeAzureDatabricksDeltaLakeSink', 'TypeBasicCopySinkTypeAzureMySQLSink', 'TypeBasicCopySinkTypeAzurePostgreSQLSink', 'TypeBasicCopySinkTypeRestSink', 'TypeBasicCopySinkTypeOrcSink', 'TypeBasicCopySinkTypeJSONSink', 'TypeBasicCopySinkTypeDelimitedTextSink' - Type TypeBasicCopySink `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WarehouseSink. -func (ws WarehouseSink) MarshalJSON() ([]byte, error) { - ws.Type = TypeBasicCopySinkTypeWarehouseSink - objectMap := make(map[string]interface{}) - if ws.PreCopyScript != nil { - objectMap["preCopyScript"] = ws.PreCopyScript - } - if ws.AllowCopyCommand != nil { - objectMap["allowCopyCommand"] = ws.AllowCopyCommand - } - if ws.CopyCommandSettings != nil { - objectMap["copyCommandSettings"] = ws.CopyCommandSettings - } - if ws.TableOption != nil { - objectMap["tableOption"] = ws.TableOption - } - if ws.WriteBehavior != nil { - objectMap["writeBehavior"] = ws.WriteBehavior - } - if ws.WriteBatchSize != nil { - objectMap["writeBatchSize"] = ws.WriteBatchSize - } - if ws.WriteBatchTimeout != nil { - objectMap["writeBatchTimeout"] = ws.WriteBatchTimeout - } - if ws.SinkRetryCount != nil { - objectMap["sinkRetryCount"] = ws.SinkRetryCount - } - if ws.SinkRetryWait != nil { - objectMap["sinkRetryWait"] = ws.SinkRetryWait - } - if ws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ws.MaxConcurrentConnections - } - if ws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ws.DisableMetricsCollection - } - if ws.Type != "" { - objectMap["type"] = ws.Type - } - for k, v := range ws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Sink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSalesforceServiceCloudV2Sink() (*SalesforceServiceCloudV2Sink, bool) { - return nil, false -} - -// AsSalesforceV2Sink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSalesforceV2Sink() (*SalesforceV2Sink, bool) { - return nil, false -} - -// AsLakeHouseTableSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsLakeHouseTableSink() (*LakeHouseTableSink, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsCosmosDbMongoDbAPISink() (*CosmosDbMongoDbAPISink, bool) { - return nil, false -} - -// AsMongoDbV2Sink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsMongoDbV2Sink() (*MongoDbV2Sink, bool) { - return nil, false -} - -// AsMongoDbAtlasSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsMongoDbAtlasSink() (*MongoDbAtlasSink, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSalesforceServiceCloudSink() (*SalesforceServiceCloudSink, bool) { - return nil, false -} - -// AsSalesforceSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSalesforceSink() (*SalesforceSink, bool) { - return nil, false -} - -// AsAzureDataExplorerSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureDataExplorerSink() (*AzureDataExplorerSink, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsCommonDataServiceForAppsSink() (*CommonDataServiceForAppsSink, bool) { - return nil, false -} - -// AsDynamicsCrmSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsDynamicsCrmSink() (*DynamicsCrmSink, bool) { - return nil, false -} - -// AsDynamicsSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsDynamicsSink() (*DynamicsSink, bool) { - return nil, false -} - -// AsMicrosoftAccessSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsMicrosoftAccessSink() (*MicrosoftAccessSink, bool) { - return nil, false -} - -// AsInformixSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsInformixSink() (*InformixSink, bool) { - return nil, false -} - -// AsOdbcSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsOdbcSink() (*OdbcSink, bool) { - return nil, false -} - -// AsAzureSearchIndexSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureSearchIndexSink() (*AzureSearchIndexSink, bool) { - return nil, false -} - -// AsAzureBlobFSSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureBlobFSSink() (*AzureBlobFSSink, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureDataLakeStoreSink() (*AzureDataLakeStoreSink, bool) { - return nil, false -} - -// AsOracleSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsOracleSink() (*OracleSink, bool) { - return nil, false -} - -// AsSnowflakeV2Sink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSnowflakeV2Sink() (*SnowflakeV2Sink, bool) { - return nil, false -} - -// AsSnowflakeSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSnowflakeSink() (*SnowflakeSink, bool) { - return nil, false -} - -// AsSQLDWSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSQLDWSink() (*SQLDWSink, bool) { - return nil, false -} - -// AsSQLMISink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSQLMISink() (*SQLMISink, bool) { - return nil, false -} - -// AsAzureSQLSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureSQLSink() (*AzureSQLSink, bool) { - return nil, false -} - -// AsSQLServerSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSQLServerSink() (*SQLServerSink, bool) { - return nil, false -} - -// AsSQLSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSQLSink() (*SQLSink, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsCosmosDbSQLAPISink() (*CosmosDbSQLAPISink, bool) { - return nil, false -} - -// AsDocumentDbCollectionSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsDocumentDbCollectionSink() (*DocumentDbCollectionSink, bool) { - return nil, false -} - -// AsFileSystemSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsFileSystemSink() (*FileSystemSink, bool) { - return nil, false -} - -// AsBlobSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsBlobSink() (*BlobSink, bool) { - return nil, false -} - -// AsBinarySink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsBinarySink() (*BinarySink, bool) { - return nil, false -} - -// AsParquetSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsParquetSink() (*ParquetSink, bool) { - return nil, false -} - -// AsAvroSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAvroSink() (*AvroSink, bool) { - return nil, false -} - -// AsAzureTableSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureTableSink() (*AzureTableSink, bool) { - return nil, false -} - -// AsAzureQueueSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureQueueSink() (*AzureQueueSink, bool) { - return nil, false -} - -// AsSapCloudForCustomerSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsSapCloudForCustomerSink() (*SapCloudForCustomerSink, bool) { - return nil, false -} - -// AsWarehouseSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsWarehouseSink() (*WarehouseSink, bool) { - return &ws, true -} - -// AsAzureDatabricksDeltaLakeSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureDatabricksDeltaLakeSink() (*AzureDatabricksDeltaLakeSink, bool) { - return nil, false -} - -// AsAzureMySQLSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzureMySQLSink() (*AzureMySQLSink, bool) { - return nil, false -} - -// AsAzurePostgreSQLSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsAzurePostgreSQLSink() (*AzurePostgreSQLSink, bool) { - return nil, false -} - -// AsRestSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsRestSink() (*RestSink, bool) { - return nil, false -} - -// AsOrcSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsOrcSink() (*OrcSink, bool) { - return nil, false -} - -// AsJSONSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsJSONSink() (*JSONSink, bool) { - return nil, false -} - -// AsDelimitedTextSink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsDelimitedTextSink() (*DelimitedTextSink, bool) { - return nil, false -} - -// AsCopySink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsCopySink() (*CopySink, bool) { - return nil, false -} - -// AsBasicCopySink is the BasicCopySink implementation for WarehouseSink. -func (ws WarehouseSink) AsBasicCopySink() (BasicCopySink, bool) { - return &ws, true -} - -// UnmarshalJSON is the custom unmarshaler for WarehouseSink struct. -func (ws *WarehouseSink) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preCopyScript": - if v != nil { - var preCopyScript interface{} - err = json.Unmarshal(*v, &preCopyScript) - if err != nil { - return err - } - ws.PreCopyScript = preCopyScript - } - case "allowCopyCommand": - if v != nil { - var allowCopyCommand interface{} - err = json.Unmarshal(*v, &allowCopyCommand) - if err != nil { - return err - } - ws.AllowCopyCommand = allowCopyCommand - } - case "copyCommandSettings": - if v != nil { - var copyCommandSettings DWCopyCommandSettings - err = json.Unmarshal(*v, ©CommandSettings) - if err != nil { - return err - } - ws.CopyCommandSettings = ©CommandSettings - } - case "tableOption": - if v != nil { - var tableOption interface{} - err = json.Unmarshal(*v, &tableOption) - if err != nil { - return err - } - ws.TableOption = tableOption - } - case "writeBehavior": - if v != nil { - var writeBehavior interface{} - err = json.Unmarshal(*v, &writeBehavior) - if err != nil { - return err - } - ws.WriteBehavior = writeBehavior - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ws.AdditionalProperties == nil { - ws.AdditionalProperties = make(map[string]interface{}) - } - ws.AdditionalProperties[k] = additionalProperties - } - case "writeBatchSize": - if v != nil { - var writeBatchSize interface{} - err = json.Unmarshal(*v, &writeBatchSize) - if err != nil { - return err - } - ws.WriteBatchSize = writeBatchSize - } - case "writeBatchTimeout": - if v != nil { - var writeBatchTimeout interface{} - err = json.Unmarshal(*v, &writeBatchTimeout) - if err != nil { - return err - } - ws.WriteBatchTimeout = writeBatchTimeout - } - case "sinkRetryCount": - if v != nil { - var sinkRetryCount interface{} - err = json.Unmarshal(*v, &sinkRetryCount) - if err != nil { - return err - } - ws.SinkRetryCount = sinkRetryCount - } - case "sinkRetryWait": - if v != nil { - var sinkRetryWait interface{} - err = json.Unmarshal(*v, &sinkRetryWait) - if err != nil { - return err - } - ws.SinkRetryWait = sinkRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ws.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySink - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ws.Type = typeVar - } - } - } - - return nil -} - -// WarehouseSource a copy activity Microsoft Fabric Warehouse source. -type WarehouseSource struct { - // SQLReaderQuery - Microsoft Fabric Warehouse reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` - // SQLReaderStoredProcedureName - 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 interface{} `json:"sqlReaderStoredProcedureName,omitempty"` - // StoredProcedureParameters - 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"` - // IsolationLevel - 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 interface{} `json:"isolationLevel,omitempty"` - // PartitionOption - The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` - // PartitionSettings - The settings that will be leveraged for Sql source partitioning. - PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WarehouseSource. -func (ws WarehouseSource) MarshalJSON() ([]byte, error) { - ws.Type = TypeBasicCopySourceTypeWarehouseSource - objectMap := make(map[string]interface{}) - if ws.SQLReaderQuery != nil { - objectMap["sqlReaderQuery"] = ws.SQLReaderQuery - } - if ws.SQLReaderStoredProcedureName != nil { - objectMap["sqlReaderStoredProcedureName"] = ws.SQLReaderStoredProcedureName - } - if ws.StoredProcedureParameters != nil { - objectMap["storedProcedureParameters"] = ws.StoredProcedureParameters - } - if ws.IsolationLevel != nil { - objectMap["isolationLevel"] = ws.IsolationLevel - } - if ws.PartitionOption != nil { - objectMap["partitionOption"] = ws.PartitionOption - } - if ws.PartitionSettings != nil { - objectMap["partitionSettings"] = ws.PartitionSettings - } - if ws.QueryTimeout != nil { - objectMap["queryTimeout"] = ws.QueryTimeout - } - if ws.AdditionalColumns != nil { - objectMap["additionalColumns"] = ws.AdditionalColumns - } - if ws.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ws.SourceRetryCount - } - if ws.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ws.SourceRetryWait - } - if ws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ws.MaxConcurrentConnections - } - if ws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ws.DisableMetricsCollection - } - if ws.Type != "" { - objectMap["type"] = ws.Type - } - for k, v := range ws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsWarehouseSource() (*WarehouseSource, bool) { - return &ws, true -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &ws, true -} - -// AsBinarySource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for WarehouseSource. -func (ws WarehouseSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ws, true -} - -// UnmarshalJSON is the custom unmarshaler for WarehouseSource struct. -func (ws *WarehouseSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "sqlReaderQuery": - if v != nil { - var SQLReaderQuery interface{} - err = json.Unmarshal(*v, &SQLReaderQuery) - if err != nil { - return err - } - ws.SQLReaderQuery = SQLReaderQuery - } - case "sqlReaderStoredProcedureName": - if v != nil { - var SQLReaderStoredProcedureName interface{} - err = json.Unmarshal(*v, &SQLReaderStoredProcedureName) - if err != nil { - return err - } - ws.SQLReaderStoredProcedureName = SQLReaderStoredProcedureName - } - case "storedProcedureParameters": - if v != nil { - var storedProcedureParameters interface{} - err = json.Unmarshal(*v, &storedProcedureParameters) - if err != nil { - return err - } - ws.StoredProcedureParameters = storedProcedureParameters - } - case "isolationLevel": - if v != nil { - var isolationLevel interface{} - err = json.Unmarshal(*v, &isolationLevel) - if err != nil { - return err - } - ws.IsolationLevel = isolationLevel - } - case "partitionOption": - if v != nil { - var partitionOption interface{} - err = json.Unmarshal(*v, &partitionOption) - if err != nil { - return err - } - ws.PartitionOption = partitionOption - } - case "partitionSettings": - if v != nil { - var partitionSettings SQLPartitionSettings - err = json.Unmarshal(*v, &partitionSettings) - if err != nil { - return err - } - ws.PartitionSettings = &partitionSettings - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - ws.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ws.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ws.AdditionalProperties == nil { - ws.AdditionalProperties = make(map[string]interface{}) - } - ws.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ws.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ws.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ws.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ws.Type = typeVar - } - } - } - - return nil -} - -// WarehouseTableDataset microsoft Fabric Warehouse dataset. -type WarehouseTableDataset struct { - // WarehouseTableDatasetTypeProperties - Microsoft Fabric Warehouse dataset properties. - *WarehouseTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WarehouseTableDataset. -func (wtd WarehouseTableDataset) MarshalJSON() ([]byte, error) { - wtd.Type = TypeBasicDatasetTypeWarehouseTable - objectMap := make(map[string]interface{}) - if wtd.WarehouseTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = wtd.WarehouseTableDatasetTypeProperties - } - if wtd.Description != nil { - objectMap["description"] = wtd.Description - } - if wtd.Structure != nil { - objectMap["structure"] = wtd.Structure - } - if wtd.Schema != nil { - objectMap["schema"] = wtd.Schema - } - if wtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = wtd.LinkedServiceName - } - if wtd.Parameters != nil { - objectMap["parameters"] = wtd.Parameters - } - if wtd.Annotations != nil { - objectMap["annotations"] = wtd.Annotations - } - if wtd.Folder != nil { - objectMap["folder"] = wtd.Folder - } - if wtd.Type != "" { - objectMap["type"] = wtd.Type - } - for k, v := range wtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return &wtd, true -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for WarehouseTableDataset. -func (wtd WarehouseTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &wtd, true -} - -// UnmarshalJSON is the custom unmarshaler for WarehouseTableDataset struct. -func (wtd *WarehouseTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var warehouseTableDatasetTypeProperties WarehouseTableDatasetTypeProperties - err = json.Unmarshal(*v, &warehouseTableDatasetTypeProperties) - if err != nil { - return err - } - wtd.WarehouseTableDatasetTypeProperties = &warehouseTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wtd.AdditionalProperties == nil { - wtd.AdditionalProperties = make(map[string]interface{}) - } - wtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - wtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - wtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - wtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - wtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - wtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - wtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wtd.Type = typeVar - } - } - } - - return nil -} - -// WarehouseTableDatasetTypeProperties microsoft Fabric Warehouse dataset properties. -type WarehouseTableDatasetTypeProperties struct { - // Schema - The schema name of the Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` - // Table - The table name of the Microsoft Fabric Warehouse. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` -} - -// WebActivity web activity. -type WebActivity struct { - // WebActivityTypeProperties - Web activity properties. - *WebActivityTypeProperties `json:"typeProperties,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Policy - Activity policy. - Policy *ActivityPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebActivity. -func (wa WebActivity) MarshalJSON() ([]byte, error) { - wa.Type = TypeBasicActivityTypeWebActivity - objectMap := make(map[string]interface{}) - if wa.WebActivityTypeProperties != nil { - objectMap["typeProperties"] = wa.WebActivityTypeProperties - } - if wa.LinkedServiceName != nil { - objectMap["linkedServiceName"] = wa.LinkedServiceName - } - if wa.Policy != nil { - objectMap["policy"] = wa.Policy - } - if wa.Name != nil { - objectMap["name"] = wa.Name - } - if wa.Description != nil { - objectMap["description"] = wa.Description - } - if wa.State != "" { - objectMap["state"] = wa.State - } - if wa.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = wa.OnInactiveMarkAs - } - if wa.DependsOn != nil { - objectMap["dependsOn"] = wa.DependsOn - } - if wa.UserProperties != nil { - objectMap["userProperties"] = wa.UserProperties - } - if wa.Type != "" { - objectMap["type"] = wa.Type - } - for k, v := range wa.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsWebActivity() (*WebActivity, bool) { - return &wa, true -} - -// AsLookupActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return &wa, true -} - -// AsWebHookActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return nil, false -} - -// AsAppendVariableActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return nil, false -} - -// AsActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for WebActivity. -func (wa WebActivity) AsBasicActivity() (BasicActivity, bool) { - return &wa, true -} - -// UnmarshalJSON is the custom unmarshaler for WebActivity struct. -func (wa *WebActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var webActivityTypeProperties WebActivityTypeProperties - err = json.Unmarshal(*v, &webActivityTypeProperties) - if err != nil { - return err - } - wa.WebActivityTypeProperties = &webActivityTypeProperties - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - wa.LinkedServiceName = &linkedServiceName - } - case "policy": - if v != nil { - var policy ActivityPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - wa.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wa.AdditionalProperties == nil { - wa.AdditionalProperties = make(map[string]interface{}) - } - wa.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - wa.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wa.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - wa.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - wa.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - wa.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - wa.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wa.Type = typeVar - } - } - } - - return nil -} - -// WebActivityAuthentication web activity authentication properties. -type WebActivityAuthentication struct { - // Type - Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal) - Type *string `json:"type,omitempty"` - // Pfx - Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal - Pfx BasicSecretBase `json:"pfx,omitempty"` - // Username - 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"` - // Password - Password for the PFX file or basic authentication / Secret when used for ServicePrincipal - Password BasicSecretBase `json:"password,omitempty"` - // Resource - 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"` - // UserTenant - 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"` - // Credential - The credential reference containing authentication information. - Credential *CredentialReference `json:"credential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for WebActivityAuthentication struct. -func (waa *WebActivityAuthentication) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "type": - if v != nil { - var typeVar string - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - waa.Type = &typeVar - } - case "pfx": - if v != nil { - pfx, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - waa.Pfx = pfx - } - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - waa.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - waa.Password = password - } - case "resource": - if v != nil { - var resource interface{} - err = json.Unmarshal(*v, &resource) - if err != nil { - return err - } - waa.Resource = resource - } - case "userTenant": - if v != nil { - var userTenant interface{} - err = json.Unmarshal(*v, &userTenant) - if err != nil { - return err - } - waa.UserTenant = userTenant - } - case "credential": - if v != nil { - var credential CredentialReference - err = json.Unmarshal(*v, &credential) - if err != nil { - return err - } - waa.Credential = &credential - } - } - } - - return nil -} - -// WebActivityTypeProperties web activity type properties. -type WebActivityTypeProperties struct { - // Method - Rest API method for target endpoint. Possible values include: 'WebActivityMethodGET', 'WebActivityMethodPOST', 'WebActivityMethodPUT', 'WebActivityMethodDELETE' - Method WebActivityMethod `json:"method,omitempty"` - // URL - Web activity target endpoint and path. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // Headers - 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 map[string]*string `json:"headers"` - // Body - 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"` - // Authentication - Authentication method used for calling the endpoint. - Authentication *WebActivityAuthentication `json:"authentication,omitempty"` - // DisableCertValidation - When set to true, Certificate validation will be disabled. - DisableCertValidation *bool `json:"disableCertValidation,omitempty"` - // HTTPRequestTimeout - 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 interface{} `json:"httpRequestTimeout,omitempty"` - // TurnOffAsync - 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 `json:"turnOffAsync,omitempty"` - // Datasets - List of datasets passed to web endpoint. - Datasets *[]DatasetReference `json:"datasets,omitempty"` - // LinkedServices - List of linked services passed to web endpoint. - LinkedServices *[]LinkedServiceReference `json:"linkedServices,omitempty"` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebActivityTypeProperties. -func (watp WebActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if watp.Method != "" { - objectMap["method"] = watp.Method - } - if watp.URL != nil { - objectMap["url"] = watp.URL - } - if watp.Headers != nil { - objectMap["headers"] = watp.Headers - } - if watp.Body != nil { - objectMap["body"] = watp.Body - } - if watp.Authentication != nil { - objectMap["authentication"] = watp.Authentication - } - if watp.DisableCertValidation != nil { - objectMap["disableCertValidation"] = watp.DisableCertValidation - } - if watp.HTTPRequestTimeout != nil { - objectMap["httpRequestTimeout"] = watp.HTTPRequestTimeout - } - if watp.TurnOffAsync != nil { - objectMap["turnOffAsync"] = watp.TurnOffAsync - } - if watp.Datasets != nil { - objectMap["datasets"] = watp.Datasets - } - if watp.LinkedServices != nil { - objectMap["linkedServices"] = watp.LinkedServices - } - if watp.ConnectVia != nil { - objectMap["connectVia"] = watp.ConnectVia - } - return json.Marshal(objectMap) -} - -// WebAnonymousAuthentication a WebLinkedService that uses anonymous authentication to communicate with an -// HTTP endpoint. -type WebAnonymousAuthentication struct { - // URL - 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"` - // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' - AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) MarshalJSON() ([]byte, error) { - waa.AuthenticationType = AuthenticationTypeAnonymous - objectMap := make(map[string]interface{}) - if waa.URL != nil { - objectMap["url"] = waa.URL - } - if waa.AuthenticationType != "" { - objectMap["authenticationType"] = waa.AuthenticationType - } - return json.Marshal(objectMap) -} - -// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { - return nil, false -} - -// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { - return nil, false -} - -// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { - return &waa, true -} - -// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { - return nil, false -} - -// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebAnonymousAuthentication. -func (waa WebAnonymousAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { - return &waa, true -} - -// WebBasicAuthentication a WebLinkedService that uses basic authentication to communicate with an HTTP -// endpoint. -type WebBasicAuthentication struct { - // Username - User name for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` - // Password - The password for Basic authentication. - Password BasicSecretBase `json:"password,omitempty"` - // URL - 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"` - // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' - AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebBasicAuthentication. -func (wba WebBasicAuthentication) MarshalJSON() ([]byte, error) { - wba.AuthenticationType = AuthenticationTypeBasic - objectMap := make(map[string]interface{}) - if wba.Username != nil { - objectMap["username"] = wba.Username - } - objectMap["password"] = wba.Password - if wba.URL != nil { - objectMap["url"] = wba.URL - } - if wba.AuthenticationType != "" { - objectMap["authenticationType"] = wba.AuthenticationType - } - return json.Marshal(objectMap) -} - -// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { - return nil, false -} - -// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { - return &wba, true -} - -// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { - return nil, false -} - -// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { - return nil, false -} - -// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebBasicAuthentication. -func (wba WebBasicAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { - return &wba, true -} - -// UnmarshalJSON is the custom unmarshaler for WebBasicAuthentication struct. -func (wba *WebBasicAuthentication) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "username": - if v != nil { - var username interface{} - err = json.Unmarshal(*v, &username) - if err != nil { - return err - } - wba.Username = username - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - wba.Password = password - } - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - wba.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType AuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - wba.AuthenticationType = authenticationType - } - } - } - - return nil -} - -// WebClientCertificateAuthentication a WebLinkedService that uses client certificate based authentication -// to communicate with an HTTP endpoint. This scheme follows mutual authentication; the server must also -// provide valid credentials to the client. -type WebClientCertificateAuthentication struct { - // Pfx - Base64-encoded contents of a PFX file. - Pfx BasicSecretBase `json:"pfx,omitempty"` - // Password - Password for the PFX file. - Password BasicSecretBase `json:"password,omitempty"` - // URL - 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"` - // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' - AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) MarshalJSON() ([]byte, error) { - wcca.AuthenticationType = AuthenticationTypeClientCertificate - objectMap := make(map[string]interface{}) - objectMap["pfx"] = wcca.Pfx - objectMap["password"] = wcca.Password - if wcca.URL != nil { - objectMap["url"] = wcca.URL - } - if wcca.AuthenticationType != "" { - objectMap["authenticationType"] = wcca.AuthenticationType - } - return json.Marshal(objectMap) -} - -// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { - return &wcca, true -} - -// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { - return nil, false -} - -// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { - return nil, false -} - -// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { - return nil, false -} - -// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebClientCertificateAuthentication. -func (wcca WebClientCertificateAuthentication) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { - return &wcca, true -} - -// UnmarshalJSON is the custom unmarshaler for WebClientCertificateAuthentication struct. -func (wcca *WebClientCertificateAuthentication) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "pfx": - if v != nil { - pfx, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - wcca.Pfx = pfx - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - wcca.Password = password - } - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - wcca.URL = URL - } - case "authenticationType": - if v != nil { - var authenticationType AuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - wcca.AuthenticationType = authenticationType - } - } - } - - return nil -} - -// WebHookActivity webHook activity. -type WebHookActivity struct { - // WebHookActivityTypeProperties - WebHook activity properties. - *WebHookActivityTypeProperties `json:"typeProperties,omitempty"` - // Policy - Activity policy. - Policy *SecureInputOutputPolicy `json:"policy,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Name - Activity name. - Name *string `json:"name,omitempty"` - // Description - Activity description. - Description *string `json:"description,omitempty"` - // State - Activity state. This is an optional property and if not provided, the state will be Active by default. Possible values include: 'ActivityStateActive', 'ActivityStateInactive' - State ActivityState `json:"state,omitempty"` - // OnInactiveMarkAs - 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. Possible values include: 'ActivityOnInactiveMarkAsSucceeded', 'ActivityOnInactiveMarkAsFailed', 'ActivityOnInactiveMarkAsSkipped' - OnInactiveMarkAs ActivityOnInactiveMarkAs `json:"onInactiveMarkAs,omitempty"` - // DependsOn - Activity depends on condition. - DependsOn *[]ActivityDependency `json:"dependsOn,omitempty"` - // UserProperties - Activity user properties. - UserProperties *[]UserProperty `json:"userProperties,omitempty"` - // Type - Possible values include: 'TypeBasicActivityTypeActivity', 'TypeBasicActivityTypeExecuteWranglingDataflow', 'TypeBasicActivityTypeSparkJob', 'TypeBasicActivityTypeSynapseNotebook', 'TypeBasicActivityTypeScript', 'TypeBasicActivityTypeExecuteDataFlow', 'TypeBasicActivityTypeAzureFunctionActivity', 'TypeBasicActivityTypeDatabricksSparkPython', 'TypeBasicActivityTypeDatabricksSparkJar', 'TypeBasicActivityTypeDatabricksNotebook', 'TypeBasicActivityTypeDataLakeAnalyticsUSQL', 'TypeBasicActivityTypeAzureMLExecutePipeline', 'TypeBasicActivityTypeAzureMLUpdateResource', 'TypeBasicActivityTypeAzureMLBatchExecution', 'TypeBasicActivityTypeGetMetadata', 'TypeBasicActivityTypeWebActivity', 'TypeBasicActivityTypeLookup', 'TypeBasicActivityTypeAzureDataExplorerCommand', 'TypeBasicActivityTypeDelete', 'TypeBasicActivityTypeSQLServerStoredProcedure', 'TypeBasicActivityTypeCustom', 'TypeBasicActivityTypeExecuteSSISPackage', 'TypeBasicActivityTypeHDInsightSpark', 'TypeBasicActivityTypeHDInsightStreaming', 'TypeBasicActivityTypeHDInsightMapReduce', 'TypeBasicActivityTypeHDInsightPig', 'TypeBasicActivityTypeHDInsightHive', 'TypeBasicActivityTypeCopy', 'TypeBasicActivityTypeExecution', 'TypeBasicActivityTypeWebHook', 'TypeBasicActivityTypeAppendVariable', 'TypeBasicActivityTypeSetVariable', 'TypeBasicActivityTypeFilter', 'TypeBasicActivityTypeValidation', 'TypeBasicActivityTypeUntil', 'TypeBasicActivityTypeFail', 'TypeBasicActivityTypeWait', 'TypeBasicActivityTypeForEach', 'TypeBasicActivityTypeSwitch', 'TypeBasicActivityTypeIfCondition', 'TypeBasicActivityTypeExecutePipeline', 'TypeBasicActivityTypeContainer' - Type TypeBasicActivity `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebHookActivity. -func (wha WebHookActivity) MarshalJSON() ([]byte, error) { - wha.Type = TypeBasicActivityTypeWebHook - objectMap := make(map[string]interface{}) - if wha.WebHookActivityTypeProperties != nil { - objectMap["typeProperties"] = wha.WebHookActivityTypeProperties - } - if wha.Policy != nil { - objectMap["policy"] = wha.Policy - } - if wha.Name != nil { - objectMap["name"] = wha.Name - } - if wha.Description != nil { - objectMap["description"] = wha.Description - } - if wha.State != "" { - objectMap["state"] = wha.State - } - if wha.OnInactiveMarkAs != "" { - objectMap["onInactiveMarkAs"] = wha.OnInactiveMarkAs - } - if wha.DependsOn != nil { - objectMap["dependsOn"] = wha.DependsOn - } - if wha.UserProperties != nil { - objectMap["userProperties"] = wha.UserProperties - } - if wha.Type != "" { - objectMap["type"] = wha.Type - } - for k, v := range wha.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsExecuteWranglingDataflowActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsExecuteWranglingDataflowActivity() (*ExecuteWranglingDataflowActivity, bool) { - return nil, false -} - -// AsSynapseSparkJobDefinitionActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsSynapseSparkJobDefinitionActivity() (*SynapseSparkJobDefinitionActivity, bool) { - return nil, false -} - -// AsSynapseNotebookActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsSynapseNotebookActivity() (*SynapseNotebookActivity, bool) { - return nil, false -} - -// AsScriptActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsScriptActivity() (*ScriptActivity, bool) { - return nil, false -} - -// AsExecuteDataFlowActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsExecuteDataFlowActivity() (*ExecuteDataFlowActivity, bool) { - return nil, false -} - -// AsAzureFunctionActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsAzureFunctionActivity() (*AzureFunctionActivity, bool) { - return nil, false -} - -// AsDatabricksSparkPythonActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsDatabricksSparkPythonActivity() (*DatabricksSparkPythonActivity, bool) { - return nil, false -} - -// AsDatabricksSparkJarActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsDatabricksSparkJarActivity() (*DatabricksSparkJarActivity, bool) { - return nil, false -} - -// AsDatabricksNotebookActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsDatabricksNotebookActivity() (*DatabricksNotebookActivity, bool) { - return nil, false -} - -// AsDataLakeAnalyticsUSQLActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsDataLakeAnalyticsUSQLActivity() (*DataLakeAnalyticsUSQLActivity, bool) { - return nil, false -} - -// AsAzureMLExecutePipelineActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsAzureMLExecutePipelineActivity() (*AzureMLExecutePipelineActivity, bool) { - return nil, false -} - -// AsAzureMLUpdateResourceActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsAzureMLUpdateResourceActivity() (*AzureMLUpdateResourceActivity, bool) { - return nil, false -} - -// AsAzureMLBatchExecutionActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsAzureMLBatchExecutionActivity() (*AzureMLBatchExecutionActivity, bool) { - return nil, false -} - -// AsGetMetadataActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsGetMetadataActivity() (*GetMetadataActivity, bool) { - return nil, false -} - -// AsWebActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsWebActivity() (*WebActivity, bool) { - return nil, false -} - -// AsLookupActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsLookupActivity() (*LookupActivity, bool) { - return nil, false -} - -// AsAzureDataExplorerCommandActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsAzureDataExplorerCommandActivity() (*AzureDataExplorerCommandActivity, bool) { - return nil, false -} - -// AsDeleteActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsDeleteActivity() (*DeleteActivity, bool) { - return nil, false -} - -// AsSQLServerStoredProcedureActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsSQLServerStoredProcedureActivity() (*SQLServerStoredProcedureActivity, bool) { - return nil, false -} - -// AsCustomActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsCustomActivity() (*CustomActivity, bool) { - return nil, false -} - -// AsExecuteSSISPackageActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsExecuteSSISPackageActivity() (*ExecuteSSISPackageActivity, bool) { - return nil, false -} - -// AsHDInsightSparkActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsHDInsightSparkActivity() (*HDInsightSparkActivity, bool) { - return nil, false -} - -// AsHDInsightStreamingActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsHDInsightStreamingActivity() (*HDInsightStreamingActivity, bool) { - return nil, false -} - -// AsHDInsightMapReduceActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsHDInsightMapReduceActivity() (*HDInsightMapReduceActivity, bool) { - return nil, false -} - -// AsHDInsightPigActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsHDInsightPigActivity() (*HDInsightPigActivity, bool) { - return nil, false -} - -// AsHDInsightHiveActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsHDInsightHiveActivity() (*HDInsightHiveActivity, bool) { - return nil, false -} - -// AsCopyActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsCopyActivity() (*CopyActivity, bool) { - return nil, false -} - -// AsExecutionActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsExecutionActivity() (*ExecutionActivity, bool) { - return nil, false -} - -// AsBasicExecutionActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsBasicExecutionActivity() (BasicExecutionActivity, bool) { - return nil, false -} - -// AsWebHookActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsWebHookActivity() (*WebHookActivity, bool) { - return &wha, true -} - -// AsAppendVariableActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsAppendVariableActivity() (*AppendVariableActivity, bool) { - return nil, false -} - -// AsSetVariableActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsSetVariableActivity() (*SetVariableActivity, bool) { - return nil, false -} - -// AsFilterActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsFilterActivity() (*FilterActivity, bool) { - return nil, false -} - -// AsValidationActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsValidationActivity() (*ValidationActivity, bool) { - return nil, false -} - -// AsUntilActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsUntilActivity() (*UntilActivity, bool) { - return nil, false -} - -// AsFailActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsFailActivity() (*FailActivity, bool) { - return nil, false -} - -// AsWaitActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsWaitActivity() (*WaitActivity, bool) { - return nil, false -} - -// AsForEachActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsForEachActivity() (*ForEachActivity, bool) { - return nil, false -} - -// AsSwitchActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsSwitchActivity() (*SwitchActivity, bool) { - return nil, false -} - -// AsIfConditionActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsIfConditionActivity() (*IfConditionActivity, bool) { - return nil, false -} - -// AsExecutePipelineActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsExecutePipelineActivity() (*ExecutePipelineActivity, bool) { - return nil, false -} - -// AsControlActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsControlActivity() (*ControlActivity, bool) { - return nil, false -} - -// AsBasicControlActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsBasicControlActivity() (BasicControlActivity, bool) { - return &wha, true -} - -// AsActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsActivity() (*Activity, bool) { - return nil, false -} - -// AsBasicActivity is the BasicActivity implementation for WebHookActivity. -func (wha WebHookActivity) AsBasicActivity() (BasicActivity, bool) { - return &wha, true -} - -// UnmarshalJSON is the custom unmarshaler for WebHookActivity struct. -func (wha *WebHookActivity) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var webHookActivityTypeProperties WebHookActivityTypeProperties - err = json.Unmarshal(*v, &webHookActivityTypeProperties) - if err != nil { - return err - } - wha.WebHookActivityTypeProperties = &webHookActivityTypeProperties - } - case "policy": - if v != nil { - var policy SecureInputOutputPolicy - err = json.Unmarshal(*v, &policy) - if err != nil { - return err - } - wha.Policy = &policy - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wha.AdditionalProperties == nil { - wha.AdditionalProperties = make(map[string]interface{}) - } - wha.AdditionalProperties[k] = additionalProperties - } - case "name": - if v != nil { - var name string - err = json.Unmarshal(*v, &name) - if err != nil { - return err - } - wha.Name = &name - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wha.Description = &description - } - case "state": - if v != nil { - var state ActivityState - err = json.Unmarshal(*v, &state) - if err != nil { - return err - } - wha.State = state - } - case "onInactiveMarkAs": - if v != nil { - var onInactiveMarkAs ActivityOnInactiveMarkAs - err = json.Unmarshal(*v, &onInactiveMarkAs) - if err != nil { - return err - } - wha.OnInactiveMarkAs = onInactiveMarkAs - } - case "dependsOn": - if v != nil { - var dependsOn []ActivityDependency - err = json.Unmarshal(*v, &dependsOn) - if err != nil { - return err - } - wha.DependsOn = &dependsOn - } - case "userProperties": - if v != nil { - var userProperties []UserProperty - err = json.Unmarshal(*v, &userProperties) - if err != nil { - return err - } - wha.UserProperties = &userProperties - } - case "type": - if v != nil { - var typeVar TypeBasicActivity - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wha.Type = typeVar - } - } - } - - return nil -} - -// WebHookActivityTypeProperties webHook activity type properties. -type WebHookActivityTypeProperties struct { - // Method - Rest API method for target endpoint. - Method *string `json:"method,omitempty"` - // URL - WebHook activity target endpoint and path. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // Timeout - 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"` - // Headers - 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 map[string]*string `json:"headers"` - // Body - 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"` - // Authentication - Authentication method used for calling the endpoint. - Authentication *WebActivityAuthentication `json:"authentication,omitempty"` - // ReportStatusOnCallBack - 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"` -} - -// MarshalJSON is the custom marshaler for WebHookActivityTypeProperties. -func (whatp WebHookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - if whatp.Method != nil { - objectMap["method"] = whatp.Method - } - if whatp.URL != nil { - objectMap["url"] = whatp.URL - } - if whatp.Timeout != nil { - objectMap["timeout"] = whatp.Timeout - } - if whatp.Headers != nil { - objectMap["headers"] = whatp.Headers - } - if whatp.Body != nil { - objectMap["body"] = whatp.Body - } - if whatp.Authentication != nil { - objectMap["authentication"] = whatp.Authentication - } - if whatp.ReportStatusOnCallBack != nil { - objectMap["reportStatusOnCallBack"] = whatp.ReportStatusOnCallBack - } - return json.Marshal(objectMap) -} - -// WebLinkedService web linked service. -type WebLinkedService struct { - // TypeProperties - Web linked service properties. - TypeProperties BasicWebLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebLinkedService. -func (wls WebLinkedService) MarshalJSON() ([]byte, error) { - wls.Type = TypeBasicLinkedServiceTypeWeb - objectMap := make(map[string]interface{}) - objectMap["typeProperties"] = wls.TypeProperties - if wls.ConnectVia != nil { - objectMap["connectVia"] = wls.ConnectVia - } - if wls.Description != nil { - objectMap["description"] = wls.Description - } - if wls.Parameters != nil { - objectMap["parameters"] = wls.Parameters - } - if wls.Annotations != nil { - objectMap["annotations"] = wls.Annotations - } - if wls.Type != "" { - objectMap["type"] = wls.Type - } - for k, v := range wls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return &wls, true -} - -// AsODataLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for WebLinkedService. -func (wls WebLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &wls, true -} - -// UnmarshalJSON is the custom unmarshaler for WebLinkedService struct. -func (wls *WebLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - typeProperties, err := unmarshalBasicWebLinkedServiceTypeProperties(*v) - if err != nil { - return err - } - wls.TypeProperties = typeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wls.AdditionalProperties == nil { - wls.AdditionalProperties = make(map[string]interface{}) - } - wls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - wls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - wls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - wls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wls.Type = typeVar - } - } - } - - return nil -} - -// BasicWebLinkedServiceTypeProperties base definition of WebLinkedServiceTypeProperties, this typeProperties is -// polymorphic based on authenticationType, so not flattened in SDK models. -type BasicWebLinkedServiceTypeProperties interface { - AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) - AsWebBasicAuthentication() (*WebBasicAuthentication, bool) - AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) - AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) -} - -// WebLinkedServiceTypeProperties base definition of WebLinkedServiceTypeProperties, this typeProperties is -// polymorphic based on authenticationType, so not flattened in SDK models. -type WebLinkedServiceTypeProperties struct { - // URL - 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"` - // AuthenticationType - Possible values include: 'AuthenticationTypeWebLinkedServiceTypeProperties', 'AuthenticationTypeClientCertificate', 'AuthenticationTypeBasic', 'AuthenticationTypeAnonymous' - AuthenticationType AuthenticationType `json:"authenticationType,omitempty"` -} - -func unmarshalBasicWebLinkedServiceTypeProperties(body []byte) (BasicWebLinkedServiceTypeProperties, error) { - var m map[string]interface{} - err := json.Unmarshal(body, &m) - if err != nil { - return nil, err - } - - switch m["authenticationType"] { - case string(AuthenticationTypeClientCertificate): - var wcca WebClientCertificateAuthentication - err := json.Unmarshal(body, &wcca) - return wcca, err - case string(AuthenticationTypeBasic): - var wba WebBasicAuthentication - err := json.Unmarshal(body, &wba) - return wba, err - case string(AuthenticationTypeAnonymous): - var waa WebAnonymousAuthentication - err := json.Unmarshal(body, &waa) - return waa, err - default: - var wlstp WebLinkedServiceTypeProperties - err := json.Unmarshal(body, &wlstp) - return wlstp, err - } -} -func unmarshalBasicWebLinkedServiceTypePropertiesArray(body []byte) ([]BasicWebLinkedServiceTypeProperties, error) { - var rawMessages []*json.RawMessage - err := json.Unmarshal(body, &rawMessages) - if err != nil { - return nil, err - } - - wlstpArray := make([]BasicWebLinkedServiceTypeProperties, len(rawMessages)) - - for index, rawMessage := range rawMessages { - wlstp, err := unmarshalBasicWebLinkedServiceTypeProperties(*rawMessage) - if err != nil { - return nil, err - } - wlstpArray[index] = wlstp - } - return wlstpArray, nil -} - -// MarshalJSON is the custom marshaler for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - wlstp.AuthenticationType = AuthenticationTypeWebLinkedServiceTypeProperties - objectMap := make(map[string]interface{}) - if wlstp.URL != nil { - objectMap["url"] = wlstp.URL - } - if wlstp.AuthenticationType != "" { - objectMap["authenticationType"] = wlstp.AuthenticationType - } - return json.Marshal(objectMap) -} - -// AsWebClientCertificateAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsWebClientCertificateAuthentication() (*WebClientCertificateAuthentication, bool) { - return nil, false -} - -// AsWebBasicAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsWebBasicAuthentication() (*WebBasicAuthentication, bool) { - return nil, false -} - -// AsWebAnonymousAuthentication is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsWebAnonymousAuthentication() (*WebAnonymousAuthentication, bool) { - return nil, false -} - -// AsWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsWebLinkedServiceTypeProperties() (*WebLinkedServiceTypeProperties, bool) { - return &wlstp, true -} - -// AsBasicWebLinkedServiceTypeProperties is the BasicWebLinkedServiceTypeProperties implementation for WebLinkedServiceTypeProperties. -func (wlstp WebLinkedServiceTypeProperties) AsBasicWebLinkedServiceTypeProperties() (BasicWebLinkedServiceTypeProperties, bool) { - return &wlstp, true -} - -// WebSource a copy activity source for web page table. -type WebSource struct { - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebSource. -func (ws WebSource) MarshalJSON() ([]byte, error) { - ws.Type = TypeBasicCopySourceTypeWebSource - objectMap := make(map[string]interface{}) - if ws.AdditionalColumns != nil { - objectMap["additionalColumns"] = ws.AdditionalColumns - } - if ws.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = ws.SourceRetryCount - } - if ws.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = ws.SourceRetryWait - } - if ws.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = ws.MaxConcurrentConnections - } - if ws.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = ws.DisableMetricsCollection - } - if ws.Type != "" { - objectMap["type"] = ws.Type - } - for k, v := range ws.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsWebSource() (*WebSource, bool) { - return &ws, true -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for WebSource. -func (ws WebSource) AsBasicCopySource() (BasicCopySource, bool) { - return &ws, true -} - -// UnmarshalJSON is the custom unmarshaler for WebSource struct. -func (ws *WebSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - ws.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if ws.AdditionalProperties == nil { - ws.AdditionalProperties = make(map[string]interface{}) - } - ws.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - ws.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - ws.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - ws.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - ws.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - ws.Type = typeVar - } - } - } - - return nil -} - -// WebTableDataset the dataset points to a HTML table in the web page. -type WebTableDataset struct { - // WebTableDatasetTypeProperties - Web table dataset properties. - *WebTableDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WebTableDataset. -func (wtd WebTableDataset) MarshalJSON() ([]byte, error) { - wtd.Type = TypeBasicDatasetTypeWebTable - objectMap := make(map[string]interface{}) - if wtd.WebTableDatasetTypeProperties != nil { - objectMap["typeProperties"] = wtd.WebTableDatasetTypeProperties - } - if wtd.Description != nil { - objectMap["description"] = wtd.Description - } - if wtd.Structure != nil { - objectMap["structure"] = wtd.Structure - } - if wtd.Schema != nil { - objectMap["schema"] = wtd.Schema - } - if wtd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = wtd.LinkedServiceName - } - if wtd.Parameters != nil { - objectMap["parameters"] = wtd.Parameters - } - if wtd.Annotations != nil { - objectMap["annotations"] = wtd.Annotations - } - if wtd.Folder != nil { - objectMap["folder"] = wtd.Folder - } - if wtd.Type != "" { - objectMap["type"] = wtd.Type - } - for k, v := range wtd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return &wtd, true -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for WebTableDataset. -func (wtd WebTableDataset) AsBasicDataset() (BasicDataset, bool) { - return &wtd, true -} - -// UnmarshalJSON is the custom unmarshaler for WebTableDataset struct. -func (wtd *WebTableDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var webTableDatasetTypeProperties WebTableDatasetTypeProperties - err = json.Unmarshal(*v, &webTableDatasetTypeProperties) - if err != nil { - return err - } - wtd.WebTableDatasetTypeProperties = &webTableDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if wtd.AdditionalProperties == nil { - wtd.AdditionalProperties = make(map[string]interface{}) - } - wtd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wtd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - wtd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - wtd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - wtd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - wtd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - wtd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - wtd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wtd.Type = typeVar - } - } - } - - return nil -} - -// WebTableDatasetTypeProperties web table dataset properties. -type WebTableDatasetTypeProperties struct { - // Index - 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"` - // Path - The relative URL to the web page from the linked service URL. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` -} - -// WranglingDataFlow power Query data flow. -type WranglingDataFlow struct { - // PowerQueryTypeProperties - PowerQuery data flow type properties. - *PowerQueryTypeProperties `json:"typeProperties,omitempty"` - // Description - The description of the data flow. - Description *string `json:"description,omitempty"` - // Annotations - List of tags that can be used for describing the data flow. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this data flow is in. If not specified, Data flow will appear at the root level. - Folder *DataFlowFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDataFlowTypeDataFlow', 'TypeBasicDataFlowTypeWranglingDataFlow', 'TypeBasicDataFlowTypeFlowlet', 'TypeBasicDataFlowTypeMappingDataFlow' - Type TypeBasicDataFlow `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for WranglingDataFlow. -func (wdf WranglingDataFlow) MarshalJSON() ([]byte, error) { - wdf.Type = TypeBasicDataFlowTypeWranglingDataFlow - objectMap := make(map[string]interface{}) - if wdf.PowerQueryTypeProperties != nil { - objectMap["typeProperties"] = wdf.PowerQueryTypeProperties - } - if wdf.Description != nil { - objectMap["description"] = wdf.Description - } - if wdf.Annotations != nil { - objectMap["annotations"] = wdf.Annotations - } - if wdf.Folder != nil { - objectMap["folder"] = wdf.Folder - } - if wdf.Type != "" { - objectMap["type"] = wdf.Type - } - return json.Marshal(objectMap) -} - -// AsWranglingDataFlow is the BasicDataFlow implementation for WranglingDataFlow. -func (wdf WranglingDataFlow) AsWranglingDataFlow() (*WranglingDataFlow, bool) { - return &wdf, true -} - -// AsFlowlet is the BasicDataFlow implementation for WranglingDataFlow. -func (wdf WranglingDataFlow) AsFlowlet() (*Flowlet, bool) { - return nil, false -} - -// AsMappingDataFlow is the BasicDataFlow implementation for WranglingDataFlow. -func (wdf WranglingDataFlow) AsMappingDataFlow() (*MappingDataFlow, bool) { - return nil, false -} - -// AsDataFlow is the BasicDataFlow implementation for WranglingDataFlow. -func (wdf WranglingDataFlow) AsDataFlow() (*DataFlow, bool) { - return nil, false -} - -// AsBasicDataFlow is the BasicDataFlow implementation for WranglingDataFlow. -func (wdf WranglingDataFlow) AsBasicDataFlow() (BasicDataFlow, bool) { - return &wdf, true -} - -// UnmarshalJSON is the custom unmarshaler for WranglingDataFlow struct. -func (wdf *WranglingDataFlow) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var powerQueryTypeProperties PowerQueryTypeProperties - err = json.Unmarshal(*v, &powerQueryTypeProperties) - if err != nil { - return err - } - wdf.PowerQueryTypeProperties = &powerQueryTypeProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - wdf.Description = &description - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - wdf.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DataFlowFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - wdf.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataFlow - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - wdf.Type = typeVar - } - } - } - - return nil -} - -// XMLDataset xml dataset. -type XMLDataset struct { - // XMLDatasetTypeProperties - Xml dataset properties. - *XMLDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for XMLDataset. -func (xd XMLDataset) MarshalJSON() ([]byte, error) { - xd.Type = TypeBasicDatasetTypeXML - objectMap := make(map[string]interface{}) - if xd.XMLDatasetTypeProperties != nil { - objectMap["typeProperties"] = xd.XMLDatasetTypeProperties - } - if xd.Description != nil { - objectMap["description"] = xd.Description - } - if xd.Structure != nil { - objectMap["structure"] = xd.Structure - } - if xd.Schema != nil { - objectMap["schema"] = xd.Schema - } - if xd.LinkedServiceName != nil { - objectMap["linkedServiceName"] = xd.LinkedServiceName - } - if xd.Parameters != nil { - objectMap["parameters"] = xd.Parameters - } - if xd.Annotations != nil { - objectMap["annotations"] = xd.Annotations - } - if xd.Folder != nil { - objectMap["folder"] = xd.Folder - } - if xd.Type != "" { - objectMap["type"] = xd.Type - } - for k, v := range xd.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsXMLDataset() (*XMLDataset, bool) { - return &xd, true -} - -// AsJSONDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for XMLDataset. -func (xd XMLDataset) AsBasicDataset() (BasicDataset, bool) { - return &xd, true -} - -// UnmarshalJSON is the custom unmarshaler for XMLDataset struct. -func (xd *XMLDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var XMLDatasetTypeProperties XMLDatasetTypeProperties - err = json.Unmarshal(*v, &XMLDatasetTypeProperties) - if err != nil { - return err - } - xd.XMLDatasetTypeProperties = &XMLDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if xd.AdditionalProperties == nil { - xd.AdditionalProperties = make(map[string]interface{}) - } - xd.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - xd.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - xd.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - xd.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - xd.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - xd.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - xd.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - xd.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - xd.Type = typeVar - } - } - } - - return nil -} - -// XMLDatasetTypeProperties xml dataset properties. -type XMLDatasetTypeProperties struct { - // Location - The location of the json data storage. - Location BasicDatasetLocation `json:"location,omitempty"` - // EncodingName - 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"` - // NullValue - The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` - // Compression - The data compression method used for the json dataset. - Compression *DatasetCompression `json:"compression,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for XMLDatasetTypeProperties struct. -func (xdtp *XMLDatasetTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "location": - if v != nil { - location, err := unmarshalBasicDatasetLocation(*v) - if err != nil { - return err - } - xdtp.Location = location - } - case "encodingName": - if v != nil { - var encodingName interface{} - err = json.Unmarshal(*v, &encodingName) - if err != nil { - return err - } - xdtp.EncodingName = encodingName - } - case "nullValue": - if v != nil { - var nullValue interface{} - err = json.Unmarshal(*v, &nullValue) - if err != nil { - return err - } - xdtp.NullValue = nullValue - } - case "compression": - if v != nil { - var compression DatasetCompression - err = json.Unmarshal(*v, &compression) - if err != nil { - return err - } - xdtp.Compression = &compression - } - } - } - - return nil -} - -// XMLReadSettings xml read settings. -type XMLReadSettings struct { - // CompressionProperties - Compression settings. - CompressionProperties BasicCompressionReadSettings `json:"compressionProperties,omitempty"` - // ValidationMode - 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"` - // DetectDataType - Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). - DetectDataType interface{} `json:"detectDataType,omitempty"` - // Namespaces - Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). - Namespaces interface{} `json:"namespaces,omitempty"` - // NamespacePrefixes - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicFormatReadSettingsTypeFormatReadSettings', 'TypeBasicFormatReadSettingsTypeBinaryReadSettings', 'TypeBasicFormatReadSettingsTypeXMLReadSettings', 'TypeBasicFormatReadSettingsTypeJSONReadSettings', 'TypeBasicFormatReadSettingsTypeDelimitedTextReadSettings', 'TypeBasicFormatReadSettingsTypeParquetReadSettings' - Type TypeBasicFormatReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for XMLReadSettings. -func (xrs XMLReadSettings) MarshalJSON() ([]byte, error) { - xrs.Type = TypeBasicFormatReadSettingsTypeXMLReadSettings - objectMap := make(map[string]interface{}) - objectMap["compressionProperties"] = xrs.CompressionProperties - if xrs.ValidationMode != nil { - objectMap["validationMode"] = xrs.ValidationMode - } - if xrs.DetectDataType != nil { - objectMap["detectDataType"] = xrs.DetectDataType - } - if xrs.Namespaces != nil { - objectMap["namespaces"] = xrs.Namespaces - } - if xrs.NamespacePrefixes != nil { - objectMap["namespacePrefixes"] = xrs.NamespacePrefixes - } - if xrs.Type != "" { - objectMap["type"] = xrs.Type - } - for k, v := range xrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsBinaryReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsBinaryReadSettings() (*BinaryReadSettings, bool) { - return nil, false -} - -// AsXMLReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsXMLReadSettings() (*XMLReadSettings, bool) { - return &xrs, true -} - -// AsJSONReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsJSONReadSettings() (*JSONReadSettings, bool) { - return nil, false -} - -// AsDelimitedTextReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsDelimitedTextReadSettings() (*DelimitedTextReadSettings, bool) { - return nil, false -} - -// AsParquetReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsParquetReadSettings() (*ParquetReadSettings, bool) { - return nil, false -} - -// AsFormatReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsFormatReadSettings() (*FormatReadSettings, bool) { - return nil, false -} - -// AsBasicFormatReadSettings is the BasicFormatReadSettings implementation for XMLReadSettings. -func (xrs XMLReadSettings) AsBasicFormatReadSettings() (BasicFormatReadSettings, bool) { - return &xrs, true -} - -// UnmarshalJSON is the custom unmarshaler for XMLReadSettings struct. -func (xrs *XMLReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "compressionProperties": - if v != nil { - compressionProperties, err := unmarshalBasicCompressionReadSettings(*v) - if err != nil { - return err - } - xrs.CompressionProperties = compressionProperties - } - case "validationMode": - if v != nil { - var validationMode interface{} - err = json.Unmarshal(*v, &validationMode) - if err != nil { - return err - } - xrs.ValidationMode = validationMode - } - case "detectDataType": - if v != nil { - var detectDataType interface{} - err = json.Unmarshal(*v, &detectDataType) - if err != nil { - return err - } - xrs.DetectDataType = detectDataType - } - case "namespaces": - if v != nil { - var namespaces interface{} - err = json.Unmarshal(*v, &namespaces) - if err != nil { - return err - } - xrs.Namespaces = namespaces - } - case "namespacePrefixes": - if v != nil { - var namespacePrefixes interface{} - err = json.Unmarshal(*v, &namespacePrefixes) - if err != nil { - return err - } - xrs.NamespacePrefixes = namespacePrefixes - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if xrs.AdditionalProperties == nil { - xrs.AdditionalProperties = make(map[string]interface{}) - } - xrs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicFormatReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - xrs.Type = typeVar - } - } - } - - return nil -} - -// XMLSource a copy activity Xml source. -type XMLSource struct { - // StoreSettings - Xml store settings. - StoreSettings BasicStoreReadSettings `json:"storeSettings,omitempty"` - // FormatSettings - Xml format settings. - FormatSettings *XMLReadSettings `json:"formatSettings,omitempty"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for XMLSource. -func (xs XMLSource) MarshalJSON() ([]byte, error) { - xs.Type = TypeBasicCopySourceTypeXMLSource - objectMap := make(map[string]interface{}) - objectMap["storeSettings"] = xs.StoreSettings - if xs.FormatSettings != nil { - objectMap["formatSettings"] = xs.FormatSettings - } - if xs.AdditionalColumns != nil { - objectMap["additionalColumns"] = xs.AdditionalColumns - } - if xs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = xs.SourceRetryCount - } - if xs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = xs.SourceRetryWait - } - if xs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = xs.MaxConcurrentConnections - } - if xs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = xs.DisableMetricsCollection - } - if xs.Type != "" { - objectMap["type"] = xs.Type - } - for k, v := range xs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return nil, false -} - -// AsBinarySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsXMLSource() (*XMLSource, bool) { - return &xs, true -} - -// AsJSONSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for XMLSource. -func (xs XMLSource) AsBasicCopySource() (BasicCopySource, bool) { - return &xs, true -} - -// UnmarshalJSON is the custom unmarshaler for XMLSource struct. -func (xs *XMLSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "storeSettings": - if v != nil { - storeSettings, err := unmarshalBasicStoreReadSettings(*v) - if err != nil { - return err - } - xs.StoreSettings = storeSettings - } - case "formatSettings": - if v != nil { - var formatSettings XMLReadSettings - err = json.Unmarshal(*v, &formatSettings) - if err != nil { - return err - } - xs.FormatSettings = &formatSettings - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - xs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if xs.AdditionalProperties == nil { - xs.AdditionalProperties = make(map[string]interface{}) - } - xs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - xs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - xs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - xs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - xs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - xs.Type = typeVar - } - } - } - - return nil -} - -// XeroLinkedService xero Service linked service. -type XeroLinkedService struct { - // XeroLinkedServiceTypeProperties - Xero Service linked service properties. - *XeroLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for XeroLinkedService. -func (xls XeroLinkedService) MarshalJSON() ([]byte, error) { - xls.Type = TypeBasicLinkedServiceTypeXero - objectMap := make(map[string]interface{}) - if xls.XeroLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = xls.XeroLinkedServiceTypeProperties - } - if xls.ConnectVia != nil { - objectMap["connectVia"] = xls.ConnectVia - } - if xls.Description != nil { - objectMap["description"] = xls.Description - } - if xls.Parameters != nil { - objectMap["parameters"] = xls.Parameters - } - if xls.Annotations != nil { - objectMap["annotations"] = xls.Annotations - } - if xls.Type != "" { - objectMap["type"] = xls.Type - } - for k, v := range xls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return &xls, true -} - -// AsSquareLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for XeroLinkedService. -func (xls XeroLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &xls, true -} - -// UnmarshalJSON is the custom unmarshaler for XeroLinkedService struct. -func (xls *XeroLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var xeroLinkedServiceTypeProperties XeroLinkedServiceTypeProperties - err = json.Unmarshal(*v, &xeroLinkedServiceTypeProperties) - if err != nil { - return err - } - xls.XeroLinkedServiceTypeProperties = &xeroLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if xls.AdditionalProperties == nil { - xls.AdditionalProperties = make(map[string]interface{}) - } - xls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - xls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - xls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - xls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - xls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - xls.Type = typeVar - } - } - } - - return nil -} - -// XeroLinkedServiceTypeProperties xero Service linked service properties. -type XeroLinkedServiceTypeProperties struct { - // ConnectionProperties - 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"` - // Host - The endpoint of the Xero server. (i.e. api.xero.com) - Host interface{} `json:"host,omitempty"` - // ConsumerKey - The consumer key associated with the Xero application. - ConsumerKey BasicSecretBase `json:"consumerKey,omitempty"` - // PrivateKey - 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 BasicSecretBase `json:"privateKey,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for XeroLinkedServiceTypeProperties struct. -func (xlstp *XeroLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionProperties": - if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) - if err != nil { - return err - } - xlstp.ConnectionProperties = connectionProperties - } - case "host": - if v != nil { - var host interface{} - err = json.Unmarshal(*v, &host) - if err != nil { - return err - } - xlstp.Host = host - } - case "consumerKey": - if v != nil { - consumerKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - xlstp.ConsumerKey = consumerKey - } - case "privateKey": - if v != nil { - privateKey, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - xlstp.PrivateKey = privateKey - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - xlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - xlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - xlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - xlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// XeroObjectDataset xero Service dataset. -type XeroObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for XeroObjectDataset. -func (xod XeroObjectDataset) MarshalJSON() ([]byte, error) { - xod.Type = TypeBasicDatasetTypeXeroObject - objectMap := make(map[string]interface{}) - if xod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = xod.GenericDatasetTypeProperties - } - if xod.Description != nil { - objectMap["description"] = xod.Description - } - if xod.Structure != nil { - objectMap["structure"] = xod.Structure - } - if xod.Schema != nil { - objectMap["schema"] = xod.Schema - } - if xod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = xod.LinkedServiceName - } - if xod.Parameters != nil { - objectMap["parameters"] = xod.Parameters - } - if xod.Annotations != nil { - objectMap["annotations"] = xod.Annotations - } - if xod.Folder != nil { - objectMap["folder"] = xod.Folder - } - if xod.Type != "" { - objectMap["type"] = xod.Type - } - for k, v := range xod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return nil, false -} - -// AsXeroObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return &xod, true -} - -// AsSquareObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for XeroObjectDataset. -func (xod XeroObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &xod, true -} - -// UnmarshalJSON is the custom unmarshaler for XeroObjectDataset struct. -func (xod *XeroObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - xod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if xod.AdditionalProperties == nil { - xod.AdditionalProperties = make(map[string]interface{}) - } - xod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - xod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - xod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - xod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - xod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - xod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - xod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - xod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - xod.Type = typeVar - } - } - } - - return nil -} - -// XeroSource a copy activity Xero Service source. -type XeroSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for XeroSource. -func (xs XeroSource) MarshalJSON() ([]byte, error) { - xs.Type = TypeBasicCopySourceTypeXeroSource - objectMap := make(map[string]interface{}) - if xs.Query != nil { - objectMap["query"] = xs.Query - } - if xs.QueryTimeout != nil { - objectMap["queryTimeout"] = xs.QueryTimeout - } - if xs.AdditionalColumns != nil { - objectMap["additionalColumns"] = xs.AdditionalColumns - } - if xs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = xs.SourceRetryCount - } - if xs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = xs.SourceRetryWait - } - if xs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = xs.MaxConcurrentConnections - } - if xs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = xs.DisableMetricsCollection - } - if xs.Type != "" { - objectMap["type"] = xs.Type - } - for k, v := range xs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsZohoSource() (*ZohoSource, bool) { - return nil, false -} - -// AsXeroSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsXeroSource() (*XeroSource, bool) { - return &xs, true -} - -// AsSquareSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &xs, true -} - -// AsBinarySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for XeroSource. -func (xs XeroSource) AsBasicCopySource() (BasicCopySource, bool) { - return &xs, true -} - -// UnmarshalJSON is the custom unmarshaler for XeroSource struct. -func (xs *XeroSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - xs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - xs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - xs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if xs.AdditionalProperties == nil { - xs.AdditionalProperties = make(map[string]interface{}) - } - xs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - xs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - xs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - xs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - xs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - xs.Type = typeVar - } - } - } - - return nil -} - -// ZendeskLinkedService linked service for Zendesk. -type ZendeskLinkedService struct { - // ZendeskLinkedServiceTypeProperties - Zendesk linked service properties. - *ZendeskLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ZendeskLinkedService. -func (zls ZendeskLinkedService) MarshalJSON() ([]byte, error) { - zls.Type = TypeBasicLinkedServiceTypeZendesk - objectMap := make(map[string]interface{}) - if zls.ZendeskLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = zls.ZendeskLinkedServiceTypeProperties - } - if zls.ConnectVia != nil { - objectMap["connectVia"] = zls.ConnectVia - } - if zls.Description != nil { - objectMap["description"] = zls.Description - } - if zls.Parameters != nil { - objectMap["parameters"] = zls.Parameters - } - if zls.Annotations != nil { - objectMap["annotations"] = zls.Annotations - } - if zls.Type != "" { - objectMap["type"] = zls.Type - } - for k, v := range zls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return nil, false -} - -// AsXeroLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return &zls, true -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for ZendeskLinkedService. -func (zls ZendeskLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &zls, true -} - -// UnmarshalJSON is the custom unmarshaler for ZendeskLinkedService struct. -func (zls *ZendeskLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var zendeskLinkedServiceTypeProperties ZendeskLinkedServiceTypeProperties - err = json.Unmarshal(*v, &zendeskLinkedServiceTypeProperties) - if err != nil { - return err - } - zls.ZendeskLinkedServiceTypeProperties = &zendeskLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if zls.AdditionalProperties == nil { - zls.AdditionalProperties = make(map[string]interface{}) - } - zls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - zls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - zls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - zls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - zls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - zls.Type = typeVar - } - } - } - - return nil -} - -// ZendeskLinkedServiceTypeProperties zendesk linked service type properties. -type ZendeskLinkedServiceTypeProperties struct { - // AuthenticationType - The authentication type to use. Possible values include: 'ZendeskAuthenticationTypeBasic', 'ZendeskAuthenticationTypeToken' - AuthenticationType ZendeskAuthenticationType `json:"authenticationType,omitempty"` - // URL - The url to connect Zendesk source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` - // UserName - The username of the Zendesk source. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` - // Password - The password of the Zendesk source. - Password BasicSecretBase `json:"password,omitempty"` - // APIToken - The api token for the Zendesk source. - APIToken BasicSecretBase `json:"apiToken,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ZendeskLinkedServiceTypeProperties struct. -func (zlstp *ZendeskLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "authenticationType": - if v != nil { - var authenticationType ZendeskAuthenticationType - err = json.Unmarshal(*v, &authenticationType) - if err != nil { - return err - } - zlstp.AuthenticationType = authenticationType - } - case "url": - if v != nil { - var URL interface{} - err = json.Unmarshal(*v, &URL) - if err != nil { - return err - } - zlstp.URL = URL - } - case "userName": - if v != nil { - var userName interface{} - err = json.Unmarshal(*v, &userName) - if err != nil { - return err - } - zlstp.UserName = userName - } - case "password": - if v != nil { - password, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - zlstp.Password = password - } - case "apiToken": - if v != nil { - APIToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - zlstp.APIToken = APIToken - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - zlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// ZipDeflateReadSettings the ZipDeflate compression read settings. -type ZipDeflateReadSettings struct { - // PreserveZipFileNameAsFolder - Preserve the zip file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveZipFileNameAsFolder interface{} `json:"preserveZipFileNameAsFolder,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Type - Possible values include: 'TypeBasicCompressionReadSettingsTypeCompressionReadSettings', 'TypeBasicCompressionReadSettingsTypeTarGZipReadSettings', 'TypeBasicCompressionReadSettingsTypeTarReadSettings', 'TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings' - Type TypeBasicCompressionReadSettings `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ZipDeflateReadSettings. -func (zdrs ZipDeflateReadSettings) MarshalJSON() ([]byte, error) { - zdrs.Type = TypeBasicCompressionReadSettingsTypeZipDeflateReadSettings - objectMap := make(map[string]interface{}) - if zdrs.PreserveZipFileNameAsFolder != nil { - objectMap["preserveZipFileNameAsFolder"] = zdrs.PreserveZipFileNameAsFolder - } - if zdrs.Type != "" { - objectMap["type"] = zdrs.Type - } - for k, v := range zdrs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsTarGZipReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. -func (zdrs ZipDeflateReadSettings) AsTarGZipReadSettings() (*TarGZipReadSettings, bool) { - return nil, false -} - -// AsTarReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. -func (zdrs ZipDeflateReadSettings) AsTarReadSettings() (*TarReadSettings, bool) { - return nil, false -} - -// AsZipDeflateReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. -func (zdrs ZipDeflateReadSettings) AsZipDeflateReadSettings() (*ZipDeflateReadSettings, bool) { - return &zdrs, true -} - -// AsCompressionReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. -func (zdrs ZipDeflateReadSettings) AsCompressionReadSettings() (*CompressionReadSettings, bool) { - return nil, false -} - -// AsBasicCompressionReadSettings is the BasicCompressionReadSettings implementation for ZipDeflateReadSettings. -func (zdrs ZipDeflateReadSettings) AsBasicCompressionReadSettings() (BasicCompressionReadSettings, bool) { - return &zdrs, true -} - -// UnmarshalJSON is the custom unmarshaler for ZipDeflateReadSettings struct. -func (zdrs *ZipDeflateReadSettings) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "preserveZipFileNameAsFolder": - if v != nil { - var preserveZipFileNameAsFolder interface{} - err = json.Unmarshal(*v, &preserveZipFileNameAsFolder) - if err != nil { - return err - } - zdrs.PreserveZipFileNameAsFolder = preserveZipFileNameAsFolder - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if zdrs.AdditionalProperties == nil { - zdrs.AdditionalProperties = make(map[string]interface{}) - } - zdrs.AdditionalProperties[k] = additionalProperties - } - case "type": - if v != nil { - var typeVar TypeBasicCompressionReadSettings - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - zdrs.Type = typeVar - } - } - } - - return nil -} - -// ZohoLinkedService zoho server linked service. -type ZohoLinkedService struct { - // ZohoLinkedServiceTypeProperties - Zoho server linked service properties. - *ZohoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // ConnectVia - The integration runtime reference. - ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` - // Description - Linked service description. - Description *string `json:"description,omitempty"` - // Parameters - Parameters for linked service. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the linked service. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Type - Possible values include: 'TypeBasicLinkedServiceTypeLinkedService', 'TypeBasicLinkedServiceTypeWarehouse', 'TypeBasicLinkedServiceTypeSalesforceServiceCloudV2', 'TypeBasicLinkedServiceTypeSalesforceV2', 'TypeBasicLinkedServiceTypeLakeHouse', 'TypeBasicLinkedServiceTypeAzureSynapseArtifacts', 'TypeBasicLinkedServiceTypeSharePointOnlineList', 'TypeBasicLinkedServiceTypeSnowflakeV2', 'TypeBasicLinkedServiceTypeSnowflake', 'TypeBasicLinkedServiceTypeAzureFunction', 'TypeBasicLinkedServiceTypeAzureDataExplorer', 'TypeBasicLinkedServiceTypeSapTable', 'TypeBasicLinkedServiceTypeGoogleAdWords', 'TypeBasicLinkedServiceTypeOracleServiceCloud', 'TypeBasicLinkedServiceTypeDynamicsAX', 'TypeBasicLinkedServiceTypeResponsys', 'TypeBasicLinkedServiceTypeAzureDatabricksDeltaLake', 'TypeBasicLinkedServiceTypeAzureDatabricks', 'TypeBasicLinkedServiceTypeAzureDataLakeAnalytics', 'TypeBasicLinkedServiceTypeHDInsightOnDemand', 'TypeBasicLinkedServiceTypeSalesforceMarketingCloud', 'TypeBasicLinkedServiceTypeNetezza', 'TypeBasicLinkedServiceTypeVertica', 'TypeBasicLinkedServiceTypeZoho', 'TypeBasicLinkedServiceTypeXero', 'TypeBasicLinkedServiceTypeSquare', 'TypeBasicLinkedServiceTypeSpark', 'TypeBasicLinkedServiceTypeShopify', 'TypeBasicLinkedServiceTypeServiceNow', 'TypeBasicLinkedServiceTypeQuickBooks', 'TypeBasicLinkedServiceTypePresto', 'TypeBasicLinkedServiceTypePhoenix', 'TypeBasicLinkedServiceTypePaypal', 'TypeBasicLinkedServiceTypeMarketo', 'TypeBasicLinkedServiceTypeAzureMariaDB', 'TypeBasicLinkedServiceTypeMariaDB', 'TypeBasicLinkedServiceTypeMagento', 'TypeBasicLinkedServiceTypeJira', 'TypeBasicLinkedServiceTypeImpala', 'TypeBasicLinkedServiceTypeHubspot', 'TypeBasicLinkedServiceTypeHive', 'TypeBasicLinkedServiceTypeHBase', 'TypeBasicLinkedServiceTypeGreenplum', 'TypeBasicLinkedServiceTypeGoogleBigQuery', 'TypeBasicLinkedServiceTypeEloqua', 'TypeBasicLinkedServiceTypeDrill', 'TypeBasicLinkedServiceTypeCouchbase', 'TypeBasicLinkedServiceTypeConcur', 'TypeBasicLinkedServiceTypeAzurePostgreSQL', 'TypeBasicLinkedServiceTypeAmazonMWS', 'TypeBasicLinkedServiceTypeSapHana', 'TypeBasicLinkedServiceTypeSapBW', 'TypeBasicLinkedServiceTypeSftp', 'TypeBasicLinkedServiceTypeFtpServer', 'TypeBasicLinkedServiceTypeHTTPServer', 'TypeBasicLinkedServiceTypeAzureSearch', 'TypeBasicLinkedServiceTypeCustomDataSource', 'TypeBasicLinkedServiceTypeAmazonRedshift', 'TypeBasicLinkedServiceTypeAmazonS3', 'TypeBasicLinkedServiceTypeGoogleSheets', 'TypeBasicLinkedServiceTypeTwilio', 'TypeBasicLinkedServiceTypeAsana', 'TypeBasicLinkedServiceTypeAppFigures', 'TypeBasicLinkedServiceTypeDataworld', 'TypeBasicLinkedServiceTypeZendesk', 'TypeBasicLinkedServiceTypeSmartsheet', 'TypeBasicLinkedServiceTypeQuickbase', 'TypeBasicLinkedServiceTypeTeamDesk', 'TypeBasicLinkedServiceTypeRestService', 'TypeBasicLinkedServiceTypeSapOdp', 'TypeBasicLinkedServiceTypeSapOpenHub', 'TypeBasicLinkedServiceTypeSapEcc', 'TypeBasicLinkedServiceTypeSapCloudForCustomer', 'TypeBasicLinkedServiceTypeSalesforceServiceCloud', 'TypeBasicLinkedServiceTypeSalesforce', 'TypeBasicLinkedServiceTypeOffice365', 'TypeBasicLinkedServiceTypeAzureBlobFS', 'TypeBasicLinkedServiceTypeAzureDataLakeStore', 'TypeBasicLinkedServiceTypeCosmosDbMongoDbAPI', 'TypeBasicLinkedServiceTypeMongoDbV2', 'TypeBasicLinkedServiceTypeMongoDbAtlas', 'TypeBasicLinkedServiceTypeMongoDb', 'TypeBasicLinkedServiceTypeCassandra', 'TypeBasicLinkedServiceTypeWeb', 'TypeBasicLinkedServiceTypeOData', 'TypeBasicLinkedServiceTypeHdfs', 'TypeBasicLinkedServiceTypeMicrosoftAccess', 'TypeBasicLinkedServiceTypeInformix', 'TypeBasicLinkedServiceTypeOdbc', 'TypeBasicLinkedServiceTypeAzureMLService', 'TypeBasicLinkedServiceTypeAzureML', 'TypeBasicLinkedServiceTypeTeradata', 'TypeBasicLinkedServiceTypeDb2', 'TypeBasicLinkedServiceTypeSybase', 'TypeBasicLinkedServiceTypePostgreSQL', 'TypeBasicLinkedServiceTypeMySQL', 'TypeBasicLinkedServiceTypeAzureMySQL', 'TypeBasicLinkedServiceTypeAmazonRdsForOracle', 'TypeBasicLinkedServiceTypeOracle', 'TypeBasicLinkedServiceTypeGoogleCloudStorage', 'TypeBasicLinkedServiceTypeOracleCloudStorage', 'TypeBasicLinkedServiceTypeAmazonS3Compatible', 'TypeBasicLinkedServiceTypeAzureFileStorage', 'TypeBasicLinkedServiceTypeFileServer', 'TypeBasicLinkedServiceTypeHDInsight', 'TypeBasicLinkedServiceTypeCommonDataServiceForApps', 'TypeBasicLinkedServiceTypeDynamicsCrm', 'TypeBasicLinkedServiceTypeDynamics', 'TypeBasicLinkedServiceTypeCosmosDb', 'TypeBasicLinkedServiceTypeAzureKeyVault', 'TypeBasicLinkedServiceTypeAzureBatch', 'TypeBasicLinkedServiceTypeAzureSQLMI', 'TypeBasicLinkedServiceTypeAzureSQLDatabase', 'TypeBasicLinkedServiceTypeAmazonRdsForSQLServer', 'TypeBasicLinkedServiceTypeSQLServer', 'TypeBasicLinkedServiceTypeAzureSQLDW', 'TypeBasicLinkedServiceTypeAzureTableStorage', 'TypeBasicLinkedServiceTypeAzureBlobStorage', 'TypeBasicLinkedServiceTypeAzureStorage' - Type TypeBasicLinkedService `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ZohoLinkedService. -func (zls ZohoLinkedService) MarshalJSON() ([]byte, error) { - zls.Type = TypeBasicLinkedServiceTypeZoho - objectMap := make(map[string]interface{}) - if zls.ZohoLinkedServiceTypeProperties != nil { - objectMap["typeProperties"] = zls.ZohoLinkedServiceTypeProperties - } - if zls.ConnectVia != nil { - objectMap["connectVia"] = zls.ConnectVia - } - if zls.Description != nil { - objectMap["description"] = zls.Description - } - if zls.Parameters != nil { - objectMap["parameters"] = zls.Parameters - } - if zls.Annotations != nil { - objectMap["annotations"] = zls.Annotations - } - if zls.Type != "" { - objectMap["type"] = zls.Type - } - for k, v := range zls.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsWarehouseLinkedService() (*WarehouseLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSalesforceServiceCloudV2LinkedService() (*SalesforceServiceCloudV2LinkedService, bool) { - return nil, false -} - -// AsSalesforceV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSalesforceV2LinkedService() (*SalesforceV2LinkedService, bool) { - return nil, false -} - -// AsLakeHouseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsLakeHouseLinkedService() (*LakeHouseLinkedService, bool) { - return nil, false -} - -// AsAzureSynapseArtifactsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureSynapseArtifactsLinkedService() (*AzureSynapseArtifactsLinkedService, bool) { - return nil, false -} - -// AsSharePointOnlineListLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSharePointOnlineListLinkedService() (*SharePointOnlineListLinkedService, bool) { - return nil, false -} - -// AsSnowflakeV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSnowflakeV2LinkedService() (*SnowflakeV2LinkedService, bool) { - return nil, false -} - -// AsSnowflakeLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSnowflakeLinkedService() (*SnowflakeLinkedService, bool) { - return nil, false -} - -// AsAzureFunctionLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureFunctionLinkedService() (*AzureFunctionLinkedService, bool) { - return nil, false -} - -// AsAzureDataExplorerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureDataExplorerLinkedService() (*AzureDataExplorerLinkedService, bool) { - return nil, false -} - -// AsSapTableLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapTableLinkedService() (*SapTableLinkedService, bool) { - return nil, false -} - -// AsGoogleAdWordsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsGoogleAdWordsLinkedService() (*GoogleAdWordsLinkedService, bool) { - return nil, false -} - -// AsOracleServiceCloudLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsOracleServiceCloudLinkedService() (*OracleServiceCloudLinkedService, bool) { - return nil, false -} - -// AsDynamicsAXLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDynamicsAXLinkedService() (*DynamicsAXLinkedService, bool) { - return nil, false -} - -// AsResponsysLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsResponsysLinkedService() (*ResponsysLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureDatabricksDeltaLakeLinkedService() (*AzureDatabricksDeltaLakeLinkedService, bool) { - return nil, false -} - -// AsAzureDatabricksLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureDatabricksLinkedService() (*AzureDatabricksLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeAnalyticsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureDataLakeAnalyticsLinkedService() (*AzureDataLakeAnalyticsLinkedService, bool) { - return nil, false -} - -// AsHDInsightOnDemandLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHDInsightOnDemandLinkedService() (*HDInsightOnDemandLinkedService, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSalesforceMarketingCloudLinkedService() (*SalesforceMarketingCloudLinkedService, bool) { - return nil, false -} - -// AsNetezzaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsNetezzaLinkedService() (*NetezzaLinkedService, bool) { - return nil, false -} - -// AsVerticaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsVerticaLinkedService() (*VerticaLinkedService, bool) { - return nil, false -} - -// AsZohoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsZohoLinkedService() (*ZohoLinkedService, bool) { - return &zls, true -} - -// AsXeroLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsXeroLinkedService() (*XeroLinkedService, bool) { - return nil, false -} - -// AsSquareLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSquareLinkedService() (*SquareLinkedService, bool) { - return nil, false -} - -// AsSparkLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSparkLinkedService() (*SparkLinkedService, bool) { - return nil, false -} - -// AsShopifyLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsShopifyLinkedService() (*ShopifyLinkedService, bool) { - return nil, false -} - -// AsServiceNowLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsServiceNowLinkedService() (*ServiceNowLinkedService, bool) { - return nil, false -} - -// AsQuickBooksLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsQuickBooksLinkedService() (*QuickBooksLinkedService, bool) { - return nil, false -} - -// AsPrestoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsPrestoLinkedService() (*PrestoLinkedService, bool) { - return nil, false -} - -// AsPhoenixLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsPhoenixLinkedService() (*PhoenixLinkedService, bool) { - return nil, false -} - -// AsPaypalLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsPaypalLinkedService() (*PaypalLinkedService, bool) { - return nil, false -} - -// AsMarketoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMarketoLinkedService() (*MarketoLinkedService, bool) { - return nil, false -} - -// AsAzureMariaDBLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureMariaDBLinkedService() (*AzureMariaDBLinkedService, bool) { - return nil, false -} - -// AsMariaDBLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMariaDBLinkedService() (*MariaDBLinkedService, bool) { - return nil, false -} - -// AsMagentoLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMagentoLinkedService() (*MagentoLinkedService, bool) { - return nil, false -} - -// AsJiraLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsJiraLinkedService() (*JiraLinkedService, bool) { - return nil, false -} - -// AsImpalaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsImpalaLinkedService() (*ImpalaLinkedService, bool) { - return nil, false -} - -// AsHubspotLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHubspotLinkedService() (*HubspotLinkedService, bool) { - return nil, false -} - -// AsHiveLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHiveLinkedService() (*HiveLinkedService, bool) { - return nil, false -} - -// AsHBaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHBaseLinkedService() (*HBaseLinkedService, bool) { - return nil, false -} - -// AsGreenplumLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsGreenplumLinkedService() (*GreenplumLinkedService, bool) { - return nil, false -} - -// AsGoogleBigQueryLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsGoogleBigQueryLinkedService() (*GoogleBigQueryLinkedService, bool) { - return nil, false -} - -// AsEloquaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsEloquaLinkedService() (*EloquaLinkedService, bool) { - return nil, false -} - -// AsDrillLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDrillLinkedService() (*DrillLinkedService, bool) { - return nil, false -} - -// AsCouchbaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCouchbaseLinkedService() (*CouchbaseLinkedService, bool) { - return nil, false -} - -// AsConcurLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsConcurLinkedService() (*ConcurLinkedService, bool) { - return nil, false -} - -// AsAzurePostgreSQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzurePostgreSQLLinkedService() (*AzurePostgreSQLLinkedService, bool) { - return nil, false -} - -// AsAmazonMWSLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonMWSLinkedService() (*AmazonMWSLinkedService, bool) { - return nil, false -} - -// AsSapHanaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapHanaLinkedService() (*SapHanaLinkedService, bool) { - return nil, false -} - -// AsSapBWLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapBWLinkedService() (*SapBWLinkedService, bool) { - return nil, false -} - -// AsSftpServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSftpServerLinkedService() (*SftpServerLinkedService, bool) { - return nil, false -} - -// AsFtpServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsFtpServerLinkedService() (*FtpServerLinkedService, bool) { - return nil, false -} - -// AsHTTPLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHTTPLinkedService() (*HTTPLinkedService, bool) { - return nil, false -} - -// AsAzureSearchLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureSearchLinkedService() (*AzureSearchLinkedService, bool) { - return nil, false -} - -// AsCustomDataSourceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCustomDataSourceLinkedService() (*CustomDataSourceLinkedService, bool) { - return nil, false -} - -// AsAmazonRedshiftLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonRedshiftLinkedService() (*AmazonRedshiftLinkedService, bool) { - return nil, false -} - -// AsAmazonS3LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonS3LinkedService() (*AmazonS3LinkedService, bool) { - return nil, false -} - -// AsGoogleSheetsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsGoogleSheetsLinkedService() (*GoogleSheetsLinkedService, bool) { - return nil, false -} - -// AsTwilioLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsTwilioLinkedService() (*TwilioLinkedService, bool) { - return nil, false -} - -// AsAsanaLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAsanaLinkedService() (*AsanaLinkedService, bool) { - return nil, false -} - -// AsAppFiguresLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAppFiguresLinkedService() (*AppFiguresLinkedService, bool) { - return nil, false -} - -// AsDataworldLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDataworldLinkedService() (*DataworldLinkedService, bool) { - return nil, false -} - -// AsZendeskLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsZendeskLinkedService() (*ZendeskLinkedService, bool) { - return nil, false -} - -// AsSmartsheetLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSmartsheetLinkedService() (*SmartsheetLinkedService, bool) { - return nil, false -} - -// AsQuickbaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsQuickbaseLinkedService() (*QuickbaseLinkedService, bool) { - return nil, false -} - -// AsTeamDeskLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsTeamDeskLinkedService() (*TeamDeskLinkedService, bool) { - return nil, false -} - -// AsRestServiceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsRestServiceLinkedService() (*RestServiceLinkedService, bool) { - return nil, false -} - -// AsSapOdpLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapOdpLinkedService() (*SapOdpLinkedService, bool) { - return nil, false -} - -// AsSapOpenHubLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapOpenHubLinkedService() (*SapOpenHubLinkedService, bool) { - return nil, false -} - -// AsSapEccLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapEccLinkedService() (*SapEccLinkedService, bool) { - return nil, false -} - -// AsSapCloudForCustomerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSapCloudForCustomerLinkedService() (*SapCloudForCustomerLinkedService, bool) { - return nil, false -} - -// AsSalesforceServiceCloudLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSalesforceServiceCloudLinkedService() (*SalesforceServiceCloudLinkedService, bool) { - return nil, false -} - -// AsSalesforceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSalesforceLinkedService() (*SalesforceLinkedService, bool) { - return nil, false -} - -// AsOffice365LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsOffice365LinkedService() (*Office365LinkedService, bool) { - return nil, false -} - -// AsAzureBlobFSLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureBlobFSLinkedService() (*AzureBlobFSLinkedService, bool) { - return nil, false -} - -// AsAzureDataLakeStoreLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureDataLakeStoreLinkedService() (*AzureDataLakeStoreLinkedService, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPILinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCosmosDbMongoDbAPILinkedService() (*CosmosDbMongoDbAPILinkedService, bool) { - return nil, false -} - -// AsMongoDbV2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMongoDbV2LinkedService() (*MongoDbV2LinkedService, bool) { - return nil, false -} - -// AsMongoDbAtlasLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMongoDbAtlasLinkedService() (*MongoDbAtlasLinkedService, bool) { - return nil, false -} - -// AsMongoDbLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMongoDbLinkedService() (*MongoDbLinkedService, bool) { - return nil, false -} - -// AsCassandraLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCassandraLinkedService() (*CassandraLinkedService, bool) { - return nil, false -} - -// AsWebLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsWebLinkedService() (*WebLinkedService, bool) { - return nil, false -} - -// AsODataLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsODataLinkedService() (*ODataLinkedService, bool) { - return nil, false -} - -// AsHdfsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHdfsLinkedService() (*HdfsLinkedService, bool) { - return nil, false -} - -// AsMicrosoftAccessLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMicrosoftAccessLinkedService() (*MicrosoftAccessLinkedService, bool) { - return nil, false -} - -// AsInformixLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsInformixLinkedService() (*InformixLinkedService, bool) { - return nil, false -} - -// AsOdbcLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsOdbcLinkedService() (*OdbcLinkedService, bool) { - return nil, false -} - -// AsAzureMLServiceLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureMLServiceLinkedService() (*AzureMLServiceLinkedService, bool) { - return nil, false -} - -// AsAzureMLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureMLLinkedService() (*AzureMLLinkedService, bool) { - return nil, false -} - -// AsTeradataLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsTeradataLinkedService() (*TeradataLinkedService, bool) { - return nil, false -} - -// AsDb2LinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDb2LinkedService() (*Db2LinkedService, bool) { - return nil, false -} - -// AsSybaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSybaseLinkedService() (*SybaseLinkedService, bool) { - return nil, false -} - -// AsPostgreSQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsPostgreSQLLinkedService() (*PostgreSQLLinkedService, bool) { - return nil, false -} - -// AsMySQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsMySQLLinkedService() (*MySQLLinkedService, bool) { - return nil, false -} - -// AsAzureMySQLLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureMySQLLinkedService() (*AzureMySQLLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForOracleLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonRdsForOracleLinkedService() (*AmazonRdsForOracleLinkedService, bool) { - return nil, false -} - -// AsOracleLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsOracleLinkedService() (*OracleLinkedService, bool) { - return nil, false -} - -// AsGoogleCloudStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsGoogleCloudStorageLinkedService() (*GoogleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsOracleCloudStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsOracleCloudStorageLinkedService() (*OracleCloudStorageLinkedService, bool) { - return nil, false -} - -// AsAmazonS3CompatibleLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonS3CompatibleLinkedService() (*AmazonS3CompatibleLinkedService, bool) { - return nil, false -} - -// AsAzureFileStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureFileStorageLinkedService() (*AzureFileStorageLinkedService, bool) { - return nil, false -} - -// AsFileServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsFileServerLinkedService() (*FileServerLinkedService, bool) { - return nil, false -} - -// AsHDInsightLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsHDInsightLinkedService() (*HDInsightLinkedService, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCommonDataServiceForAppsLinkedService() (*CommonDataServiceForAppsLinkedService, bool) { - return nil, false -} - -// AsDynamicsCrmLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDynamicsCrmLinkedService() (*DynamicsCrmLinkedService, bool) { - return nil, false -} - -// AsDynamicsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsDynamicsLinkedService() (*DynamicsLinkedService, bool) { - return nil, false -} - -// AsCosmosDbLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsCosmosDbLinkedService() (*CosmosDbLinkedService, bool) { - return nil, false -} - -// AsAzureKeyVaultLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureKeyVaultLinkedService() (*AzureKeyVaultLinkedService, bool) { - return nil, false -} - -// AsAzureBatchLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureBatchLinkedService() (*AzureBatchLinkedService, bool) { - return nil, false -} - -// AsAzureSQLMILinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureSQLMILinkedService() (*AzureSQLMILinkedService, bool) { - return nil, false -} - -// AsAzureSQLDatabaseLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureSQLDatabaseLinkedService() (*AzureSQLDatabaseLinkedService, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAmazonRdsForSQLServerLinkedService() (*AmazonRdsForSQLServerLinkedService, bool) { - return nil, false -} - -// AsSQLServerLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsSQLServerLinkedService() (*SQLServerLinkedService, bool) { - return nil, false -} - -// AsAzureSQLDWLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureSQLDWLinkedService() (*AzureSQLDWLinkedService, bool) { - return nil, false -} - -// AsAzureTableStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureTableStorageLinkedService() (*AzureTableStorageLinkedService, bool) { - return nil, false -} - -// AsAzureBlobStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureBlobStorageLinkedService() (*AzureBlobStorageLinkedService, bool) { - return nil, false -} - -// AsAzureStorageLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsAzureStorageLinkedService() (*AzureStorageLinkedService, bool) { - return nil, false -} - -// AsLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsLinkedService() (*LinkedService, bool) { - return nil, false -} - -// AsBasicLinkedService is the BasicLinkedService implementation for ZohoLinkedService. -func (zls ZohoLinkedService) AsBasicLinkedService() (BasicLinkedService, bool) { - return &zls, true -} - -// UnmarshalJSON is the custom unmarshaler for ZohoLinkedService struct. -func (zls *ZohoLinkedService) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var zohoLinkedServiceTypeProperties ZohoLinkedServiceTypeProperties - err = json.Unmarshal(*v, &zohoLinkedServiceTypeProperties) - if err != nil { - return err - } - zls.ZohoLinkedServiceTypeProperties = &zohoLinkedServiceTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if zls.AdditionalProperties == nil { - zls.AdditionalProperties = make(map[string]interface{}) - } - zls.AdditionalProperties[k] = additionalProperties - } - case "connectVia": - if v != nil { - var connectVia IntegrationRuntimeReference - err = json.Unmarshal(*v, &connectVia) - if err != nil { - return err - } - zls.ConnectVia = &connectVia - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - zls.Description = &description - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - zls.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - zls.Annotations = &annotations - } - case "type": - if v != nil { - var typeVar TypeBasicLinkedService - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - zls.Type = typeVar - } - } - } - - return nil -} - -// ZohoLinkedServiceTypeProperties zoho server linked service properties. -type ZohoLinkedServiceTypeProperties struct { - // ConnectionProperties - 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"` - // Endpoint - The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) - Endpoint interface{} `json:"endpoint,omitempty"` - // AccessToken - The access token for Zoho authentication. - AccessToken BasicSecretBase `json:"accessToken,omitempty"` - // UseEncryptedEndpoints - Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` - // UseHostVerification - 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"` - // UsePeerVerification - Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` - // EncryptedCredential - The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. - EncryptedCredential *string `json:"encryptedCredential,omitempty"` -} - -// UnmarshalJSON is the custom unmarshaler for ZohoLinkedServiceTypeProperties struct. -func (zlstp *ZohoLinkedServiceTypeProperties) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "connectionProperties": - if v != nil { - var connectionProperties interface{} - err = json.Unmarshal(*v, &connectionProperties) - if err != nil { - return err - } - zlstp.ConnectionProperties = connectionProperties - } - case "endpoint": - if v != nil { - var endpoint interface{} - err = json.Unmarshal(*v, &endpoint) - if err != nil { - return err - } - zlstp.Endpoint = endpoint - } - case "accessToken": - if v != nil { - accessToken, err := unmarshalBasicSecretBase(*v) - if err != nil { - return err - } - zlstp.AccessToken = accessToken - } - case "useEncryptedEndpoints": - if v != nil { - var useEncryptedEndpoints interface{} - err = json.Unmarshal(*v, &useEncryptedEndpoints) - if err != nil { - return err - } - zlstp.UseEncryptedEndpoints = useEncryptedEndpoints - } - case "useHostVerification": - if v != nil { - var useHostVerification interface{} - err = json.Unmarshal(*v, &useHostVerification) - if err != nil { - return err - } - zlstp.UseHostVerification = useHostVerification - } - case "usePeerVerification": - if v != nil { - var usePeerVerification interface{} - err = json.Unmarshal(*v, &usePeerVerification) - if err != nil { - return err - } - zlstp.UsePeerVerification = usePeerVerification - } - case "encryptedCredential": - if v != nil { - var encryptedCredential string - err = json.Unmarshal(*v, &encryptedCredential) - if err != nil { - return err - } - zlstp.EncryptedCredential = &encryptedCredential - } - } - } - - return nil -} - -// ZohoObjectDataset zoho server dataset. -type ZohoObjectDataset struct { - // GenericDatasetTypeProperties - Properties specific to this dataset type. - *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // Description - Dataset description. - Description *string `json:"description,omitempty"` - // Structure - Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` - // Schema - Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` - // LinkedServiceName - Linked service reference. - LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` - // Parameters - Parameters for dataset. - Parameters map[string]*ParameterSpecification `json:"parameters"` - // Annotations - List of tags that can be used for describing the Dataset. - Annotations *[]interface{} `json:"annotations,omitempty"` - // Folder - The folder that this Dataset is in. If not specified, Dataset will appear at the root level. - Folder *DatasetFolder `json:"folder,omitempty"` - // Type - Possible values include: 'TypeBasicDatasetTypeDataset', 'TypeBasicDatasetTypeWarehouseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudV2Object', 'TypeBasicDatasetTypeSalesforceV2Object', 'TypeBasicDatasetTypeLakeHouseTable', 'TypeBasicDatasetTypeAzureDatabricksDeltaLakeDataset', 'TypeBasicDatasetTypeSharePointOnlineListResource', 'TypeBasicDatasetTypeSnowflakeV2Table', 'TypeBasicDatasetTypeSnowflakeTable', 'TypeBasicDatasetTypeGoogleAdWordsObject', 'TypeBasicDatasetTypeAzureDataExplorerTable', 'TypeBasicDatasetTypeOracleServiceCloudObject', 'TypeBasicDatasetTypeDynamicsAXResource', 'TypeBasicDatasetTypeResponsysObject', 'TypeBasicDatasetTypeSalesforceMarketingCloudObject', 'TypeBasicDatasetTypeVerticaTable', 'TypeBasicDatasetTypeNetezzaTable', 'TypeBasicDatasetTypeZohoObject', 'TypeBasicDatasetTypeXeroObject', 'TypeBasicDatasetTypeSquareObject', 'TypeBasicDatasetTypeSparkObject', 'TypeBasicDatasetTypeShopifyObject', 'TypeBasicDatasetTypeServiceNowObject', 'TypeBasicDatasetTypeQuickBooksObject', 'TypeBasicDatasetTypePrestoObject', 'TypeBasicDatasetTypePhoenixObject', 'TypeBasicDatasetTypePaypalObject', 'TypeBasicDatasetTypeMarketoObject', 'TypeBasicDatasetTypeAzureMariaDBTable', 'TypeBasicDatasetTypeMariaDBTable', 'TypeBasicDatasetTypeMagentoObject', 'TypeBasicDatasetTypeJiraObject', 'TypeBasicDatasetTypeImpalaObject', 'TypeBasicDatasetTypeHubspotObject', 'TypeBasicDatasetTypeHiveObject', 'TypeBasicDatasetTypeHBaseObject', 'TypeBasicDatasetTypeGreenplumTable', 'TypeBasicDatasetTypeGoogleBigQueryObject', 'TypeBasicDatasetTypeEloquaObject', 'TypeBasicDatasetTypeDrillTable', 'TypeBasicDatasetTypeCouchbaseTable', 'TypeBasicDatasetTypeConcurObject', 'TypeBasicDatasetTypeAzurePostgreSQLTable', 'TypeBasicDatasetTypeAmazonMWSObject', 'TypeBasicDatasetTypeHTTPFile', 'TypeBasicDatasetTypeAzureSearchIndex', 'TypeBasicDatasetTypeWebTable', 'TypeBasicDatasetTypeSapOdpResource', 'TypeBasicDatasetTypeSapTableResource', 'TypeBasicDatasetTypeRestResource', 'TypeBasicDatasetTypeAmazonRdsForSQLServerTable', 'TypeBasicDatasetTypeSQLServerTable', 'TypeBasicDatasetTypeSapOpenHubTable', 'TypeBasicDatasetTypeSapHanaTable', 'TypeBasicDatasetTypeSapEccResource', 'TypeBasicDatasetTypeSapCloudForCustomerResource', 'TypeBasicDatasetTypeSapBwCube', 'TypeBasicDatasetTypeSybaseTable', 'TypeBasicDatasetTypeSalesforceServiceCloudObject', 'TypeBasicDatasetTypeSalesforceObject', 'TypeBasicDatasetTypeMicrosoftAccessTable', 'TypeBasicDatasetTypePostgreSQLTable', 'TypeBasicDatasetTypeMySQLTable', 'TypeBasicDatasetTypeOdbcTable', 'TypeBasicDatasetTypeInformixTable', 'TypeBasicDatasetTypeRelationalTable', 'TypeBasicDatasetTypeDb2Table', 'TypeBasicDatasetTypeAmazonRedshiftTable', 'TypeBasicDatasetTypeAzureMySQLTable', 'TypeBasicDatasetTypeTeradataTable', 'TypeBasicDatasetTypeAmazonRdsForOracleTable', 'TypeBasicDatasetTypeOracleTable', 'TypeBasicDatasetTypeODataResource', 'TypeBasicDatasetTypeCosmosDbMongoDbAPICollection', 'TypeBasicDatasetTypeMongoDbV2Collection', 'TypeBasicDatasetTypeMongoDbAtlasCollection', 'TypeBasicDatasetTypeMongoDbCollection', 'TypeBasicDatasetTypeFileShare', 'TypeBasicDatasetTypeOffice365Table', 'TypeBasicDatasetTypeAzureBlobFSFile', 'TypeBasicDatasetTypeAzureDataLakeStoreFile', 'TypeBasicDatasetTypeCommonDataServiceForAppsEntity', 'TypeBasicDatasetTypeDynamicsCrmEntity', 'TypeBasicDatasetTypeDynamicsEntity', 'TypeBasicDatasetTypeDocumentDbCollection', 'TypeBasicDatasetTypeCosmosDbSQLAPICollection', 'TypeBasicDatasetTypeCustomDataset', 'TypeBasicDatasetTypeCassandraTable', 'TypeBasicDatasetTypeAzureSQLDWTable', 'TypeBasicDatasetTypeAzureSQLMITable', 'TypeBasicDatasetTypeAzureSQLTable', 'TypeBasicDatasetTypeAzureTable', 'TypeBasicDatasetTypeAzureBlob', 'TypeBasicDatasetTypeBinary', 'TypeBasicDatasetTypeOrc', 'TypeBasicDatasetTypeXML', 'TypeBasicDatasetTypeJSON', 'TypeBasicDatasetTypeDelimitedText', 'TypeBasicDatasetTypeParquet', 'TypeBasicDatasetTypeExcel', 'TypeBasicDatasetTypeAvro', 'TypeBasicDatasetTypeAmazonS3Object' - Type TypeBasicDataset `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ZohoObjectDataset. -func (zod ZohoObjectDataset) MarshalJSON() ([]byte, error) { - zod.Type = TypeBasicDatasetTypeZohoObject - objectMap := make(map[string]interface{}) - if zod.GenericDatasetTypeProperties != nil { - objectMap["typeProperties"] = zod.GenericDatasetTypeProperties - } - if zod.Description != nil { - objectMap["description"] = zod.Description - } - if zod.Structure != nil { - objectMap["structure"] = zod.Structure - } - if zod.Schema != nil { - objectMap["schema"] = zod.Schema - } - if zod.LinkedServiceName != nil { - objectMap["linkedServiceName"] = zod.LinkedServiceName - } - if zod.Parameters != nil { - objectMap["parameters"] = zod.Parameters - } - if zod.Annotations != nil { - objectMap["annotations"] = zod.Annotations - } - if zod.Folder != nil { - objectMap["folder"] = zod.Folder - } - if zod.Type != "" { - objectMap["type"] = zod.Type - } - for k, v := range zod.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsWarehouseTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsWarehouseTableDataset() (*WarehouseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudV2ObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSalesforceServiceCloudV2ObjectDataset() (*SalesforceServiceCloudV2ObjectDataset, bool) { - return nil, false -} - -// AsSalesforceV2ObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSalesforceV2ObjectDataset() (*SalesforceV2ObjectDataset, bool) { - return nil, false -} - -// AsLakeHouseTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsLakeHouseTableDataset() (*LakeHouseTableDataset, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureDatabricksDeltaLakeDataset() (*AzureDatabricksDeltaLakeDataset, bool) { - return nil, false -} - -// AsSharePointOnlineListResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSharePointOnlineListResourceDataset() (*SharePointOnlineListResourceDataset, bool) { - return nil, false -} - -// AsSnowflakeV2Dataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSnowflakeV2Dataset() (*SnowflakeV2Dataset, bool) { - return nil, false -} - -// AsSnowflakeDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSnowflakeDataset() (*SnowflakeDataset, bool) { - return nil, false -} - -// AsGoogleAdWordsObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsGoogleAdWordsObjectDataset() (*GoogleAdWordsObjectDataset, bool) { - return nil, false -} - -// AsAzureDataExplorerTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureDataExplorerTableDataset() (*AzureDataExplorerTableDataset, bool) { - return nil, false -} - -// AsOracleServiceCloudObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsOracleServiceCloudObjectDataset() (*OracleServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsDynamicsAXResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDynamicsAXResourceDataset() (*DynamicsAXResourceDataset, bool) { - return nil, false -} - -// AsResponsysObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsResponsysObjectDataset() (*ResponsysObjectDataset, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSalesforceMarketingCloudObjectDataset() (*SalesforceMarketingCloudObjectDataset, bool) { - return nil, false -} - -// AsVerticaTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsVerticaTableDataset() (*VerticaTableDataset, bool) { - return nil, false -} - -// AsNetezzaTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsNetezzaTableDataset() (*NetezzaTableDataset, bool) { - return nil, false -} - -// AsZohoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsZohoObjectDataset() (*ZohoObjectDataset, bool) { - return &zod, true -} - -// AsXeroObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsXeroObjectDataset() (*XeroObjectDataset, bool) { - return nil, false -} - -// AsSquareObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSquareObjectDataset() (*SquareObjectDataset, bool) { - return nil, false -} - -// AsSparkObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSparkObjectDataset() (*SparkObjectDataset, bool) { - return nil, false -} - -// AsShopifyObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsShopifyObjectDataset() (*ShopifyObjectDataset, bool) { - return nil, false -} - -// AsServiceNowObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsServiceNowObjectDataset() (*ServiceNowObjectDataset, bool) { - return nil, false -} - -// AsQuickBooksObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsQuickBooksObjectDataset() (*QuickBooksObjectDataset, bool) { - return nil, false -} - -// AsPrestoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsPrestoObjectDataset() (*PrestoObjectDataset, bool) { - return nil, false -} - -// AsPhoenixObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsPhoenixObjectDataset() (*PhoenixObjectDataset, bool) { - return nil, false -} - -// AsPaypalObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsPaypalObjectDataset() (*PaypalObjectDataset, bool) { - return nil, false -} - -// AsMarketoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMarketoObjectDataset() (*MarketoObjectDataset, bool) { - return nil, false -} - -// AsAzureMariaDBTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureMariaDBTableDataset() (*AzureMariaDBTableDataset, bool) { - return nil, false -} - -// AsMariaDBTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMariaDBTableDataset() (*MariaDBTableDataset, bool) { - return nil, false -} - -// AsMagentoObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMagentoObjectDataset() (*MagentoObjectDataset, bool) { - return nil, false -} - -// AsJiraObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsJiraObjectDataset() (*JiraObjectDataset, bool) { - return nil, false -} - -// AsImpalaObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsImpalaObjectDataset() (*ImpalaObjectDataset, bool) { - return nil, false -} - -// AsHubspotObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsHubspotObjectDataset() (*HubspotObjectDataset, bool) { - return nil, false -} - -// AsHiveObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsHiveObjectDataset() (*HiveObjectDataset, bool) { - return nil, false -} - -// AsHBaseObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsHBaseObjectDataset() (*HBaseObjectDataset, bool) { - return nil, false -} - -// AsGreenplumTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsGreenplumTableDataset() (*GreenplumTableDataset, bool) { - return nil, false -} - -// AsGoogleBigQueryObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsGoogleBigQueryObjectDataset() (*GoogleBigQueryObjectDataset, bool) { - return nil, false -} - -// AsEloquaObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsEloquaObjectDataset() (*EloquaObjectDataset, bool) { - return nil, false -} - -// AsDrillTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDrillTableDataset() (*DrillTableDataset, bool) { - return nil, false -} - -// AsCouchbaseTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCouchbaseTableDataset() (*CouchbaseTableDataset, bool) { - return nil, false -} - -// AsConcurObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsConcurObjectDataset() (*ConcurObjectDataset, bool) { - return nil, false -} - -// AsAzurePostgreSQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzurePostgreSQLTableDataset() (*AzurePostgreSQLTableDataset, bool) { - return nil, false -} - -// AsAmazonMWSObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAmazonMWSObjectDataset() (*AmazonMWSObjectDataset, bool) { - return nil, false -} - -// AsHTTPDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsHTTPDataset() (*HTTPDataset, bool) { - return nil, false -} - -// AsAzureSearchIndexDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureSearchIndexDataset() (*AzureSearchIndexDataset, bool) { - return nil, false -} - -// AsWebTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsWebTableDataset() (*WebTableDataset, bool) { - return nil, false -} - -// AsSapOdpResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapOdpResourceDataset() (*SapOdpResourceDataset, bool) { - return nil, false -} - -// AsSapTableResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapTableResourceDataset() (*SapTableResourceDataset, bool) { - return nil, false -} - -// AsRestResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsRestResourceDataset() (*RestResourceDataset, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAmazonRdsForSQLServerTableDataset() (*AmazonRdsForSQLServerTableDataset, bool) { - return nil, false -} - -// AsSQLServerTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSQLServerTableDataset() (*SQLServerTableDataset, bool) { - return nil, false -} - -// AsSapOpenHubTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapOpenHubTableDataset() (*SapOpenHubTableDataset, bool) { - return nil, false -} - -// AsSapHanaTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapHanaTableDataset() (*SapHanaTableDataset, bool) { - return nil, false -} - -// AsSapEccResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapEccResourceDataset() (*SapEccResourceDataset, bool) { - return nil, false -} - -// AsSapCloudForCustomerResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapCloudForCustomerResourceDataset() (*SapCloudForCustomerResourceDataset, bool) { - return nil, false -} - -// AsSapBwCubeDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSapBwCubeDataset() (*SapBwCubeDataset, bool) { - return nil, false -} - -// AsSybaseTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSybaseTableDataset() (*SybaseTableDataset, bool) { - return nil, false -} - -// AsSalesforceServiceCloudObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSalesforceServiceCloudObjectDataset() (*SalesforceServiceCloudObjectDataset, bool) { - return nil, false -} - -// AsSalesforceObjectDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsSalesforceObjectDataset() (*SalesforceObjectDataset, bool) { - return nil, false -} - -// AsMicrosoftAccessTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMicrosoftAccessTableDataset() (*MicrosoftAccessTableDataset, bool) { - return nil, false -} - -// AsPostgreSQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsPostgreSQLTableDataset() (*PostgreSQLTableDataset, bool) { - return nil, false -} - -// AsMySQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMySQLTableDataset() (*MySQLTableDataset, bool) { - return nil, false -} - -// AsOdbcTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsOdbcTableDataset() (*OdbcTableDataset, bool) { - return nil, false -} - -// AsInformixTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsInformixTableDataset() (*InformixTableDataset, bool) { - return nil, false -} - -// AsRelationalTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsRelationalTableDataset() (*RelationalTableDataset, bool) { - return nil, false -} - -// AsDb2TableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDb2TableDataset() (*Db2TableDataset, bool) { - return nil, false -} - -// AsAmazonRedshiftTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAmazonRedshiftTableDataset() (*AmazonRedshiftTableDataset, bool) { - return nil, false -} - -// AsAzureMySQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureMySQLTableDataset() (*AzureMySQLTableDataset, bool) { - return nil, false -} - -// AsTeradataTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsTeradataTableDataset() (*TeradataTableDataset, bool) { - return nil, false -} - -// AsAmazonRdsForOracleTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAmazonRdsForOracleTableDataset() (*AmazonRdsForOracleTableDataset, bool) { - return nil, false -} - -// AsOracleTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsOracleTableDataset() (*OracleTableDataset, bool) { - return nil, false -} - -// AsODataResourceDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsODataResourceDataset() (*ODataResourceDataset, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPICollectionDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCosmosDbMongoDbAPICollectionDataset() (*CosmosDbMongoDbAPICollectionDataset, bool) { - return nil, false -} - -// AsMongoDbV2CollectionDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMongoDbV2CollectionDataset() (*MongoDbV2CollectionDataset, bool) { - return nil, false -} - -// AsMongoDbAtlasCollectionDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMongoDbAtlasCollectionDataset() (*MongoDbAtlasCollectionDataset, bool) { - return nil, false -} - -// AsMongoDbCollectionDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsMongoDbCollectionDataset() (*MongoDbCollectionDataset, bool) { - return nil, false -} - -// AsFileShareDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsFileShareDataset() (*FileShareDataset, bool) { - return nil, false -} - -// AsOffice365Dataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsOffice365Dataset() (*Office365Dataset, bool) { - return nil, false -} - -// AsAzureBlobFSDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureBlobFSDataset() (*AzureBlobFSDataset, bool) { - return nil, false -} - -// AsAzureDataLakeStoreDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureDataLakeStoreDataset() (*AzureDataLakeStoreDataset, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsEntityDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCommonDataServiceForAppsEntityDataset() (*CommonDataServiceForAppsEntityDataset, bool) { - return nil, false -} - -// AsDynamicsCrmEntityDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDynamicsCrmEntityDataset() (*DynamicsCrmEntityDataset, bool) { - return nil, false -} - -// AsDynamicsEntityDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDynamicsEntityDataset() (*DynamicsEntityDataset, bool) { - return nil, false -} - -// AsDocumentDbCollectionDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDocumentDbCollectionDataset() (*DocumentDbCollectionDataset, bool) { - return nil, false -} - -// AsCosmosDbSQLAPICollectionDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCosmosDbSQLAPICollectionDataset() (*CosmosDbSQLAPICollectionDataset, bool) { - return nil, false -} - -// AsCustomDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCustomDataset() (*CustomDataset, bool) { - return nil, false -} - -// AsCassandraTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsCassandraTableDataset() (*CassandraTableDataset, bool) { - return nil, false -} - -// AsAzureSQLDWTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureSQLDWTableDataset() (*AzureSQLDWTableDataset, bool) { - return nil, false -} - -// AsAzureSQLMITableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureSQLMITableDataset() (*AzureSQLMITableDataset, bool) { - return nil, false -} - -// AsAzureSQLTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureSQLTableDataset() (*AzureSQLTableDataset, bool) { - return nil, false -} - -// AsAzureTableDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureTableDataset() (*AzureTableDataset, bool) { - return nil, false -} - -// AsAzureBlobDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAzureBlobDataset() (*AzureBlobDataset, bool) { - return nil, false -} - -// AsBinaryDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsBinaryDataset() (*BinaryDataset, bool) { - return nil, false -} - -// AsOrcDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsOrcDataset() (*OrcDataset, bool) { - return nil, false -} - -// AsXMLDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsXMLDataset() (*XMLDataset, bool) { - return nil, false -} - -// AsJSONDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsJSONDataset() (*JSONDataset, bool) { - return nil, false -} - -// AsDelimitedTextDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDelimitedTextDataset() (*DelimitedTextDataset, bool) { - return nil, false -} - -// AsParquetDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsParquetDataset() (*ParquetDataset, bool) { - return nil, false -} - -// AsExcelDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsExcelDataset() (*ExcelDataset, bool) { - return nil, false -} - -// AsAvroDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAvroDataset() (*AvroDataset, bool) { - return nil, false -} - -// AsAmazonS3Dataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsAmazonS3Dataset() (*AmazonS3Dataset, bool) { - return nil, false -} - -// AsDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsDataset() (*Dataset, bool) { - return nil, false -} - -// AsBasicDataset is the BasicDataset implementation for ZohoObjectDataset. -func (zod ZohoObjectDataset) AsBasicDataset() (BasicDataset, bool) { - return &zod, true -} - -// UnmarshalJSON is the custom unmarshaler for ZohoObjectDataset struct. -func (zod *ZohoObjectDataset) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "typeProperties": - if v != nil { - var genericDatasetTypeProperties GenericDatasetTypeProperties - err = json.Unmarshal(*v, &genericDatasetTypeProperties) - if err != nil { - return err - } - zod.GenericDatasetTypeProperties = &genericDatasetTypeProperties - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if zod.AdditionalProperties == nil { - zod.AdditionalProperties = make(map[string]interface{}) - } - zod.AdditionalProperties[k] = additionalProperties - } - case "description": - if v != nil { - var description string - err = json.Unmarshal(*v, &description) - if err != nil { - return err - } - zod.Description = &description - } - case "structure": - if v != nil { - var structure interface{} - err = json.Unmarshal(*v, &structure) - if err != nil { - return err - } - zod.Structure = structure - } - case "schema": - if v != nil { - var schema interface{} - err = json.Unmarshal(*v, &schema) - if err != nil { - return err - } - zod.Schema = schema - } - case "linkedServiceName": - if v != nil { - var linkedServiceName LinkedServiceReference - err = json.Unmarshal(*v, &linkedServiceName) - if err != nil { - return err - } - zod.LinkedServiceName = &linkedServiceName - } - case "parameters": - if v != nil { - var parameters map[string]*ParameterSpecification - err = json.Unmarshal(*v, ¶meters) - if err != nil { - return err - } - zod.Parameters = parameters - } - case "annotations": - if v != nil { - var annotations []interface{} - err = json.Unmarshal(*v, &annotations) - if err != nil { - return err - } - zod.Annotations = &annotations - } - case "folder": - if v != nil { - var folder DatasetFolder - err = json.Unmarshal(*v, &folder) - if err != nil { - return err - } - zod.Folder = &folder - } - case "type": - if v != nil { - var typeVar TypeBasicDataset - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - zod.Type = typeVar - } - } - } - - return nil -} - -// ZohoSource a copy activity Zoho server source. -type ZohoSource struct { - // Query - A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` - // QueryTimeout - 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"` - // AdditionalColumns - 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"` - // AdditionalProperties - Unmatched properties from the message are deserialized this collection - AdditionalProperties map[string]interface{} `json:""` - // SourceRetryCount - Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` - // SourceRetryWait - 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"` - // MaxConcurrentConnections - The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` - // DisableMetricsCollection - If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - // Type - Possible values include: 'TypeBasicCopySourceTypeCopySource', 'TypeBasicCopySourceTypeSalesforceServiceCloudV2Source', 'TypeBasicCopySourceTypeSharePointOnlineListSource', 'TypeBasicCopySourceTypeAzureDatabricksDeltaLakeSource', 'TypeBasicCopySourceTypeSnowflakeV2Source', 'TypeBasicCopySourceTypeSnowflakeSource', 'TypeBasicCopySourceTypeLakeHouseTableSource', 'TypeBasicCopySourceTypeHTTPSource', 'TypeBasicCopySourceTypeAzureBlobFSSource', 'TypeBasicCopySourceTypeAzureDataLakeStoreSource', 'TypeBasicCopySourceTypeOffice365Source', 'TypeBasicCopySourceTypeCosmosDbMongoDbAPISource', 'TypeBasicCopySourceTypeMongoDbV2Source', 'TypeBasicCopySourceTypeMongoDbAtlasSource', 'TypeBasicCopySourceTypeMongoDbSource', 'TypeBasicCopySourceTypeWebSource', 'TypeBasicCopySourceTypeAmazonRdsForOracleSource', 'TypeBasicCopySourceTypeOracleSource', 'TypeBasicCopySourceTypeAzureDataExplorerSource', 'TypeBasicCopySourceTypeHdfsSource', 'TypeBasicCopySourceTypeFileSystemSource', 'TypeBasicCopySourceTypeRestSource', 'TypeBasicCopySourceTypeSalesforceServiceCloudSource', 'TypeBasicCopySourceTypeODataSource', 'TypeBasicCopySourceTypeMicrosoftAccessSource', 'TypeBasicCopySourceTypeRelationalSource', 'TypeBasicCopySourceTypeCommonDataServiceForAppsSource', 'TypeBasicCopySourceTypeDynamicsCrmSource', 'TypeBasicCopySourceTypeDynamicsSource', 'TypeBasicCopySourceTypeCosmosDbSQLAPISource', 'TypeBasicCopySourceTypeDocumentDbCollectionSource', 'TypeBasicCopySourceTypeBlobSource', 'TypeBasicCopySourceTypeSalesforceV2Source', 'TypeBasicCopySourceTypeWarehouseSource', 'TypeBasicCopySourceTypeAmazonRedshiftSource', 'TypeBasicCopySourceTypeGoogleAdWordsSource', 'TypeBasicCopySourceTypeOracleServiceCloudSource', 'TypeBasicCopySourceTypeDynamicsAXSource', 'TypeBasicCopySourceTypeResponsysSource', 'TypeBasicCopySourceTypeSalesforceMarketingCloudSource', 'TypeBasicCopySourceTypeVerticaSource', 'TypeBasicCopySourceTypeNetezzaSource', 'TypeBasicCopySourceTypeZohoSource', 'TypeBasicCopySourceTypeXeroSource', 'TypeBasicCopySourceTypeSquareSource', 'TypeBasicCopySourceTypeSparkSource', 'TypeBasicCopySourceTypeShopifySource', 'TypeBasicCopySourceTypeServiceNowSource', 'TypeBasicCopySourceTypeQuickBooksSource', 'TypeBasicCopySourceTypePrestoSource', 'TypeBasicCopySourceTypePhoenixSource', 'TypeBasicCopySourceTypePaypalSource', 'TypeBasicCopySourceTypeMarketoSource', 'TypeBasicCopySourceTypeAzureMariaDBSource', 'TypeBasicCopySourceTypeMariaDBSource', 'TypeBasicCopySourceTypeMagentoSource', 'TypeBasicCopySourceTypeJiraSource', 'TypeBasicCopySourceTypeImpalaSource', 'TypeBasicCopySourceTypeHubspotSource', 'TypeBasicCopySourceTypeHiveSource', 'TypeBasicCopySourceTypeHBaseSource', 'TypeBasicCopySourceTypeGreenplumSource', 'TypeBasicCopySourceTypeGoogleBigQuerySource', 'TypeBasicCopySourceTypeEloquaSource', 'TypeBasicCopySourceTypeDrillSource', 'TypeBasicCopySourceTypeCouchbaseSource', 'TypeBasicCopySourceTypeConcurSource', 'TypeBasicCopySourceTypeAzurePostgreSQLSource', 'TypeBasicCopySourceTypeAmazonMWSSource', 'TypeBasicCopySourceTypeCassandraSource', 'TypeBasicCopySourceTypeTeradataSource', 'TypeBasicCopySourceTypeAzureMySQLSource', 'TypeBasicCopySourceTypeSQLDWSource', 'TypeBasicCopySourceTypeSQLMISource', 'TypeBasicCopySourceTypeAzureSQLSource', 'TypeBasicCopySourceTypeAmazonRdsForSQLServerSource', 'TypeBasicCopySourceTypeSQLServerSource', 'TypeBasicCopySourceTypeSQLSource', 'TypeBasicCopySourceTypeSapTableSource', 'TypeBasicCopySourceTypeSapOdpSource', 'TypeBasicCopySourceTypeSapOpenHubSource', 'TypeBasicCopySourceTypeSapHanaSource', 'TypeBasicCopySourceTypeSapEccSource', 'TypeBasicCopySourceTypeSapCloudForCustomerSource', 'TypeBasicCopySourceTypeSalesforceSource', 'TypeBasicCopySourceTypeSapBwSource', 'TypeBasicCopySourceTypeSybaseSource', 'TypeBasicCopySourceTypePostgreSQLSource', 'TypeBasicCopySourceTypeMySQLSource', 'TypeBasicCopySourceTypeOdbcSource', 'TypeBasicCopySourceTypeDb2Source', 'TypeBasicCopySourceTypeInformixSource', 'TypeBasicCopySourceTypeAzureTableSource', 'TypeBasicCopySourceTypeTabularSource', 'TypeBasicCopySourceTypeBinarySource', 'TypeBasicCopySourceTypeOrcSource', 'TypeBasicCopySourceTypeXMLSource', 'TypeBasicCopySourceTypeJSONSource', 'TypeBasicCopySourceTypeDelimitedTextSource', 'TypeBasicCopySourceTypeParquetSource', 'TypeBasicCopySourceTypeExcelSource', 'TypeBasicCopySourceTypeAvroSource' - Type TypeBasicCopySource `json:"type,omitempty"` -} - -// MarshalJSON is the custom marshaler for ZohoSource. -func (zs ZohoSource) MarshalJSON() ([]byte, error) { - zs.Type = TypeBasicCopySourceTypeZohoSource - objectMap := make(map[string]interface{}) - if zs.Query != nil { - objectMap["query"] = zs.Query - } - if zs.QueryTimeout != nil { - objectMap["queryTimeout"] = zs.QueryTimeout - } - if zs.AdditionalColumns != nil { - objectMap["additionalColumns"] = zs.AdditionalColumns - } - if zs.SourceRetryCount != nil { - objectMap["sourceRetryCount"] = zs.SourceRetryCount - } - if zs.SourceRetryWait != nil { - objectMap["sourceRetryWait"] = zs.SourceRetryWait - } - if zs.MaxConcurrentConnections != nil { - objectMap["maxConcurrentConnections"] = zs.MaxConcurrentConnections - } - if zs.DisableMetricsCollection != nil { - objectMap["disableMetricsCollection"] = zs.DisableMetricsCollection - } - if zs.Type != "" { - objectMap["type"] = zs.Type - } - for k, v := range zs.AdditionalProperties { - objectMap[k] = v - } - return json.Marshal(objectMap) -} - -// AsSalesforceServiceCloudV2Source is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSalesforceServiceCloudV2Source() (*SalesforceServiceCloudV2Source, bool) { - return nil, false -} - -// AsSharePointOnlineListSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSharePointOnlineListSource() (*SharePointOnlineListSource, bool) { - return nil, false -} - -// AsAzureDatabricksDeltaLakeSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureDatabricksDeltaLakeSource() (*AzureDatabricksDeltaLakeSource, bool) { - return nil, false -} - -// AsSnowflakeV2Source is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSnowflakeV2Source() (*SnowflakeV2Source, bool) { - return nil, false -} - -// AsSnowflakeSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSnowflakeSource() (*SnowflakeSource, bool) { - return nil, false -} - -// AsLakeHouseTableSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsLakeHouseTableSource() (*LakeHouseTableSource, bool) { - return nil, false -} - -// AsHTTPSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHTTPSource() (*HTTPSource, bool) { - return nil, false -} - -// AsAzureBlobFSSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureBlobFSSource() (*AzureBlobFSSource, bool) { - return nil, false -} - -// AsAzureDataLakeStoreSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureDataLakeStoreSource() (*AzureDataLakeStoreSource, bool) { - return nil, false -} - -// AsOffice365Source is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsOffice365Source() (*Office365Source, bool) { - return nil, false -} - -// AsCosmosDbMongoDbAPISource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCosmosDbMongoDbAPISource() (*CosmosDbMongoDbAPISource, bool) { - return nil, false -} - -// AsMongoDbV2Source is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMongoDbV2Source() (*MongoDbV2Source, bool) { - return nil, false -} - -// AsMongoDbAtlasSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMongoDbAtlasSource() (*MongoDbAtlasSource, bool) { - return nil, false -} - -// AsMongoDbSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMongoDbSource() (*MongoDbSource, bool) { - return nil, false -} - -// AsWebSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsWebSource() (*WebSource, bool) { - return nil, false -} - -// AsAmazonRdsForOracleSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAmazonRdsForOracleSource() (*AmazonRdsForOracleSource, bool) { - return nil, false -} - -// AsOracleSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsOracleSource() (*OracleSource, bool) { - return nil, false -} - -// AsAzureDataExplorerSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureDataExplorerSource() (*AzureDataExplorerSource, bool) { - return nil, false -} - -// AsHdfsSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHdfsSource() (*HdfsSource, bool) { - return nil, false -} - -// AsFileSystemSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsFileSystemSource() (*FileSystemSource, bool) { - return nil, false -} - -// AsRestSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsRestSource() (*RestSource, bool) { - return nil, false -} - -// AsSalesforceServiceCloudSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSalesforceServiceCloudSource() (*SalesforceServiceCloudSource, bool) { - return nil, false -} - -// AsODataSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsODataSource() (*ODataSource, bool) { - return nil, false -} - -// AsMicrosoftAccessSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMicrosoftAccessSource() (*MicrosoftAccessSource, bool) { - return nil, false -} - -// AsRelationalSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsRelationalSource() (*RelationalSource, bool) { - return nil, false -} - -// AsCommonDataServiceForAppsSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCommonDataServiceForAppsSource() (*CommonDataServiceForAppsSource, bool) { - return nil, false -} - -// AsDynamicsCrmSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDynamicsCrmSource() (*DynamicsCrmSource, bool) { - return nil, false -} - -// AsDynamicsSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDynamicsSource() (*DynamicsSource, bool) { - return nil, false -} - -// AsCosmosDbSQLAPISource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCosmosDbSQLAPISource() (*CosmosDbSQLAPISource, bool) { - return nil, false -} - -// AsDocumentDbCollectionSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDocumentDbCollectionSource() (*DocumentDbCollectionSource, bool) { - return nil, false -} - -// AsBlobSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsBlobSource() (*BlobSource, bool) { - return nil, false -} - -// AsSalesforceV2Source is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSalesforceV2Source() (*SalesforceV2Source, bool) { - return nil, false -} - -// AsWarehouseSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsWarehouseSource() (*WarehouseSource, bool) { - return nil, false -} - -// AsAmazonRedshiftSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAmazonRedshiftSource() (*AmazonRedshiftSource, bool) { - return nil, false -} - -// AsGoogleAdWordsSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsGoogleAdWordsSource() (*GoogleAdWordsSource, bool) { - return nil, false -} - -// AsOracleServiceCloudSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsOracleServiceCloudSource() (*OracleServiceCloudSource, bool) { - return nil, false -} - -// AsDynamicsAXSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDynamicsAXSource() (*DynamicsAXSource, bool) { - return nil, false -} - -// AsResponsysSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsResponsysSource() (*ResponsysSource, bool) { - return nil, false -} - -// AsSalesforceMarketingCloudSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSalesforceMarketingCloudSource() (*SalesforceMarketingCloudSource, bool) { - return nil, false -} - -// AsVerticaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsVerticaSource() (*VerticaSource, bool) { - return nil, false -} - -// AsNetezzaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsNetezzaSource() (*NetezzaSource, bool) { - return nil, false -} - -// AsZohoSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsZohoSource() (*ZohoSource, bool) { - return &zs, true -} - -// AsXeroSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsXeroSource() (*XeroSource, bool) { - return nil, false -} - -// AsSquareSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSquareSource() (*SquareSource, bool) { - return nil, false -} - -// AsSparkSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSparkSource() (*SparkSource, bool) { - return nil, false -} - -// AsShopifySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsShopifySource() (*ShopifySource, bool) { - return nil, false -} - -// AsServiceNowSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsServiceNowSource() (*ServiceNowSource, bool) { - return nil, false -} - -// AsQuickBooksSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsQuickBooksSource() (*QuickBooksSource, bool) { - return nil, false -} - -// AsPrestoSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsPrestoSource() (*PrestoSource, bool) { - return nil, false -} - -// AsPhoenixSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsPhoenixSource() (*PhoenixSource, bool) { - return nil, false -} - -// AsPaypalSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsPaypalSource() (*PaypalSource, bool) { - return nil, false -} - -// AsMarketoSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMarketoSource() (*MarketoSource, bool) { - return nil, false -} - -// AsAzureMariaDBSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureMariaDBSource() (*AzureMariaDBSource, bool) { - return nil, false -} - -// AsMariaDBSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMariaDBSource() (*MariaDBSource, bool) { - return nil, false -} - -// AsMagentoSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMagentoSource() (*MagentoSource, bool) { - return nil, false -} - -// AsJiraSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsJiraSource() (*JiraSource, bool) { - return nil, false -} - -// AsImpalaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsImpalaSource() (*ImpalaSource, bool) { - return nil, false -} - -// AsHubspotSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHubspotSource() (*HubspotSource, bool) { - return nil, false -} - -// AsHiveSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHiveSource() (*HiveSource, bool) { - return nil, false -} - -// AsHBaseSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsHBaseSource() (*HBaseSource, bool) { - return nil, false -} - -// AsGreenplumSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsGreenplumSource() (*GreenplumSource, bool) { - return nil, false -} - -// AsGoogleBigQuerySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsGoogleBigQuerySource() (*GoogleBigQuerySource, bool) { - return nil, false -} - -// AsEloquaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsEloquaSource() (*EloquaSource, bool) { - return nil, false -} - -// AsDrillSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDrillSource() (*DrillSource, bool) { - return nil, false -} - -// AsCouchbaseSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCouchbaseSource() (*CouchbaseSource, bool) { - return nil, false -} - -// AsConcurSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsConcurSource() (*ConcurSource, bool) { - return nil, false -} - -// AsAzurePostgreSQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzurePostgreSQLSource() (*AzurePostgreSQLSource, bool) { - return nil, false -} - -// AsAmazonMWSSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAmazonMWSSource() (*AmazonMWSSource, bool) { - return nil, false -} - -// AsCassandraSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCassandraSource() (*CassandraSource, bool) { - return nil, false -} - -// AsTeradataSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsTeradataSource() (*TeradataSource, bool) { - return nil, false -} - -// AsAzureMySQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureMySQLSource() (*AzureMySQLSource, bool) { - return nil, false -} - -// AsSQLDWSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSQLDWSource() (*SQLDWSource, bool) { - return nil, false -} - -// AsSQLMISource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSQLMISource() (*SQLMISource, bool) { - return nil, false -} - -// AsAzureSQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureSQLSource() (*AzureSQLSource, bool) { - return nil, false -} - -// AsAmazonRdsForSQLServerSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAmazonRdsForSQLServerSource() (*AmazonRdsForSQLServerSource, bool) { - return nil, false -} - -// AsSQLServerSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSQLServerSource() (*SQLServerSource, bool) { - return nil, false -} - -// AsSQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSQLSource() (*SQLSource, bool) { - return nil, false -} - -// AsSapTableSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapTableSource() (*SapTableSource, bool) { - return nil, false -} - -// AsSapOdpSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapOdpSource() (*SapOdpSource, bool) { - return nil, false -} - -// AsSapOpenHubSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapOpenHubSource() (*SapOpenHubSource, bool) { - return nil, false -} - -// AsSapHanaSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapHanaSource() (*SapHanaSource, bool) { - return nil, false -} - -// AsSapEccSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapEccSource() (*SapEccSource, bool) { - return nil, false -} - -// AsSapCloudForCustomerSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapCloudForCustomerSource() (*SapCloudForCustomerSource, bool) { - return nil, false -} - -// AsSalesforceSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSalesforceSource() (*SalesforceSource, bool) { - return nil, false -} - -// AsSapBwSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSapBwSource() (*SapBwSource, bool) { - return nil, false -} - -// AsSybaseSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsSybaseSource() (*SybaseSource, bool) { - return nil, false -} - -// AsPostgreSQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsPostgreSQLSource() (*PostgreSQLSource, bool) { - return nil, false -} - -// AsMySQLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsMySQLSource() (*MySQLSource, bool) { - return nil, false -} - -// AsOdbcSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsOdbcSource() (*OdbcSource, bool) { - return nil, false -} - -// AsDb2Source is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDb2Source() (*Db2Source, bool) { - return nil, false -} - -// AsInformixSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsInformixSource() (*InformixSource, bool) { - return nil, false -} - -// AsAzureTableSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAzureTableSource() (*AzureTableSource, bool) { - return nil, false -} - -// AsTabularSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsTabularSource() (*TabularSource, bool) { - return nil, false -} - -// AsBasicTabularSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsBasicTabularSource() (BasicTabularSource, bool) { - return &zs, true -} - -// AsBinarySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsBinarySource() (*BinarySource, bool) { - return nil, false -} - -// AsOrcSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsOrcSource() (*OrcSource, bool) { - return nil, false -} - -// AsXMLSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsXMLSource() (*XMLSource, bool) { - return nil, false -} - -// AsJSONSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsJSONSource() (*JSONSource, bool) { - return nil, false -} - -// AsDelimitedTextSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsDelimitedTextSource() (*DelimitedTextSource, bool) { - return nil, false -} - -// AsParquetSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsParquetSource() (*ParquetSource, bool) { - return nil, false -} - -// AsExcelSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsExcelSource() (*ExcelSource, bool) { - return nil, false -} - -// AsAvroSource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsAvroSource() (*AvroSource, bool) { - return nil, false -} - -// AsCopySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsCopySource() (*CopySource, bool) { - return nil, false -} - -// AsBasicCopySource is the BasicCopySource implementation for ZohoSource. -func (zs ZohoSource) AsBasicCopySource() (BasicCopySource, bool) { - return &zs, true -} - -// UnmarshalJSON is the custom unmarshaler for ZohoSource struct. -func (zs *ZohoSource) UnmarshalJSON(body []byte) error { - var m map[string]*json.RawMessage - err := json.Unmarshal(body, &m) - if err != nil { - return err - } - for k, v := range m { - switch k { - case "query": - if v != nil { - var query interface{} - err = json.Unmarshal(*v, &query) - if err != nil { - return err - } - zs.Query = query - } - case "queryTimeout": - if v != nil { - var queryTimeout interface{} - err = json.Unmarshal(*v, &queryTimeout) - if err != nil { - return err - } - zs.QueryTimeout = queryTimeout - } - case "additionalColumns": - if v != nil { - var additionalColumns interface{} - err = json.Unmarshal(*v, &additionalColumns) - if err != nil { - return err - } - zs.AdditionalColumns = additionalColumns - } - default: - if v != nil { - var additionalProperties interface{} - err = json.Unmarshal(*v, &additionalProperties) - if err != nil { - return err - } - if zs.AdditionalProperties == nil { - zs.AdditionalProperties = make(map[string]interface{}) - } - zs.AdditionalProperties[k] = additionalProperties - } - case "sourceRetryCount": - if v != nil { - var sourceRetryCount interface{} - err = json.Unmarshal(*v, &sourceRetryCount) - if err != nil { - return err - } - zs.SourceRetryCount = sourceRetryCount - } - case "sourceRetryWait": - if v != nil { - var sourceRetryWait interface{} - err = json.Unmarshal(*v, &sourceRetryWait) - if err != nil { - return err - } - zs.SourceRetryWait = sourceRetryWait - } - case "maxConcurrentConnections": - if v != nil { - var maxConcurrentConnections interface{} - err = json.Unmarshal(*v, &maxConcurrentConnections) - if err != nil { - return err - } - zs.MaxConcurrentConnections = maxConcurrentConnections - } - case "disableMetricsCollection": - if v != nil { - var disableMetricsCollection interface{} - err = json.Unmarshal(*v, &disableMetricsCollection) - if err != nil { - return err - } - zs.DisableMetricsCollection = disableMetricsCollection - } - case "type": - if v != nil { - var typeVar TypeBasicCopySource - err = json.Unmarshal(*v, &typeVar) - if err != nil { - return err - } - zs.Type = typeVar - } - } - } - - return nil -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/version.go deleted file mode 100644 index 252a1c970b4b..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package datafactory - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " datafactory/2018-06-01" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/version.go deleted file mode 100644 index 75b18be4c98a..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package iotcentral - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " iotcentral/2022-10-31-preview" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/version.go deleted file mode 100644 index 36eed615ff5f..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package devices - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " devices/2022-04-30-preview" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/version.go deleted file mode 100644 index 16a3c333c6da..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package keyvault - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " keyvault/7.4" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/version.go deleted file mode 100644 index 8bd78ceb7b7c..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package securityinsight - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " securityinsight/2022-10-01-preview" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/client.go b/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/client.go deleted file mode 100644 index 15eec2ff2778..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/client.go +++ /dev/null @@ -1,33 +0,0 @@ -// Package synapse implements the Azure ARM Synapse service API version 2019-06-01-preview. -// -// -package synapse - -// 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. - -import ( - "github.com/Azure/go-autorest/autorest" -) - -// BaseClient is the base client for Synapse. -type BaseClient struct { - autorest.Client - Endpoint string -} - -// New creates an instance of the BaseClient client. -func New(endpoint string) BaseClient { - return NewWithoutDefaults(endpoint) -} - -// NewWithoutDefaults creates an instance of the BaseClient client. -func NewWithoutDefaults(endpoint string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - Endpoint: endpoint, - } -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/version.go deleted file mode 100644 index 30c1ac9b5ba3..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package synapse - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " synapse/2019-06-01-preview" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/client.go b/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/client.go deleted file mode 100644 index d46aea1c7de2..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/client.go +++ /dev/null @@ -1,33 +0,0 @@ -// Package synapse implements the Azure ARM Synapse service API version 2020-08-01-preview. -// -// -package synapse - -// 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. - -import ( - "github.com/Azure/go-autorest/autorest" -) - -// BaseClient is the base client for Synapse. -type BaseClient struct { - autorest.Client - Endpoint string -} - -// New creates an instance of the BaseClient client. -func New(endpoint string) BaseClient { - return NewWithoutDefaults(endpoint) -} - -// NewWithoutDefaults creates an instance of the BaseClient client. -func NewWithoutDefaults(endpoint string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - Endpoint: endpoint, - } -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/version.go deleted file mode 100644 index 2ff6b766b24c..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package synapse - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " synapse/2020-08-01-preview" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/client.go b/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/client.go deleted file mode 100644 index b0abffe2f21b..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/client.go +++ /dev/null @@ -1,33 +0,0 @@ -// Package synapse implements the Azure ARM Synapse service API version 2021-06-01-preview. -// -// -package synapse - -// 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. - -import ( - "github.com/Azure/go-autorest/autorest" -) - -// BaseClient is the base client for Synapse. -type BaseClient struct { - autorest.Client - Endpoint string -} - -// New creates an instance of the BaseClient client. -func New(endpoint string) BaseClient { - return NewWithoutDefaults(endpoint) -} - -// NewWithoutDefaults creates an instance of the BaseClient client. -func NewWithoutDefaults(endpoint string) BaseClient { - return BaseClient{ - Client: autorest.NewClientWithUserAgent(UserAgent()), - Endpoint: endpoint, - } -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/version.go deleted file mode 100644 index 8e06963e66c8..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package synapse - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " synapse/2021-06-01-preview" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/version.go b/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/version.go deleted file mode 100644 index 3bdc32e724cd..000000000000 --- a/vendor/github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web/version.go +++ /dev/null @@ -1,19 +0,0 @@ -package web - -import "github.com/tombuildsstuff/kermit/version" - -// 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. - -// UserAgent returns the UserAgent string to use when sending http.Requests. -func UserAgent() string { - return "tombuildsstuff/kermit/" + Version() + " web/2022-09-01" -} - -// Version returns the semantic version (see http://semver.org) of the client. -func Version() string { - return version.Number -} diff --git a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go index 25df19b0a2bf..d1df73de2328 100644 --- a/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go +++ b/vendor/github.com/zclconf/go-cty/cty/function/stdlib/collection.go @@ -147,12 +147,6 @@ var ElementFunc = function.New(&function.Spec{ }, Type: func(args []cty.Value) (cty.Type, error) { list := args[0] - index := args[1] - if index.IsKnown() { - if index.LessThan(cty.NumberIntVal(0)).True() { - return cty.DynamicPseudoType, fmt.Errorf("cannot use element function with a negative index") - } - } listTy := list.Type() switch { @@ -189,10 +183,6 @@ var ElementFunc = function.New(&function.Spec{ return cty.DynamicVal, fmt.Errorf("invalid index: %s", err) } - if args[1].LessThan(cty.NumberIntVal(0)).True() { - return cty.DynamicVal, fmt.Errorf("cannot use element function with a negative index") - } - input, marks := args[0].Unmark() if !input.IsKnown() { return cty.UnknownVal(retType), nil @@ -203,6 +193,9 @@ var ElementFunc = function.New(&function.Spec{ return cty.DynamicVal, errors.New("cannot use element function with an empty list") } index = index % l + if index < 0 { + index += l + } // We did all the necessary type checks in the type function above, // so this is guaranteed not to fail. diff --git a/vendor/github.com/zclconf/go-cty/cty/walk.go b/vendor/github.com/zclconf/go-cty/cty/walk.go index 87ba32e796b7..a18af04d635d 100644 --- a/vendor/github.com/zclconf/go-cty/cty/walk.go +++ b/vendor/github.com/zclconf/go-cty/cty/walk.go @@ -213,7 +213,7 @@ func transform(path Path, val Value, t Transformer) (Value, error) { atys := ty.AttributeTypes() newAVs := make(map[string]Value) for name := range atys { - av := val.GetAttr(name) + av := rawVal.GetAttr(name) path := append(path, GetAttrStep{ Name: name, }) diff --git a/vendor/golang.org/x/crypto/LICENSE b/vendor/golang.org/x/crypto/LICENSE index 6a66aea5eafe..2a7cf70da6e4 100644 --- a/vendor/golang.org/x/crypto/LICENSE +++ b/vendor/golang.org/x/crypto/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. +Copyright 2009 The Go Authors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its + * Neither the name of Google LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/vendor/golang.org/x/crypto/argon2/blamka_amd64.s b/vendor/golang.org/x/crypto/argon2/blamka_amd64.s index 6713accac09b..c3895478ed0c 100644 --- a/vendor/golang.org/x/crypto/argon2/blamka_amd64.s +++ b/vendor/golang.org/x/crypto/argon2/blamka_amd64.s @@ -1,243 +1,2791 @@ -// Copyright 2017 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. +// Code generated by command: go run blamka_amd64.go -out ../blamka_amd64.s -pkg argon2. DO NOT EDIT. //go:build amd64 && gc && !purego #include "textflag.h" -DATA ·c40<>+0x00(SB)/8, $0x0201000706050403 -DATA ·c40<>+0x08(SB)/8, $0x0a09080f0e0d0c0b -GLOBL ·c40<>(SB), (NOPTR+RODATA), $16 - -DATA ·c48<>+0x00(SB)/8, $0x0100070605040302 -DATA ·c48<>+0x08(SB)/8, $0x09080f0e0d0c0b0a -GLOBL ·c48<>(SB), (NOPTR+RODATA), $16 - -#define SHUFFLE(v2, v3, v4, v5, v6, v7, t1, t2) \ - MOVO v4, t1; \ - MOVO v5, v4; \ - MOVO t1, v5; \ - MOVO v6, t1; \ - PUNPCKLQDQ v6, t2; \ - PUNPCKHQDQ v7, v6; \ - PUNPCKHQDQ t2, v6; \ - PUNPCKLQDQ v7, t2; \ - MOVO t1, v7; \ - MOVO v2, t1; \ - PUNPCKHQDQ t2, v7; \ - PUNPCKLQDQ v3, t2; \ - PUNPCKHQDQ t2, v2; \ - PUNPCKLQDQ t1, t2; \ - PUNPCKHQDQ t2, v3 - -#define SHUFFLE_INV(v2, v3, v4, v5, v6, v7, t1, t2) \ - MOVO v4, t1; \ - MOVO v5, v4; \ - MOVO t1, v5; \ - MOVO v2, t1; \ - PUNPCKLQDQ v2, t2; \ - PUNPCKHQDQ v3, v2; \ - PUNPCKHQDQ t2, v2; \ - PUNPCKLQDQ v3, t2; \ - MOVO t1, v3; \ - MOVO v6, t1; \ - PUNPCKHQDQ t2, v3; \ - PUNPCKLQDQ v7, t2; \ - PUNPCKHQDQ t2, v6; \ - PUNPCKLQDQ t1, t2; \ - PUNPCKHQDQ t2, v7 - -#define HALF_ROUND(v0, v1, v2, v3, v4, v5, v6, v7, t0, c40, c48) \ - MOVO v0, t0; \ - PMULULQ v2, t0; \ - PADDQ v2, v0; \ - PADDQ t0, v0; \ - PADDQ t0, v0; \ - PXOR v0, v6; \ - PSHUFD $0xB1, v6, v6; \ - MOVO v4, t0; \ - PMULULQ v6, t0; \ - PADDQ v6, v4; \ - PADDQ t0, v4; \ - PADDQ t0, v4; \ - PXOR v4, v2; \ - PSHUFB c40, v2; \ - MOVO v0, t0; \ - PMULULQ v2, t0; \ - PADDQ v2, v0; \ - PADDQ t0, v0; \ - PADDQ t0, v0; \ - PXOR v0, v6; \ - PSHUFB c48, v6; \ - MOVO v4, t0; \ - PMULULQ v6, t0; \ - PADDQ v6, v4; \ - PADDQ t0, v4; \ - PADDQ t0, v4; \ - PXOR v4, v2; \ - MOVO v2, t0; \ - PADDQ v2, t0; \ - PSRLQ $63, v2; \ - PXOR t0, v2; \ - MOVO v1, t0; \ - PMULULQ v3, t0; \ - PADDQ v3, v1; \ - PADDQ t0, v1; \ - PADDQ t0, v1; \ - PXOR v1, v7; \ - PSHUFD $0xB1, v7, v7; \ - MOVO v5, t0; \ - PMULULQ v7, t0; \ - PADDQ v7, v5; \ - PADDQ t0, v5; \ - PADDQ t0, v5; \ - PXOR v5, v3; \ - PSHUFB c40, v3; \ - MOVO v1, t0; \ - PMULULQ v3, t0; \ - PADDQ v3, v1; \ - PADDQ t0, v1; \ - PADDQ t0, v1; \ - PXOR v1, v7; \ - PSHUFB c48, v7; \ - MOVO v5, t0; \ - PMULULQ v7, t0; \ - PADDQ v7, v5; \ - PADDQ t0, v5; \ - PADDQ t0, v5; \ - PXOR v5, v3; \ - MOVO v3, t0; \ - PADDQ v3, t0; \ - PSRLQ $63, v3; \ - PXOR t0, v3 - -#define LOAD_MSG_0(block, off) \ - MOVOU 8*(off+0)(block), X0; \ - MOVOU 8*(off+2)(block), X1; \ - MOVOU 8*(off+4)(block), X2; \ - MOVOU 8*(off+6)(block), X3; \ - MOVOU 8*(off+8)(block), X4; \ - MOVOU 8*(off+10)(block), X5; \ - MOVOU 8*(off+12)(block), X6; \ - MOVOU 8*(off+14)(block), X7 - -#define STORE_MSG_0(block, off) \ - MOVOU X0, 8*(off+0)(block); \ - MOVOU X1, 8*(off+2)(block); \ - MOVOU X2, 8*(off+4)(block); \ - MOVOU X3, 8*(off+6)(block); \ - MOVOU X4, 8*(off+8)(block); \ - MOVOU X5, 8*(off+10)(block); \ - MOVOU X6, 8*(off+12)(block); \ - MOVOU X7, 8*(off+14)(block) - -#define LOAD_MSG_1(block, off) \ - MOVOU 8*off+0*8(block), X0; \ - MOVOU 8*off+16*8(block), X1; \ - MOVOU 8*off+32*8(block), X2; \ - MOVOU 8*off+48*8(block), X3; \ - MOVOU 8*off+64*8(block), X4; \ - MOVOU 8*off+80*8(block), X5; \ - MOVOU 8*off+96*8(block), X6; \ - MOVOU 8*off+112*8(block), X7 - -#define STORE_MSG_1(block, off) \ - MOVOU X0, 8*off+0*8(block); \ - MOVOU X1, 8*off+16*8(block); \ - MOVOU X2, 8*off+32*8(block); \ - MOVOU X3, 8*off+48*8(block); \ - MOVOU X4, 8*off+64*8(block); \ - MOVOU X5, 8*off+80*8(block); \ - MOVOU X6, 8*off+96*8(block); \ - MOVOU X7, 8*off+112*8(block) - -#define BLAMKA_ROUND_0(block, off, t0, t1, c40, c48) \ - LOAD_MSG_0(block, off); \ - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, t0, c40, c48); \ - SHUFFLE(X2, X3, X4, X5, X6, X7, t0, t1); \ - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, t0, c40, c48); \ - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, t0, t1); \ - STORE_MSG_0(block, off) - -#define BLAMKA_ROUND_1(block, off, t0, t1, c40, c48) \ - LOAD_MSG_1(block, off); \ - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, t0, c40, c48); \ - SHUFFLE(X2, X3, X4, X5, X6, X7, t0, t1); \ - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, t0, c40, c48); \ - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, t0, t1); \ - STORE_MSG_1(block, off) - // func blamkaSSE4(b *block) -TEXT ·blamkaSSE4(SB), 4, $0-8 - MOVQ b+0(FP), AX - - MOVOU ·c40<>(SB), X10 - MOVOU ·c48<>(SB), X11 +// Requires: SSE2, SSSE3 +TEXT ·blamkaSSE4(SB), NOSPLIT, $0-8 + MOVQ b+0(FP), AX + MOVOU ·c40<>+0(SB), X10 + MOVOU ·c48<>+0(SB), X11 + MOVOU (AX), X0 + MOVOU 16(AX), X1 + MOVOU 32(AX), X2 + MOVOU 48(AX), X3 + MOVOU 64(AX), X4 + MOVOU 80(AX), X5 + MOVOU 96(AX), X6 + MOVOU 112(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, (AX) + MOVOU X1, 16(AX) + MOVOU X2, 32(AX) + MOVOU X3, 48(AX) + MOVOU X4, 64(AX) + MOVOU X5, 80(AX) + MOVOU X6, 96(AX) + MOVOU X7, 112(AX) + MOVOU 128(AX), X0 + MOVOU 144(AX), X1 + MOVOU 160(AX), X2 + MOVOU 176(AX), X3 + MOVOU 192(AX), X4 + MOVOU 208(AX), X5 + MOVOU 224(AX), X6 + MOVOU 240(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 128(AX) + MOVOU X1, 144(AX) + MOVOU X2, 160(AX) + MOVOU X3, 176(AX) + MOVOU X4, 192(AX) + MOVOU X5, 208(AX) + MOVOU X6, 224(AX) + MOVOU X7, 240(AX) + MOVOU 256(AX), X0 + MOVOU 272(AX), X1 + MOVOU 288(AX), X2 + MOVOU 304(AX), X3 + MOVOU 320(AX), X4 + MOVOU 336(AX), X5 + MOVOU 352(AX), X6 + MOVOU 368(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 256(AX) + MOVOU X1, 272(AX) + MOVOU X2, 288(AX) + MOVOU X3, 304(AX) + MOVOU X4, 320(AX) + MOVOU X5, 336(AX) + MOVOU X6, 352(AX) + MOVOU X7, 368(AX) + MOVOU 384(AX), X0 + MOVOU 400(AX), X1 + MOVOU 416(AX), X2 + MOVOU 432(AX), X3 + MOVOU 448(AX), X4 + MOVOU 464(AX), X5 + MOVOU 480(AX), X6 + MOVOU 496(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 384(AX) + MOVOU X1, 400(AX) + MOVOU X2, 416(AX) + MOVOU X3, 432(AX) + MOVOU X4, 448(AX) + MOVOU X5, 464(AX) + MOVOU X6, 480(AX) + MOVOU X7, 496(AX) + MOVOU 512(AX), X0 + MOVOU 528(AX), X1 + MOVOU 544(AX), X2 + MOVOU 560(AX), X3 + MOVOU 576(AX), X4 + MOVOU 592(AX), X5 + MOVOU 608(AX), X6 + MOVOU 624(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 512(AX) + MOVOU X1, 528(AX) + MOVOU X2, 544(AX) + MOVOU X3, 560(AX) + MOVOU X4, 576(AX) + MOVOU X5, 592(AX) + MOVOU X6, 608(AX) + MOVOU X7, 624(AX) + MOVOU 640(AX), X0 + MOVOU 656(AX), X1 + MOVOU 672(AX), X2 + MOVOU 688(AX), X3 + MOVOU 704(AX), X4 + MOVOU 720(AX), X5 + MOVOU 736(AX), X6 + MOVOU 752(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 640(AX) + MOVOU X1, 656(AX) + MOVOU X2, 672(AX) + MOVOU X3, 688(AX) + MOVOU X4, 704(AX) + MOVOU X5, 720(AX) + MOVOU X6, 736(AX) + MOVOU X7, 752(AX) + MOVOU 768(AX), X0 + MOVOU 784(AX), X1 + MOVOU 800(AX), X2 + MOVOU 816(AX), X3 + MOVOU 832(AX), X4 + MOVOU 848(AX), X5 + MOVOU 864(AX), X6 + MOVOU 880(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 768(AX) + MOVOU X1, 784(AX) + MOVOU X2, 800(AX) + MOVOU X3, 816(AX) + MOVOU X4, 832(AX) + MOVOU X5, 848(AX) + MOVOU X6, 864(AX) + MOVOU X7, 880(AX) + MOVOU 896(AX), X0 + MOVOU 912(AX), X1 + MOVOU 928(AX), X2 + MOVOU 944(AX), X3 + MOVOU 960(AX), X4 + MOVOU 976(AX), X5 + MOVOU 992(AX), X6 + MOVOU 1008(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 896(AX) + MOVOU X1, 912(AX) + MOVOU X2, 928(AX) + MOVOU X3, 944(AX) + MOVOU X4, 960(AX) + MOVOU X5, 976(AX) + MOVOU X6, 992(AX) + MOVOU X7, 1008(AX) + MOVOU (AX), X0 + MOVOU 128(AX), X1 + MOVOU 256(AX), X2 + MOVOU 384(AX), X3 + MOVOU 512(AX), X4 + MOVOU 640(AX), X5 + MOVOU 768(AX), X6 + MOVOU 896(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, (AX) + MOVOU X1, 128(AX) + MOVOU X2, 256(AX) + MOVOU X3, 384(AX) + MOVOU X4, 512(AX) + MOVOU X5, 640(AX) + MOVOU X6, 768(AX) + MOVOU X7, 896(AX) + MOVOU 16(AX), X0 + MOVOU 144(AX), X1 + MOVOU 272(AX), X2 + MOVOU 400(AX), X3 + MOVOU 528(AX), X4 + MOVOU 656(AX), X5 + MOVOU 784(AX), X6 + MOVOU 912(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 16(AX) + MOVOU X1, 144(AX) + MOVOU X2, 272(AX) + MOVOU X3, 400(AX) + MOVOU X4, 528(AX) + MOVOU X5, 656(AX) + MOVOU X6, 784(AX) + MOVOU X7, 912(AX) + MOVOU 32(AX), X0 + MOVOU 160(AX), X1 + MOVOU 288(AX), X2 + MOVOU 416(AX), X3 + MOVOU 544(AX), X4 + MOVOU 672(AX), X5 + MOVOU 800(AX), X6 + MOVOU 928(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 32(AX) + MOVOU X1, 160(AX) + MOVOU X2, 288(AX) + MOVOU X3, 416(AX) + MOVOU X4, 544(AX) + MOVOU X5, 672(AX) + MOVOU X6, 800(AX) + MOVOU X7, 928(AX) + MOVOU 48(AX), X0 + MOVOU 176(AX), X1 + MOVOU 304(AX), X2 + MOVOU 432(AX), X3 + MOVOU 560(AX), X4 + MOVOU 688(AX), X5 + MOVOU 816(AX), X6 + MOVOU 944(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 48(AX) + MOVOU X1, 176(AX) + MOVOU X2, 304(AX) + MOVOU X3, 432(AX) + MOVOU X4, 560(AX) + MOVOU X5, 688(AX) + MOVOU X6, 816(AX) + MOVOU X7, 944(AX) + MOVOU 64(AX), X0 + MOVOU 192(AX), X1 + MOVOU 320(AX), X2 + MOVOU 448(AX), X3 + MOVOU 576(AX), X4 + MOVOU 704(AX), X5 + MOVOU 832(AX), X6 + MOVOU 960(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 64(AX) + MOVOU X1, 192(AX) + MOVOU X2, 320(AX) + MOVOU X3, 448(AX) + MOVOU X4, 576(AX) + MOVOU X5, 704(AX) + MOVOU X6, 832(AX) + MOVOU X7, 960(AX) + MOVOU 80(AX), X0 + MOVOU 208(AX), X1 + MOVOU 336(AX), X2 + MOVOU 464(AX), X3 + MOVOU 592(AX), X4 + MOVOU 720(AX), X5 + MOVOU 848(AX), X6 + MOVOU 976(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 80(AX) + MOVOU X1, 208(AX) + MOVOU X2, 336(AX) + MOVOU X3, 464(AX) + MOVOU X4, 592(AX) + MOVOU X5, 720(AX) + MOVOU X6, 848(AX) + MOVOU X7, 976(AX) + MOVOU 96(AX), X0 + MOVOU 224(AX), X1 + MOVOU 352(AX), X2 + MOVOU 480(AX), X3 + MOVOU 608(AX), X4 + MOVOU 736(AX), X5 + MOVOU 864(AX), X6 + MOVOU 992(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 96(AX) + MOVOU X1, 224(AX) + MOVOU X2, 352(AX) + MOVOU X3, 480(AX) + MOVOU X4, 608(AX) + MOVOU X5, 736(AX) + MOVOU X6, 864(AX) + MOVOU X7, 992(AX) + MOVOU 112(AX), X0 + MOVOU 240(AX), X1 + MOVOU 368(AX), X2 + MOVOU 496(AX), X3 + MOVOU 624(AX), X4 + MOVOU 752(AX), X5 + MOVOU 880(AX), X6 + MOVOU 1008(AX), X7 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFD $0xb1, X6, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + PSHUFB X10, X2 + MOVO X0, X8 + PMULULQ X2, X8 + PADDQ X2, X0 + PADDQ X8, X0 + PADDQ X8, X0 + PXOR X0, X6 + PSHUFB X11, X6 + MOVO X4, X8 + PMULULQ X6, X8 + PADDQ X6, X4 + PADDQ X8, X4 + PADDQ X8, X4 + PXOR X4, X2 + MOVO X2, X8 + PADDQ X2, X8 + PSRLQ $0x3f, X2 + PXOR X8, X2 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFD $0xb1, X7, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + PSHUFB X10, X3 + MOVO X1, X8 + PMULULQ X3, X8 + PADDQ X3, X1 + PADDQ X8, X1 + PADDQ X8, X1 + PXOR X1, X7 + PSHUFB X11, X7 + MOVO X5, X8 + PMULULQ X7, X8 + PADDQ X7, X5 + PADDQ X8, X5 + PADDQ X8, X5 + PXOR X5, X3 + MOVO X3, X8 + PADDQ X3, X8 + PSRLQ $0x3f, X3 + PXOR X8, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU X0, 112(AX) + MOVOU X1, 240(AX) + MOVOU X2, 368(AX) + MOVOU X3, 496(AX) + MOVOU X4, 624(AX) + MOVOU X5, 752(AX) + MOVOU X6, 880(AX) + MOVOU X7, 1008(AX) + RET - BLAMKA_ROUND_0(AX, 0, X8, X9, X10, X11) - BLAMKA_ROUND_0(AX, 16, X8, X9, X10, X11) - BLAMKA_ROUND_0(AX, 32, X8, X9, X10, X11) - BLAMKA_ROUND_0(AX, 48, X8, X9, X10, X11) - BLAMKA_ROUND_0(AX, 64, X8, X9, X10, X11) - BLAMKA_ROUND_0(AX, 80, X8, X9, X10, X11) - BLAMKA_ROUND_0(AX, 96, X8, X9, X10, X11) - BLAMKA_ROUND_0(AX, 112, X8, X9, X10, X11) +DATA ·c40<>+0(SB)/8, $0x0201000706050403 +DATA ·c40<>+8(SB)/8, $0x0a09080f0e0d0c0b +GLOBL ·c40<>(SB), RODATA|NOPTR, $16 - BLAMKA_ROUND_1(AX, 0, X8, X9, X10, X11) - BLAMKA_ROUND_1(AX, 2, X8, X9, X10, X11) - BLAMKA_ROUND_1(AX, 4, X8, X9, X10, X11) - BLAMKA_ROUND_1(AX, 6, X8, X9, X10, X11) - BLAMKA_ROUND_1(AX, 8, X8, X9, X10, X11) - BLAMKA_ROUND_1(AX, 10, X8, X9, X10, X11) - BLAMKA_ROUND_1(AX, 12, X8, X9, X10, X11) - BLAMKA_ROUND_1(AX, 14, X8, X9, X10, X11) - RET +DATA ·c48<>+0(SB)/8, $0x0100070605040302 +DATA ·c48<>+8(SB)/8, $0x09080f0e0d0c0b0a +GLOBL ·c48<>(SB), RODATA|NOPTR, $16 -// func mixBlocksSSE2(out, a, b, c *block) -TEXT ·mixBlocksSSE2(SB), 4, $0-32 +// func mixBlocksSSE2(out *block, a *block, b *block, c *block) +// Requires: SSE2 +TEXT ·mixBlocksSSE2(SB), NOSPLIT, $0-32 MOVQ out+0(FP), DX MOVQ a+8(FP), AX MOVQ b+16(FP), BX MOVQ c+24(FP), CX - MOVQ $128, DI + MOVQ $0x00000080, DI loop: - MOVOU 0(AX), X0 - MOVOU 0(BX), X1 - MOVOU 0(CX), X2 + MOVOU (AX), X0 + MOVOU (BX), X1 + MOVOU (CX), X2 PXOR X1, X0 PXOR X2, X0 - MOVOU X0, 0(DX) - ADDQ $16, AX - ADDQ $16, BX - ADDQ $16, CX - ADDQ $16, DX - SUBQ $2, DI + MOVOU X0, (DX) + ADDQ $0x10, AX + ADDQ $0x10, BX + ADDQ $0x10, CX + ADDQ $0x10, DX + SUBQ $0x02, DI JA loop RET -// func xorBlocksSSE2(out, a, b, c *block) -TEXT ·xorBlocksSSE2(SB), 4, $0-32 +// func xorBlocksSSE2(out *block, a *block, b *block, c *block) +// Requires: SSE2 +TEXT ·xorBlocksSSE2(SB), NOSPLIT, $0-32 MOVQ out+0(FP), DX MOVQ a+8(FP), AX MOVQ b+16(FP), BX MOVQ c+24(FP), CX - MOVQ $128, DI + MOVQ $0x00000080, DI loop: - MOVOU 0(AX), X0 - MOVOU 0(BX), X1 - MOVOU 0(CX), X2 - MOVOU 0(DX), X3 + MOVOU (AX), X0 + MOVOU (BX), X1 + MOVOU (CX), X2 + MOVOU (DX), X3 PXOR X1, X0 PXOR X2, X0 PXOR X3, X0 - MOVOU X0, 0(DX) - ADDQ $16, AX - ADDQ $16, BX - ADDQ $16, CX - ADDQ $16, DX - SUBQ $2, DI + MOVOU X0, (DX) + ADDQ $0x10, AX + ADDQ $0x10, BX + ADDQ $0x10, CX + ADDQ $0x10, DX + SUBQ $0x02, DI JA loop RET diff --git a/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s b/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s index 9ae8206c2016..f75162e039c1 100644 --- a/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s +++ b/vendor/golang.org/x/crypto/blake2b/blake2bAVX2_amd64.s @@ -1,722 +1,4517 @@ -// Copyright 2016 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. +// Code generated by command: go run blake2bAVX2_amd64_asm.go -out ../../blake2bAVX2_amd64.s -pkg blake2b. DO NOT EDIT. //go:build amd64 && gc && !purego #include "textflag.h" -DATA ·AVX2_iv0<>+0x00(SB)/8, $0x6a09e667f3bcc908 -DATA ·AVX2_iv0<>+0x08(SB)/8, $0xbb67ae8584caa73b -DATA ·AVX2_iv0<>+0x10(SB)/8, $0x3c6ef372fe94f82b -DATA ·AVX2_iv0<>+0x18(SB)/8, $0xa54ff53a5f1d36f1 -GLOBL ·AVX2_iv0<>(SB), (NOPTR+RODATA), $32 - -DATA ·AVX2_iv1<>+0x00(SB)/8, $0x510e527fade682d1 -DATA ·AVX2_iv1<>+0x08(SB)/8, $0x9b05688c2b3e6c1f -DATA ·AVX2_iv1<>+0x10(SB)/8, $0x1f83d9abfb41bd6b -DATA ·AVX2_iv1<>+0x18(SB)/8, $0x5be0cd19137e2179 -GLOBL ·AVX2_iv1<>(SB), (NOPTR+RODATA), $32 - -DATA ·AVX2_c40<>+0x00(SB)/8, $0x0201000706050403 -DATA ·AVX2_c40<>+0x08(SB)/8, $0x0a09080f0e0d0c0b -DATA ·AVX2_c40<>+0x10(SB)/8, $0x0201000706050403 -DATA ·AVX2_c40<>+0x18(SB)/8, $0x0a09080f0e0d0c0b -GLOBL ·AVX2_c40<>(SB), (NOPTR+RODATA), $32 - -DATA ·AVX2_c48<>+0x00(SB)/8, $0x0100070605040302 -DATA ·AVX2_c48<>+0x08(SB)/8, $0x09080f0e0d0c0b0a -DATA ·AVX2_c48<>+0x10(SB)/8, $0x0100070605040302 -DATA ·AVX2_c48<>+0x18(SB)/8, $0x09080f0e0d0c0b0a -GLOBL ·AVX2_c48<>(SB), (NOPTR+RODATA), $32 - -DATA ·AVX_iv0<>+0x00(SB)/8, $0x6a09e667f3bcc908 -DATA ·AVX_iv0<>+0x08(SB)/8, $0xbb67ae8584caa73b -GLOBL ·AVX_iv0<>(SB), (NOPTR+RODATA), $16 - -DATA ·AVX_iv1<>+0x00(SB)/8, $0x3c6ef372fe94f82b -DATA ·AVX_iv1<>+0x08(SB)/8, $0xa54ff53a5f1d36f1 -GLOBL ·AVX_iv1<>(SB), (NOPTR+RODATA), $16 - -DATA ·AVX_iv2<>+0x00(SB)/8, $0x510e527fade682d1 -DATA ·AVX_iv2<>+0x08(SB)/8, $0x9b05688c2b3e6c1f -GLOBL ·AVX_iv2<>(SB), (NOPTR+RODATA), $16 - -DATA ·AVX_iv3<>+0x00(SB)/8, $0x1f83d9abfb41bd6b -DATA ·AVX_iv3<>+0x08(SB)/8, $0x5be0cd19137e2179 -GLOBL ·AVX_iv3<>(SB), (NOPTR+RODATA), $16 - -DATA ·AVX_c40<>+0x00(SB)/8, $0x0201000706050403 -DATA ·AVX_c40<>+0x08(SB)/8, $0x0a09080f0e0d0c0b -GLOBL ·AVX_c40<>(SB), (NOPTR+RODATA), $16 - -DATA ·AVX_c48<>+0x00(SB)/8, $0x0100070605040302 -DATA ·AVX_c48<>+0x08(SB)/8, $0x09080f0e0d0c0b0a -GLOBL ·AVX_c48<>(SB), (NOPTR+RODATA), $16 - -#define VPERMQ_0x39_Y1_Y1 BYTE $0xc4; BYTE $0xe3; BYTE $0xfd; BYTE $0x00; BYTE $0xc9; BYTE $0x39 -#define VPERMQ_0x93_Y1_Y1 BYTE $0xc4; BYTE $0xe3; BYTE $0xfd; BYTE $0x00; BYTE $0xc9; BYTE $0x93 -#define VPERMQ_0x4E_Y2_Y2 BYTE $0xc4; BYTE $0xe3; BYTE $0xfd; BYTE $0x00; BYTE $0xd2; BYTE $0x4e -#define VPERMQ_0x93_Y3_Y3 BYTE $0xc4; BYTE $0xe3; BYTE $0xfd; BYTE $0x00; BYTE $0xdb; BYTE $0x93 -#define VPERMQ_0x39_Y3_Y3 BYTE $0xc4; BYTE $0xe3; BYTE $0xfd; BYTE $0x00; BYTE $0xdb; BYTE $0x39 - -#define ROUND_AVX2(m0, m1, m2, m3, t, c40, c48) \ - VPADDQ m0, Y0, Y0; \ - VPADDQ Y1, Y0, Y0; \ - VPXOR Y0, Y3, Y3; \ - VPSHUFD $-79, Y3, Y3; \ - VPADDQ Y3, Y2, Y2; \ - VPXOR Y2, Y1, Y1; \ - VPSHUFB c40, Y1, Y1; \ - VPADDQ m1, Y0, Y0; \ - VPADDQ Y1, Y0, Y0; \ - VPXOR Y0, Y3, Y3; \ - VPSHUFB c48, Y3, Y3; \ - VPADDQ Y3, Y2, Y2; \ - VPXOR Y2, Y1, Y1; \ - VPADDQ Y1, Y1, t; \ - VPSRLQ $63, Y1, Y1; \ - VPXOR t, Y1, Y1; \ - VPERMQ_0x39_Y1_Y1; \ - VPERMQ_0x4E_Y2_Y2; \ - VPERMQ_0x93_Y3_Y3; \ - VPADDQ m2, Y0, Y0; \ - VPADDQ Y1, Y0, Y0; \ - VPXOR Y0, Y3, Y3; \ - VPSHUFD $-79, Y3, Y3; \ - VPADDQ Y3, Y2, Y2; \ - VPXOR Y2, Y1, Y1; \ - VPSHUFB c40, Y1, Y1; \ - VPADDQ m3, Y0, Y0; \ - VPADDQ Y1, Y0, Y0; \ - VPXOR Y0, Y3, Y3; \ - VPSHUFB c48, Y3, Y3; \ - VPADDQ Y3, Y2, Y2; \ - VPXOR Y2, Y1, Y1; \ - VPADDQ Y1, Y1, t; \ - VPSRLQ $63, Y1, Y1; \ - VPXOR t, Y1, Y1; \ - VPERMQ_0x39_Y3_Y3; \ - VPERMQ_0x4E_Y2_Y2; \ - VPERMQ_0x93_Y1_Y1 - -#define VMOVQ_SI_X11_0 BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x1E -#define VMOVQ_SI_X12_0 BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x26 -#define VMOVQ_SI_X13_0 BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x2E -#define VMOVQ_SI_X14_0 BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x36 -#define VMOVQ_SI_X15_0 BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x3E - -#define VMOVQ_SI_X11(n) BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x5E; BYTE $n -#define VMOVQ_SI_X12(n) BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x66; BYTE $n -#define VMOVQ_SI_X13(n) BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x6E; BYTE $n -#define VMOVQ_SI_X14(n) BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x76; BYTE $n -#define VMOVQ_SI_X15(n) BYTE $0xC5; BYTE $0x7A; BYTE $0x7E; BYTE $0x7E; BYTE $n - -#define VPINSRQ_1_SI_X11_0 BYTE $0xC4; BYTE $0x63; BYTE $0xA1; BYTE $0x22; BYTE $0x1E; BYTE $0x01 -#define VPINSRQ_1_SI_X12_0 BYTE $0xC4; BYTE $0x63; BYTE $0x99; BYTE $0x22; BYTE $0x26; BYTE $0x01 -#define VPINSRQ_1_SI_X13_0 BYTE $0xC4; BYTE $0x63; BYTE $0x91; BYTE $0x22; BYTE $0x2E; BYTE $0x01 -#define VPINSRQ_1_SI_X14_0 BYTE $0xC4; BYTE $0x63; BYTE $0x89; BYTE $0x22; BYTE $0x36; BYTE $0x01 -#define VPINSRQ_1_SI_X15_0 BYTE $0xC4; BYTE $0x63; BYTE $0x81; BYTE $0x22; BYTE $0x3E; BYTE $0x01 - -#define VPINSRQ_1_SI_X11(n) BYTE $0xC4; BYTE $0x63; BYTE $0xA1; BYTE $0x22; BYTE $0x5E; BYTE $n; BYTE $0x01 -#define VPINSRQ_1_SI_X12(n) BYTE $0xC4; BYTE $0x63; BYTE $0x99; BYTE $0x22; BYTE $0x66; BYTE $n; BYTE $0x01 -#define VPINSRQ_1_SI_X13(n) BYTE $0xC4; BYTE $0x63; BYTE $0x91; BYTE $0x22; BYTE $0x6E; BYTE $n; BYTE $0x01 -#define VPINSRQ_1_SI_X14(n) BYTE $0xC4; BYTE $0x63; BYTE $0x89; BYTE $0x22; BYTE $0x76; BYTE $n; BYTE $0x01 -#define VPINSRQ_1_SI_X15(n) BYTE $0xC4; BYTE $0x63; BYTE $0x81; BYTE $0x22; BYTE $0x7E; BYTE $n; BYTE $0x01 - -#define VMOVQ_R8_X15 BYTE $0xC4; BYTE $0x41; BYTE $0xF9; BYTE $0x6E; BYTE $0xF8 -#define VPINSRQ_1_R9_X15 BYTE $0xC4; BYTE $0x43; BYTE $0x81; BYTE $0x22; BYTE $0xF9; BYTE $0x01 - -// load msg: Y12 = (i0, i1, i2, i3) -// i0, i1, i2, i3 must not be 0 -#define LOAD_MSG_AVX2_Y12(i0, i1, i2, i3) \ - VMOVQ_SI_X12(i0*8); \ - VMOVQ_SI_X11(i2*8); \ - VPINSRQ_1_SI_X12(i1*8); \ - VPINSRQ_1_SI_X11(i3*8); \ - VINSERTI128 $1, X11, Y12, Y12 - -// load msg: Y13 = (i0, i1, i2, i3) -// i0, i1, i2, i3 must not be 0 -#define LOAD_MSG_AVX2_Y13(i0, i1, i2, i3) \ - VMOVQ_SI_X13(i0*8); \ - VMOVQ_SI_X11(i2*8); \ - VPINSRQ_1_SI_X13(i1*8); \ - VPINSRQ_1_SI_X11(i3*8); \ - VINSERTI128 $1, X11, Y13, Y13 - -// load msg: Y14 = (i0, i1, i2, i3) -// i0, i1, i2, i3 must not be 0 -#define LOAD_MSG_AVX2_Y14(i0, i1, i2, i3) \ - VMOVQ_SI_X14(i0*8); \ - VMOVQ_SI_X11(i2*8); \ - VPINSRQ_1_SI_X14(i1*8); \ - VPINSRQ_1_SI_X11(i3*8); \ - VINSERTI128 $1, X11, Y14, Y14 - -// load msg: Y15 = (i0, i1, i2, i3) -// i0, i1, i2, i3 must not be 0 -#define LOAD_MSG_AVX2_Y15(i0, i1, i2, i3) \ - VMOVQ_SI_X15(i0*8); \ - VMOVQ_SI_X11(i2*8); \ - VPINSRQ_1_SI_X15(i1*8); \ - VPINSRQ_1_SI_X11(i3*8); \ - VINSERTI128 $1, X11, Y15, Y15 - -#define LOAD_MSG_AVX2_0_2_4_6_1_3_5_7_8_10_12_14_9_11_13_15() \ - VMOVQ_SI_X12_0; \ - VMOVQ_SI_X11(4*8); \ - VPINSRQ_1_SI_X12(2*8); \ - VPINSRQ_1_SI_X11(6*8); \ - VINSERTI128 $1, X11, Y12, Y12; \ - LOAD_MSG_AVX2_Y13(1, 3, 5, 7); \ - LOAD_MSG_AVX2_Y14(8, 10, 12, 14); \ - LOAD_MSG_AVX2_Y15(9, 11, 13, 15) - -#define LOAD_MSG_AVX2_14_4_9_13_10_8_15_6_1_0_11_5_12_2_7_3() \ - LOAD_MSG_AVX2_Y12(14, 4, 9, 13); \ - LOAD_MSG_AVX2_Y13(10, 8, 15, 6); \ - VMOVQ_SI_X11(11*8); \ - VPSHUFD $0x4E, 0*8(SI), X14; \ - VPINSRQ_1_SI_X11(5*8); \ - VINSERTI128 $1, X11, Y14, Y14; \ - LOAD_MSG_AVX2_Y15(12, 2, 7, 3) - -#define LOAD_MSG_AVX2_11_12_5_15_8_0_2_13_10_3_7_9_14_6_1_4() \ - VMOVQ_SI_X11(5*8); \ - VMOVDQU 11*8(SI), X12; \ - VPINSRQ_1_SI_X11(15*8); \ - VINSERTI128 $1, X11, Y12, Y12; \ - VMOVQ_SI_X13(8*8); \ - VMOVQ_SI_X11(2*8); \ - VPINSRQ_1_SI_X13_0; \ - VPINSRQ_1_SI_X11(13*8); \ - VINSERTI128 $1, X11, Y13, Y13; \ - LOAD_MSG_AVX2_Y14(10, 3, 7, 9); \ - LOAD_MSG_AVX2_Y15(14, 6, 1, 4) - -#define LOAD_MSG_AVX2_7_3_13_11_9_1_12_14_2_5_4_15_6_10_0_8() \ - LOAD_MSG_AVX2_Y12(7, 3, 13, 11); \ - LOAD_MSG_AVX2_Y13(9, 1, 12, 14); \ - LOAD_MSG_AVX2_Y14(2, 5, 4, 15); \ - VMOVQ_SI_X15(6*8); \ - VMOVQ_SI_X11_0; \ - VPINSRQ_1_SI_X15(10*8); \ - VPINSRQ_1_SI_X11(8*8); \ - VINSERTI128 $1, X11, Y15, Y15 - -#define LOAD_MSG_AVX2_9_5_2_10_0_7_4_15_14_11_6_3_1_12_8_13() \ - LOAD_MSG_AVX2_Y12(9, 5, 2, 10); \ - VMOVQ_SI_X13_0; \ - VMOVQ_SI_X11(4*8); \ - VPINSRQ_1_SI_X13(7*8); \ - VPINSRQ_1_SI_X11(15*8); \ - VINSERTI128 $1, X11, Y13, Y13; \ - LOAD_MSG_AVX2_Y14(14, 11, 6, 3); \ - LOAD_MSG_AVX2_Y15(1, 12, 8, 13) - -#define LOAD_MSG_AVX2_2_6_0_8_12_10_11_3_4_7_15_1_13_5_14_9() \ - VMOVQ_SI_X12(2*8); \ - VMOVQ_SI_X11_0; \ - VPINSRQ_1_SI_X12(6*8); \ - VPINSRQ_1_SI_X11(8*8); \ - VINSERTI128 $1, X11, Y12, Y12; \ - LOAD_MSG_AVX2_Y13(12, 10, 11, 3); \ - LOAD_MSG_AVX2_Y14(4, 7, 15, 1); \ - LOAD_MSG_AVX2_Y15(13, 5, 14, 9) - -#define LOAD_MSG_AVX2_12_1_14_4_5_15_13_10_0_6_9_8_7_3_2_11() \ - LOAD_MSG_AVX2_Y12(12, 1, 14, 4); \ - LOAD_MSG_AVX2_Y13(5, 15, 13, 10); \ - VMOVQ_SI_X14_0; \ - VPSHUFD $0x4E, 8*8(SI), X11; \ - VPINSRQ_1_SI_X14(6*8); \ - VINSERTI128 $1, X11, Y14, Y14; \ - LOAD_MSG_AVX2_Y15(7, 3, 2, 11) - -#define LOAD_MSG_AVX2_13_7_12_3_11_14_1_9_5_15_8_2_0_4_6_10() \ - LOAD_MSG_AVX2_Y12(13, 7, 12, 3); \ - LOAD_MSG_AVX2_Y13(11, 14, 1, 9); \ - LOAD_MSG_AVX2_Y14(5, 15, 8, 2); \ - VMOVQ_SI_X15_0; \ - VMOVQ_SI_X11(6*8); \ - VPINSRQ_1_SI_X15(4*8); \ - VPINSRQ_1_SI_X11(10*8); \ - VINSERTI128 $1, X11, Y15, Y15 - -#define LOAD_MSG_AVX2_6_14_11_0_15_9_3_8_12_13_1_10_2_7_4_5() \ - VMOVQ_SI_X12(6*8); \ - VMOVQ_SI_X11(11*8); \ - VPINSRQ_1_SI_X12(14*8); \ - VPINSRQ_1_SI_X11_0; \ - VINSERTI128 $1, X11, Y12, Y12; \ - LOAD_MSG_AVX2_Y13(15, 9, 3, 8); \ - VMOVQ_SI_X11(1*8); \ - VMOVDQU 12*8(SI), X14; \ - VPINSRQ_1_SI_X11(10*8); \ - VINSERTI128 $1, X11, Y14, Y14; \ - VMOVQ_SI_X15(2*8); \ - VMOVDQU 4*8(SI), X11; \ - VPINSRQ_1_SI_X15(7*8); \ - VINSERTI128 $1, X11, Y15, Y15 - -#define LOAD_MSG_AVX2_10_8_7_1_2_4_6_5_15_9_3_13_11_14_12_0() \ - LOAD_MSG_AVX2_Y12(10, 8, 7, 1); \ - VMOVQ_SI_X13(2*8); \ - VPSHUFD $0x4E, 5*8(SI), X11; \ - VPINSRQ_1_SI_X13(4*8); \ - VINSERTI128 $1, X11, Y13, Y13; \ - LOAD_MSG_AVX2_Y14(15, 9, 3, 13); \ - VMOVQ_SI_X15(11*8); \ - VMOVQ_SI_X11(12*8); \ - VPINSRQ_1_SI_X15(14*8); \ - VPINSRQ_1_SI_X11_0; \ - VINSERTI128 $1, X11, Y15, Y15 - // func hashBlocksAVX2(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) -TEXT ·hashBlocksAVX2(SB), 4, $320-48 // frame size = 288 + 32 byte alignment - MOVQ h+0(FP), AX - MOVQ c+8(FP), BX - MOVQ flag+16(FP), CX - MOVQ blocks_base+24(FP), SI - MOVQ blocks_len+32(FP), DI - - MOVQ SP, DX - ADDQ $31, DX - ANDQ $~31, DX - - MOVQ CX, 16(DX) - XORQ CX, CX - MOVQ CX, 24(DX) - - VMOVDQU ·AVX2_c40<>(SB), Y4 - VMOVDQU ·AVX2_c48<>(SB), Y5 - - VMOVDQU 0(AX), Y8 +// Requires: AVX, AVX2 +TEXT ·hashBlocksAVX2(SB), NOSPLIT, $320-48 + MOVQ h+0(FP), AX + MOVQ c+8(FP), BX + MOVQ flag+16(FP), CX + MOVQ blocks_base+24(FP), SI + MOVQ blocks_len+32(FP), DI + MOVQ SP, DX + ADDQ $+31, DX + ANDQ $-32, DX + MOVQ CX, 16(DX) + XORQ CX, CX + MOVQ CX, 24(DX) + VMOVDQU ·AVX2_c40<>+0(SB), Y4 + VMOVDQU ·AVX2_c48<>+0(SB), Y5 + VMOVDQU (AX), Y8 VMOVDQU 32(AX), Y9 - VMOVDQU ·AVX2_iv0<>(SB), Y6 - VMOVDQU ·AVX2_iv1<>(SB), Y7 - - MOVQ 0(BX), R8 - MOVQ 8(BX), R9 - MOVQ R9, 8(DX) + VMOVDQU ·AVX2_iv0<>+0(SB), Y6 + VMOVDQU ·AVX2_iv1<>+0(SB), Y7 + MOVQ (BX), R8 + MOVQ 8(BX), R9 + MOVQ R9, 8(DX) loop: - ADDQ $128, R8 - MOVQ R8, 0(DX) - CMPQ R8, $128 + ADDQ $0x80, R8 + MOVQ R8, (DX) + CMPQ R8, $0x80 JGE noinc INCQ R9 MOVQ R9, 8(DX) noinc: - VMOVDQA Y8, Y0 - VMOVDQA Y9, Y1 - VMOVDQA Y6, Y2 - VPXOR 0(DX), Y7, Y3 - - LOAD_MSG_AVX2_0_2_4_6_1_3_5_7_8_10_12_14_9_11_13_15() - VMOVDQA Y12, 32(DX) - VMOVDQA Y13, 64(DX) - VMOVDQA Y14, 96(DX) - VMOVDQA Y15, 128(DX) - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_14_4_9_13_10_8_15_6_1_0_11_5_12_2_7_3() - VMOVDQA Y12, 160(DX) - VMOVDQA Y13, 192(DX) - VMOVDQA Y14, 224(DX) - VMOVDQA Y15, 256(DX) - - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_11_12_5_15_8_0_2_13_10_3_7_9_14_6_1_4() - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_7_3_13_11_9_1_12_14_2_5_4_15_6_10_0_8() - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_9_5_2_10_0_7_4_15_14_11_6_3_1_12_8_13() - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_2_6_0_8_12_10_11_3_4_7_15_1_13_5_14_9() - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_12_1_14_4_5_15_13_10_0_6_9_8_7_3_2_11() - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_13_7_12_3_11_14_1_9_5_15_8_2_0_4_6_10() - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_6_14_11_0_15_9_3_8_12_13_1_10_2_7_4_5() - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - LOAD_MSG_AVX2_10_8_7_1_2_4_6_5_15_9_3_13_11_14_12_0() - ROUND_AVX2(Y12, Y13, Y14, Y15, Y10, Y4, Y5) - - ROUND_AVX2(32(DX), 64(DX), 96(DX), 128(DX), Y10, Y4, Y5) - ROUND_AVX2(160(DX), 192(DX), 224(DX), 256(DX), Y10, Y4, Y5) - - VPXOR Y0, Y8, Y8 - VPXOR Y1, Y9, Y9 - VPXOR Y2, Y8, Y8 - VPXOR Y3, Y9, Y9 - - LEAQ 128(SI), SI - SUBQ $128, DI - JNE loop - - MOVQ R8, 0(BX) - MOVQ R9, 8(BX) - - VMOVDQU Y8, 0(AX) - VMOVDQU Y9, 32(AX) + VMOVDQA Y8, Y0 + VMOVDQA Y9, Y1 + VMOVDQA Y6, Y2 + VPXOR (DX), Y7, Y3 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x26 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x20 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x10 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x30 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x08 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x28 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x38 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x40 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x60 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x50 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x70 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x48 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x68 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x58 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x78 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VMOVDQA Y12, 32(DX) + VMOVDQA Y13, 64(DX) + VMOVDQA Y14, 96(DX) + VMOVDQA Y15, 128(DX) + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x70 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x48 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x20 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x68 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x50 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x78 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x40 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x30 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x58 + VPSHUFD $0x4e, (SI), X14 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x28 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x60 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x38 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x10 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x18 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VMOVDQA Y12, 160(DX) + VMOVDQA Y13, 192(DX) + VMOVDQA Y14, 224(DX) + VMOVDQA Y15, 256(DX) + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x28 + VMOVDQU 88(SI), X12 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x78 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x40 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x10 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x2e + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x68 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x50 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x38 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x48 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x70 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x08 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x30 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x20 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x38 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x68 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x58 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x48 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x60 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x08 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x70 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x10 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x20 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x28 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x78 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x30 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x1e + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x50 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x40 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x48 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x10 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x28 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x50 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x2e + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x20 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x38 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x78 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x70 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x30 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x58 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x18 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x08 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x40 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x60 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x68 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x10 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x1e + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x30 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x40 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x60 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x58 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x50 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x18 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x20 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x78 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x38 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x08 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x68 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x70 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x28 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x48 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x60 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x70 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x08 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x20 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x28 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x68 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x78 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x50 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x36 + VPSHUFD $0x4e, 64(SI), X11 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x30 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x38 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x10 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x58 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x68 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x60 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x38 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x18 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x58 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x08 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x70 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x48 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x28 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x40 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x78 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x10 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x3e + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x30 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x20 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x50 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x30 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x58 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x70 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x1e + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x78 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x18 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x48 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x40 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x08 + VMOVDQU 96(SI), X14 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x50 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x10 + VMOVDQU 32(SI), X11 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x38 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x50 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x38 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x40 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x08 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y12, Y12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x10 + VPSHUFD $0x4e, 40(SI), X11 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x20 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y13, Y13 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x78 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x18 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x48 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x5e + BYTE $0x68 + BYTE $0x01 + VINSERTI128 $0x01, X11, Y14, Y14 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x58 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x5e + BYTE $0x60 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x70 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0xa1 + BYTE $0x22 + BYTE $0x1e + BYTE $0x01 + VINSERTI128 $0x01, X11, Y15, Y15 + VPADDQ Y12, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y13, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ Y14, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ Y15, Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + VPADDQ 32(DX), Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ 64(DX), Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ 96(DX), Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ 128(DX), Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + VPADDQ 160(DX), Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ 192(DX), Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x93 + VPADDQ 224(DX), Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFD $-79, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPSHUFB Y4, Y1, Y1 + VPADDQ 256(DX), Y0, Y0 + VPADDQ Y1, Y0, Y0 + VPXOR Y0, Y3, Y3 + VPSHUFB Y5, Y3, Y3 + VPADDQ Y3, Y2, Y2 + VPXOR Y2, Y1, Y1 + VPADDQ Y1, Y1, Y10 + VPSRLQ $0x3f, Y1, Y1 + VPXOR Y10, Y1, Y1 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xdb + BYTE $0x39 + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xd2 + BYTE $0x4e + BYTE $0xc4 + BYTE $0xe3 + BYTE $0xfd + BYTE $0x00 + BYTE $0xc9 + BYTE $0x93 + VPXOR Y0, Y8, Y8 + VPXOR Y1, Y9, Y9 + VPXOR Y2, Y8, Y8 + VPXOR Y3, Y9, Y9 + LEAQ 128(SI), SI + SUBQ $0x80, DI + JNE loop + MOVQ R8, (BX) + MOVQ R9, 8(BX) + VMOVDQU Y8, (AX) + VMOVDQU Y9, 32(AX) VZEROUPPER - RET -#define VPUNPCKLQDQ_X2_X2_X15 BYTE $0xC5; BYTE $0x69; BYTE $0x6C; BYTE $0xFA -#define VPUNPCKLQDQ_X3_X3_X15 BYTE $0xC5; BYTE $0x61; BYTE $0x6C; BYTE $0xFB -#define VPUNPCKLQDQ_X7_X7_X15 BYTE $0xC5; BYTE $0x41; BYTE $0x6C; BYTE $0xFF -#define VPUNPCKLQDQ_X13_X13_X15 BYTE $0xC4; BYTE $0x41; BYTE $0x11; BYTE $0x6C; BYTE $0xFD -#define VPUNPCKLQDQ_X14_X14_X15 BYTE $0xC4; BYTE $0x41; BYTE $0x09; BYTE $0x6C; BYTE $0xFE - -#define VPUNPCKHQDQ_X15_X2_X2 BYTE $0xC4; BYTE $0xC1; BYTE $0x69; BYTE $0x6D; BYTE $0xD7 -#define VPUNPCKHQDQ_X15_X3_X3 BYTE $0xC4; BYTE $0xC1; BYTE $0x61; BYTE $0x6D; BYTE $0xDF -#define VPUNPCKHQDQ_X15_X6_X6 BYTE $0xC4; BYTE $0xC1; BYTE $0x49; BYTE $0x6D; BYTE $0xF7 -#define VPUNPCKHQDQ_X15_X7_X7 BYTE $0xC4; BYTE $0xC1; BYTE $0x41; BYTE $0x6D; BYTE $0xFF -#define VPUNPCKHQDQ_X15_X3_X2 BYTE $0xC4; BYTE $0xC1; BYTE $0x61; BYTE $0x6D; BYTE $0xD7 -#define VPUNPCKHQDQ_X15_X7_X6 BYTE $0xC4; BYTE $0xC1; BYTE $0x41; BYTE $0x6D; BYTE $0xF7 -#define VPUNPCKHQDQ_X15_X13_X3 BYTE $0xC4; BYTE $0xC1; BYTE $0x11; BYTE $0x6D; BYTE $0xDF -#define VPUNPCKHQDQ_X15_X13_X7 BYTE $0xC4; BYTE $0xC1; BYTE $0x11; BYTE $0x6D; BYTE $0xFF - -#define SHUFFLE_AVX() \ - VMOVDQA X6, X13; \ - VMOVDQA X2, X14; \ - VMOVDQA X4, X6; \ - VPUNPCKLQDQ_X13_X13_X15; \ - VMOVDQA X5, X4; \ - VMOVDQA X6, X5; \ - VPUNPCKHQDQ_X15_X7_X6; \ - VPUNPCKLQDQ_X7_X7_X15; \ - VPUNPCKHQDQ_X15_X13_X7; \ - VPUNPCKLQDQ_X3_X3_X15; \ - VPUNPCKHQDQ_X15_X2_X2; \ - VPUNPCKLQDQ_X14_X14_X15; \ - VPUNPCKHQDQ_X15_X3_X3; \ - -#define SHUFFLE_AVX_INV() \ - VMOVDQA X2, X13; \ - VMOVDQA X4, X14; \ - VPUNPCKLQDQ_X2_X2_X15; \ - VMOVDQA X5, X4; \ - VPUNPCKHQDQ_X15_X3_X2; \ - VMOVDQA X14, X5; \ - VPUNPCKLQDQ_X3_X3_X15; \ - VMOVDQA X6, X14; \ - VPUNPCKHQDQ_X15_X13_X3; \ - VPUNPCKLQDQ_X7_X7_X15; \ - VPUNPCKHQDQ_X15_X6_X6; \ - VPUNPCKLQDQ_X14_X14_X15; \ - VPUNPCKHQDQ_X15_X7_X7; \ - -#define HALF_ROUND_AVX(v0, v1, v2, v3, v4, v5, v6, v7, m0, m1, m2, m3, t0, c40, c48) \ - VPADDQ m0, v0, v0; \ - VPADDQ v2, v0, v0; \ - VPADDQ m1, v1, v1; \ - VPADDQ v3, v1, v1; \ - VPXOR v0, v6, v6; \ - VPXOR v1, v7, v7; \ - VPSHUFD $-79, v6, v6; \ - VPSHUFD $-79, v7, v7; \ - VPADDQ v6, v4, v4; \ - VPADDQ v7, v5, v5; \ - VPXOR v4, v2, v2; \ - VPXOR v5, v3, v3; \ - VPSHUFB c40, v2, v2; \ - VPSHUFB c40, v3, v3; \ - VPADDQ m2, v0, v0; \ - VPADDQ v2, v0, v0; \ - VPADDQ m3, v1, v1; \ - VPADDQ v3, v1, v1; \ - VPXOR v0, v6, v6; \ - VPXOR v1, v7, v7; \ - VPSHUFB c48, v6, v6; \ - VPSHUFB c48, v7, v7; \ - VPADDQ v6, v4, v4; \ - VPADDQ v7, v5, v5; \ - VPXOR v4, v2, v2; \ - VPXOR v5, v3, v3; \ - VPADDQ v2, v2, t0; \ - VPSRLQ $63, v2, v2; \ - VPXOR t0, v2, v2; \ - VPADDQ v3, v3, t0; \ - VPSRLQ $63, v3, v3; \ - VPXOR t0, v3, v3 - -// load msg: X12 = (i0, i1), X13 = (i2, i3), X14 = (i4, i5), X15 = (i6, i7) -// i0, i1, i2, i3, i4, i5, i6, i7 must not be 0 -#define LOAD_MSG_AVX(i0, i1, i2, i3, i4, i5, i6, i7) \ - VMOVQ_SI_X12(i0*8); \ - VMOVQ_SI_X13(i2*8); \ - VMOVQ_SI_X14(i4*8); \ - VMOVQ_SI_X15(i6*8); \ - VPINSRQ_1_SI_X12(i1*8); \ - VPINSRQ_1_SI_X13(i3*8); \ - VPINSRQ_1_SI_X14(i5*8); \ - VPINSRQ_1_SI_X15(i7*8) - -// load msg: X12 = (0, 2), X13 = (4, 6), X14 = (1, 3), X15 = (5, 7) -#define LOAD_MSG_AVX_0_2_4_6_1_3_5_7() \ - VMOVQ_SI_X12_0; \ - VMOVQ_SI_X13(4*8); \ - VMOVQ_SI_X14(1*8); \ - VMOVQ_SI_X15(5*8); \ - VPINSRQ_1_SI_X12(2*8); \ - VPINSRQ_1_SI_X13(6*8); \ - VPINSRQ_1_SI_X14(3*8); \ - VPINSRQ_1_SI_X15(7*8) - -// load msg: X12 = (1, 0), X13 = (11, 5), X14 = (12, 2), X15 = (7, 3) -#define LOAD_MSG_AVX_1_0_11_5_12_2_7_3() \ - VPSHUFD $0x4E, 0*8(SI), X12; \ - VMOVQ_SI_X13(11*8); \ - VMOVQ_SI_X14(12*8); \ - VMOVQ_SI_X15(7*8); \ - VPINSRQ_1_SI_X13(5*8); \ - VPINSRQ_1_SI_X14(2*8); \ - VPINSRQ_1_SI_X15(3*8) - -// load msg: X12 = (11, 12), X13 = (5, 15), X14 = (8, 0), X15 = (2, 13) -#define LOAD_MSG_AVX_11_12_5_15_8_0_2_13() \ - VMOVDQU 11*8(SI), X12; \ - VMOVQ_SI_X13(5*8); \ - VMOVQ_SI_X14(8*8); \ - VMOVQ_SI_X15(2*8); \ - VPINSRQ_1_SI_X13(15*8); \ - VPINSRQ_1_SI_X14_0; \ - VPINSRQ_1_SI_X15(13*8) - -// load msg: X12 = (2, 5), X13 = (4, 15), X14 = (6, 10), X15 = (0, 8) -#define LOAD_MSG_AVX_2_5_4_15_6_10_0_8() \ - VMOVQ_SI_X12(2*8); \ - VMOVQ_SI_X13(4*8); \ - VMOVQ_SI_X14(6*8); \ - VMOVQ_SI_X15_0; \ - VPINSRQ_1_SI_X12(5*8); \ - VPINSRQ_1_SI_X13(15*8); \ - VPINSRQ_1_SI_X14(10*8); \ - VPINSRQ_1_SI_X15(8*8) +DATA ·AVX2_c40<>+0(SB)/8, $0x0201000706050403 +DATA ·AVX2_c40<>+8(SB)/8, $0x0a09080f0e0d0c0b +DATA ·AVX2_c40<>+16(SB)/8, $0x0201000706050403 +DATA ·AVX2_c40<>+24(SB)/8, $0x0a09080f0e0d0c0b +GLOBL ·AVX2_c40<>(SB), RODATA|NOPTR, $32 -// load msg: X12 = (9, 5), X13 = (2, 10), X14 = (0, 7), X15 = (4, 15) -#define LOAD_MSG_AVX_9_5_2_10_0_7_4_15() \ - VMOVQ_SI_X12(9*8); \ - VMOVQ_SI_X13(2*8); \ - VMOVQ_SI_X14_0; \ - VMOVQ_SI_X15(4*8); \ - VPINSRQ_1_SI_X12(5*8); \ - VPINSRQ_1_SI_X13(10*8); \ - VPINSRQ_1_SI_X14(7*8); \ - VPINSRQ_1_SI_X15(15*8) +DATA ·AVX2_c48<>+0(SB)/8, $0x0100070605040302 +DATA ·AVX2_c48<>+8(SB)/8, $0x09080f0e0d0c0b0a +DATA ·AVX2_c48<>+16(SB)/8, $0x0100070605040302 +DATA ·AVX2_c48<>+24(SB)/8, $0x09080f0e0d0c0b0a +GLOBL ·AVX2_c48<>(SB), RODATA|NOPTR, $32 -// load msg: X12 = (2, 6), X13 = (0, 8), X14 = (12, 10), X15 = (11, 3) -#define LOAD_MSG_AVX_2_6_0_8_12_10_11_3() \ - VMOVQ_SI_X12(2*8); \ - VMOVQ_SI_X13_0; \ - VMOVQ_SI_X14(12*8); \ - VMOVQ_SI_X15(11*8); \ - VPINSRQ_1_SI_X12(6*8); \ - VPINSRQ_1_SI_X13(8*8); \ - VPINSRQ_1_SI_X14(10*8); \ - VPINSRQ_1_SI_X15(3*8) +DATA ·AVX2_iv0<>+0(SB)/8, $0x6a09e667f3bcc908 +DATA ·AVX2_iv0<>+8(SB)/8, $0xbb67ae8584caa73b +DATA ·AVX2_iv0<>+16(SB)/8, $0x3c6ef372fe94f82b +DATA ·AVX2_iv0<>+24(SB)/8, $0xa54ff53a5f1d36f1 +GLOBL ·AVX2_iv0<>(SB), RODATA|NOPTR, $32 -// load msg: X12 = (0, 6), X13 = (9, 8), X14 = (7, 3), X15 = (2, 11) -#define LOAD_MSG_AVX_0_6_9_8_7_3_2_11() \ - MOVQ 0*8(SI), X12; \ - VPSHUFD $0x4E, 8*8(SI), X13; \ - MOVQ 7*8(SI), X14; \ - MOVQ 2*8(SI), X15; \ - VPINSRQ_1_SI_X12(6*8); \ - VPINSRQ_1_SI_X14(3*8); \ - VPINSRQ_1_SI_X15(11*8) - -// load msg: X12 = (6, 14), X13 = (11, 0), X14 = (15, 9), X15 = (3, 8) -#define LOAD_MSG_AVX_6_14_11_0_15_9_3_8() \ - MOVQ 6*8(SI), X12; \ - MOVQ 11*8(SI), X13; \ - MOVQ 15*8(SI), X14; \ - MOVQ 3*8(SI), X15; \ - VPINSRQ_1_SI_X12(14*8); \ - VPINSRQ_1_SI_X13_0; \ - VPINSRQ_1_SI_X14(9*8); \ - VPINSRQ_1_SI_X15(8*8) - -// load msg: X12 = (5, 15), X13 = (8, 2), X14 = (0, 4), X15 = (6, 10) -#define LOAD_MSG_AVX_5_15_8_2_0_4_6_10() \ - MOVQ 5*8(SI), X12; \ - MOVQ 8*8(SI), X13; \ - MOVQ 0*8(SI), X14; \ - MOVQ 6*8(SI), X15; \ - VPINSRQ_1_SI_X12(15*8); \ - VPINSRQ_1_SI_X13(2*8); \ - VPINSRQ_1_SI_X14(4*8); \ - VPINSRQ_1_SI_X15(10*8) - -// load msg: X12 = (12, 13), X13 = (1, 10), X14 = (2, 7), X15 = (4, 5) -#define LOAD_MSG_AVX_12_13_1_10_2_7_4_5() \ - VMOVDQU 12*8(SI), X12; \ - MOVQ 1*8(SI), X13; \ - MOVQ 2*8(SI), X14; \ - VPINSRQ_1_SI_X13(10*8); \ - VPINSRQ_1_SI_X14(7*8); \ - VMOVDQU 4*8(SI), X15 - -// load msg: X12 = (15, 9), X13 = (3, 13), X14 = (11, 14), X15 = (12, 0) -#define LOAD_MSG_AVX_15_9_3_13_11_14_12_0() \ - MOVQ 15*8(SI), X12; \ - MOVQ 3*8(SI), X13; \ - MOVQ 11*8(SI), X14; \ - MOVQ 12*8(SI), X15; \ - VPINSRQ_1_SI_X12(9*8); \ - VPINSRQ_1_SI_X13(13*8); \ - VPINSRQ_1_SI_X14(14*8); \ - VPINSRQ_1_SI_X15_0 +DATA ·AVX2_iv1<>+0(SB)/8, $0x510e527fade682d1 +DATA ·AVX2_iv1<>+8(SB)/8, $0x9b05688c2b3e6c1f +DATA ·AVX2_iv1<>+16(SB)/8, $0x1f83d9abfb41bd6b +DATA ·AVX2_iv1<>+24(SB)/8, $0x5be0cd19137e2179 +GLOBL ·AVX2_iv1<>(SB), RODATA|NOPTR, $32 // func hashBlocksAVX(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) -TEXT ·hashBlocksAVX(SB), 4, $288-48 // frame size = 272 + 16 byte alignment - MOVQ h+0(FP), AX - MOVQ c+8(FP), BX - MOVQ flag+16(FP), CX - MOVQ blocks_base+24(FP), SI - MOVQ blocks_len+32(FP), DI - - MOVQ SP, R10 - ADDQ $15, R10 - ANDQ $~15, R10 - - VMOVDQU ·AVX_c40<>(SB), X0 - VMOVDQU ·AVX_c48<>(SB), X1 +// Requires: AVX, SSE2 +TEXT ·hashBlocksAVX(SB), NOSPLIT, $288-48 + MOVQ h+0(FP), AX + MOVQ c+8(FP), BX + MOVQ flag+16(FP), CX + MOVQ blocks_base+24(FP), SI + MOVQ blocks_len+32(FP), DI + MOVQ SP, R10 + ADDQ $0x0f, R10 + ANDQ $-16, R10 + VMOVDQU ·AVX_c40<>+0(SB), X0 + VMOVDQU ·AVX_c48<>+0(SB), X1 VMOVDQA X0, X8 VMOVDQA X1, X9 - - VMOVDQU ·AVX_iv3<>(SB), X0 - VMOVDQA X0, 0(R10) - XORQ CX, 0(R10) // 0(R10) = ·AVX_iv3 ^ (CX || 0) - - VMOVDQU 0(AX), X10 + VMOVDQU ·AVX_iv3<>+0(SB), X0 + VMOVDQA X0, (R10) + XORQ CX, (R10) + VMOVDQU (AX), X10 VMOVDQU 16(AX), X11 VMOVDQU 32(AX), X2 VMOVDQU 48(AX), X3 - - MOVQ 0(BX), R8 - MOVQ 8(BX), R9 + MOVQ (BX), R8 + MOVQ 8(BX), R9 loop: - ADDQ $128, R8 - CMPQ R8, $128 + ADDQ $0x80, R8 + CMPQ R8, $0x80 JGE noinc INCQ R9 noinc: - VMOVQ_R8_X15 - VPINSRQ_1_R9_X15 - + BYTE $0xc4 + BYTE $0x41 + BYTE $0xf9 + BYTE $0x6e + BYTE $0xf8 + BYTE $0xc4 + BYTE $0x43 + BYTE $0x81 + BYTE $0x22 + BYTE $0xf9 + BYTE $0x01 VMOVDQA X10, X0 VMOVDQA X11, X1 - VMOVDQU ·AVX_iv0<>(SB), X4 - VMOVDQU ·AVX_iv1<>(SB), X5 - VMOVDQU ·AVX_iv2<>(SB), X6 - + VMOVDQU ·AVX_iv0<>+0(SB), X4 + VMOVDQU ·AVX_iv1<>+0(SB), X5 + VMOVDQU ·AVX_iv2<>+0(SB), X6 VPXOR X15, X6, X6 - VMOVDQA 0(R10), X7 - - LOAD_MSG_AVX_0_2_4_6_1_3_5_7() + VMOVDQA (R10), X7 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x26 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x20 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x08 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x28 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x10 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x30 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x38 + BYTE $0x01 VMOVDQA X12, 16(R10) VMOVDQA X13, 32(R10) VMOVDQA X14, 48(R10) VMOVDQA X15, 64(R10) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX(8, 10, 12, 14, 9, 11, 13, 15) + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x40 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x60 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x48 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x68 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x50 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x70 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x58 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x78 + BYTE $0x01 VMOVDQA X12, 80(R10) VMOVDQA X13, 96(R10) VMOVDQA X14, 112(R10) VMOVDQA X15, 128(R10) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX(14, 4, 9, 13, 10, 8, 15, 6) + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x70 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x48 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x50 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x78 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x20 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x68 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x40 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x30 + BYTE $0x01 VMOVDQA X12, 144(R10) VMOVDQA X13, 160(R10) VMOVDQA X14, 176(R10) VMOVDQA X15, 192(R10) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX_1_0_11_5_12_2_7_3() + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + VPSHUFD $0x4e, (SI), X12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x58 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x60 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x38 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x28 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x10 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x18 + BYTE $0x01 VMOVDQA X12, 208(R10) VMOVDQA X13, 224(R10) VMOVDQA X14, 240(R10) VMOVDQA X15, 256(R10) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX_11_12_5_15_8_0_2_13() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX(10, 3, 7, 9, 14, 6, 1, 4) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX(7, 3, 13, 11, 9, 1, 12, 14) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX_2_5_4_15_6_10_0_8() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX_9_5_2_10_0_7_4_15() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX(14, 11, 6, 3, 1, 12, 8, 13) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX_2_6_0_8_12_10_11_3() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX(4, 7, 15, 1, 13, 5, 14, 9) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX(12, 1, 14, 4, 5, 15, 13, 10) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX_0_6_9_8_7_3_2_11() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX(13, 7, 12, 3, 11, 14, 1, 9) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX_5_15_8_2_0_4_6_10() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX_6_14_11_0_15_9_3_8() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX_12_13_1_10_2_7_4_5() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - LOAD_MSG_AVX(10, 8, 7, 1, 2, 4, 6, 5) - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX() - LOAD_MSG_AVX_15_9_3_13_11_14_12_0() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, X12, X13, X14, X15, X15, X8, X9) - SHUFFLE_AVX_INV() - - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, 16(R10), 32(R10), 48(R10), 64(R10), X15, X8, X9) - SHUFFLE_AVX() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, 80(R10), 96(R10), 112(R10), 128(R10), X15, X8, X9) - SHUFFLE_AVX_INV() - - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, 144(R10), 160(R10), 176(R10), 192(R10), X15, X8, X9) - SHUFFLE_AVX() - HALF_ROUND_AVX(X0, X1, X2, X3, X4, X5, X6, X7, 208(R10), 224(R10), 240(R10), 256(R10), X15, X8, X9) - SHUFFLE_AVX_INV() - + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + VMOVDQU 88(SI), X12 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x28 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x40 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x10 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x78 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x36 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x68 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x50 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x38 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x70 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x08 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x48 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x30 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x20 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x38 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x68 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x48 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x60 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x58 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x08 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x70 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x10 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x20 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x30 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x3e + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x28 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x78 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x50 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x40 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x48 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x10 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x36 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x20 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x28 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x50 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x38 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x78 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x70 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x30 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x08 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x40 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x58 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x60 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x68 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x10 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x2e + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x60 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x58 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x30 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x40 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x50 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x18 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x20 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x78 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x68 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x70 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x38 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x08 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x28 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x48 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x60 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x70 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x28 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x68 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x08 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x20 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x78 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x50 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + MOVQ (SI), X12 + VPSHUFD $0x4e, 64(SI), X13 + MOVQ 56(SI), X14 + MOVQ 16(SI), X15 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x30 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x58 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x68 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x60 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x58 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x08 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x38 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x18 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x70 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x48 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + MOVQ 40(SI), X12 + MOVQ 64(SI), X13 + MOVQ (SI), X14 + MOVQ 48(SI), X15 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x78 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x10 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x20 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x50 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + MOVQ 48(SI), X12 + MOVQ 88(SI), X13 + MOVQ 120(SI), X14 + MOVQ 24(SI), X15 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x70 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x2e + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x48 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x40 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + VMOVDQU 96(SI), X12 + MOVQ 8(SI), X13 + MOVQ 16(SI), X14 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x50 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x38 + BYTE $0x01 + VMOVDQU 32(SI), X15 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x66 + BYTE $0x50 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x6e + BYTE $0x38 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x76 + BYTE $0x10 + BYTE $0xc5 + BYTE $0x7a + BYTE $0x7e + BYTE $0x7e + BYTE $0x30 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x40 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x08 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x20 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x7e + BYTE $0x28 + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + MOVQ 120(SI), X12 + MOVQ 24(SI), X13 + MOVQ 88(SI), X14 + MOVQ 96(SI), X15 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x99 + BYTE $0x22 + BYTE $0x66 + BYTE $0x48 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x91 + BYTE $0x22 + BYTE $0x6e + BYTE $0x68 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x89 + BYTE $0x22 + BYTE $0x76 + BYTE $0x70 + BYTE $0x01 + BYTE $0xc4 + BYTE $0x63 + BYTE $0x81 + BYTE $0x22 + BYTE $0x3e + BYTE $0x01 + VPADDQ X12, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X13, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ X14, X0, X0 + VPADDQ X2, X0, X0 + VPADDQ X15, X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + VPADDQ 16(R10), X0, X0 + VPADDQ X2, X0, X0 + VPADDQ 32(R10), X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ 48(R10), X0, X0 + VPADDQ X2, X0, X0 + VPADDQ 64(R10), X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + VPADDQ 80(R10), X0, X0 + VPADDQ X2, X0, X0 + VPADDQ 96(R10), X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ 112(R10), X0, X0 + VPADDQ X2, X0, X0 + VPADDQ 128(R10), X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff + VPADDQ 144(R10), X0, X0 + VPADDQ X2, X0, X0 + VPADDQ 160(R10), X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ 176(R10), X0, X0 + VPADDQ X2, X0, X0 + VPADDQ 192(R10), X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X6, X13 + VMOVDQA X2, X14 + VMOVDQA X4, X6 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x11 + BYTE $0x6c + BYTE $0xfd + VMOVDQA X5, X4 + VMOVDQA X6, X5 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xff + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x69 + BYTE $0x6d + BYTE $0xd7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xdf + VPADDQ 208(R10), X0, X0 + VPADDQ X2, X0, X0 + VPADDQ 224(R10), X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFD $-79, X6, X6 + VPSHUFD $-79, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPSHUFB X8, X2, X2 + VPSHUFB X8, X3, X3 + VPADDQ 240(R10), X0, X0 + VPADDQ X2, X0, X0 + VPADDQ 256(R10), X1, X1 + VPADDQ X3, X1, X1 + VPXOR X0, X6, X6 + VPXOR X1, X7, X7 + VPSHUFB X9, X6, X6 + VPSHUFB X9, X7, X7 + VPADDQ X6, X4, X4 + VPADDQ X7, X5, X5 + VPXOR X4, X2, X2 + VPXOR X5, X3, X3 + VPADDQ X2, X2, X15 + VPSRLQ $0x3f, X2, X2 + VPXOR X15, X2, X2 + VPADDQ X3, X3, X15 + VPSRLQ $0x3f, X3, X3 + VPXOR X15, X3, X3 + VMOVDQA X2, X13 + VMOVDQA X4, X14 + BYTE $0xc5 + BYTE $0x69 + BYTE $0x6c + BYTE $0xfa + VMOVDQA X5, X4 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x61 + BYTE $0x6d + BYTE $0xd7 + VMOVDQA X14, X5 + BYTE $0xc5 + BYTE $0x61 + BYTE $0x6c + BYTE $0xfb + VMOVDQA X6, X14 + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x11 + BYTE $0x6d + BYTE $0xdf + BYTE $0xc5 + BYTE $0x41 + BYTE $0x6c + BYTE $0xff + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x49 + BYTE $0x6d + BYTE $0xf7 + BYTE $0xc4 + BYTE $0x41 + BYTE $0x09 + BYTE $0x6c + BYTE $0xfe + BYTE $0xc4 + BYTE $0xc1 + BYTE $0x41 + BYTE $0x6d + BYTE $0xff VMOVDQU 32(AX), X14 VMOVDQU 48(AX), X15 VPXOR X0, X10, X10 @@ -729,16 +4524,36 @@ noinc: VPXOR X7, X15, X3 VMOVDQU X2, 32(AX) VMOVDQU X3, 48(AX) + LEAQ 128(SI), SI + SUBQ $0x80, DI + JNE loop + VMOVDQU X10, (AX) + VMOVDQU X11, 16(AX) + MOVQ R8, (BX) + MOVQ R9, 8(BX) + VZEROUPPER + RET - LEAQ 128(SI), SI - SUBQ $128, DI - JNE loop +DATA ·AVX_c40<>+0(SB)/8, $0x0201000706050403 +DATA ·AVX_c40<>+8(SB)/8, $0x0a09080f0e0d0c0b +GLOBL ·AVX_c40<>(SB), RODATA|NOPTR, $16 - VMOVDQU X10, 0(AX) - VMOVDQU X11, 16(AX) +DATA ·AVX_c48<>+0(SB)/8, $0x0100070605040302 +DATA ·AVX_c48<>+8(SB)/8, $0x09080f0e0d0c0b0a +GLOBL ·AVX_c48<>(SB), RODATA|NOPTR, $16 - MOVQ R8, 0(BX) - MOVQ R9, 8(BX) - VZEROUPPER +DATA ·AVX_iv3<>+0(SB)/8, $0x1f83d9abfb41bd6b +DATA ·AVX_iv3<>+8(SB)/8, $0x5be0cd19137e2179 +GLOBL ·AVX_iv3<>(SB), RODATA|NOPTR, $16 - RET +DATA ·AVX_iv0<>+0(SB)/8, $0x6a09e667f3bcc908 +DATA ·AVX_iv0<>+8(SB)/8, $0xbb67ae8584caa73b +GLOBL ·AVX_iv0<>(SB), RODATA|NOPTR, $16 + +DATA ·AVX_iv1<>+0(SB)/8, $0x3c6ef372fe94f82b +DATA ·AVX_iv1<>+8(SB)/8, $0xa54ff53a5f1d36f1 +GLOBL ·AVX_iv1<>(SB), RODATA|NOPTR, $16 + +DATA ·AVX_iv2<>+0(SB)/8, $0x510e527fade682d1 +DATA ·AVX_iv2<>+8(SB)/8, $0x9b05688c2b3e6c1f +GLOBL ·AVX_iv2<>(SB), RODATA|NOPTR, $16 diff --git a/vendor/golang.org/x/crypto/blake2b/blake2b_amd64.s b/vendor/golang.org/x/crypto/blake2b/blake2b_amd64.s index adfac00c15c9..9a0ce2124462 100644 --- a/vendor/golang.org/x/crypto/blake2b/blake2b_amd64.s +++ b/vendor/golang.org/x/crypto/blake2b/blake2b_amd64.s @@ -1,278 +1,1441 @@ -// Copyright 2016 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. +// Code generated by command: go run blake2b_amd64_asm.go -out ../../blake2b_amd64.s -pkg blake2b. DO NOT EDIT. //go:build amd64 && gc && !purego #include "textflag.h" -DATA ·iv0<>+0x00(SB)/8, $0x6a09e667f3bcc908 -DATA ·iv0<>+0x08(SB)/8, $0xbb67ae8584caa73b -GLOBL ·iv0<>(SB), (NOPTR+RODATA), $16 - -DATA ·iv1<>+0x00(SB)/8, $0x3c6ef372fe94f82b -DATA ·iv1<>+0x08(SB)/8, $0xa54ff53a5f1d36f1 -GLOBL ·iv1<>(SB), (NOPTR+RODATA), $16 - -DATA ·iv2<>+0x00(SB)/8, $0x510e527fade682d1 -DATA ·iv2<>+0x08(SB)/8, $0x9b05688c2b3e6c1f -GLOBL ·iv2<>(SB), (NOPTR+RODATA), $16 - -DATA ·iv3<>+0x00(SB)/8, $0x1f83d9abfb41bd6b -DATA ·iv3<>+0x08(SB)/8, $0x5be0cd19137e2179 -GLOBL ·iv3<>(SB), (NOPTR+RODATA), $16 - -DATA ·c40<>+0x00(SB)/8, $0x0201000706050403 -DATA ·c40<>+0x08(SB)/8, $0x0a09080f0e0d0c0b -GLOBL ·c40<>(SB), (NOPTR+RODATA), $16 - -DATA ·c48<>+0x00(SB)/8, $0x0100070605040302 -DATA ·c48<>+0x08(SB)/8, $0x09080f0e0d0c0b0a -GLOBL ·c48<>(SB), (NOPTR+RODATA), $16 - -#define SHUFFLE(v2, v3, v4, v5, v6, v7, t1, t2) \ - MOVO v4, t1; \ - MOVO v5, v4; \ - MOVO t1, v5; \ - MOVO v6, t1; \ - PUNPCKLQDQ v6, t2; \ - PUNPCKHQDQ v7, v6; \ - PUNPCKHQDQ t2, v6; \ - PUNPCKLQDQ v7, t2; \ - MOVO t1, v7; \ - MOVO v2, t1; \ - PUNPCKHQDQ t2, v7; \ - PUNPCKLQDQ v3, t2; \ - PUNPCKHQDQ t2, v2; \ - PUNPCKLQDQ t1, t2; \ - PUNPCKHQDQ t2, v3 - -#define SHUFFLE_INV(v2, v3, v4, v5, v6, v7, t1, t2) \ - MOVO v4, t1; \ - MOVO v5, v4; \ - MOVO t1, v5; \ - MOVO v2, t1; \ - PUNPCKLQDQ v2, t2; \ - PUNPCKHQDQ v3, v2; \ - PUNPCKHQDQ t2, v2; \ - PUNPCKLQDQ v3, t2; \ - MOVO t1, v3; \ - MOVO v6, t1; \ - PUNPCKHQDQ t2, v3; \ - PUNPCKLQDQ v7, t2; \ - PUNPCKHQDQ t2, v6; \ - PUNPCKLQDQ t1, t2; \ - PUNPCKHQDQ t2, v7 - -#define HALF_ROUND(v0, v1, v2, v3, v4, v5, v6, v7, m0, m1, m2, m3, t0, c40, c48) \ - PADDQ m0, v0; \ - PADDQ m1, v1; \ - PADDQ v2, v0; \ - PADDQ v3, v1; \ - PXOR v0, v6; \ - PXOR v1, v7; \ - PSHUFD $0xB1, v6, v6; \ - PSHUFD $0xB1, v7, v7; \ - PADDQ v6, v4; \ - PADDQ v7, v5; \ - PXOR v4, v2; \ - PXOR v5, v3; \ - PSHUFB c40, v2; \ - PSHUFB c40, v3; \ - PADDQ m2, v0; \ - PADDQ m3, v1; \ - PADDQ v2, v0; \ - PADDQ v3, v1; \ - PXOR v0, v6; \ - PXOR v1, v7; \ - PSHUFB c48, v6; \ - PSHUFB c48, v7; \ - PADDQ v6, v4; \ - PADDQ v7, v5; \ - PXOR v4, v2; \ - PXOR v5, v3; \ - MOVOU v2, t0; \ - PADDQ v2, t0; \ - PSRLQ $63, v2; \ - PXOR t0, v2; \ - MOVOU v3, t0; \ - PADDQ v3, t0; \ - PSRLQ $63, v3; \ - PXOR t0, v3 - -#define LOAD_MSG(m0, m1, m2, m3, src, i0, i1, i2, i3, i4, i5, i6, i7) \ - MOVQ i0*8(src), m0; \ - PINSRQ $1, i1*8(src), m0; \ - MOVQ i2*8(src), m1; \ - PINSRQ $1, i3*8(src), m1; \ - MOVQ i4*8(src), m2; \ - PINSRQ $1, i5*8(src), m2; \ - MOVQ i6*8(src), m3; \ - PINSRQ $1, i7*8(src), m3 - // func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) -TEXT ·hashBlocksSSE4(SB), 4, $288-48 // frame size = 272 + 16 byte alignment - MOVQ h+0(FP), AX - MOVQ c+8(FP), BX - MOVQ flag+16(FP), CX - MOVQ blocks_base+24(FP), SI - MOVQ blocks_len+32(FP), DI - - MOVQ SP, R10 - ADDQ $15, R10 - ANDQ $~15, R10 - - MOVOU ·iv3<>(SB), X0 - MOVO X0, 0(R10) - XORQ CX, 0(R10) // 0(R10) = ·iv3 ^ (CX || 0) - - MOVOU ·c40<>(SB), X13 - MOVOU ·c48<>(SB), X14 - - MOVOU 0(AX), X12 +// Requires: SSE2, SSE4.1, SSSE3 +TEXT ·hashBlocksSSE4(SB), NOSPLIT, $288-48 + MOVQ h+0(FP), AX + MOVQ c+8(FP), BX + MOVQ flag+16(FP), CX + MOVQ blocks_base+24(FP), SI + MOVQ blocks_len+32(FP), DI + MOVQ SP, R10 + ADDQ $0x0f, R10 + ANDQ $-16, R10 + MOVOU ·iv3<>+0(SB), X0 + MOVO X0, (R10) + XORQ CX, (R10) + MOVOU ·c40<>+0(SB), X13 + MOVOU ·c48<>+0(SB), X14 + MOVOU (AX), X12 MOVOU 16(AX), X15 - - MOVQ 0(BX), R8 - MOVQ 8(BX), R9 + MOVQ (BX), R8 + MOVQ 8(BX), R9 loop: - ADDQ $128, R8 - CMPQ R8, $128 + ADDQ $0x80, R8 + CMPQ R8, $0x80 JGE noinc INCQ R9 noinc: - MOVQ R8, X8 - PINSRQ $1, R9, X8 - - MOVO X12, X0 - MOVO X15, X1 - MOVOU 32(AX), X2 - MOVOU 48(AX), X3 - MOVOU ·iv0<>(SB), X4 - MOVOU ·iv1<>(SB), X5 - MOVOU ·iv2<>(SB), X6 - - PXOR X8, X6 - MOVO 0(R10), X7 - - LOAD_MSG(X8, X9, X10, X11, SI, 0, 2, 4, 6, 1, 3, 5, 7) - MOVO X8, 16(R10) - MOVO X9, 32(R10) - MOVO X10, 48(R10) - MOVO X11, 64(R10) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 8, 10, 12, 14, 9, 11, 13, 15) - MOVO X8, 80(R10) - MOVO X9, 96(R10) - MOVO X10, 112(R10) - MOVO X11, 128(R10) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 14, 4, 9, 13, 10, 8, 15, 6) - MOVO X8, 144(R10) - MOVO X9, 160(R10) - MOVO X10, 176(R10) - MOVO X11, 192(R10) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 1, 0, 11, 5, 12, 2, 7, 3) - MOVO X8, 208(R10) - MOVO X9, 224(R10) - MOVO X10, 240(R10) - MOVO X11, 256(R10) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 11, 12, 5, 15, 8, 0, 2, 13) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 10, 3, 7, 9, 14, 6, 1, 4) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 7, 3, 13, 11, 9, 1, 12, 14) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 2, 5, 4, 15, 6, 10, 0, 8) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 9, 5, 2, 10, 0, 7, 4, 15) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 14, 11, 6, 3, 1, 12, 8, 13) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 2, 6, 0, 8, 12, 10, 11, 3) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 4, 7, 15, 1, 13, 5, 14, 9) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 12, 1, 14, 4, 5, 15, 13, 10) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 0, 6, 9, 8, 7, 3, 2, 11) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 13, 7, 12, 3, 11, 14, 1, 9) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 5, 15, 8, 2, 0, 4, 6, 10) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 6, 14, 11, 0, 15, 9, 3, 8) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 12, 13, 1, 10, 2, 7, 4, 5) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - LOAD_MSG(X8, X9, X10, X11, SI, 10, 8, 7, 1, 2, 4, 6, 5) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - LOAD_MSG(X8, X9, X10, X11, SI, 15, 9, 3, 13, 11, 14, 12, 0) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) - - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, 16(R10), 32(R10), 48(R10), 64(R10), X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, 80(R10), 96(R10), 112(R10), 128(R10), X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) + MOVQ R8, X8 + PINSRQ $0x01, R9, X8 + MOVO X12, X0 + MOVO X15, X1 + MOVOU 32(AX), X2 + MOVOU 48(AX), X3 + MOVOU ·iv0<>+0(SB), X4 + MOVOU ·iv1<>+0(SB), X5 + MOVOU ·iv2<>+0(SB), X6 + PXOR X8, X6 + MOVO (R10), X7 + MOVQ (SI), X8 + PINSRQ $0x01, 16(SI), X8 + MOVQ 32(SI), X9 + PINSRQ $0x01, 48(SI), X9 + MOVQ 8(SI), X10 + PINSRQ $0x01, 24(SI), X10 + MOVQ 40(SI), X11 + PINSRQ $0x01, 56(SI), X11 + MOVO X8, 16(R10) + MOVO X9, 32(R10) + MOVO X10, 48(R10) + MOVO X11, 64(R10) + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 64(SI), X8 + PINSRQ $0x01, 80(SI), X8 + MOVQ 96(SI), X9 + PINSRQ $0x01, 112(SI), X9 + MOVQ 72(SI), X10 + PINSRQ $0x01, 88(SI), X10 + MOVQ 104(SI), X11 + PINSRQ $0x01, 120(SI), X11 + MOVO X8, 80(R10) + MOVO X9, 96(R10) + MOVO X10, 112(R10) + MOVO X11, 128(R10) + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 112(SI), X8 + PINSRQ $0x01, 32(SI), X8 + MOVQ 72(SI), X9 + PINSRQ $0x01, 104(SI), X9 + MOVQ 80(SI), X10 + PINSRQ $0x01, 64(SI), X10 + MOVQ 120(SI), X11 + PINSRQ $0x01, 48(SI), X11 + MOVO X8, 144(R10) + MOVO X9, 160(R10) + MOVO X10, 176(R10) + MOVO X11, 192(R10) + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 8(SI), X8 + PINSRQ $0x01, (SI), X8 + MOVQ 88(SI), X9 + PINSRQ $0x01, 40(SI), X9 + MOVQ 96(SI), X10 + PINSRQ $0x01, 16(SI), X10 + MOVQ 56(SI), X11 + PINSRQ $0x01, 24(SI), X11 + MOVO X8, 208(R10) + MOVO X9, 224(R10) + MOVO X10, 240(R10) + MOVO X11, 256(R10) + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 88(SI), X8 + PINSRQ $0x01, 96(SI), X8 + MOVQ 40(SI), X9 + PINSRQ $0x01, 120(SI), X9 + MOVQ 64(SI), X10 + PINSRQ $0x01, (SI), X10 + MOVQ 16(SI), X11 + PINSRQ $0x01, 104(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 80(SI), X8 + PINSRQ $0x01, 24(SI), X8 + MOVQ 56(SI), X9 + PINSRQ $0x01, 72(SI), X9 + MOVQ 112(SI), X10 + PINSRQ $0x01, 48(SI), X10 + MOVQ 8(SI), X11 + PINSRQ $0x01, 32(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 56(SI), X8 + PINSRQ $0x01, 24(SI), X8 + MOVQ 104(SI), X9 + PINSRQ $0x01, 88(SI), X9 + MOVQ 72(SI), X10 + PINSRQ $0x01, 8(SI), X10 + MOVQ 96(SI), X11 + PINSRQ $0x01, 112(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 16(SI), X8 + PINSRQ $0x01, 40(SI), X8 + MOVQ 32(SI), X9 + PINSRQ $0x01, 120(SI), X9 + MOVQ 48(SI), X10 + PINSRQ $0x01, 80(SI), X10 + MOVQ (SI), X11 + PINSRQ $0x01, 64(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 72(SI), X8 + PINSRQ $0x01, 40(SI), X8 + MOVQ 16(SI), X9 + PINSRQ $0x01, 80(SI), X9 + MOVQ (SI), X10 + PINSRQ $0x01, 56(SI), X10 + MOVQ 32(SI), X11 + PINSRQ $0x01, 120(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 112(SI), X8 + PINSRQ $0x01, 88(SI), X8 + MOVQ 48(SI), X9 + PINSRQ $0x01, 24(SI), X9 + MOVQ 8(SI), X10 + PINSRQ $0x01, 96(SI), X10 + MOVQ 64(SI), X11 + PINSRQ $0x01, 104(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 16(SI), X8 + PINSRQ $0x01, 48(SI), X8 + MOVQ (SI), X9 + PINSRQ $0x01, 64(SI), X9 + MOVQ 96(SI), X10 + PINSRQ $0x01, 80(SI), X10 + MOVQ 88(SI), X11 + PINSRQ $0x01, 24(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 32(SI), X8 + PINSRQ $0x01, 56(SI), X8 + MOVQ 120(SI), X9 + PINSRQ $0x01, 8(SI), X9 + MOVQ 104(SI), X10 + PINSRQ $0x01, 40(SI), X10 + MOVQ 112(SI), X11 + PINSRQ $0x01, 72(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 96(SI), X8 + PINSRQ $0x01, 8(SI), X8 + MOVQ 112(SI), X9 + PINSRQ $0x01, 32(SI), X9 + MOVQ 40(SI), X10 + PINSRQ $0x01, 120(SI), X10 + MOVQ 104(SI), X11 + PINSRQ $0x01, 80(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ (SI), X8 + PINSRQ $0x01, 48(SI), X8 + MOVQ 72(SI), X9 + PINSRQ $0x01, 64(SI), X9 + MOVQ 56(SI), X10 + PINSRQ $0x01, 24(SI), X10 + MOVQ 16(SI), X11 + PINSRQ $0x01, 88(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 104(SI), X8 + PINSRQ $0x01, 56(SI), X8 + MOVQ 96(SI), X9 + PINSRQ $0x01, 24(SI), X9 + MOVQ 88(SI), X10 + PINSRQ $0x01, 112(SI), X10 + MOVQ 8(SI), X11 + PINSRQ $0x01, 72(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 40(SI), X8 + PINSRQ $0x01, 120(SI), X8 + MOVQ 64(SI), X9 + PINSRQ $0x01, 16(SI), X9 + MOVQ (SI), X10 + PINSRQ $0x01, 32(SI), X10 + MOVQ 48(SI), X11 + PINSRQ $0x01, 80(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 48(SI), X8 + PINSRQ $0x01, 112(SI), X8 + MOVQ 88(SI), X9 + PINSRQ $0x01, (SI), X9 + MOVQ 120(SI), X10 + PINSRQ $0x01, 72(SI), X10 + MOVQ 24(SI), X11 + PINSRQ $0x01, 64(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 96(SI), X8 + PINSRQ $0x01, 104(SI), X8 + MOVQ 8(SI), X9 + PINSRQ $0x01, 80(SI), X9 + MOVQ 16(SI), X10 + PINSRQ $0x01, 56(SI), X10 + MOVQ 32(SI), X11 + PINSRQ $0x01, 40(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVQ 80(SI), X8 + PINSRQ $0x01, 64(SI), X8 + MOVQ 56(SI), X9 + PINSRQ $0x01, 8(SI), X9 + MOVQ 16(SI), X10 + PINSRQ $0x01, 32(SI), X10 + MOVQ 48(SI), X11 + PINSRQ $0x01, 40(SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + MOVQ 120(SI), X8 + PINSRQ $0x01, 72(SI), X8 + MOVQ 24(SI), X9 + PINSRQ $0x01, 104(SI), X9 + MOVQ 88(SI), X10 + PINSRQ $0x01, 112(SI), X10 + MOVQ 96(SI), X11 + PINSRQ $0x01, (SI), X11 + PADDQ X8, X0 + PADDQ X9, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ X10, X0 + PADDQ X11, X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + PADDQ 16(R10), X0 + PADDQ 32(R10), X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ 48(R10), X0 + PADDQ 64(R10), X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + PADDQ 80(R10), X0 + PADDQ 96(R10), X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ 112(R10), X0 + PADDQ 128(R10), X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + PADDQ 144(R10), X0 + PADDQ 160(R10), X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ 176(R10), X0 + PADDQ 192(R10), X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X6, X8 + PUNPCKLQDQ X6, X9 + PUNPCKHQDQ X7, X6 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X7, X9 + MOVO X8, X7 + MOVO X2, X8 + PUNPCKHQDQ X9, X7 + PUNPCKLQDQ X3, X9 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X3 + PADDQ 208(R10), X0 + PADDQ 224(R10), X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFD $0xb1, X6, X6 + PSHUFD $0xb1, X7, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + PSHUFB X13, X2 + PSHUFB X13, X3 + PADDQ 240(R10), X0 + PADDQ 256(R10), X1 + PADDQ X2, X0 + PADDQ X3, X1 + PXOR X0, X6 + PXOR X1, X7 + PSHUFB X14, X6 + PSHUFB X14, X7 + PADDQ X6, X4 + PADDQ X7, X5 + PXOR X4, X2 + PXOR X5, X3 + MOVOU X2, X11 + PADDQ X2, X11 + PSRLQ $0x3f, X2 + PXOR X11, X2 + MOVOU X3, X11 + PADDQ X3, X11 + PSRLQ $0x3f, X3 + PXOR X11, X3 + MOVO X4, X8 + MOVO X5, X4 + MOVO X8, X5 + MOVO X2, X8 + PUNPCKLQDQ X2, X9 + PUNPCKHQDQ X3, X2 + PUNPCKHQDQ X9, X2 + PUNPCKLQDQ X3, X9 + MOVO X8, X3 + MOVO X6, X8 + PUNPCKHQDQ X9, X3 + PUNPCKLQDQ X7, X9 + PUNPCKHQDQ X9, X6 + PUNPCKLQDQ X8, X9 + PUNPCKHQDQ X9, X7 + MOVOU 32(AX), X10 + MOVOU 48(AX), X11 + PXOR X0, X12 + PXOR X1, X15 + PXOR X2, X10 + PXOR X3, X11 + PXOR X4, X12 + PXOR X5, X15 + PXOR X6, X10 + PXOR X7, X11 + MOVOU X10, 32(AX) + MOVOU X11, 48(AX) + LEAQ 128(SI), SI + SUBQ $0x80, DI + JNE loop + MOVOU X12, (AX) + MOVOU X15, 16(AX) + MOVQ R8, (BX) + MOVQ R9, 8(BX) + RET - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, 144(R10), 160(R10), 176(R10), 192(R10), X11, X13, X14) - SHUFFLE(X2, X3, X4, X5, X6, X7, X8, X9) - HALF_ROUND(X0, X1, X2, X3, X4, X5, X6, X7, 208(R10), 224(R10), 240(R10), 256(R10), X11, X13, X14) - SHUFFLE_INV(X2, X3, X4, X5, X6, X7, X8, X9) +DATA ·iv3<>+0(SB)/8, $0x1f83d9abfb41bd6b +DATA ·iv3<>+8(SB)/8, $0x5be0cd19137e2179 +GLOBL ·iv3<>(SB), RODATA|NOPTR, $16 - MOVOU 32(AX), X10 - MOVOU 48(AX), X11 - PXOR X0, X12 - PXOR X1, X15 - PXOR X2, X10 - PXOR X3, X11 - PXOR X4, X12 - PXOR X5, X15 - PXOR X6, X10 - PXOR X7, X11 - MOVOU X10, 32(AX) - MOVOU X11, 48(AX) +DATA ·c40<>+0(SB)/8, $0x0201000706050403 +DATA ·c40<>+8(SB)/8, $0x0a09080f0e0d0c0b +GLOBL ·c40<>(SB), RODATA|NOPTR, $16 - LEAQ 128(SI), SI - SUBQ $128, DI - JNE loop +DATA ·c48<>+0(SB)/8, $0x0100070605040302 +DATA ·c48<>+8(SB)/8, $0x09080f0e0d0c0b0a +GLOBL ·c48<>(SB), RODATA|NOPTR, $16 - MOVOU X12, 0(AX) - MOVOU X15, 16(AX) +DATA ·iv0<>+0(SB)/8, $0x6a09e667f3bcc908 +DATA ·iv0<>+8(SB)/8, $0xbb67ae8584caa73b +GLOBL ·iv0<>(SB), RODATA|NOPTR, $16 - MOVQ R8, 0(BX) - MOVQ R9, 8(BX) +DATA ·iv1<>+0(SB)/8, $0x3c6ef372fe94f82b +DATA ·iv1<>+8(SB)/8, $0xa54ff53a5f1d36f1 +GLOBL ·iv1<>(SB), RODATA|NOPTR, $16 - RET +DATA ·iv2<>+0(SB)/8, $0x510e527fade682d1 +DATA ·iv2<>+8(SB)/8, $0x9b05688c2b3e6c1f +GLOBL ·iv2<>(SB), RODATA|NOPTR, $16 diff --git a/vendor/golang.org/x/crypto/blowfish/cipher.go b/vendor/golang.org/x/crypto/blowfish/cipher.go index 213bf204afea..0898956807c6 100644 --- a/vendor/golang.org/x/crypto/blowfish/cipher.go +++ b/vendor/golang.org/x/crypto/blowfish/cipher.go @@ -11,7 +11,7 @@ // Deprecated: any new system should use AES (from crypto/aes, if necessary in // an AEAD mode like crypto/cipher.NewGCM) or XChaCha20-Poly1305 (from // golang.org/x/crypto/chacha20poly1305). -package blowfish // import "golang.org/x/crypto/blowfish" +package blowfish // The code is a port of Bruce Schneier's C implementation. // See https://www.schneier.com/blowfish.html. diff --git a/vendor/golang.org/x/crypto/cast5/cast5.go b/vendor/golang.org/x/crypto/cast5/cast5.go index 425e8eecb06b..016e90215cdf 100644 --- a/vendor/golang.org/x/crypto/cast5/cast5.go +++ b/vendor/golang.org/x/crypto/cast5/cast5.go @@ -11,7 +11,7 @@ // Deprecated: any new system should use AES (from crypto/aes, if necessary in // an AEAD mode like crypto/cipher.NewGCM) or XChaCha20-Poly1305 (from // golang.org/x/crypto/chacha20poly1305). -package cast5 // import "golang.org/x/crypto/cast5" +package cast5 import ( "errors" diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go b/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go index db42e6676ab3..c709b728477d 100644 --- a/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go +++ b/vendor/golang.org/x/crypto/chacha20/chacha_noasm.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 (!arm64 && !s390x && !ppc64le) || !gc || purego +//go:build (!arm64 && !s390x && !ppc64 && !ppc64le) || !gc || purego package chacha20 diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go deleted file mode 100644 index 3a4287f9900e..000000000000 --- a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2019 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 gc && !purego - -package chacha20 - -const bufSize = 256 - -//go:noescape -func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) - -func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { - chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter) -} diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s deleted file mode 100644 index c672ccf6986b..000000000000 --- a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s +++ /dev/null @@ -1,443 +0,0 @@ -// Copyright 2019 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. - -// Based on CRYPTOGAMS code with the following comment: -// # ==================================================================== -// # Written by Andy Polyakov for the OpenSSL -// # project. The module is, however, dual licensed under OpenSSL and -// # CRYPTOGAMS licenses depending on where you obtain it. For further -// # details see http://www.openssl.org/~appro/cryptogams/. -// # ==================================================================== - -// Code for the perl script that generates the ppc64 assembler -// can be found in the cryptogams repository at the link below. It is based on -// the original from openssl. - -// https://github.com/dot-asm/cryptogams/commit/a60f5b50ed908e91 - -// The differences in this and the original implementation are -// due to the calling conventions and initialization of constants. - -//go:build gc && !purego - -#include "textflag.h" - -#define OUT R3 -#define INP R4 -#define LEN R5 -#define KEY R6 -#define CNT R7 -#define TMP R15 - -#define CONSTBASE R16 -#define BLOCKS R17 - -// for VPERMXOR -#define MASK R18 - -DATA consts<>+0x00(SB)/8, $0x3320646e61707865 -DATA consts<>+0x08(SB)/8, $0x6b20657479622d32 -DATA consts<>+0x10(SB)/8, $0x0000000000000001 -DATA consts<>+0x18(SB)/8, $0x0000000000000000 -DATA consts<>+0x20(SB)/8, $0x0000000000000004 -DATA consts<>+0x28(SB)/8, $0x0000000000000000 -DATA consts<>+0x30(SB)/8, $0x0a0b08090e0f0c0d -DATA consts<>+0x38(SB)/8, $0x0203000106070405 -DATA consts<>+0x40(SB)/8, $0x090a0b080d0e0f0c -DATA consts<>+0x48(SB)/8, $0x0102030005060704 -DATA consts<>+0x50(SB)/8, $0x6170786561707865 -DATA consts<>+0x58(SB)/8, $0x6170786561707865 -DATA consts<>+0x60(SB)/8, $0x3320646e3320646e -DATA consts<>+0x68(SB)/8, $0x3320646e3320646e -DATA consts<>+0x70(SB)/8, $0x79622d3279622d32 -DATA consts<>+0x78(SB)/8, $0x79622d3279622d32 -DATA consts<>+0x80(SB)/8, $0x6b2065746b206574 -DATA consts<>+0x88(SB)/8, $0x6b2065746b206574 -DATA consts<>+0x90(SB)/8, $0x0000000100000000 -DATA consts<>+0x98(SB)/8, $0x0000000300000002 -DATA consts<>+0xa0(SB)/8, $0x5566774411223300 -DATA consts<>+0xa8(SB)/8, $0xddeeffcc99aabb88 -DATA consts<>+0xb0(SB)/8, $0x6677445522330011 -DATA consts<>+0xb8(SB)/8, $0xeeffccddaabb8899 -GLOBL consts<>(SB), RODATA, $0xc0 - -//func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) -TEXT ·chaCha20_ctr32_vsx(SB),NOSPLIT,$64-40 - MOVD out+0(FP), OUT - MOVD inp+8(FP), INP - MOVD len+16(FP), LEN - MOVD key+24(FP), KEY - MOVD counter+32(FP), CNT - - // Addressing for constants - MOVD $consts<>+0x00(SB), CONSTBASE - MOVD $16, R8 - MOVD $32, R9 - MOVD $48, R10 - MOVD $64, R11 - SRD $6, LEN, BLOCKS - // for VPERMXOR - MOVD $consts<>+0xa0(SB), MASK - MOVD $16, R20 - // V16 - LXVW4X (CONSTBASE)(R0), VS48 - ADD $80,CONSTBASE - - // Load key into V17,V18 - LXVW4X (KEY)(R0), VS49 - LXVW4X (KEY)(R8), VS50 - - // Load CNT, NONCE into V19 - LXVW4X (CNT)(R0), VS51 - - // Clear V27 - VXOR V27, V27, V27 - - // V28 - LXVW4X (CONSTBASE)(R11), VS60 - - // Load mask constants for VPERMXOR - LXVW4X (MASK)(R0), V20 - LXVW4X (MASK)(R20), V21 - - // splat slot from V19 -> V26 - VSPLTW $0, V19, V26 - - VSLDOI $4, V19, V27, V19 - VSLDOI $12, V27, V19, V19 - - VADDUWM V26, V28, V26 - - MOVD $10, R14 - MOVD R14, CTR - PCALIGN $16 -loop_outer_vsx: - // V0, V1, V2, V3 - LXVW4X (R0)(CONSTBASE), VS32 - LXVW4X (R8)(CONSTBASE), VS33 - LXVW4X (R9)(CONSTBASE), VS34 - LXVW4X (R10)(CONSTBASE), VS35 - - // splat values from V17, V18 into V4-V11 - VSPLTW $0, V17, V4 - VSPLTW $1, V17, V5 - VSPLTW $2, V17, V6 - VSPLTW $3, V17, V7 - VSPLTW $0, V18, V8 - VSPLTW $1, V18, V9 - VSPLTW $2, V18, V10 - VSPLTW $3, V18, V11 - - // VOR - VOR V26, V26, V12 - - // splat values from V19 -> V13, V14, V15 - VSPLTW $1, V19, V13 - VSPLTW $2, V19, V14 - VSPLTW $3, V19, V15 - - // splat const values - VSPLTISW $-16, V27 - VSPLTISW $12, V28 - VSPLTISW $8, V29 - VSPLTISW $7, V30 - PCALIGN $16 -loop_vsx: - VADDUWM V0, V4, V0 - VADDUWM V1, V5, V1 - VADDUWM V2, V6, V2 - VADDUWM V3, V7, V3 - - VPERMXOR V12, V0, V21, V12 - VPERMXOR V13, V1, V21, V13 - VPERMXOR V14, V2, V21, V14 - VPERMXOR V15, V3, V21, V15 - - VADDUWM V8, V12, V8 - VADDUWM V9, V13, V9 - VADDUWM V10, V14, V10 - VADDUWM V11, V15, V11 - - VXOR V4, V8, V4 - VXOR V5, V9, V5 - VXOR V6, V10, V6 - VXOR V7, V11, V7 - - VRLW V4, V28, V4 - VRLW V5, V28, V5 - VRLW V6, V28, V6 - VRLW V7, V28, V7 - - VADDUWM V0, V4, V0 - VADDUWM V1, V5, V1 - VADDUWM V2, V6, V2 - VADDUWM V3, V7, V3 - - VPERMXOR V12, V0, V20, V12 - VPERMXOR V13, V1, V20, V13 - VPERMXOR V14, V2, V20, V14 - VPERMXOR V15, V3, V20, V15 - - VADDUWM V8, V12, V8 - VADDUWM V9, V13, V9 - VADDUWM V10, V14, V10 - VADDUWM V11, V15, V11 - - VXOR V4, V8, V4 - VXOR V5, V9, V5 - VXOR V6, V10, V6 - VXOR V7, V11, V7 - - VRLW V4, V30, V4 - VRLW V5, V30, V5 - VRLW V6, V30, V6 - VRLW V7, V30, V7 - - VADDUWM V0, V5, V0 - VADDUWM V1, V6, V1 - VADDUWM V2, V7, V2 - VADDUWM V3, V4, V3 - - VPERMXOR V15, V0, V21, V15 - VPERMXOR V12, V1, V21, V12 - VPERMXOR V13, V2, V21, V13 - VPERMXOR V14, V3, V21, V14 - - VADDUWM V10, V15, V10 - VADDUWM V11, V12, V11 - VADDUWM V8, V13, V8 - VADDUWM V9, V14, V9 - - VXOR V5, V10, V5 - VXOR V6, V11, V6 - VXOR V7, V8, V7 - VXOR V4, V9, V4 - - VRLW V5, V28, V5 - VRLW V6, V28, V6 - VRLW V7, V28, V7 - VRLW V4, V28, V4 - - VADDUWM V0, V5, V0 - VADDUWM V1, V6, V1 - VADDUWM V2, V7, V2 - VADDUWM V3, V4, V3 - - VPERMXOR V15, V0, V20, V15 - VPERMXOR V12, V1, V20, V12 - VPERMXOR V13, V2, V20, V13 - VPERMXOR V14, V3, V20, V14 - - VADDUWM V10, V15, V10 - VADDUWM V11, V12, V11 - VADDUWM V8, V13, V8 - VADDUWM V9, V14, V9 - - VXOR V5, V10, V5 - VXOR V6, V11, V6 - VXOR V7, V8, V7 - VXOR V4, V9, V4 - - VRLW V5, V30, V5 - VRLW V6, V30, V6 - VRLW V7, V30, V7 - VRLW V4, V30, V4 - BDNZ loop_vsx - - VADDUWM V12, V26, V12 - - VMRGEW V0, V1, V27 - VMRGEW V2, V3, V28 - - VMRGOW V0, V1, V0 - VMRGOW V2, V3, V2 - - VMRGEW V4, V5, V29 - VMRGEW V6, V7, V30 - - XXPERMDI VS32, VS34, $0, VS33 - XXPERMDI VS32, VS34, $3, VS35 - XXPERMDI VS59, VS60, $0, VS32 - XXPERMDI VS59, VS60, $3, VS34 - - VMRGOW V4, V5, V4 - VMRGOW V6, V7, V6 - - VMRGEW V8, V9, V27 - VMRGEW V10, V11, V28 - - XXPERMDI VS36, VS38, $0, VS37 - XXPERMDI VS36, VS38, $3, VS39 - XXPERMDI VS61, VS62, $0, VS36 - XXPERMDI VS61, VS62, $3, VS38 - - VMRGOW V8, V9, V8 - VMRGOW V10, V11, V10 - - VMRGEW V12, V13, V29 - VMRGEW V14, V15, V30 - - XXPERMDI VS40, VS42, $0, VS41 - XXPERMDI VS40, VS42, $3, VS43 - XXPERMDI VS59, VS60, $0, VS40 - XXPERMDI VS59, VS60, $3, VS42 - - VMRGOW V12, V13, V12 - VMRGOW V14, V15, V14 - - VSPLTISW $4, V27 - VADDUWM V26, V27, V26 - - XXPERMDI VS44, VS46, $0, VS45 - XXPERMDI VS44, VS46, $3, VS47 - XXPERMDI VS61, VS62, $0, VS44 - XXPERMDI VS61, VS62, $3, VS46 - - VADDUWM V0, V16, V0 - VADDUWM V4, V17, V4 - VADDUWM V8, V18, V8 - VADDUWM V12, V19, V12 - - CMPU LEN, $64 - BLT tail_vsx - - // Bottom of loop - LXVW4X (INP)(R0), VS59 - LXVW4X (INP)(R8), VS60 - LXVW4X (INP)(R9), VS61 - LXVW4X (INP)(R10), VS62 - - VXOR V27, V0, V27 - VXOR V28, V4, V28 - VXOR V29, V8, V29 - VXOR V30, V12, V30 - - STXVW4X VS59, (OUT)(R0) - STXVW4X VS60, (OUT)(R8) - ADD $64, INP - STXVW4X VS61, (OUT)(R9) - ADD $-64, LEN - STXVW4X VS62, (OUT)(R10) - ADD $64, OUT - BEQ done_vsx - - VADDUWM V1, V16, V0 - VADDUWM V5, V17, V4 - VADDUWM V9, V18, V8 - VADDUWM V13, V19, V12 - - CMPU LEN, $64 - BLT tail_vsx - - LXVW4X (INP)(R0), VS59 - LXVW4X (INP)(R8), VS60 - LXVW4X (INP)(R9), VS61 - LXVW4X (INP)(R10), VS62 - VXOR V27, V0, V27 - - VXOR V28, V4, V28 - VXOR V29, V8, V29 - VXOR V30, V12, V30 - - STXVW4X VS59, (OUT)(R0) - STXVW4X VS60, (OUT)(R8) - ADD $64, INP - STXVW4X VS61, (OUT)(R9) - ADD $-64, LEN - STXVW4X VS62, (OUT)(V10) - ADD $64, OUT - BEQ done_vsx - - VADDUWM V2, V16, V0 - VADDUWM V6, V17, V4 - VADDUWM V10, V18, V8 - VADDUWM V14, V19, V12 - - CMPU LEN, $64 - BLT tail_vsx - - LXVW4X (INP)(R0), VS59 - LXVW4X (INP)(R8), VS60 - LXVW4X (INP)(R9), VS61 - LXVW4X (INP)(R10), VS62 - - VXOR V27, V0, V27 - VXOR V28, V4, V28 - VXOR V29, V8, V29 - VXOR V30, V12, V30 - - STXVW4X VS59, (OUT)(R0) - STXVW4X VS60, (OUT)(R8) - ADD $64, INP - STXVW4X VS61, (OUT)(R9) - ADD $-64, LEN - STXVW4X VS62, (OUT)(R10) - ADD $64, OUT - BEQ done_vsx - - VADDUWM V3, V16, V0 - VADDUWM V7, V17, V4 - VADDUWM V11, V18, V8 - VADDUWM V15, V19, V12 - - CMPU LEN, $64 - BLT tail_vsx - - LXVW4X (INP)(R0), VS59 - LXVW4X (INP)(R8), VS60 - LXVW4X (INP)(R9), VS61 - LXVW4X (INP)(R10), VS62 - - VXOR V27, V0, V27 - VXOR V28, V4, V28 - VXOR V29, V8, V29 - VXOR V30, V12, V30 - - STXVW4X VS59, (OUT)(R0) - STXVW4X VS60, (OUT)(R8) - ADD $64, INP - STXVW4X VS61, (OUT)(R9) - ADD $-64, LEN - STXVW4X VS62, (OUT)(R10) - ADD $64, OUT - - MOVD $10, R14 - MOVD R14, CTR - BNE loop_outer_vsx - -done_vsx: - // Increment counter by number of 64 byte blocks - MOVD (CNT), R14 - ADD BLOCKS, R14 - MOVD R14, (CNT) - RET - -tail_vsx: - ADD $32, R1, R11 - MOVD LEN, CTR - - // Save values on stack to copy from - STXVW4X VS32, (R11)(R0) - STXVW4X VS36, (R11)(R8) - STXVW4X VS40, (R11)(R9) - STXVW4X VS44, (R11)(R10) - ADD $-1, R11, R12 - ADD $-1, INP - ADD $-1, OUT - PCALIGN $16 -looptail_vsx: - // Copying the result to OUT - // in bytes. - MOVBZU 1(R12), KEY - MOVBZU 1(INP), TMP - XOR KEY, TMP, KEY - MOVBU KEY, 1(OUT) - BDNZ looptail_vsx - - // Clear the stack values - STXVW4X VS48, (R11)(R0) - STXVW4X VS48, (R11)(R8) - STXVW4X VS48, (R11)(R9) - STXVW4X VS48, (R11)(R10) - BR done_vsx diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.go b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.go new file mode 100644 index 000000000000..bd183d9ba124 --- /dev/null +++ b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.go @@ -0,0 +1,16 @@ +// Copyright 2019 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 gc && !purego && (ppc64 || ppc64le) + +package chacha20 + +const bufSize = 256 + +//go:noescape +func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) + +func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { + chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter) +} diff --git a/vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.s b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.s new file mode 100644 index 000000000000..a660b4112faf --- /dev/null +++ b/vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.s @@ -0,0 +1,501 @@ +// Copyright 2019 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. + +// Based on CRYPTOGAMS code with the following comment: +// # ==================================================================== +// # Written by Andy Polyakov for the OpenSSL +// # project. The module is, however, dual licensed under OpenSSL and +// # CRYPTOGAMS licenses depending on where you obtain it. For further +// # details see http://www.openssl.org/~appro/cryptogams/. +// # ==================================================================== + +// Code for the perl script that generates the ppc64 assembler +// can be found in the cryptogams repository at the link below. It is based on +// the original from openssl. + +// https://github.com/dot-asm/cryptogams/commit/a60f5b50ed908e91 + +// The differences in this and the original implementation are +// due to the calling conventions and initialization of constants. + +//go:build gc && !purego && (ppc64 || ppc64le) + +#include "textflag.h" + +#define OUT R3 +#define INP R4 +#define LEN R5 +#define KEY R6 +#define CNT R7 +#define TMP R15 + +#define CONSTBASE R16 +#define BLOCKS R17 + +// for VPERMXOR +#define MASK R18 + +DATA consts<>+0x00(SB)/4, $0x61707865 +DATA consts<>+0x04(SB)/4, $0x3320646e +DATA consts<>+0x08(SB)/4, $0x79622d32 +DATA consts<>+0x0c(SB)/4, $0x6b206574 +DATA consts<>+0x10(SB)/4, $0x00000001 +DATA consts<>+0x14(SB)/4, $0x00000000 +DATA consts<>+0x18(SB)/4, $0x00000000 +DATA consts<>+0x1c(SB)/4, $0x00000000 +DATA consts<>+0x20(SB)/4, $0x00000004 +DATA consts<>+0x24(SB)/4, $0x00000000 +DATA consts<>+0x28(SB)/4, $0x00000000 +DATA consts<>+0x2c(SB)/4, $0x00000000 +DATA consts<>+0x30(SB)/4, $0x0e0f0c0d +DATA consts<>+0x34(SB)/4, $0x0a0b0809 +DATA consts<>+0x38(SB)/4, $0x06070405 +DATA consts<>+0x3c(SB)/4, $0x02030001 +DATA consts<>+0x40(SB)/4, $0x0d0e0f0c +DATA consts<>+0x44(SB)/4, $0x090a0b08 +DATA consts<>+0x48(SB)/4, $0x05060704 +DATA consts<>+0x4c(SB)/4, $0x01020300 +DATA consts<>+0x50(SB)/4, $0x61707865 +DATA consts<>+0x54(SB)/4, $0x61707865 +DATA consts<>+0x58(SB)/4, $0x61707865 +DATA consts<>+0x5c(SB)/4, $0x61707865 +DATA consts<>+0x60(SB)/4, $0x3320646e +DATA consts<>+0x64(SB)/4, $0x3320646e +DATA consts<>+0x68(SB)/4, $0x3320646e +DATA consts<>+0x6c(SB)/4, $0x3320646e +DATA consts<>+0x70(SB)/4, $0x79622d32 +DATA consts<>+0x74(SB)/4, $0x79622d32 +DATA consts<>+0x78(SB)/4, $0x79622d32 +DATA consts<>+0x7c(SB)/4, $0x79622d32 +DATA consts<>+0x80(SB)/4, $0x6b206574 +DATA consts<>+0x84(SB)/4, $0x6b206574 +DATA consts<>+0x88(SB)/4, $0x6b206574 +DATA consts<>+0x8c(SB)/4, $0x6b206574 +DATA consts<>+0x90(SB)/4, $0x00000000 +DATA consts<>+0x94(SB)/4, $0x00000001 +DATA consts<>+0x98(SB)/4, $0x00000002 +DATA consts<>+0x9c(SB)/4, $0x00000003 +DATA consts<>+0xa0(SB)/4, $0x11223300 +DATA consts<>+0xa4(SB)/4, $0x55667744 +DATA consts<>+0xa8(SB)/4, $0x99aabb88 +DATA consts<>+0xac(SB)/4, $0xddeeffcc +DATA consts<>+0xb0(SB)/4, $0x22330011 +DATA consts<>+0xb4(SB)/4, $0x66774455 +DATA consts<>+0xb8(SB)/4, $0xaabb8899 +DATA consts<>+0xbc(SB)/4, $0xeeffccdd +GLOBL consts<>(SB), RODATA, $0xc0 + +#ifdef GOARCH_ppc64 +#define BE_XXBRW_INIT() \ + LVSL (R0)(R0), V24 \ + VSPLTISB $3, V25 \ + VXOR V24, V25, V24 \ + +#define BE_XXBRW(vr) VPERM vr, vr, V24, vr +#else +#define BE_XXBRW_INIT() +#define BE_XXBRW(vr) +#endif + +//func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) +TEXT ·chaCha20_ctr32_vsx(SB),NOSPLIT,$64-40 + MOVD out+0(FP), OUT + MOVD inp+8(FP), INP + MOVD len+16(FP), LEN + MOVD key+24(FP), KEY + MOVD counter+32(FP), CNT + + // Addressing for constants + MOVD $consts<>+0x00(SB), CONSTBASE + MOVD $16, R8 + MOVD $32, R9 + MOVD $48, R10 + MOVD $64, R11 + SRD $6, LEN, BLOCKS + // for VPERMXOR + MOVD $consts<>+0xa0(SB), MASK + MOVD $16, R20 + // V16 + LXVW4X (CONSTBASE)(R0), VS48 + ADD $80,CONSTBASE + + // Load key into V17,V18 + LXVW4X (KEY)(R0), VS49 + LXVW4X (KEY)(R8), VS50 + + // Load CNT, NONCE into V19 + LXVW4X (CNT)(R0), VS51 + + // Clear V27 + VXOR V27, V27, V27 + + BE_XXBRW_INIT() + + // V28 + LXVW4X (CONSTBASE)(R11), VS60 + + // Load mask constants for VPERMXOR + LXVW4X (MASK)(R0), V20 + LXVW4X (MASK)(R20), V21 + + // splat slot from V19 -> V26 + VSPLTW $0, V19, V26 + + VSLDOI $4, V19, V27, V19 + VSLDOI $12, V27, V19, V19 + + VADDUWM V26, V28, V26 + + MOVD $10, R14 + MOVD R14, CTR + PCALIGN $16 +loop_outer_vsx: + // V0, V1, V2, V3 + LXVW4X (R0)(CONSTBASE), VS32 + LXVW4X (R8)(CONSTBASE), VS33 + LXVW4X (R9)(CONSTBASE), VS34 + LXVW4X (R10)(CONSTBASE), VS35 + + // splat values from V17, V18 into V4-V11 + VSPLTW $0, V17, V4 + VSPLTW $1, V17, V5 + VSPLTW $2, V17, V6 + VSPLTW $3, V17, V7 + VSPLTW $0, V18, V8 + VSPLTW $1, V18, V9 + VSPLTW $2, V18, V10 + VSPLTW $3, V18, V11 + + // VOR + VOR V26, V26, V12 + + // splat values from V19 -> V13, V14, V15 + VSPLTW $1, V19, V13 + VSPLTW $2, V19, V14 + VSPLTW $3, V19, V15 + + // splat const values + VSPLTISW $-16, V27 + VSPLTISW $12, V28 + VSPLTISW $8, V29 + VSPLTISW $7, V30 + PCALIGN $16 +loop_vsx: + VADDUWM V0, V4, V0 + VADDUWM V1, V5, V1 + VADDUWM V2, V6, V2 + VADDUWM V3, V7, V3 + + VPERMXOR V12, V0, V21, V12 + VPERMXOR V13, V1, V21, V13 + VPERMXOR V14, V2, V21, V14 + VPERMXOR V15, V3, V21, V15 + + VADDUWM V8, V12, V8 + VADDUWM V9, V13, V9 + VADDUWM V10, V14, V10 + VADDUWM V11, V15, V11 + + VXOR V4, V8, V4 + VXOR V5, V9, V5 + VXOR V6, V10, V6 + VXOR V7, V11, V7 + + VRLW V4, V28, V4 + VRLW V5, V28, V5 + VRLW V6, V28, V6 + VRLW V7, V28, V7 + + VADDUWM V0, V4, V0 + VADDUWM V1, V5, V1 + VADDUWM V2, V6, V2 + VADDUWM V3, V7, V3 + + VPERMXOR V12, V0, V20, V12 + VPERMXOR V13, V1, V20, V13 + VPERMXOR V14, V2, V20, V14 + VPERMXOR V15, V3, V20, V15 + + VADDUWM V8, V12, V8 + VADDUWM V9, V13, V9 + VADDUWM V10, V14, V10 + VADDUWM V11, V15, V11 + + VXOR V4, V8, V4 + VXOR V5, V9, V5 + VXOR V6, V10, V6 + VXOR V7, V11, V7 + + VRLW V4, V30, V4 + VRLW V5, V30, V5 + VRLW V6, V30, V6 + VRLW V7, V30, V7 + + VADDUWM V0, V5, V0 + VADDUWM V1, V6, V1 + VADDUWM V2, V7, V2 + VADDUWM V3, V4, V3 + + VPERMXOR V15, V0, V21, V15 + VPERMXOR V12, V1, V21, V12 + VPERMXOR V13, V2, V21, V13 + VPERMXOR V14, V3, V21, V14 + + VADDUWM V10, V15, V10 + VADDUWM V11, V12, V11 + VADDUWM V8, V13, V8 + VADDUWM V9, V14, V9 + + VXOR V5, V10, V5 + VXOR V6, V11, V6 + VXOR V7, V8, V7 + VXOR V4, V9, V4 + + VRLW V5, V28, V5 + VRLW V6, V28, V6 + VRLW V7, V28, V7 + VRLW V4, V28, V4 + + VADDUWM V0, V5, V0 + VADDUWM V1, V6, V1 + VADDUWM V2, V7, V2 + VADDUWM V3, V4, V3 + + VPERMXOR V15, V0, V20, V15 + VPERMXOR V12, V1, V20, V12 + VPERMXOR V13, V2, V20, V13 + VPERMXOR V14, V3, V20, V14 + + VADDUWM V10, V15, V10 + VADDUWM V11, V12, V11 + VADDUWM V8, V13, V8 + VADDUWM V9, V14, V9 + + VXOR V5, V10, V5 + VXOR V6, V11, V6 + VXOR V7, V8, V7 + VXOR V4, V9, V4 + + VRLW V5, V30, V5 + VRLW V6, V30, V6 + VRLW V7, V30, V7 + VRLW V4, V30, V4 + BDNZ loop_vsx + + VADDUWM V12, V26, V12 + + VMRGEW V0, V1, V27 + VMRGEW V2, V3, V28 + + VMRGOW V0, V1, V0 + VMRGOW V2, V3, V2 + + VMRGEW V4, V5, V29 + VMRGEW V6, V7, V30 + + XXPERMDI VS32, VS34, $0, VS33 + XXPERMDI VS32, VS34, $3, VS35 + XXPERMDI VS59, VS60, $0, VS32 + XXPERMDI VS59, VS60, $3, VS34 + + VMRGOW V4, V5, V4 + VMRGOW V6, V7, V6 + + VMRGEW V8, V9, V27 + VMRGEW V10, V11, V28 + + XXPERMDI VS36, VS38, $0, VS37 + XXPERMDI VS36, VS38, $3, VS39 + XXPERMDI VS61, VS62, $0, VS36 + XXPERMDI VS61, VS62, $3, VS38 + + VMRGOW V8, V9, V8 + VMRGOW V10, V11, V10 + + VMRGEW V12, V13, V29 + VMRGEW V14, V15, V30 + + XXPERMDI VS40, VS42, $0, VS41 + XXPERMDI VS40, VS42, $3, VS43 + XXPERMDI VS59, VS60, $0, VS40 + XXPERMDI VS59, VS60, $3, VS42 + + VMRGOW V12, V13, V12 + VMRGOW V14, V15, V14 + + VSPLTISW $4, V27 + VADDUWM V26, V27, V26 + + XXPERMDI VS44, VS46, $0, VS45 + XXPERMDI VS44, VS46, $3, VS47 + XXPERMDI VS61, VS62, $0, VS44 + XXPERMDI VS61, VS62, $3, VS46 + + VADDUWM V0, V16, V0 + VADDUWM V4, V17, V4 + VADDUWM V8, V18, V8 + VADDUWM V12, V19, V12 + + BE_XXBRW(V0) + BE_XXBRW(V4) + BE_XXBRW(V8) + BE_XXBRW(V12) + + CMPU LEN, $64 + BLT tail_vsx + + // Bottom of loop + LXVW4X (INP)(R0), VS59 + LXVW4X (INP)(R8), VS60 + LXVW4X (INP)(R9), VS61 + LXVW4X (INP)(R10), VS62 + + VXOR V27, V0, V27 + VXOR V28, V4, V28 + VXOR V29, V8, V29 + VXOR V30, V12, V30 + + STXVW4X VS59, (OUT)(R0) + STXVW4X VS60, (OUT)(R8) + ADD $64, INP + STXVW4X VS61, (OUT)(R9) + ADD $-64, LEN + STXVW4X VS62, (OUT)(R10) + ADD $64, OUT + BEQ done_vsx + + VADDUWM V1, V16, V0 + VADDUWM V5, V17, V4 + VADDUWM V9, V18, V8 + VADDUWM V13, V19, V12 + + BE_XXBRW(V0) + BE_XXBRW(V4) + BE_XXBRW(V8) + BE_XXBRW(V12) + + CMPU LEN, $64 + BLT tail_vsx + + LXVW4X (INP)(R0), VS59 + LXVW4X (INP)(R8), VS60 + LXVW4X (INP)(R9), VS61 + LXVW4X (INP)(R10), VS62 + + VXOR V27, V0, V27 + VXOR V28, V4, V28 + VXOR V29, V8, V29 + VXOR V30, V12, V30 + + STXVW4X VS59, (OUT)(R0) + STXVW4X VS60, (OUT)(R8) + ADD $64, INP + STXVW4X VS61, (OUT)(R9) + ADD $-64, LEN + STXVW4X VS62, (OUT)(V10) + ADD $64, OUT + BEQ done_vsx + + VADDUWM V2, V16, V0 + VADDUWM V6, V17, V4 + VADDUWM V10, V18, V8 + VADDUWM V14, V19, V12 + + BE_XXBRW(V0) + BE_XXBRW(V4) + BE_XXBRW(V8) + BE_XXBRW(V12) + + CMPU LEN, $64 + BLT tail_vsx + + LXVW4X (INP)(R0), VS59 + LXVW4X (INP)(R8), VS60 + LXVW4X (INP)(R9), VS61 + LXVW4X (INP)(R10), VS62 + + VXOR V27, V0, V27 + VXOR V28, V4, V28 + VXOR V29, V8, V29 + VXOR V30, V12, V30 + + STXVW4X VS59, (OUT)(R0) + STXVW4X VS60, (OUT)(R8) + ADD $64, INP + STXVW4X VS61, (OUT)(R9) + ADD $-64, LEN + STXVW4X VS62, (OUT)(R10) + ADD $64, OUT + BEQ done_vsx + + VADDUWM V3, V16, V0 + VADDUWM V7, V17, V4 + VADDUWM V11, V18, V8 + VADDUWM V15, V19, V12 + + BE_XXBRW(V0) + BE_XXBRW(V4) + BE_XXBRW(V8) + BE_XXBRW(V12) + + CMPU LEN, $64 + BLT tail_vsx + + LXVW4X (INP)(R0), VS59 + LXVW4X (INP)(R8), VS60 + LXVW4X (INP)(R9), VS61 + LXVW4X (INP)(R10), VS62 + + VXOR V27, V0, V27 + VXOR V28, V4, V28 + VXOR V29, V8, V29 + VXOR V30, V12, V30 + + STXVW4X VS59, (OUT)(R0) + STXVW4X VS60, (OUT)(R8) + ADD $64, INP + STXVW4X VS61, (OUT)(R9) + ADD $-64, LEN + STXVW4X VS62, (OUT)(R10) + ADD $64, OUT + + MOVD $10, R14 + MOVD R14, CTR + BNE loop_outer_vsx + +done_vsx: + // Increment counter by number of 64 byte blocks + MOVWZ (CNT), R14 + ADD BLOCKS, R14 + MOVWZ R14, (CNT) + RET + +tail_vsx: + ADD $32, R1, R11 + MOVD LEN, CTR + + // Save values on stack to copy from + STXVW4X VS32, (R11)(R0) + STXVW4X VS36, (R11)(R8) + STXVW4X VS40, (R11)(R9) + STXVW4X VS44, (R11)(R10) + ADD $-1, R11, R12 + ADD $-1, INP + ADD $-1, OUT + PCALIGN $16 +looptail_vsx: + // Copying the result to OUT + // in bytes. + MOVBZU 1(R12), KEY + MOVBZU 1(INP), TMP + XOR KEY, TMP, KEY + MOVBU KEY, 1(OUT) + BDNZ looptail_vsx + + // Clear the stack values + STXVW4X VS48, (R11)(R0) + STXVW4X VS48, (R11)(R8) + STXVW4X VS48, (R11)(R9) + STXVW4X VS48, (R11)(R10) + BR done_vsx diff --git a/vendor/golang.org/x/crypto/curve25519/curve25519.go b/vendor/golang.org/x/crypto/curve25519/curve25519.go index 00f963ea20a3..21ca3b2ee4b9 100644 --- a/vendor/golang.org/x/crypto/curve25519/curve25519.go +++ b/vendor/golang.org/x/crypto/curve25519/curve25519.go @@ -6,9 +6,11 @@ // performs scalar multiplication on the elliptic curve known as Curve25519. // See RFC 7748. // -// Starting in Go 1.20, this package is a wrapper for the X25519 implementation +// This package is a wrapper for the X25519 implementation // in the crypto/ecdh package. -package curve25519 // import "golang.org/x/crypto/curve25519" +package curve25519 + +import "crypto/ecdh" // ScalarMult sets dst to the product scalar * point. // @@ -16,7 +18,13 @@ package curve25519 // import "golang.org/x/crypto/curve25519" // zeroes, irrespective of the scalar. Instead, use the X25519 function, which // will return an error. func ScalarMult(dst, scalar, point *[32]byte) { - scalarMult(dst, scalar, point) + if _, err := x25519(dst, scalar[:], point[:]); err != nil { + // The only error condition for x25519 when the inputs are 32 bytes long + // is if the output would have been the all-zero value. + for i := range dst { + dst[i] = 0 + } + } } // ScalarBaseMult sets dst to the product scalar * base where base is the @@ -25,7 +33,12 @@ func ScalarMult(dst, scalar, point *[32]byte) { // It is recommended to use the X25519 function with Basepoint instead, as // copying into fixed size arrays can lead to unexpected bugs. func ScalarBaseMult(dst, scalar *[32]byte) { - scalarBaseMult(dst, scalar) + curve := ecdh.X25519() + priv, err := curve.NewPrivateKey(scalar[:]) + if err != nil { + panic("curve25519: internal error: scalarBaseMult was not 32 bytes") + } + copy(dst[:], priv.PublicKey().Bytes()) } const ( @@ -57,3 +70,21 @@ func X25519(scalar, point []byte) ([]byte, error) { var dst [32]byte return x25519(&dst, scalar, point) } + +func x25519(dst *[32]byte, scalar, point []byte) ([]byte, error) { + curve := ecdh.X25519() + pub, err := curve.NewPublicKey(point) + if err != nil { + return nil, err + } + priv, err := curve.NewPrivateKey(scalar) + if err != nil { + return nil, err + } + out, err := priv.ECDH(pub) + if err != nil { + return nil, err + } + copy(dst[:], out) + return dst[:], nil +} diff --git a/vendor/golang.org/x/crypto/curve25519/curve25519_compat.go b/vendor/golang.org/x/crypto/curve25519/curve25519_compat.go deleted file mode 100644 index ba647e8d77d9..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/curve25519_compat.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2019 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.20 - -package curve25519 - -import ( - "crypto/subtle" - "errors" - "strconv" - - "golang.org/x/crypto/curve25519/internal/field" -) - -func scalarMult(dst, scalar, point *[32]byte) { - var e [32]byte - - copy(e[:], scalar[:]) - e[0] &= 248 - e[31] &= 127 - e[31] |= 64 - - var x1, x2, z2, x3, z3, tmp0, tmp1 field.Element - x1.SetBytes(point[:]) - x2.One() - x3.Set(&x1) - z3.One() - - swap := 0 - for pos := 254; pos >= 0; pos-- { - b := e[pos/8] >> uint(pos&7) - b &= 1 - swap ^= int(b) - x2.Swap(&x3, swap) - z2.Swap(&z3, swap) - swap = int(b) - - tmp0.Subtract(&x3, &z3) - tmp1.Subtract(&x2, &z2) - x2.Add(&x2, &z2) - z2.Add(&x3, &z3) - z3.Multiply(&tmp0, &x2) - z2.Multiply(&z2, &tmp1) - tmp0.Square(&tmp1) - tmp1.Square(&x2) - x3.Add(&z3, &z2) - z2.Subtract(&z3, &z2) - x2.Multiply(&tmp1, &tmp0) - tmp1.Subtract(&tmp1, &tmp0) - z2.Square(&z2) - - z3.Mult32(&tmp1, 121666) - x3.Square(&x3) - tmp0.Add(&tmp0, &z3) - z3.Multiply(&x1, &z2) - z2.Multiply(&tmp1, &tmp0) - } - - x2.Swap(&x3, swap) - z2.Swap(&z3, swap) - - z2.Invert(&z2) - x2.Multiply(&x2, &z2) - copy(dst[:], x2.Bytes()) -} - -func scalarBaseMult(dst, scalar *[32]byte) { - checkBasepoint() - scalarMult(dst, scalar, &basePoint) -} - -func x25519(dst *[32]byte, scalar, point []byte) ([]byte, error) { - var in [32]byte - if l := len(scalar); l != 32 { - return nil, errors.New("bad scalar length: " + strconv.Itoa(l) + ", expected 32") - } - if l := len(point); l != 32 { - return nil, errors.New("bad point length: " + strconv.Itoa(l) + ", expected 32") - } - copy(in[:], scalar) - if &point[0] == &Basepoint[0] { - scalarBaseMult(dst, &in) - } else { - var base, zero [32]byte - copy(base[:], point) - scalarMult(dst, &in, &base) - if subtle.ConstantTimeCompare(dst[:], zero[:]) == 1 { - return nil, errors.New("bad input point: low order point") - } - } - return dst[:], nil -} - -func checkBasepoint() { - if subtle.ConstantTimeCompare(Basepoint, []byte{ - 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - }) != 1 { - panic("curve25519: global Basepoint value was modified") - } -} diff --git a/vendor/golang.org/x/crypto/curve25519/curve25519_go120.go b/vendor/golang.org/x/crypto/curve25519/curve25519_go120.go deleted file mode 100644 index 627df497270f..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/curve25519_go120.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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.20 - -package curve25519 - -import "crypto/ecdh" - -func x25519(dst *[32]byte, scalar, point []byte) ([]byte, error) { - curve := ecdh.X25519() - pub, err := curve.NewPublicKey(point) - if err != nil { - return nil, err - } - priv, err := curve.NewPrivateKey(scalar) - if err != nil { - return nil, err - } - out, err := priv.ECDH(pub) - if err != nil { - return nil, err - } - copy(dst[:], out) - return dst[:], nil -} - -func scalarMult(dst, scalar, point *[32]byte) { - if _, err := x25519(dst, scalar[:], point[:]); err != nil { - // The only error condition for x25519 when the inputs are 32 bytes long - // is if the output would have been the all-zero value. - for i := range dst { - dst[i] = 0 - } - } -} - -func scalarBaseMult(dst, scalar *[32]byte) { - curve := ecdh.X25519() - priv, err := curve.NewPrivateKey(scalar[:]) - if err != nil { - panic("curve25519: internal error: scalarBaseMult was not 32 bytes") - } - copy(dst[:], priv.PublicKey().Bytes()) -} diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/README b/vendor/golang.org/x/crypto/curve25519/internal/field/README deleted file mode 100644 index e25bca7dc806..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/README +++ /dev/null @@ -1,7 +0,0 @@ -This package is kept in sync with crypto/ed25519/internal/edwards25519/field in -the standard library. - -If there are any changes in the standard library that need to be synced to this -package, run sync.sh. It will not overwrite any local changes made since the -previous sync, so it's ok to land changes in this package first, and then sync -to the standard library later. diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe.go deleted file mode 100644 index ca841ad99e3a..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe.go +++ /dev/null @@ -1,416 +0,0 @@ -// Copyright (c) 2017 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. - -// Package field implements fast arithmetic modulo 2^255-19. -package field - -import ( - "crypto/subtle" - "encoding/binary" - "math/bits" -) - -// Element represents an element of the field GF(2^255-19). Note that this -// is not a cryptographically secure group, and should only be used to interact -// with edwards25519.Point coordinates. -// -// This type works similarly to math/big.Int, and all arguments and receivers -// are allowed to alias. -// -// The zero value is a valid zero element. -type Element struct { - // An element t represents the integer - // t.l0 + t.l1*2^51 + t.l2*2^102 + t.l3*2^153 + t.l4*2^204 - // - // Between operations, all limbs are expected to be lower than 2^52. - l0 uint64 - l1 uint64 - l2 uint64 - l3 uint64 - l4 uint64 -} - -const maskLow51Bits uint64 = (1 << 51) - 1 - -var feZero = &Element{0, 0, 0, 0, 0} - -// Zero sets v = 0, and returns v. -func (v *Element) Zero() *Element { - *v = *feZero - return v -} - -var feOne = &Element{1, 0, 0, 0, 0} - -// One sets v = 1, and returns v. -func (v *Element) One() *Element { - *v = *feOne - return v -} - -// reduce reduces v modulo 2^255 - 19 and returns it. -func (v *Element) reduce() *Element { - v.carryPropagate() - - // After the light reduction we now have a field element representation - // v < 2^255 + 2^13 * 19, but need v < 2^255 - 19. - - // If v >= 2^255 - 19, then v + 19 >= 2^255, which would overflow 2^255 - 1, - // generating a carry. That is, c will be 0 if v < 2^255 - 19, and 1 otherwise. - c := (v.l0 + 19) >> 51 - c = (v.l1 + c) >> 51 - c = (v.l2 + c) >> 51 - c = (v.l3 + c) >> 51 - c = (v.l4 + c) >> 51 - - // If v < 2^255 - 19 and c = 0, this will be a no-op. Otherwise, it's - // effectively applying the reduction identity to the carry. - v.l0 += 19 * c - - v.l1 += v.l0 >> 51 - v.l0 = v.l0 & maskLow51Bits - v.l2 += v.l1 >> 51 - v.l1 = v.l1 & maskLow51Bits - v.l3 += v.l2 >> 51 - v.l2 = v.l2 & maskLow51Bits - v.l4 += v.l3 >> 51 - v.l3 = v.l3 & maskLow51Bits - // no additional carry - v.l4 = v.l4 & maskLow51Bits - - return v -} - -// Add sets v = a + b, and returns v. -func (v *Element) Add(a, b *Element) *Element { - v.l0 = a.l0 + b.l0 - v.l1 = a.l1 + b.l1 - v.l2 = a.l2 + b.l2 - v.l3 = a.l3 + b.l3 - v.l4 = a.l4 + b.l4 - // Using the generic implementation here is actually faster than the - // assembly. Probably because the body of this function is so simple that - // the compiler can figure out better optimizations by inlining the carry - // propagation. TODO - return v.carryPropagateGeneric() -} - -// Subtract sets v = a - b, and returns v. -func (v *Element) Subtract(a, b *Element) *Element { - // We first add 2 * p, to guarantee the subtraction won't underflow, and - // then subtract b (which can be up to 2^255 + 2^13 * 19). - v.l0 = (a.l0 + 0xFFFFFFFFFFFDA) - b.l0 - v.l1 = (a.l1 + 0xFFFFFFFFFFFFE) - b.l1 - v.l2 = (a.l2 + 0xFFFFFFFFFFFFE) - b.l2 - v.l3 = (a.l3 + 0xFFFFFFFFFFFFE) - b.l3 - v.l4 = (a.l4 + 0xFFFFFFFFFFFFE) - b.l4 - return v.carryPropagate() -} - -// Negate sets v = -a, and returns v. -func (v *Element) Negate(a *Element) *Element { - return v.Subtract(feZero, a) -} - -// Invert sets v = 1/z mod p, and returns v. -// -// If z == 0, Invert returns v = 0. -func (v *Element) Invert(z *Element) *Element { - // Inversion is implemented as exponentiation with exponent p − 2. It uses the - // same sequence of 255 squarings and 11 multiplications as [Curve25519]. - var z2, z9, z11, z2_5_0, z2_10_0, z2_20_0, z2_50_0, z2_100_0, t Element - - z2.Square(z) // 2 - t.Square(&z2) // 4 - t.Square(&t) // 8 - z9.Multiply(&t, z) // 9 - z11.Multiply(&z9, &z2) // 11 - t.Square(&z11) // 22 - z2_5_0.Multiply(&t, &z9) // 31 = 2^5 - 2^0 - - t.Square(&z2_5_0) // 2^6 - 2^1 - for i := 0; i < 4; i++ { - t.Square(&t) // 2^10 - 2^5 - } - z2_10_0.Multiply(&t, &z2_5_0) // 2^10 - 2^0 - - t.Square(&z2_10_0) // 2^11 - 2^1 - for i := 0; i < 9; i++ { - t.Square(&t) // 2^20 - 2^10 - } - z2_20_0.Multiply(&t, &z2_10_0) // 2^20 - 2^0 - - t.Square(&z2_20_0) // 2^21 - 2^1 - for i := 0; i < 19; i++ { - t.Square(&t) // 2^40 - 2^20 - } - t.Multiply(&t, &z2_20_0) // 2^40 - 2^0 - - t.Square(&t) // 2^41 - 2^1 - for i := 0; i < 9; i++ { - t.Square(&t) // 2^50 - 2^10 - } - z2_50_0.Multiply(&t, &z2_10_0) // 2^50 - 2^0 - - t.Square(&z2_50_0) // 2^51 - 2^1 - for i := 0; i < 49; i++ { - t.Square(&t) // 2^100 - 2^50 - } - z2_100_0.Multiply(&t, &z2_50_0) // 2^100 - 2^0 - - t.Square(&z2_100_0) // 2^101 - 2^1 - for i := 0; i < 99; i++ { - t.Square(&t) // 2^200 - 2^100 - } - t.Multiply(&t, &z2_100_0) // 2^200 - 2^0 - - t.Square(&t) // 2^201 - 2^1 - for i := 0; i < 49; i++ { - t.Square(&t) // 2^250 - 2^50 - } - t.Multiply(&t, &z2_50_0) // 2^250 - 2^0 - - t.Square(&t) // 2^251 - 2^1 - t.Square(&t) // 2^252 - 2^2 - t.Square(&t) // 2^253 - 2^3 - t.Square(&t) // 2^254 - 2^4 - t.Square(&t) // 2^255 - 2^5 - - return v.Multiply(&t, &z11) // 2^255 - 21 -} - -// Set sets v = a, and returns v. -func (v *Element) Set(a *Element) *Element { - *v = *a - return v -} - -// SetBytes sets v to x, which must be a 32-byte little-endian encoding. -// -// Consistent with RFC 7748, the most significant bit (the high bit of the -// last byte) is ignored, and non-canonical values (2^255-19 through 2^255-1) -// are accepted. Note that this is laxer than specified by RFC 8032. -func (v *Element) SetBytes(x []byte) *Element { - if len(x) != 32 { - panic("edwards25519: invalid field element input size") - } - - // Bits 0:51 (bytes 0:8, bits 0:64, shift 0, mask 51). - v.l0 = binary.LittleEndian.Uint64(x[0:8]) - v.l0 &= maskLow51Bits - // Bits 51:102 (bytes 6:14, bits 48:112, shift 3, mask 51). - v.l1 = binary.LittleEndian.Uint64(x[6:14]) >> 3 - v.l1 &= maskLow51Bits - // Bits 102:153 (bytes 12:20, bits 96:160, shift 6, mask 51). - v.l2 = binary.LittleEndian.Uint64(x[12:20]) >> 6 - v.l2 &= maskLow51Bits - // Bits 153:204 (bytes 19:27, bits 152:216, shift 1, mask 51). - v.l3 = binary.LittleEndian.Uint64(x[19:27]) >> 1 - v.l3 &= maskLow51Bits - // Bits 204:251 (bytes 24:32, bits 192:256, shift 12, mask 51). - // Note: not bytes 25:33, shift 4, to avoid overread. - v.l4 = binary.LittleEndian.Uint64(x[24:32]) >> 12 - v.l4 &= maskLow51Bits - - return v -} - -// Bytes returns the canonical 32-byte little-endian encoding of v. -func (v *Element) Bytes() []byte { - // This function is outlined to make the allocations inline in the caller - // rather than happen on the heap. - var out [32]byte - return v.bytes(&out) -} - -func (v *Element) bytes(out *[32]byte) []byte { - t := *v - t.reduce() - - var buf [8]byte - for i, l := range [5]uint64{t.l0, t.l1, t.l2, t.l3, t.l4} { - bitsOffset := i * 51 - binary.LittleEndian.PutUint64(buf[:], l<= len(out) { - break - } - out[off] |= bb - } - } - - return out[:] -} - -// Equal returns 1 if v and u are equal, and 0 otherwise. -func (v *Element) Equal(u *Element) int { - sa, sv := u.Bytes(), v.Bytes() - return subtle.ConstantTimeCompare(sa, sv) -} - -// mask64Bits returns 0xffffffff if cond is 1, and 0 otherwise. -func mask64Bits(cond int) uint64 { return ^(uint64(cond) - 1) } - -// Select sets v to a if cond == 1, and to b if cond == 0. -func (v *Element) Select(a, b *Element, cond int) *Element { - m := mask64Bits(cond) - v.l0 = (m & a.l0) | (^m & b.l0) - v.l1 = (m & a.l1) | (^m & b.l1) - v.l2 = (m & a.l2) | (^m & b.l2) - v.l3 = (m & a.l3) | (^m & b.l3) - v.l4 = (m & a.l4) | (^m & b.l4) - return v -} - -// Swap swaps v and u if cond == 1 or leaves them unchanged if cond == 0, and returns v. -func (v *Element) Swap(u *Element, cond int) { - m := mask64Bits(cond) - t := m & (v.l0 ^ u.l0) - v.l0 ^= t - u.l0 ^= t - t = m & (v.l1 ^ u.l1) - v.l1 ^= t - u.l1 ^= t - t = m & (v.l2 ^ u.l2) - v.l2 ^= t - u.l2 ^= t - t = m & (v.l3 ^ u.l3) - v.l3 ^= t - u.l3 ^= t - t = m & (v.l4 ^ u.l4) - v.l4 ^= t - u.l4 ^= t -} - -// IsNegative returns 1 if v is negative, and 0 otherwise. -func (v *Element) IsNegative() int { - return int(v.Bytes()[0] & 1) -} - -// Absolute sets v to |u|, and returns v. -func (v *Element) Absolute(u *Element) *Element { - return v.Select(new(Element).Negate(u), u, u.IsNegative()) -} - -// Multiply sets v = x * y, and returns v. -func (v *Element) Multiply(x, y *Element) *Element { - feMul(v, x, y) - return v -} - -// Square sets v = x * x, and returns v. -func (v *Element) Square(x *Element) *Element { - feSquare(v, x) - return v -} - -// Mult32 sets v = x * y, and returns v. -func (v *Element) Mult32(x *Element, y uint32) *Element { - x0lo, x0hi := mul51(x.l0, y) - x1lo, x1hi := mul51(x.l1, y) - x2lo, x2hi := mul51(x.l2, y) - x3lo, x3hi := mul51(x.l3, y) - x4lo, x4hi := mul51(x.l4, y) - v.l0 = x0lo + 19*x4hi // carried over per the reduction identity - v.l1 = x1lo + x0hi - v.l2 = x2lo + x1hi - v.l3 = x3lo + x2hi - v.l4 = x4lo + x3hi - // The hi portions are going to be only 32 bits, plus any previous excess, - // so we can skip the carry propagation. - return v -} - -// mul51 returns lo + hi * 2⁵¹ = a * b. -func mul51(a uint64, b uint32) (lo uint64, hi uint64) { - mh, ml := bits.Mul64(a, uint64(b)) - lo = ml & maskLow51Bits - hi = (mh << 13) | (ml >> 51) - return -} - -// Pow22523 set v = x^((p-5)/8), and returns v. (p-5)/8 is 2^252-3. -func (v *Element) Pow22523(x *Element) *Element { - var t0, t1, t2 Element - - t0.Square(x) // x^2 - t1.Square(&t0) // x^4 - t1.Square(&t1) // x^8 - t1.Multiply(x, &t1) // x^9 - t0.Multiply(&t0, &t1) // x^11 - t0.Square(&t0) // x^22 - t0.Multiply(&t1, &t0) // x^31 - t1.Square(&t0) // x^62 - for i := 1; i < 5; i++ { // x^992 - t1.Square(&t1) - } - t0.Multiply(&t1, &t0) // x^1023 -> 1023 = 2^10 - 1 - t1.Square(&t0) // 2^11 - 2 - for i := 1; i < 10; i++ { // 2^20 - 2^10 - t1.Square(&t1) - } - t1.Multiply(&t1, &t0) // 2^20 - 1 - t2.Square(&t1) // 2^21 - 2 - for i := 1; i < 20; i++ { // 2^40 - 2^20 - t2.Square(&t2) - } - t1.Multiply(&t2, &t1) // 2^40 - 1 - t1.Square(&t1) // 2^41 - 2 - for i := 1; i < 10; i++ { // 2^50 - 2^10 - t1.Square(&t1) - } - t0.Multiply(&t1, &t0) // 2^50 - 1 - t1.Square(&t0) // 2^51 - 2 - for i := 1; i < 50; i++ { // 2^100 - 2^50 - t1.Square(&t1) - } - t1.Multiply(&t1, &t0) // 2^100 - 1 - t2.Square(&t1) // 2^101 - 2 - for i := 1; i < 100; i++ { // 2^200 - 2^100 - t2.Square(&t2) - } - t1.Multiply(&t2, &t1) // 2^200 - 1 - t1.Square(&t1) // 2^201 - 2 - for i := 1; i < 50; i++ { // 2^250 - 2^50 - t1.Square(&t1) - } - t0.Multiply(&t1, &t0) // 2^250 - 1 - t0.Square(&t0) // 2^251 - 2 - t0.Square(&t0) // 2^252 - 4 - return v.Multiply(&t0, x) // 2^252 - 3 -> x^(2^252-3) -} - -// sqrtM1 is 2^((p-1)/4), which squared is equal to -1 by Euler's Criterion. -var sqrtM1 = &Element{1718705420411056, 234908883556509, - 2233514472574048, 2117202627021982, 765476049583133} - -// SqrtRatio sets r to the non-negative square root of the ratio of u and v. -// -// If u/v is square, SqrtRatio returns r and 1. If u/v is not square, SqrtRatio -// sets r according to Section 4.3 of draft-irtf-cfrg-ristretto255-decaf448-00, -// and returns r and 0. -func (r *Element) SqrtRatio(u, v *Element) (rr *Element, wasSquare int) { - var a, b Element - - // r = (u * v3) * (u * v7)^((p-5)/8) - v2 := a.Square(v) - uv3 := b.Multiply(u, b.Multiply(v2, v)) - uv7 := a.Multiply(uv3, a.Square(v2)) - r.Multiply(uv3, r.Pow22523(uv7)) - - check := a.Multiply(v, a.Square(r)) // check = v * r^2 - - uNeg := b.Negate(u) - correctSignSqrt := check.Equal(u) - flippedSignSqrt := check.Equal(uNeg) - flippedSignSqrtI := check.Equal(uNeg.Multiply(uNeg, sqrtM1)) - - rPrime := b.Multiply(r, sqrtM1) // r_prime = SQRT_M1 * r - // r = CT_SELECT(r_prime IF flipped_sign_sqrt | flipped_sign_sqrt_i ELSE r) - r.Select(rPrime, r, flippedSignSqrt|flippedSignSqrtI) - - r.Absolute(r) // Choose the nonnegative square root. - return r, correctSignSqrt | flippedSignSqrt -} diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go deleted file mode 100644 index 70c541692c3a..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT. - -//go:build amd64 && gc && !purego - -package field - -// feMul sets out = a * b. It works like feMulGeneric. -// -//go:noescape -func feMul(out *Element, a *Element, b *Element) - -// feSquare sets out = a * a. It works like feSquareGeneric. -// -//go:noescape -func feSquare(out *Element, a *Element) diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s deleted file mode 100644 index 60817acc4131..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s +++ /dev/null @@ -1,378 +0,0 @@ -// Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT. - -//go:build amd64 && gc && !purego - -#include "textflag.h" - -// func feMul(out *Element, a *Element, b *Element) -TEXT ·feMul(SB), NOSPLIT, $0-24 - MOVQ a+8(FP), CX - MOVQ b+16(FP), BX - - // r0 = a0×b0 - MOVQ (CX), AX - MULQ (BX) - MOVQ AX, DI - MOVQ DX, SI - - // r0 += 19×a1×b4 - MOVQ 8(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 32(BX) - ADDQ AX, DI - ADCQ DX, SI - - // r0 += 19×a2×b3 - MOVQ 16(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 24(BX) - ADDQ AX, DI - ADCQ DX, SI - - // r0 += 19×a3×b2 - MOVQ 24(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 16(BX) - ADDQ AX, DI - ADCQ DX, SI - - // r0 += 19×a4×b1 - MOVQ 32(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 8(BX) - ADDQ AX, DI - ADCQ DX, SI - - // r1 = a0×b1 - MOVQ (CX), AX - MULQ 8(BX) - MOVQ AX, R9 - MOVQ DX, R8 - - // r1 += a1×b0 - MOVQ 8(CX), AX - MULQ (BX) - ADDQ AX, R9 - ADCQ DX, R8 - - // r1 += 19×a2×b4 - MOVQ 16(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 32(BX) - ADDQ AX, R9 - ADCQ DX, R8 - - // r1 += 19×a3×b3 - MOVQ 24(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 24(BX) - ADDQ AX, R9 - ADCQ DX, R8 - - // r1 += 19×a4×b2 - MOVQ 32(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 16(BX) - ADDQ AX, R9 - ADCQ DX, R8 - - // r2 = a0×b2 - MOVQ (CX), AX - MULQ 16(BX) - MOVQ AX, R11 - MOVQ DX, R10 - - // r2 += a1×b1 - MOVQ 8(CX), AX - MULQ 8(BX) - ADDQ AX, R11 - ADCQ DX, R10 - - // r2 += a2×b0 - MOVQ 16(CX), AX - MULQ (BX) - ADDQ AX, R11 - ADCQ DX, R10 - - // r2 += 19×a3×b4 - MOVQ 24(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 32(BX) - ADDQ AX, R11 - ADCQ DX, R10 - - // r2 += 19×a4×b3 - MOVQ 32(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 24(BX) - ADDQ AX, R11 - ADCQ DX, R10 - - // r3 = a0×b3 - MOVQ (CX), AX - MULQ 24(BX) - MOVQ AX, R13 - MOVQ DX, R12 - - // r3 += a1×b2 - MOVQ 8(CX), AX - MULQ 16(BX) - ADDQ AX, R13 - ADCQ DX, R12 - - // r3 += a2×b1 - MOVQ 16(CX), AX - MULQ 8(BX) - ADDQ AX, R13 - ADCQ DX, R12 - - // r3 += a3×b0 - MOVQ 24(CX), AX - MULQ (BX) - ADDQ AX, R13 - ADCQ DX, R12 - - // r3 += 19×a4×b4 - MOVQ 32(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 32(BX) - ADDQ AX, R13 - ADCQ DX, R12 - - // r4 = a0×b4 - MOVQ (CX), AX - MULQ 32(BX) - MOVQ AX, R15 - MOVQ DX, R14 - - // r4 += a1×b3 - MOVQ 8(CX), AX - MULQ 24(BX) - ADDQ AX, R15 - ADCQ DX, R14 - - // r4 += a2×b2 - MOVQ 16(CX), AX - MULQ 16(BX) - ADDQ AX, R15 - ADCQ DX, R14 - - // r4 += a3×b1 - MOVQ 24(CX), AX - MULQ 8(BX) - ADDQ AX, R15 - ADCQ DX, R14 - - // r4 += a4×b0 - MOVQ 32(CX), AX - MULQ (BX) - ADDQ AX, R15 - ADCQ DX, R14 - - // First reduction chain - MOVQ $0x0007ffffffffffff, AX - SHLQ $0x0d, DI, SI - SHLQ $0x0d, R9, R8 - SHLQ $0x0d, R11, R10 - SHLQ $0x0d, R13, R12 - SHLQ $0x0d, R15, R14 - ANDQ AX, DI - IMUL3Q $0x13, R14, R14 - ADDQ R14, DI - ANDQ AX, R9 - ADDQ SI, R9 - ANDQ AX, R11 - ADDQ R8, R11 - ANDQ AX, R13 - ADDQ R10, R13 - ANDQ AX, R15 - ADDQ R12, R15 - - // Second reduction chain (carryPropagate) - MOVQ DI, SI - SHRQ $0x33, SI - MOVQ R9, R8 - SHRQ $0x33, R8 - MOVQ R11, R10 - SHRQ $0x33, R10 - MOVQ R13, R12 - SHRQ $0x33, R12 - MOVQ R15, R14 - SHRQ $0x33, R14 - ANDQ AX, DI - IMUL3Q $0x13, R14, R14 - ADDQ R14, DI - ANDQ AX, R9 - ADDQ SI, R9 - ANDQ AX, R11 - ADDQ R8, R11 - ANDQ AX, R13 - ADDQ R10, R13 - ANDQ AX, R15 - ADDQ R12, R15 - - // Store output - MOVQ out+0(FP), AX - MOVQ DI, (AX) - MOVQ R9, 8(AX) - MOVQ R11, 16(AX) - MOVQ R13, 24(AX) - MOVQ R15, 32(AX) - RET - -// func feSquare(out *Element, a *Element) -TEXT ·feSquare(SB), NOSPLIT, $0-16 - MOVQ a+8(FP), CX - - // r0 = l0×l0 - MOVQ (CX), AX - MULQ (CX) - MOVQ AX, SI - MOVQ DX, BX - - // r0 += 38×l1×l4 - MOVQ 8(CX), AX - IMUL3Q $0x26, AX, AX - MULQ 32(CX) - ADDQ AX, SI - ADCQ DX, BX - - // r0 += 38×l2×l3 - MOVQ 16(CX), AX - IMUL3Q $0x26, AX, AX - MULQ 24(CX) - ADDQ AX, SI - ADCQ DX, BX - - // r1 = 2×l0×l1 - MOVQ (CX), AX - SHLQ $0x01, AX - MULQ 8(CX) - MOVQ AX, R8 - MOVQ DX, DI - - // r1 += 38×l2×l4 - MOVQ 16(CX), AX - IMUL3Q $0x26, AX, AX - MULQ 32(CX) - ADDQ AX, R8 - ADCQ DX, DI - - // r1 += 19×l3×l3 - MOVQ 24(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 24(CX) - ADDQ AX, R8 - ADCQ DX, DI - - // r2 = 2×l0×l2 - MOVQ (CX), AX - SHLQ $0x01, AX - MULQ 16(CX) - MOVQ AX, R10 - MOVQ DX, R9 - - // r2 += l1×l1 - MOVQ 8(CX), AX - MULQ 8(CX) - ADDQ AX, R10 - ADCQ DX, R9 - - // r2 += 38×l3×l4 - MOVQ 24(CX), AX - IMUL3Q $0x26, AX, AX - MULQ 32(CX) - ADDQ AX, R10 - ADCQ DX, R9 - - // r3 = 2×l0×l3 - MOVQ (CX), AX - SHLQ $0x01, AX - MULQ 24(CX) - MOVQ AX, R12 - MOVQ DX, R11 - - // r3 += 2×l1×l2 - MOVQ 8(CX), AX - IMUL3Q $0x02, AX, AX - MULQ 16(CX) - ADDQ AX, R12 - ADCQ DX, R11 - - // r3 += 19×l4×l4 - MOVQ 32(CX), AX - IMUL3Q $0x13, AX, AX - MULQ 32(CX) - ADDQ AX, R12 - ADCQ DX, R11 - - // r4 = 2×l0×l4 - MOVQ (CX), AX - SHLQ $0x01, AX - MULQ 32(CX) - MOVQ AX, R14 - MOVQ DX, R13 - - // r4 += 2×l1×l3 - MOVQ 8(CX), AX - IMUL3Q $0x02, AX, AX - MULQ 24(CX) - ADDQ AX, R14 - ADCQ DX, R13 - - // r4 += l2×l2 - MOVQ 16(CX), AX - MULQ 16(CX) - ADDQ AX, R14 - ADCQ DX, R13 - - // First reduction chain - MOVQ $0x0007ffffffffffff, AX - SHLQ $0x0d, SI, BX - SHLQ $0x0d, R8, DI - SHLQ $0x0d, R10, R9 - SHLQ $0x0d, R12, R11 - SHLQ $0x0d, R14, R13 - ANDQ AX, SI - IMUL3Q $0x13, R13, R13 - ADDQ R13, SI - ANDQ AX, R8 - ADDQ BX, R8 - ANDQ AX, R10 - ADDQ DI, R10 - ANDQ AX, R12 - ADDQ R9, R12 - ANDQ AX, R14 - ADDQ R11, R14 - - // Second reduction chain (carryPropagate) - MOVQ SI, BX - SHRQ $0x33, BX - MOVQ R8, DI - SHRQ $0x33, DI - MOVQ R10, R9 - SHRQ $0x33, R9 - MOVQ R12, R11 - SHRQ $0x33, R11 - MOVQ R14, R13 - SHRQ $0x33, R13 - ANDQ AX, SI - IMUL3Q $0x13, R13, R13 - ADDQ R13, SI - ANDQ AX, R8 - ADDQ BX, R8 - ANDQ AX, R10 - ADDQ DI, R10 - ANDQ AX, R12 - ADDQ R9, R12 - ANDQ AX, R14 - ADDQ R11, R14 - - // Store output - MOVQ out+0(FP), AX - MOVQ SI, (AX) - MOVQ R8, 8(AX) - MOVQ R10, 16(AX) - MOVQ R12, 24(AX) - MOVQ R14, 32(AX) - RET diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go deleted file mode 100644 index 9da280d1d887..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) 2019 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 !amd64 || !gc || purego - -package field - -func feMul(v, x, y *Element) { feMulGeneric(v, x, y) } - -func feSquare(v, x *Element) { feSquareGeneric(v, x) } diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go deleted file mode 100644 index 075fe9b92574..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) 2020 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 arm64 && gc && !purego - -package field - -//go:noescape -func carryPropagate(v *Element) - -func (v *Element) carryPropagate() *Element { - carryPropagate(v) - return v -} diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s deleted file mode 100644 index 3126a434191c..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2020 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 arm64 && gc && !purego - -#include "textflag.h" - -// carryPropagate works exactly like carryPropagateGeneric and uses the -// same AND, ADD, and LSR+MADD instructions emitted by the compiler, but -// avoids loading R0-R4 twice and uses LDP and STP. -// -// See https://golang.org/issues/43145 for the main compiler issue. -// -// func carryPropagate(v *Element) -TEXT ·carryPropagate(SB),NOFRAME|NOSPLIT,$0-8 - MOVD v+0(FP), R20 - - LDP 0(R20), (R0, R1) - LDP 16(R20), (R2, R3) - MOVD 32(R20), R4 - - AND $0x7ffffffffffff, R0, R10 - AND $0x7ffffffffffff, R1, R11 - AND $0x7ffffffffffff, R2, R12 - AND $0x7ffffffffffff, R3, R13 - AND $0x7ffffffffffff, R4, R14 - - ADD R0>>51, R11, R11 - ADD R1>>51, R12, R12 - ADD R2>>51, R13, R13 - ADD R3>>51, R14, R14 - // R4>>51 * 19 + R10 -> R10 - LSR $51, R4, R21 - MOVD $19, R22 - MADD R22, R10, R21, R10 - - STP (R10, R11), 0(R20) - STP (R12, R13), 16(R20) - MOVD R14, 32(R20) - - RET diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go deleted file mode 100644 index fc029ac12dae..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) 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 !arm64 || !gc || purego - -package field - -func (v *Element) carryPropagate() *Element { - return v.carryPropagateGeneric() -} diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_generic.go b/vendor/golang.org/x/crypto/curve25519/internal/field/fe_generic.go deleted file mode 100644 index 2671217da597..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/fe_generic.go +++ /dev/null @@ -1,264 +0,0 @@ -// Copyright (c) 2017 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. - -package field - -import "math/bits" - -// uint128 holds a 128-bit number as two 64-bit limbs, for use with the -// bits.Mul64 and bits.Add64 intrinsics. -type uint128 struct { - lo, hi uint64 -} - -// mul64 returns a * b. -func mul64(a, b uint64) uint128 { - hi, lo := bits.Mul64(a, b) - return uint128{lo, hi} -} - -// addMul64 returns v + a * b. -func addMul64(v uint128, a, b uint64) uint128 { - hi, lo := bits.Mul64(a, b) - lo, c := bits.Add64(lo, v.lo, 0) - hi, _ = bits.Add64(hi, v.hi, c) - return uint128{lo, hi} -} - -// shiftRightBy51 returns a >> 51. a is assumed to be at most 115 bits. -func shiftRightBy51(a uint128) uint64 { - return (a.hi << (64 - 51)) | (a.lo >> 51) -} - -func feMulGeneric(v, a, b *Element) { - a0 := a.l0 - a1 := a.l1 - a2 := a.l2 - a3 := a.l3 - a4 := a.l4 - - b0 := b.l0 - b1 := b.l1 - b2 := b.l2 - b3 := b.l3 - b4 := b.l4 - - // Limb multiplication works like pen-and-paper columnar multiplication, but - // with 51-bit limbs instead of digits. - // - // a4 a3 a2 a1 a0 x - // b4 b3 b2 b1 b0 = - // ------------------------ - // a4b0 a3b0 a2b0 a1b0 a0b0 + - // a4b1 a3b1 a2b1 a1b1 a0b1 + - // a4b2 a3b2 a2b2 a1b2 a0b2 + - // a4b3 a3b3 a2b3 a1b3 a0b3 + - // a4b4 a3b4 a2b4 a1b4 a0b4 = - // ---------------------------------------------- - // r8 r7 r6 r5 r4 r3 r2 r1 r0 - // - // We can then use the reduction identity (a * 2²⁵⁵ + b = a * 19 + b) to - // reduce the limbs that would overflow 255 bits. r5 * 2²⁵⁵ becomes 19 * r5, - // r6 * 2³⁰⁶ becomes 19 * r6 * 2⁵¹, etc. - // - // Reduction can be carried out simultaneously to multiplication. For - // example, we do not compute r5: whenever the result of a multiplication - // belongs to r5, like a1b4, we multiply it by 19 and add the result to r0. - // - // a4b0 a3b0 a2b0 a1b0 a0b0 + - // a3b1 a2b1 a1b1 a0b1 19×a4b1 + - // a2b2 a1b2 a0b2 19×a4b2 19×a3b2 + - // a1b3 a0b3 19×a4b3 19×a3b3 19×a2b3 + - // a0b4 19×a4b4 19×a3b4 19×a2b4 19×a1b4 = - // -------------------------------------- - // r4 r3 r2 r1 r0 - // - // Finally we add up the columns into wide, overlapping limbs. - - a1_19 := a1 * 19 - a2_19 := a2 * 19 - a3_19 := a3 * 19 - a4_19 := a4 * 19 - - // r0 = a0×b0 + 19×(a1×b4 + a2×b3 + a3×b2 + a4×b1) - r0 := mul64(a0, b0) - r0 = addMul64(r0, a1_19, b4) - r0 = addMul64(r0, a2_19, b3) - r0 = addMul64(r0, a3_19, b2) - r0 = addMul64(r0, a4_19, b1) - - // r1 = a0×b1 + a1×b0 + 19×(a2×b4 + a3×b3 + a4×b2) - r1 := mul64(a0, b1) - r1 = addMul64(r1, a1, b0) - r1 = addMul64(r1, a2_19, b4) - r1 = addMul64(r1, a3_19, b3) - r1 = addMul64(r1, a4_19, b2) - - // r2 = a0×b2 + a1×b1 + a2×b0 + 19×(a3×b4 + a4×b3) - r2 := mul64(a0, b2) - r2 = addMul64(r2, a1, b1) - r2 = addMul64(r2, a2, b0) - r2 = addMul64(r2, a3_19, b4) - r2 = addMul64(r2, a4_19, b3) - - // r3 = a0×b3 + a1×b2 + a2×b1 + a3×b0 + 19×a4×b4 - r3 := mul64(a0, b3) - r3 = addMul64(r3, a1, b2) - r3 = addMul64(r3, a2, b1) - r3 = addMul64(r3, a3, b0) - r3 = addMul64(r3, a4_19, b4) - - // r4 = a0×b4 + a1×b3 + a2×b2 + a3×b1 + a4×b0 - r4 := mul64(a0, b4) - r4 = addMul64(r4, a1, b3) - r4 = addMul64(r4, a2, b2) - r4 = addMul64(r4, a3, b1) - r4 = addMul64(r4, a4, b0) - - // After the multiplication, we need to reduce (carry) the five coefficients - // to obtain a result with limbs that are at most slightly larger than 2⁵¹, - // to respect the Element invariant. - // - // Overall, the reduction works the same as carryPropagate, except with - // wider inputs: we take the carry for each coefficient by shifting it right - // by 51, and add it to the limb above it. The top carry is multiplied by 19 - // according to the reduction identity and added to the lowest limb. - // - // The largest coefficient (r0) will be at most 111 bits, which guarantees - // that all carries are at most 111 - 51 = 60 bits, which fits in a uint64. - // - // r0 = a0×b0 + 19×(a1×b4 + a2×b3 + a3×b2 + a4×b1) - // r0 < 2⁵²×2⁵² + 19×(2⁵²×2⁵² + 2⁵²×2⁵² + 2⁵²×2⁵² + 2⁵²×2⁵²) - // r0 < (1 + 19 × 4) × 2⁵² × 2⁵² - // r0 < 2⁷ × 2⁵² × 2⁵² - // r0 < 2¹¹¹ - // - // Moreover, the top coefficient (r4) is at most 107 bits, so c4 is at most - // 56 bits, and c4 * 19 is at most 61 bits, which again fits in a uint64 and - // allows us to easily apply the reduction identity. - // - // r4 = a0×b4 + a1×b3 + a2×b2 + a3×b1 + a4×b0 - // r4 < 5 × 2⁵² × 2⁵² - // r4 < 2¹⁰⁷ - // - - c0 := shiftRightBy51(r0) - c1 := shiftRightBy51(r1) - c2 := shiftRightBy51(r2) - c3 := shiftRightBy51(r3) - c4 := shiftRightBy51(r4) - - rr0 := r0.lo&maskLow51Bits + c4*19 - rr1 := r1.lo&maskLow51Bits + c0 - rr2 := r2.lo&maskLow51Bits + c1 - rr3 := r3.lo&maskLow51Bits + c2 - rr4 := r4.lo&maskLow51Bits + c3 - - // Now all coefficients fit into 64-bit registers but are still too large to - // be passed around as a Element. We therefore do one last carry chain, - // where the carries will be small enough to fit in the wiggle room above 2⁵¹. - *v = Element{rr0, rr1, rr2, rr3, rr4} - v.carryPropagate() -} - -func feSquareGeneric(v, a *Element) { - l0 := a.l0 - l1 := a.l1 - l2 := a.l2 - l3 := a.l3 - l4 := a.l4 - - // Squaring works precisely like multiplication above, but thanks to its - // symmetry we get to group a few terms together. - // - // l4 l3 l2 l1 l0 x - // l4 l3 l2 l1 l0 = - // ------------------------ - // l4l0 l3l0 l2l0 l1l0 l0l0 + - // l4l1 l3l1 l2l1 l1l1 l0l1 + - // l4l2 l3l2 l2l2 l1l2 l0l2 + - // l4l3 l3l3 l2l3 l1l3 l0l3 + - // l4l4 l3l4 l2l4 l1l4 l0l4 = - // ---------------------------------------------- - // r8 r7 r6 r5 r4 r3 r2 r1 r0 - // - // l4l0 l3l0 l2l0 l1l0 l0l0 + - // l3l1 l2l1 l1l1 l0l1 19×l4l1 + - // l2l2 l1l2 l0l2 19×l4l2 19×l3l2 + - // l1l3 l0l3 19×l4l3 19×l3l3 19×l2l3 + - // l0l4 19×l4l4 19×l3l4 19×l2l4 19×l1l4 = - // -------------------------------------- - // r4 r3 r2 r1 r0 - // - // With precomputed 2×, 19×, and 2×19× terms, we can compute each limb with - // only three Mul64 and four Add64, instead of five and eight. - - l0_2 := l0 * 2 - l1_2 := l1 * 2 - - l1_38 := l1 * 38 - l2_38 := l2 * 38 - l3_38 := l3 * 38 - - l3_19 := l3 * 19 - l4_19 := l4 * 19 - - // r0 = l0×l0 + 19×(l1×l4 + l2×l3 + l3×l2 + l4×l1) = l0×l0 + 19×2×(l1×l4 + l2×l3) - r0 := mul64(l0, l0) - r0 = addMul64(r0, l1_38, l4) - r0 = addMul64(r0, l2_38, l3) - - // r1 = l0×l1 + l1×l0 + 19×(l2×l4 + l3×l3 + l4×l2) = 2×l0×l1 + 19×2×l2×l4 + 19×l3×l3 - r1 := mul64(l0_2, l1) - r1 = addMul64(r1, l2_38, l4) - r1 = addMul64(r1, l3_19, l3) - - // r2 = l0×l2 + l1×l1 + l2×l0 + 19×(l3×l4 + l4×l3) = 2×l0×l2 + l1×l1 + 19×2×l3×l4 - r2 := mul64(l0_2, l2) - r2 = addMul64(r2, l1, l1) - r2 = addMul64(r2, l3_38, l4) - - // r3 = l0×l3 + l1×l2 + l2×l1 + l3×l0 + 19×l4×l4 = 2×l0×l3 + 2×l1×l2 + 19×l4×l4 - r3 := mul64(l0_2, l3) - r3 = addMul64(r3, l1_2, l2) - r3 = addMul64(r3, l4_19, l4) - - // r4 = l0×l4 + l1×l3 + l2×l2 + l3×l1 + l4×l0 = 2×l0×l4 + 2×l1×l3 + l2×l2 - r4 := mul64(l0_2, l4) - r4 = addMul64(r4, l1_2, l3) - r4 = addMul64(r4, l2, l2) - - c0 := shiftRightBy51(r0) - c1 := shiftRightBy51(r1) - c2 := shiftRightBy51(r2) - c3 := shiftRightBy51(r3) - c4 := shiftRightBy51(r4) - - rr0 := r0.lo&maskLow51Bits + c4*19 - rr1 := r1.lo&maskLow51Bits + c0 - rr2 := r2.lo&maskLow51Bits + c1 - rr3 := r3.lo&maskLow51Bits + c2 - rr4 := r4.lo&maskLow51Bits + c3 - - *v = Element{rr0, rr1, rr2, rr3, rr4} - v.carryPropagate() -} - -// carryPropagateGeneric brings the limbs below 52 bits by applying the reduction -// identity (a * 2²⁵⁵ + b = a * 19 + b) to the l4 carry. TODO inline -func (v *Element) carryPropagateGeneric() *Element { - c0 := v.l0 >> 51 - c1 := v.l1 >> 51 - c2 := v.l2 >> 51 - c3 := v.l3 >> 51 - c4 := v.l4 >> 51 - - v.l0 = v.l0&maskLow51Bits + c4*19 - v.l1 = v.l1&maskLow51Bits + c0 - v.l2 = v.l2&maskLow51Bits + c1 - v.l3 = v.l3&maskLow51Bits + c2 - v.l4 = v.l4&maskLow51Bits + c3 - - return v -} diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/sync.checkpoint b/vendor/golang.org/x/crypto/curve25519/internal/field/sync.checkpoint deleted file mode 100644 index e3685f95cab2..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/sync.checkpoint +++ /dev/null @@ -1 +0,0 @@ -b0c49ae9f59d233526f8934262c5bbbe14d4358d diff --git a/vendor/golang.org/x/crypto/curve25519/internal/field/sync.sh b/vendor/golang.org/x/crypto/curve25519/internal/field/sync.sh deleted file mode 100644 index 1ba22a8b4c9a..000000000000 --- a/vendor/golang.org/x/crypto/curve25519/internal/field/sync.sh +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/bash -set -euo pipefail - -cd "$(git rev-parse --show-toplevel)" - -STD_PATH=src/crypto/ed25519/internal/edwards25519/field -LOCAL_PATH=curve25519/internal/field -LAST_SYNC_REF=$(cat $LOCAL_PATH/sync.checkpoint) - -git fetch https://go.googlesource.com/go master - -if git diff --quiet $LAST_SYNC_REF:$STD_PATH FETCH_HEAD:$STD_PATH; then - echo "No changes." -else - NEW_REF=$(git rev-parse FETCH_HEAD | tee $LOCAL_PATH/sync.checkpoint) - echo "Applying changes from $LAST_SYNC_REF to $NEW_REF..." - git diff $LAST_SYNC_REF:$STD_PATH FETCH_HEAD:$STD_PATH | \ - git apply -3 --directory=$LOCAL_PATH -fi diff --git a/vendor/golang.org/x/crypto/hkdf/hkdf.go b/vendor/golang.org/x/crypto/hkdf/hkdf.go index f4ded5fee2fb..3bee66294ecf 100644 --- a/vendor/golang.org/x/crypto/hkdf/hkdf.go +++ b/vendor/golang.org/x/crypto/hkdf/hkdf.go @@ -8,7 +8,7 @@ // HKDF is a cryptographic key derivation function (KDF) with the goal of // expanding limited input keying material into one or more cryptographically // strong secret keys. -package hkdf // import "golang.org/x/crypto/hkdf" +package hkdf import ( "crypto/hmac" diff --git a/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go b/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go index 333da285b32a..bd896bdc76d1 100644 --- a/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go +++ b/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.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 (!amd64 && !ppc64le && !s390x) || !gc || purego +//go:build (!amd64 && !ppc64le && !ppc64 && !s390x) || !gc || purego package poly1305 diff --git a/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s b/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s index e0d3c6475669..133757384b78 100644 --- a/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s +++ b/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s @@ -1,108 +1,93 @@ -// Copyright 2012 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. +// Code generated by command: go run sum_amd64_asm.go -out ../sum_amd64.s -pkg poly1305. DO NOT EDIT. //go:build gc && !purego -#include "textflag.h" - -#define POLY1305_ADD(msg, h0, h1, h2) \ - ADDQ 0(msg), h0; \ - ADCQ 8(msg), h1; \ - ADCQ $1, h2; \ - LEAQ 16(msg), msg - -#define POLY1305_MUL(h0, h1, h2, r0, r1, t0, t1, t2, t3) \ - MOVQ r0, AX; \ - MULQ h0; \ - MOVQ AX, t0; \ - MOVQ DX, t1; \ - MOVQ r0, AX; \ - MULQ h1; \ - ADDQ AX, t1; \ - ADCQ $0, DX; \ - MOVQ r0, t2; \ - IMULQ h2, t2; \ - ADDQ DX, t2; \ - \ - MOVQ r1, AX; \ - MULQ h0; \ - ADDQ AX, t1; \ - ADCQ $0, DX; \ - MOVQ DX, h0; \ - MOVQ r1, t3; \ - IMULQ h2, t3; \ - MOVQ r1, AX; \ - MULQ h1; \ - ADDQ AX, t2; \ - ADCQ DX, t3; \ - ADDQ h0, t2; \ - ADCQ $0, t3; \ - \ - MOVQ t0, h0; \ - MOVQ t1, h1; \ - MOVQ t2, h2; \ - ANDQ $3, h2; \ - MOVQ t2, t0; \ - ANDQ $0xFFFFFFFFFFFFFFFC, t0; \ - ADDQ t0, h0; \ - ADCQ t3, h1; \ - ADCQ $0, h2; \ - SHRQ $2, t3, t2; \ - SHRQ $2, t3; \ - ADDQ t2, h0; \ - ADCQ t3, h1; \ - ADCQ $0, h2 - -// func update(state *[7]uint64, msg []byte) +// func update(state *macState, msg []byte) TEXT ·update(SB), $0-32 MOVQ state+0(FP), DI MOVQ msg_base+8(FP), SI MOVQ msg_len+16(FP), R15 - - MOVQ 0(DI), R8 // h0 - MOVQ 8(DI), R9 // h1 - MOVQ 16(DI), R10 // h2 - MOVQ 24(DI), R11 // r0 - MOVQ 32(DI), R12 // r1 - - CMPQ R15, $16 + MOVQ (DI), R8 + MOVQ 8(DI), R9 + MOVQ 16(DI), R10 + MOVQ 24(DI), R11 + MOVQ 32(DI), R12 + CMPQ R15, $0x10 JB bytes_between_0_and_15 loop: - POLY1305_ADD(SI, R8, R9, R10) + ADDQ (SI), R8 + ADCQ 8(SI), R9 + ADCQ $0x01, R10 + LEAQ 16(SI), SI multiply: - POLY1305_MUL(R8, R9, R10, R11, R12, BX, CX, R13, R14) - SUBQ $16, R15 - CMPQ R15, $16 - JAE loop + MOVQ R11, AX + MULQ R8 + MOVQ AX, BX + MOVQ DX, CX + MOVQ R11, AX + MULQ R9 + ADDQ AX, CX + ADCQ $0x00, DX + MOVQ R11, R13 + IMULQ R10, R13 + ADDQ DX, R13 + MOVQ R12, AX + MULQ R8 + ADDQ AX, CX + ADCQ $0x00, DX + MOVQ DX, R8 + MOVQ R12, R14 + IMULQ R10, R14 + MOVQ R12, AX + MULQ R9 + ADDQ AX, R13 + ADCQ DX, R14 + ADDQ R8, R13 + ADCQ $0x00, R14 + MOVQ BX, R8 + MOVQ CX, R9 + MOVQ R13, R10 + ANDQ $0x03, R10 + MOVQ R13, BX + ANDQ $-4, BX + ADDQ BX, R8 + ADCQ R14, R9 + ADCQ $0x00, R10 + SHRQ $0x02, R14, R13 + SHRQ $0x02, R14 + ADDQ R13, R8 + ADCQ R14, R9 + ADCQ $0x00, R10 + SUBQ $0x10, R15 + CMPQ R15, $0x10 + JAE loop bytes_between_0_and_15: TESTQ R15, R15 JZ done - MOVQ $1, BX + MOVQ $0x00000001, BX XORQ CX, CX XORQ R13, R13 ADDQ R15, SI flush_buffer: - SHLQ $8, BX, CX - SHLQ $8, BX + SHLQ $0x08, BX, CX + SHLQ $0x08, BX MOVB -1(SI), R13 XORQ R13, BX DECQ SI DECQ R15 JNZ flush_buffer - ADDQ BX, R8 ADCQ CX, R9 - ADCQ $0, R10 - MOVQ $16, R15 + ADCQ $0x00, R10 + MOVQ $0x00000010, R15 JMP multiply done: - MOVQ R8, 0(DI) + MOVQ R8, (DI) MOVQ R9, 8(DI) MOVQ R10, 16(DI) RET diff --git a/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go deleted file mode 100644 index 4aec4874b507..000000000000 --- a/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2019 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 gc && !purego - -package poly1305 - -//go:noescape -func update(state *macState, msg []byte) - -// mac is a wrapper for macGeneric that redirects calls that would have gone to -// updateGeneric to update. -// -// Its Write and Sum methods are otherwise identical to the macGeneric ones, but -// using function pointers would carry a major performance cost. -type mac struct{ macGeneric } - -func (h *mac) Write(p []byte) (int, error) { - nn := len(p) - if h.offset > 0 { - n := copy(h.buffer[h.offset:], p) - if h.offset+n < TagSize { - h.offset += n - return nn, nil - } - p = p[n:] - h.offset = 0 - update(&h.macState, h.buffer[:]) - } - if n := len(p) - (len(p) % TagSize); n > 0 { - update(&h.macState, p[:n]) - p = p[n:] - } - if len(p) > 0 { - h.offset += copy(h.buffer[h.offset:], p) - } - return nn, nil -} - -func (h *mac) Sum(out *[16]byte) { - state := h.macState - if h.offset > 0 { - update(&state, h.buffer[:h.offset]) - } - finalize(out, &state.h, &state.s) -} diff --git a/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s deleted file mode 100644 index b3c1699bff51..000000000000 --- a/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright 2019 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 gc && !purego - -#include "textflag.h" - -// This was ported from the amd64 implementation. - -#define POLY1305_ADD(msg, h0, h1, h2, t0, t1, t2) \ - MOVD (msg), t0; \ - MOVD 8(msg), t1; \ - MOVD $1, t2; \ - ADDC t0, h0, h0; \ - ADDE t1, h1, h1; \ - ADDE t2, h2; \ - ADD $16, msg - -#define POLY1305_MUL(h0, h1, h2, r0, r1, t0, t1, t2, t3, t4, t5) \ - MULLD r0, h0, t0; \ - MULHDU r0, h0, t1; \ - MULLD r0, h1, t4; \ - MULHDU r0, h1, t5; \ - ADDC t4, t1, t1; \ - MULLD r0, h2, t2; \ - MULHDU r1, h0, t4; \ - MULLD r1, h0, h0; \ - ADDE t5, t2, t2; \ - ADDC h0, t1, t1; \ - MULLD h2, r1, t3; \ - ADDZE t4, h0; \ - MULHDU r1, h1, t5; \ - MULLD r1, h1, t4; \ - ADDC t4, t2, t2; \ - ADDE t5, t3, t3; \ - ADDC h0, t2, t2; \ - MOVD $-4, t4; \ - ADDZE t3; \ - RLDICL $0, t2, $62, h2; \ - AND t2, t4, h0; \ - ADDC t0, h0, h0; \ - ADDE t3, t1, h1; \ - SLD $62, t3, t4; \ - SRD $2, t2; \ - ADDZE h2; \ - OR t4, t2, t2; \ - SRD $2, t3; \ - ADDC t2, h0, h0; \ - ADDE t3, h1, h1; \ - ADDZE h2 - -DATA ·poly1305Mask<>+0x00(SB)/8, $0x0FFFFFFC0FFFFFFF -DATA ·poly1305Mask<>+0x08(SB)/8, $0x0FFFFFFC0FFFFFFC -GLOBL ·poly1305Mask<>(SB), RODATA, $16 - -// func update(state *[7]uint64, msg []byte) -TEXT ·update(SB), $0-32 - MOVD state+0(FP), R3 - MOVD msg_base+8(FP), R4 - MOVD msg_len+16(FP), R5 - - MOVD 0(R3), R8 // h0 - MOVD 8(R3), R9 // h1 - MOVD 16(R3), R10 // h2 - MOVD 24(R3), R11 // r0 - MOVD 32(R3), R12 // r1 - - CMP R5, $16 - BLT bytes_between_0_and_15 - -loop: - POLY1305_ADD(R4, R8, R9, R10, R20, R21, R22) - - PCALIGN $16 -multiply: - POLY1305_MUL(R8, R9, R10, R11, R12, R16, R17, R18, R14, R20, R21) - ADD $-16, R5 - CMP R5, $16 - BGE loop - -bytes_between_0_and_15: - CMP R5, $0 - BEQ done - MOVD $0, R16 // h0 - MOVD $0, R17 // h1 - -flush_buffer: - CMP R5, $8 - BLE just1 - - MOVD $8, R21 - SUB R21, R5, R21 - - // Greater than 8 -- load the rightmost remaining bytes in msg - // and put into R17 (h1) - MOVD (R4)(R21), R17 - MOVD $16, R22 - - // Find the offset to those bytes - SUB R5, R22, R22 - SLD $3, R22 - - // Shift to get only the bytes in msg - SRD R22, R17, R17 - - // Put 1 at high end - MOVD $1, R23 - SLD $3, R21 - SLD R21, R23, R23 - OR R23, R17, R17 - - // Remainder is 8 - MOVD $8, R5 - -just1: - CMP R5, $8 - BLT less8 - - // Exactly 8 - MOVD (R4), R16 - - CMP R17, $0 - - // Check if we've already set R17; if not - // set 1 to indicate end of msg. - BNE carry - MOVD $1, R17 - BR carry - -less8: - MOVD $0, R16 // h0 - MOVD $0, R22 // shift count - CMP R5, $4 - BLT less4 - MOVWZ (R4), R16 - ADD $4, R4 - ADD $-4, R5 - MOVD $32, R22 - -less4: - CMP R5, $2 - BLT less2 - MOVHZ (R4), R21 - SLD R22, R21, R21 - OR R16, R21, R16 - ADD $16, R22 - ADD $-2, R5 - ADD $2, R4 - -less2: - CMP R5, $0 - BEQ insert1 - MOVBZ (R4), R21 - SLD R22, R21, R21 - OR R16, R21, R16 - ADD $8, R22 - -insert1: - // Insert 1 at end of msg - MOVD $1, R21 - SLD R22, R21, R21 - OR R16, R21, R16 - -carry: - // Add new values to h0, h1, h2 - ADDC R16, R8 - ADDE R17, R9 - ADDZE R10, R10 - MOVD $16, R5 - ADD R5, R4 - BR multiply - -done: - // Save h0, h1, h2 in state - MOVD R8, 0(R3) - MOVD R9, 8(R3) - MOVD R10, 16(R3) - RET diff --git a/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.go b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.go new file mode 100644 index 000000000000..1a1679aaad9c --- /dev/null +++ b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.go @@ -0,0 +1,47 @@ +// Copyright 2019 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 gc && !purego && (ppc64 || ppc64le) + +package poly1305 + +//go:noescape +func update(state *macState, msg []byte) + +// mac is a wrapper for macGeneric that redirects calls that would have gone to +// updateGeneric to update. +// +// Its Write and Sum methods are otherwise identical to the macGeneric ones, but +// using function pointers would carry a major performance cost. +type mac struct{ macGeneric } + +func (h *mac) Write(p []byte) (int, error) { + nn := len(p) + if h.offset > 0 { + n := copy(h.buffer[h.offset:], p) + if h.offset+n < TagSize { + h.offset += n + return nn, nil + } + p = p[n:] + h.offset = 0 + update(&h.macState, h.buffer[:]) + } + if n := len(p) - (len(p) % TagSize); n > 0 { + update(&h.macState, p[:n]) + p = p[n:] + } + if len(p) > 0 { + h.offset += copy(h.buffer[h.offset:], p) + } + return nn, nil +} + +func (h *mac) Sum(out *[16]byte) { + state := h.macState + if h.offset > 0 { + update(&state, h.buffer[:h.offset]) + } + finalize(out, &state.h, &state.s) +} diff --git a/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.s b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.s new file mode 100644 index 000000000000..6899a1dabc0b --- /dev/null +++ b/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64x.s @@ -0,0 +1,187 @@ +// Copyright 2019 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 gc && !purego && (ppc64 || ppc64le) + +#include "textflag.h" + +// This was ported from the amd64 implementation. + +#ifdef GOARCH_ppc64le +#define LE_MOVD MOVD +#define LE_MOVWZ MOVWZ +#define LE_MOVHZ MOVHZ +#else +#define LE_MOVD MOVDBR +#define LE_MOVWZ MOVWBR +#define LE_MOVHZ MOVHBR +#endif + +#define POLY1305_ADD(msg, h0, h1, h2, t0, t1, t2) \ + LE_MOVD (msg)( R0), t0; \ + LE_MOVD (msg)(R24), t1; \ + MOVD $1, t2; \ + ADDC t0, h0, h0; \ + ADDE t1, h1, h1; \ + ADDE t2, h2; \ + ADD $16, msg + +#define POLY1305_MUL(h0, h1, h2, r0, r1, t0, t1, t2, t3, t4, t5) \ + MULLD r0, h0, t0; \ + MULHDU r0, h0, t1; \ + MULLD r0, h1, t4; \ + MULHDU r0, h1, t5; \ + ADDC t4, t1, t1; \ + MULLD r0, h2, t2; \ + MULHDU r1, h0, t4; \ + MULLD r1, h0, h0; \ + ADDE t5, t2, t2; \ + ADDC h0, t1, t1; \ + MULLD h2, r1, t3; \ + ADDZE t4, h0; \ + MULHDU r1, h1, t5; \ + MULLD r1, h1, t4; \ + ADDC t4, t2, t2; \ + ADDE t5, t3, t3; \ + ADDC h0, t2, t2; \ + MOVD $-4, t4; \ + ADDZE t3; \ + RLDICL $0, t2, $62, h2; \ + AND t2, t4, h0; \ + ADDC t0, h0, h0; \ + ADDE t3, t1, h1; \ + SLD $62, t3, t4; \ + SRD $2, t2; \ + ADDZE h2; \ + OR t4, t2, t2; \ + SRD $2, t3; \ + ADDC t2, h0, h0; \ + ADDE t3, h1, h1; \ + ADDZE h2 + +// func update(state *[7]uint64, msg []byte) +TEXT ·update(SB), $0-32 + MOVD state+0(FP), R3 + MOVD msg_base+8(FP), R4 + MOVD msg_len+16(FP), R5 + + MOVD 0(R3), R8 // h0 + MOVD 8(R3), R9 // h1 + MOVD 16(R3), R10 // h2 + MOVD 24(R3), R11 // r0 + MOVD 32(R3), R12 // r1 + + MOVD $8, R24 + + CMP R5, $16 + BLT bytes_between_0_and_15 + +loop: + POLY1305_ADD(R4, R8, R9, R10, R20, R21, R22) + + PCALIGN $16 +multiply: + POLY1305_MUL(R8, R9, R10, R11, R12, R16, R17, R18, R14, R20, R21) + ADD $-16, R5 + CMP R5, $16 + BGE loop + +bytes_between_0_and_15: + CMP R5, $0 + BEQ done + MOVD $0, R16 // h0 + MOVD $0, R17 // h1 + +flush_buffer: + CMP R5, $8 + BLE just1 + + MOVD $8, R21 + SUB R21, R5, R21 + + // Greater than 8 -- load the rightmost remaining bytes in msg + // and put into R17 (h1) + LE_MOVD (R4)(R21), R17 + MOVD $16, R22 + + // Find the offset to those bytes + SUB R5, R22, R22 + SLD $3, R22 + + // Shift to get only the bytes in msg + SRD R22, R17, R17 + + // Put 1 at high end + MOVD $1, R23 + SLD $3, R21 + SLD R21, R23, R23 + OR R23, R17, R17 + + // Remainder is 8 + MOVD $8, R5 + +just1: + CMP R5, $8 + BLT less8 + + // Exactly 8 + LE_MOVD (R4), R16 + + CMP R17, $0 + + // Check if we've already set R17; if not + // set 1 to indicate end of msg. + BNE carry + MOVD $1, R17 + BR carry + +less8: + MOVD $0, R16 // h0 + MOVD $0, R22 // shift count + CMP R5, $4 + BLT less4 + LE_MOVWZ (R4), R16 + ADD $4, R4 + ADD $-4, R5 + MOVD $32, R22 + +less4: + CMP R5, $2 + BLT less2 + LE_MOVHZ (R4), R21 + SLD R22, R21, R21 + OR R16, R21, R16 + ADD $16, R22 + ADD $-2, R5 + ADD $2, R4 + +less2: + CMP R5, $0 + BEQ insert1 + MOVBZ (R4), R21 + SLD R22, R21, R21 + OR R16, R21, R16 + ADD $8, R22 + +insert1: + // Insert 1 at end of msg + MOVD $1, R21 + SLD R22, R21, R21 + OR R16, R21, R16 + +carry: + // Add new values to h0, h1, h2 + ADDC R16, R8 + ADDE R17, R9 + ADDZE R10, R10 + MOVD $16, R5 + ADD R5, R4 + BR multiply + +done: + // Save h0, h1, h2 in state + MOVD R8, 0(R3) + MOVD R9, 8(R3) + MOVD R10, 16(R3) + RET diff --git a/vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go b/vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go index 904b57e01d7a..28cd99c7f3fc 100644 --- a/vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go +++ b/vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go @@ -16,7 +16,7 @@ Hash Functions SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 for HMAC. To choose, you can pass the `New` functions from the different SHA packages to pbkdf2.Key. */ -package pbkdf2 // import "golang.org/x/crypto/pbkdf2" +package pbkdf2 import ( "crypto/hmac" diff --git a/vendor/golang.org/x/crypto/sha3/doc.go b/vendor/golang.org/x/crypto/sha3/doc.go index decd8cf9bf74..bbf391fe6e59 100644 --- a/vendor/golang.org/x/crypto/sha3/doc.go +++ b/vendor/golang.org/x/crypto/sha3/doc.go @@ -5,6 +5,10 @@ // Package sha3 implements the SHA-3 fixed-output-length hash functions and // the SHAKE variable-output-length hash functions defined by FIPS-202. // +// All types in this package also implement [encoding.BinaryMarshaler], +// [encoding.BinaryAppender] and [encoding.BinaryUnmarshaler] to marshal and +// unmarshal the internal state of the hash. +// // Both types of hash function use the "sponge" construction and the Keccak // permutation. For a detailed specification see http://keccak.noekeon.org/ // @@ -59,4 +63,4 @@ // They produce output of the same length, with the same security strengths // against all attacks. This means, in particular, that SHA3-256 only has // 128-bit collision resistance, because its output length is 32 bytes. -package sha3 // import "golang.org/x/crypto/sha3" +package sha3 diff --git a/vendor/golang.org/x/crypto/sha3/hashes.go b/vendor/golang.org/x/crypto/sha3/hashes.go index 0d8043fd2a17..31fffbe04408 100644 --- a/vendor/golang.org/x/crypto/sha3/hashes.go +++ b/vendor/golang.org/x/crypto/sha3/hashes.go @@ -9,6 +9,7 @@ package sha3 // bytes. import ( + "crypto" "hash" ) @@ -16,53 +17,83 @@ import ( // Its generic security strength is 224 bits against preimage attacks, // and 112 bits against collision attacks. func New224() hash.Hash { - if h := new224Asm(); h != nil { - return h - } - return &state{rate: 144, outputLen: 28, dsbyte: 0x06} + return new224() } // New256 creates a new SHA3-256 hash. // Its generic security strength is 256 bits against preimage attacks, // and 128 bits against collision attacks. func New256() hash.Hash { - if h := new256Asm(); h != nil { - return h - } - return &state{rate: 136, outputLen: 32, dsbyte: 0x06} + return new256() } // New384 creates a new SHA3-384 hash. // Its generic security strength is 384 bits against preimage attacks, // and 192 bits against collision attacks. func New384() hash.Hash { - if h := new384Asm(); h != nil { - return h - } - return &state{rate: 104, outputLen: 48, dsbyte: 0x06} + return new384() } // New512 creates a new SHA3-512 hash. // Its generic security strength is 512 bits against preimage attacks, // and 256 bits against collision attacks. func New512() hash.Hash { - if h := new512Asm(); h != nil { - return h - } - return &state{rate: 72, outputLen: 64, dsbyte: 0x06} + return new512() +} + +func init() { + crypto.RegisterHash(crypto.SHA3_224, New224) + crypto.RegisterHash(crypto.SHA3_256, New256) + crypto.RegisterHash(crypto.SHA3_384, New384) + crypto.RegisterHash(crypto.SHA3_512, New512) +} + +const ( + dsbyteSHA3 = 0b00000110 + dsbyteKeccak = 0b00000001 + dsbyteShake = 0b00011111 + dsbyteCShake = 0b00000100 + + // rateK[c] is the rate in bytes for Keccak[c] where c is the capacity in + // bits. Given the sponge size is 1600 bits, the rate is 1600 - c bits. + rateK256 = (1600 - 256) / 8 + rateK448 = (1600 - 448) / 8 + rateK512 = (1600 - 512) / 8 + rateK768 = (1600 - 768) / 8 + rateK1024 = (1600 - 1024) / 8 +) + +func new224Generic() *state { + return &state{rate: rateK448, outputLen: 28, dsbyte: dsbyteSHA3} +} + +func new256Generic() *state { + return &state{rate: rateK512, outputLen: 32, dsbyte: dsbyteSHA3} +} + +func new384Generic() *state { + return &state{rate: rateK768, outputLen: 48, dsbyte: dsbyteSHA3} +} + +func new512Generic() *state { + return &state{rate: rateK1024, outputLen: 64, dsbyte: dsbyteSHA3} } // NewLegacyKeccak256 creates a new Keccak-256 hash. // // Only use this function if you require compatibility with an existing cryptosystem // that uses non-standard padding. All other users should use New256 instead. -func NewLegacyKeccak256() hash.Hash { return &state{rate: 136, outputLen: 32, dsbyte: 0x01} } +func NewLegacyKeccak256() hash.Hash { + return &state{rate: rateK512, outputLen: 32, dsbyte: dsbyteKeccak} +} // NewLegacyKeccak512 creates a new Keccak-512 hash. // // Only use this function if you require compatibility with an existing cryptosystem // that uses non-standard padding. All other users should use New512 instead. -func NewLegacyKeccak512() hash.Hash { return &state{rate: 72, outputLen: 64, dsbyte: 0x01} } +func NewLegacyKeccak512() hash.Hash { + return &state{rate: rateK1024, outputLen: 64, dsbyte: dsbyteKeccak} +} // Sum224 returns the SHA3-224 digest of the data. func Sum224(data []byte) (digest [28]byte) { diff --git a/vendor/golang.org/x/crypto/sha3/hashes_generic.go b/vendor/golang.org/x/crypto/sha3/hashes_generic.go deleted file mode 100644 index fe8c84793c09..000000000000 --- a/vendor/golang.org/x/crypto/sha3/hashes_generic.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2017 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 !gc || purego || !s390x - -package sha3 - -import ( - "hash" -) - -// new224Asm returns an assembly implementation of SHA3-224 if available, -// otherwise it returns nil. -func new224Asm() hash.Hash { return nil } - -// new256Asm returns an assembly implementation of SHA3-256 if available, -// otherwise it returns nil. -func new256Asm() hash.Hash { return nil } - -// new384Asm returns an assembly implementation of SHA3-384 if available, -// otherwise it returns nil. -func new384Asm() hash.Hash { return nil } - -// new512Asm returns an assembly implementation of SHA3-512 if available, -// otherwise it returns nil. -func new512Asm() hash.Hash { return nil } diff --git a/vendor/golang.org/x/crypto/sha3/hashes_noasm.go b/vendor/golang.org/x/crypto/sha3/hashes_noasm.go new file mode 100644 index 000000000000..9d85fb621446 --- /dev/null +++ b/vendor/golang.org/x/crypto/sha3/hashes_noasm.go @@ -0,0 +1,23 @@ +// Copyright 2023 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 !gc || purego || !s390x + +package sha3 + +func new224() *state { + return new224Generic() +} + +func new256() *state { + return new256Generic() +} + +func new384() *state { + return new384Generic() +} + +func new512() *state { + return new512Generic() +} diff --git a/vendor/golang.org/x/crypto/sha3/keccakf_amd64.s b/vendor/golang.org/x/crypto/sha3/keccakf_amd64.s index 1f5393886197..99e2f16e9719 100644 --- a/vendor/golang.org/x/crypto/sha3/keccakf_amd64.s +++ b/vendor/golang.org/x/crypto/sha3/keccakf_amd64.s @@ -1,390 +1,5419 @@ -// Copyright 2015 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. +// Code generated by command: go run keccakf_amd64_asm.go -out ../keccakf_amd64.s -pkg sha3. DO NOT EDIT. //go:build amd64 && !purego && gc -// This code was translated into a form compatible with 6a from the public -// domain sources at https://github.com/gvanas/KeccakCodePackage - -// Offsets in state -#define _ba (0*8) -#define _be (1*8) -#define _bi (2*8) -#define _bo (3*8) -#define _bu (4*8) -#define _ga (5*8) -#define _ge (6*8) -#define _gi (7*8) -#define _go (8*8) -#define _gu (9*8) -#define _ka (10*8) -#define _ke (11*8) -#define _ki (12*8) -#define _ko (13*8) -#define _ku (14*8) -#define _ma (15*8) -#define _me (16*8) -#define _mi (17*8) -#define _mo (18*8) -#define _mu (19*8) -#define _sa (20*8) -#define _se (21*8) -#define _si (22*8) -#define _so (23*8) -#define _su (24*8) - -// Temporary registers -#define rT1 AX - -// Round vars -#define rpState DI -#define rpStack SP - -#define rDa BX -#define rDe CX -#define rDi DX -#define rDo R8 -#define rDu R9 - -#define rBa R10 -#define rBe R11 -#define rBi R12 -#define rBo R13 -#define rBu R14 - -#define rCa SI -#define rCe BP -#define rCi rBi -#define rCo rBo -#define rCu R15 - -#define MOVQ_RBI_RCE MOVQ rBi, rCe -#define XORQ_RT1_RCA XORQ rT1, rCa -#define XORQ_RT1_RCE XORQ rT1, rCe -#define XORQ_RBA_RCU XORQ rBa, rCu -#define XORQ_RBE_RCU XORQ rBe, rCu -#define XORQ_RDU_RCU XORQ rDu, rCu -#define XORQ_RDA_RCA XORQ rDa, rCa -#define XORQ_RDE_RCE XORQ rDe, rCe - -#define mKeccakRound(iState, oState, rc, B_RBI_RCE, G_RT1_RCA, G_RT1_RCE, G_RBA_RCU, K_RT1_RCA, K_RT1_RCE, K_RBA_RCU, M_RT1_RCA, M_RT1_RCE, M_RBE_RCU, S_RDU_RCU, S_RDA_RCA, S_RDE_RCE) \ - /* Prepare round */ \ - MOVQ rCe, rDa; \ - ROLQ $1, rDa; \ - \ - MOVQ _bi(iState), rCi; \ - XORQ _gi(iState), rDi; \ - XORQ rCu, rDa; \ - XORQ _ki(iState), rCi; \ - XORQ _mi(iState), rDi; \ - XORQ rDi, rCi; \ - \ - MOVQ rCi, rDe; \ - ROLQ $1, rDe; \ - \ - MOVQ _bo(iState), rCo; \ - XORQ _go(iState), rDo; \ - XORQ rCa, rDe; \ - XORQ _ko(iState), rCo; \ - XORQ _mo(iState), rDo; \ - XORQ rDo, rCo; \ - \ - MOVQ rCo, rDi; \ - ROLQ $1, rDi; \ - \ - MOVQ rCu, rDo; \ - XORQ rCe, rDi; \ - ROLQ $1, rDo; \ - \ - MOVQ rCa, rDu; \ - XORQ rCi, rDo; \ - ROLQ $1, rDu; \ - \ - /* Result b */ \ - MOVQ _ba(iState), rBa; \ - MOVQ _ge(iState), rBe; \ - XORQ rCo, rDu; \ - MOVQ _ki(iState), rBi; \ - MOVQ _mo(iState), rBo; \ - MOVQ _su(iState), rBu; \ - XORQ rDe, rBe; \ - ROLQ $44, rBe; \ - XORQ rDi, rBi; \ - XORQ rDa, rBa; \ - ROLQ $43, rBi; \ - \ - MOVQ rBe, rCa; \ - MOVQ rc, rT1; \ - ORQ rBi, rCa; \ - XORQ rBa, rT1; \ - XORQ rT1, rCa; \ - MOVQ rCa, _ba(oState); \ - \ - XORQ rDu, rBu; \ - ROLQ $14, rBu; \ - MOVQ rBa, rCu; \ - ANDQ rBe, rCu; \ - XORQ rBu, rCu; \ - MOVQ rCu, _bu(oState); \ - \ - XORQ rDo, rBo; \ - ROLQ $21, rBo; \ - MOVQ rBo, rT1; \ - ANDQ rBu, rT1; \ - XORQ rBi, rT1; \ - MOVQ rT1, _bi(oState); \ - \ - NOTQ rBi; \ - ORQ rBa, rBu; \ - ORQ rBo, rBi; \ - XORQ rBo, rBu; \ - XORQ rBe, rBi; \ - MOVQ rBu, _bo(oState); \ - MOVQ rBi, _be(oState); \ - B_RBI_RCE; \ - \ - /* Result g */ \ - MOVQ _gu(iState), rBe; \ - XORQ rDu, rBe; \ - MOVQ _ka(iState), rBi; \ - ROLQ $20, rBe; \ - XORQ rDa, rBi; \ - ROLQ $3, rBi; \ - MOVQ _bo(iState), rBa; \ - MOVQ rBe, rT1; \ - ORQ rBi, rT1; \ - XORQ rDo, rBa; \ - MOVQ _me(iState), rBo; \ - MOVQ _si(iState), rBu; \ - ROLQ $28, rBa; \ - XORQ rBa, rT1; \ - MOVQ rT1, _ga(oState); \ - G_RT1_RCA; \ - \ - XORQ rDe, rBo; \ - ROLQ $45, rBo; \ - MOVQ rBi, rT1; \ - ANDQ rBo, rT1; \ - XORQ rBe, rT1; \ - MOVQ rT1, _ge(oState); \ - G_RT1_RCE; \ - \ - XORQ rDi, rBu; \ - ROLQ $61, rBu; \ - MOVQ rBu, rT1; \ - ORQ rBa, rT1; \ - XORQ rBo, rT1; \ - MOVQ rT1, _go(oState); \ - \ - ANDQ rBe, rBa; \ - XORQ rBu, rBa; \ - MOVQ rBa, _gu(oState); \ - NOTQ rBu; \ - G_RBA_RCU; \ - \ - ORQ rBu, rBo; \ - XORQ rBi, rBo; \ - MOVQ rBo, _gi(oState); \ - \ - /* Result k */ \ - MOVQ _be(iState), rBa; \ - MOVQ _gi(iState), rBe; \ - MOVQ _ko(iState), rBi; \ - MOVQ _mu(iState), rBo; \ - MOVQ _sa(iState), rBu; \ - XORQ rDi, rBe; \ - ROLQ $6, rBe; \ - XORQ rDo, rBi; \ - ROLQ $25, rBi; \ - MOVQ rBe, rT1; \ - ORQ rBi, rT1; \ - XORQ rDe, rBa; \ - ROLQ $1, rBa; \ - XORQ rBa, rT1; \ - MOVQ rT1, _ka(oState); \ - K_RT1_RCA; \ - \ - XORQ rDu, rBo; \ - ROLQ $8, rBo; \ - MOVQ rBi, rT1; \ - ANDQ rBo, rT1; \ - XORQ rBe, rT1; \ - MOVQ rT1, _ke(oState); \ - K_RT1_RCE; \ - \ - XORQ rDa, rBu; \ - ROLQ $18, rBu; \ - NOTQ rBo; \ - MOVQ rBo, rT1; \ - ANDQ rBu, rT1; \ - XORQ rBi, rT1; \ - MOVQ rT1, _ki(oState); \ - \ - MOVQ rBu, rT1; \ - ORQ rBa, rT1; \ - XORQ rBo, rT1; \ - MOVQ rT1, _ko(oState); \ - \ - ANDQ rBe, rBa; \ - XORQ rBu, rBa; \ - MOVQ rBa, _ku(oState); \ - K_RBA_RCU; \ - \ - /* Result m */ \ - MOVQ _ga(iState), rBe; \ - XORQ rDa, rBe; \ - MOVQ _ke(iState), rBi; \ - ROLQ $36, rBe; \ - XORQ rDe, rBi; \ - MOVQ _bu(iState), rBa; \ - ROLQ $10, rBi; \ - MOVQ rBe, rT1; \ - MOVQ _mi(iState), rBo; \ - ANDQ rBi, rT1; \ - XORQ rDu, rBa; \ - MOVQ _so(iState), rBu; \ - ROLQ $27, rBa; \ - XORQ rBa, rT1; \ - MOVQ rT1, _ma(oState); \ - M_RT1_RCA; \ - \ - XORQ rDi, rBo; \ - ROLQ $15, rBo; \ - MOVQ rBi, rT1; \ - ORQ rBo, rT1; \ - XORQ rBe, rT1; \ - MOVQ rT1, _me(oState); \ - M_RT1_RCE; \ - \ - XORQ rDo, rBu; \ - ROLQ $56, rBu; \ - NOTQ rBo; \ - MOVQ rBo, rT1; \ - ORQ rBu, rT1; \ - XORQ rBi, rT1; \ - MOVQ rT1, _mi(oState); \ - \ - ORQ rBa, rBe; \ - XORQ rBu, rBe; \ - MOVQ rBe, _mu(oState); \ - \ - ANDQ rBa, rBu; \ - XORQ rBo, rBu; \ - MOVQ rBu, _mo(oState); \ - M_RBE_RCU; \ - \ - /* Result s */ \ - MOVQ _bi(iState), rBa; \ - MOVQ _go(iState), rBe; \ - MOVQ _ku(iState), rBi; \ - XORQ rDi, rBa; \ - MOVQ _ma(iState), rBo; \ - ROLQ $62, rBa; \ - XORQ rDo, rBe; \ - MOVQ _se(iState), rBu; \ - ROLQ $55, rBe; \ - \ - XORQ rDu, rBi; \ - MOVQ rBa, rDu; \ - XORQ rDe, rBu; \ - ROLQ $2, rBu; \ - ANDQ rBe, rDu; \ - XORQ rBu, rDu; \ - MOVQ rDu, _su(oState); \ - \ - ROLQ $39, rBi; \ - S_RDU_RCU; \ - NOTQ rBe; \ - XORQ rDa, rBo; \ - MOVQ rBe, rDa; \ - ANDQ rBi, rDa; \ - XORQ rBa, rDa; \ - MOVQ rDa, _sa(oState); \ - S_RDA_RCA; \ - \ - ROLQ $41, rBo; \ - MOVQ rBi, rDe; \ - ORQ rBo, rDe; \ - XORQ rBe, rDe; \ - MOVQ rDe, _se(oState); \ - S_RDE_RCE; \ - \ - MOVQ rBo, rDi; \ - MOVQ rBu, rDo; \ - ANDQ rBu, rDi; \ - ORQ rBa, rDo; \ - XORQ rBi, rDi; \ - XORQ rBo, rDo; \ - MOVQ rDi, _si(oState); \ - MOVQ rDo, _so(oState) \ - // func keccakF1600(a *[25]uint64) -TEXT ·keccakF1600(SB), 0, $200-8 - MOVQ a+0(FP), rpState +TEXT ·keccakF1600(SB), $200-8 + MOVQ a+0(FP), DI // Convert the user state into an internal state - NOTQ _be(rpState) - NOTQ _bi(rpState) - NOTQ _go(rpState) - NOTQ _ki(rpState) - NOTQ _mi(rpState) - NOTQ _sa(rpState) + NOTQ 8(DI) + NOTQ 16(DI) + NOTQ 64(DI) + NOTQ 96(DI) + NOTQ 136(DI) + NOTQ 160(DI) // Execute the KeccakF permutation - MOVQ _ba(rpState), rCa - MOVQ _be(rpState), rCe - MOVQ _bu(rpState), rCu - - XORQ _ga(rpState), rCa - XORQ _ge(rpState), rCe - XORQ _gu(rpState), rCu - - XORQ _ka(rpState), rCa - XORQ _ke(rpState), rCe - XORQ _ku(rpState), rCu - - XORQ _ma(rpState), rCa - XORQ _me(rpState), rCe - XORQ _mu(rpState), rCu - - XORQ _sa(rpState), rCa - XORQ _se(rpState), rCe - MOVQ _si(rpState), rDi - MOVQ _so(rpState), rDo - XORQ _su(rpState), rCu - - mKeccakRound(rpState, rpStack, $0x0000000000000001, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x0000000000008082, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x800000000000808a, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x8000000080008000, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x000000000000808b, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x0000000080000001, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x8000000080008081, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x8000000000008009, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x000000000000008a, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x0000000000000088, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x0000000080008009, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x000000008000000a, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x000000008000808b, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x800000000000008b, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x8000000000008089, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x8000000000008003, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x8000000000008002, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x8000000000000080, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x000000000000800a, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x800000008000000a, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x8000000080008081, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x8000000000008080, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpState, rpStack, $0x0000000080000001, MOVQ_RBI_RCE, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBA_RCU, XORQ_RT1_RCA, XORQ_RT1_RCE, XORQ_RBE_RCU, XORQ_RDU_RCU, XORQ_RDA_RCA, XORQ_RDE_RCE) - mKeccakRound(rpStack, rpState, $0x8000000080008008, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP, NOP) + MOVQ (DI), SI + MOVQ 8(DI), BP + MOVQ 32(DI), R15 + XORQ 40(DI), SI + XORQ 48(DI), BP + XORQ 72(DI), R15 + XORQ 80(DI), SI + XORQ 88(DI), BP + XORQ 112(DI), R15 + XORQ 120(DI), SI + XORQ 128(DI), BP + XORQ 152(DI), R15 + XORQ 160(DI), SI + XORQ 168(DI), BP + MOVQ 176(DI), DX + MOVQ 184(DI), R8 + XORQ 192(DI), R15 - // Revert the internal state to the user state - NOTQ _be(rpState) - NOTQ _bi(rpState) - NOTQ _go(rpState) - NOTQ _ki(rpState) - NOTQ _mi(rpState) - NOTQ _sa(rpState) + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x0000000000000001, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x0000000000008082, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x800000000000808a, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000080008000, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x000000000000808b, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x0000000080000001, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000080008081, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000000008009, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x000000000000008a, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x0000000000000088, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x0000000080008009, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x000000008000000a, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x000000008000808b, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x800000000000008b, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000000008089, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000000008003, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000000008002, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000000000080, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x000000000000800a, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x800000008000000a, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000080008081, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000000008080, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + MOVQ R12, BP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + XORQ R10, R15 + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + XORQ R11, R15 + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(DI), R12 + XORQ 56(DI), DX + XORQ R15, BX + XORQ 96(DI), R12 + XORQ 136(DI), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(DI), R13 + XORQ 64(DI), R8 + XORQ SI, CX + XORQ 104(DI), R13 + XORQ 144(DI), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (DI), R10 + MOVQ 48(DI), R11 + XORQ R13, R9 + MOVQ 96(DI), R12 + MOVQ 144(DI), R13 + MOVQ 192(DI), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x0000000080000001, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (SP) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(SP) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(SP) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(SP) + MOVQ R12, 8(SP) + MOVQ R12, BP + + // Result g + MOVQ 72(DI), R11 + XORQ R9, R11 + MOVQ 80(DI), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(DI), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(DI), R13 + MOVQ 176(DI), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(SP) + XORQ AX, SI + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(SP) + XORQ AX, BP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(SP) + NOTQ R14 + XORQ R10, R15 + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(SP) + + // Result k + MOVQ 8(DI), R10 + MOVQ 56(DI), R11 + MOVQ 104(DI), R12 + MOVQ 152(DI), R13 + MOVQ 160(DI), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(SP) + XORQ AX, SI + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(SP) + XORQ AX, BP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(SP) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(SP) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(SP) + XORQ R10, R15 + + // Result m + MOVQ 40(DI), R11 + XORQ BX, R11 + MOVQ 88(DI), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(DI), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(DI), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(DI), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(SP) + XORQ AX, SI + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(SP) + XORQ AX, BP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(SP) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(SP) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(SP) + XORQ R11, R15 + + // Result s + MOVQ 16(DI), R10 + MOVQ 64(DI), R11 + MOVQ 112(DI), R12 + XORQ DX, R10 + MOVQ 120(DI), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(DI), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(SP) + ROLQ $0x27, R12 + XORQ R9, R15 + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(SP) + XORQ BX, SI + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(SP) + XORQ CX, BP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(SP) + MOVQ R8, 184(SP) + + // Prepare round + MOVQ BP, BX + ROLQ $0x01, BX + MOVQ 16(SP), R12 + XORQ 56(SP), DX + XORQ R15, BX + XORQ 96(SP), R12 + XORQ 136(SP), DX + XORQ DX, R12 + MOVQ R12, CX + ROLQ $0x01, CX + MOVQ 24(SP), R13 + XORQ 64(SP), R8 + XORQ SI, CX + XORQ 104(SP), R13 + XORQ 144(SP), R8 + XORQ R8, R13 + MOVQ R13, DX + ROLQ $0x01, DX + MOVQ R15, R8 + XORQ BP, DX + ROLQ $0x01, R8 + MOVQ SI, R9 + XORQ R12, R8 + ROLQ $0x01, R9 + + // Result b + MOVQ (SP), R10 + MOVQ 48(SP), R11 + XORQ R13, R9 + MOVQ 96(SP), R12 + MOVQ 144(SP), R13 + MOVQ 192(SP), R14 + XORQ CX, R11 + ROLQ $0x2c, R11 + XORQ DX, R12 + XORQ BX, R10 + ROLQ $0x2b, R12 + MOVQ R11, SI + MOVQ $0x8000000080008008, AX + ORQ R12, SI + XORQ R10, AX + XORQ AX, SI + MOVQ SI, (DI) + XORQ R9, R14 + ROLQ $0x0e, R14 + MOVQ R10, R15 + ANDQ R11, R15 + XORQ R14, R15 + MOVQ R15, 32(DI) + XORQ R8, R13 + ROLQ $0x15, R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 16(DI) + NOTQ R12 + ORQ R10, R14 + ORQ R13, R12 + XORQ R13, R14 + XORQ R11, R12 + MOVQ R14, 24(DI) + MOVQ R12, 8(DI) + NOP + + // Result g + MOVQ 72(SP), R11 + XORQ R9, R11 + MOVQ 80(SP), R12 + ROLQ $0x14, R11 + XORQ BX, R12 + ROLQ $0x03, R12 + MOVQ 24(SP), R10 + MOVQ R11, AX + ORQ R12, AX + XORQ R8, R10 + MOVQ 128(SP), R13 + MOVQ 176(SP), R14 + ROLQ $0x1c, R10 + XORQ R10, AX + MOVQ AX, 40(DI) + NOP + XORQ CX, R13 + ROLQ $0x2d, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 48(DI) + NOP + XORQ DX, R14 + ROLQ $0x3d, R14 + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 64(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 72(DI) + NOTQ R14 + NOP + ORQ R14, R13 + XORQ R12, R13 + MOVQ R13, 56(DI) + + // Result k + MOVQ 8(SP), R10 + MOVQ 56(SP), R11 + MOVQ 104(SP), R12 + MOVQ 152(SP), R13 + MOVQ 160(SP), R14 + XORQ DX, R11 + ROLQ $0x06, R11 + XORQ R8, R12 + ROLQ $0x19, R12 + MOVQ R11, AX + ORQ R12, AX + XORQ CX, R10 + ROLQ $0x01, R10 + XORQ R10, AX + MOVQ AX, 80(DI) + NOP + XORQ R9, R13 + ROLQ $0x08, R13 + MOVQ R12, AX + ANDQ R13, AX + XORQ R11, AX + MOVQ AX, 88(DI) + NOP + XORQ BX, R14 + ROLQ $0x12, R14 + NOTQ R13 + MOVQ R13, AX + ANDQ R14, AX + XORQ R12, AX + MOVQ AX, 96(DI) + MOVQ R14, AX + ORQ R10, AX + XORQ R13, AX + MOVQ AX, 104(DI) + ANDQ R11, R10 + XORQ R14, R10 + MOVQ R10, 112(DI) + NOP + + // Result m + MOVQ 40(SP), R11 + XORQ BX, R11 + MOVQ 88(SP), R12 + ROLQ $0x24, R11 + XORQ CX, R12 + MOVQ 32(SP), R10 + ROLQ $0x0a, R12 + MOVQ R11, AX + MOVQ 136(SP), R13 + ANDQ R12, AX + XORQ R9, R10 + MOVQ 184(SP), R14 + ROLQ $0x1b, R10 + XORQ R10, AX + MOVQ AX, 120(DI) + NOP + XORQ DX, R13 + ROLQ $0x0f, R13 + MOVQ R12, AX + ORQ R13, AX + XORQ R11, AX + MOVQ AX, 128(DI) + NOP + XORQ R8, R14 + ROLQ $0x38, R14 + NOTQ R13 + MOVQ R13, AX + ORQ R14, AX + XORQ R12, AX + MOVQ AX, 136(DI) + ORQ R10, R11 + XORQ R14, R11 + MOVQ R11, 152(DI) + ANDQ R10, R14 + XORQ R13, R14 + MOVQ R14, 144(DI) + NOP + + // Result s + MOVQ 16(SP), R10 + MOVQ 64(SP), R11 + MOVQ 112(SP), R12 + XORQ DX, R10 + MOVQ 120(SP), R13 + ROLQ $0x3e, R10 + XORQ R8, R11 + MOVQ 168(SP), R14 + ROLQ $0x37, R11 + XORQ R9, R12 + MOVQ R10, R9 + XORQ CX, R14 + ROLQ $0x02, R14 + ANDQ R11, R9 + XORQ R14, R9 + MOVQ R9, 192(DI) + ROLQ $0x27, R12 + NOP + NOTQ R11 + XORQ BX, R13 + MOVQ R11, BX + ANDQ R12, BX + XORQ R10, BX + MOVQ BX, 160(DI) + NOP + ROLQ $0x29, R13 + MOVQ R12, CX + ORQ R13, CX + XORQ R11, CX + MOVQ CX, 168(DI) + NOP + MOVQ R13, DX + MOVQ R14, R8 + ANDQ R14, DX + ORQ R10, R8 + XORQ R12, DX + XORQ R13, R8 + MOVQ DX, 176(DI) + MOVQ R8, 184(DI) + + // Revert the internal state to the user state + NOTQ 8(DI) + NOTQ 16(DI) + NOTQ 64(DI) + NOTQ 96(DI) + NOTQ 136(DI) + NOTQ 160(DI) RET diff --git a/vendor/golang.org/x/crypto/sha3/register.go b/vendor/golang.org/x/crypto/sha3/register.go deleted file mode 100644 index addfd5049bb9..000000000000 --- a/vendor/golang.org/x/crypto/sha3/register.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2014 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.4 - -package sha3 - -import ( - "crypto" -) - -func init() { - crypto.RegisterHash(crypto.SHA3_224, New224) - crypto.RegisterHash(crypto.SHA3_256, New256) - crypto.RegisterHash(crypto.SHA3_384, New384) - crypto.RegisterHash(crypto.SHA3_512, New512) -} diff --git a/vendor/golang.org/x/crypto/sha3/sha3.go b/vendor/golang.org/x/crypto/sha3/sha3.go index 4884d172a49f..6658c44479b6 100644 --- a/vendor/golang.org/x/crypto/sha3/sha3.go +++ b/vendor/golang.org/x/crypto/sha3/sha3.go @@ -4,6 +4,15 @@ package sha3 +import ( + "crypto/subtle" + "encoding/binary" + "errors" + "unsafe" + + "golang.org/x/sys/cpu" +) + // spongeDirection indicates the direction bytes are flowing through the sponge. type spongeDirection int @@ -14,17 +23,13 @@ const ( spongeSqueezing ) -const ( - // maxRate is the maximum size of the internal buffer. SHAKE-256 - // currently needs the largest buffer. - maxRate = 168 -) - type state struct { - // Generic sponge components. - a [25]uint64 // main state of the hash - buf []byte // points into storage - rate int // the number of bytes of state to use + a [1600 / 8]byte // main state of the hash + + // a[n:rate] is the buffer. If absorbing, it's the remaining space to XOR + // into before running the permutation. If squeezing, it's the remaining + // output to produce before running the permutation. + n, rate int // dsbyte contains the "domain separation" bits and the first bit of // the padding. Sections 6.1 and 6.2 of [1] separate the outputs of the @@ -40,9 +45,6 @@ type state struct { // Extendable-Output Functions (May 2014)" dsbyte byte - storage storageBuf - - // Specific to SHA-3 and SHAKE. outputLen int // the default output size in bytes state spongeDirection // whether the sponge is absorbing or squeezing } @@ -54,103 +56,77 @@ func (d *state) BlockSize() int { return d.rate } func (d *state) Size() int { return d.outputLen } // Reset clears the internal state by zeroing the sponge state and -// the byte buffer, and setting Sponge.state to absorbing. +// the buffer indexes, and setting Sponge.state to absorbing. func (d *state) Reset() { // Zero the permutation's state. for i := range d.a { d.a[i] = 0 } d.state = spongeAbsorbing - d.buf = d.storage.asBytes()[:0] + d.n = 0 } func (d *state) clone() *state { ret := *d - if ret.state == spongeAbsorbing { - ret.buf = ret.storage.asBytes()[:len(ret.buf)] - } else { - ret.buf = ret.storage.asBytes()[d.rate-cap(d.buf) : d.rate] - } - return &ret } -// permute applies the KeccakF-1600 permutation. It handles -// any input-output buffering. +// permute applies the KeccakF-1600 permutation. func (d *state) permute() { - switch d.state { - case spongeAbsorbing: - // If we're absorbing, we need to xor the input into the state - // before applying the permutation. - xorIn(d, d.buf) - d.buf = d.storage.asBytes()[:0] - keccakF1600(&d.a) - case spongeSqueezing: - // If we're squeezing, we need to apply the permutation before - // copying more output. - keccakF1600(&d.a) - d.buf = d.storage.asBytes()[:d.rate] - copyOut(d, d.buf) + var a *[25]uint64 + if cpu.IsBigEndian { + a = new([25]uint64) + for i := range a { + a[i] = binary.LittleEndian.Uint64(d.a[i*8:]) + } + } else { + a = (*[25]uint64)(unsafe.Pointer(&d.a)) + } + + keccakF1600(a) + d.n = 0 + + if cpu.IsBigEndian { + for i := range a { + binary.LittleEndian.PutUint64(d.a[i*8:], a[i]) + } } } // pads appends the domain separation bits in dsbyte, applies // the multi-bitrate 10..1 padding rule, and permutes the state. -func (d *state) padAndPermute(dsbyte byte) { - if d.buf == nil { - d.buf = d.storage.asBytes()[:0] - } +func (d *state) padAndPermute() { // Pad with this instance's domain-separator bits. We know that there's - // at least one byte of space in d.buf because, if it were full, + // at least one byte of space in the sponge because, if it were full, // permute would have been called to empty it. dsbyte also contains the // first one bit for the padding. See the comment in the state struct. - d.buf = append(d.buf, dsbyte) - zerosStart := len(d.buf) - d.buf = d.storage.asBytes()[:d.rate] - for i := zerosStart; i < d.rate; i++ { - d.buf[i] = 0 - } + d.a[d.n] ^= d.dsbyte // This adds the final one bit for the padding. Because of the way that // bits are numbered from the LSB upwards, the final bit is the MSB of // the last byte. - d.buf[d.rate-1] ^= 0x80 + d.a[d.rate-1] ^= 0x80 // Apply the permutation d.permute() d.state = spongeSqueezing - d.buf = d.storage.asBytes()[:d.rate] - copyOut(d, d.buf) } // Write absorbs more data into the hash's state. It panics if any // output has already been read. -func (d *state) Write(p []byte) (written int, err error) { +func (d *state) Write(p []byte) (n int, err error) { if d.state != spongeAbsorbing { panic("sha3: Write after Read") } - if d.buf == nil { - d.buf = d.storage.asBytes()[:0] - } - written = len(p) + + n = len(p) for len(p) > 0 { - if len(d.buf) == 0 && len(p) >= d.rate { - // The fast path; absorb a full "rate" bytes of input and apply the permutation. - xorIn(d, p[:d.rate]) - p = p[d.rate:] - keccakF1600(&d.a) - } else { - // The slow path; buffer the input until we can fill the sponge, and then xor it in. - todo := d.rate - len(d.buf) - if todo > len(p) { - todo = len(p) - } - d.buf = append(d.buf, p[:todo]...) - p = p[todo:] - - // If the sponge is full, apply the permutation. - if len(d.buf) == d.rate { - d.permute() - } + x := subtle.XORBytes(d.a[d.n:d.rate], d.a[d.n:d.rate], p) + d.n += x + p = p[x:] + + // If the sponge is full, apply the permutation. + if d.n == d.rate { + d.permute() } } @@ -161,21 +137,21 @@ func (d *state) Write(p []byte) (written int, err error) { func (d *state) Read(out []byte) (n int, err error) { // If we're still absorbing, pad and apply the permutation. if d.state == spongeAbsorbing { - d.padAndPermute(d.dsbyte) + d.padAndPermute() } n = len(out) // Now, do the squeezing. for len(out) > 0 { - n := copy(out, d.buf) - d.buf = d.buf[n:] - out = out[n:] - // Apply the permutation if we've squeezed the sponge dry. - if len(d.buf) == 0 { + if d.n == d.rate { d.permute() } + + x := copy(out, d.a[d.n:d.rate]) + d.n += x + out = out[x:] } return @@ -195,3 +171,74 @@ func (d *state) Sum(in []byte) []byte { dup.Read(hash) return append(in, hash...) } + +const ( + magicSHA3 = "sha\x08" + magicShake = "sha\x09" + magicCShake = "sha\x0a" + magicKeccak = "sha\x0b" + // magic || rate || main state || n || sponge direction + marshaledSize = len(magicSHA3) + 1 + 200 + 1 + 1 +) + +func (d *state) MarshalBinary() ([]byte, error) { + return d.AppendBinary(make([]byte, 0, marshaledSize)) +} + +func (d *state) AppendBinary(b []byte) ([]byte, error) { + switch d.dsbyte { + case dsbyteSHA3: + b = append(b, magicSHA3...) + case dsbyteShake: + b = append(b, magicShake...) + case dsbyteCShake: + b = append(b, magicCShake...) + case dsbyteKeccak: + b = append(b, magicKeccak...) + default: + panic("unknown dsbyte") + } + // rate is at most 168, and n is at most rate. + b = append(b, byte(d.rate)) + b = append(b, d.a[:]...) + b = append(b, byte(d.n), byte(d.state)) + return b, nil +} + +func (d *state) UnmarshalBinary(b []byte) error { + if len(b) != marshaledSize { + return errors.New("sha3: invalid hash state") + } + + magic := string(b[:len(magicSHA3)]) + b = b[len(magicSHA3):] + switch { + case magic == magicSHA3 && d.dsbyte == dsbyteSHA3: + case magic == magicShake && d.dsbyte == dsbyteShake: + case magic == magicCShake && d.dsbyte == dsbyteCShake: + case magic == magicKeccak && d.dsbyte == dsbyteKeccak: + default: + return errors.New("sha3: invalid hash state identifier") + } + + rate := int(b[0]) + b = b[1:] + if rate != d.rate { + return errors.New("sha3: invalid hash state function") + } + + copy(d.a[:], b) + b = b[len(d.a):] + + n, state := int(b[0]), spongeDirection(b[1]) + if n > d.rate { + return errors.New("sha3: invalid hash state") + } + d.n = n + if state != spongeAbsorbing && state != spongeSqueezing { + return errors.New("sha3: invalid hash state") + } + d.state = state + + return nil +} diff --git a/vendor/golang.org/x/crypto/sha3/sha3_s390x.go b/vendor/golang.org/x/crypto/sha3/sha3_s390x.go index b4fbbf8695cd..00d8034ae627 100644 --- a/vendor/golang.org/x/crypto/sha3/sha3_s390x.go +++ b/vendor/golang.org/x/crypto/sha3/sha3_s390x.go @@ -248,56 +248,56 @@ func (s *asmState) Clone() ShakeHash { return s.clone() } -// new224Asm returns an assembly implementation of SHA3-224 if available, -// otherwise it returns nil. -func new224Asm() hash.Hash { +// new224 returns an assembly implementation of SHA3-224 if available, +// otherwise it returns a generic implementation. +func new224() hash.Hash { if cpu.S390X.HasSHA3 { return newAsmState(sha3_224) } - return nil + return new224Generic() } -// new256Asm returns an assembly implementation of SHA3-256 if available, -// otherwise it returns nil. -func new256Asm() hash.Hash { +// new256 returns an assembly implementation of SHA3-256 if available, +// otherwise it returns a generic implementation. +func new256() hash.Hash { if cpu.S390X.HasSHA3 { return newAsmState(sha3_256) } - return nil + return new256Generic() } -// new384Asm returns an assembly implementation of SHA3-384 if available, -// otherwise it returns nil. -func new384Asm() hash.Hash { +// new384 returns an assembly implementation of SHA3-384 if available, +// otherwise it returns a generic implementation. +func new384() hash.Hash { if cpu.S390X.HasSHA3 { return newAsmState(sha3_384) } - return nil + return new384Generic() } -// new512Asm returns an assembly implementation of SHA3-512 if available, -// otherwise it returns nil. -func new512Asm() hash.Hash { +// new512 returns an assembly implementation of SHA3-512 if available, +// otherwise it returns a generic implementation. +func new512() hash.Hash { if cpu.S390X.HasSHA3 { return newAsmState(sha3_512) } - return nil + return new512Generic() } -// newShake128Asm returns an assembly implementation of SHAKE-128 if available, -// otherwise it returns nil. -func newShake128Asm() ShakeHash { +// newShake128 returns an assembly implementation of SHAKE-128 if available, +// otherwise it returns a generic implementation. +func newShake128() ShakeHash { if cpu.S390X.HasSHA3 { return newAsmState(shake_128) } - return nil + return newShake128Generic() } -// newShake256Asm returns an assembly implementation of SHAKE-256 if available, -// otherwise it returns nil. -func newShake256Asm() ShakeHash { +// newShake256 returns an assembly implementation of SHAKE-256 if available, +// otherwise it returns a generic implementation. +func newShake256() ShakeHash { if cpu.S390X.HasSHA3 { return newAsmState(shake_256) } - return nil + return newShake256Generic() } diff --git a/vendor/golang.org/x/crypto/sha3/shake.go b/vendor/golang.org/x/crypto/sha3/shake.go index bb69984027f6..a6b3a4281f5b 100644 --- a/vendor/golang.org/x/crypto/sha3/shake.go +++ b/vendor/golang.org/x/crypto/sha3/shake.go @@ -16,9 +16,12 @@ package sha3 // [2] https://doi.org/10.6028/NIST.SP.800-185 import ( + "bytes" "encoding/binary" + "errors" "hash" "io" + "math/bits" ) // ShakeHash defines the interface to hash functions that support @@ -50,44 +53,36 @@ type cshakeState struct { initBlock []byte } -// Consts for configuring initial SHA-3 state -const ( - dsbyteShake = 0x1f - dsbyteCShake = 0x04 - rate128 = 168 - rate256 = 136 -) +func bytepad(data []byte, rate int) []byte { + out := make([]byte, 0, 9+len(data)+rate-1) + out = append(out, leftEncode(uint64(rate))...) + out = append(out, data...) + if padlen := rate - len(out)%rate; padlen < rate { + out = append(out, make([]byte, padlen)...) + } + return out +} -func bytepad(input []byte, w int) []byte { - // leftEncode always returns max 9 bytes - buf := make([]byte, 0, 9+len(input)+w) - buf = append(buf, leftEncode(uint64(w))...) - buf = append(buf, input...) - padlen := w - (len(buf) % w) - return append(buf, make([]byte, padlen)...) -} - -func leftEncode(value uint64) []byte { - var b [9]byte - binary.BigEndian.PutUint64(b[1:], value) - // Trim all but last leading zero bytes - i := byte(1) - for i < 8 && b[i] == 0 { - i++ +func leftEncode(x uint64) []byte { + // Let n be the smallest positive integer for which 2^(8n) > x. + n := (bits.Len64(x) + 7) / 8 + if n == 0 { + n = 1 } - // Prepend number of encoded bytes - b[i-1] = 9 - i - return b[i-1:] + // Return n || x with n as a byte and x an n bytes in big-endian order. + b := make([]byte, 9) + binary.BigEndian.PutUint64(b[1:], x) + b = b[9-n-1:] + b[0] = byte(n) + return b } func newCShake(N, S []byte, rate, outputLen int, dsbyte byte) ShakeHash { c := cshakeState{state: &state{rate: rate, outputLen: outputLen, dsbyte: dsbyte}} - - // leftEncode returns max 9 bytes - c.initBlock = make([]byte, 0, 9*2+len(N)+len(S)) - c.initBlock = append(c.initBlock, leftEncode(uint64(len(N)*8))...) + c.initBlock = make([]byte, 0, 9+len(N)+9+len(S)) // leftEncode returns max 9 bytes + c.initBlock = append(c.initBlock, leftEncode(uint64(len(N))*8)...) c.initBlock = append(c.initBlock, N...) - c.initBlock = append(c.initBlock, leftEncode(uint64(len(S)*8))...) + c.initBlock = append(c.initBlock, leftEncode(uint64(len(S))*8)...) c.initBlock = append(c.initBlock, S...) c.Write(bytepad(c.initBlock, c.rate)) return &c @@ -111,24 +106,50 @@ func (c *state) Clone() ShakeHash { return c.clone() } +func (c *cshakeState) MarshalBinary() ([]byte, error) { + return c.AppendBinary(make([]byte, 0, marshaledSize+len(c.initBlock))) +} + +func (c *cshakeState) AppendBinary(b []byte) ([]byte, error) { + b, err := c.state.AppendBinary(b) + if err != nil { + return nil, err + } + b = append(b, c.initBlock...) + return b, nil +} + +func (c *cshakeState) UnmarshalBinary(b []byte) error { + if len(b) <= marshaledSize { + return errors.New("sha3: invalid hash state") + } + if err := c.state.UnmarshalBinary(b[:marshaledSize]); err != nil { + return err + } + c.initBlock = bytes.Clone(b[marshaledSize:]) + return nil +} + // NewShake128 creates a new SHAKE128 variable-output-length ShakeHash. // Its generic security strength is 128 bits against all attacks if at // least 32 bytes of its output are used. func NewShake128() ShakeHash { - if h := newShake128Asm(); h != nil { - return h - } - return &state{rate: rate128, outputLen: 32, dsbyte: dsbyteShake} + return newShake128() } // NewShake256 creates a new SHAKE256 variable-output-length ShakeHash. // Its generic security strength is 256 bits against all attacks if // at least 64 bytes of its output are used. func NewShake256() ShakeHash { - if h := newShake256Asm(); h != nil { - return h - } - return &state{rate: rate256, outputLen: 64, dsbyte: dsbyteShake} + return newShake256() +} + +func newShake128Generic() *state { + return &state{rate: rateK256, outputLen: 32, dsbyte: dsbyteShake} +} + +func newShake256Generic() *state { + return &state{rate: rateK512, outputLen: 64, dsbyte: dsbyteShake} } // NewCShake128 creates a new instance of cSHAKE128 variable-output-length ShakeHash, @@ -141,7 +162,7 @@ func NewCShake128(N, S []byte) ShakeHash { if len(N) == 0 && len(S) == 0 { return NewShake128() } - return newCShake(N, S, rate128, 32, dsbyteCShake) + return newCShake(N, S, rateK256, 32, dsbyteCShake) } // NewCShake256 creates a new instance of cSHAKE256 variable-output-length ShakeHash, @@ -154,7 +175,7 @@ func NewCShake256(N, S []byte) ShakeHash { if len(N) == 0 && len(S) == 0 { return NewShake256() } - return newCShake(N, S, rate256, 64, dsbyteCShake) + return newCShake(N, S, rateK512, 64, dsbyteCShake) } // ShakeSum128 writes an arbitrary-length digest of data into hash. diff --git a/vendor/golang.org/x/crypto/sha3/shake_generic.go b/vendor/golang.org/x/crypto/sha3/shake_generic.go deleted file mode 100644 index 8d31cf5be2d1..000000000000 --- a/vendor/golang.org/x/crypto/sha3/shake_generic.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2017 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 !gc || purego || !s390x - -package sha3 - -// newShake128Asm returns an assembly implementation of SHAKE-128 if available, -// otherwise it returns nil. -func newShake128Asm() ShakeHash { - return nil -} - -// newShake256Asm returns an assembly implementation of SHAKE-256 if available, -// otherwise it returns nil. -func newShake256Asm() ShakeHash { - return nil -} diff --git a/vendor/golang.org/x/crypto/sha3/shake_noasm.go b/vendor/golang.org/x/crypto/sha3/shake_noasm.go new file mode 100644 index 000000000000..4276ba4ab2c4 --- /dev/null +++ b/vendor/golang.org/x/crypto/sha3/shake_noasm.go @@ -0,0 +1,15 @@ +// Copyright 2023 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 !gc || purego || !s390x + +package sha3 + +func newShake128() *state { + return newShake128Generic() +} + +func newShake256() *state { + return newShake256Generic() +} diff --git a/vendor/golang.org/x/crypto/sha3/xor.go b/vendor/golang.org/x/crypto/sha3/xor.go deleted file mode 100644 index 7337cca88eda..000000000000 --- a/vendor/golang.org/x/crypto/sha3/xor.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2015 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 (!amd64 && !386 && !ppc64le) || purego - -package sha3 - -// A storageBuf is an aligned array of maxRate bytes. -type storageBuf [maxRate]byte - -func (b *storageBuf) asBytes() *[maxRate]byte { - return (*[maxRate]byte)(b) -} - -var ( - xorIn = xorInGeneric - copyOut = copyOutGeneric - xorInUnaligned = xorInGeneric - copyOutUnaligned = copyOutGeneric -) - -const xorImplementationUnaligned = "generic" diff --git a/vendor/golang.org/x/crypto/sha3/xor_generic.go b/vendor/golang.org/x/crypto/sha3/xor_generic.go deleted file mode 100644 index 8d947711272c..000000000000 --- a/vendor/golang.org/x/crypto/sha3/xor_generic.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2015 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. - -package sha3 - -import "encoding/binary" - -// xorInGeneric xors the bytes in buf into the state; it -// makes no non-portable assumptions about memory layout -// or alignment. -func xorInGeneric(d *state, buf []byte) { - n := len(buf) / 8 - - for i := 0; i < n; i++ { - a := binary.LittleEndian.Uint64(buf) - d.a[i] ^= a - buf = buf[8:] - } -} - -// copyOutGeneric copies uint64s to a byte buffer. -func copyOutGeneric(d *state, b []byte) { - for i := 0; len(b) >= 8; i++ { - binary.LittleEndian.PutUint64(b, d.a[i]) - b = b[8:] - } -} diff --git a/vendor/golang.org/x/crypto/sha3/xor_unaligned.go b/vendor/golang.org/x/crypto/sha3/xor_unaligned.go deleted file mode 100644 index 870e2d16e073..000000000000 --- a/vendor/golang.org/x/crypto/sha3/xor_unaligned.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2015 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 (amd64 || 386 || ppc64le) && !purego - -package sha3 - -import "unsafe" - -// A storageBuf is an aligned array of maxRate bytes. -type storageBuf [maxRate / 8]uint64 - -func (b *storageBuf) asBytes() *[maxRate]byte { - return (*[maxRate]byte)(unsafe.Pointer(b)) -} - -// xorInUnaligned uses unaligned reads and writes to update d.a to contain d.a -// XOR buf. -func xorInUnaligned(d *state, buf []byte) { - n := len(buf) - bw := (*[maxRate / 8]uint64)(unsafe.Pointer(&buf[0]))[: n/8 : n/8] - if n >= 72 { - d.a[0] ^= bw[0] - d.a[1] ^= bw[1] - d.a[2] ^= bw[2] - d.a[3] ^= bw[3] - d.a[4] ^= bw[4] - d.a[5] ^= bw[5] - d.a[6] ^= bw[6] - d.a[7] ^= bw[7] - d.a[8] ^= bw[8] - } - if n >= 104 { - d.a[9] ^= bw[9] - d.a[10] ^= bw[10] - d.a[11] ^= bw[11] - d.a[12] ^= bw[12] - } - if n >= 136 { - d.a[13] ^= bw[13] - d.a[14] ^= bw[14] - d.a[15] ^= bw[15] - d.a[16] ^= bw[16] - } - if n >= 144 { - d.a[17] ^= bw[17] - } - if n >= 168 { - d.a[18] ^= bw[18] - d.a[19] ^= bw[19] - d.a[20] ^= bw[20] - } -} - -func copyOutUnaligned(d *state, buf []byte) { - ab := (*[maxRate]uint8)(unsafe.Pointer(&d.a[0])) - copy(buf, ab[:]) -} - -var ( - xorIn = xorInUnaligned - copyOut = copyOutUnaligned -) - -const xorImplementationUnaligned = "unaligned" diff --git a/vendor/golang.org/x/crypto/ssh/client_auth.go b/vendor/golang.org/x/crypto/ssh/client_auth.go index 9486c598623a..b86dde151d7f 100644 --- a/vendor/golang.org/x/crypto/ssh/client_auth.go +++ b/vendor/golang.org/x/crypto/ssh/client_auth.go @@ -71,6 +71,10 @@ func (c *connection) clientAuthenticate(config *ClientConfig) error { for auth := AuthMethod(new(noneAuth)); auth != nil; { ok, methods, err := auth.auth(sessionID, config.User, c.transport, config.Rand, extensions) if err != nil { + // On disconnect, return error immediately + if _, ok := err.(*disconnectMsg); ok { + return err + } // We return the error later if there is no other method left to // try. ok = authFailure @@ -551,6 +555,7 @@ func (cb KeyboardInteractiveChallenge) auth(session []byte, user string, c packe } gotMsgExtInfo := false + gotUserAuthInfoRequest := false for { packet, err := c.readPacket() if err != nil { @@ -581,6 +586,9 @@ func (cb KeyboardInteractiveChallenge) auth(session []byte, user string, c packe if msg.PartialSuccess { return authPartialSuccess, msg.Methods, nil } + if !gotUserAuthInfoRequest { + return authFailure, msg.Methods, unexpectedMessageError(msgUserAuthInfoRequest, packet[0]) + } return authFailure, msg.Methods, nil case msgUserAuthSuccess: return authSuccess, nil, nil @@ -592,6 +600,7 @@ func (cb KeyboardInteractiveChallenge) auth(session []byte, user string, c packe if err := Unmarshal(packet, &msg); err != nil { return authFailure, nil, err } + gotUserAuthInfoRequest = true // Manually unpack the prompt/echo pairs. rest := msg.Prompts diff --git a/vendor/golang.org/x/crypto/ssh/doc.go b/vendor/golang.org/x/crypto/ssh/doc.go index edbe63340d3d..f5d352fe3a0b 100644 --- a/vendor/golang.org/x/crypto/ssh/doc.go +++ b/vendor/golang.org/x/crypto/ssh/doc.go @@ -20,4 +20,4 @@ References: This package does not fall under the stability promise of the Go language itself, so its API may be changed when pressing needs arise. */ -package ssh // import "golang.org/x/crypto/ssh" +package ssh diff --git a/vendor/golang.org/x/crypto/ssh/keys.go b/vendor/golang.org/x/crypto/ssh/keys.go index df4ebdada501..98e6706d5d7f 100644 --- a/vendor/golang.org/x/crypto/ssh/keys.go +++ b/vendor/golang.org/x/crypto/ssh/keys.go @@ -488,7 +488,49 @@ func (r *rsaPublicKey) Verify(data []byte, sig *Signature) error { h := hash.New() h.Write(data) digest := h.Sum(nil) - return rsa.VerifyPKCS1v15((*rsa.PublicKey)(r), hash, digest, sig.Blob) + + // Signatures in PKCS1v15 must match the key's modulus in + // length. However with SSH, some signers provide RSA + // signatures which are missing the MSB 0's of the bignum + // represented. With ssh-rsa signatures, this is encouraged by + // the spec (even though e.g. OpenSSH will give the full + // length unconditionally). With rsa-sha2-* signatures, the + // verifier is allowed to support these, even though they are + // out of spec. See RFC 4253 Section 6.6 for ssh-rsa and RFC + // 8332 Section 3 for rsa-sha2-* details. + // + // In practice: + // * OpenSSH always allows "short" signatures: + // https://github.com/openssh/openssh-portable/blob/V_9_8_P1/ssh-rsa.c#L526 + // but always generates padded signatures: + // https://github.com/openssh/openssh-portable/blob/V_9_8_P1/ssh-rsa.c#L439 + // + // * PuTTY versions 0.81 and earlier will generate short + // signatures for all RSA signature variants. Note that + // PuTTY is embedded in other software, such as WinSCP and + // FileZilla. At the time of writing, a patch has been + // applied to PuTTY to generate padded signatures for + // rsa-sha2-*, but not yet released: + // https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=a5bcf3d384e1bf15a51a6923c3724cbbee022d8e + // + // * SSH.NET versions 2024.0.0 and earlier will generate short + // signatures for all RSA signature variants, fixed in 2024.1.0: + // https://github.com/sshnet/SSH.NET/releases/tag/2024.1.0 + // + // As a result, we pad these up to the key size by inserting + // leading 0's. + // + // Note that support for short signatures with rsa-sha2-* may + // be removed in the future due to such signatures not being + // allowed by the spec. + blob := sig.Blob + keySize := (*rsa.PublicKey)(r).Size() + if len(blob) < keySize { + padded := make([]byte, keySize) + copy(padded[keySize-len(blob):], blob) + blob = padded + } + return rsa.VerifyPKCS1v15((*rsa.PublicKey)(r), hash, digest, blob) } func (r *rsaPublicKey) CryptoPublicKey() crypto.PublicKey { @@ -904,6 +946,10 @@ func (k *skECDSAPublicKey) Verify(data []byte, sig *Signature) error { return errors.New("ssh: signature did not verify") } +func (k *skECDSAPublicKey) CryptoPublicKey() crypto.PublicKey { + return &k.PublicKey +} + type skEd25519PublicKey struct { // application is a URL-like string, typically "ssh:" for SSH. // see openssh/PROTOCOL.u2f for details. @@ -1000,6 +1046,10 @@ func (k *skEd25519PublicKey) Verify(data []byte, sig *Signature) error { return nil } +func (k *skEd25519PublicKey) CryptoPublicKey() crypto.PublicKey { + return k.PublicKey +} + // NewSignerFromKey takes an *rsa.PrivateKey, *dsa.PrivateKey, // *ecdsa.PrivateKey or any other crypto.Signer and returns a // corresponding Signer instance. ECDSA keys must use P-256, P-384 or diff --git a/vendor/golang.org/x/crypto/ssh/server.go b/vendor/golang.org/x/crypto/ssh/server.go index e2ae4f891bba..c0d1c29e6f9b 100644 --- a/vendor/golang.org/x/crypto/ssh/server.go +++ b/vendor/golang.org/x/crypto/ssh/server.go @@ -462,6 +462,24 @@ func (p *PartialSuccessError) Error() string { // It is returned in ServerAuthError.Errors from NewServerConn. var ErrNoAuth = errors.New("ssh: no auth passed yet") +// BannerError is an error that can be returned by authentication handlers in +// ServerConfig to send a banner message to the client. +type BannerError struct { + Err error + Message string +} + +func (b *BannerError) Unwrap() error { + return b.Err +} + +func (b *BannerError) Error() string { + if b.Err == nil { + return b.Message + } + return b.Err.Error() +} + func (s *connection) serverAuthenticate(config *ServerConfig) (*Permissions, error) { sessionID := s.transport.getSessionID() var cache pubKeyCache @@ -492,8 +510,8 @@ userAuthLoop: if err := s.transport.writePacket(Marshal(discMsg)); err != nil { return nil, err } - - return nil, discMsg + authErrs = append(authErrs, discMsg) + return nil, &ServerAuthError{Errors: authErrs} } var userAuthReq userAuthRequestMsg @@ -734,6 +752,18 @@ userAuthLoop: config.AuthLogCallback(s, userAuthReq.Method, authErr) } + var bannerErr *BannerError + if errors.As(authErr, &bannerErr) { + if bannerErr.Message != "" { + bannerMsg := &userAuthBannerMsg{ + Message: bannerErr.Message, + } + if err := s.transport.writePacket(Marshal(bannerMsg)); err != nil { + return nil, err + } + } + } + if authErr == nil { break userAuthLoop } diff --git a/vendor/golang.org/x/mod/LICENSE b/vendor/golang.org/x/mod/LICENSE index 6a66aea5eafe..2a7cf70da6e4 100644 --- a/vendor/golang.org/x/mod/LICENSE +++ b/vendor/golang.org/x/mod/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. +Copyright 2009 The Go Authors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its + * Neither the name of Google LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/vendor/golang.org/x/mod/modfile/read.go b/vendor/golang.org/x/mod/modfile/read.go index 5b5bb5e115b3..de1b98211a19 100644 --- a/vendor/golang.org/x/mod/modfile/read.go +++ b/vendor/golang.org/x/mod/modfile/read.go @@ -225,9 +225,10 @@ func (x *FileSyntax) Cleanup() { if ww == 0 { continue } - if ww == 1 { - // Collapse block into single line. - line := &Line{ + if ww == 1 && len(stmt.RParen.Comments.Before) == 0 { + // Collapse block into single line but keep the Line reference used by the + // parsed File structure. + *stmt.Line[0] = Line{ Comments: Comments{ Before: commentsAdd(stmt.Before, stmt.Line[0].Before), Suffix: commentsAdd(stmt.Line[0].Suffix, stmt.Suffix), @@ -235,7 +236,7 @@ func (x *FileSyntax) Cleanup() { }, Token: stringsAdd(stmt.Token, stmt.Line[0].Token), } - x.Stmt[w] = line + x.Stmt[w] = stmt.Line[0] w++ continue } diff --git a/vendor/golang.org/x/mod/modfile/rule.go b/vendor/golang.org/x/mod/modfile/rule.go index 26acaa5f7c41..3e4a1d0ab4a6 100644 --- a/vendor/golang.org/x/mod/modfile/rule.go +++ b/vendor/golang.org/x/mod/modfile/rule.go @@ -38,10 +38,12 @@ type File struct { Module *Module Go *Go Toolchain *Toolchain + Godebug []*Godebug Require []*Require Exclude []*Exclude Replace []*Replace Retract []*Retract + Tool []*Tool Syntax *FileSyntax } @@ -65,6 +67,13 @@ type Toolchain struct { Syntax *Line } +// A Godebug is a single godebug key=value statement. +type Godebug struct { + Key string + Value string + Syntax *Line +} + // An Exclude is a single exclude statement. type Exclude struct { Mod module.Version @@ -85,6 +94,12 @@ type Retract struct { Syntax *Line } +// A Tool is a single tool statement. +type Tool struct { + Path string + Syntax *Line +} + // A VersionInterval represents a range of versions with upper and lower bounds. // Intervals are closed: both bounds are included. When Low is equal to High, // the interval may refer to a single version ('v1.2.3') or an interval @@ -289,7 +304,7 @@ func parseToFile(file string, data []byte, fix VersionFixer, strict bool) (parse }) } continue - case "module", "require", "exclude", "replace", "retract": + case "module", "godebug", "require", "exclude", "replace", "retract", "tool": for _, l := range x.Line { f.add(&errs, x, l, x.Token[0], l.Token, fix, strict) } @@ -308,7 +323,9 @@ var laxGoVersionRE = lazyregexp.New(`^v?(([1-9][0-9]*)\.(0|[1-9][0-9]*))([^0-9]. // Toolchains must be named beginning with `go1`, // like "go1.20.3" or "go1.20.3-gccgo". As a special case, "default" is also permitted. -// TODO(samthanawalla): Replace regex with https://pkg.go.dev/go/version#IsValid in 1.23+ +// Note that this regexp is a much looser condition than go/version.IsValid, +// for forward compatibility. +// (This code has to be work to identify new toolchains even if we tweak the syntax in the future.) var ToolchainRE = lazyregexp.New(`^default$|^go1($|\.)`) func (f *File) add(errs *ErrorList, block *LineBlock, line *Line, verb string, args []string, fix VersionFixer, strict bool) { @@ -384,7 +401,7 @@ func (f *File) add(errs *ErrorList, block *LineBlock, line *Line, verb string, a if len(args) != 1 { errorf("toolchain directive expects exactly one argument") return - } else if strict && !ToolchainRE.MatchString(args[0]) { + } else if !ToolchainRE.MatchString(args[0]) { errorf("invalid toolchain version '%s': must match format go1.23.0 or default", args[0]) return } @@ -412,6 +429,22 @@ func (f *File) add(errs *ErrorList, block *LineBlock, line *Line, verb string, a } f.Module.Mod = module.Version{Path: s} + case "godebug": + if len(args) != 1 || strings.ContainsAny(args[0], "\"`',") { + errorf("usage: godebug key=value") + return + } + key, value, ok := strings.Cut(args[0], "=") + if !ok { + errorf("usage: godebug key=value") + return + } + f.Godebug = append(f.Godebug, &Godebug{ + Key: key, + Value: value, + Syntax: line, + }) + case "require", "exclude": if len(args) != 2 { errorf("usage: %s module/path v1.2.3", verb) @@ -483,6 +516,21 @@ func (f *File) add(errs *ErrorList, block *LineBlock, line *Line, verb string, a Syntax: line, } f.Retract = append(f.Retract, retract) + + case "tool": + if len(args) != 1 { + errorf("tool directive expects exactly one argument") + return + } + s, err := parseString(&args[0]) + if err != nil { + errorf("invalid quoted string: %v", err) + return + } + f.Tool = append(f.Tool, &Tool{ + Path: s, + Syntax: line, + }) } } @@ -654,6 +702,22 @@ func (f *WorkFile) add(errs *ErrorList, line *Line, verb string, args []string, f.Toolchain = &Toolchain{Syntax: line} f.Toolchain.Name = args[0] + case "godebug": + if len(args) != 1 || strings.ContainsAny(args[0], "\"`',") { + errorf("usage: godebug key=value") + return + } + key, value, ok := strings.Cut(args[0], "=") + if !ok { + errorf("usage: godebug key=value") + return + } + f.Godebug = append(f.Godebug, &Godebug{ + Key: key, + Value: value, + Syntax: line, + }) + case "use": if len(args) != 1 { errorf("usage: %s local/dir", verb) @@ -929,6 +993,15 @@ func (f *File) Format() ([]byte, error) { // Cleanup cleans out all the cleared entries. func (f *File) Cleanup() { w := 0 + for _, g := range f.Godebug { + if g.Key != "" { + f.Godebug[w] = g + w++ + } + } + f.Godebug = f.Godebug[:w] + + w = 0 for _, r := range f.Require { if r.Mod.Path != "" { f.Require[w] = r @@ -975,6 +1048,8 @@ func (f *File) AddGoStmt(version string) error { var hint Expr if f.Module != nil && f.Module.Syntax != nil { hint = f.Module.Syntax + } else if f.Syntax == nil { + f.Syntax = new(FileSyntax) } f.Go = &Go{ Version: version, @@ -1025,6 +1100,45 @@ func (f *File) AddToolchainStmt(name string) error { return nil } +// AddGodebug sets the first godebug line for key to value, +// preserving any existing comments for that line and removing all +// other godebug lines for key. +// +// If no line currently exists for key, AddGodebug adds a new line +// at the end of the last godebug block. +func (f *File) AddGodebug(key, value string) error { + need := true + for _, g := range f.Godebug { + if g.Key == key { + if need { + g.Value = value + f.Syntax.updateLine(g.Syntax, "godebug", key+"="+value) + need = false + } else { + g.Syntax.markRemoved() + *g = Godebug{} + } + } + } + + if need { + f.addNewGodebug(key, value) + } + return nil +} + +// addNewGodebug adds a new godebug key=value line at the end +// of the last godebug block, regardless of any existing godebug lines for key. +func (f *File) addNewGodebug(key, value string) { + line := f.Syntax.addLine(nil, "godebug", key+"="+value) + g := &Godebug{ + Key: key, + Value: value, + Syntax: line, + } + f.Godebug = append(f.Godebug, g) +} + // AddRequire sets the first require line for path to version vers, // preserving any existing comments for that line and removing all // other lines for path. @@ -1332,6 +1446,16 @@ func (f *File) SetRequireSeparateIndirect(req []*Require) { f.SortBlocks() } +func (f *File) DropGodebug(key string) error { + for _, g := range f.Godebug { + if g.Key == key { + g.Syntax.markRemoved() + *g = Godebug{} + } + } + return nil +} + func (f *File) DropRequire(path string) error { for _, r := range f.Require { if r.Mod.Path == path { @@ -1465,6 +1589,36 @@ func (f *File) DropRetract(vi VersionInterval) error { return nil } +// AddTool adds a new tool directive with the given path. +// It does nothing if the tool line already exists. +func (f *File) AddTool(path string) error { + for _, t := range f.Tool { + if t.Path == path { + return nil + } + } + + f.Tool = append(f.Tool, &Tool{ + Path: path, + Syntax: f.Syntax.addLine(nil, "tool", path), + }) + + f.SortBlocks() + return nil +} + +// RemoveTool removes a tool directive with the given path. +// It does nothing if no such tool directive exists. +func (f *File) DropTool(path string) error { + for _, t := range f.Tool { + if t.Path == path { + t.Syntax.markRemoved() + *t = Tool{} + } + } + return nil +} + func (f *File) SortBlocks() { f.removeDups() // otherwise sorting is unsafe @@ -1491,9 +1645,9 @@ func (f *File) SortBlocks() { } } -// removeDups removes duplicate exclude and replace directives. +// removeDups removes duplicate exclude, replace and tool directives. // -// Earlier exclude directives take priority. +// Earlier exclude and tool directives take priority. // // Later replace directives take priority. // @@ -1503,10 +1657,10 @@ func (f *File) SortBlocks() { // retract directives are not de-duplicated since comments are // meaningful, and versions may be retracted multiple times. func (f *File) removeDups() { - removeDups(f.Syntax, &f.Exclude, &f.Replace) + removeDups(f.Syntax, &f.Exclude, &f.Replace, &f.Tool) } -func removeDups(syntax *FileSyntax, exclude *[]*Exclude, replace *[]*Replace) { +func removeDups(syntax *FileSyntax, exclude *[]*Exclude, replace *[]*Replace, tool *[]*Tool) { kill := make(map[*Line]bool) // Remove duplicate excludes. @@ -1547,6 +1701,24 @@ func removeDups(syntax *FileSyntax, exclude *[]*Exclude, replace *[]*Replace) { } *replace = repl + if tool != nil { + haveTool := make(map[string]bool) + for _, t := range *tool { + if haveTool[t.Path] { + kill[t.Syntax] = true + continue + } + haveTool[t.Path] = true + } + var newTool []*Tool + for _, t := range *tool { + if !kill[t.Syntax] { + newTool = append(newTool, t) + } + } + *tool = newTool + } + // Duplicate require and retract directives are not removed. // Drop killed statements from the syntax tree. diff --git a/vendor/golang.org/x/mod/modfile/work.go b/vendor/golang.org/x/mod/modfile/work.go index d7b99376ebe7..5387d0c26593 100644 --- a/vendor/golang.org/x/mod/modfile/work.go +++ b/vendor/golang.org/x/mod/modfile/work.go @@ -14,6 +14,7 @@ import ( type WorkFile struct { Go *Go Toolchain *Toolchain + Godebug []*Godebug Use []*Use Replace []*Replace @@ -68,7 +69,7 @@ func ParseWork(file string, data []byte, fix VersionFixer) (*WorkFile, error) { Err: fmt.Errorf("unknown block type: %s", strings.Join(x.Token, " ")), }) continue - case "use", "replace": + case "godebug", "use", "replace": for _, l := range x.Line { f.add(&errs, l, x.Token[0], l.Token, fix) } @@ -184,6 +185,55 @@ func (f *WorkFile) DropToolchainStmt() { } } +// AddGodebug sets the first godebug line for key to value, +// preserving any existing comments for that line and removing all +// other godebug lines for key. +// +// If no line currently exists for key, AddGodebug adds a new line +// at the end of the last godebug block. +func (f *WorkFile) AddGodebug(key, value string) error { + need := true + for _, g := range f.Godebug { + if g.Key == key { + if need { + g.Value = value + f.Syntax.updateLine(g.Syntax, "godebug", key+"="+value) + need = false + } else { + g.Syntax.markRemoved() + *g = Godebug{} + } + } + } + + if need { + f.addNewGodebug(key, value) + } + return nil +} + +// addNewGodebug adds a new godebug key=value line at the end +// of the last godebug block, regardless of any existing godebug lines for key. +func (f *WorkFile) addNewGodebug(key, value string) { + line := f.Syntax.addLine(nil, "godebug", key+"="+value) + g := &Godebug{ + Key: key, + Value: value, + Syntax: line, + } + f.Godebug = append(f.Godebug, g) +} + +func (f *WorkFile) DropGodebug(key string) error { + for _, g := range f.Godebug { + if g.Key == key { + g.Syntax.markRemoved() + *g = Godebug{} + } + } + return nil +} + func (f *WorkFile) AddUse(diskPath, modulePath string) error { need := true for _, d := range f.Use { @@ -281,5 +331,5 @@ func (f *WorkFile) SortBlocks() { // retract directives are not de-duplicated since comments are // meaningful, and versions may be retracted multiple times. func (f *WorkFile) removeDups() { - removeDups(f.Syntax, nil, &f.Replace) + removeDups(f.Syntax, nil, &f.Replace, nil) } diff --git a/vendor/golang.org/x/net/LICENSE b/vendor/golang.org/x/net/LICENSE index 6a66aea5eafe..2a7cf70da6e4 100644 --- a/vendor/golang.org/x/net/LICENSE +++ b/vendor/golang.org/x/net/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. +Copyright 2009 The Go Authors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its + * Neither the name of Google LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/vendor/golang.org/x/net/http/httpguts/httplex.go b/vendor/golang.org/x/net/http/httpguts/httplex.go index 6e071e852432..9b4de94019b4 100644 --- a/vendor/golang.org/x/net/http/httpguts/httplex.go +++ b/vendor/golang.org/x/net/http/httpguts/httplex.go @@ -12,7 +12,7 @@ import ( "golang.org/x/net/idna" ) -var isTokenTable = [127]bool{ +var isTokenTable = [256]bool{ '!': true, '#': true, '$': true, @@ -93,12 +93,7 @@ var isTokenTable = [127]bool{ } func IsTokenRune(r rune) bool { - i := int(r) - return i < len(isTokenTable) && isTokenTable[i] -} - -func isNotToken(r rune) bool { - return !IsTokenRune(r) + return r < utf8.RuneSelf && isTokenTable[byte(r)] } // HeaderValuesContainsToken reports whether any string in values @@ -202,8 +197,8 @@ func ValidHeaderFieldName(v string) bool { if len(v) == 0 { return false } - for _, r := range v { - if !IsTokenRune(r) { + for i := 0; i < len(v); i++ { + if !isTokenTable[v[i]] { return false } } diff --git a/vendor/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.go index 43557ab7e977..105c3b279c0f 100644 --- a/vendor/golang.org/x/net/http2/frame.go +++ b/vendor/golang.org/x/net/http2/frame.go @@ -490,6 +490,9 @@ func terminalReadFrameError(err error) bool { // returned error is ErrFrameTooLarge. Other errors may be of type // ConnectionError, StreamError, or anything else from the underlying // reader. +// +// If ReadFrame returns an error and a non-nil Frame, the Frame's StreamID +// indicates the stream responsible for the error. func (fr *Framer) ReadFrame() (Frame, error) { fr.errDetail = nil if fr.lastFrame != nil { @@ -1521,7 +1524,7 @@ func (fr *Framer) maxHeaderStringLen() int { // readMetaFrame returns 0 or more CONTINUATION frames from fr and // merge them into the provided hf and returns a MetaHeadersFrame // with the decoded hpack values. -func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) { +func (fr *Framer) readMetaFrame(hf *HeadersFrame) (Frame, error) { if fr.AllowIllegalReads { return nil, errors.New("illegal use of AllowIllegalReads with ReadMetaHeaders") } @@ -1592,7 +1595,7 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) { } // It would be nice to send a RST_STREAM before sending the GOAWAY, // but the structure of the server's frame writer makes this difficult. - return nil, ConnectionError(ErrCodeProtocol) + return mh, ConnectionError(ErrCodeProtocol) } // Also close the connection after any CONTINUATION frame following an @@ -1604,11 +1607,11 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) { } // It would be nice to send a RST_STREAM before sending the GOAWAY, // but the structure of the server's frame writer makes this difficult. - return nil, ConnectionError(ErrCodeProtocol) + return mh, ConnectionError(ErrCodeProtocol) } if _, err := hdec.Write(frag); err != nil { - return nil, ConnectionError(ErrCodeCompression) + return mh, ConnectionError(ErrCodeCompression) } if hc.HeadersEnded() { @@ -1625,7 +1628,7 @@ func (fr *Framer) readMetaFrame(hf *HeadersFrame) (*MetaHeadersFrame, error) { mh.HeadersFrame.invalidate() if err := hdec.Close(); err != nil { - return nil, ConnectionError(ErrCodeCompression) + return mh, ConnectionError(ErrCodeCompression) } if invalid != nil { fr.errDetail = invalid diff --git a/vendor/golang.org/x/net/http2/http2.go b/vendor/golang.org/x/net/http2/http2.go index 6f2df281872e..003e649f30c6 100644 --- a/vendor/golang.org/x/net/http2/http2.go +++ b/vendor/golang.org/x/net/http2/http2.go @@ -17,6 +17,7 @@ package http2 // import "golang.org/x/net/http2" import ( "bufio" + "context" "crypto/tls" "fmt" "io" @@ -26,6 +27,7 @@ import ( "strconv" "strings" "sync" + "time" "golang.org/x/net/http/httpguts" ) @@ -210,12 +212,6 @@ type stringWriter interface { WriteString(s string) (n int, err error) } -// A gate lets two goroutines coordinate their activities. -type gate chan struct{} - -func (g gate) Done() { g <- struct{}{} } -func (g gate) Wait() { <-g } - // A closeWaiter is like a sync.WaitGroup but only goes 1 to 0 (open to closed). type closeWaiter chan struct{} @@ -383,3 +379,14 @@ func validPseudoPath(v string) bool { // makes that struct also non-comparable, and generally doesn't add // any size (as long as it's first). type incomparable [0]func() + +// synctestGroupInterface is the methods of synctestGroup used by Server and Transport. +// It's defined as an interface here to let us keep synctestGroup entirely test-only +// and not a part of non-test builds. +type synctestGroupInterface interface { + Join() + Now() time.Time + NewTimer(d time.Duration) timer + AfterFunc(d time.Duration, f func()) timer + ContextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc) +} diff --git a/vendor/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.go index ce2e8b40eee6..6c349f3ec647 100644 --- a/vendor/golang.org/x/net/http2/server.go +++ b/vendor/golang.org/x/net/http2/server.go @@ -154,6 +154,39 @@ type Server struct { // so that we don't embed a Mutex in this struct, which will make the // struct non-copyable, which might break some callers. state *serverInternalState + + // Synchronization group used for testing. + // Outside of tests, this is nil. + group synctestGroupInterface +} + +func (s *Server) markNewGoroutine() { + if s.group != nil { + s.group.Join() + } +} + +func (s *Server) now() time.Time { + if s.group != nil { + return s.group.Now() + } + return time.Now() +} + +// newTimer creates a new time.Timer, or a synthetic timer in tests. +func (s *Server) newTimer(d time.Duration) timer { + if s.group != nil { + return s.group.NewTimer(d) + } + return timeTimer{time.NewTimer(d)} +} + +// afterFunc creates a new time.AfterFunc timer, or a synthetic timer in tests. +func (s *Server) afterFunc(d time.Duration, f func()) timer { + if s.group != nil { + return s.group.AfterFunc(d, f) + } + return timeTimer{time.AfterFunc(d, f)} } func (s *Server) initialConnRecvWindowSize() int32 { @@ -400,6 +433,10 @@ func (o *ServeConnOpts) handler() http.Handler { // // The opts parameter is optional. If nil, default values are used. func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { + s.serveConn(c, opts, nil) +} + +func (s *Server) serveConn(c net.Conn, opts *ServeConnOpts, newf func(*serverConn)) { baseCtx, cancel := serverConnBaseContext(c, opts) defer cancel() @@ -426,6 +463,9 @@ func (s *Server) ServeConn(c net.Conn, opts *ServeConnOpts) { pushEnabled: true, sawClientPreface: opts.SawClientPreface, } + if newf != nil { + newf(sc) + } s.state.registerConn(sc) defer s.state.unregisterConn(sc) @@ -599,8 +639,8 @@ type serverConn struct { inFrameScheduleLoop bool // whether we're in the scheduleFrameWrite loop needToSendGoAway bool // we need to schedule a GOAWAY frame write goAwayCode ErrCode - shutdownTimer *time.Timer // nil until used - idleTimer *time.Timer // nil if unused + shutdownTimer timer // nil until used + idleTimer timer // nil if unused // Owned by the writeFrameAsync goroutine: headerWriteBuf bytes.Buffer @@ -649,12 +689,12 @@ type stream struct { flow outflow // limits writing from Handler to client inflow inflow // what the client is allowed to POST/etc to us state streamState - resetQueued bool // RST_STREAM queued for write; set by sc.resetStream - gotTrailerHeader bool // HEADER frame for trailers was seen - wroteHeaders bool // whether we wrote headers (not status 100) - readDeadline *time.Timer // nil if unused - writeDeadline *time.Timer // nil if unused - closeErr error // set before cw is closed + resetQueued bool // RST_STREAM queued for write; set by sc.resetStream + gotTrailerHeader bool // HEADER frame for trailers was seen + wroteHeaders bool // whether we wrote headers (not status 100) + readDeadline timer // nil if unused + writeDeadline timer // nil if unused + closeErr error // set before cw is closed trailer http.Header // accumulated trailers reqTrailer http.Header // handler's Request.Trailer @@ -732,11 +772,7 @@ func isClosedConnError(err error) bool { return false } - // TODO: remove this string search and be more like the Windows - // case below. That might involve modifying the standard library - // to return better error types. - str := err.Error() - if strings.Contains(str, "use of closed network connection") { + if errors.Is(err, net.ErrClosed) { return true } @@ -815,8 +851,9 @@ type readFrameResult struct { // consumer is done with the frame. // It's run on its own goroutine. func (sc *serverConn) readFrames() { - gate := make(gate) - gateDone := gate.Done + sc.srv.markNewGoroutine() + gate := make(chan struct{}) + gateDone := func() { gate <- struct{}{} } for { f, err := sc.framer.ReadFrame() select { @@ -847,6 +884,7 @@ type frameWriteResult struct { // At most one goroutine can be running writeFrameAsync at a time per // serverConn. func (sc *serverConn) writeFrameAsync(wr FrameWriteRequest, wd *writeData) { + sc.srv.markNewGoroutine() var err error if wd == nil { err = wr.write.writeFrame(sc) @@ -926,13 +964,13 @@ func (sc *serverConn) serve() { sc.setConnState(http.StateIdle) if sc.srv.IdleTimeout > 0 { - sc.idleTimer = time.AfterFunc(sc.srv.IdleTimeout, sc.onIdleTimer) + sc.idleTimer = sc.srv.afterFunc(sc.srv.IdleTimeout, sc.onIdleTimer) defer sc.idleTimer.Stop() } go sc.readFrames() // closed by defer sc.conn.Close above - settingsTimer := time.AfterFunc(firstSettingsTimeout, sc.onSettingsTimer) + settingsTimer := sc.srv.afterFunc(firstSettingsTimeout, sc.onSettingsTimer) defer settingsTimer.Stop() loopNum := 0 @@ -1061,10 +1099,10 @@ func (sc *serverConn) readPreface() error { errc <- nil } }() - timer := time.NewTimer(prefaceTimeout) // TODO: configurable on *Server? + timer := sc.srv.newTimer(prefaceTimeout) // TODO: configurable on *Server? defer timer.Stop() select { - case <-timer.C: + case <-timer.C(): return errPrefaceTimeout case err := <-errc: if err == nil { @@ -1429,7 +1467,7 @@ func (sc *serverConn) goAway(code ErrCode) { func (sc *serverConn) shutDownIn(d time.Duration) { sc.serveG.check() - sc.shutdownTimer = time.AfterFunc(d, sc.onShutdownTimer) + sc.shutdownTimer = sc.srv.afterFunc(d, sc.onShutdownTimer) } func (sc *serverConn) resetStream(se StreamError) { @@ -1482,6 +1520,11 @@ func (sc *serverConn) processFrameFromReader(res readFrameResult) bool { sc.goAway(ErrCodeFlowControl) return true case ConnectionError: + if res.f != nil { + if id := res.f.Header().StreamID; id > sc.maxClientStreamID { + sc.maxClientStreamID = id + } + } sc.logf("http2: server connection error from %v: %v", sc.conn.RemoteAddr(), ev) sc.goAway(ErrCode(ev)) return true // goAway will handle shutdown @@ -1638,7 +1681,7 @@ func (sc *serverConn) closeStream(st *stream, err error) { delete(sc.streams, st.id) if len(sc.streams) == 0 { sc.setConnState(http.StateIdle) - if sc.srv.IdleTimeout > 0 { + if sc.srv.IdleTimeout > 0 && sc.idleTimer != nil { sc.idleTimer.Reset(sc.srv.IdleTimeout) } if h1ServerKeepAlivesDisabled(sc.hs) { @@ -1660,6 +1703,7 @@ func (sc *serverConn) closeStream(st *stream, err error) { } } st.closeErr = err + st.cancelCtx() st.cw.Close() // signals Handler's CloseNotifier, unblocks writes, etc sc.writeSched.CloseStream(st.id) } @@ -2020,7 +2064,7 @@ func (sc *serverConn) processHeaders(f *MetaHeadersFrame) error { // (in Go 1.8), though. That's a more sane option anyway. if sc.hs.ReadTimeout > 0 { sc.conn.SetReadDeadline(time.Time{}) - st.readDeadline = time.AfterFunc(sc.hs.ReadTimeout, st.onReadTimeout) + st.readDeadline = sc.srv.afterFunc(sc.hs.ReadTimeout, st.onReadTimeout) } return sc.scheduleHandler(id, rw, req, handler) @@ -2118,7 +2162,7 @@ func (sc *serverConn) newStream(id, pusherID uint32, state streamState) *stream st.flow.add(sc.initialStreamSendWindowSize) st.inflow.init(sc.srv.initialStreamRecvWindowSize()) if sc.hs.WriteTimeout > 0 { - st.writeDeadline = time.AfterFunc(sc.hs.WriteTimeout, st.onWriteTimeout) + st.writeDeadline = sc.srv.afterFunc(sc.hs.WriteTimeout, st.onWriteTimeout) } sc.streams[id] = st @@ -2342,6 +2386,7 @@ func (sc *serverConn) handlerDone() { // Run on its own goroutine. func (sc *serverConn) runHandler(rw *responseWriter, req *http.Request, handler func(http.ResponseWriter, *http.Request)) { + sc.srv.markNewGoroutine() defer sc.sendServeMsg(handlerDoneMsg) didPanic := true defer func() { @@ -2638,7 +2683,7 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { var date string if _, ok := rws.snapHeader["Date"]; !ok { // TODO(bradfitz): be faster here, like net/http? measure. - date = time.Now().UTC().Format(http.TimeFormat) + date = rws.conn.srv.now().UTC().Format(http.TimeFormat) } for _, v := range rws.snapHeader["Trailer"] { @@ -2760,7 +2805,7 @@ func (rws *responseWriterState) promoteUndeclaredTrailers() { func (w *responseWriter) SetReadDeadline(deadline time.Time) error { st := w.rws.stream - if !deadline.IsZero() && deadline.Before(time.Now()) { + if !deadline.IsZero() && deadline.Before(w.rws.conn.srv.now()) { // If we're setting a deadline in the past, reset the stream immediately // so writes after SetWriteDeadline returns will fail. st.onReadTimeout() @@ -2776,9 +2821,9 @@ func (w *responseWriter) SetReadDeadline(deadline time.Time) error { if deadline.IsZero() { st.readDeadline = nil } else if st.readDeadline == nil { - st.readDeadline = time.AfterFunc(deadline.Sub(time.Now()), st.onReadTimeout) + st.readDeadline = sc.srv.afterFunc(deadline.Sub(sc.srv.now()), st.onReadTimeout) } else { - st.readDeadline.Reset(deadline.Sub(time.Now())) + st.readDeadline.Reset(deadline.Sub(sc.srv.now())) } }) return nil @@ -2786,7 +2831,7 @@ func (w *responseWriter) SetReadDeadline(deadline time.Time) error { func (w *responseWriter) SetWriteDeadline(deadline time.Time) error { st := w.rws.stream - if !deadline.IsZero() && deadline.Before(time.Now()) { + if !deadline.IsZero() && deadline.Before(w.rws.conn.srv.now()) { // If we're setting a deadline in the past, reset the stream immediately // so writes after SetWriteDeadline returns will fail. st.onWriteTimeout() @@ -2802,9 +2847,9 @@ func (w *responseWriter) SetWriteDeadline(deadline time.Time) error { if deadline.IsZero() { st.writeDeadline = nil } else if st.writeDeadline == nil { - st.writeDeadline = time.AfterFunc(deadline.Sub(time.Now()), st.onWriteTimeout) + st.writeDeadline = sc.srv.afterFunc(deadline.Sub(sc.srv.now()), st.onWriteTimeout) } else { - st.writeDeadline.Reset(deadline.Sub(time.Now())) + st.writeDeadline.Reset(deadline.Sub(sc.srv.now())) } }) return nil diff --git a/vendor/golang.org/x/net/http2/testsync.go b/vendor/golang.org/x/net/http2/testsync.go deleted file mode 100644 index 61075bd16d31..000000000000 --- a/vendor/golang.org/x/net/http2/testsync.go +++ /dev/null @@ -1,331 +0,0 @@ -// Copyright 2024 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. -package http2 - -import ( - "context" - "sync" - "time" -) - -// testSyncHooks coordinates goroutines in tests. -// -// For example, a call to ClientConn.RoundTrip involves several goroutines, including: -// - the goroutine running RoundTrip; -// - the clientStream.doRequest goroutine, which writes the request; and -// - the clientStream.readLoop goroutine, which reads the response. -// -// Using testSyncHooks, a test can start a RoundTrip and identify when all these goroutines -// are blocked waiting for some condition such as reading the Request.Body or waiting for -// flow control to become available. -// -// The testSyncHooks also manage timers and synthetic time in tests. -// This permits us to, for example, start a request and cause it to time out waiting for -// response headers without resorting to time.Sleep calls. -type testSyncHooks struct { - // active/inactive act as a mutex and condition variable. - // - // - neither chan contains a value: testSyncHooks is locked. - // - active contains a value: unlocked, and at least one goroutine is not blocked - // - inactive contains a value: unlocked, and all goroutines are blocked - active chan struct{} - inactive chan struct{} - - // goroutine counts - total int // total goroutines - condwait map[*sync.Cond]int // blocked in sync.Cond.Wait - blocked []*testBlockedGoroutine // otherwise blocked - - // fake time - now time.Time - timers []*fakeTimer - - // Transport testing: Report various events. - newclientconn func(*ClientConn) - newstream func(*clientStream) -} - -// testBlockedGoroutine is a blocked goroutine. -type testBlockedGoroutine struct { - f func() bool // blocked until f returns true - ch chan struct{} // closed when unblocked -} - -func newTestSyncHooks() *testSyncHooks { - h := &testSyncHooks{ - active: make(chan struct{}, 1), - inactive: make(chan struct{}, 1), - condwait: map[*sync.Cond]int{}, - } - h.inactive <- struct{}{} - h.now = time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC) - return h -} - -// lock acquires the testSyncHooks mutex. -func (h *testSyncHooks) lock() { - select { - case <-h.active: - case <-h.inactive: - } -} - -// waitInactive waits for all goroutines to become inactive. -func (h *testSyncHooks) waitInactive() { - for { - <-h.inactive - if !h.unlock() { - break - } - } -} - -// unlock releases the testSyncHooks mutex. -// It reports whether any goroutines are active. -func (h *testSyncHooks) unlock() (active bool) { - // Look for a blocked goroutine which can be unblocked. - blocked := h.blocked[:0] - unblocked := false - for _, b := range h.blocked { - if !unblocked && b.f() { - unblocked = true - close(b.ch) - } else { - blocked = append(blocked, b) - } - } - h.blocked = blocked - - // Count goroutines blocked on condition variables. - condwait := 0 - for _, count := range h.condwait { - condwait += count - } - - if h.total > condwait+len(blocked) { - h.active <- struct{}{} - return true - } else { - h.inactive <- struct{}{} - return false - } -} - -// goRun starts a new goroutine. -func (h *testSyncHooks) goRun(f func()) { - h.lock() - h.total++ - h.unlock() - go func() { - defer func() { - h.lock() - h.total-- - h.unlock() - }() - f() - }() -} - -// blockUntil indicates that a goroutine is blocked waiting for some condition to become true. -// It waits until f returns true before proceeding. -// -// Example usage: -// -// h.blockUntil(func() bool { -// // Is the context done yet? -// select { -// case <-ctx.Done(): -// default: -// return false -// } -// return true -// }) -// // Wait for the context to become done. -// <-ctx.Done() -// -// The function f passed to blockUntil must be non-blocking and idempotent. -func (h *testSyncHooks) blockUntil(f func() bool) { - if f() { - return - } - ch := make(chan struct{}) - h.lock() - h.blocked = append(h.blocked, &testBlockedGoroutine{ - f: f, - ch: ch, - }) - h.unlock() - <-ch -} - -// broadcast is sync.Cond.Broadcast. -func (h *testSyncHooks) condBroadcast(cond *sync.Cond) { - h.lock() - delete(h.condwait, cond) - h.unlock() - cond.Broadcast() -} - -// broadcast is sync.Cond.Wait. -func (h *testSyncHooks) condWait(cond *sync.Cond) { - h.lock() - h.condwait[cond]++ - h.unlock() -} - -// newTimer creates a new fake timer. -func (h *testSyncHooks) newTimer(d time.Duration) timer { - h.lock() - defer h.unlock() - t := &fakeTimer{ - hooks: h, - when: h.now.Add(d), - c: make(chan time.Time), - } - h.timers = append(h.timers, t) - return t -} - -// afterFunc creates a new fake AfterFunc timer. -func (h *testSyncHooks) afterFunc(d time.Duration, f func()) timer { - h.lock() - defer h.unlock() - t := &fakeTimer{ - hooks: h, - when: h.now.Add(d), - f: f, - } - h.timers = append(h.timers, t) - return t -} - -func (h *testSyncHooks) contextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc) { - ctx, cancel := context.WithCancel(ctx) - t := h.afterFunc(d, cancel) - return ctx, func() { - t.Stop() - cancel() - } -} - -func (h *testSyncHooks) timeUntilEvent() time.Duration { - h.lock() - defer h.unlock() - var next time.Time - for _, t := range h.timers { - if next.IsZero() || t.when.Before(next) { - next = t.when - } - } - if d := next.Sub(h.now); d > 0 { - return d - } - return 0 -} - -// advance advances time and causes synthetic timers to fire. -func (h *testSyncHooks) advance(d time.Duration) { - h.lock() - defer h.unlock() - h.now = h.now.Add(d) - timers := h.timers[:0] - for _, t := range h.timers { - t := t // remove after go.mod depends on go1.22 - t.mu.Lock() - switch { - case t.when.After(h.now): - timers = append(timers, t) - case t.when.IsZero(): - // stopped timer - default: - t.when = time.Time{} - if t.c != nil { - close(t.c) - } - if t.f != nil { - h.total++ - go func() { - defer func() { - h.lock() - h.total-- - h.unlock() - }() - t.f() - }() - } - } - t.mu.Unlock() - } - h.timers = timers -} - -// A timer wraps a time.Timer, or a synthetic equivalent in tests. -// Unlike time.Timer, timer is single-use: The timer channel is closed when the timer expires. -type timer interface { - C() <-chan time.Time - Stop() bool - Reset(d time.Duration) bool -} - -// timeTimer implements timer using real time. -type timeTimer struct { - t *time.Timer - c chan time.Time -} - -// newTimeTimer creates a new timer using real time. -func newTimeTimer(d time.Duration) timer { - ch := make(chan time.Time) - t := time.AfterFunc(d, func() { - close(ch) - }) - return &timeTimer{t, ch} -} - -// newTimeAfterFunc creates an AfterFunc timer using real time. -func newTimeAfterFunc(d time.Duration, f func()) timer { - return &timeTimer{ - t: time.AfterFunc(d, f), - } -} - -func (t timeTimer) C() <-chan time.Time { return t.c } -func (t timeTimer) Stop() bool { return t.t.Stop() } -func (t timeTimer) Reset(d time.Duration) bool { return t.t.Reset(d) } - -// fakeTimer implements timer using fake time. -type fakeTimer struct { - hooks *testSyncHooks - - mu sync.Mutex - when time.Time // when the timer will fire - c chan time.Time // closed when the timer fires; mutually exclusive with f - f func() // called when the timer fires; mutually exclusive with c -} - -func (t *fakeTimer) C() <-chan time.Time { return t.c } - -func (t *fakeTimer) Stop() bool { - t.mu.Lock() - defer t.mu.Unlock() - stopped := t.when.IsZero() - t.when = time.Time{} - return stopped -} - -func (t *fakeTimer) Reset(d time.Duration) bool { - if t.c != nil || t.f == nil { - panic("fakeTimer only supports Reset on AfterFunc timers") - } - t.mu.Lock() - defer t.mu.Unlock() - t.hooks.lock() - defer t.hooks.unlock() - active := !t.when.IsZero() - t.when = t.hooks.now.Add(d) - if !active { - t.hooks.timers = append(t.hooks.timers, t) - } - return active -} diff --git a/vendor/golang.org/x/net/http2/timer.go b/vendor/golang.org/x/net/http2/timer.go new file mode 100644 index 000000000000..0b1c17b81296 --- /dev/null +++ b/vendor/golang.org/x/net/http2/timer.go @@ -0,0 +1,20 @@ +// Copyright 2024 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. +package http2 + +import "time" + +// A timer is a time.Timer, as an interface which can be replaced in tests. +type timer = interface { + C() <-chan time.Time + Reset(d time.Duration) bool + Stop() bool +} + +// timeTimer adapts a time.Timer to the timer interface. +type timeTimer struct { + *time.Timer +} + +func (t timeTimer) C() <-chan time.Time { return t.Timer.C } diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go index ce375c8c7535..61f511f97aa4 100644 --- a/vendor/golang.org/x/net/http2/transport.go +++ b/vendor/golang.org/x/net/http2/transport.go @@ -185,7 +185,45 @@ type Transport struct { connPoolOnce sync.Once connPoolOrDef ClientConnPool // non-nil version of ConnPool - syncHooks *testSyncHooks + *transportTestHooks +} + +// Hook points used for testing. +// Outside of tests, t.transportTestHooks is nil and these all have minimal implementations. +// Inside tests, see the testSyncHooks function docs. + +type transportTestHooks struct { + newclientconn func(*ClientConn) + group synctestGroupInterface +} + +func (t *Transport) markNewGoroutine() { + if t != nil && t.transportTestHooks != nil { + t.transportTestHooks.group.Join() + } +} + +// newTimer creates a new time.Timer, or a synthetic timer in tests. +func (t *Transport) newTimer(d time.Duration) timer { + if t.transportTestHooks != nil { + return t.transportTestHooks.group.NewTimer(d) + } + return timeTimer{time.NewTimer(d)} +} + +// afterFunc creates a new time.AfterFunc timer, or a synthetic timer in tests. +func (t *Transport) afterFunc(d time.Duration, f func()) timer { + if t.transportTestHooks != nil { + return t.transportTestHooks.group.AfterFunc(d, f) + } + return timeTimer{time.AfterFunc(d, f)} +} + +func (t *Transport) contextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc) { + if t.transportTestHooks != nil { + return t.transportTestHooks.group.ContextWithTimeout(ctx, d) + } + return context.WithTimeout(ctx, d) } func (t *Transport) maxHeaderListSize() uint32 { @@ -352,60 +390,6 @@ type ClientConn struct { werr error // first write error that has occurred hbuf bytes.Buffer // HPACK encoder writes into this henc *hpack.Encoder - - syncHooks *testSyncHooks // can be nil -} - -// Hook points used for testing. -// Outside of tests, cc.syncHooks is nil and these all have minimal implementations. -// Inside tests, see the testSyncHooks function docs. - -// goRun starts a new goroutine. -func (cc *ClientConn) goRun(f func()) { - if cc.syncHooks != nil { - cc.syncHooks.goRun(f) - return - } - go f() -} - -// condBroadcast is cc.cond.Broadcast. -func (cc *ClientConn) condBroadcast() { - if cc.syncHooks != nil { - cc.syncHooks.condBroadcast(cc.cond) - } - cc.cond.Broadcast() -} - -// condWait is cc.cond.Wait. -func (cc *ClientConn) condWait() { - if cc.syncHooks != nil { - cc.syncHooks.condWait(cc.cond) - } - cc.cond.Wait() -} - -// newTimer creates a new time.Timer, or a synthetic timer in tests. -func (cc *ClientConn) newTimer(d time.Duration) timer { - if cc.syncHooks != nil { - return cc.syncHooks.newTimer(d) - } - return newTimeTimer(d) -} - -// afterFunc creates a new time.AfterFunc timer, or a synthetic timer in tests. -func (cc *ClientConn) afterFunc(d time.Duration, f func()) timer { - if cc.syncHooks != nil { - return cc.syncHooks.afterFunc(d, f) - } - return newTimeAfterFunc(d, f) -} - -func (cc *ClientConn) contextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc) { - if cc.syncHooks != nil { - return cc.syncHooks.contextWithTimeout(ctx, d) - } - return context.WithTimeout(ctx, d) } // clientStream is the state for a single HTTP/2 stream. One of these @@ -487,7 +471,7 @@ func (cs *clientStream) abortStreamLocked(err error) { // TODO(dneil): Clean up tests where cs.cc.cond is nil. if cs.cc.cond != nil { // Wake up writeRequestBody if it is waiting on flow control. - cs.cc.condBroadcast() + cs.cc.cond.Broadcast() } } @@ -497,7 +481,7 @@ func (cs *clientStream) abortRequestBodyWrite() { defer cc.mu.Unlock() if cs.reqBody != nil && cs.reqBodyClosed == nil { cs.closeReqBodyLocked() - cc.condBroadcast() + cc.cond.Broadcast() } } @@ -507,10 +491,11 @@ func (cs *clientStream) closeReqBodyLocked() { } cs.reqBodyClosed = make(chan struct{}) reqBodyClosed := cs.reqBodyClosed - cs.cc.goRun(func() { + go func() { + cs.cc.t.markNewGoroutine() cs.reqBody.Close() close(reqBodyClosed) - }) + }() } type stickyErrWriter struct { @@ -626,21 +611,7 @@ func (t *Transport) RoundTripOpt(req *http.Request, opt RoundTripOpt) (*http.Res backoff := float64(uint(1) << (uint(retry) - 1)) backoff += backoff * (0.1 * mathrand.Float64()) d := time.Second * time.Duration(backoff) - var tm timer - if t.syncHooks != nil { - tm = t.syncHooks.newTimer(d) - t.syncHooks.blockUntil(func() bool { - select { - case <-tm.C(): - case <-req.Context().Done(): - default: - return false - } - return true - }) - } else { - tm = newTimeTimer(d) - } + tm := t.newTimer(d) select { case <-tm.C(): t.vlogf("RoundTrip retrying after failure: %v", roundTripErr) @@ -725,8 +696,8 @@ func canRetryError(err error) bool { } func (t *Transport) dialClientConn(ctx context.Context, addr string, singleUse bool) (*ClientConn, error) { - if t.syncHooks != nil { - return t.newClientConn(nil, singleUse, t.syncHooks) + if t.transportTestHooks != nil { + return t.newClientConn(nil, singleUse) } host, _, err := net.SplitHostPort(addr) if err != nil { @@ -736,7 +707,7 @@ func (t *Transport) dialClientConn(ctx context.Context, addr string, singleUse b if err != nil { return nil, err } - return t.newClientConn(tconn, singleUse, nil) + return t.newClientConn(tconn, singleUse) } func (t *Transport) newTLSConfig(host string) *tls.Config { @@ -802,10 +773,10 @@ func (t *Transport) maxEncoderHeaderTableSize() uint32 { } func (t *Transport) NewClientConn(c net.Conn) (*ClientConn, error) { - return t.newClientConn(c, t.disableKeepAlives(), nil) + return t.newClientConn(c, t.disableKeepAlives()) } -func (t *Transport) newClientConn(c net.Conn, singleUse bool, hooks *testSyncHooks) (*ClientConn, error) { +func (t *Transport) newClientConn(c net.Conn, singleUse bool) (*ClientConn, error) { cc := &ClientConn{ t: t, tconn: c, @@ -820,16 +791,12 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool, hooks *testSyncHoo wantSettingsAck: true, pings: make(map[[8]byte]chan struct{}), reqHeaderMu: make(chan struct{}, 1), - syncHooks: hooks, } - if hooks != nil { - hooks.newclientconn(cc) + if t.transportTestHooks != nil { + t.markNewGoroutine() + t.transportTestHooks.newclientconn(cc) c = cc.tconn } - if d := t.idleConnTimeout(); d != 0 { - cc.idleTimeout = d - cc.idleTimer = cc.afterFunc(d, cc.onIdleTimeout) - } if VerboseLogs { t.vlogf("http2: Transport creating client conn %p to %v", cc, c.RemoteAddr()) } @@ -860,10 +827,6 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool, hooks *testSyncHoo cc.henc.SetMaxDynamicTableSizeLimit(t.maxEncoderHeaderTableSize()) cc.peerMaxHeaderTableSize = initialHeaderTableSize - if t.AllowHTTP { - cc.nextStreamID = 3 - } - if cs, ok := c.(connectionStater); ok { state := cs.ConnectionState() cc.tlsState = &state @@ -893,7 +856,13 @@ func (t *Transport) newClientConn(c net.Conn, singleUse bool, hooks *testSyncHoo return nil, cc.werr } - cc.goRun(cc.readLoop) + // Start the idle timer after the connection is fully initialized. + if d := t.idleConnTimeout(); d != 0 { + cc.idleTimeout = d + cc.idleTimer = t.afterFunc(d, cc.onIdleTimeout) + } + + go cc.readLoop() return cc, nil } @@ -901,7 +870,7 @@ func (cc *ClientConn) healthCheck() { pingTimeout := cc.t.pingTimeout() // We don't need to periodically ping in the health check, because the readLoop of ClientConn will // trigger the healthCheck again if there is no frame received. - ctx, cancel := cc.contextWithTimeout(context.Background(), pingTimeout) + ctx, cancel := cc.t.contextWithTimeout(context.Background(), pingTimeout) defer cancel() cc.vlogf("http2: Transport sending health check") err := cc.Ping(ctx) @@ -936,7 +905,20 @@ func (cc *ClientConn) setGoAway(f *GoAwayFrame) { } last := f.LastStreamID for streamID, cs := range cc.streams { - if streamID > last { + if streamID <= last { + // The server's GOAWAY indicates that it received this stream. + // It will either finish processing it, or close the connection + // without doing so. Either way, leave the stream alone for now. + continue + } + if streamID == 1 && cc.goAway.ErrCode != ErrCodeNo { + // Don't retry the first stream on a connection if we get a non-NO error. + // If the server is sending an error on a new connection, + // retrying the request on a new one probably isn't going to work. + cs.abortStreamLocked(fmt.Errorf("http2: Transport received GOAWAY from server ErrCode:%v", cc.goAway.ErrCode)) + } else { + // Aborting the stream with errClentConnGotGoAway indicates that + // the request should be retried on a new connection. cs.abortStreamLocked(errClientConnGotGoAway) } } @@ -1131,7 +1113,8 @@ func (cc *ClientConn) Shutdown(ctx context.Context) error { // Wait for all in-flight streams to complete or connection to close done := make(chan struct{}) cancelled := false // guarded by cc.mu - cc.goRun(func() { + go func() { + cc.t.markNewGoroutine() cc.mu.Lock() defer cc.mu.Unlock() for { @@ -1143,9 +1126,9 @@ func (cc *ClientConn) Shutdown(ctx context.Context) error { if cancelled { break } - cc.condWait() + cc.cond.Wait() } - }) + }() shutdownEnterWaitStateHook() select { case <-done: @@ -1155,7 +1138,7 @@ func (cc *ClientConn) Shutdown(ctx context.Context) error { cc.mu.Lock() // Free the goroutine above cancelled = true - cc.condBroadcast() + cc.cond.Broadcast() cc.mu.Unlock() return ctx.Err() } @@ -1193,7 +1176,7 @@ func (cc *ClientConn) closeForError(err error) { for _, cs := range cc.streams { cs.abortStreamLocked(err) } - cc.condBroadcast() + cc.cond.Broadcast() cc.mu.Unlock() cc.closeConn() } @@ -1308,23 +1291,30 @@ func (cc *ClientConn) roundTrip(req *http.Request, streamf func(*clientStream)) respHeaderRecv: make(chan struct{}), donec: make(chan struct{}), } - cc.goRun(func() { - cs.doRequest(req) - }) + + // TODO(bradfitz): this is a copy of the logic in net/http. Unify somewhere? + if !cc.t.disableCompression() && + req.Header.Get("Accept-Encoding") == "" && + req.Header.Get("Range") == "" && + !cs.isHead { + // Request gzip only, not deflate. Deflate is ambiguous and + // not as universally supported anyway. + // See: https://zlib.net/zlib_faq.html#faq39 + // + // Note that we don't request this for HEAD requests, + // due to a bug in nginx: + // http://trac.nginx.org/nginx/ticket/358 + // https://golang.org/issue/5522 + // + // We don't request gzip if the request is for a range, since + // auto-decoding a portion of a gzipped document will just fail + // anyway. See https://golang.org/issue/8923 + cs.requestedGzip = true + } + + go cs.doRequest(req, streamf) waitDone := func() error { - if cc.syncHooks != nil { - cc.syncHooks.blockUntil(func() bool { - select { - case <-cs.donec: - case <-ctx.Done(): - case <-cs.reqCancel: - default: - return false - } - return true - }) - } select { case <-cs.donec: return nil @@ -1385,24 +1375,7 @@ func (cc *ClientConn) roundTrip(req *http.Request, streamf func(*clientStream)) return err } - if streamf != nil { - streamf(cs) - } - for { - if cc.syncHooks != nil { - cc.syncHooks.blockUntil(func() bool { - select { - case <-cs.respHeaderRecv: - case <-cs.abort: - case <-ctx.Done(): - case <-cs.reqCancel: - default: - return false - } - return true - }) - } select { case <-cs.respHeaderRecv: return handleResponseHeaders() @@ -1432,8 +1405,9 @@ func (cc *ClientConn) roundTrip(req *http.Request, streamf func(*clientStream)) // doRequest runs for the duration of the request lifetime. // // It sends the request and performs post-request cleanup (closing Request.Body, etc.). -func (cs *clientStream) doRequest(req *http.Request) { - err := cs.writeRequest(req) +func (cs *clientStream) doRequest(req *http.Request, streamf func(*clientStream)) { + cs.cc.t.markNewGoroutine() + err := cs.writeRequest(req, streamf) cs.cleanupWriteRequest(err) } @@ -1444,7 +1418,7 @@ func (cs *clientStream) doRequest(req *http.Request) { // // It returns non-nil if the request ends otherwise. // If the returned error is StreamError, the error Code may be used in resetting the stream. -func (cs *clientStream) writeRequest(req *http.Request) (err error) { +func (cs *clientStream) writeRequest(req *http.Request, streamf func(*clientStream)) (err error) { cc := cs.cc ctx := cs.ctx @@ -1458,21 +1432,6 @@ func (cs *clientStream) writeRequest(req *http.Request) (err error) { if cc.reqHeaderMu == nil { panic("RoundTrip on uninitialized ClientConn") // for tests } - var newStreamHook func(*clientStream) - if cc.syncHooks != nil { - newStreamHook = cc.syncHooks.newstream - cc.syncHooks.blockUntil(func() bool { - select { - case cc.reqHeaderMu <- struct{}{}: - <-cc.reqHeaderMu - case <-cs.reqCancel: - case <-ctx.Done(): - default: - return false - } - return true - }) - } select { case cc.reqHeaderMu <- struct{}{}: case <-cs.reqCancel: @@ -1497,28 +1456,8 @@ func (cs *clientStream) writeRequest(req *http.Request) (err error) { } cc.mu.Unlock() - if newStreamHook != nil { - newStreamHook(cs) - } - - // TODO(bradfitz): this is a copy of the logic in net/http. Unify somewhere? - if !cc.t.disableCompression() && - req.Header.Get("Accept-Encoding") == "" && - req.Header.Get("Range") == "" && - !cs.isHead { - // Request gzip only, not deflate. Deflate is ambiguous and - // not as universally supported anyway. - // See: https://zlib.net/zlib_faq.html#faq39 - // - // Note that we don't request this for HEAD requests, - // due to a bug in nginx: - // http://trac.nginx.org/nginx/ticket/358 - // https://golang.org/issue/5522 - // - // We don't request gzip if the request is for a range, since - // auto-decoding a portion of a gzipped document will just fail - // anyway. See https://golang.org/issue/8923 - cs.requestedGzip = true + if streamf != nil { + streamf(cs) } continueTimeout := cc.t.expectContinueTimeout() @@ -1581,7 +1520,7 @@ func (cs *clientStream) writeRequest(req *http.Request) (err error) { var respHeaderTimer <-chan time.Time var respHeaderRecv chan struct{} if d := cc.responseHeaderTimeout(); d != 0 { - timer := cc.newTimer(d) + timer := cc.t.newTimer(d) defer timer.Stop() respHeaderTimer = timer.C() respHeaderRecv = cs.respHeaderRecv @@ -1590,21 +1529,6 @@ func (cs *clientStream) writeRequest(req *http.Request) (err error) { // or until the request is aborted (via context, error, or otherwise), // whichever comes first. for { - if cc.syncHooks != nil { - cc.syncHooks.blockUntil(func() bool { - select { - case <-cs.peerClosed: - case <-respHeaderTimer: - case <-respHeaderRecv: - case <-cs.abort: - case <-ctx.Done(): - case <-cs.reqCancel: - default: - return false - } - return true - }) - } select { case <-cs.peerClosed: return nil @@ -1753,7 +1677,7 @@ func (cc *ClientConn) awaitOpenSlotForStreamLocked(cs *clientStream) error { return nil } cc.pendingRequests++ - cc.condWait() + cc.cond.Wait() cc.pendingRequests-- select { case <-cs.abort: @@ -2015,7 +1939,7 @@ func (cs *clientStream) awaitFlowControl(maxBytes int) (taken int32, err error) cs.flow.take(take) return take, nil } - cc.condWait() + cc.cond.Wait() } } @@ -2298,7 +2222,7 @@ func (cc *ClientConn) forgetStreamID(id uint32) { } // Wake up writeRequestBody via clientStream.awaitFlowControl and // wake up RoundTrip if there is a pending request. - cc.condBroadcast() + cc.cond.Broadcast() closeOnIdle := cc.singleUse || cc.doNotReuse || cc.t.disableKeepAlives() || cc.goAway != nil if closeOnIdle && cc.streamsReserved == 0 && len(cc.streams) == 0 { @@ -2320,6 +2244,7 @@ type clientConnReadLoop struct { // readLoop runs in its own goroutine and reads and dispatches frames. func (cc *ClientConn) readLoop() { + cc.t.markNewGoroutine() rl := &clientConnReadLoop{cc: cc} defer rl.cleanup() cc.readerErr = rl.run() @@ -2386,7 +2311,7 @@ func (rl *clientConnReadLoop) cleanup() { cs.abortStreamLocked(err) } } - cc.condBroadcast() + cc.cond.Broadcast() cc.mu.Unlock() } @@ -2423,7 +2348,7 @@ func (rl *clientConnReadLoop) run() error { readIdleTimeout := cc.t.ReadIdleTimeout var t timer if readIdleTimeout != 0 { - t = cc.afterFunc(readIdleTimeout, cc.healthCheck) + t = cc.t.afterFunc(readIdleTimeout, cc.healthCheck) } for { f, err := cc.fr.ReadFrame() @@ -3021,7 +2946,7 @@ func (rl *clientConnReadLoop) processSettingsNoWrite(f *SettingsFrame) error { for _, cs := range cc.streams { cs.flow.add(delta) } - cc.condBroadcast() + cc.cond.Broadcast() cc.initialWindowSize = s.Val case SettingHeaderTableSize: @@ -3076,7 +3001,7 @@ func (rl *clientConnReadLoop) processWindowUpdate(f *WindowUpdateFrame) error { return ConnectionError(ErrCodeFlowControl) } - cc.condBroadcast() + cc.cond.Broadcast() return nil } @@ -3120,7 +3045,8 @@ func (cc *ClientConn) Ping(ctx context.Context) error { } var pingError error errc := make(chan struct{}) - cc.goRun(func() { + go func() { + cc.t.markNewGoroutine() cc.wmu.Lock() defer cc.wmu.Unlock() if pingError = cc.fr.WritePing(false, p); pingError != nil { @@ -3131,20 +3057,7 @@ func (cc *ClientConn) Ping(ctx context.Context) error { close(errc) return } - }) - if cc.syncHooks != nil { - cc.syncHooks.blockUntil(func() bool { - select { - case <-c: - case <-errc: - case <-ctx.Done(): - case <-cc.readerDone: - default: - return false - } - return true - }) - } + }() select { case <-c: return nil diff --git a/vendor/golang.org/x/net/http2/writesched_priority.go b/vendor/golang.org/x/net/http2/writesched_priority.go index 0a242c669e2c..f6783339d11e 100644 --- a/vendor/golang.org/x/net/http2/writesched_priority.go +++ b/vendor/golang.org/x/net/http2/writesched_priority.go @@ -443,8 +443,8 @@ func (ws *priorityWriteScheduler) addClosedOrIdleNode(list *[]*priorityNode, max } func (ws *priorityWriteScheduler) removeNode(n *priorityNode) { - for k := n.kids; k != nil; k = k.next { - k.setParent(n.parent) + for n.kids != nil { + n.kids.setParent(n.parent) } n.setParent(nil) delete(ws.nodes, n.id) diff --git a/vendor/golang.org/x/oauth2/LICENSE b/vendor/golang.org/x/oauth2/LICENSE index 6a66aea5eafe..2a7cf70da6e4 100644 --- a/vendor/golang.org/x/oauth2/LICENSE +++ b/vendor/golang.org/x/oauth2/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. +Copyright 2009 The Go Authors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its + * Neither the name of Google LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/vendor/golang.org/x/oauth2/internal/client_appengine.go b/vendor/golang.org/x/oauth2/internal/client_appengine.go deleted file mode 100644 index d28140f789ec..000000000000 --- a/vendor/golang.org/x/oauth2/internal/client_appengine.go +++ /dev/null @@ -1,13 +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 appengine - -package internal - -import "google.golang.org/appengine/urlfetch" - -func init() { - appengineClientHook = urlfetch.Client -} diff --git a/vendor/golang.org/x/oauth2/internal/transport.go b/vendor/golang.org/x/oauth2/internal/transport.go index 572074a637dd..b9db01ddfdff 100644 --- a/vendor/golang.org/x/oauth2/internal/transport.go +++ b/vendor/golang.org/x/oauth2/internal/transport.go @@ -18,16 +18,11 @@ var HTTPClient ContextKey // because nobody else can create a ContextKey, being unexported. type ContextKey struct{} -var appengineClientHook func(context.Context) *http.Client - func ContextClient(ctx context.Context) *http.Client { if ctx != nil { if hc, ok := ctx.Value(HTTPClient).(*http.Client); ok { return hc } } - if appengineClientHook != nil { - return appengineClientHook(ctx) - } return http.DefaultClient } diff --git a/vendor/golang.org/x/oauth2/oauth2.go b/vendor/golang.org/x/oauth2/oauth2.go index 90a2c3d6dcb1..09f6a49b80a7 100644 --- a/vendor/golang.org/x/oauth2/oauth2.go +++ b/vendor/golang.org/x/oauth2/oauth2.go @@ -393,7 +393,7 @@ func ReuseTokenSource(t *Token, src TokenSource) TokenSource { } } -// ReuseTokenSource returns a TokenSource that acts in the same manner as the +// ReuseTokenSourceWithExpiry returns a TokenSource that acts in the same manner as the // TokenSource returned by ReuseTokenSource, except the expiry buffer is // configurable. The expiration time of a token is calculated as // t.Expiry.Add(-earlyExpiry). diff --git a/vendor/golang.org/x/sync/LICENSE b/vendor/golang.org/x/sync/LICENSE new file mode 100644 index 000000000000..2a7cf70da6e4 --- /dev/null +++ b/vendor/golang.org/x/sync/LICENSE @@ -0,0 +1,27 @@ +Copyright 2009 The Go Authors. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google LLC nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/sync/PATENTS b/vendor/golang.org/x/sync/PATENTS new file mode 100644 index 000000000000..733099041f84 --- /dev/null +++ b/vendor/golang.org/x/sync/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/sync/errgroup/errgroup.go b/vendor/golang.org/x/sync/errgroup/errgroup.go new file mode 100644 index 000000000000..948a3ee63d4f --- /dev/null +++ b/vendor/golang.org/x/sync/errgroup/errgroup.go @@ -0,0 +1,135 @@ +// Copyright 2016 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. + +// Package errgroup provides synchronization, error propagation, and Context +// cancelation for groups of goroutines working on subtasks of a common task. +// +// [errgroup.Group] is related to [sync.WaitGroup] but adds handling of tasks +// returning errors. +package errgroup + +import ( + "context" + "fmt" + "sync" +) + +type token struct{} + +// A Group is a collection of goroutines working on subtasks that are part of +// the same overall task. +// +// A zero Group is valid, has no limit on the number of active goroutines, +// and does not cancel on error. +type Group struct { + cancel func(error) + + wg sync.WaitGroup + + sem chan token + + errOnce sync.Once + err error +} + +func (g *Group) done() { + if g.sem != nil { + <-g.sem + } + g.wg.Done() +} + +// WithContext returns a new Group and an associated Context derived from ctx. +// +// The derived Context is canceled the first time a function passed to Go +// returns a non-nil error or the first time Wait returns, whichever occurs +// first. +func WithContext(ctx context.Context) (*Group, context.Context) { + ctx, cancel := withCancelCause(ctx) + return &Group{cancel: cancel}, ctx +} + +// Wait blocks until all function calls from the Go method have returned, then +// returns the first non-nil error (if any) from them. +func (g *Group) Wait() error { + g.wg.Wait() + if g.cancel != nil { + g.cancel(g.err) + } + return g.err +} + +// Go calls the given function in a new goroutine. +// It blocks until the new goroutine can be added without the number of +// active goroutines in the group exceeding the configured limit. +// +// The first call to return a non-nil error cancels the group's context, if the +// group was created by calling WithContext. The error will be returned by Wait. +func (g *Group) Go(f func() error) { + if g.sem != nil { + g.sem <- token{} + } + + g.wg.Add(1) + go func() { + defer g.done() + + if err := f(); err != nil { + g.errOnce.Do(func() { + g.err = err + if g.cancel != nil { + g.cancel(g.err) + } + }) + } + }() +} + +// TryGo calls the given function in a new goroutine only if the number of +// active goroutines in the group is currently below the configured limit. +// +// The return value reports whether the goroutine was started. +func (g *Group) TryGo(f func() error) bool { + if g.sem != nil { + select { + case g.sem <- token{}: + // Note: this allows barging iff channels in general allow barging. + default: + return false + } + } + + g.wg.Add(1) + go func() { + defer g.done() + + if err := f(); err != nil { + g.errOnce.Do(func() { + g.err = err + if g.cancel != nil { + g.cancel(g.err) + } + }) + } + }() + return true +} + +// SetLimit limits the number of active goroutines in this group to at most n. +// A negative value indicates no limit. +// +// Any subsequent call to the Go method will block until it can add an active +// goroutine without exceeding the configured limit. +// +// The limit must not be modified while any goroutines in the group are active. +func (g *Group) SetLimit(n int) { + if n < 0 { + g.sem = nil + return + } + if len(g.sem) != 0 { + panic(fmt.Errorf("errgroup: modify limit while %v goroutines in the group are still active", len(g.sem))) + } + g.sem = make(chan token, n) +} diff --git a/vendor/golang.org/x/sync/errgroup/go120.go b/vendor/golang.org/x/sync/errgroup/go120.go new file mode 100644 index 000000000000..f93c740b638c --- /dev/null +++ b/vendor/golang.org/x/sync/errgroup/go120.go @@ -0,0 +1,13 @@ +// Copyright 2023 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.20 + +package errgroup + +import "context" + +func withCancelCause(parent context.Context) (context.Context, func(error)) { + return context.WithCancelCause(parent) +} diff --git a/vendor/golang.org/x/sync/errgroup/pre_go120.go b/vendor/golang.org/x/sync/errgroup/pre_go120.go new file mode 100644 index 000000000000..88ce33434e23 --- /dev/null +++ b/vendor/golang.org/x/sync/errgroup/pre_go120.go @@ -0,0 +1,14 @@ +// Copyright 2023 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.20 + +package errgroup + +import "context" + +func withCancelCause(parent context.Context) (context.Context, func(error)) { + ctx, cancel := context.WithCancel(parent) + return ctx, func(error) { cancel() } +} diff --git a/vendor/golang.org/x/sys/LICENSE b/vendor/golang.org/x/sys/LICENSE index 6a66aea5eafe..2a7cf70da6e4 100644 --- a/vendor/golang.org/x/sys/LICENSE +++ b/vendor/golang.org/x/sys/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. +Copyright 2009 The Go Authors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its + * Neither the name of Google LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/vendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s b/vendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s new file mode 100644 index 000000000000..ec2acfe540ea --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s @@ -0,0 +1,17 @@ +// Copyright 2024 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 darwin && amd64 && gc + +#include "textflag.h" + +TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctl(SB) +GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) + +TEXT libc_sysctlbyname_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_sysctlbyname(SB) +GLOBL ·libc_sysctlbyname_trampoline_addr(SB), RODATA, $8 +DATA ·libc_sysctlbyname_trampoline_addr(SB)/8, $libc_sysctlbyname_trampoline<>(SB) diff --git a/vendor/golang.org/x/sys/cpu/cpu.go b/vendor/golang.org/x/sys/cpu/cpu.go index 8fa707aa4ba9..02609d5b21d5 100644 --- a/vendor/golang.org/x/sys/cpu/cpu.go +++ b/vendor/golang.org/x/sys/cpu/cpu.go @@ -105,6 +105,8 @@ var ARM64 struct { HasSVE bool // Scalable Vector Extensions HasSVE2 bool // Scalable Vector Extensions 2 HasASIMDFHM bool // Advanced SIMD multiplication FP16 to FP32 + HasDIT bool // Data Independent Timing support + HasI8MM bool // Advanced SIMD Int8 matrix multiplication instructions _ CacheLinePad } @@ -199,6 +201,25 @@ var S390X struct { _ CacheLinePad } +// RISCV64 contains the supported CPU features and performance characteristics for riscv64 +// platforms. The booleans in RISCV64, with the exception of HasFastMisaligned, indicate +// the presence of RISC-V extensions. +// +// It is safe to assume that all the RV64G extensions are supported and so they are omitted from +// this structure. As riscv64 Go programs require at least RV64G, the code that populates +// this structure cannot run successfully if some of the RV64G extensions are missing. +// The struct is padded to avoid false sharing. +var RISCV64 struct { + _ CacheLinePad + HasFastMisaligned bool // Fast misaligned accesses + HasC bool // Compressed instruction-set extension + HasV bool // Vector extension compatible with RVV 1.0 + HasZba bool // Address generation instructions extension + HasZbb bool // Basic bit-manipulation extension + HasZbs bool // Single-bit instructions extension + _ CacheLinePad +} + func init() { archInit() initOptions() diff --git a/vendor/golang.org/x/sys/cpu/cpu_arm64.go b/vendor/golang.org/x/sys/cpu/cpu_arm64.go index 0e27a21e1f82..af2aa99f9f06 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_arm64.go +++ b/vendor/golang.org/x/sys/cpu/cpu_arm64.go @@ -38,6 +38,8 @@ func initOptions() { {Name: "dcpop", Feature: &ARM64.HasDCPOP}, {Name: "asimddp", Feature: &ARM64.HasASIMDDP}, {Name: "asimdfhm", Feature: &ARM64.HasASIMDFHM}, + {Name: "dit", Feature: &ARM64.HasDIT}, + {Name: "i8mm", Feature: &ARM64.HasI8MM}, } } @@ -145,6 +147,11 @@ func parseARM64SystemRegisters(isar0, isar1, pfr0 uint64) { ARM64.HasLRCPC = true } + switch extractBits(isar1, 52, 55) { + case 1: + ARM64.HasI8MM = true + } + // ID_AA64PFR0_EL1 switch extractBits(pfr0, 16, 19) { case 0: @@ -168,6 +175,11 @@ func parseARM64SystemRegisters(isar0, isar1, pfr0 uint64) { parseARM64SVERegister(getzfr0()) } + + switch extractBits(pfr0, 48, 51) { + case 1: + ARM64.HasDIT = true + } } func parseARM64SVERegister(zfr0 uint64) { diff --git a/vendor/golang.org/x/sys/cpu/cpu_darwin_x86.go b/vendor/golang.org/x/sys/cpu/cpu_darwin_x86.go new file mode 100644 index 000000000000..b838cb9e956e --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/cpu_darwin_x86.go @@ -0,0 +1,61 @@ +// Copyright 2024 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 darwin && amd64 && gc + +package cpu + +// darwinSupportsAVX512 checks Darwin kernel for AVX512 support via sysctl +// call (see issue 43089). It also restricts AVX512 support for Darwin to +// kernel version 21.3.0 (MacOS 12.2.0) or later (see issue 49233). +// +// Background: +// Darwin implements a special mechanism to economize on thread state when +// AVX512 specific registers are not in use. This scheme minimizes state when +// preempting threads that haven't yet used any AVX512 instructions, but adds +// special requirements to check for AVX512 hardware support at runtime (e.g. +// via sysctl call or commpage inspection). See issue 43089 and link below for +// full background: +// https://github.com/apple-oss-distributions/xnu/blob/xnu-11215.1.10/osfmk/i386/fpu.c#L214-L240 +// +// Additionally, all versions of the Darwin kernel from 19.6.0 through 21.2.0 +// (corresponding to MacOS 10.15.6 - 12.1) have a bug that can cause corruption +// of the AVX512 mask registers (K0-K7) upon signal return. For this reason +// AVX512 is considered unsafe to use on Darwin for kernel versions prior to +// 21.3.0, where a fix has been confirmed. See issue 49233 for full background. +func darwinSupportsAVX512() bool { + return darwinSysctlEnabled([]byte("hw.optional.avx512f\x00")) && darwinKernelVersionCheck(21, 3, 0) +} + +// Ensure Darwin kernel version is at least major.minor.patch, avoiding dependencies +func darwinKernelVersionCheck(major, minor, patch int) bool { + var release [256]byte + err := darwinOSRelease(&release) + if err != nil { + return false + } + + var mmp [3]int + c := 0 +Loop: + for _, b := range release[:] { + switch { + case b >= '0' && b <= '9': + mmp[c] = 10*mmp[c] + int(b-'0') + case b == '.': + c++ + if c > 2 { + return false + } + case b == 0: + break Loop + default: + return false + } + } + if c != 2 { + return false + } + return mmp[0] > major || mmp[0] == major && (mmp[1] > minor || mmp[1] == minor && mmp[2] >= patch) +} diff --git a/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go b/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go index 910728fb163f..32a44514e245 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go +++ b/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go @@ -6,10 +6,10 @@ package cpu -// cpuid is implemented in cpu_x86.s for gc compiler +// cpuid is implemented in cpu_gc_x86.s for gc compiler // and in cpu_gccgo.c for gccgo. func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) -// xgetbv with ecx = 0 is implemented in cpu_x86.s for gc compiler +// xgetbv with ecx = 0 is implemented in cpu_gc_x86.s for gc compiler // and in cpu_gccgo.c for gccgo. func xgetbv() (eax, edx uint32) diff --git a/vendor/golang.org/x/sys/cpu/cpu_gc_x86.s b/vendor/golang.org/x/sys/cpu/cpu_gc_x86.s new file mode 100644 index 000000000000..ce208ce6d6a3 --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/cpu_gc_x86.s @@ -0,0 +1,26 @@ +// 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 (386 || amd64 || amd64p32) && gc + +#include "textflag.h" + +// func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) +TEXT ·cpuid(SB), NOSPLIT, $0-24 + MOVL eaxArg+0(FP), AX + MOVL ecxArg+4(FP), CX + CPUID + MOVL AX, eax+8(FP) + MOVL BX, ebx+12(FP) + MOVL CX, ecx+16(FP) + MOVL DX, edx+20(FP) + RET + +// func xgetbv() (eax, edx uint32) +TEXT ·xgetbv(SB), NOSPLIT, $0-8 + MOVL $0, CX + XGETBV + MOVL AX, eax+0(FP) + MOVL DX, edx+4(FP) + RET diff --git a/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go b/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go index 99c60fe9f9c6..170d21ddfda4 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go +++ b/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go @@ -23,9 +23,3 @@ func xgetbv() (eax, edx uint32) { gccgoXgetbv(&a, &d) return a, d } - -// gccgo doesn't build on Darwin, per: -// https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gcc.rb#L76 -func darwinSupportsAVX512() bool { - return false -} diff --git a/vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go b/vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go index 3d386d0fc218..f1caf0f78e24 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go +++ b/vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go @@ -35,8 +35,10 @@ const ( hwcap_SHA512 = 1 << 21 hwcap_SVE = 1 << 22 hwcap_ASIMDFHM = 1 << 23 + hwcap_DIT = 1 << 24 hwcap2_SVE2 = 1 << 1 + hwcap2_I8MM = 1 << 13 ) // linuxKernelCanEmulateCPUID reports whether we're running @@ -106,9 +108,11 @@ func doinit() { ARM64.HasSHA512 = isSet(hwCap, hwcap_SHA512) ARM64.HasSVE = isSet(hwCap, hwcap_SVE) ARM64.HasASIMDFHM = isSet(hwCap, hwcap_ASIMDFHM) + ARM64.HasDIT = isSet(hwCap, hwcap_DIT) // HWCAP2 feature bits ARM64.HasSVE2 = isSet(hwCap2, hwcap2_SVE2) + ARM64.HasI8MM = isSet(hwCap2, hwcap2_I8MM) } func isSet(hwc uint, value uint) bool { diff --git a/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go b/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go index cd63e7335573..7d902b6847bb 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go +++ b/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.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 linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x +//go:build linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x && !riscv64 package cpu diff --git a/vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go b/vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go new file mode 100644 index 000000000000..cb4a0c572807 --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go @@ -0,0 +1,137 @@ +// Copyright 2024 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. + +package cpu + +import ( + "syscall" + "unsafe" +) + +// RISC-V extension discovery code for Linux. The approach here is to first try the riscv_hwprobe +// syscall falling back to HWCAP to check for the C extension if riscv_hwprobe is not available. +// +// A note on detection of the Vector extension using HWCAP. +// +// Support for the Vector extension version 1.0 was added to the Linux kernel in release 6.5. +// Support for the riscv_hwprobe syscall was added in 6.4. It follows that if the riscv_hwprobe +// syscall is not available then neither is the Vector extension (which needs kernel support). +// The riscv_hwprobe syscall should then be all we need to detect the Vector extension. +// However, some RISC-V board manufacturers ship boards with an older kernel on top of which +// they have back-ported various versions of the Vector extension patches but not the riscv_hwprobe +// patches. These kernels advertise support for the Vector extension using HWCAP. Falling +// back to HWCAP to detect the Vector extension, if riscv_hwprobe is not available, or simply not +// bothering with riscv_hwprobe at all and just using HWCAP may then seem like an attractive option. +// +// Unfortunately, simply checking the 'V' bit in AT_HWCAP will not work as this bit is used by +// RISC-V board and cloud instance providers to mean different things. The Lichee Pi 4A board +// and the Scaleway RV1 cloud instances use the 'V' bit to advertise their support for the unratified +// 0.7.1 version of the Vector Specification. The Banana Pi BPI-F3 and the CanMV-K230 board use +// it to advertise support for 1.0 of the Vector extension. Versions 0.7.1 and 1.0 of the Vector +// extension are binary incompatible. HWCAP can then not be used in isolation to populate the +// HasV field as this field indicates that the underlying CPU is compatible with RVV 1.0. +// +// There is a way at runtime to distinguish between versions 0.7.1 and 1.0 of the Vector +// specification by issuing a RVV 1.0 vsetvli instruction and checking the vill bit of the vtype +// register. This check would allow us to safely detect version 1.0 of the Vector extension +// with HWCAP, if riscv_hwprobe were not available. However, the check cannot +// be added until the assembler supports the Vector instructions. +// +// Note the riscv_hwprobe syscall does not suffer from these ambiguities by design as all of the +// extensions it advertises support for are explicitly versioned. It's also worth noting that +// the riscv_hwprobe syscall is the only way to detect multi-letter RISC-V extensions, e.g., Zba. +// These cannot be detected using HWCAP and so riscv_hwprobe must be used to detect the majority +// of RISC-V extensions. +// +// Please see https://docs.kernel.org/arch/riscv/hwprobe.html for more information. + +// golang.org/x/sys/cpu is not allowed to depend on golang.org/x/sys/unix so we must +// reproduce the constants, types and functions needed to make the riscv_hwprobe syscall +// here. + +const ( + // Copied from golang.org/x/sys/unix/ztypes_linux_riscv64.go. + riscv_HWPROBE_KEY_IMA_EXT_0 = 0x4 + riscv_HWPROBE_IMA_C = 0x2 + riscv_HWPROBE_IMA_V = 0x4 + riscv_HWPROBE_EXT_ZBA = 0x8 + riscv_HWPROBE_EXT_ZBB = 0x10 + riscv_HWPROBE_EXT_ZBS = 0x20 + riscv_HWPROBE_KEY_CPUPERF_0 = 0x5 + riscv_HWPROBE_MISALIGNED_FAST = 0x3 + riscv_HWPROBE_MISALIGNED_MASK = 0x7 +) + +const ( + // sys_RISCV_HWPROBE is copied from golang.org/x/sys/unix/zsysnum_linux_riscv64.go. + sys_RISCV_HWPROBE = 258 +) + +// riscvHWProbePairs is copied from golang.org/x/sys/unix/ztypes_linux_riscv64.go. +type riscvHWProbePairs struct { + key int64 + value uint64 +} + +const ( + // CPU features + hwcap_RISCV_ISA_C = 1 << ('C' - 'A') +) + +func doinit() { + // A slice of key/value pair structures is passed to the RISCVHWProbe syscall. The key + // field should be initialised with one of the key constants defined above, e.g., + // RISCV_HWPROBE_KEY_IMA_EXT_0. The syscall will set the value field to the appropriate value. + // If the kernel does not recognise a key it will set the key field to -1 and the value field to 0. + + pairs := []riscvHWProbePairs{ + {riscv_HWPROBE_KEY_IMA_EXT_0, 0}, + {riscv_HWPROBE_KEY_CPUPERF_0, 0}, + } + + // This call only indicates that extensions are supported if they are implemented on all cores. + if riscvHWProbe(pairs, 0) { + if pairs[0].key != -1 { + v := uint(pairs[0].value) + RISCV64.HasC = isSet(v, riscv_HWPROBE_IMA_C) + RISCV64.HasV = isSet(v, riscv_HWPROBE_IMA_V) + RISCV64.HasZba = isSet(v, riscv_HWPROBE_EXT_ZBA) + RISCV64.HasZbb = isSet(v, riscv_HWPROBE_EXT_ZBB) + RISCV64.HasZbs = isSet(v, riscv_HWPROBE_EXT_ZBS) + } + if pairs[1].key != -1 { + v := pairs[1].value & riscv_HWPROBE_MISALIGNED_MASK + RISCV64.HasFastMisaligned = v == riscv_HWPROBE_MISALIGNED_FAST + } + } + + // Let's double check with HWCAP if the C extension does not appear to be supported. + // This may happen if we're running on a kernel older than 6.4. + + if !RISCV64.HasC { + RISCV64.HasC = isSet(hwCap, hwcap_RISCV_ISA_C) + } +} + +func isSet(hwc uint, value uint) bool { + return hwc&value != 0 +} + +// riscvHWProbe is a simplified version of the generated wrapper function found in +// golang.org/x/sys/unix/zsyscall_linux_riscv64.go. We simplify it by removing the +// cpuCount and cpus parameters which we do not need. We always want to pass 0 for +// these parameters here so the kernel only reports the extensions that are present +// on all cores. +func riscvHWProbe(pairs []riscvHWProbePairs, flags uint) bool { + var _zero uintptr + var p0 unsafe.Pointer + if len(pairs) > 0 { + p0 = unsafe.Pointer(&pairs[0]) + } else { + p0 = unsafe.Pointer(&_zero) + } + + _, _, e1 := syscall.Syscall6(sys_RISCV_HWPROBE, uintptr(p0), uintptr(len(pairs)), uintptr(0), uintptr(0), uintptr(flags), 0) + return e1 == 0 +} diff --git a/vendor/golang.org/x/sys/cpu/cpu_other_x86.go b/vendor/golang.org/x/sys/cpu/cpu_other_x86.go new file mode 100644 index 000000000000..a0fd7e2f75d3 --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/cpu_other_x86.go @@ -0,0 +1,11 @@ +// Copyright 2024 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 386 || amd64p32 || (amd64 && (!darwin || !gc)) + +package cpu + +func darwinSupportsAVX512() bool { + panic("only implemented for gc && amd64 && darwin") +} diff --git a/vendor/golang.org/x/sys/cpu/cpu_riscv64.go b/vendor/golang.org/x/sys/cpu/cpu_riscv64.go index 7f0c79c004b4..aca3199c9116 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_riscv64.go +++ b/vendor/golang.org/x/sys/cpu/cpu_riscv64.go @@ -8,4 +8,13 @@ package cpu const cacheLineSize = 64 -func initOptions() {} +func initOptions() { + options = []option{ + {Name: "fastmisaligned", Feature: &RISCV64.HasFastMisaligned}, + {Name: "c", Feature: &RISCV64.HasC}, + {Name: "v", Feature: &RISCV64.HasV}, + {Name: "zba", Feature: &RISCV64.HasZba}, + {Name: "zbb", Feature: &RISCV64.HasZbb}, + {Name: "zbs", Feature: &RISCV64.HasZbs}, + } +} diff --git a/vendor/golang.org/x/sys/cpu/cpu_x86.go b/vendor/golang.org/x/sys/cpu/cpu_x86.go index c29f5e4c5a6e..600a6807861e 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_x86.go +++ b/vendor/golang.org/x/sys/cpu/cpu_x86.go @@ -92,10 +92,8 @@ func archInit() { osSupportsAVX = isSet(1, eax) && isSet(2, eax) if runtime.GOOS == "darwin" { - // Darwin doesn't save/restore AVX-512 mask registers correctly across signal handlers. - // Since users can't rely on mask register contents, let's not advertise AVX-512 support. - // See issue 49233. - osSupportsAVX512 = false + // Darwin requires special AVX512 checks, see cpu_darwin_x86.go + osSupportsAVX512 = osSupportsAVX && darwinSupportsAVX512() } else { // Check if OPMASK and ZMM registers have OS support. osSupportsAVX512 = osSupportsAVX && isSet(5, eax) && isSet(6, eax) && isSet(7, eax) diff --git a/vendor/golang.org/x/sys/cpu/cpu_x86.s b/vendor/golang.org/x/sys/cpu/cpu_x86.s deleted file mode 100644 index 7d7ba33efb85..000000000000 --- a/vendor/golang.org/x/sys/cpu/cpu_x86.s +++ /dev/null @@ -1,26 +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 (386 || amd64 || amd64p32) && gc - -#include "textflag.h" - -// func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) -TEXT ·cpuid(SB), NOSPLIT, $0-24 - MOVL eaxArg+0(FP), AX - MOVL ecxArg+4(FP), CX - CPUID - MOVL AX, eax+8(FP) - MOVL BX, ebx+12(FP) - MOVL CX, ecx+16(FP) - MOVL DX, edx+20(FP) - RET - -// func xgetbv() (eax, edx uint32) -TEXT ·xgetbv(SB),NOSPLIT,$0-8 - MOVL $0, CX - XGETBV - MOVL AX, eax+0(FP) - MOVL DX, edx+4(FP) - RET diff --git a/vendor/golang.org/x/sys/cpu/syscall_darwin_x86_gc.go b/vendor/golang.org/x/sys/cpu/syscall_darwin_x86_gc.go new file mode 100644 index 000000000000..4d0888b0c010 --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/syscall_darwin_x86_gc.go @@ -0,0 +1,98 @@ +// Copyright 2024 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. + +// Minimal copy of x/sys/unix so the cpu package can make a +// system call on Darwin without depending on x/sys/unix. + +//go:build darwin && amd64 && gc + +package cpu + +import ( + "syscall" + "unsafe" +) + +type _C_int int32 + +// adapted from unix.Uname() at x/sys/unix/syscall_darwin.go L419 +func darwinOSRelease(release *[256]byte) error { + // from x/sys/unix/zerrors_openbsd_amd64.go + const ( + CTL_KERN = 0x1 + KERN_OSRELEASE = 0x2 + ) + + mib := []_C_int{CTL_KERN, KERN_OSRELEASE} + n := unsafe.Sizeof(*release) + + return sysctl(mib, &release[0], &n, nil, 0) +} + +type Errno = syscall.Errno + +var _zero uintptr // Single-word zero for use when we need a valid pointer to 0 bytes. + +// from x/sys/unix/zsyscall_darwin_amd64.go L791-807 +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error { + var _p0 unsafe.Pointer + if len(mib) > 0 { + _p0 = unsafe.Pointer(&mib[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + if _, _, err := syscall_syscall6( + libc_sysctl_trampoline_addr, + uintptr(_p0), + uintptr(len(mib)), + uintptr(unsafe.Pointer(old)), + uintptr(unsafe.Pointer(oldlen)), + uintptr(unsafe.Pointer(new)), + uintptr(newlen), + ); err != 0 { + return err + } + + return nil +} + +var libc_sysctl_trampoline_addr uintptr + +// adapted from internal/cpu/cpu_arm64_darwin.go +func darwinSysctlEnabled(name []byte) bool { + out := int32(0) + nout := unsafe.Sizeof(out) + if ret := sysctlbyname(&name[0], (*byte)(unsafe.Pointer(&out)), &nout, nil, 0); ret != nil { + return false + } + return out > 0 +} + +//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" + +var libc_sysctlbyname_trampoline_addr uintptr + +// adapted from runtime/sys_darwin.go in the pattern of sysctl() above, as defined in x/sys/unix +func sysctlbyname(name *byte, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error { + if _, _, err := syscall_syscall6( + libc_sysctlbyname_trampoline_addr, + uintptr(unsafe.Pointer(name)), + uintptr(unsafe.Pointer(old)), + uintptr(unsafe.Pointer(oldlen)), + uintptr(unsafe.Pointer(new)), + uintptr(newlen), + 0, + ); err != 0 { + return err + } + + return nil +} + +//go:cgo_import_dynamic libc_sysctlbyname sysctlbyname "/usr/lib/libSystem.B.dylib" + +// Implemented in the runtime package (runtime/sys_darwin.go) +func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno) + +//go:linkname syscall_syscall6 syscall.syscall6 diff --git a/vendor/golang.org/x/sys/unix/README.md b/vendor/golang.org/x/sys/unix/README.md index 7d3c060e1221..6e08a76a716e 100644 --- a/vendor/golang.org/x/sys/unix/README.md +++ b/vendor/golang.org/x/sys/unix/README.md @@ -156,7 +156,7 @@ from the generated architecture-specific files listed below, and merge these into a common file for each OS. The merge is performed in the following steps: -1. Construct the set of common code that is idential in all architecture-specific files. +1. Construct the set of common code that is identical in all architecture-specific files. 2. Write this common code to the merged file. 3. Remove the common code from all architecture-specific files. diff --git a/vendor/golang.org/x/sys/unix/ioctl_linux.go b/vendor/golang.org/x/sys/unix/ioctl_linux.go index dbe680eab88a..7ca4fa12aa67 100644 --- a/vendor/golang.org/x/sys/unix/ioctl_linux.go +++ b/vendor/golang.org/x/sys/unix/ioctl_linux.go @@ -58,6 +58,102 @@ func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) { return &value, err } +// IoctlGetEthtoolTsInfo fetches ethtool timestamping and PHC +// association for the network device specified by ifname. +func IoctlGetEthtoolTsInfo(fd int, ifname string) (*EthtoolTsInfo, error) { + ifr, err := NewIfreq(ifname) + if err != nil { + return nil, err + } + + value := EthtoolTsInfo{Cmd: ETHTOOL_GET_TS_INFO} + ifrd := ifr.withData(unsafe.Pointer(&value)) + + err = ioctlIfreqData(fd, SIOCETHTOOL, &ifrd) + return &value, err +} + +// IoctlGetHwTstamp retrieves the hardware timestamping configuration +// for the network device specified by ifname. +func IoctlGetHwTstamp(fd int, ifname string) (*HwTstampConfig, error) { + ifr, err := NewIfreq(ifname) + if err != nil { + return nil, err + } + + value := HwTstampConfig{} + ifrd := ifr.withData(unsafe.Pointer(&value)) + + err = ioctlIfreqData(fd, SIOCGHWTSTAMP, &ifrd) + return &value, err +} + +// IoctlSetHwTstamp updates the hardware timestamping configuration for +// the network device specified by ifname. +func IoctlSetHwTstamp(fd int, ifname string, cfg *HwTstampConfig) error { + ifr, err := NewIfreq(ifname) + if err != nil { + return err + } + ifrd := ifr.withData(unsafe.Pointer(cfg)) + return ioctlIfreqData(fd, SIOCSHWTSTAMP, &ifrd) +} + +// FdToClockID derives the clock ID from the file descriptor number +// - see clock_gettime(3), FD_TO_CLOCKID macros. The resulting ID is +// suitable for system calls like ClockGettime. +func FdToClockID(fd int) int32 { return int32((int(^fd) << 3) | 3) } + +// IoctlPtpClockGetcaps returns the description of a given PTP device. +func IoctlPtpClockGetcaps(fd int) (*PtpClockCaps, error) { + var value PtpClockCaps + err := ioctlPtr(fd, PTP_CLOCK_GETCAPS2, unsafe.Pointer(&value)) + return &value, err +} + +// IoctlPtpSysOffsetPrecise returns a description of the clock +// offset compared to the system clock. +func IoctlPtpSysOffsetPrecise(fd int) (*PtpSysOffsetPrecise, error) { + var value PtpSysOffsetPrecise + err := ioctlPtr(fd, PTP_SYS_OFFSET_PRECISE2, unsafe.Pointer(&value)) + return &value, err +} + +// IoctlPtpSysOffsetExtended returns an extended description of the +// clock offset compared to the system clock. The samples parameter +// specifies the desired number of measurements. +func IoctlPtpSysOffsetExtended(fd int, samples uint) (*PtpSysOffsetExtended, error) { + value := PtpSysOffsetExtended{Samples: uint32(samples)} + err := ioctlPtr(fd, PTP_SYS_OFFSET_EXTENDED2, unsafe.Pointer(&value)) + return &value, err +} + +// IoctlPtpPinGetfunc returns the configuration of the specified +// I/O pin on given PTP device. +func IoctlPtpPinGetfunc(fd int, index uint) (*PtpPinDesc, error) { + value := PtpPinDesc{Index: uint32(index)} + err := ioctlPtr(fd, PTP_PIN_GETFUNC2, unsafe.Pointer(&value)) + return &value, err +} + +// IoctlPtpPinSetfunc updates configuration of the specified PTP +// I/O pin. +func IoctlPtpPinSetfunc(fd int, pd *PtpPinDesc) error { + return ioctlPtr(fd, PTP_PIN_SETFUNC2, unsafe.Pointer(pd)) +} + +// IoctlPtpPeroutRequest configures the periodic output mode of the +// PTP I/O pins. +func IoctlPtpPeroutRequest(fd int, r *PtpPeroutRequest) error { + return ioctlPtr(fd, PTP_PEROUT_REQUEST2, unsafe.Pointer(r)) +} + +// IoctlPtpExttsRequest configures the external timestamping mode +// of the PTP I/O pins. +func IoctlPtpExttsRequest(fd int, r *PtpExttsRequest) error { + return ioctlPtr(fd, PTP_EXTTS_REQUEST2, unsafe.Pointer(r)) +} + // IoctlGetWatchdogInfo fetches information about a watchdog device from the // Linux watchdog API. For more information, see: // https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html. diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index fdcaa974d23b..6ab02b6c3122 100644 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -58,6 +58,7 @@ includes_Darwin=' #define _DARWIN_USE_64_BIT_INODE #define __APPLE_USE_RFC_3542 #include +#include #include #include #include @@ -157,6 +158,16 @@ includes_Linux=' #endif #define _GNU_SOURCE +// See the description in unix/linux/types.go +#if defined(__ARM_EABI__) || \ + (defined(__mips__) && (_MIPS_SIM == _ABIO32)) || \ + (defined(__powerpc__) && (!defined(__powerpc64__))) +# ifdef _TIME_BITS +# undef _TIME_BITS +# endif +# define _TIME_BITS 32 +#endif + // is broken on powerpc64, as it fails to include definitions of // these structures. We just include them copied from . #if defined(__powerpc__) @@ -255,6 +266,7 @@ struct ltchars { #include #include #include +#include #include #include #include @@ -263,6 +275,7 @@ struct ltchars { #include #include #include +#include #include #include #include @@ -525,6 +538,7 @@ ccflags="$@" $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MREMAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL|TCPOPT|UDP)_/ || $2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ || $2 ~ /^NFC_.*_(MAX)?SIZE$/ || + $2 ~ /^PTP_/ || $2 ~ /^RAW_PAYLOAD_/ || $2 ~ /^[US]F_/ || $2 ~ /^TP_STATUS_/ || @@ -549,6 +563,8 @@ ccflags="$@" $2 !~ "NLA_TYPE_MASK" && $2 !~ /^RTC_VL_(ACCURACY|BACKUP|DATA)/ && $2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ || + $2 ~ /^SOCK_|SK_DIAG_|SKNLGRP_$/ || + $2 ~ /^(CONNECT|SAE)_/ || $2 ~ /^FIORDCHK$/ || $2 ~ /^SIOC/ || $2 ~ /^TIOC/ || @@ -652,7 +668,7 @@ errors=$( signals=$( echo '#include ' | $CC -x c - -E -dM $ccflags | awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | - grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' | + grep -E -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' | sort ) @@ -662,7 +678,7 @@ echo '#include ' | $CC -x c - -E -dM $ccflags | sort >_error.grep echo '#include ' | $CC -x c - -E -dM $ccflags | awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' | - grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' | + grep -E -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' | sort >_signal.grep echo '// mkerrors.sh' "$@" diff --git a/vendor/golang.org/x/sys/unix/mremap.go b/vendor/golang.org/x/sys/unix/mremap.go index fd45fe529da5..3a5e776f895a 100644 --- a/vendor/golang.org/x/sys/unix/mremap.go +++ b/vendor/golang.org/x/sys/unix/mremap.go @@ -50,3 +50,8 @@ func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data [ func Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) { return mapper.Mremap(oldData, newLength, flags) } + +func MremapPtr(oldAddr unsafe.Pointer, oldSize uintptr, newAddr unsafe.Pointer, newSize uintptr, flags int) (ret unsafe.Pointer, err error) { + xaddr, err := mapper.mremap(uintptr(oldAddr), oldSize, newSize, flags, uintptr(newAddr)) + return unsafe.Pointer(xaddr), err +} diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go index 67ce6cef2d5c..6f15ba1eaff6 100644 --- a/vendor/golang.org/x/sys/unix/syscall_aix.go +++ b/vendor/golang.org/x/sys/unix/syscall_aix.go @@ -360,7 +360,7 @@ func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, var status _C_int var r Pid_t err = ERESTART - // AIX wait4 may return with ERESTART errno, while the processus is still + // AIX wait4 may return with ERESTART errno, while the process is still // active. for err == ERESTART { r, err = wait4(Pid_t(pid), &status, options, rusage) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go index 59542a897d23..099867deedec 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go @@ -402,6 +402,18 @@ func IoctlSetIfreqMTU(fd int, ifreq *IfreqMTU) error { return ioctlPtr(fd, SIOCSIFMTU, unsafe.Pointer(ifreq)) } +//sys renamexNp(from string, to string, flag uint32) (err error) + +func RenamexNp(from string, to string, flag uint32) (err error) { + return renamexNp(from, to, flag) +} + +//sys renameatxNp(fromfd int, from string, tofd int, to string, flag uint32) (err error) + +func RenameatxNp(fromfd int, from string, tofd int, to string, flag uint32) (err error) { + return renameatxNp(fromfd, from, tofd, to, flag) +} + //sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL func Uname(uname *Utsname) error { @@ -542,6 +554,55 @@ func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, error) { } } +//sys pthread_chdir_np(path string) (err error) + +func PthreadChdir(path string) (err error) { + return pthread_chdir_np(path) +} + +//sys pthread_fchdir_np(fd int) (err error) + +func PthreadFchdir(fd int) (err error) { + return pthread_fchdir_np(fd) +} + +// Connectx calls connectx(2) to initiate a connection on a socket. +// +// srcIf, srcAddr, and dstAddr are filled into a [SaEndpoints] struct and passed as the endpoints argument. +// +// - srcIf is the optional source interface index. 0 means unspecified. +// - srcAddr is the optional source address. nil means unspecified. +// - dstAddr is the destination address. +// +// On success, Connectx returns the number of bytes enqueued for transmission. +func Connectx(fd int, srcIf uint32, srcAddr, dstAddr Sockaddr, associd SaeAssocID, flags uint32, iov []Iovec, connid *SaeConnID) (n uintptr, err error) { + endpoints := SaEndpoints{ + Srcif: srcIf, + } + + if srcAddr != nil { + addrp, addrlen, err := srcAddr.sockaddr() + if err != nil { + return 0, err + } + endpoints.Srcaddr = (*RawSockaddr)(addrp) + endpoints.Srcaddrlen = uint32(addrlen) + } + + if dstAddr != nil { + addrp, addrlen, err := dstAddr.sockaddr() + if err != nil { + return 0, err + } + endpoints.Dstaddr = (*RawSockaddr)(addrp) + endpoints.Dstaddrlen = uint32(addrlen) + } + + err = connectx(fd, &endpoints, associd, flags, iov, &n, connid) + return +} + +//sys connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error) //sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) //sys shmat(id int, addr uintptr, flag int) (ret uintptr, err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_hurd.go b/vendor/golang.org/x/sys/unix/syscall_hurd.go index ba46651f8e38..a6a2d2fc2b90 100644 --- a/vendor/golang.org/x/sys/unix/syscall_hurd.go +++ b/vendor/golang.org/x/sys/unix/syscall_hurd.go @@ -11,6 +11,7 @@ package unix int ioctl(int, unsigned long int, uintptr_t); */ import "C" +import "unsafe" func ioctl(fd int, req uint, arg uintptr) (err error) { r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go index 5682e2628ad0..230a94549a7a 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -1295,6 +1295,48 @@ func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error) { return &value, err } +// GetsockoptTCPCCVegasInfo returns algorithm specific congestion control information for a socket using the "vegas" +// algorithm. +// +// The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: +// +// algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) +func GetsockoptTCPCCVegasInfo(fd, level, opt int) (*TCPVegasInfo, error) { + var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment + vallen := _Socklen(SizeofTCPCCInfo) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) + out := (*TCPVegasInfo)(unsafe.Pointer(&value[0])) + return out, err +} + +// GetsockoptTCPCCDCTCPInfo returns algorithm specific congestion control information for a socket using the "dctp" +// algorithm. +// +// The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: +// +// algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) +func GetsockoptTCPCCDCTCPInfo(fd, level, opt int) (*TCPDCTCPInfo, error) { + var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment + vallen := _Socklen(SizeofTCPCCInfo) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) + out := (*TCPDCTCPInfo)(unsafe.Pointer(&value[0])) + return out, err +} + +// GetsockoptTCPCCBBRInfo returns algorithm specific congestion control information for a socket using the "bbr" +// algorithm. +// +// The socket's congestion control algorighm can be retrieved via [GetsockoptString] with the [TCP_CONGESTION] option: +// +// algo, err := unix.GetsockoptString(fd, unix.IPPROTO_TCP, unix.TCP_CONGESTION) +func GetsockoptTCPCCBBRInfo(fd, level, opt int) (*TCPBBRInfo, error) { + var value [SizeofTCPCCInfo / 4]uint32 // ensure proper alignment + vallen := _Socklen(SizeofTCPCCInfo) + err := getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) + out := (*TCPBBRInfo)(unsafe.Pointer(&value[0])) + return out, err +} + // GetsockoptString returns the string value of the socket option opt for the // socket associated with fd at the given socket level. func GetsockoptString(fd, level, opt int) (string, error) { @@ -1818,6 +1860,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e //sys ClockAdjtime(clockid int32, buf *Timex) (state int, err error) //sys ClockGetres(clockid int32, res *Timespec) (err error) //sys ClockGettime(clockid int32, time *Timespec) (err error) +//sys ClockSettime(clockid int32, time *Timespec) (err error) //sys ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) //sys Close(fd int) (err error) //sys CloseRange(first uint, last uint, flags uint) (err error) @@ -1959,7 +2002,26 @@ func Getpgrp() (pid int) { //sysnb Getpid() (pid int) //sysnb Getppid() (ppid int) //sys Getpriority(which int, who int) (prio int, err error) -//sys Getrandom(buf []byte, flags int) (n int, err error) + +func Getrandom(buf []byte, flags int) (n int, err error) { + vdsoRet, supported := vgetrandom(buf, uint32(flags)) + if supported { + if vdsoRet < 0 { + return 0, errnoErr(syscall.Errno(-vdsoRet)) + } + return vdsoRet, nil + } + var p *byte + if len(buf) > 0 { + p = &buf[0] + } + r, _, e := Syscall(SYS_GETRANDOM, uintptr(unsafe.Pointer(p)), uintptr(len(buf)), uintptr(flags)) + if e != 0 { + return 0, errnoErr(e) + } + return int(r), nil +} + //sysnb Getrusage(who int, rusage *Rusage) (err error) //sysnb Getsid(pid int) (sid int, err error) //sysnb Gettid() (tid int) @@ -2592,3 +2654,4 @@ func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) { } //sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) +//sys Mseal(b []byte, flags uint) (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go index cf2ee6c75ef3..745e5c7e6c0d 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go @@ -182,3 +182,5 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error } return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) } + +const SYS_FSTATAT = SYS_NEWFSTATAT diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go b/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go index 3d0e98451f8a..dd2262a40799 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go @@ -214,3 +214,5 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error } return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) } + +const SYS_FSTATAT = SYS_NEWFSTATAT diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go index 6f5a288944df..8cf3670bda63 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go @@ -187,3 +187,5 @@ func RISCVHWProbe(pairs []RISCVHWProbePairs, set *CPUSet, flags uint) (err error } return riscvHWProbe(pairs, setSize, set, flags) } + +const SYS_FSTATAT = SYS_NEWFSTATAT diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go index b25343c71a42..b86ded549c66 100644 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go @@ -293,6 +293,7 @@ func Uname(uname *Utsname) error { //sys Mkfifoat(dirfd int, path string, mode uint32) (err error) //sys Mknod(path string, mode uint32, dev int) (err error) //sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) +//sys Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) //sys Nanosleep(time *Timespec, leftover *Timespec) (err error) //sys Open(path string, mode int, perm uint32) (fd int, err error) //sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go index 77081de8c7de..4e92e5aa4062 100644 --- a/vendor/golang.org/x/sys/unix/syscall_unix.go +++ b/vendor/golang.org/x/sys/unix/syscall_unix.go @@ -154,6 +154,15 @@ func Munmap(b []byte) (err error) { return mapper.Munmap(b) } +func MmapPtr(fd int, offset int64, addr unsafe.Pointer, length uintptr, prot int, flags int) (ret unsafe.Pointer, err error) { + xaddr, err := mapper.mmap(uintptr(addr), length, prot, flags, fd, offset) + return unsafe.Pointer(xaddr), err +} + +func MunmapPtr(addr unsafe.Pointer, length uintptr) (err error) { + return mapper.munmap(uintptr(addr), length) +} + func Read(fd int, p []byte) (n int, err error) { n, err = read(fd, p) if raceenabled { diff --git a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go index 312ae6ac1d21..7bf5c04bb0ae 100644 --- a/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go +++ b/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go @@ -768,6 +768,15 @@ func Munmap(b []byte) (err error) { return mapper.Munmap(b) } +func MmapPtr(fd int, offset int64, addr unsafe.Pointer, length uintptr, prot int, flags int) (ret unsafe.Pointer, err error) { + xaddr, err := mapper.mmap(uintptr(addr), length, prot, flags, fd, offset) + return unsafe.Pointer(xaddr), err +} + +func MunmapPtr(addr unsafe.Pointer, length uintptr) (err error) { + return mapper.munmap(uintptr(addr), length) +} + //sys Gethostname(buf []byte) (err error) = SYS___GETHOSTNAME_A //sysnb Getgid() (gid int) //sysnb Getpid() (pid int) @@ -816,10 +825,10 @@ func Lstat(path string, stat *Stat_t) (err error) { // for checking symlinks begins with $VERSION/ $SYSNAME/ $SYSSYMR/ $SYSSYMA/ func isSpecialPath(path []byte) (v bool) { var special = [4][8]byte{ - [8]byte{'V', 'E', 'R', 'S', 'I', 'O', 'N', '/'}, - [8]byte{'S', 'Y', 'S', 'N', 'A', 'M', 'E', '/'}, - [8]byte{'S', 'Y', 'S', 'S', 'Y', 'M', 'R', '/'}, - [8]byte{'S', 'Y', 'S', 'S', 'Y', 'M', 'A', '/'}} + {'V', 'E', 'R', 'S', 'I', 'O', 'N', '/'}, + {'S', 'Y', 'S', 'N', 'A', 'M', 'E', '/'}, + {'S', 'Y', 'S', 'S', 'Y', 'M', 'R', '/'}, + {'S', 'Y', 'S', 'S', 'Y', 'M', 'A', '/'}} var i, j int for i = 0; i < len(special); i++ { @@ -3115,3 +3124,90 @@ func legacy_Mkfifoat(dirfd int, path string, mode uint32) (err error) { //sys Posix_openpt(oflag int) (fd int, err error) = SYS_POSIX_OPENPT //sys Grantpt(fildes int) (rc int, err error) = SYS_GRANTPT //sys Unlockpt(fildes int) (rc int, err error) = SYS_UNLOCKPT + +func fcntlAsIs(fd uintptr, cmd int, arg uintptr) (val int, err error) { + runtime.EnterSyscall() + r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FCNTL<<4, uintptr(fd), uintptr(cmd), arg) + runtime.ExitSyscall() + val = int(r0) + if int64(r0) == -1 { + err = errnoErr2(e1, e2) + } + return +} + +func Fcntl(fd uintptr, cmd int, op interface{}) (ret int, err error) { + switch op.(type) { + case *Flock_t: + err = FcntlFlock(fd, cmd, op.(*Flock_t)) + if err != nil { + ret = -1 + } + return + case int: + return FcntlInt(fd, cmd, op.(int)) + case *F_cnvrt: + return fcntlAsIs(fd, cmd, uintptr(unsafe.Pointer(op.(*F_cnvrt)))) + case unsafe.Pointer: + return fcntlAsIs(fd, cmd, uintptr(op.(unsafe.Pointer))) + default: + return -1, EINVAL + } + return +} + +func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + if raceenabled { + raceReleaseMerge(unsafe.Pointer(&ioSync)) + } + return sendfile(outfd, infd, offset, count) +} + +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { + // TODO: use LE call instead if the call is implemented + originalOffset, err := Seek(infd, 0, SEEK_CUR) + if err != nil { + return -1, err + } + //start reading data from in_fd + if offset != nil { + _, err := Seek(infd, *offset, SEEK_SET) + if err != nil { + return -1, err + } + } + + buf := make([]byte, count) + readBuf := make([]byte, 0) + var n int = 0 + for i := 0; i < count; i += n { + n, err := Read(infd, buf) + if n == 0 { + if err != nil { + return -1, err + } else { // EOF + break + } + } + readBuf = append(readBuf, buf...) + buf = buf[0:0] + } + + n2, err := Write(outfd, readBuf) + if err != nil { + return -1, err + } + + //When sendfile() returns, this variable will be set to the + // offset of the byte following the last byte that was read. + if offset != nil { + *offset = *offset + int64(n) + // If offset is not NULL, then sendfile() does not modify the file + // offset of in_fd + _, err := Seek(infd, originalOffset, SEEK_SET) + if err != nil { + return -1, err + } + } + return n2, nil +} diff --git a/vendor/golang.org/x/sys/unix/vgetrandom_linux.go b/vendor/golang.org/x/sys/unix/vgetrandom_linux.go new file mode 100644 index 000000000000..07ac8e09d1b7 --- /dev/null +++ b/vendor/golang.org/x/sys/unix/vgetrandom_linux.go @@ -0,0 +1,13 @@ +// Copyright 2024 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 linux && go1.24 + +package unix + +import _ "unsafe" + +//go:linkname vgetrandom runtime.vgetrandom +//go:noescape +func vgetrandom(p []byte, flags uint32) (ret int, supported bool) diff --git a/vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go b/vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go new file mode 100644 index 000000000000..297e97bce92a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go @@ -0,0 +1,11 @@ +// Copyright 2024 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 !linux || !go1.24 + +package unix + +func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { + return -1, false +} diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go index e40fa85245f4..d73c4652e6c5 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go @@ -237,6 +237,9 @@ const ( CLOCK_UPTIME_RAW_APPROX = 0x9 CLONE_NOFOLLOW = 0x1 CLONE_NOOWNERCOPY = 0x2 + CONNECT_DATA_AUTHENTICATED = 0x4 + CONNECT_DATA_IDEMPOTENT = 0x2 + CONNECT_RESUME_ON_READ_WRITE = 0x1 CR0 = 0x0 CR1 = 0x1000 CR2 = 0x2000 @@ -1169,6 +1172,11 @@ const ( PT_WRITE_D = 0x5 PT_WRITE_I = 0x4 PT_WRITE_U = 0x6 + RENAME_EXCL = 0x4 + RENAME_NOFOLLOW_ANY = 0x10 + RENAME_RESERVED1 = 0x8 + RENAME_SECLUDE = 0x1 + RENAME_SWAP = 0x2 RLIMIT_AS = 0x5 RLIMIT_CORE = 0x4 RLIMIT_CPU = 0x0 @@ -1260,6 +1268,10 @@ const ( RTV_SSTHRESH = 0x20 RUSAGE_CHILDREN = -0x1 RUSAGE_SELF = 0x0 + SAE_ASSOCID_ALL = 0xffffffff + SAE_ASSOCID_ANY = 0x0 + SAE_CONNID_ALL = 0xffffffff + SAE_CONNID_ANY = 0x0 SCM_CREDS = 0x3 SCM_RIGHTS = 0x1 SCM_TIMESTAMP = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go index bb02aa6c0564..4a55a4005889 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go @@ -237,6 +237,9 @@ const ( CLOCK_UPTIME_RAW_APPROX = 0x9 CLONE_NOFOLLOW = 0x1 CLONE_NOOWNERCOPY = 0x2 + CONNECT_DATA_AUTHENTICATED = 0x4 + CONNECT_DATA_IDEMPOTENT = 0x2 + CONNECT_RESUME_ON_READ_WRITE = 0x1 CR0 = 0x0 CR1 = 0x1000 CR2 = 0x2000 @@ -1169,6 +1172,11 @@ const ( PT_WRITE_D = 0x5 PT_WRITE_I = 0x4 PT_WRITE_U = 0x6 + RENAME_EXCL = 0x4 + RENAME_NOFOLLOW_ANY = 0x10 + RENAME_RESERVED1 = 0x8 + RENAME_SECLUDE = 0x1 + RENAME_SWAP = 0x2 RLIMIT_AS = 0x5 RLIMIT_CORE = 0x4 RLIMIT_CPU = 0x0 @@ -1260,6 +1268,10 @@ const ( RTV_SSTHRESH = 0x20 RUSAGE_CHILDREN = -0x1 RUSAGE_SELF = 0x0 + SAE_ASSOCID_ALL = 0xffffffff + SAE_ASSOCID_ANY = 0x0 + SAE_CONNID_ALL = 0xffffffff + SAE_CONNID_ANY = 0x0 SCM_CREDS = 0x3 SCM_RIGHTS = 0x1 SCM_TIMESTAMP = 0x2 diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vendor/golang.org/x/sys/unix/zerrors_linux.go index 93a38a97d9ca..ccba391c9fb0 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux.go @@ -457,6 +457,7 @@ const ( B600 = 0x8 B75 = 0x2 B9600 = 0xd + BCACHEFS_SUPER_MAGIC = 0xca451a4e BDEVFS_MAGIC = 0x62646576 BINDERFS_SUPER_MAGIC = 0x6c6f6f70 BINFMTFS_MAGIC = 0x42494e4d @@ -494,6 +495,7 @@ const ( BPF_F_TEST_REG_INVARIANTS = 0x80 BPF_F_TEST_RND_HI32 = 0x4 BPF_F_TEST_RUN_ON_CPU = 0x1 + BPF_F_TEST_SKB_CHECKSUM_COMPLETE = 0x4 BPF_F_TEST_STATE_FREQ = 0x8 BPF_F_TEST_XDP_LIVE_FRAMES = 0x2 BPF_F_XDP_DEV_BOUND_ONLY = 0x40 @@ -502,6 +504,7 @@ const ( BPF_IMM = 0x0 BPF_IND = 0x40 BPF_JA = 0x0 + BPF_JCOND = 0xe0 BPF_JEQ = 0x10 BPF_JGE = 0x30 BPF_JGT = 0x20 @@ -657,6 +660,9 @@ const ( CAN_NPROTO = 0x8 CAN_RAW = 0x1 CAN_RAW_FILTER_MAX = 0x200 + CAN_RAW_XL_VCID_RX_FILTER = 0x4 + CAN_RAW_XL_VCID_TX_PASS = 0x2 + CAN_RAW_XL_VCID_TX_SET = 0x1 CAN_RTR_FLAG = 0x40000000 CAN_SFF_ID_BITS = 0xb CAN_SFF_MASK = 0x7ff @@ -924,6 +930,7 @@ const ( EPOLL_CTL_ADD = 0x1 EPOLL_CTL_DEL = 0x2 EPOLL_CTL_MOD = 0x3 + EPOLL_IOC_TYPE = 0x8a EROFS_SUPER_MAGIC_V1 = 0xe0f5e1e2 ESP_V4_FLOW = 0xa ESP_V6_FLOW = 0xc @@ -937,9 +944,6 @@ const ( ETHTOOL_FEC_OFF = 0x4 ETHTOOL_FEC_RS = 0x8 ETHTOOL_FLAG_ALL = 0x7 - ETHTOOL_FLAG_COMPACT_BITSETS = 0x1 - ETHTOOL_FLAG_OMIT_REPLY = 0x2 - ETHTOOL_FLAG_STATS = 0x4 ETHTOOL_FLASHDEV = 0x33 ETHTOOL_FLASH_MAX_FILENAME = 0x80 ETHTOOL_FWVERS_LEN = 0x20 @@ -1339,6 +1343,7 @@ const ( F_OFD_SETLK = 0x25 F_OFD_SETLKW = 0x26 F_OK = 0x0 + F_SEAL_EXEC = 0x20 F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 @@ -1627,6 +1632,7 @@ const ( IP_FREEBIND = 0xf IP_HDRINCL = 0x3 IP_IPSEC_POLICY = 0x10 + IP_LOCAL_PORT_RANGE = 0x33 IP_MAXPACKET = 0xffff IP_MAX_MEMBERSHIPS = 0x14 IP_MF = 0x2000 @@ -1653,6 +1659,7 @@ const ( IP_PMTUDISC_OMIT = 0x5 IP_PMTUDISC_PROBE = 0x3 IP_PMTUDISC_WANT = 0x1 + IP_PROTOCOL = 0x34 IP_RECVERR = 0xb IP_RECVERR_RFC4884 = 0x1a IP_RECVFRAGSIZE = 0x19 @@ -1698,6 +1705,7 @@ const ( KEXEC_ARCH_S390 = 0x160000 KEXEC_ARCH_SH = 0x2a0000 KEXEC_ARCH_X86_64 = 0x3e0000 + KEXEC_CRASH_HOTPLUG_SUPPORT = 0x8 KEXEC_FILE_DEBUG = 0x8 KEXEC_FILE_NO_INITRAMFS = 0x4 KEXEC_FILE_ON_CRASH = 0x2 @@ -1773,6 +1781,7 @@ const ( KEY_SPEC_USER_KEYRING = -0x4 KEY_SPEC_USER_SESSION_KEYRING = -0x5 LANDLOCK_ACCESS_FS_EXECUTE = 0x1 + LANDLOCK_ACCESS_FS_IOCTL_DEV = 0x8000 LANDLOCK_ACCESS_FS_MAKE_BLOCK = 0x800 LANDLOCK_ACCESS_FS_MAKE_CHAR = 0x40 LANDLOCK_ACCESS_FS_MAKE_DIR = 0x80 @@ -1854,6 +1863,19 @@ const ( MAP_FILE = 0x0 MAP_FIXED = 0x10 MAP_FIXED_NOREPLACE = 0x100000 + MAP_HUGE_16GB = 0x88000000 + MAP_HUGE_16KB = 0x38000000 + MAP_HUGE_16MB = 0x60000000 + MAP_HUGE_1GB = 0x78000000 + MAP_HUGE_1MB = 0x50000000 + MAP_HUGE_256MB = 0x70000000 + MAP_HUGE_2GB = 0x7c000000 + MAP_HUGE_2MB = 0x54000000 + MAP_HUGE_32MB = 0x64000000 + MAP_HUGE_512KB = 0x4c000000 + MAP_HUGE_512MB = 0x74000000 + MAP_HUGE_64KB = 0x40000000 + MAP_HUGE_8MB = 0x5c000000 MAP_HUGE_MASK = 0x3f MAP_HUGE_SHIFT = 0x1a MAP_PRIVATE = 0x2 @@ -1901,6 +1923,7 @@ const ( MNT_EXPIRE = 0x4 MNT_FORCE = 0x1 MNT_ID_REQ_SIZE_VER0 = 0x18 + MNT_ID_REQ_SIZE_VER1 = 0x20 MODULE_INIT_COMPRESSED_FILE = 0x4 MODULE_INIT_IGNORE_MODVERSIONS = 0x1 MODULE_INIT_IGNORE_VERMAGIC = 0x2 @@ -2166,10 +2189,10 @@ const ( NFT_REG_SIZE = 0x10 NFT_REJECT_ICMPX_MAX = 0x3 NFT_RT_MAX = 0x4 - NFT_SECMARK_CTX_MAXLEN = 0x100 + NFT_SECMARK_CTX_MAXLEN = 0x1000 NFT_SET_MAXNAMELEN = 0x100 NFT_SOCKET_MAX = 0x3 - NFT_TABLE_F_MASK = 0x3 + NFT_TABLE_F_MASK = 0x7 NFT_TABLE_MAXNAMELEN = 0x100 NFT_TRACETYPE_MAX = 0x3 NFT_TUNNEL_F_MASK = 0x7 @@ -2335,9 +2358,11 @@ const ( PERF_MEM_LVLNUM_IO = 0xa PERF_MEM_LVLNUM_L1 = 0x1 PERF_MEM_LVLNUM_L2 = 0x2 + PERF_MEM_LVLNUM_L2_MHB = 0x5 PERF_MEM_LVLNUM_L3 = 0x3 PERF_MEM_LVLNUM_L4 = 0x4 PERF_MEM_LVLNUM_LFB = 0xc + PERF_MEM_LVLNUM_MSC = 0x6 PERF_MEM_LVLNUM_NA = 0xf PERF_MEM_LVLNUM_PMEM = 0xe PERF_MEM_LVLNUM_RAM = 0xd @@ -2403,12 +2428,14 @@ const ( PERF_RECORD_MISC_USER = 0x2 PERF_SAMPLE_BRANCH_PLM_ALL = 0x7 PERF_SAMPLE_WEIGHT_TYPE = 0x1004000 + PID_FS_MAGIC = 0x50494446 PIPEFS_MAGIC = 0x50495045 PPPIOCGNPMODE = 0xc008744c PPPIOCNEWUNIT = 0xc004743e PRIO_PGRP = 0x1 PRIO_PROCESS = 0x0 PRIO_USER = 0x2 + PROCFS_IOCTL_MAGIC = 'f' PROC_SUPER_MAGIC = 0x9fa0 PROT_EXEC = 0x4 PROT_GROWSDOWN = 0x1000000 @@ -2490,6 +2517,23 @@ const ( PR_PAC_GET_ENABLED_KEYS = 0x3d PR_PAC_RESET_KEYS = 0x36 PR_PAC_SET_ENABLED_KEYS = 0x3c + PR_PPC_DEXCR_CTRL_CLEAR = 0x4 + PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC = 0x10 + PR_PPC_DEXCR_CTRL_EDITABLE = 0x1 + PR_PPC_DEXCR_CTRL_MASK = 0x1f + PR_PPC_DEXCR_CTRL_SET = 0x2 + PR_PPC_DEXCR_CTRL_SET_ONEXEC = 0x8 + PR_PPC_DEXCR_IBRTPD = 0x1 + PR_PPC_DEXCR_NPHIE = 0x3 + PR_PPC_DEXCR_SBHE = 0x0 + PR_PPC_DEXCR_SRAPD = 0x2 + PR_PPC_GET_DEXCR = 0x48 + PR_PPC_SET_DEXCR = 0x49 + PR_RISCV_CTX_SW_FENCEI_OFF = 0x1 + PR_RISCV_CTX_SW_FENCEI_ON = 0x0 + PR_RISCV_SCOPE_PER_PROCESS = 0x0 + PR_RISCV_SCOPE_PER_THREAD = 0x1 + PR_RISCV_SET_ICACHE_FLUSH_CTX = 0x47 PR_RISCV_V_GET_CONTROL = 0x46 PR_RISCV_V_SET_CONTROL = 0x45 PR_RISCV_V_VSTATE_CTRL_CUR_MASK = 0x3 @@ -2581,6 +2625,28 @@ const ( PR_UNALIGN_NOPRINT = 0x1 PR_UNALIGN_SIGBUS = 0x2 PSTOREFS_MAGIC = 0x6165676c + PTP_CLK_MAGIC = '=' + PTP_ENABLE_FEATURE = 0x1 + PTP_EXTTS_EDGES = 0x6 + PTP_EXTTS_EVENT_VALID = 0x1 + PTP_EXTTS_V1_VALID_FLAGS = 0x7 + PTP_EXTTS_VALID_FLAGS = 0x1f + PTP_EXT_OFFSET = 0x10 + PTP_FALLING_EDGE = 0x4 + PTP_MAX_SAMPLES = 0x19 + PTP_PEROUT_DUTY_CYCLE = 0x2 + PTP_PEROUT_ONE_SHOT = 0x1 + PTP_PEROUT_PHASE = 0x4 + PTP_PEROUT_V1_VALID_FLAGS = 0x0 + PTP_PEROUT_VALID_FLAGS = 0x7 + PTP_PIN_GETFUNC = 0xc0603d06 + PTP_PIN_GETFUNC2 = 0xc0603d0f + PTP_RISING_EDGE = 0x2 + PTP_STRICT_FLAGS = 0x8 + PTP_SYS_OFFSET_EXTENDED = 0xc4c03d09 + PTP_SYS_OFFSET_EXTENDED2 = 0xc4c03d12 + PTP_SYS_OFFSET_PRECISE = 0xc0403d08 + PTP_SYS_OFFSET_PRECISE2 = 0xc0403d11 PTRACE_ATTACH = 0x10 PTRACE_CONT = 0x7 PTRACE_DETACH = 0x11 @@ -2894,10 +2960,12 @@ const ( RUSAGE_SELF = 0x0 RUSAGE_THREAD = 0x1 RWF_APPEND = 0x10 + RWF_ATOMIC = 0x40 RWF_DSYNC = 0x2 RWF_HIPRI = 0x1 + RWF_NOAPPEND = 0x20 RWF_NOWAIT = 0x8 - RWF_SUPPORTED = 0x1f + RWF_SUPPORTED = 0x7f RWF_SYNC = 0x4 RWF_WRITE_LIFE_NOT_SET = 0x0 SCHED_BATCH = 0x3 @@ -2918,7 +2986,9 @@ const ( SCHED_RESET_ON_FORK = 0x40000000 SCHED_RR = 0x2 SCM_CREDENTIALS = 0x2 + SCM_PIDFD = 0x4 SCM_RIGHTS = 0x1 + SCM_SECURITY = 0x3 SCM_TIMESTAMP = 0x1d SC_LOG_FLUSH = 0x100000 SECCOMP_ADDFD_FLAG_SEND = 0x2 @@ -3051,6 +3121,8 @@ const ( SIOCSMIIREG = 0x8949 SIOCSRARP = 0x8962 SIOCWANDEV = 0x894a + SK_DIAG_BPF_STORAGE_MAX = 0x3 + SK_DIAG_BPF_STORAGE_REQ_MAX = 0x1 SMACK_MAGIC = 0x43415d53 SMART_AUTOSAVE = 0xd2 SMART_AUTO_OFFLINE = 0xdb @@ -3071,6 +3143,8 @@ const ( SOCKFS_MAGIC = 0x534f434b SOCK_BUF_LOCK_MASK = 0x3 SOCK_DCCP = 0x6 + SOCK_DESTROY = 0x15 + SOCK_DIAG_BY_FAMILY = 0x14 SOCK_IOC_TYPE = 0x89 SOCK_PACKET = 0xa SOCK_RAW = 0x3 @@ -3164,6 +3238,7 @@ const ( STATX_ATTR_MOUNT_ROOT = 0x2000 STATX_ATTR_NODUMP = 0x40 STATX_ATTR_VERITY = 0x100000 + STATX_ATTR_WRITE_ATOMIC = 0x400000 STATX_BASIC_STATS = 0x7ff STATX_BLOCKS = 0x400 STATX_BTIME = 0x800 @@ -3177,8 +3252,10 @@ const ( STATX_MTIME = 0x40 STATX_NLINK = 0x4 STATX_SIZE = 0x200 + STATX_SUBVOL = 0x8000 STATX_TYPE = 0x1 STATX_UID = 0x8 + STATX_WRITE_ATOMIC = 0x10000 STATX__RESERVED = 0x80000000 SYNC_FILE_RANGE_WAIT_AFTER = 0x4 SYNC_FILE_RANGE_WAIT_BEFORE = 0x1 @@ -3260,6 +3337,7 @@ const ( TCP_MAX_WINSHIFT = 0xe TCP_MD5SIG = 0xe TCP_MD5SIG_EXT = 0x20 + TCP_MD5SIG_FLAG_IFINDEX = 0x2 TCP_MD5SIG_FLAG_PREFIX = 0x1 TCP_MD5SIG_MAXKEYLEN = 0x50 TCP_MSS = 0x200 @@ -3576,6 +3654,7 @@ const ( XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000 XDP_UMEM_PGOFF_FILL_RING = 0x100000000 XDP_UMEM_REG = 0x4 + XDP_UMEM_TX_METADATA_LEN = 0x4 XDP_UMEM_TX_SW_CSUM = 0x2 XDP_UMEM_UNALIGNED_CHUNK_FLAG = 0x1 XDP_USE_NEED_WAKEUP = 0x8 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 42ff8c3c1b06..0c00cb3f3af8 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x80088a02 + EPIOCSPARAMS = 0x40088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -118,6 +120,7 @@ const ( IXOFF = 0x1000 IXON = 0x400 MAP_32BIT = 0x40 + MAP_ABOVE4G = 0x80 MAP_ANON = 0x20 MAP_ANONYMOUS = 0x20 MAP_DENYWRITE = 0x800 @@ -150,9 +153,14 @@ const ( NFDBITS = 0x20 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x8008b705 NS_GET_NSTYPE = 0xb703 NS_GET_OWNER_UID = 0xb704 NS_GET_PARENT = 0xb702 + NS_GET_PID_FROM_PIDNS = 0x8004b706 + NS_GET_PID_IN_PIDNS = 0x8004b708 + NS_GET_TGID_FROM_PIDNS = 0x8004b707 + NS_GET_TGID_IN_PIDNS = 0x8004b709 NS_GET_USERNS = 0xb701 OLCUC = 0x2 ONLCR = 0x4 @@ -229,6 +237,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x7434 PPPIOCXFERUNIT = 0x744e PR_SET_PTRACER_ANY = 0xffffffff + PTP_CLOCK_GETCAPS = 0x80503d01 + PTP_CLOCK_GETCAPS2 = 0x80503d0a + PTP_ENABLE_PPS = 0x40043d04 + PTP_ENABLE_PPS2 = 0x40043d0d + PTP_EXTTS_REQUEST = 0x40103d02 + PTP_EXTTS_REQUEST2 = 0x40103d0b + PTP_MASK_CLEAR_ALL = 0x3d13 + PTP_MASK_EN_SINGLE = 0x40043d14 + PTP_PEROUT_REQUEST = 0x40383d03 + PTP_PEROUT_REQUEST2 = 0x40383d0c + PTP_PIN_SETFUNC = 0x40603d07 + PTP_PIN_SETFUNC2 = 0x40603d10 + PTP_SYS_OFFSET = 0x43403d05 + PTP_SYS_OFFSET2 = 0x43403d0e PTRACE_GETFPREGS = 0xe PTRACE_GETFPXREGS = 0x12 PTRACE_GET_THREAD_AREA = 0x19 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 dca436004fa4..dfb364554dd5 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x80088a02 + EPIOCSPARAMS = 0x40088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -118,6 +120,7 @@ const ( IXOFF = 0x1000 IXON = 0x400 MAP_32BIT = 0x40 + MAP_ABOVE4G = 0x80 MAP_ANON = 0x20 MAP_ANONYMOUS = 0x20 MAP_DENYWRITE = 0x800 @@ -150,9 +153,14 @@ const ( NFDBITS = 0x40 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x8008b705 NS_GET_NSTYPE = 0xb703 NS_GET_OWNER_UID = 0xb704 NS_GET_PARENT = 0xb702 + NS_GET_PID_FROM_PIDNS = 0x8004b706 + NS_GET_PID_IN_PIDNS = 0x8004b708 + NS_GET_TGID_FROM_PIDNS = 0x8004b707 + NS_GET_TGID_IN_PIDNS = 0x8004b709 NS_GET_USERNS = 0xb701 OLCUC = 0x2 ONLCR = 0x4 @@ -229,6 +237,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x7434 PPPIOCXFERUNIT = 0x744e PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x80503d01 + PTP_CLOCK_GETCAPS2 = 0x80503d0a + PTP_ENABLE_PPS = 0x40043d04 + PTP_ENABLE_PPS2 = 0x40043d0d + PTP_EXTTS_REQUEST = 0x40103d02 + PTP_EXTTS_REQUEST2 = 0x40103d0b + PTP_MASK_CLEAR_ALL = 0x3d13 + PTP_MASK_EN_SINGLE = 0x40043d14 + PTP_PEROUT_REQUEST = 0x40383d03 + PTP_PEROUT_REQUEST2 = 0x40383d0c + PTP_PIN_SETFUNC = 0x40603d07 + PTP_PIN_SETFUNC2 = 0x40603d10 + PTP_SYS_OFFSET = 0x43403d05 + PTP_SYS_OFFSET2 = 0x43403d0e PTRACE_ARCH_PRCTL = 0x1e PTRACE_GETFPREGS = 0xe PTRACE_GETFPXREGS = 0x12 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 5cca668ac302..d46dcf78abc9 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x80088a02 + EPIOCSPARAMS = 0x40088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -148,9 +150,14 @@ const ( NFDBITS = 0x20 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x8008b705 NS_GET_NSTYPE = 0xb703 NS_GET_OWNER_UID = 0xb704 NS_GET_PARENT = 0xb702 + NS_GET_PID_FROM_PIDNS = 0x8004b706 + NS_GET_PID_IN_PIDNS = 0x8004b708 + NS_GET_TGID_FROM_PIDNS = 0x8004b707 + NS_GET_TGID_IN_PIDNS = 0x8004b709 NS_GET_USERNS = 0xb701 OLCUC = 0x2 ONLCR = 0x4 @@ -227,6 +234,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x7434 PPPIOCXFERUNIT = 0x744e PR_SET_PTRACER_ANY = 0xffffffff + PTP_CLOCK_GETCAPS = 0x80503d01 + PTP_CLOCK_GETCAPS2 = 0x80503d0a + PTP_ENABLE_PPS = 0x40043d04 + PTP_ENABLE_PPS2 = 0x40043d0d + PTP_EXTTS_REQUEST = 0x40103d02 + PTP_EXTTS_REQUEST2 = 0x40103d0b + PTP_MASK_CLEAR_ALL = 0x3d13 + PTP_MASK_EN_SINGLE = 0x40043d14 + PTP_PEROUT_REQUEST = 0x40383d03 + PTP_PEROUT_REQUEST2 = 0x40383d0c + PTP_PIN_SETFUNC = 0x40603d07 + PTP_PIN_SETFUNC2 = 0x40603d10 + PTP_SYS_OFFSET = 0x43403d05 + PTP_SYS_OFFSET2 = 0x43403d0e PTRACE_GETCRUNCHREGS = 0x19 PTRACE_GETFDPIC = 0x1f PTRACE_GETFDPIC_EXEC = 0x0 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 d8cae6d15340..3af3248a7f2e 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x80088a02 + EPIOCSPARAMS = 0x40088a01 EPOLL_CLOEXEC = 0x80000 ESR_MAGIC = 0x45535201 EXTPROC = 0x10000 @@ -87,6 +89,7 @@ const ( FICLONE = 0x40049409 FICLONERANGE = 0x4020940d FLUSHO = 0x1000 + FPMR_MAGIC = 0x46504d52 FPSIMD_MAGIC = 0x46508001 FS_IOC_ENABLE_VERITY = 0x40806685 FS_IOC_GETFLAGS = 0x80086601 @@ -151,9 +154,14 @@ const ( NFDBITS = 0x40 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x8008b705 NS_GET_NSTYPE = 0xb703 NS_GET_OWNER_UID = 0xb704 NS_GET_PARENT = 0xb702 + NS_GET_PID_FROM_PIDNS = 0x8004b706 + NS_GET_PID_IN_PIDNS = 0x8004b708 + NS_GET_TGID_FROM_PIDNS = 0x8004b707 + NS_GET_TGID_IN_PIDNS = 0x8004b709 NS_GET_USERNS = 0xb701 OLCUC = 0x2 ONLCR = 0x4 @@ -232,6 +240,20 @@ const ( PROT_BTI = 0x10 PROT_MTE = 0x20 PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x80503d01 + PTP_CLOCK_GETCAPS2 = 0x80503d0a + PTP_ENABLE_PPS = 0x40043d04 + PTP_ENABLE_PPS2 = 0x40043d0d + PTP_EXTTS_REQUEST = 0x40103d02 + PTP_EXTTS_REQUEST2 = 0x40103d0b + PTP_MASK_CLEAR_ALL = 0x3d13 + PTP_MASK_EN_SINGLE = 0x40043d14 + PTP_PEROUT_REQUEST = 0x40383d03 + PTP_PEROUT_REQUEST2 = 0x40383d0c + PTP_PIN_SETFUNC = 0x40603d07 + PTP_PIN_SETFUNC2 = 0x40603d10 + PTP_SYS_OFFSET = 0x43403d05 + PTP_SYS_OFFSET2 = 0x43403d0e PTRACE_PEEKMTETAGS = 0x21 PTRACE_POKEMTETAGS = 0x22 PTRACE_SYSEMU = 0x1f 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 28e39afdcb4a..292bcf0283d1 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x80088a02 + EPIOCSPARAMS = 0x40088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -152,9 +154,14 @@ const ( NFDBITS = 0x40 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x8008b705 NS_GET_NSTYPE = 0xb703 NS_GET_OWNER_UID = 0xb704 NS_GET_PARENT = 0xb702 + NS_GET_PID_FROM_PIDNS = 0x8004b706 + NS_GET_PID_IN_PIDNS = 0x8004b708 + NS_GET_TGID_FROM_PIDNS = 0x8004b707 + NS_GET_TGID_IN_PIDNS = 0x8004b709 NS_GET_USERNS = 0xb701 OLCUC = 0x2 ONLCR = 0x4 @@ -231,6 +238,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x7434 PPPIOCXFERUNIT = 0x744e PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x80503d01 + PTP_CLOCK_GETCAPS2 = 0x80503d0a + PTP_ENABLE_PPS = 0x40043d04 + PTP_ENABLE_PPS2 = 0x40043d0d + PTP_EXTTS_REQUEST = 0x40103d02 + PTP_EXTTS_REQUEST2 = 0x40103d0b + PTP_MASK_CLEAR_ALL = 0x3d13 + PTP_MASK_EN_SINGLE = 0x40043d14 + PTP_PEROUT_REQUEST = 0x40383d03 + PTP_PEROUT_REQUEST2 = 0x40383d0c + PTP_PIN_SETFUNC = 0x40603d07 + PTP_PIN_SETFUNC2 = 0x40603d10 + PTP_SYS_OFFSET = 0x43403d05 + PTP_SYS_OFFSET2 = 0x43403d0e PTRACE_SYSEMU = 0x1f PTRACE_SYSEMU_SINGLESTEP = 0x20 RLIMIT_AS = 0x9 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 cd66e92cb426..782b7110fa19 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x80 + EPIOCGPARAMS = 0x40088a02 + EPIOCSPARAMS = 0x80088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -148,9 +150,14 @@ const ( NFDBITS = 0x20 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x4008b705 NS_GET_NSTYPE = 0x2000b703 NS_GET_OWNER_UID = 0x2000b704 NS_GET_PARENT = 0x2000b702 + NS_GET_PID_FROM_PIDNS = 0x4004b706 + NS_GET_PID_IN_PIDNS = 0x4004b708 + NS_GET_TGID_FROM_PIDNS = 0x4004b707 + NS_GET_TGID_IN_PIDNS = 0x4004b709 NS_GET_USERNS = 0x2000b701 OLCUC = 0x2 ONLCR = 0x4 @@ -227,6 +234,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x20007434 PPPIOCXFERUNIT = 0x2000744e PR_SET_PTRACER_ANY = 0xffffffff + PTP_CLOCK_GETCAPS = 0x40503d01 + PTP_CLOCK_GETCAPS2 = 0x40503d0a + PTP_ENABLE_PPS = 0x80043d04 + PTP_ENABLE_PPS2 = 0x80043d0d + PTP_EXTTS_REQUEST = 0x80103d02 + PTP_EXTTS_REQUEST2 = 0x80103d0b + PTP_MASK_CLEAR_ALL = 0x20003d13 + PTP_MASK_EN_SINGLE = 0x80043d14 + PTP_PEROUT_REQUEST = 0x80383d03 + PTP_PEROUT_REQUEST2 = 0x80383d0c + PTP_PIN_SETFUNC = 0x80603d07 + PTP_PIN_SETFUNC2 = 0x80603d10 + PTP_SYS_OFFSET = 0x83403d05 + PTP_SYS_OFFSET2 = 0x83403d0e PTRACE_GETFPREGS = 0xe PTRACE_GET_THREAD_AREA = 0x19 PTRACE_GET_THREAD_AREA_3264 = 0xc4 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 c1595eba78e3..84973fd9271f 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x80 + EPIOCGPARAMS = 0x40088a02 + EPIOCSPARAMS = 0x80088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -148,9 +150,14 @@ const ( NFDBITS = 0x40 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x4008b705 NS_GET_NSTYPE = 0x2000b703 NS_GET_OWNER_UID = 0x2000b704 NS_GET_PARENT = 0x2000b702 + NS_GET_PID_FROM_PIDNS = 0x4004b706 + NS_GET_PID_IN_PIDNS = 0x4004b708 + NS_GET_TGID_FROM_PIDNS = 0x4004b707 + NS_GET_TGID_IN_PIDNS = 0x4004b709 NS_GET_USERNS = 0x2000b701 OLCUC = 0x2 ONLCR = 0x4 @@ -227,6 +234,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x20007434 PPPIOCXFERUNIT = 0x2000744e PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x40503d01 + PTP_CLOCK_GETCAPS2 = 0x40503d0a + PTP_ENABLE_PPS = 0x80043d04 + PTP_ENABLE_PPS2 = 0x80043d0d + PTP_EXTTS_REQUEST = 0x80103d02 + PTP_EXTTS_REQUEST2 = 0x80103d0b + PTP_MASK_CLEAR_ALL = 0x20003d13 + PTP_MASK_EN_SINGLE = 0x80043d14 + PTP_PEROUT_REQUEST = 0x80383d03 + PTP_PEROUT_REQUEST2 = 0x80383d0c + PTP_PIN_SETFUNC = 0x80603d07 + PTP_PIN_SETFUNC2 = 0x80603d10 + PTP_SYS_OFFSET = 0x83403d05 + PTP_SYS_OFFSET2 = 0x83403d0e PTRACE_GETFPREGS = 0xe PTRACE_GET_THREAD_AREA = 0x19 PTRACE_GET_THREAD_AREA_3264 = 0xc4 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 ee9456b0da74..6d9cbc3b274b 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x80 + EPIOCGPARAMS = 0x40088a02 + EPIOCSPARAMS = 0x80088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -148,9 +150,14 @@ const ( NFDBITS = 0x40 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x4008b705 NS_GET_NSTYPE = 0x2000b703 NS_GET_OWNER_UID = 0x2000b704 NS_GET_PARENT = 0x2000b702 + NS_GET_PID_FROM_PIDNS = 0x4004b706 + NS_GET_PID_IN_PIDNS = 0x4004b708 + NS_GET_TGID_FROM_PIDNS = 0x4004b707 + NS_GET_TGID_IN_PIDNS = 0x4004b709 NS_GET_USERNS = 0x2000b701 OLCUC = 0x2 ONLCR = 0x4 @@ -227,6 +234,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x20007434 PPPIOCXFERUNIT = 0x2000744e PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x40503d01 + PTP_CLOCK_GETCAPS2 = 0x40503d0a + PTP_ENABLE_PPS = 0x80043d04 + PTP_ENABLE_PPS2 = 0x80043d0d + PTP_EXTTS_REQUEST = 0x80103d02 + PTP_EXTTS_REQUEST2 = 0x80103d0b + PTP_MASK_CLEAR_ALL = 0x20003d13 + PTP_MASK_EN_SINGLE = 0x80043d14 + PTP_PEROUT_REQUEST = 0x80383d03 + PTP_PEROUT_REQUEST2 = 0x80383d0c + PTP_PIN_SETFUNC = 0x80603d07 + PTP_PIN_SETFUNC2 = 0x80603d10 + PTP_SYS_OFFSET = 0x83403d05 + PTP_SYS_OFFSET2 = 0x83403d0e PTRACE_GETFPREGS = 0xe PTRACE_GET_THREAD_AREA = 0x19 PTRACE_GET_THREAD_AREA_3264 = 0xc4 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 8cfca81e1b56..5f9fedbce028 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x80 + EPIOCGPARAMS = 0x40088a02 + EPIOCSPARAMS = 0x80088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -148,9 +150,14 @@ const ( NFDBITS = 0x20 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x4008b705 NS_GET_NSTYPE = 0x2000b703 NS_GET_OWNER_UID = 0x2000b704 NS_GET_PARENT = 0x2000b702 + NS_GET_PID_FROM_PIDNS = 0x4004b706 + NS_GET_PID_IN_PIDNS = 0x4004b708 + NS_GET_TGID_FROM_PIDNS = 0x4004b707 + NS_GET_TGID_IN_PIDNS = 0x4004b709 NS_GET_USERNS = 0x2000b701 OLCUC = 0x2 ONLCR = 0x4 @@ -227,6 +234,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x20007434 PPPIOCXFERUNIT = 0x2000744e PR_SET_PTRACER_ANY = 0xffffffff + PTP_CLOCK_GETCAPS = 0x40503d01 + PTP_CLOCK_GETCAPS2 = 0x40503d0a + PTP_ENABLE_PPS = 0x80043d04 + PTP_ENABLE_PPS2 = 0x80043d0d + PTP_EXTTS_REQUEST = 0x80103d02 + PTP_EXTTS_REQUEST2 = 0x80103d0b + PTP_MASK_CLEAR_ALL = 0x20003d13 + PTP_MASK_EN_SINGLE = 0x80043d14 + PTP_PEROUT_REQUEST = 0x80383d03 + PTP_PEROUT_REQUEST2 = 0x80383d0c + PTP_PIN_SETFUNC = 0x80603d07 + PTP_PIN_SETFUNC2 = 0x80603d10 + PTP_SYS_OFFSET = 0x83403d05 + PTP_SYS_OFFSET2 = 0x83403d0e PTRACE_GETFPREGS = 0xe PTRACE_GET_THREAD_AREA = 0x19 PTRACE_GET_THREAD_AREA_3264 = 0xc4 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 60b0deb3af77..bb0026ee0c46 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x20 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x40088a02 + EPIOCSPARAMS = 0x80088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000000 FF1 = 0x4000 @@ -150,9 +152,14 @@ const ( NL3 = 0x300 NLDLY = 0x300 NOFLSH = 0x80000000 + NS_GET_MNTNS_ID = 0x4008b705 NS_GET_NSTYPE = 0x2000b703 NS_GET_OWNER_UID = 0x2000b704 NS_GET_PARENT = 0x2000b702 + NS_GET_PID_FROM_PIDNS = 0x4004b706 + NS_GET_PID_IN_PIDNS = 0x4004b708 + NS_GET_TGID_FROM_PIDNS = 0x4004b707 + NS_GET_TGID_IN_PIDNS = 0x4004b709 NS_GET_USERNS = 0x2000b701 OLCUC = 0x4 ONLCR = 0x2 @@ -230,6 +237,20 @@ const ( PPPIOCXFERUNIT = 0x2000744e PROT_SAO = 0x10 PR_SET_PTRACER_ANY = 0xffffffff + PTP_CLOCK_GETCAPS = 0x40503d01 + PTP_CLOCK_GETCAPS2 = 0x40503d0a + PTP_ENABLE_PPS = 0x80043d04 + PTP_ENABLE_PPS2 = 0x80043d0d + PTP_EXTTS_REQUEST = 0x80103d02 + PTP_EXTTS_REQUEST2 = 0x80103d0b + PTP_MASK_CLEAR_ALL = 0x20003d13 + PTP_MASK_EN_SINGLE = 0x80043d14 + PTP_PEROUT_REQUEST = 0x80383d03 + PTP_PEROUT_REQUEST2 = 0x80383d0c + PTP_PIN_SETFUNC = 0x80603d07 + PTP_PIN_SETFUNC2 = 0x80603d10 + PTP_SYS_OFFSET = 0x83403d05 + PTP_SYS_OFFSET2 = 0x83403d0e PTRACE_GETEVRREGS = 0x14 PTRACE_GETFPREGS = 0xe PTRACE_GETREGS64 = 0x16 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 f90aa7281bfb..46120db5c9a1 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x20 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x40088a02 + EPIOCSPARAMS = 0x80088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000000 FF1 = 0x4000 @@ -150,9 +152,14 @@ const ( NL3 = 0x300 NLDLY = 0x300 NOFLSH = 0x80000000 + NS_GET_MNTNS_ID = 0x4008b705 NS_GET_NSTYPE = 0x2000b703 NS_GET_OWNER_UID = 0x2000b704 NS_GET_PARENT = 0x2000b702 + NS_GET_PID_FROM_PIDNS = 0x4004b706 + NS_GET_PID_IN_PIDNS = 0x4004b708 + NS_GET_TGID_FROM_PIDNS = 0x4004b707 + NS_GET_TGID_IN_PIDNS = 0x4004b709 NS_GET_USERNS = 0x2000b701 OLCUC = 0x4 ONLCR = 0x2 @@ -230,6 +237,20 @@ const ( PPPIOCXFERUNIT = 0x2000744e PROT_SAO = 0x10 PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x40503d01 + PTP_CLOCK_GETCAPS2 = 0x40503d0a + PTP_ENABLE_PPS = 0x80043d04 + PTP_ENABLE_PPS2 = 0x80043d0d + PTP_EXTTS_REQUEST = 0x80103d02 + PTP_EXTTS_REQUEST2 = 0x80103d0b + PTP_MASK_CLEAR_ALL = 0x20003d13 + PTP_MASK_EN_SINGLE = 0x80043d14 + PTP_PEROUT_REQUEST = 0x80383d03 + PTP_PEROUT_REQUEST2 = 0x80383d0c + PTP_PIN_SETFUNC = 0x80603d07 + PTP_PIN_SETFUNC2 = 0x80603d10 + PTP_SYS_OFFSET = 0x83403d05 + PTP_SYS_OFFSET2 = 0x83403d0e PTRACE_GETEVRREGS = 0x14 PTRACE_GETFPREGS = 0xe PTRACE_GETREGS64 = 0x16 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 ba9e01503383..5c951634fbed 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x20 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x40088a02 + EPIOCSPARAMS = 0x80088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000000 FF1 = 0x4000 @@ -150,9 +152,14 @@ const ( NL3 = 0x300 NLDLY = 0x300 NOFLSH = 0x80000000 + NS_GET_MNTNS_ID = 0x4008b705 NS_GET_NSTYPE = 0x2000b703 NS_GET_OWNER_UID = 0x2000b704 NS_GET_PARENT = 0x2000b702 + NS_GET_PID_FROM_PIDNS = 0x4004b706 + NS_GET_PID_IN_PIDNS = 0x4004b708 + NS_GET_TGID_FROM_PIDNS = 0x4004b707 + NS_GET_TGID_IN_PIDNS = 0x4004b709 NS_GET_USERNS = 0x2000b701 OLCUC = 0x4 ONLCR = 0x2 @@ -230,6 +237,20 @@ const ( PPPIOCXFERUNIT = 0x2000744e PROT_SAO = 0x10 PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x40503d01 + PTP_CLOCK_GETCAPS2 = 0x40503d0a + PTP_ENABLE_PPS = 0x80043d04 + PTP_ENABLE_PPS2 = 0x80043d0d + PTP_EXTTS_REQUEST = 0x80103d02 + PTP_EXTTS_REQUEST2 = 0x80103d0b + PTP_MASK_CLEAR_ALL = 0x20003d13 + PTP_MASK_EN_SINGLE = 0x80043d14 + PTP_PEROUT_REQUEST = 0x80383d03 + PTP_PEROUT_REQUEST2 = 0x80383d0c + PTP_PIN_SETFUNC = 0x80603d07 + PTP_PIN_SETFUNC2 = 0x80603d10 + PTP_SYS_OFFSET = 0x83403d05 + PTP_SYS_OFFSET2 = 0x83403d0e PTRACE_GETEVRREGS = 0x14 PTRACE_GETFPREGS = 0xe PTRACE_GETREGS64 = 0x16 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 07cdfd6e9fd3..11a84d5af208 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x80088a02 + EPIOCSPARAMS = 0x40088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -148,9 +150,14 @@ const ( NFDBITS = 0x40 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x8008b705 NS_GET_NSTYPE = 0xb703 NS_GET_OWNER_UID = 0xb704 NS_GET_PARENT = 0xb702 + NS_GET_PID_FROM_PIDNS = 0x8004b706 + NS_GET_PID_IN_PIDNS = 0x8004b708 + NS_GET_TGID_FROM_PIDNS = 0x8004b707 + NS_GET_TGID_IN_PIDNS = 0x8004b709 NS_GET_USERNS = 0xb701 OLCUC = 0x2 ONLCR = 0x4 @@ -227,6 +234,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x7434 PPPIOCXFERUNIT = 0x744e PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x80503d01 + PTP_CLOCK_GETCAPS2 = 0x80503d0a + PTP_ENABLE_PPS = 0x40043d04 + PTP_ENABLE_PPS2 = 0x40043d0d + PTP_EXTTS_REQUEST = 0x40103d02 + PTP_EXTTS_REQUEST2 = 0x40103d0b + PTP_MASK_CLEAR_ALL = 0x3d13 + PTP_MASK_EN_SINGLE = 0x40043d14 + PTP_PEROUT_REQUEST = 0x40383d03 + PTP_PEROUT_REQUEST2 = 0x40383d0c + PTP_PIN_SETFUNC = 0x40603d07 + PTP_PIN_SETFUNC2 = 0x40603d10 + PTP_SYS_OFFSET = 0x43403d05 + PTP_SYS_OFFSET2 = 0x43403d0e PTRACE_GETFDPIC = 0x21 PTRACE_GETFDPIC_EXEC = 0x0 PTRACE_GETFDPIC_INTERP = 0x1 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 2f1dd214a74e..f78c4617cac1 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -78,6 +78,8 @@ const ( ECHOPRT = 0x400 EFD_CLOEXEC = 0x80000 EFD_NONBLOCK = 0x800 + EPIOCGPARAMS = 0x80088a02 + EPIOCSPARAMS = 0x40088a01 EPOLL_CLOEXEC = 0x80000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -148,9 +150,14 @@ const ( NFDBITS = 0x40 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x8008b705 NS_GET_NSTYPE = 0xb703 NS_GET_OWNER_UID = 0xb704 NS_GET_PARENT = 0xb702 + NS_GET_PID_FROM_PIDNS = 0x8004b706 + NS_GET_PID_IN_PIDNS = 0x8004b708 + NS_GET_TGID_FROM_PIDNS = 0x8004b707 + NS_GET_TGID_IN_PIDNS = 0x8004b709 NS_GET_USERNS = 0xb701 OLCUC = 0x2 ONLCR = 0x4 @@ -227,6 +234,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x7434 PPPIOCXFERUNIT = 0x744e PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x80503d01 + PTP_CLOCK_GETCAPS2 = 0x80503d0a + PTP_ENABLE_PPS = 0x40043d04 + PTP_ENABLE_PPS2 = 0x40043d0d + PTP_EXTTS_REQUEST = 0x40103d02 + PTP_EXTTS_REQUEST2 = 0x40103d0b + PTP_MASK_CLEAR_ALL = 0x3d13 + PTP_MASK_EN_SINGLE = 0x40043d14 + PTP_PEROUT_REQUEST = 0x40383d03 + PTP_PEROUT_REQUEST2 = 0x40383d0c + PTP_PIN_SETFUNC = 0x40603d07 + PTP_PIN_SETFUNC2 = 0x40603d10 + PTP_SYS_OFFSET = 0x43403d05 + PTP_SYS_OFFSET2 = 0x43403d0e PTRACE_DISABLE_TE = 0x5010 PTRACE_ENABLE_TE = 0x5009 PTRACE_GET_LAST_BREAK = 0x5006 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 f40519d90180..aeb777c34427 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -82,6 +82,8 @@ const ( EFD_CLOEXEC = 0x400000 EFD_NONBLOCK = 0x4000 EMT_TAGOVF = 0x1 + EPIOCGPARAMS = 0x40088a02 + EPIOCSPARAMS = 0x80088a01 EPOLL_CLOEXEC = 0x400000 EXTPROC = 0x10000 FF1 = 0x8000 @@ -153,9 +155,14 @@ const ( NFDBITS = 0x40 NLDLY = 0x100 NOFLSH = 0x80 + NS_GET_MNTNS_ID = 0x4008b705 NS_GET_NSTYPE = 0x2000b703 NS_GET_OWNER_UID = 0x2000b704 NS_GET_PARENT = 0x2000b702 + NS_GET_PID_FROM_PIDNS = 0x4004b706 + NS_GET_PID_IN_PIDNS = 0x4004b708 + NS_GET_TGID_FROM_PIDNS = 0x4004b707 + NS_GET_TGID_IN_PIDNS = 0x4004b709 NS_GET_USERNS = 0x2000b701 OLCUC = 0x2 ONLCR = 0x4 @@ -232,6 +239,20 @@ const ( PPPIOCUNBRIDGECHAN = 0x20007434 PPPIOCXFERUNIT = 0x2000744e PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTP_CLOCK_GETCAPS = 0x40503d01 + PTP_CLOCK_GETCAPS2 = 0x40503d0a + PTP_ENABLE_PPS = 0x80043d04 + PTP_ENABLE_PPS2 = 0x80043d0d + PTP_EXTTS_REQUEST = 0x80103d02 + PTP_EXTTS_REQUEST2 = 0x80103d0b + PTP_MASK_CLEAR_ALL = 0x20003d13 + PTP_MASK_EN_SINGLE = 0x80043d14 + PTP_PEROUT_REQUEST = 0x80383d03 + PTP_PEROUT_REQUEST2 = 0x80383d0c + PTP_PIN_SETFUNC = 0x80603d07 + PTP_PIN_SETFUNC2 = 0x80603d10 + PTP_SYS_OFFSET = 0x83403d05 + PTP_SYS_OFFSET2 = 0x83403d0e PTRACE_GETFPAREGS = 0x14 PTRACE_GETFPREGS = 0xe PTRACE_GETFPREGS64 = 0x19 diff --git a/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go index da08b2ab3d93..1ec2b1407b12 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go @@ -581,6 +581,8 @@ const ( AT_EMPTY_PATH = 0x1000 AT_REMOVEDIR = 0x200 RENAME_NOREPLACE = 1 << 0 + ST_RDONLY = 1 + ST_NOSUID = 2 ) const ( diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go index ccb02f240a4f..24b346e1a351 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go @@ -740,6 +740,54 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func renamexNp(from string, to string, flag uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_renamex_np_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flag)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renamex_np_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renamex_np renamex_np "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func renameatxNp(fromfd int, from string, tofd int, to string, flag uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameatx_np_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), uintptr(flag), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameatx_np_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameatx_np renameatx_np "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { var _p0 unsafe.Pointer if len(mib) > 0 { @@ -760,6 +808,59 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func pthread_chdir_np(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_pthread_chdir_np_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pthread_chdir_np_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pthread_chdir_np pthread_chdir_np "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pthread_fchdir_np(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_pthread_fchdir_np_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pthread_fchdir_np_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pthread_fchdir_np pthread_fchdir_np "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error) { + var _p0 unsafe.Pointer + if len(iov) > 0 { + _p0 = unsafe.Pointer(&iov[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall9(libc_connectx_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(endpoints)), uintptr(associd), uintptr(flags), uintptr(_p0), uintptr(len(iov)), uintptr(unsafe.Pointer(n)), uintptr(unsafe.Pointer(connid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connectx_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connectx connectx "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s index 8b8bb2840285..ebd213100b35 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s @@ -223,11 +223,36 @@ TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) +TEXT libc_renamex_np_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renamex_np(SB) +GLOBL ·libc_renamex_np_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renamex_np_trampoline_addr(SB)/8, $libc_renamex_np_trampoline<>(SB) + +TEXT libc_renameatx_np_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameatx_np(SB) +GLOBL ·libc_renameatx_np_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameatx_np_trampoline_addr(SB)/8, $libc_renameatx_np_trampoline<>(SB) + TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sysctl(SB) GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) +TEXT libc_pthread_chdir_np_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pthread_chdir_np(SB) +GLOBL ·libc_pthread_chdir_np_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pthread_chdir_np_trampoline_addr(SB)/8, $libc_pthread_chdir_np_trampoline<>(SB) + +TEXT libc_pthread_fchdir_np_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pthread_fchdir_np(SB) +GLOBL ·libc_pthread_fchdir_np_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pthread_fchdir_np_trampoline_addr(SB)/8, $libc_pthread_fchdir_np_trampoline<>(SB) + +TEXT libc_connectx_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connectx(SB) +GLOBL ·libc_connectx_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connectx_trampoline_addr(SB)/8, $libc_connectx_trampoline<>(SB) + TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sendfile(SB) GLOBL ·libc_sendfile_trampoline_addr(SB), RODATA, $8 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go index 1b40b997b526..824b9c2d5e0e 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go @@ -740,6 +740,54 @@ func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func renamexNp(from string, to string, flag uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_renamex_np_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flag)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renamex_np_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renamex_np renamex_np "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func renameatxNp(fromfd int, from string, tofd int, to string, flag uint32) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(from) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(to) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_renameatx_np_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), uintptr(flag), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_renameatx_np_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_renameatx_np renameatx_np "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { var _p0 unsafe.Pointer if len(mib) > 0 { @@ -760,6 +808,59 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func pthread_chdir_np(path string) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := syscall_syscall(libc_pthread_chdir_np_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pthread_chdir_np_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pthread_chdir_np pthread_chdir_np "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pthread_fchdir_np(fd int) (err error) { + _, _, e1 := syscall_syscall(libc_pthread_fchdir_np_trampoline_addr, uintptr(fd), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pthread_fchdir_np_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pthread_fchdir_np pthread_fchdir_np "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func connectx(fd int, endpoints *SaEndpoints, associd SaeAssocID, flags uint32, iov []Iovec, n *uintptr, connid *SaeConnID) (err error) { + var _p0 unsafe.Pointer + if len(iov) > 0 { + _p0 = unsafe.Pointer(&iov[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := syscall_syscall9(libc_connectx_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(endpoints)), uintptr(associd), uintptr(flags), uintptr(_p0), uintptr(len(iov)), uintptr(unsafe.Pointer(n)), uintptr(unsafe.Pointer(connid)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_connectx_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_connectx connectx "/usr/lib/libSystem.B.dylib" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { _, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s index 08362c1ab747..4f178a229345 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s @@ -223,11 +223,36 @@ TEXT libc_ioctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_ioctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_ioctl_trampoline_addr(SB)/8, $libc_ioctl_trampoline<>(SB) +TEXT libc_renamex_np_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renamex_np(SB) +GLOBL ·libc_renamex_np_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renamex_np_trampoline_addr(SB)/8, $libc_renamex_np_trampoline<>(SB) + +TEXT libc_renameatx_np_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_renameatx_np(SB) +GLOBL ·libc_renameatx_np_trampoline_addr(SB), RODATA, $8 +DATA ·libc_renameatx_np_trampoline_addr(SB)/8, $libc_renameatx_np_trampoline<>(SB) + TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sysctl(SB) GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) +TEXT libc_pthread_chdir_np_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pthread_chdir_np(SB) +GLOBL ·libc_pthread_chdir_np_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pthread_chdir_np_trampoline_addr(SB)/8, $libc_pthread_chdir_np_trampoline<>(SB) + +TEXT libc_pthread_fchdir_np_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pthread_fchdir_np(SB) +GLOBL ·libc_pthread_fchdir_np_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pthread_fchdir_np_trampoline_addr(SB)/8, $libc_pthread_fchdir_np_trampoline<>(SB) + +TEXT libc_connectx_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_connectx(SB) +GLOBL ·libc_connectx_trampoline_addr(SB), RODATA, $8 +DATA ·libc_connectx_trampoline_addr(SB)/8, $libc_connectx_trampoline<>(SB) + TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_sendfile(SB) GLOBL ·libc_sendfile_trampoline_addr(SB), RODATA, $8 diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux.go b/vendor/golang.org/x/sys/unix/zsyscall_linux.go index 87d8612a1dc7..5cc1e8eb2f35 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux.go @@ -592,6 +592,16 @@ func ClockGettime(clockid int32, time *Timespec) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func ClockSettime(clockid int32, time *Timespec) (err error) { + _, _, e1 := Syscall(SYS_CLOCK_SETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) { _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0) if e1 != 0 { @@ -971,23 +981,6 @@ func Getpriority(which int, who int) (prio int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func Getrusage(who int, rusage *Rusage) (err error) { _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) if e1 != 0 { @@ -2229,3 +2222,19 @@ func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) } return } + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Mseal(b []byte, flags uint) (err error) { + var _p0 unsafe.Pointer + if len(b) > 0 { + _p0 = unsafe.Pointer(&b[0]) + } else { + _p0 = unsafe.Pointer(&_zero) + } + _, _, e1 := Syscall(SYS_MSEAL, uintptr(_p0), uintptr(len(b)), uintptr(flags)) + if e1 != 0 { + err = errnoErr(e1) + } + return +} 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 9dc42410b78b..1851df14e878 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go @@ -1493,6 +1493,30 @@ var libc_mknodat_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Nanosleep(time *Timespec, leftover *Timespec) (err error) { _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s index 41b5617316c0..0b43c6936563 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s @@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $4 DATA ·libc_mknodat_trampoline_addr(SB)/4, $libc_mknodat_trampoline<>(SB) +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mount(SB) +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mount_trampoline_addr(SB)/4, $libc_mount_trampoline<>(SB) + TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_nanosleep(SB) GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $4 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 0d3a0751cd43..e1ec0dbe4ecf 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go @@ -1493,6 +1493,30 @@ var libc_mknodat_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Nanosleep(time *Timespec, leftover *Timespec) (err error) { _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s index 4019a656f6d5..880c6d6e3167 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s @@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mount(SB) +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) + TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_nanosleep(SB) GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 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 c39f7776db33..7c8452a63e92 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go @@ -1493,6 +1493,30 @@ var libc_mknodat_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Nanosleep(time *Timespec, leftover *Timespec) (err error) { _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s index ac4af24f9083..b8ef95b0fa1c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s @@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $4 DATA ·libc_mknodat_trampoline_addr(SB)/4, $libc_mknodat_trampoline<>(SB) +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mount(SB) +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $4 +DATA ·libc_mount_trampoline_addr(SB)/4, $libc_mount_trampoline<>(SB) + TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_nanosleep(SB) GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $4 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 57571d072fe6..2ffdf861f757 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go @@ -1493,6 +1493,30 @@ var libc_mknodat_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Nanosleep(time *Timespec, leftover *Timespec) (err error) { _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s index f77d532121b9..2af3b5c762fd 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s @@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mount(SB) +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) + TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_nanosleep(SB) GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 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 e62963e67e20..1da08d52675f 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go @@ -1493,6 +1493,30 @@ var libc_mknodat_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Nanosleep(time *Timespec, leftover *Timespec) (err error) { _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s index fae140b62c9d..b7a251353b0f 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s @@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mount(SB) +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) + TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_nanosleep(SB) GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 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 00831354c82f..6e85b0aac95c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go @@ -1493,6 +1493,30 @@ var libc_mknodat_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Nanosleep(time *Timespec, leftover *Timespec) (err error) { _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s index 9d1e0ff06d0f..f15dadf0552f 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s @@ -555,6 +555,12 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_mount(SB) + RET +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) + TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 CALL libc_nanosleep(SB) RET 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 79029ed58482..28b487df2514 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go @@ -1493,6 +1493,30 @@ var libc_mknodat_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(fsType) + if err != nil { + return + } + var _p1 *byte + _p1, err = BytePtrFromString(dir) + if err != nil { + return + } + _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_mount_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_mount mount "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func Nanosleep(time *Timespec, leftover *Timespec) (err error) { _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) if e1 != 0 { diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s index da115f9a4b69..1e7f321e436c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s @@ -463,6 +463,11 @@ TEXT libc_mknodat_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_mknodat_trampoline_addr(SB), RODATA, $8 DATA ·libc_mknodat_trampoline_addr(SB)/8, $libc_mknodat_trampoline<>(SB) +TEXT libc_mount_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_mount(SB) +GLOBL ·libc_mount_trampoline_addr(SB), RODATA, $8 +DATA ·libc_mount_trampoline_addr(SB)/8, $libc_mount_trampoline<>(SB) + TEXT libc_nanosleep_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_nanosleep(SB) GLOBL ·libc_nanosleep_trampoline_addr(SB), RODATA, $8 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 53aef5dc58df..524b0820cbc2 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -457,4 +457,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 71d524763d34..f485dbf45656 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -341,6 +341,7 @@ const ( SYS_STATX = 332 SYS_IO_PGETEVENTS = 333 SYS_RSEQ = 334 + SYS_URETPROBE = 335 SYS_PIDFD_SEND_SIGNAL = 424 SYS_IO_URING_SETUP = 425 SYS_IO_URING_ENTER = 426 @@ -379,4 +380,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 c747706131cb..70b35bf3b09f 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -421,4 +421,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 f96e214f6d40..1893e2fe8840 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -85,7 +85,7 @@ const ( SYS_SPLICE = 76 SYS_TEE = 77 SYS_READLINKAT = 78 - SYS_FSTATAT = 79 + SYS_NEWFSTATAT = 79 SYS_FSTAT = 80 SYS_SYNC = 81 SYS_FSYNC = 82 @@ -324,4 +324,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 28425346cf18..16a4017da0ab 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go @@ -84,6 +84,8 @@ const ( SYS_SPLICE = 76 SYS_TEE = 77 SYS_READLINKAT = 78 + SYS_NEWFSTATAT = 79 + SYS_FSTAT = 80 SYS_SYNC = 81 SYS_FSYNC = 82 SYS_FDATASYNC = 83 @@ -318,4 +320,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 d0953018dae0..7e567f1efff2 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -441,4 +441,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 4459 SYS_LSM_SET_SELF_ATTR = 4460 SYS_LSM_LIST_MODULES = 4461 + SYS_MSEAL = 4462 ) 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 295c7f4b8184..38ae55e5ef85 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -371,4 +371,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 5459 SYS_LSM_SET_SELF_ATTR = 5460 SYS_LSM_LIST_MODULES = 5461 + SYS_MSEAL = 5462 ) 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 d1a9eaca7a41..55e92e60a82a 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -371,4 +371,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 5459 SYS_LSM_SET_SELF_ATTR = 5460 SYS_LSM_LIST_MODULES = 5461 + SYS_MSEAL = 5462 ) 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 bec157c39fd0..60658d6a021f 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -441,4 +441,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 4459 SYS_LSM_SET_SELF_ATTR = 4460 SYS_LSM_LIST_MODULES = 4461 + SYS_MSEAL = 4462 ) 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 7ee7bdc435cf..e203e8a7ed4b 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go @@ -448,4 +448,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 fad1f25b449d..5944b97d5460 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -420,4 +420,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 7d3e16357d61..c66d416dad1c 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -420,4 +420,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 0ed53ad9f7e9..a5459e766f59 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -84,7 +84,7 @@ const ( SYS_SPLICE = 76 SYS_TEE = 77 SYS_READLINKAT = 78 - SYS_FSTATAT = 79 + SYS_NEWFSTATAT = 79 SYS_FSTAT = 80 SYS_SYNC = 81 SYS_FSYNC = 82 @@ -325,4 +325,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 2fba04ad5006..01d86825bb92 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -386,4 +386,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) 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 621d00d741bf..7b703e77cda8 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -399,4 +399,5 @@ const ( SYS_LSM_GET_SELF_ATTR = 459 SYS_LSM_SET_SELF_ATTR = 460 SYS_LSM_LIST_MODULES = 461 + SYS_MSEAL = 462 ) diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go index 091d107f3a5c..d003c3d43780 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go @@ -306,6 +306,19 @@ type XVSockPgen struct { type _Socklen uint32 +type SaeAssocID uint32 + +type SaeConnID uint32 + +type SaEndpoints struct { + Srcif uint32 + Srcaddr *RawSockaddr + Srcaddrlen uint32 + Dstaddr *RawSockaddr + Dstaddrlen uint32 + _ [4]byte +} + type Xucred struct { Version uint32 Uid uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go index 28ff4ef74d0d..0d45a941aaec 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go @@ -306,6 +306,19 @@ type XVSockPgen struct { type _Socklen uint32 +type SaeAssocID uint32 + +type SaeConnID uint32 + +type SaEndpoints struct { + Srcif uint32 + Srcaddr *RawSockaddr + Srcaddrlen uint32 + Dstaddr *RawSockaddr + Dstaddrlen uint32 + _ [4]byte +} + type Xucred struct { Version uint32 Uid uint32 diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go index 6cbd094a3aa1..51e13eb055fc 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go @@ -625,6 +625,7 @@ const ( POLLRDNORM = 0x40 POLLWRBAND = 0x100 POLLWRNORM = 0x4 + POLLRDHUP = 0x4000 ) type CapRights struct { diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go index 7c03b6ee77fa..d002d8ef3cc2 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go @@ -630,6 +630,7 @@ const ( POLLRDNORM = 0x40 POLLWRBAND = 0x100 POLLWRNORM = 0x4 + POLLRDHUP = 0x4000 ) type CapRights struct { diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go index 422107ee8b13..3f863d898dd8 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go @@ -616,6 +616,7 @@ const ( POLLRDNORM = 0x40 POLLWRBAND = 0x100 POLLWRNORM = 0x4 + POLLRDHUP = 0x4000 ) type CapRights struct { diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go index 505a12acfd9d..61c729310661 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go @@ -610,6 +610,7 @@ const ( POLLRDNORM = 0x40 POLLWRBAND = 0x100 POLLWRNORM = 0x4 + POLLRDHUP = 0x4000 ) type CapRights struct { diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go index cc986c790066..b5d17414f039 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go @@ -612,6 +612,7 @@ const ( POLLRDNORM = 0x40 POLLWRBAND = 0x100 POLLWRNORM = 0x4 + POLLRDHUP = 0x4000 ) type CapRights struct { diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vendor/golang.org/x/sys/unix/ztypes_linux.go index 0036746ea197..8daaf3faf4c7 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -87,30 +87,35 @@ type StatxTimestamp struct { } type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - Mnt_id uint64 - Dio_mem_align uint32 - Dio_offset_align uint32 - _ [12]uint64 + Mask uint32 + Blksize uint32 + Attributes uint64 + Nlink uint32 + Uid uint32 + Gid uint32 + Mode uint16 + _ [1]uint16 + Ino uint64 + Size uint64 + Blocks uint64 + Attributes_mask uint64 + Atime StatxTimestamp + Btime StatxTimestamp + Ctime StatxTimestamp + Mtime StatxTimestamp + Rdev_major uint32 + Rdev_minor uint32 + Dev_major uint32 + Dev_minor uint32 + Mnt_id uint64 + Dio_mem_align uint32 + Dio_offset_align uint32 + Subvol uint64 + Atomic_write_unit_min uint32 + Atomic_write_unit_max uint32 + Atomic_write_segments_max uint32 + _ [1]uint32 + _ [9]uint64 } type Fsid struct { @@ -515,6 +520,29 @@ type TCPInfo struct { Total_rto_time uint32 } +type TCPVegasInfo struct { + Enabled uint32 + Rttcnt uint32 + Rtt uint32 + Minrtt uint32 +} + +type TCPDCTCPInfo struct { + Enabled uint16 + Ce_state uint16 + Alpha uint32 + Ab_ecn uint32 + Ab_tot uint32 +} + +type TCPBBRInfo struct { + Bw_lo uint32 + Bw_hi uint32 + Min_rtt uint32 + Pacing_gain uint32 + Cwnd_gain uint32 +} + type CanFilter struct { Id uint32 Mask uint32 @@ -556,6 +584,7 @@ const ( SizeofICMPv6Filter = 0x20 SizeofUcred = 0xc SizeofTCPInfo = 0xf8 + SizeofTCPCCInfo = 0x14 SizeofCanFilter = 0x8 SizeofTCPRepairOpt = 0x8 ) @@ -1723,12 +1752,6 @@ const ( 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 @@ -1767,6 +1790,7 @@ const ( IFLA_VXLAN_DF = 0x1d IFLA_VXLAN_VNIFILTER = 0x1e IFLA_VXLAN_LOCALBYPASS = 0x1f + IFLA_VXLAN_LABEL_POLICY = 0x20 IFLA_GENEVE_UNSPEC = 0x0 IFLA_GENEVE_ID = 0x1 IFLA_GENEVE_REMOTE = 0x2 @@ -1796,6 +1820,8 @@ const ( IFLA_GTP_ROLE = 0x4 IFLA_GTP_CREATE_SOCKETS = 0x5 IFLA_GTP_RESTART_COUNT = 0x6 + IFLA_GTP_LOCAL = 0x7 + IFLA_GTP_LOCAL6 = 0x8 IFLA_BOND_UNSPEC = 0x0 IFLA_BOND_MODE = 0x1 IFLA_BOND_ACTIVE_SLAVE = 0x2 @@ -1828,6 +1854,7 @@ const ( IFLA_BOND_AD_LACP_ACTIVE = 0x1d IFLA_BOND_MISSED_MAX = 0x1e IFLA_BOND_NS_IP6_TARGET = 0x1f + IFLA_BOND_COUPLED_CONTROL = 0x20 IFLA_BOND_AD_INFO_UNSPEC = 0x0 IFLA_BOND_AD_INFO_AGGREGATOR = 0x1 IFLA_BOND_AD_INFO_NUM_PORTS = 0x2 @@ -1896,6 +1923,7 @@ const ( IFLA_HSR_SEQ_NR = 0x5 IFLA_HSR_VERSION = 0x6 IFLA_HSR_PROTOCOL = 0x7 + IFLA_HSR_INTERLINK = 0x8 IFLA_STATS_UNSPEC = 0x0 IFLA_STATS_LINK_64 = 0x1 IFLA_STATS_LINK_XSTATS = 0x2 @@ -1948,6 +1976,15 @@ const ( IFLA_DSA_MASTER = 0x1 ) +const ( + NETKIT_NEXT = -0x1 + NETKIT_PASS = 0x0 + NETKIT_DROP = 0x2 + NETKIT_REDIRECT = 0x7 + NETKIT_L2 = 0x0 + NETKIT_L3 = 0x1 +) + const ( NF_INET_PRE_ROUTING = 0x0 NF_INET_LOCAL_IN = 0x1 @@ -2485,7 +2522,7 @@ type XDPMmapOffsets struct { type XDPUmemReg struct { Addr uint64 Len uint64 - Chunk_size uint32 + Size uint32 Headroom uint32 Flags uint32 Tx_metadata_len uint32 @@ -3473,7 +3510,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 = 0x5 + DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x6 ) type FsverityDigest struct { @@ -3765,7 +3802,7 @@ const ( ETHTOOL_MSG_PSE_GET = 0x24 ETHTOOL_MSG_PSE_SET = 0x25 ETHTOOL_MSG_RSS_GET = 0x26 - ETHTOOL_MSG_USER_MAX = 0x2b + ETHTOOL_MSG_USER_MAX = 0x2c ETHTOOL_MSG_KERNEL_NONE = 0x0 ETHTOOL_MSG_STRSET_GET_REPLY = 0x1 ETHTOOL_MSG_LINKINFO_GET_REPLY = 0x2 @@ -3805,7 +3842,10 @@ const ( ETHTOOL_MSG_MODULE_NTF = 0x24 ETHTOOL_MSG_PSE_GET_REPLY = 0x25 ETHTOOL_MSG_RSS_GET_REPLY = 0x26 - ETHTOOL_MSG_KERNEL_MAX = 0x2b + ETHTOOL_MSG_KERNEL_MAX = 0x2c + ETHTOOL_FLAG_COMPACT_BITSETS = 0x1 + ETHTOOL_FLAG_OMIT_REPLY = 0x2 + ETHTOOL_FLAG_STATS = 0x4 ETHTOOL_A_HEADER_UNSPEC = 0x0 ETHTOOL_A_HEADER_DEV_INDEX = 0x1 ETHTOOL_A_HEADER_DEV_NAME = 0x2 @@ -3947,7 +3987,7 @@ const ( ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL = 0x17 ETHTOOL_A_COALESCE_USE_CQE_MODE_TX = 0x18 ETHTOOL_A_COALESCE_USE_CQE_MODE_RX = 0x19 - ETHTOOL_A_COALESCE_MAX = 0x1c + ETHTOOL_A_COALESCE_MAX = 0x1e ETHTOOL_A_PAUSE_UNSPEC = 0x0 ETHTOOL_A_PAUSE_HEADER = 0x1 ETHTOOL_A_PAUSE_AUTONEG = 0x2 @@ -3975,7 +4015,7 @@ const ( ETHTOOL_A_TSINFO_TX_TYPES = 0x3 ETHTOOL_A_TSINFO_RX_FILTERS = 0x4 ETHTOOL_A_TSINFO_PHC_INDEX = 0x5 - ETHTOOL_A_TSINFO_MAX = 0x5 + ETHTOOL_A_TSINFO_MAX = 0x6 ETHTOOL_A_CABLE_TEST_UNSPEC = 0x0 ETHTOOL_A_CABLE_TEST_HEADER = 0x1 ETHTOOL_A_CABLE_TEST_MAX = 0x1 @@ -4078,6 +4118,106 @@ type EthtoolDrvinfo struct { Regdump_len uint32 } +type EthtoolTsInfo struct { + Cmd uint32 + So_timestamping uint32 + Phc_index int32 + Tx_types uint32 + Tx_reserved [3]uint32 + Rx_filters uint32 + Rx_reserved [3]uint32 +} + +type HwTstampConfig struct { + Flags int32 + Tx_type int32 + Rx_filter int32 +} + +const ( + HWTSTAMP_FILTER_NONE = 0x0 + HWTSTAMP_FILTER_ALL = 0x1 + HWTSTAMP_FILTER_SOME = 0x2 + HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 0x3 + HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 0x6 + HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 0x9 + HWTSTAMP_FILTER_PTP_V2_EVENT = 0xc +) + +const ( + HWTSTAMP_TX_OFF = 0x0 + HWTSTAMP_TX_ON = 0x1 + HWTSTAMP_TX_ONESTEP_SYNC = 0x2 +) + +type ( + PtpClockCaps struct { + Max_adj int32 + N_alarm int32 + N_ext_ts int32 + N_per_out int32 + Pps int32 + N_pins int32 + Cross_timestamping int32 + Adjust_phase int32 + Max_phase_adj int32 + Rsv [11]int32 + } + PtpClockTime struct { + Sec int64 + Nsec uint32 + Reserved uint32 + } + PtpExttsEvent struct { + T PtpClockTime + Index uint32 + Flags uint32 + Rsv [2]uint32 + } + PtpExttsRequest struct { + Index uint32 + Flags uint32 + Rsv [2]uint32 + } + PtpPeroutRequest struct { + StartOrPhase PtpClockTime + Period PtpClockTime + Index uint32 + Flags uint32 + On PtpClockTime + } + PtpPinDesc struct { + Name [64]byte + Index uint32 + Func uint32 + Chan uint32 + Rsv [5]uint32 + } + PtpSysOffset struct { + Samples uint32 + Rsv [3]uint32 + Ts [51]PtpClockTime + } + PtpSysOffsetExtended struct { + Samples uint32 + Rsv [3]uint32 + Ts [25][3]PtpClockTime + } + PtpSysOffsetPrecise struct { + Device PtpClockTime + Realtime PtpClockTime + Monoraw PtpClockTime + Rsv [4]uint32 + } +) + +const ( + PTP_PF_NONE = 0x0 + PTP_PF_EXTTS = 0x1 + PTP_PF_PEROUT = 0x2 + PTP_PF_PHYSYNC = 0x3 +) + type ( HIDRawReportDescriptor struct { Size uint32 @@ -4605,7 +4745,7 @@ const ( NL80211_ATTR_MAC_HINT = 0xc8 NL80211_ATTR_MAC_MASK = 0xd7 NL80211_ATTR_MAX_AP_ASSOC_STA = 0xca - NL80211_ATTR_MAX = 0x149 + NL80211_ATTR_MAX = 0x14c NL80211_ATTR_MAX_CRIT_PROT_DURATION = 0xb4 NL80211_ATTR_MAX_CSA_COUNTERS = 0xce NL80211_ATTR_MAX_MATCH_SETS = 0x85 @@ -5209,7 +5349,7 @@ const ( NL80211_FREQUENCY_ATTR_GO_CONCURRENT = 0xf NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 0xe NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 0xf - NL80211_FREQUENCY_ATTR_MAX = 0x1f + NL80211_FREQUENCY_ATTR_MAX = 0x21 NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 0x6 NL80211_FREQUENCY_ATTR_NO_10MHZ = 0x11 NL80211_FREQUENCY_ATTR_NO_160MHZ = 0xc @@ -5703,7 +5843,7 @@ const ( NL80211_STA_FLAG_ASSOCIATED = 0x7 NL80211_STA_FLAG_AUTHENTICATED = 0x5 NL80211_STA_FLAG_AUTHORIZED = 0x1 - NL80211_STA_FLAG_MAX = 0x7 + NL80211_STA_FLAG_MAX = 0x8 NL80211_STA_FLAG_MAX_OLD_API = 0x6 NL80211_STA_FLAG_MFP = 0x4 NL80211_STA_FLAG_SHORT_PREAMBLE = 0x2 @@ -6001,3 +6141,34 @@ type CachestatRange struct { Off uint64 Len uint64 } + +const ( + SK_MEMINFO_RMEM_ALLOC = 0x0 + SK_MEMINFO_RCVBUF = 0x1 + SK_MEMINFO_WMEM_ALLOC = 0x2 + SK_MEMINFO_SNDBUF = 0x3 + SK_MEMINFO_FWD_ALLOC = 0x4 + SK_MEMINFO_WMEM_QUEUED = 0x5 + SK_MEMINFO_OPTMEM = 0x6 + SK_MEMINFO_BACKLOG = 0x7 + SK_MEMINFO_DROPS = 0x8 + SK_MEMINFO_VARS = 0x9 + SKNLGRP_NONE = 0x0 + SKNLGRP_INET_TCP_DESTROY = 0x1 + SKNLGRP_INET_UDP_DESTROY = 0x2 + SKNLGRP_INET6_TCP_DESTROY = 0x3 + SKNLGRP_INET6_UDP_DESTROY = 0x4 + SK_DIAG_BPF_STORAGE_REQ_NONE = 0x0 + SK_DIAG_BPF_STORAGE_REQ_MAP_FD = 0x1 + SK_DIAG_BPF_STORAGE_REP_NONE = 0x0 + SK_DIAG_BPF_STORAGE = 0x1 + SK_DIAG_BPF_STORAGE_NONE = 0x0 + SK_DIAG_BPF_STORAGE_PAD = 0x1 + SK_DIAG_BPF_STORAGE_MAP_ID = 0x2 + SK_DIAG_BPF_STORAGE_MAP_VALUE = 0x3 +) + +type SockDiagReq struct { + Family uint8 + Protocol uint8 +} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go index 15adc04142f2..ad05b51a6036 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go @@ -727,6 +727,37 @@ const ( RISCV_HWPROBE_EXT_ZBA = 0x8 RISCV_HWPROBE_EXT_ZBB = 0x10 RISCV_HWPROBE_EXT_ZBS = 0x20 + RISCV_HWPROBE_EXT_ZICBOZ = 0x40 + RISCV_HWPROBE_EXT_ZBC = 0x80 + RISCV_HWPROBE_EXT_ZBKB = 0x100 + RISCV_HWPROBE_EXT_ZBKC = 0x200 + RISCV_HWPROBE_EXT_ZBKX = 0x400 + RISCV_HWPROBE_EXT_ZKND = 0x800 + RISCV_HWPROBE_EXT_ZKNE = 0x1000 + RISCV_HWPROBE_EXT_ZKNH = 0x2000 + RISCV_HWPROBE_EXT_ZKSED = 0x4000 + RISCV_HWPROBE_EXT_ZKSH = 0x8000 + RISCV_HWPROBE_EXT_ZKT = 0x10000 + RISCV_HWPROBE_EXT_ZVBB = 0x20000 + RISCV_HWPROBE_EXT_ZVBC = 0x40000 + RISCV_HWPROBE_EXT_ZVKB = 0x80000 + RISCV_HWPROBE_EXT_ZVKG = 0x100000 + RISCV_HWPROBE_EXT_ZVKNED = 0x200000 + RISCV_HWPROBE_EXT_ZVKNHA = 0x400000 + RISCV_HWPROBE_EXT_ZVKNHB = 0x800000 + RISCV_HWPROBE_EXT_ZVKSED = 0x1000000 + RISCV_HWPROBE_EXT_ZVKSH = 0x2000000 + RISCV_HWPROBE_EXT_ZVKT = 0x4000000 + RISCV_HWPROBE_EXT_ZFH = 0x8000000 + RISCV_HWPROBE_EXT_ZFHMIN = 0x10000000 + RISCV_HWPROBE_EXT_ZIHINTNTL = 0x20000000 + RISCV_HWPROBE_EXT_ZVFH = 0x40000000 + RISCV_HWPROBE_EXT_ZVFHMIN = 0x80000000 + RISCV_HWPROBE_EXT_ZFA = 0x100000000 + RISCV_HWPROBE_EXT_ZTSO = 0x200000000 + RISCV_HWPROBE_EXT_ZACAS = 0x400000000 + RISCV_HWPROBE_EXT_ZICOND = 0x800000000 + RISCV_HWPROBE_EXT_ZIHINTPAUSE = 0x1000000000 RISCV_HWPROBE_KEY_CPUPERF_0 = 0x5 RISCV_HWPROBE_MISALIGNED_UNKNOWN = 0x0 RISCV_HWPROBE_MISALIGNED_EMULATED = 0x1 @@ -734,4 +765,6 @@ const ( RISCV_HWPROBE_MISALIGNED_FAST = 0x3 RISCV_HWPROBE_MISALIGNED_UNSUPPORTED = 0x4 RISCV_HWPROBE_MISALIGNED_MASK = 0x7 + RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE = 0x6 + RISCV_HWPROBE_WHICH_CPUS = 0x1 ) diff --git a/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go index d9a13af4684b..2e5d5a44357a 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go +++ b/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go @@ -377,6 +377,12 @@ type Flock_t struct { Pid int32 } +type F_cnvrt struct { + Cvtcmd int32 + Pccsid int16 + Fccsid int16 +} + type Termios struct { Cflag uint32 Iflag uint32 diff --git a/vendor/golang.org/x/sys/windows/dll_windows.go b/vendor/golang.org/x/sys/windows/dll_windows.go index 115341fba66d..4e613cf6335c 100644 --- a/vendor/golang.org/x/sys/windows/dll_windows.go +++ b/vendor/golang.org/x/sys/windows/dll_windows.go @@ -65,7 +65,7 @@ func LoadDLL(name string) (dll *DLL, err error) { return d, nil } -// MustLoadDLL is like LoadDLL but panics if load operation failes. +// MustLoadDLL is like LoadDLL but panics if load operation fails. func MustLoadDLL(name string) *DLL { d, e := LoadDLL(name) if e != nil { diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go index 26be94a8a7b6..b6e1ab76f82a 100644 --- a/vendor/golang.org/x/sys/windows/security_windows.go +++ b/vendor/golang.org/x/sys/windows/security_windows.go @@ -68,6 +68,7 @@ type UserInfo10 struct { //sys NetUserGetInfo(serverName *uint16, userName *uint16, level uint32, buf **byte) (neterr error) = netapi32.NetUserGetInfo //sys NetGetJoinInformation(server *uint16, name **uint16, bufType *uint32) (neterr error) = netapi32.NetGetJoinInformation //sys NetApiBufferFree(buf *byte) (neterr error) = netapi32.NetApiBufferFree +//sys NetUserEnum(serverName *uint16, level uint32, filter uint32, buf **byte, prefMaxLen uint32, entriesRead *uint32, totalEntries *uint32, resumeHandle *uint32) (neterr error) = netapi32.NetUserEnum const ( // do not reorder @@ -893,7 +894,7 @@ type ACL struct { aclRevision byte sbz1 byte aclSize uint16 - aceCount uint16 + AceCount uint16 sbz2 uint16 } @@ -1086,6 +1087,27 @@ type EXPLICIT_ACCESS struct { Trustee TRUSTEE } +// https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header +type ACE_HEADER struct { + AceType uint8 + AceFlags uint8 + AceSize uint16 +} + +// https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-access_allowed_ace +type ACCESS_ALLOWED_ACE struct { + Header ACE_HEADER + Mask ACCESS_MASK + SidStart uint32 +} + +const ( + // Constants for AceType + // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header + ACCESS_ALLOWED_ACE_TYPE = 0 + ACCESS_DENIED_ACE_TYPE = 1 +) + // This type is the union inside of TRUSTEE and must be created using one of the TrusteeValueFrom* functions. type TrusteeValue uintptr @@ -1157,6 +1179,7 @@ type OBJECTS_AND_NAME struct { //sys makeSelfRelativeSD(absoluteSD *SECURITY_DESCRIPTOR, selfRelativeSD *SECURITY_DESCRIPTOR, selfRelativeSDSize *uint32) (err error) = advapi32.MakeSelfRelativeSD //sys setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCESS, oldACL *ACL, newACL **ACL) (ret error) = advapi32.SetEntriesInAclW +//sys GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (err error) = advapi32.GetAce // Control returns the security descriptor control bits. func (sd *SECURITY_DESCRIPTOR) Control() (control SECURITY_DESCRIPTOR_CONTROL, revision uint32, err error) { diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go index 6525c62f3c2f..4510bfc3f5c6 100644 --- a/vendor/golang.org/x/sys/windows/syscall_windows.go +++ b/vendor/golang.org/x/sys/windows/syscall_windows.go @@ -17,8 +17,10 @@ import ( "unsafe" ) -type Handle uintptr -type HWND uintptr +type ( + Handle uintptr + HWND uintptr +) const ( InvalidHandle = ^Handle(0) @@ -211,6 +213,10 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (handle Handle, err error) //sys ShellExecute(hwnd Handle, verb *uint16, file *uint16, args *uint16, cwd *uint16, showCmd int32) (err error) [failretval<=32] = shell32.ShellExecuteW //sys GetWindowThreadProcessId(hwnd HWND, pid *uint32) (tid uint32, err error) = user32.GetWindowThreadProcessId +//sys LoadKeyboardLayout(name *uint16, flags uint32) (hkl Handle, err error) [failretval==0] = user32.LoadKeyboardLayoutW +//sys UnloadKeyboardLayout(hkl Handle) (err error) = user32.UnloadKeyboardLayout +//sys GetKeyboardLayout(tid uint32) (hkl Handle) = user32.GetKeyboardLayout +//sys ToUnicodeEx(vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32) = user32.ToUnicodeEx //sys GetShellWindow() (shellWindow HWND) = user32.GetShellWindow //sys MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) [failretval==0] = user32.MessageBoxW //sys ExitWindowsEx(flags uint32, reason uint32) (err error) = user32.ExitWindowsEx @@ -307,6 +313,10 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys SetConsoleMode(console Handle, mode uint32) (err error) = kernel32.SetConsoleMode //sys GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) = kernel32.GetConsoleScreenBufferInfo //sys setConsoleCursorPosition(console Handle, position uint32) (err error) = kernel32.SetConsoleCursorPosition +//sys GetConsoleCP() (cp uint32, err error) = kernel32.GetConsoleCP +//sys GetConsoleOutputCP() (cp uint32, err error) = kernel32.GetConsoleOutputCP +//sys SetConsoleCP(cp uint32) (err error) = kernel32.SetConsoleCP +//sys SetConsoleOutputCP(cp uint32) (err error) = kernel32.SetConsoleOutputCP //sys WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW //sys ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW //sys resizePseudoConsole(pconsole Handle, size uint32) (hr error) = kernel32.ResizePseudoConsole @@ -715,20 +725,12 @@ func DurationSinceBoot() time.Duration { } func Ftruncate(fd Handle, length int64) (err error) { - curoffset, e := Seek(fd, 0, 1) - if e != nil { - return e - } - defer Seek(fd, curoffset, 0) - _, e = Seek(fd, length, 0) - if e != nil { - return e + type _FILE_END_OF_FILE_INFO struct { + EndOfFile int64 } - e = SetEndOfFile(fd) - if e != nil { - return e - } - return nil + var info _FILE_END_OF_FILE_INFO + info.EndOfFile = length + return SetFileInformationByHandle(fd, FileEndOfFileInfo, (*byte)(unsafe.Pointer(&info)), uint32(unsafe.Sizeof(info))) } func Gettimeofday(tv *Timeval) (err error) { @@ -884,6 +886,11 @@ const socket_error = uintptr(^uint32(0)) //sys GetACP() (acp uint32) = kernel32.GetACP //sys MultiByteToWideChar(codePage uint32, dwFlags uint32, str *byte, nstr int32, wchar *uint16, nwchar int32) (nwrite int32, err error) = kernel32.MultiByteToWideChar //sys getBestInterfaceEx(sockaddr unsafe.Pointer, pdwBestIfIndex *uint32) (errcode error) = iphlpapi.GetBestInterfaceEx +//sys GetIfEntry2Ex(level uint32, row *MibIfRow2) (errcode error) = iphlpapi.GetIfEntry2Ex +//sys GetUnicastIpAddressEntry(row *MibUnicastIpAddressRow) (errcode error) = iphlpapi.GetUnicastIpAddressEntry +//sys NotifyIpInterfaceChange(family uint16, callback uintptr, callerContext unsafe.Pointer, initialNotification bool, notificationHandle *Handle) (errcode error) = iphlpapi.NotifyIpInterfaceChange +//sys NotifyUnicastIpAddressChange(family uint16, callback uintptr, callerContext unsafe.Pointer, initialNotification bool, notificationHandle *Handle) (errcode error) = iphlpapi.NotifyUnicastIpAddressChange +//sys CancelMibChangeNotify2(notificationHandle Handle) (errcode error) = iphlpapi.CancelMibChangeNotify2 // For testing: clients can set this flag to force // creation of IPv6 sockets to return EAFNOSUPPORT. @@ -1368,9 +1375,11 @@ func SetsockoptLinger(fd Handle, level, opt int, l *Linger) (err error) { func SetsockoptInet4Addr(fd Handle, level, opt int, value [4]byte) (err error) { return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&value[0])), 4) } + func SetsockoptIPMreq(fd Handle, level, opt int, mreq *IPMreq) (err error) { return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(mreq)), int32(unsafe.Sizeof(*mreq))) } + func SetsockoptIPv6Mreq(fd Handle, level, opt int, mreq *IPv6Mreq) (err error) { return syscall.EWINDOWS } @@ -1673,13 +1682,16 @@ func (s NTStatus) Error() string { // do not use NTUnicodeString, and instead UTF16PtrFromString should be used for // the more common *uint16 string type. func NewNTUnicodeString(s string) (*NTUnicodeString, error) { - var u NTUnicodeString - s16, err := UTF16PtrFromString(s) + s16, err := UTF16FromString(s) if err != nil { return nil, err } - RtlInitUnicodeString(&u, s16) - return &u, nil + n := uint16(len(s16) * 2) + return &NTUnicodeString{ + Length: n - 2, // subtract 2 bytes for the NULL terminator + MaximumLength: n, + Buffer: &s16[0], + }, nil } // Slice returns a uint16 slice that aliases the data in the NTUnicodeString. diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go index d8cb71db0a61..51311e205ff0 100644 --- a/vendor/golang.org/x/sys/windows/types_windows.go +++ b/vendor/golang.org/x/sys/windows/types_windows.go @@ -1060,6 +1060,7 @@ const ( SIO_GET_EXTENSION_FUNCTION_POINTER = IOC_INOUT | IOC_WS2 | 6 SIO_KEEPALIVE_VALS = IOC_IN | IOC_VENDOR | 4 SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12 + SIO_UDP_NETRESET = IOC_IN | IOC_VENDOR | 15 // cf. http://support.microsoft.com/default.aspx?scid=kb;en-us;257460 @@ -2003,7 +2004,21 @@ const ( MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x20 ) -const GAA_FLAG_INCLUDE_PREFIX = 0x00000010 +// Flags for GetAdaptersAddresses, see +// https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getadaptersaddresses. +const ( + GAA_FLAG_SKIP_UNICAST = 0x1 + GAA_FLAG_SKIP_ANYCAST = 0x2 + GAA_FLAG_SKIP_MULTICAST = 0x4 + GAA_FLAG_SKIP_DNS_SERVER = 0x8 + GAA_FLAG_INCLUDE_PREFIX = 0x10 + GAA_FLAG_SKIP_FRIENDLY_NAME = 0x20 + GAA_FLAG_INCLUDE_WINS_INFO = 0x40 + GAA_FLAG_INCLUDE_GATEWAYS = 0x80 + GAA_FLAG_INCLUDE_ALL_INTERFACES = 0x100 + GAA_FLAG_INCLUDE_ALL_COMPARTMENTS = 0x200 + GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER = 0x400 +) const ( IF_TYPE_OTHER = 1 @@ -2017,6 +2032,50 @@ const ( IF_TYPE_IEEE1394 = 144 ) +// Enum NL_PREFIX_ORIGIN for [IpAdapterUnicastAddress], see +// https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_prefix_origin +const ( + IpPrefixOriginOther = 0 + IpPrefixOriginManual = 1 + IpPrefixOriginWellKnown = 2 + IpPrefixOriginDhcp = 3 + IpPrefixOriginRouterAdvertisement = 4 + IpPrefixOriginUnchanged = 1 << 4 +) + +// Enum NL_SUFFIX_ORIGIN for [IpAdapterUnicastAddress], see +// https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_suffix_origin +const ( + NlsoOther = 0 + NlsoManual = 1 + NlsoWellKnown = 2 + NlsoDhcp = 3 + NlsoLinkLayerAddress = 4 + NlsoRandom = 5 + IpSuffixOriginOther = 0 + IpSuffixOriginManual = 1 + IpSuffixOriginWellKnown = 2 + IpSuffixOriginDhcp = 3 + IpSuffixOriginLinkLayerAddress = 4 + IpSuffixOriginRandom = 5 + IpSuffixOriginUnchanged = 1 << 4 +) + +// Enum NL_DAD_STATE for [IpAdapterUnicastAddress], see +// https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_dad_state +const ( + NldsInvalid = 0 + NldsTentative = 1 + NldsDuplicate = 2 + NldsDeprecated = 3 + NldsPreferred = 4 + IpDadStateInvalid = 0 + IpDadStateTentative = 1 + IpDadStateDuplicate = 2 + IpDadStateDeprecated = 3 + IpDadStatePreferred = 4 +) + type SocketAddress struct { Sockaddr *syscall.RawSockaddrAny SockaddrLength int32 @@ -2144,6 +2203,132 @@ const ( IfOperStatusLowerLayerDown = 7 ) +const ( + IF_MAX_PHYS_ADDRESS_LENGTH = 32 + IF_MAX_STRING_SIZE = 256 +) + +// MIB_IF_ENTRY_LEVEL enumeration from netioapi.h or +// https://learn.microsoft.com/en-us/windows/win32/api/netioapi/nf-netioapi-getifentry2ex. +const ( + MibIfEntryNormal = 0 + MibIfEntryNormalWithoutStatistics = 2 +) + +// MIB_NOTIFICATION_TYPE enumeration from netioapi.h or +// https://learn.microsoft.com/en-us/windows/win32/api/netioapi/ne-netioapi-mib_notification_type. +const ( + MibParameterNotification = 0 + MibAddInstance = 1 + MibDeleteInstance = 2 + MibInitialNotification = 3 +) + +// MibIfRow2 stores information about a particular interface. See +// https://learn.microsoft.com/en-us/windows/win32/api/netioapi/ns-netioapi-mib_if_row2. +type MibIfRow2 struct { + InterfaceLuid uint64 + InterfaceIndex uint32 + InterfaceGuid GUID + Alias [IF_MAX_STRING_SIZE + 1]uint16 + Description [IF_MAX_STRING_SIZE + 1]uint16 + PhysicalAddressLength uint32 + PhysicalAddress [IF_MAX_PHYS_ADDRESS_LENGTH]uint8 + PermanentPhysicalAddress [IF_MAX_PHYS_ADDRESS_LENGTH]uint8 + Mtu uint32 + Type uint32 + TunnelType uint32 + MediaType uint32 + PhysicalMediumType uint32 + AccessType uint32 + DirectionType uint32 + InterfaceAndOperStatusFlags uint8 + OperStatus uint32 + AdminStatus uint32 + MediaConnectState uint32 + NetworkGuid GUID + ConnectionType uint32 + TransmitLinkSpeed uint64 + ReceiveLinkSpeed uint64 + InOctets uint64 + InUcastPkts uint64 + InNUcastPkts uint64 + InDiscards uint64 + InErrors uint64 + InUnknownProtos uint64 + InUcastOctets uint64 + InMulticastOctets uint64 + InBroadcastOctets uint64 + OutOctets uint64 + OutUcastPkts uint64 + OutNUcastPkts uint64 + OutDiscards uint64 + OutErrors uint64 + OutUcastOctets uint64 + OutMulticastOctets uint64 + OutBroadcastOctets uint64 + OutQLen uint64 +} + +// MIB_UNICASTIPADDRESS_ROW stores information about a unicast IP address. See +// https://learn.microsoft.com/en-us/windows/win32/api/netioapi/ns-netioapi-mib_unicastipaddress_row. +type MibUnicastIpAddressRow struct { + Address RawSockaddrInet6 // SOCKADDR_INET union + InterfaceLuid uint64 + InterfaceIndex uint32 + PrefixOrigin uint32 + SuffixOrigin uint32 + ValidLifetime uint32 + PreferredLifetime uint32 + OnLinkPrefixLength uint8 + SkipAsSource uint8 + DadState uint32 + ScopeId uint32 + CreationTimeStamp Filetime +} + +const ScopeLevelCount = 16 + +// MIB_IPINTERFACE_ROW stores interface management information for a particular IP address family on a network interface. +// See https://learn.microsoft.com/en-us/windows/win32/api/netioapi/ns-netioapi-mib_ipinterface_row. +type MibIpInterfaceRow struct { + Family uint16 + InterfaceLuid uint64 + InterfaceIndex uint32 + MaxReassemblySize uint32 + InterfaceIdentifier uint64 + MinRouterAdvertisementInterval uint32 + MaxRouterAdvertisementInterval uint32 + AdvertisingEnabled uint8 + ForwardingEnabled uint8 + WeakHostSend uint8 + WeakHostReceive uint8 + UseAutomaticMetric uint8 + UseNeighborUnreachabilityDetection uint8 + ManagedAddressConfigurationSupported uint8 + OtherStatefulConfigurationSupported uint8 + AdvertiseDefaultRoute uint8 + RouterDiscoveryBehavior uint32 + DadTransmits uint32 + BaseReachableTime uint32 + RetransmitTime uint32 + PathMtuDiscoveryTimeout uint32 + LinkLocalAddressBehavior uint32 + LinkLocalAddressTimeout uint32 + ZoneIndices [ScopeLevelCount]uint32 + SitePrefixLength uint32 + Metric uint32 + NlMtu uint32 + Connected uint8 + SupportsWakeUpPatterns uint8 + SupportsNeighborDiscovery uint8 + SupportsRouterDiscovery uint8 + ReachableTime uint32 + TransmitOffload uint32 + ReceiveOffload uint32 + DisableDefaultRoutes uint8 +} + // Console related constants used for the mode parameter to SetConsoleMode. See // https://docs.microsoft.com/en-us/windows/console/setconsolemode for details. @@ -3404,3 +3589,14 @@ type DCB struct { EvtChar byte wReserved1 uint16 } + +// Keyboard Layout Flags. +// See https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadkeyboardlayoutw +const ( + KLF_ACTIVATE = 0x00000001 + KLF_SUBSTITUTE_OK = 0x00000002 + KLF_REORDER = 0x00000008 + KLF_REPLACELANG = 0x00000010 + KLF_NOTELLSHELL = 0x00000080 + KLF_SETFORPROCESS = 0x00000100 +) diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go index 5c6035ddfa92..6f5252880cee 100644 --- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go +++ b/vendor/golang.org/x/sys/windows/zsyscall_windows.go @@ -91,6 +91,7 @@ var ( procEnumServicesStatusExW = modadvapi32.NewProc("EnumServicesStatusExW") procEqualSid = modadvapi32.NewProc("EqualSid") procFreeSid = modadvapi32.NewProc("FreeSid") + procGetAce = modadvapi32.NewProc("GetAce") procGetLengthSid = modadvapi32.NewProc("GetLengthSid") procGetNamedSecurityInfoW = modadvapi32.NewProc("GetNamedSecurityInfoW") procGetSecurityDescriptorControl = modadvapi32.NewProc("GetSecurityDescriptorControl") @@ -180,10 +181,15 @@ var ( procDnsRecordListFree = moddnsapi.NewProc("DnsRecordListFree") procDwmGetWindowAttribute = moddwmapi.NewProc("DwmGetWindowAttribute") procDwmSetWindowAttribute = moddwmapi.NewProc("DwmSetWindowAttribute") + procCancelMibChangeNotify2 = modiphlpapi.NewProc("CancelMibChangeNotify2") procGetAdaptersAddresses = modiphlpapi.NewProc("GetAdaptersAddresses") procGetAdaptersInfo = modiphlpapi.NewProc("GetAdaptersInfo") procGetBestInterfaceEx = modiphlpapi.NewProc("GetBestInterfaceEx") procGetIfEntry = modiphlpapi.NewProc("GetIfEntry") + procGetIfEntry2Ex = modiphlpapi.NewProc("GetIfEntry2Ex") + procGetUnicastIpAddressEntry = modiphlpapi.NewProc("GetUnicastIpAddressEntry") + procNotifyIpInterfaceChange = modiphlpapi.NewProc("NotifyIpInterfaceChange") + procNotifyUnicastIpAddressChange = modiphlpapi.NewProc("NotifyUnicastIpAddressChange") procAddDllDirectory = modkernel32.NewProc("AddDllDirectory") procAssignProcessToJobObject = modkernel32.NewProc("AssignProcessToJobObject") procCancelIo = modkernel32.NewProc("CancelIo") @@ -246,7 +252,9 @@ var ( procGetCommandLineW = modkernel32.NewProc("GetCommandLineW") procGetComputerNameExW = modkernel32.NewProc("GetComputerNameExW") procGetComputerNameW = modkernel32.NewProc("GetComputerNameW") + procGetConsoleCP = modkernel32.NewProc("GetConsoleCP") procGetConsoleMode = modkernel32.NewProc("GetConsoleMode") + procGetConsoleOutputCP = modkernel32.NewProc("GetConsoleOutputCP") procGetConsoleScreenBufferInfo = modkernel32.NewProc("GetConsoleScreenBufferInfo") procGetCurrentDirectoryW = modkernel32.NewProc("GetCurrentDirectoryW") procGetCurrentProcessId = modkernel32.NewProc("GetCurrentProcessId") @@ -346,8 +354,10 @@ var ( procSetCommMask = modkernel32.NewProc("SetCommMask") procSetCommState = modkernel32.NewProc("SetCommState") procSetCommTimeouts = modkernel32.NewProc("SetCommTimeouts") + procSetConsoleCP = modkernel32.NewProc("SetConsoleCP") procSetConsoleCursorPosition = modkernel32.NewProc("SetConsoleCursorPosition") procSetConsoleMode = modkernel32.NewProc("SetConsoleMode") + procSetConsoleOutputCP = modkernel32.NewProc("SetConsoleOutputCP") procSetCurrentDirectoryW = modkernel32.NewProc("SetCurrentDirectoryW") procSetDefaultDllDirectories = modkernel32.NewProc("SetDefaultDllDirectories") procSetDllDirectoryW = modkernel32.NewProc("SetDllDirectoryW") @@ -401,6 +411,7 @@ var ( procTransmitFile = modmswsock.NewProc("TransmitFile") procNetApiBufferFree = modnetapi32.NewProc("NetApiBufferFree") procNetGetJoinInformation = modnetapi32.NewProc("NetGetJoinInformation") + procNetUserEnum = modnetapi32.NewProc("NetUserEnum") procNetUserGetInfo = modnetapi32.NewProc("NetUserGetInfo") procNtCreateFile = modntdll.NewProc("NtCreateFile") procNtCreateNamedPipeFile = modntdll.NewProc("NtCreateNamedPipeFile") @@ -476,12 +487,16 @@ var ( procGetDesktopWindow = moduser32.NewProc("GetDesktopWindow") procGetForegroundWindow = moduser32.NewProc("GetForegroundWindow") procGetGUIThreadInfo = moduser32.NewProc("GetGUIThreadInfo") + procGetKeyboardLayout = moduser32.NewProc("GetKeyboardLayout") procGetShellWindow = moduser32.NewProc("GetShellWindow") procGetWindowThreadProcessId = moduser32.NewProc("GetWindowThreadProcessId") procIsWindow = moduser32.NewProc("IsWindow") procIsWindowUnicode = moduser32.NewProc("IsWindowUnicode") procIsWindowVisible = moduser32.NewProc("IsWindowVisible") + procLoadKeyboardLayoutW = moduser32.NewProc("LoadKeyboardLayoutW") procMessageBoxW = moduser32.NewProc("MessageBoxW") + procToUnicodeEx = moduser32.NewProc("ToUnicodeEx") + procUnloadKeyboardLayout = moduser32.NewProc("UnloadKeyboardLayout") procCreateEnvironmentBlock = moduserenv.NewProc("CreateEnvironmentBlock") procDestroyEnvironmentBlock = moduserenv.NewProc("DestroyEnvironmentBlock") procGetUserProfileDirectoryW = moduserenv.NewProc("GetUserProfileDirectoryW") @@ -787,6 +802,14 @@ func FreeSid(sid *SID) (err error) { return } +func GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (err error) { + r1, _, e1 := syscall.Syscall(procGetAce.Addr(), 3, uintptr(unsafe.Pointer(acl)), uintptr(aceIndex), uintptr(unsafe.Pointer(pAce))) + if r1 == 0 { + err = errnoErr(e1) + } + return +} + func GetLengthSid(sid *SID) (len uint32) { r0, _, _ := syscall.Syscall(procGetLengthSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0) len = uint32(r0) @@ -1588,6 +1611,14 @@ func DwmSetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, si return } +func CancelMibChangeNotify2(notificationHandle Handle) (errcode error) { + r0, _, _ := syscall.SyscallN(procCancelMibChangeNotify2.Addr(), uintptr(notificationHandle)) + if r0 != 0 { + errcode = syscall.Errno(r0) + } + return +} + func GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) { r0, _, _ := syscall.Syscall6(procGetAdaptersAddresses.Addr(), 5, uintptr(family), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(adapterAddresses)), uintptr(unsafe.Pointer(sizePointer)), 0) if r0 != 0 { @@ -1620,6 +1651,46 @@ func GetIfEntry(pIfRow *MibIfRow) (errcode error) { return } +func GetIfEntry2Ex(level uint32, row *MibIfRow2) (errcode error) { + r0, _, _ := syscall.SyscallN(procGetIfEntry2Ex.Addr(), uintptr(level), uintptr(unsafe.Pointer(row))) + if r0 != 0 { + errcode = syscall.Errno(r0) + } + return +} + +func GetUnicastIpAddressEntry(row *MibUnicastIpAddressRow) (errcode error) { + r0, _, _ := syscall.SyscallN(procGetUnicastIpAddressEntry.Addr(), uintptr(unsafe.Pointer(row))) + if r0 != 0 { + errcode = syscall.Errno(r0) + } + return +} + +func NotifyIpInterfaceChange(family uint16, callback uintptr, callerContext unsafe.Pointer, initialNotification bool, notificationHandle *Handle) (errcode error) { + var _p0 uint32 + if initialNotification { + _p0 = 1 + } + r0, _, _ := syscall.SyscallN(procNotifyIpInterfaceChange.Addr(), uintptr(family), uintptr(callback), uintptr(callerContext), uintptr(_p0), uintptr(unsafe.Pointer(notificationHandle))) + if r0 != 0 { + errcode = syscall.Errno(r0) + } + return +} + +func NotifyUnicastIpAddressChange(family uint16, callback uintptr, callerContext unsafe.Pointer, initialNotification bool, notificationHandle *Handle) (errcode error) { + var _p0 uint32 + if initialNotification { + _p0 = 1 + } + r0, _, _ := syscall.SyscallN(procNotifyUnicastIpAddressChange.Addr(), uintptr(family), uintptr(callback), uintptr(callerContext), uintptr(_p0), uintptr(unsafe.Pointer(notificationHandle))) + if r0 != 0 { + errcode = syscall.Errno(r0) + } + return +} + func AddDllDirectory(path *uint16) (cookie uintptr, err error) { r0, _, e1 := syscall.Syscall(procAddDllDirectory.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0) cookie = uintptr(r0) @@ -2148,6 +2219,15 @@ func GetComputerName(buf *uint16, n *uint32) (err error) { return } +func GetConsoleCP() (cp uint32, err error) { + r0, _, e1 := syscall.Syscall(procGetConsoleCP.Addr(), 0, 0, 0, 0) + cp = uint32(r0) + if cp == 0 { + err = errnoErr(e1) + } + return +} + func GetConsoleMode(console Handle, mode *uint32) (err error) { r1, _, e1 := syscall.Syscall(procGetConsoleMode.Addr(), 2, uintptr(console), uintptr(unsafe.Pointer(mode)), 0) if r1 == 0 { @@ -2156,6 +2236,15 @@ func GetConsoleMode(console Handle, mode *uint32) (err error) { return } +func GetConsoleOutputCP() (cp uint32, err error) { + r0, _, e1 := syscall.Syscall(procGetConsoleOutputCP.Addr(), 0, 0, 0, 0) + cp = uint32(r0) + if cp == 0 { + err = errnoErr(e1) + } + return +} + func GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) { r1, _, e1 := syscall.Syscall(procGetConsoleScreenBufferInfo.Addr(), 2, uintptr(console), uintptr(unsafe.Pointer(info)), 0) if r1 == 0 { @@ -3024,6 +3113,14 @@ func SetCommTimeouts(handle Handle, timeouts *CommTimeouts) (err error) { return } +func SetConsoleCP(cp uint32) (err error) { + r1, _, e1 := syscall.Syscall(procSetConsoleCP.Addr(), 1, uintptr(cp), 0, 0) + if r1 == 0 { + err = errnoErr(e1) + } + return +} + func setConsoleCursorPosition(console Handle, position uint32) (err error) { r1, _, e1 := syscall.Syscall(procSetConsoleCursorPosition.Addr(), 2, uintptr(console), uintptr(position), 0) if r1 == 0 { @@ -3040,6 +3137,14 @@ func SetConsoleMode(console Handle, mode uint32) (err error) { return } +func SetConsoleOutputCP(cp uint32) (err error) { + r1, _, e1 := syscall.Syscall(procSetConsoleOutputCP.Addr(), 1, uintptr(cp), 0, 0) + if r1 == 0 { + err = errnoErr(e1) + } + return +} + func SetCurrentDirectory(path *uint16) (err error) { r1, _, e1 := syscall.Syscall(procSetCurrentDirectoryW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0) if r1 == 0 { @@ -3486,6 +3591,14 @@ func NetGetJoinInformation(server *uint16, name **uint16, bufType *uint32) (nete return } +func NetUserEnum(serverName *uint16, level uint32, filter uint32, buf **byte, prefMaxLen uint32, entriesRead *uint32, totalEntries *uint32, resumeHandle *uint32) (neterr error) { + r0, _, _ := syscall.Syscall9(procNetUserEnum.Addr(), 8, uintptr(unsafe.Pointer(serverName)), uintptr(level), uintptr(filter), uintptr(unsafe.Pointer(buf)), uintptr(prefMaxLen), uintptr(unsafe.Pointer(entriesRead)), uintptr(unsafe.Pointer(totalEntries)), uintptr(unsafe.Pointer(resumeHandle)), 0) + if r0 != 0 { + neterr = syscall.Errno(r0) + } + return +} + func NetUserGetInfo(serverName *uint16, userName *uint16, level uint32, buf **byte) (neterr error) { r0, _, _ := syscall.Syscall6(procNetUserGetInfo.Addr(), 4, uintptr(unsafe.Pointer(serverName)), uintptr(unsafe.Pointer(userName)), uintptr(level), uintptr(unsafe.Pointer(buf)), 0, 0) if r0 != 0 { @@ -4064,6 +4177,12 @@ func GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) { return } +func GetKeyboardLayout(tid uint32) (hkl Handle) { + r0, _, _ := syscall.Syscall(procGetKeyboardLayout.Addr(), 1, uintptr(tid), 0, 0) + hkl = Handle(r0) + return +} + func GetShellWindow() (shellWindow HWND) { r0, _, _ := syscall.Syscall(procGetShellWindow.Addr(), 0, 0, 0, 0) shellWindow = HWND(r0) @@ -4097,6 +4216,15 @@ func IsWindowVisible(hwnd HWND) (isVisible bool) { return } +func LoadKeyboardLayout(name *uint16, flags uint32) (hkl Handle, err error) { + r0, _, e1 := syscall.Syscall(procLoadKeyboardLayoutW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(flags), 0) + hkl = Handle(r0) + if hkl == 0 { + err = errnoErr(e1) + } + return +} + func MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret int32, err error) { r0, _, e1 := syscall.Syscall6(procMessageBoxW.Addr(), 4, uintptr(hwnd), uintptr(unsafe.Pointer(text)), uintptr(unsafe.Pointer(caption)), uintptr(boxtype), 0, 0) ret = int32(r0) @@ -4106,6 +4234,20 @@ func MessageBox(hwnd HWND, text *uint16, caption *uint16, boxtype uint32) (ret i return } +func ToUnicodeEx(vkey uint32, scancode uint32, keystate *byte, pwszBuff *uint16, cchBuff int32, flags uint32, hkl Handle) (ret int32) { + r0, _, _ := syscall.Syscall9(procToUnicodeEx.Addr(), 7, uintptr(vkey), uintptr(scancode), uintptr(unsafe.Pointer(keystate)), uintptr(unsafe.Pointer(pwszBuff)), uintptr(cchBuff), uintptr(flags), uintptr(hkl), 0, 0) + ret = int32(r0) + return +} + +func UnloadKeyboardLayout(hkl Handle) (err error) { + r1, _, e1 := syscall.Syscall(procUnloadKeyboardLayout.Addr(), 1, uintptr(hkl), 0, 0) + if r1 == 0 { + err = errnoErr(e1) + } + return +} + func CreateEnvironmentBlock(block **uint16, token Token, inheritExisting bool) (err error) { var _p0 uint32 if inheritExisting { diff --git a/vendor/golang.org/x/text/LICENSE b/vendor/golang.org/x/text/LICENSE index 6a66aea5eafe..2a7cf70da6e4 100644 --- a/vendor/golang.org/x/text/LICENSE +++ b/vendor/golang.org/x/text/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. +Copyright 2009 The Go Authors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -10,7 +10,7 @@ notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Google Inc. nor the names of its + * Neither the name of Google LLC nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. diff --git a/vendor/golang.org/x/tools/go/packages/packages.go b/vendor/golang.org/x/tools/go/packages/packages.go index f33b0afc22cf..3ea1b3fa46d0 100644 --- a/vendor/golang.org/x/tools/go/packages/packages.go +++ b/vendor/golang.org/x/tools/go/packages/packages.go @@ -9,6 +9,7 @@ package packages import ( "context" "encoding/json" + "errors" "fmt" "go/ast" "go/parser" @@ -24,6 +25,8 @@ import ( "sync" "time" + "golang.org/x/sync/errgroup" + "golang.org/x/tools/go/gcexportdata" "golang.org/x/tools/internal/gocommand" "golang.org/x/tools/internal/packagesinternal" @@ -126,9 +129,8 @@ type Config struct { Mode LoadMode // Context specifies the context for the load operation. - // If the context is cancelled, the loader may stop early - // and return an ErrCancelled error. - // If Context is nil, the load cannot be cancelled. + // Cancelling the context may cause [Load] to abort and + // return an error. Context context.Context // Logf is the logger for the config. @@ -211,8 +213,8 @@ type Config struct { // Config specifies loading options; // nil behaves the same as an empty Config. // -// Load returns an error if any of the patterns was invalid -// as defined by the underlying build system. +// If any of the patterns was invalid as defined by the +// underlying build system, Load returns an error. // It may return an empty list of packages without an error, // for instance for an empty expansion of a valid wildcard. // Errors associated with a particular package are recorded in the @@ -255,8 +257,27 @@ func Load(cfg *Config, patterns ...string) ([]*Package, error) { // defaultDriver will fall back to the go list driver. // The boolean result indicates that an external driver handled the request. func defaultDriver(cfg *Config, patterns ...string) (*DriverResponse, bool, error) { + const ( + // windowsArgMax specifies the maximum command line length for + // the Windows' CreateProcess function. + windowsArgMax = 32767 + // maxEnvSize is a very rough estimation of the maximum environment + // size of a user. + maxEnvSize = 16384 + // safeArgMax specifies the maximum safe command line length to use + // by the underlying driver excl. the environment. We choose the Windows' + // ARG_MAX as the starting point because it's one of the lowest ARG_MAX + // constants out of the different supported platforms, + // e.g., https://www.in-ulm.de/~mascheck/various/argmax/#results. + safeArgMax = windowsArgMax - maxEnvSize + ) + chunks, err := splitIntoChunks(patterns, safeArgMax) + if err != nil { + return nil, false, err + } + if driver := findExternalDriver(cfg); driver != nil { - response, err := driver(cfg, patterns...) + response, err := callDriverOnChunks(driver, cfg, chunks) if err != nil { return nil, false, err } else if !response.NotHandled { @@ -265,11 +286,82 @@ func defaultDriver(cfg *Config, patterns ...string) (*DriverResponse, bool, erro // (fall through) } - response, err := goListDriver(cfg, patterns...) + response, err := callDriverOnChunks(goListDriver, cfg, chunks) if err != nil { return nil, false, err } - return response, false, nil + return response, false, err +} + +// splitIntoChunks chunks the slice so that the total number of characters +// in a chunk is no longer than argMax. +func splitIntoChunks(patterns []string, argMax int) ([][]string, error) { + if argMax <= 0 { + return nil, errors.New("failed to split patterns into chunks, negative safe argMax value") + } + var chunks [][]string + charsInChunk := 0 + nextChunkStart := 0 + for i, v := range patterns { + vChars := len(v) + if vChars > argMax { + // a single pattern is longer than the maximum safe ARG_MAX, hardly should happen + return nil, errors.New("failed to split patterns into chunks, a pattern is too long") + } + charsInChunk += vChars + 1 // +1 is for a whitespace between patterns that has to be counted too + if charsInChunk > argMax { + chunks = append(chunks, patterns[nextChunkStart:i]) + nextChunkStart = i + charsInChunk = vChars + } + } + // add the last chunk + if nextChunkStart < len(patterns) { + chunks = append(chunks, patterns[nextChunkStart:]) + } + return chunks, nil +} + +func callDriverOnChunks(driver driver, cfg *Config, chunks [][]string) (*DriverResponse, error) { + if len(chunks) == 0 { + return driver(cfg) + } + responses := make([]*DriverResponse, len(chunks)) + errNotHandled := errors.New("driver returned NotHandled") + var g errgroup.Group + for i, chunk := range chunks { + i := i + chunk := chunk + g.Go(func() (err error) { + responses[i], err = driver(cfg, chunk...) + if responses[i] != nil && responses[i].NotHandled { + err = errNotHandled + } + return err + }) + } + if err := g.Wait(); err != nil { + if errors.Is(err, errNotHandled) { + return &DriverResponse{NotHandled: true}, nil + } + return nil, err + } + return mergeResponses(responses...), nil +} + +func mergeResponses(responses ...*DriverResponse) *DriverResponse { + if len(responses) == 0 { + return nil + } + response := newDeduper() + response.dr.NotHandled = false + response.dr.Compiler = responses[0].Compiler + response.dr.Arch = responses[0].Arch + response.dr.GoVersion = responses[0].GoVersion + for _, v := range responses { + response.addAll(v) + } + return response.dr } // A Package describes a loaded Go package. @@ -335,6 +427,10 @@ type Package struct { // The NeedTypes LoadMode bit sets this field for packages matching the // patterns; type information for dependencies may be missing or incomplete, // unless NeedDeps and NeedImports are also set. + // + // Each call to [Load] returns a consistent set of type + // symbols, as defined by the comment at [types.Identical]. + // Avoid mixing type information from two or more calls to [Load]. Types *types.Package // Fset provides position information for Types, TypesInfo, and Syntax. @@ -761,6 +857,12 @@ func (ld *loader) refine(response *DriverResponse) ([]*Package, error) { wg.Wait() } + // If the context is done, return its error and + // throw out [likely] incomplete packages. + if err := ld.Context.Err(); err != nil { + return nil, err + } + result := make([]*Package, len(initial)) for i, lpkg := range initial { result[i] = lpkg.Package @@ -856,6 +958,14 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) { lpkg.Types = types.NewPackage(lpkg.PkgPath, lpkg.Name) lpkg.Fset = ld.Fset + // Start shutting down if the context is done and do not load + // source or export data files. + // Packages that import this one will have ld.Context.Err() != nil. + // ld.Context.Err() will be returned later by refine. + if ld.Context.Err() != nil { + return + } + // Subtle: we populate all Types fields with an empty Package // before loading export data so that export data processing // never has to create a types.Package for an indirect dependency, @@ -975,6 +1085,13 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) { return } + // Start shutting down if the context is done and do not type check. + // Packages that import this one will have ld.Context.Err() != nil. + // ld.Context.Err() will be returned later by refine. + if ld.Context.Err() != nil { + return + } + lpkg.TypesInfo = &types.Info{ Types: make(map[ast.Expr]types.TypeAndValue), Defs: make(map[*ast.Ident]types.Object), @@ -1025,7 +1142,7 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) { Sizes: ld.sizes, // may be nil } if lpkg.Module != nil && lpkg.Module.GoVersion != "" { - typesinternal.SetGoVersion(tc, "go"+lpkg.Module.GoVersion) + tc.GoVersion = "go" + lpkg.Module.GoVersion } if (ld.Mode & typecheckCgo) != 0 { if !typesinternal.SetUsesCgo(tc) { @@ -1036,10 +1153,24 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) { return } } - types.NewChecker(tc, ld.Fset, lpkg.Types, lpkg.TypesInfo).Files(lpkg.Syntax) + typErr := types.NewChecker(tc, ld.Fset, lpkg.Types, lpkg.TypesInfo).Files(lpkg.Syntax) lpkg.importErrors = nil // no longer needed + // In go/types go1.21 and go1.22, Checker.Files failed fast with a + // a "too new" error, without calling tc.Error and without + // proceeding to type-check the package (#66525). + // We rely on the runtimeVersion error to give the suggested remedy. + if typErr != nil && len(lpkg.Errors) == 0 && len(lpkg.Syntax) > 0 { + if msg := typErr.Error(); strings.HasPrefix(msg, "package requires newer Go version") { + appendError(types.Error{ + Fset: ld.Fset, + Pos: lpkg.Syntax[0].Package, + Msg: msg, + }) + } + } + // If !Cgo, the type-checker uses FakeImportC mode, so // it doesn't invoke the importer for import "C", // nor report an error for the import, @@ -1061,6 +1192,12 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) { } } + // If types.Checker.Files had an error that was unreported, + // make sure to report the unknown error so the package is illTyped. + if typErr != nil && len(lpkg.Errors) == 0 { + appendError(typErr) + } + // Record accumulated errors. illTyped := len(lpkg.Errors) > 0 if !illTyped { @@ -1132,11 +1269,6 @@ func (ld *loader) parseFiles(filenames []string) ([]*ast.File, []error) { parsed := make([]*ast.File, n) errors := make([]error, n) for i, file := range filenames { - if ld.Config.Context.Err() != nil { - parsed[i] = nil - errors[i] = ld.Config.Context.Err() - continue - } wg.Add(1) go func(i int, filename string) { parsed[i], errors[i] = ld.parseFile(filename) diff --git a/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go b/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go index 6a57ce3b1369..a2386c347a25 100644 --- a/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go +++ b/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go @@ -30,7 +30,6 @@ import ( "strings" "golang.org/x/tools/internal/aliases" - "golang.org/x/tools/internal/typeparams" "golang.org/x/tools/internal/typesinternal" ) @@ -395,7 +394,7 @@ func (enc *Encoder) concreteMethod(meth *types.Func) (Path, bool) { // of objectpath will only be giving us origin methods, anyway, as referring // to instantiated methods is usually not useful. - if typeparams.OriginMethod(meth) != meth { + if meth.Origin() != meth { return "", false } diff --git a/vendor/golang.org/x/tools/internal/aliases/aliases.go b/vendor/golang.org/x/tools/internal/aliases/aliases.go index f89112c8ee57..c24c2eee457f 100644 --- a/vendor/golang.org/x/tools/internal/aliases/aliases.go +++ b/vendor/golang.org/x/tools/internal/aliases/aliases.go @@ -16,10 +16,14 @@ import ( // NewAlias creates a new TypeName in Package pkg that // is an alias for the type rhs. // -// When GoVersion>=1.22 and GODEBUG=gotypesalias=1, -// the Type() of the return value is a *types.Alias. -func NewAlias(pos token.Pos, pkg *types.Package, name string, rhs types.Type) *types.TypeName { - if enabled() { +// The enabled parameter determines whether the resulting [TypeName]'s +// type is an [types.Alias]. Its value must be the result of a call to +// [Enabled], which computes the effective value of +// GODEBUG=gotypesalias=... by invoking the type checker. The Enabled +// function is expensive and should be called once per task (e.g. +// package import), not once per call to NewAlias. +func NewAlias(enabled bool, pos token.Pos, pkg *types.Package, name string, rhs types.Type) *types.TypeName { + if enabled { tname := types.NewTypeName(pos, pkg, name, nil) newAlias(tname, rhs) return tname diff --git a/vendor/golang.org/x/tools/internal/aliases/aliases_go121.go b/vendor/golang.org/x/tools/internal/aliases/aliases_go121.go index 1872b56ff8fc..c027b9f315f6 100644 --- a/vendor/golang.org/x/tools/internal/aliases/aliases_go121.go +++ b/vendor/golang.org/x/tools/internal/aliases/aliases_go121.go @@ -15,16 +15,17 @@ import ( // It will never be created by go/types. type Alias struct{} -func (*Alias) String() string { panic("unreachable") } - +func (*Alias) String() string { panic("unreachable") } func (*Alias) Underlying() types.Type { panic("unreachable") } - -func (*Alias) Obj() *types.TypeName { panic("unreachable") } +func (*Alias) Obj() *types.TypeName { panic("unreachable") } +func Rhs(alias *Alias) types.Type { panic("unreachable") } // Unalias returns the type t for go <=1.21. func Unalias(t types.Type) types.Type { return t } -// Always false for go <=1.21. Ignores GODEBUG. -func enabled() bool { return false } - func newAlias(name *types.TypeName, rhs types.Type) *Alias { panic("unreachable") } + +// Enabled reports whether [NewAlias] should create [types.Alias] types. +// +// Before go1.22, this function always returns false. +func Enabled() bool { return false } diff --git a/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go b/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go index 8b92116284d0..b32995484190 100644 --- a/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go +++ b/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go @@ -12,14 +12,22 @@ import ( "go/parser" "go/token" "go/types" - "os" - "strings" - "sync" ) // Alias is an alias of types.Alias. type Alias = types.Alias +// Rhs returns the type on the right-hand side of the alias declaration. +func Rhs(alias *Alias) types.Type { + if alias, ok := any(alias).(interface{ Rhs() types.Type }); ok { + return alias.Rhs() // go1.23+ + } + + // go1.22's Alias didn't have the Rhs method, + // so Unalias is the best we can do. + return Unalias(alias) +} + // Unalias is a wrapper of types.Unalias. func Unalias(t types.Type) types.Type { return types.Unalias(t) } @@ -33,40 +41,23 @@ func newAlias(tname *types.TypeName, rhs types.Type) *Alias { return a } -// enabled returns true when types.Aliases are enabled. -func enabled() bool { - // Use the gotypesalias value in GODEBUG if set. - godebug := os.Getenv("GODEBUG") - value := -1 // last set value. - for _, f := range strings.Split(godebug, ",") { - switch f { - case "gotypesalias=1": - value = 1 - case "gotypesalias=0": - value = 0 - } - } - switch value { - case 0: - return false - case 1: - return true - default: - return aliasesDefault() - } -} - -// aliasesDefault reports if aliases are enabled by default. -func aliasesDefault() bool { - // Dynamically check if Aliases will be produced from go/types. - aliasesDefaultOnce.Do(func() { - fset := token.NewFileSet() - f, _ := parser.ParseFile(fset, "a.go", "package p; type A = int", 0) - pkg, _ := new(types.Config).Check("p", fset, []*ast.File{f}, nil) - _, gotypesaliasDefault = pkg.Scope().Lookup("A").Type().(*types.Alias) - }) - return gotypesaliasDefault +// Enabled reports whether [NewAlias] should create [types.Alias] types. +// +// This function is expensive! Call it sparingly. +func Enabled() bool { + // The only reliable way to compute the answer is to invoke go/types. + // We don't parse the GODEBUG environment variable, because + // (a) it's tricky to do so in a manner that is consistent + // with the godebug package; in particular, a simple + // substring check is not good enough. The value is a + // rightmost-wins list of options. But more importantly: + // (b) it is impossible to detect changes to the effective + // setting caused by os.Setenv("GODEBUG"), as happens in + // many tests. Therefore any attempt to cache the result + // is just incorrect. + fset := token.NewFileSet() + f, _ := parser.ParseFile(fset, "a.go", "package p; type A = int", 0) + pkg, _ := new(types.Config).Check("p", fset, []*ast.File{f}, nil) + _, enabled := pkg.Scope().Lookup("A").Type().(*types.Alias) + return enabled } - -var gotypesaliasDefault bool -var aliasesDefaultOnce sync.Once diff --git a/vendor/golang.org/x/tools/internal/event/tag/tag.go b/vendor/golang.org/x/tools/internal/event/tag/tag.go deleted file mode 100644 index 581b26c2041f..000000000000 --- a/vendor/golang.org/x/tools/internal/event/tag/tag.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2019 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. - -// Package tag provides the labels used for telemetry throughout gopls. -package tag - -import ( - "golang.org/x/tools/internal/event/keys" -) - -var ( - // create the label keys we use - Method = keys.NewString("method", "") - StatusCode = keys.NewString("status.code", "") - StatusMessage = keys.NewString("status.message", "") - RPCID = keys.NewString("id", "") - RPCDirection = keys.NewString("direction", "") - File = keys.NewString("file", "") - Directory = keys.New("directory", "") - URI = keys.New("URI", "") - Package = keys.NewString("package", "") // sorted comma-separated list of Package IDs - PackagePath = keys.NewString("package_path", "") - Query = keys.New("query", "") - Snapshot = keys.NewUInt64("snapshot", "") - Operation = keys.NewString("operation", "") - - Position = keys.New("position", "") - Category = keys.NewString("category", "") - PackageCount = keys.NewInt("packages", "") - Files = keys.New("files", "") - Port = keys.NewInt("port", "") - Type = keys.New("type", "") - HoverKind = keys.NewString("hoverkind", "") - - NewServer = keys.NewString("new_server", "A new server was added") - EndServer = keys.NewString("end_server", "A server was shut down") - - ServerID = keys.NewString("server", "The server ID an event is related to") - Logfile = keys.NewString("logfile", "") - DebugAddress = keys.NewString("debug_address", "") - GoplsPath = keys.NewString("gopls_path", "") - ClientID = keys.NewString("client_id", "") - - Level = keys.NewInt("level", "The logging level") -) - -var ( - // create the stats we measure - Started = keys.NewInt64("started", "Count of started RPCs.") - ReceivedBytes = keys.NewInt64("received_bytes", "Bytes received.") //, unit.Bytes) - SentBytes = keys.NewInt64("sent_bytes", "Bytes sent.") //, unit.Bytes) - Latency = keys.NewFloat64("latency_ms", "Elapsed time in milliseconds") //, unit.Milliseconds) -) - -const ( - Inbound = "in" - Outbound = "out" -) diff --git a/vendor/golang.org/x/tools/internal/gcimporter/iexport.go b/vendor/golang.org/x/tools/internal/gcimporter/iexport.go index 638fc1d3b86a..deeb67f315af 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/iexport.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/iexport.go @@ -464,7 +464,7 @@ func (p *iexporter) doDecl(obj types.Object) { switch obj := obj.(type) { case *types.Var: - w.tag('V') + w.tag(varTag) w.pos(obj.Pos()) w.typ(obj.Type(), obj.Pkg()) @@ -482,9 +482,9 @@ func (p *iexporter) doDecl(obj types.Object) { // Function. if sig.TypeParams().Len() == 0 { - w.tag('F') + w.tag(funcTag) } else { - w.tag('G') + w.tag(genericFuncTag) } w.pos(obj.Pos()) // The tparam list of the function type is the declaration of the type @@ -500,7 +500,7 @@ func (p *iexporter) doDecl(obj types.Object) { w.signature(sig) case *types.Const: - w.tag('C') + w.tag(constTag) w.pos(obj.Pos()) w.value(obj.Type(), obj.Val()) @@ -508,7 +508,7 @@ func (p *iexporter) doDecl(obj types.Object) { t := obj.Type() if tparam, ok := aliases.Unalias(t).(*types.TypeParam); ok { - w.tag('P') + w.tag(typeParamTag) w.pos(obj.Pos()) constraint := tparam.Constraint() if p.version >= iexportVersionGo1_18 { @@ -523,8 +523,13 @@ func (p *iexporter) doDecl(obj types.Object) { } if obj.IsAlias() { - w.tag('A') + w.tag(aliasTag) w.pos(obj.Pos()) + if alias, ok := t.(*aliases.Alias); ok { + // Preserve materialized aliases, + // even of non-exported types. + t = aliases.Rhs(alias) + } w.typ(t, obj.Pkg()) break } @@ -536,9 +541,9 @@ func (p *iexporter) doDecl(obj types.Object) { } if named.TypeParams().Len() == 0 { - w.tag('T') + w.tag(typeTag) } else { - w.tag('U') + w.tag(genericTypeTag) } w.pos(obj.Pos()) @@ -548,7 +553,7 @@ func (p *iexporter) doDecl(obj types.Object) { w.tparamList(obj.Name(), named.TypeParams(), obj.Pkg()) } - underlying := obj.Type().Underlying() + underlying := named.Underlying() w.typ(underlying, obj.Pkg()) if types.IsInterface(t) { @@ -739,7 +744,10 @@ func (w *exportWriter) doTyp(t types.Type, pkg *types.Package) { }() } switch t := t.(type) { - // TODO(adonovan): support types.Alias. + case *aliases.Alias: + // TODO(adonovan): support parameterized aliases, following *types.Named. + w.startType(aliasType) + w.qualifiedType(t.Obj()) case *types.Named: if targs := t.TypeArgs(); targs.Len() > 0 { diff --git a/vendor/golang.org/x/tools/internal/gcimporter/iimport.go b/vendor/golang.org/x/tools/internal/gcimporter/iimport.go index 4d50eb8e5878..136aa03653cc 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/iimport.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/iimport.go @@ -80,6 +80,20 @@ const ( typeParamType instanceType unionType + aliasType +) + +// Object tags +const ( + varTag = 'V' + funcTag = 'F' + genericFuncTag = 'G' + constTag = 'C' + aliasTag = 'A' + genericAliasTag = 'B' + typeParamTag = 'P' + typeTag = 'T' + genericTypeTag = 'U' ) // IImportData imports a package from the serialized package data @@ -196,6 +210,7 @@ func iimportCommon(fset *token.FileSet, getPackages GetPackagesFunc, data []byte p := iimporter{ version: int(version), ipath: path, + aliases: aliases.Enabled(), shallow: shallow, reportf: reportf, @@ -324,7 +339,7 @@ func iimportCommon(fset *token.FileSet, getPackages GetPackagesFunc, data []byte } // SetConstraint can't be called if the constraint type is not yet complete. - // When type params are created in the 'P' case of (*importReader).obj(), + // When type params are created in the typeParamTag case of (*importReader).obj(), // the associated constraint type may not be complete due to recursion. // Therefore, we defer calling SetConstraint there, and call it here instead // after all types are complete. @@ -355,6 +370,7 @@ type iimporter struct { version int ipath string + aliases bool shallow bool reportf ReportFunc // if non-nil, used to report bugs @@ -546,25 +562,29 @@ func (r *importReader) obj(name string) { pos := r.pos() switch tag { - case 'A': + case aliasTag: typ := r.typ() - - r.declare(types.NewTypeName(pos, r.currPkg, name, typ)) - - case 'C': + // TODO(adonovan): support generic aliases: + // if tag == genericAliasTag { + // tparams := r.tparamList() + // alias.SetTypeParams(tparams) + // } + r.declare(aliases.NewAlias(r.p.aliases, pos, r.currPkg, name, typ)) + + case constTag: typ, val := r.value() r.declare(types.NewConst(pos, r.currPkg, name, typ, val)) - case 'F', 'G': + case funcTag, genericFuncTag: var tparams []*types.TypeParam - if tag == 'G' { + if tag == genericFuncTag { tparams = r.tparamList() } sig := r.signature(nil, nil, tparams) r.declare(types.NewFunc(pos, r.currPkg, name, sig)) - case 'T', 'U': + case typeTag, genericTypeTag: // Types can be recursive. We need to setup a stub // declaration before recursing. obj := types.NewTypeName(pos, r.currPkg, name, nil) @@ -572,7 +592,7 @@ func (r *importReader) obj(name string) { // Declare obj before calling r.tparamList, so the new type name is recognized // if used in the constraint of one of its own typeparams (see #48280). r.declare(obj) - if tag == 'U' { + if tag == genericTypeTag { tparams := r.tparamList() named.SetTypeParams(tparams) } @@ -604,7 +624,7 @@ func (r *importReader) obj(name string) { } } - case 'P': + case typeParamTag: // We need to "declare" a typeparam in order to have a name that // can be referenced recursively (if needed) in the type param's // bound. @@ -637,7 +657,7 @@ func (r *importReader) obj(name string) { // completely set up all types in ImportData. r.p.later = append(r.p.later, setConstraintArgs{t: t, constraint: constraint}) - case 'V': + case varTag: typ := r.typ() r.declare(types.NewVar(pos, r.currPkg, name, typ)) @@ -854,7 +874,7 @@ func (r *importReader) doType(base *types.Named) (res types.Type) { errorf("unexpected kind tag in %q: %v", r.p.ipath, k) return nil - case definedType: + case aliasType, definedType: pkg, name := r.qualifiedIdent() r.p.doDecl(pkg, name) return pkg.Scope().Lookup(name).(*types.TypeName).Type() diff --git a/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go b/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go index f4edc46ab74b..2c0770688771 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go @@ -26,6 +26,7 @@ type pkgReader struct { ctxt *types.Context imports map[string]*types.Package // previously imported packages, indexed by path + aliases bool // create types.Alias nodes // lazily initialized arrays corresponding to the unified IR // PosBase, Pkg, and Type sections, respectively. @@ -99,6 +100,7 @@ func readUnifiedPackage(fset *token.FileSet, ctxt *types.Context, imports map[st ctxt: ctxt, imports: imports, + aliases: aliases.Enabled(), posBases: make([]string, input.NumElems(pkgbits.RelocPosBase)), pkgs: make([]*types.Package, input.NumElems(pkgbits.RelocPkg)), @@ -524,7 +526,7 @@ func (pr *pkgReader) objIdx(idx pkgbits.Index) (*types.Package, string) { case pkgbits.ObjAlias: pos := r.pos() typ := r.typ() - declare(types.NewTypeName(pos, objPkg, objName, typ)) + declare(aliases.NewAlias(r.p.aliases, pos, objPkg, objName, typ)) case pkgbits.ObjConst: pos := r.pos() diff --git a/vendor/golang.org/x/tools/internal/gocommand/invoke.go b/vendor/golang.org/x/tools/internal/gocommand/invoke.go index 55312522dc2d..eb7a8282f9e7 100644 --- a/vendor/golang.org/x/tools/internal/gocommand/invoke.go +++ b/vendor/golang.org/x/tools/internal/gocommand/invoke.go @@ -25,7 +25,6 @@ import ( "golang.org/x/tools/internal/event" "golang.org/x/tools/internal/event/keys" "golang.org/x/tools/internal/event/label" - "golang.org/x/tools/internal/event/tag" ) // An Runner will run go command invocations and serialize @@ -55,11 +54,14 @@ func (runner *Runner) initialize() { // 1.14: go: updating go.mod: existing contents have changed since last read var modConcurrencyError = regexp.MustCompile(`go:.*go.mod.*contents have changed`) -// verb is an event label for the go command verb. -var verb = keys.NewString("verb", "go command verb") +// event keys for go command invocations +var ( + verb = keys.NewString("verb", "go command verb") + directory = keys.NewString("directory", "") +) func invLabels(inv Invocation) []label.Label { - return []label.Label{verb.Of(inv.Verb), tag.Directory.Of(inv.WorkingDir)} + return []label.Label{verb.Of(inv.Verb), directory.Of(inv.WorkingDir)} } // Run is a convenience wrapper around RunRaw. @@ -158,12 +160,15 @@ type Invocation struct { BuildFlags []string // If ModFlag is set, the go command is invoked with -mod=ModFlag. + // TODO(rfindley): remove, in favor of Args. ModFlag string // If ModFile is set, the go command is invoked with -modfile=ModFile. + // TODO(rfindley): remove, in favor of Args. ModFile string // If Overlay is set, the go command is invoked with -overlay=Overlay. + // TODO(rfindley): remove, in favor of Args. Overlay string // If CleanEnv is set, the invocation will run only with the environment diff --git a/vendor/golang.org/x/tools/internal/gocommand/vendor.go b/vendor/golang.org/x/tools/internal/gocommand/vendor.go index 2d3d408c0bed..e38d1fb48888 100644 --- a/vendor/golang.org/x/tools/internal/gocommand/vendor.go +++ b/vendor/golang.org/x/tools/internal/gocommand/vendor.go @@ -107,3 +107,57 @@ func getMainModuleAnd114(ctx context.Context, inv Invocation, r *Runner) (*Modul } return mod, lines[4] == "go1.14", nil } + +// WorkspaceVendorEnabled reports whether workspace vendoring is enabled. It takes a *Runner to execute Go commands +// with the supplied context.Context and Invocation. The Invocation can contain pre-defined fields, +// of which only Verb and Args are modified to run the appropriate Go command. +// Inspired by setDefaultBuildMod in modload/init.go +func WorkspaceVendorEnabled(ctx context.Context, inv Invocation, r *Runner) (bool, []*ModuleJSON, error) { + inv.Verb = "env" + inv.Args = []string{"GOWORK"} + stdout, err := r.Run(ctx, inv) + if err != nil { + return false, nil, err + } + goWork := string(bytes.TrimSpace(stdout.Bytes())) + if fi, err := os.Stat(filepath.Join(filepath.Dir(goWork), "vendor")); err == nil && fi.IsDir() { + mainMods, err := getWorkspaceMainModules(ctx, inv, r) + if err != nil { + return false, nil, err + } + return true, mainMods, nil + } + return false, nil, nil +} + +// getWorkspaceMainModules gets the main modules' information. +// This is the information needed to figure out if vendoring should be enabled. +func getWorkspaceMainModules(ctx context.Context, inv Invocation, r *Runner) ([]*ModuleJSON, error) { + const format = `{{.Path}} +{{.Dir}} +{{.GoMod}} +{{.GoVersion}} +` + inv.Verb = "list" + inv.Args = []string{"-m", "-f", format} + stdout, err := r.Run(ctx, inv) + if err != nil { + return nil, err + } + + lines := strings.Split(strings.TrimSuffix(stdout.String(), "\n"), "\n") + if len(lines) < 4 { + return nil, fmt.Errorf("unexpected stdout: %q", stdout.String()) + } + mods := make([]*ModuleJSON, 0, len(lines)/4) + for i := 0; i < len(lines); i += 4 { + mods = append(mods, &ModuleJSON{ + Path: lines[i], + Dir: lines[i+1], + GoMod: lines[i+2], + GoVersion: lines[i+3], + Main: true, + }) + } + return mods, nil +} diff --git a/vendor/golang.org/x/tools/internal/imports/fix.go b/vendor/golang.org/x/tools/internal/imports/fix.go index 6a18f63a44dc..93d49a6efd0c 100644 --- a/vendor/golang.org/x/tools/internal/imports/fix.go +++ b/vendor/golang.org/x/tools/internal/imports/fix.go @@ -31,6 +31,7 @@ import ( "golang.org/x/tools/internal/event" "golang.org/x/tools/internal/gocommand" "golang.org/x/tools/internal/gopathwalk" + "golang.org/x/tools/internal/stdlib" ) // importToGroup is a list of functions which map from an import path to @@ -300,6 +301,20 @@ func (p *pass) loadPackageNames(imports []*ImportInfo) error { return nil } +// if there is a trailing major version, remove it +func withoutVersion(nm string) string { + if v := path.Base(nm); len(v) > 0 && v[0] == 'v' { + if _, err := strconv.Atoi(v[1:]); err == nil { + // this is, for instance, called with rand/v2 and returns rand + if len(v) < len(nm) { + xnm := nm[:len(nm)-len(v)-1] + return path.Base(xnm) + } + } + } + return nm +} + // importIdentifier returns the identifier that imp will introduce. It will // guess if the package name has not been loaded, e.g. because the source // is not available. @@ -309,7 +324,7 @@ func (p *pass) importIdentifier(imp *ImportInfo) string { } known := p.knownPackages[imp.ImportPath] if known != nil && known.name != "" { - return known.name + return withoutVersion(known.name) } return ImportPathToAssumedName(imp.ImportPath) } @@ -511,9 +526,9 @@ func (p *pass) assumeSiblingImportsValid() { } for left, rights := range refs { if imp, ok := importsByName[left]; ok { - if m, ok := stdlib[imp.ImportPath]; ok { + if m, ok := stdlib.PackageSymbols[imp.ImportPath]; ok { // We have the stdlib in memory; no need to guess. - rights = copyExports(m) + rights = symbolNameSet(m) } p.addCandidate(imp, &packageInfo{ // no name; we already know it. @@ -641,7 +656,7 @@ func getCandidatePkgs(ctx context.Context, wrappedCallback *scanCallback, filena dupCheck := map[string]struct{}{} // Start off with the standard library. - for importPath, exports := range stdlib { + for importPath, symbols := range stdlib.PackageSymbols { p := &pkg{ dir: filepath.Join(goenv["GOROOT"], "src", importPath), importPathShort: importPath, @@ -650,6 +665,13 @@ func getCandidatePkgs(ctx context.Context, wrappedCallback *scanCallback, filena } dupCheck[importPath] = struct{}{} if notSelf(p) && wrappedCallback.dirFound(p) && wrappedCallback.packageNameLoaded(p) { + var exports []stdlib.Symbol + for _, sym := range symbols { + switch sym.Kind { + case stdlib.Func, stdlib.Type, stdlib.Var, stdlib.Const: + exports = append(exports, sym) + } + } wrappedCallback.exportsLoaded(p, exports) } } @@ -670,7 +692,7 @@ func getCandidatePkgs(ctx context.Context, wrappedCallback *scanCallback, filena dupCheck[pkg.importPathShort] = struct{}{} return notSelf(pkg) && wrappedCallback.packageNameLoaded(pkg) }, - exportsLoaded: func(pkg *pkg, exports []string) { + exportsLoaded: func(pkg *pkg, exports []stdlib.Symbol) { // If we're an x_test, load the package under test's test variant. if strings.HasSuffix(filePkg, "_test") && pkg.dir == filepath.Dir(filename) { var err error @@ -795,7 +817,7 @@ func GetImportPaths(ctx context.Context, wrapped func(ImportFix), searchPrefix, // A PackageExport is a package and its exports. type PackageExport struct { Fix *ImportFix - Exports []string + Exports []stdlib.Symbol } // GetPackageExports returns all known packages with name pkg and their exports. @@ -810,8 +832,8 @@ func GetPackageExports(ctx context.Context, wrapped func(PackageExport), searchP packageNameLoaded: func(pkg *pkg) bool { return pkg.packageName == searchPkg }, - exportsLoaded: func(pkg *pkg, exports []string) { - sort.Strings(exports) + exportsLoaded: func(pkg *pkg, exports []stdlib.Symbol) { + sortSymbols(exports) wrapped(PackageExport{ Fix: &ImportFix{ StmtInfo: ImportInfo{ @@ -988,8 +1010,10 @@ func (e *ProcessEnv) GetResolver() (Resolver, error) { // already know the view type. if len(e.Env["GOMOD"]) == 0 && len(e.Env["GOWORK"]) == 0 { e.resolver = newGopathResolver(e) + } else if r, err := newModuleResolver(e, e.ModCache); err != nil { + e.resolverErr = err } else { - e.resolver, e.resolverErr = newModuleResolver(e, e.ModCache) + e.resolver = Resolver(r) } } @@ -1049,24 +1073,40 @@ func addStdlibCandidates(pass *pass, refs references) error { if err != nil { return err } + localbase := func(nm string) string { + ans := path.Base(nm) + if ans[0] == 'v' { + // this is called, for instance, with math/rand/v2 and returns rand/v2 + if _, err := strconv.Atoi(ans[1:]); err == nil { + ix := strings.LastIndex(nm, ans) + more := path.Base(nm[:ix]) + ans = path.Join(more, ans) + } + } + return ans + } add := func(pkg string) { // Prevent self-imports. if path.Base(pkg) == pass.f.Name.Name && filepath.Join(goenv["GOROOT"], "src", pkg) == pass.srcDir { return } - exports := copyExports(stdlib[pkg]) + exports := symbolNameSet(stdlib.PackageSymbols[pkg]) pass.addCandidate( &ImportInfo{ImportPath: pkg}, - &packageInfo{name: path.Base(pkg), exports: exports}) + &packageInfo{name: localbase(pkg), exports: exports}) } for left := range refs { if left == "rand" { - // Make sure we try crypto/rand before math/rand. + // Make sure we try crypto/rand before any version of math/rand as both have Int() + // and our policy is to recommend crypto add("crypto/rand") - add("math/rand") + // if the user's no later than go1.21, this should be "math/rand" + // but we have no way of figuring out what the user is using + // TODO: investigate using the toolchain version to disambiguate in the stdlib + add("math/rand/v2") continue } - for importPath := range stdlib { + for importPath := range stdlib.PackageSymbols { if path.Base(importPath) == left { add(importPath) } @@ -1085,7 +1125,7 @@ type Resolver interface { // loadExports returns the set of exported symbols in the package at dir. // loadExports may be called concurrently. - loadExports(ctx context.Context, pkg *pkg, includeTest bool) (string, []string, error) + loadExports(ctx context.Context, pkg *pkg, includeTest bool) (string, []stdlib.Symbol, error) // scoreImportPath returns the relevance for an import path. scoreImportPath(ctx context.Context, path string) float64 @@ -1114,7 +1154,7 @@ type scanCallback struct { // If it returns true, the package's exports will be loaded. packageNameLoaded func(pkg *pkg) bool // exportsLoaded is called when a package's exports have been loaded. - exportsLoaded func(pkg *pkg, exports []string) + exportsLoaded func(pkg *pkg, exports []stdlib.Symbol) } func addExternalCandidates(ctx context.Context, pass *pass, refs references, filename string) error { @@ -1295,7 +1335,7 @@ func (r *gopathResolver) loadPackageNames(importPaths []string, srcDir string) ( // importPathToName finds out the actual package name, as declared in its .go files. func importPathToName(bctx *build.Context, importPath, srcDir string) string { // Fast path for standard library without going to disk. - if _, ok := stdlib[importPath]; ok { + if stdlib.HasPackage(importPath) { return path.Base(importPath) // stdlib packages always match their paths. } @@ -1493,7 +1533,7 @@ func (r *gopathResolver) scan(ctx context.Context, callback *scanCallback) error } func (r *gopathResolver) scoreImportPath(ctx context.Context, path string) float64 { - if _, ok := stdlib[path]; ok { + if stdlib.HasPackage(path) { return MaxRelevance } return MaxRelevance - 1 @@ -1510,7 +1550,7 @@ func filterRoots(roots []gopathwalk.Root, include func(gopathwalk.Root) bool) [] return result } -func (r *gopathResolver) loadExports(ctx context.Context, pkg *pkg, includeTest bool) (string, []string, error) { +func (r *gopathResolver) loadExports(ctx context.Context, pkg *pkg, includeTest bool) (string, []stdlib.Symbol, error) { if info, ok := r.cache.Load(pkg.dir); ok && !includeTest { return r.cache.CacheExports(ctx, r.env, info) } @@ -1530,7 +1570,7 @@ func VendorlessPath(ipath string) string { return ipath } -func loadExportsFromFiles(ctx context.Context, env *ProcessEnv, dir string, includeTest bool) (string, []string, error) { +func loadExportsFromFiles(ctx context.Context, env *ProcessEnv, dir string, includeTest bool) (string, []stdlib.Symbol, error) { // Look for non-test, buildable .go files which could provide exports. all, err := os.ReadDir(dir) if err != nil { @@ -1554,7 +1594,7 @@ func loadExportsFromFiles(ctx context.Context, env *ProcessEnv, dir string, incl } var pkgName string - var exports []string + var exports []stdlib.Symbol fset := token.NewFileSet() for _, fi := range files { select { @@ -1581,21 +1621,41 @@ func loadExportsFromFiles(ctx context.Context, env *ProcessEnv, dir string, incl continue } pkgName = f.Name.Name - for name := range f.Scope.Objects { + for name, obj := range f.Scope.Objects { if ast.IsExported(name) { - exports = append(exports, name) + var kind stdlib.Kind + switch obj.Kind { + case ast.Con: + kind = stdlib.Const + case ast.Typ: + kind = stdlib.Type + case ast.Var: + kind = stdlib.Var + case ast.Fun: + kind = stdlib.Func + } + exports = append(exports, stdlib.Symbol{ + Name: name, + Kind: kind, + Version: 0, // unknown; be permissive + }) } } } + sortSymbols(exports) if env.Logf != nil { - sortedExports := append([]string(nil), exports...) - sort.Strings(sortedExports) - env.Logf("loaded exports in dir %v (package %v): %v", dir, pkgName, strings.Join(sortedExports, ", ")) + env.Logf("loaded exports in dir %v (package %v): %v", dir, pkgName, exports) } return pkgName, exports, nil } +func sortSymbols(syms []stdlib.Symbol) { + sort.Slice(syms, func(i, j int) bool { + return syms[i].Name < syms[j].Name + }) +} + // findImport searches for a package with the given symbols. // If no package is found, findImport returns ("", false, nil) func findImport(ctx context.Context, pass *pass, candidates []pkgDistance, pkgName string, symbols map[string]bool) (*pkg, error) { @@ -1662,7 +1722,7 @@ func findImport(ctx context.Context, pass *pass, candidates []pkgDistance, pkgNa exportsMap := make(map[string]bool, len(exports)) for _, sym := range exports { - exportsMap[sym] = true + exportsMap[sym.Name] = true } // If it doesn't have the right @@ -1820,10 +1880,13 @@ func (fn visitFn) Visit(node ast.Node) ast.Visitor { return fn(node) } -func copyExports(pkg []string) map[string]bool { - m := make(map[string]bool, len(pkg)) - for _, v := range pkg { - m[v] = true +func symbolNameSet(symbols []stdlib.Symbol) map[string]bool { + names := make(map[string]bool) + for _, sym := range symbols { + switch sym.Kind { + case stdlib.Const, stdlib.Var, stdlib.Type, stdlib.Func: + names[sym.Name] = true + } } - return m + return names } diff --git a/vendor/golang.org/x/tools/internal/imports/imports.go b/vendor/golang.org/x/tools/internal/imports/imports.go index 660407548e5a..f83465520a45 100644 --- a/vendor/golang.org/x/tools/internal/imports/imports.go +++ b/vendor/golang.org/x/tools/internal/imports/imports.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:generate go run mkstdlib.go - // Package imports implements a Go pretty-printer (like package "go/format") // that also adds or removes import statements as necessary. package imports @@ -109,7 +107,7 @@ func ApplyFixes(fixes []*ImportFix, filename string, src []byte, opt *Options, e } // formatFile formats the file syntax tree. -// It may mutate the token.FileSet. +// It may mutate the token.FileSet and the ast.File. // // If an adjust function is provided, it is called after formatting // with the original source (formatFile's src parameter) and the diff --git a/vendor/golang.org/x/tools/internal/imports/mod.go b/vendor/golang.org/x/tools/internal/imports/mod.go index 3d0f38f6c231..82fe644a189b 100644 --- a/vendor/golang.org/x/tools/internal/imports/mod.go +++ b/vendor/golang.org/x/tools/internal/imports/mod.go @@ -21,6 +21,7 @@ import ( "golang.org/x/tools/internal/event" "golang.org/x/tools/internal/gocommand" "golang.org/x/tools/internal/gopathwalk" + "golang.org/x/tools/internal/stdlib" ) // Notes(rfindley): ModuleResolver appears to be heavily optimized for scanning @@ -111,11 +112,11 @@ func newModuleResolver(e *ProcessEnv, moduleCacheCache *DirInfoCache) (*ModuleRe } vendorEnabled := false - var mainModVendor *gocommand.ModuleJSON + var mainModVendor *gocommand.ModuleJSON // for module vendoring + var mainModsVendor []*gocommand.ModuleJSON // for workspace vendoring - // Module vendor directories are ignored in workspace mode: - // https://go.googlesource.com/proposal/+/master/design/45713-workspace.md - if len(r.env.Env["GOWORK"]) == 0 { + goWork := r.env.Env["GOWORK"] + if len(goWork) == 0 { // TODO(rfindley): VendorEnabled runs the go command to get GOFLAGS, but // they should be available from the ProcessEnv. Can we avoid the redundant // invocation? @@ -123,18 +124,35 @@ func newModuleResolver(e *ProcessEnv, moduleCacheCache *DirInfoCache) (*ModuleRe if err != nil { return nil, err } + } else { + vendorEnabled, mainModsVendor, err = gocommand.WorkspaceVendorEnabled(context.Background(), inv, r.env.GocmdRunner) + if err != nil { + return nil, err + } } - if mainModVendor != nil && vendorEnabled { - // Vendor mode is on, so all the non-Main modules are irrelevant, - // and we need to search /vendor for everything. - r.mains = []*gocommand.ModuleJSON{mainModVendor} - r.dummyVendorMod = &gocommand.ModuleJSON{ - Path: "", - Dir: filepath.Join(mainModVendor.Dir, "vendor"), + if vendorEnabled { + if mainModVendor != nil { + // Module vendor mode is on, so all the non-Main modules are irrelevant, + // and we need to search /vendor for everything. + r.mains = []*gocommand.ModuleJSON{mainModVendor} + r.dummyVendorMod = &gocommand.ModuleJSON{ + Path: "", + Dir: filepath.Join(mainModVendor.Dir, "vendor"), + } + r.modsByModPath = []*gocommand.ModuleJSON{mainModVendor, r.dummyVendorMod} + r.modsByDir = []*gocommand.ModuleJSON{mainModVendor, r.dummyVendorMod} + } else { + // Workspace vendor mode is on, so all the non-Main modules are irrelevant, + // and we need to search /vendor for everything. + r.mains = mainModsVendor + r.dummyVendorMod = &gocommand.ModuleJSON{ + Path: "", + Dir: filepath.Join(filepath.Dir(goWork), "vendor"), + } + r.modsByModPath = append(append([]*gocommand.ModuleJSON{}, mainModsVendor...), r.dummyVendorMod) + r.modsByDir = append(append([]*gocommand.ModuleJSON{}, mainModsVendor...), r.dummyVendorMod) } - r.modsByModPath = []*gocommand.ModuleJSON{mainModVendor, r.dummyVendorMod} - r.modsByDir = []*gocommand.ModuleJSON{mainModVendor, r.dummyVendorMod} } else { // Vendor mode is off, so run go list -m ... to find everything. err := r.initAllMods() @@ -165,8 +183,9 @@ func newModuleResolver(e *ProcessEnv, moduleCacheCache *DirInfoCache) (*ModuleRe return count(j) < count(i) // descending order }) - r.roots = []gopathwalk.Root{ - {Path: filepath.Join(goenv["GOROOT"], "/src"), Type: gopathwalk.RootGOROOT}, + r.roots = []gopathwalk.Root{} + if goenv["GOROOT"] != "" { // "" happens in tests + r.roots = append(r.roots, gopathwalk.Root{Path: filepath.Join(goenv["GOROOT"], "/src"), Type: gopathwalk.RootGOROOT}) } r.mainByDir = make(map[string]*gocommand.ModuleJSON) for _, main := range r.mains { @@ -313,15 +332,19 @@ func (r *ModuleResolver) ClearForNewScan() Resolver { // TODO(rfindley): move this to a new env.go, consolidating ProcessEnv methods. func (e *ProcessEnv) ClearModuleInfo() { if r, ok := e.resolver.(*ModuleResolver); ok { - resolver, resolverErr := newModuleResolver(e, e.ModCache) - if resolverErr == nil { - <-r.scanSema // acquire (guards caches) - resolver.moduleCacheCache = r.moduleCacheCache - resolver.otherCache = r.otherCache - r.scanSema <- struct{}{} // release + resolver, err := newModuleResolver(e, e.ModCache) + if err != nil { + e.resolver = nil + e.resolverErr = err + return } - e.resolver = resolver - e.resolverErr = resolverErr + + <-r.scanSema // acquire (guards caches) + resolver.moduleCacheCache = r.moduleCacheCache + resolver.otherCache = r.otherCache + r.scanSema <- struct{}{} // release + + e.UpdateResolver(resolver) } } @@ -412,7 +435,7 @@ func (r *ModuleResolver) cachePackageName(info directoryPackageInfo) (string, er return r.otherCache.CachePackageName(info) } -func (r *ModuleResolver) cacheExports(ctx context.Context, env *ProcessEnv, info directoryPackageInfo) (string, []string, error) { +func (r *ModuleResolver) cacheExports(ctx context.Context, env *ProcessEnv, info directoryPackageInfo) (string, []stdlib.Symbol, error) { if info.rootType == gopathwalk.RootModuleCache { return r.moduleCacheCache.CacheExports(ctx, env, info) } @@ -632,7 +655,7 @@ func (r *ModuleResolver) scan(ctx context.Context, callback *scanCallback) error } func (r *ModuleResolver) scoreImportPath(ctx context.Context, path string) float64 { - if _, ok := stdlib[path]; ok { + if stdlib.HasPackage(path) { return MaxRelevance } mod, _ := r.findPackage(path) @@ -710,7 +733,7 @@ func (r *ModuleResolver) canonicalize(info directoryPackageInfo) (*pkg, error) { return res, nil } -func (r *ModuleResolver) loadExports(ctx context.Context, pkg *pkg, includeTest bool) (string, []string, error) { +func (r *ModuleResolver) loadExports(ctx context.Context, pkg *pkg, includeTest bool) (string, []stdlib.Symbol, error) { if info, ok := r.cacheLoad(pkg.dir); ok && !includeTest { return r.cacheExports(ctx, r.env, info) } diff --git a/vendor/golang.org/x/tools/internal/imports/mod_cache.go b/vendor/golang.org/x/tools/internal/imports/mod_cache.go index cfc54657656d..b1192696b28e 100644 --- a/vendor/golang.org/x/tools/internal/imports/mod_cache.go +++ b/vendor/golang.org/x/tools/internal/imports/mod_cache.go @@ -14,6 +14,7 @@ import ( "golang.org/x/mod/module" "golang.org/x/tools/internal/gopathwalk" + "golang.org/x/tools/internal/stdlib" ) // To find packages to import, the resolver needs to know about all of @@ -73,7 +74,7 @@ type directoryPackageInfo struct { // the default build context GOOS and GOARCH. // // We can make this explicit, and key exports by GOOS, GOARCH. - exports []string + exports []stdlib.Symbol } // reachedStatus returns true when info has a status at least target and any error associated with @@ -229,7 +230,7 @@ func (d *DirInfoCache) CachePackageName(info directoryPackageInfo) (string, erro return info.packageName, info.err } -func (d *DirInfoCache) CacheExports(ctx context.Context, env *ProcessEnv, info directoryPackageInfo) (string, []string, error) { +func (d *DirInfoCache) CacheExports(ctx context.Context, env *ProcessEnv, info directoryPackageInfo) (string, []stdlib.Symbol, error) { if reached, _ := info.reachedStatus(exportsLoaded); reached { return info.packageName, info.exports, info.err } diff --git a/vendor/golang.org/x/tools/internal/imports/sortimports.go b/vendor/golang.org/x/tools/internal/imports/sortimports.go index 1a0a7ebd9e4d..da8194fd965b 100644 --- a/vendor/golang.org/x/tools/internal/imports/sortimports.go +++ b/vendor/golang.org/x/tools/internal/imports/sortimports.go @@ -18,7 +18,7 @@ import ( // sortImports sorts runs of consecutive import lines in import blocks in f. // It also removes duplicate imports when it is possible to do so without data loss. // -// It may mutate the token.File. +// It may mutate the token.File and the ast.File. func sortImports(localPrefix string, tokFile *token.File, f *ast.File) { for i, d := range f.Decls { d, ok := d.(*ast.GenDecl) diff --git a/vendor/golang.org/x/tools/internal/imports/zstdlib.go b/vendor/golang.org/x/tools/internal/imports/zstdlib.go deleted file mode 100644 index 8db24df2ff46..000000000000 --- a/vendor/golang.org/x/tools/internal/imports/zstdlib.go +++ /dev/null @@ -1,11406 +0,0 @@ -// Copyright 2022 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. - -// Code generated by mkstdlib.go. DO NOT EDIT. - -package imports - -var stdlib = map[string][]string{ - "archive/tar": { - "ErrFieldTooLong", - "ErrHeader", - "ErrInsecurePath", - "ErrWriteAfterClose", - "ErrWriteTooLong", - "FileInfoHeader", - "Format", - "FormatGNU", - "FormatPAX", - "FormatUSTAR", - "FormatUnknown", - "Header", - "NewReader", - "NewWriter", - "Reader", - "TypeBlock", - "TypeChar", - "TypeCont", - "TypeDir", - "TypeFifo", - "TypeGNULongLink", - "TypeGNULongName", - "TypeGNUSparse", - "TypeLink", - "TypeReg", - "TypeRegA", - "TypeSymlink", - "TypeXGlobalHeader", - "TypeXHeader", - "Writer", - }, - "archive/zip": { - "Compressor", - "Decompressor", - "Deflate", - "ErrAlgorithm", - "ErrChecksum", - "ErrFormat", - "ErrInsecurePath", - "File", - "FileHeader", - "FileInfoHeader", - "NewReader", - "NewWriter", - "OpenReader", - "ReadCloser", - "Reader", - "RegisterCompressor", - "RegisterDecompressor", - "Store", - "Writer", - }, - "bufio": { - "ErrAdvanceTooFar", - "ErrBadReadCount", - "ErrBufferFull", - "ErrFinalToken", - "ErrInvalidUnreadByte", - "ErrInvalidUnreadRune", - "ErrNegativeAdvance", - "ErrNegativeCount", - "ErrTooLong", - "MaxScanTokenSize", - "NewReadWriter", - "NewReader", - "NewReaderSize", - "NewScanner", - "NewWriter", - "NewWriterSize", - "ReadWriter", - "Reader", - "ScanBytes", - "ScanLines", - "ScanRunes", - "ScanWords", - "Scanner", - "SplitFunc", - "Writer", - }, - "bytes": { - "Buffer", - "Clone", - "Compare", - "Contains", - "ContainsAny", - "ContainsFunc", - "ContainsRune", - "Count", - "Cut", - "CutPrefix", - "CutSuffix", - "Equal", - "EqualFold", - "ErrTooLarge", - "Fields", - "FieldsFunc", - "HasPrefix", - "HasSuffix", - "Index", - "IndexAny", - "IndexByte", - "IndexFunc", - "IndexRune", - "Join", - "LastIndex", - "LastIndexAny", - "LastIndexByte", - "LastIndexFunc", - "Map", - "MinRead", - "NewBuffer", - "NewBufferString", - "NewReader", - "Reader", - "Repeat", - "Replace", - "ReplaceAll", - "Runes", - "Split", - "SplitAfter", - "SplitAfterN", - "SplitN", - "Title", - "ToLower", - "ToLowerSpecial", - "ToTitle", - "ToTitleSpecial", - "ToUpper", - "ToUpperSpecial", - "ToValidUTF8", - "Trim", - "TrimFunc", - "TrimLeft", - "TrimLeftFunc", - "TrimPrefix", - "TrimRight", - "TrimRightFunc", - "TrimSpace", - "TrimSuffix", - }, - "cmp": { - "Compare", - "Less", - "Or", - "Ordered", - }, - "compress/bzip2": { - "NewReader", - "StructuralError", - }, - "compress/flate": { - "BestCompression", - "BestSpeed", - "CorruptInputError", - "DefaultCompression", - "HuffmanOnly", - "InternalError", - "NewReader", - "NewReaderDict", - "NewWriter", - "NewWriterDict", - "NoCompression", - "ReadError", - "Reader", - "Resetter", - "WriteError", - "Writer", - }, - "compress/gzip": { - "BestCompression", - "BestSpeed", - "DefaultCompression", - "ErrChecksum", - "ErrHeader", - "Header", - "HuffmanOnly", - "NewReader", - "NewWriter", - "NewWriterLevel", - "NoCompression", - "Reader", - "Writer", - }, - "compress/lzw": { - "LSB", - "MSB", - "NewReader", - "NewWriter", - "Order", - "Reader", - "Writer", - }, - "compress/zlib": { - "BestCompression", - "BestSpeed", - "DefaultCompression", - "ErrChecksum", - "ErrDictionary", - "ErrHeader", - "HuffmanOnly", - "NewReader", - "NewReaderDict", - "NewWriter", - "NewWriterLevel", - "NewWriterLevelDict", - "NoCompression", - "Resetter", - "Writer", - }, - "container/heap": { - "Fix", - "Init", - "Interface", - "Pop", - "Push", - "Remove", - }, - "container/list": { - "Element", - "List", - "New", - }, - "container/ring": { - "New", - "Ring", - }, - "context": { - "AfterFunc", - "Background", - "CancelCauseFunc", - "CancelFunc", - "Canceled", - "Cause", - "Context", - "DeadlineExceeded", - "TODO", - "WithCancel", - "WithCancelCause", - "WithDeadline", - "WithDeadlineCause", - "WithTimeout", - "WithTimeoutCause", - "WithValue", - "WithoutCancel", - }, - "crypto": { - "BLAKE2b_256", - "BLAKE2b_384", - "BLAKE2b_512", - "BLAKE2s_256", - "Decrypter", - "DecrypterOpts", - "Hash", - "MD4", - "MD5", - "MD5SHA1", - "PrivateKey", - "PublicKey", - "RIPEMD160", - "RegisterHash", - "SHA1", - "SHA224", - "SHA256", - "SHA384", - "SHA3_224", - "SHA3_256", - "SHA3_384", - "SHA3_512", - "SHA512", - "SHA512_224", - "SHA512_256", - "Signer", - "SignerOpts", - }, - "crypto/aes": { - "BlockSize", - "KeySizeError", - "NewCipher", - }, - "crypto/cipher": { - "AEAD", - "Block", - "BlockMode", - "NewCBCDecrypter", - "NewCBCEncrypter", - "NewCFBDecrypter", - "NewCFBEncrypter", - "NewCTR", - "NewGCM", - "NewGCMWithNonceSize", - "NewGCMWithTagSize", - "NewOFB", - "Stream", - "StreamReader", - "StreamWriter", - }, - "crypto/des": { - "BlockSize", - "KeySizeError", - "NewCipher", - "NewTripleDESCipher", - }, - "crypto/dsa": { - "ErrInvalidPublicKey", - "GenerateKey", - "GenerateParameters", - "L1024N160", - "L2048N224", - "L2048N256", - "L3072N256", - "ParameterSizes", - "Parameters", - "PrivateKey", - "PublicKey", - "Sign", - "Verify", - }, - "crypto/ecdh": { - "Curve", - "P256", - "P384", - "P521", - "PrivateKey", - "PublicKey", - "X25519", - }, - "crypto/ecdsa": { - "GenerateKey", - "PrivateKey", - "PublicKey", - "Sign", - "SignASN1", - "Verify", - "VerifyASN1", - }, - "crypto/ed25519": { - "GenerateKey", - "NewKeyFromSeed", - "Options", - "PrivateKey", - "PrivateKeySize", - "PublicKey", - "PublicKeySize", - "SeedSize", - "Sign", - "SignatureSize", - "Verify", - "VerifyWithOptions", - }, - "crypto/elliptic": { - "Curve", - "CurveParams", - "GenerateKey", - "Marshal", - "MarshalCompressed", - "P224", - "P256", - "P384", - "P521", - "Unmarshal", - "UnmarshalCompressed", - }, - "crypto/hmac": { - "Equal", - "New", - }, - "crypto/md5": { - "BlockSize", - "New", - "Size", - "Sum", - }, - "crypto/rand": { - "Int", - "Prime", - "Read", - "Reader", - }, - "crypto/rc4": { - "Cipher", - "KeySizeError", - "NewCipher", - }, - "crypto/rsa": { - "CRTValue", - "DecryptOAEP", - "DecryptPKCS1v15", - "DecryptPKCS1v15SessionKey", - "EncryptOAEP", - "EncryptPKCS1v15", - "ErrDecryption", - "ErrMessageTooLong", - "ErrVerification", - "GenerateKey", - "GenerateMultiPrimeKey", - "OAEPOptions", - "PKCS1v15DecryptOptions", - "PSSOptions", - "PSSSaltLengthAuto", - "PSSSaltLengthEqualsHash", - "PrecomputedValues", - "PrivateKey", - "PublicKey", - "SignPKCS1v15", - "SignPSS", - "VerifyPKCS1v15", - "VerifyPSS", - }, - "crypto/sha1": { - "BlockSize", - "New", - "Size", - "Sum", - }, - "crypto/sha256": { - "BlockSize", - "New", - "New224", - "Size", - "Size224", - "Sum224", - "Sum256", - }, - "crypto/sha512": { - "BlockSize", - "New", - "New384", - "New512_224", - "New512_256", - "Size", - "Size224", - "Size256", - "Size384", - "Sum384", - "Sum512", - "Sum512_224", - "Sum512_256", - }, - "crypto/subtle": { - "ConstantTimeByteEq", - "ConstantTimeCompare", - "ConstantTimeCopy", - "ConstantTimeEq", - "ConstantTimeLessOrEq", - "ConstantTimeSelect", - "XORBytes", - }, - "crypto/tls": { - "AlertError", - "Certificate", - "CertificateRequestInfo", - "CertificateVerificationError", - "CipherSuite", - "CipherSuiteName", - "CipherSuites", - "Client", - "ClientAuthType", - "ClientHelloInfo", - "ClientSessionCache", - "ClientSessionState", - "Config", - "Conn", - "ConnectionState", - "CurveID", - "CurveP256", - "CurveP384", - "CurveP521", - "Dial", - "DialWithDialer", - "Dialer", - "ECDSAWithP256AndSHA256", - "ECDSAWithP384AndSHA384", - "ECDSAWithP521AndSHA512", - "ECDSAWithSHA1", - "Ed25519", - "InsecureCipherSuites", - "Listen", - "LoadX509KeyPair", - "NewLRUClientSessionCache", - "NewListener", - "NewResumptionState", - "NoClientCert", - "PKCS1WithSHA1", - "PKCS1WithSHA256", - "PKCS1WithSHA384", - "PKCS1WithSHA512", - "PSSWithSHA256", - "PSSWithSHA384", - "PSSWithSHA512", - "ParseSessionState", - "QUICClient", - "QUICConfig", - "QUICConn", - "QUICEncryptionLevel", - "QUICEncryptionLevelApplication", - "QUICEncryptionLevelEarly", - "QUICEncryptionLevelHandshake", - "QUICEncryptionLevelInitial", - "QUICEvent", - "QUICEventKind", - "QUICHandshakeDone", - "QUICNoEvent", - "QUICRejectedEarlyData", - "QUICServer", - "QUICSessionTicketOptions", - "QUICSetReadSecret", - "QUICSetWriteSecret", - "QUICTransportParameters", - "QUICTransportParametersRequired", - "QUICWriteData", - "RecordHeaderError", - "RenegotiateFreelyAsClient", - "RenegotiateNever", - "RenegotiateOnceAsClient", - "RenegotiationSupport", - "RequestClientCert", - "RequireAndVerifyClientCert", - "RequireAnyClientCert", - "Server", - "SessionState", - "SignatureScheme", - "TLS_AES_128_GCM_SHA256", - "TLS_AES_256_GCM_SHA384", - "TLS_CHACHA20_POLY1305_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", - "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", - "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", - "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", - "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305", - "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", - "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA", - "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA", - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", - "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", - "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", - "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", - "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", - "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256", - "TLS_ECDHE_RSA_WITH_RC4_128_SHA", - "TLS_FALLBACK_SCSV", - "TLS_RSA_WITH_3DES_EDE_CBC_SHA", - "TLS_RSA_WITH_AES_128_CBC_SHA", - "TLS_RSA_WITH_AES_128_CBC_SHA256", - "TLS_RSA_WITH_AES_128_GCM_SHA256", - "TLS_RSA_WITH_AES_256_CBC_SHA", - "TLS_RSA_WITH_AES_256_GCM_SHA384", - "TLS_RSA_WITH_RC4_128_SHA", - "VerifyClientCertIfGiven", - "VersionName", - "VersionSSL30", - "VersionTLS10", - "VersionTLS11", - "VersionTLS12", - "VersionTLS13", - "X25519", - "X509KeyPair", - }, - "crypto/x509": { - "CANotAuthorizedForExtKeyUsage", - "CANotAuthorizedForThisName", - "CertPool", - "Certificate", - "CertificateInvalidError", - "CertificateRequest", - "ConstraintViolationError", - "CreateCertificate", - "CreateCertificateRequest", - "CreateRevocationList", - "DSA", - "DSAWithSHA1", - "DSAWithSHA256", - "DecryptPEMBlock", - "ECDSA", - "ECDSAWithSHA1", - "ECDSAWithSHA256", - "ECDSAWithSHA384", - "ECDSAWithSHA512", - "Ed25519", - "EncryptPEMBlock", - "ErrUnsupportedAlgorithm", - "Expired", - "ExtKeyUsage", - "ExtKeyUsageAny", - "ExtKeyUsageClientAuth", - "ExtKeyUsageCodeSigning", - "ExtKeyUsageEmailProtection", - "ExtKeyUsageIPSECEndSystem", - "ExtKeyUsageIPSECTunnel", - "ExtKeyUsageIPSECUser", - "ExtKeyUsageMicrosoftCommercialCodeSigning", - "ExtKeyUsageMicrosoftKernelCodeSigning", - "ExtKeyUsageMicrosoftServerGatedCrypto", - "ExtKeyUsageNetscapeServerGatedCrypto", - "ExtKeyUsageOCSPSigning", - "ExtKeyUsageServerAuth", - "ExtKeyUsageTimeStamping", - "HostnameError", - "IncompatibleUsage", - "IncorrectPasswordError", - "InsecureAlgorithmError", - "InvalidReason", - "IsEncryptedPEMBlock", - "KeyUsage", - "KeyUsageCRLSign", - "KeyUsageCertSign", - "KeyUsageContentCommitment", - "KeyUsageDataEncipherment", - "KeyUsageDecipherOnly", - "KeyUsageDigitalSignature", - "KeyUsageEncipherOnly", - "KeyUsageKeyAgreement", - "KeyUsageKeyEncipherment", - "MD2WithRSA", - "MD5WithRSA", - "MarshalECPrivateKey", - "MarshalPKCS1PrivateKey", - "MarshalPKCS1PublicKey", - "MarshalPKCS8PrivateKey", - "MarshalPKIXPublicKey", - "NameConstraintsWithoutSANs", - "NameMismatch", - "NewCertPool", - "NotAuthorizedToSign", - "OID", - "OIDFromInts", - "PEMCipher", - "PEMCipher3DES", - "PEMCipherAES128", - "PEMCipherAES192", - "PEMCipherAES256", - "PEMCipherDES", - "ParseCRL", - "ParseCertificate", - "ParseCertificateRequest", - "ParseCertificates", - "ParseDERCRL", - "ParseECPrivateKey", - "ParsePKCS1PrivateKey", - "ParsePKCS1PublicKey", - "ParsePKCS8PrivateKey", - "ParsePKIXPublicKey", - "ParseRevocationList", - "PublicKeyAlgorithm", - "PureEd25519", - "RSA", - "RevocationList", - "RevocationListEntry", - "SHA1WithRSA", - "SHA256WithRSA", - "SHA256WithRSAPSS", - "SHA384WithRSA", - "SHA384WithRSAPSS", - "SHA512WithRSA", - "SHA512WithRSAPSS", - "SetFallbackRoots", - "SignatureAlgorithm", - "SystemCertPool", - "SystemRootsError", - "TooManyConstraints", - "TooManyIntermediates", - "UnconstrainedName", - "UnhandledCriticalExtension", - "UnknownAuthorityError", - "UnknownPublicKeyAlgorithm", - "UnknownSignatureAlgorithm", - "VerifyOptions", - }, - "crypto/x509/pkix": { - "AlgorithmIdentifier", - "AttributeTypeAndValue", - "AttributeTypeAndValueSET", - "CertificateList", - "Extension", - "Name", - "RDNSequence", - "RelativeDistinguishedNameSET", - "RevokedCertificate", - "TBSCertificateList", - }, - "database/sql": { - "ColumnType", - "Conn", - "DB", - "DBStats", - "Drivers", - "ErrConnDone", - "ErrNoRows", - "ErrTxDone", - "IsolationLevel", - "LevelDefault", - "LevelLinearizable", - "LevelReadCommitted", - "LevelReadUncommitted", - "LevelRepeatableRead", - "LevelSerializable", - "LevelSnapshot", - "LevelWriteCommitted", - "Named", - "NamedArg", - "Null", - "NullBool", - "NullByte", - "NullFloat64", - "NullInt16", - "NullInt32", - "NullInt64", - "NullString", - "NullTime", - "Open", - "OpenDB", - "Out", - "RawBytes", - "Register", - "Result", - "Row", - "Rows", - "Scanner", - "Stmt", - "Tx", - "TxOptions", - }, - "database/sql/driver": { - "Bool", - "ColumnConverter", - "Conn", - "ConnBeginTx", - "ConnPrepareContext", - "Connector", - "DefaultParameterConverter", - "Driver", - "DriverContext", - "ErrBadConn", - "ErrRemoveArgument", - "ErrSkip", - "Execer", - "ExecerContext", - "Int32", - "IsScanValue", - "IsValue", - "IsolationLevel", - "NamedValue", - "NamedValueChecker", - "NotNull", - "Null", - "Pinger", - "Queryer", - "QueryerContext", - "Result", - "ResultNoRows", - "Rows", - "RowsAffected", - "RowsColumnTypeDatabaseTypeName", - "RowsColumnTypeLength", - "RowsColumnTypeNullable", - "RowsColumnTypePrecisionScale", - "RowsColumnTypeScanType", - "RowsNextResultSet", - "SessionResetter", - "Stmt", - "StmtExecContext", - "StmtQueryContext", - "String", - "Tx", - "TxOptions", - "Validator", - "Value", - "ValueConverter", - "Valuer", - }, - "debug/buildinfo": { - "BuildInfo", - "Read", - "ReadFile", - }, - "debug/dwarf": { - "AddrType", - "ArrayType", - "Attr", - "AttrAbstractOrigin", - "AttrAccessibility", - "AttrAddrBase", - "AttrAddrClass", - "AttrAlignment", - "AttrAllocated", - "AttrArtificial", - "AttrAssociated", - "AttrBaseTypes", - "AttrBinaryScale", - "AttrBitOffset", - "AttrBitSize", - "AttrByteSize", - "AttrCallAllCalls", - "AttrCallAllSourceCalls", - "AttrCallAllTailCalls", - "AttrCallColumn", - "AttrCallDataLocation", - "AttrCallDataValue", - "AttrCallFile", - "AttrCallLine", - "AttrCallOrigin", - "AttrCallPC", - "AttrCallParameter", - "AttrCallReturnPC", - "AttrCallTailCall", - "AttrCallTarget", - "AttrCallTargetClobbered", - "AttrCallValue", - "AttrCalling", - "AttrCommonRef", - "AttrCompDir", - "AttrConstExpr", - "AttrConstValue", - "AttrContainingType", - "AttrCount", - "AttrDataBitOffset", - "AttrDataLocation", - "AttrDataMemberLoc", - "AttrDecimalScale", - "AttrDecimalSign", - "AttrDeclColumn", - "AttrDeclFile", - "AttrDeclLine", - "AttrDeclaration", - "AttrDefaultValue", - "AttrDefaulted", - "AttrDeleted", - "AttrDescription", - "AttrDigitCount", - "AttrDiscr", - "AttrDiscrList", - "AttrDiscrValue", - "AttrDwoName", - "AttrElemental", - "AttrEncoding", - "AttrEndianity", - "AttrEntrypc", - "AttrEnumClass", - "AttrExplicit", - "AttrExportSymbols", - "AttrExtension", - "AttrExternal", - "AttrFrameBase", - "AttrFriend", - "AttrHighpc", - "AttrIdentifierCase", - "AttrImport", - "AttrInline", - "AttrIsOptional", - "AttrLanguage", - "AttrLinkageName", - "AttrLocation", - "AttrLoclistsBase", - "AttrLowerBound", - "AttrLowpc", - "AttrMacroInfo", - "AttrMacros", - "AttrMainSubprogram", - "AttrMutable", - "AttrName", - "AttrNamelistItem", - "AttrNoreturn", - "AttrObjectPointer", - "AttrOrdering", - "AttrPictureString", - "AttrPriority", - "AttrProducer", - "AttrPrototyped", - "AttrPure", - "AttrRanges", - "AttrRank", - "AttrRecursive", - "AttrReference", - "AttrReturnAddr", - "AttrRnglistsBase", - "AttrRvalueReference", - "AttrSegment", - "AttrSibling", - "AttrSignature", - "AttrSmall", - "AttrSpecification", - "AttrStartScope", - "AttrStaticLink", - "AttrStmtList", - "AttrStrOffsetsBase", - "AttrStride", - "AttrStrideSize", - "AttrStringLength", - "AttrStringLengthBitSize", - "AttrStringLengthByteSize", - "AttrThreadsScaled", - "AttrTrampoline", - "AttrType", - "AttrUpperBound", - "AttrUseLocation", - "AttrUseUTF8", - "AttrVarParam", - "AttrVirtuality", - "AttrVisibility", - "AttrVtableElemLoc", - "BasicType", - "BoolType", - "CharType", - "Class", - "ClassAddrPtr", - "ClassAddress", - "ClassBlock", - "ClassConstant", - "ClassExprLoc", - "ClassFlag", - "ClassLinePtr", - "ClassLocList", - "ClassLocListPtr", - "ClassMacPtr", - "ClassRangeListPtr", - "ClassReference", - "ClassReferenceAlt", - "ClassReferenceSig", - "ClassRngList", - "ClassRngListsPtr", - "ClassStrOffsetsPtr", - "ClassString", - "ClassStringAlt", - "ClassUnknown", - "CommonType", - "ComplexType", - "Data", - "DecodeError", - "DotDotDotType", - "Entry", - "EnumType", - "EnumValue", - "ErrUnknownPC", - "Field", - "FloatType", - "FuncType", - "IntType", - "LineEntry", - "LineFile", - "LineReader", - "LineReaderPos", - "New", - "Offset", - "PtrType", - "QualType", - "Reader", - "StructField", - "StructType", - "Tag", - "TagAccessDeclaration", - "TagArrayType", - "TagAtomicType", - "TagBaseType", - "TagCallSite", - "TagCallSiteParameter", - "TagCatchDwarfBlock", - "TagClassType", - "TagCoarrayType", - "TagCommonDwarfBlock", - "TagCommonInclusion", - "TagCompileUnit", - "TagCondition", - "TagConstType", - "TagConstant", - "TagDwarfProcedure", - "TagDynamicType", - "TagEntryPoint", - "TagEnumerationType", - "TagEnumerator", - "TagFileType", - "TagFormalParameter", - "TagFriend", - "TagGenericSubrange", - "TagImmutableType", - "TagImportedDeclaration", - "TagImportedModule", - "TagImportedUnit", - "TagInheritance", - "TagInlinedSubroutine", - "TagInterfaceType", - "TagLabel", - "TagLexDwarfBlock", - "TagMember", - "TagModule", - "TagMutableType", - "TagNamelist", - "TagNamelistItem", - "TagNamespace", - "TagPackedType", - "TagPartialUnit", - "TagPointerType", - "TagPtrToMemberType", - "TagReferenceType", - "TagRestrictType", - "TagRvalueReferenceType", - "TagSetType", - "TagSharedType", - "TagSkeletonUnit", - "TagStringType", - "TagStructType", - "TagSubprogram", - "TagSubrangeType", - "TagSubroutineType", - "TagTemplateAlias", - "TagTemplateTypeParameter", - "TagTemplateValueParameter", - "TagThrownType", - "TagTryDwarfBlock", - "TagTypeUnit", - "TagTypedef", - "TagUnionType", - "TagUnspecifiedParameters", - "TagUnspecifiedType", - "TagVariable", - "TagVariant", - "TagVariantPart", - "TagVolatileType", - "TagWithStmt", - "Type", - "TypedefType", - "UcharType", - "UintType", - "UnspecifiedType", - "UnsupportedType", - "VoidType", - }, - "debug/elf": { - "ARM_MAGIC_TRAMP_NUMBER", - "COMPRESS_HIOS", - "COMPRESS_HIPROC", - "COMPRESS_LOOS", - "COMPRESS_LOPROC", - "COMPRESS_ZLIB", - "COMPRESS_ZSTD", - "Chdr32", - "Chdr64", - "Class", - "CompressionType", - "DF_1_CONFALT", - "DF_1_DIRECT", - "DF_1_DISPRELDNE", - "DF_1_DISPRELPND", - "DF_1_EDITED", - "DF_1_ENDFILTEE", - "DF_1_GLOBAL", - "DF_1_GLOBAUDIT", - "DF_1_GROUP", - "DF_1_IGNMULDEF", - "DF_1_INITFIRST", - "DF_1_INTERPOSE", - "DF_1_KMOD", - "DF_1_LOADFLTR", - "DF_1_NOCOMMON", - "DF_1_NODEFLIB", - "DF_1_NODELETE", - "DF_1_NODIRECT", - "DF_1_NODUMP", - "DF_1_NOHDR", - "DF_1_NOKSYMS", - "DF_1_NOOPEN", - "DF_1_NORELOC", - "DF_1_NOW", - "DF_1_ORIGIN", - "DF_1_PIE", - "DF_1_SINGLETON", - "DF_1_STUB", - "DF_1_SYMINTPOSE", - "DF_1_TRANS", - "DF_1_WEAKFILTER", - "DF_BIND_NOW", - "DF_ORIGIN", - "DF_STATIC_TLS", - "DF_SYMBOLIC", - "DF_TEXTREL", - "DT_ADDRRNGHI", - "DT_ADDRRNGLO", - "DT_AUDIT", - "DT_AUXILIARY", - "DT_BIND_NOW", - "DT_CHECKSUM", - "DT_CONFIG", - "DT_DEBUG", - "DT_DEPAUDIT", - "DT_ENCODING", - "DT_FEATURE", - "DT_FILTER", - "DT_FINI", - "DT_FINI_ARRAY", - "DT_FINI_ARRAYSZ", - "DT_FLAGS", - "DT_FLAGS_1", - "DT_GNU_CONFLICT", - "DT_GNU_CONFLICTSZ", - "DT_GNU_HASH", - "DT_GNU_LIBLIST", - "DT_GNU_LIBLISTSZ", - "DT_GNU_PRELINKED", - "DT_HASH", - "DT_HIOS", - "DT_HIPROC", - "DT_INIT", - "DT_INIT_ARRAY", - "DT_INIT_ARRAYSZ", - "DT_JMPREL", - "DT_LOOS", - "DT_LOPROC", - "DT_MIPS_AUX_DYNAMIC", - "DT_MIPS_BASE_ADDRESS", - "DT_MIPS_COMPACT_SIZE", - "DT_MIPS_CONFLICT", - "DT_MIPS_CONFLICTNO", - "DT_MIPS_CXX_FLAGS", - "DT_MIPS_DELTA_CLASS", - "DT_MIPS_DELTA_CLASSSYM", - "DT_MIPS_DELTA_CLASSSYM_NO", - "DT_MIPS_DELTA_CLASS_NO", - "DT_MIPS_DELTA_INSTANCE", - "DT_MIPS_DELTA_INSTANCE_NO", - "DT_MIPS_DELTA_RELOC", - "DT_MIPS_DELTA_RELOC_NO", - "DT_MIPS_DELTA_SYM", - "DT_MIPS_DELTA_SYM_NO", - "DT_MIPS_DYNSTR_ALIGN", - "DT_MIPS_FLAGS", - "DT_MIPS_GOTSYM", - "DT_MIPS_GP_VALUE", - "DT_MIPS_HIDDEN_GOTIDX", - "DT_MIPS_HIPAGENO", - "DT_MIPS_ICHECKSUM", - "DT_MIPS_INTERFACE", - "DT_MIPS_INTERFACE_SIZE", - "DT_MIPS_IVERSION", - "DT_MIPS_LIBLIST", - "DT_MIPS_LIBLISTNO", - "DT_MIPS_LOCALPAGE_GOTIDX", - "DT_MIPS_LOCAL_GOTIDX", - "DT_MIPS_LOCAL_GOTNO", - "DT_MIPS_MSYM", - "DT_MIPS_OPTIONS", - "DT_MIPS_PERF_SUFFIX", - "DT_MIPS_PIXIE_INIT", - "DT_MIPS_PLTGOT", - "DT_MIPS_PROTECTED_GOTIDX", - "DT_MIPS_RLD_MAP", - "DT_MIPS_RLD_MAP_REL", - "DT_MIPS_RLD_TEXT_RESOLVE_ADDR", - "DT_MIPS_RLD_VERSION", - "DT_MIPS_RWPLT", - "DT_MIPS_SYMBOL_LIB", - "DT_MIPS_SYMTABNO", - "DT_MIPS_TIME_STAMP", - "DT_MIPS_UNREFEXTNO", - "DT_MOVEENT", - "DT_MOVESZ", - "DT_MOVETAB", - "DT_NEEDED", - "DT_NULL", - "DT_PLTGOT", - "DT_PLTPAD", - "DT_PLTPADSZ", - "DT_PLTREL", - "DT_PLTRELSZ", - "DT_POSFLAG_1", - "DT_PPC64_GLINK", - "DT_PPC64_OPD", - "DT_PPC64_OPDSZ", - "DT_PPC64_OPT", - "DT_PPC_GOT", - "DT_PPC_OPT", - "DT_PREINIT_ARRAY", - "DT_PREINIT_ARRAYSZ", - "DT_REL", - "DT_RELA", - "DT_RELACOUNT", - "DT_RELAENT", - "DT_RELASZ", - "DT_RELCOUNT", - "DT_RELENT", - "DT_RELSZ", - "DT_RPATH", - "DT_RUNPATH", - "DT_SONAME", - "DT_SPARC_REGISTER", - "DT_STRSZ", - "DT_STRTAB", - "DT_SYMBOLIC", - "DT_SYMENT", - "DT_SYMINENT", - "DT_SYMINFO", - "DT_SYMINSZ", - "DT_SYMTAB", - "DT_SYMTAB_SHNDX", - "DT_TEXTREL", - "DT_TLSDESC_GOT", - "DT_TLSDESC_PLT", - "DT_USED", - "DT_VALRNGHI", - "DT_VALRNGLO", - "DT_VERDEF", - "DT_VERDEFNUM", - "DT_VERNEED", - "DT_VERNEEDNUM", - "DT_VERSYM", - "Data", - "Dyn32", - "Dyn64", - "DynFlag", - "DynFlag1", - "DynTag", - "EI_ABIVERSION", - "EI_CLASS", - "EI_DATA", - "EI_NIDENT", - "EI_OSABI", - "EI_PAD", - "EI_VERSION", - "ELFCLASS32", - "ELFCLASS64", - "ELFCLASSNONE", - "ELFDATA2LSB", - "ELFDATA2MSB", - "ELFDATANONE", - "ELFMAG", - "ELFOSABI_86OPEN", - "ELFOSABI_AIX", - "ELFOSABI_ARM", - "ELFOSABI_AROS", - "ELFOSABI_CLOUDABI", - "ELFOSABI_FENIXOS", - "ELFOSABI_FREEBSD", - "ELFOSABI_HPUX", - "ELFOSABI_HURD", - "ELFOSABI_IRIX", - "ELFOSABI_LINUX", - "ELFOSABI_MODESTO", - "ELFOSABI_NETBSD", - "ELFOSABI_NONE", - "ELFOSABI_NSK", - "ELFOSABI_OPENBSD", - "ELFOSABI_OPENVMS", - "ELFOSABI_SOLARIS", - "ELFOSABI_STANDALONE", - "ELFOSABI_TRU64", - "EM_386", - "EM_486", - "EM_56800EX", - "EM_68HC05", - "EM_68HC08", - "EM_68HC11", - "EM_68HC12", - "EM_68HC16", - "EM_68K", - "EM_78KOR", - "EM_8051", - "EM_860", - "EM_88K", - "EM_960", - "EM_AARCH64", - "EM_ALPHA", - "EM_ALPHA_STD", - "EM_ALTERA_NIOS2", - "EM_AMDGPU", - "EM_ARC", - "EM_ARCA", - "EM_ARC_COMPACT", - "EM_ARC_COMPACT2", - "EM_ARM", - "EM_AVR", - "EM_AVR32", - "EM_BA1", - "EM_BA2", - "EM_BLACKFIN", - "EM_BPF", - "EM_C166", - "EM_CDP", - "EM_CE", - "EM_CLOUDSHIELD", - "EM_COGE", - "EM_COLDFIRE", - "EM_COOL", - "EM_COREA_1ST", - "EM_COREA_2ND", - "EM_CR", - "EM_CR16", - "EM_CRAYNV2", - "EM_CRIS", - "EM_CRX", - "EM_CSR_KALIMBA", - "EM_CUDA", - "EM_CYPRESS_M8C", - "EM_D10V", - "EM_D30V", - "EM_DSP24", - "EM_DSPIC30F", - "EM_DXP", - "EM_ECOG1", - "EM_ECOG16", - "EM_ECOG1X", - "EM_ECOG2", - "EM_ETPU", - "EM_EXCESS", - "EM_F2MC16", - "EM_FIREPATH", - "EM_FR20", - "EM_FR30", - "EM_FT32", - "EM_FX66", - "EM_H8S", - "EM_H8_300", - "EM_H8_300H", - "EM_H8_500", - "EM_HUANY", - "EM_IA_64", - "EM_INTEL205", - "EM_INTEL206", - "EM_INTEL207", - "EM_INTEL208", - "EM_INTEL209", - "EM_IP2K", - "EM_JAVELIN", - "EM_K10M", - "EM_KM32", - "EM_KMX16", - "EM_KMX32", - "EM_KMX8", - "EM_KVARC", - "EM_L10M", - "EM_LANAI", - "EM_LATTICEMICO32", - "EM_LOONGARCH", - "EM_M16C", - "EM_M32", - "EM_M32C", - "EM_M32R", - "EM_MANIK", - "EM_MAX", - "EM_MAXQ30", - "EM_MCHP_PIC", - "EM_MCST_ELBRUS", - "EM_ME16", - "EM_METAG", - "EM_MICROBLAZE", - "EM_MIPS", - "EM_MIPS_RS3_LE", - "EM_MIPS_RS4_BE", - "EM_MIPS_X", - "EM_MMA", - "EM_MMDSP_PLUS", - "EM_MMIX", - "EM_MN10200", - "EM_MN10300", - "EM_MOXIE", - "EM_MSP430", - "EM_NCPU", - "EM_NDR1", - "EM_NDS32", - "EM_NONE", - "EM_NORC", - "EM_NS32K", - "EM_OPEN8", - "EM_OPENRISC", - "EM_PARISC", - "EM_PCP", - "EM_PDP10", - "EM_PDP11", - "EM_PDSP", - "EM_PJ", - "EM_PPC", - "EM_PPC64", - "EM_PRISM", - "EM_QDSP6", - "EM_R32C", - "EM_RCE", - "EM_RH32", - "EM_RISCV", - "EM_RL78", - "EM_RS08", - "EM_RX", - "EM_S370", - "EM_S390", - "EM_SCORE7", - "EM_SEP", - "EM_SE_C17", - "EM_SE_C33", - "EM_SH", - "EM_SHARC", - "EM_SLE9X", - "EM_SNP1K", - "EM_SPARC", - "EM_SPARC32PLUS", - "EM_SPARCV9", - "EM_ST100", - "EM_ST19", - "EM_ST200", - "EM_ST7", - "EM_ST9PLUS", - "EM_STARCORE", - "EM_STM8", - "EM_STXP7X", - "EM_SVX", - "EM_TILE64", - "EM_TILEGX", - "EM_TILEPRO", - "EM_TINYJ", - "EM_TI_ARP32", - "EM_TI_C2000", - "EM_TI_C5500", - "EM_TI_C6000", - "EM_TI_PRU", - "EM_TMM_GPP", - "EM_TPC", - "EM_TRICORE", - "EM_TRIMEDIA", - "EM_TSK3000", - "EM_UNICORE", - "EM_V800", - "EM_V850", - "EM_VAX", - "EM_VIDEOCORE", - "EM_VIDEOCORE3", - "EM_VIDEOCORE5", - "EM_VISIUM", - "EM_VPP500", - "EM_X86_64", - "EM_XCORE", - "EM_XGATE", - "EM_XIMO16", - "EM_XTENSA", - "EM_Z80", - "EM_ZSP", - "ET_CORE", - "ET_DYN", - "ET_EXEC", - "ET_HIOS", - "ET_HIPROC", - "ET_LOOS", - "ET_LOPROC", - "ET_NONE", - "ET_REL", - "EV_CURRENT", - "EV_NONE", - "ErrNoSymbols", - "File", - "FileHeader", - "FormatError", - "Header32", - "Header64", - "ImportedSymbol", - "Machine", - "NT_FPREGSET", - "NT_PRPSINFO", - "NT_PRSTATUS", - "NType", - "NewFile", - "OSABI", - "Open", - "PF_MASKOS", - "PF_MASKPROC", - "PF_R", - "PF_W", - "PF_X", - "PT_AARCH64_ARCHEXT", - "PT_AARCH64_UNWIND", - "PT_ARM_ARCHEXT", - "PT_ARM_EXIDX", - "PT_DYNAMIC", - "PT_GNU_EH_FRAME", - "PT_GNU_MBIND_HI", - "PT_GNU_MBIND_LO", - "PT_GNU_PROPERTY", - "PT_GNU_RELRO", - "PT_GNU_STACK", - "PT_HIOS", - "PT_HIPROC", - "PT_INTERP", - "PT_LOAD", - "PT_LOOS", - "PT_LOPROC", - "PT_MIPS_ABIFLAGS", - "PT_MIPS_OPTIONS", - "PT_MIPS_REGINFO", - "PT_MIPS_RTPROC", - "PT_NOTE", - "PT_NULL", - "PT_OPENBSD_BOOTDATA", - "PT_OPENBSD_RANDOMIZE", - "PT_OPENBSD_WXNEEDED", - "PT_PAX_FLAGS", - "PT_PHDR", - "PT_S390_PGSTE", - "PT_SHLIB", - "PT_SUNWSTACK", - "PT_SUNW_EH_FRAME", - "PT_TLS", - "Prog", - "Prog32", - "Prog64", - "ProgFlag", - "ProgHeader", - "ProgType", - "R_386", - "R_386_16", - "R_386_32", - "R_386_32PLT", - "R_386_8", - "R_386_COPY", - "R_386_GLOB_DAT", - "R_386_GOT32", - "R_386_GOT32X", - "R_386_GOTOFF", - "R_386_GOTPC", - "R_386_IRELATIVE", - "R_386_JMP_SLOT", - "R_386_NONE", - "R_386_PC16", - "R_386_PC32", - "R_386_PC8", - "R_386_PLT32", - "R_386_RELATIVE", - "R_386_SIZE32", - "R_386_TLS_DESC", - "R_386_TLS_DESC_CALL", - "R_386_TLS_DTPMOD32", - "R_386_TLS_DTPOFF32", - "R_386_TLS_GD", - "R_386_TLS_GD_32", - "R_386_TLS_GD_CALL", - "R_386_TLS_GD_POP", - "R_386_TLS_GD_PUSH", - "R_386_TLS_GOTDESC", - "R_386_TLS_GOTIE", - "R_386_TLS_IE", - "R_386_TLS_IE_32", - "R_386_TLS_LDM", - "R_386_TLS_LDM_32", - "R_386_TLS_LDM_CALL", - "R_386_TLS_LDM_POP", - "R_386_TLS_LDM_PUSH", - "R_386_TLS_LDO_32", - "R_386_TLS_LE", - "R_386_TLS_LE_32", - "R_386_TLS_TPOFF", - "R_386_TLS_TPOFF32", - "R_390", - "R_390_12", - "R_390_16", - "R_390_20", - "R_390_32", - "R_390_64", - "R_390_8", - "R_390_COPY", - "R_390_GLOB_DAT", - "R_390_GOT12", - "R_390_GOT16", - "R_390_GOT20", - "R_390_GOT32", - "R_390_GOT64", - "R_390_GOTENT", - "R_390_GOTOFF", - "R_390_GOTOFF16", - "R_390_GOTOFF64", - "R_390_GOTPC", - "R_390_GOTPCDBL", - "R_390_GOTPLT12", - "R_390_GOTPLT16", - "R_390_GOTPLT20", - "R_390_GOTPLT32", - "R_390_GOTPLT64", - "R_390_GOTPLTENT", - "R_390_GOTPLTOFF16", - "R_390_GOTPLTOFF32", - "R_390_GOTPLTOFF64", - "R_390_JMP_SLOT", - "R_390_NONE", - "R_390_PC16", - "R_390_PC16DBL", - "R_390_PC32", - "R_390_PC32DBL", - "R_390_PC64", - "R_390_PLT16DBL", - "R_390_PLT32", - "R_390_PLT32DBL", - "R_390_PLT64", - "R_390_RELATIVE", - "R_390_TLS_DTPMOD", - "R_390_TLS_DTPOFF", - "R_390_TLS_GD32", - "R_390_TLS_GD64", - "R_390_TLS_GDCALL", - "R_390_TLS_GOTIE12", - "R_390_TLS_GOTIE20", - "R_390_TLS_GOTIE32", - "R_390_TLS_GOTIE64", - "R_390_TLS_IE32", - "R_390_TLS_IE64", - "R_390_TLS_IEENT", - "R_390_TLS_LDCALL", - "R_390_TLS_LDM32", - "R_390_TLS_LDM64", - "R_390_TLS_LDO32", - "R_390_TLS_LDO64", - "R_390_TLS_LE32", - "R_390_TLS_LE64", - "R_390_TLS_LOAD", - "R_390_TLS_TPOFF", - "R_AARCH64", - "R_AARCH64_ABS16", - "R_AARCH64_ABS32", - "R_AARCH64_ABS64", - "R_AARCH64_ADD_ABS_LO12_NC", - "R_AARCH64_ADR_GOT_PAGE", - "R_AARCH64_ADR_PREL_LO21", - "R_AARCH64_ADR_PREL_PG_HI21", - "R_AARCH64_ADR_PREL_PG_HI21_NC", - "R_AARCH64_CALL26", - "R_AARCH64_CONDBR19", - "R_AARCH64_COPY", - "R_AARCH64_GLOB_DAT", - "R_AARCH64_GOT_LD_PREL19", - "R_AARCH64_IRELATIVE", - "R_AARCH64_JUMP26", - "R_AARCH64_JUMP_SLOT", - "R_AARCH64_LD64_GOTOFF_LO15", - "R_AARCH64_LD64_GOTPAGE_LO15", - "R_AARCH64_LD64_GOT_LO12_NC", - "R_AARCH64_LDST128_ABS_LO12_NC", - "R_AARCH64_LDST16_ABS_LO12_NC", - "R_AARCH64_LDST32_ABS_LO12_NC", - "R_AARCH64_LDST64_ABS_LO12_NC", - "R_AARCH64_LDST8_ABS_LO12_NC", - "R_AARCH64_LD_PREL_LO19", - "R_AARCH64_MOVW_SABS_G0", - "R_AARCH64_MOVW_SABS_G1", - "R_AARCH64_MOVW_SABS_G2", - "R_AARCH64_MOVW_UABS_G0", - "R_AARCH64_MOVW_UABS_G0_NC", - "R_AARCH64_MOVW_UABS_G1", - "R_AARCH64_MOVW_UABS_G1_NC", - "R_AARCH64_MOVW_UABS_G2", - "R_AARCH64_MOVW_UABS_G2_NC", - "R_AARCH64_MOVW_UABS_G3", - "R_AARCH64_NONE", - "R_AARCH64_NULL", - "R_AARCH64_P32_ABS16", - "R_AARCH64_P32_ABS32", - "R_AARCH64_P32_ADD_ABS_LO12_NC", - "R_AARCH64_P32_ADR_GOT_PAGE", - "R_AARCH64_P32_ADR_PREL_LO21", - "R_AARCH64_P32_ADR_PREL_PG_HI21", - "R_AARCH64_P32_CALL26", - "R_AARCH64_P32_CONDBR19", - "R_AARCH64_P32_COPY", - "R_AARCH64_P32_GLOB_DAT", - "R_AARCH64_P32_GOT_LD_PREL19", - "R_AARCH64_P32_IRELATIVE", - "R_AARCH64_P32_JUMP26", - "R_AARCH64_P32_JUMP_SLOT", - "R_AARCH64_P32_LD32_GOT_LO12_NC", - "R_AARCH64_P32_LDST128_ABS_LO12_NC", - "R_AARCH64_P32_LDST16_ABS_LO12_NC", - "R_AARCH64_P32_LDST32_ABS_LO12_NC", - "R_AARCH64_P32_LDST64_ABS_LO12_NC", - "R_AARCH64_P32_LDST8_ABS_LO12_NC", - "R_AARCH64_P32_LD_PREL_LO19", - "R_AARCH64_P32_MOVW_SABS_G0", - "R_AARCH64_P32_MOVW_UABS_G0", - "R_AARCH64_P32_MOVW_UABS_G0_NC", - "R_AARCH64_P32_MOVW_UABS_G1", - "R_AARCH64_P32_PREL16", - "R_AARCH64_P32_PREL32", - "R_AARCH64_P32_RELATIVE", - "R_AARCH64_P32_TLSDESC", - "R_AARCH64_P32_TLSDESC_ADD_LO12_NC", - "R_AARCH64_P32_TLSDESC_ADR_PAGE21", - "R_AARCH64_P32_TLSDESC_ADR_PREL21", - "R_AARCH64_P32_TLSDESC_CALL", - "R_AARCH64_P32_TLSDESC_LD32_LO12_NC", - "R_AARCH64_P32_TLSDESC_LD_PREL19", - "R_AARCH64_P32_TLSGD_ADD_LO12_NC", - "R_AARCH64_P32_TLSGD_ADR_PAGE21", - "R_AARCH64_P32_TLSIE_ADR_GOTTPREL_PAGE21", - "R_AARCH64_P32_TLSIE_LD32_GOTTPREL_LO12_NC", - "R_AARCH64_P32_TLSIE_LD_GOTTPREL_PREL19", - "R_AARCH64_P32_TLSLE_ADD_TPREL_HI12", - "R_AARCH64_P32_TLSLE_ADD_TPREL_LO12", - "R_AARCH64_P32_TLSLE_ADD_TPREL_LO12_NC", - "R_AARCH64_P32_TLSLE_MOVW_TPREL_G0", - "R_AARCH64_P32_TLSLE_MOVW_TPREL_G0_NC", - "R_AARCH64_P32_TLSLE_MOVW_TPREL_G1", - "R_AARCH64_P32_TLS_DTPMOD", - "R_AARCH64_P32_TLS_DTPREL", - "R_AARCH64_P32_TLS_TPREL", - "R_AARCH64_P32_TSTBR14", - "R_AARCH64_PREL16", - "R_AARCH64_PREL32", - "R_AARCH64_PREL64", - "R_AARCH64_RELATIVE", - "R_AARCH64_TLSDESC", - "R_AARCH64_TLSDESC_ADD", - "R_AARCH64_TLSDESC_ADD_LO12_NC", - "R_AARCH64_TLSDESC_ADR_PAGE21", - "R_AARCH64_TLSDESC_ADR_PREL21", - "R_AARCH64_TLSDESC_CALL", - "R_AARCH64_TLSDESC_LD64_LO12_NC", - "R_AARCH64_TLSDESC_LDR", - "R_AARCH64_TLSDESC_LD_PREL19", - "R_AARCH64_TLSDESC_OFF_G0_NC", - "R_AARCH64_TLSDESC_OFF_G1", - "R_AARCH64_TLSGD_ADD_LO12_NC", - "R_AARCH64_TLSGD_ADR_PAGE21", - "R_AARCH64_TLSGD_ADR_PREL21", - "R_AARCH64_TLSGD_MOVW_G0_NC", - "R_AARCH64_TLSGD_MOVW_G1", - "R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21", - "R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC", - "R_AARCH64_TLSIE_LD_GOTTPREL_PREL19", - "R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC", - "R_AARCH64_TLSIE_MOVW_GOTTPREL_G1", - "R_AARCH64_TLSLD_ADR_PAGE21", - "R_AARCH64_TLSLD_ADR_PREL21", - "R_AARCH64_TLSLD_LDST128_DTPREL_LO12", - "R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC", - "R_AARCH64_TLSLE_ADD_TPREL_HI12", - "R_AARCH64_TLSLE_ADD_TPREL_LO12", - "R_AARCH64_TLSLE_ADD_TPREL_LO12_NC", - "R_AARCH64_TLSLE_LDST128_TPREL_LO12", - "R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC", - "R_AARCH64_TLSLE_MOVW_TPREL_G0", - "R_AARCH64_TLSLE_MOVW_TPREL_G0_NC", - "R_AARCH64_TLSLE_MOVW_TPREL_G1", - "R_AARCH64_TLSLE_MOVW_TPREL_G1_NC", - "R_AARCH64_TLSLE_MOVW_TPREL_G2", - "R_AARCH64_TLS_DTPMOD64", - "R_AARCH64_TLS_DTPREL64", - "R_AARCH64_TLS_TPREL64", - "R_AARCH64_TSTBR14", - "R_ALPHA", - "R_ALPHA_BRADDR", - "R_ALPHA_COPY", - "R_ALPHA_GLOB_DAT", - "R_ALPHA_GPDISP", - "R_ALPHA_GPREL32", - "R_ALPHA_GPRELHIGH", - "R_ALPHA_GPRELLOW", - "R_ALPHA_GPVALUE", - "R_ALPHA_HINT", - "R_ALPHA_IMMED_BR_HI32", - "R_ALPHA_IMMED_GP_16", - "R_ALPHA_IMMED_GP_HI32", - "R_ALPHA_IMMED_LO32", - "R_ALPHA_IMMED_SCN_HI32", - "R_ALPHA_JMP_SLOT", - "R_ALPHA_LITERAL", - "R_ALPHA_LITUSE", - "R_ALPHA_NONE", - "R_ALPHA_OP_PRSHIFT", - "R_ALPHA_OP_PSUB", - "R_ALPHA_OP_PUSH", - "R_ALPHA_OP_STORE", - "R_ALPHA_REFLONG", - "R_ALPHA_REFQUAD", - "R_ALPHA_RELATIVE", - "R_ALPHA_SREL16", - "R_ALPHA_SREL32", - "R_ALPHA_SREL64", - "R_ARM", - "R_ARM_ABS12", - "R_ARM_ABS16", - "R_ARM_ABS32", - "R_ARM_ABS32_NOI", - "R_ARM_ABS8", - "R_ARM_ALU_PCREL_15_8", - "R_ARM_ALU_PCREL_23_15", - "R_ARM_ALU_PCREL_7_0", - "R_ARM_ALU_PC_G0", - "R_ARM_ALU_PC_G0_NC", - "R_ARM_ALU_PC_G1", - "R_ARM_ALU_PC_G1_NC", - "R_ARM_ALU_PC_G2", - "R_ARM_ALU_SBREL_19_12_NC", - "R_ARM_ALU_SBREL_27_20_CK", - "R_ARM_ALU_SB_G0", - "R_ARM_ALU_SB_G0_NC", - "R_ARM_ALU_SB_G1", - "R_ARM_ALU_SB_G1_NC", - "R_ARM_ALU_SB_G2", - "R_ARM_AMP_VCALL9", - "R_ARM_BASE_ABS", - "R_ARM_CALL", - "R_ARM_COPY", - "R_ARM_GLOB_DAT", - "R_ARM_GNU_VTENTRY", - "R_ARM_GNU_VTINHERIT", - "R_ARM_GOT32", - "R_ARM_GOTOFF", - "R_ARM_GOTOFF12", - "R_ARM_GOTPC", - "R_ARM_GOTRELAX", - "R_ARM_GOT_ABS", - "R_ARM_GOT_BREL12", - "R_ARM_GOT_PREL", - "R_ARM_IRELATIVE", - "R_ARM_JUMP24", - "R_ARM_JUMP_SLOT", - "R_ARM_LDC_PC_G0", - "R_ARM_LDC_PC_G1", - "R_ARM_LDC_PC_G2", - "R_ARM_LDC_SB_G0", - "R_ARM_LDC_SB_G1", - "R_ARM_LDC_SB_G2", - "R_ARM_LDRS_PC_G0", - "R_ARM_LDRS_PC_G1", - "R_ARM_LDRS_PC_G2", - "R_ARM_LDRS_SB_G0", - "R_ARM_LDRS_SB_G1", - "R_ARM_LDRS_SB_G2", - "R_ARM_LDR_PC_G1", - "R_ARM_LDR_PC_G2", - "R_ARM_LDR_SBREL_11_10_NC", - "R_ARM_LDR_SB_G0", - "R_ARM_LDR_SB_G1", - "R_ARM_LDR_SB_G2", - "R_ARM_ME_TOO", - "R_ARM_MOVT_ABS", - "R_ARM_MOVT_BREL", - "R_ARM_MOVT_PREL", - "R_ARM_MOVW_ABS_NC", - "R_ARM_MOVW_BREL", - "R_ARM_MOVW_BREL_NC", - "R_ARM_MOVW_PREL_NC", - "R_ARM_NONE", - "R_ARM_PC13", - "R_ARM_PC24", - "R_ARM_PLT32", - "R_ARM_PLT32_ABS", - "R_ARM_PREL31", - "R_ARM_PRIVATE_0", - "R_ARM_PRIVATE_1", - "R_ARM_PRIVATE_10", - "R_ARM_PRIVATE_11", - "R_ARM_PRIVATE_12", - "R_ARM_PRIVATE_13", - "R_ARM_PRIVATE_14", - "R_ARM_PRIVATE_15", - "R_ARM_PRIVATE_2", - "R_ARM_PRIVATE_3", - "R_ARM_PRIVATE_4", - "R_ARM_PRIVATE_5", - "R_ARM_PRIVATE_6", - "R_ARM_PRIVATE_7", - "R_ARM_PRIVATE_8", - "R_ARM_PRIVATE_9", - "R_ARM_RABS32", - "R_ARM_RBASE", - "R_ARM_REL32", - "R_ARM_REL32_NOI", - "R_ARM_RELATIVE", - "R_ARM_RPC24", - "R_ARM_RREL32", - "R_ARM_RSBREL32", - "R_ARM_RXPC25", - "R_ARM_SBREL31", - "R_ARM_SBREL32", - "R_ARM_SWI24", - "R_ARM_TARGET1", - "R_ARM_TARGET2", - "R_ARM_THM_ABS5", - "R_ARM_THM_ALU_ABS_G0_NC", - "R_ARM_THM_ALU_ABS_G1_NC", - "R_ARM_THM_ALU_ABS_G2_NC", - "R_ARM_THM_ALU_ABS_G3", - "R_ARM_THM_ALU_PREL_11_0", - "R_ARM_THM_GOT_BREL12", - "R_ARM_THM_JUMP11", - "R_ARM_THM_JUMP19", - "R_ARM_THM_JUMP24", - "R_ARM_THM_JUMP6", - "R_ARM_THM_JUMP8", - "R_ARM_THM_MOVT_ABS", - "R_ARM_THM_MOVT_BREL", - "R_ARM_THM_MOVT_PREL", - "R_ARM_THM_MOVW_ABS_NC", - "R_ARM_THM_MOVW_BREL", - "R_ARM_THM_MOVW_BREL_NC", - "R_ARM_THM_MOVW_PREL_NC", - "R_ARM_THM_PC12", - "R_ARM_THM_PC22", - "R_ARM_THM_PC8", - "R_ARM_THM_RPC22", - "R_ARM_THM_SWI8", - "R_ARM_THM_TLS_CALL", - "R_ARM_THM_TLS_DESCSEQ16", - "R_ARM_THM_TLS_DESCSEQ32", - "R_ARM_THM_XPC22", - "R_ARM_TLS_CALL", - "R_ARM_TLS_DESCSEQ", - "R_ARM_TLS_DTPMOD32", - "R_ARM_TLS_DTPOFF32", - "R_ARM_TLS_GD32", - "R_ARM_TLS_GOTDESC", - "R_ARM_TLS_IE12GP", - "R_ARM_TLS_IE32", - "R_ARM_TLS_LDM32", - "R_ARM_TLS_LDO12", - "R_ARM_TLS_LDO32", - "R_ARM_TLS_LE12", - "R_ARM_TLS_LE32", - "R_ARM_TLS_TPOFF32", - "R_ARM_V4BX", - "R_ARM_XPC25", - "R_INFO", - "R_INFO32", - "R_LARCH", - "R_LARCH_32", - "R_LARCH_32_PCREL", - "R_LARCH_64", - "R_LARCH_64_PCREL", - "R_LARCH_ABS64_HI12", - "R_LARCH_ABS64_LO20", - "R_LARCH_ABS_HI20", - "R_LARCH_ABS_LO12", - "R_LARCH_ADD16", - "R_LARCH_ADD24", - "R_LARCH_ADD32", - "R_LARCH_ADD6", - "R_LARCH_ADD64", - "R_LARCH_ADD8", - "R_LARCH_ADD_ULEB128", - "R_LARCH_ALIGN", - "R_LARCH_B16", - "R_LARCH_B21", - "R_LARCH_B26", - "R_LARCH_CFA", - "R_LARCH_COPY", - "R_LARCH_DELETE", - "R_LARCH_GNU_VTENTRY", - "R_LARCH_GNU_VTINHERIT", - "R_LARCH_GOT64_HI12", - "R_LARCH_GOT64_LO20", - "R_LARCH_GOT64_PC_HI12", - "R_LARCH_GOT64_PC_LO20", - "R_LARCH_GOT_HI20", - "R_LARCH_GOT_LO12", - "R_LARCH_GOT_PC_HI20", - "R_LARCH_GOT_PC_LO12", - "R_LARCH_IRELATIVE", - "R_LARCH_JUMP_SLOT", - "R_LARCH_MARK_LA", - "R_LARCH_MARK_PCREL", - "R_LARCH_NONE", - "R_LARCH_PCALA64_HI12", - "R_LARCH_PCALA64_LO20", - "R_LARCH_PCALA_HI20", - "R_LARCH_PCALA_LO12", - "R_LARCH_PCREL20_S2", - "R_LARCH_RELATIVE", - "R_LARCH_RELAX", - "R_LARCH_SOP_ADD", - "R_LARCH_SOP_AND", - "R_LARCH_SOP_ASSERT", - "R_LARCH_SOP_IF_ELSE", - "R_LARCH_SOP_NOT", - "R_LARCH_SOP_POP_32_S_0_10_10_16_S2", - "R_LARCH_SOP_POP_32_S_0_5_10_16_S2", - "R_LARCH_SOP_POP_32_S_10_12", - "R_LARCH_SOP_POP_32_S_10_16", - "R_LARCH_SOP_POP_32_S_10_16_S2", - "R_LARCH_SOP_POP_32_S_10_5", - "R_LARCH_SOP_POP_32_S_5_20", - "R_LARCH_SOP_POP_32_U", - "R_LARCH_SOP_POP_32_U_10_12", - "R_LARCH_SOP_PUSH_ABSOLUTE", - "R_LARCH_SOP_PUSH_DUP", - "R_LARCH_SOP_PUSH_GPREL", - "R_LARCH_SOP_PUSH_PCREL", - "R_LARCH_SOP_PUSH_PLT_PCREL", - "R_LARCH_SOP_PUSH_TLS_GD", - "R_LARCH_SOP_PUSH_TLS_GOT", - "R_LARCH_SOP_PUSH_TLS_TPREL", - "R_LARCH_SOP_SL", - "R_LARCH_SOP_SR", - "R_LARCH_SOP_SUB", - "R_LARCH_SUB16", - "R_LARCH_SUB24", - "R_LARCH_SUB32", - "R_LARCH_SUB6", - "R_LARCH_SUB64", - "R_LARCH_SUB8", - "R_LARCH_SUB_ULEB128", - "R_LARCH_TLS_DTPMOD32", - "R_LARCH_TLS_DTPMOD64", - "R_LARCH_TLS_DTPREL32", - "R_LARCH_TLS_DTPREL64", - "R_LARCH_TLS_GD_HI20", - "R_LARCH_TLS_GD_PC_HI20", - "R_LARCH_TLS_IE64_HI12", - "R_LARCH_TLS_IE64_LO20", - "R_LARCH_TLS_IE64_PC_HI12", - "R_LARCH_TLS_IE64_PC_LO20", - "R_LARCH_TLS_IE_HI20", - "R_LARCH_TLS_IE_LO12", - "R_LARCH_TLS_IE_PC_HI20", - "R_LARCH_TLS_IE_PC_LO12", - "R_LARCH_TLS_LD_HI20", - "R_LARCH_TLS_LD_PC_HI20", - "R_LARCH_TLS_LE64_HI12", - "R_LARCH_TLS_LE64_LO20", - "R_LARCH_TLS_LE_HI20", - "R_LARCH_TLS_LE_LO12", - "R_LARCH_TLS_TPREL32", - "R_LARCH_TLS_TPREL64", - "R_MIPS", - "R_MIPS_16", - "R_MIPS_26", - "R_MIPS_32", - "R_MIPS_64", - "R_MIPS_ADD_IMMEDIATE", - "R_MIPS_CALL16", - "R_MIPS_CALL_HI16", - "R_MIPS_CALL_LO16", - "R_MIPS_DELETE", - "R_MIPS_GOT16", - "R_MIPS_GOT_DISP", - "R_MIPS_GOT_HI16", - "R_MIPS_GOT_LO16", - "R_MIPS_GOT_OFST", - "R_MIPS_GOT_PAGE", - "R_MIPS_GPREL16", - "R_MIPS_GPREL32", - "R_MIPS_HI16", - "R_MIPS_HIGHER", - "R_MIPS_HIGHEST", - "R_MIPS_INSERT_A", - "R_MIPS_INSERT_B", - "R_MIPS_JALR", - "R_MIPS_LITERAL", - "R_MIPS_LO16", - "R_MIPS_NONE", - "R_MIPS_PC16", - "R_MIPS_PC32", - "R_MIPS_PJUMP", - "R_MIPS_REL16", - "R_MIPS_REL32", - "R_MIPS_RELGOT", - "R_MIPS_SCN_DISP", - "R_MIPS_SHIFT5", - "R_MIPS_SHIFT6", - "R_MIPS_SUB", - "R_MIPS_TLS_DTPMOD32", - "R_MIPS_TLS_DTPMOD64", - "R_MIPS_TLS_DTPREL32", - "R_MIPS_TLS_DTPREL64", - "R_MIPS_TLS_DTPREL_HI16", - "R_MIPS_TLS_DTPREL_LO16", - "R_MIPS_TLS_GD", - "R_MIPS_TLS_GOTTPREL", - "R_MIPS_TLS_LDM", - "R_MIPS_TLS_TPREL32", - "R_MIPS_TLS_TPREL64", - "R_MIPS_TLS_TPREL_HI16", - "R_MIPS_TLS_TPREL_LO16", - "R_PPC", - "R_PPC64", - "R_PPC64_ADDR14", - "R_PPC64_ADDR14_BRNTAKEN", - "R_PPC64_ADDR14_BRTAKEN", - "R_PPC64_ADDR16", - "R_PPC64_ADDR16_DS", - "R_PPC64_ADDR16_HA", - "R_PPC64_ADDR16_HI", - "R_PPC64_ADDR16_HIGH", - "R_PPC64_ADDR16_HIGHA", - "R_PPC64_ADDR16_HIGHER", - "R_PPC64_ADDR16_HIGHER34", - "R_PPC64_ADDR16_HIGHERA", - "R_PPC64_ADDR16_HIGHERA34", - "R_PPC64_ADDR16_HIGHEST", - "R_PPC64_ADDR16_HIGHEST34", - "R_PPC64_ADDR16_HIGHESTA", - "R_PPC64_ADDR16_HIGHESTA34", - "R_PPC64_ADDR16_LO", - "R_PPC64_ADDR16_LO_DS", - "R_PPC64_ADDR24", - "R_PPC64_ADDR32", - "R_PPC64_ADDR64", - "R_PPC64_ADDR64_LOCAL", - "R_PPC64_COPY", - "R_PPC64_D28", - "R_PPC64_D34", - "R_PPC64_D34_HA30", - "R_PPC64_D34_HI30", - "R_PPC64_D34_LO", - "R_PPC64_DTPMOD64", - "R_PPC64_DTPREL16", - "R_PPC64_DTPREL16_DS", - "R_PPC64_DTPREL16_HA", - "R_PPC64_DTPREL16_HI", - "R_PPC64_DTPREL16_HIGH", - "R_PPC64_DTPREL16_HIGHA", - "R_PPC64_DTPREL16_HIGHER", - "R_PPC64_DTPREL16_HIGHERA", - "R_PPC64_DTPREL16_HIGHEST", - "R_PPC64_DTPREL16_HIGHESTA", - "R_PPC64_DTPREL16_LO", - "R_PPC64_DTPREL16_LO_DS", - "R_PPC64_DTPREL34", - "R_PPC64_DTPREL64", - "R_PPC64_ENTRY", - "R_PPC64_GLOB_DAT", - "R_PPC64_GNU_VTENTRY", - "R_PPC64_GNU_VTINHERIT", - "R_PPC64_GOT16", - "R_PPC64_GOT16_DS", - "R_PPC64_GOT16_HA", - "R_PPC64_GOT16_HI", - "R_PPC64_GOT16_LO", - "R_PPC64_GOT16_LO_DS", - "R_PPC64_GOT_DTPREL16_DS", - "R_PPC64_GOT_DTPREL16_HA", - "R_PPC64_GOT_DTPREL16_HI", - "R_PPC64_GOT_DTPREL16_LO_DS", - "R_PPC64_GOT_DTPREL_PCREL34", - "R_PPC64_GOT_PCREL34", - "R_PPC64_GOT_TLSGD16", - "R_PPC64_GOT_TLSGD16_HA", - "R_PPC64_GOT_TLSGD16_HI", - "R_PPC64_GOT_TLSGD16_LO", - "R_PPC64_GOT_TLSGD_PCREL34", - "R_PPC64_GOT_TLSLD16", - "R_PPC64_GOT_TLSLD16_HA", - "R_PPC64_GOT_TLSLD16_HI", - "R_PPC64_GOT_TLSLD16_LO", - "R_PPC64_GOT_TLSLD_PCREL34", - "R_PPC64_GOT_TPREL16_DS", - "R_PPC64_GOT_TPREL16_HA", - "R_PPC64_GOT_TPREL16_HI", - "R_PPC64_GOT_TPREL16_LO_DS", - "R_PPC64_GOT_TPREL_PCREL34", - "R_PPC64_IRELATIVE", - "R_PPC64_JMP_IREL", - "R_PPC64_JMP_SLOT", - "R_PPC64_NONE", - "R_PPC64_PCREL28", - "R_PPC64_PCREL34", - "R_PPC64_PCREL_OPT", - "R_PPC64_PLT16_HA", - "R_PPC64_PLT16_HI", - "R_PPC64_PLT16_LO", - "R_PPC64_PLT16_LO_DS", - "R_PPC64_PLT32", - "R_PPC64_PLT64", - "R_PPC64_PLTCALL", - "R_PPC64_PLTCALL_NOTOC", - "R_PPC64_PLTGOT16", - "R_PPC64_PLTGOT16_DS", - "R_PPC64_PLTGOT16_HA", - "R_PPC64_PLTGOT16_HI", - "R_PPC64_PLTGOT16_LO", - "R_PPC64_PLTGOT_LO_DS", - "R_PPC64_PLTREL32", - "R_PPC64_PLTREL64", - "R_PPC64_PLTSEQ", - "R_PPC64_PLTSEQ_NOTOC", - "R_PPC64_PLT_PCREL34", - "R_PPC64_PLT_PCREL34_NOTOC", - "R_PPC64_REL14", - "R_PPC64_REL14_BRNTAKEN", - "R_PPC64_REL14_BRTAKEN", - "R_PPC64_REL16", - "R_PPC64_REL16DX_HA", - "R_PPC64_REL16_HA", - "R_PPC64_REL16_HI", - "R_PPC64_REL16_HIGH", - "R_PPC64_REL16_HIGHA", - "R_PPC64_REL16_HIGHER", - "R_PPC64_REL16_HIGHER34", - "R_PPC64_REL16_HIGHERA", - "R_PPC64_REL16_HIGHERA34", - "R_PPC64_REL16_HIGHEST", - "R_PPC64_REL16_HIGHEST34", - "R_PPC64_REL16_HIGHESTA", - "R_PPC64_REL16_HIGHESTA34", - "R_PPC64_REL16_LO", - "R_PPC64_REL24", - "R_PPC64_REL24_NOTOC", - "R_PPC64_REL24_P9NOTOC", - "R_PPC64_REL30", - "R_PPC64_REL32", - "R_PPC64_REL64", - "R_PPC64_RELATIVE", - "R_PPC64_SECTOFF", - "R_PPC64_SECTOFF_DS", - "R_PPC64_SECTOFF_HA", - "R_PPC64_SECTOFF_HI", - "R_PPC64_SECTOFF_LO", - "R_PPC64_SECTOFF_LO_DS", - "R_PPC64_TLS", - "R_PPC64_TLSGD", - "R_PPC64_TLSLD", - "R_PPC64_TOC", - "R_PPC64_TOC16", - "R_PPC64_TOC16_DS", - "R_PPC64_TOC16_HA", - "R_PPC64_TOC16_HI", - "R_PPC64_TOC16_LO", - "R_PPC64_TOC16_LO_DS", - "R_PPC64_TOCSAVE", - "R_PPC64_TPREL16", - "R_PPC64_TPREL16_DS", - "R_PPC64_TPREL16_HA", - "R_PPC64_TPREL16_HI", - "R_PPC64_TPREL16_HIGH", - "R_PPC64_TPREL16_HIGHA", - "R_PPC64_TPREL16_HIGHER", - "R_PPC64_TPREL16_HIGHERA", - "R_PPC64_TPREL16_HIGHEST", - "R_PPC64_TPREL16_HIGHESTA", - "R_PPC64_TPREL16_LO", - "R_PPC64_TPREL16_LO_DS", - "R_PPC64_TPREL34", - "R_PPC64_TPREL64", - "R_PPC64_UADDR16", - "R_PPC64_UADDR32", - "R_PPC64_UADDR64", - "R_PPC_ADDR14", - "R_PPC_ADDR14_BRNTAKEN", - "R_PPC_ADDR14_BRTAKEN", - "R_PPC_ADDR16", - "R_PPC_ADDR16_HA", - "R_PPC_ADDR16_HI", - "R_PPC_ADDR16_LO", - "R_PPC_ADDR24", - "R_PPC_ADDR32", - "R_PPC_COPY", - "R_PPC_DTPMOD32", - "R_PPC_DTPREL16", - "R_PPC_DTPREL16_HA", - "R_PPC_DTPREL16_HI", - "R_PPC_DTPREL16_LO", - "R_PPC_DTPREL32", - "R_PPC_EMB_BIT_FLD", - "R_PPC_EMB_MRKREF", - "R_PPC_EMB_NADDR16", - "R_PPC_EMB_NADDR16_HA", - "R_PPC_EMB_NADDR16_HI", - "R_PPC_EMB_NADDR16_LO", - "R_PPC_EMB_NADDR32", - "R_PPC_EMB_RELSDA", - "R_PPC_EMB_RELSEC16", - "R_PPC_EMB_RELST_HA", - "R_PPC_EMB_RELST_HI", - "R_PPC_EMB_RELST_LO", - "R_PPC_EMB_SDA21", - "R_PPC_EMB_SDA2I16", - "R_PPC_EMB_SDA2REL", - "R_PPC_EMB_SDAI16", - "R_PPC_GLOB_DAT", - "R_PPC_GOT16", - "R_PPC_GOT16_HA", - "R_PPC_GOT16_HI", - "R_PPC_GOT16_LO", - "R_PPC_GOT_TLSGD16", - "R_PPC_GOT_TLSGD16_HA", - "R_PPC_GOT_TLSGD16_HI", - "R_PPC_GOT_TLSGD16_LO", - "R_PPC_GOT_TLSLD16", - "R_PPC_GOT_TLSLD16_HA", - "R_PPC_GOT_TLSLD16_HI", - "R_PPC_GOT_TLSLD16_LO", - "R_PPC_GOT_TPREL16", - "R_PPC_GOT_TPREL16_HA", - "R_PPC_GOT_TPREL16_HI", - "R_PPC_GOT_TPREL16_LO", - "R_PPC_JMP_SLOT", - "R_PPC_LOCAL24PC", - "R_PPC_NONE", - "R_PPC_PLT16_HA", - "R_PPC_PLT16_HI", - "R_PPC_PLT16_LO", - "R_PPC_PLT32", - "R_PPC_PLTREL24", - "R_PPC_PLTREL32", - "R_PPC_REL14", - "R_PPC_REL14_BRNTAKEN", - "R_PPC_REL14_BRTAKEN", - "R_PPC_REL24", - "R_PPC_REL32", - "R_PPC_RELATIVE", - "R_PPC_SDAREL16", - "R_PPC_SECTOFF", - "R_PPC_SECTOFF_HA", - "R_PPC_SECTOFF_HI", - "R_PPC_SECTOFF_LO", - "R_PPC_TLS", - "R_PPC_TPREL16", - "R_PPC_TPREL16_HA", - "R_PPC_TPREL16_HI", - "R_PPC_TPREL16_LO", - "R_PPC_TPREL32", - "R_PPC_UADDR16", - "R_PPC_UADDR32", - "R_RISCV", - "R_RISCV_32", - "R_RISCV_32_PCREL", - "R_RISCV_64", - "R_RISCV_ADD16", - "R_RISCV_ADD32", - "R_RISCV_ADD64", - "R_RISCV_ADD8", - "R_RISCV_ALIGN", - "R_RISCV_BRANCH", - "R_RISCV_CALL", - "R_RISCV_CALL_PLT", - "R_RISCV_COPY", - "R_RISCV_GNU_VTENTRY", - "R_RISCV_GNU_VTINHERIT", - "R_RISCV_GOT_HI20", - "R_RISCV_GPREL_I", - "R_RISCV_GPREL_S", - "R_RISCV_HI20", - "R_RISCV_JAL", - "R_RISCV_JUMP_SLOT", - "R_RISCV_LO12_I", - "R_RISCV_LO12_S", - "R_RISCV_NONE", - "R_RISCV_PCREL_HI20", - "R_RISCV_PCREL_LO12_I", - "R_RISCV_PCREL_LO12_S", - "R_RISCV_RELATIVE", - "R_RISCV_RELAX", - "R_RISCV_RVC_BRANCH", - "R_RISCV_RVC_JUMP", - "R_RISCV_RVC_LUI", - "R_RISCV_SET16", - "R_RISCV_SET32", - "R_RISCV_SET6", - "R_RISCV_SET8", - "R_RISCV_SUB16", - "R_RISCV_SUB32", - "R_RISCV_SUB6", - "R_RISCV_SUB64", - "R_RISCV_SUB8", - "R_RISCV_TLS_DTPMOD32", - "R_RISCV_TLS_DTPMOD64", - "R_RISCV_TLS_DTPREL32", - "R_RISCV_TLS_DTPREL64", - "R_RISCV_TLS_GD_HI20", - "R_RISCV_TLS_GOT_HI20", - "R_RISCV_TLS_TPREL32", - "R_RISCV_TLS_TPREL64", - "R_RISCV_TPREL_ADD", - "R_RISCV_TPREL_HI20", - "R_RISCV_TPREL_I", - "R_RISCV_TPREL_LO12_I", - "R_RISCV_TPREL_LO12_S", - "R_RISCV_TPREL_S", - "R_SPARC", - "R_SPARC_10", - "R_SPARC_11", - "R_SPARC_13", - "R_SPARC_16", - "R_SPARC_22", - "R_SPARC_32", - "R_SPARC_5", - "R_SPARC_6", - "R_SPARC_64", - "R_SPARC_7", - "R_SPARC_8", - "R_SPARC_COPY", - "R_SPARC_DISP16", - "R_SPARC_DISP32", - "R_SPARC_DISP64", - "R_SPARC_DISP8", - "R_SPARC_GLOB_DAT", - "R_SPARC_GLOB_JMP", - "R_SPARC_GOT10", - "R_SPARC_GOT13", - "R_SPARC_GOT22", - "R_SPARC_H44", - "R_SPARC_HH22", - "R_SPARC_HI22", - "R_SPARC_HIPLT22", - "R_SPARC_HIX22", - "R_SPARC_HM10", - "R_SPARC_JMP_SLOT", - "R_SPARC_L44", - "R_SPARC_LM22", - "R_SPARC_LO10", - "R_SPARC_LOPLT10", - "R_SPARC_LOX10", - "R_SPARC_M44", - "R_SPARC_NONE", - "R_SPARC_OLO10", - "R_SPARC_PC10", - "R_SPARC_PC22", - "R_SPARC_PCPLT10", - "R_SPARC_PCPLT22", - "R_SPARC_PCPLT32", - "R_SPARC_PC_HH22", - "R_SPARC_PC_HM10", - "R_SPARC_PC_LM22", - "R_SPARC_PLT32", - "R_SPARC_PLT64", - "R_SPARC_REGISTER", - "R_SPARC_RELATIVE", - "R_SPARC_UA16", - "R_SPARC_UA32", - "R_SPARC_UA64", - "R_SPARC_WDISP16", - "R_SPARC_WDISP19", - "R_SPARC_WDISP22", - "R_SPARC_WDISP30", - "R_SPARC_WPLT30", - "R_SYM32", - "R_SYM64", - "R_TYPE32", - "R_TYPE64", - "R_X86_64", - "R_X86_64_16", - "R_X86_64_32", - "R_X86_64_32S", - "R_X86_64_64", - "R_X86_64_8", - "R_X86_64_COPY", - "R_X86_64_DTPMOD64", - "R_X86_64_DTPOFF32", - "R_X86_64_DTPOFF64", - "R_X86_64_GLOB_DAT", - "R_X86_64_GOT32", - "R_X86_64_GOT64", - "R_X86_64_GOTOFF64", - "R_X86_64_GOTPC32", - "R_X86_64_GOTPC32_TLSDESC", - "R_X86_64_GOTPC64", - "R_X86_64_GOTPCREL", - "R_X86_64_GOTPCREL64", - "R_X86_64_GOTPCRELX", - "R_X86_64_GOTPLT64", - "R_X86_64_GOTTPOFF", - "R_X86_64_IRELATIVE", - "R_X86_64_JMP_SLOT", - "R_X86_64_NONE", - "R_X86_64_PC16", - "R_X86_64_PC32", - "R_X86_64_PC32_BND", - "R_X86_64_PC64", - "R_X86_64_PC8", - "R_X86_64_PLT32", - "R_X86_64_PLT32_BND", - "R_X86_64_PLTOFF64", - "R_X86_64_RELATIVE", - "R_X86_64_RELATIVE64", - "R_X86_64_REX_GOTPCRELX", - "R_X86_64_SIZE32", - "R_X86_64_SIZE64", - "R_X86_64_TLSDESC", - "R_X86_64_TLSDESC_CALL", - "R_X86_64_TLSGD", - "R_X86_64_TLSLD", - "R_X86_64_TPOFF32", - "R_X86_64_TPOFF64", - "Rel32", - "Rel64", - "Rela32", - "Rela64", - "SHF_ALLOC", - "SHF_COMPRESSED", - "SHF_EXECINSTR", - "SHF_GROUP", - "SHF_INFO_LINK", - "SHF_LINK_ORDER", - "SHF_MASKOS", - "SHF_MASKPROC", - "SHF_MERGE", - "SHF_OS_NONCONFORMING", - "SHF_STRINGS", - "SHF_TLS", - "SHF_WRITE", - "SHN_ABS", - "SHN_COMMON", - "SHN_HIOS", - "SHN_HIPROC", - "SHN_HIRESERVE", - "SHN_LOOS", - "SHN_LOPROC", - "SHN_LORESERVE", - "SHN_UNDEF", - "SHN_XINDEX", - "SHT_DYNAMIC", - "SHT_DYNSYM", - "SHT_FINI_ARRAY", - "SHT_GNU_ATTRIBUTES", - "SHT_GNU_HASH", - "SHT_GNU_LIBLIST", - "SHT_GNU_VERDEF", - "SHT_GNU_VERNEED", - "SHT_GNU_VERSYM", - "SHT_GROUP", - "SHT_HASH", - "SHT_HIOS", - "SHT_HIPROC", - "SHT_HIUSER", - "SHT_INIT_ARRAY", - "SHT_LOOS", - "SHT_LOPROC", - "SHT_LOUSER", - "SHT_MIPS_ABIFLAGS", - "SHT_NOBITS", - "SHT_NOTE", - "SHT_NULL", - "SHT_PREINIT_ARRAY", - "SHT_PROGBITS", - "SHT_REL", - "SHT_RELA", - "SHT_SHLIB", - "SHT_STRTAB", - "SHT_SYMTAB", - "SHT_SYMTAB_SHNDX", - "STB_GLOBAL", - "STB_HIOS", - "STB_HIPROC", - "STB_LOCAL", - "STB_LOOS", - "STB_LOPROC", - "STB_WEAK", - "STT_COMMON", - "STT_FILE", - "STT_FUNC", - "STT_HIOS", - "STT_HIPROC", - "STT_LOOS", - "STT_LOPROC", - "STT_NOTYPE", - "STT_OBJECT", - "STT_SECTION", - "STT_TLS", - "STV_DEFAULT", - "STV_HIDDEN", - "STV_INTERNAL", - "STV_PROTECTED", - "ST_BIND", - "ST_INFO", - "ST_TYPE", - "ST_VISIBILITY", - "Section", - "Section32", - "Section64", - "SectionFlag", - "SectionHeader", - "SectionIndex", - "SectionType", - "Sym32", - "Sym32Size", - "Sym64", - "Sym64Size", - "SymBind", - "SymType", - "SymVis", - "Symbol", - "Type", - "Version", - }, - "debug/gosym": { - "DecodingError", - "Func", - "LineTable", - "NewLineTable", - "NewTable", - "Obj", - "Sym", - "Table", - "UnknownFileError", - "UnknownLineError", - }, - "debug/macho": { - "ARM64_RELOC_ADDEND", - "ARM64_RELOC_BRANCH26", - "ARM64_RELOC_GOT_LOAD_PAGE21", - "ARM64_RELOC_GOT_LOAD_PAGEOFF12", - "ARM64_RELOC_PAGE21", - "ARM64_RELOC_PAGEOFF12", - "ARM64_RELOC_POINTER_TO_GOT", - "ARM64_RELOC_SUBTRACTOR", - "ARM64_RELOC_TLVP_LOAD_PAGE21", - "ARM64_RELOC_TLVP_LOAD_PAGEOFF12", - "ARM64_RELOC_UNSIGNED", - "ARM_RELOC_BR24", - "ARM_RELOC_HALF", - "ARM_RELOC_HALF_SECTDIFF", - "ARM_RELOC_LOCAL_SECTDIFF", - "ARM_RELOC_PAIR", - "ARM_RELOC_PB_LA_PTR", - "ARM_RELOC_SECTDIFF", - "ARM_RELOC_VANILLA", - "ARM_THUMB_32BIT_BRANCH", - "ARM_THUMB_RELOC_BR22", - "Cpu", - "Cpu386", - "CpuAmd64", - "CpuArm", - "CpuArm64", - "CpuPpc", - "CpuPpc64", - "Dylib", - "DylibCmd", - "Dysymtab", - "DysymtabCmd", - "ErrNotFat", - "FatArch", - "FatArchHeader", - "FatFile", - "File", - "FileHeader", - "FlagAllModsBound", - "FlagAllowStackExecution", - "FlagAppExtensionSafe", - "FlagBindAtLoad", - "FlagBindsToWeak", - "FlagCanonical", - "FlagDeadStrippableDylib", - "FlagDyldLink", - "FlagForceFlat", - "FlagHasTLVDescriptors", - "FlagIncrLink", - "FlagLazyInit", - "FlagNoFixPrebinding", - "FlagNoHeapExecution", - "FlagNoMultiDefs", - "FlagNoReexportedDylibs", - "FlagNoUndefs", - "FlagPIE", - "FlagPrebindable", - "FlagPrebound", - "FlagRootSafe", - "FlagSetuidSafe", - "FlagSplitSegs", - "FlagSubsectionsViaSymbols", - "FlagTwoLevel", - "FlagWeakDefines", - "FormatError", - "GENERIC_RELOC_LOCAL_SECTDIFF", - "GENERIC_RELOC_PAIR", - "GENERIC_RELOC_PB_LA_PTR", - "GENERIC_RELOC_SECTDIFF", - "GENERIC_RELOC_TLV", - "GENERIC_RELOC_VANILLA", - "Load", - "LoadBytes", - "LoadCmd", - "LoadCmdDylib", - "LoadCmdDylinker", - "LoadCmdDysymtab", - "LoadCmdRpath", - "LoadCmdSegment", - "LoadCmdSegment64", - "LoadCmdSymtab", - "LoadCmdThread", - "LoadCmdUnixThread", - "Magic32", - "Magic64", - "MagicFat", - "NewFatFile", - "NewFile", - "Nlist32", - "Nlist64", - "Open", - "OpenFat", - "Regs386", - "RegsAMD64", - "Reloc", - "RelocTypeARM", - "RelocTypeARM64", - "RelocTypeGeneric", - "RelocTypeX86_64", - "Rpath", - "RpathCmd", - "Section", - "Section32", - "Section64", - "SectionHeader", - "Segment", - "Segment32", - "Segment64", - "SegmentHeader", - "Symbol", - "Symtab", - "SymtabCmd", - "Thread", - "Type", - "TypeBundle", - "TypeDylib", - "TypeExec", - "TypeObj", - "X86_64_RELOC_BRANCH", - "X86_64_RELOC_GOT", - "X86_64_RELOC_GOT_LOAD", - "X86_64_RELOC_SIGNED", - "X86_64_RELOC_SIGNED_1", - "X86_64_RELOC_SIGNED_2", - "X86_64_RELOC_SIGNED_4", - "X86_64_RELOC_SUBTRACTOR", - "X86_64_RELOC_TLV", - "X86_64_RELOC_UNSIGNED", - }, - "debug/pe": { - "COFFSymbol", - "COFFSymbolAuxFormat5", - "COFFSymbolSize", - "DataDirectory", - "File", - "FileHeader", - "FormatError", - "IMAGE_COMDAT_SELECT_ANY", - "IMAGE_COMDAT_SELECT_ASSOCIATIVE", - "IMAGE_COMDAT_SELECT_EXACT_MATCH", - "IMAGE_COMDAT_SELECT_LARGEST", - "IMAGE_COMDAT_SELECT_NODUPLICATES", - "IMAGE_COMDAT_SELECT_SAME_SIZE", - "IMAGE_DIRECTORY_ENTRY_ARCHITECTURE", - "IMAGE_DIRECTORY_ENTRY_BASERELOC", - "IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT", - "IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR", - "IMAGE_DIRECTORY_ENTRY_DEBUG", - "IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT", - "IMAGE_DIRECTORY_ENTRY_EXCEPTION", - "IMAGE_DIRECTORY_ENTRY_EXPORT", - "IMAGE_DIRECTORY_ENTRY_GLOBALPTR", - "IMAGE_DIRECTORY_ENTRY_IAT", - "IMAGE_DIRECTORY_ENTRY_IMPORT", - "IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG", - "IMAGE_DIRECTORY_ENTRY_RESOURCE", - "IMAGE_DIRECTORY_ENTRY_SECURITY", - "IMAGE_DIRECTORY_ENTRY_TLS", - "IMAGE_DLLCHARACTERISTICS_APPCONTAINER", - "IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE", - "IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY", - "IMAGE_DLLCHARACTERISTICS_GUARD_CF", - "IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA", - "IMAGE_DLLCHARACTERISTICS_NO_BIND", - "IMAGE_DLLCHARACTERISTICS_NO_ISOLATION", - "IMAGE_DLLCHARACTERISTICS_NO_SEH", - "IMAGE_DLLCHARACTERISTICS_NX_COMPAT", - "IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE", - "IMAGE_DLLCHARACTERISTICS_WDM_DRIVER", - "IMAGE_FILE_32BIT_MACHINE", - "IMAGE_FILE_AGGRESIVE_WS_TRIM", - "IMAGE_FILE_BYTES_REVERSED_HI", - "IMAGE_FILE_BYTES_REVERSED_LO", - "IMAGE_FILE_DEBUG_STRIPPED", - "IMAGE_FILE_DLL", - "IMAGE_FILE_EXECUTABLE_IMAGE", - "IMAGE_FILE_LARGE_ADDRESS_AWARE", - "IMAGE_FILE_LINE_NUMS_STRIPPED", - "IMAGE_FILE_LOCAL_SYMS_STRIPPED", - "IMAGE_FILE_MACHINE_AM33", - "IMAGE_FILE_MACHINE_AMD64", - "IMAGE_FILE_MACHINE_ARM", - "IMAGE_FILE_MACHINE_ARM64", - "IMAGE_FILE_MACHINE_ARMNT", - "IMAGE_FILE_MACHINE_EBC", - "IMAGE_FILE_MACHINE_I386", - "IMAGE_FILE_MACHINE_IA64", - "IMAGE_FILE_MACHINE_LOONGARCH32", - "IMAGE_FILE_MACHINE_LOONGARCH64", - "IMAGE_FILE_MACHINE_M32R", - "IMAGE_FILE_MACHINE_MIPS16", - "IMAGE_FILE_MACHINE_MIPSFPU", - "IMAGE_FILE_MACHINE_MIPSFPU16", - "IMAGE_FILE_MACHINE_POWERPC", - "IMAGE_FILE_MACHINE_POWERPCFP", - "IMAGE_FILE_MACHINE_R4000", - "IMAGE_FILE_MACHINE_RISCV128", - "IMAGE_FILE_MACHINE_RISCV32", - "IMAGE_FILE_MACHINE_RISCV64", - "IMAGE_FILE_MACHINE_SH3", - "IMAGE_FILE_MACHINE_SH3DSP", - "IMAGE_FILE_MACHINE_SH4", - "IMAGE_FILE_MACHINE_SH5", - "IMAGE_FILE_MACHINE_THUMB", - "IMAGE_FILE_MACHINE_UNKNOWN", - "IMAGE_FILE_MACHINE_WCEMIPSV2", - "IMAGE_FILE_NET_RUN_FROM_SWAP", - "IMAGE_FILE_RELOCS_STRIPPED", - "IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP", - "IMAGE_FILE_SYSTEM", - "IMAGE_FILE_UP_SYSTEM_ONLY", - "IMAGE_SCN_CNT_CODE", - "IMAGE_SCN_CNT_INITIALIZED_DATA", - "IMAGE_SCN_CNT_UNINITIALIZED_DATA", - "IMAGE_SCN_LNK_COMDAT", - "IMAGE_SCN_MEM_DISCARDABLE", - "IMAGE_SCN_MEM_EXECUTE", - "IMAGE_SCN_MEM_READ", - "IMAGE_SCN_MEM_WRITE", - "IMAGE_SUBSYSTEM_EFI_APPLICATION", - "IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER", - "IMAGE_SUBSYSTEM_EFI_ROM", - "IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER", - "IMAGE_SUBSYSTEM_NATIVE", - "IMAGE_SUBSYSTEM_NATIVE_WINDOWS", - "IMAGE_SUBSYSTEM_OS2_CUI", - "IMAGE_SUBSYSTEM_POSIX_CUI", - "IMAGE_SUBSYSTEM_UNKNOWN", - "IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION", - "IMAGE_SUBSYSTEM_WINDOWS_CE_GUI", - "IMAGE_SUBSYSTEM_WINDOWS_CUI", - "IMAGE_SUBSYSTEM_WINDOWS_GUI", - "IMAGE_SUBSYSTEM_XBOX", - "ImportDirectory", - "NewFile", - "Open", - "OptionalHeader32", - "OptionalHeader64", - "Reloc", - "Section", - "SectionHeader", - "SectionHeader32", - "StringTable", - "Symbol", - }, - "debug/plan9obj": { - "ErrNoSymbols", - "File", - "FileHeader", - "Magic386", - "Magic64", - "MagicAMD64", - "MagicARM", - "NewFile", - "Open", - "Section", - "SectionHeader", - "Sym", - }, - "embed": { - "FS", - }, - "encoding": { - "BinaryMarshaler", - "BinaryUnmarshaler", - "TextMarshaler", - "TextUnmarshaler", - }, - "encoding/ascii85": { - "CorruptInputError", - "Decode", - "Encode", - "MaxEncodedLen", - "NewDecoder", - "NewEncoder", - }, - "encoding/asn1": { - "BitString", - "ClassApplication", - "ClassContextSpecific", - "ClassPrivate", - "ClassUniversal", - "Enumerated", - "Flag", - "Marshal", - "MarshalWithParams", - "NullBytes", - "NullRawValue", - "ObjectIdentifier", - "RawContent", - "RawValue", - "StructuralError", - "SyntaxError", - "TagBMPString", - "TagBitString", - "TagBoolean", - "TagEnum", - "TagGeneralString", - "TagGeneralizedTime", - "TagIA5String", - "TagInteger", - "TagNull", - "TagNumericString", - "TagOID", - "TagOctetString", - "TagPrintableString", - "TagSequence", - "TagSet", - "TagT61String", - "TagUTCTime", - "TagUTF8String", - "Unmarshal", - "UnmarshalWithParams", - }, - "encoding/base32": { - "CorruptInputError", - "Encoding", - "HexEncoding", - "NewDecoder", - "NewEncoder", - "NewEncoding", - "NoPadding", - "StdEncoding", - "StdPadding", - }, - "encoding/base64": { - "CorruptInputError", - "Encoding", - "NewDecoder", - "NewEncoder", - "NewEncoding", - "NoPadding", - "RawStdEncoding", - "RawURLEncoding", - "StdEncoding", - "StdPadding", - "URLEncoding", - }, - "encoding/binary": { - "AppendByteOrder", - "AppendUvarint", - "AppendVarint", - "BigEndian", - "ByteOrder", - "LittleEndian", - "MaxVarintLen16", - "MaxVarintLen32", - "MaxVarintLen64", - "NativeEndian", - "PutUvarint", - "PutVarint", - "Read", - "ReadUvarint", - "ReadVarint", - "Size", - "Uvarint", - "Varint", - "Write", - }, - "encoding/csv": { - "ErrBareQuote", - "ErrFieldCount", - "ErrQuote", - "ErrTrailingComma", - "NewReader", - "NewWriter", - "ParseError", - "Reader", - "Writer", - }, - "encoding/gob": { - "CommonType", - "Decoder", - "Encoder", - "GobDecoder", - "GobEncoder", - "NewDecoder", - "NewEncoder", - "Register", - "RegisterName", - }, - "encoding/hex": { - "AppendDecode", - "AppendEncode", - "Decode", - "DecodeString", - "DecodedLen", - "Dump", - "Dumper", - "Encode", - "EncodeToString", - "EncodedLen", - "ErrLength", - "InvalidByteError", - "NewDecoder", - "NewEncoder", - }, - "encoding/json": { - "Compact", - "Decoder", - "Delim", - "Encoder", - "HTMLEscape", - "Indent", - "InvalidUTF8Error", - "InvalidUnmarshalError", - "Marshal", - "MarshalIndent", - "Marshaler", - "MarshalerError", - "NewDecoder", - "NewEncoder", - "Number", - "RawMessage", - "SyntaxError", - "Token", - "Unmarshal", - "UnmarshalFieldError", - "UnmarshalTypeError", - "Unmarshaler", - "UnsupportedTypeError", - "UnsupportedValueError", - "Valid", - }, - "encoding/pem": { - "Block", - "Decode", - "Encode", - "EncodeToMemory", - }, - "encoding/xml": { - "Attr", - "CharData", - "Comment", - "CopyToken", - "Decoder", - "Directive", - "Encoder", - "EndElement", - "Escape", - "EscapeText", - "HTMLAutoClose", - "HTMLEntity", - "Header", - "Marshal", - "MarshalIndent", - "Marshaler", - "MarshalerAttr", - "Name", - "NewDecoder", - "NewEncoder", - "NewTokenDecoder", - "ProcInst", - "StartElement", - "SyntaxError", - "TagPathError", - "Token", - "TokenReader", - "Unmarshal", - "UnmarshalError", - "Unmarshaler", - "UnmarshalerAttr", - "UnsupportedTypeError", - }, - "errors": { - "As", - "ErrUnsupported", - "Is", - "Join", - "New", - "Unwrap", - }, - "expvar": { - "Do", - "Float", - "Func", - "Get", - "Handler", - "Int", - "KeyValue", - "Map", - "NewFloat", - "NewInt", - "NewMap", - "NewString", - "Publish", - "String", - "Var", - }, - "flag": { - "Arg", - "Args", - "Bool", - "BoolFunc", - "BoolVar", - "CommandLine", - "ContinueOnError", - "Duration", - "DurationVar", - "ErrHelp", - "ErrorHandling", - "ExitOnError", - "Flag", - "FlagSet", - "Float64", - "Float64Var", - "Func", - "Getter", - "Int", - "Int64", - "Int64Var", - "IntVar", - "Lookup", - "NArg", - "NFlag", - "NewFlagSet", - "PanicOnError", - "Parse", - "Parsed", - "PrintDefaults", - "Set", - "String", - "StringVar", - "TextVar", - "Uint", - "Uint64", - "Uint64Var", - "UintVar", - "UnquoteUsage", - "Usage", - "Value", - "Var", - "Visit", - "VisitAll", - }, - "fmt": { - "Append", - "Appendf", - "Appendln", - "Errorf", - "FormatString", - "Formatter", - "Fprint", - "Fprintf", - "Fprintln", - "Fscan", - "Fscanf", - "Fscanln", - "GoStringer", - "Print", - "Printf", - "Println", - "Scan", - "ScanState", - "Scanf", - "Scanln", - "Scanner", - "Sprint", - "Sprintf", - "Sprintln", - "Sscan", - "Sscanf", - "Sscanln", - "State", - "Stringer", - }, - "go/ast": { - "ArrayType", - "AssignStmt", - "Bad", - "BadDecl", - "BadExpr", - "BadStmt", - "BasicLit", - "BinaryExpr", - "BlockStmt", - "BranchStmt", - "CallExpr", - "CaseClause", - "ChanDir", - "ChanType", - "CommClause", - "Comment", - "CommentGroup", - "CommentMap", - "CompositeLit", - "Con", - "Decl", - "DeclStmt", - "DeferStmt", - "Ellipsis", - "EmptyStmt", - "Expr", - "ExprStmt", - "Field", - "FieldFilter", - "FieldList", - "File", - "FileExports", - "Filter", - "FilterDecl", - "FilterFile", - "FilterFuncDuplicates", - "FilterImportDuplicates", - "FilterPackage", - "FilterUnassociatedComments", - "ForStmt", - "Fprint", - "Fun", - "FuncDecl", - "FuncLit", - "FuncType", - "GenDecl", - "GoStmt", - "Ident", - "IfStmt", - "ImportSpec", - "Importer", - "IncDecStmt", - "IndexExpr", - "IndexListExpr", - "Inspect", - "InterfaceType", - "IsExported", - "IsGenerated", - "KeyValueExpr", - "LabeledStmt", - "Lbl", - "MapType", - "MergeMode", - "MergePackageFiles", - "NewCommentMap", - "NewIdent", - "NewObj", - "NewPackage", - "NewScope", - "Node", - "NotNilFilter", - "ObjKind", - "Object", - "Package", - "PackageExports", - "ParenExpr", - "Pkg", - "Print", - "RECV", - "RangeStmt", - "ReturnStmt", - "SEND", - "Scope", - "SelectStmt", - "SelectorExpr", - "SendStmt", - "SliceExpr", - "SortImports", - "Spec", - "StarExpr", - "Stmt", - "StructType", - "SwitchStmt", - "Typ", - "TypeAssertExpr", - "TypeSpec", - "TypeSwitchStmt", - "UnaryExpr", - "Unparen", - "ValueSpec", - "Var", - "Visitor", - "Walk", - }, - "go/build": { - "AllowBinary", - "ArchChar", - "Context", - "Default", - "Directive", - "FindOnly", - "IgnoreVendor", - "Import", - "ImportComment", - "ImportDir", - "ImportMode", - "IsLocalImport", - "MultiplePackageError", - "NoGoError", - "Package", - "ToolDir", - }, - "go/build/constraint": { - "AndExpr", - "Expr", - "GoVersion", - "IsGoBuild", - "IsPlusBuild", - "NotExpr", - "OrExpr", - "Parse", - "PlusBuildLines", - "SyntaxError", - "TagExpr", - }, - "go/constant": { - "BinaryOp", - "BitLen", - "Bool", - "BoolVal", - "Bytes", - "Compare", - "Complex", - "Denom", - "Float", - "Float32Val", - "Float64Val", - "Imag", - "Int", - "Int64Val", - "Kind", - "Make", - "MakeBool", - "MakeFloat64", - "MakeFromBytes", - "MakeFromLiteral", - "MakeImag", - "MakeInt64", - "MakeString", - "MakeUint64", - "MakeUnknown", - "Num", - "Real", - "Shift", - "Sign", - "String", - "StringVal", - "ToComplex", - "ToFloat", - "ToInt", - "Uint64Val", - "UnaryOp", - "Unknown", - "Val", - "Value", - }, - "go/doc": { - "AllDecls", - "AllMethods", - "Example", - "Examples", - "Filter", - "Func", - "IllegalPrefixes", - "IsPredeclared", - "Mode", - "New", - "NewFromFiles", - "Note", - "Package", - "PreserveAST", - "Synopsis", - "ToHTML", - "ToText", - "Type", - "Value", - }, - "go/doc/comment": { - "Block", - "Code", - "DefaultLookupPackage", - "Doc", - "DocLink", - "Heading", - "Italic", - "Link", - "LinkDef", - "List", - "ListItem", - "Paragraph", - "Parser", - "Plain", - "Printer", - "Text", - }, - "go/format": { - "Node", - "Source", - }, - "go/importer": { - "Default", - "For", - "ForCompiler", - "Lookup", - }, - "go/parser": { - "AllErrors", - "DeclarationErrors", - "ImportsOnly", - "Mode", - "PackageClauseOnly", - "ParseComments", - "ParseDir", - "ParseExpr", - "ParseExprFrom", - "ParseFile", - "SkipObjectResolution", - "SpuriousErrors", - "Trace", - }, - "go/printer": { - "CommentedNode", - "Config", - "Fprint", - "Mode", - "RawFormat", - "SourcePos", - "TabIndent", - "UseSpaces", - }, - "go/scanner": { - "Error", - "ErrorHandler", - "ErrorList", - "Mode", - "PrintError", - "ScanComments", - "Scanner", - }, - "go/token": { - "ADD", - "ADD_ASSIGN", - "AND", - "AND_ASSIGN", - "AND_NOT", - "AND_NOT_ASSIGN", - "ARROW", - "ASSIGN", - "BREAK", - "CASE", - "CHAN", - "CHAR", - "COLON", - "COMMA", - "COMMENT", - "CONST", - "CONTINUE", - "DEC", - "DEFAULT", - "DEFER", - "DEFINE", - "ELLIPSIS", - "ELSE", - "EOF", - "EQL", - "FALLTHROUGH", - "FLOAT", - "FOR", - "FUNC", - "File", - "FileSet", - "GEQ", - "GO", - "GOTO", - "GTR", - "HighestPrec", - "IDENT", - "IF", - "ILLEGAL", - "IMAG", - "IMPORT", - "INC", - "INT", - "INTERFACE", - "IsExported", - "IsIdentifier", - "IsKeyword", - "LAND", - "LBRACE", - "LBRACK", - "LEQ", - "LOR", - "LPAREN", - "LSS", - "Lookup", - "LowestPrec", - "MAP", - "MUL", - "MUL_ASSIGN", - "NEQ", - "NOT", - "NewFileSet", - "NoPos", - "OR", - "OR_ASSIGN", - "PACKAGE", - "PERIOD", - "Pos", - "Position", - "QUO", - "QUO_ASSIGN", - "RANGE", - "RBRACE", - "RBRACK", - "REM", - "REM_ASSIGN", - "RETURN", - "RPAREN", - "SELECT", - "SEMICOLON", - "SHL", - "SHL_ASSIGN", - "SHR", - "SHR_ASSIGN", - "STRING", - "STRUCT", - "SUB", - "SUB_ASSIGN", - "SWITCH", - "TILDE", - "TYPE", - "Token", - "UnaryPrec", - "VAR", - "XOR", - "XOR_ASSIGN", - }, - "go/types": { - "Alias", - "ArgumentError", - "Array", - "AssertableTo", - "AssignableTo", - "Basic", - "BasicInfo", - "BasicKind", - "Bool", - "Builtin", - "Byte", - "Chan", - "ChanDir", - "CheckExpr", - "Checker", - "Comparable", - "Complex128", - "Complex64", - "Config", - "Const", - "Context", - "ConvertibleTo", - "DefPredeclaredTestFuncs", - "Default", - "Error", - "Eval", - "ExprString", - "FieldVal", - "Float32", - "Float64", - "Func", - "Id", - "Identical", - "IdenticalIgnoreTags", - "Implements", - "ImportMode", - "Importer", - "ImporterFrom", - "Info", - "Initializer", - "Instance", - "Instantiate", - "Int", - "Int16", - "Int32", - "Int64", - "Int8", - "Interface", - "Invalid", - "IsBoolean", - "IsComplex", - "IsConstType", - "IsFloat", - "IsInteger", - "IsInterface", - "IsNumeric", - "IsOrdered", - "IsString", - "IsUnsigned", - "IsUntyped", - "Label", - "LookupFieldOrMethod", - "Map", - "MethodExpr", - "MethodSet", - "MethodVal", - "MissingMethod", - "Named", - "NewAlias", - "NewArray", - "NewChan", - "NewChecker", - "NewConst", - "NewContext", - "NewField", - "NewFunc", - "NewInterface", - "NewInterfaceType", - "NewLabel", - "NewMap", - "NewMethodSet", - "NewNamed", - "NewPackage", - "NewParam", - "NewPkgName", - "NewPointer", - "NewScope", - "NewSignature", - "NewSignatureType", - "NewSlice", - "NewStruct", - "NewTerm", - "NewTuple", - "NewTypeName", - "NewTypeParam", - "NewUnion", - "NewVar", - "Nil", - "Object", - "ObjectString", - "Package", - "PkgName", - "Pointer", - "Qualifier", - "RecvOnly", - "RelativeTo", - "Rune", - "Satisfies", - "Scope", - "Selection", - "SelectionKind", - "SelectionString", - "SendOnly", - "SendRecv", - "Signature", - "Sizes", - "SizesFor", - "Slice", - "StdSizes", - "String", - "Struct", - "Term", - "Tuple", - "Typ", - "Type", - "TypeAndValue", - "TypeList", - "TypeName", - "TypeParam", - "TypeParamList", - "TypeString", - "Uint", - "Uint16", - "Uint32", - "Uint64", - "Uint8", - "Uintptr", - "Unalias", - "Union", - "Universe", - "Unsafe", - "UnsafePointer", - "UntypedBool", - "UntypedComplex", - "UntypedFloat", - "UntypedInt", - "UntypedNil", - "UntypedRune", - "UntypedString", - "Var", - "WriteExpr", - "WriteSignature", - "WriteType", - }, - "go/version": { - "Compare", - "IsValid", - "Lang", - }, - "hash": { - "Hash", - "Hash32", - "Hash64", - }, - "hash/adler32": { - "Checksum", - "New", - "Size", - }, - "hash/crc32": { - "Castagnoli", - "Checksum", - "ChecksumIEEE", - "IEEE", - "IEEETable", - "Koopman", - "MakeTable", - "New", - "NewIEEE", - "Size", - "Table", - "Update", - }, - "hash/crc64": { - "Checksum", - "ECMA", - "ISO", - "MakeTable", - "New", - "Size", - "Table", - "Update", - }, - "hash/fnv": { - "New128", - "New128a", - "New32", - "New32a", - "New64", - "New64a", - }, - "hash/maphash": { - "Bytes", - "Hash", - "MakeSeed", - "Seed", - "String", - }, - "html": { - "EscapeString", - "UnescapeString", - }, - "html/template": { - "CSS", - "ErrAmbigContext", - "ErrBadHTML", - "ErrBranchEnd", - "ErrEndContext", - "ErrJSTemplate", - "ErrNoSuchTemplate", - "ErrOutputContext", - "ErrPartialCharset", - "ErrPartialEscape", - "ErrPredefinedEscaper", - "ErrRangeLoopReentry", - "ErrSlashAmbig", - "Error", - "ErrorCode", - "FuncMap", - "HTML", - "HTMLAttr", - "HTMLEscape", - "HTMLEscapeString", - "HTMLEscaper", - "IsTrue", - "JS", - "JSEscape", - "JSEscapeString", - "JSEscaper", - "JSStr", - "Must", - "New", - "OK", - "ParseFS", - "ParseFiles", - "ParseGlob", - "Srcset", - "Template", - "URL", - "URLQueryEscaper", - }, - "image": { - "Alpha", - "Alpha16", - "Black", - "CMYK", - "Config", - "Decode", - "DecodeConfig", - "ErrFormat", - "Gray", - "Gray16", - "Image", - "NRGBA", - "NRGBA64", - "NYCbCrA", - "NewAlpha", - "NewAlpha16", - "NewCMYK", - "NewGray", - "NewGray16", - "NewNRGBA", - "NewNRGBA64", - "NewNYCbCrA", - "NewPaletted", - "NewRGBA", - "NewRGBA64", - "NewUniform", - "NewYCbCr", - "Opaque", - "Paletted", - "PalettedImage", - "Point", - "Pt", - "RGBA", - "RGBA64", - "RGBA64Image", - "Rect", - "Rectangle", - "RegisterFormat", - "Transparent", - "Uniform", - "White", - "YCbCr", - "YCbCrSubsampleRatio", - "YCbCrSubsampleRatio410", - "YCbCrSubsampleRatio411", - "YCbCrSubsampleRatio420", - "YCbCrSubsampleRatio422", - "YCbCrSubsampleRatio440", - "YCbCrSubsampleRatio444", - "ZP", - "ZR", - }, - "image/color": { - "Alpha", - "Alpha16", - "Alpha16Model", - "AlphaModel", - "Black", - "CMYK", - "CMYKModel", - "CMYKToRGB", - "Color", - "Gray", - "Gray16", - "Gray16Model", - "GrayModel", - "Model", - "ModelFunc", - "NRGBA", - "NRGBA64", - "NRGBA64Model", - "NRGBAModel", - "NYCbCrA", - "NYCbCrAModel", - "Opaque", - "Palette", - "RGBA", - "RGBA64", - "RGBA64Model", - "RGBAModel", - "RGBToCMYK", - "RGBToYCbCr", - "Transparent", - "White", - "YCbCr", - "YCbCrModel", - "YCbCrToRGB", - }, - "image/color/palette": { - "Plan9", - "WebSafe", - }, - "image/draw": { - "Draw", - "DrawMask", - "Drawer", - "FloydSteinberg", - "Image", - "Op", - "Over", - "Quantizer", - "RGBA64Image", - "Src", - }, - "image/gif": { - "Decode", - "DecodeAll", - "DecodeConfig", - "DisposalBackground", - "DisposalNone", - "DisposalPrevious", - "Encode", - "EncodeAll", - "GIF", - "Options", - }, - "image/jpeg": { - "Decode", - "DecodeConfig", - "DefaultQuality", - "Encode", - "FormatError", - "Options", - "Reader", - "UnsupportedError", - }, - "image/png": { - "BestCompression", - "BestSpeed", - "CompressionLevel", - "Decode", - "DecodeConfig", - "DefaultCompression", - "Encode", - "Encoder", - "EncoderBuffer", - "EncoderBufferPool", - "FormatError", - "NoCompression", - "UnsupportedError", - }, - "index/suffixarray": { - "Index", - "New", - }, - "io": { - "ByteReader", - "ByteScanner", - "ByteWriter", - "Closer", - "Copy", - "CopyBuffer", - "CopyN", - "Discard", - "EOF", - "ErrClosedPipe", - "ErrNoProgress", - "ErrShortBuffer", - "ErrShortWrite", - "ErrUnexpectedEOF", - "LimitReader", - "LimitedReader", - "MultiReader", - "MultiWriter", - "NewOffsetWriter", - "NewSectionReader", - "NopCloser", - "OffsetWriter", - "Pipe", - "PipeReader", - "PipeWriter", - "ReadAll", - "ReadAtLeast", - "ReadCloser", - "ReadFull", - "ReadSeekCloser", - "ReadSeeker", - "ReadWriteCloser", - "ReadWriteSeeker", - "ReadWriter", - "Reader", - "ReaderAt", - "ReaderFrom", - "RuneReader", - "RuneScanner", - "SectionReader", - "SeekCurrent", - "SeekEnd", - "SeekStart", - "Seeker", - "StringWriter", - "TeeReader", - "WriteCloser", - "WriteSeeker", - "WriteString", - "Writer", - "WriterAt", - "WriterTo", - }, - "io/fs": { - "DirEntry", - "ErrClosed", - "ErrExist", - "ErrInvalid", - "ErrNotExist", - "ErrPermission", - "FS", - "File", - "FileInfo", - "FileInfoToDirEntry", - "FileMode", - "FormatDirEntry", - "FormatFileInfo", - "Glob", - "GlobFS", - "ModeAppend", - "ModeCharDevice", - "ModeDevice", - "ModeDir", - "ModeExclusive", - "ModeIrregular", - "ModeNamedPipe", - "ModePerm", - "ModeSetgid", - "ModeSetuid", - "ModeSocket", - "ModeSticky", - "ModeSymlink", - "ModeTemporary", - "ModeType", - "PathError", - "ReadDir", - "ReadDirFS", - "ReadDirFile", - "ReadFile", - "ReadFileFS", - "SkipAll", - "SkipDir", - "Stat", - "StatFS", - "Sub", - "SubFS", - "ValidPath", - "WalkDir", - "WalkDirFunc", - }, - "io/ioutil": { - "Discard", - "NopCloser", - "ReadAll", - "ReadDir", - "ReadFile", - "TempDir", - "TempFile", - "WriteFile", - }, - "log": { - "Default", - "Fatal", - "Fatalf", - "Fatalln", - "Flags", - "LUTC", - "Ldate", - "Llongfile", - "Lmicroseconds", - "Lmsgprefix", - "Logger", - "Lshortfile", - "LstdFlags", - "Ltime", - "New", - "Output", - "Panic", - "Panicf", - "Panicln", - "Prefix", - "Print", - "Printf", - "Println", - "SetFlags", - "SetOutput", - "SetPrefix", - "Writer", - }, - "log/slog": { - "Any", - "AnyValue", - "Attr", - "Bool", - "BoolValue", - "Debug", - "DebugContext", - "Default", - "Duration", - "DurationValue", - "Error", - "ErrorContext", - "Float64", - "Float64Value", - "Group", - "GroupValue", - "Handler", - "HandlerOptions", - "Info", - "InfoContext", - "Int", - "Int64", - "Int64Value", - "IntValue", - "JSONHandler", - "Kind", - "KindAny", - "KindBool", - "KindDuration", - "KindFloat64", - "KindGroup", - "KindInt64", - "KindLogValuer", - "KindString", - "KindTime", - "KindUint64", - "Level", - "LevelDebug", - "LevelError", - "LevelInfo", - "LevelKey", - "LevelVar", - "LevelWarn", - "Leveler", - "Log", - "LogAttrs", - "LogValuer", - "Logger", - "MessageKey", - "New", - "NewJSONHandler", - "NewLogLogger", - "NewRecord", - "NewTextHandler", - "Record", - "SetDefault", - "SetLogLoggerLevel", - "Source", - "SourceKey", - "String", - "StringValue", - "TextHandler", - "Time", - "TimeKey", - "TimeValue", - "Uint64", - "Uint64Value", - "Value", - "Warn", - "WarnContext", - "With", - }, - "log/syslog": { - "Dial", - "LOG_ALERT", - "LOG_AUTH", - "LOG_AUTHPRIV", - "LOG_CRIT", - "LOG_CRON", - "LOG_DAEMON", - "LOG_DEBUG", - "LOG_EMERG", - "LOG_ERR", - "LOG_FTP", - "LOG_INFO", - "LOG_KERN", - "LOG_LOCAL0", - "LOG_LOCAL1", - "LOG_LOCAL2", - "LOG_LOCAL3", - "LOG_LOCAL4", - "LOG_LOCAL5", - "LOG_LOCAL6", - "LOG_LOCAL7", - "LOG_LPR", - "LOG_MAIL", - "LOG_NEWS", - "LOG_NOTICE", - "LOG_SYSLOG", - "LOG_USER", - "LOG_UUCP", - "LOG_WARNING", - "New", - "NewLogger", - "Priority", - "Writer", - }, - "maps": { - "Clone", - "Copy", - "DeleteFunc", - "Equal", - "EqualFunc", - }, - "math": { - "Abs", - "Acos", - "Acosh", - "Asin", - "Asinh", - "Atan", - "Atan2", - "Atanh", - "Cbrt", - "Ceil", - "Copysign", - "Cos", - "Cosh", - "Dim", - "E", - "Erf", - "Erfc", - "Erfcinv", - "Erfinv", - "Exp", - "Exp2", - "Expm1", - "FMA", - "Float32bits", - "Float32frombits", - "Float64bits", - "Float64frombits", - "Floor", - "Frexp", - "Gamma", - "Hypot", - "Ilogb", - "Inf", - "IsInf", - "IsNaN", - "J0", - "J1", - "Jn", - "Ldexp", - "Lgamma", - "Ln10", - "Ln2", - "Log", - "Log10", - "Log10E", - "Log1p", - "Log2", - "Log2E", - "Logb", - "Max", - "MaxFloat32", - "MaxFloat64", - "MaxInt", - "MaxInt16", - "MaxInt32", - "MaxInt64", - "MaxInt8", - "MaxUint", - "MaxUint16", - "MaxUint32", - "MaxUint64", - "MaxUint8", - "Min", - "MinInt", - "MinInt16", - "MinInt32", - "MinInt64", - "MinInt8", - "Mod", - "Modf", - "NaN", - "Nextafter", - "Nextafter32", - "Phi", - "Pi", - "Pow", - "Pow10", - "Remainder", - "Round", - "RoundToEven", - "Signbit", - "Sin", - "Sincos", - "Sinh", - "SmallestNonzeroFloat32", - "SmallestNonzeroFloat64", - "Sqrt", - "Sqrt2", - "SqrtE", - "SqrtPhi", - "SqrtPi", - "Tan", - "Tanh", - "Trunc", - "Y0", - "Y1", - "Yn", - }, - "math/big": { - "Above", - "Accuracy", - "AwayFromZero", - "Below", - "ErrNaN", - "Exact", - "Float", - "Int", - "Jacobi", - "MaxBase", - "MaxExp", - "MaxPrec", - "MinExp", - "NewFloat", - "NewInt", - "NewRat", - "ParseFloat", - "Rat", - "RoundingMode", - "ToNearestAway", - "ToNearestEven", - "ToNegativeInf", - "ToPositiveInf", - "ToZero", - "Word", - }, - "math/bits": { - "Add", - "Add32", - "Add64", - "Div", - "Div32", - "Div64", - "LeadingZeros", - "LeadingZeros16", - "LeadingZeros32", - "LeadingZeros64", - "LeadingZeros8", - "Len", - "Len16", - "Len32", - "Len64", - "Len8", - "Mul", - "Mul32", - "Mul64", - "OnesCount", - "OnesCount16", - "OnesCount32", - "OnesCount64", - "OnesCount8", - "Rem", - "Rem32", - "Rem64", - "Reverse", - "Reverse16", - "Reverse32", - "Reverse64", - "Reverse8", - "ReverseBytes", - "ReverseBytes16", - "ReverseBytes32", - "ReverseBytes64", - "RotateLeft", - "RotateLeft16", - "RotateLeft32", - "RotateLeft64", - "RotateLeft8", - "Sub", - "Sub32", - "Sub64", - "TrailingZeros", - "TrailingZeros16", - "TrailingZeros32", - "TrailingZeros64", - "TrailingZeros8", - "UintSize", - }, - "math/cmplx": { - "Abs", - "Acos", - "Acosh", - "Asin", - "Asinh", - "Atan", - "Atanh", - "Conj", - "Cos", - "Cosh", - "Cot", - "Exp", - "Inf", - "IsInf", - "IsNaN", - "Log", - "Log10", - "NaN", - "Phase", - "Polar", - "Pow", - "Rect", - "Sin", - "Sinh", - "Sqrt", - "Tan", - "Tanh", - }, - "math/rand": { - "ExpFloat64", - "Float32", - "Float64", - "Int", - "Int31", - "Int31n", - "Int63", - "Int63n", - "Intn", - "New", - "NewSource", - "NewZipf", - "NormFloat64", - "Perm", - "Rand", - "Read", - "Seed", - "Shuffle", - "Source", - "Source64", - "Uint32", - "Uint64", - "Zipf", - }, - "math/rand/v2": { - "ChaCha8", - "ExpFloat64", - "Float32", - "Float64", - "Int", - "Int32", - "Int32N", - "Int64", - "Int64N", - "IntN", - "N", - "New", - "NewChaCha8", - "NewPCG", - "NewZipf", - "NormFloat64", - "PCG", - "Perm", - "Rand", - "Shuffle", - "Source", - "Uint32", - "Uint32N", - "Uint64", - "Uint64N", - "UintN", - "Zipf", - }, - "mime": { - "AddExtensionType", - "BEncoding", - "ErrInvalidMediaParameter", - "ExtensionsByType", - "FormatMediaType", - "ParseMediaType", - "QEncoding", - "TypeByExtension", - "WordDecoder", - "WordEncoder", - }, - "mime/multipart": { - "ErrMessageTooLarge", - "File", - "FileHeader", - "Form", - "NewReader", - "NewWriter", - "Part", - "Reader", - "Writer", - }, - "mime/quotedprintable": { - "NewReader", - "NewWriter", - "Reader", - "Writer", - }, - "net": { - "Addr", - "AddrError", - "Buffers", - "CIDRMask", - "Conn", - "DNSConfigError", - "DNSError", - "DefaultResolver", - "Dial", - "DialIP", - "DialTCP", - "DialTimeout", - "DialUDP", - "DialUnix", - "Dialer", - "ErrClosed", - "ErrWriteToConnected", - "Error", - "FileConn", - "FileListener", - "FilePacketConn", - "FlagBroadcast", - "FlagLoopback", - "FlagMulticast", - "FlagPointToPoint", - "FlagRunning", - "FlagUp", - "Flags", - "HardwareAddr", - "IP", - "IPAddr", - "IPConn", - "IPMask", - "IPNet", - "IPv4", - "IPv4Mask", - "IPv4allrouter", - "IPv4allsys", - "IPv4bcast", - "IPv4len", - "IPv4zero", - "IPv6interfacelocalallnodes", - "IPv6len", - "IPv6linklocalallnodes", - "IPv6linklocalallrouters", - "IPv6loopback", - "IPv6unspecified", - "IPv6zero", - "Interface", - "InterfaceAddrs", - "InterfaceByIndex", - "InterfaceByName", - "Interfaces", - "InvalidAddrError", - "JoinHostPort", - "Listen", - "ListenConfig", - "ListenIP", - "ListenMulticastUDP", - "ListenPacket", - "ListenTCP", - "ListenUDP", - "ListenUnix", - "ListenUnixgram", - "Listener", - "LookupAddr", - "LookupCNAME", - "LookupHost", - "LookupIP", - "LookupMX", - "LookupNS", - "LookupPort", - "LookupSRV", - "LookupTXT", - "MX", - "NS", - "OpError", - "PacketConn", - "ParseCIDR", - "ParseError", - "ParseIP", - "ParseMAC", - "Pipe", - "ResolveIPAddr", - "ResolveTCPAddr", - "ResolveUDPAddr", - "ResolveUnixAddr", - "Resolver", - "SRV", - "SplitHostPort", - "TCPAddr", - "TCPAddrFromAddrPort", - "TCPConn", - "TCPListener", - "UDPAddr", - "UDPAddrFromAddrPort", - "UDPConn", - "UnixAddr", - "UnixConn", - "UnixListener", - "UnknownNetworkError", - }, - "net/http": { - "AllowQuerySemicolons", - "CanonicalHeaderKey", - "Client", - "CloseNotifier", - "ConnState", - "Cookie", - "CookieJar", - "DefaultClient", - "DefaultMaxHeaderBytes", - "DefaultMaxIdleConnsPerHost", - "DefaultServeMux", - "DefaultTransport", - "DetectContentType", - "Dir", - "ErrAbortHandler", - "ErrBodyNotAllowed", - "ErrBodyReadAfterClose", - "ErrContentLength", - "ErrHandlerTimeout", - "ErrHeaderTooLong", - "ErrHijacked", - "ErrLineTooLong", - "ErrMissingBoundary", - "ErrMissingContentLength", - "ErrMissingFile", - "ErrNoCookie", - "ErrNoLocation", - "ErrNotMultipart", - "ErrNotSupported", - "ErrSchemeMismatch", - "ErrServerClosed", - "ErrShortBody", - "ErrSkipAltProtocol", - "ErrUnexpectedTrailer", - "ErrUseLastResponse", - "ErrWriteAfterFlush", - "Error", - "FS", - "File", - "FileServer", - "FileServerFS", - "FileSystem", - "Flusher", - "Get", - "Handle", - "HandleFunc", - "Handler", - "HandlerFunc", - "Head", - "Header", - "Hijacker", - "ListenAndServe", - "ListenAndServeTLS", - "LocalAddrContextKey", - "MaxBytesError", - "MaxBytesHandler", - "MaxBytesReader", - "MethodConnect", - "MethodDelete", - "MethodGet", - "MethodHead", - "MethodOptions", - "MethodPatch", - "MethodPost", - "MethodPut", - "MethodTrace", - "NewFileTransport", - "NewFileTransportFS", - "NewRequest", - "NewRequestWithContext", - "NewResponseController", - "NewServeMux", - "NoBody", - "NotFound", - "NotFoundHandler", - "ParseHTTPVersion", - "ParseTime", - "Post", - "PostForm", - "ProtocolError", - "ProxyFromEnvironment", - "ProxyURL", - "PushOptions", - "Pusher", - "ReadRequest", - "ReadResponse", - "Redirect", - "RedirectHandler", - "Request", - "Response", - "ResponseController", - "ResponseWriter", - "RoundTripper", - "SameSite", - "SameSiteDefaultMode", - "SameSiteLaxMode", - "SameSiteNoneMode", - "SameSiteStrictMode", - "Serve", - "ServeContent", - "ServeFile", - "ServeFileFS", - "ServeMux", - "ServeTLS", - "Server", - "ServerContextKey", - "SetCookie", - "StateActive", - "StateClosed", - "StateHijacked", - "StateIdle", - "StateNew", - "StatusAccepted", - "StatusAlreadyReported", - "StatusBadGateway", - "StatusBadRequest", - "StatusConflict", - "StatusContinue", - "StatusCreated", - "StatusEarlyHints", - "StatusExpectationFailed", - "StatusFailedDependency", - "StatusForbidden", - "StatusFound", - "StatusGatewayTimeout", - "StatusGone", - "StatusHTTPVersionNotSupported", - "StatusIMUsed", - "StatusInsufficientStorage", - "StatusInternalServerError", - "StatusLengthRequired", - "StatusLocked", - "StatusLoopDetected", - "StatusMethodNotAllowed", - "StatusMisdirectedRequest", - "StatusMovedPermanently", - "StatusMultiStatus", - "StatusMultipleChoices", - "StatusNetworkAuthenticationRequired", - "StatusNoContent", - "StatusNonAuthoritativeInfo", - "StatusNotAcceptable", - "StatusNotExtended", - "StatusNotFound", - "StatusNotImplemented", - "StatusNotModified", - "StatusOK", - "StatusPartialContent", - "StatusPaymentRequired", - "StatusPermanentRedirect", - "StatusPreconditionFailed", - "StatusPreconditionRequired", - "StatusProcessing", - "StatusProxyAuthRequired", - "StatusRequestEntityTooLarge", - "StatusRequestHeaderFieldsTooLarge", - "StatusRequestTimeout", - "StatusRequestURITooLong", - "StatusRequestedRangeNotSatisfiable", - "StatusResetContent", - "StatusSeeOther", - "StatusServiceUnavailable", - "StatusSwitchingProtocols", - "StatusTeapot", - "StatusTemporaryRedirect", - "StatusText", - "StatusTooEarly", - "StatusTooManyRequests", - "StatusUnauthorized", - "StatusUnavailableForLegalReasons", - "StatusUnprocessableEntity", - "StatusUnsupportedMediaType", - "StatusUpgradeRequired", - "StatusUseProxy", - "StatusVariantAlsoNegotiates", - "StripPrefix", - "TimeFormat", - "TimeoutHandler", - "TrailerPrefix", - "Transport", - }, - "net/http/cgi": { - "Handler", - "Request", - "RequestFromMap", - "Serve", - }, - "net/http/cookiejar": { - "Jar", - "New", - "Options", - "PublicSuffixList", - }, - "net/http/fcgi": { - "ErrConnClosed", - "ErrRequestAborted", - "ProcessEnv", - "Serve", - }, - "net/http/httptest": { - "DefaultRemoteAddr", - "NewRecorder", - "NewRequest", - "NewServer", - "NewTLSServer", - "NewUnstartedServer", - "ResponseRecorder", - "Server", - }, - "net/http/httptrace": { - "ClientTrace", - "ContextClientTrace", - "DNSDoneInfo", - "DNSStartInfo", - "GotConnInfo", - "WithClientTrace", - "WroteRequestInfo", - }, - "net/http/httputil": { - "BufferPool", - "ClientConn", - "DumpRequest", - "DumpRequestOut", - "DumpResponse", - "ErrClosed", - "ErrLineTooLong", - "ErrPersistEOF", - "ErrPipeline", - "NewChunkedReader", - "NewChunkedWriter", - "NewClientConn", - "NewProxyClientConn", - "NewServerConn", - "NewSingleHostReverseProxy", - "ProxyRequest", - "ReverseProxy", - "ServerConn", - }, - "net/http/pprof": { - "Cmdline", - "Handler", - "Index", - "Profile", - "Symbol", - "Trace", - }, - "net/mail": { - "Address", - "AddressParser", - "ErrHeaderNotPresent", - "Header", - "Message", - "ParseAddress", - "ParseAddressList", - "ParseDate", - "ReadMessage", - }, - "net/netip": { - "Addr", - "AddrFrom16", - "AddrFrom4", - "AddrFromSlice", - "AddrPort", - "AddrPortFrom", - "IPv4Unspecified", - "IPv6LinkLocalAllNodes", - "IPv6LinkLocalAllRouters", - "IPv6Loopback", - "IPv6Unspecified", - "MustParseAddr", - "MustParseAddrPort", - "MustParsePrefix", - "ParseAddr", - "ParseAddrPort", - "ParsePrefix", - "Prefix", - "PrefixFrom", - }, - "net/rpc": { - "Accept", - "Call", - "Client", - "ClientCodec", - "DefaultDebugPath", - "DefaultRPCPath", - "DefaultServer", - "Dial", - "DialHTTP", - "DialHTTPPath", - "ErrShutdown", - "HandleHTTP", - "NewClient", - "NewClientWithCodec", - "NewServer", - "Register", - "RegisterName", - "Request", - "Response", - "ServeCodec", - "ServeConn", - "ServeRequest", - "Server", - "ServerCodec", - "ServerError", - }, - "net/rpc/jsonrpc": { - "Dial", - "NewClient", - "NewClientCodec", - "NewServerCodec", - "ServeConn", - }, - "net/smtp": { - "Auth", - "CRAMMD5Auth", - "Client", - "Dial", - "NewClient", - "PlainAuth", - "SendMail", - "ServerInfo", - }, - "net/textproto": { - "CanonicalMIMEHeaderKey", - "Conn", - "Dial", - "Error", - "MIMEHeader", - "NewConn", - "NewReader", - "NewWriter", - "Pipeline", - "ProtocolError", - "Reader", - "TrimBytes", - "TrimString", - "Writer", - }, - "net/url": { - "Error", - "EscapeError", - "InvalidHostError", - "JoinPath", - "Parse", - "ParseQuery", - "ParseRequestURI", - "PathEscape", - "PathUnescape", - "QueryEscape", - "QueryUnescape", - "URL", - "User", - "UserPassword", - "Userinfo", - "Values", - }, - "os": { - "Args", - "Chdir", - "Chmod", - "Chown", - "Chtimes", - "Clearenv", - "Create", - "CreateTemp", - "DevNull", - "DirEntry", - "DirFS", - "Environ", - "ErrClosed", - "ErrDeadlineExceeded", - "ErrExist", - "ErrInvalid", - "ErrNoDeadline", - "ErrNotExist", - "ErrPermission", - "ErrProcessDone", - "Executable", - "Exit", - "Expand", - "ExpandEnv", - "File", - "FileInfo", - "FileMode", - "FindProcess", - "Getegid", - "Getenv", - "Geteuid", - "Getgid", - "Getgroups", - "Getpagesize", - "Getpid", - "Getppid", - "Getuid", - "Getwd", - "Hostname", - "Interrupt", - "IsExist", - "IsNotExist", - "IsPathSeparator", - "IsPermission", - "IsTimeout", - "Kill", - "Lchown", - "Link", - "LinkError", - "LookupEnv", - "Lstat", - "Mkdir", - "MkdirAll", - "MkdirTemp", - "ModeAppend", - "ModeCharDevice", - "ModeDevice", - "ModeDir", - "ModeExclusive", - "ModeIrregular", - "ModeNamedPipe", - "ModePerm", - "ModeSetgid", - "ModeSetuid", - "ModeSocket", - "ModeSticky", - "ModeSymlink", - "ModeTemporary", - "ModeType", - "NewFile", - "NewSyscallError", - "O_APPEND", - "O_CREATE", - "O_EXCL", - "O_RDONLY", - "O_RDWR", - "O_SYNC", - "O_TRUNC", - "O_WRONLY", - "Open", - "OpenFile", - "PathError", - "PathListSeparator", - "PathSeparator", - "Pipe", - "ProcAttr", - "Process", - "ProcessState", - "ReadDir", - "ReadFile", - "Readlink", - "Remove", - "RemoveAll", - "Rename", - "SEEK_CUR", - "SEEK_END", - "SEEK_SET", - "SameFile", - "Setenv", - "Signal", - "StartProcess", - "Stat", - "Stderr", - "Stdin", - "Stdout", - "Symlink", - "SyscallError", - "TempDir", - "Truncate", - "Unsetenv", - "UserCacheDir", - "UserConfigDir", - "UserHomeDir", - "WriteFile", - }, - "os/exec": { - "Cmd", - "Command", - "CommandContext", - "ErrDot", - "ErrNotFound", - "ErrWaitDelay", - "Error", - "ExitError", - "LookPath", - }, - "os/signal": { - "Ignore", - "Ignored", - "Notify", - "NotifyContext", - "Reset", - "Stop", - }, - "os/user": { - "Current", - "Group", - "Lookup", - "LookupGroup", - "LookupGroupId", - "LookupId", - "UnknownGroupError", - "UnknownGroupIdError", - "UnknownUserError", - "UnknownUserIdError", - "User", - }, - "path": { - "Base", - "Clean", - "Dir", - "ErrBadPattern", - "Ext", - "IsAbs", - "Join", - "Match", - "Split", - }, - "path/filepath": { - "Abs", - "Base", - "Clean", - "Dir", - "ErrBadPattern", - "EvalSymlinks", - "Ext", - "FromSlash", - "Glob", - "HasPrefix", - "IsAbs", - "IsLocal", - "Join", - "ListSeparator", - "Match", - "Rel", - "Separator", - "SkipAll", - "SkipDir", - "Split", - "SplitList", - "ToSlash", - "VolumeName", - "Walk", - "WalkDir", - "WalkFunc", - }, - "plugin": { - "Open", - "Plugin", - "Symbol", - }, - "reflect": { - "Append", - "AppendSlice", - "Array", - "ArrayOf", - "Bool", - "BothDir", - "Chan", - "ChanDir", - "ChanOf", - "Complex128", - "Complex64", - "Copy", - "DeepEqual", - "Float32", - "Float64", - "Func", - "FuncOf", - "Indirect", - "Int", - "Int16", - "Int32", - "Int64", - "Int8", - "Interface", - "Invalid", - "Kind", - "MakeChan", - "MakeFunc", - "MakeMap", - "MakeMapWithSize", - "MakeSlice", - "Map", - "MapIter", - "MapOf", - "Method", - "New", - "NewAt", - "Pointer", - "PointerTo", - "Ptr", - "PtrTo", - "RecvDir", - "Select", - "SelectCase", - "SelectDefault", - "SelectDir", - "SelectRecv", - "SelectSend", - "SendDir", - "Slice", - "SliceHeader", - "SliceOf", - "String", - "StringHeader", - "Struct", - "StructField", - "StructOf", - "StructTag", - "Swapper", - "Type", - "TypeFor", - "TypeOf", - "Uint", - "Uint16", - "Uint32", - "Uint64", - "Uint8", - "Uintptr", - "UnsafePointer", - "Value", - "ValueError", - "ValueOf", - "VisibleFields", - "Zero", - }, - "regexp": { - "Compile", - "CompilePOSIX", - "Match", - "MatchReader", - "MatchString", - "MustCompile", - "MustCompilePOSIX", - "QuoteMeta", - "Regexp", - }, - "regexp/syntax": { - "ClassNL", - "Compile", - "DotNL", - "EmptyBeginLine", - "EmptyBeginText", - "EmptyEndLine", - "EmptyEndText", - "EmptyNoWordBoundary", - "EmptyOp", - "EmptyOpContext", - "EmptyWordBoundary", - "ErrInternalError", - "ErrInvalidCharClass", - "ErrInvalidCharRange", - "ErrInvalidEscape", - "ErrInvalidNamedCapture", - "ErrInvalidPerlOp", - "ErrInvalidRepeatOp", - "ErrInvalidRepeatSize", - "ErrInvalidUTF8", - "ErrLarge", - "ErrMissingBracket", - "ErrMissingParen", - "ErrMissingRepeatArgument", - "ErrNestingDepth", - "ErrTrailingBackslash", - "ErrUnexpectedParen", - "Error", - "ErrorCode", - "Flags", - "FoldCase", - "Inst", - "InstAlt", - "InstAltMatch", - "InstCapture", - "InstEmptyWidth", - "InstFail", - "InstMatch", - "InstNop", - "InstOp", - "InstRune", - "InstRune1", - "InstRuneAny", - "InstRuneAnyNotNL", - "IsWordChar", - "Literal", - "MatchNL", - "NonGreedy", - "OneLine", - "Op", - "OpAlternate", - "OpAnyChar", - "OpAnyCharNotNL", - "OpBeginLine", - "OpBeginText", - "OpCapture", - "OpCharClass", - "OpConcat", - "OpEmptyMatch", - "OpEndLine", - "OpEndText", - "OpLiteral", - "OpNoMatch", - "OpNoWordBoundary", - "OpPlus", - "OpQuest", - "OpRepeat", - "OpStar", - "OpWordBoundary", - "POSIX", - "Parse", - "Perl", - "PerlX", - "Prog", - "Regexp", - "Simple", - "UnicodeGroups", - "WasDollar", - }, - "runtime": { - "BlockProfile", - "BlockProfileRecord", - "Breakpoint", - "CPUProfile", - "Caller", - "Callers", - "CallersFrames", - "Compiler", - "Error", - "Frame", - "Frames", - "Func", - "FuncForPC", - "GC", - "GOARCH", - "GOMAXPROCS", - "GOOS", - "GOROOT", - "Goexit", - "GoroutineProfile", - "Gosched", - "KeepAlive", - "LockOSThread", - "MemProfile", - "MemProfileRate", - "MemProfileRecord", - "MemStats", - "MutexProfile", - "NumCPU", - "NumCgoCall", - "NumGoroutine", - "PanicNilError", - "Pinner", - "ReadMemStats", - "ReadTrace", - "SetBlockProfileRate", - "SetCPUProfileRate", - "SetCgoTraceback", - "SetFinalizer", - "SetMutexProfileFraction", - "Stack", - "StackRecord", - "StartTrace", - "StopTrace", - "ThreadCreateProfile", - "TypeAssertionError", - "UnlockOSThread", - "Version", - }, - "runtime/cgo": { - "Handle", - "Incomplete", - "NewHandle", - }, - "runtime/coverage": { - "ClearCounters", - "WriteCounters", - "WriteCountersDir", - "WriteMeta", - "WriteMetaDir", - }, - "runtime/debug": { - "BuildInfo", - "BuildSetting", - "FreeOSMemory", - "GCStats", - "Module", - "ParseBuildInfo", - "PrintStack", - "ReadBuildInfo", - "ReadGCStats", - "SetGCPercent", - "SetMaxStack", - "SetMaxThreads", - "SetMemoryLimit", - "SetPanicOnFault", - "SetTraceback", - "Stack", - "WriteHeapDump", - }, - "runtime/metrics": { - "All", - "Description", - "Float64Histogram", - "KindBad", - "KindFloat64", - "KindFloat64Histogram", - "KindUint64", - "Read", - "Sample", - "Value", - "ValueKind", - }, - "runtime/pprof": { - "Do", - "ForLabels", - "Label", - "LabelSet", - "Labels", - "Lookup", - "NewProfile", - "Profile", - "Profiles", - "SetGoroutineLabels", - "StartCPUProfile", - "StopCPUProfile", - "WithLabels", - "WriteHeapProfile", - }, - "runtime/trace": { - "IsEnabled", - "Log", - "Logf", - "NewTask", - "Region", - "Start", - "StartRegion", - "Stop", - "Task", - "WithRegion", - }, - "slices": { - "BinarySearch", - "BinarySearchFunc", - "Clip", - "Clone", - "Compact", - "CompactFunc", - "Compare", - "CompareFunc", - "Concat", - "Contains", - "ContainsFunc", - "Delete", - "DeleteFunc", - "Equal", - "EqualFunc", - "Grow", - "Index", - "IndexFunc", - "Insert", - "IsSorted", - "IsSortedFunc", - "Max", - "MaxFunc", - "Min", - "MinFunc", - "Replace", - "Reverse", - "Sort", - "SortFunc", - "SortStableFunc", - }, - "sort": { - "Find", - "Float64Slice", - "Float64s", - "Float64sAreSorted", - "IntSlice", - "Interface", - "Ints", - "IntsAreSorted", - "IsSorted", - "Reverse", - "Search", - "SearchFloat64s", - "SearchInts", - "SearchStrings", - "Slice", - "SliceIsSorted", - "SliceStable", - "Sort", - "Stable", - "StringSlice", - "Strings", - "StringsAreSorted", - }, - "strconv": { - "AppendBool", - "AppendFloat", - "AppendInt", - "AppendQuote", - "AppendQuoteRune", - "AppendQuoteRuneToASCII", - "AppendQuoteRuneToGraphic", - "AppendQuoteToASCII", - "AppendQuoteToGraphic", - "AppendUint", - "Atoi", - "CanBackquote", - "ErrRange", - "ErrSyntax", - "FormatBool", - "FormatComplex", - "FormatFloat", - "FormatInt", - "FormatUint", - "IntSize", - "IsGraphic", - "IsPrint", - "Itoa", - "NumError", - "ParseBool", - "ParseComplex", - "ParseFloat", - "ParseInt", - "ParseUint", - "Quote", - "QuoteRune", - "QuoteRuneToASCII", - "QuoteRuneToGraphic", - "QuoteToASCII", - "QuoteToGraphic", - "QuotedPrefix", - "Unquote", - "UnquoteChar", - }, - "strings": { - "Builder", - "Clone", - "Compare", - "Contains", - "ContainsAny", - "ContainsFunc", - "ContainsRune", - "Count", - "Cut", - "CutPrefix", - "CutSuffix", - "EqualFold", - "Fields", - "FieldsFunc", - "HasPrefix", - "HasSuffix", - "Index", - "IndexAny", - "IndexByte", - "IndexFunc", - "IndexRune", - "Join", - "LastIndex", - "LastIndexAny", - "LastIndexByte", - "LastIndexFunc", - "Map", - "NewReader", - "NewReplacer", - "Reader", - "Repeat", - "Replace", - "ReplaceAll", - "Replacer", - "Split", - "SplitAfter", - "SplitAfterN", - "SplitN", - "Title", - "ToLower", - "ToLowerSpecial", - "ToTitle", - "ToTitleSpecial", - "ToUpper", - "ToUpperSpecial", - "ToValidUTF8", - "Trim", - "TrimFunc", - "TrimLeft", - "TrimLeftFunc", - "TrimPrefix", - "TrimRight", - "TrimRightFunc", - "TrimSpace", - "TrimSuffix", - }, - "sync": { - "Cond", - "Locker", - "Map", - "Mutex", - "NewCond", - "Once", - "OnceFunc", - "OnceValue", - "OnceValues", - "Pool", - "RWMutex", - "WaitGroup", - }, - "sync/atomic": { - "AddInt32", - "AddInt64", - "AddUint32", - "AddUint64", - "AddUintptr", - "Bool", - "CompareAndSwapInt32", - "CompareAndSwapInt64", - "CompareAndSwapPointer", - "CompareAndSwapUint32", - "CompareAndSwapUint64", - "CompareAndSwapUintptr", - "Int32", - "Int64", - "LoadInt32", - "LoadInt64", - "LoadPointer", - "LoadUint32", - "LoadUint64", - "LoadUintptr", - "Pointer", - "StoreInt32", - "StoreInt64", - "StorePointer", - "StoreUint32", - "StoreUint64", - "StoreUintptr", - "SwapInt32", - "SwapInt64", - "SwapPointer", - "SwapUint32", - "SwapUint64", - "SwapUintptr", - "Uint32", - "Uint64", - "Uintptr", - "Value", - }, - "syscall": { - "AF_ALG", - "AF_APPLETALK", - "AF_ARP", - "AF_ASH", - "AF_ATM", - "AF_ATMPVC", - "AF_ATMSVC", - "AF_AX25", - "AF_BLUETOOTH", - "AF_BRIDGE", - "AF_CAIF", - "AF_CAN", - "AF_CCITT", - "AF_CHAOS", - "AF_CNT", - "AF_COIP", - "AF_DATAKIT", - "AF_DECnet", - "AF_DLI", - "AF_E164", - "AF_ECMA", - "AF_ECONET", - "AF_ENCAP", - "AF_FILE", - "AF_HYLINK", - "AF_IEEE80211", - "AF_IEEE802154", - "AF_IMPLINK", - "AF_INET", - "AF_INET6", - "AF_INET6_SDP", - "AF_INET_SDP", - "AF_IPX", - "AF_IRDA", - "AF_ISDN", - "AF_ISO", - "AF_IUCV", - "AF_KEY", - "AF_LAT", - "AF_LINK", - "AF_LLC", - "AF_LOCAL", - "AF_MAX", - "AF_MPLS", - "AF_NATM", - "AF_NDRV", - "AF_NETBEUI", - "AF_NETBIOS", - "AF_NETGRAPH", - "AF_NETLINK", - "AF_NETROM", - "AF_NS", - "AF_OROUTE", - "AF_OSI", - "AF_PACKET", - "AF_PHONET", - "AF_PPP", - "AF_PPPOX", - "AF_PUP", - "AF_RDS", - "AF_RESERVED_36", - "AF_ROSE", - "AF_ROUTE", - "AF_RXRPC", - "AF_SCLUSTER", - "AF_SECURITY", - "AF_SIP", - "AF_SLOW", - "AF_SNA", - "AF_SYSTEM", - "AF_TIPC", - "AF_UNIX", - "AF_UNSPEC", - "AF_UTUN", - "AF_VENDOR00", - "AF_VENDOR01", - "AF_VENDOR02", - "AF_VENDOR03", - "AF_VENDOR04", - "AF_VENDOR05", - "AF_VENDOR06", - "AF_VENDOR07", - "AF_VENDOR08", - "AF_VENDOR09", - "AF_VENDOR10", - "AF_VENDOR11", - "AF_VENDOR12", - "AF_VENDOR13", - "AF_VENDOR14", - "AF_VENDOR15", - "AF_VENDOR16", - "AF_VENDOR17", - "AF_VENDOR18", - "AF_VENDOR19", - "AF_VENDOR20", - "AF_VENDOR21", - "AF_VENDOR22", - "AF_VENDOR23", - "AF_VENDOR24", - "AF_VENDOR25", - "AF_VENDOR26", - "AF_VENDOR27", - "AF_VENDOR28", - "AF_VENDOR29", - "AF_VENDOR30", - "AF_VENDOR31", - "AF_VENDOR32", - "AF_VENDOR33", - "AF_VENDOR34", - "AF_VENDOR35", - "AF_VENDOR36", - "AF_VENDOR37", - "AF_VENDOR38", - "AF_VENDOR39", - "AF_VENDOR40", - "AF_VENDOR41", - "AF_VENDOR42", - "AF_VENDOR43", - "AF_VENDOR44", - "AF_VENDOR45", - "AF_VENDOR46", - "AF_VENDOR47", - "AF_WANPIPE", - "AF_X25", - "AI_CANONNAME", - "AI_NUMERICHOST", - "AI_PASSIVE", - "APPLICATION_ERROR", - "ARPHRD_ADAPT", - "ARPHRD_APPLETLK", - "ARPHRD_ARCNET", - "ARPHRD_ASH", - "ARPHRD_ATM", - "ARPHRD_AX25", - "ARPHRD_BIF", - "ARPHRD_CHAOS", - "ARPHRD_CISCO", - "ARPHRD_CSLIP", - "ARPHRD_CSLIP6", - "ARPHRD_DDCMP", - "ARPHRD_DLCI", - "ARPHRD_ECONET", - "ARPHRD_EETHER", - "ARPHRD_ETHER", - "ARPHRD_EUI64", - "ARPHRD_FCAL", - "ARPHRD_FCFABRIC", - "ARPHRD_FCPL", - "ARPHRD_FCPP", - "ARPHRD_FDDI", - "ARPHRD_FRAD", - "ARPHRD_FRELAY", - "ARPHRD_HDLC", - "ARPHRD_HIPPI", - "ARPHRD_HWX25", - "ARPHRD_IEEE1394", - "ARPHRD_IEEE802", - "ARPHRD_IEEE80211", - "ARPHRD_IEEE80211_PRISM", - "ARPHRD_IEEE80211_RADIOTAP", - "ARPHRD_IEEE802154", - "ARPHRD_IEEE802154_PHY", - "ARPHRD_IEEE802_TR", - "ARPHRD_INFINIBAND", - "ARPHRD_IPDDP", - "ARPHRD_IPGRE", - "ARPHRD_IRDA", - "ARPHRD_LAPB", - "ARPHRD_LOCALTLK", - "ARPHRD_LOOPBACK", - "ARPHRD_METRICOM", - "ARPHRD_NETROM", - "ARPHRD_NONE", - "ARPHRD_PIMREG", - "ARPHRD_PPP", - "ARPHRD_PRONET", - "ARPHRD_RAWHDLC", - "ARPHRD_ROSE", - "ARPHRD_RSRVD", - "ARPHRD_SIT", - "ARPHRD_SKIP", - "ARPHRD_SLIP", - "ARPHRD_SLIP6", - "ARPHRD_STRIP", - "ARPHRD_TUNNEL", - "ARPHRD_TUNNEL6", - "ARPHRD_VOID", - "ARPHRD_X25", - "AUTHTYPE_CLIENT", - "AUTHTYPE_SERVER", - "Accept", - "Accept4", - "AcceptEx", - "Access", - "Acct", - "AddrinfoW", - "Adjtime", - "Adjtimex", - "AllThreadsSyscall", - "AllThreadsSyscall6", - "AttachLsf", - "B0", - "B1000000", - "B110", - "B115200", - "B1152000", - "B1200", - "B134", - "B14400", - "B150", - "B1500000", - "B1800", - "B19200", - "B200", - "B2000000", - "B230400", - "B2400", - "B2500000", - "B28800", - "B300", - "B3000000", - "B3500000", - "B38400", - "B4000000", - "B460800", - "B4800", - "B50", - "B500000", - "B57600", - "B576000", - "B600", - "B7200", - "B75", - "B76800", - "B921600", - "B9600", - "BASE_PROTOCOL", - "BIOCFEEDBACK", - "BIOCFLUSH", - "BIOCGBLEN", - "BIOCGDIRECTION", - "BIOCGDIRFILT", - "BIOCGDLT", - "BIOCGDLTLIST", - "BIOCGETBUFMODE", - "BIOCGETIF", - "BIOCGETZMAX", - "BIOCGFEEDBACK", - "BIOCGFILDROP", - "BIOCGHDRCMPLT", - "BIOCGRSIG", - "BIOCGRTIMEOUT", - "BIOCGSEESENT", - "BIOCGSTATS", - "BIOCGSTATSOLD", - "BIOCGTSTAMP", - "BIOCIMMEDIATE", - "BIOCLOCK", - "BIOCPROMISC", - "BIOCROTZBUF", - "BIOCSBLEN", - "BIOCSDIRECTION", - "BIOCSDIRFILT", - "BIOCSDLT", - "BIOCSETBUFMODE", - "BIOCSETF", - "BIOCSETFNR", - "BIOCSETIF", - "BIOCSETWF", - "BIOCSETZBUF", - "BIOCSFEEDBACK", - "BIOCSFILDROP", - "BIOCSHDRCMPLT", - "BIOCSRSIG", - "BIOCSRTIMEOUT", - "BIOCSSEESENT", - "BIOCSTCPF", - "BIOCSTSTAMP", - "BIOCSUDPF", - "BIOCVERSION", - "BPF_A", - "BPF_ABS", - "BPF_ADD", - "BPF_ALIGNMENT", - "BPF_ALIGNMENT32", - "BPF_ALU", - "BPF_AND", - "BPF_B", - "BPF_BUFMODE_BUFFER", - "BPF_BUFMODE_ZBUF", - "BPF_DFLTBUFSIZE", - "BPF_DIRECTION_IN", - "BPF_DIRECTION_OUT", - "BPF_DIV", - "BPF_H", - "BPF_IMM", - "BPF_IND", - "BPF_JA", - "BPF_JEQ", - "BPF_JGE", - "BPF_JGT", - "BPF_JMP", - "BPF_JSET", - "BPF_K", - "BPF_LD", - "BPF_LDX", - "BPF_LEN", - "BPF_LSH", - "BPF_MAJOR_VERSION", - "BPF_MAXBUFSIZE", - "BPF_MAXINSNS", - "BPF_MEM", - "BPF_MEMWORDS", - "BPF_MINBUFSIZE", - "BPF_MINOR_VERSION", - "BPF_MISC", - "BPF_MSH", - "BPF_MUL", - "BPF_NEG", - "BPF_OR", - "BPF_RELEASE", - "BPF_RET", - "BPF_RSH", - "BPF_ST", - "BPF_STX", - "BPF_SUB", - "BPF_TAX", - "BPF_TXA", - "BPF_T_BINTIME", - "BPF_T_BINTIME_FAST", - "BPF_T_BINTIME_MONOTONIC", - "BPF_T_BINTIME_MONOTONIC_FAST", - "BPF_T_FAST", - "BPF_T_FLAG_MASK", - "BPF_T_FORMAT_MASK", - "BPF_T_MICROTIME", - "BPF_T_MICROTIME_FAST", - "BPF_T_MICROTIME_MONOTONIC", - "BPF_T_MICROTIME_MONOTONIC_FAST", - "BPF_T_MONOTONIC", - "BPF_T_MONOTONIC_FAST", - "BPF_T_NANOTIME", - "BPF_T_NANOTIME_FAST", - "BPF_T_NANOTIME_MONOTONIC", - "BPF_T_NANOTIME_MONOTONIC_FAST", - "BPF_T_NONE", - "BPF_T_NORMAL", - "BPF_W", - "BPF_X", - "BRKINT", - "Bind", - "BindToDevice", - "BpfBuflen", - "BpfDatalink", - "BpfHdr", - "BpfHeadercmpl", - "BpfInsn", - "BpfInterface", - "BpfJump", - "BpfProgram", - "BpfStat", - "BpfStats", - "BpfStmt", - "BpfTimeout", - "BpfTimeval", - "BpfVersion", - "BpfZbuf", - "BpfZbufHeader", - "ByHandleFileInformation", - "BytePtrFromString", - "ByteSliceFromString", - "CCR0_FLUSH", - "CERT_CHAIN_POLICY_AUTHENTICODE", - "CERT_CHAIN_POLICY_AUTHENTICODE_TS", - "CERT_CHAIN_POLICY_BASE", - "CERT_CHAIN_POLICY_BASIC_CONSTRAINTS", - "CERT_CHAIN_POLICY_EV", - "CERT_CHAIN_POLICY_MICROSOFT_ROOT", - "CERT_CHAIN_POLICY_NT_AUTH", - "CERT_CHAIN_POLICY_SSL", - "CERT_E_CN_NO_MATCH", - "CERT_E_EXPIRED", - "CERT_E_PURPOSE", - "CERT_E_ROLE", - "CERT_E_UNTRUSTEDROOT", - "CERT_STORE_ADD_ALWAYS", - "CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG", - "CERT_STORE_PROV_MEMORY", - "CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT", - "CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT", - "CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT", - "CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT", - "CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT", - "CERT_TRUST_INVALID_BASIC_CONSTRAINTS", - "CERT_TRUST_INVALID_EXTENSION", - "CERT_TRUST_INVALID_NAME_CONSTRAINTS", - "CERT_TRUST_INVALID_POLICY_CONSTRAINTS", - "CERT_TRUST_IS_CYCLIC", - "CERT_TRUST_IS_EXPLICIT_DISTRUST", - "CERT_TRUST_IS_NOT_SIGNATURE_VALID", - "CERT_TRUST_IS_NOT_TIME_VALID", - "CERT_TRUST_IS_NOT_VALID_FOR_USAGE", - "CERT_TRUST_IS_OFFLINE_REVOCATION", - "CERT_TRUST_IS_REVOKED", - "CERT_TRUST_IS_UNTRUSTED_ROOT", - "CERT_TRUST_NO_ERROR", - "CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY", - "CERT_TRUST_REVOCATION_STATUS_UNKNOWN", - "CFLUSH", - "CLOCAL", - "CLONE_CHILD_CLEARTID", - "CLONE_CHILD_SETTID", - "CLONE_CLEAR_SIGHAND", - "CLONE_CSIGNAL", - "CLONE_DETACHED", - "CLONE_FILES", - "CLONE_FS", - "CLONE_INTO_CGROUP", - "CLONE_IO", - "CLONE_NEWCGROUP", - "CLONE_NEWIPC", - "CLONE_NEWNET", - "CLONE_NEWNS", - "CLONE_NEWPID", - "CLONE_NEWTIME", - "CLONE_NEWUSER", - "CLONE_NEWUTS", - "CLONE_PARENT", - "CLONE_PARENT_SETTID", - "CLONE_PID", - "CLONE_PIDFD", - "CLONE_PTRACE", - "CLONE_SETTLS", - "CLONE_SIGHAND", - "CLONE_SYSVSEM", - "CLONE_THREAD", - "CLONE_UNTRACED", - "CLONE_VFORK", - "CLONE_VM", - "CPUID_CFLUSH", - "CREAD", - "CREATE_ALWAYS", - "CREATE_NEW", - "CREATE_NEW_PROCESS_GROUP", - "CREATE_UNICODE_ENVIRONMENT", - "CRYPT_DEFAULT_CONTAINER_OPTIONAL", - "CRYPT_DELETEKEYSET", - "CRYPT_MACHINE_KEYSET", - "CRYPT_NEWKEYSET", - "CRYPT_SILENT", - "CRYPT_VERIFYCONTEXT", - "CS5", - "CS6", - "CS7", - "CS8", - "CSIZE", - "CSTART", - "CSTATUS", - "CSTOP", - "CSTOPB", - "CSUSP", - "CTL_MAXNAME", - "CTL_NET", - "CTL_QUERY", - "CTRL_BREAK_EVENT", - "CTRL_CLOSE_EVENT", - "CTRL_C_EVENT", - "CTRL_LOGOFF_EVENT", - "CTRL_SHUTDOWN_EVENT", - "CancelIo", - "CancelIoEx", - "CertAddCertificateContextToStore", - "CertChainContext", - "CertChainElement", - "CertChainPara", - "CertChainPolicyPara", - "CertChainPolicyStatus", - "CertCloseStore", - "CertContext", - "CertCreateCertificateContext", - "CertEnhKeyUsage", - "CertEnumCertificatesInStore", - "CertFreeCertificateChain", - "CertFreeCertificateContext", - "CertGetCertificateChain", - "CertInfo", - "CertOpenStore", - "CertOpenSystemStore", - "CertRevocationCrlInfo", - "CertRevocationInfo", - "CertSimpleChain", - "CertTrustListInfo", - "CertTrustStatus", - "CertUsageMatch", - "CertVerifyCertificateChainPolicy", - "Chdir", - "CheckBpfVersion", - "Chflags", - "Chmod", - "Chown", - "Chroot", - "Clearenv", - "Close", - "CloseHandle", - "CloseOnExec", - "Closesocket", - "CmsgLen", - "CmsgSpace", - "Cmsghdr", - "CommandLineToArgv", - "ComputerName", - "Conn", - "Connect", - "ConnectEx", - "ConvertSidToStringSid", - "ConvertStringSidToSid", - "CopySid", - "Creat", - "CreateDirectory", - "CreateFile", - "CreateFileMapping", - "CreateHardLink", - "CreateIoCompletionPort", - "CreatePipe", - "CreateProcess", - "CreateProcessAsUser", - "CreateSymbolicLink", - "CreateToolhelp32Snapshot", - "Credential", - "CryptAcquireContext", - "CryptGenRandom", - "CryptReleaseContext", - "DIOCBSFLUSH", - "DIOCOSFPFLUSH", - "DLL", - "DLLError", - "DLT_A429", - "DLT_A653_ICM", - "DLT_AIRONET_HEADER", - "DLT_AOS", - "DLT_APPLE_IP_OVER_IEEE1394", - "DLT_ARCNET", - "DLT_ARCNET_LINUX", - "DLT_ATM_CLIP", - "DLT_ATM_RFC1483", - "DLT_AURORA", - "DLT_AX25", - "DLT_AX25_KISS", - "DLT_BACNET_MS_TP", - "DLT_BLUETOOTH_HCI_H4", - "DLT_BLUETOOTH_HCI_H4_WITH_PHDR", - "DLT_CAN20B", - "DLT_CAN_SOCKETCAN", - "DLT_CHAOS", - "DLT_CHDLC", - "DLT_CISCO_IOS", - "DLT_C_HDLC", - "DLT_C_HDLC_WITH_DIR", - "DLT_DBUS", - "DLT_DECT", - "DLT_DOCSIS", - "DLT_DVB_CI", - "DLT_ECONET", - "DLT_EN10MB", - "DLT_EN3MB", - "DLT_ENC", - "DLT_ERF", - "DLT_ERF_ETH", - "DLT_ERF_POS", - "DLT_FC_2", - "DLT_FC_2_WITH_FRAME_DELIMS", - "DLT_FDDI", - "DLT_FLEXRAY", - "DLT_FRELAY", - "DLT_FRELAY_WITH_DIR", - "DLT_GCOM_SERIAL", - "DLT_GCOM_T1E1", - "DLT_GPF_F", - "DLT_GPF_T", - "DLT_GPRS_LLC", - "DLT_GSMTAP_ABIS", - "DLT_GSMTAP_UM", - "DLT_HDLC", - "DLT_HHDLC", - "DLT_HIPPI", - "DLT_IBM_SN", - "DLT_IBM_SP", - "DLT_IEEE802", - "DLT_IEEE802_11", - "DLT_IEEE802_11_RADIO", - "DLT_IEEE802_11_RADIO_AVS", - "DLT_IEEE802_15_4", - "DLT_IEEE802_15_4_LINUX", - "DLT_IEEE802_15_4_NOFCS", - "DLT_IEEE802_15_4_NONASK_PHY", - "DLT_IEEE802_16_MAC_CPS", - "DLT_IEEE802_16_MAC_CPS_RADIO", - "DLT_IPFILTER", - "DLT_IPMB", - "DLT_IPMB_LINUX", - "DLT_IPNET", - "DLT_IPOIB", - "DLT_IPV4", - "DLT_IPV6", - "DLT_IP_OVER_FC", - "DLT_JUNIPER_ATM1", - "DLT_JUNIPER_ATM2", - "DLT_JUNIPER_ATM_CEMIC", - "DLT_JUNIPER_CHDLC", - "DLT_JUNIPER_ES", - "DLT_JUNIPER_ETHER", - "DLT_JUNIPER_FIBRECHANNEL", - "DLT_JUNIPER_FRELAY", - "DLT_JUNIPER_GGSN", - "DLT_JUNIPER_ISM", - "DLT_JUNIPER_MFR", - "DLT_JUNIPER_MLFR", - "DLT_JUNIPER_MLPPP", - "DLT_JUNIPER_MONITOR", - "DLT_JUNIPER_PIC_PEER", - "DLT_JUNIPER_PPP", - "DLT_JUNIPER_PPPOE", - "DLT_JUNIPER_PPPOE_ATM", - "DLT_JUNIPER_SERVICES", - "DLT_JUNIPER_SRX_E2E", - "DLT_JUNIPER_ST", - "DLT_JUNIPER_VP", - "DLT_JUNIPER_VS", - "DLT_LAPB_WITH_DIR", - "DLT_LAPD", - "DLT_LIN", - "DLT_LINUX_EVDEV", - "DLT_LINUX_IRDA", - "DLT_LINUX_LAPD", - "DLT_LINUX_PPP_WITHDIRECTION", - "DLT_LINUX_SLL", - "DLT_LOOP", - "DLT_LTALK", - "DLT_MATCHING_MAX", - "DLT_MATCHING_MIN", - "DLT_MFR", - "DLT_MOST", - "DLT_MPEG_2_TS", - "DLT_MPLS", - "DLT_MTP2", - "DLT_MTP2_WITH_PHDR", - "DLT_MTP3", - "DLT_MUX27010", - "DLT_NETANALYZER", - "DLT_NETANALYZER_TRANSPARENT", - "DLT_NFC_LLCP", - "DLT_NFLOG", - "DLT_NG40", - "DLT_NULL", - "DLT_PCI_EXP", - "DLT_PFLOG", - "DLT_PFSYNC", - "DLT_PPI", - "DLT_PPP", - "DLT_PPP_BSDOS", - "DLT_PPP_ETHER", - "DLT_PPP_PPPD", - "DLT_PPP_SERIAL", - "DLT_PPP_WITH_DIR", - "DLT_PPP_WITH_DIRECTION", - "DLT_PRISM_HEADER", - "DLT_PRONET", - "DLT_RAIF1", - "DLT_RAW", - "DLT_RAWAF_MASK", - "DLT_RIO", - "DLT_SCCP", - "DLT_SITA", - "DLT_SLIP", - "DLT_SLIP_BSDOS", - "DLT_STANAG_5066_D_PDU", - "DLT_SUNATM", - "DLT_SYMANTEC_FIREWALL", - "DLT_TZSP", - "DLT_USB", - "DLT_USB_LINUX", - "DLT_USB_LINUX_MMAPPED", - "DLT_USER0", - "DLT_USER1", - "DLT_USER10", - "DLT_USER11", - "DLT_USER12", - "DLT_USER13", - "DLT_USER14", - "DLT_USER15", - "DLT_USER2", - "DLT_USER3", - "DLT_USER4", - "DLT_USER5", - "DLT_USER6", - "DLT_USER7", - "DLT_USER8", - "DLT_USER9", - "DLT_WIHART", - "DLT_X2E_SERIAL", - "DLT_X2E_XORAYA", - "DNSMXData", - "DNSPTRData", - "DNSRecord", - "DNSSRVData", - "DNSTXTData", - "DNS_INFO_NO_RECORDS", - "DNS_TYPE_A", - "DNS_TYPE_A6", - "DNS_TYPE_AAAA", - "DNS_TYPE_ADDRS", - "DNS_TYPE_AFSDB", - "DNS_TYPE_ALL", - "DNS_TYPE_ANY", - "DNS_TYPE_ATMA", - "DNS_TYPE_AXFR", - "DNS_TYPE_CERT", - "DNS_TYPE_CNAME", - "DNS_TYPE_DHCID", - "DNS_TYPE_DNAME", - "DNS_TYPE_DNSKEY", - "DNS_TYPE_DS", - "DNS_TYPE_EID", - "DNS_TYPE_GID", - "DNS_TYPE_GPOS", - "DNS_TYPE_HINFO", - "DNS_TYPE_ISDN", - "DNS_TYPE_IXFR", - "DNS_TYPE_KEY", - "DNS_TYPE_KX", - "DNS_TYPE_LOC", - "DNS_TYPE_MAILA", - "DNS_TYPE_MAILB", - "DNS_TYPE_MB", - "DNS_TYPE_MD", - "DNS_TYPE_MF", - "DNS_TYPE_MG", - "DNS_TYPE_MINFO", - "DNS_TYPE_MR", - "DNS_TYPE_MX", - "DNS_TYPE_NAPTR", - "DNS_TYPE_NBSTAT", - "DNS_TYPE_NIMLOC", - "DNS_TYPE_NS", - "DNS_TYPE_NSAP", - "DNS_TYPE_NSAPPTR", - "DNS_TYPE_NSEC", - "DNS_TYPE_NULL", - "DNS_TYPE_NXT", - "DNS_TYPE_OPT", - "DNS_TYPE_PTR", - "DNS_TYPE_PX", - "DNS_TYPE_RP", - "DNS_TYPE_RRSIG", - "DNS_TYPE_RT", - "DNS_TYPE_SIG", - "DNS_TYPE_SINK", - "DNS_TYPE_SOA", - "DNS_TYPE_SRV", - "DNS_TYPE_TEXT", - "DNS_TYPE_TKEY", - "DNS_TYPE_TSIG", - "DNS_TYPE_UID", - "DNS_TYPE_UINFO", - "DNS_TYPE_UNSPEC", - "DNS_TYPE_WINS", - "DNS_TYPE_WINSR", - "DNS_TYPE_WKS", - "DNS_TYPE_X25", - "DT_BLK", - "DT_CHR", - "DT_DIR", - "DT_FIFO", - "DT_LNK", - "DT_REG", - "DT_SOCK", - "DT_UNKNOWN", - "DT_WHT", - "DUPLICATE_CLOSE_SOURCE", - "DUPLICATE_SAME_ACCESS", - "DeleteFile", - "DetachLsf", - "DeviceIoControl", - "Dirent", - "DnsNameCompare", - "DnsQuery", - "DnsRecordListFree", - "DnsSectionAdditional", - "DnsSectionAnswer", - "DnsSectionAuthority", - "DnsSectionQuestion", - "Dup", - "Dup2", - "Dup3", - "DuplicateHandle", - "E2BIG", - "EACCES", - "EADDRINUSE", - "EADDRNOTAVAIL", - "EADV", - "EAFNOSUPPORT", - "EAGAIN", - "EALREADY", - "EAUTH", - "EBADARCH", - "EBADE", - "EBADEXEC", - "EBADF", - "EBADFD", - "EBADMACHO", - "EBADMSG", - "EBADR", - "EBADRPC", - "EBADRQC", - "EBADSLT", - "EBFONT", - "EBUSY", - "ECANCELED", - "ECAPMODE", - "ECHILD", - "ECHO", - "ECHOCTL", - "ECHOE", - "ECHOK", - "ECHOKE", - "ECHONL", - "ECHOPRT", - "ECHRNG", - "ECOMM", - "ECONNABORTED", - "ECONNREFUSED", - "ECONNRESET", - "EDEADLK", - "EDEADLOCK", - "EDESTADDRREQ", - "EDEVERR", - "EDOM", - "EDOOFUS", - "EDOTDOT", - "EDQUOT", - "EEXIST", - "EFAULT", - "EFBIG", - "EFER_LMA", - "EFER_LME", - "EFER_NXE", - "EFER_SCE", - "EFTYPE", - "EHOSTDOWN", - "EHOSTUNREACH", - "EHWPOISON", - "EIDRM", - "EILSEQ", - "EINPROGRESS", - "EINTR", - "EINVAL", - "EIO", - "EIPSEC", - "EISCONN", - "EISDIR", - "EISNAM", - "EKEYEXPIRED", - "EKEYREJECTED", - "EKEYREVOKED", - "EL2HLT", - "EL2NSYNC", - "EL3HLT", - "EL3RST", - "ELAST", - "ELF_NGREG", - "ELF_PRARGSZ", - "ELIBACC", - "ELIBBAD", - "ELIBEXEC", - "ELIBMAX", - "ELIBSCN", - "ELNRNG", - "ELOOP", - "EMEDIUMTYPE", - "EMFILE", - "EMLINK", - "EMSGSIZE", - "EMT_TAGOVF", - "EMULTIHOP", - "EMUL_ENABLED", - "EMUL_LINUX", - "EMUL_LINUX32", - "EMUL_MAXID", - "EMUL_NATIVE", - "ENAMETOOLONG", - "ENAVAIL", - "ENDRUNDISC", - "ENEEDAUTH", - "ENETDOWN", - "ENETRESET", - "ENETUNREACH", - "ENFILE", - "ENOANO", - "ENOATTR", - "ENOBUFS", - "ENOCSI", - "ENODATA", - "ENODEV", - "ENOENT", - "ENOEXEC", - "ENOKEY", - "ENOLCK", - "ENOLINK", - "ENOMEDIUM", - "ENOMEM", - "ENOMSG", - "ENONET", - "ENOPKG", - "ENOPOLICY", - "ENOPROTOOPT", - "ENOSPC", - "ENOSR", - "ENOSTR", - "ENOSYS", - "ENOTBLK", - "ENOTCAPABLE", - "ENOTCONN", - "ENOTDIR", - "ENOTEMPTY", - "ENOTNAM", - "ENOTRECOVERABLE", - "ENOTSOCK", - "ENOTSUP", - "ENOTTY", - "ENOTUNIQ", - "ENXIO", - "EN_SW_CTL_INF", - "EN_SW_CTL_PREC", - "EN_SW_CTL_ROUND", - "EN_SW_DATACHAIN", - "EN_SW_DENORM", - "EN_SW_INVOP", - "EN_SW_OVERFLOW", - "EN_SW_PRECLOSS", - "EN_SW_UNDERFLOW", - "EN_SW_ZERODIV", - "EOPNOTSUPP", - "EOVERFLOW", - "EOWNERDEAD", - "EPERM", - "EPFNOSUPPORT", - "EPIPE", - "EPOLLERR", - "EPOLLET", - "EPOLLHUP", - "EPOLLIN", - "EPOLLMSG", - "EPOLLONESHOT", - "EPOLLOUT", - "EPOLLPRI", - "EPOLLRDBAND", - "EPOLLRDHUP", - "EPOLLRDNORM", - "EPOLLWRBAND", - "EPOLLWRNORM", - "EPOLL_CLOEXEC", - "EPOLL_CTL_ADD", - "EPOLL_CTL_DEL", - "EPOLL_CTL_MOD", - "EPOLL_NONBLOCK", - "EPROCLIM", - "EPROCUNAVAIL", - "EPROGMISMATCH", - "EPROGUNAVAIL", - "EPROTO", - "EPROTONOSUPPORT", - "EPROTOTYPE", - "EPWROFF", - "EQFULL", - "ERANGE", - "EREMCHG", - "EREMOTE", - "EREMOTEIO", - "ERESTART", - "ERFKILL", - "EROFS", - "ERPCMISMATCH", - "ERROR_ACCESS_DENIED", - "ERROR_ALREADY_EXISTS", - "ERROR_BROKEN_PIPE", - "ERROR_BUFFER_OVERFLOW", - "ERROR_DIR_NOT_EMPTY", - "ERROR_ENVVAR_NOT_FOUND", - "ERROR_FILE_EXISTS", - "ERROR_FILE_NOT_FOUND", - "ERROR_HANDLE_EOF", - "ERROR_INSUFFICIENT_BUFFER", - "ERROR_IO_PENDING", - "ERROR_MOD_NOT_FOUND", - "ERROR_MORE_DATA", - "ERROR_NETNAME_DELETED", - "ERROR_NOT_FOUND", - "ERROR_NO_MORE_FILES", - "ERROR_OPERATION_ABORTED", - "ERROR_PATH_NOT_FOUND", - "ERROR_PRIVILEGE_NOT_HELD", - "ERROR_PROC_NOT_FOUND", - "ESHLIBVERS", - "ESHUTDOWN", - "ESOCKTNOSUPPORT", - "ESPIPE", - "ESRCH", - "ESRMNT", - "ESTALE", - "ESTRPIPE", - "ETHERCAP_JUMBO_MTU", - "ETHERCAP_VLAN_HWTAGGING", - "ETHERCAP_VLAN_MTU", - "ETHERMIN", - "ETHERMTU", - "ETHERMTU_JUMBO", - "ETHERTYPE_8023", - "ETHERTYPE_AARP", - "ETHERTYPE_ACCTON", - "ETHERTYPE_AEONIC", - "ETHERTYPE_ALPHA", - "ETHERTYPE_AMBER", - "ETHERTYPE_AMOEBA", - "ETHERTYPE_AOE", - "ETHERTYPE_APOLLO", - "ETHERTYPE_APOLLODOMAIN", - "ETHERTYPE_APPLETALK", - "ETHERTYPE_APPLITEK", - "ETHERTYPE_ARGONAUT", - "ETHERTYPE_ARP", - "ETHERTYPE_AT", - "ETHERTYPE_ATALK", - "ETHERTYPE_ATOMIC", - "ETHERTYPE_ATT", - "ETHERTYPE_ATTSTANFORD", - "ETHERTYPE_AUTOPHON", - "ETHERTYPE_AXIS", - "ETHERTYPE_BCLOOP", - "ETHERTYPE_BOFL", - "ETHERTYPE_CABLETRON", - "ETHERTYPE_CHAOS", - "ETHERTYPE_COMDESIGN", - "ETHERTYPE_COMPUGRAPHIC", - "ETHERTYPE_COUNTERPOINT", - "ETHERTYPE_CRONUS", - "ETHERTYPE_CRONUSVLN", - "ETHERTYPE_DCA", - "ETHERTYPE_DDE", - "ETHERTYPE_DEBNI", - "ETHERTYPE_DECAM", - "ETHERTYPE_DECCUST", - "ETHERTYPE_DECDIAG", - "ETHERTYPE_DECDNS", - "ETHERTYPE_DECDTS", - "ETHERTYPE_DECEXPER", - "ETHERTYPE_DECLAST", - "ETHERTYPE_DECLTM", - "ETHERTYPE_DECMUMPS", - "ETHERTYPE_DECNETBIOS", - "ETHERTYPE_DELTACON", - "ETHERTYPE_DIDDLE", - "ETHERTYPE_DLOG1", - "ETHERTYPE_DLOG2", - "ETHERTYPE_DN", - "ETHERTYPE_DOGFIGHT", - "ETHERTYPE_DSMD", - "ETHERTYPE_ECMA", - "ETHERTYPE_ENCRYPT", - "ETHERTYPE_ES", - "ETHERTYPE_EXCELAN", - "ETHERTYPE_EXPERDATA", - "ETHERTYPE_FLIP", - "ETHERTYPE_FLOWCONTROL", - "ETHERTYPE_FRARP", - "ETHERTYPE_GENDYN", - "ETHERTYPE_HAYES", - "ETHERTYPE_HIPPI_FP", - "ETHERTYPE_HITACHI", - "ETHERTYPE_HP", - "ETHERTYPE_IEEEPUP", - "ETHERTYPE_IEEEPUPAT", - "ETHERTYPE_IMLBL", - "ETHERTYPE_IMLBLDIAG", - "ETHERTYPE_IP", - "ETHERTYPE_IPAS", - "ETHERTYPE_IPV6", - "ETHERTYPE_IPX", - "ETHERTYPE_IPXNEW", - "ETHERTYPE_KALPANA", - "ETHERTYPE_LANBRIDGE", - "ETHERTYPE_LANPROBE", - "ETHERTYPE_LAT", - "ETHERTYPE_LBACK", - "ETHERTYPE_LITTLE", - "ETHERTYPE_LLDP", - "ETHERTYPE_LOGICRAFT", - "ETHERTYPE_LOOPBACK", - "ETHERTYPE_MATRA", - "ETHERTYPE_MAX", - "ETHERTYPE_MERIT", - "ETHERTYPE_MICP", - "ETHERTYPE_MOPDL", - "ETHERTYPE_MOPRC", - "ETHERTYPE_MOTOROLA", - "ETHERTYPE_MPLS", - "ETHERTYPE_MPLS_MCAST", - "ETHERTYPE_MUMPS", - "ETHERTYPE_NBPCC", - "ETHERTYPE_NBPCLAIM", - "ETHERTYPE_NBPCLREQ", - "ETHERTYPE_NBPCLRSP", - "ETHERTYPE_NBPCREQ", - "ETHERTYPE_NBPCRSP", - "ETHERTYPE_NBPDG", - "ETHERTYPE_NBPDGB", - "ETHERTYPE_NBPDLTE", - "ETHERTYPE_NBPRAR", - "ETHERTYPE_NBPRAS", - "ETHERTYPE_NBPRST", - "ETHERTYPE_NBPSCD", - "ETHERTYPE_NBPVCD", - "ETHERTYPE_NBS", - "ETHERTYPE_NCD", - "ETHERTYPE_NESTAR", - "ETHERTYPE_NETBEUI", - "ETHERTYPE_NOVELL", - "ETHERTYPE_NS", - "ETHERTYPE_NSAT", - "ETHERTYPE_NSCOMPAT", - "ETHERTYPE_NTRAILER", - "ETHERTYPE_OS9", - "ETHERTYPE_OS9NET", - "ETHERTYPE_PACER", - "ETHERTYPE_PAE", - "ETHERTYPE_PCS", - "ETHERTYPE_PLANNING", - "ETHERTYPE_PPP", - "ETHERTYPE_PPPOE", - "ETHERTYPE_PPPOEDISC", - "ETHERTYPE_PRIMENTS", - "ETHERTYPE_PUP", - "ETHERTYPE_PUPAT", - "ETHERTYPE_QINQ", - "ETHERTYPE_RACAL", - "ETHERTYPE_RATIONAL", - "ETHERTYPE_RAWFR", - "ETHERTYPE_RCL", - "ETHERTYPE_RDP", - "ETHERTYPE_RETIX", - "ETHERTYPE_REVARP", - "ETHERTYPE_SCA", - "ETHERTYPE_SECTRA", - "ETHERTYPE_SECUREDATA", - "ETHERTYPE_SGITW", - "ETHERTYPE_SG_BOUNCE", - "ETHERTYPE_SG_DIAG", - "ETHERTYPE_SG_NETGAMES", - "ETHERTYPE_SG_RESV", - "ETHERTYPE_SIMNET", - "ETHERTYPE_SLOW", - "ETHERTYPE_SLOWPROTOCOLS", - "ETHERTYPE_SNA", - "ETHERTYPE_SNMP", - "ETHERTYPE_SONIX", - "ETHERTYPE_SPIDER", - "ETHERTYPE_SPRITE", - "ETHERTYPE_STP", - "ETHERTYPE_TALARIS", - "ETHERTYPE_TALARISMC", - "ETHERTYPE_TCPCOMP", - "ETHERTYPE_TCPSM", - "ETHERTYPE_TEC", - "ETHERTYPE_TIGAN", - "ETHERTYPE_TRAIL", - "ETHERTYPE_TRANSETHER", - "ETHERTYPE_TYMSHARE", - "ETHERTYPE_UBBST", - "ETHERTYPE_UBDEBUG", - "ETHERTYPE_UBDIAGLOOP", - "ETHERTYPE_UBDL", - "ETHERTYPE_UBNIU", - "ETHERTYPE_UBNMC", - "ETHERTYPE_VALID", - "ETHERTYPE_VARIAN", - "ETHERTYPE_VAXELN", - "ETHERTYPE_VEECO", - "ETHERTYPE_VEXP", - "ETHERTYPE_VGLAB", - "ETHERTYPE_VINES", - "ETHERTYPE_VINESECHO", - "ETHERTYPE_VINESLOOP", - "ETHERTYPE_VITAL", - "ETHERTYPE_VLAN", - "ETHERTYPE_VLTLMAN", - "ETHERTYPE_VPROD", - "ETHERTYPE_VURESERVED", - "ETHERTYPE_WATERLOO", - "ETHERTYPE_WELLFLEET", - "ETHERTYPE_X25", - "ETHERTYPE_X75", - "ETHERTYPE_XNSSM", - "ETHERTYPE_XTP", - "ETHER_ADDR_LEN", - "ETHER_ALIGN", - "ETHER_CRC_LEN", - "ETHER_CRC_POLY_BE", - "ETHER_CRC_POLY_LE", - "ETHER_HDR_LEN", - "ETHER_MAX_DIX_LEN", - "ETHER_MAX_LEN", - "ETHER_MAX_LEN_JUMBO", - "ETHER_MIN_LEN", - "ETHER_PPPOE_ENCAP_LEN", - "ETHER_TYPE_LEN", - "ETHER_VLAN_ENCAP_LEN", - "ETH_P_1588", - "ETH_P_8021Q", - "ETH_P_802_2", - "ETH_P_802_3", - "ETH_P_AARP", - "ETH_P_ALL", - "ETH_P_AOE", - "ETH_P_ARCNET", - "ETH_P_ARP", - "ETH_P_ATALK", - "ETH_P_ATMFATE", - "ETH_P_ATMMPOA", - "ETH_P_AX25", - "ETH_P_BPQ", - "ETH_P_CAIF", - "ETH_P_CAN", - "ETH_P_CONTROL", - "ETH_P_CUST", - "ETH_P_DDCMP", - "ETH_P_DEC", - "ETH_P_DIAG", - "ETH_P_DNA_DL", - "ETH_P_DNA_RC", - "ETH_P_DNA_RT", - "ETH_P_DSA", - "ETH_P_ECONET", - "ETH_P_EDSA", - "ETH_P_FCOE", - "ETH_P_FIP", - "ETH_P_HDLC", - "ETH_P_IEEE802154", - "ETH_P_IEEEPUP", - "ETH_P_IEEEPUPAT", - "ETH_P_IP", - "ETH_P_IPV6", - "ETH_P_IPX", - "ETH_P_IRDA", - "ETH_P_LAT", - "ETH_P_LINK_CTL", - "ETH_P_LOCALTALK", - "ETH_P_LOOP", - "ETH_P_MOBITEX", - "ETH_P_MPLS_MC", - "ETH_P_MPLS_UC", - "ETH_P_PAE", - "ETH_P_PAUSE", - "ETH_P_PHONET", - "ETH_P_PPPTALK", - "ETH_P_PPP_DISC", - "ETH_P_PPP_MP", - "ETH_P_PPP_SES", - "ETH_P_PUP", - "ETH_P_PUPAT", - "ETH_P_RARP", - "ETH_P_SCA", - "ETH_P_SLOW", - "ETH_P_SNAP", - "ETH_P_TEB", - "ETH_P_TIPC", - "ETH_P_TRAILER", - "ETH_P_TR_802_2", - "ETH_P_WAN_PPP", - "ETH_P_WCCP", - "ETH_P_X25", - "ETIME", - "ETIMEDOUT", - "ETOOMANYREFS", - "ETXTBSY", - "EUCLEAN", - "EUNATCH", - "EUSERS", - "EVFILT_AIO", - "EVFILT_FS", - "EVFILT_LIO", - "EVFILT_MACHPORT", - "EVFILT_PROC", - "EVFILT_READ", - "EVFILT_SIGNAL", - "EVFILT_SYSCOUNT", - "EVFILT_THREADMARKER", - "EVFILT_TIMER", - "EVFILT_USER", - "EVFILT_VM", - "EVFILT_VNODE", - "EVFILT_WRITE", - "EV_ADD", - "EV_CLEAR", - "EV_DELETE", - "EV_DISABLE", - "EV_DISPATCH", - "EV_DROP", - "EV_ENABLE", - "EV_EOF", - "EV_ERROR", - "EV_FLAG0", - "EV_FLAG1", - "EV_ONESHOT", - "EV_OOBAND", - "EV_POLL", - "EV_RECEIPT", - "EV_SYSFLAGS", - "EWINDOWS", - "EWOULDBLOCK", - "EXDEV", - "EXFULL", - "EXTA", - "EXTB", - "EXTPROC", - "Environ", - "EpollCreate", - "EpollCreate1", - "EpollCtl", - "EpollEvent", - "EpollWait", - "Errno", - "EscapeArg", - "Exchangedata", - "Exec", - "Exit", - "ExitProcess", - "FD_CLOEXEC", - "FD_SETSIZE", - "FILE_ACTION_ADDED", - "FILE_ACTION_MODIFIED", - "FILE_ACTION_REMOVED", - "FILE_ACTION_RENAMED_NEW_NAME", - "FILE_ACTION_RENAMED_OLD_NAME", - "FILE_APPEND_DATA", - "FILE_ATTRIBUTE_ARCHIVE", - "FILE_ATTRIBUTE_DIRECTORY", - "FILE_ATTRIBUTE_HIDDEN", - "FILE_ATTRIBUTE_NORMAL", - "FILE_ATTRIBUTE_READONLY", - "FILE_ATTRIBUTE_REPARSE_POINT", - "FILE_ATTRIBUTE_SYSTEM", - "FILE_BEGIN", - "FILE_CURRENT", - "FILE_END", - "FILE_FLAG_BACKUP_SEMANTICS", - "FILE_FLAG_OPEN_REPARSE_POINT", - "FILE_FLAG_OVERLAPPED", - "FILE_LIST_DIRECTORY", - "FILE_MAP_COPY", - "FILE_MAP_EXECUTE", - "FILE_MAP_READ", - "FILE_MAP_WRITE", - "FILE_NOTIFY_CHANGE_ATTRIBUTES", - "FILE_NOTIFY_CHANGE_CREATION", - "FILE_NOTIFY_CHANGE_DIR_NAME", - "FILE_NOTIFY_CHANGE_FILE_NAME", - "FILE_NOTIFY_CHANGE_LAST_ACCESS", - "FILE_NOTIFY_CHANGE_LAST_WRITE", - "FILE_NOTIFY_CHANGE_SIZE", - "FILE_SHARE_DELETE", - "FILE_SHARE_READ", - "FILE_SHARE_WRITE", - "FILE_SKIP_COMPLETION_PORT_ON_SUCCESS", - "FILE_SKIP_SET_EVENT_ON_HANDLE", - "FILE_TYPE_CHAR", - "FILE_TYPE_DISK", - "FILE_TYPE_PIPE", - "FILE_TYPE_REMOTE", - "FILE_TYPE_UNKNOWN", - "FILE_WRITE_ATTRIBUTES", - "FLUSHO", - "FORMAT_MESSAGE_ALLOCATE_BUFFER", - "FORMAT_MESSAGE_ARGUMENT_ARRAY", - "FORMAT_MESSAGE_FROM_HMODULE", - "FORMAT_MESSAGE_FROM_STRING", - "FORMAT_MESSAGE_FROM_SYSTEM", - "FORMAT_MESSAGE_IGNORE_INSERTS", - "FORMAT_MESSAGE_MAX_WIDTH_MASK", - "FSCTL_GET_REPARSE_POINT", - "F_ADDFILESIGS", - "F_ADDSIGS", - "F_ALLOCATEALL", - "F_ALLOCATECONTIG", - "F_CANCEL", - "F_CHKCLEAN", - "F_CLOSEM", - "F_DUP2FD", - "F_DUP2FD_CLOEXEC", - "F_DUPFD", - "F_DUPFD_CLOEXEC", - "F_EXLCK", - "F_FINDSIGS", - "F_FLUSH_DATA", - "F_FREEZE_FS", - "F_FSCTL", - "F_FSDIRMASK", - "F_FSIN", - "F_FSINOUT", - "F_FSOUT", - "F_FSPRIV", - "F_FSVOID", - "F_FULLFSYNC", - "F_GETCODEDIR", - "F_GETFD", - "F_GETFL", - "F_GETLEASE", - "F_GETLK", - "F_GETLK64", - "F_GETLKPID", - "F_GETNOSIGPIPE", - "F_GETOWN", - "F_GETOWN_EX", - "F_GETPATH", - "F_GETPATH_MTMINFO", - "F_GETPIPE_SZ", - "F_GETPROTECTIONCLASS", - "F_GETPROTECTIONLEVEL", - "F_GETSIG", - "F_GLOBAL_NOCACHE", - "F_LOCK", - "F_LOG2PHYS", - "F_LOG2PHYS_EXT", - "F_MARKDEPENDENCY", - "F_MAXFD", - "F_NOCACHE", - "F_NODIRECT", - "F_NOTIFY", - "F_OGETLK", - "F_OK", - "F_OSETLK", - "F_OSETLKW", - "F_PARAM_MASK", - "F_PARAM_MAX", - "F_PATHPKG_CHECK", - "F_PEOFPOSMODE", - "F_PREALLOCATE", - "F_RDADVISE", - "F_RDAHEAD", - "F_RDLCK", - "F_READAHEAD", - "F_READBOOTSTRAP", - "F_SETBACKINGSTORE", - "F_SETFD", - "F_SETFL", - "F_SETLEASE", - "F_SETLK", - "F_SETLK64", - "F_SETLKW", - "F_SETLKW64", - "F_SETLKWTIMEOUT", - "F_SETLK_REMOTE", - "F_SETNOSIGPIPE", - "F_SETOWN", - "F_SETOWN_EX", - "F_SETPIPE_SZ", - "F_SETPROTECTIONCLASS", - "F_SETSIG", - "F_SETSIZE", - "F_SHLCK", - "F_SINGLE_WRITER", - "F_TEST", - "F_THAW_FS", - "F_TLOCK", - "F_TRANSCODEKEY", - "F_ULOCK", - "F_UNLCK", - "F_UNLCKSYS", - "F_VOLPOSMODE", - "F_WRITEBOOTSTRAP", - "F_WRLCK", - "Faccessat", - "Fallocate", - "Fbootstraptransfer_t", - "Fchdir", - "Fchflags", - "Fchmod", - "Fchmodat", - "Fchown", - "Fchownat", - "FcntlFlock", - "FdSet", - "Fdatasync", - "FileNotifyInformation", - "Filetime", - "FindClose", - "FindFirstFile", - "FindNextFile", - "Flock", - "Flock_t", - "FlushBpf", - "FlushFileBuffers", - "FlushViewOfFile", - "ForkExec", - "ForkLock", - "FormatMessage", - "Fpathconf", - "FreeAddrInfoW", - "FreeEnvironmentStrings", - "FreeLibrary", - "Fsid", - "Fstat", - "Fstatat", - "Fstatfs", - "Fstore_t", - "Fsync", - "Ftruncate", - "FullPath", - "Futimes", - "Futimesat", - "GENERIC_ALL", - "GENERIC_EXECUTE", - "GENERIC_READ", - "GENERIC_WRITE", - "GUID", - "GetAcceptExSockaddrs", - "GetAdaptersInfo", - "GetAddrInfoW", - "GetCommandLine", - "GetComputerName", - "GetConsoleMode", - "GetCurrentDirectory", - "GetCurrentProcess", - "GetEnvironmentStrings", - "GetEnvironmentVariable", - "GetExitCodeProcess", - "GetFileAttributes", - "GetFileAttributesEx", - "GetFileExInfoStandard", - "GetFileExMaxInfoLevel", - "GetFileInformationByHandle", - "GetFileType", - "GetFullPathName", - "GetHostByName", - "GetIfEntry", - "GetLastError", - "GetLengthSid", - "GetLongPathName", - "GetProcAddress", - "GetProcessTimes", - "GetProtoByName", - "GetQueuedCompletionStatus", - "GetServByName", - "GetShortPathName", - "GetStartupInfo", - "GetStdHandle", - "GetSystemTimeAsFileTime", - "GetTempPath", - "GetTimeZoneInformation", - "GetTokenInformation", - "GetUserNameEx", - "GetUserProfileDirectory", - "GetVersion", - "Getcwd", - "Getdents", - "Getdirentries", - "Getdtablesize", - "Getegid", - "Getenv", - "Geteuid", - "Getfsstat", - "Getgid", - "Getgroups", - "Getpagesize", - "Getpeername", - "Getpgid", - "Getpgrp", - "Getpid", - "Getppid", - "Getpriority", - "Getrlimit", - "Getrusage", - "Getsid", - "Getsockname", - "Getsockopt", - "GetsockoptByte", - "GetsockoptICMPv6Filter", - "GetsockoptIPMreq", - "GetsockoptIPMreqn", - "GetsockoptIPv6MTUInfo", - "GetsockoptIPv6Mreq", - "GetsockoptInet4Addr", - "GetsockoptInt", - "GetsockoptUcred", - "Gettid", - "Gettimeofday", - "Getuid", - "Getwd", - "Getxattr", - "HANDLE_FLAG_INHERIT", - "HKEY_CLASSES_ROOT", - "HKEY_CURRENT_CONFIG", - "HKEY_CURRENT_USER", - "HKEY_DYN_DATA", - "HKEY_LOCAL_MACHINE", - "HKEY_PERFORMANCE_DATA", - "HKEY_USERS", - "HUPCL", - "Handle", - "Hostent", - "ICANON", - "ICMP6_FILTER", - "ICMPV6_FILTER", - "ICMPv6Filter", - "ICRNL", - "IEXTEN", - "IFAN_ARRIVAL", - "IFAN_DEPARTURE", - "IFA_ADDRESS", - "IFA_ANYCAST", - "IFA_BROADCAST", - "IFA_CACHEINFO", - "IFA_F_DADFAILED", - "IFA_F_DEPRECATED", - "IFA_F_HOMEADDRESS", - "IFA_F_NODAD", - "IFA_F_OPTIMISTIC", - "IFA_F_PERMANENT", - "IFA_F_SECONDARY", - "IFA_F_TEMPORARY", - "IFA_F_TENTATIVE", - "IFA_LABEL", - "IFA_LOCAL", - "IFA_MAX", - "IFA_MULTICAST", - "IFA_ROUTE", - "IFA_UNSPEC", - "IFF_ALLMULTI", - "IFF_ALTPHYS", - "IFF_AUTOMEDIA", - "IFF_BROADCAST", - "IFF_CANTCHANGE", - "IFF_CANTCONFIG", - "IFF_DEBUG", - "IFF_DRV_OACTIVE", - "IFF_DRV_RUNNING", - "IFF_DYING", - "IFF_DYNAMIC", - "IFF_LINK0", - "IFF_LINK1", - "IFF_LINK2", - "IFF_LOOPBACK", - "IFF_MASTER", - "IFF_MONITOR", - "IFF_MULTICAST", - "IFF_NOARP", - "IFF_NOTRAILERS", - "IFF_NO_PI", - "IFF_OACTIVE", - "IFF_ONE_QUEUE", - "IFF_POINTOPOINT", - "IFF_POINTTOPOINT", - "IFF_PORTSEL", - "IFF_PPROMISC", - "IFF_PROMISC", - "IFF_RENAMING", - "IFF_RUNNING", - "IFF_SIMPLEX", - "IFF_SLAVE", - "IFF_SMART", - "IFF_STATICARP", - "IFF_TAP", - "IFF_TUN", - "IFF_TUN_EXCL", - "IFF_UP", - "IFF_VNET_HDR", - "IFLA_ADDRESS", - "IFLA_BROADCAST", - "IFLA_COST", - "IFLA_IFALIAS", - "IFLA_IFNAME", - "IFLA_LINK", - "IFLA_LINKINFO", - "IFLA_LINKMODE", - "IFLA_MAP", - "IFLA_MASTER", - "IFLA_MAX", - "IFLA_MTU", - "IFLA_NET_NS_PID", - "IFLA_OPERSTATE", - "IFLA_PRIORITY", - "IFLA_PROTINFO", - "IFLA_QDISC", - "IFLA_STATS", - "IFLA_TXQLEN", - "IFLA_UNSPEC", - "IFLA_WEIGHT", - "IFLA_WIRELESS", - "IFNAMSIZ", - "IFT_1822", - "IFT_A12MPPSWITCH", - "IFT_AAL2", - "IFT_AAL5", - "IFT_ADSL", - "IFT_AFLANE8023", - "IFT_AFLANE8025", - "IFT_ARAP", - "IFT_ARCNET", - "IFT_ARCNETPLUS", - "IFT_ASYNC", - "IFT_ATM", - "IFT_ATMDXI", - "IFT_ATMFUNI", - "IFT_ATMIMA", - "IFT_ATMLOGICAL", - "IFT_ATMRADIO", - "IFT_ATMSUBINTERFACE", - "IFT_ATMVCIENDPT", - "IFT_ATMVIRTUAL", - "IFT_BGPPOLICYACCOUNTING", - "IFT_BLUETOOTH", - "IFT_BRIDGE", - "IFT_BSC", - "IFT_CARP", - "IFT_CCTEMUL", - "IFT_CELLULAR", - "IFT_CEPT", - "IFT_CES", - "IFT_CHANNEL", - "IFT_CNR", - "IFT_COFFEE", - "IFT_COMPOSITELINK", - "IFT_DCN", - "IFT_DIGITALPOWERLINE", - "IFT_DIGITALWRAPPEROVERHEADCHANNEL", - "IFT_DLSW", - "IFT_DOCSCABLEDOWNSTREAM", - "IFT_DOCSCABLEMACLAYER", - "IFT_DOCSCABLEUPSTREAM", - "IFT_DOCSCABLEUPSTREAMCHANNEL", - "IFT_DS0", - "IFT_DS0BUNDLE", - "IFT_DS1FDL", - "IFT_DS3", - "IFT_DTM", - "IFT_DUMMY", - "IFT_DVBASILN", - "IFT_DVBASIOUT", - "IFT_DVBRCCDOWNSTREAM", - "IFT_DVBRCCMACLAYER", - "IFT_DVBRCCUPSTREAM", - "IFT_ECONET", - "IFT_ENC", - "IFT_EON", - "IFT_EPLRS", - "IFT_ESCON", - "IFT_ETHER", - "IFT_FAITH", - "IFT_FAST", - "IFT_FASTETHER", - "IFT_FASTETHERFX", - "IFT_FDDI", - "IFT_FIBRECHANNEL", - "IFT_FRAMERELAYINTERCONNECT", - "IFT_FRAMERELAYMPI", - "IFT_FRDLCIENDPT", - "IFT_FRELAY", - "IFT_FRELAYDCE", - "IFT_FRF16MFRBUNDLE", - "IFT_FRFORWARD", - "IFT_G703AT2MB", - "IFT_G703AT64K", - "IFT_GIF", - "IFT_GIGABITETHERNET", - "IFT_GR303IDT", - "IFT_GR303RDT", - "IFT_H323GATEKEEPER", - "IFT_H323PROXY", - "IFT_HDH1822", - "IFT_HDLC", - "IFT_HDSL2", - "IFT_HIPERLAN2", - "IFT_HIPPI", - "IFT_HIPPIINTERFACE", - "IFT_HOSTPAD", - "IFT_HSSI", - "IFT_HY", - "IFT_IBM370PARCHAN", - "IFT_IDSL", - "IFT_IEEE1394", - "IFT_IEEE80211", - "IFT_IEEE80212", - "IFT_IEEE8023ADLAG", - "IFT_IFGSN", - "IFT_IMT", - "IFT_INFINIBAND", - "IFT_INTERLEAVE", - "IFT_IP", - "IFT_IPFORWARD", - "IFT_IPOVERATM", - "IFT_IPOVERCDLC", - "IFT_IPOVERCLAW", - "IFT_IPSWITCH", - "IFT_IPXIP", - "IFT_ISDN", - "IFT_ISDNBASIC", - "IFT_ISDNPRIMARY", - "IFT_ISDNS", - "IFT_ISDNU", - "IFT_ISO88022LLC", - "IFT_ISO88023", - "IFT_ISO88024", - "IFT_ISO88025", - "IFT_ISO88025CRFPINT", - "IFT_ISO88025DTR", - "IFT_ISO88025FIBER", - "IFT_ISO88026", - "IFT_ISUP", - "IFT_L2VLAN", - "IFT_L3IPVLAN", - "IFT_L3IPXVLAN", - "IFT_LAPB", - "IFT_LAPD", - "IFT_LAPF", - "IFT_LINEGROUP", - "IFT_LOCALTALK", - "IFT_LOOP", - "IFT_MEDIAMAILOVERIP", - "IFT_MFSIGLINK", - "IFT_MIOX25", - "IFT_MODEM", - "IFT_MPC", - "IFT_MPLS", - "IFT_MPLSTUNNEL", - "IFT_MSDSL", - "IFT_MVL", - "IFT_MYRINET", - "IFT_NFAS", - "IFT_NSIP", - "IFT_OPTICALCHANNEL", - "IFT_OPTICALTRANSPORT", - "IFT_OTHER", - "IFT_P10", - "IFT_P80", - "IFT_PARA", - "IFT_PDP", - "IFT_PFLOG", - "IFT_PFLOW", - "IFT_PFSYNC", - "IFT_PLC", - "IFT_PON155", - "IFT_PON622", - "IFT_POS", - "IFT_PPP", - "IFT_PPPMULTILINKBUNDLE", - "IFT_PROPATM", - "IFT_PROPBWAP2MP", - "IFT_PROPCNLS", - "IFT_PROPDOCSWIRELESSDOWNSTREAM", - "IFT_PROPDOCSWIRELESSMACLAYER", - "IFT_PROPDOCSWIRELESSUPSTREAM", - "IFT_PROPMUX", - "IFT_PROPVIRTUAL", - "IFT_PROPWIRELESSP2P", - "IFT_PTPSERIAL", - "IFT_PVC", - "IFT_Q2931", - "IFT_QLLC", - "IFT_RADIOMAC", - "IFT_RADSL", - "IFT_REACHDSL", - "IFT_RFC1483", - "IFT_RS232", - "IFT_RSRB", - "IFT_SDLC", - "IFT_SDSL", - "IFT_SHDSL", - "IFT_SIP", - "IFT_SIPSIG", - "IFT_SIPTG", - "IFT_SLIP", - "IFT_SMDSDXI", - "IFT_SMDSICIP", - "IFT_SONET", - "IFT_SONETOVERHEADCHANNEL", - "IFT_SONETPATH", - "IFT_SONETVT", - "IFT_SRP", - "IFT_SS7SIGLINK", - "IFT_STACKTOSTACK", - "IFT_STARLAN", - "IFT_STF", - "IFT_T1", - "IFT_TDLC", - "IFT_TELINK", - "IFT_TERMPAD", - "IFT_TR008", - "IFT_TRANSPHDLC", - "IFT_TUNNEL", - "IFT_ULTRA", - "IFT_USB", - "IFT_V11", - "IFT_V35", - "IFT_V36", - "IFT_V37", - "IFT_VDSL", - "IFT_VIRTUALIPADDRESS", - "IFT_VIRTUALTG", - "IFT_VOICEDID", - "IFT_VOICEEM", - "IFT_VOICEEMFGD", - "IFT_VOICEENCAP", - "IFT_VOICEFGDEANA", - "IFT_VOICEFXO", - "IFT_VOICEFXS", - "IFT_VOICEOVERATM", - "IFT_VOICEOVERCABLE", - "IFT_VOICEOVERFRAMERELAY", - "IFT_VOICEOVERIP", - "IFT_X213", - "IFT_X25", - "IFT_X25DDN", - "IFT_X25HUNTGROUP", - "IFT_X25MLP", - "IFT_X25PLE", - "IFT_XETHER", - "IGNBRK", - "IGNCR", - "IGNORE", - "IGNPAR", - "IMAXBEL", - "INFINITE", - "INLCR", - "INPCK", - "INVALID_FILE_ATTRIBUTES", - "IN_ACCESS", - "IN_ALL_EVENTS", - "IN_ATTRIB", - "IN_CLASSA_HOST", - "IN_CLASSA_MAX", - "IN_CLASSA_NET", - "IN_CLASSA_NSHIFT", - "IN_CLASSB_HOST", - "IN_CLASSB_MAX", - "IN_CLASSB_NET", - "IN_CLASSB_NSHIFT", - "IN_CLASSC_HOST", - "IN_CLASSC_NET", - "IN_CLASSC_NSHIFT", - "IN_CLASSD_HOST", - "IN_CLASSD_NET", - "IN_CLASSD_NSHIFT", - "IN_CLOEXEC", - "IN_CLOSE", - "IN_CLOSE_NOWRITE", - "IN_CLOSE_WRITE", - "IN_CREATE", - "IN_DELETE", - "IN_DELETE_SELF", - "IN_DONT_FOLLOW", - "IN_EXCL_UNLINK", - "IN_IGNORED", - "IN_ISDIR", - "IN_LINKLOCALNETNUM", - "IN_LOOPBACKNET", - "IN_MASK_ADD", - "IN_MODIFY", - "IN_MOVE", - "IN_MOVED_FROM", - "IN_MOVED_TO", - "IN_MOVE_SELF", - "IN_NONBLOCK", - "IN_ONESHOT", - "IN_ONLYDIR", - "IN_OPEN", - "IN_Q_OVERFLOW", - "IN_RFC3021_HOST", - "IN_RFC3021_MASK", - "IN_RFC3021_NET", - "IN_RFC3021_NSHIFT", - "IN_UNMOUNT", - "IOC_IN", - "IOC_INOUT", - "IOC_OUT", - "IOC_VENDOR", - "IOC_WS2", - "IO_REPARSE_TAG_SYMLINK", - "IPMreq", - "IPMreqn", - "IPPROTO_3PC", - "IPPROTO_ADFS", - "IPPROTO_AH", - "IPPROTO_AHIP", - "IPPROTO_APES", - "IPPROTO_ARGUS", - "IPPROTO_AX25", - "IPPROTO_BHA", - "IPPROTO_BLT", - "IPPROTO_BRSATMON", - "IPPROTO_CARP", - "IPPROTO_CFTP", - "IPPROTO_CHAOS", - "IPPROTO_CMTP", - "IPPROTO_COMP", - "IPPROTO_CPHB", - "IPPROTO_CPNX", - "IPPROTO_DCCP", - "IPPROTO_DDP", - "IPPROTO_DGP", - "IPPROTO_DIVERT", - "IPPROTO_DIVERT_INIT", - "IPPROTO_DIVERT_RESP", - "IPPROTO_DONE", - "IPPROTO_DSTOPTS", - "IPPROTO_EGP", - "IPPROTO_EMCON", - "IPPROTO_ENCAP", - "IPPROTO_EON", - "IPPROTO_ESP", - "IPPROTO_ETHERIP", - "IPPROTO_FRAGMENT", - "IPPROTO_GGP", - "IPPROTO_GMTP", - "IPPROTO_GRE", - "IPPROTO_HELLO", - "IPPROTO_HMP", - "IPPROTO_HOPOPTS", - "IPPROTO_ICMP", - "IPPROTO_ICMPV6", - "IPPROTO_IDP", - "IPPROTO_IDPR", - "IPPROTO_IDRP", - "IPPROTO_IGMP", - "IPPROTO_IGP", - "IPPROTO_IGRP", - "IPPROTO_IL", - "IPPROTO_INLSP", - "IPPROTO_INP", - "IPPROTO_IP", - "IPPROTO_IPCOMP", - "IPPROTO_IPCV", - "IPPROTO_IPEIP", - "IPPROTO_IPIP", - "IPPROTO_IPPC", - "IPPROTO_IPV4", - "IPPROTO_IPV6", - "IPPROTO_IPV6_ICMP", - "IPPROTO_IRTP", - "IPPROTO_KRYPTOLAN", - "IPPROTO_LARP", - "IPPROTO_LEAF1", - "IPPROTO_LEAF2", - "IPPROTO_MAX", - "IPPROTO_MAXID", - "IPPROTO_MEAS", - "IPPROTO_MH", - "IPPROTO_MHRP", - "IPPROTO_MICP", - "IPPROTO_MOBILE", - "IPPROTO_MPLS", - "IPPROTO_MTP", - "IPPROTO_MUX", - "IPPROTO_ND", - "IPPROTO_NHRP", - "IPPROTO_NONE", - "IPPROTO_NSP", - "IPPROTO_NVPII", - "IPPROTO_OLD_DIVERT", - "IPPROTO_OSPFIGP", - "IPPROTO_PFSYNC", - "IPPROTO_PGM", - "IPPROTO_PIGP", - "IPPROTO_PIM", - "IPPROTO_PRM", - "IPPROTO_PUP", - "IPPROTO_PVP", - "IPPROTO_RAW", - "IPPROTO_RCCMON", - "IPPROTO_RDP", - "IPPROTO_ROUTING", - "IPPROTO_RSVP", - "IPPROTO_RVD", - "IPPROTO_SATEXPAK", - "IPPROTO_SATMON", - "IPPROTO_SCCSP", - "IPPROTO_SCTP", - "IPPROTO_SDRP", - "IPPROTO_SEND", - "IPPROTO_SEP", - "IPPROTO_SKIP", - "IPPROTO_SPACER", - "IPPROTO_SRPC", - "IPPROTO_ST", - "IPPROTO_SVMTP", - "IPPROTO_SWIPE", - "IPPROTO_TCF", - "IPPROTO_TCP", - "IPPROTO_TLSP", - "IPPROTO_TP", - "IPPROTO_TPXX", - "IPPROTO_TRUNK1", - "IPPROTO_TRUNK2", - "IPPROTO_TTP", - "IPPROTO_UDP", - "IPPROTO_UDPLITE", - "IPPROTO_VINES", - "IPPROTO_VISA", - "IPPROTO_VMTP", - "IPPROTO_VRRP", - "IPPROTO_WBEXPAK", - "IPPROTO_WBMON", - "IPPROTO_WSN", - "IPPROTO_XNET", - "IPPROTO_XTP", - "IPV6_2292DSTOPTS", - "IPV6_2292HOPLIMIT", - "IPV6_2292HOPOPTS", - "IPV6_2292NEXTHOP", - "IPV6_2292PKTINFO", - "IPV6_2292PKTOPTIONS", - "IPV6_2292RTHDR", - "IPV6_ADDRFORM", - "IPV6_ADD_MEMBERSHIP", - "IPV6_AUTHHDR", - "IPV6_AUTH_LEVEL", - "IPV6_AUTOFLOWLABEL", - "IPV6_BINDANY", - "IPV6_BINDV6ONLY", - "IPV6_BOUND_IF", - "IPV6_CHECKSUM", - "IPV6_DEFAULT_MULTICAST_HOPS", - "IPV6_DEFAULT_MULTICAST_LOOP", - "IPV6_DEFHLIM", - "IPV6_DONTFRAG", - "IPV6_DROP_MEMBERSHIP", - "IPV6_DSTOPTS", - "IPV6_ESP_NETWORK_LEVEL", - "IPV6_ESP_TRANS_LEVEL", - "IPV6_FAITH", - "IPV6_FLOWINFO_MASK", - "IPV6_FLOWLABEL_MASK", - "IPV6_FRAGTTL", - "IPV6_FW_ADD", - "IPV6_FW_DEL", - "IPV6_FW_FLUSH", - "IPV6_FW_GET", - "IPV6_FW_ZERO", - "IPV6_HLIMDEC", - "IPV6_HOPLIMIT", - "IPV6_HOPOPTS", - "IPV6_IPCOMP_LEVEL", - "IPV6_IPSEC_POLICY", - "IPV6_JOIN_ANYCAST", - "IPV6_JOIN_GROUP", - "IPV6_LEAVE_ANYCAST", - "IPV6_LEAVE_GROUP", - "IPV6_MAXHLIM", - "IPV6_MAXOPTHDR", - "IPV6_MAXPACKET", - "IPV6_MAX_GROUP_SRC_FILTER", - "IPV6_MAX_MEMBERSHIPS", - "IPV6_MAX_SOCK_SRC_FILTER", - "IPV6_MIN_MEMBERSHIPS", - "IPV6_MMTU", - "IPV6_MSFILTER", - "IPV6_MTU", - "IPV6_MTU_DISCOVER", - "IPV6_MULTICAST_HOPS", - "IPV6_MULTICAST_IF", - "IPV6_MULTICAST_LOOP", - "IPV6_NEXTHOP", - "IPV6_OPTIONS", - "IPV6_PATHMTU", - "IPV6_PIPEX", - "IPV6_PKTINFO", - "IPV6_PMTUDISC_DO", - "IPV6_PMTUDISC_DONT", - "IPV6_PMTUDISC_PROBE", - "IPV6_PMTUDISC_WANT", - "IPV6_PORTRANGE", - "IPV6_PORTRANGE_DEFAULT", - "IPV6_PORTRANGE_HIGH", - "IPV6_PORTRANGE_LOW", - "IPV6_PREFER_TEMPADDR", - "IPV6_RECVDSTOPTS", - "IPV6_RECVDSTPORT", - "IPV6_RECVERR", - "IPV6_RECVHOPLIMIT", - "IPV6_RECVHOPOPTS", - "IPV6_RECVPATHMTU", - "IPV6_RECVPKTINFO", - "IPV6_RECVRTHDR", - "IPV6_RECVTCLASS", - "IPV6_ROUTER_ALERT", - "IPV6_RTABLE", - "IPV6_RTHDR", - "IPV6_RTHDRDSTOPTS", - "IPV6_RTHDR_LOOSE", - "IPV6_RTHDR_STRICT", - "IPV6_RTHDR_TYPE_0", - "IPV6_RXDSTOPTS", - "IPV6_RXHOPOPTS", - "IPV6_SOCKOPT_RESERVED1", - "IPV6_TCLASS", - "IPV6_UNICAST_HOPS", - "IPV6_USE_MIN_MTU", - "IPV6_V6ONLY", - "IPV6_VERSION", - "IPV6_VERSION_MASK", - "IPV6_XFRM_POLICY", - "IP_ADD_MEMBERSHIP", - "IP_ADD_SOURCE_MEMBERSHIP", - "IP_AUTH_LEVEL", - "IP_BINDANY", - "IP_BLOCK_SOURCE", - "IP_BOUND_IF", - "IP_DEFAULT_MULTICAST_LOOP", - "IP_DEFAULT_MULTICAST_TTL", - "IP_DF", - "IP_DIVERTFL", - "IP_DONTFRAG", - "IP_DROP_MEMBERSHIP", - "IP_DROP_SOURCE_MEMBERSHIP", - "IP_DUMMYNET3", - "IP_DUMMYNET_CONFIGURE", - "IP_DUMMYNET_DEL", - "IP_DUMMYNET_FLUSH", - "IP_DUMMYNET_GET", - "IP_EF", - "IP_ERRORMTU", - "IP_ESP_NETWORK_LEVEL", - "IP_ESP_TRANS_LEVEL", - "IP_FAITH", - "IP_FREEBIND", - "IP_FW3", - "IP_FW_ADD", - "IP_FW_DEL", - "IP_FW_FLUSH", - "IP_FW_GET", - "IP_FW_NAT_CFG", - "IP_FW_NAT_DEL", - "IP_FW_NAT_GET_CONFIG", - "IP_FW_NAT_GET_LOG", - "IP_FW_RESETLOG", - "IP_FW_TABLE_ADD", - "IP_FW_TABLE_DEL", - "IP_FW_TABLE_FLUSH", - "IP_FW_TABLE_GETSIZE", - "IP_FW_TABLE_LIST", - "IP_FW_ZERO", - "IP_HDRINCL", - "IP_IPCOMP_LEVEL", - "IP_IPSECFLOWINFO", - "IP_IPSEC_LOCAL_AUTH", - "IP_IPSEC_LOCAL_CRED", - "IP_IPSEC_LOCAL_ID", - "IP_IPSEC_POLICY", - "IP_IPSEC_REMOTE_AUTH", - "IP_IPSEC_REMOTE_CRED", - "IP_IPSEC_REMOTE_ID", - "IP_MAXPACKET", - "IP_MAX_GROUP_SRC_FILTER", - "IP_MAX_MEMBERSHIPS", - "IP_MAX_SOCK_MUTE_FILTER", - "IP_MAX_SOCK_SRC_FILTER", - "IP_MAX_SOURCE_FILTER", - "IP_MF", - "IP_MINFRAGSIZE", - "IP_MINTTL", - "IP_MIN_MEMBERSHIPS", - "IP_MSFILTER", - "IP_MSS", - "IP_MTU", - "IP_MTU_DISCOVER", - "IP_MULTICAST_IF", - "IP_MULTICAST_IFINDEX", - "IP_MULTICAST_LOOP", - "IP_MULTICAST_TTL", - "IP_MULTICAST_VIF", - "IP_NAT__XXX", - "IP_OFFMASK", - "IP_OLD_FW_ADD", - "IP_OLD_FW_DEL", - "IP_OLD_FW_FLUSH", - "IP_OLD_FW_GET", - "IP_OLD_FW_RESETLOG", - "IP_OLD_FW_ZERO", - "IP_ONESBCAST", - "IP_OPTIONS", - "IP_ORIGDSTADDR", - "IP_PASSSEC", - "IP_PIPEX", - "IP_PKTINFO", - "IP_PKTOPTIONS", - "IP_PMTUDISC", - "IP_PMTUDISC_DO", - "IP_PMTUDISC_DONT", - "IP_PMTUDISC_PROBE", - "IP_PMTUDISC_WANT", - "IP_PORTRANGE", - "IP_PORTRANGE_DEFAULT", - "IP_PORTRANGE_HIGH", - "IP_PORTRANGE_LOW", - "IP_RECVDSTADDR", - "IP_RECVDSTPORT", - "IP_RECVERR", - "IP_RECVIF", - "IP_RECVOPTS", - "IP_RECVORIGDSTADDR", - "IP_RECVPKTINFO", - "IP_RECVRETOPTS", - "IP_RECVRTABLE", - "IP_RECVTOS", - "IP_RECVTTL", - "IP_RETOPTS", - "IP_RF", - "IP_ROUTER_ALERT", - "IP_RSVP_OFF", - "IP_RSVP_ON", - "IP_RSVP_VIF_OFF", - "IP_RSVP_VIF_ON", - "IP_RTABLE", - "IP_SENDSRCADDR", - "IP_STRIPHDR", - "IP_TOS", - "IP_TRAFFIC_MGT_BACKGROUND", - "IP_TRANSPARENT", - "IP_TTL", - "IP_UNBLOCK_SOURCE", - "IP_XFRM_POLICY", - "IPv6MTUInfo", - "IPv6Mreq", - "ISIG", - "ISTRIP", - "IUCLC", - "IUTF8", - "IXANY", - "IXOFF", - "IXON", - "IfAddrmsg", - "IfAnnounceMsghdr", - "IfData", - "IfInfomsg", - "IfMsghdr", - "IfaMsghdr", - "IfmaMsghdr", - "IfmaMsghdr2", - "ImplementsGetwd", - "Inet4Pktinfo", - "Inet6Pktinfo", - "InotifyAddWatch", - "InotifyEvent", - "InotifyInit", - "InotifyInit1", - "InotifyRmWatch", - "InterfaceAddrMessage", - "InterfaceAnnounceMessage", - "InterfaceInfo", - "InterfaceMessage", - "InterfaceMulticastAddrMessage", - "InvalidHandle", - "Ioperm", - "Iopl", - "Iovec", - "IpAdapterInfo", - "IpAddrString", - "IpAddressString", - "IpMaskString", - "Issetugid", - "KEY_ALL_ACCESS", - "KEY_CREATE_LINK", - "KEY_CREATE_SUB_KEY", - "KEY_ENUMERATE_SUB_KEYS", - "KEY_EXECUTE", - "KEY_NOTIFY", - "KEY_QUERY_VALUE", - "KEY_READ", - "KEY_SET_VALUE", - "KEY_WOW64_32KEY", - "KEY_WOW64_64KEY", - "KEY_WRITE", - "Kevent", - "Kevent_t", - "Kill", - "Klogctl", - "Kqueue", - "LANG_ENGLISH", - "LAYERED_PROTOCOL", - "LCNT_OVERLOAD_FLUSH", - "LINUX_REBOOT_CMD_CAD_OFF", - "LINUX_REBOOT_CMD_CAD_ON", - "LINUX_REBOOT_CMD_HALT", - "LINUX_REBOOT_CMD_KEXEC", - "LINUX_REBOOT_CMD_POWER_OFF", - "LINUX_REBOOT_CMD_RESTART", - "LINUX_REBOOT_CMD_RESTART2", - "LINUX_REBOOT_CMD_SW_SUSPEND", - "LINUX_REBOOT_MAGIC1", - "LINUX_REBOOT_MAGIC2", - "LOCK_EX", - "LOCK_NB", - "LOCK_SH", - "LOCK_UN", - "LazyDLL", - "LazyProc", - "Lchown", - "Linger", - "Link", - "Listen", - "Listxattr", - "LoadCancelIoEx", - "LoadConnectEx", - "LoadCreateSymbolicLink", - "LoadDLL", - "LoadGetAddrInfo", - "LoadLibrary", - "LoadSetFileCompletionNotificationModes", - "LocalFree", - "Log2phys_t", - "LookupAccountName", - "LookupAccountSid", - "LookupSID", - "LsfJump", - "LsfSocket", - "LsfStmt", - "Lstat", - "MADV_AUTOSYNC", - "MADV_CAN_REUSE", - "MADV_CORE", - "MADV_DOFORK", - "MADV_DONTFORK", - "MADV_DONTNEED", - "MADV_FREE", - "MADV_FREE_REUSABLE", - "MADV_FREE_REUSE", - "MADV_HUGEPAGE", - "MADV_HWPOISON", - "MADV_MERGEABLE", - "MADV_NOCORE", - "MADV_NOHUGEPAGE", - "MADV_NORMAL", - "MADV_NOSYNC", - "MADV_PROTECT", - "MADV_RANDOM", - "MADV_REMOVE", - "MADV_SEQUENTIAL", - "MADV_SPACEAVAIL", - "MADV_UNMERGEABLE", - "MADV_WILLNEED", - "MADV_ZERO_WIRED_PAGES", - "MAP_32BIT", - "MAP_ALIGNED_SUPER", - "MAP_ALIGNMENT_16MB", - "MAP_ALIGNMENT_1TB", - "MAP_ALIGNMENT_256TB", - "MAP_ALIGNMENT_4GB", - "MAP_ALIGNMENT_64KB", - "MAP_ALIGNMENT_64PB", - "MAP_ALIGNMENT_MASK", - "MAP_ALIGNMENT_SHIFT", - "MAP_ANON", - "MAP_ANONYMOUS", - "MAP_COPY", - "MAP_DENYWRITE", - "MAP_EXECUTABLE", - "MAP_FILE", - "MAP_FIXED", - "MAP_FLAGMASK", - "MAP_GROWSDOWN", - "MAP_HASSEMAPHORE", - "MAP_HUGETLB", - "MAP_INHERIT", - "MAP_INHERIT_COPY", - "MAP_INHERIT_DEFAULT", - "MAP_INHERIT_DONATE_COPY", - "MAP_INHERIT_NONE", - "MAP_INHERIT_SHARE", - "MAP_JIT", - "MAP_LOCKED", - "MAP_NOCACHE", - "MAP_NOCORE", - "MAP_NOEXTEND", - "MAP_NONBLOCK", - "MAP_NORESERVE", - "MAP_NOSYNC", - "MAP_POPULATE", - "MAP_PREFAULT_READ", - "MAP_PRIVATE", - "MAP_RENAME", - "MAP_RESERVED0080", - "MAP_RESERVED0100", - "MAP_SHARED", - "MAP_STACK", - "MAP_TRYFIXED", - "MAP_TYPE", - "MAP_WIRED", - "MAXIMUM_REPARSE_DATA_BUFFER_SIZE", - "MAXLEN_IFDESCR", - "MAXLEN_PHYSADDR", - "MAX_ADAPTER_ADDRESS_LENGTH", - "MAX_ADAPTER_DESCRIPTION_LENGTH", - "MAX_ADAPTER_NAME_LENGTH", - "MAX_COMPUTERNAME_LENGTH", - "MAX_INTERFACE_NAME_LEN", - "MAX_LONG_PATH", - "MAX_PATH", - "MAX_PROTOCOL_CHAIN", - "MCL_CURRENT", - "MCL_FUTURE", - "MNT_DETACH", - "MNT_EXPIRE", - "MNT_FORCE", - "MSG_BCAST", - "MSG_CMSG_CLOEXEC", - "MSG_COMPAT", - "MSG_CONFIRM", - "MSG_CONTROLMBUF", - "MSG_CTRUNC", - "MSG_DONTROUTE", - "MSG_DONTWAIT", - "MSG_EOF", - "MSG_EOR", - "MSG_ERRQUEUE", - "MSG_FASTOPEN", - "MSG_FIN", - "MSG_FLUSH", - "MSG_HAVEMORE", - "MSG_HOLD", - "MSG_IOVUSRSPACE", - "MSG_LENUSRSPACE", - "MSG_MCAST", - "MSG_MORE", - "MSG_NAMEMBUF", - "MSG_NBIO", - "MSG_NEEDSA", - "MSG_NOSIGNAL", - "MSG_NOTIFICATION", - "MSG_OOB", - "MSG_PEEK", - "MSG_PROXY", - "MSG_RCVMORE", - "MSG_RST", - "MSG_SEND", - "MSG_SYN", - "MSG_TRUNC", - "MSG_TRYHARD", - "MSG_USERFLAGS", - "MSG_WAITALL", - "MSG_WAITFORONE", - "MSG_WAITSTREAM", - "MS_ACTIVE", - "MS_ASYNC", - "MS_BIND", - "MS_DEACTIVATE", - "MS_DIRSYNC", - "MS_INVALIDATE", - "MS_I_VERSION", - "MS_KERNMOUNT", - "MS_KILLPAGES", - "MS_MANDLOCK", - "MS_MGC_MSK", - "MS_MGC_VAL", - "MS_MOVE", - "MS_NOATIME", - "MS_NODEV", - "MS_NODIRATIME", - "MS_NOEXEC", - "MS_NOSUID", - "MS_NOUSER", - "MS_POSIXACL", - "MS_PRIVATE", - "MS_RDONLY", - "MS_REC", - "MS_RELATIME", - "MS_REMOUNT", - "MS_RMT_MASK", - "MS_SHARED", - "MS_SILENT", - "MS_SLAVE", - "MS_STRICTATIME", - "MS_SYNC", - "MS_SYNCHRONOUS", - "MS_UNBINDABLE", - "Madvise", - "MapViewOfFile", - "MaxTokenInfoClass", - "Mclpool", - "MibIfRow", - "Mkdir", - "Mkdirat", - "Mkfifo", - "Mknod", - "Mknodat", - "Mlock", - "Mlockall", - "Mmap", - "Mount", - "MoveFile", - "Mprotect", - "Msghdr", - "Munlock", - "Munlockall", - "Munmap", - "MustLoadDLL", - "NAME_MAX", - "NETLINK_ADD_MEMBERSHIP", - "NETLINK_AUDIT", - "NETLINK_BROADCAST_ERROR", - "NETLINK_CONNECTOR", - "NETLINK_DNRTMSG", - "NETLINK_DROP_MEMBERSHIP", - "NETLINK_ECRYPTFS", - "NETLINK_FIB_LOOKUP", - "NETLINK_FIREWALL", - "NETLINK_GENERIC", - "NETLINK_INET_DIAG", - "NETLINK_IP6_FW", - "NETLINK_ISCSI", - "NETLINK_KOBJECT_UEVENT", - "NETLINK_NETFILTER", - "NETLINK_NFLOG", - "NETLINK_NO_ENOBUFS", - "NETLINK_PKTINFO", - "NETLINK_RDMA", - "NETLINK_ROUTE", - "NETLINK_SCSITRANSPORT", - "NETLINK_SELINUX", - "NETLINK_UNUSED", - "NETLINK_USERSOCK", - "NETLINK_XFRM", - "NET_RT_DUMP", - "NET_RT_DUMP2", - "NET_RT_FLAGS", - "NET_RT_IFLIST", - "NET_RT_IFLIST2", - "NET_RT_IFLISTL", - "NET_RT_IFMALIST", - "NET_RT_MAXID", - "NET_RT_OIFLIST", - "NET_RT_OOIFLIST", - "NET_RT_STAT", - "NET_RT_STATS", - "NET_RT_TABLE", - "NET_RT_TRASH", - "NLA_ALIGNTO", - "NLA_F_NESTED", - "NLA_F_NET_BYTEORDER", - "NLA_HDRLEN", - "NLMSG_ALIGNTO", - "NLMSG_DONE", - "NLMSG_ERROR", - "NLMSG_HDRLEN", - "NLMSG_MIN_TYPE", - "NLMSG_NOOP", - "NLMSG_OVERRUN", - "NLM_F_ACK", - "NLM_F_APPEND", - "NLM_F_ATOMIC", - "NLM_F_CREATE", - "NLM_F_DUMP", - "NLM_F_ECHO", - "NLM_F_EXCL", - "NLM_F_MATCH", - "NLM_F_MULTI", - "NLM_F_REPLACE", - "NLM_F_REQUEST", - "NLM_F_ROOT", - "NOFLSH", - "NOTE_ABSOLUTE", - "NOTE_ATTRIB", - "NOTE_BACKGROUND", - "NOTE_CHILD", - "NOTE_CRITICAL", - "NOTE_DELETE", - "NOTE_EOF", - "NOTE_EXEC", - "NOTE_EXIT", - "NOTE_EXITSTATUS", - "NOTE_EXIT_CSERROR", - "NOTE_EXIT_DECRYPTFAIL", - "NOTE_EXIT_DETAIL", - "NOTE_EXIT_DETAIL_MASK", - "NOTE_EXIT_MEMORY", - "NOTE_EXIT_REPARENTED", - "NOTE_EXTEND", - "NOTE_FFAND", - "NOTE_FFCOPY", - "NOTE_FFCTRLMASK", - "NOTE_FFLAGSMASK", - "NOTE_FFNOP", - "NOTE_FFOR", - "NOTE_FORK", - "NOTE_LEEWAY", - "NOTE_LINK", - "NOTE_LOWAT", - "NOTE_NONE", - "NOTE_NSECONDS", - "NOTE_PCTRLMASK", - "NOTE_PDATAMASK", - "NOTE_REAP", - "NOTE_RENAME", - "NOTE_RESOURCEEND", - "NOTE_REVOKE", - "NOTE_SECONDS", - "NOTE_SIGNAL", - "NOTE_TRACK", - "NOTE_TRACKERR", - "NOTE_TRIGGER", - "NOTE_TRUNCATE", - "NOTE_USECONDS", - "NOTE_VM_ERROR", - "NOTE_VM_PRESSURE", - "NOTE_VM_PRESSURE_SUDDEN_TERMINATE", - "NOTE_VM_PRESSURE_TERMINATE", - "NOTE_WRITE", - "NameCanonical", - "NameCanonicalEx", - "NameDisplay", - "NameDnsDomain", - "NameFullyQualifiedDN", - "NameSamCompatible", - "NameServicePrincipal", - "NameUniqueId", - "NameUnknown", - "NameUserPrincipal", - "Nanosleep", - "NetApiBufferFree", - "NetGetJoinInformation", - "NetSetupDomainName", - "NetSetupUnjoined", - "NetSetupUnknownStatus", - "NetSetupWorkgroupName", - "NetUserGetInfo", - "NetlinkMessage", - "NetlinkRIB", - "NetlinkRouteAttr", - "NetlinkRouteRequest", - "NewCallback", - "NewCallbackCDecl", - "NewLazyDLL", - "NlAttr", - "NlMsgerr", - "NlMsghdr", - "NsecToFiletime", - "NsecToTimespec", - "NsecToTimeval", - "Ntohs", - "OCRNL", - "OFDEL", - "OFILL", - "OFIOGETBMAP", - "OID_PKIX_KP_SERVER_AUTH", - "OID_SERVER_GATED_CRYPTO", - "OID_SGC_NETSCAPE", - "OLCUC", - "ONLCR", - "ONLRET", - "ONOCR", - "ONOEOT", - "OPEN_ALWAYS", - "OPEN_EXISTING", - "OPOST", - "O_ACCMODE", - "O_ALERT", - "O_ALT_IO", - "O_APPEND", - "O_ASYNC", - "O_CLOEXEC", - "O_CREAT", - "O_DIRECT", - "O_DIRECTORY", - "O_DP_GETRAWENCRYPTED", - "O_DSYNC", - "O_EVTONLY", - "O_EXCL", - "O_EXEC", - "O_EXLOCK", - "O_FSYNC", - "O_LARGEFILE", - "O_NDELAY", - "O_NOATIME", - "O_NOCTTY", - "O_NOFOLLOW", - "O_NONBLOCK", - "O_NOSIGPIPE", - "O_POPUP", - "O_RDONLY", - "O_RDWR", - "O_RSYNC", - "O_SHLOCK", - "O_SYMLINK", - "O_SYNC", - "O_TRUNC", - "O_TTY_INIT", - "O_WRONLY", - "Open", - "OpenCurrentProcessToken", - "OpenProcess", - "OpenProcessToken", - "Openat", - "Overlapped", - "PACKET_ADD_MEMBERSHIP", - "PACKET_BROADCAST", - "PACKET_DROP_MEMBERSHIP", - "PACKET_FASTROUTE", - "PACKET_HOST", - "PACKET_LOOPBACK", - "PACKET_MR_ALLMULTI", - "PACKET_MR_MULTICAST", - "PACKET_MR_PROMISC", - "PACKET_MULTICAST", - "PACKET_OTHERHOST", - "PACKET_OUTGOING", - "PACKET_RECV_OUTPUT", - "PACKET_RX_RING", - "PACKET_STATISTICS", - "PAGE_EXECUTE_READ", - "PAGE_EXECUTE_READWRITE", - "PAGE_EXECUTE_WRITECOPY", - "PAGE_READONLY", - "PAGE_READWRITE", - "PAGE_WRITECOPY", - "PARENB", - "PARMRK", - "PARODD", - "PENDIN", - "PFL_HIDDEN", - "PFL_MATCHES_PROTOCOL_ZERO", - "PFL_MULTIPLE_PROTO_ENTRIES", - "PFL_NETWORKDIRECT_PROVIDER", - "PFL_RECOMMENDED_PROTO_ENTRY", - "PF_FLUSH", - "PKCS_7_ASN_ENCODING", - "PMC5_PIPELINE_FLUSH", - "PRIO_PGRP", - "PRIO_PROCESS", - "PRIO_USER", - "PRI_IOFLUSH", - "PROCESS_QUERY_INFORMATION", - "PROCESS_TERMINATE", - "PROT_EXEC", - "PROT_GROWSDOWN", - "PROT_GROWSUP", - "PROT_NONE", - "PROT_READ", - "PROT_WRITE", - "PROV_DH_SCHANNEL", - "PROV_DSS", - "PROV_DSS_DH", - "PROV_EC_ECDSA_FULL", - "PROV_EC_ECDSA_SIG", - "PROV_EC_ECNRA_FULL", - "PROV_EC_ECNRA_SIG", - "PROV_FORTEZZA", - "PROV_INTEL_SEC", - "PROV_MS_EXCHANGE", - "PROV_REPLACE_OWF", - "PROV_RNG", - "PROV_RSA_AES", - "PROV_RSA_FULL", - "PROV_RSA_SCHANNEL", - "PROV_RSA_SIG", - "PROV_SPYRUS_LYNKS", - "PROV_SSL", - "PR_CAPBSET_DROP", - "PR_CAPBSET_READ", - "PR_CLEAR_SECCOMP_FILTER", - "PR_ENDIAN_BIG", - "PR_ENDIAN_LITTLE", - "PR_ENDIAN_PPC_LITTLE", - "PR_FPEMU_NOPRINT", - "PR_FPEMU_SIGFPE", - "PR_FP_EXC_ASYNC", - "PR_FP_EXC_DISABLED", - "PR_FP_EXC_DIV", - "PR_FP_EXC_INV", - "PR_FP_EXC_NONRECOV", - "PR_FP_EXC_OVF", - "PR_FP_EXC_PRECISE", - "PR_FP_EXC_RES", - "PR_FP_EXC_SW_ENABLE", - "PR_FP_EXC_UND", - "PR_GET_DUMPABLE", - "PR_GET_ENDIAN", - "PR_GET_FPEMU", - "PR_GET_FPEXC", - "PR_GET_KEEPCAPS", - "PR_GET_NAME", - "PR_GET_PDEATHSIG", - "PR_GET_SECCOMP", - "PR_GET_SECCOMP_FILTER", - "PR_GET_SECUREBITS", - "PR_GET_TIMERSLACK", - "PR_GET_TIMING", - "PR_GET_TSC", - "PR_GET_UNALIGN", - "PR_MCE_KILL", - "PR_MCE_KILL_CLEAR", - "PR_MCE_KILL_DEFAULT", - "PR_MCE_KILL_EARLY", - "PR_MCE_KILL_GET", - "PR_MCE_KILL_LATE", - "PR_MCE_KILL_SET", - "PR_SECCOMP_FILTER_EVENT", - "PR_SECCOMP_FILTER_SYSCALL", - "PR_SET_DUMPABLE", - "PR_SET_ENDIAN", - "PR_SET_FPEMU", - "PR_SET_FPEXC", - "PR_SET_KEEPCAPS", - "PR_SET_NAME", - "PR_SET_PDEATHSIG", - "PR_SET_PTRACER", - "PR_SET_SECCOMP", - "PR_SET_SECCOMP_FILTER", - "PR_SET_SECUREBITS", - "PR_SET_TIMERSLACK", - "PR_SET_TIMING", - "PR_SET_TSC", - "PR_SET_UNALIGN", - "PR_TASK_PERF_EVENTS_DISABLE", - "PR_TASK_PERF_EVENTS_ENABLE", - "PR_TIMING_STATISTICAL", - "PR_TIMING_TIMESTAMP", - "PR_TSC_ENABLE", - "PR_TSC_SIGSEGV", - "PR_UNALIGN_NOPRINT", - "PR_UNALIGN_SIGBUS", - "PTRACE_ARCH_PRCTL", - "PTRACE_ATTACH", - "PTRACE_CONT", - "PTRACE_DETACH", - "PTRACE_EVENT_CLONE", - "PTRACE_EVENT_EXEC", - "PTRACE_EVENT_EXIT", - "PTRACE_EVENT_FORK", - "PTRACE_EVENT_VFORK", - "PTRACE_EVENT_VFORK_DONE", - "PTRACE_GETCRUNCHREGS", - "PTRACE_GETEVENTMSG", - "PTRACE_GETFPREGS", - "PTRACE_GETFPXREGS", - "PTRACE_GETHBPREGS", - "PTRACE_GETREGS", - "PTRACE_GETREGSET", - "PTRACE_GETSIGINFO", - "PTRACE_GETVFPREGS", - "PTRACE_GETWMMXREGS", - "PTRACE_GET_THREAD_AREA", - "PTRACE_KILL", - "PTRACE_OLDSETOPTIONS", - "PTRACE_O_MASK", - "PTRACE_O_TRACECLONE", - "PTRACE_O_TRACEEXEC", - "PTRACE_O_TRACEEXIT", - "PTRACE_O_TRACEFORK", - "PTRACE_O_TRACESYSGOOD", - "PTRACE_O_TRACEVFORK", - "PTRACE_O_TRACEVFORKDONE", - "PTRACE_PEEKDATA", - "PTRACE_PEEKTEXT", - "PTRACE_PEEKUSR", - "PTRACE_POKEDATA", - "PTRACE_POKETEXT", - "PTRACE_POKEUSR", - "PTRACE_SETCRUNCHREGS", - "PTRACE_SETFPREGS", - "PTRACE_SETFPXREGS", - "PTRACE_SETHBPREGS", - "PTRACE_SETOPTIONS", - "PTRACE_SETREGS", - "PTRACE_SETREGSET", - "PTRACE_SETSIGINFO", - "PTRACE_SETVFPREGS", - "PTRACE_SETWMMXREGS", - "PTRACE_SET_SYSCALL", - "PTRACE_SET_THREAD_AREA", - "PTRACE_SINGLEBLOCK", - "PTRACE_SINGLESTEP", - "PTRACE_SYSCALL", - "PTRACE_SYSEMU", - "PTRACE_SYSEMU_SINGLESTEP", - "PTRACE_TRACEME", - "PT_ATTACH", - "PT_ATTACHEXC", - "PT_CONTINUE", - "PT_DATA_ADDR", - "PT_DENY_ATTACH", - "PT_DETACH", - "PT_FIRSTMACH", - "PT_FORCEQUOTA", - "PT_KILL", - "PT_MASK", - "PT_READ_D", - "PT_READ_I", - "PT_READ_U", - "PT_SIGEXC", - "PT_STEP", - "PT_TEXT_ADDR", - "PT_TEXT_END_ADDR", - "PT_THUPDATE", - "PT_TRACE_ME", - "PT_WRITE_D", - "PT_WRITE_I", - "PT_WRITE_U", - "ParseDirent", - "ParseNetlinkMessage", - "ParseNetlinkRouteAttr", - "ParseRoutingMessage", - "ParseRoutingSockaddr", - "ParseSocketControlMessage", - "ParseUnixCredentials", - "ParseUnixRights", - "PathMax", - "Pathconf", - "Pause", - "Pipe", - "Pipe2", - "PivotRoot", - "Pointer", - "PostQueuedCompletionStatus", - "Pread", - "Proc", - "ProcAttr", - "Process32First", - "Process32Next", - "ProcessEntry32", - "ProcessInformation", - "Protoent", - "PtraceAttach", - "PtraceCont", - "PtraceDetach", - "PtraceGetEventMsg", - "PtraceGetRegs", - "PtracePeekData", - "PtracePeekText", - "PtracePokeData", - "PtracePokeText", - "PtraceRegs", - "PtraceSetOptions", - "PtraceSetRegs", - "PtraceSingleStep", - "PtraceSyscall", - "Pwrite", - "REG_BINARY", - "REG_DWORD", - "REG_DWORD_BIG_ENDIAN", - "REG_DWORD_LITTLE_ENDIAN", - "REG_EXPAND_SZ", - "REG_FULL_RESOURCE_DESCRIPTOR", - "REG_LINK", - "REG_MULTI_SZ", - "REG_NONE", - "REG_QWORD", - "REG_QWORD_LITTLE_ENDIAN", - "REG_RESOURCE_LIST", - "REG_RESOURCE_REQUIREMENTS_LIST", - "REG_SZ", - "RLIMIT_AS", - "RLIMIT_CORE", - "RLIMIT_CPU", - "RLIMIT_CPU_USAGE_MONITOR", - "RLIMIT_DATA", - "RLIMIT_FSIZE", - "RLIMIT_NOFILE", - "RLIMIT_STACK", - "RLIM_INFINITY", - "RTAX_ADVMSS", - "RTAX_AUTHOR", - "RTAX_BRD", - "RTAX_CWND", - "RTAX_DST", - "RTAX_FEATURES", - "RTAX_FEATURE_ALLFRAG", - "RTAX_FEATURE_ECN", - "RTAX_FEATURE_SACK", - "RTAX_FEATURE_TIMESTAMP", - "RTAX_GATEWAY", - "RTAX_GENMASK", - "RTAX_HOPLIMIT", - "RTAX_IFA", - "RTAX_IFP", - "RTAX_INITCWND", - "RTAX_INITRWND", - "RTAX_LABEL", - "RTAX_LOCK", - "RTAX_MAX", - "RTAX_MTU", - "RTAX_NETMASK", - "RTAX_REORDERING", - "RTAX_RTO_MIN", - "RTAX_RTT", - "RTAX_RTTVAR", - "RTAX_SRC", - "RTAX_SRCMASK", - "RTAX_SSTHRESH", - "RTAX_TAG", - "RTAX_UNSPEC", - "RTAX_WINDOW", - "RTA_ALIGNTO", - "RTA_AUTHOR", - "RTA_BRD", - "RTA_CACHEINFO", - "RTA_DST", - "RTA_FLOW", - "RTA_GATEWAY", - "RTA_GENMASK", - "RTA_IFA", - "RTA_IFP", - "RTA_IIF", - "RTA_LABEL", - "RTA_MAX", - "RTA_METRICS", - "RTA_MULTIPATH", - "RTA_NETMASK", - "RTA_OIF", - "RTA_PREFSRC", - "RTA_PRIORITY", - "RTA_SRC", - "RTA_SRCMASK", - "RTA_TABLE", - "RTA_TAG", - "RTA_UNSPEC", - "RTCF_DIRECTSRC", - "RTCF_DOREDIRECT", - "RTCF_LOG", - "RTCF_MASQ", - "RTCF_NAT", - "RTCF_VALVE", - "RTF_ADDRCLASSMASK", - "RTF_ADDRCONF", - "RTF_ALLONLINK", - "RTF_ANNOUNCE", - "RTF_BLACKHOLE", - "RTF_BROADCAST", - "RTF_CACHE", - "RTF_CLONED", - "RTF_CLONING", - "RTF_CONDEMNED", - "RTF_DEFAULT", - "RTF_DELCLONE", - "RTF_DONE", - "RTF_DYNAMIC", - "RTF_FLOW", - "RTF_FMASK", - "RTF_GATEWAY", - "RTF_GWFLAG_COMPAT", - "RTF_HOST", - "RTF_IFREF", - "RTF_IFSCOPE", - "RTF_INTERFACE", - "RTF_IRTT", - "RTF_LINKRT", - "RTF_LLDATA", - "RTF_LLINFO", - "RTF_LOCAL", - "RTF_MASK", - "RTF_MODIFIED", - "RTF_MPATH", - "RTF_MPLS", - "RTF_MSS", - "RTF_MTU", - "RTF_MULTICAST", - "RTF_NAT", - "RTF_NOFORWARD", - "RTF_NONEXTHOP", - "RTF_NOPMTUDISC", - "RTF_PERMANENT_ARP", - "RTF_PINNED", - "RTF_POLICY", - "RTF_PRCLONING", - "RTF_PROTO1", - "RTF_PROTO2", - "RTF_PROTO3", - "RTF_PROXY", - "RTF_REINSTATE", - "RTF_REJECT", - "RTF_RNH_LOCKED", - "RTF_ROUTER", - "RTF_SOURCE", - "RTF_SRC", - "RTF_STATIC", - "RTF_STICKY", - "RTF_THROW", - "RTF_TUNNEL", - "RTF_UP", - "RTF_USETRAILERS", - "RTF_WASCLONED", - "RTF_WINDOW", - "RTF_XRESOLVE", - "RTM_ADD", - "RTM_BASE", - "RTM_CHANGE", - "RTM_CHGADDR", - "RTM_DELACTION", - "RTM_DELADDR", - "RTM_DELADDRLABEL", - "RTM_DELETE", - "RTM_DELLINK", - "RTM_DELMADDR", - "RTM_DELNEIGH", - "RTM_DELQDISC", - "RTM_DELROUTE", - "RTM_DELRULE", - "RTM_DELTCLASS", - "RTM_DELTFILTER", - "RTM_DESYNC", - "RTM_F_CLONED", - "RTM_F_EQUALIZE", - "RTM_F_NOTIFY", - "RTM_F_PREFIX", - "RTM_GET", - "RTM_GET2", - "RTM_GETACTION", - "RTM_GETADDR", - "RTM_GETADDRLABEL", - "RTM_GETANYCAST", - "RTM_GETDCB", - "RTM_GETLINK", - "RTM_GETMULTICAST", - "RTM_GETNEIGH", - "RTM_GETNEIGHTBL", - "RTM_GETQDISC", - "RTM_GETROUTE", - "RTM_GETRULE", - "RTM_GETTCLASS", - "RTM_GETTFILTER", - "RTM_IEEE80211", - "RTM_IFANNOUNCE", - "RTM_IFINFO", - "RTM_IFINFO2", - "RTM_LLINFO_UPD", - "RTM_LOCK", - "RTM_LOSING", - "RTM_MAX", - "RTM_MAXSIZE", - "RTM_MISS", - "RTM_NEWACTION", - "RTM_NEWADDR", - "RTM_NEWADDRLABEL", - "RTM_NEWLINK", - "RTM_NEWMADDR", - "RTM_NEWMADDR2", - "RTM_NEWNDUSEROPT", - "RTM_NEWNEIGH", - "RTM_NEWNEIGHTBL", - "RTM_NEWPREFIX", - "RTM_NEWQDISC", - "RTM_NEWROUTE", - "RTM_NEWRULE", - "RTM_NEWTCLASS", - "RTM_NEWTFILTER", - "RTM_NR_FAMILIES", - "RTM_NR_MSGTYPES", - "RTM_OIFINFO", - "RTM_OLDADD", - "RTM_OLDDEL", - "RTM_OOIFINFO", - "RTM_REDIRECT", - "RTM_RESOLVE", - "RTM_RTTUNIT", - "RTM_SETDCB", - "RTM_SETGATE", - "RTM_SETLINK", - "RTM_SETNEIGHTBL", - "RTM_VERSION", - "RTNH_ALIGNTO", - "RTNH_F_DEAD", - "RTNH_F_ONLINK", - "RTNH_F_PERVASIVE", - "RTNLGRP_IPV4_IFADDR", - "RTNLGRP_IPV4_MROUTE", - "RTNLGRP_IPV4_ROUTE", - "RTNLGRP_IPV4_RULE", - "RTNLGRP_IPV6_IFADDR", - "RTNLGRP_IPV6_IFINFO", - "RTNLGRP_IPV6_MROUTE", - "RTNLGRP_IPV6_PREFIX", - "RTNLGRP_IPV6_ROUTE", - "RTNLGRP_IPV6_RULE", - "RTNLGRP_LINK", - "RTNLGRP_ND_USEROPT", - "RTNLGRP_NEIGH", - "RTNLGRP_NONE", - "RTNLGRP_NOTIFY", - "RTNLGRP_TC", - "RTN_ANYCAST", - "RTN_BLACKHOLE", - "RTN_BROADCAST", - "RTN_LOCAL", - "RTN_MAX", - "RTN_MULTICAST", - "RTN_NAT", - "RTN_PROHIBIT", - "RTN_THROW", - "RTN_UNICAST", - "RTN_UNREACHABLE", - "RTN_UNSPEC", - "RTN_XRESOLVE", - "RTPROT_BIRD", - "RTPROT_BOOT", - "RTPROT_DHCP", - "RTPROT_DNROUTED", - "RTPROT_GATED", - "RTPROT_KERNEL", - "RTPROT_MRT", - "RTPROT_NTK", - "RTPROT_RA", - "RTPROT_REDIRECT", - "RTPROT_STATIC", - "RTPROT_UNSPEC", - "RTPROT_XORP", - "RTPROT_ZEBRA", - "RTV_EXPIRE", - "RTV_HOPCOUNT", - "RTV_MTU", - "RTV_RPIPE", - "RTV_RTT", - "RTV_RTTVAR", - "RTV_SPIPE", - "RTV_SSTHRESH", - "RTV_WEIGHT", - "RT_CACHING_CONTEXT", - "RT_CLASS_DEFAULT", - "RT_CLASS_LOCAL", - "RT_CLASS_MAIN", - "RT_CLASS_MAX", - "RT_CLASS_UNSPEC", - "RT_DEFAULT_FIB", - "RT_NORTREF", - "RT_SCOPE_HOST", - "RT_SCOPE_LINK", - "RT_SCOPE_NOWHERE", - "RT_SCOPE_SITE", - "RT_SCOPE_UNIVERSE", - "RT_TABLEID_MAX", - "RT_TABLE_COMPAT", - "RT_TABLE_DEFAULT", - "RT_TABLE_LOCAL", - "RT_TABLE_MAIN", - "RT_TABLE_MAX", - "RT_TABLE_UNSPEC", - "RUSAGE_CHILDREN", - "RUSAGE_SELF", - "RUSAGE_THREAD", - "Radvisory_t", - "RawConn", - "RawSockaddr", - "RawSockaddrAny", - "RawSockaddrDatalink", - "RawSockaddrInet4", - "RawSockaddrInet6", - "RawSockaddrLinklayer", - "RawSockaddrNetlink", - "RawSockaddrUnix", - "RawSyscall", - "RawSyscall6", - "Read", - "ReadConsole", - "ReadDirectoryChanges", - "ReadDirent", - "ReadFile", - "Readlink", - "Reboot", - "Recvfrom", - "Recvmsg", - "RegCloseKey", - "RegEnumKeyEx", - "RegOpenKeyEx", - "RegQueryInfoKey", - "RegQueryValueEx", - "RemoveDirectory", - "Removexattr", - "Rename", - "Renameat", - "Revoke", - "Rlimit", - "Rmdir", - "RouteMessage", - "RouteRIB", - "RoutingMessage", - "RtAttr", - "RtGenmsg", - "RtMetrics", - "RtMsg", - "RtMsghdr", - "RtNexthop", - "Rusage", - "SCM_BINTIME", - "SCM_CREDENTIALS", - "SCM_CREDS", - "SCM_RIGHTS", - "SCM_TIMESTAMP", - "SCM_TIMESTAMPING", - "SCM_TIMESTAMPNS", - "SCM_TIMESTAMP_MONOTONIC", - "SHUT_RD", - "SHUT_RDWR", - "SHUT_WR", - "SID", - "SIDAndAttributes", - "SIGABRT", - "SIGALRM", - "SIGBUS", - "SIGCHLD", - "SIGCLD", - "SIGCONT", - "SIGEMT", - "SIGFPE", - "SIGHUP", - "SIGILL", - "SIGINFO", - "SIGINT", - "SIGIO", - "SIGIOT", - "SIGKILL", - "SIGLIBRT", - "SIGLWP", - "SIGPIPE", - "SIGPOLL", - "SIGPROF", - "SIGPWR", - "SIGQUIT", - "SIGSEGV", - "SIGSTKFLT", - "SIGSTOP", - "SIGSYS", - "SIGTERM", - "SIGTHR", - "SIGTRAP", - "SIGTSTP", - "SIGTTIN", - "SIGTTOU", - "SIGUNUSED", - "SIGURG", - "SIGUSR1", - "SIGUSR2", - "SIGVTALRM", - "SIGWINCH", - "SIGXCPU", - "SIGXFSZ", - "SIOCADDDLCI", - "SIOCADDMULTI", - "SIOCADDRT", - "SIOCAIFADDR", - "SIOCAIFGROUP", - "SIOCALIFADDR", - "SIOCARPIPLL", - "SIOCATMARK", - "SIOCAUTOADDR", - "SIOCAUTONETMASK", - "SIOCBRDGADD", - "SIOCBRDGADDS", - "SIOCBRDGARL", - "SIOCBRDGDADDR", - "SIOCBRDGDEL", - "SIOCBRDGDELS", - "SIOCBRDGFLUSH", - "SIOCBRDGFRL", - "SIOCBRDGGCACHE", - "SIOCBRDGGFD", - "SIOCBRDGGHT", - "SIOCBRDGGIFFLGS", - "SIOCBRDGGMA", - "SIOCBRDGGPARAM", - "SIOCBRDGGPRI", - "SIOCBRDGGRL", - "SIOCBRDGGSIFS", - "SIOCBRDGGTO", - "SIOCBRDGIFS", - "SIOCBRDGRTS", - "SIOCBRDGSADDR", - "SIOCBRDGSCACHE", - "SIOCBRDGSFD", - "SIOCBRDGSHT", - "SIOCBRDGSIFCOST", - "SIOCBRDGSIFFLGS", - "SIOCBRDGSIFPRIO", - "SIOCBRDGSMA", - "SIOCBRDGSPRI", - "SIOCBRDGSPROTO", - "SIOCBRDGSTO", - "SIOCBRDGSTXHC", - "SIOCDARP", - "SIOCDELDLCI", - "SIOCDELMULTI", - "SIOCDELRT", - "SIOCDEVPRIVATE", - "SIOCDIFADDR", - "SIOCDIFGROUP", - "SIOCDIFPHYADDR", - "SIOCDLIFADDR", - "SIOCDRARP", - "SIOCGARP", - "SIOCGDRVSPEC", - "SIOCGETKALIVE", - "SIOCGETLABEL", - "SIOCGETPFLOW", - "SIOCGETPFSYNC", - "SIOCGETSGCNT", - "SIOCGETVIFCNT", - "SIOCGETVLAN", - "SIOCGHIWAT", - "SIOCGIFADDR", - "SIOCGIFADDRPREF", - "SIOCGIFALIAS", - "SIOCGIFALTMTU", - "SIOCGIFASYNCMAP", - "SIOCGIFBOND", - "SIOCGIFBR", - "SIOCGIFBRDADDR", - "SIOCGIFCAP", - "SIOCGIFCONF", - "SIOCGIFCOUNT", - "SIOCGIFDATA", - "SIOCGIFDESCR", - "SIOCGIFDEVMTU", - "SIOCGIFDLT", - "SIOCGIFDSTADDR", - "SIOCGIFENCAP", - "SIOCGIFFIB", - "SIOCGIFFLAGS", - "SIOCGIFGATTR", - "SIOCGIFGENERIC", - "SIOCGIFGMEMB", - "SIOCGIFGROUP", - "SIOCGIFHARDMTU", - "SIOCGIFHWADDR", - "SIOCGIFINDEX", - "SIOCGIFKPI", - "SIOCGIFMAC", - "SIOCGIFMAP", - "SIOCGIFMEDIA", - "SIOCGIFMEM", - "SIOCGIFMETRIC", - "SIOCGIFMTU", - "SIOCGIFNAME", - "SIOCGIFNETMASK", - "SIOCGIFPDSTADDR", - "SIOCGIFPFLAGS", - "SIOCGIFPHYS", - "SIOCGIFPRIORITY", - "SIOCGIFPSRCADDR", - "SIOCGIFRDOMAIN", - "SIOCGIFRTLABEL", - "SIOCGIFSLAVE", - "SIOCGIFSTATUS", - "SIOCGIFTIMESLOT", - "SIOCGIFTXQLEN", - "SIOCGIFVLAN", - "SIOCGIFWAKEFLAGS", - "SIOCGIFXFLAGS", - "SIOCGLIFADDR", - "SIOCGLIFPHYADDR", - "SIOCGLIFPHYRTABLE", - "SIOCGLIFPHYTTL", - "SIOCGLINKSTR", - "SIOCGLOWAT", - "SIOCGPGRP", - "SIOCGPRIVATE_0", - "SIOCGPRIVATE_1", - "SIOCGRARP", - "SIOCGSPPPPARAMS", - "SIOCGSTAMP", - "SIOCGSTAMPNS", - "SIOCGVH", - "SIOCGVNETID", - "SIOCIFCREATE", - "SIOCIFCREATE2", - "SIOCIFDESTROY", - "SIOCIFGCLONERS", - "SIOCINITIFADDR", - "SIOCPROTOPRIVATE", - "SIOCRSLVMULTI", - "SIOCRTMSG", - "SIOCSARP", - "SIOCSDRVSPEC", - "SIOCSETKALIVE", - "SIOCSETLABEL", - "SIOCSETPFLOW", - "SIOCSETPFSYNC", - "SIOCSETVLAN", - "SIOCSHIWAT", - "SIOCSIFADDR", - "SIOCSIFADDRPREF", - "SIOCSIFALTMTU", - "SIOCSIFASYNCMAP", - "SIOCSIFBOND", - "SIOCSIFBR", - "SIOCSIFBRDADDR", - "SIOCSIFCAP", - "SIOCSIFDESCR", - "SIOCSIFDSTADDR", - "SIOCSIFENCAP", - "SIOCSIFFIB", - "SIOCSIFFLAGS", - "SIOCSIFGATTR", - "SIOCSIFGENERIC", - "SIOCSIFHWADDR", - "SIOCSIFHWBROADCAST", - "SIOCSIFKPI", - "SIOCSIFLINK", - "SIOCSIFLLADDR", - "SIOCSIFMAC", - "SIOCSIFMAP", - "SIOCSIFMEDIA", - "SIOCSIFMEM", - "SIOCSIFMETRIC", - "SIOCSIFMTU", - "SIOCSIFNAME", - "SIOCSIFNETMASK", - "SIOCSIFPFLAGS", - "SIOCSIFPHYADDR", - "SIOCSIFPHYS", - "SIOCSIFPRIORITY", - "SIOCSIFRDOMAIN", - "SIOCSIFRTLABEL", - "SIOCSIFRVNET", - "SIOCSIFSLAVE", - "SIOCSIFTIMESLOT", - "SIOCSIFTXQLEN", - "SIOCSIFVLAN", - "SIOCSIFVNET", - "SIOCSIFXFLAGS", - "SIOCSLIFPHYADDR", - "SIOCSLIFPHYRTABLE", - "SIOCSLIFPHYTTL", - "SIOCSLINKSTR", - "SIOCSLOWAT", - "SIOCSPGRP", - "SIOCSRARP", - "SIOCSSPPPPARAMS", - "SIOCSVH", - "SIOCSVNETID", - "SIOCZIFDATA", - "SIO_GET_EXTENSION_FUNCTION_POINTER", - "SIO_GET_INTERFACE_LIST", - "SIO_KEEPALIVE_VALS", - "SIO_UDP_CONNRESET", - "SOCK_CLOEXEC", - "SOCK_DCCP", - "SOCK_DGRAM", - "SOCK_FLAGS_MASK", - "SOCK_MAXADDRLEN", - "SOCK_NONBLOCK", - "SOCK_NOSIGPIPE", - "SOCK_PACKET", - "SOCK_RAW", - "SOCK_RDM", - "SOCK_SEQPACKET", - "SOCK_STREAM", - "SOL_AAL", - "SOL_ATM", - "SOL_DECNET", - "SOL_ICMPV6", - "SOL_IP", - "SOL_IPV6", - "SOL_IRDA", - "SOL_PACKET", - "SOL_RAW", - "SOL_SOCKET", - "SOL_TCP", - "SOL_X25", - "SOMAXCONN", - "SO_ACCEPTCONN", - "SO_ACCEPTFILTER", - "SO_ATTACH_FILTER", - "SO_BINDANY", - "SO_BINDTODEVICE", - "SO_BINTIME", - "SO_BROADCAST", - "SO_BSDCOMPAT", - "SO_DEBUG", - "SO_DETACH_FILTER", - "SO_DOMAIN", - "SO_DONTROUTE", - "SO_DONTTRUNC", - "SO_ERROR", - "SO_KEEPALIVE", - "SO_LABEL", - "SO_LINGER", - "SO_LINGER_SEC", - "SO_LISTENINCQLEN", - "SO_LISTENQLEN", - "SO_LISTENQLIMIT", - "SO_MARK", - "SO_NETPROC", - "SO_NKE", - "SO_NOADDRERR", - "SO_NOHEADER", - "SO_NOSIGPIPE", - "SO_NOTIFYCONFLICT", - "SO_NO_CHECK", - "SO_NO_DDP", - "SO_NO_OFFLOAD", - "SO_NP_EXTENSIONS", - "SO_NREAD", - "SO_NUMRCVPKT", - "SO_NWRITE", - "SO_OOBINLINE", - "SO_OVERFLOWED", - "SO_PASSCRED", - "SO_PASSSEC", - "SO_PEERCRED", - "SO_PEERLABEL", - "SO_PEERNAME", - "SO_PEERSEC", - "SO_PRIORITY", - "SO_PROTOCOL", - "SO_PROTOTYPE", - "SO_RANDOMPORT", - "SO_RCVBUF", - "SO_RCVBUFFORCE", - "SO_RCVLOWAT", - "SO_RCVTIMEO", - "SO_RESTRICTIONS", - "SO_RESTRICT_DENYIN", - "SO_RESTRICT_DENYOUT", - "SO_RESTRICT_DENYSET", - "SO_REUSEADDR", - "SO_REUSEPORT", - "SO_REUSESHAREUID", - "SO_RTABLE", - "SO_RXQ_OVFL", - "SO_SECURITY_AUTHENTICATION", - "SO_SECURITY_ENCRYPTION_NETWORK", - "SO_SECURITY_ENCRYPTION_TRANSPORT", - "SO_SETFIB", - "SO_SNDBUF", - "SO_SNDBUFFORCE", - "SO_SNDLOWAT", - "SO_SNDTIMEO", - "SO_SPLICE", - "SO_TIMESTAMP", - "SO_TIMESTAMPING", - "SO_TIMESTAMPNS", - "SO_TIMESTAMP_MONOTONIC", - "SO_TYPE", - "SO_UPCALLCLOSEWAIT", - "SO_UPDATE_ACCEPT_CONTEXT", - "SO_UPDATE_CONNECT_CONTEXT", - "SO_USELOOPBACK", - "SO_USER_COOKIE", - "SO_VENDOR", - "SO_WANTMORE", - "SO_WANTOOBFLAG", - "SSLExtraCertChainPolicyPara", - "STANDARD_RIGHTS_ALL", - "STANDARD_RIGHTS_EXECUTE", - "STANDARD_RIGHTS_READ", - "STANDARD_RIGHTS_REQUIRED", - "STANDARD_RIGHTS_WRITE", - "STARTF_USESHOWWINDOW", - "STARTF_USESTDHANDLES", - "STD_ERROR_HANDLE", - "STD_INPUT_HANDLE", - "STD_OUTPUT_HANDLE", - "SUBLANG_ENGLISH_US", - "SW_FORCEMINIMIZE", - "SW_HIDE", - "SW_MAXIMIZE", - "SW_MINIMIZE", - "SW_NORMAL", - "SW_RESTORE", - "SW_SHOW", - "SW_SHOWDEFAULT", - "SW_SHOWMAXIMIZED", - "SW_SHOWMINIMIZED", - "SW_SHOWMINNOACTIVE", - "SW_SHOWNA", - "SW_SHOWNOACTIVATE", - "SW_SHOWNORMAL", - "SYMBOLIC_LINK_FLAG_DIRECTORY", - "SYNCHRONIZE", - "SYSCTL_VERSION", - "SYSCTL_VERS_0", - "SYSCTL_VERS_1", - "SYSCTL_VERS_MASK", - "SYS_ABORT2", - "SYS_ACCEPT", - "SYS_ACCEPT4", - "SYS_ACCEPT_NOCANCEL", - "SYS_ACCESS", - "SYS_ACCESS_EXTENDED", - "SYS_ACCT", - "SYS_ADD_KEY", - "SYS_ADD_PROFIL", - "SYS_ADJFREQ", - "SYS_ADJTIME", - "SYS_ADJTIMEX", - "SYS_AFS_SYSCALL", - "SYS_AIO_CANCEL", - "SYS_AIO_ERROR", - "SYS_AIO_FSYNC", - "SYS_AIO_MLOCK", - "SYS_AIO_READ", - "SYS_AIO_RETURN", - "SYS_AIO_SUSPEND", - "SYS_AIO_SUSPEND_NOCANCEL", - "SYS_AIO_WAITCOMPLETE", - "SYS_AIO_WRITE", - "SYS_ALARM", - "SYS_ARCH_PRCTL", - "SYS_ARM_FADVISE64_64", - "SYS_ARM_SYNC_FILE_RANGE", - "SYS_ATGETMSG", - "SYS_ATPGETREQ", - "SYS_ATPGETRSP", - "SYS_ATPSNDREQ", - "SYS_ATPSNDRSP", - "SYS_ATPUTMSG", - "SYS_ATSOCKET", - "SYS_AUDIT", - "SYS_AUDITCTL", - "SYS_AUDITON", - "SYS_AUDIT_SESSION_JOIN", - "SYS_AUDIT_SESSION_PORT", - "SYS_AUDIT_SESSION_SELF", - "SYS_BDFLUSH", - "SYS_BIND", - "SYS_BINDAT", - "SYS_BREAK", - "SYS_BRK", - "SYS_BSDTHREAD_CREATE", - "SYS_BSDTHREAD_REGISTER", - "SYS_BSDTHREAD_TERMINATE", - "SYS_CAPGET", - "SYS_CAPSET", - "SYS_CAP_ENTER", - "SYS_CAP_FCNTLS_GET", - "SYS_CAP_FCNTLS_LIMIT", - "SYS_CAP_GETMODE", - "SYS_CAP_GETRIGHTS", - "SYS_CAP_IOCTLS_GET", - "SYS_CAP_IOCTLS_LIMIT", - "SYS_CAP_NEW", - "SYS_CAP_RIGHTS_GET", - "SYS_CAP_RIGHTS_LIMIT", - "SYS_CHDIR", - "SYS_CHFLAGS", - "SYS_CHFLAGSAT", - "SYS_CHMOD", - "SYS_CHMOD_EXTENDED", - "SYS_CHOWN", - "SYS_CHOWN32", - "SYS_CHROOT", - "SYS_CHUD", - "SYS_CLOCK_ADJTIME", - "SYS_CLOCK_GETCPUCLOCKID2", - "SYS_CLOCK_GETRES", - "SYS_CLOCK_GETTIME", - "SYS_CLOCK_NANOSLEEP", - "SYS_CLOCK_SETTIME", - "SYS_CLONE", - "SYS_CLOSE", - "SYS_CLOSEFROM", - "SYS_CLOSE_NOCANCEL", - "SYS_CONNECT", - "SYS_CONNECTAT", - "SYS_CONNECT_NOCANCEL", - "SYS_COPYFILE", - "SYS_CPUSET", - "SYS_CPUSET_GETAFFINITY", - "SYS_CPUSET_GETID", - "SYS_CPUSET_SETAFFINITY", - "SYS_CPUSET_SETID", - "SYS_CREAT", - "SYS_CREATE_MODULE", - "SYS_CSOPS", - "SYS_CSOPS_AUDITTOKEN", - "SYS_DELETE", - "SYS_DELETE_MODULE", - "SYS_DUP", - "SYS_DUP2", - "SYS_DUP3", - "SYS_EACCESS", - "SYS_EPOLL_CREATE", - "SYS_EPOLL_CREATE1", - "SYS_EPOLL_CTL", - "SYS_EPOLL_CTL_OLD", - "SYS_EPOLL_PWAIT", - "SYS_EPOLL_WAIT", - "SYS_EPOLL_WAIT_OLD", - "SYS_EVENTFD", - "SYS_EVENTFD2", - "SYS_EXCHANGEDATA", - "SYS_EXECVE", - "SYS_EXIT", - "SYS_EXIT_GROUP", - "SYS_EXTATTRCTL", - "SYS_EXTATTR_DELETE_FD", - "SYS_EXTATTR_DELETE_FILE", - "SYS_EXTATTR_DELETE_LINK", - "SYS_EXTATTR_GET_FD", - "SYS_EXTATTR_GET_FILE", - "SYS_EXTATTR_GET_LINK", - "SYS_EXTATTR_LIST_FD", - "SYS_EXTATTR_LIST_FILE", - "SYS_EXTATTR_LIST_LINK", - "SYS_EXTATTR_SET_FD", - "SYS_EXTATTR_SET_FILE", - "SYS_EXTATTR_SET_LINK", - "SYS_FACCESSAT", - "SYS_FADVISE64", - "SYS_FADVISE64_64", - "SYS_FALLOCATE", - "SYS_FANOTIFY_INIT", - "SYS_FANOTIFY_MARK", - "SYS_FCHDIR", - "SYS_FCHFLAGS", - "SYS_FCHMOD", - "SYS_FCHMODAT", - "SYS_FCHMOD_EXTENDED", - "SYS_FCHOWN", - "SYS_FCHOWN32", - "SYS_FCHOWNAT", - "SYS_FCHROOT", - "SYS_FCNTL", - "SYS_FCNTL64", - "SYS_FCNTL_NOCANCEL", - "SYS_FDATASYNC", - "SYS_FEXECVE", - "SYS_FFCLOCK_GETCOUNTER", - "SYS_FFCLOCK_GETESTIMATE", - "SYS_FFCLOCK_SETESTIMATE", - "SYS_FFSCTL", - "SYS_FGETATTRLIST", - "SYS_FGETXATTR", - "SYS_FHOPEN", - "SYS_FHSTAT", - "SYS_FHSTATFS", - "SYS_FILEPORT_MAKEFD", - "SYS_FILEPORT_MAKEPORT", - "SYS_FKTRACE", - "SYS_FLISTXATTR", - "SYS_FLOCK", - "SYS_FORK", - "SYS_FPATHCONF", - "SYS_FREEBSD6_FTRUNCATE", - "SYS_FREEBSD6_LSEEK", - "SYS_FREEBSD6_MMAP", - "SYS_FREEBSD6_PREAD", - "SYS_FREEBSD6_PWRITE", - "SYS_FREEBSD6_TRUNCATE", - "SYS_FREMOVEXATTR", - "SYS_FSCTL", - "SYS_FSETATTRLIST", - "SYS_FSETXATTR", - "SYS_FSGETPATH", - "SYS_FSTAT", - "SYS_FSTAT64", - "SYS_FSTAT64_EXTENDED", - "SYS_FSTATAT", - "SYS_FSTATAT64", - "SYS_FSTATFS", - "SYS_FSTATFS64", - "SYS_FSTATV", - "SYS_FSTATVFS1", - "SYS_FSTAT_EXTENDED", - "SYS_FSYNC", - "SYS_FSYNC_NOCANCEL", - "SYS_FSYNC_RANGE", - "SYS_FTIME", - "SYS_FTRUNCATE", - "SYS_FTRUNCATE64", - "SYS_FUTEX", - "SYS_FUTIMENS", - "SYS_FUTIMES", - "SYS_FUTIMESAT", - "SYS_GETATTRLIST", - "SYS_GETAUDIT", - "SYS_GETAUDIT_ADDR", - "SYS_GETAUID", - "SYS_GETCONTEXT", - "SYS_GETCPU", - "SYS_GETCWD", - "SYS_GETDENTS", - "SYS_GETDENTS64", - "SYS_GETDIRENTRIES", - "SYS_GETDIRENTRIES64", - "SYS_GETDIRENTRIESATTR", - "SYS_GETDTABLECOUNT", - "SYS_GETDTABLESIZE", - "SYS_GETEGID", - "SYS_GETEGID32", - "SYS_GETEUID", - "SYS_GETEUID32", - "SYS_GETFH", - "SYS_GETFSSTAT", - "SYS_GETFSSTAT64", - "SYS_GETGID", - "SYS_GETGID32", - "SYS_GETGROUPS", - "SYS_GETGROUPS32", - "SYS_GETHOSTUUID", - "SYS_GETITIMER", - "SYS_GETLCID", - "SYS_GETLOGIN", - "SYS_GETLOGINCLASS", - "SYS_GETPEERNAME", - "SYS_GETPGID", - "SYS_GETPGRP", - "SYS_GETPID", - "SYS_GETPMSG", - "SYS_GETPPID", - "SYS_GETPRIORITY", - "SYS_GETRESGID", - "SYS_GETRESGID32", - "SYS_GETRESUID", - "SYS_GETRESUID32", - "SYS_GETRLIMIT", - "SYS_GETRTABLE", - "SYS_GETRUSAGE", - "SYS_GETSGROUPS", - "SYS_GETSID", - "SYS_GETSOCKNAME", - "SYS_GETSOCKOPT", - "SYS_GETTHRID", - "SYS_GETTID", - "SYS_GETTIMEOFDAY", - "SYS_GETUID", - "SYS_GETUID32", - "SYS_GETVFSSTAT", - "SYS_GETWGROUPS", - "SYS_GETXATTR", - "SYS_GET_KERNEL_SYMS", - "SYS_GET_MEMPOLICY", - "SYS_GET_ROBUST_LIST", - "SYS_GET_THREAD_AREA", - "SYS_GSSD_SYSCALL", - "SYS_GTTY", - "SYS_IDENTITYSVC", - "SYS_IDLE", - "SYS_INITGROUPS", - "SYS_INIT_MODULE", - "SYS_INOTIFY_ADD_WATCH", - "SYS_INOTIFY_INIT", - "SYS_INOTIFY_INIT1", - "SYS_INOTIFY_RM_WATCH", - "SYS_IOCTL", - "SYS_IOPERM", - "SYS_IOPL", - "SYS_IOPOLICYSYS", - "SYS_IOPRIO_GET", - "SYS_IOPRIO_SET", - "SYS_IO_CANCEL", - "SYS_IO_DESTROY", - "SYS_IO_GETEVENTS", - "SYS_IO_SETUP", - "SYS_IO_SUBMIT", - "SYS_IPC", - "SYS_ISSETUGID", - "SYS_JAIL", - "SYS_JAIL_ATTACH", - "SYS_JAIL_GET", - "SYS_JAIL_REMOVE", - "SYS_JAIL_SET", - "SYS_KAS_INFO", - "SYS_KDEBUG_TRACE", - "SYS_KENV", - "SYS_KEVENT", - "SYS_KEVENT64", - "SYS_KEXEC_LOAD", - "SYS_KEYCTL", - "SYS_KILL", - "SYS_KLDFIND", - "SYS_KLDFIRSTMOD", - "SYS_KLDLOAD", - "SYS_KLDNEXT", - "SYS_KLDSTAT", - "SYS_KLDSYM", - "SYS_KLDUNLOAD", - "SYS_KLDUNLOADF", - "SYS_KMQ_NOTIFY", - "SYS_KMQ_OPEN", - "SYS_KMQ_SETATTR", - "SYS_KMQ_TIMEDRECEIVE", - "SYS_KMQ_TIMEDSEND", - "SYS_KMQ_UNLINK", - "SYS_KQUEUE", - "SYS_KQUEUE1", - "SYS_KSEM_CLOSE", - "SYS_KSEM_DESTROY", - "SYS_KSEM_GETVALUE", - "SYS_KSEM_INIT", - "SYS_KSEM_OPEN", - "SYS_KSEM_POST", - "SYS_KSEM_TIMEDWAIT", - "SYS_KSEM_TRYWAIT", - "SYS_KSEM_UNLINK", - "SYS_KSEM_WAIT", - "SYS_KTIMER_CREATE", - "SYS_KTIMER_DELETE", - "SYS_KTIMER_GETOVERRUN", - "SYS_KTIMER_GETTIME", - "SYS_KTIMER_SETTIME", - "SYS_KTRACE", - "SYS_LCHFLAGS", - "SYS_LCHMOD", - "SYS_LCHOWN", - "SYS_LCHOWN32", - "SYS_LEDGER", - "SYS_LGETFH", - "SYS_LGETXATTR", - "SYS_LINK", - "SYS_LINKAT", - "SYS_LIO_LISTIO", - "SYS_LISTEN", - "SYS_LISTXATTR", - "SYS_LLISTXATTR", - "SYS_LOCK", - "SYS_LOOKUP_DCOOKIE", - "SYS_LPATHCONF", - "SYS_LREMOVEXATTR", - "SYS_LSEEK", - "SYS_LSETXATTR", - "SYS_LSTAT", - "SYS_LSTAT64", - "SYS_LSTAT64_EXTENDED", - "SYS_LSTATV", - "SYS_LSTAT_EXTENDED", - "SYS_LUTIMES", - "SYS_MAC_SYSCALL", - "SYS_MADVISE", - "SYS_MADVISE1", - "SYS_MAXSYSCALL", - "SYS_MBIND", - "SYS_MIGRATE_PAGES", - "SYS_MINCORE", - "SYS_MINHERIT", - "SYS_MKCOMPLEX", - "SYS_MKDIR", - "SYS_MKDIRAT", - "SYS_MKDIR_EXTENDED", - "SYS_MKFIFO", - "SYS_MKFIFOAT", - "SYS_MKFIFO_EXTENDED", - "SYS_MKNOD", - "SYS_MKNODAT", - "SYS_MLOCK", - "SYS_MLOCKALL", - "SYS_MMAP", - "SYS_MMAP2", - "SYS_MODCTL", - "SYS_MODFIND", - "SYS_MODFNEXT", - "SYS_MODIFY_LDT", - "SYS_MODNEXT", - "SYS_MODSTAT", - "SYS_MODWATCH", - "SYS_MOUNT", - "SYS_MOVE_PAGES", - "SYS_MPROTECT", - "SYS_MPX", - "SYS_MQUERY", - "SYS_MQ_GETSETATTR", - "SYS_MQ_NOTIFY", - "SYS_MQ_OPEN", - "SYS_MQ_TIMEDRECEIVE", - "SYS_MQ_TIMEDSEND", - "SYS_MQ_UNLINK", - "SYS_MREMAP", - "SYS_MSGCTL", - "SYS_MSGGET", - "SYS_MSGRCV", - "SYS_MSGRCV_NOCANCEL", - "SYS_MSGSND", - "SYS_MSGSND_NOCANCEL", - "SYS_MSGSYS", - "SYS_MSYNC", - "SYS_MSYNC_NOCANCEL", - "SYS_MUNLOCK", - "SYS_MUNLOCKALL", - "SYS_MUNMAP", - "SYS_NAME_TO_HANDLE_AT", - "SYS_NANOSLEEP", - "SYS_NEWFSTATAT", - "SYS_NFSCLNT", - "SYS_NFSSERVCTL", - "SYS_NFSSVC", - "SYS_NFSTAT", - "SYS_NICE", - "SYS_NLM_SYSCALL", - "SYS_NLSTAT", - "SYS_NMOUNT", - "SYS_NSTAT", - "SYS_NTP_ADJTIME", - "SYS_NTP_GETTIME", - "SYS_NUMA_GETAFFINITY", - "SYS_NUMA_SETAFFINITY", - "SYS_OABI_SYSCALL_BASE", - "SYS_OBREAK", - "SYS_OLDFSTAT", - "SYS_OLDLSTAT", - "SYS_OLDOLDUNAME", - "SYS_OLDSTAT", - "SYS_OLDUNAME", - "SYS_OPEN", - "SYS_OPENAT", - "SYS_OPENBSD_POLL", - "SYS_OPEN_BY_HANDLE_AT", - "SYS_OPEN_DPROTECTED_NP", - "SYS_OPEN_EXTENDED", - "SYS_OPEN_NOCANCEL", - "SYS_OVADVISE", - "SYS_PACCEPT", - "SYS_PATHCONF", - "SYS_PAUSE", - "SYS_PCICONFIG_IOBASE", - "SYS_PCICONFIG_READ", - "SYS_PCICONFIG_WRITE", - "SYS_PDFORK", - "SYS_PDGETPID", - "SYS_PDKILL", - "SYS_PERF_EVENT_OPEN", - "SYS_PERSONALITY", - "SYS_PID_HIBERNATE", - "SYS_PID_RESUME", - "SYS_PID_SHUTDOWN_SOCKETS", - "SYS_PID_SUSPEND", - "SYS_PIPE", - "SYS_PIPE2", - "SYS_PIVOT_ROOT", - "SYS_PMC_CONTROL", - "SYS_PMC_GET_INFO", - "SYS_POLL", - "SYS_POLLTS", - "SYS_POLL_NOCANCEL", - "SYS_POSIX_FADVISE", - "SYS_POSIX_FALLOCATE", - "SYS_POSIX_OPENPT", - "SYS_POSIX_SPAWN", - "SYS_PPOLL", - "SYS_PRCTL", - "SYS_PREAD", - "SYS_PREAD64", - "SYS_PREADV", - "SYS_PREAD_NOCANCEL", - "SYS_PRLIMIT64", - "SYS_PROCCTL", - "SYS_PROCESS_POLICY", - "SYS_PROCESS_VM_READV", - "SYS_PROCESS_VM_WRITEV", - "SYS_PROC_INFO", - "SYS_PROF", - "SYS_PROFIL", - "SYS_PSELECT", - "SYS_PSELECT6", - "SYS_PSET_ASSIGN", - "SYS_PSET_CREATE", - "SYS_PSET_DESTROY", - "SYS_PSYNCH_CVBROAD", - "SYS_PSYNCH_CVCLRPREPOST", - "SYS_PSYNCH_CVSIGNAL", - "SYS_PSYNCH_CVWAIT", - "SYS_PSYNCH_MUTEXDROP", - "SYS_PSYNCH_MUTEXWAIT", - "SYS_PSYNCH_RW_DOWNGRADE", - "SYS_PSYNCH_RW_LONGRDLOCK", - "SYS_PSYNCH_RW_RDLOCK", - "SYS_PSYNCH_RW_UNLOCK", - "SYS_PSYNCH_RW_UNLOCK2", - "SYS_PSYNCH_RW_UPGRADE", - "SYS_PSYNCH_RW_WRLOCK", - "SYS_PSYNCH_RW_YIELDWRLOCK", - "SYS_PTRACE", - "SYS_PUTPMSG", - "SYS_PWRITE", - "SYS_PWRITE64", - "SYS_PWRITEV", - "SYS_PWRITE_NOCANCEL", - "SYS_QUERY_MODULE", - "SYS_QUOTACTL", - "SYS_RASCTL", - "SYS_RCTL_ADD_RULE", - "SYS_RCTL_GET_LIMITS", - "SYS_RCTL_GET_RACCT", - "SYS_RCTL_GET_RULES", - "SYS_RCTL_REMOVE_RULE", - "SYS_READ", - "SYS_READAHEAD", - "SYS_READDIR", - "SYS_READLINK", - "SYS_READLINKAT", - "SYS_READV", - "SYS_READV_NOCANCEL", - "SYS_READ_NOCANCEL", - "SYS_REBOOT", - "SYS_RECV", - "SYS_RECVFROM", - "SYS_RECVFROM_NOCANCEL", - "SYS_RECVMMSG", - "SYS_RECVMSG", - "SYS_RECVMSG_NOCANCEL", - "SYS_REMAP_FILE_PAGES", - "SYS_REMOVEXATTR", - "SYS_RENAME", - "SYS_RENAMEAT", - "SYS_REQUEST_KEY", - "SYS_RESTART_SYSCALL", - "SYS_REVOKE", - "SYS_RFORK", - "SYS_RMDIR", - "SYS_RTPRIO", - "SYS_RTPRIO_THREAD", - "SYS_RT_SIGACTION", - "SYS_RT_SIGPENDING", - "SYS_RT_SIGPROCMASK", - "SYS_RT_SIGQUEUEINFO", - "SYS_RT_SIGRETURN", - "SYS_RT_SIGSUSPEND", - "SYS_RT_SIGTIMEDWAIT", - "SYS_RT_TGSIGQUEUEINFO", - "SYS_SBRK", - "SYS_SCHED_GETAFFINITY", - "SYS_SCHED_GETPARAM", - "SYS_SCHED_GETSCHEDULER", - "SYS_SCHED_GET_PRIORITY_MAX", - "SYS_SCHED_GET_PRIORITY_MIN", - "SYS_SCHED_RR_GET_INTERVAL", - "SYS_SCHED_SETAFFINITY", - "SYS_SCHED_SETPARAM", - "SYS_SCHED_SETSCHEDULER", - "SYS_SCHED_YIELD", - "SYS_SCTP_GENERIC_RECVMSG", - "SYS_SCTP_GENERIC_SENDMSG", - "SYS_SCTP_GENERIC_SENDMSG_IOV", - "SYS_SCTP_PEELOFF", - "SYS_SEARCHFS", - "SYS_SECURITY", - "SYS_SELECT", - "SYS_SELECT_NOCANCEL", - "SYS_SEMCONFIG", - "SYS_SEMCTL", - "SYS_SEMGET", - "SYS_SEMOP", - "SYS_SEMSYS", - "SYS_SEMTIMEDOP", - "SYS_SEM_CLOSE", - "SYS_SEM_DESTROY", - "SYS_SEM_GETVALUE", - "SYS_SEM_INIT", - "SYS_SEM_OPEN", - "SYS_SEM_POST", - "SYS_SEM_TRYWAIT", - "SYS_SEM_UNLINK", - "SYS_SEM_WAIT", - "SYS_SEM_WAIT_NOCANCEL", - "SYS_SEND", - "SYS_SENDFILE", - "SYS_SENDFILE64", - "SYS_SENDMMSG", - "SYS_SENDMSG", - "SYS_SENDMSG_NOCANCEL", - "SYS_SENDTO", - "SYS_SENDTO_NOCANCEL", - "SYS_SETATTRLIST", - "SYS_SETAUDIT", - "SYS_SETAUDIT_ADDR", - "SYS_SETAUID", - "SYS_SETCONTEXT", - "SYS_SETDOMAINNAME", - "SYS_SETEGID", - "SYS_SETEUID", - "SYS_SETFIB", - "SYS_SETFSGID", - "SYS_SETFSGID32", - "SYS_SETFSUID", - "SYS_SETFSUID32", - "SYS_SETGID", - "SYS_SETGID32", - "SYS_SETGROUPS", - "SYS_SETGROUPS32", - "SYS_SETHOSTNAME", - "SYS_SETITIMER", - "SYS_SETLCID", - "SYS_SETLOGIN", - "SYS_SETLOGINCLASS", - "SYS_SETNS", - "SYS_SETPGID", - "SYS_SETPRIORITY", - "SYS_SETPRIVEXEC", - "SYS_SETREGID", - "SYS_SETREGID32", - "SYS_SETRESGID", - "SYS_SETRESGID32", - "SYS_SETRESUID", - "SYS_SETRESUID32", - "SYS_SETREUID", - "SYS_SETREUID32", - "SYS_SETRLIMIT", - "SYS_SETRTABLE", - "SYS_SETSGROUPS", - "SYS_SETSID", - "SYS_SETSOCKOPT", - "SYS_SETTID", - "SYS_SETTID_WITH_PID", - "SYS_SETTIMEOFDAY", - "SYS_SETUID", - "SYS_SETUID32", - "SYS_SETWGROUPS", - "SYS_SETXATTR", - "SYS_SET_MEMPOLICY", - "SYS_SET_ROBUST_LIST", - "SYS_SET_THREAD_AREA", - "SYS_SET_TID_ADDRESS", - "SYS_SGETMASK", - "SYS_SHARED_REGION_CHECK_NP", - "SYS_SHARED_REGION_MAP_AND_SLIDE_NP", - "SYS_SHMAT", - "SYS_SHMCTL", - "SYS_SHMDT", - "SYS_SHMGET", - "SYS_SHMSYS", - "SYS_SHM_OPEN", - "SYS_SHM_UNLINK", - "SYS_SHUTDOWN", - "SYS_SIGACTION", - "SYS_SIGALTSTACK", - "SYS_SIGNAL", - "SYS_SIGNALFD", - "SYS_SIGNALFD4", - "SYS_SIGPENDING", - "SYS_SIGPROCMASK", - "SYS_SIGQUEUE", - "SYS_SIGQUEUEINFO", - "SYS_SIGRETURN", - "SYS_SIGSUSPEND", - "SYS_SIGSUSPEND_NOCANCEL", - "SYS_SIGTIMEDWAIT", - "SYS_SIGWAIT", - "SYS_SIGWAITINFO", - "SYS_SOCKET", - "SYS_SOCKETCALL", - "SYS_SOCKETPAIR", - "SYS_SPLICE", - "SYS_SSETMASK", - "SYS_SSTK", - "SYS_STACK_SNAPSHOT", - "SYS_STAT", - "SYS_STAT64", - "SYS_STAT64_EXTENDED", - "SYS_STATFS", - "SYS_STATFS64", - "SYS_STATV", - "SYS_STATVFS1", - "SYS_STAT_EXTENDED", - "SYS_STIME", - "SYS_STTY", - "SYS_SWAPCONTEXT", - "SYS_SWAPCTL", - "SYS_SWAPOFF", - "SYS_SWAPON", - "SYS_SYMLINK", - "SYS_SYMLINKAT", - "SYS_SYNC", - "SYS_SYNCFS", - "SYS_SYNC_FILE_RANGE", - "SYS_SYSARCH", - "SYS_SYSCALL", - "SYS_SYSCALL_BASE", - "SYS_SYSFS", - "SYS_SYSINFO", - "SYS_SYSLOG", - "SYS_TEE", - "SYS_TGKILL", - "SYS_THREAD_SELFID", - "SYS_THR_CREATE", - "SYS_THR_EXIT", - "SYS_THR_KILL", - "SYS_THR_KILL2", - "SYS_THR_NEW", - "SYS_THR_SELF", - "SYS_THR_SET_NAME", - "SYS_THR_SUSPEND", - "SYS_THR_WAKE", - "SYS_TIME", - "SYS_TIMERFD_CREATE", - "SYS_TIMERFD_GETTIME", - "SYS_TIMERFD_SETTIME", - "SYS_TIMER_CREATE", - "SYS_TIMER_DELETE", - "SYS_TIMER_GETOVERRUN", - "SYS_TIMER_GETTIME", - "SYS_TIMER_SETTIME", - "SYS_TIMES", - "SYS_TKILL", - "SYS_TRUNCATE", - "SYS_TRUNCATE64", - "SYS_TUXCALL", - "SYS_UGETRLIMIT", - "SYS_ULIMIT", - "SYS_UMASK", - "SYS_UMASK_EXTENDED", - "SYS_UMOUNT", - "SYS_UMOUNT2", - "SYS_UNAME", - "SYS_UNDELETE", - "SYS_UNLINK", - "SYS_UNLINKAT", - "SYS_UNMOUNT", - "SYS_UNSHARE", - "SYS_USELIB", - "SYS_USTAT", - "SYS_UTIME", - "SYS_UTIMENSAT", - "SYS_UTIMES", - "SYS_UTRACE", - "SYS_UUIDGEN", - "SYS_VADVISE", - "SYS_VFORK", - "SYS_VHANGUP", - "SYS_VM86", - "SYS_VM86OLD", - "SYS_VMSPLICE", - "SYS_VM_PRESSURE_MONITOR", - "SYS_VSERVER", - "SYS_WAIT4", - "SYS_WAIT4_NOCANCEL", - "SYS_WAIT6", - "SYS_WAITEVENT", - "SYS_WAITID", - "SYS_WAITID_NOCANCEL", - "SYS_WAITPID", - "SYS_WATCHEVENT", - "SYS_WORKQ_KERNRETURN", - "SYS_WORKQ_OPEN", - "SYS_WRITE", - "SYS_WRITEV", - "SYS_WRITEV_NOCANCEL", - "SYS_WRITE_NOCANCEL", - "SYS_YIELD", - "SYS__LLSEEK", - "SYS__LWP_CONTINUE", - "SYS__LWP_CREATE", - "SYS__LWP_CTL", - "SYS__LWP_DETACH", - "SYS__LWP_EXIT", - "SYS__LWP_GETNAME", - "SYS__LWP_GETPRIVATE", - "SYS__LWP_KILL", - "SYS__LWP_PARK", - "SYS__LWP_SELF", - "SYS__LWP_SETNAME", - "SYS__LWP_SETPRIVATE", - "SYS__LWP_SUSPEND", - "SYS__LWP_UNPARK", - "SYS__LWP_UNPARK_ALL", - "SYS__LWP_WAIT", - "SYS__LWP_WAKEUP", - "SYS__NEWSELECT", - "SYS__PSET_BIND", - "SYS__SCHED_GETAFFINITY", - "SYS__SCHED_GETPARAM", - "SYS__SCHED_SETAFFINITY", - "SYS__SCHED_SETPARAM", - "SYS__SYSCTL", - "SYS__UMTX_LOCK", - "SYS__UMTX_OP", - "SYS__UMTX_UNLOCK", - "SYS___ACL_ACLCHECK_FD", - "SYS___ACL_ACLCHECK_FILE", - "SYS___ACL_ACLCHECK_LINK", - "SYS___ACL_DELETE_FD", - "SYS___ACL_DELETE_FILE", - "SYS___ACL_DELETE_LINK", - "SYS___ACL_GET_FD", - "SYS___ACL_GET_FILE", - "SYS___ACL_GET_LINK", - "SYS___ACL_SET_FD", - "SYS___ACL_SET_FILE", - "SYS___ACL_SET_LINK", - "SYS___CAP_RIGHTS_GET", - "SYS___CLONE", - "SYS___DISABLE_THREADSIGNAL", - "SYS___GETCWD", - "SYS___GETLOGIN", - "SYS___GET_TCB", - "SYS___MAC_EXECVE", - "SYS___MAC_GETFSSTAT", - "SYS___MAC_GET_FD", - "SYS___MAC_GET_FILE", - "SYS___MAC_GET_LCID", - "SYS___MAC_GET_LCTX", - "SYS___MAC_GET_LINK", - "SYS___MAC_GET_MOUNT", - "SYS___MAC_GET_PID", - "SYS___MAC_GET_PROC", - "SYS___MAC_MOUNT", - "SYS___MAC_SET_FD", - "SYS___MAC_SET_FILE", - "SYS___MAC_SET_LCTX", - "SYS___MAC_SET_LINK", - "SYS___MAC_SET_PROC", - "SYS___MAC_SYSCALL", - "SYS___OLD_SEMWAIT_SIGNAL", - "SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL", - "SYS___POSIX_CHOWN", - "SYS___POSIX_FCHOWN", - "SYS___POSIX_LCHOWN", - "SYS___POSIX_RENAME", - "SYS___PTHREAD_CANCELED", - "SYS___PTHREAD_CHDIR", - "SYS___PTHREAD_FCHDIR", - "SYS___PTHREAD_KILL", - "SYS___PTHREAD_MARKCANCEL", - "SYS___PTHREAD_SIGMASK", - "SYS___QUOTACTL", - "SYS___SEMCTL", - "SYS___SEMWAIT_SIGNAL", - "SYS___SEMWAIT_SIGNAL_NOCANCEL", - "SYS___SETLOGIN", - "SYS___SETUGID", - "SYS___SET_TCB", - "SYS___SIGACTION_SIGTRAMP", - "SYS___SIGTIMEDWAIT", - "SYS___SIGWAIT", - "SYS___SIGWAIT_NOCANCEL", - "SYS___SYSCTL", - "SYS___TFORK", - "SYS___THREXIT", - "SYS___THRSIGDIVERT", - "SYS___THRSLEEP", - "SYS___THRWAKEUP", - "S_ARCH1", - "S_ARCH2", - "S_BLKSIZE", - "S_IEXEC", - "S_IFBLK", - "S_IFCHR", - "S_IFDIR", - "S_IFIFO", - "S_IFLNK", - "S_IFMT", - "S_IFREG", - "S_IFSOCK", - "S_IFWHT", - "S_IREAD", - "S_IRGRP", - "S_IROTH", - "S_IRUSR", - "S_IRWXG", - "S_IRWXO", - "S_IRWXU", - "S_ISGID", - "S_ISTXT", - "S_ISUID", - "S_ISVTX", - "S_IWGRP", - "S_IWOTH", - "S_IWRITE", - "S_IWUSR", - "S_IXGRP", - "S_IXOTH", - "S_IXUSR", - "S_LOGIN_SET", - "SecurityAttributes", - "Seek", - "Select", - "Sendfile", - "Sendmsg", - "SendmsgN", - "Sendto", - "Servent", - "SetBpf", - "SetBpfBuflen", - "SetBpfDatalink", - "SetBpfHeadercmpl", - "SetBpfImmediate", - "SetBpfInterface", - "SetBpfPromisc", - "SetBpfTimeout", - "SetCurrentDirectory", - "SetEndOfFile", - "SetEnvironmentVariable", - "SetFileAttributes", - "SetFileCompletionNotificationModes", - "SetFilePointer", - "SetFileTime", - "SetHandleInformation", - "SetKevent", - "SetLsfPromisc", - "SetNonblock", - "Setdomainname", - "Setegid", - "Setenv", - "Seteuid", - "Setfsgid", - "Setfsuid", - "Setgid", - "Setgroups", - "Sethostname", - "Setlogin", - "Setpgid", - "Setpriority", - "Setprivexec", - "Setregid", - "Setresgid", - "Setresuid", - "Setreuid", - "Setrlimit", - "Setsid", - "Setsockopt", - "SetsockoptByte", - "SetsockoptICMPv6Filter", - "SetsockoptIPMreq", - "SetsockoptIPMreqn", - "SetsockoptIPv6Mreq", - "SetsockoptInet4Addr", - "SetsockoptInt", - "SetsockoptLinger", - "SetsockoptString", - "SetsockoptTimeval", - "Settimeofday", - "Setuid", - "Setxattr", - "Shutdown", - "SidTypeAlias", - "SidTypeComputer", - "SidTypeDeletedAccount", - "SidTypeDomain", - "SidTypeGroup", - "SidTypeInvalid", - "SidTypeLabel", - "SidTypeUnknown", - "SidTypeUser", - "SidTypeWellKnownGroup", - "Signal", - "SizeofBpfHdr", - "SizeofBpfInsn", - "SizeofBpfProgram", - "SizeofBpfStat", - "SizeofBpfVersion", - "SizeofBpfZbuf", - "SizeofBpfZbufHeader", - "SizeofCmsghdr", - "SizeofICMPv6Filter", - "SizeofIPMreq", - "SizeofIPMreqn", - "SizeofIPv6MTUInfo", - "SizeofIPv6Mreq", - "SizeofIfAddrmsg", - "SizeofIfAnnounceMsghdr", - "SizeofIfData", - "SizeofIfInfomsg", - "SizeofIfMsghdr", - "SizeofIfaMsghdr", - "SizeofIfmaMsghdr", - "SizeofIfmaMsghdr2", - "SizeofInet4Pktinfo", - "SizeofInet6Pktinfo", - "SizeofInotifyEvent", - "SizeofLinger", - "SizeofMsghdr", - "SizeofNlAttr", - "SizeofNlMsgerr", - "SizeofNlMsghdr", - "SizeofRtAttr", - "SizeofRtGenmsg", - "SizeofRtMetrics", - "SizeofRtMsg", - "SizeofRtMsghdr", - "SizeofRtNexthop", - "SizeofSockFilter", - "SizeofSockFprog", - "SizeofSockaddrAny", - "SizeofSockaddrDatalink", - "SizeofSockaddrInet4", - "SizeofSockaddrInet6", - "SizeofSockaddrLinklayer", - "SizeofSockaddrNetlink", - "SizeofSockaddrUnix", - "SizeofTCPInfo", - "SizeofUcred", - "SlicePtrFromStrings", - "SockFilter", - "SockFprog", - "Sockaddr", - "SockaddrDatalink", - "SockaddrGen", - "SockaddrInet4", - "SockaddrInet6", - "SockaddrLinklayer", - "SockaddrNetlink", - "SockaddrUnix", - "Socket", - "SocketControlMessage", - "SocketDisableIPv6", - "Socketpair", - "Splice", - "StartProcess", - "StartupInfo", - "Stat", - "Stat_t", - "Statfs", - "Statfs_t", - "Stderr", - "Stdin", - "Stdout", - "StringBytePtr", - "StringByteSlice", - "StringSlicePtr", - "StringToSid", - "StringToUTF16", - "StringToUTF16Ptr", - "Symlink", - "Sync", - "SyncFileRange", - "SysProcAttr", - "SysProcIDMap", - "Syscall", - "Syscall12", - "Syscall15", - "Syscall18", - "Syscall6", - "Syscall9", - "SyscallN", - "Sysctl", - "SysctlUint32", - "Sysctlnode", - "Sysinfo", - "Sysinfo_t", - "Systemtime", - "TCGETS", - "TCIFLUSH", - "TCIOFLUSH", - "TCOFLUSH", - "TCPInfo", - "TCPKeepalive", - "TCP_CA_NAME_MAX", - "TCP_CONGCTL", - "TCP_CONGESTION", - "TCP_CONNECTIONTIMEOUT", - "TCP_CORK", - "TCP_DEFER_ACCEPT", - "TCP_ENABLE_ECN", - "TCP_INFO", - "TCP_KEEPALIVE", - "TCP_KEEPCNT", - "TCP_KEEPIDLE", - "TCP_KEEPINIT", - "TCP_KEEPINTVL", - "TCP_LINGER2", - "TCP_MAXBURST", - "TCP_MAXHLEN", - "TCP_MAXOLEN", - "TCP_MAXSEG", - "TCP_MAXWIN", - "TCP_MAX_SACK", - "TCP_MAX_WINSHIFT", - "TCP_MD5SIG", - "TCP_MD5SIG_MAXKEYLEN", - "TCP_MINMSS", - "TCP_MINMSSOVERLOAD", - "TCP_MSS", - "TCP_NODELAY", - "TCP_NOOPT", - "TCP_NOPUSH", - "TCP_NOTSENT_LOWAT", - "TCP_NSTATES", - "TCP_QUICKACK", - "TCP_RXT_CONNDROPTIME", - "TCP_RXT_FINDROP", - "TCP_SACK_ENABLE", - "TCP_SENDMOREACKS", - "TCP_SYNCNT", - "TCP_VENDOR", - "TCP_WINDOW_CLAMP", - "TCSAFLUSH", - "TCSETS", - "TF_DISCONNECT", - "TF_REUSE_SOCKET", - "TF_USE_DEFAULT_WORKER", - "TF_USE_KERNEL_APC", - "TF_USE_SYSTEM_THREAD", - "TF_WRITE_BEHIND", - "TH32CS_INHERIT", - "TH32CS_SNAPALL", - "TH32CS_SNAPHEAPLIST", - "TH32CS_SNAPMODULE", - "TH32CS_SNAPMODULE32", - "TH32CS_SNAPPROCESS", - "TH32CS_SNAPTHREAD", - "TIME_ZONE_ID_DAYLIGHT", - "TIME_ZONE_ID_STANDARD", - "TIME_ZONE_ID_UNKNOWN", - "TIOCCBRK", - "TIOCCDTR", - "TIOCCONS", - "TIOCDCDTIMESTAMP", - "TIOCDRAIN", - "TIOCDSIMICROCODE", - "TIOCEXCL", - "TIOCEXT", - "TIOCFLAG_CDTRCTS", - "TIOCFLAG_CLOCAL", - "TIOCFLAG_CRTSCTS", - "TIOCFLAG_MDMBUF", - "TIOCFLAG_PPS", - "TIOCFLAG_SOFTCAR", - "TIOCFLUSH", - "TIOCGDEV", - "TIOCGDRAINWAIT", - "TIOCGETA", - "TIOCGETD", - "TIOCGFLAGS", - "TIOCGICOUNT", - "TIOCGLCKTRMIOS", - "TIOCGLINED", - "TIOCGPGRP", - "TIOCGPTN", - "TIOCGQSIZE", - "TIOCGRANTPT", - "TIOCGRS485", - "TIOCGSERIAL", - "TIOCGSID", - "TIOCGSIZE", - "TIOCGSOFTCAR", - "TIOCGTSTAMP", - "TIOCGWINSZ", - "TIOCINQ", - "TIOCIXOFF", - "TIOCIXON", - "TIOCLINUX", - "TIOCMBIC", - "TIOCMBIS", - "TIOCMGDTRWAIT", - "TIOCMGET", - "TIOCMIWAIT", - "TIOCMODG", - "TIOCMODS", - "TIOCMSDTRWAIT", - "TIOCMSET", - "TIOCM_CAR", - "TIOCM_CD", - "TIOCM_CTS", - "TIOCM_DCD", - "TIOCM_DSR", - "TIOCM_DTR", - "TIOCM_LE", - "TIOCM_RI", - "TIOCM_RNG", - "TIOCM_RTS", - "TIOCM_SR", - "TIOCM_ST", - "TIOCNOTTY", - "TIOCNXCL", - "TIOCOUTQ", - "TIOCPKT", - "TIOCPKT_DATA", - "TIOCPKT_DOSTOP", - "TIOCPKT_FLUSHREAD", - "TIOCPKT_FLUSHWRITE", - "TIOCPKT_IOCTL", - "TIOCPKT_NOSTOP", - "TIOCPKT_START", - "TIOCPKT_STOP", - "TIOCPTMASTER", - "TIOCPTMGET", - "TIOCPTSNAME", - "TIOCPTYGNAME", - "TIOCPTYGRANT", - "TIOCPTYUNLK", - "TIOCRCVFRAME", - "TIOCREMOTE", - "TIOCSBRK", - "TIOCSCONS", - "TIOCSCTTY", - "TIOCSDRAINWAIT", - "TIOCSDTR", - "TIOCSERCONFIG", - "TIOCSERGETLSR", - "TIOCSERGETMULTI", - "TIOCSERGSTRUCT", - "TIOCSERGWILD", - "TIOCSERSETMULTI", - "TIOCSERSWILD", - "TIOCSER_TEMT", - "TIOCSETA", - "TIOCSETAF", - "TIOCSETAW", - "TIOCSETD", - "TIOCSFLAGS", - "TIOCSIG", - "TIOCSLCKTRMIOS", - "TIOCSLINED", - "TIOCSPGRP", - "TIOCSPTLCK", - "TIOCSQSIZE", - "TIOCSRS485", - "TIOCSSERIAL", - "TIOCSSIZE", - "TIOCSSOFTCAR", - "TIOCSTART", - "TIOCSTAT", - "TIOCSTI", - "TIOCSTOP", - "TIOCSTSTAMP", - "TIOCSWINSZ", - "TIOCTIMESTAMP", - "TIOCUCNTL", - "TIOCVHANGUP", - "TIOCXMTFRAME", - "TOKEN_ADJUST_DEFAULT", - "TOKEN_ADJUST_GROUPS", - "TOKEN_ADJUST_PRIVILEGES", - "TOKEN_ADJUST_SESSIONID", - "TOKEN_ALL_ACCESS", - "TOKEN_ASSIGN_PRIMARY", - "TOKEN_DUPLICATE", - "TOKEN_EXECUTE", - "TOKEN_IMPERSONATE", - "TOKEN_QUERY", - "TOKEN_QUERY_SOURCE", - "TOKEN_READ", - "TOKEN_WRITE", - "TOSTOP", - "TRUNCATE_EXISTING", - "TUNATTACHFILTER", - "TUNDETACHFILTER", - "TUNGETFEATURES", - "TUNGETIFF", - "TUNGETSNDBUF", - "TUNGETVNETHDRSZ", - "TUNSETDEBUG", - "TUNSETGROUP", - "TUNSETIFF", - "TUNSETLINK", - "TUNSETNOCSUM", - "TUNSETOFFLOAD", - "TUNSETOWNER", - "TUNSETPERSIST", - "TUNSETSNDBUF", - "TUNSETTXFILTER", - "TUNSETVNETHDRSZ", - "Tee", - "TerminateProcess", - "Termios", - "Tgkill", - "Time", - "Time_t", - "Times", - "Timespec", - "TimespecToNsec", - "Timeval", - "Timeval32", - "TimevalToNsec", - "Timex", - "Timezoneinformation", - "Tms", - "Token", - "TokenAccessInformation", - "TokenAuditPolicy", - "TokenDefaultDacl", - "TokenElevation", - "TokenElevationType", - "TokenGroups", - "TokenGroupsAndPrivileges", - "TokenHasRestrictions", - "TokenImpersonationLevel", - "TokenIntegrityLevel", - "TokenLinkedToken", - "TokenLogonSid", - "TokenMandatoryPolicy", - "TokenOrigin", - "TokenOwner", - "TokenPrimaryGroup", - "TokenPrivileges", - "TokenRestrictedSids", - "TokenSandBoxInert", - "TokenSessionId", - "TokenSessionReference", - "TokenSource", - "TokenStatistics", - "TokenType", - "TokenUIAccess", - "TokenUser", - "TokenVirtualizationAllowed", - "TokenVirtualizationEnabled", - "Tokenprimarygroup", - "Tokenuser", - "TranslateAccountName", - "TranslateName", - "TransmitFile", - "TransmitFileBuffers", - "Truncate", - "UNIX_PATH_MAX", - "USAGE_MATCH_TYPE_AND", - "USAGE_MATCH_TYPE_OR", - "UTF16FromString", - "UTF16PtrFromString", - "UTF16ToString", - "Ucred", - "Umask", - "Uname", - "Undelete", - "UnixCredentials", - "UnixRights", - "Unlink", - "Unlinkat", - "UnmapViewOfFile", - "Unmount", - "Unsetenv", - "Unshare", - "UserInfo10", - "Ustat", - "Ustat_t", - "Utimbuf", - "Utime", - "Utimes", - "UtimesNano", - "Utsname", - "VDISCARD", - "VDSUSP", - "VEOF", - "VEOL", - "VEOL2", - "VERASE", - "VERASE2", - "VINTR", - "VKILL", - "VLNEXT", - "VMIN", - "VQUIT", - "VREPRINT", - "VSTART", - "VSTATUS", - "VSTOP", - "VSUSP", - "VSWTC", - "VT0", - "VT1", - "VTDLY", - "VTIME", - "VWERASE", - "VirtualLock", - "VirtualUnlock", - "WAIT_ABANDONED", - "WAIT_FAILED", - "WAIT_OBJECT_0", - "WAIT_TIMEOUT", - "WALL", - "WALLSIG", - "WALTSIG", - "WCLONE", - "WCONTINUED", - "WCOREFLAG", - "WEXITED", - "WLINUXCLONE", - "WNOHANG", - "WNOTHREAD", - "WNOWAIT", - "WNOZOMBIE", - "WOPTSCHECKED", - "WORDSIZE", - "WSABuf", - "WSACleanup", - "WSADESCRIPTION_LEN", - "WSAData", - "WSAEACCES", - "WSAECONNABORTED", - "WSAECONNRESET", - "WSAEnumProtocols", - "WSAID_CONNECTEX", - "WSAIoctl", - "WSAPROTOCOL_LEN", - "WSAProtocolChain", - "WSAProtocolInfo", - "WSARecv", - "WSARecvFrom", - "WSASYS_STATUS_LEN", - "WSASend", - "WSASendTo", - "WSASendto", - "WSAStartup", - "WSTOPPED", - "WTRAPPED", - "WUNTRACED", - "Wait4", - "WaitForSingleObject", - "WaitStatus", - "Win32FileAttributeData", - "Win32finddata", - "Write", - "WriteConsole", - "WriteFile", - "X509_ASN_ENCODING", - "XCASE", - "XP1_CONNECTIONLESS", - "XP1_CONNECT_DATA", - "XP1_DISCONNECT_DATA", - "XP1_EXPEDITED_DATA", - "XP1_GRACEFUL_CLOSE", - "XP1_GUARANTEED_DELIVERY", - "XP1_GUARANTEED_ORDER", - "XP1_IFS_HANDLES", - "XP1_MESSAGE_ORIENTED", - "XP1_MULTIPOINT_CONTROL_PLANE", - "XP1_MULTIPOINT_DATA_PLANE", - "XP1_PARTIAL_MESSAGE", - "XP1_PSEUDO_STREAM", - "XP1_QOS_SUPPORTED", - "XP1_SAN_SUPPORT_SDP", - "XP1_SUPPORT_BROADCAST", - "XP1_SUPPORT_MULTIPOINT", - "XP1_UNI_RECV", - "XP1_UNI_SEND", - }, - "syscall/js": { - "CopyBytesToGo", - "CopyBytesToJS", - "Error", - "Func", - "FuncOf", - "Global", - "Null", - "Type", - "TypeBoolean", - "TypeFunction", - "TypeNull", - "TypeNumber", - "TypeObject", - "TypeString", - "TypeSymbol", - "TypeUndefined", - "Undefined", - "Value", - "ValueError", - "ValueOf", - }, - "testing": { - "AllocsPerRun", - "B", - "Benchmark", - "BenchmarkResult", - "Cover", - "CoverBlock", - "CoverMode", - "Coverage", - "F", - "Init", - "InternalBenchmark", - "InternalExample", - "InternalFuzzTarget", - "InternalTest", - "M", - "Main", - "MainStart", - "PB", - "RegisterCover", - "RunBenchmarks", - "RunExamples", - "RunTests", - "Short", - "T", - "TB", - "Testing", - "Verbose", - }, - "testing/fstest": { - "MapFS", - "MapFile", - "TestFS", - }, - "testing/iotest": { - "DataErrReader", - "ErrReader", - "ErrTimeout", - "HalfReader", - "NewReadLogger", - "NewWriteLogger", - "OneByteReader", - "TestReader", - "TimeoutReader", - "TruncateWriter", - }, - "testing/quick": { - "Check", - "CheckEqual", - "CheckEqualError", - "CheckError", - "Config", - "Generator", - "SetupError", - "Value", - }, - "testing/slogtest": { - "Run", - "TestHandler", - }, - "text/scanner": { - "Char", - "Comment", - "EOF", - "Float", - "GoTokens", - "GoWhitespace", - "Ident", - "Int", - "Position", - "RawString", - "ScanChars", - "ScanComments", - "ScanFloats", - "ScanIdents", - "ScanInts", - "ScanRawStrings", - "ScanStrings", - "Scanner", - "SkipComments", - "String", - "TokenString", - }, - "text/tabwriter": { - "AlignRight", - "Debug", - "DiscardEmptyColumns", - "Escape", - "FilterHTML", - "NewWriter", - "StripEscape", - "TabIndent", - "Writer", - }, - "text/template": { - "ExecError", - "FuncMap", - "HTMLEscape", - "HTMLEscapeString", - "HTMLEscaper", - "IsTrue", - "JSEscape", - "JSEscapeString", - "JSEscaper", - "Must", - "New", - "ParseFS", - "ParseFiles", - "ParseGlob", - "Template", - "URLQueryEscaper", - }, - "text/template/parse": { - "ActionNode", - "BoolNode", - "BranchNode", - "BreakNode", - "ChainNode", - "CommandNode", - "CommentNode", - "ContinueNode", - "DotNode", - "FieldNode", - "IdentifierNode", - "IfNode", - "IsEmptyTree", - "ListNode", - "Mode", - "New", - "NewIdentifier", - "NilNode", - "Node", - "NodeAction", - "NodeBool", - "NodeBreak", - "NodeChain", - "NodeCommand", - "NodeComment", - "NodeContinue", - "NodeDot", - "NodeField", - "NodeIdentifier", - "NodeIf", - "NodeList", - "NodeNil", - "NodeNumber", - "NodePipe", - "NodeRange", - "NodeString", - "NodeTemplate", - "NodeText", - "NodeType", - "NodeVariable", - "NodeWith", - "NumberNode", - "Parse", - "ParseComments", - "PipeNode", - "Pos", - "RangeNode", - "SkipFuncCheck", - "StringNode", - "TemplateNode", - "TextNode", - "Tree", - "VariableNode", - "WithNode", - }, - "time": { - "ANSIC", - "After", - "AfterFunc", - "April", - "August", - "Date", - "DateOnly", - "DateTime", - "December", - "Duration", - "February", - "FixedZone", - "Friday", - "Hour", - "January", - "July", - "June", - "Kitchen", - "Layout", - "LoadLocation", - "LoadLocationFromTZData", - "Local", - "Location", - "March", - "May", - "Microsecond", - "Millisecond", - "Minute", - "Monday", - "Month", - "Nanosecond", - "NewTicker", - "NewTimer", - "November", - "Now", - "October", - "Parse", - "ParseDuration", - "ParseError", - "ParseInLocation", - "RFC1123", - "RFC1123Z", - "RFC3339", - "RFC3339Nano", - "RFC822", - "RFC822Z", - "RFC850", - "RubyDate", - "Saturday", - "Second", - "September", - "Since", - "Sleep", - "Stamp", - "StampMicro", - "StampMilli", - "StampNano", - "Sunday", - "Thursday", - "Tick", - "Ticker", - "Time", - "TimeOnly", - "Timer", - "Tuesday", - "UTC", - "Unix", - "UnixDate", - "UnixMicro", - "UnixMilli", - "Until", - "Wednesday", - "Weekday", - }, - "unicode": { - "ASCII_Hex_Digit", - "Adlam", - "Ahom", - "Anatolian_Hieroglyphs", - "Arabic", - "Armenian", - "Avestan", - "AzeriCase", - "Balinese", - "Bamum", - "Bassa_Vah", - "Batak", - "Bengali", - "Bhaiksuki", - "Bidi_Control", - "Bopomofo", - "Brahmi", - "Braille", - "Buginese", - "Buhid", - "C", - "Canadian_Aboriginal", - "Carian", - "CaseRange", - "CaseRanges", - "Categories", - "Caucasian_Albanian", - "Cc", - "Cf", - "Chakma", - "Cham", - "Cherokee", - "Chorasmian", - "Co", - "Common", - "Coptic", - "Cs", - "Cuneiform", - "Cypriot", - "Cypro_Minoan", - "Cyrillic", - "Dash", - "Deprecated", - "Deseret", - "Devanagari", - "Diacritic", - "Digit", - "Dives_Akuru", - "Dogra", - "Duployan", - "Egyptian_Hieroglyphs", - "Elbasan", - "Elymaic", - "Ethiopic", - "Extender", - "FoldCategory", - "FoldScript", - "Georgian", - "Glagolitic", - "Gothic", - "Grantha", - "GraphicRanges", - "Greek", - "Gujarati", - "Gunjala_Gondi", - "Gurmukhi", - "Han", - "Hangul", - "Hanifi_Rohingya", - "Hanunoo", - "Hatran", - "Hebrew", - "Hex_Digit", - "Hiragana", - "Hyphen", - "IDS_Binary_Operator", - "IDS_Trinary_Operator", - "Ideographic", - "Imperial_Aramaic", - "In", - "Inherited", - "Inscriptional_Pahlavi", - "Inscriptional_Parthian", - "Is", - "IsControl", - "IsDigit", - "IsGraphic", - "IsLetter", - "IsLower", - "IsMark", - "IsNumber", - "IsOneOf", - "IsPrint", - "IsPunct", - "IsSpace", - "IsSymbol", - "IsTitle", - "IsUpper", - "Javanese", - "Join_Control", - "Kaithi", - "Kannada", - "Katakana", - "Kawi", - "Kayah_Li", - "Kharoshthi", - "Khitan_Small_Script", - "Khmer", - "Khojki", - "Khudawadi", - "L", - "Lao", - "Latin", - "Lepcha", - "Letter", - "Limbu", - "Linear_A", - "Linear_B", - "Lisu", - "Ll", - "Lm", - "Lo", - "Logical_Order_Exception", - "Lower", - "LowerCase", - "Lt", - "Lu", - "Lycian", - "Lydian", - "M", - "Mahajani", - "Makasar", - "Malayalam", - "Mandaic", - "Manichaean", - "Marchen", - "Mark", - "Masaram_Gondi", - "MaxASCII", - "MaxCase", - "MaxLatin1", - "MaxRune", - "Mc", - "Me", - "Medefaidrin", - "Meetei_Mayek", - "Mende_Kikakui", - "Meroitic_Cursive", - "Meroitic_Hieroglyphs", - "Miao", - "Mn", - "Modi", - "Mongolian", - "Mro", - "Multani", - "Myanmar", - "N", - "Nabataean", - "Nag_Mundari", - "Nandinagari", - "Nd", - "New_Tai_Lue", - "Newa", - "Nko", - "Nl", - "No", - "Noncharacter_Code_Point", - "Number", - "Nushu", - "Nyiakeng_Puachue_Hmong", - "Ogham", - "Ol_Chiki", - "Old_Hungarian", - "Old_Italic", - "Old_North_Arabian", - "Old_Permic", - "Old_Persian", - "Old_Sogdian", - "Old_South_Arabian", - "Old_Turkic", - "Old_Uyghur", - "Oriya", - "Osage", - "Osmanya", - "Other", - "Other_Alphabetic", - "Other_Default_Ignorable_Code_Point", - "Other_Grapheme_Extend", - "Other_ID_Continue", - "Other_ID_Start", - "Other_Lowercase", - "Other_Math", - "Other_Uppercase", - "P", - "Pahawh_Hmong", - "Palmyrene", - "Pattern_Syntax", - "Pattern_White_Space", - "Pau_Cin_Hau", - "Pc", - "Pd", - "Pe", - "Pf", - "Phags_Pa", - "Phoenician", - "Pi", - "Po", - "Prepended_Concatenation_Mark", - "PrintRanges", - "Properties", - "Ps", - "Psalter_Pahlavi", - "Punct", - "Quotation_Mark", - "Radical", - "Range16", - "Range32", - "RangeTable", - "Regional_Indicator", - "Rejang", - "ReplacementChar", - "Runic", - "S", - "STerm", - "Samaritan", - "Saurashtra", - "Sc", - "Scripts", - "Sentence_Terminal", - "Sharada", - "Shavian", - "Siddham", - "SignWriting", - "SimpleFold", - "Sinhala", - "Sk", - "Sm", - "So", - "Soft_Dotted", - "Sogdian", - "Sora_Sompeng", - "Soyombo", - "Space", - "SpecialCase", - "Sundanese", - "Syloti_Nagri", - "Symbol", - "Syriac", - "Tagalog", - "Tagbanwa", - "Tai_Le", - "Tai_Tham", - "Tai_Viet", - "Takri", - "Tamil", - "Tangsa", - "Tangut", - "Telugu", - "Terminal_Punctuation", - "Thaana", - "Thai", - "Tibetan", - "Tifinagh", - "Tirhuta", - "Title", - "TitleCase", - "To", - "ToLower", - "ToTitle", - "ToUpper", - "Toto", - "TurkishCase", - "Ugaritic", - "Unified_Ideograph", - "Upper", - "UpperCase", - "UpperLower", - "Vai", - "Variation_Selector", - "Version", - "Vithkuqi", - "Wancho", - "Warang_Citi", - "White_Space", - "Yezidi", - "Yi", - "Z", - "Zanabazar_Square", - "Zl", - "Zp", - "Zs", - }, - "unicode/utf16": { - "AppendRune", - "Decode", - "DecodeRune", - "Encode", - "EncodeRune", - "IsSurrogate", - }, - "unicode/utf8": { - "AppendRune", - "DecodeLastRune", - "DecodeLastRuneInString", - "DecodeRune", - "DecodeRuneInString", - "EncodeRune", - "FullRune", - "FullRuneInString", - "MaxRune", - "RuneCount", - "RuneCountInString", - "RuneError", - "RuneLen", - "RuneSelf", - "RuneStart", - "UTFMax", - "Valid", - "ValidRune", - "ValidString", - }, - "unsafe": { - "Add", - "Alignof", - "Offsetof", - "Pointer", - "Sizeof", - "Slice", - "SliceData", - "String", - "StringData", - }, -} diff --git a/vendor/golang.org/x/tools/internal/pkgbits/decoder.go b/vendor/golang.org/x/tools/internal/pkgbits/decoder.go index b92e8e6eb329..2acd85851e36 100644 --- a/vendor/golang.org/x/tools/internal/pkgbits/decoder.go +++ b/vendor/golang.org/x/tools/internal/pkgbits/decoder.go @@ -23,6 +23,9 @@ type PkgDecoder struct { // version is the file format version. version uint32 + // aliases determines whether types.Aliases should be created + aliases bool + // sync indicates whether the file uses sync markers. sync bool @@ -73,6 +76,7 @@ func (pr *PkgDecoder) SyncMarkers() bool { return pr.sync } func NewPkgDecoder(pkgPath, input string) PkgDecoder { pr := PkgDecoder{ pkgPath: pkgPath, + //aliases: aliases.Enabled(), } // TODO(mdempsky): Implement direct indexing of input string to diff --git a/vendor/golang.org/x/tools/internal/stdlib/manifest.go b/vendor/golang.org/x/tools/internal/stdlib/manifest.go new file mode 100644 index 000000000000..fd6892075ee4 --- /dev/null +++ b/vendor/golang.org/x/tools/internal/stdlib/manifest.go @@ -0,0 +1,17320 @@ +// Copyright 2024 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. + +// Code generated by generate.go. DO NOT EDIT. + +package stdlib + +var PackageSymbols = map[string][]Symbol{ + "archive/tar": { + {"(*Header).FileInfo", Method, 1}, + {"(*Reader).Next", Method, 0}, + {"(*Reader).Read", Method, 0}, + {"(*Writer).AddFS", Method, 22}, + {"(*Writer).Close", Method, 0}, + {"(*Writer).Flush", Method, 0}, + {"(*Writer).Write", Method, 0}, + {"(*Writer).WriteHeader", Method, 0}, + {"(Format).String", Method, 10}, + {"ErrFieldTooLong", Var, 0}, + {"ErrHeader", Var, 0}, + {"ErrInsecurePath", Var, 20}, + {"ErrWriteAfterClose", Var, 0}, + {"ErrWriteTooLong", Var, 0}, + {"FileInfoHeader", Func, 1}, + {"Format", Type, 10}, + {"FormatGNU", Const, 10}, + {"FormatPAX", Const, 10}, + {"FormatUSTAR", Const, 10}, + {"FormatUnknown", Const, 10}, + {"Header", Type, 0}, + {"Header.AccessTime", Field, 0}, + {"Header.ChangeTime", Field, 0}, + {"Header.Devmajor", Field, 0}, + {"Header.Devminor", Field, 0}, + {"Header.Format", Field, 10}, + {"Header.Gid", Field, 0}, + {"Header.Gname", Field, 0}, + {"Header.Linkname", Field, 0}, + {"Header.ModTime", Field, 0}, + {"Header.Mode", Field, 0}, + {"Header.Name", Field, 0}, + {"Header.PAXRecords", Field, 10}, + {"Header.Size", Field, 0}, + {"Header.Typeflag", Field, 0}, + {"Header.Uid", Field, 0}, + {"Header.Uname", Field, 0}, + {"Header.Xattrs", Field, 3}, + {"NewReader", Func, 0}, + {"NewWriter", Func, 0}, + {"Reader", Type, 0}, + {"TypeBlock", Const, 0}, + {"TypeChar", Const, 0}, + {"TypeCont", Const, 0}, + {"TypeDir", Const, 0}, + {"TypeFifo", Const, 0}, + {"TypeGNULongLink", Const, 1}, + {"TypeGNULongName", Const, 1}, + {"TypeGNUSparse", Const, 3}, + {"TypeLink", Const, 0}, + {"TypeReg", Const, 0}, + {"TypeRegA", Const, 0}, + {"TypeSymlink", Const, 0}, + {"TypeXGlobalHeader", Const, 0}, + {"TypeXHeader", Const, 0}, + {"Writer", Type, 0}, + }, + "archive/zip": { + {"(*File).DataOffset", Method, 2}, + {"(*File).FileInfo", Method, 0}, + {"(*File).ModTime", Method, 0}, + {"(*File).Mode", Method, 0}, + {"(*File).Open", Method, 0}, + {"(*File).OpenRaw", Method, 17}, + {"(*File).SetModTime", Method, 0}, + {"(*File).SetMode", Method, 0}, + {"(*FileHeader).FileInfo", Method, 0}, + {"(*FileHeader).ModTime", Method, 0}, + {"(*FileHeader).Mode", Method, 0}, + {"(*FileHeader).SetModTime", Method, 0}, + {"(*FileHeader).SetMode", Method, 0}, + {"(*ReadCloser).Close", Method, 0}, + {"(*ReadCloser).Open", Method, 16}, + {"(*ReadCloser).RegisterDecompressor", Method, 6}, + {"(*Reader).Open", Method, 16}, + {"(*Reader).RegisterDecompressor", Method, 6}, + {"(*Writer).AddFS", Method, 22}, + {"(*Writer).Close", Method, 0}, + {"(*Writer).Copy", Method, 17}, + {"(*Writer).Create", Method, 0}, + {"(*Writer).CreateHeader", Method, 0}, + {"(*Writer).CreateRaw", Method, 17}, + {"(*Writer).Flush", Method, 4}, + {"(*Writer).RegisterCompressor", Method, 6}, + {"(*Writer).SetComment", Method, 10}, + {"(*Writer).SetOffset", Method, 5}, + {"Compressor", Type, 2}, + {"Decompressor", Type, 2}, + {"Deflate", Const, 0}, + {"ErrAlgorithm", Var, 0}, + {"ErrChecksum", Var, 0}, + {"ErrFormat", Var, 0}, + {"ErrInsecurePath", Var, 20}, + {"File", Type, 0}, + {"File.FileHeader", Field, 0}, + {"FileHeader", Type, 0}, + {"FileHeader.CRC32", Field, 0}, + {"FileHeader.Comment", Field, 0}, + {"FileHeader.CompressedSize", Field, 0}, + {"FileHeader.CompressedSize64", Field, 1}, + {"FileHeader.CreatorVersion", Field, 0}, + {"FileHeader.ExternalAttrs", Field, 0}, + {"FileHeader.Extra", Field, 0}, + {"FileHeader.Flags", Field, 0}, + {"FileHeader.Method", Field, 0}, + {"FileHeader.Modified", Field, 10}, + {"FileHeader.ModifiedDate", Field, 0}, + {"FileHeader.ModifiedTime", Field, 0}, + {"FileHeader.Name", Field, 0}, + {"FileHeader.NonUTF8", Field, 10}, + {"FileHeader.ReaderVersion", Field, 0}, + {"FileHeader.UncompressedSize", Field, 0}, + {"FileHeader.UncompressedSize64", Field, 1}, + {"FileInfoHeader", Func, 0}, + {"NewReader", Func, 0}, + {"NewWriter", Func, 0}, + {"OpenReader", Func, 0}, + {"ReadCloser", Type, 0}, + {"ReadCloser.Reader", Field, 0}, + {"Reader", Type, 0}, + {"Reader.Comment", Field, 0}, + {"Reader.File", Field, 0}, + {"RegisterCompressor", Func, 2}, + {"RegisterDecompressor", Func, 2}, + {"Store", Const, 0}, + {"Writer", Type, 0}, + }, + "bufio": { + {"(*Reader).Buffered", Method, 0}, + {"(*Reader).Discard", Method, 5}, + {"(*Reader).Peek", Method, 0}, + {"(*Reader).Read", Method, 0}, + {"(*Reader).ReadByte", Method, 0}, + {"(*Reader).ReadBytes", Method, 0}, + {"(*Reader).ReadLine", Method, 0}, + {"(*Reader).ReadRune", Method, 0}, + {"(*Reader).ReadSlice", Method, 0}, + {"(*Reader).ReadString", Method, 0}, + {"(*Reader).Reset", Method, 2}, + {"(*Reader).Size", Method, 10}, + {"(*Reader).UnreadByte", Method, 0}, + {"(*Reader).UnreadRune", Method, 0}, + {"(*Reader).WriteTo", Method, 1}, + {"(*Scanner).Buffer", Method, 6}, + {"(*Scanner).Bytes", Method, 1}, + {"(*Scanner).Err", Method, 1}, + {"(*Scanner).Scan", Method, 1}, + {"(*Scanner).Split", Method, 1}, + {"(*Scanner).Text", Method, 1}, + {"(*Writer).Available", Method, 0}, + {"(*Writer).AvailableBuffer", Method, 18}, + {"(*Writer).Buffered", Method, 0}, + {"(*Writer).Flush", Method, 0}, + {"(*Writer).ReadFrom", Method, 1}, + {"(*Writer).Reset", Method, 2}, + {"(*Writer).Size", Method, 10}, + {"(*Writer).Write", Method, 0}, + {"(*Writer).WriteByte", Method, 0}, + {"(*Writer).WriteRune", Method, 0}, + {"(*Writer).WriteString", Method, 0}, + {"(ReadWriter).Available", Method, 0}, + {"(ReadWriter).AvailableBuffer", Method, 18}, + {"(ReadWriter).Discard", Method, 5}, + {"(ReadWriter).Flush", Method, 0}, + {"(ReadWriter).Peek", Method, 0}, + {"(ReadWriter).Read", Method, 0}, + {"(ReadWriter).ReadByte", Method, 0}, + {"(ReadWriter).ReadBytes", Method, 0}, + {"(ReadWriter).ReadFrom", Method, 1}, + {"(ReadWriter).ReadLine", Method, 0}, + {"(ReadWriter).ReadRune", Method, 0}, + {"(ReadWriter).ReadSlice", Method, 0}, + {"(ReadWriter).ReadString", Method, 0}, + {"(ReadWriter).UnreadByte", Method, 0}, + {"(ReadWriter).UnreadRune", Method, 0}, + {"(ReadWriter).Write", Method, 0}, + {"(ReadWriter).WriteByte", Method, 0}, + {"(ReadWriter).WriteRune", Method, 0}, + {"(ReadWriter).WriteString", Method, 0}, + {"(ReadWriter).WriteTo", Method, 1}, + {"ErrAdvanceTooFar", Var, 1}, + {"ErrBadReadCount", Var, 15}, + {"ErrBufferFull", Var, 0}, + {"ErrFinalToken", Var, 6}, + {"ErrInvalidUnreadByte", Var, 0}, + {"ErrInvalidUnreadRune", Var, 0}, + {"ErrNegativeAdvance", Var, 1}, + {"ErrNegativeCount", Var, 0}, + {"ErrTooLong", Var, 1}, + {"MaxScanTokenSize", Const, 1}, + {"NewReadWriter", Func, 0}, + {"NewReader", Func, 0}, + {"NewReaderSize", Func, 0}, + {"NewScanner", Func, 1}, + {"NewWriter", Func, 0}, + {"NewWriterSize", Func, 0}, + {"ReadWriter", Type, 0}, + {"ReadWriter.Reader", Field, 0}, + {"ReadWriter.Writer", Field, 0}, + {"Reader", Type, 0}, + {"ScanBytes", Func, 1}, + {"ScanLines", Func, 1}, + {"ScanRunes", Func, 1}, + {"ScanWords", Func, 1}, + {"Scanner", Type, 1}, + {"SplitFunc", Type, 1}, + {"Writer", Type, 0}, + }, + "bytes": { + {"(*Buffer).Available", Method, 21}, + {"(*Buffer).AvailableBuffer", Method, 21}, + {"(*Buffer).Bytes", Method, 0}, + {"(*Buffer).Cap", Method, 5}, + {"(*Buffer).Grow", Method, 1}, + {"(*Buffer).Len", Method, 0}, + {"(*Buffer).Next", Method, 0}, + {"(*Buffer).Read", Method, 0}, + {"(*Buffer).ReadByte", Method, 0}, + {"(*Buffer).ReadBytes", Method, 0}, + {"(*Buffer).ReadFrom", Method, 0}, + {"(*Buffer).ReadRune", Method, 0}, + {"(*Buffer).ReadString", Method, 0}, + {"(*Buffer).Reset", Method, 0}, + {"(*Buffer).String", Method, 0}, + {"(*Buffer).Truncate", Method, 0}, + {"(*Buffer).UnreadByte", Method, 0}, + {"(*Buffer).UnreadRune", Method, 0}, + {"(*Buffer).Write", Method, 0}, + {"(*Buffer).WriteByte", Method, 0}, + {"(*Buffer).WriteRune", Method, 0}, + {"(*Buffer).WriteString", Method, 0}, + {"(*Buffer).WriteTo", Method, 0}, + {"(*Reader).Len", Method, 0}, + {"(*Reader).Read", Method, 0}, + {"(*Reader).ReadAt", Method, 0}, + {"(*Reader).ReadByte", Method, 0}, + {"(*Reader).ReadRune", Method, 0}, + {"(*Reader).Reset", Method, 7}, + {"(*Reader).Seek", Method, 0}, + {"(*Reader).Size", Method, 5}, + {"(*Reader).UnreadByte", Method, 0}, + {"(*Reader).UnreadRune", Method, 0}, + {"(*Reader).WriteTo", Method, 1}, + {"Buffer", Type, 0}, + {"Clone", Func, 20}, + {"Compare", Func, 0}, + {"Contains", Func, 0}, + {"ContainsAny", Func, 7}, + {"ContainsFunc", Func, 21}, + {"ContainsRune", Func, 7}, + {"Count", Func, 0}, + {"Cut", Func, 18}, + {"CutPrefix", Func, 20}, + {"CutSuffix", Func, 20}, + {"Equal", Func, 0}, + {"EqualFold", Func, 0}, + {"ErrTooLarge", Var, 0}, + {"Fields", Func, 0}, + {"FieldsFunc", Func, 0}, + {"HasPrefix", Func, 0}, + {"HasSuffix", Func, 0}, + {"Index", Func, 0}, + {"IndexAny", Func, 0}, + {"IndexByte", Func, 0}, + {"IndexFunc", Func, 0}, + {"IndexRune", Func, 0}, + {"Join", Func, 0}, + {"LastIndex", Func, 0}, + {"LastIndexAny", Func, 0}, + {"LastIndexByte", Func, 5}, + {"LastIndexFunc", Func, 0}, + {"Map", Func, 0}, + {"MinRead", Const, 0}, + {"NewBuffer", Func, 0}, + {"NewBufferString", Func, 0}, + {"NewReader", Func, 0}, + {"Reader", Type, 0}, + {"Repeat", Func, 0}, + {"Replace", Func, 0}, + {"ReplaceAll", Func, 12}, + {"Runes", Func, 0}, + {"Split", Func, 0}, + {"SplitAfter", Func, 0}, + {"SplitAfterN", Func, 0}, + {"SplitN", Func, 0}, + {"Title", Func, 0}, + {"ToLower", Func, 0}, + {"ToLowerSpecial", Func, 0}, + {"ToTitle", Func, 0}, + {"ToTitleSpecial", Func, 0}, + {"ToUpper", Func, 0}, + {"ToUpperSpecial", Func, 0}, + {"ToValidUTF8", Func, 13}, + {"Trim", Func, 0}, + {"TrimFunc", Func, 0}, + {"TrimLeft", Func, 0}, + {"TrimLeftFunc", Func, 0}, + {"TrimPrefix", Func, 1}, + {"TrimRight", Func, 0}, + {"TrimRightFunc", Func, 0}, + {"TrimSpace", Func, 0}, + {"TrimSuffix", Func, 1}, + }, + "cmp": { + {"Compare", Func, 21}, + {"Less", Func, 21}, + {"Or", Func, 22}, + {"Ordered", Type, 21}, + }, + "compress/bzip2": { + {"(StructuralError).Error", Method, 0}, + {"NewReader", Func, 0}, + {"StructuralError", Type, 0}, + }, + "compress/flate": { + {"(*ReadError).Error", Method, 0}, + {"(*WriteError).Error", Method, 0}, + {"(*Writer).Close", Method, 0}, + {"(*Writer).Flush", Method, 0}, + {"(*Writer).Reset", Method, 2}, + {"(*Writer).Write", Method, 0}, + {"(CorruptInputError).Error", Method, 0}, + {"(InternalError).Error", Method, 0}, + {"BestCompression", Const, 0}, + {"BestSpeed", Const, 0}, + {"CorruptInputError", Type, 0}, + {"DefaultCompression", Const, 0}, + {"HuffmanOnly", Const, 7}, + {"InternalError", Type, 0}, + {"NewReader", Func, 0}, + {"NewReaderDict", Func, 0}, + {"NewWriter", Func, 0}, + {"NewWriterDict", Func, 0}, + {"NoCompression", Const, 0}, + {"ReadError", Type, 0}, + {"ReadError.Err", Field, 0}, + {"ReadError.Offset", Field, 0}, + {"Reader", Type, 0}, + {"Resetter", Type, 4}, + {"WriteError", Type, 0}, + {"WriteError.Err", Field, 0}, + {"WriteError.Offset", Field, 0}, + {"Writer", Type, 0}, + }, + "compress/gzip": { + {"(*Reader).Close", Method, 0}, + {"(*Reader).Multistream", Method, 4}, + {"(*Reader).Read", Method, 0}, + {"(*Reader).Reset", Method, 3}, + {"(*Writer).Close", Method, 0}, + {"(*Writer).Flush", Method, 1}, + {"(*Writer).Reset", Method, 2}, + {"(*Writer).Write", Method, 0}, + {"BestCompression", Const, 0}, + {"BestSpeed", Const, 0}, + {"DefaultCompression", Const, 0}, + {"ErrChecksum", Var, 0}, + {"ErrHeader", Var, 0}, + {"Header", Type, 0}, + {"Header.Comment", Field, 0}, + {"Header.Extra", Field, 0}, + {"Header.ModTime", Field, 0}, + {"Header.Name", Field, 0}, + {"Header.OS", Field, 0}, + {"HuffmanOnly", Const, 8}, + {"NewReader", Func, 0}, + {"NewWriter", Func, 0}, + {"NewWriterLevel", Func, 0}, + {"NoCompression", Const, 0}, + {"Reader", Type, 0}, + {"Reader.Header", Field, 0}, + {"Writer", Type, 0}, + {"Writer.Header", Field, 0}, + }, + "compress/lzw": { + {"(*Reader).Close", Method, 17}, + {"(*Reader).Read", Method, 17}, + {"(*Reader).Reset", Method, 17}, + {"(*Writer).Close", Method, 17}, + {"(*Writer).Reset", Method, 17}, + {"(*Writer).Write", Method, 17}, + {"LSB", Const, 0}, + {"MSB", Const, 0}, + {"NewReader", Func, 0}, + {"NewWriter", Func, 0}, + {"Order", Type, 0}, + {"Reader", Type, 17}, + {"Writer", Type, 17}, + }, + "compress/zlib": { + {"(*Writer).Close", Method, 0}, + {"(*Writer).Flush", Method, 0}, + {"(*Writer).Reset", Method, 2}, + {"(*Writer).Write", Method, 0}, + {"BestCompression", Const, 0}, + {"BestSpeed", Const, 0}, + {"DefaultCompression", Const, 0}, + {"ErrChecksum", Var, 0}, + {"ErrDictionary", Var, 0}, + {"ErrHeader", Var, 0}, + {"HuffmanOnly", Const, 8}, + {"NewReader", Func, 0}, + {"NewReaderDict", Func, 0}, + {"NewWriter", Func, 0}, + {"NewWriterLevel", Func, 0}, + {"NewWriterLevelDict", Func, 0}, + {"NoCompression", Const, 0}, + {"Resetter", Type, 4}, + {"Writer", Type, 0}, + }, + "container/heap": { + {"Fix", Func, 2}, + {"Init", Func, 0}, + {"Interface", Type, 0}, + {"Pop", Func, 0}, + {"Push", Func, 0}, + {"Remove", Func, 0}, + }, + "container/list": { + {"(*Element).Next", Method, 0}, + {"(*Element).Prev", Method, 0}, + {"(*List).Back", Method, 0}, + {"(*List).Front", Method, 0}, + {"(*List).Init", Method, 0}, + {"(*List).InsertAfter", Method, 0}, + {"(*List).InsertBefore", Method, 0}, + {"(*List).Len", Method, 0}, + {"(*List).MoveAfter", Method, 2}, + {"(*List).MoveBefore", Method, 2}, + {"(*List).MoveToBack", Method, 0}, + {"(*List).MoveToFront", Method, 0}, + {"(*List).PushBack", Method, 0}, + {"(*List).PushBackList", Method, 0}, + {"(*List).PushFront", Method, 0}, + {"(*List).PushFrontList", Method, 0}, + {"(*List).Remove", Method, 0}, + {"Element", Type, 0}, + {"Element.Value", Field, 0}, + {"List", Type, 0}, + {"New", Func, 0}, + }, + "container/ring": { + {"(*Ring).Do", Method, 0}, + {"(*Ring).Len", Method, 0}, + {"(*Ring).Link", Method, 0}, + {"(*Ring).Move", Method, 0}, + {"(*Ring).Next", Method, 0}, + {"(*Ring).Prev", Method, 0}, + {"(*Ring).Unlink", Method, 0}, + {"New", Func, 0}, + {"Ring", Type, 0}, + {"Ring.Value", Field, 0}, + }, + "context": { + {"AfterFunc", Func, 21}, + {"Background", Func, 7}, + {"CancelCauseFunc", Type, 20}, + {"CancelFunc", Type, 7}, + {"Canceled", Var, 7}, + {"Cause", Func, 20}, + {"Context", Type, 7}, + {"DeadlineExceeded", Var, 7}, + {"TODO", Func, 7}, + {"WithCancel", Func, 7}, + {"WithCancelCause", Func, 20}, + {"WithDeadline", Func, 7}, + {"WithDeadlineCause", Func, 21}, + {"WithTimeout", Func, 7}, + {"WithTimeoutCause", Func, 21}, + {"WithValue", Func, 7}, + {"WithoutCancel", Func, 21}, + }, + "crypto": { + {"(Hash).Available", Method, 0}, + {"(Hash).HashFunc", Method, 4}, + {"(Hash).New", Method, 0}, + {"(Hash).Size", Method, 0}, + {"(Hash).String", Method, 15}, + {"BLAKE2b_256", Const, 9}, + {"BLAKE2b_384", Const, 9}, + {"BLAKE2b_512", Const, 9}, + {"BLAKE2s_256", Const, 9}, + {"Decrypter", Type, 5}, + {"DecrypterOpts", Type, 5}, + {"Hash", Type, 0}, + {"MD4", Const, 0}, + {"MD5", Const, 0}, + {"MD5SHA1", Const, 0}, + {"PrivateKey", Type, 0}, + {"PublicKey", Type, 2}, + {"RIPEMD160", Const, 0}, + {"RegisterHash", Func, 0}, + {"SHA1", Const, 0}, + {"SHA224", Const, 0}, + {"SHA256", Const, 0}, + {"SHA384", Const, 0}, + {"SHA3_224", Const, 4}, + {"SHA3_256", Const, 4}, + {"SHA3_384", Const, 4}, + {"SHA3_512", Const, 4}, + {"SHA512", Const, 0}, + {"SHA512_224", Const, 5}, + {"SHA512_256", Const, 5}, + {"Signer", Type, 4}, + {"SignerOpts", Type, 4}, + }, + "crypto/aes": { + {"(KeySizeError).Error", Method, 0}, + {"BlockSize", Const, 0}, + {"KeySizeError", Type, 0}, + {"NewCipher", Func, 0}, + }, + "crypto/cipher": { + {"(StreamReader).Read", Method, 0}, + {"(StreamWriter).Close", Method, 0}, + {"(StreamWriter).Write", Method, 0}, + {"AEAD", Type, 2}, + {"Block", Type, 0}, + {"BlockMode", Type, 0}, + {"NewCBCDecrypter", Func, 0}, + {"NewCBCEncrypter", Func, 0}, + {"NewCFBDecrypter", Func, 0}, + {"NewCFBEncrypter", Func, 0}, + {"NewCTR", Func, 0}, + {"NewGCM", Func, 2}, + {"NewGCMWithNonceSize", Func, 5}, + {"NewGCMWithTagSize", Func, 11}, + {"NewOFB", Func, 0}, + {"Stream", Type, 0}, + {"StreamReader", Type, 0}, + {"StreamReader.R", Field, 0}, + {"StreamReader.S", Field, 0}, + {"StreamWriter", Type, 0}, + {"StreamWriter.Err", Field, 0}, + {"StreamWriter.S", Field, 0}, + {"StreamWriter.W", Field, 0}, + }, + "crypto/des": { + {"(KeySizeError).Error", Method, 0}, + {"BlockSize", Const, 0}, + {"KeySizeError", Type, 0}, + {"NewCipher", Func, 0}, + {"NewTripleDESCipher", Func, 0}, + }, + "crypto/dsa": { + {"ErrInvalidPublicKey", Var, 0}, + {"GenerateKey", Func, 0}, + {"GenerateParameters", Func, 0}, + {"L1024N160", Const, 0}, + {"L2048N224", Const, 0}, + {"L2048N256", Const, 0}, + {"L3072N256", Const, 0}, + {"ParameterSizes", Type, 0}, + {"Parameters", Type, 0}, + {"Parameters.G", Field, 0}, + {"Parameters.P", Field, 0}, + {"Parameters.Q", Field, 0}, + {"PrivateKey", Type, 0}, + {"PrivateKey.PublicKey", Field, 0}, + {"PrivateKey.X", Field, 0}, + {"PublicKey", Type, 0}, + {"PublicKey.Parameters", Field, 0}, + {"PublicKey.Y", Field, 0}, + {"Sign", Func, 0}, + {"Verify", Func, 0}, + }, + "crypto/ecdh": { + {"(*PrivateKey).Bytes", Method, 20}, + {"(*PrivateKey).Curve", Method, 20}, + {"(*PrivateKey).ECDH", Method, 20}, + {"(*PrivateKey).Equal", Method, 20}, + {"(*PrivateKey).Public", Method, 20}, + {"(*PrivateKey).PublicKey", Method, 20}, + {"(*PublicKey).Bytes", Method, 20}, + {"(*PublicKey).Curve", Method, 20}, + {"(*PublicKey).Equal", Method, 20}, + {"Curve", Type, 20}, + {"P256", Func, 20}, + {"P384", Func, 20}, + {"P521", Func, 20}, + {"PrivateKey", Type, 20}, + {"PublicKey", Type, 20}, + {"X25519", Func, 20}, + }, + "crypto/ecdsa": { + {"(*PrivateKey).ECDH", Method, 20}, + {"(*PrivateKey).Equal", Method, 15}, + {"(*PrivateKey).Public", Method, 4}, + {"(*PrivateKey).Sign", Method, 4}, + {"(*PublicKey).ECDH", Method, 20}, + {"(*PublicKey).Equal", Method, 15}, + {"(PrivateKey).Add", Method, 0}, + {"(PrivateKey).Double", Method, 0}, + {"(PrivateKey).IsOnCurve", Method, 0}, + {"(PrivateKey).Params", Method, 0}, + {"(PrivateKey).ScalarBaseMult", Method, 0}, + {"(PrivateKey).ScalarMult", Method, 0}, + {"(PublicKey).Add", Method, 0}, + {"(PublicKey).Double", Method, 0}, + {"(PublicKey).IsOnCurve", Method, 0}, + {"(PublicKey).Params", Method, 0}, + {"(PublicKey).ScalarBaseMult", Method, 0}, + {"(PublicKey).ScalarMult", Method, 0}, + {"GenerateKey", Func, 0}, + {"PrivateKey", Type, 0}, + {"PrivateKey.D", Field, 0}, + {"PrivateKey.PublicKey", Field, 0}, + {"PublicKey", Type, 0}, + {"PublicKey.Curve", Field, 0}, + {"PublicKey.X", Field, 0}, + {"PublicKey.Y", Field, 0}, + {"Sign", Func, 0}, + {"SignASN1", Func, 15}, + {"Verify", Func, 0}, + {"VerifyASN1", Func, 15}, + }, + "crypto/ed25519": { + {"(*Options).HashFunc", Method, 20}, + {"(PrivateKey).Equal", Method, 15}, + {"(PrivateKey).Public", Method, 13}, + {"(PrivateKey).Seed", Method, 13}, + {"(PrivateKey).Sign", Method, 13}, + {"(PublicKey).Equal", Method, 15}, + {"GenerateKey", Func, 13}, + {"NewKeyFromSeed", Func, 13}, + {"Options", Type, 20}, + {"Options.Context", Field, 20}, + {"Options.Hash", Field, 20}, + {"PrivateKey", Type, 13}, + {"PrivateKeySize", Const, 13}, + {"PublicKey", Type, 13}, + {"PublicKeySize", Const, 13}, + {"SeedSize", Const, 13}, + {"Sign", Func, 13}, + {"SignatureSize", Const, 13}, + {"Verify", Func, 13}, + {"VerifyWithOptions", Func, 20}, + }, + "crypto/elliptic": { + {"(*CurveParams).Add", Method, 0}, + {"(*CurveParams).Double", Method, 0}, + {"(*CurveParams).IsOnCurve", Method, 0}, + {"(*CurveParams).Params", Method, 0}, + {"(*CurveParams).ScalarBaseMult", Method, 0}, + {"(*CurveParams).ScalarMult", Method, 0}, + {"Curve", Type, 0}, + {"CurveParams", Type, 0}, + {"CurveParams.B", Field, 0}, + {"CurveParams.BitSize", Field, 0}, + {"CurveParams.Gx", Field, 0}, + {"CurveParams.Gy", Field, 0}, + {"CurveParams.N", Field, 0}, + {"CurveParams.Name", Field, 5}, + {"CurveParams.P", Field, 0}, + {"GenerateKey", Func, 0}, + {"Marshal", Func, 0}, + {"MarshalCompressed", Func, 15}, + {"P224", Func, 0}, + {"P256", Func, 0}, + {"P384", Func, 0}, + {"P521", Func, 0}, + {"Unmarshal", Func, 0}, + {"UnmarshalCompressed", Func, 15}, + }, + "crypto/hmac": { + {"Equal", Func, 1}, + {"New", Func, 0}, + }, + "crypto/md5": { + {"BlockSize", Const, 0}, + {"New", Func, 0}, + {"Size", Const, 0}, + {"Sum", Func, 2}, + }, + "crypto/rand": { + {"Int", Func, 0}, + {"Prime", Func, 0}, + {"Read", Func, 0}, + {"Reader", Var, 0}, + }, + "crypto/rc4": { + {"(*Cipher).Reset", Method, 0}, + {"(*Cipher).XORKeyStream", Method, 0}, + {"(KeySizeError).Error", Method, 0}, + {"Cipher", Type, 0}, + {"KeySizeError", Type, 0}, + {"NewCipher", Func, 0}, + }, + "crypto/rsa": { + {"(*PSSOptions).HashFunc", Method, 4}, + {"(*PrivateKey).Decrypt", Method, 5}, + {"(*PrivateKey).Equal", Method, 15}, + {"(*PrivateKey).Precompute", Method, 0}, + {"(*PrivateKey).Public", Method, 4}, + {"(*PrivateKey).Sign", Method, 4}, + {"(*PrivateKey).Size", Method, 11}, + {"(*PrivateKey).Validate", Method, 0}, + {"(*PublicKey).Equal", Method, 15}, + {"(*PublicKey).Size", Method, 11}, + {"CRTValue", Type, 0}, + {"CRTValue.Coeff", Field, 0}, + {"CRTValue.Exp", Field, 0}, + {"CRTValue.R", Field, 0}, + {"DecryptOAEP", Func, 0}, + {"DecryptPKCS1v15", Func, 0}, + {"DecryptPKCS1v15SessionKey", Func, 0}, + {"EncryptOAEP", Func, 0}, + {"EncryptPKCS1v15", Func, 0}, + {"ErrDecryption", Var, 0}, + {"ErrMessageTooLong", Var, 0}, + {"ErrVerification", Var, 0}, + {"GenerateKey", Func, 0}, + {"GenerateMultiPrimeKey", Func, 0}, + {"OAEPOptions", Type, 5}, + {"OAEPOptions.Hash", Field, 5}, + {"OAEPOptions.Label", Field, 5}, + {"OAEPOptions.MGFHash", Field, 20}, + {"PKCS1v15DecryptOptions", Type, 5}, + {"PKCS1v15DecryptOptions.SessionKeyLen", Field, 5}, + {"PSSOptions", Type, 2}, + {"PSSOptions.Hash", Field, 4}, + {"PSSOptions.SaltLength", Field, 2}, + {"PSSSaltLengthAuto", Const, 2}, + {"PSSSaltLengthEqualsHash", Const, 2}, + {"PrecomputedValues", Type, 0}, + {"PrecomputedValues.CRTValues", Field, 0}, + {"PrecomputedValues.Dp", Field, 0}, + {"PrecomputedValues.Dq", Field, 0}, + {"PrecomputedValues.Qinv", Field, 0}, + {"PrivateKey", Type, 0}, + {"PrivateKey.D", Field, 0}, + {"PrivateKey.Precomputed", Field, 0}, + {"PrivateKey.Primes", Field, 0}, + {"PrivateKey.PublicKey", Field, 0}, + {"PublicKey", Type, 0}, + {"PublicKey.E", Field, 0}, + {"PublicKey.N", Field, 0}, + {"SignPKCS1v15", Func, 0}, + {"SignPSS", Func, 2}, + {"VerifyPKCS1v15", Func, 0}, + {"VerifyPSS", Func, 2}, + }, + "crypto/sha1": { + {"BlockSize", Const, 0}, + {"New", Func, 0}, + {"Size", Const, 0}, + {"Sum", Func, 2}, + }, + "crypto/sha256": { + {"BlockSize", Const, 0}, + {"New", Func, 0}, + {"New224", Func, 0}, + {"Size", Const, 0}, + {"Size224", Const, 0}, + {"Sum224", Func, 2}, + {"Sum256", Func, 2}, + }, + "crypto/sha512": { + {"BlockSize", Const, 0}, + {"New", Func, 0}, + {"New384", Func, 0}, + {"New512_224", Func, 5}, + {"New512_256", Func, 5}, + {"Size", Const, 0}, + {"Size224", Const, 5}, + {"Size256", Const, 5}, + {"Size384", Const, 0}, + {"Sum384", Func, 2}, + {"Sum512", Func, 2}, + {"Sum512_224", Func, 5}, + {"Sum512_256", Func, 5}, + }, + "crypto/subtle": { + {"ConstantTimeByteEq", Func, 0}, + {"ConstantTimeCompare", Func, 0}, + {"ConstantTimeCopy", Func, 0}, + {"ConstantTimeEq", Func, 0}, + {"ConstantTimeLessOrEq", Func, 2}, + {"ConstantTimeSelect", Func, 0}, + {"XORBytes", Func, 20}, + }, + "crypto/tls": { + {"(*CertificateRequestInfo).Context", Method, 17}, + {"(*CertificateRequestInfo).SupportsCertificate", Method, 14}, + {"(*CertificateVerificationError).Error", Method, 20}, + {"(*CertificateVerificationError).Unwrap", Method, 20}, + {"(*ClientHelloInfo).Context", Method, 17}, + {"(*ClientHelloInfo).SupportsCertificate", Method, 14}, + {"(*ClientSessionState).ResumptionState", Method, 21}, + {"(*Config).BuildNameToCertificate", Method, 0}, + {"(*Config).Clone", Method, 8}, + {"(*Config).DecryptTicket", Method, 21}, + {"(*Config).EncryptTicket", Method, 21}, + {"(*Config).SetSessionTicketKeys", Method, 5}, + {"(*Conn).Close", Method, 0}, + {"(*Conn).CloseWrite", Method, 8}, + {"(*Conn).ConnectionState", Method, 0}, + {"(*Conn).Handshake", Method, 0}, + {"(*Conn).HandshakeContext", Method, 17}, + {"(*Conn).LocalAddr", Method, 0}, + {"(*Conn).NetConn", Method, 18}, + {"(*Conn).OCSPResponse", Method, 0}, + {"(*Conn).Read", Method, 0}, + {"(*Conn).RemoteAddr", Method, 0}, + {"(*Conn).SetDeadline", Method, 0}, + {"(*Conn).SetReadDeadline", Method, 0}, + {"(*Conn).SetWriteDeadline", Method, 0}, + {"(*Conn).VerifyHostname", Method, 0}, + {"(*Conn).Write", Method, 0}, + {"(*ConnectionState).ExportKeyingMaterial", Method, 11}, + {"(*Dialer).Dial", Method, 15}, + {"(*Dialer).DialContext", Method, 15}, + {"(*QUICConn).Close", Method, 21}, + {"(*QUICConn).ConnectionState", Method, 21}, + {"(*QUICConn).HandleData", Method, 21}, + {"(*QUICConn).NextEvent", Method, 21}, + {"(*QUICConn).SendSessionTicket", Method, 21}, + {"(*QUICConn).SetTransportParameters", Method, 21}, + {"(*QUICConn).Start", Method, 21}, + {"(*SessionState).Bytes", Method, 21}, + {"(AlertError).Error", Method, 21}, + {"(ClientAuthType).String", Method, 15}, + {"(CurveID).String", Method, 15}, + {"(QUICEncryptionLevel).String", Method, 21}, + {"(RecordHeaderError).Error", Method, 6}, + {"(SignatureScheme).String", Method, 15}, + {"AlertError", Type, 21}, + {"Certificate", Type, 0}, + {"Certificate.Certificate", Field, 0}, + {"Certificate.Leaf", Field, 0}, + {"Certificate.OCSPStaple", Field, 0}, + {"Certificate.PrivateKey", Field, 0}, + {"Certificate.SignedCertificateTimestamps", Field, 5}, + {"Certificate.SupportedSignatureAlgorithms", Field, 14}, + {"CertificateRequestInfo", Type, 8}, + {"CertificateRequestInfo.AcceptableCAs", Field, 8}, + {"CertificateRequestInfo.SignatureSchemes", Field, 8}, + {"CertificateRequestInfo.Version", Field, 14}, + {"CertificateVerificationError", Type, 20}, + {"CertificateVerificationError.Err", Field, 20}, + {"CertificateVerificationError.UnverifiedCertificates", Field, 20}, + {"CipherSuite", Type, 14}, + {"CipherSuite.ID", Field, 14}, + {"CipherSuite.Insecure", Field, 14}, + {"CipherSuite.Name", Field, 14}, + {"CipherSuite.SupportedVersions", Field, 14}, + {"CipherSuiteName", Func, 14}, + {"CipherSuites", Func, 14}, + {"Client", Func, 0}, + {"ClientAuthType", Type, 0}, + {"ClientHelloInfo", Type, 4}, + {"ClientHelloInfo.CipherSuites", Field, 4}, + {"ClientHelloInfo.Conn", Field, 8}, + {"ClientHelloInfo.ServerName", Field, 4}, + {"ClientHelloInfo.SignatureSchemes", Field, 8}, + {"ClientHelloInfo.SupportedCurves", Field, 4}, + {"ClientHelloInfo.SupportedPoints", Field, 4}, + {"ClientHelloInfo.SupportedProtos", Field, 8}, + {"ClientHelloInfo.SupportedVersions", Field, 8}, + {"ClientSessionCache", Type, 3}, + {"ClientSessionState", Type, 3}, + {"Config", Type, 0}, + {"Config.Certificates", Field, 0}, + {"Config.CipherSuites", Field, 0}, + {"Config.ClientAuth", Field, 0}, + {"Config.ClientCAs", Field, 0}, + {"Config.ClientSessionCache", Field, 3}, + {"Config.CurvePreferences", Field, 3}, + {"Config.DynamicRecordSizingDisabled", Field, 7}, + {"Config.GetCertificate", Field, 4}, + {"Config.GetClientCertificate", Field, 8}, + {"Config.GetConfigForClient", Field, 8}, + {"Config.InsecureSkipVerify", Field, 0}, + {"Config.KeyLogWriter", Field, 8}, + {"Config.MaxVersion", Field, 2}, + {"Config.MinVersion", Field, 2}, + {"Config.NameToCertificate", Field, 0}, + {"Config.NextProtos", Field, 0}, + {"Config.PreferServerCipherSuites", Field, 1}, + {"Config.Rand", Field, 0}, + {"Config.Renegotiation", Field, 7}, + {"Config.RootCAs", Field, 0}, + {"Config.ServerName", Field, 0}, + {"Config.SessionTicketKey", Field, 1}, + {"Config.SessionTicketsDisabled", Field, 1}, + {"Config.Time", Field, 0}, + {"Config.UnwrapSession", Field, 21}, + {"Config.VerifyConnection", Field, 15}, + {"Config.VerifyPeerCertificate", Field, 8}, + {"Config.WrapSession", Field, 21}, + {"Conn", Type, 0}, + {"ConnectionState", Type, 0}, + {"ConnectionState.CipherSuite", Field, 0}, + {"ConnectionState.DidResume", Field, 1}, + {"ConnectionState.HandshakeComplete", Field, 0}, + {"ConnectionState.NegotiatedProtocol", Field, 0}, + {"ConnectionState.NegotiatedProtocolIsMutual", Field, 0}, + {"ConnectionState.OCSPResponse", Field, 5}, + {"ConnectionState.PeerCertificates", Field, 0}, + {"ConnectionState.ServerName", Field, 0}, + {"ConnectionState.SignedCertificateTimestamps", Field, 5}, + {"ConnectionState.TLSUnique", Field, 4}, + {"ConnectionState.VerifiedChains", Field, 0}, + {"ConnectionState.Version", Field, 3}, + {"CurveID", Type, 3}, + {"CurveP256", Const, 3}, + {"CurveP384", Const, 3}, + {"CurveP521", Const, 3}, + {"Dial", Func, 0}, + {"DialWithDialer", Func, 3}, + {"Dialer", Type, 15}, + {"Dialer.Config", Field, 15}, + {"Dialer.NetDialer", Field, 15}, + {"ECDSAWithP256AndSHA256", Const, 8}, + {"ECDSAWithP384AndSHA384", Const, 8}, + {"ECDSAWithP521AndSHA512", Const, 8}, + {"ECDSAWithSHA1", Const, 10}, + {"Ed25519", Const, 13}, + {"InsecureCipherSuites", Func, 14}, + {"Listen", Func, 0}, + {"LoadX509KeyPair", Func, 0}, + {"NewLRUClientSessionCache", Func, 3}, + {"NewListener", Func, 0}, + {"NewResumptionState", Func, 21}, + {"NoClientCert", Const, 0}, + {"PKCS1WithSHA1", Const, 8}, + {"PKCS1WithSHA256", Const, 8}, + {"PKCS1WithSHA384", Const, 8}, + {"PKCS1WithSHA512", Const, 8}, + {"PSSWithSHA256", Const, 8}, + {"PSSWithSHA384", Const, 8}, + {"PSSWithSHA512", Const, 8}, + {"ParseSessionState", Func, 21}, + {"QUICClient", Func, 21}, + {"QUICConfig", Type, 21}, + {"QUICConfig.TLSConfig", Field, 21}, + {"QUICConn", Type, 21}, + {"QUICEncryptionLevel", Type, 21}, + {"QUICEncryptionLevelApplication", Const, 21}, + {"QUICEncryptionLevelEarly", Const, 21}, + {"QUICEncryptionLevelHandshake", Const, 21}, + {"QUICEncryptionLevelInitial", Const, 21}, + {"QUICEvent", Type, 21}, + {"QUICEvent.Data", Field, 21}, + {"QUICEvent.Kind", Field, 21}, + {"QUICEvent.Level", Field, 21}, + {"QUICEvent.Suite", Field, 21}, + {"QUICEventKind", Type, 21}, + {"QUICHandshakeDone", Const, 21}, + {"QUICNoEvent", Const, 21}, + {"QUICRejectedEarlyData", Const, 21}, + {"QUICServer", Func, 21}, + {"QUICSessionTicketOptions", Type, 21}, + {"QUICSessionTicketOptions.EarlyData", Field, 21}, + {"QUICSetReadSecret", Const, 21}, + {"QUICSetWriteSecret", Const, 21}, + {"QUICTransportParameters", Const, 21}, + {"QUICTransportParametersRequired", Const, 21}, + {"QUICWriteData", Const, 21}, + {"RecordHeaderError", Type, 6}, + {"RecordHeaderError.Conn", Field, 12}, + {"RecordHeaderError.Msg", Field, 6}, + {"RecordHeaderError.RecordHeader", Field, 6}, + {"RenegotiateFreelyAsClient", Const, 7}, + {"RenegotiateNever", Const, 7}, + {"RenegotiateOnceAsClient", Const, 7}, + {"RenegotiationSupport", Type, 7}, + {"RequestClientCert", Const, 0}, + {"RequireAndVerifyClientCert", Const, 0}, + {"RequireAnyClientCert", Const, 0}, + {"Server", Func, 0}, + {"SessionState", Type, 21}, + {"SessionState.EarlyData", Field, 21}, + {"SessionState.Extra", Field, 21}, + {"SignatureScheme", Type, 8}, + {"TLS_AES_128_GCM_SHA256", Const, 12}, + {"TLS_AES_256_GCM_SHA384", Const, 12}, + {"TLS_CHACHA20_POLY1305_SHA256", Const, 12}, + {"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA", Const, 2}, + {"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", Const, 8}, + {"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", Const, 2}, + {"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA", Const, 2}, + {"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", Const, 5}, + {"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305", Const, 8}, + {"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", Const, 14}, + {"TLS_ECDHE_ECDSA_WITH_RC4_128_SHA", Const, 2}, + {"TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA", Const, 0}, + {"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", Const, 0}, + {"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", Const, 8}, + {"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", Const, 2}, + {"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", Const, 1}, + {"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", Const, 5}, + {"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", Const, 8}, + {"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256", Const, 14}, + {"TLS_ECDHE_RSA_WITH_RC4_128_SHA", Const, 0}, + {"TLS_FALLBACK_SCSV", Const, 4}, + {"TLS_RSA_WITH_3DES_EDE_CBC_SHA", Const, 0}, + {"TLS_RSA_WITH_AES_128_CBC_SHA", Const, 0}, + {"TLS_RSA_WITH_AES_128_CBC_SHA256", Const, 8}, + {"TLS_RSA_WITH_AES_128_GCM_SHA256", Const, 6}, + {"TLS_RSA_WITH_AES_256_CBC_SHA", Const, 1}, + {"TLS_RSA_WITH_AES_256_GCM_SHA384", Const, 6}, + {"TLS_RSA_WITH_RC4_128_SHA", Const, 0}, + {"VerifyClientCertIfGiven", Const, 0}, + {"VersionName", Func, 21}, + {"VersionSSL30", Const, 2}, + {"VersionTLS10", Const, 2}, + {"VersionTLS11", Const, 2}, + {"VersionTLS12", Const, 2}, + {"VersionTLS13", Const, 12}, + {"X25519", Const, 8}, + {"X509KeyPair", Func, 0}, + }, + "crypto/x509": { + {"(*CertPool).AddCert", Method, 0}, + {"(*CertPool).AddCertWithConstraint", Method, 22}, + {"(*CertPool).AppendCertsFromPEM", Method, 0}, + {"(*CertPool).Clone", Method, 19}, + {"(*CertPool).Equal", Method, 19}, + {"(*CertPool).Subjects", Method, 0}, + {"(*Certificate).CheckCRLSignature", Method, 0}, + {"(*Certificate).CheckSignature", Method, 0}, + {"(*Certificate).CheckSignatureFrom", Method, 0}, + {"(*Certificate).CreateCRL", Method, 0}, + {"(*Certificate).Equal", Method, 0}, + {"(*Certificate).Verify", Method, 0}, + {"(*Certificate).VerifyHostname", Method, 0}, + {"(*CertificateRequest).CheckSignature", Method, 5}, + {"(*RevocationList).CheckSignatureFrom", Method, 19}, + {"(CertificateInvalidError).Error", Method, 0}, + {"(ConstraintViolationError).Error", Method, 0}, + {"(HostnameError).Error", Method, 0}, + {"(InsecureAlgorithmError).Error", Method, 6}, + {"(OID).Equal", Method, 22}, + {"(OID).EqualASN1OID", Method, 22}, + {"(OID).String", Method, 22}, + {"(PublicKeyAlgorithm).String", Method, 10}, + {"(SignatureAlgorithm).String", Method, 6}, + {"(SystemRootsError).Error", Method, 1}, + {"(SystemRootsError).Unwrap", Method, 16}, + {"(UnhandledCriticalExtension).Error", Method, 0}, + {"(UnknownAuthorityError).Error", Method, 0}, + {"CANotAuthorizedForExtKeyUsage", Const, 10}, + {"CANotAuthorizedForThisName", Const, 0}, + {"CertPool", Type, 0}, + {"Certificate", Type, 0}, + {"Certificate.AuthorityKeyId", Field, 0}, + {"Certificate.BasicConstraintsValid", Field, 0}, + {"Certificate.CRLDistributionPoints", Field, 2}, + {"Certificate.DNSNames", Field, 0}, + {"Certificate.EmailAddresses", Field, 0}, + {"Certificate.ExcludedDNSDomains", Field, 9}, + {"Certificate.ExcludedEmailAddresses", Field, 10}, + {"Certificate.ExcludedIPRanges", Field, 10}, + {"Certificate.ExcludedURIDomains", Field, 10}, + {"Certificate.ExtKeyUsage", Field, 0}, + {"Certificate.Extensions", Field, 2}, + {"Certificate.ExtraExtensions", Field, 2}, + {"Certificate.IPAddresses", Field, 1}, + {"Certificate.IsCA", Field, 0}, + {"Certificate.Issuer", Field, 0}, + {"Certificate.IssuingCertificateURL", Field, 2}, + {"Certificate.KeyUsage", Field, 0}, + {"Certificate.MaxPathLen", Field, 0}, + {"Certificate.MaxPathLenZero", Field, 4}, + {"Certificate.NotAfter", Field, 0}, + {"Certificate.NotBefore", Field, 0}, + {"Certificate.OCSPServer", Field, 2}, + {"Certificate.PermittedDNSDomains", Field, 0}, + {"Certificate.PermittedDNSDomainsCritical", Field, 0}, + {"Certificate.PermittedEmailAddresses", Field, 10}, + {"Certificate.PermittedIPRanges", Field, 10}, + {"Certificate.PermittedURIDomains", Field, 10}, + {"Certificate.Policies", Field, 22}, + {"Certificate.PolicyIdentifiers", Field, 0}, + {"Certificate.PublicKey", Field, 0}, + {"Certificate.PublicKeyAlgorithm", Field, 0}, + {"Certificate.Raw", Field, 0}, + {"Certificate.RawIssuer", Field, 0}, + {"Certificate.RawSubject", Field, 0}, + {"Certificate.RawSubjectPublicKeyInfo", Field, 0}, + {"Certificate.RawTBSCertificate", Field, 0}, + {"Certificate.SerialNumber", Field, 0}, + {"Certificate.Signature", Field, 0}, + {"Certificate.SignatureAlgorithm", Field, 0}, + {"Certificate.Subject", Field, 0}, + {"Certificate.SubjectKeyId", Field, 0}, + {"Certificate.URIs", Field, 10}, + {"Certificate.UnhandledCriticalExtensions", Field, 5}, + {"Certificate.UnknownExtKeyUsage", Field, 0}, + {"Certificate.Version", Field, 0}, + {"CertificateInvalidError", Type, 0}, + {"CertificateInvalidError.Cert", Field, 0}, + {"CertificateInvalidError.Detail", Field, 10}, + {"CertificateInvalidError.Reason", Field, 0}, + {"CertificateRequest", Type, 3}, + {"CertificateRequest.Attributes", Field, 3}, + {"CertificateRequest.DNSNames", Field, 3}, + {"CertificateRequest.EmailAddresses", Field, 3}, + {"CertificateRequest.Extensions", Field, 3}, + {"CertificateRequest.ExtraExtensions", Field, 3}, + {"CertificateRequest.IPAddresses", Field, 3}, + {"CertificateRequest.PublicKey", Field, 3}, + {"CertificateRequest.PublicKeyAlgorithm", Field, 3}, + {"CertificateRequest.Raw", Field, 3}, + {"CertificateRequest.RawSubject", Field, 3}, + {"CertificateRequest.RawSubjectPublicKeyInfo", Field, 3}, + {"CertificateRequest.RawTBSCertificateRequest", Field, 3}, + {"CertificateRequest.Signature", Field, 3}, + {"CertificateRequest.SignatureAlgorithm", Field, 3}, + {"CertificateRequest.Subject", Field, 3}, + {"CertificateRequest.URIs", Field, 10}, + {"CertificateRequest.Version", Field, 3}, + {"ConstraintViolationError", Type, 0}, + {"CreateCertificate", Func, 0}, + {"CreateCertificateRequest", Func, 3}, + {"CreateRevocationList", Func, 15}, + {"DSA", Const, 0}, + {"DSAWithSHA1", Const, 0}, + {"DSAWithSHA256", Const, 0}, + {"DecryptPEMBlock", Func, 1}, + {"ECDSA", Const, 1}, + {"ECDSAWithSHA1", Const, 1}, + {"ECDSAWithSHA256", Const, 1}, + {"ECDSAWithSHA384", Const, 1}, + {"ECDSAWithSHA512", Const, 1}, + {"Ed25519", Const, 13}, + {"EncryptPEMBlock", Func, 1}, + {"ErrUnsupportedAlgorithm", Var, 0}, + {"Expired", Const, 0}, + {"ExtKeyUsage", Type, 0}, + {"ExtKeyUsageAny", Const, 0}, + {"ExtKeyUsageClientAuth", Const, 0}, + {"ExtKeyUsageCodeSigning", Const, 0}, + {"ExtKeyUsageEmailProtection", Const, 0}, + {"ExtKeyUsageIPSECEndSystem", Const, 1}, + {"ExtKeyUsageIPSECTunnel", Const, 1}, + {"ExtKeyUsageIPSECUser", Const, 1}, + {"ExtKeyUsageMicrosoftCommercialCodeSigning", Const, 10}, + {"ExtKeyUsageMicrosoftKernelCodeSigning", Const, 10}, + {"ExtKeyUsageMicrosoftServerGatedCrypto", Const, 1}, + {"ExtKeyUsageNetscapeServerGatedCrypto", Const, 1}, + {"ExtKeyUsageOCSPSigning", Const, 0}, + {"ExtKeyUsageServerAuth", Const, 0}, + {"ExtKeyUsageTimeStamping", Const, 0}, + {"HostnameError", Type, 0}, + {"HostnameError.Certificate", Field, 0}, + {"HostnameError.Host", Field, 0}, + {"IncompatibleUsage", Const, 1}, + {"IncorrectPasswordError", Var, 1}, + {"InsecureAlgorithmError", Type, 6}, + {"InvalidReason", Type, 0}, + {"IsEncryptedPEMBlock", Func, 1}, + {"KeyUsage", Type, 0}, + {"KeyUsageCRLSign", Const, 0}, + {"KeyUsageCertSign", Const, 0}, + {"KeyUsageContentCommitment", Const, 0}, + {"KeyUsageDataEncipherment", Const, 0}, + {"KeyUsageDecipherOnly", Const, 0}, + {"KeyUsageDigitalSignature", Const, 0}, + {"KeyUsageEncipherOnly", Const, 0}, + {"KeyUsageKeyAgreement", Const, 0}, + {"KeyUsageKeyEncipherment", Const, 0}, + {"MD2WithRSA", Const, 0}, + {"MD5WithRSA", Const, 0}, + {"MarshalECPrivateKey", Func, 2}, + {"MarshalPKCS1PrivateKey", Func, 0}, + {"MarshalPKCS1PublicKey", Func, 10}, + {"MarshalPKCS8PrivateKey", Func, 10}, + {"MarshalPKIXPublicKey", Func, 0}, + {"NameConstraintsWithoutSANs", Const, 10}, + {"NameMismatch", Const, 8}, + {"NewCertPool", Func, 0}, + {"NotAuthorizedToSign", Const, 0}, + {"OID", Type, 22}, + {"OIDFromInts", Func, 22}, + {"PEMCipher", Type, 1}, + {"PEMCipher3DES", Const, 1}, + {"PEMCipherAES128", Const, 1}, + {"PEMCipherAES192", Const, 1}, + {"PEMCipherAES256", Const, 1}, + {"PEMCipherDES", Const, 1}, + {"ParseCRL", Func, 0}, + {"ParseCertificate", Func, 0}, + {"ParseCertificateRequest", Func, 3}, + {"ParseCertificates", Func, 0}, + {"ParseDERCRL", Func, 0}, + {"ParseECPrivateKey", Func, 1}, + {"ParsePKCS1PrivateKey", Func, 0}, + {"ParsePKCS1PublicKey", Func, 10}, + {"ParsePKCS8PrivateKey", Func, 0}, + {"ParsePKIXPublicKey", Func, 0}, + {"ParseRevocationList", Func, 19}, + {"PublicKeyAlgorithm", Type, 0}, + {"PureEd25519", Const, 13}, + {"RSA", Const, 0}, + {"RevocationList", Type, 15}, + {"RevocationList.AuthorityKeyId", Field, 19}, + {"RevocationList.Extensions", Field, 19}, + {"RevocationList.ExtraExtensions", Field, 15}, + {"RevocationList.Issuer", Field, 19}, + {"RevocationList.NextUpdate", Field, 15}, + {"RevocationList.Number", Field, 15}, + {"RevocationList.Raw", Field, 19}, + {"RevocationList.RawIssuer", Field, 19}, + {"RevocationList.RawTBSRevocationList", Field, 19}, + {"RevocationList.RevokedCertificateEntries", Field, 21}, + {"RevocationList.RevokedCertificates", Field, 15}, + {"RevocationList.Signature", Field, 19}, + {"RevocationList.SignatureAlgorithm", Field, 15}, + {"RevocationList.ThisUpdate", Field, 15}, + {"RevocationListEntry", Type, 21}, + {"RevocationListEntry.Extensions", Field, 21}, + {"RevocationListEntry.ExtraExtensions", Field, 21}, + {"RevocationListEntry.Raw", Field, 21}, + {"RevocationListEntry.ReasonCode", Field, 21}, + {"RevocationListEntry.RevocationTime", Field, 21}, + {"RevocationListEntry.SerialNumber", Field, 21}, + {"SHA1WithRSA", Const, 0}, + {"SHA256WithRSA", Const, 0}, + {"SHA256WithRSAPSS", Const, 8}, + {"SHA384WithRSA", Const, 0}, + {"SHA384WithRSAPSS", Const, 8}, + {"SHA512WithRSA", Const, 0}, + {"SHA512WithRSAPSS", Const, 8}, + {"SetFallbackRoots", Func, 20}, + {"SignatureAlgorithm", Type, 0}, + {"SystemCertPool", Func, 7}, + {"SystemRootsError", Type, 1}, + {"SystemRootsError.Err", Field, 7}, + {"TooManyConstraints", Const, 10}, + {"TooManyIntermediates", Const, 0}, + {"UnconstrainedName", Const, 10}, + {"UnhandledCriticalExtension", Type, 0}, + {"UnknownAuthorityError", Type, 0}, + {"UnknownAuthorityError.Cert", Field, 8}, + {"UnknownPublicKeyAlgorithm", Const, 0}, + {"UnknownSignatureAlgorithm", Const, 0}, + {"VerifyOptions", Type, 0}, + {"VerifyOptions.CurrentTime", Field, 0}, + {"VerifyOptions.DNSName", Field, 0}, + {"VerifyOptions.Intermediates", Field, 0}, + {"VerifyOptions.KeyUsages", Field, 1}, + {"VerifyOptions.MaxConstraintComparisions", Field, 10}, + {"VerifyOptions.Roots", Field, 0}, + }, + "crypto/x509/pkix": { + {"(*CertificateList).HasExpired", Method, 0}, + {"(*Name).FillFromRDNSequence", Method, 0}, + {"(Name).String", Method, 10}, + {"(Name).ToRDNSequence", Method, 0}, + {"(RDNSequence).String", Method, 10}, + {"AlgorithmIdentifier", Type, 0}, + {"AlgorithmIdentifier.Algorithm", Field, 0}, + {"AlgorithmIdentifier.Parameters", Field, 0}, + {"AttributeTypeAndValue", Type, 0}, + {"AttributeTypeAndValue.Type", Field, 0}, + {"AttributeTypeAndValue.Value", Field, 0}, + {"AttributeTypeAndValueSET", Type, 3}, + {"AttributeTypeAndValueSET.Type", Field, 3}, + {"AttributeTypeAndValueSET.Value", Field, 3}, + {"CertificateList", Type, 0}, + {"CertificateList.SignatureAlgorithm", Field, 0}, + {"CertificateList.SignatureValue", Field, 0}, + {"CertificateList.TBSCertList", Field, 0}, + {"Extension", Type, 0}, + {"Extension.Critical", Field, 0}, + {"Extension.Id", Field, 0}, + {"Extension.Value", Field, 0}, + {"Name", Type, 0}, + {"Name.CommonName", Field, 0}, + {"Name.Country", Field, 0}, + {"Name.ExtraNames", Field, 5}, + {"Name.Locality", Field, 0}, + {"Name.Names", Field, 0}, + {"Name.Organization", Field, 0}, + {"Name.OrganizationalUnit", Field, 0}, + {"Name.PostalCode", Field, 0}, + {"Name.Province", Field, 0}, + {"Name.SerialNumber", Field, 0}, + {"Name.StreetAddress", Field, 0}, + {"RDNSequence", Type, 0}, + {"RelativeDistinguishedNameSET", Type, 0}, + {"RevokedCertificate", Type, 0}, + {"RevokedCertificate.Extensions", Field, 0}, + {"RevokedCertificate.RevocationTime", Field, 0}, + {"RevokedCertificate.SerialNumber", Field, 0}, + {"TBSCertificateList", Type, 0}, + {"TBSCertificateList.Extensions", Field, 0}, + {"TBSCertificateList.Issuer", Field, 0}, + {"TBSCertificateList.NextUpdate", Field, 0}, + {"TBSCertificateList.Raw", Field, 0}, + {"TBSCertificateList.RevokedCertificates", Field, 0}, + {"TBSCertificateList.Signature", Field, 0}, + {"TBSCertificateList.ThisUpdate", Field, 0}, + {"TBSCertificateList.Version", Field, 0}, + }, + "database/sql": { + {"(*ColumnType).DatabaseTypeName", Method, 8}, + {"(*ColumnType).DecimalSize", Method, 8}, + {"(*ColumnType).Length", Method, 8}, + {"(*ColumnType).Name", Method, 8}, + {"(*ColumnType).Nullable", Method, 8}, + {"(*ColumnType).ScanType", Method, 8}, + {"(*Conn).BeginTx", Method, 9}, + {"(*Conn).Close", Method, 9}, + {"(*Conn).ExecContext", Method, 9}, + {"(*Conn).PingContext", Method, 9}, + {"(*Conn).PrepareContext", Method, 9}, + {"(*Conn).QueryContext", Method, 9}, + {"(*Conn).QueryRowContext", Method, 9}, + {"(*Conn).Raw", Method, 13}, + {"(*DB).Begin", Method, 0}, + {"(*DB).BeginTx", Method, 8}, + {"(*DB).Close", Method, 0}, + {"(*DB).Conn", Method, 9}, + {"(*DB).Driver", Method, 0}, + {"(*DB).Exec", Method, 0}, + {"(*DB).ExecContext", Method, 8}, + {"(*DB).Ping", Method, 1}, + {"(*DB).PingContext", Method, 8}, + {"(*DB).Prepare", Method, 0}, + {"(*DB).PrepareContext", Method, 8}, + {"(*DB).Query", Method, 0}, + {"(*DB).QueryContext", Method, 8}, + {"(*DB).QueryRow", Method, 0}, + {"(*DB).QueryRowContext", Method, 8}, + {"(*DB).SetConnMaxIdleTime", Method, 15}, + {"(*DB).SetConnMaxLifetime", Method, 6}, + {"(*DB).SetMaxIdleConns", Method, 1}, + {"(*DB).SetMaxOpenConns", Method, 2}, + {"(*DB).Stats", Method, 5}, + {"(*Null).Scan", Method, 22}, + {"(*NullBool).Scan", Method, 0}, + {"(*NullByte).Scan", Method, 17}, + {"(*NullFloat64).Scan", Method, 0}, + {"(*NullInt16).Scan", Method, 17}, + {"(*NullInt32).Scan", Method, 13}, + {"(*NullInt64).Scan", Method, 0}, + {"(*NullString).Scan", Method, 0}, + {"(*NullTime).Scan", Method, 13}, + {"(*Row).Err", Method, 15}, + {"(*Row).Scan", Method, 0}, + {"(*Rows).Close", Method, 0}, + {"(*Rows).ColumnTypes", Method, 8}, + {"(*Rows).Columns", Method, 0}, + {"(*Rows).Err", Method, 0}, + {"(*Rows).Next", Method, 0}, + {"(*Rows).NextResultSet", Method, 8}, + {"(*Rows).Scan", Method, 0}, + {"(*Stmt).Close", Method, 0}, + {"(*Stmt).Exec", Method, 0}, + {"(*Stmt).ExecContext", Method, 8}, + {"(*Stmt).Query", Method, 0}, + {"(*Stmt).QueryContext", Method, 8}, + {"(*Stmt).QueryRow", Method, 0}, + {"(*Stmt).QueryRowContext", Method, 8}, + {"(*Tx).Commit", Method, 0}, + {"(*Tx).Exec", Method, 0}, + {"(*Tx).ExecContext", Method, 8}, + {"(*Tx).Prepare", Method, 0}, + {"(*Tx).PrepareContext", Method, 8}, + {"(*Tx).Query", Method, 0}, + {"(*Tx).QueryContext", Method, 8}, + {"(*Tx).QueryRow", Method, 0}, + {"(*Tx).QueryRowContext", Method, 8}, + {"(*Tx).Rollback", Method, 0}, + {"(*Tx).Stmt", Method, 0}, + {"(*Tx).StmtContext", Method, 8}, + {"(IsolationLevel).String", Method, 11}, + {"(Null).Value", Method, 22}, + {"(NullBool).Value", Method, 0}, + {"(NullByte).Value", Method, 17}, + {"(NullFloat64).Value", Method, 0}, + {"(NullInt16).Value", Method, 17}, + {"(NullInt32).Value", Method, 13}, + {"(NullInt64).Value", Method, 0}, + {"(NullString).Value", Method, 0}, + {"(NullTime).Value", Method, 13}, + {"ColumnType", Type, 8}, + {"Conn", Type, 9}, + {"DB", Type, 0}, + {"DBStats", Type, 5}, + {"DBStats.Idle", Field, 11}, + {"DBStats.InUse", Field, 11}, + {"DBStats.MaxIdleClosed", Field, 11}, + {"DBStats.MaxIdleTimeClosed", Field, 15}, + {"DBStats.MaxLifetimeClosed", Field, 11}, + {"DBStats.MaxOpenConnections", Field, 11}, + {"DBStats.OpenConnections", Field, 5}, + {"DBStats.WaitCount", Field, 11}, + {"DBStats.WaitDuration", Field, 11}, + {"Drivers", Func, 4}, + {"ErrConnDone", Var, 9}, + {"ErrNoRows", Var, 0}, + {"ErrTxDone", Var, 0}, + {"IsolationLevel", Type, 8}, + {"LevelDefault", Const, 8}, + {"LevelLinearizable", Const, 8}, + {"LevelReadCommitted", Const, 8}, + {"LevelReadUncommitted", Const, 8}, + {"LevelRepeatableRead", Const, 8}, + {"LevelSerializable", Const, 8}, + {"LevelSnapshot", Const, 8}, + {"LevelWriteCommitted", Const, 8}, + {"Named", Func, 8}, + {"NamedArg", Type, 8}, + {"NamedArg.Name", Field, 8}, + {"NamedArg.Value", Field, 8}, + {"Null", Type, 22}, + {"Null.V", Field, 22}, + {"Null.Valid", Field, 22}, + {"NullBool", Type, 0}, + {"NullBool.Bool", Field, 0}, + {"NullBool.Valid", Field, 0}, + {"NullByte", Type, 17}, + {"NullByte.Byte", Field, 17}, + {"NullByte.Valid", Field, 17}, + {"NullFloat64", Type, 0}, + {"NullFloat64.Float64", Field, 0}, + {"NullFloat64.Valid", Field, 0}, + {"NullInt16", Type, 17}, + {"NullInt16.Int16", Field, 17}, + {"NullInt16.Valid", Field, 17}, + {"NullInt32", Type, 13}, + {"NullInt32.Int32", Field, 13}, + {"NullInt32.Valid", Field, 13}, + {"NullInt64", Type, 0}, + {"NullInt64.Int64", Field, 0}, + {"NullInt64.Valid", Field, 0}, + {"NullString", Type, 0}, + {"NullString.String", Field, 0}, + {"NullString.Valid", Field, 0}, + {"NullTime", Type, 13}, + {"NullTime.Time", Field, 13}, + {"NullTime.Valid", Field, 13}, + {"Open", Func, 0}, + {"OpenDB", Func, 10}, + {"Out", Type, 9}, + {"Out.Dest", Field, 9}, + {"Out.In", Field, 9}, + {"RawBytes", Type, 0}, + {"Register", Func, 0}, + {"Result", Type, 0}, + {"Row", Type, 0}, + {"Rows", Type, 0}, + {"Scanner", Type, 0}, + {"Stmt", Type, 0}, + {"Tx", Type, 0}, + {"TxOptions", Type, 8}, + {"TxOptions.Isolation", Field, 8}, + {"TxOptions.ReadOnly", Field, 8}, + }, + "database/sql/driver": { + {"(NotNull).ConvertValue", Method, 0}, + {"(Null).ConvertValue", Method, 0}, + {"(RowsAffected).LastInsertId", Method, 0}, + {"(RowsAffected).RowsAffected", Method, 0}, + {"Bool", Var, 0}, + {"ColumnConverter", Type, 0}, + {"Conn", Type, 0}, + {"ConnBeginTx", Type, 8}, + {"ConnPrepareContext", Type, 8}, + {"Connector", Type, 10}, + {"DefaultParameterConverter", Var, 0}, + {"Driver", Type, 0}, + {"DriverContext", Type, 10}, + {"ErrBadConn", Var, 0}, + {"ErrRemoveArgument", Var, 9}, + {"ErrSkip", Var, 0}, + {"Execer", Type, 0}, + {"ExecerContext", Type, 8}, + {"Int32", Var, 0}, + {"IsScanValue", Func, 0}, + {"IsValue", Func, 0}, + {"IsolationLevel", Type, 8}, + {"NamedValue", Type, 8}, + {"NamedValue.Name", Field, 8}, + {"NamedValue.Ordinal", Field, 8}, + {"NamedValue.Value", Field, 8}, + {"NamedValueChecker", Type, 9}, + {"NotNull", Type, 0}, + {"NotNull.Converter", Field, 0}, + {"Null", Type, 0}, + {"Null.Converter", Field, 0}, + {"Pinger", Type, 8}, + {"Queryer", Type, 1}, + {"QueryerContext", Type, 8}, + {"Result", Type, 0}, + {"ResultNoRows", Var, 0}, + {"Rows", Type, 0}, + {"RowsAffected", Type, 0}, + {"RowsColumnTypeDatabaseTypeName", Type, 8}, + {"RowsColumnTypeLength", Type, 8}, + {"RowsColumnTypeNullable", Type, 8}, + {"RowsColumnTypePrecisionScale", Type, 8}, + {"RowsColumnTypeScanType", Type, 8}, + {"RowsNextResultSet", Type, 8}, + {"SessionResetter", Type, 10}, + {"Stmt", Type, 0}, + {"StmtExecContext", Type, 8}, + {"StmtQueryContext", Type, 8}, + {"String", Var, 0}, + {"Tx", Type, 0}, + {"TxOptions", Type, 8}, + {"TxOptions.Isolation", Field, 8}, + {"TxOptions.ReadOnly", Field, 8}, + {"Validator", Type, 15}, + {"Value", Type, 0}, + {"ValueConverter", Type, 0}, + {"Valuer", Type, 0}, + }, + "debug/buildinfo": { + {"BuildInfo", Type, 18}, + {"Read", Func, 18}, + {"ReadFile", Func, 18}, + }, + "debug/dwarf": { + {"(*AddrType).Basic", Method, 0}, + {"(*AddrType).Common", Method, 0}, + {"(*AddrType).Size", Method, 0}, + {"(*AddrType).String", Method, 0}, + {"(*ArrayType).Common", Method, 0}, + {"(*ArrayType).Size", Method, 0}, + {"(*ArrayType).String", Method, 0}, + {"(*BasicType).Basic", Method, 0}, + {"(*BasicType).Common", Method, 0}, + {"(*BasicType).Size", Method, 0}, + {"(*BasicType).String", Method, 0}, + {"(*BoolType).Basic", Method, 0}, + {"(*BoolType).Common", Method, 0}, + {"(*BoolType).Size", Method, 0}, + {"(*BoolType).String", Method, 0}, + {"(*CharType).Basic", Method, 0}, + {"(*CharType).Common", Method, 0}, + {"(*CharType).Size", Method, 0}, + {"(*CharType).String", Method, 0}, + {"(*CommonType).Common", Method, 0}, + {"(*CommonType).Size", Method, 0}, + {"(*ComplexType).Basic", Method, 0}, + {"(*ComplexType).Common", Method, 0}, + {"(*ComplexType).Size", Method, 0}, + {"(*ComplexType).String", Method, 0}, + {"(*Data).AddSection", Method, 14}, + {"(*Data).AddTypes", Method, 3}, + {"(*Data).LineReader", Method, 5}, + {"(*Data).Ranges", Method, 7}, + {"(*Data).Reader", Method, 0}, + {"(*Data).Type", Method, 0}, + {"(*DotDotDotType).Common", Method, 0}, + {"(*DotDotDotType).Size", Method, 0}, + {"(*DotDotDotType).String", Method, 0}, + {"(*Entry).AttrField", Method, 5}, + {"(*Entry).Val", Method, 0}, + {"(*EnumType).Common", Method, 0}, + {"(*EnumType).Size", Method, 0}, + {"(*EnumType).String", Method, 0}, + {"(*FloatType).Basic", Method, 0}, + {"(*FloatType).Common", Method, 0}, + {"(*FloatType).Size", Method, 0}, + {"(*FloatType).String", Method, 0}, + {"(*FuncType).Common", Method, 0}, + {"(*FuncType).Size", Method, 0}, + {"(*FuncType).String", Method, 0}, + {"(*IntType).Basic", Method, 0}, + {"(*IntType).Common", Method, 0}, + {"(*IntType).Size", Method, 0}, + {"(*IntType).String", Method, 0}, + {"(*LineReader).Files", Method, 14}, + {"(*LineReader).Next", Method, 5}, + {"(*LineReader).Reset", Method, 5}, + {"(*LineReader).Seek", Method, 5}, + {"(*LineReader).SeekPC", Method, 5}, + {"(*LineReader).Tell", Method, 5}, + {"(*PtrType).Common", Method, 0}, + {"(*PtrType).Size", Method, 0}, + {"(*PtrType).String", Method, 0}, + {"(*QualType).Common", Method, 0}, + {"(*QualType).Size", Method, 0}, + {"(*QualType).String", Method, 0}, + {"(*Reader).AddressSize", Method, 5}, + {"(*Reader).ByteOrder", Method, 14}, + {"(*Reader).Next", Method, 0}, + {"(*Reader).Seek", Method, 0}, + {"(*Reader).SeekPC", Method, 7}, + {"(*Reader).SkipChildren", Method, 0}, + {"(*StructType).Common", Method, 0}, + {"(*StructType).Defn", Method, 0}, + {"(*StructType).Size", Method, 0}, + {"(*StructType).String", Method, 0}, + {"(*TypedefType).Common", Method, 0}, + {"(*TypedefType).Size", Method, 0}, + {"(*TypedefType).String", Method, 0}, + {"(*UcharType).Basic", Method, 0}, + {"(*UcharType).Common", Method, 0}, + {"(*UcharType).Size", Method, 0}, + {"(*UcharType).String", Method, 0}, + {"(*UintType).Basic", Method, 0}, + {"(*UintType).Common", Method, 0}, + {"(*UintType).Size", Method, 0}, + {"(*UintType).String", Method, 0}, + {"(*UnspecifiedType).Basic", Method, 4}, + {"(*UnspecifiedType).Common", Method, 4}, + {"(*UnspecifiedType).Size", Method, 4}, + {"(*UnspecifiedType).String", Method, 4}, + {"(*UnsupportedType).Common", Method, 13}, + {"(*UnsupportedType).Size", Method, 13}, + {"(*UnsupportedType).String", Method, 13}, + {"(*VoidType).Common", Method, 0}, + {"(*VoidType).Size", Method, 0}, + {"(*VoidType).String", Method, 0}, + {"(Attr).GoString", Method, 0}, + {"(Attr).String", Method, 0}, + {"(Class).GoString", Method, 5}, + {"(Class).String", Method, 5}, + {"(DecodeError).Error", Method, 0}, + {"(Tag).GoString", Method, 0}, + {"(Tag).String", Method, 0}, + {"AddrType", Type, 0}, + {"AddrType.BasicType", Field, 0}, + {"ArrayType", Type, 0}, + {"ArrayType.CommonType", Field, 0}, + {"ArrayType.Count", Field, 0}, + {"ArrayType.StrideBitSize", Field, 0}, + {"ArrayType.Type", Field, 0}, + {"Attr", Type, 0}, + {"AttrAbstractOrigin", Const, 0}, + {"AttrAccessibility", Const, 0}, + {"AttrAddrBase", Const, 14}, + {"AttrAddrClass", Const, 0}, + {"AttrAlignment", Const, 14}, + {"AttrAllocated", Const, 0}, + {"AttrArtificial", Const, 0}, + {"AttrAssociated", Const, 0}, + {"AttrBaseTypes", Const, 0}, + {"AttrBinaryScale", Const, 14}, + {"AttrBitOffset", Const, 0}, + {"AttrBitSize", Const, 0}, + {"AttrByteSize", Const, 0}, + {"AttrCallAllCalls", Const, 14}, + {"AttrCallAllSourceCalls", Const, 14}, + {"AttrCallAllTailCalls", Const, 14}, + {"AttrCallColumn", Const, 0}, + {"AttrCallDataLocation", Const, 14}, + {"AttrCallDataValue", Const, 14}, + {"AttrCallFile", Const, 0}, + {"AttrCallLine", Const, 0}, + {"AttrCallOrigin", Const, 14}, + {"AttrCallPC", Const, 14}, + {"AttrCallParameter", Const, 14}, + {"AttrCallReturnPC", Const, 14}, + {"AttrCallTailCall", Const, 14}, + {"AttrCallTarget", Const, 14}, + {"AttrCallTargetClobbered", Const, 14}, + {"AttrCallValue", Const, 14}, + {"AttrCalling", Const, 0}, + {"AttrCommonRef", Const, 0}, + {"AttrCompDir", Const, 0}, + {"AttrConstExpr", Const, 14}, + {"AttrConstValue", Const, 0}, + {"AttrContainingType", Const, 0}, + {"AttrCount", Const, 0}, + {"AttrDataBitOffset", Const, 14}, + {"AttrDataLocation", Const, 0}, + {"AttrDataMemberLoc", Const, 0}, + {"AttrDecimalScale", Const, 14}, + {"AttrDecimalSign", Const, 14}, + {"AttrDeclColumn", Const, 0}, + {"AttrDeclFile", Const, 0}, + {"AttrDeclLine", Const, 0}, + {"AttrDeclaration", Const, 0}, + {"AttrDefaultValue", Const, 0}, + {"AttrDefaulted", Const, 14}, + {"AttrDeleted", Const, 14}, + {"AttrDescription", Const, 0}, + {"AttrDigitCount", Const, 14}, + {"AttrDiscr", Const, 0}, + {"AttrDiscrList", Const, 0}, + {"AttrDiscrValue", Const, 0}, + {"AttrDwoName", Const, 14}, + {"AttrElemental", Const, 14}, + {"AttrEncoding", Const, 0}, + {"AttrEndianity", Const, 14}, + {"AttrEntrypc", Const, 0}, + {"AttrEnumClass", Const, 14}, + {"AttrExplicit", Const, 14}, + {"AttrExportSymbols", Const, 14}, + {"AttrExtension", Const, 0}, + {"AttrExternal", Const, 0}, + {"AttrFrameBase", Const, 0}, + {"AttrFriend", Const, 0}, + {"AttrHighpc", Const, 0}, + {"AttrIdentifierCase", Const, 0}, + {"AttrImport", Const, 0}, + {"AttrInline", Const, 0}, + {"AttrIsOptional", Const, 0}, + {"AttrLanguage", Const, 0}, + {"AttrLinkageName", Const, 14}, + {"AttrLocation", Const, 0}, + {"AttrLoclistsBase", Const, 14}, + {"AttrLowerBound", Const, 0}, + {"AttrLowpc", Const, 0}, + {"AttrMacroInfo", Const, 0}, + {"AttrMacros", Const, 14}, + {"AttrMainSubprogram", Const, 14}, + {"AttrMutable", Const, 14}, + {"AttrName", Const, 0}, + {"AttrNamelistItem", Const, 0}, + {"AttrNoreturn", Const, 14}, + {"AttrObjectPointer", Const, 14}, + {"AttrOrdering", Const, 0}, + {"AttrPictureString", Const, 14}, + {"AttrPriority", Const, 0}, + {"AttrProducer", Const, 0}, + {"AttrPrototyped", Const, 0}, + {"AttrPure", Const, 14}, + {"AttrRanges", Const, 0}, + {"AttrRank", Const, 14}, + {"AttrRecursive", Const, 14}, + {"AttrReference", Const, 14}, + {"AttrReturnAddr", Const, 0}, + {"AttrRnglistsBase", Const, 14}, + {"AttrRvalueReference", Const, 14}, + {"AttrSegment", Const, 0}, + {"AttrSibling", Const, 0}, + {"AttrSignature", Const, 14}, + {"AttrSmall", Const, 14}, + {"AttrSpecification", Const, 0}, + {"AttrStartScope", Const, 0}, + {"AttrStaticLink", Const, 0}, + {"AttrStmtList", Const, 0}, + {"AttrStrOffsetsBase", Const, 14}, + {"AttrStride", Const, 0}, + {"AttrStrideSize", Const, 0}, + {"AttrStringLength", Const, 0}, + {"AttrStringLengthBitSize", Const, 14}, + {"AttrStringLengthByteSize", Const, 14}, + {"AttrThreadsScaled", Const, 14}, + {"AttrTrampoline", Const, 0}, + {"AttrType", Const, 0}, + {"AttrUpperBound", Const, 0}, + {"AttrUseLocation", Const, 0}, + {"AttrUseUTF8", Const, 0}, + {"AttrVarParam", Const, 0}, + {"AttrVirtuality", Const, 0}, + {"AttrVisibility", Const, 0}, + {"AttrVtableElemLoc", Const, 0}, + {"BasicType", Type, 0}, + {"BasicType.BitOffset", Field, 0}, + {"BasicType.BitSize", Field, 0}, + {"BasicType.CommonType", Field, 0}, + {"BasicType.DataBitOffset", Field, 18}, + {"BoolType", Type, 0}, + {"BoolType.BasicType", Field, 0}, + {"CharType", Type, 0}, + {"CharType.BasicType", Field, 0}, + {"Class", Type, 5}, + {"ClassAddrPtr", Const, 14}, + {"ClassAddress", Const, 5}, + {"ClassBlock", Const, 5}, + {"ClassConstant", Const, 5}, + {"ClassExprLoc", Const, 5}, + {"ClassFlag", Const, 5}, + {"ClassLinePtr", Const, 5}, + {"ClassLocList", Const, 14}, + {"ClassLocListPtr", Const, 5}, + {"ClassMacPtr", Const, 5}, + {"ClassRangeListPtr", Const, 5}, + {"ClassReference", Const, 5}, + {"ClassReferenceAlt", Const, 5}, + {"ClassReferenceSig", Const, 5}, + {"ClassRngList", Const, 14}, + {"ClassRngListsPtr", Const, 14}, + {"ClassStrOffsetsPtr", Const, 14}, + {"ClassString", Const, 5}, + {"ClassStringAlt", Const, 5}, + {"ClassUnknown", Const, 6}, + {"CommonType", Type, 0}, + {"CommonType.ByteSize", Field, 0}, + {"CommonType.Name", Field, 0}, + {"ComplexType", Type, 0}, + {"ComplexType.BasicType", Field, 0}, + {"Data", Type, 0}, + {"DecodeError", Type, 0}, + {"DecodeError.Err", Field, 0}, + {"DecodeError.Name", Field, 0}, + {"DecodeError.Offset", Field, 0}, + {"DotDotDotType", Type, 0}, + {"DotDotDotType.CommonType", Field, 0}, + {"Entry", Type, 0}, + {"Entry.Children", Field, 0}, + {"Entry.Field", Field, 0}, + {"Entry.Offset", Field, 0}, + {"Entry.Tag", Field, 0}, + {"EnumType", Type, 0}, + {"EnumType.CommonType", Field, 0}, + {"EnumType.EnumName", Field, 0}, + {"EnumType.Val", Field, 0}, + {"EnumValue", Type, 0}, + {"EnumValue.Name", Field, 0}, + {"EnumValue.Val", Field, 0}, + {"ErrUnknownPC", Var, 5}, + {"Field", Type, 0}, + {"Field.Attr", Field, 0}, + {"Field.Class", Field, 5}, + {"Field.Val", Field, 0}, + {"FloatType", Type, 0}, + {"FloatType.BasicType", Field, 0}, + {"FuncType", Type, 0}, + {"FuncType.CommonType", Field, 0}, + {"FuncType.ParamType", Field, 0}, + {"FuncType.ReturnType", Field, 0}, + {"IntType", Type, 0}, + {"IntType.BasicType", Field, 0}, + {"LineEntry", Type, 5}, + {"LineEntry.Address", Field, 5}, + {"LineEntry.BasicBlock", Field, 5}, + {"LineEntry.Column", Field, 5}, + {"LineEntry.Discriminator", Field, 5}, + {"LineEntry.EndSequence", Field, 5}, + {"LineEntry.EpilogueBegin", Field, 5}, + {"LineEntry.File", Field, 5}, + {"LineEntry.ISA", Field, 5}, + {"LineEntry.IsStmt", Field, 5}, + {"LineEntry.Line", Field, 5}, + {"LineEntry.OpIndex", Field, 5}, + {"LineEntry.PrologueEnd", Field, 5}, + {"LineFile", Type, 5}, + {"LineFile.Length", Field, 5}, + {"LineFile.Mtime", Field, 5}, + {"LineFile.Name", Field, 5}, + {"LineReader", Type, 5}, + {"LineReaderPos", Type, 5}, + {"New", Func, 0}, + {"Offset", Type, 0}, + {"PtrType", Type, 0}, + {"PtrType.CommonType", Field, 0}, + {"PtrType.Type", Field, 0}, + {"QualType", Type, 0}, + {"QualType.CommonType", Field, 0}, + {"QualType.Qual", Field, 0}, + {"QualType.Type", Field, 0}, + {"Reader", Type, 0}, + {"StructField", Type, 0}, + {"StructField.BitOffset", Field, 0}, + {"StructField.BitSize", Field, 0}, + {"StructField.ByteOffset", Field, 0}, + {"StructField.ByteSize", Field, 0}, + {"StructField.DataBitOffset", Field, 18}, + {"StructField.Name", Field, 0}, + {"StructField.Type", Field, 0}, + {"StructType", Type, 0}, + {"StructType.CommonType", Field, 0}, + {"StructType.Field", Field, 0}, + {"StructType.Incomplete", Field, 0}, + {"StructType.Kind", Field, 0}, + {"StructType.StructName", Field, 0}, + {"Tag", Type, 0}, + {"TagAccessDeclaration", Const, 0}, + {"TagArrayType", Const, 0}, + {"TagAtomicType", Const, 14}, + {"TagBaseType", Const, 0}, + {"TagCallSite", Const, 14}, + {"TagCallSiteParameter", Const, 14}, + {"TagCatchDwarfBlock", Const, 0}, + {"TagClassType", Const, 0}, + {"TagCoarrayType", Const, 14}, + {"TagCommonDwarfBlock", Const, 0}, + {"TagCommonInclusion", Const, 0}, + {"TagCompileUnit", Const, 0}, + {"TagCondition", Const, 3}, + {"TagConstType", Const, 0}, + {"TagConstant", Const, 0}, + {"TagDwarfProcedure", Const, 0}, + {"TagDynamicType", Const, 14}, + {"TagEntryPoint", Const, 0}, + {"TagEnumerationType", Const, 0}, + {"TagEnumerator", Const, 0}, + {"TagFileType", Const, 0}, + {"TagFormalParameter", Const, 0}, + {"TagFriend", Const, 0}, + {"TagGenericSubrange", Const, 14}, + {"TagImmutableType", Const, 14}, + {"TagImportedDeclaration", Const, 0}, + {"TagImportedModule", Const, 0}, + {"TagImportedUnit", Const, 0}, + {"TagInheritance", Const, 0}, + {"TagInlinedSubroutine", Const, 0}, + {"TagInterfaceType", Const, 0}, + {"TagLabel", Const, 0}, + {"TagLexDwarfBlock", Const, 0}, + {"TagMember", Const, 0}, + {"TagModule", Const, 0}, + {"TagMutableType", Const, 0}, + {"TagNamelist", Const, 0}, + {"TagNamelistItem", Const, 0}, + {"TagNamespace", Const, 0}, + {"TagPackedType", Const, 0}, + {"TagPartialUnit", Const, 0}, + {"TagPointerType", Const, 0}, + {"TagPtrToMemberType", Const, 0}, + {"TagReferenceType", Const, 0}, + {"TagRestrictType", Const, 0}, + {"TagRvalueReferenceType", Const, 3}, + {"TagSetType", Const, 0}, + {"TagSharedType", Const, 3}, + {"TagSkeletonUnit", Const, 14}, + {"TagStringType", Const, 0}, + {"TagStructType", Const, 0}, + {"TagSubprogram", Const, 0}, + {"TagSubrangeType", Const, 0}, + {"TagSubroutineType", Const, 0}, + {"TagTemplateAlias", Const, 3}, + {"TagTemplateTypeParameter", Const, 0}, + {"TagTemplateValueParameter", Const, 0}, + {"TagThrownType", Const, 0}, + {"TagTryDwarfBlock", Const, 0}, + {"TagTypeUnit", Const, 3}, + {"TagTypedef", Const, 0}, + {"TagUnionType", Const, 0}, + {"TagUnspecifiedParameters", Const, 0}, + {"TagUnspecifiedType", Const, 0}, + {"TagVariable", Const, 0}, + {"TagVariant", Const, 0}, + {"TagVariantPart", Const, 0}, + {"TagVolatileType", Const, 0}, + {"TagWithStmt", Const, 0}, + {"Type", Type, 0}, + {"TypedefType", Type, 0}, + {"TypedefType.CommonType", Field, 0}, + {"TypedefType.Type", Field, 0}, + {"UcharType", Type, 0}, + {"UcharType.BasicType", Field, 0}, + {"UintType", Type, 0}, + {"UintType.BasicType", Field, 0}, + {"UnspecifiedType", Type, 4}, + {"UnspecifiedType.BasicType", Field, 4}, + {"UnsupportedType", Type, 13}, + {"UnsupportedType.CommonType", Field, 13}, + {"UnsupportedType.Tag", Field, 13}, + {"VoidType", Type, 0}, + {"VoidType.CommonType", Field, 0}, + }, + "debug/elf": { + {"(*File).Close", Method, 0}, + {"(*File).DWARF", Method, 0}, + {"(*File).DynString", Method, 1}, + {"(*File).DynValue", Method, 21}, + {"(*File).DynamicSymbols", Method, 4}, + {"(*File).ImportedLibraries", Method, 0}, + {"(*File).ImportedSymbols", Method, 0}, + {"(*File).Section", Method, 0}, + {"(*File).SectionByType", Method, 0}, + {"(*File).Symbols", Method, 0}, + {"(*FormatError).Error", Method, 0}, + {"(*Prog).Open", Method, 0}, + {"(*Section).Data", Method, 0}, + {"(*Section).Open", Method, 0}, + {"(Class).GoString", Method, 0}, + {"(Class).String", Method, 0}, + {"(CompressionType).GoString", Method, 6}, + {"(CompressionType).String", Method, 6}, + {"(Data).GoString", Method, 0}, + {"(Data).String", Method, 0}, + {"(DynFlag).GoString", Method, 0}, + {"(DynFlag).String", Method, 0}, + {"(DynFlag1).GoString", Method, 21}, + {"(DynFlag1).String", Method, 21}, + {"(DynTag).GoString", Method, 0}, + {"(DynTag).String", Method, 0}, + {"(Machine).GoString", Method, 0}, + {"(Machine).String", Method, 0}, + {"(NType).GoString", Method, 0}, + {"(NType).String", Method, 0}, + {"(OSABI).GoString", Method, 0}, + {"(OSABI).String", Method, 0}, + {"(Prog).ReadAt", Method, 0}, + {"(ProgFlag).GoString", Method, 0}, + {"(ProgFlag).String", Method, 0}, + {"(ProgType).GoString", Method, 0}, + {"(ProgType).String", Method, 0}, + {"(R_386).GoString", Method, 0}, + {"(R_386).String", Method, 0}, + {"(R_390).GoString", Method, 7}, + {"(R_390).String", Method, 7}, + {"(R_AARCH64).GoString", Method, 4}, + {"(R_AARCH64).String", Method, 4}, + {"(R_ALPHA).GoString", Method, 0}, + {"(R_ALPHA).String", Method, 0}, + {"(R_ARM).GoString", Method, 0}, + {"(R_ARM).String", Method, 0}, + {"(R_LARCH).GoString", Method, 19}, + {"(R_LARCH).String", Method, 19}, + {"(R_MIPS).GoString", Method, 6}, + {"(R_MIPS).String", Method, 6}, + {"(R_PPC).GoString", Method, 0}, + {"(R_PPC).String", Method, 0}, + {"(R_PPC64).GoString", Method, 5}, + {"(R_PPC64).String", Method, 5}, + {"(R_RISCV).GoString", Method, 11}, + {"(R_RISCV).String", Method, 11}, + {"(R_SPARC).GoString", Method, 0}, + {"(R_SPARC).String", Method, 0}, + {"(R_X86_64).GoString", Method, 0}, + {"(R_X86_64).String", Method, 0}, + {"(Section).ReadAt", Method, 0}, + {"(SectionFlag).GoString", Method, 0}, + {"(SectionFlag).String", Method, 0}, + {"(SectionIndex).GoString", Method, 0}, + {"(SectionIndex).String", Method, 0}, + {"(SectionType).GoString", Method, 0}, + {"(SectionType).String", Method, 0}, + {"(SymBind).GoString", Method, 0}, + {"(SymBind).String", Method, 0}, + {"(SymType).GoString", Method, 0}, + {"(SymType).String", Method, 0}, + {"(SymVis).GoString", Method, 0}, + {"(SymVis).String", Method, 0}, + {"(Type).GoString", Method, 0}, + {"(Type).String", Method, 0}, + {"(Version).GoString", Method, 0}, + {"(Version).String", Method, 0}, + {"ARM_MAGIC_TRAMP_NUMBER", Const, 0}, + {"COMPRESS_HIOS", Const, 6}, + {"COMPRESS_HIPROC", Const, 6}, + {"COMPRESS_LOOS", Const, 6}, + {"COMPRESS_LOPROC", Const, 6}, + {"COMPRESS_ZLIB", Const, 6}, + {"COMPRESS_ZSTD", Const, 21}, + {"Chdr32", Type, 6}, + {"Chdr32.Addralign", Field, 6}, + {"Chdr32.Size", Field, 6}, + {"Chdr32.Type", Field, 6}, + {"Chdr64", Type, 6}, + {"Chdr64.Addralign", Field, 6}, + {"Chdr64.Size", Field, 6}, + {"Chdr64.Type", Field, 6}, + {"Class", Type, 0}, + {"CompressionType", Type, 6}, + {"DF_1_CONFALT", Const, 21}, + {"DF_1_DIRECT", Const, 21}, + {"DF_1_DISPRELDNE", Const, 21}, + {"DF_1_DISPRELPND", Const, 21}, + {"DF_1_EDITED", Const, 21}, + {"DF_1_ENDFILTEE", Const, 21}, + {"DF_1_GLOBAL", Const, 21}, + {"DF_1_GLOBAUDIT", Const, 21}, + {"DF_1_GROUP", Const, 21}, + {"DF_1_IGNMULDEF", Const, 21}, + {"DF_1_INITFIRST", Const, 21}, + {"DF_1_INTERPOSE", Const, 21}, + {"DF_1_KMOD", Const, 21}, + {"DF_1_LOADFLTR", Const, 21}, + {"DF_1_NOCOMMON", Const, 21}, + {"DF_1_NODEFLIB", Const, 21}, + {"DF_1_NODELETE", Const, 21}, + {"DF_1_NODIRECT", Const, 21}, + {"DF_1_NODUMP", Const, 21}, + {"DF_1_NOHDR", Const, 21}, + {"DF_1_NOKSYMS", Const, 21}, + {"DF_1_NOOPEN", Const, 21}, + {"DF_1_NORELOC", Const, 21}, + {"DF_1_NOW", Const, 21}, + {"DF_1_ORIGIN", Const, 21}, + {"DF_1_PIE", Const, 21}, + {"DF_1_SINGLETON", Const, 21}, + {"DF_1_STUB", Const, 21}, + {"DF_1_SYMINTPOSE", Const, 21}, + {"DF_1_TRANS", Const, 21}, + {"DF_1_WEAKFILTER", Const, 21}, + {"DF_BIND_NOW", Const, 0}, + {"DF_ORIGIN", Const, 0}, + {"DF_STATIC_TLS", Const, 0}, + {"DF_SYMBOLIC", Const, 0}, + {"DF_TEXTREL", Const, 0}, + {"DT_ADDRRNGHI", Const, 16}, + {"DT_ADDRRNGLO", Const, 16}, + {"DT_AUDIT", Const, 16}, + {"DT_AUXILIARY", Const, 16}, + {"DT_BIND_NOW", Const, 0}, + {"DT_CHECKSUM", Const, 16}, + {"DT_CONFIG", Const, 16}, + {"DT_DEBUG", Const, 0}, + {"DT_DEPAUDIT", Const, 16}, + {"DT_ENCODING", Const, 0}, + {"DT_FEATURE", Const, 16}, + {"DT_FILTER", Const, 16}, + {"DT_FINI", Const, 0}, + {"DT_FINI_ARRAY", Const, 0}, + {"DT_FINI_ARRAYSZ", Const, 0}, + {"DT_FLAGS", Const, 0}, + {"DT_FLAGS_1", Const, 16}, + {"DT_GNU_CONFLICT", Const, 16}, + {"DT_GNU_CONFLICTSZ", Const, 16}, + {"DT_GNU_HASH", Const, 16}, + {"DT_GNU_LIBLIST", Const, 16}, + {"DT_GNU_LIBLISTSZ", Const, 16}, + {"DT_GNU_PRELINKED", Const, 16}, + {"DT_HASH", Const, 0}, + {"DT_HIOS", Const, 0}, + {"DT_HIPROC", Const, 0}, + {"DT_INIT", Const, 0}, + {"DT_INIT_ARRAY", Const, 0}, + {"DT_INIT_ARRAYSZ", Const, 0}, + {"DT_JMPREL", Const, 0}, + {"DT_LOOS", Const, 0}, + {"DT_LOPROC", Const, 0}, + {"DT_MIPS_AUX_DYNAMIC", Const, 16}, + {"DT_MIPS_BASE_ADDRESS", Const, 16}, + {"DT_MIPS_COMPACT_SIZE", Const, 16}, + {"DT_MIPS_CONFLICT", Const, 16}, + {"DT_MIPS_CONFLICTNO", Const, 16}, + {"DT_MIPS_CXX_FLAGS", Const, 16}, + {"DT_MIPS_DELTA_CLASS", Const, 16}, + {"DT_MIPS_DELTA_CLASSSYM", Const, 16}, + {"DT_MIPS_DELTA_CLASSSYM_NO", Const, 16}, + {"DT_MIPS_DELTA_CLASS_NO", Const, 16}, + {"DT_MIPS_DELTA_INSTANCE", Const, 16}, + {"DT_MIPS_DELTA_INSTANCE_NO", Const, 16}, + {"DT_MIPS_DELTA_RELOC", Const, 16}, + {"DT_MIPS_DELTA_RELOC_NO", Const, 16}, + {"DT_MIPS_DELTA_SYM", Const, 16}, + {"DT_MIPS_DELTA_SYM_NO", Const, 16}, + {"DT_MIPS_DYNSTR_ALIGN", Const, 16}, + {"DT_MIPS_FLAGS", Const, 16}, + {"DT_MIPS_GOTSYM", Const, 16}, + {"DT_MIPS_GP_VALUE", Const, 16}, + {"DT_MIPS_HIDDEN_GOTIDX", Const, 16}, + {"DT_MIPS_HIPAGENO", Const, 16}, + {"DT_MIPS_ICHECKSUM", Const, 16}, + {"DT_MIPS_INTERFACE", Const, 16}, + {"DT_MIPS_INTERFACE_SIZE", Const, 16}, + {"DT_MIPS_IVERSION", Const, 16}, + {"DT_MIPS_LIBLIST", Const, 16}, + {"DT_MIPS_LIBLISTNO", Const, 16}, + {"DT_MIPS_LOCALPAGE_GOTIDX", Const, 16}, + {"DT_MIPS_LOCAL_GOTIDX", Const, 16}, + {"DT_MIPS_LOCAL_GOTNO", Const, 16}, + {"DT_MIPS_MSYM", Const, 16}, + {"DT_MIPS_OPTIONS", Const, 16}, + {"DT_MIPS_PERF_SUFFIX", Const, 16}, + {"DT_MIPS_PIXIE_INIT", Const, 16}, + {"DT_MIPS_PLTGOT", Const, 16}, + {"DT_MIPS_PROTECTED_GOTIDX", Const, 16}, + {"DT_MIPS_RLD_MAP", Const, 16}, + {"DT_MIPS_RLD_MAP_REL", Const, 16}, + {"DT_MIPS_RLD_TEXT_RESOLVE_ADDR", Const, 16}, + {"DT_MIPS_RLD_VERSION", Const, 16}, + {"DT_MIPS_RWPLT", Const, 16}, + {"DT_MIPS_SYMBOL_LIB", Const, 16}, + {"DT_MIPS_SYMTABNO", Const, 16}, + {"DT_MIPS_TIME_STAMP", Const, 16}, + {"DT_MIPS_UNREFEXTNO", Const, 16}, + {"DT_MOVEENT", Const, 16}, + {"DT_MOVESZ", Const, 16}, + {"DT_MOVETAB", Const, 16}, + {"DT_NEEDED", Const, 0}, + {"DT_NULL", Const, 0}, + {"DT_PLTGOT", Const, 0}, + {"DT_PLTPAD", Const, 16}, + {"DT_PLTPADSZ", Const, 16}, + {"DT_PLTREL", Const, 0}, + {"DT_PLTRELSZ", Const, 0}, + {"DT_POSFLAG_1", Const, 16}, + {"DT_PPC64_GLINK", Const, 16}, + {"DT_PPC64_OPD", Const, 16}, + {"DT_PPC64_OPDSZ", Const, 16}, + {"DT_PPC64_OPT", Const, 16}, + {"DT_PPC_GOT", Const, 16}, + {"DT_PPC_OPT", Const, 16}, + {"DT_PREINIT_ARRAY", Const, 0}, + {"DT_PREINIT_ARRAYSZ", Const, 0}, + {"DT_REL", Const, 0}, + {"DT_RELA", Const, 0}, + {"DT_RELACOUNT", Const, 16}, + {"DT_RELAENT", Const, 0}, + {"DT_RELASZ", Const, 0}, + {"DT_RELCOUNT", Const, 16}, + {"DT_RELENT", Const, 0}, + {"DT_RELSZ", Const, 0}, + {"DT_RPATH", Const, 0}, + {"DT_RUNPATH", Const, 0}, + {"DT_SONAME", Const, 0}, + {"DT_SPARC_REGISTER", Const, 16}, + {"DT_STRSZ", Const, 0}, + {"DT_STRTAB", Const, 0}, + {"DT_SYMBOLIC", Const, 0}, + {"DT_SYMENT", Const, 0}, + {"DT_SYMINENT", Const, 16}, + {"DT_SYMINFO", Const, 16}, + {"DT_SYMINSZ", Const, 16}, + {"DT_SYMTAB", Const, 0}, + {"DT_SYMTAB_SHNDX", Const, 16}, + {"DT_TEXTREL", Const, 0}, + {"DT_TLSDESC_GOT", Const, 16}, + {"DT_TLSDESC_PLT", Const, 16}, + {"DT_USED", Const, 16}, + {"DT_VALRNGHI", Const, 16}, + {"DT_VALRNGLO", Const, 16}, + {"DT_VERDEF", Const, 16}, + {"DT_VERDEFNUM", Const, 16}, + {"DT_VERNEED", Const, 0}, + {"DT_VERNEEDNUM", Const, 0}, + {"DT_VERSYM", Const, 0}, + {"Data", Type, 0}, + {"Dyn32", Type, 0}, + {"Dyn32.Tag", Field, 0}, + {"Dyn32.Val", Field, 0}, + {"Dyn64", Type, 0}, + {"Dyn64.Tag", Field, 0}, + {"Dyn64.Val", Field, 0}, + {"DynFlag", Type, 0}, + {"DynFlag1", Type, 21}, + {"DynTag", Type, 0}, + {"EI_ABIVERSION", Const, 0}, + {"EI_CLASS", Const, 0}, + {"EI_DATA", Const, 0}, + {"EI_NIDENT", Const, 0}, + {"EI_OSABI", Const, 0}, + {"EI_PAD", Const, 0}, + {"EI_VERSION", Const, 0}, + {"ELFCLASS32", Const, 0}, + {"ELFCLASS64", Const, 0}, + {"ELFCLASSNONE", Const, 0}, + {"ELFDATA2LSB", Const, 0}, + {"ELFDATA2MSB", Const, 0}, + {"ELFDATANONE", Const, 0}, + {"ELFMAG", Const, 0}, + {"ELFOSABI_86OPEN", Const, 0}, + {"ELFOSABI_AIX", Const, 0}, + {"ELFOSABI_ARM", Const, 0}, + {"ELFOSABI_AROS", Const, 11}, + {"ELFOSABI_CLOUDABI", Const, 11}, + {"ELFOSABI_FENIXOS", Const, 11}, + {"ELFOSABI_FREEBSD", Const, 0}, + {"ELFOSABI_HPUX", Const, 0}, + {"ELFOSABI_HURD", Const, 0}, + {"ELFOSABI_IRIX", Const, 0}, + {"ELFOSABI_LINUX", Const, 0}, + {"ELFOSABI_MODESTO", Const, 0}, + {"ELFOSABI_NETBSD", Const, 0}, + {"ELFOSABI_NONE", Const, 0}, + {"ELFOSABI_NSK", Const, 0}, + {"ELFOSABI_OPENBSD", Const, 0}, + {"ELFOSABI_OPENVMS", Const, 0}, + {"ELFOSABI_SOLARIS", Const, 0}, + {"ELFOSABI_STANDALONE", Const, 0}, + {"ELFOSABI_TRU64", Const, 0}, + {"EM_386", Const, 0}, + {"EM_486", Const, 0}, + {"EM_56800EX", Const, 11}, + {"EM_68HC05", Const, 11}, + {"EM_68HC08", Const, 11}, + {"EM_68HC11", Const, 11}, + {"EM_68HC12", Const, 0}, + {"EM_68HC16", Const, 11}, + {"EM_68K", Const, 0}, + {"EM_78KOR", Const, 11}, + {"EM_8051", Const, 11}, + {"EM_860", Const, 0}, + {"EM_88K", Const, 0}, + {"EM_960", Const, 0}, + {"EM_AARCH64", Const, 4}, + {"EM_ALPHA", Const, 0}, + {"EM_ALPHA_STD", Const, 0}, + {"EM_ALTERA_NIOS2", Const, 11}, + {"EM_AMDGPU", Const, 11}, + {"EM_ARC", Const, 0}, + {"EM_ARCA", Const, 11}, + {"EM_ARC_COMPACT", Const, 11}, + {"EM_ARC_COMPACT2", Const, 11}, + {"EM_ARM", Const, 0}, + {"EM_AVR", Const, 11}, + {"EM_AVR32", Const, 11}, + {"EM_BA1", Const, 11}, + {"EM_BA2", Const, 11}, + {"EM_BLACKFIN", Const, 11}, + {"EM_BPF", Const, 11}, + {"EM_C166", Const, 11}, + {"EM_CDP", Const, 11}, + {"EM_CE", Const, 11}, + {"EM_CLOUDSHIELD", Const, 11}, + {"EM_COGE", Const, 11}, + {"EM_COLDFIRE", Const, 0}, + {"EM_COOL", Const, 11}, + {"EM_COREA_1ST", Const, 11}, + {"EM_COREA_2ND", Const, 11}, + {"EM_CR", Const, 11}, + {"EM_CR16", Const, 11}, + {"EM_CRAYNV2", Const, 11}, + {"EM_CRIS", Const, 11}, + {"EM_CRX", Const, 11}, + {"EM_CSR_KALIMBA", Const, 11}, + {"EM_CUDA", Const, 11}, + {"EM_CYPRESS_M8C", Const, 11}, + {"EM_D10V", Const, 11}, + {"EM_D30V", Const, 11}, + {"EM_DSP24", Const, 11}, + {"EM_DSPIC30F", Const, 11}, + {"EM_DXP", Const, 11}, + {"EM_ECOG1", Const, 11}, + {"EM_ECOG16", Const, 11}, + {"EM_ECOG1X", Const, 11}, + {"EM_ECOG2", Const, 11}, + {"EM_ETPU", Const, 11}, + {"EM_EXCESS", Const, 11}, + {"EM_F2MC16", Const, 11}, + {"EM_FIREPATH", Const, 11}, + {"EM_FR20", Const, 0}, + {"EM_FR30", Const, 11}, + {"EM_FT32", Const, 11}, + {"EM_FX66", Const, 11}, + {"EM_H8S", Const, 0}, + {"EM_H8_300", Const, 0}, + {"EM_H8_300H", Const, 0}, + {"EM_H8_500", Const, 0}, + {"EM_HUANY", Const, 11}, + {"EM_IA_64", Const, 0}, + {"EM_INTEL205", Const, 11}, + {"EM_INTEL206", Const, 11}, + {"EM_INTEL207", Const, 11}, + {"EM_INTEL208", Const, 11}, + {"EM_INTEL209", Const, 11}, + {"EM_IP2K", Const, 11}, + {"EM_JAVELIN", Const, 11}, + {"EM_K10M", Const, 11}, + {"EM_KM32", Const, 11}, + {"EM_KMX16", Const, 11}, + {"EM_KMX32", Const, 11}, + {"EM_KMX8", Const, 11}, + {"EM_KVARC", Const, 11}, + {"EM_L10M", Const, 11}, + {"EM_LANAI", Const, 11}, + {"EM_LATTICEMICO32", Const, 11}, + {"EM_LOONGARCH", Const, 19}, + {"EM_M16C", Const, 11}, + {"EM_M32", Const, 0}, + {"EM_M32C", Const, 11}, + {"EM_M32R", Const, 11}, + {"EM_MANIK", Const, 11}, + {"EM_MAX", Const, 11}, + {"EM_MAXQ30", Const, 11}, + {"EM_MCHP_PIC", Const, 11}, + {"EM_MCST_ELBRUS", Const, 11}, + {"EM_ME16", Const, 0}, + {"EM_METAG", Const, 11}, + {"EM_MICROBLAZE", Const, 11}, + {"EM_MIPS", Const, 0}, + {"EM_MIPS_RS3_LE", Const, 0}, + {"EM_MIPS_RS4_BE", Const, 0}, + {"EM_MIPS_X", Const, 0}, + {"EM_MMA", Const, 0}, + {"EM_MMDSP_PLUS", Const, 11}, + {"EM_MMIX", Const, 11}, + {"EM_MN10200", Const, 11}, + {"EM_MN10300", Const, 11}, + {"EM_MOXIE", Const, 11}, + {"EM_MSP430", Const, 11}, + {"EM_NCPU", Const, 0}, + {"EM_NDR1", Const, 0}, + {"EM_NDS32", Const, 11}, + {"EM_NONE", Const, 0}, + {"EM_NORC", Const, 11}, + {"EM_NS32K", Const, 11}, + {"EM_OPEN8", Const, 11}, + {"EM_OPENRISC", Const, 11}, + {"EM_PARISC", Const, 0}, + {"EM_PCP", Const, 0}, + {"EM_PDP10", Const, 11}, + {"EM_PDP11", Const, 11}, + {"EM_PDSP", Const, 11}, + {"EM_PJ", Const, 11}, + {"EM_PPC", Const, 0}, + {"EM_PPC64", Const, 0}, + {"EM_PRISM", Const, 11}, + {"EM_QDSP6", Const, 11}, + {"EM_R32C", Const, 11}, + {"EM_RCE", Const, 0}, + {"EM_RH32", Const, 0}, + {"EM_RISCV", Const, 11}, + {"EM_RL78", Const, 11}, + {"EM_RS08", Const, 11}, + {"EM_RX", Const, 11}, + {"EM_S370", Const, 0}, + {"EM_S390", Const, 0}, + {"EM_SCORE7", Const, 11}, + {"EM_SEP", Const, 11}, + {"EM_SE_C17", Const, 11}, + {"EM_SE_C33", Const, 11}, + {"EM_SH", Const, 0}, + {"EM_SHARC", Const, 11}, + {"EM_SLE9X", Const, 11}, + {"EM_SNP1K", Const, 11}, + {"EM_SPARC", Const, 0}, + {"EM_SPARC32PLUS", Const, 0}, + {"EM_SPARCV9", Const, 0}, + {"EM_ST100", Const, 0}, + {"EM_ST19", Const, 11}, + {"EM_ST200", Const, 11}, + {"EM_ST7", Const, 11}, + {"EM_ST9PLUS", Const, 11}, + {"EM_STARCORE", Const, 0}, + {"EM_STM8", Const, 11}, + {"EM_STXP7X", Const, 11}, + {"EM_SVX", Const, 11}, + {"EM_TILE64", Const, 11}, + {"EM_TILEGX", Const, 11}, + {"EM_TILEPRO", Const, 11}, + {"EM_TINYJ", Const, 0}, + {"EM_TI_ARP32", Const, 11}, + {"EM_TI_C2000", Const, 11}, + {"EM_TI_C5500", Const, 11}, + {"EM_TI_C6000", Const, 11}, + {"EM_TI_PRU", Const, 11}, + {"EM_TMM_GPP", Const, 11}, + {"EM_TPC", Const, 11}, + {"EM_TRICORE", Const, 0}, + {"EM_TRIMEDIA", Const, 11}, + {"EM_TSK3000", Const, 11}, + {"EM_UNICORE", Const, 11}, + {"EM_V800", Const, 0}, + {"EM_V850", Const, 11}, + {"EM_VAX", Const, 11}, + {"EM_VIDEOCORE", Const, 11}, + {"EM_VIDEOCORE3", Const, 11}, + {"EM_VIDEOCORE5", Const, 11}, + {"EM_VISIUM", Const, 11}, + {"EM_VPP500", Const, 0}, + {"EM_X86_64", Const, 0}, + {"EM_XCORE", Const, 11}, + {"EM_XGATE", Const, 11}, + {"EM_XIMO16", Const, 11}, + {"EM_XTENSA", Const, 11}, + {"EM_Z80", Const, 11}, + {"EM_ZSP", Const, 11}, + {"ET_CORE", Const, 0}, + {"ET_DYN", Const, 0}, + {"ET_EXEC", Const, 0}, + {"ET_HIOS", Const, 0}, + {"ET_HIPROC", Const, 0}, + {"ET_LOOS", Const, 0}, + {"ET_LOPROC", Const, 0}, + {"ET_NONE", Const, 0}, + {"ET_REL", Const, 0}, + {"EV_CURRENT", Const, 0}, + {"EV_NONE", Const, 0}, + {"ErrNoSymbols", Var, 4}, + {"File", Type, 0}, + {"File.FileHeader", Field, 0}, + {"File.Progs", Field, 0}, + {"File.Sections", Field, 0}, + {"FileHeader", Type, 0}, + {"FileHeader.ABIVersion", Field, 0}, + {"FileHeader.ByteOrder", Field, 0}, + {"FileHeader.Class", Field, 0}, + {"FileHeader.Data", Field, 0}, + {"FileHeader.Entry", Field, 1}, + {"FileHeader.Machine", Field, 0}, + {"FileHeader.OSABI", Field, 0}, + {"FileHeader.Type", Field, 0}, + {"FileHeader.Version", Field, 0}, + {"FormatError", Type, 0}, + {"Header32", Type, 0}, + {"Header32.Ehsize", Field, 0}, + {"Header32.Entry", Field, 0}, + {"Header32.Flags", Field, 0}, + {"Header32.Ident", Field, 0}, + {"Header32.Machine", Field, 0}, + {"Header32.Phentsize", Field, 0}, + {"Header32.Phnum", Field, 0}, + {"Header32.Phoff", Field, 0}, + {"Header32.Shentsize", Field, 0}, + {"Header32.Shnum", Field, 0}, + {"Header32.Shoff", Field, 0}, + {"Header32.Shstrndx", Field, 0}, + {"Header32.Type", Field, 0}, + {"Header32.Version", Field, 0}, + {"Header64", Type, 0}, + {"Header64.Ehsize", Field, 0}, + {"Header64.Entry", Field, 0}, + {"Header64.Flags", Field, 0}, + {"Header64.Ident", Field, 0}, + {"Header64.Machine", Field, 0}, + {"Header64.Phentsize", Field, 0}, + {"Header64.Phnum", Field, 0}, + {"Header64.Phoff", Field, 0}, + {"Header64.Shentsize", Field, 0}, + {"Header64.Shnum", Field, 0}, + {"Header64.Shoff", Field, 0}, + {"Header64.Shstrndx", Field, 0}, + {"Header64.Type", Field, 0}, + {"Header64.Version", Field, 0}, + {"ImportedSymbol", Type, 0}, + {"ImportedSymbol.Library", Field, 0}, + {"ImportedSymbol.Name", Field, 0}, + {"ImportedSymbol.Version", Field, 0}, + {"Machine", Type, 0}, + {"NT_FPREGSET", Const, 0}, + {"NT_PRPSINFO", Const, 0}, + {"NT_PRSTATUS", Const, 0}, + {"NType", Type, 0}, + {"NewFile", Func, 0}, + {"OSABI", Type, 0}, + {"Open", Func, 0}, + {"PF_MASKOS", Const, 0}, + {"PF_MASKPROC", Const, 0}, + {"PF_R", Const, 0}, + {"PF_W", Const, 0}, + {"PF_X", Const, 0}, + {"PT_AARCH64_ARCHEXT", Const, 16}, + {"PT_AARCH64_UNWIND", Const, 16}, + {"PT_ARM_ARCHEXT", Const, 16}, + {"PT_ARM_EXIDX", Const, 16}, + {"PT_DYNAMIC", Const, 0}, + {"PT_GNU_EH_FRAME", Const, 16}, + {"PT_GNU_MBIND_HI", Const, 16}, + {"PT_GNU_MBIND_LO", Const, 16}, + {"PT_GNU_PROPERTY", Const, 16}, + {"PT_GNU_RELRO", Const, 16}, + {"PT_GNU_STACK", Const, 16}, + {"PT_HIOS", Const, 0}, + {"PT_HIPROC", Const, 0}, + {"PT_INTERP", Const, 0}, + {"PT_LOAD", Const, 0}, + {"PT_LOOS", Const, 0}, + {"PT_LOPROC", Const, 0}, + {"PT_MIPS_ABIFLAGS", Const, 16}, + {"PT_MIPS_OPTIONS", Const, 16}, + {"PT_MIPS_REGINFO", Const, 16}, + {"PT_MIPS_RTPROC", Const, 16}, + {"PT_NOTE", Const, 0}, + {"PT_NULL", Const, 0}, + {"PT_OPENBSD_BOOTDATA", Const, 16}, + {"PT_OPENBSD_RANDOMIZE", Const, 16}, + {"PT_OPENBSD_WXNEEDED", Const, 16}, + {"PT_PAX_FLAGS", Const, 16}, + {"PT_PHDR", Const, 0}, + {"PT_S390_PGSTE", Const, 16}, + {"PT_SHLIB", Const, 0}, + {"PT_SUNWSTACK", Const, 16}, + {"PT_SUNW_EH_FRAME", Const, 16}, + {"PT_TLS", Const, 0}, + {"Prog", Type, 0}, + {"Prog.ProgHeader", Field, 0}, + {"Prog.ReaderAt", Field, 0}, + {"Prog32", Type, 0}, + {"Prog32.Align", Field, 0}, + {"Prog32.Filesz", Field, 0}, + {"Prog32.Flags", Field, 0}, + {"Prog32.Memsz", Field, 0}, + {"Prog32.Off", Field, 0}, + {"Prog32.Paddr", Field, 0}, + {"Prog32.Type", Field, 0}, + {"Prog32.Vaddr", Field, 0}, + {"Prog64", Type, 0}, + {"Prog64.Align", Field, 0}, + {"Prog64.Filesz", Field, 0}, + {"Prog64.Flags", Field, 0}, + {"Prog64.Memsz", Field, 0}, + {"Prog64.Off", Field, 0}, + {"Prog64.Paddr", Field, 0}, + {"Prog64.Type", Field, 0}, + {"Prog64.Vaddr", Field, 0}, + {"ProgFlag", Type, 0}, + {"ProgHeader", Type, 0}, + {"ProgHeader.Align", Field, 0}, + {"ProgHeader.Filesz", Field, 0}, + {"ProgHeader.Flags", Field, 0}, + {"ProgHeader.Memsz", Field, 0}, + {"ProgHeader.Off", Field, 0}, + {"ProgHeader.Paddr", Field, 0}, + {"ProgHeader.Type", Field, 0}, + {"ProgHeader.Vaddr", Field, 0}, + {"ProgType", Type, 0}, + {"R_386", Type, 0}, + {"R_386_16", Const, 10}, + {"R_386_32", Const, 0}, + {"R_386_32PLT", Const, 10}, + {"R_386_8", Const, 10}, + {"R_386_COPY", Const, 0}, + {"R_386_GLOB_DAT", Const, 0}, + {"R_386_GOT32", Const, 0}, + {"R_386_GOT32X", Const, 10}, + {"R_386_GOTOFF", Const, 0}, + {"R_386_GOTPC", Const, 0}, + {"R_386_IRELATIVE", Const, 10}, + {"R_386_JMP_SLOT", Const, 0}, + {"R_386_NONE", Const, 0}, + {"R_386_PC16", Const, 10}, + {"R_386_PC32", Const, 0}, + {"R_386_PC8", Const, 10}, + {"R_386_PLT32", Const, 0}, + {"R_386_RELATIVE", Const, 0}, + {"R_386_SIZE32", Const, 10}, + {"R_386_TLS_DESC", Const, 10}, + {"R_386_TLS_DESC_CALL", Const, 10}, + {"R_386_TLS_DTPMOD32", Const, 0}, + {"R_386_TLS_DTPOFF32", Const, 0}, + {"R_386_TLS_GD", Const, 0}, + {"R_386_TLS_GD_32", Const, 0}, + {"R_386_TLS_GD_CALL", Const, 0}, + {"R_386_TLS_GD_POP", Const, 0}, + {"R_386_TLS_GD_PUSH", Const, 0}, + {"R_386_TLS_GOTDESC", Const, 10}, + {"R_386_TLS_GOTIE", Const, 0}, + {"R_386_TLS_IE", Const, 0}, + {"R_386_TLS_IE_32", Const, 0}, + {"R_386_TLS_LDM", Const, 0}, + {"R_386_TLS_LDM_32", Const, 0}, + {"R_386_TLS_LDM_CALL", Const, 0}, + {"R_386_TLS_LDM_POP", Const, 0}, + {"R_386_TLS_LDM_PUSH", Const, 0}, + {"R_386_TLS_LDO_32", Const, 0}, + {"R_386_TLS_LE", Const, 0}, + {"R_386_TLS_LE_32", Const, 0}, + {"R_386_TLS_TPOFF", Const, 0}, + {"R_386_TLS_TPOFF32", Const, 0}, + {"R_390", Type, 7}, + {"R_390_12", Const, 7}, + {"R_390_16", Const, 7}, + {"R_390_20", Const, 7}, + {"R_390_32", Const, 7}, + {"R_390_64", Const, 7}, + {"R_390_8", Const, 7}, + {"R_390_COPY", Const, 7}, + {"R_390_GLOB_DAT", Const, 7}, + {"R_390_GOT12", Const, 7}, + {"R_390_GOT16", Const, 7}, + {"R_390_GOT20", Const, 7}, + {"R_390_GOT32", Const, 7}, + {"R_390_GOT64", Const, 7}, + {"R_390_GOTENT", Const, 7}, + {"R_390_GOTOFF", Const, 7}, + {"R_390_GOTOFF16", Const, 7}, + {"R_390_GOTOFF64", Const, 7}, + {"R_390_GOTPC", Const, 7}, + {"R_390_GOTPCDBL", Const, 7}, + {"R_390_GOTPLT12", Const, 7}, + {"R_390_GOTPLT16", Const, 7}, + {"R_390_GOTPLT20", Const, 7}, + {"R_390_GOTPLT32", Const, 7}, + {"R_390_GOTPLT64", Const, 7}, + {"R_390_GOTPLTENT", Const, 7}, + {"R_390_GOTPLTOFF16", Const, 7}, + {"R_390_GOTPLTOFF32", Const, 7}, + {"R_390_GOTPLTOFF64", Const, 7}, + {"R_390_JMP_SLOT", Const, 7}, + {"R_390_NONE", Const, 7}, + {"R_390_PC16", Const, 7}, + {"R_390_PC16DBL", Const, 7}, + {"R_390_PC32", Const, 7}, + {"R_390_PC32DBL", Const, 7}, + {"R_390_PC64", Const, 7}, + {"R_390_PLT16DBL", Const, 7}, + {"R_390_PLT32", Const, 7}, + {"R_390_PLT32DBL", Const, 7}, + {"R_390_PLT64", Const, 7}, + {"R_390_RELATIVE", Const, 7}, + {"R_390_TLS_DTPMOD", Const, 7}, + {"R_390_TLS_DTPOFF", Const, 7}, + {"R_390_TLS_GD32", Const, 7}, + {"R_390_TLS_GD64", Const, 7}, + {"R_390_TLS_GDCALL", Const, 7}, + {"R_390_TLS_GOTIE12", Const, 7}, + {"R_390_TLS_GOTIE20", Const, 7}, + {"R_390_TLS_GOTIE32", Const, 7}, + {"R_390_TLS_GOTIE64", Const, 7}, + {"R_390_TLS_IE32", Const, 7}, + {"R_390_TLS_IE64", Const, 7}, + {"R_390_TLS_IEENT", Const, 7}, + {"R_390_TLS_LDCALL", Const, 7}, + {"R_390_TLS_LDM32", Const, 7}, + {"R_390_TLS_LDM64", Const, 7}, + {"R_390_TLS_LDO32", Const, 7}, + {"R_390_TLS_LDO64", Const, 7}, + {"R_390_TLS_LE32", Const, 7}, + {"R_390_TLS_LE64", Const, 7}, + {"R_390_TLS_LOAD", Const, 7}, + {"R_390_TLS_TPOFF", Const, 7}, + {"R_AARCH64", Type, 4}, + {"R_AARCH64_ABS16", Const, 4}, + {"R_AARCH64_ABS32", Const, 4}, + {"R_AARCH64_ABS64", Const, 4}, + {"R_AARCH64_ADD_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_ADR_GOT_PAGE", Const, 4}, + {"R_AARCH64_ADR_PREL_LO21", Const, 4}, + {"R_AARCH64_ADR_PREL_PG_HI21", Const, 4}, + {"R_AARCH64_ADR_PREL_PG_HI21_NC", Const, 4}, + {"R_AARCH64_CALL26", Const, 4}, + {"R_AARCH64_CONDBR19", Const, 4}, + {"R_AARCH64_COPY", Const, 4}, + {"R_AARCH64_GLOB_DAT", Const, 4}, + {"R_AARCH64_GOT_LD_PREL19", Const, 4}, + {"R_AARCH64_IRELATIVE", Const, 4}, + {"R_AARCH64_JUMP26", Const, 4}, + {"R_AARCH64_JUMP_SLOT", Const, 4}, + {"R_AARCH64_LD64_GOTOFF_LO15", Const, 10}, + {"R_AARCH64_LD64_GOTPAGE_LO15", Const, 10}, + {"R_AARCH64_LD64_GOT_LO12_NC", Const, 4}, + {"R_AARCH64_LDST128_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_LDST16_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_LDST32_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_LDST64_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_LDST8_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_LD_PREL_LO19", Const, 4}, + {"R_AARCH64_MOVW_SABS_G0", Const, 4}, + {"R_AARCH64_MOVW_SABS_G1", Const, 4}, + {"R_AARCH64_MOVW_SABS_G2", Const, 4}, + {"R_AARCH64_MOVW_UABS_G0", Const, 4}, + {"R_AARCH64_MOVW_UABS_G0_NC", Const, 4}, + {"R_AARCH64_MOVW_UABS_G1", Const, 4}, + {"R_AARCH64_MOVW_UABS_G1_NC", Const, 4}, + {"R_AARCH64_MOVW_UABS_G2", Const, 4}, + {"R_AARCH64_MOVW_UABS_G2_NC", Const, 4}, + {"R_AARCH64_MOVW_UABS_G3", Const, 4}, + {"R_AARCH64_NONE", Const, 4}, + {"R_AARCH64_NULL", Const, 4}, + {"R_AARCH64_P32_ABS16", Const, 4}, + {"R_AARCH64_P32_ABS32", Const, 4}, + {"R_AARCH64_P32_ADD_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_P32_ADR_GOT_PAGE", Const, 4}, + {"R_AARCH64_P32_ADR_PREL_LO21", Const, 4}, + {"R_AARCH64_P32_ADR_PREL_PG_HI21", Const, 4}, + {"R_AARCH64_P32_CALL26", Const, 4}, + {"R_AARCH64_P32_CONDBR19", Const, 4}, + {"R_AARCH64_P32_COPY", Const, 4}, + {"R_AARCH64_P32_GLOB_DAT", Const, 4}, + {"R_AARCH64_P32_GOT_LD_PREL19", Const, 4}, + {"R_AARCH64_P32_IRELATIVE", Const, 4}, + {"R_AARCH64_P32_JUMP26", Const, 4}, + {"R_AARCH64_P32_JUMP_SLOT", Const, 4}, + {"R_AARCH64_P32_LD32_GOT_LO12_NC", Const, 4}, + {"R_AARCH64_P32_LDST128_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_P32_LDST16_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_P32_LDST32_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_P32_LDST64_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_P32_LDST8_ABS_LO12_NC", Const, 4}, + {"R_AARCH64_P32_LD_PREL_LO19", Const, 4}, + {"R_AARCH64_P32_MOVW_SABS_G0", Const, 4}, + {"R_AARCH64_P32_MOVW_UABS_G0", Const, 4}, + {"R_AARCH64_P32_MOVW_UABS_G0_NC", Const, 4}, + {"R_AARCH64_P32_MOVW_UABS_G1", Const, 4}, + {"R_AARCH64_P32_PREL16", Const, 4}, + {"R_AARCH64_P32_PREL32", Const, 4}, + {"R_AARCH64_P32_RELATIVE", Const, 4}, + {"R_AARCH64_P32_TLSDESC", Const, 4}, + {"R_AARCH64_P32_TLSDESC_ADD_LO12_NC", Const, 4}, + {"R_AARCH64_P32_TLSDESC_ADR_PAGE21", Const, 4}, + {"R_AARCH64_P32_TLSDESC_ADR_PREL21", Const, 4}, + {"R_AARCH64_P32_TLSDESC_CALL", Const, 4}, + {"R_AARCH64_P32_TLSDESC_LD32_LO12_NC", Const, 4}, + {"R_AARCH64_P32_TLSDESC_LD_PREL19", Const, 4}, + {"R_AARCH64_P32_TLSGD_ADD_LO12_NC", Const, 4}, + {"R_AARCH64_P32_TLSGD_ADR_PAGE21", Const, 4}, + {"R_AARCH64_P32_TLSIE_ADR_GOTTPREL_PAGE21", Const, 4}, + {"R_AARCH64_P32_TLSIE_LD32_GOTTPREL_LO12_NC", Const, 4}, + {"R_AARCH64_P32_TLSIE_LD_GOTTPREL_PREL19", Const, 4}, + {"R_AARCH64_P32_TLSLE_ADD_TPREL_HI12", Const, 4}, + {"R_AARCH64_P32_TLSLE_ADD_TPREL_LO12", Const, 4}, + {"R_AARCH64_P32_TLSLE_ADD_TPREL_LO12_NC", Const, 4}, + {"R_AARCH64_P32_TLSLE_MOVW_TPREL_G0", Const, 4}, + {"R_AARCH64_P32_TLSLE_MOVW_TPREL_G0_NC", Const, 4}, + {"R_AARCH64_P32_TLSLE_MOVW_TPREL_G1", Const, 4}, + {"R_AARCH64_P32_TLS_DTPMOD", Const, 4}, + {"R_AARCH64_P32_TLS_DTPREL", Const, 4}, + {"R_AARCH64_P32_TLS_TPREL", Const, 4}, + {"R_AARCH64_P32_TSTBR14", Const, 4}, + {"R_AARCH64_PREL16", Const, 4}, + {"R_AARCH64_PREL32", Const, 4}, + {"R_AARCH64_PREL64", Const, 4}, + {"R_AARCH64_RELATIVE", Const, 4}, + {"R_AARCH64_TLSDESC", Const, 4}, + {"R_AARCH64_TLSDESC_ADD", Const, 4}, + {"R_AARCH64_TLSDESC_ADD_LO12_NC", Const, 4}, + {"R_AARCH64_TLSDESC_ADR_PAGE21", Const, 4}, + {"R_AARCH64_TLSDESC_ADR_PREL21", Const, 4}, + {"R_AARCH64_TLSDESC_CALL", Const, 4}, + {"R_AARCH64_TLSDESC_LD64_LO12_NC", Const, 4}, + {"R_AARCH64_TLSDESC_LDR", Const, 4}, + {"R_AARCH64_TLSDESC_LD_PREL19", Const, 4}, + {"R_AARCH64_TLSDESC_OFF_G0_NC", Const, 4}, + {"R_AARCH64_TLSDESC_OFF_G1", Const, 4}, + {"R_AARCH64_TLSGD_ADD_LO12_NC", Const, 4}, + {"R_AARCH64_TLSGD_ADR_PAGE21", Const, 4}, + {"R_AARCH64_TLSGD_ADR_PREL21", Const, 10}, + {"R_AARCH64_TLSGD_MOVW_G0_NC", Const, 10}, + {"R_AARCH64_TLSGD_MOVW_G1", Const, 10}, + {"R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21", Const, 4}, + {"R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC", Const, 4}, + {"R_AARCH64_TLSIE_LD_GOTTPREL_PREL19", Const, 4}, + {"R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC", Const, 4}, + {"R_AARCH64_TLSIE_MOVW_GOTTPREL_G1", Const, 4}, + {"R_AARCH64_TLSLD_ADR_PAGE21", Const, 10}, + {"R_AARCH64_TLSLD_ADR_PREL21", Const, 10}, + {"R_AARCH64_TLSLD_LDST128_DTPREL_LO12", Const, 10}, + {"R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC", Const, 10}, + {"R_AARCH64_TLSLE_ADD_TPREL_HI12", Const, 4}, + {"R_AARCH64_TLSLE_ADD_TPREL_LO12", Const, 4}, + {"R_AARCH64_TLSLE_ADD_TPREL_LO12_NC", Const, 4}, + {"R_AARCH64_TLSLE_LDST128_TPREL_LO12", Const, 10}, + {"R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC", Const, 10}, + {"R_AARCH64_TLSLE_MOVW_TPREL_G0", Const, 4}, + {"R_AARCH64_TLSLE_MOVW_TPREL_G0_NC", Const, 4}, + {"R_AARCH64_TLSLE_MOVW_TPREL_G1", Const, 4}, + {"R_AARCH64_TLSLE_MOVW_TPREL_G1_NC", Const, 4}, + {"R_AARCH64_TLSLE_MOVW_TPREL_G2", Const, 4}, + {"R_AARCH64_TLS_DTPMOD64", Const, 4}, + {"R_AARCH64_TLS_DTPREL64", Const, 4}, + {"R_AARCH64_TLS_TPREL64", Const, 4}, + {"R_AARCH64_TSTBR14", Const, 4}, + {"R_ALPHA", Type, 0}, + {"R_ALPHA_BRADDR", Const, 0}, + {"R_ALPHA_COPY", Const, 0}, + {"R_ALPHA_GLOB_DAT", Const, 0}, + {"R_ALPHA_GPDISP", Const, 0}, + {"R_ALPHA_GPREL32", Const, 0}, + {"R_ALPHA_GPRELHIGH", Const, 0}, + {"R_ALPHA_GPRELLOW", Const, 0}, + {"R_ALPHA_GPVALUE", Const, 0}, + {"R_ALPHA_HINT", Const, 0}, + {"R_ALPHA_IMMED_BR_HI32", Const, 0}, + {"R_ALPHA_IMMED_GP_16", Const, 0}, + {"R_ALPHA_IMMED_GP_HI32", Const, 0}, + {"R_ALPHA_IMMED_LO32", Const, 0}, + {"R_ALPHA_IMMED_SCN_HI32", Const, 0}, + {"R_ALPHA_JMP_SLOT", Const, 0}, + {"R_ALPHA_LITERAL", Const, 0}, + {"R_ALPHA_LITUSE", Const, 0}, + {"R_ALPHA_NONE", Const, 0}, + {"R_ALPHA_OP_PRSHIFT", Const, 0}, + {"R_ALPHA_OP_PSUB", Const, 0}, + {"R_ALPHA_OP_PUSH", Const, 0}, + {"R_ALPHA_OP_STORE", Const, 0}, + {"R_ALPHA_REFLONG", Const, 0}, + {"R_ALPHA_REFQUAD", Const, 0}, + {"R_ALPHA_RELATIVE", Const, 0}, + {"R_ALPHA_SREL16", Const, 0}, + {"R_ALPHA_SREL32", Const, 0}, + {"R_ALPHA_SREL64", Const, 0}, + {"R_ARM", Type, 0}, + {"R_ARM_ABS12", Const, 0}, + {"R_ARM_ABS16", Const, 0}, + {"R_ARM_ABS32", Const, 0}, + {"R_ARM_ABS32_NOI", Const, 10}, + {"R_ARM_ABS8", Const, 0}, + {"R_ARM_ALU_PCREL_15_8", Const, 10}, + {"R_ARM_ALU_PCREL_23_15", Const, 10}, + {"R_ARM_ALU_PCREL_7_0", Const, 10}, + {"R_ARM_ALU_PC_G0", Const, 10}, + {"R_ARM_ALU_PC_G0_NC", Const, 10}, + {"R_ARM_ALU_PC_G1", Const, 10}, + {"R_ARM_ALU_PC_G1_NC", Const, 10}, + {"R_ARM_ALU_PC_G2", Const, 10}, + {"R_ARM_ALU_SBREL_19_12_NC", Const, 10}, + {"R_ARM_ALU_SBREL_27_20_CK", Const, 10}, + {"R_ARM_ALU_SB_G0", Const, 10}, + {"R_ARM_ALU_SB_G0_NC", Const, 10}, + {"R_ARM_ALU_SB_G1", Const, 10}, + {"R_ARM_ALU_SB_G1_NC", Const, 10}, + {"R_ARM_ALU_SB_G2", Const, 10}, + {"R_ARM_AMP_VCALL9", Const, 0}, + {"R_ARM_BASE_ABS", Const, 10}, + {"R_ARM_CALL", Const, 10}, + {"R_ARM_COPY", Const, 0}, + {"R_ARM_GLOB_DAT", Const, 0}, + {"R_ARM_GNU_VTENTRY", Const, 0}, + {"R_ARM_GNU_VTINHERIT", Const, 0}, + {"R_ARM_GOT32", Const, 0}, + {"R_ARM_GOTOFF", Const, 0}, + {"R_ARM_GOTOFF12", Const, 10}, + {"R_ARM_GOTPC", Const, 0}, + {"R_ARM_GOTRELAX", Const, 10}, + {"R_ARM_GOT_ABS", Const, 10}, + {"R_ARM_GOT_BREL12", Const, 10}, + {"R_ARM_GOT_PREL", Const, 10}, + {"R_ARM_IRELATIVE", Const, 10}, + {"R_ARM_JUMP24", Const, 10}, + {"R_ARM_JUMP_SLOT", Const, 0}, + {"R_ARM_LDC_PC_G0", Const, 10}, + {"R_ARM_LDC_PC_G1", Const, 10}, + {"R_ARM_LDC_PC_G2", Const, 10}, + {"R_ARM_LDC_SB_G0", Const, 10}, + {"R_ARM_LDC_SB_G1", Const, 10}, + {"R_ARM_LDC_SB_G2", Const, 10}, + {"R_ARM_LDRS_PC_G0", Const, 10}, + {"R_ARM_LDRS_PC_G1", Const, 10}, + {"R_ARM_LDRS_PC_G2", Const, 10}, + {"R_ARM_LDRS_SB_G0", Const, 10}, + {"R_ARM_LDRS_SB_G1", Const, 10}, + {"R_ARM_LDRS_SB_G2", Const, 10}, + {"R_ARM_LDR_PC_G1", Const, 10}, + {"R_ARM_LDR_PC_G2", Const, 10}, + {"R_ARM_LDR_SBREL_11_10_NC", Const, 10}, + {"R_ARM_LDR_SB_G0", Const, 10}, + {"R_ARM_LDR_SB_G1", Const, 10}, + {"R_ARM_LDR_SB_G2", Const, 10}, + {"R_ARM_ME_TOO", Const, 10}, + {"R_ARM_MOVT_ABS", Const, 10}, + {"R_ARM_MOVT_BREL", Const, 10}, + {"R_ARM_MOVT_PREL", Const, 10}, + {"R_ARM_MOVW_ABS_NC", Const, 10}, + {"R_ARM_MOVW_BREL", Const, 10}, + {"R_ARM_MOVW_BREL_NC", Const, 10}, + {"R_ARM_MOVW_PREL_NC", Const, 10}, + {"R_ARM_NONE", Const, 0}, + {"R_ARM_PC13", Const, 0}, + {"R_ARM_PC24", Const, 0}, + {"R_ARM_PLT32", Const, 0}, + {"R_ARM_PLT32_ABS", Const, 10}, + {"R_ARM_PREL31", Const, 10}, + {"R_ARM_PRIVATE_0", Const, 10}, + {"R_ARM_PRIVATE_1", Const, 10}, + {"R_ARM_PRIVATE_10", Const, 10}, + {"R_ARM_PRIVATE_11", Const, 10}, + {"R_ARM_PRIVATE_12", Const, 10}, + {"R_ARM_PRIVATE_13", Const, 10}, + {"R_ARM_PRIVATE_14", Const, 10}, + {"R_ARM_PRIVATE_15", Const, 10}, + {"R_ARM_PRIVATE_2", Const, 10}, + {"R_ARM_PRIVATE_3", Const, 10}, + {"R_ARM_PRIVATE_4", Const, 10}, + {"R_ARM_PRIVATE_5", Const, 10}, + {"R_ARM_PRIVATE_6", Const, 10}, + {"R_ARM_PRIVATE_7", Const, 10}, + {"R_ARM_PRIVATE_8", Const, 10}, + {"R_ARM_PRIVATE_9", Const, 10}, + {"R_ARM_RABS32", Const, 0}, + {"R_ARM_RBASE", Const, 0}, + {"R_ARM_REL32", Const, 0}, + {"R_ARM_REL32_NOI", Const, 10}, + {"R_ARM_RELATIVE", Const, 0}, + {"R_ARM_RPC24", Const, 0}, + {"R_ARM_RREL32", Const, 0}, + {"R_ARM_RSBREL32", Const, 0}, + {"R_ARM_RXPC25", Const, 10}, + {"R_ARM_SBREL31", Const, 10}, + {"R_ARM_SBREL32", Const, 0}, + {"R_ARM_SWI24", Const, 0}, + {"R_ARM_TARGET1", Const, 10}, + {"R_ARM_TARGET2", Const, 10}, + {"R_ARM_THM_ABS5", Const, 0}, + {"R_ARM_THM_ALU_ABS_G0_NC", Const, 10}, + {"R_ARM_THM_ALU_ABS_G1_NC", Const, 10}, + {"R_ARM_THM_ALU_ABS_G2_NC", Const, 10}, + {"R_ARM_THM_ALU_ABS_G3", Const, 10}, + {"R_ARM_THM_ALU_PREL_11_0", Const, 10}, + {"R_ARM_THM_GOT_BREL12", Const, 10}, + {"R_ARM_THM_JUMP11", Const, 10}, + {"R_ARM_THM_JUMP19", Const, 10}, + {"R_ARM_THM_JUMP24", Const, 10}, + {"R_ARM_THM_JUMP6", Const, 10}, + {"R_ARM_THM_JUMP8", Const, 10}, + {"R_ARM_THM_MOVT_ABS", Const, 10}, + {"R_ARM_THM_MOVT_BREL", Const, 10}, + {"R_ARM_THM_MOVT_PREL", Const, 10}, + {"R_ARM_THM_MOVW_ABS_NC", Const, 10}, + {"R_ARM_THM_MOVW_BREL", Const, 10}, + {"R_ARM_THM_MOVW_BREL_NC", Const, 10}, + {"R_ARM_THM_MOVW_PREL_NC", Const, 10}, + {"R_ARM_THM_PC12", Const, 10}, + {"R_ARM_THM_PC22", Const, 0}, + {"R_ARM_THM_PC8", Const, 0}, + {"R_ARM_THM_RPC22", Const, 0}, + {"R_ARM_THM_SWI8", Const, 0}, + {"R_ARM_THM_TLS_CALL", Const, 10}, + {"R_ARM_THM_TLS_DESCSEQ16", Const, 10}, + {"R_ARM_THM_TLS_DESCSEQ32", Const, 10}, + {"R_ARM_THM_XPC22", Const, 0}, + {"R_ARM_TLS_CALL", Const, 10}, + {"R_ARM_TLS_DESCSEQ", Const, 10}, + {"R_ARM_TLS_DTPMOD32", Const, 10}, + {"R_ARM_TLS_DTPOFF32", Const, 10}, + {"R_ARM_TLS_GD32", Const, 10}, + {"R_ARM_TLS_GOTDESC", Const, 10}, + {"R_ARM_TLS_IE12GP", Const, 10}, + {"R_ARM_TLS_IE32", Const, 10}, + {"R_ARM_TLS_LDM32", Const, 10}, + {"R_ARM_TLS_LDO12", Const, 10}, + {"R_ARM_TLS_LDO32", Const, 10}, + {"R_ARM_TLS_LE12", Const, 10}, + {"R_ARM_TLS_LE32", Const, 10}, + {"R_ARM_TLS_TPOFF32", Const, 10}, + {"R_ARM_V4BX", Const, 10}, + {"R_ARM_XPC25", Const, 0}, + {"R_INFO", Func, 0}, + {"R_INFO32", Func, 0}, + {"R_LARCH", Type, 19}, + {"R_LARCH_32", Const, 19}, + {"R_LARCH_32_PCREL", Const, 20}, + {"R_LARCH_64", Const, 19}, + {"R_LARCH_64_PCREL", Const, 22}, + {"R_LARCH_ABS64_HI12", Const, 20}, + {"R_LARCH_ABS64_LO20", Const, 20}, + {"R_LARCH_ABS_HI20", Const, 20}, + {"R_LARCH_ABS_LO12", Const, 20}, + {"R_LARCH_ADD16", Const, 19}, + {"R_LARCH_ADD24", Const, 19}, + {"R_LARCH_ADD32", Const, 19}, + {"R_LARCH_ADD6", Const, 22}, + {"R_LARCH_ADD64", Const, 19}, + {"R_LARCH_ADD8", Const, 19}, + {"R_LARCH_ADD_ULEB128", Const, 22}, + {"R_LARCH_ALIGN", Const, 22}, + {"R_LARCH_B16", Const, 20}, + {"R_LARCH_B21", Const, 20}, + {"R_LARCH_B26", Const, 20}, + {"R_LARCH_CFA", Const, 22}, + {"R_LARCH_COPY", Const, 19}, + {"R_LARCH_DELETE", Const, 22}, + {"R_LARCH_GNU_VTENTRY", Const, 20}, + {"R_LARCH_GNU_VTINHERIT", Const, 20}, + {"R_LARCH_GOT64_HI12", Const, 20}, + {"R_LARCH_GOT64_LO20", Const, 20}, + {"R_LARCH_GOT64_PC_HI12", Const, 20}, + {"R_LARCH_GOT64_PC_LO20", Const, 20}, + {"R_LARCH_GOT_HI20", Const, 20}, + {"R_LARCH_GOT_LO12", Const, 20}, + {"R_LARCH_GOT_PC_HI20", Const, 20}, + {"R_LARCH_GOT_PC_LO12", Const, 20}, + {"R_LARCH_IRELATIVE", Const, 19}, + {"R_LARCH_JUMP_SLOT", Const, 19}, + {"R_LARCH_MARK_LA", Const, 19}, + {"R_LARCH_MARK_PCREL", Const, 19}, + {"R_LARCH_NONE", Const, 19}, + {"R_LARCH_PCALA64_HI12", Const, 20}, + {"R_LARCH_PCALA64_LO20", Const, 20}, + {"R_LARCH_PCALA_HI20", Const, 20}, + {"R_LARCH_PCALA_LO12", Const, 20}, + {"R_LARCH_PCREL20_S2", Const, 22}, + {"R_LARCH_RELATIVE", Const, 19}, + {"R_LARCH_RELAX", Const, 20}, + {"R_LARCH_SOP_ADD", Const, 19}, + {"R_LARCH_SOP_AND", Const, 19}, + {"R_LARCH_SOP_ASSERT", Const, 19}, + {"R_LARCH_SOP_IF_ELSE", Const, 19}, + {"R_LARCH_SOP_NOT", Const, 19}, + {"R_LARCH_SOP_POP_32_S_0_10_10_16_S2", Const, 19}, + {"R_LARCH_SOP_POP_32_S_0_5_10_16_S2", Const, 19}, + {"R_LARCH_SOP_POP_32_S_10_12", Const, 19}, + {"R_LARCH_SOP_POP_32_S_10_16", Const, 19}, + {"R_LARCH_SOP_POP_32_S_10_16_S2", Const, 19}, + {"R_LARCH_SOP_POP_32_S_10_5", Const, 19}, + {"R_LARCH_SOP_POP_32_S_5_20", Const, 19}, + {"R_LARCH_SOP_POP_32_U", Const, 19}, + {"R_LARCH_SOP_POP_32_U_10_12", Const, 19}, + {"R_LARCH_SOP_PUSH_ABSOLUTE", Const, 19}, + {"R_LARCH_SOP_PUSH_DUP", Const, 19}, + {"R_LARCH_SOP_PUSH_GPREL", Const, 19}, + {"R_LARCH_SOP_PUSH_PCREL", Const, 19}, + {"R_LARCH_SOP_PUSH_PLT_PCREL", Const, 19}, + {"R_LARCH_SOP_PUSH_TLS_GD", Const, 19}, + {"R_LARCH_SOP_PUSH_TLS_GOT", Const, 19}, + {"R_LARCH_SOP_PUSH_TLS_TPREL", Const, 19}, + {"R_LARCH_SOP_SL", Const, 19}, + {"R_LARCH_SOP_SR", Const, 19}, + {"R_LARCH_SOP_SUB", Const, 19}, + {"R_LARCH_SUB16", Const, 19}, + {"R_LARCH_SUB24", Const, 19}, + {"R_LARCH_SUB32", Const, 19}, + {"R_LARCH_SUB6", Const, 22}, + {"R_LARCH_SUB64", Const, 19}, + {"R_LARCH_SUB8", Const, 19}, + {"R_LARCH_SUB_ULEB128", Const, 22}, + {"R_LARCH_TLS_DTPMOD32", Const, 19}, + {"R_LARCH_TLS_DTPMOD64", Const, 19}, + {"R_LARCH_TLS_DTPREL32", Const, 19}, + {"R_LARCH_TLS_DTPREL64", Const, 19}, + {"R_LARCH_TLS_GD_HI20", Const, 20}, + {"R_LARCH_TLS_GD_PC_HI20", Const, 20}, + {"R_LARCH_TLS_IE64_HI12", Const, 20}, + {"R_LARCH_TLS_IE64_LO20", Const, 20}, + {"R_LARCH_TLS_IE64_PC_HI12", Const, 20}, + {"R_LARCH_TLS_IE64_PC_LO20", Const, 20}, + {"R_LARCH_TLS_IE_HI20", Const, 20}, + {"R_LARCH_TLS_IE_LO12", Const, 20}, + {"R_LARCH_TLS_IE_PC_HI20", Const, 20}, + {"R_LARCH_TLS_IE_PC_LO12", Const, 20}, + {"R_LARCH_TLS_LD_HI20", Const, 20}, + {"R_LARCH_TLS_LD_PC_HI20", Const, 20}, + {"R_LARCH_TLS_LE64_HI12", Const, 20}, + {"R_LARCH_TLS_LE64_LO20", Const, 20}, + {"R_LARCH_TLS_LE_HI20", Const, 20}, + {"R_LARCH_TLS_LE_LO12", Const, 20}, + {"R_LARCH_TLS_TPREL32", Const, 19}, + {"R_LARCH_TLS_TPREL64", Const, 19}, + {"R_MIPS", Type, 6}, + {"R_MIPS_16", Const, 6}, + {"R_MIPS_26", Const, 6}, + {"R_MIPS_32", Const, 6}, + {"R_MIPS_64", Const, 6}, + {"R_MIPS_ADD_IMMEDIATE", Const, 6}, + {"R_MIPS_CALL16", Const, 6}, + {"R_MIPS_CALL_HI16", Const, 6}, + {"R_MIPS_CALL_LO16", Const, 6}, + {"R_MIPS_DELETE", Const, 6}, + {"R_MIPS_GOT16", Const, 6}, + {"R_MIPS_GOT_DISP", Const, 6}, + {"R_MIPS_GOT_HI16", Const, 6}, + {"R_MIPS_GOT_LO16", Const, 6}, + {"R_MIPS_GOT_OFST", Const, 6}, + {"R_MIPS_GOT_PAGE", Const, 6}, + {"R_MIPS_GPREL16", Const, 6}, + {"R_MIPS_GPREL32", Const, 6}, + {"R_MIPS_HI16", Const, 6}, + {"R_MIPS_HIGHER", Const, 6}, + {"R_MIPS_HIGHEST", Const, 6}, + {"R_MIPS_INSERT_A", Const, 6}, + {"R_MIPS_INSERT_B", Const, 6}, + {"R_MIPS_JALR", Const, 6}, + {"R_MIPS_LITERAL", Const, 6}, + {"R_MIPS_LO16", Const, 6}, + {"R_MIPS_NONE", Const, 6}, + {"R_MIPS_PC16", Const, 6}, + {"R_MIPS_PC32", Const, 22}, + {"R_MIPS_PJUMP", Const, 6}, + {"R_MIPS_REL16", Const, 6}, + {"R_MIPS_REL32", Const, 6}, + {"R_MIPS_RELGOT", Const, 6}, + {"R_MIPS_SCN_DISP", Const, 6}, + {"R_MIPS_SHIFT5", Const, 6}, + {"R_MIPS_SHIFT6", Const, 6}, + {"R_MIPS_SUB", Const, 6}, + {"R_MIPS_TLS_DTPMOD32", Const, 6}, + {"R_MIPS_TLS_DTPMOD64", Const, 6}, + {"R_MIPS_TLS_DTPREL32", Const, 6}, + {"R_MIPS_TLS_DTPREL64", Const, 6}, + {"R_MIPS_TLS_DTPREL_HI16", Const, 6}, + {"R_MIPS_TLS_DTPREL_LO16", Const, 6}, + {"R_MIPS_TLS_GD", Const, 6}, + {"R_MIPS_TLS_GOTTPREL", Const, 6}, + {"R_MIPS_TLS_LDM", Const, 6}, + {"R_MIPS_TLS_TPREL32", Const, 6}, + {"R_MIPS_TLS_TPREL64", Const, 6}, + {"R_MIPS_TLS_TPREL_HI16", Const, 6}, + {"R_MIPS_TLS_TPREL_LO16", Const, 6}, + {"R_PPC", Type, 0}, + {"R_PPC64", Type, 5}, + {"R_PPC64_ADDR14", Const, 5}, + {"R_PPC64_ADDR14_BRNTAKEN", Const, 5}, + {"R_PPC64_ADDR14_BRTAKEN", Const, 5}, + {"R_PPC64_ADDR16", Const, 5}, + {"R_PPC64_ADDR16_DS", Const, 5}, + {"R_PPC64_ADDR16_HA", Const, 5}, + {"R_PPC64_ADDR16_HI", Const, 5}, + {"R_PPC64_ADDR16_HIGH", Const, 10}, + {"R_PPC64_ADDR16_HIGHA", Const, 10}, + {"R_PPC64_ADDR16_HIGHER", Const, 5}, + {"R_PPC64_ADDR16_HIGHER34", Const, 20}, + {"R_PPC64_ADDR16_HIGHERA", Const, 5}, + {"R_PPC64_ADDR16_HIGHERA34", Const, 20}, + {"R_PPC64_ADDR16_HIGHEST", Const, 5}, + {"R_PPC64_ADDR16_HIGHEST34", Const, 20}, + {"R_PPC64_ADDR16_HIGHESTA", Const, 5}, + {"R_PPC64_ADDR16_HIGHESTA34", Const, 20}, + {"R_PPC64_ADDR16_LO", Const, 5}, + {"R_PPC64_ADDR16_LO_DS", Const, 5}, + {"R_PPC64_ADDR24", Const, 5}, + {"R_PPC64_ADDR32", Const, 5}, + {"R_PPC64_ADDR64", Const, 5}, + {"R_PPC64_ADDR64_LOCAL", Const, 10}, + {"R_PPC64_COPY", Const, 20}, + {"R_PPC64_D28", Const, 20}, + {"R_PPC64_D34", Const, 20}, + {"R_PPC64_D34_HA30", Const, 20}, + {"R_PPC64_D34_HI30", Const, 20}, + {"R_PPC64_D34_LO", Const, 20}, + {"R_PPC64_DTPMOD64", Const, 5}, + {"R_PPC64_DTPREL16", Const, 5}, + {"R_PPC64_DTPREL16_DS", Const, 5}, + {"R_PPC64_DTPREL16_HA", Const, 5}, + {"R_PPC64_DTPREL16_HI", Const, 5}, + {"R_PPC64_DTPREL16_HIGH", Const, 10}, + {"R_PPC64_DTPREL16_HIGHA", Const, 10}, + {"R_PPC64_DTPREL16_HIGHER", Const, 5}, + {"R_PPC64_DTPREL16_HIGHERA", Const, 5}, + {"R_PPC64_DTPREL16_HIGHEST", Const, 5}, + {"R_PPC64_DTPREL16_HIGHESTA", Const, 5}, + {"R_PPC64_DTPREL16_LO", Const, 5}, + {"R_PPC64_DTPREL16_LO_DS", Const, 5}, + {"R_PPC64_DTPREL34", Const, 20}, + {"R_PPC64_DTPREL64", Const, 5}, + {"R_PPC64_ENTRY", Const, 10}, + {"R_PPC64_GLOB_DAT", Const, 20}, + {"R_PPC64_GNU_VTENTRY", Const, 20}, + {"R_PPC64_GNU_VTINHERIT", Const, 20}, + {"R_PPC64_GOT16", Const, 5}, + {"R_PPC64_GOT16_DS", Const, 5}, + {"R_PPC64_GOT16_HA", Const, 5}, + {"R_PPC64_GOT16_HI", Const, 5}, + {"R_PPC64_GOT16_LO", Const, 5}, + {"R_PPC64_GOT16_LO_DS", Const, 5}, + {"R_PPC64_GOT_DTPREL16_DS", Const, 5}, + {"R_PPC64_GOT_DTPREL16_HA", Const, 5}, + {"R_PPC64_GOT_DTPREL16_HI", Const, 5}, + {"R_PPC64_GOT_DTPREL16_LO_DS", Const, 5}, + {"R_PPC64_GOT_DTPREL_PCREL34", Const, 20}, + {"R_PPC64_GOT_PCREL34", Const, 20}, + {"R_PPC64_GOT_TLSGD16", Const, 5}, + {"R_PPC64_GOT_TLSGD16_HA", Const, 5}, + {"R_PPC64_GOT_TLSGD16_HI", Const, 5}, + {"R_PPC64_GOT_TLSGD16_LO", Const, 5}, + {"R_PPC64_GOT_TLSGD_PCREL34", Const, 20}, + {"R_PPC64_GOT_TLSLD16", Const, 5}, + {"R_PPC64_GOT_TLSLD16_HA", Const, 5}, + {"R_PPC64_GOT_TLSLD16_HI", Const, 5}, + {"R_PPC64_GOT_TLSLD16_LO", Const, 5}, + {"R_PPC64_GOT_TLSLD_PCREL34", Const, 20}, + {"R_PPC64_GOT_TPREL16_DS", Const, 5}, + {"R_PPC64_GOT_TPREL16_HA", Const, 5}, + {"R_PPC64_GOT_TPREL16_HI", Const, 5}, + {"R_PPC64_GOT_TPREL16_LO_DS", Const, 5}, + {"R_PPC64_GOT_TPREL_PCREL34", Const, 20}, + {"R_PPC64_IRELATIVE", Const, 10}, + {"R_PPC64_JMP_IREL", Const, 10}, + {"R_PPC64_JMP_SLOT", Const, 5}, + {"R_PPC64_NONE", Const, 5}, + {"R_PPC64_PCREL28", Const, 20}, + {"R_PPC64_PCREL34", Const, 20}, + {"R_PPC64_PCREL_OPT", Const, 20}, + {"R_PPC64_PLT16_HA", Const, 20}, + {"R_PPC64_PLT16_HI", Const, 20}, + {"R_PPC64_PLT16_LO", Const, 20}, + {"R_PPC64_PLT16_LO_DS", Const, 10}, + {"R_PPC64_PLT32", Const, 20}, + {"R_PPC64_PLT64", Const, 20}, + {"R_PPC64_PLTCALL", Const, 20}, + {"R_PPC64_PLTCALL_NOTOC", Const, 20}, + {"R_PPC64_PLTGOT16", Const, 10}, + {"R_PPC64_PLTGOT16_DS", Const, 10}, + {"R_PPC64_PLTGOT16_HA", Const, 10}, + {"R_PPC64_PLTGOT16_HI", Const, 10}, + {"R_PPC64_PLTGOT16_LO", Const, 10}, + {"R_PPC64_PLTGOT_LO_DS", Const, 10}, + {"R_PPC64_PLTREL32", Const, 20}, + {"R_PPC64_PLTREL64", Const, 20}, + {"R_PPC64_PLTSEQ", Const, 20}, + {"R_PPC64_PLTSEQ_NOTOC", Const, 20}, + {"R_PPC64_PLT_PCREL34", Const, 20}, + {"R_PPC64_PLT_PCREL34_NOTOC", Const, 20}, + {"R_PPC64_REL14", Const, 5}, + {"R_PPC64_REL14_BRNTAKEN", Const, 5}, + {"R_PPC64_REL14_BRTAKEN", Const, 5}, + {"R_PPC64_REL16", Const, 5}, + {"R_PPC64_REL16DX_HA", Const, 10}, + {"R_PPC64_REL16_HA", Const, 5}, + {"R_PPC64_REL16_HI", Const, 5}, + {"R_PPC64_REL16_HIGH", Const, 20}, + {"R_PPC64_REL16_HIGHA", Const, 20}, + {"R_PPC64_REL16_HIGHER", Const, 20}, + {"R_PPC64_REL16_HIGHER34", Const, 20}, + {"R_PPC64_REL16_HIGHERA", Const, 20}, + {"R_PPC64_REL16_HIGHERA34", Const, 20}, + {"R_PPC64_REL16_HIGHEST", Const, 20}, + {"R_PPC64_REL16_HIGHEST34", Const, 20}, + {"R_PPC64_REL16_HIGHESTA", Const, 20}, + {"R_PPC64_REL16_HIGHESTA34", Const, 20}, + {"R_PPC64_REL16_LO", Const, 5}, + {"R_PPC64_REL24", Const, 5}, + {"R_PPC64_REL24_NOTOC", Const, 10}, + {"R_PPC64_REL24_P9NOTOC", Const, 21}, + {"R_PPC64_REL30", Const, 20}, + {"R_PPC64_REL32", Const, 5}, + {"R_PPC64_REL64", Const, 5}, + {"R_PPC64_RELATIVE", Const, 18}, + {"R_PPC64_SECTOFF", Const, 20}, + {"R_PPC64_SECTOFF_DS", Const, 10}, + {"R_PPC64_SECTOFF_HA", Const, 20}, + {"R_PPC64_SECTOFF_HI", Const, 20}, + {"R_PPC64_SECTOFF_LO", Const, 20}, + {"R_PPC64_SECTOFF_LO_DS", Const, 10}, + {"R_PPC64_TLS", Const, 5}, + {"R_PPC64_TLSGD", Const, 5}, + {"R_PPC64_TLSLD", Const, 5}, + {"R_PPC64_TOC", Const, 5}, + {"R_PPC64_TOC16", Const, 5}, + {"R_PPC64_TOC16_DS", Const, 5}, + {"R_PPC64_TOC16_HA", Const, 5}, + {"R_PPC64_TOC16_HI", Const, 5}, + {"R_PPC64_TOC16_LO", Const, 5}, + {"R_PPC64_TOC16_LO_DS", Const, 5}, + {"R_PPC64_TOCSAVE", Const, 10}, + {"R_PPC64_TPREL16", Const, 5}, + {"R_PPC64_TPREL16_DS", Const, 5}, + {"R_PPC64_TPREL16_HA", Const, 5}, + {"R_PPC64_TPREL16_HI", Const, 5}, + {"R_PPC64_TPREL16_HIGH", Const, 10}, + {"R_PPC64_TPREL16_HIGHA", Const, 10}, + {"R_PPC64_TPREL16_HIGHER", Const, 5}, + {"R_PPC64_TPREL16_HIGHERA", Const, 5}, + {"R_PPC64_TPREL16_HIGHEST", Const, 5}, + {"R_PPC64_TPREL16_HIGHESTA", Const, 5}, + {"R_PPC64_TPREL16_LO", Const, 5}, + {"R_PPC64_TPREL16_LO_DS", Const, 5}, + {"R_PPC64_TPREL34", Const, 20}, + {"R_PPC64_TPREL64", Const, 5}, + {"R_PPC64_UADDR16", Const, 20}, + {"R_PPC64_UADDR32", Const, 20}, + {"R_PPC64_UADDR64", Const, 20}, + {"R_PPC_ADDR14", Const, 0}, + {"R_PPC_ADDR14_BRNTAKEN", Const, 0}, + {"R_PPC_ADDR14_BRTAKEN", Const, 0}, + {"R_PPC_ADDR16", Const, 0}, + {"R_PPC_ADDR16_HA", Const, 0}, + {"R_PPC_ADDR16_HI", Const, 0}, + {"R_PPC_ADDR16_LO", Const, 0}, + {"R_PPC_ADDR24", Const, 0}, + {"R_PPC_ADDR32", Const, 0}, + {"R_PPC_COPY", Const, 0}, + {"R_PPC_DTPMOD32", Const, 0}, + {"R_PPC_DTPREL16", Const, 0}, + {"R_PPC_DTPREL16_HA", Const, 0}, + {"R_PPC_DTPREL16_HI", Const, 0}, + {"R_PPC_DTPREL16_LO", Const, 0}, + {"R_PPC_DTPREL32", Const, 0}, + {"R_PPC_EMB_BIT_FLD", Const, 0}, + {"R_PPC_EMB_MRKREF", Const, 0}, + {"R_PPC_EMB_NADDR16", Const, 0}, + {"R_PPC_EMB_NADDR16_HA", Const, 0}, + {"R_PPC_EMB_NADDR16_HI", Const, 0}, + {"R_PPC_EMB_NADDR16_LO", Const, 0}, + {"R_PPC_EMB_NADDR32", Const, 0}, + {"R_PPC_EMB_RELSDA", Const, 0}, + {"R_PPC_EMB_RELSEC16", Const, 0}, + {"R_PPC_EMB_RELST_HA", Const, 0}, + {"R_PPC_EMB_RELST_HI", Const, 0}, + {"R_PPC_EMB_RELST_LO", Const, 0}, + {"R_PPC_EMB_SDA21", Const, 0}, + {"R_PPC_EMB_SDA2I16", Const, 0}, + {"R_PPC_EMB_SDA2REL", Const, 0}, + {"R_PPC_EMB_SDAI16", Const, 0}, + {"R_PPC_GLOB_DAT", Const, 0}, + {"R_PPC_GOT16", Const, 0}, + {"R_PPC_GOT16_HA", Const, 0}, + {"R_PPC_GOT16_HI", Const, 0}, + {"R_PPC_GOT16_LO", Const, 0}, + {"R_PPC_GOT_TLSGD16", Const, 0}, + {"R_PPC_GOT_TLSGD16_HA", Const, 0}, + {"R_PPC_GOT_TLSGD16_HI", Const, 0}, + {"R_PPC_GOT_TLSGD16_LO", Const, 0}, + {"R_PPC_GOT_TLSLD16", Const, 0}, + {"R_PPC_GOT_TLSLD16_HA", Const, 0}, + {"R_PPC_GOT_TLSLD16_HI", Const, 0}, + {"R_PPC_GOT_TLSLD16_LO", Const, 0}, + {"R_PPC_GOT_TPREL16", Const, 0}, + {"R_PPC_GOT_TPREL16_HA", Const, 0}, + {"R_PPC_GOT_TPREL16_HI", Const, 0}, + {"R_PPC_GOT_TPREL16_LO", Const, 0}, + {"R_PPC_JMP_SLOT", Const, 0}, + {"R_PPC_LOCAL24PC", Const, 0}, + {"R_PPC_NONE", Const, 0}, + {"R_PPC_PLT16_HA", Const, 0}, + {"R_PPC_PLT16_HI", Const, 0}, + {"R_PPC_PLT16_LO", Const, 0}, + {"R_PPC_PLT32", Const, 0}, + {"R_PPC_PLTREL24", Const, 0}, + {"R_PPC_PLTREL32", Const, 0}, + {"R_PPC_REL14", Const, 0}, + {"R_PPC_REL14_BRNTAKEN", Const, 0}, + {"R_PPC_REL14_BRTAKEN", Const, 0}, + {"R_PPC_REL24", Const, 0}, + {"R_PPC_REL32", Const, 0}, + {"R_PPC_RELATIVE", Const, 0}, + {"R_PPC_SDAREL16", Const, 0}, + {"R_PPC_SECTOFF", Const, 0}, + {"R_PPC_SECTOFF_HA", Const, 0}, + {"R_PPC_SECTOFF_HI", Const, 0}, + {"R_PPC_SECTOFF_LO", Const, 0}, + {"R_PPC_TLS", Const, 0}, + {"R_PPC_TPREL16", Const, 0}, + {"R_PPC_TPREL16_HA", Const, 0}, + {"R_PPC_TPREL16_HI", Const, 0}, + {"R_PPC_TPREL16_LO", Const, 0}, + {"R_PPC_TPREL32", Const, 0}, + {"R_PPC_UADDR16", Const, 0}, + {"R_PPC_UADDR32", Const, 0}, + {"R_RISCV", Type, 11}, + {"R_RISCV_32", Const, 11}, + {"R_RISCV_32_PCREL", Const, 12}, + {"R_RISCV_64", Const, 11}, + {"R_RISCV_ADD16", Const, 11}, + {"R_RISCV_ADD32", Const, 11}, + {"R_RISCV_ADD64", Const, 11}, + {"R_RISCV_ADD8", Const, 11}, + {"R_RISCV_ALIGN", Const, 11}, + {"R_RISCV_BRANCH", Const, 11}, + {"R_RISCV_CALL", Const, 11}, + {"R_RISCV_CALL_PLT", Const, 11}, + {"R_RISCV_COPY", Const, 11}, + {"R_RISCV_GNU_VTENTRY", Const, 11}, + {"R_RISCV_GNU_VTINHERIT", Const, 11}, + {"R_RISCV_GOT_HI20", Const, 11}, + {"R_RISCV_GPREL_I", Const, 11}, + {"R_RISCV_GPREL_S", Const, 11}, + {"R_RISCV_HI20", Const, 11}, + {"R_RISCV_JAL", Const, 11}, + {"R_RISCV_JUMP_SLOT", Const, 11}, + {"R_RISCV_LO12_I", Const, 11}, + {"R_RISCV_LO12_S", Const, 11}, + {"R_RISCV_NONE", Const, 11}, + {"R_RISCV_PCREL_HI20", Const, 11}, + {"R_RISCV_PCREL_LO12_I", Const, 11}, + {"R_RISCV_PCREL_LO12_S", Const, 11}, + {"R_RISCV_RELATIVE", Const, 11}, + {"R_RISCV_RELAX", Const, 11}, + {"R_RISCV_RVC_BRANCH", Const, 11}, + {"R_RISCV_RVC_JUMP", Const, 11}, + {"R_RISCV_RVC_LUI", Const, 11}, + {"R_RISCV_SET16", Const, 11}, + {"R_RISCV_SET32", Const, 11}, + {"R_RISCV_SET6", Const, 11}, + {"R_RISCV_SET8", Const, 11}, + {"R_RISCV_SUB16", Const, 11}, + {"R_RISCV_SUB32", Const, 11}, + {"R_RISCV_SUB6", Const, 11}, + {"R_RISCV_SUB64", Const, 11}, + {"R_RISCV_SUB8", Const, 11}, + {"R_RISCV_TLS_DTPMOD32", Const, 11}, + {"R_RISCV_TLS_DTPMOD64", Const, 11}, + {"R_RISCV_TLS_DTPREL32", Const, 11}, + {"R_RISCV_TLS_DTPREL64", Const, 11}, + {"R_RISCV_TLS_GD_HI20", Const, 11}, + {"R_RISCV_TLS_GOT_HI20", Const, 11}, + {"R_RISCV_TLS_TPREL32", Const, 11}, + {"R_RISCV_TLS_TPREL64", Const, 11}, + {"R_RISCV_TPREL_ADD", Const, 11}, + {"R_RISCV_TPREL_HI20", Const, 11}, + {"R_RISCV_TPREL_I", Const, 11}, + {"R_RISCV_TPREL_LO12_I", Const, 11}, + {"R_RISCV_TPREL_LO12_S", Const, 11}, + {"R_RISCV_TPREL_S", Const, 11}, + {"R_SPARC", Type, 0}, + {"R_SPARC_10", Const, 0}, + {"R_SPARC_11", Const, 0}, + {"R_SPARC_13", Const, 0}, + {"R_SPARC_16", Const, 0}, + {"R_SPARC_22", Const, 0}, + {"R_SPARC_32", Const, 0}, + {"R_SPARC_5", Const, 0}, + {"R_SPARC_6", Const, 0}, + {"R_SPARC_64", Const, 0}, + {"R_SPARC_7", Const, 0}, + {"R_SPARC_8", Const, 0}, + {"R_SPARC_COPY", Const, 0}, + {"R_SPARC_DISP16", Const, 0}, + {"R_SPARC_DISP32", Const, 0}, + {"R_SPARC_DISP64", Const, 0}, + {"R_SPARC_DISP8", Const, 0}, + {"R_SPARC_GLOB_DAT", Const, 0}, + {"R_SPARC_GLOB_JMP", Const, 0}, + {"R_SPARC_GOT10", Const, 0}, + {"R_SPARC_GOT13", Const, 0}, + {"R_SPARC_GOT22", Const, 0}, + {"R_SPARC_H44", Const, 0}, + {"R_SPARC_HH22", Const, 0}, + {"R_SPARC_HI22", Const, 0}, + {"R_SPARC_HIPLT22", Const, 0}, + {"R_SPARC_HIX22", Const, 0}, + {"R_SPARC_HM10", Const, 0}, + {"R_SPARC_JMP_SLOT", Const, 0}, + {"R_SPARC_L44", Const, 0}, + {"R_SPARC_LM22", Const, 0}, + {"R_SPARC_LO10", Const, 0}, + {"R_SPARC_LOPLT10", Const, 0}, + {"R_SPARC_LOX10", Const, 0}, + {"R_SPARC_M44", Const, 0}, + {"R_SPARC_NONE", Const, 0}, + {"R_SPARC_OLO10", Const, 0}, + {"R_SPARC_PC10", Const, 0}, + {"R_SPARC_PC22", Const, 0}, + {"R_SPARC_PCPLT10", Const, 0}, + {"R_SPARC_PCPLT22", Const, 0}, + {"R_SPARC_PCPLT32", Const, 0}, + {"R_SPARC_PC_HH22", Const, 0}, + {"R_SPARC_PC_HM10", Const, 0}, + {"R_SPARC_PC_LM22", Const, 0}, + {"R_SPARC_PLT32", Const, 0}, + {"R_SPARC_PLT64", Const, 0}, + {"R_SPARC_REGISTER", Const, 0}, + {"R_SPARC_RELATIVE", Const, 0}, + {"R_SPARC_UA16", Const, 0}, + {"R_SPARC_UA32", Const, 0}, + {"R_SPARC_UA64", Const, 0}, + {"R_SPARC_WDISP16", Const, 0}, + {"R_SPARC_WDISP19", Const, 0}, + {"R_SPARC_WDISP22", Const, 0}, + {"R_SPARC_WDISP30", Const, 0}, + {"R_SPARC_WPLT30", Const, 0}, + {"R_SYM32", Func, 0}, + {"R_SYM64", Func, 0}, + {"R_TYPE32", Func, 0}, + {"R_TYPE64", Func, 0}, + {"R_X86_64", Type, 0}, + {"R_X86_64_16", Const, 0}, + {"R_X86_64_32", Const, 0}, + {"R_X86_64_32S", Const, 0}, + {"R_X86_64_64", Const, 0}, + {"R_X86_64_8", Const, 0}, + {"R_X86_64_COPY", Const, 0}, + {"R_X86_64_DTPMOD64", Const, 0}, + {"R_X86_64_DTPOFF32", Const, 0}, + {"R_X86_64_DTPOFF64", Const, 0}, + {"R_X86_64_GLOB_DAT", Const, 0}, + {"R_X86_64_GOT32", Const, 0}, + {"R_X86_64_GOT64", Const, 10}, + {"R_X86_64_GOTOFF64", Const, 10}, + {"R_X86_64_GOTPC32", Const, 10}, + {"R_X86_64_GOTPC32_TLSDESC", Const, 10}, + {"R_X86_64_GOTPC64", Const, 10}, + {"R_X86_64_GOTPCREL", Const, 0}, + {"R_X86_64_GOTPCREL64", Const, 10}, + {"R_X86_64_GOTPCRELX", Const, 10}, + {"R_X86_64_GOTPLT64", Const, 10}, + {"R_X86_64_GOTTPOFF", Const, 0}, + {"R_X86_64_IRELATIVE", Const, 10}, + {"R_X86_64_JMP_SLOT", Const, 0}, + {"R_X86_64_NONE", Const, 0}, + {"R_X86_64_PC16", Const, 0}, + {"R_X86_64_PC32", Const, 0}, + {"R_X86_64_PC32_BND", Const, 10}, + {"R_X86_64_PC64", Const, 10}, + {"R_X86_64_PC8", Const, 0}, + {"R_X86_64_PLT32", Const, 0}, + {"R_X86_64_PLT32_BND", Const, 10}, + {"R_X86_64_PLTOFF64", Const, 10}, + {"R_X86_64_RELATIVE", Const, 0}, + {"R_X86_64_RELATIVE64", Const, 10}, + {"R_X86_64_REX_GOTPCRELX", Const, 10}, + {"R_X86_64_SIZE32", Const, 10}, + {"R_X86_64_SIZE64", Const, 10}, + {"R_X86_64_TLSDESC", Const, 10}, + {"R_X86_64_TLSDESC_CALL", Const, 10}, + {"R_X86_64_TLSGD", Const, 0}, + {"R_X86_64_TLSLD", Const, 0}, + {"R_X86_64_TPOFF32", Const, 0}, + {"R_X86_64_TPOFF64", Const, 0}, + {"Rel32", Type, 0}, + {"Rel32.Info", Field, 0}, + {"Rel32.Off", Field, 0}, + {"Rel64", Type, 0}, + {"Rel64.Info", Field, 0}, + {"Rel64.Off", Field, 0}, + {"Rela32", Type, 0}, + {"Rela32.Addend", Field, 0}, + {"Rela32.Info", Field, 0}, + {"Rela32.Off", Field, 0}, + {"Rela64", Type, 0}, + {"Rela64.Addend", Field, 0}, + {"Rela64.Info", Field, 0}, + {"Rela64.Off", Field, 0}, + {"SHF_ALLOC", Const, 0}, + {"SHF_COMPRESSED", Const, 6}, + {"SHF_EXECINSTR", Const, 0}, + {"SHF_GROUP", Const, 0}, + {"SHF_INFO_LINK", Const, 0}, + {"SHF_LINK_ORDER", Const, 0}, + {"SHF_MASKOS", Const, 0}, + {"SHF_MASKPROC", Const, 0}, + {"SHF_MERGE", Const, 0}, + {"SHF_OS_NONCONFORMING", Const, 0}, + {"SHF_STRINGS", Const, 0}, + {"SHF_TLS", Const, 0}, + {"SHF_WRITE", Const, 0}, + {"SHN_ABS", Const, 0}, + {"SHN_COMMON", Const, 0}, + {"SHN_HIOS", Const, 0}, + {"SHN_HIPROC", Const, 0}, + {"SHN_HIRESERVE", Const, 0}, + {"SHN_LOOS", Const, 0}, + {"SHN_LOPROC", Const, 0}, + {"SHN_LORESERVE", Const, 0}, + {"SHN_UNDEF", Const, 0}, + {"SHN_XINDEX", Const, 0}, + {"SHT_DYNAMIC", Const, 0}, + {"SHT_DYNSYM", Const, 0}, + {"SHT_FINI_ARRAY", Const, 0}, + {"SHT_GNU_ATTRIBUTES", Const, 0}, + {"SHT_GNU_HASH", Const, 0}, + {"SHT_GNU_LIBLIST", Const, 0}, + {"SHT_GNU_VERDEF", Const, 0}, + {"SHT_GNU_VERNEED", Const, 0}, + {"SHT_GNU_VERSYM", Const, 0}, + {"SHT_GROUP", Const, 0}, + {"SHT_HASH", Const, 0}, + {"SHT_HIOS", Const, 0}, + {"SHT_HIPROC", Const, 0}, + {"SHT_HIUSER", Const, 0}, + {"SHT_INIT_ARRAY", Const, 0}, + {"SHT_LOOS", Const, 0}, + {"SHT_LOPROC", Const, 0}, + {"SHT_LOUSER", Const, 0}, + {"SHT_MIPS_ABIFLAGS", Const, 17}, + {"SHT_NOBITS", Const, 0}, + {"SHT_NOTE", Const, 0}, + {"SHT_NULL", Const, 0}, + {"SHT_PREINIT_ARRAY", Const, 0}, + {"SHT_PROGBITS", Const, 0}, + {"SHT_REL", Const, 0}, + {"SHT_RELA", Const, 0}, + {"SHT_SHLIB", Const, 0}, + {"SHT_STRTAB", Const, 0}, + {"SHT_SYMTAB", Const, 0}, + {"SHT_SYMTAB_SHNDX", Const, 0}, + {"STB_GLOBAL", Const, 0}, + {"STB_HIOS", Const, 0}, + {"STB_HIPROC", Const, 0}, + {"STB_LOCAL", Const, 0}, + {"STB_LOOS", Const, 0}, + {"STB_LOPROC", Const, 0}, + {"STB_WEAK", Const, 0}, + {"STT_COMMON", Const, 0}, + {"STT_FILE", Const, 0}, + {"STT_FUNC", Const, 0}, + {"STT_HIOS", Const, 0}, + {"STT_HIPROC", Const, 0}, + {"STT_LOOS", Const, 0}, + {"STT_LOPROC", Const, 0}, + {"STT_NOTYPE", Const, 0}, + {"STT_OBJECT", Const, 0}, + {"STT_SECTION", Const, 0}, + {"STT_TLS", Const, 0}, + {"STV_DEFAULT", Const, 0}, + {"STV_HIDDEN", Const, 0}, + {"STV_INTERNAL", Const, 0}, + {"STV_PROTECTED", Const, 0}, + {"ST_BIND", Func, 0}, + {"ST_INFO", Func, 0}, + {"ST_TYPE", Func, 0}, + {"ST_VISIBILITY", Func, 0}, + {"Section", Type, 0}, + {"Section.ReaderAt", Field, 0}, + {"Section.SectionHeader", Field, 0}, + {"Section32", Type, 0}, + {"Section32.Addr", Field, 0}, + {"Section32.Addralign", Field, 0}, + {"Section32.Entsize", Field, 0}, + {"Section32.Flags", Field, 0}, + {"Section32.Info", Field, 0}, + {"Section32.Link", Field, 0}, + {"Section32.Name", Field, 0}, + {"Section32.Off", Field, 0}, + {"Section32.Size", Field, 0}, + {"Section32.Type", Field, 0}, + {"Section64", Type, 0}, + {"Section64.Addr", Field, 0}, + {"Section64.Addralign", Field, 0}, + {"Section64.Entsize", Field, 0}, + {"Section64.Flags", Field, 0}, + {"Section64.Info", Field, 0}, + {"Section64.Link", Field, 0}, + {"Section64.Name", Field, 0}, + {"Section64.Off", Field, 0}, + {"Section64.Size", Field, 0}, + {"Section64.Type", Field, 0}, + {"SectionFlag", Type, 0}, + {"SectionHeader", Type, 0}, + {"SectionHeader.Addr", Field, 0}, + {"SectionHeader.Addralign", Field, 0}, + {"SectionHeader.Entsize", Field, 0}, + {"SectionHeader.FileSize", Field, 6}, + {"SectionHeader.Flags", Field, 0}, + {"SectionHeader.Info", Field, 0}, + {"SectionHeader.Link", Field, 0}, + {"SectionHeader.Name", Field, 0}, + {"SectionHeader.Offset", Field, 0}, + {"SectionHeader.Size", Field, 0}, + {"SectionHeader.Type", Field, 0}, + {"SectionIndex", Type, 0}, + {"SectionType", Type, 0}, + {"Sym32", Type, 0}, + {"Sym32.Info", Field, 0}, + {"Sym32.Name", Field, 0}, + {"Sym32.Other", Field, 0}, + {"Sym32.Shndx", Field, 0}, + {"Sym32.Size", Field, 0}, + {"Sym32.Value", Field, 0}, + {"Sym32Size", Const, 0}, + {"Sym64", Type, 0}, + {"Sym64.Info", Field, 0}, + {"Sym64.Name", Field, 0}, + {"Sym64.Other", Field, 0}, + {"Sym64.Shndx", Field, 0}, + {"Sym64.Size", Field, 0}, + {"Sym64.Value", Field, 0}, + {"Sym64Size", Const, 0}, + {"SymBind", Type, 0}, + {"SymType", Type, 0}, + {"SymVis", Type, 0}, + {"Symbol", Type, 0}, + {"Symbol.Info", Field, 0}, + {"Symbol.Library", Field, 13}, + {"Symbol.Name", Field, 0}, + {"Symbol.Other", Field, 0}, + {"Symbol.Section", Field, 0}, + {"Symbol.Size", Field, 0}, + {"Symbol.Value", Field, 0}, + {"Symbol.Version", Field, 13}, + {"Type", Type, 0}, + {"Version", Type, 0}, + }, + "debug/gosym": { + {"(*DecodingError).Error", Method, 0}, + {"(*LineTable).LineToPC", Method, 0}, + {"(*LineTable).PCToLine", Method, 0}, + {"(*Sym).BaseName", Method, 0}, + {"(*Sym).PackageName", Method, 0}, + {"(*Sym).ReceiverName", Method, 0}, + {"(*Sym).Static", Method, 0}, + {"(*Table).LineToPC", Method, 0}, + {"(*Table).LookupFunc", Method, 0}, + {"(*Table).LookupSym", Method, 0}, + {"(*Table).PCToFunc", Method, 0}, + {"(*Table).PCToLine", Method, 0}, + {"(*Table).SymByAddr", Method, 0}, + {"(*UnknownLineError).Error", Method, 0}, + {"(Func).BaseName", Method, 0}, + {"(Func).PackageName", Method, 0}, + {"(Func).ReceiverName", Method, 0}, + {"(Func).Static", Method, 0}, + {"(UnknownFileError).Error", Method, 0}, + {"DecodingError", Type, 0}, + {"Func", Type, 0}, + {"Func.End", Field, 0}, + {"Func.Entry", Field, 0}, + {"Func.FrameSize", Field, 0}, + {"Func.LineTable", Field, 0}, + {"Func.Locals", Field, 0}, + {"Func.Obj", Field, 0}, + {"Func.Params", Field, 0}, + {"Func.Sym", Field, 0}, + {"LineTable", Type, 0}, + {"LineTable.Data", Field, 0}, + {"LineTable.Line", Field, 0}, + {"LineTable.PC", Field, 0}, + {"NewLineTable", Func, 0}, + {"NewTable", Func, 0}, + {"Obj", Type, 0}, + {"Obj.Funcs", Field, 0}, + {"Obj.Paths", Field, 0}, + {"Sym", Type, 0}, + {"Sym.Func", Field, 0}, + {"Sym.GoType", Field, 0}, + {"Sym.Name", Field, 0}, + {"Sym.Type", Field, 0}, + {"Sym.Value", Field, 0}, + {"Table", Type, 0}, + {"Table.Files", Field, 0}, + {"Table.Funcs", Field, 0}, + {"Table.Objs", Field, 0}, + {"Table.Syms", Field, 0}, + {"UnknownFileError", Type, 0}, + {"UnknownLineError", Type, 0}, + {"UnknownLineError.File", Field, 0}, + {"UnknownLineError.Line", Field, 0}, + }, + "debug/macho": { + {"(*FatFile).Close", Method, 3}, + {"(*File).Close", Method, 0}, + {"(*File).DWARF", Method, 0}, + {"(*File).ImportedLibraries", Method, 0}, + {"(*File).ImportedSymbols", Method, 0}, + {"(*File).Section", Method, 0}, + {"(*File).Segment", Method, 0}, + {"(*FormatError).Error", Method, 0}, + {"(*Section).Data", Method, 0}, + {"(*Section).Open", Method, 0}, + {"(*Segment).Data", Method, 0}, + {"(*Segment).Open", Method, 0}, + {"(Cpu).GoString", Method, 0}, + {"(Cpu).String", Method, 0}, + {"(Dylib).Raw", Method, 0}, + {"(Dysymtab).Raw", Method, 0}, + {"(FatArch).Close", Method, 3}, + {"(FatArch).DWARF", Method, 3}, + {"(FatArch).ImportedLibraries", Method, 3}, + {"(FatArch).ImportedSymbols", Method, 3}, + {"(FatArch).Section", Method, 3}, + {"(FatArch).Segment", Method, 3}, + {"(LoadBytes).Raw", Method, 0}, + {"(LoadCmd).GoString", Method, 0}, + {"(LoadCmd).String", Method, 0}, + {"(RelocTypeARM).GoString", Method, 10}, + {"(RelocTypeARM).String", Method, 10}, + {"(RelocTypeARM64).GoString", Method, 10}, + {"(RelocTypeARM64).String", Method, 10}, + {"(RelocTypeGeneric).GoString", Method, 10}, + {"(RelocTypeGeneric).String", Method, 10}, + {"(RelocTypeX86_64).GoString", Method, 10}, + {"(RelocTypeX86_64).String", Method, 10}, + {"(Rpath).Raw", Method, 10}, + {"(Section).ReadAt", Method, 0}, + {"(Segment).Raw", Method, 0}, + {"(Segment).ReadAt", Method, 0}, + {"(Symtab).Raw", Method, 0}, + {"(Type).GoString", Method, 10}, + {"(Type).String", Method, 10}, + {"ARM64_RELOC_ADDEND", Const, 10}, + {"ARM64_RELOC_BRANCH26", Const, 10}, + {"ARM64_RELOC_GOT_LOAD_PAGE21", Const, 10}, + {"ARM64_RELOC_GOT_LOAD_PAGEOFF12", Const, 10}, + {"ARM64_RELOC_PAGE21", Const, 10}, + {"ARM64_RELOC_PAGEOFF12", Const, 10}, + {"ARM64_RELOC_POINTER_TO_GOT", Const, 10}, + {"ARM64_RELOC_SUBTRACTOR", Const, 10}, + {"ARM64_RELOC_TLVP_LOAD_PAGE21", Const, 10}, + {"ARM64_RELOC_TLVP_LOAD_PAGEOFF12", Const, 10}, + {"ARM64_RELOC_UNSIGNED", Const, 10}, + {"ARM_RELOC_BR24", Const, 10}, + {"ARM_RELOC_HALF", Const, 10}, + {"ARM_RELOC_HALF_SECTDIFF", Const, 10}, + {"ARM_RELOC_LOCAL_SECTDIFF", Const, 10}, + {"ARM_RELOC_PAIR", Const, 10}, + {"ARM_RELOC_PB_LA_PTR", Const, 10}, + {"ARM_RELOC_SECTDIFF", Const, 10}, + {"ARM_RELOC_VANILLA", Const, 10}, + {"ARM_THUMB_32BIT_BRANCH", Const, 10}, + {"ARM_THUMB_RELOC_BR22", Const, 10}, + {"Cpu", Type, 0}, + {"Cpu386", Const, 0}, + {"CpuAmd64", Const, 0}, + {"CpuArm", Const, 3}, + {"CpuArm64", Const, 11}, + {"CpuPpc", Const, 3}, + {"CpuPpc64", Const, 3}, + {"Dylib", Type, 0}, + {"Dylib.CompatVersion", Field, 0}, + {"Dylib.CurrentVersion", Field, 0}, + {"Dylib.LoadBytes", Field, 0}, + {"Dylib.Name", Field, 0}, + {"Dylib.Time", Field, 0}, + {"DylibCmd", Type, 0}, + {"DylibCmd.Cmd", Field, 0}, + {"DylibCmd.CompatVersion", Field, 0}, + {"DylibCmd.CurrentVersion", Field, 0}, + {"DylibCmd.Len", Field, 0}, + {"DylibCmd.Name", Field, 0}, + {"DylibCmd.Time", Field, 0}, + {"Dysymtab", Type, 0}, + {"Dysymtab.DysymtabCmd", Field, 0}, + {"Dysymtab.IndirectSyms", Field, 0}, + {"Dysymtab.LoadBytes", Field, 0}, + {"DysymtabCmd", Type, 0}, + {"DysymtabCmd.Cmd", Field, 0}, + {"DysymtabCmd.Extrefsymoff", Field, 0}, + {"DysymtabCmd.Extreloff", Field, 0}, + {"DysymtabCmd.Iextdefsym", Field, 0}, + {"DysymtabCmd.Ilocalsym", Field, 0}, + {"DysymtabCmd.Indirectsymoff", Field, 0}, + {"DysymtabCmd.Iundefsym", Field, 0}, + {"DysymtabCmd.Len", Field, 0}, + {"DysymtabCmd.Locreloff", Field, 0}, + {"DysymtabCmd.Modtaboff", Field, 0}, + {"DysymtabCmd.Nextdefsym", Field, 0}, + {"DysymtabCmd.Nextrefsyms", Field, 0}, + {"DysymtabCmd.Nextrel", Field, 0}, + {"DysymtabCmd.Nindirectsyms", Field, 0}, + {"DysymtabCmd.Nlocalsym", Field, 0}, + {"DysymtabCmd.Nlocrel", Field, 0}, + {"DysymtabCmd.Nmodtab", Field, 0}, + {"DysymtabCmd.Ntoc", Field, 0}, + {"DysymtabCmd.Nundefsym", Field, 0}, + {"DysymtabCmd.Tocoffset", Field, 0}, + {"ErrNotFat", Var, 3}, + {"FatArch", Type, 3}, + {"FatArch.FatArchHeader", Field, 3}, + {"FatArch.File", Field, 3}, + {"FatArchHeader", Type, 3}, + {"FatArchHeader.Align", Field, 3}, + {"FatArchHeader.Cpu", Field, 3}, + {"FatArchHeader.Offset", Field, 3}, + {"FatArchHeader.Size", Field, 3}, + {"FatArchHeader.SubCpu", Field, 3}, + {"FatFile", Type, 3}, + {"FatFile.Arches", Field, 3}, + {"FatFile.Magic", Field, 3}, + {"File", Type, 0}, + {"File.ByteOrder", Field, 0}, + {"File.Dysymtab", Field, 0}, + {"File.FileHeader", Field, 0}, + {"File.Loads", Field, 0}, + {"File.Sections", Field, 0}, + {"File.Symtab", Field, 0}, + {"FileHeader", Type, 0}, + {"FileHeader.Cmdsz", Field, 0}, + {"FileHeader.Cpu", Field, 0}, + {"FileHeader.Flags", Field, 0}, + {"FileHeader.Magic", Field, 0}, + {"FileHeader.Ncmd", Field, 0}, + {"FileHeader.SubCpu", Field, 0}, + {"FileHeader.Type", Field, 0}, + {"FlagAllModsBound", Const, 10}, + {"FlagAllowStackExecution", Const, 10}, + {"FlagAppExtensionSafe", Const, 10}, + {"FlagBindAtLoad", Const, 10}, + {"FlagBindsToWeak", Const, 10}, + {"FlagCanonical", Const, 10}, + {"FlagDeadStrippableDylib", Const, 10}, + {"FlagDyldLink", Const, 10}, + {"FlagForceFlat", Const, 10}, + {"FlagHasTLVDescriptors", Const, 10}, + {"FlagIncrLink", Const, 10}, + {"FlagLazyInit", Const, 10}, + {"FlagNoFixPrebinding", Const, 10}, + {"FlagNoHeapExecution", Const, 10}, + {"FlagNoMultiDefs", Const, 10}, + {"FlagNoReexportedDylibs", Const, 10}, + {"FlagNoUndefs", Const, 10}, + {"FlagPIE", Const, 10}, + {"FlagPrebindable", Const, 10}, + {"FlagPrebound", Const, 10}, + {"FlagRootSafe", Const, 10}, + {"FlagSetuidSafe", Const, 10}, + {"FlagSplitSegs", Const, 10}, + {"FlagSubsectionsViaSymbols", Const, 10}, + {"FlagTwoLevel", Const, 10}, + {"FlagWeakDefines", Const, 10}, + {"FormatError", Type, 0}, + {"GENERIC_RELOC_LOCAL_SECTDIFF", Const, 10}, + {"GENERIC_RELOC_PAIR", Const, 10}, + {"GENERIC_RELOC_PB_LA_PTR", Const, 10}, + {"GENERIC_RELOC_SECTDIFF", Const, 10}, + {"GENERIC_RELOC_TLV", Const, 10}, + {"GENERIC_RELOC_VANILLA", Const, 10}, + {"Load", Type, 0}, + {"LoadBytes", Type, 0}, + {"LoadCmd", Type, 0}, + {"LoadCmdDylib", Const, 0}, + {"LoadCmdDylinker", Const, 0}, + {"LoadCmdDysymtab", Const, 0}, + {"LoadCmdRpath", Const, 10}, + {"LoadCmdSegment", Const, 0}, + {"LoadCmdSegment64", Const, 0}, + {"LoadCmdSymtab", Const, 0}, + {"LoadCmdThread", Const, 0}, + {"LoadCmdUnixThread", Const, 0}, + {"Magic32", Const, 0}, + {"Magic64", Const, 0}, + {"MagicFat", Const, 3}, + {"NewFatFile", Func, 3}, + {"NewFile", Func, 0}, + {"Nlist32", Type, 0}, + {"Nlist32.Desc", Field, 0}, + {"Nlist32.Name", Field, 0}, + {"Nlist32.Sect", Field, 0}, + {"Nlist32.Type", Field, 0}, + {"Nlist32.Value", Field, 0}, + {"Nlist64", Type, 0}, + {"Nlist64.Desc", Field, 0}, + {"Nlist64.Name", Field, 0}, + {"Nlist64.Sect", Field, 0}, + {"Nlist64.Type", Field, 0}, + {"Nlist64.Value", Field, 0}, + {"Open", Func, 0}, + {"OpenFat", Func, 3}, + {"Regs386", Type, 0}, + {"Regs386.AX", Field, 0}, + {"Regs386.BP", Field, 0}, + {"Regs386.BX", Field, 0}, + {"Regs386.CS", Field, 0}, + {"Regs386.CX", Field, 0}, + {"Regs386.DI", Field, 0}, + {"Regs386.DS", Field, 0}, + {"Regs386.DX", Field, 0}, + {"Regs386.ES", Field, 0}, + {"Regs386.FLAGS", Field, 0}, + {"Regs386.FS", Field, 0}, + {"Regs386.GS", Field, 0}, + {"Regs386.IP", Field, 0}, + {"Regs386.SI", Field, 0}, + {"Regs386.SP", Field, 0}, + {"Regs386.SS", Field, 0}, + {"RegsAMD64", Type, 0}, + {"RegsAMD64.AX", Field, 0}, + {"RegsAMD64.BP", Field, 0}, + {"RegsAMD64.BX", Field, 0}, + {"RegsAMD64.CS", Field, 0}, + {"RegsAMD64.CX", Field, 0}, + {"RegsAMD64.DI", Field, 0}, + {"RegsAMD64.DX", Field, 0}, + {"RegsAMD64.FLAGS", Field, 0}, + {"RegsAMD64.FS", Field, 0}, + {"RegsAMD64.GS", Field, 0}, + {"RegsAMD64.IP", Field, 0}, + {"RegsAMD64.R10", Field, 0}, + {"RegsAMD64.R11", Field, 0}, + {"RegsAMD64.R12", Field, 0}, + {"RegsAMD64.R13", Field, 0}, + {"RegsAMD64.R14", Field, 0}, + {"RegsAMD64.R15", Field, 0}, + {"RegsAMD64.R8", Field, 0}, + {"RegsAMD64.R9", Field, 0}, + {"RegsAMD64.SI", Field, 0}, + {"RegsAMD64.SP", Field, 0}, + {"Reloc", Type, 10}, + {"Reloc.Addr", Field, 10}, + {"Reloc.Extern", Field, 10}, + {"Reloc.Len", Field, 10}, + {"Reloc.Pcrel", Field, 10}, + {"Reloc.Scattered", Field, 10}, + {"Reloc.Type", Field, 10}, + {"Reloc.Value", Field, 10}, + {"RelocTypeARM", Type, 10}, + {"RelocTypeARM64", Type, 10}, + {"RelocTypeGeneric", Type, 10}, + {"RelocTypeX86_64", Type, 10}, + {"Rpath", Type, 10}, + {"Rpath.LoadBytes", Field, 10}, + {"Rpath.Path", Field, 10}, + {"RpathCmd", Type, 10}, + {"RpathCmd.Cmd", Field, 10}, + {"RpathCmd.Len", Field, 10}, + {"RpathCmd.Path", Field, 10}, + {"Section", Type, 0}, + {"Section.ReaderAt", Field, 0}, + {"Section.Relocs", Field, 10}, + {"Section.SectionHeader", Field, 0}, + {"Section32", Type, 0}, + {"Section32.Addr", Field, 0}, + {"Section32.Align", Field, 0}, + {"Section32.Flags", Field, 0}, + {"Section32.Name", Field, 0}, + {"Section32.Nreloc", Field, 0}, + {"Section32.Offset", Field, 0}, + {"Section32.Reloff", Field, 0}, + {"Section32.Reserve1", Field, 0}, + {"Section32.Reserve2", Field, 0}, + {"Section32.Seg", Field, 0}, + {"Section32.Size", Field, 0}, + {"Section64", Type, 0}, + {"Section64.Addr", Field, 0}, + {"Section64.Align", Field, 0}, + {"Section64.Flags", Field, 0}, + {"Section64.Name", Field, 0}, + {"Section64.Nreloc", Field, 0}, + {"Section64.Offset", Field, 0}, + {"Section64.Reloff", Field, 0}, + {"Section64.Reserve1", Field, 0}, + {"Section64.Reserve2", Field, 0}, + {"Section64.Reserve3", Field, 0}, + {"Section64.Seg", Field, 0}, + {"Section64.Size", Field, 0}, + {"SectionHeader", Type, 0}, + {"SectionHeader.Addr", Field, 0}, + {"SectionHeader.Align", Field, 0}, + {"SectionHeader.Flags", Field, 0}, + {"SectionHeader.Name", Field, 0}, + {"SectionHeader.Nreloc", Field, 0}, + {"SectionHeader.Offset", Field, 0}, + {"SectionHeader.Reloff", Field, 0}, + {"SectionHeader.Seg", Field, 0}, + {"SectionHeader.Size", Field, 0}, + {"Segment", Type, 0}, + {"Segment.LoadBytes", Field, 0}, + {"Segment.ReaderAt", Field, 0}, + {"Segment.SegmentHeader", Field, 0}, + {"Segment32", Type, 0}, + {"Segment32.Addr", Field, 0}, + {"Segment32.Cmd", Field, 0}, + {"Segment32.Filesz", Field, 0}, + {"Segment32.Flag", Field, 0}, + {"Segment32.Len", Field, 0}, + {"Segment32.Maxprot", Field, 0}, + {"Segment32.Memsz", Field, 0}, + {"Segment32.Name", Field, 0}, + {"Segment32.Nsect", Field, 0}, + {"Segment32.Offset", Field, 0}, + {"Segment32.Prot", Field, 0}, + {"Segment64", Type, 0}, + {"Segment64.Addr", Field, 0}, + {"Segment64.Cmd", Field, 0}, + {"Segment64.Filesz", Field, 0}, + {"Segment64.Flag", Field, 0}, + {"Segment64.Len", Field, 0}, + {"Segment64.Maxprot", Field, 0}, + {"Segment64.Memsz", Field, 0}, + {"Segment64.Name", Field, 0}, + {"Segment64.Nsect", Field, 0}, + {"Segment64.Offset", Field, 0}, + {"Segment64.Prot", Field, 0}, + {"SegmentHeader", Type, 0}, + {"SegmentHeader.Addr", Field, 0}, + {"SegmentHeader.Cmd", Field, 0}, + {"SegmentHeader.Filesz", Field, 0}, + {"SegmentHeader.Flag", Field, 0}, + {"SegmentHeader.Len", Field, 0}, + {"SegmentHeader.Maxprot", Field, 0}, + {"SegmentHeader.Memsz", Field, 0}, + {"SegmentHeader.Name", Field, 0}, + {"SegmentHeader.Nsect", Field, 0}, + {"SegmentHeader.Offset", Field, 0}, + {"SegmentHeader.Prot", Field, 0}, + {"Symbol", Type, 0}, + {"Symbol.Desc", Field, 0}, + {"Symbol.Name", Field, 0}, + {"Symbol.Sect", Field, 0}, + {"Symbol.Type", Field, 0}, + {"Symbol.Value", Field, 0}, + {"Symtab", Type, 0}, + {"Symtab.LoadBytes", Field, 0}, + {"Symtab.Syms", Field, 0}, + {"Symtab.SymtabCmd", Field, 0}, + {"SymtabCmd", Type, 0}, + {"SymtabCmd.Cmd", Field, 0}, + {"SymtabCmd.Len", Field, 0}, + {"SymtabCmd.Nsyms", Field, 0}, + {"SymtabCmd.Stroff", Field, 0}, + {"SymtabCmd.Strsize", Field, 0}, + {"SymtabCmd.Symoff", Field, 0}, + {"Thread", Type, 0}, + {"Thread.Cmd", Field, 0}, + {"Thread.Data", Field, 0}, + {"Thread.Len", Field, 0}, + {"Thread.Type", Field, 0}, + {"Type", Type, 0}, + {"TypeBundle", Const, 3}, + {"TypeDylib", Const, 3}, + {"TypeExec", Const, 0}, + {"TypeObj", Const, 0}, + {"X86_64_RELOC_BRANCH", Const, 10}, + {"X86_64_RELOC_GOT", Const, 10}, + {"X86_64_RELOC_GOT_LOAD", Const, 10}, + {"X86_64_RELOC_SIGNED", Const, 10}, + {"X86_64_RELOC_SIGNED_1", Const, 10}, + {"X86_64_RELOC_SIGNED_2", Const, 10}, + {"X86_64_RELOC_SIGNED_4", Const, 10}, + {"X86_64_RELOC_SUBTRACTOR", Const, 10}, + {"X86_64_RELOC_TLV", Const, 10}, + {"X86_64_RELOC_UNSIGNED", Const, 10}, + }, + "debug/pe": { + {"(*COFFSymbol).FullName", Method, 8}, + {"(*File).COFFSymbolReadSectionDefAux", Method, 19}, + {"(*File).Close", Method, 0}, + {"(*File).DWARF", Method, 0}, + {"(*File).ImportedLibraries", Method, 0}, + {"(*File).ImportedSymbols", Method, 0}, + {"(*File).Section", Method, 0}, + {"(*FormatError).Error", Method, 0}, + {"(*Section).Data", Method, 0}, + {"(*Section).Open", Method, 0}, + {"(Section).ReadAt", Method, 0}, + {"(StringTable).String", Method, 8}, + {"COFFSymbol", Type, 1}, + {"COFFSymbol.Name", Field, 1}, + {"COFFSymbol.NumberOfAuxSymbols", Field, 1}, + {"COFFSymbol.SectionNumber", Field, 1}, + {"COFFSymbol.StorageClass", Field, 1}, + {"COFFSymbol.Type", Field, 1}, + {"COFFSymbol.Value", Field, 1}, + {"COFFSymbolAuxFormat5", Type, 19}, + {"COFFSymbolAuxFormat5.Checksum", Field, 19}, + {"COFFSymbolAuxFormat5.NumLineNumbers", Field, 19}, + {"COFFSymbolAuxFormat5.NumRelocs", Field, 19}, + {"COFFSymbolAuxFormat5.SecNum", Field, 19}, + {"COFFSymbolAuxFormat5.Selection", Field, 19}, + {"COFFSymbolAuxFormat5.Size", Field, 19}, + {"COFFSymbolSize", Const, 1}, + {"DataDirectory", Type, 3}, + {"DataDirectory.Size", Field, 3}, + {"DataDirectory.VirtualAddress", Field, 3}, + {"File", Type, 0}, + {"File.COFFSymbols", Field, 8}, + {"File.FileHeader", Field, 0}, + {"File.OptionalHeader", Field, 3}, + {"File.Sections", Field, 0}, + {"File.StringTable", Field, 8}, + {"File.Symbols", Field, 1}, + {"FileHeader", Type, 0}, + {"FileHeader.Characteristics", Field, 0}, + {"FileHeader.Machine", Field, 0}, + {"FileHeader.NumberOfSections", Field, 0}, + {"FileHeader.NumberOfSymbols", Field, 0}, + {"FileHeader.PointerToSymbolTable", Field, 0}, + {"FileHeader.SizeOfOptionalHeader", Field, 0}, + {"FileHeader.TimeDateStamp", Field, 0}, + {"FormatError", Type, 0}, + {"IMAGE_COMDAT_SELECT_ANY", Const, 19}, + {"IMAGE_COMDAT_SELECT_ASSOCIATIVE", Const, 19}, + {"IMAGE_COMDAT_SELECT_EXACT_MATCH", Const, 19}, + {"IMAGE_COMDAT_SELECT_LARGEST", Const, 19}, + {"IMAGE_COMDAT_SELECT_NODUPLICATES", Const, 19}, + {"IMAGE_COMDAT_SELECT_SAME_SIZE", Const, 19}, + {"IMAGE_DIRECTORY_ENTRY_ARCHITECTURE", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_BASERELOC", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_DEBUG", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_EXCEPTION", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_EXPORT", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_GLOBALPTR", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_IAT", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_IMPORT", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_RESOURCE", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_SECURITY", Const, 11}, + {"IMAGE_DIRECTORY_ENTRY_TLS", Const, 11}, + {"IMAGE_DLLCHARACTERISTICS_APPCONTAINER", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_GUARD_CF", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_NO_BIND", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_NO_ISOLATION", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_NO_SEH", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_NX_COMPAT", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE", Const, 15}, + {"IMAGE_DLLCHARACTERISTICS_WDM_DRIVER", Const, 15}, + {"IMAGE_FILE_32BIT_MACHINE", Const, 15}, + {"IMAGE_FILE_AGGRESIVE_WS_TRIM", Const, 15}, + {"IMAGE_FILE_BYTES_REVERSED_HI", Const, 15}, + {"IMAGE_FILE_BYTES_REVERSED_LO", Const, 15}, + {"IMAGE_FILE_DEBUG_STRIPPED", Const, 15}, + {"IMAGE_FILE_DLL", Const, 15}, + {"IMAGE_FILE_EXECUTABLE_IMAGE", Const, 15}, + {"IMAGE_FILE_LARGE_ADDRESS_AWARE", Const, 15}, + {"IMAGE_FILE_LINE_NUMS_STRIPPED", Const, 15}, + {"IMAGE_FILE_LOCAL_SYMS_STRIPPED", Const, 15}, + {"IMAGE_FILE_MACHINE_AM33", Const, 0}, + {"IMAGE_FILE_MACHINE_AMD64", Const, 0}, + {"IMAGE_FILE_MACHINE_ARM", Const, 0}, + {"IMAGE_FILE_MACHINE_ARM64", Const, 11}, + {"IMAGE_FILE_MACHINE_ARMNT", Const, 12}, + {"IMAGE_FILE_MACHINE_EBC", Const, 0}, + {"IMAGE_FILE_MACHINE_I386", Const, 0}, + {"IMAGE_FILE_MACHINE_IA64", Const, 0}, + {"IMAGE_FILE_MACHINE_LOONGARCH32", Const, 19}, + {"IMAGE_FILE_MACHINE_LOONGARCH64", Const, 19}, + {"IMAGE_FILE_MACHINE_M32R", Const, 0}, + {"IMAGE_FILE_MACHINE_MIPS16", Const, 0}, + {"IMAGE_FILE_MACHINE_MIPSFPU", Const, 0}, + {"IMAGE_FILE_MACHINE_MIPSFPU16", Const, 0}, + {"IMAGE_FILE_MACHINE_POWERPC", Const, 0}, + {"IMAGE_FILE_MACHINE_POWERPCFP", Const, 0}, + {"IMAGE_FILE_MACHINE_R4000", Const, 0}, + {"IMAGE_FILE_MACHINE_RISCV128", Const, 20}, + {"IMAGE_FILE_MACHINE_RISCV32", Const, 20}, + {"IMAGE_FILE_MACHINE_RISCV64", Const, 20}, + {"IMAGE_FILE_MACHINE_SH3", Const, 0}, + {"IMAGE_FILE_MACHINE_SH3DSP", Const, 0}, + {"IMAGE_FILE_MACHINE_SH4", Const, 0}, + {"IMAGE_FILE_MACHINE_SH5", Const, 0}, + {"IMAGE_FILE_MACHINE_THUMB", Const, 0}, + {"IMAGE_FILE_MACHINE_UNKNOWN", Const, 0}, + {"IMAGE_FILE_MACHINE_WCEMIPSV2", Const, 0}, + {"IMAGE_FILE_NET_RUN_FROM_SWAP", Const, 15}, + {"IMAGE_FILE_RELOCS_STRIPPED", Const, 15}, + {"IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP", Const, 15}, + {"IMAGE_FILE_SYSTEM", Const, 15}, + {"IMAGE_FILE_UP_SYSTEM_ONLY", Const, 15}, + {"IMAGE_SCN_CNT_CODE", Const, 19}, + {"IMAGE_SCN_CNT_INITIALIZED_DATA", Const, 19}, + {"IMAGE_SCN_CNT_UNINITIALIZED_DATA", Const, 19}, + {"IMAGE_SCN_LNK_COMDAT", Const, 19}, + {"IMAGE_SCN_MEM_DISCARDABLE", Const, 19}, + {"IMAGE_SCN_MEM_EXECUTE", Const, 19}, + {"IMAGE_SCN_MEM_READ", Const, 19}, + {"IMAGE_SCN_MEM_WRITE", Const, 19}, + {"IMAGE_SUBSYSTEM_EFI_APPLICATION", Const, 15}, + {"IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER", Const, 15}, + {"IMAGE_SUBSYSTEM_EFI_ROM", Const, 15}, + {"IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER", Const, 15}, + {"IMAGE_SUBSYSTEM_NATIVE", Const, 15}, + {"IMAGE_SUBSYSTEM_NATIVE_WINDOWS", Const, 15}, + {"IMAGE_SUBSYSTEM_OS2_CUI", Const, 15}, + {"IMAGE_SUBSYSTEM_POSIX_CUI", Const, 15}, + {"IMAGE_SUBSYSTEM_UNKNOWN", Const, 15}, + {"IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION", Const, 15}, + {"IMAGE_SUBSYSTEM_WINDOWS_CE_GUI", Const, 15}, + {"IMAGE_SUBSYSTEM_WINDOWS_CUI", Const, 15}, + {"IMAGE_SUBSYSTEM_WINDOWS_GUI", Const, 15}, + {"IMAGE_SUBSYSTEM_XBOX", Const, 15}, + {"ImportDirectory", Type, 0}, + {"ImportDirectory.FirstThunk", Field, 0}, + {"ImportDirectory.ForwarderChain", Field, 0}, + {"ImportDirectory.Name", Field, 0}, + {"ImportDirectory.OriginalFirstThunk", Field, 0}, + {"ImportDirectory.TimeDateStamp", Field, 0}, + {"NewFile", Func, 0}, + {"Open", Func, 0}, + {"OptionalHeader32", Type, 3}, + {"OptionalHeader32.AddressOfEntryPoint", Field, 3}, + {"OptionalHeader32.BaseOfCode", Field, 3}, + {"OptionalHeader32.BaseOfData", Field, 3}, + {"OptionalHeader32.CheckSum", Field, 3}, + {"OptionalHeader32.DataDirectory", Field, 3}, + {"OptionalHeader32.DllCharacteristics", Field, 3}, + {"OptionalHeader32.FileAlignment", Field, 3}, + {"OptionalHeader32.ImageBase", Field, 3}, + {"OptionalHeader32.LoaderFlags", Field, 3}, + {"OptionalHeader32.Magic", Field, 3}, + {"OptionalHeader32.MajorImageVersion", Field, 3}, + {"OptionalHeader32.MajorLinkerVersion", Field, 3}, + {"OptionalHeader32.MajorOperatingSystemVersion", Field, 3}, + {"OptionalHeader32.MajorSubsystemVersion", Field, 3}, + {"OptionalHeader32.MinorImageVersion", Field, 3}, + {"OptionalHeader32.MinorLinkerVersion", Field, 3}, + {"OptionalHeader32.MinorOperatingSystemVersion", Field, 3}, + {"OptionalHeader32.MinorSubsystemVersion", Field, 3}, + {"OptionalHeader32.NumberOfRvaAndSizes", Field, 3}, + {"OptionalHeader32.SectionAlignment", Field, 3}, + {"OptionalHeader32.SizeOfCode", Field, 3}, + {"OptionalHeader32.SizeOfHeaders", Field, 3}, + {"OptionalHeader32.SizeOfHeapCommit", Field, 3}, + {"OptionalHeader32.SizeOfHeapReserve", Field, 3}, + {"OptionalHeader32.SizeOfImage", Field, 3}, + {"OptionalHeader32.SizeOfInitializedData", Field, 3}, + {"OptionalHeader32.SizeOfStackCommit", Field, 3}, + {"OptionalHeader32.SizeOfStackReserve", Field, 3}, + {"OptionalHeader32.SizeOfUninitializedData", Field, 3}, + {"OptionalHeader32.Subsystem", Field, 3}, + {"OptionalHeader32.Win32VersionValue", Field, 3}, + {"OptionalHeader64", Type, 3}, + {"OptionalHeader64.AddressOfEntryPoint", Field, 3}, + {"OptionalHeader64.BaseOfCode", Field, 3}, + {"OptionalHeader64.CheckSum", Field, 3}, + {"OptionalHeader64.DataDirectory", Field, 3}, + {"OptionalHeader64.DllCharacteristics", Field, 3}, + {"OptionalHeader64.FileAlignment", Field, 3}, + {"OptionalHeader64.ImageBase", Field, 3}, + {"OptionalHeader64.LoaderFlags", Field, 3}, + {"OptionalHeader64.Magic", Field, 3}, + {"OptionalHeader64.MajorImageVersion", Field, 3}, + {"OptionalHeader64.MajorLinkerVersion", Field, 3}, + {"OptionalHeader64.MajorOperatingSystemVersion", Field, 3}, + {"OptionalHeader64.MajorSubsystemVersion", Field, 3}, + {"OptionalHeader64.MinorImageVersion", Field, 3}, + {"OptionalHeader64.MinorLinkerVersion", Field, 3}, + {"OptionalHeader64.MinorOperatingSystemVersion", Field, 3}, + {"OptionalHeader64.MinorSubsystemVersion", Field, 3}, + {"OptionalHeader64.NumberOfRvaAndSizes", Field, 3}, + {"OptionalHeader64.SectionAlignment", Field, 3}, + {"OptionalHeader64.SizeOfCode", Field, 3}, + {"OptionalHeader64.SizeOfHeaders", Field, 3}, + {"OptionalHeader64.SizeOfHeapCommit", Field, 3}, + {"OptionalHeader64.SizeOfHeapReserve", Field, 3}, + {"OptionalHeader64.SizeOfImage", Field, 3}, + {"OptionalHeader64.SizeOfInitializedData", Field, 3}, + {"OptionalHeader64.SizeOfStackCommit", Field, 3}, + {"OptionalHeader64.SizeOfStackReserve", Field, 3}, + {"OptionalHeader64.SizeOfUninitializedData", Field, 3}, + {"OptionalHeader64.Subsystem", Field, 3}, + {"OptionalHeader64.Win32VersionValue", Field, 3}, + {"Reloc", Type, 8}, + {"Reloc.SymbolTableIndex", Field, 8}, + {"Reloc.Type", Field, 8}, + {"Reloc.VirtualAddress", Field, 8}, + {"Section", Type, 0}, + {"Section.ReaderAt", Field, 0}, + {"Section.Relocs", Field, 8}, + {"Section.SectionHeader", Field, 0}, + {"SectionHeader", Type, 0}, + {"SectionHeader.Characteristics", Field, 0}, + {"SectionHeader.Name", Field, 0}, + {"SectionHeader.NumberOfLineNumbers", Field, 0}, + {"SectionHeader.NumberOfRelocations", Field, 0}, + {"SectionHeader.Offset", Field, 0}, + {"SectionHeader.PointerToLineNumbers", Field, 0}, + {"SectionHeader.PointerToRelocations", Field, 0}, + {"SectionHeader.Size", Field, 0}, + {"SectionHeader.VirtualAddress", Field, 0}, + {"SectionHeader.VirtualSize", Field, 0}, + {"SectionHeader32", Type, 0}, + {"SectionHeader32.Characteristics", Field, 0}, + {"SectionHeader32.Name", Field, 0}, + {"SectionHeader32.NumberOfLineNumbers", Field, 0}, + {"SectionHeader32.NumberOfRelocations", Field, 0}, + {"SectionHeader32.PointerToLineNumbers", Field, 0}, + {"SectionHeader32.PointerToRawData", Field, 0}, + {"SectionHeader32.PointerToRelocations", Field, 0}, + {"SectionHeader32.SizeOfRawData", Field, 0}, + {"SectionHeader32.VirtualAddress", Field, 0}, + {"SectionHeader32.VirtualSize", Field, 0}, + {"StringTable", Type, 8}, + {"Symbol", Type, 1}, + {"Symbol.Name", Field, 1}, + {"Symbol.SectionNumber", Field, 1}, + {"Symbol.StorageClass", Field, 1}, + {"Symbol.Type", Field, 1}, + {"Symbol.Value", Field, 1}, + }, + "debug/plan9obj": { + {"(*File).Close", Method, 3}, + {"(*File).Section", Method, 3}, + {"(*File).Symbols", Method, 3}, + {"(*Section).Data", Method, 3}, + {"(*Section).Open", Method, 3}, + {"(Section).ReadAt", Method, 3}, + {"ErrNoSymbols", Var, 18}, + {"File", Type, 3}, + {"File.FileHeader", Field, 3}, + {"File.Sections", Field, 3}, + {"FileHeader", Type, 3}, + {"FileHeader.Bss", Field, 3}, + {"FileHeader.Entry", Field, 3}, + {"FileHeader.HdrSize", Field, 4}, + {"FileHeader.LoadAddress", Field, 4}, + {"FileHeader.Magic", Field, 3}, + {"FileHeader.PtrSize", Field, 3}, + {"Magic386", Const, 3}, + {"Magic64", Const, 3}, + {"MagicAMD64", Const, 3}, + {"MagicARM", Const, 3}, + {"NewFile", Func, 3}, + {"Open", Func, 3}, + {"Section", Type, 3}, + {"Section.ReaderAt", Field, 3}, + {"Section.SectionHeader", Field, 3}, + {"SectionHeader", Type, 3}, + {"SectionHeader.Name", Field, 3}, + {"SectionHeader.Offset", Field, 3}, + {"SectionHeader.Size", Field, 3}, + {"Sym", Type, 3}, + {"Sym.Name", Field, 3}, + {"Sym.Type", Field, 3}, + {"Sym.Value", Field, 3}, + }, + "embed": { + {"(FS).Open", Method, 16}, + {"(FS).ReadDir", Method, 16}, + {"(FS).ReadFile", Method, 16}, + {"FS", Type, 16}, + }, + "encoding": { + {"BinaryMarshaler", Type, 2}, + {"BinaryUnmarshaler", Type, 2}, + {"TextMarshaler", Type, 2}, + {"TextUnmarshaler", Type, 2}, + }, + "encoding/ascii85": { + {"(CorruptInputError).Error", Method, 0}, + {"CorruptInputError", Type, 0}, + {"Decode", Func, 0}, + {"Encode", Func, 0}, + {"MaxEncodedLen", Func, 0}, + {"NewDecoder", Func, 0}, + {"NewEncoder", Func, 0}, + }, + "encoding/asn1": { + {"(BitString).At", Method, 0}, + {"(BitString).RightAlign", Method, 0}, + {"(ObjectIdentifier).Equal", Method, 0}, + {"(ObjectIdentifier).String", Method, 3}, + {"(StructuralError).Error", Method, 0}, + {"(SyntaxError).Error", Method, 0}, + {"BitString", Type, 0}, + {"BitString.BitLength", Field, 0}, + {"BitString.Bytes", Field, 0}, + {"ClassApplication", Const, 6}, + {"ClassContextSpecific", Const, 6}, + {"ClassPrivate", Const, 6}, + {"ClassUniversal", Const, 6}, + {"Enumerated", Type, 0}, + {"Flag", Type, 0}, + {"Marshal", Func, 0}, + {"MarshalWithParams", Func, 10}, + {"NullBytes", Var, 9}, + {"NullRawValue", Var, 9}, + {"ObjectIdentifier", Type, 0}, + {"RawContent", Type, 0}, + {"RawValue", Type, 0}, + {"RawValue.Bytes", Field, 0}, + {"RawValue.Class", Field, 0}, + {"RawValue.FullBytes", Field, 0}, + {"RawValue.IsCompound", Field, 0}, + {"RawValue.Tag", Field, 0}, + {"StructuralError", Type, 0}, + {"StructuralError.Msg", Field, 0}, + {"SyntaxError", Type, 0}, + {"SyntaxError.Msg", Field, 0}, + {"TagBMPString", Const, 14}, + {"TagBitString", Const, 6}, + {"TagBoolean", Const, 6}, + {"TagEnum", Const, 6}, + {"TagGeneralString", Const, 6}, + {"TagGeneralizedTime", Const, 6}, + {"TagIA5String", Const, 6}, + {"TagInteger", Const, 6}, + {"TagNull", Const, 9}, + {"TagNumericString", Const, 10}, + {"TagOID", Const, 6}, + {"TagOctetString", Const, 6}, + {"TagPrintableString", Const, 6}, + {"TagSequence", Const, 6}, + {"TagSet", Const, 6}, + {"TagT61String", Const, 6}, + {"TagUTCTime", Const, 6}, + {"TagUTF8String", Const, 6}, + {"Unmarshal", Func, 0}, + {"UnmarshalWithParams", Func, 0}, + }, + "encoding/base32": { + {"(*Encoding).AppendDecode", Method, 22}, + {"(*Encoding).AppendEncode", Method, 22}, + {"(*Encoding).Decode", Method, 0}, + {"(*Encoding).DecodeString", Method, 0}, + {"(*Encoding).DecodedLen", Method, 0}, + {"(*Encoding).Encode", Method, 0}, + {"(*Encoding).EncodeToString", Method, 0}, + {"(*Encoding).EncodedLen", Method, 0}, + {"(CorruptInputError).Error", Method, 0}, + {"(Encoding).WithPadding", Method, 9}, + {"CorruptInputError", Type, 0}, + {"Encoding", Type, 0}, + {"HexEncoding", Var, 0}, + {"NewDecoder", Func, 0}, + {"NewEncoder", Func, 0}, + {"NewEncoding", Func, 0}, + {"NoPadding", Const, 9}, + {"StdEncoding", Var, 0}, + {"StdPadding", Const, 9}, + }, + "encoding/base64": { + {"(*Encoding).AppendDecode", Method, 22}, + {"(*Encoding).AppendEncode", Method, 22}, + {"(*Encoding).Decode", Method, 0}, + {"(*Encoding).DecodeString", Method, 0}, + {"(*Encoding).DecodedLen", Method, 0}, + {"(*Encoding).Encode", Method, 0}, + {"(*Encoding).EncodeToString", Method, 0}, + {"(*Encoding).EncodedLen", Method, 0}, + {"(CorruptInputError).Error", Method, 0}, + {"(Encoding).Strict", Method, 8}, + {"(Encoding).WithPadding", Method, 5}, + {"CorruptInputError", Type, 0}, + {"Encoding", Type, 0}, + {"NewDecoder", Func, 0}, + {"NewEncoder", Func, 0}, + {"NewEncoding", Func, 0}, + {"NoPadding", Const, 5}, + {"RawStdEncoding", Var, 5}, + {"RawURLEncoding", Var, 5}, + {"StdEncoding", Var, 0}, + {"StdPadding", Const, 5}, + {"URLEncoding", Var, 0}, + }, + "encoding/binary": { + {"AppendByteOrder", Type, 19}, + {"AppendUvarint", Func, 19}, + {"AppendVarint", Func, 19}, + {"BigEndian", Var, 0}, + {"ByteOrder", Type, 0}, + {"LittleEndian", Var, 0}, + {"MaxVarintLen16", Const, 0}, + {"MaxVarintLen32", Const, 0}, + {"MaxVarintLen64", Const, 0}, + {"NativeEndian", Var, 21}, + {"PutUvarint", Func, 0}, + {"PutVarint", Func, 0}, + {"Read", Func, 0}, + {"ReadUvarint", Func, 0}, + {"ReadVarint", Func, 0}, + {"Size", Func, 0}, + {"Uvarint", Func, 0}, + {"Varint", Func, 0}, + {"Write", Func, 0}, + }, + "encoding/csv": { + {"(*ParseError).Error", Method, 0}, + {"(*ParseError).Unwrap", Method, 13}, + {"(*Reader).FieldPos", Method, 17}, + {"(*Reader).InputOffset", Method, 19}, + {"(*Reader).Read", Method, 0}, + {"(*Reader).ReadAll", Method, 0}, + {"(*Writer).Error", Method, 1}, + {"(*Writer).Flush", Method, 0}, + {"(*Writer).Write", Method, 0}, + {"(*Writer).WriteAll", Method, 0}, + {"ErrBareQuote", Var, 0}, + {"ErrFieldCount", Var, 0}, + {"ErrQuote", Var, 0}, + {"ErrTrailingComma", Var, 0}, + {"NewReader", Func, 0}, + {"NewWriter", Func, 0}, + {"ParseError", Type, 0}, + {"ParseError.Column", Field, 0}, + {"ParseError.Err", Field, 0}, + {"ParseError.Line", Field, 0}, + {"ParseError.StartLine", Field, 10}, + {"Reader", Type, 0}, + {"Reader.Comma", Field, 0}, + {"Reader.Comment", Field, 0}, + {"Reader.FieldsPerRecord", Field, 0}, + {"Reader.LazyQuotes", Field, 0}, + {"Reader.ReuseRecord", Field, 9}, + {"Reader.TrailingComma", Field, 0}, + {"Reader.TrimLeadingSpace", Field, 0}, + {"Writer", Type, 0}, + {"Writer.Comma", Field, 0}, + {"Writer.UseCRLF", Field, 0}, + }, + "encoding/gob": { + {"(*Decoder).Decode", Method, 0}, + {"(*Decoder).DecodeValue", Method, 0}, + {"(*Encoder).Encode", Method, 0}, + {"(*Encoder).EncodeValue", Method, 0}, + {"CommonType", Type, 0}, + {"CommonType.Id", Field, 0}, + {"CommonType.Name", Field, 0}, + {"Decoder", Type, 0}, + {"Encoder", Type, 0}, + {"GobDecoder", Type, 0}, + {"GobEncoder", Type, 0}, + {"NewDecoder", Func, 0}, + {"NewEncoder", Func, 0}, + {"Register", Func, 0}, + {"RegisterName", Func, 0}, + }, + "encoding/hex": { + {"(InvalidByteError).Error", Method, 0}, + {"AppendDecode", Func, 22}, + {"AppendEncode", Func, 22}, + {"Decode", Func, 0}, + {"DecodeString", Func, 0}, + {"DecodedLen", Func, 0}, + {"Dump", Func, 0}, + {"Dumper", Func, 0}, + {"Encode", Func, 0}, + {"EncodeToString", Func, 0}, + {"EncodedLen", Func, 0}, + {"ErrLength", Var, 0}, + {"InvalidByteError", Type, 0}, + {"NewDecoder", Func, 10}, + {"NewEncoder", Func, 10}, + }, + "encoding/json": { + {"(*Decoder).Buffered", Method, 1}, + {"(*Decoder).Decode", Method, 0}, + {"(*Decoder).DisallowUnknownFields", Method, 10}, + {"(*Decoder).InputOffset", Method, 14}, + {"(*Decoder).More", Method, 5}, + {"(*Decoder).Token", Method, 5}, + {"(*Decoder).UseNumber", Method, 1}, + {"(*Encoder).Encode", Method, 0}, + {"(*Encoder).SetEscapeHTML", Method, 7}, + {"(*Encoder).SetIndent", Method, 7}, + {"(*InvalidUTF8Error).Error", Method, 0}, + {"(*InvalidUnmarshalError).Error", Method, 0}, + {"(*MarshalerError).Error", Method, 0}, + {"(*MarshalerError).Unwrap", Method, 13}, + {"(*RawMessage).MarshalJSON", Method, 0}, + {"(*RawMessage).UnmarshalJSON", Method, 0}, + {"(*SyntaxError).Error", Method, 0}, + {"(*UnmarshalFieldError).Error", Method, 0}, + {"(*UnmarshalTypeError).Error", Method, 0}, + {"(*UnsupportedTypeError).Error", Method, 0}, + {"(*UnsupportedValueError).Error", Method, 0}, + {"(Delim).String", Method, 5}, + {"(Number).Float64", Method, 1}, + {"(Number).Int64", Method, 1}, + {"(Number).String", Method, 1}, + {"(RawMessage).MarshalJSON", Method, 8}, + {"Compact", Func, 0}, + {"Decoder", Type, 0}, + {"Delim", Type, 5}, + {"Encoder", Type, 0}, + {"HTMLEscape", Func, 0}, + {"Indent", Func, 0}, + {"InvalidUTF8Error", Type, 0}, + {"InvalidUTF8Error.S", Field, 0}, + {"InvalidUnmarshalError", Type, 0}, + {"InvalidUnmarshalError.Type", Field, 0}, + {"Marshal", Func, 0}, + {"MarshalIndent", Func, 0}, + {"Marshaler", Type, 0}, + {"MarshalerError", Type, 0}, + {"MarshalerError.Err", Field, 0}, + {"MarshalerError.Type", Field, 0}, + {"NewDecoder", Func, 0}, + {"NewEncoder", Func, 0}, + {"Number", Type, 1}, + {"RawMessage", Type, 0}, + {"SyntaxError", Type, 0}, + {"SyntaxError.Offset", Field, 0}, + {"Token", Type, 5}, + {"Unmarshal", Func, 0}, + {"UnmarshalFieldError", Type, 0}, + {"UnmarshalFieldError.Field", Field, 0}, + {"UnmarshalFieldError.Key", Field, 0}, + {"UnmarshalFieldError.Type", Field, 0}, + {"UnmarshalTypeError", Type, 0}, + {"UnmarshalTypeError.Field", Field, 8}, + {"UnmarshalTypeError.Offset", Field, 5}, + {"UnmarshalTypeError.Struct", Field, 8}, + {"UnmarshalTypeError.Type", Field, 0}, + {"UnmarshalTypeError.Value", Field, 0}, + {"Unmarshaler", Type, 0}, + {"UnsupportedTypeError", Type, 0}, + {"UnsupportedTypeError.Type", Field, 0}, + {"UnsupportedValueError", Type, 0}, + {"UnsupportedValueError.Str", Field, 0}, + {"UnsupportedValueError.Value", Field, 0}, + {"Valid", Func, 9}, + }, + "encoding/pem": { + {"Block", Type, 0}, + {"Block.Bytes", Field, 0}, + {"Block.Headers", Field, 0}, + {"Block.Type", Field, 0}, + {"Decode", Func, 0}, + {"Encode", Func, 0}, + {"EncodeToMemory", Func, 0}, + }, + "encoding/xml": { + {"(*Decoder).Decode", Method, 0}, + {"(*Decoder).DecodeElement", Method, 0}, + {"(*Decoder).InputOffset", Method, 4}, + {"(*Decoder).InputPos", Method, 19}, + {"(*Decoder).RawToken", Method, 0}, + {"(*Decoder).Skip", Method, 0}, + {"(*Decoder).Token", Method, 0}, + {"(*Encoder).Close", Method, 20}, + {"(*Encoder).Encode", Method, 0}, + {"(*Encoder).EncodeElement", Method, 2}, + {"(*Encoder).EncodeToken", Method, 2}, + {"(*Encoder).Flush", Method, 2}, + {"(*Encoder).Indent", Method, 1}, + {"(*SyntaxError).Error", Method, 0}, + {"(*TagPathError).Error", Method, 0}, + {"(*UnsupportedTypeError).Error", Method, 0}, + {"(CharData).Copy", Method, 0}, + {"(Comment).Copy", Method, 0}, + {"(Directive).Copy", Method, 0}, + {"(ProcInst).Copy", Method, 0}, + {"(StartElement).Copy", Method, 0}, + {"(StartElement).End", Method, 2}, + {"(UnmarshalError).Error", Method, 0}, + {"Attr", Type, 0}, + {"Attr.Name", Field, 0}, + {"Attr.Value", Field, 0}, + {"CharData", Type, 0}, + {"Comment", Type, 0}, + {"CopyToken", Func, 0}, + {"Decoder", Type, 0}, + {"Decoder.AutoClose", Field, 0}, + {"Decoder.CharsetReader", Field, 0}, + {"Decoder.DefaultSpace", Field, 1}, + {"Decoder.Entity", Field, 0}, + {"Decoder.Strict", Field, 0}, + {"Directive", Type, 0}, + {"Encoder", Type, 0}, + {"EndElement", Type, 0}, + {"EndElement.Name", Field, 0}, + {"Escape", Func, 0}, + {"EscapeText", Func, 1}, + {"HTMLAutoClose", Var, 0}, + {"HTMLEntity", Var, 0}, + {"Header", Const, 0}, + {"Marshal", Func, 0}, + {"MarshalIndent", Func, 0}, + {"Marshaler", Type, 2}, + {"MarshalerAttr", Type, 2}, + {"Name", Type, 0}, + {"Name.Local", Field, 0}, + {"Name.Space", Field, 0}, + {"NewDecoder", Func, 0}, + {"NewEncoder", Func, 0}, + {"NewTokenDecoder", Func, 10}, + {"ProcInst", Type, 0}, + {"ProcInst.Inst", Field, 0}, + {"ProcInst.Target", Field, 0}, + {"StartElement", Type, 0}, + {"StartElement.Attr", Field, 0}, + {"StartElement.Name", Field, 0}, + {"SyntaxError", Type, 0}, + {"SyntaxError.Line", Field, 0}, + {"SyntaxError.Msg", Field, 0}, + {"TagPathError", Type, 0}, + {"TagPathError.Field1", Field, 0}, + {"TagPathError.Field2", Field, 0}, + {"TagPathError.Struct", Field, 0}, + {"TagPathError.Tag1", Field, 0}, + {"TagPathError.Tag2", Field, 0}, + {"Token", Type, 0}, + {"TokenReader", Type, 10}, + {"Unmarshal", Func, 0}, + {"UnmarshalError", Type, 0}, + {"Unmarshaler", Type, 2}, + {"UnmarshalerAttr", Type, 2}, + {"UnsupportedTypeError", Type, 0}, + {"UnsupportedTypeError.Type", Field, 0}, + }, + "errors": { + {"As", Func, 13}, + {"ErrUnsupported", Var, 21}, + {"Is", Func, 13}, + {"Join", Func, 20}, + {"New", Func, 0}, + {"Unwrap", Func, 13}, + }, + "expvar": { + {"(*Float).Add", Method, 0}, + {"(*Float).Set", Method, 0}, + {"(*Float).String", Method, 0}, + {"(*Float).Value", Method, 8}, + {"(*Int).Add", Method, 0}, + {"(*Int).Set", Method, 0}, + {"(*Int).String", Method, 0}, + {"(*Int).Value", Method, 8}, + {"(*Map).Add", Method, 0}, + {"(*Map).AddFloat", Method, 0}, + {"(*Map).Delete", Method, 12}, + {"(*Map).Do", Method, 0}, + {"(*Map).Get", Method, 0}, + {"(*Map).Init", Method, 0}, + {"(*Map).Set", Method, 0}, + {"(*Map).String", Method, 0}, + {"(*String).Set", Method, 0}, + {"(*String).String", Method, 0}, + {"(*String).Value", Method, 8}, + {"(Func).String", Method, 0}, + {"(Func).Value", Method, 8}, + {"Do", Func, 0}, + {"Float", Type, 0}, + {"Func", Type, 0}, + {"Get", Func, 0}, + {"Handler", Func, 8}, + {"Int", Type, 0}, + {"KeyValue", Type, 0}, + {"KeyValue.Key", Field, 0}, + {"KeyValue.Value", Field, 0}, + {"Map", Type, 0}, + {"NewFloat", Func, 0}, + {"NewInt", Func, 0}, + {"NewMap", Func, 0}, + {"NewString", Func, 0}, + {"Publish", Func, 0}, + {"String", Type, 0}, + {"Var", Type, 0}, + }, + "flag": { + {"(*FlagSet).Arg", Method, 0}, + {"(*FlagSet).Args", Method, 0}, + {"(*FlagSet).Bool", Method, 0}, + {"(*FlagSet).BoolFunc", Method, 21}, + {"(*FlagSet).BoolVar", Method, 0}, + {"(*FlagSet).Duration", Method, 0}, + {"(*FlagSet).DurationVar", Method, 0}, + {"(*FlagSet).ErrorHandling", Method, 10}, + {"(*FlagSet).Float64", Method, 0}, + {"(*FlagSet).Float64Var", Method, 0}, + {"(*FlagSet).Func", Method, 16}, + {"(*FlagSet).Init", Method, 0}, + {"(*FlagSet).Int", Method, 0}, + {"(*FlagSet).Int64", Method, 0}, + {"(*FlagSet).Int64Var", Method, 0}, + {"(*FlagSet).IntVar", Method, 0}, + {"(*FlagSet).Lookup", Method, 0}, + {"(*FlagSet).NArg", Method, 0}, + {"(*FlagSet).NFlag", Method, 0}, + {"(*FlagSet).Name", Method, 10}, + {"(*FlagSet).Output", Method, 10}, + {"(*FlagSet).Parse", Method, 0}, + {"(*FlagSet).Parsed", Method, 0}, + {"(*FlagSet).PrintDefaults", Method, 0}, + {"(*FlagSet).Set", Method, 0}, + {"(*FlagSet).SetOutput", Method, 0}, + {"(*FlagSet).String", Method, 0}, + {"(*FlagSet).StringVar", Method, 0}, + {"(*FlagSet).TextVar", Method, 19}, + {"(*FlagSet).Uint", Method, 0}, + {"(*FlagSet).Uint64", Method, 0}, + {"(*FlagSet).Uint64Var", Method, 0}, + {"(*FlagSet).UintVar", Method, 0}, + {"(*FlagSet).Var", Method, 0}, + {"(*FlagSet).Visit", Method, 0}, + {"(*FlagSet).VisitAll", Method, 0}, + {"Arg", Func, 0}, + {"Args", Func, 0}, + {"Bool", Func, 0}, + {"BoolFunc", Func, 21}, + {"BoolVar", Func, 0}, + {"CommandLine", Var, 2}, + {"ContinueOnError", Const, 0}, + {"Duration", Func, 0}, + {"DurationVar", Func, 0}, + {"ErrHelp", Var, 0}, + {"ErrorHandling", Type, 0}, + {"ExitOnError", Const, 0}, + {"Flag", Type, 0}, + {"Flag.DefValue", Field, 0}, + {"Flag.Name", Field, 0}, + {"Flag.Usage", Field, 0}, + {"Flag.Value", Field, 0}, + {"FlagSet", Type, 0}, + {"FlagSet.Usage", Field, 0}, + {"Float64", Func, 0}, + {"Float64Var", Func, 0}, + {"Func", Func, 16}, + {"Getter", Type, 2}, + {"Int", Func, 0}, + {"Int64", Func, 0}, + {"Int64Var", Func, 0}, + {"IntVar", Func, 0}, + {"Lookup", Func, 0}, + {"NArg", Func, 0}, + {"NFlag", Func, 0}, + {"NewFlagSet", Func, 0}, + {"PanicOnError", Const, 0}, + {"Parse", Func, 0}, + {"Parsed", Func, 0}, + {"PrintDefaults", Func, 0}, + {"Set", Func, 0}, + {"String", Func, 0}, + {"StringVar", Func, 0}, + {"TextVar", Func, 19}, + {"Uint", Func, 0}, + {"Uint64", Func, 0}, + {"Uint64Var", Func, 0}, + {"UintVar", Func, 0}, + {"UnquoteUsage", Func, 5}, + {"Usage", Var, 0}, + {"Value", Type, 0}, + {"Var", Func, 0}, + {"Visit", Func, 0}, + {"VisitAll", Func, 0}, + }, + "fmt": { + {"Append", Func, 19}, + {"Appendf", Func, 19}, + {"Appendln", Func, 19}, + {"Errorf", Func, 0}, + {"FormatString", Func, 20}, + {"Formatter", Type, 0}, + {"Fprint", Func, 0}, + {"Fprintf", Func, 0}, + {"Fprintln", Func, 0}, + {"Fscan", Func, 0}, + {"Fscanf", Func, 0}, + {"Fscanln", Func, 0}, + {"GoStringer", Type, 0}, + {"Print", Func, 0}, + {"Printf", Func, 0}, + {"Println", Func, 0}, + {"Scan", Func, 0}, + {"ScanState", Type, 0}, + {"Scanf", Func, 0}, + {"Scanln", Func, 0}, + {"Scanner", Type, 0}, + {"Sprint", Func, 0}, + {"Sprintf", Func, 0}, + {"Sprintln", Func, 0}, + {"Sscan", Func, 0}, + {"Sscanf", Func, 0}, + {"Sscanln", Func, 0}, + {"State", Type, 0}, + {"Stringer", Type, 0}, + }, + "go/ast": { + {"(*ArrayType).End", Method, 0}, + {"(*ArrayType).Pos", Method, 0}, + {"(*AssignStmt).End", Method, 0}, + {"(*AssignStmt).Pos", Method, 0}, + {"(*BadDecl).End", Method, 0}, + {"(*BadDecl).Pos", Method, 0}, + {"(*BadExpr).End", Method, 0}, + {"(*BadExpr).Pos", Method, 0}, + {"(*BadStmt).End", Method, 0}, + {"(*BadStmt).Pos", Method, 0}, + {"(*BasicLit).End", Method, 0}, + {"(*BasicLit).Pos", Method, 0}, + {"(*BinaryExpr).End", Method, 0}, + {"(*BinaryExpr).Pos", Method, 0}, + {"(*BlockStmt).End", Method, 0}, + {"(*BlockStmt).Pos", Method, 0}, + {"(*BranchStmt).End", Method, 0}, + {"(*BranchStmt).Pos", Method, 0}, + {"(*CallExpr).End", Method, 0}, + {"(*CallExpr).Pos", Method, 0}, + {"(*CaseClause).End", Method, 0}, + {"(*CaseClause).Pos", Method, 0}, + {"(*ChanType).End", Method, 0}, + {"(*ChanType).Pos", Method, 0}, + {"(*CommClause).End", Method, 0}, + {"(*CommClause).Pos", Method, 0}, + {"(*Comment).End", Method, 0}, + {"(*Comment).Pos", Method, 0}, + {"(*CommentGroup).End", Method, 0}, + {"(*CommentGroup).Pos", Method, 0}, + {"(*CommentGroup).Text", Method, 0}, + {"(*CompositeLit).End", Method, 0}, + {"(*CompositeLit).Pos", Method, 0}, + {"(*DeclStmt).End", Method, 0}, + {"(*DeclStmt).Pos", Method, 0}, + {"(*DeferStmt).End", Method, 0}, + {"(*DeferStmt).Pos", Method, 0}, + {"(*Ellipsis).End", Method, 0}, + {"(*Ellipsis).Pos", Method, 0}, + {"(*EmptyStmt).End", Method, 0}, + {"(*EmptyStmt).Pos", Method, 0}, + {"(*ExprStmt).End", Method, 0}, + {"(*ExprStmt).Pos", Method, 0}, + {"(*Field).End", Method, 0}, + {"(*Field).Pos", Method, 0}, + {"(*FieldList).End", Method, 0}, + {"(*FieldList).NumFields", Method, 0}, + {"(*FieldList).Pos", Method, 0}, + {"(*File).End", Method, 0}, + {"(*File).Pos", Method, 0}, + {"(*ForStmt).End", Method, 0}, + {"(*ForStmt).Pos", Method, 0}, + {"(*FuncDecl).End", Method, 0}, + {"(*FuncDecl).Pos", Method, 0}, + {"(*FuncLit).End", Method, 0}, + {"(*FuncLit).Pos", Method, 0}, + {"(*FuncType).End", Method, 0}, + {"(*FuncType).Pos", Method, 0}, + {"(*GenDecl).End", Method, 0}, + {"(*GenDecl).Pos", Method, 0}, + {"(*GoStmt).End", Method, 0}, + {"(*GoStmt).Pos", Method, 0}, + {"(*Ident).End", Method, 0}, + {"(*Ident).IsExported", Method, 0}, + {"(*Ident).Pos", Method, 0}, + {"(*Ident).String", Method, 0}, + {"(*IfStmt).End", Method, 0}, + {"(*IfStmt).Pos", Method, 0}, + {"(*ImportSpec).End", Method, 0}, + {"(*ImportSpec).Pos", Method, 0}, + {"(*IncDecStmt).End", Method, 0}, + {"(*IncDecStmt).Pos", Method, 0}, + {"(*IndexExpr).End", Method, 0}, + {"(*IndexExpr).Pos", Method, 0}, + {"(*IndexListExpr).End", Method, 18}, + {"(*IndexListExpr).Pos", Method, 18}, + {"(*InterfaceType).End", Method, 0}, + {"(*InterfaceType).Pos", Method, 0}, + {"(*KeyValueExpr).End", Method, 0}, + {"(*KeyValueExpr).Pos", Method, 0}, + {"(*LabeledStmt).End", Method, 0}, + {"(*LabeledStmt).Pos", Method, 0}, + {"(*MapType).End", Method, 0}, + {"(*MapType).Pos", Method, 0}, + {"(*Object).Pos", Method, 0}, + {"(*Package).End", Method, 0}, + {"(*Package).Pos", Method, 0}, + {"(*ParenExpr).End", Method, 0}, + {"(*ParenExpr).Pos", Method, 0}, + {"(*RangeStmt).End", Method, 0}, + {"(*RangeStmt).Pos", Method, 0}, + {"(*ReturnStmt).End", Method, 0}, + {"(*ReturnStmt).Pos", Method, 0}, + {"(*Scope).Insert", Method, 0}, + {"(*Scope).Lookup", Method, 0}, + {"(*Scope).String", Method, 0}, + {"(*SelectStmt).End", Method, 0}, + {"(*SelectStmt).Pos", Method, 0}, + {"(*SelectorExpr).End", Method, 0}, + {"(*SelectorExpr).Pos", Method, 0}, + {"(*SendStmt).End", Method, 0}, + {"(*SendStmt).Pos", Method, 0}, + {"(*SliceExpr).End", Method, 0}, + {"(*SliceExpr).Pos", Method, 0}, + {"(*StarExpr).End", Method, 0}, + {"(*StarExpr).Pos", Method, 0}, + {"(*StructType).End", Method, 0}, + {"(*StructType).Pos", Method, 0}, + {"(*SwitchStmt).End", Method, 0}, + {"(*SwitchStmt).Pos", Method, 0}, + {"(*TypeAssertExpr).End", Method, 0}, + {"(*TypeAssertExpr).Pos", Method, 0}, + {"(*TypeSpec).End", Method, 0}, + {"(*TypeSpec).Pos", Method, 0}, + {"(*TypeSwitchStmt).End", Method, 0}, + {"(*TypeSwitchStmt).Pos", Method, 0}, + {"(*UnaryExpr).End", Method, 0}, + {"(*UnaryExpr).Pos", Method, 0}, + {"(*ValueSpec).End", Method, 0}, + {"(*ValueSpec).Pos", Method, 0}, + {"(CommentMap).Comments", Method, 1}, + {"(CommentMap).Filter", Method, 1}, + {"(CommentMap).String", Method, 1}, + {"(CommentMap).Update", Method, 1}, + {"(ObjKind).String", Method, 0}, + {"ArrayType", Type, 0}, + {"ArrayType.Elt", Field, 0}, + {"ArrayType.Lbrack", Field, 0}, + {"ArrayType.Len", Field, 0}, + {"AssignStmt", Type, 0}, + {"AssignStmt.Lhs", Field, 0}, + {"AssignStmt.Rhs", Field, 0}, + {"AssignStmt.Tok", Field, 0}, + {"AssignStmt.TokPos", Field, 0}, + {"Bad", Const, 0}, + {"BadDecl", Type, 0}, + {"BadDecl.From", Field, 0}, + {"BadDecl.To", Field, 0}, + {"BadExpr", Type, 0}, + {"BadExpr.From", Field, 0}, + {"BadExpr.To", Field, 0}, + {"BadStmt", Type, 0}, + {"BadStmt.From", Field, 0}, + {"BadStmt.To", Field, 0}, + {"BasicLit", Type, 0}, + {"BasicLit.Kind", Field, 0}, + {"BasicLit.Value", Field, 0}, + {"BasicLit.ValuePos", Field, 0}, + {"BinaryExpr", Type, 0}, + {"BinaryExpr.Op", Field, 0}, + {"BinaryExpr.OpPos", Field, 0}, + {"BinaryExpr.X", Field, 0}, + {"BinaryExpr.Y", Field, 0}, + {"BlockStmt", Type, 0}, + {"BlockStmt.Lbrace", Field, 0}, + {"BlockStmt.List", Field, 0}, + {"BlockStmt.Rbrace", Field, 0}, + {"BranchStmt", Type, 0}, + {"BranchStmt.Label", Field, 0}, + {"BranchStmt.Tok", Field, 0}, + {"BranchStmt.TokPos", Field, 0}, + {"CallExpr", Type, 0}, + {"CallExpr.Args", Field, 0}, + {"CallExpr.Ellipsis", Field, 0}, + {"CallExpr.Fun", Field, 0}, + {"CallExpr.Lparen", Field, 0}, + {"CallExpr.Rparen", Field, 0}, + {"CaseClause", Type, 0}, + {"CaseClause.Body", Field, 0}, + {"CaseClause.Case", Field, 0}, + {"CaseClause.Colon", Field, 0}, + {"CaseClause.List", Field, 0}, + {"ChanDir", Type, 0}, + {"ChanType", Type, 0}, + {"ChanType.Arrow", Field, 1}, + {"ChanType.Begin", Field, 0}, + {"ChanType.Dir", Field, 0}, + {"ChanType.Value", Field, 0}, + {"CommClause", Type, 0}, + {"CommClause.Body", Field, 0}, + {"CommClause.Case", Field, 0}, + {"CommClause.Colon", Field, 0}, + {"CommClause.Comm", Field, 0}, + {"Comment", Type, 0}, + {"Comment.Slash", Field, 0}, + {"Comment.Text", Field, 0}, + {"CommentGroup", Type, 0}, + {"CommentGroup.List", Field, 0}, + {"CommentMap", Type, 1}, + {"CompositeLit", Type, 0}, + {"CompositeLit.Elts", Field, 0}, + {"CompositeLit.Incomplete", Field, 11}, + {"CompositeLit.Lbrace", Field, 0}, + {"CompositeLit.Rbrace", Field, 0}, + {"CompositeLit.Type", Field, 0}, + {"Con", Const, 0}, + {"Decl", Type, 0}, + {"DeclStmt", Type, 0}, + {"DeclStmt.Decl", Field, 0}, + {"DeferStmt", Type, 0}, + {"DeferStmt.Call", Field, 0}, + {"DeferStmt.Defer", Field, 0}, + {"Ellipsis", Type, 0}, + {"Ellipsis.Ellipsis", Field, 0}, + {"Ellipsis.Elt", Field, 0}, + {"EmptyStmt", Type, 0}, + {"EmptyStmt.Implicit", Field, 5}, + {"EmptyStmt.Semicolon", Field, 0}, + {"Expr", Type, 0}, + {"ExprStmt", Type, 0}, + {"ExprStmt.X", Field, 0}, + {"Field", Type, 0}, + {"Field.Comment", Field, 0}, + {"Field.Doc", Field, 0}, + {"Field.Names", Field, 0}, + {"Field.Tag", Field, 0}, + {"Field.Type", Field, 0}, + {"FieldFilter", Type, 0}, + {"FieldList", Type, 0}, + {"FieldList.Closing", Field, 0}, + {"FieldList.List", Field, 0}, + {"FieldList.Opening", Field, 0}, + {"File", Type, 0}, + {"File.Comments", Field, 0}, + {"File.Decls", Field, 0}, + {"File.Doc", Field, 0}, + {"File.FileEnd", Field, 20}, + {"File.FileStart", Field, 20}, + {"File.GoVersion", Field, 21}, + {"File.Imports", Field, 0}, + {"File.Name", Field, 0}, + {"File.Package", Field, 0}, + {"File.Scope", Field, 0}, + {"File.Unresolved", Field, 0}, + {"FileExports", Func, 0}, + {"Filter", Type, 0}, + {"FilterDecl", Func, 0}, + {"FilterFile", Func, 0}, + {"FilterFuncDuplicates", Const, 0}, + {"FilterImportDuplicates", Const, 0}, + {"FilterPackage", Func, 0}, + {"FilterUnassociatedComments", Const, 0}, + {"ForStmt", Type, 0}, + {"ForStmt.Body", Field, 0}, + {"ForStmt.Cond", Field, 0}, + {"ForStmt.For", Field, 0}, + {"ForStmt.Init", Field, 0}, + {"ForStmt.Post", Field, 0}, + {"Fprint", Func, 0}, + {"Fun", Const, 0}, + {"FuncDecl", Type, 0}, + {"FuncDecl.Body", Field, 0}, + {"FuncDecl.Doc", Field, 0}, + {"FuncDecl.Name", Field, 0}, + {"FuncDecl.Recv", Field, 0}, + {"FuncDecl.Type", Field, 0}, + {"FuncLit", Type, 0}, + {"FuncLit.Body", Field, 0}, + {"FuncLit.Type", Field, 0}, + {"FuncType", Type, 0}, + {"FuncType.Func", Field, 0}, + {"FuncType.Params", Field, 0}, + {"FuncType.Results", Field, 0}, + {"FuncType.TypeParams", Field, 18}, + {"GenDecl", Type, 0}, + {"GenDecl.Doc", Field, 0}, + {"GenDecl.Lparen", Field, 0}, + {"GenDecl.Rparen", Field, 0}, + {"GenDecl.Specs", Field, 0}, + {"GenDecl.Tok", Field, 0}, + {"GenDecl.TokPos", Field, 0}, + {"GoStmt", Type, 0}, + {"GoStmt.Call", Field, 0}, + {"GoStmt.Go", Field, 0}, + {"Ident", Type, 0}, + {"Ident.Name", Field, 0}, + {"Ident.NamePos", Field, 0}, + {"Ident.Obj", Field, 0}, + {"IfStmt", Type, 0}, + {"IfStmt.Body", Field, 0}, + {"IfStmt.Cond", Field, 0}, + {"IfStmt.Else", Field, 0}, + {"IfStmt.If", Field, 0}, + {"IfStmt.Init", Field, 0}, + {"ImportSpec", Type, 0}, + {"ImportSpec.Comment", Field, 0}, + {"ImportSpec.Doc", Field, 0}, + {"ImportSpec.EndPos", Field, 0}, + {"ImportSpec.Name", Field, 0}, + {"ImportSpec.Path", Field, 0}, + {"Importer", Type, 0}, + {"IncDecStmt", Type, 0}, + {"IncDecStmt.Tok", Field, 0}, + {"IncDecStmt.TokPos", Field, 0}, + {"IncDecStmt.X", Field, 0}, + {"IndexExpr", Type, 0}, + {"IndexExpr.Index", Field, 0}, + {"IndexExpr.Lbrack", Field, 0}, + {"IndexExpr.Rbrack", Field, 0}, + {"IndexExpr.X", Field, 0}, + {"IndexListExpr", Type, 18}, + {"IndexListExpr.Indices", Field, 18}, + {"IndexListExpr.Lbrack", Field, 18}, + {"IndexListExpr.Rbrack", Field, 18}, + {"IndexListExpr.X", Field, 18}, + {"Inspect", Func, 0}, + {"InterfaceType", Type, 0}, + {"InterfaceType.Incomplete", Field, 0}, + {"InterfaceType.Interface", Field, 0}, + {"InterfaceType.Methods", Field, 0}, + {"IsExported", Func, 0}, + {"IsGenerated", Func, 21}, + {"KeyValueExpr", Type, 0}, + {"KeyValueExpr.Colon", Field, 0}, + {"KeyValueExpr.Key", Field, 0}, + {"KeyValueExpr.Value", Field, 0}, + {"LabeledStmt", Type, 0}, + {"LabeledStmt.Colon", Field, 0}, + {"LabeledStmt.Label", Field, 0}, + {"LabeledStmt.Stmt", Field, 0}, + {"Lbl", Const, 0}, + {"MapType", Type, 0}, + {"MapType.Key", Field, 0}, + {"MapType.Map", Field, 0}, + {"MapType.Value", Field, 0}, + {"MergeMode", Type, 0}, + {"MergePackageFiles", Func, 0}, + {"NewCommentMap", Func, 1}, + {"NewIdent", Func, 0}, + {"NewObj", Func, 0}, + {"NewPackage", Func, 0}, + {"NewScope", Func, 0}, + {"Node", Type, 0}, + {"NotNilFilter", Func, 0}, + {"ObjKind", Type, 0}, + {"Object", Type, 0}, + {"Object.Data", Field, 0}, + {"Object.Decl", Field, 0}, + {"Object.Kind", Field, 0}, + {"Object.Name", Field, 0}, + {"Object.Type", Field, 0}, + {"Package", Type, 0}, + {"Package.Files", Field, 0}, + {"Package.Imports", Field, 0}, + {"Package.Name", Field, 0}, + {"Package.Scope", Field, 0}, + {"PackageExports", Func, 0}, + {"ParenExpr", Type, 0}, + {"ParenExpr.Lparen", Field, 0}, + {"ParenExpr.Rparen", Field, 0}, + {"ParenExpr.X", Field, 0}, + {"Pkg", Const, 0}, + {"Print", Func, 0}, + {"RECV", Const, 0}, + {"RangeStmt", Type, 0}, + {"RangeStmt.Body", Field, 0}, + {"RangeStmt.For", Field, 0}, + {"RangeStmt.Key", Field, 0}, + {"RangeStmt.Range", Field, 20}, + {"RangeStmt.Tok", Field, 0}, + {"RangeStmt.TokPos", Field, 0}, + {"RangeStmt.Value", Field, 0}, + {"RangeStmt.X", Field, 0}, + {"ReturnStmt", Type, 0}, + {"ReturnStmt.Results", Field, 0}, + {"ReturnStmt.Return", Field, 0}, + {"SEND", Const, 0}, + {"Scope", Type, 0}, + {"Scope.Objects", Field, 0}, + {"Scope.Outer", Field, 0}, + {"SelectStmt", Type, 0}, + {"SelectStmt.Body", Field, 0}, + {"SelectStmt.Select", Field, 0}, + {"SelectorExpr", Type, 0}, + {"SelectorExpr.Sel", Field, 0}, + {"SelectorExpr.X", Field, 0}, + {"SendStmt", Type, 0}, + {"SendStmt.Arrow", Field, 0}, + {"SendStmt.Chan", Field, 0}, + {"SendStmt.Value", Field, 0}, + {"SliceExpr", Type, 0}, + {"SliceExpr.High", Field, 0}, + {"SliceExpr.Lbrack", Field, 0}, + {"SliceExpr.Low", Field, 0}, + {"SliceExpr.Max", Field, 2}, + {"SliceExpr.Rbrack", Field, 0}, + {"SliceExpr.Slice3", Field, 2}, + {"SliceExpr.X", Field, 0}, + {"SortImports", Func, 0}, + {"Spec", Type, 0}, + {"StarExpr", Type, 0}, + {"StarExpr.Star", Field, 0}, + {"StarExpr.X", Field, 0}, + {"Stmt", Type, 0}, + {"StructType", Type, 0}, + {"StructType.Fields", Field, 0}, + {"StructType.Incomplete", Field, 0}, + {"StructType.Struct", Field, 0}, + {"SwitchStmt", Type, 0}, + {"SwitchStmt.Body", Field, 0}, + {"SwitchStmt.Init", Field, 0}, + {"SwitchStmt.Switch", Field, 0}, + {"SwitchStmt.Tag", Field, 0}, + {"Typ", Const, 0}, + {"TypeAssertExpr", Type, 0}, + {"TypeAssertExpr.Lparen", Field, 2}, + {"TypeAssertExpr.Rparen", Field, 2}, + {"TypeAssertExpr.Type", Field, 0}, + {"TypeAssertExpr.X", Field, 0}, + {"TypeSpec", Type, 0}, + {"TypeSpec.Assign", Field, 9}, + {"TypeSpec.Comment", Field, 0}, + {"TypeSpec.Doc", Field, 0}, + {"TypeSpec.Name", Field, 0}, + {"TypeSpec.Type", Field, 0}, + {"TypeSpec.TypeParams", Field, 18}, + {"TypeSwitchStmt", Type, 0}, + {"TypeSwitchStmt.Assign", Field, 0}, + {"TypeSwitchStmt.Body", Field, 0}, + {"TypeSwitchStmt.Init", Field, 0}, + {"TypeSwitchStmt.Switch", Field, 0}, + {"UnaryExpr", Type, 0}, + {"UnaryExpr.Op", Field, 0}, + {"UnaryExpr.OpPos", Field, 0}, + {"UnaryExpr.X", Field, 0}, + {"Unparen", Func, 22}, + {"ValueSpec", Type, 0}, + {"ValueSpec.Comment", Field, 0}, + {"ValueSpec.Doc", Field, 0}, + {"ValueSpec.Names", Field, 0}, + {"ValueSpec.Type", Field, 0}, + {"ValueSpec.Values", Field, 0}, + {"Var", Const, 0}, + {"Visitor", Type, 0}, + {"Walk", Func, 0}, + }, + "go/build": { + {"(*Context).Import", Method, 0}, + {"(*Context).ImportDir", Method, 0}, + {"(*Context).MatchFile", Method, 2}, + {"(*Context).SrcDirs", Method, 0}, + {"(*MultiplePackageError).Error", Method, 4}, + {"(*NoGoError).Error", Method, 0}, + {"(*Package).IsCommand", Method, 0}, + {"AllowBinary", Const, 0}, + {"ArchChar", Func, 0}, + {"Context", Type, 0}, + {"Context.BuildTags", Field, 0}, + {"Context.CgoEnabled", Field, 0}, + {"Context.Compiler", Field, 0}, + {"Context.Dir", Field, 14}, + {"Context.GOARCH", Field, 0}, + {"Context.GOOS", Field, 0}, + {"Context.GOPATH", Field, 0}, + {"Context.GOROOT", Field, 0}, + {"Context.HasSubdir", Field, 0}, + {"Context.InstallSuffix", Field, 1}, + {"Context.IsAbsPath", Field, 0}, + {"Context.IsDir", Field, 0}, + {"Context.JoinPath", Field, 0}, + {"Context.OpenFile", Field, 0}, + {"Context.ReadDir", Field, 0}, + {"Context.ReleaseTags", Field, 1}, + {"Context.SplitPathList", Field, 0}, + {"Context.ToolTags", Field, 17}, + {"Context.UseAllFiles", Field, 0}, + {"Default", Var, 0}, + {"Directive", Type, 21}, + {"Directive.Pos", Field, 21}, + {"Directive.Text", Field, 21}, + {"FindOnly", Const, 0}, + {"IgnoreVendor", Const, 6}, + {"Import", Func, 0}, + {"ImportComment", Const, 4}, + {"ImportDir", Func, 0}, + {"ImportMode", Type, 0}, + {"IsLocalImport", Func, 0}, + {"MultiplePackageError", Type, 4}, + {"MultiplePackageError.Dir", Field, 4}, + {"MultiplePackageError.Files", Field, 4}, + {"MultiplePackageError.Packages", Field, 4}, + {"NoGoError", Type, 0}, + {"NoGoError.Dir", Field, 0}, + {"Package", Type, 0}, + {"Package.AllTags", Field, 2}, + {"Package.BinDir", Field, 0}, + {"Package.BinaryOnly", Field, 7}, + {"Package.CFiles", Field, 0}, + {"Package.CXXFiles", Field, 2}, + {"Package.CgoCFLAGS", Field, 0}, + {"Package.CgoCPPFLAGS", Field, 2}, + {"Package.CgoCXXFLAGS", Field, 2}, + {"Package.CgoFFLAGS", Field, 7}, + {"Package.CgoFiles", Field, 0}, + {"Package.CgoLDFLAGS", Field, 0}, + {"Package.CgoPkgConfig", Field, 0}, + {"Package.ConflictDir", Field, 2}, + {"Package.Dir", Field, 0}, + {"Package.Directives", Field, 21}, + {"Package.Doc", Field, 0}, + {"Package.EmbedPatternPos", Field, 16}, + {"Package.EmbedPatterns", Field, 16}, + {"Package.FFiles", Field, 7}, + {"Package.GoFiles", Field, 0}, + {"Package.Goroot", Field, 0}, + {"Package.HFiles", Field, 0}, + {"Package.IgnoredGoFiles", Field, 1}, + {"Package.IgnoredOtherFiles", Field, 16}, + {"Package.ImportComment", Field, 4}, + {"Package.ImportPath", Field, 0}, + {"Package.ImportPos", Field, 0}, + {"Package.Imports", Field, 0}, + {"Package.InvalidGoFiles", Field, 6}, + {"Package.MFiles", Field, 3}, + {"Package.Name", Field, 0}, + {"Package.PkgObj", Field, 0}, + {"Package.PkgRoot", Field, 0}, + {"Package.PkgTargetRoot", Field, 5}, + {"Package.Root", Field, 0}, + {"Package.SFiles", Field, 0}, + {"Package.SrcRoot", Field, 0}, + {"Package.SwigCXXFiles", Field, 1}, + {"Package.SwigFiles", Field, 1}, + {"Package.SysoFiles", Field, 0}, + {"Package.TestDirectives", Field, 21}, + {"Package.TestEmbedPatternPos", Field, 16}, + {"Package.TestEmbedPatterns", Field, 16}, + {"Package.TestGoFiles", Field, 0}, + {"Package.TestImportPos", Field, 0}, + {"Package.TestImports", Field, 0}, + {"Package.XTestDirectives", Field, 21}, + {"Package.XTestEmbedPatternPos", Field, 16}, + {"Package.XTestEmbedPatterns", Field, 16}, + {"Package.XTestGoFiles", Field, 0}, + {"Package.XTestImportPos", Field, 0}, + {"Package.XTestImports", Field, 0}, + {"ToolDir", Var, 0}, + }, + "go/build/constraint": { + {"(*AndExpr).Eval", Method, 16}, + {"(*AndExpr).String", Method, 16}, + {"(*NotExpr).Eval", Method, 16}, + {"(*NotExpr).String", Method, 16}, + {"(*OrExpr).Eval", Method, 16}, + {"(*OrExpr).String", Method, 16}, + {"(*SyntaxError).Error", Method, 16}, + {"(*TagExpr).Eval", Method, 16}, + {"(*TagExpr).String", Method, 16}, + {"AndExpr", Type, 16}, + {"AndExpr.X", Field, 16}, + {"AndExpr.Y", Field, 16}, + {"Expr", Type, 16}, + {"GoVersion", Func, 21}, + {"IsGoBuild", Func, 16}, + {"IsPlusBuild", Func, 16}, + {"NotExpr", Type, 16}, + {"NotExpr.X", Field, 16}, + {"OrExpr", Type, 16}, + {"OrExpr.X", Field, 16}, + {"OrExpr.Y", Field, 16}, + {"Parse", Func, 16}, + {"PlusBuildLines", Func, 16}, + {"SyntaxError", Type, 16}, + {"SyntaxError.Err", Field, 16}, + {"SyntaxError.Offset", Field, 16}, + {"TagExpr", Type, 16}, + {"TagExpr.Tag", Field, 16}, + }, + "go/constant": { + {"(Kind).String", Method, 18}, + {"BinaryOp", Func, 5}, + {"BitLen", Func, 5}, + {"Bool", Const, 5}, + {"BoolVal", Func, 5}, + {"Bytes", Func, 5}, + {"Compare", Func, 5}, + {"Complex", Const, 5}, + {"Denom", Func, 5}, + {"Float", Const, 5}, + {"Float32Val", Func, 5}, + {"Float64Val", Func, 5}, + {"Imag", Func, 5}, + {"Int", Const, 5}, + {"Int64Val", Func, 5}, + {"Kind", Type, 5}, + {"Make", Func, 13}, + {"MakeBool", Func, 5}, + {"MakeFloat64", Func, 5}, + {"MakeFromBytes", Func, 5}, + {"MakeFromLiteral", Func, 5}, + {"MakeImag", Func, 5}, + {"MakeInt64", Func, 5}, + {"MakeString", Func, 5}, + {"MakeUint64", Func, 5}, + {"MakeUnknown", Func, 5}, + {"Num", Func, 5}, + {"Real", Func, 5}, + {"Shift", Func, 5}, + {"Sign", Func, 5}, + {"String", Const, 5}, + {"StringVal", Func, 5}, + {"ToComplex", Func, 6}, + {"ToFloat", Func, 6}, + {"ToInt", Func, 6}, + {"Uint64Val", Func, 5}, + {"UnaryOp", Func, 5}, + {"Unknown", Const, 5}, + {"Val", Func, 13}, + {"Value", Type, 5}, + }, + "go/doc": { + {"(*Package).Filter", Method, 0}, + {"(*Package).HTML", Method, 19}, + {"(*Package).Markdown", Method, 19}, + {"(*Package).Parser", Method, 19}, + {"(*Package).Printer", Method, 19}, + {"(*Package).Synopsis", Method, 19}, + {"(*Package).Text", Method, 19}, + {"AllDecls", Const, 0}, + {"AllMethods", Const, 0}, + {"Example", Type, 0}, + {"Example.Code", Field, 0}, + {"Example.Comments", Field, 0}, + {"Example.Doc", Field, 0}, + {"Example.EmptyOutput", Field, 1}, + {"Example.Name", Field, 0}, + {"Example.Order", Field, 1}, + {"Example.Output", Field, 0}, + {"Example.Play", Field, 1}, + {"Example.Suffix", Field, 14}, + {"Example.Unordered", Field, 7}, + {"Examples", Func, 0}, + {"Filter", Type, 0}, + {"Func", Type, 0}, + {"Func.Decl", Field, 0}, + {"Func.Doc", Field, 0}, + {"Func.Examples", Field, 14}, + {"Func.Level", Field, 0}, + {"Func.Name", Field, 0}, + {"Func.Orig", Field, 0}, + {"Func.Recv", Field, 0}, + {"IllegalPrefixes", Var, 1}, + {"IsPredeclared", Func, 8}, + {"Mode", Type, 0}, + {"New", Func, 0}, + {"NewFromFiles", Func, 14}, + {"Note", Type, 1}, + {"Note.Body", Field, 1}, + {"Note.End", Field, 1}, + {"Note.Pos", Field, 1}, + {"Note.UID", Field, 1}, + {"Package", Type, 0}, + {"Package.Bugs", Field, 0}, + {"Package.Consts", Field, 0}, + {"Package.Doc", Field, 0}, + {"Package.Examples", Field, 14}, + {"Package.Filenames", Field, 0}, + {"Package.Funcs", Field, 0}, + {"Package.ImportPath", Field, 0}, + {"Package.Imports", Field, 0}, + {"Package.Name", Field, 0}, + {"Package.Notes", Field, 1}, + {"Package.Types", Field, 0}, + {"Package.Vars", Field, 0}, + {"PreserveAST", Const, 12}, + {"Synopsis", Func, 0}, + {"ToHTML", Func, 0}, + {"ToText", Func, 0}, + {"Type", Type, 0}, + {"Type.Consts", Field, 0}, + {"Type.Decl", Field, 0}, + {"Type.Doc", Field, 0}, + {"Type.Examples", Field, 14}, + {"Type.Funcs", Field, 0}, + {"Type.Methods", Field, 0}, + {"Type.Name", Field, 0}, + {"Type.Vars", Field, 0}, + {"Value", Type, 0}, + {"Value.Decl", Field, 0}, + {"Value.Doc", Field, 0}, + {"Value.Names", Field, 0}, + }, + "go/doc/comment": { + {"(*DocLink).DefaultURL", Method, 19}, + {"(*Heading).DefaultID", Method, 19}, + {"(*List).BlankBefore", Method, 19}, + {"(*List).BlankBetween", Method, 19}, + {"(*Parser).Parse", Method, 19}, + {"(*Printer).Comment", Method, 19}, + {"(*Printer).HTML", Method, 19}, + {"(*Printer).Markdown", Method, 19}, + {"(*Printer).Text", Method, 19}, + {"Block", Type, 19}, + {"Code", Type, 19}, + {"Code.Text", Field, 19}, + {"DefaultLookupPackage", Func, 19}, + {"Doc", Type, 19}, + {"Doc.Content", Field, 19}, + {"Doc.Links", Field, 19}, + {"DocLink", Type, 19}, + {"DocLink.ImportPath", Field, 19}, + {"DocLink.Name", Field, 19}, + {"DocLink.Recv", Field, 19}, + {"DocLink.Text", Field, 19}, + {"Heading", Type, 19}, + {"Heading.Text", Field, 19}, + {"Italic", Type, 19}, + {"Link", Type, 19}, + {"Link.Auto", Field, 19}, + {"Link.Text", Field, 19}, + {"Link.URL", Field, 19}, + {"LinkDef", Type, 19}, + {"LinkDef.Text", Field, 19}, + {"LinkDef.URL", Field, 19}, + {"LinkDef.Used", Field, 19}, + {"List", Type, 19}, + {"List.ForceBlankBefore", Field, 19}, + {"List.ForceBlankBetween", Field, 19}, + {"List.Items", Field, 19}, + {"ListItem", Type, 19}, + {"ListItem.Content", Field, 19}, + {"ListItem.Number", Field, 19}, + {"Paragraph", Type, 19}, + {"Paragraph.Text", Field, 19}, + {"Parser", Type, 19}, + {"Parser.LookupPackage", Field, 19}, + {"Parser.LookupSym", Field, 19}, + {"Parser.Words", Field, 19}, + {"Plain", Type, 19}, + {"Printer", Type, 19}, + {"Printer.DocLinkBaseURL", Field, 19}, + {"Printer.DocLinkURL", Field, 19}, + {"Printer.HeadingID", Field, 19}, + {"Printer.HeadingLevel", Field, 19}, + {"Printer.TextCodePrefix", Field, 19}, + {"Printer.TextPrefix", Field, 19}, + {"Printer.TextWidth", Field, 19}, + {"Text", Type, 19}, + }, + "go/format": { + {"Node", Func, 1}, + {"Source", Func, 1}, + }, + "go/importer": { + {"Default", Func, 5}, + {"For", Func, 5}, + {"ForCompiler", Func, 12}, + {"Lookup", Type, 5}, + }, + "go/parser": { + {"AllErrors", Const, 1}, + {"DeclarationErrors", Const, 0}, + {"ImportsOnly", Const, 0}, + {"Mode", Type, 0}, + {"PackageClauseOnly", Const, 0}, + {"ParseComments", Const, 0}, + {"ParseDir", Func, 0}, + {"ParseExpr", Func, 0}, + {"ParseExprFrom", Func, 5}, + {"ParseFile", Func, 0}, + {"SkipObjectResolution", Const, 17}, + {"SpuriousErrors", Const, 0}, + {"Trace", Const, 0}, + }, + "go/printer": { + {"(*Config).Fprint", Method, 0}, + {"CommentedNode", Type, 0}, + {"CommentedNode.Comments", Field, 0}, + {"CommentedNode.Node", Field, 0}, + {"Config", Type, 0}, + {"Config.Indent", Field, 1}, + {"Config.Mode", Field, 0}, + {"Config.Tabwidth", Field, 0}, + {"Fprint", Func, 0}, + {"Mode", Type, 0}, + {"RawFormat", Const, 0}, + {"SourcePos", Const, 0}, + {"TabIndent", Const, 0}, + {"UseSpaces", Const, 0}, + }, + "go/scanner": { + {"(*ErrorList).Add", Method, 0}, + {"(*ErrorList).RemoveMultiples", Method, 0}, + {"(*ErrorList).Reset", Method, 0}, + {"(*Scanner).Init", Method, 0}, + {"(*Scanner).Scan", Method, 0}, + {"(Error).Error", Method, 0}, + {"(ErrorList).Err", Method, 0}, + {"(ErrorList).Error", Method, 0}, + {"(ErrorList).Len", Method, 0}, + {"(ErrorList).Less", Method, 0}, + {"(ErrorList).Sort", Method, 0}, + {"(ErrorList).Swap", Method, 0}, + {"Error", Type, 0}, + {"Error.Msg", Field, 0}, + {"Error.Pos", Field, 0}, + {"ErrorHandler", Type, 0}, + {"ErrorList", Type, 0}, + {"Mode", Type, 0}, + {"PrintError", Func, 0}, + {"ScanComments", Const, 0}, + {"Scanner", Type, 0}, + {"Scanner.ErrorCount", Field, 0}, + }, + "go/token": { + {"(*File).AddLine", Method, 0}, + {"(*File).AddLineColumnInfo", Method, 11}, + {"(*File).AddLineInfo", Method, 0}, + {"(*File).Base", Method, 0}, + {"(*File).Line", Method, 0}, + {"(*File).LineCount", Method, 0}, + {"(*File).LineStart", Method, 12}, + {"(*File).Lines", Method, 21}, + {"(*File).MergeLine", Method, 2}, + {"(*File).Name", Method, 0}, + {"(*File).Offset", Method, 0}, + {"(*File).Pos", Method, 0}, + {"(*File).Position", Method, 0}, + {"(*File).PositionFor", Method, 4}, + {"(*File).SetLines", Method, 0}, + {"(*File).SetLinesForContent", Method, 0}, + {"(*File).Size", Method, 0}, + {"(*FileSet).AddFile", Method, 0}, + {"(*FileSet).Base", Method, 0}, + {"(*FileSet).File", Method, 0}, + {"(*FileSet).Iterate", Method, 0}, + {"(*FileSet).Position", Method, 0}, + {"(*FileSet).PositionFor", Method, 4}, + {"(*FileSet).Read", Method, 0}, + {"(*FileSet).RemoveFile", Method, 20}, + {"(*FileSet).Write", Method, 0}, + {"(*Position).IsValid", Method, 0}, + {"(Pos).IsValid", Method, 0}, + {"(Position).String", Method, 0}, + {"(Token).IsKeyword", Method, 0}, + {"(Token).IsLiteral", Method, 0}, + {"(Token).IsOperator", Method, 0}, + {"(Token).Precedence", Method, 0}, + {"(Token).String", Method, 0}, + {"ADD", Const, 0}, + {"ADD_ASSIGN", Const, 0}, + {"AND", Const, 0}, + {"AND_ASSIGN", Const, 0}, + {"AND_NOT", Const, 0}, + {"AND_NOT_ASSIGN", Const, 0}, + {"ARROW", Const, 0}, + {"ASSIGN", Const, 0}, + {"BREAK", Const, 0}, + {"CASE", Const, 0}, + {"CHAN", Const, 0}, + {"CHAR", Const, 0}, + {"COLON", Const, 0}, + {"COMMA", Const, 0}, + {"COMMENT", Const, 0}, + {"CONST", Const, 0}, + {"CONTINUE", Const, 0}, + {"DEC", Const, 0}, + {"DEFAULT", Const, 0}, + {"DEFER", Const, 0}, + {"DEFINE", Const, 0}, + {"ELLIPSIS", Const, 0}, + {"ELSE", Const, 0}, + {"EOF", Const, 0}, + {"EQL", Const, 0}, + {"FALLTHROUGH", Const, 0}, + {"FLOAT", Const, 0}, + {"FOR", Const, 0}, + {"FUNC", Const, 0}, + {"File", Type, 0}, + {"FileSet", Type, 0}, + {"GEQ", Const, 0}, + {"GO", Const, 0}, + {"GOTO", Const, 0}, + {"GTR", Const, 0}, + {"HighestPrec", Const, 0}, + {"IDENT", Const, 0}, + {"IF", Const, 0}, + {"ILLEGAL", Const, 0}, + {"IMAG", Const, 0}, + {"IMPORT", Const, 0}, + {"INC", Const, 0}, + {"INT", Const, 0}, + {"INTERFACE", Const, 0}, + {"IsExported", Func, 13}, + {"IsIdentifier", Func, 13}, + {"IsKeyword", Func, 13}, + {"LAND", Const, 0}, + {"LBRACE", Const, 0}, + {"LBRACK", Const, 0}, + {"LEQ", Const, 0}, + {"LOR", Const, 0}, + {"LPAREN", Const, 0}, + {"LSS", Const, 0}, + {"Lookup", Func, 0}, + {"LowestPrec", Const, 0}, + {"MAP", Const, 0}, + {"MUL", Const, 0}, + {"MUL_ASSIGN", Const, 0}, + {"NEQ", Const, 0}, + {"NOT", Const, 0}, + {"NewFileSet", Func, 0}, + {"NoPos", Const, 0}, + {"OR", Const, 0}, + {"OR_ASSIGN", Const, 0}, + {"PACKAGE", Const, 0}, + {"PERIOD", Const, 0}, + {"Pos", Type, 0}, + {"Position", Type, 0}, + {"Position.Column", Field, 0}, + {"Position.Filename", Field, 0}, + {"Position.Line", Field, 0}, + {"Position.Offset", Field, 0}, + {"QUO", Const, 0}, + {"QUO_ASSIGN", Const, 0}, + {"RANGE", Const, 0}, + {"RBRACE", Const, 0}, + {"RBRACK", Const, 0}, + {"REM", Const, 0}, + {"REM_ASSIGN", Const, 0}, + {"RETURN", Const, 0}, + {"RPAREN", Const, 0}, + {"SELECT", Const, 0}, + {"SEMICOLON", Const, 0}, + {"SHL", Const, 0}, + {"SHL_ASSIGN", Const, 0}, + {"SHR", Const, 0}, + {"SHR_ASSIGN", Const, 0}, + {"STRING", Const, 0}, + {"STRUCT", Const, 0}, + {"SUB", Const, 0}, + {"SUB_ASSIGN", Const, 0}, + {"SWITCH", Const, 0}, + {"TILDE", Const, 18}, + {"TYPE", Const, 0}, + {"Token", Type, 0}, + {"UnaryPrec", Const, 0}, + {"VAR", Const, 0}, + {"XOR", Const, 0}, + {"XOR_ASSIGN", Const, 0}, + }, + "go/types": { + {"(*Alias).Obj", Method, 22}, + {"(*Alias).String", Method, 22}, + {"(*Alias).Underlying", Method, 22}, + {"(*ArgumentError).Error", Method, 18}, + {"(*ArgumentError).Unwrap", Method, 18}, + {"(*Array).Elem", Method, 5}, + {"(*Array).Len", Method, 5}, + {"(*Array).String", Method, 5}, + {"(*Array).Underlying", Method, 5}, + {"(*Basic).Info", Method, 5}, + {"(*Basic).Kind", Method, 5}, + {"(*Basic).Name", Method, 5}, + {"(*Basic).String", Method, 5}, + {"(*Basic).Underlying", Method, 5}, + {"(*Builtin).Exported", Method, 5}, + {"(*Builtin).Id", Method, 5}, + {"(*Builtin).Name", Method, 5}, + {"(*Builtin).Parent", Method, 5}, + {"(*Builtin).Pkg", Method, 5}, + {"(*Builtin).Pos", Method, 5}, + {"(*Builtin).String", Method, 5}, + {"(*Builtin).Type", Method, 5}, + {"(*Chan).Dir", Method, 5}, + {"(*Chan).Elem", Method, 5}, + {"(*Chan).String", Method, 5}, + {"(*Chan).Underlying", Method, 5}, + {"(*Checker).Files", Method, 5}, + {"(*Config).Check", Method, 5}, + {"(*Const).Exported", Method, 5}, + {"(*Const).Id", Method, 5}, + {"(*Const).Name", Method, 5}, + {"(*Const).Parent", Method, 5}, + {"(*Const).Pkg", Method, 5}, + {"(*Const).Pos", Method, 5}, + {"(*Const).String", Method, 5}, + {"(*Const).Type", Method, 5}, + {"(*Const).Val", Method, 5}, + {"(*Func).Exported", Method, 5}, + {"(*Func).FullName", Method, 5}, + {"(*Func).Id", Method, 5}, + {"(*Func).Name", Method, 5}, + {"(*Func).Origin", Method, 19}, + {"(*Func).Parent", Method, 5}, + {"(*Func).Pkg", Method, 5}, + {"(*Func).Pos", Method, 5}, + {"(*Func).Scope", Method, 5}, + {"(*Func).String", Method, 5}, + {"(*Func).Type", Method, 5}, + {"(*Info).ObjectOf", Method, 5}, + {"(*Info).PkgNameOf", Method, 22}, + {"(*Info).TypeOf", Method, 5}, + {"(*Initializer).String", Method, 5}, + {"(*Interface).Complete", Method, 5}, + {"(*Interface).Embedded", Method, 5}, + {"(*Interface).EmbeddedType", Method, 11}, + {"(*Interface).Empty", Method, 5}, + {"(*Interface).ExplicitMethod", Method, 5}, + {"(*Interface).IsComparable", Method, 18}, + {"(*Interface).IsImplicit", Method, 18}, + {"(*Interface).IsMethodSet", Method, 18}, + {"(*Interface).MarkImplicit", Method, 18}, + {"(*Interface).Method", Method, 5}, + {"(*Interface).NumEmbeddeds", Method, 5}, + {"(*Interface).NumExplicitMethods", Method, 5}, + {"(*Interface).NumMethods", Method, 5}, + {"(*Interface).String", Method, 5}, + {"(*Interface).Underlying", Method, 5}, + {"(*Label).Exported", Method, 5}, + {"(*Label).Id", Method, 5}, + {"(*Label).Name", Method, 5}, + {"(*Label).Parent", Method, 5}, + {"(*Label).Pkg", Method, 5}, + {"(*Label).Pos", Method, 5}, + {"(*Label).String", Method, 5}, + {"(*Label).Type", Method, 5}, + {"(*Map).Elem", Method, 5}, + {"(*Map).Key", Method, 5}, + {"(*Map).String", Method, 5}, + {"(*Map).Underlying", Method, 5}, + {"(*MethodSet).At", Method, 5}, + {"(*MethodSet).Len", Method, 5}, + {"(*MethodSet).Lookup", Method, 5}, + {"(*MethodSet).String", Method, 5}, + {"(*Named).AddMethod", Method, 5}, + {"(*Named).Method", Method, 5}, + {"(*Named).NumMethods", Method, 5}, + {"(*Named).Obj", Method, 5}, + {"(*Named).Origin", Method, 18}, + {"(*Named).SetTypeParams", Method, 18}, + {"(*Named).SetUnderlying", Method, 5}, + {"(*Named).String", Method, 5}, + {"(*Named).TypeArgs", Method, 18}, + {"(*Named).TypeParams", Method, 18}, + {"(*Named).Underlying", Method, 5}, + {"(*Nil).Exported", Method, 5}, + {"(*Nil).Id", Method, 5}, + {"(*Nil).Name", Method, 5}, + {"(*Nil).Parent", Method, 5}, + {"(*Nil).Pkg", Method, 5}, + {"(*Nil).Pos", Method, 5}, + {"(*Nil).String", Method, 5}, + {"(*Nil).Type", Method, 5}, + {"(*Package).Complete", Method, 5}, + {"(*Package).GoVersion", Method, 21}, + {"(*Package).Imports", Method, 5}, + {"(*Package).MarkComplete", Method, 5}, + {"(*Package).Name", Method, 5}, + {"(*Package).Path", Method, 5}, + {"(*Package).Scope", Method, 5}, + {"(*Package).SetImports", Method, 5}, + {"(*Package).SetName", Method, 6}, + {"(*Package).String", Method, 5}, + {"(*PkgName).Exported", Method, 5}, + {"(*PkgName).Id", Method, 5}, + {"(*PkgName).Imported", Method, 5}, + {"(*PkgName).Name", Method, 5}, + {"(*PkgName).Parent", Method, 5}, + {"(*PkgName).Pkg", Method, 5}, + {"(*PkgName).Pos", Method, 5}, + {"(*PkgName).String", Method, 5}, + {"(*PkgName).Type", Method, 5}, + {"(*Pointer).Elem", Method, 5}, + {"(*Pointer).String", Method, 5}, + {"(*Pointer).Underlying", Method, 5}, + {"(*Scope).Child", Method, 5}, + {"(*Scope).Contains", Method, 5}, + {"(*Scope).End", Method, 5}, + {"(*Scope).Innermost", Method, 5}, + {"(*Scope).Insert", Method, 5}, + {"(*Scope).Len", Method, 5}, + {"(*Scope).Lookup", Method, 5}, + {"(*Scope).LookupParent", Method, 5}, + {"(*Scope).Names", Method, 5}, + {"(*Scope).NumChildren", Method, 5}, + {"(*Scope).Parent", Method, 5}, + {"(*Scope).Pos", Method, 5}, + {"(*Scope).String", Method, 5}, + {"(*Scope).WriteTo", Method, 5}, + {"(*Selection).Index", Method, 5}, + {"(*Selection).Indirect", Method, 5}, + {"(*Selection).Kind", Method, 5}, + {"(*Selection).Obj", Method, 5}, + {"(*Selection).Recv", Method, 5}, + {"(*Selection).String", Method, 5}, + {"(*Selection).Type", Method, 5}, + {"(*Signature).Params", Method, 5}, + {"(*Signature).Recv", Method, 5}, + {"(*Signature).RecvTypeParams", Method, 18}, + {"(*Signature).Results", Method, 5}, + {"(*Signature).String", Method, 5}, + {"(*Signature).TypeParams", Method, 18}, + {"(*Signature).Underlying", Method, 5}, + {"(*Signature).Variadic", Method, 5}, + {"(*Slice).Elem", Method, 5}, + {"(*Slice).String", Method, 5}, + {"(*Slice).Underlying", Method, 5}, + {"(*StdSizes).Alignof", Method, 5}, + {"(*StdSizes).Offsetsof", Method, 5}, + {"(*StdSizes).Sizeof", Method, 5}, + {"(*Struct).Field", Method, 5}, + {"(*Struct).NumFields", Method, 5}, + {"(*Struct).String", Method, 5}, + {"(*Struct).Tag", Method, 5}, + {"(*Struct).Underlying", Method, 5}, + {"(*Term).String", Method, 18}, + {"(*Term).Tilde", Method, 18}, + {"(*Term).Type", Method, 18}, + {"(*Tuple).At", Method, 5}, + {"(*Tuple).Len", Method, 5}, + {"(*Tuple).String", Method, 5}, + {"(*Tuple).Underlying", Method, 5}, + {"(*TypeList).At", Method, 18}, + {"(*TypeList).Len", Method, 18}, + {"(*TypeName).Exported", Method, 5}, + {"(*TypeName).Id", Method, 5}, + {"(*TypeName).IsAlias", Method, 9}, + {"(*TypeName).Name", Method, 5}, + {"(*TypeName).Parent", Method, 5}, + {"(*TypeName).Pkg", Method, 5}, + {"(*TypeName).Pos", Method, 5}, + {"(*TypeName).String", Method, 5}, + {"(*TypeName).Type", Method, 5}, + {"(*TypeParam).Constraint", Method, 18}, + {"(*TypeParam).Index", Method, 18}, + {"(*TypeParam).Obj", Method, 18}, + {"(*TypeParam).SetConstraint", Method, 18}, + {"(*TypeParam).String", Method, 18}, + {"(*TypeParam).Underlying", Method, 18}, + {"(*TypeParamList).At", Method, 18}, + {"(*TypeParamList).Len", Method, 18}, + {"(*Union).Len", Method, 18}, + {"(*Union).String", Method, 18}, + {"(*Union).Term", Method, 18}, + {"(*Union).Underlying", Method, 18}, + {"(*Var).Anonymous", Method, 5}, + {"(*Var).Embedded", Method, 11}, + {"(*Var).Exported", Method, 5}, + {"(*Var).Id", Method, 5}, + {"(*Var).IsField", Method, 5}, + {"(*Var).Name", Method, 5}, + {"(*Var).Origin", Method, 19}, + {"(*Var).Parent", Method, 5}, + {"(*Var).Pkg", Method, 5}, + {"(*Var).Pos", Method, 5}, + {"(*Var).String", Method, 5}, + {"(*Var).Type", Method, 5}, + {"(Checker).ObjectOf", Method, 5}, + {"(Checker).PkgNameOf", Method, 22}, + {"(Checker).TypeOf", Method, 5}, + {"(Error).Error", Method, 5}, + {"(TypeAndValue).Addressable", Method, 5}, + {"(TypeAndValue).Assignable", Method, 5}, + {"(TypeAndValue).HasOk", Method, 5}, + {"(TypeAndValue).IsBuiltin", Method, 5}, + {"(TypeAndValue).IsNil", Method, 5}, + {"(TypeAndValue).IsType", Method, 5}, + {"(TypeAndValue).IsValue", Method, 5}, + {"(TypeAndValue).IsVoid", Method, 5}, + {"Alias", Type, 22}, + {"ArgumentError", Type, 18}, + {"ArgumentError.Err", Field, 18}, + {"ArgumentError.Index", Field, 18}, + {"Array", Type, 5}, + {"AssertableTo", Func, 5}, + {"AssignableTo", Func, 5}, + {"Basic", Type, 5}, + {"BasicInfo", Type, 5}, + {"BasicKind", Type, 5}, + {"Bool", Const, 5}, + {"Builtin", Type, 5}, + {"Byte", Const, 5}, + {"Chan", Type, 5}, + {"ChanDir", Type, 5}, + {"CheckExpr", Func, 13}, + {"Checker", Type, 5}, + {"Checker.Info", Field, 5}, + {"Comparable", Func, 5}, + {"Complex128", Const, 5}, + {"Complex64", Const, 5}, + {"Config", Type, 5}, + {"Config.Context", Field, 18}, + {"Config.DisableUnusedImportCheck", Field, 5}, + {"Config.Error", Field, 5}, + {"Config.FakeImportC", Field, 5}, + {"Config.GoVersion", Field, 18}, + {"Config.IgnoreFuncBodies", Field, 5}, + {"Config.Importer", Field, 5}, + {"Config.Sizes", Field, 5}, + {"Const", Type, 5}, + {"Context", Type, 18}, + {"ConvertibleTo", Func, 5}, + {"DefPredeclaredTestFuncs", Func, 5}, + {"Default", Func, 8}, + {"Error", Type, 5}, + {"Error.Fset", Field, 5}, + {"Error.Msg", Field, 5}, + {"Error.Pos", Field, 5}, + {"Error.Soft", Field, 5}, + {"Eval", Func, 5}, + {"ExprString", Func, 5}, + {"FieldVal", Const, 5}, + {"Float32", Const, 5}, + {"Float64", Const, 5}, + {"Func", Type, 5}, + {"Id", Func, 5}, + {"Identical", Func, 5}, + {"IdenticalIgnoreTags", Func, 8}, + {"Implements", Func, 5}, + {"ImportMode", Type, 6}, + {"Importer", Type, 5}, + {"ImporterFrom", Type, 6}, + {"Info", Type, 5}, + {"Info.Defs", Field, 5}, + {"Info.FileVersions", Field, 22}, + {"Info.Implicits", Field, 5}, + {"Info.InitOrder", Field, 5}, + {"Info.Instances", Field, 18}, + {"Info.Scopes", Field, 5}, + {"Info.Selections", Field, 5}, + {"Info.Types", Field, 5}, + {"Info.Uses", Field, 5}, + {"Initializer", Type, 5}, + {"Initializer.Lhs", Field, 5}, + {"Initializer.Rhs", Field, 5}, + {"Instance", Type, 18}, + {"Instance.Type", Field, 18}, + {"Instance.TypeArgs", Field, 18}, + {"Instantiate", Func, 18}, + {"Int", Const, 5}, + {"Int16", Const, 5}, + {"Int32", Const, 5}, + {"Int64", Const, 5}, + {"Int8", Const, 5}, + {"Interface", Type, 5}, + {"Invalid", Const, 5}, + {"IsBoolean", Const, 5}, + {"IsComplex", Const, 5}, + {"IsConstType", Const, 5}, + {"IsFloat", Const, 5}, + {"IsInteger", Const, 5}, + {"IsInterface", Func, 5}, + {"IsNumeric", Const, 5}, + {"IsOrdered", Const, 5}, + {"IsString", Const, 5}, + {"IsUnsigned", Const, 5}, + {"IsUntyped", Const, 5}, + {"Label", Type, 5}, + {"LookupFieldOrMethod", Func, 5}, + {"Map", Type, 5}, + {"MethodExpr", Const, 5}, + {"MethodSet", Type, 5}, + {"MethodVal", Const, 5}, + {"MissingMethod", Func, 5}, + {"Named", Type, 5}, + {"NewAlias", Func, 22}, + {"NewArray", Func, 5}, + {"NewChan", Func, 5}, + {"NewChecker", Func, 5}, + {"NewConst", Func, 5}, + {"NewContext", Func, 18}, + {"NewField", Func, 5}, + {"NewFunc", Func, 5}, + {"NewInterface", Func, 5}, + {"NewInterfaceType", Func, 11}, + {"NewLabel", Func, 5}, + {"NewMap", Func, 5}, + {"NewMethodSet", Func, 5}, + {"NewNamed", Func, 5}, + {"NewPackage", Func, 5}, + {"NewParam", Func, 5}, + {"NewPkgName", Func, 5}, + {"NewPointer", Func, 5}, + {"NewScope", Func, 5}, + {"NewSignature", Func, 5}, + {"NewSignatureType", Func, 18}, + {"NewSlice", Func, 5}, + {"NewStruct", Func, 5}, + {"NewTerm", Func, 18}, + {"NewTuple", Func, 5}, + {"NewTypeName", Func, 5}, + {"NewTypeParam", Func, 18}, + {"NewUnion", Func, 18}, + {"NewVar", Func, 5}, + {"Nil", Type, 5}, + {"Object", Type, 5}, + {"ObjectString", Func, 5}, + {"Package", Type, 5}, + {"PkgName", Type, 5}, + {"Pointer", Type, 5}, + {"Qualifier", Type, 5}, + {"RecvOnly", Const, 5}, + {"RelativeTo", Func, 5}, + {"Rune", Const, 5}, + {"Satisfies", Func, 20}, + {"Scope", Type, 5}, + {"Selection", Type, 5}, + {"SelectionKind", Type, 5}, + {"SelectionString", Func, 5}, + {"SendOnly", Const, 5}, + {"SendRecv", Const, 5}, + {"Signature", Type, 5}, + {"Sizes", Type, 5}, + {"SizesFor", Func, 9}, + {"Slice", Type, 5}, + {"StdSizes", Type, 5}, + {"StdSizes.MaxAlign", Field, 5}, + {"StdSizes.WordSize", Field, 5}, + {"String", Const, 5}, + {"Struct", Type, 5}, + {"Term", Type, 18}, + {"Tuple", Type, 5}, + {"Typ", Var, 5}, + {"Type", Type, 5}, + {"TypeAndValue", Type, 5}, + {"TypeAndValue.Type", Field, 5}, + {"TypeAndValue.Value", Field, 5}, + {"TypeList", Type, 18}, + {"TypeName", Type, 5}, + {"TypeParam", Type, 18}, + {"TypeParamList", Type, 18}, + {"TypeString", Func, 5}, + {"Uint", Const, 5}, + {"Uint16", Const, 5}, + {"Uint32", Const, 5}, + {"Uint64", Const, 5}, + {"Uint8", Const, 5}, + {"Uintptr", Const, 5}, + {"Unalias", Func, 22}, + {"Union", Type, 18}, + {"Universe", Var, 5}, + {"Unsafe", Var, 5}, + {"UnsafePointer", Const, 5}, + {"UntypedBool", Const, 5}, + {"UntypedComplex", Const, 5}, + {"UntypedFloat", Const, 5}, + {"UntypedInt", Const, 5}, + {"UntypedNil", Const, 5}, + {"UntypedRune", Const, 5}, + {"UntypedString", Const, 5}, + {"Var", Type, 5}, + {"WriteExpr", Func, 5}, + {"WriteSignature", Func, 5}, + {"WriteType", Func, 5}, + }, + "go/version": { + {"Compare", Func, 22}, + {"IsValid", Func, 22}, + {"Lang", Func, 22}, + }, + "hash": { + {"Hash", Type, 0}, + {"Hash32", Type, 0}, + {"Hash64", Type, 0}, + }, + "hash/adler32": { + {"Checksum", Func, 0}, + {"New", Func, 0}, + {"Size", Const, 0}, + }, + "hash/crc32": { + {"Castagnoli", Const, 0}, + {"Checksum", Func, 0}, + {"ChecksumIEEE", Func, 0}, + {"IEEE", Const, 0}, + {"IEEETable", Var, 0}, + {"Koopman", Const, 0}, + {"MakeTable", Func, 0}, + {"New", Func, 0}, + {"NewIEEE", Func, 0}, + {"Size", Const, 0}, + {"Table", Type, 0}, + {"Update", Func, 0}, + }, + "hash/crc64": { + {"Checksum", Func, 0}, + {"ECMA", Const, 0}, + {"ISO", Const, 0}, + {"MakeTable", Func, 0}, + {"New", Func, 0}, + {"Size", Const, 0}, + {"Table", Type, 0}, + {"Update", Func, 0}, + }, + "hash/fnv": { + {"New128", Func, 9}, + {"New128a", Func, 9}, + {"New32", Func, 0}, + {"New32a", Func, 0}, + {"New64", Func, 0}, + {"New64a", Func, 0}, + }, + "hash/maphash": { + {"(*Hash).BlockSize", Method, 14}, + {"(*Hash).Reset", Method, 14}, + {"(*Hash).Seed", Method, 14}, + {"(*Hash).SetSeed", Method, 14}, + {"(*Hash).Size", Method, 14}, + {"(*Hash).Sum", Method, 14}, + {"(*Hash).Sum64", Method, 14}, + {"(*Hash).Write", Method, 14}, + {"(*Hash).WriteByte", Method, 14}, + {"(*Hash).WriteString", Method, 14}, + {"Bytes", Func, 19}, + {"Hash", Type, 14}, + {"MakeSeed", Func, 14}, + {"Seed", Type, 14}, + {"String", Func, 19}, + }, + "html": { + {"EscapeString", Func, 0}, + {"UnescapeString", Func, 0}, + }, + "html/template": { + {"(*Error).Error", Method, 0}, + {"(*Template).AddParseTree", Method, 0}, + {"(*Template).Clone", Method, 0}, + {"(*Template).DefinedTemplates", Method, 6}, + {"(*Template).Delims", Method, 0}, + {"(*Template).Execute", Method, 0}, + {"(*Template).ExecuteTemplate", Method, 0}, + {"(*Template).Funcs", Method, 0}, + {"(*Template).Lookup", Method, 0}, + {"(*Template).Name", Method, 0}, + {"(*Template).New", Method, 0}, + {"(*Template).Option", Method, 5}, + {"(*Template).Parse", Method, 0}, + {"(*Template).ParseFS", Method, 16}, + {"(*Template).ParseFiles", Method, 0}, + {"(*Template).ParseGlob", Method, 0}, + {"(*Template).Templates", Method, 0}, + {"CSS", Type, 0}, + {"ErrAmbigContext", Const, 0}, + {"ErrBadHTML", Const, 0}, + {"ErrBranchEnd", Const, 0}, + {"ErrEndContext", Const, 0}, + {"ErrJSTemplate", Const, 21}, + {"ErrNoSuchTemplate", Const, 0}, + {"ErrOutputContext", Const, 0}, + {"ErrPartialCharset", Const, 0}, + {"ErrPartialEscape", Const, 0}, + {"ErrPredefinedEscaper", Const, 9}, + {"ErrRangeLoopReentry", Const, 0}, + {"ErrSlashAmbig", Const, 0}, + {"Error", Type, 0}, + {"Error.Description", Field, 0}, + {"Error.ErrorCode", Field, 0}, + {"Error.Line", Field, 0}, + {"Error.Name", Field, 0}, + {"Error.Node", Field, 4}, + {"ErrorCode", Type, 0}, + {"FuncMap", Type, 0}, + {"HTML", Type, 0}, + {"HTMLAttr", Type, 0}, + {"HTMLEscape", Func, 0}, + {"HTMLEscapeString", Func, 0}, + {"HTMLEscaper", Func, 0}, + {"IsTrue", Func, 6}, + {"JS", Type, 0}, + {"JSEscape", Func, 0}, + {"JSEscapeString", Func, 0}, + {"JSEscaper", Func, 0}, + {"JSStr", Type, 0}, + {"Must", Func, 0}, + {"New", Func, 0}, + {"OK", Const, 0}, + {"ParseFS", Func, 16}, + {"ParseFiles", Func, 0}, + {"ParseGlob", Func, 0}, + {"Srcset", Type, 10}, + {"Template", Type, 0}, + {"Template.Tree", Field, 2}, + {"URL", Type, 0}, + {"URLQueryEscaper", Func, 0}, + }, + "image": { + {"(*Alpha).AlphaAt", Method, 4}, + {"(*Alpha).At", Method, 0}, + {"(*Alpha).Bounds", Method, 0}, + {"(*Alpha).ColorModel", Method, 0}, + {"(*Alpha).Opaque", Method, 0}, + {"(*Alpha).PixOffset", Method, 0}, + {"(*Alpha).RGBA64At", Method, 17}, + {"(*Alpha).Set", Method, 0}, + {"(*Alpha).SetAlpha", Method, 0}, + {"(*Alpha).SetRGBA64", Method, 17}, + {"(*Alpha).SubImage", Method, 0}, + {"(*Alpha16).Alpha16At", Method, 4}, + {"(*Alpha16).At", Method, 0}, + {"(*Alpha16).Bounds", Method, 0}, + {"(*Alpha16).ColorModel", Method, 0}, + {"(*Alpha16).Opaque", Method, 0}, + {"(*Alpha16).PixOffset", Method, 0}, + {"(*Alpha16).RGBA64At", Method, 17}, + {"(*Alpha16).Set", Method, 0}, + {"(*Alpha16).SetAlpha16", Method, 0}, + {"(*Alpha16).SetRGBA64", Method, 17}, + {"(*Alpha16).SubImage", Method, 0}, + {"(*CMYK).At", Method, 5}, + {"(*CMYK).Bounds", Method, 5}, + {"(*CMYK).CMYKAt", Method, 5}, + {"(*CMYK).ColorModel", Method, 5}, + {"(*CMYK).Opaque", Method, 5}, + {"(*CMYK).PixOffset", Method, 5}, + {"(*CMYK).RGBA64At", Method, 17}, + {"(*CMYK).Set", Method, 5}, + {"(*CMYK).SetCMYK", Method, 5}, + {"(*CMYK).SetRGBA64", Method, 17}, + {"(*CMYK).SubImage", Method, 5}, + {"(*Gray).At", Method, 0}, + {"(*Gray).Bounds", Method, 0}, + {"(*Gray).ColorModel", Method, 0}, + {"(*Gray).GrayAt", Method, 4}, + {"(*Gray).Opaque", Method, 0}, + {"(*Gray).PixOffset", Method, 0}, + {"(*Gray).RGBA64At", Method, 17}, + {"(*Gray).Set", Method, 0}, + {"(*Gray).SetGray", Method, 0}, + {"(*Gray).SetRGBA64", Method, 17}, + {"(*Gray).SubImage", Method, 0}, + {"(*Gray16).At", Method, 0}, + {"(*Gray16).Bounds", Method, 0}, + {"(*Gray16).ColorModel", Method, 0}, + {"(*Gray16).Gray16At", Method, 4}, + {"(*Gray16).Opaque", Method, 0}, + {"(*Gray16).PixOffset", Method, 0}, + {"(*Gray16).RGBA64At", Method, 17}, + {"(*Gray16).Set", Method, 0}, + {"(*Gray16).SetGray16", Method, 0}, + {"(*Gray16).SetRGBA64", Method, 17}, + {"(*Gray16).SubImage", Method, 0}, + {"(*NRGBA).At", Method, 0}, + {"(*NRGBA).Bounds", Method, 0}, + {"(*NRGBA).ColorModel", Method, 0}, + {"(*NRGBA).NRGBAAt", Method, 4}, + {"(*NRGBA).Opaque", Method, 0}, + {"(*NRGBA).PixOffset", Method, 0}, + {"(*NRGBA).RGBA64At", Method, 17}, + {"(*NRGBA).Set", Method, 0}, + {"(*NRGBA).SetNRGBA", Method, 0}, + {"(*NRGBA).SetRGBA64", Method, 17}, + {"(*NRGBA).SubImage", Method, 0}, + {"(*NRGBA64).At", Method, 0}, + {"(*NRGBA64).Bounds", Method, 0}, + {"(*NRGBA64).ColorModel", Method, 0}, + {"(*NRGBA64).NRGBA64At", Method, 4}, + {"(*NRGBA64).Opaque", Method, 0}, + {"(*NRGBA64).PixOffset", Method, 0}, + {"(*NRGBA64).RGBA64At", Method, 17}, + {"(*NRGBA64).Set", Method, 0}, + {"(*NRGBA64).SetNRGBA64", Method, 0}, + {"(*NRGBA64).SetRGBA64", Method, 17}, + {"(*NRGBA64).SubImage", Method, 0}, + {"(*NYCbCrA).AOffset", Method, 6}, + {"(*NYCbCrA).At", Method, 6}, + {"(*NYCbCrA).Bounds", Method, 6}, + {"(*NYCbCrA).COffset", Method, 6}, + {"(*NYCbCrA).ColorModel", Method, 6}, + {"(*NYCbCrA).NYCbCrAAt", Method, 6}, + {"(*NYCbCrA).Opaque", Method, 6}, + {"(*NYCbCrA).RGBA64At", Method, 17}, + {"(*NYCbCrA).SubImage", Method, 6}, + {"(*NYCbCrA).YCbCrAt", Method, 6}, + {"(*NYCbCrA).YOffset", Method, 6}, + {"(*Paletted).At", Method, 0}, + {"(*Paletted).Bounds", Method, 0}, + {"(*Paletted).ColorIndexAt", Method, 0}, + {"(*Paletted).ColorModel", Method, 0}, + {"(*Paletted).Opaque", Method, 0}, + {"(*Paletted).PixOffset", Method, 0}, + {"(*Paletted).RGBA64At", Method, 17}, + {"(*Paletted).Set", Method, 0}, + {"(*Paletted).SetColorIndex", Method, 0}, + {"(*Paletted).SetRGBA64", Method, 17}, + {"(*Paletted).SubImage", Method, 0}, + {"(*RGBA).At", Method, 0}, + {"(*RGBA).Bounds", Method, 0}, + {"(*RGBA).ColorModel", Method, 0}, + {"(*RGBA).Opaque", Method, 0}, + {"(*RGBA).PixOffset", Method, 0}, + {"(*RGBA).RGBA64At", Method, 17}, + {"(*RGBA).RGBAAt", Method, 4}, + {"(*RGBA).Set", Method, 0}, + {"(*RGBA).SetRGBA", Method, 0}, + {"(*RGBA).SetRGBA64", Method, 17}, + {"(*RGBA).SubImage", Method, 0}, + {"(*RGBA64).At", Method, 0}, + {"(*RGBA64).Bounds", Method, 0}, + {"(*RGBA64).ColorModel", Method, 0}, + {"(*RGBA64).Opaque", Method, 0}, + {"(*RGBA64).PixOffset", Method, 0}, + {"(*RGBA64).RGBA64At", Method, 4}, + {"(*RGBA64).Set", Method, 0}, + {"(*RGBA64).SetRGBA64", Method, 0}, + {"(*RGBA64).SubImage", Method, 0}, + {"(*Uniform).At", Method, 0}, + {"(*Uniform).Bounds", Method, 0}, + {"(*Uniform).ColorModel", Method, 0}, + {"(*Uniform).Convert", Method, 0}, + {"(*Uniform).Opaque", Method, 0}, + {"(*Uniform).RGBA", Method, 0}, + {"(*Uniform).RGBA64At", Method, 17}, + {"(*YCbCr).At", Method, 0}, + {"(*YCbCr).Bounds", Method, 0}, + {"(*YCbCr).COffset", Method, 0}, + {"(*YCbCr).ColorModel", Method, 0}, + {"(*YCbCr).Opaque", Method, 0}, + {"(*YCbCr).RGBA64At", Method, 17}, + {"(*YCbCr).SubImage", Method, 0}, + {"(*YCbCr).YCbCrAt", Method, 4}, + {"(*YCbCr).YOffset", Method, 0}, + {"(Point).Add", Method, 0}, + {"(Point).Div", Method, 0}, + {"(Point).Eq", Method, 0}, + {"(Point).In", Method, 0}, + {"(Point).Mod", Method, 0}, + {"(Point).Mul", Method, 0}, + {"(Point).String", Method, 0}, + {"(Point).Sub", Method, 0}, + {"(Rectangle).Add", Method, 0}, + {"(Rectangle).At", Method, 5}, + {"(Rectangle).Bounds", Method, 5}, + {"(Rectangle).Canon", Method, 0}, + {"(Rectangle).ColorModel", Method, 5}, + {"(Rectangle).Dx", Method, 0}, + {"(Rectangle).Dy", Method, 0}, + {"(Rectangle).Empty", Method, 0}, + {"(Rectangle).Eq", Method, 0}, + {"(Rectangle).In", Method, 0}, + {"(Rectangle).Inset", Method, 0}, + {"(Rectangle).Intersect", Method, 0}, + {"(Rectangle).Overlaps", Method, 0}, + {"(Rectangle).RGBA64At", Method, 17}, + {"(Rectangle).Size", Method, 0}, + {"(Rectangle).String", Method, 0}, + {"(Rectangle).Sub", Method, 0}, + {"(Rectangle).Union", Method, 0}, + {"(YCbCrSubsampleRatio).String", Method, 0}, + {"Alpha", Type, 0}, + {"Alpha.Pix", Field, 0}, + {"Alpha.Rect", Field, 0}, + {"Alpha.Stride", Field, 0}, + {"Alpha16", Type, 0}, + {"Alpha16.Pix", Field, 0}, + {"Alpha16.Rect", Field, 0}, + {"Alpha16.Stride", Field, 0}, + {"Black", Var, 0}, + {"CMYK", Type, 5}, + {"CMYK.Pix", Field, 5}, + {"CMYK.Rect", Field, 5}, + {"CMYK.Stride", Field, 5}, + {"Config", Type, 0}, + {"Config.ColorModel", Field, 0}, + {"Config.Height", Field, 0}, + {"Config.Width", Field, 0}, + {"Decode", Func, 0}, + {"DecodeConfig", Func, 0}, + {"ErrFormat", Var, 0}, + {"Gray", Type, 0}, + {"Gray.Pix", Field, 0}, + {"Gray.Rect", Field, 0}, + {"Gray.Stride", Field, 0}, + {"Gray16", Type, 0}, + {"Gray16.Pix", Field, 0}, + {"Gray16.Rect", Field, 0}, + {"Gray16.Stride", Field, 0}, + {"Image", Type, 0}, + {"NRGBA", Type, 0}, + {"NRGBA.Pix", Field, 0}, + {"NRGBA.Rect", Field, 0}, + {"NRGBA.Stride", Field, 0}, + {"NRGBA64", Type, 0}, + {"NRGBA64.Pix", Field, 0}, + {"NRGBA64.Rect", Field, 0}, + {"NRGBA64.Stride", Field, 0}, + {"NYCbCrA", Type, 6}, + {"NYCbCrA.A", Field, 6}, + {"NYCbCrA.AStride", Field, 6}, + {"NYCbCrA.YCbCr", Field, 6}, + {"NewAlpha", Func, 0}, + {"NewAlpha16", Func, 0}, + {"NewCMYK", Func, 5}, + {"NewGray", Func, 0}, + {"NewGray16", Func, 0}, + {"NewNRGBA", Func, 0}, + {"NewNRGBA64", Func, 0}, + {"NewNYCbCrA", Func, 6}, + {"NewPaletted", Func, 0}, + {"NewRGBA", Func, 0}, + {"NewRGBA64", Func, 0}, + {"NewUniform", Func, 0}, + {"NewYCbCr", Func, 0}, + {"Opaque", Var, 0}, + {"Paletted", Type, 0}, + {"Paletted.Palette", Field, 0}, + {"Paletted.Pix", Field, 0}, + {"Paletted.Rect", Field, 0}, + {"Paletted.Stride", Field, 0}, + {"PalettedImage", Type, 0}, + {"Point", Type, 0}, + {"Point.X", Field, 0}, + {"Point.Y", Field, 0}, + {"Pt", Func, 0}, + {"RGBA", Type, 0}, + {"RGBA.Pix", Field, 0}, + {"RGBA.Rect", Field, 0}, + {"RGBA.Stride", Field, 0}, + {"RGBA64", Type, 0}, + {"RGBA64.Pix", Field, 0}, + {"RGBA64.Rect", Field, 0}, + {"RGBA64.Stride", Field, 0}, + {"RGBA64Image", Type, 17}, + {"Rect", Func, 0}, + {"Rectangle", Type, 0}, + {"Rectangle.Max", Field, 0}, + {"Rectangle.Min", Field, 0}, + {"RegisterFormat", Func, 0}, + {"Transparent", Var, 0}, + {"Uniform", Type, 0}, + {"Uniform.C", Field, 0}, + {"White", Var, 0}, + {"YCbCr", Type, 0}, + {"YCbCr.CStride", Field, 0}, + {"YCbCr.Cb", Field, 0}, + {"YCbCr.Cr", Field, 0}, + {"YCbCr.Rect", Field, 0}, + {"YCbCr.SubsampleRatio", Field, 0}, + {"YCbCr.Y", Field, 0}, + {"YCbCr.YStride", Field, 0}, + {"YCbCrSubsampleRatio", Type, 0}, + {"YCbCrSubsampleRatio410", Const, 5}, + {"YCbCrSubsampleRatio411", Const, 5}, + {"YCbCrSubsampleRatio420", Const, 0}, + {"YCbCrSubsampleRatio422", Const, 0}, + {"YCbCrSubsampleRatio440", Const, 1}, + {"YCbCrSubsampleRatio444", Const, 0}, + {"ZP", Var, 0}, + {"ZR", Var, 0}, + }, + "image/color": { + {"(Alpha).RGBA", Method, 0}, + {"(Alpha16).RGBA", Method, 0}, + {"(CMYK).RGBA", Method, 5}, + {"(Gray).RGBA", Method, 0}, + {"(Gray16).RGBA", Method, 0}, + {"(NRGBA).RGBA", Method, 0}, + {"(NRGBA64).RGBA", Method, 0}, + {"(NYCbCrA).RGBA", Method, 6}, + {"(Palette).Convert", Method, 0}, + {"(Palette).Index", Method, 0}, + {"(RGBA).RGBA", Method, 0}, + {"(RGBA64).RGBA", Method, 0}, + {"(YCbCr).RGBA", Method, 0}, + {"Alpha", Type, 0}, + {"Alpha.A", Field, 0}, + {"Alpha16", Type, 0}, + {"Alpha16.A", Field, 0}, + {"Alpha16Model", Var, 0}, + {"AlphaModel", Var, 0}, + {"Black", Var, 0}, + {"CMYK", Type, 5}, + {"CMYK.C", Field, 5}, + {"CMYK.K", Field, 5}, + {"CMYK.M", Field, 5}, + {"CMYK.Y", Field, 5}, + {"CMYKModel", Var, 5}, + {"CMYKToRGB", Func, 5}, + {"Color", Type, 0}, + {"Gray", Type, 0}, + {"Gray.Y", Field, 0}, + {"Gray16", Type, 0}, + {"Gray16.Y", Field, 0}, + {"Gray16Model", Var, 0}, + {"GrayModel", Var, 0}, + {"Model", Type, 0}, + {"ModelFunc", Func, 0}, + {"NRGBA", Type, 0}, + {"NRGBA.A", Field, 0}, + {"NRGBA.B", Field, 0}, + {"NRGBA.G", Field, 0}, + {"NRGBA.R", Field, 0}, + {"NRGBA64", Type, 0}, + {"NRGBA64.A", Field, 0}, + {"NRGBA64.B", Field, 0}, + {"NRGBA64.G", Field, 0}, + {"NRGBA64.R", Field, 0}, + {"NRGBA64Model", Var, 0}, + {"NRGBAModel", Var, 0}, + {"NYCbCrA", Type, 6}, + {"NYCbCrA.A", Field, 6}, + {"NYCbCrA.YCbCr", Field, 6}, + {"NYCbCrAModel", Var, 6}, + {"Opaque", Var, 0}, + {"Palette", Type, 0}, + {"RGBA", Type, 0}, + {"RGBA.A", Field, 0}, + {"RGBA.B", Field, 0}, + {"RGBA.G", Field, 0}, + {"RGBA.R", Field, 0}, + {"RGBA64", Type, 0}, + {"RGBA64.A", Field, 0}, + {"RGBA64.B", Field, 0}, + {"RGBA64.G", Field, 0}, + {"RGBA64.R", Field, 0}, + {"RGBA64Model", Var, 0}, + {"RGBAModel", Var, 0}, + {"RGBToCMYK", Func, 5}, + {"RGBToYCbCr", Func, 0}, + {"Transparent", Var, 0}, + {"White", Var, 0}, + {"YCbCr", Type, 0}, + {"YCbCr.Cb", Field, 0}, + {"YCbCr.Cr", Field, 0}, + {"YCbCr.Y", Field, 0}, + {"YCbCrModel", Var, 0}, + {"YCbCrToRGB", Func, 0}, + }, + "image/color/palette": { + {"Plan9", Var, 2}, + {"WebSafe", Var, 2}, + }, + "image/draw": { + {"(Op).Draw", Method, 2}, + {"Draw", Func, 0}, + {"DrawMask", Func, 0}, + {"Drawer", Type, 2}, + {"FloydSteinberg", Var, 2}, + {"Image", Type, 0}, + {"Op", Type, 0}, + {"Over", Const, 0}, + {"Quantizer", Type, 2}, + {"RGBA64Image", Type, 17}, + {"Src", Const, 0}, + }, + "image/gif": { + {"Decode", Func, 0}, + {"DecodeAll", Func, 0}, + {"DecodeConfig", Func, 0}, + {"DisposalBackground", Const, 5}, + {"DisposalNone", Const, 5}, + {"DisposalPrevious", Const, 5}, + {"Encode", Func, 2}, + {"EncodeAll", Func, 2}, + {"GIF", Type, 0}, + {"GIF.BackgroundIndex", Field, 5}, + {"GIF.Config", Field, 5}, + {"GIF.Delay", Field, 0}, + {"GIF.Disposal", Field, 5}, + {"GIF.Image", Field, 0}, + {"GIF.LoopCount", Field, 0}, + {"Options", Type, 2}, + {"Options.Drawer", Field, 2}, + {"Options.NumColors", Field, 2}, + {"Options.Quantizer", Field, 2}, + }, + "image/jpeg": { + {"(FormatError).Error", Method, 0}, + {"(UnsupportedError).Error", Method, 0}, + {"Decode", Func, 0}, + {"DecodeConfig", Func, 0}, + {"DefaultQuality", Const, 0}, + {"Encode", Func, 0}, + {"FormatError", Type, 0}, + {"Options", Type, 0}, + {"Options.Quality", Field, 0}, + {"Reader", Type, 0}, + {"UnsupportedError", Type, 0}, + }, + "image/png": { + {"(*Encoder).Encode", Method, 4}, + {"(FormatError).Error", Method, 0}, + {"(UnsupportedError).Error", Method, 0}, + {"BestCompression", Const, 4}, + {"BestSpeed", Const, 4}, + {"CompressionLevel", Type, 4}, + {"Decode", Func, 0}, + {"DecodeConfig", Func, 0}, + {"DefaultCompression", Const, 4}, + {"Encode", Func, 0}, + {"Encoder", Type, 4}, + {"Encoder.BufferPool", Field, 9}, + {"Encoder.CompressionLevel", Field, 4}, + {"EncoderBuffer", Type, 9}, + {"EncoderBufferPool", Type, 9}, + {"FormatError", Type, 0}, + {"NoCompression", Const, 4}, + {"UnsupportedError", Type, 0}, + }, + "index/suffixarray": { + {"(*Index).Bytes", Method, 0}, + {"(*Index).FindAllIndex", Method, 0}, + {"(*Index).Lookup", Method, 0}, + {"(*Index).Read", Method, 0}, + {"(*Index).Write", Method, 0}, + {"Index", Type, 0}, + {"New", Func, 0}, + }, + "io": { + {"(*LimitedReader).Read", Method, 0}, + {"(*OffsetWriter).Seek", Method, 20}, + {"(*OffsetWriter).Write", Method, 20}, + {"(*OffsetWriter).WriteAt", Method, 20}, + {"(*PipeReader).Close", Method, 0}, + {"(*PipeReader).CloseWithError", Method, 0}, + {"(*PipeReader).Read", Method, 0}, + {"(*PipeWriter).Close", Method, 0}, + {"(*PipeWriter).CloseWithError", Method, 0}, + {"(*PipeWriter).Write", Method, 0}, + {"(*SectionReader).Outer", Method, 22}, + {"(*SectionReader).Read", Method, 0}, + {"(*SectionReader).ReadAt", Method, 0}, + {"(*SectionReader).Seek", Method, 0}, + {"(*SectionReader).Size", Method, 0}, + {"ByteReader", Type, 0}, + {"ByteScanner", Type, 0}, + {"ByteWriter", Type, 1}, + {"Closer", Type, 0}, + {"Copy", Func, 0}, + {"CopyBuffer", Func, 5}, + {"CopyN", Func, 0}, + {"Discard", Var, 16}, + {"EOF", Var, 0}, + {"ErrClosedPipe", Var, 0}, + {"ErrNoProgress", Var, 1}, + {"ErrShortBuffer", Var, 0}, + {"ErrShortWrite", Var, 0}, + {"ErrUnexpectedEOF", Var, 0}, + {"LimitReader", Func, 0}, + {"LimitedReader", Type, 0}, + {"LimitedReader.N", Field, 0}, + {"LimitedReader.R", Field, 0}, + {"MultiReader", Func, 0}, + {"MultiWriter", Func, 0}, + {"NewOffsetWriter", Func, 20}, + {"NewSectionReader", Func, 0}, + {"NopCloser", Func, 16}, + {"OffsetWriter", Type, 20}, + {"Pipe", Func, 0}, + {"PipeReader", Type, 0}, + {"PipeWriter", Type, 0}, + {"ReadAll", Func, 16}, + {"ReadAtLeast", Func, 0}, + {"ReadCloser", Type, 0}, + {"ReadFull", Func, 0}, + {"ReadSeekCloser", Type, 16}, + {"ReadSeeker", Type, 0}, + {"ReadWriteCloser", Type, 0}, + {"ReadWriteSeeker", Type, 0}, + {"ReadWriter", Type, 0}, + {"Reader", Type, 0}, + {"ReaderAt", Type, 0}, + {"ReaderFrom", Type, 0}, + {"RuneReader", Type, 0}, + {"RuneScanner", Type, 0}, + {"SectionReader", Type, 0}, + {"SeekCurrent", Const, 7}, + {"SeekEnd", Const, 7}, + {"SeekStart", Const, 7}, + {"Seeker", Type, 0}, + {"StringWriter", Type, 12}, + {"TeeReader", Func, 0}, + {"WriteCloser", Type, 0}, + {"WriteSeeker", Type, 0}, + {"WriteString", Func, 0}, + {"Writer", Type, 0}, + {"WriterAt", Type, 0}, + {"WriterTo", Type, 0}, + }, + "io/fs": { + {"(*PathError).Error", Method, 16}, + {"(*PathError).Timeout", Method, 16}, + {"(*PathError).Unwrap", Method, 16}, + {"(FileMode).IsDir", Method, 16}, + {"(FileMode).IsRegular", Method, 16}, + {"(FileMode).Perm", Method, 16}, + {"(FileMode).String", Method, 16}, + {"(FileMode).Type", Method, 16}, + {"DirEntry", Type, 16}, + {"ErrClosed", Var, 16}, + {"ErrExist", Var, 16}, + {"ErrInvalid", Var, 16}, + {"ErrNotExist", Var, 16}, + {"ErrPermission", Var, 16}, + {"FS", Type, 16}, + {"File", Type, 16}, + {"FileInfo", Type, 16}, + {"FileInfoToDirEntry", Func, 17}, + {"FileMode", Type, 16}, + {"FormatDirEntry", Func, 21}, + {"FormatFileInfo", Func, 21}, + {"Glob", Func, 16}, + {"GlobFS", Type, 16}, + {"ModeAppend", Const, 16}, + {"ModeCharDevice", Const, 16}, + {"ModeDevice", Const, 16}, + {"ModeDir", Const, 16}, + {"ModeExclusive", Const, 16}, + {"ModeIrregular", Const, 16}, + {"ModeNamedPipe", Const, 16}, + {"ModePerm", Const, 16}, + {"ModeSetgid", Const, 16}, + {"ModeSetuid", Const, 16}, + {"ModeSocket", Const, 16}, + {"ModeSticky", Const, 16}, + {"ModeSymlink", Const, 16}, + {"ModeTemporary", Const, 16}, + {"ModeType", Const, 16}, + {"PathError", Type, 16}, + {"PathError.Err", Field, 16}, + {"PathError.Op", Field, 16}, + {"PathError.Path", Field, 16}, + {"ReadDir", Func, 16}, + {"ReadDirFS", Type, 16}, + {"ReadDirFile", Type, 16}, + {"ReadFile", Func, 16}, + {"ReadFileFS", Type, 16}, + {"SkipAll", Var, 20}, + {"SkipDir", Var, 16}, + {"Stat", Func, 16}, + {"StatFS", Type, 16}, + {"Sub", Func, 16}, + {"SubFS", Type, 16}, + {"ValidPath", Func, 16}, + {"WalkDir", Func, 16}, + {"WalkDirFunc", Type, 16}, + }, + "io/ioutil": { + {"Discard", Var, 0}, + {"NopCloser", Func, 0}, + {"ReadAll", Func, 0}, + {"ReadDir", Func, 0}, + {"ReadFile", Func, 0}, + {"TempDir", Func, 0}, + {"TempFile", Func, 0}, + {"WriteFile", Func, 0}, + }, + "log": { + {"(*Logger).Fatal", Method, 0}, + {"(*Logger).Fatalf", Method, 0}, + {"(*Logger).Fatalln", Method, 0}, + {"(*Logger).Flags", Method, 0}, + {"(*Logger).Output", Method, 0}, + {"(*Logger).Panic", Method, 0}, + {"(*Logger).Panicf", Method, 0}, + {"(*Logger).Panicln", Method, 0}, + {"(*Logger).Prefix", Method, 0}, + {"(*Logger).Print", Method, 0}, + {"(*Logger).Printf", Method, 0}, + {"(*Logger).Println", Method, 0}, + {"(*Logger).SetFlags", Method, 0}, + {"(*Logger).SetOutput", Method, 5}, + {"(*Logger).SetPrefix", Method, 0}, + {"(*Logger).Writer", Method, 12}, + {"Default", Func, 16}, + {"Fatal", Func, 0}, + {"Fatalf", Func, 0}, + {"Fatalln", Func, 0}, + {"Flags", Func, 0}, + {"LUTC", Const, 5}, + {"Ldate", Const, 0}, + {"Llongfile", Const, 0}, + {"Lmicroseconds", Const, 0}, + {"Lmsgprefix", Const, 14}, + {"Logger", Type, 0}, + {"Lshortfile", Const, 0}, + {"LstdFlags", Const, 0}, + {"Ltime", Const, 0}, + {"New", Func, 0}, + {"Output", Func, 5}, + {"Panic", Func, 0}, + {"Panicf", Func, 0}, + {"Panicln", Func, 0}, + {"Prefix", Func, 0}, + {"Print", Func, 0}, + {"Printf", Func, 0}, + {"Println", Func, 0}, + {"SetFlags", Func, 0}, + {"SetOutput", Func, 0}, + {"SetPrefix", Func, 0}, + {"Writer", Func, 13}, + }, + "log/slog": { + {"(*JSONHandler).Enabled", Method, 21}, + {"(*JSONHandler).Handle", Method, 21}, + {"(*JSONHandler).WithAttrs", Method, 21}, + {"(*JSONHandler).WithGroup", Method, 21}, + {"(*Level).UnmarshalJSON", Method, 21}, + {"(*Level).UnmarshalText", Method, 21}, + {"(*LevelVar).Level", Method, 21}, + {"(*LevelVar).MarshalText", Method, 21}, + {"(*LevelVar).Set", Method, 21}, + {"(*LevelVar).String", Method, 21}, + {"(*LevelVar).UnmarshalText", Method, 21}, + {"(*Logger).Debug", Method, 21}, + {"(*Logger).DebugContext", Method, 21}, + {"(*Logger).Enabled", Method, 21}, + {"(*Logger).Error", Method, 21}, + {"(*Logger).ErrorContext", Method, 21}, + {"(*Logger).Handler", Method, 21}, + {"(*Logger).Info", Method, 21}, + {"(*Logger).InfoContext", Method, 21}, + {"(*Logger).Log", Method, 21}, + {"(*Logger).LogAttrs", Method, 21}, + {"(*Logger).Warn", Method, 21}, + {"(*Logger).WarnContext", Method, 21}, + {"(*Logger).With", Method, 21}, + {"(*Logger).WithGroup", Method, 21}, + {"(*Record).Add", Method, 21}, + {"(*Record).AddAttrs", Method, 21}, + {"(*TextHandler).Enabled", Method, 21}, + {"(*TextHandler).Handle", Method, 21}, + {"(*TextHandler).WithAttrs", Method, 21}, + {"(*TextHandler).WithGroup", Method, 21}, + {"(Attr).Equal", Method, 21}, + {"(Attr).String", Method, 21}, + {"(Kind).String", Method, 21}, + {"(Level).Level", Method, 21}, + {"(Level).MarshalJSON", Method, 21}, + {"(Level).MarshalText", Method, 21}, + {"(Level).String", Method, 21}, + {"(Record).Attrs", Method, 21}, + {"(Record).Clone", Method, 21}, + {"(Record).NumAttrs", Method, 21}, + {"(Value).Any", Method, 21}, + {"(Value).Bool", Method, 21}, + {"(Value).Duration", Method, 21}, + {"(Value).Equal", Method, 21}, + {"(Value).Float64", Method, 21}, + {"(Value).Group", Method, 21}, + {"(Value).Int64", Method, 21}, + {"(Value).Kind", Method, 21}, + {"(Value).LogValuer", Method, 21}, + {"(Value).Resolve", Method, 21}, + {"(Value).String", Method, 21}, + {"(Value).Time", Method, 21}, + {"(Value).Uint64", Method, 21}, + {"Any", Func, 21}, + {"AnyValue", Func, 21}, + {"Attr", Type, 21}, + {"Attr.Key", Field, 21}, + {"Attr.Value", Field, 21}, + {"Bool", Func, 21}, + {"BoolValue", Func, 21}, + {"Debug", Func, 21}, + {"DebugContext", Func, 21}, + {"Default", Func, 21}, + {"Duration", Func, 21}, + {"DurationValue", Func, 21}, + {"Error", Func, 21}, + {"ErrorContext", Func, 21}, + {"Float64", Func, 21}, + {"Float64Value", Func, 21}, + {"Group", Func, 21}, + {"GroupValue", Func, 21}, + {"Handler", Type, 21}, + {"HandlerOptions", Type, 21}, + {"HandlerOptions.AddSource", Field, 21}, + {"HandlerOptions.Level", Field, 21}, + {"HandlerOptions.ReplaceAttr", Field, 21}, + {"Info", Func, 21}, + {"InfoContext", Func, 21}, + {"Int", Func, 21}, + {"Int64", Func, 21}, + {"Int64Value", Func, 21}, + {"IntValue", Func, 21}, + {"JSONHandler", Type, 21}, + {"Kind", Type, 21}, + {"KindAny", Const, 21}, + {"KindBool", Const, 21}, + {"KindDuration", Const, 21}, + {"KindFloat64", Const, 21}, + {"KindGroup", Const, 21}, + {"KindInt64", Const, 21}, + {"KindLogValuer", Const, 21}, + {"KindString", Const, 21}, + {"KindTime", Const, 21}, + {"KindUint64", Const, 21}, + {"Level", Type, 21}, + {"LevelDebug", Const, 21}, + {"LevelError", Const, 21}, + {"LevelInfo", Const, 21}, + {"LevelKey", Const, 21}, + {"LevelVar", Type, 21}, + {"LevelWarn", Const, 21}, + {"Leveler", Type, 21}, + {"Log", Func, 21}, + {"LogAttrs", Func, 21}, + {"LogValuer", Type, 21}, + {"Logger", Type, 21}, + {"MessageKey", Const, 21}, + {"New", Func, 21}, + {"NewJSONHandler", Func, 21}, + {"NewLogLogger", Func, 21}, + {"NewRecord", Func, 21}, + {"NewTextHandler", Func, 21}, + {"Record", Type, 21}, + {"Record.Level", Field, 21}, + {"Record.Message", Field, 21}, + {"Record.PC", Field, 21}, + {"Record.Time", Field, 21}, + {"SetDefault", Func, 21}, + {"SetLogLoggerLevel", Func, 22}, + {"Source", Type, 21}, + {"Source.File", Field, 21}, + {"Source.Function", Field, 21}, + {"Source.Line", Field, 21}, + {"SourceKey", Const, 21}, + {"String", Func, 21}, + {"StringValue", Func, 21}, + {"TextHandler", Type, 21}, + {"Time", Func, 21}, + {"TimeKey", Const, 21}, + {"TimeValue", Func, 21}, + {"Uint64", Func, 21}, + {"Uint64Value", Func, 21}, + {"Value", Type, 21}, + {"Warn", Func, 21}, + {"WarnContext", Func, 21}, + {"With", Func, 21}, + }, + "log/syslog": { + {"(*Writer).Alert", Method, 0}, + {"(*Writer).Close", Method, 0}, + {"(*Writer).Crit", Method, 0}, + {"(*Writer).Debug", Method, 0}, + {"(*Writer).Emerg", Method, 0}, + {"(*Writer).Err", Method, 0}, + {"(*Writer).Info", Method, 0}, + {"(*Writer).Notice", Method, 0}, + {"(*Writer).Warning", Method, 0}, + {"(*Writer).Write", Method, 0}, + {"Dial", Func, 0}, + {"LOG_ALERT", Const, 0}, + {"LOG_AUTH", Const, 1}, + {"LOG_AUTHPRIV", Const, 1}, + {"LOG_CRIT", Const, 0}, + {"LOG_CRON", Const, 1}, + {"LOG_DAEMON", Const, 1}, + {"LOG_DEBUG", Const, 0}, + {"LOG_EMERG", Const, 0}, + {"LOG_ERR", Const, 0}, + {"LOG_FTP", Const, 1}, + {"LOG_INFO", Const, 0}, + {"LOG_KERN", Const, 1}, + {"LOG_LOCAL0", Const, 1}, + {"LOG_LOCAL1", Const, 1}, + {"LOG_LOCAL2", Const, 1}, + {"LOG_LOCAL3", Const, 1}, + {"LOG_LOCAL4", Const, 1}, + {"LOG_LOCAL5", Const, 1}, + {"LOG_LOCAL6", Const, 1}, + {"LOG_LOCAL7", Const, 1}, + {"LOG_LPR", Const, 1}, + {"LOG_MAIL", Const, 1}, + {"LOG_NEWS", Const, 1}, + {"LOG_NOTICE", Const, 0}, + {"LOG_SYSLOG", Const, 1}, + {"LOG_USER", Const, 1}, + {"LOG_UUCP", Const, 1}, + {"LOG_WARNING", Const, 0}, + {"New", Func, 0}, + {"NewLogger", Func, 0}, + {"Priority", Type, 0}, + {"Writer", Type, 0}, + }, + "maps": { + {"Clone", Func, 21}, + {"Copy", Func, 21}, + {"DeleteFunc", Func, 21}, + {"Equal", Func, 21}, + {"EqualFunc", Func, 21}, + }, + "math": { + {"Abs", Func, 0}, + {"Acos", Func, 0}, + {"Acosh", Func, 0}, + {"Asin", Func, 0}, + {"Asinh", Func, 0}, + {"Atan", Func, 0}, + {"Atan2", Func, 0}, + {"Atanh", Func, 0}, + {"Cbrt", Func, 0}, + {"Ceil", Func, 0}, + {"Copysign", Func, 0}, + {"Cos", Func, 0}, + {"Cosh", Func, 0}, + {"Dim", Func, 0}, + {"E", Const, 0}, + {"Erf", Func, 0}, + {"Erfc", Func, 0}, + {"Erfcinv", Func, 10}, + {"Erfinv", Func, 10}, + {"Exp", Func, 0}, + {"Exp2", Func, 0}, + {"Expm1", Func, 0}, + {"FMA", Func, 14}, + {"Float32bits", Func, 0}, + {"Float32frombits", Func, 0}, + {"Float64bits", Func, 0}, + {"Float64frombits", Func, 0}, + {"Floor", Func, 0}, + {"Frexp", Func, 0}, + {"Gamma", Func, 0}, + {"Hypot", Func, 0}, + {"Ilogb", Func, 0}, + {"Inf", Func, 0}, + {"IsInf", Func, 0}, + {"IsNaN", Func, 0}, + {"J0", Func, 0}, + {"J1", Func, 0}, + {"Jn", Func, 0}, + {"Ldexp", Func, 0}, + {"Lgamma", Func, 0}, + {"Ln10", Const, 0}, + {"Ln2", Const, 0}, + {"Log", Func, 0}, + {"Log10", Func, 0}, + {"Log10E", Const, 0}, + {"Log1p", Func, 0}, + {"Log2", Func, 0}, + {"Log2E", Const, 0}, + {"Logb", Func, 0}, + {"Max", Func, 0}, + {"MaxFloat32", Const, 0}, + {"MaxFloat64", Const, 0}, + {"MaxInt", Const, 17}, + {"MaxInt16", Const, 0}, + {"MaxInt32", Const, 0}, + {"MaxInt64", Const, 0}, + {"MaxInt8", Const, 0}, + {"MaxUint", Const, 17}, + {"MaxUint16", Const, 0}, + {"MaxUint32", Const, 0}, + {"MaxUint64", Const, 0}, + {"MaxUint8", Const, 0}, + {"Min", Func, 0}, + {"MinInt", Const, 17}, + {"MinInt16", Const, 0}, + {"MinInt32", Const, 0}, + {"MinInt64", Const, 0}, + {"MinInt8", Const, 0}, + {"Mod", Func, 0}, + {"Modf", Func, 0}, + {"NaN", Func, 0}, + {"Nextafter", Func, 0}, + {"Nextafter32", Func, 4}, + {"Phi", Const, 0}, + {"Pi", Const, 0}, + {"Pow", Func, 0}, + {"Pow10", Func, 0}, + {"Remainder", Func, 0}, + {"Round", Func, 10}, + {"RoundToEven", Func, 10}, + {"Signbit", Func, 0}, + {"Sin", Func, 0}, + {"Sincos", Func, 0}, + {"Sinh", Func, 0}, + {"SmallestNonzeroFloat32", Const, 0}, + {"SmallestNonzeroFloat64", Const, 0}, + {"Sqrt", Func, 0}, + {"Sqrt2", Const, 0}, + {"SqrtE", Const, 0}, + {"SqrtPhi", Const, 0}, + {"SqrtPi", Const, 0}, + {"Tan", Func, 0}, + {"Tanh", Func, 0}, + {"Trunc", Func, 0}, + {"Y0", Func, 0}, + {"Y1", Func, 0}, + {"Yn", Func, 0}, + }, + "math/big": { + {"(*Float).Abs", Method, 5}, + {"(*Float).Acc", Method, 5}, + {"(*Float).Add", Method, 5}, + {"(*Float).Append", Method, 5}, + {"(*Float).Cmp", Method, 5}, + {"(*Float).Copy", Method, 5}, + {"(*Float).Float32", Method, 5}, + {"(*Float).Float64", Method, 5}, + {"(*Float).Format", Method, 5}, + {"(*Float).GobDecode", Method, 7}, + {"(*Float).GobEncode", Method, 7}, + {"(*Float).Int", Method, 5}, + {"(*Float).Int64", Method, 5}, + {"(*Float).IsInf", Method, 5}, + {"(*Float).IsInt", Method, 5}, + {"(*Float).MantExp", Method, 5}, + {"(*Float).MarshalText", Method, 6}, + {"(*Float).MinPrec", Method, 5}, + {"(*Float).Mode", Method, 5}, + {"(*Float).Mul", Method, 5}, + {"(*Float).Neg", Method, 5}, + {"(*Float).Parse", Method, 5}, + {"(*Float).Prec", Method, 5}, + {"(*Float).Quo", Method, 5}, + {"(*Float).Rat", Method, 5}, + {"(*Float).Scan", Method, 8}, + {"(*Float).Set", Method, 5}, + {"(*Float).SetFloat64", Method, 5}, + {"(*Float).SetInf", Method, 5}, + {"(*Float).SetInt", Method, 5}, + {"(*Float).SetInt64", Method, 5}, + {"(*Float).SetMantExp", Method, 5}, + {"(*Float).SetMode", Method, 5}, + {"(*Float).SetPrec", Method, 5}, + {"(*Float).SetRat", Method, 5}, + {"(*Float).SetString", Method, 5}, + {"(*Float).SetUint64", Method, 5}, + {"(*Float).Sign", Method, 5}, + {"(*Float).Signbit", Method, 5}, + {"(*Float).Sqrt", Method, 10}, + {"(*Float).String", Method, 5}, + {"(*Float).Sub", Method, 5}, + {"(*Float).Text", Method, 5}, + {"(*Float).Uint64", Method, 5}, + {"(*Float).UnmarshalText", Method, 6}, + {"(*Int).Abs", Method, 0}, + {"(*Int).Add", Method, 0}, + {"(*Int).And", Method, 0}, + {"(*Int).AndNot", Method, 0}, + {"(*Int).Append", Method, 6}, + {"(*Int).Binomial", Method, 0}, + {"(*Int).Bit", Method, 0}, + {"(*Int).BitLen", Method, 0}, + {"(*Int).Bits", Method, 0}, + {"(*Int).Bytes", Method, 0}, + {"(*Int).Cmp", Method, 0}, + {"(*Int).CmpAbs", Method, 10}, + {"(*Int).Div", Method, 0}, + {"(*Int).DivMod", Method, 0}, + {"(*Int).Exp", Method, 0}, + {"(*Int).FillBytes", Method, 15}, + {"(*Int).Float64", Method, 21}, + {"(*Int).Format", Method, 0}, + {"(*Int).GCD", Method, 0}, + {"(*Int).GobDecode", Method, 0}, + {"(*Int).GobEncode", Method, 0}, + {"(*Int).Int64", Method, 0}, + {"(*Int).IsInt64", Method, 9}, + {"(*Int).IsUint64", Method, 9}, + {"(*Int).Lsh", Method, 0}, + {"(*Int).MarshalJSON", Method, 1}, + {"(*Int).MarshalText", Method, 3}, + {"(*Int).Mod", Method, 0}, + {"(*Int).ModInverse", Method, 0}, + {"(*Int).ModSqrt", Method, 5}, + {"(*Int).Mul", Method, 0}, + {"(*Int).MulRange", Method, 0}, + {"(*Int).Neg", Method, 0}, + {"(*Int).Not", Method, 0}, + {"(*Int).Or", Method, 0}, + {"(*Int).ProbablyPrime", Method, 0}, + {"(*Int).Quo", Method, 0}, + {"(*Int).QuoRem", Method, 0}, + {"(*Int).Rand", Method, 0}, + {"(*Int).Rem", Method, 0}, + {"(*Int).Rsh", Method, 0}, + {"(*Int).Scan", Method, 0}, + {"(*Int).Set", Method, 0}, + {"(*Int).SetBit", Method, 0}, + {"(*Int).SetBits", Method, 0}, + {"(*Int).SetBytes", Method, 0}, + {"(*Int).SetInt64", Method, 0}, + {"(*Int).SetString", Method, 0}, + {"(*Int).SetUint64", Method, 1}, + {"(*Int).Sign", Method, 0}, + {"(*Int).Sqrt", Method, 8}, + {"(*Int).String", Method, 0}, + {"(*Int).Sub", Method, 0}, + {"(*Int).Text", Method, 6}, + {"(*Int).TrailingZeroBits", Method, 13}, + {"(*Int).Uint64", Method, 1}, + {"(*Int).UnmarshalJSON", Method, 1}, + {"(*Int).UnmarshalText", Method, 3}, + {"(*Int).Xor", Method, 0}, + {"(*Rat).Abs", Method, 0}, + {"(*Rat).Add", Method, 0}, + {"(*Rat).Cmp", Method, 0}, + {"(*Rat).Denom", Method, 0}, + {"(*Rat).Float32", Method, 4}, + {"(*Rat).Float64", Method, 1}, + {"(*Rat).FloatPrec", Method, 22}, + {"(*Rat).FloatString", Method, 0}, + {"(*Rat).GobDecode", Method, 0}, + {"(*Rat).GobEncode", Method, 0}, + {"(*Rat).Inv", Method, 0}, + {"(*Rat).IsInt", Method, 0}, + {"(*Rat).MarshalText", Method, 3}, + {"(*Rat).Mul", Method, 0}, + {"(*Rat).Neg", Method, 0}, + {"(*Rat).Num", Method, 0}, + {"(*Rat).Quo", Method, 0}, + {"(*Rat).RatString", Method, 0}, + {"(*Rat).Scan", Method, 0}, + {"(*Rat).Set", Method, 0}, + {"(*Rat).SetFloat64", Method, 1}, + {"(*Rat).SetFrac", Method, 0}, + {"(*Rat).SetFrac64", Method, 0}, + {"(*Rat).SetInt", Method, 0}, + {"(*Rat).SetInt64", Method, 0}, + {"(*Rat).SetString", Method, 0}, + {"(*Rat).SetUint64", Method, 13}, + {"(*Rat).Sign", Method, 0}, + {"(*Rat).String", Method, 0}, + {"(*Rat).Sub", Method, 0}, + {"(*Rat).UnmarshalText", Method, 3}, + {"(Accuracy).String", Method, 5}, + {"(ErrNaN).Error", Method, 5}, + {"(RoundingMode).String", Method, 5}, + {"Above", Const, 5}, + {"Accuracy", Type, 5}, + {"AwayFromZero", Const, 5}, + {"Below", Const, 5}, + {"ErrNaN", Type, 5}, + {"Exact", Const, 5}, + {"Float", Type, 5}, + {"Int", Type, 0}, + {"Jacobi", Func, 5}, + {"MaxBase", Const, 0}, + {"MaxExp", Const, 5}, + {"MaxPrec", Const, 5}, + {"MinExp", Const, 5}, + {"NewFloat", Func, 5}, + {"NewInt", Func, 0}, + {"NewRat", Func, 0}, + {"ParseFloat", Func, 5}, + {"Rat", Type, 0}, + {"RoundingMode", Type, 5}, + {"ToNearestAway", Const, 5}, + {"ToNearestEven", Const, 5}, + {"ToNegativeInf", Const, 5}, + {"ToPositiveInf", Const, 5}, + {"ToZero", Const, 5}, + {"Word", Type, 0}, + }, + "math/bits": { + {"Add", Func, 12}, + {"Add32", Func, 12}, + {"Add64", Func, 12}, + {"Div", Func, 12}, + {"Div32", Func, 12}, + {"Div64", Func, 12}, + {"LeadingZeros", Func, 9}, + {"LeadingZeros16", Func, 9}, + {"LeadingZeros32", Func, 9}, + {"LeadingZeros64", Func, 9}, + {"LeadingZeros8", Func, 9}, + {"Len", Func, 9}, + {"Len16", Func, 9}, + {"Len32", Func, 9}, + {"Len64", Func, 9}, + {"Len8", Func, 9}, + {"Mul", Func, 12}, + {"Mul32", Func, 12}, + {"Mul64", Func, 12}, + {"OnesCount", Func, 9}, + {"OnesCount16", Func, 9}, + {"OnesCount32", Func, 9}, + {"OnesCount64", Func, 9}, + {"OnesCount8", Func, 9}, + {"Rem", Func, 14}, + {"Rem32", Func, 14}, + {"Rem64", Func, 14}, + {"Reverse", Func, 9}, + {"Reverse16", Func, 9}, + {"Reverse32", Func, 9}, + {"Reverse64", Func, 9}, + {"Reverse8", Func, 9}, + {"ReverseBytes", Func, 9}, + {"ReverseBytes16", Func, 9}, + {"ReverseBytes32", Func, 9}, + {"ReverseBytes64", Func, 9}, + {"RotateLeft", Func, 9}, + {"RotateLeft16", Func, 9}, + {"RotateLeft32", Func, 9}, + {"RotateLeft64", Func, 9}, + {"RotateLeft8", Func, 9}, + {"Sub", Func, 12}, + {"Sub32", Func, 12}, + {"Sub64", Func, 12}, + {"TrailingZeros", Func, 9}, + {"TrailingZeros16", Func, 9}, + {"TrailingZeros32", Func, 9}, + {"TrailingZeros64", Func, 9}, + {"TrailingZeros8", Func, 9}, + {"UintSize", Const, 9}, + }, + "math/cmplx": { + {"Abs", Func, 0}, + {"Acos", Func, 0}, + {"Acosh", Func, 0}, + {"Asin", Func, 0}, + {"Asinh", Func, 0}, + {"Atan", Func, 0}, + {"Atanh", Func, 0}, + {"Conj", Func, 0}, + {"Cos", Func, 0}, + {"Cosh", Func, 0}, + {"Cot", Func, 0}, + {"Exp", Func, 0}, + {"Inf", Func, 0}, + {"IsInf", Func, 0}, + {"IsNaN", Func, 0}, + {"Log", Func, 0}, + {"Log10", Func, 0}, + {"NaN", Func, 0}, + {"Phase", Func, 0}, + {"Polar", Func, 0}, + {"Pow", Func, 0}, + {"Rect", Func, 0}, + {"Sin", Func, 0}, + {"Sinh", Func, 0}, + {"Sqrt", Func, 0}, + {"Tan", Func, 0}, + {"Tanh", Func, 0}, + }, + "math/rand": { + {"(*Rand).ExpFloat64", Method, 0}, + {"(*Rand).Float32", Method, 0}, + {"(*Rand).Float64", Method, 0}, + {"(*Rand).Int", Method, 0}, + {"(*Rand).Int31", Method, 0}, + {"(*Rand).Int31n", Method, 0}, + {"(*Rand).Int63", Method, 0}, + {"(*Rand).Int63n", Method, 0}, + {"(*Rand).Intn", Method, 0}, + {"(*Rand).NormFloat64", Method, 0}, + {"(*Rand).Perm", Method, 0}, + {"(*Rand).Read", Method, 6}, + {"(*Rand).Seed", Method, 0}, + {"(*Rand).Shuffle", Method, 10}, + {"(*Rand).Uint32", Method, 0}, + {"(*Rand).Uint64", Method, 8}, + {"(*Zipf).Uint64", Method, 0}, + {"ExpFloat64", Func, 0}, + {"Float32", Func, 0}, + {"Float64", Func, 0}, + {"Int", Func, 0}, + {"Int31", Func, 0}, + {"Int31n", Func, 0}, + {"Int63", Func, 0}, + {"Int63n", Func, 0}, + {"Intn", Func, 0}, + {"New", Func, 0}, + {"NewSource", Func, 0}, + {"NewZipf", Func, 0}, + {"NormFloat64", Func, 0}, + {"Perm", Func, 0}, + {"Rand", Type, 0}, + {"Read", Func, 6}, + {"Seed", Func, 0}, + {"Shuffle", Func, 10}, + {"Source", Type, 0}, + {"Source64", Type, 8}, + {"Uint32", Func, 0}, + {"Uint64", Func, 8}, + {"Zipf", Type, 0}, + }, + "math/rand/v2": { + {"(*ChaCha8).MarshalBinary", Method, 22}, + {"(*ChaCha8).Seed", Method, 22}, + {"(*ChaCha8).Uint64", Method, 22}, + {"(*ChaCha8).UnmarshalBinary", Method, 22}, + {"(*PCG).MarshalBinary", Method, 22}, + {"(*PCG).Seed", Method, 22}, + {"(*PCG).Uint64", Method, 22}, + {"(*PCG).UnmarshalBinary", Method, 22}, + {"(*Rand).ExpFloat64", Method, 22}, + {"(*Rand).Float32", Method, 22}, + {"(*Rand).Float64", Method, 22}, + {"(*Rand).Int", Method, 22}, + {"(*Rand).Int32", Method, 22}, + {"(*Rand).Int32N", Method, 22}, + {"(*Rand).Int64", Method, 22}, + {"(*Rand).Int64N", Method, 22}, + {"(*Rand).IntN", Method, 22}, + {"(*Rand).NormFloat64", Method, 22}, + {"(*Rand).Perm", Method, 22}, + {"(*Rand).Shuffle", Method, 22}, + {"(*Rand).Uint32", Method, 22}, + {"(*Rand).Uint32N", Method, 22}, + {"(*Rand).Uint64", Method, 22}, + {"(*Rand).Uint64N", Method, 22}, + {"(*Rand).UintN", Method, 22}, + {"(*Zipf).Uint64", Method, 22}, + {"ChaCha8", Type, 22}, + {"ExpFloat64", Func, 22}, + {"Float32", Func, 22}, + {"Float64", Func, 22}, + {"Int", Func, 22}, + {"Int32", Func, 22}, + {"Int32N", Func, 22}, + {"Int64", Func, 22}, + {"Int64N", Func, 22}, + {"IntN", Func, 22}, + {"N", Func, 22}, + {"New", Func, 22}, + {"NewChaCha8", Func, 22}, + {"NewPCG", Func, 22}, + {"NewZipf", Func, 22}, + {"NormFloat64", Func, 22}, + {"PCG", Type, 22}, + {"Perm", Func, 22}, + {"Rand", Type, 22}, + {"Shuffle", Func, 22}, + {"Source", Type, 22}, + {"Uint32", Func, 22}, + {"Uint32N", Func, 22}, + {"Uint64", Func, 22}, + {"Uint64N", Func, 22}, + {"UintN", Func, 22}, + {"Zipf", Type, 22}, + }, + "mime": { + {"(*WordDecoder).Decode", Method, 5}, + {"(*WordDecoder).DecodeHeader", Method, 5}, + {"(WordEncoder).Encode", Method, 5}, + {"AddExtensionType", Func, 0}, + {"BEncoding", Const, 5}, + {"ErrInvalidMediaParameter", Var, 9}, + {"ExtensionsByType", Func, 5}, + {"FormatMediaType", Func, 0}, + {"ParseMediaType", Func, 0}, + {"QEncoding", Const, 5}, + {"TypeByExtension", Func, 0}, + {"WordDecoder", Type, 5}, + {"WordDecoder.CharsetReader", Field, 5}, + {"WordEncoder", Type, 5}, + }, + "mime/multipart": { + {"(*FileHeader).Open", Method, 0}, + {"(*Form).RemoveAll", Method, 0}, + {"(*Part).Close", Method, 0}, + {"(*Part).FileName", Method, 0}, + {"(*Part).FormName", Method, 0}, + {"(*Part).Read", Method, 0}, + {"(*Reader).NextPart", Method, 0}, + {"(*Reader).NextRawPart", Method, 14}, + {"(*Reader).ReadForm", Method, 0}, + {"(*Writer).Boundary", Method, 0}, + {"(*Writer).Close", Method, 0}, + {"(*Writer).CreateFormField", Method, 0}, + {"(*Writer).CreateFormFile", Method, 0}, + {"(*Writer).CreatePart", Method, 0}, + {"(*Writer).FormDataContentType", Method, 0}, + {"(*Writer).SetBoundary", Method, 1}, + {"(*Writer).WriteField", Method, 0}, + {"ErrMessageTooLarge", Var, 9}, + {"File", Type, 0}, + {"FileHeader", Type, 0}, + {"FileHeader.Filename", Field, 0}, + {"FileHeader.Header", Field, 0}, + {"FileHeader.Size", Field, 9}, + {"Form", Type, 0}, + {"Form.File", Field, 0}, + {"Form.Value", Field, 0}, + {"NewReader", Func, 0}, + {"NewWriter", Func, 0}, + {"Part", Type, 0}, + {"Part.Header", Field, 0}, + {"Reader", Type, 0}, + {"Writer", Type, 0}, + }, + "mime/quotedprintable": { + {"(*Reader).Read", Method, 5}, + {"(*Writer).Close", Method, 5}, + {"(*Writer).Write", Method, 5}, + {"NewReader", Func, 5}, + {"NewWriter", Func, 5}, + {"Reader", Type, 5}, + {"Writer", Type, 5}, + {"Writer.Binary", Field, 5}, + }, + "net": { + {"(*AddrError).Error", Method, 0}, + {"(*AddrError).Temporary", Method, 0}, + {"(*AddrError).Timeout", Method, 0}, + {"(*Buffers).Read", Method, 8}, + {"(*Buffers).WriteTo", Method, 8}, + {"(*DNSConfigError).Error", Method, 0}, + {"(*DNSConfigError).Temporary", Method, 0}, + {"(*DNSConfigError).Timeout", Method, 0}, + {"(*DNSConfigError).Unwrap", Method, 13}, + {"(*DNSError).Error", Method, 0}, + {"(*DNSError).Temporary", Method, 0}, + {"(*DNSError).Timeout", Method, 0}, + {"(*Dialer).Dial", Method, 1}, + {"(*Dialer).DialContext", Method, 7}, + {"(*Dialer).MultipathTCP", Method, 21}, + {"(*Dialer).SetMultipathTCP", Method, 21}, + {"(*IP).UnmarshalText", Method, 2}, + {"(*IPAddr).Network", Method, 0}, + {"(*IPAddr).String", Method, 0}, + {"(*IPConn).Close", Method, 0}, + {"(*IPConn).File", Method, 0}, + {"(*IPConn).LocalAddr", Method, 0}, + {"(*IPConn).Read", Method, 0}, + {"(*IPConn).ReadFrom", Method, 0}, + {"(*IPConn).ReadFromIP", Method, 0}, + {"(*IPConn).ReadMsgIP", Method, 1}, + {"(*IPConn).RemoteAddr", Method, 0}, + {"(*IPConn).SetDeadline", Method, 0}, + {"(*IPConn).SetReadBuffer", Method, 0}, + {"(*IPConn).SetReadDeadline", Method, 0}, + {"(*IPConn).SetWriteBuffer", Method, 0}, + {"(*IPConn).SetWriteDeadline", Method, 0}, + {"(*IPConn).SyscallConn", Method, 9}, + {"(*IPConn).Write", Method, 0}, + {"(*IPConn).WriteMsgIP", Method, 1}, + {"(*IPConn).WriteTo", Method, 0}, + {"(*IPConn).WriteToIP", Method, 0}, + {"(*IPNet).Contains", Method, 0}, + {"(*IPNet).Network", Method, 0}, + {"(*IPNet).String", Method, 0}, + {"(*Interface).Addrs", Method, 0}, + {"(*Interface).MulticastAddrs", Method, 0}, + {"(*ListenConfig).Listen", Method, 11}, + {"(*ListenConfig).ListenPacket", Method, 11}, + {"(*ListenConfig).MultipathTCP", Method, 21}, + {"(*ListenConfig).SetMultipathTCP", Method, 21}, + {"(*OpError).Error", Method, 0}, + {"(*OpError).Temporary", Method, 0}, + {"(*OpError).Timeout", Method, 0}, + {"(*OpError).Unwrap", Method, 13}, + {"(*ParseError).Error", Method, 0}, + {"(*ParseError).Temporary", Method, 17}, + {"(*ParseError).Timeout", Method, 17}, + {"(*Resolver).LookupAddr", Method, 8}, + {"(*Resolver).LookupCNAME", Method, 8}, + {"(*Resolver).LookupHost", Method, 8}, + {"(*Resolver).LookupIP", Method, 15}, + {"(*Resolver).LookupIPAddr", Method, 8}, + {"(*Resolver).LookupMX", Method, 8}, + {"(*Resolver).LookupNS", Method, 8}, + {"(*Resolver).LookupNetIP", Method, 18}, + {"(*Resolver).LookupPort", Method, 8}, + {"(*Resolver).LookupSRV", Method, 8}, + {"(*Resolver).LookupTXT", Method, 8}, + {"(*TCPAddr).AddrPort", Method, 18}, + {"(*TCPAddr).Network", Method, 0}, + {"(*TCPAddr).String", Method, 0}, + {"(*TCPConn).Close", Method, 0}, + {"(*TCPConn).CloseRead", Method, 0}, + {"(*TCPConn).CloseWrite", Method, 0}, + {"(*TCPConn).File", Method, 0}, + {"(*TCPConn).LocalAddr", Method, 0}, + {"(*TCPConn).MultipathTCP", Method, 21}, + {"(*TCPConn).Read", Method, 0}, + {"(*TCPConn).ReadFrom", Method, 0}, + {"(*TCPConn).RemoteAddr", Method, 0}, + {"(*TCPConn).SetDeadline", Method, 0}, + {"(*TCPConn).SetKeepAlive", Method, 0}, + {"(*TCPConn).SetKeepAlivePeriod", Method, 2}, + {"(*TCPConn).SetLinger", Method, 0}, + {"(*TCPConn).SetNoDelay", Method, 0}, + {"(*TCPConn).SetReadBuffer", Method, 0}, + {"(*TCPConn).SetReadDeadline", Method, 0}, + {"(*TCPConn).SetWriteBuffer", Method, 0}, + {"(*TCPConn).SetWriteDeadline", Method, 0}, + {"(*TCPConn).SyscallConn", Method, 9}, + {"(*TCPConn).Write", Method, 0}, + {"(*TCPConn).WriteTo", Method, 22}, + {"(*TCPListener).Accept", Method, 0}, + {"(*TCPListener).AcceptTCP", Method, 0}, + {"(*TCPListener).Addr", Method, 0}, + {"(*TCPListener).Close", Method, 0}, + {"(*TCPListener).File", Method, 0}, + {"(*TCPListener).SetDeadline", Method, 0}, + {"(*TCPListener).SyscallConn", Method, 10}, + {"(*UDPAddr).AddrPort", Method, 18}, + {"(*UDPAddr).Network", Method, 0}, + {"(*UDPAddr).String", Method, 0}, + {"(*UDPConn).Close", Method, 0}, + {"(*UDPConn).File", Method, 0}, + {"(*UDPConn).LocalAddr", Method, 0}, + {"(*UDPConn).Read", Method, 0}, + {"(*UDPConn).ReadFrom", Method, 0}, + {"(*UDPConn).ReadFromUDP", Method, 0}, + {"(*UDPConn).ReadFromUDPAddrPort", Method, 18}, + {"(*UDPConn).ReadMsgUDP", Method, 1}, + {"(*UDPConn).ReadMsgUDPAddrPort", Method, 18}, + {"(*UDPConn).RemoteAddr", Method, 0}, + {"(*UDPConn).SetDeadline", Method, 0}, + {"(*UDPConn).SetReadBuffer", Method, 0}, + {"(*UDPConn).SetReadDeadline", Method, 0}, + {"(*UDPConn).SetWriteBuffer", Method, 0}, + {"(*UDPConn).SetWriteDeadline", Method, 0}, + {"(*UDPConn).SyscallConn", Method, 9}, + {"(*UDPConn).Write", Method, 0}, + {"(*UDPConn).WriteMsgUDP", Method, 1}, + {"(*UDPConn).WriteMsgUDPAddrPort", Method, 18}, + {"(*UDPConn).WriteTo", Method, 0}, + {"(*UDPConn).WriteToUDP", Method, 0}, + {"(*UDPConn).WriteToUDPAddrPort", Method, 18}, + {"(*UnixAddr).Network", Method, 0}, + {"(*UnixAddr).String", Method, 0}, + {"(*UnixConn).Close", Method, 0}, + {"(*UnixConn).CloseRead", Method, 1}, + {"(*UnixConn).CloseWrite", Method, 1}, + {"(*UnixConn).File", Method, 0}, + {"(*UnixConn).LocalAddr", Method, 0}, + {"(*UnixConn).Read", Method, 0}, + {"(*UnixConn).ReadFrom", Method, 0}, + {"(*UnixConn).ReadFromUnix", Method, 0}, + {"(*UnixConn).ReadMsgUnix", Method, 0}, + {"(*UnixConn).RemoteAddr", Method, 0}, + {"(*UnixConn).SetDeadline", Method, 0}, + {"(*UnixConn).SetReadBuffer", Method, 0}, + {"(*UnixConn).SetReadDeadline", Method, 0}, + {"(*UnixConn).SetWriteBuffer", Method, 0}, + {"(*UnixConn).SetWriteDeadline", Method, 0}, + {"(*UnixConn).SyscallConn", Method, 9}, + {"(*UnixConn).Write", Method, 0}, + {"(*UnixConn).WriteMsgUnix", Method, 0}, + {"(*UnixConn).WriteTo", Method, 0}, + {"(*UnixConn).WriteToUnix", Method, 0}, + {"(*UnixListener).Accept", Method, 0}, + {"(*UnixListener).AcceptUnix", Method, 0}, + {"(*UnixListener).Addr", Method, 0}, + {"(*UnixListener).Close", Method, 0}, + {"(*UnixListener).File", Method, 0}, + {"(*UnixListener).SetDeadline", Method, 0}, + {"(*UnixListener).SetUnlinkOnClose", Method, 8}, + {"(*UnixListener).SyscallConn", Method, 10}, + {"(Flags).String", Method, 0}, + {"(HardwareAddr).String", Method, 0}, + {"(IP).DefaultMask", Method, 0}, + {"(IP).Equal", Method, 0}, + {"(IP).IsGlobalUnicast", Method, 0}, + {"(IP).IsInterfaceLocalMulticast", Method, 0}, + {"(IP).IsLinkLocalMulticast", Method, 0}, + {"(IP).IsLinkLocalUnicast", Method, 0}, + {"(IP).IsLoopback", Method, 0}, + {"(IP).IsMulticast", Method, 0}, + {"(IP).IsPrivate", Method, 17}, + {"(IP).IsUnspecified", Method, 0}, + {"(IP).MarshalText", Method, 2}, + {"(IP).Mask", Method, 0}, + {"(IP).String", Method, 0}, + {"(IP).To16", Method, 0}, + {"(IP).To4", Method, 0}, + {"(IPMask).Size", Method, 0}, + {"(IPMask).String", Method, 0}, + {"(InvalidAddrError).Error", Method, 0}, + {"(InvalidAddrError).Temporary", Method, 0}, + {"(InvalidAddrError).Timeout", Method, 0}, + {"(UnknownNetworkError).Error", Method, 0}, + {"(UnknownNetworkError).Temporary", Method, 0}, + {"(UnknownNetworkError).Timeout", Method, 0}, + {"Addr", Type, 0}, + {"AddrError", Type, 0}, + {"AddrError.Addr", Field, 0}, + {"AddrError.Err", Field, 0}, + {"Buffers", Type, 8}, + {"CIDRMask", Func, 0}, + {"Conn", Type, 0}, + {"DNSConfigError", Type, 0}, + {"DNSConfigError.Err", Field, 0}, + {"DNSError", Type, 0}, + {"DNSError.Err", Field, 0}, + {"DNSError.IsNotFound", Field, 13}, + {"DNSError.IsTemporary", Field, 6}, + {"DNSError.IsTimeout", Field, 0}, + {"DNSError.Name", Field, 0}, + {"DNSError.Server", Field, 0}, + {"DefaultResolver", Var, 8}, + {"Dial", Func, 0}, + {"DialIP", Func, 0}, + {"DialTCP", Func, 0}, + {"DialTimeout", Func, 0}, + {"DialUDP", Func, 0}, + {"DialUnix", Func, 0}, + {"Dialer", Type, 1}, + {"Dialer.Cancel", Field, 6}, + {"Dialer.Control", Field, 11}, + {"Dialer.ControlContext", Field, 20}, + {"Dialer.Deadline", Field, 1}, + {"Dialer.DualStack", Field, 2}, + {"Dialer.FallbackDelay", Field, 5}, + {"Dialer.KeepAlive", Field, 3}, + {"Dialer.LocalAddr", Field, 1}, + {"Dialer.Resolver", Field, 8}, + {"Dialer.Timeout", Field, 1}, + {"ErrClosed", Var, 16}, + {"ErrWriteToConnected", Var, 0}, + {"Error", Type, 0}, + {"FileConn", Func, 0}, + {"FileListener", Func, 0}, + {"FilePacketConn", Func, 0}, + {"FlagBroadcast", Const, 0}, + {"FlagLoopback", Const, 0}, + {"FlagMulticast", Const, 0}, + {"FlagPointToPoint", Const, 0}, + {"FlagRunning", Const, 20}, + {"FlagUp", Const, 0}, + {"Flags", Type, 0}, + {"HardwareAddr", Type, 0}, + {"IP", Type, 0}, + {"IPAddr", Type, 0}, + {"IPAddr.IP", Field, 0}, + {"IPAddr.Zone", Field, 1}, + {"IPConn", Type, 0}, + {"IPMask", Type, 0}, + {"IPNet", Type, 0}, + {"IPNet.IP", Field, 0}, + {"IPNet.Mask", Field, 0}, + {"IPv4", Func, 0}, + {"IPv4Mask", Func, 0}, + {"IPv4allrouter", Var, 0}, + {"IPv4allsys", Var, 0}, + {"IPv4bcast", Var, 0}, + {"IPv4len", Const, 0}, + {"IPv4zero", Var, 0}, + {"IPv6interfacelocalallnodes", Var, 0}, + {"IPv6len", Const, 0}, + {"IPv6linklocalallnodes", Var, 0}, + {"IPv6linklocalallrouters", Var, 0}, + {"IPv6loopback", Var, 0}, + {"IPv6unspecified", Var, 0}, + {"IPv6zero", Var, 0}, + {"Interface", Type, 0}, + {"Interface.Flags", Field, 0}, + {"Interface.HardwareAddr", Field, 0}, + {"Interface.Index", Field, 0}, + {"Interface.MTU", Field, 0}, + {"Interface.Name", Field, 0}, + {"InterfaceAddrs", Func, 0}, + {"InterfaceByIndex", Func, 0}, + {"InterfaceByName", Func, 0}, + {"Interfaces", Func, 0}, + {"InvalidAddrError", Type, 0}, + {"JoinHostPort", Func, 0}, + {"Listen", Func, 0}, + {"ListenConfig", Type, 11}, + {"ListenConfig.Control", Field, 11}, + {"ListenConfig.KeepAlive", Field, 13}, + {"ListenIP", Func, 0}, + {"ListenMulticastUDP", Func, 0}, + {"ListenPacket", Func, 0}, + {"ListenTCP", Func, 0}, + {"ListenUDP", Func, 0}, + {"ListenUnix", Func, 0}, + {"ListenUnixgram", Func, 0}, + {"Listener", Type, 0}, + {"LookupAddr", Func, 0}, + {"LookupCNAME", Func, 0}, + {"LookupHost", Func, 0}, + {"LookupIP", Func, 0}, + {"LookupMX", Func, 0}, + {"LookupNS", Func, 1}, + {"LookupPort", Func, 0}, + {"LookupSRV", Func, 0}, + {"LookupTXT", Func, 0}, + {"MX", Type, 0}, + {"MX.Host", Field, 0}, + {"MX.Pref", Field, 0}, + {"NS", Type, 1}, + {"NS.Host", Field, 1}, + {"OpError", Type, 0}, + {"OpError.Addr", Field, 0}, + {"OpError.Err", Field, 0}, + {"OpError.Net", Field, 0}, + {"OpError.Op", Field, 0}, + {"OpError.Source", Field, 5}, + {"PacketConn", Type, 0}, + {"ParseCIDR", Func, 0}, + {"ParseError", Type, 0}, + {"ParseError.Text", Field, 0}, + {"ParseError.Type", Field, 0}, + {"ParseIP", Func, 0}, + {"ParseMAC", Func, 0}, + {"Pipe", Func, 0}, + {"ResolveIPAddr", Func, 0}, + {"ResolveTCPAddr", Func, 0}, + {"ResolveUDPAddr", Func, 0}, + {"ResolveUnixAddr", Func, 0}, + {"Resolver", Type, 8}, + {"Resolver.Dial", Field, 9}, + {"Resolver.PreferGo", Field, 8}, + {"Resolver.StrictErrors", Field, 9}, + {"SRV", Type, 0}, + {"SRV.Port", Field, 0}, + {"SRV.Priority", Field, 0}, + {"SRV.Target", Field, 0}, + {"SRV.Weight", Field, 0}, + {"SplitHostPort", Func, 0}, + {"TCPAddr", Type, 0}, + {"TCPAddr.IP", Field, 0}, + {"TCPAddr.Port", Field, 0}, + {"TCPAddr.Zone", Field, 1}, + {"TCPAddrFromAddrPort", Func, 18}, + {"TCPConn", Type, 0}, + {"TCPListener", Type, 0}, + {"UDPAddr", Type, 0}, + {"UDPAddr.IP", Field, 0}, + {"UDPAddr.Port", Field, 0}, + {"UDPAddr.Zone", Field, 1}, + {"UDPAddrFromAddrPort", Func, 18}, + {"UDPConn", Type, 0}, + {"UnixAddr", Type, 0}, + {"UnixAddr.Name", Field, 0}, + {"UnixAddr.Net", Field, 0}, + {"UnixConn", Type, 0}, + {"UnixListener", Type, 0}, + {"UnknownNetworkError", Type, 0}, + }, + "net/http": { + {"(*Client).CloseIdleConnections", Method, 12}, + {"(*Client).Do", Method, 0}, + {"(*Client).Get", Method, 0}, + {"(*Client).Head", Method, 0}, + {"(*Client).Post", Method, 0}, + {"(*Client).PostForm", Method, 0}, + {"(*Cookie).String", Method, 0}, + {"(*Cookie).Valid", Method, 18}, + {"(*MaxBytesError).Error", Method, 19}, + {"(*ProtocolError).Error", Method, 0}, + {"(*ProtocolError).Is", Method, 21}, + {"(*Request).AddCookie", Method, 0}, + {"(*Request).BasicAuth", Method, 4}, + {"(*Request).Clone", Method, 13}, + {"(*Request).Context", Method, 7}, + {"(*Request).Cookie", Method, 0}, + {"(*Request).Cookies", Method, 0}, + {"(*Request).FormFile", Method, 0}, + {"(*Request).FormValue", Method, 0}, + {"(*Request).MultipartReader", Method, 0}, + {"(*Request).ParseForm", Method, 0}, + {"(*Request).ParseMultipartForm", Method, 0}, + {"(*Request).PathValue", Method, 22}, + {"(*Request).PostFormValue", Method, 1}, + {"(*Request).ProtoAtLeast", Method, 0}, + {"(*Request).Referer", Method, 0}, + {"(*Request).SetBasicAuth", Method, 0}, + {"(*Request).SetPathValue", Method, 22}, + {"(*Request).UserAgent", Method, 0}, + {"(*Request).WithContext", Method, 7}, + {"(*Request).Write", Method, 0}, + {"(*Request).WriteProxy", Method, 0}, + {"(*Response).Cookies", Method, 0}, + {"(*Response).Location", Method, 0}, + {"(*Response).ProtoAtLeast", Method, 0}, + {"(*Response).Write", Method, 0}, + {"(*ResponseController).EnableFullDuplex", Method, 21}, + {"(*ResponseController).Flush", Method, 20}, + {"(*ResponseController).Hijack", Method, 20}, + {"(*ResponseController).SetReadDeadline", Method, 20}, + {"(*ResponseController).SetWriteDeadline", Method, 20}, + {"(*ServeMux).Handle", Method, 0}, + {"(*ServeMux).HandleFunc", Method, 0}, + {"(*ServeMux).Handler", Method, 1}, + {"(*ServeMux).ServeHTTP", Method, 0}, + {"(*Server).Close", Method, 8}, + {"(*Server).ListenAndServe", Method, 0}, + {"(*Server).ListenAndServeTLS", Method, 0}, + {"(*Server).RegisterOnShutdown", Method, 9}, + {"(*Server).Serve", Method, 0}, + {"(*Server).ServeTLS", Method, 9}, + {"(*Server).SetKeepAlivesEnabled", Method, 3}, + {"(*Server).Shutdown", Method, 8}, + {"(*Transport).CancelRequest", Method, 1}, + {"(*Transport).Clone", Method, 13}, + {"(*Transport).CloseIdleConnections", Method, 0}, + {"(*Transport).RegisterProtocol", Method, 0}, + {"(*Transport).RoundTrip", Method, 0}, + {"(ConnState).String", Method, 3}, + {"(Dir).Open", Method, 0}, + {"(HandlerFunc).ServeHTTP", Method, 0}, + {"(Header).Add", Method, 0}, + {"(Header).Clone", Method, 13}, + {"(Header).Del", Method, 0}, + {"(Header).Get", Method, 0}, + {"(Header).Set", Method, 0}, + {"(Header).Values", Method, 14}, + {"(Header).Write", Method, 0}, + {"(Header).WriteSubset", Method, 0}, + {"AllowQuerySemicolons", Func, 17}, + {"CanonicalHeaderKey", Func, 0}, + {"Client", Type, 0}, + {"Client.CheckRedirect", Field, 0}, + {"Client.Jar", Field, 0}, + {"Client.Timeout", Field, 3}, + {"Client.Transport", Field, 0}, + {"CloseNotifier", Type, 1}, + {"ConnState", Type, 3}, + {"Cookie", Type, 0}, + {"Cookie.Domain", Field, 0}, + {"Cookie.Expires", Field, 0}, + {"Cookie.HttpOnly", Field, 0}, + {"Cookie.MaxAge", Field, 0}, + {"Cookie.Name", Field, 0}, + {"Cookie.Path", Field, 0}, + {"Cookie.Raw", Field, 0}, + {"Cookie.RawExpires", Field, 0}, + {"Cookie.SameSite", Field, 11}, + {"Cookie.Secure", Field, 0}, + {"Cookie.Unparsed", Field, 0}, + {"Cookie.Value", Field, 0}, + {"CookieJar", Type, 0}, + {"DefaultClient", Var, 0}, + {"DefaultMaxHeaderBytes", Const, 0}, + {"DefaultMaxIdleConnsPerHost", Const, 0}, + {"DefaultServeMux", Var, 0}, + {"DefaultTransport", Var, 0}, + {"DetectContentType", Func, 0}, + {"Dir", Type, 0}, + {"ErrAbortHandler", Var, 8}, + {"ErrBodyNotAllowed", Var, 0}, + {"ErrBodyReadAfterClose", Var, 0}, + {"ErrContentLength", Var, 0}, + {"ErrHandlerTimeout", Var, 0}, + {"ErrHeaderTooLong", Var, 0}, + {"ErrHijacked", Var, 0}, + {"ErrLineTooLong", Var, 0}, + {"ErrMissingBoundary", Var, 0}, + {"ErrMissingContentLength", Var, 0}, + {"ErrMissingFile", Var, 0}, + {"ErrNoCookie", Var, 0}, + {"ErrNoLocation", Var, 0}, + {"ErrNotMultipart", Var, 0}, + {"ErrNotSupported", Var, 0}, + {"ErrSchemeMismatch", Var, 21}, + {"ErrServerClosed", Var, 8}, + {"ErrShortBody", Var, 0}, + {"ErrSkipAltProtocol", Var, 6}, + {"ErrUnexpectedTrailer", Var, 0}, + {"ErrUseLastResponse", Var, 7}, + {"ErrWriteAfterFlush", Var, 0}, + {"Error", Func, 0}, + {"FS", Func, 16}, + {"File", Type, 0}, + {"FileServer", Func, 0}, + {"FileServerFS", Func, 22}, + {"FileSystem", Type, 0}, + {"Flusher", Type, 0}, + {"Get", Func, 0}, + {"Handle", Func, 0}, + {"HandleFunc", Func, 0}, + {"Handler", Type, 0}, + {"HandlerFunc", Type, 0}, + {"Head", Func, 0}, + {"Header", Type, 0}, + {"Hijacker", Type, 0}, + {"ListenAndServe", Func, 0}, + {"ListenAndServeTLS", Func, 0}, + {"LocalAddrContextKey", Var, 7}, + {"MaxBytesError", Type, 19}, + {"MaxBytesError.Limit", Field, 19}, + {"MaxBytesHandler", Func, 18}, + {"MaxBytesReader", Func, 0}, + {"MethodConnect", Const, 6}, + {"MethodDelete", Const, 6}, + {"MethodGet", Const, 6}, + {"MethodHead", Const, 6}, + {"MethodOptions", Const, 6}, + {"MethodPatch", Const, 6}, + {"MethodPost", Const, 6}, + {"MethodPut", Const, 6}, + {"MethodTrace", Const, 6}, + {"NewFileTransport", Func, 0}, + {"NewFileTransportFS", Func, 22}, + {"NewRequest", Func, 0}, + {"NewRequestWithContext", Func, 13}, + {"NewResponseController", Func, 20}, + {"NewServeMux", Func, 0}, + {"NoBody", Var, 8}, + {"NotFound", Func, 0}, + {"NotFoundHandler", Func, 0}, + {"ParseHTTPVersion", Func, 0}, + {"ParseTime", Func, 1}, + {"Post", Func, 0}, + {"PostForm", Func, 0}, + {"ProtocolError", Type, 0}, + {"ProtocolError.ErrorString", Field, 0}, + {"ProxyFromEnvironment", Func, 0}, + {"ProxyURL", Func, 0}, + {"PushOptions", Type, 8}, + {"PushOptions.Header", Field, 8}, + {"PushOptions.Method", Field, 8}, + {"Pusher", Type, 8}, + {"ReadRequest", Func, 0}, + {"ReadResponse", Func, 0}, + {"Redirect", Func, 0}, + {"RedirectHandler", Func, 0}, + {"Request", Type, 0}, + {"Request.Body", Field, 0}, + {"Request.Cancel", Field, 5}, + {"Request.Close", Field, 0}, + {"Request.ContentLength", Field, 0}, + {"Request.Form", Field, 0}, + {"Request.GetBody", Field, 8}, + {"Request.Header", Field, 0}, + {"Request.Host", Field, 0}, + {"Request.Method", Field, 0}, + {"Request.MultipartForm", Field, 0}, + {"Request.PostForm", Field, 1}, + {"Request.Proto", Field, 0}, + {"Request.ProtoMajor", Field, 0}, + {"Request.ProtoMinor", Field, 0}, + {"Request.RemoteAddr", Field, 0}, + {"Request.RequestURI", Field, 0}, + {"Request.Response", Field, 7}, + {"Request.TLS", Field, 0}, + {"Request.Trailer", Field, 0}, + {"Request.TransferEncoding", Field, 0}, + {"Request.URL", Field, 0}, + {"Response", Type, 0}, + {"Response.Body", Field, 0}, + {"Response.Close", Field, 0}, + {"Response.ContentLength", Field, 0}, + {"Response.Header", Field, 0}, + {"Response.Proto", Field, 0}, + {"Response.ProtoMajor", Field, 0}, + {"Response.ProtoMinor", Field, 0}, + {"Response.Request", Field, 0}, + {"Response.Status", Field, 0}, + {"Response.StatusCode", Field, 0}, + {"Response.TLS", Field, 3}, + {"Response.Trailer", Field, 0}, + {"Response.TransferEncoding", Field, 0}, + {"Response.Uncompressed", Field, 7}, + {"ResponseController", Type, 20}, + {"ResponseWriter", Type, 0}, + {"RoundTripper", Type, 0}, + {"SameSite", Type, 11}, + {"SameSiteDefaultMode", Const, 11}, + {"SameSiteLaxMode", Const, 11}, + {"SameSiteNoneMode", Const, 13}, + {"SameSiteStrictMode", Const, 11}, + {"Serve", Func, 0}, + {"ServeContent", Func, 0}, + {"ServeFile", Func, 0}, + {"ServeFileFS", Func, 22}, + {"ServeMux", Type, 0}, + {"ServeTLS", Func, 9}, + {"Server", Type, 0}, + {"Server.Addr", Field, 0}, + {"Server.BaseContext", Field, 13}, + {"Server.ConnContext", Field, 13}, + {"Server.ConnState", Field, 3}, + {"Server.DisableGeneralOptionsHandler", Field, 20}, + {"Server.ErrorLog", Field, 3}, + {"Server.Handler", Field, 0}, + {"Server.IdleTimeout", Field, 8}, + {"Server.MaxHeaderBytes", Field, 0}, + {"Server.ReadHeaderTimeout", Field, 8}, + {"Server.ReadTimeout", Field, 0}, + {"Server.TLSConfig", Field, 0}, + {"Server.TLSNextProto", Field, 1}, + {"Server.WriteTimeout", Field, 0}, + {"ServerContextKey", Var, 7}, + {"SetCookie", Func, 0}, + {"StateActive", Const, 3}, + {"StateClosed", Const, 3}, + {"StateHijacked", Const, 3}, + {"StateIdle", Const, 3}, + {"StateNew", Const, 3}, + {"StatusAccepted", Const, 0}, + {"StatusAlreadyReported", Const, 7}, + {"StatusBadGateway", Const, 0}, + {"StatusBadRequest", Const, 0}, + {"StatusConflict", Const, 0}, + {"StatusContinue", Const, 0}, + {"StatusCreated", Const, 0}, + {"StatusEarlyHints", Const, 13}, + {"StatusExpectationFailed", Const, 0}, + {"StatusFailedDependency", Const, 7}, + {"StatusForbidden", Const, 0}, + {"StatusFound", Const, 0}, + {"StatusGatewayTimeout", Const, 0}, + {"StatusGone", Const, 0}, + {"StatusHTTPVersionNotSupported", Const, 0}, + {"StatusIMUsed", Const, 7}, + {"StatusInsufficientStorage", Const, 7}, + {"StatusInternalServerError", Const, 0}, + {"StatusLengthRequired", Const, 0}, + {"StatusLocked", Const, 7}, + {"StatusLoopDetected", Const, 7}, + {"StatusMethodNotAllowed", Const, 0}, + {"StatusMisdirectedRequest", Const, 11}, + {"StatusMovedPermanently", Const, 0}, + {"StatusMultiStatus", Const, 7}, + {"StatusMultipleChoices", Const, 0}, + {"StatusNetworkAuthenticationRequired", Const, 6}, + {"StatusNoContent", Const, 0}, + {"StatusNonAuthoritativeInfo", Const, 0}, + {"StatusNotAcceptable", Const, 0}, + {"StatusNotExtended", Const, 7}, + {"StatusNotFound", Const, 0}, + {"StatusNotImplemented", Const, 0}, + {"StatusNotModified", Const, 0}, + {"StatusOK", Const, 0}, + {"StatusPartialContent", Const, 0}, + {"StatusPaymentRequired", Const, 0}, + {"StatusPermanentRedirect", Const, 7}, + {"StatusPreconditionFailed", Const, 0}, + {"StatusPreconditionRequired", Const, 6}, + {"StatusProcessing", Const, 7}, + {"StatusProxyAuthRequired", Const, 0}, + {"StatusRequestEntityTooLarge", Const, 0}, + {"StatusRequestHeaderFieldsTooLarge", Const, 6}, + {"StatusRequestTimeout", Const, 0}, + {"StatusRequestURITooLong", Const, 0}, + {"StatusRequestedRangeNotSatisfiable", Const, 0}, + {"StatusResetContent", Const, 0}, + {"StatusSeeOther", Const, 0}, + {"StatusServiceUnavailable", Const, 0}, + {"StatusSwitchingProtocols", Const, 0}, + {"StatusTeapot", Const, 0}, + {"StatusTemporaryRedirect", Const, 0}, + {"StatusText", Func, 0}, + {"StatusTooEarly", Const, 12}, + {"StatusTooManyRequests", Const, 6}, + {"StatusUnauthorized", Const, 0}, + {"StatusUnavailableForLegalReasons", Const, 6}, + {"StatusUnprocessableEntity", Const, 7}, + {"StatusUnsupportedMediaType", Const, 0}, + {"StatusUpgradeRequired", Const, 7}, + {"StatusUseProxy", Const, 0}, + {"StatusVariantAlsoNegotiates", Const, 7}, + {"StripPrefix", Func, 0}, + {"TimeFormat", Const, 0}, + {"TimeoutHandler", Func, 0}, + {"TrailerPrefix", Const, 8}, + {"Transport", Type, 0}, + {"Transport.Dial", Field, 0}, + {"Transport.DialContext", Field, 7}, + {"Transport.DialTLS", Field, 4}, + {"Transport.DialTLSContext", Field, 14}, + {"Transport.DisableCompression", Field, 0}, + {"Transport.DisableKeepAlives", Field, 0}, + {"Transport.ExpectContinueTimeout", Field, 6}, + {"Transport.ForceAttemptHTTP2", Field, 13}, + {"Transport.GetProxyConnectHeader", Field, 16}, + {"Transport.IdleConnTimeout", Field, 7}, + {"Transport.MaxConnsPerHost", Field, 11}, + {"Transport.MaxIdleConns", Field, 7}, + {"Transport.MaxIdleConnsPerHost", Field, 0}, + {"Transport.MaxResponseHeaderBytes", Field, 7}, + {"Transport.OnProxyConnectResponse", Field, 20}, + {"Transport.Proxy", Field, 0}, + {"Transport.ProxyConnectHeader", Field, 8}, + {"Transport.ReadBufferSize", Field, 13}, + {"Transport.ResponseHeaderTimeout", Field, 1}, + {"Transport.TLSClientConfig", Field, 0}, + {"Transport.TLSHandshakeTimeout", Field, 3}, + {"Transport.TLSNextProto", Field, 6}, + {"Transport.WriteBufferSize", Field, 13}, + }, + "net/http/cgi": { + {"(*Handler).ServeHTTP", Method, 0}, + {"Handler", Type, 0}, + {"Handler.Args", Field, 0}, + {"Handler.Dir", Field, 0}, + {"Handler.Env", Field, 0}, + {"Handler.InheritEnv", Field, 0}, + {"Handler.Logger", Field, 0}, + {"Handler.Path", Field, 0}, + {"Handler.PathLocationHandler", Field, 0}, + {"Handler.Root", Field, 0}, + {"Handler.Stderr", Field, 7}, + {"Request", Func, 0}, + {"RequestFromMap", Func, 0}, + {"Serve", Func, 0}, + }, + "net/http/cookiejar": { + {"(*Jar).Cookies", Method, 1}, + {"(*Jar).SetCookies", Method, 1}, + {"Jar", Type, 1}, + {"New", Func, 1}, + {"Options", Type, 1}, + {"Options.PublicSuffixList", Field, 1}, + {"PublicSuffixList", Type, 1}, + }, + "net/http/fcgi": { + {"ErrConnClosed", Var, 5}, + {"ErrRequestAborted", Var, 5}, + {"ProcessEnv", Func, 9}, + {"Serve", Func, 0}, + }, + "net/http/httptest": { + {"(*ResponseRecorder).Flush", Method, 0}, + {"(*ResponseRecorder).Header", Method, 0}, + {"(*ResponseRecorder).Result", Method, 7}, + {"(*ResponseRecorder).Write", Method, 0}, + {"(*ResponseRecorder).WriteHeader", Method, 0}, + {"(*ResponseRecorder).WriteString", Method, 6}, + {"(*Server).Certificate", Method, 9}, + {"(*Server).Client", Method, 9}, + {"(*Server).Close", Method, 0}, + {"(*Server).CloseClientConnections", Method, 0}, + {"(*Server).Start", Method, 0}, + {"(*Server).StartTLS", Method, 0}, + {"DefaultRemoteAddr", Const, 0}, + {"NewRecorder", Func, 0}, + {"NewRequest", Func, 7}, + {"NewServer", Func, 0}, + {"NewTLSServer", Func, 0}, + {"NewUnstartedServer", Func, 0}, + {"ResponseRecorder", Type, 0}, + {"ResponseRecorder.Body", Field, 0}, + {"ResponseRecorder.Code", Field, 0}, + {"ResponseRecorder.Flushed", Field, 0}, + {"ResponseRecorder.HeaderMap", Field, 0}, + {"Server", Type, 0}, + {"Server.Config", Field, 0}, + {"Server.EnableHTTP2", Field, 14}, + {"Server.Listener", Field, 0}, + {"Server.TLS", Field, 0}, + {"Server.URL", Field, 0}, + }, + "net/http/httptrace": { + {"ClientTrace", Type, 7}, + {"ClientTrace.ConnectDone", Field, 7}, + {"ClientTrace.ConnectStart", Field, 7}, + {"ClientTrace.DNSDone", Field, 7}, + {"ClientTrace.DNSStart", Field, 7}, + {"ClientTrace.GetConn", Field, 7}, + {"ClientTrace.Got100Continue", Field, 7}, + {"ClientTrace.Got1xxResponse", Field, 11}, + {"ClientTrace.GotConn", Field, 7}, + {"ClientTrace.GotFirstResponseByte", Field, 7}, + {"ClientTrace.PutIdleConn", Field, 7}, + {"ClientTrace.TLSHandshakeDone", Field, 8}, + {"ClientTrace.TLSHandshakeStart", Field, 8}, + {"ClientTrace.Wait100Continue", Field, 7}, + {"ClientTrace.WroteHeaderField", Field, 11}, + {"ClientTrace.WroteHeaders", Field, 7}, + {"ClientTrace.WroteRequest", Field, 7}, + {"ContextClientTrace", Func, 7}, + {"DNSDoneInfo", Type, 7}, + {"DNSDoneInfo.Addrs", Field, 7}, + {"DNSDoneInfo.Coalesced", Field, 7}, + {"DNSDoneInfo.Err", Field, 7}, + {"DNSStartInfo", Type, 7}, + {"DNSStartInfo.Host", Field, 7}, + {"GotConnInfo", Type, 7}, + {"GotConnInfo.Conn", Field, 7}, + {"GotConnInfo.IdleTime", Field, 7}, + {"GotConnInfo.Reused", Field, 7}, + {"GotConnInfo.WasIdle", Field, 7}, + {"WithClientTrace", Func, 7}, + {"WroteRequestInfo", Type, 7}, + {"WroteRequestInfo.Err", Field, 7}, + }, + "net/http/httputil": { + {"(*ClientConn).Close", Method, 0}, + {"(*ClientConn).Do", Method, 0}, + {"(*ClientConn).Hijack", Method, 0}, + {"(*ClientConn).Pending", Method, 0}, + {"(*ClientConn).Read", Method, 0}, + {"(*ClientConn).Write", Method, 0}, + {"(*ProxyRequest).SetURL", Method, 20}, + {"(*ProxyRequest).SetXForwarded", Method, 20}, + {"(*ReverseProxy).ServeHTTP", Method, 0}, + {"(*ServerConn).Close", Method, 0}, + {"(*ServerConn).Hijack", Method, 0}, + {"(*ServerConn).Pending", Method, 0}, + {"(*ServerConn).Read", Method, 0}, + {"(*ServerConn).Write", Method, 0}, + {"BufferPool", Type, 6}, + {"ClientConn", Type, 0}, + {"DumpRequest", Func, 0}, + {"DumpRequestOut", Func, 0}, + {"DumpResponse", Func, 0}, + {"ErrClosed", Var, 0}, + {"ErrLineTooLong", Var, 0}, + {"ErrPersistEOF", Var, 0}, + {"ErrPipeline", Var, 0}, + {"NewChunkedReader", Func, 0}, + {"NewChunkedWriter", Func, 0}, + {"NewClientConn", Func, 0}, + {"NewProxyClientConn", Func, 0}, + {"NewServerConn", Func, 0}, + {"NewSingleHostReverseProxy", Func, 0}, + {"ProxyRequest", Type, 20}, + {"ProxyRequest.In", Field, 20}, + {"ProxyRequest.Out", Field, 20}, + {"ReverseProxy", Type, 0}, + {"ReverseProxy.BufferPool", Field, 6}, + {"ReverseProxy.Director", Field, 0}, + {"ReverseProxy.ErrorHandler", Field, 11}, + {"ReverseProxy.ErrorLog", Field, 4}, + {"ReverseProxy.FlushInterval", Field, 0}, + {"ReverseProxy.ModifyResponse", Field, 8}, + {"ReverseProxy.Rewrite", Field, 20}, + {"ReverseProxy.Transport", Field, 0}, + {"ServerConn", Type, 0}, + }, + "net/http/pprof": { + {"Cmdline", Func, 0}, + {"Handler", Func, 0}, + {"Index", Func, 0}, + {"Profile", Func, 0}, + {"Symbol", Func, 0}, + {"Trace", Func, 5}, + }, + "net/mail": { + {"(*Address).String", Method, 0}, + {"(*AddressParser).Parse", Method, 5}, + {"(*AddressParser).ParseList", Method, 5}, + {"(Header).AddressList", Method, 0}, + {"(Header).Date", Method, 0}, + {"(Header).Get", Method, 0}, + {"Address", Type, 0}, + {"Address.Address", Field, 0}, + {"Address.Name", Field, 0}, + {"AddressParser", Type, 5}, + {"AddressParser.WordDecoder", Field, 5}, + {"ErrHeaderNotPresent", Var, 0}, + {"Header", Type, 0}, + {"Message", Type, 0}, + {"Message.Body", Field, 0}, + {"Message.Header", Field, 0}, + {"ParseAddress", Func, 1}, + {"ParseAddressList", Func, 1}, + {"ParseDate", Func, 8}, + {"ReadMessage", Func, 0}, + }, + "net/netip": { + {"(*Addr).UnmarshalBinary", Method, 18}, + {"(*Addr).UnmarshalText", Method, 18}, + {"(*AddrPort).UnmarshalBinary", Method, 18}, + {"(*AddrPort).UnmarshalText", Method, 18}, + {"(*Prefix).UnmarshalBinary", Method, 18}, + {"(*Prefix).UnmarshalText", Method, 18}, + {"(Addr).AppendTo", Method, 18}, + {"(Addr).As16", Method, 18}, + {"(Addr).As4", Method, 18}, + {"(Addr).AsSlice", Method, 18}, + {"(Addr).BitLen", Method, 18}, + {"(Addr).Compare", Method, 18}, + {"(Addr).Is4", Method, 18}, + {"(Addr).Is4In6", Method, 18}, + {"(Addr).Is6", Method, 18}, + {"(Addr).IsGlobalUnicast", Method, 18}, + {"(Addr).IsInterfaceLocalMulticast", Method, 18}, + {"(Addr).IsLinkLocalMulticast", Method, 18}, + {"(Addr).IsLinkLocalUnicast", Method, 18}, + {"(Addr).IsLoopback", Method, 18}, + {"(Addr).IsMulticast", Method, 18}, + {"(Addr).IsPrivate", Method, 18}, + {"(Addr).IsUnspecified", Method, 18}, + {"(Addr).IsValid", Method, 18}, + {"(Addr).Less", Method, 18}, + {"(Addr).MarshalBinary", Method, 18}, + {"(Addr).MarshalText", Method, 18}, + {"(Addr).Next", Method, 18}, + {"(Addr).Prefix", Method, 18}, + {"(Addr).Prev", Method, 18}, + {"(Addr).String", Method, 18}, + {"(Addr).StringExpanded", Method, 18}, + {"(Addr).Unmap", Method, 18}, + {"(Addr).WithZone", Method, 18}, + {"(Addr).Zone", Method, 18}, + {"(AddrPort).Addr", Method, 18}, + {"(AddrPort).AppendTo", Method, 18}, + {"(AddrPort).Compare", Method, 22}, + {"(AddrPort).IsValid", Method, 18}, + {"(AddrPort).MarshalBinary", Method, 18}, + {"(AddrPort).MarshalText", Method, 18}, + {"(AddrPort).Port", Method, 18}, + {"(AddrPort).String", Method, 18}, + {"(Prefix).Addr", Method, 18}, + {"(Prefix).AppendTo", Method, 18}, + {"(Prefix).Bits", Method, 18}, + {"(Prefix).Contains", Method, 18}, + {"(Prefix).IsSingleIP", Method, 18}, + {"(Prefix).IsValid", Method, 18}, + {"(Prefix).MarshalBinary", Method, 18}, + {"(Prefix).MarshalText", Method, 18}, + {"(Prefix).Masked", Method, 18}, + {"(Prefix).Overlaps", Method, 18}, + {"(Prefix).String", Method, 18}, + {"Addr", Type, 18}, + {"AddrFrom16", Func, 18}, + {"AddrFrom4", Func, 18}, + {"AddrFromSlice", Func, 18}, + {"AddrPort", Type, 18}, + {"AddrPortFrom", Func, 18}, + {"IPv4Unspecified", Func, 18}, + {"IPv6LinkLocalAllNodes", Func, 18}, + {"IPv6LinkLocalAllRouters", Func, 20}, + {"IPv6Loopback", Func, 20}, + {"IPv6Unspecified", Func, 18}, + {"MustParseAddr", Func, 18}, + {"MustParseAddrPort", Func, 18}, + {"MustParsePrefix", Func, 18}, + {"ParseAddr", Func, 18}, + {"ParseAddrPort", Func, 18}, + {"ParsePrefix", Func, 18}, + {"Prefix", Type, 18}, + {"PrefixFrom", Func, 18}, + }, + "net/rpc": { + {"(*Client).Call", Method, 0}, + {"(*Client).Close", Method, 0}, + {"(*Client).Go", Method, 0}, + {"(*Server).Accept", Method, 0}, + {"(*Server).HandleHTTP", Method, 0}, + {"(*Server).Register", Method, 0}, + {"(*Server).RegisterName", Method, 0}, + {"(*Server).ServeCodec", Method, 0}, + {"(*Server).ServeConn", Method, 0}, + {"(*Server).ServeHTTP", Method, 0}, + {"(*Server).ServeRequest", Method, 0}, + {"(ServerError).Error", Method, 0}, + {"Accept", Func, 0}, + {"Call", Type, 0}, + {"Call.Args", Field, 0}, + {"Call.Done", Field, 0}, + {"Call.Error", Field, 0}, + {"Call.Reply", Field, 0}, + {"Call.ServiceMethod", Field, 0}, + {"Client", Type, 0}, + {"ClientCodec", Type, 0}, + {"DefaultDebugPath", Const, 0}, + {"DefaultRPCPath", Const, 0}, + {"DefaultServer", Var, 0}, + {"Dial", Func, 0}, + {"DialHTTP", Func, 0}, + {"DialHTTPPath", Func, 0}, + {"ErrShutdown", Var, 0}, + {"HandleHTTP", Func, 0}, + {"NewClient", Func, 0}, + {"NewClientWithCodec", Func, 0}, + {"NewServer", Func, 0}, + {"Register", Func, 0}, + {"RegisterName", Func, 0}, + {"Request", Type, 0}, + {"Request.Seq", Field, 0}, + {"Request.ServiceMethod", Field, 0}, + {"Response", Type, 0}, + {"Response.Error", Field, 0}, + {"Response.Seq", Field, 0}, + {"Response.ServiceMethod", Field, 0}, + {"ServeCodec", Func, 0}, + {"ServeConn", Func, 0}, + {"ServeRequest", Func, 0}, + {"Server", Type, 0}, + {"ServerCodec", Type, 0}, + {"ServerError", Type, 0}, + }, + "net/rpc/jsonrpc": { + {"Dial", Func, 0}, + {"NewClient", Func, 0}, + {"NewClientCodec", Func, 0}, + {"NewServerCodec", Func, 0}, + {"ServeConn", Func, 0}, + }, + "net/smtp": { + {"(*Client).Auth", Method, 0}, + {"(*Client).Close", Method, 2}, + {"(*Client).Data", Method, 0}, + {"(*Client).Extension", Method, 0}, + {"(*Client).Hello", Method, 1}, + {"(*Client).Mail", Method, 0}, + {"(*Client).Noop", Method, 10}, + {"(*Client).Quit", Method, 0}, + {"(*Client).Rcpt", Method, 0}, + {"(*Client).Reset", Method, 0}, + {"(*Client).StartTLS", Method, 0}, + {"(*Client).TLSConnectionState", Method, 5}, + {"(*Client).Verify", Method, 0}, + {"Auth", Type, 0}, + {"CRAMMD5Auth", Func, 0}, + {"Client", Type, 0}, + {"Client.Text", Field, 0}, + {"Dial", Func, 0}, + {"NewClient", Func, 0}, + {"PlainAuth", Func, 0}, + {"SendMail", Func, 0}, + {"ServerInfo", Type, 0}, + {"ServerInfo.Auth", Field, 0}, + {"ServerInfo.Name", Field, 0}, + {"ServerInfo.TLS", Field, 0}, + }, + "net/textproto": { + {"(*Conn).Close", Method, 0}, + {"(*Conn).Cmd", Method, 0}, + {"(*Conn).DotReader", Method, 0}, + {"(*Conn).DotWriter", Method, 0}, + {"(*Conn).EndRequest", Method, 0}, + {"(*Conn).EndResponse", Method, 0}, + {"(*Conn).Next", Method, 0}, + {"(*Conn).PrintfLine", Method, 0}, + {"(*Conn).ReadCodeLine", Method, 0}, + {"(*Conn).ReadContinuedLine", Method, 0}, + {"(*Conn).ReadContinuedLineBytes", Method, 0}, + {"(*Conn).ReadDotBytes", Method, 0}, + {"(*Conn).ReadDotLines", Method, 0}, + {"(*Conn).ReadLine", Method, 0}, + {"(*Conn).ReadLineBytes", Method, 0}, + {"(*Conn).ReadMIMEHeader", Method, 0}, + {"(*Conn).ReadResponse", Method, 0}, + {"(*Conn).StartRequest", Method, 0}, + {"(*Conn).StartResponse", Method, 0}, + {"(*Error).Error", Method, 0}, + {"(*Pipeline).EndRequest", Method, 0}, + {"(*Pipeline).EndResponse", Method, 0}, + {"(*Pipeline).Next", Method, 0}, + {"(*Pipeline).StartRequest", Method, 0}, + {"(*Pipeline).StartResponse", Method, 0}, + {"(*Reader).DotReader", Method, 0}, + {"(*Reader).ReadCodeLine", Method, 0}, + {"(*Reader).ReadContinuedLine", Method, 0}, + {"(*Reader).ReadContinuedLineBytes", Method, 0}, + {"(*Reader).ReadDotBytes", Method, 0}, + {"(*Reader).ReadDotLines", Method, 0}, + {"(*Reader).ReadLine", Method, 0}, + {"(*Reader).ReadLineBytes", Method, 0}, + {"(*Reader).ReadMIMEHeader", Method, 0}, + {"(*Reader).ReadResponse", Method, 0}, + {"(*Writer).DotWriter", Method, 0}, + {"(*Writer).PrintfLine", Method, 0}, + {"(MIMEHeader).Add", Method, 0}, + {"(MIMEHeader).Del", Method, 0}, + {"(MIMEHeader).Get", Method, 0}, + {"(MIMEHeader).Set", Method, 0}, + {"(MIMEHeader).Values", Method, 14}, + {"(ProtocolError).Error", Method, 0}, + {"CanonicalMIMEHeaderKey", Func, 0}, + {"Conn", Type, 0}, + {"Conn.Pipeline", Field, 0}, + {"Conn.Reader", Field, 0}, + {"Conn.Writer", Field, 0}, + {"Dial", Func, 0}, + {"Error", Type, 0}, + {"Error.Code", Field, 0}, + {"Error.Msg", Field, 0}, + {"MIMEHeader", Type, 0}, + {"NewConn", Func, 0}, + {"NewReader", Func, 0}, + {"NewWriter", Func, 0}, + {"Pipeline", Type, 0}, + {"ProtocolError", Type, 0}, + {"Reader", Type, 0}, + {"Reader.R", Field, 0}, + {"TrimBytes", Func, 1}, + {"TrimString", Func, 1}, + {"Writer", Type, 0}, + {"Writer.W", Field, 0}, + }, + "net/url": { + {"(*Error).Error", Method, 0}, + {"(*Error).Temporary", Method, 6}, + {"(*Error).Timeout", Method, 6}, + {"(*Error).Unwrap", Method, 13}, + {"(*URL).EscapedFragment", Method, 15}, + {"(*URL).EscapedPath", Method, 5}, + {"(*URL).Hostname", Method, 8}, + {"(*URL).IsAbs", Method, 0}, + {"(*URL).JoinPath", Method, 19}, + {"(*URL).MarshalBinary", Method, 8}, + {"(*URL).Parse", Method, 0}, + {"(*URL).Port", Method, 8}, + {"(*URL).Query", Method, 0}, + {"(*URL).Redacted", Method, 15}, + {"(*URL).RequestURI", Method, 0}, + {"(*URL).ResolveReference", Method, 0}, + {"(*URL).String", Method, 0}, + {"(*URL).UnmarshalBinary", Method, 8}, + {"(*Userinfo).Password", Method, 0}, + {"(*Userinfo).String", Method, 0}, + {"(*Userinfo).Username", Method, 0}, + {"(EscapeError).Error", Method, 0}, + {"(InvalidHostError).Error", Method, 6}, + {"(Values).Add", Method, 0}, + {"(Values).Del", Method, 0}, + {"(Values).Encode", Method, 0}, + {"(Values).Get", Method, 0}, + {"(Values).Has", Method, 17}, + {"(Values).Set", Method, 0}, + {"Error", Type, 0}, + {"Error.Err", Field, 0}, + {"Error.Op", Field, 0}, + {"Error.URL", Field, 0}, + {"EscapeError", Type, 0}, + {"InvalidHostError", Type, 6}, + {"JoinPath", Func, 19}, + {"Parse", Func, 0}, + {"ParseQuery", Func, 0}, + {"ParseRequestURI", Func, 0}, + {"PathEscape", Func, 8}, + {"PathUnescape", Func, 8}, + {"QueryEscape", Func, 0}, + {"QueryUnescape", Func, 0}, + {"URL", Type, 0}, + {"URL.ForceQuery", Field, 7}, + {"URL.Fragment", Field, 0}, + {"URL.Host", Field, 0}, + {"URL.OmitHost", Field, 19}, + {"URL.Opaque", Field, 0}, + {"URL.Path", Field, 0}, + {"URL.RawFragment", Field, 15}, + {"URL.RawPath", Field, 5}, + {"URL.RawQuery", Field, 0}, + {"URL.Scheme", Field, 0}, + {"URL.User", Field, 0}, + {"User", Func, 0}, + {"UserPassword", Func, 0}, + {"Userinfo", Type, 0}, + {"Values", Type, 0}, + }, + "os": { + {"(*File).Chdir", Method, 0}, + {"(*File).Chmod", Method, 0}, + {"(*File).Chown", Method, 0}, + {"(*File).Close", Method, 0}, + {"(*File).Fd", Method, 0}, + {"(*File).Name", Method, 0}, + {"(*File).Read", Method, 0}, + {"(*File).ReadAt", Method, 0}, + {"(*File).ReadDir", Method, 16}, + {"(*File).ReadFrom", Method, 15}, + {"(*File).Readdir", Method, 0}, + {"(*File).Readdirnames", Method, 0}, + {"(*File).Seek", Method, 0}, + {"(*File).SetDeadline", Method, 10}, + {"(*File).SetReadDeadline", Method, 10}, + {"(*File).SetWriteDeadline", Method, 10}, + {"(*File).Stat", Method, 0}, + {"(*File).Sync", Method, 0}, + {"(*File).SyscallConn", Method, 12}, + {"(*File).Truncate", Method, 0}, + {"(*File).Write", Method, 0}, + {"(*File).WriteAt", Method, 0}, + {"(*File).WriteString", Method, 0}, + {"(*File).WriteTo", Method, 22}, + {"(*LinkError).Error", Method, 0}, + {"(*LinkError).Unwrap", Method, 13}, + {"(*PathError).Error", Method, 0}, + {"(*PathError).Timeout", Method, 10}, + {"(*PathError).Unwrap", Method, 13}, + {"(*Process).Kill", Method, 0}, + {"(*Process).Release", Method, 0}, + {"(*Process).Signal", Method, 0}, + {"(*Process).Wait", Method, 0}, + {"(*ProcessState).ExitCode", Method, 12}, + {"(*ProcessState).Exited", Method, 0}, + {"(*ProcessState).Pid", Method, 0}, + {"(*ProcessState).String", Method, 0}, + {"(*ProcessState).Success", Method, 0}, + {"(*ProcessState).Sys", Method, 0}, + {"(*ProcessState).SysUsage", Method, 0}, + {"(*ProcessState).SystemTime", Method, 0}, + {"(*ProcessState).UserTime", Method, 0}, + {"(*SyscallError).Error", Method, 0}, + {"(*SyscallError).Timeout", Method, 10}, + {"(*SyscallError).Unwrap", Method, 13}, + {"(FileMode).IsDir", Method, 0}, + {"(FileMode).IsRegular", Method, 1}, + {"(FileMode).Perm", Method, 0}, + {"(FileMode).String", Method, 0}, + {"Args", Var, 0}, + {"Chdir", Func, 0}, + {"Chmod", Func, 0}, + {"Chown", Func, 0}, + {"Chtimes", Func, 0}, + {"Clearenv", Func, 0}, + {"Create", Func, 0}, + {"CreateTemp", Func, 16}, + {"DevNull", Const, 0}, + {"DirEntry", Type, 16}, + {"DirFS", Func, 16}, + {"Environ", Func, 0}, + {"ErrClosed", Var, 8}, + {"ErrDeadlineExceeded", Var, 15}, + {"ErrExist", Var, 0}, + {"ErrInvalid", Var, 0}, + {"ErrNoDeadline", Var, 10}, + {"ErrNotExist", Var, 0}, + {"ErrPermission", Var, 0}, + {"ErrProcessDone", Var, 16}, + {"Executable", Func, 8}, + {"Exit", Func, 0}, + {"Expand", Func, 0}, + {"ExpandEnv", Func, 0}, + {"File", Type, 0}, + {"FileInfo", Type, 0}, + {"FileMode", Type, 0}, + {"FindProcess", Func, 0}, + {"Getegid", Func, 0}, + {"Getenv", Func, 0}, + {"Geteuid", Func, 0}, + {"Getgid", Func, 0}, + {"Getgroups", Func, 0}, + {"Getpagesize", Func, 0}, + {"Getpid", Func, 0}, + {"Getppid", Func, 0}, + {"Getuid", Func, 0}, + {"Getwd", Func, 0}, + {"Hostname", Func, 0}, + {"Interrupt", Var, 0}, + {"IsExist", Func, 0}, + {"IsNotExist", Func, 0}, + {"IsPathSeparator", Func, 0}, + {"IsPermission", Func, 0}, + {"IsTimeout", Func, 10}, + {"Kill", Var, 0}, + {"Lchown", Func, 0}, + {"Link", Func, 0}, + {"LinkError", Type, 0}, + {"LinkError.Err", Field, 0}, + {"LinkError.New", Field, 0}, + {"LinkError.Old", Field, 0}, + {"LinkError.Op", Field, 0}, + {"LookupEnv", Func, 5}, + {"Lstat", Func, 0}, + {"Mkdir", Func, 0}, + {"MkdirAll", Func, 0}, + {"MkdirTemp", Func, 16}, + {"ModeAppend", Const, 0}, + {"ModeCharDevice", Const, 0}, + {"ModeDevice", Const, 0}, + {"ModeDir", Const, 0}, + {"ModeExclusive", Const, 0}, + {"ModeIrregular", Const, 11}, + {"ModeNamedPipe", Const, 0}, + {"ModePerm", Const, 0}, + {"ModeSetgid", Const, 0}, + {"ModeSetuid", Const, 0}, + {"ModeSocket", Const, 0}, + {"ModeSticky", Const, 0}, + {"ModeSymlink", Const, 0}, + {"ModeTemporary", Const, 0}, + {"ModeType", Const, 0}, + {"NewFile", Func, 0}, + {"NewSyscallError", Func, 0}, + {"O_APPEND", Const, 0}, + {"O_CREATE", Const, 0}, + {"O_EXCL", Const, 0}, + {"O_RDONLY", Const, 0}, + {"O_RDWR", Const, 0}, + {"O_SYNC", Const, 0}, + {"O_TRUNC", Const, 0}, + {"O_WRONLY", Const, 0}, + {"Open", Func, 0}, + {"OpenFile", Func, 0}, + {"PathError", Type, 0}, + {"PathError.Err", Field, 0}, + {"PathError.Op", Field, 0}, + {"PathError.Path", Field, 0}, + {"PathListSeparator", Const, 0}, + {"PathSeparator", Const, 0}, + {"Pipe", Func, 0}, + {"ProcAttr", Type, 0}, + {"ProcAttr.Dir", Field, 0}, + {"ProcAttr.Env", Field, 0}, + {"ProcAttr.Files", Field, 0}, + {"ProcAttr.Sys", Field, 0}, + {"Process", Type, 0}, + {"Process.Pid", Field, 0}, + {"ProcessState", Type, 0}, + {"ReadDir", Func, 16}, + {"ReadFile", Func, 16}, + {"Readlink", Func, 0}, + {"Remove", Func, 0}, + {"RemoveAll", Func, 0}, + {"Rename", Func, 0}, + {"SEEK_CUR", Const, 0}, + {"SEEK_END", Const, 0}, + {"SEEK_SET", Const, 0}, + {"SameFile", Func, 0}, + {"Setenv", Func, 0}, + {"Signal", Type, 0}, + {"StartProcess", Func, 0}, + {"Stat", Func, 0}, + {"Stderr", Var, 0}, + {"Stdin", Var, 0}, + {"Stdout", Var, 0}, + {"Symlink", Func, 0}, + {"SyscallError", Type, 0}, + {"SyscallError.Err", Field, 0}, + {"SyscallError.Syscall", Field, 0}, + {"TempDir", Func, 0}, + {"Truncate", Func, 0}, + {"Unsetenv", Func, 4}, + {"UserCacheDir", Func, 11}, + {"UserConfigDir", Func, 13}, + {"UserHomeDir", Func, 12}, + {"WriteFile", Func, 16}, + }, + "os/exec": { + {"(*Cmd).CombinedOutput", Method, 0}, + {"(*Cmd).Environ", Method, 19}, + {"(*Cmd).Output", Method, 0}, + {"(*Cmd).Run", Method, 0}, + {"(*Cmd).Start", Method, 0}, + {"(*Cmd).StderrPipe", Method, 0}, + {"(*Cmd).StdinPipe", Method, 0}, + {"(*Cmd).StdoutPipe", Method, 0}, + {"(*Cmd).String", Method, 13}, + {"(*Cmd).Wait", Method, 0}, + {"(*Error).Error", Method, 0}, + {"(*Error).Unwrap", Method, 13}, + {"(*ExitError).Error", Method, 0}, + {"(ExitError).ExitCode", Method, 12}, + {"(ExitError).Exited", Method, 0}, + {"(ExitError).Pid", Method, 0}, + {"(ExitError).String", Method, 0}, + {"(ExitError).Success", Method, 0}, + {"(ExitError).Sys", Method, 0}, + {"(ExitError).SysUsage", Method, 0}, + {"(ExitError).SystemTime", Method, 0}, + {"(ExitError).UserTime", Method, 0}, + {"Cmd", Type, 0}, + {"Cmd.Args", Field, 0}, + {"Cmd.Cancel", Field, 20}, + {"Cmd.Dir", Field, 0}, + {"Cmd.Env", Field, 0}, + {"Cmd.Err", Field, 19}, + {"Cmd.ExtraFiles", Field, 0}, + {"Cmd.Path", Field, 0}, + {"Cmd.Process", Field, 0}, + {"Cmd.ProcessState", Field, 0}, + {"Cmd.Stderr", Field, 0}, + {"Cmd.Stdin", Field, 0}, + {"Cmd.Stdout", Field, 0}, + {"Cmd.SysProcAttr", Field, 0}, + {"Cmd.WaitDelay", Field, 20}, + {"Command", Func, 0}, + {"CommandContext", Func, 7}, + {"ErrDot", Var, 19}, + {"ErrNotFound", Var, 0}, + {"ErrWaitDelay", Var, 20}, + {"Error", Type, 0}, + {"Error.Err", Field, 0}, + {"Error.Name", Field, 0}, + {"ExitError", Type, 0}, + {"ExitError.ProcessState", Field, 0}, + {"ExitError.Stderr", Field, 6}, + {"LookPath", Func, 0}, + }, + "os/signal": { + {"Ignore", Func, 5}, + {"Ignored", Func, 11}, + {"Notify", Func, 0}, + {"NotifyContext", Func, 16}, + {"Reset", Func, 5}, + {"Stop", Func, 1}, + }, + "os/user": { + {"(*User).GroupIds", Method, 7}, + {"(UnknownGroupError).Error", Method, 7}, + {"(UnknownGroupIdError).Error", Method, 7}, + {"(UnknownUserError).Error", Method, 0}, + {"(UnknownUserIdError).Error", Method, 0}, + {"Current", Func, 0}, + {"Group", Type, 7}, + {"Group.Gid", Field, 7}, + {"Group.Name", Field, 7}, + {"Lookup", Func, 0}, + {"LookupGroup", Func, 7}, + {"LookupGroupId", Func, 7}, + {"LookupId", Func, 0}, + {"UnknownGroupError", Type, 7}, + {"UnknownGroupIdError", Type, 7}, + {"UnknownUserError", Type, 0}, + {"UnknownUserIdError", Type, 0}, + {"User", Type, 0}, + {"User.Gid", Field, 0}, + {"User.HomeDir", Field, 0}, + {"User.Name", Field, 0}, + {"User.Uid", Field, 0}, + {"User.Username", Field, 0}, + }, + "path": { + {"Base", Func, 0}, + {"Clean", Func, 0}, + {"Dir", Func, 0}, + {"ErrBadPattern", Var, 0}, + {"Ext", Func, 0}, + {"IsAbs", Func, 0}, + {"Join", Func, 0}, + {"Match", Func, 0}, + {"Split", Func, 0}, + }, + "path/filepath": { + {"Abs", Func, 0}, + {"Base", Func, 0}, + {"Clean", Func, 0}, + {"Dir", Func, 0}, + {"ErrBadPattern", Var, 0}, + {"EvalSymlinks", Func, 0}, + {"Ext", Func, 0}, + {"FromSlash", Func, 0}, + {"Glob", Func, 0}, + {"HasPrefix", Func, 0}, + {"IsAbs", Func, 0}, + {"IsLocal", Func, 20}, + {"Join", Func, 0}, + {"ListSeparator", Const, 0}, + {"Match", Func, 0}, + {"Rel", Func, 0}, + {"Separator", Const, 0}, + {"SkipAll", Var, 20}, + {"SkipDir", Var, 0}, + {"Split", Func, 0}, + {"SplitList", Func, 0}, + {"ToSlash", Func, 0}, + {"VolumeName", Func, 0}, + {"Walk", Func, 0}, + {"WalkDir", Func, 16}, + {"WalkFunc", Type, 0}, + }, + "plugin": { + {"(*Plugin).Lookup", Method, 8}, + {"Open", Func, 8}, + {"Plugin", Type, 8}, + {"Symbol", Type, 8}, + }, + "reflect": { + {"(*MapIter).Key", Method, 12}, + {"(*MapIter).Next", Method, 12}, + {"(*MapIter).Reset", Method, 18}, + {"(*MapIter).Value", Method, 12}, + {"(*ValueError).Error", Method, 0}, + {"(ChanDir).String", Method, 0}, + {"(Kind).String", Method, 0}, + {"(Method).IsExported", Method, 17}, + {"(StructField).IsExported", Method, 17}, + {"(StructTag).Get", Method, 0}, + {"(StructTag).Lookup", Method, 7}, + {"(Value).Addr", Method, 0}, + {"(Value).Bool", Method, 0}, + {"(Value).Bytes", Method, 0}, + {"(Value).Call", Method, 0}, + {"(Value).CallSlice", Method, 0}, + {"(Value).CanAddr", Method, 0}, + {"(Value).CanComplex", Method, 18}, + {"(Value).CanConvert", Method, 17}, + {"(Value).CanFloat", Method, 18}, + {"(Value).CanInt", Method, 18}, + {"(Value).CanInterface", Method, 0}, + {"(Value).CanSet", Method, 0}, + {"(Value).CanUint", Method, 18}, + {"(Value).Cap", Method, 0}, + {"(Value).Clear", Method, 21}, + {"(Value).Close", Method, 0}, + {"(Value).Comparable", Method, 20}, + {"(Value).Complex", Method, 0}, + {"(Value).Convert", Method, 1}, + {"(Value).Elem", Method, 0}, + {"(Value).Equal", Method, 20}, + {"(Value).Field", Method, 0}, + {"(Value).FieldByIndex", Method, 0}, + {"(Value).FieldByIndexErr", Method, 18}, + {"(Value).FieldByName", Method, 0}, + {"(Value).FieldByNameFunc", Method, 0}, + {"(Value).Float", Method, 0}, + {"(Value).Grow", Method, 20}, + {"(Value).Index", Method, 0}, + {"(Value).Int", Method, 0}, + {"(Value).Interface", Method, 0}, + {"(Value).InterfaceData", Method, 0}, + {"(Value).IsNil", Method, 0}, + {"(Value).IsValid", Method, 0}, + {"(Value).IsZero", Method, 13}, + {"(Value).Kind", Method, 0}, + {"(Value).Len", Method, 0}, + {"(Value).MapIndex", Method, 0}, + {"(Value).MapKeys", Method, 0}, + {"(Value).MapRange", Method, 12}, + {"(Value).Method", Method, 0}, + {"(Value).MethodByName", Method, 0}, + {"(Value).NumField", Method, 0}, + {"(Value).NumMethod", Method, 0}, + {"(Value).OverflowComplex", Method, 0}, + {"(Value).OverflowFloat", Method, 0}, + {"(Value).OverflowInt", Method, 0}, + {"(Value).OverflowUint", Method, 0}, + {"(Value).Pointer", Method, 0}, + {"(Value).Recv", Method, 0}, + {"(Value).Send", Method, 0}, + {"(Value).Set", Method, 0}, + {"(Value).SetBool", Method, 0}, + {"(Value).SetBytes", Method, 0}, + {"(Value).SetCap", Method, 2}, + {"(Value).SetComplex", Method, 0}, + {"(Value).SetFloat", Method, 0}, + {"(Value).SetInt", Method, 0}, + {"(Value).SetIterKey", Method, 18}, + {"(Value).SetIterValue", Method, 18}, + {"(Value).SetLen", Method, 0}, + {"(Value).SetMapIndex", Method, 0}, + {"(Value).SetPointer", Method, 0}, + {"(Value).SetString", Method, 0}, + {"(Value).SetUint", Method, 0}, + {"(Value).SetZero", Method, 20}, + {"(Value).Slice", Method, 0}, + {"(Value).Slice3", Method, 2}, + {"(Value).String", Method, 0}, + {"(Value).TryRecv", Method, 0}, + {"(Value).TrySend", Method, 0}, + {"(Value).Type", Method, 0}, + {"(Value).Uint", Method, 0}, + {"(Value).UnsafeAddr", Method, 0}, + {"(Value).UnsafePointer", Method, 18}, + {"Append", Func, 0}, + {"AppendSlice", Func, 0}, + {"Array", Const, 0}, + {"ArrayOf", Func, 5}, + {"Bool", Const, 0}, + {"BothDir", Const, 0}, + {"Chan", Const, 0}, + {"ChanDir", Type, 0}, + {"ChanOf", Func, 1}, + {"Complex128", Const, 0}, + {"Complex64", Const, 0}, + {"Copy", Func, 0}, + {"DeepEqual", Func, 0}, + {"Float32", Const, 0}, + {"Float64", Const, 0}, + {"Func", Const, 0}, + {"FuncOf", Func, 5}, + {"Indirect", Func, 0}, + {"Int", Const, 0}, + {"Int16", Const, 0}, + {"Int32", Const, 0}, + {"Int64", Const, 0}, + {"Int8", Const, 0}, + {"Interface", Const, 0}, + {"Invalid", Const, 0}, + {"Kind", Type, 0}, + {"MakeChan", Func, 0}, + {"MakeFunc", Func, 1}, + {"MakeMap", Func, 0}, + {"MakeMapWithSize", Func, 9}, + {"MakeSlice", Func, 0}, + {"Map", Const, 0}, + {"MapIter", Type, 12}, + {"MapOf", Func, 1}, + {"Method", Type, 0}, + {"Method.Func", Field, 0}, + {"Method.Index", Field, 0}, + {"Method.Name", Field, 0}, + {"Method.PkgPath", Field, 0}, + {"Method.Type", Field, 0}, + {"New", Func, 0}, + {"NewAt", Func, 0}, + {"Pointer", Const, 18}, + {"PointerTo", Func, 18}, + {"Ptr", Const, 0}, + {"PtrTo", Func, 0}, + {"RecvDir", Const, 0}, + {"Select", Func, 1}, + {"SelectCase", Type, 1}, + {"SelectCase.Chan", Field, 1}, + {"SelectCase.Dir", Field, 1}, + {"SelectCase.Send", Field, 1}, + {"SelectDefault", Const, 1}, + {"SelectDir", Type, 1}, + {"SelectRecv", Const, 1}, + {"SelectSend", Const, 1}, + {"SendDir", Const, 0}, + {"Slice", Const, 0}, + {"SliceHeader", Type, 0}, + {"SliceHeader.Cap", Field, 0}, + {"SliceHeader.Data", Field, 0}, + {"SliceHeader.Len", Field, 0}, + {"SliceOf", Func, 1}, + {"String", Const, 0}, + {"StringHeader", Type, 0}, + {"StringHeader.Data", Field, 0}, + {"StringHeader.Len", Field, 0}, + {"Struct", Const, 0}, + {"StructField", Type, 0}, + {"StructField.Anonymous", Field, 0}, + {"StructField.Index", Field, 0}, + {"StructField.Name", Field, 0}, + {"StructField.Offset", Field, 0}, + {"StructField.PkgPath", Field, 0}, + {"StructField.Tag", Field, 0}, + {"StructField.Type", Field, 0}, + {"StructOf", Func, 7}, + {"StructTag", Type, 0}, + {"Swapper", Func, 8}, + {"Type", Type, 0}, + {"TypeFor", Func, 22}, + {"TypeOf", Func, 0}, + {"Uint", Const, 0}, + {"Uint16", Const, 0}, + {"Uint32", Const, 0}, + {"Uint64", Const, 0}, + {"Uint8", Const, 0}, + {"Uintptr", Const, 0}, + {"UnsafePointer", Const, 0}, + {"Value", Type, 0}, + {"ValueError", Type, 0}, + {"ValueError.Kind", Field, 0}, + {"ValueError.Method", Field, 0}, + {"ValueOf", Func, 0}, + {"VisibleFields", Func, 17}, + {"Zero", Func, 0}, + }, + "regexp": { + {"(*Regexp).Copy", Method, 6}, + {"(*Regexp).Expand", Method, 0}, + {"(*Regexp).ExpandString", Method, 0}, + {"(*Regexp).Find", Method, 0}, + {"(*Regexp).FindAll", Method, 0}, + {"(*Regexp).FindAllIndex", Method, 0}, + {"(*Regexp).FindAllString", Method, 0}, + {"(*Regexp).FindAllStringIndex", Method, 0}, + {"(*Regexp).FindAllStringSubmatch", Method, 0}, + {"(*Regexp).FindAllStringSubmatchIndex", Method, 0}, + {"(*Regexp).FindAllSubmatch", Method, 0}, + {"(*Regexp).FindAllSubmatchIndex", Method, 0}, + {"(*Regexp).FindIndex", Method, 0}, + {"(*Regexp).FindReaderIndex", Method, 0}, + {"(*Regexp).FindReaderSubmatchIndex", Method, 0}, + {"(*Regexp).FindString", Method, 0}, + {"(*Regexp).FindStringIndex", Method, 0}, + {"(*Regexp).FindStringSubmatch", Method, 0}, + {"(*Regexp).FindStringSubmatchIndex", Method, 0}, + {"(*Regexp).FindSubmatch", Method, 0}, + {"(*Regexp).FindSubmatchIndex", Method, 0}, + {"(*Regexp).LiteralPrefix", Method, 0}, + {"(*Regexp).Longest", Method, 1}, + {"(*Regexp).MarshalText", Method, 21}, + {"(*Regexp).Match", Method, 0}, + {"(*Regexp).MatchReader", Method, 0}, + {"(*Regexp).MatchString", Method, 0}, + {"(*Regexp).NumSubexp", Method, 0}, + {"(*Regexp).ReplaceAll", Method, 0}, + {"(*Regexp).ReplaceAllFunc", Method, 0}, + {"(*Regexp).ReplaceAllLiteral", Method, 0}, + {"(*Regexp).ReplaceAllLiteralString", Method, 0}, + {"(*Regexp).ReplaceAllString", Method, 0}, + {"(*Regexp).ReplaceAllStringFunc", Method, 0}, + {"(*Regexp).Split", Method, 1}, + {"(*Regexp).String", Method, 0}, + {"(*Regexp).SubexpIndex", Method, 15}, + {"(*Regexp).SubexpNames", Method, 0}, + {"(*Regexp).UnmarshalText", Method, 21}, + {"Compile", Func, 0}, + {"CompilePOSIX", Func, 0}, + {"Match", Func, 0}, + {"MatchReader", Func, 0}, + {"MatchString", Func, 0}, + {"MustCompile", Func, 0}, + {"MustCompilePOSIX", Func, 0}, + {"QuoteMeta", Func, 0}, + {"Regexp", Type, 0}, + }, + "regexp/syntax": { + {"(*Error).Error", Method, 0}, + {"(*Inst).MatchEmptyWidth", Method, 0}, + {"(*Inst).MatchRune", Method, 0}, + {"(*Inst).MatchRunePos", Method, 3}, + {"(*Inst).String", Method, 0}, + {"(*Prog).Prefix", Method, 0}, + {"(*Prog).StartCond", Method, 0}, + {"(*Prog).String", Method, 0}, + {"(*Regexp).CapNames", Method, 0}, + {"(*Regexp).Equal", Method, 0}, + {"(*Regexp).MaxCap", Method, 0}, + {"(*Regexp).Simplify", Method, 0}, + {"(*Regexp).String", Method, 0}, + {"(ErrorCode).String", Method, 0}, + {"(InstOp).String", Method, 3}, + {"(Op).String", Method, 11}, + {"ClassNL", Const, 0}, + {"Compile", Func, 0}, + {"DotNL", Const, 0}, + {"EmptyBeginLine", Const, 0}, + {"EmptyBeginText", Const, 0}, + {"EmptyEndLine", Const, 0}, + {"EmptyEndText", Const, 0}, + {"EmptyNoWordBoundary", Const, 0}, + {"EmptyOp", Type, 0}, + {"EmptyOpContext", Func, 0}, + {"EmptyWordBoundary", Const, 0}, + {"ErrInternalError", Const, 0}, + {"ErrInvalidCharClass", Const, 0}, + {"ErrInvalidCharRange", Const, 0}, + {"ErrInvalidEscape", Const, 0}, + {"ErrInvalidNamedCapture", Const, 0}, + {"ErrInvalidPerlOp", Const, 0}, + {"ErrInvalidRepeatOp", Const, 0}, + {"ErrInvalidRepeatSize", Const, 0}, + {"ErrInvalidUTF8", Const, 0}, + {"ErrLarge", Const, 20}, + {"ErrMissingBracket", Const, 0}, + {"ErrMissingParen", Const, 0}, + {"ErrMissingRepeatArgument", Const, 0}, + {"ErrNestingDepth", Const, 19}, + {"ErrTrailingBackslash", Const, 0}, + {"ErrUnexpectedParen", Const, 1}, + {"Error", Type, 0}, + {"Error.Code", Field, 0}, + {"Error.Expr", Field, 0}, + {"ErrorCode", Type, 0}, + {"Flags", Type, 0}, + {"FoldCase", Const, 0}, + {"Inst", Type, 0}, + {"Inst.Arg", Field, 0}, + {"Inst.Op", Field, 0}, + {"Inst.Out", Field, 0}, + {"Inst.Rune", Field, 0}, + {"InstAlt", Const, 0}, + {"InstAltMatch", Const, 0}, + {"InstCapture", Const, 0}, + {"InstEmptyWidth", Const, 0}, + {"InstFail", Const, 0}, + {"InstMatch", Const, 0}, + {"InstNop", Const, 0}, + {"InstOp", Type, 0}, + {"InstRune", Const, 0}, + {"InstRune1", Const, 0}, + {"InstRuneAny", Const, 0}, + {"InstRuneAnyNotNL", Const, 0}, + {"IsWordChar", Func, 0}, + {"Literal", Const, 0}, + {"MatchNL", Const, 0}, + {"NonGreedy", Const, 0}, + {"OneLine", Const, 0}, + {"Op", Type, 0}, + {"OpAlternate", Const, 0}, + {"OpAnyChar", Const, 0}, + {"OpAnyCharNotNL", Const, 0}, + {"OpBeginLine", Const, 0}, + {"OpBeginText", Const, 0}, + {"OpCapture", Const, 0}, + {"OpCharClass", Const, 0}, + {"OpConcat", Const, 0}, + {"OpEmptyMatch", Const, 0}, + {"OpEndLine", Const, 0}, + {"OpEndText", Const, 0}, + {"OpLiteral", Const, 0}, + {"OpNoMatch", Const, 0}, + {"OpNoWordBoundary", Const, 0}, + {"OpPlus", Const, 0}, + {"OpQuest", Const, 0}, + {"OpRepeat", Const, 0}, + {"OpStar", Const, 0}, + {"OpWordBoundary", Const, 0}, + {"POSIX", Const, 0}, + {"Parse", Func, 0}, + {"Perl", Const, 0}, + {"PerlX", Const, 0}, + {"Prog", Type, 0}, + {"Prog.Inst", Field, 0}, + {"Prog.NumCap", Field, 0}, + {"Prog.Start", Field, 0}, + {"Regexp", Type, 0}, + {"Regexp.Cap", Field, 0}, + {"Regexp.Flags", Field, 0}, + {"Regexp.Max", Field, 0}, + {"Regexp.Min", Field, 0}, + {"Regexp.Name", Field, 0}, + {"Regexp.Op", Field, 0}, + {"Regexp.Rune", Field, 0}, + {"Regexp.Rune0", Field, 0}, + {"Regexp.Sub", Field, 0}, + {"Regexp.Sub0", Field, 0}, + {"Simple", Const, 0}, + {"UnicodeGroups", Const, 0}, + {"WasDollar", Const, 0}, + }, + "runtime": { + {"(*BlockProfileRecord).Stack", Method, 1}, + {"(*Frames).Next", Method, 7}, + {"(*Func).Entry", Method, 0}, + {"(*Func).FileLine", Method, 0}, + {"(*Func).Name", Method, 0}, + {"(*MemProfileRecord).InUseBytes", Method, 0}, + {"(*MemProfileRecord).InUseObjects", Method, 0}, + {"(*MemProfileRecord).Stack", Method, 0}, + {"(*PanicNilError).Error", Method, 21}, + {"(*PanicNilError).RuntimeError", Method, 21}, + {"(*Pinner).Pin", Method, 21}, + {"(*Pinner).Unpin", Method, 21}, + {"(*StackRecord).Stack", Method, 0}, + {"(*TypeAssertionError).Error", Method, 0}, + {"(*TypeAssertionError).RuntimeError", Method, 0}, + {"BlockProfile", Func, 1}, + {"BlockProfileRecord", Type, 1}, + {"BlockProfileRecord.Count", Field, 1}, + {"BlockProfileRecord.Cycles", Field, 1}, + {"BlockProfileRecord.StackRecord", Field, 1}, + {"Breakpoint", Func, 0}, + {"CPUProfile", Func, 0}, + {"Caller", Func, 0}, + {"Callers", Func, 0}, + {"CallersFrames", Func, 7}, + {"Compiler", Const, 0}, + {"Error", Type, 0}, + {"Frame", Type, 7}, + {"Frame.Entry", Field, 7}, + {"Frame.File", Field, 7}, + {"Frame.Func", Field, 7}, + {"Frame.Function", Field, 7}, + {"Frame.Line", Field, 7}, + {"Frame.PC", Field, 7}, + {"Frames", Type, 7}, + {"Func", Type, 0}, + {"FuncForPC", Func, 0}, + {"GC", Func, 0}, + {"GOARCH", Const, 0}, + {"GOMAXPROCS", Func, 0}, + {"GOOS", Const, 0}, + {"GOROOT", Func, 0}, + {"Goexit", Func, 0}, + {"GoroutineProfile", Func, 0}, + {"Gosched", Func, 0}, + {"KeepAlive", Func, 7}, + {"LockOSThread", Func, 0}, + {"MemProfile", Func, 0}, + {"MemProfileRate", Var, 0}, + {"MemProfileRecord", Type, 0}, + {"MemProfileRecord.AllocBytes", Field, 0}, + {"MemProfileRecord.AllocObjects", Field, 0}, + {"MemProfileRecord.FreeBytes", Field, 0}, + {"MemProfileRecord.FreeObjects", Field, 0}, + {"MemProfileRecord.Stack0", Field, 0}, + {"MemStats", Type, 0}, + {"MemStats.Alloc", Field, 0}, + {"MemStats.BuckHashSys", Field, 0}, + {"MemStats.BySize", Field, 0}, + {"MemStats.DebugGC", Field, 0}, + {"MemStats.EnableGC", Field, 0}, + {"MemStats.Frees", Field, 0}, + {"MemStats.GCCPUFraction", Field, 5}, + {"MemStats.GCSys", Field, 2}, + {"MemStats.HeapAlloc", Field, 0}, + {"MemStats.HeapIdle", Field, 0}, + {"MemStats.HeapInuse", Field, 0}, + {"MemStats.HeapObjects", Field, 0}, + {"MemStats.HeapReleased", Field, 0}, + {"MemStats.HeapSys", Field, 0}, + {"MemStats.LastGC", Field, 0}, + {"MemStats.Lookups", Field, 0}, + {"MemStats.MCacheInuse", Field, 0}, + {"MemStats.MCacheSys", Field, 0}, + {"MemStats.MSpanInuse", Field, 0}, + {"MemStats.MSpanSys", Field, 0}, + {"MemStats.Mallocs", Field, 0}, + {"MemStats.NextGC", Field, 0}, + {"MemStats.NumForcedGC", Field, 8}, + {"MemStats.NumGC", Field, 0}, + {"MemStats.OtherSys", Field, 2}, + {"MemStats.PauseEnd", Field, 4}, + {"MemStats.PauseNs", Field, 0}, + {"MemStats.PauseTotalNs", Field, 0}, + {"MemStats.StackInuse", Field, 0}, + {"MemStats.StackSys", Field, 0}, + {"MemStats.Sys", Field, 0}, + {"MemStats.TotalAlloc", Field, 0}, + {"MutexProfile", Func, 8}, + {"NumCPU", Func, 0}, + {"NumCgoCall", Func, 0}, + {"NumGoroutine", Func, 0}, + {"PanicNilError", Type, 21}, + {"Pinner", Type, 21}, + {"ReadMemStats", Func, 0}, + {"ReadTrace", Func, 5}, + {"SetBlockProfileRate", Func, 1}, + {"SetCPUProfileRate", Func, 0}, + {"SetCgoTraceback", Func, 7}, + {"SetFinalizer", Func, 0}, + {"SetMutexProfileFraction", Func, 8}, + {"Stack", Func, 0}, + {"StackRecord", Type, 0}, + {"StackRecord.Stack0", Field, 0}, + {"StartTrace", Func, 5}, + {"StopTrace", Func, 5}, + {"ThreadCreateProfile", Func, 0}, + {"TypeAssertionError", Type, 0}, + {"UnlockOSThread", Func, 0}, + {"Version", Func, 0}, + }, + "runtime/cgo": { + {"(Handle).Delete", Method, 17}, + {"(Handle).Value", Method, 17}, + {"Handle", Type, 17}, + {"Incomplete", Type, 20}, + {"NewHandle", Func, 17}, + }, + "runtime/coverage": { + {"ClearCounters", Func, 20}, + {"WriteCounters", Func, 20}, + {"WriteCountersDir", Func, 20}, + {"WriteMeta", Func, 20}, + {"WriteMetaDir", Func, 20}, + }, + "runtime/debug": { + {"(*BuildInfo).String", Method, 18}, + {"BuildInfo", Type, 12}, + {"BuildInfo.Deps", Field, 12}, + {"BuildInfo.GoVersion", Field, 18}, + {"BuildInfo.Main", Field, 12}, + {"BuildInfo.Path", Field, 12}, + {"BuildInfo.Settings", Field, 18}, + {"BuildSetting", Type, 18}, + {"BuildSetting.Key", Field, 18}, + {"BuildSetting.Value", Field, 18}, + {"FreeOSMemory", Func, 1}, + {"GCStats", Type, 1}, + {"GCStats.LastGC", Field, 1}, + {"GCStats.NumGC", Field, 1}, + {"GCStats.Pause", Field, 1}, + {"GCStats.PauseEnd", Field, 4}, + {"GCStats.PauseQuantiles", Field, 1}, + {"GCStats.PauseTotal", Field, 1}, + {"Module", Type, 12}, + {"Module.Path", Field, 12}, + {"Module.Replace", Field, 12}, + {"Module.Sum", Field, 12}, + {"Module.Version", Field, 12}, + {"ParseBuildInfo", Func, 18}, + {"PrintStack", Func, 0}, + {"ReadBuildInfo", Func, 12}, + {"ReadGCStats", Func, 1}, + {"SetGCPercent", Func, 1}, + {"SetMaxStack", Func, 2}, + {"SetMaxThreads", Func, 2}, + {"SetMemoryLimit", Func, 19}, + {"SetPanicOnFault", Func, 3}, + {"SetTraceback", Func, 6}, + {"Stack", Func, 0}, + {"WriteHeapDump", Func, 3}, + }, + "runtime/metrics": { + {"(Value).Float64", Method, 16}, + {"(Value).Float64Histogram", Method, 16}, + {"(Value).Kind", Method, 16}, + {"(Value).Uint64", Method, 16}, + {"All", Func, 16}, + {"Description", Type, 16}, + {"Description.Cumulative", Field, 16}, + {"Description.Description", Field, 16}, + {"Description.Kind", Field, 16}, + {"Description.Name", Field, 16}, + {"Float64Histogram", Type, 16}, + {"Float64Histogram.Buckets", Field, 16}, + {"Float64Histogram.Counts", Field, 16}, + {"KindBad", Const, 16}, + {"KindFloat64", Const, 16}, + {"KindFloat64Histogram", Const, 16}, + {"KindUint64", Const, 16}, + {"Read", Func, 16}, + {"Sample", Type, 16}, + {"Sample.Name", Field, 16}, + {"Sample.Value", Field, 16}, + {"Value", Type, 16}, + {"ValueKind", Type, 16}, + }, + "runtime/pprof": { + {"(*Profile).Add", Method, 0}, + {"(*Profile).Count", Method, 0}, + {"(*Profile).Name", Method, 0}, + {"(*Profile).Remove", Method, 0}, + {"(*Profile).WriteTo", Method, 0}, + {"Do", Func, 9}, + {"ForLabels", Func, 9}, + {"Label", Func, 9}, + {"LabelSet", Type, 9}, + {"Labels", Func, 9}, + {"Lookup", Func, 0}, + {"NewProfile", Func, 0}, + {"Profile", Type, 0}, + {"Profiles", Func, 0}, + {"SetGoroutineLabels", Func, 9}, + {"StartCPUProfile", Func, 0}, + {"StopCPUProfile", Func, 0}, + {"WithLabels", Func, 9}, + {"WriteHeapProfile", Func, 0}, + }, + "runtime/trace": { + {"(*Region).End", Method, 11}, + {"(*Task).End", Method, 11}, + {"IsEnabled", Func, 11}, + {"Log", Func, 11}, + {"Logf", Func, 11}, + {"NewTask", Func, 11}, + {"Region", Type, 11}, + {"Start", Func, 5}, + {"StartRegion", Func, 11}, + {"Stop", Func, 5}, + {"Task", Type, 11}, + {"WithRegion", Func, 11}, + }, + "slices": { + {"BinarySearch", Func, 21}, + {"BinarySearchFunc", Func, 21}, + {"Clip", Func, 21}, + {"Clone", Func, 21}, + {"Compact", Func, 21}, + {"CompactFunc", Func, 21}, + {"Compare", Func, 21}, + {"CompareFunc", Func, 21}, + {"Concat", Func, 22}, + {"Contains", Func, 21}, + {"ContainsFunc", Func, 21}, + {"Delete", Func, 21}, + {"DeleteFunc", Func, 21}, + {"Equal", Func, 21}, + {"EqualFunc", Func, 21}, + {"Grow", Func, 21}, + {"Index", Func, 21}, + {"IndexFunc", Func, 21}, + {"Insert", Func, 21}, + {"IsSorted", Func, 21}, + {"IsSortedFunc", Func, 21}, + {"Max", Func, 21}, + {"MaxFunc", Func, 21}, + {"Min", Func, 21}, + {"MinFunc", Func, 21}, + {"Replace", Func, 21}, + {"Reverse", Func, 21}, + {"Sort", Func, 21}, + {"SortFunc", Func, 21}, + {"SortStableFunc", Func, 21}, + }, + "sort": { + {"(Float64Slice).Len", Method, 0}, + {"(Float64Slice).Less", Method, 0}, + {"(Float64Slice).Search", Method, 0}, + {"(Float64Slice).Sort", Method, 0}, + {"(Float64Slice).Swap", Method, 0}, + {"(IntSlice).Len", Method, 0}, + {"(IntSlice).Less", Method, 0}, + {"(IntSlice).Search", Method, 0}, + {"(IntSlice).Sort", Method, 0}, + {"(IntSlice).Swap", Method, 0}, + {"(StringSlice).Len", Method, 0}, + {"(StringSlice).Less", Method, 0}, + {"(StringSlice).Search", Method, 0}, + {"(StringSlice).Sort", Method, 0}, + {"(StringSlice).Swap", Method, 0}, + {"Find", Func, 19}, + {"Float64Slice", Type, 0}, + {"Float64s", Func, 0}, + {"Float64sAreSorted", Func, 0}, + {"IntSlice", Type, 0}, + {"Interface", Type, 0}, + {"Ints", Func, 0}, + {"IntsAreSorted", Func, 0}, + {"IsSorted", Func, 0}, + {"Reverse", Func, 1}, + {"Search", Func, 0}, + {"SearchFloat64s", Func, 0}, + {"SearchInts", Func, 0}, + {"SearchStrings", Func, 0}, + {"Slice", Func, 8}, + {"SliceIsSorted", Func, 8}, + {"SliceStable", Func, 8}, + {"Sort", Func, 0}, + {"Stable", Func, 2}, + {"StringSlice", Type, 0}, + {"Strings", Func, 0}, + {"StringsAreSorted", Func, 0}, + }, + "strconv": { + {"(*NumError).Error", Method, 0}, + {"(*NumError).Unwrap", Method, 14}, + {"AppendBool", Func, 0}, + {"AppendFloat", Func, 0}, + {"AppendInt", Func, 0}, + {"AppendQuote", Func, 0}, + {"AppendQuoteRune", Func, 0}, + {"AppendQuoteRuneToASCII", Func, 0}, + {"AppendQuoteRuneToGraphic", Func, 6}, + {"AppendQuoteToASCII", Func, 0}, + {"AppendQuoteToGraphic", Func, 6}, + {"AppendUint", Func, 0}, + {"Atoi", Func, 0}, + {"CanBackquote", Func, 0}, + {"ErrRange", Var, 0}, + {"ErrSyntax", Var, 0}, + {"FormatBool", Func, 0}, + {"FormatComplex", Func, 15}, + {"FormatFloat", Func, 0}, + {"FormatInt", Func, 0}, + {"FormatUint", Func, 0}, + {"IntSize", Const, 0}, + {"IsGraphic", Func, 6}, + {"IsPrint", Func, 0}, + {"Itoa", Func, 0}, + {"NumError", Type, 0}, + {"NumError.Err", Field, 0}, + {"NumError.Func", Field, 0}, + {"NumError.Num", Field, 0}, + {"ParseBool", Func, 0}, + {"ParseComplex", Func, 15}, + {"ParseFloat", Func, 0}, + {"ParseInt", Func, 0}, + {"ParseUint", Func, 0}, + {"Quote", Func, 0}, + {"QuoteRune", Func, 0}, + {"QuoteRuneToASCII", Func, 0}, + {"QuoteRuneToGraphic", Func, 6}, + {"QuoteToASCII", Func, 0}, + {"QuoteToGraphic", Func, 6}, + {"QuotedPrefix", Func, 17}, + {"Unquote", Func, 0}, + {"UnquoteChar", Func, 0}, + }, + "strings": { + {"(*Builder).Cap", Method, 12}, + {"(*Builder).Grow", Method, 10}, + {"(*Builder).Len", Method, 10}, + {"(*Builder).Reset", Method, 10}, + {"(*Builder).String", Method, 10}, + {"(*Builder).Write", Method, 10}, + {"(*Builder).WriteByte", Method, 10}, + {"(*Builder).WriteRune", Method, 10}, + {"(*Builder).WriteString", Method, 10}, + {"(*Reader).Len", Method, 0}, + {"(*Reader).Read", Method, 0}, + {"(*Reader).ReadAt", Method, 0}, + {"(*Reader).ReadByte", Method, 0}, + {"(*Reader).ReadRune", Method, 0}, + {"(*Reader).Reset", Method, 7}, + {"(*Reader).Seek", Method, 0}, + {"(*Reader).Size", Method, 5}, + {"(*Reader).UnreadByte", Method, 0}, + {"(*Reader).UnreadRune", Method, 0}, + {"(*Reader).WriteTo", Method, 1}, + {"(*Replacer).Replace", Method, 0}, + {"(*Replacer).WriteString", Method, 0}, + {"Builder", Type, 10}, + {"Clone", Func, 18}, + {"Compare", Func, 5}, + {"Contains", Func, 0}, + {"ContainsAny", Func, 0}, + {"ContainsFunc", Func, 21}, + {"ContainsRune", Func, 0}, + {"Count", Func, 0}, + {"Cut", Func, 18}, + {"CutPrefix", Func, 20}, + {"CutSuffix", Func, 20}, + {"EqualFold", Func, 0}, + {"Fields", Func, 0}, + {"FieldsFunc", Func, 0}, + {"HasPrefix", Func, 0}, + {"HasSuffix", Func, 0}, + {"Index", Func, 0}, + {"IndexAny", Func, 0}, + {"IndexByte", Func, 2}, + {"IndexFunc", Func, 0}, + {"IndexRune", Func, 0}, + {"Join", Func, 0}, + {"LastIndex", Func, 0}, + {"LastIndexAny", Func, 0}, + {"LastIndexByte", Func, 5}, + {"LastIndexFunc", Func, 0}, + {"Map", Func, 0}, + {"NewReader", Func, 0}, + {"NewReplacer", Func, 0}, + {"Reader", Type, 0}, + {"Repeat", Func, 0}, + {"Replace", Func, 0}, + {"ReplaceAll", Func, 12}, + {"Replacer", Type, 0}, + {"Split", Func, 0}, + {"SplitAfter", Func, 0}, + {"SplitAfterN", Func, 0}, + {"SplitN", Func, 0}, + {"Title", Func, 0}, + {"ToLower", Func, 0}, + {"ToLowerSpecial", Func, 0}, + {"ToTitle", Func, 0}, + {"ToTitleSpecial", Func, 0}, + {"ToUpper", Func, 0}, + {"ToUpperSpecial", Func, 0}, + {"ToValidUTF8", Func, 13}, + {"Trim", Func, 0}, + {"TrimFunc", Func, 0}, + {"TrimLeft", Func, 0}, + {"TrimLeftFunc", Func, 0}, + {"TrimPrefix", Func, 1}, + {"TrimRight", Func, 0}, + {"TrimRightFunc", Func, 0}, + {"TrimSpace", Func, 0}, + {"TrimSuffix", Func, 1}, + }, + "sync": { + {"(*Cond).Broadcast", Method, 0}, + {"(*Cond).Signal", Method, 0}, + {"(*Cond).Wait", Method, 0}, + {"(*Map).CompareAndDelete", Method, 20}, + {"(*Map).CompareAndSwap", Method, 20}, + {"(*Map).Delete", Method, 9}, + {"(*Map).Load", Method, 9}, + {"(*Map).LoadAndDelete", Method, 15}, + {"(*Map).LoadOrStore", Method, 9}, + {"(*Map).Range", Method, 9}, + {"(*Map).Store", Method, 9}, + {"(*Map).Swap", Method, 20}, + {"(*Mutex).Lock", Method, 0}, + {"(*Mutex).TryLock", Method, 18}, + {"(*Mutex).Unlock", Method, 0}, + {"(*Once).Do", Method, 0}, + {"(*Pool).Get", Method, 3}, + {"(*Pool).Put", Method, 3}, + {"(*RWMutex).Lock", Method, 0}, + {"(*RWMutex).RLock", Method, 0}, + {"(*RWMutex).RLocker", Method, 0}, + {"(*RWMutex).RUnlock", Method, 0}, + {"(*RWMutex).TryLock", Method, 18}, + {"(*RWMutex).TryRLock", Method, 18}, + {"(*RWMutex).Unlock", Method, 0}, + {"(*WaitGroup).Add", Method, 0}, + {"(*WaitGroup).Done", Method, 0}, + {"(*WaitGroup).Wait", Method, 0}, + {"Cond", Type, 0}, + {"Cond.L", Field, 0}, + {"Locker", Type, 0}, + {"Map", Type, 9}, + {"Mutex", Type, 0}, + {"NewCond", Func, 0}, + {"Once", Type, 0}, + {"OnceFunc", Func, 21}, + {"OnceValue", Func, 21}, + {"OnceValues", Func, 21}, + {"Pool", Type, 3}, + {"Pool.New", Field, 3}, + {"RWMutex", Type, 0}, + {"WaitGroup", Type, 0}, + }, + "sync/atomic": { + {"(*Bool).CompareAndSwap", Method, 19}, + {"(*Bool).Load", Method, 19}, + {"(*Bool).Store", Method, 19}, + {"(*Bool).Swap", Method, 19}, + {"(*Int32).Add", Method, 19}, + {"(*Int32).CompareAndSwap", Method, 19}, + {"(*Int32).Load", Method, 19}, + {"(*Int32).Store", Method, 19}, + {"(*Int32).Swap", Method, 19}, + {"(*Int64).Add", Method, 19}, + {"(*Int64).CompareAndSwap", Method, 19}, + {"(*Int64).Load", Method, 19}, + {"(*Int64).Store", Method, 19}, + {"(*Int64).Swap", Method, 19}, + {"(*Pointer).CompareAndSwap", Method, 19}, + {"(*Pointer).Load", Method, 19}, + {"(*Pointer).Store", Method, 19}, + {"(*Pointer).Swap", Method, 19}, + {"(*Uint32).Add", Method, 19}, + {"(*Uint32).CompareAndSwap", Method, 19}, + {"(*Uint32).Load", Method, 19}, + {"(*Uint32).Store", Method, 19}, + {"(*Uint32).Swap", Method, 19}, + {"(*Uint64).Add", Method, 19}, + {"(*Uint64).CompareAndSwap", Method, 19}, + {"(*Uint64).Load", Method, 19}, + {"(*Uint64).Store", Method, 19}, + {"(*Uint64).Swap", Method, 19}, + {"(*Uintptr).Add", Method, 19}, + {"(*Uintptr).CompareAndSwap", Method, 19}, + {"(*Uintptr).Load", Method, 19}, + {"(*Uintptr).Store", Method, 19}, + {"(*Uintptr).Swap", Method, 19}, + {"(*Value).CompareAndSwap", Method, 17}, + {"(*Value).Load", Method, 4}, + {"(*Value).Store", Method, 4}, + {"(*Value).Swap", Method, 17}, + {"AddInt32", Func, 0}, + {"AddInt64", Func, 0}, + {"AddUint32", Func, 0}, + {"AddUint64", Func, 0}, + {"AddUintptr", Func, 0}, + {"Bool", Type, 19}, + {"CompareAndSwapInt32", Func, 0}, + {"CompareAndSwapInt64", Func, 0}, + {"CompareAndSwapPointer", Func, 0}, + {"CompareAndSwapUint32", Func, 0}, + {"CompareAndSwapUint64", Func, 0}, + {"CompareAndSwapUintptr", Func, 0}, + {"Int32", Type, 19}, + {"Int64", Type, 19}, + {"LoadInt32", Func, 0}, + {"LoadInt64", Func, 0}, + {"LoadPointer", Func, 0}, + {"LoadUint32", Func, 0}, + {"LoadUint64", Func, 0}, + {"LoadUintptr", Func, 0}, + {"Pointer", Type, 19}, + {"StoreInt32", Func, 0}, + {"StoreInt64", Func, 0}, + {"StorePointer", Func, 0}, + {"StoreUint32", Func, 0}, + {"StoreUint64", Func, 0}, + {"StoreUintptr", Func, 0}, + {"SwapInt32", Func, 2}, + {"SwapInt64", Func, 2}, + {"SwapPointer", Func, 2}, + {"SwapUint32", Func, 2}, + {"SwapUint64", Func, 2}, + {"SwapUintptr", Func, 2}, + {"Uint32", Type, 19}, + {"Uint64", Type, 19}, + {"Uintptr", Type, 19}, + {"Value", Type, 4}, + }, + "syscall": { + {"(*Cmsghdr).SetLen", Method, 0}, + {"(*DLL).FindProc", Method, 0}, + {"(*DLL).MustFindProc", Method, 0}, + {"(*DLL).Release", Method, 0}, + {"(*DLLError).Error", Method, 0}, + {"(*DLLError).Unwrap", Method, 16}, + {"(*Filetime).Nanoseconds", Method, 0}, + {"(*Iovec).SetLen", Method, 0}, + {"(*LazyDLL).Handle", Method, 0}, + {"(*LazyDLL).Load", Method, 0}, + {"(*LazyDLL).NewProc", Method, 0}, + {"(*LazyProc).Addr", Method, 0}, + {"(*LazyProc).Call", Method, 0}, + {"(*LazyProc).Find", Method, 0}, + {"(*Msghdr).SetControllen", Method, 0}, + {"(*Proc).Addr", Method, 0}, + {"(*Proc).Call", Method, 0}, + {"(*PtraceRegs).PC", Method, 0}, + {"(*PtraceRegs).SetPC", Method, 0}, + {"(*RawSockaddrAny).Sockaddr", Method, 0}, + {"(*SID).Copy", Method, 0}, + {"(*SID).Len", Method, 0}, + {"(*SID).LookupAccount", Method, 0}, + {"(*SID).String", Method, 0}, + {"(*Timespec).Nano", Method, 0}, + {"(*Timespec).Unix", Method, 0}, + {"(*Timeval).Nano", Method, 0}, + {"(*Timeval).Nanoseconds", Method, 0}, + {"(*Timeval).Unix", Method, 0}, + {"(Errno).Error", Method, 0}, + {"(Errno).Is", Method, 13}, + {"(Errno).Temporary", Method, 0}, + {"(Errno).Timeout", Method, 0}, + {"(Signal).Signal", Method, 0}, + {"(Signal).String", Method, 0}, + {"(Token).Close", Method, 0}, + {"(Token).GetTokenPrimaryGroup", Method, 0}, + {"(Token).GetTokenUser", Method, 0}, + {"(Token).GetUserProfileDirectory", Method, 0}, + {"(WaitStatus).Continued", Method, 0}, + {"(WaitStatus).CoreDump", Method, 0}, + {"(WaitStatus).ExitStatus", Method, 0}, + {"(WaitStatus).Exited", Method, 0}, + {"(WaitStatus).Signal", Method, 0}, + {"(WaitStatus).Signaled", Method, 0}, + {"(WaitStatus).StopSignal", Method, 0}, + {"(WaitStatus).Stopped", Method, 0}, + {"(WaitStatus).TrapCause", Method, 0}, + {"AF_ALG", Const, 0}, + {"AF_APPLETALK", Const, 0}, + {"AF_ARP", Const, 0}, + {"AF_ASH", Const, 0}, + {"AF_ATM", Const, 0}, + {"AF_ATMPVC", Const, 0}, + {"AF_ATMSVC", Const, 0}, + {"AF_AX25", Const, 0}, + {"AF_BLUETOOTH", Const, 0}, + {"AF_BRIDGE", Const, 0}, + {"AF_CAIF", Const, 0}, + {"AF_CAN", Const, 0}, + {"AF_CCITT", Const, 0}, + {"AF_CHAOS", Const, 0}, + {"AF_CNT", Const, 0}, + {"AF_COIP", Const, 0}, + {"AF_DATAKIT", Const, 0}, + {"AF_DECnet", Const, 0}, + {"AF_DLI", Const, 0}, + {"AF_E164", Const, 0}, + {"AF_ECMA", Const, 0}, + {"AF_ECONET", Const, 0}, + {"AF_ENCAP", Const, 1}, + {"AF_FILE", Const, 0}, + {"AF_HYLINK", Const, 0}, + {"AF_IEEE80211", Const, 0}, + {"AF_IEEE802154", Const, 0}, + {"AF_IMPLINK", Const, 0}, + {"AF_INET", Const, 0}, + {"AF_INET6", Const, 0}, + {"AF_INET6_SDP", Const, 3}, + {"AF_INET_SDP", Const, 3}, + {"AF_IPX", Const, 0}, + {"AF_IRDA", Const, 0}, + {"AF_ISDN", Const, 0}, + {"AF_ISO", Const, 0}, + {"AF_IUCV", Const, 0}, + {"AF_KEY", Const, 0}, + {"AF_LAT", Const, 0}, + {"AF_LINK", Const, 0}, + {"AF_LLC", Const, 0}, + {"AF_LOCAL", Const, 0}, + {"AF_MAX", Const, 0}, + {"AF_MPLS", Const, 1}, + {"AF_NATM", Const, 0}, + {"AF_NDRV", Const, 0}, + {"AF_NETBEUI", Const, 0}, + {"AF_NETBIOS", Const, 0}, + {"AF_NETGRAPH", Const, 0}, + {"AF_NETLINK", Const, 0}, + {"AF_NETROM", Const, 0}, + {"AF_NS", Const, 0}, + {"AF_OROUTE", Const, 1}, + {"AF_OSI", Const, 0}, + {"AF_PACKET", Const, 0}, + {"AF_PHONET", Const, 0}, + {"AF_PPP", Const, 0}, + {"AF_PPPOX", Const, 0}, + {"AF_PUP", Const, 0}, + {"AF_RDS", Const, 0}, + {"AF_RESERVED_36", Const, 0}, + {"AF_ROSE", Const, 0}, + {"AF_ROUTE", Const, 0}, + {"AF_RXRPC", Const, 0}, + {"AF_SCLUSTER", Const, 0}, + {"AF_SECURITY", Const, 0}, + {"AF_SIP", Const, 0}, + {"AF_SLOW", Const, 0}, + {"AF_SNA", Const, 0}, + {"AF_SYSTEM", Const, 0}, + {"AF_TIPC", Const, 0}, + {"AF_UNIX", Const, 0}, + {"AF_UNSPEC", Const, 0}, + {"AF_UTUN", Const, 16}, + {"AF_VENDOR00", Const, 0}, + {"AF_VENDOR01", Const, 0}, + {"AF_VENDOR02", Const, 0}, + {"AF_VENDOR03", Const, 0}, + {"AF_VENDOR04", Const, 0}, + {"AF_VENDOR05", Const, 0}, + {"AF_VENDOR06", Const, 0}, + {"AF_VENDOR07", Const, 0}, + {"AF_VENDOR08", Const, 0}, + {"AF_VENDOR09", Const, 0}, + {"AF_VENDOR10", Const, 0}, + {"AF_VENDOR11", Const, 0}, + {"AF_VENDOR12", Const, 0}, + {"AF_VENDOR13", Const, 0}, + {"AF_VENDOR14", Const, 0}, + {"AF_VENDOR15", Const, 0}, + {"AF_VENDOR16", Const, 0}, + {"AF_VENDOR17", Const, 0}, + {"AF_VENDOR18", Const, 0}, + {"AF_VENDOR19", Const, 0}, + {"AF_VENDOR20", Const, 0}, + {"AF_VENDOR21", Const, 0}, + {"AF_VENDOR22", Const, 0}, + {"AF_VENDOR23", Const, 0}, + {"AF_VENDOR24", Const, 0}, + {"AF_VENDOR25", Const, 0}, + {"AF_VENDOR26", Const, 0}, + {"AF_VENDOR27", Const, 0}, + {"AF_VENDOR28", Const, 0}, + {"AF_VENDOR29", Const, 0}, + {"AF_VENDOR30", Const, 0}, + {"AF_VENDOR31", Const, 0}, + {"AF_VENDOR32", Const, 0}, + {"AF_VENDOR33", Const, 0}, + {"AF_VENDOR34", Const, 0}, + {"AF_VENDOR35", Const, 0}, + {"AF_VENDOR36", Const, 0}, + {"AF_VENDOR37", Const, 0}, + {"AF_VENDOR38", Const, 0}, + {"AF_VENDOR39", Const, 0}, + {"AF_VENDOR40", Const, 0}, + {"AF_VENDOR41", Const, 0}, + {"AF_VENDOR42", Const, 0}, + {"AF_VENDOR43", Const, 0}, + {"AF_VENDOR44", Const, 0}, + {"AF_VENDOR45", Const, 0}, + {"AF_VENDOR46", Const, 0}, + {"AF_VENDOR47", Const, 0}, + {"AF_WANPIPE", Const, 0}, + {"AF_X25", Const, 0}, + {"AI_CANONNAME", Const, 1}, + {"AI_NUMERICHOST", Const, 1}, + {"AI_PASSIVE", Const, 1}, + {"APPLICATION_ERROR", Const, 0}, + {"ARPHRD_ADAPT", Const, 0}, + {"ARPHRD_APPLETLK", Const, 0}, + {"ARPHRD_ARCNET", Const, 0}, + {"ARPHRD_ASH", Const, 0}, + {"ARPHRD_ATM", Const, 0}, + {"ARPHRD_AX25", Const, 0}, + {"ARPHRD_BIF", Const, 0}, + {"ARPHRD_CHAOS", Const, 0}, + {"ARPHRD_CISCO", Const, 0}, + {"ARPHRD_CSLIP", Const, 0}, + {"ARPHRD_CSLIP6", Const, 0}, + {"ARPHRD_DDCMP", Const, 0}, + {"ARPHRD_DLCI", Const, 0}, + {"ARPHRD_ECONET", Const, 0}, + {"ARPHRD_EETHER", Const, 0}, + {"ARPHRD_ETHER", Const, 0}, + {"ARPHRD_EUI64", Const, 0}, + {"ARPHRD_FCAL", Const, 0}, + {"ARPHRD_FCFABRIC", Const, 0}, + {"ARPHRD_FCPL", Const, 0}, + {"ARPHRD_FCPP", Const, 0}, + {"ARPHRD_FDDI", Const, 0}, + {"ARPHRD_FRAD", Const, 0}, + {"ARPHRD_FRELAY", Const, 1}, + {"ARPHRD_HDLC", Const, 0}, + {"ARPHRD_HIPPI", Const, 0}, + {"ARPHRD_HWX25", Const, 0}, + {"ARPHRD_IEEE1394", Const, 0}, + {"ARPHRD_IEEE802", Const, 0}, + {"ARPHRD_IEEE80211", Const, 0}, + {"ARPHRD_IEEE80211_PRISM", Const, 0}, + {"ARPHRD_IEEE80211_RADIOTAP", Const, 0}, + {"ARPHRD_IEEE802154", Const, 0}, + {"ARPHRD_IEEE802154_PHY", Const, 0}, + {"ARPHRD_IEEE802_TR", Const, 0}, + {"ARPHRD_INFINIBAND", Const, 0}, + {"ARPHRD_IPDDP", Const, 0}, + {"ARPHRD_IPGRE", Const, 0}, + {"ARPHRD_IRDA", Const, 0}, + {"ARPHRD_LAPB", Const, 0}, + {"ARPHRD_LOCALTLK", Const, 0}, + {"ARPHRD_LOOPBACK", Const, 0}, + {"ARPHRD_METRICOM", Const, 0}, + {"ARPHRD_NETROM", Const, 0}, + {"ARPHRD_NONE", Const, 0}, + {"ARPHRD_PIMREG", Const, 0}, + {"ARPHRD_PPP", Const, 0}, + {"ARPHRD_PRONET", Const, 0}, + {"ARPHRD_RAWHDLC", Const, 0}, + {"ARPHRD_ROSE", Const, 0}, + {"ARPHRD_RSRVD", Const, 0}, + {"ARPHRD_SIT", Const, 0}, + {"ARPHRD_SKIP", Const, 0}, + {"ARPHRD_SLIP", Const, 0}, + {"ARPHRD_SLIP6", Const, 0}, + {"ARPHRD_STRIP", Const, 1}, + {"ARPHRD_TUNNEL", Const, 0}, + {"ARPHRD_TUNNEL6", Const, 0}, + {"ARPHRD_VOID", Const, 0}, + {"ARPHRD_X25", Const, 0}, + {"AUTHTYPE_CLIENT", Const, 0}, + {"AUTHTYPE_SERVER", Const, 0}, + {"Accept", Func, 0}, + {"Accept4", Func, 1}, + {"AcceptEx", Func, 0}, + {"Access", Func, 0}, + {"Acct", Func, 0}, + {"AddrinfoW", Type, 1}, + {"AddrinfoW.Addr", Field, 1}, + {"AddrinfoW.Addrlen", Field, 1}, + {"AddrinfoW.Canonname", Field, 1}, + {"AddrinfoW.Family", Field, 1}, + {"AddrinfoW.Flags", Field, 1}, + {"AddrinfoW.Next", Field, 1}, + {"AddrinfoW.Protocol", Field, 1}, + {"AddrinfoW.Socktype", Field, 1}, + {"Adjtime", Func, 0}, + {"Adjtimex", Func, 0}, + {"AllThreadsSyscall", Func, 16}, + {"AllThreadsSyscall6", Func, 16}, + {"AttachLsf", Func, 0}, + {"B0", Const, 0}, + {"B1000000", Const, 0}, + {"B110", Const, 0}, + {"B115200", Const, 0}, + {"B1152000", Const, 0}, + {"B1200", Const, 0}, + {"B134", Const, 0}, + {"B14400", Const, 1}, + {"B150", Const, 0}, + {"B1500000", Const, 0}, + {"B1800", Const, 0}, + {"B19200", Const, 0}, + {"B200", Const, 0}, + {"B2000000", Const, 0}, + {"B230400", Const, 0}, + {"B2400", Const, 0}, + {"B2500000", Const, 0}, + {"B28800", Const, 1}, + {"B300", Const, 0}, + {"B3000000", Const, 0}, + {"B3500000", Const, 0}, + {"B38400", Const, 0}, + {"B4000000", Const, 0}, + {"B460800", Const, 0}, + {"B4800", Const, 0}, + {"B50", Const, 0}, + {"B500000", Const, 0}, + {"B57600", Const, 0}, + {"B576000", Const, 0}, + {"B600", Const, 0}, + {"B7200", Const, 1}, + {"B75", Const, 0}, + {"B76800", Const, 1}, + {"B921600", Const, 0}, + {"B9600", Const, 0}, + {"BASE_PROTOCOL", Const, 2}, + {"BIOCFEEDBACK", Const, 0}, + {"BIOCFLUSH", Const, 0}, + {"BIOCGBLEN", Const, 0}, + {"BIOCGDIRECTION", Const, 0}, + {"BIOCGDIRFILT", Const, 1}, + {"BIOCGDLT", Const, 0}, + {"BIOCGDLTLIST", Const, 0}, + {"BIOCGETBUFMODE", Const, 0}, + {"BIOCGETIF", Const, 0}, + {"BIOCGETZMAX", Const, 0}, + {"BIOCGFEEDBACK", Const, 1}, + {"BIOCGFILDROP", Const, 1}, + {"BIOCGHDRCMPLT", Const, 0}, + {"BIOCGRSIG", Const, 0}, + {"BIOCGRTIMEOUT", Const, 0}, + {"BIOCGSEESENT", Const, 0}, + {"BIOCGSTATS", Const, 0}, + {"BIOCGSTATSOLD", Const, 1}, + {"BIOCGTSTAMP", Const, 1}, + {"BIOCIMMEDIATE", Const, 0}, + {"BIOCLOCK", Const, 0}, + {"BIOCPROMISC", Const, 0}, + {"BIOCROTZBUF", Const, 0}, + {"BIOCSBLEN", Const, 0}, + {"BIOCSDIRECTION", Const, 0}, + {"BIOCSDIRFILT", Const, 1}, + {"BIOCSDLT", Const, 0}, + {"BIOCSETBUFMODE", Const, 0}, + {"BIOCSETF", Const, 0}, + {"BIOCSETFNR", Const, 0}, + {"BIOCSETIF", Const, 0}, + {"BIOCSETWF", Const, 0}, + {"BIOCSETZBUF", Const, 0}, + {"BIOCSFEEDBACK", Const, 1}, + {"BIOCSFILDROP", Const, 1}, + {"BIOCSHDRCMPLT", Const, 0}, + {"BIOCSRSIG", Const, 0}, + {"BIOCSRTIMEOUT", Const, 0}, + {"BIOCSSEESENT", Const, 0}, + {"BIOCSTCPF", Const, 1}, + {"BIOCSTSTAMP", Const, 1}, + {"BIOCSUDPF", Const, 1}, + {"BIOCVERSION", Const, 0}, + {"BPF_A", Const, 0}, + {"BPF_ABS", Const, 0}, + {"BPF_ADD", Const, 0}, + {"BPF_ALIGNMENT", Const, 0}, + {"BPF_ALIGNMENT32", Const, 1}, + {"BPF_ALU", Const, 0}, + {"BPF_AND", Const, 0}, + {"BPF_B", Const, 0}, + {"BPF_BUFMODE_BUFFER", Const, 0}, + {"BPF_BUFMODE_ZBUF", Const, 0}, + {"BPF_DFLTBUFSIZE", Const, 1}, + {"BPF_DIRECTION_IN", Const, 1}, + {"BPF_DIRECTION_OUT", Const, 1}, + {"BPF_DIV", Const, 0}, + {"BPF_H", Const, 0}, + {"BPF_IMM", Const, 0}, + {"BPF_IND", Const, 0}, + {"BPF_JA", Const, 0}, + {"BPF_JEQ", Const, 0}, + {"BPF_JGE", Const, 0}, + {"BPF_JGT", Const, 0}, + {"BPF_JMP", Const, 0}, + {"BPF_JSET", Const, 0}, + {"BPF_K", Const, 0}, + {"BPF_LD", Const, 0}, + {"BPF_LDX", Const, 0}, + {"BPF_LEN", Const, 0}, + {"BPF_LSH", Const, 0}, + {"BPF_MAJOR_VERSION", Const, 0}, + {"BPF_MAXBUFSIZE", Const, 0}, + {"BPF_MAXINSNS", Const, 0}, + {"BPF_MEM", Const, 0}, + {"BPF_MEMWORDS", Const, 0}, + {"BPF_MINBUFSIZE", Const, 0}, + {"BPF_MINOR_VERSION", Const, 0}, + {"BPF_MISC", Const, 0}, + {"BPF_MSH", Const, 0}, + {"BPF_MUL", Const, 0}, + {"BPF_NEG", Const, 0}, + {"BPF_OR", Const, 0}, + {"BPF_RELEASE", Const, 0}, + {"BPF_RET", Const, 0}, + {"BPF_RSH", Const, 0}, + {"BPF_ST", Const, 0}, + {"BPF_STX", Const, 0}, + {"BPF_SUB", Const, 0}, + {"BPF_TAX", Const, 0}, + {"BPF_TXA", Const, 0}, + {"BPF_T_BINTIME", Const, 1}, + {"BPF_T_BINTIME_FAST", Const, 1}, + {"BPF_T_BINTIME_MONOTONIC", Const, 1}, + {"BPF_T_BINTIME_MONOTONIC_FAST", Const, 1}, + {"BPF_T_FAST", Const, 1}, + {"BPF_T_FLAG_MASK", Const, 1}, + {"BPF_T_FORMAT_MASK", Const, 1}, + {"BPF_T_MICROTIME", Const, 1}, + {"BPF_T_MICROTIME_FAST", Const, 1}, + {"BPF_T_MICROTIME_MONOTONIC", Const, 1}, + {"BPF_T_MICROTIME_MONOTONIC_FAST", Const, 1}, + {"BPF_T_MONOTONIC", Const, 1}, + {"BPF_T_MONOTONIC_FAST", Const, 1}, + {"BPF_T_NANOTIME", Const, 1}, + {"BPF_T_NANOTIME_FAST", Const, 1}, + {"BPF_T_NANOTIME_MONOTONIC", Const, 1}, + {"BPF_T_NANOTIME_MONOTONIC_FAST", Const, 1}, + {"BPF_T_NONE", Const, 1}, + {"BPF_T_NORMAL", Const, 1}, + {"BPF_W", Const, 0}, + {"BPF_X", Const, 0}, + {"BRKINT", Const, 0}, + {"Bind", Func, 0}, + {"BindToDevice", Func, 0}, + {"BpfBuflen", Func, 0}, + {"BpfDatalink", Func, 0}, + {"BpfHdr", Type, 0}, + {"BpfHdr.Caplen", Field, 0}, + {"BpfHdr.Datalen", Field, 0}, + {"BpfHdr.Hdrlen", Field, 0}, + {"BpfHdr.Pad_cgo_0", Field, 0}, + {"BpfHdr.Tstamp", Field, 0}, + {"BpfHeadercmpl", Func, 0}, + {"BpfInsn", Type, 0}, + {"BpfInsn.Code", Field, 0}, + {"BpfInsn.Jf", Field, 0}, + {"BpfInsn.Jt", Field, 0}, + {"BpfInsn.K", Field, 0}, + {"BpfInterface", Func, 0}, + {"BpfJump", Func, 0}, + {"BpfProgram", Type, 0}, + {"BpfProgram.Insns", Field, 0}, + {"BpfProgram.Len", Field, 0}, + {"BpfProgram.Pad_cgo_0", Field, 0}, + {"BpfStat", Type, 0}, + {"BpfStat.Capt", Field, 2}, + {"BpfStat.Drop", Field, 0}, + {"BpfStat.Padding", Field, 2}, + {"BpfStat.Recv", Field, 0}, + {"BpfStats", Func, 0}, + {"BpfStmt", Func, 0}, + {"BpfTimeout", Func, 0}, + {"BpfTimeval", Type, 2}, + {"BpfTimeval.Sec", Field, 2}, + {"BpfTimeval.Usec", Field, 2}, + {"BpfVersion", Type, 0}, + {"BpfVersion.Major", Field, 0}, + {"BpfVersion.Minor", Field, 0}, + {"BpfZbuf", Type, 0}, + {"BpfZbuf.Bufa", Field, 0}, + {"BpfZbuf.Bufb", Field, 0}, + {"BpfZbuf.Buflen", Field, 0}, + {"BpfZbufHeader", Type, 0}, + {"BpfZbufHeader.Kernel_gen", Field, 0}, + {"BpfZbufHeader.Kernel_len", Field, 0}, + {"BpfZbufHeader.User_gen", Field, 0}, + {"BpfZbufHeader.X_bzh_pad", Field, 0}, + {"ByHandleFileInformation", Type, 0}, + {"ByHandleFileInformation.CreationTime", Field, 0}, + {"ByHandleFileInformation.FileAttributes", Field, 0}, + {"ByHandleFileInformation.FileIndexHigh", Field, 0}, + {"ByHandleFileInformation.FileIndexLow", Field, 0}, + {"ByHandleFileInformation.FileSizeHigh", Field, 0}, + {"ByHandleFileInformation.FileSizeLow", Field, 0}, + {"ByHandleFileInformation.LastAccessTime", Field, 0}, + {"ByHandleFileInformation.LastWriteTime", Field, 0}, + {"ByHandleFileInformation.NumberOfLinks", Field, 0}, + {"ByHandleFileInformation.VolumeSerialNumber", Field, 0}, + {"BytePtrFromString", Func, 1}, + {"ByteSliceFromString", Func, 1}, + {"CCR0_FLUSH", Const, 1}, + {"CERT_CHAIN_POLICY_AUTHENTICODE", Const, 0}, + {"CERT_CHAIN_POLICY_AUTHENTICODE_TS", Const, 0}, + {"CERT_CHAIN_POLICY_BASE", Const, 0}, + {"CERT_CHAIN_POLICY_BASIC_CONSTRAINTS", Const, 0}, + {"CERT_CHAIN_POLICY_EV", Const, 0}, + {"CERT_CHAIN_POLICY_MICROSOFT_ROOT", Const, 0}, + {"CERT_CHAIN_POLICY_NT_AUTH", Const, 0}, + {"CERT_CHAIN_POLICY_SSL", Const, 0}, + {"CERT_E_CN_NO_MATCH", Const, 0}, + {"CERT_E_EXPIRED", Const, 0}, + {"CERT_E_PURPOSE", Const, 0}, + {"CERT_E_ROLE", Const, 0}, + {"CERT_E_UNTRUSTEDROOT", Const, 0}, + {"CERT_STORE_ADD_ALWAYS", Const, 0}, + {"CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG", Const, 0}, + {"CERT_STORE_PROV_MEMORY", Const, 0}, + {"CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT", Const, 0}, + {"CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT", Const, 0}, + {"CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT", Const, 0}, + {"CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT", Const, 0}, + {"CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT", Const, 0}, + {"CERT_TRUST_INVALID_BASIC_CONSTRAINTS", Const, 0}, + {"CERT_TRUST_INVALID_EXTENSION", Const, 0}, + {"CERT_TRUST_INVALID_NAME_CONSTRAINTS", Const, 0}, + {"CERT_TRUST_INVALID_POLICY_CONSTRAINTS", Const, 0}, + {"CERT_TRUST_IS_CYCLIC", Const, 0}, + {"CERT_TRUST_IS_EXPLICIT_DISTRUST", Const, 0}, + {"CERT_TRUST_IS_NOT_SIGNATURE_VALID", Const, 0}, + {"CERT_TRUST_IS_NOT_TIME_VALID", Const, 0}, + {"CERT_TRUST_IS_NOT_VALID_FOR_USAGE", Const, 0}, + {"CERT_TRUST_IS_OFFLINE_REVOCATION", Const, 0}, + {"CERT_TRUST_IS_REVOKED", Const, 0}, + {"CERT_TRUST_IS_UNTRUSTED_ROOT", Const, 0}, + {"CERT_TRUST_NO_ERROR", Const, 0}, + {"CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY", Const, 0}, + {"CERT_TRUST_REVOCATION_STATUS_UNKNOWN", Const, 0}, + {"CFLUSH", Const, 1}, + {"CLOCAL", Const, 0}, + {"CLONE_CHILD_CLEARTID", Const, 2}, + {"CLONE_CHILD_SETTID", Const, 2}, + {"CLONE_CLEAR_SIGHAND", Const, 20}, + {"CLONE_CSIGNAL", Const, 3}, + {"CLONE_DETACHED", Const, 2}, + {"CLONE_FILES", Const, 2}, + {"CLONE_FS", Const, 2}, + {"CLONE_INTO_CGROUP", Const, 20}, + {"CLONE_IO", Const, 2}, + {"CLONE_NEWCGROUP", Const, 20}, + {"CLONE_NEWIPC", Const, 2}, + {"CLONE_NEWNET", Const, 2}, + {"CLONE_NEWNS", Const, 2}, + {"CLONE_NEWPID", Const, 2}, + {"CLONE_NEWTIME", Const, 20}, + {"CLONE_NEWUSER", Const, 2}, + {"CLONE_NEWUTS", Const, 2}, + {"CLONE_PARENT", Const, 2}, + {"CLONE_PARENT_SETTID", Const, 2}, + {"CLONE_PID", Const, 3}, + {"CLONE_PIDFD", Const, 20}, + {"CLONE_PTRACE", Const, 2}, + {"CLONE_SETTLS", Const, 2}, + {"CLONE_SIGHAND", Const, 2}, + {"CLONE_SYSVSEM", Const, 2}, + {"CLONE_THREAD", Const, 2}, + {"CLONE_UNTRACED", Const, 2}, + {"CLONE_VFORK", Const, 2}, + {"CLONE_VM", Const, 2}, + {"CPUID_CFLUSH", Const, 1}, + {"CREAD", Const, 0}, + {"CREATE_ALWAYS", Const, 0}, + {"CREATE_NEW", Const, 0}, + {"CREATE_NEW_PROCESS_GROUP", Const, 1}, + {"CREATE_UNICODE_ENVIRONMENT", Const, 0}, + {"CRYPT_DEFAULT_CONTAINER_OPTIONAL", Const, 0}, + {"CRYPT_DELETEKEYSET", Const, 0}, + {"CRYPT_MACHINE_KEYSET", Const, 0}, + {"CRYPT_NEWKEYSET", Const, 0}, + {"CRYPT_SILENT", Const, 0}, + {"CRYPT_VERIFYCONTEXT", Const, 0}, + {"CS5", Const, 0}, + {"CS6", Const, 0}, + {"CS7", Const, 0}, + {"CS8", Const, 0}, + {"CSIZE", Const, 0}, + {"CSTART", Const, 1}, + {"CSTATUS", Const, 1}, + {"CSTOP", Const, 1}, + {"CSTOPB", Const, 0}, + {"CSUSP", Const, 1}, + {"CTL_MAXNAME", Const, 0}, + {"CTL_NET", Const, 0}, + {"CTL_QUERY", Const, 1}, + {"CTRL_BREAK_EVENT", Const, 1}, + {"CTRL_CLOSE_EVENT", Const, 14}, + {"CTRL_C_EVENT", Const, 1}, + {"CTRL_LOGOFF_EVENT", Const, 14}, + {"CTRL_SHUTDOWN_EVENT", Const, 14}, + {"CancelIo", Func, 0}, + {"CancelIoEx", Func, 1}, + {"CertAddCertificateContextToStore", Func, 0}, + {"CertChainContext", Type, 0}, + {"CertChainContext.ChainCount", Field, 0}, + {"CertChainContext.Chains", Field, 0}, + {"CertChainContext.HasRevocationFreshnessTime", Field, 0}, + {"CertChainContext.LowerQualityChainCount", Field, 0}, + {"CertChainContext.LowerQualityChains", Field, 0}, + {"CertChainContext.RevocationFreshnessTime", Field, 0}, + {"CertChainContext.Size", Field, 0}, + {"CertChainContext.TrustStatus", Field, 0}, + {"CertChainElement", Type, 0}, + {"CertChainElement.ApplicationUsage", Field, 0}, + {"CertChainElement.CertContext", Field, 0}, + {"CertChainElement.ExtendedErrorInfo", Field, 0}, + {"CertChainElement.IssuanceUsage", Field, 0}, + {"CertChainElement.RevocationInfo", Field, 0}, + {"CertChainElement.Size", Field, 0}, + {"CertChainElement.TrustStatus", Field, 0}, + {"CertChainPara", Type, 0}, + {"CertChainPara.CacheResync", Field, 0}, + {"CertChainPara.CheckRevocationFreshnessTime", Field, 0}, + {"CertChainPara.RequestedUsage", Field, 0}, + {"CertChainPara.RequstedIssuancePolicy", Field, 0}, + {"CertChainPara.RevocationFreshnessTime", Field, 0}, + {"CertChainPara.Size", Field, 0}, + {"CertChainPara.URLRetrievalTimeout", Field, 0}, + {"CertChainPolicyPara", Type, 0}, + {"CertChainPolicyPara.ExtraPolicyPara", Field, 0}, + {"CertChainPolicyPara.Flags", Field, 0}, + {"CertChainPolicyPara.Size", Field, 0}, + {"CertChainPolicyStatus", Type, 0}, + {"CertChainPolicyStatus.ChainIndex", Field, 0}, + {"CertChainPolicyStatus.ElementIndex", Field, 0}, + {"CertChainPolicyStatus.Error", Field, 0}, + {"CertChainPolicyStatus.ExtraPolicyStatus", Field, 0}, + {"CertChainPolicyStatus.Size", Field, 0}, + {"CertCloseStore", Func, 0}, + {"CertContext", Type, 0}, + {"CertContext.CertInfo", Field, 0}, + {"CertContext.EncodedCert", Field, 0}, + {"CertContext.EncodingType", Field, 0}, + {"CertContext.Length", Field, 0}, + {"CertContext.Store", Field, 0}, + {"CertCreateCertificateContext", Func, 0}, + {"CertEnhKeyUsage", Type, 0}, + {"CertEnhKeyUsage.Length", Field, 0}, + {"CertEnhKeyUsage.UsageIdentifiers", Field, 0}, + {"CertEnumCertificatesInStore", Func, 0}, + {"CertFreeCertificateChain", Func, 0}, + {"CertFreeCertificateContext", Func, 0}, + {"CertGetCertificateChain", Func, 0}, + {"CertInfo", Type, 11}, + {"CertOpenStore", Func, 0}, + {"CertOpenSystemStore", Func, 0}, + {"CertRevocationCrlInfo", Type, 11}, + {"CertRevocationInfo", Type, 0}, + {"CertRevocationInfo.CrlInfo", Field, 0}, + {"CertRevocationInfo.FreshnessTime", Field, 0}, + {"CertRevocationInfo.HasFreshnessTime", Field, 0}, + {"CertRevocationInfo.OidSpecificInfo", Field, 0}, + {"CertRevocationInfo.RevocationOid", Field, 0}, + {"CertRevocationInfo.RevocationResult", Field, 0}, + {"CertRevocationInfo.Size", Field, 0}, + {"CertSimpleChain", Type, 0}, + {"CertSimpleChain.Elements", Field, 0}, + {"CertSimpleChain.HasRevocationFreshnessTime", Field, 0}, + {"CertSimpleChain.NumElements", Field, 0}, + {"CertSimpleChain.RevocationFreshnessTime", Field, 0}, + {"CertSimpleChain.Size", Field, 0}, + {"CertSimpleChain.TrustListInfo", Field, 0}, + {"CertSimpleChain.TrustStatus", Field, 0}, + {"CertTrustListInfo", Type, 11}, + {"CertTrustStatus", Type, 0}, + {"CertTrustStatus.ErrorStatus", Field, 0}, + {"CertTrustStatus.InfoStatus", Field, 0}, + {"CertUsageMatch", Type, 0}, + {"CertUsageMatch.Type", Field, 0}, + {"CertUsageMatch.Usage", Field, 0}, + {"CertVerifyCertificateChainPolicy", Func, 0}, + {"Chdir", Func, 0}, + {"CheckBpfVersion", Func, 0}, + {"Chflags", Func, 0}, + {"Chmod", Func, 0}, + {"Chown", Func, 0}, + {"Chroot", Func, 0}, + {"Clearenv", Func, 0}, + {"Close", Func, 0}, + {"CloseHandle", Func, 0}, + {"CloseOnExec", Func, 0}, + {"Closesocket", Func, 0}, + {"CmsgLen", Func, 0}, + {"CmsgSpace", Func, 0}, + {"Cmsghdr", Type, 0}, + {"Cmsghdr.Len", Field, 0}, + {"Cmsghdr.Level", Field, 0}, + {"Cmsghdr.Type", Field, 0}, + {"Cmsghdr.X__cmsg_data", Field, 0}, + {"CommandLineToArgv", Func, 0}, + {"ComputerName", Func, 0}, + {"Conn", Type, 9}, + {"Connect", Func, 0}, + {"ConnectEx", Func, 1}, + {"ConvertSidToStringSid", Func, 0}, + {"ConvertStringSidToSid", Func, 0}, + {"CopySid", Func, 0}, + {"Creat", Func, 0}, + {"CreateDirectory", Func, 0}, + {"CreateFile", Func, 0}, + {"CreateFileMapping", Func, 0}, + {"CreateHardLink", Func, 4}, + {"CreateIoCompletionPort", Func, 0}, + {"CreatePipe", Func, 0}, + {"CreateProcess", Func, 0}, + {"CreateProcessAsUser", Func, 10}, + {"CreateSymbolicLink", Func, 4}, + {"CreateToolhelp32Snapshot", Func, 4}, + {"Credential", Type, 0}, + {"Credential.Gid", Field, 0}, + {"Credential.Groups", Field, 0}, + {"Credential.NoSetGroups", Field, 9}, + {"Credential.Uid", Field, 0}, + {"CryptAcquireContext", Func, 0}, + {"CryptGenRandom", Func, 0}, + {"CryptReleaseContext", Func, 0}, + {"DIOCBSFLUSH", Const, 1}, + {"DIOCOSFPFLUSH", Const, 1}, + {"DLL", Type, 0}, + {"DLL.Handle", Field, 0}, + {"DLL.Name", Field, 0}, + {"DLLError", Type, 0}, + {"DLLError.Err", Field, 0}, + {"DLLError.Msg", Field, 0}, + {"DLLError.ObjName", Field, 0}, + {"DLT_A429", Const, 0}, + {"DLT_A653_ICM", Const, 0}, + {"DLT_AIRONET_HEADER", Const, 0}, + {"DLT_AOS", Const, 1}, + {"DLT_APPLE_IP_OVER_IEEE1394", Const, 0}, + {"DLT_ARCNET", Const, 0}, + {"DLT_ARCNET_LINUX", Const, 0}, + {"DLT_ATM_CLIP", Const, 0}, + {"DLT_ATM_RFC1483", Const, 0}, + {"DLT_AURORA", Const, 0}, + {"DLT_AX25", Const, 0}, + {"DLT_AX25_KISS", Const, 0}, + {"DLT_BACNET_MS_TP", Const, 0}, + {"DLT_BLUETOOTH_HCI_H4", Const, 0}, + {"DLT_BLUETOOTH_HCI_H4_WITH_PHDR", Const, 0}, + {"DLT_CAN20B", Const, 0}, + {"DLT_CAN_SOCKETCAN", Const, 1}, + {"DLT_CHAOS", Const, 0}, + {"DLT_CHDLC", Const, 0}, + {"DLT_CISCO_IOS", Const, 0}, + {"DLT_C_HDLC", Const, 0}, + {"DLT_C_HDLC_WITH_DIR", Const, 0}, + {"DLT_DBUS", Const, 1}, + {"DLT_DECT", Const, 1}, + {"DLT_DOCSIS", Const, 0}, + {"DLT_DVB_CI", Const, 1}, + {"DLT_ECONET", Const, 0}, + {"DLT_EN10MB", Const, 0}, + {"DLT_EN3MB", Const, 0}, + {"DLT_ENC", Const, 0}, + {"DLT_ERF", Const, 0}, + {"DLT_ERF_ETH", Const, 0}, + {"DLT_ERF_POS", Const, 0}, + {"DLT_FC_2", Const, 1}, + {"DLT_FC_2_WITH_FRAME_DELIMS", Const, 1}, + {"DLT_FDDI", Const, 0}, + {"DLT_FLEXRAY", Const, 0}, + {"DLT_FRELAY", Const, 0}, + {"DLT_FRELAY_WITH_DIR", Const, 0}, + {"DLT_GCOM_SERIAL", Const, 0}, + {"DLT_GCOM_T1E1", Const, 0}, + {"DLT_GPF_F", Const, 0}, + {"DLT_GPF_T", Const, 0}, + {"DLT_GPRS_LLC", Const, 0}, + {"DLT_GSMTAP_ABIS", Const, 1}, + {"DLT_GSMTAP_UM", Const, 1}, + {"DLT_HDLC", Const, 1}, + {"DLT_HHDLC", Const, 0}, + {"DLT_HIPPI", Const, 1}, + {"DLT_IBM_SN", Const, 0}, + {"DLT_IBM_SP", Const, 0}, + {"DLT_IEEE802", Const, 0}, + {"DLT_IEEE802_11", Const, 0}, + {"DLT_IEEE802_11_RADIO", Const, 0}, + {"DLT_IEEE802_11_RADIO_AVS", Const, 0}, + {"DLT_IEEE802_15_4", Const, 0}, + {"DLT_IEEE802_15_4_LINUX", Const, 0}, + {"DLT_IEEE802_15_4_NOFCS", Const, 1}, + {"DLT_IEEE802_15_4_NONASK_PHY", Const, 0}, + {"DLT_IEEE802_16_MAC_CPS", Const, 0}, + {"DLT_IEEE802_16_MAC_CPS_RADIO", Const, 0}, + {"DLT_IPFILTER", Const, 0}, + {"DLT_IPMB", Const, 0}, + {"DLT_IPMB_LINUX", Const, 0}, + {"DLT_IPNET", Const, 1}, + {"DLT_IPOIB", Const, 1}, + {"DLT_IPV4", Const, 1}, + {"DLT_IPV6", Const, 1}, + {"DLT_IP_OVER_FC", Const, 0}, + {"DLT_JUNIPER_ATM1", Const, 0}, + {"DLT_JUNIPER_ATM2", Const, 0}, + {"DLT_JUNIPER_ATM_CEMIC", Const, 1}, + {"DLT_JUNIPER_CHDLC", Const, 0}, + {"DLT_JUNIPER_ES", Const, 0}, + {"DLT_JUNIPER_ETHER", Const, 0}, + {"DLT_JUNIPER_FIBRECHANNEL", Const, 1}, + {"DLT_JUNIPER_FRELAY", Const, 0}, + {"DLT_JUNIPER_GGSN", Const, 0}, + {"DLT_JUNIPER_ISM", Const, 0}, + {"DLT_JUNIPER_MFR", Const, 0}, + {"DLT_JUNIPER_MLFR", Const, 0}, + {"DLT_JUNIPER_MLPPP", Const, 0}, + {"DLT_JUNIPER_MONITOR", Const, 0}, + {"DLT_JUNIPER_PIC_PEER", Const, 0}, + {"DLT_JUNIPER_PPP", Const, 0}, + {"DLT_JUNIPER_PPPOE", Const, 0}, + {"DLT_JUNIPER_PPPOE_ATM", Const, 0}, + {"DLT_JUNIPER_SERVICES", Const, 0}, + {"DLT_JUNIPER_SRX_E2E", Const, 1}, + {"DLT_JUNIPER_ST", Const, 0}, + {"DLT_JUNIPER_VP", Const, 0}, + {"DLT_JUNIPER_VS", Const, 1}, + {"DLT_LAPB_WITH_DIR", Const, 0}, + {"DLT_LAPD", Const, 0}, + {"DLT_LIN", Const, 0}, + {"DLT_LINUX_EVDEV", Const, 1}, + {"DLT_LINUX_IRDA", Const, 0}, + {"DLT_LINUX_LAPD", Const, 0}, + {"DLT_LINUX_PPP_WITHDIRECTION", Const, 0}, + {"DLT_LINUX_SLL", Const, 0}, + {"DLT_LOOP", Const, 0}, + {"DLT_LTALK", Const, 0}, + {"DLT_MATCHING_MAX", Const, 1}, + {"DLT_MATCHING_MIN", Const, 1}, + {"DLT_MFR", Const, 0}, + {"DLT_MOST", Const, 0}, + {"DLT_MPEG_2_TS", Const, 1}, + {"DLT_MPLS", Const, 1}, + {"DLT_MTP2", Const, 0}, + {"DLT_MTP2_WITH_PHDR", Const, 0}, + {"DLT_MTP3", Const, 0}, + {"DLT_MUX27010", Const, 1}, + {"DLT_NETANALYZER", Const, 1}, + {"DLT_NETANALYZER_TRANSPARENT", Const, 1}, + {"DLT_NFC_LLCP", Const, 1}, + {"DLT_NFLOG", Const, 1}, + {"DLT_NG40", Const, 1}, + {"DLT_NULL", Const, 0}, + {"DLT_PCI_EXP", Const, 0}, + {"DLT_PFLOG", Const, 0}, + {"DLT_PFSYNC", Const, 0}, + {"DLT_PPI", Const, 0}, + {"DLT_PPP", Const, 0}, + {"DLT_PPP_BSDOS", Const, 0}, + {"DLT_PPP_ETHER", Const, 0}, + {"DLT_PPP_PPPD", Const, 0}, + {"DLT_PPP_SERIAL", Const, 0}, + {"DLT_PPP_WITH_DIR", Const, 0}, + {"DLT_PPP_WITH_DIRECTION", Const, 0}, + {"DLT_PRISM_HEADER", Const, 0}, + {"DLT_PRONET", Const, 0}, + {"DLT_RAIF1", Const, 0}, + {"DLT_RAW", Const, 0}, + {"DLT_RAWAF_MASK", Const, 1}, + {"DLT_RIO", Const, 0}, + {"DLT_SCCP", Const, 0}, + {"DLT_SITA", Const, 0}, + {"DLT_SLIP", Const, 0}, + {"DLT_SLIP_BSDOS", Const, 0}, + {"DLT_STANAG_5066_D_PDU", Const, 1}, + {"DLT_SUNATM", Const, 0}, + {"DLT_SYMANTEC_FIREWALL", Const, 0}, + {"DLT_TZSP", Const, 0}, + {"DLT_USB", Const, 0}, + {"DLT_USB_LINUX", Const, 0}, + {"DLT_USB_LINUX_MMAPPED", Const, 1}, + {"DLT_USER0", Const, 0}, + {"DLT_USER1", Const, 0}, + {"DLT_USER10", Const, 0}, + {"DLT_USER11", Const, 0}, + {"DLT_USER12", Const, 0}, + {"DLT_USER13", Const, 0}, + {"DLT_USER14", Const, 0}, + {"DLT_USER15", Const, 0}, + {"DLT_USER2", Const, 0}, + {"DLT_USER3", Const, 0}, + {"DLT_USER4", Const, 0}, + {"DLT_USER5", Const, 0}, + {"DLT_USER6", Const, 0}, + {"DLT_USER7", Const, 0}, + {"DLT_USER8", Const, 0}, + {"DLT_USER9", Const, 0}, + {"DLT_WIHART", Const, 1}, + {"DLT_X2E_SERIAL", Const, 0}, + {"DLT_X2E_XORAYA", Const, 0}, + {"DNSMXData", Type, 0}, + {"DNSMXData.NameExchange", Field, 0}, + {"DNSMXData.Pad", Field, 0}, + {"DNSMXData.Preference", Field, 0}, + {"DNSPTRData", Type, 0}, + {"DNSPTRData.Host", Field, 0}, + {"DNSRecord", Type, 0}, + {"DNSRecord.Data", Field, 0}, + {"DNSRecord.Dw", Field, 0}, + {"DNSRecord.Length", Field, 0}, + {"DNSRecord.Name", Field, 0}, + {"DNSRecord.Next", Field, 0}, + {"DNSRecord.Reserved", Field, 0}, + {"DNSRecord.Ttl", Field, 0}, + {"DNSRecord.Type", Field, 0}, + {"DNSSRVData", Type, 0}, + {"DNSSRVData.Pad", Field, 0}, + {"DNSSRVData.Port", Field, 0}, + {"DNSSRVData.Priority", Field, 0}, + {"DNSSRVData.Target", Field, 0}, + {"DNSSRVData.Weight", Field, 0}, + {"DNSTXTData", Type, 0}, + {"DNSTXTData.StringArray", Field, 0}, + {"DNSTXTData.StringCount", Field, 0}, + {"DNS_INFO_NO_RECORDS", Const, 4}, + {"DNS_TYPE_A", Const, 0}, + {"DNS_TYPE_A6", Const, 0}, + {"DNS_TYPE_AAAA", Const, 0}, + {"DNS_TYPE_ADDRS", Const, 0}, + {"DNS_TYPE_AFSDB", Const, 0}, + {"DNS_TYPE_ALL", Const, 0}, + {"DNS_TYPE_ANY", Const, 0}, + {"DNS_TYPE_ATMA", Const, 0}, + {"DNS_TYPE_AXFR", Const, 0}, + {"DNS_TYPE_CERT", Const, 0}, + {"DNS_TYPE_CNAME", Const, 0}, + {"DNS_TYPE_DHCID", Const, 0}, + {"DNS_TYPE_DNAME", Const, 0}, + {"DNS_TYPE_DNSKEY", Const, 0}, + {"DNS_TYPE_DS", Const, 0}, + {"DNS_TYPE_EID", Const, 0}, + {"DNS_TYPE_GID", Const, 0}, + {"DNS_TYPE_GPOS", Const, 0}, + {"DNS_TYPE_HINFO", Const, 0}, + {"DNS_TYPE_ISDN", Const, 0}, + {"DNS_TYPE_IXFR", Const, 0}, + {"DNS_TYPE_KEY", Const, 0}, + {"DNS_TYPE_KX", Const, 0}, + {"DNS_TYPE_LOC", Const, 0}, + {"DNS_TYPE_MAILA", Const, 0}, + {"DNS_TYPE_MAILB", Const, 0}, + {"DNS_TYPE_MB", Const, 0}, + {"DNS_TYPE_MD", Const, 0}, + {"DNS_TYPE_MF", Const, 0}, + {"DNS_TYPE_MG", Const, 0}, + {"DNS_TYPE_MINFO", Const, 0}, + {"DNS_TYPE_MR", Const, 0}, + {"DNS_TYPE_MX", Const, 0}, + {"DNS_TYPE_NAPTR", Const, 0}, + {"DNS_TYPE_NBSTAT", Const, 0}, + {"DNS_TYPE_NIMLOC", Const, 0}, + {"DNS_TYPE_NS", Const, 0}, + {"DNS_TYPE_NSAP", Const, 0}, + {"DNS_TYPE_NSAPPTR", Const, 0}, + {"DNS_TYPE_NSEC", Const, 0}, + {"DNS_TYPE_NULL", Const, 0}, + {"DNS_TYPE_NXT", Const, 0}, + {"DNS_TYPE_OPT", Const, 0}, + {"DNS_TYPE_PTR", Const, 0}, + {"DNS_TYPE_PX", Const, 0}, + {"DNS_TYPE_RP", Const, 0}, + {"DNS_TYPE_RRSIG", Const, 0}, + {"DNS_TYPE_RT", Const, 0}, + {"DNS_TYPE_SIG", Const, 0}, + {"DNS_TYPE_SINK", Const, 0}, + {"DNS_TYPE_SOA", Const, 0}, + {"DNS_TYPE_SRV", Const, 0}, + {"DNS_TYPE_TEXT", Const, 0}, + {"DNS_TYPE_TKEY", Const, 0}, + {"DNS_TYPE_TSIG", Const, 0}, + {"DNS_TYPE_UID", Const, 0}, + {"DNS_TYPE_UINFO", Const, 0}, + {"DNS_TYPE_UNSPEC", Const, 0}, + {"DNS_TYPE_WINS", Const, 0}, + {"DNS_TYPE_WINSR", Const, 0}, + {"DNS_TYPE_WKS", Const, 0}, + {"DNS_TYPE_X25", Const, 0}, + {"DT_BLK", Const, 0}, + {"DT_CHR", Const, 0}, + {"DT_DIR", Const, 0}, + {"DT_FIFO", Const, 0}, + {"DT_LNK", Const, 0}, + {"DT_REG", Const, 0}, + {"DT_SOCK", Const, 0}, + {"DT_UNKNOWN", Const, 0}, + {"DT_WHT", Const, 0}, + {"DUPLICATE_CLOSE_SOURCE", Const, 0}, + {"DUPLICATE_SAME_ACCESS", Const, 0}, + {"DeleteFile", Func, 0}, + {"DetachLsf", Func, 0}, + {"DeviceIoControl", Func, 4}, + {"Dirent", Type, 0}, + {"Dirent.Fileno", Field, 0}, + {"Dirent.Ino", Field, 0}, + {"Dirent.Name", Field, 0}, + {"Dirent.Namlen", Field, 0}, + {"Dirent.Off", Field, 0}, + {"Dirent.Pad0", Field, 12}, + {"Dirent.Pad1", Field, 12}, + {"Dirent.Pad_cgo_0", Field, 0}, + {"Dirent.Reclen", Field, 0}, + {"Dirent.Seekoff", Field, 0}, + {"Dirent.Type", Field, 0}, + {"Dirent.X__d_padding", Field, 3}, + {"DnsNameCompare", Func, 4}, + {"DnsQuery", Func, 0}, + {"DnsRecordListFree", Func, 0}, + {"DnsSectionAdditional", Const, 4}, + {"DnsSectionAnswer", Const, 4}, + {"DnsSectionAuthority", Const, 4}, + {"DnsSectionQuestion", Const, 4}, + {"Dup", Func, 0}, + {"Dup2", Func, 0}, + {"Dup3", Func, 2}, + {"DuplicateHandle", Func, 0}, + {"E2BIG", Const, 0}, + {"EACCES", Const, 0}, + {"EADDRINUSE", Const, 0}, + {"EADDRNOTAVAIL", Const, 0}, + {"EADV", Const, 0}, + {"EAFNOSUPPORT", Const, 0}, + {"EAGAIN", Const, 0}, + {"EALREADY", Const, 0}, + {"EAUTH", Const, 0}, + {"EBADARCH", Const, 0}, + {"EBADE", Const, 0}, + {"EBADEXEC", Const, 0}, + {"EBADF", Const, 0}, + {"EBADFD", Const, 0}, + {"EBADMACHO", Const, 0}, + {"EBADMSG", Const, 0}, + {"EBADR", Const, 0}, + {"EBADRPC", Const, 0}, + {"EBADRQC", Const, 0}, + {"EBADSLT", Const, 0}, + {"EBFONT", Const, 0}, + {"EBUSY", Const, 0}, + {"ECANCELED", Const, 0}, + {"ECAPMODE", Const, 1}, + {"ECHILD", Const, 0}, + {"ECHO", Const, 0}, + {"ECHOCTL", Const, 0}, + {"ECHOE", Const, 0}, + {"ECHOK", Const, 0}, + {"ECHOKE", Const, 0}, + {"ECHONL", Const, 0}, + {"ECHOPRT", Const, 0}, + {"ECHRNG", Const, 0}, + {"ECOMM", Const, 0}, + {"ECONNABORTED", Const, 0}, + {"ECONNREFUSED", Const, 0}, + {"ECONNRESET", Const, 0}, + {"EDEADLK", Const, 0}, + {"EDEADLOCK", Const, 0}, + {"EDESTADDRREQ", Const, 0}, + {"EDEVERR", Const, 0}, + {"EDOM", Const, 0}, + {"EDOOFUS", Const, 0}, + {"EDOTDOT", Const, 0}, + {"EDQUOT", Const, 0}, + {"EEXIST", Const, 0}, + {"EFAULT", Const, 0}, + {"EFBIG", Const, 0}, + {"EFER_LMA", Const, 1}, + {"EFER_LME", Const, 1}, + {"EFER_NXE", Const, 1}, + {"EFER_SCE", Const, 1}, + {"EFTYPE", Const, 0}, + {"EHOSTDOWN", Const, 0}, + {"EHOSTUNREACH", Const, 0}, + {"EHWPOISON", Const, 0}, + {"EIDRM", Const, 0}, + {"EILSEQ", Const, 0}, + {"EINPROGRESS", Const, 0}, + {"EINTR", Const, 0}, + {"EINVAL", Const, 0}, + {"EIO", Const, 0}, + {"EIPSEC", Const, 1}, + {"EISCONN", Const, 0}, + {"EISDIR", Const, 0}, + {"EISNAM", Const, 0}, + {"EKEYEXPIRED", Const, 0}, + {"EKEYREJECTED", Const, 0}, + {"EKEYREVOKED", Const, 0}, + {"EL2HLT", Const, 0}, + {"EL2NSYNC", Const, 0}, + {"EL3HLT", Const, 0}, + {"EL3RST", Const, 0}, + {"ELAST", Const, 0}, + {"ELF_NGREG", Const, 0}, + {"ELF_PRARGSZ", Const, 0}, + {"ELIBACC", Const, 0}, + {"ELIBBAD", Const, 0}, + {"ELIBEXEC", Const, 0}, + {"ELIBMAX", Const, 0}, + {"ELIBSCN", Const, 0}, + {"ELNRNG", Const, 0}, + {"ELOOP", Const, 0}, + {"EMEDIUMTYPE", Const, 0}, + {"EMFILE", Const, 0}, + {"EMLINK", Const, 0}, + {"EMSGSIZE", Const, 0}, + {"EMT_TAGOVF", Const, 1}, + {"EMULTIHOP", Const, 0}, + {"EMUL_ENABLED", Const, 1}, + {"EMUL_LINUX", Const, 1}, + {"EMUL_LINUX32", Const, 1}, + {"EMUL_MAXID", Const, 1}, + {"EMUL_NATIVE", Const, 1}, + {"ENAMETOOLONG", Const, 0}, + {"ENAVAIL", Const, 0}, + {"ENDRUNDISC", Const, 1}, + {"ENEEDAUTH", Const, 0}, + {"ENETDOWN", Const, 0}, + {"ENETRESET", Const, 0}, + {"ENETUNREACH", Const, 0}, + {"ENFILE", Const, 0}, + {"ENOANO", Const, 0}, + {"ENOATTR", Const, 0}, + {"ENOBUFS", Const, 0}, + {"ENOCSI", Const, 0}, + {"ENODATA", Const, 0}, + {"ENODEV", Const, 0}, + {"ENOENT", Const, 0}, + {"ENOEXEC", Const, 0}, + {"ENOKEY", Const, 0}, + {"ENOLCK", Const, 0}, + {"ENOLINK", Const, 0}, + {"ENOMEDIUM", Const, 0}, + {"ENOMEM", Const, 0}, + {"ENOMSG", Const, 0}, + {"ENONET", Const, 0}, + {"ENOPKG", Const, 0}, + {"ENOPOLICY", Const, 0}, + {"ENOPROTOOPT", Const, 0}, + {"ENOSPC", Const, 0}, + {"ENOSR", Const, 0}, + {"ENOSTR", Const, 0}, + {"ENOSYS", Const, 0}, + {"ENOTBLK", Const, 0}, + {"ENOTCAPABLE", Const, 0}, + {"ENOTCONN", Const, 0}, + {"ENOTDIR", Const, 0}, + {"ENOTEMPTY", Const, 0}, + {"ENOTNAM", Const, 0}, + {"ENOTRECOVERABLE", Const, 0}, + {"ENOTSOCK", Const, 0}, + {"ENOTSUP", Const, 0}, + {"ENOTTY", Const, 0}, + {"ENOTUNIQ", Const, 0}, + {"ENXIO", Const, 0}, + {"EN_SW_CTL_INF", Const, 1}, + {"EN_SW_CTL_PREC", Const, 1}, + {"EN_SW_CTL_ROUND", Const, 1}, + {"EN_SW_DATACHAIN", Const, 1}, + {"EN_SW_DENORM", Const, 1}, + {"EN_SW_INVOP", Const, 1}, + {"EN_SW_OVERFLOW", Const, 1}, + {"EN_SW_PRECLOSS", Const, 1}, + {"EN_SW_UNDERFLOW", Const, 1}, + {"EN_SW_ZERODIV", Const, 1}, + {"EOPNOTSUPP", Const, 0}, + {"EOVERFLOW", Const, 0}, + {"EOWNERDEAD", Const, 0}, + {"EPERM", Const, 0}, + {"EPFNOSUPPORT", Const, 0}, + {"EPIPE", Const, 0}, + {"EPOLLERR", Const, 0}, + {"EPOLLET", Const, 0}, + {"EPOLLHUP", Const, 0}, + {"EPOLLIN", Const, 0}, + {"EPOLLMSG", Const, 0}, + {"EPOLLONESHOT", Const, 0}, + {"EPOLLOUT", Const, 0}, + {"EPOLLPRI", Const, 0}, + {"EPOLLRDBAND", Const, 0}, + {"EPOLLRDHUP", Const, 0}, + {"EPOLLRDNORM", Const, 0}, + {"EPOLLWRBAND", Const, 0}, + {"EPOLLWRNORM", Const, 0}, + {"EPOLL_CLOEXEC", Const, 0}, + {"EPOLL_CTL_ADD", Const, 0}, + {"EPOLL_CTL_DEL", Const, 0}, + {"EPOLL_CTL_MOD", Const, 0}, + {"EPOLL_NONBLOCK", Const, 0}, + {"EPROCLIM", Const, 0}, + {"EPROCUNAVAIL", Const, 0}, + {"EPROGMISMATCH", Const, 0}, + {"EPROGUNAVAIL", Const, 0}, + {"EPROTO", Const, 0}, + {"EPROTONOSUPPORT", Const, 0}, + {"EPROTOTYPE", Const, 0}, + {"EPWROFF", Const, 0}, + {"EQFULL", Const, 16}, + {"ERANGE", Const, 0}, + {"EREMCHG", Const, 0}, + {"EREMOTE", Const, 0}, + {"EREMOTEIO", Const, 0}, + {"ERESTART", Const, 0}, + {"ERFKILL", Const, 0}, + {"EROFS", Const, 0}, + {"ERPCMISMATCH", Const, 0}, + {"ERROR_ACCESS_DENIED", Const, 0}, + {"ERROR_ALREADY_EXISTS", Const, 0}, + {"ERROR_BROKEN_PIPE", Const, 0}, + {"ERROR_BUFFER_OVERFLOW", Const, 0}, + {"ERROR_DIR_NOT_EMPTY", Const, 8}, + {"ERROR_ENVVAR_NOT_FOUND", Const, 0}, + {"ERROR_FILE_EXISTS", Const, 0}, + {"ERROR_FILE_NOT_FOUND", Const, 0}, + {"ERROR_HANDLE_EOF", Const, 2}, + {"ERROR_INSUFFICIENT_BUFFER", Const, 0}, + {"ERROR_IO_PENDING", Const, 0}, + {"ERROR_MOD_NOT_FOUND", Const, 0}, + {"ERROR_MORE_DATA", Const, 3}, + {"ERROR_NETNAME_DELETED", Const, 3}, + {"ERROR_NOT_FOUND", Const, 1}, + {"ERROR_NO_MORE_FILES", Const, 0}, + {"ERROR_OPERATION_ABORTED", Const, 0}, + {"ERROR_PATH_NOT_FOUND", Const, 0}, + {"ERROR_PRIVILEGE_NOT_HELD", Const, 4}, + {"ERROR_PROC_NOT_FOUND", Const, 0}, + {"ESHLIBVERS", Const, 0}, + {"ESHUTDOWN", Const, 0}, + {"ESOCKTNOSUPPORT", Const, 0}, + {"ESPIPE", Const, 0}, + {"ESRCH", Const, 0}, + {"ESRMNT", Const, 0}, + {"ESTALE", Const, 0}, + {"ESTRPIPE", Const, 0}, + {"ETHERCAP_JUMBO_MTU", Const, 1}, + {"ETHERCAP_VLAN_HWTAGGING", Const, 1}, + {"ETHERCAP_VLAN_MTU", Const, 1}, + {"ETHERMIN", Const, 1}, + {"ETHERMTU", Const, 1}, + {"ETHERMTU_JUMBO", Const, 1}, + {"ETHERTYPE_8023", Const, 1}, + {"ETHERTYPE_AARP", Const, 1}, + {"ETHERTYPE_ACCTON", Const, 1}, + {"ETHERTYPE_AEONIC", Const, 1}, + {"ETHERTYPE_ALPHA", Const, 1}, + {"ETHERTYPE_AMBER", Const, 1}, + {"ETHERTYPE_AMOEBA", Const, 1}, + {"ETHERTYPE_AOE", Const, 1}, + {"ETHERTYPE_APOLLO", Const, 1}, + {"ETHERTYPE_APOLLODOMAIN", Const, 1}, + {"ETHERTYPE_APPLETALK", Const, 1}, + {"ETHERTYPE_APPLITEK", Const, 1}, + {"ETHERTYPE_ARGONAUT", Const, 1}, + {"ETHERTYPE_ARP", Const, 1}, + {"ETHERTYPE_AT", Const, 1}, + {"ETHERTYPE_ATALK", Const, 1}, + {"ETHERTYPE_ATOMIC", Const, 1}, + {"ETHERTYPE_ATT", Const, 1}, + {"ETHERTYPE_ATTSTANFORD", Const, 1}, + {"ETHERTYPE_AUTOPHON", Const, 1}, + {"ETHERTYPE_AXIS", Const, 1}, + {"ETHERTYPE_BCLOOP", Const, 1}, + {"ETHERTYPE_BOFL", Const, 1}, + {"ETHERTYPE_CABLETRON", Const, 1}, + {"ETHERTYPE_CHAOS", Const, 1}, + {"ETHERTYPE_COMDESIGN", Const, 1}, + {"ETHERTYPE_COMPUGRAPHIC", Const, 1}, + {"ETHERTYPE_COUNTERPOINT", Const, 1}, + {"ETHERTYPE_CRONUS", Const, 1}, + {"ETHERTYPE_CRONUSVLN", Const, 1}, + {"ETHERTYPE_DCA", Const, 1}, + {"ETHERTYPE_DDE", Const, 1}, + {"ETHERTYPE_DEBNI", Const, 1}, + {"ETHERTYPE_DECAM", Const, 1}, + {"ETHERTYPE_DECCUST", Const, 1}, + {"ETHERTYPE_DECDIAG", Const, 1}, + {"ETHERTYPE_DECDNS", Const, 1}, + {"ETHERTYPE_DECDTS", Const, 1}, + {"ETHERTYPE_DECEXPER", Const, 1}, + {"ETHERTYPE_DECLAST", Const, 1}, + {"ETHERTYPE_DECLTM", Const, 1}, + {"ETHERTYPE_DECMUMPS", Const, 1}, + {"ETHERTYPE_DECNETBIOS", Const, 1}, + {"ETHERTYPE_DELTACON", Const, 1}, + {"ETHERTYPE_DIDDLE", Const, 1}, + {"ETHERTYPE_DLOG1", Const, 1}, + {"ETHERTYPE_DLOG2", Const, 1}, + {"ETHERTYPE_DN", Const, 1}, + {"ETHERTYPE_DOGFIGHT", Const, 1}, + {"ETHERTYPE_DSMD", Const, 1}, + {"ETHERTYPE_ECMA", Const, 1}, + {"ETHERTYPE_ENCRYPT", Const, 1}, + {"ETHERTYPE_ES", Const, 1}, + {"ETHERTYPE_EXCELAN", Const, 1}, + {"ETHERTYPE_EXPERDATA", Const, 1}, + {"ETHERTYPE_FLIP", Const, 1}, + {"ETHERTYPE_FLOWCONTROL", Const, 1}, + {"ETHERTYPE_FRARP", Const, 1}, + {"ETHERTYPE_GENDYN", Const, 1}, + {"ETHERTYPE_HAYES", Const, 1}, + {"ETHERTYPE_HIPPI_FP", Const, 1}, + {"ETHERTYPE_HITACHI", Const, 1}, + {"ETHERTYPE_HP", Const, 1}, + {"ETHERTYPE_IEEEPUP", Const, 1}, + {"ETHERTYPE_IEEEPUPAT", Const, 1}, + {"ETHERTYPE_IMLBL", Const, 1}, + {"ETHERTYPE_IMLBLDIAG", Const, 1}, + {"ETHERTYPE_IP", Const, 1}, + {"ETHERTYPE_IPAS", Const, 1}, + {"ETHERTYPE_IPV6", Const, 1}, + {"ETHERTYPE_IPX", Const, 1}, + {"ETHERTYPE_IPXNEW", Const, 1}, + {"ETHERTYPE_KALPANA", Const, 1}, + {"ETHERTYPE_LANBRIDGE", Const, 1}, + {"ETHERTYPE_LANPROBE", Const, 1}, + {"ETHERTYPE_LAT", Const, 1}, + {"ETHERTYPE_LBACK", Const, 1}, + {"ETHERTYPE_LITTLE", Const, 1}, + {"ETHERTYPE_LLDP", Const, 1}, + {"ETHERTYPE_LOGICRAFT", Const, 1}, + {"ETHERTYPE_LOOPBACK", Const, 1}, + {"ETHERTYPE_MATRA", Const, 1}, + {"ETHERTYPE_MAX", Const, 1}, + {"ETHERTYPE_MERIT", Const, 1}, + {"ETHERTYPE_MICP", Const, 1}, + {"ETHERTYPE_MOPDL", Const, 1}, + {"ETHERTYPE_MOPRC", Const, 1}, + {"ETHERTYPE_MOTOROLA", Const, 1}, + {"ETHERTYPE_MPLS", Const, 1}, + {"ETHERTYPE_MPLS_MCAST", Const, 1}, + {"ETHERTYPE_MUMPS", Const, 1}, + {"ETHERTYPE_NBPCC", Const, 1}, + {"ETHERTYPE_NBPCLAIM", Const, 1}, + {"ETHERTYPE_NBPCLREQ", Const, 1}, + {"ETHERTYPE_NBPCLRSP", Const, 1}, + {"ETHERTYPE_NBPCREQ", Const, 1}, + {"ETHERTYPE_NBPCRSP", Const, 1}, + {"ETHERTYPE_NBPDG", Const, 1}, + {"ETHERTYPE_NBPDGB", Const, 1}, + {"ETHERTYPE_NBPDLTE", Const, 1}, + {"ETHERTYPE_NBPRAR", Const, 1}, + {"ETHERTYPE_NBPRAS", Const, 1}, + {"ETHERTYPE_NBPRST", Const, 1}, + {"ETHERTYPE_NBPSCD", Const, 1}, + {"ETHERTYPE_NBPVCD", Const, 1}, + {"ETHERTYPE_NBS", Const, 1}, + {"ETHERTYPE_NCD", Const, 1}, + {"ETHERTYPE_NESTAR", Const, 1}, + {"ETHERTYPE_NETBEUI", Const, 1}, + {"ETHERTYPE_NOVELL", Const, 1}, + {"ETHERTYPE_NS", Const, 1}, + {"ETHERTYPE_NSAT", Const, 1}, + {"ETHERTYPE_NSCOMPAT", Const, 1}, + {"ETHERTYPE_NTRAILER", Const, 1}, + {"ETHERTYPE_OS9", Const, 1}, + {"ETHERTYPE_OS9NET", Const, 1}, + {"ETHERTYPE_PACER", Const, 1}, + {"ETHERTYPE_PAE", Const, 1}, + {"ETHERTYPE_PCS", Const, 1}, + {"ETHERTYPE_PLANNING", Const, 1}, + {"ETHERTYPE_PPP", Const, 1}, + {"ETHERTYPE_PPPOE", Const, 1}, + {"ETHERTYPE_PPPOEDISC", Const, 1}, + {"ETHERTYPE_PRIMENTS", Const, 1}, + {"ETHERTYPE_PUP", Const, 1}, + {"ETHERTYPE_PUPAT", Const, 1}, + {"ETHERTYPE_QINQ", Const, 1}, + {"ETHERTYPE_RACAL", Const, 1}, + {"ETHERTYPE_RATIONAL", Const, 1}, + {"ETHERTYPE_RAWFR", Const, 1}, + {"ETHERTYPE_RCL", Const, 1}, + {"ETHERTYPE_RDP", Const, 1}, + {"ETHERTYPE_RETIX", Const, 1}, + {"ETHERTYPE_REVARP", Const, 1}, + {"ETHERTYPE_SCA", Const, 1}, + {"ETHERTYPE_SECTRA", Const, 1}, + {"ETHERTYPE_SECUREDATA", Const, 1}, + {"ETHERTYPE_SGITW", Const, 1}, + {"ETHERTYPE_SG_BOUNCE", Const, 1}, + {"ETHERTYPE_SG_DIAG", Const, 1}, + {"ETHERTYPE_SG_NETGAMES", Const, 1}, + {"ETHERTYPE_SG_RESV", Const, 1}, + {"ETHERTYPE_SIMNET", Const, 1}, + {"ETHERTYPE_SLOW", Const, 1}, + {"ETHERTYPE_SLOWPROTOCOLS", Const, 1}, + {"ETHERTYPE_SNA", Const, 1}, + {"ETHERTYPE_SNMP", Const, 1}, + {"ETHERTYPE_SONIX", Const, 1}, + {"ETHERTYPE_SPIDER", Const, 1}, + {"ETHERTYPE_SPRITE", Const, 1}, + {"ETHERTYPE_STP", Const, 1}, + {"ETHERTYPE_TALARIS", Const, 1}, + {"ETHERTYPE_TALARISMC", Const, 1}, + {"ETHERTYPE_TCPCOMP", Const, 1}, + {"ETHERTYPE_TCPSM", Const, 1}, + {"ETHERTYPE_TEC", Const, 1}, + {"ETHERTYPE_TIGAN", Const, 1}, + {"ETHERTYPE_TRAIL", Const, 1}, + {"ETHERTYPE_TRANSETHER", Const, 1}, + {"ETHERTYPE_TYMSHARE", Const, 1}, + {"ETHERTYPE_UBBST", Const, 1}, + {"ETHERTYPE_UBDEBUG", Const, 1}, + {"ETHERTYPE_UBDIAGLOOP", Const, 1}, + {"ETHERTYPE_UBDL", Const, 1}, + {"ETHERTYPE_UBNIU", Const, 1}, + {"ETHERTYPE_UBNMC", Const, 1}, + {"ETHERTYPE_VALID", Const, 1}, + {"ETHERTYPE_VARIAN", Const, 1}, + {"ETHERTYPE_VAXELN", Const, 1}, + {"ETHERTYPE_VEECO", Const, 1}, + {"ETHERTYPE_VEXP", Const, 1}, + {"ETHERTYPE_VGLAB", Const, 1}, + {"ETHERTYPE_VINES", Const, 1}, + {"ETHERTYPE_VINESECHO", Const, 1}, + {"ETHERTYPE_VINESLOOP", Const, 1}, + {"ETHERTYPE_VITAL", Const, 1}, + {"ETHERTYPE_VLAN", Const, 1}, + {"ETHERTYPE_VLTLMAN", Const, 1}, + {"ETHERTYPE_VPROD", Const, 1}, + {"ETHERTYPE_VURESERVED", Const, 1}, + {"ETHERTYPE_WATERLOO", Const, 1}, + {"ETHERTYPE_WELLFLEET", Const, 1}, + {"ETHERTYPE_X25", Const, 1}, + {"ETHERTYPE_X75", Const, 1}, + {"ETHERTYPE_XNSSM", Const, 1}, + {"ETHERTYPE_XTP", Const, 1}, + {"ETHER_ADDR_LEN", Const, 1}, + {"ETHER_ALIGN", Const, 1}, + {"ETHER_CRC_LEN", Const, 1}, + {"ETHER_CRC_POLY_BE", Const, 1}, + {"ETHER_CRC_POLY_LE", Const, 1}, + {"ETHER_HDR_LEN", Const, 1}, + {"ETHER_MAX_DIX_LEN", Const, 1}, + {"ETHER_MAX_LEN", Const, 1}, + {"ETHER_MAX_LEN_JUMBO", Const, 1}, + {"ETHER_MIN_LEN", Const, 1}, + {"ETHER_PPPOE_ENCAP_LEN", Const, 1}, + {"ETHER_TYPE_LEN", Const, 1}, + {"ETHER_VLAN_ENCAP_LEN", Const, 1}, + {"ETH_P_1588", Const, 0}, + {"ETH_P_8021Q", Const, 0}, + {"ETH_P_802_2", Const, 0}, + {"ETH_P_802_3", Const, 0}, + {"ETH_P_AARP", Const, 0}, + {"ETH_P_ALL", Const, 0}, + {"ETH_P_AOE", Const, 0}, + {"ETH_P_ARCNET", Const, 0}, + {"ETH_P_ARP", Const, 0}, + {"ETH_P_ATALK", Const, 0}, + {"ETH_P_ATMFATE", Const, 0}, + {"ETH_P_ATMMPOA", Const, 0}, + {"ETH_P_AX25", Const, 0}, + {"ETH_P_BPQ", Const, 0}, + {"ETH_P_CAIF", Const, 0}, + {"ETH_P_CAN", Const, 0}, + {"ETH_P_CONTROL", Const, 0}, + {"ETH_P_CUST", Const, 0}, + {"ETH_P_DDCMP", Const, 0}, + {"ETH_P_DEC", Const, 0}, + {"ETH_P_DIAG", Const, 0}, + {"ETH_P_DNA_DL", Const, 0}, + {"ETH_P_DNA_RC", Const, 0}, + {"ETH_P_DNA_RT", Const, 0}, + {"ETH_P_DSA", Const, 0}, + {"ETH_P_ECONET", Const, 0}, + {"ETH_P_EDSA", Const, 0}, + {"ETH_P_FCOE", Const, 0}, + {"ETH_P_FIP", Const, 0}, + {"ETH_P_HDLC", Const, 0}, + {"ETH_P_IEEE802154", Const, 0}, + {"ETH_P_IEEEPUP", Const, 0}, + {"ETH_P_IEEEPUPAT", Const, 0}, + {"ETH_P_IP", Const, 0}, + {"ETH_P_IPV6", Const, 0}, + {"ETH_P_IPX", Const, 0}, + {"ETH_P_IRDA", Const, 0}, + {"ETH_P_LAT", Const, 0}, + {"ETH_P_LINK_CTL", Const, 0}, + {"ETH_P_LOCALTALK", Const, 0}, + {"ETH_P_LOOP", Const, 0}, + {"ETH_P_MOBITEX", Const, 0}, + {"ETH_P_MPLS_MC", Const, 0}, + {"ETH_P_MPLS_UC", Const, 0}, + {"ETH_P_PAE", Const, 0}, + {"ETH_P_PAUSE", Const, 0}, + {"ETH_P_PHONET", Const, 0}, + {"ETH_P_PPPTALK", Const, 0}, + {"ETH_P_PPP_DISC", Const, 0}, + {"ETH_P_PPP_MP", Const, 0}, + {"ETH_P_PPP_SES", Const, 0}, + {"ETH_P_PUP", Const, 0}, + {"ETH_P_PUPAT", Const, 0}, + {"ETH_P_RARP", Const, 0}, + {"ETH_P_SCA", Const, 0}, + {"ETH_P_SLOW", Const, 0}, + {"ETH_P_SNAP", Const, 0}, + {"ETH_P_TEB", Const, 0}, + {"ETH_P_TIPC", Const, 0}, + {"ETH_P_TRAILER", Const, 0}, + {"ETH_P_TR_802_2", Const, 0}, + {"ETH_P_WAN_PPP", Const, 0}, + {"ETH_P_WCCP", Const, 0}, + {"ETH_P_X25", Const, 0}, + {"ETIME", Const, 0}, + {"ETIMEDOUT", Const, 0}, + {"ETOOMANYREFS", Const, 0}, + {"ETXTBSY", Const, 0}, + {"EUCLEAN", Const, 0}, + {"EUNATCH", Const, 0}, + {"EUSERS", Const, 0}, + {"EVFILT_AIO", Const, 0}, + {"EVFILT_FS", Const, 0}, + {"EVFILT_LIO", Const, 0}, + {"EVFILT_MACHPORT", Const, 0}, + {"EVFILT_PROC", Const, 0}, + {"EVFILT_READ", Const, 0}, + {"EVFILT_SIGNAL", Const, 0}, + {"EVFILT_SYSCOUNT", Const, 0}, + {"EVFILT_THREADMARKER", Const, 0}, + {"EVFILT_TIMER", Const, 0}, + {"EVFILT_USER", Const, 0}, + {"EVFILT_VM", Const, 0}, + {"EVFILT_VNODE", Const, 0}, + {"EVFILT_WRITE", Const, 0}, + {"EV_ADD", Const, 0}, + {"EV_CLEAR", Const, 0}, + {"EV_DELETE", Const, 0}, + {"EV_DISABLE", Const, 0}, + {"EV_DISPATCH", Const, 0}, + {"EV_DROP", Const, 3}, + {"EV_ENABLE", Const, 0}, + {"EV_EOF", Const, 0}, + {"EV_ERROR", Const, 0}, + {"EV_FLAG0", Const, 0}, + {"EV_FLAG1", Const, 0}, + {"EV_ONESHOT", Const, 0}, + {"EV_OOBAND", Const, 0}, + {"EV_POLL", Const, 0}, + {"EV_RECEIPT", Const, 0}, + {"EV_SYSFLAGS", Const, 0}, + {"EWINDOWS", Const, 0}, + {"EWOULDBLOCK", Const, 0}, + {"EXDEV", Const, 0}, + {"EXFULL", Const, 0}, + {"EXTA", Const, 0}, + {"EXTB", Const, 0}, + {"EXTPROC", Const, 0}, + {"Environ", Func, 0}, + {"EpollCreate", Func, 0}, + {"EpollCreate1", Func, 0}, + {"EpollCtl", Func, 0}, + {"EpollEvent", Type, 0}, + {"EpollEvent.Events", Field, 0}, + {"EpollEvent.Fd", Field, 0}, + {"EpollEvent.Pad", Field, 0}, + {"EpollEvent.PadFd", Field, 0}, + {"EpollWait", Func, 0}, + {"Errno", Type, 0}, + {"EscapeArg", Func, 0}, + {"Exchangedata", Func, 0}, + {"Exec", Func, 0}, + {"Exit", Func, 0}, + {"ExitProcess", Func, 0}, + {"FD_CLOEXEC", Const, 0}, + {"FD_SETSIZE", Const, 0}, + {"FILE_ACTION_ADDED", Const, 0}, + {"FILE_ACTION_MODIFIED", Const, 0}, + {"FILE_ACTION_REMOVED", Const, 0}, + {"FILE_ACTION_RENAMED_NEW_NAME", Const, 0}, + {"FILE_ACTION_RENAMED_OLD_NAME", Const, 0}, + {"FILE_APPEND_DATA", Const, 0}, + {"FILE_ATTRIBUTE_ARCHIVE", Const, 0}, + {"FILE_ATTRIBUTE_DIRECTORY", Const, 0}, + {"FILE_ATTRIBUTE_HIDDEN", Const, 0}, + {"FILE_ATTRIBUTE_NORMAL", Const, 0}, + {"FILE_ATTRIBUTE_READONLY", Const, 0}, + {"FILE_ATTRIBUTE_REPARSE_POINT", Const, 4}, + {"FILE_ATTRIBUTE_SYSTEM", Const, 0}, + {"FILE_BEGIN", Const, 0}, + {"FILE_CURRENT", Const, 0}, + {"FILE_END", Const, 0}, + {"FILE_FLAG_BACKUP_SEMANTICS", Const, 0}, + {"FILE_FLAG_OPEN_REPARSE_POINT", Const, 4}, + {"FILE_FLAG_OVERLAPPED", Const, 0}, + {"FILE_LIST_DIRECTORY", Const, 0}, + {"FILE_MAP_COPY", Const, 0}, + {"FILE_MAP_EXECUTE", Const, 0}, + {"FILE_MAP_READ", Const, 0}, + {"FILE_MAP_WRITE", Const, 0}, + {"FILE_NOTIFY_CHANGE_ATTRIBUTES", Const, 0}, + {"FILE_NOTIFY_CHANGE_CREATION", Const, 0}, + {"FILE_NOTIFY_CHANGE_DIR_NAME", Const, 0}, + {"FILE_NOTIFY_CHANGE_FILE_NAME", Const, 0}, + {"FILE_NOTIFY_CHANGE_LAST_ACCESS", Const, 0}, + {"FILE_NOTIFY_CHANGE_LAST_WRITE", Const, 0}, + {"FILE_NOTIFY_CHANGE_SIZE", Const, 0}, + {"FILE_SHARE_DELETE", Const, 0}, + {"FILE_SHARE_READ", Const, 0}, + {"FILE_SHARE_WRITE", Const, 0}, + {"FILE_SKIP_COMPLETION_PORT_ON_SUCCESS", Const, 2}, + {"FILE_SKIP_SET_EVENT_ON_HANDLE", Const, 2}, + {"FILE_TYPE_CHAR", Const, 0}, + {"FILE_TYPE_DISK", Const, 0}, + {"FILE_TYPE_PIPE", Const, 0}, + {"FILE_TYPE_REMOTE", Const, 0}, + {"FILE_TYPE_UNKNOWN", Const, 0}, + {"FILE_WRITE_ATTRIBUTES", Const, 0}, + {"FLUSHO", Const, 0}, + {"FORMAT_MESSAGE_ALLOCATE_BUFFER", Const, 0}, + {"FORMAT_MESSAGE_ARGUMENT_ARRAY", Const, 0}, + {"FORMAT_MESSAGE_FROM_HMODULE", Const, 0}, + {"FORMAT_MESSAGE_FROM_STRING", Const, 0}, + {"FORMAT_MESSAGE_FROM_SYSTEM", Const, 0}, + {"FORMAT_MESSAGE_IGNORE_INSERTS", Const, 0}, + {"FORMAT_MESSAGE_MAX_WIDTH_MASK", Const, 0}, + {"FSCTL_GET_REPARSE_POINT", Const, 4}, + {"F_ADDFILESIGS", Const, 0}, + {"F_ADDSIGS", Const, 0}, + {"F_ALLOCATEALL", Const, 0}, + {"F_ALLOCATECONTIG", Const, 0}, + {"F_CANCEL", Const, 0}, + {"F_CHKCLEAN", Const, 0}, + {"F_CLOSEM", Const, 1}, + {"F_DUP2FD", Const, 0}, + {"F_DUP2FD_CLOEXEC", Const, 1}, + {"F_DUPFD", Const, 0}, + {"F_DUPFD_CLOEXEC", Const, 0}, + {"F_EXLCK", Const, 0}, + {"F_FINDSIGS", Const, 16}, + {"F_FLUSH_DATA", Const, 0}, + {"F_FREEZE_FS", Const, 0}, + {"F_FSCTL", Const, 1}, + {"F_FSDIRMASK", Const, 1}, + {"F_FSIN", Const, 1}, + {"F_FSINOUT", Const, 1}, + {"F_FSOUT", Const, 1}, + {"F_FSPRIV", Const, 1}, + {"F_FSVOID", Const, 1}, + {"F_FULLFSYNC", Const, 0}, + {"F_GETCODEDIR", Const, 16}, + {"F_GETFD", Const, 0}, + {"F_GETFL", Const, 0}, + {"F_GETLEASE", Const, 0}, + {"F_GETLK", Const, 0}, + {"F_GETLK64", Const, 0}, + {"F_GETLKPID", Const, 0}, + {"F_GETNOSIGPIPE", Const, 0}, + {"F_GETOWN", Const, 0}, + {"F_GETOWN_EX", Const, 0}, + {"F_GETPATH", Const, 0}, + {"F_GETPATH_MTMINFO", Const, 0}, + {"F_GETPIPE_SZ", Const, 0}, + {"F_GETPROTECTIONCLASS", Const, 0}, + {"F_GETPROTECTIONLEVEL", Const, 16}, + {"F_GETSIG", Const, 0}, + {"F_GLOBAL_NOCACHE", Const, 0}, + {"F_LOCK", Const, 0}, + {"F_LOG2PHYS", Const, 0}, + {"F_LOG2PHYS_EXT", Const, 0}, + {"F_MARKDEPENDENCY", Const, 0}, + {"F_MAXFD", Const, 1}, + {"F_NOCACHE", Const, 0}, + {"F_NODIRECT", Const, 0}, + {"F_NOTIFY", Const, 0}, + {"F_OGETLK", Const, 0}, + {"F_OK", Const, 0}, + {"F_OSETLK", Const, 0}, + {"F_OSETLKW", Const, 0}, + {"F_PARAM_MASK", Const, 1}, + {"F_PARAM_MAX", Const, 1}, + {"F_PATHPKG_CHECK", Const, 0}, + {"F_PEOFPOSMODE", Const, 0}, + {"F_PREALLOCATE", Const, 0}, + {"F_RDADVISE", Const, 0}, + {"F_RDAHEAD", Const, 0}, + {"F_RDLCK", Const, 0}, + {"F_READAHEAD", Const, 0}, + {"F_READBOOTSTRAP", Const, 0}, + {"F_SETBACKINGSTORE", Const, 0}, + {"F_SETFD", Const, 0}, + {"F_SETFL", Const, 0}, + {"F_SETLEASE", Const, 0}, + {"F_SETLK", Const, 0}, + {"F_SETLK64", Const, 0}, + {"F_SETLKW", Const, 0}, + {"F_SETLKW64", Const, 0}, + {"F_SETLKWTIMEOUT", Const, 16}, + {"F_SETLK_REMOTE", Const, 0}, + {"F_SETNOSIGPIPE", Const, 0}, + {"F_SETOWN", Const, 0}, + {"F_SETOWN_EX", Const, 0}, + {"F_SETPIPE_SZ", Const, 0}, + {"F_SETPROTECTIONCLASS", Const, 0}, + {"F_SETSIG", Const, 0}, + {"F_SETSIZE", Const, 0}, + {"F_SHLCK", Const, 0}, + {"F_SINGLE_WRITER", Const, 16}, + {"F_TEST", Const, 0}, + {"F_THAW_FS", Const, 0}, + {"F_TLOCK", Const, 0}, + {"F_TRANSCODEKEY", Const, 16}, + {"F_ULOCK", Const, 0}, + {"F_UNLCK", Const, 0}, + {"F_UNLCKSYS", Const, 0}, + {"F_VOLPOSMODE", Const, 0}, + {"F_WRITEBOOTSTRAP", Const, 0}, + {"F_WRLCK", Const, 0}, + {"Faccessat", Func, 0}, + {"Fallocate", Func, 0}, + {"Fbootstraptransfer_t", Type, 0}, + {"Fbootstraptransfer_t.Buffer", Field, 0}, + {"Fbootstraptransfer_t.Length", Field, 0}, + {"Fbootstraptransfer_t.Offset", Field, 0}, + {"Fchdir", Func, 0}, + {"Fchflags", Func, 0}, + {"Fchmod", Func, 0}, + {"Fchmodat", Func, 0}, + {"Fchown", Func, 0}, + {"Fchownat", Func, 0}, + {"FcntlFlock", Func, 3}, + {"FdSet", Type, 0}, + {"FdSet.Bits", Field, 0}, + {"FdSet.X__fds_bits", Field, 0}, + {"Fdatasync", Func, 0}, + {"FileNotifyInformation", Type, 0}, + {"FileNotifyInformation.Action", Field, 0}, + {"FileNotifyInformation.FileName", Field, 0}, + {"FileNotifyInformation.FileNameLength", Field, 0}, + {"FileNotifyInformation.NextEntryOffset", Field, 0}, + {"Filetime", Type, 0}, + {"Filetime.HighDateTime", Field, 0}, + {"Filetime.LowDateTime", Field, 0}, + {"FindClose", Func, 0}, + {"FindFirstFile", Func, 0}, + {"FindNextFile", Func, 0}, + {"Flock", Func, 0}, + {"Flock_t", Type, 0}, + {"Flock_t.Len", Field, 0}, + {"Flock_t.Pad_cgo_0", Field, 0}, + {"Flock_t.Pad_cgo_1", Field, 3}, + {"Flock_t.Pid", Field, 0}, + {"Flock_t.Start", Field, 0}, + {"Flock_t.Sysid", Field, 0}, + {"Flock_t.Type", Field, 0}, + {"Flock_t.Whence", Field, 0}, + {"FlushBpf", Func, 0}, + {"FlushFileBuffers", Func, 0}, + {"FlushViewOfFile", Func, 0}, + {"ForkExec", Func, 0}, + {"ForkLock", Var, 0}, + {"FormatMessage", Func, 0}, + {"Fpathconf", Func, 0}, + {"FreeAddrInfoW", Func, 1}, + {"FreeEnvironmentStrings", Func, 0}, + {"FreeLibrary", Func, 0}, + {"Fsid", Type, 0}, + {"Fsid.Val", Field, 0}, + {"Fsid.X__fsid_val", Field, 2}, + {"Fsid.X__val", Field, 0}, + {"Fstat", Func, 0}, + {"Fstatat", Func, 12}, + {"Fstatfs", Func, 0}, + {"Fstore_t", Type, 0}, + {"Fstore_t.Bytesalloc", Field, 0}, + {"Fstore_t.Flags", Field, 0}, + {"Fstore_t.Length", Field, 0}, + {"Fstore_t.Offset", Field, 0}, + {"Fstore_t.Posmode", Field, 0}, + {"Fsync", Func, 0}, + {"Ftruncate", Func, 0}, + {"FullPath", Func, 4}, + {"Futimes", Func, 0}, + {"Futimesat", Func, 0}, + {"GENERIC_ALL", Const, 0}, + {"GENERIC_EXECUTE", Const, 0}, + {"GENERIC_READ", Const, 0}, + {"GENERIC_WRITE", Const, 0}, + {"GUID", Type, 1}, + {"GUID.Data1", Field, 1}, + {"GUID.Data2", Field, 1}, + {"GUID.Data3", Field, 1}, + {"GUID.Data4", Field, 1}, + {"GetAcceptExSockaddrs", Func, 0}, + {"GetAdaptersInfo", Func, 0}, + {"GetAddrInfoW", Func, 1}, + {"GetCommandLine", Func, 0}, + {"GetComputerName", Func, 0}, + {"GetConsoleMode", Func, 1}, + {"GetCurrentDirectory", Func, 0}, + {"GetCurrentProcess", Func, 0}, + {"GetEnvironmentStrings", Func, 0}, + {"GetEnvironmentVariable", Func, 0}, + {"GetExitCodeProcess", Func, 0}, + {"GetFileAttributes", Func, 0}, + {"GetFileAttributesEx", Func, 0}, + {"GetFileExInfoStandard", Const, 0}, + {"GetFileExMaxInfoLevel", Const, 0}, + {"GetFileInformationByHandle", Func, 0}, + {"GetFileType", Func, 0}, + {"GetFullPathName", Func, 0}, + {"GetHostByName", Func, 0}, + {"GetIfEntry", Func, 0}, + {"GetLastError", Func, 0}, + {"GetLengthSid", Func, 0}, + {"GetLongPathName", Func, 0}, + {"GetProcAddress", Func, 0}, + {"GetProcessTimes", Func, 0}, + {"GetProtoByName", Func, 0}, + {"GetQueuedCompletionStatus", Func, 0}, + {"GetServByName", Func, 0}, + {"GetShortPathName", Func, 0}, + {"GetStartupInfo", Func, 0}, + {"GetStdHandle", Func, 0}, + {"GetSystemTimeAsFileTime", Func, 0}, + {"GetTempPath", Func, 0}, + {"GetTimeZoneInformation", Func, 0}, + {"GetTokenInformation", Func, 0}, + {"GetUserNameEx", Func, 0}, + {"GetUserProfileDirectory", Func, 0}, + {"GetVersion", Func, 0}, + {"Getcwd", Func, 0}, + {"Getdents", Func, 0}, + {"Getdirentries", Func, 0}, + {"Getdtablesize", Func, 0}, + {"Getegid", Func, 0}, + {"Getenv", Func, 0}, + {"Geteuid", Func, 0}, + {"Getfsstat", Func, 0}, + {"Getgid", Func, 0}, + {"Getgroups", Func, 0}, + {"Getpagesize", Func, 0}, + {"Getpeername", Func, 0}, + {"Getpgid", Func, 0}, + {"Getpgrp", Func, 0}, + {"Getpid", Func, 0}, + {"Getppid", Func, 0}, + {"Getpriority", Func, 0}, + {"Getrlimit", Func, 0}, + {"Getrusage", Func, 0}, + {"Getsid", Func, 0}, + {"Getsockname", Func, 0}, + {"Getsockopt", Func, 1}, + {"GetsockoptByte", Func, 0}, + {"GetsockoptICMPv6Filter", Func, 2}, + {"GetsockoptIPMreq", Func, 0}, + {"GetsockoptIPMreqn", Func, 0}, + {"GetsockoptIPv6MTUInfo", Func, 2}, + {"GetsockoptIPv6Mreq", Func, 0}, + {"GetsockoptInet4Addr", Func, 0}, + {"GetsockoptInt", Func, 0}, + {"GetsockoptUcred", Func, 1}, + {"Gettid", Func, 0}, + {"Gettimeofday", Func, 0}, + {"Getuid", Func, 0}, + {"Getwd", Func, 0}, + {"Getxattr", Func, 1}, + {"HANDLE_FLAG_INHERIT", Const, 0}, + {"HKEY_CLASSES_ROOT", Const, 0}, + {"HKEY_CURRENT_CONFIG", Const, 0}, + {"HKEY_CURRENT_USER", Const, 0}, + {"HKEY_DYN_DATA", Const, 0}, + {"HKEY_LOCAL_MACHINE", Const, 0}, + {"HKEY_PERFORMANCE_DATA", Const, 0}, + {"HKEY_USERS", Const, 0}, + {"HUPCL", Const, 0}, + {"Handle", Type, 0}, + {"Hostent", Type, 0}, + {"Hostent.AddrList", Field, 0}, + {"Hostent.AddrType", Field, 0}, + {"Hostent.Aliases", Field, 0}, + {"Hostent.Length", Field, 0}, + {"Hostent.Name", Field, 0}, + {"ICANON", Const, 0}, + {"ICMP6_FILTER", Const, 2}, + {"ICMPV6_FILTER", Const, 2}, + {"ICMPv6Filter", Type, 2}, + {"ICMPv6Filter.Data", Field, 2}, + {"ICMPv6Filter.Filt", Field, 2}, + {"ICRNL", Const, 0}, + {"IEXTEN", Const, 0}, + {"IFAN_ARRIVAL", Const, 1}, + {"IFAN_DEPARTURE", Const, 1}, + {"IFA_ADDRESS", Const, 0}, + {"IFA_ANYCAST", Const, 0}, + {"IFA_BROADCAST", Const, 0}, + {"IFA_CACHEINFO", Const, 0}, + {"IFA_F_DADFAILED", Const, 0}, + {"IFA_F_DEPRECATED", Const, 0}, + {"IFA_F_HOMEADDRESS", Const, 0}, + {"IFA_F_NODAD", Const, 0}, + {"IFA_F_OPTIMISTIC", Const, 0}, + {"IFA_F_PERMANENT", Const, 0}, + {"IFA_F_SECONDARY", Const, 0}, + {"IFA_F_TEMPORARY", Const, 0}, + {"IFA_F_TENTATIVE", Const, 0}, + {"IFA_LABEL", Const, 0}, + {"IFA_LOCAL", Const, 0}, + {"IFA_MAX", Const, 0}, + {"IFA_MULTICAST", Const, 0}, + {"IFA_ROUTE", Const, 1}, + {"IFA_UNSPEC", Const, 0}, + {"IFF_ALLMULTI", Const, 0}, + {"IFF_ALTPHYS", Const, 0}, + {"IFF_AUTOMEDIA", Const, 0}, + {"IFF_BROADCAST", Const, 0}, + {"IFF_CANTCHANGE", Const, 0}, + {"IFF_CANTCONFIG", Const, 1}, + {"IFF_DEBUG", Const, 0}, + {"IFF_DRV_OACTIVE", Const, 0}, + {"IFF_DRV_RUNNING", Const, 0}, + {"IFF_DYING", Const, 0}, + {"IFF_DYNAMIC", Const, 0}, + {"IFF_LINK0", Const, 0}, + {"IFF_LINK1", Const, 0}, + {"IFF_LINK2", Const, 0}, + {"IFF_LOOPBACK", Const, 0}, + {"IFF_MASTER", Const, 0}, + {"IFF_MONITOR", Const, 0}, + {"IFF_MULTICAST", Const, 0}, + {"IFF_NOARP", Const, 0}, + {"IFF_NOTRAILERS", Const, 0}, + {"IFF_NO_PI", Const, 0}, + {"IFF_OACTIVE", Const, 0}, + {"IFF_ONE_QUEUE", Const, 0}, + {"IFF_POINTOPOINT", Const, 0}, + {"IFF_POINTTOPOINT", Const, 0}, + {"IFF_PORTSEL", Const, 0}, + {"IFF_PPROMISC", Const, 0}, + {"IFF_PROMISC", Const, 0}, + {"IFF_RENAMING", Const, 0}, + {"IFF_RUNNING", Const, 0}, + {"IFF_SIMPLEX", Const, 0}, + {"IFF_SLAVE", Const, 0}, + {"IFF_SMART", Const, 0}, + {"IFF_STATICARP", Const, 0}, + {"IFF_TAP", Const, 0}, + {"IFF_TUN", Const, 0}, + {"IFF_TUN_EXCL", Const, 0}, + {"IFF_UP", Const, 0}, + {"IFF_VNET_HDR", Const, 0}, + {"IFLA_ADDRESS", Const, 0}, + {"IFLA_BROADCAST", Const, 0}, + {"IFLA_COST", Const, 0}, + {"IFLA_IFALIAS", Const, 0}, + {"IFLA_IFNAME", Const, 0}, + {"IFLA_LINK", Const, 0}, + {"IFLA_LINKINFO", Const, 0}, + {"IFLA_LINKMODE", Const, 0}, + {"IFLA_MAP", Const, 0}, + {"IFLA_MASTER", Const, 0}, + {"IFLA_MAX", Const, 0}, + {"IFLA_MTU", Const, 0}, + {"IFLA_NET_NS_PID", Const, 0}, + {"IFLA_OPERSTATE", Const, 0}, + {"IFLA_PRIORITY", Const, 0}, + {"IFLA_PROTINFO", Const, 0}, + {"IFLA_QDISC", Const, 0}, + {"IFLA_STATS", Const, 0}, + {"IFLA_TXQLEN", Const, 0}, + {"IFLA_UNSPEC", Const, 0}, + {"IFLA_WEIGHT", Const, 0}, + {"IFLA_WIRELESS", Const, 0}, + {"IFNAMSIZ", Const, 0}, + {"IFT_1822", Const, 0}, + {"IFT_A12MPPSWITCH", Const, 0}, + {"IFT_AAL2", Const, 0}, + {"IFT_AAL5", Const, 0}, + {"IFT_ADSL", Const, 0}, + {"IFT_AFLANE8023", Const, 0}, + {"IFT_AFLANE8025", Const, 0}, + {"IFT_ARAP", Const, 0}, + {"IFT_ARCNET", Const, 0}, + {"IFT_ARCNETPLUS", Const, 0}, + {"IFT_ASYNC", Const, 0}, + {"IFT_ATM", Const, 0}, + {"IFT_ATMDXI", Const, 0}, + {"IFT_ATMFUNI", Const, 0}, + {"IFT_ATMIMA", Const, 0}, + {"IFT_ATMLOGICAL", Const, 0}, + {"IFT_ATMRADIO", Const, 0}, + {"IFT_ATMSUBINTERFACE", Const, 0}, + {"IFT_ATMVCIENDPT", Const, 0}, + {"IFT_ATMVIRTUAL", Const, 0}, + {"IFT_BGPPOLICYACCOUNTING", Const, 0}, + {"IFT_BLUETOOTH", Const, 1}, + {"IFT_BRIDGE", Const, 0}, + {"IFT_BSC", Const, 0}, + {"IFT_CARP", Const, 0}, + {"IFT_CCTEMUL", Const, 0}, + {"IFT_CELLULAR", Const, 0}, + {"IFT_CEPT", Const, 0}, + {"IFT_CES", Const, 0}, + {"IFT_CHANNEL", Const, 0}, + {"IFT_CNR", Const, 0}, + {"IFT_COFFEE", Const, 0}, + {"IFT_COMPOSITELINK", Const, 0}, + {"IFT_DCN", Const, 0}, + {"IFT_DIGITALPOWERLINE", Const, 0}, + {"IFT_DIGITALWRAPPEROVERHEADCHANNEL", Const, 0}, + {"IFT_DLSW", Const, 0}, + {"IFT_DOCSCABLEDOWNSTREAM", Const, 0}, + {"IFT_DOCSCABLEMACLAYER", Const, 0}, + {"IFT_DOCSCABLEUPSTREAM", Const, 0}, + {"IFT_DOCSCABLEUPSTREAMCHANNEL", Const, 1}, + {"IFT_DS0", Const, 0}, + {"IFT_DS0BUNDLE", Const, 0}, + {"IFT_DS1FDL", Const, 0}, + {"IFT_DS3", Const, 0}, + {"IFT_DTM", Const, 0}, + {"IFT_DUMMY", Const, 1}, + {"IFT_DVBASILN", Const, 0}, + {"IFT_DVBASIOUT", Const, 0}, + {"IFT_DVBRCCDOWNSTREAM", Const, 0}, + {"IFT_DVBRCCMACLAYER", Const, 0}, + {"IFT_DVBRCCUPSTREAM", Const, 0}, + {"IFT_ECONET", Const, 1}, + {"IFT_ENC", Const, 0}, + {"IFT_EON", Const, 0}, + {"IFT_EPLRS", Const, 0}, + {"IFT_ESCON", Const, 0}, + {"IFT_ETHER", Const, 0}, + {"IFT_FAITH", Const, 0}, + {"IFT_FAST", Const, 0}, + {"IFT_FASTETHER", Const, 0}, + {"IFT_FASTETHERFX", Const, 0}, + {"IFT_FDDI", Const, 0}, + {"IFT_FIBRECHANNEL", Const, 0}, + {"IFT_FRAMERELAYINTERCONNECT", Const, 0}, + {"IFT_FRAMERELAYMPI", Const, 0}, + {"IFT_FRDLCIENDPT", Const, 0}, + {"IFT_FRELAY", Const, 0}, + {"IFT_FRELAYDCE", Const, 0}, + {"IFT_FRF16MFRBUNDLE", Const, 0}, + {"IFT_FRFORWARD", Const, 0}, + {"IFT_G703AT2MB", Const, 0}, + {"IFT_G703AT64K", Const, 0}, + {"IFT_GIF", Const, 0}, + {"IFT_GIGABITETHERNET", Const, 0}, + {"IFT_GR303IDT", Const, 0}, + {"IFT_GR303RDT", Const, 0}, + {"IFT_H323GATEKEEPER", Const, 0}, + {"IFT_H323PROXY", Const, 0}, + {"IFT_HDH1822", Const, 0}, + {"IFT_HDLC", Const, 0}, + {"IFT_HDSL2", Const, 0}, + {"IFT_HIPERLAN2", Const, 0}, + {"IFT_HIPPI", Const, 0}, + {"IFT_HIPPIINTERFACE", Const, 0}, + {"IFT_HOSTPAD", Const, 0}, + {"IFT_HSSI", Const, 0}, + {"IFT_HY", Const, 0}, + {"IFT_IBM370PARCHAN", Const, 0}, + {"IFT_IDSL", Const, 0}, + {"IFT_IEEE1394", Const, 0}, + {"IFT_IEEE80211", Const, 0}, + {"IFT_IEEE80212", Const, 0}, + {"IFT_IEEE8023ADLAG", Const, 0}, + {"IFT_IFGSN", Const, 0}, + {"IFT_IMT", Const, 0}, + {"IFT_INFINIBAND", Const, 1}, + {"IFT_INTERLEAVE", Const, 0}, + {"IFT_IP", Const, 0}, + {"IFT_IPFORWARD", Const, 0}, + {"IFT_IPOVERATM", Const, 0}, + {"IFT_IPOVERCDLC", Const, 0}, + {"IFT_IPOVERCLAW", Const, 0}, + {"IFT_IPSWITCH", Const, 0}, + {"IFT_IPXIP", Const, 0}, + {"IFT_ISDN", Const, 0}, + {"IFT_ISDNBASIC", Const, 0}, + {"IFT_ISDNPRIMARY", Const, 0}, + {"IFT_ISDNS", Const, 0}, + {"IFT_ISDNU", Const, 0}, + {"IFT_ISO88022LLC", Const, 0}, + {"IFT_ISO88023", Const, 0}, + {"IFT_ISO88024", Const, 0}, + {"IFT_ISO88025", Const, 0}, + {"IFT_ISO88025CRFPINT", Const, 0}, + {"IFT_ISO88025DTR", Const, 0}, + {"IFT_ISO88025FIBER", Const, 0}, + {"IFT_ISO88026", Const, 0}, + {"IFT_ISUP", Const, 0}, + {"IFT_L2VLAN", Const, 0}, + {"IFT_L3IPVLAN", Const, 0}, + {"IFT_L3IPXVLAN", Const, 0}, + {"IFT_LAPB", Const, 0}, + {"IFT_LAPD", Const, 0}, + {"IFT_LAPF", Const, 0}, + {"IFT_LINEGROUP", Const, 1}, + {"IFT_LOCALTALK", Const, 0}, + {"IFT_LOOP", Const, 0}, + {"IFT_MEDIAMAILOVERIP", Const, 0}, + {"IFT_MFSIGLINK", Const, 0}, + {"IFT_MIOX25", Const, 0}, + {"IFT_MODEM", Const, 0}, + {"IFT_MPC", Const, 0}, + {"IFT_MPLS", Const, 0}, + {"IFT_MPLSTUNNEL", Const, 0}, + {"IFT_MSDSL", Const, 0}, + {"IFT_MVL", Const, 0}, + {"IFT_MYRINET", Const, 0}, + {"IFT_NFAS", Const, 0}, + {"IFT_NSIP", Const, 0}, + {"IFT_OPTICALCHANNEL", Const, 0}, + {"IFT_OPTICALTRANSPORT", Const, 0}, + {"IFT_OTHER", Const, 0}, + {"IFT_P10", Const, 0}, + {"IFT_P80", Const, 0}, + {"IFT_PARA", Const, 0}, + {"IFT_PDP", Const, 0}, + {"IFT_PFLOG", Const, 0}, + {"IFT_PFLOW", Const, 1}, + {"IFT_PFSYNC", Const, 0}, + {"IFT_PLC", Const, 0}, + {"IFT_PON155", Const, 1}, + {"IFT_PON622", Const, 1}, + {"IFT_POS", Const, 0}, + {"IFT_PPP", Const, 0}, + {"IFT_PPPMULTILINKBUNDLE", Const, 0}, + {"IFT_PROPATM", Const, 1}, + {"IFT_PROPBWAP2MP", Const, 0}, + {"IFT_PROPCNLS", Const, 0}, + {"IFT_PROPDOCSWIRELESSDOWNSTREAM", Const, 0}, + {"IFT_PROPDOCSWIRELESSMACLAYER", Const, 0}, + {"IFT_PROPDOCSWIRELESSUPSTREAM", Const, 0}, + {"IFT_PROPMUX", Const, 0}, + {"IFT_PROPVIRTUAL", Const, 0}, + {"IFT_PROPWIRELESSP2P", Const, 0}, + {"IFT_PTPSERIAL", Const, 0}, + {"IFT_PVC", Const, 0}, + {"IFT_Q2931", Const, 1}, + {"IFT_QLLC", Const, 0}, + {"IFT_RADIOMAC", Const, 0}, + {"IFT_RADSL", Const, 0}, + {"IFT_REACHDSL", Const, 0}, + {"IFT_RFC1483", Const, 0}, + {"IFT_RS232", Const, 0}, + {"IFT_RSRB", Const, 0}, + {"IFT_SDLC", Const, 0}, + {"IFT_SDSL", Const, 0}, + {"IFT_SHDSL", Const, 0}, + {"IFT_SIP", Const, 0}, + {"IFT_SIPSIG", Const, 1}, + {"IFT_SIPTG", Const, 1}, + {"IFT_SLIP", Const, 0}, + {"IFT_SMDSDXI", Const, 0}, + {"IFT_SMDSICIP", Const, 0}, + {"IFT_SONET", Const, 0}, + {"IFT_SONETOVERHEADCHANNEL", Const, 0}, + {"IFT_SONETPATH", Const, 0}, + {"IFT_SONETVT", Const, 0}, + {"IFT_SRP", Const, 0}, + {"IFT_SS7SIGLINK", Const, 0}, + {"IFT_STACKTOSTACK", Const, 0}, + {"IFT_STARLAN", Const, 0}, + {"IFT_STF", Const, 0}, + {"IFT_T1", Const, 0}, + {"IFT_TDLC", Const, 0}, + {"IFT_TELINK", Const, 1}, + {"IFT_TERMPAD", Const, 0}, + {"IFT_TR008", Const, 0}, + {"IFT_TRANSPHDLC", Const, 0}, + {"IFT_TUNNEL", Const, 0}, + {"IFT_ULTRA", Const, 0}, + {"IFT_USB", Const, 0}, + {"IFT_V11", Const, 0}, + {"IFT_V35", Const, 0}, + {"IFT_V36", Const, 0}, + {"IFT_V37", Const, 0}, + {"IFT_VDSL", Const, 0}, + {"IFT_VIRTUALIPADDRESS", Const, 0}, + {"IFT_VIRTUALTG", Const, 1}, + {"IFT_VOICEDID", Const, 1}, + {"IFT_VOICEEM", Const, 0}, + {"IFT_VOICEEMFGD", Const, 1}, + {"IFT_VOICEENCAP", Const, 0}, + {"IFT_VOICEFGDEANA", Const, 1}, + {"IFT_VOICEFXO", Const, 0}, + {"IFT_VOICEFXS", Const, 0}, + {"IFT_VOICEOVERATM", Const, 0}, + {"IFT_VOICEOVERCABLE", Const, 1}, + {"IFT_VOICEOVERFRAMERELAY", Const, 0}, + {"IFT_VOICEOVERIP", Const, 0}, + {"IFT_X213", Const, 0}, + {"IFT_X25", Const, 0}, + {"IFT_X25DDN", Const, 0}, + {"IFT_X25HUNTGROUP", Const, 0}, + {"IFT_X25MLP", Const, 0}, + {"IFT_X25PLE", Const, 0}, + {"IFT_XETHER", Const, 0}, + {"IGNBRK", Const, 0}, + {"IGNCR", Const, 0}, + {"IGNORE", Const, 0}, + {"IGNPAR", Const, 0}, + {"IMAXBEL", Const, 0}, + {"INFINITE", Const, 0}, + {"INLCR", Const, 0}, + {"INPCK", Const, 0}, + {"INVALID_FILE_ATTRIBUTES", Const, 0}, + {"IN_ACCESS", Const, 0}, + {"IN_ALL_EVENTS", Const, 0}, + {"IN_ATTRIB", Const, 0}, + {"IN_CLASSA_HOST", Const, 0}, + {"IN_CLASSA_MAX", Const, 0}, + {"IN_CLASSA_NET", Const, 0}, + {"IN_CLASSA_NSHIFT", Const, 0}, + {"IN_CLASSB_HOST", Const, 0}, + {"IN_CLASSB_MAX", Const, 0}, + {"IN_CLASSB_NET", Const, 0}, + {"IN_CLASSB_NSHIFT", Const, 0}, + {"IN_CLASSC_HOST", Const, 0}, + {"IN_CLASSC_NET", Const, 0}, + {"IN_CLASSC_NSHIFT", Const, 0}, + {"IN_CLASSD_HOST", Const, 0}, + {"IN_CLASSD_NET", Const, 0}, + {"IN_CLASSD_NSHIFT", Const, 0}, + {"IN_CLOEXEC", Const, 0}, + {"IN_CLOSE", Const, 0}, + {"IN_CLOSE_NOWRITE", Const, 0}, + {"IN_CLOSE_WRITE", Const, 0}, + {"IN_CREATE", Const, 0}, + {"IN_DELETE", Const, 0}, + {"IN_DELETE_SELF", Const, 0}, + {"IN_DONT_FOLLOW", Const, 0}, + {"IN_EXCL_UNLINK", Const, 0}, + {"IN_IGNORED", Const, 0}, + {"IN_ISDIR", Const, 0}, + {"IN_LINKLOCALNETNUM", Const, 0}, + {"IN_LOOPBACKNET", Const, 0}, + {"IN_MASK_ADD", Const, 0}, + {"IN_MODIFY", Const, 0}, + {"IN_MOVE", Const, 0}, + {"IN_MOVED_FROM", Const, 0}, + {"IN_MOVED_TO", Const, 0}, + {"IN_MOVE_SELF", Const, 0}, + {"IN_NONBLOCK", Const, 0}, + {"IN_ONESHOT", Const, 0}, + {"IN_ONLYDIR", Const, 0}, + {"IN_OPEN", Const, 0}, + {"IN_Q_OVERFLOW", Const, 0}, + {"IN_RFC3021_HOST", Const, 1}, + {"IN_RFC3021_MASK", Const, 1}, + {"IN_RFC3021_NET", Const, 1}, + {"IN_RFC3021_NSHIFT", Const, 1}, + {"IN_UNMOUNT", Const, 0}, + {"IOC_IN", Const, 1}, + {"IOC_INOUT", Const, 1}, + {"IOC_OUT", Const, 1}, + {"IOC_VENDOR", Const, 3}, + {"IOC_WS2", Const, 1}, + {"IO_REPARSE_TAG_SYMLINK", Const, 4}, + {"IPMreq", Type, 0}, + {"IPMreq.Interface", Field, 0}, + {"IPMreq.Multiaddr", Field, 0}, + {"IPMreqn", Type, 0}, + {"IPMreqn.Address", Field, 0}, + {"IPMreqn.Ifindex", Field, 0}, + {"IPMreqn.Multiaddr", Field, 0}, + {"IPPROTO_3PC", Const, 0}, + {"IPPROTO_ADFS", Const, 0}, + {"IPPROTO_AH", Const, 0}, + {"IPPROTO_AHIP", Const, 0}, + {"IPPROTO_APES", Const, 0}, + {"IPPROTO_ARGUS", Const, 0}, + {"IPPROTO_AX25", Const, 0}, + {"IPPROTO_BHA", Const, 0}, + {"IPPROTO_BLT", Const, 0}, + {"IPPROTO_BRSATMON", Const, 0}, + {"IPPROTO_CARP", Const, 0}, + {"IPPROTO_CFTP", Const, 0}, + {"IPPROTO_CHAOS", Const, 0}, + {"IPPROTO_CMTP", Const, 0}, + {"IPPROTO_COMP", Const, 0}, + {"IPPROTO_CPHB", Const, 0}, + {"IPPROTO_CPNX", Const, 0}, + {"IPPROTO_DCCP", Const, 0}, + {"IPPROTO_DDP", Const, 0}, + {"IPPROTO_DGP", Const, 0}, + {"IPPROTO_DIVERT", Const, 0}, + {"IPPROTO_DIVERT_INIT", Const, 3}, + {"IPPROTO_DIVERT_RESP", Const, 3}, + {"IPPROTO_DONE", Const, 0}, + {"IPPROTO_DSTOPTS", Const, 0}, + {"IPPROTO_EGP", Const, 0}, + {"IPPROTO_EMCON", Const, 0}, + {"IPPROTO_ENCAP", Const, 0}, + {"IPPROTO_EON", Const, 0}, + {"IPPROTO_ESP", Const, 0}, + {"IPPROTO_ETHERIP", Const, 0}, + {"IPPROTO_FRAGMENT", Const, 0}, + {"IPPROTO_GGP", Const, 0}, + {"IPPROTO_GMTP", Const, 0}, + {"IPPROTO_GRE", Const, 0}, + {"IPPROTO_HELLO", Const, 0}, + {"IPPROTO_HMP", Const, 0}, + {"IPPROTO_HOPOPTS", Const, 0}, + {"IPPROTO_ICMP", Const, 0}, + {"IPPROTO_ICMPV6", Const, 0}, + {"IPPROTO_IDP", Const, 0}, + {"IPPROTO_IDPR", Const, 0}, + {"IPPROTO_IDRP", Const, 0}, + {"IPPROTO_IGMP", Const, 0}, + {"IPPROTO_IGP", Const, 0}, + {"IPPROTO_IGRP", Const, 0}, + {"IPPROTO_IL", Const, 0}, + {"IPPROTO_INLSP", Const, 0}, + {"IPPROTO_INP", Const, 0}, + {"IPPROTO_IP", Const, 0}, + {"IPPROTO_IPCOMP", Const, 0}, + {"IPPROTO_IPCV", Const, 0}, + {"IPPROTO_IPEIP", Const, 0}, + {"IPPROTO_IPIP", Const, 0}, + {"IPPROTO_IPPC", Const, 0}, + {"IPPROTO_IPV4", Const, 0}, + {"IPPROTO_IPV6", Const, 0}, + {"IPPROTO_IPV6_ICMP", Const, 1}, + {"IPPROTO_IRTP", Const, 0}, + {"IPPROTO_KRYPTOLAN", Const, 0}, + {"IPPROTO_LARP", Const, 0}, + {"IPPROTO_LEAF1", Const, 0}, + {"IPPROTO_LEAF2", Const, 0}, + {"IPPROTO_MAX", Const, 0}, + {"IPPROTO_MAXID", Const, 0}, + {"IPPROTO_MEAS", Const, 0}, + {"IPPROTO_MH", Const, 1}, + {"IPPROTO_MHRP", Const, 0}, + {"IPPROTO_MICP", Const, 0}, + {"IPPROTO_MOBILE", Const, 0}, + {"IPPROTO_MPLS", Const, 1}, + {"IPPROTO_MTP", Const, 0}, + {"IPPROTO_MUX", Const, 0}, + {"IPPROTO_ND", Const, 0}, + {"IPPROTO_NHRP", Const, 0}, + {"IPPROTO_NONE", Const, 0}, + {"IPPROTO_NSP", Const, 0}, + {"IPPROTO_NVPII", Const, 0}, + {"IPPROTO_OLD_DIVERT", Const, 0}, + {"IPPROTO_OSPFIGP", Const, 0}, + {"IPPROTO_PFSYNC", Const, 0}, + {"IPPROTO_PGM", Const, 0}, + {"IPPROTO_PIGP", Const, 0}, + {"IPPROTO_PIM", Const, 0}, + {"IPPROTO_PRM", Const, 0}, + {"IPPROTO_PUP", Const, 0}, + {"IPPROTO_PVP", Const, 0}, + {"IPPROTO_RAW", Const, 0}, + {"IPPROTO_RCCMON", Const, 0}, + {"IPPROTO_RDP", Const, 0}, + {"IPPROTO_ROUTING", Const, 0}, + {"IPPROTO_RSVP", Const, 0}, + {"IPPROTO_RVD", Const, 0}, + {"IPPROTO_SATEXPAK", Const, 0}, + {"IPPROTO_SATMON", Const, 0}, + {"IPPROTO_SCCSP", Const, 0}, + {"IPPROTO_SCTP", Const, 0}, + {"IPPROTO_SDRP", Const, 0}, + {"IPPROTO_SEND", Const, 1}, + {"IPPROTO_SEP", Const, 0}, + {"IPPROTO_SKIP", Const, 0}, + {"IPPROTO_SPACER", Const, 0}, + {"IPPROTO_SRPC", Const, 0}, + {"IPPROTO_ST", Const, 0}, + {"IPPROTO_SVMTP", Const, 0}, + {"IPPROTO_SWIPE", Const, 0}, + {"IPPROTO_TCF", Const, 0}, + {"IPPROTO_TCP", Const, 0}, + {"IPPROTO_TLSP", Const, 0}, + {"IPPROTO_TP", Const, 0}, + {"IPPROTO_TPXX", Const, 0}, + {"IPPROTO_TRUNK1", Const, 0}, + {"IPPROTO_TRUNK2", Const, 0}, + {"IPPROTO_TTP", Const, 0}, + {"IPPROTO_UDP", Const, 0}, + {"IPPROTO_UDPLITE", Const, 0}, + {"IPPROTO_VINES", Const, 0}, + {"IPPROTO_VISA", Const, 0}, + {"IPPROTO_VMTP", Const, 0}, + {"IPPROTO_VRRP", Const, 1}, + {"IPPROTO_WBEXPAK", Const, 0}, + {"IPPROTO_WBMON", Const, 0}, + {"IPPROTO_WSN", Const, 0}, + {"IPPROTO_XNET", Const, 0}, + {"IPPROTO_XTP", Const, 0}, + {"IPV6_2292DSTOPTS", Const, 0}, + {"IPV6_2292HOPLIMIT", Const, 0}, + {"IPV6_2292HOPOPTS", Const, 0}, + {"IPV6_2292NEXTHOP", Const, 0}, + {"IPV6_2292PKTINFO", Const, 0}, + {"IPV6_2292PKTOPTIONS", Const, 0}, + {"IPV6_2292RTHDR", Const, 0}, + {"IPV6_ADDRFORM", Const, 0}, + {"IPV6_ADD_MEMBERSHIP", Const, 0}, + {"IPV6_AUTHHDR", Const, 0}, + {"IPV6_AUTH_LEVEL", Const, 1}, + {"IPV6_AUTOFLOWLABEL", Const, 0}, + {"IPV6_BINDANY", Const, 0}, + {"IPV6_BINDV6ONLY", Const, 0}, + {"IPV6_BOUND_IF", Const, 0}, + {"IPV6_CHECKSUM", Const, 0}, + {"IPV6_DEFAULT_MULTICAST_HOPS", Const, 0}, + {"IPV6_DEFAULT_MULTICAST_LOOP", Const, 0}, + {"IPV6_DEFHLIM", Const, 0}, + {"IPV6_DONTFRAG", Const, 0}, + {"IPV6_DROP_MEMBERSHIP", Const, 0}, + {"IPV6_DSTOPTS", Const, 0}, + {"IPV6_ESP_NETWORK_LEVEL", Const, 1}, + {"IPV6_ESP_TRANS_LEVEL", Const, 1}, + {"IPV6_FAITH", Const, 0}, + {"IPV6_FLOWINFO_MASK", Const, 0}, + {"IPV6_FLOWLABEL_MASK", Const, 0}, + {"IPV6_FRAGTTL", Const, 0}, + {"IPV6_FW_ADD", Const, 0}, + {"IPV6_FW_DEL", Const, 0}, + {"IPV6_FW_FLUSH", Const, 0}, + {"IPV6_FW_GET", Const, 0}, + {"IPV6_FW_ZERO", Const, 0}, + {"IPV6_HLIMDEC", Const, 0}, + {"IPV6_HOPLIMIT", Const, 0}, + {"IPV6_HOPOPTS", Const, 0}, + {"IPV6_IPCOMP_LEVEL", Const, 1}, + {"IPV6_IPSEC_POLICY", Const, 0}, + {"IPV6_JOIN_ANYCAST", Const, 0}, + {"IPV6_JOIN_GROUP", Const, 0}, + {"IPV6_LEAVE_ANYCAST", Const, 0}, + {"IPV6_LEAVE_GROUP", Const, 0}, + {"IPV6_MAXHLIM", Const, 0}, + {"IPV6_MAXOPTHDR", Const, 0}, + {"IPV6_MAXPACKET", Const, 0}, + {"IPV6_MAX_GROUP_SRC_FILTER", Const, 0}, + {"IPV6_MAX_MEMBERSHIPS", Const, 0}, + {"IPV6_MAX_SOCK_SRC_FILTER", Const, 0}, + {"IPV6_MIN_MEMBERSHIPS", Const, 0}, + {"IPV6_MMTU", Const, 0}, + {"IPV6_MSFILTER", Const, 0}, + {"IPV6_MTU", Const, 0}, + {"IPV6_MTU_DISCOVER", Const, 0}, + {"IPV6_MULTICAST_HOPS", Const, 0}, + {"IPV6_MULTICAST_IF", Const, 0}, + {"IPV6_MULTICAST_LOOP", Const, 0}, + {"IPV6_NEXTHOP", Const, 0}, + {"IPV6_OPTIONS", Const, 1}, + {"IPV6_PATHMTU", Const, 0}, + {"IPV6_PIPEX", Const, 1}, + {"IPV6_PKTINFO", Const, 0}, + {"IPV6_PMTUDISC_DO", Const, 0}, + {"IPV6_PMTUDISC_DONT", Const, 0}, + {"IPV6_PMTUDISC_PROBE", Const, 0}, + {"IPV6_PMTUDISC_WANT", Const, 0}, + {"IPV6_PORTRANGE", Const, 0}, + {"IPV6_PORTRANGE_DEFAULT", Const, 0}, + {"IPV6_PORTRANGE_HIGH", Const, 0}, + {"IPV6_PORTRANGE_LOW", Const, 0}, + {"IPV6_PREFER_TEMPADDR", Const, 0}, + {"IPV6_RECVDSTOPTS", Const, 0}, + {"IPV6_RECVDSTPORT", Const, 3}, + {"IPV6_RECVERR", Const, 0}, + {"IPV6_RECVHOPLIMIT", Const, 0}, + {"IPV6_RECVHOPOPTS", Const, 0}, + {"IPV6_RECVPATHMTU", Const, 0}, + {"IPV6_RECVPKTINFO", Const, 0}, + {"IPV6_RECVRTHDR", Const, 0}, + {"IPV6_RECVTCLASS", Const, 0}, + {"IPV6_ROUTER_ALERT", Const, 0}, + {"IPV6_RTABLE", Const, 1}, + {"IPV6_RTHDR", Const, 0}, + {"IPV6_RTHDRDSTOPTS", Const, 0}, + {"IPV6_RTHDR_LOOSE", Const, 0}, + {"IPV6_RTHDR_STRICT", Const, 0}, + {"IPV6_RTHDR_TYPE_0", Const, 0}, + {"IPV6_RXDSTOPTS", Const, 0}, + {"IPV6_RXHOPOPTS", Const, 0}, + {"IPV6_SOCKOPT_RESERVED1", Const, 0}, + {"IPV6_TCLASS", Const, 0}, + {"IPV6_UNICAST_HOPS", Const, 0}, + {"IPV6_USE_MIN_MTU", Const, 0}, + {"IPV6_V6ONLY", Const, 0}, + {"IPV6_VERSION", Const, 0}, + {"IPV6_VERSION_MASK", Const, 0}, + {"IPV6_XFRM_POLICY", Const, 0}, + {"IP_ADD_MEMBERSHIP", Const, 0}, + {"IP_ADD_SOURCE_MEMBERSHIP", Const, 0}, + {"IP_AUTH_LEVEL", Const, 1}, + {"IP_BINDANY", Const, 0}, + {"IP_BLOCK_SOURCE", Const, 0}, + {"IP_BOUND_IF", Const, 0}, + {"IP_DEFAULT_MULTICAST_LOOP", Const, 0}, + {"IP_DEFAULT_MULTICAST_TTL", Const, 0}, + {"IP_DF", Const, 0}, + {"IP_DIVERTFL", Const, 3}, + {"IP_DONTFRAG", Const, 0}, + {"IP_DROP_MEMBERSHIP", Const, 0}, + {"IP_DROP_SOURCE_MEMBERSHIP", Const, 0}, + {"IP_DUMMYNET3", Const, 0}, + {"IP_DUMMYNET_CONFIGURE", Const, 0}, + {"IP_DUMMYNET_DEL", Const, 0}, + {"IP_DUMMYNET_FLUSH", Const, 0}, + {"IP_DUMMYNET_GET", Const, 0}, + {"IP_EF", Const, 1}, + {"IP_ERRORMTU", Const, 1}, + {"IP_ESP_NETWORK_LEVEL", Const, 1}, + {"IP_ESP_TRANS_LEVEL", Const, 1}, + {"IP_FAITH", Const, 0}, + {"IP_FREEBIND", Const, 0}, + {"IP_FW3", Const, 0}, + {"IP_FW_ADD", Const, 0}, + {"IP_FW_DEL", Const, 0}, + {"IP_FW_FLUSH", Const, 0}, + {"IP_FW_GET", Const, 0}, + {"IP_FW_NAT_CFG", Const, 0}, + {"IP_FW_NAT_DEL", Const, 0}, + {"IP_FW_NAT_GET_CONFIG", Const, 0}, + {"IP_FW_NAT_GET_LOG", Const, 0}, + {"IP_FW_RESETLOG", Const, 0}, + {"IP_FW_TABLE_ADD", Const, 0}, + {"IP_FW_TABLE_DEL", Const, 0}, + {"IP_FW_TABLE_FLUSH", Const, 0}, + {"IP_FW_TABLE_GETSIZE", Const, 0}, + {"IP_FW_TABLE_LIST", Const, 0}, + {"IP_FW_ZERO", Const, 0}, + {"IP_HDRINCL", Const, 0}, + {"IP_IPCOMP_LEVEL", Const, 1}, + {"IP_IPSECFLOWINFO", Const, 1}, + {"IP_IPSEC_LOCAL_AUTH", Const, 1}, + {"IP_IPSEC_LOCAL_CRED", Const, 1}, + {"IP_IPSEC_LOCAL_ID", Const, 1}, + {"IP_IPSEC_POLICY", Const, 0}, + {"IP_IPSEC_REMOTE_AUTH", Const, 1}, + {"IP_IPSEC_REMOTE_CRED", Const, 1}, + {"IP_IPSEC_REMOTE_ID", Const, 1}, + {"IP_MAXPACKET", Const, 0}, + {"IP_MAX_GROUP_SRC_FILTER", Const, 0}, + {"IP_MAX_MEMBERSHIPS", Const, 0}, + {"IP_MAX_SOCK_MUTE_FILTER", Const, 0}, + {"IP_MAX_SOCK_SRC_FILTER", Const, 0}, + {"IP_MAX_SOURCE_FILTER", Const, 0}, + {"IP_MF", Const, 0}, + {"IP_MINFRAGSIZE", Const, 1}, + {"IP_MINTTL", Const, 0}, + {"IP_MIN_MEMBERSHIPS", Const, 0}, + {"IP_MSFILTER", Const, 0}, + {"IP_MSS", Const, 0}, + {"IP_MTU", Const, 0}, + {"IP_MTU_DISCOVER", Const, 0}, + {"IP_MULTICAST_IF", Const, 0}, + {"IP_MULTICAST_IFINDEX", Const, 0}, + {"IP_MULTICAST_LOOP", Const, 0}, + {"IP_MULTICAST_TTL", Const, 0}, + {"IP_MULTICAST_VIF", Const, 0}, + {"IP_NAT__XXX", Const, 0}, + {"IP_OFFMASK", Const, 0}, + {"IP_OLD_FW_ADD", Const, 0}, + {"IP_OLD_FW_DEL", Const, 0}, + {"IP_OLD_FW_FLUSH", Const, 0}, + {"IP_OLD_FW_GET", Const, 0}, + {"IP_OLD_FW_RESETLOG", Const, 0}, + {"IP_OLD_FW_ZERO", Const, 0}, + {"IP_ONESBCAST", Const, 0}, + {"IP_OPTIONS", Const, 0}, + {"IP_ORIGDSTADDR", Const, 0}, + {"IP_PASSSEC", Const, 0}, + {"IP_PIPEX", Const, 1}, + {"IP_PKTINFO", Const, 0}, + {"IP_PKTOPTIONS", Const, 0}, + {"IP_PMTUDISC", Const, 0}, + {"IP_PMTUDISC_DO", Const, 0}, + {"IP_PMTUDISC_DONT", Const, 0}, + {"IP_PMTUDISC_PROBE", Const, 0}, + {"IP_PMTUDISC_WANT", Const, 0}, + {"IP_PORTRANGE", Const, 0}, + {"IP_PORTRANGE_DEFAULT", Const, 0}, + {"IP_PORTRANGE_HIGH", Const, 0}, + {"IP_PORTRANGE_LOW", Const, 0}, + {"IP_RECVDSTADDR", Const, 0}, + {"IP_RECVDSTPORT", Const, 1}, + {"IP_RECVERR", Const, 0}, + {"IP_RECVIF", Const, 0}, + {"IP_RECVOPTS", Const, 0}, + {"IP_RECVORIGDSTADDR", Const, 0}, + {"IP_RECVPKTINFO", Const, 0}, + {"IP_RECVRETOPTS", Const, 0}, + {"IP_RECVRTABLE", Const, 1}, + {"IP_RECVTOS", Const, 0}, + {"IP_RECVTTL", Const, 0}, + {"IP_RETOPTS", Const, 0}, + {"IP_RF", Const, 0}, + {"IP_ROUTER_ALERT", Const, 0}, + {"IP_RSVP_OFF", Const, 0}, + {"IP_RSVP_ON", Const, 0}, + {"IP_RSVP_VIF_OFF", Const, 0}, + {"IP_RSVP_VIF_ON", Const, 0}, + {"IP_RTABLE", Const, 1}, + {"IP_SENDSRCADDR", Const, 0}, + {"IP_STRIPHDR", Const, 0}, + {"IP_TOS", Const, 0}, + {"IP_TRAFFIC_MGT_BACKGROUND", Const, 0}, + {"IP_TRANSPARENT", Const, 0}, + {"IP_TTL", Const, 0}, + {"IP_UNBLOCK_SOURCE", Const, 0}, + {"IP_XFRM_POLICY", Const, 0}, + {"IPv6MTUInfo", Type, 2}, + {"IPv6MTUInfo.Addr", Field, 2}, + {"IPv6MTUInfo.Mtu", Field, 2}, + {"IPv6Mreq", Type, 0}, + {"IPv6Mreq.Interface", Field, 0}, + {"IPv6Mreq.Multiaddr", Field, 0}, + {"ISIG", Const, 0}, + {"ISTRIP", Const, 0}, + {"IUCLC", Const, 0}, + {"IUTF8", Const, 0}, + {"IXANY", Const, 0}, + {"IXOFF", Const, 0}, + {"IXON", Const, 0}, + {"IfAddrmsg", Type, 0}, + {"IfAddrmsg.Family", Field, 0}, + {"IfAddrmsg.Flags", Field, 0}, + {"IfAddrmsg.Index", Field, 0}, + {"IfAddrmsg.Prefixlen", Field, 0}, + {"IfAddrmsg.Scope", Field, 0}, + {"IfAnnounceMsghdr", Type, 1}, + {"IfAnnounceMsghdr.Hdrlen", Field, 2}, + {"IfAnnounceMsghdr.Index", Field, 1}, + {"IfAnnounceMsghdr.Msglen", Field, 1}, + {"IfAnnounceMsghdr.Name", Field, 1}, + {"IfAnnounceMsghdr.Type", Field, 1}, + {"IfAnnounceMsghdr.Version", Field, 1}, + {"IfAnnounceMsghdr.What", Field, 1}, + {"IfData", Type, 0}, + {"IfData.Addrlen", Field, 0}, + {"IfData.Baudrate", Field, 0}, + {"IfData.Capabilities", Field, 2}, + {"IfData.Collisions", Field, 0}, + {"IfData.Datalen", Field, 0}, + {"IfData.Epoch", Field, 0}, + {"IfData.Hdrlen", Field, 0}, + {"IfData.Hwassist", Field, 0}, + {"IfData.Ibytes", Field, 0}, + {"IfData.Ierrors", Field, 0}, + {"IfData.Imcasts", Field, 0}, + {"IfData.Ipackets", Field, 0}, + {"IfData.Iqdrops", Field, 0}, + {"IfData.Lastchange", Field, 0}, + {"IfData.Link_state", Field, 0}, + {"IfData.Mclpool", Field, 2}, + {"IfData.Metric", Field, 0}, + {"IfData.Mtu", Field, 0}, + {"IfData.Noproto", Field, 0}, + {"IfData.Obytes", Field, 0}, + {"IfData.Oerrors", Field, 0}, + {"IfData.Omcasts", Field, 0}, + {"IfData.Opackets", Field, 0}, + {"IfData.Pad", Field, 2}, + {"IfData.Pad_cgo_0", Field, 2}, + {"IfData.Pad_cgo_1", Field, 2}, + {"IfData.Physical", Field, 0}, + {"IfData.Recvquota", Field, 0}, + {"IfData.Recvtiming", Field, 0}, + {"IfData.Reserved1", Field, 0}, + {"IfData.Reserved2", Field, 0}, + {"IfData.Spare_char1", Field, 0}, + {"IfData.Spare_char2", Field, 0}, + {"IfData.Type", Field, 0}, + {"IfData.Typelen", Field, 0}, + {"IfData.Unused1", Field, 0}, + {"IfData.Unused2", Field, 0}, + {"IfData.Xmitquota", Field, 0}, + {"IfData.Xmittiming", Field, 0}, + {"IfInfomsg", Type, 0}, + {"IfInfomsg.Change", Field, 0}, + {"IfInfomsg.Family", Field, 0}, + {"IfInfomsg.Flags", Field, 0}, + {"IfInfomsg.Index", Field, 0}, + {"IfInfomsg.Type", Field, 0}, + {"IfInfomsg.X__ifi_pad", Field, 0}, + {"IfMsghdr", Type, 0}, + {"IfMsghdr.Addrs", Field, 0}, + {"IfMsghdr.Data", Field, 0}, + {"IfMsghdr.Flags", Field, 0}, + {"IfMsghdr.Hdrlen", Field, 2}, + {"IfMsghdr.Index", Field, 0}, + {"IfMsghdr.Msglen", Field, 0}, + {"IfMsghdr.Pad1", Field, 2}, + {"IfMsghdr.Pad2", Field, 2}, + {"IfMsghdr.Pad_cgo_0", Field, 0}, + {"IfMsghdr.Pad_cgo_1", Field, 2}, + {"IfMsghdr.Tableid", Field, 2}, + {"IfMsghdr.Type", Field, 0}, + {"IfMsghdr.Version", Field, 0}, + {"IfMsghdr.Xflags", Field, 2}, + {"IfaMsghdr", Type, 0}, + {"IfaMsghdr.Addrs", Field, 0}, + {"IfaMsghdr.Flags", Field, 0}, + {"IfaMsghdr.Hdrlen", Field, 2}, + {"IfaMsghdr.Index", Field, 0}, + {"IfaMsghdr.Metric", Field, 0}, + {"IfaMsghdr.Msglen", Field, 0}, + {"IfaMsghdr.Pad1", Field, 2}, + {"IfaMsghdr.Pad2", Field, 2}, + {"IfaMsghdr.Pad_cgo_0", Field, 0}, + {"IfaMsghdr.Tableid", Field, 2}, + {"IfaMsghdr.Type", Field, 0}, + {"IfaMsghdr.Version", Field, 0}, + {"IfmaMsghdr", Type, 0}, + {"IfmaMsghdr.Addrs", Field, 0}, + {"IfmaMsghdr.Flags", Field, 0}, + {"IfmaMsghdr.Index", Field, 0}, + {"IfmaMsghdr.Msglen", Field, 0}, + {"IfmaMsghdr.Pad_cgo_0", Field, 0}, + {"IfmaMsghdr.Type", Field, 0}, + {"IfmaMsghdr.Version", Field, 0}, + {"IfmaMsghdr2", Type, 0}, + {"IfmaMsghdr2.Addrs", Field, 0}, + {"IfmaMsghdr2.Flags", Field, 0}, + {"IfmaMsghdr2.Index", Field, 0}, + {"IfmaMsghdr2.Msglen", Field, 0}, + {"IfmaMsghdr2.Pad_cgo_0", Field, 0}, + {"IfmaMsghdr2.Refcount", Field, 0}, + {"IfmaMsghdr2.Type", Field, 0}, + {"IfmaMsghdr2.Version", Field, 0}, + {"ImplementsGetwd", Const, 0}, + {"Inet4Pktinfo", Type, 0}, + {"Inet4Pktinfo.Addr", Field, 0}, + {"Inet4Pktinfo.Ifindex", Field, 0}, + {"Inet4Pktinfo.Spec_dst", Field, 0}, + {"Inet6Pktinfo", Type, 0}, + {"Inet6Pktinfo.Addr", Field, 0}, + {"Inet6Pktinfo.Ifindex", Field, 0}, + {"InotifyAddWatch", Func, 0}, + {"InotifyEvent", Type, 0}, + {"InotifyEvent.Cookie", Field, 0}, + {"InotifyEvent.Len", Field, 0}, + {"InotifyEvent.Mask", Field, 0}, + {"InotifyEvent.Name", Field, 0}, + {"InotifyEvent.Wd", Field, 0}, + {"InotifyInit", Func, 0}, + {"InotifyInit1", Func, 0}, + {"InotifyRmWatch", Func, 0}, + {"InterfaceAddrMessage", Type, 0}, + {"InterfaceAddrMessage.Data", Field, 0}, + {"InterfaceAddrMessage.Header", Field, 0}, + {"InterfaceAnnounceMessage", Type, 1}, + {"InterfaceAnnounceMessage.Header", Field, 1}, + {"InterfaceInfo", Type, 0}, + {"InterfaceInfo.Address", Field, 0}, + {"InterfaceInfo.BroadcastAddress", Field, 0}, + {"InterfaceInfo.Flags", Field, 0}, + {"InterfaceInfo.Netmask", Field, 0}, + {"InterfaceMessage", Type, 0}, + {"InterfaceMessage.Data", Field, 0}, + {"InterfaceMessage.Header", Field, 0}, + {"InterfaceMulticastAddrMessage", Type, 0}, + {"InterfaceMulticastAddrMessage.Data", Field, 0}, + {"InterfaceMulticastAddrMessage.Header", Field, 0}, + {"InvalidHandle", Const, 0}, + {"Ioperm", Func, 0}, + {"Iopl", Func, 0}, + {"Iovec", Type, 0}, + {"Iovec.Base", Field, 0}, + {"Iovec.Len", Field, 0}, + {"IpAdapterInfo", Type, 0}, + {"IpAdapterInfo.AdapterName", Field, 0}, + {"IpAdapterInfo.Address", Field, 0}, + {"IpAdapterInfo.AddressLength", Field, 0}, + {"IpAdapterInfo.ComboIndex", Field, 0}, + {"IpAdapterInfo.CurrentIpAddress", Field, 0}, + {"IpAdapterInfo.Description", Field, 0}, + {"IpAdapterInfo.DhcpEnabled", Field, 0}, + {"IpAdapterInfo.DhcpServer", Field, 0}, + {"IpAdapterInfo.GatewayList", Field, 0}, + {"IpAdapterInfo.HaveWins", Field, 0}, + {"IpAdapterInfo.Index", Field, 0}, + {"IpAdapterInfo.IpAddressList", Field, 0}, + {"IpAdapterInfo.LeaseExpires", Field, 0}, + {"IpAdapterInfo.LeaseObtained", Field, 0}, + {"IpAdapterInfo.Next", Field, 0}, + {"IpAdapterInfo.PrimaryWinsServer", Field, 0}, + {"IpAdapterInfo.SecondaryWinsServer", Field, 0}, + {"IpAdapterInfo.Type", Field, 0}, + {"IpAddrString", Type, 0}, + {"IpAddrString.Context", Field, 0}, + {"IpAddrString.IpAddress", Field, 0}, + {"IpAddrString.IpMask", Field, 0}, + {"IpAddrString.Next", Field, 0}, + {"IpAddressString", Type, 0}, + {"IpAddressString.String", Field, 0}, + {"IpMaskString", Type, 0}, + {"IpMaskString.String", Field, 2}, + {"Issetugid", Func, 0}, + {"KEY_ALL_ACCESS", Const, 0}, + {"KEY_CREATE_LINK", Const, 0}, + {"KEY_CREATE_SUB_KEY", Const, 0}, + {"KEY_ENUMERATE_SUB_KEYS", Const, 0}, + {"KEY_EXECUTE", Const, 0}, + {"KEY_NOTIFY", Const, 0}, + {"KEY_QUERY_VALUE", Const, 0}, + {"KEY_READ", Const, 0}, + {"KEY_SET_VALUE", Const, 0}, + {"KEY_WOW64_32KEY", Const, 0}, + {"KEY_WOW64_64KEY", Const, 0}, + {"KEY_WRITE", Const, 0}, + {"Kevent", Func, 0}, + {"Kevent_t", Type, 0}, + {"Kevent_t.Data", Field, 0}, + {"Kevent_t.Fflags", Field, 0}, + {"Kevent_t.Filter", Field, 0}, + {"Kevent_t.Flags", Field, 0}, + {"Kevent_t.Ident", Field, 0}, + {"Kevent_t.Pad_cgo_0", Field, 2}, + {"Kevent_t.Udata", Field, 0}, + {"Kill", Func, 0}, + {"Klogctl", Func, 0}, + {"Kqueue", Func, 0}, + {"LANG_ENGLISH", Const, 0}, + {"LAYERED_PROTOCOL", Const, 2}, + {"LCNT_OVERLOAD_FLUSH", Const, 1}, + {"LINUX_REBOOT_CMD_CAD_OFF", Const, 0}, + {"LINUX_REBOOT_CMD_CAD_ON", Const, 0}, + {"LINUX_REBOOT_CMD_HALT", Const, 0}, + {"LINUX_REBOOT_CMD_KEXEC", Const, 0}, + {"LINUX_REBOOT_CMD_POWER_OFF", Const, 0}, + {"LINUX_REBOOT_CMD_RESTART", Const, 0}, + {"LINUX_REBOOT_CMD_RESTART2", Const, 0}, + {"LINUX_REBOOT_CMD_SW_SUSPEND", Const, 0}, + {"LINUX_REBOOT_MAGIC1", Const, 0}, + {"LINUX_REBOOT_MAGIC2", Const, 0}, + {"LOCK_EX", Const, 0}, + {"LOCK_NB", Const, 0}, + {"LOCK_SH", Const, 0}, + {"LOCK_UN", Const, 0}, + {"LazyDLL", Type, 0}, + {"LazyDLL.Name", Field, 0}, + {"LazyProc", Type, 0}, + {"LazyProc.Name", Field, 0}, + {"Lchown", Func, 0}, + {"Linger", Type, 0}, + {"Linger.Linger", Field, 0}, + {"Linger.Onoff", Field, 0}, + {"Link", Func, 0}, + {"Listen", Func, 0}, + {"Listxattr", Func, 1}, + {"LoadCancelIoEx", Func, 1}, + {"LoadConnectEx", Func, 1}, + {"LoadCreateSymbolicLink", Func, 4}, + {"LoadDLL", Func, 0}, + {"LoadGetAddrInfo", Func, 1}, + {"LoadLibrary", Func, 0}, + {"LoadSetFileCompletionNotificationModes", Func, 2}, + {"LocalFree", Func, 0}, + {"Log2phys_t", Type, 0}, + {"Log2phys_t.Contigbytes", Field, 0}, + {"Log2phys_t.Devoffset", Field, 0}, + {"Log2phys_t.Flags", Field, 0}, + {"LookupAccountName", Func, 0}, + {"LookupAccountSid", Func, 0}, + {"LookupSID", Func, 0}, + {"LsfJump", Func, 0}, + {"LsfSocket", Func, 0}, + {"LsfStmt", Func, 0}, + {"Lstat", Func, 0}, + {"MADV_AUTOSYNC", Const, 1}, + {"MADV_CAN_REUSE", Const, 0}, + {"MADV_CORE", Const, 1}, + {"MADV_DOFORK", Const, 0}, + {"MADV_DONTFORK", Const, 0}, + {"MADV_DONTNEED", Const, 0}, + {"MADV_FREE", Const, 0}, + {"MADV_FREE_REUSABLE", Const, 0}, + {"MADV_FREE_REUSE", Const, 0}, + {"MADV_HUGEPAGE", Const, 0}, + {"MADV_HWPOISON", Const, 0}, + {"MADV_MERGEABLE", Const, 0}, + {"MADV_NOCORE", Const, 1}, + {"MADV_NOHUGEPAGE", Const, 0}, + {"MADV_NORMAL", Const, 0}, + {"MADV_NOSYNC", Const, 1}, + {"MADV_PROTECT", Const, 1}, + {"MADV_RANDOM", Const, 0}, + {"MADV_REMOVE", Const, 0}, + {"MADV_SEQUENTIAL", Const, 0}, + {"MADV_SPACEAVAIL", Const, 3}, + {"MADV_UNMERGEABLE", Const, 0}, + {"MADV_WILLNEED", Const, 0}, + {"MADV_ZERO_WIRED_PAGES", Const, 0}, + {"MAP_32BIT", Const, 0}, + {"MAP_ALIGNED_SUPER", Const, 3}, + {"MAP_ALIGNMENT_16MB", Const, 3}, + {"MAP_ALIGNMENT_1TB", Const, 3}, + {"MAP_ALIGNMENT_256TB", Const, 3}, + {"MAP_ALIGNMENT_4GB", Const, 3}, + {"MAP_ALIGNMENT_64KB", Const, 3}, + {"MAP_ALIGNMENT_64PB", Const, 3}, + {"MAP_ALIGNMENT_MASK", Const, 3}, + {"MAP_ALIGNMENT_SHIFT", Const, 3}, + {"MAP_ANON", Const, 0}, + {"MAP_ANONYMOUS", Const, 0}, + {"MAP_COPY", Const, 0}, + {"MAP_DENYWRITE", Const, 0}, + {"MAP_EXECUTABLE", Const, 0}, + {"MAP_FILE", Const, 0}, + {"MAP_FIXED", Const, 0}, + {"MAP_FLAGMASK", Const, 3}, + {"MAP_GROWSDOWN", Const, 0}, + {"MAP_HASSEMAPHORE", Const, 0}, + {"MAP_HUGETLB", Const, 0}, + {"MAP_INHERIT", Const, 3}, + {"MAP_INHERIT_COPY", Const, 3}, + {"MAP_INHERIT_DEFAULT", Const, 3}, + {"MAP_INHERIT_DONATE_COPY", Const, 3}, + {"MAP_INHERIT_NONE", Const, 3}, + {"MAP_INHERIT_SHARE", Const, 3}, + {"MAP_JIT", Const, 0}, + {"MAP_LOCKED", Const, 0}, + {"MAP_NOCACHE", Const, 0}, + {"MAP_NOCORE", Const, 1}, + {"MAP_NOEXTEND", Const, 0}, + {"MAP_NONBLOCK", Const, 0}, + {"MAP_NORESERVE", Const, 0}, + {"MAP_NOSYNC", Const, 1}, + {"MAP_POPULATE", Const, 0}, + {"MAP_PREFAULT_READ", Const, 1}, + {"MAP_PRIVATE", Const, 0}, + {"MAP_RENAME", Const, 0}, + {"MAP_RESERVED0080", Const, 0}, + {"MAP_RESERVED0100", Const, 1}, + {"MAP_SHARED", Const, 0}, + {"MAP_STACK", Const, 0}, + {"MAP_TRYFIXED", Const, 3}, + {"MAP_TYPE", Const, 0}, + {"MAP_WIRED", Const, 3}, + {"MAXIMUM_REPARSE_DATA_BUFFER_SIZE", Const, 4}, + {"MAXLEN_IFDESCR", Const, 0}, + {"MAXLEN_PHYSADDR", Const, 0}, + {"MAX_ADAPTER_ADDRESS_LENGTH", Const, 0}, + {"MAX_ADAPTER_DESCRIPTION_LENGTH", Const, 0}, + {"MAX_ADAPTER_NAME_LENGTH", Const, 0}, + {"MAX_COMPUTERNAME_LENGTH", Const, 0}, + {"MAX_INTERFACE_NAME_LEN", Const, 0}, + {"MAX_LONG_PATH", Const, 0}, + {"MAX_PATH", Const, 0}, + {"MAX_PROTOCOL_CHAIN", Const, 2}, + {"MCL_CURRENT", Const, 0}, + {"MCL_FUTURE", Const, 0}, + {"MNT_DETACH", Const, 0}, + {"MNT_EXPIRE", Const, 0}, + {"MNT_FORCE", Const, 0}, + {"MSG_BCAST", Const, 1}, + {"MSG_CMSG_CLOEXEC", Const, 0}, + {"MSG_COMPAT", Const, 0}, + {"MSG_CONFIRM", Const, 0}, + {"MSG_CONTROLMBUF", Const, 1}, + {"MSG_CTRUNC", Const, 0}, + {"MSG_DONTROUTE", Const, 0}, + {"MSG_DONTWAIT", Const, 0}, + {"MSG_EOF", Const, 0}, + {"MSG_EOR", Const, 0}, + {"MSG_ERRQUEUE", Const, 0}, + {"MSG_FASTOPEN", Const, 1}, + {"MSG_FIN", Const, 0}, + {"MSG_FLUSH", Const, 0}, + {"MSG_HAVEMORE", Const, 0}, + {"MSG_HOLD", Const, 0}, + {"MSG_IOVUSRSPACE", Const, 1}, + {"MSG_LENUSRSPACE", Const, 1}, + {"MSG_MCAST", Const, 1}, + {"MSG_MORE", Const, 0}, + {"MSG_NAMEMBUF", Const, 1}, + {"MSG_NBIO", Const, 0}, + {"MSG_NEEDSA", Const, 0}, + {"MSG_NOSIGNAL", Const, 0}, + {"MSG_NOTIFICATION", Const, 0}, + {"MSG_OOB", Const, 0}, + {"MSG_PEEK", Const, 0}, + {"MSG_PROXY", Const, 0}, + {"MSG_RCVMORE", Const, 0}, + {"MSG_RST", Const, 0}, + {"MSG_SEND", Const, 0}, + {"MSG_SYN", Const, 0}, + {"MSG_TRUNC", Const, 0}, + {"MSG_TRYHARD", Const, 0}, + {"MSG_USERFLAGS", Const, 1}, + {"MSG_WAITALL", Const, 0}, + {"MSG_WAITFORONE", Const, 0}, + {"MSG_WAITSTREAM", Const, 0}, + {"MS_ACTIVE", Const, 0}, + {"MS_ASYNC", Const, 0}, + {"MS_BIND", Const, 0}, + {"MS_DEACTIVATE", Const, 0}, + {"MS_DIRSYNC", Const, 0}, + {"MS_INVALIDATE", Const, 0}, + {"MS_I_VERSION", Const, 0}, + {"MS_KERNMOUNT", Const, 0}, + {"MS_KILLPAGES", Const, 0}, + {"MS_MANDLOCK", Const, 0}, + {"MS_MGC_MSK", Const, 0}, + {"MS_MGC_VAL", Const, 0}, + {"MS_MOVE", Const, 0}, + {"MS_NOATIME", Const, 0}, + {"MS_NODEV", Const, 0}, + {"MS_NODIRATIME", Const, 0}, + {"MS_NOEXEC", Const, 0}, + {"MS_NOSUID", Const, 0}, + {"MS_NOUSER", Const, 0}, + {"MS_POSIXACL", Const, 0}, + {"MS_PRIVATE", Const, 0}, + {"MS_RDONLY", Const, 0}, + {"MS_REC", Const, 0}, + {"MS_RELATIME", Const, 0}, + {"MS_REMOUNT", Const, 0}, + {"MS_RMT_MASK", Const, 0}, + {"MS_SHARED", Const, 0}, + {"MS_SILENT", Const, 0}, + {"MS_SLAVE", Const, 0}, + {"MS_STRICTATIME", Const, 0}, + {"MS_SYNC", Const, 0}, + {"MS_SYNCHRONOUS", Const, 0}, + {"MS_UNBINDABLE", Const, 0}, + {"Madvise", Func, 0}, + {"MapViewOfFile", Func, 0}, + {"MaxTokenInfoClass", Const, 0}, + {"Mclpool", Type, 2}, + {"Mclpool.Alive", Field, 2}, + {"Mclpool.Cwm", Field, 2}, + {"Mclpool.Grown", Field, 2}, + {"Mclpool.Hwm", Field, 2}, + {"Mclpool.Lwm", Field, 2}, + {"MibIfRow", Type, 0}, + {"MibIfRow.AdminStatus", Field, 0}, + {"MibIfRow.Descr", Field, 0}, + {"MibIfRow.DescrLen", Field, 0}, + {"MibIfRow.InDiscards", Field, 0}, + {"MibIfRow.InErrors", Field, 0}, + {"MibIfRow.InNUcastPkts", Field, 0}, + {"MibIfRow.InOctets", Field, 0}, + {"MibIfRow.InUcastPkts", Field, 0}, + {"MibIfRow.InUnknownProtos", Field, 0}, + {"MibIfRow.Index", Field, 0}, + {"MibIfRow.LastChange", Field, 0}, + {"MibIfRow.Mtu", Field, 0}, + {"MibIfRow.Name", Field, 0}, + {"MibIfRow.OperStatus", Field, 0}, + {"MibIfRow.OutDiscards", Field, 0}, + {"MibIfRow.OutErrors", Field, 0}, + {"MibIfRow.OutNUcastPkts", Field, 0}, + {"MibIfRow.OutOctets", Field, 0}, + {"MibIfRow.OutQLen", Field, 0}, + {"MibIfRow.OutUcastPkts", Field, 0}, + {"MibIfRow.PhysAddr", Field, 0}, + {"MibIfRow.PhysAddrLen", Field, 0}, + {"MibIfRow.Speed", Field, 0}, + {"MibIfRow.Type", Field, 0}, + {"Mkdir", Func, 0}, + {"Mkdirat", Func, 0}, + {"Mkfifo", Func, 0}, + {"Mknod", Func, 0}, + {"Mknodat", Func, 0}, + {"Mlock", Func, 0}, + {"Mlockall", Func, 0}, + {"Mmap", Func, 0}, + {"Mount", Func, 0}, + {"MoveFile", Func, 0}, + {"Mprotect", Func, 0}, + {"Msghdr", Type, 0}, + {"Msghdr.Control", Field, 0}, + {"Msghdr.Controllen", Field, 0}, + {"Msghdr.Flags", Field, 0}, + {"Msghdr.Iov", Field, 0}, + {"Msghdr.Iovlen", Field, 0}, + {"Msghdr.Name", Field, 0}, + {"Msghdr.Namelen", Field, 0}, + {"Msghdr.Pad_cgo_0", Field, 0}, + {"Msghdr.Pad_cgo_1", Field, 0}, + {"Munlock", Func, 0}, + {"Munlockall", Func, 0}, + {"Munmap", Func, 0}, + {"MustLoadDLL", Func, 0}, + {"NAME_MAX", Const, 0}, + {"NETLINK_ADD_MEMBERSHIP", Const, 0}, + {"NETLINK_AUDIT", Const, 0}, + {"NETLINK_BROADCAST_ERROR", Const, 0}, + {"NETLINK_CONNECTOR", Const, 0}, + {"NETLINK_DNRTMSG", Const, 0}, + {"NETLINK_DROP_MEMBERSHIP", Const, 0}, + {"NETLINK_ECRYPTFS", Const, 0}, + {"NETLINK_FIB_LOOKUP", Const, 0}, + {"NETLINK_FIREWALL", Const, 0}, + {"NETLINK_GENERIC", Const, 0}, + {"NETLINK_INET_DIAG", Const, 0}, + {"NETLINK_IP6_FW", Const, 0}, + {"NETLINK_ISCSI", Const, 0}, + {"NETLINK_KOBJECT_UEVENT", Const, 0}, + {"NETLINK_NETFILTER", Const, 0}, + {"NETLINK_NFLOG", Const, 0}, + {"NETLINK_NO_ENOBUFS", Const, 0}, + {"NETLINK_PKTINFO", Const, 0}, + {"NETLINK_RDMA", Const, 0}, + {"NETLINK_ROUTE", Const, 0}, + {"NETLINK_SCSITRANSPORT", Const, 0}, + {"NETLINK_SELINUX", Const, 0}, + {"NETLINK_UNUSED", Const, 0}, + {"NETLINK_USERSOCK", Const, 0}, + {"NETLINK_XFRM", Const, 0}, + {"NET_RT_DUMP", Const, 0}, + {"NET_RT_DUMP2", Const, 0}, + {"NET_RT_FLAGS", Const, 0}, + {"NET_RT_IFLIST", Const, 0}, + {"NET_RT_IFLIST2", Const, 0}, + {"NET_RT_IFLISTL", Const, 1}, + {"NET_RT_IFMALIST", Const, 0}, + {"NET_RT_MAXID", Const, 0}, + {"NET_RT_OIFLIST", Const, 1}, + {"NET_RT_OOIFLIST", Const, 1}, + {"NET_RT_STAT", Const, 0}, + {"NET_RT_STATS", Const, 1}, + {"NET_RT_TABLE", Const, 1}, + {"NET_RT_TRASH", Const, 0}, + {"NLA_ALIGNTO", Const, 0}, + {"NLA_F_NESTED", Const, 0}, + {"NLA_F_NET_BYTEORDER", Const, 0}, + {"NLA_HDRLEN", Const, 0}, + {"NLMSG_ALIGNTO", Const, 0}, + {"NLMSG_DONE", Const, 0}, + {"NLMSG_ERROR", Const, 0}, + {"NLMSG_HDRLEN", Const, 0}, + {"NLMSG_MIN_TYPE", Const, 0}, + {"NLMSG_NOOP", Const, 0}, + {"NLMSG_OVERRUN", Const, 0}, + {"NLM_F_ACK", Const, 0}, + {"NLM_F_APPEND", Const, 0}, + {"NLM_F_ATOMIC", Const, 0}, + {"NLM_F_CREATE", Const, 0}, + {"NLM_F_DUMP", Const, 0}, + {"NLM_F_ECHO", Const, 0}, + {"NLM_F_EXCL", Const, 0}, + {"NLM_F_MATCH", Const, 0}, + {"NLM_F_MULTI", Const, 0}, + {"NLM_F_REPLACE", Const, 0}, + {"NLM_F_REQUEST", Const, 0}, + {"NLM_F_ROOT", Const, 0}, + {"NOFLSH", Const, 0}, + {"NOTE_ABSOLUTE", Const, 0}, + {"NOTE_ATTRIB", Const, 0}, + {"NOTE_BACKGROUND", Const, 16}, + {"NOTE_CHILD", Const, 0}, + {"NOTE_CRITICAL", Const, 16}, + {"NOTE_DELETE", Const, 0}, + {"NOTE_EOF", Const, 1}, + {"NOTE_EXEC", Const, 0}, + {"NOTE_EXIT", Const, 0}, + {"NOTE_EXITSTATUS", Const, 0}, + {"NOTE_EXIT_CSERROR", Const, 16}, + {"NOTE_EXIT_DECRYPTFAIL", Const, 16}, + {"NOTE_EXIT_DETAIL", Const, 16}, + {"NOTE_EXIT_DETAIL_MASK", Const, 16}, + {"NOTE_EXIT_MEMORY", Const, 16}, + {"NOTE_EXIT_REPARENTED", Const, 16}, + {"NOTE_EXTEND", Const, 0}, + {"NOTE_FFAND", Const, 0}, + {"NOTE_FFCOPY", Const, 0}, + {"NOTE_FFCTRLMASK", Const, 0}, + {"NOTE_FFLAGSMASK", Const, 0}, + {"NOTE_FFNOP", Const, 0}, + {"NOTE_FFOR", Const, 0}, + {"NOTE_FORK", Const, 0}, + {"NOTE_LEEWAY", Const, 16}, + {"NOTE_LINK", Const, 0}, + {"NOTE_LOWAT", Const, 0}, + {"NOTE_NONE", Const, 0}, + {"NOTE_NSECONDS", Const, 0}, + {"NOTE_PCTRLMASK", Const, 0}, + {"NOTE_PDATAMASK", Const, 0}, + {"NOTE_REAP", Const, 0}, + {"NOTE_RENAME", Const, 0}, + {"NOTE_RESOURCEEND", Const, 0}, + {"NOTE_REVOKE", Const, 0}, + {"NOTE_SECONDS", Const, 0}, + {"NOTE_SIGNAL", Const, 0}, + {"NOTE_TRACK", Const, 0}, + {"NOTE_TRACKERR", Const, 0}, + {"NOTE_TRIGGER", Const, 0}, + {"NOTE_TRUNCATE", Const, 1}, + {"NOTE_USECONDS", Const, 0}, + {"NOTE_VM_ERROR", Const, 0}, + {"NOTE_VM_PRESSURE", Const, 0}, + {"NOTE_VM_PRESSURE_SUDDEN_TERMINATE", Const, 0}, + {"NOTE_VM_PRESSURE_TERMINATE", Const, 0}, + {"NOTE_WRITE", Const, 0}, + {"NameCanonical", Const, 0}, + {"NameCanonicalEx", Const, 0}, + {"NameDisplay", Const, 0}, + {"NameDnsDomain", Const, 0}, + {"NameFullyQualifiedDN", Const, 0}, + {"NameSamCompatible", Const, 0}, + {"NameServicePrincipal", Const, 0}, + {"NameUniqueId", Const, 0}, + {"NameUnknown", Const, 0}, + {"NameUserPrincipal", Const, 0}, + {"Nanosleep", Func, 0}, + {"NetApiBufferFree", Func, 0}, + {"NetGetJoinInformation", Func, 2}, + {"NetSetupDomainName", Const, 2}, + {"NetSetupUnjoined", Const, 2}, + {"NetSetupUnknownStatus", Const, 2}, + {"NetSetupWorkgroupName", Const, 2}, + {"NetUserGetInfo", Func, 0}, + {"NetlinkMessage", Type, 0}, + {"NetlinkMessage.Data", Field, 0}, + {"NetlinkMessage.Header", Field, 0}, + {"NetlinkRIB", Func, 0}, + {"NetlinkRouteAttr", Type, 0}, + {"NetlinkRouteAttr.Attr", Field, 0}, + {"NetlinkRouteAttr.Value", Field, 0}, + {"NetlinkRouteRequest", Type, 0}, + {"NetlinkRouteRequest.Data", Field, 0}, + {"NetlinkRouteRequest.Header", Field, 0}, + {"NewCallback", Func, 0}, + {"NewCallbackCDecl", Func, 3}, + {"NewLazyDLL", Func, 0}, + {"NlAttr", Type, 0}, + {"NlAttr.Len", Field, 0}, + {"NlAttr.Type", Field, 0}, + {"NlMsgerr", Type, 0}, + {"NlMsgerr.Error", Field, 0}, + {"NlMsgerr.Msg", Field, 0}, + {"NlMsghdr", Type, 0}, + {"NlMsghdr.Flags", Field, 0}, + {"NlMsghdr.Len", Field, 0}, + {"NlMsghdr.Pid", Field, 0}, + {"NlMsghdr.Seq", Field, 0}, + {"NlMsghdr.Type", Field, 0}, + {"NsecToFiletime", Func, 0}, + {"NsecToTimespec", Func, 0}, + {"NsecToTimeval", Func, 0}, + {"Ntohs", Func, 0}, + {"OCRNL", Const, 0}, + {"OFDEL", Const, 0}, + {"OFILL", Const, 0}, + {"OFIOGETBMAP", Const, 1}, + {"OID_PKIX_KP_SERVER_AUTH", Var, 0}, + {"OID_SERVER_GATED_CRYPTO", Var, 0}, + {"OID_SGC_NETSCAPE", Var, 0}, + {"OLCUC", Const, 0}, + {"ONLCR", Const, 0}, + {"ONLRET", Const, 0}, + {"ONOCR", Const, 0}, + {"ONOEOT", Const, 1}, + {"OPEN_ALWAYS", Const, 0}, + {"OPEN_EXISTING", Const, 0}, + {"OPOST", Const, 0}, + {"O_ACCMODE", Const, 0}, + {"O_ALERT", Const, 0}, + {"O_ALT_IO", Const, 1}, + {"O_APPEND", Const, 0}, + {"O_ASYNC", Const, 0}, + {"O_CLOEXEC", Const, 0}, + {"O_CREAT", Const, 0}, + {"O_DIRECT", Const, 0}, + {"O_DIRECTORY", Const, 0}, + {"O_DP_GETRAWENCRYPTED", Const, 16}, + {"O_DSYNC", Const, 0}, + {"O_EVTONLY", Const, 0}, + {"O_EXCL", Const, 0}, + {"O_EXEC", Const, 0}, + {"O_EXLOCK", Const, 0}, + {"O_FSYNC", Const, 0}, + {"O_LARGEFILE", Const, 0}, + {"O_NDELAY", Const, 0}, + {"O_NOATIME", Const, 0}, + {"O_NOCTTY", Const, 0}, + {"O_NOFOLLOW", Const, 0}, + {"O_NONBLOCK", Const, 0}, + {"O_NOSIGPIPE", Const, 1}, + {"O_POPUP", Const, 0}, + {"O_RDONLY", Const, 0}, + {"O_RDWR", Const, 0}, + {"O_RSYNC", Const, 0}, + {"O_SHLOCK", Const, 0}, + {"O_SYMLINK", Const, 0}, + {"O_SYNC", Const, 0}, + {"O_TRUNC", Const, 0}, + {"O_TTY_INIT", Const, 0}, + {"O_WRONLY", Const, 0}, + {"Open", Func, 0}, + {"OpenCurrentProcessToken", Func, 0}, + {"OpenProcess", Func, 0}, + {"OpenProcessToken", Func, 0}, + {"Openat", Func, 0}, + {"Overlapped", Type, 0}, + {"Overlapped.HEvent", Field, 0}, + {"Overlapped.Internal", Field, 0}, + {"Overlapped.InternalHigh", Field, 0}, + {"Overlapped.Offset", Field, 0}, + {"Overlapped.OffsetHigh", Field, 0}, + {"PACKET_ADD_MEMBERSHIP", Const, 0}, + {"PACKET_BROADCAST", Const, 0}, + {"PACKET_DROP_MEMBERSHIP", Const, 0}, + {"PACKET_FASTROUTE", Const, 0}, + {"PACKET_HOST", Const, 0}, + {"PACKET_LOOPBACK", Const, 0}, + {"PACKET_MR_ALLMULTI", Const, 0}, + {"PACKET_MR_MULTICAST", Const, 0}, + {"PACKET_MR_PROMISC", Const, 0}, + {"PACKET_MULTICAST", Const, 0}, + {"PACKET_OTHERHOST", Const, 0}, + {"PACKET_OUTGOING", Const, 0}, + {"PACKET_RECV_OUTPUT", Const, 0}, + {"PACKET_RX_RING", Const, 0}, + {"PACKET_STATISTICS", Const, 0}, + {"PAGE_EXECUTE_READ", Const, 0}, + {"PAGE_EXECUTE_READWRITE", Const, 0}, + {"PAGE_EXECUTE_WRITECOPY", Const, 0}, + {"PAGE_READONLY", Const, 0}, + {"PAGE_READWRITE", Const, 0}, + {"PAGE_WRITECOPY", Const, 0}, + {"PARENB", Const, 0}, + {"PARMRK", Const, 0}, + {"PARODD", Const, 0}, + {"PENDIN", Const, 0}, + {"PFL_HIDDEN", Const, 2}, + {"PFL_MATCHES_PROTOCOL_ZERO", Const, 2}, + {"PFL_MULTIPLE_PROTO_ENTRIES", Const, 2}, + {"PFL_NETWORKDIRECT_PROVIDER", Const, 2}, + {"PFL_RECOMMENDED_PROTO_ENTRY", Const, 2}, + {"PF_FLUSH", Const, 1}, + {"PKCS_7_ASN_ENCODING", Const, 0}, + {"PMC5_PIPELINE_FLUSH", Const, 1}, + {"PRIO_PGRP", Const, 2}, + {"PRIO_PROCESS", Const, 2}, + {"PRIO_USER", Const, 2}, + {"PRI_IOFLUSH", Const, 1}, + {"PROCESS_QUERY_INFORMATION", Const, 0}, + {"PROCESS_TERMINATE", Const, 2}, + {"PROT_EXEC", Const, 0}, + {"PROT_GROWSDOWN", Const, 0}, + {"PROT_GROWSUP", Const, 0}, + {"PROT_NONE", Const, 0}, + {"PROT_READ", Const, 0}, + {"PROT_WRITE", Const, 0}, + {"PROV_DH_SCHANNEL", Const, 0}, + {"PROV_DSS", Const, 0}, + {"PROV_DSS_DH", Const, 0}, + {"PROV_EC_ECDSA_FULL", Const, 0}, + {"PROV_EC_ECDSA_SIG", Const, 0}, + {"PROV_EC_ECNRA_FULL", Const, 0}, + {"PROV_EC_ECNRA_SIG", Const, 0}, + {"PROV_FORTEZZA", Const, 0}, + {"PROV_INTEL_SEC", Const, 0}, + {"PROV_MS_EXCHANGE", Const, 0}, + {"PROV_REPLACE_OWF", Const, 0}, + {"PROV_RNG", Const, 0}, + {"PROV_RSA_AES", Const, 0}, + {"PROV_RSA_FULL", Const, 0}, + {"PROV_RSA_SCHANNEL", Const, 0}, + {"PROV_RSA_SIG", Const, 0}, + {"PROV_SPYRUS_LYNKS", Const, 0}, + {"PROV_SSL", Const, 0}, + {"PR_CAPBSET_DROP", Const, 0}, + {"PR_CAPBSET_READ", Const, 0}, + {"PR_CLEAR_SECCOMP_FILTER", Const, 0}, + {"PR_ENDIAN_BIG", Const, 0}, + {"PR_ENDIAN_LITTLE", Const, 0}, + {"PR_ENDIAN_PPC_LITTLE", Const, 0}, + {"PR_FPEMU_NOPRINT", Const, 0}, + {"PR_FPEMU_SIGFPE", Const, 0}, + {"PR_FP_EXC_ASYNC", Const, 0}, + {"PR_FP_EXC_DISABLED", Const, 0}, + {"PR_FP_EXC_DIV", Const, 0}, + {"PR_FP_EXC_INV", Const, 0}, + {"PR_FP_EXC_NONRECOV", Const, 0}, + {"PR_FP_EXC_OVF", Const, 0}, + {"PR_FP_EXC_PRECISE", Const, 0}, + {"PR_FP_EXC_RES", Const, 0}, + {"PR_FP_EXC_SW_ENABLE", Const, 0}, + {"PR_FP_EXC_UND", Const, 0}, + {"PR_GET_DUMPABLE", Const, 0}, + {"PR_GET_ENDIAN", Const, 0}, + {"PR_GET_FPEMU", Const, 0}, + {"PR_GET_FPEXC", Const, 0}, + {"PR_GET_KEEPCAPS", Const, 0}, + {"PR_GET_NAME", Const, 0}, + {"PR_GET_PDEATHSIG", Const, 0}, + {"PR_GET_SECCOMP", Const, 0}, + {"PR_GET_SECCOMP_FILTER", Const, 0}, + {"PR_GET_SECUREBITS", Const, 0}, + {"PR_GET_TIMERSLACK", Const, 0}, + {"PR_GET_TIMING", Const, 0}, + {"PR_GET_TSC", Const, 0}, + {"PR_GET_UNALIGN", Const, 0}, + {"PR_MCE_KILL", Const, 0}, + {"PR_MCE_KILL_CLEAR", Const, 0}, + {"PR_MCE_KILL_DEFAULT", Const, 0}, + {"PR_MCE_KILL_EARLY", Const, 0}, + {"PR_MCE_KILL_GET", Const, 0}, + {"PR_MCE_KILL_LATE", Const, 0}, + {"PR_MCE_KILL_SET", Const, 0}, + {"PR_SECCOMP_FILTER_EVENT", Const, 0}, + {"PR_SECCOMP_FILTER_SYSCALL", Const, 0}, + {"PR_SET_DUMPABLE", Const, 0}, + {"PR_SET_ENDIAN", Const, 0}, + {"PR_SET_FPEMU", Const, 0}, + {"PR_SET_FPEXC", Const, 0}, + {"PR_SET_KEEPCAPS", Const, 0}, + {"PR_SET_NAME", Const, 0}, + {"PR_SET_PDEATHSIG", Const, 0}, + {"PR_SET_PTRACER", Const, 0}, + {"PR_SET_SECCOMP", Const, 0}, + {"PR_SET_SECCOMP_FILTER", Const, 0}, + {"PR_SET_SECUREBITS", Const, 0}, + {"PR_SET_TIMERSLACK", Const, 0}, + {"PR_SET_TIMING", Const, 0}, + {"PR_SET_TSC", Const, 0}, + {"PR_SET_UNALIGN", Const, 0}, + {"PR_TASK_PERF_EVENTS_DISABLE", Const, 0}, + {"PR_TASK_PERF_EVENTS_ENABLE", Const, 0}, + {"PR_TIMING_STATISTICAL", Const, 0}, + {"PR_TIMING_TIMESTAMP", Const, 0}, + {"PR_TSC_ENABLE", Const, 0}, + {"PR_TSC_SIGSEGV", Const, 0}, + {"PR_UNALIGN_NOPRINT", Const, 0}, + {"PR_UNALIGN_SIGBUS", Const, 0}, + {"PTRACE_ARCH_PRCTL", Const, 0}, + {"PTRACE_ATTACH", Const, 0}, + {"PTRACE_CONT", Const, 0}, + {"PTRACE_DETACH", Const, 0}, + {"PTRACE_EVENT_CLONE", Const, 0}, + {"PTRACE_EVENT_EXEC", Const, 0}, + {"PTRACE_EVENT_EXIT", Const, 0}, + {"PTRACE_EVENT_FORK", Const, 0}, + {"PTRACE_EVENT_VFORK", Const, 0}, + {"PTRACE_EVENT_VFORK_DONE", Const, 0}, + {"PTRACE_GETCRUNCHREGS", Const, 0}, + {"PTRACE_GETEVENTMSG", Const, 0}, + {"PTRACE_GETFPREGS", Const, 0}, + {"PTRACE_GETFPXREGS", Const, 0}, + {"PTRACE_GETHBPREGS", Const, 0}, + {"PTRACE_GETREGS", Const, 0}, + {"PTRACE_GETREGSET", Const, 0}, + {"PTRACE_GETSIGINFO", Const, 0}, + {"PTRACE_GETVFPREGS", Const, 0}, + {"PTRACE_GETWMMXREGS", Const, 0}, + {"PTRACE_GET_THREAD_AREA", Const, 0}, + {"PTRACE_KILL", Const, 0}, + {"PTRACE_OLDSETOPTIONS", Const, 0}, + {"PTRACE_O_MASK", Const, 0}, + {"PTRACE_O_TRACECLONE", Const, 0}, + {"PTRACE_O_TRACEEXEC", Const, 0}, + {"PTRACE_O_TRACEEXIT", Const, 0}, + {"PTRACE_O_TRACEFORK", Const, 0}, + {"PTRACE_O_TRACESYSGOOD", Const, 0}, + {"PTRACE_O_TRACEVFORK", Const, 0}, + {"PTRACE_O_TRACEVFORKDONE", Const, 0}, + {"PTRACE_PEEKDATA", Const, 0}, + {"PTRACE_PEEKTEXT", Const, 0}, + {"PTRACE_PEEKUSR", Const, 0}, + {"PTRACE_POKEDATA", Const, 0}, + {"PTRACE_POKETEXT", Const, 0}, + {"PTRACE_POKEUSR", Const, 0}, + {"PTRACE_SETCRUNCHREGS", Const, 0}, + {"PTRACE_SETFPREGS", Const, 0}, + {"PTRACE_SETFPXREGS", Const, 0}, + {"PTRACE_SETHBPREGS", Const, 0}, + {"PTRACE_SETOPTIONS", Const, 0}, + {"PTRACE_SETREGS", Const, 0}, + {"PTRACE_SETREGSET", Const, 0}, + {"PTRACE_SETSIGINFO", Const, 0}, + {"PTRACE_SETVFPREGS", Const, 0}, + {"PTRACE_SETWMMXREGS", Const, 0}, + {"PTRACE_SET_SYSCALL", Const, 0}, + {"PTRACE_SET_THREAD_AREA", Const, 0}, + {"PTRACE_SINGLEBLOCK", Const, 0}, + {"PTRACE_SINGLESTEP", Const, 0}, + {"PTRACE_SYSCALL", Const, 0}, + {"PTRACE_SYSEMU", Const, 0}, + {"PTRACE_SYSEMU_SINGLESTEP", Const, 0}, + {"PTRACE_TRACEME", Const, 0}, + {"PT_ATTACH", Const, 0}, + {"PT_ATTACHEXC", Const, 0}, + {"PT_CONTINUE", Const, 0}, + {"PT_DATA_ADDR", Const, 0}, + {"PT_DENY_ATTACH", Const, 0}, + {"PT_DETACH", Const, 0}, + {"PT_FIRSTMACH", Const, 0}, + {"PT_FORCEQUOTA", Const, 0}, + {"PT_KILL", Const, 0}, + {"PT_MASK", Const, 1}, + {"PT_READ_D", Const, 0}, + {"PT_READ_I", Const, 0}, + {"PT_READ_U", Const, 0}, + {"PT_SIGEXC", Const, 0}, + {"PT_STEP", Const, 0}, + {"PT_TEXT_ADDR", Const, 0}, + {"PT_TEXT_END_ADDR", Const, 0}, + {"PT_THUPDATE", Const, 0}, + {"PT_TRACE_ME", Const, 0}, + {"PT_WRITE_D", Const, 0}, + {"PT_WRITE_I", Const, 0}, + {"PT_WRITE_U", Const, 0}, + {"ParseDirent", Func, 0}, + {"ParseNetlinkMessage", Func, 0}, + {"ParseNetlinkRouteAttr", Func, 0}, + {"ParseRoutingMessage", Func, 0}, + {"ParseRoutingSockaddr", Func, 0}, + {"ParseSocketControlMessage", Func, 0}, + {"ParseUnixCredentials", Func, 0}, + {"ParseUnixRights", Func, 0}, + {"PathMax", Const, 0}, + {"Pathconf", Func, 0}, + {"Pause", Func, 0}, + {"Pipe", Func, 0}, + {"Pipe2", Func, 1}, + {"PivotRoot", Func, 0}, + {"Pointer", Type, 11}, + {"PostQueuedCompletionStatus", Func, 0}, + {"Pread", Func, 0}, + {"Proc", Type, 0}, + {"Proc.Dll", Field, 0}, + {"Proc.Name", Field, 0}, + {"ProcAttr", Type, 0}, + {"ProcAttr.Dir", Field, 0}, + {"ProcAttr.Env", Field, 0}, + {"ProcAttr.Files", Field, 0}, + {"ProcAttr.Sys", Field, 0}, + {"Process32First", Func, 4}, + {"Process32Next", Func, 4}, + {"ProcessEntry32", Type, 4}, + {"ProcessEntry32.DefaultHeapID", Field, 4}, + {"ProcessEntry32.ExeFile", Field, 4}, + {"ProcessEntry32.Flags", Field, 4}, + {"ProcessEntry32.ModuleID", Field, 4}, + {"ProcessEntry32.ParentProcessID", Field, 4}, + {"ProcessEntry32.PriClassBase", Field, 4}, + {"ProcessEntry32.ProcessID", Field, 4}, + {"ProcessEntry32.Size", Field, 4}, + {"ProcessEntry32.Threads", Field, 4}, + {"ProcessEntry32.Usage", Field, 4}, + {"ProcessInformation", Type, 0}, + {"ProcessInformation.Process", Field, 0}, + {"ProcessInformation.ProcessId", Field, 0}, + {"ProcessInformation.Thread", Field, 0}, + {"ProcessInformation.ThreadId", Field, 0}, + {"Protoent", Type, 0}, + {"Protoent.Aliases", Field, 0}, + {"Protoent.Name", Field, 0}, + {"Protoent.Proto", Field, 0}, + {"PtraceAttach", Func, 0}, + {"PtraceCont", Func, 0}, + {"PtraceDetach", Func, 0}, + {"PtraceGetEventMsg", Func, 0}, + {"PtraceGetRegs", Func, 0}, + {"PtracePeekData", Func, 0}, + {"PtracePeekText", Func, 0}, + {"PtracePokeData", Func, 0}, + {"PtracePokeText", Func, 0}, + {"PtraceRegs", Type, 0}, + {"PtraceRegs.Cs", Field, 0}, + {"PtraceRegs.Ds", Field, 0}, + {"PtraceRegs.Eax", Field, 0}, + {"PtraceRegs.Ebp", Field, 0}, + {"PtraceRegs.Ebx", Field, 0}, + {"PtraceRegs.Ecx", Field, 0}, + {"PtraceRegs.Edi", Field, 0}, + {"PtraceRegs.Edx", Field, 0}, + {"PtraceRegs.Eflags", Field, 0}, + {"PtraceRegs.Eip", Field, 0}, + {"PtraceRegs.Es", Field, 0}, + {"PtraceRegs.Esi", Field, 0}, + {"PtraceRegs.Esp", Field, 0}, + {"PtraceRegs.Fs", Field, 0}, + {"PtraceRegs.Fs_base", Field, 0}, + {"PtraceRegs.Gs", Field, 0}, + {"PtraceRegs.Gs_base", Field, 0}, + {"PtraceRegs.Orig_eax", Field, 0}, + {"PtraceRegs.Orig_rax", Field, 0}, + {"PtraceRegs.R10", Field, 0}, + {"PtraceRegs.R11", Field, 0}, + {"PtraceRegs.R12", Field, 0}, + {"PtraceRegs.R13", Field, 0}, + {"PtraceRegs.R14", Field, 0}, + {"PtraceRegs.R15", Field, 0}, + {"PtraceRegs.R8", Field, 0}, + {"PtraceRegs.R9", Field, 0}, + {"PtraceRegs.Rax", Field, 0}, + {"PtraceRegs.Rbp", Field, 0}, + {"PtraceRegs.Rbx", Field, 0}, + {"PtraceRegs.Rcx", Field, 0}, + {"PtraceRegs.Rdi", Field, 0}, + {"PtraceRegs.Rdx", Field, 0}, + {"PtraceRegs.Rip", Field, 0}, + {"PtraceRegs.Rsi", Field, 0}, + {"PtraceRegs.Rsp", Field, 0}, + {"PtraceRegs.Ss", Field, 0}, + {"PtraceRegs.Uregs", Field, 0}, + {"PtraceRegs.Xcs", Field, 0}, + {"PtraceRegs.Xds", Field, 0}, + {"PtraceRegs.Xes", Field, 0}, + {"PtraceRegs.Xfs", Field, 0}, + {"PtraceRegs.Xgs", Field, 0}, + {"PtraceRegs.Xss", Field, 0}, + {"PtraceSetOptions", Func, 0}, + {"PtraceSetRegs", Func, 0}, + {"PtraceSingleStep", Func, 0}, + {"PtraceSyscall", Func, 1}, + {"Pwrite", Func, 0}, + {"REG_BINARY", Const, 0}, + {"REG_DWORD", Const, 0}, + {"REG_DWORD_BIG_ENDIAN", Const, 0}, + {"REG_DWORD_LITTLE_ENDIAN", Const, 0}, + {"REG_EXPAND_SZ", Const, 0}, + {"REG_FULL_RESOURCE_DESCRIPTOR", Const, 0}, + {"REG_LINK", Const, 0}, + {"REG_MULTI_SZ", Const, 0}, + {"REG_NONE", Const, 0}, + {"REG_QWORD", Const, 0}, + {"REG_QWORD_LITTLE_ENDIAN", Const, 0}, + {"REG_RESOURCE_LIST", Const, 0}, + {"REG_RESOURCE_REQUIREMENTS_LIST", Const, 0}, + {"REG_SZ", Const, 0}, + {"RLIMIT_AS", Const, 0}, + {"RLIMIT_CORE", Const, 0}, + {"RLIMIT_CPU", Const, 0}, + {"RLIMIT_CPU_USAGE_MONITOR", Const, 16}, + {"RLIMIT_DATA", Const, 0}, + {"RLIMIT_FSIZE", Const, 0}, + {"RLIMIT_NOFILE", Const, 0}, + {"RLIMIT_STACK", Const, 0}, + {"RLIM_INFINITY", Const, 0}, + {"RTAX_ADVMSS", Const, 0}, + {"RTAX_AUTHOR", Const, 0}, + {"RTAX_BRD", Const, 0}, + {"RTAX_CWND", Const, 0}, + {"RTAX_DST", Const, 0}, + {"RTAX_FEATURES", Const, 0}, + {"RTAX_FEATURE_ALLFRAG", Const, 0}, + {"RTAX_FEATURE_ECN", Const, 0}, + {"RTAX_FEATURE_SACK", Const, 0}, + {"RTAX_FEATURE_TIMESTAMP", Const, 0}, + {"RTAX_GATEWAY", Const, 0}, + {"RTAX_GENMASK", Const, 0}, + {"RTAX_HOPLIMIT", Const, 0}, + {"RTAX_IFA", Const, 0}, + {"RTAX_IFP", Const, 0}, + {"RTAX_INITCWND", Const, 0}, + {"RTAX_INITRWND", Const, 0}, + {"RTAX_LABEL", Const, 1}, + {"RTAX_LOCK", Const, 0}, + {"RTAX_MAX", Const, 0}, + {"RTAX_MTU", Const, 0}, + {"RTAX_NETMASK", Const, 0}, + {"RTAX_REORDERING", Const, 0}, + {"RTAX_RTO_MIN", Const, 0}, + {"RTAX_RTT", Const, 0}, + {"RTAX_RTTVAR", Const, 0}, + {"RTAX_SRC", Const, 1}, + {"RTAX_SRCMASK", Const, 1}, + {"RTAX_SSTHRESH", Const, 0}, + {"RTAX_TAG", Const, 1}, + {"RTAX_UNSPEC", Const, 0}, + {"RTAX_WINDOW", Const, 0}, + {"RTA_ALIGNTO", Const, 0}, + {"RTA_AUTHOR", Const, 0}, + {"RTA_BRD", Const, 0}, + {"RTA_CACHEINFO", Const, 0}, + {"RTA_DST", Const, 0}, + {"RTA_FLOW", Const, 0}, + {"RTA_GATEWAY", Const, 0}, + {"RTA_GENMASK", Const, 0}, + {"RTA_IFA", Const, 0}, + {"RTA_IFP", Const, 0}, + {"RTA_IIF", Const, 0}, + {"RTA_LABEL", Const, 1}, + {"RTA_MAX", Const, 0}, + {"RTA_METRICS", Const, 0}, + {"RTA_MULTIPATH", Const, 0}, + {"RTA_NETMASK", Const, 0}, + {"RTA_OIF", Const, 0}, + {"RTA_PREFSRC", Const, 0}, + {"RTA_PRIORITY", Const, 0}, + {"RTA_SRC", Const, 0}, + {"RTA_SRCMASK", Const, 1}, + {"RTA_TABLE", Const, 0}, + {"RTA_TAG", Const, 1}, + {"RTA_UNSPEC", Const, 0}, + {"RTCF_DIRECTSRC", Const, 0}, + {"RTCF_DOREDIRECT", Const, 0}, + {"RTCF_LOG", Const, 0}, + {"RTCF_MASQ", Const, 0}, + {"RTCF_NAT", Const, 0}, + {"RTCF_VALVE", Const, 0}, + {"RTF_ADDRCLASSMASK", Const, 0}, + {"RTF_ADDRCONF", Const, 0}, + {"RTF_ALLONLINK", Const, 0}, + {"RTF_ANNOUNCE", Const, 1}, + {"RTF_BLACKHOLE", Const, 0}, + {"RTF_BROADCAST", Const, 0}, + {"RTF_CACHE", Const, 0}, + {"RTF_CLONED", Const, 1}, + {"RTF_CLONING", Const, 0}, + {"RTF_CONDEMNED", Const, 0}, + {"RTF_DEFAULT", Const, 0}, + {"RTF_DELCLONE", Const, 0}, + {"RTF_DONE", Const, 0}, + {"RTF_DYNAMIC", Const, 0}, + {"RTF_FLOW", Const, 0}, + {"RTF_FMASK", Const, 0}, + {"RTF_GATEWAY", Const, 0}, + {"RTF_GWFLAG_COMPAT", Const, 3}, + {"RTF_HOST", Const, 0}, + {"RTF_IFREF", Const, 0}, + {"RTF_IFSCOPE", Const, 0}, + {"RTF_INTERFACE", Const, 0}, + {"RTF_IRTT", Const, 0}, + {"RTF_LINKRT", Const, 0}, + {"RTF_LLDATA", Const, 0}, + {"RTF_LLINFO", Const, 0}, + {"RTF_LOCAL", Const, 0}, + {"RTF_MASK", Const, 1}, + {"RTF_MODIFIED", Const, 0}, + {"RTF_MPATH", Const, 1}, + {"RTF_MPLS", Const, 1}, + {"RTF_MSS", Const, 0}, + {"RTF_MTU", Const, 0}, + {"RTF_MULTICAST", Const, 0}, + {"RTF_NAT", Const, 0}, + {"RTF_NOFORWARD", Const, 0}, + {"RTF_NONEXTHOP", Const, 0}, + {"RTF_NOPMTUDISC", Const, 0}, + {"RTF_PERMANENT_ARP", Const, 1}, + {"RTF_PINNED", Const, 0}, + {"RTF_POLICY", Const, 0}, + {"RTF_PRCLONING", Const, 0}, + {"RTF_PROTO1", Const, 0}, + {"RTF_PROTO2", Const, 0}, + {"RTF_PROTO3", Const, 0}, + {"RTF_PROXY", Const, 16}, + {"RTF_REINSTATE", Const, 0}, + {"RTF_REJECT", Const, 0}, + {"RTF_RNH_LOCKED", Const, 0}, + {"RTF_ROUTER", Const, 16}, + {"RTF_SOURCE", Const, 1}, + {"RTF_SRC", Const, 1}, + {"RTF_STATIC", Const, 0}, + {"RTF_STICKY", Const, 0}, + {"RTF_THROW", Const, 0}, + {"RTF_TUNNEL", Const, 1}, + {"RTF_UP", Const, 0}, + {"RTF_USETRAILERS", Const, 1}, + {"RTF_WASCLONED", Const, 0}, + {"RTF_WINDOW", Const, 0}, + {"RTF_XRESOLVE", Const, 0}, + {"RTM_ADD", Const, 0}, + {"RTM_BASE", Const, 0}, + {"RTM_CHANGE", Const, 0}, + {"RTM_CHGADDR", Const, 1}, + {"RTM_DELACTION", Const, 0}, + {"RTM_DELADDR", Const, 0}, + {"RTM_DELADDRLABEL", Const, 0}, + {"RTM_DELETE", Const, 0}, + {"RTM_DELLINK", Const, 0}, + {"RTM_DELMADDR", Const, 0}, + {"RTM_DELNEIGH", Const, 0}, + {"RTM_DELQDISC", Const, 0}, + {"RTM_DELROUTE", Const, 0}, + {"RTM_DELRULE", Const, 0}, + {"RTM_DELTCLASS", Const, 0}, + {"RTM_DELTFILTER", Const, 0}, + {"RTM_DESYNC", Const, 1}, + {"RTM_F_CLONED", Const, 0}, + {"RTM_F_EQUALIZE", Const, 0}, + {"RTM_F_NOTIFY", Const, 0}, + {"RTM_F_PREFIX", Const, 0}, + {"RTM_GET", Const, 0}, + {"RTM_GET2", Const, 0}, + {"RTM_GETACTION", Const, 0}, + {"RTM_GETADDR", Const, 0}, + {"RTM_GETADDRLABEL", Const, 0}, + {"RTM_GETANYCAST", Const, 0}, + {"RTM_GETDCB", Const, 0}, + {"RTM_GETLINK", Const, 0}, + {"RTM_GETMULTICAST", Const, 0}, + {"RTM_GETNEIGH", Const, 0}, + {"RTM_GETNEIGHTBL", Const, 0}, + {"RTM_GETQDISC", Const, 0}, + {"RTM_GETROUTE", Const, 0}, + {"RTM_GETRULE", Const, 0}, + {"RTM_GETTCLASS", Const, 0}, + {"RTM_GETTFILTER", Const, 0}, + {"RTM_IEEE80211", Const, 0}, + {"RTM_IFANNOUNCE", Const, 0}, + {"RTM_IFINFO", Const, 0}, + {"RTM_IFINFO2", Const, 0}, + {"RTM_LLINFO_UPD", Const, 1}, + {"RTM_LOCK", Const, 0}, + {"RTM_LOSING", Const, 0}, + {"RTM_MAX", Const, 0}, + {"RTM_MAXSIZE", Const, 1}, + {"RTM_MISS", Const, 0}, + {"RTM_NEWACTION", Const, 0}, + {"RTM_NEWADDR", Const, 0}, + {"RTM_NEWADDRLABEL", Const, 0}, + {"RTM_NEWLINK", Const, 0}, + {"RTM_NEWMADDR", Const, 0}, + {"RTM_NEWMADDR2", Const, 0}, + {"RTM_NEWNDUSEROPT", Const, 0}, + {"RTM_NEWNEIGH", Const, 0}, + {"RTM_NEWNEIGHTBL", Const, 0}, + {"RTM_NEWPREFIX", Const, 0}, + {"RTM_NEWQDISC", Const, 0}, + {"RTM_NEWROUTE", Const, 0}, + {"RTM_NEWRULE", Const, 0}, + {"RTM_NEWTCLASS", Const, 0}, + {"RTM_NEWTFILTER", Const, 0}, + {"RTM_NR_FAMILIES", Const, 0}, + {"RTM_NR_MSGTYPES", Const, 0}, + {"RTM_OIFINFO", Const, 1}, + {"RTM_OLDADD", Const, 0}, + {"RTM_OLDDEL", Const, 0}, + {"RTM_OOIFINFO", Const, 1}, + {"RTM_REDIRECT", Const, 0}, + {"RTM_RESOLVE", Const, 0}, + {"RTM_RTTUNIT", Const, 0}, + {"RTM_SETDCB", Const, 0}, + {"RTM_SETGATE", Const, 1}, + {"RTM_SETLINK", Const, 0}, + {"RTM_SETNEIGHTBL", Const, 0}, + {"RTM_VERSION", Const, 0}, + {"RTNH_ALIGNTO", Const, 0}, + {"RTNH_F_DEAD", Const, 0}, + {"RTNH_F_ONLINK", Const, 0}, + {"RTNH_F_PERVASIVE", Const, 0}, + {"RTNLGRP_IPV4_IFADDR", Const, 1}, + {"RTNLGRP_IPV4_MROUTE", Const, 1}, + {"RTNLGRP_IPV4_ROUTE", Const, 1}, + {"RTNLGRP_IPV4_RULE", Const, 1}, + {"RTNLGRP_IPV6_IFADDR", Const, 1}, + {"RTNLGRP_IPV6_IFINFO", Const, 1}, + {"RTNLGRP_IPV6_MROUTE", Const, 1}, + {"RTNLGRP_IPV6_PREFIX", Const, 1}, + {"RTNLGRP_IPV6_ROUTE", Const, 1}, + {"RTNLGRP_IPV6_RULE", Const, 1}, + {"RTNLGRP_LINK", Const, 1}, + {"RTNLGRP_ND_USEROPT", Const, 1}, + {"RTNLGRP_NEIGH", Const, 1}, + {"RTNLGRP_NONE", Const, 1}, + {"RTNLGRP_NOTIFY", Const, 1}, + {"RTNLGRP_TC", Const, 1}, + {"RTN_ANYCAST", Const, 0}, + {"RTN_BLACKHOLE", Const, 0}, + {"RTN_BROADCAST", Const, 0}, + {"RTN_LOCAL", Const, 0}, + {"RTN_MAX", Const, 0}, + {"RTN_MULTICAST", Const, 0}, + {"RTN_NAT", Const, 0}, + {"RTN_PROHIBIT", Const, 0}, + {"RTN_THROW", Const, 0}, + {"RTN_UNICAST", Const, 0}, + {"RTN_UNREACHABLE", Const, 0}, + {"RTN_UNSPEC", Const, 0}, + {"RTN_XRESOLVE", Const, 0}, + {"RTPROT_BIRD", Const, 0}, + {"RTPROT_BOOT", Const, 0}, + {"RTPROT_DHCP", Const, 0}, + {"RTPROT_DNROUTED", Const, 0}, + {"RTPROT_GATED", Const, 0}, + {"RTPROT_KERNEL", Const, 0}, + {"RTPROT_MRT", Const, 0}, + {"RTPROT_NTK", Const, 0}, + {"RTPROT_RA", Const, 0}, + {"RTPROT_REDIRECT", Const, 0}, + {"RTPROT_STATIC", Const, 0}, + {"RTPROT_UNSPEC", Const, 0}, + {"RTPROT_XORP", Const, 0}, + {"RTPROT_ZEBRA", Const, 0}, + {"RTV_EXPIRE", Const, 0}, + {"RTV_HOPCOUNT", Const, 0}, + {"RTV_MTU", Const, 0}, + {"RTV_RPIPE", Const, 0}, + {"RTV_RTT", Const, 0}, + {"RTV_RTTVAR", Const, 0}, + {"RTV_SPIPE", Const, 0}, + {"RTV_SSTHRESH", Const, 0}, + {"RTV_WEIGHT", Const, 0}, + {"RT_CACHING_CONTEXT", Const, 1}, + {"RT_CLASS_DEFAULT", Const, 0}, + {"RT_CLASS_LOCAL", Const, 0}, + {"RT_CLASS_MAIN", Const, 0}, + {"RT_CLASS_MAX", Const, 0}, + {"RT_CLASS_UNSPEC", Const, 0}, + {"RT_DEFAULT_FIB", Const, 1}, + {"RT_NORTREF", Const, 1}, + {"RT_SCOPE_HOST", Const, 0}, + {"RT_SCOPE_LINK", Const, 0}, + {"RT_SCOPE_NOWHERE", Const, 0}, + {"RT_SCOPE_SITE", Const, 0}, + {"RT_SCOPE_UNIVERSE", Const, 0}, + {"RT_TABLEID_MAX", Const, 1}, + {"RT_TABLE_COMPAT", Const, 0}, + {"RT_TABLE_DEFAULT", Const, 0}, + {"RT_TABLE_LOCAL", Const, 0}, + {"RT_TABLE_MAIN", Const, 0}, + {"RT_TABLE_MAX", Const, 0}, + {"RT_TABLE_UNSPEC", Const, 0}, + {"RUSAGE_CHILDREN", Const, 0}, + {"RUSAGE_SELF", Const, 0}, + {"RUSAGE_THREAD", Const, 0}, + {"Radvisory_t", Type, 0}, + {"Radvisory_t.Count", Field, 0}, + {"Radvisory_t.Offset", Field, 0}, + {"Radvisory_t.Pad_cgo_0", Field, 0}, + {"RawConn", Type, 9}, + {"RawSockaddr", Type, 0}, + {"RawSockaddr.Data", Field, 0}, + {"RawSockaddr.Family", Field, 0}, + {"RawSockaddr.Len", Field, 0}, + {"RawSockaddrAny", Type, 0}, + {"RawSockaddrAny.Addr", Field, 0}, + {"RawSockaddrAny.Pad", Field, 0}, + {"RawSockaddrDatalink", Type, 0}, + {"RawSockaddrDatalink.Alen", Field, 0}, + {"RawSockaddrDatalink.Data", Field, 0}, + {"RawSockaddrDatalink.Family", Field, 0}, + {"RawSockaddrDatalink.Index", Field, 0}, + {"RawSockaddrDatalink.Len", Field, 0}, + {"RawSockaddrDatalink.Nlen", Field, 0}, + {"RawSockaddrDatalink.Pad_cgo_0", Field, 2}, + {"RawSockaddrDatalink.Slen", Field, 0}, + {"RawSockaddrDatalink.Type", Field, 0}, + {"RawSockaddrInet4", Type, 0}, + {"RawSockaddrInet4.Addr", Field, 0}, + {"RawSockaddrInet4.Family", Field, 0}, + {"RawSockaddrInet4.Len", Field, 0}, + {"RawSockaddrInet4.Port", Field, 0}, + {"RawSockaddrInet4.Zero", Field, 0}, + {"RawSockaddrInet6", Type, 0}, + {"RawSockaddrInet6.Addr", Field, 0}, + {"RawSockaddrInet6.Family", Field, 0}, + {"RawSockaddrInet6.Flowinfo", Field, 0}, + {"RawSockaddrInet6.Len", Field, 0}, + {"RawSockaddrInet6.Port", Field, 0}, + {"RawSockaddrInet6.Scope_id", Field, 0}, + {"RawSockaddrLinklayer", Type, 0}, + {"RawSockaddrLinklayer.Addr", Field, 0}, + {"RawSockaddrLinklayer.Family", Field, 0}, + {"RawSockaddrLinklayer.Halen", Field, 0}, + {"RawSockaddrLinklayer.Hatype", Field, 0}, + {"RawSockaddrLinklayer.Ifindex", Field, 0}, + {"RawSockaddrLinklayer.Pkttype", Field, 0}, + {"RawSockaddrLinklayer.Protocol", Field, 0}, + {"RawSockaddrNetlink", Type, 0}, + {"RawSockaddrNetlink.Family", Field, 0}, + {"RawSockaddrNetlink.Groups", Field, 0}, + {"RawSockaddrNetlink.Pad", Field, 0}, + {"RawSockaddrNetlink.Pid", Field, 0}, + {"RawSockaddrUnix", Type, 0}, + {"RawSockaddrUnix.Family", Field, 0}, + {"RawSockaddrUnix.Len", Field, 0}, + {"RawSockaddrUnix.Pad_cgo_0", Field, 2}, + {"RawSockaddrUnix.Path", Field, 0}, + {"RawSyscall", Func, 0}, + {"RawSyscall6", Func, 0}, + {"Read", Func, 0}, + {"ReadConsole", Func, 1}, + {"ReadDirectoryChanges", Func, 0}, + {"ReadDirent", Func, 0}, + {"ReadFile", Func, 0}, + {"Readlink", Func, 0}, + {"Reboot", Func, 0}, + {"Recvfrom", Func, 0}, + {"Recvmsg", Func, 0}, + {"RegCloseKey", Func, 0}, + {"RegEnumKeyEx", Func, 0}, + {"RegOpenKeyEx", Func, 0}, + {"RegQueryInfoKey", Func, 0}, + {"RegQueryValueEx", Func, 0}, + {"RemoveDirectory", Func, 0}, + {"Removexattr", Func, 1}, + {"Rename", Func, 0}, + {"Renameat", Func, 0}, + {"Revoke", Func, 0}, + {"Rlimit", Type, 0}, + {"Rlimit.Cur", Field, 0}, + {"Rlimit.Max", Field, 0}, + {"Rmdir", Func, 0}, + {"RouteMessage", Type, 0}, + {"RouteMessage.Data", Field, 0}, + {"RouteMessage.Header", Field, 0}, + {"RouteRIB", Func, 0}, + {"RoutingMessage", Type, 0}, + {"RtAttr", Type, 0}, + {"RtAttr.Len", Field, 0}, + {"RtAttr.Type", Field, 0}, + {"RtGenmsg", Type, 0}, + {"RtGenmsg.Family", Field, 0}, + {"RtMetrics", Type, 0}, + {"RtMetrics.Expire", Field, 0}, + {"RtMetrics.Filler", Field, 0}, + {"RtMetrics.Hopcount", Field, 0}, + {"RtMetrics.Locks", Field, 0}, + {"RtMetrics.Mtu", Field, 0}, + {"RtMetrics.Pad", Field, 3}, + {"RtMetrics.Pksent", Field, 0}, + {"RtMetrics.Recvpipe", Field, 0}, + {"RtMetrics.Refcnt", Field, 2}, + {"RtMetrics.Rtt", Field, 0}, + {"RtMetrics.Rttvar", Field, 0}, + {"RtMetrics.Sendpipe", Field, 0}, + {"RtMetrics.Ssthresh", Field, 0}, + {"RtMetrics.Weight", Field, 0}, + {"RtMsg", Type, 0}, + {"RtMsg.Dst_len", Field, 0}, + {"RtMsg.Family", Field, 0}, + {"RtMsg.Flags", Field, 0}, + {"RtMsg.Protocol", Field, 0}, + {"RtMsg.Scope", Field, 0}, + {"RtMsg.Src_len", Field, 0}, + {"RtMsg.Table", Field, 0}, + {"RtMsg.Tos", Field, 0}, + {"RtMsg.Type", Field, 0}, + {"RtMsghdr", Type, 0}, + {"RtMsghdr.Addrs", Field, 0}, + {"RtMsghdr.Errno", Field, 0}, + {"RtMsghdr.Flags", Field, 0}, + {"RtMsghdr.Fmask", Field, 0}, + {"RtMsghdr.Hdrlen", Field, 2}, + {"RtMsghdr.Index", Field, 0}, + {"RtMsghdr.Inits", Field, 0}, + {"RtMsghdr.Mpls", Field, 2}, + {"RtMsghdr.Msglen", Field, 0}, + {"RtMsghdr.Pad_cgo_0", Field, 0}, + {"RtMsghdr.Pad_cgo_1", Field, 2}, + {"RtMsghdr.Pid", Field, 0}, + {"RtMsghdr.Priority", Field, 2}, + {"RtMsghdr.Rmx", Field, 0}, + {"RtMsghdr.Seq", Field, 0}, + {"RtMsghdr.Tableid", Field, 2}, + {"RtMsghdr.Type", Field, 0}, + {"RtMsghdr.Use", Field, 0}, + {"RtMsghdr.Version", Field, 0}, + {"RtNexthop", Type, 0}, + {"RtNexthop.Flags", Field, 0}, + {"RtNexthop.Hops", Field, 0}, + {"RtNexthop.Ifindex", Field, 0}, + {"RtNexthop.Len", Field, 0}, + {"Rusage", Type, 0}, + {"Rusage.CreationTime", Field, 0}, + {"Rusage.ExitTime", Field, 0}, + {"Rusage.Idrss", Field, 0}, + {"Rusage.Inblock", Field, 0}, + {"Rusage.Isrss", Field, 0}, + {"Rusage.Ixrss", Field, 0}, + {"Rusage.KernelTime", Field, 0}, + {"Rusage.Majflt", Field, 0}, + {"Rusage.Maxrss", Field, 0}, + {"Rusage.Minflt", Field, 0}, + {"Rusage.Msgrcv", Field, 0}, + {"Rusage.Msgsnd", Field, 0}, + {"Rusage.Nivcsw", Field, 0}, + {"Rusage.Nsignals", Field, 0}, + {"Rusage.Nswap", Field, 0}, + {"Rusage.Nvcsw", Field, 0}, + {"Rusage.Oublock", Field, 0}, + {"Rusage.Stime", Field, 0}, + {"Rusage.UserTime", Field, 0}, + {"Rusage.Utime", Field, 0}, + {"SCM_BINTIME", Const, 0}, + {"SCM_CREDENTIALS", Const, 0}, + {"SCM_CREDS", Const, 0}, + {"SCM_RIGHTS", Const, 0}, + {"SCM_TIMESTAMP", Const, 0}, + {"SCM_TIMESTAMPING", Const, 0}, + {"SCM_TIMESTAMPNS", Const, 0}, + {"SCM_TIMESTAMP_MONOTONIC", Const, 0}, + {"SHUT_RD", Const, 0}, + {"SHUT_RDWR", Const, 0}, + {"SHUT_WR", Const, 0}, + {"SID", Type, 0}, + {"SIDAndAttributes", Type, 0}, + {"SIDAndAttributes.Attributes", Field, 0}, + {"SIDAndAttributes.Sid", Field, 0}, + {"SIGABRT", Const, 0}, + {"SIGALRM", Const, 0}, + {"SIGBUS", Const, 0}, + {"SIGCHLD", Const, 0}, + {"SIGCLD", Const, 0}, + {"SIGCONT", Const, 0}, + {"SIGEMT", Const, 0}, + {"SIGFPE", Const, 0}, + {"SIGHUP", Const, 0}, + {"SIGILL", Const, 0}, + {"SIGINFO", Const, 0}, + {"SIGINT", Const, 0}, + {"SIGIO", Const, 0}, + {"SIGIOT", Const, 0}, + {"SIGKILL", Const, 0}, + {"SIGLIBRT", Const, 1}, + {"SIGLWP", Const, 0}, + {"SIGPIPE", Const, 0}, + {"SIGPOLL", Const, 0}, + {"SIGPROF", Const, 0}, + {"SIGPWR", Const, 0}, + {"SIGQUIT", Const, 0}, + {"SIGSEGV", Const, 0}, + {"SIGSTKFLT", Const, 0}, + {"SIGSTOP", Const, 0}, + {"SIGSYS", Const, 0}, + {"SIGTERM", Const, 0}, + {"SIGTHR", Const, 0}, + {"SIGTRAP", Const, 0}, + {"SIGTSTP", Const, 0}, + {"SIGTTIN", Const, 0}, + {"SIGTTOU", Const, 0}, + {"SIGUNUSED", Const, 0}, + {"SIGURG", Const, 0}, + {"SIGUSR1", Const, 0}, + {"SIGUSR2", Const, 0}, + {"SIGVTALRM", Const, 0}, + {"SIGWINCH", Const, 0}, + {"SIGXCPU", Const, 0}, + {"SIGXFSZ", Const, 0}, + {"SIOCADDDLCI", Const, 0}, + {"SIOCADDMULTI", Const, 0}, + {"SIOCADDRT", Const, 0}, + {"SIOCAIFADDR", Const, 0}, + {"SIOCAIFGROUP", Const, 0}, + {"SIOCALIFADDR", Const, 0}, + {"SIOCARPIPLL", Const, 0}, + {"SIOCATMARK", Const, 0}, + {"SIOCAUTOADDR", Const, 0}, + {"SIOCAUTONETMASK", Const, 0}, + {"SIOCBRDGADD", Const, 1}, + {"SIOCBRDGADDS", Const, 1}, + {"SIOCBRDGARL", Const, 1}, + {"SIOCBRDGDADDR", Const, 1}, + {"SIOCBRDGDEL", Const, 1}, + {"SIOCBRDGDELS", Const, 1}, + {"SIOCBRDGFLUSH", Const, 1}, + {"SIOCBRDGFRL", Const, 1}, + {"SIOCBRDGGCACHE", Const, 1}, + {"SIOCBRDGGFD", Const, 1}, + {"SIOCBRDGGHT", Const, 1}, + {"SIOCBRDGGIFFLGS", Const, 1}, + {"SIOCBRDGGMA", Const, 1}, + {"SIOCBRDGGPARAM", Const, 1}, + {"SIOCBRDGGPRI", Const, 1}, + {"SIOCBRDGGRL", Const, 1}, + {"SIOCBRDGGSIFS", Const, 1}, + {"SIOCBRDGGTO", Const, 1}, + {"SIOCBRDGIFS", Const, 1}, + {"SIOCBRDGRTS", Const, 1}, + {"SIOCBRDGSADDR", Const, 1}, + {"SIOCBRDGSCACHE", Const, 1}, + {"SIOCBRDGSFD", Const, 1}, + {"SIOCBRDGSHT", Const, 1}, + {"SIOCBRDGSIFCOST", Const, 1}, + {"SIOCBRDGSIFFLGS", Const, 1}, + {"SIOCBRDGSIFPRIO", Const, 1}, + {"SIOCBRDGSMA", Const, 1}, + {"SIOCBRDGSPRI", Const, 1}, + {"SIOCBRDGSPROTO", Const, 1}, + {"SIOCBRDGSTO", Const, 1}, + {"SIOCBRDGSTXHC", Const, 1}, + {"SIOCDARP", Const, 0}, + {"SIOCDELDLCI", Const, 0}, + {"SIOCDELMULTI", Const, 0}, + {"SIOCDELRT", Const, 0}, + {"SIOCDEVPRIVATE", Const, 0}, + {"SIOCDIFADDR", Const, 0}, + {"SIOCDIFGROUP", Const, 0}, + {"SIOCDIFPHYADDR", Const, 0}, + {"SIOCDLIFADDR", Const, 0}, + {"SIOCDRARP", Const, 0}, + {"SIOCGARP", Const, 0}, + {"SIOCGDRVSPEC", Const, 0}, + {"SIOCGETKALIVE", Const, 1}, + {"SIOCGETLABEL", Const, 1}, + {"SIOCGETPFLOW", Const, 1}, + {"SIOCGETPFSYNC", Const, 1}, + {"SIOCGETSGCNT", Const, 0}, + {"SIOCGETVIFCNT", Const, 0}, + {"SIOCGETVLAN", Const, 0}, + {"SIOCGHIWAT", Const, 0}, + {"SIOCGIFADDR", Const, 0}, + {"SIOCGIFADDRPREF", Const, 1}, + {"SIOCGIFALIAS", Const, 1}, + {"SIOCGIFALTMTU", Const, 0}, + {"SIOCGIFASYNCMAP", Const, 0}, + {"SIOCGIFBOND", Const, 0}, + {"SIOCGIFBR", Const, 0}, + {"SIOCGIFBRDADDR", Const, 0}, + {"SIOCGIFCAP", Const, 0}, + {"SIOCGIFCONF", Const, 0}, + {"SIOCGIFCOUNT", Const, 0}, + {"SIOCGIFDATA", Const, 1}, + {"SIOCGIFDESCR", Const, 0}, + {"SIOCGIFDEVMTU", Const, 0}, + {"SIOCGIFDLT", Const, 1}, + {"SIOCGIFDSTADDR", Const, 0}, + {"SIOCGIFENCAP", Const, 0}, + {"SIOCGIFFIB", Const, 1}, + {"SIOCGIFFLAGS", Const, 0}, + {"SIOCGIFGATTR", Const, 1}, + {"SIOCGIFGENERIC", Const, 0}, + {"SIOCGIFGMEMB", Const, 0}, + {"SIOCGIFGROUP", Const, 0}, + {"SIOCGIFHARDMTU", Const, 3}, + {"SIOCGIFHWADDR", Const, 0}, + {"SIOCGIFINDEX", Const, 0}, + {"SIOCGIFKPI", Const, 0}, + {"SIOCGIFMAC", Const, 0}, + {"SIOCGIFMAP", Const, 0}, + {"SIOCGIFMEDIA", Const, 0}, + {"SIOCGIFMEM", Const, 0}, + {"SIOCGIFMETRIC", Const, 0}, + {"SIOCGIFMTU", Const, 0}, + {"SIOCGIFNAME", Const, 0}, + {"SIOCGIFNETMASK", Const, 0}, + {"SIOCGIFPDSTADDR", Const, 0}, + {"SIOCGIFPFLAGS", Const, 0}, + {"SIOCGIFPHYS", Const, 0}, + {"SIOCGIFPRIORITY", Const, 1}, + {"SIOCGIFPSRCADDR", Const, 0}, + {"SIOCGIFRDOMAIN", Const, 1}, + {"SIOCGIFRTLABEL", Const, 1}, + {"SIOCGIFSLAVE", Const, 0}, + {"SIOCGIFSTATUS", Const, 0}, + {"SIOCGIFTIMESLOT", Const, 1}, + {"SIOCGIFTXQLEN", Const, 0}, + {"SIOCGIFVLAN", Const, 0}, + {"SIOCGIFWAKEFLAGS", Const, 0}, + {"SIOCGIFXFLAGS", Const, 1}, + {"SIOCGLIFADDR", Const, 0}, + {"SIOCGLIFPHYADDR", Const, 0}, + {"SIOCGLIFPHYRTABLE", Const, 1}, + {"SIOCGLIFPHYTTL", Const, 3}, + {"SIOCGLINKSTR", Const, 1}, + {"SIOCGLOWAT", Const, 0}, + {"SIOCGPGRP", Const, 0}, + {"SIOCGPRIVATE_0", Const, 0}, + {"SIOCGPRIVATE_1", Const, 0}, + {"SIOCGRARP", Const, 0}, + {"SIOCGSPPPPARAMS", Const, 3}, + {"SIOCGSTAMP", Const, 0}, + {"SIOCGSTAMPNS", Const, 0}, + {"SIOCGVH", Const, 1}, + {"SIOCGVNETID", Const, 3}, + {"SIOCIFCREATE", Const, 0}, + {"SIOCIFCREATE2", Const, 0}, + {"SIOCIFDESTROY", Const, 0}, + {"SIOCIFGCLONERS", Const, 0}, + {"SIOCINITIFADDR", Const, 1}, + {"SIOCPROTOPRIVATE", Const, 0}, + {"SIOCRSLVMULTI", Const, 0}, + {"SIOCRTMSG", Const, 0}, + {"SIOCSARP", Const, 0}, + {"SIOCSDRVSPEC", Const, 0}, + {"SIOCSETKALIVE", Const, 1}, + {"SIOCSETLABEL", Const, 1}, + {"SIOCSETPFLOW", Const, 1}, + {"SIOCSETPFSYNC", Const, 1}, + {"SIOCSETVLAN", Const, 0}, + {"SIOCSHIWAT", Const, 0}, + {"SIOCSIFADDR", Const, 0}, + {"SIOCSIFADDRPREF", Const, 1}, + {"SIOCSIFALTMTU", Const, 0}, + {"SIOCSIFASYNCMAP", Const, 0}, + {"SIOCSIFBOND", Const, 0}, + {"SIOCSIFBR", Const, 0}, + {"SIOCSIFBRDADDR", Const, 0}, + {"SIOCSIFCAP", Const, 0}, + {"SIOCSIFDESCR", Const, 0}, + {"SIOCSIFDSTADDR", Const, 0}, + {"SIOCSIFENCAP", Const, 0}, + {"SIOCSIFFIB", Const, 1}, + {"SIOCSIFFLAGS", Const, 0}, + {"SIOCSIFGATTR", Const, 1}, + {"SIOCSIFGENERIC", Const, 0}, + {"SIOCSIFHWADDR", Const, 0}, + {"SIOCSIFHWBROADCAST", Const, 0}, + {"SIOCSIFKPI", Const, 0}, + {"SIOCSIFLINK", Const, 0}, + {"SIOCSIFLLADDR", Const, 0}, + {"SIOCSIFMAC", Const, 0}, + {"SIOCSIFMAP", Const, 0}, + {"SIOCSIFMEDIA", Const, 0}, + {"SIOCSIFMEM", Const, 0}, + {"SIOCSIFMETRIC", Const, 0}, + {"SIOCSIFMTU", Const, 0}, + {"SIOCSIFNAME", Const, 0}, + {"SIOCSIFNETMASK", Const, 0}, + {"SIOCSIFPFLAGS", Const, 0}, + {"SIOCSIFPHYADDR", Const, 0}, + {"SIOCSIFPHYS", Const, 0}, + {"SIOCSIFPRIORITY", Const, 1}, + {"SIOCSIFRDOMAIN", Const, 1}, + {"SIOCSIFRTLABEL", Const, 1}, + {"SIOCSIFRVNET", Const, 0}, + {"SIOCSIFSLAVE", Const, 0}, + {"SIOCSIFTIMESLOT", Const, 1}, + {"SIOCSIFTXQLEN", Const, 0}, + {"SIOCSIFVLAN", Const, 0}, + {"SIOCSIFVNET", Const, 0}, + {"SIOCSIFXFLAGS", Const, 1}, + {"SIOCSLIFPHYADDR", Const, 0}, + {"SIOCSLIFPHYRTABLE", Const, 1}, + {"SIOCSLIFPHYTTL", Const, 3}, + {"SIOCSLINKSTR", Const, 1}, + {"SIOCSLOWAT", Const, 0}, + {"SIOCSPGRP", Const, 0}, + {"SIOCSRARP", Const, 0}, + {"SIOCSSPPPPARAMS", Const, 3}, + {"SIOCSVH", Const, 1}, + {"SIOCSVNETID", Const, 3}, + {"SIOCZIFDATA", Const, 1}, + {"SIO_GET_EXTENSION_FUNCTION_POINTER", Const, 1}, + {"SIO_GET_INTERFACE_LIST", Const, 0}, + {"SIO_KEEPALIVE_VALS", Const, 3}, + {"SIO_UDP_CONNRESET", Const, 4}, + {"SOCK_CLOEXEC", Const, 0}, + {"SOCK_DCCP", Const, 0}, + {"SOCK_DGRAM", Const, 0}, + {"SOCK_FLAGS_MASK", Const, 1}, + {"SOCK_MAXADDRLEN", Const, 0}, + {"SOCK_NONBLOCK", Const, 0}, + {"SOCK_NOSIGPIPE", Const, 1}, + {"SOCK_PACKET", Const, 0}, + {"SOCK_RAW", Const, 0}, + {"SOCK_RDM", Const, 0}, + {"SOCK_SEQPACKET", Const, 0}, + {"SOCK_STREAM", Const, 0}, + {"SOL_AAL", Const, 0}, + {"SOL_ATM", Const, 0}, + {"SOL_DECNET", Const, 0}, + {"SOL_ICMPV6", Const, 0}, + {"SOL_IP", Const, 0}, + {"SOL_IPV6", Const, 0}, + {"SOL_IRDA", Const, 0}, + {"SOL_PACKET", Const, 0}, + {"SOL_RAW", Const, 0}, + {"SOL_SOCKET", Const, 0}, + {"SOL_TCP", Const, 0}, + {"SOL_X25", Const, 0}, + {"SOMAXCONN", Const, 0}, + {"SO_ACCEPTCONN", Const, 0}, + {"SO_ACCEPTFILTER", Const, 0}, + {"SO_ATTACH_FILTER", Const, 0}, + {"SO_BINDANY", Const, 1}, + {"SO_BINDTODEVICE", Const, 0}, + {"SO_BINTIME", Const, 0}, + {"SO_BROADCAST", Const, 0}, + {"SO_BSDCOMPAT", Const, 0}, + {"SO_DEBUG", Const, 0}, + {"SO_DETACH_FILTER", Const, 0}, + {"SO_DOMAIN", Const, 0}, + {"SO_DONTROUTE", Const, 0}, + {"SO_DONTTRUNC", Const, 0}, + {"SO_ERROR", Const, 0}, + {"SO_KEEPALIVE", Const, 0}, + {"SO_LABEL", Const, 0}, + {"SO_LINGER", Const, 0}, + {"SO_LINGER_SEC", Const, 0}, + {"SO_LISTENINCQLEN", Const, 0}, + {"SO_LISTENQLEN", Const, 0}, + {"SO_LISTENQLIMIT", Const, 0}, + {"SO_MARK", Const, 0}, + {"SO_NETPROC", Const, 1}, + {"SO_NKE", Const, 0}, + {"SO_NOADDRERR", Const, 0}, + {"SO_NOHEADER", Const, 1}, + {"SO_NOSIGPIPE", Const, 0}, + {"SO_NOTIFYCONFLICT", Const, 0}, + {"SO_NO_CHECK", Const, 0}, + {"SO_NO_DDP", Const, 0}, + {"SO_NO_OFFLOAD", Const, 0}, + {"SO_NP_EXTENSIONS", Const, 0}, + {"SO_NREAD", Const, 0}, + {"SO_NUMRCVPKT", Const, 16}, + {"SO_NWRITE", Const, 0}, + {"SO_OOBINLINE", Const, 0}, + {"SO_OVERFLOWED", Const, 1}, + {"SO_PASSCRED", Const, 0}, + {"SO_PASSSEC", Const, 0}, + {"SO_PEERCRED", Const, 0}, + {"SO_PEERLABEL", Const, 0}, + {"SO_PEERNAME", Const, 0}, + {"SO_PEERSEC", Const, 0}, + {"SO_PRIORITY", Const, 0}, + {"SO_PROTOCOL", Const, 0}, + {"SO_PROTOTYPE", Const, 1}, + {"SO_RANDOMPORT", Const, 0}, + {"SO_RCVBUF", Const, 0}, + {"SO_RCVBUFFORCE", Const, 0}, + {"SO_RCVLOWAT", Const, 0}, + {"SO_RCVTIMEO", Const, 0}, + {"SO_RESTRICTIONS", Const, 0}, + {"SO_RESTRICT_DENYIN", Const, 0}, + {"SO_RESTRICT_DENYOUT", Const, 0}, + {"SO_RESTRICT_DENYSET", Const, 0}, + {"SO_REUSEADDR", Const, 0}, + {"SO_REUSEPORT", Const, 0}, + {"SO_REUSESHAREUID", Const, 0}, + {"SO_RTABLE", Const, 1}, + {"SO_RXQ_OVFL", Const, 0}, + {"SO_SECURITY_AUTHENTICATION", Const, 0}, + {"SO_SECURITY_ENCRYPTION_NETWORK", Const, 0}, + {"SO_SECURITY_ENCRYPTION_TRANSPORT", Const, 0}, + {"SO_SETFIB", Const, 0}, + {"SO_SNDBUF", Const, 0}, + {"SO_SNDBUFFORCE", Const, 0}, + {"SO_SNDLOWAT", Const, 0}, + {"SO_SNDTIMEO", Const, 0}, + {"SO_SPLICE", Const, 1}, + {"SO_TIMESTAMP", Const, 0}, + {"SO_TIMESTAMPING", Const, 0}, + {"SO_TIMESTAMPNS", Const, 0}, + {"SO_TIMESTAMP_MONOTONIC", Const, 0}, + {"SO_TYPE", Const, 0}, + {"SO_UPCALLCLOSEWAIT", Const, 0}, + {"SO_UPDATE_ACCEPT_CONTEXT", Const, 0}, + {"SO_UPDATE_CONNECT_CONTEXT", Const, 1}, + {"SO_USELOOPBACK", Const, 0}, + {"SO_USER_COOKIE", Const, 1}, + {"SO_VENDOR", Const, 3}, + {"SO_WANTMORE", Const, 0}, + {"SO_WANTOOBFLAG", Const, 0}, + {"SSLExtraCertChainPolicyPara", Type, 0}, + {"SSLExtraCertChainPolicyPara.AuthType", Field, 0}, + {"SSLExtraCertChainPolicyPara.Checks", Field, 0}, + {"SSLExtraCertChainPolicyPara.ServerName", Field, 0}, + {"SSLExtraCertChainPolicyPara.Size", Field, 0}, + {"STANDARD_RIGHTS_ALL", Const, 0}, + {"STANDARD_RIGHTS_EXECUTE", Const, 0}, + {"STANDARD_RIGHTS_READ", Const, 0}, + {"STANDARD_RIGHTS_REQUIRED", Const, 0}, + {"STANDARD_RIGHTS_WRITE", Const, 0}, + {"STARTF_USESHOWWINDOW", Const, 0}, + {"STARTF_USESTDHANDLES", Const, 0}, + {"STD_ERROR_HANDLE", Const, 0}, + {"STD_INPUT_HANDLE", Const, 0}, + {"STD_OUTPUT_HANDLE", Const, 0}, + {"SUBLANG_ENGLISH_US", Const, 0}, + {"SW_FORCEMINIMIZE", Const, 0}, + {"SW_HIDE", Const, 0}, + {"SW_MAXIMIZE", Const, 0}, + {"SW_MINIMIZE", Const, 0}, + {"SW_NORMAL", Const, 0}, + {"SW_RESTORE", Const, 0}, + {"SW_SHOW", Const, 0}, + {"SW_SHOWDEFAULT", Const, 0}, + {"SW_SHOWMAXIMIZED", Const, 0}, + {"SW_SHOWMINIMIZED", Const, 0}, + {"SW_SHOWMINNOACTIVE", Const, 0}, + {"SW_SHOWNA", Const, 0}, + {"SW_SHOWNOACTIVATE", Const, 0}, + {"SW_SHOWNORMAL", Const, 0}, + {"SYMBOLIC_LINK_FLAG_DIRECTORY", Const, 4}, + {"SYNCHRONIZE", Const, 0}, + {"SYSCTL_VERSION", Const, 1}, + {"SYSCTL_VERS_0", Const, 1}, + {"SYSCTL_VERS_1", Const, 1}, + {"SYSCTL_VERS_MASK", Const, 1}, + {"SYS_ABORT2", Const, 0}, + {"SYS_ACCEPT", Const, 0}, + {"SYS_ACCEPT4", Const, 0}, + {"SYS_ACCEPT_NOCANCEL", Const, 0}, + {"SYS_ACCESS", Const, 0}, + {"SYS_ACCESS_EXTENDED", Const, 0}, + {"SYS_ACCT", Const, 0}, + {"SYS_ADD_KEY", Const, 0}, + {"SYS_ADD_PROFIL", Const, 0}, + {"SYS_ADJFREQ", Const, 1}, + {"SYS_ADJTIME", Const, 0}, + {"SYS_ADJTIMEX", Const, 0}, + {"SYS_AFS_SYSCALL", Const, 0}, + {"SYS_AIO_CANCEL", Const, 0}, + {"SYS_AIO_ERROR", Const, 0}, + {"SYS_AIO_FSYNC", Const, 0}, + {"SYS_AIO_MLOCK", Const, 14}, + {"SYS_AIO_READ", Const, 0}, + {"SYS_AIO_RETURN", Const, 0}, + {"SYS_AIO_SUSPEND", Const, 0}, + {"SYS_AIO_SUSPEND_NOCANCEL", Const, 0}, + {"SYS_AIO_WAITCOMPLETE", Const, 14}, + {"SYS_AIO_WRITE", Const, 0}, + {"SYS_ALARM", Const, 0}, + {"SYS_ARCH_PRCTL", Const, 0}, + {"SYS_ARM_FADVISE64_64", Const, 0}, + {"SYS_ARM_SYNC_FILE_RANGE", Const, 0}, + {"SYS_ATGETMSG", Const, 0}, + {"SYS_ATPGETREQ", Const, 0}, + {"SYS_ATPGETRSP", Const, 0}, + {"SYS_ATPSNDREQ", Const, 0}, + {"SYS_ATPSNDRSP", Const, 0}, + {"SYS_ATPUTMSG", Const, 0}, + {"SYS_ATSOCKET", Const, 0}, + {"SYS_AUDIT", Const, 0}, + {"SYS_AUDITCTL", Const, 0}, + {"SYS_AUDITON", Const, 0}, + {"SYS_AUDIT_SESSION_JOIN", Const, 0}, + {"SYS_AUDIT_SESSION_PORT", Const, 0}, + {"SYS_AUDIT_SESSION_SELF", Const, 0}, + {"SYS_BDFLUSH", Const, 0}, + {"SYS_BIND", Const, 0}, + {"SYS_BINDAT", Const, 3}, + {"SYS_BREAK", Const, 0}, + {"SYS_BRK", Const, 0}, + {"SYS_BSDTHREAD_CREATE", Const, 0}, + {"SYS_BSDTHREAD_REGISTER", Const, 0}, + {"SYS_BSDTHREAD_TERMINATE", Const, 0}, + {"SYS_CAPGET", Const, 0}, + {"SYS_CAPSET", Const, 0}, + {"SYS_CAP_ENTER", Const, 0}, + {"SYS_CAP_FCNTLS_GET", Const, 1}, + {"SYS_CAP_FCNTLS_LIMIT", Const, 1}, + {"SYS_CAP_GETMODE", Const, 0}, + {"SYS_CAP_GETRIGHTS", Const, 0}, + {"SYS_CAP_IOCTLS_GET", Const, 1}, + {"SYS_CAP_IOCTLS_LIMIT", Const, 1}, + {"SYS_CAP_NEW", Const, 0}, + {"SYS_CAP_RIGHTS_GET", Const, 1}, + {"SYS_CAP_RIGHTS_LIMIT", Const, 1}, + {"SYS_CHDIR", Const, 0}, + {"SYS_CHFLAGS", Const, 0}, + {"SYS_CHFLAGSAT", Const, 3}, + {"SYS_CHMOD", Const, 0}, + {"SYS_CHMOD_EXTENDED", Const, 0}, + {"SYS_CHOWN", Const, 0}, + {"SYS_CHOWN32", Const, 0}, + {"SYS_CHROOT", Const, 0}, + {"SYS_CHUD", Const, 0}, + {"SYS_CLOCK_ADJTIME", Const, 0}, + {"SYS_CLOCK_GETCPUCLOCKID2", Const, 1}, + {"SYS_CLOCK_GETRES", Const, 0}, + {"SYS_CLOCK_GETTIME", Const, 0}, + {"SYS_CLOCK_NANOSLEEP", Const, 0}, + {"SYS_CLOCK_SETTIME", Const, 0}, + {"SYS_CLONE", Const, 0}, + {"SYS_CLOSE", Const, 0}, + {"SYS_CLOSEFROM", Const, 0}, + {"SYS_CLOSE_NOCANCEL", Const, 0}, + {"SYS_CONNECT", Const, 0}, + {"SYS_CONNECTAT", Const, 3}, + {"SYS_CONNECT_NOCANCEL", Const, 0}, + {"SYS_COPYFILE", Const, 0}, + {"SYS_CPUSET", Const, 0}, + {"SYS_CPUSET_GETAFFINITY", Const, 0}, + {"SYS_CPUSET_GETID", Const, 0}, + {"SYS_CPUSET_SETAFFINITY", Const, 0}, + {"SYS_CPUSET_SETID", Const, 0}, + {"SYS_CREAT", Const, 0}, + {"SYS_CREATE_MODULE", Const, 0}, + {"SYS_CSOPS", Const, 0}, + {"SYS_CSOPS_AUDITTOKEN", Const, 16}, + {"SYS_DELETE", Const, 0}, + {"SYS_DELETE_MODULE", Const, 0}, + {"SYS_DUP", Const, 0}, + {"SYS_DUP2", Const, 0}, + {"SYS_DUP3", Const, 0}, + {"SYS_EACCESS", Const, 0}, + {"SYS_EPOLL_CREATE", Const, 0}, + {"SYS_EPOLL_CREATE1", Const, 0}, + {"SYS_EPOLL_CTL", Const, 0}, + {"SYS_EPOLL_CTL_OLD", Const, 0}, + {"SYS_EPOLL_PWAIT", Const, 0}, + {"SYS_EPOLL_WAIT", Const, 0}, + {"SYS_EPOLL_WAIT_OLD", Const, 0}, + {"SYS_EVENTFD", Const, 0}, + {"SYS_EVENTFD2", Const, 0}, + {"SYS_EXCHANGEDATA", Const, 0}, + {"SYS_EXECVE", Const, 0}, + {"SYS_EXIT", Const, 0}, + {"SYS_EXIT_GROUP", Const, 0}, + {"SYS_EXTATTRCTL", Const, 0}, + {"SYS_EXTATTR_DELETE_FD", Const, 0}, + {"SYS_EXTATTR_DELETE_FILE", Const, 0}, + {"SYS_EXTATTR_DELETE_LINK", Const, 0}, + {"SYS_EXTATTR_GET_FD", Const, 0}, + {"SYS_EXTATTR_GET_FILE", Const, 0}, + {"SYS_EXTATTR_GET_LINK", Const, 0}, + {"SYS_EXTATTR_LIST_FD", Const, 0}, + {"SYS_EXTATTR_LIST_FILE", Const, 0}, + {"SYS_EXTATTR_LIST_LINK", Const, 0}, + {"SYS_EXTATTR_SET_FD", Const, 0}, + {"SYS_EXTATTR_SET_FILE", Const, 0}, + {"SYS_EXTATTR_SET_LINK", Const, 0}, + {"SYS_FACCESSAT", Const, 0}, + {"SYS_FADVISE64", Const, 0}, + {"SYS_FADVISE64_64", Const, 0}, + {"SYS_FALLOCATE", Const, 0}, + {"SYS_FANOTIFY_INIT", Const, 0}, + {"SYS_FANOTIFY_MARK", Const, 0}, + {"SYS_FCHDIR", Const, 0}, + {"SYS_FCHFLAGS", Const, 0}, + {"SYS_FCHMOD", Const, 0}, + {"SYS_FCHMODAT", Const, 0}, + {"SYS_FCHMOD_EXTENDED", Const, 0}, + {"SYS_FCHOWN", Const, 0}, + {"SYS_FCHOWN32", Const, 0}, + {"SYS_FCHOWNAT", Const, 0}, + {"SYS_FCHROOT", Const, 1}, + {"SYS_FCNTL", Const, 0}, + {"SYS_FCNTL64", Const, 0}, + {"SYS_FCNTL_NOCANCEL", Const, 0}, + {"SYS_FDATASYNC", Const, 0}, + {"SYS_FEXECVE", Const, 0}, + {"SYS_FFCLOCK_GETCOUNTER", Const, 0}, + {"SYS_FFCLOCK_GETESTIMATE", Const, 0}, + {"SYS_FFCLOCK_SETESTIMATE", Const, 0}, + {"SYS_FFSCTL", Const, 0}, + {"SYS_FGETATTRLIST", Const, 0}, + {"SYS_FGETXATTR", Const, 0}, + {"SYS_FHOPEN", Const, 0}, + {"SYS_FHSTAT", Const, 0}, + {"SYS_FHSTATFS", Const, 0}, + {"SYS_FILEPORT_MAKEFD", Const, 0}, + {"SYS_FILEPORT_MAKEPORT", Const, 0}, + {"SYS_FKTRACE", Const, 1}, + {"SYS_FLISTXATTR", Const, 0}, + {"SYS_FLOCK", Const, 0}, + {"SYS_FORK", Const, 0}, + {"SYS_FPATHCONF", Const, 0}, + {"SYS_FREEBSD6_FTRUNCATE", Const, 0}, + {"SYS_FREEBSD6_LSEEK", Const, 0}, + {"SYS_FREEBSD6_MMAP", Const, 0}, + {"SYS_FREEBSD6_PREAD", Const, 0}, + {"SYS_FREEBSD6_PWRITE", Const, 0}, + {"SYS_FREEBSD6_TRUNCATE", Const, 0}, + {"SYS_FREMOVEXATTR", Const, 0}, + {"SYS_FSCTL", Const, 0}, + {"SYS_FSETATTRLIST", Const, 0}, + {"SYS_FSETXATTR", Const, 0}, + {"SYS_FSGETPATH", Const, 0}, + {"SYS_FSTAT", Const, 0}, + {"SYS_FSTAT64", Const, 0}, + {"SYS_FSTAT64_EXTENDED", Const, 0}, + {"SYS_FSTATAT", Const, 0}, + {"SYS_FSTATAT64", Const, 0}, + {"SYS_FSTATFS", Const, 0}, + {"SYS_FSTATFS64", Const, 0}, + {"SYS_FSTATV", Const, 0}, + {"SYS_FSTATVFS1", Const, 1}, + {"SYS_FSTAT_EXTENDED", Const, 0}, + {"SYS_FSYNC", Const, 0}, + {"SYS_FSYNC_NOCANCEL", Const, 0}, + {"SYS_FSYNC_RANGE", Const, 1}, + {"SYS_FTIME", Const, 0}, + {"SYS_FTRUNCATE", Const, 0}, + {"SYS_FTRUNCATE64", Const, 0}, + {"SYS_FUTEX", Const, 0}, + {"SYS_FUTIMENS", Const, 1}, + {"SYS_FUTIMES", Const, 0}, + {"SYS_FUTIMESAT", Const, 0}, + {"SYS_GETATTRLIST", Const, 0}, + {"SYS_GETAUDIT", Const, 0}, + {"SYS_GETAUDIT_ADDR", Const, 0}, + {"SYS_GETAUID", Const, 0}, + {"SYS_GETCONTEXT", Const, 0}, + {"SYS_GETCPU", Const, 0}, + {"SYS_GETCWD", Const, 0}, + {"SYS_GETDENTS", Const, 0}, + {"SYS_GETDENTS64", Const, 0}, + {"SYS_GETDIRENTRIES", Const, 0}, + {"SYS_GETDIRENTRIES64", Const, 0}, + {"SYS_GETDIRENTRIESATTR", Const, 0}, + {"SYS_GETDTABLECOUNT", Const, 1}, + {"SYS_GETDTABLESIZE", Const, 0}, + {"SYS_GETEGID", Const, 0}, + {"SYS_GETEGID32", Const, 0}, + {"SYS_GETEUID", Const, 0}, + {"SYS_GETEUID32", Const, 0}, + {"SYS_GETFH", Const, 0}, + {"SYS_GETFSSTAT", Const, 0}, + {"SYS_GETFSSTAT64", Const, 0}, + {"SYS_GETGID", Const, 0}, + {"SYS_GETGID32", Const, 0}, + {"SYS_GETGROUPS", Const, 0}, + {"SYS_GETGROUPS32", Const, 0}, + {"SYS_GETHOSTUUID", Const, 0}, + {"SYS_GETITIMER", Const, 0}, + {"SYS_GETLCID", Const, 0}, + {"SYS_GETLOGIN", Const, 0}, + {"SYS_GETLOGINCLASS", Const, 0}, + {"SYS_GETPEERNAME", Const, 0}, + {"SYS_GETPGID", Const, 0}, + {"SYS_GETPGRP", Const, 0}, + {"SYS_GETPID", Const, 0}, + {"SYS_GETPMSG", Const, 0}, + {"SYS_GETPPID", Const, 0}, + {"SYS_GETPRIORITY", Const, 0}, + {"SYS_GETRESGID", Const, 0}, + {"SYS_GETRESGID32", Const, 0}, + {"SYS_GETRESUID", Const, 0}, + {"SYS_GETRESUID32", Const, 0}, + {"SYS_GETRLIMIT", Const, 0}, + {"SYS_GETRTABLE", Const, 1}, + {"SYS_GETRUSAGE", Const, 0}, + {"SYS_GETSGROUPS", Const, 0}, + {"SYS_GETSID", Const, 0}, + {"SYS_GETSOCKNAME", Const, 0}, + {"SYS_GETSOCKOPT", Const, 0}, + {"SYS_GETTHRID", Const, 1}, + {"SYS_GETTID", Const, 0}, + {"SYS_GETTIMEOFDAY", Const, 0}, + {"SYS_GETUID", Const, 0}, + {"SYS_GETUID32", Const, 0}, + {"SYS_GETVFSSTAT", Const, 1}, + {"SYS_GETWGROUPS", Const, 0}, + {"SYS_GETXATTR", Const, 0}, + {"SYS_GET_KERNEL_SYMS", Const, 0}, + {"SYS_GET_MEMPOLICY", Const, 0}, + {"SYS_GET_ROBUST_LIST", Const, 0}, + {"SYS_GET_THREAD_AREA", Const, 0}, + {"SYS_GSSD_SYSCALL", Const, 14}, + {"SYS_GTTY", Const, 0}, + {"SYS_IDENTITYSVC", Const, 0}, + {"SYS_IDLE", Const, 0}, + {"SYS_INITGROUPS", Const, 0}, + {"SYS_INIT_MODULE", Const, 0}, + {"SYS_INOTIFY_ADD_WATCH", Const, 0}, + {"SYS_INOTIFY_INIT", Const, 0}, + {"SYS_INOTIFY_INIT1", Const, 0}, + {"SYS_INOTIFY_RM_WATCH", Const, 0}, + {"SYS_IOCTL", Const, 0}, + {"SYS_IOPERM", Const, 0}, + {"SYS_IOPL", Const, 0}, + {"SYS_IOPOLICYSYS", Const, 0}, + {"SYS_IOPRIO_GET", Const, 0}, + {"SYS_IOPRIO_SET", Const, 0}, + {"SYS_IO_CANCEL", Const, 0}, + {"SYS_IO_DESTROY", Const, 0}, + {"SYS_IO_GETEVENTS", Const, 0}, + {"SYS_IO_SETUP", Const, 0}, + {"SYS_IO_SUBMIT", Const, 0}, + {"SYS_IPC", Const, 0}, + {"SYS_ISSETUGID", Const, 0}, + {"SYS_JAIL", Const, 0}, + {"SYS_JAIL_ATTACH", Const, 0}, + {"SYS_JAIL_GET", Const, 0}, + {"SYS_JAIL_REMOVE", Const, 0}, + {"SYS_JAIL_SET", Const, 0}, + {"SYS_KAS_INFO", Const, 16}, + {"SYS_KDEBUG_TRACE", Const, 0}, + {"SYS_KENV", Const, 0}, + {"SYS_KEVENT", Const, 0}, + {"SYS_KEVENT64", Const, 0}, + {"SYS_KEXEC_LOAD", Const, 0}, + {"SYS_KEYCTL", Const, 0}, + {"SYS_KILL", Const, 0}, + {"SYS_KLDFIND", Const, 0}, + {"SYS_KLDFIRSTMOD", Const, 0}, + {"SYS_KLDLOAD", Const, 0}, + {"SYS_KLDNEXT", Const, 0}, + {"SYS_KLDSTAT", Const, 0}, + {"SYS_KLDSYM", Const, 0}, + {"SYS_KLDUNLOAD", Const, 0}, + {"SYS_KLDUNLOADF", Const, 0}, + {"SYS_KMQ_NOTIFY", Const, 14}, + {"SYS_KMQ_OPEN", Const, 14}, + {"SYS_KMQ_SETATTR", Const, 14}, + {"SYS_KMQ_TIMEDRECEIVE", Const, 14}, + {"SYS_KMQ_TIMEDSEND", Const, 14}, + {"SYS_KMQ_UNLINK", Const, 14}, + {"SYS_KQUEUE", Const, 0}, + {"SYS_KQUEUE1", Const, 1}, + {"SYS_KSEM_CLOSE", Const, 14}, + {"SYS_KSEM_DESTROY", Const, 14}, + {"SYS_KSEM_GETVALUE", Const, 14}, + {"SYS_KSEM_INIT", Const, 14}, + {"SYS_KSEM_OPEN", Const, 14}, + {"SYS_KSEM_POST", Const, 14}, + {"SYS_KSEM_TIMEDWAIT", Const, 14}, + {"SYS_KSEM_TRYWAIT", Const, 14}, + {"SYS_KSEM_UNLINK", Const, 14}, + {"SYS_KSEM_WAIT", Const, 14}, + {"SYS_KTIMER_CREATE", Const, 0}, + {"SYS_KTIMER_DELETE", Const, 0}, + {"SYS_KTIMER_GETOVERRUN", Const, 0}, + {"SYS_KTIMER_GETTIME", Const, 0}, + {"SYS_KTIMER_SETTIME", Const, 0}, + {"SYS_KTRACE", Const, 0}, + {"SYS_LCHFLAGS", Const, 0}, + {"SYS_LCHMOD", Const, 0}, + {"SYS_LCHOWN", Const, 0}, + {"SYS_LCHOWN32", Const, 0}, + {"SYS_LEDGER", Const, 16}, + {"SYS_LGETFH", Const, 0}, + {"SYS_LGETXATTR", Const, 0}, + {"SYS_LINK", Const, 0}, + {"SYS_LINKAT", Const, 0}, + {"SYS_LIO_LISTIO", Const, 0}, + {"SYS_LISTEN", Const, 0}, + {"SYS_LISTXATTR", Const, 0}, + {"SYS_LLISTXATTR", Const, 0}, + {"SYS_LOCK", Const, 0}, + {"SYS_LOOKUP_DCOOKIE", Const, 0}, + {"SYS_LPATHCONF", Const, 0}, + {"SYS_LREMOVEXATTR", Const, 0}, + {"SYS_LSEEK", Const, 0}, + {"SYS_LSETXATTR", Const, 0}, + {"SYS_LSTAT", Const, 0}, + {"SYS_LSTAT64", Const, 0}, + {"SYS_LSTAT64_EXTENDED", Const, 0}, + {"SYS_LSTATV", Const, 0}, + {"SYS_LSTAT_EXTENDED", Const, 0}, + {"SYS_LUTIMES", Const, 0}, + {"SYS_MAC_SYSCALL", Const, 0}, + {"SYS_MADVISE", Const, 0}, + {"SYS_MADVISE1", Const, 0}, + {"SYS_MAXSYSCALL", Const, 0}, + {"SYS_MBIND", Const, 0}, + {"SYS_MIGRATE_PAGES", Const, 0}, + {"SYS_MINCORE", Const, 0}, + {"SYS_MINHERIT", Const, 0}, + {"SYS_MKCOMPLEX", Const, 0}, + {"SYS_MKDIR", Const, 0}, + {"SYS_MKDIRAT", Const, 0}, + {"SYS_MKDIR_EXTENDED", Const, 0}, + {"SYS_MKFIFO", Const, 0}, + {"SYS_MKFIFOAT", Const, 0}, + {"SYS_MKFIFO_EXTENDED", Const, 0}, + {"SYS_MKNOD", Const, 0}, + {"SYS_MKNODAT", Const, 0}, + {"SYS_MLOCK", Const, 0}, + {"SYS_MLOCKALL", Const, 0}, + {"SYS_MMAP", Const, 0}, + {"SYS_MMAP2", Const, 0}, + {"SYS_MODCTL", Const, 1}, + {"SYS_MODFIND", Const, 0}, + {"SYS_MODFNEXT", Const, 0}, + {"SYS_MODIFY_LDT", Const, 0}, + {"SYS_MODNEXT", Const, 0}, + {"SYS_MODSTAT", Const, 0}, + {"SYS_MODWATCH", Const, 0}, + {"SYS_MOUNT", Const, 0}, + {"SYS_MOVE_PAGES", Const, 0}, + {"SYS_MPROTECT", Const, 0}, + {"SYS_MPX", Const, 0}, + {"SYS_MQUERY", Const, 1}, + {"SYS_MQ_GETSETATTR", Const, 0}, + {"SYS_MQ_NOTIFY", Const, 0}, + {"SYS_MQ_OPEN", Const, 0}, + {"SYS_MQ_TIMEDRECEIVE", Const, 0}, + {"SYS_MQ_TIMEDSEND", Const, 0}, + {"SYS_MQ_UNLINK", Const, 0}, + {"SYS_MREMAP", Const, 0}, + {"SYS_MSGCTL", Const, 0}, + {"SYS_MSGGET", Const, 0}, + {"SYS_MSGRCV", Const, 0}, + {"SYS_MSGRCV_NOCANCEL", Const, 0}, + {"SYS_MSGSND", Const, 0}, + {"SYS_MSGSND_NOCANCEL", Const, 0}, + {"SYS_MSGSYS", Const, 0}, + {"SYS_MSYNC", Const, 0}, + {"SYS_MSYNC_NOCANCEL", Const, 0}, + {"SYS_MUNLOCK", Const, 0}, + {"SYS_MUNLOCKALL", Const, 0}, + {"SYS_MUNMAP", Const, 0}, + {"SYS_NAME_TO_HANDLE_AT", Const, 0}, + {"SYS_NANOSLEEP", Const, 0}, + {"SYS_NEWFSTATAT", Const, 0}, + {"SYS_NFSCLNT", Const, 0}, + {"SYS_NFSSERVCTL", Const, 0}, + {"SYS_NFSSVC", Const, 0}, + {"SYS_NFSTAT", Const, 0}, + {"SYS_NICE", Const, 0}, + {"SYS_NLM_SYSCALL", Const, 14}, + {"SYS_NLSTAT", Const, 0}, + {"SYS_NMOUNT", Const, 0}, + {"SYS_NSTAT", Const, 0}, + {"SYS_NTP_ADJTIME", Const, 0}, + {"SYS_NTP_GETTIME", Const, 0}, + {"SYS_NUMA_GETAFFINITY", Const, 14}, + {"SYS_NUMA_SETAFFINITY", Const, 14}, + {"SYS_OABI_SYSCALL_BASE", Const, 0}, + {"SYS_OBREAK", Const, 0}, + {"SYS_OLDFSTAT", Const, 0}, + {"SYS_OLDLSTAT", Const, 0}, + {"SYS_OLDOLDUNAME", Const, 0}, + {"SYS_OLDSTAT", Const, 0}, + {"SYS_OLDUNAME", Const, 0}, + {"SYS_OPEN", Const, 0}, + {"SYS_OPENAT", Const, 0}, + {"SYS_OPENBSD_POLL", Const, 0}, + {"SYS_OPEN_BY_HANDLE_AT", Const, 0}, + {"SYS_OPEN_DPROTECTED_NP", Const, 16}, + {"SYS_OPEN_EXTENDED", Const, 0}, + {"SYS_OPEN_NOCANCEL", Const, 0}, + {"SYS_OVADVISE", Const, 0}, + {"SYS_PACCEPT", Const, 1}, + {"SYS_PATHCONF", Const, 0}, + {"SYS_PAUSE", Const, 0}, + {"SYS_PCICONFIG_IOBASE", Const, 0}, + {"SYS_PCICONFIG_READ", Const, 0}, + {"SYS_PCICONFIG_WRITE", Const, 0}, + {"SYS_PDFORK", Const, 0}, + {"SYS_PDGETPID", Const, 0}, + {"SYS_PDKILL", Const, 0}, + {"SYS_PERF_EVENT_OPEN", Const, 0}, + {"SYS_PERSONALITY", Const, 0}, + {"SYS_PID_HIBERNATE", Const, 0}, + {"SYS_PID_RESUME", Const, 0}, + {"SYS_PID_SHUTDOWN_SOCKETS", Const, 0}, + {"SYS_PID_SUSPEND", Const, 0}, + {"SYS_PIPE", Const, 0}, + {"SYS_PIPE2", Const, 0}, + {"SYS_PIVOT_ROOT", Const, 0}, + {"SYS_PMC_CONTROL", Const, 1}, + {"SYS_PMC_GET_INFO", Const, 1}, + {"SYS_POLL", Const, 0}, + {"SYS_POLLTS", Const, 1}, + {"SYS_POLL_NOCANCEL", Const, 0}, + {"SYS_POSIX_FADVISE", Const, 0}, + {"SYS_POSIX_FALLOCATE", Const, 0}, + {"SYS_POSIX_OPENPT", Const, 0}, + {"SYS_POSIX_SPAWN", Const, 0}, + {"SYS_PPOLL", Const, 0}, + {"SYS_PRCTL", Const, 0}, + {"SYS_PREAD", Const, 0}, + {"SYS_PREAD64", Const, 0}, + {"SYS_PREADV", Const, 0}, + {"SYS_PREAD_NOCANCEL", Const, 0}, + {"SYS_PRLIMIT64", Const, 0}, + {"SYS_PROCCTL", Const, 3}, + {"SYS_PROCESS_POLICY", Const, 0}, + {"SYS_PROCESS_VM_READV", Const, 0}, + {"SYS_PROCESS_VM_WRITEV", Const, 0}, + {"SYS_PROC_INFO", Const, 0}, + {"SYS_PROF", Const, 0}, + {"SYS_PROFIL", Const, 0}, + {"SYS_PSELECT", Const, 0}, + {"SYS_PSELECT6", Const, 0}, + {"SYS_PSET_ASSIGN", Const, 1}, + {"SYS_PSET_CREATE", Const, 1}, + {"SYS_PSET_DESTROY", Const, 1}, + {"SYS_PSYNCH_CVBROAD", Const, 0}, + {"SYS_PSYNCH_CVCLRPREPOST", Const, 0}, + {"SYS_PSYNCH_CVSIGNAL", Const, 0}, + {"SYS_PSYNCH_CVWAIT", Const, 0}, + {"SYS_PSYNCH_MUTEXDROP", Const, 0}, + {"SYS_PSYNCH_MUTEXWAIT", Const, 0}, + {"SYS_PSYNCH_RW_DOWNGRADE", Const, 0}, + {"SYS_PSYNCH_RW_LONGRDLOCK", Const, 0}, + {"SYS_PSYNCH_RW_RDLOCK", Const, 0}, + {"SYS_PSYNCH_RW_UNLOCK", Const, 0}, + {"SYS_PSYNCH_RW_UNLOCK2", Const, 0}, + {"SYS_PSYNCH_RW_UPGRADE", Const, 0}, + {"SYS_PSYNCH_RW_WRLOCK", Const, 0}, + {"SYS_PSYNCH_RW_YIELDWRLOCK", Const, 0}, + {"SYS_PTRACE", Const, 0}, + {"SYS_PUTPMSG", Const, 0}, + {"SYS_PWRITE", Const, 0}, + {"SYS_PWRITE64", Const, 0}, + {"SYS_PWRITEV", Const, 0}, + {"SYS_PWRITE_NOCANCEL", Const, 0}, + {"SYS_QUERY_MODULE", Const, 0}, + {"SYS_QUOTACTL", Const, 0}, + {"SYS_RASCTL", Const, 1}, + {"SYS_RCTL_ADD_RULE", Const, 0}, + {"SYS_RCTL_GET_LIMITS", Const, 0}, + {"SYS_RCTL_GET_RACCT", Const, 0}, + {"SYS_RCTL_GET_RULES", Const, 0}, + {"SYS_RCTL_REMOVE_RULE", Const, 0}, + {"SYS_READ", Const, 0}, + {"SYS_READAHEAD", Const, 0}, + {"SYS_READDIR", Const, 0}, + {"SYS_READLINK", Const, 0}, + {"SYS_READLINKAT", Const, 0}, + {"SYS_READV", Const, 0}, + {"SYS_READV_NOCANCEL", Const, 0}, + {"SYS_READ_NOCANCEL", Const, 0}, + {"SYS_REBOOT", Const, 0}, + {"SYS_RECV", Const, 0}, + {"SYS_RECVFROM", Const, 0}, + {"SYS_RECVFROM_NOCANCEL", Const, 0}, + {"SYS_RECVMMSG", Const, 0}, + {"SYS_RECVMSG", Const, 0}, + {"SYS_RECVMSG_NOCANCEL", Const, 0}, + {"SYS_REMAP_FILE_PAGES", Const, 0}, + {"SYS_REMOVEXATTR", Const, 0}, + {"SYS_RENAME", Const, 0}, + {"SYS_RENAMEAT", Const, 0}, + {"SYS_REQUEST_KEY", Const, 0}, + {"SYS_RESTART_SYSCALL", Const, 0}, + {"SYS_REVOKE", Const, 0}, + {"SYS_RFORK", Const, 0}, + {"SYS_RMDIR", Const, 0}, + {"SYS_RTPRIO", Const, 0}, + {"SYS_RTPRIO_THREAD", Const, 0}, + {"SYS_RT_SIGACTION", Const, 0}, + {"SYS_RT_SIGPENDING", Const, 0}, + {"SYS_RT_SIGPROCMASK", Const, 0}, + {"SYS_RT_SIGQUEUEINFO", Const, 0}, + {"SYS_RT_SIGRETURN", Const, 0}, + {"SYS_RT_SIGSUSPEND", Const, 0}, + {"SYS_RT_SIGTIMEDWAIT", Const, 0}, + {"SYS_RT_TGSIGQUEUEINFO", Const, 0}, + {"SYS_SBRK", Const, 0}, + {"SYS_SCHED_GETAFFINITY", Const, 0}, + {"SYS_SCHED_GETPARAM", Const, 0}, + {"SYS_SCHED_GETSCHEDULER", Const, 0}, + {"SYS_SCHED_GET_PRIORITY_MAX", Const, 0}, + {"SYS_SCHED_GET_PRIORITY_MIN", Const, 0}, + {"SYS_SCHED_RR_GET_INTERVAL", Const, 0}, + {"SYS_SCHED_SETAFFINITY", Const, 0}, + {"SYS_SCHED_SETPARAM", Const, 0}, + {"SYS_SCHED_SETSCHEDULER", Const, 0}, + {"SYS_SCHED_YIELD", Const, 0}, + {"SYS_SCTP_GENERIC_RECVMSG", Const, 0}, + {"SYS_SCTP_GENERIC_SENDMSG", Const, 0}, + {"SYS_SCTP_GENERIC_SENDMSG_IOV", Const, 0}, + {"SYS_SCTP_PEELOFF", Const, 0}, + {"SYS_SEARCHFS", Const, 0}, + {"SYS_SECURITY", Const, 0}, + {"SYS_SELECT", Const, 0}, + {"SYS_SELECT_NOCANCEL", Const, 0}, + {"SYS_SEMCONFIG", Const, 1}, + {"SYS_SEMCTL", Const, 0}, + {"SYS_SEMGET", Const, 0}, + {"SYS_SEMOP", Const, 0}, + {"SYS_SEMSYS", Const, 0}, + {"SYS_SEMTIMEDOP", Const, 0}, + {"SYS_SEM_CLOSE", Const, 0}, + {"SYS_SEM_DESTROY", Const, 0}, + {"SYS_SEM_GETVALUE", Const, 0}, + {"SYS_SEM_INIT", Const, 0}, + {"SYS_SEM_OPEN", Const, 0}, + {"SYS_SEM_POST", Const, 0}, + {"SYS_SEM_TRYWAIT", Const, 0}, + {"SYS_SEM_UNLINK", Const, 0}, + {"SYS_SEM_WAIT", Const, 0}, + {"SYS_SEM_WAIT_NOCANCEL", Const, 0}, + {"SYS_SEND", Const, 0}, + {"SYS_SENDFILE", Const, 0}, + {"SYS_SENDFILE64", Const, 0}, + {"SYS_SENDMMSG", Const, 0}, + {"SYS_SENDMSG", Const, 0}, + {"SYS_SENDMSG_NOCANCEL", Const, 0}, + {"SYS_SENDTO", Const, 0}, + {"SYS_SENDTO_NOCANCEL", Const, 0}, + {"SYS_SETATTRLIST", Const, 0}, + {"SYS_SETAUDIT", Const, 0}, + {"SYS_SETAUDIT_ADDR", Const, 0}, + {"SYS_SETAUID", Const, 0}, + {"SYS_SETCONTEXT", Const, 0}, + {"SYS_SETDOMAINNAME", Const, 0}, + {"SYS_SETEGID", Const, 0}, + {"SYS_SETEUID", Const, 0}, + {"SYS_SETFIB", Const, 0}, + {"SYS_SETFSGID", Const, 0}, + {"SYS_SETFSGID32", Const, 0}, + {"SYS_SETFSUID", Const, 0}, + {"SYS_SETFSUID32", Const, 0}, + {"SYS_SETGID", Const, 0}, + {"SYS_SETGID32", Const, 0}, + {"SYS_SETGROUPS", Const, 0}, + {"SYS_SETGROUPS32", Const, 0}, + {"SYS_SETHOSTNAME", Const, 0}, + {"SYS_SETITIMER", Const, 0}, + {"SYS_SETLCID", Const, 0}, + {"SYS_SETLOGIN", Const, 0}, + {"SYS_SETLOGINCLASS", Const, 0}, + {"SYS_SETNS", Const, 0}, + {"SYS_SETPGID", Const, 0}, + {"SYS_SETPRIORITY", Const, 0}, + {"SYS_SETPRIVEXEC", Const, 0}, + {"SYS_SETREGID", Const, 0}, + {"SYS_SETREGID32", Const, 0}, + {"SYS_SETRESGID", Const, 0}, + {"SYS_SETRESGID32", Const, 0}, + {"SYS_SETRESUID", Const, 0}, + {"SYS_SETRESUID32", Const, 0}, + {"SYS_SETREUID", Const, 0}, + {"SYS_SETREUID32", Const, 0}, + {"SYS_SETRLIMIT", Const, 0}, + {"SYS_SETRTABLE", Const, 1}, + {"SYS_SETSGROUPS", Const, 0}, + {"SYS_SETSID", Const, 0}, + {"SYS_SETSOCKOPT", Const, 0}, + {"SYS_SETTID", Const, 0}, + {"SYS_SETTID_WITH_PID", Const, 0}, + {"SYS_SETTIMEOFDAY", Const, 0}, + {"SYS_SETUID", Const, 0}, + {"SYS_SETUID32", Const, 0}, + {"SYS_SETWGROUPS", Const, 0}, + {"SYS_SETXATTR", Const, 0}, + {"SYS_SET_MEMPOLICY", Const, 0}, + {"SYS_SET_ROBUST_LIST", Const, 0}, + {"SYS_SET_THREAD_AREA", Const, 0}, + {"SYS_SET_TID_ADDRESS", Const, 0}, + {"SYS_SGETMASK", Const, 0}, + {"SYS_SHARED_REGION_CHECK_NP", Const, 0}, + {"SYS_SHARED_REGION_MAP_AND_SLIDE_NP", Const, 0}, + {"SYS_SHMAT", Const, 0}, + {"SYS_SHMCTL", Const, 0}, + {"SYS_SHMDT", Const, 0}, + {"SYS_SHMGET", Const, 0}, + {"SYS_SHMSYS", Const, 0}, + {"SYS_SHM_OPEN", Const, 0}, + {"SYS_SHM_UNLINK", Const, 0}, + {"SYS_SHUTDOWN", Const, 0}, + {"SYS_SIGACTION", Const, 0}, + {"SYS_SIGALTSTACK", Const, 0}, + {"SYS_SIGNAL", Const, 0}, + {"SYS_SIGNALFD", Const, 0}, + {"SYS_SIGNALFD4", Const, 0}, + {"SYS_SIGPENDING", Const, 0}, + {"SYS_SIGPROCMASK", Const, 0}, + {"SYS_SIGQUEUE", Const, 0}, + {"SYS_SIGQUEUEINFO", Const, 1}, + {"SYS_SIGRETURN", Const, 0}, + {"SYS_SIGSUSPEND", Const, 0}, + {"SYS_SIGSUSPEND_NOCANCEL", Const, 0}, + {"SYS_SIGTIMEDWAIT", Const, 0}, + {"SYS_SIGWAIT", Const, 0}, + {"SYS_SIGWAITINFO", Const, 0}, + {"SYS_SOCKET", Const, 0}, + {"SYS_SOCKETCALL", Const, 0}, + {"SYS_SOCKETPAIR", Const, 0}, + {"SYS_SPLICE", Const, 0}, + {"SYS_SSETMASK", Const, 0}, + {"SYS_SSTK", Const, 0}, + {"SYS_STACK_SNAPSHOT", Const, 0}, + {"SYS_STAT", Const, 0}, + {"SYS_STAT64", Const, 0}, + {"SYS_STAT64_EXTENDED", Const, 0}, + {"SYS_STATFS", Const, 0}, + {"SYS_STATFS64", Const, 0}, + {"SYS_STATV", Const, 0}, + {"SYS_STATVFS1", Const, 1}, + {"SYS_STAT_EXTENDED", Const, 0}, + {"SYS_STIME", Const, 0}, + {"SYS_STTY", Const, 0}, + {"SYS_SWAPCONTEXT", Const, 0}, + {"SYS_SWAPCTL", Const, 1}, + {"SYS_SWAPOFF", Const, 0}, + {"SYS_SWAPON", Const, 0}, + {"SYS_SYMLINK", Const, 0}, + {"SYS_SYMLINKAT", Const, 0}, + {"SYS_SYNC", Const, 0}, + {"SYS_SYNCFS", Const, 0}, + {"SYS_SYNC_FILE_RANGE", Const, 0}, + {"SYS_SYSARCH", Const, 0}, + {"SYS_SYSCALL", Const, 0}, + {"SYS_SYSCALL_BASE", Const, 0}, + {"SYS_SYSFS", Const, 0}, + {"SYS_SYSINFO", Const, 0}, + {"SYS_SYSLOG", Const, 0}, + {"SYS_TEE", Const, 0}, + {"SYS_TGKILL", Const, 0}, + {"SYS_THREAD_SELFID", Const, 0}, + {"SYS_THR_CREATE", Const, 0}, + {"SYS_THR_EXIT", Const, 0}, + {"SYS_THR_KILL", Const, 0}, + {"SYS_THR_KILL2", Const, 0}, + {"SYS_THR_NEW", Const, 0}, + {"SYS_THR_SELF", Const, 0}, + {"SYS_THR_SET_NAME", Const, 0}, + {"SYS_THR_SUSPEND", Const, 0}, + {"SYS_THR_WAKE", Const, 0}, + {"SYS_TIME", Const, 0}, + {"SYS_TIMERFD_CREATE", Const, 0}, + {"SYS_TIMERFD_GETTIME", Const, 0}, + {"SYS_TIMERFD_SETTIME", Const, 0}, + {"SYS_TIMER_CREATE", Const, 0}, + {"SYS_TIMER_DELETE", Const, 0}, + {"SYS_TIMER_GETOVERRUN", Const, 0}, + {"SYS_TIMER_GETTIME", Const, 0}, + {"SYS_TIMER_SETTIME", Const, 0}, + {"SYS_TIMES", Const, 0}, + {"SYS_TKILL", Const, 0}, + {"SYS_TRUNCATE", Const, 0}, + {"SYS_TRUNCATE64", Const, 0}, + {"SYS_TUXCALL", Const, 0}, + {"SYS_UGETRLIMIT", Const, 0}, + {"SYS_ULIMIT", Const, 0}, + {"SYS_UMASK", Const, 0}, + {"SYS_UMASK_EXTENDED", Const, 0}, + {"SYS_UMOUNT", Const, 0}, + {"SYS_UMOUNT2", Const, 0}, + {"SYS_UNAME", Const, 0}, + {"SYS_UNDELETE", Const, 0}, + {"SYS_UNLINK", Const, 0}, + {"SYS_UNLINKAT", Const, 0}, + {"SYS_UNMOUNT", Const, 0}, + {"SYS_UNSHARE", Const, 0}, + {"SYS_USELIB", Const, 0}, + {"SYS_USTAT", Const, 0}, + {"SYS_UTIME", Const, 0}, + {"SYS_UTIMENSAT", Const, 0}, + {"SYS_UTIMES", Const, 0}, + {"SYS_UTRACE", Const, 0}, + {"SYS_UUIDGEN", Const, 0}, + {"SYS_VADVISE", Const, 1}, + {"SYS_VFORK", Const, 0}, + {"SYS_VHANGUP", Const, 0}, + {"SYS_VM86", Const, 0}, + {"SYS_VM86OLD", Const, 0}, + {"SYS_VMSPLICE", Const, 0}, + {"SYS_VM_PRESSURE_MONITOR", Const, 0}, + {"SYS_VSERVER", Const, 0}, + {"SYS_WAIT4", Const, 0}, + {"SYS_WAIT4_NOCANCEL", Const, 0}, + {"SYS_WAIT6", Const, 1}, + {"SYS_WAITEVENT", Const, 0}, + {"SYS_WAITID", Const, 0}, + {"SYS_WAITID_NOCANCEL", Const, 0}, + {"SYS_WAITPID", Const, 0}, + {"SYS_WATCHEVENT", Const, 0}, + {"SYS_WORKQ_KERNRETURN", Const, 0}, + {"SYS_WORKQ_OPEN", Const, 0}, + {"SYS_WRITE", Const, 0}, + {"SYS_WRITEV", Const, 0}, + {"SYS_WRITEV_NOCANCEL", Const, 0}, + {"SYS_WRITE_NOCANCEL", Const, 0}, + {"SYS_YIELD", Const, 0}, + {"SYS__LLSEEK", Const, 0}, + {"SYS__LWP_CONTINUE", Const, 1}, + {"SYS__LWP_CREATE", Const, 1}, + {"SYS__LWP_CTL", Const, 1}, + {"SYS__LWP_DETACH", Const, 1}, + {"SYS__LWP_EXIT", Const, 1}, + {"SYS__LWP_GETNAME", Const, 1}, + {"SYS__LWP_GETPRIVATE", Const, 1}, + {"SYS__LWP_KILL", Const, 1}, + {"SYS__LWP_PARK", Const, 1}, + {"SYS__LWP_SELF", Const, 1}, + {"SYS__LWP_SETNAME", Const, 1}, + {"SYS__LWP_SETPRIVATE", Const, 1}, + {"SYS__LWP_SUSPEND", Const, 1}, + {"SYS__LWP_UNPARK", Const, 1}, + {"SYS__LWP_UNPARK_ALL", Const, 1}, + {"SYS__LWP_WAIT", Const, 1}, + {"SYS__LWP_WAKEUP", Const, 1}, + {"SYS__NEWSELECT", Const, 0}, + {"SYS__PSET_BIND", Const, 1}, + {"SYS__SCHED_GETAFFINITY", Const, 1}, + {"SYS__SCHED_GETPARAM", Const, 1}, + {"SYS__SCHED_SETAFFINITY", Const, 1}, + {"SYS__SCHED_SETPARAM", Const, 1}, + {"SYS__SYSCTL", Const, 0}, + {"SYS__UMTX_LOCK", Const, 0}, + {"SYS__UMTX_OP", Const, 0}, + {"SYS__UMTX_UNLOCK", Const, 0}, + {"SYS___ACL_ACLCHECK_FD", Const, 0}, + {"SYS___ACL_ACLCHECK_FILE", Const, 0}, + {"SYS___ACL_ACLCHECK_LINK", Const, 0}, + {"SYS___ACL_DELETE_FD", Const, 0}, + {"SYS___ACL_DELETE_FILE", Const, 0}, + {"SYS___ACL_DELETE_LINK", Const, 0}, + {"SYS___ACL_GET_FD", Const, 0}, + {"SYS___ACL_GET_FILE", Const, 0}, + {"SYS___ACL_GET_LINK", Const, 0}, + {"SYS___ACL_SET_FD", Const, 0}, + {"SYS___ACL_SET_FILE", Const, 0}, + {"SYS___ACL_SET_LINK", Const, 0}, + {"SYS___CAP_RIGHTS_GET", Const, 14}, + {"SYS___CLONE", Const, 1}, + {"SYS___DISABLE_THREADSIGNAL", Const, 0}, + {"SYS___GETCWD", Const, 0}, + {"SYS___GETLOGIN", Const, 1}, + {"SYS___GET_TCB", Const, 1}, + {"SYS___MAC_EXECVE", Const, 0}, + {"SYS___MAC_GETFSSTAT", Const, 0}, + {"SYS___MAC_GET_FD", Const, 0}, + {"SYS___MAC_GET_FILE", Const, 0}, + {"SYS___MAC_GET_LCID", Const, 0}, + {"SYS___MAC_GET_LCTX", Const, 0}, + {"SYS___MAC_GET_LINK", Const, 0}, + {"SYS___MAC_GET_MOUNT", Const, 0}, + {"SYS___MAC_GET_PID", Const, 0}, + {"SYS___MAC_GET_PROC", Const, 0}, + {"SYS___MAC_MOUNT", Const, 0}, + {"SYS___MAC_SET_FD", Const, 0}, + {"SYS___MAC_SET_FILE", Const, 0}, + {"SYS___MAC_SET_LCTX", Const, 0}, + {"SYS___MAC_SET_LINK", Const, 0}, + {"SYS___MAC_SET_PROC", Const, 0}, + {"SYS___MAC_SYSCALL", Const, 0}, + {"SYS___OLD_SEMWAIT_SIGNAL", Const, 0}, + {"SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL", Const, 0}, + {"SYS___POSIX_CHOWN", Const, 1}, + {"SYS___POSIX_FCHOWN", Const, 1}, + {"SYS___POSIX_LCHOWN", Const, 1}, + {"SYS___POSIX_RENAME", Const, 1}, + {"SYS___PTHREAD_CANCELED", Const, 0}, + {"SYS___PTHREAD_CHDIR", Const, 0}, + {"SYS___PTHREAD_FCHDIR", Const, 0}, + {"SYS___PTHREAD_KILL", Const, 0}, + {"SYS___PTHREAD_MARKCANCEL", Const, 0}, + {"SYS___PTHREAD_SIGMASK", Const, 0}, + {"SYS___QUOTACTL", Const, 1}, + {"SYS___SEMCTL", Const, 1}, + {"SYS___SEMWAIT_SIGNAL", Const, 0}, + {"SYS___SEMWAIT_SIGNAL_NOCANCEL", Const, 0}, + {"SYS___SETLOGIN", Const, 1}, + {"SYS___SETUGID", Const, 0}, + {"SYS___SET_TCB", Const, 1}, + {"SYS___SIGACTION_SIGTRAMP", Const, 1}, + {"SYS___SIGTIMEDWAIT", Const, 1}, + {"SYS___SIGWAIT", Const, 0}, + {"SYS___SIGWAIT_NOCANCEL", Const, 0}, + {"SYS___SYSCTL", Const, 0}, + {"SYS___TFORK", Const, 1}, + {"SYS___THREXIT", Const, 1}, + {"SYS___THRSIGDIVERT", Const, 1}, + {"SYS___THRSLEEP", Const, 1}, + {"SYS___THRWAKEUP", Const, 1}, + {"S_ARCH1", Const, 1}, + {"S_ARCH2", Const, 1}, + {"S_BLKSIZE", Const, 0}, + {"S_IEXEC", Const, 0}, + {"S_IFBLK", Const, 0}, + {"S_IFCHR", Const, 0}, + {"S_IFDIR", Const, 0}, + {"S_IFIFO", Const, 0}, + {"S_IFLNK", Const, 0}, + {"S_IFMT", Const, 0}, + {"S_IFREG", Const, 0}, + {"S_IFSOCK", Const, 0}, + {"S_IFWHT", Const, 0}, + {"S_IREAD", Const, 0}, + {"S_IRGRP", Const, 0}, + {"S_IROTH", Const, 0}, + {"S_IRUSR", Const, 0}, + {"S_IRWXG", Const, 0}, + {"S_IRWXO", Const, 0}, + {"S_IRWXU", Const, 0}, + {"S_ISGID", Const, 0}, + {"S_ISTXT", Const, 0}, + {"S_ISUID", Const, 0}, + {"S_ISVTX", Const, 0}, + {"S_IWGRP", Const, 0}, + {"S_IWOTH", Const, 0}, + {"S_IWRITE", Const, 0}, + {"S_IWUSR", Const, 0}, + {"S_IXGRP", Const, 0}, + {"S_IXOTH", Const, 0}, + {"S_IXUSR", Const, 0}, + {"S_LOGIN_SET", Const, 1}, + {"SecurityAttributes", Type, 0}, + {"SecurityAttributes.InheritHandle", Field, 0}, + {"SecurityAttributes.Length", Field, 0}, + {"SecurityAttributes.SecurityDescriptor", Field, 0}, + {"Seek", Func, 0}, + {"Select", Func, 0}, + {"Sendfile", Func, 0}, + {"Sendmsg", Func, 0}, + {"SendmsgN", Func, 3}, + {"Sendto", Func, 0}, + {"Servent", Type, 0}, + {"Servent.Aliases", Field, 0}, + {"Servent.Name", Field, 0}, + {"Servent.Port", Field, 0}, + {"Servent.Proto", Field, 0}, + {"SetBpf", Func, 0}, + {"SetBpfBuflen", Func, 0}, + {"SetBpfDatalink", Func, 0}, + {"SetBpfHeadercmpl", Func, 0}, + {"SetBpfImmediate", Func, 0}, + {"SetBpfInterface", Func, 0}, + {"SetBpfPromisc", Func, 0}, + {"SetBpfTimeout", Func, 0}, + {"SetCurrentDirectory", Func, 0}, + {"SetEndOfFile", Func, 0}, + {"SetEnvironmentVariable", Func, 0}, + {"SetFileAttributes", Func, 0}, + {"SetFileCompletionNotificationModes", Func, 2}, + {"SetFilePointer", Func, 0}, + {"SetFileTime", Func, 0}, + {"SetHandleInformation", Func, 0}, + {"SetKevent", Func, 0}, + {"SetLsfPromisc", Func, 0}, + {"SetNonblock", Func, 0}, + {"Setdomainname", Func, 0}, + {"Setegid", Func, 0}, + {"Setenv", Func, 0}, + {"Seteuid", Func, 0}, + {"Setfsgid", Func, 0}, + {"Setfsuid", Func, 0}, + {"Setgid", Func, 0}, + {"Setgroups", Func, 0}, + {"Sethostname", Func, 0}, + {"Setlogin", Func, 0}, + {"Setpgid", Func, 0}, + {"Setpriority", Func, 0}, + {"Setprivexec", Func, 0}, + {"Setregid", Func, 0}, + {"Setresgid", Func, 0}, + {"Setresuid", Func, 0}, + {"Setreuid", Func, 0}, + {"Setrlimit", Func, 0}, + {"Setsid", Func, 0}, + {"Setsockopt", Func, 0}, + {"SetsockoptByte", Func, 0}, + {"SetsockoptICMPv6Filter", Func, 2}, + {"SetsockoptIPMreq", Func, 0}, + {"SetsockoptIPMreqn", Func, 0}, + {"SetsockoptIPv6Mreq", Func, 0}, + {"SetsockoptInet4Addr", Func, 0}, + {"SetsockoptInt", Func, 0}, + {"SetsockoptLinger", Func, 0}, + {"SetsockoptString", Func, 0}, + {"SetsockoptTimeval", Func, 0}, + {"Settimeofday", Func, 0}, + {"Setuid", Func, 0}, + {"Setxattr", Func, 1}, + {"Shutdown", Func, 0}, + {"SidTypeAlias", Const, 0}, + {"SidTypeComputer", Const, 0}, + {"SidTypeDeletedAccount", Const, 0}, + {"SidTypeDomain", Const, 0}, + {"SidTypeGroup", Const, 0}, + {"SidTypeInvalid", Const, 0}, + {"SidTypeLabel", Const, 0}, + {"SidTypeUnknown", Const, 0}, + {"SidTypeUser", Const, 0}, + {"SidTypeWellKnownGroup", Const, 0}, + {"Signal", Type, 0}, + {"SizeofBpfHdr", Const, 0}, + {"SizeofBpfInsn", Const, 0}, + {"SizeofBpfProgram", Const, 0}, + {"SizeofBpfStat", Const, 0}, + {"SizeofBpfVersion", Const, 0}, + {"SizeofBpfZbuf", Const, 0}, + {"SizeofBpfZbufHeader", Const, 0}, + {"SizeofCmsghdr", Const, 0}, + {"SizeofICMPv6Filter", Const, 2}, + {"SizeofIPMreq", Const, 0}, + {"SizeofIPMreqn", Const, 0}, + {"SizeofIPv6MTUInfo", Const, 2}, + {"SizeofIPv6Mreq", Const, 0}, + {"SizeofIfAddrmsg", Const, 0}, + {"SizeofIfAnnounceMsghdr", Const, 1}, + {"SizeofIfData", Const, 0}, + {"SizeofIfInfomsg", Const, 0}, + {"SizeofIfMsghdr", Const, 0}, + {"SizeofIfaMsghdr", Const, 0}, + {"SizeofIfmaMsghdr", Const, 0}, + {"SizeofIfmaMsghdr2", Const, 0}, + {"SizeofInet4Pktinfo", Const, 0}, + {"SizeofInet6Pktinfo", Const, 0}, + {"SizeofInotifyEvent", Const, 0}, + {"SizeofLinger", Const, 0}, + {"SizeofMsghdr", Const, 0}, + {"SizeofNlAttr", Const, 0}, + {"SizeofNlMsgerr", Const, 0}, + {"SizeofNlMsghdr", Const, 0}, + {"SizeofRtAttr", Const, 0}, + {"SizeofRtGenmsg", Const, 0}, + {"SizeofRtMetrics", Const, 0}, + {"SizeofRtMsg", Const, 0}, + {"SizeofRtMsghdr", Const, 0}, + {"SizeofRtNexthop", Const, 0}, + {"SizeofSockFilter", Const, 0}, + {"SizeofSockFprog", Const, 0}, + {"SizeofSockaddrAny", Const, 0}, + {"SizeofSockaddrDatalink", Const, 0}, + {"SizeofSockaddrInet4", Const, 0}, + {"SizeofSockaddrInet6", Const, 0}, + {"SizeofSockaddrLinklayer", Const, 0}, + {"SizeofSockaddrNetlink", Const, 0}, + {"SizeofSockaddrUnix", Const, 0}, + {"SizeofTCPInfo", Const, 1}, + {"SizeofUcred", Const, 0}, + {"SlicePtrFromStrings", Func, 1}, + {"SockFilter", Type, 0}, + {"SockFilter.Code", Field, 0}, + {"SockFilter.Jf", Field, 0}, + {"SockFilter.Jt", Field, 0}, + {"SockFilter.K", Field, 0}, + {"SockFprog", Type, 0}, + {"SockFprog.Filter", Field, 0}, + {"SockFprog.Len", Field, 0}, + {"SockFprog.Pad_cgo_0", Field, 0}, + {"Sockaddr", Type, 0}, + {"SockaddrDatalink", Type, 0}, + {"SockaddrDatalink.Alen", Field, 0}, + {"SockaddrDatalink.Data", Field, 0}, + {"SockaddrDatalink.Family", Field, 0}, + {"SockaddrDatalink.Index", Field, 0}, + {"SockaddrDatalink.Len", Field, 0}, + {"SockaddrDatalink.Nlen", Field, 0}, + {"SockaddrDatalink.Slen", Field, 0}, + {"SockaddrDatalink.Type", Field, 0}, + {"SockaddrGen", Type, 0}, + {"SockaddrInet4", Type, 0}, + {"SockaddrInet4.Addr", Field, 0}, + {"SockaddrInet4.Port", Field, 0}, + {"SockaddrInet6", Type, 0}, + {"SockaddrInet6.Addr", Field, 0}, + {"SockaddrInet6.Port", Field, 0}, + {"SockaddrInet6.ZoneId", Field, 0}, + {"SockaddrLinklayer", Type, 0}, + {"SockaddrLinklayer.Addr", Field, 0}, + {"SockaddrLinklayer.Halen", Field, 0}, + {"SockaddrLinklayer.Hatype", Field, 0}, + {"SockaddrLinklayer.Ifindex", Field, 0}, + {"SockaddrLinklayer.Pkttype", Field, 0}, + {"SockaddrLinklayer.Protocol", Field, 0}, + {"SockaddrNetlink", Type, 0}, + {"SockaddrNetlink.Family", Field, 0}, + {"SockaddrNetlink.Groups", Field, 0}, + {"SockaddrNetlink.Pad", Field, 0}, + {"SockaddrNetlink.Pid", Field, 0}, + {"SockaddrUnix", Type, 0}, + {"SockaddrUnix.Name", Field, 0}, + {"Socket", Func, 0}, + {"SocketControlMessage", Type, 0}, + {"SocketControlMessage.Data", Field, 0}, + {"SocketControlMessage.Header", Field, 0}, + {"SocketDisableIPv6", Var, 0}, + {"Socketpair", Func, 0}, + {"Splice", Func, 0}, + {"StartProcess", Func, 0}, + {"StartupInfo", Type, 0}, + {"StartupInfo.Cb", Field, 0}, + {"StartupInfo.Desktop", Field, 0}, + {"StartupInfo.FillAttribute", Field, 0}, + {"StartupInfo.Flags", Field, 0}, + {"StartupInfo.ShowWindow", Field, 0}, + {"StartupInfo.StdErr", Field, 0}, + {"StartupInfo.StdInput", Field, 0}, + {"StartupInfo.StdOutput", Field, 0}, + {"StartupInfo.Title", Field, 0}, + {"StartupInfo.X", Field, 0}, + {"StartupInfo.XCountChars", Field, 0}, + {"StartupInfo.XSize", Field, 0}, + {"StartupInfo.Y", Field, 0}, + {"StartupInfo.YCountChars", Field, 0}, + {"StartupInfo.YSize", Field, 0}, + {"Stat", Func, 0}, + {"Stat_t", Type, 0}, + {"Stat_t.Atim", Field, 0}, + {"Stat_t.Atim_ext", Field, 12}, + {"Stat_t.Atimespec", Field, 0}, + {"Stat_t.Birthtimespec", Field, 0}, + {"Stat_t.Blksize", Field, 0}, + {"Stat_t.Blocks", Field, 0}, + {"Stat_t.Btim_ext", Field, 12}, + {"Stat_t.Ctim", Field, 0}, + {"Stat_t.Ctim_ext", Field, 12}, + {"Stat_t.Ctimespec", Field, 0}, + {"Stat_t.Dev", Field, 0}, + {"Stat_t.Flags", Field, 0}, + {"Stat_t.Gen", Field, 0}, + {"Stat_t.Gid", Field, 0}, + {"Stat_t.Ino", Field, 0}, + {"Stat_t.Lspare", Field, 0}, + {"Stat_t.Lspare0", Field, 2}, + {"Stat_t.Lspare1", Field, 2}, + {"Stat_t.Mode", Field, 0}, + {"Stat_t.Mtim", Field, 0}, + {"Stat_t.Mtim_ext", Field, 12}, + {"Stat_t.Mtimespec", Field, 0}, + {"Stat_t.Nlink", Field, 0}, + {"Stat_t.Pad_cgo_0", Field, 0}, + {"Stat_t.Pad_cgo_1", Field, 0}, + {"Stat_t.Pad_cgo_2", Field, 0}, + {"Stat_t.Padding0", Field, 12}, + {"Stat_t.Padding1", Field, 12}, + {"Stat_t.Qspare", Field, 0}, + {"Stat_t.Rdev", Field, 0}, + {"Stat_t.Size", Field, 0}, + {"Stat_t.Spare", Field, 2}, + {"Stat_t.Uid", Field, 0}, + {"Stat_t.X__pad0", Field, 0}, + {"Stat_t.X__pad1", Field, 0}, + {"Stat_t.X__pad2", Field, 0}, + {"Stat_t.X__st_birthtim", Field, 2}, + {"Stat_t.X__st_ino", Field, 0}, + {"Stat_t.X__unused", Field, 0}, + {"Statfs", Func, 0}, + {"Statfs_t", Type, 0}, + {"Statfs_t.Asyncreads", Field, 0}, + {"Statfs_t.Asyncwrites", Field, 0}, + {"Statfs_t.Bavail", Field, 0}, + {"Statfs_t.Bfree", Field, 0}, + {"Statfs_t.Blocks", Field, 0}, + {"Statfs_t.Bsize", Field, 0}, + {"Statfs_t.Charspare", Field, 0}, + {"Statfs_t.F_asyncreads", Field, 2}, + {"Statfs_t.F_asyncwrites", Field, 2}, + {"Statfs_t.F_bavail", Field, 2}, + {"Statfs_t.F_bfree", Field, 2}, + {"Statfs_t.F_blocks", Field, 2}, + {"Statfs_t.F_bsize", Field, 2}, + {"Statfs_t.F_ctime", Field, 2}, + {"Statfs_t.F_favail", Field, 2}, + {"Statfs_t.F_ffree", Field, 2}, + {"Statfs_t.F_files", Field, 2}, + {"Statfs_t.F_flags", Field, 2}, + {"Statfs_t.F_fsid", Field, 2}, + {"Statfs_t.F_fstypename", Field, 2}, + {"Statfs_t.F_iosize", Field, 2}, + {"Statfs_t.F_mntfromname", Field, 2}, + {"Statfs_t.F_mntfromspec", Field, 3}, + {"Statfs_t.F_mntonname", Field, 2}, + {"Statfs_t.F_namemax", Field, 2}, + {"Statfs_t.F_owner", Field, 2}, + {"Statfs_t.F_spare", Field, 2}, + {"Statfs_t.F_syncreads", Field, 2}, + {"Statfs_t.F_syncwrites", Field, 2}, + {"Statfs_t.Ffree", Field, 0}, + {"Statfs_t.Files", Field, 0}, + {"Statfs_t.Flags", Field, 0}, + {"Statfs_t.Frsize", Field, 0}, + {"Statfs_t.Fsid", Field, 0}, + {"Statfs_t.Fssubtype", Field, 0}, + {"Statfs_t.Fstypename", Field, 0}, + {"Statfs_t.Iosize", Field, 0}, + {"Statfs_t.Mntfromname", Field, 0}, + {"Statfs_t.Mntonname", Field, 0}, + {"Statfs_t.Mount_info", Field, 2}, + {"Statfs_t.Namelen", Field, 0}, + {"Statfs_t.Namemax", Field, 0}, + {"Statfs_t.Owner", Field, 0}, + {"Statfs_t.Pad_cgo_0", Field, 0}, + {"Statfs_t.Pad_cgo_1", Field, 2}, + {"Statfs_t.Reserved", Field, 0}, + {"Statfs_t.Spare", Field, 0}, + {"Statfs_t.Syncreads", Field, 0}, + {"Statfs_t.Syncwrites", Field, 0}, + {"Statfs_t.Type", Field, 0}, + {"Statfs_t.Version", Field, 0}, + {"Stderr", Var, 0}, + {"Stdin", Var, 0}, + {"Stdout", Var, 0}, + {"StringBytePtr", Func, 0}, + {"StringByteSlice", Func, 0}, + {"StringSlicePtr", Func, 0}, + {"StringToSid", Func, 0}, + {"StringToUTF16", Func, 0}, + {"StringToUTF16Ptr", Func, 0}, + {"Symlink", Func, 0}, + {"Sync", Func, 0}, + {"SyncFileRange", Func, 0}, + {"SysProcAttr", Type, 0}, + {"SysProcAttr.AdditionalInheritedHandles", Field, 17}, + {"SysProcAttr.AmbientCaps", Field, 9}, + {"SysProcAttr.CgroupFD", Field, 20}, + {"SysProcAttr.Chroot", Field, 0}, + {"SysProcAttr.Cloneflags", Field, 2}, + {"SysProcAttr.CmdLine", Field, 0}, + {"SysProcAttr.CreationFlags", Field, 1}, + {"SysProcAttr.Credential", Field, 0}, + {"SysProcAttr.Ctty", Field, 1}, + {"SysProcAttr.Foreground", Field, 5}, + {"SysProcAttr.GidMappings", Field, 4}, + {"SysProcAttr.GidMappingsEnableSetgroups", Field, 5}, + {"SysProcAttr.HideWindow", Field, 0}, + {"SysProcAttr.Jail", Field, 21}, + {"SysProcAttr.NoInheritHandles", Field, 16}, + {"SysProcAttr.Noctty", Field, 0}, + {"SysProcAttr.ParentProcess", Field, 17}, + {"SysProcAttr.Pdeathsig", Field, 0}, + {"SysProcAttr.Pgid", Field, 5}, + {"SysProcAttr.PidFD", Field, 22}, + {"SysProcAttr.ProcessAttributes", Field, 13}, + {"SysProcAttr.Ptrace", Field, 0}, + {"SysProcAttr.Setctty", Field, 0}, + {"SysProcAttr.Setpgid", Field, 0}, + {"SysProcAttr.Setsid", Field, 0}, + {"SysProcAttr.ThreadAttributes", Field, 13}, + {"SysProcAttr.Token", Field, 10}, + {"SysProcAttr.UidMappings", Field, 4}, + {"SysProcAttr.Unshareflags", Field, 7}, + {"SysProcAttr.UseCgroupFD", Field, 20}, + {"SysProcIDMap", Type, 4}, + {"SysProcIDMap.ContainerID", Field, 4}, + {"SysProcIDMap.HostID", Field, 4}, + {"SysProcIDMap.Size", Field, 4}, + {"Syscall", Func, 0}, + {"Syscall12", Func, 0}, + {"Syscall15", Func, 0}, + {"Syscall18", Func, 12}, + {"Syscall6", Func, 0}, + {"Syscall9", Func, 0}, + {"SyscallN", Func, 18}, + {"Sysctl", Func, 0}, + {"SysctlUint32", Func, 0}, + {"Sysctlnode", Type, 2}, + {"Sysctlnode.Flags", Field, 2}, + {"Sysctlnode.Name", Field, 2}, + {"Sysctlnode.Num", Field, 2}, + {"Sysctlnode.Un", Field, 2}, + {"Sysctlnode.Ver", Field, 2}, + {"Sysctlnode.X__rsvd", Field, 2}, + {"Sysctlnode.X_sysctl_desc", Field, 2}, + {"Sysctlnode.X_sysctl_func", Field, 2}, + {"Sysctlnode.X_sysctl_parent", Field, 2}, + {"Sysctlnode.X_sysctl_size", Field, 2}, + {"Sysinfo", Func, 0}, + {"Sysinfo_t", Type, 0}, + {"Sysinfo_t.Bufferram", Field, 0}, + {"Sysinfo_t.Freehigh", Field, 0}, + {"Sysinfo_t.Freeram", Field, 0}, + {"Sysinfo_t.Freeswap", Field, 0}, + {"Sysinfo_t.Loads", Field, 0}, + {"Sysinfo_t.Pad", Field, 0}, + {"Sysinfo_t.Pad_cgo_0", Field, 0}, + {"Sysinfo_t.Pad_cgo_1", Field, 0}, + {"Sysinfo_t.Procs", Field, 0}, + {"Sysinfo_t.Sharedram", Field, 0}, + {"Sysinfo_t.Totalhigh", Field, 0}, + {"Sysinfo_t.Totalram", Field, 0}, + {"Sysinfo_t.Totalswap", Field, 0}, + {"Sysinfo_t.Unit", Field, 0}, + {"Sysinfo_t.Uptime", Field, 0}, + {"Sysinfo_t.X_f", Field, 0}, + {"Systemtime", Type, 0}, + {"Systemtime.Day", Field, 0}, + {"Systemtime.DayOfWeek", Field, 0}, + {"Systemtime.Hour", Field, 0}, + {"Systemtime.Milliseconds", Field, 0}, + {"Systemtime.Minute", Field, 0}, + {"Systemtime.Month", Field, 0}, + {"Systemtime.Second", Field, 0}, + {"Systemtime.Year", Field, 0}, + {"TCGETS", Const, 0}, + {"TCIFLUSH", Const, 1}, + {"TCIOFLUSH", Const, 1}, + {"TCOFLUSH", Const, 1}, + {"TCPInfo", Type, 1}, + {"TCPInfo.Advmss", Field, 1}, + {"TCPInfo.Ato", Field, 1}, + {"TCPInfo.Backoff", Field, 1}, + {"TCPInfo.Ca_state", Field, 1}, + {"TCPInfo.Fackets", Field, 1}, + {"TCPInfo.Last_ack_recv", Field, 1}, + {"TCPInfo.Last_ack_sent", Field, 1}, + {"TCPInfo.Last_data_recv", Field, 1}, + {"TCPInfo.Last_data_sent", Field, 1}, + {"TCPInfo.Lost", Field, 1}, + {"TCPInfo.Options", Field, 1}, + {"TCPInfo.Pad_cgo_0", Field, 1}, + {"TCPInfo.Pmtu", Field, 1}, + {"TCPInfo.Probes", Field, 1}, + {"TCPInfo.Rcv_mss", Field, 1}, + {"TCPInfo.Rcv_rtt", Field, 1}, + {"TCPInfo.Rcv_space", Field, 1}, + {"TCPInfo.Rcv_ssthresh", Field, 1}, + {"TCPInfo.Reordering", Field, 1}, + {"TCPInfo.Retrans", Field, 1}, + {"TCPInfo.Retransmits", Field, 1}, + {"TCPInfo.Rto", Field, 1}, + {"TCPInfo.Rtt", Field, 1}, + {"TCPInfo.Rttvar", Field, 1}, + {"TCPInfo.Sacked", Field, 1}, + {"TCPInfo.Snd_cwnd", Field, 1}, + {"TCPInfo.Snd_mss", Field, 1}, + {"TCPInfo.Snd_ssthresh", Field, 1}, + {"TCPInfo.State", Field, 1}, + {"TCPInfo.Total_retrans", Field, 1}, + {"TCPInfo.Unacked", Field, 1}, + {"TCPKeepalive", Type, 3}, + {"TCPKeepalive.Interval", Field, 3}, + {"TCPKeepalive.OnOff", Field, 3}, + {"TCPKeepalive.Time", Field, 3}, + {"TCP_CA_NAME_MAX", Const, 0}, + {"TCP_CONGCTL", Const, 1}, + {"TCP_CONGESTION", Const, 0}, + {"TCP_CONNECTIONTIMEOUT", Const, 0}, + {"TCP_CORK", Const, 0}, + {"TCP_DEFER_ACCEPT", Const, 0}, + {"TCP_ENABLE_ECN", Const, 16}, + {"TCP_INFO", Const, 0}, + {"TCP_KEEPALIVE", Const, 0}, + {"TCP_KEEPCNT", Const, 0}, + {"TCP_KEEPIDLE", Const, 0}, + {"TCP_KEEPINIT", Const, 1}, + {"TCP_KEEPINTVL", Const, 0}, + {"TCP_LINGER2", Const, 0}, + {"TCP_MAXBURST", Const, 0}, + {"TCP_MAXHLEN", Const, 0}, + {"TCP_MAXOLEN", Const, 0}, + {"TCP_MAXSEG", Const, 0}, + {"TCP_MAXWIN", Const, 0}, + {"TCP_MAX_SACK", Const, 0}, + {"TCP_MAX_WINSHIFT", Const, 0}, + {"TCP_MD5SIG", Const, 0}, + {"TCP_MD5SIG_MAXKEYLEN", Const, 0}, + {"TCP_MINMSS", Const, 0}, + {"TCP_MINMSSOVERLOAD", Const, 0}, + {"TCP_MSS", Const, 0}, + {"TCP_NODELAY", Const, 0}, + {"TCP_NOOPT", Const, 0}, + {"TCP_NOPUSH", Const, 0}, + {"TCP_NOTSENT_LOWAT", Const, 16}, + {"TCP_NSTATES", Const, 1}, + {"TCP_QUICKACK", Const, 0}, + {"TCP_RXT_CONNDROPTIME", Const, 0}, + {"TCP_RXT_FINDROP", Const, 0}, + {"TCP_SACK_ENABLE", Const, 1}, + {"TCP_SENDMOREACKS", Const, 16}, + {"TCP_SYNCNT", Const, 0}, + {"TCP_VENDOR", Const, 3}, + {"TCP_WINDOW_CLAMP", Const, 0}, + {"TCSAFLUSH", Const, 1}, + {"TCSETS", Const, 0}, + {"TF_DISCONNECT", Const, 0}, + {"TF_REUSE_SOCKET", Const, 0}, + {"TF_USE_DEFAULT_WORKER", Const, 0}, + {"TF_USE_KERNEL_APC", Const, 0}, + {"TF_USE_SYSTEM_THREAD", Const, 0}, + {"TF_WRITE_BEHIND", Const, 0}, + {"TH32CS_INHERIT", Const, 4}, + {"TH32CS_SNAPALL", Const, 4}, + {"TH32CS_SNAPHEAPLIST", Const, 4}, + {"TH32CS_SNAPMODULE", Const, 4}, + {"TH32CS_SNAPMODULE32", Const, 4}, + {"TH32CS_SNAPPROCESS", Const, 4}, + {"TH32CS_SNAPTHREAD", Const, 4}, + {"TIME_ZONE_ID_DAYLIGHT", Const, 0}, + {"TIME_ZONE_ID_STANDARD", Const, 0}, + {"TIME_ZONE_ID_UNKNOWN", Const, 0}, + {"TIOCCBRK", Const, 0}, + {"TIOCCDTR", Const, 0}, + {"TIOCCONS", Const, 0}, + {"TIOCDCDTIMESTAMP", Const, 0}, + {"TIOCDRAIN", Const, 0}, + {"TIOCDSIMICROCODE", Const, 0}, + {"TIOCEXCL", Const, 0}, + {"TIOCEXT", Const, 0}, + {"TIOCFLAG_CDTRCTS", Const, 1}, + {"TIOCFLAG_CLOCAL", Const, 1}, + {"TIOCFLAG_CRTSCTS", Const, 1}, + {"TIOCFLAG_MDMBUF", Const, 1}, + {"TIOCFLAG_PPS", Const, 1}, + {"TIOCFLAG_SOFTCAR", Const, 1}, + {"TIOCFLUSH", Const, 0}, + {"TIOCGDEV", Const, 0}, + {"TIOCGDRAINWAIT", Const, 0}, + {"TIOCGETA", Const, 0}, + {"TIOCGETD", Const, 0}, + {"TIOCGFLAGS", Const, 1}, + {"TIOCGICOUNT", Const, 0}, + {"TIOCGLCKTRMIOS", Const, 0}, + {"TIOCGLINED", Const, 1}, + {"TIOCGPGRP", Const, 0}, + {"TIOCGPTN", Const, 0}, + {"TIOCGQSIZE", Const, 1}, + {"TIOCGRANTPT", Const, 1}, + {"TIOCGRS485", Const, 0}, + {"TIOCGSERIAL", Const, 0}, + {"TIOCGSID", Const, 0}, + {"TIOCGSIZE", Const, 1}, + {"TIOCGSOFTCAR", Const, 0}, + {"TIOCGTSTAMP", Const, 1}, + {"TIOCGWINSZ", Const, 0}, + {"TIOCINQ", Const, 0}, + {"TIOCIXOFF", Const, 0}, + {"TIOCIXON", Const, 0}, + {"TIOCLINUX", Const, 0}, + {"TIOCMBIC", Const, 0}, + {"TIOCMBIS", Const, 0}, + {"TIOCMGDTRWAIT", Const, 0}, + {"TIOCMGET", Const, 0}, + {"TIOCMIWAIT", Const, 0}, + {"TIOCMODG", Const, 0}, + {"TIOCMODS", Const, 0}, + {"TIOCMSDTRWAIT", Const, 0}, + {"TIOCMSET", Const, 0}, + {"TIOCM_CAR", Const, 0}, + {"TIOCM_CD", Const, 0}, + {"TIOCM_CTS", Const, 0}, + {"TIOCM_DCD", Const, 0}, + {"TIOCM_DSR", Const, 0}, + {"TIOCM_DTR", Const, 0}, + {"TIOCM_LE", Const, 0}, + {"TIOCM_RI", Const, 0}, + {"TIOCM_RNG", Const, 0}, + {"TIOCM_RTS", Const, 0}, + {"TIOCM_SR", Const, 0}, + {"TIOCM_ST", Const, 0}, + {"TIOCNOTTY", Const, 0}, + {"TIOCNXCL", Const, 0}, + {"TIOCOUTQ", Const, 0}, + {"TIOCPKT", Const, 0}, + {"TIOCPKT_DATA", Const, 0}, + {"TIOCPKT_DOSTOP", Const, 0}, + {"TIOCPKT_FLUSHREAD", Const, 0}, + {"TIOCPKT_FLUSHWRITE", Const, 0}, + {"TIOCPKT_IOCTL", Const, 0}, + {"TIOCPKT_NOSTOP", Const, 0}, + {"TIOCPKT_START", Const, 0}, + {"TIOCPKT_STOP", Const, 0}, + {"TIOCPTMASTER", Const, 0}, + {"TIOCPTMGET", Const, 1}, + {"TIOCPTSNAME", Const, 1}, + {"TIOCPTYGNAME", Const, 0}, + {"TIOCPTYGRANT", Const, 0}, + {"TIOCPTYUNLK", Const, 0}, + {"TIOCRCVFRAME", Const, 1}, + {"TIOCREMOTE", Const, 0}, + {"TIOCSBRK", Const, 0}, + {"TIOCSCONS", Const, 0}, + {"TIOCSCTTY", Const, 0}, + {"TIOCSDRAINWAIT", Const, 0}, + {"TIOCSDTR", Const, 0}, + {"TIOCSERCONFIG", Const, 0}, + {"TIOCSERGETLSR", Const, 0}, + {"TIOCSERGETMULTI", Const, 0}, + {"TIOCSERGSTRUCT", Const, 0}, + {"TIOCSERGWILD", Const, 0}, + {"TIOCSERSETMULTI", Const, 0}, + {"TIOCSERSWILD", Const, 0}, + {"TIOCSER_TEMT", Const, 0}, + {"TIOCSETA", Const, 0}, + {"TIOCSETAF", Const, 0}, + {"TIOCSETAW", Const, 0}, + {"TIOCSETD", Const, 0}, + {"TIOCSFLAGS", Const, 1}, + {"TIOCSIG", Const, 0}, + {"TIOCSLCKTRMIOS", Const, 0}, + {"TIOCSLINED", Const, 1}, + {"TIOCSPGRP", Const, 0}, + {"TIOCSPTLCK", Const, 0}, + {"TIOCSQSIZE", Const, 1}, + {"TIOCSRS485", Const, 0}, + {"TIOCSSERIAL", Const, 0}, + {"TIOCSSIZE", Const, 1}, + {"TIOCSSOFTCAR", Const, 0}, + {"TIOCSTART", Const, 0}, + {"TIOCSTAT", Const, 0}, + {"TIOCSTI", Const, 0}, + {"TIOCSTOP", Const, 0}, + {"TIOCSTSTAMP", Const, 1}, + {"TIOCSWINSZ", Const, 0}, + {"TIOCTIMESTAMP", Const, 0}, + {"TIOCUCNTL", Const, 0}, + {"TIOCVHANGUP", Const, 0}, + {"TIOCXMTFRAME", Const, 1}, + {"TOKEN_ADJUST_DEFAULT", Const, 0}, + {"TOKEN_ADJUST_GROUPS", Const, 0}, + {"TOKEN_ADJUST_PRIVILEGES", Const, 0}, + {"TOKEN_ADJUST_SESSIONID", Const, 11}, + {"TOKEN_ALL_ACCESS", Const, 0}, + {"TOKEN_ASSIGN_PRIMARY", Const, 0}, + {"TOKEN_DUPLICATE", Const, 0}, + {"TOKEN_EXECUTE", Const, 0}, + {"TOKEN_IMPERSONATE", Const, 0}, + {"TOKEN_QUERY", Const, 0}, + {"TOKEN_QUERY_SOURCE", Const, 0}, + {"TOKEN_READ", Const, 0}, + {"TOKEN_WRITE", Const, 0}, + {"TOSTOP", Const, 0}, + {"TRUNCATE_EXISTING", Const, 0}, + {"TUNATTACHFILTER", Const, 0}, + {"TUNDETACHFILTER", Const, 0}, + {"TUNGETFEATURES", Const, 0}, + {"TUNGETIFF", Const, 0}, + {"TUNGETSNDBUF", Const, 0}, + {"TUNGETVNETHDRSZ", Const, 0}, + {"TUNSETDEBUG", Const, 0}, + {"TUNSETGROUP", Const, 0}, + {"TUNSETIFF", Const, 0}, + {"TUNSETLINK", Const, 0}, + {"TUNSETNOCSUM", Const, 0}, + {"TUNSETOFFLOAD", Const, 0}, + {"TUNSETOWNER", Const, 0}, + {"TUNSETPERSIST", Const, 0}, + {"TUNSETSNDBUF", Const, 0}, + {"TUNSETTXFILTER", Const, 0}, + {"TUNSETVNETHDRSZ", Const, 0}, + {"Tee", Func, 0}, + {"TerminateProcess", Func, 0}, + {"Termios", Type, 0}, + {"Termios.Cc", Field, 0}, + {"Termios.Cflag", Field, 0}, + {"Termios.Iflag", Field, 0}, + {"Termios.Ispeed", Field, 0}, + {"Termios.Lflag", Field, 0}, + {"Termios.Line", Field, 0}, + {"Termios.Oflag", Field, 0}, + {"Termios.Ospeed", Field, 0}, + {"Termios.Pad_cgo_0", Field, 0}, + {"Tgkill", Func, 0}, + {"Time", Func, 0}, + {"Time_t", Type, 0}, + {"Times", Func, 0}, + {"Timespec", Type, 0}, + {"Timespec.Nsec", Field, 0}, + {"Timespec.Pad_cgo_0", Field, 2}, + {"Timespec.Sec", Field, 0}, + {"TimespecToNsec", Func, 0}, + {"Timeval", Type, 0}, + {"Timeval.Pad_cgo_0", Field, 0}, + {"Timeval.Sec", Field, 0}, + {"Timeval.Usec", Field, 0}, + {"Timeval32", Type, 0}, + {"Timeval32.Sec", Field, 0}, + {"Timeval32.Usec", Field, 0}, + {"TimevalToNsec", Func, 0}, + {"Timex", Type, 0}, + {"Timex.Calcnt", Field, 0}, + {"Timex.Constant", Field, 0}, + {"Timex.Errcnt", Field, 0}, + {"Timex.Esterror", Field, 0}, + {"Timex.Freq", Field, 0}, + {"Timex.Jitcnt", Field, 0}, + {"Timex.Jitter", Field, 0}, + {"Timex.Maxerror", Field, 0}, + {"Timex.Modes", Field, 0}, + {"Timex.Offset", Field, 0}, + {"Timex.Pad_cgo_0", Field, 0}, + {"Timex.Pad_cgo_1", Field, 0}, + {"Timex.Pad_cgo_2", Field, 0}, + {"Timex.Pad_cgo_3", Field, 0}, + {"Timex.Ppsfreq", Field, 0}, + {"Timex.Precision", Field, 0}, + {"Timex.Shift", Field, 0}, + {"Timex.Stabil", Field, 0}, + {"Timex.Status", Field, 0}, + {"Timex.Stbcnt", Field, 0}, + {"Timex.Tai", Field, 0}, + {"Timex.Tick", Field, 0}, + {"Timex.Time", Field, 0}, + {"Timex.Tolerance", Field, 0}, + {"Timezoneinformation", Type, 0}, + {"Timezoneinformation.Bias", Field, 0}, + {"Timezoneinformation.DaylightBias", Field, 0}, + {"Timezoneinformation.DaylightDate", Field, 0}, + {"Timezoneinformation.DaylightName", Field, 0}, + {"Timezoneinformation.StandardBias", Field, 0}, + {"Timezoneinformation.StandardDate", Field, 0}, + {"Timezoneinformation.StandardName", Field, 0}, + {"Tms", Type, 0}, + {"Tms.Cstime", Field, 0}, + {"Tms.Cutime", Field, 0}, + {"Tms.Stime", Field, 0}, + {"Tms.Utime", Field, 0}, + {"Token", Type, 0}, + {"TokenAccessInformation", Const, 0}, + {"TokenAuditPolicy", Const, 0}, + {"TokenDefaultDacl", Const, 0}, + {"TokenElevation", Const, 0}, + {"TokenElevationType", Const, 0}, + {"TokenGroups", Const, 0}, + {"TokenGroupsAndPrivileges", Const, 0}, + {"TokenHasRestrictions", Const, 0}, + {"TokenImpersonationLevel", Const, 0}, + {"TokenIntegrityLevel", Const, 0}, + {"TokenLinkedToken", Const, 0}, + {"TokenLogonSid", Const, 0}, + {"TokenMandatoryPolicy", Const, 0}, + {"TokenOrigin", Const, 0}, + {"TokenOwner", Const, 0}, + {"TokenPrimaryGroup", Const, 0}, + {"TokenPrivileges", Const, 0}, + {"TokenRestrictedSids", Const, 0}, + {"TokenSandBoxInert", Const, 0}, + {"TokenSessionId", Const, 0}, + {"TokenSessionReference", Const, 0}, + {"TokenSource", Const, 0}, + {"TokenStatistics", Const, 0}, + {"TokenType", Const, 0}, + {"TokenUIAccess", Const, 0}, + {"TokenUser", Const, 0}, + {"TokenVirtualizationAllowed", Const, 0}, + {"TokenVirtualizationEnabled", Const, 0}, + {"Tokenprimarygroup", Type, 0}, + {"Tokenprimarygroup.PrimaryGroup", Field, 0}, + {"Tokenuser", Type, 0}, + {"Tokenuser.User", Field, 0}, + {"TranslateAccountName", Func, 0}, + {"TranslateName", Func, 0}, + {"TransmitFile", Func, 0}, + {"TransmitFileBuffers", Type, 0}, + {"TransmitFileBuffers.Head", Field, 0}, + {"TransmitFileBuffers.HeadLength", Field, 0}, + {"TransmitFileBuffers.Tail", Field, 0}, + {"TransmitFileBuffers.TailLength", Field, 0}, + {"Truncate", Func, 0}, + {"UNIX_PATH_MAX", Const, 12}, + {"USAGE_MATCH_TYPE_AND", Const, 0}, + {"USAGE_MATCH_TYPE_OR", Const, 0}, + {"UTF16FromString", Func, 1}, + {"UTF16PtrFromString", Func, 1}, + {"UTF16ToString", Func, 0}, + {"Ucred", Type, 0}, + {"Ucred.Gid", Field, 0}, + {"Ucred.Pid", Field, 0}, + {"Ucred.Uid", Field, 0}, + {"Umask", Func, 0}, + {"Uname", Func, 0}, + {"Undelete", Func, 0}, + {"UnixCredentials", Func, 0}, + {"UnixRights", Func, 0}, + {"Unlink", Func, 0}, + {"Unlinkat", Func, 0}, + {"UnmapViewOfFile", Func, 0}, + {"Unmount", Func, 0}, + {"Unsetenv", Func, 4}, + {"Unshare", Func, 0}, + {"UserInfo10", Type, 0}, + {"UserInfo10.Comment", Field, 0}, + {"UserInfo10.FullName", Field, 0}, + {"UserInfo10.Name", Field, 0}, + {"UserInfo10.UsrComment", Field, 0}, + {"Ustat", Func, 0}, + {"Ustat_t", Type, 0}, + {"Ustat_t.Fname", Field, 0}, + {"Ustat_t.Fpack", Field, 0}, + {"Ustat_t.Pad_cgo_0", Field, 0}, + {"Ustat_t.Pad_cgo_1", Field, 0}, + {"Ustat_t.Tfree", Field, 0}, + {"Ustat_t.Tinode", Field, 0}, + {"Utimbuf", Type, 0}, + {"Utimbuf.Actime", Field, 0}, + {"Utimbuf.Modtime", Field, 0}, + {"Utime", Func, 0}, + {"Utimes", Func, 0}, + {"UtimesNano", Func, 1}, + {"Utsname", Type, 0}, + {"Utsname.Domainname", Field, 0}, + {"Utsname.Machine", Field, 0}, + {"Utsname.Nodename", Field, 0}, + {"Utsname.Release", Field, 0}, + {"Utsname.Sysname", Field, 0}, + {"Utsname.Version", Field, 0}, + {"VDISCARD", Const, 0}, + {"VDSUSP", Const, 1}, + {"VEOF", Const, 0}, + {"VEOL", Const, 0}, + {"VEOL2", Const, 0}, + {"VERASE", Const, 0}, + {"VERASE2", Const, 1}, + {"VINTR", Const, 0}, + {"VKILL", Const, 0}, + {"VLNEXT", Const, 0}, + {"VMIN", Const, 0}, + {"VQUIT", Const, 0}, + {"VREPRINT", Const, 0}, + {"VSTART", Const, 0}, + {"VSTATUS", Const, 1}, + {"VSTOP", Const, 0}, + {"VSUSP", Const, 0}, + {"VSWTC", Const, 0}, + {"VT0", Const, 1}, + {"VT1", Const, 1}, + {"VTDLY", Const, 1}, + {"VTIME", Const, 0}, + {"VWERASE", Const, 0}, + {"VirtualLock", Func, 0}, + {"VirtualUnlock", Func, 0}, + {"WAIT_ABANDONED", Const, 0}, + {"WAIT_FAILED", Const, 0}, + {"WAIT_OBJECT_0", Const, 0}, + {"WAIT_TIMEOUT", Const, 0}, + {"WALL", Const, 0}, + {"WALLSIG", Const, 1}, + {"WALTSIG", Const, 1}, + {"WCLONE", Const, 0}, + {"WCONTINUED", Const, 0}, + {"WCOREFLAG", Const, 0}, + {"WEXITED", Const, 0}, + {"WLINUXCLONE", Const, 0}, + {"WNOHANG", Const, 0}, + {"WNOTHREAD", Const, 0}, + {"WNOWAIT", Const, 0}, + {"WNOZOMBIE", Const, 1}, + {"WOPTSCHECKED", Const, 1}, + {"WORDSIZE", Const, 0}, + {"WSABuf", Type, 0}, + {"WSABuf.Buf", Field, 0}, + {"WSABuf.Len", Field, 0}, + {"WSACleanup", Func, 0}, + {"WSADESCRIPTION_LEN", Const, 0}, + {"WSAData", Type, 0}, + {"WSAData.Description", Field, 0}, + {"WSAData.HighVersion", Field, 0}, + {"WSAData.MaxSockets", Field, 0}, + {"WSAData.MaxUdpDg", Field, 0}, + {"WSAData.SystemStatus", Field, 0}, + {"WSAData.VendorInfo", Field, 0}, + {"WSAData.Version", Field, 0}, + {"WSAEACCES", Const, 2}, + {"WSAECONNABORTED", Const, 9}, + {"WSAECONNRESET", Const, 3}, + {"WSAEnumProtocols", Func, 2}, + {"WSAID_CONNECTEX", Var, 1}, + {"WSAIoctl", Func, 0}, + {"WSAPROTOCOL_LEN", Const, 2}, + {"WSAProtocolChain", Type, 2}, + {"WSAProtocolChain.ChainEntries", Field, 2}, + {"WSAProtocolChain.ChainLen", Field, 2}, + {"WSAProtocolInfo", Type, 2}, + {"WSAProtocolInfo.AddressFamily", Field, 2}, + {"WSAProtocolInfo.CatalogEntryId", Field, 2}, + {"WSAProtocolInfo.MaxSockAddr", Field, 2}, + {"WSAProtocolInfo.MessageSize", Field, 2}, + {"WSAProtocolInfo.MinSockAddr", Field, 2}, + {"WSAProtocolInfo.NetworkByteOrder", Field, 2}, + {"WSAProtocolInfo.Protocol", Field, 2}, + {"WSAProtocolInfo.ProtocolChain", Field, 2}, + {"WSAProtocolInfo.ProtocolMaxOffset", Field, 2}, + {"WSAProtocolInfo.ProtocolName", Field, 2}, + {"WSAProtocolInfo.ProviderFlags", Field, 2}, + {"WSAProtocolInfo.ProviderId", Field, 2}, + {"WSAProtocolInfo.ProviderReserved", Field, 2}, + {"WSAProtocolInfo.SecurityScheme", Field, 2}, + {"WSAProtocolInfo.ServiceFlags1", Field, 2}, + {"WSAProtocolInfo.ServiceFlags2", Field, 2}, + {"WSAProtocolInfo.ServiceFlags3", Field, 2}, + {"WSAProtocolInfo.ServiceFlags4", Field, 2}, + {"WSAProtocolInfo.SocketType", Field, 2}, + {"WSAProtocolInfo.Version", Field, 2}, + {"WSARecv", Func, 0}, + {"WSARecvFrom", Func, 0}, + {"WSASYS_STATUS_LEN", Const, 0}, + {"WSASend", Func, 0}, + {"WSASendTo", Func, 0}, + {"WSASendto", Func, 0}, + {"WSAStartup", Func, 0}, + {"WSTOPPED", Const, 0}, + {"WTRAPPED", Const, 1}, + {"WUNTRACED", Const, 0}, + {"Wait4", Func, 0}, + {"WaitForSingleObject", Func, 0}, + {"WaitStatus", Type, 0}, + {"WaitStatus.ExitCode", Field, 0}, + {"Win32FileAttributeData", Type, 0}, + {"Win32FileAttributeData.CreationTime", Field, 0}, + {"Win32FileAttributeData.FileAttributes", Field, 0}, + {"Win32FileAttributeData.FileSizeHigh", Field, 0}, + {"Win32FileAttributeData.FileSizeLow", Field, 0}, + {"Win32FileAttributeData.LastAccessTime", Field, 0}, + {"Win32FileAttributeData.LastWriteTime", Field, 0}, + {"Win32finddata", Type, 0}, + {"Win32finddata.AlternateFileName", Field, 0}, + {"Win32finddata.CreationTime", Field, 0}, + {"Win32finddata.FileAttributes", Field, 0}, + {"Win32finddata.FileName", Field, 0}, + {"Win32finddata.FileSizeHigh", Field, 0}, + {"Win32finddata.FileSizeLow", Field, 0}, + {"Win32finddata.LastAccessTime", Field, 0}, + {"Win32finddata.LastWriteTime", Field, 0}, + {"Win32finddata.Reserved0", Field, 0}, + {"Win32finddata.Reserved1", Field, 0}, + {"Write", Func, 0}, + {"WriteConsole", Func, 1}, + {"WriteFile", Func, 0}, + {"X509_ASN_ENCODING", Const, 0}, + {"XCASE", Const, 0}, + {"XP1_CONNECTIONLESS", Const, 2}, + {"XP1_CONNECT_DATA", Const, 2}, + {"XP1_DISCONNECT_DATA", Const, 2}, + {"XP1_EXPEDITED_DATA", Const, 2}, + {"XP1_GRACEFUL_CLOSE", Const, 2}, + {"XP1_GUARANTEED_DELIVERY", Const, 2}, + {"XP1_GUARANTEED_ORDER", Const, 2}, + {"XP1_IFS_HANDLES", Const, 2}, + {"XP1_MESSAGE_ORIENTED", Const, 2}, + {"XP1_MULTIPOINT_CONTROL_PLANE", Const, 2}, + {"XP1_MULTIPOINT_DATA_PLANE", Const, 2}, + {"XP1_PARTIAL_MESSAGE", Const, 2}, + {"XP1_PSEUDO_STREAM", Const, 2}, + {"XP1_QOS_SUPPORTED", Const, 2}, + {"XP1_SAN_SUPPORT_SDP", Const, 2}, + {"XP1_SUPPORT_BROADCAST", Const, 2}, + {"XP1_SUPPORT_MULTIPOINT", Const, 2}, + {"XP1_UNI_RECV", Const, 2}, + {"XP1_UNI_SEND", Const, 2}, + }, + "syscall/js": { + {"CopyBytesToGo", Func, 0}, + {"CopyBytesToJS", Func, 0}, + {"Error", Type, 0}, + {"Func", Type, 0}, + {"FuncOf", Func, 0}, + {"Global", Func, 0}, + {"Null", Func, 0}, + {"Type", Type, 0}, + {"TypeBoolean", Const, 0}, + {"TypeFunction", Const, 0}, + {"TypeNull", Const, 0}, + {"TypeNumber", Const, 0}, + {"TypeObject", Const, 0}, + {"TypeString", Const, 0}, + {"TypeSymbol", Const, 0}, + {"TypeUndefined", Const, 0}, + {"Undefined", Func, 0}, + {"Value", Type, 0}, + {"ValueError", Type, 0}, + {"ValueOf", Func, 0}, + }, + "testing": { + {"(*B).Cleanup", Method, 14}, + {"(*B).Elapsed", Method, 20}, + {"(*B).Error", Method, 0}, + {"(*B).Errorf", Method, 0}, + {"(*B).Fail", Method, 0}, + {"(*B).FailNow", Method, 0}, + {"(*B).Failed", Method, 0}, + {"(*B).Fatal", Method, 0}, + {"(*B).Fatalf", Method, 0}, + {"(*B).Helper", Method, 9}, + {"(*B).Log", Method, 0}, + {"(*B).Logf", Method, 0}, + {"(*B).Name", Method, 8}, + {"(*B).ReportAllocs", Method, 1}, + {"(*B).ReportMetric", Method, 13}, + {"(*B).ResetTimer", Method, 0}, + {"(*B).Run", Method, 7}, + {"(*B).RunParallel", Method, 3}, + {"(*B).SetBytes", Method, 0}, + {"(*B).SetParallelism", Method, 3}, + {"(*B).Setenv", Method, 17}, + {"(*B).Skip", Method, 1}, + {"(*B).SkipNow", Method, 1}, + {"(*B).Skipf", Method, 1}, + {"(*B).Skipped", Method, 1}, + {"(*B).StartTimer", Method, 0}, + {"(*B).StopTimer", Method, 0}, + {"(*B).TempDir", Method, 15}, + {"(*F).Add", Method, 18}, + {"(*F).Cleanup", Method, 18}, + {"(*F).Error", Method, 18}, + {"(*F).Errorf", Method, 18}, + {"(*F).Fail", Method, 18}, + {"(*F).FailNow", Method, 18}, + {"(*F).Failed", Method, 18}, + {"(*F).Fatal", Method, 18}, + {"(*F).Fatalf", Method, 18}, + {"(*F).Fuzz", Method, 18}, + {"(*F).Helper", Method, 18}, + {"(*F).Log", Method, 18}, + {"(*F).Logf", Method, 18}, + {"(*F).Name", Method, 18}, + {"(*F).Setenv", Method, 18}, + {"(*F).Skip", Method, 18}, + {"(*F).SkipNow", Method, 18}, + {"(*F).Skipf", Method, 18}, + {"(*F).Skipped", Method, 18}, + {"(*F).TempDir", Method, 18}, + {"(*M).Run", Method, 4}, + {"(*PB).Next", Method, 3}, + {"(*T).Cleanup", Method, 14}, + {"(*T).Deadline", Method, 15}, + {"(*T).Error", Method, 0}, + {"(*T).Errorf", Method, 0}, + {"(*T).Fail", Method, 0}, + {"(*T).FailNow", Method, 0}, + {"(*T).Failed", Method, 0}, + {"(*T).Fatal", Method, 0}, + {"(*T).Fatalf", Method, 0}, + {"(*T).Helper", Method, 9}, + {"(*T).Log", Method, 0}, + {"(*T).Logf", Method, 0}, + {"(*T).Name", Method, 8}, + {"(*T).Parallel", Method, 0}, + {"(*T).Run", Method, 7}, + {"(*T).Setenv", Method, 17}, + {"(*T).Skip", Method, 1}, + {"(*T).SkipNow", Method, 1}, + {"(*T).Skipf", Method, 1}, + {"(*T).Skipped", Method, 1}, + {"(*T).TempDir", Method, 15}, + {"(BenchmarkResult).AllocedBytesPerOp", Method, 1}, + {"(BenchmarkResult).AllocsPerOp", Method, 1}, + {"(BenchmarkResult).MemString", Method, 1}, + {"(BenchmarkResult).NsPerOp", Method, 0}, + {"(BenchmarkResult).String", Method, 0}, + {"AllocsPerRun", Func, 1}, + {"B", Type, 0}, + {"B.N", Field, 0}, + {"Benchmark", Func, 0}, + {"BenchmarkResult", Type, 0}, + {"BenchmarkResult.Bytes", Field, 0}, + {"BenchmarkResult.Extra", Field, 13}, + {"BenchmarkResult.MemAllocs", Field, 1}, + {"BenchmarkResult.MemBytes", Field, 1}, + {"BenchmarkResult.N", Field, 0}, + {"BenchmarkResult.T", Field, 0}, + {"Cover", Type, 2}, + {"Cover.Blocks", Field, 2}, + {"Cover.Counters", Field, 2}, + {"Cover.CoveredPackages", Field, 2}, + {"Cover.Mode", Field, 2}, + {"CoverBlock", Type, 2}, + {"CoverBlock.Col0", Field, 2}, + {"CoverBlock.Col1", Field, 2}, + {"CoverBlock.Line0", Field, 2}, + {"CoverBlock.Line1", Field, 2}, + {"CoverBlock.Stmts", Field, 2}, + {"CoverMode", Func, 8}, + {"Coverage", Func, 4}, + {"F", Type, 18}, + {"Init", Func, 13}, + {"InternalBenchmark", Type, 0}, + {"InternalBenchmark.F", Field, 0}, + {"InternalBenchmark.Name", Field, 0}, + {"InternalExample", Type, 0}, + {"InternalExample.F", Field, 0}, + {"InternalExample.Name", Field, 0}, + {"InternalExample.Output", Field, 0}, + {"InternalExample.Unordered", Field, 7}, + {"InternalFuzzTarget", Type, 18}, + {"InternalFuzzTarget.Fn", Field, 18}, + {"InternalFuzzTarget.Name", Field, 18}, + {"InternalTest", Type, 0}, + {"InternalTest.F", Field, 0}, + {"InternalTest.Name", Field, 0}, + {"M", Type, 4}, + {"Main", Func, 0}, + {"MainStart", Func, 4}, + {"PB", Type, 3}, + {"RegisterCover", Func, 2}, + {"RunBenchmarks", Func, 0}, + {"RunExamples", Func, 0}, + {"RunTests", Func, 0}, + {"Short", Func, 0}, + {"T", Type, 0}, + {"TB", Type, 2}, + {"Testing", Func, 21}, + {"Verbose", Func, 1}, + }, + "testing/fstest": { + {"(MapFS).Glob", Method, 16}, + {"(MapFS).Open", Method, 16}, + {"(MapFS).ReadDir", Method, 16}, + {"(MapFS).ReadFile", Method, 16}, + {"(MapFS).Stat", Method, 16}, + {"(MapFS).Sub", Method, 16}, + {"MapFS", Type, 16}, + {"MapFile", Type, 16}, + {"MapFile.Data", Field, 16}, + {"MapFile.ModTime", Field, 16}, + {"MapFile.Mode", Field, 16}, + {"MapFile.Sys", Field, 16}, + {"TestFS", Func, 16}, + }, + "testing/iotest": { + {"DataErrReader", Func, 0}, + {"ErrReader", Func, 16}, + {"ErrTimeout", Var, 0}, + {"HalfReader", Func, 0}, + {"NewReadLogger", Func, 0}, + {"NewWriteLogger", Func, 0}, + {"OneByteReader", Func, 0}, + {"TestReader", Func, 16}, + {"TimeoutReader", Func, 0}, + {"TruncateWriter", Func, 0}, + }, + "testing/quick": { + {"(*CheckEqualError).Error", Method, 0}, + {"(*CheckError).Error", Method, 0}, + {"(SetupError).Error", Method, 0}, + {"Check", Func, 0}, + {"CheckEqual", Func, 0}, + {"CheckEqualError", Type, 0}, + {"CheckEqualError.CheckError", Field, 0}, + {"CheckEqualError.Out1", Field, 0}, + {"CheckEqualError.Out2", Field, 0}, + {"CheckError", Type, 0}, + {"CheckError.Count", Field, 0}, + {"CheckError.In", Field, 0}, + {"Config", Type, 0}, + {"Config.MaxCount", Field, 0}, + {"Config.MaxCountScale", Field, 0}, + {"Config.Rand", Field, 0}, + {"Config.Values", Field, 0}, + {"Generator", Type, 0}, + {"SetupError", Type, 0}, + {"Value", Func, 0}, + }, + "testing/slogtest": { + {"Run", Func, 22}, + {"TestHandler", Func, 21}, + }, + "text/scanner": { + {"(*Position).IsValid", Method, 0}, + {"(*Scanner).Init", Method, 0}, + {"(*Scanner).IsValid", Method, 0}, + {"(*Scanner).Next", Method, 0}, + {"(*Scanner).Peek", Method, 0}, + {"(*Scanner).Pos", Method, 0}, + {"(*Scanner).Scan", Method, 0}, + {"(*Scanner).TokenText", Method, 0}, + {"(Position).String", Method, 0}, + {"(Scanner).String", Method, 0}, + {"Char", Const, 0}, + {"Comment", Const, 0}, + {"EOF", Const, 0}, + {"Float", Const, 0}, + {"GoTokens", Const, 0}, + {"GoWhitespace", Const, 0}, + {"Ident", Const, 0}, + {"Int", Const, 0}, + {"Position", Type, 0}, + {"Position.Column", Field, 0}, + {"Position.Filename", Field, 0}, + {"Position.Line", Field, 0}, + {"Position.Offset", Field, 0}, + {"RawString", Const, 0}, + {"ScanChars", Const, 0}, + {"ScanComments", Const, 0}, + {"ScanFloats", Const, 0}, + {"ScanIdents", Const, 0}, + {"ScanInts", Const, 0}, + {"ScanRawStrings", Const, 0}, + {"ScanStrings", Const, 0}, + {"Scanner", Type, 0}, + {"Scanner.Error", Field, 0}, + {"Scanner.ErrorCount", Field, 0}, + {"Scanner.IsIdentRune", Field, 4}, + {"Scanner.Mode", Field, 0}, + {"Scanner.Position", Field, 0}, + {"Scanner.Whitespace", Field, 0}, + {"SkipComments", Const, 0}, + {"String", Const, 0}, + {"TokenString", Func, 0}, + }, + "text/tabwriter": { + {"(*Writer).Flush", Method, 0}, + {"(*Writer).Init", Method, 0}, + {"(*Writer).Write", Method, 0}, + {"AlignRight", Const, 0}, + {"Debug", Const, 0}, + {"DiscardEmptyColumns", Const, 0}, + {"Escape", Const, 0}, + {"FilterHTML", Const, 0}, + {"NewWriter", Func, 0}, + {"StripEscape", Const, 0}, + {"TabIndent", Const, 0}, + {"Writer", Type, 0}, + }, + "text/template": { + {"(*Template).AddParseTree", Method, 0}, + {"(*Template).Clone", Method, 0}, + {"(*Template).DefinedTemplates", Method, 5}, + {"(*Template).Delims", Method, 0}, + {"(*Template).Execute", Method, 0}, + {"(*Template).ExecuteTemplate", Method, 0}, + {"(*Template).Funcs", Method, 0}, + {"(*Template).Lookup", Method, 0}, + {"(*Template).Name", Method, 0}, + {"(*Template).New", Method, 0}, + {"(*Template).Option", Method, 5}, + {"(*Template).Parse", Method, 0}, + {"(*Template).ParseFS", Method, 16}, + {"(*Template).ParseFiles", Method, 0}, + {"(*Template).ParseGlob", Method, 0}, + {"(*Template).Templates", Method, 0}, + {"(ExecError).Error", Method, 6}, + {"(ExecError).Unwrap", Method, 13}, + {"(Template).Copy", Method, 2}, + {"(Template).ErrorContext", Method, 1}, + {"ExecError", Type, 6}, + {"ExecError.Err", Field, 6}, + {"ExecError.Name", Field, 6}, + {"FuncMap", Type, 0}, + {"HTMLEscape", Func, 0}, + {"HTMLEscapeString", Func, 0}, + {"HTMLEscaper", Func, 0}, + {"IsTrue", Func, 6}, + {"JSEscape", Func, 0}, + {"JSEscapeString", Func, 0}, + {"JSEscaper", Func, 0}, + {"Must", Func, 0}, + {"New", Func, 0}, + {"ParseFS", Func, 16}, + {"ParseFiles", Func, 0}, + {"ParseGlob", Func, 0}, + {"Template", Type, 0}, + {"Template.Tree", Field, 0}, + {"URLQueryEscaper", Func, 0}, + }, + "text/template/parse": { + {"(*ActionNode).Copy", Method, 0}, + {"(*ActionNode).String", Method, 0}, + {"(*BoolNode).Copy", Method, 0}, + {"(*BoolNode).String", Method, 0}, + {"(*BranchNode).Copy", Method, 4}, + {"(*BranchNode).String", Method, 0}, + {"(*BreakNode).Copy", Method, 18}, + {"(*BreakNode).String", Method, 18}, + {"(*ChainNode).Add", Method, 1}, + {"(*ChainNode).Copy", Method, 1}, + {"(*ChainNode).String", Method, 1}, + {"(*CommandNode).Copy", Method, 0}, + {"(*CommandNode).String", Method, 0}, + {"(*CommentNode).Copy", Method, 16}, + {"(*CommentNode).String", Method, 16}, + {"(*ContinueNode).Copy", Method, 18}, + {"(*ContinueNode).String", Method, 18}, + {"(*DotNode).Copy", Method, 0}, + {"(*DotNode).String", Method, 0}, + {"(*DotNode).Type", Method, 0}, + {"(*FieldNode).Copy", Method, 0}, + {"(*FieldNode).String", Method, 0}, + {"(*IdentifierNode).Copy", Method, 0}, + {"(*IdentifierNode).SetPos", Method, 1}, + {"(*IdentifierNode).SetTree", Method, 4}, + {"(*IdentifierNode).String", Method, 0}, + {"(*IfNode).Copy", Method, 0}, + {"(*IfNode).String", Method, 0}, + {"(*ListNode).Copy", Method, 0}, + {"(*ListNode).CopyList", Method, 0}, + {"(*ListNode).String", Method, 0}, + {"(*NilNode).Copy", Method, 1}, + {"(*NilNode).String", Method, 1}, + {"(*NilNode).Type", Method, 1}, + {"(*NumberNode).Copy", Method, 0}, + {"(*NumberNode).String", Method, 0}, + {"(*PipeNode).Copy", Method, 0}, + {"(*PipeNode).CopyPipe", Method, 0}, + {"(*PipeNode).String", Method, 0}, + {"(*RangeNode).Copy", Method, 0}, + {"(*RangeNode).String", Method, 0}, + {"(*StringNode).Copy", Method, 0}, + {"(*StringNode).String", Method, 0}, + {"(*TemplateNode).Copy", Method, 0}, + {"(*TemplateNode).String", Method, 0}, + {"(*TextNode).Copy", Method, 0}, + {"(*TextNode).String", Method, 0}, + {"(*Tree).Copy", Method, 2}, + {"(*Tree).ErrorContext", Method, 1}, + {"(*Tree).Parse", Method, 0}, + {"(*VariableNode).Copy", Method, 0}, + {"(*VariableNode).String", Method, 0}, + {"(*WithNode).Copy", Method, 0}, + {"(*WithNode).String", Method, 0}, + {"(ActionNode).Position", Method, 1}, + {"(ActionNode).Type", Method, 0}, + {"(BoolNode).Position", Method, 1}, + {"(BoolNode).Type", Method, 0}, + {"(BranchNode).Position", Method, 1}, + {"(BranchNode).Type", Method, 0}, + {"(BreakNode).Position", Method, 18}, + {"(BreakNode).Type", Method, 18}, + {"(ChainNode).Position", Method, 1}, + {"(ChainNode).Type", Method, 1}, + {"(CommandNode).Position", Method, 1}, + {"(CommandNode).Type", Method, 0}, + {"(CommentNode).Position", Method, 16}, + {"(CommentNode).Type", Method, 16}, + {"(ContinueNode).Position", Method, 18}, + {"(ContinueNode).Type", Method, 18}, + {"(DotNode).Position", Method, 1}, + {"(FieldNode).Position", Method, 1}, + {"(FieldNode).Type", Method, 0}, + {"(IdentifierNode).Position", Method, 1}, + {"(IdentifierNode).Type", Method, 0}, + {"(IfNode).Position", Method, 1}, + {"(IfNode).Type", Method, 0}, + {"(ListNode).Position", Method, 1}, + {"(ListNode).Type", Method, 0}, + {"(NilNode).Position", Method, 1}, + {"(NodeType).Type", Method, 0}, + {"(NumberNode).Position", Method, 1}, + {"(NumberNode).Type", Method, 0}, + {"(PipeNode).Position", Method, 1}, + {"(PipeNode).Type", Method, 0}, + {"(Pos).Position", Method, 1}, + {"(RangeNode).Position", Method, 1}, + {"(RangeNode).Type", Method, 0}, + {"(StringNode).Position", Method, 1}, + {"(StringNode).Type", Method, 0}, + {"(TemplateNode).Position", Method, 1}, + {"(TemplateNode).Type", Method, 0}, + {"(TextNode).Position", Method, 1}, + {"(TextNode).Type", Method, 0}, + {"(VariableNode).Position", Method, 1}, + {"(VariableNode).Type", Method, 0}, + {"(WithNode).Position", Method, 1}, + {"(WithNode).Type", Method, 0}, + {"ActionNode", Type, 0}, + {"ActionNode.Line", Field, 0}, + {"ActionNode.NodeType", Field, 0}, + {"ActionNode.Pipe", Field, 0}, + {"ActionNode.Pos", Field, 1}, + {"BoolNode", Type, 0}, + {"BoolNode.NodeType", Field, 0}, + {"BoolNode.Pos", Field, 1}, + {"BoolNode.True", Field, 0}, + {"BranchNode", Type, 0}, + {"BranchNode.ElseList", Field, 0}, + {"BranchNode.Line", Field, 0}, + {"BranchNode.List", Field, 0}, + {"BranchNode.NodeType", Field, 0}, + {"BranchNode.Pipe", Field, 0}, + {"BranchNode.Pos", Field, 1}, + {"BreakNode", Type, 18}, + {"BreakNode.Line", Field, 18}, + {"BreakNode.NodeType", Field, 18}, + {"BreakNode.Pos", Field, 18}, + {"ChainNode", Type, 1}, + {"ChainNode.Field", Field, 1}, + {"ChainNode.Node", Field, 1}, + {"ChainNode.NodeType", Field, 1}, + {"ChainNode.Pos", Field, 1}, + {"CommandNode", Type, 0}, + {"CommandNode.Args", Field, 0}, + {"CommandNode.NodeType", Field, 0}, + {"CommandNode.Pos", Field, 1}, + {"CommentNode", Type, 16}, + {"CommentNode.NodeType", Field, 16}, + {"CommentNode.Pos", Field, 16}, + {"CommentNode.Text", Field, 16}, + {"ContinueNode", Type, 18}, + {"ContinueNode.Line", Field, 18}, + {"ContinueNode.NodeType", Field, 18}, + {"ContinueNode.Pos", Field, 18}, + {"DotNode", Type, 0}, + {"DotNode.NodeType", Field, 4}, + {"DotNode.Pos", Field, 1}, + {"FieldNode", Type, 0}, + {"FieldNode.Ident", Field, 0}, + {"FieldNode.NodeType", Field, 0}, + {"FieldNode.Pos", Field, 1}, + {"IdentifierNode", Type, 0}, + {"IdentifierNode.Ident", Field, 0}, + {"IdentifierNode.NodeType", Field, 0}, + {"IdentifierNode.Pos", Field, 1}, + {"IfNode", Type, 0}, + {"IfNode.BranchNode", Field, 0}, + {"IsEmptyTree", Func, 0}, + {"ListNode", Type, 0}, + {"ListNode.NodeType", Field, 0}, + {"ListNode.Nodes", Field, 0}, + {"ListNode.Pos", Field, 1}, + {"Mode", Type, 16}, + {"New", Func, 0}, + {"NewIdentifier", Func, 0}, + {"NilNode", Type, 1}, + {"NilNode.NodeType", Field, 4}, + {"NilNode.Pos", Field, 1}, + {"Node", Type, 0}, + {"NodeAction", Const, 0}, + {"NodeBool", Const, 0}, + {"NodeBreak", Const, 18}, + {"NodeChain", Const, 1}, + {"NodeCommand", Const, 0}, + {"NodeComment", Const, 16}, + {"NodeContinue", Const, 18}, + {"NodeDot", Const, 0}, + {"NodeField", Const, 0}, + {"NodeIdentifier", Const, 0}, + {"NodeIf", Const, 0}, + {"NodeList", Const, 0}, + {"NodeNil", Const, 1}, + {"NodeNumber", Const, 0}, + {"NodePipe", Const, 0}, + {"NodeRange", Const, 0}, + {"NodeString", Const, 0}, + {"NodeTemplate", Const, 0}, + {"NodeText", Const, 0}, + {"NodeType", Type, 0}, + {"NodeVariable", Const, 0}, + {"NodeWith", Const, 0}, + {"NumberNode", Type, 0}, + {"NumberNode.Complex128", Field, 0}, + {"NumberNode.Float64", Field, 0}, + {"NumberNode.Int64", Field, 0}, + {"NumberNode.IsComplex", Field, 0}, + {"NumberNode.IsFloat", Field, 0}, + {"NumberNode.IsInt", Field, 0}, + {"NumberNode.IsUint", Field, 0}, + {"NumberNode.NodeType", Field, 0}, + {"NumberNode.Pos", Field, 1}, + {"NumberNode.Text", Field, 0}, + {"NumberNode.Uint64", Field, 0}, + {"Parse", Func, 0}, + {"ParseComments", Const, 16}, + {"PipeNode", Type, 0}, + {"PipeNode.Cmds", Field, 0}, + {"PipeNode.Decl", Field, 0}, + {"PipeNode.IsAssign", Field, 11}, + {"PipeNode.Line", Field, 0}, + {"PipeNode.NodeType", Field, 0}, + {"PipeNode.Pos", Field, 1}, + {"Pos", Type, 1}, + {"RangeNode", Type, 0}, + {"RangeNode.BranchNode", Field, 0}, + {"SkipFuncCheck", Const, 17}, + {"StringNode", Type, 0}, + {"StringNode.NodeType", Field, 0}, + {"StringNode.Pos", Field, 1}, + {"StringNode.Quoted", Field, 0}, + {"StringNode.Text", Field, 0}, + {"TemplateNode", Type, 0}, + {"TemplateNode.Line", Field, 0}, + {"TemplateNode.Name", Field, 0}, + {"TemplateNode.NodeType", Field, 0}, + {"TemplateNode.Pipe", Field, 0}, + {"TemplateNode.Pos", Field, 1}, + {"TextNode", Type, 0}, + {"TextNode.NodeType", Field, 0}, + {"TextNode.Pos", Field, 1}, + {"TextNode.Text", Field, 0}, + {"Tree", Type, 0}, + {"Tree.Mode", Field, 16}, + {"Tree.Name", Field, 0}, + {"Tree.ParseName", Field, 1}, + {"Tree.Root", Field, 0}, + {"VariableNode", Type, 0}, + {"VariableNode.Ident", Field, 0}, + {"VariableNode.NodeType", Field, 0}, + {"VariableNode.Pos", Field, 1}, + {"WithNode", Type, 0}, + {"WithNode.BranchNode", Field, 0}, + }, + "time": { + {"(*Location).String", Method, 0}, + {"(*ParseError).Error", Method, 0}, + {"(*Ticker).Reset", Method, 15}, + {"(*Ticker).Stop", Method, 0}, + {"(*Time).GobDecode", Method, 0}, + {"(*Time).UnmarshalBinary", Method, 2}, + {"(*Time).UnmarshalJSON", Method, 0}, + {"(*Time).UnmarshalText", Method, 2}, + {"(*Timer).Reset", Method, 1}, + {"(*Timer).Stop", Method, 0}, + {"(Duration).Abs", Method, 19}, + {"(Duration).Hours", Method, 0}, + {"(Duration).Microseconds", Method, 13}, + {"(Duration).Milliseconds", Method, 13}, + {"(Duration).Minutes", Method, 0}, + {"(Duration).Nanoseconds", Method, 0}, + {"(Duration).Round", Method, 9}, + {"(Duration).Seconds", Method, 0}, + {"(Duration).String", Method, 0}, + {"(Duration).Truncate", Method, 9}, + {"(Month).String", Method, 0}, + {"(Time).Add", Method, 0}, + {"(Time).AddDate", Method, 0}, + {"(Time).After", Method, 0}, + {"(Time).AppendFormat", Method, 5}, + {"(Time).Before", Method, 0}, + {"(Time).Clock", Method, 0}, + {"(Time).Compare", Method, 20}, + {"(Time).Date", Method, 0}, + {"(Time).Day", Method, 0}, + {"(Time).Equal", Method, 0}, + {"(Time).Format", Method, 0}, + {"(Time).GoString", Method, 17}, + {"(Time).GobEncode", Method, 0}, + {"(Time).Hour", Method, 0}, + {"(Time).ISOWeek", Method, 0}, + {"(Time).In", Method, 0}, + {"(Time).IsDST", Method, 17}, + {"(Time).IsZero", Method, 0}, + {"(Time).Local", Method, 0}, + {"(Time).Location", Method, 0}, + {"(Time).MarshalBinary", Method, 2}, + {"(Time).MarshalJSON", Method, 0}, + {"(Time).MarshalText", Method, 2}, + {"(Time).Minute", Method, 0}, + {"(Time).Month", Method, 0}, + {"(Time).Nanosecond", Method, 0}, + {"(Time).Round", Method, 1}, + {"(Time).Second", Method, 0}, + {"(Time).String", Method, 0}, + {"(Time).Sub", Method, 0}, + {"(Time).Truncate", Method, 1}, + {"(Time).UTC", Method, 0}, + {"(Time).Unix", Method, 0}, + {"(Time).UnixMicro", Method, 17}, + {"(Time).UnixMilli", Method, 17}, + {"(Time).UnixNano", Method, 0}, + {"(Time).Weekday", Method, 0}, + {"(Time).Year", Method, 0}, + {"(Time).YearDay", Method, 1}, + {"(Time).Zone", Method, 0}, + {"(Time).ZoneBounds", Method, 19}, + {"(Weekday).String", Method, 0}, + {"ANSIC", Const, 0}, + {"After", Func, 0}, + {"AfterFunc", Func, 0}, + {"April", Const, 0}, + {"August", Const, 0}, + {"Date", Func, 0}, + {"DateOnly", Const, 20}, + {"DateTime", Const, 20}, + {"December", Const, 0}, + {"Duration", Type, 0}, + {"February", Const, 0}, + {"FixedZone", Func, 0}, + {"Friday", Const, 0}, + {"Hour", Const, 0}, + {"January", Const, 0}, + {"July", Const, 0}, + {"June", Const, 0}, + {"Kitchen", Const, 0}, + {"Layout", Const, 17}, + {"LoadLocation", Func, 0}, + {"LoadLocationFromTZData", Func, 10}, + {"Local", Var, 0}, + {"Location", Type, 0}, + {"March", Const, 0}, + {"May", Const, 0}, + {"Microsecond", Const, 0}, + {"Millisecond", Const, 0}, + {"Minute", Const, 0}, + {"Monday", Const, 0}, + {"Month", Type, 0}, + {"Nanosecond", Const, 0}, + {"NewTicker", Func, 0}, + {"NewTimer", Func, 0}, + {"November", Const, 0}, + {"Now", Func, 0}, + {"October", Const, 0}, + {"Parse", Func, 0}, + {"ParseDuration", Func, 0}, + {"ParseError", Type, 0}, + {"ParseError.Layout", Field, 0}, + {"ParseError.LayoutElem", Field, 0}, + {"ParseError.Message", Field, 0}, + {"ParseError.Value", Field, 0}, + {"ParseError.ValueElem", Field, 0}, + {"ParseInLocation", Func, 1}, + {"RFC1123", Const, 0}, + {"RFC1123Z", Const, 0}, + {"RFC3339", Const, 0}, + {"RFC3339Nano", Const, 0}, + {"RFC822", Const, 0}, + {"RFC822Z", Const, 0}, + {"RFC850", Const, 0}, + {"RubyDate", Const, 0}, + {"Saturday", Const, 0}, + {"Second", Const, 0}, + {"September", Const, 0}, + {"Since", Func, 0}, + {"Sleep", Func, 0}, + {"Stamp", Const, 0}, + {"StampMicro", Const, 0}, + {"StampMilli", Const, 0}, + {"StampNano", Const, 0}, + {"Sunday", Const, 0}, + {"Thursday", Const, 0}, + {"Tick", Func, 0}, + {"Ticker", Type, 0}, + {"Ticker.C", Field, 0}, + {"Time", Type, 0}, + {"TimeOnly", Const, 20}, + {"Timer", Type, 0}, + {"Timer.C", Field, 0}, + {"Tuesday", Const, 0}, + {"UTC", Var, 0}, + {"Unix", Func, 0}, + {"UnixDate", Const, 0}, + {"UnixMicro", Func, 17}, + {"UnixMilli", Func, 17}, + {"Until", Func, 8}, + {"Wednesday", Const, 0}, + {"Weekday", Type, 0}, + }, + "unicode": { + {"(SpecialCase).ToLower", Method, 0}, + {"(SpecialCase).ToTitle", Method, 0}, + {"(SpecialCase).ToUpper", Method, 0}, + {"ASCII_Hex_Digit", Var, 0}, + {"Adlam", Var, 7}, + {"Ahom", Var, 5}, + {"Anatolian_Hieroglyphs", Var, 5}, + {"Arabic", Var, 0}, + {"Armenian", Var, 0}, + {"Avestan", Var, 0}, + {"AzeriCase", Var, 0}, + {"Balinese", Var, 0}, + {"Bamum", Var, 0}, + {"Bassa_Vah", Var, 4}, + {"Batak", Var, 0}, + {"Bengali", Var, 0}, + {"Bhaiksuki", Var, 7}, + {"Bidi_Control", Var, 0}, + {"Bopomofo", Var, 0}, + {"Brahmi", Var, 0}, + {"Braille", Var, 0}, + {"Buginese", Var, 0}, + {"Buhid", Var, 0}, + {"C", Var, 0}, + {"Canadian_Aboriginal", Var, 0}, + {"Carian", Var, 0}, + {"CaseRange", Type, 0}, + {"CaseRange.Delta", Field, 0}, + {"CaseRange.Hi", Field, 0}, + {"CaseRange.Lo", Field, 0}, + {"CaseRanges", Var, 0}, + {"Categories", Var, 0}, + {"Caucasian_Albanian", Var, 4}, + {"Cc", Var, 0}, + {"Cf", Var, 0}, + {"Chakma", Var, 1}, + {"Cham", Var, 0}, + {"Cherokee", Var, 0}, + {"Chorasmian", Var, 16}, + {"Co", Var, 0}, + {"Common", Var, 0}, + {"Coptic", Var, 0}, + {"Cs", Var, 0}, + {"Cuneiform", Var, 0}, + {"Cypriot", Var, 0}, + {"Cypro_Minoan", Var, 21}, + {"Cyrillic", Var, 0}, + {"Dash", Var, 0}, + {"Deprecated", Var, 0}, + {"Deseret", Var, 0}, + {"Devanagari", Var, 0}, + {"Diacritic", Var, 0}, + {"Digit", Var, 0}, + {"Dives_Akuru", Var, 16}, + {"Dogra", Var, 13}, + {"Duployan", Var, 4}, + {"Egyptian_Hieroglyphs", Var, 0}, + {"Elbasan", Var, 4}, + {"Elymaic", Var, 14}, + {"Ethiopic", Var, 0}, + {"Extender", Var, 0}, + {"FoldCategory", Var, 0}, + {"FoldScript", Var, 0}, + {"Georgian", Var, 0}, + {"Glagolitic", Var, 0}, + {"Gothic", Var, 0}, + {"Grantha", Var, 4}, + {"GraphicRanges", Var, 0}, + {"Greek", Var, 0}, + {"Gujarati", Var, 0}, + {"Gunjala_Gondi", Var, 13}, + {"Gurmukhi", Var, 0}, + {"Han", Var, 0}, + {"Hangul", Var, 0}, + {"Hanifi_Rohingya", Var, 13}, + {"Hanunoo", Var, 0}, + {"Hatran", Var, 5}, + {"Hebrew", Var, 0}, + {"Hex_Digit", Var, 0}, + {"Hiragana", Var, 0}, + {"Hyphen", Var, 0}, + {"IDS_Binary_Operator", Var, 0}, + {"IDS_Trinary_Operator", Var, 0}, + {"Ideographic", Var, 0}, + {"Imperial_Aramaic", Var, 0}, + {"In", Func, 2}, + {"Inherited", Var, 0}, + {"Inscriptional_Pahlavi", Var, 0}, + {"Inscriptional_Parthian", Var, 0}, + {"Is", Func, 0}, + {"IsControl", Func, 0}, + {"IsDigit", Func, 0}, + {"IsGraphic", Func, 0}, + {"IsLetter", Func, 0}, + {"IsLower", Func, 0}, + {"IsMark", Func, 0}, + {"IsNumber", Func, 0}, + {"IsOneOf", Func, 0}, + {"IsPrint", Func, 0}, + {"IsPunct", Func, 0}, + {"IsSpace", Func, 0}, + {"IsSymbol", Func, 0}, + {"IsTitle", Func, 0}, + {"IsUpper", Func, 0}, + {"Javanese", Var, 0}, + {"Join_Control", Var, 0}, + {"Kaithi", Var, 0}, + {"Kannada", Var, 0}, + {"Katakana", Var, 0}, + {"Kawi", Var, 21}, + {"Kayah_Li", Var, 0}, + {"Kharoshthi", Var, 0}, + {"Khitan_Small_Script", Var, 16}, + {"Khmer", Var, 0}, + {"Khojki", Var, 4}, + {"Khudawadi", Var, 4}, + {"L", Var, 0}, + {"Lao", Var, 0}, + {"Latin", Var, 0}, + {"Lepcha", Var, 0}, + {"Letter", Var, 0}, + {"Limbu", Var, 0}, + {"Linear_A", Var, 4}, + {"Linear_B", Var, 0}, + {"Lisu", Var, 0}, + {"Ll", Var, 0}, + {"Lm", Var, 0}, + {"Lo", Var, 0}, + {"Logical_Order_Exception", Var, 0}, + {"Lower", Var, 0}, + {"LowerCase", Const, 0}, + {"Lt", Var, 0}, + {"Lu", Var, 0}, + {"Lycian", Var, 0}, + {"Lydian", Var, 0}, + {"M", Var, 0}, + {"Mahajani", Var, 4}, + {"Makasar", Var, 13}, + {"Malayalam", Var, 0}, + {"Mandaic", Var, 0}, + {"Manichaean", Var, 4}, + {"Marchen", Var, 7}, + {"Mark", Var, 0}, + {"Masaram_Gondi", Var, 10}, + {"MaxASCII", Const, 0}, + {"MaxCase", Const, 0}, + {"MaxLatin1", Const, 0}, + {"MaxRune", Const, 0}, + {"Mc", Var, 0}, + {"Me", Var, 0}, + {"Medefaidrin", Var, 13}, + {"Meetei_Mayek", Var, 0}, + {"Mende_Kikakui", Var, 4}, + {"Meroitic_Cursive", Var, 1}, + {"Meroitic_Hieroglyphs", Var, 1}, + {"Miao", Var, 1}, + {"Mn", Var, 0}, + {"Modi", Var, 4}, + {"Mongolian", Var, 0}, + {"Mro", Var, 4}, + {"Multani", Var, 5}, + {"Myanmar", Var, 0}, + {"N", Var, 0}, + {"Nabataean", Var, 4}, + {"Nag_Mundari", Var, 21}, + {"Nandinagari", Var, 14}, + {"Nd", Var, 0}, + {"New_Tai_Lue", Var, 0}, + {"Newa", Var, 7}, + {"Nko", Var, 0}, + {"Nl", Var, 0}, + {"No", Var, 0}, + {"Noncharacter_Code_Point", Var, 0}, + {"Number", Var, 0}, + {"Nushu", Var, 10}, + {"Nyiakeng_Puachue_Hmong", Var, 14}, + {"Ogham", Var, 0}, + {"Ol_Chiki", Var, 0}, + {"Old_Hungarian", Var, 5}, + {"Old_Italic", Var, 0}, + {"Old_North_Arabian", Var, 4}, + {"Old_Permic", Var, 4}, + {"Old_Persian", Var, 0}, + {"Old_Sogdian", Var, 13}, + {"Old_South_Arabian", Var, 0}, + {"Old_Turkic", Var, 0}, + {"Old_Uyghur", Var, 21}, + {"Oriya", Var, 0}, + {"Osage", Var, 7}, + {"Osmanya", Var, 0}, + {"Other", Var, 0}, + {"Other_Alphabetic", Var, 0}, + {"Other_Default_Ignorable_Code_Point", Var, 0}, + {"Other_Grapheme_Extend", Var, 0}, + {"Other_ID_Continue", Var, 0}, + {"Other_ID_Start", Var, 0}, + {"Other_Lowercase", Var, 0}, + {"Other_Math", Var, 0}, + {"Other_Uppercase", Var, 0}, + {"P", Var, 0}, + {"Pahawh_Hmong", Var, 4}, + {"Palmyrene", Var, 4}, + {"Pattern_Syntax", Var, 0}, + {"Pattern_White_Space", Var, 0}, + {"Pau_Cin_Hau", Var, 4}, + {"Pc", Var, 0}, + {"Pd", Var, 0}, + {"Pe", Var, 0}, + {"Pf", Var, 0}, + {"Phags_Pa", Var, 0}, + {"Phoenician", Var, 0}, + {"Pi", Var, 0}, + {"Po", Var, 0}, + {"Prepended_Concatenation_Mark", Var, 7}, + {"PrintRanges", Var, 0}, + {"Properties", Var, 0}, + {"Ps", Var, 0}, + {"Psalter_Pahlavi", Var, 4}, + {"Punct", Var, 0}, + {"Quotation_Mark", Var, 0}, + {"Radical", Var, 0}, + {"Range16", Type, 0}, + {"Range16.Hi", Field, 0}, + {"Range16.Lo", Field, 0}, + {"Range16.Stride", Field, 0}, + {"Range32", Type, 0}, + {"Range32.Hi", Field, 0}, + {"Range32.Lo", Field, 0}, + {"Range32.Stride", Field, 0}, + {"RangeTable", Type, 0}, + {"RangeTable.LatinOffset", Field, 1}, + {"RangeTable.R16", Field, 0}, + {"RangeTable.R32", Field, 0}, + {"Regional_Indicator", Var, 10}, + {"Rejang", Var, 0}, + {"ReplacementChar", Const, 0}, + {"Runic", Var, 0}, + {"S", Var, 0}, + {"STerm", Var, 0}, + {"Samaritan", Var, 0}, + {"Saurashtra", Var, 0}, + {"Sc", Var, 0}, + {"Scripts", Var, 0}, + {"Sentence_Terminal", Var, 7}, + {"Sharada", Var, 1}, + {"Shavian", Var, 0}, + {"Siddham", Var, 4}, + {"SignWriting", Var, 5}, + {"SimpleFold", Func, 0}, + {"Sinhala", Var, 0}, + {"Sk", Var, 0}, + {"Sm", Var, 0}, + {"So", Var, 0}, + {"Soft_Dotted", Var, 0}, + {"Sogdian", Var, 13}, + {"Sora_Sompeng", Var, 1}, + {"Soyombo", Var, 10}, + {"Space", Var, 0}, + {"SpecialCase", Type, 0}, + {"Sundanese", Var, 0}, + {"Syloti_Nagri", Var, 0}, + {"Symbol", Var, 0}, + {"Syriac", Var, 0}, + {"Tagalog", Var, 0}, + {"Tagbanwa", Var, 0}, + {"Tai_Le", Var, 0}, + {"Tai_Tham", Var, 0}, + {"Tai_Viet", Var, 0}, + {"Takri", Var, 1}, + {"Tamil", Var, 0}, + {"Tangsa", Var, 21}, + {"Tangut", Var, 7}, + {"Telugu", Var, 0}, + {"Terminal_Punctuation", Var, 0}, + {"Thaana", Var, 0}, + {"Thai", Var, 0}, + {"Tibetan", Var, 0}, + {"Tifinagh", Var, 0}, + {"Tirhuta", Var, 4}, + {"Title", Var, 0}, + {"TitleCase", Const, 0}, + {"To", Func, 0}, + {"ToLower", Func, 0}, + {"ToTitle", Func, 0}, + {"ToUpper", Func, 0}, + {"Toto", Var, 21}, + {"TurkishCase", Var, 0}, + {"Ugaritic", Var, 0}, + {"Unified_Ideograph", Var, 0}, + {"Upper", Var, 0}, + {"UpperCase", Const, 0}, + {"UpperLower", Const, 0}, + {"Vai", Var, 0}, + {"Variation_Selector", Var, 0}, + {"Version", Const, 0}, + {"Vithkuqi", Var, 21}, + {"Wancho", Var, 14}, + {"Warang_Citi", Var, 4}, + {"White_Space", Var, 0}, + {"Yezidi", Var, 16}, + {"Yi", Var, 0}, + {"Z", Var, 0}, + {"Zanabazar_Square", Var, 10}, + {"Zl", Var, 0}, + {"Zp", Var, 0}, + {"Zs", Var, 0}, + }, + "unicode/utf16": { + {"AppendRune", Func, 20}, + {"Decode", Func, 0}, + {"DecodeRune", Func, 0}, + {"Encode", Func, 0}, + {"EncodeRune", Func, 0}, + {"IsSurrogate", Func, 0}, + }, + "unicode/utf8": { + {"AppendRune", Func, 18}, + {"DecodeLastRune", Func, 0}, + {"DecodeLastRuneInString", Func, 0}, + {"DecodeRune", Func, 0}, + {"DecodeRuneInString", Func, 0}, + {"EncodeRune", Func, 0}, + {"FullRune", Func, 0}, + {"FullRuneInString", Func, 0}, + {"MaxRune", Const, 0}, + {"RuneCount", Func, 0}, + {"RuneCountInString", Func, 0}, + {"RuneError", Const, 0}, + {"RuneLen", Func, 0}, + {"RuneSelf", Const, 0}, + {"RuneStart", Func, 0}, + {"UTFMax", Const, 0}, + {"Valid", Func, 0}, + {"ValidRune", Func, 1}, + {"ValidString", Func, 0}, + }, + "unsafe": { + {"Add", Func, 0}, + {"Alignof", Func, 0}, + {"Offsetof", Func, 0}, + {"Pointer", Type, 0}, + {"Sizeof", Func, 0}, + {"Slice", Func, 0}, + {"SliceData", Func, 0}, + {"String", Func, 0}, + {"StringData", Func, 0}, + }, +} diff --git a/vendor/golang.org/x/tools/internal/stdlib/stdlib.go b/vendor/golang.org/x/tools/internal/stdlib/stdlib.go new file mode 100644 index 000000000000..98904017f2ca --- /dev/null +++ b/vendor/golang.org/x/tools/internal/stdlib/stdlib.go @@ -0,0 +1,97 @@ +// Copyright 2022 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:generate go run generate.go + +// Package stdlib provides a table of all exported symbols in the +// standard library, along with the version at which they first +// appeared. +package stdlib + +import ( + "fmt" + "strings" +) + +type Symbol struct { + Name string + Kind Kind + Version Version // Go version that first included the symbol +} + +// A Kind indicates the kind of a symbol: +// function, variable, constant, type, and so on. +type Kind int8 + +const ( + Invalid Kind = iota // Example name: + Type // "Buffer" + Func // "Println" + Var // "EOF" + Const // "Pi" + Field // "Point.X" + Method // "(*Buffer).Grow" +) + +func (kind Kind) String() string { + return [...]string{ + Invalid: "invalid", + Type: "type", + Func: "func", + Var: "var", + Const: "const", + Field: "field", + Method: "method", + }[kind] +} + +// A Version represents a version of Go of the form "go1.%d". +type Version int8 + +// String returns a version string of the form "go1.23", without allocating. +func (v Version) String() string { return versions[v] } + +var versions [30]string // (increase constant as needed) + +func init() { + for i := range versions { + versions[i] = fmt.Sprintf("go1.%d", i) + } +} + +// HasPackage reports whether the specified package path is part of +// the standard library's public API. +func HasPackage(path string) bool { + _, ok := PackageSymbols[path] + return ok +} + +// SplitField splits the field symbol name into type and field +// components. It must be called only on Field symbols. +// +// Example: "File.Package" -> ("File", "Package") +func (sym *Symbol) SplitField() (typename, name string) { + if sym.Kind != Field { + panic("not a field") + } + typename, name, _ = strings.Cut(sym.Name, ".") + return +} + +// SplitMethod splits the method symbol name into pointer, receiver, +// and method components. It must be called only on Method symbols. +// +// Example: "(*Buffer).Grow" -> (true, "Buffer", "Grow") +func (sym *Symbol) SplitMethod() (ptr bool, recv, name string) { + if sym.Kind != Method { + panic("not a method") + } + recv, name, _ = strings.Cut(sym.Name, ".") + recv = recv[len("(") : len(recv)-len(")")] + ptr = recv[0] == '*' + if ptr { + recv = recv[len("*"):] + } + return +} diff --git a/vendor/golang.org/x/tools/internal/typeparams/common.go b/vendor/golang.org/x/tools/internal/typeparams/common.go deleted file mode 100644 index 8c3a42dc3118..000000000000 --- a/vendor/golang.org/x/tools/internal/typeparams/common.go +++ /dev/null @@ -1,195 +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. - -// Package typeparams contains common utilities for writing tools that -// interact with generic Go code, as introduced with Go 1.18. It -// supplements the standard library APIs. Notably, the StructuralTerms -// API computes a minimal representation of the structural -// restrictions on a type parameter. -// -// An external version of these APIs is available in the -// golang.org/x/exp/typeparams module. -package typeparams - -import ( - "fmt" - "go/ast" - "go/token" - "go/types" - - "golang.org/x/tools/internal/aliases" - "golang.org/x/tools/internal/typesinternal" -) - -// UnpackIndexExpr extracts data from AST nodes that represent index -// expressions. -// -// For an ast.IndexExpr, the resulting indices slice will contain exactly one -// index expression. For an ast.IndexListExpr (go1.18+), it may have a variable -// number of index expressions. -// -// For nodes that don't represent index expressions, the first return value of -// UnpackIndexExpr will be nil. -func UnpackIndexExpr(n ast.Node) (x ast.Expr, lbrack token.Pos, indices []ast.Expr, rbrack token.Pos) { - switch e := n.(type) { - case *ast.IndexExpr: - return e.X, e.Lbrack, []ast.Expr{e.Index}, e.Rbrack - case *ast.IndexListExpr: - return e.X, e.Lbrack, e.Indices, e.Rbrack - } - return nil, token.NoPos, nil, token.NoPos -} - -// PackIndexExpr returns an *ast.IndexExpr or *ast.IndexListExpr, depending on -// the cardinality of indices. Calling PackIndexExpr with len(indices) == 0 -// will panic. -func PackIndexExpr(x ast.Expr, lbrack token.Pos, indices []ast.Expr, rbrack token.Pos) ast.Expr { - switch len(indices) { - case 0: - panic("empty indices") - case 1: - return &ast.IndexExpr{ - X: x, - Lbrack: lbrack, - Index: indices[0], - Rbrack: rbrack, - } - default: - return &ast.IndexListExpr{ - X: x, - Lbrack: lbrack, - Indices: indices, - Rbrack: rbrack, - } - } -} - -// IsTypeParam reports whether t is a type parameter (or an alias of one). -func IsTypeParam(t types.Type) bool { - _, ok := aliases.Unalias(t).(*types.TypeParam) - return ok -} - -// OriginMethod returns the origin method associated with the method fn. -// For methods on a non-generic receiver base type, this is just -// fn. However, for methods with a generic receiver, OriginMethod returns the -// corresponding method in the method set of the origin type. -// -// As a special case, if fn is not a method (has no receiver), OriginMethod -// returns fn. -func OriginMethod(fn *types.Func) *types.Func { - recv := fn.Type().(*types.Signature).Recv() - if recv == nil { - return fn - } - _, named := typesinternal.ReceiverNamed(recv) - if named == nil { - // Receiver is a *types.Interface. - return fn - } - if named.TypeParams().Len() == 0 { - // Receiver base has no type parameters, so we can avoid the lookup below. - return fn - } - orig := named.Origin() - gfn, _, _ := types.LookupFieldOrMethod(orig, true, fn.Pkg(), fn.Name()) - - // This is a fix for a gopls crash (#60628) due to a go/types bug (#60634). In: - // package p - // type T *int - // func (*T) f() {} - // LookupFieldOrMethod(T, true, p, f)=nil, but NewMethodSet(*T)={(*T).f}. - // Here we make them consistent by force. - // (The go/types bug is general, but this workaround is reached only - // for generic T thanks to the early return above.) - if gfn == nil { - mset := types.NewMethodSet(types.NewPointer(orig)) - for i := 0; i < mset.Len(); i++ { - m := mset.At(i) - if m.Obj().Id() == fn.Id() { - gfn = m.Obj() - break - } - } - } - - // In golang/go#61196, we observe another crash, this time inexplicable. - if gfn == nil { - panic(fmt.Sprintf("missing origin method for %s.%s; named == origin: %t, named.NumMethods(): %d, origin.NumMethods(): %d", named, fn, named == orig, named.NumMethods(), orig.NumMethods())) - } - - return gfn.(*types.Func) -} - -// GenericAssignableTo is a generalization of types.AssignableTo that -// implements the following rule for uninstantiated generic types: -// -// If V and T are generic named types, then V is considered assignable to T if, -// for every possible instantation of V[A_1, ..., A_N], the instantiation -// T[A_1, ..., A_N] is valid and V[A_1, ..., A_N] implements T[A_1, ..., A_N]. -// -// If T has structural constraints, they must be satisfied by V. -// -// For example, consider the following type declarations: -// -// type Interface[T any] interface { -// Accept(T) -// } -// -// type Container[T any] struct { -// Element T -// } -// -// func (c Container[T]) Accept(t T) { c.Element = t } -// -// In this case, GenericAssignableTo reports that instantiations of Container -// are assignable to the corresponding instantiation of Interface. -func GenericAssignableTo(ctxt *types.Context, V, T types.Type) bool { - V = aliases.Unalias(V) - T = aliases.Unalias(T) - - // If V and T are not both named, or do not have matching non-empty type - // parameter lists, fall back on types.AssignableTo. - - VN, Vnamed := V.(*types.Named) - TN, Tnamed := T.(*types.Named) - if !Vnamed || !Tnamed { - return types.AssignableTo(V, T) - } - - vtparams := VN.TypeParams() - ttparams := TN.TypeParams() - if vtparams.Len() == 0 || vtparams.Len() != ttparams.Len() || VN.TypeArgs().Len() != 0 || TN.TypeArgs().Len() != 0 { - return types.AssignableTo(V, T) - } - - // V and T have the same (non-zero) number of type params. Instantiate both - // with the type parameters of V. This must always succeed for V, and will - // succeed for T if and only if the type set of each type parameter of V is a - // subset of the type set of the corresponding type parameter of T, meaning - // that every instantiation of V corresponds to a valid instantiation of T. - - // Minor optimization: ensure we share a context across the two - // instantiations below. - if ctxt == nil { - ctxt = types.NewContext() - } - - var targs []types.Type - for i := 0; i < vtparams.Len(); i++ { - targs = append(targs, vtparams.At(i)) - } - - vinst, err := types.Instantiate(ctxt, V, targs, true) - if err != nil { - panic("type parameters should satisfy their own constraints") - } - - tinst, err := types.Instantiate(ctxt, T, targs, true) - if err != nil { - return false - } - - return types.AssignableTo(vinst, tinst) -} diff --git a/vendor/golang.org/x/tools/internal/typeparams/coretype.go b/vendor/golang.org/x/tools/internal/typeparams/coretype.go deleted file mode 100644 index e66e9d0f48c9..000000000000 --- a/vendor/golang.org/x/tools/internal/typeparams/coretype.go +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2022 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. - -package typeparams - -import ( - "fmt" - "go/types" - - "golang.org/x/tools/internal/aliases" -) - -// CoreType returns the core type of T or nil if T does not have a core type. -// -// See https://go.dev/ref/spec#Core_types for the definition of a core type. -func CoreType(T types.Type) types.Type { - U := T.Underlying() - if _, ok := U.(*types.Interface); !ok { - return U // for non-interface types, - } - - terms, err := _NormalTerms(U) - if len(terms) == 0 || err != nil { - // len(terms) -> empty type set of interface. - // err != nil => U is invalid, exceeds complexity bounds, or has an empty type set. - return nil // no core type. - } - - U = terms[0].Type().Underlying() - var identical int // i in [0,identical) => Identical(U, terms[i].Type().Underlying()) - for identical = 1; identical < len(terms); identical++ { - if !types.Identical(U, terms[identical].Type().Underlying()) { - break - } - } - - if identical == len(terms) { - // https://go.dev/ref/spec#Core_types - // "There is a single type U which is the underlying type of all types in the type set of T" - return U - } - ch, ok := U.(*types.Chan) - if !ok { - return nil // no core type as identical < len(terms) and U is not a channel. - } - // https://go.dev/ref/spec#Core_types - // "the type chan E if T contains only bidirectional channels, or the type chan<- E or - // <-chan E depending on the direction of the directional channels present." - for chans := identical; chans < len(terms); chans++ { - curr, ok := terms[chans].Type().Underlying().(*types.Chan) - if !ok { - return nil - } - if !types.Identical(ch.Elem(), curr.Elem()) { - return nil // channel elements are not identical. - } - if ch.Dir() == types.SendRecv { - // ch is bidirectional. We can safely always use curr's direction. - ch = curr - } else if curr.Dir() != types.SendRecv && ch.Dir() != curr.Dir() { - // ch and curr are not bidirectional and not the same direction. - return nil - } - } - return ch -} - -// _NormalTerms returns a slice of terms representing the normalized structural -// type restrictions of a type, if any. -// -// For all types other than *types.TypeParam, *types.Interface, and -// *types.Union, this is just a single term with Tilde() == false and -// Type() == typ. For *types.TypeParam, *types.Interface, and *types.Union, see -// below. -// -// Structural type restrictions of a type parameter are created via -// non-interface types embedded in its constraint interface (directly, or via a -// chain of interface embeddings). For example, in the declaration type -// T[P interface{~int; m()}] int the structural restriction of the type -// parameter P is ~int. -// -// With interface embedding and unions, the specification of structural type -// restrictions may be arbitrarily complex. For example, consider the -// following: -// -// type A interface{ ~string|~[]byte } -// -// type B interface{ int|string } -// -// type C interface { ~string|~int } -// -// type T[P interface{ A|B; C }] int -// -// In this example, the structural type restriction of P is ~string|int: A|B -// expands to ~string|~[]byte|int|string, which reduces to ~string|~[]byte|int, -// which when intersected with C (~string|~int) yields ~string|int. -// -// _NormalTerms computes these expansions and reductions, producing a -// "normalized" form of the embeddings. A structural restriction is normalized -// if it is a single union containing no interface terms, and is minimal in the -// sense that removing any term changes the set of types satisfying the -// constraint. It is left as a proof for the reader that, modulo sorting, there -// is exactly one such normalized form. -// -// Because the minimal representation always takes this form, _NormalTerms -// returns a slice of tilde terms corresponding to the terms of the union in -// the normalized structural restriction. An error is returned if the type is -// invalid, exceeds complexity bounds, or has an empty type set. In the latter -// case, _NormalTerms returns ErrEmptyTypeSet. -// -// _NormalTerms makes no guarantees about the order of terms, except that it -// is deterministic. -func _NormalTerms(typ types.Type) ([]*types.Term, error) { - switch typ := aliases.Unalias(typ).(type) { - case *types.TypeParam: - return StructuralTerms(typ) - case *types.Union: - return UnionTermSet(typ) - case *types.Interface: - return InterfaceTermSet(typ) - default: - return []*types.Term{types.NewTerm(false, typ)}, nil - } -} - -// MustDeref returns the type of the variable pointed to by t. -// It panics if t's core type is not a pointer. -// -// TODO(adonovan): ideally this would live in typesinternal, but that -// creates an import cycle. Move there when we melt this package down. -func MustDeref(t types.Type) types.Type { - if ptr, ok := CoreType(t).(*types.Pointer); ok { - return ptr.Elem() - } - panic(fmt.Sprintf("%v is not a pointer", t)) -} diff --git a/vendor/golang.org/x/tools/internal/typeparams/normalize.go b/vendor/golang.org/x/tools/internal/typeparams/normalize.go deleted file mode 100644 index 93c80fdc96ce..000000000000 --- a/vendor/golang.org/x/tools/internal/typeparams/normalize.go +++ /dev/null @@ -1,218 +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. - -package typeparams - -import ( - "errors" - "fmt" - "go/types" - "os" - "strings" -) - -//go:generate go run copytermlist.go - -const debug = false - -var ErrEmptyTypeSet = errors.New("empty type set") - -// StructuralTerms returns a slice of terms representing the normalized -// structural type restrictions of a type parameter, if any. -// -// Structural type restrictions of a type parameter are created via -// non-interface types embedded in its constraint interface (directly, or via a -// chain of interface embeddings). For example, in the declaration -// -// type T[P interface{~int; m()}] int -// -// the structural restriction of the type parameter P is ~int. -// -// With interface embedding and unions, the specification of structural type -// restrictions may be arbitrarily complex. For example, consider the -// following: -// -// type A interface{ ~string|~[]byte } -// -// type B interface{ int|string } -// -// type C interface { ~string|~int } -// -// type T[P interface{ A|B; C }] int -// -// In this example, the structural type restriction of P is ~string|int: A|B -// expands to ~string|~[]byte|int|string, which reduces to ~string|~[]byte|int, -// which when intersected with C (~string|~int) yields ~string|int. -// -// StructuralTerms computes these expansions and reductions, producing a -// "normalized" form of the embeddings. A structural restriction is normalized -// if it is a single union containing no interface terms, and is minimal in the -// sense that removing any term changes the set of types satisfying the -// constraint. It is left as a proof for the reader that, modulo sorting, there -// is exactly one such normalized form. -// -// Because the minimal representation always takes this form, StructuralTerms -// returns a slice of tilde terms corresponding to the terms of the union in -// the normalized structural restriction. An error is returned if the -// constraint interface is invalid, exceeds complexity bounds, or has an empty -// type set. In the latter case, StructuralTerms returns ErrEmptyTypeSet. -// -// StructuralTerms makes no guarantees about the order of terms, except that it -// is deterministic. -func StructuralTerms(tparam *types.TypeParam) ([]*types.Term, error) { - constraint := tparam.Constraint() - if constraint == nil { - return nil, fmt.Errorf("%s has nil constraint", tparam) - } - iface, _ := constraint.Underlying().(*types.Interface) - if iface == nil { - return nil, fmt.Errorf("constraint is %T, not *types.Interface", constraint.Underlying()) - } - return InterfaceTermSet(iface) -} - -// InterfaceTermSet computes the normalized terms for a constraint interface, -// returning an error if the term set cannot be computed or is empty. In the -// latter case, the error will be ErrEmptyTypeSet. -// -// See the documentation of StructuralTerms for more information on -// normalization. -func InterfaceTermSet(iface *types.Interface) ([]*types.Term, error) { - return computeTermSet(iface) -} - -// UnionTermSet computes the normalized terms for a union, returning an error -// if the term set cannot be computed or is empty. In the latter case, the -// error will be ErrEmptyTypeSet. -// -// See the documentation of StructuralTerms for more information on -// normalization. -func UnionTermSet(union *types.Union) ([]*types.Term, error) { - return computeTermSet(union) -} - -func computeTermSet(typ types.Type) ([]*types.Term, error) { - tset, err := computeTermSetInternal(typ, make(map[types.Type]*termSet), 0) - if err != nil { - return nil, err - } - if tset.terms.isEmpty() { - return nil, ErrEmptyTypeSet - } - if tset.terms.isAll() { - return nil, nil - } - var terms []*types.Term - for _, term := range tset.terms { - terms = append(terms, types.NewTerm(term.tilde, term.typ)) - } - return terms, nil -} - -// A termSet holds the normalized set of terms for a given type. -// -// The name termSet is intentionally distinct from 'type set': a type set is -// all types that implement a type (and includes method restrictions), whereas -// a term set just represents the structural restrictions on a type. -type termSet struct { - complete bool - terms termlist -} - -func indentf(depth int, format string, args ...interface{}) { - fmt.Fprintf(os.Stderr, strings.Repeat(".", depth)+format+"\n", args...) -} - -func computeTermSetInternal(t types.Type, seen map[types.Type]*termSet, depth int) (res *termSet, err error) { - if t == nil { - panic("nil type") - } - - if debug { - indentf(depth, "%s", t.String()) - defer func() { - if err != nil { - indentf(depth, "=> %s", err) - } else { - indentf(depth, "=> %s", res.terms.String()) - } - }() - } - - const maxTermCount = 100 - if tset, ok := seen[t]; ok { - if !tset.complete { - return nil, fmt.Errorf("cycle detected in the declaration of %s", t) - } - return tset, nil - } - - // Mark the current type as seen to avoid infinite recursion. - tset := new(termSet) - defer func() { - tset.complete = true - }() - seen[t] = tset - - switch u := t.Underlying().(type) { - case *types.Interface: - // The term set of an interface is the intersection of the term sets of its - // embedded types. - tset.terms = allTermlist - for i := 0; i < u.NumEmbeddeds(); i++ { - embedded := u.EmbeddedType(i) - if _, ok := embedded.Underlying().(*types.TypeParam); ok { - return nil, fmt.Errorf("invalid embedded type %T", embedded) - } - tset2, err := computeTermSetInternal(embedded, seen, depth+1) - if err != nil { - return nil, err - } - tset.terms = tset.terms.intersect(tset2.terms) - } - case *types.Union: - // The term set of a union is the union of term sets of its terms. - tset.terms = nil - for i := 0; i < u.Len(); i++ { - t := u.Term(i) - var terms termlist - switch t.Type().Underlying().(type) { - case *types.Interface: - tset2, err := computeTermSetInternal(t.Type(), seen, depth+1) - if err != nil { - return nil, err - } - terms = tset2.terms - case *types.TypeParam, *types.Union: - // A stand-alone type parameter or union is not permitted as union - // term. - return nil, fmt.Errorf("invalid union term %T", t) - default: - if t.Type() == types.Typ[types.Invalid] { - continue - } - terms = termlist{{t.Tilde(), t.Type()}} - } - tset.terms = tset.terms.union(terms) - if len(tset.terms) > maxTermCount { - return nil, fmt.Errorf("exceeded max term count %d", maxTermCount) - } - } - case *types.TypeParam: - panic("unreachable") - default: - // For all other types, the term set is just a single non-tilde term - // holding the type itself. - if u != types.Typ[types.Invalid] { - tset.terms = termlist{{false, t}} - } - } - return tset, nil -} - -// under is a facade for the go/types internal function of the same name. It is -// used by typeterm.go. -func under(t types.Type) types.Type { - return t.Underlying() -} diff --git a/vendor/golang.org/x/tools/internal/typeparams/termlist.go b/vendor/golang.org/x/tools/internal/typeparams/termlist.go deleted file mode 100644 index cbd12f801314..000000000000 --- a/vendor/golang.org/x/tools/internal/typeparams/termlist.go +++ /dev/null @@ -1,163 +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. - -// Code generated by copytermlist.go DO NOT EDIT. - -package typeparams - -import ( - "bytes" - "go/types" -) - -// A termlist represents the type set represented by the union -// t1 ∪ y2 ∪ ... tn of the type sets of the terms t1 to tn. -// A termlist is in normal form if all terms are disjoint. -// termlist operations don't require the operands to be in -// normal form. -type termlist []*term - -// allTermlist represents the set of all types. -// It is in normal form. -var allTermlist = termlist{new(term)} - -// String prints the termlist exactly (without normalization). -func (xl termlist) String() string { - if len(xl) == 0 { - return "∅" - } - var buf bytes.Buffer - for i, x := range xl { - if i > 0 { - buf.WriteString(" | ") - } - buf.WriteString(x.String()) - } - return buf.String() -} - -// isEmpty reports whether the termlist xl represents the empty set of types. -func (xl termlist) isEmpty() bool { - // If there's a non-nil term, the entire list is not empty. - // If the termlist is in normal form, this requires at most - // one iteration. - for _, x := range xl { - if x != nil { - return false - } - } - return true -} - -// isAll reports whether the termlist xl represents the set of all types. -func (xl termlist) isAll() bool { - // If there's a 𝓤 term, the entire list is 𝓤. - // If the termlist is in normal form, this requires at most - // one iteration. - for _, x := range xl { - if x != nil && x.typ == nil { - return true - } - } - return false -} - -// norm returns the normal form of xl. -func (xl termlist) norm() termlist { - // Quadratic algorithm, but good enough for now. - // TODO(gri) fix asymptotic performance - used := make([]bool, len(xl)) - var rl termlist - for i, xi := range xl { - if xi == nil || used[i] { - continue - } - for j := i + 1; j < len(xl); j++ { - xj := xl[j] - if xj == nil || used[j] { - continue - } - if u1, u2 := xi.union(xj); u2 == nil { - // If we encounter a 𝓤 term, the entire list is 𝓤. - // Exit early. - // (Note that this is not just an optimization; - // if we continue, we may end up with a 𝓤 term - // and other terms and the result would not be - // in normal form.) - if u1.typ == nil { - return allTermlist - } - xi = u1 - used[j] = true // xj is now unioned into xi - ignore it in future iterations - } - } - rl = append(rl, xi) - } - return rl -} - -// union returns the union xl ∪ yl. -func (xl termlist) union(yl termlist) termlist { - return append(xl, yl...).norm() -} - -// intersect returns the intersection xl ∩ yl. -func (xl termlist) intersect(yl termlist) termlist { - if xl.isEmpty() || yl.isEmpty() { - return nil - } - - // Quadratic algorithm, but good enough for now. - // TODO(gri) fix asymptotic performance - var rl termlist - for _, x := range xl { - for _, y := range yl { - if r := x.intersect(y); r != nil { - rl = append(rl, r) - } - } - } - return rl.norm() -} - -// equal reports whether xl and yl represent the same type set. -func (xl termlist) equal(yl termlist) bool { - // TODO(gri) this should be more efficient - return xl.subsetOf(yl) && yl.subsetOf(xl) -} - -// includes reports whether t ∈ xl. -func (xl termlist) includes(t types.Type) bool { - for _, x := range xl { - if x.includes(t) { - return true - } - } - return false -} - -// supersetOf reports whether y ⊆ xl. -func (xl termlist) supersetOf(y *term) bool { - for _, x := range xl { - if y.subsetOf(x) { - return true - } - } - return false -} - -// subsetOf reports whether xl ⊆ yl. -func (xl termlist) subsetOf(yl termlist) bool { - if yl.isEmpty() { - return xl.isEmpty() - } - - // each term x of xl must be a subset of yl - for _, x := range xl { - if !yl.supersetOf(x) { - return false // x is not a subset yl - } - } - return true -} diff --git a/vendor/golang.org/x/tools/internal/typeparams/typeterm.go b/vendor/golang.org/x/tools/internal/typeparams/typeterm.go deleted file mode 100644 index 7350bb702a17..000000000000 --- a/vendor/golang.org/x/tools/internal/typeparams/typeterm.go +++ /dev/null @@ -1,169 +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. - -// Code generated by copytermlist.go DO NOT EDIT. - -package typeparams - -import "go/types" - -// A term describes elementary type sets: -// -// ∅: (*term)(nil) == ∅ // set of no types (empty set) -// 𝓤: &term{} == 𝓤 // set of all types (𝓤niverse) -// T: &term{false, T} == {T} // set of type T -// ~t: &term{true, t} == {t' | under(t') == t} // set of types with underlying type t -type term struct { - tilde bool // valid if typ != nil - typ types.Type -} - -func (x *term) String() string { - switch { - case x == nil: - return "∅" - case x.typ == nil: - return "𝓤" - case x.tilde: - return "~" + x.typ.String() - default: - return x.typ.String() - } -} - -// equal reports whether x and y represent the same type set. -func (x *term) equal(y *term) bool { - // easy cases - switch { - case x == nil || y == nil: - return x == y - case x.typ == nil || y.typ == nil: - return x.typ == y.typ - } - // ∅ ⊂ x, y ⊂ 𝓤 - - return x.tilde == y.tilde && types.Identical(x.typ, y.typ) -} - -// union returns the union x ∪ y: zero, one, or two non-nil terms. -func (x *term) union(y *term) (_, _ *term) { - // easy cases - switch { - case x == nil && y == nil: - return nil, nil // ∅ ∪ ∅ == ∅ - case x == nil: - return y, nil // ∅ ∪ y == y - case y == nil: - return x, nil // x ∪ ∅ == x - case x.typ == nil: - return x, nil // 𝓤 ∪ y == 𝓤 - case y.typ == nil: - return y, nil // x ∪ 𝓤 == 𝓤 - } - // ∅ ⊂ x, y ⊂ 𝓤 - - if x.disjoint(y) { - return x, y // x ∪ y == (x, y) if x ∩ y == ∅ - } - // x.typ == y.typ - - // ~t ∪ ~t == ~t - // ~t ∪ T == ~t - // T ∪ ~t == ~t - // T ∪ T == T - if x.tilde || !y.tilde { - return x, nil - } - return y, nil -} - -// intersect returns the intersection x ∩ y. -func (x *term) intersect(y *term) *term { - // easy cases - switch { - case x == nil || y == nil: - return nil // ∅ ∩ y == ∅ and ∩ ∅ == ∅ - case x.typ == nil: - return y // 𝓤 ∩ y == y - case y.typ == nil: - return x // x ∩ 𝓤 == x - } - // ∅ ⊂ x, y ⊂ 𝓤 - - if x.disjoint(y) { - return nil // x ∩ y == ∅ if x ∩ y == ∅ - } - // x.typ == y.typ - - // ~t ∩ ~t == ~t - // ~t ∩ T == T - // T ∩ ~t == T - // T ∩ T == T - if !x.tilde || y.tilde { - return x - } - return y -} - -// includes reports whether t ∈ x. -func (x *term) includes(t types.Type) bool { - // easy cases - switch { - case x == nil: - return false // t ∈ ∅ == false - case x.typ == nil: - return true // t ∈ 𝓤 == true - } - // ∅ ⊂ x ⊂ 𝓤 - - u := t - if x.tilde { - u = under(u) - } - return types.Identical(x.typ, u) -} - -// subsetOf reports whether x ⊆ y. -func (x *term) subsetOf(y *term) bool { - // easy cases - switch { - case x == nil: - return true // ∅ ⊆ y == true - case y == nil: - return false // x ⊆ ∅ == false since x != ∅ - case y.typ == nil: - return true // x ⊆ 𝓤 == true - case x.typ == nil: - return false // 𝓤 ⊆ y == false since y != 𝓤 - } - // ∅ ⊂ x, y ⊂ 𝓤 - - if x.disjoint(y) { - return false // x ⊆ y == false if x ∩ y == ∅ - } - // x.typ == y.typ - - // ~t ⊆ ~t == true - // ~t ⊆ T == false - // T ⊆ ~t == true - // T ⊆ T == true - return !x.tilde || y.tilde -} - -// disjoint reports whether x ∩ y == ∅. -// x.typ and y.typ must not be nil. -func (x *term) disjoint(y *term) bool { - if debug && (x.typ == nil || y.typ == nil) { - panic("invalid argument(s)") - } - ux := x.typ - if y.tilde { - ux = under(ux) - } - uy := y.typ - if x.tilde { - uy = under(uy) - } - return !types.Identical(ux, uy) -} diff --git a/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go b/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go index 07484073a57d..834e05381cea 100644 --- a/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go +++ b/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go @@ -167,7 +167,7 @@ const ( UntypedNilUse // WrongAssignCount occurs when the number of values on the right-hand side - // of an assignment or or initialization expression does not match the number + // of an assignment or initialization expression does not match the number // of variables on the left-hand side. // // Example: @@ -1449,10 +1449,10 @@ const ( NotAGenericType // WrongTypeArgCount occurs when a type or function is instantiated with an - // incorrent number of type arguments, including when a generic type or + // incorrect number of type arguments, including when a generic type or // function is used without instantiation. // - // Errors inolving failed type inference are assigned other error codes. + // Errors involving failed type inference are assigned other error codes. // // Example: // type T[p any] int diff --git a/vendor/golang.org/x/tools/internal/typesinternal/toonew.go b/vendor/golang.org/x/tools/internal/typesinternal/toonew.go new file mode 100644 index 000000000000..cc86487eaa0a --- /dev/null +++ b/vendor/golang.org/x/tools/internal/typesinternal/toonew.go @@ -0,0 +1,89 @@ +// Copyright 2024 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. + +package typesinternal + +import ( + "go/types" + + "golang.org/x/tools/internal/stdlib" + "golang.org/x/tools/internal/versions" +) + +// TooNewStdSymbols computes the set of package-level symbols +// exported by pkg that are not available at the specified version. +// The result maps each symbol to its minimum version. +// +// The pkg is allowed to contain type errors. +func TooNewStdSymbols(pkg *types.Package, version string) map[types.Object]string { + disallowed := make(map[types.Object]string) + + // Pass 1: package-level symbols. + symbols := stdlib.PackageSymbols[pkg.Path()] + for _, sym := range symbols { + symver := sym.Version.String() + if versions.Before(version, symver) { + switch sym.Kind { + case stdlib.Func, stdlib.Var, stdlib.Const, stdlib.Type: + disallowed[pkg.Scope().Lookup(sym.Name)] = symver + } + } + } + + // Pass 2: fields and methods. + // + // We allow fields and methods if their associated type is + // disallowed, as otherwise we would report false positives + // for compatibility shims. Consider: + // + // //go:build go1.22 + // type T struct { F std.Real } // correct new API + // + // //go:build !go1.22 + // type T struct { F fake } // shim + // type fake struct { ... } + // func (fake) M () {} + // + // These alternative declarations of T use either the std.Real + // type, introduced in go1.22, or a fake type, for the field + // F. (The fakery could be arbitrarily deep, involving more + // nested fields and methods than are shown here.) Clients + // that use the compatibility shim T will compile with any + // version of go, whether older or newer than go1.22, but only + // the newer version will use the std.Real implementation. + // + // Now consider a reference to method M in new(T).F.M() in a + // module that requires a minimum of go1.21. The analysis may + // occur using a version of Go higher than 1.21, selecting the + // first version of T, so the method M is Real.M. This would + // spuriously cause the analyzer to report a reference to a + // too-new symbol even though this expression compiles just + // fine (with the fake implementation) using go1.21. + for _, sym := range symbols { + symVersion := sym.Version.String() + if !versions.Before(version, symVersion) { + continue // allowed + } + + var obj types.Object + switch sym.Kind { + case stdlib.Field: + typename, name := sym.SplitField() + if t := pkg.Scope().Lookup(typename); t != nil && disallowed[t] == "" { + obj, _, _ = types.LookupFieldOrMethod(t.Type(), false, pkg, name) + } + + case stdlib.Method: + ptr, recvname, name := sym.SplitMethod() + if t := pkg.Scope().Lookup(recvname); t != nil && disallowed[t] == "" { + obj, _, _ = types.LookupFieldOrMethod(t.Type(), ptr, pkg, name) + } + } + if obj != nil { + disallowed[obj] = symVersion + } + } + + return disallowed +} diff --git a/vendor/golang.org/x/tools/internal/typesinternal/types.go b/vendor/golang.org/x/tools/internal/typesinternal/types.go index ce7d4351b220..7c77c2fbc038 100644 --- a/vendor/golang.org/x/tools/internal/typesinternal/types.go +++ b/vendor/golang.org/x/tools/internal/typesinternal/types.go @@ -48,5 +48,3 @@ func ReadGo116ErrorData(err types.Error) (code ErrorCode, start, end token.Pos, } return ErrorCode(data[0]), token.Pos(data[1]), token.Pos(data[2]), true } - -var SetGoVersion = func(conf *types.Config, version string) bool { return false } diff --git a/vendor/golang.org/x/tools/internal/typesinternal/types_118.go b/vendor/golang.org/x/tools/internal/typesinternal/types_118.go deleted file mode 100644 index ef7ea290c0bd..000000000000 --- a/vendor/golang.org/x/tools/internal/typesinternal/types_118.go +++ /dev/null @@ -1,16 +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. - -package typesinternal - -import ( - "go/types" -) - -func init() { - SetGoVersion = func(conf *types.Config, version string) bool { - conf.GoVersion = version - return true - } -} diff --git a/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go b/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go deleted file mode 100644 index 5f727750adc7..000000000000 --- a/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go +++ /dev/null @@ -1,527 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto - -package urlfetch - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type URLFetchServiceError_ErrorCode int32 - -const ( - URLFetchServiceError_OK URLFetchServiceError_ErrorCode = 0 - URLFetchServiceError_INVALID_URL URLFetchServiceError_ErrorCode = 1 - URLFetchServiceError_FETCH_ERROR URLFetchServiceError_ErrorCode = 2 - URLFetchServiceError_UNSPECIFIED_ERROR URLFetchServiceError_ErrorCode = 3 - URLFetchServiceError_RESPONSE_TOO_LARGE URLFetchServiceError_ErrorCode = 4 - URLFetchServiceError_DEADLINE_EXCEEDED URLFetchServiceError_ErrorCode = 5 - URLFetchServiceError_SSL_CERTIFICATE_ERROR URLFetchServiceError_ErrorCode = 6 - URLFetchServiceError_DNS_ERROR URLFetchServiceError_ErrorCode = 7 - URLFetchServiceError_CLOSED URLFetchServiceError_ErrorCode = 8 - URLFetchServiceError_INTERNAL_TRANSIENT_ERROR URLFetchServiceError_ErrorCode = 9 - URLFetchServiceError_TOO_MANY_REDIRECTS URLFetchServiceError_ErrorCode = 10 - URLFetchServiceError_MALFORMED_REPLY URLFetchServiceError_ErrorCode = 11 - URLFetchServiceError_CONNECTION_ERROR URLFetchServiceError_ErrorCode = 12 -) - -var URLFetchServiceError_ErrorCode_name = map[int32]string{ - 0: "OK", - 1: "INVALID_URL", - 2: "FETCH_ERROR", - 3: "UNSPECIFIED_ERROR", - 4: "RESPONSE_TOO_LARGE", - 5: "DEADLINE_EXCEEDED", - 6: "SSL_CERTIFICATE_ERROR", - 7: "DNS_ERROR", - 8: "CLOSED", - 9: "INTERNAL_TRANSIENT_ERROR", - 10: "TOO_MANY_REDIRECTS", - 11: "MALFORMED_REPLY", - 12: "CONNECTION_ERROR", -} -var URLFetchServiceError_ErrorCode_value = map[string]int32{ - "OK": 0, - "INVALID_URL": 1, - "FETCH_ERROR": 2, - "UNSPECIFIED_ERROR": 3, - "RESPONSE_TOO_LARGE": 4, - "DEADLINE_EXCEEDED": 5, - "SSL_CERTIFICATE_ERROR": 6, - "DNS_ERROR": 7, - "CLOSED": 8, - "INTERNAL_TRANSIENT_ERROR": 9, - "TOO_MANY_REDIRECTS": 10, - "MALFORMED_REPLY": 11, - "CONNECTION_ERROR": 12, -} - -func (x URLFetchServiceError_ErrorCode) Enum() *URLFetchServiceError_ErrorCode { - p := new(URLFetchServiceError_ErrorCode) - *p = x - return p -} -func (x URLFetchServiceError_ErrorCode) String() string { - return proto.EnumName(URLFetchServiceError_ErrorCode_name, int32(x)) -} -func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(URLFetchServiceError_ErrorCode_value, data, "URLFetchServiceError_ErrorCode") - if err != nil { - return err - } - *x = URLFetchServiceError_ErrorCode(value) - return nil -} -func (URLFetchServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{0, 0} -} - -type URLFetchRequest_RequestMethod int32 - -const ( - URLFetchRequest_GET URLFetchRequest_RequestMethod = 1 - URLFetchRequest_POST URLFetchRequest_RequestMethod = 2 - URLFetchRequest_HEAD URLFetchRequest_RequestMethod = 3 - URLFetchRequest_PUT URLFetchRequest_RequestMethod = 4 - URLFetchRequest_DELETE URLFetchRequest_RequestMethod = 5 - URLFetchRequest_PATCH URLFetchRequest_RequestMethod = 6 -) - -var URLFetchRequest_RequestMethod_name = map[int32]string{ - 1: "GET", - 2: "POST", - 3: "HEAD", - 4: "PUT", - 5: "DELETE", - 6: "PATCH", -} -var URLFetchRequest_RequestMethod_value = map[string]int32{ - "GET": 1, - "POST": 2, - "HEAD": 3, - "PUT": 4, - "DELETE": 5, - "PATCH": 6, -} - -func (x URLFetchRequest_RequestMethod) Enum() *URLFetchRequest_RequestMethod { - p := new(URLFetchRequest_RequestMethod) - *p = x - return p -} -func (x URLFetchRequest_RequestMethod) String() string { - return proto.EnumName(URLFetchRequest_RequestMethod_name, int32(x)) -} -func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(URLFetchRequest_RequestMethod_value, data, "URLFetchRequest_RequestMethod") - if err != nil { - return err - } - *x = URLFetchRequest_RequestMethod(value) - return nil -} -func (URLFetchRequest_RequestMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1, 0} -} - -type URLFetchServiceError struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *URLFetchServiceError) Reset() { *m = URLFetchServiceError{} } -func (m *URLFetchServiceError) String() string { return proto.CompactTextString(m) } -func (*URLFetchServiceError) ProtoMessage() {} -func (*URLFetchServiceError) Descriptor() ([]byte, []int) { - return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{0} -} -func (m *URLFetchServiceError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_URLFetchServiceError.Unmarshal(m, b) -} -func (m *URLFetchServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_URLFetchServiceError.Marshal(b, m, deterministic) -} -func (dst *URLFetchServiceError) XXX_Merge(src proto.Message) { - xxx_messageInfo_URLFetchServiceError.Merge(dst, src) -} -func (m *URLFetchServiceError) XXX_Size() int { - return xxx_messageInfo_URLFetchServiceError.Size(m) -} -func (m *URLFetchServiceError) XXX_DiscardUnknown() { - xxx_messageInfo_URLFetchServiceError.DiscardUnknown(m) -} - -var xxx_messageInfo_URLFetchServiceError proto.InternalMessageInfo - -type URLFetchRequest struct { - Method *URLFetchRequest_RequestMethod `protobuf:"varint,1,req,name=Method,enum=appengine.URLFetchRequest_RequestMethod" json:"Method,omitempty"` - Url *string `protobuf:"bytes,2,req,name=Url" json:"Url,omitempty"` - Header []*URLFetchRequest_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"` - Payload []byte `protobuf:"bytes,6,opt,name=Payload" json:"Payload,omitempty"` - FollowRedirects *bool `protobuf:"varint,7,opt,name=FollowRedirects,def=1" json:"FollowRedirects,omitempty"` - Deadline *float64 `protobuf:"fixed64,8,opt,name=Deadline" json:"Deadline,omitempty"` - MustValidateServerCertificate *bool `protobuf:"varint,9,opt,name=MustValidateServerCertificate,def=1" json:"MustValidateServerCertificate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *URLFetchRequest) Reset() { *m = URLFetchRequest{} } -func (m *URLFetchRequest) String() string { return proto.CompactTextString(m) } -func (*URLFetchRequest) ProtoMessage() {} -func (*URLFetchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1} -} -func (m *URLFetchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_URLFetchRequest.Unmarshal(m, b) -} -func (m *URLFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_URLFetchRequest.Marshal(b, m, deterministic) -} -func (dst *URLFetchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_URLFetchRequest.Merge(dst, src) -} -func (m *URLFetchRequest) XXX_Size() int { - return xxx_messageInfo_URLFetchRequest.Size(m) -} -func (m *URLFetchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_URLFetchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_URLFetchRequest proto.InternalMessageInfo - -const Default_URLFetchRequest_FollowRedirects bool = true -const Default_URLFetchRequest_MustValidateServerCertificate bool = true - -func (m *URLFetchRequest) GetMethod() URLFetchRequest_RequestMethod { - if m != nil && m.Method != nil { - return *m.Method - } - return URLFetchRequest_GET -} - -func (m *URLFetchRequest) GetUrl() string { - if m != nil && m.Url != nil { - return *m.Url - } - return "" -} - -func (m *URLFetchRequest) GetHeader() []*URLFetchRequest_Header { - if m != nil { - return m.Header - } - return nil -} - -func (m *URLFetchRequest) GetPayload() []byte { - if m != nil { - return m.Payload - } - return nil -} - -func (m *URLFetchRequest) GetFollowRedirects() bool { - if m != nil && m.FollowRedirects != nil { - return *m.FollowRedirects - } - return Default_URLFetchRequest_FollowRedirects -} - -func (m *URLFetchRequest) GetDeadline() float64 { - if m != nil && m.Deadline != nil { - return *m.Deadline - } - return 0 -} - -func (m *URLFetchRequest) GetMustValidateServerCertificate() bool { - if m != nil && m.MustValidateServerCertificate != nil { - return *m.MustValidateServerCertificate - } - return Default_URLFetchRequest_MustValidateServerCertificate -} - -type URLFetchRequest_Header struct { - Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` - Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *URLFetchRequest_Header) Reset() { *m = URLFetchRequest_Header{} } -func (m *URLFetchRequest_Header) String() string { return proto.CompactTextString(m) } -func (*URLFetchRequest_Header) ProtoMessage() {} -func (*URLFetchRequest_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1, 0} -} -func (m *URLFetchRequest_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_URLFetchRequest_Header.Unmarshal(m, b) -} -func (m *URLFetchRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_URLFetchRequest_Header.Marshal(b, m, deterministic) -} -func (dst *URLFetchRequest_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_URLFetchRequest_Header.Merge(dst, src) -} -func (m *URLFetchRequest_Header) XXX_Size() int { - return xxx_messageInfo_URLFetchRequest_Header.Size(m) -} -func (m *URLFetchRequest_Header) XXX_DiscardUnknown() { - xxx_messageInfo_URLFetchRequest_Header.DiscardUnknown(m) -} - -var xxx_messageInfo_URLFetchRequest_Header proto.InternalMessageInfo - -func (m *URLFetchRequest_Header) GetKey() string { - if m != nil && m.Key != nil { - return *m.Key - } - return "" -} - -func (m *URLFetchRequest_Header) GetValue() string { - if m != nil && m.Value != nil { - return *m.Value - } - return "" -} - -type URLFetchResponse struct { - Content []byte `protobuf:"bytes,1,opt,name=Content" json:"Content,omitempty"` - StatusCode *int32 `protobuf:"varint,2,req,name=StatusCode" json:"StatusCode,omitempty"` - Header []*URLFetchResponse_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"` - ContentWasTruncated *bool `protobuf:"varint,6,opt,name=ContentWasTruncated,def=0" json:"ContentWasTruncated,omitempty"` - ExternalBytesSent *int64 `protobuf:"varint,7,opt,name=ExternalBytesSent" json:"ExternalBytesSent,omitempty"` - ExternalBytesReceived *int64 `protobuf:"varint,8,opt,name=ExternalBytesReceived" json:"ExternalBytesReceived,omitempty"` - FinalUrl *string `protobuf:"bytes,9,opt,name=FinalUrl" json:"FinalUrl,omitempty"` - ApiCpuMilliseconds *int64 `protobuf:"varint,10,opt,name=ApiCpuMilliseconds,def=0" json:"ApiCpuMilliseconds,omitempty"` - ApiBytesSent *int64 `protobuf:"varint,11,opt,name=ApiBytesSent,def=0" json:"ApiBytesSent,omitempty"` - ApiBytesReceived *int64 `protobuf:"varint,12,opt,name=ApiBytesReceived,def=0" json:"ApiBytesReceived,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *URLFetchResponse) Reset() { *m = URLFetchResponse{} } -func (m *URLFetchResponse) String() string { return proto.CompactTextString(m) } -func (*URLFetchResponse) ProtoMessage() {} -func (*URLFetchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{2} -} -func (m *URLFetchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_URLFetchResponse.Unmarshal(m, b) -} -func (m *URLFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_URLFetchResponse.Marshal(b, m, deterministic) -} -func (dst *URLFetchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_URLFetchResponse.Merge(dst, src) -} -func (m *URLFetchResponse) XXX_Size() int { - return xxx_messageInfo_URLFetchResponse.Size(m) -} -func (m *URLFetchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_URLFetchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_URLFetchResponse proto.InternalMessageInfo - -const Default_URLFetchResponse_ContentWasTruncated bool = false -const Default_URLFetchResponse_ApiCpuMilliseconds int64 = 0 -const Default_URLFetchResponse_ApiBytesSent int64 = 0 -const Default_URLFetchResponse_ApiBytesReceived int64 = 0 - -func (m *URLFetchResponse) GetContent() []byte { - if m != nil { - return m.Content - } - return nil -} - -func (m *URLFetchResponse) GetStatusCode() int32 { - if m != nil && m.StatusCode != nil { - return *m.StatusCode - } - return 0 -} - -func (m *URLFetchResponse) GetHeader() []*URLFetchResponse_Header { - if m != nil { - return m.Header - } - return nil -} - -func (m *URLFetchResponse) GetContentWasTruncated() bool { - if m != nil && m.ContentWasTruncated != nil { - return *m.ContentWasTruncated - } - return Default_URLFetchResponse_ContentWasTruncated -} - -func (m *URLFetchResponse) GetExternalBytesSent() int64 { - if m != nil && m.ExternalBytesSent != nil { - return *m.ExternalBytesSent - } - return 0 -} - -func (m *URLFetchResponse) GetExternalBytesReceived() int64 { - if m != nil && m.ExternalBytesReceived != nil { - return *m.ExternalBytesReceived - } - return 0 -} - -func (m *URLFetchResponse) GetFinalUrl() string { - if m != nil && m.FinalUrl != nil { - return *m.FinalUrl - } - return "" -} - -func (m *URLFetchResponse) GetApiCpuMilliseconds() int64 { - if m != nil && m.ApiCpuMilliseconds != nil { - return *m.ApiCpuMilliseconds - } - return Default_URLFetchResponse_ApiCpuMilliseconds -} - -func (m *URLFetchResponse) GetApiBytesSent() int64 { - if m != nil && m.ApiBytesSent != nil { - return *m.ApiBytesSent - } - return Default_URLFetchResponse_ApiBytesSent -} - -func (m *URLFetchResponse) GetApiBytesReceived() int64 { - if m != nil && m.ApiBytesReceived != nil { - return *m.ApiBytesReceived - } - return Default_URLFetchResponse_ApiBytesReceived -} - -type URLFetchResponse_Header struct { - Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` - Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *URLFetchResponse_Header) Reset() { *m = URLFetchResponse_Header{} } -func (m *URLFetchResponse_Header) String() string { return proto.CompactTextString(m) } -func (*URLFetchResponse_Header) ProtoMessage() {} -func (*URLFetchResponse_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{2, 0} -} -func (m *URLFetchResponse_Header) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_URLFetchResponse_Header.Unmarshal(m, b) -} -func (m *URLFetchResponse_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_URLFetchResponse_Header.Marshal(b, m, deterministic) -} -func (dst *URLFetchResponse_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_URLFetchResponse_Header.Merge(dst, src) -} -func (m *URLFetchResponse_Header) XXX_Size() int { - return xxx_messageInfo_URLFetchResponse_Header.Size(m) -} -func (m *URLFetchResponse_Header) XXX_DiscardUnknown() { - xxx_messageInfo_URLFetchResponse_Header.DiscardUnknown(m) -} - -var xxx_messageInfo_URLFetchResponse_Header proto.InternalMessageInfo - -func (m *URLFetchResponse_Header) GetKey() string { - if m != nil && m.Key != nil { - return *m.Key - } - return "" -} - -func (m *URLFetchResponse_Header) GetValue() string { - if m != nil && m.Value != nil { - return *m.Value - } - return "" -} - -func init() { - proto.RegisterType((*URLFetchServiceError)(nil), "appengine.URLFetchServiceError") - proto.RegisterType((*URLFetchRequest)(nil), "appengine.URLFetchRequest") - proto.RegisterType((*URLFetchRequest_Header)(nil), "appengine.URLFetchRequest.Header") - proto.RegisterType((*URLFetchResponse)(nil), "appengine.URLFetchResponse") - proto.RegisterType((*URLFetchResponse_Header)(nil), "appengine.URLFetchResponse.Header") -} - -func init() { - proto.RegisterFile("google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto", fileDescriptor_urlfetch_service_b245a7065f33bced) -} - -var fileDescriptor_urlfetch_service_b245a7065f33bced = []byte{ - // 770 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xdd, 0x6e, 0xe3, 0x54, - 0x10, 0xc6, 0x76, 0x7e, 0xa7, 0x5d, 0x7a, 0x76, 0xb6, 0x45, 0x66, 0xb5, 0xa0, 0x10, 0x09, 0x29, - 0x17, 0x90, 0x2e, 0x2b, 0x24, 0x44, 0xaf, 0x70, 0xed, 0x93, 0xad, 0xa9, 0x63, 0x47, 0xc7, 0x4e, - 0x61, 0xb9, 0xb1, 0xac, 0x78, 0x9a, 0x5a, 0xb2, 0xec, 0x60, 0x9f, 0x2c, 0xf4, 0x35, 0x78, 0x0d, - 0xde, 0x87, 0xa7, 0xe1, 0x02, 0x9d, 0xc4, 0xc9, 0x6e, 0xbb, 0xd1, 0x4a, 0x5c, 0x65, 0xe6, 0x9b, - 0xef, 0xcc, 0x99, 0x7c, 0xdf, 0xf8, 0x80, 0xb3, 0x2c, 0xcb, 0x65, 0x4e, 0xe3, 0x65, 0x99, 0x27, - 0xc5, 0x72, 0x5c, 0x56, 0xcb, 0xf3, 0x64, 0xb5, 0xa2, 0x62, 0x99, 0x15, 0x74, 0x9e, 0x15, 0x92, - 0xaa, 0x22, 0xc9, 0xcf, 0xd7, 0x55, 0x7e, 0x4b, 0x72, 0x71, 0xb7, 0x0f, 0xe2, 0x9a, 0xaa, 0xb7, - 0xd9, 0x82, 0xc6, 0xab, 0xaa, 0x94, 0x25, 0xf6, 0xf7, 0x67, 0x86, 0x7f, 0xeb, 0x70, 0x3a, 0x17, - 0xde, 0x44, 0xb1, 0xc2, 0x2d, 0x89, 0x57, 0x55, 0x59, 0x0d, 0xff, 0xd2, 0xa1, 0xbf, 0x89, 0xec, - 0x32, 0x25, 0xec, 0x80, 0x1e, 0x5c, 0xb3, 0x4f, 0xf0, 0x04, 0x8e, 0x5c, 0xff, 0xc6, 0xf2, 0x5c, - 0x27, 0x9e, 0x0b, 0x8f, 0x69, 0x0a, 0x98, 0xf0, 0xc8, 0xbe, 0x8a, 0xb9, 0x10, 0x81, 0x60, 0x3a, - 0x9e, 0xc1, 0xd3, 0xb9, 0x1f, 0xce, 0xb8, 0xed, 0x4e, 0x5c, 0xee, 0x34, 0xb0, 0x81, 0x9f, 0x01, - 0x0a, 0x1e, 0xce, 0x02, 0x3f, 0xe4, 0x71, 0x14, 0x04, 0xb1, 0x67, 0x89, 0xd7, 0x9c, 0xb5, 0x14, - 0xdd, 0xe1, 0x96, 0xe3, 0xb9, 0x3e, 0x8f, 0xf9, 0xaf, 0x36, 0xe7, 0x0e, 0x77, 0x58, 0x1b, 0x3f, - 0x87, 0xb3, 0x30, 0xf4, 0x62, 0x9b, 0x8b, 0xc8, 0x9d, 0xb8, 0xb6, 0x15, 0xf1, 0xa6, 0x53, 0x07, - 0x9f, 0x40, 0xdf, 0xf1, 0xc3, 0x26, 0xed, 0x22, 0x40, 0xc7, 0xf6, 0x82, 0x90, 0x3b, 0xac, 0x87, - 0x2f, 0xc0, 0x74, 0xfd, 0x88, 0x0b, 0xdf, 0xf2, 0xe2, 0x48, 0x58, 0x7e, 0xe8, 0x72, 0x3f, 0x6a, - 0x98, 0x7d, 0x35, 0x82, 0xba, 0x79, 0x6a, 0xf9, 0x6f, 0x62, 0xc1, 0x1d, 0x57, 0x70, 0x3b, 0x0a, - 0x19, 0xe0, 0x33, 0x38, 0x99, 0x5a, 0xde, 0x24, 0x10, 0x53, 0xee, 0xc4, 0x82, 0xcf, 0xbc, 0x37, - 0xec, 0x08, 0x4f, 0x81, 0xd9, 0x81, 0xef, 0x73, 0x3b, 0x72, 0x03, 0xbf, 0x69, 0x71, 0x3c, 0xfc, - 0xc7, 0x80, 0x93, 0x9d, 0x5a, 0x82, 0x7e, 0x5f, 0x53, 0x2d, 0xf1, 0x27, 0xe8, 0x4c, 0x49, 0xde, - 0x95, 0xa9, 0xa9, 0x0d, 0xf4, 0xd1, 0xa7, 0xaf, 0x46, 0xe3, 0xbd, 0xba, 0xe3, 0x47, 0xdc, 0x71, - 0xf3, 0xbb, 0xe5, 0x8b, 0xe6, 0x1c, 0x32, 0x30, 0xe6, 0x55, 0x6e, 0xea, 0x03, 0x7d, 0xd4, 0x17, - 0x2a, 0xc4, 0x1f, 0xa1, 0x73, 0x47, 0x49, 0x4a, 0x95, 0x69, 0x0c, 0x8c, 0x11, 0xbc, 0xfa, 0xea, - 0x23, 0x3d, 0xaf, 0x36, 0x44, 0xd1, 0x1c, 0xc0, 0x17, 0xd0, 0x9d, 0x25, 0xf7, 0x79, 0x99, 0xa4, - 0x66, 0x67, 0xa0, 0x8d, 0x8e, 0x2f, 0xf5, 0x9e, 0x26, 0x76, 0x10, 0x8e, 0xe1, 0x64, 0x52, 0xe6, - 0x79, 0xf9, 0x87, 0xa0, 0x34, 0xab, 0x68, 0x21, 0x6b, 0xb3, 0x3b, 0xd0, 0x46, 0xbd, 0x8b, 0x96, - 0xac, 0xd6, 0x24, 0x1e, 0x17, 0xf1, 0x39, 0xf4, 0x1c, 0x4a, 0xd2, 0x3c, 0x2b, 0xc8, 0xec, 0x0d, - 0xb4, 0x91, 0x26, 0xf6, 0x39, 0xfe, 0x0c, 0x5f, 0x4c, 0xd7, 0xb5, 0xbc, 0x49, 0xf2, 0x2c, 0x4d, - 0x24, 0xa9, 0xed, 0xa1, 0xca, 0xa6, 0x4a, 0x66, 0xb7, 0xd9, 0x22, 0x91, 0x64, 0xf6, 0xdf, 0xeb, - 0xfc, 0x71, 0xea, 0xf3, 0x97, 0xd0, 0xd9, 0xfe, 0x0f, 0x25, 0xc6, 0x35, 0xdd, 0x9b, 0xad, 0xad, - 0x18, 0xd7, 0x74, 0x8f, 0xa7, 0xd0, 0xbe, 0x49, 0xf2, 0x35, 0x99, 0xed, 0x0d, 0xb6, 0x4d, 0x86, - 0x1e, 0x3c, 0x79, 0xa0, 0x26, 0x76, 0xc1, 0x78, 0xcd, 0x23, 0xa6, 0x61, 0x0f, 0x5a, 0xb3, 0x20, - 0x8c, 0x98, 0xae, 0xa2, 0x2b, 0x6e, 0x39, 0xcc, 0x50, 0xc5, 0xd9, 0x3c, 0x62, 0x2d, 0xb5, 0x2e, - 0x0e, 0xf7, 0x78, 0xc4, 0x59, 0x1b, 0xfb, 0xd0, 0x9e, 0x59, 0x91, 0x7d, 0xc5, 0x3a, 0xc3, 0x7f, - 0x0d, 0x60, 0xef, 0x84, 0xad, 0x57, 0x65, 0x51, 0x13, 0x9a, 0xd0, 0xb5, 0xcb, 0x42, 0x52, 0x21, - 0x4d, 0x4d, 0x49, 0x29, 0x76, 0x29, 0x7e, 0x09, 0x10, 0xca, 0x44, 0xae, 0x6b, 0xf5, 0x71, 0x6c, - 0x8c, 0x6b, 0x8b, 0xf7, 0x10, 0xbc, 0x78, 0xe4, 0xdf, 0xf0, 0xa0, 0x7f, 0xdb, 0x6b, 0x1e, 0x1b, - 0xf8, 0x03, 0x3c, 0x6b, 0xae, 0xf9, 0x25, 0xa9, 0xa3, 0x6a, 0x5d, 0x28, 0x81, 0xb6, 0x66, 0xf6, - 0x2e, 0xda, 0xb7, 0x49, 0x5e, 0x93, 0x38, 0xc4, 0xc0, 0x6f, 0xe0, 0x29, 0xff, 0x73, 0xfb, 0x02, - 0x5c, 0xde, 0x4b, 0xaa, 0x43, 0x35, 0xb8, 0x72, 0xd7, 0x10, 0x1f, 0x16, 0xf0, 0x7b, 0x38, 0x7b, - 0x00, 0x0a, 0x5a, 0x50, 0xf6, 0x96, 0xd2, 0x8d, 0xcd, 0x86, 0x38, 0x5c, 0x54, 0xfb, 0x30, 0xc9, - 0x8a, 0x24, 0x57, 0xfb, 0xaa, 0xec, 0xed, 0x8b, 0x7d, 0x8e, 0xdf, 0x01, 0x5a, 0xab, 0xcc, 0x5e, - 0xad, 0xa7, 0x59, 0x9e, 0x67, 0x35, 0x2d, 0xca, 0x22, 0xad, 0x4d, 0x50, 0xed, 0x2e, 0xb4, 0x97, - 0xe2, 0x40, 0x11, 0xbf, 0x86, 0x63, 0x6b, 0x95, 0xbd, 0x9b, 0xf6, 0x68, 0x47, 0x7e, 0x00, 0xe3, - 0xb7, 0xc0, 0x76, 0xf9, 0x7e, 0xcc, 0xe3, 0x1d, 0xf5, 0x83, 0xd2, 0xff, 0x5f, 0xa6, 0x4b, 0xf8, - 0xad, 0xb7, 0x7b, 0x2a, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x9f, 0x6d, 0x24, 0x63, 0x05, - 0x00, 0x00, -} diff --git a/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto b/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto deleted file mode 100644 index f695edf6a907..000000000000 --- a/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto +++ /dev/null @@ -1,64 +0,0 @@ -syntax = "proto2"; -option go_package = "urlfetch"; - -package appengine; - -message URLFetchServiceError { - enum ErrorCode { - OK = 0; - INVALID_URL = 1; - FETCH_ERROR = 2; - UNSPECIFIED_ERROR = 3; - RESPONSE_TOO_LARGE = 4; - DEADLINE_EXCEEDED = 5; - SSL_CERTIFICATE_ERROR = 6; - DNS_ERROR = 7; - CLOSED = 8; - INTERNAL_TRANSIENT_ERROR = 9; - TOO_MANY_REDIRECTS = 10; - MALFORMED_REPLY = 11; - CONNECTION_ERROR = 12; - } -} - -message URLFetchRequest { - enum RequestMethod { - GET = 1; - POST = 2; - HEAD = 3; - PUT = 4; - DELETE = 5; - PATCH = 6; - } - required RequestMethod Method = 1; - required string Url = 2; - repeated group Header = 3 { - required string Key = 4; - required string Value = 5; - } - optional bytes Payload = 6 [ctype=CORD]; - - optional bool FollowRedirects = 7 [default=true]; - - optional double Deadline = 8; - - optional bool MustValidateServerCertificate = 9 [default=true]; -} - -message URLFetchResponse { - optional bytes Content = 1; - required int32 StatusCode = 2; - repeated group Header = 3 { - required string Key = 4; - required string Value = 5; - } - optional bool ContentWasTruncated = 6 [default=false]; - optional int64 ExternalBytesSent = 7; - optional int64 ExternalBytesReceived = 8; - - optional string FinalUrl = 9; - - optional int64 ApiCpuMilliseconds = 10 [default=0]; - optional int64 ApiBytesSent = 11 [default=0]; - optional int64 ApiBytesReceived = 12 [default=0]; -} diff --git a/vendor/google.golang.org/appengine/urlfetch/urlfetch.go b/vendor/google.golang.org/appengine/urlfetch/urlfetch.go deleted file mode 100644 index 6c0d72418d89..000000000000 --- a/vendor/google.golang.org/appengine/urlfetch/urlfetch.go +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// Package urlfetch provides an http.RoundTripper implementation -// for fetching URLs via App Engine's urlfetch service. -package urlfetch // import "google.golang.org/appengine/urlfetch" - -import ( - "context" - "errors" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "strconv" - "strings" - "time" - - "github.com/golang/protobuf/proto" - - "google.golang.org/appengine/internal" - pb "google.golang.org/appengine/internal/urlfetch" -) - -// Transport is an implementation of http.RoundTripper for -// App Engine. Users should generally create an http.Client using -// this transport and use the Client rather than using this transport -// directly. -type Transport struct { - Context context.Context - - // Controls whether the application checks the validity of SSL certificates - // over HTTPS connections. A value of false (the default) instructs the - // application to send a request to the server only if the certificate is - // valid and signed by a trusted certificate authority (CA), and also - // includes a hostname that matches the certificate. A value of true - // instructs the application to perform no certificate validation. - AllowInvalidServerCertificate bool -} - -// Verify statically that *Transport implements http.RoundTripper. -var _ http.RoundTripper = (*Transport)(nil) - -// Client returns an *http.Client using a default urlfetch Transport. This -// client will check the validity of SSL certificates. -// -// Any deadline of the provided context will be used for requests through this client. -// If the client does not have a deadline, then an App Engine default of 60 second is used. -func Client(ctx context.Context) *http.Client { - return &http.Client{ - Transport: &Transport{ - Context: ctx, - }, - } -} - -type bodyReader struct { - content []byte - truncated bool - closed bool -} - -// ErrTruncatedBody is the error returned after the final Read() from a -// response's Body if the body has been truncated by App Engine's proxy. -var ErrTruncatedBody = errors.New("urlfetch: truncated body") - -func statusCodeToText(code int) string { - if t := http.StatusText(code); t != "" { - return t - } - return strconv.Itoa(code) -} - -func (br *bodyReader) Read(p []byte) (n int, err error) { - if br.closed { - if br.truncated { - return 0, ErrTruncatedBody - } - return 0, io.EOF - } - n = copy(p, br.content) - if n > 0 { - br.content = br.content[n:] - return - } - if br.truncated { - br.closed = true - return 0, ErrTruncatedBody - } - return 0, io.EOF -} - -func (br *bodyReader) Close() error { - br.closed = true - br.content = nil - return nil -} - -// A map of the URL Fetch-accepted methods that take a request body. -var methodAcceptsRequestBody = map[string]bool{ - "POST": true, - "PUT": true, - "PATCH": true, -} - -// urlString returns a valid string given a URL. This function is necessary because -// the String method of URL doesn't correctly handle URLs with non-empty Opaque values. -// See http://code.google.com/p/go/issues/detail?id=4860. -func urlString(u *url.URL) string { - if u.Opaque == "" || strings.HasPrefix(u.Opaque, "//") { - return u.String() - } - aux := *u - aux.Opaque = "//" + aux.Host + aux.Opaque - return aux.String() -} - -// RoundTrip issues a single HTTP request and returns its response. Per the -// http.RoundTripper interface, RoundTrip only returns an error if there -// was an unsupported request or the URL Fetch proxy fails. -// Note that HTTP response codes such as 5xx, 403, 404, etc are not -// errors as far as the transport is concerned and will be returned -// with err set to nil. -func (t *Transport) RoundTrip(req *http.Request) (res *http.Response, err error) { - methNum, ok := pb.URLFetchRequest_RequestMethod_value[req.Method] - if !ok { - return nil, fmt.Errorf("urlfetch: unsupported HTTP method %q", req.Method) - } - - method := pb.URLFetchRequest_RequestMethod(methNum) - - freq := &pb.URLFetchRequest{ - Method: &method, - Url: proto.String(urlString(req.URL)), - FollowRedirects: proto.Bool(false), // http.Client's responsibility - MustValidateServerCertificate: proto.Bool(!t.AllowInvalidServerCertificate), - } - if deadline, ok := t.Context.Deadline(); ok { - freq.Deadline = proto.Float64(deadline.Sub(time.Now()).Seconds()) - } - - for k, vals := range req.Header { - for _, val := range vals { - freq.Header = append(freq.Header, &pb.URLFetchRequest_Header{ - Key: proto.String(k), - Value: proto.String(val), - }) - } - } - if methodAcceptsRequestBody[req.Method] && req.Body != nil { - // Avoid a []byte copy if req.Body has a Bytes method. - switch b := req.Body.(type) { - case interface { - Bytes() []byte - }: - freq.Payload = b.Bytes() - default: - freq.Payload, err = ioutil.ReadAll(req.Body) - if err != nil { - return nil, err - } - } - } - - fres := &pb.URLFetchResponse{} - if err := internal.Call(t.Context, "urlfetch", "Fetch", freq, fres); err != nil { - return nil, err - } - - res = &http.Response{} - res.StatusCode = int(*fres.StatusCode) - res.Status = fmt.Sprintf("%d %s", res.StatusCode, statusCodeToText(res.StatusCode)) - res.Header = make(http.Header) - res.Request = req - - // Faked: - res.ProtoMajor = 1 - res.ProtoMinor = 1 - res.Proto = "HTTP/1.1" - res.Close = true - - for _, h := range fres.Header { - hkey := http.CanonicalHeaderKey(*h.Key) - hval := *h.Value - if hkey == "Content-Length" { - // Will get filled in below for all but HEAD requests. - if req.Method == "HEAD" { - res.ContentLength, _ = strconv.ParseInt(hval, 10, 64) - } - continue - } - res.Header.Add(hkey, hval) - } - - if req.Method != "HEAD" { - res.ContentLength = int64(len(fres.Content)) - } - - truncated := fres.GetContentWasTruncated() - res.Body = &bodyReader{content: fres.Content, truncated: truncated} - return -} - -func init() { - internal.RegisterErrorCodeMap("urlfetch", pb.URLFetchServiceError_ErrorCode_name) - internal.RegisterTimeoutErrorCode("urlfetch", int32(pb.URLFetchServiceError_DEADLINE_EXCEEDED)) -} diff --git a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go index a6b5081888ba..6ad1b1c1df01 100644 --- a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.9 +// protoc v4.24.4 // source: google/rpc/status.proto package status diff --git a/vendor/google.golang.org/grpc/CONTRIBUTING.md b/vendor/google.golang.org/grpc/CONTRIBUTING.md index 608aa6e1ac5e..0854d298e413 100644 --- a/vendor/google.golang.org/grpc/CONTRIBUTING.md +++ b/vendor/google.golang.org/grpc/CONTRIBUTING.md @@ -66,7 +66,7 @@ How to get your contributions merged smoothly and quickly. - **All tests need to be passing** before your change can be merged. We recommend you **run tests locally** before creating your PR to catch breakages early on. - - `VET_SKIP_PROTO=1 ./vet.sh` to catch vet errors + - `./scripts/vet.sh` to catch vet errors - `go test -cpu 1,4 -timeout 7m ./...` to run the tests - `go test -race -cpu 1,4 -timeout 7m ./...` to run tests in race mode diff --git a/vendor/google.golang.org/grpc/MAINTAINERS.md b/vendor/google.golang.org/grpc/MAINTAINERS.md index c6672c0a3efe..5d4096d46a04 100644 --- a/vendor/google.golang.org/grpc/MAINTAINERS.md +++ b/vendor/google.golang.org/grpc/MAINTAINERS.md @@ -9,20 +9,28 @@ for general contribution guidelines. ## Maintainers (in alphabetical order) -- [cesarghali](https://github.com/cesarghali), Google LLC +- [aranjans](https://github.com/aranjans), Google LLC +- [arjan-bal](https://github.com/arjan-bal), Google LLC +- [arvindbr8](https://github.com/arvindbr8), Google LLC +- [atollena](https://github.com/atollena), Datadog, Inc. - [dfawley](https://github.com/dfawley), Google LLC - [easwars](https://github.com/easwars), Google LLC -- [menghanl](https://github.com/menghanl), Google LLC -- [srini100](https://github.com/srini100), Google LLC +- [erm-g](https://github.com/erm-g), Google LLC +- [gtcooke94](https://github.com/gtcooke94), Google LLC +- [purnesh42h](https://github.com/purnesh42h), Google LLC +- [zasweq](https://github.com/zasweq), Google LLC ## Emeritus Maintainers (in alphabetical order) -- [adelez](https://github.com/adelez), Google LLC -- [canguler](https://github.com/canguler), Google LLC -- [iamqizhao](https://github.com/iamqizhao), Google LLC -- [jadekler](https://github.com/jadekler), Google LLC -- [jtattermusch](https://github.com/jtattermusch), Google LLC -- [lyuxuan](https://github.com/lyuxuan), Google LLC -- [makmukhi](https://github.com/makmukhi), Google LLC -- [matt-kwong](https://github.com/matt-kwong), Google LLC -- [nicolasnoble](https://github.com/nicolasnoble), Google LLC -- [yongni](https://github.com/yongni), Google LLC +- [adelez](https://github.com/adelez) +- [canguler](https://github.com/canguler) +- [cesarghali](https://github.com/cesarghali) +- [iamqizhao](https://github.com/iamqizhao) +- [jeanbza](https://github.com/jeanbza) +- [jtattermusch](https://github.com/jtattermusch) +- [lyuxuan](https://github.com/lyuxuan) +- [makmukhi](https://github.com/makmukhi) +- [matt-kwong](https://github.com/matt-kwong) +- [menghanl](https://github.com/menghanl) +- [nicolasnoble](https://github.com/nicolasnoble) +- [srini100](https://github.com/srini100) +- [yongni](https://github.com/yongni) diff --git a/vendor/google.golang.org/grpc/Makefile b/vendor/google.golang.org/grpc/Makefile index 1f8960922b3b..be38384ff6fe 100644 --- a/vendor/google.golang.org/grpc/Makefile +++ b/vendor/google.golang.org/grpc/Makefile @@ -30,17 +30,20 @@ testdeps: GO111MODULE=on go get -d -v -t google.golang.org/grpc/... vet: vetdeps - ./vet.sh + ./scripts/vet.sh vetdeps: - ./vet.sh -install + ./scripts/vet.sh -install .PHONY: \ all \ build \ clean \ + deps \ proto \ test \ + testsubmodule \ testrace \ + testdeps \ vet \ vetdeps diff --git a/vendor/google.golang.org/grpc/README.md b/vendor/google.golang.org/grpc/README.md index ab0fbb79b863..b572707c6233 100644 --- a/vendor/google.golang.org/grpc/README.md +++ b/vendor/google.golang.org/grpc/README.md @@ -10,7 +10,7 @@ RPC framework that puts mobile and HTTP/2 first. For more information see the ## Prerequisites -- **[Go][]**: any one of the **three latest major** [releases][go-releases]. +- **[Go][]**: any one of the **two latest major** [releases][go-releases]. ## Installation diff --git a/vendor/google.golang.org/grpc/SECURITY.md b/vendor/google.golang.org/grpc/SECURITY.md index be6e108705c4..abab279379ba 100644 --- a/vendor/google.golang.org/grpc/SECURITY.md +++ b/vendor/google.golang.org/grpc/SECURITY.md @@ -1,3 +1,3 @@ # Security Policy -For information on gRPC Security Policy and reporting potentional security issues, please see [gRPC CVE Process](https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md). +For information on gRPC Security Policy and reporting potential security issues, please see [gRPC CVE Process](https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md). diff --git a/vendor/google.golang.org/grpc/backoff/backoff.go b/vendor/google.golang.org/grpc/backoff/backoff.go index 0787d0b50ce9..d7b40b7cb66f 100644 --- a/vendor/google.golang.org/grpc/backoff/backoff.go +++ b/vendor/google.golang.org/grpc/backoff/backoff.go @@ -39,7 +39,7 @@ type Config struct { MaxDelay time.Duration } -// DefaultConfig is a backoff configuration with the default values specfied +// DefaultConfig is a backoff configuration with the default values specified // at https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md. // // This should be useful for callers who want to configure backoff with diff --git a/vendor/google.golang.org/grpc/balancer/balancer.go b/vendor/google.golang.org/grpc/balancer/balancer.go index f391744f7299..b181f386a1ba 100644 --- a/vendor/google.golang.org/grpc/balancer/balancer.go +++ b/vendor/google.golang.org/grpc/balancer/balancer.go @@ -30,6 +30,7 @@ import ( "google.golang.org/grpc/channelz" "google.golang.org/grpc/connectivity" "google.golang.org/grpc/credentials" + estats "google.golang.org/grpc/experimental/stats" "google.golang.org/grpc/grpclog" "google.golang.org/grpc/internal" "google.golang.org/grpc/metadata" @@ -72,8 +73,21 @@ func unregisterForTesting(name string) { delete(m, name) } +// connectedAddress returns the connected address for a SubConnState. The +// address is only valid if the state is READY. +func connectedAddress(scs SubConnState) resolver.Address { + return scs.connectedAddress +} + +// setConnectedAddress sets the connected address for a SubConnState. +func setConnectedAddress(scs *SubConnState, addr resolver.Address) { + scs.connectedAddress = addr +} + func init() { internal.BalancerUnregister = unregisterForTesting + internal.ConnectedAddress = connectedAddress + internal.SetConnectedAddress = setConnectedAddress } // Get returns the resolver builder registered with the given name. @@ -243,6 +257,10 @@ type BuildOptions struct { // same resolver.Target as passed to the resolver. See the documentation for // the resolver.Target type for details about what it contains. Target resolver.Target + // MetricsRecorder is the metrics recorder that balancers can use to record + // metrics. Balancer implementations which do not register metrics on + // metrics registry and record on them can ignore this field. + MetricsRecorder estats.MetricsRecorder } // Builder creates a balancer. @@ -410,6 +428,9 @@ type SubConnState struct { // ConnectionError is set if the ConnectivityState is TransientFailure, // describing the reason the SubConn failed. Otherwise, it is nil. ConnectionError error + // connectedAddr contains the connected address when ConnectivityState is + // Ready. Otherwise, it is indeterminate. + connectedAddress resolver.Address } // ClientConnState describes the state of a ClientConn relevant to the diff --git a/vendor/google.golang.org/grpc/balancer/base/balancer.go b/vendor/google.golang.org/grpc/balancer/base/balancer.go index a7f1eeec8e6a..2b87bd79c757 100644 --- a/vendor/google.golang.org/grpc/balancer/base/balancer.go +++ b/vendor/google.golang.org/grpc/balancer/base/balancer.go @@ -36,7 +36,7 @@ type baseBuilder struct { config Config } -func (bb *baseBuilder) Build(cc balancer.ClientConn, opt balancer.BuildOptions) balancer.Balancer { +func (bb *baseBuilder) Build(cc balancer.ClientConn, _ balancer.BuildOptions) balancer.Balancer { bal := &baseBalancer{ cc: cc, pickerBuilder: bb.pickerBuilder, @@ -259,6 +259,6 @@ type errPicker struct { err error // Pick() always returns this err. } -func (p *errPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error) { +func (p *errPicker) Pick(balancer.PickInfo) (balancer.PickResult, error) { return balancer.PickResult{}, p.err } diff --git a/vendor/google.golang.org/grpc/balancer/pickfirst/pickfirst.go b/vendor/google.golang.org/grpc/balancer/pickfirst/pickfirst.go new file mode 100644 index 000000000000..4d69b4052f8e --- /dev/null +++ b/vendor/google.golang.org/grpc/balancer/pickfirst/pickfirst.go @@ -0,0 +1,283 @@ +/* + * + * Copyright 2017 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +// Package pickfirst contains the pick_first load balancing policy. +package pickfirst + +import ( + "encoding/json" + "errors" + "fmt" + "math/rand" + + "google.golang.org/grpc/balancer" + "google.golang.org/grpc/connectivity" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/internal" + internalgrpclog "google.golang.org/grpc/internal/grpclog" + "google.golang.org/grpc/internal/pretty" + "google.golang.org/grpc/resolver" + "google.golang.org/grpc/serviceconfig" +) + +func init() { + balancer.Register(pickfirstBuilder{}) + internal.ShuffleAddressListForTesting = func(n int, swap func(i, j int)) { rand.Shuffle(n, swap) } +} + +var logger = grpclog.Component("pick-first-lb") + +const ( + // Name is the name of the pick_first balancer. + Name = "pick_first" + logPrefix = "[pick-first-lb %p] " +) + +type pickfirstBuilder struct{} + +func (pickfirstBuilder) Build(cc balancer.ClientConn, _ balancer.BuildOptions) balancer.Balancer { + b := &pickfirstBalancer{cc: cc} + b.logger = internalgrpclog.NewPrefixLogger(logger, fmt.Sprintf(logPrefix, b)) + return b +} + +func (pickfirstBuilder) Name() string { + return Name +} + +type pfConfig struct { + serviceconfig.LoadBalancingConfig `json:"-"` + + // If set to true, instructs the LB policy to shuffle the order of the list + // of endpoints received from the name resolver before attempting to + // connect to them. + ShuffleAddressList bool `json:"shuffleAddressList"` +} + +func (pickfirstBuilder) ParseConfig(js json.RawMessage) (serviceconfig.LoadBalancingConfig, error) { + var cfg pfConfig + if err := json.Unmarshal(js, &cfg); err != nil { + return nil, fmt.Errorf("pickfirst: unable to unmarshal LB policy config: %s, error: %v", string(js), err) + } + return cfg, nil +} + +type pickfirstBalancer struct { + logger *internalgrpclog.PrefixLogger + state connectivity.State + cc balancer.ClientConn + subConn balancer.SubConn +} + +func (b *pickfirstBalancer) ResolverError(err error) { + if b.logger.V(2) { + b.logger.Infof("Received error from the name resolver: %v", err) + } + if b.subConn == nil { + b.state = connectivity.TransientFailure + } + + if b.state != connectivity.TransientFailure { + // The picker will not change since the balancer does not currently + // report an error. + return + } + b.cc.UpdateState(balancer.State{ + ConnectivityState: connectivity.TransientFailure, + Picker: &picker{err: fmt.Errorf("name resolver error: %v", err)}, + }) +} + +type Shuffler interface { + ShuffleAddressListForTesting(n int, swap func(i, j int)) +} + +func ShuffleAddressListForTesting(n int, swap func(i, j int)) { rand.Shuffle(n, swap) } + +func (b *pickfirstBalancer) UpdateClientConnState(state balancer.ClientConnState) error { + if len(state.ResolverState.Addresses) == 0 && len(state.ResolverState.Endpoints) == 0 { + // The resolver reported an empty address list. Treat it like an error by + // calling b.ResolverError. + if b.subConn != nil { + // Shut down the old subConn. All addresses were removed, so it is + // no longer valid. + b.subConn.Shutdown() + b.subConn = nil + } + b.ResolverError(errors.New("produced zero addresses")) + return balancer.ErrBadResolverState + } + // We don't have to guard this block with the env var because ParseConfig + // already does so. + cfg, ok := state.BalancerConfig.(pfConfig) + if state.BalancerConfig != nil && !ok { + return fmt.Errorf("pickfirst: received illegal BalancerConfig (type %T): %v", state.BalancerConfig, state.BalancerConfig) + } + + if b.logger.V(2) { + b.logger.Infof("Received new config %s, resolver state %s", pretty.ToJSON(cfg), pretty.ToJSON(state.ResolverState)) + } + + var addrs []resolver.Address + if endpoints := state.ResolverState.Endpoints; len(endpoints) != 0 { + // Perform the optional shuffling described in gRFC A62. The shuffling will + // change the order of endpoints but not touch the order of the addresses + // within each endpoint. - A61 + if cfg.ShuffleAddressList { + endpoints = append([]resolver.Endpoint{}, endpoints...) + internal.ShuffleAddressListForTesting.(func(int, func(int, int)))(len(endpoints), func(i, j int) { endpoints[i], endpoints[j] = endpoints[j], endpoints[i] }) + } + + // "Flatten the list by concatenating the ordered list of addresses for each + // of the endpoints, in order." - A61 + for _, endpoint := range endpoints { + // "In the flattened list, interleave addresses from the two address + // families, as per RFC-8304 section 4." - A61 + // TODO: support the above language. + addrs = append(addrs, endpoint.Addresses...) + } + } else { + // Endpoints not set, process addresses until we migrate resolver + // emissions fully to Endpoints. The top channel does wrap emitted + // addresses with endpoints, however some balancers such as weighted + // target do not forward the corresponding correct endpoints down/split + // endpoints properly. Once all balancers correctly forward endpoints + // down, can delete this else conditional. + addrs = state.ResolverState.Addresses + if cfg.ShuffleAddressList { + addrs = append([]resolver.Address{}, addrs...) + rand.Shuffle(len(addrs), func(i, j int) { addrs[i], addrs[j] = addrs[j], addrs[i] }) + } + } + + if b.subConn != nil { + b.cc.UpdateAddresses(b.subConn, addrs) + return nil + } + + var subConn balancer.SubConn + subConn, err := b.cc.NewSubConn(addrs, balancer.NewSubConnOptions{ + StateListener: func(state balancer.SubConnState) { + b.updateSubConnState(subConn, state) + }, + }) + if err != nil { + if b.logger.V(2) { + b.logger.Infof("Failed to create new SubConn: %v", err) + } + b.state = connectivity.TransientFailure + b.cc.UpdateState(balancer.State{ + ConnectivityState: connectivity.TransientFailure, + Picker: &picker{err: fmt.Errorf("error creating connection: %v", err)}, + }) + return balancer.ErrBadResolverState + } + b.subConn = subConn + b.state = connectivity.Idle + b.cc.UpdateState(balancer.State{ + ConnectivityState: connectivity.Connecting, + Picker: &picker{err: balancer.ErrNoSubConnAvailable}, + }) + b.subConn.Connect() + return nil +} + +// UpdateSubConnState is unused as a StateListener is always registered when +// creating SubConns. +func (b *pickfirstBalancer) UpdateSubConnState(subConn balancer.SubConn, state balancer.SubConnState) { + b.logger.Errorf("UpdateSubConnState(%v, %+v) called unexpectedly", subConn, state) +} + +func (b *pickfirstBalancer) updateSubConnState(subConn balancer.SubConn, state balancer.SubConnState) { + if b.logger.V(2) { + b.logger.Infof("Received SubConn state update: %p, %+v", subConn, state) + } + if b.subConn != subConn { + if b.logger.V(2) { + b.logger.Infof("Ignored state change because subConn is not recognized") + } + return + } + if state.ConnectivityState == connectivity.Shutdown { + b.subConn = nil + return + } + + switch state.ConnectivityState { + case connectivity.Ready: + b.cc.UpdateState(balancer.State{ + ConnectivityState: state.ConnectivityState, + Picker: &picker{result: balancer.PickResult{SubConn: subConn}}, + }) + case connectivity.Connecting: + if b.state == connectivity.TransientFailure { + // We stay in TransientFailure until we are Ready. See A62. + return + } + b.cc.UpdateState(balancer.State{ + ConnectivityState: state.ConnectivityState, + Picker: &picker{err: balancer.ErrNoSubConnAvailable}, + }) + case connectivity.Idle: + if b.state == connectivity.TransientFailure { + // We stay in TransientFailure until we are Ready. Also kick the + // subConn out of Idle into Connecting. See A62. + b.subConn.Connect() + return + } + b.cc.UpdateState(balancer.State{ + ConnectivityState: state.ConnectivityState, + Picker: &idlePicker{subConn: subConn}, + }) + case connectivity.TransientFailure: + b.cc.UpdateState(balancer.State{ + ConnectivityState: state.ConnectivityState, + Picker: &picker{err: state.ConnectionError}, + }) + } + b.state = state.ConnectivityState +} + +func (b *pickfirstBalancer) Close() { +} + +func (b *pickfirstBalancer) ExitIdle() { + if b.subConn != nil && b.state == connectivity.Idle { + b.subConn.Connect() + } +} + +type picker struct { + result balancer.PickResult + err error +} + +func (p *picker) Pick(balancer.PickInfo) (balancer.PickResult, error) { + return p.result, p.err +} + +// idlePicker is used when the SubConn is IDLE and kicks the SubConn into +// CONNECTING when Pick is called. +type idlePicker struct { + subConn balancer.SubConn +} + +func (i *idlePicker) Pick(balancer.PickInfo) (balancer.PickResult, error) { + i.subConn.Connect() + return balancer.PickResult{}, balancer.ErrNoSubConnAvailable +} diff --git a/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go b/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go index f7031ad2251b..260255d31b6a 100644 --- a/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go +++ b/vendor/google.golang.org/grpc/balancer/roundrobin/roundrobin.go @@ -22,12 +22,12 @@ package roundrobin import ( + "math/rand" "sync/atomic" "google.golang.org/grpc/balancer" "google.golang.org/grpc/balancer/base" "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/internal/grpcrand" ) // Name is the name of round_robin balancer. @@ -60,7 +60,7 @@ func (*rrPickerBuilder) Build(info base.PickerBuildInfo) balancer.Picker { // Start at a random index, as the same RR balancer rebuilds a new // picker when SubConn states change, and we don't want to apply excess // load to the first server in the list. - next: uint32(grpcrand.Intn(len(scs))), + next: uint32(rand.Intn(len(scs))), } } diff --git a/vendor/google.golang.org/grpc/balancer_wrapper.go b/vendor/google.golang.org/grpc/balancer_wrapper.go index af39b8a4c73c..8ad6ce2f0950 100644 --- a/vendor/google.golang.org/grpc/balancer_wrapper.go +++ b/vendor/google.golang.org/grpc/balancer_wrapper.go @@ -25,12 +25,15 @@ import ( "google.golang.org/grpc/balancer" "google.golang.org/grpc/connectivity" + "google.golang.org/grpc/internal" "google.golang.org/grpc/internal/balancer/gracefulswitch" "google.golang.org/grpc/internal/channelz" "google.golang.org/grpc/internal/grpcsync" "google.golang.org/grpc/resolver" ) +var setConnectedAddress = internal.SetConnectedAddress.(func(*balancer.SubConnState, resolver.Address)) + // ccBalancerWrapper sits between the ClientConn and the Balancer. // // ccBalancerWrapper implements methods corresponding to the ones on the @@ -79,6 +82,7 @@ func newCCBalancerWrapper(cc *ClientConn) *ccBalancerWrapper { CustomUserAgent: cc.dopts.copts.UserAgent, ChannelzParent: cc.channelz, Target: cc.parsedTarget, + MetricsRecorder: cc.metricsRecorderList, }, serializer: grpcsync.NewCallbackSerializer(ctx), serializerCancel: cancel, @@ -92,7 +96,7 @@ func newCCBalancerWrapper(cc *ClientConn) *ccBalancerWrapper { // it is safe to call into the balancer here. func (ccb *ccBalancerWrapper) updateClientConnState(ccs *balancer.ClientConnState) error { errCh := make(chan error) - ok := ccb.serializer.Schedule(func(ctx context.Context) { + uccs := func(ctx context.Context) { defer close(errCh) if ctx.Err() != nil || ccb.balancer == nil { return @@ -107,17 +111,23 @@ func (ccb *ccBalancerWrapper) updateClientConnState(ccs *balancer.ClientConnStat logger.Infof("error from balancer.UpdateClientConnState: %v", err) } errCh <- err - }) - if !ok { - return nil } + onFailure := func() { close(errCh) } + + // UpdateClientConnState can race with Close, and when the latter wins, the + // serializer is closed, and the attempt to schedule the callback will fail. + // It is acceptable to ignore this failure. But since we want to handle the + // state update in a blocking fashion (when we successfully schedule the + // callback), we have to use the ScheduleOr method and not the MaybeSchedule + // method on the serializer. + ccb.serializer.ScheduleOr(uccs, onFailure) return <-errCh } // resolverError is invoked by grpc to push a resolver error to the underlying // balancer. The call to the balancer is executed from the serializer. func (ccb *ccBalancerWrapper) resolverError(err error) { - ccb.serializer.Schedule(func(ctx context.Context) { + ccb.serializer.TrySchedule(func(ctx context.Context) { if ctx.Err() != nil || ccb.balancer == nil { return } @@ -133,7 +143,7 @@ func (ccb *ccBalancerWrapper) close() { ccb.closed = true ccb.mu.Unlock() channelz.Info(logger, ccb.cc.channelz, "ccBalancerWrapper: closing") - ccb.serializer.Schedule(func(context.Context) { + ccb.serializer.TrySchedule(func(context.Context) { if ccb.balancer == nil { return } @@ -145,7 +155,7 @@ func (ccb *ccBalancerWrapper) close() { // exitIdle invokes the balancer's exitIdle method in the serializer. func (ccb *ccBalancerWrapper) exitIdle() { - ccb.serializer.Schedule(func(ctx context.Context) { + ccb.serializer.TrySchedule(func(ctx context.Context) { if ctx.Err() != nil || ccb.balancer == nil { return } @@ -182,7 +192,7 @@ func (ccb *ccBalancerWrapper) NewSubConn(addrs []resolver.Address, opts balancer return acbw, nil } -func (ccb *ccBalancerWrapper) RemoveSubConn(sc balancer.SubConn) { +func (ccb *ccBalancerWrapper) RemoveSubConn(balancer.SubConn) { // The graceful switch balancer will never call this. logger.Errorf("ccb RemoveSubConn(%v) called unexpectedly, sc") } @@ -198,6 +208,10 @@ func (ccb *ccBalancerWrapper) UpdateAddresses(sc balancer.SubConn, addrs []resol func (ccb *ccBalancerWrapper) UpdateState(s balancer.State) { ccb.cc.mu.Lock() defer ccb.cc.mu.Unlock() + if ccb.cc.conns == nil { + // The CC has been closed; ignore this update. + return + } ccb.mu.Lock() if ccb.closed { @@ -248,15 +262,29 @@ type acBalancerWrapper struct { // updateState is invoked by grpc to push a subConn state update to the // underlying balancer. -func (acbw *acBalancerWrapper) updateState(s connectivity.State, err error) { - acbw.ccb.serializer.Schedule(func(ctx context.Context) { +func (acbw *acBalancerWrapper) updateState(s connectivity.State, curAddr resolver.Address, err error) { + acbw.ccb.serializer.TrySchedule(func(ctx context.Context) { if ctx.Err() != nil || acbw.ccb.balancer == nil { return } // Even though it is optional for balancers, gracefulswitch ensures // opts.StateListener is set, so this cannot ever be nil. // TODO: delete this comment when UpdateSubConnState is removed. - acbw.stateListener(balancer.SubConnState{ConnectivityState: s, ConnectionError: err}) + scs := balancer.SubConnState{ConnectivityState: s, ConnectionError: err} + if s == connectivity.Ready { + setConnectedAddress(&scs, curAddr) + } + acbw.stateListener(scs) + acbw.ac.mu.Lock() + defer acbw.ac.mu.Unlock() + if s == connectivity.Ready { + // When changing states to READY, reset stateReadyChan. Wait until + // after we notify the LB policy's listener(s) in order to prevent + // ac.getTransport() from unblocking before the LB policy starts + // tracking the subchannel as READY. + close(acbw.ac.stateReadyChan) + acbw.ac.stateReadyChan = make(chan struct{}) + } }) } @@ -314,8 +342,8 @@ func (acbw *acBalancerWrapper) GetOrBuildProducer(pb balancer.ProducerBuilder) ( pData := acbw.producers[pb] if pData == nil { // Not found; create a new one and add it to the producers map. - p, close := pb.Build(acbw) - pData = &refCountedProducer{producer: p, close: close} + p, closeFn := pb.Build(acbw) + pData = &refCountedProducer{producer: p, close: closeFn} acbw.producers[pb] = pData } // Account for this new reference. diff --git a/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go b/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go index 856c75dd4e2a..55bffaa77ef0 100644 --- a/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go +++ b/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go @@ -18,8 +18,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.25.2 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: grpc/binlog/v1/binarylog.proto package grpc_binarylog_v1 @@ -1015,7 +1015,7 @@ func file_grpc_binlog_v1_binarylog_proto_rawDescGZIP() []byte { var file_grpc_binlog_v1_binarylog_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_grpc_binlog_v1_binarylog_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_grpc_binlog_v1_binarylog_proto_goTypes = []interface{}{ +var file_grpc_binlog_v1_binarylog_proto_goTypes = []any{ (GrpcLogEntry_EventType)(0), // 0: grpc.binarylog.v1.GrpcLogEntry.EventType (GrpcLogEntry_Logger)(0), // 1: grpc.binarylog.v1.GrpcLogEntry.Logger (Address_Type)(0), // 2: grpc.binarylog.v1.Address.Type @@ -1058,7 +1058,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_grpc_binlog_v1_binarylog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_grpc_binlog_v1_binarylog_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*GrpcLogEntry); i { case 0: return &v.state @@ -1070,7 +1070,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { return nil } } - file_grpc_binlog_v1_binarylog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_grpc_binlog_v1_binarylog_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ClientHeader); i { case 0: return &v.state @@ -1082,7 +1082,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { return nil } } - file_grpc_binlog_v1_binarylog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_grpc_binlog_v1_binarylog_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ServerHeader); i { case 0: return &v.state @@ -1094,7 +1094,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { return nil } } - file_grpc_binlog_v1_binarylog_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_grpc_binlog_v1_binarylog_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*Trailer); i { case 0: return &v.state @@ -1106,7 +1106,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { return nil } } - file_grpc_binlog_v1_binarylog_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_grpc_binlog_v1_binarylog_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*Message); i { case 0: return &v.state @@ -1118,7 +1118,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { return nil } } - file_grpc_binlog_v1_binarylog_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_grpc_binlog_v1_binarylog_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Metadata); i { case 0: return &v.state @@ -1130,7 +1130,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { return nil } } - file_grpc_binlog_v1_binarylog_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_grpc_binlog_v1_binarylog_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*MetadataEntry); i { case 0: return &v.state @@ -1142,7 +1142,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { return nil } } - file_grpc_binlog_v1_binarylog_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_grpc_binlog_v1_binarylog_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*Address); i { case 0: return &v.state @@ -1155,7 +1155,7 @@ func file_grpc_binlog_v1_binarylog_proto_init() { } } } - file_grpc_binlog_v1_binarylog_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_grpc_binlog_v1_binarylog_proto_msgTypes[0].OneofWrappers = []any{ (*GrpcLogEntry_ClientHeader)(nil), (*GrpcLogEntry_ServerHeader)(nil), (*GrpcLogEntry_Message)(nil), diff --git a/vendor/google.golang.org/grpc/clientconn.go b/vendor/google.golang.org/grpc/clientconn.go index c7f2607114a8..9c8850e3fdd5 100644 --- a/vendor/google.golang.org/grpc/clientconn.go +++ b/vendor/google.golang.org/grpc/clientconn.go @@ -24,6 +24,7 @@ import ( "fmt" "math" "net/url" + "slices" "strings" "sync" "sync/atomic" @@ -31,14 +32,15 @@ import ( "google.golang.org/grpc/balancer" "google.golang.org/grpc/balancer/base" + "google.golang.org/grpc/balancer/pickfirst" "google.golang.org/grpc/codes" "google.golang.org/grpc/connectivity" "google.golang.org/grpc/internal" "google.golang.org/grpc/internal/channelz" "google.golang.org/grpc/internal/grpcsync" "google.golang.org/grpc/internal/idle" - "google.golang.org/grpc/internal/pretty" iresolver "google.golang.org/grpc/internal/resolver" + "google.golang.org/grpc/internal/stats" "google.golang.org/grpc/internal/transport" "google.golang.org/grpc/keepalive" "google.golang.org/grpc/resolver" @@ -73,6 +75,8 @@ var ( // invalidDefaultServiceConfigErrPrefix is used to prefix the json parsing error for the default // service config. invalidDefaultServiceConfigErrPrefix = "grpc: the provided default service config is invalid" + // PickFirstBalancerName is the name of the pick_first balancer. + PickFirstBalancerName = pickfirst.Name ) // The following errors are returned from Dial and DialContext @@ -121,8 +125,9 @@ func (dcs *defaultConfigSelector) SelectConfig(rpcInfo iresolver.RPCInfo) (*ires // https://github.com/grpc/grpc/blob/master/doc/naming.md. e.g. to use dns // resolver, a "dns:///" prefix should be applied to the target. // -// The DialOptions returned by WithBlock, WithTimeout, and -// WithReturnConnectionError are ignored by this function. +// The DialOptions returned by WithBlock, WithTimeout, +// WithReturnConnectionError, and FailOnNonTempDialError are ignored by this +// function. func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error) { cc := &ClientConn{ target: target, @@ -152,6 +157,16 @@ func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error) for _, opt := range opts { opt.apply(&cc.dopts) } + + // Determine the resolver to use. + if err := cc.initParsedTargetAndResolverBuilder(); err != nil { + return nil, err + } + + for _, opt := range globalPerTargetDialOptions { + opt.DialOptionForTarget(cc.parsedTarget.URL).apply(&cc.dopts) + } + chainUnaryClientInterceptors(cc) chainStreamClientInterceptors(cc) @@ -160,7 +175,7 @@ func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error) } if cc.dopts.defaultServiceConfigRawJSON != nil { - scpr := parseServiceConfig(*cc.dopts.defaultServiceConfigRawJSON) + scpr := parseServiceConfig(*cc.dopts.defaultServiceConfigRawJSON, cc.dopts.maxCallAttempts) if scpr.Err != nil { return nil, fmt.Errorf("%s: %v", invalidDefaultServiceConfigErrPrefix, scpr.Err) } @@ -168,34 +183,30 @@ func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error) } cc.mkp = cc.dopts.copts.KeepaliveParams - // Register ClientConn with channelz. - cc.channelzRegistration(target) - - // TODO: Ideally it should be impossible to error from this function after - // channelz registration. This will require removing some channelz logs - // from the following functions that can error. Errors can be returned to - // the user, and successful logs can be emitted here, after the checks have - // passed and channelz is subsequently registered. - - // Determine the resolver to use. - if err := cc.parseTargetAndFindResolver(); err != nil { - channelz.RemoveEntry(cc.channelz.ID) - return nil, err - } - if err = cc.determineAuthority(); err != nil { - channelz.RemoveEntry(cc.channelz.ID) + if err = cc.initAuthority(); err != nil { return nil, err } + // Register ClientConn with channelz. Note that this is only done after + // channel creation cannot fail. + cc.channelzRegistration(target) + channelz.Infof(logger, cc.channelz, "parsed dial target is: %#v", cc.parsedTarget) + channelz.Infof(logger, cc.channelz, "Channel authority set to %q", cc.authority) + cc.csMgr = newConnectivityStateManager(cc.ctx, cc.channelz) cc.pickerWrapper = newPickerWrapper(cc.dopts.copts.StatsHandlers) + cc.metricsRecorderList = stats.NewMetricsRecorderList(cc.dopts.copts.StatsHandlers) + cc.initIdleStateLocked() // Safe to call without the lock, since nothing else has a reference to cc. cc.idlenessMgr = idle.NewManager((*idler)(cc), cc.dopts.idleTimeout) + return cc, nil } // Dial calls DialContext(context.Background(), target, opts...). +// +// Deprecated: use NewClient instead. Will be supported throughout 1.x. func Dial(target string, opts ...DialOption) (*ClientConn, error) { return DialContext(context.Background(), target, opts...) } @@ -209,6 +220,8 @@ func Dial(target string, opts ...DialOption) (*ClientConn, error) { // "passthrough" for backward compatibility. This distinction should not matter // to most users, but could matter to legacy users that specify a custom dialer // and expect it to receive the target string directly. +// +// Deprecated: use NewClient instead. Will be supported throughout 1.x. func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) { // At the end of this method, we kick the channel out of idle, rather than // waiting for the first rpc. @@ -582,13 +595,14 @@ type ClientConn struct { cancel context.CancelFunc // Cancelled on close. // The following are initialized at dial time, and are read-only after that. - target string // User's dial target. - parsedTarget resolver.Target // See parseTargetAndFindResolver(). - authority string // See determineAuthority(). - dopts dialOptions // Default and user specified dial options. - channelz *channelz.Channel // Channelz object. - resolverBuilder resolver.Builder // See parseTargetAndFindResolver(). - idlenessMgr *idle.Manager + target string // User's dial target. + parsedTarget resolver.Target // See initParsedTargetAndResolverBuilder(). + authority string // See initAuthority(). + dopts dialOptions // Default and user specified dial options. + channelz *channelz.Channel // Channelz object. + resolverBuilder resolver.Builder // See initParsedTargetAndResolverBuilder(). + idlenessMgr *idle.Manager + metricsRecorderList *stats.MetricsRecorderList // The following provide their own synchronization, and therefore don't // require cc.mu to be held to access them. @@ -618,11 +632,6 @@ type ClientConn struct { // WaitForStateChange waits until the connectivity.State of ClientConn changes from sourceState or // ctx expires. A true value is returned in former case and false in latter. -// -// # Experimental -// -// Notice: This API is EXPERIMENTAL and may be changed or removed in a -// later release. func (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool { ch := cc.csMgr.getNotifyChan() if cc.csMgr.getState() != sourceState { @@ -637,11 +646,6 @@ func (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connec } // GetState returns the connectivity.State of ClientConn. -// -// # Experimental -// -// Notice: This API is EXPERIMENTAL and may be changed or removed in a later -// release. func (cc *ClientConn) GetState() connectivity.State { return cc.csMgr.getState() } @@ -688,8 +692,7 @@ func (cc *ClientConn) waitForResolvedAddrs(ctx context.Context) error { var emptyServiceConfig *ServiceConfig func init() { - balancer.Register(pickfirstBuilder{}) - cfg := parseServiceConfig("{}") + cfg := parseServiceConfig("{}", defaultMaxCallAttempts) if cfg.Err != nil { panic(fmt.Sprintf("impossible error parsing empty service config: %v", cfg.Err)) } @@ -805,17 +808,11 @@ func (cc *ClientConn) applyFailingLBLocked(sc *serviceconfig.ParseResult) { cc.csMgr.updateState(connectivity.TransientFailure) } -// Makes a copy of the input addresses slice and clears out the balancer -// attributes field. Addresses are passed during subconn creation and address -// update operations. In both cases, we will clear the balancer attributes by -// calling this function, and therefore we will be able to use the Equal method -// provided by the resolver.Address type for comparison. -func copyAddressesWithoutBalancerAttributes(in []resolver.Address) []resolver.Address { +// Makes a copy of the input addresses slice. Addresses are passed during +// subconn creation and address update operations. +func copyAddresses(in []resolver.Address) []resolver.Address { out := make([]resolver.Address, len(in)) - for i := range in { - out[i] = in[i] - out[i].BalancerAttributes = nil - } + copy(out, in) return out } @@ -828,16 +825,19 @@ func (cc *ClientConn) newAddrConnLocked(addrs []resolver.Address, opts balancer. } ac := &addrConn{ - state: connectivity.Idle, - cc: cc, - addrs: copyAddressesWithoutBalancerAttributes(addrs), - scopts: opts, - dopts: cc.dopts, - channelz: channelz.RegisterSubChannel(cc.channelz, ""), - resetBackoff: make(chan struct{}), - stateChan: make(chan struct{}), + state: connectivity.Idle, + cc: cc, + addrs: copyAddresses(addrs), + scopts: opts, + dopts: cc.dopts, + channelz: channelz.RegisterSubChannel(cc.channelz, ""), + resetBackoff: make(chan struct{}), + stateReadyChan: make(chan struct{}), } ac.ctx, ac.cancel = context.WithCancel(cc.ctx) + // Start with our address set to the first address; this may be updated if + // we connect to different addresses. + ac.channelz.ChannelMetrics.Target.Store(&addrs[0].Addr) channelz.AddTraceEvent(logger, ac.channelz, 0, &channelz.TraceEvent{ Desc: "Subchannel created", @@ -908,32 +908,37 @@ func (ac *addrConn) connect() error { ac.mu.Unlock() return nil } - ac.mu.Unlock() - ac.resetTransport() + ac.resetTransportAndUnlock() return nil } -func equalAddresses(a, b []resolver.Address) bool { - if len(a) != len(b) { - return false - } - for i, v := range a { - if !v.Equal(b[i]) { - return false - } - } - return true +// equalAddressIgnoringBalAttributes returns true is a and b are considered equal. +// This is different from the Equal method on the resolver.Address type which +// considers all fields to determine equality. Here, we only consider fields +// that are meaningful to the subConn. +func equalAddressIgnoringBalAttributes(a, b *resolver.Address) bool { + return a.Addr == b.Addr && a.ServerName == b.ServerName && + a.Attributes.Equal(b.Attributes) && + a.Metadata == b.Metadata +} + +func equalAddressesIgnoringBalAttributes(a, b []resolver.Address) bool { + return slices.EqualFunc(a, b, func(a, b resolver.Address) bool { return equalAddressIgnoringBalAttributes(&a, &b) }) } // updateAddrs updates ac.addrs with the new addresses list and handles active // connections or connection attempts. func (ac *addrConn) updateAddrs(addrs []resolver.Address) { - ac.mu.Lock() - channelz.Infof(logger, ac.channelz, "addrConn: updateAddrs curAddr: %v, addrs: %v", pretty.ToJSON(ac.curAddr), pretty.ToJSON(addrs)) + addrs = copyAddresses(addrs) + limit := len(addrs) + if limit > 5 { + limit = 5 + } + channelz.Infof(logger, ac.channelz, "addrConn: updateAddrs addrs (%d of %d): %v", limit, len(addrs), addrs[:limit]) - addrs = copyAddressesWithoutBalancerAttributes(addrs) - if equalAddresses(ac.addrs, addrs) { + ac.mu.Lock() + if equalAddressesIgnoringBalAttributes(ac.addrs, addrs) { ac.mu.Unlock() return } @@ -952,7 +957,7 @@ func (ac *addrConn) updateAddrs(addrs []resolver.Address) { // Try to find the connected address. for _, a := range addrs { a.ServerName = ac.cc.getServerName(a) - if a.Equal(ac.curAddr) { + if equalAddressIgnoringBalAttributes(&a, &ac.curAddr) { // We are connected to a valid address, so do nothing but // update the addresses. ac.mu.Unlock() @@ -978,11 +983,9 @@ func (ac *addrConn) updateAddrs(addrs []resolver.Address) { ac.updateConnectivityState(connectivity.Idle, nil) } - ac.mu.Unlock() - // Since we were connecting/connected, we should start a new connection // attempt. - go ac.resetTransport() + go ac.resetTransportAndUnlock() } // getServerName determines the serverName to be used in the connection @@ -1167,13 +1170,17 @@ type addrConn struct { // is received, transport is closed, ac has been torn down). transport transport.ClientTransport // The current transport. + // This mutex is used on the RPC path, so its usage should be minimized as + // much as possible. + // TODO: Find a lock-free way to retrieve the transport and state from the + // addrConn. mu sync.Mutex curAddr resolver.Address // The current address. addrs []resolver.Address // All addresses that the resolver resolved to. // Use updateConnectivityState for updating addrConn's connectivity state. - state connectivity.State - stateChan chan struct{} // closed and recreated on every state change. + state connectivity.State + stateReadyChan chan struct{} // closed and recreated on every READY state change. backoffIdx int // Needs to be stateful for resetConnectBackoff. resetBackoff chan struct{} @@ -1186,9 +1193,6 @@ func (ac *addrConn) updateConnectivityState(s connectivity.State, lastErr error) if ac.state == s { return } - // When changing states, reset the state change channel. - close(ac.stateChan) - ac.stateChan = make(chan struct{}) ac.state = s ac.channelz.ChannelMetrics.State.Store(&s) if lastErr == nil { @@ -1196,7 +1200,7 @@ func (ac *addrConn) updateConnectivityState(s connectivity.State, lastErr error) } else { channelz.Infof(logger, ac.channelz, "Subchannel Connectivity change to %v, last error: %s", s, lastErr) } - ac.acbw.updateState(s, lastErr) + ac.acbw.updateState(s, ac.curAddr, lastErr) } // adjustParams updates parameters used to create transports upon @@ -1213,8 +1217,10 @@ func (ac *addrConn) adjustParams(r transport.GoAwayReason) { } } -func (ac *addrConn) resetTransport() { - ac.mu.Lock() +// resetTransportAndUnlock unconditionally connects the addrConn. +// +// ac.mu must be held by the caller, and this function will guarantee it is released. +func (ac *addrConn) resetTransportAndUnlock() { acCtx := ac.ctx if acCtx.Err() != nil { ac.mu.Unlock() @@ -1292,6 +1298,7 @@ func (ac *addrConn) resetTransport() { func (ac *addrConn) tryAllAddrs(ctx context.Context, addrs []resolver.Address, connectDeadline time.Time) error { var firstConnErr error for _, addr := range addrs { + ac.channelz.ChannelMetrics.Target.Store(&addr.Addr) if ctx.Err() != nil { return errConnClosing } @@ -1503,7 +1510,7 @@ func (ac *addrConn) getReadyTransport() transport.ClientTransport { func (ac *addrConn) getTransport(ctx context.Context) (transport.ClientTransport, error) { for ctx.Err() == nil { ac.mu.Lock() - t, state, sc := ac.transport, ac.state, ac.stateChan + t, state, sc := ac.transport, ac.state, ac.stateReadyChan ac.mu.Unlock() if state == connectivity.Ready { return t, nil @@ -1566,7 +1573,7 @@ func (ac *addrConn) tearDown(err error) { } else { // Hard close the transport when the channel is entering idle or is // being shutdown. In the case where the channel is being shutdown, - // closing of transports is also taken care of by cancelation of cc.ctx. + // closing of transports is also taken care of by cancellation of cc.ctx. // But in the case where the channel is entering idle, we need to // explicitly close the transports here. Instead of distinguishing // between these two cases, it is simpler to close the transport @@ -1657,22 +1664,19 @@ func (cc *ClientConn) connectionError() error { return cc.lastConnectionError } -// parseTargetAndFindResolver parses the user's dial target and stores the -// parsed target in `cc.parsedTarget`. +// initParsedTargetAndResolverBuilder parses the user's dial target and stores +// the parsed target in `cc.parsedTarget`. // // The resolver to use is determined based on the scheme in the parsed target // and the same is stored in `cc.resolverBuilder`. // // Doesn't grab cc.mu as this method is expected to be called only at Dial time. -func (cc *ClientConn) parseTargetAndFindResolver() error { - channelz.Infof(logger, cc.channelz, "original dial target is: %q", cc.target) +func (cc *ClientConn) initParsedTargetAndResolverBuilder() error { + logger.Infof("original dial target is: %q", cc.target) var rb resolver.Builder parsedTarget, err := parseTarget(cc.target) - if err != nil { - channelz.Infof(logger, cc.channelz, "dial target %q parse failed: %v", cc.target, err) - } else { - channelz.Infof(logger, cc.channelz, "parsed dial target is: %#v", parsedTarget) + if err == nil { rb = cc.getResolver(parsedTarget.URL.Scheme) if rb != nil { cc.parsedTarget = parsedTarget @@ -1691,15 +1695,12 @@ func (cc *ClientConn) parseTargetAndFindResolver() error { defScheme = resolver.GetDefaultScheme() } - channelz.Infof(logger, cc.channelz, "fallback to scheme %q", defScheme) canonicalTarget := defScheme + ":///" + cc.target parsedTarget, err = parseTarget(canonicalTarget) if err != nil { - channelz.Infof(logger, cc.channelz, "dial target %q parse failed: %v", canonicalTarget, err) return err } - channelz.Infof(logger, cc.channelz, "parsed dial target is: %+v", parsedTarget) rb = cc.getResolver(parsedTarget.URL.Scheme) if rb == nil { return fmt.Errorf("could not get resolver for default scheme: %q", parsedTarget.URL.Scheme) @@ -1739,7 +1740,7 @@ func encodeAuthority(authority string) string { return false case '!', '$', '&', '\'', '(', ')', '*', '+', ',', ';', '=': // Subdelim characters return false - case ':', '[', ']', '@': // Authority related delimeters + case ':', '[', ']', '@': // Authority related delimiters return false } // Everything else must be escaped. @@ -1789,7 +1790,7 @@ func encodeAuthority(authority string) string { // credentials do not match the authority configured through the dial option. // // Doesn't grab cc.mu as this method is expected to be called only at Dial time. -func (cc *ClientConn) determineAuthority() error { +func (cc *ClientConn) initAuthority() error { dopts := cc.dopts // Historically, we had two options for users to specify the serverName or // authority for a channel. One was through the transport credentials @@ -1822,6 +1823,5 @@ func (cc *ClientConn) determineAuthority() error { } else { cc.authority = encodeAuthority(endpoint) } - channelz.Infof(logger, cc.channelz, "Channel authority set to %q", cc.authority) return nil } diff --git a/vendor/google.golang.org/grpc/codec.go b/vendor/google.golang.org/grpc/codec.go index 411e3dfd47cc..e840858b77b1 100644 --- a/vendor/google.golang.org/grpc/codec.go +++ b/vendor/google.golang.org/grpc/codec.go @@ -21,18 +21,73 @@ package grpc import ( "google.golang.org/grpc/encoding" _ "google.golang.org/grpc/encoding/proto" // to register the Codec for "proto" + "google.golang.org/grpc/mem" ) -// baseCodec contains the functionality of both Codec and encoding.Codec, but -// omits the name/string, which vary between the two and are not needed for -// anything besides the registry in the encoding package. +// baseCodec captures the new encoding.CodecV2 interface without the Name +// function, allowing it to be implemented by older Codec and encoding.Codec +// implementations. The omitted Name function is only needed for the register in +// the encoding package and is not part of the core functionality. type baseCodec interface { - Marshal(v any) ([]byte, error) - Unmarshal(data []byte, v any) error + Marshal(v any) (mem.BufferSlice, error) + Unmarshal(data mem.BufferSlice, v any) error +} + +// getCodec returns an encoding.CodecV2 for the codec of the given name (if +// registered). Initially checks the V2 registry with encoding.GetCodecV2 and +// returns the V2 codec if it is registered. Otherwise, it checks the V1 registry +// with encoding.GetCodec and if it is registered wraps it with newCodecV1Bridge +// to turn it into an encoding.CodecV2. Returns nil otherwise. +func getCodec(name string) encoding.CodecV2 { + if codecV1 := encoding.GetCodec(name); codecV1 != nil { + return newCodecV1Bridge(codecV1) + } + + return encoding.GetCodecV2(name) +} + +func newCodecV0Bridge(c Codec) baseCodec { + return codecV0Bridge{codec: c} +} + +func newCodecV1Bridge(c encoding.Codec) encoding.CodecV2 { + return codecV1Bridge{ + codecV0Bridge: codecV0Bridge{codec: c}, + name: c.Name(), + } +} + +var _ baseCodec = codecV0Bridge{} + +type codecV0Bridge struct { + codec interface { + Marshal(v any) ([]byte, error) + Unmarshal(data []byte, v any) error + } +} + +func (c codecV0Bridge) Marshal(v any) (mem.BufferSlice, error) { + data, err := c.codec.Marshal(v) + if err != nil { + return nil, err + } + return mem.BufferSlice{mem.NewBuffer(&data, nil)}, nil +} + +func (c codecV0Bridge) Unmarshal(data mem.BufferSlice, v any) (err error) { + return c.codec.Unmarshal(data.Materialize(), v) } -var _ baseCodec = Codec(nil) -var _ baseCodec = encoding.Codec(nil) +var _ encoding.CodecV2 = codecV1Bridge{} + +type codecV1Bridge struct { + codecV0Bridge + name string +} + +func (c codecV1Bridge) Name() string { + return c.name +} // Codec defines the interface gRPC uses to encode and decode messages. // Note that implementations of this interface must be thread safe; diff --git a/vendor/google.golang.org/grpc/codegen.sh b/vendor/google.golang.org/grpc/codegen.sh deleted file mode 100644 index 4cdc6ba7c090..000000000000 --- a/vendor/google.golang.org/grpc/codegen.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# This script serves as an example to demonstrate how to generate the gRPC-Go -# interface and the related messages from .proto file. -# -# It assumes the installation of i) Google proto buffer compiler at -# https://github.com/google/protobuf (after v2.6.1) and ii) the Go codegen -# plugin at https://github.com/golang/protobuf (after 2015-02-20). If you have -# not, please install them first. -# -# We recommend running this script at $GOPATH/src. -# -# If this is not what you need, feel free to make your own scripts. Again, this -# script is for demonstration purpose. -# -proto=$1 -protoc --go_out=plugins=grpc:. $proto diff --git a/vendor/google.golang.org/grpc/codes/codes.go b/vendor/google.golang.org/grpc/codes/codes.go index 08476ad1fe17..0b42c302b24b 100644 --- a/vendor/google.golang.org/grpc/codes/codes.go +++ b/vendor/google.golang.org/grpc/codes/codes.go @@ -235,7 +235,7 @@ func (c *Code) UnmarshalJSON(b []byte) error { if ci, err := strconv.ParseUint(string(b), 10, 32); err == nil { if ci >= _maxCode { - return fmt.Errorf("invalid code: %q", ci) + return fmt.Errorf("invalid code: %d", ci) } *c = Code(ci) diff --git a/vendor/google.golang.org/grpc/credentials/credentials.go b/vendor/google.golang.org/grpc/credentials/credentials.go index f6b55c68b56d..665e790bb0f7 100644 --- a/vendor/google.golang.org/grpc/credentials/credentials.go +++ b/vendor/google.golang.org/grpc/credentials/credentials.go @@ -30,7 +30,7 @@ import ( "google.golang.org/grpc/attributes" icredentials "google.golang.org/grpc/internal/credentials" - "google.golang.org/protobuf/protoadapt" + "google.golang.org/protobuf/proto" ) // PerRPCCredentials defines the common interface for the credentials which need to @@ -237,7 +237,7 @@ func ClientHandshakeInfoFromContext(ctx context.Context) ClientHandshakeInfo { } // CheckSecurityLevel checks if a connection's security level is greater than or equal to the specified one. -// It returns success if 1) the condition is satisified or 2) AuthInfo struct does not implement GetCommonAuthInfo() method +// It returns success if 1) the condition is satisfied or 2) AuthInfo struct does not implement GetCommonAuthInfo() method // or 3) CommonAuthInfo.SecurityLevel has an invalid zero value. For 2) and 3), it is for the purpose of backward-compatibility. // // This API is experimental. @@ -287,5 +287,5 @@ type ChannelzSecurityValue interface { type OtherChannelzSecurityValue struct { ChannelzSecurityValue Name string - Value protoadapt.MessageV1 + Value proto.Message } diff --git a/vendor/google.golang.org/grpc/credentials/insecure/insecure.go b/vendor/google.golang.org/grpc/credentials/insecure/insecure.go index 82bee1443bfe..4c805c64462c 100644 --- a/vendor/google.golang.org/grpc/credentials/insecure/insecure.go +++ b/vendor/google.golang.org/grpc/credentials/insecure/insecure.go @@ -40,7 +40,7 @@ func NewCredentials() credentials.TransportCredentials { // NoSecurity. type insecureTC struct{} -func (insecureTC) ClientHandshake(ctx context.Context, _ string, conn net.Conn) (net.Conn, credentials.AuthInfo, error) { +func (insecureTC) ClientHandshake(_ context.Context, _ string, conn net.Conn) (net.Conn, credentials.AuthInfo, error) { return conn, info{credentials.CommonAuthInfo{SecurityLevel: credentials.NoSecurity}}, nil } diff --git a/vendor/google.golang.org/grpc/credentials/tls.go b/vendor/google.golang.org/grpc/credentials/tls.go index 5dafd34edf93..4114358545ef 100644 --- a/vendor/google.golang.org/grpc/credentials/tls.go +++ b/vendor/google.golang.org/grpc/credentials/tls.go @@ -27,9 +27,13 @@ import ( "net/url" "os" + "google.golang.org/grpc/grpclog" credinternal "google.golang.org/grpc/internal/credentials" + "google.golang.org/grpc/internal/envconfig" ) +var logger = grpclog.Component("credentials") + // TLSInfo contains the auth information for a TLS authenticated connection. // It implements the AuthInfo interface. type TLSInfo struct { @@ -112,6 +116,22 @@ func (c *tlsCreds) ClientHandshake(ctx context.Context, authority string, rawCon conn.Close() return nil, nil, ctx.Err() } + + // The negotiated protocol can be either of the following: + // 1. h2: When the server supports ALPN. Only HTTP/2 can be negotiated since + // it is the only protocol advertised by the client during the handshake. + // The tls library ensures that the server chooses a protocol advertised + // by the client. + // 2. "" (empty string): If the server doesn't support ALPN. ALPN is a requirement + // for using HTTP/2 over TLS. We can terminate the connection immediately. + np := conn.ConnectionState().NegotiatedProtocol + if np == "" { + if envconfig.EnforceALPNEnabled { + conn.Close() + return nil, nil, fmt.Errorf("credentials: cannot check peer: missing selected ALPN property") + } + logger.Warningf("Allowing TLS connection to server %q with ALPN disabled. TLS connections to servers with ALPN disabled will be disallowed in future grpc-go releases", cfg.ServerName) + } tlsInfo := TLSInfo{ State: conn.ConnectionState(), CommonAuthInfo: CommonAuthInfo{ @@ -131,8 +151,20 @@ func (c *tlsCreds) ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error) conn.Close() return nil, nil, err } + cs := conn.ConnectionState() + // The negotiated application protocol can be empty only if the client doesn't + // support ALPN. In such cases, we can close the connection since ALPN is required + // for using HTTP/2 over TLS. + if cs.NegotiatedProtocol == "" { + if envconfig.EnforceALPNEnabled { + conn.Close() + return nil, nil, fmt.Errorf("credentials: cannot check peer: missing selected ALPN property") + } else if logger.V(2) { + logger.Info("Allowing TLS connection from client with ALPN disabled. TLS connections with ALPN disabled will be disallowed in future grpc-go releases") + } + } tlsInfo := TLSInfo{ - State: conn.ConnectionState(), + State: cs, CommonAuthInfo: CommonAuthInfo{ SecurityLevel: PrivacyAndIntegrity, }, diff --git a/vendor/google.golang.org/grpc/dialoptions.go b/vendor/google.golang.org/grpc/dialoptions.go index 402493224e06..2b285beee376 100644 --- a/vendor/google.golang.org/grpc/dialoptions.go +++ b/vendor/google.golang.org/grpc/dialoptions.go @@ -21,6 +21,7 @@ package grpc import ( "context" "net" + "net/url" "time" "google.golang.org/grpc/backoff" @@ -32,10 +33,16 @@ import ( "google.golang.org/grpc/internal/binarylog" "google.golang.org/grpc/internal/transport" "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/mem" "google.golang.org/grpc/resolver" "google.golang.org/grpc/stats" ) +const ( + // https://github.com/grpc/proposal/blob/master/A6-client-retries.md#limits-on-retries-and-hedges + defaultMaxCallAttempts = 5 +) + func init() { internal.AddGlobalDialOptions = func(opt ...DialOption) { globalDialOptions = append(globalDialOptions, opt...) @@ -43,10 +50,18 @@ func init() { internal.ClearGlobalDialOptions = func() { globalDialOptions = nil } + internal.AddGlobalPerTargetDialOptions = func(opt any) { + if ptdo, ok := opt.(perTargetDialOption); ok { + globalPerTargetDialOptions = append(globalPerTargetDialOptions, ptdo) + } + } + internal.ClearGlobalPerTargetDialOptions = func() { + globalPerTargetDialOptions = nil + } internal.WithBinaryLogger = withBinaryLogger internal.JoinDialOptions = newJoinDialOption internal.DisableGlobalDialOptions = newDisableGlobalDialOptions - internal.WithRecvBufferPool = withRecvBufferPool + internal.WithBufferPool = withBufferPool } // dialOptions configure a Dial call. dialOptions are set by the DialOption @@ -78,8 +93,8 @@ type dialOptions struct { defaultServiceConfigRawJSON *string resolvers []resolver.Builder idleTimeout time.Duration - recvBufferPool SharedBufferPool defaultScheme string + maxCallAttempts int } // DialOption configures how we set up the connection. @@ -89,6 +104,19 @@ type DialOption interface { var globalDialOptions []DialOption +// perTargetDialOption takes a parsed target and returns a dial option to apply. +// +// This gets called after NewClient() parses the target, and allows per target +// configuration set through a returned DialOption. The DialOption will not take +// effect if specifies a resolver builder, as that Dial Option is factored in +// while parsing target. +type perTargetDialOption interface { + // DialOption returns a Dial Option to apply. + DialOptionForTarget(parsedTarget url.URL) DialOption +} + +var globalPerTargetDialOptions []perTargetDialOption + // EmptyDialOption does not alter the dial configuration. It can be embedded in // another structure to build custom dial options. // @@ -300,6 +328,9 @@ func withBackoff(bs internalbackoff.Strategy) DialOption { // // Use of this feature is not recommended. For more information, please see: // https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md +// +// Deprecated: this DialOption is not supported by NewClient. +// Will be supported throughout 1.x. func WithBlock() DialOption { return newFuncDialOption(func(o *dialOptions) { o.block = true @@ -314,10 +345,8 @@ func WithBlock() DialOption { // Use of this feature is not recommended. For more information, please see: // https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md // -// # Experimental -// -// Notice: This API is EXPERIMENTAL and may be changed or removed in a -// later release. +// Deprecated: this DialOption is not supported by NewClient. +// Will be supported throughout 1.x. func WithReturnConnectionError() DialOption { return newFuncDialOption(func(o *dialOptions) { o.block = true @@ -387,8 +416,8 @@ func WithCredentialsBundle(b credentials.Bundle) DialOption { // WithTimeout returns a DialOption that configures a timeout for dialing a // ClientConn initially. This is valid if and only if WithBlock() is present. // -// Deprecated: use DialContext instead of Dial and context.WithTimeout -// instead. Will be supported throughout 1.x. +// Deprecated: this DialOption is not supported by NewClient. +// Will be supported throughout 1.x. func WithTimeout(d time.Duration) DialOption { return newFuncDialOption(func(o *dialOptions) { o.timeout = d @@ -470,9 +499,8 @@ func withBinaryLogger(bl binarylog.Logger) DialOption { // Use of this feature is not recommended. For more information, please see: // https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md // -// # Experimental -// -// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// Deprecated: this DialOption is not supported by NewClient. +// This API may be changed or removed in a // later release. func FailOnNonTempDialError(f bool) DialOption { return newFuncDialOption(func(o *dialOptions) { @@ -490,6 +518,8 @@ func WithUserAgent(s string) DialOption { // WithKeepaliveParams returns a DialOption that specifies keepalive parameters // for the client transport. +// +// Keepalive is disabled by default. func WithKeepaliveParams(kp keepalive.ClientParameters) DialOption { if kp.Time < internal.KeepaliveMinPingTime { logger.Warningf("Adjusting keepalive ping interval to minimum period of %v", internal.KeepaliveMinPingTime) @@ -601,12 +631,22 @@ func WithDisableRetry() DialOption { }) } +// MaxHeaderListSizeDialOption is a DialOption that specifies the maximum +// (uncompressed) size of header list that the client is prepared to accept. +type MaxHeaderListSizeDialOption struct { + MaxHeaderListSize uint32 +} + +func (o MaxHeaderListSizeDialOption) apply(do *dialOptions) { + do.copts.MaxHeaderListSize = &o.MaxHeaderListSize +} + // WithMaxHeaderListSize returns a DialOption that specifies the maximum // (uncompressed) size of header list that the client is prepared to accept. func WithMaxHeaderListSize(s uint32) DialOption { - return newFuncDialOption(func(o *dialOptions) { - o.copts.MaxHeaderListSize = &s - }) + return MaxHeaderListSizeDialOption{ + MaxHeaderListSize: s, + } } // WithDisableHealthCheck disables the LB channel health checking for all @@ -639,16 +679,17 @@ func defaultDialOptions() dialOptions { WriteBufferSize: defaultWriteBufSize, UseProxy: true, UserAgent: grpcUA, + BufferPool: mem.DefaultBufferPool(), }, bs: internalbackoff.DefaultExponential, healthCheckFunc: internal.HealthCheckFunc, idleTimeout: 30 * time.Minute, - recvBufferPool: nopBufferPool{}, defaultScheme: "dns", + maxCallAttempts: defaultMaxCallAttempts, } } -// withGetMinConnectDeadline specifies the function that clientconn uses to +// withMinConnectDeadline specifies the function that clientconn uses to // get minConnectDeadline. This can be used to make connection attempts happen // faster/slower. // @@ -702,25 +743,25 @@ func WithIdleTimeout(d time.Duration) DialOption { }) } -// WithRecvBufferPool returns a DialOption that configures the ClientConn -// to use the provided shared buffer pool for parsing incoming messages. Depending -// on the application's workload, this could result in reduced memory allocation. -// -// If you are unsure about how to implement a memory pool but want to utilize one, -// begin with grpc.NewSharedBufferPool. -// -// Note: The shared buffer pool feature will not be active if any of the following -// options are used: WithStatsHandler, EnableTracing, or binary logging. In such -// cases, the shared buffer pool will be ignored. +// WithMaxCallAttempts returns a DialOption that configures the maximum number +// of attempts per call (including retries and hedging) using the channel. +// Service owners may specify a higher value for these parameters, but higher +// values will be treated as equal to the maximum value by the client +// implementation. This mitigates security concerns related to the service +// config being transferred to the client via DNS. // -// Deprecated: use experimental.WithRecvBufferPool instead. Will be deleted in -// v1.60.0 or later. -func WithRecvBufferPool(bufferPool SharedBufferPool) DialOption { - return withRecvBufferPool(bufferPool) +// A value of 5 will be used if this dial option is not set or n < 2. +func WithMaxCallAttempts(n int) DialOption { + return newFuncDialOption(func(o *dialOptions) { + if n < 2 { + n = defaultMaxCallAttempts + } + o.maxCallAttempts = n + }) } -func withRecvBufferPool(bufferPool SharedBufferPool) DialOption { +func withBufferPool(bufferPool mem.BufferPool) DialOption { return newFuncDialOption(func(o *dialOptions) { - o.recvBufferPool = bufferPool + o.copts.BufferPool = bufferPool }) } diff --git a/vendor/google.golang.org/grpc/doc.go b/vendor/google.golang.org/grpc/doc.go index 0022859ad746..e7b532b6f806 100644 --- a/vendor/google.golang.org/grpc/doc.go +++ b/vendor/google.golang.org/grpc/doc.go @@ -16,7 +16,7 @@ * */ -//go:generate ./regenerate.sh +//go:generate ./scripts/regenerate.sh /* Package grpc implements an RPC system called gRPC. diff --git a/vendor/google.golang.org/grpc/encoding/encoding.go b/vendor/google.golang.org/grpc/encoding/encoding.go index 5ebf88d7147f..11d0ae142c42 100644 --- a/vendor/google.golang.org/grpc/encoding/encoding.go +++ b/vendor/google.golang.org/grpc/encoding/encoding.go @@ -94,7 +94,7 @@ type Codec interface { Name() string } -var registeredCodecs = make(map[string]Codec) +var registeredCodecs = make(map[string]any) // RegisterCodec registers the provided Codec for use with all gRPC clients and // servers. @@ -126,5 +126,6 @@ func RegisterCodec(codec Codec) { // // The content-subtype is expected to be lowercase. func GetCodec(contentSubtype string) Codec { - return registeredCodecs[contentSubtype] + c, _ := registeredCodecs[contentSubtype].(Codec) + return c } diff --git a/vendor/google.golang.org/grpc/encoding/encoding_v2.go b/vendor/google.golang.org/grpc/encoding/encoding_v2.go new file mode 100644 index 000000000000..074c5e234a7b --- /dev/null +++ b/vendor/google.golang.org/grpc/encoding/encoding_v2.go @@ -0,0 +1,81 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package encoding + +import ( + "strings" + + "google.golang.org/grpc/mem" +) + +// CodecV2 defines the interface gRPC uses to encode and decode messages. Note +// that implementations of this interface must be thread safe; a CodecV2's +// methods can be called from concurrent goroutines. +type CodecV2 interface { + // Marshal returns the wire format of v. The buffers in the returned + // [mem.BufferSlice] must have at least one reference each, which will be freed + // by gRPC when they are no longer needed. + Marshal(v any) (out mem.BufferSlice, err error) + // Unmarshal parses the wire format into v. Note that data will be freed as soon + // as this function returns. If the codec wishes to guarantee access to the data + // after this function, it must take its own reference that it frees when it is + // no longer needed. + Unmarshal(data mem.BufferSlice, v any) error + // Name returns the name of the Codec implementation. The returned string + // will be used as part of content type in transmission. The result must be + // static; the result cannot change between calls. + Name() string +} + +// RegisterCodecV2 registers the provided CodecV2 for use with all gRPC clients and +// servers. +// +// The CodecV2 will be stored and looked up by result of its Name() method, which +// should match the content-subtype of the encoding handled by the CodecV2. This +// is case-insensitive, and is stored and looked up as lowercase. If the +// result of calling Name() is an empty string, RegisterCodecV2 will panic. See +// Content-Type on +// https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests for +// more details. +// +// If both a Codec and CodecV2 are registered with the same name, the CodecV2 +// will be used. +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. If multiple Codecs are +// registered with the same name, the one registered last will take effect. +func RegisterCodecV2(codec CodecV2) { + if codec == nil { + panic("cannot register a nil CodecV2") + } + if codec.Name() == "" { + panic("cannot register CodecV2 with empty string result for Name()") + } + contentSubtype := strings.ToLower(codec.Name()) + registeredCodecs[contentSubtype] = codec +} + +// GetCodecV2 gets a registered CodecV2 by content-subtype, or nil if no CodecV2 is +// registered for the content-subtype. +// +// The content-subtype is expected to be lowercase. +func GetCodecV2(contentSubtype string) CodecV2 { + c, _ := registeredCodecs[contentSubtype].(CodecV2) + return c +} diff --git a/vendor/google.golang.org/grpc/encoding/proto/proto.go b/vendor/google.golang.org/grpc/encoding/proto/proto.go index 66d5cdf03ec5..ceec319dd2fb 100644 --- a/vendor/google.golang.org/grpc/encoding/proto/proto.go +++ b/vendor/google.golang.org/grpc/encoding/proto/proto.go @@ -1,6 +1,6 @@ /* * - * Copyright 2018 gRPC authors. + * Copyright 2024 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,6 +24,7 @@ import ( "fmt" "google.golang.org/grpc/encoding" + "google.golang.org/grpc/mem" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/protoadapt" ) @@ -32,28 +33,51 @@ import ( const Name = "proto" func init() { - encoding.RegisterCodec(codec{}) + encoding.RegisterCodecV2(&codecV2{}) } -// codec is a Codec implementation with protobuf. It is the default codec for gRPC. -type codec struct{} +// codec is a CodecV2 implementation with protobuf. It is the default codec for +// gRPC. +type codecV2 struct{} -func (codec) Marshal(v any) ([]byte, error) { +func (c *codecV2) Marshal(v any) (data mem.BufferSlice, err error) { vv := messageV2Of(v) if vv == nil { - return nil, fmt.Errorf("failed to marshal, message is %T, want proto.Message", v) + return nil, fmt.Errorf("proto: failed to marshal, message is %T, want proto.Message", v) } - return proto.Marshal(vv) + size := proto.Size(vv) + if mem.IsBelowBufferPoolingThreshold(size) { + buf, err := proto.Marshal(vv) + if err != nil { + return nil, err + } + data = append(data, mem.SliceBuffer(buf)) + } else { + pool := mem.DefaultBufferPool() + buf := pool.Get(size) + if _, err := (proto.MarshalOptions{}).MarshalAppend((*buf)[:0], vv); err != nil { + pool.Put(buf) + return nil, err + } + data = append(data, mem.NewBuffer(buf, pool)) + } + + return data, nil } -func (codec) Unmarshal(data []byte, v any) error { +func (c *codecV2) Unmarshal(data mem.BufferSlice, v any) (err error) { vv := messageV2Of(v) if vv == nil { return fmt.Errorf("failed to unmarshal, message is %T, want proto.Message", v) } - return proto.Unmarshal(data, vv) + buf := data.MaterializeToBuffer(mem.DefaultBufferPool()) + defer buf.Free() + // TODO: Upgrade proto.Unmarshal to support mem.BufferSlice. Right now, it's not + // really possible without a major overhaul of the proto package, but the + // vtprotobuf library may be able to support this. + return proto.Unmarshal(buf.ReadOnlyData(), vv) } func messageV2Of(v any) proto.Message { @@ -67,6 +91,6 @@ func messageV2Of(v any) proto.Message { return nil } -func (codec) Name() string { +func (c *codecV2) Name() string { return Name } diff --git a/vendor/google.golang.org/grpc/experimental/stats/metricregistry.go b/vendor/google.golang.org/grpc/experimental/stats/metricregistry.go new file mode 100644 index 000000000000..1d827dd5d9d4 --- /dev/null +++ b/vendor/google.golang.org/grpc/experimental/stats/metricregistry.go @@ -0,0 +1,269 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package stats + +import ( + "maps" + + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/internal" +) + +func init() { + internal.SnapshotMetricRegistryForTesting = snapshotMetricsRegistryForTesting +} + +var logger = grpclog.Component("metrics-registry") + +// DefaultMetrics are the default metrics registered through global metrics +// registry. This is written to at initialization time only, and is read only +// after initialization. +var DefaultMetrics = NewMetrics() + +// MetricDescriptor is the data for a registered metric. +type MetricDescriptor struct { + // The name of this metric. This name must be unique across the whole binary + // (including any per call metrics). See + // https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md#metric-instrument-naming-conventions + // for metric naming conventions. + Name Metric + // The description of this metric. + Description string + // The unit (e.g. entries, seconds) of this metric. + Unit string + // The required label keys for this metric. These are intended to + // metrics emitted from a stats handler. + Labels []string + // The optional label keys for this metric. These are intended to attached + // to metrics emitted from a stats handler if configured. + OptionalLabels []string + // Whether this metric is on by default. + Default bool + // The type of metric. This is set by the metric registry, and not intended + // to be set by a component registering a metric. + Type MetricType + // Bounds are the bounds of this metric. This only applies to histogram + // metrics. If unset or set with length 0, stats handlers will fall back to + // default bounds. + Bounds []float64 +} + +// MetricType is the type of metric. +type MetricType int + +// Type of metric supported by this instrument registry. +const ( + MetricTypeIntCount MetricType = iota + MetricTypeFloatCount + MetricTypeIntHisto + MetricTypeFloatHisto + MetricTypeIntGauge +) + +// Int64CountHandle is a typed handle for a int count metric. This handle +// is passed at the recording point in order to know which metric to record +// on. +type Int64CountHandle MetricDescriptor + +// Descriptor returns the int64 count handle typecast to a pointer to a +// MetricDescriptor. +func (h *Int64CountHandle) Descriptor() *MetricDescriptor { + return (*MetricDescriptor)(h) +} + +// Record records the int64 count value on the metrics recorder provided. +func (h *Int64CountHandle) Record(recorder MetricsRecorder, incr int64, labels ...string) { + recorder.RecordInt64Count(h, incr, labels...) +} + +// Float64CountHandle is a typed handle for a float count metric. This handle is +// passed at the recording point in order to know which metric to record on. +type Float64CountHandle MetricDescriptor + +// Descriptor returns the float64 count handle typecast to a pointer to a +// MetricDescriptor. +func (h *Float64CountHandle) Descriptor() *MetricDescriptor { + return (*MetricDescriptor)(h) +} + +// Record records the float64 count value on the metrics recorder provided. +func (h *Float64CountHandle) Record(recorder MetricsRecorder, incr float64, labels ...string) { + recorder.RecordFloat64Count(h, incr, labels...) +} + +// Int64HistoHandle is a typed handle for an int histogram metric. This handle +// is passed at the recording point in order to know which metric to record on. +type Int64HistoHandle MetricDescriptor + +// Descriptor returns the int64 histo handle typecast to a pointer to a +// MetricDescriptor. +func (h *Int64HistoHandle) Descriptor() *MetricDescriptor { + return (*MetricDescriptor)(h) +} + +// Record records the int64 histo value on the metrics recorder provided. +func (h *Int64HistoHandle) Record(recorder MetricsRecorder, incr int64, labels ...string) { + recorder.RecordInt64Histo(h, incr, labels...) +} + +// Float64HistoHandle is a typed handle for a float histogram metric. This +// handle is passed at the recording point in order to know which metric to +// record on. +type Float64HistoHandle MetricDescriptor + +// Descriptor returns the float64 histo handle typecast to a pointer to a +// MetricDescriptor. +func (h *Float64HistoHandle) Descriptor() *MetricDescriptor { + return (*MetricDescriptor)(h) +} + +// Record records the float64 histo value on the metrics recorder provided. +func (h *Float64HistoHandle) Record(recorder MetricsRecorder, incr float64, labels ...string) { + recorder.RecordFloat64Histo(h, incr, labels...) +} + +// Int64GaugeHandle is a typed handle for an int gauge metric. This handle is +// passed at the recording point in order to know which metric to record on. +type Int64GaugeHandle MetricDescriptor + +// Descriptor returns the int64 gauge handle typecast to a pointer to a +// MetricDescriptor. +func (h *Int64GaugeHandle) Descriptor() *MetricDescriptor { + return (*MetricDescriptor)(h) +} + +// Record records the int64 histo value on the metrics recorder provided. +func (h *Int64GaugeHandle) Record(recorder MetricsRecorder, incr int64, labels ...string) { + recorder.RecordInt64Gauge(h, incr, labels...) +} + +// registeredMetrics are the registered metric descriptor names. +var registeredMetrics = make(map[Metric]bool) + +// metricsRegistry contains all of the registered metrics. +// +// This is written to only at init time, and read only after that. +var metricsRegistry = make(map[Metric]*MetricDescriptor) + +// DescriptorForMetric returns the MetricDescriptor from the global registry. +// +// Returns nil if MetricDescriptor not present. +func DescriptorForMetric(metric Metric) *MetricDescriptor { + return metricsRegistry[metric] +} + +func registerMetric(name Metric, def bool) { + if registeredMetrics[name] { + logger.Fatalf("metric %v already registered", name) + } + registeredMetrics[name] = true + if def { + DefaultMetrics = DefaultMetrics.Add(name) + } +} + +// RegisterInt64Count registers the metric description onto the global registry. +// It returns a typed handle to use to recording data. +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. If multiple metrics are +// registered with the same name, this function will panic. +func RegisterInt64Count(descriptor MetricDescriptor) *Int64CountHandle { + registerMetric(descriptor.Name, descriptor.Default) + descriptor.Type = MetricTypeIntCount + descPtr := &descriptor + metricsRegistry[descriptor.Name] = descPtr + return (*Int64CountHandle)(descPtr) +} + +// RegisterFloat64Count registers the metric description onto the global +// registry. It returns a typed handle to use to recording data. +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. If multiple metrics are +// registered with the same name, this function will panic. +func RegisterFloat64Count(descriptor MetricDescriptor) *Float64CountHandle { + registerMetric(descriptor.Name, descriptor.Default) + descriptor.Type = MetricTypeFloatCount + descPtr := &descriptor + metricsRegistry[descriptor.Name] = descPtr + return (*Float64CountHandle)(descPtr) +} + +// RegisterInt64Histo registers the metric description onto the global registry. +// It returns a typed handle to use to recording data. +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. If multiple metrics are +// registered with the same name, this function will panic. +func RegisterInt64Histo(descriptor MetricDescriptor) *Int64HistoHandle { + registerMetric(descriptor.Name, descriptor.Default) + descriptor.Type = MetricTypeIntHisto + descPtr := &descriptor + metricsRegistry[descriptor.Name] = descPtr + return (*Int64HistoHandle)(descPtr) +} + +// RegisterFloat64Histo registers the metric description onto the global +// registry. It returns a typed handle to use to recording data. +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. If multiple metrics are +// registered with the same name, this function will panic. +func RegisterFloat64Histo(descriptor MetricDescriptor) *Float64HistoHandle { + registerMetric(descriptor.Name, descriptor.Default) + descriptor.Type = MetricTypeFloatHisto + descPtr := &descriptor + metricsRegistry[descriptor.Name] = descPtr + return (*Float64HistoHandle)(descPtr) +} + +// RegisterInt64Gauge registers the metric description onto the global registry. +// It returns a typed handle to use to recording data. +// +// NOTE: this function must only be called during initialization time (i.e. in +// an init() function), and is not thread-safe. If multiple metrics are +// registered with the same name, this function will panic. +func RegisterInt64Gauge(descriptor MetricDescriptor) *Int64GaugeHandle { + registerMetric(descriptor.Name, descriptor.Default) + descriptor.Type = MetricTypeIntGauge + descPtr := &descriptor + metricsRegistry[descriptor.Name] = descPtr + return (*Int64GaugeHandle)(descPtr) +} + +// snapshotMetricsRegistryForTesting snapshots the global data of the metrics +// registry. Returns a cleanup function that sets the metrics registry to its +// original state. +func snapshotMetricsRegistryForTesting() func() { + oldDefaultMetrics := DefaultMetrics + oldRegisteredMetrics := registeredMetrics + oldMetricsRegistry := metricsRegistry + + registeredMetrics = make(map[Metric]bool) + metricsRegistry = make(map[Metric]*MetricDescriptor) + maps.Copy(registeredMetrics, registeredMetrics) + maps.Copy(metricsRegistry, metricsRegistry) + + return func() { + DefaultMetrics = oldDefaultMetrics + registeredMetrics = oldRegisteredMetrics + metricsRegistry = oldMetricsRegistry + } +} diff --git a/vendor/google.golang.org/grpc/experimental/stats/metrics.go b/vendor/google.golang.org/grpc/experimental/stats/metrics.go new file mode 100644 index 000000000000..3221f7a633a3 --- /dev/null +++ b/vendor/google.golang.org/grpc/experimental/stats/metrics.go @@ -0,0 +1,114 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +// Package stats contains experimental metrics/stats API's. +package stats + +import "maps" + +// MetricsRecorder records on metrics derived from metric registry. +type MetricsRecorder interface { + // RecordInt64Count records the measurement alongside labels on the int + // count associated with the provided handle. + RecordInt64Count(handle *Int64CountHandle, incr int64, labels ...string) + // RecordFloat64Count records the measurement alongside labels on the float + // count associated with the provided handle. + RecordFloat64Count(handle *Float64CountHandle, incr float64, labels ...string) + // RecordInt64Histo records the measurement alongside labels on the int + // histo associated with the provided handle. + RecordInt64Histo(handle *Int64HistoHandle, incr int64, labels ...string) + // RecordFloat64Histo records the measurement alongside labels on the float + // histo associated with the provided handle. + RecordFloat64Histo(handle *Float64HistoHandle, incr float64, labels ...string) + // RecordInt64Gauge records the measurement alongside labels on the int + // gauge associated with the provided handle. + RecordInt64Gauge(handle *Int64GaugeHandle, incr int64, labels ...string) +} + +// Metric is an identifier for a metric. +type Metric string + +// Metrics is a set of metrics to record. Once created, Metrics is immutable, +// however Add and Remove can make copies with specific metrics added or +// removed, respectively. +// +// Do not construct directly; use NewMetrics instead. +type Metrics struct { + // metrics are the set of metrics to initialize. + metrics map[Metric]bool +} + +// NewMetrics returns a Metrics containing Metrics. +func NewMetrics(metrics ...Metric) *Metrics { + newMetrics := make(map[Metric]bool) + for _, metric := range metrics { + newMetrics[metric] = true + } + return &Metrics{ + metrics: newMetrics, + } +} + +// Metrics returns the metrics set. The returned map is read-only and must not +// be modified. +func (m *Metrics) Metrics() map[Metric]bool { + return m.metrics +} + +// Add adds the metrics to the metrics set and returns a new copy with the +// additional metrics. +func (m *Metrics) Add(metrics ...Metric) *Metrics { + newMetrics := make(map[Metric]bool) + for metric := range m.metrics { + newMetrics[metric] = true + } + + for _, metric := range metrics { + newMetrics[metric] = true + } + return &Metrics{ + metrics: newMetrics, + } +} + +// Join joins the metrics passed in with the metrics set, and returns a new copy +// with the merged metrics. +func (m *Metrics) Join(metrics *Metrics) *Metrics { + newMetrics := make(map[Metric]bool) + maps.Copy(newMetrics, m.metrics) + maps.Copy(newMetrics, metrics.metrics) + return &Metrics{ + metrics: newMetrics, + } +} + +// Remove removes the metrics from the metrics set and returns a new copy with +// the metrics removed. +func (m *Metrics) Remove(metrics ...Metric) *Metrics { + newMetrics := make(map[Metric]bool) + for metric := range m.metrics { + newMetrics[metric] = true + } + + for _, metric := range metrics { + delete(newMetrics, metric) + } + return &Metrics{ + metrics: newMetrics, + } +} diff --git a/vendor/google.golang.org/grpc/grpclog/component.go b/vendor/google.golang.org/grpc/grpclog/component.go index ac73c9ced255..f1ae080dcb81 100644 --- a/vendor/google.golang.org/grpc/grpclog/component.go +++ b/vendor/google.golang.org/grpc/grpclog/component.go @@ -20,8 +20,6 @@ package grpclog import ( "fmt" - - "google.golang.org/grpc/internal/grpclog" ) // componentData records the settings for a component. @@ -33,22 +31,22 @@ var cache = map[string]*componentData{} func (c *componentData) InfoDepth(depth int, args ...any) { args = append([]any{"[" + string(c.name) + "]"}, args...) - grpclog.InfoDepth(depth+1, args...) + InfoDepth(depth+1, args...) } func (c *componentData) WarningDepth(depth int, args ...any) { args = append([]any{"[" + string(c.name) + "]"}, args...) - grpclog.WarningDepth(depth+1, args...) + WarningDepth(depth+1, args...) } func (c *componentData) ErrorDepth(depth int, args ...any) { args = append([]any{"[" + string(c.name) + "]"}, args...) - grpclog.ErrorDepth(depth+1, args...) + ErrorDepth(depth+1, args...) } func (c *componentData) FatalDepth(depth int, args ...any) { args = append([]any{"[" + string(c.name) + "]"}, args...) - grpclog.FatalDepth(depth+1, args...) + FatalDepth(depth+1, args...) } func (c *componentData) Info(args ...any) { diff --git a/vendor/google.golang.org/grpc/grpclog/grpclog.go b/vendor/google.golang.org/grpc/grpclog/grpclog.go index 16928c9cb993..db320105e64e 100644 --- a/vendor/google.golang.org/grpc/grpclog/grpclog.go +++ b/vendor/google.golang.org/grpc/grpclog/grpclog.go @@ -18,18 +18,15 @@ // Package grpclog defines logging for grpc. // -// All logs in transport and grpclb packages only go to verbose level 2. -// All logs in other packages in grpc are logged in spite of the verbosity level. -// -// In the default logger, -// severity level can be set by environment variable GRPC_GO_LOG_SEVERITY_LEVEL, -// verbosity level can be set by GRPC_GO_LOG_VERBOSITY_LEVEL. -package grpclog // import "google.golang.org/grpc/grpclog" +// In the default logger, severity level can be set by environment variable +// GRPC_GO_LOG_SEVERITY_LEVEL, verbosity level can be set by +// GRPC_GO_LOG_VERBOSITY_LEVEL. +package grpclog import ( "os" - "google.golang.org/grpc/internal/grpclog" + "google.golang.org/grpc/grpclog/internal" ) func init() { @@ -38,58 +35,58 @@ func init() { // V reports whether verbosity level l is at least the requested verbose level. func V(l int) bool { - return grpclog.Logger.V(l) + return internal.LoggerV2Impl.V(l) } // Info logs to the INFO log. func Info(args ...any) { - grpclog.Logger.Info(args...) + internal.LoggerV2Impl.Info(args...) } // Infof logs to the INFO log. Arguments are handled in the manner of fmt.Printf. func Infof(format string, args ...any) { - grpclog.Logger.Infof(format, args...) + internal.LoggerV2Impl.Infof(format, args...) } // Infoln logs to the INFO log. Arguments are handled in the manner of fmt.Println. func Infoln(args ...any) { - grpclog.Logger.Infoln(args...) + internal.LoggerV2Impl.Infoln(args...) } // Warning logs to the WARNING log. func Warning(args ...any) { - grpclog.Logger.Warning(args...) + internal.LoggerV2Impl.Warning(args...) } // Warningf logs to the WARNING log. Arguments are handled in the manner of fmt.Printf. func Warningf(format string, args ...any) { - grpclog.Logger.Warningf(format, args...) + internal.LoggerV2Impl.Warningf(format, args...) } // Warningln logs to the WARNING log. Arguments are handled in the manner of fmt.Println. func Warningln(args ...any) { - grpclog.Logger.Warningln(args...) + internal.LoggerV2Impl.Warningln(args...) } // Error logs to the ERROR log. func Error(args ...any) { - grpclog.Logger.Error(args...) + internal.LoggerV2Impl.Error(args...) } // Errorf logs to the ERROR log. Arguments are handled in the manner of fmt.Printf. func Errorf(format string, args ...any) { - grpclog.Logger.Errorf(format, args...) + internal.LoggerV2Impl.Errorf(format, args...) } // Errorln logs to the ERROR log. Arguments are handled in the manner of fmt.Println. func Errorln(args ...any) { - grpclog.Logger.Errorln(args...) + internal.LoggerV2Impl.Errorln(args...) } // Fatal logs to the FATAL log. Arguments are handled in the manner of fmt.Print. // It calls os.Exit() with exit code 1. func Fatal(args ...any) { - grpclog.Logger.Fatal(args...) + internal.LoggerV2Impl.Fatal(args...) // Make sure fatal logs will exit. os.Exit(1) } @@ -97,15 +94,15 @@ func Fatal(args ...any) { // Fatalf logs to the FATAL log. Arguments are handled in the manner of fmt.Printf. // It calls os.Exit() with exit code 1. func Fatalf(format string, args ...any) { - grpclog.Logger.Fatalf(format, args...) + internal.LoggerV2Impl.Fatalf(format, args...) // Make sure fatal logs will exit. os.Exit(1) } // Fatalln logs to the FATAL log. Arguments are handled in the manner of fmt.Println. -// It calle os.Exit()) with exit code 1. +// It calls os.Exit() with exit code 1. func Fatalln(args ...any) { - grpclog.Logger.Fatalln(args...) + internal.LoggerV2Impl.Fatalln(args...) // Make sure fatal logs will exit. os.Exit(1) } @@ -114,19 +111,76 @@ func Fatalln(args ...any) { // // Deprecated: use Info. func Print(args ...any) { - grpclog.Logger.Info(args...) + internal.LoggerV2Impl.Info(args...) } // Printf prints to the logger. Arguments are handled in the manner of fmt.Printf. // // Deprecated: use Infof. func Printf(format string, args ...any) { - grpclog.Logger.Infof(format, args...) + internal.LoggerV2Impl.Infof(format, args...) } // Println prints to the logger. Arguments are handled in the manner of fmt.Println. // // Deprecated: use Infoln. func Println(args ...any) { - grpclog.Logger.Infoln(args...) + internal.LoggerV2Impl.Infoln(args...) +} + +// InfoDepth logs to the INFO log at the specified depth. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func InfoDepth(depth int, args ...any) { + if internal.DepthLoggerV2Impl != nil { + internal.DepthLoggerV2Impl.InfoDepth(depth, args...) + } else { + internal.LoggerV2Impl.Infoln(args...) + } +} + +// WarningDepth logs to the WARNING log at the specified depth. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func WarningDepth(depth int, args ...any) { + if internal.DepthLoggerV2Impl != nil { + internal.DepthLoggerV2Impl.WarningDepth(depth, args...) + } else { + internal.LoggerV2Impl.Warningln(args...) + } +} + +// ErrorDepth logs to the ERROR log at the specified depth. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func ErrorDepth(depth int, args ...any) { + if internal.DepthLoggerV2Impl != nil { + internal.DepthLoggerV2Impl.ErrorDepth(depth, args...) + } else { + internal.LoggerV2Impl.Errorln(args...) + } +} + +// FatalDepth logs to the FATAL log at the specified depth. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func FatalDepth(depth int, args ...any) { + if internal.DepthLoggerV2Impl != nil { + internal.DepthLoggerV2Impl.FatalDepth(depth, args...) + } else { + internal.LoggerV2Impl.Fatalln(args...) + } + os.Exit(1) } diff --git a/vendor/google.golang.org/grpc/grpclog/internal/grpclog.go b/vendor/google.golang.org/grpc/grpclog/internal/grpclog.go new file mode 100644 index 000000000000..59c03bc14c2a --- /dev/null +++ b/vendor/google.golang.org/grpc/grpclog/internal/grpclog.go @@ -0,0 +1,26 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +// Package internal contains functionality internal to the grpclog package. +package internal + +// LoggerV2Impl is the logger used for the non-depth log functions. +var LoggerV2Impl LoggerV2 + +// DepthLoggerV2Impl is the logger used for the depth log functions. +var DepthLoggerV2Impl DepthLoggerV2 diff --git a/vendor/google.golang.org/grpc/grpclog/internal/logger.go b/vendor/google.golang.org/grpc/grpclog/internal/logger.go new file mode 100644 index 000000000000..e524fdd40b23 --- /dev/null +++ b/vendor/google.golang.org/grpc/grpclog/internal/logger.go @@ -0,0 +1,87 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package internal + +// Logger mimics golang's standard Logger as an interface. +// +// Deprecated: use LoggerV2. +type Logger interface { + Fatal(args ...any) + Fatalf(format string, args ...any) + Fatalln(args ...any) + Print(args ...any) + Printf(format string, args ...any) + Println(args ...any) +} + +// LoggerWrapper wraps Logger into a LoggerV2. +type LoggerWrapper struct { + Logger +} + +// Info logs to INFO log. Arguments are handled in the manner of fmt.Print. +func (l *LoggerWrapper) Info(args ...any) { + l.Logger.Print(args...) +} + +// Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println. +func (l *LoggerWrapper) Infoln(args ...any) { + l.Logger.Println(args...) +} + +// Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf. +func (l *LoggerWrapper) Infof(format string, args ...any) { + l.Logger.Printf(format, args...) +} + +// Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print. +func (l *LoggerWrapper) Warning(args ...any) { + l.Logger.Print(args...) +} + +// Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println. +func (l *LoggerWrapper) Warningln(args ...any) { + l.Logger.Println(args...) +} + +// Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf. +func (l *LoggerWrapper) Warningf(format string, args ...any) { + l.Logger.Printf(format, args...) +} + +// Error logs to ERROR log. Arguments are handled in the manner of fmt.Print. +func (l *LoggerWrapper) Error(args ...any) { + l.Logger.Print(args...) +} + +// Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println. +func (l *LoggerWrapper) Errorln(args ...any) { + l.Logger.Println(args...) +} + +// Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. +func (l *LoggerWrapper) Errorf(format string, args ...any) { + l.Logger.Printf(format, args...) +} + +// V reports whether verbosity level l is at least the requested verbose level. +func (*LoggerWrapper) V(int) bool { + // Returns true for all verbose level. + return true +} diff --git a/vendor/google.golang.org/grpc/grpclog/internal/loggerv2.go b/vendor/google.golang.org/grpc/grpclog/internal/loggerv2.go new file mode 100644 index 000000000000..07df71e98a87 --- /dev/null +++ b/vendor/google.golang.org/grpc/grpclog/internal/loggerv2.go @@ -0,0 +1,204 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package internal + +import ( + "encoding/json" + "fmt" + "io" + "log" + "os" +) + +// LoggerV2 does underlying logging work for grpclog. +type LoggerV2 interface { + // Info logs to INFO log. Arguments are handled in the manner of fmt.Print. + Info(args ...any) + // Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println. + Infoln(args ...any) + // Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf. + Infof(format string, args ...any) + // Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print. + Warning(args ...any) + // Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println. + Warningln(args ...any) + // Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf. + Warningf(format string, args ...any) + // Error logs to ERROR log. Arguments are handled in the manner of fmt.Print. + Error(args ...any) + // Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println. + Errorln(args ...any) + // Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. + Errorf(format string, args ...any) + // Fatal logs to ERROR log. Arguments are handled in the manner of fmt.Print. + // gRPC ensures that all Fatal logs will exit with os.Exit(1). + // Implementations may also call os.Exit() with a non-zero exit code. + Fatal(args ...any) + // Fatalln logs to ERROR log. Arguments are handled in the manner of fmt.Println. + // gRPC ensures that all Fatal logs will exit with os.Exit(1). + // Implementations may also call os.Exit() with a non-zero exit code. + Fatalln(args ...any) + // Fatalf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. + // gRPC ensures that all Fatal logs will exit with os.Exit(1). + // Implementations may also call os.Exit() with a non-zero exit code. + Fatalf(format string, args ...any) + // V reports whether verbosity level l is at least the requested verbose level. + V(l int) bool +} + +// DepthLoggerV2 logs at a specified call frame. If a LoggerV2 also implements +// DepthLoggerV2, the below functions will be called with the appropriate stack +// depth set for trivial functions the logger may ignore. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type DepthLoggerV2 interface { + LoggerV2 + // InfoDepth logs to INFO log at the specified depth. Arguments are handled in the manner of fmt.Println. + InfoDepth(depth int, args ...any) + // WarningDepth logs to WARNING log at the specified depth. Arguments are handled in the manner of fmt.Println. + WarningDepth(depth int, args ...any) + // ErrorDepth logs to ERROR log at the specified depth. Arguments are handled in the manner of fmt.Println. + ErrorDepth(depth int, args ...any) + // FatalDepth logs to FATAL log at the specified depth. Arguments are handled in the manner of fmt.Println. + FatalDepth(depth int, args ...any) +} + +const ( + // infoLog indicates Info severity. + infoLog int = iota + // warningLog indicates Warning severity. + warningLog + // errorLog indicates Error severity. + errorLog + // fatalLog indicates Fatal severity. + fatalLog +) + +// severityName contains the string representation of each severity. +var severityName = []string{ + infoLog: "INFO", + warningLog: "WARNING", + errorLog: "ERROR", + fatalLog: "FATAL", +} + +// loggerT is the default logger used by grpclog. +type loggerT struct { + m []*log.Logger + v int + jsonFormat bool +} + +func (g *loggerT) output(severity int, s string) { + sevStr := severityName[severity] + if !g.jsonFormat { + g.m[severity].Output(2, fmt.Sprintf("%v: %v", sevStr, s)) + return + } + // TODO: we can also include the logging component, but that needs more + // (API) changes. + b, _ := json.Marshal(map[string]string{ + "severity": sevStr, + "message": s, + }) + g.m[severity].Output(2, string(b)) +} + +func (g *loggerT) Info(args ...any) { + g.output(infoLog, fmt.Sprint(args...)) +} + +func (g *loggerT) Infoln(args ...any) { + g.output(infoLog, fmt.Sprintln(args...)) +} + +func (g *loggerT) Infof(format string, args ...any) { + g.output(infoLog, fmt.Sprintf(format, args...)) +} + +func (g *loggerT) Warning(args ...any) { + g.output(warningLog, fmt.Sprint(args...)) +} + +func (g *loggerT) Warningln(args ...any) { + g.output(warningLog, fmt.Sprintln(args...)) +} + +func (g *loggerT) Warningf(format string, args ...any) { + g.output(warningLog, fmt.Sprintf(format, args...)) +} + +func (g *loggerT) Error(args ...any) { + g.output(errorLog, fmt.Sprint(args...)) +} + +func (g *loggerT) Errorln(args ...any) { + g.output(errorLog, fmt.Sprintln(args...)) +} + +func (g *loggerT) Errorf(format string, args ...any) { + g.output(errorLog, fmt.Sprintf(format, args...)) +} + +func (g *loggerT) Fatal(args ...any) { + g.output(fatalLog, fmt.Sprint(args...)) + os.Exit(1) +} + +func (g *loggerT) Fatalln(args ...any) { + g.output(fatalLog, fmt.Sprintln(args...)) + os.Exit(1) +} + +func (g *loggerT) Fatalf(format string, args ...any) { + g.output(fatalLog, fmt.Sprintf(format, args...)) + os.Exit(1) +} + +func (g *loggerT) V(l int) bool { + return l <= g.v +} + +// LoggerV2Config configures the LoggerV2 implementation. +type LoggerV2Config struct { + // Verbosity sets the verbosity level of the logger. + Verbosity int + // FormatJSON controls whether the logger should output logs in JSON format. + FormatJSON bool +} + +// NewLoggerV2 creates a new LoggerV2 instance with the provided configuration. +// The infoW, warningW, and errorW writers are used to write log messages of +// different severity levels. +func NewLoggerV2(infoW, warningW, errorW io.Writer, c LoggerV2Config) LoggerV2 { + var m []*log.Logger + flag := log.LstdFlags + if c.FormatJSON { + flag = 0 + } + m = append(m, log.New(infoW, "", flag)) + m = append(m, log.New(io.MultiWriter(infoW, warningW), "", flag)) + ew := io.MultiWriter(infoW, warningW, errorW) // ew will be used for error and fatal. + m = append(m, log.New(ew, "", flag)) + m = append(m, log.New(ew, "", flag)) + return &loggerT{m: m, v: c.Verbosity, jsonFormat: c.FormatJSON} +} diff --git a/vendor/google.golang.org/grpc/grpclog/logger.go b/vendor/google.golang.org/grpc/grpclog/logger.go index b1674d8267ca..4b203585707a 100644 --- a/vendor/google.golang.org/grpc/grpclog/logger.go +++ b/vendor/google.golang.org/grpc/grpclog/logger.go @@ -18,70 +18,17 @@ package grpclog -import "google.golang.org/grpc/internal/grpclog" +import "google.golang.org/grpc/grpclog/internal" // Logger mimics golang's standard Logger as an interface. // // Deprecated: use LoggerV2. -type Logger interface { - Fatal(args ...any) - Fatalf(format string, args ...any) - Fatalln(args ...any) - Print(args ...any) - Printf(format string, args ...any) - Println(args ...any) -} +type Logger internal.Logger // SetLogger sets the logger that is used in grpc. Call only from // init() functions. // // Deprecated: use SetLoggerV2. func SetLogger(l Logger) { - grpclog.Logger = &loggerWrapper{Logger: l} -} - -// loggerWrapper wraps Logger into a LoggerV2. -type loggerWrapper struct { - Logger -} - -func (g *loggerWrapper) Info(args ...any) { - g.Logger.Print(args...) -} - -func (g *loggerWrapper) Infoln(args ...any) { - g.Logger.Println(args...) -} - -func (g *loggerWrapper) Infof(format string, args ...any) { - g.Logger.Printf(format, args...) -} - -func (g *loggerWrapper) Warning(args ...any) { - g.Logger.Print(args...) -} - -func (g *loggerWrapper) Warningln(args ...any) { - g.Logger.Println(args...) -} - -func (g *loggerWrapper) Warningf(format string, args ...any) { - g.Logger.Printf(format, args...) -} - -func (g *loggerWrapper) Error(args ...any) { - g.Logger.Print(args...) -} - -func (g *loggerWrapper) Errorln(args ...any) { - g.Logger.Println(args...) -} - -func (g *loggerWrapper) Errorf(format string, args ...any) { - g.Logger.Printf(format, args...) -} - -func (g *loggerWrapper) V(l int) bool { - // Returns true for all verbose level. - return true + internal.LoggerV2Impl = &internal.LoggerWrapper{Logger: l} } diff --git a/vendor/google.golang.org/grpc/grpclog/loggerv2.go b/vendor/google.golang.org/grpc/grpclog/loggerv2.go index ecfd36d71303..892dc13d164b 100644 --- a/vendor/google.golang.org/grpc/grpclog/loggerv2.go +++ b/vendor/google.golang.org/grpc/grpclog/loggerv2.go @@ -19,52 +19,16 @@ package grpclog import ( - "encoding/json" - "fmt" "io" - "log" "os" "strconv" "strings" - "google.golang.org/grpc/internal/grpclog" + "google.golang.org/grpc/grpclog/internal" ) // LoggerV2 does underlying logging work for grpclog. -type LoggerV2 interface { - // Info logs to INFO log. Arguments are handled in the manner of fmt.Print. - Info(args ...any) - // Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println. - Infoln(args ...any) - // Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf. - Infof(format string, args ...any) - // Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print. - Warning(args ...any) - // Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println. - Warningln(args ...any) - // Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf. - Warningf(format string, args ...any) - // Error logs to ERROR log. Arguments are handled in the manner of fmt.Print. - Error(args ...any) - // Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println. - Errorln(args ...any) - // Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. - Errorf(format string, args ...any) - // Fatal logs to ERROR log. Arguments are handled in the manner of fmt.Print. - // gRPC ensures that all Fatal logs will exit with os.Exit(1). - // Implementations may also call os.Exit() with a non-zero exit code. - Fatal(args ...any) - // Fatalln logs to ERROR log. Arguments are handled in the manner of fmt.Println. - // gRPC ensures that all Fatal logs will exit with os.Exit(1). - // Implementations may also call os.Exit() with a non-zero exit code. - Fatalln(args ...any) - // Fatalf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. - // gRPC ensures that all Fatal logs will exit with os.Exit(1). - // Implementations may also call os.Exit() with a non-zero exit code. - Fatalf(format string, args ...any) - // V reports whether verbosity level l is at least the requested verbose level. - V(l int) bool -} +type LoggerV2 internal.LoggerV2 // SetLoggerV2 sets logger that is used in grpc to a V2 logger. // Not mutex-protected, should be called before any gRPC functions. @@ -72,34 +36,8 @@ func SetLoggerV2(l LoggerV2) { if _, ok := l.(*componentData); ok { panic("cannot use component logger as grpclog logger") } - grpclog.Logger = l - grpclog.DepthLogger, _ = l.(grpclog.DepthLoggerV2) -} - -const ( - // infoLog indicates Info severity. - infoLog int = iota - // warningLog indicates Warning severity. - warningLog - // errorLog indicates Error severity. - errorLog - // fatalLog indicates Fatal severity. - fatalLog -) - -// severityName contains the string representation of each severity. -var severityName = []string{ - infoLog: "INFO", - warningLog: "WARNING", - errorLog: "ERROR", - fatalLog: "FATAL", -} - -// loggerT is the default logger used by grpclog. -type loggerT struct { - m []*log.Logger - v int - jsonFormat bool + internal.LoggerV2Impl = l + internal.DepthLoggerV2Impl, _ = l.(internal.DepthLoggerV2) } // NewLoggerV2 creates a loggerV2 with the provided writers. @@ -108,32 +46,13 @@ type loggerT struct { // Warning logs will be written to warningW and infoW. // Info logs will be written to infoW. func NewLoggerV2(infoW, warningW, errorW io.Writer) LoggerV2 { - return newLoggerV2WithConfig(infoW, warningW, errorW, loggerV2Config{}) + return internal.NewLoggerV2(infoW, warningW, errorW, internal.LoggerV2Config{}) } // NewLoggerV2WithVerbosity creates a loggerV2 with the provided writers and // verbosity level. func NewLoggerV2WithVerbosity(infoW, warningW, errorW io.Writer, v int) LoggerV2 { - return newLoggerV2WithConfig(infoW, warningW, errorW, loggerV2Config{verbose: v}) -} - -type loggerV2Config struct { - verbose int - jsonFormat bool -} - -func newLoggerV2WithConfig(infoW, warningW, errorW io.Writer, c loggerV2Config) LoggerV2 { - var m []*log.Logger - flag := log.LstdFlags - if c.jsonFormat { - flag = 0 - } - m = append(m, log.New(infoW, "", flag)) - m = append(m, log.New(io.MultiWriter(infoW, warningW), "", flag)) - ew := io.MultiWriter(infoW, warningW, errorW) // ew will be used for error and fatal. - m = append(m, log.New(ew, "", flag)) - m = append(m, log.New(ew, "", flag)) - return &loggerT{m: m, v: c.verbose, jsonFormat: c.jsonFormat} + return internal.NewLoggerV2(infoW, warningW, errorW, internal.LoggerV2Config{Verbosity: v}) } // newLoggerV2 creates a loggerV2 to be used as default logger. @@ -161,80 +80,10 @@ func newLoggerV2() LoggerV2 { jsonFormat := strings.EqualFold(os.Getenv("GRPC_GO_LOG_FORMATTER"), "json") - return newLoggerV2WithConfig(infoW, warningW, errorW, loggerV2Config{ - verbose: v, - jsonFormat: jsonFormat, - }) -} - -func (g *loggerT) output(severity int, s string) { - sevStr := severityName[severity] - if !g.jsonFormat { - g.m[severity].Output(2, fmt.Sprintf("%v: %v", sevStr, s)) - return - } - // TODO: we can also include the logging component, but that needs more - // (API) changes. - b, _ := json.Marshal(map[string]string{ - "severity": sevStr, - "message": s, + return internal.NewLoggerV2(infoW, warningW, errorW, internal.LoggerV2Config{ + Verbosity: v, + FormatJSON: jsonFormat, }) - g.m[severity].Output(2, string(b)) -} - -func (g *loggerT) Info(args ...any) { - g.output(infoLog, fmt.Sprint(args...)) -} - -func (g *loggerT) Infoln(args ...any) { - g.output(infoLog, fmt.Sprintln(args...)) -} - -func (g *loggerT) Infof(format string, args ...any) { - g.output(infoLog, fmt.Sprintf(format, args...)) -} - -func (g *loggerT) Warning(args ...any) { - g.output(warningLog, fmt.Sprint(args...)) -} - -func (g *loggerT) Warningln(args ...any) { - g.output(warningLog, fmt.Sprintln(args...)) -} - -func (g *loggerT) Warningf(format string, args ...any) { - g.output(warningLog, fmt.Sprintf(format, args...)) -} - -func (g *loggerT) Error(args ...any) { - g.output(errorLog, fmt.Sprint(args...)) -} - -func (g *loggerT) Errorln(args ...any) { - g.output(errorLog, fmt.Sprintln(args...)) -} - -func (g *loggerT) Errorf(format string, args ...any) { - g.output(errorLog, fmt.Sprintf(format, args...)) -} - -func (g *loggerT) Fatal(args ...any) { - g.output(fatalLog, fmt.Sprint(args...)) - os.Exit(1) -} - -func (g *loggerT) Fatalln(args ...any) { - g.output(fatalLog, fmt.Sprintln(args...)) - os.Exit(1) -} - -func (g *loggerT) Fatalf(format string, args ...any) { - g.output(fatalLog, fmt.Sprintf(format, args...)) - os.Exit(1) -} - -func (g *loggerT) V(l int) bool { - return l <= g.v } // DepthLoggerV2 logs at a specified call frame. If a LoggerV2 also implements @@ -245,14 +94,4 @@ func (g *loggerT) V(l int) bool { // // Notice: This type is EXPERIMENTAL and may be changed or removed in a // later release. -type DepthLoggerV2 interface { - LoggerV2 - // InfoDepth logs to INFO log at the specified depth. Arguments are handled in the manner of fmt.Println. - InfoDepth(depth int, args ...any) - // WarningDepth logs to WARNING log at the specified depth. Arguments are handled in the manner of fmt.Println. - WarningDepth(depth int, args ...any) - // ErrorDepth logs to ERROR log at the specified depth. Arguments are handled in the manner of fmt.Println. - ErrorDepth(depth int, args ...any) - // FatalDepth logs to FATAL log at the specified depth. Arguments are handled in the manner of fmt.Println. - FatalDepth(depth int, args ...any) -} +type DepthLoggerV2 internal.DepthLoggerV2 diff --git a/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go b/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go index 5bf880d4190d..d92335445f65 100644 --- a/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go +++ b/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go @@ -17,8 +17,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.25.2 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: grpc/health/v1/health.proto package grpc_health_v1 @@ -237,7 +237,7 @@ func file_grpc_health_v1_health_proto_rawDescGZIP() []byte { var file_grpc_health_v1_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_grpc_health_v1_health_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_grpc_health_v1_health_proto_goTypes = []interface{}{ +var file_grpc_health_v1_health_proto_goTypes = []any{ (HealthCheckResponse_ServingStatus)(0), // 0: grpc.health.v1.HealthCheckResponse.ServingStatus (*HealthCheckRequest)(nil), // 1: grpc.health.v1.HealthCheckRequest (*HealthCheckResponse)(nil), // 2: grpc.health.v1.HealthCheckResponse @@ -261,7 +261,7 @@ func file_grpc_health_v1_health_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_grpc_health_v1_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_grpc_health_v1_health_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*HealthCheckRequest); i { case 0: return &v.state @@ -273,7 +273,7 @@ func file_grpc_health_v1_health_proto_init() { return nil } } - file_grpc_health_v1_health_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_grpc_health_v1_health_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*HealthCheckResponse); i { case 0: return &v.state diff --git a/vendor/google.golang.org/grpc/health/grpc_health_v1/health_grpc.pb.go b/vendor/google.golang.org/grpc/health/grpc_health_v1/health_grpc.pb.go index 4c46c098dc6e..f96b8ab4927e 100644 --- a/vendor/google.golang.org/grpc/health/grpc_health_v1/health_grpc.pb.go +++ b/vendor/google.golang.org/grpc/health/grpc_health_v1/health_grpc.pb.go @@ -17,8 +17,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.2 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.27.1 // source: grpc/health/v1/health.proto package grpc_health_v1 @@ -32,8 +32,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Health_Check_FullMethodName = "/grpc.health.v1.Health/Check" @@ -43,6 +43,10 @@ const ( // HealthClient is the client API for Health service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// Health is gRPC's mechanism for checking whether a server is able to handle +// RPCs. Its semantics are documented in +// https://github.com/grpc/grpc/blob/master/doc/health-checking.md. type HealthClient interface { // Check gets the health of the specified service. If the requested service // is unknown, the call will fail with status NOT_FOUND. If the caller does @@ -69,7 +73,7 @@ type HealthClient interface { // should assume this method is not supported and should not retry the // call. If the call terminates with any other status (including OK), // clients should retry the call with appropriate exponential backoff. - Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error) + Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[HealthCheckResponse], error) } type healthClient struct { @@ -81,20 +85,22 @@ func NewHealthClient(cc grpc.ClientConnInterface) HealthClient { } func (c *healthClient) Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(HealthCheckResponse) - err := c.cc.Invoke(ctx, Health_Check_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Health_Check_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *healthClient) Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error) { - stream, err := c.cc.NewStream(ctx, &Health_ServiceDesc.Streams[0], Health_Watch_FullMethodName, opts...) +func (c *healthClient) Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[HealthCheckResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &Health_ServiceDesc.Streams[0], Health_Watch_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &healthWatchClient{stream} + x := &grpc.GenericClientStream[HealthCheckRequest, HealthCheckResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -104,26 +110,16 @@ func (c *healthClient) Watch(ctx context.Context, in *HealthCheckRequest, opts . return x, nil } -type Health_WatchClient interface { - Recv() (*HealthCheckResponse, error) - grpc.ClientStream -} - -type healthWatchClient struct { - grpc.ClientStream -} - -func (x *healthWatchClient) Recv() (*HealthCheckResponse, error) { - m := new(HealthCheckResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Health_WatchClient = grpc.ServerStreamingClient[HealthCheckResponse] // HealthServer is the server API for Health service. // All implementations should embed UnimplementedHealthServer -// for forward compatibility +// for forward compatibility. +// +// Health is gRPC's mechanism for checking whether a server is able to handle +// RPCs. Its semantics are documented in +// https://github.com/grpc/grpc/blob/master/doc/health-checking.md. type HealthServer interface { // Check gets the health of the specified service. If the requested service // is unknown, the call will fail with status NOT_FOUND. If the caller does @@ -150,19 +146,23 @@ type HealthServer interface { // should assume this method is not supported and should not retry the // call. If the call terminates with any other status (including OK), // clients should retry the call with appropriate exponential backoff. - Watch(*HealthCheckRequest, Health_WatchServer) error + Watch(*HealthCheckRequest, grpc.ServerStreamingServer[HealthCheckResponse]) error } -// UnimplementedHealthServer should be embedded to have forward compatible implementations. -type UnimplementedHealthServer struct { -} +// UnimplementedHealthServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedHealthServer struct{} func (UnimplementedHealthServer) Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Check not implemented") } -func (UnimplementedHealthServer) Watch(*HealthCheckRequest, Health_WatchServer) error { +func (UnimplementedHealthServer) Watch(*HealthCheckRequest, grpc.ServerStreamingServer[HealthCheckResponse]) error { return status.Errorf(codes.Unimplemented, "method Watch not implemented") } +func (UnimplementedHealthServer) testEmbeddedByValue() {} // UnsafeHealthServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to HealthServer will @@ -172,6 +172,13 @@ type UnsafeHealthServer interface { } func RegisterHealthServer(s grpc.ServiceRegistrar, srv HealthServer) { + // If the following call panics, it indicates UnimplementedHealthServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Health_ServiceDesc, srv) } @@ -198,21 +205,11 @@ func _Health_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { if err := stream.RecvMsg(m); err != nil { return err } - return srv.(HealthServer).Watch(m, &healthWatchServer{stream}) -} - -type Health_WatchServer interface { - Send(*HealthCheckResponse) error - grpc.ServerStream -} - -type healthWatchServer struct { - grpc.ServerStream + return srv.(HealthServer).Watch(m, &grpc.GenericServerStream[HealthCheckRequest, HealthCheckResponse]{ServerStream: stream}) } -func (x *healthWatchServer) Send(m *HealthCheckResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Health_WatchServer = grpc.ServerStreamingServer[HealthCheckResponse] // Health_ServiceDesc is the grpc.ServiceDesc for Health service. // It's only intended for direct use with grpc.RegisterService, diff --git a/vendor/google.golang.org/grpc/health/server.go b/vendor/google.golang.org/grpc/health/server.go index cce6312d77f9..d4b4b7081590 100644 --- a/vendor/google.golang.org/grpc/health/server.go +++ b/vendor/google.golang.org/grpc/health/server.go @@ -51,7 +51,7 @@ func NewServer() *Server { } // Check implements `service Health`. -func (s *Server) Check(ctx context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error) { +func (s *Server) Check(_ context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error) { s.mu.RLock() defer s.mu.RUnlock() if servingStatus, ok := s.statusMap[in.Service]; ok { diff --git a/vendor/google.golang.org/grpc/internal/backoff/backoff.go b/vendor/google.golang.org/grpc/internal/backoff/backoff.go index fed1c011a325..b15cf482d292 100644 --- a/vendor/google.golang.org/grpc/internal/backoff/backoff.go +++ b/vendor/google.golang.org/grpc/internal/backoff/backoff.go @@ -25,10 +25,10 @@ package backoff import ( "context" "errors" + "math/rand" "time" grpcbackoff "google.golang.org/grpc/backoff" - "google.golang.org/grpc/internal/grpcrand" ) // Strategy defines the methodology for backing off after a grpc connection @@ -67,7 +67,7 @@ func (bc Exponential) Backoff(retries int) time.Duration { } // Randomize backoff delays so that if a cluster of requests start at // the same time, they won't operate in lockstep. - backoff *= 1 + bc.Config.Jitter*(grpcrand.Float64()*2-1) + backoff *= 1 + bc.Config.Jitter*(rand.Float64()*2-1) if backoff < 0 { return 0 } diff --git a/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/config.go b/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/config.go index 6bf7f87396f6..13821a926606 100644 --- a/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/config.go +++ b/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/config.go @@ -75,7 +75,6 @@ func ParseConfig(cfg json.RawMessage) (serviceconfig.LoadBalancingConfig, error) if err != nil { return nil, fmt.Errorf("error parsing config for policy %q: %v", name, err) } - return &lbConfig{childBuilder: builder, childConfig: cfg}, nil } diff --git a/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go b/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go index 45d5e50ea9b1..73bb4c4ee9a3 100644 --- a/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go +++ b/vendor/google.golang.org/grpc/internal/balancer/gracefulswitch/gracefulswitch.go @@ -169,7 +169,6 @@ func (gsb *Balancer) latestBalancer() *balancerWrapper { func (gsb *Balancer) UpdateClientConnState(state balancer.ClientConnState) error { // The resolver data is only relevant to the most recent LB Policy. balToUpdate := gsb.latestBalancer() - gsbCfg, ok := state.BalancerConfig.(*lbConfig) if ok { // Switch to the child in the config unless it is already active. diff --git a/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go b/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go index e8456a77c254..9669328914ad 100644 --- a/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go +++ b/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go @@ -65,7 +65,7 @@ type TruncatingMethodLogger struct { callID uint64 idWithinCallGen *callIDGenerator - sink Sink // TODO(blog): make this plugable. + sink Sink // TODO(blog): make this pluggable. } // NewTruncatingMethodLogger returns a new truncating method logger. @@ -80,7 +80,7 @@ func NewTruncatingMethodLogger(h, m uint64) *TruncatingMethodLogger { callID: idGen.next(), idWithinCallGen: &callIDGenerator{}, - sink: DefaultSink, // TODO(blog): make it plugable. + sink: DefaultSink, // TODO(blog): make it pluggable. } } @@ -106,7 +106,7 @@ func (ml *TruncatingMethodLogger) Build(c LogEntryConfig) *binlogpb.GrpcLogEntry } // Log creates a proto binary log entry, and logs it to the sink. -func (ml *TruncatingMethodLogger) Log(ctx context.Context, c LogEntryConfig) { +func (ml *TruncatingMethodLogger) Log(_ context.Context, c LogEntryConfig) { ml.sink.Write(ml.Build(c)) } @@ -397,7 +397,7 @@ func metadataKeyOmit(key string) bool { switch key { case "lb-token", ":path", ":authority", "content-encoding", "content-type", "user-agent", "te": return true - case "grpc-trace-bin": // grpc-trace-bin is special because it's visiable to users. + case "grpc-trace-bin": // grpc-trace-bin is special because it's visible to users. return false } return strings.HasPrefix(key, "grpc-") diff --git a/vendor/google.golang.org/grpc/internal/channelz/channelmap.go b/vendor/google.golang.org/grpc/internal/channelz/channelmap.go index dfe18b08925d..64c791953d01 100644 --- a/vendor/google.golang.org/grpc/internal/channelz/channelmap.go +++ b/vendor/google.golang.org/grpc/internal/channelz/channelmap.go @@ -46,7 +46,7 @@ type entry interface { // channelMap is the storage data structure for channelz. // -// Methods of channelMap can be divided in two two categories with respect to +// Methods of channelMap can be divided into two categories with respect to // locking. // // 1. Methods acquire the global lock. @@ -234,13 +234,6 @@ func copyMap(m map[int64]string) map[int64]string { return n } -func min(a, b int) int { - if a < b { - return a - } - return b -} - func (c *channelMap) getTopChannels(id int64, maxResults int) ([]*Channel, bool) { if maxResults <= 0 { maxResults = EntriesPerPage diff --git a/vendor/google.golang.org/grpc/internal/channelz/funcs.go b/vendor/google.golang.org/grpc/internal/channelz/funcs.go index 03e24e1507aa..078bb81238bc 100644 --- a/vendor/google.golang.org/grpc/internal/channelz/funcs.go +++ b/vendor/google.golang.org/grpc/internal/channelz/funcs.go @@ -33,7 +33,7 @@ var ( // outside this package except by tests. IDGen IDGenerator - db *channelMap = newChannelMap() + db = newChannelMap() // EntriesPerPage defines the number of channelz entries to be shown on a web page. EntriesPerPage = 50 curState int32 diff --git a/vendor/google.golang.org/grpc/internal/channelz/syscall_nonlinux.go b/vendor/google.golang.org/grpc/internal/channelz/syscall_nonlinux.go index d1ed8df6a518..0e6e18e185c7 100644 --- a/vendor/google.golang.org/grpc/internal/channelz/syscall_nonlinux.go +++ b/vendor/google.golang.org/grpc/internal/channelz/syscall_nonlinux.go @@ -35,13 +35,13 @@ type SocketOptionData struct { // Getsockopt defines the function to get socket options requested by channelz. // It is to be passed to syscall.RawConn.Control(). // Windows OS doesn't support Socket Option -func (s *SocketOptionData) Getsockopt(fd uintptr) { +func (s *SocketOptionData) Getsockopt(uintptr) { once.Do(func() { logger.Warning("Channelz: socket options are not supported on non-linux environments") }) } // GetSocketOption gets the socket option info of the conn. -func GetSocketOption(c any) *SocketOptionData { +func GetSocketOption(any) *SocketOptionData { return nil } diff --git a/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go b/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go index 685a3cb41b13..452985f8d8f1 100644 --- a/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go +++ b/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go @@ -28,9 +28,6 @@ import ( var ( // TXTErrIgnore is set if TXT errors should be ignored ("GRPC_GO_IGNORE_TXT_ERRORS" is not "false"). TXTErrIgnore = boolFromEnv("GRPC_GO_IGNORE_TXT_ERRORS", true) - // AdvertiseCompressors is set if registered compressor should be advertised - // ("GRPC_GO_ADVERTISE_COMPRESSORS" is not "false"). - AdvertiseCompressors = boolFromEnv("GRPC_GO_ADVERTISE_COMPRESSORS", true) // RingHashCap indicates the maximum ring size which defaults to 4096 // entries but may be overridden by setting the environment variable // "GRPC_RING_HASH_CAP". This does not override the default bounds @@ -43,6 +40,16 @@ var ( // ALTSMaxConcurrentHandshakes is the maximum number of concurrent ALTS // handshakes that can be performed. ALTSMaxConcurrentHandshakes = uint64FromEnv("GRPC_ALTS_MAX_CONCURRENT_HANDSHAKES", 100, 1, 100) + // EnforceALPNEnabled is set if TLS connections to servers with ALPN disabled + // should be rejected. The HTTP/2 protocol requires ALPN to be enabled, this + // option is present for backward compatibility. This option may be overridden + // by setting the environment variable "GRPC_ENFORCE_ALPN_ENABLED" to "true" + // or "false". + EnforceALPNEnabled = boolFromEnv("GRPC_ENFORCE_ALPN_ENABLED", true) + // XDSFallbackSupport is the env variable that controls whether support for + // xDS fallback is turned on. If this is unset or is false, only the first + // xDS server in the list of server configs will be used. + XDSFallbackSupport = boolFromEnv("GRPC_EXPERIMENTAL_XDS_FALLBACK", false) ) func boolFromEnv(envVar string, def bool) bool { diff --git a/vendor/google.golang.org/grpc/internal/experimental.go b/vendor/google.golang.org/grpc/internal/experimental.go index 7f7044e1731c..7617be215895 100644 --- a/vendor/google.golang.org/grpc/internal/experimental.go +++ b/vendor/google.golang.org/grpc/internal/experimental.go @@ -18,11 +18,11 @@ package internal var ( - // WithRecvBufferPool is implemented by the grpc package and returns a dial + // WithBufferPool is implemented by the grpc package and returns a dial // option to configure a shared buffer pool for a grpc.ClientConn. - WithRecvBufferPool any // func (grpc.SharedBufferPool) grpc.DialOption + WithBufferPool any // func (grpc.SharedBufferPool) grpc.DialOption - // RecvBufferPool is implemented by the grpc package and returns a server + // BufferPool is implemented by the grpc package and returns a server // option to configure a shared buffer pool for a grpc.Server. - RecvBufferPool any // func (grpc.SharedBufferPool) grpc.ServerOption + BufferPool any // func (grpc.SharedBufferPool) grpc.ServerOption ) diff --git a/vendor/google.golang.org/grpc/internal/grpclog/grpclog.go b/vendor/google.golang.org/grpc/internal/grpclog/grpclog.go deleted file mode 100644 index bfc45102ab24..000000000000 --- a/vendor/google.golang.org/grpc/internal/grpclog/grpclog.go +++ /dev/null @@ -1,126 +0,0 @@ -/* - * - * Copyright 2020 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -// Package grpclog (internal) defines depth logging for grpc. -package grpclog - -import ( - "os" -) - -// Logger is the logger used for the non-depth log functions. -var Logger LoggerV2 - -// DepthLogger is the logger used for the depth log functions. -var DepthLogger DepthLoggerV2 - -// InfoDepth logs to the INFO log at the specified depth. -func InfoDepth(depth int, args ...any) { - if DepthLogger != nil { - DepthLogger.InfoDepth(depth, args...) - } else { - Logger.Infoln(args...) - } -} - -// WarningDepth logs to the WARNING log at the specified depth. -func WarningDepth(depth int, args ...any) { - if DepthLogger != nil { - DepthLogger.WarningDepth(depth, args...) - } else { - Logger.Warningln(args...) - } -} - -// ErrorDepth logs to the ERROR log at the specified depth. -func ErrorDepth(depth int, args ...any) { - if DepthLogger != nil { - DepthLogger.ErrorDepth(depth, args...) - } else { - Logger.Errorln(args...) - } -} - -// FatalDepth logs to the FATAL log at the specified depth. -func FatalDepth(depth int, args ...any) { - if DepthLogger != nil { - DepthLogger.FatalDepth(depth, args...) - } else { - Logger.Fatalln(args...) - } - os.Exit(1) -} - -// LoggerV2 does underlying logging work for grpclog. -// This is a copy of the LoggerV2 defined in the external grpclog package. It -// is defined here to avoid a circular dependency. -type LoggerV2 interface { - // Info logs to INFO log. Arguments are handled in the manner of fmt.Print. - Info(args ...any) - // Infoln logs to INFO log. Arguments are handled in the manner of fmt.Println. - Infoln(args ...any) - // Infof logs to INFO log. Arguments are handled in the manner of fmt.Printf. - Infof(format string, args ...any) - // Warning logs to WARNING log. Arguments are handled in the manner of fmt.Print. - Warning(args ...any) - // Warningln logs to WARNING log. Arguments are handled in the manner of fmt.Println. - Warningln(args ...any) - // Warningf logs to WARNING log. Arguments are handled in the manner of fmt.Printf. - Warningf(format string, args ...any) - // Error logs to ERROR log. Arguments are handled in the manner of fmt.Print. - Error(args ...any) - // Errorln logs to ERROR log. Arguments are handled in the manner of fmt.Println. - Errorln(args ...any) - // Errorf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. - Errorf(format string, args ...any) - // Fatal logs to ERROR log. Arguments are handled in the manner of fmt.Print. - // gRPC ensures that all Fatal logs will exit with os.Exit(1). - // Implementations may also call os.Exit() with a non-zero exit code. - Fatal(args ...any) - // Fatalln logs to ERROR log. Arguments are handled in the manner of fmt.Println. - // gRPC ensures that all Fatal logs will exit with os.Exit(1). - // Implementations may also call os.Exit() with a non-zero exit code. - Fatalln(args ...any) - // Fatalf logs to ERROR log. Arguments are handled in the manner of fmt.Printf. - // gRPC ensures that all Fatal logs will exit with os.Exit(1). - // Implementations may also call os.Exit() with a non-zero exit code. - Fatalf(format string, args ...any) - // V reports whether verbosity level l is at least the requested verbose level. - V(l int) bool -} - -// DepthLoggerV2 logs at a specified call frame. If a LoggerV2 also implements -// DepthLoggerV2, the below functions will be called with the appropriate stack -// depth set for trivial functions the logger may ignore. -// This is a copy of the DepthLoggerV2 defined in the external grpclog package. -// It is defined here to avoid a circular dependency. -// -// # Experimental -// -// Notice: This type is EXPERIMENTAL and may be changed or removed in a -// later release. -type DepthLoggerV2 interface { - // InfoDepth logs to INFO log at the specified depth. Arguments are handled in the manner of fmt.Println. - InfoDepth(depth int, args ...any) - // WarningDepth logs to WARNING log at the specified depth. Arguments are handled in the manner of fmt.Println. - WarningDepth(depth int, args ...any) - // ErrorDepth logs to ERROR log at the specified depth. Arguments are handled in the manner of fmt.Println. - ErrorDepth(depth int, args ...any) - // FatalDepth logs to FATAL log at the specified depth. Arguments are handled in the manner of fmt.Println. - FatalDepth(depth int, args ...any) -} diff --git a/vendor/google.golang.org/grpc/internal/grpclog/prefixLogger.go b/vendor/google.golang.org/grpc/internal/grpclog/prefixLogger.go deleted file mode 100644 index faa998de7632..000000000000 --- a/vendor/google.golang.org/grpc/internal/grpclog/prefixLogger.go +++ /dev/null @@ -1,93 +0,0 @@ -/* - * - * Copyright 2020 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package grpclog - -import ( - "fmt" -) - -// PrefixLogger does logging with a prefix. -// -// Logging method on a nil logs without any prefix. -type PrefixLogger struct { - logger DepthLoggerV2 - prefix string -} - -// Infof does info logging. -func (pl *PrefixLogger) Infof(format string, args ...any) { - if pl != nil { - // Handle nil, so the tests can pass in a nil logger. - format = pl.prefix + format - pl.logger.InfoDepth(1, fmt.Sprintf(format, args...)) - return - } - InfoDepth(1, fmt.Sprintf(format, args...)) -} - -// Warningf does warning logging. -func (pl *PrefixLogger) Warningf(format string, args ...any) { - if pl != nil { - format = pl.prefix + format - pl.logger.WarningDepth(1, fmt.Sprintf(format, args...)) - return - } - WarningDepth(1, fmt.Sprintf(format, args...)) -} - -// Errorf does error logging. -func (pl *PrefixLogger) Errorf(format string, args ...any) { - if pl != nil { - format = pl.prefix + format - pl.logger.ErrorDepth(1, fmt.Sprintf(format, args...)) - return - } - ErrorDepth(1, fmt.Sprintf(format, args...)) -} - -// Debugf does info logging at verbose level 2. -func (pl *PrefixLogger) Debugf(format string, args ...any) { - // TODO(6044): Refactor interfaces LoggerV2 and DepthLogger, and maybe - // rewrite PrefixLogger a little to ensure that we don't use the global - // `Logger` here, and instead use the `logger` field. - if !Logger.V(2) { - return - } - if pl != nil { - // Handle nil, so the tests can pass in a nil logger. - format = pl.prefix + format - pl.logger.InfoDepth(1, fmt.Sprintf(format, args...)) - return - } - InfoDepth(1, fmt.Sprintf(format, args...)) - -} - -// V reports whether verbosity level l is at least the requested verbose level. -func (pl *PrefixLogger) V(l int) bool { - // TODO(6044): Refactor interfaces LoggerV2 and DepthLogger, and maybe - // rewrite PrefixLogger a little to ensure that we don't use the global - // `Logger` here, and instead use the `logger` field. - return Logger.V(l) -} - -// NewPrefixLogger creates a prefix logger with the given prefix. -func NewPrefixLogger(logger DepthLoggerV2, prefix string) *PrefixLogger { - return &PrefixLogger{logger: logger, prefix: prefix} -} diff --git a/vendor/google.golang.org/grpc/internal/grpclog/prefix_logger.go b/vendor/google.golang.org/grpc/internal/grpclog/prefix_logger.go new file mode 100644 index 000000000000..092ad187a2c8 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/grpclog/prefix_logger.go @@ -0,0 +1,79 @@ +/* + * + * Copyright 2020 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +// Package grpclog provides logging functionality for internal gRPC packages, +// outside of the functionality provided by the external `grpclog` package. +package grpclog + +import ( + "fmt" + + "google.golang.org/grpc/grpclog" +) + +// PrefixLogger does logging with a prefix. +// +// Logging method on a nil logs without any prefix. +type PrefixLogger struct { + logger grpclog.DepthLoggerV2 + prefix string +} + +// Infof does info logging. +func (pl *PrefixLogger) Infof(format string, args ...any) { + if pl != nil { + // Handle nil, so the tests can pass in a nil logger. + format = pl.prefix + format + pl.logger.InfoDepth(1, fmt.Sprintf(format, args...)) + return + } + grpclog.InfoDepth(1, fmt.Sprintf(format, args...)) +} + +// Warningf does warning logging. +func (pl *PrefixLogger) Warningf(format string, args ...any) { + if pl != nil { + format = pl.prefix + format + pl.logger.WarningDepth(1, fmt.Sprintf(format, args...)) + return + } + grpclog.WarningDepth(1, fmt.Sprintf(format, args...)) +} + +// Errorf does error logging. +func (pl *PrefixLogger) Errorf(format string, args ...any) { + if pl != nil { + format = pl.prefix + format + pl.logger.ErrorDepth(1, fmt.Sprintf(format, args...)) + return + } + grpclog.ErrorDepth(1, fmt.Sprintf(format, args...)) +} + +// V reports whether verbosity level l is at least the requested verbose level. +func (pl *PrefixLogger) V(l int) bool { + if pl != nil { + return pl.logger.V(l) + } + return true +} + +// NewPrefixLogger creates a prefix logger with the given prefix. +func NewPrefixLogger(logger grpclog.DepthLoggerV2, prefix string) *PrefixLogger { + return &PrefixLogger{logger: logger, prefix: prefix} +} diff --git a/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go b/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go deleted file mode 100644 index 0126d6b51082..000000000000 --- a/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go +++ /dev/null @@ -1,100 +0,0 @@ -//go:build !go1.21 - -// TODO: when this file is deleted (after Go 1.20 support is dropped), delete -// all of grpcrand and call the rand package directly. - -/* - * - * Copyright 2018 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -// Package grpcrand implements math/rand functions in a concurrent-safe way -// with a global random source, independent of math/rand's global source. -package grpcrand - -import ( - "math/rand" - "sync" - "time" -) - -var ( - r = rand.New(rand.NewSource(time.Now().UnixNano())) - mu sync.Mutex -) - -// Int implements rand.Int on the grpcrand global source. -func Int() int { - mu.Lock() - defer mu.Unlock() - return r.Int() -} - -// Int63n implements rand.Int63n on the grpcrand global source. -func Int63n(n int64) int64 { - mu.Lock() - defer mu.Unlock() - return r.Int63n(n) -} - -// Intn implements rand.Intn on the grpcrand global source. -func Intn(n int) int { - mu.Lock() - defer mu.Unlock() - return r.Intn(n) -} - -// Int31n implements rand.Int31n on the grpcrand global source. -func Int31n(n int32) int32 { - mu.Lock() - defer mu.Unlock() - return r.Int31n(n) -} - -// Float64 implements rand.Float64 on the grpcrand global source. -func Float64() float64 { - mu.Lock() - defer mu.Unlock() - return r.Float64() -} - -// Uint64 implements rand.Uint64 on the grpcrand global source. -func Uint64() uint64 { - mu.Lock() - defer mu.Unlock() - return r.Uint64() -} - -// Uint32 implements rand.Uint32 on the grpcrand global source. -func Uint32() uint32 { - mu.Lock() - defer mu.Unlock() - return r.Uint32() -} - -// ExpFloat64 implements rand.ExpFloat64 on the grpcrand global source. -func ExpFloat64() float64 { - mu.Lock() - defer mu.Unlock() - return r.ExpFloat64() -} - -// Shuffle implements rand.Shuffle on the grpcrand global source. -var Shuffle = func(n int, f func(int, int)) { - mu.Lock() - defer mu.Unlock() - r.Shuffle(n, f) -} diff --git a/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand_go1.21.go b/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand_go1.21.go deleted file mode 100644 index c37299af1ef4..000000000000 --- a/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand_go1.21.go +++ /dev/null @@ -1,73 +0,0 @@ -//go:build go1.21 - -/* - * - * Copyright 2024 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -// Package grpcrand implements math/rand functions in a concurrent-safe way -// with a global random source, independent of math/rand's global source. -package grpcrand - -import "math/rand" - -// This implementation will be used for Go version 1.21 or newer. -// For older versions, the original implementation with mutex will be used. - -// Int implements rand.Int on the grpcrand global source. -func Int() int { - return rand.Int() -} - -// Int63n implements rand.Int63n on the grpcrand global source. -func Int63n(n int64) int64 { - return rand.Int63n(n) -} - -// Intn implements rand.Intn on the grpcrand global source. -func Intn(n int) int { - return rand.Intn(n) -} - -// Int31n implements rand.Int31n on the grpcrand global source. -func Int31n(n int32) int32 { - return rand.Int31n(n) -} - -// Float64 implements rand.Float64 on the grpcrand global source. -func Float64() float64 { - return rand.Float64() -} - -// Uint64 implements rand.Uint64 on the grpcrand global source. -func Uint64() uint64 { - return rand.Uint64() -} - -// Uint32 implements rand.Uint32 on the grpcrand global source. -func Uint32() uint32 { - return rand.Uint32() -} - -// ExpFloat64 implements rand.ExpFloat64 on the grpcrand global source. -func ExpFloat64() float64 { - return rand.ExpFloat64() -} - -// Shuffle implements rand.Shuffle on the grpcrand global source. -var Shuffle = func(n int, f func(int, int)) { - rand.Shuffle(n, f) -} diff --git a/vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go b/vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go index f7f40a16acee..19b9d639275a 100644 --- a/vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go +++ b/vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go @@ -53,16 +53,28 @@ func NewCallbackSerializer(ctx context.Context) *CallbackSerializer { return cs } -// Schedule adds a callback to be scheduled after existing callbacks are run. +// TrySchedule tries to schedules the provided callback function f to be +// executed in the order it was added. This is a best-effort operation. If the +// context passed to NewCallbackSerializer was canceled before this method is +// called, the callback will not be scheduled. // // Callbacks are expected to honor the context when performing any blocking // operations, and should return early when the context is canceled. +func (cs *CallbackSerializer) TrySchedule(f func(ctx context.Context)) { + cs.callbacks.Put(f) +} + +// ScheduleOr schedules the provided callback function f to be executed in the +// order it was added. If the context passed to NewCallbackSerializer has been +// canceled before this method is called, the onFailure callback will be +// executed inline instead. // -// Return value indicates if the callback was successfully added to the list of -// callbacks to be executed by the serializer. It is not possible to add -// callbacks once the context passed to NewCallbackSerializer is cancelled. -func (cs *CallbackSerializer) Schedule(f func(ctx context.Context)) bool { - return cs.callbacks.Put(f) == nil +// Callbacks are expected to honor the context when performing any blocking +// operations, and should return early when the context is canceled. +func (cs *CallbackSerializer) ScheduleOr(f func(ctx context.Context), onFailure func()) { + if cs.callbacks.Put(f) != nil { + onFailure() + } } func (cs *CallbackSerializer) run(ctx context.Context) { diff --git a/vendor/google.golang.org/grpc/internal/grpcsync/pubsub.go b/vendor/google.golang.org/grpc/internal/grpcsync/pubsub.go index aef8cec1ab0c..6d8c2f518dff 100644 --- a/vendor/google.golang.org/grpc/internal/grpcsync/pubsub.go +++ b/vendor/google.golang.org/grpc/internal/grpcsync/pubsub.go @@ -77,7 +77,7 @@ func (ps *PubSub) Subscribe(sub Subscriber) (cancel func()) { if ps.msg != nil { msg := ps.msg - ps.cs.Schedule(func(context.Context) { + ps.cs.TrySchedule(func(context.Context) { ps.mu.Lock() defer ps.mu.Unlock() if !ps.subscribers[sub] { @@ -103,7 +103,7 @@ func (ps *PubSub) Publish(msg any) { ps.msg = msg for sub := range ps.subscribers { s := sub - ps.cs.Schedule(func(context.Context) { + ps.cs.TrySchedule(func(context.Context) { ps.mu.Lock() defer ps.mu.Unlock() if !ps.subscribers[s] { diff --git a/vendor/google.golang.org/grpc/internal/grpcutil/compressor.go b/vendor/google.golang.org/grpc/internal/grpcutil/compressor.go index 9f4090967980..e8d866984b37 100644 --- a/vendor/google.golang.org/grpc/internal/grpcutil/compressor.go +++ b/vendor/google.golang.org/grpc/internal/grpcutil/compressor.go @@ -20,8 +20,6 @@ package grpcutil import ( "strings" - - "google.golang.org/grpc/internal/envconfig" ) // RegisteredCompressorNames holds names of the registered compressors. @@ -40,8 +38,5 @@ func IsCompressorNameRegistered(name string) bool { // RegisteredCompressors returns a string of registered compressor names // separated by comma. func RegisteredCompressors() string { - if !envconfig.AdvertiseCompressors { - return "" - } return strings.Join(RegisteredCompressorNames, ",") } diff --git a/vendor/google.golang.org/grpc/internal/internal.go b/vendor/google.golang.org/grpc/internal/internal.go index 48d24bdb4e69..7aae9240ffc0 100644 --- a/vendor/google.golang.org/grpc/internal/internal.go +++ b/vendor/google.golang.org/grpc/internal/internal.go @@ -106,6 +106,14 @@ var ( // This is used in the 1.0 release of gcp/observability, and thus must not be // deleted or changed. ClearGlobalDialOptions func() + + // AddGlobalPerTargetDialOptions adds a PerTargetDialOption that will be + // configured for newly created ClientConns. + AddGlobalPerTargetDialOptions any // func (opt any) + // ClearGlobalPerTargetDialOptions clears the slice of global late apply + // dial options. + ClearGlobalPerTargetDialOptions func() + // JoinDialOptions combines the dial options passed as arguments into a // single dial option. JoinDialOptions any // func(...grpc.DialOption) grpc.DialOption @@ -126,7 +134,8 @@ var ( // deleted or changed. BinaryLogger any // func(binarylog.Logger) grpc.ServerOption - // SubscribeToConnectivityStateChanges adds a grpcsync.Subscriber to a provided grpc.ClientConn + // SubscribeToConnectivityStateChanges adds a grpcsync.Subscriber to a + // provided grpc.ClientConn. SubscribeToConnectivityStateChanges any // func(*grpc.ClientConn, grpcsync.Subscriber) // NewXDSResolverWithConfigForTesting creates a new xds resolver builder using @@ -174,7 +183,7 @@ var ( // GRPCResolverSchemeExtraMetadata determines when gRPC will add extra // metadata to RPCs. - GRPCResolverSchemeExtraMetadata string = "xds" + GRPCResolverSchemeExtraMetadata = "xds" // EnterIdleModeForTesting gets the ClientConn to enter IDLE mode. EnterIdleModeForTesting any // func(*grpc.ClientConn) @@ -184,25 +193,45 @@ var ( ChannelzTurnOffForTesting func() - // TriggerXDSResourceNameNotFoundForTesting triggers the resource-not-found - // error for a given resource type and name. This is usually triggered when - // the associated watch timer fires. For testing purposes, having this - // function makes events more predictable than relying on timer events. - TriggerXDSResourceNameNotFoundForTesting any // func(func(xdsresource.Type, string), string, string) error - - // TriggerXDSResourceNameNotFoundClient invokes the testing xDS Client - // singleton to invoke resource not found for a resource type name and - // resource name. - TriggerXDSResourceNameNotFoundClient any // func(string, string) error + // TriggerXDSResourceNotFoundForTesting causes the provided xDS Client to + // invoke resource-not-found error for the given resource type and name. + TriggerXDSResourceNotFoundForTesting any // func(xdsclient.XDSClient, xdsresource.Type, string) error - // FromOutgoingContextRaw returns the un-merged, intermediary contents of metadata.rawMD. + // FromOutgoingContextRaw returns the un-merged, intermediary contents of + // metadata.rawMD. FromOutgoingContextRaw any // func(context.Context) (metadata.MD, [][]string, bool) - // UserSetDefaultScheme is set to true if the user has overridden the default resolver scheme. - UserSetDefaultScheme bool = false + // UserSetDefaultScheme is set to true if the user has overridden the + // default resolver scheme. + UserSetDefaultScheme = false + + // ShuffleAddressListForTesting pseudo-randomizes the order of addresses. n + // is the number of elements. swap swaps the elements with indexes i and j. + ShuffleAddressListForTesting any // func(n int, swap func(i, j int)) + + // ConnectedAddress returns the connected address for a SubConnState. The + // address is only valid if the state is READY. + ConnectedAddress any // func (scs SubConnState) resolver.Address + + // SetConnectedAddress sets the connected address for a SubConnState. + SetConnectedAddress any // func(scs *SubConnState, addr resolver.Address) + + // SnapshotMetricRegistryForTesting snapshots the global data of the metric + // registry. Returns a cleanup function that sets the metric registry to its + // original state. Only called in testing functions. + SnapshotMetricRegistryForTesting func() func() + + // SetDefaultBufferPoolForTesting updates the default buffer pool, for + // testing purposes. + SetDefaultBufferPoolForTesting any // func(mem.BufferPool) + + // SetBufferPoolingThresholdForTesting updates the buffer pooling threshold, for + // testing purposes. + SetBufferPoolingThresholdForTesting any // func(int) ) -// HealthChecker defines the signature of the client-side LB channel health checking function. +// HealthChecker defines the signature of the client-side LB channel health +// checking function. // // The implementation is expected to create a health checking RPC stream by // calling newStream(), watch for the health status of serviceName, and report diff --git a/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go b/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go index abab35e250ef..4552db16b028 100644 --- a/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go +++ b/vendor/google.golang.org/grpc/internal/resolver/dns/dns_resolver.go @@ -24,6 +24,7 @@ import ( "context" "encoding/json" "fmt" + "math/rand" "net" "os" "strconv" @@ -35,28 +36,35 @@ import ( "google.golang.org/grpc/grpclog" "google.golang.org/grpc/internal/backoff" "google.golang.org/grpc/internal/envconfig" - "google.golang.org/grpc/internal/grpcrand" "google.golang.org/grpc/internal/resolver/dns/internal" "google.golang.org/grpc/resolver" "google.golang.org/grpc/serviceconfig" ) -// EnableSRVLookups controls whether the DNS resolver attempts to fetch gRPCLB -// addresses from SRV records. Must not be changed after init time. -var EnableSRVLookups = false +var ( + // EnableSRVLookups controls whether the DNS resolver attempts to fetch gRPCLB + // addresses from SRV records. Must not be changed after init time. + EnableSRVLookups = false -// ResolvingTimeout specifies the maximum duration for a DNS resolution request. -// If the timeout expires before a response is received, the request will be canceled. -// -// It is recommended to set this value at application startup. Avoid modifying this variable -// after initialization as it's not thread-safe for concurrent modification. -var ResolvingTimeout = 30 * time.Second + // MinResolutionInterval is the minimum interval at which re-resolutions are + // allowed. This helps to prevent excessive re-resolution. + MinResolutionInterval = 30 * time.Second -var logger = grpclog.Component("dns") + // ResolvingTimeout specifies the maximum duration for a DNS resolution request. + // If the timeout expires before a response is received, the request will be canceled. + // + // It is recommended to set this value at application startup. Avoid modifying this variable + // after initialization as it's not thread-safe for concurrent modification. + ResolvingTimeout = 30 * time.Second + + logger = grpclog.Component("dns") +) func init() { resolver.Register(NewBuilder()) internal.TimeAfterFunc = time.After + internal.TimeNowFunc = time.Now + internal.TimeUntilFunc = time.Until internal.NewNetResolver = newNetResolver internal.AddressDialer = addressDialer } @@ -203,12 +211,12 @@ func (d *dnsResolver) watcher() { err = d.cc.UpdateState(*state) } - var waitTime time.Duration + var nextResolutionTime time.Time if err == nil { // Success resolving, wait for the next ResolveNow. However, also wait 30 // seconds at the very least to prevent constantly re-resolving. backoffIndex = 1 - waitTime = internal.MinResolutionRate + nextResolutionTime = internal.TimeNowFunc().Add(MinResolutionInterval) select { case <-d.ctx.Done(): return @@ -217,13 +225,13 @@ func (d *dnsResolver) watcher() { } else { // Poll on an error found in DNS Resolver or an error received from // ClientConn. - waitTime = backoff.DefaultExponential.Backoff(backoffIndex) + nextResolutionTime = internal.TimeNowFunc().Add(backoff.DefaultExponential.Backoff(backoffIndex)) backoffIndex++ } select { case <-d.ctx.Done(): return - case <-internal.TimeAfterFunc(waitTime): + case <-internal.TimeAfterFunc(internal.TimeUntilFunc(nextResolutionTime)): } } } @@ -417,7 +425,7 @@ func chosenByPercentage(a *int) bool { if a == nil { return true } - return grpcrand.Intn(100)+1 <= *a + return rand.Intn(100)+1 <= *a } func canaryingSC(js string) string { diff --git a/vendor/google.golang.org/grpc/internal/resolver/dns/internal/internal.go b/vendor/google.golang.org/grpc/internal/resolver/dns/internal/internal.go index c7fc557d00c1..c0eae4f5f83f 100644 --- a/vendor/google.golang.org/grpc/internal/resolver/dns/internal/internal.go +++ b/vendor/google.golang.org/grpc/internal/resolver/dns/internal/internal.go @@ -28,7 +28,7 @@ import ( // NetResolver groups the methods on net.Resolver that are used by the DNS // resolver implementation. This allows the default net.Resolver instance to be -// overidden from tests. +// overridden from tests. type NetResolver interface { LookupHost(ctx context.Context, host string) (addrs []string, err error) LookupSRV(ctx context.Context, service, proto, name string) (cname string, addrs []*net.SRV, err error) @@ -50,16 +50,23 @@ var ( // The following vars are overridden from tests. var ( - // MinResolutionRate is the minimum rate at which re-resolutions are - // allowed. This helps to prevent excessive re-resolution. - MinResolutionRate = 30 * time.Second - // TimeAfterFunc is used by the DNS resolver to wait for the given duration - // to elapse. In non-test code, this is implemented by time.After. In test + // to elapse. In non-test code, this is implemented by time.After. In test // code, this can be used to control the amount of time the resolver is // blocked waiting for the duration to elapse. TimeAfterFunc func(time.Duration) <-chan time.Time + // TimeNowFunc is used by the DNS resolver to get the current time. + // In non-test code, this is implemented by time.Now. In test code, + // this can be used to control the current time for the resolver. + TimeNowFunc func() time.Time + + // TimeUntilFunc is used by the DNS resolver to calculate the remaining + // wait time for re-resolution. In non-test code, this is implemented by + // time.Until. In test code, this can be used to control the remaining + // time for resolver to wait for re-resolution. + TimeUntilFunc func(time.Time) time.Duration + // NewNetResolver returns the net.Resolver instance for the given target. NewNetResolver func(string) (NetResolver, error) diff --git a/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go b/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go index afac56572ad5..b901c7bace50 100644 --- a/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go +++ b/vendor/google.golang.org/grpc/internal/resolver/passthrough/passthrough.go @@ -55,7 +55,7 @@ func (r *passthroughResolver) start() { r.cc.UpdateState(resolver.State{Addresses: []resolver.Address{{Addr: r.target.Endpoint()}}}) } -func (*passthroughResolver) ResolveNow(o resolver.ResolveNowOptions) {} +func (*passthroughResolver) ResolveNow(resolver.ResolveNowOptions) {} func (*passthroughResolver) Close() {} diff --git a/vendor/google.golang.org/grpc/internal/stats/labels.go b/vendor/google.golang.org/grpc/internal/stats/labels.go new file mode 100644 index 000000000000..fd33af51ae89 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/stats/labels.go @@ -0,0 +1,42 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +// Package stats provides internal stats related functionality. +package stats + +import "context" + +// Labels are the labels for metrics. +type Labels struct { + // TelemetryLabels are the telemetry labels to record. + TelemetryLabels map[string]string +} + +type labelsKey struct{} + +// GetLabels returns the Labels stored in the context, or nil if there is one. +func GetLabels(ctx context.Context) *Labels { + labels, _ := ctx.Value(labelsKey{}).(*Labels) + return labels +} + +// SetLabels sets the Labels in the context. +func SetLabels(ctx context.Context, labels *Labels) context.Context { + // could also append + return context.WithValue(ctx, labelsKey{}, labels) +} diff --git a/vendor/google.golang.org/grpc/internal/stats/metrics_recorder_list.go b/vendor/google.golang.org/grpc/internal/stats/metrics_recorder_list.go new file mode 100644 index 000000000000..be110d41f9a4 --- /dev/null +++ b/vendor/google.golang.org/grpc/internal/stats/metrics_recorder_list.go @@ -0,0 +1,95 @@ +/* + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package stats + +import ( + "fmt" + + estats "google.golang.org/grpc/experimental/stats" + "google.golang.org/grpc/stats" +) + +// MetricsRecorderList forwards Record calls to all of its metricsRecorders. +// +// It eats any record calls where the label values provided do not match the +// number of label keys. +type MetricsRecorderList struct { + // metricsRecorders are the metrics recorders this list will forward to. + metricsRecorders []estats.MetricsRecorder +} + +// NewMetricsRecorderList creates a new metric recorder list with all the stats +// handlers provided which implement the MetricsRecorder interface. +// If no stats handlers provided implement the MetricsRecorder interface, +// the MetricsRecorder list returned is a no-op. +func NewMetricsRecorderList(shs []stats.Handler) *MetricsRecorderList { + var mrs []estats.MetricsRecorder + for _, sh := range shs { + if mr, ok := sh.(estats.MetricsRecorder); ok { + mrs = append(mrs, mr) + } + } + return &MetricsRecorderList{ + metricsRecorders: mrs, + } +} + +func verifyLabels(desc *estats.MetricDescriptor, labelsRecv ...string) { + if got, want := len(labelsRecv), len(desc.Labels)+len(desc.OptionalLabels); got != want { + panic(fmt.Sprintf("Received %d labels in call to record metric %q, but expected %d.", got, desc.Name, want)) + } +} + +func (l *MetricsRecorderList) RecordInt64Count(handle *estats.Int64CountHandle, incr int64, labels ...string) { + verifyLabels(handle.Descriptor(), labels...) + + for _, metricRecorder := range l.metricsRecorders { + metricRecorder.RecordInt64Count(handle, incr, labels...) + } +} + +func (l *MetricsRecorderList) RecordFloat64Count(handle *estats.Float64CountHandle, incr float64, labels ...string) { + verifyLabels(handle.Descriptor(), labels...) + + for _, metricRecorder := range l.metricsRecorders { + metricRecorder.RecordFloat64Count(handle, incr, labels...) + } +} + +func (l *MetricsRecorderList) RecordInt64Histo(handle *estats.Int64HistoHandle, incr int64, labels ...string) { + verifyLabels(handle.Descriptor(), labels...) + + for _, metricRecorder := range l.metricsRecorders { + metricRecorder.RecordInt64Histo(handle, incr, labels...) + } +} + +func (l *MetricsRecorderList) RecordFloat64Histo(handle *estats.Float64HistoHandle, incr float64, labels ...string) { + verifyLabels(handle.Descriptor(), labels...) + + for _, metricRecorder := range l.metricsRecorders { + metricRecorder.RecordFloat64Histo(handle, incr, labels...) + } +} + +func (l *MetricsRecorderList) RecordInt64Gauge(handle *estats.Int64GaugeHandle, incr int64, labels ...string) { + verifyLabels(handle.Descriptor(), labels...) + + for _, metricRecorder := range l.metricsRecorders { + metricRecorder.RecordInt64Gauge(handle, incr, labels...) + } +} diff --git a/vendor/google.golang.org/grpc/internal/status/status.go b/vendor/google.golang.org/grpc/internal/status/status.go index c7dbc8205952..757925381fe7 100644 --- a/vendor/google.golang.org/grpc/internal/status/status.go +++ b/vendor/google.golang.org/grpc/internal/status/status.go @@ -138,11 +138,11 @@ func (s *Status) WithDetails(details ...protoadapt.MessageV1) (*Status, error) { // s.Code() != OK implies that s.Proto() != nil. p := s.Proto() for _, detail := range details { - any, err := anypb.New(protoadapt.MessageV2Of(detail)) + m, err := anypb.New(protoadapt.MessageV2Of(detail)) if err != nil { return nil, err } - p.Details = append(p.Details, any) + p.Details = append(p.Details, m) } return &Status{s: p}, nil } diff --git a/vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go b/vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go index 999f52cd75bd..54c24c2ff386 100644 --- a/vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go +++ b/vendor/google.golang.org/grpc/internal/syscall/syscall_nonlinux.go @@ -58,20 +58,20 @@ func GetRusage() *Rusage { // CPUTimeDiff returns the differences of user CPU time and system CPU time used // between two Rusage structs. It a no-op function for non-linux environments. -func CPUTimeDiff(first *Rusage, latest *Rusage) (float64, float64) { +func CPUTimeDiff(*Rusage, *Rusage) (float64, float64) { log() return 0, 0 } // SetTCPUserTimeout is a no-op function under non-linux environments. -func SetTCPUserTimeout(conn net.Conn, timeout time.Duration) error { +func SetTCPUserTimeout(net.Conn, time.Duration) error { log() return nil } // GetTCPUserTimeout is a no-op function under non-linux environments. // A negative return value indicates the operation is not supported -func GetTCPUserTimeout(conn net.Conn) (int, error) { +func GetTCPUserTimeout(net.Conn) (int, error) { log() return -1, nil } diff --git a/vendor/google.golang.org/grpc/internal/tcp_keepalive_unix.go b/vendor/google.golang.org/grpc/internal/tcp_keepalive_unix.go index 078137b7fd70..7e7aaa546368 100644 --- a/vendor/google.golang.org/grpc/internal/tcp_keepalive_unix.go +++ b/vendor/google.golang.org/grpc/internal/tcp_keepalive_unix.go @@ -44,7 +44,7 @@ func NetDialerWithTCPKeepalive() *net.Dialer { // combination of unconditionally enabling TCP keepalives here, and // disabling the overriding of TCP keepalive parameters by setting the // KeepAlive field to a negative value above, results in OS defaults for - // the TCP keealive interval and time parameters. + // the TCP keepalive interval and time parameters. Control: func(_, _ string, c syscall.RawConn) error { return c.Control(func(fd uintptr) { unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, unix.SO_KEEPALIVE, 1) diff --git a/vendor/google.golang.org/grpc/internal/tcp_keepalive_windows.go b/vendor/google.golang.org/grpc/internal/tcp_keepalive_windows.go index fd7d43a8907b..d5c1085eeaec 100644 --- a/vendor/google.golang.org/grpc/internal/tcp_keepalive_windows.go +++ b/vendor/google.golang.org/grpc/internal/tcp_keepalive_windows.go @@ -44,7 +44,7 @@ func NetDialerWithTCPKeepalive() *net.Dialer { // combination of unconditionally enabling TCP keepalives here, and // disabling the overriding of TCP keepalive parameters by setting the // KeepAlive field to a negative value above, results in OS defaults for - // the TCP keealive interval and time parameters. + // the TCP keepalive interval and time parameters. Control: func(_, _ string, c syscall.RawConn) error { return c.Control(func(fd uintptr) { windows.SetsockoptInt(windows.Handle(fd), windows.SOL_SOCKET, windows.SO_KEEPALIVE, 1) diff --git a/vendor/google.golang.org/grpc/internal/transport/controlbuf.go b/vendor/google.golang.org/grpc/internal/transport/controlbuf.go index 83c3829826ae..ef72fbb3a016 100644 --- a/vendor/google.golang.org/grpc/internal/transport/controlbuf.go +++ b/vendor/google.golang.org/grpc/internal/transport/controlbuf.go @@ -32,6 +32,7 @@ import ( "golang.org/x/net/http2/hpack" "google.golang.org/grpc/internal/grpclog" "google.golang.org/grpc/internal/grpcutil" + "google.golang.org/grpc/mem" "google.golang.org/grpc/status" ) @@ -148,9 +149,9 @@ type dataFrame struct { streamID uint32 endStream bool h []byte - d []byte + reader mem.Reader // onEachWrite is called every time - // a part of d is written out. + // a part of data is written out. onEachWrite func() } @@ -193,7 +194,7 @@ type goAway struct { code http2.ErrCode debugData []byte headsUp bool - closeConn error // if set, loopyWriter will exit, resulting in conn closure + closeConn error // if set, loopyWriter will exit with this error } func (*goAway) isTransportResponseFrame() bool { return false } @@ -289,18 +290,22 @@ func (l *outStreamList) dequeue() *outStream { } // controlBuffer is a way to pass information to loopy. -// Information is passed as specific struct types called control frames. -// A control frame not only represents data, messages or headers to be sent out -// but can also be used to instruct loopy to update its internal state. -// It shouldn't be confused with an HTTP2 frame, although some of the control frames -// like dataFrame and headerFrame do go out on wire as HTTP2 frames. +// +// Information is passed as specific struct types called control frames. A +// control frame not only represents data, messages or headers to be sent out +// but can also be used to instruct loopy to update its internal state. It +// shouldn't be confused with an HTTP2 frame, although some of the control +// frames like dataFrame and headerFrame do go out on wire as HTTP2 frames. type controlBuffer struct { - ch chan struct{} - done <-chan struct{} + wakeupCh chan struct{} // Unblocks readers waiting for something to read. + done <-chan struct{} // Closed when the transport is done. + + // Mutex guards all the fields below, except trfChan which can be read + // atomically without holding mu. mu sync.Mutex - consumerWaiting bool - list *itemList - err error + consumerWaiting bool // True when readers are blocked waiting for new data. + closed bool // True when the controlbuf is finished. + list *itemList // List of queued control frames. // transportResponseFrames counts the number of queued items that represent // the response of an action initiated by the peer. trfChan is created @@ -308,47 +313,59 @@ type controlBuffer struct { // closed and nilled when transportResponseFrames drops below the // threshold. Both fields are protected by mu. transportResponseFrames int - trfChan atomic.Value // chan struct{} + trfChan atomic.Pointer[chan struct{}] } func newControlBuffer(done <-chan struct{}) *controlBuffer { return &controlBuffer{ - ch: make(chan struct{}, 1), - list: &itemList{}, - done: done, + wakeupCh: make(chan struct{}, 1), + list: &itemList{}, + done: done, } } -// throttle blocks if there are too many incomingSettings/cleanupStreams in the -// controlbuf. +// throttle blocks if there are too many frames in the control buf that +// represent the response of an action initiated by the peer, like +// incomingSettings cleanupStreams etc. func (c *controlBuffer) throttle() { - ch, _ := c.trfChan.Load().(chan struct{}) - if ch != nil { + if ch := c.trfChan.Load(); ch != nil { select { - case <-ch: + case <-(*ch): case <-c.done: } } } +// put adds an item to the controlbuf. func (c *controlBuffer) put(it cbItem) error { _, err := c.executeAndPut(nil, it) return err } -func (c *controlBuffer) executeAndPut(f func(it any) bool, it cbItem) (bool, error) { - var wakeUp bool +// executeAndPut runs f, and if the return value is true, adds the given item to +// the controlbuf. The item could be nil, in which case, this method simply +// executes f and does not add the item to the controlbuf. +// +// The first return value indicates whether the item was successfully added to +// the control buffer. A non-nil error, specifically ErrConnClosing, is returned +// if the control buffer is already closed. +func (c *controlBuffer) executeAndPut(f func() bool, it cbItem) (bool, error) { c.mu.Lock() - if c.err != nil { - c.mu.Unlock() - return false, c.err + defer c.mu.Unlock() + + if c.closed { + return false, ErrConnClosing } if f != nil { - if !f(it) { // f wasn't successful - c.mu.Unlock() + if !f() { // f wasn't successful return false, nil } } + if it == nil { + return true, nil + } + + var wakeUp bool if c.consumerWaiting { wakeUp = true c.consumerWaiting = false @@ -359,98 +376,102 @@ func (c *controlBuffer) executeAndPut(f func(it any) bool, it cbItem) (bool, err if c.transportResponseFrames == maxQueuedTransportResponseFrames { // We are adding the frame that puts us over the threshold; create // a throttling channel. - c.trfChan.Store(make(chan struct{})) + ch := make(chan struct{}) + c.trfChan.Store(&ch) } } - c.mu.Unlock() if wakeUp { select { - case c.ch <- struct{}{}: + case c.wakeupCh <- struct{}{}: default: } } return true, nil } -// Note argument f should never be nil. -func (c *controlBuffer) execute(f func(it any) bool, it any) (bool, error) { - c.mu.Lock() - if c.err != nil { - c.mu.Unlock() - return false, c.err - } - if !f(it) { // f wasn't successful - c.mu.Unlock() - return false, nil - } - c.mu.Unlock() - return true, nil -} - +// get returns the next control frame from the control buffer. If block is true +// **and** there are no control frames in the control buffer, the call blocks +// until one of the conditions is met: there is a frame to return or the +// transport is closed. func (c *controlBuffer) get(block bool) (any, error) { for { c.mu.Lock() - if c.err != nil { + frame, err := c.getOnceLocked() + if frame != nil || err != nil || !block { + // If we read a frame or an error, we can return to the caller. The + // call to getOnceLocked() returns a nil frame and a nil error if + // there is nothing to read, and in that case, if the caller asked + // us not to block, we can return now as well. c.mu.Unlock() - return nil, c.err - } - if !c.list.isEmpty() { - h := c.list.dequeue().(cbItem) - if h.isTransportResponseFrame() { - if c.transportResponseFrames == maxQueuedTransportResponseFrames { - // We are removing the frame that put us over the - // threshold; close and clear the throttling channel. - ch := c.trfChan.Load().(chan struct{}) - close(ch) - c.trfChan.Store((chan struct{})(nil)) - } - c.transportResponseFrames-- - } - c.mu.Unlock() - return h, nil - } - if !block { - c.mu.Unlock() - return nil, nil + return frame, err } c.consumerWaiting = true c.mu.Unlock() + + // Release the lock above and wait to be woken up. select { - case <-c.ch: + case <-c.wakeupCh: case <-c.done: return nil, errors.New("transport closed by client") } } } +// Callers must not use this method, but should instead use get(). +// +// Caller must hold c.mu. +func (c *controlBuffer) getOnceLocked() (any, error) { + if c.closed { + return false, ErrConnClosing + } + if c.list.isEmpty() { + return nil, nil + } + h := c.list.dequeue().(cbItem) + if h.isTransportResponseFrame() { + if c.transportResponseFrames == maxQueuedTransportResponseFrames { + // We are removing the frame that put us over the + // threshold; close and clear the throttling channel. + ch := c.trfChan.Swap(nil) + close(*ch) + } + c.transportResponseFrames-- + } + return h, nil +} + +// finish closes the control buffer, cleaning up any streams that have queued +// header frames. Once this method returns, no more frames can be added to the +// control buffer, and attempts to do so will return ErrConnClosing. func (c *controlBuffer) finish() { c.mu.Lock() - if c.err != nil { - c.mu.Unlock() + defer c.mu.Unlock() + + if c.closed { return } - c.err = ErrConnClosing + c.closed = true // There may be headers for streams in the control buffer. // These streams need to be cleaned out since the transport // is still not aware of these yet. for head := c.list.dequeueAll(); head != nil; head = head.next { - hdr, ok := head.it.(*headerFrame) - if !ok { - continue - } - if hdr.onOrphaned != nil { // It will be nil on the server-side. - hdr.onOrphaned(ErrConnClosing) + switch v := head.it.(type) { + case *headerFrame: + if v.onOrphaned != nil { // It will be nil on the server-side. + v.onOrphaned(ErrConnClosing) + } + case *dataFrame: + _ = v.reader.Close() } } + // In case throttle() is currently in flight, it needs to be unblocked. // Otherwise, the transport may not close, since the transport is closed by // the reader encountering the connection error. - ch, _ := c.trfChan.Load().(chan struct{}) + ch := c.trfChan.Swap(nil) if ch != nil { - close(ch) + close(*ch) } - c.trfChan.Store((chan struct{})(nil)) - c.mu.Unlock() } type side int @@ -466,7 +487,7 @@ const ( // stream maintains a queue of data frames; as loopy receives data frames // it gets added to the queue of the relevant stream. // Loopy goes over this list of active streams by processing one node every iteration, -// thereby closely resemebling to a round-robin scheduling over all streams. While +// thereby closely resembling a round-robin scheduling over all streams. While // processing a stream, loopy writes out data bytes from this stream capped by the min // of http2MaxFrameLen, connection-level flow control and stream-level flow control. type loopyWriter struct { @@ -490,26 +511,29 @@ type loopyWriter struct { draining bool conn net.Conn logger *grpclog.PrefixLogger + bufferPool mem.BufferPool // Side-specific handlers ssGoAwayHandler func(*goAway) (bool, error) } -func newLoopyWriter(s side, fr *framer, cbuf *controlBuffer, bdpEst *bdpEstimator, conn net.Conn, logger *grpclog.PrefixLogger) *loopyWriter { +func newLoopyWriter(s side, fr *framer, cbuf *controlBuffer, bdpEst *bdpEstimator, conn net.Conn, logger *grpclog.PrefixLogger, goAwayHandler func(*goAway) (bool, error), bufferPool mem.BufferPool) *loopyWriter { var buf bytes.Buffer l := &loopyWriter{ - side: s, - cbuf: cbuf, - sendQuota: defaultWindowSize, - oiws: defaultWindowSize, - estdStreams: make(map[uint32]*outStream), - activeStreams: newOutStreamList(), - framer: fr, - hBuf: &buf, - hEnc: hpack.NewEncoder(&buf), - bdpEst: bdpEst, - conn: conn, - logger: logger, + side: s, + cbuf: cbuf, + sendQuota: defaultWindowSize, + oiws: defaultWindowSize, + estdStreams: make(map[uint32]*outStream), + activeStreams: newOutStreamList(), + framer: fr, + hBuf: &buf, + hEnc: hpack.NewEncoder(&buf), + bdpEst: bdpEst, + conn: conn, + logger: logger, + ssGoAwayHandler: goAwayHandler, + bufferPool: bufferPool, } return l } @@ -767,6 +791,11 @@ func (l *loopyWriter) cleanupStreamHandler(c *cleanupStream) error { // not be established yet. delete(l.estdStreams, c.streamID) str.deleteSelf() + for head := str.itl.dequeueAll(); head != nil; head = head.next { + if df, ok := head.it.(*dataFrame); ok { + _ = df.reader.Close() + } + } } if c.rst { // If RST_STREAM needs to be sent. if err := l.framer.fr.WriteRSTStream(c.streamID, c.rstCode); err != nil { @@ -902,16 +931,18 @@ func (l *loopyWriter) processData() (bool, error) { dataItem := str.itl.peek().(*dataFrame) // Peek at the first data item this stream. // A data item is represented by a dataFrame, since it later translates into // multiple HTTP2 data frames. - // Every dataFrame has two buffers; h that keeps grpc-message header and d that is actual data. - // As an optimization to keep wire traffic low, data from d is copied to h to make as big as the - // maximum possible HTTP2 frame size. + // Every dataFrame has two buffers; h that keeps grpc-message header and data + // that is the actual message. As an optimization to keep wire traffic low, data + // from data is copied to h to make as big as the maximum possible HTTP2 frame + // size. - if len(dataItem.h) == 0 && len(dataItem.d) == 0 { // Empty data frame + if len(dataItem.h) == 0 && dataItem.reader.Remaining() == 0 { // Empty data frame // Client sends out empty data frame with endStream = true if err := l.framer.fr.WriteData(dataItem.streamID, dataItem.endStream, nil); err != nil { return false, err } str.itl.dequeue() // remove the empty data item from stream + _ = dataItem.reader.Close() if str.itl.isEmpty() { str.state = empty } else if trailer, ok := str.itl.peek().(*headerFrame); ok { // the next item is trailers. @@ -926,9 +957,7 @@ func (l *loopyWriter) processData() (bool, error) { } return false, nil } - var ( - buf []byte - ) + // Figure out the maximum size we can send maxSize := http2MaxFrameLen if strQuota := int(l.oiws) - str.bytesOutStanding; strQuota <= 0 { // stream-level flow control. @@ -942,43 +971,50 @@ func (l *loopyWriter) processData() (bool, error) { } // Compute how much of the header and data we can send within quota and max frame length hSize := min(maxSize, len(dataItem.h)) - dSize := min(maxSize-hSize, len(dataItem.d)) - if hSize != 0 { - if dSize == 0 { - buf = dataItem.h - } else { - // We can add some data to grpc message header to distribute bytes more equally across frames. - // Copy on the stack to avoid generating garbage - var localBuf [http2MaxFrameLen]byte - copy(localBuf[:hSize], dataItem.h) - copy(localBuf[hSize:], dataItem.d[:dSize]) - buf = localBuf[:hSize+dSize] - } + dSize := min(maxSize-hSize, dataItem.reader.Remaining()) + remainingBytes := len(dataItem.h) + dataItem.reader.Remaining() - hSize - dSize + size := hSize + dSize + + var buf *[]byte + + if hSize != 0 && dSize == 0 { + buf = &dataItem.h } else { - buf = dataItem.d - } + // Note: this is only necessary because the http2.Framer does not support + // partially writing a frame, so the sequence must be materialized into a buffer. + // TODO: Revisit once https://github.com/golang/go/issues/66655 is addressed. + pool := l.bufferPool + if pool == nil { + // Note that this is only supposed to be nil in tests. Otherwise, stream is + // always initialized with a BufferPool. + pool = mem.DefaultBufferPool() + } + buf = pool.Get(size) + defer pool.Put(buf) - size := hSize + dSize + copy((*buf)[:hSize], dataItem.h) + _, _ = dataItem.reader.Read((*buf)[hSize:]) + } // Now that outgoing flow controls are checked we can replenish str's write quota str.wq.replenish(size) var endStream bool // If this is the last data message on this stream and all of it can be written in this iteration. - if dataItem.endStream && len(dataItem.h)+len(dataItem.d) <= size { + if dataItem.endStream && remainingBytes == 0 { endStream = true } if dataItem.onEachWrite != nil { dataItem.onEachWrite() } - if err := l.framer.fr.WriteData(dataItem.streamID, endStream, buf[:size]); err != nil { + if err := l.framer.fr.WriteData(dataItem.streamID, endStream, (*buf)[:size]); err != nil { return false, err } str.bytesOutStanding += size l.sendQuota -= uint32(size) dataItem.h = dataItem.h[hSize:] - dataItem.d = dataItem.d[dSize:] - if len(dataItem.h) == 0 && len(dataItem.d) == 0 { // All the data from that message was written out. + if remainingBytes == 0 { // All the data from that message was written out. + _ = dataItem.reader.Close() str.itl.dequeue() } if str.itl.isEmpty() { @@ -997,10 +1033,3 @@ func (l *loopyWriter) processData() (bool, error) { } return false, nil } - -func min(a, b int) int { - if a < b { - return a - } - return b -} diff --git a/vendor/google.golang.org/grpc/internal/transport/handler_server.go b/vendor/google.golang.org/grpc/internal/transport/handler_server.go index 4a3ddce29a4e..ce878693bd74 100644 --- a/vendor/google.golang.org/grpc/internal/transport/handler_server.go +++ b/vendor/google.golang.org/grpc/internal/transport/handler_server.go @@ -24,7 +24,6 @@ package transport import ( - "bytes" "context" "errors" "fmt" @@ -40,6 +39,7 @@ import ( "google.golang.org/grpc/credentials" "google.golang.org/grpc/internal/grpclog" "google.golang.org/grpc/internal/grpcutil" + "google.golang.org/grpc/mem" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/stats" @@ -50,7 +50,7 @@ import ( // NewServerHandlerTransport returns a ServerTransport handling gRPC from // inside an http.Handler, or writes an HTTP error to w and returns an error. // It requires that the http Server supports HTTP/2. -func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats []stats.Handler) (ServerTransport, error) { +func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats []stats.Handler, bufferPool mem.BufferPool) (ServerTransport, error) { if r.Method != http.MethodPost { w.Header().Set("Allow", http.MethodPost) msg := fmt.Sprintf("invalid gRPC request method %q", r.Method) @@ -98,6 +98,7 @@ func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats []s contentType: contentType, contentSubtype: contentSubtype, stats: stats, + bufferPool: bufferPool, } st.logger = prefixLoggerForServerHandlerTransport(st) @@ -171,6 +172,8 @@ type serverHandlerTransport struct { stats []stats.Handler logger *grpclog.PrefixLogger + + bufferPool mem.BufferPool } func (ht *serverHandlerTransport) Close(err error) { @@ -244,6 +247,7 @@ func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) erro } s.hdrMu.Lock() + defer s.hdrMu.Unlock() if p := st.Proto(); p != nil && len(p.Details) > 0 { delete(s.trailer, grpcStatusDetailsBinHeader) stBytes, err := proto.Marshal(p) @@ -268,7 +272,6 @@ func (ht *serverHandlerTransport) WriteStatus(s *Stream, st *status.Status) erro } } } - s.hdrMu.Unlock() }) if err == nil { // transport has not been closed @@ -330,16 +333,28 @@ func (ht *serverHandlerTransport) writeCustomHeaders(s *Stream) { s.hdrMu.Unlock() } -func (ht *serverHandlerTransport) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { +func (ht *serverHandlerTransport) Write(s *Stream, hdr []byte, data mem.BufferSlice, _ *Options) error { + // Always take a reference because otherwise there is no guarantee the data will + // be available after this function returns. This is what callers to Write + // expect. + data.Ref() headersWritten := s.updateHeaderSent() - return ht.do(func() { + err := ht.do(func() { + defer data.Free() if !headersWritten { ht.writePendingHeaders(s) } ht.rw.Write(hdr) - ht.rw.Write(data) + for _, b := range data { + _, _ = ht.rw.Write(b.ReadOnlyData()) + } ht.rw.(http.Flusher).Flush() }) + if err != nil { + data.Free() + return err + } + return nil } func (ht *serverHandlerTransport) WriteHeader(s *Stream, md metadata.MD) error { @@ -406,7 +421,7 @@ func (ht *serverHandlerTransport) HandleStreams(ctx context.Context, startStream headerWireLength: 0, // won't have access to header wire length until golang/go#18997. } s.trReader = &transportReader{ - reader: &recvBufferReader{ctx: s.ctx, ctxDone: s.ctx.Done(), recv: s.buf, freeBuffer: func(*bytes.Buffer) {}}, + reader: &recvBufferReader{ctx: s.ctx, ctxDone: s.ctx.Done(), recv: s.buf}, windowHandler: func(int) {}, } @@ -415,21 +430,19 @@ func (ht *serverHandlerTransport) HandleStreams(ctx context.Context, startStream go func() { defer close(readerDone) - // TODO: minimize garbage, optimize recvBuffer code/ownership - const readSize = 8196 - for buf := make([]byte, readSize); ; { - n, err := req.Body.Read(buf) + for { + buf := ht.bufferPool.Get(http2MaxFrameLen) + n, err := req.Body.Read(*buf) if n > 0 { - s.buf.put(recvMsg{buffer: bytes.NewBuffer(buf[:n:n])}) - buf = buf[n:] + *buf = (*buf)[:n] + s.buf.put(recvMsg{buffer: mem.NewBuffer(buf, ht.bufferPool)}) + } else { + ht.bufferPool.Put(buf) } if err != nil { s.buf.put(recvMsg{err: mapRecvMsgError(err)}) return } - if len(buf) == 0 { - buf = make([]byte, readSize) - } } }() @@ -462,7 +475,7 @@ func (ht *serverHandlerTransport) IncrMsgSent() {} func (ht *serverHandlerTransport) IncrMsgRecv() {} -func (ht *serverHandlerTransport) Drain(debugData string) { +func (ht *serverHandlerTransport) Drain(string) { panic("Drain() is not implemented") } diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_client.go b/vendor/google.golang.org/grpc/internal/transport/http2_client.go index deba0c4d9ef4..c769deab53c7 100644 --- a/vendor/google.golang.org/grpc/internal/transport/http2_client.go +++ b/vendor/google.golang.org/grpc/internal/transport/http2_client.go @@ -47,6 +47,7 @@ import ( isyscall "google.golang.org/grpc/internal/syscall" "google.golang.org/grpc/internal/transport/networktype" "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/mem" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/resolver" @@ -59,6 +60,8 @@ import ( // atomically. var clientConnectionCounter uint64 +var goAwayLoopyWriterTimeout = 5 * time.Second + var metadataFromOutgoingContextRaw = internal.FromOutgoingContextRaw.(func(context.Context) (metadata.MD, [][]string, bool)) // http2Client implements the ClientTransport interface with HTTP2. @@ -114,11 +117,11 @@ type http2Client struct { streamQuota int64 streamsQuotaAvailable chan struct{} waitingStreams uint32 - nextID uint32 registeredCompressors string // Do not access controlBuf with mu held. mu sync.Mutex // guard the following variables + nextID uint32 state transportState activeStreams map[uint32]*Stream // prevGoAway ID records the Last-Stream-ID in the previous GOAway frame. @@ -144,7 +147,7 @@ type http2Client struct { onClose func(GoAwayReason) - bufferPool *bufferPool + bufferPool mem.BufferPool connectionID uint64 logger *grpclog.PrefixLogger @@ -229,7 +232,7 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts } }(conn) - // The following defer and goroutine monitor the connectCtx for cancelation + // The following defer and goroutine monitor the connectCtx for cancellation // and deadline. On context expiration, the connection is hard closed and // this function will naturally fail as a result. Otherwise, the defer // waits for the goroutine to exit to prevent the context from being @@ -346,7 +349,7 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts streamQuota: defaultMaxStreamsClient, streamsQuotaAvailable: make(chan struct{}, 1), keepaliveEnabled: keepaliveEnabled, - bufferPool: newBufferPool(), + bufferPool: opts.BufferPool, onClose: onClose, } var czSecurity credentials.ChannelzSecurityValue @@ -408,10 +411,10 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts readerErrCh := make(chan error, 1) go t.reader(readerErrCh) defer func() { - if err == nil { - err = <-readerErrCh - } if err != nil { + // writerDone should be closed since the loopy goroutine + // wouldn't have started in the case this function returns an error. + close(t.writerDone) t.Close(err) } }() @@ -458,8 +461,12 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts if err := t.framer.writer.Flush(); err != nil { return nil, err } + // Block until the server preface is received successfully or an error occurs. + if err = <-readerErrCh; err != nil { + return nil, err + } go func() { - t.loopy = newLoopyWriter(clientSide, t.framer, t.controlBuf, t.bdpEst, t.conn, t.logger) + t.loopy = newLoopyWriter(clientSide, t.framer, t.controlBuf, t.bdpEst, t.conn, t.logger, t.outgoingGoAwayHandler, t.bufferPool) if err := t.loopy.run(); !isIOError(err) { // Immediately close the connection, as the loopy writer returns // when there are no more active streams and we were draining (the @@ -500,7 +507,6 @@ func (t *http2Client) newStream(ctx context.Context, callHdr *CallHdr) *Stream { closeStream: func(err error) { t.CloseStream(s, err) }, - freeBuffer: t.bufferPool.put, }, windowHandler: func(n int) { t.updateWindow(s, uint32(n)) @@ -517,6 +523,17 @@ func (t *http2Client) getPeer() *peer.Peer { } } +// OutgoingGoAwayHandler writes a GOAWAY to the connection. Always returns (false, err) as we want the GoAway +// to be the last frame loopy writes to the transport. +func (t *http2Client) outgoingGoAwayHandler(g *goAway) (bool, error) { + t.mu.Lock() + defer t.mu.Unlock() + if err := t.framer.fr.WriteGoAway(t.nextID-2, http2.ErrCodeNo, g.debugData); err != nil { + return false, err + } + return false, g.closeConn +} + func (t *http2Client) createHeaderFields(ctx context.Context, callHdr *CallHdr) ([]hpack.HeaderField, error) { aud := t.createAudience(callHdr) ri := credentials.RequestInfo{ @@ -755,7 +772,7 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, hdr := &headerFrame{ hf: headerFields, endStream: false, - initStream: func(id uint32) error { + initStream: func(uint32) error { t.mu.Lock() // TODO: handle transport closure in loopy instead and remove this // initStream is never called when transport is draining. @@ -781,7 +798,7 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, firstTry := true var ch chan struct{} transportDrainRequired := false - checkForStreamQuota := func(it any) bool { + checkForStreamQuota := func() bool { if t.streamQuota <= 0 { // Can go negative if server decreases it. if firstTry { t.waitingStreams++ @@ -793,23 +810,24 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, t.waitingStreams-- } t.streamQuota-- - h := it.(*headerFrame) - h.streamID = t.nextID - t.nextID += 2 - // Drain client transport if nextID > MaxStreamID which signals gRPC that - // the connection is closed and a new one must be created for subsequent RPCs. - transportDrainRequired = t.nextID > MaxStreamID - - s.id = h.streamID - s.fc = &inFlow{limit: uint32(t.initialWindowSize)} t.mu.Lock() if t.state == draining || t.activeStreams == nil { // Can be niled from Close(). t.mu.Unlock() return false // Don't create a stream if the transport is already closed. } + + hdr.streamID = t.nextID + t.nextID += 2 + // Drain client transport if nextID > MaxStreamID which signals gRPC that + // the connection is closed and a new one must be created for subsequent RPCs. + transportDrainRequired = t.nextID > MaxStreamID + + s.id = hdr.streamID + s.fc = &inFlow{limit: uint32(t.initialWindowSize)} t.activeStreams[s.id] = s t.mu.Unlock() + if t.streamQuota > 0 && t.waitingStreams > 0 { select { case t.streamsQuotaAvailable <- struct{}{}: @@ -819,13 +837,12 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, return true } var hdrListSizeErr error - checkForHeaderListSize := func(it any) bool { + checkForHeaderListSize := func() bool { if t.maxSendHeaderListSize == nil { return true } - hdrFrame := it.(*headerFrame) var sz int64 - for _, f := range hdrFrame.hf { + for _, f := range hdr.hf { if sz += int64(f.Size()); sz > int64(*t.maxSendHeaderListSize) { hdrListSizeErr = status.Errorf(codes.Internal, "header list size to send violates the maximum size (%d bytes) set by server", *t.maxSendHeaderListSize) return false @@ -834,8 +851,8 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, return true } for { - success, err := t.controlBuf.executeAndPut(func(it any) bool { - return checkForHeaderListSize(it) && checkForStreamQuota(it) + success, err := t.controlBuf.executeAndPut(func() bool { + return checkForHeaderListSize() && checkForStreamQuota() }, hdr) if err != nil { // Connection closed. @@ -946,7 +963,7 @@ func (t *http2Client) closeStream(s *Stream, err error, rst bool, rstCode http2. rst: rst, rstCode: rstCode, } - addBackStreamQuota := func(any) bool { + addBackStreamQuota := func() bool { t.streamQuota++ if t.streamQuota > 0 && t.waitingStreams > 0 { select { @@ -966,8 +983,9 @@ func (t *http2Client) closeStream(s *Stream, err error, rst bool, rstCode http2. // Close kicks off the shutdown process of the transport. This should be called // only once on a transport. Once it is called, the transport should not be -// accessed any more. +// accessed anymore. func (t *http2Client) Close(err error) { + t.conn.SetWriteDeadline(time.Now().Add(time.Second * 10)) t.mu.Lock() // Make sure we only close once. if t.state == closing { @@ -991,7 +1009,20 @@ func (t *http2Client) Close(err error) { t.kpDormancyCond.Signal() } t.mu.Unlock() - t.controlBuf.finish() + + // Per HTTP/2 spec, a GOAWAY frame must be sent before closing the + // connection. See https://httpwg.org/specs/rfc7540.html#GOAWAY. It + // also waits for loopyWriter to be closed with a timer to avoid the + // long blocking in case the connection is blackholed, i.e. TCP is + // just stuck. + t.controlBuf.put(&goAway{code: http2.ErrCodeNo, debugData: []byte("client transport shutdown"), closeConn: err}) + timer := time.NewTimer(goAwayLoopyWriterTimeout) + defer timer.Stop() + select { + case <-t.writerDone: // success + case <-timer.C: + t.logger.Infof("Failed to write a GOAWAY frame as part of connection close after %s. Giving up and closing the transport.", goAwayLoopyWriterTimeout) + } t.cancel() t.conn.Close() channelz.RemoveEntry(t.channelz.ID) @@ -1047,27 +1078,36 @@ func (t *http2Client) GracefulClose() { // Write formats the data into HTTP2 data frame(s) and sends it out. The caller // should proceed only if Write returns nil. -func (t *http2Client) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { +func (t *http2Client) Write(s *Stream, hdr []byte, data mem.BufferSlice, opts *Options) error { + reader := data.Reader() + if opts.Last { // If it's the last message, update stream state. if !s.compareAndSwapState(streamActive, streamWriteDone) { + _ = reader.Close() return errStreamDone } } else if s.getState() != streamActive { + _ = reader.Close() return errStreamDone } df := &dataFrame{ streamID: s.id, endStream: opts.Last, h: hdr, - d: data, + reader: reader, } - if hdr != nil || data != nil { // If it's not an empty data frame, check quota. - if err := s.wq.get(int32(len(hdr) + len(data))); err != nil { + if hdr != nil || df.reader.Remaining() != 0 { // If it's not an empty data frame, check quota. + if err := s.wq.get(int32(len(hdr) + df.reader.Remaining())); err != nil { + _ = reader.Close() return err } } - return t.controlBuf.put(df) + if err := t.controlBuf.put(df); err != nil { + _ = reader.Close() + return err + } + return nil } func (t *http2Client) getStream(f http2.Frame) *Stream { @@ -1099,7 +1139,7 @@ func (t *http2Client) updateWindow(s *Stream, n uint32) { // for the transport and the stream based on the current bdp // estimation. func (t *http2Client) updateFlowControl(n uint32) { - updateIWS := func(any) bool { + updateIWS := func() bool { t.initialWindowSize = int32(n) t.mu.Lock() for _, s := range t.activeStreams { @@ -1172,10 +1212,13 @@ func (t *http2Client) handleData(f *http2.DataFrame) { // guarantee f.Data() is consumed before the arrival of next frame. // Can this copy be eliminated? if len(f.Data()) > 0 { - buffer := t.bufferPool.get() - buffer.Reset() - buffer.Write(f.Data()) - s.write(recvMsg{buffer: buffer}) + pool := t.bufferPool + if pool == nil { + // Note that this is only supposed to be nil in tests. Otherwise, stream is + // always initialized with a BufferPool. + pool = mem.DefaultBufferPool() + } + s.write(recvMsg{buffer: mem.Copy(f.Data(), pool)}) } } // The server has closed the stream without sending trailers. Record that @@ -1204,7 +1247,7 @@ func (t *http2Client) handleRSTStream(f *http2.RSTStreamFrame) { if statusCode == codes.Canceled { if d, ok := s.ctx.Deadline(); ok && !d.After(time.Now()) { // Our deadline was already exceeded, and that was likely the cause - // of this cancelation. Alter the status code accordingly. + // of this cancellation. Alter the status code accordingly. statusCode = codes.DeadlineExceeded } } @@ -1252,7 +1295,7 @@ func (t *http2Client) handleSettings(f *http2.SettingsFrame, isFirst bool) { } updateFuncs = append(updateFuncs, updateStreamQuota) } - t.controlBuf.executeAndPut(func(any) bool { + t.controlBuf.executeAndPut(func() bool { for _, f := range updateFuncs { f() } @@ -1289,7 +1332,7 @@ func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) { id := f.LastStreamID if id > 0 && id%2 == 0 { t.mu.Unlock() - t.Close(connectionErrorf(true, nil, "received goaway with non-zero even-numbered numbered stream id: %v", id)) + t.Close(connectionErrorf(true, nil, "received goaway with non-zero even-numbered stream id: %v", id)) return } // A client can receive multiple GoAways from the server (see @@ -1624,11 +1667,10 @@ func (t *http2Client) reader(errCh chan<- error) { t.closeStream(s, status.Error(code, msg), true, http2.ErrCodeProtocol, status.New(code, msg), nil, false) } continue - } else { - // Transport error. - t.Close(connectionErrorf(true, err, "error reading from server: %v", err)) - return } + // Transport error. + t.Close(connectionErrorf(true, err, "error reading from server: %v", err)) + return } switch frame := frame.(type) { case *http2.MetaHeadersFrame: @@ -1653,13 +1695,6 @@ func (t *http2Client) reader(errCh chan<- error) { } } -func minTime(a, b time.Duration) time.Duration { - if a < b { - return a - } - return b -} - // keepalive running in a separate goroutine makes sure the connection is alive by sending pings. func (t *http2Client) keepalive() { p := &ping{data: [8]byte{}} @@ -1727,7 +1762,7 @@ func (t *http2Client) keepalive() { // timeoutLeft. This will ensure that we wait only for kp.Time // before sending out the next ping (for cases where the ping is // acked). - sleepDuration := minTime(t.kp.Time, timeoutLeft) + sleepDuration := min(t.kp.Time, timeoutLeft) timeoutLeft -= sleepDuration timer.Reset(sleepDuration) case <-t.ctx.Done(): diff --git a/vendor/google.golang.org/grpc/internal/transport/http2_server.go b/vendor/google.golang.org/grpc/internal/transport/http2_server.go index d582e0471094..584b50fe5530 100644 --- a/vendor/google.golang.org/grpc/internal/transport/http2_server.go +++ b/vendor/google.golang.org/grpc/internal/transport/http2_server.go @@ -25,6 +25,7 @@ import ( "fmt" "io" "math" + "math/rand" "net" "net/http" "strconv" @@ -38,12 +39,12 @@ import ( "google.golang.org/grpc/internal/grpcutil" "google.golang.org/grpc/internal/pretty" "google.golang.org/grpc/internal/syscall" + "google.golang.org/grpc/mem" "google.golang.org/protobuf/proto" "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" "google.golang.org/grpc/internal/channelz" - "google.golang.org/grpc/internal/grpcrand" "google.golang.org/grpc/internal/grpcsync" "google.golang.org/grpc/keepalive" "google.golang.org/grpc/metadata" @@ -119,7 +120,7 @@ type http2Server struct { // Fields below are for channelz metric collection. channelz *channelz.Socket - bufferPool *bufferPool + bufferPool mem.BufferPool connectionID uint64 @@ -261,7 +262,7 @@ func NewServerTransport(conn net.Conn, config *ServerConfig) (_ ServerTransport, idle: time.Now(), kep: kep, initialWindowSize: iwz, - bufferPool: newBufferPool(), + bufferPool: config.BufferPool, } var czSecurity credentials.ChannelzSecurityValue if au, ok := authInfo.(credentials.ChannelzSecurityInfo); ok { @@ -330,8 +331,7 @@ func NewServerTransport(conn net.Conn, config *ServerConfig) (_ ServerTransport, t.handleSettings(sf) go func() { - t.loopy = newLoopyWriter(serverSide, t.framer, t.controlBuf, t.bdpEst, t.conn, t.logger) - t.loopy.ssGoAwayHandler = t.outgoingGoAwayHandler + t.loopy = newLoopyWriter(serverSide, t.framer, t.controlBuf, t.bdpEst, t.conn, t.logger, t.outgoingGoAwayHandler, t.bufferPool) err := t.loopy.run() close(t.loopyWriterDone) if !isIOError(err) { @@ -614,10 +614,9 @@ func (t *http2Server) operateHeaders(ctx context.Context, frame *http2.MetaHeade s.wq = newWriteQuota(defaultWriteQuota, s.ctxDone) s.trReader = &transportReader{ reader: &recvBufferReader{ - ctx: s.ctx, - ctxDone: s.ctxDone, - recv: s.buf, - freeBuffer: t.bufferPool.put, + ctx: s.ctx, + ctxDone: s.ctxDone, + recv: s.buf, }, windowHandler: func(n int) { t.updateWindow(s, uint32(n)) @@ -814,10 +813,13 @@ func (t *http2Server) handleData(f *http2.DataFrame) { // guarantee f.Data() is consumed before the arrival of next frame. // Can this copy be eliminated? if len(f.Data()) > 0 { - buffer := t.bufferPool.get() - buffer.Reset() - buffer.Write(f.Data()) - s.write(recvMsg{buffer: buffer}) + pool := t.bufferPool + if pool == nil { + // Note that this is only supposed to be nil in tests. Otherwise, stream is + // always initialized with a BufferPool. + pool = mem.DefaultBufferPool() + } + s.write(recvMsg{buffer: mem.Copy(f.Data(), pool)}) } } if f.StreamEnded() { @@ -860,7 +862,7 @@ func (t *http2Server) handleSettings(f *http2.SettingsFrame) { } return nil }) - t.controlBuf.executeAndPut(func(any) bool { + t.controlBuf.executeAndPut(func() bool { for _, f := range updateFuncs { f() } @@ -1014,12 +1016,13 @@ func (t *http2Server) writeHeaderLocked(s *Stream) error { headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-encoding", Value: s.sendCompress}) } headerFields = appendHeaderFieldsFromMD(headerFields, s.header) - success, err := t.controlBuf.executeAndPut(t.checkForHeaderListSize, &headerFrame{ + hf := &headerFrame{ streamID: s.id, hf: headerFields, endStream: false, onWrite: t.setResetPingStrikes, - }) + } + success, err := t.controlBuf.executeAndPut(func() bool { return t.checkForHeaderListSize(hf) }, hf) if !success { if err != nil { return err @@ -1089,7 +1092,9 @@ func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error { onWrite: t.setResetPingStrikes, } - success, err := t.controlBuf.execute(t.checkForHeaderListSize, trailingHeader) + success, err := t.controlBuf.executeAndPut(func() bool { + return t.checkForHeaderListSize(trailingHeader) + }, nil) if !success { if err != nil { return err @@ -1112,27 +1117,37 @@ func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error { // Write converts the data into HTTP2 data frame and sends it out. Non-nil error // is returns if it fails (e.g., framing error, transport error). -func (t *http2Server) Write(s *Stream, hdr []byte, data []byte, opts *Options) error { +func (t *http2Server) Write(s *Stream, hdr []byte, data mem.BufferSlice, _ *Options) error { + reader := data.Reader() + if !s.isHeaderSent() { // Headers haven't been written yet. if err := t.WriteHeader(s, nil); err != nil { + _ = reader.Close() return err } } else { // Writing headers checks for this condition. if s.getState() == streamDone { + _ = reader.Close() return t.streamContextErr(s) } } + df := &dataFrame{ streamID: s.id, h: hdr, - d: data, + reader: reader, onEachWrite: t.setResetPingStrikes, } - if err := s.wq.get(int32(len(hdr) + len(data))); err != nil { + if err := s.wq.get(int32(len(hdr) + df.reader.Remaining())); err != nil { + _ = reader.Close() return t.streamContextErr(s) } - return t.controlBuf.put(df) + if err := t.controlBuf.put(df); err != nil { + _ = reader.Close() + return err + } + return nil } // keepalive running in a separate goroutine does the following: @@ -1208,7 +1223,7 @@ func (t *http2Server) keepalive() { continue } if outstandingPing && kpTimeoutLeft <= 0 { - t.Close(fmt.Errorf("keepalive ping not acked within timeout %s", t.kp.Time)) + t.Close(fmt.Errorf("keepalive ping not acked within timeout %s", t.kp.Timeout)) return } if !outstandingPing { @@ -1223,7 +1238,7 @@ func (t *http2Server) keepalive() { // timeoutLeft. This will ensure that we wait only for kp.Time // before sending out the next ping (for cases where the ping is // acked). - sleepDuration := minTime(t.kp.Time, kpTimeoutLeft) + sleepDuration := min(t.kp.Time, kpTimeoutLeft) kpTimeoutLeft -= sleepDuration kpTimer.Reset(sleepDuration) case <-t.done: @@ -1440,7 +1455,7 @@ func getJitter(v time.Duration) time.Duration { } // Generate a jitter between +/- 10% of the value. r := int64(v / 10) - j := grpcrand.Int63n(2*r) - r + j := rand.Int63n(2*r) - r return time.Duration(j) } diff --git a/vendor/google.golang.org/grpc/internal/transport/http_util.go b/vendor/google.golang.org/grpc/internal/transport/http_util.go index 39cef3bd442e..3613d7b64817 100644 --- a/vendor/google.golang.org/grpc/internal/transport/http_util.go +++ b/vendor/google.golang.org/grpc/internal/transport/http_util.go @@ -317,28 +317,32 @@ func newBufWriter(conn net.Conn, batchSize int, pool *sync.Pool) *bufWriter { return w } -func (w *bufWriter) Write(b []byte) (n int, err error) { +func (w *bufWriter) Write(b []byte) (int, error) { if w.err != nil { return 0, w.err } if w.batchSize == 0 { // Buffer has been disabled. - n, err = w.conn.Write(b) + n, err := w.conn.Write(b) return n, toIOError(err) } if w.buf == nil { b := w.pool.Get().(*[]byte) w.buf = *b } + written := 0 for len(b) > 0 { - nn := copy(w.buf[w.offset:], b) - b = b[nn:] - w.offset += nn - n += nn - if w.offset >= w.batchSize { - err = w.flushKeepBuffer() + copied := copy(w.buf[w.offset:], b) + b = b[copied:] + written += copied + w.offset += copied + if w.offset < w.batchSize { + continue + } + if err := w.flushKeepBuffer(); err != nil { + return written, err } } - return n, err + return written, nil } func (w *bufWriter) Flush() error { @@ -389,7 +393,7 @@ type framer struct { fr *http2.Framer } -var writeBufferPoolMap map[int]*sync.Pool = make(map[int]*sync.Pool) +var writeBufferPoolMap = make(map[int]*sync.Pool) var writeBufferMutex sync.Mutex func newFramer(conn net.Conn, writeBufferSize, readBufferSize int, sharedWriteBuffer bool, maxHeaderListSize uint32) *framer { diff --git a/vendor/google.golang.org/grpc/internal/transport/proxy.go b/vendor/google.golang.org/grpc/internal/transport/proxy.go index 24fa1032574c..54b224436544 100644 --- a/vendor/google.golang.org/grpc/internal/transport/proxy.go +++ b/vendor/google.golang.org/grpc/internal/transport/proxy.go @@ -107,8 +107,14 @@ func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, backendAddr stri } return nil, fmt.Errorf("failed to do connect handshake, response: %q", dump) } - - return &bufConn{Conn: conn, r: r}, nil + // The buffer could contain extra bytes from the target server, so we can't + // discard it. However, in many cases where the server waits for the client + // to send the first message (e.g. when TLS is being used), the buffer will + // be empty, so we can avoid the overhead of reading through this buffer. + if r.Buffered() != 0 { + return &bufConn{Conn: conn, r: r}, nil + } + return conn, nil } // proxyDial dials, connecting to a proxy first if necessary. Checks if a proxy diff --git a/vendor/google.golang.org/grpc/internal/transport/transport.go b/vendor/google.golang.org/grpc/internal/transport/transport.go index 0d2a6e47f671..924ba4f36533 100644 --- a/vendor/google.golang.org/grpc/internal/transport/transport.go +++ b/vendor/google.golang.org/grpc/internal/transport/transport.go @@ -22,7 +22,6 @@ package transport import ( - "bytes" "context" "errors" "fmt" @@ -37,6 +36,7 @@ import ( "google.golang.org/grpc/credentials" "google.golang.org/grpc/internal/channelz" "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/mem" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/resolver" @@ -47,32 +47,10 @@ import ( const logLevel = 2 -type bufferPool struct { - pool sync.Pool -} - -func newBufferPool() *bufferPool { - return &bufferPool{ - pool: sync.Pool{ - New: func() any { - return new(bytes.Buffer) - }, - }, - } -} - -func (p *bufferPool) get() *bytes.Buffer { - return p.pool.Get().(*bytes.Buffer) -} - -func (p *bufferPool) put(b *bytes.Buffer) { - p.pool.Put(b) -} - // recvMsg represents the received msg from the transport. All transport // protocol specific info has been removed. type recvMsg struct { - buffer *bytes.Buffer + buffer mem.Buffer // nil: received some data // io.EOF: stream is completed. data is nil. // other non-nil error: transport failure. data is nil. @@ -102,6 +80,9 @@ func newRecvBuffer() *recvBuffer { func (b *recvBuffer) put(r recvMsg) { b.mu.Lock() if b.err != nil { + // drop the buffer on the floor. Since b.err is not nil, any subsequent reads + // will always return an error, making this buffer inaccessible. + r.buffer.Free() b.mu.Unlock() // An error had occurred earlier, don't accept more // data or errors. @@ -148,45 +129,97 @@ type recvBufferReader struct { ctx context.Context ctxDone <-chan struct{} // cache of ctx.Done() (for performance). recv *recvBuffer - last *bytes.Buffer // Stores the remaining data in the previous calls. + last mem.Buffer // Stores the remaining data in the previous calls. err error - freeBuffer func(*bytes.Buffer) } -// Read reads the next len(p) bytes from last. If last is drained, it tries to -// read additional data from recv. It blocks if there no additional data available -// in recv. If Read returns any non-nil error, it will continue to return that error. -func (r *recvBufferReader) Read(p []byte) (n int, err error) { +func (r *recvBufferReader) ReadHeader(header []byte) (n int, err error) { if r.err != nil { return 0, r.err } if r.last != nil { - // Read remaining data left in last call. - copied, _ := r.last.Read(p) - if r.last.Len() == 0 { - r.freeBuffer(r.last) + n, r.last = mem.ReadUnsafe(header, r.last) + return n, nil + } + if r.closeStream != nil { + n, r.err = r.readHeaderClient(header) + } else { + n, r.err = r.readHeader(header) + } + return n, r.err +} + +// Read reads the next n bytes from last. If last is drained, it tries to read +// additional data from recv. It blocks if there no additional data available in +// recv. If Read returns any non-nil error, it will continue to return that +// error. +func (r *recvBufferReader) Read(n int) (buf mem.Buffer, err error) { + if r.err != nil { + return nil, r.err + } + if r.last != nil { + buf = r.last + if r.last.Len() > n { + buf, r.last = mem.SplitUnsafe(buf, n) + } else { r.last = nil } - return copied, nil + return buf, nil } if r.closeStream != nil { - n, r.err = r.readClient(p) + buf, r.err = r.readClient(n) } else { - n, r.err = r.read(p) + buf, r.err = r.read(n) } - return n, r.err + return buf, r.err } -func (r *recvBufferReader) read(p []byte) (n int, err error) { +func (r *recvBufferReader) readHeader(header []byte) (n int, err error) { select { case <-r.ctxDone: return 0, ContextErr(r.ctx.Err()) case m := <-r.recv.get(): - return r.readAdditional(m, p) + return r.readHeaderAdditional(m, header) + } +} + +func (r *recvBufferReader) read(n int) (buf mem.Buffer, err error) { + select { + case <-r.ctxDone: + return nil, ContextErr(r.ctx.Err()) + case m := <-r.recv.get(): + return r.readAdditional(m, n) + } +} + +func (r *recvBufferReader) readHeaderClient(header []byte) (n int, err error) { + // If the context is canceled, then closes the stream with nil metadata. + // closeStream writes its error parameter to r.recv as a recvMsg. + // r.readAdditional acts on that message and returns the necessary error. + select { + case <-r.ctxDone: + // Note that this adds the ctx error to the end of recv buffer, and + // reads from the head. This will delay the error until recv buffer is + // empty, thus will delay ctx cancellation in Recv(). + // + // It's done this way to fix a race between ctx cancel and trailer. The + // race was, stream.Recv() may return ctx error if ctxDone wins the + // race, but stream.Trailer() may return a non-nil md because the stream + // was not marked as done when trailer is received. This closeStream + // call will mark stream as done, thus fix the race. + // + // TODO: delaying ctx error seems like a unnecessary side effect. What + // we really want is to mark the stream as done, and return ctx error + // faster. + r.closeStream(ContextErr(r.ctx.Err())) + m := <-r.recv.get() + return r.readHeaderAdditional(m, header) + case m := <-r.recv.get(): + return r.readHeaderAdditional(m, header) } } -func (r *recvBufferReader) readClient(p []byte) (n int, err error) { +func (r *recvBufferReader) readClient(n int) (buf mem.Buffer, err error) { // If the context is canceled, then closes the stream with nil metadata. // closeStream writes its error parameter to r.recv as a recvMsg. // r.readAdditional acts on that message and returns the necessary error. @@ -207,25 +240,40 @@ func (r *recvBufferReader) readClient(p []byte) (n int, err error) { // faster. r.closeStream(ContextErr(r.ctx.Err())) m := <-r.recv.get() - return r.readAdditional(m, p) + return r.readAdditional(m, n) case m := <-r.recv.get(): - return r.readAdditional(m, p) + return r.readAdditional(m, n) } } -func (r *recvBufferReader) readAdditional(m recvMsg, p []byte) (n int, err error) { +func (r *recvBufferReader) readHeaderAdditional(m recvMsg, header []byte) (n int, err error) { r.recv.load() if m.err != nil { + if m.buffer != nil { + m.buffer.Free() + } return 0, m.err } - copied, _ := m.buffer.Read(p) - if m.buffer.Len() == 0 { - r.freeBuffer(m.buffer) - r.last = nil - } else { - r.last = m.buffer + + n, r.last = mem.ReadUnsafe(header, m.buffer) + + return n, nil +} + +func (r *recvBufferReader) readAdditional(m recvMsg, n int) (b mem.Buffer, err error) { + r.recv.load() + if m.err != nil { + if m.buffer != nil { + m.buffer.Free() + } + return nil, m.err + } + + if m.buffer.Len() > n { + m.buffer, r.last = mem.SplitUnsafe(m.buffer, n) } - return copied, nil + + return m.buffer, nil } type streamState uint32 @@ -241,7 +289,7 @@ const ( type Stream struct { id uint32 st ServerTransport // nil for client side Stream - ct *http2Client // nil for server side Stream + ct ClientTransport // nil for server side Stream ctx context.Context // the associated context of the stream cancel context.CancelFunc // always nil for client side Stream done chan struct{} // closed at the end of stream to unblock writers. On the client side. @@ -251,7 +299,7 @@ type Stream struct { recvCompress string sendCompress string buf *recvBuffer - trReader io.Reader + trReader *transportReader fc *inFlow wq *writeQuota @@ -304,7 +352,7 @@ func (s *Stream) isHeaderSent() bool { } // updateHeaderSent updates headerSent and returns true -// if it was alreay set. It is valid only on server-side. +// if it was already set. It is valid only on server-side. func (s *Stream) updateHeaderSent() bool { return atomic.SwapUint32(&s.headerSent, 1) == 1 } @@ -408,7 +456,7 @@ func (s *Stream) TrailersOnly() bool { return s.noHeaders } -// Trailer returns the cached trailer metedata. Note that if it is not called +// Trailer returns the cached trailer metadata. Note that if it is not called // after the entire stream is done, it could return an empty MD. Client // side only. // It can be safely read only after stream has ended that is either read @@ -499,36 +547,87 @@ func (s *Stream) write(m recvMsg) { s.buf.put(m) } -// Read reads all p bytes from the wire for this stream. -func (s *Stream) Read(p []byte) (n int, err error) { +func (s *Stream) ReadHeader(header []byte) (err error) { + // Don't request a read if there was an error earlier + if er := s.trReader.er; er != nil { + return er + } + s.requestRead(len(header)) + for len(header) != 0 { + n, err := s.trReader.ReadHeader(header) + header = header[n:] + if len(header) == 0 { + err = nil + } + if err != nil { + if n > 0 && err == io.EOF { + err = io.ErrUnexpectedEOF + } + return err + } + } + return nil +} + +// Read reads n bytes from the wire for this stream. +func (s *Stream) Read(n int) (data mem.BufferSlice, err error) { // Don't request a read if there was an error earlier - if er := s.trReader.(*transportReader).er; er != nil { - return 0, er + if er := s.trReader.er; er != nil { + return nil, er } - s.requestRead(len(p)) - return io.ReadFull(s.trReader, p) + s.requestRead(n) + for n != 0 { + buf, err := s.trReader.Read(n) + var bufLen int + if buf != nil { + bufLen = buf.Len() + } + n -= bufLen + if n == 0 { + err = nil + } + if err != nil { + if bufLen > 0 && err == io.EOF { + err = io.ErrUnexpectedEOF + } + data.Free() + return nil, err + } + data = append(data, buf) + } + return data, nil } -// tranportReader reads all the data available for this Stream from the transport and +// transportReader reads all the data available for this Stream from the transport and // passes them into the decoder, which converts them into a gRPC message stream. // The error is io.EOF when the stream is done or another non-nil error if // the stream broke. type transportReader struct { - reader io.Reader + reader *recvBufferReader // The handler to control the window update procedure for both this // particular stream and the associated transport. windowHandler func(int) er error } -func (t *transportReader) Read(p []byte) (n int, err error) { - n, err = t.reader.Read(p) +func (t *transportReader) ReadHeader(header []byte) (int, error) { + n, err := t.reader.ReadHeader(header) if err != nil { t.er = err - return + return 0, err } t.windowHandler(n) - return + return n, nil +} + +func (t *transportReader) Read(n int) (mem.Buffer, error) { + buf, err := t.reader.Read(n) + if err != nil { + t.er = err + return buf, err + } + t.windowHandler(buf.Len()) + return buf, nil } // BytesReceived indicates whether any bytes have been received on this stream. @@ -574,6 +673,7 @@ type ServerConfig struct { ChannelzParent *channelz.Server MaxHeaderListSize *uint32 HeaderTableSize *uint32 + BufferPool mem.BufferPool } // ConnectOptions covers all relevant options for communicating with the server. @@ -612,6 +712,8 @@ type ConnectOptions struct { MaxHeaderListSize *uint32 // UseProxy specifies if a proxy should be used. UseProxy bool + // The mem.BufferPool to use when reading/writing to the wire. + BufferPool mem.BufferPool } // NewClientTransport establishes the transport with the required ConnectOptions @@ -673,7 +775,7 @@ type ClientTransport interface { // Write sends the data for the given stream. A nil stream indicates // the write is to be performed on the transport as a whole. - Write(s *Stream, hdr []byte, data []byte, opts *Options) error + Write(s *Stream, hdr []byte, data mem.BufferSlice, opts *Options) error // NewStream creates a Stream for an RPC. NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, error) @@ -725,7 +827,7 @@ type ServerTransport interface { // Write sends the data for the given stream. // Write may not be called on all streams. - Write(s *Stream, hdr []byte, data []byte, opts *Options) error + Write(s *Stream, hdr []byte, data mem.BufferSlice, opts *Options) error // WriteStatus sends the status of a stream to the client. WriteStatus is // the final call made on a stream and always occurs. @@ -798,7 +900,7 @@ var ( // connection is draining. This could be caused by goaway or balancer // removing the address. errStreamDrain = status.Error(codes.Unavailable, "the connection is draining") - // errStreamDone is returned from write at the client side to indiacte application + // errStreamDone is returned from write at the client side to indicate application // layer of an error. errStreamDone = errors.New("the stream is done") // StatusGoAway indicates that the server sent a GOAWAY that included this diff --git a/vendor/google.golang.org/grpc/keepalive/keepalive.go b/vendor/google.golang.org/grpc/keepalive/keepalive.go index 34d31b5e7d31..eb42b19fb99a 100644 --- a/vendor/google.golang.org/grpc/keepalive/keepalive.go +++ b/vendor/google.golang.org/grpc/keepalive/keepalive.go @@ -34,15 +34,29 @@ type ClientParameters struct { // After a duration of this time if the client doesn't see any activity it // pings the server to see if the transport is still alive. // If set below 10s, a minimum value of 10s will be used instead. - Time time.Duration // The current default value is infinity. + // + // Note that gRPC servers have a default EnforcementPolicy.MinTime of 5 + // minutes (which means the client shouldn't ping more frequently than every + // 5 minutes). + // + // Though not ideal, it's not a strong requirement for Time to be less than + // EnforcementPolicy.MinTime. Time will automatically double if the server + // disconnects due to its enforcement policy. + // + // For more details, see + // https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md + Time time.Duration // After having pinged for keepalive check, the client waits for a duration // of Timeout and if no activity is seen even after that the connection is // closed. - Timeout time.Duration // The current default value is 20 seconds. + // + // If keepalive is enabled, and this value is not explicitly set, the default + // is 20 seconds. + Timeout time.Duration // If true, client sends keepalive pings even with no active RPCs. If false, // when there are no active RPCs, Time and Timeout will be ignored and no // keepalive pings will be sent. - PermitWithoutStream bool // false by default. + PermitWithoutStream bool } // ServerParameters is used to set keepalive and max-age parameters on the diff --git a/vendor/google.golang.org/grpc/mem/buffer_pool.go b/vendor/google.golang.org/grpc/mem/buffer_pool.go new file mode 100644 index 000000000000..c37c58c0233e --- /dev/null +++ b/vendor/google.golang.org/grpc/mem/buffer_pool.go @@ -0,0 +1,194 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package mem + +import ( + "sort" + "sync" + + "google.golang.org/grpc/internal" +) + +// BufferPool is a pool of buffers that can be shared and reused, resulting in +// decreased memory allocation. +type BufferPool interface { + // Get returns a buffer with specified length from the pool. + Get(length int) *[]byte + + // Put returns a buffer to the pool. + Put(*[]byte) +} + +var defaultBufferPoolSizes = []int{ + 256, + 4 << 10, // 4KB (go page size) + 16 << 10, // 16KB (max HTTP/2 frame size used by gRPC) + 32 << 10, // 32KB (default buffer size for io.Copy) + 1 << 20, // 1MB +} + +var defaultBufferPool BufferPool + +func init() { + defaultBufferPool = NewTieredBufferPool(defaultBufferPoolSizes...) + + internal.SetDefaultBufferPoolForTesting = func(pool BufferPool) { + defaultBufferPool = pool + } + + internal.SetBufferPoolingThresholdForTesting = func(threshold int) { + bufferPoolingThreshold = threshold + } +} + +// DefaultBufferPool returns the current default buffer pool. It is a BufferPool +// created with NewBufferPool that uses a set of default sizes optimized for +// expected workflows. +func DefaultBufferPool() BufferPool { + return defaultBufferPool +} + +// NewTieredBufferPool returns a BufferPool implementation that uses multiple +// underlying pools of the given pool sizes. +func NewTieredBufferPool(poolSizes ...int) BufferPool { + sort.Ints(poolSizes) + pools := make([]*sizedBufferPool, len(poolSizes)) + for i, s := range poolSizes { + pools[i] = newSizedBufferPool(s) + } + return &tieredBufferPool{ + sizedPools: pools, + } +} + +// tieredBufferPool implements the BufferPool interface with multiple tiers of +// buffer pools for different sizes of buffers. +type tieredBufferPool struct { + sizedPools []*sizedBufferPool + fallbackPool simpleBufferPool +} + +func (p *tieredBufferPool) Get(size int) *[]byte { + return p.getPool(size).Get(size) +} + +func (p *tieredBufferPool) Put(buf *[]byte) { + p.getPool(cap(*buf)).Put(buf) +} + +func (p *tieredBufferPool) getPool(size int) BufferPool { + poolIdx := sort.Search(len(p.sizedPools), func(i int) bool { + return p.sizedPools[i].defaultSize >= size + }) + + if poolIdx == len(p.sizedPools) { + return &p.fallbackPool + } + + return p.sizedPools[poolIdx] +} + +// sizedBufferPool is a BufferPool implementation that is optimized for specific +// buffer sizes. For example, HTTP/2 frames within gRPC have a default max size +// of 16kb and a sizedBufferPool can be configured to only return buffers with a +// capacity of 16kb. Note that however it does not support returning larger +// buffers and in fact panics if such a buffer is requested. Because of this, +// this BufferPool implementation is not meant to be used on its own and rather +// is intended to be embedded in a tieredBufferPool such that Get is only +// invoked when the required size is smaller than or equal to defaultSize. +type sizedBufferPool struct { + pool sync.Pool + defaultSize int +} + +func (p *sizedBufferPool) Get(size int) *[]byte { + buf := p.pool.Get().(*[]byte) + b := *buf + clear(b[:cap(b)]) + *buf = b[:size] + return buf +} + +func (p *sizedBufferPool) Put(buf *[]byte) { + if cap(*buf) < p.defaultSize { + // Ignore buffers that are too small to fit in the pool. Otherwise, when + // Get is called it will panic as it tries to index outside the bounds + // of the buffer. + return + } + p.pool.Put(buf) +} + +func newSizedBufferPool(size int) *sizedBufferPool { + return &sizedBufferPool{ + pool: sync.Pool{ + New: func() any { + buf := make([]byte, size) + return &buf + }, + }, + defaultSize: size, + } +} + +var _ BufferPool = (*simpleBufferPool)(nil) + +// simpleBufferPool is an implementation of the BufferPool interface that +// attempts to pool buffers with a sync.Pool. When Get is invoked, it tries to +// acquire a buffer from the pool but if that buffer is too small, it returns it +// to the pool and creates a new one. +type simpleBufferPool struct { + pool sync.Pool +} + +func (p *simpleBufferPool) Get(size int) *[]byte { + bs, ok := p.pool.Get().(*[]byte) + if ok && cap(*bs) >= size { + *bs = (*bs)[:size] + return bs + } + + // A buffer was pulled from the pool, but it is too small. Put it back in + // the pool and create one large enough. + if ok { + p.pool.Put(bs) + } + + b := make([]byte, size) + return &b +} + +func (p *simpleBufferPool) Put(buf *[]byte) { + p.pool.Put(buf) +} + +var _ BufferPool = NopBufferPool{} + +// NopBufferPool is a buffer pool that returns new buffers without pooling. +type NopBufferPool struct{} + +// Get returns a buffer with specified length from the pool. +func (NopBufferPool) Get(length int) *[]byte { + b := make([]byte, length) + return &b +} + +// Put returns a buffer to the pool. +func (NopBufferPool) Put(*[]byte) { +} diff --git a/vendor/google.golang.org/grpc/mem/buffer_slice.go b/vendor/google.golang.org/grpc/mem/buffer_slice.go new file mode 100644 index 000000000000..228e9c2f20f2 --- /dev/null +++ b/vendor/google.golang.org/grpc/mem/buffer_slice.go @@ -0,0 +1,226 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package mem + +import ( + "io" +) + +// BufferSlice offers a means to represent data that spans one or more Buffer +// instances. A BufferSlice is meant to be immutable after creation, and methods +// like Ref create and return copies of the slice. This is why all methods have +// value receivers rather than pointer receivers. +// +// Note that any of the methods that read the underlying buffers such as Ref, +// Len or CopyTo etc., will panic if any underlying buffers have already been +// freed. It is recommended to not directly interact with any of the underlying +// buffers directly, rather such interactions should be mediated through the +// various methods on this type. +// +// By convention, any APIs that return (mem.BufferSlice, error) should reduce +// the burden on the caller by never returning a mem.BufferSlice that needs to +// be freed if the error is non-nil, unless explicitly stated. +type BufferSlice []Buffer + +// Len returns the sum of the length of all the Buffers in this slice. +// +// # Warning +// +// Invoking the built-in len on a BufferSlice will return the number of buffers +// in the slice, and *not* the value returned by this function. +func (s BufferSlice) Len() int { + var length int + for _, b := range s { + length += b.Len() + } + return length +} + +// Ref invokes Ref on each buffer in the slice. +func (s BufferSlice) Ref() { + for _, b := range s { + b.Ref() + } +} + +// Free invokes Buffer.Free() on each Buffer in the slice. +func (s BufferSlice) Free() { + for _, b := range s { + b.Free() + } +} + +// CopyTo copies each of the underlying Buffer's data into the given buffer, +// returning the number of bytes copied. Has the same semantics as the copy +// builtin in that it will copy as many bytes as it can, stopping when either dst +// is full or s runs out of data, returning the minimum of s.Len() and len(dst). +func (s BufferSlice) CopyTo(dst []byte) int { + off := 0 + for _, b := range s { + off += copy(dst[off:], b.ReadOnlyData()) + } + return off +} + +// Materialize concatenates all the underlying Buffer's data into a single +// contiguous buffer using CopyTo. +func (s BufferSlice) Materialize() []byte { + l := s.Len() + if l == 0 { + return nil + } + out := make([]byte, l) + s.CopyTo(out) + return out +} + +// MaterializeToBuffer functions like Materialize except that it writes the data +// to a single Buffer pulled from the given BufferPool. +// +// As a special case, if the input BufferSlice only actually has one Buffer, this +// function simply increases the refcount before returning said Buffer. Freeing this +// buffer won't release it until the BufferSlice is itself released. +func (s BufferSlice) MaterializeToBuffer(pool BufferPool) Buffer { + if len(s) == 1 { + s[0].Ref() + return s[0] + } + sLen := s.Len() + if sLen == 0 { + return emptyBuffer{} + } + buf := pool.Get(sLen) + s.CopyTo(*buf) + return NewBuffer(buf, pool) +} + +// Reader returns a new Reader for the input slice after taking references to +// each underlying buffer. +func (s BufferSlice) Reader() Reader { + s.Ref() + return &sliceReader{ + data: s, + len: s.Len(), + } +} + +// Reader exposes a BufferSlice's data as an io.Reader, allowing it to interface +// with other parts systems. It also provides an additional convenience method +// Remaining(), which returns the number of unread bytes remaining in the slice. +// Buffers will be freed as they are read. +type Reader interface { + io.Reader + io.ByteReader + // Close frees the underlying BufferSlice and never returns an error. Subsequent + // calls to Read will return (0, io.EOF). + Close() error + // Remaining returns the number of unread bytes remaining in the slice. + Remaining() int +} + +type sliceReader struct { + data BufferSlice + len int + // The index into data[0].ReadOnlyData(). + bufferIdx int +} + +func (r *sliceReader) Remaining() int { + return r.len +} + +func (r *sliceReader) Close() error { + r.data.Free() + r.data = nil + r.len = 0 + return nil +} + +func (r *sliceReader) freeFirstBufferIfEmpty() bool { + if len(r.data) == 0 || r.bufferIdx != len(r.data[0].ReadOnlyData()) { + return false + } + + r.data[0].Free() + r.data = r.data[1:] + r.bufferIdx = 0 + return true +} + +func (r *sliceReader) Read(buf []byte) (n int, _ error) { + if r.len == 0 { + return 0, io.EOF + } + + for len(buf) != 0 && r.len != 0 { + // Copy as much as possible from the first Buffer in the slice into the + // given byte slice. + data := r.data[0].ReadOnlyData() + copied := copy(buf, data[r.bufferIdx:]) + r.len -= copied // Reduce len by the number of bytes copied. + r.bufferIdx += copied // Increment the buffer index. + n += copied // Increment the total number of bytes read. + buf = buf[copied:] // Shrink the given byte slice. + + // If we have copied all the data from the first Buffer, free it and advance to + // the next in the slice. + r.freeFirstBufferIfEmpty() + } + + return n, nil +} + +func (r *sliceReader) ReadByte() (byte, error) { + if r.len == 0 { + return 0, io.EOF + } + + // There may be any number of empty buffers in the slice, clear them all until a + // non-empty buffer is reached. This is guaranteed to exit since r.len is not 0. + for r.freeFirstBufferIfEmpty() { + } + + b := r.data[0].ReadOnlyData()[r.bufferIdx] + r.len-- + r.bufferIdx++ + // Free the first buffer in the slice if the last byte was read + r.freeFirstBufferIfEmpty() + return b, nil +} + +var _ io.Writer = (*writer)(nil) + +type writer struct { + buffers *BufferSlice + pool BufferPool +} + +func (w *writer) Write(p []byte) (n int, err error) { + b := Copy(p, w.pool) + *w.buffers = append(*w.buffers, b) + return b.Len(), nil +} + +// NewWriter wraps the given BufferSlice and BufferPool to implement the +// io.Writer interface. Every call to Write copies the contents of the given +// buffer into a new Buffer pulled from the given pool and the Buffer is added to +// the given BufferSlice. +func NewWriter(buffers *BufferSlice, pool BufferPool) io.Writer { + return &writer{buffers: buffers, pool: pool} +} diff --git a/vendor/google.golang.org/grpc/mem/buffers.go b/vendor/google.golang.org/grpc/mem/buffers.go new file mode 100644 index 000000000000..4d66b2ccc2be --- /dev/null +++ b/vendor/google.golang.org/grpc/mem/buffers.go @@ -0,0 +1,252 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +// Package mem provides utilities that facilitate memory reuse in byte slices +// that are used as buffers. +// +// # Experimental +// +// Notice: All APIs in this package are EXPERIMENTAL and may be changed or +// removed in a later release. +package mem + +import ( + "fmt" + "sync" + "sync/atomic" +) + +// A Buffer represents a reference counted piece of data (in bytes) that can be +// acquired by a call to NewBuffer() or Copy(). A reference to a Buffer may be +// released by calling Free(), which invokes the free function given at creation +// only after all references are released. +// +// Note that a Buffer is not safe for concurrent access and instead each +// goroutine should use its own reference to the data, which can be acquired via +// a call to Ref(). +// +// Attempts to access the underlying data after releasing the reference to the +// Buffer will panic. +type Buffer interface { + // ReadOnlyData returns the underlying byte slice. Note that it is undefined + // behavior to modify the contents of this slice in any way. + ReadOnlyData() []byte + // Ref increases the reference counter for this Buffer. + Ref() + // Free decrements this Buffer's reference counter and frees the underlying + // byte slice if the counter reaches 0 as a result of this call. + Free() + // Len returns the Buffer's size. + Len() int + + split(n int) (left, right Buffer) + read(buf []byte) (int, Buffer) +} + +var ( + bufferPoolingThreshold = 1 << 10 + + bufferObjectPool = sync.Pool{New: func() any { return new(buffer) }} + refObjectPool = sync.Pool{New: func() any { return new(atomic.Int32) }} +) + +func IsBelowBufferPoolingThreshold(size int) bool { + return size <= bufferPoolingThreshold +} + +type buffer struct { + origData *[]byte + data []byte + refs *atomic.Int32 + pool BufferPool +} + +func newBuffer() *buffer { + return bufferObjectPool.Get().(*buffer) +} + +// NewBuffer creates a new Buffer from the given data, initializing the reference +// counter to 1. The data will then be returned to the given pool when all +// references to the returned Buffer are released. As a special case to avoid +// additional allocations, if the given buffer pool is nil, the returned buffer +// will be a "no-op" Buffer where invoking Buffer.Free() does nothing and the +// underlying data is never freed. +// +// Note that the backing array of the given data is not copied. +func NewBuffer(data *[]byte, pool BufferPool) Buffer { + if pool == nil || IsBelowBufferPoolingThreshold(len(*data)) { + return (SliceBuffer)(*data) + } + b := newBuffer() + b.origData = data + b.data = *data + b.pool = pool + b.refs = refObjectPool.Get().(*atomic.Int32) + b.refs.Add(1) + return b +} + +// Copy creates a new Buffer from the given data, initializing the reference +// counter to 1. +// +// It acquires a []byte from the given pool and copies over the backing array +// of the given data. The []byte acquired from the pool is returned to the +// pool when all references to the returned Buffer are released. +func Copy(data []byte, pool BufferPool) Buffer { + if IsBelowBufferPoolingThreshold(len(data)) { + buf := make(SliceBuffer, len(data)) + copy(buf, data) + return buf + } + + buf := pool.Get(len(data)) + copy(*buf, data) + return NewBuffer(buf, pool) +} + +func (b *buffer) ReadOnlyData() []byte { + if b.refs == nil { + panic("Cannot read freed buffer") + } + return b.data +} + +func (b *buffer) Ref() { + if b.refs == nil { + panic("Cannot ref freed buffer") + } + b.refs.Add(1) +} + +func (b *buffer) Free() { + if b.refs == nil { + panic("Cannot free freed buffer") + } + + refs := b.refs.Add(-1) + switch { + case refs > 0: + return + case refs == 0: + if b.pool != nil { + b.pool.Put(b.origData) + } + + refObjectPool.Put(b.refs) + b.origData = nil + b.data = nil + b.refs = nil + b.pool = nil + bufferObjectPool.Put(b) + default: + panic("Cannot free freed buffer") + } +} + +func (b *buffer) Len() int { + return len(b.ReadOnlyData()) +} + +func (b *buffer) split(n int) (Buffer, Buffer) { + if b.refs == nil { + panic("Cannot split freed buffer") + } + + b.refs.Add(1) + split := newBuffer() + split.origData = b.origData + split.data = b.data[n:] + split.refs = b.refs + split.pool = b.pool + + b.data = b.data[:n] + + return b, split +} + +func (b *buffer) read(buf []byte) (int, Buffer) { + if b.refs == nil { + panic("Cannot read freed buffer") + } + + n := copy(buf, b.data) + if n == len(b.data) { + b.Free() + return n, nil + } + + b.data = b.data[n:] + return n, b +} + +// String returns a string representation of the buffer. May be used for +// debugging purposes. +func (b *buffer) String() string { + return fmt.Sprintf("mem.Buffer(%p, data: %p, length: %d)", b, b.ReadOnlyData(), len(b.ReadOnlyData())) +} + +func ReadUnsafe(dst []byte, buf Buffer) (int, Buffer) { + return buf.read(dst) +} + +// SplitUnsafe modifies the receiver to point to the first n bytes while it +// returns a new reference to the remaining bytes. The returned Buffer functions +// just like a normal reference acquired using Ref(). +func SplitUnsafe(buf Buffer, n int) (left, right Buffer) { + return buf.split(n) +} + +type emptyBuffer struct{} + +func (e emptyBuffer) ReadOnlyData() []byte { + return nil +} + +func (e emptyBuffer) Ref() {} +func (e emptyBuffer) Free() {} + +func (e emptyBuffer) Len() int { + return 0 +} + +func (e emptyBuffer) split(int) (left, right Buffer) { + return e, e +} + +func (e emptyBuffer) read([]byte) (int, Buffer) { + return 0, e +} + +type SliceBuffer []byte + +func (s SliceBuffer) ReadOnlyData() []byte { return s } +func (s SliceBuffer) Ref() {} +func (s SliceBuffer) Free() {} +func (s SliceBuffer) Len() int { return len(s) } + +func (s SliceBuffer) split(n int) (left, right Buffer) { + return s[:n], s[n:] +} + +func (s SliceBuffer) read(buf []byte) (int, Buffer) { + n := copy(buf, s) + if n == len(s) { + return n, nil + } + return n, s[n:] +} diff --git a/vendor/google.golang.org/grpc/metadata/metadata.go b/vendor/google.golang.org/grpc/metadata/metadata.go index 1e9485fd6e26..d2e15253bbfb 100644 --- a/vendor/google.golang.org/grpc/metadata/metadata.go +++ b/vendor/google.golang.org/grpc/metadata/metadata.go @@ -213,11 +213,6 @@ func FromIncomingContext(ctx context.Context) (MD, bool) { // ValueFromIncomingContext returns the metadata value corresponding to the metadata // key from the incoming metadata if it exists. Keys are matched in a case insensitive // manner. -// -// # Experimental -// -// Notice: This API is EXPERIMENTAL and may be changed or removed in a -// later release. func ValueFromIncomingContext(ctx context.Context, key string) []string { md, ok := ctx.Value(mdIncomingKey{}).(MD) if !ok { @@ -228,7 +223,7 @@ func ValueFromIncomingContext(ctx context.Context, key string) []string { return copyOf(v) } for k, v := range md { - // Case insenitive comparison: MD is a map, and there's no guarantee + // Case insensitive comparison: MD is a map, and there's no guarantee // that the MD attached to the context is created using our helper // functions. if strings.EqualFold(k, key) { diff --git a/vendor/google.golang.org/grpc/peer/peer.go b/vendor/google.golang.org/grpc/peer/peer.go index a821ff9b2b75..499a49c8c1ce 100644 --- a/vendor/google.golang.org/grpc/peer/peer.go +++ b/vendor/google.golang.org/grpc/peer/peer.go @@ -22,7 +22,9 @@ package peer import ( "context" + "fmt" "net" + "strings" "google.golang.org/grpc/credentials" ) @@ -39,6 +41,34 @@ type Peer struct { AuthInfo credentials.AuthInfo } +// String ensures the Peer types implements the Stringer interface in order to +// allow to print a context with a peerKey value effectively. +func (p *Peer) String() string { + if p == nil { + return "Peer" + } + sb := &strings.Builder{} + sb.WriteString("Peer{") + if p.Addr != nil { + fmt.Fprintf(sb, "Addr: '%s', ", p.Addr.String()) + } else { + fmt.Fprintf(sb, "Addr: , ") + } + if p.LocalAddr != nil { + fmt.Fprintf(sb, "LocalAddr: '%s', ", p.LocalAddr.String()) + } else { + fmt.Fprintf(sb, "LocalAddr: , ") + } + if p.AuthInfo != nil { + fmt.Fprintf(sb, "AuthInfo: '%s'", p.AuthInfo.AuthType()) + } else { + fmt.Fprintf(sb, "AuthInfo: ") + } + sb.WriteString("}") + + return sb.String() +} + type peerKey struct{} // NewContext creates a new context with peer information attached. diff --git a/vendor/google.golang.org/grpc/picker_wrapper.go b/vendor/google.golang.org/grpc/picker_wrapper.go index bf56faa76d3d..bdaa2130e48a 100644 --- a/vendor/google.golang.org/grpc/picker_wrapper.go +++ b/vendor/google.golang.org/grpc/picker_wrapper.go @@ -20,8 +20,9 @@ package grpc import ( "context" + "fmt" "io" - "sync" + "sync/atomic" "google.golang.org/grpc/balancer" "google.golang.org/grpc/codes" @@ -32,35 +33,43 @@ import ( "google.golang.org/grpc/status" ) +// pickerGeneration stores a picker and a channel used to signal that a picker +// newer than this one is available. +type pickerGeneration struct { + // picker is the picker produced by the LB policy. May be nil if a picker + // has never been produced. + picker balancer.Picker + // blockingCh is closed when the picker has been invalidated because there + // is a new one available. + blockingCh chan struct{} +} + // pickerWrapper is a wrapper of balancer.Picker. It blocks on certain pick // actions and unblock when there's a picker update. type pickerWrapper struct { - mu sync.Mutex - done bool - blockingCh chan struct{} - picker balancer.Picker + // If pickerGen holds a nil pointer, the pickerWrapper is closed. + pickerGen atomic.Pointer[pickerGeneration] statsHandlers []stats.Handler // to record blocking picker calls } func newPickerWrapper(statsHandlers []stats.Handler) *pickerWrapper { - return &pickerWrapper{ - blockingCh: make(chan struct{}), + pw := &pickerWrapper{ statsHandlers: statsHandlers, } + pw.pickerGen.Store(&pickerGeneration{ + blockingCh: make(chan struct{}), + }) + return pw } -// updatePicker is called by UpdateBalancerState. It unblocks all blocked pick. +// updatePicker is called by UpdateState calls from the LB policy. It +// unblocks all blocked pick. func (pw *pickerWrapper) updatePicker(p balancer.Picker) { - pw.mu.Lock() - if pw.done { - pw.mu.Unlock() - return - } - pw.picker = p - // pw.blockingCh should never be nil. - close(pw.blockingCh) - pw.blockingCh = make(chan struct{}) - pw.mu.Unlock() + old := pw.pickerGen.Swap(&pickerGeneration{ + picker: p, + blockingCh: make(chan struct{}), + }) + close(old.blockingCh) } // doneChannelzWrapper performs the following: @@ -97,27 +106,24 @@ func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer. var lastPickErr error for { - pw.mu.Lock() - if pw.done { - pw.mu.Unlock() + pg := pw.pickerGen.Load() + if pg == nil { return nil, balancer.PickResult{}, ErrClientConnClosing } - - if pw.picker == nil { - ch = pw.blockingCh + if pg.picker == nil { + ch = pg.blockingCh } - if ch == pw.blockingCh { + if ch == pg.blockingCh { // This could happen when either: // - pw.picker is nil (the previous if condition), or - // - has called pick on the current picker. - pw.mu.Unlock() + // - we have already called pick on the current picker. select { case <-ctx.Done(): var errStr string if lastPickErr != nil { errStr = "latest balancer error: " + lastPickErr.Error() } else { - errStr = ctx.Err().Error() + errStr = fmt.Sprintf("received context error while waiting for new LB policy update: %s", ctx.Err().Error()) } switch ctx.Err() { case context.DeadlineExceeded: @@ -144,9 +150,8 @@ func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer. } } - ch = pw.blockingCh - p := pw.picker - pw.mu.Unlock() + ch = pg.blockingCh + p := pg.picker pickResult, err := p.Pick(info) if err != nil { @@ -196,24 +201,15 @@ func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer. } func (pw *pickerWrapper) close() { - pw.mu.Lock() - defer pw.mu.Unlock() - if pw.done { - return - } - pw.done = true - close(pw.blockingCh) + old := pw.pickerGen.Swap(nil) + close(old.blockingCh) } // reset clears the pickerWrapper and prepares it for being used again when idle // mode is exited. func (pw *pickerWrapper) reset() { - pw.mu.Lock() - defer pw.mu.Unlock() - if pw.done { - return - } - pw.blockingCh = make(chan struct{}) + old := pw.pickerGen.Swap(&pickerGeneration{blockingCh: make(chan struct{})}) + close(old.blockingCh) } // dropError is a wrapper error that indicates the LB policy wishes to drop the diff --git a/vendor/google.golang.org/grpc/pickfirst.go b/vendor/google.golang.org/grpc/pickfirst.go deleted file mode 100644 index e3ea42ba962b..000000000000 --- a/vendor/google.golang.org/grpc/pickfirst.go +++ /dev/null @@ -1,241 +0,0 @@ -/* - * - * Copyright 2017 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package grpc - -import ( - "encoding/json" - "errors" - "fmt" - - "google.golang.org/grpc/balancer" - "google.golang.org/grpc/connectivity" - internalgrpclog "google.golang.org/grpc/internal/grpclog" - "google.golang.org/grpc/internal/grpcrand" - "google.golang.org/grpc/internal/pretty" - "google.golang.org/grpc/resolver" - "google.golang.org/grpc/serviceconfig" -) - -const ( - // PickFirstBalancerName is the name of the pick_first balancer. - PickFirstBalancerName = "pick_first" - logPrefix = "[pick-first-lb %p] " -) - -type pickfirstBuilder struct{} - -func (pickfirstBuilder) Build(cc balancer.ClientConn, opt balancer.BuildOptions) balancer.Balancer { - b := &pickfirstBalancer{cc: cc} - b.logger = internalgrpclog.NewPrefixLogger(logger, fmt.Sprintf(logPrefix, b)) - return b -} - -func (pickfirstBuilder) Name() string { - return PickFirstBalancerName -} - -type pfConfig struct { - serviceconfig.LoadBalancingConfig `json:"-"` - - // If set to true, instructs the LB policy to shuffle the order of the list - // of addresses received from the name resolver before attempting to - // connect to them. - ShuffleAddressList bool `json:"shuffleAddressList"` -} - -func (pickfirstBuilder) ParseConfig(js json.RawMessage) (serviceconfig.LoadBalancingConfig, error) { - var cfg pfConfig - if err := json.Unmarshal(js, &cfg); err != nil { - return nil, fmt.Errorf("pickfirst: unable to unmarshal LB policy config: %s, error: %v", string(js), err) - } - return cfg, nil -} - -type pickfirstBalancer struct { - logger *internalgrpclog.PrefixLogger - state connectivity.State - cc balancer.ClientConn - subConn balancer.SubConn -} - -func (b *pickfirstBalancer) ResolverError(err error) { - if b.logger.V(2) { - b.logger.Infof("Received error from the name resolver: %v", err) - } - if b.subConn == nil { - b.state = connectivity.TransientFailure - } - - if b.state != connectivity.TransientFailure { - // The picker will not change since the balancer does not currently - // report an error. - return - } - b.cc.UpdateState(balancer.State{ - ConnectivityState: connectivity.TransientFailure, - Picker: &picker{err: fmt.Errorf("name resolver error: %v", err)}, - }) -} - -func (b *pickfirstBalancer) UpdateClientConnState(state balancer.ClientConnState) error { - addrs := state.ResolverState.Addresses - if len(addrs) == 0 { - // The resolver reported an empty address list. Treat it like an error by - // calling b.ResolverError. - if b.subConn != nil { - // Shut down the old subConn. All addresses were removed, so it is - // no longer valid. - b.subConn.Shutdown() - b.subConn = nil - } - b.ResolverError(errors.New("produced zero addresses")) - return balancer.ErrBadResolverState - } - - // We don't have to guard this block with the env var because ParseConfig - // already does so. - cfg, ok := state.BalancerConfig.(pfConfig) - if state.BalancerConfig != nil && !ok { - return fmt.Errorf("pickfirst: received illegal BalancerConfig (type %T): %v", state.BalancerConfig, state.BalancerConfig) - } - if cfg.ShuffleAddressList { - addrs = append([]resolver.Address{}, addrs...) - grpcrand.Shuffle(len(addrs), func(i, j int) { addrs[i], addrs[j] = addrs[j], addrs[i] }) - } - - if b.logger.V(2) { - b.logger.Infof("Received new config %s, resolver state %s", pretty.ToJSON(cfg), pretty.ToJSON(state.ResolverState)) - } - - if b.subConn != nil { - b.cc.UpdateAddresses(b.subConn, addrs) - return nil - } - - var subConn balancer.SubConn - subConn, err := b.cc.NewSubConn(addrs, balancer.NewSubConnOptions{ - StateListener: func(state balancer.SubConnState) { - b.updateSubConnState(subConn, state) - }, - }) - if err != nil { - if b.logger.V(2) { - b.logger.Infof("Failed to create new SubConn: %v", err) - } - b.state = connectivity.TransientFailure - b.cc.UpdateState(balancer.State{ - ConnectivityState: connectivity.TransientFailure, - Picker: &picker{err: fmt.Errorf("error creating connection: %v", err)}, - }) - return balancer.ErrBadResolverState - } - b.subConn = subConn - b.state = connectivity.Idle - b.cc.UpdateState(balancer.State{ - ConnectivityState: connectivity.Connecting, - Picker: &picker{err: balancer.ErrNoSubConnAvailable}, - }) - b.subConn.Connect() - return nil -} - -// UpdateSubConnState is unused as a StateListener is always registered when -// creating SubConns. -func (b *pickfirstBalancer) UpdateSubConnState(subConn balancer.SubConn, state balancer.SubConnState) { - b.logger.Errorf("UpdateSubConnState(%v, %+v) called unexpectedly", subConn, state) -} - -func (b *pickfirstBalancer) updateSubConnState(subConn balancer.SubConn, state balancer.SubConnState) { - if b.logger.V(2) { - b.logger.Infof("Received SubConn state update: %p, %+v", subConn, state) - } - if b.subConn != subConn { - if b.logger.V(2) { - b.logger.Infof("Ignored state change because subConn is not recognized") - } - return - } - if state.ConnectivityState == connectivity.Shutdown { - b.subConn = nil - return - } - - switch state.ConnectivityState { - case connectivity.Ready: - b.cc.UpdateState(balancer.State{ - ConnectivityState: state.ConnectivityState, - Picker: &picker{result: balancer.PickResult{SubConn: subConn}}, - }) - case connectivity.Connecting: - if b.state == connectivity.TransientFailure { - // We stay in TransientFailure until we are Ready. See A62. - return - } - b.cc.UpdateState(balancer.State{ - ConnectivityState: state.ConnectivityState, - Picker: &picker{err: balancer.ErrNoSubConnAvailable}, - }) - case connectivity.Idle: - if b.state == connectivity.TransientFailure { - // We stay in TransientFailure until we are Ready. Also kick the - // subConn out of Idle into Connecting. See A62. - b.subConn.Connect() - return - } - b.cc.UpdateState(balancer.State{ - ConnectivityState: state.ConnectivityState, - Picker: &idlePicker{subConn: subConn}, - }) - case connectivity.TransientFailure: - b.cc.UpdateState(balancer.State{ - ConnectivityState: state.ConnectivityState, - Picker: &picker{err: state.ConnectionError}, - }) - } - b.state = state.ConnectivityState -} - -func (b *pickfirstBalancer) Close() { -} - -func (b *pickfirstBalancer) ExitIdle() { - if b.subConn != nil && b.state == connectivity.Idle { - b.subConn.Connect() - } -} - -type picker struct { - result balancer.PickResult - err error -} - -func (p *picker) Pick(balancer.PickInfo) (balancer.PickResult, error) { - return p.result, p.err -} - -// idlePicker is used when the SubConn is IDLE and kicks the SubConn into -// CONNECTING when Pick is called. -type idlePicker struct { - subConn balancer.SubConn -} - -func (i *idlePicker) Pick(balancer.PickInfo) (balancer.PickResult, error) { - i.subConn.Connect() - return balancer.PickResult{}, balancer.ErrNoSubConnAvailable -} diff --git a/vendor/google.golang.org/grpc/preloader.go b/vendor/google.golang.org/grpc/preloader.go index 73bd63364335..e87a17f36a50 100644 --- a/vendor/google.golang.org/grpc/preloader.go +++ b/vendor/google.golang.org/grpc/preloader.go @@ -20,6 +20,7 @@ package grpc import ( "google.golang.org/grpc/codes" + "google.golang.org/grpc/mem" "google.golang.org/grpc/status" ) @@ -31,9 +32,10 @@ import ( // later release. type PreparedMsg struct { // Struct for preparing msg before sending them - encodedData []byte + encodedData mem.BufferSlice hdr []byte - payload []byte + payload mem.BufferSlice + pf payloadFormat } // Encode marshalls and compresses the message using the codec and compressor for the stream. @@ -57,11 +59,27 @@ func (p *PreparedMsg) Encode(s Stream, msg any) error { if err != nil { return err } - p.encodedData = data - compData, err := compress(data, rpcInfo.preloaderInfo.cp, rpcInfo.preloaderInfo.comp) + + materializedData := data.Materialize() + data.Free() + p.encodedData = mem.BufferSlice{mem.NewBuffer(&materializedData, nil)} + + // TODO: it should be possible to grab the bufferPool from the underlying + // stream implementation with a type cast to its actual type (such as + // addrConnStream) and accessing the buffer pool directly. + var compData mem.BufferSlice + compData, p.pf, err = compress(p.encodedData, rpcInfo.preloaderInfo.cp, rpcInfo.preloaderInfo.comp, mem.DefaultBufferPool()) if err != nil { return err } - p.hdr, p.payload = msgHeader(data, compData) + + if p.pf.isCompressed() { + materializedCompData := compData.Materialize() + compData.Free() + compData = mem.BufferSlice{mem.NewBuffer(&materializedCompData, nil)} + } + + p.hdr, p.payload = msgHeader(p.encodedData, compData, p.pf) + return nil } diff --git a/vendor/google.golang.org/grpc/reflection/adapt.go b/vendor/google.golang.org/grpc/reflection/adapt.go index 33b907a36da4..6997e4740319 100644 --- a/vendor/google.golang.org/grpc/reflection/adapt.go +++ b/vendor/google.golang.org/grpc/reflection/adapt.go @@ -19,10 +19,11 @@ package reflection import ( + "google.golang.org/grpc/reflection/internal" + v1reflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1" v1reflectionpb "google.golang.org/grpc/reflection/grpc_reflection_v1" v1alphareflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" - v1alphareflectionpb "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" ) // asV1Alpha returns an implementation of the v1alpha version of the reflection @@ -44,7 +45,7 @@ type v1AlphaServerStreamAdapter struct { } func (s v1AlphaServerStreamAdapter) Send(response *v1reflectionpb.ServerReflectionResponse) error { - return s.ServerReflection_ServerReflectionInfoServer.Send(v1ToV1AlphaResponse(response)) + return s.ServerReflection_ServerReflectionInfoServer.Send(internal.V1ToV1AlphaResponse(response)) } func (s v1AlphaServerStreamAdapter) Recv() (*v1reflectionpb.ServerReflectionRequest, error) { @@ -52,136 +53,5 @@ func (s v1AlphaServerStreamAdapter) Recv() (*v1reflectionpb.ServerReflectionRequ if err != nil { return nil, err } - return v1AlphaToV1Request(resp), nil -} - -func v1ToV1AlphaResponse(v1 *v1reflectionpb.ServerReflectionResponse) *v1alphareflectionpb.ServerReflectionResponse { - var v1alpha v1alphareflectionpb.ServerReflectionResponse - v1alpha.ValidHost = v1.ValidHost - if v1.OriginalRequest != nil { - v1alpha.OriginalRequest = v1ToV1AlphaRequest(v1.OriginalRequest) - } - switch mr := v1.MessageResponse.(type) { - case *v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse: - if mr != nil { - v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1alphareflectionpb.FileDescriptorResponse{ - FileDescriptorProto: mr.FileDescriptorResponse.GetFileDescriptorProto(), - }, - } - } - case *v1reflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse: - if mr != nil { - v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse{ - AllExtensionNumbersResponse: &v1alphareflectionpb.ExtensionNumberResponse{ - BaseTypeName: mr.AllExtensionNumbersResponse.GetBaseTypeName(), - ExtensionNumber: mr.AllExtensionNumbersResponse.GetExtensionNumber(), - }, - } - } - case *v1reflectionpb.ServerReflectionResponse_ListServicesResponse: - if mr != nil { - svcs := make([]*v1alphareflectionpb.ServiceResponse, len(mr.ListServicesResponse.GetService())) - for i, svc := range mr.ListServicesResponse.GetService() { - svcs[i] = &v1alphareflectionpb.ServiceResponse{ - Name: svc.GetName(), - } - } - v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_ListServicesResponse{ - ListServicesResponse: &v1alphareflectionpb.ListServiceResponse{ - Service: svcs, - }, - } - } - case *v1reflectionpb.ServerReflectionResponse_ErrorResponse: - if mr != nil { - v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1alphareflectionpb.ErrorResponse{ - ErrorCode: mr.ErrorResponse.GetErrorCode(), - ErrorMessage: mr.ErrorResponse.GetErrorMessage(), - }, - } - } - default: - // no value set - } - return &v1alpha -} - -func v1AlphaToV1Request(v1alpha *v1alphareflectionpb.ServerReflectionRequest) *v1reflectionpb.ServerReflectionRequest { - var v1 v1reflectionpb.ServerReflectionRequest - v1.Host = v1alpha.Host - switch mr := v1alpha.MessageRequest.(type) { - case *v1alphareflectionpb.ServerReflectionRequest_FileByFilename: - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileByFilename{ - FileByFilename: mr.FileByFilename, - } - case *v1alphareflectionpb.ServerReflectionRequest_FileContainingSymbol: - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileContainingSymbol{ - FileContainingSymbol: mr.FileContainingSymbol, - } - case *v1alphareflectionpb.ServerReflectionRequest_FileContainingExtension: - if mr.FileContainingExtension != nil { - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileContainingExtension{ - FileContainingExtension: &v1reflectionpb.ExtensionRequest{ - ContainingType: mr.FileContainingExtension.GetContainingType(), - ExtensionNumber: mr.FileContainingExtension.GetExtensionNumber(), - }, - } - } - case *v1alphareflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType{ - AllExtensionNumbersOfType: mr.AllExtensionNumbersOfType, - } - case *v1alphareflectionpb.ServerReflectionRequest_ListServices: - v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_ListServices{ - ListServices: mr.ListServices, - } - default: - // no value set - } - return &v1 -} - -func v1ToV1AlphaRequest(v1 *v1reflectionpb.ServerReflectionRequest) *v1alphareflectionpb.ServerReflectionRequest { - var v1alpha v1alphareflectionpb.ServerReflectionRequest - v1alpha.Host = v1.Host - switch mr := v1.MessageRequest.(type) { - case *v1reflectionpb.ServerReflectionRequest_FileByFilename: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileByFilename{ - FileByFilename: mr.FileByFilename, - } - } - case *v1reflectionpb.ServerReflectionRequest_FileContainingSymbol: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileContainingSymbol{ - FileContainingSymbol: mr.FileContainingSymbol, - } - } - case *v1reflectionpb.ServerReflectionRequest_FileContainingExtension: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileContainingExtension{ - FileContainingExtension: &v1alphareflectionpb.ExtensionRequest{ - ContainingType: mr.FileContainingExtension.GetContainingType(), - ExtensionNumber: mr.FileContainingExtension.GetExtensionNumber(), - }, - } - } - case *v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType{ - AllExtensionNumbersOfType: mr.AllExtensionNumbersOfType, - } - } - case *v1reflectionpb.ServerReflectionRequest_ListServices: - if mr != nil { - v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_ListServices{ - ListServices: mr.ListServices, - } - } - default: - // no value set - } - return &v1alpha + return internal.V1AlphaToV1Request(resp), nil } diff --git a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection.pb.go b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection.pb.go index 8953c9d8d68e..e1f58104d856 100644 --- a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection.pb.go +++ b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection.pb.go @@ -21,8 +21,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.25.2 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // source: grpc/reflection/v1/reflection.proto package grpc_reflection_v1 @@ -789,7 +789,7 @@ func file_grpc_reflection_v1_reflection_proto_rawDescGZIP() []byte { } var file_grpc_reflection_v1_reflection_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_grpc_reflection_v1_reflection_proto_goTypes = []interface{}{ +var file_grpc_reflection_v1_reflection_proto_goTypes = []any{ (*ServerReflectionRequest)(nil), // 0: grpc.reflection.v1.ServerReflectionRequest (*ExtensionRequest)(nil), // 1: grpc.reflection.v1.ExtensionRequest (*ServerReflectionResponse)(nil), // 2: grpc.reflection.v1.ServerReflectionResponse @@ -822,7 +822,7 @@ func file_grpc_reflection_v1_reflection_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_grpc_reflection_v1_reflection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1_reflection_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ServerReflectionRequest); i { case 0: return &v.state @@ -834,7 +834,7 @@ func file_grpc_reflection_v1_reflection_proto_init() { return nil } } - file_grpc_reflection_v1_reflection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1_reflection_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ExtensionRequest); i { case 0: return &v.state @@ -846,7 +846,7 @@ func file_grpc_reflection_v1_reflection_proto_init() { return nil } } - file_grpc_reflection_v1_reflection_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1_reflection_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ServerReflectionResponse); i { case 0: return &v.state @@ -858,7 +858,7 @@ func file_grpc_reflection_v1_reflection_proto_init() { return nil } } - file_grpc_reflection_v1_reflection_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1_reflection_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*FileDescriptorResponse); i { case 0: return &v.state @@ -870,7 +870,7 @@ func file_grpc_reflection_v1_reflection_proto_init() { return nil } } - file_grpc_reflection_v1_reflection_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1_reflection_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ExtensionNumberResponse); i { case 0: return &v.state @@ -882,7 +882,7 @@ func file_grpc_reflection_v1_reflection_proto_init() { return nil } } - file_grpc_reflection_v1_reflection_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1_reflection_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ListServiceResponse); i { case 0: return &v.state @@ -894,7 +894,7 @@ func file_grpc_reflection_v1_reflection_proto_init() { return nil } } - file_grpc_reflection_v1_reflection_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1_reflection_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ServiceResponse); i { case 0: return &v.state @@ -906,7 +906,7 @@ func file_grpc_reflection_v1_reflection_proto_init() { return nil } } - file_grpc_reflection_v1_reflection_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1_reflection_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ErrorResponse); i { case 0: return &v.state @@ -919,14 +919,14 @@ func file_grpc_reflection_v1_reflection_proto_init() { } } } - file_grpc_reflection_v1_reflection_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_grpc_reflection_v1_reflection_proto_msgTypes[0].OneofWrappers = []any{ (*ServerReflectionRequest_FileByFilename)(nil), (*ServerReflectionRequest_FileContainingSymbol)(nil), (*ServerReflectionRequest_FileContainingExtension)(nil), (*ServerReflectionRequest_AllExtensionNumbersOfType)(nil), (*ServerReflectionRequest_ListServices)(nil), } - file_grpc_reflection_v1_reflection_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_grpc_reflection_v1_reflection_proto_msgTypes[2].OneofWrappers = []any{ (*ServerReflectionResponse_FileDescriptorResponse)(nil), (*ServerReflectionResponse_AllExtensionNumbersResponse)(nil), (*ServerReflectionResponse_ListServicesResponse)(nil), diff --git a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection_grpc.pb.go b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection_grpc.pb.go index d6cdd5b54c67..031082807674 100644 --- a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection_grpc.pb.go +++ b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1/reflection_grpc.pb.go @@ -21,8 +21,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.2 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.27.1 // source: grpc/reflection/v1/reflection.proto package grpc_reflection_v1 @@ -36,8 +36,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ServerReflection_ServerReflectionInfo_FullMethodName = "/grpc.reflection.v1.ServerReflection/ServerReflectionInfo" @@ -49,7 +49,7 @@ const ( type ServerReflectionClient interface { // The reflection service is structured as a bidirectional stream, ensuring // all related requests go to a single server. - ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) + ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ServerReflectionRequest, ServerReflectionResponse], error) } type serverReflectionClient struct { @@ -60,53 +60,39 @@ func NewServerReflectionClient(cc grpc.ClientConnInterface) ServerReflectionClie return &serverReflectionClient{cc} } -func (c *serverReflectionClient) ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) { - stream, err := c.cc.NewStream(ctx, &ServerReflection_ServiceDesc.Streams[0], ServerReflection_ServerReflectionInfo_FullMethodName, opts...) +func (c *serverReflectionClient) ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ServerReflectionRequest, ServerReflectionResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ServerReflection_ServiceDesc.Streams[0], ServerReflection_ServerReflectionInfo_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &serverReflectionServerReflectionInfoClient{stream} + x := &grpc.GenericClientStream[ServerReflectionRequest, ServerReflectionResponse]{ClientStream: stream} return x, nil } -type ServerReflection_ServerReflectionInfoClient interface { - Send(*ServerReflectionRequest) error - Recv() (*ServerReflectionResponse, error) - grpc.ClientStream -} - -type serverReflectionServerReflectionInfoClient struct { - grpc.ClientStream -} - -func (x *serverReflectionServerReflectionInfoClient) Send(m *ServerReflectionRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *serverReflectionServerReflectionInfoClient) Recv() (*ServerReflectionResponse, error) { - m := new(ServerReflectionResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ServerReflection_ServerReflectionInfoClient = grpc.BidiStreamingClient[ServerReflectionRequest, ServerReflectionResponse] // ServerReflectionServer is the server API for ServerReflection service. // All implementations should embed UnimplementedServerReflectionServer -// for forward compatibility +// for forward compatibility. type ServerReflectionServer interface { // The reflection service is structured as a bidirectional stream, ensuring // all related requests go to a single server. - ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error + ServerReflectionInfo(grpc.BidiStreamingServer[ServerReflectionRequest, ServerReflectionResponse]) error } -// UnimplementedServerReflectionServer should be embedded to have forward compatible implementations. -type UnimplementedServerReflectionServer struct { -} +// UnimplementedServerReflectionServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedServerReflectionServer struct{} -func (UnimplementedServerReflectionServer) ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error { +func (UnimplementedServerReflectionServer) ServerReflectionInfo(grpc.BidiStreamingServer[ServerReflectionRequest, ServerReflectionResponse]) error { return status.Errorf(codes.Unimplemented, "method ServerReflectionInfo not implemented") } +func (UnimplementedServerReflectionServer) testEmbeddedByValue() {} // UnsafeServerReflectionServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ServerReflectionServer will @@ -116,34 +102,22 @@ type UnsafeServerReflectionServer interface { } func RegisterServerReflectionServer(s grpc.ServiceRegistrar, srv ServerReflectionServer) { + // If the following call panics, it indicates UnimplementedServerReflectionServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ServerReflection_ServiceDesc, srv) } func _ServerReflection_ServerReflectionInfo_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ServerReflectionServer).ServerReflectionInfo(&serverReflectionServerReflectionInfoServer{stream}) -} - -type ServerReflection_ServerReflectionInfoServer interface { - Send(*ServerReflectionResponse) error - Recv() (*ServerReflectionRequest, error) - grpc.ServerStream -} - -type serverReflectionServerReflectionInfoServer struct { - grpc.ServerStream + return srv.(ServerReflectionServer).ServerReflectionInfo(&grpc.GenericServerStream[ServerReflectionRequest, ServerReflectionResponse]{ServerStream: stream}) } -func (x *serverReflectionServerReflectionInfoServer) Send(m *ServerReflectionResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *serverReflectionServerReflectionInfoServer) Recv() (*ServerReflectionRequest, error) { - m := new(ServerReflectionRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ServerReflection_ServerReflectionInfoServer = grpc.BidiStreamingServer[ServerReflectionRequest, ServerReflectionResponse] // ServerReflection_ServiceDesc is the grpc.ServiceDesc for ServerReflection service. // It's only intended for direct use with grpc.RegisterService, diff --git a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection.pb.go b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection.pb.go index 929733e7bda0..0582e16af2b0 100644 --- a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection.pb.go +++ b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection.pb.go @@ -18,8 +18,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.32.0 -// protoc v4.25.2 +// protoc-gen-go v1.34.2 +// protoc v5.27.1 // grpc/reflection/v1alpha/reflection.proto is a deprecated file. package grpc_reflection_v1alpha @@ -403,7 +403,7 @@ type ServerReflectionResponse_FileDescriptorResponse struct { } type ServerReflectionResponse_AllExtensionNumbersResponse struct { - // This message is used to answer all_extension_numbers_of_type requst. + // This message is used to answer all_extension_numbers_of_type request. // // Deprecated: The entire proto file grpc/reflection/v1alpha/reflection.proto is marked as deprecated. AllExtensionNumbersResponse *ExtensionNumberResponse `protobuf:"bytes,5,opt,name=all_extension_numbers_response,json=allExtensionNumbersResponse,proto3,oneof"` @@ -864,7 +864,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_rawDescGZIP() []byte { } var file_grpc_reflection_v1alpha_reflection_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_grpc_reflection_v1alpha_reflection_proto_goTypes = []interface{}{ +var file_grpc_reflection_v1alpha_reflection_proto_goTypes = []any{ (*ServerReflectionRequest)(nil), // 0: grpc.reflection.v1alpha.ServerReflectionRequest (*ExtensionRequest)(nil), // 1: grpc.reflection.v1alpha.ExtensionRequest (*ServerReflectionResponse)(nil), // 2: grpc.reflection.v1alpha.ServerReflectionResponse @@ -897,7 +897,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ServerReflectionRequest); i { case 0: return &v.state @@ -909,7 +909,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { return nil } } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ExtensionRequest); i { case 0: return &v.state @@ -921,7 +921,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { return nil } } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ServerReflectionResponse); i { case 0: return &v.state @@ -933,7 +933,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { return nil } } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*FileDescriptorResponse); i { case 0: return &v.state @@ -945,7 +945,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { return nil } } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ExtensionNumberResponse); i { case 0: return &v.state @@ -957,7 +957,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { return nil } } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ListServiceResponse); i { case 0: return &v.state @@ -969,7 +969,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { return nil } } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ServiceResponse); i { case 0: return &v.state @@ -981,7 +981,7 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { return nil } } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ErrorResponse); i { case 0: return &v.state @@ -994,14 +994,14 @@ func file_grpc_reflection_v1alpha_reflection_proto_init() { } } } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[0].OneofWrappers = []any{ (*ServerReflectionRequest_FileByFilename)(nil), (*ServerReflectionRequest_FileContainingSymbol)(nil), (*ServerReflectionRequest_FileContainingExtension)(nil), (*ServerReflectionRequest_AllExtensionNumbersOfType)(nil), (*ServerReflectionRequest_ListServices)(nil), } - file_grpc_reflection_v1alpha_reflection_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_grpc_reflection_v1alpha_reflection_proto_msgTypes[2].OneofWrappers = []any{ (*ServerReflectionResponse_FileDescriptorResponse)(nil), (*ServerReflectionResponse_AllExtensionNumbersResponse)(nil), (*ServerReflectionResponse_ListServicesResponse)(nil), diff --git a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go index ef6914063557..80755d74d745 100644 --- a/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go +++ b/vendor/google.golang.org/grpc/reflection/grpc_reflection_v1alpha/reflection_grpc.pb.go @@ -18,8 +18,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v4.25.2 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.27.1 // grpc/reflection/v1alpha/reflection.proto is a deprecated file. package grpc_reflection_v1alpha @@ -33,8 +33,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ServerReflection_ServerReflectionInfo_FullMethodName = "/grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo" @@ -46,7 +46,7 @@ const ( type ServerReflectionClient interface { // The reflection service is structured as a bidirectional stream, ensuring // all related requests go to a single server. - ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) + ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ServerReflectionRequest, ServerReflectionResponse], error) } type serverReflectionClient struct { @@ -57,53 +57,39 @@ func NewServerReflectionClient(cc grpc.ClientConnInterface) ServerReflectionClie return &serverReflectionClient{cc} } -func (c *serverReflectionClient) ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error) { - stream, err := c.cc.NewStream(ctx, &ServerReflection_ServiceDesc.Streams[0], ServerReflection_ServerReflectionInfo_FullMethodName, opts...) +func (c *serverReflectionClient) ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ServerReflectionRequest, ServerReflectionResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ServerReflection_ServiceDesc.Streams[0], ServerReflection_ServerReflectionInfo_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &serverReflectionServerReflectionInfoClient{stream} + x := &grpc.GenericClientStream[ServerReflectionRequest, ServerReflectionResponse]{ClientStream: stream} return x, nil } -type ServerReflection_ServerReflectionInfoClient interface { - Send(*ServerReflectionRequest) error - Recv() (*ServerReflectionResponse, error) - grpc.ClientStream -} - -type serverReflectionServerReflectionInfoClient struct { - grpc.ClientStream -} - -func (x *serverReflectionServerReflectionInfoClient) Send(m *ServerReflectionRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *serverReflectionServerReflectionInfoClient) Recv() (*ServerReflectionResponse, error) { - m := new(ServerReflectionResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ServerReflection_ServerReflectionInfoClient = grpc.BidiStreamingClient[ServerReflectionRequest, ServerReflectionResponse] // ServerReflectionServer is the server API for ServerReflection service. // All implementations should embed UnimplementedServerReflectionServer -// for forward compatibility +// for forward compatibility. type ServerReflectionServer interface { // The reflection service is structured as a bidirectional stream, ensuring // all related requests go to a single server. - ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error + ServerReflectionInfo(grpc.BidiStreamingServer[ServerReflectionRequest, ServerReflectionResponse]) error } -// UnimplementedServerReflectionServer should be embedded to have forward compatible implementations. -type UnimplementedServerReflectionServer struct { -} +// UnimplementedServerReflectionServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedServerReflectionServer struct{} -func (UnimplementedServerReflectionServer) ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error { +func (UnimplementedServerReflectionServer) ServerReflectionInfo(grpc.BidiStreamingServer[ServerReflectionRequest, ServerReflectionResponse]) error { return status.Errorf(codes.Unimplemented, "method ServerReflectionInfo not implemented") } +func (UnimplementedServerReflectionServer) testEmbeddedByValue() {} // UnsafeServerReflectionServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ServerReflectionServer will @@ -113,34 +99,22 @@ type UnsafeServerReflectionServer interface { } func RegisterServerReflectionServer(s grpc.ServiceRegistrar, srv ServerReflectionServer) { + // If the following call panics, it indicates UnimplementedServerReflectionServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ServerReflection_ServiceDesc, srv) } func _ServerReflection_ServerReflectionInfo_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ServerReflectionServer).ServerReflectionInfo(&serverReflectionServerReflectionInfoServer{stream}) -} - -type ServerReflection_ServerReflectionInfoServer interface { - Send(*ServerReflectionResponse) error - Recv() (*ServerReflectionRequest, error) - grpc.ServerStream -} - -type serverReflectionServerReflectionInfoServer struct { - grpc.ServerStream + return srv.(ServerReflectionServer).ServerReflectionInfo(&grpc.GenericServerStream[ServerReflectionRequest, ServerReflectionResponse]{ServerStream: stream}) } -func (x *serverReflectionServerReflectionInfoServer) Send(m *ServerReflectionResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *serverReflectionServerReflectionInfoServer) Recv() (*ServerReflectionRequest, error) { - m := new(ServerReflectionRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ServerReflection_ServerReflectionInfoServer = grpc.BidiStreamingServer[ServerReflectionRequest, ServerReflectionResponse] // ServerReflection_ServiceDesc is the grpc.ServiceDesc for ServerReflection service. // It's only intended for direct use with grpc.RegisterService, diff --git a/vendor/google.golang.org/grpc/reflection/internal/internal.go b/vendor/google.golang.org/grpc/reflection/internal/internal.go new file mode 100644 index 000000000000..902fc6d35c27 --- /dev/null +++ b/vendor/google.golang.org/grpc/reflection/internal/internal.go @@ -0,0 +1,436 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +// Package internal contains code that is shared by both reflection package and +// the test package. The packages are split in this way inorder to avoid +// dependency to deprecated package github.com/golang/protobuf. +package internal + +import ( + "io" + "sort" + + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/reflect/protodesc" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/reflect/protoregistry" + + v1reflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1" + v1reflectionpb "google.golang.org/grpc/reflection/grpc_reflection_v1" + v1alphareflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" + v1alphareflectionpb "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" +) + +// ServiceInfoProvider is an interface used to retrieve metadata about the +// services to expose. +type ServiceInfoProvider interface { + GetServiceInfo() map[string]grpc.ServiceInfo +} + +// ExtensionResolver is the interface used to query details about extensions. +// This interface is satisfied by protoregistry.GlobalTypes. +type ExtensionResolver interface { + protoregistry.ExtensionTypeResolver + RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) +} + +// ServerReflectionServer is the server API for ServerReflection service. +type ServerReflectionServer struct { + v1alphareflectiongrpc.UnimplementedServerReflectionServer + S ServiceInfoProvider + DescResolver protodesc.Resolver + ExtResolver ExtensionResolver +} + +// FileDescWithDependencies returns a slice of serialized fileDescriptors in +// wire format ([]byte). The fileDescriptors will include fd and all the +// transitive dependencies of fd with names not in sentFileDescriptors. +func (s *ServerReflectionServer) FileDescWithDependencies(fd protoreflect.FileDescriptor, sentFileDescriptors map[string]bool) ([][]byte, error) { + if fd.IsPlaceholder() { + // If the given root file is a placeholder, treat it + // as missing instead of serializing it. + return nil, protoregistry.NotFound + } + var r [][]byte + queue := []protoreflect.FileDescriptor{fd} + for len(queue) > 0 { + currentfd := queue[0] + queue = queue[1:] + if currentfd.IsPlaceholder() { + // Skip any missing files in the dependency graph. + continue + } + if sent := sentFileDescriptors[currentfd.Path()]; len(r) == 0 || !sent { + sentFileDescriptors[currentfd.Path()] = true + fdProto := protodesc.ToFileDescriptorProto(currentfd) + currentfdEncoded, err := proto.Marshal(fdProto) + if err != nil { + return nil, err + } + r = append(r, currentfdEncoded) + } + for i := 0; i < currentfd.Imports().Len(); i++ { + queue = append(queue, currentfd.Imports().Get(i)) + } + } + return r, nil +} + +// FileDescEncodingContainingSymbol finds the file descriptor containing the +// given symbol, finds all of its previously unsent transitive dependencies, +// does marshalling on them, and returns the marshalled result. The given symbol +// can be a type, a service or a method. +func (s *ServerReflectionServer) FileDescEncodingContainingSymbol(name string, sentFileDescriptors map[string]bool) ([][]byte, error) { + d, err := s.DescResolver.FindDescriptorByName(protoreflect.FullName(name)) + if err != nil { + return nil, err + } + return s.FileDescWithDependencies(d.ParentFile(), sentFileDescriptors) +} + +// FileDescEncodingContainingExtension finds the file descriptor containing +// given extension, finds all of its previously unsent transitive dependencies, +// does marshalling on them, and returns the marshalled result. +func (s *ServerReflectionServer) FileDescEncodingContainingExtension(typeName string, extNum int32, sentFileDescriptors map[string]bool) ([][]byte, error) { + xt, err := s.ExtResolver.FindExtensionByNumber(protoreflect.FullName(typeName), protoreflect.FieldNumber(extNum)) + if err != nil { + return nil, err + } + return s.FileDescWithDependencies(xt.TypeDescriptor().ParentFile(), sentFileDescriptors) +} + +// AllExtensionNumbersForTypeName returns all extension numbers for the given type. +func (s *ServerReflectionServer) AllExtensionNumbersForTypeName(name string) ([]int32, error) { + var numbers []int32 + s.ExtResolver.RangeExtensionsByMessage(protoreflect.FullName(name), func(xt protoreflect.ExtensionType) bool { + numbers = append(numbers, int32(xt.TypeDescriptor().Number())) + return true + }) + sort.Slice(numbers, func(i, j int) bool { + return numbers[i] < numbers[j] + }) + if len(numbers) == 0 { + // maybe return an error if given type name is not known + if _, err := s.DescResolver.FindDescriptorByName(protoreflect.FullName(name)); err != nil { + return nil, err + } + } + return numbers, nil +} + +// ListServices returns the names of services this server exposes. +func (s *ServerReflectionServer) ListServices() []*v1reflectionpb.ServiceResponse { + serviceInfo := s.S.GetServiceInfo() + resp := make([]*v1reflectionpb.ServiceResponse, 0, len(serviceInfo)) + for svc := range serviceInfo { + resp = append(resp, &v1reflectionpb.ServiceResponse{Name: svc}) + } + sort.Slice(resp, func(i, j int) bool { + return resp[i].Name < resp[j].Name + }) + return resp +} + +// ServerReflectionInfo is the reflection service handler. +func (s *ServerReflectionServer) ServerReflectionInfo(stream v1reflectiongrpc.ServerReflection_ServerReflectionInfoServer) error { + sentFileDescriptors := make(map[string]bool) + for { + in, err := stream.Recv() + if err == io.EOF { + return nil + } + if err != nil { + return err + } + + out := &v1reflectionpb.ServerReflectionResponse{ + ValidHost: in.Host, + OriginalRequest: in, + } + switch req := in.MessageRequest.(type) { + case *v1reflectionpb.ServerReflectionRequest_FileByFilename: + var b [][]byte + fd, err := s.DescResolver.FindFileByPath(req.FileByFilename) + if err == nil { + b, err = s.FileDescWithDependencies(fd, sentFileDescriptors) + } + if err != nil { + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ + ErrorResponse: &v1reflectionpb.ErrorResponse{ + ErrorCode: int32(codes.NotFound), + ErrorMessage: err.Error(), + }, + } + } else { + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ + FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, + } + } + case *v1reflectionpb.ServerReflectionRequest_FileContainingSymbol: + b, err := s.FileDescEncodingContainingSymbol(req.FileContainingSymbol, sentFileDescriptors) + if err != nil { + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ + ErrorResponse: &v1reflectionpb.ErrorResponse{ + ErrorCode: int32(codes.NotFound), + ErrorMessage: err.Error(), + }, + } + } else { + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ + FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, + } + } + case *v1reflectionpb.ServerReflectionRequest_FileContainingExtension: + typeName := req.FileContainingExtension.ContainingType + extNum := req.FileContainingExtension.ExtensionNumber + b, err := s.FileDescEncodingContainingExtension(typeName, extNum, sentFileDescriptors) + if err != nil { + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ + ErrorResponse: &v1reflectionpb.ErrorResponse{ + ErrorCode: int32(codes.NotFound), + ErrorMessage: err.Error(), + }, + } + } else { + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ + FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, + } + } + case *v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: + extNums, err := s.AllExtensionNumbersForTypeName(req.AllExtensionNumbersOfType) + if err != nil { + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ + ErrorResponse: &v1reflectionpb.ErrorResponse{ + ErrorCode: int32(codes.NotFound), + ErrorMessage: err.Error(), + }, + } + } else { + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse{ + AllExtensionNumbersResponse: &v1reflectionpb.ExtensionNumberResponse{ + BaseTypeName: req.AllExtensionNumbersOfType, + ExtensionNumber: extNums, + }, + } + } + case *v1reflectionpb.ServerReflectionRequest_ListServices: + out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ListServicesResponse{ + ListServicesResponse: &v1reflectionpb.ListServiceResponse{ + Service: s.ListServices(), + }, + } + default: + return status.Errorf(codes.InvalidArgument, "invalid MessageRequest: %v", in.MessageRequest) + } + + if err := stream.Send(out); err != nil { + return err + } + } +} + +// V1ToV1AlphaResponse converts a v1 ServerReflectionResponse to a v1alpha. +func V1ToV1AlphaResponse(v1 *v1reflectionpb.ServerReflectionResponse) *v1alphareflectionpb.ServerReflectionResponse { + var v1alpha v1alphareflectionpb.ServerReflectionResponse + v1alpha.ValidHost = v1.ValidHost + if v1.OriginalRequest != nil { + v1alpha.OriginalRequest = V1ToV1AlphaRequest(v1.OriginalRequest) + } + switch mr := v1.MessageResponse.(type) { + case *v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse: + if mr != nil { + v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_FileDescriptorResponse{ + FileDescriptorResponse: &v1alphareflectionpb.FileDescriptorResponse{ + FileDescriptorProto: mr.FileDescriptorResponse.GetFileDescriptorProto(), + }, + } + } + case *v1reflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse: + if mr != nil { + v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse{ + AllExtensionNumbersResponse: &v1alphareflectionpb.ExtensionNumberResponse{ + BaseTypeName: mr.AllExtensionNumbersResponse.GetBaseTypeName(), + ExtensionNumber: mr.AllExtensionNumbersResponse.GetExtensionNumber(), + }, + } + } + case *v1reflectionpb.ServerReflectionResponse_ListServicesResponse: + if mr != nil { + svcs := make([]*v1alphareflectionpb.ServiceResponse, len(mr.ListServicesResponse.GetService())) + for i, svc := range mr.ListServicesResponse.GetService() { + svcs[i] = &v1alphareflectionpb.ServiceResponse{ + Name: svc.GetName(), + } + } + v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_ListServicesResponse{ + ListServicesResponse: &v1alphareflectionpb.ListServiceResponse{ + Service: svcs, + }, + } + } + case *v1reflectionpb.ServerReflectionResponse_ErrorResponse: + if mr != nil { + v1alpha.MessageResponse = &v1alphareflectionpb.ServerReflectionResponse_ErrorResponse{ + ErrorResponse: &v1alphareflectionpb.ErrorResponse{ + ErrorCode: mr.ErrorResponse.GetErrorCode(), + ErrorMessage: mr.ErrorResponse.GetErrorMessage(), + }, + } + } + default: + // no value set + } + return &v1alpha +} + +// V1AlphaToV1Request converts a v1alpha ServerReflectionRequest to a v1. +func V1AlphaToV1Request(v1alpha *v1alphareflectionpb.ServerReflectionRequest) *v1reflectionpb.ServerReflectionRequest { + var v1 v1reflectionpb.ServerReflectionRequest + v1.Host = v1alpha.Host + switch mr := v1alpha.MessageRequest.(type) { + case *v1alphareflectionpb.ServerReflectionRequest_FileByFilename: + v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileByFilename{ + FileByFilename: mr.FileByFilename, + } + case *v1alphareflectionpb.ServerReflectionRequest_FileContainingSymbol: + v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileContainingSymbol{ + FileContainingSymbol: mr.FileContainingSymbol, + } + case *v1alphareflectionpb.ServerReflectionRequest_FileContainingExtension: + if mr.FileContainingExtension != nil { + v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_FileContainingExtension{ + FileContainingExtension: &v1reflectionpb.ExtensionRequest{ + ContainingType: mr.FileContainingExtension.GetContainingType(), + ExtensionNumber: mr.FileContainingExtension.GetExtensionNumber(), + }, + } + } + case *v1alphareflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: + v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType{ + AllExtensionNumbersOfType: mr.AllExtensionNumbersOfType, + } + case *v1alphareflectionpb.ServerReflectionRequest_ListServices: + v1.MessageRequest = &v1reflectionpb.ServerReflectionRequest_ListServices{ + ListServices: mr.ListServices, + } + default: + // no value set + } + return &v1 +} + +// V1ToV1AlphaRequest converts a v1 ServerReflectionRequest to a v1alpha. +func V1ToV1AlphaRequest(v1 *v1reflectionpb.ServerReflectionRequest) *v1alphareflectionpb.ServerReflectionRequest { + var v1alpha v1alphareflectionpb.ServerReflectionRequest + v1alpha.Host = v1.Host + switch mr := v1.MessageRequest.(type) { + case *v1reflectionpb.ServerReflectionRequest_FileByFilename: + if mr != nil { + v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileByFilename{ + FileByFilename: mr.FileByFilename, + } + } + case *v1reflectionpb.ServerReflectionRequest_FileContainingSymbol: + if mr != nil { + v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileContainingSymbol{ + FileContainingSymbol: mr.FileContainingSymbol, + } + } + case *v1reflectionpb.ServerReflectionRequest_FileContainingExtension: + if mr != nil { + v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_FileContainingExtension{ + FileContainingExtension: &v1alphareflectionpb.ExtensionRequest{ + ContainingType: mr.FileContainingExtension.GetContainingType(), + ExtensionNumber: mr.FileContainingExtension.GetExtensionNumber(), + }, + } + } + case *v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: + if mr != nil { + v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType{ + AllExtensionNumbersOfType: mr.AllExtensionNumbersOfType, + } + } + case *v1reflectionpb.ServerReflectionRequest_ListServices: + if mr != nil { + v1alpha.MessageRequest = &v1alphareflectionpb.ServerReflectionRequest_ListServices{ + ListServices: mr.ListServices, + } + } + default: + // no value set + } + return &v1alpha +} + +// V1AlphaToV1Response converts a v1alpha ServerReflectionResponse to a v1. +func V1AlphaToV1Response(v1alpha *v1alphareflectionpb.ServerReflectionResponse) *v1reflectionpb.ServerReflectionResponse { + var v1 v1reflectionpb.ServerReflectionResponse + v1.ValidHost = v1alpha.ValidHost + if v1alpha.OriginalRequest != nil { + v1.OriginalRequest = V1AlphaToV1Request(v1alpha.OriginalRequest) + } + switch mr := v1alpha.MessageResponse.(type) { + case *v1alphareflectionpb.ServerReflectionResponse_FileDescriptorResponse: + if mr != nil { + v1.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ + FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{ + FileDescriptorProto: mr.FileDescriptorResponse.GetFileDescriptorProto(), + }, + } + } + case *v1alphareflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse: + if mr != nil { + v1.MessageResponse = &v1reflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse{ + AllExtensionNumbersResponse: &v1reflectionpb.ExtensionNumberResponse{ + BaseTypeName: mr.AllExtensionNumbersResponse.GetBaseTypeName(), + ExtensionNumber: mr.AllExtensionNumbersResponse.GetExtensionNumber(), + }, + } + } + case *v1alphareflectionpb.ServerReflectionResponse_ListServicesResponse: + if mr != nil { + svcs := make([]*v1reflectionpb.ServiceResponse, len(mr.ListServicesResponse.GetService())) + for i, svc := range mr.ListServicesResponse.GetService() { + svcs[i] = &v1reflectionpb.ServiceResponse{ + Name: svc.GetName(), + } + } + v1.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ListServicesResponse{ + ListServicesResponse: &v1reflectionpb.ListServiceResponse{ + Service: svcs, + }, + } + } + case *v1alphareflectionpb.ServerReflectionResponse_ErrorResponse: + if mr != nil { + v1.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ + ErrorResponse: &v1reflectionpb.ErrorResponse{ + ErrorCode: mr.ErrorResponse.GetErrorCode(), + ErrorMessage: mr.ErrorResponse.GetErrorMessage(), + }, + } + } + default: + // no value set + } + return &v1 +} diff --git a/vendor/google.golang.org/grpc/reflection/serverreflection.go b/vendor/google.golang.org/grpc/reflection/serverreflection.go index c3b408392f69..13a94e2dd2e0 100644 --- a/vendor/google.golang.org/grpc/reflection/serverreflection.go +++ b/vendor/google.golang.org/grpc/reflection/serverreflection.go @@ -37,19 +37,13 @@ To register server reflection on a gRPC server: package reflection // import "google.golang.org/grpc/reflection" import ( - "io" - "sort" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" + "google.golang.org/grpc/reflection/internal" "google.golang.org/protobuf/reflect/protodesc" "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/reflect/protoregistry" v1reflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1" - v1reflectionpb "google.golang.org/grpc/reflection/grpc_reflection_v1" v1alphareflectiongrpc "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" ) @@ -158,203 +152,9 @@ func NewServerV1(opts ServerOptions) v1reflectiongrpc.ServerReflectionServer { if opts.ExtensionResolver == nil { opts.ExtensionResolver = protoregistry.GlobalTypes } - return &serverReflectionServer{ - s: opts.Services, - descResolver: opts.DescriptorResolver, - extResolver: opts.ExtensionResolver, - } -} - -type serverReflectionServer struct { - v1alphareflectiongrpc.UnimplementedServerReflectionServer - s ServiceInfoProvider - descResolver protodesc.Resolver - extResolver ExtensionResolver -} - -// fileDescWithDependencies returns a slice of serialized fileDescriptors in -// wire format ([]byte). The fileDescriptors will include fd and all the -// transitive dependencies of fd with names not in sentFileDescriptors. -func (s *serverReflectionServer) fileDescWithDependencies(fd protoreflect.FileDescriptor, sentFileDescriptors map[string]bool) ([][]byte, error) { - if fd.IsPlaceholder() { - // If the given root file is a placeholder, treat it - // as missing instead of serializing it. - return nil, protoregistry.NotFound - } - var r [][]byte - queue := []protoreflect.FileDescriptor{fd} - for len(queue) > 0 { - currentfd := queue[0] - queue = queue[1:] - if currentfd.IsPlaceholder() { - // Skip any missing files in the dependency graph. - continue - } - if sent := sentFileDescriptors[currentfd.Path()]; len(r) == 0 || !sent { - sentFileDescriptors[currentfd.Path()] = true - fdProto := protodesc.ToFileDescriptorProto(currentfd) - currentfdEncoded, err := proto.Marshal(fdProto) - if err != nil { - return nil, err - } - r = append(r, currentfdEncoded) - } - for i := 0; i < currentfd.Imports().Len(); i++ { - queue = append(queue, currentfd.Imports().Get(i)) - } - } - return r, nil -} - -// fileDescEncodingContainingSymbol finds the file descriptor containing the -// given symbol, finds all of its previously unsent transitive dependencies, -// does marshalling on them, and returns the marshalled result. The given symbol -// can be a type, a service or a method. -func (s *serverReflectionServer) fileDescEncodingContainingSymbol(name string, sentFileDescriptors map[string]bool) ([][]byte, error) { - d, err := s.descResolver.FindDescriptorByName(protoreflect.FullName(name)) - if err != nil { - return nil, err - } - return s.fileDescWithDependencies(d.ParentFile(), sentFileDescriptors) -} - -// fileDescEncodingContainingExtension finds the file descriptor containing -// given extension, finds all of its previously unsent transitive dependencies, -// does marshalling on them, and returns the marshalled result. -func (s *serverReflectionServer) fileDescEncodingContainingExtension(typeName string, extNum int32, sentFileDescriptors map[string]bool) ([][]byte, error) { - xt, err := s.extResolver.FindExtensionByNumber(protoreflect.FullName(typeName), protoreflect.FieldNumber(extNum)) - if err != nil { - return nil, err - } - return s.fileDescWithDependencies(xt.TypeDescriptor().ParentFile(), sentFileDescriptors) -} - -// allExtensionNumbersForTypeName returns all extension numbers for the given type. -func (s *serverReflectionServer) allExtensionNumbersForTypeName(name string) ([]int32, error) { - var numbers []int32 - s.extResolver.RangeExtensionsByMessage(protoreflect.FullName(name), func(xt protoreflect.ExtensionType) bool { - numbers = append(numbers, int32(xt.TypeDescriptor().Number())) - return true - }) - sort.Slice(numbers, func(i, j int) bool { - return numbers[i] < numbers[j] - }) - if len(numbers) == 0 { - // maybe return an error if given type name is not known - if _, err := s.descResolver.FindDescriptorByName(protoreflect.FullName(name)); err != nil { - return nil, err - } - } - return numbers, nil -} - -// listServices returns the names of services this server exposes. -func (s *serverReflectionServer) listServices() []*v1reflectionpb.ServiceResponse { - serviceInfo := s.s.GetServiceInfo() - resp := make([]*v1reflectionpb.ServiceResponse, 0, len(serviceInfo)) - for svc := range serviceInfo { - resp = append(resp, &v1reflectionpb.ServiceResponse{Name: svc}) - } - sort.Slice(resp, func(i, j int) bool { - return resp[i].Name < resp[j].Name - }) - return resp -} - -// ServerReflectionInfo is the reflection service handler. -func (s *serverReflectionServer) ServerReflectionInfo(stream v1reflectiongrpc.ServerReflection_ServerReflectionInfoServer) error { - sentFileDescriptors := make(map[string]bool) - for { - in, err := stream.Recv() - if err == io.EOF { - return nil - } - if err != nil { - return err - } - - out := &v1reflectionpb.ServerReflectionResponse{ - ValidHost: in.Host, - OriginalRequest: in, - } - switch req := in.MessageRequest.(type) { - case *v1reflectionpb.ServerReflectionRequest_FileByFilename: - var b [][]byte - fd, err := s.descResolver.FindFileByPath(req.FileByFilename) - if err == nil { - b, err = s.fileDescWithDependencies(fd, sentFileDescriptors) - } - if err != nil { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: int32(codes.NotFound), - ErrorMessage: err.Error(), - }, - } - } else { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, - } - } - case *v1reflectionpb.ServerReflectionRequest_FileContainingSymbol: - b, err := s.fileDescEncodingContainingSymbol(req.FileContainingSymbol, sentFileDescriptors) - if err != nil { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: int32(codes.NotFound), - ErrorMessage: err.Error(), - }, - } - } else { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, - } - } - case *v1reflectionpb.ServerReflectionRequest_FileContainingExtension: - typeName := req.FileContainingExtension.ContainingType - extNum := req.FileContainingExtension.ExtensionNumber - b, err := s.fileDescEncodingContainingExtension(typeName, extNum, sentFileDescriptors) - if err != nil { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: int32(codes.NotFound), - ErrorMessage: err.Error(), - }, - } - } else { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_FileDescriptorResponse{ - FileDescriptorResponse: &v1reflectionpb.FileDescriptorResponse{FileDescriptorProto: b}, - } - } - case *v1reflectionpb.ServerReflectionRequest_AllExtensionNumbersOfType: - extNums, err := s.allExtensionNumbersForTypeName(req.AllExtensionNumbersOfType) - if err != nil { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ErrorResponse{ - ErrorResponse: &v1reflectionpb.ErrorResponse{ - ErrorCode: int32(codes.NotFound), - ErrorMessage: err.Error(), - }, - } - } else { - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_AllExtensionNumbersResponse{ - AllExtensionNumbersResponse: &v1reflectionpb.ExtensionNumberResponse{ - BaseTypeName: req.AllExtensionNumbersOfType, - ExtensionNumber: extNums, - }, - } - } - case *v1reflectionpb.ServerReflectionRequest_ListServices: - out.MessageResponse = &v1reflectionpb.ServerReflectionResponse_ListServicesResponse{ - ListServicesResponse: &v1reflectionpb.ListServiceResponse{ - Service: s.listServices(), - }, - } - default: - return status.Errorf(codes.InvalidArgument, "invalid MessageRequest: %v", in.MessageRequest) - } - - if err := stream.Send(out); err != nil { - return err - } + return &internal.ServerReflectionServer{ + S: opts.Services, + DescResolver: opts.DescriptorResolver, + ExtResolver: opts.ExtensionResolver, } } diff --git a/vendor/google.golang.org/grpc/regenerate.sh b/vendor/google.golang.org/grpc/regenerate.sh deleted file mode 100644 index a6f26c8ab0f0..000000000000 --- a/vendor/google.golang.org/grpc/regenerate.sh +++ /dev/null @@ -1,123 +0,0 @@ -#!/bin/bash -# Copyright 2020 gRPC authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eu -o pipefail - -WORKDIR=$(mktemp -d) - -function finish { - rm -rf "$WORKDIR" -} -trap finish EXIT - -export GOBIN=${WORKDIR}/bin -export PATH=${GOBIN}:${PATH} -mkdir -p ${GOBIN} - -echo "remove existing generated files" -# grpc_testing_not_regenerate/*.pb.go is not re-generated, -# see grpc_testing_not_regenerate/README.md for details. -rm -f $(find . -name '*.pb.go' | grep -v 'grpc_testing_not_regenerate') - -echo "go install google.golang.org/protobuf/cmd/protoc-gen-go" -(cd test/tools && go install google.golang.org/protobuf/cmd/protoc-gen-go) - -echo "go install cmd/protoc-gen-go-grpc" -(cd cmd/protoc-gen-go-grpc && go install .) - -echo "git clone https://github.com/grpc/grpc-proto" -git clone --quiet https://github.com/grpc/grpc-proto ${WORKDIR}/grpc-proto - -echo "git clone https://github.com/protocolbuffers/protobuf" -git clone --quiet https://github.com/protocolbuffers/protobuf ${WORKDIR}/protobuf - -# Pull in code.proto as a proto dependency -mkdir -p ${WORKDIR}/googleapis/google/rpc -echo "curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/code.proto" -curl --silent https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/code.proto > ${WORKDIR}/googleapis/google/rpc/code.proto - -mkdir -p ${WORKDIR}/out - -# Generates sources without the embed requirement -LEGACY_SOURCES=( - ${WORKDIR}/grpc-proto/grpc/binlog/v1/binarylog.proto - ${WORKDIR}/grpc-proto/grpc/channelz/v1/channelz.proto - ${WORKDIR}/grpc-proto/grpc/health/v1/health.proto - ${WORKDIR}/grpc-proto/grpc/lb/v1/load_balancer.proto - profiling/proto/service.proto - ${WORKDIR}/grpc-proto/grpc/reflection/v1alpha/reflection.proto - ${WORKDIR}/grpc-proto/grpc/reflection/v1/reflection.proto -) - -# Generates only the new gRPC Service symbols -SOURCES=( - $(git ls-files --exclude-standard --cached --others "*.proto" | grep -v '^\(profiling/proto/service.proto\|reflection/grpc_reflection_v1alpha/reflection.proto\)$') - ${WORKDIR}/grpc-proto/grpc/gcp/altscontext.proto - ${WORKDIR}/grpc-proto/grpc/gcp/handshaker.proto - ${WORKDIR}/grpc-proto/grpc/gcp/transport_security_common.proto - ${WORKDIR}/grpc-proto/grpc/lookup/v1/rls.proto - ${WORKDIR}/grpc-proto/grpc/lookup/v1/rls_config.proto - ${WORKDIR}/grpc-proto/grpc/testing/*.proto - ${WORKDIR}/grpc-proto/grpc/core/*.proto -) - -# These options of the form 'Mfoo.proto=bar' instruct the codegen to use an -# import path of 'bar' in the generated code when 'foo.proto' is imported in -# one of the sources. -# -# Note that the protos listed here are all for testing purposes. All protos to -# be used externally should have a go_package option (and they don't need to be -# listed here). -OPTS=Mgrpc/core/stats.proto=google.golang.org/grpc/interop/grpc_testing/core,\ -Mgrpc/testing/benchmark_service.proto=google.golang.org/grpc/interop/grpc_testing,\ -Mgrpc/testing/stats.proto=google.golang.org/grpc/interop/grpc_testing,\ -Mgrpc/testing/report_qps_scenario_service.proto=google.golang.org/grpc/interop/grpc_testing,\ -Mgrpc/testing/messages.proto=google.golang.org/grpc/interop/grpc_testing,\ -Mgrpc/testing/worker_service.proto=google.golang.org/grpc/interop/grpc_testing,\ -Mgrpc/testing/control.proto=google.golang.org/grpc/interop/grpc_testing,\ -Mgrpc/testing/test.proto=google.golang.org/grpc/interop/grpc_testing,\ -Mgrpc/testing/payloads.proto=google.golang.org/grpc/interop/grpc_testing,\ -Mgrpc/testing/empty.proto=google.golang.org/grpc/interop/grpc_testing - -for src in ${SOURCES[@]}; do - echo "protoc ${src}" - protoc --go_out=${OPTS}:${WORKDIR}/out --go-grpc_out=${OPTS}:${WORKDIR}/out \ - -I"." \ - -I${WORKDIR}/grpc-proto \ - -I${WORKDIR}/googleapis \ - -I${WORKDIR}/protobuf/src \ - ${src} -done - -for src in ${LEGACY_SOURCES[@]}; do - echo "protoc ${src}" - protoc --go_out=${OPTS}:${WORKDIR}/out --go-grpc_out=${OPTS},require_unimplemented_servers=false:${WORKDIR}/out \ - -I"." \ - -I${WORKDIR}/grpc-proto \ - -I${WORKDIR}/googleapis \ - -I${WORKDIR}/protobuf/src \ - ${src} -done - -# The go_package option in grpc/lookup/v1/rls.proto doesn't match the -# current location. Move it into the right place. -mkdir -p ${WORKDIR}/out/google.golang.org/grpc/internal/proto/grpc_lookup_v1 -mv ${WORKDIR}/out/google.golang.org/grpc/lookup/grpc_lookup_v1/* ${WORKDIR}/out/google.golang.org/grpc/internal/proto/grpc_lookup_v1 - -# grpc_testing_not_regenerate/*.pb.go are not re-generated, -# see grpc_testing_not_regenerate/README.md for details. -rm ${WORKDIR}/out/google.golang.org/grpc/reflection/grpc_testing_not_regenerate/*.pb.go - -cp -R ${WORKDIR}/out/google.golang.org/grpc/* . diff --git a/vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go b/vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go index b54a3a3225d4..ef3d6ed6c439 100644 --- a/vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go +++ b/vendor/google.golang.org/grpc/resolver/dns/dns_resolver.go @@ -18,9 +18,6 @@ // Package dns implements a dns resolver to be installed as the default resolver // in grpc. -// -// Deprecated: this package is imported by grpc and should not need to be -// imported directly by users. package dns import ( @@ -52,3 +49,12 @@ func SetResolvingTimeout(timeout time.Duration) { func NewBuilder() resolver.Builder { return dns.NewBuilder() } + +// SetMinResolutionInterval sets the default minimum interval at which DNS +// re-resolutions are allowed. This helps to prevent excessive re-resolution. +// +// It must be called only at application startup, before any gRPC calls are +// made. Modifying this value after initialization is not thread-safe. +func SetMinResolutionInterval(d time.Duration) { + dns.MinResolutionInterval = d +} diff --git a/vendor/google.golang.org/grpc/resolver_wrapper.go b/vendor/google.golang.org/grpc/resolver_wrapper.go index 9dcc9780f891..23bb3fb25824 100644 --- a/vendor/google.golang.org/grpc/resolver_wrapper.go +++ b/vendor/google.golang.org/grpc/resolver_wrapper.go @@ -66,7 +66,7 @@ func newCCResolverWrapper(cc *ClientConn) *ccResolverWrapper { // any newly created ccResolverWrapper, except that close may be called instead. func (ccr *ccResolverWrapper) start() error { errCh := make(chan error) - ccr.serializer.Schedule(func(ctx context.Context) { + ccr.serializer.TrySchedule(func(ctx context.Context) { if ctx.Err() != nil { return } @@ -85,7 +85,7 @@ func (ccr *ccResolverWrapper) start() error { } func (ccr *ccResolverWrapper) resolveNow(o resolver.ResolveNowOptions) { - ccr.serializer.Schedule(func(ctx context.Context) { + ccr.serializer.TrySchedule(func(ctx context.Context) { if ctx.Err() != nil || ccr.resolver == nil { return } @@ -102,7 +102,7 @@ func (ccr *ccResolverWrapper) close() { ccr.closed = true ccr.mu.Unlock() - ccr.serializer.Schedule(func(context.Context) { + ccr.serializer.TrySchedule(func(context.Context) { if ccr.resolver == nil { return } @@ -171,12 +171,15 @@ func (ccr *ccResolverWrapper) NewAddress(addrs []resolver.Address) { // ParseServiceConfig is called by resolver implementations to parse a JSON // representation of the service config. func (ccr *ccResolverWrapper) ParseServiceConfig(scJSON string) *serviceconfig.ParseResult { - return parseServiceConfig(scJSON) + return parseServiceConfig(scJSON, ccr.cc.dopts.maxCallAttempts) } // addChannelzTraceEvent adds a channelz trace event containing the new // state received from resolver implementations. func (ccr *ccResolverWrapper) addChannelzTraceEvent(s resolver.State) { + if !logger.V(0) && !channelz.IsOn() { + return + } var updates []string var oldSC, newSC *ServiceConfig var oldOK, newOK bool diff --git a/vendor/google.golang.org/grpc/rpc_util.go b/vendor/google.golang.org/grpc/rpc_util.go index 998e251ddc41..2d96f1405e8d 100644 --- a/vendor/google.golang.org/grpc/rpc_util.go +++ b/vendor/google.golang.org/grpc/rpc_util.go @@ -19,7 +19,6 @@ package grpc import ( - "bytes" "compress/gzip" "context" "encoding/binary" @@ -35,6 +34,7 @@ import ( "google.golang.org/grpc/encoding" "google.golang.org/grpc/encoding/proto" "google.golang.org/grpc/internal/transport" + "google.golang.org/grpc/mem" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/stats" @@ -220,8 +220,8 @@ type HeaderCallOption struct { HeaderAddr *metadata.MD } -func (o HeaderCallOption) before(c *callInfo) error { return nil } -func (o HeaderCallOption) after(c *callInfo, attempt *csAttempt) { +func (o HeaderCallOption) before(*callInfo) error { return nil } +func (o HeaderCallOption) after(_ *callInfo, attempt *csAttempt) { *o.HeaderAddr, _ = attempt.s.Header() } @@ -242,8 +242,8 @@ type TrailerCallOption struct { TrailerAddr *metadata.MD } -func (o TrailerCallOption) before(c *callInfo) error { return nil } -func (o TrailerCallOption) after(c *callInfo, attempt *csAttempt) { +func (o TrailerCallOption) before(*callInfo) error { return nil } +func (o TrailerCallOption) after(_ *callInfo, attempt *csAttempt) { *o.TrailerAddr = attempt.s.Trailer() } @@ -264,24 +264,20 @@ type PeerCallOption struct { PeerAddr *peer.Peer } -func (o PeerCallOption) before(c *callInfo) error { return nil } -func (o PeerCallOption) after(c *callInfo, attempt *csAttempt) { +func (o PeerCallOption) before(*callInfo) error { return nil } +func (o PeerCallOption) after(_ *callInfo, attempt *csAttempt) { if x, ok := peer.FromContext(attempt.s.Context()); ok { *o.PeerAddr = *x } } -// WaitForReady configures the action to take when an RPC is attempted on broken -// connections or unreachable servers. If waitForReady is false and the -// connection is in the TRANSIENT_FAILURE state, the RPC will fail -// immediately. Otherwise, the RPC client will block the call until a -// connection is available (or the call is canceled or times out) and will -// retry the call if it fails due to a transient error. gRPC will not retry if -// data was written to the wire unless the server indicates it did not process -// the data. Please refer to -// https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md. +// WaitForReady configures the RPC's behavior when the client is in +// TRANSIENT_FAILURE, which occurs when all addresses fail to connect. If +// waitForReady is false, the RPC will fail immediately. Otherwise, the client +// will wait until a connection becomes available or the RPC's deadline is +// reached. // -// By default, RPCs don't "wait for ready". +// By default, RPCs do not "wait for ready". func WaitForReady(waitForReady bool) CallOption { return FailFastCallOption{FailFast: !waitForReady} } @@ -308,7 +304,7 @@ func (o FailFastCallOption) before(c *callInfo) error { c.failFast = o.FailFast return nil } -func (o FailFastCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o FailFastCallOption) after(*callInfo, *csAttempt) {} // OnFinish returns a CallOption that configures a callback to be called when // the call completes. The error passed to the callback is the status of the @@ -343,7 +339,7 @@ func (o OnFinishCallOption) before(c *callInfo) error { return nil } -func (o OnFinishCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o OnFinishCallOption) after(*callInfo, *csAttempt) {} // MaxCallRecvMsgSize returns a CallOption which sets the maximum message size // in bytes the client can receive. If this is not set, gRPC uses the default @@ -367,7 +363,7 @@ func (o MaxRecvMsgSizeCallOption) before(c *callInfo) error { c.maxReceiveMessageSize = &o.MaxRecvMsgSize return nil } -func (o MaxRecvMsgSizeCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o MaxRecvMsgSizeCallOption) after(*callInfo, *csAttempt) {} // MaxCallSendMsgSize returns a CallOption which sets the maximum message size // in bytes the client can send. If this is not set, gRPC uses the default @@ -391,7 +387,7 @@ func (o MaxSendMsgSizeCallOption) before(c *callInfo) error { c.maxSendMessageSize = &o.MaxSendMsgSize return nil } -func (o MaxSendMsgSizeCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o MaxSendMsgSizeCallOption) after(*callInfo, *csAttempt) {} // PerRPCCredentials returns a CallOption that sets credentials.PerRPCCredentials // for a call. @@ -414,7 +410,7 @@ func (o PerRPCCredsCallOption) before(c *callInfo) error { c.creds = o.Creds return nil } -func (o PerRPCCredsCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o PerRPCCredsCallOption) after(*callInfo, *csAttempt) {} // UseCompressor returns a CallOption which sets the compressor used when // sending the request. If WithCompressor is also set, UseCompressor has @@ -442,7 +438,7 @@ func (o CompressorCallOption) before(c *callInfo) error { c.compressorType = o.CompressorType return nil } -func (o CompressorCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o CompressorCallOption) after(*callInfo, *csAttempt) {} // CallContentSubtype returns a CallOption that will set the content-subtype // for a call. For example, if content-subtype is "json", the Content-Type over @@ -479,7 +475,7 @@ func (o ContentSubtypeCallOption) before(c *callInfo) error { c.contentSubtype = o.ContentSubtype return nil } -func (o ContentSubtypeCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o ContentSubtypeCallOption) after(*callInfo, *csAttempt) {} // ForceCodec returns a CallOption that will set codec to be used for all // request and response messages for a call. The result of calling Name() will @@ -515,10 +511,50 @@ type ForceCodecCallOption struct { } func (o ForceCodecCallOption) before(c *callInfo) error { - c.codec = o.Codec + c.codec = newCodecV1Bridge(o.Codec) return nil } -func (o ForceCodecCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o ForceCodecCallOption) after(*callInfo, *csAttempt) {} + +// ForceCodecV2 returns a CallOption that will set codec to be used for all +// request and response messages for a call. The result of calling Name() will +// be used as the content-subtype after converting to lowercase, unless +// CallContentSubtype is also used. +// +// See Content-Type on +// https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests for +// more details. Also see the documentation on RegisterCodec and +// CallContentSubtype for more details on the interaction between Codec and +// content-subtype. +// +// This function is provided for advanced users; prefer to use only +// CallContentSubtype to select a registered codec instead. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func ForceCodecV2(codec encoding.CodecV2) CallOption { + return ForceCodecV2CallOption{CodecV2: codec} +} + +// ForceCodecV2CallOption is a CallOption that indicates the codec used for +// marshaling messages. +// +// # Experimental +// +// Notice: This type is EXPERIMENTAL and may be changed or removed in a +// later release. +type ForceCodecV2CallOption struct { + CodecV2 encoding.CodecV2 +} + +func (o ForceCodecV2CallOption) before(c *callInfo) error { + c.codec = o.CodecV2 + return nil +} + +func (o ForceCodecV2CallOption) after(*callInfo, *csAttempt) {} // CallCustomCodec behaves like ForceCodec, but accepts a grpc.Codec instead of // an encoding.Codec. @@ -540,10 +576,10 @@ type CustomCodecCallOption struct { } func (o CustomCodecCallOption) before(c *callInfo) error { - c.codec = o.Codec + c.codec = newCodecV0Bridge(o.Codec) return nil } -func (o CustomCodecCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o CustomCodecCallOption) after(*callInfo, *csAttempt) {} // MaxRetryRPCBufferSize returns a CallOption that limits the amount of memory // used for buffering this RPC's requests for retry purposes. @@ -571,7 +607,7 @@ func (o MaxRetryRPCBufferSizeCallOption) before(c *callInfo) error { c.maxRetryRPCBufferSize = o.MaxRetryRPCBufferSize return nil } -func (o MaxRetryRPCBufferSizeCallOption) after(c *callInfo, attempt *csAttempt) {} +func (o MaxRetryRPCBufferSizeCallOption) after(*callInfo, *csAttempt) {} // The format of the payload: compressed or not? type payloadFormat uint8 @@ -581,19 +617,28 @@ const ( compressionMade payloadFormat = 1 // compressed ) +func (pf payloadFormat) isCompressed() bool { + return pf == compressionMade +} + +type streamReader interface { + ReadHeader(header []byte) error + Read(n int) (mem.BufferSlice, error) +} + // parser reads complete gRPC messages from the underlying reader. type parser struct { // r is the underlying reader. // See the comment on recvMsg for the permissible // error types. - r io.Reader + r streamReader // The header of a gRPC message. Find more detail at // https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md header [5]byte - // recvBufferPool is the pool of shared receive buffers. - recvBufferPool SharedBufferPool + // bufferPool is the pool of shared receive buffers. + bufferPool mem.BufferPool } // recvMsg reads a complete gRPC message from the stream. @@ -608,14 +653,15 @@ type parser struct { // - an error from the status package // // No other error values or types must be returned, which also means -// that the underlying io.Reader must not return an incompatible +// that the underlying streamReader must not return an incompatible // error. -func (p *parser) recvMsg(maxReceiveMessageSize int) (pf payloadFormat, msg []byte, err error) { - if _, err := p.r.Read(p.header[:]); err != nil { +func (p *parser) recvMsg(maxReceiveMessageSize int) (payloadFormat, mem.BufferSlice, error) { + err := p.r.ReadHeader(p.header[:]) + if err != nil { return 0, nil, err } - pf = payloadFormat(p.header[0]) + pf := payloadFormat(p.header[0]) length := binary.BigEndian.Uint32(p.header[1:]) if length == 0 { @@ -627,20 +673,21 @@ func (p *parser) recvMsg(maxReceiveMessageSize int) (pf payloadFormat, msg []byt if int(length) > maxReceiveMessageSize { return 0, nil, status.Errorf(codes.ResourceExhausted, "grpc: received message larger than max (%d vs. %d)", length, maxReceiveMessageSize) } - msg = p.recvBufferPool.Get(int(length)) - if _, err := p.r.Read(msg); err != nil { + + data, err := p.r.Read(int(length)) + if err != nil { if err == io.EOF { err = io.ErrUnexpectedEOF } return 0, nil, err } - return pf, msg, nil + return pf, data, nil } // encode serializes msg and returns a buffer containing the message, or an // error if it is too large to be transmitted by grpc. If msg is nil, it // generates an empty message. -func encode(c baseCodec, msg any) ([]byte, error) { +func encode(c baseCodec, msg any) (mem.BufferSlice, error) { if msg == nil { // NOTE: typed nils will not be caught by this check return nil, nil } @@ -648,7 +695,8 @@ func encode(c baseCodec, msg any) ([]byte, error) { if err != nil { return nil, status.Errorf(codes.Internal, "grpc: error while marshaling: %v", err.Error()) } - if uint(len(b)) > math.MaxUint32 { + if uint(b.Len()) > math.MaxUint32 { + b.Free() return nil, status.Errorf(codes.ResourceExhausted, "grpc: message too large (%d bytes)", len(b)) } return b, nil @@ -659,34 +707,41 @@ func encode(c baseCodec, msg any) ([]byte, error) { // indicating no compression was done. // // TODO(dfawley): eliminate cp parameter by wrapping Compressor in an encoding.Compressor. -func compress(in []byte, cp Compressor, compressor encoding.Compressor) ([]byte, error) { - if compressor == nil && cp == nil { - return nil, nil - } - if len(in) == 0 { - return nil, nil +func compress(in mem.BufferSlice, cp Compressor, compressor encoding.Compressor, pool mem.BufferPool) (mem.BufferSlice, payloadFormat, error) { + if (compressor == nil && cp == nil) || in.Len() == 0 { + return nil, compressionNone, nil } + var out mem.BufferSlice + w := mem.NewWriter(&out, pool) wrapErr := func(err error) error { + out.Free() return status.Errorf(codes.Internal, "grpc: error while compressing: %v", err.Error()) } - cbuf := &bytes.Buffer{} if compressor != nil { - z, err := compressor.Compress(cbuf) + z, err := compressor.Compress(w) if err != nil { - return nil, wrapErr(err) + return nil, 0, wrapErr(err) } - if _, err := z.Write(in); err != nil { - return nil, wrapErr(err) + for _, b := range in { + if _, err := z.Write(b.ReadOnlyData()); err != nil { + return nil, 0, wrapErr(err) + } } if err := z.Close(); err != nil { - return nil, wrapErr(err) + return nil, 0, wrapErr(err) } } else { - if err := cp.Do(cbuf, in); err != nil { - return nil, wrapErr(err) + // This is obviously really inefficient since it fully materializes the data, but + // there is no way around this with the old Compressor API. At least it attempts + // to return the buffer to the provider, in the hopes it can be reused (maybe + // even by a subsequent call to this very function). + buf := in.MaterializeToBuffer(pool) + defer buf.Free() + if err := cp.Do(w, buf.ReadOnlyData()); err != nil { + return nil, 0, wrapErr(err) } } - return cbuf.Bytes(), nil + return out, compressionMade, nil } const ( @@ -697,33 +752,36 @@ const ( // msgHeader returns a 5-byte header for the message being transmitted and the // payload, which is compData if non-nil or data otherwise. -func msgHeader(data, compData []byte) (hdr []byte, payload []byte) { +func msgHeader(data, compData mem.BufferSlice, pf payloadFormat) (hdr []byte, payload mem.BufferSlice) { hdr = make([]byte, headerLen) - if compData != nil { - hdr[0] = byte(compressionMade) - data = compData + hdr[0] = byte(pf) + + var length uint32 + if pf.isCompressed() { + length = uint32(compData.Len()) + payload = compData } else { - hdr[0] = byte(compressionNone) + length = uint32(data.Len()) + payload = data } // Write length of payload into buf - binary.BigEndian.PutUint32(hdr[payloadLen:], uint32(len(data))) - return hdr, data + binary.BigEndian.PutUint32(hdr[payloadLen:], length) + return hdr, payload } -func outPayload(client bool, msg any, data, payload []byte, t time.Time) *stats.OutPayload { +func outPayload(client bool, msg any, dataLength, payloadLength int, t time.Time) *stats.OutPayload { return &stats.OutPayload{ Client: client, Payload: msg, - Data: data, - Length: len(data), - WireLength: len(payload) + headerLen, - CompressedLength: len(payload), + Length: dataLength, + WireLength: payloadLength + headerLen, + CompressedLength: payloadLength, SentTime: t, } } -func checkRecvPayload(pf payloadFormat, recvCompress string, haveCompressor bool) *status.Status { +func checkRecvPayload(pf payloadFormat, recvCompress string, haveCompressor bool, isServer bool) *status.Status { switch pf { case compressionNone: case compressionMade: @@ -731,7 +789,11 @@ func checkRecvPayload(pf payloadFormat, recvCompress string, haveCompressor bool return status.New(codes.Internal, "grpc: compressed flag set with identity or empty encoding") } if !haveCompressor { - return status.Newf(codes.Unimplemented, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress) + if isServer { + return status.Newf(codes.Unimplemented, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress) + } else { + return status.Newf(codes.Internal, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress) + } } default: return status.Newf(codes.Internal, "grpc: received unexpected payload format %d", pf) @@ -741,104 +803,129 @@ func checkRecvPayload(pf payloadFormat, recvCompress string, haveCompressor bool type payloadInfo struct { compressedLength int // The compressed length got from wire. - uncompressedBytes []byte + uncompressedBytes mem.BufferSlice +} + +func (p *payloadInfo) free() { + if p != nil && p.uncompressedBytes != nil { + p.uncompressedBytes.Free() + } } // recvAndDecompress reads a message from the stream, decompressing it if necessary. // // Cancelling the returned cancel function releases the buffer back to the pool. So the caller should cancel as soon as // the buffer is no longer needed. -func recvAndDecompress(p *parser, s *transport.Stream, dc Decompressor, maxReceiveMessageSize int, payInfo *payloadInfo, compressor encoding.Compressor, -) (uncompressedBuf []byte, cancel func(), err error) { - pf, compressedBuf, err := p.recvMsg(maxReceiveMessageSize) +// TODO: Refactor this function to reduce the number of arguments. +// See: https://google.github.io/styleguide/go/best-practices.html#function-argument-lists +func recvAndDecompress(p *parser, s *transport.Stream, dc Decompressor, maxReceiveMessageSize int, payInfo *payloadInfo, compressor encoding.Compressor, isServer bool, +) (out mem.BufferSlice, err error) { + pf, compressed, err := p.recvMsg(maxReceiveMessageSize) if err != nil { - return nil, nil, err + return nil, err } - if st := checkRecvPayload(pf, s.RecvCompress(), compressor != nil || dc != nil); st != nil { - return nil, nil, st.Err() + compressedLength := compressed.Len() + + if st := checkRecvPayload(pf, s.RecvCompress(), compressor != nil || dc != nil, isServer); st != nil { + compressed.Free() + return nil, st.Err() } var size int - if pf == compressionMade { + if pf.isCompressed() { + defer compressed.Free() + // To match legacy behavior, if the decompressor is set by WithDecompressor or RPCDecompressor, // use this decompressor as the default. if dc != nil { - uncompressedBuf, err = dc.Do(bytes.NewReader(compressedBuf)) + var uncompressedBuf []byte + uncompressedBuf, err = dc.Do(compressed.Reader()) + if err == nil { + out = mem.BufferSlice{mem.NewBuffer(&uncompressedBuf, nil)} + } size = len(uncompressedBuf) } else { - uncompressedBuf, size, err = decompress(compressor, compressedBuf, maxReceiveMessageSize) + out, size, err = decompress(compressor, compressed, maxReceiveMessageSize, p.bufferPool) } if err != nil { - return nil, nil, status.Errorf(codes.Internal, "grpc: failed to decompress the received message: %v", err) + return nil, status.Errorf(codes.Internal, "grpc: failed to decompress the received message: %v", err) } if size > maxReceiveMessageSize { + out.Free() // TODO: Revisit the error code. Currently keep it consistent with java // implementation. - return nil, nil, status.Errorf(codes.ResourceExhausted, "grpc: received message after decompression larger than max (%d vs. %d)", size, maxReceiveMessageSize) + return nil, status.Errorf(codes.ResourceExhausted, "grpc: received message after decompression larger than max (%d vs. %d)", size, maxReceiveMessageSize) } } else { - uncompressedBuf = compressedBuf + out = compressed } if payInfo != nil { - payInfo.compressedLength = len(compressedBuf) - payInfo.uncompressedBytes = uncompressedBuf - - cancel = func() {} - } else { - cancel = func() { - p.recvBufferPool.Put(&compressedBuf) - } + payInfo.compressedLength = compressedLength + out.Ref() + payInfo.uncompressedBytes = out } - return uncompressedBuf, cancel, nil + return out, nil } // Using compressor, decompress d, returning data and size. // Optionally, if data will be over maxReceiveMessageSize, just return the size. -func decompress(compressor encoding.Compressor, d []byte, maxReceiveMessageSize int) ([]byte, int, error) { - dcReader, err := compressor.Decompress(bytes.NewReader(d)) +func decompress(compressor encoding.Compressor, d mem.BufferSlice, maxReceiveMessageSize int, pool mem.BufferPool) (mem.BufferSlice, int, error) { + dcReader, err := compressor.Decompress(d.Reader()) if err != nil { return nil, 0, err } - if sizer, ok := compressor.(interface { - DecompressedSize(compressedBytes []byte) int - }); ok { - if size := sizer.DecompressedSize(d); size >= 0 { - if size > maxReceiveMessageSize { - return nil, size, nil - } - // size is used as an estimate to size the buffer, but we - // will read more data if available. - // +MinRead so ReadFrom will not reallocate if size is correct. - // - // TODO: If we ensure that the buffer size is the same as the DecompressedSize, - // we can also utilize the recv buffer pool here. - buf := bytes.NewBuffer(make([]byte, 0, size+bytes.MinRead)) - bytesRead, err := buf.ReadFrom(io.LimitReader(dcReader, int64(maxReceiveMessageSize)+1)) - return buf.Bytes(), int(bytesRead), err - } + + // TODO: Can/should this still be preserved with the new BufferSlice API? Are + // there any actual benefits to allocating a single large buffer instead of + // multiple smaller ones? + //if sizer, ok := compressor.(interface { + // DecompressedSize(compressedBytes []byte) int + //}); ok { + // if size := sizer.DecompressedSize(d); size >= 0 { + // if size > maxReceiveMessageSize { + // return nil, size, nil + // } + // // size is used as an estimate to size the buffer, but we + // // will read more data if available. + // // +MinRead so ReadFrom will not reallocate if size is correct. + // // + // // TODO: If we ensure that the buffer size is the same as the DecompressedSize, + // // we can also utilize the recv buffer pool here. + // buf := bytes.NewBuffer(make([]byte, 0, size+bytes.MinRead)) + // bytesRead, err := buf.ReadFrom(io.LimitReader(dcReader, int64(maxReceiveMessageSize)+1)) + // return buf.Bytes(), int(bytesRead), err + // } + //} + + var out mem.BufferSlice + _, err = io.Copy(mem.NewWriter(&out, pool), io.LimitReader(dcReader, int64(maxReceiveMessageSize)+1)) + if err != nil { + out.Free() + return nil, 0, err } - // Read from LimitReader with limit max+1. So if the underlying - // reader is over limit, the result will be bigger than max. - d, err = io.ReadAll(io.LimitReader(dcReader, int64(maxReceiveMessageSize)+1)) - return d, len(d), err + return out, out.Len(), nil } // For the two compressor parameters, both should not be set, but if they are, // dc takes precedence over compressor. // TODO(dfawley): wrap the old compressor/decompressor using the new API? -func recv(p *parser, c baseCodec, s *transport.Stream, dc Decompressor, m any, maxReceiveMessageSize int, payInfo *payloadInfo, compressor encoding.Compressor) error { - buf, cancel, err := recvAndDecompress(p, s, dc, maxReceiveMessageSize, payInfo, compressor) +func recv(p *parser, c baseCodec, s *transport.Stream, dc Decompressor, m any, maxReceiveMessageSize int, payInfo *payloadInfo, compressor encoding.Compressor, isServer bool) error { + data, err := recvAndDecompress(p, s, dc, maxReceiveMessageSize, payInfo, compressor, isServer) if err != nil { return err } - defer cancel() - if err := c.Unmarshal(buf, m); err != nil { + // If the codec wants its own reference to the data, it can get it. Otherwise, always + // free the buffers. + defer data.Free() + + if err := c.Unmarshal(data, m); err != nil { return status.Errorf(codes.Internal, "grpc: failed to unmarshal the received message: %v", err) } + return nil } @@ -941,7 +1028,7 @@ func setCallInfoCodec(c *callInfo) error { // encoding.Codec (Name vs. String method name). We only support // setting content subtype from encoding.Codec to avoid a behavior // change with the deprecated version. - if ec, ok := c.codec.(encoding.Codec); ok { + if ec, ok := c.codec.(encoding.CodecV2); ok { c.contentSubtype = strings.ToLower(ec.Name()) } } @@ -950,12 +1037,12 @@ func setCallInfoCodec(c *callInfo) error { if c.contentSubtype == "" { // No codec specified in CallOptions; use proto by default. - c.codec = encoding.GetCodec(proto.Name) + c.codec = getCodec(proto.Name) return nil } // c.contentSubtype is already lowercased in CallContentSubtype - c.codec = encoding.GetCodec(c.contentSubtype) + c.codec = getCodec(c.contentSubtype) if c.codec == nil { return status.Errorf(codes.Internal, "no codec registered for content-subtype %s", c.contentSubtype) } @@ -964,7 +1051,7 @@ func setCallInfoCodec(c *callInfo) error { // The SupportPackageIsVersion variables are referenced from generated protocol // buffer files to ensure compatibility with the gRPC version used. The latest -// support package version is 7. +// support package version is 9. // // Older versions are kept for compatibility. // @@ -976,6 +1063,7 @@ const ( SupportPackageIsVersion6 = true SupportPackageIsVersion7 = true SupportPackageIsVersion8 = true + SupportPackageIsVersion9 = true ) const grpcUA = "grpc-go/" + Version diff --git a/vendor/google.golang.org/grpc/server.go b/vendor/google.golang.org/grpc/server.go index fd4558daa52c..d1e1415a40f9 100644 --- a/vendor/google.golang.org/grpc/server.go +++ b/vendor/google.golang.org/grpc/server.go @@ -45,6 +45,7 @@ import ( "google.golang.org/grpc/internal/grpcutil" "google.golang.org/grpc/internal/transport" "google.golang.org/grpc/keepalive" + "google.golang.org/grpc/mem" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/stats" @@ -80,7 +81,7 @@ func init() { } internal.BinaryLogger = binaryLogger internal.JoinServerOptions = newJoinServerOption - internal.RecvBufferPool = recvBufferPool + internal.BufferPool = bufferPool } var statusOK = status.New(codes.OK, "") @@ -170,7 +171,7 @@ type serverOptions struct { maxHeaderListSize *uint32 headerTableSize *uint32 numServerWorkers uint32 - recvBufferPool SharedBufferPool + bufferPool mem.BufferPool waitForHandlers bool } @@ -181,7 +182,7 @@ var defaultServerOptions = serverOptions{ connectionTimeout: 120 * time.Second, writeBufferSize: defaultWriteBufSize, readBufferSize: defaultReadBufSize, - recvBufferPool: nopBufferPool{}, + bufferPool: mem.DefaultBufferPool(), } var globalServerOptions []ServerOption @@ -313,7 +314,7 @@ func KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption { // Will be supported throughout 1.x. func CustomCodec(codec Codec) ServerOption { return newFuncServerOption(func(o *serverOptions) { - o.codec = codec + o.codec = newCodecV0Bridge(codec) }) } @@ -342,7 +343,22 @@ func CustomCodec(codec Codec) ServerOption { // later release. func ForceServerCodec(codec encoding.Codec) ServerOption { return newFuncServerOption(func(o *serverOptions) { - o.codec = codec + o.codec = newCodecV1Bridge(codec) + }) +} + +// ForceServerCodecV2 is the equivalent of ForceServerCodec, but for the new +// CodecV2 interface. +// +// Will be supported throughout 1.x. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func ForceServerCodecV2(codecV2 encoding.CodecV2) ServerOption { + return newFuncServerOption(func(o *serverOptions) { + o.codec = codecV2 }) } @@ -527,12 +543,22 @@ func ConnectionTimeout(d time.Duration) ServerOption { }) } +// MaxHeaderListSizeServerOption is a ServerOption that sets the max +// (uncompressed) size of header list that the server is prepared to accept. +type MaxHeaderListSizeServerOption struct { + MaxHeaderListSize uint32 +} + +func (o MaxHeaderListSizeServerOption) apply(so *serverOptions) { + so.maxHeaderListSize = &o.MaxHeaderListSize +} + // MaxHeaderListSize returns a ServerOption that sets the max (uncompressed) size // of header list that the server is prepared to accept. func MaxHeaderListSize(s uint32) ServerOption { - return newFuncServerOption(func(o *serverOptions) { - o.maxHeaderListSize = &s - }) + return MaxHeaderListSizeServerOption{ + MaxHeaderListSize: s, + } } // HeaderTableSize returns a ServerOption that sets the size of dynamic @@ -582,26 +608,9 @@ func WaitForHandlers(w bool) ServerOption { }) } -// RecvBufferPool returns a ServerOption that configures the server -// to use the provided shared buffer pool for parsing incoming messages. Depending -// on the application's workload, this could result in reduced memory allocation. -// -// If you are unsure about how to implement a memory pool but want to utilize one, -// begin with grpc.NewSharedBufferPool. -// -// Note: The shared buffer pool feature will not be active if any of the following -// options are used: StatsHandler, EnableTracing, or binary logging. In such -// cases, the shared buffer pool will be ignored. -// -// Deprecated: use experimental.WithRecvBufferPool instead. Will be deleted in -// v1.60.0 or later. -func RecvBufferPool(bufferPool SharedBufferPool) ServerOption { - return recvBufferPool(bufferPool) -} - -func recvBufferPool(bufferPool SharedBufferPool) ServerOption { +func bufferPool(bufferPool mem.BufferPool) ServerOption { return newFuncServerOption(func(o *serverOptions) { - o.recvBufferPool = bufferPool + o.bufferPool = bufferPool }) } @@ -612,7 +621,7 @@ func recvBufferPool(bufferPool SharedBufferPool) ServerOption { // workload (assuming a QPS of a few thousand requests/sec). const serverWorkerResetThreshold = 1 << 16 -// serverWorkers blocks on a *transport.Stream channel forever and waits for +// serverWorker blocks on a *transport.Stream channel forever and waits for // data to be fed by serveStreams. This allows multiple requests to be // processed by the same goroutine, removing the need for expensive stack // re-allocations (see the runtime.morestack problem [1]). @@ -970,6 +979,7 @@ func (s *Server) newHTTP2Transport(c net.Conn) transport.ServerTransport { ChannelzParent: s.channelz, MaxHeaderListSize: s.opts.maxHeaderListSize, HeaderTableSize: s.opts.headerTableSize, + BufferPool: s.opts.bufferPool, } st, err := transport.NewServerTransport(c, config) if err != nil { @@ -1062,7 +1072,7 @@ var _ http.Handler = (*Server)(nil) // Notice: This API is EXPERIMENTAL and may be changed or removed in a // later release. func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { - st, err := transport.NewServerHandlerTransport(w, r, s.opts.statsHandlers) + st, err := transport.NewServerHandlerTransport(w, r, s.opts.statsHandlers, s.opts.bufferPool) if err != nil { // Errors returned from transport.NewServerHandlerTransport have // already been written to w. @@ -1132,20 +1142,35 @@ func (s *Server) sendResponse(ctx context.Context, t transport.ServerTransport, channelz.Error(logger, s.channelz, "grpc: server failed to encode response: ", err) return err } - compData, err := compress(data, cp, comp) + + compData, pf, err := compress(data, cp, comp, s.opts.bufferPool) if err != nil { + data.Free() channelz.Error(logger, s.channelz, "grpc: server failed to compress response: ", err) return err } - hdr, payload := msgHeader(data, compData) + + hdr, payload := msgHeader(data, compData, pf) + + defer func() { + compData.Free() + data.Free() + // payload does not need to be freed here, it is either data or compData, both of + // which are already freed. + }() + + dataLen := data.Len() + payloadLen := payload.Len() // TODO(dfawley): should we be checking len(data) instead? - if len(payload) > s.opts.maxSendMessageSize { - return status.Errorf(codes.ResourceExhausted, "grpc: trying to send message larger than max (%d vs. %d)", len(payload), s.opts.maxSendMessageSize) + if payloadLen > s.opts.maxSendMessageSize { + return status.Errorf(codes.ResourceExhausted, "grpc: trying to send message larger than max (%d vs. %d)", payloadLen, s.opts.maxSendMessageSize) } err = t.Write(stream, hdr, payload, opts) if err == nil { - for _, sh := range s.opts.statsHandlers { - sh.HandleRPC(ctx, outPayload(false, msg, data, payload, time.Now())) + if len(s.opts.statsHandlers) != 0 { + for _, sh := range s.opts.statsHandlers { + sh.HandleRPC(ctx, outPayload(false, msg, dataLen, payloadLen, time.Now())) + } } } return err @@ -1324,37 +1349,37 @@ func (s *Server) processUnaryRPC(ctx context.Context, t transport.ServerTranspor var payInfo *payloadInfo if len(shs) != 0 || len(binlogs) != 0 { payInfo = &payloadInfo{} + defer payInfo.free() } - d, cancel, err := recvAndDecompress(&parser{r: stream, recvBufferPool: s.opts.recvBufferPool}, stream, dc, s.opts.maxReceiveMessageSize, payInfo, decomp) + d, err := recvAndDecompress(&parser{r: stream, bufferPool: s.opts.bufferPool}, stream, dc, s.opts.maxReceiveMessageSize, payInfo, decomp, true) if err != nil { if e := t.WriteStatus(stream, status.Convert(err)); e != nil { channelz.Warningf(logger, s.channelz, "grpc: Server.processUnaryRPC failed to write status: %v", e) } return err } + defer d.Free() if channelz.IsOn() { t.IncrMsgRecv() } df := func(v any) error { - defer cancel() - if err := s.getCodec(stream.ContentSubtype()).Unmarshal(d, v); err != nil { return status.Errorf(codes.Internal, "grpc: error unmarshalling request: %v", err) } + for _, sh := range shs { sh.HandleRPC(ctx, &stats.InPayload{ RecvTime: time.Now(), Payload: v, - Length: len(d), + Length: d.Len(), WireLength: payInfo.compressedLength + headerLen, CompressedLength: payInfo.compressedLength, - Data: d, }) } if len(binlogs) != 0 { cm := &binarylog.ClientMessage{ - Message: d, + Message: d.Materialize(), } for _, binlog := range binlogs { binlog.Log(ctx, cm) @@ -1538,7 +1563,7 @@ func (s *Server) processStreamingRPC(ctx context.Context, t transport.ServerTran ctx: ctx, t: t, s: stream, - p: &parser{r: stream, recvBufferPool: s.opts.recvBufferPool}, + p: &parser{r: stream, bufferPool: s.opts.bufferPool}, codec: s.getCodec(stream.ContentSubtype()), maxReceiveMessageSize: s.opts.maxReceiveMessageSize, maxSendMessageSize: s.opts.maxSendMessageSize, @@ -1953,12 +1978,12 @@ func (s *Server) getCodec(contentSubtype string) baseCodec { return s.opts.codec } if contentSubtype == "" { - return encoding.GetCodec(proto.Name) + return getCodec(proto.Name) } - codec := encoding.GetCodec(contentSubtype) + codec := getCodec(contentSubtype) if codec == nil { logger.Warningf("Unsupported codec %q. Defaulting to %q for now. This will start to fail in future releases.", contentSubtype, proto.Name) - return encoding.GetCodec(proto.Name) + return getCodec(proto.Name) } return codec } diff --git a/vendor/google.golang.org/grpc/service_config.go b/vendor/google.golang.org/grpc/service_config.go index 2b35c5d2130a..2671c5ef69f0 100644 --- a/vendor/google.golang.org/grpc/service_config.go +++ b/vendor/google.golang.org/grpc/service_config.go @@ -26,6 +26,7 @@ import ( "time" "google.golang.org/grpc/balancer" + "google.golang.org/grpc/balancer/pickfirst" "google.golang.org/grpc/codes" "google.golang.org/grpc/internal" "google.golang.org/grpc/internal/balancer/gracefulswitch" @@ -163,16 +164,18 @@ type jsonSC struct { } func init() { - internal.ParseServiceConfig = parseServiceConfig + internal.ParseServiceConfig = func(js string) *serviceconfig.ParseResult { + return parseServiceConfig(js, defaultMaxCallAttempts) + } } -func parseServiceConfig(js string) *serviceconfig.ParseResult { +func parseServiceConfig(js string, maxAttempts int) *serviceconfig.ParseResult { if len(js) == 0 { return &serviceconfig.ParseResult{Err: fmt.Errorf("no JSON service config provided")} } var rsc jsonSC err := json.Unmarshal([]byte(js), &rsc) if err != nil { - logger.Warningf("grpc: unmarshaling service config %s: %v", js, err) + logger.Warningf("grpc: unmarshalling service config %s: %v", js, err) return &serviceconfig.ParseResult{Err: err} } sc := ServiceConfig{ @@ -183,12 +186,12 @@ func parseServiceConfig(js string) *serviceconfig.ParseResult { } c := rsc.LoadBalancingConfig if c == nil { - name := PickFirstBalancerName + name := pickfirst.Name if rsc.LoadBalancingPolicy != nil { name = *rsc.LoadBalancingPolicy } if balancer.Get(name) == nil { - name = PickFirstBalancerName + name = pickfirst.Name } cfg := []map[string]any{{name: struct{}{}}} strCfg, err := json.Marshal(cfg) @@ -218,8 +221,8 @@ func parseServiceConfig(js string) *serviceconfig.ParseResult { WaitForReady: m.WaitForReady, Timeout: (*time.Duration)(m.Timeout), } - if mc.RetryPolicy, err = convertRetryPolicy(m.RetryPolicy); err != nil { - logger.Warningf("grpc: unmarshaling service config %s: %v", js, err) + if mc.RetryPolicy, err = convertRetryPolicy(m.RetryPolicy, maxAttempts); err != nil { + logger.Warningf("grpc: unmarshalling service config %s: %v", js, err) return &serviceconfig.ParseResult{Err: err} } if m.MaxRequestMessageBytes != nil { @@ -239,13 +242,13 @@ func parseServiceConfig(js string) *serviceconfig.ParseResult { for i, n := range *m.Name { path, err := n.generatePath() if err != nil { - logger.Warningf("grpc: error unmarshaling service config %s due to methodConfig[%d]: %v", js, i, err) + logger.Warningf("grpc: error unmarshalling service config %s due to methodConfig[%d]: %v", js, i, err) return &serviceconfig.ParseResult{Err: err} } if _, ok := paths[path]; ok { err = errDuplicatedName - logger.Warningf("grpc: error unmarshaling service config %s due to methodConfig[%d]: %v", js, i, err) + logger.Warningf("grpc: error unmarshalling service config %s due to methodConfig[%d]: %v", js, i, err) return &serviceconfig.ParseResult{Err: err} } paths[path] = struct{}{} @@ -264,7 +267,7 @@ func parseServiceConfig(js string) *serviceconfig.ParseResult { return &serviceconfig.ParseResult{Config: &sc} } -func convertRetryPolicy(jrp *jsonRetryPolicy) (p *internalserviceconfig.RetryPolicy, err error) { +func convertRetryPolicy(jrp *jsonRetryPolicy, maxAttempts int) (p *internalserviceconfig.RetryPolicy, err error) { if jrp == nil { return nil, nil } @@ -278,17 +281,16 @@ func convertRetryPolicy(jrp *jsonRetryPolicy) (p *internalserviceconfig.RetryPol return nil, nil } + if jrp.MaxAttempts < maxAttempts { + maxAttempts = jrp.MaxAttempts + } rp := &internalserviceconfig.RetryPolicy{ - MaxAttempts: jrp.MaxAttempts, + MaxAttempts: maxAttempts, InitialBackoff: time.Duration(jrp.InitialBackoff), MaxBackoff: time.Duration(jrp.MaxBackoff), BackoffMultiplier: jrp.BackoffMultiplier, RetryableStatusCodes: make(map[codes.Code]bool), } - if rp.MaxAttempts > 5 { - // TODO(retry): Make the max maxAttempts configurable. - rp.MaxAttempts = 5 - } for _, code := range jrp.RetryableStatusCodes { rp.RetryableStatusCodes[code] = true } diff --git a/vendor/google.golang.org/grpc/shared_buffer_pool.go b/vendor/google.golang.org/grpc/shared_buffer_pool.go deleted file mode 100644 index 48a64cfe8e25..000000000000 --- a/vendor/google.golang.org/grpc/shared_buffer_pool.go +++ /dev/null @@ -1,154 +0,0 @@ -/* - * - * Copyright 2023 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package grpc - -import "sync" - -// SharedBufferPool is a pool of buffers that can be shared, resulting in -// decreased memory allocation. Currently, in gRPC-go, it is only utilized -// for parsing incoming messages. -// -// # Experimental -// -// Notice: This API is EXPERIMENTAL and may be changed or removed in a -// later release. -type SharedBufferPool interface { - // Get returns a buffer with specified length from the pool. - // - // The returned byte slice may be not zero initialized. - Get(length int) []byte - - // Put returns a buffer to the pool. - Put(*[]byte) -} - -// NewSharedBufferPool creates a simple SharedBufferPool with buckets -// of different sizes to optimize memory usage. This prevents the pool from -// wasting large amounts of memory, even when handling messages of varying sizes. -// -// # Experimental -// -// Notice: This API is EXPERIMENTAL and may be changed or removed in a -// later release. -func NewSharedBufferPool() SharedBufferPool { - return &simpleSharedBufferPool{ - pools: [poolArraySize]simpleSharedBufferChildPool{ - newBytesPool(level0PoolMaxSize), - newBytesPool(level1PoolMaxSize), - newBytesPool(level2PoolMaxSize), - newBytesPool(level3PoolMaxSize), - newBytesPool(level4PoolMaxSize), - newBytesPool(0), - }, - } -} - -// simpleSharedBufferPool is a simple implementation of SharedBufferPool. -type simpleSharedBufferPool struct { - pools [poolArraySize]simpleSharedBufferChildPool -} - -func (p *simpleSharedBufferPool) Get(size int) []byte { - return p.pools[p.poolIdx(size)].Get(size) -} - -func (p *simpleSharedBufferPool) Put(bs *[]byte) { - p.pools[p.poolIdx(cap(*bs))].Put(bs) -} - -func (p *simpleSharedBufferPool) poolIdx(size int) int { - switch { - case size <= level0PoolMaxSize: - return level0PoolIdx - case size <= level1PoolMaxSize: - return level1PoolIdx - case size <= level2PoolMaxSize: - return level2PoolIdx - case size <= level3PoolMaxSize: - return level3PoolIdx - case size <= level4PoolMaxSize: - return level4PoolIdx - default: - return levelMaxPoolIdx - } -} - -const ( - level0PoolMaxSize = 16 // 16 B - level1PoolMaxSize = level0PoolMaxSize * 16 // 256 B - level2PoolMaxSize = level1PoolMaxSize * 16 // 4 KB - level3PoolMaxSize = level2PoolMaxSize * 16 // 64 KB - level4PoolMaxSize = level3PoolMaxSize * 16 // 1 MB -) - -const ( - level0PoolIdx = iota - level1PoolIdx - level2PoolIdx - level3PoolIdx - level4PoolIdx - levelMaxPoolIdx - poolArraySize -) - -type simpleSharedBufferChildPool interface { - Get(size int) []byte - Put(any) -} - -type bufferPool struct { - sync.Pool - - defaultSize int -} - -func (p *bufferPool) Get(size int) []byte { - bs := p.Pool.Get().(*[]byte) - - if cap(*bs) < size { - p.Pool.Put(bs) - - return make([]byte, size) - } - - return (*bs)[:size] -} - -func newBytesPool(size int) simpleSharedBufferChildPool { - return &bufferPool{ - Pool: sync.Pool{ - New: func() any { - bs := make([]byte, size) - return &bs - }, - }, - defaultSize: size, - } -} - -// nopBufferPool is a buffer pool just makes new buffer without pooling. -type nopBufferPool struct { -} - -func (nopBufferPool) Get(length int) []byte { - return make([]byte, length) -} - -func (nopBufferPool) Put(*[]byte) { -} diff --git a/vendor/google.golang.org/grpc/stats/stats.go b/vendor/google.golang.org/grpc/stats/stats.go index 4ab70e2d462a..71195c4943d7 100644 --- a/vendor/google.golang.org/grpc/stats/stats.go +++ b/vendor/google.golang.org/grpc/stats/stats.go @@ -73,10 +73,10 @@ func (*PickerUpdated) isRPCStats() {} type InPayload struct { // Client is true if this InPayload is from client side. Client bool - // Payload is the payload with original type. + // Payload is the payload with original type. This may be modified after + // the call to HandleRPC which provides the InPayload returns and must be + // copied if needed later. Payload any - // Data is the serialized message payload. - Data []byte // Length is the size of the uncompressed payload data. Does not include any // framing (gRPC or HTTP/2). @@ -143,10 +143,10 @@ func (s *InTrailer) isRPCStats() {} type OutPayload struct { // Client is true if this OutPayload is from client side. Client bool - // Payload is the payload with original type. + // Payload is the payload with original type. This may be modified after + // the call to HandleRPC which provides the OutPayload returns and must be + // copied if needed later. Payload any - // Data is the serialized message payload. - Data []byte // Length is the size of the uncompressed payload data. Does not include any // framing (gRPC or HTTP/2). Length int diff --git a/vendor/google.golang.org/grpc/stream.go b/vendor/google.golang.org/grpc/stream.go index d939ffc63489..bb2b2a216ce2 100644 --- a/vendor/google.golang.org/grpc/stream.go +++ b/vendor/google.golang.org/grpc/stream.go @@ -23,6 +23,7 @@ import ( "errors" "io" "math" + "math/rand" "strconv" "sync" "time" @@ -34,13 +35,13 @@ import ( "google.golang.org/grpc/internal/balancerload" "google.golang.org/grpc/internal/binarylog" "google.golang.org/grpc/internal/channelz" - "google.golang.org/grpc/internal/grpcrand" "google.golang.org/grpc/internal/grpcutil" imetadata "google.golang.org/grpc/internal/metadata" iresolver "google.golang.org/grpc/internal/resolver" "google.golang.org/grpc/internal/serviceconfig" istatus "google.golang.org/grpc/internal/status" "google.golang.org/grpc/internal/transport" + "google.golang.org/grpc/mem" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" "google.golang.org/grpc/stats" @@ -359,7 +360,7 @@ func newClientStreamWithParams(ctx context.Context, desc *StreamDesc, cc *Client cs.attempt = a return nil } - if err := cs.withRetry(op, func() { cs.bufferForRetryLocked(0, op) }); err != nil { + if err := cs.withRetry(op, func() { cs.bufferForRetryLocked(0, op, nil) }); err != nil { return nil, err } @@ -516,7 +517,8 @@ func (a *csAttempt) newStream() error { return toRPCErr(nse.Err) } a.s = s - a.p = &parser{r: s, recvBufferPool: a.cs.cc.dopts.recvBufferPool} + a.ctx = s.Context() + a.p = &parser{r: s, bufferPool: a.cs.cc.dopts.copts.BufferPool} return nil } @@ -565,10 +567,15 @@ type clientStream struct { // place where we need to check if the attempt is nil. attempt *csAttempt // TODO(hedging): hedging will have multiple attempts simultaneously. - committed bool // active attempt committed for retry? - onCommit func() - buffer []func(a *csAttempt) error // operations to replay on retry - bufferSize int // current size of buffer + committed bool // active attempt committed for retry? + onCommit func() + replayBuffer []replayOp // operations to replay on retry + replayBufferSize int // current size of replayBuffer +} + +type replayOp struct { + op func(a *csAttempt) error + cleanup func() } // csAttempt implements a single transport stream attempt within a @@ -606,7 +613,12 @@ func (cs *clientStream) commitAttemptLocked() { cs.onCommit() } cs.committed = true - cs.buffer = nil + for _, op := range cs.replayBuffer { + if op.cleanup != nil { + op.cleanup() + } + } + cs.replayBuffer = nil } func (cs *clientStream) commitAttempt() { @@ -698,7 +710,7 @@ func (a *csAttempt) shouldRetry(err error) (bool, error) { if max := float64(rp.MaxBackoff); cur > max { cur = max } - dur = time.Duration(grpcrand.Int63n(int64(cur))) + dur = time.Duration(rand.Int63n(int64(cur))) cs.numRetriesSincePushback++ } @@ -731,7 +743,7 @@ func (cs *clientStream) retryLocked(attempt *csAttempt, lastErr error) error { // the stream is canceled. return err } - // Note that the first op in the replay buffer always sets cs.attempt + // Note that the first op in replayBuffer always sets cs.attempt // if it is able to pick a transport and create a stream. if lastErr = cs.replayBufferLocked(attempt); lastErr == nil { return nil @@ -760,7 +772,7 @@ func (cs *clientStream) withRetry(op func(a *csAttempt) error, onSuccess func()) // already be status errors. return toRPCErr(op(cs.attempt)) } - if len(cs.buffer) == 0 { + if len(cs.replayBuffer) == 0 { // For the first op, which controls creation of the stream and // assigns cs.attempt, we need to create a new attempt inline // before executing the first op. On subsequent ops, the attempt @@ -850,25 +862,26 @@ func (cs *clientStream) Trailer() metadata.MD { } func (cs *clientStream) replayBufferLocked(attempt *csAttempt) error { - for _, f := range cs.buffer { - if err := f(attempt); err != nil { + for _, f := range cs.replayBuffer { + if err := f.op(attempt); err != nil { return err } } return nil } -func (cs *clientStream) bufferForRetryLocked(sz int, op func(a *csAttempt) error) { +func (cs *clientStream) bufferForRetryLocked(sz int, op func(a *csAttempt) error, cleanup func()) { // Note: we still will buffer if retry is disabled (for transparent retries). if cs.committed { return } - cs.bufferSize += sz - if cs.bufferSize > cs.callInfo.maxRetryRPCBufferSize { + cs.replayBufferSize += sz + if cs.replayBufferSize > cs.callInfo.maxRetryRPCBufferSize { cs.commitAttemptLocked() + cleanup() return } - cs.buffer = append(cs.buffer, op) + cs.replayBuffer = append(cs.replayBuffer, replayOp{op: op, cleanup: cleanup}) } func (cs *clientStream) SendMsg(m any) (err error) { @@ -890,23 +903,50 @@ func (cs *clientStream) SendMsg(m any) (err error) { } // load hdr, payload, data - hdr, payload, data, err := prepareMsg(m, cs.codec, cs.cp, cs.comp) + hdr, data, payload, pf, err := prepareMsg(m, cs.codec, cs.cp, cs.comp, cs.cc.dopts.copts.BufferPool) if err != nil { return err } + defer func() { + data.Free() + // only free payload if compression was made, and therefore it is a different set + // of buffers from data. + if pf.isCompressed() { + payload.Free() + } + }() + + dataLen := data.Len() + payloadLen := payload.Len() // TODO(dfawley): should we be checking len(data) instead? - if len(payload) > *cs.callInfo.maxSendMessageSize { - return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", len(payload), *cs.callInfo.maxSendMessageSize) + if payloadLen > *cs.callInfo.maxSendMessageSize { + return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", payloadLen, *cs.callInfo.maxSendMessageSize) } + + // always take an extra ref in case data == payload (i.e. when the data isn't + // compressed). The original ref will always be freed by the deferred free above. + payload.Ref() op := func(a *csAttempt) error { - return a.sendMsg(m, hdr, payload, data) + return a.sendMsg(m, hdr, payload, dataLen, payloadLen) + } + + // onSuccess is invoked when the op is captured for a subsequent retry. If the + // stream was established by a previous message and therefore retries are + // disabled, onSuccess will not be invoked, and payloadRef can be freed + // immediately. + onSuccessCalled := false + err = cs.withRetry(op, func() { + cs.bufferForRetryLocked(len(hdr)+payloadLen, op, payload.Free) + onSuccessCalled = true + }) + if !onSuccessCalled { + payload.Free() } - err = cs.withRetry(op, func() { cs.bufferForRetryLocked(len(hdr)+len(payload), op) }) if len(cs.binlogs) != 0 && err == nil { cm := &binarylog.ClientMessage{ OnClientSide: true, - Message: data, + Message: data.Materialize(), } for _, binlog := range cs.binlogs { binlog.Log(cs.ctx, cm) @@ -923,6 +963,7 @@ func (cs *clientStream) RecvMsg(m any) error { var recvInfo *payloadInfo if len(cs.binlogs) != 0 { recvInfo = &payloadInfo{} + defer recvInfo.free() } err := cs.withRetry(func(a *csAttempt) error { return a.recvMsg(m, recvInfo) @@ -930,7 +971,7 @@ func (cs *clientStream) RecvMsg(m any) error { if len(cs.binlogs) != 0 && err == nil { sm := &binarylog.ServerMessage{ OnClientSide: true, - Message: recvInfo.uncompressedBytes, + Message: recvInfo.uncompressedBytes.Materialize(), } for _, binlog := range cs.binlogs { binlog.Log(cs.ctx, sm) @@ -957,7 +998,7 @@ func (cs *clientStream) CloseSend() error { // RecvMsg. This also matches historical behavior. return nil } - cs.withRetry(op, func() { cs.bufferForRetryLocked(0, op) }) + cs.withRetry(op, func() { cs.bufferForRetryLocked(0, op, nil) }) if len(cs.binlogs) != 0 { chc := &binarylog.ClientHalfClose{ OnClientSide: true, @@ -1033,7 +1074,7 @@ func (cs *clientStream) finish(err error) { cs.cancel() } -func (a *csAttempt) sendMsg(m any, hdr, payld, data []byte) error { +func (a *csAttempt) sendMsg(m any, hdr []byte, payld mem.BufferSlice, dataLength, payloadLength int) error { cs := a.cs if a.trInfo != nil { a.mu.Lock() @@ -1051,8 +1092,10 @@ func (a *csAttempt) sendMsg(m any, hdr, payld, data []byte) error { } return io.EOF } - for _, sh := range a.statsHandlers { - sh.HandleRPC(a.ctx, outPayload(true, m, data, payld, time.Now())) + if len(a.statsHandlers) != 0 { + for _, sh := range a.statsHandlers { + sh.HandleRPC(a.ctx, outPayload(true, m, dataLength, payloadLength, time.Now())) + } } if channelz.IsOn() { a.t.IncrMsgSent() @@ -1064,6 +1107,7 @@ func (a *csAttempt) recvMsg(m any, payInfo *payloadInfo) (err error) { cs := a.cs if len(a.statsHandlers) != 0 && payInfo == nil { payInfo = &payloadInfo{} + defer payInfo.free() } if !a.decompSet { @@ -1082,8 +1126,7 @@ func (a *csAttempt) recvMsg(m any, payInfo *payloadInfo) (err error) { // Only initialize this state once per stream. a.decompSet = true } - err = recv(a.p, cs.codec, a.s, a.dc, m, *cs.callInfo.maxReceiveMessageSize, payInfo, a.decomp) - if err != nil { + if err := recv(a.p, cs.codec, a.s, a.dc, m, *cs.callInfo.maxReceiveMessageSize, payInfo, a.decomp, false); err != nil { if err == io.EOF { if statusErr := a.s.Status().Err(); statusErr != nil { return statusErr @@ -1102,14 +1145,12 @@ func (a *csAttempt) recvMsg(m any, payInfo *payloadInfo) (err error) { } for _, sh := range a.statsHandlers { sh.HandleRPC(a.ctx, &stats.InPayload{ - Client: true, - RecvTime: time.Now(), - Payload: m, - // TODO truncate large payload. - Data: payInfo.uncompressedBytes, + Client: true, + RecvTime: time.Now(), + Payload: m, WireLength: payInfo.compressedLength + headerLen, CompressedLength: payInfo.compressedLength, - Length: len(payInfo.uncompressedBytes), + Length: payInfo.uncompressedBytes.Len(), }) } if channelz.IsOn() { @@ -1121,14 +1162,12 @@ func (a *csAttempt) recvMsg(m any, payInfo *payloadInfo) (err error) { } // Special handling for non-server-stream rpcs. // This recv expects EOF or errors, so we don't collect inPayload. - err = recv(a.p, cs.codec, a.s, a.dc, m, *cs.callInfo.maxReceiveMessageSize, nil, a.decomp) - if err == nil { - return toRPCErr(errors.New("grpc: client streaming protocol violation: get , want ")) - } - if err == io.EOF { + if err := recv(a.p, cs.codec, a.s, a.dc, m, *cs.callInfo.maxReceiveMessageSize, nil, a.decomp, false); err == io.EOF { return a.s.Status().Err() // non-server streaming Recv returns nil on success + } else if err != nil { + return toRPCErr(err) } - return toRPCErr(err) + return toRPCErr(errors.New("grpc: client streaming protocol violation: get , want ")) } func (a *csAttempt) finish(err error) { @@ -1184,12 +1223,12 @@ func (a *csAttempt) finish(err error) { a.mu.Unlock() } -// newClientStream creates a ClientStream with the specified transport, on the +// newNonRetryClientStream creates a ClientStream with the specified transport, on the // given addrConn. // // It's expected that the given transport is either the same one in addrConn, or // is already closed. To avoid race, transport is specified separately, instead -// of using ac.transpot. +// of using ac.transport. // // Main difference between this and ClientConn.NewStream: // - no retry @@ -1275,7 +1314,7 @@ func newNonRetryClientStream(ctx context.Context, desc *StreamDesc, method strin return nil, err } as.s = s - as.p = &parser{r: s, recvBufferPool: ac.dopts.recvBufferPool} + as.p = &parser{r: s, bufferPool: ac.dopts.copts.BufferPool} ac.incrCallsStarted() if desc != unaryStreamDesc { // Listen on stream context to cleanup when the stream context is @@ -1372,17 +1411,26 @@ func (as *addrConnStream) SendMsg(m any) (err error) { } // load hdr, payload, data - hdr, payld, _, err := prepareMsg(m, as.codec, as.cp, as.comp) + hdr, data, payload, pf, err := prepareMsg(m, as.codec, as.cp, as.comp, as.ac.dopts.copts.BufferPool) if err != nil { return err } + defer func() { + data.Free() + // only free payload if compression was made, and therefore it is a different set + // of buffers from data. + if pf.isCompressed() { + payload.Free() + } + }() + // TODO(dfawley): should we be checking len(data) instead? - if len(payld) > *as.callInfo.maxSendMessageSize { - return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", len(payld), *as.callInfo.maxSendMessageSize) + if payload.Len() > *as.callInfo.maxSendMessageSize { + return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", payload.Len(), *as.callInfo.maxSendMessageSize) } - if err := as.t.Write(as.s, hdr, payld, &transport.Options{Last: !as.desc.ClientStreams}); err != nil { + if err := as.t.Write(as.s, hdr, payload, &transport.Options{Last: !as.desc.ClientStreams}); err != nil { if !as.desc.ClientStreams { // For non-client-streaming RPCs, we return nil instead of EOF on error // because the generated code requires it. finish is not called; RecvMsg() @@ -1422,8 +1470,7 @@ func (as *addrConnStream) RecvMsg(m any) (err error) { // Only initialize this state once per stream. as.decompSet = true } - err = recv(as.p, as.codec, as.s, as.dc, m, *as.callInfo.maxReceiveMessageSize, nil, as.decomp) - if err != nil { + if err := recv(as.p, as.codec, as.s, as.dc, m, *as.callInfo.maxReceiveMessageSize, nil, as.decomp, false); err != nil { if err == io.EOF { if statusErr := as.s.Status().Err(); statusErr != nil { return statusErr @@ -1443,14 +1490,12 @@ func (as *addrConnStream) RecvMsg(m any) (err error) { // Special handling for non-server-stream rpcs. // This recv expects EOF or errors, so we don't collect inPayload. - err = recv(as.p, as.codec, as.s, as.dc, m, *as.callInfo.maxReceiveMessageSize, nil, as.decomp) - if err == nil { - return toRPCErr(errors.New("grpc: client streaming protocol violation: get , want ")) - } - if err == io.EOF { + if err := recv(as.p, as.codec, as.s, as.dc, m, *as.callInfo.maxReceiveMessageSize, nil, as.decomp, false); err == io.EOF { return as.s.Status().Err() // non-server streaming Recv returns nil on success + } else if err != nil { + return toRPCErr(err) } - return toRPCErr(err) + return toRPCErr(errors.New("grpc: client streaming protocol violation: get , want ")) } func (as *addrConnStream) finish(err error) { @@ -1644,18 +1689,31 @@ func (ss *serverStream) SendMsg(m any) (err error) { } // load hdr, payload, data - hdr, payload, data, err := prepareMsg(m, ss.codec, ss.cp, ss.comp) + hdr, data, payload, pf, err := prepareMsg(m, ss.codec, ss.cp, ss.comp, ss.p.bufferPool) if err != nil { return err } + defer func() { + data.Free() + // only free payload if compression was made, and therefore it is a different set + // of buffers from data. + if pf.isCompressed() { + payload.Free() + } + }() + + dataLen := data.Len() + payloadLen := payload.Len() + // TODO(dfawley): should we be checking len(data) instead? - if len(payload) > ss.maxSendMessageSize { - return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", len(payload), ss.maxSendMessageSize) + if payloadLen > ss.maxSendMessageSize { + return status.Errorf(codes.ResourceExhausted, "trying to send message larger than max (%d vs. %d)", payloadLen, ss.maxSendMessageSize) } if err := ss.t.Write(ss.s, hdr, payload, &transport.Options{Last: false}); err != nil { return toRPCErr(err) } + if len(ss.binlogs) != 0 { if !ss.serverHeaderBinlogged { h, _ := ss.s.Header() @@ -1668,7 +1726,7 @@ func (ss *serverStream) SendMsg(m any) (err error) { } } sm := &binarylog.ServerMessage{ - Message: data, + Message: data.Materialize(), } for _, binlog := range ss.binlogs { binlog.Log(ss.ctx, sm) @@ -1676,7 +1734,7 @@ func (ss *serverStream) SendMsg(m any) (err error) { } if len(ss.statsHandler) != 0 { for _, sh := range ss.statsHandler { - sh.HandleRPC(ss.s.Context(), outPayload(false, m, data, payload, time.Now())) + sh.HandleRPC(ss.s.Context(), outPayload(false, m, dataLen, payloadLen, time.Now())) } } return nil @@ -1713,8 +1771,9 @@ func (ss *serverStream) RecvMsg(m any) (err error) { var payInfo *payloadInfo if len(ss.statsHandler) != 0 || len(ss.binlogs) != 0 { payInfo = &payloadInfo{} + defer payInfo.free() } - if err := recv(ss.p, ss.codec, ss.s, ss.dc, m, ss.maxReceiveMessageSize, payInfo, ss.decomp); err != nil { + if err := recv(ss.p, ss.codec, ss.s, ss.dc, m, ss.maxReceiveMessageSize, payInfo, ss.decomp, true); err != nil { if err == io.EOF { if len(ss.binlogs) != 0 { chc := &binarylog.ClientHalfClose{} @@ -1732,11 +1791,9 @@ func (ss *serverStream) RecvMsg(m any) (err error) { if len(ss.statsHandler) != 0 { for _, sh := range ss.statsHandler { sh.HandleRPC(ss.s.Context(), &stats.InPayload{ - RecvTime: time.Now(), - Payload: m, - // TODO truncate large payload. - Data: payInfo.uncompressedBytes, - Length: len(payInfo.uncompressedBytes), + RecvTime: time.Now(), + Payload: m, + Length: payInfo.uncompressedBytes.Len(), WireLength: payInfo.compressedLength + headerLen, CompressedLength: payInfo.compressedLength, }) @@ -1744,7 +1801,7 @@ func (ss *serverStream) RecvMsg(m any) (err error) { } if len(ss.binlogs) != 0 { cm := &binarylog.ClientMessage{ - Message: payInfo.uncompressedBytes, + Message: payInfo.uncompressedBytes.Materialize(), } for _, binlog := range ss.binlogs { binlog.Log(ss.ctx, cm) @@ -1759,23 +1816,26 @@ func MethodFromServerStream(stream ServerStream) (string, bool) { return Method(stream.Context()) } -// prepareMsg returns the hdr, payload and data -// using the compressors passed or using the -// passed preparedmsg -func prepareMsg(m any, codec baseCodec, cp Compressor, comp encoding.Compressor) (hdr, payload, data []byte, err error) { +// prepareMsg returns the hdr, payload and data using the compressors passed or +// using the passed preparedmsg. The returned boolean indicates whether +// compression was made and therefore whether the payload needs to be freed in +// addition to the returned data. Freeing the payload if the returned boolean is +// false can lead to undefined behavior. +func prepareMsg(m any, codec baseCodec, cp Compressor, comp encoding.Compressor, pool mem.BufferPool) (hdr []byte, data, payload mem.BufferSlice, pf payloadFormat, err error) { if preparedMsg, ok := m.(*PreparedMsg); ok { - return preparedMsg.hdr, preparedMsg.payload, preparedMsg.encodedData, nil + return preparedMsg.hdr, preparedMsg.encodedData, preparedMsg.payload, preparedMsg.pf, nil } // The input interface is not a prepared msg. // Marshal and Compress the data at this point data, err = encode(codec, m) if err != nil { - return nil, nil, nil, err + return nil, nil, nil, 0, err } - compData, err := compress(data, cp, comp) + compData, pf, err := compress(data, cp, comp, pool) if err != nil { - return nil, nil, nil, err + data.Free() + return nil, nil, nil, 0, err } - hdr, payload = msgHeader(data, compData) - return hdr, payload, data, nil + hdr, payload = msgHeader(data, compData, pf) + return hdr, data, payload, pf, nil } diff --git a/vendor/google.golang.org/grpc/stream_interfaces.go b/vendor/google.golang.org/grpc/stream_interfaces.go new file mode 100644 index 000000000000..0037fee0bd71 --- /dev/null +++ b/vendor/google.golang.org/grpc/stream_interfaces.go @@ -0,0 +1,238 @@ +/* + * + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package grpc + +// ServerStreamingClient represents the client side of a server-streaming (one +// request, many responses) RPC. It is generic over the type of the response +// message. It is used in generated code. +type ServerStreamingClient[Res any] interface { + // Recv receives the next response message from the server. The client may + // repeatedly call Recv to read messages from the response stream. If + // io.EOF is returned, the stream has terminated with an OK status. Any + // other error is compatible with the status package and indicates the + // RPC's status code and message. + Recv() (*Res, error) + + // ClientStream is embedded to provide Context, Header, and Trailer + // functionality. No other methods in the ClientStream should be called + // directly. + ClientStream +} + +// ServerStreamingServer represents the server side of a server-streaming (one +// request, many responses) RPC. It is generic over the type of the response +// message. It is used in generated code. +// +// To terminate the response stream, return from the handler method and return +// an error from the status package, or use nil to indicate an OK status code. +type ServerStreamingServer[Res any] interface { + // Send sends a response message to the client. The server handler may + // call Send multiple times to send multiple messages to the client. An + // error is returned if the stream was terminated unexpectedly, and the + // handler method should return, as the stream is no longer usable. + Send(*Res) error + + // ServerStream is embedded to provide Context, SetHeader, SendHeader, and + // SetTrailer functionality. No other methods in the ServerStream should + // be called directly. + ServerStream +} + +// ClientStreamingClient represents the client side of a client-streaming (many +// requests, one response) RPC. It is generic over both the type of the request +// message stream and the type of the unary response message. It is used in +// generated code. +type ClientStreamingClient[Req any, Res any] interface { + // Send sends a request message to the server. The client may call Send + // multiple times to send multiple messages to the server. On error, Send + // aborts the stream. If the error was generated by the client, the status + // is returned directly. Otherwise, io.EOF is returned, and the status of + // the stream may be discovered using CloseAndRecv(). + Send(*Req) error + + // CloseAndRecv closes the request stream and waits for the server's + // response. This method must be called once and only once after sending + // all request messages. Any error returned is implemented by the status + // package. + CloseAndRecv() (*Res, error) + + // ClientStream is embedded to provide Context, Header, and Trailer + // functionality. No other methods in the ClientStream should be called + // directly. + ClientStream +} + +// ClientStreamingServer represents the server side of a client-streaming (many +// requests, one response) RPC. It is generic over both the type of the request +// message stream and the type of the unary response message. It is used in +// generated code. +// +// To terminate the RPC, call SendAndClose and return nil from the method +// handler or do not call SendAndClose and return an error from the status +// package. +type ClientStreamingServer[Req any, Res any] interface { + // Recv receives the next request message from the client. The server may + // repeatedly call Recv to read messages from the request stream. If + // io.EOF is returned, it indicates the client called CloseAndRecv on its + // ClientStreamingClient. Any other error indicates the stream was + // terminated unexpectedly, and the handler method should return, as the + // stream is no longer usable. + Recv() (*Req, error) + + // SendAndClose sends a single response message to the client and closes + // the stream. This method must be called once and only once after all + // request messages have been processed. Recv should not be called after + // calling SendAndClose. + SendAndClose(*Res) error + + // ServerStream is embedded to provide Context, SetHeader, SendHeader, and + // SetTrailer functionality. No other methods in the ServerStream should + // be called directly. + ServerStream +} + +// BidiStreamingClient represents the client side of a bidirectional-streaming +// (many requests, many responses) RPC. It is generic over both the type of the +// request message stream and the type of the response message stream. It is +// used in generated code. +type BidiStreamingClient[Req any, Res any] interface { + // Send sends a request message to the server. The client may call Send + // multiple times to send multiple messages to the server. On error, Send + // aborts the stream. If the error was generated by the client, the status + // is returned directly. Otherwise, io.EOF is returned, and the status of + // the stream may be discovered using Recv(). + Send(*Req) error + + // Recv receives the next response message from the server. The client may + // repeatedly call Recv to read messages from the response stream. If + // io.EOF is returned, the stream has terminated with an OK status. Any + // other error is compatible with the status package and indicates the + // RPC's status code and message. + Recv() (*Res, error) + + // ClientStream is embedded to provide Context, Header, Trailer, and + // CloseSend functionality. No other methods in the ClientStream should be + // called directly. + ClientStream +} + +// BidiStreamingServer represents the server side of a bidirectional-streaming +// (many requests, many responses) RPC. It is generic over both the type of the +// request message stream and the type of the response message stream. It is +// used in generated code. +// +// To terminate the stream, return from the handler method and return +// an error from the status package, or use nil to indicate an OK status code. +type BidiStreamingServer[Req any, Res any] interface { + // Recv receives the next request message from the client. The server may + // repeatedly call Recv to read messages from the request stream. If + // io.EOF is returned, it indicates the client called CloseSend on its + // BidiStreamingClient. Any other error indicates the stream was + // terminated unexpectedly, and the handler method should return, as the + // stream is no longer usable. + Recv() (*Req, error) + + // Send sends a response message to the client. The server handler may + // call Send multiple times to send multiple messages to the client. An + // error is returned if the stream was terminated unexpectedly, and the + // handler method should return, as the stream is no longer usable. + Send(*Res) error + + // ServerStream is embedded to provide Context, SetHeader, SendHeader, and + // SetTrailer functionality. No other methods in the ServerStream should + // be called directly. + ServerStream +} + +// GenericClientStream implements the ServerStreamingClient, ClientStreamingClient, +// and BidiStreamingClient interfaces. It is used in generated code. +type GenericClientStream[Req any, Res any] struct { + ClientStream +} + +var _ ServerStreamingClient[string] = (*GenericClientStream[int, string])(nil) +var _ ClientStreamingClient[int, string] = (*GenericClientStream[int, string])(nil) +var _ BidiStreamingClient[int, string] = (*GenericClientStream[int, string])(nil) + +// Send pushes one message into the stream of requests to be consumed by the +// server. The type of message which can be sent is determined by the Req type +// parameter of the GenericClientStream receiver. +func (x *GenericClientStream[Req, Res]) Send(m *Req) error { + return x.ClientStream.SendMsg(m) +} + +// Recv reads one message from the stream of responses generated by the server. +// The type of the message returned is determined by the Res type parameter +// of the GenericClientStream receiver. +func (x *GenericClientStream[Req, Res]) Recv() (*Res, error) { + m := new(Res) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// CloseAndRecv closes the sending side of the stream, then receives the unary +// response from the server. The type of message which it returns is determined +// by the Res type parameter of the GenericClientStream receiver. +func (x *GenericClientStream[Req, Res]) CloseAndRecv() (*Res, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(Res) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// GenericServerStream implements the ServerStreamingServer, ClientStreamingServer, +// and BidiStreamingServer interfaces. It is used in generated code. +type GenericServerStream[Req any, Res any] struct { + ServerStream +} + +var _ ServerStreamingServer[string] = (*GenericServerStream[int, string])(nil) +var _ ClientStreamingServer[int, string] = (*GenericServerStream[int, string])(nil) +var _ BidiStreamingServer[int, string] = (*GenericServerStream[int, string])(nil) + +// Send pushes one message into the stream of responses to be consumed by the +// client. The type of message which can be sent is determined by the Res +// type parameter of the serverStreamServer receiver. +func (x *GenericServerStream[Req, Res]) Send(m *Res) error { + return x.ServerStream.SendMsg(m) +} + +// SendAndClose pushes the unary response to the client. The type of message +// which can be sent is determined by the Res type parameter of the +// clientStreamServer receiver. +func (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error { + return x.ServerStream.SendMsg(m) +} + +// Recv reads one message from the stream of requests generated by the client. +// The type of the message returned is determined by the Req type parameter +// of the clientStreamServer receiver. +func (x *GenericServerStream[Req, Res]) Recv() (*Req, error) { + m := new(Req) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} diff --git a/vendor/google.golang.org/grpc/version.go b/vendor/google.golang.org/grpc/version.go index 2556f7583867..a96b6a6bff8e 100644 --- a/vendor/google.golang.org/grpc/version.go +++ b/vendor/google.golang.org/grpc/version.go @@ -19,4 +19,4 @@ package grpc // Version is the current grpc version. -const Version = "1.63.2" +const Version = "1.67.1" diff --git a/vendor/google.golang.org/grpc/vet.sh b/vendor/google.golang.org/grpc/vet.sh deleted file mode 100644 index 7e6b92e491ab..000000000000 --- a/vendor/google.golang.org/grpc/vet.sh +++ /dev/null @@ -1,195 +0,0 @@ -#!/bin/bash - -set -ex # Exit on error; debugging enabled. -set -o pipefail # Fail a pipe if any sub-command fails. - -# not makes sure the command passed to it does not exit with a return code of 0. -not() { - # This is required instead of the earlier (! $COMMAND) because subshells and - # pipefail don't work the same on Darwin as in Linux. - ! "$@" -} - -die() { - echo "$@" >&2 - exit 1 -} - -fail_on_output() { - tee /dev/stderr | not read -} - -# Check to make sure it's safe to modify the user's git repo. -git status --porcelain | fail_on_output - -# Undo any edits made by this script. -cleanup() { - git reset --hard HEAD -} -trap cleanup EXIT - -PATH="${HOME}/go/bin:${GOROOT}/bin:${PATH}" -go version - -if [[ "$1" = "-install" ]]; then - # Install the pinned versions as defined in module tools. - pushd ./test/tools - go install \ - golang.org/x/tools/cmd/goimports \ - honnef.co/go/tools/cmd/staticcheck \ - github.com/client9/misspell/cmd/misspell - popd - if [[ -z "${VET_SKIP_PROTO}" ]]; then - if [[ "${GITHUB_ACTIONS}" = "true" ]]; then - PROTOBUF_VERSION=25.2 # a.k.a. v4.22.0 in pb.go files. - PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip - pushd /home/runner/go - wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME} - unzip ${PROTOC_FILENAME} - bin/protoc --version - popd - elif not which protoc > /dev/null; then - die "Please install protoc into your path" - fi - fi - exit 0 -elif [[ "$#" -ne 0 ]]; then - die "Unknown argument(s): $*" -fi - -# - Check that generated proto files are up to date. -if [[ -z "${VET_SKIP_PROTO}" ]]; then - make proto && git status --porcelain 2>&1 | fail_on_output || \ - (git status; git --no-pager diff; exit 1) -fi - -if [[ -n "${VET_ONLY_PROTO}" ]]; then - exit 0 -fi - -# - Ensure all source files contain a copyright message. -# (Done in two parts because Darwin "git grep" has broken support for compound -# exclusion matches.) -(grep -L "DO NOT EDIT" $(git grep -L "\(Copyright [0-9]\{4,\} gRPC authors\)" -- '*.go') || true) | fail_on_output - -# - Make sure all tests in grpc and grpc/test use leakcheck via Teardown. -not grep 'func Test[^(]' *_test.go -not grep 'func Test[^(]' test/*.go - -# - Check for typos in test function names -git grep 'func (s) ' -- "*_test.go" | not grep -v 'func (s) Test' -git grep 'func [A-Z]' -- "*_test.go" | not grep -v 'func Test\|Benchmark\|Example' - -# - Do not import x/net/context. -not git grep -l 'x/net/context' -- "*.go" - -# - Do not use time.After except in tests. It has the potential to leak the -# timer since there is no way to stop it early. -git grep -l 'time.After(' -- "*.go" | not grep -v '_test.go\|test_utils\|testutils' - -# - Do not import math/rand for real library code. Use internal/grpcrand for -# thread safety. -git grep -l '"math/rand"' -- "*.go" 2>&1 | not grep -v '^examples\|^interop/stress\|grpcrand\|^benchmark\|wrr_test' - -# - Do not use "interface{}"; use "any" instead. -git grep -l 'interface{}' -- "*.go" 2>&1 | not grep -v '\.pb\.go\|protoc-gen-go-grpc\|grpc_testing_not_regenerate' - -# - Do not call grpclog directly. Use grpclog.Component instead. -git grep -l -e 'grpclog.I' --or -e 'grpclog.W' --or -e 'grpclog.E' --or -e 'grpclog.F' --or -e 'grpclog.V' -- "*.go" | not grep -v '^grpclog/component.go\|^internal/grpctest/tlogger_test.go' - -# - Ensure all ptypes proto packages are renamed when importing. -not git grep "\(import \|^\s*\)\"github.com/golang/protobuf/ptypes/" -- "*.go" - -# - Ensure all usages of grpc_testing package are renamed when importing. -not git grep "\(import \|^\s*\)\"google.golang.org/grpc/interop/grpc_testing" -- "*.go" - -# - Ensure all xds proto imports are renamed to *pb or *grpc. -git grep '"github.com/envoyproxy/go-control-plane/envoy' -- '*.go' ':(exclude)*.pb.go' | not grep -v 'pb "\|grpc "' - -misspell -error . - -# - gofmt, goimports, go vet, go mod tidy. -# Perform these checks on each module inside gRPC. -for MOD_FILE in $(find . -name 'go.mod'); do - MOD_DIR=$(dirname ${MOD_FILE}) - pushd ${MOD_DIR} - go vet -all ./... | fail_on_output - gofmt -s -d -l . 2>&1 | fail_on_output - goimports -l . 2>&1 | not grep -vE "\.pb\.go" - - go mod tidy -compat=1.19 - git status --porcelain 2>&1 | fail_on_output || \ - (git status; git --no-pager diff; exit 1) - popd -done - -# - Collection of static analysis checks -SC_OUT="$(mktemp)" -staticcheck -go 1.19 -checks 'all' ./... > "${SC_OUT}" || true - -# Error for anything other than checks that need exclusions. -grep -v "(ST1000)" "${SC_OUT}" | grep -v "(SA1019)" | grep -v "(ST1003)" | not grep -v "(ST1019)\|\(other import of\)" - -# Exclude underscore checks for generated code. -grep "(ST1003)" "${SC_OUT}" | not grep -v '\(.pb.go:\)\|\(code_string_test.go:\)\|\(grpc_testing_not_regenerate\)' - -# Error for duplicate imports not including grpc protos. -grep "(ST1019)\|\(other import of\)" "${SC_OUT}" | not grep -Fv 'XXXXX PleaseIgnoreUnused -channelz/grpc_channelz_v1" -go-control-plane/envoy -grpclb/grpc_lb_v1" -health/grpc_health_v1" -interop/grpc_testing" -orca/v3" -proto/grpc_gcp" -proto/grpc_lookup_v1" -reflection/grpc_reflection_v1" -reflection/grpc_reflection_v1alpha" -XXXXX PleaseIgnoreUnused' - -# Error for any package comments not in generated code. -grep "(ST1000)" "${SC_OUT}" | not grep -v "\.pb\.go:" - -# Only ignore the following deprecated types/fields/functions and exclude -# generated code. -grep "(SA1019)" "${SC_OUT}" | not grep -Fv 'XXXXX PleaseIgnoreUnused -XXXXX Protobuf related deprecation errors: -"github.com/golang/protobuf -.pb.go: -grpc_testing_not_regenerate -: ptypes. -proto.RegisterType -XXXXX gRPC internal usage deprecation errors: -"google.golang.org/grpc -: grpc. -: v1alpha. -: v1alphareflectionpb. -BalancerAttributes is deprecated: -CredsBundle is deprecated: -Metadata is deprecated: use Attributes instead. -NewSubConn is deprecated: -OverrideServerName is deprecated: -RemoveSubConn is deprecated: -SecurityVersion is deprecated: -Target is deprecated: Use the Target field in the BuildOptions instead. -UpdateAddresses is deprecated: -UpdateSubConnState is deprecated: -balancer.ErrTransientFailure is deprecated: -grpc/reflection/v1alpha/reflection.proto -SwitchTo is deprecated: -XXXXX xDS deprecated fields we support -.ExactMatch -.PrefixMatch -.SafeRegexMatch -.SuffixMatch -GetContainsMatch -GetExactMatch -GetMatchSubjectAltNames -GetPrefixMatch -GetSafeRegexMatch -GetSuffixMatch -GetTlsCertificateCertificateProviderInstance -GetValidationContextCertificateProviderInstance -XXXXX PleaseIgnoreUnused' - -echo SUCCESS diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/decode.go b/vendor/google.golang.org/protobuf/encoding/protojson/decode.go index f47902371a64..8f9e592f8701 100644 --- a/vendor/google.golang.org/protobuf/encoding/protojson/decode.go +++ b/vendor/google.golang.org/protobuf/encoding/protojson/decode.go @@ -102,7 +102,7 @@ type decoder struct { } // newError returns an error object with position info. -func (d decoder) newError(pos int, f string, x ...interface{}) error { +func (d decoder) newError(pos int, f string, x ...any) error { line, column := d.Position(pos) head := fmt.Sprintf("(line %d:%d): ", line, column) return errors.New(head+f, x...) @@ -114,7 +114,7 @@ func (d decoder) unexpectedTokenError(tok json.Token) error { } // syntaxError returns a syntax error for given position. -func (d decoder) syntaxError(pos int, f string, x ...interface{}) error { +func (d decoder) syntaxError(pos int, f string, x ...any) error { line, column := d.Position(pos) head := fmt.Sprintf("syntax error (line %d:%d): ", line, column) return errors.New(head+f, x...) @@ -351,7 +351,7 @@ func (d decoder) unmarshalScalar(fd protoreflect.FieldDescriptor) (protoreflect. panic(fmt.Sprintf("unmarshalScalar: invalid scalar kind %v", kind)) } - return protoreflect.Value{}, d.newError(tok.Pos(), "invalid value for %v type: %v", kind, tok.RawString()) + return protoreflect.Value{}, d.newError(tok.Pos(), "invalid value for %v field %v: %v", kind, fd.JSONName(), tok.RawString()) } func unmarshalInt(tok json.Token, bitSize int) (protoreflect.Value, bool) { diff --git a/vendor/google.golang.org/protobuf/encoding/protojson/encode.go b/vendor/google.golang.org/protobuf/encoding/protojson/encode.go index 29846df222c3..0e72d85378b3 100644 --- a/vendor/google.golang.org/protobuf/encoding/protojson/encode.go +++ b/vendor/google.golang.org/protobuf/encoding/protojson/encode.go @@ -216,9 +216,7 @@ func (m unpopulatedFieldRanger) Range(f func(protoreflect.FieldDescriptor, proto } v := m.Get(fd) - isProto2Scalar := fd.Syntax() == protoreflect.Proto2 && fd.Default().IsValid() - isSingularMessage := fd.Cardinality() != protoreflect.Repeated && fd.Message() != nil - if isProto2Scalar || isSingularMessage { + if fd.HasPresence() { if m.skipNull { continue } diff --git a/vendor/google.golang.org/protobuf/encoding/prototext/decode.go b/vendor/google.golang.org/protobuf/encoding/prototext/decode.go index a45f112bce30..24bc98ac4226 100644 --- a/vendor/google.golang.org/protobuf/encoding/prototext/decode.go +++ b/vendor/google.golang.org/protobuf/encoding/prototext/decode.go @@ -84,7 +84,7 @@ type decoder struct { } // newError returns an error object with position info. -func (d decoder) newError(pos int, f string, x ...interface{}) error { +func (d decoder) newError(pos int, f string, x ...any) error { line, column := d.Position(pos) head := fmt.Sprintf("(line %d:%d): ", line, column) return errors.New(head+f, x...) @@ -96,7 +96,7 @@ func (d decoder) unexpectedTokenError(tok text.Token) error { } // syntaxError returns a syntax error for given position. -func (d decoder) syntaxError(pos int, f string, x ...interface{}) error { +func (d decoder) syntaxError(pos int, f string, x ...any) error { line, column := d.Position(pos) head := fmt.Sprintf("syntax error (line %d:%d): ", line, column) return errors.New(head+f, x...) diff --git a/vendor/google.golang.org/protobuf/internal/descopts/options.go b/vendor/google.golang.org/protobuf/internal/descopts/options.go index 8401be8c84fa..024ffebd3dde 100644 --- a/vendor/google.golang.org/protobuf/internal/descopts/options.go +++ b/vendor/google.golang.org/protobuf/internal/descopts/options.go @@ -9,7 +9,7 @@ // dependency on the descriptor proto package). package descopts -import pref "google.golang.org/protobuf/reflect/protoreflect" +import "google.golang.org/protobuf/reflect/protoreflect" // These variables are set by the init function in descriptor.pb.go via logic // in internal/filetype. In other words, so long as the descriptor proto package @@ -17,13 +17,13 @@ import pref "google.golang.org/protobuf/reflect/protoreflect" // // Each variable is populated with a nil pointer to the options struct. var ( - File pref.ProtoMessage - Enum pref.ProtoMessage - EnumValue pref.ProtoMessage - Message pref.ProtoMessage - Field pref.ProtoMessage - Oneof pref.ProtoMessage - ExtensionRange pref.ProtoMessage - Service pref.ProtoMessage - Method pref.ProtoMessage + File protoreflect.ProtoMessage + Enum protoreflect.ProtoMessage + EnumValue protoreflect.ProtoMessage + Message protoreflect.ProtoMessage + Field protoreflect.ProtoMessage + Oneof protoreflect.ProtoMessage + ExtensionRange protoreflect.ProtoMessage + Service protoreflect.ProtoMessage + Method protoreflect.ProtoMessage ) diff --git a/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb b/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb index f691305eb4f7..ff6a38360add 100644 Binary files a/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb and b/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb differ diff --git a/vendor/google.golang.org/protobuf/internal/editionssupport/editions.go b/vendor/google.golang.org/protobuf/internal/editionssupport/editions.go index 029a6a12d742..08dad7692c64 100644 --- a/vendor/google.golang.org/protobuf/internal/editionssupport/editions.go +++ b/vendor/google.golang.org/protobuf/internal/editionssupport/editions.go @@ -5,7 +5,7 @@ // Package editionssupport defines constants for editions that are supported. package editionssupport -import descriptorpb "google.golang.org/protobuf/types/descriptorpb" +import "google.golang.org/protobuf/types/descriptorpb" const ( Minimum = descriptorpb.Edition_EDITION_PROTO2 diff --git a/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go b/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go index d2b3ac031e1e..ea1d3e65a575 100644 --- a/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go +++ b/vendor/google.golang.org/protobuf/internal/encoding/json/decode.go @@ -214,7 +214,7 @@ func (d *Decoder) parseNext() (Token, error) { // newSyntaxError returns an error with line and column information useful for // syntax errors. -func (d *Decoder) newSyntaxError(pos int, f string, x ...interface{}) error { +func (d *Decoder) newSyntaxError(pos int, f string, x ...any) error { e := errors.New(f, x...) line, column := d.Position(pos) return errors.New("syntax error (line %d:%d): %v", line, column, e) diff --git a/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go b/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go index 87853e786d0d..099b2bf451b5 100644 --- a/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go +++ b/vendor/google.golang.org/protobuf/internal/encoding/text/decode.go @@ -601,7 +601,7 @@ func (d *Decoder) consumeToken(kind Kind, size int, attrs uint8) Token { // newSyntaxError returns a syntax error with line and column information for // current position. -func (d *Decoder) newSyntaxError(f string, x ...interface{}) error { +func (d *Decoder) newSyntaxError(f string, x ...any) error { e := errors.New(f, x...) line, column := d.Position(len(d.orig) - len(d.in)) return errors.New("syntax error (line %d:%d): %v", line, column, e) diff --git a/vendor/google.golang.org/protobuf/internal/errors/errors.go b/vendor/google.golang.org/protobuf/internal/errors/errors.go index d96719829c23..c2d6bd5265d3 100644 --- a/vendor/google.golang.org/protobuf/internal/errors/errors.go +++ b/vendor/google.golang.org/protobuf/internal/errors/errors.go @@ -17,7 +17,7 @@ var Error = errors.New("protobuf error") // New formats a string according to the format specifier and arguments and // returns an error that has a "proto" prefix. -func New(f string, x ...interface{}) error { +func New(f string, x ...any) error { return &prefixError{s: format(f, x...)} } @@ -43,7 +43,7 @@ func (e *prefixError) Unwrap() error { // Wrap returns an error that has a "proto" prefix, the formatted string described // by the format specifier and arguments, and a suffix of err. The error wraps err. -func Wrap(err error, f string, x ...interface{}) error { +func Wrap(err error, f string, x ...any) error { return &wrapError{ s: format(f, x...), err: err, @@ -67,7 +67,7 @@ func (e *wrapError) Is(target error) bool { return target == Error } -func format(f string, x ...interface{}) string { +func format(f string, x ...any) string { // avoid "proto: " prefix when chaining for i := 0; i < len(x); i++ { switch e := x[i].(type) { diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc.go index ece53bea3288..fa790e0ff196 100644 --- a/vendor/google.golang.org/protobuf/internal/filedesc/desc.go +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc.go @@ -258,6 +258,7 @@ type ( StringName stringName IsProto3Optional bool // promoted from google.protobuf.FieldDescriptorProto IsWeak bool // promoted from google.protobuf.FieldOptions + IsLazy bool // promoted from google.protobuf.FieldOptions Default defaultValue ContainingOneof protoreflect.OneofDescriptor // must be consistent with Message.Oneofs.Fields Enum protoreflect.EnumDescriptor @@ -351,6 +352,7 @@ func (fd *Field) IsPacked() bool { } func (fd *Field) IsExtension() bool { return false } func (fd *Field) IsWeak() bool { return fd.L1.IsWeak } +func (fd *Field) IsLazy() bool { return fd.L1.IsLazy } func (fd *Field) IsList() bool { return fd.Cardinality() == protoreflect.Repeated && !fd.IsMap() } func (fd *Field) IsMap() bool { return fd.Message() != nil && fd.Message().IsMapEntry() } func (fd *Field) MapKey() protoreflect.FieldDescriptor { @@ -383,6 +385,10 @@ func (fd *Field) Message() protoreflect.MessageDescriptor { } return fd.L1.Message } +func (fd *Field) IsMapEntry() bool { + parent, ok := fd.L0.Parent.(protoreflect.MessageDescriptor) + return ok && parent.IsMapEntry() +} func (fd *Field) Format(s fmt.State, r rune) { descfmt.FormatDesc(s, r, fd) } func (fd *Field) ProtoType(protoreflect.FieldDescriptor) {} @@ -421,6 +427,7 @@ type ( Extendee protoreflect.MessageDescriptor Cardinality protoreflect.Cardinality Kind protoreflect.Kind + IsLazy bool EditionFeatures EditionFeatures } ExtensionL2 struct { @@ -461,6 +468,7 @@ func (xd *Extension) IsPacked() bool { } func (xd *Extension) IsExtension() bool { return true } func (xd *Extension) IsWeak() bool { return false } +func (xd *Extension) IsLazy() bool { return xd.L1.IsLazy } func (xd *Extension) IsList() bool { return xd.Cardinality() == protoreflect.Repeated } func (xd *Extension) IsMap() bool { return false } func (xd *Extension) MapKey() protoreflect.FieldDescriptor { return nil } diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go index 3bc3b1cdf807..d2f549497eb7 100644 --- a/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_init.go @@ -495,6 +495,8 @@ func (xd *Extension) unmarshalOptions(b []byte) { switch num { case genid.FieldOptions_Packed_field_number: xd.L1.EditionFeatures.IsPacked = protowire.DecodeBool(v) + case genid.FieldOptions_Lazy_field_number: + xd.L1.IsLazy = protowire.DecodeBool(v) } case protowire.BytesType: v, m := protowire.ConsumeBytes(b) @@ -534,7 +536,7 @@ func (sd *Service) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd protor } var nameBuilderPool = sync.Pool{ - New: func() interface{} { return new(strs.Builder) }, + New: func() any { return new(strs.Builder) }, } func getBuilder() *strs.Builder { diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go index 570181eb4874..67a51b327c5c 100644 --- a/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_lazy.go @@ -45,6 +45,11 @@ func (file *File) resolveMessages() { case protoreflect.MessageKind, protoreflect.GroupKind: fd.L1.Message = file.resolveMessageDependency(fd.L1.Message, listFieldDeps, depIdx) depIdx++ + if fd.L1.Kind == protoreflect.GroupKind && (fd.IsMap() || fd.IsMapEntry()) { + // A map field might inherit delimited encoding from a file-wide default feature. + // But maps never actually use delimited encoding. (At least for now...) + fd.L1.Kind = protoreflect.MessageKind + } } // Default is resolved here since it depends on Enum being resolved. @@ -499,6 +504,8 @@ func (fd *Field) unmarshalOptions(b []byte) { fd.L1.EditionFeatures.IsPacked = protowire.DecodeBool(v) case genid.FieldOptions_Weak_field_number: fd.L1.IsWeak = protowire.DecodeBool(v) + case genid.FieldOptions_Lazy_field_number: + fd.L1.IsLazy = protowire.DecodeBool(v) case FieldOptions_EnforceUTF8: fd.L1.EditionFeatures.IsUTF8Validated = protowire.DecodeBool(v) } diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go index 30db19fdc75a..f4107c05f4ee 100644 --- a/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go +++ b/vendor/google.golang.org/protobuf/internal/filedesc/desc_list_gen.go @@ -8,6 +8,7 @@ package filedesc import ( "fmt" + "strings" "sync" "google.golang.org/protobuf/internal/descfmt" @@ -198,6 +199,16 @@ func (p *Fields) lazyInit() *Fields { if _, ok := p.byText[d.TextName()]; !ok { p.byText[d.TextName()] = d } + if isGroupLike(d) { + lowerJSONName := strings.ToLower(d.JSONName()) + if _, ok := p.byJSON[lowerJSONName]; !ok { + p.byJSON[lowerJSONName] = d + } + lowerTextName := strings.ToLower(d.TextName()) + if _, ok := p.byText[lowerTextName]; !ok { + p.byText[lowerTextName] = d + } + } if _, ok := p.byNum[d.Number()]; !ok { p.byNum[d.Number()] = d } diff --git a/vendor/google.golang.org/protobuf/internal/filedesc/editions.go b/vendor/google.golang.org/protobuf/internal/filedesc/editions.go index d1e16a26d5bb..fd4d0c83d257 100644 --- a/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +++ b/vendor/google.golang.org/protobuf/internal/filedesc/editions.go @@ -68,7 +68,7 @@ func unmarshalFeatureSet(b []byte, parent EditionFeatures) EditionFeatures { v, m := protowire.ConsumeBytes(b) b = b[m:] switch num { - case genid.GoFeatures_LegacyUnmarshalJsonEnum_field_number: + case genid.FeatureSet_Go_ext_number: parent = unmarshalGoFeature(v, parent) } } @@ -108,7 +108,9 @@ func unmarshalEditionDefault(b []byte) { v, m := protowire.ConsumeBytes(b) b = b[m:] switch num { - case genid.FeatureSetDefaults_FeatureSetEditionDefault_Features_field_number: + case genid.FeatureSetDefaults_FeatureSetEditionDefault_FixedFeatures_field_number: + fs = unmarshalFeatureSet(v, fs) + case genid.FeatureSetDefaults_FeatureSetEditionDefault_OverridableFeatures_field_number: fs = unmarshalFeatureSet(v, fs) } } diff --git a/vendor/google.golang.org/protobuf/internal/filetype/build.go b/vendor/google.golang.org/protobuf/internal/filetype/build.go index f0e38c4ef4e0..ba83fea44c3e 100644 --- a/vendor/google.golang.org/protobuf/internal/filetype/build.go +++ b/vendor/google.golang.org/protobuf/internal/filetype/build.go @@ -68,7 +68,7 @@ type Builder struct { // and for input and output messages referenced by service methods. // Dependencies must come after declarations, but the ordering of // dependencies themselves is unspecified. - GoTypes []interface{} + GoTypes []any // DependencyIndexes is an ordered list of indexes into GoTypes for the // dependencies of messages, extensions, or services. @@ -268,7 +268,7 @@ func (x depIdxs) Get(i, j int32) int32 { type ( resolverByIndex struct { - goTypes []interface{} + goTypes []any depIdxs depIdxs fileRegistry } diff --git a/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go b/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go index 40272c893f70..f30ab6b586fe 100644 --- a/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +++ b/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go @@ -21,6 +21,7 @@ const ( // Enum values for google.protobuf.Edition. const ( Edition_EDITION_UNKNOWN_enum_value = 0 + Edition_EDITION_LEGACY_enum_value = 900 Edition_EDITION_PROTO2_enum_value = 998 Edition_EDITION_PROTO3_enum_value = 999 Edition_EDITION_2023_enum_value = 1000 @@ -653,6 +654,7 @@ const ( FieldOptions_Targets_field_name protoreflect.Name = "targets" FieldOptions_EditionDefaults_field_name protoreflect.Name = "edition_defaults" FieldOptions_Features_field_name protoreflect.Name = "features" + FieldOptions_FeatureSupport_field_name protoreflect.Name = "feature_support" FieldOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" FieldOptions_Ctype_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.ctype" @@ -667,6 +669,7 @@ const ( FieldOptions_Targets_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.targets" FieldOptions_EditionDefaults_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.edition_defaults" FieldOptions_Features_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.features" + FieldOptions_FeatureSupport_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.feature_support" FieldOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.uninterpreted_option" ) @@ -684,6 +687,7 @@ const ( FieldOptions_Targets_field_number protoreflect.FieldNumber = 19 FieldOptions_EditionDefaults_field_number protoreflect.FieldNumber = 20 FieldOptions_Features_field_number protoreflect.FieldNumber = 21 + FieldOptions_FeatureSupport_field_number protoreflect.FieldNumber = 22 FieldOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 ) @@ -767,6 +771,33 @@ const ( FieldOptions_EditionDefault_Value_field_number protoreflect.FieldNumber = 2 ) +// Names for google.protobuf.FieldOptions.FeatureSupport. +const ( + FieldOptions_FeatureSupport_message_name protoreflect.Name = "FeatureSupport" + FieldOptions_FeatureSupport_message_fullname protoreflect.FullName = "google.protobuf.FieldOptions.FeatureSupport" +) + +// Field names for google.protobuf.FieldOptions.FeatureSupport. +const ( + FieldOptions_FeatureSupport_EditionIntroduced_field_name protoreflect.Name = "edition_introduced" + FieldOptions_FeatureSupport_EditionDeprecated_field_name protoreflect.Name = "edition_deprecated" + FieldOptions_FeatureSupport_DeprecationWarning_field_name protoreflect.Name = "deprecation_warning" + FieldOptions_FeatureSupport_EditionRemoved_field_name protoreflect.Name = "edition_removed" + + FieldOptions_FeatureSupport_EditionIntroduced_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.FeatureSupport.edition_introduced" + FieldOptions_FeatureSupport_EditionDeprecated_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.FeatureSupport.edition_deprecated" + FieldOptions_FeatureSupport_DeprecationWarning_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.FeatureSupport.deprecation_warning" + FieldOptions_FeatureSupport_EditionRemoved_field_fullname protoreflect.FullName = "google.protobuf.FieldOptions.FeatureSupport.edition_removed" +) + +// Field numbers for google.protobuf.FieldOptions.FeatureSupport. +const ( + FieldOptions_FeatureSupport_EditionIntroduced_field_number protoreflect.FieldNumber = 1 + FieldOptions_FeatureSupport_EditionDeprecated_field_number protoreflect.FieldNumber = 2 + FieldOptions_FeatureSupport_DeprecationWarning_field_number protoreflect.FieldNumber = 3 + FieldOptions_FeatureSupport_EditionRemoved_field_number protoreflect.FieldNumber = 4 +) + // Names for google.protobuf.OneofOptions. const ( OneofOptions_message_name protoreflect.Name = "OneofOptions" @@ -829,11 +860,13 @@ const ( EnumValueOptions_Deprecated_field_name protoreflect.Name = "deprecated" EnumValueOptions_Features_field_name protoreflect.Name = "features" EnumValueOptions_DebugRedact_field_name protoreflect.Name = "debug_redact" + EnumValueOptions_FeatureSupport_field_name protoreflect.Name = "feature_support" EnumValueOptions_UninterpretedOption_field_name protoreflect.Name = "uninterpreted_option" EnumValueOptions_Deprecated_field_fullname protoreflect.FullName = "google.protobuf.EnumValueOptions.deprecated" EnumValueOptions_Features_field_fullname protoreflect.FullName = "google.protobuf.EnumValueOptions.features" EnumValueOptions_DebugRedact_field_fullname protoreflect.FullName = "google.protobuf.EnumValueOptions.debug_redact" + EnumValueOptions_FeatureSupport_field_fullname protoreflect.FullName = "google.protobuf.EnumValueOptions.feature_support" EnumValueOptions_UninterpretedOption_field_fullname protoreflect.FullName = "google.protobuf.EnumValueOptions.uninterpreted_option" ) @@ -842,6 +875,7 @@ const ( EnumValueOptions_Deprecated_field_number protoreflect.FieldNumber = 1 EnumValueOptions_Features_field_number protoreflect.FieldNumber = 2 EnumValueOptions_DebugRedact_field_number protoreflect.FieldNumber = 3 + EnumValueOptions_FeatureSupport_field_number protoreflect.FieldNumber = 4 EnumValueOptions_UninterpretedOption_field_number protoreflect.FieldNumber = 999 ) @@ -1110,17 +1144,20 @@ const ( // Field names for google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault. const ( - FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_name protoreflect.Name = "edition" - FeatureSetDefaults_FeatureSetEditionDefault_Features_field_name protoreflect.Name = "features" + FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_name protoreflect.Name = "edition" + FeatureSetDefaults_FeatureSetEditionDefault_OverridableFeatures_field_name protoreflect.Name = "overridable_features" + FeatureSetDefaults_FeatureSetEditionDefault_FixedFeatures_field_name protoreflect.Name = "fixed_features" - FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition" - FeatureSetDefaults_FeatureSetEditionDefault_Features_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features" + FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition" + FeatureSetDefaults_FeatureSetEditionDefault_OverridableFeatures_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridable_features" + FeatureSetDefaults_FeatureSetEditionDefault_FixedFeatures_field_fullname protoreflect.FullName = "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixed_features" ) // Field numbers for google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault. const ( - FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_number protoreflect.FieldNumber = 3 - FeatureSetDefaults_FeatureSetEditionDefault_Features_field_number protoreflect.FieldNumber = 2 + FeatureSetDefaults_FeatureSetEditionDefault_Edition_field_number protoreflect.FieldNumber = 3 + FeatureSetDefaults_FeatureSetEditionDefault_OverridableFeatures_field_number protoreflect.FieldNumber = 4 + FeatureSetDefaults_FeatureSetEditionDefault_FixedFeatures_field_number protoreflect.FieldNumber = 5 ) // Names for google.protobuf.SourceCodeInfo. diff --git a/vendor/google.golang.org/protobuf/internal/genid/doc.go b/vendor/google.golang.org/protobuf/internal/genid/doc.go index 45ccd01211ce..d9b9d916a20e 100644 --- a/vendor/google.golang.org/protobuf/internal/genid/doc.go +++ b/vendor/google.golang.org/protobuf/internal/genid/doc.go @@ -6,6 +6,6 @@ // and the well-known types. package genid -import protoreflect "google.golang.org/protobuf/reflect/protoreflect" +import "google.golang.org/protobuf/reflect/protoreflect" const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" diff --git a/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go b/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go index 9a652a2b4242..7f67cbb6e97e 100644 --- a/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go +++ b/vendor/google.golang.org/protobuf/internal/genid/go_features_gen.go @@ -12,20 +12,25 @@ import ( const File_google_protobuf_go_features_proto = "google/protobuf/go_features.proto" -// Names for google.protobuf.GoFeatures. +// Names for pb.GoFeatures. const ( GoFeatures_message_name protoreflect.Name = "GoFeatures" - GoFeatures_message_fullname protoreflect.FullName = "google.protobuf.GoFeatures" + GoFeatures_message_fullname protoreflect.FullName = "pb.GoFeatures" ) -// Field names for google.protobuf.GoFeatures. +// Field names for pb.GoFeatures. const ( GoFeatures_LegacyUnmarshalJsonEnum_field_name protoreflect.Name = "legacy_unmarshal_json_enum" - GoFeatures_LegacyUnmarshalJsonEnum_field_fullname protoreflect.FullName = "google.protobuf.GoFeatures.legacy_unmarshal_json_enum" + GoFeatures_LegacyUnmarshalJsonEnum_field_fullname protoreflect.FullName = "pb.GoFeatures.legacy_unmarshal_json_enum" ) -// Field numbers for google.protobuf.GoFeatures. +// Field numbers for pb.GoFeatures. const ( GoFeatures_LegacyUnmarshalJsonEnum_field_number protoreflect.FieldNumber = 1 ) + +// Extension numbers +const ( + FeatureSet_Go_ext_number protoreflect.FieldNumber = 1002 +) diff --git a/vendor/google.golang.org/protobuf/internal/genid/map_entry.go b/vendor/google.golang.org/protobuf/internal/genid/map_entry.go index 8f9ea02ff2a4..bef5a25fbbf0 100644 --- a/vendor/google.golang.org/protobuf/internal/genid/map_entry.go +++ b/vendor/google.golang.org/protobuf/internal/genid/map_entry.go @@ -4,7 +4,7 @@ package genid -import protoreflect "google.golang.org/protobuf/reflect/protoreflect" +import "google.golang.org/protobuf/reflect/protoreflect" // Generic field names and numbers for synthetic map entry messages. const ( diff --git a/vendor/google.golang.org/protobuf/internal/genid/wrappers.go b/vendor/google.golang.org/protobuf/internal/genid/wrappers.go index 429384b85b02..9404270de0ba 100644 --- a/vendor/google.golang.org/protobuf/internal/genid/wrappers.go +++ b/vendor/google.golang.org/protobuf/internal/genid/wrappers.go @@ -4,7 +4,7 @@ package genid -import protoreflect "google.golang.org/protobuf/reflect/protoreflect" +import "google.golang.org/protobuf/reflect/protoreflect" // Generic field name and number for messages in wrappers.proto. const ( diff --git a/vendor/google.golang.org/protobuf/internal/impl/api_export.go b/vendor/google.golang.org/protobuf/internal/impl/api_export.go index a371f98de143..5d5771c2ed56 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/api_export.go +++ b/vendor/google.golang.org/protobuf/internal/impl/api_export.go @@ -22,13 +22,13 @@ type Export struct{} // NewError formats a string according to the format specifier and arguments and // returns an error that has a "proto" prefix. -func (Export) NewError(f string, x ...interface{}) error { +func (Export) NewError(f string, x ...any) error { return errors.New(f, x...) } // enum is any enum type generated by protoc-gen-go // and must be a named int32 type. -type enum = interface{} +type enum = any // EnumOf returns the protoreflect.Enum interface over e. // It returns nil if e is nil. @@ -81,7 +81,7 @@ func (Export) EnumStringOf(ed protoreflect.EnumDescriptor, n protoreflect.EnumNu // message is any message type generated by protoc-gen-go // and must be a pointer to a named struct type. -type message = interface{} +type message = any // legacyMessageWrapper wraps a v2 message as a v1 message. type legacyMessageWrapper struct{ m protoreflect.ProtoMessage } diff --git a/vendor/google.golang.org/protobuf/internal/impl/checkinit.go b/vendor/google.golang.org/protobuf/internal/impl/checkinit.go index bff041edc946..f29e6a8fa881 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/checkinit.go +++ b/vendor/google.golang.org/protobuf/internal/impl/checkinit.go @@ -68,7 +68,7 @@ func (mi *MessageInfo) isInitExtensions(ext *map[int32]ExtensionField) error { } for _, x := range *ext { ei := getExtensionFieldInfo(x.Type()) - if ei.funcs.isInit == nil { + if ei.funcs.isInit == nil || x.isUnexpandedLazy() { continue } v := x.Value() diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go b/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go index 2b8f122c27bf..0d5b546e0eed 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_extension.go @@ -67,7 +67,6 @@ type lazyExtensionValue struct { xi *extensionFieldInfo value protoreflect.Value b []byte - fn func() protoreflect.Value } type ExtensionField struct { @@ -99,6 +98,28 @@ func (f *ExtensionField) canLazy(xt protoreflect.ExtensionType) bool { return false } +// isUnexpandedLazy returns true if the ExensionField is lazy and not +// yet expanded, which means it's present and already checked for +// initialized required fields. +func (f *ExtensionField) isUnexpandedLazy() bool { + return f.lazy != nil && atomic.LoadUint32(&f.lazy.atomicOnce) == 0 +} + +// lazyBuffer retrieves the buffer for a lazy extension if it's not yet expanded. +// +// The returned buffer has to be kept over whatever operation we're planning, +// as re-retrieving it will fail after the message is lazily decoded. +func (f *ExtensionField) lazyBuffer() []byte { + // This function might be in the critical path, so check the atomic without + // taking a look first, then only take the lock if needed. + if !f.isUnexpandedLazy() { + return nil + } + f.lazy.mu.Lock() + defer f.lazy.mu.Unlock() + return f.lazy.b +} + func (f *ExtensionField) lazyInit() { f.lazy.mu.Lock() defer f.lazy.mu.Unlock() @@ -136,10 +157,9 @@ func (f *ExtensionField) lazyInit() { } f.lazy.value = val } else { - f.lazy.value = f.lazy.fn() + panic("No support for lazy fns for ExtensionField") } f.lazy.xi = nil - f.lazy.fn = nil f.lazy.b = nil atomic.StoreUint32(&f.lazy.atomicOnce, 1) } @@ -152,13 +172,6 @@ func (f *ExtensionField) Set(t protoreflect.ExtensionType, v protoreflect.Value) f.lazy = nil } -// SetLazy sets the type and a value that is to be lazily evaluated upon first use. -// This must not be called concurrently. -func (f *ExtensionField) SetLazy(t protoreflect.ExtensionType, fn func() protoreflect.Value) { - f.typ = t - f.lazy = &lazyExtensionValue{fn: fn} -} - // Value returns the value of the extension field. // This may be called concurrently. func (f *ExtensionField) Value() protoreflect.Value { diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_field.go b/vendor/google.golang.org/protobuf/internal/impl/codec_field.go index 78ee47e44b92..7c1f66c8c195 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/codec_field.go +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_field.go @@ -65,6 +65,9 @@ func (mi *MessageInfo) initOneofFieldCoders(od protoreflect.OneofDescriptor, si if err != nil { return out, err } + if cf.funcs.isInit == nil { + out.initialized = true + } vi.Set(vw) return out, nil } diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_message.go b/vendor/google.golang.org/protobuf/internal/impl/codec_message.go index 6b2fdbb739a2..78be9df3420d 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/codec_message.go +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_message.go @@ -189,6 +189,9 @@ func (mi *MessageInfo) makeCoderMethods(t reflect.Type, si structInfo) { if mi.methods.Merge == nil { mi.methods.Merge = mi.merge } + if mi.methods.Equal == nil { + mi.methods.Equal = equal + } } // getUnknownBytes returns a *[]byte for the unknown fields. diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go b/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go index b7a23faf1e43..7a16ec13dd1a 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_messageset.go @@ -26,6 +26,15 @@ func sizeMessageSet(mi *MessageInfo, p pointer, opts marshalOptions) (size int) } num, _ := protowire.DecodeTag(xi.wiretag) size += messageset.SizeField(num) + if fullyLazyExtensions(opts) { + // Don't expand the extension, instead use the buffer to calculate size + if lb := x.lazyBuffer(); lb != nil { + // We got hold of the buffer, so it's still lazy. + // Don't count the tag size in the extension buffer, it's already added. + size += protowire.SizeTag(messageset.FieldMessage) + len(lb) - xi.tagsize + continue + } + } size += xi.funcs.size(x.Value(), protowire.SizeTag(messageset.FieldMessage), opts) } @@ -85,6 +94,19 @@ func marshalMessageSetField(mi *MessageInfo, b []byte, x ExtensionField, opts ma xi := getExtensionFieldInfo(x.Type()) num, _ := protowire.DecodeTag(xi.wiretag) b = messageset.AppendFieldStart(b, num) + + if fullyLazyExtensions(opts) { + // Don't expand the extension if it's still in wire format, instead use the buffer content. + if lb := x.lazyBuffer(); lb != nil { + // The tag inside the lazy buffer is a different tag (the extension + // number), but what we need here is the tag for FieldMessage: + b = protowire.AppendVarint(b, protowire.EncodeTag(messageset.FieldMessage, protowire.BytesType)) + b = append(b, lb[xi.tagsize:]...) + b = messageset.AppendFieldEnd(b) + return b, nil + } + } + b, err := xi.funcs.marshal(b, x.Value(), protowire.EncodeTag(messageset.FieldMessage, protowire.BytesType), opts) if err != nil { return b, err diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go deleted file mode 100644 index 145c577bd6b2..000000000000 --- a/vendor/google.golang.org/protobuf/internal/impl/codec_reflect.go +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright 2019 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 purego || appengine -// +build purego appengine - -package impl - -import ( - "reflect" - - "google.golang.org/protobuf/encoding/protowire" -) - -func sizeEnum(p pointer, f *coderFieldInfo, _ marshalOptions) (size int) { - v := p.v.Elem().Int() - return f.tagsize + protowire.SizeVarint(uint64(v)) -} - -func appendEnum(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { - v := p.v.Elem().Int() - b = protowire.AppendVarint(b, f.wiretag) - b = protowire.AppendVarint(b, uint64(v)) - return b, nil -} - -func consumeEnum(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, _ unmarshalOptions) (out unmarshalOutput, err error) { - if wtyp != protowire.VarintType { - return out, errUnknown - } - v, n := protowire.ConsumeVarint(b) - if n < 0 { - return out, errDecode - } - p.v.Elem().SetInt(int64(v)) - out.n = n - return out, nil -} - -func mergeEnum(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { - dst.v.Elem().Set(src.v.Elem()) -} - -var coderEnum = pointerCoderFuncs{ - size: sizeEnum, - marshal: appendEnum, - unmarshal: consumeEnum, - merge: mergeEnum, -} - -func sizeEnumNoZero(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { - if p.v.Elem().Int() == 0 { - return 0 - } - return sizeEnum(p, f, opts) -} - -func appendEnumNoZero(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { - if p.v.Elem().Int() == 0 { - return b, nil - } - return appendEnum(b, p, f, opts) -} - -func mergeEnumNoZero(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { - if src.v.Elem().Int() != 0 { - dst.v.Elem().Set(src.v.Elem()) - } -} - -var coderEnumNoZero = pointerCoderFuncs{ - size: sizeEnumNoZero, - marshal: appendEnumNoZero, - unmarshal: consumeEnum, - merge: mergeEnumNoZero, -} - -func sizeEnumPtr(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { - return sizeEnum(pointer{p.v.Elem()}, f, opts) -} - -func appendEnumPtr(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { - return appendEnum(b, pointer{p.v.Elem()}, f, opts) -} - -func consumeEnumPtr(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { - if wtyp != protowire.VarintType { - return out, errUnknown - } - if p.v.Elem().IsNil() { - p.v.Elem().Set(reflect.New(p.v.Elem().Type().Elem())) - } - return consumeEnum(b, pointer{p.v.Elem()}, wtyp, f, opts) -} - -func mergeEnumPtr(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { - if !src.v.Elem().IsNil() { - v := reflect.New(dst.v.Type().Elem().Elem()) - v.Elem().Set(src.v.Elem().Elem()) - dst.v.Elem().Set(v) - } -} - -var coderEnumPtr = pointerCoderFuncs{ - size: sizeEnumPtr, - marshal: appendEnumPtr, - unmarshal: consumeEnumPtr, - merge: mergeEnumPtr, -} - -func sizeEnumSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { - s := p.v.Elem() - for i, llen := 0, s.Len(); i < llen; i++ { - size += protowire.SizeVarint(uint64(s.Index(i).Int())) + f.tagsize - } - return size -} - -func appendEnumSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { - s := p.v.Elem() - for i, llen := 0, s.Len(); i < llen; i++ { - b = protowire.AppendVarint(b, f.wiretag) - b = protowire.AppendVarint(b, uint64(s.Index(i).Int())) - } - return b, nil -} - -func consumeEnumSlice(b []byte, p pointer, wtyp protowire.Type, f *coderFieldInfo, opts unmarshalOptions) (out unmarshalOutput, err error) { - s := p.v.Elem() - if wtyp == protowire.BytesType { - b, n := protowire.ConsumeBytes(b) - if n < 0 { - return out, errDecode - } - for len(b) > 0 { - v, n := protowire.ConsumeVarint(b) - if n < 0 { - return out, errDecode - } - rv := reflect.New(s.Type().Elem()).Elem() - rv.SetInt(int64(v)) - s.Set(reflect.Append(s, rv)) - b = b[n:] - } - out.n = n - return out, nil - } - if wtyp != protowire.VarintType { - return out, errUnknown - } - v, n := protowire.ConsumeVarint(b) - if n < 0 { - return out, errDecode - } - rv := reflect.New(s.Type().Elem()).Elem() - rv.SetInt(int64(v)) - s.Set(reflect.Append(s, rv)) - out.n = n - return out, nil -} - -func mergeEnumSlice(dst, src pointer, _ *coderFieldInfo, _ mergeOptions) { - dst.v.Elem().Set(reflect.AppendSlice(dst.v.Elem(), src.v.Elem())) -} - -var coderEnumSlice = pointerCoderFuncs{ - size: sizeEnumSlice, - marshal: appendEnumSlice, - unmarshal: consumeEnumSlice, - merge: mergeEnumSlice, -} - -func sizeEnumPackedSlice(p pointer, f *coderFieldInfo, opts marshalOptions) (size int) { - s := p.v.Elem() - llen := s.Len() - if llen == 0 { - return 0 - } - n := 0 - for i := 0; i < llen; i++ { - n += protowire.SizeVarint(uint64(s.Index(i).Int())) - } - return f.tagsize + protowire.SizeBytes(n) -} - -func appendEnumPackedSlice(b []byte, p pointer, f *coderFieldInfo, opts marshalOptions) ([]byte, error) { - s := p.v.Elem() - llen := s.Len() - if llen == 0 { - return b, nil - } - b = protowire.AppendVarint(b, f.wiretag) - n := 0 - for i := 0; i < llen; i++ { - n += protowire.SizeVarint(uint64(s.Index(i).Int())) - } - b = protowire.AppendVarint(b, uint64(n)) - for i := 0; i < llen; i++ { - b = protowire.AppendVarint(b, uint64(s.Index(i).Int())) - } - return b, nil -} - -var coderEnumPackedSlice = pointerCoderFuncs{ - size: sizeEnumPackedSlice, - marshal: appendEnumPackedSlice, - unmarshal: consumeEnumSlice, - merge: mergeEnumSlice, -} diff --git a/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go b/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go index 757642e23c9e..077712c2c5a3 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go +++ b/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !purego && !appengine -// +build !purego,!appengine - package impl // When using unsafe pointers, we can just treat enum values as int32s. diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert.go b/vendor/google.golang.org/protobuf/internal/impl/convert.go index 185ef2efa5bf..f72ddd882f32 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/convert.go +++ b/vendor/google.golang.org/protobuf/internal/impl/convert.go @@ -14,7 +14,7 @@ import ( // unwrapper unwraps the value to the underlying value. // This is implemented by List and Map. type unwrapper interface { - protoUnwrap() interface{} + protoUnwrap() any } // A Converter coverts to/from Go reflect.Value types and protobuf protoreflect.Value types. @@ -322,7 +322,7 @@ func (c *stringConverter) PBValueOf(v reflect.Value) protoreflect.Value { return protoreflect.ValueOfString(v.Convert(stringType).String()) } func (c *stringConverter) GoValueOf(v protoreflect.Value) reflect.Value { - // pref.Value.String never panics, so we go through an interface + // protoreflect.Value.String never panics, so we go through an interface // conversion here to check the type. s := v.Interface().(string) if c.goType.Kind() == reflect.Slice && s == "" { diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert_list.go b/vendor/google.golang.org/protobuf/internal/impl/convert_list.go index f89136516f96..18cb96fd70a2 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/convert_list.go +++ b/vendor/google.golang.org/protobuf/internal/impl/convert_list.go @@ -136,6 +136,6 @@ func (ls *listReflect) NewElement() protoreflect.Value { func (ls *listReflect) IsValid() bool { return !ls.v.IsNil() } -func (ls *listReflect) protoUnwrap() interface{} { +func (ls *listReflect) protoUnwrap() any { return ls.v.Interface() } diff --git a/vendor/google.golang.org/protobuf/internal/impl/convert_map.go b/vendor/google.golang.org/protobuf/internal/impl/convert_map.go index f30b0a0576de..304244a651d9 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/convert_map.go +++ b/vendor/google.golang.org/protobuf/internal/impl/convert_map.go @@ -116,6 +116,6 @@ func (ms *mapReflect) NewValue() protoreflect.Value { func (ms *mapReflect) IsValid() bool { return !ms.v.IsNil() } -func (ms *mapReflect) protoUnwrap() interface{} { +func (ms *mapReflect) protoUnwrap() any { return ms.v.Interface() } diff --git a/vendor/google.golang.org/protobuf/internal/impl/encode.go b/vendor/google.golang.org/protobuf/internal/impl/encode.go index 845c67d6e7e5..6254f5de41f5 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/encode.go +++ b/vendor/google.golang.org/protobuf/internal/impl/encode.go @@ -10,7 +10,7 @@ import ( "sync/atomic" "google.golang.org/protobuf/internal/flags" - proto "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/proto" piface "google.golang.org/protobuf/runtime/protoiface" ) @@ -49,8 +49,11 @@ func (mi *MessageInfo) sizePointer(p pointer, opts marshalOptions) (size int) { return 0 } if opts.UseCachedSize() && mi.sizecacheOffset.IsValid() { - if size := atomic.LoadInt32(p.Apply(mi.sizecacheOffset).Int32()); size >= 0 { - return int(size) + // The size cache contains the size + 1, to allow the + // zero value to be invalid, while also allowing for a + // 0 size to be cached. + if size := atomic.LoadInt32(p.Apply(mi.sizecacheOffset).Int32()); size > 0 { + return int(size - 1) } } return mi.sizePointerSlow(p, opts) @@ -60,7 +63,7 @@ func (mi *MessageInfo) sizePointerSlow(p pointer, opts marshalOptions) (size int if flags.ProtoLegacy && mi.isMessageSet { size = sizeMessageSet(mi, p, opts) if mi.sizecacheOffset.IsValid() { - atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), int32(size)) + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), int32(size+1)) } return size } @@ -84,13 +87,16 @@ func (mi *MessageInfo) sizePointerSlow(p pointer, opts marshalOptions) (size int } } if mi.sizecacheOffset.IsValid() { - if size > math.MaxInt32 { + if size > (math.MaxInt32 - 1) { // The size is too large for the int32 sizecache field. // We will need to recompute the size when encoding; // unfortunately expensive, but better than invalid output. - atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), -1) + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), 0) } else { - atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), int32(size)) + // The size cache contains the size + 1, to allow the + // zero value to be invalid, while also allowing for a + // 0 size to be cached. + atomic.StoreInt32(p.Apply(mi.sizecacheOffset).Int32(), int32(size+1)) } } return size @@ -149,6 +155,14 @@ func (mi *MessageInfo) marshalAppendPointer(b []byte, p pointer, opts marshalOpt return b, nil } +// fullyLazyExtensions returns true if we should attempt to keep extensions lazy over size and marshal. +func fullyLazyExtensions(opts marshalOptions) bool { + // When deterministic marshaling is requested, force an unmarshal for lazy + // extensions to produce a deterministic result, instead of passing through + // bytes lazily that may or may not match what Go Protobuf would produce. + return opts.flags&piface.MarshalDeterministic == 0 +} + func (mi *MessageInfo) sizeExtensions(ext *map[int32]ExtensionField, opts marshalOptions) (n int) { if ext == nil { return 0 @@ -158,6 +172,14 @@ func (mi *MessageInfo) sizeExtensions(ext *map[int32]ExtensionField, opts marsha if xi.funcs.size == nil { continue } + if fullyLazyExtensions(opts) { + // Don't expand the extension, instead use the buffer to calculate size + if lb := x.lazyBuffer(); lb != nil { + // We got hold of the buffer, so it's still lazy. + n += len(lb) + continue + } + } n += xi.funcs.size(x.Value(), xi.tagsize, opts) } return n @@ -176,6 +198,13 @@ func (mi *MessageInfo) appendExtensions(b []byte, ext *map[int32]ExtensionField, var err error for _, x := range *ext { xi := getExtensionFieldInfo(x.Type()) + if fullyLazyExtensions(opts) { + // Don't expand the extension if it's still in wire format, instead use the buffer content. + if lb := x.lazyBuffer(); lb != nil { + b = append(b, lb...) + continue + } + } b, err = xi.funcs.marshal(b, x.Value(), xi.wiretag, opts) } return b, err @@ -191,6 +220,13 @@ func (mi *MessageInfo) appendExtensions(b []byte, ext *map[int32]ExtensionField, for _, k := range keys { x := (*ext)[int32(k)] xi := getExtensionFieldInfo(x.Type()) + if fullyLazyExtensions(opts) { + // Don't expand the extension if it's still in wire format, instead use the buffer content. + if lb := x.lazyBuffer(); lb != nil { + b = append(b, lb...) + continue + } + } b, err = xi.funcs.marshal(b, x.Value(), xi.wiretag, opts) if err != nil { return b, err diff --git a/vendor/google.golang.org/protobuf/internal/impl/equal.go b/vendor/google.golang.org/protobuf/internal/impl/equal.go new file mode 100644 index 000000000000..9f6c32a7d8cd --- /dev/null +++ b/vendor/google.golang.org/protobuf/internal/impl/equal.go @@ -0,0 +1,224 @@ +// Copyright 2024 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. + +package impl + +import ( + "bytes" + + "google.golang.org/protobuf/encoding/protowire" + "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" +) + +func equal(in protoiface.EqualInput) protoiface.EqualOutput { + return protoiface.EqualOutput{Equal: equalMessage(in.MessageA, in.MessageB)} +} + +// equalMessage is a fast-path variant of protoreflect.equalMessage. +// It takes advantage of the internal messageState type to avoid +// unnecessary allocations, type assertions. +func equalMessage(mx, my protoreflect.Message) bool { + if mx == nil || my == nil { + return mx == my + } + if mx.Descriptor() != my.Descriptor() { + return false + } + + msx, ok := mx.(*messageState) + if !ok { + return protoreflect.ValueOfMessage(mx).Equal(protoreflect.ValueOfMessage(my)) + } + msy, ok := my.(*messageState) + if !ok { + return protoreflect.ValueOfMessage(mx).Equal(protoreflect.ValueOfMessage(my)) + } + + mi := msx.messageInfo() + miy := msy.messageInfo() + if mi != miy { + return protoreflect.ValueOfMessage(mx).Equal(protoreflect.ValueOfMessage(my)) + } + mi.init() + // Compares regular fields + // Modified Message.Range code that compares two messages of the same type + // while going over the fields. + for _, ri := range mi.rangeInfos { + var fd protoreflect.FieldDescriptor + var vx, vy protoreflect.Value + + switch ri := ri.(type) { + case *fieldInfo: + hx := ri.has(msx.pointer()) + hy := ri.has(msy.pointer()) + if hx != hy { + return false + } + if !hx { + continue + } + fd = ri.fieldDesc + vx = ri.get(msx.pointer()) + vy = ri.get(msy.pointer()) + case *oneofInfo: + fnx := ri.which(msx.pointer()) + fny := ri.which(msy.pointer()) + if fnx != fny { + return false + } + if fnx <= 0 { + continue + } + fi := mi.fields[fnx] + fd = fi.fieldDesc + vx = fi.get(msx.pointer()) + vy = fi.get(msy.pointer()) + } + + if !equalValue(fd, vx, vy) { + return false + } + } + + // Compare extensions. + // This is more complicated because mx or my could have empty/nil extension maps, + // however some populated extension map values are equal to nil extension maps. + emx := mi.extensionMap(msx.pointer()) + emy := mi.extensionMap(msy.pointer()) + if emx != nil { + for k, x := range *emx { + xd := x.Type().TypeDescriptor() + xv := x.Value() + var y ExtensionField + ok := false + if emy != nil { + y, ok = (*emy)[k] + } + // We need to treat empty lists as equal to nil values + if emy == nil || !ok { + if xd.IsList() && xv.List().Len() == 0 { + continue + } + return false + } + + if !equalValue(xd, xv, y.Value()) { + return false + } + } + } + if emy != nil { + // emy may have extensions emx does not have, need to check them as well + for k, y := range *emy { + if emx != nil { + // emx has the field, so we already checked it + if _, ok := (*emx)[k]; ok { + continue + } + } + // Empty lists are equal to nil + if y.Type().TypeDescriptor().IsList() && y.Value().List().Len() == 0 { + continue + } + + // Cant be equal if the extension is populated + return false + } + } + + return equalUnknown(mx.GetUnknown(), my.GetUnknown()) +} + +func equalValue(fd protoreflect.FieldDescriptor, vx, vy protoreflect.Value) bool { + // slow path + if fd.Kind() != protoreflect.MessageKind { + return vx.Equal(vy) + } + + // fast path special cases + if fd.IsMap() { + if fd.MapValue().Kind() == protoreflect.MessageKind { + return equalMessageMap(vx.Map(), vy.Map()) + } + return vx.Equal(vy) + } + + if fd.IsList() { + return equalMessageList(vx.List(), vy.List()) + } + + return equalMessage(vx.Message(), vy.Message()) +} + +// Mostly copied from protoreflect.equalMap. +// This variant only works for messages as map types. +// All other map types should be handled via Value.Equal. +func equalMessageMap(mx, my protoreflect.Map) bool { + if mx.Len() != my.Len() { + return false + } + equal := true + mx.Range(func(k protoreflect.MapKey, vx protoreflect.Value) bool { + if !my.Has(k) { + equal = false + return false + } + vy := my.Get(k) + equal = equalMessage(vx.Message(), vy.Message()) + return equal + }) + return equal +} + +// Mostly copied from protoreflect.equalList. +// The only change is the usage of equalImpl instead of protoreflect.equalValue. +func equalMessageList(lx, ly protoreflect.List) bool { + if lx.Len() != ly.Len() { + return false + } + for i := 0; i < lx.Len(); i++ { + // We only operate on messages here since equalImpl will not call us in any other case. + if !equalMessage(lx.Get(i).Message(), ly.Get(i).Message()) { + return false + } + } + return true +} + +// equalUnknown compares unknown fields by direct comparison on the raw bytes +// of each individual field number. +// Copied from protoreflect.equalUnknown. +func equalUnknown(x, y protoreflect.RawFields) bool { + if len(x) != len(y) { + return false + } + if bytes.Equal([]byte(x), []byte(y)) { + return true + } + + mx := make(map[protoreflect.FieldNumber]protoreflect.RawFields) + my := make(map[protoreflect.FieldNumber]protoreflect.RawFields) + for len(x) > 0 { + fnum, _, n := protowire.ConsumeField(x) + mx[fnum] = append(mx[fnum], x[:n]...) + x = x[n:] + } + for len(y) > 0 { + fnum, _, n := protowire.ConsumeField(y) + my[fnum] = append(my[fnum], y[:n]...) + y = y[n:] + } + if len(mx) != len(my) { + return false + } + + for k, v1 := range mx { + if v2, ok := my[k]; !ok || !bytes.Equal([]byte(v1), []byte(v2)) { + return false + } + } + + return true +} diff --git a/vendor/google.golang.org/protobuf/internal/impl/extension.go b/vendor/google.golang.org/protobuf/internal/impl/extension.go index cb25b0bae1d7..e31249f64f78 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/extension.go +++ b/vendor/google.golang.org/protobuf/internal/impl/extension.go @@ -53,7 +53,7 @@ type ExtensionInfo struct { // type returned by InterfaceOf may not be identical. // // Deprecated: Use InterfaceOf(xt.Zero()) instead. - ExtensionType interface{} + ExtensionType any // Field is the field number of the extension. // @@ -95,16 +95,16 @@ func (xi *ExtensionInfo) New() protoreflect.Value { func (xi *ExtensionInfo) Zero() protoreflect.Value { return xi.lazyInit().Zero() } -func (xi *ExtensionInfo) ValueOf(v interface{}) protoreflect.Value { +func (xi *ExtensionInfo) ValueOf(v any) protoreflect.Value { return xi.lazyInit().PBValueOf(reflect.ValueOf(v)) } -func (xi *ExtensionInfo) InterfaceOf(v protoreflect.Value) interface{} { +func (xi *ExtensionInfo) InterfaceOf(v protoreflect.Value) any { return xi.lazyInit().GoValueOf(v).Interface() } func (xi *ExtensionInfo) IsValidValue(v protoreflect.Value) bool { return xi.lazyInit().IsValidPB(v) } -func (xi *ExtensionInfo) IsValidInterface(v interface{}) bool { +func (xi *ExtensionInfo) IsValidInterface(v any) bool { return xi.lazyInit().IsValidGo(reflect.ValueOf(v)) } func (xi *ExtensionInfo) TypeDescriptor() protoreflect.ExtensionTypeDescriptor { diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go index c1c33d0057ec..81b2b1a763d7 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_enum.go @@ -97,7 +97,7 @@ func (e *legacyEnumWrapper) Number() protoreflect.EnumNumber { func (e *legacyEnumWrapper) ProtoReflect() protoreflect.Enum { return e } -func (e *legacyEnumWrapper) protoUnwrap() interface{} { +func (e *legacyEnumWrapper) protoUnwrap() any { v := reflect.New(e.goTyp).Elem() v.SetInt(int64(e.num)) return v.Interface() diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go index 6e8677ee633f..b6849d66927d 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_extension.go @@ -160,6 +160,7 @@ func (x placeholderExtension) HasPresence() bool func (x placeholderExtension) HasOptionalKeyword() bool { return false } func (x placeholderExtension) IsExtension() bool { return true } func (x placeholderExtension) IsWeak() bool { return false } +func (x placeholderExtension) IsLazy() bool { return false } func (x placeholderExtension) IsPacked() bool { return false } func (x placeholderExtension) IsList() bool { return false } func (x placeholderExtension) IsMap() bool { return false } diff --git a/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go b/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go index 950e9a1fe7a3..bf0b6049b46f 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go +++ b/vendor/google.golang.org/protobuf/internal/impl/legacy_message.go @@ -216,7 +216,7 @@ func aberrantLoadMessageDescReentrant(t reflect.Type, name protoreflect.FullName } for _, fn := range methods { for _, v := range fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))}) { - if vs, ok := v.Interface().([]interface{}); ok { + if vs, ok := v.Interface().([]any); ok { for _, v := range vs { oneofWrappers = append(oneofWrappers, reflect.TypeOf(v)) } @@ -567,6 +567,6 @@ func (m aberrantMessage) IsValid() bool { func (m aberrantMessage) ProtoMethods() *protoiface.Methods { return aberrantProtoMethods } -func (m aberrantMessage) protoUnwrap() interface{} { +func (m aberrantMessage) protoUnwrap() any { return m.v.Interface() } diff --git a/vendor/google.golang.org/protobuf/internal/impl/message.go b/vendor/google.golang.org/protobuf/internal/impl/message.go index 629bacdcedd3..741b5ed29cf8 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/message.go +++ b/vendor/google.golang.org/protobuf/internal/impl/message.go @@ -30,12 +30,12 @@ type MessageInfo struct { // Desc is the underlying message descriptor type and must be populated. Desc protoreflect.MessageDescriptor - // Exporter must be provided in a purego environment in order to provide - // access to unexported fields. + // Deprecated: Exporter will be removed the next time we bump + // protoimpl.GenVersion. See https://github.com/golang/protobuf/issues/1640 Exporter exporter // OneofWrappers is list of pointers to oneof wrapper struct types. - OneofWrappers []interface{} + OneofWrappers []any initMu sync.Mutex // protects all unexported fields initDone uint32 @@ -47,7 +47,7 @@ type MessageInfo struct { // exporter is a function that returns a reference to the ith field of v, // where v is a pointer to a struct. It returns nil if it does not support // exporting the requested field (e.g., already exported). -type exporter func(v interface{}, i int) interface{} +type exporter func(v any, i int) any // getMessageInfo returns the MessageInfo for any message type that // is generated by our implementation of protoc-gen-go (for v2 and on). @@ -201,7 +201,7 @@ fieldLoop: } for _, fn := range methods { for _, v := range fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))}) { - if vs, ok := v.Interface().([]interface{}); ok { + if vs, ok := v.Interface().([]any); ok { oneofWrappers = vs } } @@ -256,7 +256,7 @@ func (mi *MessageInfo) Message(i int) protoreflect.MessageType { type mapEntryType struct { desc protoreflect.MessageDescriptor - valType interface{} // zero value of enum or message type + valType any // zero value of enum or message type } func (mt mapEntryType) New() protoreflect.Message { diff --git a/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go index a6f0dbdade64..ecb4623d7018 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go +++ b/vendor/google.golang.org/protobuf/internal/impl/message_reflect.go @@ -20,7 +20,7 @@ type reflectMessageInfo struct { // fieldTypes contains the zero value of an enum or message field. // For lists, it contains the element type. // For maps, it contains the entry value type. - fieldTypes map[protoreflect.FieldNumber]interface{} + fieldTypes map[protoreflect.FieldNumber]any // denseFields is a subset of fields where: // 0 < fieldDesc.Number() < len(denseFields) @@ -28,7 +28,7 @@ type reflectMessageInfo struct { denseFields []*fieldInfo // rangeInfos is a list of all fields (not belonging to a oneof) and oneofs. - rangeInfos []interface{} // either *fieldInfo or *oneofInfo + rangeInfos []any // either *fieldInfo or *oneofInfo getUnknown func(pointer) protoreflect.RawFields setUnknown func(pointer, protoreflect.RawFields) @@ -224,7 +224,7 @@ func (mi *MessageInfo) makeFieldTypes(si structInfo) { } if ft != nil { if mi.fieldTypes == nil { - mi.fieldTypes = make(map[protoreflect.FieldNumber]interface{}) + mi.fieldTypes = make(map[protoreflect.FieldNumber]any) } mi.fieldTypes[fd.Number()] = reflect.Zero(ft).Interface() } @@ -255,6 +255,10 @@ func (m *extensionMap) Has(xd protoreflect.ExtensionTypeDescriptor) (ok bool) { if !ok { return false } + if x.isUnexpandedLazy() { + // Avoid calling x.Value(), which triggers a lazy unmarshal. + return true + } switch { case xd.IsList(): return x.Value().List().Len() > 0 @@ -389,7 +393,7 @@ var ( // MessageOf returns a reflective view over a message. The input must be a // pointer to a named Go struct. If the provided type has a ProtoReflect method, // it must be implemented by calling this method. -func (mi *MessageInfo) MessageOf(m interface{}) protoreflect.Message { +func (mi *MessageInfo) MessageOf(m any) protoreflect.Message { if reflect.TypeOf(m) != mi.GoReflectType { panic(fmt.Sprintf("type mismatch: got %T, want %v", m, mi.GoReflectType)) } @@ -417,7 +421,7 @@ func (m *messageIfaceWrapper) Reset() { func (m *messageIfaceWrapper) ProtoReflect() protoreflect.Message { return (*messageReflectWrapper)(m) } -func (m *messageIfaceWrapper) protoUnwrap() interface{} { +func (m *messageIfaceWrapper) protoUnwrap() any { return m.p.AsIfaceOf(m.mi.GoReflectType.Elem()) } diff --git a/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go index 29ba6bd35523..99dc23c6f0a4 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go +++ b/vendor/google.golang.org/protobuf/internal/impl/message_reflect_gen.go @@ -23,7 +23,7 @@ func (m *messageState) New() protoreflect.Message { func (m *messageState) Interface() protoreflect.ProtoMessage { return m.protoUnwrap().(protoreflect.ProtoMessage) } -func (m *messageState) protoUnwrap() interface{} { +func (m *messageState) protoUnwrap() any { return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem()) } func (m *messageState) ProtoMethods() *protoiface.Methods { @@ -154,7 +154,7 @@ func (m *messageReflectWrapper) Interface() protoreflect.ProtoMessage { } return (*messageIfaceWrapper)(m) } -func (m *messageReflectWrapper) protoUnwrap() interface{} { +func (m *messageReflectWrapper) protoUnwrap() any { return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem()) } func (m *messageReflectWrapper) ProtoMethods() *protoiface.Methods { diff --git a/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go b/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go deleted file mode 100644 index 517e94434c73..000000000000 --- a/vendor/google.golang.org/protobuf/internal/impl/pointer_reflect.go +++ /dev/null @@ -1,215 +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 purego || appengine -// +build purego appengine - -package impl - -import ( - "fmt" - "reflect" - "sync" -) - -const UnsafeEnabled = false - -// Pointer is an opaque pointer type. -type Pointer interface{} - -// offset represents the offset to a struct field, accessible from a pointer. -// The offset is the field index into a struct. -type offset struct { - index int - export exporter -} - -// offsetOf returns a field offset for the struct field. -func offsetOf(f reflect.StructField, x exporter) offset { - if len(f.Index) != 1 { - panic("embedded structs are not supported") - } - if f.PkgPath == "" { - return offset{index: f.Index[0]} // field is already exported - } - if x == nil { - panic("exporter must be provided for unexported field") - } - return offset{index: f.Index[0], export: x} -} - -// IsValid reports whether the offset is valid. -func (f offset) IsValid() bool { return f.index >= 0 } - -// invalidOffset is an invalid field offset. -var invalidOffset = offset{index: -1} - -// zeroOffset is a noop when calling pointer.Apply. -var zeroOffset = offset{index: 0} - -// pointer is an abstract representation of a pointer to a struct or field. -type pointer struct{ v reflect.Value } - -// pointerOf returns p as a pointer. -func pointerOf(p Pointer) pointer { - return pointerOfIface(p) -} - -// pointerOfValue returns v as a pointer. -func pointerOfValue(v reflect.Value) pointer { - return pointer{v: v} -} - -// pointerOfIface returns the pointer portion of an interface. -func pointerOfIface(v interface{}) pointer { - return pointer{v: reflect.ValueOf(v)} -} - -// IsNil reports whether the pointer is nil. -func (p pointer) IsNil() bool { - return p.v.IsNil() -} - -// Apply adds an offset to the pointer to derive a new pointer -// to a specified field. The current pointer must be pointing at a struct. -func (p pointer) Apply(f offset) pointer { - if f.export != nil { - if v := reflect.ValueOf(f.export(p.v.Interface(), f.index)); v.IsValid() { - return pointer{v: v} - } - } - return pointer{v: p.v.Elem().Field(f.index).Addr()} -} - -// AsValueOf treats p as a pointer to an object of type t and returns the value. -// It is equivalent to reflect.ValueOf(p.AsIfaceOf(t)) -func (p pointer) AsValueOf(t reflect.Type) reflect.Value { - if got := p.v.Type().Elem(); got != t { - panic(fmt.Sprintf("invalid type: got %v, want %v", got, t)) - } - return p.v -} - -// AsIfaceOf treats p as a pointer to an object of type t and returns the value. -// It is equivalent to p.AsValueOf(t).Interface() -func (p pointer) AsIfaceOf(t reflect.Type) interface{} { - return p.AsValueOf(t).Interface() -} - -func (p pointer) Bool() *bool { return p.v.Interface().(*bool) } -func (p pointer) BoolPtr() **bool { return p.v.Interface().(**bool) } -func (p pointer) BoolSlice() *[]bool { return p.v.Interface().(*[]bool) } -func (p pointer) Int32() *int32 { return p.v.Interface().(*int32) } -func (p pointer) Int32Ptr() **int32 { return p.v.Interface().(**int32) } -func (p pointer) Int32Slice() *[]int32 { return p.v.Interface().(*[]int32) } -func (p pointer) Int64() *int64 { return p.v.Interface().(*int64) } -func (p pointer) Int64Ptr() **int64 { return p.v.Interface().(**int64) } -func (p pointer) Int64Slice() *[]int64 { return p.v.Interface().(*[]int64) } -func (p pointer) Uint32() *uint32 { return p.v.Interface().(*uint32) } -func (p pointer) Uint32Ptr() **uint32 { return p.v.Interface().(**uint32) } -func (p pointer) Uint32Slice() *[]uint32 { return p.v.Interface().(*[]uint32) } -func (p pointer) Uint64() *uint64 { return p.v.Interface().(*uint64) } -func (p pointer) Uint64Ptr() **uint64 { return p.v.Interface().(**uint64) } -func (p pointer) Uint64Slice() *[]uint64 { return p.v.Interface().(*[]uint64) } -func (p pointer) Float32() *float32 { return p.v.Interface().(*float32) } -func (p pointer) Float32Ptr() **float32 { return p.v.Interface().(**float32) } -func (p pointer) Float32Slice() *[]float32 { return p.v.Interface().(*[]float32) } -func (p pointer) Float64() *float64 { return p.v.Interface().(*float64) } -func (p pointer) Float64Ptr() **float64 { return p.v.Interface().(**float64) } -func (p pointer) Float64Slice() *[]float64 { return p.v.Interface().(*[]float64) } -func (p pointer) String() *string { return p.v.Interface().(*string) } -func (p pointer) StringPtr() **string { return p.v.Interface().(**string) } -func (p pointer) StringSlice() *[]string { return p.v.Interface().(*[]string) } -func (p pointer) Bytes() *[]byte { return p.v.Interface().(*[]byte) } -func (p pointer) BytesPtr() **[]byte { return p.v.Interface().(**[]byte) } -func (p pointer) BytesSlice() *[][]byte { return p.v.Interface().(*[][]byte) } -func (p pointer) WeakFields() *weakFields { return (*weakFields)(p.v.Interface().(*WeakFields)) } -func (p pointer) Extensions() *map[int32]ExtensionField { - return p.v.Interface().(*map[int32]ExtensionField) -} - -func (p pointer) Elem() pointer { - return pointer{v: p.v.Elem()} -} - -// PointerSlice copies []*T from p as a new []pointer. -// This behavior differs from the implementation in pointer_unsafe.go. -func (p pointer) PointerSlice() []pointer { - // TODO: reconsider this - if p.v.IsNil() { - return nil - } - n := p.v.Elem().Len() - s := make([]pointer, n) - for i := 0; i < n; i++ { - s[i] = pointer{v: p.v.Elem().Index(i)} - } - return s -} - -// AppendPointerSlice appends v to p, which must be a []*T. -func (p pointer) AppendPointerSlice(v pointer) { - sp := p.v.Elem() - sp.Set(reflect.Append(sp, v.v)) -} - -// SetPointer sets *p to v. -func (p pointer) SetPointer(v pointer) { - p.v.Elem().Set(v.v) -} - -func growSlice(p pointer, addCap int) { - // TODO: Once we only support Go 1.20 and newer, use reflect.Grow. - in := p.v.Elem() - out := reflect.MakeSlice(in.Type(), in.Len(), in.Len()+addCap) - reflect.Copy(out, in) - p.v.Elem().Set(out) -} - -func (p pointer) growBoolSlice(addCap int) { - growSlice(p, addCap) -} - -func (p pointer) growInt32Slice(addCap int) { - growSlice(p, addCap) -} - -func (p pointer) growUint32Slice(addCap int) { - growSlice(p, addCap) -} - -func (p pointer) growInt64Slice(addCap int) { - growSlice(p, addCap) -} - -func (p pointer) growUint64Slice(addCap int) { - growSlice(p, addCap) -} - -func (p pointer) growFloat64Slice(addCap int) { - growSlice(p, addCap) -} - -func (p pointer) growFloat32Slice(addCap int) { - growSlice(p, addCap) -} - -func (Export) MessageStateOf(p Pointer) *messageState { panic("not supported") } -func (ms *messageState) pointer() pointer { panic("not supported") } -func (ms *messageState) messageInfo() *MessageInfo { panic("not supported") } -func (ms *messageState) LoadMessageInfo() *MessageInfo { panic("not supported") } -func (ms *messageState) StoreMessageInfo(mi *MessageInfo) { panic("not supported") } - -type atomicNilMessage struct { - once sync.Once - m messageReflectWrapper -} - -func (m *atomicNilMessage) Init(mi *MessageInfo) *messageReflectWrapper { - m.once.Do(func() { - m.m.p = pointerOfIface(reflect.Zero(mi.GoReflectType).Interface()) - m.m.mi = mi - }) - return &m.m -} diff --git a/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go b/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go index 4b020e311644..79e186667b70 100644 --- a/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go +++ b/vendor/google.golang.org/protobuf/internal/impl/pointer_unsafe.go @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !purego && !appengine -// +build !purego,!appengine - package impl import ( @@ -50,7 +47,7 @@ func pointerOfValue(v reflect.Value) pointer { } // pointerOfIface returns the pointer portion of an interface. -func pointerOfIface(v interface{}) pointer { +func pointerOfIface(v any) pointer { type ifaceHeader struct { Type unsafe.Pointer Data unsafe.Pointer @@ -80,7 +77,7 @@ func (p pointer) AsValueOf(t reflect.Type) reflect.Value { // AsIfaceOf treats p as a pointer to an object of type t and returns the value. // It is equivalent to p.AsValueOf(t).Interface() -func (p pointer) AsIfaceOf(t reflect.Type) interface{} { +func (p pointer) AsIfaceOf(t reflect.Type) any { // TODO: Use tricky unsafe magic to directly create ifaceHeader. return p.AsValueOf(t).Interface() } diff --git a/vendor/google.golang.org/protobuf/internal/order/range.go b/vendor/google.golang.org/protobuf/internal/order/range.go index 1665a68e5b7c..a1f09162d05d 100644 --- a/vendor/google.golang.org/protobuf/internal/order/range.go +++ b/vendor/google.golang.org/protobuf/internal/order/range.go @@ -18,7 +18,7 @@ type messageField struct { } var messageFieldPool = sync.Pool{ - New: func() interface{} { return new([]messageField) }, + New: func() any { return new([]messageField) }, } type ( @@ -69,7 +69,7 @@ type mapEntry struct { } var mapEntryPool = sync.Pool{ - New: func() interface{} { return new([]mapEntry) }, + New: func() any { return new([]mapEntry) }, } type ( diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go b/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go deleted file mode 100644 index a1f6f333860e..000000000000 --- a/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go +++ /dev/null @@ -1,28 +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 purego || appengine -// +build purego appengine - -package strs - -import pref "google.golang.org/protobuf/reflect/protoreflect" - -func UnsafeString(b []byte) string { - return string(b) -} - -func UnsafeBytes(s string) []byte { - return []byte(s) -} - -type Builder struct{} - -func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { - return prefix.Append(name) -} - -func (*Builder) MakeString(b []byte) string { - return string(b) -} diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go index a008acd09082..832a7988f145 100644 --- a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go +++ b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go @@ -2,8 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !purego && !appengine && !go1.21 -// +build !purego,!appengine,!go1.21 +//go:build !go1.21 package strs diff --git a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go121.go b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go121.go index 60166f2ba3cf..1ffddf6877a9 100644 --- a/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go121.go +++ b/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go121.go @@ -2,8 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !purego && !appengine && go1.21 -// +build !purego,!appengine,go1.21 +//go:build go1.21 package strs diff --git a/vendor/google.golang.org/protobuf/internal/version/version.go b/vendor/google.golang.org/protobuf/internal/version/version.go index fc6bfc3960b7..fb8e15e8dad5 100644 --- a/vendor/google.golang.org/protobuf/internal/version/version.go +++ b/vendor/google.golang.org/protobuf/internal/version/version.go @@ -51,8 +51,8 @@ import ( // 10. Send out the CL for review and submit it. const ( Major = 1 - Minor = 34 - Patch = 0 + Minor = 35 + Patch = 1 PreRelease = "" ) diff --git a/vendor/google.golang.org/protobuf/proto/equal.go b/vendor/google.golang.org/protobuf/proto/equal.go index 1a0be1b03c73..c36d4a9cd75b 100644 --- a/vendor/google.golang.org/protobuf/proto/equal.go +++ b/vendor/google.golang.org/protobuf/proto/equal.go @@ -8,6 +8,7 @@ import ( "reflect" "google.golang.org/protobuf/reflect/protoreflect" + "google.golang.org/protobuf/runtime/protoiface" ) // Equal reports whether two messages are equal, @@ -51,6 +52,14 @@ func Equal(x, y Message) bool { if mx.IsValid() != my.IsValid() { return false } + + // Only one of the messages needs to implement the fast-path for it to work. + pmx := protoMethods(mx) + pmy := protoMethods(my) + if pmx != nil && pmy != nil && pmx.Equal != nil && pmy.Equal != nil { + return pmx.Equal(protoiface.EqualInput{MessageA: mx, MessageB: my}).Equal + } + vx := protoreflect.ValueOfMessage(mx) vy := protoreflect.ValueOfMessage(my) return vx.Equal(vy) diff --git a/vendor/google.golang.org/protobuf/proto/extension.go b/vendor/google.golang.org/protobuf/proto/extension.go index c9c8721a6979..78445d116f7b 100644 --- a/vendor/google.golang.org/protobuf/proto/extension.go +++ b/vendor/google.golang.org/protobuf/proto/extension.go @@ -39,7 +39,49 @@ func ClearExtension(m Message, xt protoreflect.ExtensionType) { // If the field is unpopulated, it returns the default value for // scalars and an immutable, empty value for lists or messages. // It panics if xt does not extend m. -func GetExtension(m Message, xt protoreflect.ExtensionType) interface{} { +// +// The type of the value is dependent on the field type of the extension. +// For extensions generated by protoc-gen-go, the Go type is as follows: +// +// ╔═══════════════════╤═════════════════════════╗ +// ║ Go type │ Protobuf kind ║ +// ╠═══════════════════╪═════════════════════════╣ +// ║ bool │ bool ║ +// ║ int32 │ int32, sint32, sfixed32 ║ +// ║ int64 │ int64, sint64, sfixed64 ║ +// ║ uint32 │ uint32, fixed32 ║ +// ║ uint64 │ uint64, fixed64 ║ +// ║ float32 │ float ║ +// ║ float64 │ double ║ +// ║ string │ string ║ +// ║ []byte │ bytes ║ +// ║ protoreflect.Enum │ enum ║ +// ║ proto.Message │ message, group ║ +// ╚═══════════════════╧═════════════════════════╝ +// +// The protoreflect.Enum and proto.Message types are the concrete Go type +// associated with the named enum or message. Repeated fields are represented +// using a Go slice of the base element type. +// +// If a generated extension descriptor variable is directly passed to +// GetExtension, then the call should be followed immediately by a +// type assertion to the expected output value. For example: +// +// mm := proto.GetExtension(m, foopb.E_MyExtension).(*foopb.MyMessage) +// +// This pattern enables static analysis tools to verify that the asserted type +// matches the Go type associated with the extension field and +// also enables a possible future migration to a type-safe extension API. +// +// Since singular messages are the most common extension type, the pattern of +// calling HasExtension followed by GetExtension may be simplified to: +// +// if mm := proto.GetExtension(m, foopb.E_MyExtension).(*foopb.MyMessage); mm != nil { +// ... // make use of mm +// } +// +// The mm variable is non-nil if and only if HasExtension reports true. +func GetExtension(m Message, xt protoreflect.ExtensionType) any { // Treat nil message interface as an empty message; return the default. if m == nil { return xt.InterfaceOf(xt.Zero()) @@ -51,7 +93,36 @@ func GetExtension(m Message, xt protoreflect.ExtensionType) interface{} { // SetExtension stores the value of an extension field. // It panics if m is invalid, xt does not extend m, or if type of v // is invalid for the specified extension field. -func SetExtension(m Message, xt protoreflect.ExtensionType, v interface{}) { +// +// The type of the value is dependent on the field type of the extension. +// For extensions generated by protoc-gen-go, the Go type is as follows: +// +// ╔═══════════════════╤═════════════════════════╗ +// ║ Go type │ Protobuf kind ║ +// ╠═══════════════════╪═════════════════════════╣ +// ║ bool │ bool ║ +// ║ int32 │ int32, sint32, sfixed32 ║ +// ║ int64 │ int64, sint64, sfixed64 ║ +// ║ uint32 │ uint32, fixed32 ║ +// ║ uint64 │ uint64, fixed64 ║ +// ║ float32 │ float ║ +// ║ float64 │ double ║ +// ║ string │ string ║ +// ║ []byte │ bytes ║ +// ║ protoreflect.Enum │ enum ║ +// ║ proto.Message │ message, group ║ +// ╚═══════════════════╧═════════════════════════╝ +// +// The protoreflect.Enum and proto.Message types are the concrete Go type +// associated with the named enum or message. Repeated fields are represented +// using a Go slice of the base element type. +// +// If a generated extension descriptor variable is directly passed to +// SetExtension (e.g., foopb.E_MyExtension), then the value should be a +// concrete type that matches the expected Go type for the extension descriptor +// so that static analysis tools can verify type correctness. +// This also enables a possible future migration to a type-safe extension API. +func SetExtension(m Message, xt protoreflect.ExtensionType, v any) { xd := xt.TypeDescriptor() pv := xt.ValueOf(v) @@ -78,7 +149,7 @@ func SetExtension(m Message, xt protoreflect.ExtensionType, v interface{}) { // It returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current extension field. -func RangeExtensions(m Message, f func(protoreflect.ExtensionType, interface{}) bool) { +func RangeExtensions(m Message, f func(protoreflect.ExtensionType, any) bool) { // Treat nil message interface as an empty message; nothing to range over. if m == nil { return diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go index 85617554272c..ebcb4a8ab138 100644 --- a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_init.go @@ -150,6 +150,7 @@ func (r descsByName) initFieldsFromDescriptorProto(fds []*descriptorpb.FieldDesc opts = proto.Clone(opts).(*descriptorpb.FieldOptions) f.L1.Options = func() protoreflect.ProtoMessage { return opts } f.L1.IsWeak = opts.GetWeak() + f.L1.IsLazy = opts.GetLazy() if opts.Packed != nil { f.L1.EditionFeatures.IsPacked = opts.GetPacked() } @@ -214,6 +215,9 @@ func (r descsByName) initExtensionDeclarations(xds []*descriptorpb.FieldDescript if xd.JsonName != nil { x.L2.StringName.InitJSON(xd.GetJsonName()) } + if x.L1.Kind == protoreflect.MessageKind && x.L1.EditionFeatures.IsDelimitedEncoded { + x.L1.Kind = protoreflect.GroupKind + } } return xs, nil } diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go index 254ca5854245..f3cebab29c8a 100644 --- a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_resolve.go @@ -46,6 +46,11 @@ func (r *resolver) resolveMessageDependencies(ms []filedesc.Message, mds []*desc if f.L1.Kind, f.L1.Enum, f.L1.Message, err = r.findTarget(f.Kind(), f.Parent().FullName(), partialName(fd.GetTypeName()), f.IsWeak()); err != nil { return errors.New("message field %q cannot resolve type: %v", f.FullName(), err) } + if f.L1.Kind == protoreflect.GroupKind && (f.IsMap() || f.IsMapEntry()) { + // A map field might inherit delimited encoding from a file-wide default feature. + // But maps never actually use delimited encoding. (At least for now...) + f.L1.Kind = protoreflect.MessageKind + } if fd.DefaultValue != nil { v, ev, err := unmarshalDefault(fd.GetDefaultValue(), f, r.allowUnresolvable) if err != nil { diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go index c6293086750a..6de31c2ebdb4 100644 --- a/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/desc_validate.go @@ -116,18 +116,6 @@ func validateMessageDeclarations(file *filedesc.File, ms []filedesc.Message, mds if m.ExtensionRanges().Len() > 0 { return errors.New("message %q using proto3 semantics cannot have extension ranges", m.FullName()) } - // Verify that field names in proto3 do not conflict if lowercased - // with all underscores removed. - // See protoc v3.8.0: src/google/protobuf/descriptor.cc:5830-5847 - names := map[string]protoreflect.FieldDescriptor{} - for i := 0; i < m.Fields().Len(); i++ { - f1 := m.Fields().Get(i) - s := strings.Replace(strings.ToLower(string(f1.Name())), "_", "", -1) - if f2, ok := names[s]; ok { - return errors.New("message %q using proto3 semantics has conflict: %q with %q", m.FullName(), f1.Name(), f2.Name()) - } - names[s] = f1 - } } for j, fd := range md.GetField() { diff --git a/vendor/google.golang.org/protobuf/reflect/protodesc/editions.go b/vendor/google.golang.org/protobuf/reflect/protodesc/editions.go index f6a1fec6e4e5..002e0047aeab 100644 --- a/vendor/google.golang.org/protobuf/reflect/protodesc/editions.go +++ b/vendor/google.golang.org/protobuf/reflect/protodesc/editions.go @@ -14,7 +14,7 @@ import ( "google.golang.org/protobuf/proto" "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/types/descriptorpb" - gofeaturespb "google.golang.org/protobuf/types/gofeaturespb" + "google.golang.org/protobuf/types/gofeaturespb" ) var defaults = &descriptorpb.FeatureSetDefaults{} @@ -62,18 +62,20 @@ func getFeatureSetFor(ed filedesc.Edition) *descriptorpb.FeatureSet { fmt.Fprintf(os.Stderr, "internal error: unsupported edition %v (did you forget to update the embedded defaults (i.e. the bootstrap descriptor proto)?)\n", edpb) os.Exit(1) } - fs := defaults.GetDefaults()[0].GetFeatures() + fsed := defaults.GetDefaults()[0] // Using a linear search for now. // Editions are guaranteed to be sorted and thus we could use a binary search. // Given that there are only a handful of editions (with one more per year) // there is not much reason to use a binary search. for _, def := range defaults.GetDefaults() { if def.GetEdition() <= edpb { - fs = def.GetFeatures() + fsed = def } else { break } } + fs := proto.Clone(fsed.GetFixedFeatures()).(*descriptorpb.FeatureSet) + proto.Merge(fs, fsed.GetOverridableFeatures()) defaultsCache[ed] = fs return fs } diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go index d5d5af6ebedb..742cb518c40b 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/methods.go @@ -23,6 +23,7 @@ type ( Unmarshal func(unmarshalInput) (unmarshalOutput, error) Merge func(mergeInput) mergeOutput CheckInitialized func(checkInitializedInput) (checkInitializedOutput, error) + Equal func(equalInput) equalOutput } supportFlags = uint64 sizeInput = struct { @@ -75,4 +76,13 @@ type ( checkInitializedOutput = struct { pragma.NoUnkeyedLiterals } + equalInput = struct { + pragma.NoUnkeyedLiterals + MessageA Message + MessageB Message + } + equalOutput = struct { + pragma.NoUnkeyedLiterals + Equal bool + } ) diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go index 7dcc2ff09e99..ea154eec44d3 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go @@ -373,6 +373,8 @@ func (p *SourcePath) appendFieldOptions(b []byte) []byte { b = p.appendRepeatedField(b, "edition_defaults", (*SourcePath).appendFieldOptions_EditionDefault) case 21: b = p.appendSingularField(b, "features", (*SourcePath).appendFeatureSet) + case 22: + b = p.appendSingularField(b, "feature_support", (*SourcePath).appendFieldOptions_FeatureSupport) case 999: b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) } @@ -483,6 +485,8 @@ func (p *SourcePath) appendEnumValueOptions(b []byte) []byte { b = p.appendSingularField(b, "features", (*SourcePath).appendFeatureSet) case 3: b = p.appendSingularField(b, "debug_redact", nil) + case 4: + b = p.appendSingularField(b, "feature_support", (*SourcePath).appendFieldOptions_FeatureSupport) case 999: b = p.appendRepeatedField(b, "uninterpreted_option", (*SourcePath).appendUninterpretedOption) } @@ -519,6 +523,23 @@ func (p *SourcePath) appendFieldOptions_EditionDefault(b []byte) []byte { return b } +func (p *SourcePath) appendFieldOptions_FeatureSupport(b []byte) []byte { + if len(*p) == 0 { + return b + } + switch (*p)[0] { + case 1: + b = p.appendSingularField(b, "edition_introduced", nil) + case 2: + b = p.appendSingularField(b, "edition_deprecated", nil) + case 3: + b = p.appendSingularField(b, "deprecation_warning", nil) + case 4: + b = p.appendSingularField(b, "edition_removed", nil) + } + return b +} + func (p *SourcePath) appendUninterpretedOption_NamePart(b []byte) []byte { if len(*p) == 0 { return b diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go index 5b80afe52045..cd8fadbaf8f3 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/type.go @@ -510,7 +510,7 @@ type ExtensionType interface { // // ValueOf is more extensive than protoreflect.ValueOf for a given field's // value as it has more type information available. - ValueOf(interface{}) Value + ValueOf(any) Value // InterfaceOf completely unwraps the Value to the underlying Go type. // InterfaceOf panics if the input is nil or does not represent the @@ -519,13 +519,13 @@ type ExtensionType interface { // // InterfaceOf is able to unwrap the Value further than Value.Interface // as it has more type information available. - InterfaceOf(Value) interface{} + InterfaceOf(Value) any // IsValidValue reports whether the Value is valid to assign to the field. IsValidValue(Value) bool // IsValidInterface reports whether the input is valid to assign to the field. - IsValidInterface(interface{}) bool + IsValidInterface(any) bool } // EnumDescriptor describes an enum and diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go deleted file mode 100644 index 7ced876f4e89..000000000000 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_pure.go +++ /dev/null @@ -1,60 +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 purego || appengine -// +build purego appengine - -package protoreflect - -import "google.golang.org/protobuf/internal/pragma" - -type valueType int - -const ( - nilType valueType = iota - boolType - int32Type - int64Type - uint32Type - uint64Type - float32Type - float64Type - stringType - bytesType - enumType - ifaceType -) - -// value is a union where only one type can be represented at a time. -// This uses a distinct field for each type. This is type safe in Go, but -// occupies more memory than necessary (72B). -type value struct { - pragma.DoNotCompare // 0B - - typ valueType // 8B - num uint64 // 8B - str string // 16B - bin []byte // 24B - iface interface{} // 16B -} - -func valueOfString(v string) Value { - return Value{typ: stringType, str: v} -} -func valueOfBytes(v []byte) Value { - return Value{typ: bytesType, bin: v} -} -func valueOfIface(v interface{}) Value { - return Value{typ: ifaceType, iface: v} -} - -func (v Value) getString() string { - return v.str -} -func (v Value) getBytes() []byte { - return v.bin -} -func (v Value) getIface() interface{} { - return v.iface -} diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go index 1603097311e9..9fe83cef5a9c 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_union.go @@ -69,8 +69,8 @@ import ( // composite Value. Modifying an empty, read-only value panics. type Value value -// The protoreflect API uses a custom Value union type instead of interface{} -// to keep the future open for performance optimizations. Using an interface{} +// The protoreflect API uses a custom Value union type instead of any +// to keep the future open for performance optimizations. Using an any // always incurs an allocation for primitives (e.g., int64) since it needs to // be boxed on the heap (as interfaces can only contain pointers natively). // Instead, we represent the Value union as a flat struct that internally keeps @@ -85,7 +85,7 @@ type Value value // ValueOf returns a Value initialized with the concrete value stored in v. // This panics if the type does not match one of the allowed types in the // Value union. -func ValueOf(v interface{}) Value { +func ValueOf(v any) Value { switch v := v.(type) { case nil: return Value{} @@ -192,10 +192,10 @@ func (v Value) IsValid() bool { return v.typ != nilType } -// Interface returns v as an interface{}. +// Interface returns v as an any. // // Invariant: v == ValueOf(v).Interface() -func (v Value) Interface() interface{} { +func (v Value) Interface() any { switch v.typ { case nilType: return nil @@ -406,8 +406,8 @@ func (k MapKey) IsValid() bool { return Value(k).IsValid() } -// Interface returns k as an interface{}. -func (k MapKey) Interface() interface{} { +// Interface returns k as an any. +func (k MapKey) Interface() any { return Value(k).Interface() } diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go index b1fdbe3e8e17..0015fcb35d83 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go @@ -2,8 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !purego && !appengine && !go1.21 -// +build !purego,!appengine,!go1.21 +//go:build !go1.21 package protoreflect @@ -45,7 +44,7 @@ var ( // typeOf returns a pointer to the Go type information. // The pointer is comparable and equal if and only if the types are identical. -func typeOf(t interface{}) unsafe.Pointer { +func typeOf(t any) unsafe.Pointer { return (*ifaceHeader)(unsafe.Pointer(&t)).Type } @@ -80,7 +79,7 @@ func valueOfBytes(v []byte) Value { p := (*sliceHeader)(unsafe.Pointer(&v)) return Value{typ: bytesType, ptr: p.Data, num: uint64(len(v))} } -func valueOfIface(v interface{}) Value { +func valueOfIface(v any) Value { p := (*ifaceHeader)(unsafe.Pointer(&v)) return Value{typ: p.Type, ptr: p.Data} } @@ -93,7 +92,7 @@ func (v Value) getBytes() (x []byte) { *(*sliceHeader)(unsafe.Pointer(&x)) = sliceHeader{Data: v.ptr, Len: int(v.num), Cap: int(v.num)} return x } -func (v Value) getIface() (x interface{}) { +func (v Value) getIface() (x any) { *(*ifaceHeader)(unsafe.Pointer(&x)) = ifaceHeader{Type: v.typ, Data: v.ptr} return x } diff --git a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go121.go b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go121.go index 43547011173a..479527b58dd3 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go121.go +++ b/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go121.go @@ -2,8 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !purego && !appengine && go1.21 -// +build !purego,!appengine,go1.21 +//go:build go1.21 package protoreflect @@ -15,7 +14,7 @@ import ( type ( ifaceHeader struct { - _ [0]interface{} // if interfaces have greater alignment than unsafe.Pointer, this will enforce it. + _ [0]any // if interfaces have greater alignment than unsafe.Pointer, this will enforce it. Type unsafe.Pointer Data unsafe.Pointer } @@ -37,7 +36,7 @@ var ( // typeOf returns a pointer to the Go type information. // The pointer is comparable and equal if and only if the types are identical. -func typeOf(t interface{}) unsafe.Pointer { +func typeOf(t any) unsafe.Pointer { return (*ifaceHeader)(unsafe.Pointer(&t)).Type } @@ -70,7 +69,7 @@ func valueOfString(v string) Value { func valueOfBytes(v []byte) Value { return Value{typ: bytesType, ptr: unsafe.Pointer(unsafe.SliceData(v)), num: uint64(len(v))} } -func valueOfIface(v interface{}) Value { +func valueOfIface(v any) Value { p := (*ifaceHeader)(unsafe.Pointer(&v)) return Value{typ: p.Type, ptr: p.Data} } @@ -81,7 +80,7 @@ func (v Value) getString() string { func (v Value) getBytes() []byte { return unsafe.Slice((*byte)(v.ptr), v.num) } -func (v Value) getIface() (x interface{}) { +func (v Value) getIface() (x any) { *(*ifaceHeader)(unsafe.Pointer(&x)) = ifaceHeader{Type: v.typ, Data: v.ptr} return x } diff --git a/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go b/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go index 6267dc52a67a..de1777339141 100644 --- a/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go +++ b/vendor/google.golang.org/protobuf/reflect/protoregistry/registry.go @@ -95,7 +95,7 @@ type Files struct { // multiple files. Only top-level declarations are registered. // Note that enum values are in the top-level since that are in the same // scope as the parent enum. - descsByName map[protoreflect.FullName]interface{} + descsByName map[protoreflect.FullName]any filesByPath map[string][]protoreflect.FileDescriptor numFiles int } @@ -117,7 +117,7 @@ func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error { defer globalMutex.Unlock() } if r.descsByName == nil { - r.descsByName = map[protoreflect.FullName]interface{}{ + r.descsByName = map[protoreflect.FullName]any{ "": &packageDescriptor{}, } r.filesByPath = make(map[string][]protoreflect.FileDescriptor) @@ -485,7 +485,7 @@ type Types struct { } type ( - typesByName map[protoreflect.FullName]interface{} + typesByName map[protoreflect.FullName]any extensionsByMessage map[protoreflect.FullName]extensionsByNumber extensionsByNumber map[protoreflect.FieldNumber]protoreflect.ExtensionType ) @@ -570,7 +570,7 @@ func (r *Types) RegisterExtension(xt protoreflect.ExtensionType) error { return nil } -func (r *Types) register(kind string, desc protoreflect.Descriptor, typ interface{}) error { +func (r *Types) register(kind string, desc protoreflect.Descriptor, typ any) error { name := desc.FullName() prev := r.typesByName[name] if prev != nil { @@ -841,7 +841,7 @@ func (r *Types) RangeExtensionsByMessage(message protoreflect.FullName, f func(p } } -func typeName(t interface{}) string { +func typeName(t any) string { switch t.(type) { case protoreflect.EnumType: return "enum" @@ -854,7 +854,7 @@ func typeName(t interface{}) string { } } -func amendErrorWithCaller(err error, prev, curr interface{}) error { +func amendErrorWithCaller(err error, prev, curr any) error { prevPkg := goPackage(prev) currPkg := goPackage(curr) if prevPkg == "" || currPkg == "" || prevPkg == currPkg { @@ -863,7 +863,7 @@ func amendErrorWithCaller(err error, prev, curr interface{}) error { return errors.New("%s\n\tpreviously from: %q\n\tcurrently from: %q", err, prevPkg, currPkg) } -func goPackage(v interface{}) string { +func goPackage(v any) string { switch d := v.(type) { case protoreflect.EnumType: v = d.Descriptor() diff --git a/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go b/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go index 44cf467d8845..246156561ce4 100644 --- a/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go +++ b/vendor/google.golang.org/protobuf/runtime/protoiface/methods.go @@ -39,6 +39,9 @@ type Methods = struct { // CheckInitialized returns an error if any required fields in the message are not set. CheckInitialized func(CheckInitializedInput) (CheckInitializedOutput, error) + + // Equal compares two messages and returns EqualOutput.Equal == true if they are equal. + Equal func(EqualInput) EqualOutput } // SupportFlags indicate support for optional features. @@ -166,3 +169,18 @@ type CheckInitializedInput = struct { type CheckInitializedOutput = struct { pragma.NoUnkeyedLiterals } + +// EqualInput is input to the Equal method. +type EqualInput = struct { + pragma.NoUnkeyedLiterals + + MessageA protoreflect.Message + MessageB protoreflect.Message +} + +// EqualOutput is output from the Equal method. +type EqualOutput = struct { + pragma.NoUnkeyedLiterals + + Equal bool +} diff --git a/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go b/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go index 78624cf60b35..6dea75cd5b15 100644 --- a/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go +++ b/vendor/google.golang.org/protobuf/types/descriptorpb/descriptor.pb.go @@ -54,6 +54,9 @@ type Edition int32 const ( // A placeholder for an unknown edition value. Edition_EDITION_UNKNOWN Edition = 0 + // A placeholder edition for specifying default behaviors *before* a feature + // was first introduced. This is effectively an "infinite past". + Edition_EDITION_LEGACY Edition = 900 // Legacy syntax "editions". These pre-date editions, but behave much like // distinct editions. These can't be used to specify the edition of proto // files, but feature definitions must supply proto2/proto3 defaults for @@ -82,6 +85,7 @@ const ( var ( Edition_name = map[int32]string{ 0: "EDITION_UNKNOWN", + 900: "EDITION_LEGACY", 998: "EDITION_PROTO2", 999: "EDITION_PROTO3", 1000: "EDITION_2023", @@ -95,6 +99,7 @@ var ( } Edition_value = map[string]int32{ "EDITION_UNKNOWN": 0, + "EDITION_LEGACY": 900, "EDITION_PROTO2": 998, "EDITION_PROTO3": 999, "EDITION_2023": 1000, @@ -1212,11 +1217,9 @@ type FileDescriptorSet struct { func (x *FileDescriptorSet) Reset() { *x = FileDescriptorSet{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FileDescriptorSet) String() string { @@ -1227,7 +1230,7 @@ func (*FileDescriptorSet) ProtoMessage() {} func (x *FileDescriptorSet) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1286,11 +1289,9 @@ type FileDescriptorProto struct { func (x *FileDescriptorProto) Reset() { *x = FileDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FileDescriptorProto) String() string { @@ -1301,7 +1302,7 @@ func (*FileDescriptorProto) ProtoMessage() {} func (x *FileDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1429,11 +1430,9 @@ type DescriptorProto struct { func (x *DescriptorProto) Reset() { *x = DescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DescriptorProto) String() string { @@ -1444,7 +1443,7 @@ func (*DescriptorProto) ProtoMessage() {} func (x *DescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1556,11 +1555,9 @@ const ( func (x *ExtensionRangeOptions) Reset() { *x = ExtensionRangeOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionRangeOptions) String() string { @@ -1571,7 +1568,7 @@ func (*ExtensionRangeOptions) ProtoMessage() {} func (x *ExtensionRangeOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1675,11 +1672,9 @@ type FieldDescriptorProto struct { func (x *FieldDescriptorProto) Reset() { *x = FieldDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldDescriptorProto) String() string { @@ -1690,7 +1685,7 @@ func (*FieldDescriptorProto) ProtoMessage() {} func (x *FieldDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1794,11 +1789,9 @@ type OneofDescriptorProto struct { func (x *OneofDescriptorProto) Reset() { *x = OneofDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OneofDescriptorProto) String() string { @@ -1809,7 +1802,7 @@ func (*OneofDescriptorProto) ProtoMessage() {} func (x *OneofDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1858,11 +1851,9 @@ type EnumDescriptorProto struct { func (x *EnumDescriptorProto) Reset() { *x = EnumDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumDescriptorProto) String() string { @@ -1873,7 +1864,7 @@ func (*EnumDescriptorProto) ProtoMessage() {} func (x *EnumDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1936,11 +1927,9 @@ type EnumValueDescriptorProto struct { func (x *EnumValueDescriptorProto) Reset() { *x = EnumValueDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumValueDescriptorProto) String() string { @@ -1951,7 +1940,7 @@ func (*EnumValueDescriptorProto) ProtoMessage() {} func (x *EnumValueDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2000,11 +1989,9 @@ type ServiceDescriptorProto struct { func (x *ServiceDescriptorProto) Reset() { *x = ServiceDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServiceDescriptorProto) String() string { @@ -2015,7 +2002,7 @@ func (*ServiceDescriptorProto) ProtoMessage() {} func (x *ServiceDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2077,11 +2064,9 @@ const ( func (x *MethodDescriptorProto) Reset() { *x = MethodDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MethodDescriptorProto) String() string { @@ -2092,7 +2077,7 @@ func (*MethodDescriptorProto) ProtoMessage() {} func (x *MethodDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2177,12 +2162,16 @@ type FileOptions struct { // // Deprecated: Marked as deprecated in google/protobuf/descriptor.proto. JavaGenerateEqualsAndHash *bool `protobuf:"varint,20,opt,name=java_generate_equals_and_hash,json=javaGenerateEqualsAndHash" json:"java_generate_equals_and_hash,omitempty"` - // If set true, then the Java2 code generator will generate code that - // throws an exception whenever an attempt is made to assign a non-UTF-8 - // byte sequence to a string field. - // Message reflection will do the same. - // However, an extension field still accepts non-UTF-8 byte sequences. - // This option has no effect on when used with the lite runtime. + // A proto2 file can set this to true to opt in to UTF-8 checking for Java, + // which will throw an exception if invalid UTF-8 is parsed from the wire or + // assigned to a string field. + // + // TODO: clarify exactly what kinds of field types this option + // applies to, and update these docs accordingly. + // + // Proto3 files already perform these checks. Setting the option explicitly to + // false has no effect: it cannot be used to opt proto3 files out of UTF-8 + // checks. JavaStringCheckUtf8 *bool `protobuf:"varint,27,opt,name=java_string_check_utf8,json=javaStringCheckUtf8,def=0" json:"java_string_check_utf8,omitempty"` OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,json=optimizeFor,enum=google.protobuf.FileOptions_OptimizeMode,def=1" json:"optimize_for,omitempty"` // Sets the Go package where structs generated from this .proto will be @@ -2258,11 +2247,9 @@ const ( func (x *FileOptions) Reset() { *x = FileOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FileOptions) String() string { @@ -2273,7 +2260,7 @@ func (*FileOptions) ProtoMessage() {} func (x *FileOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2525,11 +2512,9 @@ const ( func (x *MessageOptions) Reset() { *x = MessageOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageOptions) String() string { @@ -2540,7 +2525,7 @@ func (*MessageOptions) ProtoMessage() {} func (x *MessageOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2679,7 +2664,8 @@ type FieldOptions struct { Targets []FieldOptions_OptionTargetType `protobuf:"varint,19,rep,name=targets,enum=google.protobuf.FieldOptions_OptionTargetType" json:"targets,omitempty"` EditionDefaults []*FieldOptions_EditionDefault `protobuf:"bytes,20,rep,name=edition_defaults,json=editionDefaults" json:"edition_defaults,omitempty"` // Any features defined in the specific edition. - Features *FeatureSet `protobuf:"bytes,21,opt,name=features" json:"features,omitempty"` + Features *FeatureSet `protobuf:"bytes,21,opt,name=features" json:"features,omitempty"` + FeatureSupport *FieldOptions_FeatureSupport `protobuf:"bytes,22,opt,name=feature_support,json=featureSupport" json:"feature_support,omitempty"` // The parser stores options it doesn't recognize here. See above. UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` } @@ -2697,11 +2683,9 @@ const ( func (x *FieldOptions) Reset() { *x = FieldOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldOptions) String() string { @@ -2712,7 +2696,7 @@ func (*FieldOptions) ProtoMessage() {} func (x *FieldOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2811,6 +2795,13 @@ func (x *FieldOptions) GetFeatures() *FeatureSet { return nil } +func (x *FieldOptions) GetFeatureSupport() *FieldOptions_FeatureSupport { + if x != nil { + return x.FeatureSupport + } + return nil +} + func (x *FieldOptions) GetUninterpretedOption() []*UninterpretedOption { if x != nil { return x.UninterpretedOption @@ -2832,11 +2823,9 @@ type OneofOptions struct { func (x *OneofOptions) Reset() { *x = OneofOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OneofOptions) String() string { @@ -2847,7 +2836,7 @@ func (*OneofOptions) ProtoMessage() {} func (x *OneofOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2912,11 +2901,9 @@ const ( func (x *EnumOptions) Reset() { *x = EnumOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumOptions) String() string { @@ -2927,7 +2914,7 @@ func (*EnumOptions) ProtoMessage() {} func (x *EnumOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2995,6 +2982,8 @@ type EnumValueOptions struct { // out when using debug formats, e.g. when the field contains sensitive // credentials. DebugRedact *bool `protobuf:"varint,3,opt,name=debug_redact,json=debugRedact,def=0" json:"debug_redact,omitempty"` + // Information about the support window of a feature value. + FeatureSupport *FieldOptions_FeatureSupport `protobuf:"bytes,4,opt,name=feature_support,json=featureSupport" json:"feature_support,omitempty"` // The parser stores options it doesn't recognize here. See above. UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"` } @@ -3007,11 +2996,9 @@ const ( func (x *EnumValueOptions) Reset() { *x = EnumValueOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumValueOptions) String() string { @@ -3022,7 +3009,7 @@ func (*EnumValueOptions) ProtoMessage() {} func (x *EnumValueOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3058,6 +3045,13 @@ func (x *EnumValueOptions) GetDebugRedact() bool { return Default_EnumValueOptions_DebugRedact } +func (x *EnumValueOptions) GetFeatureSupport() *FieldOptions_FeatureSupport { + if x != nil { + return x.FeatureSupport + } + return nil +} + func (x *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption { if x != nil { return x.UninterpretedOption @@ -3089,11 +3083,9 @@ const ( func (x *ServiceOptions) Reset() { *x = ServiceOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServiceOptions) String() string { @@ -3104,7 +3096,7 @@ func (*ServiceOptions) ProtoMessage() {} func (x *ServiceOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3166,11 +3158,9 @@ const ( func (x *MethodOptions) Reset() { *x = MethodOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MethodOptions) String() string { @@ -3181,7 +3171,7 @@ func (*MethodOptions) ProtoMessage() {} func (x *MethodOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3248,11 +3238,9 @@ type UninterpretedOption struct { func (x *UninterpretedOption) Reset() { *x = UninterpretedOption{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UninterpretedOption) String() string { @@ -3263,7 +3251,7 @@ func (*UninterpretedOption) ProtoMessage() {} func (x *UninterpretedOption) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3349,11 +3337,9 @@ type FeatureSet struct { func (x *FeatureSet) Reset() { *x = FeatureSet{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeatureSet) String() string { @@ -3364,7 +3350,7 @@ func (*FeatureSet) ProtoMessage() {} func (x *FeatureSet) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3441,11 +3427,9 @@ type FeatureSetDefaults struct { func (x *FeatureSetDefaults) Reset() { *x = FeatureSetDefaults{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeatureSetDefaults) String() string { @@ -3456,7 +3440,7 @@ func (*FeatureSetDefaults) ProtoMessage() {} func (x *FeatureSetDefaults) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3552,11 +3536,9 @@ type SourceCodeInfo struct { func (x *SourceCodeInfo) Reset() { *x = SourceCodeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SourceCodeInfo) String() string { @@ -3567,7 +3549,7 @@ func (*SourceCodeInfo) ProtoMessage() {} func (x *SourceCodeInfo) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3604,11 +3586,9 @@ type GeneratedCodeInfo struct { func (x *GeneratedCodeInfo) Reset() { *x = GeneratedCodeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GeneratedCodeInfo) String() string { @@ -3619,7 +3599,7 @@ func (*GeneratedCodeInfo) ProtoMessage() {} func (x *GeneratedCodeInfo) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3653,11 +3633,9 @@ type DescriptorProto_ExtensionRange struct { func (x *DescriptorProto_ExtensionRange) Reset() { *x = DescriptorProto_ExtensionRange{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DescriptorProto_ExtensionRange) String() string { @@ -3668,7 +3646,7 @@ func (*DescriptorProto_ExtensionRange) ProtoMessage() {} func (x *DescriptorProto_ExtensionRange) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3718,11 +3696,9 @@ type DescriptorProto_ReservedRange struct { func (x *DescriptorProto_ReservedRange) Reset() { *x = DescriptorProto_ReservedRange{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DescriptorProto_ReservedRange) String() string { @@ -3733,7 +3709,7 @@ func (*DescriptorProto_ReservedRange) ProtoMessage() {} func (x *DescriptorProto_ReservedRange) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3787,11 +3763,9 @@ type ExtensionRangeOptions_Declaration struct { func (x *ExtensionRangeOptions_Declaration) Reset() { *x = ExtensionRangeOptions_Declaration{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionRangeOptions_Declaration) String() string { @@ -3802,7 +3776,7 @@ func (*ExtensionRangeOptions_Declaration) ProtoMessage() {} func (x *ExtensionRangeOptions_Declaration) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3869,11 +3843,9 @@ type EnumDescriptorProto_EnumReservedRange struct { func (x *EnumDescriptorProto_EnumReservedRange) Reset() { *x = EnumDescriptorProto_EnumReservedRange{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumDescriptorProto_EnumReservedRange) String() string { @@ -3884,7 +3856,7 @@ func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage() {} func (x *EnumDescriptorProto_EnumReservedRange) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3924,11 +3896,9 @@ type FieldOptions_EditionDefault struct { func (x *FieldOptions_EditionDefault) Reset() { *x = FieldOptions_EditionDefault{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldOptions_EditionDefault) String() string { @@ -3939,7 +3909,7 @@ func (*FieldOptions_EditionDefault) ProtoMessage() {} func (x *FieldOptions_EditionDefault) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3968,6 +3938,86 @@ func (x *FieldOptions_EditionDefault) GetValue() string { return "" } +// Information about the support window of a feature. +type FieldOptions_FeatureSupport struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The edition that this feature was first available in. In editions + // earlier than this one, the default assigned to EDITION_LEGACY will be + // used, and proto files will not be able to override it. + EditionIntroduced *Edition `protobuf:"varint,1,opt,name=edition_introduced,json=editionIntroduced,enum=google.protobuf.Edition" json:"edition_introduced,omitempty"` + // The edition this feature becomes deprecated in. Using this after this + // edition may trigger warnings. + EditionDeprecated *Edition `protobuf:"varint,2,opt,name=edition_deprecated,json=editionDeprecated,enum=google.protobuf.Edition" json:"edition_deprecated,omitempty"` + // The deprecation warning text if this feature is used after the edition it + // was marked deprecated in. + DeprecationWarning *string `protobuf:"bytes,3,opt,name=deprecation_warning,json=deprecationWarning" json:"deprecation_warning,omitempty"` + // The edition this feature is no longer available in. In editions after + // this one, the last default assigned will be used, and proto files will + // not be able to override it. + EditionRemoved *Edition `protobuf:"varint,4,opt,name=edition_removed,json=editionRemoved,enum=google.protobuf.Edition" json:"edition_removed,omitempty"` +} + +func (x *FieldOptions_FeatureSupport) Reset() { + *x = FieldOptions_FeatureSupport{} + mi := &file_google_protobuf_descriptor_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldOptions_FeatureSupport) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldOptions_FeatureSupport) ProtoMessage() {} + +func (x *FieldOptions_FeatureSupport) ProtoReflect() protoreflect.Message { + mi := &file_google_protobuf_descriptor_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldOptions_FeatureSupport.ProtoReflect.Descriptor instead. +func (*FieldOptions_FeatureSupport) Descriptor() ([]byte, []int) { + return file_google_protobuf_descriptor_proto_rawDescGZIP(), []int{12, 1} +} + +func (x *FieldOptions_FeatureSupport) GetEditionIntroduced() Edition { + if x != nil && x.EditionIntroduced != nil { + return *x.EditionIntroduced + } + return Edition_EDITION_UNKNOWN +} + +func (x *FieldOptions_FeatureSupport) GetEditionDeprecated() Edition { + if x != nil && x.EditionDeprecated != nil { + return *x.EditionDeprecated + } + return Edition_EDITION_UNKNOWN +} + +func (x *FieldOptions_FeatureSupport) GetDeprecationWarning() string { + if x != nil && x.DeprecationWarning != nil { + return *x.DeprecationWarning + } + return "" +} + +func (x *FieldOptions_FeatureSupport) GetEditionRemoved() Edition { + if x != nil && x.EditionRemoved != nil { + return *x.EditionRemoved + } + return Edition_EDITION_UNKNOWN +} + // The name of the uninterpreted option. Each string represents a segment in // a dot-separated name. is_extension is true iff a segment represents an // extension (denoted with parentheses in options specs in .proto files). @@ -3984,11 +4034,9 @@ type UninterpretedOption_NamePart struct { func (x *UninterpretedOption_NamePart) Reset() { *x = UninterpretedOption_NamePart{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UninterpretedOption_NamePart) String() string { @@ -3998,8 +4046,8 @@ func (x *UninterpretedOption_NamePart) String() string { func (*UninterpretedOption_NamePart) ProtoMessage() {} func (x *UninterpretedOption_NamePart) ProtoReflect() protoreflect.Message { - mi := &file_google_protobuf_descriptor_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_google_protobuf_descriptor_proto_msgTypes[29] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4037,17 +4085,18 @@ type FeatureSetDefaults_FeatureSetEditionDefault struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Edition *Edition `protobuf:"varint,3,opt,name=edition,enum=google.protobuf.Edition" json:"edition,omitempty"` - Features *FeatureSet `protobuf:"bytes,2,opt,name=features" json:"features,omitempty"` + Edition *Edition `protobuf:"varint,3,opt,name=edition,enum=google.protobuf.Edition" json:"edition,omitempty"` + // Defaults of features that can be overridden in this edition. + OverridableFeatures *FeatureSet `protobuf:"bytes,4,opt,name=overridable_features,json=overridableFeatures" json:"overridable_features,omitempty"` + // Defaults of features that can't be overridden in this edition. + FixedFeatures *FeatureSet `protobuf:"bytes,5,opt,name=fixed_features,json=fixedFeatures" json:"fixed_features,omitempty"` } func (x *FeatureSetDefaults_FeatureSetEditionDefault) Reset() { *x = FeatureSetDefaults_FeatureSetEditionDefault{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeatureSetDefaults_FeatureSetEditionDefault) String() string { @@ -4057,8 +4106,8 @@ func (x *FeatureSetDefaults_FeatureSetEditionDefault) String() string { func (*FeatureSetDefaults_FeatureSetEditionDefault) ProtoMessage() {} func (x *FeatureSetDefaults_FeatureSetEditionDefault) ProtoReflect() protoreflect.Message { - mi := &file_google_protobuf_descriptor_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_google_protobuf_descriptor_proto_msgTypes[30] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4080,9 +4129,16 @@ func (x *FeatureSetDefaults_FeatureSetEditionDefault) GetEdition() Edition { return Edition_EDITION_UNKNOWN } -func (x *FeatureSetDefaults_FeatureSetEditionDefault) GetFeatures() *FeatureSet { +func (x *FeatureSetDefaults_FeatureSetEditionDefault) GetOverridableFeatures() *FeatureSet { if x != nil { - return x.Features + return x.OverridableFeatures + } + return nil +} + +func (x *FeatureSetDefaults_FeatureSetEditionDefault) GetFixedFeatures() *FeatureSet { + if x != nil { + return x.FixedFeatures } return nil } @@ -4187,11 +4243,9 @@ type SourceCodeInfo_Location struct { func (x *SourceCodeInfo_Location) Reset() { *x = SourceCodeInfo_Location{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SourceCodeInfo_Location) String() string { @@ -4201,8 +4255,8 @@ func (x *SourceCodeInfo_Location) String() string { func (*SourceCodeInfo_Location) ProtoMessage() {} func (x *SourceCodeInfo_Location) ProtoReflect() protoreflect.Message { - mi := &file_google_protobuf_descriptor_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_google_protobuf_descriptor_proto_msgTypes[31] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4274,11 +4328,9 @@ type GeneratedCodeInfo_Annotation struct { func (x *GeneratedCodeInfo_Annotation) Reset() { *x = GeneratedCodeInfo_Annotation{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GeneratedCodeInfo_Annotation) String() string { @@ -4288,8 +4340,8 @@ func (x *GeneratedCodeInfo_Annotation) String() string { func (*GeneratedCodeInfo_Annotation) ProtoMessage() {} func (x *GeneratedCodeInfo_Annotation) ProtoReflect() protoreflect.Message { - mi := &file_google_protobuf_descriptor_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_google_protobuf_descriptor_proto_msgTypes[32] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4597,7 +4649,7 @@ var file_google_protobuf_descriptor_proto_rawDesc = []byte{ 0x67, 0x12, 0x30, 0x0a, 0x10, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x22, 0x97, 0x09, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x69, 0x6e, 0x67, 0x22, 0xad, 0x09, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6a, 0x61, 0x76, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x6f, @@ -4670,405 +4722,445 @@ var file_google_protobuf_descriptor_proto_rawDesc = []byte{ 0x45, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x49, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x03, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, - 0x02, 0x4a, 0x04, 0x08, 0x2a, 0x10, 0x2b, 0x4a, 0x04, 0x08, 0x26, 0x10, 0x27, 0x22, 0xf4, 0x03, - 0x0a, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x3c, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, - 0x77, 0x69, 0x72, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x14, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x53, 0x65, 0x74, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x4c, - 0x0a, 0x1f, 0x6e, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x5f, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x1c, - 0x6e, 0x6f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0a, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x56, 0x0a, 0x26, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6c, - 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, - 0x42, 0x02, 0x18, 0x01, 0x52, 0x22, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, - 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, - 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, - 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, - 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, - 0x10, 0x06, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x4a, 0x04, - 0x08, 0x09, 0x10, 0x0a, 0x22, 0xad, 0x0a, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, - 0x47, 0x52, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, - 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, - 0x12, 0x47, 0x0a, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, - 0x4c, 0x52, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x04, 0x6c, 0x61, 0x7a, - 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x04, - 0x6c, 0x61, 0x7a, 0x79, 0x12, 0x2e, 0x0a, 0x0f, 0x75, 0x6e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x7a, 0x79, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, - 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0e, 0x75, 0x6e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x4c, 0x61, 0x7a, 0x79, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, - 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x04, 0x77, - 0x65, 0x61, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, - 0x52, 0x04, 0x77, 0x65, 0x61, 0x6b, 0x12, 0x28, 0x0a, 0x0c, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, - 0x72, 0x65, 0x64, 0x61, 0x63, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, - 0x6c, 0x73, 0x65, 0x52, 0x0b, 0x64, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x64, 0x61, 0x63, 0x74, - 0x12, 0x4b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x09, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, - 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2e, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x10, 0x65, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, - 0x0f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, - 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x15, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, - 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, - 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x1a, 0x5a, 0x0a, 0x0e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0x2f, 0x0a, 0x05, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, - 0x4e, 0x47, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x10, - 0x0a, 0x0c, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x49, 0x45, 0x43, 0x45, 0x10, 0x02, - 0x22, 0x35, 0x0a, 0x06, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, - 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x5f, - 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, - 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x22, 0x55, 0x0a, 0x0f, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, - 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, - 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, - 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x52, 0x45, 0x54, 0x45, - 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x10, 0x02, 0x22, 0x8c, - 0x02, 0x0a, 0x10, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, - 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, - 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x41, 0x4e, 0x47, - 0x45, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, - 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x45, 0x4c, - 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x4f, 0x4e, 0x45, 0x4f, 0x46, 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, - 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x06, - 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x45, 0x4e, 0x54, 0x52, 0x59, 0x10, 0x07, 0x12, 0x17, 0x0a, 0x13, - 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, - 0x49, 0x43, 0x45, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x10, 0x09, 0x2a, 0x09, 0x08, - 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, - 0x08, 0x12, 0x10, 0x13, 0x22, 0xac, 0x01, 0x0a, 0x0c, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, - 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, - 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, - 0x80, 0x80, 0x02, 0x22, 0xd1, 0x02, 0x0a, 0x0b, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x6c, 0x69, - 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x41, - 0x6c, 0x69, 0x61, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, - 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x56, 0x0a, 0x26, 0x64, - 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, - 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x6c, 0x69, 0x63, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, - 0x22, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, - 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, - 0x63, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, - 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, - 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, + 0x02, 0x4a, 0x04, 0x08, 0x2a, 0x10, 0x2b, 0x4a, 0x04, 0x08, 0x26, 0x10, 0x27, 0x52, 0x14, 0x70, + 0x68, 0x70, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x22, 0xf4, 0x03, 0x0a, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x77, 0x69, 0x72, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x14, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x57, 0x69, 0x72, 0x65, 0x46, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x12, 0x4c, 0x0a, 0x1f, 0x6e, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, + 0x61, 0x72, 0x64, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x5f, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, + 0x61, 0x6c, 0x73, 0x65, 0x52, 0x1c, 0x6e, 0x6f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x70, + 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x61, + 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x56, 0x0a, 0x26, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, + 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x22, 0x64, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x4a, 0x73, 0x6f, 0x6e, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x37, + 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, - 0x02, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x22, 0x81, 0x02, 0x0a, 0x10, 0x45, 0x6e, 0x75, 0x6d, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, - 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0c, - 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x72, 0x65, 0x64, 0x61, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x04, + 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, + 0x08, 0x08, 0x10, 0x09, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x22, 0x9d, 0x0d, 0x0a, 0x0c, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x63, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x54, 0x79, 0x70, 0x65, 0x3a, + 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x52, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, + 0x70, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x47, 0x0a, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, 0x3a, 0x09, 0x4a, 0x53, + 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x52, 0x06, 0x6a, 0x73, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x19, 0x0a, 0x04, 0x6c, 0x61, 0x7a, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, + 0x61, 0x6c, 0x73, 0x65, 0x52, 0x04, 0x6c, 0x61, 0x7a, 0x79, 0x12, 0x2e, 0x0a, 0x0f, 0x75, 0x6e, + 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x7a, 0x79, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0e, 0x75, 0x6e, 0x76, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4c, 0x61, 0x7a, 0x79, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x19, 0x0a, 0x04, 0x77, 0x65, 0x61, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x3a, + 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x04, 0x77, 0x65, 0x61, 0x6b, 0x12, 0x28, 0x0a, 0x0c, + 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x72, 0x65, 0x64, 0x61, 0x63, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0b, 0x64, 0x65, 0x62, 0x75, 0x67, - 0x52, 0x65, 0x64, 0x61, 0x63, 0x74, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, + 0x52, 0x65, 0x64, 0x61, 0x63, 0x74, 0x12, 0x4b, 0x0a, 0x09, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x18, 0x13, + 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x12, 0x57, 0x0a, + 0x10, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x0f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, + 0x55, 0x0a, 0x0f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, + 0x72, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x0e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0xd5, 0x01, 0x0a, 0x0e, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, - 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, - 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, - 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x58, - 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x1a, 0x5a, 0x0a, 0x0e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x65, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x96, 0x02, 0x0a, + 0x0e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, + 0x47, 0x0a, 0x12, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x74, 0x72, 0x6f, + 0x64, 0x75, 0x63, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, + 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x64, 0x12, 0x47, 0x0a, 0x12, 0x65, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, + 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x61, 0x72, 0x6e, 0x69, + 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x05, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, + 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, + 0x52, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x50, + 0x49, 0x45, 0x43, 0x45, 0x10, 0x02, 0x22, 0x35, 0x0a, 0x06, 0x4a, 0x53, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x00, 0x12, + 0x0d, 0x0a, 0x09, 0x4a, 0x53, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, + 0x0a, 0x09, 0x4a, 0x53, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x22, 0x55, 0x0a, + 0x0f, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x45, 0x4e, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x14, + 0x0a, 0x10, 0x52, 0x45, 0x54, 0x45, 0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, + 0x43, 0x45, 0x10, 0x02, 0x22, 0x8c, 0x02, 0x0a, 0x10, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, + 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x41, 0x52, 0x47, + 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, + 0x4e, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, + 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, + 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x41, 0x52, + 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x4e, 0x45, 0x4f, 0x46, 0x10, 0x05, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x45, 0x4e, 0x55, 0x4d, 0x10, 0x06, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x45, 0x4e, 0x54, 0x52, 0x59, + 0x10, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x10, 0x08, 0x12, 0x16, 0x0a, 0x12, 0x54, + 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, + 0x44, 0x10, 0x09, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, + 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x12, 0x10, 0x13, 0x22, 0xac, 0x01, 0x0a, 0x0c, 0x4f, + 0x6e, 0x65, 0x6f, 0x66, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, - 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, - 0x80, 0x80, 0x02, 0x22, 0x99, 0x03, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, - 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x71, 0x0a, 0x11, - 0x69, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, - 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x3a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, - 0x54, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x10, 0x69, - 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, - 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x23, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, - 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, - 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x50, 0x0a, 0x10, 0x49, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, - 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, - 0x54, 0x45, 0x4e, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x13, 0x0a, 0x0f, 0x4e, 0x4f, 0x5f, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x45, 0x46, 0x46, 0x45, 0x43, - 0x54, 0x53, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, - 0x4e, 0x54, 0x10, 0x02, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, - 0x9a, 0x03, 0x0a, 0x13, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, - 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, - 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, - 0x50, 0x61, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, - 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, - 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x10, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0e, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x1a, 0x4a, 0x0a, 0x08, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, - 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, - 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, - 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x02, 0x28, 0x08, 0x52, - 0x0b, 0x69, 0x73, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x8c, 0x0a, 0x0a, - 0x0a, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x12, 0x8b, 0x01, 0x0a, 0x0e, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, - 0x74, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x42, - 0x39, 0x88, 0x01, 0x01, 0x98, 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, - 0x58, 0x50, 0x4c, 0x49, 0x43, 0x49, 0x54, 0x18, 0xe6, 0x07, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x49, - 0x4d, 0x50, 0x4c, 0x49, 0x43, 0x49, 0x54, 0x18, 0xe7, 0x07, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, - 0x58, 0x50, 0x4c, 0x49, 0x43, 0x49, 0x54, 0x18, 0xe8, 0x07, 0x52, 0x0d, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x09, 0x65, 0x6e, 0x75, - 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, + 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, + 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, + 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0xd1, 0x02, 0x0a, 0x0b, 0x45, 0x6e, + 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x12, 0x56, 0x0a, 0x26, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x22, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x43, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, + 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, + 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, + 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x22, 0xd8, 0x02, + 0x0a, 0x10, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0c, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x72, 0x65, 0x64, 0x61, + 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, + 0x0b, 0x64, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x64, 0x61, 0x63, 0x74, 0x12, 0x55, 0x0a, 0x0f, + 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x52, 0x0e, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, + 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, + 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, + 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0xd5, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x66, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, + 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x58, 0x0a, 0x14, 0x75, + 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, + 0x22, 0x99, 0x03, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x18, 0x21, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x52, 0x0a, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x71, 0x0a, 0x11, 0x69, 0x64, 0x65, + 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x22, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x3a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, + 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x52, 0x10, 0x69, 0x64, 0x65, 0x6d, + 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x37, 0x0a, 0x08, + 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x23, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x14, 0x75, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe7, 0x07, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, + 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x75, 0x6e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x50, 0x0a, 0x10, 0x49, 0x64, 0x65, 0x6d, 0x70, 0x6f, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x65, + 0x76, 0x65, 0x6c, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, + 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, + 0x4e, 0x4f, 0x5f, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x45, 0x46, 0x46, 0x45, 0x43, 0x54, 0x53, 0x10, + 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x44, 0x45, 0x4d, 0x50, 0x4f, 0x54, 0x45, 0x4e, 0x54, 0x10, + 0x02, 0x2a, 0x09, 0x08, 0xe8, 0x07, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x9a, 0x03, 0x0a, + 0x13, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x64, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x6e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, + 0x65, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, + 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, + 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x2c, 0x0a, 0x12, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, + 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x61, + 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x4a, 0x0a, + 0x08, 0x4e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x61, 0x6d, + 0x65, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x61, + 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x02, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xa7, 0x0a, 0x0a, 0x0a, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x12, 0x91, 0x01, 0x0a, 0x0e, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x3f, 0x88, 0x01, + 0x01, 0x98, 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, 0x58, 0x50, 0x4c, + 0x49, 0x43, 0x49, 0x54, 0x18, 0xe6, 0x07, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x49, 0x4d, 0x50, 0x4c, + 0x49, 0x43, 0x49, 0x54, 0x18, 0xe7, 0x07, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, 0x58, 0x50, 0x4c, + 0x49, 0x43, 0x49, 0x54, 0x18, 0xe8, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x0d, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x09, + 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x75, + 0x6d, 0x54, 0x79, 0x70, 0x65, 0x42, 0x29, 0x88, 0x01, 0x01, 0x98, 0x01, 0x06, 0x98, 0x01, 0x01, + 0xa2, 0x01, 0x0b, 0x12, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x18, 0xe6, 0x07, 0xa2, 0x01, + 0x09, 0x12, 0x04, 0x4f, 0x50, 0x45, 0x4e, 0x18, 0xe7, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, + 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x98, 0x01, 0x0a, 0x17, 0x72, + 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x65, 0x6e, + 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, - 0x70, 0x65, 0x42, 0x23, 0x88, 0x01, 0x01, 0x98, 0x01, 0x06, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x0b, - 0x12, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x18, 0xe6, 0x07, 0xa2, 0x01, 0x09, 0x12, 0x04, - 0x4f, 0x50, 0x45, 0x4e, 0x18, 0xe7, 0x07, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x92, 0x01, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, - 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, - 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x27, 0x88, 0x01, 0x01, 0x98, 0x01, 0x04, 0x98, 0x01, - 0x01, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, 0x58, 0x50, 0x41, 0x4e, 0x44, 0x45, 0x44, 0x18, 0xe6, - 0x07, 0xa2, 0x01, 0x0b, 0x12, 0x06, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x44, 0x18, 0xe7, 0x07, 0x52, - 0x15, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, - 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x78, 0x0a, 0x0f, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x55, 0x74, 0x66, - 0x38, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x23, 0x88, 0x01, 0x01, - 0x98, 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x18, - 0xe6, 0x07, 0xa2, 0x01, 0x0b, 0x12, 0x06, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x18, 0xe7, 0x07, - 0x52, 0x0e, 0x75, 0x74, 0x66, 0x38, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x78, 0x0a, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x6e, 0x63, 0x6f, - 0x64, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, - 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x20, 0x88, 0x01, 0x01, 0x98, 0x01, 0x04, 0x98, - 0x01, 0x01, 0xa2, 0x01, 0x14, 0x12, 0x0f, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x5f, 0x50, 0x52, - 0x45, 0x46, 0x49, 0x58, 0x45, 0x44, 0x18, 0xe6, 0x07, 0x52, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x7c, 0x0a, 0x0b, 0x6a, 0x73, - 0x6f, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x4a, 0x73, 0x6f, - 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0x33, 0x88, 0x01, 0x01, 0x98, 0x01, 0x03, 0x98, - 0x01, 0x06, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x17, 0x12, 0x12, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, - 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x45, 0x46, 0x46, 0x4f, 0x52, 0x54, 0x18, 0xe6, 0x07, 0xa2, - 0x01, 0x0a, 0x12, 0x05, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x18, 0xe7, 0x07, 0x52, 0x0a, 0x6a, 0x73, - 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x5c, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x46, 0x49, 0x45, - 0x4c, 0x44, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50, 0x4c, 0x49, 0x43, 0x49, - 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50, 0x4c, 0x49, 0x43, 0x49, 0x54, 0x10, - 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x52, 0x45, 0x51, 0x55, - 0x49, 0x52, 0x45, 0x44, 0x10, 0x03, 0x22, 0x37, 0x0a, 0x08, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x50, 0x45, - 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, 0x02, 0x22, - 0x56, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x45, 0x50, 0x45, - 0x41, 0x54, 0x45, 0x44, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, - 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, - 0x06, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50, - 0x41, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x02, 0x22, 0x43, 0x0a, 0x0e, 0x55, 0x74, 0x66, 0x38, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x54, 0x46, - 0x38, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, - 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x22, 0x53, 0x0a, 0x0f, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, - 0x1c, 0x0a, 0x18, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, - 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, - 0x0f, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x45, 0x44, - 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x45, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, - 0x02, 0x22, 0x48, 0x0a, 0x0a, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, - 0x17, 0x0a, 0x13, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x4c, 0x4f, - 0x57, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x42, 0x45, - 0x53, 0x54, 0x5f, 0x45, 0x46, 0x46, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x2a, 0x06, 0x08, 0xe8, 0x07, - 0x10, 0xe9, 0x07, 0x2a, 0x06, 0x08, 0xe9, 0x07, 0x10, 0xea, 0x07, 0x2a, 0x06, 0x08, 0xea, 0x07, - 0x10, 0xeb, 0x07, 0x2a, 0x06, 0x08, 0x8b, 0x4e, 0x10, 0x90, 0x4e, 0x2a, 0x06, 0x08, 0x90, 0x4e, - 0x10, 0x91, 0x4e, 0x4a, 0x06, 0x08, 0xe7, 0x07, 0x10, 0xe8, 0x07, 0x22, 0xfe, 0x02, 0x0a, 0x12, - 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x73, 0x12, 0x58, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, - 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x53, 0x65, 0x74, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x52, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x0f, - 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x0e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x41, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x45, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x1a, 0x87, 0x01, 0x0a, 0x18, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, - 0x74, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, - 0x32, 0x0a, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, - 0x65, 0x74, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0xa7, 0x02, 0x0a, - 0x0e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x44, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xce, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, - 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x04, 0x73, 0x70, - 0x61, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x73, 0x70, - 0x61, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x65, - 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, - 0x11, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, - 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x19, 0x6c, 0x65, - 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x63, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x17, 0x6c, - 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xd0, 0x02, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4d, 0x0a, 0x0a, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xeb, 0x01, 0x0a, 0x0a, - 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, - 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, - 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, - 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x05, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x52, 0x0a, 0x08, 0x73, - 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x42, + 0x2d, 0x88, 0x01, 0x01, 0x98, 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x0d, 0x12, 0x08, 0x45, + 0x58, 0x50, 0x41, 0x4e, 0x44, 0x45, 0x44, 0x18, 0xe6, 0x07, 0xa2, 0x01, 0x0b, 0x12, 0x06, 0x50, + 0x41, 0x43, 0x4b, 0x45, 0x44, 0x18, 0xe7, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x15, + 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x63, + 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x7e, 0x0a, 0x0f, 0x75, 0x74, 0x66, 0x38, 0x5f, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x55, 0x74, 0x66, 0x38, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x29, 0x88, 0x01, 0x01, 0x98, + 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x18, 0xe6, + 0x07, 0xa2, 0x01, 0x0b, 0x12, 0x06, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x18, 0xe7, 0x07, 0xb2, + 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x0e, 0x75, 0x74, 0x66, 0x38, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x7e, 0x0a, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x26, 0x88, 0x01, + 0x01, 0x98, 0x01, 0x04, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x14, 0x12, 0x0f, 0x4c, 0x45, 0x4e, 0x47, + 0x54, 0x48, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x45, 0x44, 0x18, 0xe6, 0x07, 0xb2, 0x01, + 0x03, 0x08, 0xe8, 0x07, 0x52, 0x0f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x63, + 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x42, 0x39, 0x88, 0x01, 0x01, 0x98, 0x01, 0x03, 0x98, 0x01, 0x06, 0x98, 0x01, + 0x01, 0xa2, 0x01, 0x17, 0x12, 0x12, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x42, 0x45, 0x53, + 0x54, 0x5f, 0x45, 0x46, 0x46, 0x4f, 0x52, 0x54, 0x18, 0xe6, 0x07, 0xa2, 0x01, 0x0a, 0x12, 0x05, + 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x18, 0xe7, 0x07, 0xb2, 0x01, 0x03, 0x08, 0xe8, 0x07, 0x52, 0x0a, + 0x6a, 0x73, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x5c, 0x0a, 0x0d, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x50, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x46, + 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50, 0x4c, 0x49, + 0x43, 0x49, 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4d, 0x50, 0x4c, 0x49, 0x43, 0x49, + 0x54, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x52, 0x45, + 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0x03, 0x22, 0x37, 0x0a, 0x08, 0x45, 0x6e, 0x75, 0x6d, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4f, + 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, + 0x02, 0x22, 0x56, 0x0a, 0x15, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x1f, 0x52, 0x45, + 0x50, 0x45, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x45, 0x4e, 0x43, + 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x0a, 0x0a, 0x06, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, + 0x58, 0x50, 0x41, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x02, 0x22, 0x49, 0x0a, 0x0e, 0x55, 0x74, 0x66, + 0x38, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x55, + 0x54, 0x46, 0x38, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, + 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x45, 0x52, 0x49, + 0x46, 0x59, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x22, 0x04, + 0x08, 0x01, 0x10, 0x01, 0x22, 0x53, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, + 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x18, 0x4d, 0x45, 0x53, 0x53, 0x41, + 0x47, 0x45, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, + 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x5f, + 0x50, 0x52, 0x45, 0x46, 0x49, 0x58, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x45, + 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x48, 0x0a, 0x0a, 0x4a, 0x73, 0x6f, + 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x17, 0x0a, 0x13, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, + 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4c, + 0x45, 0x47, 0x41, 0x43, 0x59, 0x5f, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x45, 0x46, 0x46, 0x4f, 0x52, + 0x54, 0x10, 0x02, 0x2a, 0x06, 0x08, 0xe8, 0x07, 0x10, 0x8b, 0x4e, 0x2a, 0x06, 0x08, 0x8b, 0x4e, + 0x10, 0x90, 0x4e, 0x2a, 0x06, 0x08, 0x90, 0x4e, 0x10, 0x91, 0x4e, 0x4a, 0x06, 0x08, 0xe7, 0x07, + 0x10, 0xe8, 0x07, 0x22, 0xef, 0x03, 0x0a, 0x12, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, + 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x58, 0x0a, 0x08, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x45, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x08, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, + 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, - 0x6f, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6d, - 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x08, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x22, - 0x28, 0x0a, 0x08, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x12, 0x08, 0x0a, 0x04, 0x4e, - 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x01, 0x12, 0x09, - 0x0a, 0x05, 0x41, 0x4c, 0x49, 0x41, 0x53, 0x10, 0x02, 0x2a, 0x92, 0x02, 0x0a, 0x07, 0x45, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x44, - 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x32, 0x10, 0xe6, 0x07, 0x12, - 0x13, 0x0a, 0x0e, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, - 0x33, 0x10, 0xe7, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x32, 0x30, 0x32, 0x33, 0x10, 0xe8, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x45, 0x44, 0x49, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x32, 0x30, 0x32, 0x34, 0x10, 0xe9, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x44, - 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x31, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, - 0x59, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x32, - 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x17, - 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x39, 0x39, 0x39, 0x39, 0x37, 0x5f, 0x54, 0x45, - 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x9d, 0x8d, 0x06, 0x12, 0x1d, 0x0a, 0x17, 0x45, - 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x39, 0x39, 0x39, 0x39, 0x38, 0x5f, 0x54, 0x45, 0x53, - 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x9e, 0x8d, 0x06, 0x12, 0x1d, 0x0a, 0x17, 0x45, 0x44, - 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x39, 0x39, 0x39, 0x39, 0x39, 0x5f, 0x54, 0x45, 0x53, 0x54, - 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x9f, 0x8d, 0x06, 0x12, 0x13, 0x0a, 0x0b, 0x45, 0x44, 0x49, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x41, 0x58, 0x10, 0xff, 0xff, 0xff, 0xff, 0x07, 0x42, 0x7e, - 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x10, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, - 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x48, 0x01, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, - 0x42, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, + 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, + 0x75, 0x6d, 0x5f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x69, + 0x6d, 0x75, 0x6d, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf8, 0x01, 0x0a, 0x18, 0x46, + 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x14, 0x6f, + 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x52, 0x13, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x0e, 0x66, + 0x69, 0x78, 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, + 0x52, 0x0d, 0x66, 0x69, 0x78, 0x65, 0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x4a, + 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x08, 0x66, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0xa7, 0x02, 0x0a, 0x0e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x44, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xce, + 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x05, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x6c, + 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, + 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x19, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x64, + 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x17, 0x6c, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x44, + 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, + 0xd0, 0x02, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, + 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4d, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xeb, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x05, 0x42, 0x02, 0x10, 0x01, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x62, 0x65, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x65, 0x67, + 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x03, 0x65, 0x6e, 0x64, 0x12, 0x52, 0x0a, 0x08, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x52, 0x08, + 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x22, 0x28, 0x0a, 0x08, 0x53, 0x65, 0x6d, 0x61, + 0x6e, 0x74, 0x69, 0x63, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x07, + 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x49, 0x41, 0x53, + 0x10, 0x02, 0x2a, 0xa7, 0x02, 0x0a, 0x07, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, + 0x0a, 0x0f, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, + 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, + 0x45, 0x47, 0x41, 0x43, 0x59, 0x10, 0x84, 0x07, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x44, 0x49, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x32, 0x10, 0xe6, 0x07, 0x12, 0x13, 0x0a, + 0x0e, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x33, 0x10, + 0xe7, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x32, 0x30, + 0x32, 0x33, 0x10, 0xe8, 0x07, 0x12, 0x11, 0x0a, 0x0c, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x32, 0x30, 0x32, 0x34, 0x10, 0xe9, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x44, 0x49, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x31, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, + 0x01, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x32, 0x5f, 0x54, + 0x45, 0x53, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x17, 0x45, 0x44, + 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x39, 0x39, 0x39, 0x39, 0x37, 0x5f, 0x54, 0x45, 0x53, 0x54, + 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x9d, 0x8d, 0x06, 0x12, 0x1d, 0x0a, 0x17, 0x45, 0x44, 0x49, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x39, 0x39, 0x39, 0x39, 0x38, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, + 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x9e, 0x8d, 0x06, 0x12, 0x1d, 0x0a, 0x17, 0x45, 0x44, 0x49, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x39, 0x39, 0x39, 0x39, 0x39, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x4f, + 0x4e, 0x4c, 0x59, 0x10, 0x9f, 0x8d, 0x06, 0x12, 0x13, 0x0a, 0x0b, 0x45, 0x44, 0x49, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x4d, 0x41, 0x58, 0x10, 0xff, 0xff, 0xff, 0xff, 0x07, 0x42, 0x7e, 0x0a, 0x13, + 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x42, 0x10, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x48, 0x01, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x6f, 0x72, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x50, 0x42, 0xaa, + 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, } var ( @@ -5084,8 +5176,8 @@ func file_google_protobuf_descriptor_proto_rawDescGZIP() []byte { } var file_google_protobuf_descriptor_proto_enumTypes = make([]protoimpl.EnumInfo, 17) -var file_google_protobuf_descriptor_proto_msgTypes = make([]protoimpl.MessageInfo, 32) -var file_google_protobuf_descriptor_proto_goTypes = []interface{}{ +var file_google_protobuf_descriptor_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_google_protobuf_descriptor_proto_goTypes = []any{ (Edition)(0), // 0: google.protobuf.Edition (ExtensionRangeOptions_VerificationState)(0), // 1: google.protobuf.ExtensionRangeOptions.VerificationState (FieldDescriptorProto_Type)(0), // 2: google.protobuf.FieldDescriptorProto.Type @@ -5131,10 +5223,11 @@ var file_google_protobuf_descriptor_proto_goTypes = []interface{}{ (*ExtensionRangeOptions_Declaration)(nil), // 42: google.protobuf.ExtensionRangeOptions.Declaration (*EnumDescriptorProto_EnumReservedRange)(nil), // 43: google.protobuf.EnumDescriptorProto.EnumReservedRange (*FieldOptions_EditionDefault)(nil), // 44: google.protobuf.FieldOptions.EditionDefault - (*UninterpretedOption_NamePart)(nil), // 45: google.protobuf.UninterpretedOption.NamePart - (*FeatureSetDefaults_FeatureSetEditionDefault)(nil), // 46: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - (*SourceCodeInfo_Location)(nil), // 47: google.protobuf.SourceCodeInfo.Location - (*GeneratedCodeInfo_Annotation)(nil), // 48: google.protobuf.GeneratedCodeInfo.Annotation + (*FieldOptions_FeatureSupport)(nil), // 45: google.protobuf.FieldOptions.FeatureSupport + (*UninterpretedOption_NamePart)(nil), // 46: google.protobuf.UninterpretedOption.NamePart + (*FeatureSetDefaults_FeatureSetEditionDefault)(nil), // 47: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + (*SourceCodeInfo_Location)(nil), // 48: google.protobuf.SourceCodeInfo.Location + (*GeneratedCodeInfo_Annotation)(nil), // 49: google.protobuf.GeneratedCodeInfo.Annotation } var file_google_protobuf_descriptor_proto_depIdxs = []int32{ 18, // 0: google.protobuf.FileDescriptorSet.file:type_name -> google.protobuf.FileDescriptorProto @@ -5179,40 +5272,46 @@ var file_google_protobuf_descriptor_proto_depIdxs = []int32{ 8, // 39: google.protobuf.FieldOptions.targets:type_name -> google.protobuf.FieldOptions.OptionTargetType 44, // 40: google.protobuf.FieldOptions.edition_defaults:type_name -> google.protobuf.FieldOptions.EditionDefault 36, // 41: google.protobuf.FieldOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 42: google.protobuf.FieldOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 43: google.protobuf.OneofOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 44: google.protobuf.OneofOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 45: google.protobuf.EnumOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 46: google.protobuf.EnumOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 47: google.protobuf.EnumValueOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 48: google.protobuf.EnumValueOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 36, // 49: google.protobuf.ServiceOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 50: google.protobuf.ServiceOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 9, // 51: google.protobuf.MethodOptions.idempotency_level:type_name -> google.protobuf.MethodOptions.IdempotencyLevel - 36, // 52: google.protobuf.MethodOptions.features:type_name -> google.protobuf.FeatureSet - 35, // 53: google.protobuf.MethodOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption - 45, // 54: google.protobuf.UninterpretedOption.name:type_name -> google.protobuf.UninterpretedOption.NamePart - 10, // 55: google.protobuf.FeatureSet.field_presence:type_name -> google.protobuf.FeatureSet.FieldPresence - 11, // 56: google.protobuf.FeatureSet.enum_type:type_name -> google.protobuf.FeatureSet.EnumType - 12, // 57: google.protobuf.FeatureSet.repeated_field_encoding:type_name -> google.protobuf.FeatureSet.RepeatedFieldEncoding - 13, // 58: google.protobuf.FeatureSet.utf8_validation:type_name -> google.protobuf.FeatureSet.Utf8Validation - 14, // 59: google.protobuf.FeatureSet.message_encoding:type_name -> google.protobuf.FeatureSet.MessageEncoding - 15, // 60: google.protobuf.FeatureSet.json_format:type_name -> google.protobuf.FeatureSet.JsonFormat - 46, // 61: google.protobuf.FeatureSetDefaults.defaults:type_name -> google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - 0, // 62: google.protobuf.FeatureSetDefaults.minimum_edition:type_name -> google.protobuf.Edition - 0, // 63: google.protobuf.FeatureSetDefaults.maximum_edition:type_name -> google.protobuf.Edition - 47, // 64: google.protobuf.SourceCodeInfo.location:type_name -> google.protobuf.SourceCodeInfo.Location - 48, // 65: google.protobuf.GeneratedCodeInfo.annotation:type_name -> google.protobuf.GeneratedCodeInfo.Annotation - 20, // 66: google.protobuf.DescriptorProto.ExtensionRange.options:type_name -> google.protobuf.ExtensionRangeOptions - 0, // 67: google.protobuf.FieldOptions.EditionDefault.edition:type_name -> google.protobuf.Edition - 0, // 68: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition:type_name -> google.protobuf.Edition - 36, // 69: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features:type_name -> google.protobuf.FeatureSet - 16, // 70: google.protobuf.GeneratedCodeInfo.Annotation.semantic:type_name -> google.protobuf.GeneratedCodeInfo.Annotation.Semantic - 71, // [71:71] is the sub-list for method output_type - 71, // [71:71] is the sub-list for method input_type - 71, // [71:71] is the sub-list for extension type_name - 71, // [71:71] is the sub-list for extension extendee - 0, // [0:71] is the sub-list for field type_name + 45, // 42: google.protobuf.FieldOptions.feature_support:type_name -> google.protobuf.FieldOptions.FeatureSupport + 35, // 43: google.protobuf.FieldOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 36, // 44: google.protobuf.OneofOptions.features:type_name -> google.protobuf.FeatureSet + 35, // 45: google.protobuf.OneofOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 36, // 46: google.protobuf.EnumOptions.features:type_name -> google.protobuf.FeatureSet + 35, // 47: google.protobuf.EnumOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 36, // 48: google.protobuf.EnumValueOptions.features:type_name -> google.protobuf.FeatureSet + 45, // 49: google.protobuf.EnumValueOptions.feature_support:type_name -> google.protobuf.FieldOptions.FeatureSupport + 35, // 50: google.protobuf.EnumValueOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 36, // 51: google.protobuf.ServiceOptions.features:type_name -> google.protobuf.FeatureSet + 35, // 52: google.protobuf.ServiceOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 9, // 53: google.protobuf.MethodOptions.idempotency_level:type_name -> google.protobuf.MethodOptions.IdempotencyLevel + 36, // 54: google.protobuf.MethodOptions.features:type_name -> google.protobuf.FeatureSet + 35, // 55: google.protobuf.MethodOptions.uninterpreted_option:type_name -> google.protobuf.UninterpretedOption + 46, // 56: google.protobuf.UninterpretedOption.name:type_name -> google.protobuf.UninterpretedOption.NamePart + 10, // 57: google.protobuf.FeatureSet.field_presence:type_name -> google.protobuf.FeatureSet.FieldPresence + 11, // 58: google.protobuf.FeatureSet.enum_type:type_name -> google.protobuf.FeatureSet.EnumType + 12, // 59: google.protobuf.FeatureSet.repeated_field_encoding:type_name -> google.protobuf.FeatureSet.RepeatedFieldEncoding + 13, // 60: google.protobuf.FeatureSet.utf8_validation:type_name -> google.protobuf.FeatureSet.Utf8Validation + 14, // 61: google.protobuf.FeatureSet.message_encoding:type_name -> google.protobuf.FeatureSet.MessageEncoding + 15, // 62: google.protobuf.FeatureSet.json_format:type_name -> google.protobuf.FeatureSet.JsonFormat + 47, // 63: google.protobuf.FeatureSetDefaults.defaults:type_name -> google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + 0, // 64: google.protobuf.FeatureSetDefaults.minimum_edition:type_name -> google.protobuf.Edition + 0, // 65: google.protobuf.FeatureSetDefaults.maximum_edition:type_name -> google.protobuf.Edition + 48, // 66: google.protobuf.SourceCodeInfo.location:type_name -> google.protobuf.SourceCodeInfo.Location + 49, // 67: google.protobuf.GeneratedCodeInfo.annotation:type_name -> google.protobuf.GeneratedCodeInfo.Annotation + 20, // 68: google.protobuf.DescriptorProto.ExtensionRange.options:type_name -> google.protobuf.ExtensionRangeOptions + 0, // 69: google.protobuf.FieldOptions.EditionDefault.edition:type_name -> google.protobuf.Edition + 0, // 70: google.protobuf.FieldOptions.FeatureSupport.edition_introduced:type_name -> google.protobuf.Edition + 0, // 71: google.protobuf.FieldOptions.FeatureSupport.edition_deprecated:type_name -> google.protobuf.Edition + 0, // 72: google.protobuf.FieldOptions.FeatureSupport.edition_removed:type_name -> google.protobuf.Edition + 0, // 73: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.edition:type_name -> google.protobuf.Edition + 36, // 74: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.overridable_features:type_name -> google.protobuf.FeatureSet + 36, // 75: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fixed_features:type_name -> google.protobuf.FeatureSet + 16, // 76: google.protobuf.GeneratedCodeInfo.Annotation.semantic:type_name -> google.protobuf.GeneratedCodeInfo.Annotation.Semantic + 77, // [77:77] is the sub-list for method output_type + 77, // [77:77] is the sub-list for method input_type + 77, // [77:77] is the sub-list for extension type_name + 77, // [77:77] is the sub-list for extension extendee + 0, // [0:77] is the sub-list for field type_name } func init() { file_google_protobuf_descriptor_proto_init() } @@ -5220,419 +5319,13 @@ func file_google_protobuf_descriptor_proto_init() { if File_google_protobuf_descriptor_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_google_protobuf_descriptor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileDescriptorSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileDescriptorProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DescriptorProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtensionRangeOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FieldDescriptorProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OneofDescriptorProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EnumDescriptorProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EnumValueDescriptorProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceDescriptorProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MethodDescriptorProto); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MessageOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FieldOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OneofOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EnumOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EnumValueOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServiceOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MethodOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UninterpretedOption); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FeatureSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - case 3: - return &v.extensionFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FeatureSetDefaults); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SourceCodeInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GeneratedCodeInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DescriptorProto_ExtensionRange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DescriptorProto_ReservedRange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtensionRangeOptions_Declaration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EnumDescriptorProto_EnumReservedRange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FieldOptions_EditionDefault); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UninterpretedOption_NamePart); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FeatureSetDefaults_FeatureSetEditionDefault); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SourceCodeInfo_Location); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_protobuf_descriptor_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GeneratedCodeInfo_Annotation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_protobuf_descriptor_proto_rawDesc, NumEnums: 17, - NumMessages: 32, + NumMessages: 33, NumExtensions: 0, NumServices: 0, }, diff --git a/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go b/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go index 9f046f97908d..c7e860fcd6d8 100644 --- a/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go +++ b/vendor/google.golang.org/protobuf/types/gofeaturespb/go_features.pb.go @@ -29,11 +29,9 @@ type GoFeatures struct { func (x *GoFeatures) Reset() { *x = GoFeatures{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_go_features_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_go_features_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GoFeatures) String() string { @@ -44,7 +42,7 @@ func (*GoFeatures) ProtoMessage() {} func (x *GoFeatures) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_go_features_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -90,21 +88,27 @@ var file_google_protobuf_go_features_proto_rawDesc = []byte{ 0x66, 0x2f, 0x67, 0x6f, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6a, 0x0a, 0x0a, 0x47, 0x6f, 0x46, - 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x5c, 0x0a, 0x1a, 0x6c, 0x65, 0x67, 0x61, 0x63, - 0x79, 0x5f, 0x75, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, 0x6c, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, - 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x1f, 0x88, 0x01, 0x01, - 0x98, 0x01, 0x06, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x74, 0x72, 0x75, 0x65, 0x18, 0xe6, 0x07, 0xa2, - 0x01, 0x0a, 0x12, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x18, 0xe7, 0x07, 0x52, 0x17, 0x6c, 0x65, - 0x67, 0x61, 0x63, 0x79, 0x55, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, 0x6c, 0x4a, 0x73, 0x6f, - 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x3c, 0x0a, 0x02, 0x67, 0x6f, 0x12, 0x1b, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x6f, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, - 0x02, 0x67, 0x6f, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, - 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x67, 0x6f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x73, 0x70, 0x62, + 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcd, 0x01, 0x0a, 0x0a, 0x47, 0x6f, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0xbe, 0x01, 0x0a, 0x1a, 0x6c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x5f, 0x75, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, 0x6c, 0x5f, 0x6a, 0x73, + 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x80, 0x01, + 0x88, 0x01, 0x01, 0x98, 0x01, 0x06, 0x98, 0x01, 0x01, 0xa2, 0x01, 0x09, 0x12, 0x04, 0x74, 0x72, + 0x75, 0x65, 0x18, 0x84, 0x07, 0xa2, 0x01, 0x0a, 0x12, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x18, + 0xe7, 0x07, 0xb2, 0x01, 0x5b, 0x08, 0xe8, 0x07, 0x10, 0xe8, 0x07, 0x1a, 0x53, 0x54, 0x68, 0x65, + 0x20, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x20, 0x55, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, + 0x6c, 0x4a, 0x53, 0x4f, 0x4e, 0x20, 0x41, 0x50, 0x49, 0x20, 0x69, 0x73, 0x20, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x77, 0x69, 0x6c, 0x6c, + 0x20, 0x62, 0x65, 0x20, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20, 0x61, + 0x20, 0x66, 0x75, 0x74, 0x75, 0x72, 0x65, 0x20, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x52, 0x17, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x55, 0x6e, 0x6d, 0x61, 0x72, 0x73, 0x68, 0x61, + 0x6c, 0x4a, 0x73, 0x6f, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x3c, 0x0a, 0x02, 0x67, 0x6f, 0x12, + 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x53, 0x65, 0x74, 0x18, 0xea, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x6f, 0x46, 0x65, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x73, 0x52, 0x02, 0x67, 0x6f, 0x42, 0x2f, 0x5a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x67, 0x6f, 0x66, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x70, 0x62, } var ( @@ -120,7 +124,7 @@ func file_google_protobuf_go_features_proto_rawDescGZIP() []byte { } var file_google_protobuf_go_features_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_google_protobuf_go_features_proto_goTypes = []interface{}{ +var file_google_protobuf_go_features_proto_goTypes = []any{ (*GoFeatures)(nil), // 0: pb.GoFeatures (*descriptorpb.FeatureSet)(nil), // 1: google.protobuf.FeatureSet } @@ -139,20 +143,6 @@ func file_google_protobuf_go_features_proto_init() { if File_google_protobuf_go_features_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_google_protobuf_go_features_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GoFeatures); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go b/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go index 9de51be54032..87da199a386e 100644 --- a/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/anypb/any.pb.go @@ -368,11 +368,9 @@ func (x *Any) UnmarshalNew() (proto.Message, error) { func (x *Any) Reset() { *x = Any{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_any_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_any_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Any) String() string { @@ -383,7 +381,7 @@ func (*Any) ProtoMessage() {} func (x *Any) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_any_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -445,7 +443,7 @@ func file_google_protobuf_any_proto_rawDescGZIP() []byte { } var file_google_protobuf_any_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_google_protobuf_any_proto_goTypes = []interface{}{ +var file_google_protobuf_any_proto_goTypes = []any{ (*Any)(nil), // 0: google.protobuf.Any } var file_google_protobuf_any_proto_depIdxs = []int32{ @@ -461,20 +459,6 @@ func file_google_protobuf_any_proto_init() { if File_google_protobuf_any_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_google_protobuf_any_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Any); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go b/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go index df709a8dd4c2..b99d4d241092 100644 --- a/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/durationpb/duration.pb.go @@ -245,11 +245,9 @@ func (x *Duration) check() uint { func (x *Duration) Reset() { *x = Duration{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_duration_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_duration_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Duration) String() string { @@ -260,7 +258,7 @@ func (*Duration) ProtoMessage() {} func (x *Duration) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_duration_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -323,7 +321,7 @@ func file_google_protobuf_duration_proto_rawDescGZIP() []byte { } var file_google_protobuf_duration_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_google_protobuf_duration_proto_goTypes = []interface{}{ +var file_google_protobuf_duration_proto_goTypes = []any{ (*Duration)(nil), // 0: google.protobuf.Duration } var file_google_protobuf_duration_proto_depIdxs = []int32{ @@ -339,20 +337,6 @@ func file_google_protobuf_duration_proto_init() { if File_google_protobuf_duration_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_google_protobuf_duration_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Duration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go b/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go index 9a7277ba394c..1761bc9c69a5 100644 --- a/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/emptypb/empty.pb.go @@ -55,11 +55,9 @@ type Empty struct { func (x *Empty) Reset() { *x = Empty{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_empty_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_empty_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Empty) String() string { @@ -70,7 +68,7 @@ func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_empty_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -115,7 +113,7 @@ func file_google_protobuf_empty_proto_rawDescGZIP() []byte { } var file_google_protobuf_empty_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_google_protobuf_empty_proto_goTypes = []interface{}{ +var file_google_protobuf_empty_proto_goTypes = []any{ (*Empty)(nil), // 0: google.protobuf.Empty } var file_google_protobuf_empty_proto_depIdxs = []int32{ @@ -131,20 +129,6 @@ func file_google_protobuf_empty_proto_init() { if File_google_protobuf_empty_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_google_protobuf_empty_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Empty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go b/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go index 81511a3363ee..0d20722d70b7 100644 --- a/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go +++ b/vendor/google.golang.org/protobuf/types/known/timestamppb/timestamp.pb.go @@ -254,11 +254,9 @@ func (x *Timestamp) check() uint { func (x *Timestamp) Reset() { *x = Timestamp{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_timestamp_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_timestamp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Timestamp) String() string { @@ -269,7 +267,7 @@ func (*Timestamp) ProtoMessage() {} func (x *Timestamp) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_timestamp_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -332,7 +330,7 @@ func file_google_protobuf_timestamp_proto_rawDescGZIP() []byte { } var file_google_protobuf_timestamp_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_google_protobuf_timestamp_proto_goTypes = []interface{}{ +var file_google_protobuf_timestamp_proto_goTypes = []any{ (*Timestamp)(nil), // 0: google.protobuf.Timestamp } var file_google_protobuf_timestamp_proto_depIdxs = []int32{ @@ -348,20 +346,6 @@ func file_google_protobuf_timestamp_proto_init() { if File_google_protobuf_timestamp_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_google_protobuf_timestamp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Timestamp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/vendor/modules.txt b/vendor/modules.txt index 3d36728a832f..7c382fec4f9a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -106,7 +106,7 @@ github.com/fatih/color # github.com/gofrs/uuid v4.4.0+incompatible ## explicit github.com/gofrs/uuid -# github.com/golang-jwt/jwt/v4 v4.5.0 +# github.com/golang-jwt/jwt/v4 v4.5.1 ## explicit; go 1.16 github.com/golang-jwt/jwt/v4 # github.com/golang/protobuf v1.5.4 @@ -127,7 +127,7 @@ github.com/google/uuid # github.com/hashicorp/errwrap v1.1.0 ## explicit github.com/hashicorp/errwrap -# github.com/hashicorp/go-azure-helpers v0.70.1 +# github.com/hashicorp/go-azure-helpers v0.71.0 ## explicit; go 1.21 github.com/hashicorp/go-azure-helpers/eventhub github.com/hashicorp/go-azure-helpers/lang/dates @@ -148,7 +148,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/tags github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk/resource-manager v0.20241021.1074254 +# github.com/hashicorp/go-azure-sdk/resource-manager v0.20241118.1115603 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview @@ -301,10 +301,10 @@ github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/upda github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances -github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application -github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount -github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate -github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool +github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/application +github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/batchaccount +github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/certificate +github.com/hashicorp/go-azure-sdk/resource-manager/batch/2024-07-01/pool github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint @@ -315,8 +315,11 @@ github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabi github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes -github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts -github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments +github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview +github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/certificateprofiles +github.com/hashicorp/go-azure-sdk/resource-manager/codesigning/2024-09-30-preview/codesigningaccounts +github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/cognitiveservicesaccounts +github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2024-10-01/deployments github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices @@ -367,24 +370,24 @@ github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01- github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens -github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archives +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/archiveversions +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/cacherules +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/connectedregistries +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/credentialsets +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/exportpipelines +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/importpipelines +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/operation +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/pipelineruns +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/privateendpointconnections +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/registries +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/replications +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/scopemaps +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/tokens +github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-11-01-preview/webhooks github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools @@ -416,6 +419,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/sch github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource +github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/managedprivateendpoints github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces @@ -495,6 +499,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwar github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks +github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01 @@ -521,6 +526,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemto github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners +github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2023-12-15-preview/namespaces github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs @@ -628,6 +634,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes +github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/managednetwork github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations @@ -657,30 +664,43 @@ github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simg github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice +github.com/hashicorp/go-azure-sdk/resource-manager/mongocluster/2024-07-01/mongoclusters github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01 -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart -github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30 +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/advancedthreatprotectionsettings +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/azureadadministrators +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupandexport +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backups +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/backupsv2 +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/checknameavailability +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/configurations +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/databases +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/firewallrules +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/getprivatednszonesuffix +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapabilities +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/locationbasedcapability +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/logfiles +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/maintenances +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/operationprogress +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverfailover +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servermigration +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverresetgtid +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverrestart +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servers +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstart +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/serverstop +github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backuppolicy +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backups +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/backupvaults +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/capacitypools +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/netappaccounts +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshotpolicy +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/snapshots +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumegroups +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumequotarules +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumes +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2024-03-01/volumesreplication github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans @@ -702,114 +722,135 @@ github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01 -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies -github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01 +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrulecollections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/adminrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivateendpointconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewayprivatelinkresources +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationgatewaywafdynamicmanifests +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/applicationsecuritygroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availabledelegations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/availableservicealiases +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/azurefirewalls +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionhosts +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bastionshareablelink +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/bgpservicecommunities +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/checkdnsavailabilities +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/cloudservicepublicipaddresses +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectionmonitors +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/connectivityconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/customipprefixes +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddoscustompolicies +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ddosprotectionplans +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/dscpconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/endpointservices +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitarptable +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitauthorizations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitpeerings +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestable +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitroutestablesummary +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuits +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecircuitstats +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionarptable +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionpeerings +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetable +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnectionroutetablesummary +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutecrossconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutegateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressroutelinks +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportauthorizations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteports +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteportslocations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteproviderports +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/expressrouteserviceproviders +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicies +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/firewallpolicyrulecollectiongroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/flowlogs +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipallocations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/ipgroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/loadbalancers +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/localnetworkgateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/natgateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkgroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkinterfaces +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanageractiveconnectivityconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectiveconnectivityconfiguration +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagereffectivesecurityadminrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagerroutingconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkmanagers +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkprofiles +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networksecuritygroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkvirtualappliances +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/networkwatchers +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/p2svpngateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/packetcaptures +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/peerexpressroutecircuitconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatednszonegroups +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privateendpoints +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/privatelinkservices +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipaddresses +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/publicipprefixes +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilterrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routefilters +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routes +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routetables +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrulecollections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/routingrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/scopeconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityadminconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securitypartnerproviders +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrulecollections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/securityuserrules +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicies +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/serviceendpointpolicydefinitions +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/servicetags +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/staticmembers +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/subnets +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/trafficanalytics +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/usages +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vipswap +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualappliancesites +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualapplianceskus +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgatewayconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkgateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworkpeerings +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworks +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktap +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualnetworktaps +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouterpeerings +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualrouters +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/virtualwans +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vmsspublicipaddresses +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpngateways +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnlinkconnections +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnserverconfigurations +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/vpnsites +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webapplicationfirewallpolicies +github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-03-01/webcategories github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2024-03-01/monitors @@ -1119,7 +1160,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplands github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances -# github.com/hashicorp/go-azure-sdk/sdk v0.20241021.1074254 +# github.com/hashicorp/go-azure-sdk/sdk v0.20241118.1115603 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/sdk/auth github.com/hashicorp/go-azure-sdk/sdk/auth/autorest @@ -1156,7 +1197,7 @@ github.com/hashicorp/go-hclog # github.com/hashicorp/go-multierror v1.1.1 ## explicit; go 1.13 github.com/hashicorp/go-multierror -# github.com/hashicorp/go-plugin v1.6.0 +# github.com/hashicorp/go-plugin v1.6.2 ## explicit; go 1.17 github.com/hashicorp/go-plugin github.com/hashicorp/go-plugin/internal/cmdrunner @@ -1169,11 +1210,11 @@ github.com/hashicorp/go-retryablehttp # github.com/hashicorp/go-uuid v1.0.3 ## explicit github.com/hashicorp/go-uuid -# github.com/hashicorp/go-version v1.6.0 +# github.com/hashicorp/go-version v1.7.0 ## explicit github.com/hashicorp/go-version -# github.com/hashicorp/hc-install v0.6.4 -## explicit; go 1.18 +# github.com/hashicorp/hc-install v0.9.0 +## explicit; go 1.22.0 github.com/hashicorp/hc-install github.com/hashicorp/hc-install/checkpoint github.com/hashicorp/hc-install/errors @@ -1188,7 +1229,7 @@ github.com/hashicorp/hc-install/product github.com/hashicorp/hc-install/releases github.com/hashicorp/hc-install/src github.com/hashicorp/hc-install/version -# github.com/hashicorp/hcl/v2 v2.20.1 +# github.com/hashicorp/hcl/v2 v2.23.0 ## explicit; go 1.18 github.com/hashicorp/hcl/v2 github.com/hashicorp/hcl/v2/ext/customdecode @@ -1205,16 +1246,18 @@ github.com/hashicorp/logutils ## explicit; go 1.18 github.com/hashicorp/terraform-exec/internal/version github.com/hashicorp/terraform-exec/tfexec -# github.com/hashicorp/terraform-json v0.22.1 +# github.com/hashicorp/terraform-json v0.23.0 ## explicit; go 1.18 github.com/hashicorp/terraform-json -# github.com/hashicorp/terraform-plugin-framework v1.8.0 -## explicit; go 1.21 +# github.com/hashicorp/terraform-plugin-framework v1.13.0 +## explicit; go 1.22.0 github.com/hashicorp/terraform-plugin-framework/attr github.com/hashicorp/terraform-plugin-framework/attr/xattr github.com/hashicorp/terraform-plugin-framework/datasource github.com/hashicorp/terraform-plugin-framework/datasource/schema github.com/hashicorp/terraform-plugin-framework/diag +github.com/hashicorp/terraform-plugin-framework/ephemeral +github.com/hashicorp/terraform-plugin-framework/ephemeral/schema github.com/hashicorp/terraform-plugin-framework/function github.com/hashicorp/terraform-plugin-framework/internal/fromproto5 github.com/hashicorp/terraform-plugin-framework/internal/fromproto6 @@ -1246,14 +1289,15 @@ github.com/hashicorp/terraform-plugin-framework/schema/validator github.com/hashicorp/terraform-plugin-framework/tfsdk github.com/hashicorp/terraform-plugin-framework/types github.com/hashicorp/terraform-plugin-framework/types/basetypes -# github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 -## explicit; go 1.19 +# github.com/hashicorp/terraform-plugin-framework-validators v0.14.0 +## explicit; go 1.22.0 github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag +github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatorfuncerr github.com/hashicorp/terraform-plugin-framework-validators/internal/schemavalidator github.com/hashicorp/terraform-plugin-framework-validators/listvalidator github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator -# github.com/hashicorp/terraform-plugin-go v0.23.0 -## explicit; go 1.21 +# github.com/hashicorp/terraform-plugin-go v0.25.0 +## explicit; go 1.22.0 github.com/hashicorp/terraform-plugin-go/internal/logging github.com/hashicorp/terraform-plugin-go/tfprotov5 github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag @@ -1279,12 +1323,12 @@ github.com/hashicorp/terraform-plugin-log/internal/hclogutils github.com/hashicorp/terraform-plugin-log/internal/logging github.com/hashicorp/terraform-plugin-log/tflog github.com/hashicorp/terraform-plugin-log/tfsdklog -# github.com/hashicorp/terraform-plugin-mux v0.15.0 -## explicit; go 1.21 +# github.com/hashicorp/terraform-plugin-mux v0.17.0 +## explicit; go 1.22.0 github.com/hashicorp/terraform-plugin-mux/internal/logging github.com/hashicorp/terraform-plugin-mux/tf5muxserver -# github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 -## explicit; go 1.21 +# github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 +## explicit; go 1.22.0 github.com/hashicorp/terraform-plugin-sdk/v2/diag github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging @@ -1303,9 +1347,11 @@ github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags github.com/hashicorp/terraform-plugin-sdk/v2/meta github.com/hashicorp/terraform-plugin-sdk/v2/plugin github.com/hashicorp/terraform-plugin-sdk/v2/terraform -# github.com/hashicorp/terraform-plugin-testing v1.8.0 -## explicit; go 1.21 +# github.com/hashicorp/terraform-plugin-testing v1.11.0 +## explicit; go 1.22.0 +github.com/hashicorp/terraform-plugin-testing/compare github.com/hashicorp/terraform-plugin-testing/config +github.com/hashicorp/terraform-plugin-testing/echoprovider github.com/hashicorp/terraform-plugin-testing/helper/acctest github.com/hashicorp/terraform-plugin-testing/helper/resource github.com/hashicorp/terraform-plugin-testing/internal/addrs @@ -1333,6 +1379,18 @@ github.com/hashicorp/yamux # github.com/jackofallops/kermit v0.20241010.1180132 ## explicit; go 1.22 github.com/jackofallops/kermit/sdk/appconfiguration/1.0/appconfiguration +github.com/jackofallops/kermit/sdk/attestation/2022-08-01/attestation +github.com/jackofallops/kermit/sdk/batch/2022-01.15.0/batch +github.com/jackofallops/kermit/sdk/botservice/2021-05-01-preview/botservice +github.com/jackofallops/kermit/sdk/datafactory/2018-06-01/datafactory +github.com/jackofallops/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral +github.com/jackofallops/kermit/sdk/iothub/2022-04-30-preview/iothub +github.com/jackofallops/kermit/sdk/keyvault/7.4/keyvault +github.com/jackofallops/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights +github.com/jackofallops/kermit/sdk/synapse/2019-06-01-preview/synapse +github.com/jackofallops/kermit/sdk/synapse/2020-08-01-preview/synapse +github.com/jackofallops/kermit/sdk/synapse/2021-06-01-preview/synapse +github.com/jackofallops/kermit/sdk/web/2022-09-01/web github.com/jackofallops/kermit/version # github.com/kr/pretty v0.3.0 ## explicit; go 1.12 @@ -1392,18 +1450,6 @@ github.com/tombuildsstuff/giovanni/storage/internal/metadata # github.com/tombuildsstuff/kermit v0.20240122.1123108 ## explicit; go 1.18 github.com/tombuildsstuff/kermit/sdk/appplatform/2023-05-01-preview/appplatform -github.com/tombuildsstuff/kermit/sdk/attestation/2022-08-01/attestation -github.com/tombuildsstuff/kermit/sdk/batch/2022-01.15.0/batch -github.com/tombuildsstuff/kermit/sdk/botservice/2021-05-01-preview/botservice -github.com/tombuildsstuff/kermit/sdk/datafactory/2018-06-01/datafactory -github.com/tombuildsstuff/kermit/sdk/iotcentral/2022-10-31-preview/iotcentral -github.com/tombuildsstuff/kermit/sdk/iothub/2022-04-30-preview/iothub -github.com/tombuildsstuff/kermit/sdk/keyvault/7.4/keyvault -github.com/tombuildsstuff/kermit/sdk/securityinsights/2022-10-01-preview/securityinsights -github.com/tombuildsstuff/kermit/sdk/synapse/2019-06-01-preview/synapse -github.com/tombuildsstuff/kermit/sdk/synapse/2020-08-01-preview/synapse -github.com/tombuildsstuff/kermit/sdk/synapse/2021-06-01-preview/synapse -github.com/tombuildsstuff/kermit/sdk/web/2022-09-01/web github.com/tombuildsstuff/kermit/version # github.com/vmihailenco/msgpack v4.0.4+incompatible ## explicit @@ -1418,7 +1464,7 @@ github.com/vmihailenco/msgpack/v5/msgpcode github.com/vmihailenco/tagparser/v2 github.com/vmihailenco/tagparser/v2/internal github.com/vmihailenco/tagparser/v2/internal/parser -# github.com/zclconf/go-cty v1.14.4 +# github.com/zclconf/go-cty v1.15.0 ## explicit; go 1.18 github.com/zclconf/go-cty/cty github.com/zclconf/go-cty/cty/convert @@ -1428,15 +1474,14 @@ 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.23.0 -## explicit; go 1.18 +# golang.org/x/crypto v0.29.0 +## explicit; go 1.20 golang.org/x/crypto/argon2 golang.org/x/crypto/blake2b golang.org/x/crypto/blowfish golang.org/x/crypto/cast5 golang.org/x/crypto/chacha20 golang.org/x/crypto/curve25519 -golang.org/x/crypto/curve25519/internal/field golang.org/x/crypto/hkdf golang.org/x/crypto/internal/alias golang.org/x/crypto/internal/poly1305 @@ -1446,13 +1491,13 @@ golang.org/x/crypto/pkcs12/internal/rc2 golang.org/x/crypto/sha3 golang.org/x/crypto/ssh golang.org/x/crypto/ssh/internal/bcrypt_pbkdf -# golang.org/x/mod v0.16.0 -## explicit; go 1.18 +# golang.org/x/mod v0.21.0 +## explicit; go 1.22.0 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.23.0 +# golang.org/x/net v0.28.0 ## explicit; go 1.18 golang.org/x/net/http/httpguts golang.org/x/net/http2 @@ -1460,22 +1505,25 @@ golang.org/x/net/http2/hpack golang.org/x/net/idna golang.org/x/net/internal/timeseries golang.org/x/net/trace -# golang.org/x/oauth2 v0.17.0 +# golang.org/x/oauth2 v0.22.0 ## explicit; go 1.18 golang.org/x/oauth2 golang.org/x/oauth2/internal -# golang.org/x/sys v0.20.0 +# golang.org/x/sync v0.9.0 +## explicit; go 1.18 +golang.org/x/sync/errgroup +# golang.org/x/sys v0.27.0 ## explicit; go 1.18 golang.org/x/sys/cpu golang.org/x/sys/unix golang.org/x/sys/windows -# golang.org/x/text v0.15.0 +# golang.org/x/text v0.20.0 ## explicit; go 1.18 golang.org/x/text/secure/bidirule golang.org/x/text/transform golang.org/x/text/unicode/bidi golang.org/x/text/unicode/norm -# golang.org/x/tools v0.19.0 +# golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d ## explicit; go 1.19 golang.org/x/tools/cmd/stringer golang.org/x/tools/go/ast/astutil @@ -1489,15 +1537,14 @@ golang.org/x/tools/internal/event golang.org/x/tools/internal/event/core golang.org/x/tools/internal/event/keys golang.org/x/tools/internal/event/label -golang.org/x/tools/internal/event/tag golang.org/x/tools/internal/gcimporter golang.org/x/tools/internal/gocommand golang.org/x/tools/internal/gopathwalk golang.org/x/tools/internal/imports golang.org/x/tools/internal/packagesinternal golang.org/x/tools/internal/pkgbits +golang.org/x/tools/internal/stdlib golang.org/x/tools/internal/tokeninternal -golang.org/x/tools/internal/typeparams golang.org/x/tools/internal/typesinternal golang.org/x/tools/internal/versions # google.golang.org/appengine v1.6.8 @@ -1513,19 +1560,18 @@ google.golang.org/appengine/internal/datastore google.golang.org/appengine/internal/log google.golang.org/appengine/internal/modules google.golang.org/appengine/internal/remote_api -google.golang.org/appengine/internal/urlfetch -google.golang.org/appengine/urlfetch -# google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de -## explicit; go 1.19 +# google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 +## explicit; go 1.21 google.golang.org/genproto/googleapis/rpc/status -# google.golang.org/grpc v1.63.2 -## explicit; go 1.19 +# google.golang.org/grpc v1.67.1 +## explicit; go 1.21 google.golang.org/grpc google.golang.org/grpc/attributes google.golang.org/grpc/backoff google.golang.org/grpc/balancer google.golang.org/grpc/balancer/base google.golang.org/grpc/balancer/grpclb/state +google.golang.org/grpc/balancer/pickfirst google.golang.org/grpc/balancer/roundrobin google.golang.org/grpc/binarylog/grpc_binarylog_v1 google.golang.org/grpc/channelz @@ -1535,7 +1581,9 @@ google.golang.org/grpc/credentials google.golang.org/grpc/credentials/insecure google.golang.org/grpc/encoding google.golang.org/grpc/encoding/proto +google.golang.org/grpc/experimental/stats google.golang.org/grpc/grpclog +google.golang.org/grpc/grpclog/internal google.golang.org/grpc/health google.golang.org/grpc/health/grpc_health_v1 google.golang.org/grpc/internal @@ -1548,7 +1596,6 @@ google.golang.org/grpc/internal/channelz google.golang.org/grpc/internal/credentials google.golang.org/grpc/internal/envconfig google.golang.org/grpc/internal/grpclog -google.golang.org/grpc/internal/grpcrand google.golang.org/grpc/internal/grpcsync google.golang.org/grpc/internal/grpcutil google.golang.org/grpc/internal/idle @@ -1560,24 +1607,27 @@ google.golang.org/grpc/internal/resolver/dns/internal google.golang.org/grpc/internal/resolver/passthrough google.golang.org/grpc/internal/resolver/unix google.golang.org/grpc/internal/serviceconfig +google.golang.org/grpc/internal/stats google.golang.org/grpc/internal/status google.golang.org/grpc/internal/syscall google.golang.org/grpc/internal/transport google.golang.org/grpc/internal/transport/networktype google.golang.org/grpc/keepalive +google.golang.org/grpc/mem google.golang.org/grpc/metadata google.golang.org/grpc/peer google.golang.org/grpc/reflection google.golang.org/grpc/reflection/grpc_reflection_v1 google.golang.org/grpc/reflection/grpc_reflection_v1alpha +google.golang.org/grpc/reflection/internal google.golang.org/grpc/resolver google.golang.org/grpc/resolver/dns google.golang.org/grpc/serviceconfig google.golang.org/grpc/stats google.golang.org/grpc/status google.golang.org/grpc/tap -# google.golang.org/protobuf v1.34.0 -## explicit; go 1.17 +# google.golang.org/protobuf v1.35.1 +## explicit; go 1.21 google.golang.org/protobuf/encoding/protojson google.golang.org/protobuf/encoding/prototext google.golang.org/protobuf/encoding/protowire diff --git a/website/allowed-subcategories b/website/allowed-subcategories index 5ccaceebfae0..01e0bbb4265f 100644 --- a/website/allowed-subcategories +++ b/website/allowed-subcategories @@ -1,3 +1,4 @@ + AAD B2C API Management Active Directory Domain Services @@ -48,6 +49,7 @@ Desktop Virtualization Dev Center Dev Test Digital Twins +Dynatrace Elastic Elastic SAN Extended Location @@ -73,6 +75,7 @@ Maps Messaging Mixed Reality Mobile Network +Mongo Cluster Monitor NGINX NetApp @@ -105,6 +108,7 @@ Stream Analytics Synapse System Center Virtual Machine Manager Template +Trusted Signing Video Indexer Voice Services Web PubSub diff --git a/website/docs/5.0-upgrade-guide.html.markdown b/website/docs/5.0-upgrade-guide.html.markdown index 95b6939aaf1c..c0a95d04096d 100644 --- a/website/docs/5.0-upgrade-guide.html.markdown +++ b/website/docs/5.0-upgrade-guide.html.markdown @@ -34,6 +34,9 @@ Please follow the format in the example below for adding removed resources: This deprecated resource has been superseded/retired and has been removed from the Azure Provider. ``` +### `azurerm_security_center_auto_provisioning` + +* This deprecated resource has been removed from the Azure Provider. Please see the [documention for more details](https://learn.microsoft.com/en-us/azure/defender-for-cloud/prepare-deprecation-log-analytics-mma-agent#log-analytics-agent-autoprovisioning-experience---deprecation-plan). ## Removed Data Sources @@ -45,6 +48,10 @@ Please follow the format in the example below for adding removed data sources: This deprecated data source has been superseded/retired and has been removed from the Azure Provider. ``` +### `azurerm_logic_app_standard` + +* The deprecated `site_config.public_network_access_enabled` property has been removed and superseded by the `public_network_access` property. + ## Breaking Changes in Resources Please follow the format in the example below for listing breaking changes in resources: @@ -57,6 +64,61 @@ Please follow the format in the example below for listing breaking changes in re * The `example_property_with_changed_default` property now defaults to `NewDefault`. ``` +### `azurerm_cdn_frontdoor_custom_domain` + +* The `tls.minimum_tls_version` property no longer accepts `TLS10` as a value. + +### `azurerm_cosmosdb_account` + +* The `minimal_tls_version` property no longer accepts `Tls` or `Tls11` as a value. + +### `azurerm_eventhub` + +* The deprecated `namespace_name` property has been removed in favour of the `namespace_id` property. +* The deprecated `resource_group_name` property has been removed in favour of the `namespace_id` property. + +### `azurerm_eventhub_namespace` + +* The `minimum_tls_version` property no longer accepts `1.0` and `1.1` as a value. + +### `azurerm_logic_app_standard` + +* The deprecated `site_config.public_network_access_enabled` property has been removed and superseded by the `public_network_access` property. + +### `azurerm_monitor_aad_diagnostic_setting` + +* The deprecated `enabled_log.retention_policy` block has been removed. + +### `azurerm_mssql_database` + +* The properties `weekly_retention`, `monthly_retention` and `yearly_retention` now default to `PT0S`. + +### `azurerm_mssql_managed_database` + +* The properties `weekly_retention`, `monthly_retention` and `yearly_retention` now default to `PT0S`. + +## `azurerm_network_watcher_flow_log` + +* The deprecated `network_security_group_id` property has been removed in favour of the `target_resource_id` property. + +### `azurerm_sentinel_alert_rule_fusion` + +* The deprecated `name` property has been removed. + +### `azurerm_storage_account` + +* The deprecated `queue_properties` block has been removed and superseded by the `azurerm_storage_account_queue_properties` resource. +* The deprecated `static_website` block has been removed and superseded by the `azurerm_storage_account_static_website` resource. + +### `azurerm_storage_container` + +* The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property. +* The deprecated `resource_manager_id` property has been removed in favour of the `id` property. + +### `azurerm_storage_share` + +* The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property. +* The deprecated `resource_manager_id` property has been removed in favour of the `id` property. ## Breaking Changes in Data Sources @@ -68,3 +130,17 @@ Please follow the format in the example below for listing breaking changes in da * The deprecated `example_old_property` property has been removed in favour of the `example_new_property` property. * The deprecated `example_property_with_no_replacement` property has been removed. ``` + +### `azurerm_logic_app_standard` + +* The deprecated `site_config.public_network_access_enabled` property has been removed and superseded by the `public_network_access` property. + +### `azurerm_storage_container` + +* The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property. +* The deprecated `resource_manager_id` property has been removed in favour of the `id` property. +* +### `azurerm_storage_share` + +* The deprecated `storage_account_name` property has been removed in favour of the `storage_account_id` property. +* The deprecated `resource_manager_id` property has been removed in favour of the `id` property. diff --git a/website/docs/d/bastion_host.html.markdown b/website/docs/d/bastion_host.html.markdown index 691be603e5a5..3b95db3445da 100644 --- a/website/docs/d/bastion_host.html.markdown +++ b/website/docs/d/bastion_host.html.markdown @@ -62,6 +62,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `tags` - A mapping of tags assigned to the Bastion Host. +* `zones` - A list of Availability Zones in which this Bastion Host is located. + --- A `ip_configuration` block supports the following: diff --git a/website/docs/d/cognitive_account.html.markdown b/website/docs/d/cognitive_account.html.markdown index c8dd365dbbba..a79440e97a58 100644 --- a/website/docs/d/cognitive_account.html.markdown +++ b/website/docs/d/cognitive_account.html.markdown @@ -39,6 +39,8 @@ The following attributes are exported: * `location` - The Azure location where the Cognitive Services Account exists +* `local_auth_enabled` - Whether local authentication methods is enabled for the Cognitive Account. + * `kind` - The kind of the Cognitive Services Account * `sku_name` - The SKU name of the Cognitive Services Account @@ -51,6 +53,8 @@ The following attributes are exported: * `secondary_access_key` - The secondary access key of the Cognitive Services Account +-> **NOTE:** The `primary_access_key` and `secondary_access_key` properties are only available when `location_auth_enabled` is `true`. + * `tags` - A mapping of tags to assigned to the resource. --- diff --git a/website/docs/d/container_app.html.markdown b/website/docs/d/container_app.html.markdown index a845098a8050..e1ae9f0227c9 100644 --- a/website/docs/d/container_app.html.markdown +++ b/website/docs/d/container_app.html.markdown @@ -151,7 +151,7 @@ A `liveness_probe` block supports the following: * `host` - The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes. -* `initial_delay` - The time in seconds to wait after the container has started before the probe is started. +* `initial_delay` - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `1` seconds. * `interval_seconds` - How often, in seconds, the probe should run. Possible values are in the range `1` - `240`. Defaults to `10`. @@ -187,12 +187,14 @@ An `env` block supports the following: A `readiness_probe` block supports the following: -* `failure_count_threshold` - The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`. +* `failure_count_threshold` - The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`. * `header` - A `header` block as detailed below. * `host` - The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes. +* `initial_delay` - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds. + * `interval_seconds` - How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10` * `path` - The URI to use for http type probes. Not valid for `TCP` type probes. Defaults to `/`. @@ -217,12 +219,14 @@ A `header` block supports the following: A `startup_probe` block supports the following: -* `failure_count_threshold` - The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`. +* `failure_count_threshold` - The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`. * `header` - A `header` block as detailed below. * `host` - The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes. +* `initial_delay` - The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds. + * `interval_seconds` - How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10` * `path` - The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`. diff --git a/website/docs/d/key_vault_managed_hardware_security_module_key.html.markdown b/website/docs/d/key_vault_managed_hardware_security_module_key.html.markdown new file mode 100644 index 000000000000..4be6edb21467 --- /dev/null +++ b/website/docs/d/key_vault_managed_hardware_security_module_key.html.markdown @@ -0,0 +1,64 @@ +--- +subcategory: "Key Vault" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_key_vault_managed_hardware_security_module_key" +description: |- + Gets information about an existing Managed Hardware Security Module Key. + +--- + +# Data Source: azurerm_key_vault_managed_hardware_security_module_key + +Use this data source to access information about an existing Managed Hardware Security Module Key. + +~> **Note:** All arguments including the secret value will be stored in the raw state as plain-text. +[Read more about sensitive data in state](/docs/state/sensitive-data.html). + +## Example Usage + +```hcl +data "azurerm_key_vault_managed_hardware_security_module_key" "example" { + managed_hsm_id = azurerm_key_vault_managed_hardware_security_module.example.id + name = azurerm_key_vault_managed_hardware_security_module_key.example.name +} + +output "hsm-key-vesrion" { + value = data.azurerm_key_vault_managed_hardware_security_module_key.example.version +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - Specifies the name of the Managed Hardware Security Module Key. + +* `managed_hsm_id` - Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azurerm_key_vault_managed_hardware_security_module_key` Data Source / Resource. + +**NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The versionless ID of the Managed Hardware Security Module Key. + +* `curve` - The EC Curve name of this Managed Hardware Security Module Key. + +* `key_type` - Specifies the Key Type of this Managed Hardware Security Module Key + +* `key_size` - Specifies the Size of this Managed Hardware Security Module Key. + +* `key_opts` - A list of JSON web key operations assigned to this Managed Hardware Security Module Key + +* `tags` - A mapping of tags assigned to this Managed Hardware Security Module Key. + +* `version` - The current version of the Managed Hardware Security Module Key. + +* `versioned_id` - The versioned ID of the Managed Hardware Security Module Key. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the Managed Hardware Security Module Key. diff --git a/website/docs/d/logic_app_standard.html.markdown b/website/docs/d/logic_app_standard.html.markdown index d54e9d415f73..00ec35134dee 100644 --- a/website/docs/d/logic_app_standard.html.markdown +++ b/website/docs/d/logic_app_standard.html.markdown @@ -41,6 +41,52 @@ The following attributes are exported: * `identity` - An `identity` block as defined below. +* `app_service_plan_id` - The ID of the App Service Plan. + +* `app_settings` - A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. + +* `use_extension_bundle` - Whether the logic app should use the bundled extension package. + +* `bundle_version` - Controls the allowed range for bundle versions. + +* `client_affinity_enabled` - Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance. + +* `client_certificate_mode` - The mode of the Logic App's client certificates requirement for incoming requests. + +* `connection_string` - A `connection_string` block as defined below. + +* `custom_domain_verification_id` - The custom domain verification of the Logic App. + +* `default_hostname` - The default hostname of the Logic App. + +* `enabled` - Whether the Logic App is enabled. + +* `https_only` - Whether the Logic App can only be accessed via HTTPS. + +* `kind` - The kind of the Logic App. + +* `outbound_ip_addresses` - The outbound IP addresses of the Logic App. + +* `possible_outbound_ip_addresses` - The possible outbound IP addresses of the Logic App. + +* `public_network_access` - Whether Public Network Access should be enabled or not. + +* `site_config` - A `site_config` object as defined below. + +* `site_credential` - A `site_credential` block as defined below, which contains the site-level credentials used to publish to this Logic App. + +* `storage_account_name` - The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). + +* `storage_account_access_key` - The access key which will be used to access the backend storage account for the Logic App. + +* `storage_account_share_name` - The name of the share used by the logic app. + +* `tags` - A mapping of tags assigned to the resource. + +* `version` - The runtime version associated with the Logic App. + +* `virtual_network_subnet_id` - The subnet ID for the Logic App. + --- The `identity` block exports the following: @@ -51,6 +97,116 @@ The `identity` block exports the following: * `principal_id` - The Principal ID for the Service Principal associated with the Managed Service Identity of this Logic App Workflow. +--- + +he `site_credential` block exports the following: + +* `username` - The username which can be used to publish to this Logic App. + +* `password` - The password associated with the username, which can be used to publish to this Logic App. + +--- + +The `site_config` block exports the following: + +* `always_on` - Should the Logic App be loaded at all times? + +* `app_scale_limit` - The number of workers this Logic App can scale out to. Only applicable to apps on the Consumption and Premium plan. + +* `auto_swap_slot_name` - The Auto-swap slot name. + +* `cors` - A `cors` block as defined below. + +* `dotnet_framework_version` - The version of the .NET framework's CLR used in this Logic App. + +* `elastic_instance_minimum` - The number of minimum instances for this Logic App Only affects apps on the Premium plan. + +* `ftps_state` - The state of FTP / FTPS service for this Logic App. + +* `health_check_path` - Path which will be checked for this Logic App health. + +* `http2_enabled` - Specifies whether the HTTP2 protocol should be enabled. + +* `ip_restriction` - A list of `ip_restriction` objects representing IP restrictions as defined below. + +* `scm_ip_restriction` - A list of `scm_ip_restriction` objects representing SCM IP restrictions as defined below. + +* `scm_use_main_ip_restriction` - Should the Logic App `ip_restriction` configuration be used for the SCM too. + +* `scm_min_tls_version` - The minimum version of TLS required for SSL requests to the SCM site. + +* `scm_type` - The type of Source Control used by the Logic App in use by the Windows Function App. + +* `linux_fx_version` - Linux App Framework and version for the Logic App. + +* `min_tls_version` - The minimum supported TLS version for the Logic App. + +* `pre_warmed_instance_count` - The number of pre-warmed instances for this Logic App Only affects apps on the Premium plan. + +* `runtime_scale_monitoring_enabled` - Should Runtime Scale Monitoring be enabled?. Only applicable to apps on the Premium plan. + +* `use_32_bit_worker_process` - Should the Logic App run in 32 bit mode, rather than 64 bit mode? + +* `vnet_route_all_enabled` - Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied. + +* `websockets_enabled` - Should WebSockets be enabled? + +--- + +A `cors` block supports the following: + +* `allowed_origins` - A list of origins which should be able to make cross-origin calls. + +* `support_credentials` - Are credentials supported? + +--- + +A `ip_restriction` block supports the following: + +* `ip_address` - The IP Address used for this IP Restriction in CIDR notation. + +* `service_tag` - The Service Tag used for this IP Restriction. + +* `virtual_network_subnet_id` - The Virtual Network Subnet ID used for this IP Restriction. + +* `name` - The name for this IP Restriction. + +* `priority` - The priority for this IP Restriction. Restrictions are enforced in priority order. + +* `action` - Does this restriction `Allow` or `Deny` access for this IP range. + +* `headers` - The `headers` block for this specific as a `ip_restriction` block as defined below. + +--- + +A `scm_ip_restriction` block supports the following: + +* `ip_address` - The IP Address used for this IP Restriction in CIDR notation. + +* `service_tag` - The Service Tag used for this IP Restriction. + +* `virtual_network_subnet_id` - The Virtual Network Subnet ID used for this IP Restriction. + +* `name` - The name for this IP Restriction. + +* `priority` - The priority for this IP Restriction. Restrictions are enforced in priority order. + +* `action` - Does this restriction `Allow` or `Deny` access for this IP range. + +* `headers` - The `headers` block for this specific `ip_restriction` as defined below. + +--- + +A `headers` block supports the following: + +* `x_azure_fdid` - A list of allowed Azure FrontDoor IDs in UUID notation. + +* `x_fd_health_probe` - A list to allow the Azure FrontDoor health probe header. + +* `x_forwarded_for` - A list of allowed 'X-Forwarded-For' IPs in CIDR notation. + +* `x_forwarded_host` - A list of allowed 'X-Forwarded-Host' domains. + ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: diff --git a/website/docs/d/netapp_backup_policy.html.markdown b/website/docs/d/netapp_backup_policy.html.markdown new file mode 100644 index 000000000000..b94b4f537d8c --- /dev/null +++ b/website/docs/d/netapp_backup_policy.html.markdown @@ -0,0 +1,67 @@ +--- +subcategory: "NetApp" +layout: "azurerm" +page_title: "Azure Resource Manager: netapp_backup_policy" +description: |- + Gets information about an existing NetApp Backup Policy +--- + +# Data Source: netapp_backup_policy + +Use this data source to access information about an existing NetApp Backup Vault. + +## NetApp Backup Policy Usage + +```hcl +data "azurerm_netapp_backup_policy" "example" { + resource_group_name = "example-resource-group" + account_name = "example-netappaccount" + name = "example-backuppolicy" +} + +output "backup_policy_id" { + value = data.azurerm_netapp_backup_policy.example.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - The name of the NetApp Backup Policy. + +* `resource_group_name` - The name of the resource group where the NetApp Backup Policy exists. + +* `account_name` - The name of the NetApp Account in which the NetApp Policy exists. + +## Attributes Reference + +The following attributes are exported: + +* `location` - NetApp Backup Policy location. + +* `account_name` - The name of the NetApp account in which the NetApp Policy exists. + +* `daily_backups_to_keep` - The number of daily backups to keep. + +* `weekly_backups_to_keep` - The number of weekly backups to keep. + +* `monthly_backups_to_keep` - The number of monthly backups to keep. + +* `enabled` - Whether the Backup Policy is enabled. + +* `tags` - List of tags assigned to the resource. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the NetApp Backup Policy. + +## Import + +NetApp Backup Policy can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_netapp_backup_policy.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 +``` diff --git a/website/docs/d/netapp_backup_vault.html.markdown b/website/docs/d/netapp_backup_vault.html.markdown new file mode 100644 index 000000000000..e5494d3e65bf --- /dev/null +++ b/website/docs/d/netapp_backup_vault.html.markdown @@ -0,0 +1,49 @@ +--- +subcategory: "NetApp" +layout: "azurerm" +page_title: "Azure Resource Manager: netapp_backup_vault" +description: |- + Gets information about an existing NetApp Backup Vault +--- + +# Data Source: netapp_backup_vault + +Use this data source to access information about an existing NetApp Backup Vault. + +## NetApp Backup Vault Usage + +```hcl +data "azurerm_netapp_backup_vault" "example" { + resource_group_name = "example-resource-group" + account_name = "example-netappaccount" + name = "example-backupvault" +} + +output "backup_vault_id" { + value = data.azurerm_netapp_backup_vault.example.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - The name of the NetApp Backup Vault. + +* `resource_group_name` - The name of the resource group where the NetApp Backup Vault exists. + +* `account_name` - The name of the NetApp Account in which the NetApp Vault exists. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the NetApp Backup Vault. + +## Import + +NetApp Backup Vault can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_netapp_backup_vault.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backupvault1 +``` diff --git a/website/docs/d/netapp_volume.html.markdown b/website/docs/d/netapp_volume.html.markdown index 1b15c2955ca6..9fadb3d7e7fc 100644 --- a/website/docs/d/netapp_volume.html.markdown +++ b/website/docs/d/netapp_volume.html.markdown @@ -59,7 +59,9 @@ The following attributes are exported: * `security_style` - Volume security style -* `data_protection_replication` - Volume data protection block +* `data_protection_replication` - Volume data protection replication block + +* `data_protection_backup_policy` - A data protecion backup policy block * `volume_path` - The unique file path of the volume. @@ -81,6 +83,16 @@ A `data_protection_replication` block exports the following: --- +A `data_protection_backup_policy` block supports the following: + +* `backup_vault_id` - The Resource ID of the backup backup vault. + +* `backup_policy_id` - The Resource ID of the backup policy. + +* `policy_enabled` - Backup policy is enabled or not. + +--- + ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: diff --git a/website/docs/d/oracle_adbs_character_sets.html.markdown b/website/docs/d/oracle_adbs_character_sets.html.markdown new file mode 100644 index 000000000000..0875ede589a2 --- /dev/null +++ b/website/docs/d/oracle_adbs_character_sets.html.markdown @@ -0,0 +1,47 @@ +--- +subcategory: "Oracle" +layout: "azurerm" +page_title: "Azure Resource Manager: Data Source: azurerm_oracle_adbs_character_sets" +description: |- + This data source provides the list of Autonomous Database Character Sets. +--- + +# Data Source: azurerm_oracle_adbs_character_sets + +Gets a list of supported character sets. + +## Example Usage + +```hcl +data "azurerm_oracle_adbs_character_sets" "example" { + location = "West Europe" +} + +output "example" { + value = data.azurerm_oracle_adbs_character_sets.example +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `location` - (Required) The Azure Region to query for the character sets in. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `character_sets` - A `character_sets` block as defined below. + +--- + +A `character_sets` block exports the following: + +* `character_set` - A valid Oracle character set. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the Oracle character set. diff --git a/website/docs/d/oracle_adbs_national_character_sets.html.markdown b/website/docs/d/oracle_adbs_national_character_sets.html.markdown new file mode 100644 index 000000000000..15c8d80a5c34 --- /dev/null +++ b/website/docs/d/oracle_adbs_national_character_sets.html.markdown @@ -0,0 +1,47 @@ +--- +subcategory: "Oracle" +layout: "azurerm" +page_title: "Azure Resource Manager: Data Source: azurerm_oracle_adbs_national_character_sets" +description: |- + This data source provides the list of Autonomous Database National Character Sets. +--- + +# Data Source: azurerm_oracle_adbs_national_character_sets + +Gets a list of supported national character sets. + +## Example Usage + +```hcl +data "azurerm_oracle_adbs_character_sets" "example" { + location = "West Europe" +} + +output "example" { + value = data.azurerm_oracle_adbs_national_character_sets.example +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `location` - (Required) The Azure Region to query for the national character sets in. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `character_sets` - A `character_sets` block as defined below. + +--- + +A `character_sets` block exports the following: + +* `character_set` - A valid Oracle national character set. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the Oracle national character set. diff --git a/website/docs/d/oracle_autonomous_database_regular.html.markdown b/website/docs/d/oracle_autonomous_database.html.markdown similarity index 100% rename from website/docs/d/oracle_autonomous_database_regular.html.markdown rename to website/docs/d/oracle_autonomous_database.html.markdown diff --git a/website/docs/d/oracle_db_nodes.html.markdown b/website/docs/d/oracle_db_nodes.html.markdown new file mode 100644 index 000000000000..fbb34bc735fa --- /dev/null +++ b/website/docs/d/oracle_db_nodes.html.markdown @@ -0,0 +1,87 @@ +--- +subcategory: "Oracle" +layout: "azurerm" +page_title: "Azure Resource Manager: Data Source: azurerm_oracle_db_nodes" +description: |- + This data source provides the list of DB Nodes. +--- + +# Data Source: azurerm_oracle_db_nodes + +Lists the database nodes for the specified Cloud VM Cluster. + +## Example Usage + +```hcl +data "azurerm_oracle_db_nodes" "example" { + cloud_vm_cluster_id = "existing" +} + +output "example" { + value = data.azurerm_oracle_db_nodes.example +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `cloud_vm_cluster_id` - (Required) The id of the Cloud VM cluster. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `db_nodes` - A `db_nodes` block as defined below. + +--- + +A `db_nodes` block exports the following: + +* `additional_details` - Additional information about the planned maintenance. + +* `backup_ip_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + +* `backup_vnic_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + +* `backup_vnic2id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + +* `cpu_core_count` - The number of CPU cores enabled on the DB node. + +* `db_node_storage_size_in_gbs` - The allocated local node storage in GBs on the DB node. + +* `db_server_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ExaCC DB server associated with the database node. + +* `db_system_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + +* `fault_domain` - The name of the Fault Domain the instance is contained in. + +* `host_ip_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + +* `lifecycle_details` - Information about the current lifecycle details. + +* `lifecycle_state` - Information about the current lifecycle state. + +* `maintenance_type` - The type of database node maintenance. + +* `memory_size_in_gbs` - The allocated memory in GBs on the DB Node. + +* `ocid` - The [OCID](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm) of the DB node. + +* `software_storage_size_in_gb` - The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + +* `time_created` - The date and time that the DB node was created. + +* `time_maintenance_window_end` - End date and time of maintenance window. + +* `time_maintenance_window_start` - Start date and time of maintenance window. + +* `vnic2id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + +* `vnic_id` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the DB Node. diff --git a/website/docs/d/oracle_db_system_shapes.html.markdown b/website/docs/d/oracle_db_system_shapes.html.markdown new file mode 100644 index 000000000000..1f73955a3144 --- /dev/null +++ b/website/docs/d/oracle_db_system_shapes.html.markdown @@ -0,0 +1,87 @@ +--- +subcategory: "Oracle" +layout: "azurerm" +page_title: "Azure Resource Manager: Data Source: azurerm_oracle_db_system_shapes" +description: |- + Provides the list of DB System Shapes. +--- + +# Data Source: azurerm_oracle_db_system_shapes + +This data source provides the list of DB System Shapes in Oracle Cloud Infrastructure Database service. + +Gets a list of the shapes that can be used to launch a new DB system. The shape determines resources to allocate to the DB system - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. + +## Example Usage + +```hcl +data "azurerm_oracle_db_system_shapes" "example" { + location = "West Europe" +} + +output "example" { + value = data.azurerm_oracle_db_system_shapes.example +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `location` - (Required) The Azure Region to query for the system shapes in. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `db_system_shapes` - A `db_system_shapes` block as defined below. + +--- + +A `db_system_shapes` block exports the following: + +* `available_core_count` - The maximum number of CPU cores that can be enabled on the DB system for this shape. + +* `available_core_count_per_node` - The maximum number of CPU cores per database node that can be enabled for this shape. Only applicable to the flex Exadata shape, ExaCC Elastic shapes and VM Flex shapes. + +* `available_data_storage_in_tbs` - The maximum data storage that can be enabled for this shape. + +* `available_data_storage_per_server_in_tbs` - The maximum data storage available per storage server for this shape. Only applicable to ExaCC Elastic shapes. + +* `available_db_node_per_node_in_gbs` - The maximum DB Node storage available per database node for this shape. Only applicable to ExaCC Elastic shapes. + +* `available_db_node_storage_in_gbs` - The maximum DB Node storage that can be enabled for this shape. + +* `available_memory_in_gbs` - The maximum memory that can be enabled for this shape. + +* `available_memory_per_node_in_gbs` - The maximum memory available per database node for this shape. Only applicable to ExaCC Elastic shapes. + +* `core_count_increment` - The discrete number by which the CPU core count for this shape can be increased or decreased. + +* `maximum_storage_count` - The maximum number of Exadata storage servers available for the Exadata infrastructure. + +* `maximum_node_count` - The maximum number of compute servers available for this shape. + +* `minimum_core_count_per_node` - The minimum number of CPU cores that can be enabled per node for this shape. + +* `minimum_data_storage_in_tbs` - The minimum data storage that need be allocated for this shape. + +* `minimum_db_node_storage_per_node_in_gbs` - The minimum DB Node storage that need be allocated per node for this shape. + +* `minimum_memory_per_node_in_gbs` - The minimum memory that need be allocated per node for this shape. + +* `minimum_storage_count` - The minimum number of Exadata storage servers available for the Exadata infrastructure. + +* `minimum_core_count` - The minimum number of CPU cores that can be enabled on the DB system for this shape. + +* `minimum_node_count` - The minimum number of compute servers available for this shape. + +* `runtime_minimum_core_count` - The runtime minimum number of compute servers available for this shape. + +* `shape_family` - The family of the shape used for the DB system. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the System Shapes. diff --git a/website/docs/d/oracle_gi_versions.html.markdown b/website/docs/d/oracle_gi_versions.html.markdown new file mode 100644 index 000000000000..235da9ccc367 --- /dev/null +++ b/website/docs/d/oracle_gi_versions.html.markdown @@ -0,0 +1,43 @@ +--- +subcategory: "Oracle" +layout: "azurerm" +page_title: "Azure Resource Manager: Data Source: azurerm_oracle_gi_versions" +description: |- + Provides the list of GI (Grid Infrastructure) Versions. +--- + +# Data Source: azurerm_oracle_gi_versions + +This data source provides the list of GI Versions in Oracle Cloud Infrastructure Database service. + +Gets a list of supported GI versions. + +## Example Usage + +```hcl +data "azurerm_oracle_gi_versions" "example" { + location = "West Europe" +} + +output "example" { + value = data.azurerm_oracle_gi_versions.example +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `location` - (Required) The Azure Region to query for the GI Versions in. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `versions` - A list of valid GI software versions. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the GI Versions. diff --git a/website/docs/d/public_ip_prefix.html.markdown b/website/docs/d/public_ip_prefix.html.markdown index f8f47575c220..4fe3deb77cfd 100644 --- a/website/docs/d/public_ip_prefix.html.markdown +++ b/website/docs/d/public_ip_prefix.html.markdown @@ -35,6 +35,7 @@ output "public_ip_prefix" { * `ip_prefix` - The Public IP address range, in CIDR notation. * `location` - The supported Azure location where the resource exists. * `sku` - The SKU of the Public IP Prefix. +* `sku_tier` - The SKU Tier of the Public IP. * `prefix_length` - The number of bits of the prefix. * `tags` - A mapping of tags to assigned to the resource. * `zones` - A list of Availability Zones in which this Public IP Prefix is located. diff --git a/website/docs/d/search_service.html.markdown b/website/docs/d/search_service.html.markdown index d1e0a2b8eb37..795657833859 100644 --- a/website/docs/d/search_service.html.markdown +++ b/website/docs/d/search_service.html.markdown @@ -38,6 +38,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `id` - The ID of the Search Service. +* `customer_managed_key_encryption_compliance_status` - Describes whether the search service is compliant or not with respect to having non-customer encrypted resources. If a service has more than one non-customer encrypted resource and `Enforcement` is `enabled` then the service will be marked as `NonCompliant`. If all the resources are customer encrypted, then the service will be marked as `Compliant`. + * `primary_key` - The Primary Key used for Search Service Administration. * `secondary_key` - The Secondary Key used for Search Service Administration. diff --git a/website/docs/d/storage_container.html.markdown b/website/docs/d/storage_container.html.markdown index 62be44b89610..6b85fbc66488 100644 --- a/website/docs/d/storage_container.html.markdown +++ b/website/docs/d/storage_container.html.markdown @@ -13,9 +13,14 @@ Use this data source to access information about an existing Storage Container. ## Example Usage ```hcl +data "azurerm_storage_account" "example" { + name = "exampleaccount" + resource_group_name = "examples" +} + data "azurerm_storage_container" "example" { - name = "example-container-name" - storage_account_name = "example-storage-account-name" + name = "example-container-name" + storage_account_id = data.azurerm_storage_account.example.id } ``` @@ -25,7 +30,11 @@ The following arguments are supported: * `name` - The name of the Container. -* `storage_account_name` - The name of the Storage Account where the Container exists. +* `storage_account_name` - (Optional) The name of the Storage Account where the Container exists. This property is deprecated in favour of `storage_account_id`. + +* `storage_account_id` - (Optional) The name of the Storage Account where the Container exists. This property will become Required in version 5.0 of the Provider. + +~> **NOTE:** One of `storage_account_name` or `storage_account_id` must be specified. When specifying `storage_account_id` the resource will use the Resource Manager API, rather than the Data Plane API. ## Attributes Reference @@ -41,7 +50,7 @@ The following arguments are supported: * `metadata` - A mapping of MetaData for this Container. -* `resource_manager_id` - The Resource Manager ID of this Storage Container. +* `id` - The Resource Manager ID of this Storage Container. ## Timeouts diff --git a/website/docs/d/storage_share.html.markdown b/website/docs/d/storage_share.html.markdown index d4e0bbbdda16..c8892a2d78ff 100644 --- a/website/docs/d/storage_share.html.markdown +++ b/website/docs/d/storage_share.html.markdown @@ -15,14 +15,16 @@ Use this data source to access information about an existing File Share. ## Example Usage ```hcl -data "azurerm_storage_share" "example" { - name = "existing" - storage_account_name = "existing" +data "azurerm_storage_account" "example" { + name = "exampleaccount" + resource_group_name = "examples" } -output "id" { - value = data.azurerm_storage_share.example.id +data "azurerm_storage_share" "example" { + name = "existing" + storage_account_id = data.azurerm_storage_account.example.id } + ``` ## Arguments Reference @@ -31,7 +33,11 @@ The following arguments are supported: * `name` - (Required) The name of the share. -* `storage_account_name` - (Required) The name of the storage account. +* `storage_account_name` - (Optional) The name of the storage account in which the share exists. This property is deprecated in favour of `storage_account_id`. + +* `storage_account_id` - (Optional) The ID of the storage account in which the share exists. + +~> **NOTE:** One of `storage_account_name` or `storage_account_id` must be specified. When specifying `storage_account_id` the resource will use the Resource Manager API, rather than the Data Plane API. ## Attributes Reference @@ -57,9 +63,9 @@ A `access_policy` block has the following attributes: * `permissions` - The permissions which should be associated with this Shared Identifier. Possible value is combination of `r` (read), `w` (write), `d` (delete), and `l` (list). -* `start` - The time at which this Access Policy should be valid from, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format. +* `start` - The time at which this Access Policy is valid from. -* `expiry` - The time at which this Access Policy should be valid until, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format. +* `expiry` - The time at which this Access Policy is valid until. ## Timeouts diff --git a/website/docs/d/virtual_network_peering.html.markdown b/website/docs/d/virtual_network_peering.html.markdown new file mode 100644 index 000000000000..e23950a46f1a --- /dev/null +++ b/website/docs/d/virtual_network_peering.html.markdown @@ -0,0 +1,63 @@ +--- +subcategory: "Network" +layout: "azurerm" +page_title: "Azure Resource Manager: Data Source: azurerm_virtual_network_peering" +description: |- + Gets information about an existing virtual network peering. +--- + +# Data Source: azurerm_virtual_network_peering + +Use this data source to access information about an existing virtual network peering. + +## Example Usage + +```hcl +data "azurerm_virtual_network" "example" { + name = "vnet01" + resource_group_name = "networking" +} + +data "azurerm_virtual_network_peering" "example" { + name = "peer-vnet01-to-vnet02" + virtual_network_id = data.azurerm_virtual_network.example.id +} + +output "id" { + value = data.azurerm_virtual_network_peering.example.id +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) The name of this virtual network peering. + +* `virtual_network_id` - (Required) The resource ID of the virtual network. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the virtual network peering. + +* `allow_forwarded_traffic` - Controls if forwarded traffic from VMs in the remote virtual network is allowed. + +* `allow_gateway_transit` - Controls gatewayLinks can be used in the remote virtual network’s link to the local virtual network. + +* `allow_virtual_network_access` - Controls if the traffic from the local virtual network can reach the remote virtual network. + +* `only_ipv6_peering_enabled` - Specifies whether only IPv6 address space is peered for Subnet peering. + +* `peer_complete_virtual_networks_enabled` - Specifies whether complete Virtual Network address space is peered. + +* `remote_virtual_network_id` - The full Azure resource ID of the remote virtual network. + +* `use_remote_gateways` - Controls if remote gateways can be used on the local virtual network. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `read` - (Defaults to 5 minutes) Used when retrieving the virtual network peering. diff --git a/website/docs/ephemeral-resources/key_vault_certificate.html.markdown b/website/docs/ephemeral-resources/key_vault_certificate.html.markdown new file mode 100644 index 000000000000..a0b6b4c93a75 --- /dev/null +++ b/website/docs/ephemeral-resources/key_vault_certificate.html.markdown @@ -0,0 +1,53 @@ +--- +subcategory: "Key Vault" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_key_vault_certificate" +description: |- + Gets information about an existing Key Vault Certificate. +--- + +# Ephemeral: azurerm_key_vault_certificate + +~> Ephemeral Resources are supported in Terraform 1.10 and later. + +Use this to access information about an existing Key Vault Certificate. + +## Example Usage + +```hcl +data "azurerm_key_vault" "example" { + name = "examplekv" + resource_group_name = "some-resource-group" +} + +ephemeral "azurerm_key_vault_certificate" "example" { + name = "secret-sauce" + key_vault_id = data.azurerm_key_vault.example.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) Specifies the name of the Key Vault Certificate. + +* `key_vault_id` - (Required) Specifies the ID of the Key Vault instance where the Certificate resides, available on the `azurerm_key_vault` Data Source / Resource. + +* `version` - (Optional) Specifies the version of the Key Vault Certificate. Defaults to the current version of the Key Vault Certificate. + +~> **NOTE:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. + +## Attributes Reference + +The following attributes are exported: + +* `hex` - The raw Key Vault Certificate data represented as a hexadecimal string. + +* `pem` - The Key Vault Certificate in PEM format. + +* `key` - The Key Vault Certificate Key. + +* `expiration_date` - The date and time at which the Key Vault Certificate expires and is no longer valid. + +* `not_before_date` - The earliest date at which the Key Vault Certificate can be used. diff --git a/website/docs/ephemeral-resources/key_vault_secret.html.markdown b/website/docs/ephemeral-resources/key_vault_secret.html.markdown new file mode 100644 index 000000000000..976d5a206b73 --- /dev/null +++ b/website/docs/ephemeral-resources/key_vault_secret.html.markdown @@ -0,0 +1,49 @@ +--- +subcategory: "Key Vault" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_key_vault_secret" +description: |- + Gets information about an existing Key Vault Secret. +--- + +# Ephemeral: azurerm_key_vault_secret + +~> Ephemeral Resources are supported in Terraform 1.10 and later. + +Use this to access information about an existing Key Vault Secret. + +## Example Usage + +```hcl +data "azurerm_key_vault" "example" { + name = "examplekv" + resource_group_name = "some-resource-group" +} + +ephemeral "azurerm_key_vault_secret" "example" { + name = "secret-sauce" + key_vault_id = data.azurerm_key_vault.example.id +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) Specifies the name of the Key Vault Secret. + +* `key_vault_id` - (Required) Specifies the ID of the Key Vault instance where the Secret resides, available on the `azurerm_key_vault` Data Source / Resource. + +* `version` - (Optional) Specifies the version of the Key Vault Secret. Defaults to the current version of the Key Vault Secret. + +~> **NOTE:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription. + +## Attributes Reference + +The following attributes are exported: + +* `expiration_date` - The date and time at which the Key Vault Secret expires and is no longer valid. + +* `not_before_date` - The earliest date at which the Key Vault Secret can be used. + +* `value` - The Key Vault Secret value. diff --git a/website/docs/guides/features-block.html.markdown b/website/docs/guides/features-block.html.markdown index 622b139922cb..0ae8ac8639d3 100644 --- a/website/docs/guides/features-block.html.markdown +++ b/website/docs/guides/features-block.html.markdown @@ -62,6 +62,11 @@ provider "azurerm" { expand_without_downtime = true } + netapp { + delete_backups_on_backup_vault_destroy = false + prevent_volume_destruction = true + } + postgresql_flexible_server { restart_server_on_configuration_value_change = true } @@ -123,6 +128,8 @@ The `features` block supports the following: * `managed_disk` - (Optional) A `managed_disk` block as defined below. +* `netapp` - (Optional) A `netapp` block as defined below. + * `recovery_service` - (Optional) A `recovery_service` block as defined below. * `resource_group` - (Optional) A `resource_group` block as defined below. @@ -217,6 +224,13 @@ The `managed_disk` block supports the following: --- +The `netapp` block supports the following: + +* `delete_backups_on_backup_vault_destroy` - (Optional) Should backups be deleted when an `azurerm_netapp_backup_vault` is being deleted? Defaults to `false`. +* `prevent_volume_destruction` - (Optional) Should an `azurerm_netapp_volume` be protected against deletion (intentionally or unintentionally)? Defaults to `true`. + +--- + The `postgresql_flexible_server` block supports the following: * `restart_server_on_configuration_value_change` - (Optional) Should the `postgresql_flexible_server` restart after static server parameter change or removal? Defaults to `true`. diff --git a/website/docs/r/ai_services.html.markdown b/website/docs/r/ai_services.html.markdown index 8110de3b1d94..9133364e0008 100644 --- a/website/docs/r/ai_services.html.markdown +++ b/website/docs/r/ai_services.html.markdown @@ -124,6 +124,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `secondary_access_key` - The secondary access key which can be used to connect to the AI Services Account. +-> **NOTE:** The `primary_access_key` and `secondary_access_key` properties are only available when `local_authentication_enabled` is set to `true`. + --- An `identity` block exports the following: diff --git a/website/docs/r/api_management_api.html.markdown b/website/docs/r/api_management_api.html.markdown index 57d9ed9a2dfb..f9974036006d 100644 --- a/website/docs/r/api_management_api.html.markdown +++ b/website/docs/r/api_management_api.html.markdown @@ -36,10 +36,9 @@ resource "azurerm_api_management_api" "example" { display_name = "Example API" path = "example" protocols = ["https"] - import { content_format = "swagger-link-json" - content_value = "http://conferenceapi.azurewebsites.net/?format=json" + content_value = "https://raw.githubusercontent.com/hashicorp/terraform-provider-azurerm/refs/heads/main/internal/services/apimanagement/testdata/api_management_api_schema_swagger.json" } } ``` @@ -116,7 +115,7 @@ A `import` block supports the following: * `content_format` - (Required) The format of the content from which the API Definition should be imported. Possible values are: `openapi`, `openapi+json`, `openapi+json-link`, `openapi-link`, `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`. -* `content_value` - (Required) The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline. +* `content_value` - (Required) The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline. The URL must be accessible and return a valid document; otherwise, deployment may fail. * `wsdl_selector` - (Optional) A `wsdl_selector` block as defined below, which allows you to limit the import of a WSDL to only a subset of the document. This can only be specified when `content_format` is `wsdl` or `wsdl-link`. diff --git a/website/docs/r/application_gateway.html.markdown b/website/docs/r/application_gateway.html.markdown index 4a28c064cb07..0a4625d8dea5 100644 --- a/website/docs/r/application_gateway.html.markdown +++ b/website/docs/r/application_gateway.html.markdown @@ -184,7 +184,7 @@ The following arguments are supported: * `autoscale_configuration` - (Optional) An `autoscale_configuration` block as defined below. -* `rewrite_rule_set` - (Optional) One or more `rewrite_rule_set` blocks as defined below. Only valid for v2 SKUs. +* `rewrite_rule_set` - (Optional) One or more `rewrite_rule_set` blocks as defined below. Only valid for v2 WAF and Standard SKUs. --- @@ -202,11 +202,13 @@ A `trusted_root_certificate` block supports the following: * `data` - (Optional) The contents of the Trusted Root Certificate which should be used. Required if `key_vault_secret_id` is not set. -* `key_vault_secret_id` - (Optional) The Secret ID of (base-64 encoded unencrypted pfx) `Secret` or `Certificate` object stored in Azure KeyVault. You need to enable soft delete for the Key Vault to use this feature. Required if `data` is not set. +* `key_vault_secret_id` - (Optional) The Secret ID of the (base-64 encoded unencrypted pfx) `Secret` or `Certificate` object stored in Azure KeyVault. You need to enable soft delete for the Key Vault to use this feature. Required if `data` is not set. + +-> **NOTE:** To implement certificate rotation, `versionless_secret_id` should be used, although `secret_id` is also supported. -> **NOTE:** TLS termination with Key Vault certificates is limited to the [v2 SKUs](https://docs.microsoft.com/azure/application-gateway/key-vault-certs). --> **NOTE:** For TLS termination with Key Vault certificates to work properly existing user-assigned managed identity, which Application Gateway uses to retrieve certificates from Key Vault, should be defined via `identity` block. Additionally, access policies in the Key Vault to allow the identity to be granted *get* access to the secret should be defined. +-> **NOTE:** For TLS termination with Key Vault certificates to work properly, an existing user-assigned managed identity, which Application Gateway uses to retrieve certificates from Key Vault, should be defined via `identity` block. Additionally, access policies in the Key Vault to allow the identity to be granted *get* access to the secret should be defined. --- @@ -328,7 +330,7 @@ An `identity` block supports the following: * `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this Application Gateway. Only possible value is `UserAssigned`. -* `identity_ids` - (Required) Specifies a list of User Assigned Managed Identity IDs to be assigned to this Application Gateway. +* `identity_ids` - (Optional) Specifies a list of User Assigned Managed Identity IDs to be assigned to this Application Gateway. --- @@ -402,7 +404,7 @@ A `probe` block supports the following: * `unhealthy_threshold` - (Required) The Unhealthy Threshold for this Probe, which indicates the amount of retries which should be attempted before a node is deemed unhealthy. Possible values are from 1 to 20. -* `port` - (Optional) Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from HTTP settings will be used. This property is valid for Standard_v2 and WAF_v2 only. +* `port` - (Optional) Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from HTTP settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only. * `pick_host_name_from_backend_http_settings` - (Optional) Whether the host header should be picked from the backend HTTP settings. Defaults to `false`. @@ -448,13 +450,13 @@ A `global` block supports the following: A `sku` block supports the following: -* `name` - (Required) The Name of the SKU to use for this Application Gateway. Possible values are `Standard_Small`, `Standard_Medium`, `Standard_Large`, `Standard_v2`, `WAF_Medium`, `WAF_Large`, and `WAF_v2`. +* `name` - (Required) The Name of the SKU to use for this Application Gateway. Possible values are `Basic`, `Standard_Small`, `Standard_Medium`, `Standard_Large`, `Basic`, `Standard_v2`, `WAF_Medium`, `WAF_Large`, and `WAF_v2`. -* `tier` - (Required) The Tier of the SKU to use for this Application Gateway. Possible values are `Standard`, `Standard_v2`, `WAF` and `WAF_v2`. +* `tier` - (Required) The Tier of the SKU to use for this Application Gateway. Possible values are `Basic`, `Standard`, `Standard_v2`, `WAF` and `WAF_v2`. -!> **NOTE:** The `Standard` and `WAF` SKU have been deprecated in favour of the `Standard_v2` and `WAF_v2` SKU. Please see the [Azure documentation](https://aka.ms/V1retirement) for more details. +!> **NOTE:** The `Standard` and `WAF` SKU have been deprecated in favour of the `Basic`, `Standard_v2` and `WAF_v2` SKU. Please see the [Azure documentation](https://aka.ms/V1retirement) for more details. -* `capacity` - (Optional) The Capacity of the SKU to use for this Application Gateway. When using a V1 SKU this value must be between `1` and `32`, and `1` to `125` for a V2 SKU. This property is optional if `autoscale_configuration` is set. +* `capacity` - (Optional) The Capacity of the SKU to use for this Application Gateway. When using a V1 SKU this value must be between `1` and `32`, and `1` to `125` for a V2 SKU. When using a `Basic` SKU this property must be between `1` and `2`. This property is optional if `autoscale_configuration` is set. --- @@ -468,11 +470,13 @@ A `ssl_certificate` block supports the following: * `password` - (Optional) Password for the pfx file specified in data. Required if `data` is set. -* `key_vault_secret_id` - (Optional) The Secret ID of (base-64 encoded unencrypted pfx) the `Secret` or `Certificate` object stored in Azure KeyVault. You need to enable soft delete for Key Vault to use this feature. Required if `data` is not set. +* `key_vault_secret_id` - (Optional) The Secret ID of the (base-64 encoded unencrypted pfx) `Secret` or `Certificate` object stored in Azure KeyVault. You need to enable soft delete for Key Vault to use this feature. Required if `data` is not set. + +-> **NOTE:** To implement certificate rotation, `versionless_secret_id` should be used, although `secret_id` is also supported. -> **NOTE:** TLS termination with Key Vault certificates is limited to the [v2 SKUs](https://docs.microsoft.com/azure/application-gateway/key-vault-certs). --> **NOTE:** For TLS termination with Key Vault certificates to work properly existing user-assigned managed identity, which Application Gateway uses to retrieve certificates from Key Vault, should be defined via `identity` block. Additionally, access policies in the Key Vault to allow the identity to be granted *get* access to the secret should be defined. +-> **NOTE:** For TLS termination with Key Vault certificates to work properly, an existing user-assigned managed identity, which Application Gateway uses to retrieve certificates from Key Vault, should be defined via `identity` block. Additionally, access policies in the Key Vault to allow the identity to be granted *get* access to the secret should be defined. --- @@ -545,7 +549,7 @@ A `waf_configuration` block supports the following: * `rule_set_type` - (Optional) The Type of the Rule Set used for this Web Application Firewall. Possible values are `OWASP`, `Microsoft_BotManagerRuleSet` and `Microsoft_DefaultRuleSet`. Defaults to `OWASP`. -* `rule_set_version` - (Required) The Version of the Rule Set used for this Web Application Firewall. Possible values are `0.1`, `1.0`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`. +* `rule_set_version` - (Required) The Version of the Rule Set used for this Web Application Firewall. Possible values are `0.1`, `1.0`, `1.1`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`. * `disabled_rule_group` - (Optional) One or more `disabled_rule_group` blocks as defined below. @@ -579,7 +583,7 @@ A `exclusion` block supports the following: A `custom_error_configuration` block supports the following: -* `status_code` - (Required) Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` +* `status_code` - (Required) Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * `custom_error_page_url` - (Required) Error page URL of the application gateway customer error. diff --git a/website/docs/r/arc_machine.html.markdown b/website/docs/r/arc_machine.html.markdown index 4c064cf839d9..612fa75a8335 100644 --- a/website/docs/r/arc_machine.html.markdown +++ b/website/docs/r/arc_machine.html.markdown @@ -23,6 +23,14 @@ resource "azurerm_arc_machine" "example" { resource_group_name = azurerm_resource_group.example.name location = azurerm_resource_group.example.location kind = "SCVMM" + + identity { + type = "SystemAssigned" + } + + tags = { + environment = "example" + } } ``` @@ -38,18 +46,39 @@ The following arguments are supported: * `kind` - (Required) The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. +* `identity` - (Optional) An `identity` block as defined below. + +* `tags` - (Optional) A mapping of tags to assign to the Arc Machine. + +--- + +* An `identity` block supports the following: + +* `type` - (Required) Specifies the type of Managed Service Identity assigned to this Arc Machine. At this time the only possible value is `SystemAssigned`. Changing this forces a new resource to be created. + ## Attributes Reference In addition to the Arguments listed above - the following Attributes are exported: * `id` - The ID of the Arc Machine. +* `identity` - An `identity` block as defined below. + +--- + +An `identity` block exports the following: + +* `principal_id` - The Principal ID associated with this Managed Service Identity. + +* `tenant_id` - The Tenant ID associated with this Managed Service Identity. + ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions: * `create` - (Defaults to 30 minutes) Used when creating this Arc Machine. * `read` - (Defaults to 5 minutes) Used when retrieving this Arc Machine. +* `update` - (Defaults to 30 minutes) Used when updating this Arc Machine. * `delete` - (Defaults to 30 minutes) Used when deleting this Arc Machine. ## Import diff --git a/website/docs/r/automation_job_schedule.html.markdown b/website/docs/r/automation_job_schedule.html.markdown index cf1fbfa57708..3eb1e84dd038 100644 --- a/website/docs/r/automation_job_schedule.html.markdown +++ b/website/docs/r/automation_job_schedule.html.markdown @@ -10,7 +10,7 @@ description: |- Links an Automation Runbook and Schedule. -~> **NOTE** AzureRM provides this stand-alone [azurerm_automation_job_schedule](automation_job_schedule.html.markdown) and an inlined `job_schdule` property in [azurerm_runbook](automation_runbook.html.markdown) to manage the job schedules. You can only make use of one of these methods to manage a job schedule. +~> **NOTE** AzureRM provides this stand-alone [azurerm_automation_job_schedule](automation_job_schedule.html.markdown) and an inlined `job_schedule` property in [azurerm_runbook](automation_runbook.html.markdown) to manage the job schedules. You can only make use of one of these methods to manage a job schedule. ## Example Usage diff --git a/website/docs/r/automation_runbook.html.markdown b/website/docs/r/automation_runbook.html.markdown index c006ddf4bcf0..9ccefed4f8ce 100644 --- a/website/docs/r/automation_runbook.html.markdown +++ b/website/docs/r/automation_runbook.html.markdown @@ -110,7 +110,7 @@ The following arguments are supported: * `job_schedule` - (Optional) One or more `job_schedule` block as defined below. -~> **NOTE** AzureRM provides a stand-alone [azurerm_automation_job_schedule](automation_job_schedule.html.markdown) and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. +~> **NOTE** AzureRM provides a stand-alone [azurerm_automation_job_schedule](automation_job_schedule.html.markdown) and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. --- diff --git a/website/docs/r/bastion_host.html.markdown b/website/docs/r/bastion_host.html.markdown index 45e59ee889aa..d4075d357bcf 100644 --- a/website/docs/r/bastion_host.html.markdown +++ b/website/docs/r/bastion_host.html.markdown @@ -106,6 +106,8 @@ The following arguments are supported: * `tags` - (Optional) A mapping of tags to assign to the resource. +* `zones` - (Optional) Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + --- A `ip_configuration` block supports the following: diff --git a/website/docs/r/cdn_frontdoor_custom_domain.html.markdown b/website/docs/r/cdn_frontdoor_custom_domain.html.markdown index da7e42acff11..c9ab856e0e55 100644 --- a/website/docs/r/cdn_frontdoor_custom_domain.html.markdown +++ b/website/docs/r/cdn_frontdoor_custom_domain.html.markdown @@ -104,6 +104,8 @@ A `tls` block supports the following: ->**NOTE:** It may take up to 15 minutes for the Front Door Service to validate the state and Domain ownership of the Custom Domain. * `minimum_tls_version` - (Optional) TLS protocol version that will be used for Https. Possible values include `TLS10` and `TLS12`. Defaults to `TLS12`. + +~> **Note** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more details. * `cdn_frontdoor_secret_id` - (Optional) Resource ID of the Front Door Secret. diff --git a/website/docs/r/cognitive_account.html.markdown b/website/docs/r/cognitive_account.html.markdown index bc08cc5dcb81..67bbcec3f894 100644 --- a/website/docs/r/cognitive_account.html.markdown +++ b/website/docs/r/cognitive_account.html.markdown @@ -154,6 +154,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `secondary_access_key` - The secondary access key which can be used to connect to the Cognitive Service Account. +-> **NOTE:** The `primary_access_key` and `secondary_access_key` properties are only available when `location_auth_enabled` is set to `true`. + --- An `identity` block exports the following: diff --git a/website/docs/r/cognitive_deployment.html.markdown b/website/docs/r/cognitive_deployment.html.markdown index f8a5891938a9..a60624b3eea3 100644 --- a/website/docs/r/cognitive_deployment.html.markdown +++ b/website/docs/r/cognitive_deployment.html.markdown @@ -72,7 +72,7 @@ A `model` block supports the following: A `sku` block supports the following: -* `name` - (Required) The name of the SKU. Possible values include `Standard`, `GlobalBatch`, `GlobalStandard` and `ProvisionedManaged`. +* `name` - (Required) The name of the SKU. Possible values include `Standard`, `DataZoneStandard`, `GlobalBatch`, `GlobalStandard` and `ProvisionedManaged`. * `tier` - (Optional) Possible values are `Free`, `Basic`, `Standard`, `Premium`, `Enterprise`. Changing this forces a new resource to be created. diff --git a/website/docs/r/communication_service.html.markdown b/website/docs/r/communication_service.html.markdown index 9d5aae8f44a8..98068b84a8f6 100644 --- a/website/docs/r/communication_service.html.markdown +++ b/website/docs/r/communication_service.html.markdown @@ -35,7 +35,7 @@ The following arguments are supported: --- -* `data_location` - (Optional) The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. +* `data_location` - (Optional) The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * `tags` - (Optional) A mapping of tags which should be assigned to the Communication Service. diff --git a/website/docs/r/consumption_budget_management_group.html.markdown b/website/docs/r/consumption_budget_management_group.html.markdown index 31dbdb2cd9c6..2a606f399f54 100644 --- a/website/docs/r/consumption_budget_management_group.html.markdown +++ b/website/docs/r/consumption_budget_management_group.html.markdown @@ -112,7 +112,7 @@ A `notification` block supports the following: * `contact_emails` - (Required) Specifies a list of email addresses to send the budget notification to when the threshold is exceeded. -* `threshold_type` - (Optional) The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. Changing this forces a new resource to be created. +* `threshold_type` - (Optional) The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. * `enabled` - (Optional) Should the notification be enabled? Defaults to `true`. diff --git a/website/docs/r/consumption_budget_resource_group.html.markdown b/website/docs/r/consumption_budget_resource_group.html.markdown index 3f9700574558..45231361aad5 100644 --- a/website/docs/r/consumption_budget_resource_group.html.markdown +++ b/website/docs/r/consumption_budget_resource_group.html.markdown @@ -120,7 +120,7 @@ A `notification` block supports the following: * `threshold` - (Required) Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. -* `threshold_type` - (Optional) The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. Changing this forces a new resource to be created. +* `threshold_type` - (Optional) The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. * `contact_emails` - (Optional) Specifies a list of email addresses to send the budget notification to when the threshold is exceeded. diff --git a/website/docs/r/consumption_budget_subscription.html.markdown b/website/docs/r/consumption_budget_subscription.html.markdown index 17c20a26f1c0..2fcc3027873b 100644 --- a/website/docs/r/consumption_budget_subscription.html.markdown +++ b/website/docs/r/consumption_budget_subscription.html.markdown @@ -124,7 +124,7 @@ A `notification` block supports the following: * `threshold` - (Required) Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. -* `threshold_type` - (Optional) The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. Changing this forces a new resource to be created. +* `threshold_type` - (Optional) The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. * `contact_emails` - (Optional) Specifies a list of email addresses to send the budget notification to when the threshold is exceeded. diff --git a/website/docs/r/container_app.html.markdown b/website/docs/r/container_app.html.markdown index 885ecfb77e42..23a7ebc2ffcc 100644 --- a/website/docs/r/container_app.html.markdown +++ b/website/docs/r/container_app.html.markdown @@ -260,7 +260,7 @@ A `liveness_probe` block supports the following: * `host` - (Optional) The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes. -* `initial_delay` - (Optional) The time in seconds to wait after the container has started before the probe is started. +* `initial_delay` - (Optional) The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `1` seconds. * `interval_seconds` - (Optional) How often, in seconds, the probe should run. Possible values are in the range `1` - `240`. Defaults to `10`. @@ -298,12 +298,14 @@ An `env` block supports the following: A `readiness_probe` block supports the following: -* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`. +* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`. * `header` - (Optional) A `header` block as detailed below. * `host` - (Optional) The probe hostname. Defaults to the pod IP address. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes. +* `initial_delay` - (Optional) The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds. + * `interval_seconds` - (Optional) How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10` * `path` - (Optional) The URI to use for http type probes. Not valid for `TCP` type probes. Defaults to `/`. @@ -328,12 +330,14 @@ A `header` block supports the following: A `startup_probe` block supports the following: -* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`. +* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`. * `header` - (Optional) A `header` block as detailed below. * `host` - (Optional) The value for the host header which should be sent with this probe. If unspecified, the IP Address of the Pod is used as the host header. Setting a value for `Host` in `headers` can be used to override this for `HTTP` and `HTTPS` type probes. +* `initial_delay` - (Optional) The number of seconds elapsed after the container has started before the probe is initiated. Possible values are between `0` and `60`. Defaults to `0` seconds. + * `interval_seconds` - (Optional) How often, in seconds, the probe should run. Possible values are between `1` and `240`. Defaults to `10` * `path` - (Optional) The URI to use with the `host` for http type probes. Not valid for `TCP` type probes. Defaults to `/`. diff --git a/website/docs/r/container_app_environment.html.markdown b/website/docs/r/container_app_environment.html.markdown index bfac1ee8168f..9a878d0cf9d9 100644 --- a/website/docs/r/container_app_environment.html.markdown +++ b/website/docs/r/container_app_environment.html.markdown @@ -64,7 +64,7 @@ The following arguments are supported: ~> **Note:** can only be set to `true` if `infrastructure_subnet_id` is specified. -* `log_analytics_workspace_id` - (Optional) The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. Changing this forces a new resource to be created. +* `log_analytics_workspace_id` - (Optional) The ID for the Log Analytics Workspace to link this Container Apps Managed Environment to. * `workload_profile` - (Optional) The profile of the workload to scope the container app execution. A `workload_profile` block as defined below. diff --git a/website/docs/r/container_registry.html.markdown b/website/docs/r/container_registry.html.markdown index caea0a554787..d847c697973c 100644 --- a/website/docs/r/container_registry.html.markdown +++ b/website/docs/r/container_registry.html.markdown @@ -63,7 +63,6 @@ resource "azurerm_container_registry" "acr" { } encryption { - enabled = true key_vault_key_id = data.azurerm_key_vault_key.example.id identity_client_id = azurerm_user_assigned_identity.example.client_id } @@ -139,7 +138,7 @@ The following arguments are supported: * `resource_group_name` - (Required) The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created. -* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. +* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. * `sku` - (Required) The SKU name of the container registry. Possible values are `Basic`, `Standard` and `Premium`. @@ -165,7 +164,7 @@ The following arguments are supported: * `trust_policy_enabled` - (Optional) Boolean value that indicated whether trust policy is enabled. Defaults to `false`. -* `zone_redundancy_enabled` - (Optional) Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`. +* `zone_redundancy_enabled` - (Optional) Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to `false`. * `export_policy_enabled` - (Optional) Boolean value that indicates whether export policy is enabled. Defaults to `true`. In order to set it to `false`, make sure the `public_network_access_enabled` is also set to `false`. @@ -187,7 +186,7 @@ The `georeplications` block supports the following: * `location` - (Required) A location where the container registry should be geo-replicated. -* `regional_endpoint_enabled` - (Optional) Whether regional endpoint is enabled for this Container Registry? +* `regional_endpoint_enabled` - (Optional) Whether regional endpoint is enabled for this Container Registry? * `zone_redundancy_enabled` - (Optional) Whether zone redundancy is enabled for this replication location? Defaults to `false`. diff --git a/website/docs/r/cosmosdb_account.html.markdown b/website/docs/r/cosmosdb_account.html.markdown index 64b2e38ac673..382f2a8765d0 100644 --- a/website/docs/r/cosmosdb_account.html.markdown +++ b/website/docs/r/cosmosdb_account.html.markdown @@ -116,6 +116,8 @@ The following arguments are supported: * `minimal_tls_version` - (Optional) Specifies the minimal TLS version for the CosmosDB account. Possible values are: `Tls`, `Tls11`, and `Tls12`. Defaults to `Tls12`. +~> **Note** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more details. + * `offer_type` - (Required) Specifies the Offer Type to use for this CosmosDB Account; currently, this can only be set to `Standard`. * `analytical_storage` - (Optional) An `analytical_storage` block as defined below. @@ -164,13 +166,19 @@ The following arguments are supported: ~> **Note:** In order to use a `Custom Key` from Key Vault for encryption you must grant Azure Cosmos DB Service access to your key vault. For instructions on how to configure your Key Vault correctly please refer to the [product documentation](https://docs.microsoft.com/azure/cosmos-db/how-to-setup-cmk#add-an-access-policy-to-your-azure-key-vault-instance) +* `managed_hsm_key_id` - (Optional) A versionless Managed HSM Key ID for CMK encryption. Changing this forces a new resource to be created. + +~> **Note:** When referencing an `azurerm_key_vault_managed_hardware_security_module_key` resource, use `id` instead of `versioned_id` + +~> **Note:** In order to use a `Custom Key` from Managed HSM for encryption you must grant Azure Cosmos DB Service access to your Managed HSM. For instructions on how to configure your Key Vault correctly please refer to the [product documentation](https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-setup-customer-managed-keys-mhsm) + * `virtual_network_rule` - (Optional) Specifies a `virtual_network_rule` block as defined below, used to define which subnets are allowed to access this CosmosDB account. * `multiple_write_locations_enabled` - (Optional) Enable multiple write locations for this Cosmos DB account. * `access_key_metadata_writes_enabled` - (Optional) Is write operations on metadata resources (databases, containers, throughput) via account keys enabled? Defaults to `true`. -* `mongo_server_version` - (Optional) The Server Version of a MongoDB account. Possible values are `4.2`, `4.0`, `3.6`, and `3.2`. +* `mongo_server_version` - (Optional) The Server Version of a MongoDB account. Possible values are `7.0`, `6.0`, `5.0`, `4.2`, `4.0`, `3.6`, and `3.2`. * `network_acl_bypass_for_azure_services` - (Optional) If Azure services can bypass ACLs. Defaults to `false`. @@ -193,9 +201,9 @@ The following arguments are supported: The `consistency_policy` block Configures the database consistency and supports the following: * `consistency_level` - (Required) The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`. - + * `max_interval_in_seconds` - (Optional) When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. The accepted range for this value is `5` - `86400` (1 day). Defaults to `5`. Required when `consistency_level` is set to `BoundedStaleness`. - + * `max_staleness_prefix` - (Optional) When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. The accepted range for this value is `10` – `2147483647`. Defaults to `100`. Required when `consistency_level` is set to `BoundedStaleness`. ~> **Note:** `max_interval_in_seconds` and `max_staleness_prefix` can only be set to values other than default when the `consistency_level` is set to `BoundedStaleness`. @@ -205,9 +213,9 @@ The `consistency_policy` block Configures the database consistency and supports The `geo_location` block Configures the geographic locations the data is replicated to and supports the following: * `location` - (Required) The name of the Azure region to host replicated data. - + * `failover_priority` - (Required) The failover priority of the region. A failover priority of `0` indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority `0`. - + * `zone_redundant` - (Optional) Should zone redundancy be enabled for this region? Defaults to `false`. --- @@ -216,7 +224,7 @@ A `capabilities` block Configures the capabilities to be enabled for this Cosmos * `name` - (Required) The capability to enable - Possible values are `AllowSelfServeUpgradeToMongo36`, `DisableRateLimitingResponses`, `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableMongo`, `EnableMongo16MBDocumentSupport`, `EnableMongoRetryableWrites`, `EnableMongoRoleBasedAccessControl`, `EnableNoSQLVectorSearch`, `EnablePartialUniqueIndex`, `EnableServerless`, `EnableTable`, `EnableTtlOnCustomPath`, `EnableUniqueCompoundNestedDocs`, `MongoDBv3.4` and `mongoEnableDocLevelTTL`. -~> **Note:** Setting `MongoDBv3.4` also requires setting `EnableMongo`. +~> **Note:** Setting `MongoDBv3.4` also requires setting `EnableMongo`. ~> **Note:** Only `AllowSelfServeUpgradeToMongo36`, `DisableRateLimitingResponses`, `EnableAggregationPipeline`, `MongoDBv3.4`, `EnableMongoRetryableWrites`, `EnableMongoRoleBasedAccessControl`, `EnableUniqueCompoundNestedDocs`, `EnableMongo16MBDocumentSupport`, `mongoEnableDocLevelTTL`, `EnableTtlOnCustomPath` and `EnablePartialUniqueIndex` can be added to an existing Cosmos DB account. @@ -245,7 +253,7 @@ A `capacity` block supports the following: A `backup` block supports the following: -* `type` - (Required) The type of the `backup`. Possible values are `Continuous` and `Periodic`. +* `type` - (Required) The type of the `backup`. Possible values are `Continuous` and `Periodic`. ~> **Note:** Migration of `Periodic` to `Continuous` is one-way, changing `Continuous` to `Periodic` forces a new resource to be created. @@ -339,7 +347,7 @@ In addition to the Arguments listed above - the following Attributes are exporte * `primary_readonly_sql_connection_string` - Primary readonly SQL connection string for the CosmosDB Account. -* `secondary_readonly_sql_connection_string` - Secondary readonly SQL connection string for the CosmosDB Account. +* `secondary_readonly_sql_connection_string` - Secondary readonly SQL connection string for the CosmosDB Account. * `primary_mongodb_connection_string` - Primary Mongodb connection string for the CosmosDB Account. diff --git a/website/docs/r/cosmosdb_sql_container.html.markdown b/website/docs/r/cosmosdb_sql_container.html.markdown index a89fc754f849..e2564dfabca8 100644 --- a/website/docs/r/cosmosdb_sql_container.html.markdown +++ b/website/docs/r/cosmosdb_sql_container.html.markdown @@ -71,7 +71,9 @@ The following arguments are supported: * `partition_key_kind` - (Optional) Define a partition key kind. Possible values are `Hash` and `MultiHash`. Defaults to `Hash`. Changing this forces a new resource to be created. -* `partition_key_version` - (Optional) Define a partition key version. Changing this forces a new resource to be created. Possible values are `1`and `2`. This should be set to `2` in order to use large partition keys. +* `partition_key_version` - (Optional) Define a partition key version. Possible values are `1`and `2`. This should be set to `2` in order to use large partition keys. + +-> **Note:** If `partition_key_version` is not specified when creating a new resource, you can update `partition_key_version` to `1`, updating to `2` forces a new resource to be created. * `unique_key` - (Optional) One or more `unique_key` blocks as defined below. Changing this forces a new resource to be created. diff --git a/website/docs/r/dashboard_grafana_managed_private_endpoint.html.markdown b/website/docs/r/dashboard_grafana_managed_private_endpoint.html.markdown new file mode 100644 index 000000000000..7b3c5d0ba990 --- /dev/null +++ b/website/docs/r/dashboard_grafana_managed_private_endpoint.html.markdown @@ -0,0 +1,95 @@ +--- +subcategory: "Dashboard" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_dashboard_grafana_managed_private_endpoint" +description: |- + Manages a Dashboard Grafana Managed Private Endpoint. +--- + +# azurerm_dashboard_grafana_managed_private_endpoint + +Manages a Dashboard Grafana Managed Private Endpoint. + +~> **NOTE:** This resource will _not_ approve the managed private endpoint connection on the linked resource. This will need to be done manually via Azure CLI, PowerShell, or AzAPI resources. See [here](https://github.com/hashicorp/terraform-provider-azurerm/issues/23950#issuecomment-2035109970) for an example that uses AzAPI. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "Canada Central" +} + +resource "azurerm_monitor_workspace" "example" { + name = "example-mamw" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + public_network_access_enabled = false +} + +resource "azurerm_dashboard_grafana" "example" { + name = "example-dg" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + grafana_major_version = 10 + public_network_access_enabled = false + + azure_monitor_workspace_integrations { + resource_id = azurerm_monitor_workspace.example.id + } +} + +resource "azurerm_dashboard_grafana_managed_private_endpoint" "example" { + grafana_id = azurerm_dashboard_grafana.example.id + name = "example-mpe" + location = azurerm_dashboard_grafana.example.location + private_link_resource_id = azurerm_monitor_workspace.example.id + group_ids = ["prometheusMetrics"] + private_link_resource_region = azurerm_dashboard_grafana.example.location +} +``` + +## Arguments Reference + +The following arguments are supported: + +- `grafana_id` - (Required) The id of the associated managed Grafana. Changing this forces a new Dashboard Grafana Managed Private Endpoint to be created. + +- `location` - (Required) The Azure Region where the Dashboard Grafana Managed Private Endpoint should exist. Changing this forces a new Dashboard Grafana Managed Private Endpoint to be created. + +- `name` - (Required) The name which should be used for this Dashboard Grafana Managed Private Endpoint. Must be between 2 and 20 alphanumeric characters or dashes, must begin with letter and end with a letter or number. Changing this forces a new Dashboard Grafana Managed Private Endpoint to be created. + +- `private_link_resource_id` - (Required) The ID of the resource to which this Dashboard Grafana Managed Private Endpoint will connect. Changing this forces a new Dashboard Grafana Managed Private Endpoint to be created. + +--- + +- `group_ids` - (Optional) Specifies a list of private link group IDs. The value of this will depend on the private link resource to which you are connecting. Changing this forces a new Dashboard Grafana Managed Private Endpoint to be created. + +- `private_link_resource_region` - (Optional) The region in which to create the private link. Changing this forces a new Dashboard Grafana Managed Private Endpoint to be created. + +- `request_message` - (Optional) A message to provide in the request which will be seen by approvers. + +- `tags` - (Optional) A mapping of tags which should be assigned to the Dashboard Grafana Managed Private Endpoint. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +- `id` - The ID of the Dashboard Grafana Managed Private Endpoint. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +- `create` - (Defaults to 30 minutes) Used when creating the Dashboard Grafana Managed Private Endpoint. +- `read` - (Defaults to 5 minutes) Used when retrieving the Dashboard Grafana Managed Private Endpoint. +- `update` - (Defaults to 30 minutes) Used when updating the Dashboard Grafana Managed Private Endpoint. +- `delete` - (Defaults to 5 minutes) Used when deleting the Dashboard Grafana Managed Private Endpoint. + +## Import + +Dashboard Grafana Managed Private Endpoint Examples can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_dashboard_grafana_managed_private_endpoint.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Dashboard/grafana/workspace1/managedPrivateEndpoints/endpoint1 +``` diff --git a/website/docs/r/data_factory_linked_service_azure_sql_database.html.markdown b/website/docs/r/data_factory_linked_service_azure_sql_database.html.markdown index 50191cc54d48..10bf80eccfb2 100644 --- a/website/docs/r/data_factory_linked_service_azure_sql_database.html.markdown +++ b/website/docs/r/data_factory_linked_service_azure_sql_database.html.markdown @@ -65,6 +65,8 @@ The following arguments are supported: * `key_vault_password` - (Optional) A `key_vault_password` block as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. +* `credential_name` - (Optional) The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity. + --- A `key_vault_connection_string` block supports the following: diff --git a/website/docs/r/data_protection_backup_instance_mysql_flexible_server.html.markdown b/website/docs/r/data_protection_backup_instance_mysql_flexible_server.html.markdown new file mode 100644 index 000000000000..9aa0cf8d055f --- /dev/null +++ b/website/docs/r/data_protection_backup_instance_mysql_flexible_server.html.markdown @@ -0,0 +1,116 @@ +--- +subcategory: "DataProtection" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_data_protection_backup_instance_mysql_flexible_server" +description: |- + Manages a Backup Instance to back up MySQL Flexible Server. +--- + +# azurerm_data_protection_backup_instance_mysql_flexible_server + +Manages a Backup Instance to back up MySQL Flexible Server. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_mysql_flexible_server" "example" { + name = "example-mysqlfs" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + administrator_login = "adminTerraform" + administrator_password = "QAZwsx123" + version = "8.0.21" + sku_name = "B_Standard_B1s" + zone = "1" +} + +resource "azurerm_data_protection_backup_vault" "example" { + name = "example-backupvault" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + datastore_type = "VaultStore" + redundancy = "LocallyRedundant" + soft_delete = "Off" + + identity { + type = "SystemAssigned" + } +} + +resource "azurerm_role_assignment" "example" { + scope = azurerm_resource_group.example.id + role_definition_name = "Reader" + principal_id = azurerm_data_protection_backup_vault.example.identity.0.principal_id +} + +resource "azurerm_role_assignment" "example2" { + scope = azurerm_mysql_flexible_server.example.id + role_definition_name = "MySQL Backup And Export Operator" + principal_id = azurerm_data_protection_backup_vault.example.identity.0.principal_id +} + +resource "azurerm_data_protection_backup_policy_mysql_flexible_server" "example" { + name = "example-dp" + vault_id = azurerm_data_protection_backup_vault.example.id + backup_repeating_time_intervals = ["R/2021-05-23T02:30:00+00:00/P1W"] + + default_retention_rule { + life_cycle { + duration = "P4M" + data_store_type = "VaultStore" + } + } + + depends_on = [azurerm_role_assignment.example, azurerm_role_assignment.example2] +} + +resource "azurerm_data_protection_backup_instance_mysql_flexible_server" "example" { + name = "example-dbi" + location = azurerm_resource_group.example.location + vault_id = azurerm_data_protection_backup_vault.example.id + server_id = azurerm_mysql_flexible_server.example.id + backup_policy_id = azurerm_data_protection_backup_policy_mysql_flexible_server.example.id +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) Specifies the name of the Backup Instance for the MySQL Flexible Server. Changing this forces a new resource to be created. + +* `location` - (Required) The location of the source database. Changing this forces a new resource to be created. + +* `backup_policy_id` - (Required) The ID of the Backup Policy. + +* `server_id` - (Required) The ID of the source server. Changing this forces a new resource to be created. + +* `vault_id` - (Required) The ID of the Backup Vault within which the MySQL Flexible Server Backup Instance should exist. Changing this forces a new resource to be created. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the Backup Instance MySQL Flexible Server. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 60 minutes) Used when creating the Backup Instance MySQL Flexible Server. +* `read` - (Defaults to 5 minutes) Used when retrieving the Backup Instance MySQL Flexible Server. +* `update` - (Defaults to 60 minutes) Used when updating the Backup Instance MySQL Flexible Server. +* `delete` - (Defaults to 60 minutes) Used when deleting the Backup Instance MySQL Flexible Server. + +## Import + +Backup Instance MySQL Flexible Servers can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_data_protection_backup_instance_mysql_flexible_server.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupInstances/backupInstance1 +``` diff --git a/website/docs/r/dev_center_project_pool.html.markdown b/website/docs/r/dev_center_project_pool.html.markdown new file mode 100644 index 000000000000..5058a3032bbf --- /dev/null +++ b/website/docs/r/dev_center_project_pool.html.markdown @@ -0,0 +1,126 @@ +--- +subcategory: "Dev Center" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_dev_center_project_pool" +description: |- + Manages a Dev Center Project Pool. +--- + +# azurerm_dev_center_project_pool + +Manages a Dev Center Project Pool. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_dev_center" "example" { + name = "example-dc" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + + identity { + type = "SystemAssigned" + } +} + +resource "azurerm_virtual_network" "example" { + name = "example-vnet" + address_space = ["10.0.0.0/16"] + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name +} + +resource "azurerm_subnet" "example" { + name = "internal" + resource_group_name = azurerm_resource_group.example.name + virtual_network_name = azurerm_virtual_network.example.name + address_prefixes = ["10.0.2.0/24"] +} + +resource "azurerm_dev_center_network_connection" "example" { + name = "example-dcnc" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + subnet_id = azurerm_subnet.example.id + domain_join_type = "AzureADJoin" +} + +resource "azurerm_dev_center_attached_network" "example" { + name = "example-dcet" + dev_center_id = azurerm_dev_center.example.id + network_connection_id = azurerm_dev_center_network_connection.example.id +} + +resource "azurerm_dev_center_project" "example" { + name = "example-dcp" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + dev_center_id = azurerm_dev_center.example.id +} + +resource "azurerm_dev_center_dev_box_definition" "example" { + name = "example-dcet" + location = azurerm_resource_group.example.location + dev_center_id = azurerm_dev_center.example.id + image_reference_id = "${azurerm_dev_center.example.id}/galleries/default/images/microsoftvisualstudio_visualstudioplustools_vs-2022-ent-general-win10-m365-gen2" + sku_name = "general_i_8c32gb256ssd_v2" +} + +resource "azurerm_dev_center_project_pool" "example" { + name = "example-dcpl" + location = azurerm_resource_group.example.location + dev_center_project_id = azurerm_dev_center_project.example.id + dev_box_definition_name = azurerm_dev_center_dev_box_definition.example.name + local_administrator_enabled = true + dev_center_attached_network_name = azurerm_dev_center_attached_network.example.name + stop_on_disconnect_grace_period_minutes = 60 +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) Specifies the name of this Dev Center Project Pool. Changing this forces a new resource to be created. + +* `location` - (Required) The Azure Region where the Dev Center Project Pool should exist. Changing this forces a new resource to be created. + +* `dev_center_project_id` - (Required) The ID of the associated Dev Center Project. Changing this forces a new resource to be created. + +* `dev_box_definition_name` - (Required) The name of the Dev Center Dev Box Definition. + +* `local_administrator_enabled` - (Required) Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box. + +* `dev_center_attached_network_name` - (Required) The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool. + +* `stop_on_disconnect_grace_period_minutes` - (Optional) The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected. Possible values are between `60` and `480`. + +* `tags` - (Optional) A mapping of tags which should be assigned to the Dev Center Project Pool. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the Dev Center Project Pool. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/docs/configuration/resources.html#timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating this Dev Center Project Pool. +* `delete` - (Defaults to 30 minutes) Used when deleting this Dev Center Project Pool. +* `read` - (Defaults to 5 minutes) Used when retrieving this Dev Center Project Pool. +* `update` - (Defaults to 30 minutes) Used when updating this Dev Center Project Pool. + +## Import + +An existing Dev Center Project Pool can be imported into Terraform using the `resource id`, e.g. + +```shell +terraform import azurerm_dev_center_project_pool.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DevCenter/projects/project1/pools/pool1 +``` diff --git a/website/docs/r/dynatrace_monitors.html.markdown b/website/docs/r/dynatrace_monitors.html.markdown new file mode 100644 index 000000000000..2718e910137b --- /dev/null +++ b/website/docs/r/dynatrace_monitors.html.markdown @@ -0,0 +1,125 @@ +--- +subcategory: "Dynatrace" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_dynatrace_monitor" +description: |- + Manages Dynatrace monitors. +--- + +# azurerm_dynatrace_monitors + +Manages Dynatrace monitors. + +## Example Usage + +```hcl + +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_dynatrace_monitor" "example" { + name = "exmpledynatracemonitor" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.test.location + monitoring_enabled = true + marketplace_subscription_status = "Active" + + identity { + type = "SystemAssigned" + } + + user { + first_name = "Alice" + last_name = "Bobab" + email = "alice@microsoft.com" + phone_number = "123456" + country = "westus" + } + + plan { + usage_type = "COMMITTED" + billing_cycle = "MONTHLY" + plan = "azureportalintegration_privatepreview@TIDhjdtn7tfnxcy" + effective_date = "2019-08-30T15:14:33Z" + } +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) Name of the Dynatrace monitor. Changing this forces a new resource to be created. + +* `resource_group_name` - (Required) The name of the Resource Group where the Dynatrace monitor should exist. Changing this forces a new resource to be created. + +* `location` - (Required) The Azure Region where the Dynatrace monitor should exist. Changing this forces a new resource to be created. + +* `identity` - (Required) The kind of managed identity assigned to this resource. A `identity` block as defined below. + +* `marketplace_subscription` - (Required) Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. Possible values are `Active` and `Suspended`. + +* `plan` - (Required) Billing plan information. A `plan` block as defined below. Changing this forces a new resource to be created. + +* `user` - (Required) User's information. A `user` block as defined below. Chainging this forces a new resource to be created. + +* `monitoring_enabled` - (Optional) Flag specifying if the resource monitoring is enabled or disabled. Default is `true`. + +* `tags` - (Optional) A mapping of tags to assign to the resource. + +--- + +A `identity` block supports the following: + +* `type` - (Required) The type of identity used for the resource. Only possible value is `SystemAssigned`. + +--- + +A `plan` block supports the following: + +* `billing_cycle` - (Optional) Different billing cycles. Possible values are `MONTHLY` and `WEEKLY`. + +* `effective_date` - (Required) Date when plan was applied. + +* `plan` - (Required) Plan id as published by Dynatrace. + +* `usage_type` - (Optional) Different usage type. Possible values are `PAYG` and `COMMITTED`. + +--- + +A `user` block supports the following: + +* `country` - (Required) Country of the user. + +* `email` - (Required) Email of the user used by Dynatrace for contacting them if needed. + +* `first_name` - (Required) First name of the user. + +* `last_name` - (Required) Last name of the user. + +* `phone_number` - (Required) phone number of the user by Dynatrace for contacting them if needed. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the Dynatrace monitor. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 1 hour) Used when creating the Dynatrace monitor. +* `read` - (Defaults to 5 minutes) Used when retrieving the Dynatrace monitor. +* `update` - (Defaults to 1 hour) Used when updating the Dynatrace monitor. +* `delete` - (Defaults to 1 hour) Used when deleting the Dynatrace monitor. + +## Import + +Dynatrace monitor can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_dynatrace_monitor.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Dynatrace.Observability/monitors/monitor1 +``` diff --git a/website/docs/r/email_communication_service.html.markdown b/website/docs/r/email_communication_service.html.markdown index b6c12c687fae..0f8f78b0b7ad 100644 --- a/website/docs/r/email_communication_service.html.markdown +++ b/website/docs/r/email_communication_service.html.markdown @@ -35,7 +35,7 @@ The following arguments are supported: --- -* `data_location` - (Required) The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. +* `data_location` - (Required) The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * `tags` - (Optional) A mapping of tags which should be assigned to the Email Communication Service. diff --git a/website/docs/r/eventgrid_namespace.html.markdown b/website/docs/r/eventgrid_namespace.html.markdown new file mode 100644 index 000000000000..6bcb506cb6f2 --- /dev/null +++ b/website/docs/r/eventgrid_namespace.html.markdown @@ -0,0 +1,131 @@ +--- +subcategory: "Messaging" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_eventgrid_namespace" +description: |- + Manages an EventGrid Namespace + +--- + +# azurerm_eventgrid_namespace + +Manages an EventGrid Namespace + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_eventgrid_namespace" "example" { + name = "my-eventgrid-namespace" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + + tags = { + environment = "Production" + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) Specifies the name of the Event Grid Namespace resource. Changing this forces a new resource to be created. + +* `resource_group_name` - (Required) The name of the resource group in which the Event Grid Namespace should exist. Changing this forces a new resource to be created. + +* `location` - (Required) Specifies the supported Azure location where the resource should exist. Changing this forces a new resource to be created. + +* `capacity` - (Optional) Specifies the Capacity / Throughput Units for an Eventgrid Namespace. Valid values can be between `1` and `40`. + +* `identity` - (Optional) An `identity` block as defined below. + +* `inbound_ip_rule` - (Optional) One or more `inbound_ip_rule` blocks as defined below. + +* `public_network_access` - (Optional) Whether or not public network access is allowed for this server. Defaults to `Enabled`. + +* `sku` - (Optional) Defines which tier to use. The only possible value is `Standard`. Defaults to `Standard`. + +* `topic_spaces_configuration` - (Optional) A `topic_spaces_configuration` block as defined below. + +* `tags` - (Optional) A mapping of tags to assign to the resource. + +--- + +A `identity` block supports the following: + +* `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this Event Grid Namespace. Possible values are `SystemAssigned`, `UserAssigned`. + +* `identity_ids` - (Optional) Specifies a list of User Assigned Managed Identity IDs to be assigned to this Event Grid Namespace. + +~> **NOTE:** This is required when `type` is set to `UserAssigned` + +--- + +An `inbound_ip_rule` block supports the following: + +* `ip_mask` - (Required) The IP mask (CIDR) to match on. + +* `action` - (Optional) The action to take when the rule is matched. Possible values are `Allow`. Defaults to `Allow`. + +--- + +A `topic_spaces_configuration` block supports the following: + +* `alternative_authentication_name_source` - (Optional) Specifies a list of alternative sources for the client authentication name from the client certificate. Possible values are `ClientCertificateDns`, `ClientCertificateEmail`, `ClientCertificateIp`, `ClientCertificateSubject` and `ClientCertificateUri`. + +* `maximum_client_sessions_per_authentication_name` - (Optional) Specifies the maximum number of client sessions per authentication name. Valid values can be between `1` and `100`. + +* `maximum_session_expiry_in_hours` - (Optional) Specifies the maximum session expiry interval allowed for all MQTT clients connecting to the Event Grid namespace. Valid values can be between `1` and `8`. + +* `route_topic_id` - (Optional) Specifies the Event Grid topic resource ID to route messages to. + +* `dynamic_routing_enrichment` - One or more `dynamic_routing_enrichment` blocks as defined below. + +* `static_routing_enrichment` - One or more `static_routing_enrichment` blocks as defined below. + +--- + +A `dynamic_routing_enrichment` block supports the following: + +* `key` - (Required) The enrichment key. + +* `value` - (Required) The enrichment value. + +--- + +A `static_routing_enrichment` block supports the following: + +* `key` - (Required) The enrichment key. + +* `value` - (Required) The enrichment value. + + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The EventGrid Namespace ID. + +--- + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the EventGrid Namespace. +* `update` - (Defaults to 30 minutes) Used when updating the EventGrid Namespace. +* `read` - (Defaults to 5 minutes) Used when retrieving the EventGrid Namespace. +* `delete` - (Defaults to 30 minutes) Used when deleting the EventGrid Namespace. + +## Import + +EventGrid Namespace's can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_eventgrid_namespace.namespace1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/namespaces/namespace1 +``` diff --git a/website/docs/r/eventhub.html.markdown b/website/docs/r/eventhub.html.markdown index 58571f2496ff..abd287e03421 100644 --- a/website/docs/r/eventhub.html.markdown +++ b/website/docs/r/eventhub.html.markdown @@ -31,11 +31,10 @@ resource "azurerm_eventhub_namespace" "example" { } resource "azurerm_eventhub" "example" { - name = "acceptanceTestEventHub" - namespace_name = azurerm_eventhub_namespace.example.name - resource_group_name = azurerm_resource_group.example.name - partition_count = 2 - message_retention = 1 + name = "acceptanceTestEventHub" + namespace_id = azurerm_eventhub_namespace.example.id + partition_count = 2 + message_retention = 1 } ``` @@ -45,9 +44,7 @@ The following arguments are supported: * `name` - (Required) Specifies the name of the EventHub resource. Changing this forces a new resource to be created. -* `namespace_name` - (Required) Specifies the name of the EventHub Namespace. Changing this forces a new resource to be created. - -* `resource_group_name` - (Required) The name of the resource group in which the EventHub's parent Namespace exists. Changing this forces a new resource to be created. +* `namespace_id` - (Optional) Specifies the ID of the EventHub Namespace. Changing this forces a new resource to be created. * `partition_count` - (Required) Specifies the current number of shards on the Event Hub. diff --git a/website/docs/r/eventhub_namespace.html.markdown b/website/docs/r/eventhub_namespace.html.markdown index 79e90b13946f..cb068fe68578 100644 --- a/website/docs/r/eventhub_namespace.html.markdown +++ b/website/docs/r/eventhub_namespace.html.markdown @@ -63,6 +63,8 @@ The following arguments are supported: * `minimum_tls_version` - (Optional) The minimum supported TLS version for this EventHub Namespace. Valid values are: `1.0`, `1.1` and `1.2`. Defaults to `1.2`. +~> **Note** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more. + --- A `identity` block supports the following: diff --git a/website/docs/r/fluid_relay_servers.html.markdown b/website/docs/r/fluid_relay_servers.html.markdown index 1ddaf30e179e..ccd46910e318 100644 --- a/website/docs/r/fluid_relay_servers.html.markdown +++ b/website/docs/r/fluid_relay_servers.html.markdown @@ -43,7 +43,7 @@ The following arguments are supported: * `storage_sku` - (Optional) Sku of the storage associated with the resource, Possible values are `standard` and `basic`. Changing this forces a new Fluid Relay Server to be created. -* `encryption` - (Optional) An `encryption` block as defined below. Changing this forces a new resource to be created. +* `customer_managed_key` - (Optional) A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. * `tags` - (Optional) A mapping of tags which should be assigned to the Fluid Relay Server. @@ -57,7 +57,7 @@ An `identity` block supports the following: --- -An `encryption` block supports the following: +An `customer_managed_key` block supports the following: * `key_vault_key_id` - (Required) The Key Vault Key Id that will be used to encrypt the Fluid Relay Server. diff --git a/website/docs/r/key_vault_key.html.markdown b/website/docs/r/key_vault_key.html.markdown index a395c9951626..6465b13c0290 100644 --- a/website/docs/r/key_vault_key.html.markdown +++ b/website/docs/r/key_vault_key.html.markdown @@ -111,7 +111,9 @@ The following arguments are supported: ~> **Note:** Once `expiration_date` is set, it's not possible to unset the key even if it is deleted & recreated as underlying Azure API uses the restore of the purged key. -* `expiration_date` - (Optional) Expiration UTC datetime (Y-m-d'T'H:M:S'Z'). When this parameter gets changed on reruns, if newer date is ahead of current date, an update is performed. If the newer date is before the current date, resource will be force created. +* `expiration_date` - (Optional) Expiration UTC datetime (Y-m-d'T'H:M:S'Z'). + +~> **Note:** Removing this field from the config forces a new resource to be created. * `tags` - (Optional) A mapping of tags to assign to the resource. diff --git a/website/docs/r/kubernetes_cluster.html.markdown b/website/docs/r/kubernetes_cluster.html.markdown index b07c98d470cc..dd3898b6c5a6 100644 --- a/website/docs/r/kubernetes_cluster.html.markdown +++ b/website/docs/r/kubernetes_cluster.html.markdown @@ -69,7 +69,7 @@ The following arguments are supported: * `resource_group_name` - (Required) Specifies the Resource Group where the Managed Kubernetes Cluster should exist. Changing this forces a new resource to be created. -* `default_node_pool` - (Required) A `default_node_pool` block as defined below. +* `default_node_pool` - (Required) Specifies configuration for "System" mode node pool. A `default_node_pool` block as defined below. * `dns_prefix` - (Optional) DNS prefix specified when creating the managed cluster. Possible values must begin and end with a letter or number, contain only letters, numbers, and hyphens and be between 1 and 54 characters in length. Changing this forces a new resource to be created. @@ -286,8 +286,14 @@ An `auto_scaler_profile` block supports the following: * `balance_similar_node_groups` - (Optional) Detect similar node groups and balance the number of nodes between them. Defaults to `false`. +* `daemonset_eviction_for_empty_nodes_enabled` - (Optional) Whether DaemonSet pods will be gracefully terminated from empty nodes. Defaults to `false`. + +* `daemonset_eviction_for_occupied_nodes_enabled` - (Optional) Whether DaemonSet pods will be gracefully terminated from non-empty nodes. Defaults to `true`. + * `expander` - (Optional) Expander to use. Possible values are `least-waste`, `priority`, `most-pods` and `random`. Defaults to `random`. +* `ignore_daemonsets_utilization_enabled` - (Optional) Whether DaemonSet pods will be ignored when calculating resource utilization for scale down. Defaults to `false`. + * `max_graceful_termination_sec` - (Optional) Maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node. Defaults to `600`. * `max_node_provisioning_time` - (Optional) Maximum time the autoscaler waits for a node to be provisioned. Defaults to `15m`. @@ -691,6 +697,8 @@ A `load_balancer_profile` block supports the following: ~> **Note:** The fields `managed_outbound_ip_count`, `outbound_ip_address_ids` and `outbound_ip_prefix_ids` are mutually exclusive. Note that when specifying `outbound_ip_address_ids` ([azurerm_public_ip](/docs/providers/azurerm/r/public_ip.html)) the SKU must be `standard`. +* `backend_pool_type` - (Optional) The type of the managed inbound Load Balancer Backend Pool. Possible values are `NodeIP` and `NodeIPConfiguration`. Defaults to `NodeIPConfiguration`. See [the documentation](https://learn.microsoft.com/en-us/azure/aks/load-balancer-standard#change-the-inbound-pool-type) for more information. + * `idle_timeout_in_minutes` - (Optional) Desired outbound flow idle timeout in minutes for the cluster load balancer. Must be between `4` and `100` inclusive. Defaults to `30`. * `managed_outbound_ip_count` - (Optional) Count of desired managed outbound IPs for the cluster load balancer. Must be between `1` and `100` inclusive. diff --git a/website/docs/r/lb_nat_rule.html.markdown b/website/docs/r/lb_nat_rule.html.markdown index 951252e206b4..b4cdac013431 100644 --- a/website/docs/r/lb_nat_rule.html.markdown +++ b/website/docs/r/lb_nat_rule.html.markdown @@ -41,9 +41,8 @@ resource "azurerm_lb" "example" { } resource "azurerm_lb_backend_address_pool" "example" { - resource_group_name = azurerm_resource_group.example.name - loadbalancer_id = azurerm_lb.example.id - name = "be" + loadbalancer_id = azurerm_lb.example.id + name = "be" } resource "azurerm_lb_nat_rule" "example" { diff --git a/website/docs/r/linux_function_app.html.markdown b/website/docs/r/linux_function_app.html.markdown index b494ea9b8656..a12b93447c82 100644 --- a/website/docs/r/linux_function_app.html.markdown +++ b/website/docs/r/linux_function_app.html.markdown @@ -35,7 +35,7 @@ resource "azurerm_service_plan" "example" { resource_group_name = azurerm_resource_group.example.name location = azurerm_resource_group.example.location os_type = "Linux" - sku_name = "Y1" + sku_name = "B1" } resource "azurerm_linux_function_app" "example" { @@ -172,7 +172,7 @@ A `application_stack` block supports the following: * `docker` - (Optional) One or more `docker` blocks as defined below. -* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. +* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * `use_dotnet_isolated_runtime` - (Optional) Should the DotNet process use an isolated runtime. Defaults to `false`. @@ -696,7 +696,7 @@ A `site_config` block supports the following: * `managed_pipeline_mode` - (Optional) Managed pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`. -* `minimum_tls_version` - (Optional) The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`. +* `minimum_tls_version` - (Optional) The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, `1.2` and `1.3`. Defaults to `1.2`. * `pre_warmed_instance_count` - (Optional) The number of pre-warmed instances for this function app. Only affects apps on an Elastic Premium plan. diff --git a/website/docs/r/linux_function_app_slot.html.markdown b/website/docs/r/linux_function_app_slot.html.markdown index af5faeebae08..40f6391f167c 100644 --- a/website/docs/r/linux_function_app_slot.html.markdown +++ b/website/docs/r/linux_function_app_slot.html.markdown @@ -637,7 +637,7 @@ An `application_stack` block supports the following: * `docker` - (Optional) a `docker` block as detailed below. -* `dotnet_version` - (Optional) The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. +* `dotnet_version` - (Optional) The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * `use_dotnet_isolated_runtime` - (Optional) Should the DotNet process use an isolated runtime. Defaults to `false`. diff --git a/website/docs/r/linux_web_app.html.markdown b/website/docs/r/linux_web_app.html.markdown index a4a3b4cf6cf4..2582cc54e0eb 100644 --- a/website/docs/r/linux_web_app.html.markdown +++ b/website/docs/r/linux_web_app.html.markdown @@ -156,7 +156,7 @@ An `application_stack` block supports the following: ~> **NOTE:** `docker_registry_url`, `docker_registry_username`, and `docker_registry_password` replace the use of the `app_settings` values of `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD` respectively, these values will be managed by the provider and should not be specified in the `app_settings` map. -* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. +* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * `go_version` - (Optional) The version of Go to use. Possible values include `1.18`, and `1.19`. @@ -722,7 +722,7 @@ A `site_config` block supports the following: * `managed_pipeline_mode` - (Optional) Managed pipeline mode. Possible values include `Integrated`, and `Classic`. Defaults to `Integrated`. -* `minimum_tls_version` - (Optional) The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`. +* `minimum_tls_version` - (Optional) The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, `1.2` and `1.3`. Defaults to `1.2`. * `remote_debugging_enabled` - (Optional) Should Remote Debugging be enabled? Defaults to `false`. diff --git a/website/docs/r/linux_web_app_slot.html.markdown b/website/docs/r/linux_web_app_slot.html.markdown index b1b38a7020ab..02fac2d4b3d0 100644 --- a/website/docs/r/linux_web_app_slot.html.markdown +++ b/website/docs/r/linux_web_app_slot.html.markdown @@ -160,7 +160,7 @@ An `application_stack` block supports the following: ~> **NOTE:** `docker_registry_url`, `docker_registry_username`, and `docker_registry_password` replace the use of the `app_settings` values of `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD` respectively, these values will be managed by the provider and should not be specified in the `app_settings` map. -* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. +* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * `go_version` - (Optional) The version of Go to use. Possible values include `1.18`, and `1.19`. diff --git a/website/docs/r/load_test.html.markdown b/website/docs/r/load_test.html.markdown index 588095f8dd90..df59449c6c51 100644 --- a/website/docs/r/load_test.html.markdown +++ b/website/docs/r/load_test.html.markdown @@ -41,7 +41,7 @@ The following arguments are supported: * `resource_group_name` - (Required) Specifies the name of the Resource Group within which this Load Test should exist. Changing this forces a new Load Test to be created. -* `description` - (Optional) Description of the resource. Changing this forces a new Load Test to be created. +* `description` - (Optional) Description of the resource. * `identity` - (Optional) An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Load Test. diff --git a/website/docs/r/logic_app_standard.html.markdown b/website/docs/r/logic_app_standard.html.markdown index f3343f2d5bd1..e255b162bb4d 100644 --- a/website/docs/r/logic_app_standard.html.markdown +++ b/website/docs/r/logic_app_standard.html.markdown @@ -117,7 +117,11 @@ The following arguments are supported: * `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. -* `app_service_plan_id` - (Required) The ID of the App Service Plan within which to create this Logic App +* `app_service_plan_id` - (Required) The ID of the App Service Plan within which to create this Logic App. + +* `storage_account_name` - (Required) The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created. + +* `storage_account_access_key` - (Required) The access key which will be used to access the backend storage account for the Logic App. * `app_settings` - (Optional) A map of key-value pairs for [App Settings](https://docs.microsoft.com/azure/azure-functions/functions-app-settings) and custom values. @@ -127,7 +131,7 @@ The following arguments are supported: * `bundle_version` - (Optional) If `use_extension_bundle` then controls the allowed range for bundle versions. Defaults to `[1.*, 2.0.0)`. -* `connection_string` - (Optional) An `connection_string` block as defined below. +* `connection_string` - (Optional) A `connection_string` block as defined below. * `client_affinity_enabled` - (Optional) Should the Logic App send session affinity cookies, which route client requests in the same session to the same instance? @@ -139,11 +143,11 @@ The following arguments are supported: * `identity` - (Optional) An `identity` block as defined below. -* `site_config` - (Optional) A `site_config` object as defined below. +* `public_network_access` - (Optional) Whether Public Network Access should be enabled or not. Possible values are `Enabled` and `Disabled`. Defaults to `Enabled`. -* `storage_account_name` - (Required) The backend storage account name which will be used by this Logic App (e.g. for Stateful workflows data). Changing this forces a new resource to be created. +~> **Note:** Setting this property will also set it in the Site Config. -* `storage_account_access_key` - (Required) The access key which will be used to access the backend storage account for the Logic App +* `site_config` - (Optional) A `site_config` object as defined below. * `storage_account_share_name` - (Optional) The name of the share used by the logic app, if you want to use a custom name. This corresponds to the WEBSITE_CONTENTSHARE appsetting, which this resource will create for you. If you don't specify a name, then this resource will generate a dynamic name. This setting is useful if you want to provision a storage account and create a share using azurerm_storage_share @@ -155,7 +159,7 @@ The following arguments are supported: ~> **Note:** Logic App version `3.x` will be out of support from December 3 2022. For more details refer [Logic Apps Standard Support for Functions Runtime V4](https://azure.microsoft.com/en-us/updates/logic-apps-standard-support-for-functions-runtime-v4/) -* `virtual_network_subnet_id` - (Optional) The subnet id which will be used by this resource for [regional virtual network integration](https://docs.microsoft.com/en-us/azure/app-service/overview-vnet-integration#regional-virtual-network-integration). +* `virtual_network_subnet_id` - (Optional) The subnet ID which will be used by this resource for [regional virtual network integration](https://docs.microsoft.com/en-us/azure/app-service/overview-vnet-integration#regional-virtual-network-integration). ~> **NOTE on regional virtual network integration:** The AzureRM Terraform provider provides regional virtual network integration via the standalone resource [app_service_virtual_network_swift_connection](app_service_virtual_network_swift_connection.html) and in-line within this resource using the `virtual_network_subnet_id` property. You cannot use both methods simutaneously. @@ -181,17 +185,19 @@ The `site_config` block supports the following: * `app_scale_limit` - (Optional) The number of workers this Logic App can scale out to. Only applicable to apps on the Consumption and Premium plan. +* `auto_swap_slot_name` - (Optional) The Auto-swap slot name. + * `cors` - (Optional) A `cors` block as defined below. * `dotnet_framework_version` - (Optional) The version of the .NET framework's CLR used in this Logic App Possible values are `v4.0` (including .NET Core 2.1 and 3.1), `v5.0`, `v6.0` and `v8.0`. [For more information on which .NET Framework version to use based on the runtime version you're targeting - please see this table](https://docs.microsoft.com/azure/azure-functions/functions-dotnet-class-library#supported-versions). Defaults to `v4.0`. * `elastic_instance_minimum` - (Optional) The number of minimum instances for this Logic App Only affects apps on the Premium plan. -* `ftps_state` - (Optional) State of FTP / FTPS service for this Logic App Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `AllAllowed`. +* `ftps_state` - (Optional) State of FTP / FTPS service for this Logic App. Possible values include: `AllAllowed`, `FtpsOnly` and `Disabled`. Defaults to `AllAllowed`. * `health_check_path` - (Optional) Path which will be checked for this Logic App health. -* `http2_enabled` - (Optional) Specifies whether or not the HTTP2 protocol should be enabled. Defaults to `false`. +* `http2_enabled` - (Optional) Specifies whether the HTTP2 protocol should be enabled. Defaults to `false`. * `ip_restriction` - (Optional) A list of `ip_restriction` objects representing IP restrictions as defined below. @@ -207,14 +213,12 @@ The `site_config` block supports the following: * `scm_type` - (Optional) The type of Source Control used by the Logic App in use by the Windows Function App. Defaults to `None`. Possible values are: `BitbucketGit`, `BitbucketHg`, `CodePlexGit`, `CodePlexHg`, `Dropbox`, `ExternalGit`, `ExternalHg`, `GitHub`, `LocalGit`, `None`, `OneDrive`, `Tfs`, `VSO`, and `VSTSRM` -* `linux_fx_version` - (Optional) Linux App Framework and version for the AppService, e.g. `DOCKER|(golang:latest)`. Setting this value will also set the `kind` of application deployed to `functionapp,linux,container,workflowapp` +* `linux_fx_version` - (Optional) Linux App Framework and version for the App Service, e.g. `DOCKER|(golang:latest)`. Setting this value will also set the `kind` of application deployed to `functionapp,linux,container,workflowapp` -* `min_tls_version` - (Optional) The minimum supported TLS version for the Logic App Possible values are `1.0`, `1.1`, and `1.2`. Defaults to `1.2` for new Logic Apps. +* `min_tls_version` - (Optional) The minimum supported TLS version for the Logic App. Possible values are `1.0`, `1.1`, and `1.2`. Defaults to `1.2` for new Logic Apps. * `pre_warmed_instance_count` - (Optional) The number of pre-warmed instances for this Logic App Only affects apps on the Premium plan. -* `public_network_access_enabled` - (Optional) Is public network access enabled? Defaults to `true`. - * `runtime_scale_monitoring_enabled` - (Optional) Should Runtime Scale Monitoring be enabled?. Only applicable to apps on the Premium plan. Defaults to `false`. * `use_32_bit_worker_process` - (Optional) Should the Logic App run in 32 bit mode, rather than 64 bit mode? Defaults to `true`. @@ -238,6 +242,7 @@ A `cors` block supports the following: An `identity` block supports the following: * `type` - (Required) Specifies the type of Managed Service Identity that should be configured on this Logic App Standard. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned` (to enable both). + * `identity_ids` - (Optional) Specifies a list of User Assigned Managed Identity IDs to be assigned to this Logic App Standard. ~> **NOTE:** When `type` is set to `SystemAssigned`, The assigned `principal_id` and `tenant_id` can be retrieved after the Logic App has been created. More details are available below. @@ -278,7 +283,7 @@ A `scm_ip_restriction` block supports the following: * `name` - (Optional) The name for this IP Restriction. -* `priority` - (Optional) The priority for this IP Restriction. Restrictions are enforced in priority order. By default, the priority is set to 65000 if not specified. +* `priority` - (Optional) The priority for this IP Restriction. Restrictions are enforced in priority order. By default, the priority is set to `65000` if not specified. * `action` - (Optional) Does this restriction `Allow` or `Deny` access for this IP range. Defaults to `Allow`. @@ -290,9 +295,9 @@ A `headers` block supports the following: * `x_azure_fdid` - (Optional) A list of allowed Azure FrontDoor IDs in UUID notation with a maximum of 8. -* `x_fd_health_probe` - (Optional) A list to allow the Azure FrontDoor health probe header. Only allowed value is "1". +* `x_fd_health_probe` - (Optional) A list to allow the Azure FrontDoor health probe header. Only allowed value is `1`. -* `x_forwarded_for` - (Optional) A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8 +* `x_forwarded_for` - (Optional) A list of allowed 'X-Forwarded-For' IPs in CIDR notation with a maximum of 8. * `x_forwarded_host` - (Optional) A list of allowed 'X-Forwarded-Host' domains with a maximum of 8. @@ -330,16 +335,10 @@ The `identity` block exports the following: The `site_credential` block exports the following: -* `username` - The username which can be used to publish to this App Service +* `username` - The username which can be used to publish to this App Service. * `password` - The password associated with the username, which can be used to publish to this App Service. ---- - -The `site_config` block exports the following: - -* `auto_swap_slot_name` - The Auto-swap slot name. - ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: diff --git a/website/docs/r/machine_learning_workspace_network_outbound_rule_fqdn.html.markdown b/website/docs/r/machine_learning_workspace_network_outbound_rule_fqdn.html.markdown new file mode 100644 index 000000000000..a7d01016777a --- /dev/null +++ b/website/docs/r/machine_learning_workspace_network_outbound_rule_fqdn.html.markdown @@ -0,0 +1,106 @@ +--- +subcategory: "Machine Learning" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_machine_learning_workspace_network_outbound_rule_fqdn" +description: |- + Manages an Azure Machine Learning Workspace FQDN Network Outbound Rule. +--- +# azurerm_machine_learning_workspace_network_outbound_rule_fqdn + +Manages an Azure Machine Learning Workspace FQDN Network Outbound Rule. + + +## Example Usage + +```hcl +provider "azurerm" { + features {} +} + +data "azurerm_client_config" "current" {} + +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_application_insights" "example" { + name = "workspace-example-ai" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + application_type = "web" +} + +resource "azurerm_key_vault" "example" { + name = "workspaceexamplekeyvault" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + tenant_id = data.azurerm_client_config.current.tenant_id + sku_name = "premium" +} + +resource "azurerm_storage_account" "example" { + name = "workspacestorageaccount" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + account_tier = "Standard" + account_replication_type = "GRS" +} + +resource "azurerm_machine_learning_workspace" "example" { + name = "example-workspace" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name + application_insights_id = azurerm_application_insights.example.id + key_vault_id = azurerm_key_vault.example.id + storage_account_id = azurerm_storage_account.example.id + + managed_network { + isolation_mode = "AllowOnlyApprovedOutbound" + } + + identity { + type = "SystemAssigned" + } +} + +resource "azurerm_machine_learning_workspace_network_outbound_rule_fqdn" "example" { + name = "example-outboundrule" + workspace_id = azurerm_machine_learning_workspace.example.id + destination_fqdn = "example.com" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) Specifies the name of the Machine Learning Workspace FQDN Network Outbound Rule. Changing this forces a new resource to be created. + +* `workspace_id` - (Required) Specifies the ID of the Machine Learning Workspace. Changing this forces a new resource to be created. + +* `destination_fqdn` - (Required) Specifies the fully qualified domain name to allow for outbound traffic. + + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the Machine Learning Workspace Network Outbound Rule. + +### Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the Machine Learning Workspace FQDN Network Outbound Rule. +* `update` - (Defaults to 30 minutes) Used when updating the Machine Learning Workspace FQDN Network Outbound Rule. +* `read` - (Defaults to 5 minutes) Used when retrieving the Machine Learning Workspace FQDN Network Outbound Rule. +* `delete` - (Defaults to 30 minutes) Used when deleting the Machine Learning Workspace FQDN Network Outbound Rule. + +## Import + +Machine Learning Workspace FQDN Network Outbound Rule can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_machine_learning_workspace_network_outbound_rule_fqdn.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/workspace1/outboundRules/rule1 +``` diff --git a/website/docs/r/mongo_cluster.html.markdown b/website/docs/r/mongo_cluster.html.markdown new file mode 100644 index 000000000000..11efa3124ec2 --- /dev/null +++ b/website/docs/r/mongo_cluster.html.markdown @@ -0,0 +1,129 @@ +--- +subcategory: "Mongo Cluster" +layout: "azurerm" +page_title: "Azure Resource Manager: `azurerm_mongo_cluster" +description: |- + Manages a MongoDB Cluster using vCore Architecture. +--- + +# azurerm_mongo_cluster + +Manages a MongoDB Cluster using vCore Architecture. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-rg" + location = "East US" +} + +resource "azurerm_mongo_cluster" "example" { + name = "example-mc" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + administrator_username = "adminTerraform" + administrator_password = "QAZwsx123" + shard_count = "1" + compute_tier = "Free" + high_availability_mode = "Disabled" + storage_size_in_gb = "32" +} + +``` + +## Example Usage (Preview feature GeoReplicas) + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-rg" + location = "East US" +} + +resource "azurerm_mongo_cluster" "example" { + name = "example-mc" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + administrator_username = "adminTerraform" + administrator_password = "QAZwsx123" + shard_count = "1" + compute_tier = "M30" + high_availability_mode = "ZoneRedundantPreferred" + storage_size_in_gb = "64" + preview_features = ["GeoReplicas"] +} + +resource "azurerm_mongo_cluster" "example_geo_replica" { + name = "example-mc-geo" + resource_group_name = azurerm_resource_group.example.name + location = "Central US" + source_server_id = azurerm_mongo_cluster.example.id + source_location = azurerm_mongo_cluster.example.location + create_mode = "GeoReplica" + + lifecycle { + ignore_changes = ["administrator_username", "high_availability_mode", "preview_features", "shard_count", "storage_size_in_gb", "compute_tier", "version"] + } +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) The name which should be used for the MongoDB Cluster. Changing this forces a new resource to be created. + +* `resource_group_name` - (Required) The name of the resource group in which to create the MongoDB Cluster. Changing this forces a new resource to be created. + +* `location` - (Required) The supported Azure location where the MongoDB Cluster exists. Changing this forces a new resource to be created. + +* `administrator_username` - (Optional) The administrator username of the MongoDB Cluster. Changing this forces a new resource to be created. + +* `create_mode` - (Optional) The creation mode for the MongoDB Cluster. Possibles values are `Default` and `GeoReplica`. Defaults to `Default`. Changing this forces a new resource to be created. + +-> **Note** The creation mode `GeoReplica` is currently in preview. It is only available when `preview_features` is set. + +* `preview_features` - (Optional) The preview features that can be enabled on the MongoDB Cluster. Changing this forces a new resource to be created. + +* `shard_count` - (Optional) The Number of shards to provision on the MongoDB Cluster. Changing this forces a new resource to be created. + +* `source_location` - (Optional) The location of the source MongoDB Cluster. Changing this forces a new resource to be created. + +* `source_server_id` - (Optional) The ID of the replication source MongoDB Cluster. Changing this forces a new resource to be created. + +* `administrator_password` - (Optional) The Password associated with the `administrator_username` for the MongoDB Cluster. + +* `compute_tier` - (Optional) The compute tier to assign to the MongoDB Cluster. Possible values are `Free`, `M25`, `M30`, `M40`, `M50`, `M60` and `M80`. + +* `high_availability_mode` - (Optional) The high availability mode for the MongoDB Cluster. Possibles values are `Disabled` and `ZoneRedundantPreferred`. + +* `public_network_access` - (Optional) The Public Network Access setting for the MongoDB Cluster. Possibles values are `Disabled` and `Enabled`. Defaults to `Enabled`. + +* `storage_size_in_gb` - (Optional) The size of the data disk space for the MongoDB Cluster. + +* `tags` - (Optional) A mapping of tags to assign to the MongoDB Cluster. + +* `version` - (Optional) The version for the MongoDB Cluster. Possibles values are `5.0`, `6.0` and `7.0`. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the MongoDB Cluster. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the MongoDB Cluster. +* `read` - (Defaults to 5 minutes) Used when retrieving the MongoDB Cluster. +* `update` - (Defaults to 30 minutes) Used when updating the MongoDB Cluster. +* `delete` - (Defaults to 30 minutes) Used when deleting the MongoDB Cluster. + +## Import + +MongoDB Clusters can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_mongo_cluster.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DocumentDB/mongoClusters/myMongoCluster +``` diff --git a/website/docs/r/monitor_aad_diagnostic_setting.html.markdown b/website/docs/r/monitor_aad_diagnostic_setting.html.markdown index 1d0a8f3e904e..a43c7dc49718 100644 --- a/website/docs/r/monitor_aad_diagnostic_setting.html.markdown +++ b/website/docs/r/monitor_aad_diagnostic_setting.html.markdown @@ -38,31 +38,15 @@ resource "azurerm_monitor_aad_diagnostic_setting" "example" { storage_account_id = azurerm_storage_account.example.id enabled_log { category = "SignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "AuditLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "NonInteractiveUserSignInLogs" - retention_policy { - enabled = true - days = 1 - } } enabled_log { category = "ServicePrincipalSignInLogs" - retention_policy { - enabled = true - days = 1 - } } } ``` @@ -95,16 +79,6 @@ A `enabled_log` block supports the following: * `category` - (Required) The log category for the Azure Active Directory Diagnostic. -* `retention_policy` - (Required) A `retention_policy` block as defined below. - ---- - -A `retention_policy` block supports the following: - -* `enabled` - (Optional) Is this Retention Policy enabled? Defaults to `false`. - -* `days` - (Optional) The number of days for which this Retention Policy should apply. Defaults to `0`. - ## Attributes Reference In addition to the Arguments listed above - the following Attributes are exported: diff --git a/website/docs/r/mssql_database.html.markdown b/website/docs/r/mssql_database.html.markdown index 5950a2d2df5b..c82575621f28 100644 --- a/website/docs/r/mssql_database.html.markdown +++ b/website/docs/r/mssql_database.html.markdown @@ -280,9 +280,9 @@ a `threat_detection_policy` block supports the following: A `long_term_retention_policy` block supports the following: -* `weekly_retention` - (Optional) The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. -* `monthly_retention` - (Optional) The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. -* `yearly_retention` - (Optional) The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. +* `weekly_retention` - (Optional) The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. +* `monthly_retention` - (Optional) The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. +* `yearly_retention` - (Optional) The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * `week_of_year` - (Optional) The week of year to take the yearly backup. Value has to be between `1` and `52`. --- diff --git a/website/docs/r/mssql_managed_database.html.markdown b/website/docs/r/mssql_managed_database.html.markdown index 4b95e8185d65..d3bf43b788d9 100644 --- a/website/docs/r/mssql_managed_database.html.markdown +++ b/website/docs/r/mssql_managed_database.html.markdown @@ -74,13 +74,15 @@ The following arguments are supported: * `point_in_time_restore` - (Optional) A `point_in_time_restore` block as defined below. Changing this forces a new resource to be created. +* `tags` - (Optional) A mapping of tags to assign to the resource. + --- A `long_term_retention_policy` block supports the following: -* `weekly_retention` - (Optional) The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. -* `monthly_retention` - (Optional) The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. -* `yearly_retention` - (Optional) The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. +* `weekly_retention` - (Optional) The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. +* `monthly_retention` - (Optional) The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. +* `yearly_retention` - (Optional) The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * `week_of_year` - (Optional) The week of year to take the yearly backup. Value has to be between `1` and `52`. --- diff --git a/website/docs/r/mssql_managed_instance.html.markdown b/website/docs/r/mssql_managed_instance.html.markdown index e933e0ff28c9..4e30add4fdc0 100644 --- a/website/docs/r/mssql_managed_instance.html.markdown +++ b/website/docs/r/mssql_managed_instance.html.markdown @@ -243,7 +243,7 @@ The following arguments are supported: * `service_principal_type` - (Optional) The service principal type. The only possible value is `SystemAssigned`. -* `storage_account_type` - (Optional) Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. +* `storage_account_type` - (Optional) Specifies the storage account type used to store backups for this database. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. * `zone_redundant_enabled` - (Optional) Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to `false`. diff --git a/website/docs/r/mssql_server_transparent_data_encryption.html.markdown b/website/docs/r/mssql_server_transparent_data_encryption.html.markdown index 0a8df524577b..c8f3271596c6 100644 --- a/website/docs/r/mssql_server_transparent_data_encryption.html.markdown +++ b/website/docs/r/mssql_server_transparent_data_encryption.html.markdown @@ -10,7 +10,7 @@ description: |- Manages the transparent data encryption configuration for a MSSQL Server -!> **IMPORTANT:** This resource should only be used with pre-existing MS SQL Instances that are over 2 years old. For new MS SQL Instances that will be created through the use of the `azurerm_mssql_server` resource, please enable Transparent Data Encryption through `azurerm_mssql_server` resource itself by configuring an [identity](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_server#identity) block. By default all new MS SQL Instances are deployed with System Managed Transparent Data Encryption enabled. +!> **IMPORTANT:** This resource can be used to configure Transparent Data Encryption for MS SQL instances with Customer Managed Keys. For MS SQL instances that are System Managed, it should only be used with pre-existing MS SQL Instances that are over 3 years old. For new System Managed MS SQL Instances that will be created through the use of the `azurerm_mssql_server` resource, please enable Transparent Data Encryption through `azurerm_mssql_server` resource itself by configuring an [identity](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_server#identity) block. By default, all new MS SQL Instances are deployed with System Managed Transparent Data Encryption enabled. ~> **NOTE:** Once transparent data encryption is enabled on a MS SQL instance, it is not possible to remove TDE. You will be able to switch between 'ServiceManaged' and 'CustomerManaged' keys, but will not be able to remove encryption. For safety when this resource is deleted, the TDE mode will automatically be set to 'ServiceManaged'. See `key_vault_uri` for more information on how to specify the key types. As SQL Server only supports a single configuration for encryption settings, this resource will replace the current encryption settings on the server. diff --git a/website/docs/r/netapp_backup_policy.html.markdown b/website/docs/r/netapp_backup_policy.html.markdown new file mode 100644 index 000000000000..62baec2951e5 --- /dev/null +++ b/website/docs/r/netapp_backup_policy.html.markdown @@ -0,0 +1,75 @@ +--- +subcategory: "NetApp" +layout: "azurerm" +page_title: "Azure Resource Manager: netapp_backup_policy" +description: |- + Manages a NetApp Backup Policy. +--- + +# netapp_backup_policy + +Manages a NetApp Backup Policy. + +## NetApp Backup Policy Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_netapp_account" "example" { + name = "example-netappaccount" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name +} + +resource "azurerm_netapp_backup_policy" "example" { + name = "example-netappbackuppolicy" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + account_name = azurerm_netapp_account.example.name + enabled = true +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + +* `resource_group_name` - (Required) The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + +* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + +* `account_name` - (Required) The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + +* `daily_backups_to_keep` - (Optional) Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + +* `weekly_backups_to_keep` - (Optional) Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + +* `monthly_backups_to_keep` - (Optional) Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + +~> **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + +* `enabled` - (Optional) Whether the Backup Policy is enabled. Defaults to `true`. + +* `tags` - (Optional) A mapping of tags to assign to the resource. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 90 minutes) Used when creating the NetApp Backup Policy. +* `update` - (Defaults to 120 minutes) Used when updating the NetApp Backup Policy. +* `read` - (Defaults to 5 minutes) Used when retrieving the NetApp Backup Policy. +* `delete` - (Defaults to 120 minutes) Used when deleting the NetApp Backup Policy. + +## Import + +NetApp Backup Policy can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_netapp_backup_policy.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 +``` diff --git a/website/docs/r/netapp_backup_vault.html.markdown b/website/docs/r/netapp_backup_vault.html.markdown new file mode 100644 index 000000000000..72fcd2cf16f6 --- /dev/null +++ b/website/docs/r/netapp_backup_vault.html.markdown @@ -0,0 +1,64 @@ +--- +subcategory: "NetApp" +layout: "azurerm" +page_title: "Azure Resource Manager: netapp_backup_vault" +description: |- + Manages a NetApp Backup Vault. +--- + +# netapp_backup_vault + +Manages a NetApp Backup Vault. + +## NetApp Backup Vault Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_netapp_account" "example" { + name = "example-netappaccount" + location = azurerm_resource_group.example.location + resource_group_name = azurerm_resource_group.example.name +} + +resource "azurerm_netapp_backup_vault" "example" { + name = "example-netappbackupvault" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + account_name = azurerm_netapp_account.example.name +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + +* `resource_group_name` - (Required) The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + +* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + +* `account_name` - (Required) The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + +* `tags` - (Optional) A mapping of tags to assign to the resource. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 90 minutes) Used when creating the NetApp Backup Vault. +* `update` - (Defaults to 120 minutes) Used when updating the NetApp Backup Vault. +* `read` - (Defaults to 5 minutes) Used when retrieving the NetApp Backup Vault. +* `delete` - (Defaults to 120 minutes) Used when deleting the NetApp Backup Vault. + +## Import + +NetApp Backup Vault can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_netapp_backup_vault.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1 +``` diff --git a/website/docs/r/netapp_volume.html.markdown b/website/docs/r/netapp_volume.html.markdown index b0fb29206f7a..68436260c99b 100644 --- a/website/docs/r/netapp_volume.html.markdown +++ b/website/docs/r/netapp_volume.html.markdown @@ -10,11 +10,20 @@ description: |- Manages a NetApp Volume. -!>**IMPORTANT:** To mitigate the possibility of accidental data loss it is highly recommended that you use the `prevent_destroy` lifecycle argument in your configuration file for this resource. For more information on the `prevent_destroy` lifecycle argument please see the [terraform documentation](https://developer.hashicorp.com/terraform/tutorials/state/resource-lifecycle#prevent-resource-deletion). +!>**IMPORTANT:** This resource uses a feature to prevent deletion called `prevent_volume_destruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults. ## NetApp Volume Usage ```hcl +provider "azurerm" { + features { + netapp { + prevent_volume_destruction = true + delete_backups_on_backup_vault_destroy = false + } + } +} + resource "azurerm_resource_group" "example" { name = "example-resources" location = "West Europe" @@ -49,6 +58,24 @@ resource "azurerm_netapp_account" "example" { resource_group_name = azurerm_resource_group.example.name } +resource "azurerm_netapp_backup_vault" "example" { + name = "example-netappbackupvault" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + account_name = azurerm_netapp_account.example.name +} + +resource "azurerm_netapp_backup_policy" "example" { + name = "example-netappbackuppolicy" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + account_name = azurerm_netapp_account.example.name + daily_backups_to_keep = 2 + weekly_backups_to_keep = 2 + monthly_backups_to_keep = 2 + enabled = true +} + resource "azurerm_netapp_pool" "example" { name = "example-netapppool" location = azurerm_resource_group.example.location @@ -91,6 +118,13 @@ resource "azurerm_netapp_volume" "example" { snapshot_policy_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/snapshotPolicies/snapshotpolicy1" } + # Enabling backup policy + data_protection_backup_policy { + backup_vault_id = azurerm_netapp_backup_vault.example.id + backup_policy_id = azurerm_netapp_backup_policy.example.id + policy_enabled = true + } + # prevent the possibility of accidental data loss lifecycle { prevent_destroy = true @@ -138,6 +172,8 @@ The following arguments are supported: * `data_protection_snapshot_policy` - (Optional) A `data_protection_snapshot_policy` block as defined below. +* `data_protection_backup_policy` - (Optional) A `data_protection_backup_policy` block as defined below. + * `export_policy_rule` - (Optional) One or more `export_policy_rule` block defined below. * `throughput_in_mibps` - (Optional) Throughput of this volume in Mibps. @@ -218,6 +254,18 @@ A full example of the `data_protection_snapshot_policy` attribute usage can be f --- +A `data_protection_backup_policy` block is used to setup automatic backups through a specific backup policy. It supports the following: + +* `backup_vault_id` - (Required) Resource ID of the backup backup vault to associate this volume to. + +* `backup_policy_id` - (Required) Resource ID of the backup policy to apply to the volume. + +* `policy_enabled` - (Optional) Enables the backup policy on the volume, defaults to `true`. + +For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + +--- + ## Attributes Reference In addition to the Arguments listed above - the following Attributes are exported: diff --git a/website/docs/r/network_manager.html.markdown b/website/docs/r/network_manager.html.markdown index 9a6764fe717a..d46f0a6ea970 100644 --- a/website/docs/r/network_manager.html.markdown +++ b/website/docs/r/network_manager.html.markdown @@ -49,7 +49,7 @@ The following arguments are supported: * `scope` - (Required) A `scope` block as defined below. -* `scope_accesses` - (Required) A list of configuration deployment type. Possible values are `Connectivity` and `SecurityAdmin`, corresponds to if Connectivity Configuration and Security Admin Configuration is allowed for the Network Manager. +* `scope_accesses` - (Required) A list of configuration deployment type. Possible values are `Connectivity`, `SecurityAdmin` and `Routing`, corresponds to if Connectivity Configuration, Security Admin Configuration or Routing Configuration is allowed for the Network Manager. * `description` - (Optional) A description of the network manager. diff --git a/website/docs/r/network_watcher_flow_log.html.markdown b/website/docs/r/network_watcher_flow_log.html.markdown index 2241e12a3e0a..b6814eb543e9 100644 --- a/website/docs/r/network_watcher_flow_log.html.markdown +++ b/website/docs/r/network_watcher_flow_log.html.markdown @@ -85,7 +85,7 @@ The following arguments are supported: * `resource_group_name` - (Required) The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created. -* `network_security_group_id` - (Required) The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created. +* `target_resource_id` - (Required) The ID of the Resource for which to enable flow logs for. Changing this forces a new resource to be created. * `storage_account_id` - (Required) The ID of the Storage Account where flow logs are stored. diff --git a/website/docs/r/oracle_autonomous_database_regular.html.markdown b/website/docs/r/oracle_autonomous_database.html.markdown similarity index 100% rename from website/docs/r/oracle_autonomous_database_regular.html.markdown rename to website/docs/r/oracle_autonomous_database.html.markdown diff --git a/website/docs/r/oracle_cloud_vm_cluster.html.markdown b/website/docs/r/oracle_cloud_vm_cluster.html.markdown index 2c98b5c319bd..d208552cc1f4 100644 --- a/website/docs/r/oracle_cloud_vm_cluster.html.markdown +++ b/website/docs/r/oracle_cloud_vm_cluster.html.markdown @@ -93,8 +93,6 @@ The following arguments are supported: * `hostname` - (Required) The hostname for the Cloud VM Cluster without suffix. -* `hostname_actual` - The hostname for the Cloud VM Cluster with suffix. - * `license_model` - (Required) The Oracle license model that applies to the Cloud VM Cluster, either `BringYourOwnLicense` or `LicenseIncluded`. * `location` - (Required) The Azure Region where the Cloud VM Cluster should exist. @@ -123,16 +121,24 @@ The following arguments are supported: * `db_node_storage_size_in_gbs` - (Optional) The local node storage to be allocated in GBs. +* `domain` - (Optional) The name of the OCI Private DNS Zone to be associated with the Cloud VM Cluster. This is required for specifying your own private domain name. + * `local_backup_enabled` - (Optional) If true, database backup on local Exadata storage is configured for the Cloud VM Cluster. If `false`, database backup on local Exadata storage is not available in the Cloud VM Cluster. * `sparse_diskgroup_enabled` - (Optional) If true, the sparse disk group is configured for the Cloud VM Cluster. If `false`, the sparse disk group is not created. * `memory_size_in_gbs` - (Optional) The memory to be allocated in GBs. +* `scan_listener_port_tcp` - (Optional) The TCP Single Client Access Name (SCAN) port. The default port to 1521. + +* `scan_listener_port_tcp_ssl` - (Optional) The TCPS Single Client Access Name (SCAN) port. The default port to 2484. + * `tags` - (Optional) A mapping of tags which should be assigned to the Cloud VM Cluster. * `time_zone` - (Optional) The time zone of the Cloud VM Cluster. For details, see [Exadata Infrastructure Time Zones](https://docs.cloud.oracle.com/iaas/Content/Database/References/timezones.htm). +* `zone_id` - (Optional) The OCID of the OCI Private DNS Zone to be associated with the Cloud VM Cluster. This is required for specifying your own private domain name. + --- A `data_collection_options` block supports the following: @@ -149,6 +155,10 @@ In addition to the Arguments listed above - the following Attributes are exporte * `id` - The ID of the Cloud VM Cluster. +* `hostname_actual` - The hostname for the Cloud VM Cluster with suffix. + +* `ocid` - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. + ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: diff --git a/website/docs/r/orchestrated_virtual_machine_scale_set.html.markdown b/website/docs/r/orchestrated_virtual_machine_scale_set.html.markdown index b0ec6d52a45f..5dcfe85f157e 100644 --- a/website/docs/r/orchestrated_virtual_machine_scale_set.html.markdown +++ b/website/docs/r/orchestrated_virtual_machine_scale_set.html.markdown @@ -49,6 +49,10 @@ resource "azurerm_orchestrated_virtual_machine_scale_set" "example" { * `sku_name` - (Optional) The `name` of the SKU to be used by this Virtual Machine Scale Set. Valid values include: any of the [General purpose](https://docs.microsoft.com/azure/virtual-machines/sizes-general), [Compute optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-compute), [Memory optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-memory), [Storage optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-storage), [GPU optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-gpu), [FPGA optimized](https://docs.microsoft.com/azure/virtual-machines/sizes-field-programmable-gate-arrays), [High performance](https://docs.microsoft.com/azure/virtual-machines/sizes-hpc), or [Previous generation](https://docs.microsoft.com/azure/virtual-machines/sizes-previous-gen) virtual machine SKUs. +* `sku_profile` - (Optional) An `sku_profile` block as defined below. Changing this forces a new resource to be created. + +-> **Note:** If `sku_profile` is specified the `sku_name` must be set to `Mix`. + * `additional_capabilities` - (Optional) An `additional_capabilities` block as defined below. * `encryption_at_host_enabled` - (Optional) Should disks attached to this Virtual Machine Scale Set be encrypted by enabling Encryption at Host? @@ -125,6 +129,14 @@ resource "azurerm_orchestrated_virtual_machine_scale_set" "example" { --- +An `sku_profile` block supports the following: + +* `allocation_strategy` - (Required) Specifies the allocation strategy for the virtual machine scale set based on which the VMs will be allocated. Possible values are `LowestPrice` and `CapacityOptimized`. + +* `vm_sizes` - (Required) Specifies the VM sizes for the virtual machine scale set. + +--- + An `additional_capabilities` block supports the following: * `ultra_ssd_enabled` - (Optional) Should the capacity to enable Data Disks of the `UltraSSD_LRS` storage account type be supported on this Virtual Machine Scale Set? Defaults to `false`. Changing this forces a new resource to be created. diff --git a/website/docs/r/public_ip.html.markdown b/website/docs/r/public_ip.html.markdown index 1f4eccb6dec5..5abc7f89543c 100644 --- a/website/docs/r/public_ip.html.markdown +++ b/website/docs/r/public_ip.html.markdown @@ -60,6 +60,8 @@ The following arguments are supported: * `domain_name_label` - (Optional) Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. +* `domain_name_label_scope` - (Optional) Scope for the domain name label. If a domain name label scope is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN. Possible values are `NoReuse`, `ResourceGroupReuse`, `SubscriptionReuse` and `TenantReuse`. Changing this forces a new Public IP to be created. + * `edge_zone` - (Optional) Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created. * `idle_timeout_in_minutes` - (Optional) Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. diff --git a/website/docs/r/public_ip_prefix.html.markdown b/website/docs/r/public_ip_prefix.html.markdown index c121273c1597..260823b62295 100644 --- a/website/docs/r/public_ip_prefix.html.markdown +++ b/website/docs/r/public_ip_prefix.html.markdown @@ -45,6 +45,8 @@ The following arguments are supported: -> **Note:** Public IP Prefix can only be created with Standard SKUs at this time. +* `sku_tier` - (Optional) The SKU Tier that should be used for the Public IP. Possible values are `Regional` and `Global`. Defaults to `Regional`. Changing this forces a new resource to be created. + * `ip_version` - (Optional) The IP Version to use, `IPv6` or `IPv4`. Changing this forces a new resource to be created. Default is `IPv4`. * `prefix_length` - (Optional) Specifies the number of bits of the prefix. The value can be set between 0 (4,294,967,296 addresses) and 31 (2 addresses). Defaults to `28`(16 addresses). Changing this forces a new resource to be created. diff --git a/website/docs/r/role_definition.html.markdown b/website/docs/r/role_definition.html.markdown index 299a7df4713d..7ecef7c85069 100644 --- a/website/docs/r/role_definition.html.markdown +++ b/website/docs/r/role_definition.html.markdown @@ -33,6 +33,36 @@ resource "azurerm_role_definition" "example" { } ``` +## Example Usage with Management Group +```hcl +data "azurerm_subscription" "current" { +} + +resource "azurerm_management_group" "example" { + display_name = "ParentGroup" + + subscription_ids = [ + data.azurerm_subscription.current.subscription_id, + ] +} + +resource "azurerm_role_definition" "example" { + name = "example-mg-role" + scope = azurerm_management_group.example.id + description = "Example custom role scoped to a management group." + + permissions { + actions = ["Microsoft.Insights/alertRules/*", + ] + not_actions = [] + } + + assignable_scopes = [ + azurerm_management_group.example.id + ] +} +``` + ## Argument Reference The following arguments are supported: @@ -41,13 +71,13 @@ The following arguments are supported: * `name` - (Required) The name of the Role Definition. -* `scope` - (Required) The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created. +* `scope` - (Required) The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created. * `description` - (Optional) A description of the Role Definition. * `permissions` - (Optional) A `permissions` block as defined below. -* `assignable_scopes` - (Optional) One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. +* `assignable_scopes` - (Optional) One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, `/providers/Microsoft.Management/managementGroups/0b1f6471-1bf0-4dda-aec3-111122223333` , or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. ~> **NOTE:** The value for `scope` is automatically included in this list if no other values supplied. diff --git a/website/docs/r/search_service.html.markdown b/website/docs/r/search_service.html.markdown index 3d39cdaefcb9..3cff1397cb1d 100644 --- a/website/docs/r/search_service.html.markdown +++ b/website/docs/r/search_service.html.markdown @@ -128,6 +128,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `id` - The ID of the Search Service. +* `customer_managed_key_encryption_compliance_status` - Describes whether the search service is compliant or not with respect to having non-customer encrypted resources. If a service has more than one non-customer encrypted resource and `Enforcement` is `enabled` then the service will be marked as `NonCompliant`. If all the resources are customer encrypted, then the service will be marked as `Compliant`. + * `primary_key` - The Primary Key used for Search Service Administration. * `query_keys` - A `query_keys` block as defined below. diff --git a/website/docs/r/security_center_auto_provisioning.html.markdown b/website/docs/r/security_center_auto_provisioning.html.markdown index 95bc8297319d..f0f86e014736 100644 --- a/website/docs/r/security_center_auto_provisioning.html.markdown +++ b/website/docs/r/security_center_auto_provisioning.html.markdown @@ -10,6 +10,8 @@ description: |- Enables or disables the Security Center Auto Provisioning feature for the subscription +~> **Note:** The `azurerm_security_center_auto_provisioning` resource has been deprecated because [the auto provisioning capability will be deprecated by end of Novemember of 2024](https://learn.microsoft.com/en-us/azure/defender-for-cloud/prepare-deprecation-log-analytics-mma-agent#log-analytics-agent-autoprovisioning-experience---deprecation-plan) and will be removed in v5.0 of the AzureRM Provider. + ~> **NOTE:** There is no resource name required, it will always be "default" ## Example Usage diff --git a/website/docs/r/sentinel_alert_rule_fusion.html.markdown b/website/docs/r/sentinel_alert_rule_fusion.html.markdown index 4280af628467..2168fd8761c2 100644 --- a/website/docs/r/sentinel_alert_rule_fusion.html.markdown +++ b/website/docs/r/sentinel_alert_rule_fusion.html.markdown @@ -25,22 +25,12 @@ resource "azurerm_log_analytics_workspace" "example" { sku = "PerGB2018" } -resource "azurerm_log_analytics_solution" "example" { - solution_name = "SecurityInsights" - location = azurerm_resource_group.example.location - resource_group_name = azurerm_resource_group.example.name - workspace_resource_id = azurerm_log_analytics_workspace.example.id - workspace_name = azurerm_log_analytics_workspace.example.name - - plan { - publisher = "Microsoft" - product = "OMSGallery/SecurityInsights" - } +resource "azurerm_sentinel_log_analytics_workspace_onboarding" "example" { + workspace_id = azurerm_log_analytics_workspace.example.id } resource "azurerm_sentinel_alert_rule_fusion" "example" { - name = "example-fusion-alert-rule" - log_analytics_workspace_id = azurerm_log_analytics_solution.example.workspace_resource_id + log_analytics_workspace_id = azurerm_sentinel_log_analytics_workspace_onboarding.example.workspace_id alert_rule_template_guid = "f71aba3d-28fb-450b-b192-4e76a83015c8" } ``` @@ -49,8 +39,6 @@ resource "azurerm_sentinel_alert_rule_fusion" "example" { The following arguments are supported: -* `name` - (Required) The name which should be used for this Sentinel Fusion Alert Rule. Changing this forces a new Sentinel Fusion Alert Rule to be created. - * `log_analytics_workspace_id` - (Required) The ID of the Log Analytics Workspace this Sentinel Fusion Alert Rule belongs to. Changing this forces a new Sentinel Fusion Alert Rule to be created. * `alert_rule_template_guid` - (Required) The GUID of the alert rule template which is used for this Sentinel Fusion Alert Rule. Changing this forces a new Sentinel Fusion Alert Rule to be created. diff --git a/website/docs/r/stack_hci_extension.html.markdown b/website/docs/r/stack_hci_extension.html.markdown new file mode 100644 index 000000000000..a4633dbead3c --- /dev/null +++ b/website/docs/r/stack_hci_extension.html.markdown @@ -0,0 +1,77 @@ +--- +subcategory: "Azure Stack HCI" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_stack_hci_extension" +description: |- + Manages an Azure Stack HCI Extension. +--- + +# azurerm_stack_hci_extension + +Manages an Azure Stack HCI Extension. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-hci-ext" + location = "West Europe" +} + +resource "azurerm_stack_hci_extension" "example" { + name = "AzureMonitorWindowsAgent" + arc_setting_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-hci/providers/Microsoft.AzureStackHCI/clusters/hci-cl/arcSettings/default" + publisher = "Microsoft.Azure.Monitor" + type = "MicrosoftMonitoringAgent" + auto_upgrade_minor_version_enabled = true + automatic_upgrade_enabled = true + type_handler_version = "1.22.0" +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) The name which should be used for this Azure Stack HCI Extension. Changing this forces a new resource to be created. + +* `arc_setting_id` - (Required) The ID of the Azure Stack HCI Cluster Arc Setting. Changing this forces a new resource to be created. + +* `publisher` - (Required) The name of the extension handler publisher, such as `Microsoft.Azure.Monitor`. Changing this forces a new resource to be created. + +* `type` - (Required) Specifies the type of the extension. For example `CustomScriptExtension` or `AzureMonitorLinuxAgent`. Changing this forces a new resource to be created. + +* `auto_upgrade_minor_version_enabled` - (Optional) 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. Changing this forces a new resource to be created. Possible values are `true` and `false`. Defaults to `true`. + +* `automatic_upgrade_enabled` - (Optional) Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. Possible values are `true` and `false`. Defaults to `true`. + +* `protected_settings` - (Optional) The json formatted protected settings for the extension. + +* `settings` - (Optional) The json formatted public settings for the extension. + +* `type_handler_version` - (Optional) Specifies the version of the script handler. + +-> **NOTE:** `type_handler_version` cannot be set when `automatic_upgrade_enabled` is set to `true`. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the Azure Stack HCI Extension. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the Azure Stack HCI Extension. +* `read` - (Defaults to 5 minutes) Used when retrieving the Azure Stack HCI Extension. +* `update` - (Defaults to 30 minutes) Used when updating the Azure Stack HCI Extension. +* `delete` - (Defaults to 30 minutes) Used when deleting the Azure Stack HCI Extension. + +## Import + +Azure Stack HCI Extension can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_stack_hci_extension.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/cluster1/arcSettings/default/extensions/extension1 +``` diff --git a/website/docs/r/stack_hci_logical_network.html.markdown b/website/docs/r/stack_hci_logical_network.html.markdown index d5035c398c7d..ce06214c5745 100644 --- a/website/docs/r/stack_hci_logical_network.html.markdown +++ b/website/docs/r/stack_hci_logical_network.html.markdown @@ -90,6 +90,8 @@ A `subnet` block supports the following: * `ip_pool` - (Optional) One or more `ip_pool` block as defined above. Changing this forces a new resource to be created. +-> **Note:** If `ip_pool` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignore_changes`. + * `route` - (Optional) A `route` block as defined above. Changing this forces a new resource to be created. * `vlan_id` - (Optional) The VLAN ID for the Logical Network. Changing this forces a new resource to be created. diff --git a/website/docs/r/stack_hci_marketplace_gallery_image.html.markdown b/website/docs/r/stack_hci_marketplace_gallery_image.html.markdown new file mode 100644 index 000000000000..f620edf9279c --- /dev/null +++ b/website/docs/r/stack_hci_marketplace_gallery_image.html.markdown @@ -0,0 +1,111 @@ +--- +subcategory: "Azure Stack HCI" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_stack_hci_marketplace_gallery_image" +description: |- + Manages an Azure Stack HCI Marketplace Gallery Image. +--- + +# azurerm_stack_hci_marketplace_gallery_image + +Manages an Azure Stack HCI Marketplace Gallery Image. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "examples" + location = "West Europe" +} + +data "azurerm_client_config" "example" {} + +// service principal of 'Microsoft.AzureStackHCI Resource Provider' +data "azuread_service_principal" "hciRp" { + client_id = "1412d89f-b8a8-4111-b4fd-e82905cbd85d" +} + +resource "azurerm_role_assignment" "example" { + scope = azurerm_resource_group.example.id + role_definition_name = "Azure Connected Machine Resource Manager" + principal_id = data.azuread_service_principal.hciRp.object_id +} + +resource "azurerm_stack_hci_marketplace_gallery_image" "example" { + name = "example-mgi" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + custom_location_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1" + hyperv_generation = "V2" + os_type = "Windows" + version = "20348.2655.240905" + identifier { + publisher = "MicrosoftWindowsServer" + offer = "WindowsServer" + sku = "2022-datacenter-azure-edition-core" + } + tags = { + foo = "bar" + env = "example" + } +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +* `resource_group_name` - (Required) The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +* `location` - (Required) The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +* `custom_location_id` - (Required) The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created. + +* `hyperv_generation` - (Required) The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +* `identifier` - (Required) An `identifier` block as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +* `os_type` - (Required) The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are `Windows` and `Linux`. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +* `version` - (Required) The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +--- + +* `storage_path_id` - (Optional) The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + +* `tags` - (Optional) A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image. + +--- + +An `identifier` block supports the following: + +* `offer` - (Required) The offer of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +* `publisher` - (Required) The publisher of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +* `sku` - (Required) The sku of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the Azure Stack HCI Marketplace Gallery Image. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 3 hours) Used when creating the Azure Stack HCI Marketplace Gallery Image. +* `read` - (Defaults to 5 minutes) Used when retrieving the Azure Stack HCI Marketplace Gallery Image. +* `update` - (Defaults to 30 minutes) Used when updating the Azure Stack HCI Marketplace Gallery Image. +* `delete` - (Defaults to 1 hour) Used when deleting the Azure Stack HCI Marketplace Gallery Image. + +## Import + +Azure Stack HCI Marketplace Gallery Images can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_stack_hci_marketplace_gallery_image.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/image1 +``` diff --git a/website/docs/r/stack_hci_network_interface.html.markdown b/website/docs/r/stack_hci_network_interface.html.markdown new file mode 100644 index 000000000000..01709b058055 --- /dev/null +++ b/website/docs/r/stack_hci_network_interface.html.markdown @@ -0,0 +1,128 @@ +--- +subcategory: "Azure Stack HCI" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_stack_hci_network_interface" +description: |- + Manages an Azure Stack HCI Network Interface. +--- + +# azurerm_stack_hci_network_interface + +Manages an Azure Stack HCI Network Interface. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-rg" + location = "West Europe" +} + +resource "azurerm_stack_hci_logical_network" "example" { + name = "example-hci-ln" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + custom_location_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1" + virtual_switch_name = "ConvergedSwitch(managementcompute)" + dns_servers = ["10.0.0.7", "10.0.0.8"] + + subnet { + ip_allocation_method = "Static" + address_prefix = "10.0.0.0/24" + route { + name = "example-route" + address_prefix = "0.0.0.0/0" + next_hop_ip_address = "10.0.20.1" + } + vlan_id = 123 + } + + tags = { + foo = "bar" + } +} + +resource "azurerm_stack_hci_network_interface" "example" { + name = "example-ni" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + custom_location_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1" + dns_servers = ["10.0.0.8"] + + ip_configuration { + private_ip_address = "10.0.0.2" + subnet_id = azurerm_stack_hci_logical_network.test.id + } + + tags = { + foo = "bar" + } + + lifecycle { + ignore_changes = [mac_address] + } +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created. + +* `resource_group_name` - (Required) The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. + +* `location` - (Required) The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. + +* `custom_location_id` - (Required) The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created. + +* `ip_configuration` - (Required) An `ip_configuration` block as defined below. Changing this forces a new resource to be created. + +* `dns_servers` - (Optional) A list of IPv4 addresses of DNS servers available to VMs deployed in the Network Interface. Changing this forces a new resource to be created. + +* `mac_address` - (Optional) The MAC address of the Network Interface. Changing this forces a new resource to be created. + +-> **Note:** If `mac_address` is not specified, it will be assigned by the server. If you experience a diff you may need to add this to `ignore_changes`. + +* `tags` - (Optional) A mapping of tags which should be assigned to the Azure Stack HCI Network Interface. + +--- + +An `ip_configuration` block supports the following: + +* `subnet_id` - (Required) The resource ID of the Stack HCI Logical Network bound to the IP configuration. Changing this forces a new resource to be created. + +* `private_ip_address` - (Optional) The IPv4 address of the IP configuration. Changing this forces a new resource to be created. + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The resource ID of the Azure Stack HCI Network Interface. + +* `ip_configuration` - An `ip_configuration` as defined below. + +--- + +An `ip_configuration` block exports the following: + +* `gateway` - The IPv4 address of the gateway for the Network Interface. + +* `prefix_length` - The prefix length for the address of the Network Interface. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the Azure Stack HCI Network Interface. +* `read` - (Defaults to 5 minutes) Used when retrieving the Azure Stack HCI Network Interface. +* `update` - (Defaults to 30 minutes) Used when updating the Azure Stack HCI Network Interface. +* `delete` - (Defaults to 30 minutes) Used when deleting the Azure Stack HCI Network Interface. + +## Import + +Azure Stack HCI Network Interfaces can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_stack_hci_network_interface.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/networkInterfaces/ni1 +``` diff --git a/website/docs/r/storage_account_customer_managed_key.html.markdown b/website/docs/r/storage_account_customer_managed_key.html.markdown index 34e90a39c486..80e6af688fcf 100644 --- a/website/docs/r/storage_account_customer_managed_key.html.markdown +++ b/website/docs/r/storage_account_customer_managed_key.html.markdown @@ -127,7 +127,7 @@ The following arguments are supported: * `key_vault_id` - (Optional) The ID of the Key Vault. Exactly one of `managed_hsm_key_id`, `key_vault_id`, or `key_vault_uri` must be specified. -~> Note: When the principal running Terraform has access to the subscription containing the Key Vault, it's recommended to use the `key_vault_id` property for maximum compatibility, rather than the `key_vault_uri` property. +~> Note: When the principal running Terraform has access to the subscription containing the Key Vault, it's recommended to use the `key_vault_id` property for maximum compatibility, rather than the `key_vault_uri` property. However if the Key Vault is in a different subscription from the Storage Account `key_vault_uri` will need to be used instead otherwise there will be a diff. * `key_vault_uri` - (Optional) URI pointing at the Key Vault. Required when using `federated_identity_client_id`. Exactly one of `managed_hsm_key_id`, `key_vault_id`, or `key_vault_uri` must be specified. diff --git a/website/docs/r/storage_account_queue_properties.html.markdown b/website/docs/r/storage_account_queue_properties.html.markdown new file mode 100644 index 000000000000..a5ed5768a8b0 --- /dev/null +++ b/website/docs/r/storage_account_queue_properties.html.markdown @@ -0,0 +1,144 @@ +--- +subcategory: "Storage" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_storage_account_queue_properties" +description: |- + Manages the Queue Properties of an Azure Storage Account. +--- + +# azurerm_storage_account_queue_properties + +Manages the Queue Properties of an Azure Storage Account. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_storage_account" "example" { + name = "storageaccountname" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + account_tier = "Standard" + account_replication_type = "GRS" + + tags = { + environment = "staging" + } +} + +resource "azurerm_storage_account_queue_properties" "example" { + storage_account_id = azurerm_storage_account.example.id + cors_rule { + allowed_origins = ["http://www.example.com"] + exposed_headers = ["x-tempo-*"] + allowed_headers = ["x-tempo-*"] + allowed_methods = ["GET", "PUT"] + max_age_in_seconds = "500" + } + + logging { + version = "1.0" + delete = true + read = true + write = true + retention_policy_days = 7 + } + + hour_metrics { + version = "1.0" + retention_policy_days = 7 + } + + minute_metrics { + version = "1.0" + retention_policy_days = 7 + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `storage_account_id` - (Required) The ID of the Storage Account to set Queue Properties on. Changing this forces a new resource to be created. + +* `cors_rule` - (Optional) A `cors_rule` block as defined above. + +* `logging` - (Optional) A `logging` block as defined below. + +* `minute_metrics` - (Optional) A `minute_metrics` block as defined below. + +* `hour_metrics` - (Optional) A `hour_metrics` block as defined below. + +~> **NOTE:** At least one of `cors_rule`, `logging`, `minute_metrics`, or `hour_metrics` must be specified. + +--- + +A `cors_rule` block supports the following: + +* `allowed_headers` - (Required) A list of headers that are allowed to be a part of the cross-origin request. + +* `allowed_methods` - (Required) A list of HTTP methods that are allowed to be executed by the origin. Valid options are + `DELETE`, `GET`, `HEAD`, `MERGE`, `POST`, `OPTIONS`, `PUT` or `PATCH`. + +* `allowed_origins` - (Required) A list of origin domains that will be allowed by CORS. + +* `exposed_headers` - (Required) A list of response headers that are exposed to CORS clients. + +* `max_age_in_seconds` - (Required) The number of seconds the client should cache a preflight response. + +--- + +An `hour_metrics` block supports the following: + +* `version` - (Required) The version of storage analytics to configure. + +* `include_apis` - (Optional) Indicates whether metrics should generate summary statistics for called API operations. + +* `retention_policy_days` - (Optional) Specifies the number of days that logs will be retained. + +--- + +A `logging` block supports the following: + +* `delete` - (Required) Indicates whether all delete requests should be logged. + +* `read` - (Required) Indicates whether all read requests should be logged. + +* `version` - (Required) The version of storage analytics to configure. + +* `write` - (Required) Indicates whether all write requests should be logged. + +* `retention_policy_days` - (Optional) Specifies the number of days that logs will be retained. + +--- + +A `minute_metrics` block supports the following: + +* `version` - (Required) The version of storage analytics to configure. + +* `include_apis` - (Optional) Indicates whether metrics should generate summary statistics for called API operations. + +* `retention_policy_days` - (Optional) Specifies the number of days that logs will be retained. + + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the Storage Account Queue Properties. +* `update` - (Defaults to 30 minutes) Used when updating the Storage Account Queue Properties. +* `read` - (Defaults to 5 minutes) Used when retrieving the Storage Account Queue Properties. +* `delete` - (Defaults to 30 minutes) Used when deleting the Storage Account Queue Properties. + +## Import + +Storage Account Queue Properties can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_storage_account_queue_properties.queueprops /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount +``` diff --git a/website/docs/r/storage_account_static_website.html.markdown b/website/docs/r/storage_account_static_website.html.markdown new file mode 100644 index 000000000000..435517541ab2 --- /dev/null +++ b/website/docs/r/storage_account_static_website.html.markdown @@ -0,0 +1,66 @@ +--- +subcategory: "Storage" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_storage_account_static_website" +description: |- + Manages the Static Website of an Azure Storage Account. +--- + +# azurerm_storage_account_static_website + +Manages the Static Website of an Azure Storage Account. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example-resources" + location = "West Europe" +} + +resource "azurerm_storage_account" "example" { + name = "storageaccountname" + resource_group_name = azurerm_resource_group.example.name + location = azurerm_resource_group.example.location + account_tier = "Standard" + account_replication_type = "GRS" + + tags = { + environment = "staging" + } +} + +resource "azurerm_storage_account_static_website" "test" { + storage_account_id = azurerm_storage_account.test.id + error_404_document = "custom_not_found.html" + index_document = "custom_index.html" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `storage_account_id` - (Required) The ID of the Storage Account to set Static Website on. Changing this forces a new resource to be created. + +* `error_404_document` - (Optional) The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file. + +* `index_document` - (Optional) The webpage that Azure Storage serves for requests to the root of a website or any subfolder. For example, index.html. + + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the Storage Account Static Website. +* `update` - (Defaults to 30 minutes) Used when updating the Storage Account Static Website. +* `read` - (Defaults to 5 minutes) Used when retrieving the Storage Account Static Website. +* `delete` - (Defaults to 30 minutes) Used when deleting the Storage Account Static Website. + +## Import + +Storage Account Static Websites can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_storage_account_static_website.mysite /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount +``` diff --git a/website/docs/r/storage_container.html.markdown b/website/docs/r/storage_container.html.markdown index bad59ba65a3b..18b371b4018b 100644 --- a/website/docs/r/storage_container.html.markdown +++ b/website/docs/r/storage_container.html.markdown @@ -32,7 +32,7 @@ resource "azurerm_storage_account" "example" { resource "azurerm_storage_container" "example" { name = "vhds" - storage_account_name = azurerm_storage_account.example.name + storage_account_id = azurerm_storage_account.example.id container_access_type = "private" } ``` @@ -43,7 +43,11 @@ The following arguments are supported: * `name` - (Required) The name of the Container which should be created within the Storage Account. Changing this forces a new resource to be created. -* `storage_account_name` - (Required) The name of the Storage Account where the Container should be created. Changing this forces a new resource to be created. +* `storage_account_name` - (Optional) The name of the Storage Account where the Container should be created. Changing this forces a new resource to be created. This property is deprecated in favour of `storage_account_id`. + +* `storage_account_id` - (Optional) The name of the Storage Account where the Container should be created. Changing this forces a new resource to be created. + +~> **NOTE:** One of `storage_account_name` or `storage_account_id` must be specified. When specifying `storage_account_id` the resource will use the Resource Manager API, rather than the Data Plane API. * `container_access_type` - (Optional) The Access Level configured for this Container. Possible values are `blob`, `container` or `private`. Defaults to `private`. diff --git a/website/docs/r/storage_share.html.markdown b/website/docs/r/storage_share.html.markdown index 7fd0544df73d..04e59174cffe 100644 --- a/website/docs/r/storage_share.html.markdown +++ b/website/docs/r/storage_share.html.markdown @@ -31,17 +31,17 @@ resource "azurerm_storage_account" "example" { } resource "azurerm_storage_share" "example" { - name = "sharename" - storage_account_name = azurerm_storage_account.example.name - quota = 50 + name = "sharename" + storage_account_id = azurerm_storage_account.example.id + quota = 50 acl { id = "MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI" access_policy { permissions = "rwdl" - start = "2019-07-02T09:38:21.0000000Z" - expiry = "2019-07-02T10:38:21.0000000Z" + start = "2019-07-02T09:38:21Z" + expiry = "2019-07-02T10:38:21Z" } } } @@ -53,7 +53,11 @@ The following arguments are supported: * `name` - (Required) The name of the share. Must be unique within the storage account where the share is located. Changing this forces a new resource to be created. -* `storage_account_name` - (Required) Specifies the storage account in which to create the share. Changing this forces a new resource to be created. +* `storage_account_name` - (Optional) Specifies the storage account in which to create the share. Changing this forces a new resource to be created. This property is deprecated in favour of `storage_account_id`. + +* `storage_account_id` - (Optional) Specifies the storage account in which to create the share. Changing this forces a new resource to be created. + +~> **NOTE:** One of `storage_account_name` or `storage_account_id` must be specified. When specifying `storage_account_id` the resource will use the Resource Manager API, rather than the Data Plane API. * `access_tier` - (Optional) The access tier of the File Share. Possible values are `Hot`, `Cool` and `TransactionOptimized`, `Premium`. @@ -89,9 +93,9 @@ A `access_policy` block supports the following: ~> **Note:** Permission order is strict at the service side, and permissions need to be listed in the order above. -* `start` - (Optional) The time at which this Access Policy should be valid from, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format. +* `start` - (Optional) The time at which this Access Policy should be valid from. When using `storage_account_id` this should be in RFC3339 format. If using the deprecated `storage_account_name` property, this uses the [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format. -* `expiry` - (Optional) The time at which this Access Policy should be valid until, in [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format. +* `expiry` - (Optional) The time at which this Access Policy should be valid untilWhen using `storage_account_id` this should be in RFC3339 format. If using the deprecated `storage_account_name` property, this uses the [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) format. ## Attributes Reference @@ -114,8 +118,8 @@ The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/l ## Import -Storage Shares can be imported using the `resource id`, e.g. +Storage Shares can be imported using the `id`, e.g. ```shell -terraform import azurerm_storage_share.exampleShare https://account1.file.core.windows.net/share1 +terraform import azurerm_storage_share.exampleShare /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Storage/storageAccounts/myAccount/fileServices/default/shares/exampleShare ``` diff --git a/website/docs/r/subnet.html.markdown b/website/docs/r/subnet.html.markdown index 71f4ee3d8788..5c1e613741df 100644 --- a/website/docs/r/subnet.html.markdown +++ b/website/docs/r/subnet.html.markdown @@ -99,7 +99,7 @@ A `service_delegation` block supports the following: -> **NOTE:** Delegating to services may not be available in all regions. Check that the service you are delegating to is available in your region using the [Azure CLI](https://docs.microsoft.com/cli/azure/network/vnet/subnet?view=azure-cli-latest#az-network-vnet-subnet-list-available-delegations). Also, `actions` is specific to each service type. The exact list of `actions` needs to be retrieved using the aforementioned [Azure CLI](https://docs.microsoft.com/cli/azure/network/vnet/subnet?view=azure-cli-latest#az-network-vnet-subnet-list-available-delegations). -* `name` - (Required) The name of service to delegate to. Possible values are `GitHub.Network/networkSettings`, `Microsoft.ApiManagement/service`, `Microsoft.Apollo/npu`, `Microsoft.App/environments`, `Microsoft.App/testClients`, `Microsoft.AVS/PrivateClouds`, `Microsoft.AzureCosmosDB/clusters`, `Microsoft.BareMetal/AzureHostedService`, `Microsoft.BareMetal/AzureHPC`, `Microsoft.BareMetal/AzurePaymentHSM`, `Microsoft.BareMetal/AzureVMware`, `Microsoft.BareMetal/CrayServers`, `Microsoft.BareMetal/MonitoringServers`, `Microsoft.Batch/batchAccounts`, `Microsoft.CloudTest/hostedpools`, `Microsoft.CloudTest/images`, `Microsoft.CloudTest/pools`, `Microsoft.Codespaces/plans`, `Microsoft.ContainerInstance/containerGroups`, `Microsoft.ContainerService/managedClusters`, `Microsoft.ContainerService/TestClients`, `Microsoft.Databricks/workspaces`, `Microsoft.DBforMySQL/flexibleServers`, `Microsoft.DBforMySQL/servers`, `Microsoft.DBforMySQL/serversv2`, `Microsoft.DBforPostgreSQL/flexibleServers`, `Microsoft.DBforPostgreSQL/serversv2`, `Microsoft.DBforPostgreSQL/singleServers`, `Microsoft.DelegatedNetwork/controller`, `Microsoft.DevCenter/networkConnection`, `Microsoft.DevOpsInfrastructure/pools`, `Microsoft.DocumentDB/cassandraClusters`, `Microsoft.Fidalgo/networkSettings`, `Microsoft.HardwareSecurityModules/dedicatedHSMs`, `Microsoft.Kusto/clusters`, `Microsoft.LabServices/labplans`, `Microsoft.Logic/integrationServiceEnvironments`, `Microsoft.MachineLearningServices/workspaces`, `Microsoft.Netapp/volumes`, `Microsoft.Network/dnsResolvers`, `Microsoft.Network/managedResolvers`, `Microsoft.Network/fpgaNetworkInterfaces`, `Microsoft.Network/networkWatchers.`, `Microsoft.Network/virtualNetworkGateways`, `Microsoft.Orbital/orbitalGateways`, `Microsoft.PowerPlatform/enterprisePolicies`, `Microsoft.PowerPlatform/vnetaccesslinks`, `Microsoft.ServiceFabricMesh/networks`, `Microsoft.ServiceNetworking/trafficControllers`, `Microsoft.Singularity/accounts/networks`, `Microsoft.Singularity/accounts/npu`, `Microsoft.Sql/managedInstances`, `Microsoft.Sql/managedInstancesOnebox`, `Microsoft.Sql/managedInstancesStage`, `Microsoft.Sql/managedInstancesTest`, `Microsoft.Sql/servers`, `Microsoft.StoragePool/diskPools`, `Microsoft.StreamAnalytics/streamingJobs`, `Microsoft.Synapse/workspaces`, `Microsoft.Web/hostingEnvironments`, `Microsoft.Web/serverFarms`, `NGINX.NGINXPLUS/nginxDeployments`, `PaloAltoNetworks.Cloudngfw/firewalls`, `Qumulo.Storage/fileSystems`, and `Oracle.Database/networkAttachments`. +* `name` - (Required) The name of service to delegate to. Possible values are `GitHub.Network/networkSettings`, `Informatica.DataManagement/organizations`, `Microsoft.ApiManagement/service`, `Microsoft.Apollo/npu`, `Microsoft.App/environments`, `Microsoft.App/testClients`, `Microsoft.AVS/PrivateClouds`, `Microsoft.AzureCosmosDB/clusters`, `Microsoft.BareMetal/AzureHostedService`, `Microsoft.BareMetal/AzureHPC`, `Microsoft.BareMetal/AzurePaymentHSM`, `Microsoft.BareMetal/AzureVMware`, `Microsoft.BareMetal/CrayServers`, `Microsoft.BareMetal/MonitoringServers`, `Microsoft.Batch/batchAccounts`, `Microsoft.CloudTest/hostedpools`, `Microsoft.CloudTest/images`, `Microsoft.CloudTest/pools`, `Microsoft.Codespaces/plans`, `Microsoft.ContainerInstance/containerGroups`, `Microsoft.ContainerService/managedClusters`, `Microsoft.ContainerService/TestClients`, `Microsoft.Databricks/workspaces`, `Microsoft.DBforMySQL/flexibleServers`, `Microsoft.DBforMySQL/servers`, `Microsoft.DBforMySQL/serversv2`, `Microsoft.DBforPostgreSQL/flexibleServers`, `Microsoft.DBforPostgreSQL/serversv2`, `Microsoft.DBforPostgreSQL/singleServers`, `Microsoft.DelegatedNetwork/controller`, `Microsoft.DevCenter/networkConnection`, `Microsoft.DevOpsInfrastructure/pools`, `Microsoft.DocumentDB/cassandraClusters`, `Microsoft.Fidalgo/networkSettings`, `Microsoft.HardwareSecurityModules/dedicatedHSMs`, `Microsoft.Kusto/clusters`, `Microsoft.LabServices/labplans`, `Microsoft.Logic/integrationServiceEnvironments`, `Microsoft.MachineLearningServices/workspaces`, `Microsoft.Netapp/volumes`, `Microsoft.Network/dnsResolvers`, `Microsoft.Network/managedResolvers`, `Microsoft.Network/fpgaNetworkInterfaces`, `Microsoft.Network/networkWatchers.`, `Microsoft.Network/virtualNetworkGateways`, `Microsoft.Orbital/orbitalGateways`, `Microsoft.PowerPlatform/enterprisePolicies`, `Microsoft.PowerPlatform/vnetaccesslinks`, `Microsoft.ServiceFabricMesh/networks`, `Microsoft.ServiceNetworking/trafficControllers`, `Microsoft.Singularity/accounts/networks`, `Microsoft.Singularity/accounts/npu`, `Microsoft.Sql/managedInstances`, `Microsoft.Sql/managedInstancesOnebox`, `Microsoft.Sql/managedInstancesStage`, `Microsoft.Sql/managedInstancesTest`, `Microsoft.Sql/servers`, `Microsoft.StoragePool/diskPools`, `Microsoft.StreamAnalytics/streamingJobs`, `Microsoft.Synapse/workspaces`, `Microsoft.Web/hostingEnvironments`, `Microsoft.Web/serverFarms`, `NGINX.NGINXPLUS/nginxDeployments`, `PaloAltoNetworks.Cloudngfw/firewalls`, `Qumulo.Storage/fileSystems`, and `Oracle.Database/networkAttachments`. * `actions` - (Optional) A list of Actions which should be delegated. This list is specific to the service to delegate to. Possible values are `Microsoft.Network/networkinterfaces/*`, `Microsoft.Network/publicIPAddresses/join/action`, `Microsoft.Network/publicIPAddresses/read`, `Microsoft.Network/virtualNetworks/read`, `Microsoft.Network/virtualNetworks/subnets/action`, `Microsoft.Network/virtualNetworks/subnets/join/action`, `Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action`, and `Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action`. diff --git a/website/docs/r/traffic_manager_azure_endpoint.html.markdown b/website/docs/r/traffic_manager_azure_endpoint.html.markdown index 484014c92823..222d43a312e7 100644 --- a/website/docs/r/traffic_manager_azure_endpoint.html.markdown +++ b/website/docs/r/traffic_manager_azure_endpoint.html.markdown @@ -72,8 +72,6 @@ The following arguments are supported: * `weight` - (Optional) Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the Weighted traffic routing method. Valid values are between `1` and `1000`. Defaults to `1`. ---- - * `always_serve_enabled` - (Optional) If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. Defaults to `false`. * `custom_header` - (Optional) One or more `custom_header` blocks as defined below. @@ -82,7 +80,7 @@ The following arguments are supported: * `geo_mappings` - (Optional) A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). -* `priority` - (Optional) Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. +* `priority` - (Optional) Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * `subnet` - (Optional) One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. diff --git a/website/docs/r/traffic_manager_external_endpoint.html.markdown b/website/docs/r/traffic_manager_external_endpoint.html.markdown index 51149696fa10..eba75fafff78 100644 --- a/website/docs/r/traffic_manager_external_endpoint.html.markdown +++ b/website/docs/r/traffic_manager_external_endpoint.html.markdown @@ -65,8 +65,6 @@ The following arguments are supported: * `endpoint_location` - (Optional) Specifies the Azure location of the Endpoint, this must be specified for Profiles using the `Performance` routing method. ---- - * `always_serve_enabled` - (Optional) If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. Defaults to `false`. * `custom_header` - (Optional) One or more `custom_header` blocks as defined below. @@ -75,7 +73,7 @@ The following arguments are supported: * `geo_mappings` - (Optional) A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). -* `priority` - (Optional) Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. +* `priority` - (Optional) Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * `subnet` - (Optional) One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. diff --git a/website/docs/r/trusted_signing_account.html.markdown b/website/docs/r/trusted_signing_account.html.markdown new file mode 100644 index 000000000000..b9a9f12ec182 --- /dev/null +++ b/website/docs/r/trusted_signing_account.html.markdown @@ -0,0 +1,69 @@ +--- +subcategory: "Trusted Signing" +layout: "azurerm" +page_title: "Azure Resource Manager: azurerm_trusted_signing_account" +description: |- + Manages a Trusted Signing Account. +--- + +# azurerm_trusted_signing_account + +Manages a Trusted Signing Account. + +## Example Usage + +```hcl +resource "azurerm_resource_group" "example" { + name = "example" + location = "West Europe" +} + +resource "azurerm_trusted_signing_account" "example" { + name = "example-account" + resource_group_name = azurerm_resource_group.example.name + location = "West Europe" + sku_name = "Basic" +} +``` + +## Arguments Reference + +The following arguments are supported: + +* `name` - (Required) The name which should be used for this Trusted Signing Account. Changing this forces a new Trusted Signing Account to be created. + +* `location` - (Required) The Azure Region where the Trusted Signing Account should exist. Changing this forces a new Trusted Signing Account to be created. + +* `resource_group_name` - (Required) The name of the Resource Group where the Trusted Signing Account should exist. Changing this forces a new Trusted Signing Account to be created. + +* `sku_name` - (Required) The sku name of this Trusted Signing Account. Possible values are `Basic` and `Premium`. + +--- + +* `tags` - (Optional) A mapping of tags which should be assigned to the Trusted Signing Account. + + +## Attributes Reference + +In addition to the Arguments listed above - the following Attributes are exported: + +* `id` - The ID of the Trusted Signing Account. + +* `account_uri` - The URI of the Trusted Signing Account which is used during signing files. + +## Timeouts + +The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: + +* `create` - (Defaults to 30 minutes) Used when creating the Trusted Signing Account. +* `read` - (Defaults to 5 minutes) Used when retrieving the Trusted Signing Account. +* `update` - (Defaults to 10 minutes) Used when updating the Trusted Signing Account. +* `delete` - (Defaults to 10 minutes) Used when deleting the Trusted Signing Account. + +## Import + +Trusted Signing Accounts can be imported using the `resource id`, e.g. + +```shell +terraform import azurerm_trusted_signing_account.example /subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.CodeSigning/codeSigningAccounts/example-account +``` diff --git a/website/docs/r/virtual_network.html.markdown b/website/docs/r/virtual_network.html.markdown index 0f81276d3abb..e21ea3967f7c 100644 --- a/website/docs/r/virtual_network.html.markdown +++ b/website/docs/r/virtual_network.html.markdown @@ -153,7 +153,7 @@ A `service_delegation` block supports the following: -> **NOTE:** Delegating to services may not be available in all regions. Check that the service you are delegating to is available in your region using the [Azure CLI](https://docs.microsoft.com/cli/azure/network/vnet/subnet?view=azure-cli-latest#az-network-vnet-subnet-list-available-delegations). Also, `actions` is specific to each service type. The exact list of `actions` needs to be retrieved using the aforementioned [Azure CLI](https://docs.microsoft.com/cli/azure/network/vnet/subnet?view=azure-cli-latest#az-network-vnet-subnet-list-available-delegations). -* `name` - (Required) The name of service to delegate to. Possible values are `GitHub.Network/networkSettings`, `Microsoft.ApiManagement/service`, `Microsoft.Apollo/npu`, `Microsoft.App/environments`, `Microsoft.App/testClients`, `Microsoft.AVS/PrivateClouds`, `Microsoft.AzureCosmosDB/clusters`, `Microsoft.BareMetal/AzureHostedService`, `Microsoft.BareMetal/AzureHPC`, `Microsoft.BareMetal/AzurePaymentHSM`, `Microsoft.BareMetal/AzureVMware`, `Microsoft.BareMetal/CrayServers`, `Microsoft.BareMetal/MonitoringServers`, `Microsoft.Batch/batchAccounts`, `Microsoft.CloudTest/hostedpools`, `Microsoft.CloudTest/images`, `Microsoft.CloudTest/pools`, `Microsoft.Codespaces/plans`, `Microsoft.ContainerInstance/containerGroups`, `Microsoft.ContainerService/managedClusters`, `Microsoft.ContainerService/TestClients`, `Microsoft.Databricks/workspaces`, `Microsoft.DBforMySQL/flexibleServers`, `Microsoft.DBforMySQL/servers`, `Microsoft.DBforMySQL/serversv2`, `Microsoft.DBforPostgreSQL/flexibleServers`, `Microsoft.DBforPostgreSQL/serversv2`, `Microsoft.DBforPostgreSQL/singleServers`, `Microsoft.DelegatedNetwork/controller`, `Microsoft.DevCenter/networkConnection`, `Microsoft.DocumentDB/cassandraClusters`, `Microsoft.Fidalgo/networkSettings`, `Microsoft.HardwareSecurityModules/dedicatedHSMs`, `Microsoft.Kusto/clusters`, `Microsoft.LabServices/labplans`, `Microsoft.Logic/integrationServiceEnvironments`, `Microsoft.MachineLearningServices/workspaces`, `Microsoft.Netapp/volumes`, `Microsoft.Network/dnsResolvers`, `Microsoft.Network/managedResolvers`, `Microsoft.Network/fpgaNetworkInterfaces`, `Microsoft.Network/networkWatchers.`, `Microsoft.Network/virtualNetworkGateways`, `Microsoft.Orbital/orbitalGateways`, `Microsoft.PowerPlatform/enterprisePolicies`, `Microsoft.PowerPlatform/vnetaccesslinks`, `Microsoft.ServiceFabricMesh/networks`, `Microsoft.ServiceNetworking/trafficControllers`, `Microsoft.Singularity/accounts/networks`, `Microsoft.Singularity/accounts/npu`, `Microsoft.Sql/managedInstances`, `Microsoft.Sql/managedInstancesOnebox`, `Microsoft.Sql/managedInstancesStage`, `Microsoft.Sql/managedInstancesTest`, `Microsoft.Sql/servers`, `Microsoft.StoragePool/diskPools`, `Microsoft.StreamAnalytics/streamingJobs`, `Microsoft.Synapse/workspaces`, `Microsoft.Web/hostingEnvironments`, `Microsoft.Web/serverFarms`, `NGINX.NGINXPLUS/nginxDeployments`, `PaloAltoNetworks.Cloudngfw/firewalls`, `Qumulo.Storage/fileSystems`, and `Oracle.Database/networkAttachments`. +* `name` - (Required) The name of service to delegate to. Possible values are `GitHub.Network/networkSettings`, `Informatica.DataManagement/organizations`, `Microsoft.ApiManagement/service`, `Microsoft.Apollo/npu`, `Microsoft.App/environments`, `Microsoft.App/testClients`, `Microsoft.AVS/PrivateClouds`, `Microsoft.AzureCosmosDB/clusters`, `Microsoft.BareMetal/AzureHostedService`, `Microsoft.BareMetal/AzureHPC`, `Microsoft.BareMetal/AzurePaymentHSM`, `Microsoft.BareMetal/AzureVMware`, `Microsoft.BareMetal/CrayServers`, `Microsoft.BareMetal/MonitoringServers`, `Microsoft.Batch/batchAccounts`, `Microsoft.CloudTest/hostedpools`, `Microsoft.CloudTest/images`, `Microsoft.CloudTest/pools`, `Microsoft.Codespaces/plans`, `Microsoft.ContainerInstance/containerGroups`, `Microsoft.ContainerService/managedClusters`, `Microsoft.ContainerService/TestClients`, `Microsoft.Databricks/workspaces`, `Microsoft.DBforMySQL/flexibleServers`, `Microsoft.DBforMySQL/servers`, `Microsoft.DBforMySQL/serversv2`, `Microsoft.DBforPostgreSQL/flexibleServers`, `Microsoft.DBforPostgreSQL/serversv2`, `Microsoft.DBforPostgreSQL/singleServers`, `Microsoft.DelegatedNetwork/controller`, `Microsoft.DevCenter/networkConnection`, `Microsoft.DevOpsInfrastructure/pools`, `Microsoft.DocumentDB/cassandraClusters`, `Microsoft.Fidalgo/networkSettings`, `Microsoft.HardwareSecurityModules/dedicatedHSMs`, `Microsoft.Kusto/clusters`, `Microsoft.LabServices/labplans`, `Microsoft.Logic/integrationServiceEnvironments`, `Microsoft.MachineLearningServices/workspaces`, `Microsoft.Netapp/volumes`, `Microsoft.Network/dnsResolvers`, `Microsoft.Network/managedResolvers`, `Microsoft.Network/fpgaNetworkInterfaces`, `Microsoft.Network/networkWatchers.`, `Microsoft.Network/virtualNetworkGateways`, `Microsoft.Orbital/orbitalGateways`, `Microsoft.PowerPlatform/enterprisePolicies`, `Microsoft.PowerPlatform/vnetaccesslinks`, `Microsoft.ServiceFabricMesh/networks`, `Microsoft.ServiceNetworking/trafficControllers`, `Microsoft.Singularity/accounts/networks`, `Microsoft.Singularity/accounts/npu`, `Microsoft.Sql/managedInstances`, `Microsoft.Sql/managedInstancesOnebox`, `Microsoft.Sql/managedInstancesStage`, `Microsoft.Sql/managedInstancesTest`, `Microsoft.Sql/servers`, `Microsoft.StoragePool/diskPools`, `Microsoft.StreamAnalytics/streamingJobs`, `Microsoft.Synapse/workspaces`, `Microsoft.Web/hostingEnvironments`, `Microsoft.Web/serverFarms`, `NGINX.NGINXPLUS/nginxDeployments`, `PaloAltoNetworks.Cloudngfw/firewalls`, `Qumulo.Storage/fileSystems`, and `Oracle.Database/networkAttachments`. * `actions` - (Optional) A list of Actions which should be delegated. This list is specific to the service to delegate to. Possible values are `Microsoft.Network/networkinterfaces/*`, `Microsoft.Network/publicIPAddresses/join/action`, `Microsoft.Network/publicIPAddresses/read`, `Microsoft.Network/virtualNetworks/read`, `Microsoft.Network/virtualNetworks/subnets/action`, `Microsoft.Network/virtualNetworks/subnets/join/action`, `Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action`, and `Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action`. diff --git a/website/docs/r/virtual_network_gateway.html.markdown b/website/docs/r/virtual_network_gateway.html.markdown index ace0fb1d579a..589e490ac081 100644 --- a/website/docs/r/virtual_network_gateway.html.markdown +++ b/website/docs/r/virtual_network_gateway.html.markdown @@ -104,7 +104,7 @@ EOF The following arguments are supported: -* `ip_configuration` - (Required) One or more (up to 3) `ip_configuration` blocks documented below. +* `ip_configuration` - (Required) One or more (up to 3) `ip_configuration` blocks documented below. Changing this forces a new resource to be created. An active-standby gateway requires exactly one `ip_configuration` block, an active-active gateway requires exactly two `ip_configuration` blocks whereas an active-active zone redundant gateway with P2S configuration requires exactly three `ip_configuration` blocks. diff --git a/website/docs/r/web_application_firewall_policy.html.markdown b/website/docs/r/web_application_firewall_policy.html.markdown index ffad314bf859..adcbaefbf72e 100644 --- a/website/docs/r/web_application_firewall_policy.html.markdown +++ b/website/docs/r/web_application_firewall_policy.html.markdown @@ -164,7 +164,7 @@ The `match_conditions` block supports the following: * `negation_condition` - (Optional) Describes if this is negate condition or not -* `transforms` - (Optional) A list of transformations to do before the match is attempted. Possible values are `HtmlEntityDecode`, `Lowercase`, `RemoveNulls`, `Trim`, `UrlDecode` and `UrlEncode`. +* `transforms` - (Optional) A list of transformations to do before the match is attempted. Possible values are `HtmlEntityDecode`, `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`. --- @@ -196,6 +196,8 @@ The `policy_settings` block supports the following: * `js_challenge_cookie_expiration_in_minutes` - (Optional) Specifies the JavaScript challenge cookie validity lifetime in minutes. The user is challenged after the lifetime expires. Accepted values are in the range `5` to `1440`. Defaults to `30`. +* `file_upload_enforcement` - (Optional) - Whether the firewall should block a request with upload size greater then `file_upload_limit_in_mb`. + --- The `managed_rules` block supports the following: @@ -222,7 +224,7 @@ The `excluded_rule_set` block supports the following: * `type` - (Optional) The rule set type. Possible values are `Microsoft_DefaultRuleSet`, `Microsoft_BotManagerRuleSet` and `OWASP`. Defaults to `OWASP`. -* `version` - (Optional) The rule set version. Possible values are `1.0` (for rule set type `Microsoft_BotManagerRuleSet`), `2.1` (for rule set type `Microsoft_DefaultRuleSet`) and `3.2` (for rule set type `OWASP`). Defaults to `3.2`. +* `version` - (Optional) The rule set version. Possible values are `1.0`, `1.1` (for rule set type `Microsoft_BotManagerRuleSet`), `2.1` (for rule set type `Microsoft_DefaultRuleSet`) and `3.2` (for rule set type `OWASP`). Defaults to `3.2`. * `rule_group` - (Optional) One or more `rule_group` block defined below. @@ -241,7 +243,7 @@ The `managed_rule_set` block supports the following: * `type` - (Optional) The rule set type. Possible values: `Microsoft_BotManagerRuleSet`, `Microsoft_DefaultRuleSet` and `OWASP`. Defaults to `OWASP`. -* `version` - (Required) The rule set version. Possible values: `0.1`, `1.0`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`. +* `version` - (Required) The rule set version. Possible values: `0.1`, `1.0`, `1.1`, `2.1`, `2.2.9`, `3.0`, `3.1` and `3.2`. * `rule_group_override` - (Optional) One or more `rule_group_override` block defined below. diff --git a/website/docs/r/windows_function_app.html.markdown b/website/docs/r/windows_function_app.html.markdown index 6051e5056efc..dac037e39327 100644 --- a/website/docs/r/windows_function_app.html.markdown +++ b/website/docs/r/windows_function_app.html.markdown @@ -170,7 +170,7 @@ An `active_directory` block supports the following: A `application_stack` block supports the following: -* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. +* `dotnet_version` - (Optional) The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * `use_dotnet_isolated_runtime` - (Optional) Should the DotNet process use an isolated runtime. Defaults to `false`. @@ -672,7 +672,7 @@ A `site_config` block supports the following: * `managed_pipeline_mode` - (Optional) Managed pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`. -* `minimum_tls_version` - (Optional) Configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`. +* `minimum_tls_version` - (Optional) Configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, `1.2` and `1.3`. Defaults to `1.2`. * `pre_warmed_instance_count` - (Optional) The number of pre-warmed instances for this Windows Function App. Only affects apps on an Elastic Premium plan. diff --git a/website/docs/r/windows_function_app_slot.html.markdown b/website/docs/r/windows_function_app_slot.html.markdown index 2929865a4d29..053258989bb4 100644 --- a/website/docs/r/windows_function_app_slot.html.markdown +++ b/website/docs/r/windows_function_app_slot.html.markdown @@ -630,7 +630,7 @@ An `app_service_logs` block supports the following: An `application_stack` block supports the following: -* `dotnet_version` - (Optional) The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. +* `dotnet_version` - (Optional) The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * `use_dotnet_isolated_runtime` - (Optional) Should the DotNet process use an isolated runtime. Defaults to `false`. diff --git a/website/docs/r/windows_web_app.html.markdown b/website/docs/r/windows_web_app.html.markdown index 48f6a6d3418d..0b4556eb3370 100644 --- a/website/docs/r/windows_web_app.html.markdown +++ b/website/docs/r/windows_web_app.html.markdown @@ -162,7 +162,7 @@ An `application_stack` block supports the following: ~> **NOTE:** `docker_registry_url`, `docker_registry_username`, and `docker_registry_password` replace the use of the `app_settings` values of `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD` respectively, these values will be managed by the provider and should not be specified in the `app_settings` map. -* `dotnet_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. +* `dotnet_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. ~> **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: Portal Value | API value @@ -172,6 +172,7 @@ ASP.NET V4.8 | v4.0 .NET 6 (LTS) | v6.0 .NET 7 (STS) | v7.0 .NET 8 (LTS) | v8.0 +.NET 9 (STS) | v9.0 * `dotnet_core_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnetcore`. Possible values include `v4.0`. @@ -741,7 +742,7 @@ A `site_config` block supports the following: * `managed_pipeline_mode` - (Optional) Managed pipeline mode. Possible values include: `Integrated`, `Classic`. Defaults to `Integrated`. -* `minimum_tls_version` - (Optional) The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, and `1.2`. Defaults to `1.2`. +* `minimum_tls_version` - (Optional) The configures the minimum version of TLS required for SSL requests. Possible values include: `1.0`, `1.1`, `1.2` and `1.3`. Defaults to `1.2`. * `remote_debugging_enabled` - (Optional) Should Remote Debugging be enabled. Defaults to `false`. diff --git a/website/docs/r/windows_web_app_slot.html.markdown b/website/docs/r/windows_web_app_slot.html.markdown index 6b24dfac60f8..cfc40b750ad3 100644 --- a/website/docs/r/windows_web_app_slot.html.markdown +++ b/website/docs/r/windows_web_app_slot.html.markdown @@ -166,7 +166,7 @@ An `application_stack` block supports the following: ~> **NOTE:** `docker_registry_url`, `docker_registry_username`, and `docker_registry_password` replace the use of the `app_settings` values of `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD` respectively, these values will be managed by the provider and should not be specified in the `app_settings` map. -* `dotnet_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. +* `dotnet_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * `dotnet_core_version` - (Optional) The version of .NET to use when `current_stack` is set to `dotnetcore`. Possible values include `v4.0`.